diff --git a/Makefile b/Makefile index a42ba236b..810873a57 100644 --- a/Makefile +++ b/Makefile @@ -243,7 +243,8 @@ docs-generate: uv run python scripts/docs/generate_nav.py docs: docs-generate - uv run zensical build + # The rendered-page cache does not track Python sources read by mkdocstrings. + uv run zensical build --clean docs-serve: @[ -d site ] || $(MAKE) docs diff --git a/clients/aws-sdk-acm/pyproject.toml b/clients/aws-sdk-acm/pyproject.toml index 56daae43e..87cadbc4c 100644 --- a/clients/aws-sdk-acm/pyproject.toml +++ b/clients/aws-sdk-acm/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-acm/src/aws_sdk_acm/_private/schemas.py b/clients/aws-sdk-acm/src/aws_sdk_acm/_private/schemas.py index df583fd3c..71d43a483 100644 --- a/clients/aws-sdk-acm/src/aws_sdk_acm/_private/schemas.py +++ b/clients/aws-sdk-acm/src/aws_sdk_acm/_private/schemas.py @@ -316,7 +316,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-acm/src/aws_sdk_acm/aio/client.py b/clients/aws-sdk-acm/src/aws_sdk_acm/aio/client.py index 477af6881..0d0a529fa 100644 --- a/clients/aws-sdk-acm/src/aws_sdk_acm/aio/client.py +++ b/clients/aws-sdk-acm/src/aws_sdk_acm/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,85 +20,45 @@ if TYPE_CHECKING: from ..models import ( - AddTagsToCertificateInput, AddTagsToCertificateOutput, - CreateAcmeDomainValidationInput, CreateAcmeDomainValidationOutput, - CreateAcmeEndpointInput, CreateAcmeEndpointOutput, - CreateAcmeExternalAccountBindingInput, CreateAcmeExternalAccountBindingOutput, - DeleteAcmeDomainValidationInput, DeleteAcmeDomainValidationOutput, - DeleteAcmeEndpointInput, DeleteAcmeEndpointOutput, - DeleteAcmeExternalAccountBindingInput, DeleteAcmeExternalAccountBindingOutput, - DeleteCertificateInput, DeleteCertificateOutput, - DescribeAcmeAccountInput, DescribeAcmeAccountOutput, - DescribeAcmeDomainValidationInput, DescribeAcmeDomainValidationOutput, - DescribeAcmeEndpointInput, DescribeAcmeEndpointOutput, - DescribeAcmeExternalAccountBindingInput, DescribeAcmeExternalAccountBindingOutput, - DescribeCertificateInput, DescribeCertificateOutput, - ExportCertificateInput, ExportCertificateOutput, - GetAccountConfigurationInput, GetAccountConfigurationOutput, - GetAcmeExternalAccountBindingCredentialsInput, GetAcmeExternalAccountBindingCredentialsOutput, - GetCertificateInput, GetCertificateOutput, - ImportCertificateInput, ImportCertificateOutput, - ListAcmeAccountsInput, ListAcmeAccountsOutput, - ListAcmeDomainValidationsInput, ListAcmeDomainValidationsOutput, - ListAcmeEndpointsInput, ListAcmeEndpointsOutput, - ListAcmeExternalAccountBindingsInput, ListAcmeExternalAccountBindingsOutput, - ListCertificateDomainValidationsInput, ListCertificateDomainValidationsOutput, - ListCertificatesInput, ListCertificatesOutput, - ListTagsForCertificateInput, ListTagsForCertificateOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - PutAccountConfigurationInput, PutAccountConfigurationOutput, - RemoveTagsFromCertificateInput, RemoveTagsFromCertificateOutput, - RenewCertificateInput, RenewCertificateOutput, - RequestCertificateInput, RequestCertificateOutput, - ResendValidationEmailInput, ResendValidationEmailOutput, - RevokeAcmeAccountInput, RevokeAcmeAccountOutput, - RevokeAcmeExternalAccountBindingInput, RevokeAcmeExternalAccountBindingOutput, - RevokeCertificateInput, RevokeCertificateOutput, - SearchCertificatesInput, SearchCertificatesOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAcmeDomainValidationInput, UpdateAcmeDomainValidationOutput, - UpdateAcmeEndpointInput, UpdateAcmeEndpointOutput, - UpdateCertificateOptionsInput, UpdateCertificateOptionsOutput, ) @@ -114,10 +74,25 @@ class AsyncACMClient(AsyncClient[AsyncACMConfig]): Guide](https://docs.aws.amazon.com/acm/latest/userguide/). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def add_tags_to_certificate( - self, input: AddTagsToCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.AddTagsToCertificateInput + | _models.AddTagsToCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddTagsToCertificateOutput: ... + + @_overload + async def add_tags_to_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddTagsToCertificateInputDict], ) -> AddTagsToCertificateOutput: """ Adds one or more tags to an ACM certificate. Tags are labels that you @@ -146,8 +121,6 @@ async def add_tags_to_certificate( ListTagsForCertificate action. Args: - input: - An instance of `AddTagsToCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -157,12 +130,34 @@ async def add_tags_to_certificate( Returns: An instance of `AddTagsToCertificateOutput`. """ - return await self._invoke(input, _models.ADD_TAGS_TO_CERTIFICATE, [], plugins) + async def add_tags_to_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddTagsToCertificateOutput: + return await self._invoke( + self._select_input(_models.ADD_TAGS_TO_CERTIFICATE, args, kwargs), + _models.ADD_TAGS_TO_CERTIFICATE, + [], + plugins, + ) + + @_overload async def create_acme_domain_validation( self, - input: CreateAcmeDomainValidationInput, + request: _models.CreateAcmeDomainValidationInput + | _models.CreateAcmeDomainValidationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateAcmeDomainValidationOutput: ... + + @_overload + async def create_acme_domain_validation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAcmeDomainValidationInputDict], ) -> CreateAcmeDomainValidationOutput: """ Creates a domain validation for an ACME endpoint. Domain validations @@ -170,8 +165,6 @@ async def create_acme_domain_validation( You configure prevalidation to prove domain ownership. Args: - input: - An instance of `CreateAcmeDomainValidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -181,12 +174,33 @@ async def create_acme_domain_validation( Returns: An instance of `CreateAcmeDomainValidationOutput`. """ + + async def create_acme_domain_validation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAcmeDomainValidationOutput: return await self._invoke( - input, _models.CREATE_ACME_DOMAIN_VALIDATION, [], plugins + self._select_input(_models.CREATE_ACME_DOMAIN_VALIDATION, args, kwargs), + _models.CREATE_ACME_DOMAIN_VALIDATION, + [], + plugins, ) + @_overload + async def create_acme_endpoint( + self, + request: _models.CreateAcmeEndpointInput | _models.CreateAcmeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAcmeEndpointOutput: ... + + @_overload async def create_acme_endpoint( - self, input: CreateAcmeEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAcmeEndpointInputDict], ) -> CreateAcmeEndpointOutput: """ Creates an ACME endpoint, which is a managed ACME server with a unique @@ -194,8 +208,6 @@ async def create_acme_endpoint( automate certificate issuance using the ACME protocol. Args: - input: - An instance of `CreateAcmeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -205,12 +217,34 @@ async def create_acme_endpoint( Returns: An instance of `CreateAcmeEndpointOutput`. """ - return await self._invoke(input, _models.CREATE_ACME_ENDPOINT, [], plugins) + async def create_acme_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAcmeEndpointOutput: + return await self._invoke( + self._select_input(_models.CREATE_ACME_ENDPOINT, args, kwargs), + _models.CREATE_ACME_ENDPOINT, + [], + plugins, + ) + + @_overload + async def create_acme_external_account_binding( + self, + request: _models.CreateAcmeExternalAccountBindingInput + | _models.CreateAcmeExternalAccountBindingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAcmeExternalAccountBindingOutput: ... + + @_overload async def create_acme_external_account_binding( self, - input: CreateAcmeExternalAccountBindingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAcmeExternalAccountBindingInputDict], ) -> CreateAcmeExternalAccountBindingOutput: """ Creates an external account binding (EAB) for an ACME endpoint. An EAB @@ -219,8 +253,6 @@ async def create_acme_external_account_binding( controls what certificate operations the ACME client can perform. Args: - input: - An instance of `CreateAcmeExternalAccountBindingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -230,22 +262,42 @@ async def create_acme_external_account_binding( Returns: An instance of `CreateAcmeExternalAccountBindingOutput`. """ + + async def create_acme_external_account_binding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAcmeExternalAccountBindingOutput: return await self._invoke( - input, _models.CREATE_ACME_EXTERNAL_ACCOUNT_BINDING, [], plugins + self._select_input( + _models.CREATE_ACME_EXTERNAL_ACCOUNT_BINDING, args, kwargs + ), + _models.CREATE_ACME_EXTERNAL_ACCOUNT_BINDING, + [], + plugins, ) + @_overload + async def delete_acme_domain_validation( + self, + request: _models.DeleteAcmeDomainValidationInput + | _models.DeleteAcmeDomainValidationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAcmeDomainValidationOutput: ... + + @_overload async def delete_acme_domain_validation( self, - input: DeleteAcmeDomainValidationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAcmeDomainValidationInputDict], ) -> DeleteAcmeDomainValidationOutput: """ Deletes a domain validation. After deletion, the ACME endpoint can no longer issue certificates for the associated domain. Args: - input: - An instance of `DeleteAcmeDomainValidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -255,12 +307,33 @@ async def delete_acme_domain_validation( Returns: An instance of `DeleteAcmeDomainValidationOutput`. """ + + async def delete_acme_domain_validation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAcmeDomainValidationOutput: return await self._invoke( - input, _models.DELETE_ACME_DOMAIN_VALIDATION, [], plugins + self._select_input(_models.DELETE_ACME_DOMAIN_VALIDATION, args, kwargs), + _models.DELETE_ACME_DOMAIN_VALIDATION, + [], + plugins, ) + @_overload async def delete_acme_endpoint( - self, input: DeleteAcmeEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteAcmeEndpointInput | _models.DeleteAcmeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAcmeEndpointOutput: ... + + @_overload + async def delete_acme_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAcmeEndpointInputDict], ) -> DeleteAcmeEndpointOutput: """ Deletes an ACME endpoint. After deletion, the endpoint URL is no longer @@ -269,8 +342,6 @@ async def delete_acme_endpoint( with the endpoint are also deleted. Args: - input: - An instance of `DeleteAcmeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -280,12 +351,34 @@ async def delete_acme_endpoint( Returns: An instance of `DeleteAcmeEndpointOutput`. """ - return await self._invoke(input, _models.DELETE_ACME_ENDPOINT, [], plugins) + async def delete_acme_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAcmeEndpointOutput: + return await self._invoke( + self._select_input(_models.DELETE_ACME_ENDPOINT, args, kwargs), + _models.DELETE_ACME_ENDPOINT, + [], + plugins, + ) + + @_overload async def delete_acme_external_account_binding( self, - input: DeleteAcmeExternalAccountBindingInput, + request: _models.DeleteAcmeExternalAccountBindingInput + | _models.DeleteAcmeExternalAccountBindingInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteAcmeExternalAccountBindingOutput: ... + + @_overload + async def delete_acme_external_account_binding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAcmeExternalAccountBindingInputDict], ) -> DeleteAcmeExternalAccountBindingOutput: """ Deletes an external account binding. Previously fetched credentials for @@ -293,8 +386,6 @@ async def delete_acme_external_account_binding( deleted binding cannot be recovered. Args: - input: - An instance of `DeleteAcmeExternalAccountBindingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -304,12 +395,35 @@ async def delete_acme_external_account_binding( Returns: An instance of `DeleteAcmeExternalAccountBindingOutput`. """ + + async def delete_acme_external_account_binding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAcmeExternalAccountBindingOutput: return await self._invoke( - input, _models.DELETE_ACME_EXTERNAL_ACCOUNT_BINDING, [], plugins + self._select_input( + _models.DELETE_ACME_EXTERNAL_ACCOUNT_BINDING, args, kwargs + ), + _models.DELETE_ACME_EXTERNAL_ACCOUNT_BINDING, + [], + plugins, ) + @_overload async def delete_certificate( - self, input: DeleteCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteCertificateInput | _models.DeleteCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCertificateOutput: ... + + @_overload + async def delete_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCertificateInputDict], ) -> DeleteCertificateOutput: """ Deletes a certificate and its associated private key. If this action @@ -343,8 +457,6 @@ async def delete_certificate( in the *Amazon Web Services Private Certificate Authority User Guide*. Args: - input: - An instance of `DeleteCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -354,10 +466,34 @@ async def delete_certificate( Returns: An instance of `DeleteCertificateOutput`. """ - return await self._invoke(input, _models.DELETE_CERTIFICATE, [], plugins) + async def delete_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCertificateOutput: + return await self._invoke( + self._select_input(_models.DELETE_CERTIFICATE, args, kwargs), + _models.DELETE_CERTIFICATE, + [], + plugins, + ) + + @_overload async def describe_acme_account( - self, input: DescribeAcmeAccountInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeAcmeAccountInput + | _models.DescribeAcmeAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAcmeAccountOutput: ... + + @_overload + async def describe_acme_account( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAcmeAccountInputDict], ) -> DescribeAcmeAccountOutput: """ Returns detailed metadata about the specified ACME account, including @@ -365,8 +501,6 @@ async def describe_acme_account( binding. Args: - input: - An instance of `DescribeAcmeAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -376,12 +510,34 @@ async def describe_acme_account( Returns: An instance of `DescribeAcmeAccountOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ACME_ACCOUNT, [], plugins) + async def describe_acme_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAcmeAccountOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ACME_ACCOUNT, args, kwargs), + _models.DESCRIBE_ACME_ACCOUNT, + [], + plugins, + ) + + @_overload + async def describe_acme_domain_validation( + self, + request: _models.DescribeAcmeDomainValidationInput + | _models.DescribeAcmeDomainValidationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAcmeDomainValidationOutput: ... + + @_overload async def describe_acme_domain_validation( self, - input: DescribeAcmeDomainValidationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAcmeDomainValidationInputDict], ) -> DescribeAcmeDomainValidationOutput: """ Returns detailed metadata about the specified domain validation, @@ -389,8 +545,6 @@ async def describe_acme_domain_validation( for validation. Args: - input: - An instance of `DescribeAcmeDomainValidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -400,12 +554,34 @@ async def describe_acme_domain_validation( Returns: An instance of `DescribeAcmeDomainValidationOutput`. """ + + async def describe_acme_domain_validation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAcmeDomainValidationOutput: return await self._invoke( - input, _models.DESCRIBE_ACME_DOMAIN_VALIDATION, [], plugins + self._select_input(_models.DESCRIBE_ACME_DOMAIN_VALIDATION, args, kwargs), + _models.DESCRIBE_ACME_DOMAIN_VALIDATION, + [], + plugins, ) + @_overload + async def describe_acme_endpoint( + self, + request: _models.DescribeAcmeEndpointInput + | _models.DescribeAcmeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAcmeEndpointOutput: ... + + @_overload async def describe_acme_endpoint( - self, input: DescribeAcmeEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAcmeEndpointInputDict], ) -> DescribeAcmeEndpointOutput: """ Returns detailed metadata about the specified ACME endpoint, including @@ -413,8 +589,6 @@ async def describe_acme_endpoint( configuration. Args: - input: - An instance of `DescribeAcmeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -424,20 +598,40 @@ async def describe_acme_endpoint( Returns: An instance of `DescribeAcmeEndpointOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ACME_ENDPOINT, [], plugins) + async def describe_acme_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAcmeEndpointOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ACME_ENDPOINT, args, kwargs), + _models.DESCRIBE_ACME_ENDPOINT, + [], + plugins, + ) + + @_overload + async def describe_acme_external_account_binding( + self, + request: _models.DescribeAcmeExternalAccountBindingInput + | _models.DescribeAcmeExternalAccountBindingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAcmeExternalAccountBindingOutput: ... + + @_overload async def describe_acme_external_account_binding( self, - input: DescribeAcmeExternalAccountBindingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAcmeExternalAccountBindingInputDict], ) -> DescribeAcmeExternalAccountBindingOutput: """ Returns detailed metadata about the specified external account binding, including the associated IAM role, expiration time, and usage history. Args: - input: - An instance of `DescribeAcmeExternalAccountBindingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -447,12 +641,36 @@ async def describe_acme_external_account_binding( Returns: An instance of `DescribeAcmeExternalAccountBindingOutput`. """ + + async def describe_acme_external_account_binding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAcmeExternalAccountBindingOutput: return await self._invoke( - input, _models.DESCRIBE_ACME_EXTERNAL_ACCOUNT_BINDING, [], plugins + self._select_input( + _models.DESCRIBE_ACME_EXTERNAL_ACCOUNT_BINDING, args, kwargs + ), + _models.DESCRIBE_ACME_EXTERNAL_ACCOUNT_BINDING, + [], + plugins, ) + @_overload async def describe_certificate( - self, input: DescribeCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeCertificateInput + | _models.DescribeCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCertificateOutput: ... + + @_overload + async def describe_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCertificateInputDict], ) -> DescribeCertificateOutput: """ Returns detailed metadata about the specified ACM certificate. @@ -462,8 +680,6 @@ async def describe_certificate( information about it. Args: - input: - An instance of `DescribeCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -473,10 +689,33 @@ async def describe_certificate( Returns: An instance of `DescribeCertificateOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CERTIFICATE, [], plugins) + async def describe_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCertificateOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CERTIFICATE, args, kwargs), + _models.DESCRIBE_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def export_certificate( + self, + request: _models.ExportCertificateInput | _models.ExportCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportCertificateOutput: ... + + @_overload async def export_certificate( - self, input: ExportCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportCertificateInputDict], ) -> ExportCertificateOutput: """ Exports a private certificate issued by a private certificate authority @@ -497,8 +736,6 @@ async def export_certificate( exported. Args: - input: - An instance of `ExportCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -508,18 +745,40 @@ async def export_certificate( Returns: An instance of `ExportCertificateOutput`. """ - return await self._invoke(input, _models.EXPORT_CERTIFICATE, [], plugins) + async def export_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportCertificateOutput: + return await self._invoke( + self._select_input(_models.EXPORT_CERTIFICATE, args, kwargs), + _models.EXPORT_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def get_account_configuration( + self, + request: _models.GetAccountConfigurationInput + | _models.GetAccountConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountConfigurationOutput: ... + + @_overload async def get_account_configuration( - self, input: GetAccountConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountConfigurationInputDict], ) -> GetAccountConfigurationOutput: """ Returns the account configuration options associated with an Amazon Web Services account. Args: - input: - An instance of `GetAccountConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -529,12 +788,34 @@ async def get_account_configuration( Returns: An instance of `GetAccountConfigurationOutput`. """ - return await self._invoke(input, _models.GET_ACCOUNT_CONFIGURATION, [], plugins) + async def get_account_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountConfigurationOutput: + return await self._invoke( + self._select_input(_models.GET_ACCOUNT_CONFIGURATION, args, kwargs), + _models.GET_ACCOUNT_CONFIGURATION, + [], + plugins, + ) + + @_overload async def get_acme_external_account_binding_credentials( self, - input: GetAcmeExternalAccountBindingCredentialsInput, + request: _models.GetAcmeExternalAccountBindingCredentialsInput + | _models.GetAcmeExternalAccountBindingCredentialsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAcmeExternalAccountBindingCredentialsOutput: ... + + @_overload + async def get_acme_external_account_binding_credentials( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAcmeExternalAccountBindingCredentialsInputDict], ) -> GetAcmeExternalAccountBindingCredentialsOutput: """ Retrieves the key ID and MAC key credentials for an external account @@ -542,8 +823,6 @@ async def get_acme_external_account_binding_credentials( registration to bind to the endpoint. Args: - input: - An instance of `GetAcmeExternalAccountBindingCredentialsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -553,12 +832,35 @@ async def get_acme_external_account_binding_credentials( Returns: An instance of `GetAcmeExternalAccountBindingCredentialsOutput`. """ + + async def get_acme_external_account_binding_credentials( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAcmeExternalAccountBindingCredentialsOutput: return await self._invoke( - input, _models.GET_ACME_EXTERNAL_ACCOUNT_BINDING_CREDENTIALS, [], plugins + self._select_input( + _models.GET_ACME_EXTERNAL_ACCOUNT_BINDING_CREDENTIALS, args, kwargs + ), + _models.GET_ACME_EXTERNAL_ACCOUNT_BINDING_CREDENTIALS, + [], + plugins, ) + @_overload + async def get_certificate( + self, + request: _models.GetCertificateInput | _models.GetCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCertificateOutput: ... + + @_overload async def get_certificate( - self, input: GetCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCertificateInputDict], ) -> GetCertificateOutput: """ Retrieves a certificate and its certificate chain. The certificate may @@ -571,8 +873,6 @@ async def get_certificate( decode the certificates and inspect individual fields. Args: - input: - An instance of `GetCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -582,10 +882,33 @@ async def get_certificate( Returns: An instance of `GetCertificateOutput`. """ - return await self._invoke(input, _models.GET_CERTIFICATE, [], plugins) + async def get_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCertificateOutput: + return await self._invoke( + self._select_input(_models.GET_CERTIFICATE, args, kwargs), + _models.GET_CERTIFICATE, + [], + plugins, + ) + + @_overload async def import_certificate( - self, input: ImportCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.ImportCertificateInput | _models.ImportCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportCertificateOutput: ... + + @_overload + async def import_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportCertificateInputDict], ) -> ImportCertificateOutput: """ Imports a certificate into Certificate Manager (ACM) to use with @@ -631,8 +954,8 @@ async def import_certificate( - When you import a certificate by using the CLI, you must specify the certificate, the certificate chain, and the private key by their file names preceded by `fileb://`. For example, you can specify a - certificate saved in the `C:\temp` folder as - `fileb://C:\temp\\certificate_to_import.pem`. If you are making an HTTP + certificate saved in the `C:\\temp` folder as + `fileb://C:\\temp\\certificate_to_import.pem`. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs. - When you import a certificate by using an SDK, you must specify the @@ -648,8 +971,6 @@ async def import_certificate( of the imported certificate. Args: - input: - An instance of `ImportCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -659,10 +980,33 @@ async def import_certificate( Returns: An instance of `ImportCertificateOutput`. """ - return await self._invoke(input, _models.IMPORT_CERTIFICATE, [], plugins) + async def import_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportCertificateOutput: + return await self._invoke( + self._select_input(_models.IMPORT_CERTIFICATE, args, kwargs), + _models.IMPORT_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def list_acme_accounts( + self, + request: _models.ListAcmeAccountsInput | _models.ListAcmeAccountsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAcmeAccountsOutput: ... + + @_overload async def list_acme_accounts( - self, input: ListAcmeAccountsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAcmeAccountsInputDict], ) -> ListAcmeAccountsOutput: """ Retrieves a list of ACME accounts registered with the specified ACME @@ -670,8 +1014,6 @@ async def list_acme_accounts( binding credentials to register. Args: - input: - An instance of `ListAcmeAccountsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -681,17 +1023,39 @@ async def list_acme_accounts( Returns: An instance of `ListAcmeAccountsOutput`. """ - return await self._invoke(input, _models.LIST_ACME_ACCOUNTS, [], plugins) + async def list_acme_accounts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAcmeAccountsOutput: + return await self._invoke( + self._select_input(_models.LIST_ACME_ACCOUNTS, args, kwargs), + _models.LIST_ACME_ACCOUNTS, + [], + plugins, + ) + + @_overload + async def list_acme_domain_validations( + self, + request: _models.ListAcmeDomainValidationsInput + | _models.ListAcmeDomainValidationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAcmeDomainValidationsOutput: ... + + @_overload async def list_acme_domain_validations( - self, input: ListAcmeDomainValidationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAcmeDomainValidationsInputDict], ) -> ListAcmeDomainValidationsOutput: """ Retrieves a list of domain validations for the specified ACME endpoint. Args: - input: - An instance of `ListAcmeDomainValidationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -701,20 +1065,39 @@ async def list_acme_domain_validations( Returns: An instance of `ListAcmeDomainValidationsOutput`. """ + + async def list_acme_domain_validations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAcmeDomainValidationsOutput: return await self._invoke( - input, _models.LIST_ACME_DOMAIN_VALIDATIONS, [], plugins + self._select_input(_models.LIST_ACME_DOMAIN_VALIDATIONS, args, kwargs), + _models.LIST_ACME_DOMAIN_VALIDATIONS, + [], + plugins, ) + @_overload + async def list_acme_endpoints( + self, + request: _models.ListAcmeEndpointsInput | _models.ListAcmeEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAcmeEndpointsOutput: ... + + @_overload async def list_acme_endpoints( - self, input: ListAcmeEndpointsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAcmeEndpointsInputDict], ) -> ListAcmeEndpointsOutput: """ Retrieves a list of ACME endpoints in your account. Use this operation to view all configured ACME endpoints and their current status. Args: - input: - An instance of `ListAcmeEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -724,20 +1107,40 @@ async def list_acme_endpoints( Returns: An instance of `ListAcmeEndpointsOutput`. """ - return await self._invoke(input, _models.LIST_ACME_ENDPOINTS, [], plugins) + async def list_acme_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAcmeEndpointsOutput: + return await self._invoke( + self._select_input(_models.LIST_ACME_ENDPOINTS, args, kwargs), + _models.LIST_ACME_ENDPOINTS, + [], + plugins, + ) + + @_overload async def list_acme_external_account_bindings( self, - input: ListAcmeExternalAccountBindingsInput, + request: _models.ListAcmeExternalAccountBindingsInput + | _models.ListAcmeExternalAccountBindingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListAcmeExternalAccountBindingsOutput: ... + + @_overload + async def list_acme_external_account_bindings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAcmeExternalAccountBindingsInputDict], ) -> ListAcmeExternalAccountBindingsOutput: """ Retrieves a list of external account bindings for the specified ACME endpoint. Args: - input: - An instance of `ListAcmeExternalAccountBindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -747,14 +1150,36 @@ async def list_acme_external_account_bindings( Returns: An instance of `ListAcmeExternalAccountBindingsOutput`. """ + + async def list_acme_external_account_bindings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAcmeExternalAccountBindingsOutput: return await self._invoke( - input, _models.LIST_ACME_EXTERNAL_ACCOUNT_BINDINGS, [], plugins + self._select_input( + _models.LIST_ACME_EXTERNAL_ACCOUNT_BINDINGS, args, kwargs + ), + _models.LIST_ACME_EXTERNAL_ACCOUNT_BINDINGS, + [], + plugins, ) + @_overload async def list_certificate_domain_validations( self, - input: ListCertificateDomainValidationsInput, + request: _models.ListCertificateDomainValidationsInput + | _models.ListCertificateDomainValidationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListCertificateDomainValidationsOutput: ... + + @_overload + async def list_certificate_domain_validations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCertificateDomainValidationsInputDict], ) -> ListCertificateDomainValidationsOutput: """ Returns per-domain validation summaries for an ACM certificate. Each @@ -765,8 +1190,6 @@ async def list_certificate_domain_validations( CNAME records required for DNS validation. Args: - input: - An instance of `ListCertificateDomainValidationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -776,12 +1199,35 @@ async def list_certificate_domain_validations( Returns: An instance of `ListCertificateDomainValidationsOutput`. """ + + async def list_certificate_domain_validations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCertificateDomainValidationsOutput: return await self._invoke( - input, _models.LIST_CERTIFICATE_DOMAIN_VALIDATIONS, [], plugins + self._select_input( + _models.LIST_CERTIFICATE_DOMAIN_VALIDATIONS, args, kwargs + ), + _models.LIST_CERTIFICATE_DOMAIN_VALIDATIONS, + [], + plugins, ) + @_overload + async def list_certificates( + self, + request: _models.ListCertificatesInput | _models.ListCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCertificatesOutput: ... + + @_overload async def list_certificates( - self, input: ListCertificatesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCertificatesInputDict], ) -> ListCertificatesOutput: """ Retrieves a list of certificate ARNs and domain names. You can request @@ -795,8 +1241,6 @@ async def list_certificates( specify `ACME` in the `CertificateKeyPairOrigins` filter. Args: - input: - An instance of `ListCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -806,10 +1250,34 @@ async def list_certificates( Returns: An instance of `ListCertificatesOutput`. """ - return await self._invoke(input, _models.LIST_CERTIFICATES, [], plugins) + async def list_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCertificatesOutput: + return await self._invoke( + self._select_input(_models.LIST_CERTIFICATES, args, kwargs), + _models.LIST_CERTIFICATES, + [], + plugins, + ) + + @_overload async def list_tags_for_certificate( - self, input: ListTagsForCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForCertificateInput + | _models.ListTagsForCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForCertificateOutput: ... + + @_overload + async def list_tags_for_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForCertificateInputDict], ) -> ListTagsForCertificateOutput: """ Lists the tags that have been applied to the ACM certificate. Use the @@ -822,8 +1290,6 @@ async def list_tags_for_certificate( other ACM resource types, use ListTagsForResource instead. Args: - input: - An instance of `ListTagsForCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -833,10 +1299,34 @@ async def list_tags_for_certificate( Returns: An instance of `ListTagsForCertificateOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_CERTIFICATE, [], plugins) + async def list_tags_for_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForCertificateOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_CERTIFICATE, args, kwargs), + _models.LIST_TAGS_FOR_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags associated with an ACM resource. @@ -850,8 +1340,6 @@ async def list_tags_for_resource( more tags, use the UntagResource action. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -861,10 +1349,34 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload async def put_account_configuration( - self, input: PutAccountConfigurationInput, plugins: list[Plugin] | None = None + self, + request: _models.PutAccountConfigurationInput + | _models.PutAccountConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountConfigurationOutput: ... + + @_overload + async def put_account_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountConfigurationInputDict], ) -> PutAccountConfigurationOutput: """ Adds or modifies account-level configurations in ACM. @@ -876,8 +1388,6 @@ async def put_account_configuration( events starting 45 days before certificate expiration. Args: - input: - An instance of `PutAccountConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -887,10 +1397,34 @@ async def put_account_configuration( Returns: An instance of `PutAccountConfigurationOutput`. """ - return await self._invoke(input, _models.PUT_ACCOUNT_CONFIGURATION, [], plugins) + async def put_account_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountConfigurationOutput: + return await self._invoke( + self._select_input(_models.PUT_ACCOUNT_CONFIGURATION, args, kwargs), + _models.PUT_ACCOUNT_CONFIGURATION, + [], + plugins, + ) + + @_overload + async def remove_tags_from_certificate( + self, + request: _models.RemoveTagsFromCertificateInput + | _models.RemoveTagsFromCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveTagsFromCertificateOutput: ... + + @_overload async def remove_tags_from_certificate( - self, input: RemoveTagsFromCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveTagsFromCertificateInputDict], ) -> RemoveTagsFromCertificateOutput: """ Remove one or more tags from an ACM certificate. A tag consists of a @@ -908,8 +1442,6 @@ async def remove_tags_from_certificate( certificate, use the ListTagsForCertificate action. Args: - input: - An instance of `RemoveTagsFromCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -919,12 +1451,33 @@ async def remove_tags_from_certificate( Returns: An instance of `RemoveTagsFromCertificateOutput`. """ + + async def remove_tags_from_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveTagsFromCertificateOutput: return await self._invoke( - input, _models.REMOVE_TAGS_FROM_CERTIFICATE, [], plugins + self._select_input(_models.REMOVE_TAGS_FROM_CERTIFICATE, args, kwargs), + _models.REMOVE_TAGS_FROM_CERTIFICATE, + [], + plugins, ) + @_overload async def renew_certificate( - self, input: RenewCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.RenewCertificateInput | _models.RenewCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RenewCertificateOutput: ... + + @_overload + async def renew_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RenewCertificateInputDict], ) -> RenewCertificateOutput: """ Renews an [eligible ACM @@ -937,8 +1490,6 @@ async def renew_certificate( in the ACM User Guide. Args: - input: - An instance of `RenewCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -948,10 +1499,33 @@ async def renew_certificate( Returns: An instance of `RenewCertificateOutput`. """ - return await self._invoke(input, _models.RENEW_CERTIFICATE, [], plugins) + async def renew_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RenewCertificateOutput: + return await self._invoke( + self._select_input(_models.RENEW_CERTIFICATE, args, kwargs), + _models.RENEW_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def request_certificate( + self, + request: _models.RequestCertificateInput | _models.RequestCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RequestCertificateOutput: ... + + @_overload async def request_certificate( - self, input: RequestCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RequestCertificateInputDict], ) -> RequestCertificateOutput: """ Requests an ACM certificate for use with other Amazon Web Services @@ -980,8 +1554,6 @@ async def request_certificate( new certificate. Args: - input: - An instance of `RequestCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -991,10 +1563,34 @@ async def request_certificate( Returns: An instance of `RequestCertificateOutput`. """ - return await self._invoke(input, _models.REQUEST_CERTIFICATE, [], plugins) + async def request_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RequestCertificateOutput: + return await self._invoke( + self._select_input(_models.REQUEST_CERTIFICATE, args, kwargs), + _models.REQUEST_CERTIFICATE, + [], + plugins, + ) + + @_overload async def resend_validation_email( - self, input: ResendValidationEmailInput, plugins: list[Plugin] | None = None + self, + request: _models.ResendValidationEmailInput + | _models.ResendValidationEmailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResendValidationEmailOutput: ... + + @_overload + async def resend_validation_email( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResendValidationEmailInputDict], ) -> ResendValidationEmailOutput: """ Resends the email that requests domain ownership validation. The domain @@ -1011,8 +1607,6 @@ async def resend_validation_email( Domain](https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html). Args: - input: - An instance of `ResendValidationEmailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1022,18 +1616,39 @@ async def resend_validation_email( Returns: An instance of `ResendValidationEmailOutput`. """ - return await self._invoke(input, _models.RESEND_VALIDATION_EMAIL, [], plugins) + async def resend_validation_email( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResendValidationEmailOutput: + return await self._invoke( + self._select_input(_models.RESEND_VALIDATION_EMAIL, args, kwargs), + _models.RESEND_VALIDATION_EMAIL, + [], + plugins, + ) + + @_overload + async def revoke_acme_account( + self, + request: _models.RevokeAcmeAccountInput | _models.RevokeAcmeAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeAcmeAccountOutput: ... + + @_overload async def revoke_acme_account( - self, input: RevokeAcmeAccountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeAcmeAccountInputDict], ) -> RevokeAcmeAccountOutput: """ Revokes an ACME account, preventing it from requesting or revoking certificates. This operation is irreversible. Args: - input: - An instance of `RevokeAcmeAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1043,12 +1658,34 @@ async def revoke_acme_account( Returns: An instance of `RevokeAcmeAccountOutput`. """ - return await self._invoke(input, _models.REVOKE_ACME_ACCOUNT, [], plugins) + async def revoke_acme_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeAcmeAccountOutput: + return await self._invoke( + self._select_input(_models.REVOKE_ACME_ACCOUNT, args, kwargs), + _models.REVOKE_ACME_ACCOUNT, + [], + plugins, + ) + + @_overload async def revoke_acme_external_account_binding( self, - input: RevokeAcmeExternalAccountBindingInput, + request: _models.RevokeAcmeExternalAccountBindingInput + | _models.RevokeAcmeExternalAccountBindingInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RevokeAcmeExternalAccountBindingOutput: ... + + @_overload + async def revoke_acme_external_account_binding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeAcmeExternalAccountBindingInputDict], ) -> RevokeAcmeExternalAccountBindingOutput: """ Revokes an external account binding, preventing new ACME accounts from @@ -1057,8 +1694,6 @@ async def revoke_acme_external_account_binding( revoked separately. Args: - input: - An instance of `RevokeAcmeExternalAccountBindingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1068,12 +1703,35 @@ async def revoke_acme_external_account_binding( Returns: An instance of `RevokeAcmeExternalAccountBindingOutput`. """ + + async def revoke_acme_external_account_binding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeAcmeExternalAccountBindingOutput: return await self._invoke( - input, _models.REVOKE_ACME_EXTERNAL_ACCOUNT_BINDING, [], plugins + self._select_input( + _models.REVOKE_ACME_EXTERNAL_ACCOUNT_BINDING, args, kwargs + ), + _models.REVOKE_ACME_EXTERNAL_ACCOUNT_BINDING, + [], + plugins, ) + @_overload + async def revoke_certificate( + self, + request: _models.RevokeCertificateInput | _models.RevokeCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeCertificateOutput: ... + + @_overload async def revoke_certificate( - self, input: RevokeCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeCertificateInputDict], ) -> RevokeCertificateOutput: """ Revokes a public ACM certificate. You can only revoke certificates that @@ -1084,8 +1742,6 @@ async def revoke_certificate( Revoking a certificate is permanent. Args: - input: - An instance of `RevokeCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1095,10 +1751,33 @@ async def revoke_certificate( Returns: An instance of `RevokeCertificateOutput`. """ - return await self._invoke(input, _models.REVOKE_CERTIFICATE, [], plugins) + async def revoke_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeCertificateOutput: + return await self._invoke( + self._select_input(_models.REVOKE_CERTIFICATE, args, kwargs), + _models.REVOKE_CERTIFICATE, + [], + plugins, + ) + + @_overload async def search_certificates( - self, input: SearchCertificatesInput, plugins: list[Plugin] | None = None + self, + request: _models.SearchCertificatesInput | _models.SearchCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchCertificatesOutput: ... + + @_overload + async def search_certificates( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchCertificatesInputDict], ) -> SearchCertificatesOutput: """ Retrieves a list of certificates matching search criteria. You can @@ -1108,8 +1787,6 @@ async def search_certificates( complex filter statements. Args: - input: - An instance of `SearchCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1119,10 +1796,33 @@ async def search_certificates( Returns: An instance of `SearchCertificatesOutput`. """ - return await self._invoke(input, _models.SEARCH_CERTIFICATES, [], plugins) + async def search_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchCertificatesOutput: + return await self._invoke( + self._select_input(_models.SEARCH_CERTIFICATES, args, kwargs), + _models.SEARCH_CERTIFICATES, + [], + plugins, + ) + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + async def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds one or more tags to an ACM resource. Tags are labels that you can @@ -1139,8 +1839,6 @@ async def tag_resource( ListTagsForResource action. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1150,10 +1848,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes one or more tags from an ACM resource. @@ -1168,8 +1889,6 @@ async def untag_resource( action. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1179,20 +1898,40 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_acme_domain_validation( + self, + request: _models.UpdateAcmeDomainValidationInput + | _models.UpdateAcmeDomainValidationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAcmeDomainValidationOutput: ... + + @_overload async def update_acme_domain_validation( self, - input: UpdateAcmeDomainValidationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAcmeDomainValidationInputDict], ) -> UpdateAcmeDomainValidationOutput: """ Updates the prevalidation configuration of an existing domain validation. Args: - input: - An instance of `UpdateAcmeDomainValidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1202,12 +1941,33 @@ async def update_acme_domain_validation( Returns: An instance of `UpdateAcmeDomainValidationOutput`. """ + + async def update_acme_domain_validation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAcmeDomainValidationOutput: return await self._invoke( - input, _models.UPDATE_ACME_DOMAIN_VALIDATION, [], plugins + self._select_input(_models.UPDATE_ACME_DOMAIN_VALIDATION, args, kwargs), + _models.UPDATE_ACME_DOMAIN_VALIDATION, + [], + plugins, ) + @_overload + async def update_acme_endpoint( + self, + request: _models.UpdateAcmeEndpointInput | _models.UpdateAcmeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAcmeEndpointOutput: ... + + @_overload async def update_acme_endpoint( - self, input: UpdateAcmeEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAcmeEndpointInputDict], ) -> UpdateAcmeEndpointOutput: """ Updates the configuration of an existing ACME endpoint. You can change @@ -1215,8 +1975,6 @@ async def update_acme_endpoint( authority settings. Args: - input: - An instance of `UpdateAcmeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1226,10 +1984,34 @@ async def update_acme_endpoint( Returns: An instance of `UpdateAcmeEndpointOutput`. """ - return await self._invoke(input, _models.UPDATE_ACME_ENDPOINT, [], plugins) + async def update_acme_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAcmeEndpointOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ACME_ENDPOINT, args, kwargs), + _models.UPDATE_ACME_ENDPOINT, + [], + plugins, + ) + + @_overload + async def update_certificate_options( + self, + request: _models.UpdateCertificateOptionsInput + | _models.UpdateCertificateOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCertificateOptionsOutput: ... + + @_overload async def update_certificate_options( - self, input: UpdateCertificateOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCertificateOptionsInputDict], ) -> UpdateCertificateOptionsOutput: """ Updates certificate options. You can use this operation to change the @@ -1240,8 +2022,6 @@ async def update_certificate_options( Certificates](https://docs.aws.amazon.com/acm/latest/userguide/acm-exportable-certificates.html). Args: - input: - An instance of `UpdateCertificateOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1251,8 +2031,15 @@ async def update_certificate_options( Returns: An instance of `UpdateCertificateOptionsOutput`. """ + + async def update_certificate_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCertificateOptionsOutput: return await self._invoke( - input, _models.UPDATE_CERTIFICATE_OPTIONS, [], plugins + self._select_input(_models.UPDATE_CERTIFICATE_OPTIONS, args, kwargs), + _models.UPDATE_CERTIFICATE_OPTIONS, + [], + plugins, ) async def _new_config(self) -> AsyncACMConfig: diff --git a/clients/aws-sdk-acm/src/aws_sdk_acm/client.py b/clients/aws-sdk-acm/src/aws_sdk_acm/client.py index 8934ac14b..4ed8e521e 100644 --- a/clients/aws-sdk-acm/src/aws_sdk_acm/client.py +++ b/clients/aws-sdk-acm/src/aws_sdk_acm/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,85 +20,45 @@ if TYPE_CHECKING: from .models import ( - AddTagsToCertificateInput, AddTagsToCertificateOutput, - CreateAcmeDomainValidationInput, CreateAcmeDomainValidationOutput, - CreateAcmeEndpointInput, CreateAcmeEndpointOutput, - CreateAcmeExternalAccountBindingInput, CreateAcmeExternalAccountBindingOutput, - DeleteAcmeDomainValidationInput, DeleteAcmeDomainValidationOutput, - DeleteAcmeEndpointInput, DeleteAcmeEndpointOutput, - DeleteAcmeExternalAccountBindingInput, DeleteAcmeExternalAccountBindingOutput, - DeleteCertificateInput, DeleteCertificateOutput, - DescribeAcmeAccountInput, DescribeAcmeAccountOutput, - DescribeAcmeDomainValidationInput, DescribeAcmeDomainValidationOutput, - DescribeAcmeEndpointInput, DescribeAcmeEndpointOutput, - DescribeAcmeExternalAccountBindingInput, DescribeAcmeExternalAccountBindingOutput, - DescribeCertificateInput, DescribeCertificateOutput, - ExportCertificateInput, ExportCertificateOutput, - GetAccountConfigurationInput, GetAccountConfigurationOutput, - GetAcmeExternalAccountBindingCredentialsInput, GetAcmeExternalAccountBindingCredentialsOutput, - GetCertificateInput, GetCertificateOutput, - ImportCertificateInput, ImportCertificateOutput, - ListAcmeAccountsInput, ListAcmeAccountsOutput, - ListAcmeDomainValidationsInput, ListAcmeDomainValidationsOutput, - ListAcmeEndpointsInput, ListAcmeEndpointsOutput, - ListAcmeExternalAccountBindingsInput, ListAcmeExternalAccountBindingsOutput, - ListCertificateDomainValidationsInput, ListCertificateDomainValidationsOutput, - ListCertificatesInput, ListCertificatesOutput, - ListTagsForCertificateInput, ListTagsForCertificateOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - PutAccountConfigurationInput, PutAccountConfigurationOutput, - RemoveTagsFromCertificateInput, RemoveTagsFromCertificateOutput, - RenewCertificateInput, RenewCertificateOutput, - RequestCertificateInput, RequestCertificateOutput, - ResendValidationEmailInput, ResendValidationEmailOutput, - RevokeAcmeAccountInput, RevokeAcmeAccountOutput, - RevokeAcmeExternalAccountBindingInput, RevokeAcmeExternalAccountBindingOutput, - RevokeCertificateInput, RevokeCertificateOutput, - SearchCertificatesInput, SearchCertificatesOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAcmeDomainValidationInput, UpdateAcmeDomainValidationOutput, - UpdateAcmeEndpointInput, UpdateAcmeEndpointOutput, - UpdateCertificateOptionsInput, UpdateCertificateOptionsOutput, ) @@ -114,10 +74,25 @@ class ACMClient(Client[ACMConfig]): Guide](https://docs.aws.amazon.com/acm/latest/userguide/). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def add_tags_to_certificate( - self, input: AddTagsToCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.AddTagsToCertificateInput + | _models.AddTagsToCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddTagsToCertificateOutput: ... + + @_overload + def add_tags_to_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddTagsToCertificateInputDict], ) -> AddTagsToCertificateOutput: """ Adds one or more tags to an ACM certificate. Tags are labels that you @@ -146,8 +121,6 @@ def add_tags_to_certificate( ListTagsForCertificate action. Args: - input: - An instance of `AddTagsToCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -157,12 +130,34 @@ def add_tags_to_certificate( Returns: An instance of `AddTagsToCertificateOutput`. """ - return self._invoke(input, _models.ADD_TAGS_TO_CERTIFICATE, [], plugins) + def add_tags_to_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddTagsToCertificateOutput: + return self._invoke( + self._select_input(_models.ADD_TAGS_TO_CERTIFICATE, args, kwargs), + _models.ADD_TAGS_TO_CERTIFICATE, + [], + plugins, + ) + + @_overload def create_acme_domain_validation( self, - input: CreateAcmeDomainValidationInput, + request: _models.CreateAcmeDomainValidationInput + | _models.CreateAcmeDomainValidationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateAcmeDomainValidationOutput: ... + + @_overload + def create_acme_domain_validation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAcmeDomainValidationInputDict], ) -> CreateAcmeDomainValidationOutput: """ Creates a domain validation for an ACME endpoint. Domain validations @@ -170,8 +165,6 @@ def create_acme_domain_validation( You configure prevalidation to prove domain ownership. Args: - input: - An instance of `CreateAcmeDomainValidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -181,10 +174,33 @@ def create_acme_domain_validation( Returns: An instance of `CreateAcmeDomainValidationOutput`. """ - return self._invoke(input, _models.CREATE_ACME_DOMAIN_VALIDATION, [], plugins) + def create_acme_domain_validation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAcmeDomainValidationOutput: + return self._invoke( + self._select_input(_models.CREATE_ACME_DOMAIN_VALIDATION, args, kwargs), + _models.CREATE_ACME_DOMAIN_VALIDATION, + [], + plugins, + ) + + @_overload + def create_acme_endpoint( + self, + request: _models.CreateAcmeEndpointInput | _models.CreateAcmeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAcmeEndpointOutput: ... + + @_overload def create_acme_endpoint( - self, input: CreateAcmeEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAcmeEndpointInputDict], ) -> CreateAcmeEndpointOutput: """ Creates an ACME endpoint, which is a managed ACME server with a unique @@ -192,8 +208,6 @@ def create_acme_endpoint( automate certificate issuance using the ACME protocol. Args: - input: - An instance of `CreateAcmeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -203,12 +217,34 @@ def create_acme_endpoint( Returns: An instance of `CreateAcmeEndpointOutput`. """ - return self._invoke(input, _models.CREATE_ACME_ENDPOINT, [], plugins) + def create_acme_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAcmeEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_ACME_ENDPOINT, args, kwargs), + _models.CREATE_ACME_ENDPOINT, + [], + plugins, + ) + + @_overload def create_acme_external_account_binding( self, - input: CreateAcmeExternalAccountBindingInput, + request: _models.CreateAcmeExternalAccountBindingInput + | _models.CreateAcmeExternalAccountBindingInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateAcmeExternalAccountBindingOutput: ... + + @_overload + def create_acme_external_account_binding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAcmeExternalAccountBindingInputDict], ) -> CreateAcmeExternalAccountBindingOutput: """ Creates an external account binding (EAB) for an ACME endpoint. An EAB @@ -217,8 +253,6 @@ def create_acme_external_account_binding( controls what certificate operations the ACME client can perform. Args: - input: - An instance of `CreateAcmeExternalAccountBindingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -228,22 +262,42 @@ def create_acme_external_account_binding( Returns: An instance of `CreateAcmeExternalAccountBindingOutput`. """ + + def create_acme_external_account_binding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAcmeExternalAccountBindingOutput: return self._invoke( - input, _models.CREATE_ACME_EXTERNAL_ACCOUNT_BINDING, [], plugins + self._select_input( + _models.CREATE_ACME_EXTERNAL_ACCOUNT_BINDING, args, kwargs + ), + _models.CREATE_ACME_EXTERNAL_ACCOUNT_BINDING, + [], + plugins, ) + @_overload def delete_acme_domain_validation( self, - input: DeleteAcmeDomainValidationInput, + request: _models.DeleteAcmeDomainValidationInput + | _models.DeleteAcmeDomainValidationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteAcmeDomainValidationOutput: ... + + @_overload + def delete_acme_domain_validation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAcmeDomainValidationInputDict], ) -> DeleteAcmeDomainValidationOutput: """ Deletes a domain validation. After deletion, the ACME endpoint can no longer issue certificates for the associated domain. Args: - input: - An instance of `DeleteAcmeDomainValidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -253,10 +307,33 @@ def delete_acme_domain_validation( Returns: An instance of `DeleteAcmeDomainValidationOutput`. """ - return self._invoke(input, _models.DELETE_ACME_DOMAIN_VALIDATION, [], plugins) + def delete_acme_domain_validation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAcmeDomainValidationOutput: + return self._invoke( + self._select_input(_models.DELETE_ACME_DOMAIN_VALIDATION, args, kwargs), + _models.DELETE_ACME_DOMAIN_VALIDATION, + [], + plugins, + ) + + @_overload def delete_acme_endpoint( - self, input: DeleteAcmeEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteAcmeEndpointInput | _models.DeleteAcmeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAcmeEndpointOutput: ... + + @_overload + def delete_acme_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAcmeEndpointInputDict], ) -> DeleteAcmeEndpointOutput: """ Deletes an ACME endpoint. After deletion, the endpoint URL is no longer @@ -265,8 +342,6 @@ def delete_acme_endpoint( with the endpoint are also deleted. Args: - input: - An instance of `DeleteAcmeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -276,12 +351,34 @@ def delete_acme_endpoint( Returns: An instance of `DeleteAcmeEndpointOutput`. """ - return self._invoke(input, _models.DELETE_ACME_ENDPOINT, [], plugins) + def delete_acme_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAcmeEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_ACME_ENDPOINT, args, kwargs), + _models.DELETE_ACME_ENDPOINT, + [], + plugins, + ) + + @_overload + def delete_acme_external_account_binding( + self, + request: _models.DeleteAcmeExternalAccountBindingInput + | _models.DeleteAcmeExternalAccountBindingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAcmeExternalAccountBindingOutput: ... + + @_overload def delete_acme_external_account_binding( self, - input: DeleteAcmeExternalAccountBindingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAcmeExternalAccountBindingInputDict], ) -> DeleteAcmeExternalAccountBindingOutput: """ Deletes an external account binding. Previously fetched credentials for @@ -289,8 +386,6 @@ def delete_acme_external_account_binding( deleted binding cannot be recovered. Args: - input: - An instance of `DeleteAcmeExternalAccountBindingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -300,12 +395,35 @@ def delete_acme_external_account_binding( Returns: An instance of `DeleteAcmeExternalAccountBindingOutput`. """ + + def delete_acme_external_account_binding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAcmeExternalAccountBindingOutput: return self._invoke( - input, _models.DELETE_ACME_EXTERNAL_ACCOUNT_BINDING, [], plugins + self._select_input( + _models.DELETE_ACME_EXTERNAL_ACCOUNT_BINDING, args, kwargs + ), + _models.DELETE_ACME_EXTERNAL_ACCOUNT_BINDING, + [], + plugins, ) + @_overload + def delete_certificate( + self, + request: _models.DeleteCertificateInput | _models.DeleteCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCertificateOutput: ... + + @_overload def delete_certificate( - self, input: DeleteCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCertificateInputDict], ) -> DeleteCertificateOutput: """ Deletes a certificate and its associated private key. If this action @@ -339,8 +457,6 @@ def delete_certificate( in the *Amazon Web Services Private Certificate Authority User Guide*. Args: - input: - An instance of `DeleteCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -350,10 +466,34 @@ def delete_certificate( Returns: An instance of `DeleteCertificateOutput`. """ - return self._invoke(input, _models.DELETE_CERTIFICATE, [], plugins) + def delete_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCertificateOutput: + return self._invoke( + self._select_input(_models.DELETE_CERTIFICATE, args, kwargs), + _models.DELETE_CERTIFICATE, + [], + plugins, + ) + + @_overload + def describe_acme_account( + self, + request: _models.DescribeAcmeAccountInput + | _models.DescribeAcmeAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAcmeAccountOutput: ... + + @_overload def describe_acme_account( - self, input: DescribeAcmeAccountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAcmeAccountInputDict], ) -> DescribeAcmeAccountOutput: """ Returns detailed metadata about the specified ACME account, including @@ -361,8 +501,6 @@ def describe_acme_account( binding. Args: - input: - An instance of `DescribeAcmeAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -372,12 +510,34 @@ def describe_acme_account( Returns: An instance of `DescribeAcmeAccountOutput`. """ - return self._invoke(input, _models.DESCRIBE_ACME_ACCOUNT, [], plugins) + def describe_acme_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAcmeAccountOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ACME_ACCOUNT, args, kwargs), + _models.DESCRIBE_ACME_ACCOUNT, + [], + plugins, + ) + + @_overload def describe_acme_domain_validation( self, - input: DescribeAcmeDomainValidationInput, + request: _models.DescribeAcmeDomainValidationInput + | _models.DescribeAcmeDomainValidationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeAcmeDomainValidationOutput: ... + + @_overload + def describe_acme_domain_validation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAcmeDomainValidationInputDict], ) -> DescribeAcmeDomainValidationOutput: """ Returns detailed metadata about the specified domain validation, @@ -385,8 +545,6 @@ def describe_acme_domain_validation( for validation. Args: - input: - An instance of `DescribeAcmeDomainValidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -396,10 +554,34 @@ def describe_acme_domain_validation( Returns: An instance of `DescribeAcmeDomainValidationOutput`. """ - return self._invoke(input, _models.DESCRIBE_ACME_DOMAIN_VALIDATION, [], plugins) + def describe_acme_domain_validation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAcmeDomainValidationOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ACME_DOMAIN_VALIDATION, args, kwargs), + _models.DESCRIBE_ACME_DOMAIN_VALIDATION, + [], + plugins, + ) + + @_overload + def describe_acme_endpoint( + self, + request: _models.DescribeAcmeEndpointInput + | _models.DescribeAcmeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAcmeEndpointOutput: ... + + @_overload def describe_acme_endpoint( - self, input: DescribeAcmeEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAcmeEndpointInputDict], ) -> DescribeAcmeEndpointOutput: """ Returns detailed metadata about the specified ACME endpoint, including @@ -407,8 +589,6 @@ def describe_acme_endpoint( configuration. Args: - input: - An instance of `DescribeAcmeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -418,20 +598,40 @@ def describe_acme_endpoint( Returns: An instance of `DescribeAcmeEndpointOutput`. """ - return self._invoke(input, _models.DESCRIBE_ACME_ENDPOINT, [], plugins) + def describe_acme_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAcmeEndpointOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ACME_ENDPOINT, args, kwargs), + _models.DESCRIBE_ACME_ENDPOINT, + [], + plugins, + ) + + @_overload + def describe_acme_external_account_binding( + self, + request: _models.DescribeAcmeExternalAccountBindingInput + | _models.DescribeAcmeExternalAccountBindingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAcmeExternalAccountBindingOutput: ... + + @_overload def describe_acme_external_account_binding( self, - input: DescribeAcmeExternalAccountBindingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAcmeExternalAccountBindingInputDict], ) -> DescribeAcmeExternalAccountBindingOutput: """ Returns detailed metadata about the specified external account binding, including the associated IAM role, expiration time, and usage history. Args: - input: - An instance of `DescribeAcmeExternalAccountBindingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -441,12 +641,36 @@ def describe_acme_external_account_binding( Returns: An instance of `DescribeAcmeExternalAccountBindingOutput`. """ + + def describe_acme_external_account_binding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAcmeExternalAccountBindingOutput: return self._invoke( - input, _models.DESCRIBE_ACME_EXTERNAL_ACCOUNT_BINDING, [], plugins + self._select_input( + _models.DESCRIBE_ACME_EXTERNAL_ACCOUNT_BINDING, args, kwargs + ), + _models.DESCRIBE_ACME_EXTERNAL_ACCOUNT_BINDING, + [], + plugins, ) + @_overload + def describe_certificate( + self, + request: _models.DescribeCertificateInput + | _models.DescribeCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCertificateOutput: ... + + @_overload def describe_certificate( - self, input: DescribeCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCertificateInputDict], ) -> DescribeCertificateOutput: """ Returns detailed metadata about the specified ACM certificate. @@ -456,8 +680,6 @@ def describe_certificate( information about it. Args: - input: - An instance of `DescribeCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -467,10 +689,33 @@ def describe_certificate( Returns: An instance of `DescribeCertificateOutput`. """ - return self._invoke(input, _models.DESCRIBE_CERTIFICATE, [], plugins) + def describe_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCertificateOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CERTIFICATE, args, kwargs), + _models.DESCRIBE_CERTIFICATE, + [], + plugins, + ) + + @_overload def export_certificate( - self, input: ExportCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.ExportCertificateInput | _models.ExportCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportCertificateOutput: ... + + @_overload + def export_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportCertificateInputDict], ) -> ExportCertificateOutput: """ Exports a private certificate issued by a private certificate authority @@ -491,8 +736,6 @@ def export_certificate( exported. Args: - input: - An instance of `ExportCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -502,20 +745,40 @@ def export_certificate( Returns: An instance of `ExportCertificateOutput`. """ - return self._invoke(input, _models.EXPORT_CERTIFICATE, [], plugins) + def export_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportCertificateOutput: + return self._invoke( + self._select_input(_models.EXPORT_CERTIFICATE, args, kwargs), + _models.EXPORT_CERTIFICATE, + [], + plugins, + ) + + @_overload def get_account_configuration( self, - input: GetAccountConfigurationInput | None = None, + request: _models.GetAccountConfigurationInput + | _models.GetAccountConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAccountConfigurationOutput: ... + + @_overload + def get_account_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountConfigurationInputDict], ) -> GetAccountConfigurationOutput: """ Returns the account configuration options associated with an Amazon Web Services account. Args: - input: - An instance of `GetAccountConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -525,12 +788,34 @@ def get_account_configuration( Returns: An instance of `GetAccountConfigurationOutput`. """ - return self._invoke(input, _models.GET_ACCOUNT_CONFIGURATION, [], plugins) + def get_account_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountConfigurationOutput: + return self._invoke( + self._select_input(_models.GET_ACCOUNT_CONFIGURATION, args, kwargs), + _models.GET_ACCOUNT_CONFIGURATION, + [], + plugins, + ) + + @_overload + def get_acme_external_account_binding_credentials( + self, + request: _models.GetAcmeExternalAccountBindingCredentialsInput + | _models.GetAcmeExternalAccountBindingCredentialsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAcmeExternalAccountBindingCredentialsOutput: ... + + @_overload def get_acme_external_account_binding_credentials( self, - input: GetAcmeExternalAccountBindingCredentialsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAcmeExternalAccountBindingCredentialsInputDict], ) -> GetAcmeExternalAccountBindingCredentialsOutput: """ Retrieves the key ID and MAC key credentials for an external account @@ -538,8 +823,6 @@ def get_acme_external_account_binding_credentials( registration to bind to the endpoint. Args: - input: - An instance of `GetAcmeExternalAccountBindingCredentialsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -549,12 +832,35 @@ def get_acme_external_account_binding_credentials( Returns: An instance of `GetAcmeExternalAccountBindingCredentialsOutput`. """ + + def get_acme_external_account_binding_credentials( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAcmeExternalAccountBindingCredentialsOutput: return self._invoke( - input, _models.GET_ACME_EXTERNAL_ACCOUNT_BINDING_CREDENTIALS, [], plugins + self._select_input( + _models.GET_ACME_EXTERNAL_ACCOUNT_BINDING_CREDENTIALS, args, kwargs + ), + _models.GET_ACME_EXTERNAL_ACCOUNT_BINDING_CREDENTIALS, + [], + plugins, ) + @_overload + def get_certificate( + self, + request: _models.GetCertificateInput | _models.GetCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCertificateOutput: ... + + @_overload def get_certificate( - self, input: GetCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCertificateInputDict], ) -> GetCertificateOutput: """ Retrieves a certificate and its certificate chain. The certificate may @@ -567,8 +873,6 @@ def get_certificate( decode the certificates and inspect individual fields. Args: - input: - An instance of `GetCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -578,10 +882,33 @@ def get_certificate( Returns: An instance of `GetCertificateOutput`. """ - return self._invoke(input, _models.GET_CERTIFICATE, [], plugins) + def get_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCertificateOutput: + return self._invoke( + self._select_input(_models.GET_CERTIFICATE, args, kwargs), + _models.GET_CERTIFICATE, + [], + plugins, + ) + + @_overload + def import_certificate( + self, + request: _models.ImportCertificateInput | _models.ImportCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportCertificateOutput: ... + + @_overload def import_certificate( - self, input: ImportCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportCertificateInputDict], ) -> ImportCertificateOutput: """ Imports a certificate into Certificate Manager (ACM) to use with @@ -627,8 +954,8 @@ def import_certificate( - When you import a certificate by using the CLI, you must specify the certificate, the certificate chain, and the private key by their file names preceded by `fileb://`. For example, you can specify a - certificate saved in the `C:\temp` folder as - `fileb://C:\temp\\certificate_to_import.pem`. If you are making an HTTP + certificate saved in the `C:\\temp` folder as + `fileb://C:\\temp\\certificate_to_import.pem`. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs. - When you import a certificate by using an SDK, you must specify the @@ -644,8 +971,6 @@ def import_certificate( of the imported certificate. Args: - input: - An instance of `ImportCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -655,10 +980,33 @@ def import_certificate( Returns: An instance of `ImportCertificateOutput`. """ - return self._invoke(input, _models.IMPORT_CERTIFICATE, [], plugins) + def import_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportCertificateOutput: + return self._invoke( + self._select_input(_models.IMPORT_CERTIFICATE, args, kwargs), + _models.IMPORT_CERTIFICATE, + [], + plugins, + ) + + @_overload def list_acme_accounts( - self, input: ListAcmeAccountsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAcmeAccountsInput | _models.ListAcmeAccountsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAcmeAccountsOutput: ... + + @_overload + def list_acme_accounts( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAcmeAccountsInputDict], ) -> ListAcmeAccountsOutput: """ Retrieves a list of ACME accounts registered with the specified ACME @@ -666,8 +1014,6 @@ def list_acme_accounts( binding credentials to register. Args: - input: - An instance of `ListAcmeAccountsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -677,17 +1023,39 @@ def list_acme_accounts( Returns: An instance of `ListAcmeAccountsOutput`. """ - return self._invoke(input, _models.LIST_ACME_ACCOUNTS, [], plugins) + def list_acme_accounts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAcmeAccountsOutput: + return self._invoke( + self._select_input(_models.LIST_ACME_ACCOUNTS, args, kwargs), + _models.LIST_ACME_ACCOUNTS, + [], + plugins, + ) + + @_overload + def list_acme_domain_validations( + self, + request: _models.ListAcmeDomainValidationsInput + | _models.ListAcmeDomainValidationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAcmeDomainValidationsOutput: ... + + @_overload def list_acme_domain_validations( - self, input: ListAcmeDomainValidationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAcmeDomainValidationsInputDict], ) -> ListAcmeDomainValidationsOutput: """ Retrieves a list of domain validations for the specified ACME endpoint. Args: - input: - An instance of `ListAcmeDomainValidationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -697,20 +1065,39 @@ def list_acme_domain_validations( Returns: An instance of `ListAcmeDomainValidationsOutput`. """ - return self._invoke(input, _models.LIST_ACME_DOMAIN_VALIDATIONS, [], plugins) + def list_acme_domain_validations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAcmeDomainValidationsOutput: + return self._invoke( + self._select_input(_models.LIST_ACME_DOMAIN_VALIDATIONS, args, kwargs), + _models.LIST_ACME_DOMAIN_VALIDATIONS, + [], + plugins, + ) + + @_overload + def list_acme_endpoints( + self, + request: _models.ListAcmeEndpointsInput | _models.ListAcmeEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAcmeEndpointsOutput: ... + + @_overload def list_acme_endpoints( self, - input: ListAcmeEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAcmeEndpointsInputDict], ) -> ListAcmeEndpointsOutput: """ Retrieves a list of ACME endpoints in your account. Use this operation to view all configured ACME endpoints and their current status. Args: - input: - An instance of `ListAcmeEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -720,20 +1107,40 @@ def list_acme_endpoints( Returns: An instance of `ListAcmeEndpointsOutput`. """ - return self._invoke(input, _models.LIST_ACME_ENDPOINTS, [], plugins) + def list_acme_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAcmeEndpointsOutput: + return self._invoke( + self._select_input(_models.LIST_ACME_ENDPOINTS, args, kwargs), + _models.LIST_ACME_ENDPOINTS, + [], + plugins, + ) + + @_overload def list_acme_external_account_bindings( self, - input: ListAcmeExternalAccountBindingsInput, + request: _models.ListAcmeExternalAccountBindingsInput + | _models.ListAcmeExternalAccountBindingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListAcmeExternalAccountBindingsOutput: ... + + @_overload + def list_acme_external_account_bindings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAcmeExternalAccountBindingsInputDict], ) -> ListAcmeExternalAccountBindingsOutput: """ Retrieves a list of external account bindings for the specified ACME endpoint. Args: - input: - An instance of `ListAcmeExternalAccountBindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -743,14 +1150,36 @@ def list_acme_external_account_bindings( Returns: An instance of `ListAcmeExternalAccountBindingsOutput`. """ + + def list_acme_external_account_bindings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAcmeExternalAccountBindingsOutput: return self._invoke( - input, _models.LIST_ACME_EXTERNAL_ACCOUNT_BINDINGS, [], plugins + self._select_input( + _models.LIST_ACME_EXTERNAL_ACCOUNT_BINDINGS, args, kwargs + ), + _models.LIST_ACME_EXTERNAL_ACCOUNT_BINDINGS, + [], + plugins, ) + @_overload + def list_certificate_domain_validations( + self, + request: _models.ListCertificateDomainValidationsInput + | _models.ListCertificateDomainValidationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCertificateDomainValidationsOutput: ... + + @_overload def list_certificate_domain_validations( self, - input: ListCertificateDomainValidationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCertificateDomainValidationsInputDict], ) -> ListCertificateDomainValidationsOutput: """ Returns per-domain validation summaries for an ACM certificate. Each @@ -761,8 +1190,6 @@ def list_certificate_domain_validations( CNAME records required for DNS validation. Args: - input: - An instance of `ListCertificateDomainValidationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -772,14 +1199,35 @@ def list_certificate_domain_validations( Returns: An instance of `ListCertificateDomainValidationsOutput`. """ + + def list_certificate_domain_validations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCertificateDomainValidationsOutput: return self._invoke( - input, _models.LIST_CERTIFICATE_DOMAIN_VALIDATIONS, [], plugins + self._select_input( + _models.LIST_CERTIFICATE_DOMAIN_VALIDATIONS, args, kwargs + ), + _models.LIST_CERTIFICATE_DOMAIN_VALIDATIONS, + [], + plugins, ) + @_overload + def list_certificates( + self, + request: _models.ListCertificatesInput | _models.ListCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCertificatesOutput: ... + + @_overload def list_certificates( self, - input: ListCertificatesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCertificatesInputDict], ) -> ListCertificatesOutput: """ Retrieves a list of certificate ARNs and domain names. You can request @@ -793,8 +1241,6 @@ def list_certificates( specify `ACME` in the `CertificateKeyPairOrigins` filter. Args: - input: - An instance of `ListCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -804,10 +1250,34 @@ def list_certificates( Returns: An instance of `ListCertificatesOutput`. """ - return self._invoke(input, _models.LIST_CERTIFICATES, [], plugins) + def list_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCertificatesOutput: + return self._invoke( + self._select_input(_models.LIST_CERTIFICATES, args, kwargs), + _models.LIST_CERTIFICATES, + [], + plugins, + ) + + @_overload def list_tags_for_certificate( - self, input: ListTagsForCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForCertificateInput + | _models.ListTagsForCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForCertificateOutput: ... + + @_overload + def list_tags_for_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForCertificateInputDict], ) -> ListTagsForCertificateOutput: """ Lists the tags that have been applied to the ACM certificate. Use the @@ -820,8 +1290,6 @@ def list_tags_for_certificate( other ACM resource types, use ListTagsForResource instead. Args: - input: - An instance of `ListTagsForCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -831,10 +1299,34 @@ def list_tags_for_certificate( Returns: An instance of `ListTagsForCertificateOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_CERTIFICATE, [], plugins) + def list_tags_for_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForCertificateOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_CERTIFICATE, args, kwargs), + _models.LIST_TAGS_FOR_CERTIFICATE, + [], + plugins, + ) + + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags associated with an ACM resource. @@ -848,8 +1340,6 @@ def list_tags_for_resource( more tags, use the UntagResource action. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -859,10 +1349,34 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload def put_account_configuration( - self, input: PutAccountConfigurationInput, plugins: list[Plugin] | None = None + self, + request: _models.PutAccountConfigurationInput + | _models.PutAccountConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountConfigurationOutput: ... + + @_overload + def put_account_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountConfigurationInputDict], ) -> PutAccountConfigurationOutput: """ Adds or modifies account-level configurations in ACM. @@ -874,8 +1388,6 @@ def put_account_configuration( events starting 45 days before certificate expiration. Args: - input: - An instance of `PutAccountConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -885,10 +1397,34 @@ def put_account_configuration( Returns: An instance of `PutAccountConfigurationOutput`. """ - return self._invoke(input, _models.PUT_ACCOUNT_CONFIGURATION, [], plugins) + def put_account_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountConfigurationOutput: + return self._invoke( + self._select_input(_models.PUT_ACCOUNT_CONFIGURATION, args, kwargs), + _models.PUT_ACCOUNT_CONFIGURATION, + [], + plugins, + ) + + @_overload def remove_tags_from_certificate( - self, input: RemoveTagsFromCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.RemoveTagsFromCertificateInput + | _models.RemoveTagsFromCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveTagsFromCertificateOutput: ... + + @_overload + def remove_tags_from_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveTagsFromCertificateInputDict], ) -> RemoveTagsFromCertificateOutput: """ Remove one or more tags from an ACM certificate. A tag consists of a @@ -906,8 +1442,6 @@ def remove_tags_from_certificate( certificate, use the ListTagsForCertificate action. Args: - input: - An instance of `RemoveTagsFromCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -917,10 +1451,33 @@ def remove_tags_from_certificate( Returns: An instance of `RemoveTagsFromCertificateOutput`. """ - return self._invoke(input, _models.REMOVE_TAGS_FROM_CERTIFICATE, [], plugins) + def remove_tags_from_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveTagsFromCertificateOutput: + return self._invoke( + self._select_input(_models.REMOVE_TAGS_FROM_CERTIFICATE, args, kwargs), + _models.REMOVE_TAGS_FROM_CERTIFICATE, + [], + plugins, + ) + + @_overload def renew_certificate( - self, input: RenewCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.RenewCertificateInput | _models.RenewCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RenewCertificateOutput: ... + + @_overload + def renew_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RenewCertificateInputDict], ) -> RenewCertificateOutput: """ Renews an [eligible ACM @@ -933,8 +1490,6 @@ def renew_certificate( in the ACM User Guide. Args: - input: - An instance of `RenewCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -944,10 +1499,33 @@ def renew_certificate( Returns: An instance of `RenewCertificateOutput`. """ - return self._invoke(input, _models.RENEW_CERTIFICATE, [], plugins) + def renew_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RenewCertificateOutput: + return self._invoke( + self._select_input(_models.RENEW_CERTIFICATE, args, kwargs), + _models.RENEW_CERTIFICATE, + [], + plugins, + ) + + @_overload + def request_certificate( + self, + request: _models.RequestCertificateInput | _models.RequestCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RequestCertificateOutput: ... + + @_overload def request_certificate( - self, input: RequestCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RequestCertificateInputDict], ) -> RequestCertificateOutput: """ Requests an ACM certificate for use with other Amazon Web Services @@ -976,8 +1554,6 @@ def request_certificate( new certificate. Args: - input: - An instance of `RequestCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -987,10 +1563,34 @@ def request_certificate( Returns: An instance of `RequestCertificateOutput`. """ - return self._invoke(input, _models.REQUEST_CERTIFICATE, [], plugins) + def request_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RequestCertificateOutput: + return self._invoke( + self._select_input(_models.REQUEST_CERTIFICATE, args, kwargs), + _models.REQUEST_CERTIFICATE, + [], + plugins, + ) + + @_overload + def resend_validation_email( + self, + request: _models.ResendValidationEmailInput + | _models.ResendValidationEmailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResendValidationEmailOutput: ... + + @_overload def resend_validation_email( - self, input: ResendValidationEmailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResendValidationEmailInputDict], ) -> ResendValidationEmailOutput: """ Resends the email that requests domain ownership validation. The domain @@ -1007,8 +1607,6 @@ def resend_validation_email( Domain](https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html). Args: - input: - An instance of `ResendValidationEmailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1018,18 +1616,39 @@ def resend_validation_email( Returns: An instance of `ResendValidationEmailOutput`. """ - return self._invoke(input, _models.RESEND_VALIDATION_EMAIL, [], plugins) + def resend_validation_email( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResendValidationEmailOutput: + return self._invoke( + self._select_input(_models.RESEND_VALIDATION_EMAIL, args, kwargs), + _models.RESEND_VALIDATION_EMAIL, + [], + plugins, + ) + + @_overload + def revoke_acme_account( + self, + request: _models.RevokeAcmeAccountInput | _models.RevokeAcmeAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeAcmeAccountOutput: ... + + @_overload def revoke_acme_account( - self, input: RevokeAcmeAccountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeAcmeAccountInputDict], ) -> RevokeAcmeAccountOutput: """ Revokes an ACME account, preventing it from requesting or revoking certificates. This operation is irreversible. Args: - input: - An instance of `RevokeAcmeAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1039,12 +1658,34 @@ def revoke_acme_account( Returns: An instance of `RevokeAcmeAccountOutput`. """ - return self._invoke(input, _models.REVOKE_ACME_ACCOUNT, [], plugins) + def revoke_acme_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeAcmeAccountOutput: + return self._invoke( + self._select_input(_models.REVOKE_ACME_ACCOUNT, args, kwargs), + _models.REVOKE_ACME_ACCOUNT, + [], + plugins, + ) + + @_overload def revoke_acme_external_account_binding( self, - input: RevokeAcmeExternalAccountBindingInput, + request: _models.RevokeAcmeExternalAccountBindingInput + | _models.RevokeAcmeExternalAccountBindingInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RevokeAcmeExternalAccountBindingOutput: ... + + @_overload + def revoke_acme_external_account_binding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeAcmeExternalAccountBindingInputDict], ) -> RevokeAcmeExternalAccountBindingOutput: """ Revokes an external account binding, preventing new ACME accounts from @@ -1053,8 +1694,6 @@ def revoke_acme_external_account_binding( revoked separately. Args: - input: - An instance of `RevokeAcmeExternalAccountBindingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1064,12 +1703,35 @@ def revoke_acme_external_account_binding( Returns: An instance of `RevokeAcmeExternalAccountBindingOutput`. """ + + def revoke_acme_external_account_binding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeAcmeExternalAccountBindingOutput: return self._invoke( - input, _models.REVOKE_ACME_EXTERNAL_ACCOUNT_BINDING, [], plugins + self._select_input( + _models.REVOKE_ACME_EXTERNAL_ACCOUNT_BINDING, args, kwargs + ), + _models.REVOKE_ACME_EXTERNAL_ACCOUNT_BINDING, + [], + plugins, ) + @_overload def revoke_certificate( - self, input: RevokeCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.RevokeCertificateInput | _models.RevokeCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeCertificateOutput: ... + + @_overload + def revoke_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeCertificateInputDict], ) -> RevokeCertificateOutput: """ Revokes a public ACM certificate. You can only revoke certificates that @@ -1080,8 +1742,6 @@ def revoke_certificate( Revoking a certificate is permanent. Args: - input: - An instance of `RevokeCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1091,12 +1751,33 @@ def revoke_certificate( Returns: An instance of `RevokeCertificateOutput`. """ - return self._invoke(input, _models.REVOKE_CERTIFICATE, [], plugins) + def revoke_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeCertificateOutput: + return self._invoke( + self._select_input(_models.REVOKE_CERTIFICATE, args, kwargs), + _models.REVOKE_CERTIFICATE, + [], + plugins, + ) + + @_overload def search_certificates( self, - input: SearchCertificatesInput | None = None, + request: _models.SearchCertificatesInput | _models.SearchCertificatesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> SearchCertificatesOutput: ... + + @_overload + def search_certificates( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchCertificatesInputDict], ) -> SearchCertificatesOutput: """ Retrieves a list of certificates matching search criteria. You can @@ -1106,8 +1787,6 @@ def search_certificates( complex filter statements. Args: - input: - An instance of `SearchCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1117,10 +1796,33 @@ def search_certificates( Returns: An instance of `SearchCertificatesOutput`. """ - return self._invoke(input, _models.SEARCH_CERTIFICATES, [], plugins) + def search_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchCertificatesOutput: + return self._invoke( + self._select_input(_models.SEARCH_CERTIFICATES, args, kwargs), + _models.SEARCH_CERTIFICATES, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds one or more tags to an ACM resource. Tags are labels that you can @@ -1137,8 +1839,6 @@ def tag_resource( ListTagsForResource action. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1148,10 +1848,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes one or more tags from an ACM resource. @@ -1166,8 +1889,6 @@ def untag_resource( action. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1177,20 +1898,40 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_acme_domain_validation( + self, + request: _models.UpdateAcmeDomainValidationInput + | _models.UpdateAcmeDomainValidationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAcmeDomainValidationOutput: ... + + @_overload def update_acme_domain_validation( self, - input: UpdateAcmeDomainValidationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAcmeDomainValidationInputDict], ) -> UpdateAcmeDomainValidationOutput: """ Updates the prevalidation configuration of an existing domain validation. Args: - input: - An instance of `UpdateAcmeDomainValidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1200,10 +1941,33 @@ def update_acme_domain_validation( Returns: An instance of `UpdateAcmeDomainValidationOutput`. """ - return self._invoke(input, _models.UPDATE_ACME_DOMAIN_VALIDATION, [], plugins) + def update_acme_domain_validation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAcmeDomainValidationOutput: + return self._invoke( + self._select_input(_models.UPDATE_ACME_DOMAIN_VALIDATION, args, kwargs), + _models.UPDATE_ACME_DOMAIN_VALIDATION, + [], + plugins, + ) + + @_overload + def update_acme_endpoint( + self, + request: _models.UpdateAcmeEndpointInput | _models.UpdateAcmeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAcmeEndpointOutput: ... + + @_overload def update_acme_endpoint( - self, input: UpdateAcmeEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAcmeEndpointInputDict], ) -> UpdateAcmeEndpointOutput: """ Updates the configuration of an existing ACME endpoint. You can change @@ -1211,8 +1975,6 @@ def update_acme_endpoint( authority settings. Args: - input: - An instance of `UpdateAcmeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1222,10 +1984,34 @@ def update_acme_endpoint( Returns: An instance of `UpdateAcmeEndpointOutput`. """ - return self._invoke(input, _models.UPDATE_ACME_ENDPOINT, [], plugins) + def update_acme_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAcmeEndpointOutput: + return self._invoke( + self._select_input(_models.UPDATE_ACME_ENDPOINT, args, kwargs), + _models.UPDATE_ACME_ENDPOINT, + [], + plugins, + ) + + @_overload + def update_certificate_options( + self, + request: _models.UpdateCertificateOptionsInput + | _models.UpdateCertificateOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCertificateOptionsOutput: ... + + @_overload def update_certificate_options( - self, input: UpdateCertificateOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCertificateOptionsInputDict], ) -> UpdateCertificateOptionsOutput: """ Updates certificate options. You can use this operation to change the @@ -1236,8 +2022,6 @@ def update_certificate_options( Certificates](https://docs.aws.amazon.com/acm/latest/userguide/acm-exportable-certificates.html). Args: - input: - An instance of `UpdateCertificateOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1247,7 +2031,16 @@ def update_certificate_options( Returns: An instance of `UpdateCertificateOptionsOutput`. """ - return self._invoke(input, _models.UPDATE_CERTIFICATE_OPTIONS, [], plugins) + + def update_certificate_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCertificateOptionsOutput: + return self._invoke( + self._select_input(_models.UPDATE_CERTIFICATE_OPTIONS, args, kwargs), + _models.UPDATE_CERTIFICATE_OPTIONS, + [], + plugins, + ) def _new_config(self) -> ACMConfig: return ACMConfig.resolve() diff --git a/clients/aws-sdk-acm/src/aws_sdk_acm/models.pyi b/clients/aws-sdk-acm/src/aws_sdk_acm/models.pyi index 49a2415c8..b4eab0446 100644 --- a/clients/aws-sdk-acm/src/aws_sdk_acm/models.pyi +++ b/clients/aws-sdk-acm/src/aws_sdk_acm/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -217,6 +218,68 @@ class _AcmCertificateMetadataFilterDeserializer: self, deserializer: ShapeDeserializer ) -> AcmCertificateMetadataFilter: ... +class AcmCertificateMetadataFilterStatusDict(TypedDict): + status: str + """Filter by certificate status.""" + +class AcmCertificateMetadataFilterRenewalStatusDict(TypedDict): + renewal_status: str + """Filter by certificate renewal status.""" + +class AcmCertificateMetadataFilterTypeDict(TypedDict): + type: str + """Filter by certificate type.""" + +class AcmCertificateMetadataFilterInUseDict(TypedDict): + in_use: bool + """Filter by whether the certificate is in use.""" + +class AcmCertificateMetadataFilterExportedDict(TypedDict): + exported: bool + """Filter by whether the certificate has been exported.""" + +class AcmCertificateMetadataFilterExportOptionDict(TypedDict): + export_option: str + """Filter by certificate export option.""" + +class AcmCertificateMetadataFilterManagedByDict(TypedDict): + managed_by: str + """Filter by the entity that manages the certificate.""" + +class AcmCertificateMetadataFilterValidationMethodDict(TypedDict): + validation_method: str + """Filter by validation method.""" + +class AcmCertificateMetadataFilterCertificateKeyPairOriginDict(TypedDict): + certificate_key_pair_origin: str + """Filter by certificate key pair origin.""" + +class AcmCertificateMetadataFilterAcmeEndpointArnDict(TypedDict): + acme_endpoint_arn: str + """Filter by ACME endpoint ARN.""" + +class AcmCertificateMetadataFilterAcmeAccountIdDict(TypedDict): + acme_account_id: str + """Filter by ACME account identifier.""" + +AcmCertificateMetadataFilterDict = Union[ + AcmCertificateMetadataFilterStatusDict + | AcmCertificateMetadataFilterRenewalStatusDict + | AcmCertificateMetadataFilterTypeDict + | AcmCertificateMetadataFilterInUseDict + | AcmCertificateMetadataFilterExportedDict + | AcmCertificateMetadataFilterExportOptionDict + | AcmCertificateMetadataFilterManagedByDict + | AcmCertificateMetadataFilterValidationMethodDict + | AcmCertificateMetadataFilterCertificateKeyPairOriginDict + | AcmCertificateMetadataFilterAcmeEndpointArnDict + | AcmCertificateMetadataFilterAcmeAccountIdDict +] +""" +Dictionary form of `AcmCertificateMetadataFilter`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class AcmeAccount(_SerdeShape): """Contains detailed information about an ACME account.""" @@ -459,6 +522,22 @@ class AddTagsToCertificateInput(_SerdeShape): tags: list[Tag] | None = ... """The key-value pair that defines the tag. The tag value is optional.""" +class AddTagsToCertificateInputDict(TypedDict, total=False): + """Dictionary form of `AddTagsToCertificateInput`.""" + + certificate_arn: Required[str] + """ + String that contains the ARN of the ACM certificate to which the tag is + to be applied. This must be of the form: + + `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012` + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + """ + tags: Required[Sequence[Tag | TagDict]] + """The key-value pair that defines the tag. The tag value is optional.""" + @dataclass(kw_only=True) class AddTagsToCertificateOutput(_SerdeShape): """Dataclass for AddTagsToCertificateOutput structure.""" @@ -495,6 +574,18 @@ CertificateAuthority = Union[ class _CertificateAuthorityDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CertificateAuthority: ... +class CertificateAuthorityPublicCertificateAuthorityDict(TypedDict): + public_certificate_authority: ( + PublicCertificateAuthority | PublicCertificateAuthorityDict + ) + """Configuration for using a public certificate authority.""" + +CertificateAuthorityDict = Union[CertificateAuthorityPublicCertificateAuthorityDict] +""" +Dictionary form of `CertificateAuthority`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class CertificateDetail(_SerdeShape): """ @@ -717,6 +808,27 @@ ACM metadata. class _CertificateFilterDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CertificateFilter: ... +class CertificateFilterCertificateArnDict(TypedDict): + certificate_arn: str + """Filter by certificate ARN.""" + +class CertificateFilterX509AttributeFilterDict(TypedDict): + x509_attribute_filter: X509AttributeFilter | X509AttributeFilterDict + """Filter by X.509 certificate attributes.""" + +class CertificateFilterAcmCertificateMetadataFilterDict(TypedDict): + acm_certificate_metadata_filter: ( + AcmCertificateMetadataFilter | AcmCertificateMetadataFilterDict + ) + """Filter by ACM certificate metadata.""" + +CertificateFilterDict = Union[ + CertificateFilterCertificateArnDict + | CertificateFilterX509AttributeFilterDict + | CertificateFilterAcmCertificateMetadataFilterDict +] +"""Dictionary form of `CertificateFilter`, setting exactly one variant.""" + @dataclass class CertificateFilterStatementAnd(_SerdeShape): """A list of filter statements that must all be true.""" @@ -768,6 +880,33 @@ class _CertificateFilterStatementDeserializer: self, deserializer: ShapeDeserializer ) -> CertificateFilterStatement: ... +class CertificateFilterStatementAndDict(TypedDict): + and_: Sequence[CertificateFilterStatement | CertificateFilterStatementDict] + """A list of filter statements that must all be true.""" + +class CertificateFilterStatementOrDict(TypedDict): + or_: Sequence[CertificateFilterStatement | CertificateFilterStatementDict] + """A list of filter statements where at least one must be true.""" + +class CertificateFilterStatementNotDict(TypedDict): + not_: CertificateFilterStatement | CertificateFilterStatementDict + """A filter statement that must not be true.""" + +class CertificateFilterStatementFilterDict(TypedDict): + filter: CertificateFilter | CertificateFilterDict + """A single certificate filter.""" + +CertificateFilterStatementDict = Union[ + CertificateFilterStatementAndDict + | CertificateFilterStatementOrDict + | CertificateFilterStatementNotDict + | CertificateFilterStatementFilterDict +] +""" +Dictionary form of `CertificateFilterStatement`, setting exactly one +variant. +""" + class CertificateKeyPairOrigin(UnknownEnumMixin, StrEnum): """The origin of the certificate's key pair.""" @@ -840,6 +979,27 @@ class CertificateOptions(_SerdeShape): to DNS validation, specify `DNS`. """ +class CertificateOptionsDict(TypedDict, total=False): + """Dictionary form of `CertificateOptions`.""" + + certificate_transparency_logging_preference: str | None + """ + This parameter has been deprecated. Certificate transparency logging + opt-out is no longer available. All public certificates are recorded in + a certificate transparency log. + """ + export: str | None + """ + You can opt in to allow the export of your certificates by specifying + `ENABLED`. You cannot update the value of `Export` after the the + certificate is created. + """ + validation_method: str | None + """ + The domain validation method for the certificate. To migrate from email + to DNS validation, specify `DNS`. + """ + @dataclass(kw_only=True) class CertificateSearchResult(_SerdeShape): """ @@ -1022,6 +1182,14 @@ class CommonNameFilter(_SerdeShape): comparison_operator: str """The comparison operator to use.""" +class CommonNameFilterDict(TypedDict, total=False): + """Dictionary form of `CommonNameFilter`.""" + + value: Required[str] + """The value to match against.""" + comparison_operator: Required[str] + """The comparison operator to use.""" + class ComparisonOperator(UnknownEnumMixin, StrEnum): """ The comparison operator to use for string filters. Valid values are @@ -1067,6 +1235,25 @@ class CreateAcmeDomainValidationInput(_SerdeShape): tags: list[Tag] | None = ... """One or more tags to associate with the domain validation.""" +class CreateAcmeDomainValidationInputDict(TypedDict, total=False): + """Dictionary form of `CreateAcmeDomainValidationInput`.""" + + idempotency_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint.""" + domain_name: Required[str] + """The domain name to validate.""" + prevalidation_options: Required[PrevalidationOptions | PrevalidationOptionsDict] + """The prevalidation options for the domain.""" + tags: Sequence[Tag | TagDict] | None + """One or more tags to associate with the domain validation.""" + @dataclass(kw_only=True) class CreateAcmeDomainValidationOutput(_SerdeShape): """Dataclass for CreateAcmeDomainValidationOutput structure.""" @@ -1109,6 +1296,33 @@ class CreateAcmeEndpointInput(_SerdeShape): certificate_tags: list[Tag] | None = ... """Tags to apply to certificates issued through this ACME endpoint.""" +class CreateAcmeEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateAcmeEndpointInput`.""" + + idempotency_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + authorization_behavior: Required[str] + """The authorization behavior for the ACME endpoint.""" + contact: str | None + """ + Specifies whether ACME clients must provide contact information during + account registration. + """ + certificate_authority: Required[CertificateAuthority | CertificateAuthorityDict] + """ + The type of certificate authority to use for issuing certificates + through this ACME endpoint. + """ + tags: Sequence[Tag | TagDict] | None + """One or more tags to associate with the ACME endpoint.""" + certificate_tags: Sequence[Tag | TagDict] | None + """Tags to apply to certificates issued through this ACME endpoint.""" + @dataclass(kw_only=True) class CreateAcmeEndpointOutput(_SerdeShape): """Dataclass for CreateAcmeEndpointOutput structure.""" @@ -1146,6 +1360,28 @@ class CreateAcmeExternalAccountBindingInput(_SerdeShape): tags: list[Tag] | None = ... """One or more tags to associate with the external account binding.""" +class CreateAcmeExternalAccountBindingInputDict(TypedDict, total=False): + """Dictionary form of `CreateAcmeExternalAccountBindingInput`.""" + + idempotency_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role to associate with the + external account binding. + """ + expiration: Expiration | ExpirationDict | None + """The expiration configuration for the external account binding.""" + tags: Sequence[Tag | TagDict] | None + """One or more tags to associate with the external account binding.""" + @dataclass(kw_only=True) class CreateAcmeExternalAccountBindingOutput(_SerdeShape): """Dataclass for CreateAcmeExternalAccountBindingOutput structure.""" @@ -1179,6 +1415,12 @@ class DeleteAcmeDomainValidationInput(_SerdeShape): acme_domain_validation_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME domain validation to delete.""" +class DeleteAcmeDomainValidationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAcmeDomainValidationInput`.""" + + acme_domain_validation_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME domain validation to delete.""" + @dataclass(kw_only=True) class DeleteAcmeDomainValidationOutput(_SerdeShape): """Dataclass for DeleteAcmeDomainValidationOutput structure.""" @@ -1198,6 +1440,12 @@ class DeleteAcmeEndpointInput(_SerdeShape): acme_endpoint_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME endpoint to delete.""" +class DeleteAcmeEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAcmeEndpointInput`.""" + + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint to delete.""" + @dataclass(kw_only=True) class DeleteAcmeEndpointOutput(_SerdeShape): """Dataclass for DeleteAcmeEndpointOutput structure.""" @@ -1220,6 +1468,15 @@ class DeleteAcmeExternalAccountBindingInput(_SerdeShape): delete. """ +class DeleteAcmeExternalAccountBindingInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAcmeExternalAccountBindingInput`.""" + + acme_external_account_binding_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the ACME external account binding to + delete. + """ + @dataclass(kw_only=True) class DeleteAcmeExternalAccountBindingOutput(_SerdeShape): """Dataclass for DeleteAcmeExternalAccountBindingOutput structure.""" @@ -1247,6 +1504,20 @@ class DeleteCertificateInput(_SerdeShape): (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). """ +class DeleteCertificateInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCertificateInput`.""" + + certificate_arn: Required[str] + """ + String that contains the ARN of the ACM certificate to be deleted. This + must be of the form: + + `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012` + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + """ + @dataclass(kw_only=True) class DeleteCertificateOutput(_SerdeShape): """Dataclass for DeleteCertificateOutput structure.""" @@ -1268,6 +1539,14 @@ class DescribeAcmeAccountInput(_SerdeShape): account_url: str | None = ... """The URL of the ACME account.""" +class DescribeAcmeAccountInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAcmeAccountInput`.""" + + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint.""" + account_url: Required[str] + """The URL of the ACME account.""" + @dataclass(kw_only=True) class DescribeAcmeAccountOutput(_SerdeShape): """Dataclass for DescribeAcmeAccountOutput structure.""" @@ -1289,6 +1568,12 @@ class DescribeAcmeDomainValidationInput(_SerdeShape): acme_domain_validation_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME domain validation.""" +class DescribeAcmeDomainValidationInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAcmeDomainValidationInput`.""" + + acme_domain_validation_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME domain validation.""" + @dataclass(kw_only=True) class DescribeAcmeDomainValidationOutput(_SerdeShape): """Dataclass for DescribeAcmeDomainValidationOutput structure.""" @@ -1310,6 +1595,12 @@ class DescribeAcmeEndpointInput(_SerdeShape): acme_endpoint_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME endpoint.""" +class DescribeAcmeEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAcmeEndpointInput`.""" + + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint.""" + @dataclass(kw_only=True) class DescribeAcmeEndpointOutput(_SerdeShape): """Dataclass for DescribeAcmeEndpointOutput structure.""" @@ -1331,6 +1622,12 @@ class DescribeAcmeExternalAccountBindingInput(_SerdeShape): acme_external_account_binding_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME external account binding.""" +class DescribeAcmeExternalAccountBindingInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAcmeExternalAccountBindingInput`.""" + + acme_external_account_binding_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME external account binding.""" + @dataclass(kw_only=True) class DescribeAcmeExternalAccountBindingOutput(_SerdeShape): """Dataclass for DescribeAcmeExternalAccountBindingOutput structure.""" @@ -1360,6 +1657,20 @@ class DescribeCertificateInput(_SerdeShape): (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). """ +class DescribeCertificateInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCertificateInput`.""" + + certificate_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have + the following form: + + `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012` + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + """ + @dataclass(kw_only=True) class DescribeCertificateOutput(_SerdeShape): """Dataclass for DescribeCertificateOutput structure.""" @@ -1424,6 +1735,14 @@ class DnsNameFilter(_SerdeShape): comparison_operator: str """The comparison operator to use.""" +class DnsNameFilterDict(TypedDict, total=False): + """Dictionary form of `DnsNameFilter`.""" + + value: Required[str] + """The DNS name value to match against.""" + comparison_operator: Required[str] + """The comparison operator to use.""" + @dataclass(kw_only=True) class DnsPrevalidationDetails(_SerdeShape): """DNS prevalidation details including the resource record for validation.""" @@ -1444,6 +1763,14 @@ class DnsPrevalidationOptions(_SerdeShape): hosted_zone_id: str | None = ... """The Route 53 hosted zone ID for DNS validation.""" +class DnsPrevalidationOptionsDict(TypedDict, total=False): + """Dictionary form of `DnsPrevalidationOptions`.""" + + domain_scope: DomainScope | DomainScopeDict | None + """The scope of domains covered by this prevalidation.""" + hosted_zone_id: str | None + """The Route 53 hosted zone ID for DNS validation.""" + @dataclass(kw_only=True) class DnsValidationChallenge(_SerdeShape): """ @@ -1468,6 +1795,16 @@ class DomainScope(_SerdeShape): wildcards: str | None = ... """Whether validation applies to wildcard domains.""" +class DomainScopeDict(TypedDict, total=False): + """Dictionary form of `DomainScope`.""" + + exact_domain: str | None + """Whether validation applies to the exact domain.""" + subdomains: str | None + """Whether validation applies to subdomains.""" + wildcards: str | None + """Whether validation applies to wildcard domains.""" + class DomainScopeOption(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -1573,6 +1910,32 @@ class DomainValidationOption(_SerdeShape): - webmaster@example.com """ +class DomainValidationOptionDict(TypedDict, total=False): + """Dictionary form of `DomainValidationOption`.""" + + domain_name: Required[str] + """A fully qualified domain name (FQDN) in the certificate request.""" + validation_domain: Required[str] + """ + The domain name that you want ACM to use to send you validation emails. + This domain name is the suffix of the email addresses that you want ACM + to use. This must be the same as the `DomainName` value or a superdomain + of the `DomainName` value. For example, if you request a certificate for + `testing.example.com`, you can specify `example.com` for this value. In + that case, ACM sends domain validation emails to the following five + addresses: + + - admin@example.com + + - administrator@example.com + + - hostmaster@example.com + + - postmaster@example.com + + - webmaster@example.com + """ + @dataclass(kw_only=True) class DomainValidationSummary(_SerdeShape): """ @@ -1622,6 +1985,14 @@ class Expiration(_SerdeShape): type: str """The time unit for the expiration value.""" +class ExpirationDict(TypedDict, total=False): + """Dictionary form of `Expiration`.""" + + value: Required[int] + """The numeric value of the expiration.""" + type: Required[str] + """The time unit for the expiration value.""" + @dataclass(kw_only=True) class ExpiryEventsConfiguration(_SerdeShape): """ @@ -1637,6 +2008,17 @@ class ExpiryEventsConfiguration(_SerdeShape): events starting 45 days before certificate expiration. """ +class ExpiryEventsConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExpiryEventsConfiguration`.""" + + days_before_expiry: int | None + """ + Specifies the number of days prior to certificate expiration when ACM + starts generating `EventBridge` events. ACM sends one event per day per + certificate until the certificate expires. By default, accounts receive + events starting 45 days before certificate expiration. + """ + @dataclass(kw_only=True) class ExportCertificateInput(_SerdeShape): """Dataclass for ExportCertificateInput structure.""" @@ -1664,6 +2046,32 @@ class ExportCertificateInput(_SerdeShape): `openssl rsa -in encrypted_key.pem -out decrypted_key.pem` """ +class ExportCertificateInputDict(TypedDict, total=False): + """Dictionary form of `ExportCertificateInput`.""" + + certificate_arn: Required[str] + """ + An Amazon Resource Name (ARN) of the issued certificate. This must be of + the form: + + `arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012` + """ + passphrase: Required[bytes] + """ + Passphrase to associate with the encrypted exported private key. + + Note: + When creating your passphrase, you can use any ASCII character except #, + $, or %. + + If you want to later decrypt the private key, you must have the + passphrase. You can use the following OpenSSL command to decrypt a + private key. After entering the command, you are prompted for the + passphrase. + + `openssl rsa -in encrypted_key.pem -out decrypted_key.pem` + """ + @dataclass(kw_only=True) class ExportCertificateOutput(_SerdeShape): """Dataclass for ExportCertificateOutput structure.""" @@ -1798,13 +2206,41 @@ class Filters(_SerdeShape): issued by ACM. """ -@dataclass -class GeneralNameDirectoryName(_SerdeShape): +class FiltersDict(TypedDict, total=False): + """Dictionary form of `Filters`.""" + + extended_key_usage: Sequence[str] | None + """Specify one or more ExtendedKeyUsage extension values.""" + key_usage: Sequence[str] | None + """Specify one or more KeyUsage extension values.""" + key_types: Sequence[str] | None """ - Contains information about the certificate subject. The `Subject` field - in the certificate identifies the entity that owns or controls the - public key in the certificate. The entity can be a user, computer, - device, or service. The `Subject` must contain an X.500 distinguished + Specify one or more algorithms that can be used to generate key pairs. + + Default filtering returns only `RSA_1024` and `RSA_2048` certificates + that have at least one domain. To return other certificate types, + provide the desired type signatures in a comma-separated list. For + example, `"keyTypes": ["RSA_2048","RSA_4096"]` returns both `RSA_2048` + and `RSA_4096` certificates. + """ + export_option: str | None + """ + Specify `ENABLED` or `DISABLED` to identify certificates that can be + exported. + """ + managed_by: str | None + """ + Identifies the Amazon Web Services service that manages the certificate + issued by ACM. + """ + +@dataclass +class GeneralNameDirectoryName(_SerdeShape): + """ + Contains information about the certificate subject. The `Subject` field + in the certificate identifies the entity that owns or controls the + public key in the certificate. The entity can be a user, computer, + device, or service. The `Subject` must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate. """ @@ -1883,6 +2319,9 @@ class _GeneralNameDeserializer: class GetAccountConfigurationInput(_SerdeShape): """Dataclass for GetAccountConfigurationInput structure.""" +class GetAccountConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetAccountConfigurationInput`.""" + @dataclass(kw_only=True) class GetAccountConfigurationOutput(_SerdeShape): """Dataclass for GetAccountConfigurationOutput structure.""" @@ -1907,6 +2346,12 @@ class GetAcmeExternalAccountBindingCredentialsInput(_SerdeShape): acme_external_account_binding_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME external account binding.""" +class GetAcmeExternalAccountBindingCredentialsInputDict(TypedDict, total=False): + """Dictionary form of `GetAcmeExternalAccountBindingCredentialsInput`.""" + + acme_external_account_binding_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME external account binding.""" + @dataclass(kw_only=True) class GetAcmeExternalAccountBindingCredentialsOutput(_SerdeShape): """Dataclass for GetAcmeExternalAccountBindingCredentialsOutput structure.""" @@ -1937,6 +2382,19 @@ class GetCertificateInput(_SerdeShape): (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). """ +class GetCertificateInputDict(TypedDict, total=False): + """Dictionary form of `GetCertificateInput`.""" + + certificate_arn: Required[str] + """ + String that contains a certificate ARN in the following format: + + `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012` + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + """ + @dataclass(kw_only=True) class GetCertificateOutput(_SerdeShape): """Dataclass for GetCertificateOutput structure.""" @@ -2001,6 +2459,29 @@ class ImportCertificateInput(_SerdeShape): Note: You cannot apply tags when reimporting a certificate. """ +class ImportCertificateInputDict(TypedDict, total=False): + """Dictionary form of `ImportCertificateInput`.""" + + certificate_arn: str | None + """ + The [Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + of an imported certificate to replace. To import a new certificate, omit + this field. + """ + certificate: Required[bytes] + """The certificate to import.""" + private_key: Required[bytes] + """The private key that matches the public key in the certificate.""" + certificate_chain: bytes | None + """The PEM encoded certificate chain.""" + tags: Sequence[Tag | TagDict] | None + """ + One or more resource tags to associate with the imported certificate. + + Note: You cannot apply tags when reimporting a certificate. + """ + @dataclass(kw_only=True) class ImportCertificateOutput(_SerdeShape): """Dataclass for ImportCertificateOutput structure.""" @@ -2167,6 +2648,16 @@ class ListAcmeAccountsInput(_SerdeShape): acme_endpoint_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME endpoint.""" +class ListAcmeAccountsInputDict(TypedDict, total=False): + """Dictionary form of `ListAcmeAccountsInput`.""" + + next_token: str | None + """A token for pagination.""" + max_results: int | None + """The maximum number of results to return.""" + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint.""" + @dataclass(kw_only=True) class ListAcmeAccountsOutput(_SerdeShape): """Dataclass for ListAcmeAccountsOutput structure.""" @@ -2194,6 +2685,16 @@ class ListAcmeDomainValidationsInput(_SerdeShape): acme_endpoint_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME endpoint.""" +class ListAcmeDomainValidationsInputDict(TypedDict, total=False): + """Dictionary form of `ListAcmeDomainValidationsInput`.""" + + next_token: str | None + """A token for pagination.""" + max_results: int | None + """The maximum number of results to return.""" + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint.""" + @dataclass(kw_only=True) class ListAcmeDomainValidationsOutput(_SerdeShape): """Dataclass for ListAcmeDomainValidationsOutput structure.""" @@ -2219,6 +2720,14 @@ class ListAcmeEndpointsInput(_SerdeShape): max_results: int | None = ... """The maximum number of results to return.""" +class ListAcmeEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `ListAcmeEndpointsInput`.""" + + next_token: str | None + """A token for pagination.""" + max_results: int | None + """The maximum number of results to return.""" + @dataclass(kw_only=True) class ListAcmeEndpointsOutput(_SerdeShape): """Dataclass for ListAcmeEndpointsOutput structure.""" @@ -2246,6 +2755,16 @@ class ListAcmeExternalAccountBindingsInput(_SerdeShape): acme_endpoint_arn: str | None = ... """The Amazon Resource Name (ARN) of the ACME endpoint.""" +class ListAcmeExternalAccountBindingsInputDict(TypedDict, total=False): + """Dictionary form of `ListAcmeExternalAccountBindingsInput`.""" + + next_token: str | None + """A token for pagination.""" + max_results: int | None + """The maximum number of results to return.""" + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint.""" + @dataclass(kw_only=True) class ListAcmeExternalAccountBindingsOutput(_SerdeShape): """Dataclass for ListAcmeExternalAccountBindingsOutput structure.""" @@ -2283,6 +2802,26 @@ class ListCertificateDomainValidationsInput(_SerdeShape): don't specify a value, the default is 1000. """ +class ListCertificateDomainValidationsInputDict(TypedDict, total=False): + """Dictionary form of `ListCertificateDomainValidationsInput`.""" + + certificate_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the certificate for which to list + domain validation summaries. + """ + next_token: str | None + """ + A token returned by a previous call to + `ListCertificateDomainValidations`. If the number of results exceeds + `MaxItems`, use this token to retrieve the next page of results. + """ + max_items: int | None + """ + The maximum number of domain validation summaries to return. If you + don't specify a value, the default is 1000. + """ + @dataclass(kw_only=True) class ListCertificateDomainValidationsOutput(_SerdeShape): """Dataclass for ListCertificateDomainValidationsOutput structure.""" @@ -2351,6 +2890,48 @@ class ListCertificatesInput(_SerdeShape): must also specify `SortBy`. """ +class ListCertificatesInputDict(TypedDict, total=False): + """Dictionary form of `ListCertificatesInput`.""" + + certificate_statuses: Sequence[str] | None + """Filter the certificate list by status value.""" + certificate_key_pair_origins: Sequence[str] | None + """ + Filter the certificate list by certificate key pair origin. Specify one + or more `CertificateKeyPairOrigin` values. Default filtering returns + only certificates with key pair origin of `AWS_MANAGED` and + `CUSTOMER_PROVIDED`. + """ + includes: Filters | FiltersDict | None + """ + Filter the certificate list. For more information, see the Filters + structure. + """ + next_token: str | None + """ + Use this parameter only when paginating results and only in a subsequent + request after you receive a response with truncated results. Set it to + the value of `NextToken` from the response you just received. + """ + max_items: int | None + """ + Use this parameter when paginating results to specify the maximum number + of items to return in the response. If additional items exist beyond the + number you specify, the `NextToken` element is sent in the response. Use + this `NextToken` value in a subsequent request to retrieve additional + items. + """ + sort_by: str | None + """ + Specifies the field to sort results by. If you specify `SortBy`, you + must also specify `SortOrder`. + """ + sort_order: str | None + """ + Specifies the order of sorted results. If you specify `SortOrder`, you + must also specify `SortBy`. + """ + @dataclass(kw_only=True) class ListCertificatesOutput(_SerdeShape): """Dataclass for ListCertificatesOutput structure.""" @@ -2385,6 +2966,20 @@ class ListTagsForCertificateInput(_SerdeShape): (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). """ +class ListTagsForCertificateInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForCertificateInput`.""" + + certificate_arn: Required[str] + """ + String that contains the ARN of the ACM certificate for which you want + to list the tags. This must have the following form: + + `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012` + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + """ + @dataclass(kw_only=True) class ListTagsForCertificateOutput(_SerdeShape): """Dataclass for ListTagsForCertificateOutput structure.""" @@ -2406,6 +3001,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """The ARN of the ACM resource for which to list tags.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the ACM resource for which to list tags.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -2482,6 +3083,16 @@ PrevalidationOptions = Union[ class _PrevalidationOptionsDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PrevalidationOptions: ... +class PrevalidationOptionsDnsPrevalidationDict(TypedDict): + dns_prevalidation: DnsPrevalidationOptions | DnsPrevalidationOptionsDict + """DNS-based prevalidation options.""" + +PrevalidationOptionsDict = Union[PrevalidationOptionsDnsPrevalidationDict] +""" +Dictionary form of `PrevalidationOptions`, setting exactly one +variant. +""" + class PrevalidationType(UnknownEnumMixin, StrEnum): DNS_PREVALIDATION = "DNS_PREVALIDATION" @@ -2495,6 +3106,15 @@ class PublicCertificateAuthority(_SerdeShape): authority. """ +class PublicCertificateAuthorityDict(TypedDict, total=False): + """Dictionary form of `PublicCertificateAuthority`.""" + + allowed_key_algorithms: Sequence[str] | None + """ + The key algorithms allowed for certificates issued by this certificate + authority. + """ + class PublicKeyAlgorithm(UnknownEnumMixin, StrEnum): RSA_2048 = "RSA_2048" EC_PRIME256_V1 = "EC_prime256v1" @@ -2516,6 +3136,21 @@ class PutAccountConfigurationInput(_SerdeShape): each call, ACM treats each call as a new request. """ +class PutAccountConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutAccountConfigurationInput`.""" + + expiry_events: ExpiryEventsConfiguration | ExpiryEventsConfigurationDict | None + """Specifies expiration events associated with an account.""" + idempotency_token: Required[str] + """ + Customer-chosen string used to distinguish between calls to + `PutAccountConfiguration`. Idempotency tokens time out after one hour. + If you call `PutAccountConfiguration` multiple times with the same + unexpired idempotency token, ACM treats it as the same request and + returns the original result. If you change the idempotency token for + each call, ACM treats each call as a new request. + """ + @dataclass(kw_only=True) class PutAccountConfigurationOutput(_SerdeShape): """Dataclass for PutAccountConfigurationOutput structure.""" @@ -2548,6 +3183,22 @@ class RemoveTagsFromCertificateInput(_SerdeShape): tags: list[Tag] | None = ... """The key-value pair that defines the tag to remove.""" +class RemoveTagsFromCertificateInputDict(TypedDict, total=False): + """Dictionary form of `RemoveTagsFromCertificateInput`.""" + + certificate_arn: Required[str] + """ + String that contains the ARN of the ACM Certificate with one or more + tags that you want to remove. This must be of the form: + + `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012` + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + """ + tags: Required[Sequence[Tag | TagDict]] + """The key-value pair that defines the tag to remove.""" + @dataclass(kw_only=True) class RemoveTagsFromCertificateOutput(_SerdeShape): """Dataclass for RemoveTagsFromCertificateOutput structure.""" @@ -2614,6 +3265,20 @@ class RenewCertificateInput(_SerdeShape): (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). """ +class RenewCertificateInputDict(TypedDict, total=False): + """Dictionary form of `RenewCertificateInput`.""" + + certificate_arn: Required[str] + """ + String that contains the ARN of the ACM certificate to be renewed. This + must be of the form: + + `arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012` + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + """ + @dataclass(kw_only=True) class RenewCertificateOutput(_SerdeShape): """Dataclass for RenewCertificateOutput structure.""" @@ -2764,6 +3429,145 @@ class RequestCertificateInput(_SerdeShape): issued by ACM. """ +class RequestCertificateInputDict(TypedDict, total=False): + """Dictionary form of `RequestCertificateInput`.""" + + domain_name: Required[str] + """ + Fully qualified domain name (FQDN), such as www.example.com, that you + want to secure with an ACM certificate. Use an asterisk (*) to create a + wildcard certificate that protects several sites in the same domain. For + example, *.example.com protects www.example.com, site.example.com, and + images.example.com. + + In compliance with [RFC + 5280](https://datatracker.ietf.org/doc/html/rfc5280), the length of the + domain name (technically, the Common Name) that you provide cannot + exceed 64 octets (characters), including periods. To add a longer domain + name, specify it in the Subject Alternative Name field, which supports + names up to 253 octets in length. + """ + validation_method: str | None + """ + The method you want to use if you are requesting a public certificate to + validate that you own or control domain. You can [validate with + DNS](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html) + or [validate with + email](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html). + We recommend that you use DNS validation. + """ + subject_alternative_names: Sequence[str] | None + """ + Additional FQDNs to be included in the Subject Alternative Name + extension of the ACM certificate. For example, add the name + www.example.net to a certificate for which the `DomainName` field is + www.example.com if users can reach your site by using either name. The + maximum number of domain names that you can add to an ACM certificate is + 100. However, the initial quota is 10 domain names. If you need more + than 10 names, you must request a quota increase. For more information, + see + [Quotas](https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html). + + The maximum length of a SAN DNS name is 253 octets. The name is made up + of multiple labels separated by periods. No label can be longer than 63 + octets. Consider the following examples: + + - `(63 octets).(63 octets).(63 octets).(61 octets)` is legal because the + total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 + octets. + + - `(64 octets).(63 octets).(63 octets).(61 octets)` is not legal because + the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first + label exceeds 63 octets. + + - `(63 octets).(63 octets).(63 octets).(62 octets)` is not legal because + the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 + octets. + """ + idempotency_token: str | None + """ + Customer chosen string that can be used to distinguish between calls to + `RequestCertificate`. Idempotency tokens time out after one hour. + Therefore, if you call `RequestCertificate` multiple times with the same + idempotency token within one hour, ACM recognizes that you are + requesting only one certificate and will issue only one. If you change + the idempotency token for each call, ACM recognizes that you are + requesting multiple certificates. + """ + domain_validation_options: ( + Sequence[DomainValidationOption | DomainValidationOptionDict] | None + ) + """ + The domain name that you want ACM to use to send you emails so that you + can validate domain ownership. + """ + options: CertificateOptions | CertificateOptionsDict | None + """ + You can use this parameter to specify whether to export your + certificate. + + Certificate transparency logging opt-out is no longer available. All + public certificates are recorded in a certificate transparency log. For + more information, see [Certificate Transparency + Logging](https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency). + + You can export public ACM certificates to use with Amazon Web Services + services as well as outside the Amazon Web Services Cloud. For more + information, see [Certificate Manager exportable public + certificate](https://docs.aws.amazon.com/acm/latest/userguide/acm-exportable-certificates.html). + """ + certificate_authority_arn: str | None + """ + The Amazon Resource Name (ARN) of the private certificate authority (CA) + that will be used to issue the certificate. If you do not provide an ARN + and you are trying to request a private certificate, ACM will attempt to + issue a public certificate. For more information about private CAs, see + the [Amazon Web Services Private Certificate + Authority](https://docs.aws.amazon.com/privateca/latest/userguide/PcaWelcome.html) + user guide. The ARN must have the following form: + + `arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012` + """ + tags: Sequence[Tag | TagDict] | None + """One or more resource tags to associate with the certificate.""" + key_algorithm: str | None + """ + Specifies the algorithm of the public and private key pair that your + certificate uses to encrypt data. RSA is the default key algorithm for + ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) + keys are smaller, offering security comparable to RSA keys but with + greater computing efficiency. However, ECDSA is not supported by all + network clients. Some Amazon Web Services services may require RSA keys, + or only support ECDSA keys of a particular size, while others allow the + use of either RSA and ECDSA keys to ensure that compatibility is not + broken. Check the requirements for the Amazon Web Services service where + you plan to deploy your certificate. For more information about + selecting an algorithm, see [Key + algorithms](https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate-characteristics.html#algorithms-term). + + Note: + Algorithms supported for an ACM certificate request include: + + - `RSA_2048` + + - `EC_prime256v1` + + - `EC_secp384r1` + + Other listed algorithms are for imported certificates only. + Note: + When you request a private PKI certificate signed by a CA from Amazon + Web Services Private CA, the specified signing algorithm family (RSA or + ECDSA) must match the algorithm family of the CA's secret key. + + Default: RSA_2048 + """ + managed_by: str | None + """ + Identifies the Amazon Web Services service that manages the certificate + issued by ACM. + """ + @dataclass(kw_only=True) class RequestCertificateOutput(_SerdeShape): """Dataclass for RequestCertificateOutput structure.""" @@ -2837,6 +3641,44 @@ class ResendValidationEmailInput(_SerdeShape): - webmaster@subdomain.example.com """ +class ResendValidationEmailInputDict(TypedDict, total=False): + """Dictionary form of `ResendValidationEmailInput`.""" + + certificate_arn: Required[str] + """ + String that contains the ARN of the requested certificate. The + certificate ARN is generated and returned by the RequestCertificate + action as soon as the request is made. By default, using this parameter + causes email to be sent to all top-level domains you specified in the + certificate request. The ARN must be of the form: + + `arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012` + """ + domain: Required[str] + """ + The fully qualified domain name (FQDN) of the certificate that needs to + be validated. + """ + validation_domain: Required[str] + """ + The base validation domain that will act as the suffix of the email + addresses that are used to send the emails. This must be the same as the + `Domain` value or a superdomain of the `Domain` value. For example, if + you requested a certificate for `site.subdomain.example.com` and specify + a **ValidationDomain** of `subdomain.example.com`, ACM sends email to + the the following five addresses: + + - admin@subdomain.example.com + + - administrator@subdomain.example.com + + - hostmaster@subdomain.example.com + + - postmaster@subdomain.example.com + + - webmaster@subdomain.example.com + """ + @dataclass(kw_only=True) class ResendValidationEmailOutput(_SerdeShape): """Dataclass for ResendValidationEmailOutput structure.""" @@ -2921,6 +3763,14 @@ class RevokeAcmeAccountInput(_SerdeShape): account_url: str | None = ... """The URL of the ACME account to revoke.""" +class RevokeAcmeAccountInputDict(TypedDict, total=False): + """Dictionary form of `RevokeAcmeAccountInput`.""" + + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint.""" + account_url: Required[str] + """The URL of the ACME account to revoke.""" + @dataclass(kw_only=True) class RevokeAcmeAccountOutput(_SerdeShape): """Dataclass for RevokeAcmeAccountOutput structure.""" @@ -2943,6 +3793,15 @@ class RevokeAcmeExternalAccountBindingInput(_SerdeShape): revoke. """ +class RevokeAcmeExternalAccountBindingInputDict(TypedDict, total=False): + """Dictionary form of `RevokeAcmeExternalAccountBindingInput`.""" + + acme_external_account_binding_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the ACME external account binding to + revoke. + """ + @dataclass(kw_only=True) class RevokeAcmeExternalAccountBindingOutput(_SerdeShape): """Dataclass for RevokeAcmeExternalAccountBindingOutput structure.""" @@ -2969,6 +3828,19 @@ class RevokeCertificateInput(_SerdeShape): revocation_reason: str | None = ... """Specifies why you revoked the certificate.""" +class RevokeCertificateInputDict(TypedDict, total=False): + """Dictionary form of `RevokeCertificateInput`.""" + + certificate_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the public or private certificate that + will be revoked. The ARN must have the following form: + + `arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012` + """ + revocation_reason: Required[str] + """Specifies why you revoked the certificate.""" + @dataclass(kw_only=True) class RevokeCertificateOutput(_SerdeShape): """Dataclass for RevokeCertificateOutput structure.""" @@ -3018,6 +3890,37 @@ class SearchCertificatesInput(_SerdeShape): DESCENDING. """ +class SearchCertificatesInputDict(TypedDict, total=False): + """Dictionary form of `SearchCertificatesInput`.""" + + filter_statement: CertificateFilterStatement | CertificateFilterStatementDict | None + """ + A filter statement that defines the search criteria. You can combine + multiple filters using AND, OR, and NOT logical operators to create + complex queries. + """ + max_results: int | None + """The maximum number of results to return in the response. Default is 100.""" + next_token: str | None + """ + Use this parameter only when paginating results and only in a subsequent + request after you receive a response with truncated results. Set it to + the value of `NextToken` from the response you just received. + """ + sort_by: str | None + """ + Specifies the field to sort results by. Valid values are CREATED_AT, + NOT_AFTER, STATUS, RENEWAL_STATUS, EXPORTED, IN_USE, NOT_BEFORE, + KEY_ALGORITHM, TYPE, CERTIFICATE_ARN, COMMON_NAME, REVOKED_AT, + RENEWAL_ELIGIBILITY, ISSUED_AT, MANAGED_BY, EXPORT_OPTION, + VALIDATION_METHOD, and IMPORTED_AT. + """ + sort_order: str | None + """ + Specifies the order of sorted results. Valid values are ASCENDING or + DESCENDING. + """ + @dataclass(kw_only=True) class SearchCertificatesOutput(_SerdeShape): """Dataclass for SearchCertificatesOutput structure.""" @@ -3116,6 +4019,16 @@ class _SubjectAlternativeNameFilterDeserializer: self, deserializer: ShapeDeserializer ) -> SubjectAlternativeNameFilter: ... +class SubjectAlternativeNameFilterDnsNameDict(TypedDict): + dns_name: DnsNameFilter | DnsNameFilterDict + """Filter by DNS name in subject alternative names.""" + +SubjectAlternativeNameFilterDict = Union[SubjectAlternativeNameFilterDnsNameDict] +""" +Dictionary form of `SubjectAlternativeNameFilter`, setting exactly one +variant. +""" + @dataclass class SubjectFilterCommonName(_SerdeShape): """Filter by common name in the subject.""" @@ -3138,6 +4051,13 @@ SubjectFilter = Union[SubjectFilterCommonName | SubjectFilterUnknown] class _SubjectFilterDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> SubjectFilter: ... +class SubjectFilterCommonNameDict(TypedDict): + common_name: CommonNameFilter | CommonNameFilterDict + """Filter by common name in the subject.""" + +SubjectFilterDict = Union[SubjectFilterCommonNameDict] +"""Dictionary form of `SubjectFilter`, setting exactly one variant.""" + @dataclass(kw_only=True) class Tag(_SerdeShape): """ @@ -3150,6 +4070,14 @@ class Tag(_SerdeShape): value: str | None = ... """The value of the tag.""" +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """The key of the tag.""" + value: str | None + """The value of the tag.""" + @dataclass(kw_only=True) class TagPolicyException(ServiceError, _SerdeShape): """ @@ -3174,6 +4102,14 @@ class TagResourceInput(_SerdeShape): tags: list[Tag] | None = ... """The key-value pair that defines the tag to apply.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the ACM resource to which the tag is to be applied.""" + tags: Required[Sequence[Tag | TagDict]] + """The key-value pair that defines the tag to apply.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -3218,6 +4154,14 @@ class TimestampRange(_SerdeShape): end: datetime | None = ... """The end of the time range. This value is inclusive.""" +class TimestampRangeDict(TypedDict, total=False): + """Dictionary form of `TimestampRange`.""" + + start: datetime | None + """The start of the time range. This value is inclusive.""" + end: datetime | None + """The end of the time range. This value is inclusive.""" + class TimeType(UnknownEnumMixin, StrEnum): MINUTES = "MINUTES" HOURS = "HOURS" @@ -3247,6 +4191,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The key of each tag to remove.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the ACM resource from which the tag is to be removed.""" + tag_keys: Required[Sequence[str]] + """The key of each tag to remove.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -3268,6 +4220,14 @@ class UpdateAcmeDomainValidationInput(_SerdeShape): prevalidation_options: PrevalidationOptions | None = ... """The updated prevalidation options.""" +class UpdateAcmeDomainValidationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAcmeDomainValidationInput`.""" + + acme_domain_validation_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME domain validation to update.""" + prevalidation_options: PrevalidationOptions | PrevalidationOptionsDict | None + """The updated prevalidation options.""" + @dataclass(kw_only=True) class UpdateAcmeDomainValidationOutput(_SerdeShape): """Dataclass for UpdateAcmeDomainValidationOutput structure.""" @@ -3293,6 +4253,18 @@ class UpdateAcmeEndpointInput(_SerdeShape): certificate_authority: CertificateAuthority | None = ... """The updated certificate authority configuration.""" +class UpdateAcmeEndpointInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAcmeEndpointInput`.""" + + acme_endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the ACME endpoint to update.""" + authorization_behavior: str | None + """The updated authorization behavior.""" + contact: str | None + """The updated contact requirement.""" + certificate_authority: CertificateAuthority | CertificateAuthorityDict | None + """The updated certificate authority configuration.""" + @dataclass(kw_only=True) class UpdateAcmeEndpointOutput(_SerdeShape): """Dataclass for UpdateAcmeEndpointOutput structure.""" @@ -3324,6 +4296,24 @@ class UpdateCertificateOptionsInput(_SerdeShape): validation](https://docs.aws.amazon.com/acm/latest/userguide/email-to-dns-migration.html). """ +class UpdateCertificateOptionsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCertificateOptionsInput`.""" + + certificate_arn: Required[str] + """ + ARN of the requested certificate to update. This must be of the form: + + `arn:aws:acm:us-east-1:`*`account`*`:certificate/`*`12345678-1234-1234-1234-123456789012`*` ` + """ + options: Required[CertificateOptions | CertificateOptionsDict] + """ + Use to update the options for your certificate. Currently, you can + change the domain validation method or specify whether to export your + certificate. For more information about migrating from email to DNS + validation, see [Migrate from email to DNS + validation](https://docs.aws.amazon.com/acm/latest/userguide/email-to-dns-migration.html). + """ + @dataclass(kw_only=True) class UpdateCertificateOptionsOutput(_SerdeShape): """Dataclass for UpdateCertificateOptionsOutput structure.""" @@ -3573,6 +4563,52 @@ X509AttributeFilter = Union[ class _X509AttributeFilterDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> X509AttributeFilter: ... +class X509AttributeFilterSubjectDict(TypedDict): + subject: SubjectFilter | SubjectFilterDict + """Filter by certificate subject.""" + +class X509AttributeFilterSubjectAlternativeNameDict(TypedDict): + subject_alternative_name: ( + SubjectAlternativeNameFilter | SubjectAlternativeNameFilterDict + ) + """Filter by subject alternative names.""" + +class X509AttributeFilterExtendedKeyUsageDict(TypedDict): + extended_key_usage: str + """Filter by extended key usage.""" + +class X509AttributeFilterKeyUsageDict(TypedDict): + key_usage: str + """Filter by key usage.""" + +class X509AttributeFilterKeyAlgorithmDict(TypedDict): + key_algorithm: str + """Filter by key algorithm.""" + +class X509AttributeFilterSerialNumberDict(TypedDict): + serial_number: str + """Filter by serial number.""" + +class X509AttributeFilterNotAfterDict(TypedDict): + not_after: TimestampRange | TimestampRangeDict + """Filter by certificate expiration date. The start date is inclusive.""" + +class X509AttributeFilterNotBeforeDict(TypedDict): + not_before: TimestampRange | TimestampRangeDict + """Filter by certificate validity start date. The start date is inclusive.""" + +X509AttributeFilterDict = Union[ + X509AttributeFilterSubjectDict + | X509AttributeFilterSubjectAlternativeNameDict + | X509AttributeFilterExtendedKeyUsageDict + | X509AttributeFilterKeyUsageDict + | X509AttributeFilterKeyAlgorithmDict + | X509AttributeFilterSerialNumberDict + | X509AttributeFilterNotAfterDict + | X509AttributeFilterNotBeforeDict +] +"""Dictionary form of `X509AttributeFilter`, setting exactly one variant.""" + @dataclass(kw_only=True) class X509Attributes(_SerdeShape): """Contains X.509 certificate attributes extracted from the certificate.""" diff --git a/clients/aws-sdk-acm/src/aws_sdk_acm/py.typed b/clients/aws-sdk-acm/src/aws_sdk_acm/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-acm/tests/_typecheck.py b/clients/aws-sdk-acm/tests/_typecheck.py index f7f8587cf..f565fe808 100644 --- a/clients/aws-sdk-acm/tests/_typecheck.py +++ b/clients/aws-sdk-acm/tests/_typecheck.py @@ -2,8 +2,11 @@ from typing import Any +from aws_sdk_acm.aio.client import AsyncACMClient +from aws_sdk_acm.client import ACMClient from aws_sdk_acm.models import ( AcmCertificateMetadata, + AcmCertificateMetadataFilterDict, AcmeAccount, AcmeAccountSummary, AcmeDomainValidation, @@ -13,124 +16,184 @@ AcmeExternalAccountBinding, AcmeExternalAccountBindingSummary, AddTagsToCertificateInput, + AddTagsToCertificateInputDict, AddTagsToCertificateOutput, + CertificateAuthorityDict, CertificateDetail, + CertificateFilterDict, + CertificateFilterStatementDict, CertificateOptions, + CertificateOptionsDict, CertificateSearchResult, CertificateSummary, CommonNameFilter, + CommonNameFilterDict, CreateAcmeDomainValidationInput, + CreateAcmeDomainValidationInputDict, CreateAcmeDomainValidationOutput, CreateAcmeEndpointInput, + CreateAcmeEndpointInputDict, CreateAcmeEndpointOutput, CreateAcmeExternalAccountBindingInput, + CreateAcmeExternalAccountBindingInputDict, CreateAcmeExternalAccountBindingOutput, CustomAttribute, DeleteAcmeDomainValidationInput, + DeleteAcmeDomainValidationInputDict, DeleteAcmeDomainValidationOutput, DeleteAcmeEndpointInput, + DeleteAcmeEndpointInputDict, DeleteAcmeEndpointOutput, DeleteAcmeExternalAccountBindingInput, + DeleteAcmeExternalAccountBindingInputDict, DeleteAcmeExternalAccountBindingOutput, DeleteCertificateInput, + DeleteCertificateInputDict, DeleteCertificateOutput, DescribeAcmeAccountInput, + DescribeAcmeAccountInputDict, DescribeAcmeAccountOutput, DescribeAcmeDomainValidationInput, + DescribeAcmeDomainValidationInputDict, DescribeAcmeDomainValidationOutput, DescribeAcmeEndpointInput, + DescribeAcmeEndpointInputDict, DescribeAcmeEndpointOutput, DescribeAcmeExternalAccountBindingInput, + DescribeAcmeExternalAccountBindingInputDict, DescribeAcmeExternalAccountBindingOutput, DescribeCertificateInput, + DescribeCertificateInputDict, DescribeCertificateOutput, DistinguishedName, DnsNameFilter, + DnsNameFilterDict, DnsPrevalidationDetails, DnsPrevalidationOptions, + DnsPrevalidationOptionsDict, DnsValidationChallenge, DomainScope, + DomainScopeDict, DomainValidation, DomainValidationMethodUpdateSummary, DomainValidationOption, + DomainValidationOptionDict, DomainValidationSummary, EmailValidationChallenge, Expiration, + ExpirationDict, ExpiryEventsConfiguration, + ExpiryEventsConfigurationDict, ExportCertificateInput, + ExportCertificateInputDict, ExportCertificateOutput, ExtendedKeyUsage, FailureDetails, Filters, + FiltersDict, GetAccountConfigurationInput, + GetAccountConfigurationInputDict, GetAccountConfigurationOutput, GetAcmeExternalAccountBindingCredentialsInput, + GetAcmeExternalAccountBindingCredentialsInputDict, GetAcmeExternalAccountBindingCredentialsOutput, GetCertificateInput, + GetCertificateInputDict, GetCertificateOutput, HttpRedirect, ImportCertificateInput, + ImportCertificateInputDict, ImportCertificateOutput, KeyUsage, ListAcmeAccountsInput, + ListAcmeAccountsInputDict, ListAcmeAccountsOutput, ListAcmeDomainValidationsInput, + ListAcmeDomainValidationsInputDict, ListAcmeDomainValidationsOutput, ListAcmeEndpointsInput, + ListAcmeEndpointsInputDict, ListAcmeEndpointsOutput, ListAcmeExternalAccountBindingsInput, + ListAcmeExternalAccountBindingsInputDict, ListAcmeExternalAccountBindingsOutput, ListCertificateDomainValidationsInput, + ListCertificateDomainValidationsInputDict, ListCertificateDomainValidationsOutput, ListCertificatesInput, + ListCertificatesInputDict, ListCertificatesOutput, ListTagsForCertificateInput, + ListTagsForCertificateInputDict, ListTagsForCertificateOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, OtherName, + PrevalidationOptionsDict, PublicCertificateAuthority, + PublicCertificateAuthorityDict, PutAccountConfigurationInput, + PutAccountConfigurationInputDict, PutAccountConfigurationOutput, RemoveTagsFromCertificateInput, + RemoveTagsFromCertificateInputDict, RemoveTagsFromCertificateOutput, RenewCertificateInput, + RenewCertificateInputDict, RenewCertificateOutput, RenewalSummary, RequestCertificateInput, + RequestCertificateInputDict, RequestCertificateOutput, ResendValidationEmailInput, + ResendValidationEmailInputDict, ResendValidationEmailOutput, ResourceRecord, RevokeAcmeAccountInput, + RevokeAcmeAccountInputDict, RevokeAcmeAccountOutput, RevokeAcmeExternalAccountBindingInput, + RevokeAcmeExternalAccountBindingInputDict, RevokeAcmeExternalAccountBindingOutput, RevokeCertificateInput, + RevokeCertificateInputDict, RevokeCertificateOutput, SearchCertificatesInput, + SearchCertificatesInputDict, SearchCertificatesOutput, + SubjectAlternativeNameFilterDict, + SubjectFilterDict, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, ThrottlingReason, TimestampRange, + TimestampRangeDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAcmeDomainValidationInput, + UpdateAcmeDomainValidationInputDict, UpdateAcmeDomainValidationOutput, UpdateAcmeEndpointInput, + UpdateAcmeEndpointInputDict, UpdateAcmeEndpointOutput, UpdateCertificateOptionsInput, + UpdateCertificateOptionsInputDict, UpdateCertificateOptionsOutput, UpdateSummary, ValidationConfiguration, + X509AttributeFilterDict, X509Attributes, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -257,3 +320,561 @@ UpdateSummary() ValidationConfiguration() X509Attributes() +_params_0: AcmCertificateMetadataFilterDict = {"status": _} +_params_1: AddTagsToCertificateInputDict = {"certificate_arn": _, "tags": _} +_params_2: CertificateAuthorityDict = {"public_certificate_authority": _} +_params_3: CertificateFilterDict = {"certificate_arn": _} +_params_4: CertificateFilterStatementDict = {"and_": _} +_params_5: CertificateOptionsDict = {} +_params_6: CommonNameFilterDict = {"value": _, "comparison_operator": _} +_params_7: CreateAcmeDomainValidationInputDict = { + "acme_endpoint_arn": _, + "domain_name": _, + "prevalidation_options": _, +} +_params_8: CreateAcmeEndpointInputDict = { + "authorization_behavior": _, + "certificate_authority": _, +} +_params_9: CreateAcmeExternalAccountBindingInputDict = { + "acme_endpoint_arn": _, + "role_arn": _, +} +_params_10: DeleteAcmeDomainValidationInputDict = {"acme_domain_validation_arn": _} +_params_11: DeleteAcmeEndpointInputDict = {"acme_endpoint_arn": _} +_params_12: DeleteAcmeExternalAccountBindingInputDict = { + "acme_external_account_binding_arn": _ +} +_params_13: DeleteCertificateInputDict = {"certificate_arn": _} +_params_14: DescribeAcmeAccountInputDict = {"acme_endpoint_arn": _, "account_url": _} +_params_15: DescribeAcmeDomainValidationInputDict = {"acme_domain_validation_arn": _} +_params_16: DescribeAcmeEndpointInputDict = {"acme_endpoint_arn": _} +_params_17: DescribeAcmeExternalAccountBindingInputDict = { + "acme_external_account_binding_arn": _ +} +_params_18: DescribeCertificateInputDict = {"certificate_arn": _} +_params_19: DnsNameFilterDict = {"value": _, "comparison_operator": _} +_params_20: DnsPrevalidationOptionsDict = {} +_params_21: DomainScopeDict = {} +_params_22: DomainValidationOptionDict = {"domain_name": _, "validation_domain": _} +_params_23: ExpirationDict = {"value": _, "type": _} +_params_24: ExpiryEventsConfigurationDict = {} +_params_25: ExportCertificateInputDict = {"certificate_arn": _, "passphrase": _} +_params_26: FiltersDict = {} +_params_27: GetAccountConfigurationInputDict = {} +_params_28: GetAcmeExternalAccountBindingCredentialsInputDict = { + "acme_external_account_binding_arn": _ +} +_params_29: GetCertificateInputDict = {"certificate_arn": _} +_params_30: ImportCertificateInputDict = {"certificate": _, "private_key": _} +_params_31: ListAcmeAccountsInputDict = {"acme_endpoint_arn": _} +_params_32: ListAcmeDomainValidationsInputDict = {"acme_endpoint_arn": _} +_params_33: ListAcmeEndpointsInputDict = {} +_params_34: ListAcmeExternalAccountBindingsInputDict = {"acme_endpoint_arn": _} +_params_35: ListCertificateDomainValidationsInputDict = {"certificate_arn": _} +_params_36: ListCertificatesInputDict = {} +_params_37: ListTagsForCertificateInputDict = {"certificate_arn": _} +_params_38: ListTagsForResourceInputDict = {"resource_arn": _} +_params_39: PrevalidationOptionsDict = {"dns_prevalidation": _} +_params_40: PublicCertificateAuthorityDict = {} +_params_41: PutAccountConfigurationInputDict = {"idempotency_token": _} +_params_42: RemoveTagsFromCertificateInputDict = {"certificate_arn": _, "tags": _} +_params_43: RenewCertificateInputDict = {"certificate_arn": _} +_params_44: RequestCertificateInputDict = {"domain_name": _} +_params_45: ResendValidationEmailInputDict = { + "certificate_arn": _, + "domain": _, + "validation_domain": _, +} +_params_46: RevokeAcmeAccountInputDict = {"acme_endpoint_arn": _, "account_url": _} +_params_47: RevokeAcmeExternalAccountBindingInputDict = { + "acme_external_account_binding_arn": _ +} +_params_48: RevokeCertificateInputDict = {"certificate_arn": _, "revocation_reason": _} +_params_49: SearchCertificatesInputDict = {} +_params_50: SubjectAlternativeNameFilterDict = {"dns_name": _} +_params_51: SubjectFilterDict = {"common_name": _} +_params_52: TagDict = {"key": _} +_params_53: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_54: TimestampRangeDict = {} +_params_55: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_56: UpdateAcmeDomainValidationInputDict = {"acme_domain_validation_arn": _} +_params_57: UpdateAcmeEndpointInputDict = {"acme_endpoint_arn": _} +_params_58: UpdateCertificateOptionsInputDict = {"certificate_arn": _, "options": _} +_params_59: X509AttributeFilterDict = {"subject": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncACMClient) -> None: + pass + await client.add_tags_to_certificate(certificate_arn=_, tags=_) + await client.add_tags_to_certificate(**_request(AddTagsToCertificateInputDict)) + await client.add_tags_to_certificate(_request(AddTagsToCertificateInput)) + await client.add_tags_to_certificate(_request(AddTagsToCertificateInputDict)) + await client.create_acme_domain_validation( + acme_endpoint_arn=_, domain_name=_, prevalidation_options=_ + ) + await client.create_acme_domain_validation( + **_request(CreateAcmeDomainValidationInputDict) + ) + await client.create_acme_domain_validation( + _request(CreateAcmeDomainValidationInput) + ) + await client.create_acme_domain_validation( + _request(CreateAcmeDomainValidationInputDict) + ) + await client.create_acme_endpoint(authorization_behavior=_, certificate_authority=_) + await client.create_acme_endpoint(**_request(CreateAcmeEndpointInputDict)) + await client.create_acme_endpoint(_request(CreateAcmeEndpointInput)) + await client.create_acme_endpoint(_request(CreateAcmeEndpointInputDict)) + await client.create_acme_external_account_binding(acme_endpoint_arn=_, role_arn=_) + await client.create_acme_external_account_binding( + **_request(CreateAcmeExternalAccountBindingInputDict) + ) + await client.create_acme_external_account_binding( + _request(CreateAcmeExternalAccountBindingInput) + ) + await client.create_acme_external_account_binding( + _request(CreateAcmeExternalAccountBindingInputDict) + ) + await client.delete_acme_domain_validation(acme_domain_validation_arn=_) + await client.delete_acme_domain_validation( + **_request(DeleteAcmeDomainValidationInputDict) + ) + await client.delete_acme_domain_validation( + _request(DeleteAcmeDomainValidationInput) + ) + await client.delete_acme_domain_validation( + _request(DeleteAcmeDomainValidationInputDict) + ) + await client.delete_acme_endpoint(acme_endpoint_arn=_) + await client.delete_acme_endpoint(**_request(DeleteAcmeEndpointInputDict)) + await client.delete_acme_endpoint(_request(DeleteAcmeEndpointInput)) + await client.delete_acme_endpoint(_request(DeleteAcmeEndpointInputDict)) + await client.delete_acme_external_account_binding( + acme_external_account_binding_arn=_ + ) + await client.delete_acme_external_account_binding( + **_request(DeleteAcmeExternalAccountBindingInputDict) + ) + await client.delete_acme_external_account_binding( + _request(DeleteAcmeExternalAccountBindingInput) + ) + await client.delete_acme_external_account_binding( + _request(DeleteAcmeExternalAccountBindingInputDict) + ) + await client.delete_certificate(certificate_arn=_) + await client.delete_certificate(**_request(DeleteCertificateInputDict)) + await client.delete_certificate(_request(DeleteCertificateInput)) + await client.delete_certificate(_request(DeleteCertificateInputDict)) + await client.describe_acme_account(acme_endpoint_arn=_, account_url=_) + await client.describe_acme_account(**_request(DescribeAcmeAccountInputDict)) + await client.describe_acme_account(_request(DescribeAcmeAccountInput)) + await client.describe_acme_account(_request(DescribeAcmeAccountInputDict)) + await client.describe_acme_domain_validation(acme_domain_validation_arn=_) + await client.describe_acme_domain_validation( + **_request(DescribeAcmeDomainValidationInputDict) + ) + await client.describe_acme_domain_validation( + _request(DescribeAcmeDomainValidationInput) + ) + await client.describe_acme_domain_validation( + _request(DescribeAcmeDomainValidationInputDict) + ) + await client.describe_acme_endpoint(acme_endpoint_arn=_) + await client.describe_acme_endpoint(**_request(DescribeAcmeEndpointInputDict)) + await client.describe_acme_endpoint(_request(DescribeAcmeEndpointInput)) + await client.describe_acme_endpoint(_request(DescribeAcmeEndpointInputDict)) + await client.describe_acme_external_account_binding( + acme_external_account_binding_arn=_ + ) + await client.describe_acme_external_account_binding( + **_request(DescribeAcmeExternalAccountBindingInputDict) + ) + await client.describe_acme_external_account_binding( + _request(DescribeAcmeExternalAccountBindingInput) + ) + await client.describe_acme_external_account_binding( + _request(DescribeAcmeExternalAccountBindingInputDict) + ) + await client.describe_certificate(certificate_arn=_) + await client.describe_certificate(**_request(DescribeCertificateInputDict)) + await client.describe_certificate(_request(DescribeCertificateInput)) + await client.describe_certificate(_request(DescribeCertificateInputDict)) + await client.export_certificate(certificate_arn=_, passphrase=_) + await client.export_certificate(**_request(ExportCertificateInputDict)) + await client.export_certificate(_request(ExportCertificateInput)) + await client.export_certificate(_request(ExportCertificateInputDict)) + await client.get_account_configuration() + await client.get_account_configuration(**_request(GetAccountConfigurationInputDict)) + await client.get_account_configuration(_request(GetAccountConfigurationInput)) + await client.get_account_configuration(_request(GetAccountConfigurationInputDict)) + await client.get_acme_external_account_binding_credentials( + acme_external_account_binding_arn=_ + ) + await client.get_acme_external_account_binding_credentials( + **_request(GetAcmeExternalAccountBindingCredentialsInputDict) + ) + await client.get_acme_external_account_binding_credentials( + _request(GetAcmeExternalAccountBindingCredentialsInput) + ) + await client.get_acme_external_account_binding_credentials( + _request(GetAcmeExternalAccountBindingCredentialsInputDict) + ) + await client.get_certificate(certificate_arn=_) + await client.get_certificate(**_request(GetCertificateInputDict)) + await client.get_certificate(_request(GetCertificateInput)) + await client.get_certificate(_request(GetCertificateInputDict)) + await client.import_certificate(certificate=_, private_key=_) + await client.import_certificate(**_request(ImportCertificateInputDict)) + await client.import_certificate(_request(ImportCertificateInput)) + await client.import_certificate(_request(ImportCertificateInputDict)) + await client.list_acme_accounts(acme_endpoint_arn=_) + await client.list_acme_accounts(**_request(ListAcmeAccountsInputDict)) + await client.list_acme_accounts(_request(ListAcmeAccountsInput)) + await client.list_acme_accounts(_request(ListAcmeAccountsInputDict)) + await client.list_acme_domain_validations(acme_endpoint_arn=_) + await client.list_acme_domain_validations( + **_request(ListAcmeDomainValidationsInputDict) + ) + await client.list_acme_domain_validations(_request(ListAcmeDomainValidationsInput)) + await client.list_acme_domain_validations( + _request(ListAcmeDomainValidationsInputDict) + ) + await client.list_acme_endpoints() + await client.list_acme_endpoints(**_request(ListAcmeEndpointsInputDict)) + await client.list_acme_endpoints(_request(ListAcmeEndpointsInput)) + await client.list_acme_endpoints(_request(ListAcmeEndpointsInputDict)) + await client.list_acme_external_account_bindings(acme_endpoint_arn=_) + await client.list_acme_external_account_bindings( + **_request(ListAcmeExternalAccountBindingsInputDict) + ) + await client.list_acme_external_account_bindings( + _request(ListAcmeExternalAccountBindingsInput) + ) + await client.list_acme_external_account_bindings( + _request(ListAcmeExternalAccountBindingsInputDict) + ) + await client.list_certificate_domain_validations(certificate_arn=_) + await client.list_certificate_domain_validations( + **_request(ListCertificateDomainValidationsInputDict) + ) + await client.list_certificate_domain_validations( + _request(ListCertificateDomainValidationsInput) + ) + await client.list_certificate_domain_validations( + _request(ListCertificateDomainValidationsInputDict) + ) + await client.list_certificates() + await client.list_certificates(**_request(ListCertificatesInputDict)) + await client.list_certificates(_request(ListCertificatesInput)) + await client.list_certificates(_request(ListCertificatesInputDict)) + await client.list_tags_for_certificate(certificate_arn=_) + await client.list_tags_for_certificate(**_request(ListTagsForCertificateInputDict)) + await client.list_tags_for_certificate(_request(ListTagsForCertificateInput)) + await client.list_tags_for_certificate(_request(ListTagsForCertificateInputDict)) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.put_account_configuration(idempotency_token=_) + await client.put_account_configuration(**_request(PutAccountConfigurationInputDict)) + await client.put_account_configuration(_request(PutAccountConfigurationInput)) + await client.put_account_configuration(_request(PutAccountConfigurationInputDict)) + await client.remove_tags_from_certificate(certificate_arn=_, tags=_) + await client.remove_tags_from_certificate( + **_request(RemoveTagsFromCertificateInputDict) + ) + await client.remove_tags_from_certificate(_request(RemoveTagsFromCertificateInput)) + await client.remove_tags_from_certificate( + _request(RemoveTagsFromCertificateInputDict) + ) + await client.renew_certificate(certificate_arn=_) + await client.renew_certificate(**_request(RenewCertificateInputDict)) + await client.renew_certificate(_request(RenewCertificateInput)) + await client.renew_certificate(_request(RenewCertificateInputDict)) + await client.request_certificate(domain_name=_) + await client.request_certificate(**_request(RequestCertificateInputDict)) + await client.request_certificate(_request(RequestCertificateInput)) + await client.request_certificate(_request(RequestCertificateInputDict)) + await client.resend_validation_email( + certificate_arn=_, domain=_, validation_domain=_ + ) + await client.resend_validation_email(**_request(ResendValidationEmailInputDict)) + await client.resend_validation_email(_request(ResendValidationEmailInput)) + await client.resend_validation_email(_request(ResendValidationEmailInputDict)) + await client.revoke_acme_account(acme_endpoint_arn=_, account_url=_) + await client.revoke_acme_account(**_request(RevokeAcmeAccountInputDict)) + await client.revoke_acme_account(_request(RevokeAcmeAccountInput)) + await client.revoke_acme_account(_request(RevokeAcmeAccountInputDict)) + await client.revoke_acme_external_account_binding( + acme_external_account_binding_arn=_ + ) + await client.revoke_acme_external_account_binding( + **_request(RevokeAcmeExternalAccountBindingInputDict) + ) + await client.revoke_acme_external_account_binding( + _request(RevokeAcmeExternalAccountBindingInput) + ) + await client.revoke_acme_external_account_binding( + _request(RevokeAcmeExternalAccountBindingInputDict) + ) + await client.revoke_certificate(certificate_arn=_, revocation_reason=_) + await client.revoke_certificate(**_request(RevokeCertificateInputDict)) + await client.revoke_certificate(_request(RevokeCertificateInput)) + await client.revoke_certificate(_request(RevokeCertificateInputDict)) + await client.search_certificates() + await client.search_certificates(**_request(SearchCertificatesInputDict)) + await client.search_certificates(_request(SearchCertificatesInput)) + await client.search_certificates(_request(SearchCertificatesInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_acme_domain_validation(acme_domain_validation_arn=_) + await client.update_acme_domain_validation( + **_request(UpdateAcmeDomainValidationInputDict) + ) + await client.update_acme_domain_validation( + _request(UpdateAcmeDomainValidationInput) + ) + await client.update_acme_domain_validation( + _request(UpdateAcmeDomainValidationInputDict) + ) + await client.update_acme_endpoint(acme_endpoint_arn=_) + await client.update_acme_endpoint(**_request(UpdateAcmeEndpointInputDict)) + await client.update_acme_endpoint(_request(UpdateAcmeEndpointInput)) + await client.update_acme_endpoint(_request(UpdateAcmeEndpointInputDict)) + await client.update_certificate_options(certificate_arn=_, options=_) + await client.update_certificate_options( + **_request(UpdateCertificateOptionsInputDict) + ) + await client.update_certificate_options(_request(UpdateCertificateOptionsInput)) + await client.update_certificate_options(_request(UpdateCertificateOptionsInputDict)) + + +def check_sync_calls(client: ACMClient) -> None: + pass + client.add_tags_to_certificate(certificate_arn=_, tags=_) + client.add_tags_to_certificate(**_request(AddTagsToCertificateInputDict)) + client.add_tags_to_certificate(_request(AddTagsToCertificateInput)) + client.add_tags_to_certificate(_request(AddTagsToCertificateInputDict)) + client.create_acme_domain_validation( + acme_endpoint_arn=_, domain_name=_, prevalidation_options=_ + ) + client.create_acme_domain_validation( + **_request(CreateAcmeDomainValidationInputDict) + ) + client.create_acme_domain_validation(_request(CreateAcmeDomainValidationInput)) + client.create_acme_domain_validation(_request(CreateAcmeDomainValidationInputDict)) + client.create_acme_endpoint(authorization_behavior=_, certificate_authority=_) + client.create_acme_endpoint(**_request(CreateAcmeEndpointInputDict)) + client.create_acme_endpoint(_request(CreateAcmeEndpointInput)) + client.create_acme_endpoint(_request(CreateAcmeEndpointInputDict)) + client.create_acme_external_account_binding(acme_endpoint_arn=_, role_arn=_) + client.create_acme_external_account_binding( + **_request(CreateAcmeExternalAccountBindingInputDict) + ) + client.create_acme_external_account_binding( + _request(CreateAcmeExternalAccountBindingInput) + ) + client.create_acme_external_account_binding( + _request(CreateAcmeExternalAccountBindingInputDict) + ) + client.delete_acme_domain_validation(acme_domain_validation_arn=_) + client.delete_acme_domain_validation( + **_request(DeleteAcmeDomainValidationInputDict) + ) + client.delete_acme_domain_validation(_request(DeleteAcmeDomainValidationInput)) + client.delete_acme_domain_validation(_request(DeleteAcmeDomainValidationInputDict)) + client.delete_acme_endpoint(acme_endpoint_arn=_) + client.delete_acme_endpoint(**_request(DeleteAcmeEndpointInputDict)) + client.delete_acme_endpoint(_request(DeleteAcmeEndpointInput)) + client.delete_acme_endpoint(_request(DeleteAcmeEndpointInputDict)) + client.delete_acme_external_account_binding(acme_external_account_binding_arn=_) + client.delete_acme_external_account_binding( + **_request(DeleteAcmeExternalAccountBindingInputDict) + ) + client.delete_acme_external_account_binding( + _request(DeleteAcmeExternalAccountBindingInput) + ) + client.delete_acme_external_account_binding( + _request(DeleteAcmeExternalAccountBindingInputDict) + ) + client.delete_certificate(certificate_arn=_) + client.delete_certificate(**_request(DeleteCertificateInputDict)) + client.delete_certificate(_request(DeleteCertificateInput)) + client.delete_certificate(_request(DeleteCertificateInputDict)) + client.describe_acme_account(acme_endpoint_arn=_, account_url=_) + client.describe_acme_account(**_request(DescribeAcmeAccountInputDict)) + client.describe_acme_account(_request(DescribeAcmeAccountInput)) + client.describe_acme_account(_request(DescribeAcmeAccountInputDict)) + client.describe_acme_domain_validation(acme_domain_validation_arn=_) + client.describe_acme_domain_validation( + **_request(DescribeAcmeDomainValidationInputDict) + ) + client.describe_acme_domain_validation(_request(DescribeAcmeDomainValidationInput)) + client.describe_acme_domain_validation( + _request(DescribeAcmeDomainValidationInputDict) + ) + client.describe_acme_endpoint(acme_endpoint_arn=_) + client.describe_acme_endpoint(**_request(DescribeAcmeEndpointInputDict)) + client.describe_acme_endpoint(_request(DescribeAcmeEndpointInput)) + client.describe_acme_endpoint(_request(DescribeAcmeEndpointInputDict)) + client.describe_acme_external_account_binding(acme_external_account_binding_arn=_) + client.describe_acme_external_account_binding( + **_request(DescribeAcmeExternalAccountBindingInputDict) + ) + client.describe_acme_external_account_binding( + _request(DescribeAcmeExternalAccountBindingInput) + ) + client.describe_acme_external_account_binding( + _request(DescribeAcmeExternalAccountBindingInputDict) + ) + client.describe_certificate(certificate_arn=_) + client.describe_certificate(**_request(DescribeCertificateInputDict)) + client.describe_certificate(_request(DescribeCertificateInput)) + client.describe_certificate(_request(DescribeCertificateInputDict)) + client.export_certificate(certificate_arn=_, passphrase=_) + client.export_certificate(**_request(ExportCertificateInputDict)) + client.export_certificate(_request(ExportCertificateInput)) + client.export_certificate(_request(ExportCertificateInputDict)) + client.get_account_configuration() + client.get_account_configuration(**_request(GetAccountConfigurationInputDict)) + client.get_account_configuration(_request(GetAccountConfigurationInput)) + client.get_account_configuration(_request(GetAccountConfigurationInputDict)) + client.get_acme_external_account_binding_credentials( + acme_external_account_binding_arn=_ + ) + client.get_acme_external_account_binding_credentials( + **_request(GetAcmeExternalAccountBindingCredentialsInputDict) + ) + client.get_acme_external_account_binding_credentials( + _request(GetAcmeExternalAccountBindingCredentialsInput) + ) + client.get_acme_external_account_binding_credentials( + _request(GetAcmeExternalAccountBindingCredentialsInputDict) + ) + client.get_certificate(certificate_arn=_) + client.get_certificate(**_request(GetCertificateInputDict)) + client.get_certificate(_request(GetCertificateInput)) + client.get_certificate(_request(GetCertificateInputDict)) + client.import_certificate(certificate=_, private_key=_) + client.import_certificate(**_request(ImportCertificateInputDict)) + client.import_certificate(_request(ImportCertificateInput)) + client.import_certificate(_request(ImportCertificateInputDict)) + client.list_acme_accounts(acme_endpoint_arn=_) + client.list_acme_accounts(**_request(ListAcmeAccountsInputDict)) + client.list_acme_accounts(_request(ListAcmeAccountsInput)) + client.list_acme_accounts(_request(ListAcmeAccountsInputDict)) + client.list_acme_domain_validations(acme_endpoint_arn=_) + client.list_acme_domain_validations(**_request(ListAcmeDomainValidationsInputDict)) + client.list_acme_domain_validations(_request(ListAcmeDomainValidationsInput)) + client.list_acme_domain_validations(_request(ListAcmeDomainValidationsInputDict)) + client.list_acme_endpoints() + client.list_acme_endpoints(**_request(ListAcmeEndpointsInputDict)) + client.list_acme_endpoints(_request(ListAcmeEndpointsInput)) + client.list_acme_endpoints(_request(ListAcmeEndpointsInputDict)) + client.list_acme_external_account_bindings(acme_endpoint_arn=_) + client.list_acme_external_account_bindings( + **_request(ListAcmeExternalAccountBindingsInputDict) + ) + client.list_acme_external_account_bindings( + _request(ListAcmeExternalAccountBindingsInput) + ) + client.list_acme_external_account_bindings( + _request(ListAcmeExternalAccountBindingsInputDict) + ) + client.list_certificate_domain_validations(certificate_arn=_) + client.list_certificate_domain_validations( + **_request(ListCertificateDomainValidationsInputDict) + ) + client.list_certificate_domain_validations( + _request(ListCertificateDomainValidationsInput) + ) + client.list_certificate_domain_validations( + _request(ListCertificateDomainValidationsInputDict) + ) + client.list_certificates() + client.list_certificates(**_request(ListCertificatesInputDict)) + client.list_certificates(_request(ListCertificatesInput)) + client.list_certificates(_request(ListCertificatesInputDict)) + client.list_tags_for_certificate(certificate_arn=_) + client.list_tags_for_certificate(**_request(ListTagsForCertificateInputDict)) + client.list_tags_for_certificate(_request(ListTagsForCertificateInput)) + client.list_tags_for_certificate(_request(ListTagsForCertificateInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.put_account_configuration(idempotency_token=_) + client.put_account_configuration(**_request(PutAccountConfigurationInputDict)) + client.put_account_configuration(_request(PutAccountConfigurationInput)) + client.put_account_configuration(_request(PutAccountConfigurationInputDict)) + client.remove_tags_from_certificate(certificate_arn=_, tags=_) + client.remove_tags_from_certificate(**_request(RemoveTagsFromCertificateInputDict)) + client.remove_tags_from_certificate(_request(RemoveTagsFromCertificateInput)) + client.remove_tags_from_certificate(_request(RemoveTagsFromCertificateInputDict)) + client.renew_certificate(certificate_arn=_) + client.renew_certificate(**_request(RenewCertificateInputDict)) + client.renew_certificate(_request(RenewCertificateInput)) + client.renew_certificate(_request(RenewCertificateInputDict)) + client.request_certificate(domain_name=_) + client.request_certificate(**_request(RequestCertificateInputDict)) + client.request_certificate(_request(RequestCertificateInput)) + client.request_certificate(_request(RequestCertificateInputDict)) + client.resend_validation_email(certificate_arn=_, domain=_, validation_domain=_) + client.resend_validation_email(**_request(ResendValidationEmailInputDict)) + client.resend_validation_email(_request(ResendValidationEmailInput)) + client.resend_validation_email(_request(ResendValidationEmailInputDict)) + client.revoke_acme_account(acme_endpoint_arn=_, account_url=_) + client.revoke_acme_account(**_request(RevokeAcmeAccountInputDict)) + client.revoke_acme_account(_request(RevokeAcmeAccountInput)) + client.revoke_acme_account(_request(RevokeAcmeAccountInputDict)) + client.revoke_acme_external_account_binding(acme_external_account_binding_arn=_) + client.revoke_acme_external_account_binding( + **_request(RevokeAcmeExternalAccountBindingInputDict) + ) + client.revoke_acme_external_account_binding( + _request(RevokeAcmeExternalAccountBindingInput) + ) + client.revoke_acme_external_account_binding( + _request(RevokeAcmeExternalAccountBindingInputDict) + ) + client.revoke_certificate(certificate_arn=_, revocation_reason=_) + client.revoke_certificate(**_request(RevokeCertificateInputDict)) + client.revoke_certificate(_request(RevokeCertificateInput)) + client.revoke_certificate(_request(RevokeCertificateInputDict)) + client.search_certificates() + client.search_certificates(**_request(SearchCertificatesInputDict)) + client.search_certificates(_request(SearchCertificatesInput)) + client.search_certificates(_request(SearchCertificatesInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_acme_domain_validation(acme_domain_validation_arn=_) + client.update_acme_domain_validation( + **_request(UpdateAcmeDomainValidationInputDict) + ) + client.update_acme_domain_validation(_request(UpdateAcmeDomainValidationInput)) + client.update_acme_domain_validation(_request(UpdateAcmeDomainValidationInputDict)) + client.update_acme_endpoint(acme_endpoint_arn=_) + client.update_acme_endpoint(**_request(UpdateAcmeEndpointInputDict)) + client.update_acme_endpoint(_request(UpdateAcmeEndpointInput)) + client.update_acme_endpoint(_request(UpdateAcmeEndpointInputDict)) + client.update_certificate_options(certificate_arn=_, options=_) + client.update_certificate_options(**_request(UpdateCertificateOptionsInputDict)) + client.update_certificate_options(_request(UpdateCertificateOptionsInput)) + client.update_certificate_options(_request(UpdateCertificateOptionsInputDict)) diff --git a/clients/aws-sdk-api-gateway/pyproject.toml b/clients/aws-sdk-api-gateway/pyproject.toml index 28b5fcf4c..ef79666fa 100644 --- a/clients/aws-sdk-api-gateway/pyproject.toml +++ b/clients/aws-sdk-api-gateway/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/models_0.pyi b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/models_0.pyi index 81284f36e..b32894a13 100644 --- a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/models_0.pyi +++ b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/models_0.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -14,8 +16,11 @@ from ..models import ( ServiceError, Stage, StageKey, + StageKeyDict, ThrottleSettings, + ThrottleSettingsDict, TlsConfig, + TlsConfigDict, UsagePlan, UsagePlanKey, VpcLink, @@ -103,6 +108,19 @@ class ApiStage(_SerdeShape): usage plan. """ +class ApiStageDict(TypedDict, total=False): + """Dictionary form of `ApiStage`.""" + + api_id: str | None + """API Id of the associated API stage in a usage plan.""" + stage: str | None + """API stage name of the associated API stage in a usage plan.""" + throttle: Mapping[str, ThrottleSettings | ThrottleSettingsDict] | None + """ + Map containing method level throttling information for API stage in a + usage plan. + """ + class ApiStatus(UnknownEnumMixin, StrEnum): UPDATING = "UPDATING" AVAILABLE = "AVAILABLE" @@ -288,6 +306,26 @@ class CanarySettings(_SerdeShape): cache or not. """ +class CanarySettingsDict(TypedDict, total=False): + """Dictionary form of `CanarySettings`.""" + + percent_traffic: float | None + """The percent (0-100) of traffic diverted to a canary deployment.""" + deployment_id: str | None + """The ID of the canary deployment.""" + stage_variable_overrides: Mapping[str, str] | None + """ + Stage variables overridden for a canary release deployment, including + new stage variables introduced in the canary. These stage variables are + represented as a string-to-string map between stage variable names and + their values. + """ + use_stage_cache: bool | None + """ + A Boolean flag to indicate whether the canary deployment uses the stage + cache or not. + """ + @dataclass(kw_only=True) class ClientCertificate(_SerdeShape): """ @@ -372,6 +410,40 @@ class CreateApiKeyInput(_SerdeShape): start with `aws:`. The tag value can be up to 256 characters. """ +class CreateApiKeyInputDict(TypedDict, total=False): + """Dictionary form of `CreateApiKeyInput`.""" + + name: str | None + """The name of the ApiKey.""" + description: str | None + """The description of the ApiKey.""" + enabled: bool | None + """Specifies whether the ApiKey can be used by callers.""" + generate_distinct_id: bool | None + """ + Specifies whether (`true`) or not (`false`) the key identifier is + distinct from the created API key value. This parameter is deprecated + and should not be used. + """ + value: str | None + """Specifies a value of the API key.""" + stage_keys: Sequence[StageKey | StageKeyDict] | None + """ + DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API + key. + """ + customer_id: str | None + """ + An Amazon Web Services Marketplace customer identifier, when integrating + with the Amazon Web Services SaaS Marketplace. + """ + tags: Mapping[str, str] | None + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + @dataclass(kw_only=True) class CreateApiKeyOutput(_SerdeShape): """ @@ -505,6 +577,95 @@ class CreateAuthorizerInput(_SerdeShape): value is 300. The maximum value is 3600, or 1 hour. """ +class CreateAuthorizerInputDict(TypedDict, total=False): + """Dictionary form of `CreateAuthorizerInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + name: Required[str] + """The name of the authorizer.""" + type: Required[str] + """ + The authorizer type. Valid values are `TOKEN` for a Lambda function + using a single authorization token submitted in a custom header, + `REQUEST` for a Lambda function using incoming request parameters, and + `COGNITO_USER_POOLS` for using an Amazon Cognito user pool. + """ + provider_ar_ns: Sequence[str] | None + """ + A list of the Amazon Cognito user pool ARNs for the `COGNITO_USER_POOLS` + authorizer. Each element is of this format: + `arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}`. For + a `TOKEN` or `REQUEST` authorizer, this is not defined. + """ + auth_type: str | None + """ + Optional customer-defined field, used in OpenAPI imports and exports + without functional impact. + """ + authorizer_uri: str | None + """ + Specifies the authorizer's Uniform Resource Identifier (URI). For + `TOKEN` or `REQUEST` authorizers, this must be a well-formed Lambda + function URI, for example, + `arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations`. + In general, the URI has this form + `arn:aws:apigateway:{region}:lambda:path/{service_api}`, where + `{region}` is the same as the region hosting the Lambda function, `path` + indicates that the remaining substring in the URI should be treated as + the path to the resource, including the initial `/`. For Lambda + functions, this is usually of the form + `/2015-03-31/functions/[FunctionARN]/invocations`. + """ + authorizer_credentials: str | None + """ + Specifies the required credentials as an IAM role for API Gateway to + invoke the authorizer. To specify an IAM role for API Gateway to assume, + use the role's Amazon Resource Name (ARN). To use resource-based + permissions on the Lambda function, specify null. + """ + identity_source: str | None + """ + The identity source for which authorization is requested. For a `TOKEN` + or `COGNITO_USER_POOLS` authorizer, this is required and specifies the + request header mapping expression for the custom header holding the + authorization token submitted by the client. For example, if the token + header name is `Auth`, the header mapping expression is + `method.request.header.Auth`. For the `REQUEST` authorizer, this is + required when authorization caching is enabled. The value is a + comma-separated string of one or more mapping expressions of the + specified request parameters. For example, if an `Auth` header, a `Name` + query string parameter are defined as identity sources, this value is + `method.request.header.Auth, method.request.querystring.Name`. These + parameters will be used to derive the authorization caching key and to + perform runtime validation of the `REQUEST` authorizer by verifying all + of the identity-related request parameters are present, not null and + non-empty. Only when this is true does the authorizer invoke the + authorizer Lambda function, otherwise, it returns a 401 Unauthorized + response without calling the Lambda function. The valid value is a + string of comma-separated mapping expressions of the specified request + parameters. When the authorization caching is not enabled, this property + is optional. + """ + identity_validation_expression: str | None + """ + A validation expression for the incoming identity token. For `TOKEN` + authorizers, this value is a regular expression. For + `COGNITO_USER_POOLS` authorizers, API Gateway will match the `aud` field + of the incoming token from the client against the specified regular + expression. It will invoke the authorizer's Lambda function when there + is a match. Otherwise, it will return a 401 Unauthorized response + without calling the Lambda function. The validation expression does not + apply to the `REQUEST` authorizer. + """ + authorizer_result_ttl_in_seconds: int | None + """ + The TTL in seconds of cached authorizer results. If it equals 0, + authorization caching is disabled. If it is greater than 0, API Gateway + will cache authorizer responses. If this field is not set, the default + value is 300. The maximum value is 3600, or 1 hour. + """ + @dataclass(kw_only=True) class CreateAuthorizerOutput(_SerdeShape): """ @@ -632,6 +793,32 @@ class CreateBasePathMappingInput(_SerdeShape): name after any base path name. """ +class CreateBasePathMappingInputDict(TypedDict, total=False): + """Dictionary form of `CreateBasePathMappingInput`.""" + + domain_name: Required[str] + """The domain name of the BasePathMapping resource to create.""" + domain_name_id: str | None + """ + The identifier for the domain name resource. Required for private custom + domain names. + """ + base_path: str | None + """ + The base path name that callers of the API must provide as part of the + URL after the domain name. This value must be unique for all of the + mappings across a single API. Specify '(none)' if you do not want + callers to specify a base path name after the domain name. + """ + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage: str | None + """ + The name of the API's stage that you want to use for this mapping. + Specify '(none)' if you want callers to explicitly specify the stage + name after any base path name. + """ + @dataclass(kw_only=True) class CreateBasePathMappingOutput(_SerdeShape): """ @@ -694,6 +881,43 @@ class CreateDeploymentInput(_SerdeShape): tracing_enabled: bool | None = ... """Specifies whether active tracing with X-ray is enabled for the Stage.""" +class CreateDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `CreateDeploymentInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: str | None + """The name of the Stage resource for the Deployment resource to create.""" + stage_description: str | None + """ + The description of the Stage resource for the Deployment resource to + create. + """ + description: str | None + """The description for the Deployment resource to create.""" + cache_cluster_enabled: bool | None + """Enables a cache cluster for the Stage resource specified in the input.""" + cache_cluster_size: str | None + """ + The stage's cache capacity in GB. For more information about choosing a + cache size, see [Enabling API caching to enhance + responsiveness](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html). + """ + variables: Mapping[str, str] | None + """ + A map that defines the stage variables for the Stage resource that is + associated with the new deployment. Variable names can have alphanumeric + and underscore characters, and the values must match + `[A-Za-z0-9-._~:/?#&=,]+`. + """ + canary_settings: DeploymentCanarySettings | DeploymentCanarySettingsDict | None + """ + The input configuration for the canary deployment when the deployment is + a canary release deployment. + """ + tracing_enabled: bool | None + """Specifies whether active tracing with X-ray is enabled for the Stage.""" + @dataclass(kw_only=True) class CreateDeploymentOutput(_SerdeShape): """ @@ -739,6 +963,23 @@ class CreateDocumentationPartInput(_SerdeShape): pairs can be exported and, hence, published. """ +class CreateDocumentationPartInputDict(TypedDict, total=False): + """Dictionary form of `CreateDocumentationPartInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + location: Required[DocumentationPartLocation | DocumentationPartLocationDict] + """ + The location of the targeted API entity of the to-be-created + documentation part. + """ + properties: Required[str] + """ + The new documentation content map of the targeted API entity. Enclosed + key-value pairs are API-specific, but only OpenAPI-compliant key-value + pairs can be exported and, hence, published. + """ + @dataclass(kw_only=True) class CreateDocumentationPartOutput(_SerdeShape): """A documentation part for a targeted API entity.""" @@ -760,7 +1001,7 @@ class CreateDocumentationPartOutput(_SerdeShape): """ A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., - `"{ \"description\": \"The API does ...\" }"`. Only OpenAPI-compliant + `"{ \\"description\\": \\"The API does ...\\" }"`. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of @@ -787,6 +1028,18 @@ class CreateDocumentationVersionInput(_SerdeShape): description: str | None = ... """A description about the new documentation snapshot.""" +class CreateDocumentationVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateDocumentationVersionInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + documentation_version: Required[str] + """The version identifier of the new snapshot.""" + stage_name: str | None + """The stage name to be associated with the new documentation snapshot.""" + description: str | None + """A description about the new documentation snapshot.""" + @dataclass(kw_only=True) class CreateDocumentationVersionOutput(_SerdeShape): """A snapshot of the documentation of an API.""" @@ -825,6 +1078,25 @@ class CreateDomainNameAccessAssociationInput(_SerdeShape): start with `aws:`. The tag value can be up to 256 characters. """ +class CreateDomainNameAccessAssociationInputDict(TypedDict, total=False): + """Dictionary form of `CreateDomainNameAccessAssociationInput`.""" + + domain_name_arn: Required[str] + """The ARN of the domain name.""" + access_association_source_type: Required[str] + """The type of the domain name access association source.""" + access_association_source: Required[str] + """ + The identifier of the domain name access association source. For a VPCE, + the value is the VPC endpoint ID. + """ + tags: Mapping[str, str] | None + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + @dataclass(kw_only=True) class CreateDomainNameAccessAssociationOutput(_SerdeShape): """ @@ -956,59 +1228,158 @@ class CreateDomainNameInput(_SerdeShape): APIs. """ -@dataclass(kw_only=True) -class CreateDomainNameOutput(_SerdeShape): +class CreateDomainNameInputDict(TypedDict, total=False): + """Dictionary form of `CreateDomainNameInput`.""" + + domain_name: Required[str] + """The name of the DomainName resource.""" + certificate_name: str | None """ - Represents a custom domain name as a user-friendly host name of an API - (RestApi). + The user-friendly name of the certificate that will be used by + edge-optimized endpoint or private endpoint for this domain name. """ - - domain_name: str | None = ... + certificate_body: str | None """ - The custom domain name as an API host name, for example, - `my-api.example.com`. + [Deprecated] The body of the server certificate that will be used by + edge-optimized endpoint or private endpoint for this domain name + provided by your certificate authority. """ - domain_name_id: str | None = ... + certificate_private_key: str | None """ - The identifier for the domain name resource. Supported only for private - custom domain names. + [Deprecated] Your edge-optimized endpoint's domain name + certificate's private key. """ - domain_name_arn: str | None = ... - """The ARN of the domain name.""" - certificate_name: str | None = ... + certificate_chain: str | None """ - The name of the certificate that will be used by edge-optimized endpoint - or private endpoint for this domain name. + [Deprecated] The intermediate certificates and optionally the root + certificate, one after the other without any blank lines, used by an + edge-optimized endpoint for this domain name. If you include the root + certificate, your certificate chain must start with intermediate + certificates and end with the root certificate. Use the intermediate + certificates that were provided by your certificate authority. Do not + include any intermediaries that are not in the chain of trust path. """ - certificate_arn: str | None = ... + certificate_arn: str | None """ The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint or private endpoint for this domain name. Certificate Manager is the only supported source. """ - certificate_upload_date: datetime | None = ... - """ - The timestamp when the certificate that was used by edge-optimized - endpoint or private endpoint for this domain name was uploaded. + regional_certificate_name: str | None """ - regional_domain_name: str | None = ... + The user-friendly name of the certificate that will be used by regional + endpoint for this domain name. """ - The domain name associated with the regional endpoint for this custom - domain name. You set up this association by adding a DNS record that - points the custom domain name to this regional domain name. The regional - domain name is returned by API Gateway when you create a regional - endpoint. + regional_certificate_arn: str | None """ - regional_hosted_zone_id: str | None = ... + The reference to an Amazon Web Services-managed certificate that will be + used by regional endpoint for this domain name. Certificate Manager is + the only supported source. """ - The region-specific Amazon Route 53 Hosted Zone ID of the regional - endpoint. For more information, see Set up a Regional Custom Domain Name - and AWS Regions and Endpoints for API Gateway. + endpoint_configuration: EndpointConfiguration | EndpointConfigurationDict | None """ - regional_certificate_name: str | None = ... + The endpoint configuration of this DomainName showing the endpoint types + and IP address types of the domain name. """ - The name of the certificate that will be used for validating the - regional domain name. + tags: Mapping[str, str] | None + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + security_policy: str | None + """ + The Transport Layer Security (TLS) version + cipher suite for this + DomainName. + """ + endpoint_access_mode: str | None + """ + The endpoint access mode of the DomainName. Only available for + DomainNames that use security policies that start with + `SecurityPolicy_`. + """ + mutual_tls_authentication: ( + MutualTlsAuthenticationInput | MutualTlsAuthenticationInputDict | None + ) + """ + The mutual TLS authentication configuration for a custom domain name. If + specified, API Gateway performs two-way authentication between the + client and the server. Clients must present a trusted certificate to + access your API. + """ + ownership_verification_certificate_arn: str | None + """ + The ARN of the public certificate issued by ACM to validate ownership of + your custom domain. Only required when configuring mutual TLS and using + an ACM imported or private CA certificate ARN as the + regionalCertificateArn. + """ + policy: str | None + """ + A stringified JSON policy document that applies to the `execute-api` + service for this DomainName regardless of the caller and Method + configuration. Supported only for private custom domain names. + """ + routing_mode: str | None + """ + The routing mode for this domain name. The routing mode determines how + API Gateway sends traffic from your custom domain name to your private + APIs. + """ + +@dataclass(kw_only=True) +class CreateDomainNameOutput(_SerdeShape): + """ + Represents a custom domain name as a user-friendly host name of an API + (RestApi). + """ + + domain_name: str | None = ... + """ + The custom domain name as an API host name, for example, + `my-api.example.com`. + """ + domain_name_id: str | None = ... + """ + The identifier for the domain name resource. Supported only for private + custom domain names. + """ + domain_name_arn: str | None = ... + """The ARN of the domain name.""" + certificate_name: str | None = ... + """ + The name of the certificate that will be used by edge-optimized endpoint + or private endpoint for this domain name. + """ + certificate_arn: str | None = ... + """ + The reference to an Amazon Web Services-managed certificate that will be + used by edge-optimized endpoint or private endpoint for this domain + name. Certificate Manager is the only supported source. + """ + certificate_upload_date: datetime | None = ... + """ + The timestamp when the certificate that was used by edge-optimized + endpoint or private endpoint for this domain name was uploaded. + """ + regional_domain_name: str | None = ... + """ + The domain name associated with the regional endpoint for this custom + domain name. You set up this association by adding a DNS record that + points the custom domain name to this regional domain name. The regional + domain name is returned by API Gateway when you create a regional + endpoint. + """ + regional_hosted_zone_id: str | None = ... + """ + The region-specific Amazon Route 53 Hosted Zone ID of the regional + endpoint. For more information, see Set up a Regional Custom Domain Name + and AWS Regions and Endpoints for API Gateway. + """ + regional_certificate_name: str | None = ... + """ + The name of the certificate that will be used for validating the + regional domain name. """ regional_certificate_arn: str | None = ... """ @@ -1120,6 +1491,23 @@ class CreateModelInput(_SerdeShape): content_type: str | None = ... """The content-type for the model.""" +class CreateModelInputDict(TypedDict, total=False): + """Dictionary form of `CreateModelInput`.""" + + rest_api_id: Required[str] + """The RestApi identifier under which the Model will be created.""" + name: Required[str] + """The name of the model. Must be alphanumeric.""" + description: str | None + """The description of the model.""" + schema: str | None + """ + The schema for the model. For `application/json` models, this should be + JSON schema draft 4 model. The maximum size of the model is 400 KB. + """ + content_type: Required[str] + """The content-type for the model.""" + @dataclass(kw_only=True) class CreateModelOutput(_SerdeShape): """ @@ -1171,6 +1559,24 @@ class CreateRequestValidatorInput(_SerdeShape): `true`, or not `false`. """ +class CreateRequestValidatorInputDict(TypedDict, total=False): + """Dictionary form of `CreateRequestValidatorInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + name: str | None + """The name of the to-be-created RequestValidator.""" + validate_request_body: bool | None + """ + A Boolean flag to indicate whether to validate request body according to + the configured model schema for the method (`true`) or not (`false`). + """ + validate_request_parameters: bool | None + """ + A Boolean flag to indicate whether to validate request parameters, + `true`, or not `false`. + """ + @dataclass(kw_only=True) class CreateRequestValidatorOutput(_SerdeShape): """A set of validation rules for incoming Method requests.""" @@ -1208,6 +1614,16 @@ class CreateResourceInput(_SerdeShape): path_part: str | None = ... """The last path segment for this resource.""" +class CreateResourceInputDict(TypedDict, total=False): + """Dictionary form of `CreateResourceInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + parent_id: Required[str] + """The parent resource's identifier.""" + path_part: Required[str] + """The last path segment for this resource.""" + @dataclass(kw_only=True) class CreateResourceOutput(_SerdeShape): """Represents an API resource.""" @@ -1298,6 +1714,73 @@ class CreateRestApiInput(_SerdeShape): that use security policies that start with `SecurityPolicy_`. """ +class CreateRestApiInputDict(TypedDict, total=False): + """Dictionary form of `CreateRestApiInput`.""" + + name: Required[str] + """The name of the RestApi.""" + description: str | None + """The description of the RestApi.""" + version: str | None + """A version identifier for the API.""" + clone_from: str | None + """The ID of the RestApi that you want to clone from.""" + binary_media_types: Sequence[str] | None + """ + The list of binary media types supported by the RestApi. By default, the + RestApi supports only UTF-8-encoded text payloads. + """ + minimum_compression_size: int | None + """ + A nullable integer that is used to enable compression (with non-negative + between 0 and 10485760 (10M) bytes, inclusive) or disable compression + (with a null value) on an API. When compression is enabled, compression + or decompression is not applied on the payload if the payload size is + smaller than this value. Setting it to zero allows compression for any + payload size. + """ + api_key_source: str | None + """ + The source of the API key for metering requests according to a usage + plan. Valid values are: `HEADER` to read the API key from the + `X-API-Key` header of a request. `AUTHORIZER` to read the API key from + the `UsageIdentifierKey` from a custom authorizer. + """ + endpoint_configuration: EndpointConfiguration | EndpointConfigurationDict | None + """ + The endpoint configuration of this RestApi showing the endpoint types + and IP address types of the API. + """ + policy: str | None + """ + A stringified JSON policy document that applies to this RestApi + regardless of the caller and Method configuration. + """ + tags: Mapping[str, str] | None + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + disable_execute_api_endpoint: bool | None + """ + Specifies whether clients can invoke your API by using the default + `execute-api` endpoint. By default, clients can invoke your API with the + default `https://{api_id}.execute-api.{region}.amazonaws.com` endpoint. + To require that clients use a custom domain name to invoke your API, + disable the default endpoint + """ + security_policy: str | None + """ + The Transport Layer Security (TLS) version + cipher suite for this + RestApi. + """ + endpoint_access_mode: str | None + """ + The endpoint access mode of the RestApi. Only available for RestApis + that use security policies that start with `SecurityPolicy_`. + """ + @dataclass(kw_only=True) class CreateRestApiOutput(_SerdeShape): """Represents a REST API.""" @@ -1431,6 +1914,48 @@ class CreateStageInput(_SerdeShape): start with `aws:`. The tag value can be up to 256 characters. """ +class CreateStageInputDict(TypedDict, total=False): + """Dictionary form of `CreateStageInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: Required[str] + """ + The name for the Stage resource. Stage names can only contain + alphanumeric characters, hyphens, and underscores. Maximum length is 128 + characters. + """ + deployment_id: Required[str] + """The identifier of the Deployment resource for the Stage resource.""" + description: str | None + """The description of the Stage resource.""" + cache_cluster_enabled: bool | None + """Whether cache clustering is enabled for the stage.""" + cache_cluster_size: str | None + """ + The stage's cache capacity in GB. For more information about choosing a + cache size, see [Enabling API caching to enhance + responsiveness](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html). + """ + variables: Mapping[str, str] | None + """ + A map that defines the stage variables for the new Stage resource. + Variable names can have alphanumeric and underscore characters, and the + values must match `[A-Za-z0-9-._~:/?#&=,]+`. + """ + documentation_version: str | None + """The version of the associated API documentation.""" + canary_settings: CanarySettings | CanarySettingsDict | None + """The canary deployment settings of this stage.""" + tracing_enabled: bool | None + """Specifies whether active tracing with X-ray is enabled for the Stage.""" + tags: Mapping[str, str] | None + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + @dataclass(kw_only=True) class CreateStageOutput(_SerdeShape): """ @@ -1469,7 +1994,7 @@ class CreateStageOutput(_SerdeShape): A map that defines the method settings for a Stage resource. Keys (designated as `/{method_setting_key` below) are method paths defined as `{resource_path}/{http_method}` for an individual method override, or - `/*/*` for overriding all methods in the stage. + `/\\*/\\*` for overriding all methods in the stage. """ variables: dict[str, str] | None = ... """ @@ -1529,6 +2054,26 @@ class CreateUsagePlanInput(_SerdeShape): start with `aws:`. The tag value can be up to 256 characters. """ +class CreateUsagePlanInputDict(TypedDict, total=False): + """Dictionary form of `CreateUsagePlanInput`.""" + + name: Required[str] + """The name of the usage plan.""" + description: str | None + """The description of the usage plan.""" + api_stages: Sequence[ApiStage | ApiStageDict] | None + """The associated API stages of the usage plan.""" + throttle: ThrottleSettings | ThrottleSettingsDict | None + """The throttling limits of the usage plan.""" + quota: QuotaSettings | QuotaSettingsDict | None + """The quota of the usage plan.""" + tags: Mapping[str, str] | None + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + @dataclass(kw_only=True) class CreateUsagePlanKeyInput(_SerdeShape): """ @@ -1546,6 +2091,19 @@ class CreateUsagePlanKeyInput(_SerdeShape): key_type: str | None = ... """The type of a UsagePlanKey resource for a plan customer.""" +class CreateUsagePlanKeyInputDict(TypedDict, total=False): + """Dictionary form of `CreateUsagePlanKeyInput`.""" + + usage_plan_id: Required[str] + """ + The Id of the UsagePlan resource representing the usage plan containing + the to-be-created UsagePlanKey resource representing a plan customer. + """ + key_id: Required[str] + """The identifier of a UsagePlanKey resource for a plan customer.""" + key_type: Required[str] + """The type of a UsagePlanKey resource for a plan customer.""" + @dataclass(kw_only=True) class CreateUsagePlanKeyOutput(_SerdeShape): """Represents a usage plan key to identify a plan customer.""" @@ -1644,6 +2202,26 @@ class CreateVpcLinkInput(_SerdeShape): start with `aws:`. The tag value can be up to 256 characters. """ +class CreateVpcLinkInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcLinkInput`.""" + + name: Required[str] + """The name used to label and identify the VPC link.""" + description: str | None + """The description of the VPC link.""" + target_arns: Required[Sequence[str]] + """ + The ARN of the network load balancer of the VPC targeted by the VPC + link. The network load balancer must be owned by the same Amazon Web + Services account of the API owner. + """ + tags: Mapping[str, str] | None + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + @dataclass(kw_only=True) class CreateVpcLinkOutput(_SerdeShape): """ @@ -1694,6 +2272,12 @@ class DeleteApiKeyInput(_SerdeShape): api_key: str | None = ... """The identifier of the ApiKey resource to be deleted.""" +class DeleteApiKeyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteApiKeyInput`.""" + + api_key: Required[str] + """The identifier of the ApiKey resource to be deleted.""" + @dataclass(kw_only=True) class DeleteApiKeyOutput(_SerdeShape): """Dataclass for DeleteApiKeyOutput structure.""" @@ -1715,6 +2299,14 @@ class DeleteAuthorizerInput(_SerdeShape): authorizer_id: str | None = ... """The identifier of the Authorizer resource.""" +class DeleteAuthorizerInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAuthorizerInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + authorizer_id: Required[str] + """The identifier of the Authorizer resource.""" + @dataclass(kw_only=True) class DeleteAuthorizerOutput(_SerdeShape): """Dataclass for DeleteAuthorizerOutput structure.""" @@ -1745,6 +2337,23 @@ class DeleteBasePathMappingInput(_SerdeShape): To specify an empty base path, set this parameter to `'(none)'`. """ +class DeleteBasePathMappingInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBasePathMappingInput`.""" + + domain_name: Required[str] + """The domain name of the BasePathMapping resource to delete.""" + domain_name_id: str | None + """ + The identifier for the domain name resource. Supported only for private + custom domain names. + """ + base_path: Required[str] + """ + The base path name of the BasePathMapping resource to delete. + + To specify an empty base path, set this parameter to `'(none)'`. + """ + @dataclass(kw_only=True) class DeleteBasePathMappingOutput(_SerdeShape): """Dataclass for DeleteBasePathMappingOutput structure.""" @@ -1764,6 +2373,12 @@ class DeleteClientCertificateInput(_SerdeShape): client_certificate_id: str | None = ... """The identifier of the ClientCertificate resource to be deleted.""" +class DeleteClientCertificateInputDict(TypedDict, total=False): + """Dictionary form of `DeleteClientCertificateInput`.""" + + client_certificate_id: Required[str] + """The identifier of the ClientCertificate resource to be deleted.""" + @dataclass(kw_only=True) class DeleteClientCertificateOutput(_SerdeShape): """Dataclass for DeleteClientCertificateOutput structure.""" @@ -1785,6 +2400,14 @@ class DeleteDeploymentInput(_SerdeShape): deployment_id: str | None = ... """The identifier of the Deployment resource to delete.""" +class DeleteDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDeploymentInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + deployment_id: Required[str] + """The identifier of the Deployment resource to delete.""" + @dataclass(kw_only=True) class DeleteDeploymentOutput(_SerdeShape): """Dataclass for DeleteDeploymentOutput structure.""" @@ -1806,6 +2429,14 @@ class DeleteDocumentationPartInput(_SerdeShape): documentation_part_id: str | None = ... """The identifier of the to-be-deleted documentation part.""" +class DeleteDocumentationPartInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDocumentationPartInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + documentation_part_id: Required[str] + """The identifier of the to-be-deleted documentation part.""" + @dataclass(kw_only=True) class DeleteDocumentationPartOutput(_SerdeShape): """Dataclass for DeleteDocumentationPartOutput structure.""" @@ -1827,6 +2458,14 @@ class DeleteDocumentationVersionInput(_SerdeShape): documentation_version: str | None = ... """The version identifier of a to-be-deleted documentation snapshot.""" +class DeleteDocumentationVersionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDocumentationVersionInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + documentation_version: Required[str] + """The version identifier of a to-be-deleted documentation snapshot.""" + @dataclass(kw_only=True) class DeleteDocumentationVersionOutput(_SerdeShape): """Dataclass for DeleteDocumentationVersionOutput structure.""" @@ -1846,6 +2485,12 @@ class DeleteDomainNameAccessAssociationInput(_SerdeShape): domain_name_access_association_arn: str | None = ... """The ARN of the domain name access association resource.""" +class DeleteDomainNameAccessAssociationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDomainNameAccessAssociationInput`.""" + + domain_name_access_association_arn: Required[str] + """The ARN of the domain name access association resource.""" + @dataclass(kw_only=True) class DeleteDomainNameAccessAssociationOutput(_SerdeShape): """Dataclass for DeleteDomainNameAccessAssociationOutput structure.""" @@ -1870,6 +2515,17 @@ class DeleteDomainNameInput(_SerdeShape): custom domain names. """ +class DeleteDomainNameInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDomainNameInput`.""" + + domain_name: Required[str] + """The name of the DomainName resource to be deleted.""" + domain_name_id: str | None + """ + The identifier for the domain name resource. Supported only for private + custom domain names. + """ + @dataclass(kw_only=True) class DeleteDomainNameOutput(_SerdeShape): """Dataclass for DeleteDomainNameOutput structure.""" @@ -1894,6 +2550,14 @@ class DeleteGatewayResponseInput(_SerdeShape): response_type: str | None = ... """The response type of the associated GatewayResponse.""" +class DeleteGatewayResponseInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGatewayResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + response_type: Required[str] + """The response type of the associated GatewayResponse.""" + @dataclass(kw_only=True) class DeleteGatewayResponseOutput(_SerdeShape): """Dataclass for DeleteGatewayResponseOutput structure.""" @@ -1917,6 +2581,16 @@ class DeleteIntegrationInput(_SerdeShape): http_method: str | None = ... """Specifies a delete integration request's HTTP method.""" +class DeleteIntegrationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIntegrationInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Specifies a delete integration request's resource identifier.""" + http_method: Required[str] + """Specifies a delete integration request's HTTP method.""" + @dataclass(kw_only=True) class DeleteIntegrationOutput(_SerdeShape): """Dataclass for DeleteIntegrationOutput structure.""" @@ -1942,6 +2616,18 @@ class DeleteIntegrationResponseInput(_SerdeShape): status_code: str | None = ... """Specifies a delete integration response request's status code.""" +class DeleteIntegrationResponseInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIntegrationResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Specifies a delete integration response request's resource identifier.""" + http_method: Required[str] + """Specifies a delete integration response request's HTTP method.""" + status_code: Required[str] + """Specifies a delete integration response request's status code.""" + @dataclass(kw_only=True) class DeleteIntegrationResponseOutput(_SerdeShape): """Dataclass for DeleteIntegrationResponseOutput structure.""" @@ -1965,6 +2651,16 @@ class DeleteMethodInput(_SerdeShape): http_method: str | None = ... """The HTTP verb of the Method resource.""" +class DeleteMethodInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMethodInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The Resource identifier for the Method resource.""" + http_method: Required[str] + """The HTTP verb of the Method resource.""" + @dataclass(kw_only=True) class DeleteMethodOutput(_SerdeShape): """Dataclass for DeleteMethodOutput structure.""" @@ -1990,6 +2686,18 @@ class DeleteMethodResponseInput(_SerdeShape): status_code: str | None = ... """The status code identifier for the MethodResponse resource.""" +class DeleteMethodResponseInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMethodResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The Resource identifier for the MethodResponse resource.""" + http_method: Required[str] + """The HTTP verb of the Method resource.""" + status_code: Required[str] + """The status code identifier for the MethodResponse resource.""" + @dataclass(kw_only=True) class DeleteMethodResponseOutput(_SerdeShape): """Dataclass for DeleteMethodResponseOutput structure.""" @@ -2011,6 +2719,14 @@ class DeleteModelInput(_SerdeShape): model_name: str | None = ... """The name of the model to delete.""" +class DeleteModelInputDict(TypedDict, total=False): + """Dictionary form of `DeleteModelInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + model_name: Required[str] + """The name of the model to delete.""" + @dataclass(kw_only=True) class DeleteModelOutput(_SerdeShape): """Dataclass for DeleteModelOutput structure.""" @@ -2032,6 +2748,14 @@ class DeleteRequestValidatorInput(_SerdeShape): request_validator_id: str | None = ... """The identifier of the RequestValidator to be deleted.""" +class DeleteRequestValidatorInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRequestValidatorInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + request_validator_id: Required[str] + """The identifier of the RequestValidator to be deleted.""" + @dataclass(kw_only=True) class DeleteRequestValidatorOutput(_SerdeShape): """Dataclass for DeleteRequestValidatorOutput structure.""" @@ -2053,6 +2777,14 @@ class DeleteResourceInput(_SerdeShape): resource_id: str | None = ... """The identifier of the Resource resource.""" +class DeleteResourceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourceInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The identifier of the Resource resource.""" + @dataclass(kw_only=True) class DeleteResourceOutput(_SerdeShape): """Dataclass for DeleteResourceOutput structure.""" @@ -2072,6 +2804,12 @@ class DeleteRestApiInput(_SerdeShape): rest_api_id: str | None = ... """The string identifier of the associated RestApi.""" +class DeleteRestApiInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRestApiInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + @dataclass(kw_only=True) class DeleteRestApiOutput(_SerdeShape): """Dataclass for DeleteRestApiOutput structure.""" @@ -2093,6 +2831,14 @@ class DeleteStageInput(_SerdeShape): stage_name: str | None = ... """The name of the Stage resource to delete.""" +class DeleteStageInputDict(TypedDict, total=False): + """Dictionary form of `DeleteStageInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: Required[str] + """The name of the Stage resource to delete.""" + @dataclass(kw_only=True) class DeleteStageOutput(_SerdeShape): """Dataclass for DeleteStageOutput structure.""" @@ -2112,6 +2858,12 @@ class DeleteUsagePlanInput(_SerdeShape): usage_plan_id: str | None = ... """The Id of the to-be-deleted usage plan.""" +class DeleteUsagePlanInputDict(TypedDict, total=False): + """Dictionary form of `DeleteUsagePlanInput`.""" + + usage_plan_id: Required[str] + """The Id of the to-be-deleted usage plan.""" + @dataclass(kw_only=True) class DeleteUsagePlanKeyInput(_SerdeShape): """ @@ -2127,6 +2879,17 @@ class DeleteUsagePlanKeyInput(_SerdeShape): key_id: str | None = ... """The Id of the UsagePlanKey resource to be deleted.""" +class DeleteUsagePlanKeyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteUsagePlanKeyInput`.""" + + usage_plan_id: Required[str] + """ + The Id of the UsagePlan resource representing the usage plan containing + the to-be-deleted UsagePlanKey resource representing a plan customer. + """ + key_id: Required[str] + """The Id of the UsagePlanKey resource to be deleted.""" + @dataclass(kw_only=True) class DeleteUsagePlanKeyOutput(_SerdeShape): """Dataclass for DeleteUsagePlanKeyOutput structure.""" @@ -2161,6 +2924,15 @@ class DeleteVpcLinkInput(_SerdeShape): this VpcLink. """ +class DeleteVpcLinkInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcLinkInput`.""" + + vpc_link_id: Required[str] + """ + The identifier of the VpcLink. It is used in an Integration to reference + this VpcLink. + """ + @dataclass(kw_only=True) class DeleteVpcLinkOutput(_SerdeShape): """Dataclass for DeleteVpcLinkOutput structure.""" @@ -2212,6 +2984,24 @@ class DeploymentCanarySettings(_SerdeShape): the stage cache or not. """ +class DeploymentCanarySettingsDict(TypedDict, total=False): + """Dictionary form of `DeploymentCanarySettings`.""" + + percent_traffic: float | None + """The percentage (0.0-100.0) of traffic routed to the canary deployment.""" + stage_variable_overrides: Mapping[str, str] | None + """ + A stage variable overrides used for the canary release deployment. They + can override existing stage variables or add new stage variables for the + canary release deployment. These stage variables are represented as a + string-to-string map between stage variable names and their values. + """ + use_stage_cache: bool | None + """ + A Boolean flag to indicate whether the canary release deployment uses + the stage cache or not. + """ + @dataclass(kw_only=True) class DocumentationPart(_SerdeShape): """A documentation part for a targeted API entity.""" @@ -2233,7 +3023,7 @@ class DocumentationPart(_SerdeShape): """ A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., - `"{ \"description\": \"The API does ...\" }"`. Only OpenAPI-compliant + `"{ \\"description\\": \\"The API does ...\\" }"`. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of @@ -2292,6 +3082,57 @@ class DocumentationPartLocation(_SerdeShape): `RESPONSE_HEADER`. It is an invalid field for any other entity type. """ +class DocumentationPartLocationDict(TypedDict, total=False): + """Dictionary form of `DocumentationPartLocation`.""" + + type: Required[str] + """ + The type of API entity to which the documentation content applies. Valid + values are `API`, `AUTHORIZER`, `MODEL`, `RESOURCE`, `METHOD`, + `PATH_PARAMETER`, `QUERY_PARAMETER`, `REQUEST_HEADER`, `REQUEST_BODY`, + `RESPONSE`, `RESPONSE_HEADER`, and `RESPONSE_BODY`. Content inheritance + does not apply to any entity of the `API`, `AUTHORIZER`, `METHOD`, + `MODEL`, `REQUEST_BODY`, or `RESOURCE` type. + """ + path: str | None + """ + The URL path of the target. It is a valid field for the API entity types + of `RESOURCE`, `METHOD`, `PATH_PARAMETER`, `QUERY_PARAMETER`, + `REQUEST_HEADER`, `REQUEST_BODY`, `RESPONSE`, `RESPONSE_HEADER`, and + `RESPONSE_BODY`. The default value is `/` for the root resource. When an + applicable child entity inherits the content of another entity of the + same type with more general specifications of the other `location` + attributes, the child entity's `path` attribute must match that of the + parent entity as a prefix. + """ + method: str | None + """ + The HTTP verb of a method. It is a valid field for the API entity types + of `METHOD`, `PATH_PARAMETER`, `QUERY_PARAMETER`, `REQUEST_HEADER`, + `REQUEST_BODY`, `RESPONSE`, `RESPONSE_HEADER`, and `RESPONSE_BODY`. The + default value is `*` for any method. When an applicable child entity + inherits the content of an entity of the same type with more general + specifications of the other `location` attributes, the child entity's + `method` attribute must match that of the parent entity exactly. + """ + status_code: str | None + """ + The HTTP status code of a response. It is a valid field for the API + entity types of `RESPONSE`, `RESPONSE_HEADER`, and `RESPONSE_BODY`. The + default value is `*` for any status code. When an applicable child + entity inherits the content of an entity of the same type with more + general specifications of the other `location` attributes, the child + entity's `statusCode` attribute must match that of the parent entity + exactly. + """ + name: str | None + """ + The name of the targeted API entity. It is a valid and required field + for the API entity types of `AUTHORIZER`, `MODEL`, `PATH_PARAMETER`, + `QUERY_PARAMETER`, `REQUEST_HEADER`, `REQUEST_BODY` and + `RESPONSE_HEADER`. It is an invalid field for any other entity type. + """ + class DocumentationPartType(UnknownEnumMixin, StrEnum): API = "API" AUTHORIZER = "AUTHORIZER" @@ -2524,6 +3365,31 @@ class EndpointConfiguration(_SerdeShape): Route53 ALIASes. It is only supported for `PRIVATE` endpoint type. """ +class EndpointConfigurationDict(TypedDict, total=False): + """Dictionary form of `EndpointConfiguration`.""" + + types: Sequence[str] | None + """ + A list of endpoint types of an API (RestApi) or its custom domain name + (DomainName). For an edge-optimized API and its custom domain name, the + endpoint type is `"EDGE"`. For a regional API and its custom domain + name, the endpoint type is `REGIONAL`. For a private API, the endpoint + type is `PRIVATE`. + """ + ip_address_type: str | None + """ + The IP address types that can invoke an API (RestApi) or a DomainName. + Use `ipv4` to allow only IPv4 addresses to invoke an API or DomainName, + or use `dualstack` to allow both IPv4 and IPv6 addresses to invoke an + API or a DomainName. For the `PRIVATE` endpoint type, only `dualstack` + is supported. + """ + vpc_endpoint_ids: Sequence[str] | None + """ + A list of VpcEndpointIds of an API (RestApi) against which to create + Route53 ALIASes. It is only supported for `PRIVATE` endpoint type. + """ + class EndpointType(UnknownEnumMixin, StrEnum): """ The endpoint type. The valid values are `EDGE` for edge-optimized API @@ -2545,6 +3411,14 @@ class FlushStageAuthorizersCacheInput(_SerdeShape): stage_name: str | None = ... """The name of the stage to flush.""" +class FlushStageAuthorizersCacheInputDict(TypedDict, total=False): + """Dictionary form of `FlushStageAuthorizersCacheInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: Required[str] + """The name of the stage to flush.""" + @dataclass(kw_only=True) class FlushStageAuthorizersCacheOutput(_SerdeShape): """Dataclass for FlushStageAuthorizersCacheOutput structure.""" @@ -2566,6 +3440,14 @@ class FlushStageCacheInput(_SerdeShape): stage_name: str | None = ... """The name of the stage to flush its cache.""" +class FlushStageCacheInputDict(TypedDict, total=False): + """Dictionary form of `FlushStageCacheInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: Required[str] + """The name of the stage to flush its cache.""" + @dataclass(kw_only=True) class FlushStageCacheOutput(_SerdeShape): """Dataclass for FlushStageCacheOutput structure.""" @@ -2634,9 +3516,21 @@ class GatewayResponseType(UnknownEnumMixin, StrEnum): class GenerateClientCertificateInput(_SerdeShape): """A request to generate a ClientCertificate resource.""" - description: str | None = ... + description: str | None = ... + """The description of the ClientCertificate.""" + tags: dict[str, str] | None = ... + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + +class GenerateClientCertificateInputDict(TypedDict, total=False): + """Dictionary form of `GenerateClientCertificateInput`.""" + + description: str | None """The description of the ClientCertificate.""" - tags: dict[str, str] | None = ... + tags: Mapping[str, str] | None """ The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not @@ -2683,6 +3577,9 @@ class GetAccountInput(_SerdeShape): resource. """ +class GetAccountInputDict(TypedDict, total=False): + """Dictionary form of `GetAccountInput`.""" + @dataclass(kw_only=True) class GetAccountOutput(_SerdeShape): """Represents an AWS account that is associated with API Gateway.""" @@ -2718,6 +3615,17 @@ class GetApiKeyInput(_SerdeShape): contains the key value. """ +class GetApiKeyInputDict(TypedDict, total=False): + """Dictionary form of `GetApiKeyInput`.""" + + api_key: Required[str] + """The identifier of the ApiKey resource.""" + include_value: bool | None + """ + A boolean flag to specify whether (`true`) or not (`false`) the result + contains the key value. + """ + @dataclass(kw_only=True) class GetApiKeyOutput(_SerdeShape): """ @@ -2785,6 +3693,29 @@ class GetApiKeysInput(_SerdeShape): contains key values. """ +class GetApiKeysInputDict(TypedDict, total=False): + """Dictionary form of `GetApiKeysInput`.""" + + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + name_query: str | None + """The name of queried API keys.""" + customer_id: str | None + """ + The identifier of a customer in Amazon Web Services Marketplace or an + external system, such as a developer portal. + """ + include_values: bool | None + """ + A boolean flag to specify whether (`true`) or not (`false`) the result + contains key values. + """ + @dataclass(kw_only=True) class GetApiKeysOutput(_SerdeShape): """ @@ -2818,6 +3749,14 @@ class GetAuthorizerInput(_SerdeShape): authorizer_id: str | None = ... """The identifier of the Authorizer resource.""" +class GetAuthorizerInputDict(TypedDict, total=False): + """Dictionary form of `GetAuthorizerInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + authorizer_id: Required[str] + """The identifier of the Authorizer resource.""" + @dataclass(kw_only=True) class GetAuthorizerOutput(_SerdeShape): """ @@ -2932,6 +3871,19 @@ class GetAuthorizersInput(_SerdeShape): and the maximum value is 500. """ +class GetAuthorizersInputDict(TypedDict, total=False): + """Dictionary form of `GetAuthorizersInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetAuthorizersOutput(_SerdeShape): """Represents a collection of Authorizer resources.""" @@ -2967,6 +3919,24 @@ class GetBasePathMappingInput(_SerdeShape): callers to specify any base path name after the domain name. """ +class GetBasePathMappingInputDict(TypedDict, total=False): + """Dictionary form of `GetBasePathMappingInput`.""" + + domain_name: Required[str] + """The domain name of the BasePathMapping resource to be described.""" + domain_name_id: str | None + """ + The identifier for the domain name resource. Supported only for private + custom domain names. + """ + base_path: Required[str] + """ + The base path name that callers of the API must provide as part of the + URL after the domain name. This value must be unique for all of the + mappings across a single API. Specify '(none)' if you do not want + callers to specify any base path name after the domain name. + """ + @dataclass(kw_only=True) class GetBasePathMappingOutput(_SerdeShape): """ @@ -3013,6 +3983,24 @@ class GetBasePathMappingsInput(_SerdeShape): and the maximum value is 500. """ +class GetBasePathMappingsInputDict(TypedDict, total=False): + """Dictionary form of `GetBasePathMappingsInput`.""" + + domain_name: Required[str] + """The domain name of a BasePathMapping resource.""" + domain_name_id: str | None + """ + The identifier for the domain name resource. Supported only for private + custom domain names. + """ + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetBasePathMappingsOutput(_SerdeShape): """Represents a collection of BasePathMapping resources.""" @@ -3039,6 +4027,12 @@ class GetClientCertificateInput(_SerdeShape): client_certificate_id: str | None = ... """The identifier of the ClientCertificate resource to be described.""" +class GetClientCertificateInputDict(TypedDict, total=False): + """Dictionary form of `GetClientCertificateInput`.""" + + client_certificate_id: Required[str] + """The identifier of the ClientCertificate resource to be described.""" + @dataclass(kw_only=True) class GetClientCertificateOutput(_SerdeShape): """ @@ -3087,6 +4081,17 @@ class GetClientCertificatesInput(_SerdeShape): and the maximum value is 500. """ +class GetClientCertificatesInputDict(TypedDict, total=False): + """Dictionary form of `GetClientCertificatesInput`.""" + + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetClientCertificatesOutput(_SerdeShape): """Represents a collection of ClientCertificate resources.""" @@ -3125,6 +4130,27 @@ class GetDeploymentInput(_SerdeShape): `GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary`. """ +class GetDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `GetDeploymentInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + deployment_id: Required[str] + """The identifier of the Deployment resource to get information about.""" + embed: Sequence[str] | None + """ + A query parameter to retrieve the specified embedded resources of the + returned Deployment resource in the response. In a REST API call, this + `embed` parameter value is a list of comma-separated strings, as in + `GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=var1,var2`. + The SDK and other platform-dependent libraries might use a different + format for the list. Currently, this request supports only retrieval of + the embedded API summary this way. Hence, the parameter value must be a + single-valued list containing only the `"apisummary"` string. For + example, + `GET /restapis/{restapi_id}/deployments/{deployment_id}?embed=apisummary`. + """ + @dataclass(kw_only=True) class GetDeploymentOutput(_SerdeShape): """ @@ -3166,6 +4192,19 @@ class GetDeploymentsInput(_SerdeShape): and the maximum value is 500. """ +class GetDeploymentsInputDict(TypedDict, total=False): + """Dictionary form of `GetDeploymentsInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetDeploymentsOutput(_SerdeShape): """ @@ -3196,6 +4235,14 @@ class GetDocumentationPartInput(_SerdeShape): documentation_part_id: str | None = ... """The string identifier of the associated RestApi.""" +class GetDocumentationPartInputDict(TypedDict, total=False): + """Dictionary form of `GetDocumentationPartInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + documentation_part_id: Required[str] + """The string identifier of the associated RestApi.""" + @dataclass(kw_only=True) class GetDocumentationPartOutput(_SerdeShape): """A documentation part for a targeted API entity.""" @@ -3217,7 +4264,7 @@ class GetDocumentationPartOutput(_SerdeShape): """ A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., - `"{ \"description\": \"The API does ...\" }"`. Only OpenAPI-compliant + `"{ \\"description\\": \\"The API does ...\\" }"`. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of @@ -3260,6 +4307,31 @@ class GetDocumentationPartsInput(_SerdeShape): `UNDOCUMENTED` for DocumentationPart resources without content. """ +class GetDocumentationPartsInputDict(TypedDict, total=False): + """Dictionary form of `GetDocumentationPartsInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + type: str | None + """The type of API entities of the to-be-retrieved documentation parts.""" + name_query: str | None + """The name of API entities of the to-be-retrieved documentation parts.""" + path: str | None + """The path of API entities of the to-be-retrieved documentation parts.""" + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + location_status: str | None + """ + The status of the API documentation parts to retrieve. Valid values are + `DOCUMENTED` for retrieving DocumentationPart resources with content and + `UNDOCUMENTED` for DocumentationPart resources without content. + """ + @dataclass(kw_only=True) class GetDocumentationPartsOutput(_SerdeShape): """The collection of documentation parts of an API.""" @@ -3285,6 +4357,14 @@ class GetDocumentationVersionInput(_SerdeShape): documentation_version: str | None = ... """The version identifier of the to-be-retrieved documentation snapshot.""" +class GetDocumentationVersionInputDict(TypedDict, total=False): + """Dictionary form of `GetDocumentationVersionInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + documentation_version: Required[str] + """The version identifier of the to-be-retrieved documentation snapshot.""" + @dataclass(kw_only=True) class GetDocumentationVersionOutput(_SerdeShape): """A snapshot of the documentation of an API.""" @@ -3317,6 +4397,19 @@ class GetDocumentationVersionsInput(_SerdeShape): and the maximum value is 500. """ +class GetDocumentationVersionsInputDict(TypedDict, total=False): + """Dictionary form of `GetDocumentationVersionsInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetDocumentationVersionsOutput(_SerdeShape): """The collection of documentation snapshots of an API.""" @@ -3352,6 +4445,24 @@ class GetDomainNameAccessAssociationsInput(_SerdeShape): private custom domain names that are owned by other AWS accounts. """ +class GetDomainNameAccessAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `GetDomainNameAccessAssociationsInput`.""" + + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + resource_owner: str | None + """ + The owner of the domain name access association. Use `SELF` to only list + the domain name access associations owned by your own account. Use + `OTHER_ACCOUNTS` to list the domain name access associations with your + private custom domain names that are owned by other AWS accounts. + """ + @dataclass(kw_only=True) class GetDomainNameAccessAssociationsOutput(_SerdeShape): """Dataclass for GetDomainNameAccessAssociationsOutput structure.""" @@ -3380,6 +4491,17 @@ class GetDomainNameInput(_SerdeShape): domain names. """ +class GetDomainNameInputDict(TypedDict, total=False): + """Dictionary form of `GetDomainNameInput`.""" + + domain_name: Required[str] + """The name of the DomainName resource.""" + domain_name_id: str | None + """ + The identifier for the domain name resource. Required for private custom + domain names. + """ + @dataclass(kw_only=True) class GetDomainNameOutput(_SerdeShape): """ @@ -3540,6 +4662,19 @@ class GetDomainNamesInput(_SerdeShape): resource_owner: str | None = ... """The owner of the domain name access association.""" +class GetDomainNamesInputDict(TypedDict, total=False): + """Dictionary form of `GetDomainNamesInput`.""" + + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + resource_owner: str | None + """The owner of the domain name access association.""" + @dataclass(kw_only=True) class GetDomainNamesOutput(_SerdeShape): """Represents a collection of DomainName resources.""" @@ -3588,6 +4723,37 @@ class GetExportInput(_SerdeShape): `Accept` header for direct API requests. """ +class GetExportInputDict(TypedDict, total=False): + """Dictionary form of `GetExportInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: Required[str] + """The name of the Stage that will be exported.""" + export_type: Required[str] + """ + The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x + and 'swagger' for Swagger/OpenAPI 2.0. + """ + parameters: Mapping[str, str] | None + """ + A key-value map of query string parameters that specify properties of + the export, depending on the requested `exportType`. For `exportType` + `oas30` and `swagger`, any combination of the following parameters are + supported: `extensions='integrations'` or `extensions='apigateway'` will + export the API with x-amazon-apigateway-integration extensions. + `extensions='authorizers'` will export the API with + x-amazon-apigateway-authorizer extensions. `postman` will export the API + with Postman extensions, allowing for import to the Postman tool + """ + accepts: str | None + """ + The content-type of the export, for example `application/json`. + Currently `application/json` and `application/yaml` are supported for + `exportType` of`oas30` and `swagger`. This should be specified in the + `Accept` header for direct API requests. + """ + @dataclass(kw_only=True) class GetExportOutput(_SerdeShape): """The binary blob response to GetExport, which contains the generated SDK.""" @@ -3621,6 +4787,14 @@ class GetGatewayResponseInput(_SerdeShape): response_type: str | None = ... """The response type of the associated GatewayResponse.""" +class GetGatewayResponseInputDict(TypedDict, total=False): + """Dictionary form of `GetGatewayResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + response_type: Required[str] + """The response type of the associated GatewayResponse.""" + @dataclass(kw_only=True) class GetGatewayResponseOutput(_SerdeShape): """ @@ -3681,6 +4855,24 @@ class GetGatewayResponsesInput(_SerdeShape): support pagination and the limit does not apply here. """ +class GetGatewayResponsesInputDict(TypedDict, total=False): + """Dictionary form of `GetGatewayResponsesInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + position: str | None + """ + The current pagination position in the paged result set. The + GatewayResponse collection does not support pagination and the position + does not apply here. + """ + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. The GatewayResponses collection does not + support pagination and the limit does not apply here. + """ + @dataclass(kw_only=True) class GetGatewayResponsesOutput(_SerdeShape): """ @@ -3716,6 +4908,16 @@ class GetIntegrationInput(_SerdeShape): http_method: str | None = ... """Specifies a get integration request's HTTP method.""" +class GetIntegrationInputDict(TypedDict, total=False): + """Dictionary form of `GetIntegrationInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Specifies a get integration request's resource identifier""" + http_method: Required[str] + """Specifies a get integration request's HTTP method.""" + @dataclass(kw_only=True) class GetIntegrationOutput(_SerdeShape): """ @@ -3785,7 +4987,7 @@ class GetIntegrationOutput(_SerdeShape): integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, - specify the string `arn:aws:iam::*:user/*`. To use resource-based + specify the string `arn:aws:iam::\\*:user/\\*`. To use resource-based permissions on supported Amazon Web Services services, specify null. """ request_parameters: dict[str, str] | None = ... @@ -3887,6 +5089,18 @@ class GetIntegrationResponseInput(_SerdeShape): status_code: str | None = ... """Specifies a get integration response request's status code.""" +class GetIntegrationResponseInputDict(TypedDict, total=False): + """Dictionary form of `GetIntegrationResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Specifies a get integration response request's resource identifier.""" + http_method: Required[str] + """Specifies a get integration response request's HTTP method.""" + status_code: Required[str] + """Specifies a get integration response request's status code.""" + @dataclass(kw_only=True) class GetIntegrationResponseOutput(_SerdeShape): """ @@ -3907,7 +5121,7 @@ class GetIntegrationResponseOutput(_SerdeShape): example, if the success response returns nothing and the error response returns some string, you could use the `.+` regex to match error response. However, make sure that the error response does not contain - any newline (`\n`) character in such cases. If the back end is an Lambda + any newline (`\\n`) character in such cases. If the back end is an Lambda function, the Lambda function error header is matched. For all other HTTP and Amazon Web Services back ends, the HTTP status code is matched. """ @@ -3960,6 +5174,16 @@ class GetMethodInput(_SerdeShape): http_method: str | None = ... """Specifies the method request's HTTP method type.""" +class GetMethodInputDict(TypedDict, total=False): + """Dictionary form of `GetMethodInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The Resource identifier for the Method resource.""" + http_method: Required[str] + """Specifies the method request's HTTP method type.""" + @dataclass(kw_only=True) class GetMethodOutput(_SerdeShape): """ @@ -4061,6 +5285,18 @@ class GetMethodResponseInput(_SerdeShape): status_code: str | None = ... """The status code for the MethodResponse resource.""" +class GetMethodResponseInputDict(TypedDict, total=False): + """Dictionary form of `GetMethodResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The Resource identifier for the MethodResponse resource.""" + http_method: Required[str] + """The HTTP verb of the Method resource.""" + status_code: Required[str] + """The status code for the MethodResponse resource.""" + @dataclass(kw_only=True) class GetMethodResponseOutput(_SerdeShape): """ @@ -4121,6 +5357,20 @@ class GetModelInput(_SerdeShape): The default is `false`. """ +class GetModelInputDict(TypedDict, total=False): + """Dictionary form of `GetModelInput`.""" + + rest_api_id: Required[str] + """The RestApi identifier under which the Model exists.""" + model_name: Required[str] + """The name of the model as an identifier.""" + flatten: bool | None + """ + A query parameter of a Boolean value to resolve (`true`) all external + model references and returns a flattened model schema or not (`false`) + The default is `false`. + """ + @dataclass(kw_only=True) class GetModelOutput(_SerdeShape): """ @@ -4167,6 +5417,19 @@ class GetModelsInput(_SerdeShape): and the maximum value is 500. """ +class GetModelsInputDict(TypedDict, total=False): + """Dictionary form of `GetModelsInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetModelsOutput(_SerdeShape): """Represents a collection of Model resources.""" @@ -4195,6 +5458,14 @@ class GetModelTemplateInput(_SerdeShape): model_name: str | None = ... """The name of the model for which to generate a template.""" +class GetModelTemplateInputDict(TypedDict, total=False): + """Dictionary form of `GetModelTemplateInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + model_name: Required[str] + """The name of the model for which to generate a template.""" + @dataclass(kw_only=True) class GetModelTemplateOutput(_SerdeShape): """Represents a mapping template used to transform a payload.""" @@ -4221,6 +5492,14 @@ class GetRequestValidatorInput(_SerdeShape): request_validator_id: str | None = ... """The identifier of the RequestValidator to be retrieved.""" +class GetRequestValidatorInputDict(TypedDict, total=False): + """Dictionary form of `GetRequestValidatorInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + request_validator_id: Required[str] + """The identifier of the RequestValidator to be retrieved.""" + @dataclass(kw_only=True) class GetRequestValidatorOutput(_SerdeShape): """A set of validation rules for incoming Method requests.""" @@ -4255,7 +5534,20 @@ class GetRequestValidatorsInput(_SerdeShape): """The string identifier of the associated RestApi.""" position: str | None = ... """The current pagination position in the paged result set.""" - limit: int | None = ... + limit: int | None = ... + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + +class GetRequestValidatorsInputDict(TypedDict, total=False): + """Dictionary form of `GetRequestValidatorsInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None """ The maximum number of returned results per page. The default value is 25 and the maximum value is 500. @@ -4296,6 +5588,24 @@ class GetResourceInput(_SerdeShape): `GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods`. """ +class GetResourceInputDict(TypedDict, total=False): + """Dictionary form of `GetResourceInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The identifier for the Resource resource.""" + embed: Sequence[str] | None + """ + A query parameter to retrieve the specified resources embedded in the + returned Resource representation in the response. This `embed` parameter + value is a list of comma-separated strings. Currently, the request + supports only retrieval of the embedded Method resources this way. The + query parameter value must be a single-valued list and contain the + `"methods"` string. For example, + `GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods`. + """ + @dataclass(kw_only=True) class GetResourceOutput(_SerdeShape): """Represents an API resource.""" @@ -4342,6 +5652,29 @@ class GetResourcesInput(_SerdeShape): `GET /restapis/{restapi_id}/resources?embed=methods`. """ +class GetResourcesInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcesInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + embed: Sequence[str] | None + """ + A query parameter used to retrieve the specified resources embedded in + the returned Resources resource in the response. This `embed` parameter + value is a list of comma-separated strings. Currently, the request + supports only retrieval of the embedded Method resources this way. The + query parameter value must be a single-valued list and contain the + `"methods"` string. For example, + `GET /restapis/{restapi_id}/resources?embed=methods`. + """ + @dataclass(kw_only=True) class GetResourcesOutput(_SerdeShape): """Represents a collection of Resource resources.""" @@ -4365,6 +5698,12 @@ class GetRestApiInput(_SerdeShape): rest_api_id: str | None = ... """The string identifier of the associated RestApi.""" +class GetRestApiInputDict(TypedDict, total=False): + """Dictionary form of `GetRestApiInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + @dataclass(kw_only=True) class GetRestApiOutput(_SerdeShape): """Represents a REST API.""" @@ -4467,6 +5806,17 @@ class GetRestApisInput(_SerdeShape): and the maximum value is 500. """ +class GetRestApisInputDict(TypedDict, total=False): + """Dictionary form of `GetRestApisInput`.""" + + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetRestApisOutput(_SerdeShape): """ @@ -4511,6 +5861,29 @@ class GetSdkInput(_SerdeShape): `serviceName` and `javaPackageName` are required. """ +class GetSdkInputDict(TypedDict, total=False): + """Dictionary form of `GetSdkInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: Required[str] + """The name of the Stage that the SDK will use.""" + sdk_type: Required[str] + """ + The language for the generated SDK. Currently `java`, `javascript`, + `android`, `objectivec` (for iOS), `swift` (for iOS), and `ruby` are + supported. + """ + parameters: Mapping[str, str] | None + """ + A string-to-string key-value map of query parameters `sdkType`-dependent + properties of the SDK. For `sdkType` of `objectivec` or `swift`, a + parameter named `classPrefix` is required. For `sdkType` of `android`, + parameters named `groupId`, `artifactId`, `artifactVersion`, and + `invokerPackage` are required. For `sdkType` of `java`, parameters named + `serviceName` and `javaPackageName` are required. + """ + @dataclass(kw_only=True) class GetSdkOutput(_SerdeShape): """The binary blob response to GetSdk, which contains the generated SDK.""" @@ -4536,6 +5909,12 @@ class GetSdkTypeInput(_SerdeShape): id: str | None = ... """The identifier of the queried SdkType instance.""" +class GetSdkTypeInputDict(TypedDict, total=False): + """Dictionary form of `GetSdkTypeInput`.""" + + id: Required[str] + """The identifier of the queried SdkType instance.""" + @dataclass(kw_only=True) class GetSdkTypeOutput(_SerdeShape): """A type of SDK that API Gateway can generate.""" @@ -4568,6 +5947,17 @@ class GetSdkTypesInput(_SerdeShape): and the maximum value is 500. """ +class GetSdkTypesInputDict(TypedDict, total=False): + """Dictionary form of `GetSdkTypesInput`.""" + + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetSdkTypesOutput(_SerdeShape): """The collection of SdkType instances.""" @@ -4591,6 +5981,14 @@ class GetStageInput(_SerdeShape): stage_name: str | None = ... """The name of the Stage resource to get information about.""" +class GetStageInputDict(TypedDict, total=False): + """Dictionary form of `GetStageInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: Required[str] + """The name of the Stage resource to get information about.""" + @dataclass(kw_only=True) class GetStageOutput(_SerdeShape): """ @@ -4629,7 +6027,7 @@ class GetStageOutput(_SerdeShape): A map that defines the method settings for a Stage resource. Keys (designated as `/{method_setting_key` below) are method paths defined as `{resource_path}/{http_method}` for an individual method override, or - `/*/*` for overriding all methods in the stage. + `/\\*/\\*` for overriding all methods in the stage. """ variables: dict[str, str] | None = ... """ @@ -4676,6 +6074,14 @@ class GetStagesInput(_SerdeShape): deployment_id: str | None = ... """The stages' deployment identifiers.""" +class GetStagesInputDict(TypedDict, total=False): + """Dictionary form of `GetStagesInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + deployment_id: str | None + """The stages' deployment identifiers.""" + @dataclass(kw_only=True) class GetStagesOutput(_SerdeShape): """A list of Stage resources that are associated with the ApiKey resource.""" @@ -4707,6 +6113,22 @@ class GetTagsInput(_SerdeShape): page. The default value is 25 and the maximum value is 500. """ +class GetTagsInputDict(TypedDict, total=False): + """Dictionary form of `GetTagsInput`.""" + + resource_arn: Required[str] + """The ARN of a resource that can be tagged.""" + position: str | None + """ + (Not currently supported) The current pagination position in the paged + result set. + """ + limit: int | None + """ + (Not currently supported) The maximum number of returned results per + page. The default value is 25 and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetTagsOutput(_SerdeShape): """ @@ -4750,6 +6172,25 @@ class GetUsageInput(_SerdeShape): and the maximum value is 500. """ +class GetUsageInputDict(TypedDict, total=False): + """Dictionary form of `GetUsageInput`.""" + + usage_plan_id: Required[str] + """The Id of the usage plan associated with the usage data.""" + key_id: str | None + """The Id of the API key associated with the resultant usage data.""" + start_date: Required[str] + """The starting date (e.g., 2016-01-01) of the usage data.""" + end_date: Required[str] + """The ending date (e.g., 2016-12-31) of the usage data.""" + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetUsageOutput(_SerdeShape): """Represents the usage data of a usage plan.""" @@ -4786,6 +6227,12 @@ class GetUsagePlanInput(_SerdeShape): usage_plan_id: str | None = ... """The identifier of the UsagePlan resource to be retrieved.""" +class GetUsagePlanInputDict(TypedDict, total=False): + """Dictionary form of `GetUsagePlanInput`.""" + + usage_plan_id: Required[str] + """The identifier of the UsagePlan resource to be retrieved.""" + @dataclass(kw_only=True) class GetUsagePlanKeyInput(_SerdeShape): """The GET request to get a usage plan key of a given key identifier.""" @@ -4801,6 +6248,20 @@ class GetUsagePlanKeyInput(_SerdeShape): plan customer. """ +class GetUsagePlanKeyInputDict(TypedDict, total=False): + """Dictionary form of `GetUsagePlanKeyInput`.""" + + usage_plan_id: Required[str] + """ + The Id of the UsagePlan resource representing the usage plan containing + the to-be-retrieved UsagePlanKey resource representing a plan customer. + """ + key_id: Required[str] + """ + The key Id of the to-be-retrieved UsagePlanKey resource representing a + plan customer. + """ + @dataclass(kw_only=True) class GetUsagePlanKeyOutput(_SerdeShape): """Represents a usage plan key to identify a plan customer.""" @@ -4849,6 +6310,27 @@ class GetUsagePlanKeysInput(_SerdeShape): keys. """ +class GetUsagePlanKeysInputDict(TypedDict, total=False): + """Dictionary form of `GetUsagePlanKeysInput`.""" + + usage_plan_id: Required[str] + """ + The Id of the UsagePlan resource representing the usage plan containing + the to-be-retrieved UsagePlanKey resource representing a plan customer. + """ + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + name_query: str | None + """ + A query parameter specifying the name of the to-be-returned usage plan + keys. + """ + @dataclass(kw_only=True) class GetUsagePlanKeysOutput(_SerdeShape): """ @@ -4931,6 +6413,19 @@ class GetUsagePlansInput(_SerdeShape): and the maximum value is 500. """ +class GetUsagePlansInputDict(TypedDict, total=False): + """Dictionary form of `GetUsagePlansInput`.""" + + position: str | None + """The current pagination position in the paged result set.""" + key_id: str | None + """The identifier of the API key associated with the usage plans.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetUsagePlansOutput(_SerdeShape): """Represents a collection of usage plans for an AWS account.""" @@ -4957,6 +6452,15 @@ class GetVpcLinkInput(_SerdeShape): this VpcLink. """ +class GetVpcLinkInputDict(TypedDict, total=False): + """Dictionary form of `GetVpcLinkInput`.""" + + vpc_link_id: Required[str] + """ + The identifier of the VpcLink. It is used in an Integration to reference + this VpcLink. + """ + @dataclass(kw_only=True) class GetVpcLinkOutput(_SerdeShape): """ @@ -5015,6 +6519,17 @@ class GetVpcLinksInput(_SerdeShape): and the maximum value is 500. """ +class GetVpcLinksInputDict(TypedDict, total=False): + """Dictionary form of `GetVpcLinksInput`.""" + + position: str | None + """The current pagination position in the paged result set.""" + limit: int | None + """ + The maximum number of returned results per page. The default value is 25 + and the maximum value is 500. + """ + @dataclass(kw_only=True) class GetVpcLinksOutput(_SerdeShape): """The collection of VPC links under the caller's account in a region.""" @@ -5054,6 +6569,25 @@ class ImportApiKeysInput(_SerdeShape): (`true`) or not (`false`) when error is encountered. """ +class ImportApiKeysInputDict(TypedDict, total=False): + """Dictionary form of `ImportApiKeysInput`.""" + + body: Required[bytes] + """ + The payload of the POST request to import API keys. For the payload + format, see API Key File Format. + """ + format: Required[str] + """ + A query parameter to specify the input format to imported API keys. + Currently, only the `csv` format is supported. + """ + fail_on_warnings: bool | None + """ + A query parameter to indicate whether to rollback ApiKey importation + (`true`) or not (`false`) when error is encountered. + """ + @dataclass(kw_only=True) class ImportApiKeysOutput(_SerdeShape): """The identifier of an ApiKey used in a UsagePlan.""" @@ -5097,6 +6631,29 @@ class ImportDocumentationPartsInput(_SerdeShape): import from an OpenAPI file, this is a JSON object. """ +class ImportDocumentationPartsInputDict(TypedDict, total=False): + """Dictionary form of `ImportDocumentationPartsInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + mode: str | None + """ + A query parameter to indicate whether to overwrite (`overwrite`) any + existing DocumentationParts definition or to merge (`merge`) the new + definition into the existing one. The default value is `merge`. + """ + fail_on_warnings: bool | None + """ + A query parameter to specify whether to rollback the documentation + importation (`true`) or not (`false`) when a warning is encountered. The + default value is `false`. + """ + body: Required[bytes] + """ + Raw byte array representing the to-be-imported documentation parts. To + import from an OpenAPI file, this is a JSON object. + """ + @dataclass(kw_only=True) class ImportDocumentationPartsOutput(_SerdeShape): """A collection of the imported DocumentationPart identifiers.""" @@ -5154,6 +6711,40 @@ class ImportRestApiInput(_SerdeShape): of the API definition file is 6MB. """ +class ImportRestApiInputDict(TypedDict, total=False): + """Dictionary form of `ImportRestApiInput`.""" + + fail_on_warnings: bool | None + """ + A query parameter to indicate whether to rollback the API creation + (`true`) or not (`false`) when a warning is encountered. The default + value is `false`. + """ + parameters: Mapping[str, str] | None + """ + A key-value map of context-specific query string parameters specifying + the behavior of different API importing operations. The following shows + operation-specific parameters and their supported values. + + To exclude DocumentationParts from the import, set `parameters` as + `ignore=documentation`. + + To configure the endpoint type, set `parameters` as + `endpointConfigurationTypes=EDGE`, + `endpointConfigurationTypes=REGIONAL`, or + `endpointConfigurationTypes=PRIVATE`. The default endpoint type is + `EDGE`. + + To handle imported `basepath`, set `parameters` as `basepath=ignore`, + `basepath=prepend` or `basepath=split`. + """ + body: Required[bytes] + """ + The POST request body containing external API definitions. Currently, + only OpenAPI definition JSON/YAML files are supported. The maximum size + of the API definition file is 6MB. + """ + @dataclass(kw_only=True) class ImportRestApiOutput(_SerdeShape): """Represents a REST API.""" @@ -5313,7 +6904,7 @@ class Integration(_SerdeShape): integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, - specify the string `arn:aws:iam::*:user/*`. To use resource-based + specify the string `arn:aws:iam::\\*:user/\\*`. To use resource-based permissions on supported Amazon Web Services services, specify null. """ request_parameters: dict[str, str] | None = ... @@ -5415,7 +7006,7 @@ class IntegrationResponse(_SerdeShape): example, if the success response returns nothing and the error response returns some string, you could use the `.+` regex to match error response. However, make sure that the error response does not contain - any newline (`\n`) character in such cases. If the back end is an Lambda + any newline (`\\n`) character in such cases. If the back end is an Lambda function, the Lambda function error header is matched. For all other HTTP and Amazon Web Services back ends, the HTTP status code is matched. """ @@ -5748,6 +7339,24 @@ class MutualTlsAuthenticationInput(_SerdeShape): version, you must have versioning enabled for the S3 bucket """ +class MutualTlsAuthenticationInputDict(TypedDict, total=False): + """Dictionary form of `MutualTlsAuthenticationInput`.""" + + truststore_uri: str | None + """ + An Amazon S3 URL that specifies the truststore for mutual TLS + authentication, for example `s3://bucket-name/key-name`. The truststore + can contain certificates from public or private certificate authorities. + To update the truststore, upload a new version to S3, and then update + your custom domain name to use the new version. To update the + truststore, you must have permissions to access the S3 object. + """ + truststore_version: str | None + """ + The version of the S3 object that contains your truststore. To specify a + version, you must have versioning enabled for the S3 bucket + """ + @dataclass(kw_only=True) class NotFoundException(ServiceError, _SerdeShape): """ @@ -5816,6 +7425,47 @@ class PatchOperation(_SerdeShape): \"path\":\"/deploymentId\". """ +class PatchOperationDict(TypedDict, total=False): + """Dictionary form of `PatchOperation`.""" + + op: str | None + """ + An update operation to be performed with this PATCH request. The valid + value can be add, remove, replace or copy. Not all valid operations are + supported for a given resource. Support of the operations depends on + specific operational contexts. Attempts to apply an unsupported + operation on a resource will return an error message.. + """ + path: str | None + """ + The op operation's target, as identified by a JSON Pointer value that + references a location within the targeted resource. For example, if the + target resource has an updateable property of {\"name\":\"value\"}, the + path for this property is /name. If the name property value is a JSON + object (e.g., {\"name\": {\"child/name\": \"child-value\"}}), the path + for the child/name property will be /name/child~1name. Any slash + (\"/\") character appearing in path names must be escaped with \"~1\", + as shown in the example above. Each op operation can have only one path + associated with it. + """ + value: str | None + """ + The new target value of the update operation. It is applicable for the + add or replace operation. When using AWS CLI to update a property of a + JSON value, enclose the JSON object with a pair of single quotes in a + Linux shell, e.g., '{\"a\": ...}'. + """ + from_: str | None + """ + The copy update operation's source as identified by a JSON-Pointer + value referencing the location within the targeted resource to copy the + value from. For example, to promote a canary deployment, you copy the + canary deployment ID to the affiliated deployment ID by calling a PATCH + request on a Stage resource with \"op\":\"copy\", + \"from\":\"/canarySettings/deploymentId\" and + \"path\":\"/deploymentId\". + """ + @dataclass(kw_only=True) class PutGatewayResponseInput(_SerdeShape): """ @@ -5840,6 +7490,26 @@ class PutGatewayResponseInput(_SerdeShape): key-value pairs. """ +class PutGatewayResponseInputDict(TypedDict, total=False): + """Dictionary form of `PutGatewayResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + response_type: Required[str] + """The response type of the associated GatewayResponse""" + status_code: str | None + """The HTTP status code of the GatewayResponse.""" + response_parameters: Mapping[str, str] | None + """ + Response parameters (paths, query strings and headers) of the + GatewayResponse as a string-to-string map of key-value pairs. + """ + response_templates: Mapping[str, str] | None + """ + Response templates of the GatewayResponse as a string-to-string map of + key-value pairs. + """ + @dataclass(kw_only=True) class PutGatewayResponseOutput(_SerdeShape): """ @@ -5992,6 +7662,121 @@ class PutIntegrationInput(_SerdeShape): integration_target: str | None = ... """The ALB or NLB listener to send the request to.""" +class PutIntegrationInputDict(TypedDict, total=False): + """Dictionary form of `PutIntegrationInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Specifies a put integration request's resource ID.""" + http_method: Required[str] + """Specifies the HTTP method for the integration.""" + type: Required[str] + """Specifies a put integration input's type.""" + integration_http_method: str | None + """The HTTP method for the integration.""" + uri: str | None + """ + Specifies Uniform Resource Identifier (URI) of the integration endpoint. + For HTTP or `HTTP_PROXY` integrations, the URI must be a fully formed, + encoded HTTP(S) URL according to the RFC-3986 specification, for either + standard integration, where `connectionType` is not `VPC_LINK`, or + private integration, where `connectionType` is `VPC_LINK`. For a private + HTTP integration, the URI is not used for routing. For `AWS` or + `AWS_PROXY` integrations, the URI is of the form + `arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api`}. + Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is + the name of the integrated Amazon Web Services service (e.g., s3); and + {subdomain} is a designated subdomain supported by certain Amazon Web + Services service for fast host-name lookup. action can be used for an + Amazon Web Services service action-based API, using an + Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing + {service_api} refers to a supported action {name} plus any required + input parameters. Alternatively, path can be used for an Amazon Web + Services service path-based API. The ensuing service_api refers to the + path to an Amazon Web Services service resource, including the region of + the integrated Amazon Web Services service, if applicable. For example, + for integration with the S3 API of `GetObject`, the `uri` can be either + `arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}` + or `arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}`. + """ + connection_type: str | None + """ + The type of the network connection to the integration endpoint. The + valid value is `INTERNET` for connections through the public routable + internet or `VPC_LINK` for private connections between API Gateway and a + network load balancer in a VPC. The default value is `INTERNET`. + """ + connection_id: str | None + """ + The ID of the VpcLink used for the integration. Specify this value only + if you specify `VPC_LINK` as the connection type. + """ + credentials: str | None + """Specifies whether credentials are required for a put integration.""" + request_parameters: Mapping[str, str] | None + """ + A key-value map specifying request parameters that are passed from the + method request to the back end. The key is an integration request + parameter name and the associated value is a method request parameter + value or static value that must be enclosed within single quotes and + pre-encoded as required by the back end. The method request parameter + value must match the pattern of `method.request.{location}.{name}`, + where `location` is `querystring`, `path`, or `header` and `name` must + be a valid and unique method request parameter name. + """ + request_templates: Mapping[str, str] | None + """ + Represents a map of Velocity templates that are applied on the request + payload based on the value of the Content-Type header sent by the + client. The content type value is the key in this map, and the template + (as a String) is the value. + """ + passthrough_behavior: str | None + """ + Specifies the pass-through behavior for incoming requests based on the + Content-Type header in the request, and the available mapping templates + specified as the `requestTemplates` property on the Integration + resource. There are three valid values: `WHEN_NO_MATCH`, + `WHEN_NO_TEMPLATES`, and `NEVER`. + """ + cache_namespace: str | None + """ + Specifies a group of related cached parameters. By default, API Gateway + uses the resource ID as the `cacheNamespace`. You can specify the same + `cacheNamespace` across resources to return the same cached data for + requests to different resources. + """ + cache_key_parameters: Sequence[str] | None + """ + A list of request parameters whose values API Gateway caches. To be + valid values for `cacheKeyParameters`, these parameters must also be + specified for Method `requestParameters`. + """ + content_handling: str | None + """ + Specifies how to handle request payload content type conversions. + Supported values are `CONVERT_TO_BINARY` and `CONVERT_TO_TEXT`, with the + following behaviors: + + If this property is not defined, the request payload will be passed + through from the method request to integration request without + modification, provided that the `passthroughBehavior` is configured to + support payload pass-through. + """ + timeout_in_millis: int | None + """ + Custom timeout between 50 and 29,000 milliseconds. The default value is + 29,000 milliseconds or 29 seconds. You can increase the default value to + longer than 29 seconds for Regional or private APIs only. + """ + tls_config: TlsConfig | TlsConfigDict | None + """Specifies the TLS configuration for an integration.""" + response_transfer_mode: str | None + """The response transfer mode of the integration.""" + integration_target: str | None + """The ALB or NLB listener to send the request to.""" + @dataclass(kw_only=True) class PutIntegrationOutput(_SerdeShape): """ @@ -6061,7 +7846,7 @@ class PutIntegrationOutput(_SerdeShape): integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, - specify the string `arn:aws:iam::*:user/*`. To use resource-based + specify the string `arn:aws:iam::\\*:user/\\*`. To use resource-based permissions on supported Amazon Web Services services, specify null. """ request_parameters: dict[str, str] | None = ... @@ -6194,6 +7979,49 @@ class PutIntegrationResponseInput(_SerdeShape): modification. """ +class PutIntegrationResponseInputDict(TypedDict, total=False): + """Dictionary form of `PutIntegrationResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Specifies a put integration response request's resource identifier.""" + http_method: Required[str] + """Specifies a put integration response request's HTTP method.""" + status_code: Required[str] + """ + Specifies the status code that is used to map the integration response + to an existing MethodResponse. + """ + selection_pattern: str | None + """Specifies the selection pattern of a put integration response.""" + response_parameters: Mapping[str, str] | None + """ + A key-value map specifying response parameters that are passed to the + method response from the back end. The key is a method response header + parameter name and the mapped value is an integration response header + value, a static value enclosed within a pair of single quotes, or a JSON + expression from the integration response body. The mapping key must + match the pattern of `method.response.header.{name}`, where `name` is a + valid and unique header name. The mapped non-static value must match the + pattern of `integration.response.header.{name}` or + `integration.response.body.{JSON-expression}`, where `name` must be a + valid and unique response header name and `JSON-expression` a valid JSON + expression without the `$` prefix. + """ + response_templates: Mapping[str, str] | None + """Specifies a put integration response's templates.""" + content_handling: str | None + """ + Specifies how to handle response payload content type conversions. + Supported values are `CONVERT_TO_BINARY` and `CONVERT_TO_TEXT`, with the + following behaviors: + + If this property is not defined, the response payload will be passed + through from the integration response to the method response without + modification. + """ + @dataclass(kw_only=True) class PutIntegrationResponseOutput(_SerdeShape): """ @@ -6214,7 +8042,7 @@ class PutIntegrationResponseOutput(_SerdeShape): example, if the success response returns nothing and the error response returns some string, you could use the `.+` regex to match error response. However, make sure that the error response does not contain - any newline (`\n`) character in such cases. If the back end is an Lambda + any newline (`\\n`) character in such cases. If the back end is an Lambda function, the Lambda function error header is matched. For all other HTTP and Amazon Web Services back ends, the HTTP status code is matched. """ @@ -6319,6 +8147,68 @@ class PutMethodInput(_SerdeShape): an access token instead of an identity token for authorization purposes. """ +class PutMethodInputDict(TypedDict, total=False): + """Dictionary form of `PutMethodInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The Resource identifier for the new Method resource.""" + http_method: Required[str] + """Specifies the method request's HTTP method type.""" + authorization_type: Required[str] + """ + The method's authorization type. Valid values are `NONE` for open + access, `AWS_IAM` for using AWS IAM permissions, `CUSTOM` for using a + custom authorizer, or `COGNITO_USER_POOLS` for using a Cognito user + pool. + """ + authorizer_id: str | None + """ + Specifies the identifier of an Authorizer to use on this Method, if the + type is CUSTOM or COGNITO_USER_POOLS. The authorizer identifier is + generated by API Gateway when you created the authorizer. + """ + api_key_required: bool | None + """Specifies whether the method required a valid ApiKey.""" + operation_name: str | None + """ + A human-friendly operation identifier for the method. For example, you + can assign the `operationName` of `ListPets` for the `GET /pets` method + in the `PetStore` example. + """ + request_parameters: Mapping[str, bool] | None + """ + A key-value map defining required or optional method request parameters + that can be accepted by API Gateway. A key defines a method request + parameter name matching the pattern of + `method.request.{location}.{name}`, where `location` is `querystring`, + `path`, or `header` and `name` is a valid and unique parameter name. The + value associated with the key is a Boolean flag indicating whether the + parameter is required (`true`) or optional (`false`). The method request + parameter names defined here are available in Integration to be mapped + to integration request parameters or body-mapping templates. + """ + request_models: Mapping[str, str] | None + """ + Specifies the Model resources used for the request's content type. + Request models are represented as a key/value map, with a content type + as the key and a Model name as the value. + """ + request_validator_id: str | None + """The identifier of a RequestValidator for validating the method request.""" + authorization_scopes: Sequence[str] | None + """ + A list of authorization scopes configured on the method. The scopes are + used with a `COGNITO_USER_POOLS` authorizer to authorize the method + invocation. The authorization works by matching the method scopes + against the scopes parsed from the access token in the incoming request. + The method invocation is authorized if any method scopes matches a + claimed scope in the access token. Otherwise, the invocation is not + authorized. When the method scope is configured, the client must provide + an access token instead of an identity token for authorization purposes. + """ + @dataclass(kw_only=True) class PutMethodOutput(_SerdeShape): """ @@ -6442,6 +8332,40 @@ class PutMethodResponseInput(_SerdeShape): as the key and a Model name as the value. """ +class PutMethodResponseInputDict(TypedDict, total=False): + """Dictionary form of `PutMethodResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The Resource identifier for the Method resource.""" + http_method: Required[str] + """The HTTP verb of the Method resource.""" + status_code: Required[str] + """The method response's status code.""" + response_parameters: Mapping[str, bool] | None + """ + A key-value map specifying required or optional response parameters that + API Gateway can send back to the caller. A key defines a method response + header name and the associated value is a Boolean flag indicating + whether the method response parameter is required or not. The method + response header names must match the pattern of + `method.response.header.{name}`, where `name` is a valid and unique + header name. The response parameter names defined here are available in + the integration response to be mapped from an integration response + header expressed in `integration.response.header.{name}`, a static value + enclosed within a pair of single quotes (e.g., `'application/json'`), or + a JSON expression from the back-end response payload in the form of + `integration.response.body.{JSON-expression}`, where `JSON-expression` + is a valid JSON expression without the `$` prefix.) + """ + response_models: Mapping[str, str] | None + """ + Specifies the Model resources used for the response's content type. + Response models are represented as a key/value map, with a content type + as the key and a Model name as the value. + """ + @dataclass(kw_only=True) class PutMethodResponseOutput(_SerdeShape): """ @@ -6522,6 +8446,36 @@ class PutRestApiInput(_SerdeShape): of the API definition file is 6MB. """ +class PutRestApiInputDict(TypedDict, total=False): + """Dictionary form of `PutRestApiInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + mode: str | None + """ + The `mode` query parameter to specify the update mode. Valid values are + \"merge\" and \"overwrite\". By default, the update mode is \"merge\". + """ + fail_on_warnings: bool | None + """ + A query parameter to indicate whether to rollback the API update + (`true`) or not (`false`) when a warning is encountered. The default + value is `false`. + """ + parameters: Mapping[str, str] | None + """ + Custom header parameters as part of the request. For example, to exclude + DocumentationParts from an imported API, set `ignore=documentation` as a + `parameters` value, as in the AWS CLI command of + `aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'`. + """ + body: Required[bytes] + """ + The PUT request body containing external API definitions. Currently, + only OpenAPI definition JSON/YAML files are supported. The maximum size + of the API definition file is 6MB. + """ + @dataclass(kw_only=True) class PutRestApiOutput(_SerdeShape): """Represents a REST API.""" @@ -6637,6 +8591,25 @@ class QuotaSettings(_SerdeShape): \"WEEK\" or \"MONTH\". """ +class QuotaSettingsDict(TypedDict, total=False): + """Dictionary form of `QuotaSettings`.""" + + limit: int | None + """ + The target maximum number of requests that can be made in a given time + period. + """ + offset: int | None + """ + The number of requests subtracted from the given limit in the initial + time period. + """ + period: str | None + """ + The time period in which the limit applies. Valid values are \"DAY\", + \"WEEK\" or \"MONTH\". + """ + @dataclass(kw_only=True) class RejectDomainNameAccessAssociationInput(_SerdeShape): """Dataclass for RejectDomainNameAccessAssociationInput structure.""" @@ -6646,6 +8619,14 @@ class RejectDomainNameAccessAssociationInput(_SerdeShape): domain_name_arn: str | None = ... """The ARN of the domain name.""" +class RejectDomainNameAccessAssociationInputDict(TypedDict, total=False): + """Dictionary form of `RejectDomainNameAccessAssociationInput`.""" + + domain_name_access_association_arn: Required[str] + """The ARN of the domain name access association resource.""" + domain_name_arn: Required[str] + """The ARN of the domain name.""" + @dataclass(kw_only=True) class RejectDomainNameAccessAssociationOutput(_SerdeShape): """Dataclass for RejectDomainNameAccessAssociationOutput structure.""" diff --git a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/models_1.pyi b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/models_1.pyi index 652b21bc5..3b688f696 100644 --- a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/models_1.pyi +++ b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/models_1.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -21,6 +23,7 @@ from ..models import ( MethodSnapshot, MutualTlsAuthentication, PatchOperation, + PatchOperationDict, QuotaSettings, ServiceError, _SerdeShape, @@ -228,7 +231,7 @@ class Stage(_SerdeShape): A map that defines the method settings for a Stage resource. Keys (designated as `/{method_setting_key` below) are method paths defined as `{resource_path}/{http_method}` for an individual method override, or - `/*/*` for overriding all methods in the stage. + `/\\*/\\*` for overriding all methods in the stage. """ variables: dict[str, str] | None = ... """ @@ -268,6 +271,14 @@ class StageKey(_SerdeShape): stage_name: str | None = ... """The stage name associated with the stage key.""" +class StageKeyDict(TypedDict, total=False): + """Dictionary form of `StageKey`.""" + + rest_api_id: str | None + """The string identifier of the associated RestApi.""" + stage_name: str | None + """The stage name associated with the stage key.""" + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Adds or updates a tag on a given resource.""" @@ -281,6 +292,18 @@ class TagResourceInput(_SerdeShape): start with `aws:`. The tag value can be up to 256 characters. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The ARN of a resource that can be tagged.""" + tags: Required[Mapping[str, str]] + """ + The key-value map of strings. The valid character set is + [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not + start with `aws:`. The tag value can be up to 256 characters. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -329,6 +352,41 @@ class TestInvokeAuthorizerInput(_SerdeShape): additional_context: dict[str, str] | None = ... """A key-value map of additional context variables.""" +class TestInvokeAuthorizerInputDict(TypedDict, total=False): + """Dictionary form of `TestInvokeAuthorizerInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + authorizer_id: Required[str] + """Specifies a test invoke authorizer request's Authorizer ID.""" + headers: Mapping[str, str] | None + """ + A key-value map of headers to simulate an incoming invocation request. + This is where the incoming authorization token, or identity source, + should be specified. + """ + multi_value_headers: Mapping[str, Sequence[str]] | None + """ + The headers as a map from string to list of values to simulate an + incoming invocation request. This is where the incoming authorization + token, or identity source, may be specified. + """ + path_with_query_string: str | None + """ + The URI path, including query string, of the simulated invocation + request. Use this to specify path parameters and query string + parameters. + """ + body: str | None + """The simulated request body of an incoming invocation request.""" + stage_variables: Mapping[str, str] | None + """ + A key-value map of stage variables to simulate an invocation on a + deployed Stage. + """ + additional_context: Mapping[str, str] | None + """A key-value map of additional context variables.""" + @dataclass(kw_only=True) class TestInvokeAuthorizerOutput(_SerdeShape): """ @@ -401,6 +459,42 @@ class TestInvokeMethodInput(_SerdeShape): deployed Stage. """ +class TestInvokeMethodInputDict(TypedDict, total=False): + """Dictionary form of `TestInvokeMethodInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Specifies a test invoke method request's resource ID.""" + http_method: Required[str] + """Specifies a test invoke method request's HTTP method.""" + path_with_query_string: str | None + """ + The URI path, including query string, of the simulated invocation + request. Use this to specify path parameters and query string + parameters. + """ + body: str | None + """The simulated request body of an incoming invocation request.""" + headers: Mapping[str, str] | None + """A key-value map of headers to simulate an incoming invocation request.""" + multi_value_headers: Mapping[str, Sequence[str]] | None + """ + The headers as a map from string to list of values to simulate an + incoming invocation request. + """ + client_certificate_id: str | None + """ + A ClientCertificate identifier to use in the test invocation. API + Gateway will use the certificate when making the HTTPS request to the + defined back-end endpoint. + """ + stage_variables: Mapping[str, str] | None + """ + A key-value map of stage variables to simulate an invocation on a + deployed Stage. + """ + @dataclass(kw_only=True) class TestInvokeMethodOutput(_SerdeShape): """Represents the response of the test invoke request in the HTTP method.""" @@ -437,6 +531,17 @@ class ThrottleSettings(_SerdeShape): rate_limit: float = ... """The API target request rate limit.""" +class ThrottleSettingsDict(TypedDict, total=False): + """Dictionary form of `ThrottleSettings`.""" + + burst_limit: int | None + """ + The API target request burst rate limit. This allows more requests + through for a period of time than the target rate limit. + """ + rate_limit: float | None + """The API target request rate limit.""" + @dataclass(kw_only=True) class TlsConfig(_SerdeShape): """Specifies the TLS configuration for an integration.""" @@ -460,6 +565,28 @@ class TlsConfig(_SerdeShape): attacks. """ +class TlsConfigDict(TypedDict, total=False): + """Dictionary form of `TlsConfig`.""" + + insecure_skip_verification: bool | None + """ + Specifies whether or not API Gateway skips verification that the + certificate for an integration endpoint is issued by a supported + certificate authority. This isn't recommended, but it enables you to use + certificates that are signed by private certificate authorities, or + certificates that are self-signed. If enabled, API Gateway still + performs basic certificate validation, which includes checking the + certificate's expiration date, hostname, and presence of a root + certificate authority. Supported only for `HTTP` and `HTTP_PROXY` + integrations. + + Warning: + Enabling `insecureSkipVerification` isn't recommended, especially for + integrations with public HTTPS endpoints. If you enable + `insecureSkipVerification`, you increase the risk of man-in-the-middle + attacks. + """ + @dataclass(kw_only=True) class TooManyRequestsException(ServiceError, _SerdeShape): """ @@ -502,6 +629,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The Tag keys to delete.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """The ARN of a resource that can be tagged.""" + tag_keys: Required[Sequence[str]] + """The Tag keys to delete.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -527,6 +662,15 @@ class UpdateAccountInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateAccountInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAccountInput`.""" + + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateAccountOutput(_SerdeShape): """Represents an AWS account that is associated with API Gateway.""" @@ -562,6 +706,17 @@ class UpdateApiKeyInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateApiKeyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateApiKeyInput`.""" + + api_key: Required[str] + """The identifier of the ApiKey resource to be updated.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateApiKeyOutput(_SerdeShape): """ @@ -619,6 +774,19 @@ class UpdateAuthorizerInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateAuthorizerInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAuthorizerInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + authorizer_id: Required[str] + """The identifier of the Authorizer resource.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateAuthorizerOutput(_SerdeShape): """ @@ -742,6 +910,28 @@ class UpdateBasePathMappingInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateBasePathMappingInputDict(TypedDict, total=False): + """Dictionary form of `UpdateBasePathMappingInput`.""" + + domain_name: Required[str] + """The domain name of the BasePathMapping resource to change.""" + domain_name_id: str | None + """ + The identifier for the domain name resource. Supported only for private + custom domain names. + """ + base_path: Required[str] + """ + The base path of the BasePathMapping resource to change. + + To specify an empty base path, set this parameter to `'(none)'`. + """ + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateBasePathMappingOutput(_SerdeShape): """ @@ -778,6 +968,17 @@ class UpdateClientCertificateInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateClientCertificateInputDict(TypedDict, total=False): + """Dictionary form of `UpdateClientCertificateInput`.""" + + client_certificate_id: Required[str] + """The identifier of the ClientCertificate resource to be updated.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateClientCertificateOutput(_SerdeShape): """ @@ -828,6 +1029,22 @@ class UpdateDeploymentInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDeploymentInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + deployment_id: Required[str] + """ + The replacement identifier for the Deployment resource to change + information about. + """ + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateDeploymentOutput(_SerdeShape): """ @@ -869,6 +1086,19 @@ class UpdateDocumentationPartInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateDocumentationPartInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDocumentationPartInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + documentation_part_id: Required[str] + """The identifier of the to-be-updated documentation part.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateDocumentationPartOutput(_SerdeShape): """A documentation part for a targeted API entity.""" @@ -890,7 +1120,7 @@ class UpdateDocumentationPartOutput(_SerdeShape): """ A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g., - `"{ \"description\": \"The API does ...\" }"`. Only OpenAPI-compliant + `"{ \\"description\\": \\"The API does ...\\" }"`. Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension of @@ -918,6 +1148,19 @@ class UpdateDocumentationVersionInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateDocumentationVersionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDocumentationVersionInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + documentation_version: Required[str] + """The version identifier of the to-be-updated documentation version.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateDocumentationVersionOutput(_SerdeShape): """A snapshot of the documentation of an API.""" @@ -953,6 +1196,22 @@ class UpdateDomainNameInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateDomainNameInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDomainNameInput`.""" + + domain_name: Required[str] + """The name of the DomainName resource to be changed.""" + domain_name_id: str | None + """ + The identifier for the domain name resource. Supported only for private + custom domain names. + """ + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateDomainNameOutput(_SerdeShape): """ @@ -1116,6 +1375,19 @@ class UpdateGatewayResponseInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateGatewayResponseInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGatewayResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + response_type: Required[str] + """The response type of the associated GatewayResponse.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateGatewayResponseOutput(_SerdeShape): """ @@ -1168,6 +1440,21 @@ class UpdateIntegrationInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateIntegrationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateIntegrationInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Represents an update integration request's resource identifier.""" + http_method: Required[str] + """Represents an update integration request's HTTP method.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateIntegrationOutput(_SerdeShape): """ @@ -1237,7 +1524,7 @@ class UpdateIntegrationOutput(_SerdeShape): integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, - specify the string `arn:aws:iam::*:user/*`. To use resource-based + specify the string `arn:aws:iam::\\*:user/\\*`. To use resource-based permissions on supported Amazon Web Services services, specify null. """ request_parameters: dict[str, str] | None = ... @@ -1344,6 +1631,23 @@ class UpdateIntegrationResponseInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateIntegrationResponseInputDict(TypedDict, total=False): + """Dictionary form of `UpdateIntegrationResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """Specifies an update integration response request's resource identifier.""" + http_method: Required[str] + """Specifies an update integration response request's HTTP method.""" + status_code: Required[str] + """Specifies an update integration response request's status code.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateIntegrationResponseOutput(_SerdeShape): """ @@ -1364,7 +1668,7 @@ class UpdateIntegrationResponseOutput(_SerdeShape): example, if the success response returns nothing and the error response returns some string, you could use the `.+` regex to match error response. However, make sure that the error response does not contain - any newline (`\n`) character in such cases. If the back end is an Lambda + any newline (`\\n`) character in such cases. If the back end is an Lambda function, the Lambda function error header is matched. For all other HTTP and Amazon Web Services back ends, the HTTP status code is matched. """ @@ -1422,6 +1726,21 @@ class UpdateMethodInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateMethodInputDict(TypedDict, total=False): + """Dictionary form of `UpdateMethodInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The Resource identifier for the Method resource.""" + http_method: Required[str] + """The HTTP verb of the Method resource.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateMethodOutput(_SerdeShape): """ @@ -1528,6 +1847,23 @@ class UpdateMethodResponseInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateMethodResponseInputDict(TypedDict, total=False): + """Dictionary form of `UpdateMethodResponseInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The Resource identifier for the MethodResponse resource.""" + http_method: Required[str] + """The HTTP verb of the Method resource.""" + status_code: Required[str] + """The status code for the MethodResponse resource.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateMethodResponseOutput(_SerdeShape): """ @@ -1584,6 +1920,19 @@ class UpdateModelInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateModelInputDict(TypedDict, total=False): + """Dictionary form of `UpdateModelInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + model_name: Required[str] + """The name of the model to update.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateModelOutput(_SerdeShape): """ @@ -1630,6 +1979,19 @@ class UpdateRequestValidatorInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateRequestValidatorInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRequestValidatorInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + request_validator_id: Required[str] + """The identifier of RequestValidator to be updated.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateRequestValidatorOutput(_SerdeShape): """A set of validation rules for incoming Method requests.""" @@ -1670,6 +2032,19 @@ class UpdateResourceInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateResourceInputDict(TypedDict, total=False): + """Dictionary form of `UpdateResourceInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + resource_id: Required[str] + """The identifier of the Resource resource.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateResourceOutput(_SerdeShape): """Represents an API resource.""" @@ -1704,6 +2079,17 @@ class UpdateRestApiInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateRestApiInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRestApiInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateRestApiOutput(_SerdeShape): """Represents a REST API.""" @@ -1808,6 +2194,19 @@ class UpdateStageInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateStageInputDict(TypedDict, total=False): + """Dictionary form of `UpdateStageInput`.""" + + rest_api_id: Required[str] + """The string identifier of the associated RestApi.""" + stage_name: Required[str] + """The name of the Stage resource to change information about.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateStageOutput(_SerdeShape): """ @@ -1846,7 +2245,7 @@ class UpdateStageOutput(_SerdeShape): A map that defines the method settings for a Stage resource. Keys (designated as `/{method_setting_key` below) are method paths defined as `{resource_path}/{http_method}` for an individual method override, or - `/*/*` for overriding all methods in the stage. + `/\\*/\\*` for overriding all methods in the stage. """ variables: dict[str, str] | None = ... """ @@ -1901,6 +2300,22 @@ class UpdateUsageInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateUsageInputDict(TypedDict, total=False): + """Dictionary form of `UpdateUsageInput`.""" + + usage_plan_id: Required[str] + """The Id of the usage plan associated with the usage data.""" + key_id: Required[str] + """ + The identifier of the API key associated with the usage plan in which a + temporary extension is granted to the remaining quota. + """ + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateUsageOutput(_SerdeShape): """Represents the usage data of a usage plan.""" @@ -1942,6 +2357,17 @@ class UpdateUsagePlanInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateUsagePlanInputDict(TypedDict, total=False): + """Dictionary form of `UpdateUsagePlanInput`.""" + + usage_plan_id: Required[str] + """The Id of the to-be-updated usage plan.""" + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateUsagePlanOutput(_SerdeShape): """ @@ -2006,6 +2432,20 @@ class UpdateVpcLinkInput(_SerdeShape): Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). """ +class UpdateVpcLinkInputDict(TypedDict, total=False): + """Dictionary form of `UpdateVpcLinkInput`.""" + + vpc_link_id: Required[str] + """ + The identifier of the VpcLink. It is used in an Integration to reference + this VpcLink. + """ + patch_operations: Sequence[PatchOperation | PatchOperationDict] | None + """ + For more information about supported patch operations, see [Patch + Operations](https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html). + """ + @dataclass(kw_only=True) class UpdateVpcLinkOutput(_SerdeShape): """ diff --git a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/schemas.py b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/schemas.py index 50bb99b30..b88135521 100644 --- a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/schemas.py +++ b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/_private/schemas.py @@ -523,7 +523,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/aio/client.py b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/aio/client.py index 3bc088b5b..9243d2220 100644 --- a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/aio/client.py +++ b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -21,253 +21,129 @@ if TYPE_CHECKING: from ..models import ( - CreateApiKeyInput, CreateApiKeyOutput, - CreateAuthorizerInput, CreateAuthorizerOutput, - CreateBasePathMappingInput, CreateBasePathMappingOutput, - CreateDeploymentInput, CreateDeploymentOutput, - CreateDocumentationPartInput, CreateDocumentationPartOutput, - CreateDocumentationVersionInput, CreateDocumentationVersionOutput, - CreateDomainNameAccessAssociationInput, CreateDomainNameAccessAssociationOutput, - CreateDomainNameInput, CreateDomainNameOutput, - CreateModelInput, CreateModelOutput, - CreateRequestValidatorInput, CreateRequestValidatorOutput, - CreateResourceInput, CreateResourceOutput, - CreateRestApiInput, CreateRestApiOutput, - CreateStageInput, CreateStageOutput, - CreateUsagePlanInput, - CreateUsagePlanKeyInput, CreateUsagePlanKeyOutput, CreateUsagePlanOutput, - CreateVpcLinkInput, CreateVpcLinkOutput, - DeleteApiKeyInput, DeleteApiKeyOutput, - DeleteAuthorizerInput, DeleteAuthorizerOutput, - DeleteBasePathMappingInput, DeleteBasePathMappingOutput, - DeleteClientCertificateInput, DeleteClientCertificateOutput, - DeleteDeploymentInput, DeleteDeploymentOutput, - DeleteDocumentationPartInput, DeleteDocumentationPartOutput, - DeleteDocumentationVersionInput, DeleteDocumentationVersionOutput, - DeleteDomainNameAccessAssociationInput, DeleteDomainNameAccessAssociationOutput, - DeleteDomainNameInput, DeleteDomainNameOutput, - DeleteGatewayResponseInput, DeleteGatewayResponseOutput, - DeleteIntegrationInput, DeleteIntegrationOutput, - DeleteIntegrationResponseInput, DeleteIntegrationResponseOutput, - DeleteMethodInput, DeleteMethodOutput, - DeleteMethodResponseInput, DeleteMethodResponseOutput, - DeleteModelInput, DeleteModelOutput, - DeleteRequestValidatorInput, DeleteRequestValidatorOutput, - DeleteResourceInput, DeleteResourceOutput, - DeleteRestApiInput, DeleteRestApiOutput, - DeleteStageInput, DeleteStageOutput, - DeleteUsagePlanInput, - DeleteUsagePlanKeyInput, DeleteUsagePlanKeyOutput, DeleteUsagePlanOutput, - DeleteVpcLinkInput, DeleteVpcLinkOutput, - FlushStageAuthorizersCacheInput, FlushStageAuthorizersCacheOutput, - FlushStageCacheInput, FlushStageCacheOutput, - GenerateClientCertificateInput, GenerateClientCertificateOutput, - GetAccountInput, GetAccountOutput, - GetApiKeyInput, GetApiKeyOutput, - GetApiKeysInput, GetApiKeysOutput, - GetAuthorizerInput, GetAuthorizerOutput, - GetAuthorizersInput, GetAuthorizersOutput, - GetBasePathMappingInput, GetBasePathMappingOutput, - GetBasePathMappingsInput, GetBasePathMappingsOutput, - GetClientCertificateInput, GetClientCertificateOutput, - GetClientCertificatesInput, GetClientCertificatesOutput, - GetDeploymentInput, GetDeploymentOutput, - GetDeploymentsInput, GetDeploymentsOutput, - GetDocumentationPartInput, GetDocumentationPartOutput, - GetDocumentationPartsInput, GetDocumentationPartsOutput, - GetDocumentationVersionInput, GetDocumentationVersionOutput, - GetDocumentationVersionsInput, GetDocumentationVersionsOutput, - GetDomainNameAccessAssociationsInput, GetDomainNameAccessAssociationsOutput, - GetDomainNameInput, GetDomainNameOutput, - GetDomainNamesInput, GetDomainNamesOutput, - GetExportInput, GetExportOutput, - GetGatewayResponseInput, GetGatewayResponseOutput, - GetGatewayResponsesInput, GetGatewayResponsesOutput, - GetIntegrationInput, GetIntegrationOutput, - GetIntegrationResponseInput, GetIntegrationResponseOutput, - GetMethodInput, GetMethodOutput, - GetMethodResponseInput, GetMethodResponseOutput, - GetModelInput, GetModelOutput, - GetModelTemplateInput, GetModelTemplateOutput, - GetModelsInput, GetModelsOutput, - GetRequestValidatorInput, GetRequestValidatorOutput, - GetRequestValidatorsInput, GetRequestValidatorsOutput, - GetResourceInput, GetResourceOutput, - GetResourcesInput, GetResourcesOutput, - GetRestApiInput, GetRestApiOutput, - GetRestApisInput, GetRestApisOutput, - GetSdkInput, GetSdkOutput, - GetSdkTypeInput, GetSdkTypeOutput, - GetSdkTypesInput, GetSdkTypesOutput, - GetStageInput, GetStageOutput, - GetStagesInput, GetStagesOutput, - GetTagsInput, GetTagsOutput, - GetUsageInput, GetUsageOutput, - GetUsagePlanInput, - GetUsagePlanKeyInput, GetUsagePlanKeyOutput, - GetUsagePlanKeysInput, GetUsagePlanKeysOutput, GetUsagePlanOutput, - GetUsagePlansInput, GetUsagePlansOutput, - GetVpcLinkInput, GetVpcLinkOutput, - GetVpcLinksInput, GetVpcLinksOutput, - ImportApiKeysInput, ImportApiKeysOutput, - ImportDocumentationPartsInput, ImportDocumentationPartsOutput, - ImportRestApiInput, ImportRestApiOutput, - PutGatewayResponseInput, PutGatewayResponseOutput, - PutIntegrationInput, PutIntegrationOutput, - PutIntegrationResponseInput, PutIntegrationResponseOutput, - PutMethodInput, PutMethodOutput, - PutMethodResponseInput, PutMethodResponseOutput, - PutRestApiInput, PutRestApiOutput, - RejectDomainNameAccessAssociationInput, RejectDomainNameAccessAssociationOutput, - TagResourceInput, TagResourceOutput, - TestInvokeAuthorizerInput, TestInvokeAuthorizerOutput, - TestInvokeMethodInput, TestInvokeMethodOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAccountInput, UpdateAccountOutput, - UpdateApiKeyInput, UpdateApiKeyOutput, - UpdateAuthorizerInput, UpdateAuthorizerOutput, - UpdateBasePathMappingInput, UpdateBasePathMappingOutput, - UpdateClientCertificateInput, UpdateClientCertificateOutput, - UpdateDeploymentInput, UpdateDeploymentOutput, - UpdateDocumentationPartInput, UpdateDocumentationPartOutput, - UpdateDocumentationVersionInput, UpdateDocumentationVersionOutput, - UpdateDomainNameInput, UpdateDomainNameOutput, - UpdateGatewayResponseInput, UpdateGatewayResponseOutput, - UpdateIntegrationInput, UpdateIntegrationOutput, - UpdateIntegrationResponseInput, UpdateIntegrationResponseOutput, - UpdateMethodInput, UpdateMethodOutput, - UpdateMethodResponseInput, UpdateMethodResponseOutput, - UpdateModelInput, UpdateModelOutput, - UpdateRequestValidatorInput, UpdateRequestValidatorOutput, - UpdateResourceInput, UpdateResourceOutput, - UpdateRestApiInput, UpdateRestApiOutput, - UpdateStageInput, UpdateStageOutput, - UpdateUsageInput, UpdateUsageOutput, - UpdateUsagePlanInput, UpdateUsagePlanOutput, - UpdateVpcLinkInput, UpdateVpcLinkOutput, ) @@ -284,17 +160,29 @@ class AsyncAPIGatewayClient(AsyncClient[AsyncAPIGatewayConfig]): outside of AWS. """ - _client_plugins = (accept_header_plugin, aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, accept_header_plugin, aws_user_agent_plugin) + @_overload async def create_api_key( - self, input: CreateApiKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateApiKeyInput | _models.CreateApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateApiKeyOutput: ... + + @_overload + async def create_api_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateApiKeyInputDict], ) -> CreateApiKeyOutput: """ Create an ApiKey resource. Args: - input: - An instance of `CreateApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -304,17 +192,38 @@ async def create_api_key( Returns: An instance of `CreateApiKeyOutput`. """ - return await self._invoke(input, _models.CREATE_API_KEY, [], plugins) + async def create_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateApiKeyOutput: + return await self._invoke( + self._select_input(_models.CREATE_API_KEY, args, kwargs), + _models.CREATE_API_KEY, + [], + plugins, + ) + + @_overload + async def create_authorizer( + self, + request: _models.CreateAuthorizerInput | _models.CreateAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAuthorizerOutput: ... + + @_overload async def create_authorizer( - self, input: CreateAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAuthorizerInputDict], ) -> CreateAuthorizerOutput: """ Adds a new Authorizer resource to an existing RestApi resource. Args: - input: - An instance of `CreateAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -324,17 +233,39 @@ async def create_authorizer( Returns: An instance of `CreateAuthorizerOutput`. """ - return await self._invoke(input, _models.CREATE_AUTHORIZER, [], plugins) + async def create_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAuthorizerOutput: + return await self._invoke( + self._select_input(_models.CREATE_AUTHORIZER, args, kwargs), + _models.CREATE_AUTHORIZER, + [], + plugins, + ) + + @_overload + async def create_base_path_mapping( + self, + request: _models.CreateBasePathMappingInput + | _models.CreateBasePathMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBasePathMappingOutput: ... + + @_overload async def create_base_path_mapping( - self, input: CreateBasePathMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBasePathMappingInputDict], ) -> CreateBasePathMappingOutput: """ Creates a new BasePathMapping resource. Args: - input: - An instance of `CreateBasePathMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -344,18 +275,39 @@ async def create_base_path_mapping( Returns: An instance of `CreateBasePathMappingOutput`. """ - return await self._invoke(input, _models.CREATE_BASE_PATH_MAPPING, [], plugins) + async def create_base_path_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBasePathMappingOutput: + return await self._invoke( + self._select_input(_models.CREATE_BASE_PATH_MAPPING, args, kwargs), + _models.CREATE_BASE_PATH_MAPPING, + [], + plugins, + ) + + @_overload + async def create_deployment( + self, + request: _models.CreateDeploymentInput | _models.CreateDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDeploymentOutput: ... + + @_overload async def create_deployment( - self, input: CreateDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDeploymentInputDict], ) -> CreateDeploymentOutput: """ Creates a Deployment resource, which makes a specified RestApi callable over the internet. Args: - input: - An instance of `CreateDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -365,17 +317,39 @@ async def create_deployment( Returns: An instance of `CreateDeploymentOutput`. """ - return await self._invoke(input, _models.CREATE_DEPLOYMENT, [], plugins) + async def create_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDeploymentOutput: + return await self._invoke( + self._select_input(_models.CREATE_DEPLOYMENT, args, kwargs), + _models.CREATE_DEPLOYMENT, + [], + plugins, + ) + + @_overload + async def create_documentation_part( + self, + request: _models.CreateDocumentationPartInput + | _models.CreateDocumentationPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDocumentationPartOutput: ... + + @_overload async def create_documentation_part( - self, input: CreateDocumentationPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDocumentationPartInputDict], ) -> CreateDocumentationPartOutput: """ Creates a documentation part. Args: - input: - An instance of `CreateDocumentationPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -385,19 +359,39 @@ async def create_documentation_part( Returns: An instance of `CreateDocumentationPartOutput`. """ - return await self._invoke(input, _models.CREATE_DOCUMENTATION_PART, [], plugins) + async def create_documentation_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDocumentationPartOutput: + return await self._invoke( + self._select_input(_models.CREATE_DOCUMENTATION_PART, args, kwargs), + _models.CREATE_DOCUMENTATION_PART, + [], + plugins, + ) + + @_overload + async def create_documentation_version( + self, + request: _models.CreateDocumentationVersionInput + | _models.CreateDocumentationVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDocumentationVersionOutput: ... + + @_overload async def create_documentation_version( self, - input: CreateDocumentationVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDocumentationVersionInputDict], ) -> CreateDocumentationVersionOutput: """ Creates a documentation version Args: - input: - An instance of `CreateDocumentationVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -407,19 +401,38 @@ async def create_documentation_version( Returns: An instance of `CreateDocumentationVersionOutput`. """ + + async def create_documentation_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDocumentationVersionOutput: return await self._invoke( - input, _models.CREATE_DOCUMENTATION_VERSION, [], plugins + self._select_input(_models.CREATE_DOCUMENTATION_VERSION, args, kwargs), + _models.CREATE_DOCUMENTATION_VERSION, + [], + plugins, ) + @_overload + async def create_domain_name( + self, + request: _models.CreateDomainNameInput | _models.CreateDomainNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDomainNameOutput: ... + + @_overload async def create_domain_name( - self, input: CreateDomainNameInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDomainNameInputDict], ) -> CreateDomainNameOutput: """ Creates a new domain name. Args: - input: - An instance of `CreateDomainNameInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -429,20 +442,40 @@ async def create_domain_name( Returns: An instance of `CreateDomainNameOutput`. """ - return await self._invoke(input, _models.CREATE_DOMAIN_NAME, [], plugins) + async def create_domain_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDomainNameOutput: + return await self._invoke( + self._select_input(_models.CREATE_DOMAIN_NAME, args, kwargs), + _models.CREATE_DOMAIN_NAME, + [], + plugins, + ) + + @_overload + async def create_domain_name_access_association( + self, + request: _models.CreateDomainNameAccessAssociationInput + | _models.CreateDomainNameAccessAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDomainNameAccessAssociationOutput: ... + + @_overload async def create_domain_name_access_association( self, - input: CreateDomainNameAccessAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDomainNameAccessAssociationInputDict], ) -> CreateDomainNameAccessAssociationOutput: """ Creates a domain name access association resource between an access association source and a private custom domain name. Args: - input: - An instance of `CreateDomainNameAccessAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -452,19 +485,40 @@ async def create_domain_name_access_association( Returns: An instance of `CreateDomainNameAccessAssociationOutput`. """ + + async def create_domain_name_access_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDomainNameAccessAssociationOutput: return await self._invoke( - input, _models.CREATE_DOMAIN_NAME_ACCESS_ASSOCIATION, [], plugins + self._select_input( + _models.CREATE_DOMAIN_NAME_ACCESS_ASSOCIATION, args, kwargs + ), + _models.CREATE_DOMAIN_NAME_ACCESS_ASSOCIATION, + [], + plugins, ) + @_overload async def create_model( - self, input: CreateModelInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateModelInput | _models.CreateModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelOutput: ... + + @_overload + async def create_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelInputDict], ) -> CreateModelOutput: """ Adds a new Model resource to an existing RestApi resource. Args: - input: - An instance of `CreateModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -474,17 +528,39 @@ async def create_model( Returns: An instance of `CreateModelOutput`. """ - return await self._invoke(input, _models.CREATE_MODEL, [], plugins) + async def create_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelOutput: + return await self._invoke( + self._select_input(_models.CREATE_MODEL, args, kwargs), + _models.CREATE_MODEL, + [], + plugins, + ) + + @_overload + async def create_request_validator( + self, + request: _models.CreateRequestValidatorInput + | _models.CreateRequestValidatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRequestValidatorOutput: ... + + @_overload async def create_request_validator( - self, input: CreateRequestValidatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRequestValidatorInputDict], ) -> CreateRequestValidatorOutput: """ Creates a RequestValidator of a given RestApi. Args: - input: - An instance of `CreateRequestValidatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -494,17 +570,38 @@ async def create_request_validator( Returns: An instance of `CreateRequestValidatorOutput`. """ - return await self._invoke(input, _models.CREATE_REQUEST_VALIDATOR, [], plugins) + async def create_request_validator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRequestValidatorOutput: + return await self._invoke( + self._select_input(_models.CREATE_REQUEST_VALIDATOR, args, kwargs), + _models.CREATE_REQUEST_VALIDATOR, + [], + plugins, + ) + + @_overload + async def create_resource( + self, + request: _models.CreateResourceInput | _models.CreateResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateResourceOutput: ... + + @_overload async def create_resource( - self, input: CreateResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateResourceInputDict], ) -> CreateResourceOutput: """ Creates a Resource resource. Args: - input: - An instance of `CreateResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -514,17 +611,38 @@ async def create_resource( Returns: An instance of `CreateResourceOutput`. """ - return await self._invoke(input, _models.CREATE_RESOURCE, [], plugins) + async def create_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateResourceOutput: + return await self._invoke( + self._select_input(_models.CREATE_RESOURCE, args, kwargs), + _models.CREATE_RESOURCE, + [], + plugins, + ) + + @_overload + async def create_rest_api( + self, + request: _models.CreateRestApiInput | _models.CreateRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRestApiOutput: ... + + @_overload async def create_rest_api( - self, input: CreateRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRestApiInputDict], ) -> CreateRestApiOutput: """ Creates a new RestApi resource. Args: - input: - An instance of `CreateRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -534,18 +652,39 @@ async def create_rest_api( Returns: An instance of `CreateRestApiOutput`. """ - return await self._invoke(input, _models.CREATE_REST_API, [], plugins) + async def create_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRestApiOutput: + return await self._invoke( + self._select_input(_models.CREATE_REST_API, args, kwargs), + _models.CREATE_REST_API, + [], + plugins, + ) + + @_overload + async def create_stage( + self, + request: _models.CreateStageInput | _models.CreateStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStageOutput: ... + + @_overload async def create_stage( - self, input: CreateStageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStageInputDict], ) -> CreateStageOutput: """ Creates a new Stage resource that references a pre-existing Deployment for the API. Args: - input: - An instance of `CreateStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -555,18 +694,39 @@ async def create_stage( Returns: An instance of `CreateStageOutput`. """ - return await self._invoke(input, _models.CREATE_STAGE, [], plugins) + async def create_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStageOutput: + return await self._invoke( + self._select_input(_models.CREATE_STAGE, args, kwargs), + _models.CREATE_STAGE, + [], + plugins, + ) + + @_overload + async def create_usage_plan( + self, + request: _models.CreateUsagePlanInput | _models.CreateUsagePlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateUsagePlanOutput: ... + + @_overload async def create_usage_plan( - self, input: CreateUsagePlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateUsagePlanInputDict], ) -> CreateUsagePlanOutput: """ Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload. Args: - input: - An instance of `CreateUsagePlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -576,17 +736,38 @@ async def create_usage_plan( Returns: An instance of `CreateUsagePlanOutput`. """ - return await self._invoke(input, _models.CREATE_USAGE_PLAN, [], plugins) + async def create_usage_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateUsagePlanOutput: + return await self._invoke( + self._select_input(_models.CREATE_USAGE_PLAN, args, kwargs), + _models.CREATE_USAGE_PLAN, + [], + plugins, + ) + + @_overload + async def create_usage_plan_key( + self, + request: _models.CreateUsagePlanKeyInput | _models.CreateUsagePlanKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateUsagePlanKeyOutput: ... + + @_overload async def create_usage_plan_key( - self, input: CreateUsagePlanKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateUsagePlanKeyInputDict], ) -> CreateUsagePlanKeyOutput: """ Creates a usage plan key for adding an existing API key to a usage plan. Args: - input: - An instance of `CreateUsagePlanKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -596,10 +777,33 @@ async def create_usage_plan_key( Returns: An instance of `CreateUsagePlanKeyOutput`. """ - return await self._invoke(input, _models.CREATE_USAGE_PLAN_KEY, [], plugins) + async def create_usage_plan_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateUsagePlanKeyOutput: + return await self._invoke( + self._select_input(_models.CREATE_USAGE_PLAN_KEY, args, kwargs), + _models.CREATE_USAGE_PLAN_KEY, + [], + plugins, + ) + + @_overload + async def create_vpc_link( + self, + request: _models.CreateVpcLinkInput | _models.CreateVpcLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcLinkOutput: ... + + @_overload async def create_vpc_link( - self, input: CreateVpcLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcLinkInputDict], ) -> CreateVpcLinkOutput: """ Creates a VPC link, under the caller's account in a selected region, in @@ -608,8 +812,6 @@ async def create_vpc_link( update VPC Endpoint services. Args: - input: - An instance of `CreateVpcLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -619,17 +821,38 @@ async def create_vpc_link( Returns: An instance of `CreateVpcLinkOutput`. """ - return await self._invoke(input, _models.CREATE_VPC_LINK, [], plugins) + async def create_vpc_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcLinkOutput: + return await self._invoke( + self._select_input(_models.CREATE_VPC_LINK, args, kwargs), + _models.CREATE_VPC_LINK, + [], + plugins, + ) + + @_overload async def delete_api_key( - self, input: DeleteApiKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteApiKeyInput | _models.DeleteApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteApiKeyOutput: ... + + @_overload + async def delete_api_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteApiKeyInputDict], ) -> DeleteApiKeyOutput: """ Deletes the ApiKey resource. Args: - input: - An instance of `DeleteApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -639,17 +862,38 @@ async def delete_api_key( Returns: An instance of `DeleteApiKeyOutput`. """ - return await self._invoke(input, _models.DELETE_API_KEY, [], plugins) + async def delete_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteApiKeyOutput: + return await self._invoke( + self._select_input(_models.DELETE_API_KEY, args, kwargs), + _models.DELETE_API_KEY, + [], + plugins, + ) + + @_overload + async def delete_authorizer( + self, + request: _models.DeleteAuthorizerInput | _models.DeleteAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAuthorizerOutput: ... + + @_overload async def delete_authorizer( - self, input: DeleteAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAuthorizerInputDict], ) -> DeleteAuthorizerOutput: """ Deletes an existing Authorizer resource. Args: - input: - An instance of `DeleteAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -659,17 +903,39 @@ async def delete_authorizer( Returns: An instance of `DeleteAuthorizerOutput`. """ - return await self._invoke(input, _models.DELETE_AUTHORIZER, [], plugins) + async def delete_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAuthorizerOutput: + return await self._invoke( + self._select_input(_models.DELETE_AUTHORIZER, args, kwargs), + _models.DELETE_AUTHORIZER, + [], + plugins, + ) + + @_overload + async def delete_base_path_mapping( + self, + request: _models.DeleteBasePathMappingInput + | _models.DeleteBasePathMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBasePathMappingOutput: ... + + @_overload async def delete_base_path_mapping( - self, input: DeleteBasePathMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBasePathMappingInputDict], ) -> DeleteBasePathMappingOutput: """ Deletes the BasePathMapping resource. Args: - input: - An instance of `DeleteBasePathMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -679,17 +945,39 @@ async def delete_base_path_mapping( Returns: An instance of `DeleteBasePathMappingOutput`. """ - return await self._invoke(input, _models.DELETE_BASE_PATH_MAPPING, [], plugins) + async def delete_base_path_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBasePathMappingOutput: + return await self._invoke( + self._select_input(_models.DELETE_BASE_PATH_MAPPING, args, kwargs), + _models.DELETE_BASE_PATH_MAPPING, + [], + plugins, + ) + + @_overload + async def delete_client_certificate( + self, + request: _models.DeleteClientCertificateInput + | _models.DeleteClientCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClientCertificateOutput: ... + + @_overload async def delete_client_certificate( - self, input: DeleteClientCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClientCertificateInputDict], ) -> DeleteClientCertificateOutput: """ Deletes the ClientCertificate resource. Args: - input: - An instance of `DeleteClientCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -699,18 +987,39 @@ async def delete_client_certificate( Returns: An instance of `DeleteClientCertificateOutput`. """ - return await self._invoke(input, _models.DELETE_CLIENT_CERTIFICATE, [], plugins) + async def delete_client_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClientCertificateOutput: + return await self._invoke( + self._select_input(_models.DELETE_CLIENT_CERTIFICATE, args, kwargs), + _models.DELETE_CLIENT_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def delete_deployment( + self, + request: _models.DeleteDeploymentInput | _models.DeleteDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDeploymentOutput: ... + + @_overload async def delete_deployment( - self, input: DeleteDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDeploymentInputDict], ) -> DeleteDeploymentOutput: """ Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it. Args: - input: - An instance of `DeleteDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -720,17 +1029,39 @@ async def delete_deployment( Returns: An instance of `DeleteDeploymentOutput`. """ - return await self._invoke(input, _models.DELETE_DEPLOYMENT, [], plugins) + async def delete_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDeploymentOutput: + return await self._invoke( + self._select_input(_models.DELETE_DEPLOYMENT, args, kwargs), + _models.DELETE_DEPLOYMENT, + [], + plugins, + ) + + @_overload + async def delete_documentation_part( + self, + request: _models.DeleteDocumentationPartInput + | _models.DeleteDocumentationPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDocumentationPartOutput: ... + + @_overload async def delete_documentation_part( - self, input: DeleteDocumentationPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDocumentationPartInputDict], ) -> DeleteDocumentationPartOutput: """ Deletes a documentation part Args: - input: - An instance of `DeleteDocumentationPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -740,19 +1071,39 @@ async def delete_documentation_part( Returns: An instance of `DeleteDocumentationPartOutput`. """ - return await self._invoke(input, _models.DELETE_DOCUMENTATION_PART, [], plugins) + async def delete_documentation_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDocumentationPartOutput: + return await self._invoke( + self._select_input(_models.DELETE_DOCUMENTATION_PART, args, kwargs), + _models.DELETE_DOCUMENTATION_PART, + [], + plugins, + ) + + @_overload + async def delete_documentation_version( + self, + request: _models.DeleteDocumentationVersionInput + | _models.DeleteDocumentationVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDocumentationVersionOutput: ... + + @_overload async def delete_documentation_version( self, - input: DeleteDocumentationVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDocumentationVersionInputDict], ) -> DeleteDocumentationVersionOutput: """ Deletes a documentation version. Args: - input: - An instance of `DeleteDocumentationVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -762,19 +1113,38 @@ async def delete_documentation_version( Returns: An instance of `DeleteDocumentationVersionOutput`. """ + + async def delete_documentation_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDocumentationVersionOutput: return await self._invoke( - input, _models.DELETE_DOCUMENTATION_VERSION, [], plugins + self._select_input(_models.DELETE_DOCUMENTATION_VERSION, args, kwargs), + _models.DELETE_DOCUMENTATION_VERSION, + [], + plugins, ) + @_overload + async def delete_domain_name( + self, + request: _models.DeleteDomainNameInput | _models.DeleteDomainNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDomainNameOutput: ... + + @_overload async def delete_domain_name( - self, input: DeleteDomainNameInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDomainNameInputDict], ) -> DeleteDomainNameOutput: """ Deletes the DomainName resource. Args: - input: - An instance of `DeleteDomainNameInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -784,12 +1154,34 @@ async def delete_domain_name( Returns: An instance of `DeleteDomainNameOutput`. """ - return await self._invoke(input, _models.DELETE_DOMAIN_NAME, [], plugins) + async def delete_domain_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDomainNameOutput: + return await self._invoke( + self._select_input(_models.DELETE_DOMAIN_NAME, args, kwargs), + _models.DELETE_DOMAIN_NAME, + [], + plugins, + ) + + @_overload + async def delete_domain_name_access_association( + self, + request: _models.DeleteDomainNameAccessAssociationInput + | _models.DeleteDomainNameAccessAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDomainNameAccessAssociationOutput: ... + + @_overload async def delete_domain_name_access_association( self, - input: DeleteDomainNameAccessAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDomainNameAccessAssociationInputDict], ) -> DeleteDomainNameAccessAssociationOutput: """ Deletes the DomainNameAccessAssociation resource. @@ -800,8 +1192,6 @@ async def delete_domain_name_access_association( RejectDomainNameAccessAssociation operation. Args: - input: - An instance of `DeleteDomainNameAccessAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -811,20 +1201,42 @@ async def delete_domain_name_access_association( Returns: An instance of `DeleteDomainNameAccessAssociationOutput`. """ + + async def delete_domain_name_access_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDomainNameAccessAssociationOutput: return await self._invoke( - input, _models.DELETE_DOMAIN_NAME_ACCESS_ASSOCIATION, [], plugins + self._select_input( + _models.DELETE_DOMAIN_NAME_ACCESS_ASSOCIATION, args, kwargs + ), + _models.DELETE_DOMAIN_NAME_ACCESS_ASSOCIATION, + [], + plugins, ) + @_overload + async def delete_gateway_response( + self, + request: _models.DeleteGatewayResponseInput + | _models.DeleteGatewayResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayResponseOutput: ... + + @_overload async def delete_gateway_response( - self, input: DeleteGatewayResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayResponseInputDict], ) -> DeleteGatewayResponseOutput: """ Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings. Args: - input: - An instance of `DeleteGatewayResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -834,17 +1246,38 @@ async def delete_gateway_response( Returns: An instance of `DeleteGatewayResponseOutput`. """ - return await self._invoke(input, _models.DELETE_GATEWAY_RESPONSE, [], plugins) + async def delete_gateway_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayResponseOutput: + return await self._invoke( + self._select_input(_models.DELETE_GATEWAY_RESPONSE, args, kwargs), + _models.DELETE_GATEWAY_RESPONSE, + [], + plugins, + ) + + @_overload + async def delete_integration( + self, + request: _models.DeleteIntegrationInput | _models.DeleteIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIntegrationOutput: ... + + @_overload async def delete_integration( - self, input: DeleteIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIntegrationInputDict], ) -> DeleteIntegrationOutput: """ Represents a delete integration. Args: - input: - An instance of `DeleteIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -854,17 +1287,39 @@ async def delete_integration( Returns: An instance of `DeleteIntegrationOutput`. """ - return await self._invoke(input, _models.DELETE_INTEGRATION, [], plugins) + async def delete_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIntegrationOutput: + return await self._invoke( + self._select_input(_models.DELETE_INTEGRATION, args, kwargs), + _models.DELETE_INTEGRATION, + [], + plugins, + ) + + @_overload + async def delete_integration_response( + self, + request: _models.DeleteIntegrationResponseInput + | _models.DeleteIntegrationResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIntegrationResponseOutput: ... + + @_overload async def delete_integration_response( - self, input: DeleteIntegrationResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIntegrationResponseInputDict], ) -> DeleteIntegrationResponseOutput: """ Represents a delete integration response. Args: - input: - An instance of `DeleteIntegrationResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -874,19 +1329,38 @@ async def delete_integration_response( Returns: An instance of `DeleteIntegrationResponseOutput`. """ + + async def delete_integration_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIntegrationResponseOutput: return await self._invoke( - input, _models.DELETE_INTEGRATION_RESPONSE, [], plugins + self._select_input(_models.DELETE_INTEGRATION_RESPONSE, args, kwargs), + _models.DELETE_INTEGRATION_RESPONSE, + [], + plugins, ) + @_overload + async def delete_method( + self, + request: _models.DeleteMethodInput | _models.DeleteMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMethodOutput: ... + + @_overload async def delete_method( - self, input: DeleteMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMethodInputDict], ) -> DeleteMethodOutput: """ Deletes an existing Method resource. Args: - input: - An instance of `DeleteMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -896,17 +1370,39 @@ async def delete_method( Returns: An instance of `DeleteMethodOutput`. """ - return await self._invoke(input, _models.DELETE_METHOD, [], plugins) + async def delete_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMethodOutput: + return await self._invoke( + self._select_input(_models.DELETE_METHOD, args, kwargs), + _models.DELETE_METHOD, + [], + plugins, + ) + + @_overload + async def delete_method_response( + self, + request: _models.DeleteMethodResponseInput + | _models.DeleteMethodResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMethodResponseOutput: ... + + @_overload async def delete_method_response( - self, input: DeleteMethodResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMethodResponseInputDict], ) -> DeleteMethodResponseOutput: """ Deletes an existing MethodResponse resource. Args: - input: - An instance of `DeleteMethodResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -916,17 +1412,38 @@ async def delete_method_response( Returns: An instance of `DeleteMethodResponseOutput`. """ - return await self._invoke(input, _models.DELETE_METHOD_RESPONSE, [], plugins) + async def delete_method_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMethodResponseOutput: + return await self._invoke( + self._select_input(_models.DELETE_METHOD_RESPONSE, args, kwargs), + _models.DELETE_METHOD_RESPONSE, + [], + plugins, + ) + + @_overload async def delete_model( - self, input: DeleteModelInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteModelInput | _models.DeleteModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteModelOutput: ... + + @_overload + async def delete_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteModelInputDict], ) -> DeleteModelOutput: """ Deletes a model. Args: - input: - An instance of `DeleteModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -936,17 +1453,39 @@ async def delete_model( Returns: An instance of `DeleteModelOutput`. """ - return await self._invoke(input, _models.DELETE_MODEL, [], plugins) + async def delete_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteModelOutput: + return await self._invoke( + self._select_input(_models.DELETE_MODEL, args, kwargs), + _models.DELETE_MODEL, + [], + plugins, + ) + + @_overload + async def delete_request_validator( + self, + request: _models.DeleteRequestValidatorInput + | _models.DeleteRequestValidatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRequestValidatorOutput: ... + + @_overload async def delete_request_validator( - self, input: DeleteRequestValidatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRequestValidatorInputDict], ) -> DeleteRequestValidatorOutput: """ Deletes a RequestValidator of a given RestApi. Args: - input: - An instance of `DeleteRequestValidatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -956,17 +1495,38 @@ async def delete_request_validator( Returns: An instance of `DeleteRequestValidatorOutput`. """ - return await self._invoke(input, _models.DELETE_REQUEST_VALIDATOR, [], plugins) + async def delete_request_validator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRequestValidatorOutput: + return await self._invoke( + self._select_input(_models.DELETE_REQUEST_VALIDATOR, args, kwargs), + _models.DELETE_REQUEST_VALIDATOR, + [], + plugins, + ) + + @_overload + async def delete_resource( + self, + request: _models.DeleteResourceInput | _models.DeleteResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourceOutput: ... + + @_overload async def delete_resource( - self, input: DeleteResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourceInputDict], ) -> DeleteResourceOutput: """ Deletes a Resource resource. Args: - input: - An instance of `DeleteResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -976,17 +1536,38 @@ async def delete_resource( Returns: An instance of `DeleteResourceOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE, [], plugins) + async def delete_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourceOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE, args, kwargs), + _models.DELETE_RESOURCE, + [], + plugins, + ) + + @_overload + async def delete_rest_api( + self, + request: _models.DeleteRestApiInput | _models.DeleteRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRestApiOutput: ... + + @_overload async def delete_rest_api( - self, input: DeleteRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRestApiInputDict], ) -> DeleteRestApiOutput: """ Deletes the specified API. Args: - input: - An instance of `DeleteRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -996,17 +1577,38 @@ async def delete_rest_api( Returns: An instance of `DeleteRestApiOutput`. """ - return await self._invoke(input, _models.DELETE_REST_API, [], plugins) + async def delete_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRestApiOutput: + return await self._invoke( + self._select_input(_models.DELETE_REST_API, args, kwargs), + _models.DELETE_REST_API, + [], + plugins, + ) + + @_overload + async def delete_stage( + self, + request: _models.DeleteStageInput | _models.DeleteStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStageOutput: ... + + @_overload async def delete_stage( - self, input: DeleteStageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStageInputDict], ) -> DeleteStageOutput: """ Deletes a Stage resource. Args: - input: - An instance of `DeleteStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1016,17 +1618,38 @@ async def delete_stage( Returns: An instance of `DeleteStageOutput`. """ - return await self._invoke(input, _models.DELETE_STAGE, [], plugins) + async def delete_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStageOutput: + return await self._invoke( + self._select_input(_models.DELETE_STAGE, args, kwargs), + _models.DELETE_STAGE, + [], + plugins, + ) + + @_overload + async def delete_usage_plan( + self, + request: _models.DeleteUsagePlanInput | _models.DeleteUsagePlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUsagePlanOutput: ... + + @_overload async def delete_usage_plan( - self, input: DeleteUsagePlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUsagePlanInputDict], ) -> DeleteUsagePlanOutput: """ Deletes a usage plan of a given plan Id. Args: - input: - An instance of `DeleteUsagePlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1036,18 +1659,39 @@ async def delete_usage_plan( Returns: An instance of `DeleteUsagePlanOutput`. """ - return await self._invoke(input, _models.DELETE_USAGE_PLAN, [], plugins) + async def delete_usage_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUsagePlanOutput: + return await self._invoke( + self._select_input(_models.DELETE_USAGE_PLAN, args, kwargs), + _models.DELETE_USAGE_PLAN, + [], + plugins, + ) + + @_overload + async def delete_usage_plan_key( + self, + request: _models.DeleteUsagePlanKeyInput | _models.DeleteUsagePlanKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUsagePlanKeyOutput: ... + + @_overload async def delete_usage_plan_key( - self, input: DeleteUsagePlanKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUsagePlanKeyInputDict], ) -> DeleteUsagePlanKeyOutput: """ Deletes a usage plan key and remove the underlying API key from the associated usage plan. Args: - input: - An instance of `DeleteUsagePlanKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1057,17 +1701,38 @@ async def delete_usage_plan_key( Returns: An instance of `DeleteUsagePlanKeyOutput`. """ - return await self._invoke(input, _models.DELETE_USAGE_PLAN_KEY, [], plugins) + async def delete_usage_plan_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUsagePlanKeyOutput: + return await self._invoke( + self._select_input(_models.DELETE_USAGE_PLAN_KEY, args, kwargs), + _models.DELETE_USAGE_PLAN_KEY, + [], + plugins, + ) + + @_overload + async def delete_vpc_link( + self, + request: _models.DeleteVpcLinkInput | _models.DeleteVpcLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcLinkOutput: ... + + @_overload async def delete_vpc_link( - self, input: DeleteVpcLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcLinkInputDict], ) -> DeleteVpcLinkOutput: """ Deletes an existing VpcLink of a specified identifier. Args: - input: - An instance of `DeleteVpcLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1077,19 +1742,39 @@ async def delete_vpc_link( Returns: An instance of `DeleteVpcLinkOutput`. """ - return await self._invoke(input, _models.DELETE_VPC_LINK, [], plugins) + async def delete_vpc_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcLinkOutput: + return await self._invoke( + self._select_input(_models.DELETE_VPC_LINK, args, kwargs), + _models.DELETE_VPC_LINK, + [], + plugins, + ) + + @_overload async def flush_stage_authorizers_cache( self, - input: FlushStageAuthorizersCacheInput, + request: _models.FlushStageAuthorizersCacheInput + | _models.FlushStageAuthorizersCacheInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> FlushStageAuthorizersCacheOutput: ... + + @_overload + async def flush_stage_authorizers_cache( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.FlushStageAuthorizersCacheInputDict], ) -> FlushStageAuthorizersCacheOutput: """ Flushes all authorizer cache entries on a stage. Args: - input: - An instance of `FlushStageAuthorizersCacheInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1099,19 +1784,38 @@ async def flush_stage_authorizers_cache( Returns: An instance of `FlushStageAuthorizersCacheOutput`. """ + + async def flush_stage_authorizers_cache( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> FlushStageAuthorizersCacheOutput: return await self._invoke( - input, _models.FLUSH_STAGE_AUTHORIZERS_CACHE, [], plugins + self._select_input(_models.FLUSH_STAGE_AUTHORIZERS_CACHE, args, kwargs), + _models.FLUSH_STAGE_AUTHORIZERS_CACHE, + [], + plugins, ) + @_overload + async def flush_stage_cache( + self, + request: _models.FlushStageCacheInput | _models.FlushStageCacheInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> FlushStageCacheOutput: ... + + @_overload async def flush_stage_cache( - self, input: FlushStageCacheInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.FlushStageCacheInputDict], ) -> FlushStageCacheOutput: """ Flushes a stage's cache. Args: - input: - An instance of `FlushStageCacheInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1121,17 +1825,39 @@ async def flush_stage_cache( Returns: An instance of `FlushStageCacheOutput`. """ - return await self._invoke(input, _models.FLUSH_STAGE_CACHE, [], plugins) + async def flush_stage_cache( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> FlushStageCacheOutput: + return await self._invoke( + self._select_input(_models.FLUSH_STAGE_CACHE, args, kwargs), + _models.FLUSH_STAGE_CACHE, + [], + plugins, + ) + + @_overload + async def generate_client_certificate( + self, + request: _models.GenerateClientCertificateInput + | _models.GenerateClientCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateClientCertificateOutput: ... + + @_overload async def generate_client_certificate( - self, input: GenerateClientCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateClientCertificateInputDict], ) -> GenerateClientCertificateOutput: """ Generates a ClientCertificate resource. Args: - input: - An instance of `GenerateClientCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1141,19 +1867,38 @@ async def generate_client_certificate( Returns: An instance of `GenerateClientCertificateOutput`. """ + + async def generate_client_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateClientCertificateOutput: return await self._invoke( - input, _models.GENERATE_CLIENT_CERTIFICATE, [], plugins + self._select_input(_models.GENERATE_CLIENT_CERTIFICATE, args, kwargs), + _models.GENERATE_CLIENT_CERTIFICATE, + [], + plugins, ) + @_overload + async def get_account( + self, + request: _models.GetAccountInput | _models.GetAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountOutput: ... + + @_overload async def get_account( - self, input: GetAccountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountInputDict], ) -> GetAccountOutput: """ Gets information about the current Account resource. Args: - input: - An instance of `GetAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1163,17 +1908,38 @@ async def get_account( Returns: An instance of `GetAccountOutput`. """ - return await self._invoke(input, _models.GET_ACCOUNT, [], plugins) + async def get_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountOutput: + return await self._invoke( + self._select_input(_models.GET_ACCOUNT, args, kwargs), + _models.GET_ACCOUNT, + [], + plugins, + ) + + @_overload + async def get_api_key( + self, + request: _models.GetApiKeyInput | _models.GetApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetApiKeyOutput: ... + + @_overload async def get_api_key( - self, input: GetApiKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetApiKeyInputDict], ) -> GetApiKeyOutput: """ Gets information about the current ApiKey resource. Args: - input: - An instance of `GetApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1183,17 +1949,38 @@ async def get_api_key( Returns: An instance of `GetApiKeyOutput`. """ - return await self._invoke(input, _models.GET_API_KEY, [], plugins) + async def get_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetApiKeyOutput: + return await self._invoke( + self._select_input(_models.GET_API_KEY, args, kwargs), + _models.GET_API_KEY, + [], + plugins, + ) + + @_overload + async def get_api_keys( + self, + request: _models.GetApiKeysInput | _models.GetApiKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetApiKeysOutput: ... + + @_overload async def get_api_keys( - self, input: GetApiKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetApiKeysInputDict], ) -> GetApiKeysOutput: """ Gets information about the current ApiKeys resource. Args: - input: - An instance of `GetApiKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1203,17 +1990,38 @@ async def get_api_keys( Returns: An instance of `GetApiKeysOutput`. """ - return await self._invoke(input, _models.GET_API_KEYS, [], plugins) + async def get_api_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetApiKeysOutput: + return await self._invoke( + self._select_input(_models.GET_API_KEYS, args, kwargs), + _models.GET_API_KEYS, + [], + plugins, + ) + + @_overload + async def get_authorizer( + self, + request: _models.GetAuthorizerInput | _models.GetAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAuthorizerOutput: ... + + @_overload async def get_authorizer( - self, input: GetAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAuthorizerInputDict], ) -> GetAuthorizerOutput: """ Describe an existing Authorizer resource. Args: - input: - An instance of `GetAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1223,17 +2031,38 @@ async def get_authorizer( Returns: An instance of `GetAuthorizerOutput`. """ - return await self._invoke(input, _models.GET_AUTHORIZER, [], plugins) + async def get_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAuthorizerOutput: + return await self._invoke( + self._select_input(_models.GET_AUTHORIZER, args, kwargs), + _models.GET_AUTHORIZER, + [], + plugins, + ) + + @_overload + async def get_authorizers( + self, + request: _models.GetAuthorizersInput | _models.GetAuthorizersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAuthorizersOutput: ... + + @_overload async def get_authorizers( - self, input: GetAuthorizersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAuthorizersInputDict], ) -> GetAuthorizersOutput: """ Describe an existing Authorizers resource. Args: - input: - An instance of `GetAuthorizersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1243,17 +2072,38 @@ async def get_authorizers( Returns: An instance of `GetAuthorizersOutput`. """ - return await self._invoke(input, _models.GET_AUTHORIZERS, [], plugins) + async def get_authorizers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAuthorizersOutput: + return await self._invoke( + self._select_input(_models.GET_AUTHORIZERS, args, kwargs), + _models.GET_AUTHORIZERS, + [], + plugins, + ) + + @_overload + async def get_base_path_mapping( + self, + request: _models.GetBasePathMappingInput | _models.GetBasePathMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBasePathMappingOutput: ... + + @_overload async def get_base_path_mapping( - self, input: GetBasePathMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBasePathMappingInputDict], ) -> GetBasePathMappingOutput: """ Describe a BasePathMapping resource. Args: - input: - An instance of `GetBasePathMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1263,17 +2113,39 @@ async def get_base_path_mapping( Returns: An instance of `GetBasePathMappingOutput`. """ - return await self._invoke(input, _models.GET_BASE_PATH_MAPPING, [], plugins) + async def get_base_path_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBasePathMappingOutput: + return await self._invoke( + self._select_input(_models.GET_BASE_PATH_MAPPING, args, kwargs), + _models.GET_BASE_PATH_MAPPING, + [], + plugins, + ) + + @_overload + async def get_base_path_mappings( + self, + request: _models.GetBasePathMappingsInput + | _models.GetBasePathMappingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBasePathMappingsOutput: ... + + @_overload async def get_base_path_mappings( - self, input: GetBasePathMappingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBasePathMappingsInputDict], ) -> GetBasePathMappingsOutput: """ Represents a collection of BasePathMapping resources. Args: - input: - An instance of `GetBasePathMappingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1283,17 +2155,39 @@ async def get_base_path_mappings( Returns: An instance of `GetBasePathMappingsOutput`. """ - return await self._invoke(input, _models.GET_BASE_PATH_MAPPINGS, [], plugins) + async def get_base_path_mappings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBasePathMappingsOutput: + return await self._invoke( + self._select_input(_models.GET_BASE_PATH_MAPPINGS, args, kwargs), + _models.GET_BASE_PATH_MAPPINGS, + [], + plugins, + ) + + @_overload async def get_client_certificate( - self, input: GetClientCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.GetClientCertificateInput + | _models.GetClientCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetClientCertificateOutput: ... + + @_overload + async def get_client_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetClientCertificateInputDict], ) -> GetClientCertificateOutput: """ Gets information about the current ClientCertificate resource. Args: - input: - An instance of `GetClientCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1303,17 +2197,39 @@ async def get_client_certificate( Returns: An instance of `GetClientCertificateOutput`. """ - return await self._invoke(input, _models.GET_CLIENT_CERTIFICATE, [], plugins) - async def get_client_certificates( - self, input: GetClientCertificatesInput, plugins: list[Plugin] | None = None - ) -> GetClientCertificatesOutput: + async def get_client_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetClientCertificateOutput: + return await self._invoke( + self._select_input(_models.GET_CLIENT_CERTIFICATE, args, kwargs), + _models.GET_CLIENT_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def get_client_certificates( + self, + request: _models.GetClientCertificatesInput + | _models.GetClientCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetClientCertificatesOutput: ... + + @_overload + async def get_client_certificates( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetClientCertificatesInputDict], + ) -> GetClientCertificatesOutput: """ Gets a collection of ClientCertificate resources. Args: - input: - An instance of `GetClientCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1323,17 +2239,38 @@ async def get_client_certificates( Returns: An instance of `GetClientCertificatesOutput`. """ - return await self._invoke(input, _models.GET_CLIENT_CERTIFICATES, [], plugins) + async def get_client_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetClientCertificatesOutput: + return await self._invoke( + self._select_input(_models.GET_CLIENT_CERTIFICATES, args, kwargs), + _models.GET_CLIENT_CERTIFICATES, + [], + plugins, + ) + + @_overload + async def get_deployment( + self, + request: _models.GetDeploymentInput | _models.GetDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDeploymentOutput: ... + + @_overload async def get_deployment( - self, input: GetDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDeploymentInputDict], ) -> GetDeploymentOutput: """ Gets information about a Deployment resource. Args: - input: - An instance of `GetDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1343,17 +2280,38 @@ async def get_deployment( Returns: An instance of `GetDeploymentOutput`. """ - return await self._invoke(input, _models.GET_DEPLOYMENT, [], plugins) + async def get_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDeploymentOutput: + return await self._invoke( + self._select_input(_models.GET_DEPLOYMENT, args, kwargs), + _models.GET_DEPLOYMENT, + [], + plugins, + ) + + @_overload async def get_deployments( - self, input: GetDeploymentsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDeploymentsInput | _models.GetDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDeploymentsOutput: ... + + @_overload + async def get_deployments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDeploymentsInputDict], ) -> GetDeploymentsOutput: """ Gets information about a Deployments collection. Args: - input: - An instance of `GetDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1363,17 +2321,39 @@ async def get_deployments( Returns: An instance of `GetDeploymentsOutput`. """ - return await self._invoke(input, _models.GET_DEPLOYMENTS, [], plugins) + async def get_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDeploymentsOutput: + return await self._invoke( + self._select_input(_models.GET_DEPLOYMENTS, args, kwargs), + _models.GET_DEPLOYMENTS, + [], + plugins, + ) + + @_overload + async def get_documentation_part( + self, + request: _models.GetDocumentationPartInput + | _models.GetDocumentationPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentationPartOutput: ... + + @_overload async def get_documentation_part( - self, input: GetDocumentationPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentationPartInputDict], ) -> GetDocumentationPartOutput: """ Gets a documentation part. Args: - input: - An instance of `GetDocumentationPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1383,17 +2363,39 @@ async def get_documentation_part( Returns: An instance of `GetDocumentationPartOutput`. """ - return await self._invoke(input, _models.GET_DOCUMENTATION_PART, [], plugins) + async def get_documentation_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentationPartOutput: + return await self._invoke( + self._select_input(_models.GET_DOCUMENTATION_PART, args, kwargs), + _models.GET_DOCUMENTATION_PART, + [], + plugins, + ) + + @_overload async def get_documentation_parts( - self, input: GetDocumentationPartsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDocumentationPartsInput + | _models.GetDocumentationPartsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentationPartsOutput: ... + + @_overload + async def get_documentation_parts( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentationPartsInputDict], ) -> GetDocumentationPartsOutput: """ Gets documentation parts. Args: - input: - An instance of `GetDocumentationPartsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1403,17 +2405,39 @@ async def get_documentation_parts( Returns: An instance of `GetDocumentationPartsOutput`. """ - return await self._invoke(input, _models.GET_DOCUMENTATION_PARTS, [], plugins) + async def get_documentation_parts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentationPartsOutput: + return await self._invoke( + self._select_input(_models.GET_DOCUMENTATION_PARTS, args, kwargs), + _models.GET_DOCUMENTATION_PARTS, + [], + plugins, + ) + + @_overload async def get_documentation_version( - self, input: GetDocumentationVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDocumentationVersionInput + | _models.GetDocumentationVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentationVersionOutput: ... + + @_overload + async def get_documentation_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentationVersionInputDict], ) -> GetDocumentationVersionOutput: """ Gets a documentation version. Args: - input: - An instance of `GetDocumentationVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1423,17 +2447,39 @@ async def get_documentation_version( Returns: An instance of `GetDocumentationVersionOutput`. """ - return await self._invoke(input, _models.GET_DOCUMENTATION_VERSION, [], plugins) + async def get_documentation_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentationVersionOutput: + return await self._invoke( + self._select_input(_models.GET_DOCUMENTATION_VERSION, args, kwargs), + _models.GET_DOCUMENTATION_VERSION, + [], + plugins, + ) + + @_overload async def get_documentation_versions( - self, input: GetDocumentationVersionsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDocumentationVersionsInput + | _models.GetDocumentationVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentationVersionsOutput: ... + + @_overload + async def get_documentation_versions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentationVersionsInputDict], ) -> GetDocumentationVersionsOutput: """ Gets documentation versions. Args: - input: - An instance of `GetDocumentationVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1443,20 +2489,39 @@ async def get_documentation_versions( Returns: An instance of `GetDocumentationVersionsOutput`. """ + + async def get_documentation_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentationVersionsOutput: return await self._invoke( - input, _models.GET_DOCUMENTATION_VERSIONS, [], plugins + self._select_input(_models.GET_DOCUMENTATION_VERSIONS, args, kwargs), + _models.GET_DOCUMENTATION_VERSIONS, + [], + plugins, ) + @_overload + async def get_domain_name( + self, + request: _models.GetDomainNameInput | _models.GetDomainNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDomainNameOutput: ... + + @_overload async def get_domain_name( - self, input: GetDomainNameInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDomainNameInputDict], ) -> GetDomainNameOutput: """ Represents a domain name that is contained in a simpler, more intuitive URL that can be called. Args: - input: - An instance of `GetDomainNameInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1466,19 +2531,39 @@ async def get_domain_name( Returns: An instance of `GetDomainNameOutput`. """ - return await self._invoke(input, _models.GET_DOMAIN_NAME, [], plugins) + async def get_domain_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDomainNameOutput: + return await self._invoke( + self._select_input(_models.GET_DOMAIN_NAME, args, kwargs), + _models.GET_DOMAIN_NAME, + [], + plugins, + ) + + @_overload + async def get_domain_name_access_associations( + self, + request: _models.GetDomainNameAccessAssociationsInput + | _models.GetDomainNameAccessAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDomainNameAccessAssociationsOutput: ... + + @_overload async def get_domain_name_access_associations( self, - input: GetDomainNameAccessAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDomainNameAccessAssociationsInputDict], ) -> GetDomainNameAccessAssociationsOutput: """ Represents a collection on DomainNameAccessAssociations resources. Args: - input: - An instance of `GetDomainNameAccessAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1488,19 +2573,40 @@ async def get_domain_name_access_associations( Returns: An instance of `GetDomainNameAccessAssociationsOutput`. """ + + async def get_domain_name_access_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDomainNameAccessAssociationsOutput: return await self._invoke( - input, _models.GET_DOMAIN_NAME_ACCESS_ASSOCIATIONS, [], plugins + self._select_input( + _models.GET_DOMAIN_NAME_ACCESS_ASSOCIATIONS, args, kwargs + ), + _models.GET_DOMAIN_NAME_ACCESS_ASSOCIATIONS, + [], + plugins, ) + @_overload async def get_domain_names( - self, input: GetDomainNamesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDomainNamesInput | _models.GetDomainNamesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDomainNamesOutput: ... + + @_overload + async def get_domain_names( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDomainNamesInputDict], ) -> GetDomainNamesOutput: """ Represents a collection of DomainName resources. Args: - input: - An instance of `GetDomainNamesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1510,17 +2616,38 @@ async def get_domain_names( Returns: An instance of `GetDomainNamesOutput`. """ - return await self._invoke(input, _models.GET_DOMAIN_NAMES, [], plugins) + async def get_domain_names( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDomainNamesOutput: + return await self._invoke( + self._select_input(_models.GET_DOMAIN_NAMES, args, kwargs), + _models.GET_DOMAIN_NAMES, + [], + plugins, + ) + + @_overload async def get_export( - self, input: GetExportInput, plugins: list[Plugin] | None = None + self, + request: _models.GetExportInput | _models.GetExportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetExportOutput: ... + + @_overload + async def get_export( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetExportInputDict], ) -> GetExportOutput: """ Exports a deployed version of a RestApi in a specified format. Args: - input: - An instance of `GetExportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1530,18 +2657,39 @@ async def get_export( Returns: An instance of `GetExportOutput`. """ - return await self._invoke(input, _models.GET_EXPORT, [], plugins) + async def get_export( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetExportOutput: + return await self._invoke( + self._select_input(_models.GET_EXPORT, args, kwargs), + _models.GET_EXPORT, + [], + plugins, + ) + + @_overload async def get_gateway_response( - self, input: GetGatewayResponseInput, plugins: list[Plugin] | None = None + self, + request: _models.GetGatewayResponseInput | _models.GetGatewayResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayResponseOutput: ... + + @_overload + async def get_gateway_response( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayResponseInputDict], ) -> GetGatewayResponseOutput: """ Gets a GatewayResponse of a specified response type on the given RestApi. Args: - input: - An instance of `GetGatewayResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1551,10 +2699,34 @@ async def get_gateway_response( Returns: An instance of `GetGatewayResponseOutput`. """ - return await self._invoke(input, _models.GET_GATEWAY_RESPONSE, [], plugins) + async def get_gateway_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayResponseOutput: + return await self._invoke( + self._select_input(_models.GET_GATEWAY_RESPONSE, args, kwargs), + _models.GET_GATEWAY_RESPONSE, + [], + plugins, + ) + + @_overload async def get_gateway_responses( - self, input: GetGatewayResponsesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetGatewayResponsesInput + | _models.GetGatewayResponsesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayResponsesOutput: ... + + @_overload + async def get_gateway_responses( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayResponsesInputDict], ) -> GetGatewayResponsesOutput: """ Gets the GatewayResponses collection on the given RestApi. If an API @@ -1563,8 +2735,6 @@ async def get_gateway_responses( collection for the supported response types. Args: - input: - An instance of `GetGatewayResponsesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1574,17 +2744,38 @@ async def get_gateway_responses( Returns: An instance of `GetGatewayResponsesOutput`. """ - return await self._invoke(input, _models.GET_GATEWAY_RESPONSES, [], plugins) + async def get_gateway_responses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayResponsesOutput: + return await self._invoke( + self._select_input(_models.GET_GATEWAY_RESPONSES, args, kwargs), + _models.GET_GATEWAY_RESPONSES, + [], + plugins, + ) + + @_overload async def get_integration( - self, input: GetIntegrationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIntegrationInput | _models.GetIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIntegrationOutput: ... + + @_overload + async def get_integration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIntegrationInputDict], ) -> GetIntegrationOutput: """ Get the integration settings. Args: - input: - An instance of `GetIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1594,17 +2785,39 @@ async def get_integration( Returns: An instance of `GetIntegrationOutput`. """ - return await self._invoke(input, _models.GET_INTEGRATION, [], plugins) + async def get_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIntegrationOutput: + return await self._invoke( + self._select_input(_models.GET_INTEGRATION, args, kwargs), + _models.GET_INTEGRATION, + [], + plugins, + ) + + @_overload + async def get_integration_response( + self, + request: _models.GetIntegrationResponseInput + | _models.GetIntegrationResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIntegrationResponseOutput: ... + + @_overload async def get_integration_response( - self, input: GetIntegrationResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIntegrationResponseInputDict], ) -> GetIntegrationResponseOutput: """ Represents a get integration response. Args: - input: - An instance of `GetIntegrationResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1614,17 +2827,38 @@ async def get_integration_response( Returns: An instance of `GetIntegrationResponseOutput`. """ - return await self._invoke(input, _models.GET_INTEGRATION_RESPONSE, [], plugins) + async def get_integration_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIntegrationResponseOutput: + return await self._invoke( + self._select_input(_models.GET_INTEGRATION_RESPONSE, args, kwargs), + _models.GET_INTEGRATION_RESPONSE, + [], + plugins, + ) + + @_overload + async def get_method( + self, + request: _models.GetMethodInput | _models.GetMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMethodOutput: ... + + @_overload async def get_method( - self, input: GetMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMethodInputDict], ) -> GetMethodOutput: """ Describe an existing Method resource. Args: - input: - An instance of `GetMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1634,17 +2868,38 @@ async def get_method( Returns: An instance of `GetMethodOutput`. """ - return await self._invoke(input, _models.GET_METHOD, [], plugins) + async def get_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMethodOutput: + return await self._invoke( + self._select_input(_models.GET_METHOD, args, kwargs), + _models.GET_METHOD, + [], + plugins, + ) + + @_overload async def get_method_response( - self, input: GetMethodResponseInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMethodResponseInput | _models.GetMethodResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMethodResponseOutput: ... + + @_overload + async def get_method_response( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMethodResponseInputDict], ) -> GetMethodResponseOutput: """ Describes a MethodResponse resource. Args: - input: - An instance of `GetMethodResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1654,17 +2909,38 @@ async def get_method_response( Returns: An instance of `GetMethodResponseOutput`. """ - return await self._invoke(input, _models.GET_METHOD_RESPONSE, [], plugins) + async def get_method_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMethodResponseOutput: + return await self._invoke( + self._select_input(_models.GET_METHOD_RESPONSE, args, kwargs), + _models.GET_METHOD_RESPONSE, + [], + plugins, + ) + + @_overload + async def get_model( + self, + request: _models.GetModelInput | _models.GetModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelOutput: ... + + @_overload async def get_model( - self, input: GetModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelInputDict], ) -> GetModelOutput: """ Describes an existing model defined for a RestApi resource. Args: - input: - An instance of `GetModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1674,17 +2950,38 @@ async def get_model( Returns: An instance of `GetModelOutput`. """ - return await self._invoke(input, _models.GET_MODEL, [], plugins) + async def get_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelOutput: + return await self._invoke( + self._select_input(_models.GET_MODEL, args, kwargs), + _models.GET_MODEL, + [], + plugins, + ) + + @_overload async def get_models( - self, input: GetModelsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetModelsInput | _models.GetModelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelsOutput: ... + + @_overload + async def get_models( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelsInputDict], ) -> GetModelsOutput: """ Describes existing Models defined for a RestApi resource. Args: - input: - An instance of `GetModelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1694,18 +2991,39 @@ async def get_models( Returns: An instance of `GetModelsOutput`. """ - return await self._invoke(input, _models.GET_MODELS, [], plugins) + async def get_models( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelsOutput: + return await self._invoke( + self._select_input(_models.GET_MODELS, args, kwargs), + _models.GET_MODELS, + [], + plugins, + ) + + @_overload + async def get_model_template( + self, + request: _models.GetModelTemplateInput | _models.GetModelTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelTemplateOutput: ... + + @_overload async def get_model_template( - self, input: GetModelTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelTemplateInputDict], ) -> GetModelTemplateOutput: """ Generates a sample mapping template that can be used to transform a payload into the structure of a model. Args: - input: - An instance of `GetModelTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1715,17 +3033,39 @@ async def get_model_template( Returns: An instance of `GetModelTemplateOutput`. """ - return await self._invoke(input, _models.GET_MODEL_TEMPLATE, [], plugins) + async def get_model_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelTemplateOutput: + return await self._invoke( + self._select_input(_models.GET_MODEL_TEMPLATE, args, kwargs), + _models.GET_MODEL_TEMPLATE, + [], + plugins, + ) + + @_overload async def get_request_validator( - self, input: GetRequestValidatorInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRequestValidatorInput + | _models.GetRequestValidatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRequestValidatorOutput: ... + + @_overload + async def get_request_validator( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRequestValidatorInputDict], ) -> GetRequestValidatorOutput: """ Gets a RequestValidator of a given RestApi. Args: - input: - An instance of `GetRequestValidatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1735,17 +3075,39 @@ async def get_request_validator( Returns: An instance of `GetRequestValidatorOutput`. """ - return await self._invoke(input, _models.GET_REQUEST_VALIDATOR, [], plugins) + async def get_request_validator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRequestValidatorOutput: + return await self._invoke( + self._select_input(_models.GET_REQUEST_VALIDATOR, args, kwargs), + _models.GET_REQUEST_VALIDATOR, + [], + plugins, + ) + + @_overload async def get_request_validators( - self, input: GetRequestValidatorsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRequestValidatorsInput + | _models.GetRequestValidatorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRequestValidatorsOutput: ... + + @_overload + async def get_request_validators( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRequestValidatorsInputDict], ) -> GetRequestValidatorsOutput: """ Gets the RequestValidators collection of a given RestApi. Args: - input: - An instance of `GetRequestValidatorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1755,17 +3117,38 @@ async def get_request_validators( Returns: An instance of `GetRequestValidatorsOutput`. """ - return await self._invoke(input, _models.GET_REQUEST_VALIDATORS, [], plugins) + async def get_request_validators( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRequestValidatorsOutput: + return await self._invoke( + self._select_input(_models.GET_REQUEST_VALIDATORS, args, kwargs), + _models.GET_REQUEST_VALIDATORS, + [], + plugins, + ) + + @_overload + async def get_resource( + self, + request: _models.GetResourceInput | _models.GetResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourceOutput: ... + + @_overload async def get_resource( - self, input: GetResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourceInputDict], ) -> GetResourceOutput: """ Lists information about a resource. Args: - input: - An instance of `GetResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1775,17 +3158,38 @@ async def get_resource( Returns: An instance of `GetResourceOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE, [], plugins) + async def get_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourceOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE, args, kwargs), + _models.GET_RESOURCE, + [], + plugins, + ) + + @_overload async def get_resources( - self, input: GetResourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcesInput | _models.GetResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcesOutput: ... + + @_overload + async def get_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcesInputDict], ) -> GetResourcesOutput: """ Lists information about a collection of Resource resources. Args: - input: - An instance of `GetResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1795,17 +3199,38 @@ async def get_resources( Returns: An instance of `GetResourcesOutput`. """ - return await self._invoke(input, _models.GET_RESOURCES, [], plugins) + async def get_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcesOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCES, args, kwargs), + _models.GET_RESOURCES, + [], + plugins, + ) + + @_overload async def get_rest_api( - self, input: GetRestApiInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRestApiInput | _models.GetRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRestApiOutput: ... + + @_overload + async def get_rest_api( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRestApiInputDict], ) -> GetRestApiOutput: """ Lists the RestApi resource in the collection. Args: - input: - An instance of `GetRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1815,17 +3240,38 @@ async def get_rest_api( Returns: An instance of `GetRestApiOutput`. """ - return await self._invoke(input, _models.GET_REST_API, [], plugins) + async def get_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRestApiOutput: + return await self._invoke( + self._select_input(_models.GET_REST_API, args, kwargs), + _models.GET_REST_API, + [], + plugins, + ) + + @_overload + async def get_rest_apis( + self, + request: _models.GetRestApisInput | _models.GetRestApisInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRestApisOutput: ... + + @_overload async def get_rest_apis( - self, input: GetRestApisInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRestApisInputDict], ) -> GetRestApisOutput: """ Lists the RestApis resources for your collection. Args: - input: - An instance of `GetRestApisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1835,17 +3281,38 @@ async def get_rest_apis( Returns: An instance of `GetRestApisOutput`. """ - return await self._invoke(input, _models.GET_REST_APIS, [], plugins) + async def get_rest_apis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRestApisOutput: + return await self._invoke( + self._select_input(_models.GET_REST_APIS, args, kwargs), + _models.GET_REST_APIS, + [], + plugins, + ) + + @_overload async def get_sdk( - self, input: GetSdkInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSdkInput | _models.GetSdkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSdkOutput: ... + + @_overload + async def get_sdk( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSdkInputDict], ) -> GetSdkOutput: """ Generates a client SDK for a RestApi and Stage. Args: - input: - An instance of `GetSdkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1855,17 +3322,38 @@ async def get_sdk( Returns: An instance of `GetSdkOutput`. """ - return await self._invoke(input, _models.GET_SDK, [], plugins) + async def get_sdk( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSdkOutput: + return await self._invoke( + self._select_input(_models.GET_SDK, args, kwargs), + _models.GET_SDK, + [], + plugins, + ) + + @_overload + async def get_sdk_type( + self, + request: _models.GetSdkTypeInput | _models.GetSdkTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSdkTypeOutput: ... + + @_overload async def get_sdk_type( - self, input: GetSdkTypeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSdkTypeInputDict], ) -> GetSdkTypeOutput: """ Gets an SDK type. Args: - input: - An instance of `GetSdkTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1875,17 +3363,38 @@ async def get_sdk_type( Returns: An instance of `GetSdkTypeOutput`. """ - return await self._invoke(input, _models.GET_SDK_TYPE, [], plugins) + async def get_sdk_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSdkTypeOutput: + return await self._invoke( + self._select_input(_models.GET_SDK_TYPE, args, kwargs), + _models.GET_SDK_TYPE, + [], + plugins, + ) + + @_overload + async def get_sdk_types( + self, + request: _models.GetSdkTypesInput | _models.GetSdkTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSdkTypesOutput: ... + + @_overload async def get_sdk_types( - self, input: GetSdkTypesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSdkTypesInputDict], ) -> GetSdkTypesOutput: """ Gets SDK types Args: - input: - An instance of `GetSdkTypesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1895,17 +3404,38 @@ async def get_sdk_types( Returns: An instance of `GetSdkTypesOutput`. """ - return await self._invoke(input, _models.GET_SDK_TYPES, [], plugins) + async def get_sdk_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSdkTypesOutput: + return await self._invoke( + self._select_input(_models.GET_SDK_TYPES, args, kwargs), + _models.GET_SDK_TYPES, + [], + plugins, + ) + + @_overload + async def get_stage( + self, + request: _models.GetStageInput | _models.GetStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStageOutput: ... + + @_overload async def get_stage( - self, input: GetStageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStageInputDict], ) -> GetStageOutput: """ Gets information about a Stage resource. Args: - input: - An instance of `GetStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1915,17 +3445,38 @@ async def get_stage( Returns: An instance of `GetStageOutput`. """ - return await self._invoke(input, _models.GET_STAGE, [], plugins) + async def get_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStageOutput: + return await self._invoke( + self._select_input(_models.GET_STAGE, args, kwargs), + _models.GET_STAGE, + [], + plugins, + ) + + @_overload + async def get_stages( + self, + request: _models.GetStagesInput | _models.GetStagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStagesOutput: ... + + @_overload async def get_stages( - self, input: GetStagesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStagesInputDict], ) -> GetStagesOutput: """ Gets information about one or more Stage resources. Args: - input: - An instance of `GetStagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1935,17 +3486,38 @@ async def get_stages( Returns: An instance of `GetStagesOutput`. """ - return await self._invoke(input, _models.GET_STAGES, [], plugins) + async def get_stages( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStagesOutput: + return await self._invoke( + self._select_input(_models.GET_STAGES, args, kwargs), + _models.GET_STAGES, + [], + plugins, + ) + + @_overload async def get_tags( - self, input: GetTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetTagsInput | _models.GetTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTagsOutput: ... + + @_overload + async def get_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTagsInputDict], ) -> GetTagsOutput: """ Gets the Tags collection for a given resource. Args: - input: - An instance of `GetTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1955,17 +3527,38 @@ async def get_tags( Returns: An instance of `GetTagsOutput`. """ - return await self._invoke(input, _models.GET_TAGS, [], plugins) + async def get_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTagsOutput: + return await self._invoke( + self._select_input(_models.GET_TAGS, args, kwargs), + _models.GET_TAGS, + [], + plugins, + ) + + @_overload + async def get_usage( + self, + request: _models.GetUsageInput | _models.GetUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsageOutput: ... + + @_overload async def get_usage( - self, input: GetUsageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsageInputDict], ) -> GetUsageOutput: """ Gets the usage data of a usage plan in a specified time interval. Args: - input: - An instance of `GetUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1975,17 +3568,38 @@ async def get_usage( Returns: An instance of `GetUsageOutput`. """ - return await self._invoke(input, _models.GET_USAGE, [], plugins) + async def get_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsageOutput: + return await self._invoke( + self._select_input(_models.GET_USAGE, args, kwargs), + _models.GET_USAGE, + [], + plugins, + ) + + @_overload + async def get_usage_plan( + self, + request: _models.GetUsagePlanInput | _models.GetUsagePlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsagePlanOutput: ... + + @_overload async def get_usage_plan( - self, input: GetUsagePlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsagePlanInputDict], ) -> GetUsagePlanOutput: """ Gets a usage plan of a given plan identifier. Args: - input: - An instance of `GetUsagePlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1995,17 +3609,38 @@ async def get_usage_plan( Returns: An instance of `GetUsagePlanOutput`. """ - return await self._invoke(input, _models.GET_USAGE_PLAN, [], plugins) + async def get_usage_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsagePlanOutput: + return await self._invoke( + self._select_input(_models.GET_USAGE_PLAN, args, kwargs), + _models.GET_USAGE_PLAN, + [], + plugins, + ) + + @_overload + async def get_usage_plan_key( + self, + request: _models.GetUsagePlanKeyInput | _models.GetUsagePlanKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsagePlanKeyOutput: ... + + @_overload async def get_usage_plan_key( - self, input: GetUsagePlanKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsagePlanKeyInputDict], ) -> GetUsagePlanKeyOutput: """ Gets a usage plan key of a given key identifier. Args: - input: - An instance of `GetUsagePlanKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2015,18 +3650,39 @@ async def get_usage_plan_key( Returns: An instance of `GetUsagePlanKeyOutput`. """ - return await self._invoke(input, _models.GET_USAGE_PLAN_KEY, [], plugins) + async def get_usage_plan_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsagePlanKeyOutput: + return await self._invoke( + self._select_input(_models.GET_USAGE_PLAN_KEY, args, kwargs), + _models.GET_USAGE_PLAN_KEY, + [], + plugins, + ) + + @_overload + async def get_usage_plan_keys( + self, + request: _models.GetUsagePlanKeysInput | _models.GetUsagePlanKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsagePlanKeysOutput: ... + + @_overload async def get_usage_plan_keys( - self, input: GetUsagePlanKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsagePlanKeysInputDict], ) -> GetUsagePlanKeysOutput: """ Gets all the usage plan keys representing the API keys added to a specified usage plan. Args: - input: - An instance of `GetUsagePlanKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2036,17 +3692,38 @@ async def get_usage_plan_keys( Returns: An instance of `GetUsagePlanKeysOutput`. """ - return await self._invoke(input, _models.GET_USAGE_PLAN_KEYS, [], plugins) + async def get_usage_plan_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsagePlanKeysOutput: + return await self._invoke( + self._select_input(_models.GET_USAGE_PLAN_KEYS, args, kwargs), + _models.GET_USAGE_PLAN_KEYS, + [], + plugins, + ) + + @_overload + async def get_usage_plans( + self, + request: _models.GetUsagePlansInput | _models.GetUsagePlansInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsagePlansOutput: ... + + @_overload async def get_usage_plans( - self, input: GetUsagePlansInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsagePlansInputDict], ) -> GetUsagePlansOutput: """ Gets all the usage plans of the caller's account. Args: - input: - An instance of `GetUsagePlansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2056,17 +3733,38 @@ async def get_usage_plans( Returns: An instance of `GetUsagePlansOutput`. """ - return await self._invoke(input, _models.GET_USAGE_PLANS, [], plugins) + async def get_usage_plans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsagePlansOutput: + return await self._invoke( + self._select_input(_models.GET_USAGE_PLANS, args, kwargs), + _models.GET_USAGE_PLANS, + [], + plugins, + ) + + @_overload + async def get_vpc_link( + self, + request: _models.GetVpcLinkInput | _models.GetVpcLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcLinkOutput: ... + + @_overload async def get_vpc_link( - self, input: GetVpcLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpcLinkInputDict], ) -> GetVpcLinkOutput: """ Gets a specified VPC link under the caller's account in a region. Args: - input: - An instance of `GetVpcLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2076,18 +3774,39 @@ async def get_vpc_link( Returns: An instance of `GetVpcLinkOutput`. """ - return await self._invoke(input, _models.GET_VPC_LINK, [], plugins) + async def get_vpc_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcLinkOutput: + return await self._invoke( + self._select_input(_models.GET_VPC_LINK, args, kwargs), + _models.GET_VPC_LINK, + [], + plugins, + ) + + @_overload + async def get_vpc_links( + self, + request: _models.GetVpcLinksInput | _models.GetVpcLinksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcLinksOutput: ... + + @_overload async def get_vpc_links( - self, input: GetVpcLinksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpcLinksInputDict], ) -> GetVpcLinksOutput: """ Gets the VpcLinks collection under the caller's account in a selected region. Args: - input: - An instance of `GetVpcLinksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2097,17 +3816,38 @@ async def get_vpc_links( Returns: An instance of `GetVpcLinksOutput`. """ - return await self._invoke(input, _models.GET_VPC_LINKS, [], plugins) + async def get_vpc_links( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcLinksOutput: + return await self._invoke( + self._select_input(_models.GET_VPC_LINKS, args, kwargs), + _models.GET_VPC_LINKS, + [], + plugins, + ) + + @_overload async def import_api_keys( - self, input: ImportApiKeysInput, plugins: list[Plugin] | None = None + self, + request: _models.ImportApiKeysInput | _models.ImportApiKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportApiKeysOutput: ... + + @_overload + async def import_api_keys( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportApiKeysInputDict], ) -> ImportApiKeysOutput: """ Import API keys from an external source, such as a CSV-formatted file. Args: - input: - An instance of `ImportApiKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2117,17 +3857,39 @@ async def import_api_keys( Returns: An instance of `ImportApiKeysOutput`. """ - return await self._invoke(input, _models.IMPORT_API_KEYS, [], plugins) + async def import_api_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportApiKeysOutput: + return await self._invoke( + self._select_input(_models.IMPORT_API_KEYS, args, kwargs), + _models.IMPORT_API_KEYS, + [], + plugins, + ) + + @_overload + async def import_documentation_parts( + self, + request: _models.ImportDocumentationPartsInput + | _models.ImportDocumentationPartsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportDocumentationPartsOutput: ... + + @_overload async def import_documentation_parts( - self, input: ImportDocumentationPartsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportDocumentationPartsInputDict], ) -> ImportDocumentationPartsOutput: """ Imports documentation parts Args: - input: - An instance of `ImportDocumentationPartsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2137,20 +3899,39 @@ async def import_documentation_parts( Returns: An instance of `ImportDocumentationPartsOutput`. """ + + async def import_documentation_parts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportDocumentationPartsOutput: return await self._invoke( - input, _models.IMPORT_DOCUMENTATION_PARTS, [], plugins + self._select_input(_models.IMPORT_DOCUMENTATION_PARTS, args, kwargs), + _models.IMPORT_DOCUMENTATION_PARTS, + [], + plugins, ) + @_overload + async def import_rest_api( + self, + request: _models.ImportRestApiInput | _models.ImportRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportRestApiOutput: ... + + @_overload async def import_rest_api( - self, input: ImportRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportRestApiInputDict], ) -> ImportRestApiOutput: """ A feature of the API Gateway control service for creating a new API from an external API definition file. Args: - input: - An instance of `ImportRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2160,18 +3941,39 @@ async def import_rest_api( Returns: An instance of `ImportRestApiOutput`. """ - return await self._invoke(input, _models.IMPORT_REST_API, [], plugins) + async def import_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportRestApiOutput: + return await self._invoke( + self._select_input(_models.IMPORT_REST_API, args, kwargs), + _models.IMPORT_REST_API, + [], + plugins, + ) + + @_overload + async def put_gateway_response( + self, + request: _models.PutGatewayResponseInput | _models.PutGatewayResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutGatewayResponseOutput: ... + + @_overload async def put_gateway_response( - self, input: PutGatewayResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutGatewayResponseInputDict], ) -> PutGatewayResponseOutput: """ Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi. Args: - input: - An instance of `PutGatewayResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2181,17 +3983,38 @@ async def put_gateway_response( Returns: An instance of `PutGatewayResponseOutput`. """ - return await self._invoke(input, _models.PUT_GATEWAY_RESPONSE, [], plugins) + async def put_gateway_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutGatewayResponseOutput: + return await self._invoke( + self._select_input(_models.PUT_GATEWAY_RESPONSE, args, kwargs), + _models.PUT_GATEWAY_RESPONSE, + [], + plugins, + ) + + @_overload + async def put_integration( + self, + request: _models.PutIntegrationInput | _models.PutIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutIntegrationOutput: ... + + @_overload async def put_integration( - self, input: PutIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutIntegrationInputDict], ) -> PutIntegrationOutput: """ Sets up a method's integration. Args: - input: - An instance of `PutIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2201,17 +4024,39 @@ async def put_integration( Returns: An instance of `PutIntegrationOutput`. """ - return await self._invoke(input, _models.PUT_INTEGRATION, [], plugins) + async def put_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutIntegrationOutput: + return await self._invoke( + self._select_input(_models.PUT_INTEGRATION, args, kwargs), + _models.PUT_INTEGRATION, + [], + plugins, + ) + + @_overload + async def put_integration_response( + self, + request: _models.PutIntegrationResponseInput + | _models.PutIntegrationResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutIntegrationResponseOutput: ... + + @_overload async def put_integration_response( - self, input: PutIntegrationResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutIntegrationResponseInputDict], ) -> PutIntegrationResponseOutput: """ Represents a put integration. Args: - input: - An instance of `PutIntegrationResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2221,17 +4066,38 @@ async def put_integration_response( Returns: An instance of `PutIntegrationResponseOutput`. """ - return await self._invoke(input, _models.PUT_INTEGRATION_RESPONSE, [], plugins) + async def put_integration_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutIntegrationResponseOutput: + return await self._invoke( + self._select_input(_models.PUT_INTEGRATION_RESPONSE, args, kwargs), + _models.PUT_INTEGRATION_RESPONSE, + [], + plugins, + ) + + @_overload async def put_method( - self, input: PutMethodInput, plugins: list[Plugin] | None = None + self, + request: _models.PutMethodInput | _models.PutMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutMethodOutput: ... + + @_overload + async def put_method( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutMethodInputDict], ) -> PutMethodOutput: """ Add a method to an existing Resource resource. Args: - input: - An instance of `PutMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2241,17 +4107,38 @@ async def put_method( Returns: An instance of `PutMethodOutput`. """ - return await self._invoke(input, _models.PUT_METHOD, [], plugins) + async def put_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutMethodOutput: + return await self._invoke( + self._select_input(_models.PUT_METHOD, args, kwargs), + _models.PUT_METHOD, + [], + plugins, + ) + + @_overload + async def put_method_response( + self, + request: _models.PutMethodResponseInput | _models.PutMethodResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutMethodResponseOutput: ... + + @_overload async def put_method_response( - self, input: PutMethodResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutMethodResponseInputDict], ) -> PutMethodResponseOutput: """ Adds a MethodResponse to an existing Method resource. Args: - input: - An instance of `PutMethodResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2261,10 +4148,33 @@ async def put_method_response( Returns: An instance of `PutMethodResponseOutput`. """ - return await self._invoke(input, _models.PUT_METHOD_RESPONSE, [], plugins) + async def put_method_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutMethodResponseOutput: + return await self._invoke( + self._select_input(_models.PUT_METHOD_RESPONSE, args, kwargs), + _models.PUT_METHOD_RESPONSE, + [], + plugins, + ) + + @_overload + async def put_rest_api( + self, + request: _models.PutRestApiInput | _models.PutRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRestApiOutput: ... + + @_overload async def put_rest_api( - self, input: PutRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRestApiInputDict], ) -> PutRestApiOutput: """ A feature of the API Gateway control service for updating an existing @@ -2273,8 +4183,6 @@ async def put_rest_api( overwriting the existing API. Args: - input: - An instance of `PutRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2284,12 +4192,34 @@ async def put_rest_api( Returns: An instance of `PutRestApiOutput`. """ - return await self._invoke(input, _models.PUT_REST_API, [], plugins) + async def put_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRestApiOutput: + return await self._invoke( + self._select_input(_models.PUT_REST_API, args, kwargs), + _models.PUT_REST_API, + [], + plugins, + ) + + @_overload + async def reject_domain_name_access_association( + self, + request: _models.RejectDomainNameAccessAssociationInput + | _models.RejectDomainNameAccessAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectDomainNameAccessAssociationOutput: ... + + @_overload async def reject_domain_name_access_association( self, - input: RejectDomainNameAccessAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectDomainNameAccessAssociationInputDict], ) -> RejectDomainNameAccessAssociationOutput: """ Rejects a domain name access association with a private custom domain @@ -2301,8 +4231,6 @@ async def reject_domain_name_access_association( account, use the DeleteDomainNameAccessAssociation operation. Args: - input: - An instance of `RejectDomainNameAccessAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2312,19 +4240,40 @@ async def reject_domain_name_access_association( Returns: An instance of `RejectDomainNameAccessAssociationOutput`. """ + + async def reject_domain_name_access_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectDomainNameAccessAssociationOutput: return await self._invoke( - input, _models.REJECT_DOMAIN_NAME_ACCESS_ASSOCIATION, [], plugins + self._select_input( + _models.REJECT_DOMAIN_NAME_ACCESS_ASSOCIATION, args, kwargs + ), + _models.REJECT_DOMAIN_NAME_ACCESS_ASSOCIATION, + [], + plugins, ) + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + async def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds or updates a tag on a given resource. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2334,18 +4283,40 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def test_invoke_authorizer( + self, + request: _models.TestInvokeAuthorizerInput + | _models.TestInvokeAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestInvokeAuthorizerOutput: ... + + @_overload async def test_invoke_authorizer( - self, input: TestInvokeAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestInvokeAuthorizerInputDict], ) -> TestInvokeAuthorizerOutput: """ Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body. Args: - input: - An instance of `TestInvokeAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2355,18 +4326,39 @@ async def test_invoke_authorizer( Returns: An instance of `TestInvokeAuthorizerOutput`. """ - return await self._invoke(input, _models.TEST_INVOKE_AUTHORIZER, [], plugins) + async def test_invoke_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestInvokeAuthorizerOutput: + return await self._invoke( + self._select_input(_models.TEST_INVOKE_AUTHORIZER, args, kwargs), + _models.TEST_INVOKE_AUTHORIZER, + [], + plugins, + ) + + @_overload + async def test_invoke_method( + self, + request: _models.TestInvokeMethodInput | _models.TestInvokeMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestInvokeMethodOutput: ... + + @_overload async def test_invoke_method( - self, input: TestInvokeMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestInvokeMethodInputDict], ) -> TestInvokeMethodOutput: """ Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body. Args: - input: - An instance of `TestInvokeMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2376,17 +4368,38 @@ async def test_invoke_method( Returns: An instance of `TestInvokeMethodOutput`. """ - return await self._invoke(input, _models.TEST_INVOKE_METHOD, [], plugins) + async def test_invoke_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestInvokeMethodOutput: + return await self._invoke( + self._select_input(_models.TEST_INVOKE_METHOD, args, kwargs), + _models.TEST_INVOKE_METHOD, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes a tag from a given resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2396,17 +4409,38 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_account( + self, + request: _models.UpdateAccountInput | _models.UpdateAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAccountOutput: ... + + @_overload async def update_account( - self, input: UpdateAccountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAccountInputDict], ) -> UpdateAccountOutput: """ Changes information about the current Account resource. Args: - input: - An instance of `UpdateAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2416,17 +4450,38 @@ async def update_account( Returns: An instance of `UpdateAccountOutput`. """ - return await self._invoke(input, _models.UPDATE_ACCOUNT, [], plugins) + async def update_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAccountOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ACCOUNT, args, kwargs), + _models.UPDATE_ACCOUNT, + [], + plugins, + ) + + @_overload + async def update_api_key( + self, + request: _models.UpdateApiKeyInput | _models.UpdateApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateApiKeyOutput: ... + + @_overload async def update_api_key( - self, input: UpdateApiKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateApiKeyInputDict], ) -> UpdateApiKeyOutput: """ Changes information about an ApiKey resource. Args: - input: - An instance of `UpdateApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2436,17 +4491,38 @@ async def update_api_key( Returns: An instance of `UpdateApiKeyOutput`. """ - return await self._invoke(input, _models.UPDATE_API_KEY, [], plugins) + async def update_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateApiKeyOutput: + return await self._invoke( + self._select_input(_models.UPDATE_API_KEY, args, kwargs), + _models.UPDATE_API_KEY, + [], + plugins, + ) + + @_overload + async def update_authorizer( + self, + request: _models.UpdateAuthorizerInput | _models.UpdateAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAuthorizerOutput: ... + + @_overload async def update_authorizer( - self, input: UpdateAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAuthorizerInputDict], ) -> UpdateAuthorizerOutput: """ Updates an existing Authorizer resource. Args: - input: - An instance of `UpdateAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2456,17 +4532,39 @@ async def update_authorizer( Returns: An instance of `UpdateAuthorizerOutput`. """ - return await self._invoke(input, _models.UPDATE_AUTHORIZER, [], plugins) + async def update_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAuthorizerOutput: + return await self._invoke( + self._select_input(_models.UPDATE_AUTHORIZER, args, kwargs), + _models.UPDATE_AUTHORIZER, + [], + plugins, + ) + + @_overload + async def update_base_path_mapping( + self, + request: _models.UpdateBasePathMappingInput + | _models.UpdateBasePathMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBasePathMappingOutput: ... + + @_overload async def update_base_path_mapping( - self, input: UpdateBasePathMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateBasePathMappingInputDict], ) -> UpdateBasePathMappingOutput: """ Changes information about the BasePathMapping resource. Args: - input: - An instance of `UpdateBasePathMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2476,17 +4574,39 @@ async def update_base_path_mapping( Returns: An instance of `UpdateBasePathMappingOutput`. """ - return await self._invoke(input, _models.UPDATE_BASE_PATH_MAPPING, [], plugins) + async def update_base_path_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBasePathMappingOutput: + return await self._invoke( + self._select_input(_models.UPDATE_BASE_PATH_MAPPING, args, kwargs), + _models.UPDATE_BASE_PATH_MAPPING, + [], + plugins, + ) + + @_overload async def update_client_certificate( - self, input: UpdateClientCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateClientCertificateInput + | _models.UpdateClientCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateClientCertificateOutput: ... + + @_overload + async def update_client_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateClientCertificateInputDict], ) -> UpdateClientCertificateOutput: """ Changes information about an ClientCertificate resource. Args: - input: - An instance of `UpdateClientCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2496,17 +4616,38 @@ async def update_client_certificate( Returns: An instance of `UpdateClientCertificateOutput`. """ - return await self._invoke(input, _models.UPDATE_CLIENT_CERTIFICATE, [], plugins) + async def update_client_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateClientCertificateOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CLIENT_CERTIFICATE, args, kwargs), + _models.UPDATE_CLIENT_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def update_deployment( + self, + request: _models.UpdateDeploymentInput | _models.UpdateDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDeploymentOutput: ... + + @_overload async def update_deployment( - self, input: UpdateDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDeploymentInputDict], ) -> UpdateDeploymentOutput: """ Changes information about a Deployment resource. Args: - input: - An instance of `UpdateDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2516,17 +4657,39 @@ async def update_deployment( Returns: An instance of `UpdateDeploymentOutput`. """ - return await self._invoke(input, _models.UPDATE_DEPLOYMENT, [], plugins) + async def update_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDeploymentOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DEPLOYMENT, args, kwargs), + _models.UPDATE_DEPLOYMENT, + [], + plugins, + ) + + @_overload + async def update_documentation_part( + self, + request: _models.UpdateDocumentationPartInput + | _models.UpdateDocumentationPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDocumentationPartOutput: ... + + @_overload async def update_documentation_part( - self, input: UpdateDocumentationPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDocumentationPartInputDict], ) -> UpdateDocumentationPartOutput: """ Updates a documentation part. Args: - input: - An instance of `UpdateDocumentationPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2536,19 +4699,39 @@ async def update_documentation_part( Returns: An instance of `UpdateDocumentationPartOutput`. """ - return await self._invoke(input, _models.UPDATE_DOCUMENTATION_PART, [], plugins) + async def update_documentation_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDocumentationPartOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DOCUMENTATION_PART, args, kwargs), + _models.UPDATE_DOCUMENTATION_PART, + [], + plugins, + ) + + @_overload + async def update_documentation_version( + self, + request: _models.UpdateDocumentationVersionInput + | _models.UpdateDocumentationVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDocumentationVersionOutput: ... + + @_overload async def update_documentation_version( self, - input: UpdateDocumentationVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDocumentationVersionInputDict], ) -> UpdateDocumentationVersionOutput: """ Updates a documentation version. Args: - input: - An instance of `UpdateDocumentationVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2558,19 +4741,38 @@ async def update_documentation_version( Returns: An instance of `UpdateDocumentationVersionOutput`. """ + + async def update_documentation_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDocumentationVersionOutput: return await self._invoke( - input, _models.UPDATE_DOCUMENTATION_VERSION, [], plugins + self._select_input(_models.UPDATE_DOCUMENTATION_VERSION, args, kwargs), + _models.UPDATE_DOCUMENTATION_VERSION, + [], + plugins, ) + @_overload async def update_domain_name( - self, input: UpdateDomainNameInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateDomainNameInput | _models.UpdateDomainNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDomainNameOutput: ... + + @_overload + async def update_domain_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDomainNameInputDict], ) -> UpdateDomainNameOutput: """ Changes information about the DomainName resource. Args: - input: - An instance of `UpdateDomainNameInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2580,18 +4782,40 @@ async def update_domain_name( Returns: An instance of `UpdateDomainNameOutput`. """ - return await self._invoke(input, _models.UPDATE_DOMAIN_NAME, [], plugins) + async def update_domain_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDomainNameOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DOMAIN_NAME, args, kwargs), + _models.UPDATE_DOMAIN_NAME, + [], + plugins, + ) + + @_overload + async def update_gateway_response( + self, + request: _models.UpdateGatewayResponseInput + | _models.UpdateGatewayResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayResponseOutput: ... + + @_overload async def update_gateway_response( - self, input: UpdateGatewayResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayResponseInputDict], ) -> UpdateGatewayResponseOutput: """ Updates a GatewayResponse of a specified response type on the given RestApi. Args: - input: - An instance of `UpdateGatewayResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2601,17 +4825,38 @@ async def update_gateway_response( Returns: An instance of `UpdateGatewayResponseOutput`. """ - return await self._invoke(input, _models.UPDATE_GATEWAY_RESPONSE, [], plugins) + async def update_gateway_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayResponseOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GATEWAY_RESPONSE, args, kwargs), + _models.UPDATE_GATEWAY_RESPONSE, + [], + plugins, + ) + + @_overload + async def update_integration( + self, + request: _models.UpdateIntegrationInput | _models.UpdateIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIntegrationOutput: ... + + @_overload async def update_integration( - self, input: UpdateIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIntegrationInputDict], ) -> UpdateIntegrationOutput: """ Represents an update integration. Args: - input: - An instance of `UpdateIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2621,17 +4866,39 @@ async def update_integration( Returns: An instance of `UpdateIntegrationOutput`. """ - return await self._invoke(input, _models.UPDATE_INTEGRATION, [], plugins) + async def update_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIntegrationOutput: + return await self._invoke( + self._select_input(_models.UPDATE_INTEGRATION, args, kwargs), + _models.UPDATE_INTEGRATION, + [], + plugins, + ) + + @_overload + async def update_integration_response( + self, + request: _models.UpdateIntegrationResponseInput + | _models.UpdateIntegrationResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIntegrationResponseOutput: ... + + @_overload async def update_integration_response( - self, input: UpdateIntegrationResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIntegrationResponseInputDict], ) -> UpdateIntegrationResponseOutput: """ Represents an update integration response. Args: - input: - An instance of `UpdateIntegrationResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2641,19 +4908,38 @@ async def update_integration_response( Returns: An instance of `UpdateIntegrationResponseOutput`. """ + + async def update_integration_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIntegrationResponseOutput: return await self._invoke( - input, _models.UPDATE_INTEGRATION_RESPONSE, [], plugins + self._select_input(_models.UPDATE_INTEGRATION_RESPONSE, args, kwargs), + _models.UPDATE_INTEGRATION_RESPONSE, + [], + plugins, ) + @_overload + async def update_method( + self, + request: _models.UpdateMethodInput | _models.UpdateMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMethodOutput: ... + + @_overload async def update_method( - self, input: UpdateMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMethodInputDict], ) -> UpdateMethodOutput: """ Updates an existing Method resource. Args: - input: - An instance of `UpdateMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2663,17 +4949,39 @@ async def update_method( Returns: An instance of `UpdateMethodOutput`. """ - return await self._invoke(input, _models.UPDATE_METHOD, [], plugins) + async def update_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMethodOutput: + return await self._invoke( + self._select_input(_models.UPDATE_METHOD, args, kwargs), + _models.UPDATE_METHOD, + [], + plugins, + ) + + @_overload + async def update_method_response( + self, + request: _models.UpdateMethodResponseInput + | _models.UpdateMethodResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMethodResponseOutput: ... + + @_overload async def update_method_response( - self, input: UpdateMethodResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMethodResponseInputDict], ) -> UpdateMethodResponseOutput: """ Updates an existing MethodResponse resource. Args: - input: - An instance of `UpdateMethodResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2683,18 +4991,39 @@ async def update_method_response( Returns: An instance of `UpdateMethodResponseOutput`. """ - return await self._invoke(input, _models.UPDATE_METHOD_RESPONSE, [], plugins) + async def update_method_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMethodResponseOutput: + return await self._invoke( + self._select_input(_models.UPDATE_METHOD_RESPONSE, args, kwargs), + _models.UPDATE_METHOD_RESPONSE, + [], + plugins, + ) + + @_overload async def update_model( - self, input: UpdateModelInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateModelInput | _models.UpdateModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateModelOutput: ... + + @_overload + async def update_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateModelInputDict], ) -> UpdateModelOutput: """ Changes information about a model. The maximum size of the model is 400 KB. Args: - input: - An instance of `UpdateModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2704,17 +5033,39 @@ async def update_model( Returns: An instance of `UpdateModelOutput`. """ - return await self._invoke(input, _models.UPDATE_MODEL, [], plugins) + async def update_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateModelOutput: + return await self._invoke( + self._select_input(_models.UPDATE_MODEL, args, kwargs), + _models.UPDATE_MODEL, + [], + plugins, + ) + + @_overload + async def update_request_validator( + self, + request: _models.UpdateRequestValidatorInput + | _models.UpdateRequestValidatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRequestValidatorOutput: ... + + @_overload async def update_request_validator( - self, input: UpdateRequestValidatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRequestValidatorInputDict], ) -> UpdateRequestValidatorOutput: """ Updates a RequestValidator of a given RestApi. Args: - input: - An instance of `UpdateRequestValidatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2724,17 +5075,38 @@ async def update_request_validator( Returns: An instance of `UpdateRequestValidatorOutput`. """ - return await self._invoke(input, _models.UPDATE_REQUEST_VALIDATOR, [], plugins) + async def update_request_validator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRequestValidatorOutput: + return await self._invoke( + self._select_input(_models.UPDATE_REQUEST_VALIDATOR, args, kwargs), + _models.UPDATE_REQUEST_VALIDATOR, + [], + plugins, + ) + + @_overload + async def update_resource( + self, + request: _models.UpdateResourceInput | _models.UpdateResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateResourceOutput: ... + + @_overload async def update_resource( - self, input: UpdateResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateResourceInputDict], ) -> UpdateResourceOutput: """ Changes information about a Resource resource. Args: - input: - An instance of `UpdateResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2744,17 +5116,38 @@ async def update_resource( Returns: An instance of `UpdateResourceOutput`. """ - return await self._invoke(input, _models.UPDATE_RESOURCE, [], plugins) + async def update_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateResourceOutput: + return await self._invoke( + self._select_input(_models.UPDATE_RESOURCE, args, kwargs), + _models.UPDATE_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_rest_api( + self, + request: _models.UpdateRestApiInput | _models.UpdateRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRestApiOutput: ... + + @_overload async def update_rest_api( - self, input: UpdateRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRestApiInputDict], ) -> UpdateRestApiOutput: """ Changes information about the specified API. Args: - input: - An instance of `UpdateRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2764,17 +5157,38 @@ async def update_rest_api( Returns: An instance of `UpdateRestApiOutput`. """ - return await self._invoke(input, _models.UPDATE_REST_API, [], plugins) + async def update_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRestApiOutput: + return await self._invoke( + self._select_input(_models.UPDATE_REST_API, args, kwargs), + _models.UPDATE_REST_API, + [], + plugins, + ) + + @_overload + async def update_stage( + self, + request: _models.UpdateStageInput | _models.UpdateStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStageOutput: ... + + @_overload async def update_stage( - self, input: UpdateStageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStageInputDict], ) -> UpdateStageOutput: """ Changes information about a Stage resource. Args: - input: - An instance of `UpdateStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2784,18 +5198,39 @@ async def update_stage( Returns: An instance of `UpdateStageOutput`. """ - return await self._invoke(input, _models.UPDATE_STAGE, [], plugins) + async def update_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStageOutput: + return await self._invoke( + self._select_input(_models.UPDATE_STAGE, args, kwargs), + _models.UPDATE_STAGE, + [], + plugins, + ) + + @_overload + async def update_usage( + self, + request: _models.UpdateUsageInput | _models.UpdateUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateUsageOutput: ... + + @_overload async def update_usage( - self, input: UpdateUsageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateUsageInputDict], ) -> UpdateUsageOutput: """ Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key. Args: - input: - An instance of `UpdateUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2805,17 +5240,38 @@ async def update_usage( Returns: An instance of `UpdateUsageOutput`. """ - return await self._invoke(input, _models.UPDATE_USAGE, [], plugins) + async def update_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateUsageOutput: + return await self._invoke( + self._select_input(_models.UPDATE_USAGE, args, kwargs), + _models.UPDATE_USAGE, + [], + plugins, + ) + + @_overload + async def update_usage_plan( + self, + request: _models.UpdateUsagePlanInput | _models.UpdateUsagePlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateUsagePlanOutput: ... + + @_overload async def update_usage_plan( - self, input: UpdateUsagePlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateUsagePlanInputDict], ) -> UpdateUsagePlanOutput: """ Updates a usage plan of a given plan Id. Args: - input: - An instance of `UpdateUsagePlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2825,17 +5281,38 @@ async def update_usage_plan( Returns: An instance of `UpdateUsagePlanOutput`. """ - return await self._invoke(input, _models.UPDATE_USAGE_PLAN, [], plugins) + async def update_usage_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateUsagePlanOutput: + return await self._invoke( + self._select_input(_models.UPDATE_USAGE_PLAN, args, kwargs), + _models.UPDATE_USAGE_PLAN, + [], + plugins, + ) + + @_overload + async def update_vpc_link( + self, + request: _models.UpdateVpcLinkInput | _models.UpdateVpcLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateVpcLinkOutput: ... + + @_overload async def update_vpc_link( - self, input: UpdateVpcLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateVpcLinkInputDict], ) -> UpdateVpcLinkOutput: """ Updates an existing VpcLink of a specified identifier. Args: - input: - An instance of `UpdateVpcLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2845,7 +5322,16 @@ async def update_vpc_link( Returns: An instance of `UpdateVpcLinkOutput`. """ - return await self._invoke(input, _models.UPDATE_VPC_LINK, [], plugins) + + async def update_vpc_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateVpcLinkOutput: + return await self._invoke( + self._select_input(_models.UPDATE_VPC_LINK, args, kwargs), + _models.UPDATE_VPC_LINK, + [], + plugins, + ) async def _new_config(self) -> AsyncAPIGatewayConfig: return await AsyncAPIGatewayConfig.resolve() diff --git a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/client.py b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/client.py index 8ecf1181f..8ad01fa5c 100644 --- a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/client.py +++ b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -21,253 +21,129 @@ if TYPE_CHECKING: from .models import ( - CreateApiKeyInput, CreateApiKeyOutput, - CreateAuthorizerInput, CreateAuthorizerOutput, - CreateBasePathMappingInput, CreateBasePathMappingOutput, - CreateDeploymentInput, CreateDeploymentOutput, - CreateDocumentationPartInput, CreateDocumentationPartOutput, - CreateDocumentationVersionInput, CreateDocumentationVersionOutput, - CreateDomainNameAccessAssociationInput, CreateDomainNameAccessAssociationOutput, - CreateDomainNameInput, CreateDomainNameOutput, - CreateModelInput, CreateModelOutput, - CreateRequestValidatorInput, CreateRequestValidatorOutput, - CreateResourceInput, CreateResourceOutput, - CreateRestApiInput, CreateRestApiOutput, - CreateStageInput, CreateStageOutput, - CreateUsagePlanInput, - CreateUsagePlanKeyInput, CreateUsagePlanKeyOutput, CreateUsagePlanOutput, - CreateVpcLinkInput, CreateVpcLinkOutput, - DeleteApiKeyInput, DeleteApiKeyOutput, - DeleteAuthorizerInput, DeleteAuthorizerOutput, - DeleteBasePathMappingInput, DeleteBasePathMappingOutput, - DeleteClientCertificateInput, DeleteClientCertificateOutput, - DeleteDeploymentInput, DeleteDeploymentOutput, - DeleteDocumentationPartInput, DeleteDocumentationPartOutput, - DeleteDocumentationVersionInput, DeleteDocumentationVersionOutput, - DeleteDomainNameAccessAssociationInput, DeleteDomainNameAccessAssociationOutput, - DeleteDomainNameInput, DeleteDomainNameOutput, - DeleteGatewayResponseInput, DeleteGatewayResponseOutput, - DeleteIntegrationInput, DeleteIntegrationOutput, - DeleteIntegrationResponseInput, DeleteIntegrationResponseOutput, - DeleteMethodInput, DeleteMethodOutput, - DeleteMethodResponseInput, DeleteMethodResponseOutput, - DeleteModelInput, DeleteModelOutput, - DeleteRequestValidatorInput, DeleteRequestValidatorOutput, - DeleteResourceInput, DeleteResourceOutput, - DeleteRestApiInput, DeleteRestApiOutput, - DeleteStageInput, DeleteStageOutput, - DeleteUsagePlanInput, - DeleteUsagePlanKeyInput, DeleteUsagePlanKeyOutput, DeleteUsagePlanOutput, - DeleteVpcLinkInput, DeleteVpcLinkOutput, - FlushStageAuthorizersCacheInput, FlushStageAuthorizersCacheOutput, - FlushStageCacheInput, FlushStageCacheOutput, - GenerateClientCertificateInput, GenerateClientCertificateOutput, - GetAccountInput, GetAccountOutput, - GetApiKeyInput, GetApiKeyOutput, - GetApiKeysInput, GetApiKeysOutput, - GetAuthorizerInput, GetAuthorizerOutput, - GetAuthorizersInput, GetAuthorizersOutput, - GetBasePathMappingInput, GetBasePathMappingOutput, - GetBasePathMappingsInput, GetBasePathMappingsOutput, - GetClientCertificateInput, GetClientCertificateOutput, - GetClientCertificatesInput, GetClientCertificatesOutput, - GetDeploymentInput, GetDeploymentOutput, - GetDeploymentsInput, GetDeploymentsOutput, - GetDocumentationPartInput, GetDocumentationPartOutput, - GetDocumentationPartsInput, GetDocumentationPartsOutput, - GetDocumentationVersionInput, GetDocumentationVersionOutput, - GetDocumentationVersionsInput, GetDocumentationVersionsOutput, - GetDomainNameAccessAssociationsInput, GetDomainNameAccessAssociationsOutput, - GetDomainNameInput, GetDomainNameOutput, - GetDomainNamesInput, GetDomainNamesOutput, - GetExportInput, GetExportOutput, - GetGatewayResponseInput, GetGatewayResponseOutput, - GetGatewayResponsesInput, GetGatewayResponsesOutput, - GetIntegrationInput, GetIntegrationOutput, - GetIntegrationResponseInput, GetIntegrationResponseOutput, - GetMethodInput, GetMethodOutput, - GetMethodResponseInput, GetMethodResponseOutput, - GetModelInput, GetModelOutput, - GetModelTemplateInput, GetModelTemplateOutput, - GetModelsInput, GetModelsOutput, - GetRequestValidatorInput, GetRequestValidatorOutput, - GetRequestValidatorsInput, GetRequestValidatorsOutput, - GetResourceInput, GetResourceOutput, - GetResourcesInput, GetResourcesOutput, - GetRestApiInput, GetRestApiOutput, - GetRestApisInput, GetRestApisOutput, - GetSdkInput, GetSdkOutput, - GetSdkTypeInput, GetSdkTypeOutput, - GetSdkTypesInput, GetSdkTypesOutput, - GetStageInput, GetStageOutput, - GetStagesInput, GetStagesOutput, - GetTagsInput, GetTagsOutput, - GetUsageInput, GetUsageOutput, - GetUsagePlanInput, - GetUsagePlanKeyInput, GetUsagePlanKeyOutput, - GetUsagePlanKeysInput, GetUsagePlanKeysOutput, GetUsagePlanOutput, - GetUsagePlansInput, GetUsagePlansOutput, - GetVpcLinkInput, GetVpcLinkOutput, - GetVpcLinksInput, GetVpcLinksOutput, - ImportApiKeysInput, ImportApiKeysOutput, - ImportDocumentationPartsInput, ImportDocumentationPartsOutput, - ImportRestApiInput, ImportRestApiOutput, - PutGatewayResponseInput, PutGatewayResponseOutput, - PutIntegrationInput, PutIntegrationOutput, - PutIntegrationResponseInput, PutIntegrationResponseOutput, - PutMethodInput, PutMethodOutput, - PutMethodResponseInput, PutMethodResponseOutput, - PutRestApiInput, PutRestApiOutput, - RejectDomainNameAccessAssociationInput, RejectDomainNameAccessAssociationOutput, - TagResourceInput, TagResourceOutput, - TestInvokeAuthorizerInput, TestInvokeAuthorizerOutput, - TestInvokeMethodInput, TestInvokeMethodOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAccountInput, UpdateAccountOutput, - UpdateApiKeyInput, UpdateApiKeyOutput, - UpdateAuthorizerInput, UpdateAuthorizerOutput, - UpdateBasePathMappingInput, UpdateBasePathMappingOutput, - UpdateClientCertificateInput, UpdateClientCertificateOutput, - UpdateDeploymentInput, UpdateDeploymentOutput, - UpdateDocumentationPartInput, UpdateDocumentationPartOutput, - UpdateDocumentationVersionInput, UpdateDocumentationVersionOutput, - UpdateDomainNameInput, UpdateDomainNameOutput, - UpdateGatewayResponseInput, UpdateGatewayResponseOutput, - UpdateIntegrationInput, UpdateIntegrationOutput, - UpdateIntegrationResponseInput, UpdateIntegrationResponseOutput, - UpdateMethodInput, UpdateMethodOutput, - UpdateMethodResponseInput, UpdateMethodResponseOutput, - UpdateModelInput, UpdateModelOutput, - UpdateRequestValidatorInput, UpdateRequestValidatorOutput, - UpdateResourceInput, UpdateResourceOutput, - UpdateRestApiInput, UpdateRestApiOutput, - UpdateStageInput, UpdateStageOutput, - UpdateUsageInput, UpdateUsageOutput, - UpdateUsagePlanInput, UpdateUsagePlanOutput, - UpdateVpcLinkInput, UpdateVpcLinkOutput, ) @@ -284,19 +160,29 @@ class APIGatewayClient(Client[APIGatewayConfig]): outside of AWS. """ - _client_plugins = (accept_header_plugin, aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, accept_header_plugin, aws_user_agent_plugin) + @_overload def create_api_key( self, - input: CreateApiKeyInput | None = None, + request: _models.CreateApiKeyInput | _models.CreateApiKeyInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateApiKeyOutput: ... + + @_overload + def create_api_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateApiKeyInputDict], ) -> CreateApiKeyOutput: """ Create an ApiKey resource. Args: - input: - An instance of `CreateApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -306,17 +192,38 @@ def create_api_key( Returns: An instance of `CreateApiKeyOutput`. """ - return self._invoke(input, _models.CREATE_API_KEY, [], plugins) + def create_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateApiKeyOutput: + return self._invoke( + self._select_input(_models.CREATE_API_KEY, args, kwargs), + _models.CREATE_API_KEY, + [], + plugins, + ) + + @_overload + def create_authorizer( + self, + request: _models.CreateAuthorizerInput | _models.CreateAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAuthorizerOutput: ... + + @_overload def create_authorizer( - self, input: CreateAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAuthorizerInputDict], ) -> CreateAuthorizerOutput: """ Adds a new Authorizer resource to an existing RestApi resource. Args: - input: - An instance of `CreateAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -326,17 +233,39 @@ def create_authorizer( Returns: An instance of `CreateAuthorizerOutput`. """ - return self._invoke(input, _models.CREATE_AUTHORIZER, [], plugins) + def create_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAuthorizerOutput: + return self._invoke( + self._select_input(_models.CREATE_AUTHORIZER, args, kwargs), + _models.CREATE_AUTHORIZER, + [], + plugins, + ) + + @_overload + def create_base_path_mapping( + self, + request: _models.CreateBasePathMappingInput + | _models.CreateBasePathMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBasePathMappingOutput: ... + + @_overload def create_base_path_mapping( - self, input: CreateBasePathMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBasePathMappingInputDict], ) -> CreateBasePathMappingOutput: """ Creates a new BasePathMapping resource. Args: - input: - An instance of `CreateBasePathMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -346,18 +275,39 @@ def create_base_path_mapping( Returns: An instance of `CreateBasePathMappingOutput`. """ - return self._invoke(input, _models.CREATE_BASE_PATH_MAPPING, [], plugins) + def create_base_path_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBasePathMappingOutput: + return self._invoke( + self._select_input(_models.CREATE_BASE_PATH_MAPPING, args, kwargs), + _models.CREATE_BASE_PATH_MAPPING, + [], + plugins, + ) + + @_overload + def create_deployment( + self, + request: _models.CreateDeploymentInput | _models.CreateDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDeploymentOutput: ... + + @_overload def create_deployment( - self, input: CreateDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDeploymentInputDict], ) -> CreateDeploymentOutput: """ Creates a Deployment resource, which makes a specified RestApi callable over the internet. Args: - input: - An instance of `CreateDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -367,17 +317,39 @@ def create_deployment( Returns: An instance of `CreateDeploymentOutput`. """ - return self._invoke(input, _models.CREATE_DEPLOYMENT, [], plugins) + def create_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDeploymentOutput: + return self._invoke( + self._select_input(_models.CREATE_DEPLOYMENT, args, kwargs), + _models.CREATE_DEPLOYMENT, + [], + plugins, + ) + + @_overload + def create_documentation_part( + self, + request: _models.CreateDocumentationPartInput + | _models.CreateDocumentationPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDocumentationPartOutput: ... + + @_overload def create_documentation_part( - self, input: CreateDocumentationPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDocumentationPartInputDict], ) -> CreateDocumentationPartOutput: """ Creates a documentation part. Args: - input: - An instance of `CreateDocumentationPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -387,19 +359,39 @@ def create_documentation_part( Returns: An instance of `CreateDocumentationPartOutput`. """ - return self._invoke(input, _models.CREATE_DOCUMENTATION_PART, [], plugins) + def create_documentation_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDocumentationPartOutput: + return self._invoke( + self._select_input(_models.CREATE_DOCUMENTATION_PART, args, kwargs), + _models.CREATE_DOCUMENTATION_PART, + [], + plugins, + ) + + @_overload + def create_documentation_version( + self, + request: _models.CreateDocumentationVersionInput + | _models.CreateDocumentationVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDocumentationVersionOutput: ... + + @_overload def create_documentation_version( self, - input: CreateDocumentationVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDocumentationVersionInputDict], ) -> CreateDocumentationVersionOutput: """ Creates a documentation version Args: - input: - An instance of `CreateDocumentationVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -409,17 +401,38 @@ def create_documentation_version( Returns: An instance of `CreateDocumentationVersionOutput`. """ - return self._invoke(input, _models.CREATE_DOCUMENTATION_VERSION, [], plugins) + def create_documentation_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDocumentationVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_DOCUMENTATION_VERSION, args, kwargs), + _models.CREATE_DOCUMENTATION_VERSION, + [], + plugins, + ) + + @_overload + def create_domain_name( + self, + request: _models.CreateDomainNameInput | _models.CreateDomainNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDomainNameOutput: ... + + @_overload def create_domain_name( - self, input: CreateDomainNameInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDomainNameInputDict], ) -> CreateDomainNameOutput: """ Creates a new domain name. Args: - input: - An instance of `CreateDomainNameInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -429,20 +442,40 @@ def create_domain_name( Returns: An instance of `CreateDomainNameOutput`. """ - return self._invoke(input, _models.CREATE_DOMAIN_NAME, [], plugins) + def create_domain_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDomainNameOutput: + return self._invoke( + self._select_input(_models.CREATE_DOMAIN_NAME, args, kwargs), + _models.CREATE_DOMAIN_NAME, + [], + plugins, + ) + + @_overload + def create_domain_name_access_association( + self, + request: _models.CreateDomainNameAccessAssociationInput + | _models.CreateDomainNameAccessAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDomainNameAccessAssociationOutput: ... + + @_overload def create_domain_name_access_association( self, - input: CreateDomainNameAccessAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDomainNameAccessAssociationInputDict], ) -> CreateDomainNameAccessAssociationOutput: """ Creates a domain name access association resource between an access association source and a private custom domain name. Args: - input: - An instance of `CreateDomainNameAccessAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -452,19 +485,40 @@ def create_domain_name_access_association( Returns: An instance of `CreateDomainNameAccessAssociationOutput`. """ + + def create_domain_name_access_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDomainNameAccessAssociationOutput: return self._invoke( - input, _models.CREATE_DOMAIN_NAME_ACCESS_ASSOCIATION, [], plugins + self._select_input( + _models.CREATE_DOMAIN_NAME_ACCESS_ASSOCIATION, args, kwargs + ), + _models.CREATE_DOMAIN_NAME_ACCESS_ASSOCIATION, + [], + plugins, ) + @_overload def create_model( - self, input: CreateModelInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateModelInput | _models.CreateModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelOutput: ... + + @_overload + def create_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelInputDict], ) -> CreateModelOutput: """ Adds a new Model resource to an existing RestApi resource. Args: - input: - An instance of `CreateModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -474,17 +528,39 @@ def create_model( Returns: An instance of `CreateModelOutput`. """ - return self._invoke(input, _models.CREATE_MODEL, [], plugins) + def create_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelOutput: + return self._invoke( + self._select_input(_models.CREATE_MODEL, args, kwargs), + _models.CREATE_MODEL, + [], + plugins, + ) + + @_overload + def create_request_validator( + self, + request: _models.CreateRequestValidatorInput + | _models.CreateRequestValidatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRequestValidatorOutput: ... + + @_overload def create_request_validator( - self, input: CreateRequestValidatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRequestValidatorInputDict], ) -> CreateRequestValidatorOutput: """ Creates a RequestValidator of a given RestApi. Args: - input: - An instance of `CreateRequestValidatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -494,17 +570,38 @@ def create_request_validator( Returns: An instance of `CreateRequestValidatorOutput`. """ - return self._invoke(input, _models.CREATE_REQUEST_VALIDATOR, [], plugins) + def create_request_validator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRequestValidatorOutput: + return self._invoke( + self._select_input(_models.CREATE_REQUEST_VALIDATOR, args, kwargs), + _models.CREATE_REQUEST_VALIDATOR, + [], + plugins, + ) + + @_overload + def create_resource( + self, + request: _models.CreateResourceInput | _models.CreateResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateResourceOutput: ... + + @_overload def create_resource( - self, input: CreateResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateResourceInputDict], ) -> CreateResourceOutput: """ Creates a Resource resource. Args: - input: - An instance of `CreateResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -514,17 +611,38 @@ def create_resource( Returns: An instance of `CreateResourceOutput`. """ - return self._invoke(input, _models.CREATE_RESOURCE, [], plugins) + def create_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateResourceOutput: + return self._invoke( + self._select_input(_models.CREATE_RESOURCE, args, kwargs), + _models.CREATE_RESOURCE, + [], + plugins, + ) + + @_overload + def create_rest_api( + self, + request: _models.CreateRestApiInput | _models.CreateRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRestApiOutput: ... + + @_overload def create_rest_api( - self, input: CreateRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRestApiInputDict], ) -> CreateRestApiOutput: """ Creates a new RestApi resource. Args: - input: - An instance of `CreateRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -534,18 +652,39 @@ def create_rest_api( Returns: An instance of `CreateRestApiOutput`. """ - return self._invoke(input, _models.CREATE_REST_API, [], plugins) + def create_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRestApiOutput: + return self._invoke( + self._select_input(_models.CREATE_REST_API, args, kwargs), + _models.CREATE_REST_API, + [], + plugins, + ) + + @_overload + def create_stage( + self, + request: _models.CreateStageInput | _models.CreateStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStageOutput: ... + + @_overload def create_stage( - self, input: CreateStageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStageInputDict], ) -> CreateStageOutput: """ Creates a new Stage resource that references a pre-existing Deployment for the API. Args: - input: - An instance of `CreateStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -555,18 +694,39 @@ def create_stage( Returns: An instance of `CreateStageOutput`. """ - return self._invoke(input, _models.CREATE_STAGE, [], plugins) + def create_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStageOutput: + return self._invoke( + self._select_input(_models.CREATE_STAGE, args, kwargs), + _models.CREATE_STAGE, + [], + plugins, + ) + + @_overload + def create_usage_plan( + self, + request: _models.CreateUsagePlanInput | _models.CreateUsagePlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateUsagePlanOutput: ... + + @_overload def create_usage_plan( - self, input: CreateUsagePlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateUsagePlanInputDict], ) -> CreateUsagePlanOutput: """ Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload. Args: - input: - An instance of `CreateUsagePlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -576,17 +736,38 @@ def create_usage_plan( Returns: An instance of `CreateUsagePlanOutput`. """ - return self._invoke(input, _models.CREATE_USAGE_PLAN, [], plugins) + def create_usage_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateUsagePlanOutput: + return self._invoke( + self._select_input(_models.CREATE_USAGE_PLAN, args, kwargs), + _models.CREATE_USAGE_PLAN, + [], + plugins, + ) + + @_overload + def create_usage_plan_key( + self, + request: _models.CreateUsagePlanKeyInput | _models.CreateUsagePlanKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateUsagePlanKeyOutput: ... + + @_overload def create_usage_plan_key( - self, input: CreateUsagePlanKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateUsagePlanKeyInputDict], ) -> CreateUsagePlanKeyOutput: """ Creates a usage plan key for adding an existing API key to a usage plan. Args: - input: - An instance of `CreateUsagePlanKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -596,10 +777,33 @@ def create_usage_plan_key( Returns: An instance of `CreateUsagePlanKeyOutput`. """ - return self._invoke(input, _models.CREATE_USAGE_PLAN_KEY, [], plugins) + def create_usage_plan_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateUsagePlanKeyOutput: + return self._invoke( + self._select_input(_models.CREATE_USAGE_PLAN_KEY, args, kwargs), + _models.CREATE_USAGE_PLAN_KEY, + [], + plugins, + ) + + @_overload + def create_vpc_link( + self, + request: _models.CreateVpcLinkInput | _models.CreateVpcLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcLinkOutput: ... + + @_overload def create_vpc_link( - self, input: CreateVpcLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcLinkInputDict], ) -> CreateVpcLinkOutput: """ Creates a VPC link, under the caller's account in a selected region, in @@ -608,8 +812,6 @@ def create_vpc_link( update VPC Endpoint services. Args: - input: - An instance of `CreateVpcLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -619,17 +821,38 @@ def create_vpc_link( Returns: An instance of `CreateVpcLinkOutput`. """ - return self._invoke(input, _models.CREATE_VPC_LINK, [], plugins) + def create_vpc_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcLinkOutput: + return self._invoke( + self._select_input(_models.CREATE_VPC_LINK, args, kwargs), + _models.CREATE_VPC_LINK, + [], + plugins, + ) + + @_overload def delete_api_key( - self, input: DeleteApiKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteApiKeyInput | _models.DeleteApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteApiKeyOutput: ... + + @_overload + def delete_api_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteApiKeyInputDict], ) -> DeleteApiKeyOutput: """ Deletes the ApiKey resource. Args: - input: - An instance of `DeleteApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -639,17 +862,38 @@ def delete_api_key( Returns: An instance of `DeleteApiKeyOutput`. """ - return self._invoke(input, _models.DELETE_API_KEY, [], plugins) + def delete_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteApiKeyOutput: + return self._invoke( + self._select_input(_models.DELETE_API_KEY, args, kwargs), + _models.DELETE_API_KEY, + [], + plugins, + ) + + @_overload + def delete_authorizer( + self, + request: _models.DeleteAuthorizerInput | _models.DeleteAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAuthorizerOutput: ... + + @_overload def delete_authorizer( - self, input: DeleteAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAuthorizerInputDict], ) -> DeleteAuthorizerOutput: """ Deletes an existing Authorizer resource. Args: - input: - An instance of `DeleteAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -659,17 +903,39 @@ def delete_authorizer( Returns: An instance of `DeleteAuthorizerOutput`. """ - return self._invoke(input, _models.DELETE_AUTHORIZER, [], plugins) + def delete_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAuthorizerOutput: + return self._invoke( + self._select_input(_models.DELETE_AUTHORIZER, args, kwargs), + _models.DELETE_AUTHORIZER, + [], + plugins, + ) + + @_overload + def delete_base_path_mapping( + self, + request: _models.DeleteBasePathMappingInput + | _models.DeleteBasePathMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBasePathMappingOutput: ... + + @_overload def delete_base_path_mapping( - self, input: DeleteBasePathMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBasePathMappingInputDict], ) -> DeleteBasePathMappingOutput: """ Deletes the BasePathMapping resource. Args: - input: - An instance of `DeleteBasePathMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -679,17 +945,39 @@ def delete_base_path_mapping( Returns: An instance of `DeleteBasePathMappingOutput`. """ - return self._invoke(input, _models.DELETE_BASE_PATH_MAPPING, [], plugins) + def delete_base_path_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBasePathMappingOutput: + return self._invoke( + self._select_input(_models.DELETE_BASE_PATH_MAPPING, args, kwargs), + _models.DELETE_BASE_PATH_MAPPING, + [], + plugins, + ) + + @_overload + def delete_client_certificate( + self, + request: _models.DeleteClientCertificateInput + | _models.DeleteClientCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClientCertificateOutput: ... + + @_overload def delete_client_certificate( - self, input: DeleteClientCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClientCertificateInputDict], ) -> DeleteClientCertificateOutput: """ Deletes the ClientCertificate resource. Args: - input: - An instance of `DeleteClientCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -699,18 +987,39 @@ def delete_client_certificate( Returns: An instance of `DeleteClientCertificateOutput`. """ - return self._invoke(input, _models.DELETE_CLIENT_CERTIFICATE, [], plugins) + def delete_client_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClientCertificateOutput: + return self._invoke( + self._select_input(_models.DELETE_CLIENT_CERTIFICATE, args, kwargs), + _models.DELETE_CLIENT_CERTIFICATE, + [], + plugins, + ) + + @_overload + def delete_deployment( + self, + request: _models.DeleteDeploymentInput | _models.DeleteDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDeploymentOutput: ... + + @_overload def delete_deployment( - self, input: DeleteDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDeploymentInputDict], ) -> DeleteDeploymentOutput: """ Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it. Args: - input: - An instance of `DeleteDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -720,17 +1029,39 @@ def delete_deployment( Returns: An instance of `DeleteDeploymentOutput`. """ - return self._invoke(input, _models.DELETE_DEPLOYMENT, [], plugins) + def delete_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDeploymentOutput: + return self._invoke( + self._select_input(_models.DELETE_DEPLOYMENT, args, kwargs), + _models.DELETE_DEPLOYMENT, + [], + plugins, + ) + + @_overload + def delete_documentation_part( + self, + request: _models.DeleteDocumentationPartInput + | _models.DeleteDocumentationPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDocumentationPartOutput: ... + + @_overload def delete_documentation_part( - self, input: DeleteDocumentationPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDocumentationPartInputDict], ) -> DeleteDocumentationPartOutput: """ Deletes a documentation part Args: - input: - An instance of `DeleteDocumentationPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -740,19 +1071,39 @@ def delete_documentation_part( Returns: An instance of `DeleteDocumentationPartOutput`. """ - return self._invoke(input, _models.DELETE_DOCUMENTATION_PART, [], plugins) + def delete_documentation_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDocumentationPartOutput: + return self._invoke( + self._select_input(_models.DELETE_DOCUMENTATION_PART, args, kwargs), + _models.DELETE_DOCUMENTATION_PART, + [], + plugins, + ) + + @_overload + def delete_documentation_version( + self, + request: _models.DeleteDocumentationVersionInput + | _models.DeleteDocumentationVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDocumentationVersionOutput: ... + + @_overload def delete_documentation_version( self, - input: DeleteDocumentationVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDocumentationVersionInputDict], ) -> DeleteDocumentationVersionOutput: """ Deletes a documentation version. Args: - input: - An instance of `DeleteDocumentationVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -762,17 +1113,38 @@ def delete_documentation_version( Returns: An instance of `DeleteDocumentationVersionOutput`. """ - return self._invoke(input, _models.DELETE_DOCUMENTATION_VERSION, [], plugins) + def delete_documentation_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDocumentationVersionOutput: + return self._invoke( + self._select_input(_models.DELETE_DOCUMENTATION_VERSION, args, kwargs), + _models.DELETE_DOCUMENTATION_VERSION, + [], + plugins, + ) + + @_overload + def delete_domain_name( + self, + request: _models.DeleteDomainNameInput | _models.DeleteDomainNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDomainNameOutput: ... + + @_overload def delete_domain_name( - self, input: DeleteDomainNameInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDomainNameInputDict], ) -> DeleteDomainNameOutput: """ Deletes the DomainName resource. Args: - input: - An instance of `DeleteDomainNameInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -782,14 +1154,36 @@ def delete_domain_name( Returns: An instance of `DeleteDomainNameOutput`. """ - return self._invoke(input, _models.DELETE_DOMAIN_NAME, [], plugins) + def delete_domain_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDomainNameOutput: + return self._invoke( + self._select_input(_models.DELETE_DOMAIN_NAME, args, kwargs), + _models.DELETE_DOMAIN_NAME, + [], + plugins, + ) + + @_overload def delete_domain_name_access_association( self, - input: DeleteDomainNameAccessAssociationInput, + request: _models.DeleteDomainNameAccessAssociationInput + | _models.DeleteDomainNameAccessAssociationInputDict, + /, + *, plugins: list[Plugin] | None = None, - ) -> DeleteDomainNameAccessAssociationOutput: - """ + ) -> DeleteDomainNameAccessAssociationOutput: ... + + @_overload + def delete_domain_name_access_association( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDomainNameAccessAssociationInputDict], + ) -> DeleteDomainNameAccessAssociationOutput: + """ Deletes the DomainNameAccessAssociation resource. Only the AWS account that created the DomainNameAccessAssociation @@ -798,8 +1192,6 @@ def delete_domain_name_access_association( RejectDomainNameAccessAssociation operation. Args: - input: - An instance of `DeleteDomainNameAccessAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -809,20 +1201,42 @@ def delete_domain_name_access_association( Returns: An instance of `DeleteDomainNameAccessAssociationOutput`. """ + + def delete_domain_name_access_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDomainNameAccessAssociationOutput: return self._invoke( - input, _models.DELETE_DOMAIN_NAME_ACCESS_ASSOCIATION, [], plugins + self._select_input( + _models.DELETE_DOMAIN_NAME_ACCESS_ASSOCIATION, args, kwargs + ), + _models.DELETE_DOMAIN_NAME_ACCESS_ASSOCIATION, + [], + plugins, ) + @_overload + def delete_gateway_response( + self, + request: _models.DeleteGatewayResponseInput + | _models.DeleteGatewayResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayResponseOutput: ... + + @_overload def delete_gateway_response( - self, input: DeleteGatewayResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayResponseInputDict], ) -> DeleteGatewayResponseOutput: """ Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets it with the default settings. Args: - input: - An instance of `DeleteGatewayResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -832,17 +1246,38 @@ def delete_gateway_response( Returns: An instance of `DeleteGatewayResponseOutput`. """ - return self._invoke(input, _models.DELETE_GATEWAY_RESPONSE, [], plugins) + def delete_gateway_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayResponseOutput: + return self._invoke( + self._select_input(_models.DELETE_GATEWAY_RESPONSE, args, kwargs), + _models.DELETE_GATEWAY_RESPONSE, + [], + plugins, + ) + + @_overload + def delete_integration( + self, + request: _models.DeleteIntegrationInput | _models.DeleteIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIntegrationOutput: ... + + @_overload def delete_integration( - self, input: DeleteIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIntegrationInputDict], ) -> DeleteIntegrationOutput: """ Represents a delete integration. Args: - input: - An instance of `DeleteIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -852,17 +1287,39 @@ def delete_integration( Returns: An instance of `DeleteIntegrationOutput`. """ - return self._invoke(input, _models.DELETE_INTEGRATION, [], plugins) + def delete_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIntegrationOutput: + return self._invoke( + self._select_input(_models.DELETE_INTEGRATION, args, kwargs), + _models.DELETE_INTEGRATION, + [], + plugins, + ) + + @_overload + def delete_integration_response( + self, + request: _models.DeleteIntegrationResponseInput + | _models.DeleteIntegrationResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIntegrationResponseOutput: ... + + @_overload def delete_integration_response( - self, input: DeleteIntegrationResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIntegrationResponseInputDict], ) -> DeleteIntegrationResponseOutput: """ Represents a delete integration response. Args: - input: - An instance of `DeleteIntegrationResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -872,17 +1329,38 @@ def delete_integration_response( Returns: An instance of `DeleteIntegrationResponseOutput`. """ - return self._invoke(input, _models.DELETE_INTEGRATION_RESPONSE, [], plugins) + def delete_integration_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIntegrationResponseOutput: + return self._invoke( + self._select_input(_models.DELETE_INTEGRATION_RESPONSE, args, kwargs), + _models.DELETE_INTEGRATION_RESPONSE, + [], + plugins, + ) + + @_overload + def delete_method( + self, + request: _models.DeleteMethodInput | _models.DeleteMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMethodOutput: ... + + @_overload def delete_method( - self, input: DeleteMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMethodInputDict], ) -> DeleteMethodOutput: """ Deletes an existing Method resource. Args: - input: - An instance of `DeleteMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -892,17 +1370,39 @@ def delete_method( Returns: An instance of `DeleteMethodOutput`. """ - return self._invoke(input, _models.DELETE_METHOD, [], plugins) + def delete_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMethodOutput: + return self._invoke( + self._select_input(_models.DELETE_METHOD, args, kwargs), + _models.DELETE_METHOD, + [], + plugins, + ) + + @_overload + def delete_method_response( + self, + request: _models.DeleteMethodResponseInput + | _models.DeleteMethodResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMethodResponseOutput: ... + + @_overload def delete_method_response( - self, input: DeleteMethodResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMethodResponseInputDict], ) -> DeleteMethodResponseOutput: """ Deletes an existing MethodResponse resource. Args: - input: - An instance of `DeleteMethodResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -912,17 +1412,38 @@ def delete_method_response( Returns: An instance of `DeleteMethodResponseOutput`. """ - return self._invoke(input, _models.DELETE_METHOD_RESPONSE, [], plugins) + def delete_method_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMethodResponseOutput: + return self._invoke( + self._select_input(_models.DELETE_METHOD_RESPONSE, args, kwargs), + _models.DELETE_METHOD_RESPONSE, + [], + plugins, + ) + + @_overload def delete_model( - self, input: DeleteModelInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteModelInput | _models.DeleteModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteModelOutput: ... + + @_overload + def delete_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteModelInputDict], ) -> DeleteModelOutput: """ Deletes a model. Args: - input: - An instance of `DeleteModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -932,17 +1453,39 @@ def delete_model( Returns: An instance of `DeleteModelOutput`. """ - return self._invoke(input, _models.DELETE_MODEL, [], plugins) + def delete_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteModelOutput: + return self._invoke( + self._select_input(_models.DELETE_MODEL, args, kwargs), + _models.DELETE_MODEL, + [], + plugins, + ) + + @_overload + def delete_request_validator( + self, + request: _models.DeleteRequestValidatorInput + | _models.DeleteRequestValidatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRequestValidatorOutput: ... + + @_overload def delete_request_validator( - self, input: DeleteRequestValidatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRequestValidatorInputDict], ) -> DeleteRequestValidatorOutput: """ Deletes a RequestValidator of a given RestApi. Args: - input: - An instance of `DeleteRequestValidatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -952,17 +1495,38 @@ def delete_request_validator( Returns: An instance of `DeleteRequestValidatorOutput`. """ - return self._invoke(input, _models.DELETE_REQUEST_VALIDATOR, [], plugins) + def delete_request_validator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRequestValidatorOutput: + return self._invoke( + self._select_input(_models.DELETE_REQUEST_VALIDATOR, args, kwargs), + _models.DELETE_REQUEST_VALIDATOR, + [], + plugins, + ) + + @_overload + def delete_resource( + self, + request: _models.DeleteResourceInput | _models.DeleteResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourceOutput: ... + + @_overload def delete_resource( - self, input: DeleteResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourceInputDict], ) -> DeleteResourceOutput: """ Deletes a Resource resource. Args: - input: - An instance of `DeleteResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -972,17 +1536,38 @@ def delete_resource( Returns: An instance of `DeleteResourceOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE, [], plugins) + def delete_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourceOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE, args, kwargs), + _models.DELETE_RESOURCE, + [], + plugins, + ) + + @_overload + def delete_rest_api( + self, + request: _models.DeleteRestApiInput | _models.DeleteRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRestApiOutput: ... + + @_overload def delete_rest_api( - self, input: DeleteRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRestApiInputDict], ) -> DeleteRestApiOutput: """ Deletes the specified API. Args: - input: - An instance of `DeleteRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -992,17 +1577,38 @@ def delete_rest_api( Returns: An instance of `DeleteRestApiOutput`. """ - return self._invoke(input, _models.DELETE_REST_API, [], plugins) + def delete_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRestApiOutput: + return self._invoke( + self._select_input(_models.DELETE_REST_API, args, kwargs), + _models.DELETE_REST_API, + [], + plugins, + ) + + @_overload + def delete_stage( + self, + request: _models.DeleteStageInput | _models.DeleteStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStageOutput: ... + + @_overload def delete_stage( - self, input: DeleteStageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStageInputDict], ) -> DeleteStageOutput: """ Deletes a Stage resource. Args: - input: - An instance of `DeleteStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1012,17 +1618,38 @@ def delete_stage( Returns: An instance of `DeleteStageOutput`. """ - return self._invoke(input, _models.DELETE_STAGE, [], plugins) + def delete_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStageOutput: + return self._invoke( + self._select_input(_models.DELETE_STAGE, args, kwargs), + _models.DELETE_STAGE, + [], + plugins, + ) + + @_overload + def delete_usage_plan( + self, + request: _models.DeleteUsagePlanInput | _models.DeleteUsagePlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUsagePlanOutput: ... + + @_overload def delete_usage_plan( - self, input: DeleteUsagePlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUsagePlanInputDict], ) -> DeleteUsagePlanOutput: """ Deletes a usage plan of a given plan Id. Args: - input: - An instance of `DeleteUsagePlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1032,18 +1659,39 @@ def delete_usage_plan( Returns: An instance of `DeleteUsagePlanOutput`. """ - return self._invoke(input, _models.DELETE_USAGE_PLAN, [], plugins) + def delete_usage_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUsagePlanOutput: + return self._invoke( + self._select_input(_models.DELETE_USAGE_PLAN, args, kwargs), + _models.DELETE_USAGE_PLAN, + [], + plugins, + ) + + @_overload + def delete_usage_plan_key( + self, + request: _models.DeleteUsagePlanKeyInput | _models.DeleteUsagePlanKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUsagePlanKeyOutput: ... + + @_overload def delete_usage_plan_key( - self, input: DeleteUsagePlanKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUsagePlanKeyInputDict], ) -> DeleteUsagePlanKeyOutput: """ Deletes a usage plan key and remove the underlying API key from the associated usage plan. Args: - input: - An instance of `DeleteUsagePlanKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1053,17 +1701,38 @@ def delete_usage_plan_key( Returns: An instance of `DeleteUsagePlanKeyOutput`. """ - return self._invoke(input, _models.DELETE_USAGE_PLAN_KEY, [], plugins) + def delete_usage_plan_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUsagePlanKeyOutput: + return self._invoke( + self._select_input(_models.DELETE_USAGE_PLAN_KEY, args, kwargs), + _models.DELETE_USAGE_PLAN_KEY, + [], + plugins, + ) + + @_overload + def delete_vpc_link( + self, + request: _models.DeleteVpcLinkInput | _models.DeleteVpcLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcLinkOutput: ... + + @_overload def delete_vpc_link( - self, input: DeleteVpcLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcLinkInputDict], ) -> DeleteVpcLinkOutput: """ Deletes an existing VpcLink of a specified identifier. Args: - input: - An instance of `DeleteVpcLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1073,19 +1742,39 @@ def delete_vpc_link( Returns: An instance of `DeleteVpcLinkOutput`. """ - return self._invoke(input, _models.DELETE_VPC_LINK, [], plugins) + def delete_vpc_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcLinkOutput: + return self._invoke( + self._select_input(_models.DELETE_VPC_LINK, args, kwargs), + _models.DELETE_VPC_LINK, + [], + plugins, + ) + + @_overload def flush_stage_authorizers_cache( self, - input: FlushStageAuthorizersCacheInput, + request: _models.FlushStageAuthorizersCacheInput + | _models.FlushStageAuthorizersCacheInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> FlushStageAuthorizersCacheOutput: ... + + @_overload + def flush_stage_authorizers_cache( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.FlushStageAuthorizersCacheInputDict], ) -> FlushStageAuthorizersCacheOutput: """ Flushes all authorizer cache entries on a stage. Args: - input: - An instance of `FlushStageAuthorizersCacheInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1095,17 +1784,38 @@ def flush_stage_authorizers_cache( Returns: An instance of `FlushStageAuthorizersCacheOutput`. """ - return self._invoke(input, _models.FLUSH_STAGE_AUTHORIZERS_CACHE, [], plugins) + def flush_stage_authorizers_cache( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> FlushStageAuthorizersCacheOutput: + return self._invoke( + self._select_input(_models.FLUSH_STAGE_AUTHORIZERS_CACHE, args, kwargs), + _models.FLUSH_STAGE_AUTHORIZERS_CACHE, + [], + plugins, + ) + + @_overload + def flush_stage_cache( + self, + request: _models.FlushStageCacheInput | _models.FlushStageCacheInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> FlushStageCacheOutput: ... + + @_overload def flush_stage_cache( - self, input: FlushStageCacheInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.FlushStageCacheInputDict], ) -> FlushStageCacheOutput: """ Flushes a stage's cache. Args: - input: - An instance of `FlushStageCacheInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1115,19 +1825,39 @@ def flush_stage_cache( Returns: An instance of `FlushStageCacheOutput`. """ - return self._invoke(input, _models.FLUSH_STAGE_CACHE, [], plugins) + def flush_stage_cache( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> FlushStageCacheOutput: + return self._invoke( + self._select_input(_models.FLUSH_STAGE_CACHE, args, kwargs), + _models.FLUSH_STAGE_CACHE, + [], + plugins, + ) + + @_overload + def generate_client_certificate( + self, + request: _models.GenerateClientCertificateInput + | _models.GenerateClientCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateClientCertificateOutput: ... + + @_overload def generate_client_certificate( self, - input: GenerateClientCertificateInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateClientCertificateInputDict], ) -> GenerateClientCertificateOutput: """ Generates a ClientCertificate resource. Args: - input: - An instance of `GenerateClientCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1137,17 +1867,38 @@ def generate_client_certificate( Returns: An instance of `GenerateClientCertificateOutput`. """ - return self._invoke(input, _models.GENERATE_CLIENT_CERTIFICATE, [], plugins) + def generate_client_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateClientCertificateOutput: + return self._invoke( + self._select_input(_models.GENERATE_CLIENT_CERTIFICATE, args, kwargs), + _models.GENERATE_CLIENT_CERTIFICATE, + [], + plugins, + ) + + @_overload + def get_account( + self, + request: _models.GetAccountInput | _models.GetAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountOutput: ... + + @_overload def get_account( - self, input: GetAccountInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountInputDict], ) -> GetAccountOutput: """ Gets information about the current Account resource. Args: - input: - An instance of `GetAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1157,17 +1908,38 @@ def get_account( Returns: An instance of `GetAccountOutput`. """ - return self._invoke(input, _models.GET_ACCOUNT, [], plugins) + def get_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountOutput: + return self._invoke( + self._select_input(_models.GET_ACCOUNT, args, kwargs), + _models.GET_ACCOUNT, + [], + plugins, + ) + + @_overload def get_api_key( - self, input: GetApiKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetApiKeyInput | _models.GetApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetApiKeyOutput: ... + + @_overload + def get_api_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetApiKeyInputDict], ) -> GetApiKeyOutput: """ Gets information about the current ApiKey resource. Args: - input: - An instance of `GetApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1177,17 +1949,38 @@ def get_api_key( Returns: An instance of `GetApiKeyOutput`. """ - return self._invoke(input, _models.GET_API_KEY, [], plugins) + def get_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetApiKeyOutput: + return self._invoke( + self._select_input(_models.GET_API_KEY, args, kwargs), + _models.GET_API_KEY, + [], + plugins, + ) + + @_overload + def get_api_keys( + self, + request: _models.GetApiKeysInput | _models.GetApiKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetApiKeysOutput: ... + + @_overload def get_api_keys( - self, input: GetApiKeysInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetApiKeysInputDict], ) -> GetApiKeysOutput: """ Gets information about the current ApiKeys resource. Args: - input: - An instance of `GetApiKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1197,17 +1990,38 @@ def get_api_keys( Returns: An instance of `GetApiKeysOutput`. """ - return self._invoke(input, _models.GET_API_KEYS, [], plugins) + def get_api_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetApiKeysOutput: + return self._invoke( + self._select_input(_models.GET_API_KEYS, args, kwargs), + _models.GET_API_KEYS, + [], + plugins, + ) + + @_overload + def get_authorizer( + self, + request: _models.GetAuthorizerInput | _models.GetAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAuthorizerOutput: ... + + @_overload def get_authorizer( - self, input: GetAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAuthorizerInputDict], ) -> GetAuthorizerOutput: """ Describe an existing Authorizer resource. Args: - input: - An instance of `GetAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1217,17 +2031,38 @@ def get_authorizer( Returns: An instance of `GetAuthorizerOutput`. """ - return self._invoke(input, _models.GET_AUTHORIZER, [], plugins) + def get_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAuthorizerOutput: + return self._invoke( + self._select_input(_models.GET_AUTHORIZER, args, kwargs), + _models.GET_AUTHORIZER, + [], + plugins, + ) + + @_overload + def get_authorizers( + self, + request: _models.GetAuthorizersInput | _models.GetAuthorizersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAuthorizersOutput: ... + + @_overload def get_authorizers( - self, input: GetAuthorizersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAuthorizersInputDict], ) -> GetAuthorizersOutput: """ Describe an existing Authorizers resource. Args: - input: - An instance of `GetAuthorizersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1237,17 +2072,38 @@ def get_authorizers( Returns: An instance of `GetAuthorizersOutput`. """ - return self._invoke(input, _models.GET_AUTHORIZERS, [], plugins) + def get_authorizers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAuthorizersOutput: + return self._invoke( + self._select_input(_models.GET_AUTHORIZERS, args, kwargs), + _models.GET_AUTHORIZERS, + [], + plugins, + ) + + @_overload + def get_base_path_mapping( + self, + request: _models.GetBasePathMappingInput | _models.GetBasePathMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBasePathMappingOutput: ... + + @_overload def get_base_path_mapping( - self, input: GetBasePathMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBasePathMappingInputDict], ) -> GetBasePathMappingOutput: """ Describe a BasePathMapping resource. Args: - input: - An instance of `GetBasePathMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1257,17 +2113,39 @@ def get_base_path_mapping( Returns: An instance of `GetBasePathMappingOutput`. """ - return self._invoke(input, _models.GET_BASE_PATH_MAPPING, [], plugins) + def get_base_path_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBasePathMappingOutput: + return self._invoke( + self._select_input(_models.GET_BASE_PATH_MAPPING, args, kwargs), + _models.GET_BASE_PATH_MAPPING, + [], + plugins, + ) + + @_overload + def get_base_path_mappings( + self, + request: _models.GetBasePathMappingsInput + | _models.GetBasePathMappingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBasePathMappingsOutput: ... + + @_overload def get_base_path_mappings( - self, input: GetBasePathMappingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBasePathMappingsInputDict], ) -> GetBasePathMappingsOutput: """ Represents a collection of BasePathMapping resources. Args: - input: - An instance of `GetBasePathMappingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1277,17 +2155,39 @@ def get_base_path_mappings( Returns: An instance of `GetBasePathMappingsOutput`. """ - return self._invoke(input, _models.GET_BASE_PATH_MAPPINGS, [], plugins) - def get_client_certificate( - self, input: GetClientCertificateInput, plugins: list[Plugin] | None = None - ) -> GetClientCertificateOutput: - """ + def get_base_path_mappings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBasePathMappingsOutput: + return self._invoke( + self._select_input(_models.GET_BASE_PATH_MAPPINGS, args, kwargs), + _models.GET_BASE_PATH_MAPPINGS, + [], + plugins, + ) + + @_overload + def get_client_certificate( + self, + request: _models.GetClientCertificateInput + | _models.GetClientCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetClientCertificateOutput: ... + + @_overload + def get_client_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetClientCertificateInputDict], + ) -> GetClientCertificateOutput: + """ Gets information about the current ClientCertificate resource. Args: - input: - An instance of `GetClientCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1297,19 +2197,39 @@ def get_client_certificate( Returns: An instance of `GetClientCertificateOutput`. """ - return self._invoke(input, _models.GET_CLIENT_CERTIFICATE, [], plugins) + def get_client_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetClientCertificateOutput: + return self._invoke( + self._select_input(_models.GET_CLIENT_CERTIFICATE, args, kwargs), + _models.GET_CLIENT_CERTIFICATE, + [], + plugins, + ) + + @_overload + def get_client_certificates( + self, + request: _models.GetClientCertificatesInput + | _models.GetClientCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetClientCertificatesOutput: ... + + @_overload def get_client_certificates( self, - input: GetClientCertificatesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetClientCertificatesInputDict], ) -> GetClientCertificatesOutput: """ Gets a collection of ClientCertificate resources. Args: - input: - An instance of `GetClientCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1319,17 +2239,38 @@ def get_client_certificates( Returns: An instance of `GetClientCertificatesOutput`. """ - return self._invoke(input, _models.GET_CLIENT_CERTIFICATES, [], plugins) + def get_client_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetClientCertificatesOutput: + return self._invoke( + self._select_input(_models.GET_CLIENT_CERTIFICATES, args, kwargs), + _models.GET_CLIENT_CERTIFICATES, + [], + plugins, + ) + + @_overload + def get_deployment( + self, + request: _models.GetDeploymentInput | _models.GetDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDeploymentOutput: ... + + @_overload def get_deployment( - self, input: GetDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDeploymentInputDict], ) -> GetDeploymentOutput: """ Gets information about a Deployment resource. Args: - input: - An instance of `GetDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1339,17 +2280,38 @@ def get_deployment( Returns: An instance of `GetDeploymentOutput`. """ - return self._invoke(input, _models.GET_DEPLOYMENT, [], plugins) + def get_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDeploymentOutput: + return self._invoke( + self._select_input(_models.GET_DEPLOYMENT, args, kwargs), + _models.GET_DEPLOYMENT, + [], + plugins, + ) + + @_overload def get_deployments( - self, input: GetDeploymentsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDeploymentsInput | _models.GetDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDeploymentsOutput: ... + + @_overload + def get_deployments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDeploymentsInputDict], ) -> GetDeploymentsOutput: """ Gets information about a Deployments collection. Args: - input: - An instance of `GetDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1359,17 +2321,39 @@ def get_deployments( Returns: An instance of `GetDeploymentsOutput`. """ - return self._invoke(input, _models.GET_DEPLOYMENTS, [], plugins) + def get_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDeploymentsOutput: + return self._invoke( + self._select_input(_models.GET_DEPLOYMENTS, args, kwargs), + _models.GET_DEPLOYMENTS, + [], + plugins, + ) + + @_overload def get_documentation_part( - self, input: GetDocumentationPartInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDocumentationPartInput + | _models.GetDocumentationPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentationPartOutput: ... + + @_overload + def get_documentation_part( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentationPartInputDict], ) -> GetDocumentationPartOutput: """ Gets a documentation part. Args: - input: - An instance of `GetDocumentationPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1379,17 +2363,39 @@ def get_documentation_part( Returns: An instance of `GetDocumentationPartOutput`. """ - return self._invoke(input, _models.GET_DOCUMENTATION_PART, [], plugins) + def get_documentation_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentationPartOutput: + return self._invoke( + self._select_input(_models.GET_DOCUMENTATION_PART, args, kwargs), + _models.GET_DOCUMENTATION_PART, + [], + plugins, + ) + + @_overload + def get_documentation_parts( + self, + request: _models.GetDocumentationPartsInput + | _models.GetDocumentationPartsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentationPartsOutput: ... + + @_overload def get_documentation_parts( - self, input: GetDocumentationPartsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentationPartsInputDict], ) -> GetDocumentationPartsOutput: """ Gets documentation parts. Args: - input: - An instance of `GetDocumentationPartsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1399,17 +2405,39 @@ def get_documentation_parts( Returns: An instance of `GetDocumentationPartsOutput`. """ - return self._invoke(input, _models.GET_DOCUMENTATION_PARTS, [], plugins) + def get_documentation_parts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentationPartsOutput: + return self._invoke( + self._select_input(_models.GET_DOCUMENTATION_PARTS, args, kwargs), + _models.GET_DOCUMENTATION_PARTS, + [], + plugins, + ) + + @_overload def get_documentation_version( - self, input: GetDocumentationVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDocumentationVersionInput + | _models.GetDocumentationVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentationVersionOutput: ... + + @_overload + def get_documentation_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentationVersionInputDict], ) -> GetDocumentationVersionOutput: """ Gets a documentation version. Args: - input: - An instance of `GetDocumentationVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1419,17 +2447,39 @@ def get_documentation_version( Returns: An instance of `GetDocumentationVersionOutput`. """ - return self._invoke(input, _models.GET_DOCUMENTATION_VERSION, [], plugins) + def get_documentation_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentationVersionOutput: + return self._invoke( + self._select_input(_models.GET_DOCUMENTATION_VERSION, args, kwargs), + _models.GET_DOCUMENTATION_VERSION, + [], + plugins, + ) + + @_overload + def get_documentation_versions( + self, + request: _models.GetDocumentationVersionsInput + | _models.GetDocumentationVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentationVersionsOutput: ... + + @_overload def get_documentation_versions( - self, input: GetDocumentationVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentationVersionsInputDict], ) -> GetDocumentationVersionsOutput: """ Gets documentation versions. Args: - input: - An instance of `GetDocumentationVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1439,18 +2489,39 @@ def get_documentation_versions( Returns: An instance of `GetDocumentationVersionsOutput`. """ - return self._invoke(input, _models.GET_DOCUMENTATION_VERSIONS, [], plugins) + def get_documentation_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentationVersionsOutput: + return self._invoke( + self._select_input(_models.GET_DOCUMENTATION_VERSIONS, args, kwargs), + _models.GET_DOCUMENTATION_VERSIONS, + [], + plugins, + ) + + @_overload def get_domain_name( - self, input: GetDomainNameInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDomainNameInput | _models.GetDomainNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDomainNameOutput: ... + + @_overload + def get_domain_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDomainNameInputDict], ) -> GetDomainNameOutput: """ Represents a domain name that is contained in a simpler, more intuitive URL that can be called. Args: - input: - An instance of `GetDomainNameInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1460,19 +2531,39 @@ def get_domain_name( Returns: An instance of `GetDomainNameOutput`. """ - return self._invoke(input, _models.GET_DOMAIN_NAME, [], plugins) + def get_domain_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDomainNameOutput: + return self._invoke( + self._select_input(_models.GET_DOMAIN_NAME, args, kwargs), + _models.GET_DOMAIN_NAME, + [], + plugins, + ) + + @_overload + def get_domain_name_access_associations( + self, + request: _models.GetDomainNameAccessAssociationsInput + | _models.GetDomainNameAccessAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDomainNameAccessAssociationsOutput: ... + + @_overload def get_domain_name_access_associations( self, - input: GetDomainNameAccessAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDomainNameAccessAssociationsInputDict], ) -> GetDomainNameAccessAssociationsOutput: """ Represents a collection on DomainNameAccessAssociations resources. Args: - input: - An instance of `GetDomainNameAccessAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1482,21 +2573,40 @@ def get_domain_name_access_associations( Returns: An instance of `GetDomainNameAccessAssociationsOutput`. """ + + def get_domain_name_access_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDomainNameAccessAssociationsOutput: return self._invoke( - input, _models.GET_DOMAIN_NAME_ACCESS_ASSOCIATIONS, [], plugins + self._select_input( + _models.GET_DOMAIN_NAME_ACCESS_ASSOCIATIONS, args, kwargs + ), + _models.GET_DOMAIN_NAME_ACCESS_ASSOCIATIONS, + [], + plugins, ) + @_overload def get_domain_names( self, - input: GetDomainNamesInput | None = None, + request: _models.GetDomainNamesInput | _models.GetDomainNamesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetDomainNamesOutput: ... + + @_overload + def get_domain_names( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDomainNamesInputDict], ) -> GetDomainNamesOutput: """ Represents a collection of DomainName resources. Args: - input: - An instance of `GetDomainNamesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1506,17 +2616,38 @@ def get_domain_names( Returns: An instance of `GetDomainNamesOutput`. """ - return self._invoke(input, _models.GET_DOMAIN_NAMES, [], plugins) + def get_domain_names( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDomainNamesOutput: + return self._invoke( + self._select_input(_models.GET_DOMAIN_NAMES, args, kwargs), + _models.GET_DOMAIN_NAMES, + [], + plugins, + ) + + @_overload + def get_export( + self, + request: _models.GetExportInput | _models.GetExportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetExportOutput: ... + + @_overload def get_export( - self, input: GetExportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetExportInputDict], ) -> GetExportOutput: """ Exports a deployed version of a RestApi in a specified format. Args: - input: - An instance of `GetExportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1526,18 +2657,39 @@ def get_export( Returns: An instance of `GetExportOutput`. """ - return self._invoke(input, _models.GET_EXPORT, [], plugins) + def get_export( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetExportOutput: + return self._invoke( + self._select_input(_models.GET_EXPORT, args, kwargs), + _models.GET_EXPORT, + [], + plugins, + ) + + @_overload + def get_gateway_response( + self, + request: _models.GetGatewayResponseInput | _models.GetGatewayResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayResponseOutput: ... + + @_overload def get_gateway_response( - self, input: GetGatewayResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayResponseInputDict], ) -> GetGatewayResponseOutput: """ Gets a GatewayResponse of a specified response type on the given RestApi. Args: - input: - An instance of `GetGatewayResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1547,10 +2699,34 @@ def get_gateway_response( Returns: An instance of `GetGatewayResponseOutput`. """ - return self._invoke(input, _models.GET_GATEWAY_RESPONSE, [], plugins) + def get_gateway_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayResponseOutput: + return self._invoke( + self._select_input(_models.GET_GATEWAY_RESPONSE, args, kwargs), + _models.GET_GATEWAY_RESPONSE, + [], + plugins, + ) + + @_overload def get_gateway_responses( - self, input: GetGatewayResponsesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetGatewayResponsesInput + | _models.GetGatewayResponsesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayResponsesOutput: ... + + @_overload + def get_gateway_responses( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayResponsesInputDict], ) -> GetGatewayResponsesOutput: """ Gets the GatewayResponses collection on the given RestApi. If an API @@ -1559,8 +2735,6 @@ def get_gateway_responses( collection for the supported response types. Args: - input: - An instance of `GetGatewayResponsesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1570,17 +2744,38 @@ def get_gateway_responses( Returns: An instance of `GetGatewayResponsesOutput`. """ - return self._invoke(input, _models.GET_GATEWAY_RESPONSES, [], plugins) + def get_gateway_responses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayResponsesOutput: + return self._invoke( + self._select_input(_models.GET_GATEWAY_RESPONSES, args, kwargs), + _models.GET_GATEWAY_RESPONSES, + [], + plugins, + ) + + @_overload + def get_integration( + self, + request: _models.GetIntegrationInput | _models.GetIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIntegrationOutput: ... + + @_overload def get_integration( - self, input: GetIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIntegrationInputDict], ) -> GetIntegrationOutput: """ Get the integration settings. Args: - input: - An instance of `GetIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1590,17 +2785,39 @@ def get_integration( Returns: An instance of `GetIntegrationOutput`. """ - return self._invoke(input, _models.GET_INTEGRATION, [], plugins) + def get_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIntegrationOutput: + return self._invoke( + self._select_input(_models.GET_INTEGRATION, args, kwargs), + _models.GET_INTEGRATION, + [], + plugins, + ) + + @_overload + def get_integration_response( + self, + request: _models.GetIntegrationResponseInput + | _models.GetIntegrationResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIntegrationResponseOutput: ... + + @_overload def get_integration_response( - self, input: GetIntegrationResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIntegrationResponseInputDict], ) -> GetIntegrationResponseOutput: """ Represents a get integration response. Args: - input: - An instance of `GetIntegrationResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1610,17 +2827,38 @@ def get_integration_response( Returns: An instance of `GetIntegrationResponseOutput`. """ - return self._invoke(input, _models.GET_INTEGRATION_RESPONSE, [], plugins) + def get_integration_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIntegrationResponseOutput: + return self._invoke( + self._select_input(_models.GET_INTEGRATION_RESPONSE, args, kwargs), + _models.GET_INTEGRATION_RESPONSE, + [], + plugins, + ) + + @_overload + def get_method( + self, + request: _models.GetMethodInput | _models.GetMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMethodOutput: ... + + @_overload def get_method( - self, input: GetMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMethodInputDict], ) -> GetMethodOutput: """ Describe an existing Method resource. Args: - input: - An instance of `GetMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1630,17 +2868,38 @@ def get_method( Returns: An instance of `GetMethodOutput`. """ - return self._invoke(input, _models.GET_METHOD, [], plugins) + def get_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMethodOutput: + return self._invoke( + self._select_input(_models.GET_METHOD, args, kwargs), + _models.GET_METHOD, + [], + plugins, + ) + + @_overload def get_method_response( - self, input: GetMethodResponseInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMethodResponseInput | _models.GetMethodResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMethodResponseOutput: ... + + @_overload + def get_method_response( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMethodResponseInputDict], ) -> GetMethodResponseOutput: """ Describes a MethodResponse resource. Args: - input: - An instance of `GetMethodResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1650,17 +2909,38 @@ def get_method_response( Returns: An instance of `GetMethodResponseOutput`. """ - return self._invoke(input, _models.GET_METHOD_RESPONSE, [], plugins) + def get_method_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMethodResponseOutput: + return self._invoke( + self._select_input(_models.GET_METHOD_RESPONSE, args, kwargs), + _models.GET_METHOD_RESPONSE, + [], + plugins, + ) + + @_overload + def get_model( + self, + request: _models.GetModelInput | _models.GetModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelOutput: ... + + @_overload def get_model( - self, input: GetModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelInputDict], ) -> GetModelOutput: """ Describes an existing model defined for a RestApi resource. Args: - input: - An instance of `GetModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1670,17 +2950,38 @@ def get_model( Returns: An instance of `GetModelOutput`. """ - return self._invoke(input, _models.GET_MODEL, [], plugins) + def get_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelOutput: + return self._invoke( + self._select_input(_models.GET_MODEL, args, kwargs), + _models.GET_MODEL, + [], + plugins, + ) + + @_overload + def get_models( + self, + request: _models.GetModelsInput | _models.GetModelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelsOutput: ... + + @_overload def get_models( - self, input: GetModelsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelsInputDict], ) -> GetModelsOutput: """ Describes existing Models defined for a RestApi resource. Args: - input: - An instance of `GetModelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1690,18 +2991,39 @@ def get_models( Returns: An instance of `GetModelsOutput`. """ - return self._invoke(input, _models.GET_MODELS, [], plugins) + def get_models( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelsOutput: + return self._invoke( + self._select_input(_models.GET_MODELS, args, kwargs), + _models.GET_MODELS, + [], + plugins, + ) + + @_overload + def get_model_template( + self, + request: _models.GetModelTemplateInput | _models.GetModelTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelTemplateOutput: ... + + @_overload def get_model_template( - self, input: GetModelTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelTemplateInputDict], ) -> GetModelTemplateOutput: """ Generates a sample mapping template that can be used to transform a payload into the structure of a model. Args: - input: - An instance of `GetModelTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1711,17 +3033,39 @@ def get_model_template( Returns: An instance of `GetModelTemplateOutput`. """ - return self._invoke(input, _models.GET_MODEL_TEMPLATE, [], plugins) + def get_model_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelTemplateOutput: + return self._invoke( + self._select_input(_models.GET_MODEL_TEMPLATE, args, kwargs), + _models.GET_MODEL_TEMPLATE, + [], + plugins, + ) + + @_overload def get_request_validator( - self, input: GetRequestValidatorInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRequestValidatorInput + | _models.GetRequestValidatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRequestValidatorOutput: ... + + @_overload + def get_request_validator( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRequestValidatorInputDict], ) -> GetRequestValidatorOutput: """ Gets a RequestValidator of a given RestApi. Args: - input: - An instance of `GetRequestValidatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1731,17 +3075,39 @@ def get_request_validator( Returns: An instance of `GetRequestValidatorOutput`. """ - return self._invoke(input, _models.GET_REQUEST_VALIDATOR, [], plugins) + def get_request_validator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRequestValidatorOutput: + return self._invoke( + self._select_input(_models.GET_REQUEST_VALIDATOR, args, kwargs), + _models.GET_REQUEST_VALIDATOR, + [], + plugins, + ) + + @_overload + def get_request_validators( + self, + request: _models.GetRequestValidatorsInput + | _models.GetRequestValidatorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRequestValidatorsOutput: ... + + @_overload def get_request_validators( - self, input: GetRequestValidatorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRequestValidatorsInputDict], ) -> GetRequestValidatorsOutput: """ Gets the RequestValidators collection of a given RestApi. Args: - input: - An instance of `GetRequestValidatorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1751,17 +3117,38 @@ def get_request_validators( Returns: An instance of `GetRequestValidatorsOutput`. """ - return self._invoke(input, _models.GET_REQUEST_VALIDATORS, [], plugins) + def get_request_validators( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRequestValidatorsOutput: + return self._invoke( + self._select_input(_models.GET_REQUEST_VALIDATORS, args, kwargs), + _models.GET_REQUEST_VALIDATORS, + [], + plugins, + ) + + @_overload def get_resource( - self, input: GetResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourceInput | _models.GetResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourceOutput: ... + + @_overload + def get_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourceInputDict], ) -> GetResourceOutput: """ Lists information about a resource. Args: - input: - An instance of `GetResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1771,17 +3158,38 @@ def get_resource( Returns: An instance of `GetResourceOutput`. """ - return self._invoke(input, _models.GET_RESOURCE, [], plugins) + def get_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourceOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE, args, kwargs), + _models.GET_RESOURCE, + [], + plugins, + ) + + @_overload def get_resources( - self, input: GetResourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcesInput | _models.GetResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcesOutput: ... + + @_overload + def get_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcesInputDict], ) -> GetResourcesOutput: """ Lists information about a collection of Resource resources. Args: - input: - An instance of `GetResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1791,17 +3199,38 @@ def get_resources( Returns: An instance of `GetResourcesOutput`. """ - return self._invoke(input, _models.GET_RESOURCES, [], plugins) + def get_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcesOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCES, args, kwargs), + _models.GET_RESOURCES, + [], + plugins, + ) + + @_overload def get_rest_api( - self, input: GetRestApiInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRestApiInput | _models.GetRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRestApiOutput: ... + + @_overload + def get_rest_api( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRestApiInputDict], ) -> GetRestApiOutput: """ Lists the RestApi resource in the collection. Args: - input: - An instance of `GetRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1811,17 +3240,38 @@ def get_rest_api( Returns: An instance of `GetRestApiOutput`. """ - return self._invoke(input, _models.GET_REST_API, [], plugins) + def get_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRestApiOutput: + return self._invoke( + self._select_input(_models.GET_REST_API, args, kwargs), + _models.GET_REST_API, + [], + plugins, + ) + + @_overload + def get_rest_apis( + self, + request: _models.GetRestApisInput | _models.GetRestApisInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRestApisOutput: ... + + @_overload def get_rest_apis( - self, input: GetRestApisInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRestApisInputDict], ) -> GetRestApisOutput: """ Lists the RestApis resources for your collection. Args: - input: - An instance of `GetRestApisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1831,17 +3281,38 @@ def get_rest_apis( Returns: An instance of `GetRestApisOutput`. """ - return self._invoke(input, _models.GET_REST_APIS, [], plugins) + def get_rest_apis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRestApisOutput: + return self._invoke( + self._select_input(_models.GET_REST_APIS, args, kwargs), + _models.GET_REST_APIS, + [], + plugins, + ) + + @_overload + def get_sdk( + self, + request: _models.GetSdkInput | _models.GetSdkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSdkOutput: ... + + @_overload def get_sdk( - self, input: GetSdkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSdkInputDict], ) -> GetSdkOutput: """ Generates a client SDK for a RestApi and Stage. Args: - input: - An instance of `GetSdkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1851,17 +3322,38 @@ def get_sdk( Returns: An instance of `GetSdkOutput`. """ - return self._invoke(input, _models.GET_SDK, [], plugins) + def get_sdk( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSdkOutput: + return self._invoke( + self._select_input(_models.GET_SDK, args, kwargs), + _models.GET_SDK, + [], + plugins, + ) + + @_overload def get_sdk_type( - self, input: GetSdkTypeInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSdkTypeInput | _models.GetSdkTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSdkTypeOutput: ... + + @_overload + def get_sdk_type( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSdkTypeInputDict], ) -> GetSdkTypeOutput: """ Gets an SDK type. Args: - input: - An instance of `GetSdkTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1871,17 +3363,38 @@ def get_sdk_type( Returns: An instance of `GetSdkTypeOutput`. """ - return self._invoke(input, _models.GET_SDK_TYPE, [], plugins) + def get_sdk_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSdkTypeOutput: + return self._invoke( + self._select_input(_models.GET_SDK_TYPE, args, kwargs), + _models.GET_SDK_TYPE, + [], + plugins, + ) + + @_overload + def get_sdk_types( + self, + request: _models.GetSdkTypesInput | _models.GetSdkTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSdkTypesOutput: ... + + @_overload def get_sdk_types( - self, input: GetSdkTypesInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSdkTypesInputDict], ) -> GetSdkTypesOutput: """ Gets SDK types Args: - input: - An instance of `GetSdkTypesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1891,17 +3404,38 @@ def get_sdk_types( Returns: An instance of `GetSdkTypesOutput`. """ - return self._invoke(input, _models.GET_SDK_TYPES, [], plugins) + def get_sdk_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSdkTypesOutput: + return self._invoke( + self._select_input(_models.GET_SDK_TYPES, args, kwargs), + _models.GET_SDK_TYPES, + [], + plugins, + ) + + @_overload def get_stage( - self, input: GetStageInput, plugins: list[Plugin] | None = None + self, + request: _models.GetStageInput | _models.GetStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStageOutput: ... + + @_overload + def get_stage( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStageInputDict], ) -> GetStageOutput: """ Gets information about a Stage resource. Args: - input: - An instance of `GetStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1911,17 +3445,38 @@ def get_stage( Returns: An instance of `GetStageOutput`. """ - return self._invoke(input, _models.GET_STAGE, [], plugins) + def get_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStageOutput: + return self._invoke( + self._select_input(_models.GET_STAGE, args, kwargs), + _models.GET_STAGE, + [], + plugins, + ) + + @_overload + def get_stages( + self, + request: _models.GetStagesInput | _models.GetStagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStagesOutput: ... + + @_overload def get_stages( - self, input: GetStagesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStagesInputDict], ) -> GetStagesOutput: """ Gets information about one or more Stage resources. Args: - input: - An instance of `GetStagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1931,17 +3486,38 @@ def get_stages( Returns: An instance of `GetStagesOutput`. """ - return self._invoke(input, _models.GET_STAGES, [], plugins) + def get_stages( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStagesOutput: + return self._invoke( + self._select_input(_models.GET_STAGES, args, kwargs), + _models.GET_STAGES, + [], + plugins, + ) + + @_overload + def get_tags( + self, + request: _models.GetTagsInput | _models.GetTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTagsOutput: ... + + @_overload def get_tags( - self, input: GetTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTagsInputDict], ) -> GetTagsOutput: """ Gets the Tags collection for a given resource. Args: - input: - An instance of `GetTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1951,17 +3527,38 @@ def get_tags( Returns: An instance of `GetTagsOutput`. """ - return self._invoke(input, _models.GET_TAGS, [], plugins) + def get_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTagsOutput: + return self._invoke( + self._select_input(_models.GET_TAGS, args, kwargs), + _models.GET_TAGS, + [], + plugins, + ) + + @_overload + def get_usage( + self, + request: _models.GetUsageInput | _models.GetUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsageOutput: ... + + @_overload def get_usage( - self, input: GetUsageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsageInputDict], ) -> GetUsageOutput: """ Gets the usage data of a usage plan in a specified time interval. Args: - input: - An instance of `GetUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1971,17 +3568,38 @@ def get_usage( Returns: An instance of `GetUsageOutput`. """ - return self._invoke(input, _models.GET_USAGE, [], plugins) + def get_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsageOutput: + return self._invoke( + self._select_input(_models.GET_USAGE, args, kwargs), + _models.GET_USAGE, + [], + plugins, + ) + + @_overload + def get_usage_plan( + self, + request: _models.GetUsagePlanInput | _models.GetUsagePlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsagePlanOutput: ... + + @_overload def get_usage_plan( - self, input: GetUsagePlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsagePlanInputDict], ) -> GetUsagePlanOutput: """ Gets a usage plan of a given plan identifier. Args: - input: - An instance of `GetUsagePlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1991,17 +3609,38 @@ def get_usage_plan( Returns: An instance of `GetUsagePlanOutput`. """ - return self._invoke(input, _models.GET_USAGE_PLAN, [], plugins) + def get_usage_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsagePlanOutput: + return self._invoke( + self._select_input(_models.GET_USAGE_PLAN, args, kwargs), + _models.GET_USAGE_PLAN, + [], + plugins, + ) + + @_overload + def get_usage_plan_key( + self, + request: _models.GetUsagePlanKeyInput | _models.GetUsagePlanKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsagePlanKeyOutput: ... + + @_overload def get_usage_plan_key( - self, input: GetUsagePlanKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsagePlanKeyInputDict], ) -> GetUsagePlanKeyOutput: """ Gets a usage plan key of a given key identifier. Args: - input: - An instance of `GetUsagePlanKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2011,18 +3650,39 @@ def get_usage_plan_key( Returns: An instance of `GetUsagePlanKeyOutput`. """ - return self._invoke(input, _models.GET_USAGE_PLAN_KEY, [], plugins) + def get_usage_plan_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsagePlanKeyOutput: + return self._invoke( + self._select_input(_models.GET_USAGE_PLAN_KEY, args, kwargs), + _models.GET_USAGE_PLAN_KEY, + [], + plugins, + ) + + @_overload + def get_usage_plan_keys( + self, + request: _models.GetUsagePlanKeysInput | _models.GetUsagePlanKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsagePlanKeysOutput: ... + + @_overload def get_usage_plan_keys( - self, input: GetUsagePlanKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsagePlanKeysInputDict], ) -> GetUsagePlanKeysOutput: """ Gets all the usage plan keys representing the API keys added to a specified usage plan. Args: - input: - An instance of `GetUsagePlanKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2032,19 +3692,38 @@ def get_usage_plan_keys( Returns: An instance of `GetUsagePlanKeysOutput`. """ - return self._invoke(input, _models.GET_USAGE_PLAN_KEYS, [], plugins) + def get_usage_plan_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsagePlanKeysOutput: + return self._invoke( + self._select_input(_models.GET_USAGE_PLAN_KEYS, args, kwargs), + _models.GET_USAGE_PLAN_KEYS, + [], + plugins, + ) + + @_overload + def get_usage_plans( + self, + request: _models.GetUsagePlansInput | _models.GetUsagePlansInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsagePlansOutput: ... + + @_overload def get_usage_plans( self, - input: GetUsagePlansInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsagePlansInputDict], ) -> GetUsagePlansOutput: """ Gets all the usage plans of the caller's account. Args: - input: - An instance of `GetUsagePlansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2054,17 +3733,38 @@ def get_usage_plans( Returns: An instance of `GetUsagePlansOutput`. """ - return self._invoke(input, _models.GET_USAGE_PLANS, [], plugins) + def get_usage_plans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsagePlansOutput: + return self._invoke( + self._select_input(_models.GET_USAGE_PLANS, args, kwargs), + _models.GET_USAGE_PLANS, + [], + plugins, + ) + + @_overload + def get_vpc_link( + self, + request: _models.GetVpcLinkInput | _models.GetVpcLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcLinkOutput: ... + + @_overload def get_vpc_link( - self, input: GetVpcLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpcLinkInputDict], ) -> GetVpcLinkOutput: """ Gets a specified VPC link under the caller's account in a region. Args: - input: - An instance of `GetVpcLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2074,18 +3774,39 @@ def get_vpc_link( Returns: An instance of `GetVpcLinkOutput`. """ - return self._invoke(input, _models.GET_VPC_LINK, [], plugins) + def get_vpc_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcLinkOutput: + return self._invoke( + self._select_input(_models.GET_VPC_LINK, args, kwargs), + _models.GET_VPC_LINK, + [], + plugins, + ) + + @_overload + def get_vpc_links( + self, + request: _models.GetVpcLinksInput | _models.GetVpcLinksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcLinksOutput: ... + + @_overload def get_vpc_links( - self, input: GetVpcLinksInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpcLinksInputDict], ) -> GetVpcLinksOutput: """ Gets the VpcLinks collection under the caller's account in a selected region. Args: - input: - An instance of `GetVpcLinksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2095,17 +3816,38 @@ def get_vpc_links( Returns: An instance of `GetVpcLinksOutput`. """ - return self._invoke(input, _models.GET_VPC_LINKS, [], plugins) + def get_vpc_links( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcLinksOutput: + return self._invoke( + self._select_input(_models.GET_VPC_LINKS, args, kwargs), + _models.GET_VPC_LINKS, + [], + plugins, + ) + + @_overload + def import_api_keys( + self, + request: _models.ImportApiKeysInput | _models.ImportApiKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportApiKeysOutput: ... + + @_overload def import_api_keys( - self, input: ImportApiKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportApiKeysInputDict], ) -> ImportApiKeysOutput: """ Import API keys from an external source, such as a CSV-formatted file. Args: - input: - An instance of `ImportApiKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2115,17 +3857,39 @@ def import_api_keys( Returns: An instance of `ImportApiKeysOutput`. """ - return self._invoke(input, _models.IMPORT_API_KEYS, [], plugins) + def import_api_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportApiKeysOutput: + return self._invoke( + self._select_input(_models.IMPORT_API_KEYS, args, kwargs), + _models.IMPORT_API_KEYS, + [], + plugins, + ) + + @_overload + def import_documentation_parts( + self, + request: _models.ImportDocumentationPartsInput + | _models.ImportDocumentationPartsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportDocumentationPartsOutput: ... + + @_overload def import_documentation_parts( - self, input: ImportDocumentationPartsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportDocumentationPartsInputDict], ) -> ImportDocumentationPartsOutput: """ Imports documentation parts Args: - input: - An instance of `ImportDocumentationPartsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2135,18 +3899,39 @@ def import_documentation_parts( Returns: An instance of `ImportDocumentationPartsOutput`. """ - return self._invoke(input, _models.IMPORT_DOCUMENTATION_PARTS, [], plugins) + def import_documentation_parts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportDocumentationPartsOutput: + return self._invoke( + self._select_input(_models.IMPORT_DOCUMENTATION_PARTS, args, kwargs), + _models.IMPORT_DOCUMENTATION_PARTS, + [], + plugins, + ) + + @_overload + def import_rest_api( + self, + request: _models.ImportRestApiInput | _models.ImportRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportRestApiOutput: ... + + @_overload def import_rest_api( - self, input: ImportRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportRestApiInputDict], ) -> ImportRestApiOutput: """ A feature of the API Gateway control service for creating a new API from an external API definition file. Args: - input: - An instance of `ImportRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2156,18 +3941,39 @@ def import_rest_api( Returns: An instance of `ImportRestApiOutput`. """ - return self._invoke(input, _models.IMPORT_REST_API, [], plugins) + def import_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportRestApiOutput: + return self._invoke( + self._select_input(_models.IMPORT_REST_API, args, kwargs), + _models.IMPORT_REST_API, + [], + plugins, + ) + + @_overload + def put_gateway_response( + self, + request: _models.PutGatewayResponseInput | _models.PutGatewayResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutGatewayResponseOutput: ... + + @_overload def put_gateway_response( - self, input: PutGatewayResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutGatewayResponseInputDict], ) -> PutGatewayResponseOutput: """ Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi. Args: - input: - An instance of `PutGatewayResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2177,17 +3983,38 @@ def put_gateway_response( Returns: An instance of `PutGatewayResponseOutput`. """ - return self._invoke(input, _models.PUT_GATEWAY_RESPONSE, [], plugins) + def put_gateway_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutGatewayResponseOutput: + return self._invoke( + self._select_input(_models.PUT_GATEWAY_RESPONSE, args, kwargs), + _models.PUT_GATEWAY_RESPONSE, + [], + plugins, + ) + + @_overload def put_integration( - self, input: PutIntegrationInput, plugins: list[Plugin] | None = None + self, + request: _models.PutIntegrationInput | _models.PutIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutIntegrationOutput: ... + + @_overload + def put_integration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutIntegrationInputDict], ) -> PutIntegrationOutput: """ Sets up a method's integration. Args: - input: - An instance of `PutIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2197,17 +4024,39 @@ def put_integration( Returns: An instance of `PutIntegrationOutput`. """ - return self._invoke(input, _models.PUT_INTEGRATION, [], plugins) + def put_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutIntegrationOutput: + return self._invoke( + self._select_input(_models.PUT_INTEGRATION, args, kwargs), + _models.PUT_INTEGRATION, + [], + plugins, + ) + + @_overload + def put_integration_response( + self, + request: _models.PutIntegrationResponseInput + | _models.PutIntegrationResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutIntegrationResponseOutput: ... + + @_overload def put_integration_response( - self, input: PutIntegrationResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutIntegrationResponseInputDict], ) -> PutIntegrationResponseOutput: """ Represents a put integration. Args: - input: - An instance of `PutIntegrationResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2217,17 +4066,38 @@ def put_integration_response( Returns: An instance of `PutIntegrationResponseOutput`. """ - return self._invoke(input, _models.PUT_INTEGRATION_RESPONSE, [], plugins) + def put_integration_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutIntegrationResponseOutput: + return self._invoke( + self._select_input(_models.PUT_INTEGRATION_RESPONSE, args, kwargs), + _models.PUT_INTEGRATION_RESPONSE, + [], + plugins, + ) + + @_overload + def put_method( + self, + request: _models.PutMethodInput | _models.PutMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutMethodOutput: ... + + @_overload def put_method( - self, input: PutMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutMethodInputDict], ) -> PutMethodOutput: """ Add a method to an existing Resource resource. Args: - input: - An instance of `PutMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2237,17 +4107,38 @@ def put_method( Returns: An instance of `PutMethodOutput`. """ - return self._invoke(input, _models.PUT_METHOD, [], plugins) + def put_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutMethodOutput: + return self._invoke( + self._select_input(_models.PUT_METHOD, args, kwargs), + _models.PUT_METHOD, + [], + plugins, + ) + + @_overload + def put_method_response( + self, + request: _models.PutMethodResponseInput | _models.PutMethodResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutMethodResponseOutput: ... + + @_overload def put_method_response( - self, input: PutMethodResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutMethodResponseInputDict], ) -> PutMethodResponseOutput: """ Adds a MethodResponse to an existing Method resource. Args: - input: - An instance of `PutMethodResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2257,10 +4148,33 @@ def put_method_response( Returns: An instance of `PutMethodResponseOutput`. """ - return self._invoke(input, _models.PUT_METHOD_RESPONSE, [], plugins) + def put_method_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutMethodResponseOutput: + return self._invoke( + self._select_input(_models.PUT_METHOD_RESPONSE, args, kwargs), + _models.PUT_METHOD_RESPONSE, + [], + plugins, + ) + + @_overload + def put_rest_api( + self, + request: _models.PutRestApiInput | _models.PutRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRestApiOutput: ... + + @_overload def put_rest_api( - self, input: PutRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRestApiInputDict], ) -> PutRestApiOutput: """ A feature of the API Gateway control service for updating an existing @@ -2269,8 +4183,6 @@ def put_rest_api( overwriting the existing API. Args: - input: - An instance of `PutRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2280,12 +4192,34 @@ def put_rest_api( Returns: An instance of `PutRestApiOutput`. """ - return self._invoke(input, _models.PUT_REST_API, [], plugins) + def put_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRestApiOutput: + return self._invoke( + self._select_input(_models.PUT_REST_API, args, kwargs), + _models.PUT_REST_API, + [], + plugins, + ) + + @_overload + def reject_domain_name_access_association( + self, + request: _models.RejectDomainNameAccessAssociationInput + | _models.RejectDomainNameAccessAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectDomainNameAccessAssociationOutput: ... + + @_overload def reject_domain_name_access_association( self, - input: RejectDomainNameAccessAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectDomainNameAccessAssociationInputDict], ) -> RejectDomainNameAccessAssociationOutput: """ Rejects a domain name access association with a private custom domain @@ -2297,8 +4231,6 @@ def reject_domain_name_access_association( account, use the DeleteDomainNameAccessAssociation operation. Args: - input: - An instance of `RejectDomainNameAccessAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2308,19 +4240,40 @@ def reject_domain_name_access_association( Returns: An instance of `RejectDomainNameAccessAssociationOutput`. """ + + def reject_domain_name_access_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectDomainNameAccessAssociationOutput: return self._invoke( - input, _models.REJECT_DOMAIN_NAME_ACCESS_ASSOCIATION, [], plugins + self._select_input( + _models.REJECT_DOMAIN_NAME_ACCESS_ASSOCIATION, args, kwargs + ), + _models.REJECT_DOMAIN_NAME_ACCESS_ASSOCIATION, + [], + plugins, ) + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds or updates a tag on a given resource. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2330,18 +4283,40 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def test_invoke_authorizer( + self, + request: _models.TestInvokeAuthorizerInput + | _models.TestInvokeAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestInvokeAuthorizerOutput: ... + + @_overload def test_invoke_authorizer( - self, input: TestInvokeAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestInvokeAuthorizerInputDict], ) -> TestInvokeAuthorizerOutput: """ Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body. Args: - input: - An instance of `TestInvokeAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2351,18 +4326,39 @@ def test_invoke_authorizer( Returns: An instance of `TestInvokeAuthorizerOutput`. """ - return self._invoke(input, _models.TEST_INVOKE_AUTHORIZER, [], plugins) + def test_invoke_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestInvokeAuthorizerOutput: + return self._invoke( + self._select_input(_models.TEST_INVOKE_AUTHORIZER, args, kwargs), + _models.TEST_INVOKE_AUTHORIZER, + [], + plugins, + ) + + @_overload + def test_invoke_method( + self, + request: _models.TestInvokeMethodInput | _models.TestInvokeMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestInvokeMethodOutput: ... + + @_overload def test_invoke_method( - self, input: TestInvokeMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestInvokeMethodInputDict], ) -> TestInvokeMethodOutput: """ Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body. Args: - input: - An instance of `TestInvokeMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2372,17 +4368,38 @@ def test_invoke_method( Returns: An instance of `TestInvokeMethodOutput`. """ - return self._invoke(input, _models.TEST_INVOKE_METHOD, [], plugins) + def test_invoke_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestInvokeMethodOutput: + return self._invoke( + self._select_input(_models.TEST_INVOKE_METHOD, args, kwargs), + _models.TEST_INVOKE_METHOD, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes a tag from a given resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2392,19 +4409,38 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_account( + self, + request: _models.UpdateAccountInput | _models.UpdateAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAccountOutput: ... + + @_overload def update_account( self, - input: UpdateAccountInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAccountInputDict], ) -> UpdateAccountOutput: """ Changes information about the current Account resource. Args: - input: - An instance of `UpdateAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2414,17 +4450,38 @@ def update_account( Returns: An instance of `UpdateAccountOutput`. """ - return self._invoke(input, _models.UPDATE_ACCOUNT, [], plugins) + def update_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAccountOutput: + return self._invoke( + self._select_input(_models.UPDATE_ACCOUNT, args, kwargs), + _models.UPDATE_ACCOUNT, + [], + plugins, + ) + + @_overload + def update_api_key( + self, + request: _models.UpdateApiKeyInput | _models.UpdateApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateApiKeyOutput: ... + + @_overload def update_api_key( - self, input: UpdateApiKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateApiKeyInputDict], ) -> UpdateApiKeyOutput: """ Changes information about an ApiKey resource. Args: - input: - An instance of `UpdateApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2434,17 +4491,38 @@ def update_api_key( Returns: An instance of `UpdateApiKeyOutput`. """ - return self._invoke(input, _models.UPDATE_API_KEY, [], plugins) + def update_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateApiKeyOutput: + return self._invoke( + self._select_input(_models.UPDATE_API_KEY, args, kwargs), + _models.UPDATE_API_KEY, + [], + plugins, + ) + + @_overload + def update_authorizer( + self, + request: _models.UpdateAuthorizerInput | _models.UpdateAuthorizerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAuthorizerOutput: ... + + @_overload def update_authorizer( - self, input: UpdateAuthorizerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAuthorizerInputDict], ) -> UpdateAuthorizerOutput: """ Updates an existing Authorizer resource. Args: - input: - An instance of `UpdateAuthorizerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2454,17 +4532,39 @@ def update_authorizer( Returns: An instance of `UpdateAuthorizerOutput`. """ - return self._invoke(input, _models.UPDATE_AUTHORIZER, [], plugins) + def update_authorizer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAuthorizerOutput: + return self._invoke( + self._select_input(_models.UPDATE_AUTHORIZER, args, kwargs), + _models.UPDATE_AUTHORIZER, + [], + plugins, + ) + + @_overload + def update_base_path_mapping( + self, + request: _models.UpdateBasePathMappingInput + | _models.UpdateBasePathMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBasePathMappingOutput: ... + + @_overload def update_base_path_mapping( - self, input: UpdateBasePathMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateBasePathMappingInputDict], ) -> UpdateBasePathMappingOutput: """ Changes information about the BasePathMapping resource. Args: - input: - An instance of `UpdateBasePathMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2474,17 +4574,39 @@ def update_base_path_mapping( Returns: An instance of `UpdateBasePathMappingOutput`. """ - return self._invoke(input, _models.UPDATE_BASE_PATH_MAPPING, [], plugins) + def update_base_path_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBasePathMappingOutput: + return self._invoke( + self._select_input(_models.UPDATE_BASE_PATH_MAPPING, args, kwargs), + _models.UPDATE_BASE_PATH_MAPPING, + [], + plugins, + ) + + @_overload + def update_client_certificate( + self, + request: _models.UpdateClientCertificateInput + | _models.UpdateClientCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateClientCertificateOutput: ... + + @_overload def update_client_certificate( - self, input: UpdateClientCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateClientCertificateInputDict], ) -> UpdateClientCertificateOutput: """ Changes information about an ClientCertificate resource. Args: - input: - An instance of `UpdateClientCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2494,17 +4616,38 @@ def update_client_certificate( Returns: An instance of `UpdateClientCertificateOutput`. """ - return self._invoke(input, _models.UPDATE_CLIENT_CERTIFICATE, [], plugins) + def update_client_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateClientCertificateOutput: + return self._invoke( + self._select_input(_models.UPDATE_CLIENT_CERTIFICATE, args, kwargs), + _models.UPDATE_CLIENT_CERTIFICATE, + [], + plugins, + ) + + @_overload + def update_deployment( + self, + request: _models.UpdateDeploymentInput | _models.UpdateDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDeploymentOutput: ... + + @_overload def update_deployment( - self, input: UpdateDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDeploymentInputDict], ) -> UpdateDeploymentOutput: """ Changes information about a Deployment resource. Args: - input: - An instance of `UpdateDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2514,17 +4657,39 @@ def update_deployment( Returns: An instance of `UpdateDeploymentOutput`. """ - return self._invoke(input, _models.UPDATE_DEPLOYMENT, [], plugins) + def update_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDeploymentOutput: + return self._invoke( + self._select_input(_models.UPDATE_DEPLOYMENT, args, kwargs), + _models.UPDATE_DEPLOYMENT, + [], + plugins, + ) + + @_overload + def update_documentation_part( + self, + request: _models.UpdateDocumentationPartInput + | _models.UpdateDocumentationPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDocumentationPartOutput: ... + + @_overload def update_documentation_part( - self, input: UpdateDocumentationPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDocumentationPartInputDict], ) -> UpdateDocumentationPartOutput: """ Updates a documentation part. Args: - input: - An instance of `UpdateDocumentationPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2534,19 +4699,39 @@ def update_documentation_part( Returns: An instance of `UpdateDocumentationPartOutput`. """ - return self._invoke(input, _models.UPDATE_DOCUMENTATION_PART, [], plugins) + def update_documentation_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDocumentationPartOutput: + return self._invoke( + self._select_input(_models.UPDATE_DOCUMENTATION_PART, args, kwargs), + _models.UPDATE_DOCUMENTATION_PART, + [], + plugins, + ) + + @_overload + def update_documentation_version( + self, + request: _models.UpdateDocumentationVersionInput + | _models.UpdateDocumentationVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDocumentationVersionOutput: ... + + @_overload def update_documentation_version( self, - input: UpdateDocumentationVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDocumentationVersionInputDict], ) -> UpdateDocumentationVersionOutput: """ Updates a documentation version. Args: - input: - An instance of `UpdateDocumentationVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2556,17 +4741,38 @@ def update_documentation_version( Returns: An instance of `UpdateDocumentationVersionOutput`. """ - return self._invoke(input, _models.UPDATE_DOCUMENTATION_VERSION, [], plugins) + def update_documentation_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDocumentationVersionOutput: + return self._invoke( + self._select_input(_models.UPDATE_DOCUMENTATION_VERSION, args, kwargs), + _models.UPDATE_DOCUMENTATION_VERSION, + [], + plugins, + ) + + @_overload + def update_domain_name( + self, + request: _models.UpdateDomainNameInput | _models.UpdateDomainNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDomainNameOutput: ... + + @_overload def update_domain_name( - self, input: UpdateDomainNameInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDomainNameInputDict], ) -> UpdateDomainNameOutput: """ Changes information about the DomainName resource. Args: - input: - An instance of `UpdateDomainNameInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2576,18 +4782,40 @@ def update_domain_name( Returns: An instance of `UpdateDomainNameOutput`. """ - return self._invoke(input, _models.UPDATE_DOMAIN_NAME, [], plugins) + def update_domain_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDomainNameOutput: + return self._invoke( + self._select_input(_models.UPDATE_DOMAIN_NAME, args, kwargs), + _models.UPDATE_DOMAIN_NAME, + [], + plugins, + ) + + @_overload + def update_gateway_response( + self, + request: _models.UpdateGatewayResponseInput + | _models.UpdateGatewayResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayResponseOutput: ... + + @_overload def update_gateway_response( - self, input: UpdateGatewayResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayResponseInputDict], ) -> UpdateGatewayResponseOutput: """ Updates a GatewayResponse of a specified response type on the given RestApi. Args: - input: - An instance of `UpdateGatewayResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2597,17 +4825,38 @@ def update_gateway_response( Returns: An instance of `UpdateGatewayResponseOutput`. """ - return self._invoke(input, _models.UPDATE_GATEWAY_RESPONSE, [], plugins) + def update_gateway_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayResponseOutput: + return self._invoke( + self._select_input(_models.UPDATE_GATEWAY_RESPONSE, args, kwargs), + _models.UPDATE_GATEWAY_RESPONSE, + [], + plugins, + ) + + @_overload + def update_integration( + self, + request: _models.UpdateIntegrationInput | _models.UpdateIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIntegrationOutput: ... + + @_overload def update_integration( - self, input: UpdateIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIntegrationInputDict], ) -> UpdateIntegrationOutput: """ Represents an update integration. Args: - input: - An instance of `UpdateIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2617,17 +4866,39 @@ def update_integration( Returns: An instance of `UpdateIntegrationOutput`. """ - return self._invoke(input, _models.UPDATE_INTEGRATION, [], plugins) + def update_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIntegrationOutput: + return self._invoke( + self._select_input(_models.UPDATE_INTEGRATION, args, kwargs), + _models.UPDATE_INTEGRATION, + [], + plugins, + ) + + @_overload + def update_integration_response( + self, + request: _models.UpdateIntegrationResponseInput + | _models.UpdateIntegrationResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIntegrationResponseOutput: ... + + @_overload def update_integration_response( - self, input: UpdateIntegrationResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIntegrationResponseInputDict], ) -> UpdateIntegrationResponseOutput: """ Represents an update integration response. Args: - input: - An instance of `UpdateIntegrationResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2637,17 +4908,38 @@ def update_integration_response( Returns: An instance of `UpdateIntegrationResponseOutput`. """ - return self._invoke(input, _models.UPDATE_INTEGRATION_RESPONSE, [], plugins) + def update_integration_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIntegrationResponseOutput: + return self._invoke( + self._select_input(_models.UPDATE_INTEGRATION_RESPONSE, args, kwargs), + _models.UPDATE_INTEGRATION_RESPONSE, + [], + plugins, + ) + + @_overload + def update_method( + self, + request: _models.UpdateMethodInput | _models.UpdateMethodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMethodOutput: ... + + @_overload def update_method( - self, input: UpdateMethodInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMethodInputDict], ) -> UpdateMethodOutput: """ Updates an existing Method resource. Args: - input: - An instance of `UpdateMethodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2657,17 +4949,39 @@ def update_method( Returns: An instance of `UpdateMethodOutput`. """ - return self._invoke(input, _models.UPDATE_METHOD, [], plugins) + def update_method( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMethodOutput: + return self._invoke( + self._select_input(_models.UPDATE_METHOD, args, kwargs), + _models.UPDATE_METHOD, + [], + plugins, + ) + + @_overload + def update_method_response( + self, + request: _models.UpdateMethodResponseInput + | _models.UpdateMethodResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMethodResponseOutput: ... + + @_overload def update_method_response( - self, input: UpdateMethodResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMethodResponseInputDict], ) -> UpdateMethodResponseOutput: """ Updates an existing MethodResponse resource. Args: - input: - An instance of `UpdateMethodResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2677,18 +4991,39 @@ def update_method_response( Returns: An instance of `UpdateMethodResponseOutput`. """ - return self._invoke(input, _models.UPDATE_METHOD_RESPONSE, [], plugins) + def update_method_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMethodResponseOutput: + return self._invoke( + self._select_input(_models.UPDATE_METHOD_RESPONSE, args, kwargs), + _models.UPDATE_METHOD_RESPONSE, + [], + plugins, + ) + + @_overload def update_model( - self, input: UpdateModelInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateModelInput | _models.UpdateModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateModelOutput: ... + + @_overload + def update_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateModelInputDict], ) -> UpdateModelOutput: """ Changes information about a model. The maximum size of the model is 400 KB. Args: - input: - An instance of `UpdateModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2698,17 +5033,39 @@ def update_model( Returns: An instance of `UpdateModelOutput`. """ - return self._invoke(input, _models.UPDATE_MODEL, [], plugins) + def update_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateModelOutput: + return self._invoke( + self._select_input(_models.UPDATE_MODEL, args, kwargs), + _models.UPDATE_MODEL, + [], + plugins, + ) + + @_overload + def update_request_validator( + self, + request: _models.UpdateRequestValidatorInput + | _models.UpdateRequestValidatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRequestValidatorOutput: ... + + @_overload def update_request_validator( - self, input: UpdateRequestValidatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRequestValidatorInputDict], ) -> UpdateRequestValidatorOutput: """ Updates a RequestValidator of a given RestApi. Args: - input: - An instance of `UpdateRequestValidatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2718,17 +5075,38 @@ def update_request_validator( Returns: An instance of `UpdateRequestValidatorOutput`. """ - return self._invoke(input, _models.UPDATE_REQUEST_VALIDATOR, [], plugins) + def update_request_validator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRequestValidatorOutput: + return self._invoke( + self._select_input(_models.UPDATE_REQUEST_VALIDATOR, args, kwargs), + _models.UPDATE_REQUEST_VALIDATOR, + [], + plugins, + ) + + @_overload + def update_resource( + self, + request: _models.UpdateResourceInput | _models.UpdateResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateResourceOutput: ... + + @_overload def update_resource( - self, input: UpdateResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateResourceInputDict], ) -> UpdateResourceOutput: """ Changes information about a Resource resource. Args: - input: - An instance of `UpdateResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2738,17 +5116,38 @@ def update_resource( Returns: An instance of `UpdateResourceOutput`. """ - return self._invoke(input, _models.UPDATE_RESOURCE, [], plugins) + def update_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateResourceOutput: + return self._invoke( + self._select_input(_models.UPDATE_RESOURCE, args, kwargs), + _models.UPDATE_RESOURCE, + [], + plugins, + ) + + @_overload + def update_rest_api( + self, + request: _models.UpdateRestApiInput | _models.UpdateRestApiInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRestApiOutput: ... + + @_overload def update_rest_api( - self, input: UpdateRestApiInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRestApiInputDict], ) -> UpdateRestApiOutput: """ Changes information about the specified API. Args: - input: - An instance of `UpdateRestApiInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2758,17 +5157,38 @@ def update_rest_api( Returns: An instance of `UpdateRestApiOutput`. """ - return self._invoke(input, _models.UPDATE_REST_API, [], plugins) + def update_rest_api( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRestApiOutput: + return self._invoke( + self._select_input(_models.UPDATE_REST_API, args, kwargs), + _models.UPDATE_REST_API, + [], + plugins, + ) + + @_overload + def update_stage( + self, + request: _models.UpdateStageInput | _models.UpdateStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStageOutput: ... + + @_overload def update_stage( - self, input: UpdateStageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStageInputDict], ) -> UpdateStageOutput: """ Changes information about a Stage resource. Args: - input: - An instance of `UpdateStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2778,18 +5198,39 @@ def update_stage( Returns: An instance of `UpdateStageOutput`. """ - return self._invoke(input, _models.UPDATE_STAGE, [], plugins) + def update_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStageOutput: + return self._invoke( + self._select_input(_models.UPDATE_STAGE, args, kwargs), + _models.UPDATE_STAGE, + [], + plugins, + ) + + @_overload + def update_usage( + self, + request: _models.UpdateUsageInput | _models.UpdateUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateUsageOutput: ... + + @_overload def update_usage( - self, input: UpdateUsageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateUsageInputDict], ) -> UpdateUsageOutput: """ Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key. Args: - input: - An instance of `UpdateUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2799,17 +5240,38 @@ def update_usage( Returns: An instance of `UpdateUsageOutput`. """ - return self._invoke(input, _models.UPDATE_USAGE, [], plugins) + def update_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateUsageOutput: + return self._invoke( + self._select_input(_models.UPDATE_USAGE, args, kwargs), + _models.UPDATE_USAGE, + [], + plugins, + ) + + @_overload + def update_usage_plan( + self, + request: _models.UpdateUsagePlanInput | _models.UpdateUsagePlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateUsagePlanOutput: ... + + @_overload def update_usage_plan( - self, input: UpdateUsagePlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateUsagePlanInputDict], ) -> UpdateUsagePlanOutput: """ Updates a usage plan of a given plan Id. Args: - input: - An instance of `UpdateUsagePlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2819,17 +5281,38 @@ def update_usage_plan( Returns: An instance of `UpdateUsagePlanOutput`. """ - return self._invoke(input, _models.UPDATE_USAGE_PLAN, [], plugins) + def update_usage_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateUsagePlanOutput: + return self._invoke( + self._select_input(_models.UPDATE_USAGE_PLAN, args, kwargs), + _models.UPDATE_USAGE_PLAN, + [], + plugins, + ) + + @_overload + def update_vpc_link( + self, + request: _models.UpdateVpcLinkInput | _models.UpdateVpcLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateVpcLinkOutput: ... + + @_overload def update_vpc_link( - self, input: UpdateVpcLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateVpcLinkInputDict], ) -> UpdateVpcLinkOutput: """ Updates an existing VpcLink of a specified identifier. Args: - input: - An instance of `UpdateVpcLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2839,7 +5322,16 @@ def update_vpc_link( Returns: An instance of `UpdateVpcLinkOutput`. """ - return self._invoke(input, _models.UPDATE_VPC_LINK, [], plugins) + + def update_vpc_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateVpcLinkOutput: + return self._invoke( + self._select_input(_models.UPDATE_VPC_LINK, args, kwargs), + _models.UPDATE_VPC_LINK, + [], + plugins, + ) def _new_config(self) -> APIGatewayConfig: return APIGatewayConfig.resolve() diff --git a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/models.pyi b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/models.pyi index 2154f3571..9acdef0e6 100644 --- a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/models.pyi +++ b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/models.pyi @@ -14,6 +14,7 @@ from ._private.models_0 import ( ApiKeysFormat as ApiKeysFormat, ApiKeySourceType as ApiKeySourceType, ApiStage as ApiStage, + ApiStageDict as ApiStageDict, ApiStatus as ApiStatus, Authorizer as Authorizer, AuthorizerType as AuthorizerType, @@ -22,90 +23,131 @@ from ._private.models_0 import ( CacheClusterSize as CacheClusterSize, CacheClusterStatus as CacheClusterStatus, CanarySettings as CanarySettings, + CanarySettingsDict as CanarySettingsDict, ClientCertificate as ClientCertificate, ConflictException as ConflictException, ConnectionType as ConnectionType, ContentHandlingStrategy as ContentHandlingStrategy, CreateApiKeyInput as CreateApiKeyInput, + CreateApiKeyInputDict as CreateApiKeyInputDict, CreateApiKeyOutput as CreateApiKeyOutput, CreateAuthorizerInput as CreateAuthorizerInput, + CreateAuthorizerInputDict as CreateAuthorizerInputDict, CreateAuthorizerOutput as CreateAuthorizerOutput, CreateBasePathMappingInput as CreateBasePathMappingInput, + CreateBasePathMappingInputDict as CreateBasePathMappingInputDict, CreateBasePathMappingOutput as CreateBasePathMappingOutput, CreateDeploymentInput as CreateDeploymentInput, + CreateDeploymentInputDict as CreateDeploymentInputDict, CreateDeploymentOutput as CreateDeploymentOutput, CreateDocumentationPartInput as CreateDocumentationPartInput, + CreateDocumentationPartInputDict as CreateDocumentationPartInputDict, CreateDocumentationPartOutput as CreateDocumentationPartOutput, CreateDocumentationVersionInput as CreateDocumentationVersionInput, + CreateDocumentationVersionInputDict as CreateDocumentationVersionInputDict, CreateDocumentationVersionOutput as CreateDocumentationVersionOutput, CreateDomainNameAccessAssociationInput as CreateDomainNameAccessAssociationInput, + CreateDomainNameAccessAssociationInputDict as CreateDomainNameAccessAssociationInputDict, CreateDomainNameAccessAssociationOutput as CreateDomainNameAccessAssociationOutput, CreateDomainNameInput as CreateDomainNameInput, + CreateDomainNameInputDict as CreateDomainNameInputDict, CreateDomainNameOutput as CreateDomainNameOutput, CreateModelInput as CreateModelInput, + CreateModelInputDict as CreateModelInputDict, CreateModelOutput as CreateModelOutput, CreateRequestValidatorInput as CreateRequestValidatorInput, + CreateRequestValidatorInputDict as CreateRequestValidatorInputDict, CreateRequestValidatorOutput as CreateRequestValidatorOutput, CreateResourceInput as CreateResourceInput, + CreateResourceInputDict as CreateResourceInputDict, CreateResourceOutput as CreateResourceOutput, CreateRestApiInput as CreateRestApiInput, + CreateRestApiInputDict as CreateRestApiInputDict, CreateRestApiOutput as CreateRestApiOutput, CreateStageInput as CreateStageInput, + CreateStageInputDict as CreateStageInputDict, CreateStageOutput as CreateStageOutput, CreateUsagePlanInput as CreateUsagePlanInput, + CreateUsagePlanInputDict as CreateUsagePlanInputDict, CreateUsagePlanKeyInput as CreateUsagePlanKeyInput, + CreateUsagePlanKeyInputDict as CreateUsagePlanKeyInputDict, CreateUsagePlanKeyOutput as CreateUsagePlanKeyOutput, CreateUsagePlanOutput as CreateUsagePlanOutput, CreateVpcLinkInput as CreateVpcLinkInput, + CreateVpcLinkInputDict as CreateVpcLinkInputDict, CreateVpcLinkOutput as CreateVpcLinkOutput, DeleteApiKeyInput as DeleteApiKeyInput, + DeleteApiKeyInputDict as DeleteApiKeyInputDict, DeleteApiKeyOutput as DeleteApiKeyOutput, DeleteAuthorizerInput as DeleteAuthorizerInput, + DeleteAuthorizerInputDict as DeleteAuthorizerInputDict, DeleteAuthorizerOutput as DeleteAuthorizerOutput, DeleteBasePathMappingInput as DeleteBasePathMappingInput, + DeleteBasePathMappingInputDict as DeleteBasePathMappingInputDict, DeleteBasePathMappingOutput as DeleteBasePathMappingOutput, DeleteClientCertificateInput as DeleteClientCertificateInput, + DeleteClientCertificateInputDict as DeleteClientCertificateInputDict, DeleteClientCertificateOutput as DeleteClientCertificateOutput, DeleteDeploymentInput as DeleteDeploymentInput, + DeleteDeploymentInputDict as DeleteDeploymentInputDict, DeleteDeploymentOutput as DeleteDeploymentOutput, DeleteDocumentationPartInput as DeleteDocumentationPartInput, + DeleteDocumentationPartInputDict as DeleteDocumentationPartInputDict, DeleteDocumentationPartOutput as DeleteDocumentationPartOutput, DeleteDocumentationVersionInput as DeleteDocumentationVersionInput, + DeleteDocumentationVersionInputDict as DeleteDocumentationVersionInputDict, DeleteDocumentationVersionOutput as DeleteDocumentationVersionOutput, DeleteDomainNameAccessAssociationInput as DeleteDomainNameAccessAssociationInput, + DeleteDomainNameAccessAssociationInputDict as DeleteDomainNameAccessAssociationInputDict, DeleteDomainNameAccessAssociationOutput as DeleteDomainNameAccessAssociationOutput, DeleteDomainNameInput as DeleteDomainNameInput, + DeleteDomainNameInputDict as DeleteDomainNameInputDict, DeleteDomainNameOutput as DeleteDomainNameOutput, DeleteGatewayResponseInput as DeleteGatewayResponseInput, + DeleteGatewayResponseInputDict as DeleteGatewayResponseInputDict, DeleteGatewayResponseOutput as DeleteGatewayResponseOutput, DeleteIntegrationInput as DeleteIntegrationInput, + DeleteIntegrationInputDict as DeleteIntegrationInputDict, DeleteIntegrationOutput as DeleteIntegrationOutput, DeleteIntegrationResponseInput as DeleteIntegrationResponseInput, + DeleteIntegrationResponseInputDict as DeleteIntegrationResponseInputDict, DeleteIntegrationResponseOutput as DeleteIntegrationResponseOutput, DeleteMethodInput as DeleteMethodInput, + DeleteMethodInputDict as DeleteMethodInputDict, DeleteMethodOutput as DeleteMethodOutput, DeleteMethodResponseInput as DeleteMethodResponseInput, + DeleteMethodResponseInputDict as DeleteMethodResponseInputDict, DeleteMethodResponseOutput as DeleteMethodResponseOutput, DeleteModelInput as DeleteModelInput, + DeleteModelInputDict as DeleteModelInputDict, DeleteModelOutput as DeleteModelOutput, DeleteRequestValidatorInput as DeleteRequestValidatorInput, + DeleteRequestValidatorInputDict as DeleteRequestValidatorInputDict, DeleteRequestValidatorOutput as DeleteRequestValidatorOutput, DeleteResourceInput as DeleteResourceInput, + DeleteResourceInputDict as DeleteResourceInputDict, DeleteResourceOutput as DeleteResourceOutput, DeleteRestApiInput as DeleteRestApiInput, + DeleteRestApiInputDict as DeleteRestApiInputDict, DeleteRestApiOutput as DeleteRestApiOutput, DeleteStageInput as DeleteStageInput, + DeleteStageInputDict as DeleteStageInputDict, DeleteStageOutput as DeleteStageOutput, DeleteUsagePlanInput as DeleteUsagePlanInput, + DeleteUsagePlanInputDict as DeleteUsagePlanInputDict, DeleteUsagePlanKeyInput as DeleteUsagePlanKeyInput, + DeleteUsagePlanKeyInputDict as DeleteUsagePlanKeyInputDict, DeleteUsagePlanKeyOutput as DeleteUsagePlanKeyOutput, DeleteUsagePlanOutput as DeleteUsagePlanOutput, DeleteVpcLinkInput as DeleteVpcLinkInput, + DeleteVpcLinkInputDict as DeleteVpcLinkInputDict, DeleteVpcLinkOutput as DeleteVpcLinkOutput, Deployment as Deployment, DeploymentCanarySettings as DeploymentCanarySettings, + DeploymentCanarySettingsDict as DeploymentCanarySettingsDict, DocumentationPart as DocumentationPart, DocumentationPartLocation as DocumentationPartLocation, + DocumentationPartLocationDict as DocumentationPartLocationDict, DocumentationPartType as DocumentationPartType, DocumentationVersion as DocumentationVersion, DomainName as DomainName, @@ -113,114 +155,168 @@ from ._private.models_0 import ( DomainNameStatus as DomainNameStatus, EndpointAccessMode as EndpointAccessMode, EndpointConfiguration as EndpointConfiguration, + EndpointConfigurationDict as EndpointConfigurationDict, EndpointType as EndpointType, FlushStageAuthorizersCacheInput as FlushStageAuthorizersCacheInput, + FlushStageAuthorizersCacheInputDict as FlushStageAuthorizersCacheInputDict, FlushStageAuthorizersCacheOutput as FlushStageAuthorizersCacheOutput, FlushStageCacheInput as FlushStageCacheInput, + FlushStageCacheInputDict as FlushStageCacheInputDict, FlushStageCacheOutput as FlushStageCacheOutput, GatewayResponse as GatewayResponse, GatewayResponseType as GatewayResponseType, GenerateClientCertificateInput as GenerateClientCertificateInput, + GenerateClientCertificateInputDict as GenerateClientCertificateInputDict, GenerateClientCertificateOutput as GenerateClientCertificateOutput, GetAccountInput as GetAccountInput, + GetAccountInputDict as GetAccountInputDict, GetAccountOutput as GetAccountOutput, GetApiKeyInput as GetApiKeyInput, + GetApiKeyInputDict as GetApiKeyInputDict, GetApiKeyOutput as GetApiKeyOutput, GetApiKeysInput as GetApiKeysInput, + GetApiKeysInputDict as GetApiKeysInputDict, GetApiKeysOutput as GetApiKeysOutput, GetAuthorizerInput as GetAuthorizerInput, + GetAuthorizerInputDict as GetAuthorizerInputDict, GetAuthorizerOutput as GetAuthorizerOutput, GetAuthorizersInput as GetAuthorizersInput, + GetAuthorizersInputDict as GetAuthorizersInputDict, GetAuthorizersOutput as GetAuthorizersOutput, GetBasePathMappingInput as GetBasePathMappingInput, + GetBasePathMappingInputDict as GetBasePathMappingInputDict, GetBasePathMappingOutput as GetBasePathMappingOutput, GetBasePathMappingsInput as GetBasePathMappingsInput, + GetBasePathMappingsInputDict as GetBasePathMappingsInputDict, GetBasePathMappingsOutput as GetBasePathMappingsOutput, GetClientCertificateInput as GetClientCertificateInput, + GetClientCertificateInputDict as GetClientCertificateInputDict, GetClientCertificateOutput as GetClientCertificateOutput, GetClientCertificatesInput as GetClientCertificatesInput, + GetClientCertificatesInputDict as GetClientCertificatesInputDict, GetClientCertificatesOutput as GetClientCertificatesOutput, GetDeploymentInput as GetDeploymentInput, + GetDeploymentInputDict as GetDeploymentInputDict, GetDeploymentOutput as GetDeploymentOutput, GetDeploymentsInput as GetDeploymentsInput, + GetDeploymentsInputDict as GetDeploymentsInputDict, GetDeploymentsOutput as GetDeploymentsOutput, GetDocumentationPartInput as GetDocumentationPartInput, + GetDocumentationPartInputDict as GetDocumentationPartInputDict, GetDocumentationPartOutput as GetDocumentationPartOutput, GetDocumentationPartsInput as GetDocumentationPartsInput, + GetDocumentationPartsInputDict as GetDocumentationPartsInputDict, GetDocumentationPartsOutput as GetDocumentationPartsOutput, GetDocumentationVersionInput as GetDocumentationVersionInput, + GetDocumentationVersionInputDict as GetDocumentationVersionInputDict, GetDocumentationVersionOutput as GetDocumentationVersionOutput, GetDocumentationVersionsInput as GetDocumentationVersionsInput, + GetDocumentationVersionsInputDict as GetDocumentationVersionsInputDict, GetDocumentationVersionsOutput as GetDocumentationVersionsOutput, GetDomainNameAccessAssociationsInput as GetDomainNameAccessAssociationsInput, + GetDomainNameAccessAssociationsInputDict as GetDomainNameAccessAssociationsInputDict, GetDomainNameAccessAssociationsOutput as GetDomainNameAccessAssociationsOutput, GetDomainNameInput as GetDomainNameInput, + GetDomainNameInputDict as GetDomainNameInputDict, GetDomainNameOutput as GetDomainNameOutput, GetDomainNamesInput as GetDomainNamesInput, + GetDomainNamesInputDict as GetDomainNamesInputDict, GetDomainNamesOutput as GetDomainNamesOutput, GetExportInput as GetExportInput, + GetExportInputDict as GetExportInputDict, GetExportOutput as GetExportOutput, GetGatewayResponseInput as GetGatewayResponseInput, + GetGatewayResponseInputDict as GetGatewayResponseInputDict, GetGatewayResponseOutput as GetGatewayResponseOutput, GetGatewayResponsesInput as GetGatewayResponsesInput, + GetGatewayResponsesInputDict as GetGatewayResponsesInputDict, GetGatewayResponsesOutput as GetGatewayResponsesOutput, GetIntegrationInput as GetIntegrationInput, + GetIntegrationInputDict as GetIntegrationInputDict, GetIntegrationOutput as GetIntegrationOutput, GetIntegrationResponseInput as GetIntegrationResponseInput, + GetIntegrationResponseInputDict as GetIntegrationResponseInputDict, GetIntegrationResponseOutput as GetIntegrationResponseOutput, GetMethodInput as GetMethodInput, + GetMethodInputDict as GetMethodInputDict, GetMethodOutput as GetMethodOutput, GetMethodResponseInput as GetMethodResponseInput, + GetMethodResponseInputDict as GetMethodResponseInputDict, GetMethodResponseOutput as GetMethodResponseOutput, GetModelInput as GetModelInput, + GetModelInputDict as GetModelInputDict, GetModelOutput as GetModelOutput, GetModelsInput as GetModelsInput, + GetModelsInputDict as GetModelsInputDict, GetModelsOutput as GetModelsOutput, GetModelTemplateInput as GetModelTemplateInput, + GetModelTemplateInputDict as GetModelTemplateInputDict, GetModelTemplateOutput as GetModelTemplateOutput, GetRequestValidatorInput as GetRequestValidatorInput, + GetRequestValidatorInputDict as GetRequestValidatorInputDict, GetRequestValidatorOutput as GetRequestValidatorOutput, GetRequestValidatorsInput as GetRequestValidatorsInput, + GetRequestValidatorsInputDict as GetRequestValidatorsInputDict, GetRequestValidatorsOutput as GetRequestValidatorsOutput, GetResourceInput as GetResourceInput, + GetResourceInputDict as GetResourceInputDict, GetResourceOutput as GetResourceOutput, GetResourcesInput as GetResourcesInput, + GetResourcesInputDict as GetResourcesInputDict, GetResourcesOutput as GetResourcesOutput, GetRestApiInput as GetRestApiInput, + GetRestApiInputDict as GetRestApiInputDict, GetRestApiOutput as GetRestApiOutput, GetRestApisInput as GetRestApisInput, + GetRestApisInputDict as GetRestApisInputDict, GetRestApisOutput as GetRestApisOutput, GetSdkInput as GetSdkInput, + GetSdkInputDict as GetSdkInputDict, GetSdkOutput as GetSdkOutput, GetSdkTypeInput as GetSdkTypeInput, + GetSdkTypeInputDict as GetSdkTypeInputDict, GetSdkTypeOutput as GetSdkTypeOutput, GetSdkTypesInput as GetSdkTypesInput, + GetSdkTypesInputDict as GetSdkTypesInputDict, GetSdkTypesOutput as GetSdkTypesOutput, GetStageInput as GetStageInput, + GetStageInputDict as GetStageInputDict, GetStageOutput as GetStageOutput, GetStagesInput as GetStagesInput, + GetStagesInputDict as GetStagesInputDict, GetStagesOutput as GetStagesOutput, GetTagsInput as GetTagsInput, + GetTagsInputDict as GetTagsInputDict, GetTagsOutput as GetTagsOutput, GetUsageInput as GetUsageInput, + GetUsageInputDict as GetUsageInputDict, GetUsageOutput as GetUsageOutput, GetUsagePlanInput as GetUsagePlanInput, + GetUsagePlanInputDict as GetUsagePlanInputDict, GetUsagePlanKeyInput as GetUsagePlanKeyInput, + GetUsagePlanKeyInputDict as GetUsagePlanKeyInputDict, GetUsagePlanKeyOutput as GetUsagePlanKeyOutput, GetUsagePlanKeysInput as GetUsagePlanKeysInput, + GetUsagePlanKeysInputDict as GetUsagePlanKeysInputDict, GetUsagePlanKeysOutput as GetUsagePlanKeysOutput, GetUsagePlanOutput as GetUsagePlanOutput, GetUsagePlansInput as GetUsagePlansInput, + GetUsagePlansInputDict as GetUsagePlansInputDict, GetUsagePlansOutput as GetUsagePlansOutput, GetVpcLinkInput as GetVpcLinkInput, + GetVpcLinkInputDict as GetVpcLinkInputDict, GetVpcLinkOutput as GetVpcLinkOutput, GetVpcLinksInput as GetVpcLinksInput, + GetVpcLinksInputDict as GetVpcLinksInputDict, GetVpcLinksOutput as GetVpcLinksOutput, ImportApiKeysInput as ImportApiKeysInput, + ImportApiKeysInputDict as ImportApiKeysInputDict, ImportApiKeysOutput as ImportApiKeysOutput, ImportDocumentationPartsInput as ImportDocumentationPartsInput, + ImportDocumentationPartsInputDict as ImportDocumentationPartsInputDict, ImportDocumentationPartsOutput as ImportDocumentationPartsOutput, ImportRestApiInput as ImportRestApiInput, + ImportRestApiInputDict as ImportRestApiInputDict, ImportRestApiOutput as ImportRestApiOutput, Integration as Integration, IntegrationResponse as IntegrationResponse, @@ -235,25 +331,35 @@ from ._private.models_0 import ( Model as Model, MutualTlsAuthentication as MutualTlsAuthentication, MutualTlsAuthenticationInput as MutualTlsAuthenticationInput, + MutualTlsAuthenticationInputDict as MutualTlsAuthenticationInputDict, NotFoundException as NotFoundException, Op as Op, PatchOperation as PatchOperation, + PatchOperationDict as PatchOperationDict, PutGatewayResponseInput as PutGatewayResponseInput, + PutGatewayResponseInputDict as PutGatewayResponseInputDict, PutGatewayResponseOutput as PutGatewayResponseOutput, PutIntegrationInput as PutIntegrationInput, + PutIntegrationInputDict as PutIntegrationInputDict, PutIntegrationOutput as PutIntegrationOutput, PutIntegrationResponseInput as PutIntegrationResponseInput, + PutIntegrationResponseInputDict as PutIntegrationResponseInputDict, PutIntegrationResponseOutput as PutIntegrationResponseOutput, PutMethodInput as PutMethodInput, + PutMethodInputDict as PutMethodInputDict, PutMethodOutput as PutMethodOutput, PutMethodResponseInput as PutMethodResponseInput, + PutMethodResponseInputDict as PutMethodResponseInputDict, PutMethodResponseOutput as PutMethodResponseOutput, PutMode as PutMode, PutRestApiInput as PutRestApiInput, + PutRestApiInputDict as PutRestApiInputDict, PutRestApiOutput as PutRestApiOutput, QuotaPeriodType as QuotaPeriodType, QuotaSettings as QuotaSettings, + QuotaSettingsDict as QuotaSettingsDict, RejectDomainNameAccessAssociationInput as RejectDomainNameAccessAssociationInput, + RejectDomainNameAccessAssociationInputDict as RejectDomainNameAccessAssociationInputDict, RejectDomainNameAccessAssociationOutput as RejectDomainNameAccessAssociationOutput, RequestValidator as RequestValidator, Resource as Resource, @@ -270,62 +376,91 @@ from ._private.models_1 import ( ServiceUnavailableException as ServiceUnavailableException, Stage as Stage, StageKey as StageKey, + StageKeyDict as StageKeyDict, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, TestInvokeAuthorizerInput as TestInvokeAuthorizerInput, + TestInvokeAuthorizerInputDict as TestInvokeAuthorizerInputDict, TestInvokeAuthorizerOutput as TestInvokeAuthorizerOutput, TestInvokeMethodInput as TestInvokeMethodInput, + TestInvokeMethodInputDict as TestInvokeMethodInputDict, TestInvokeMethodOutput as TestInvokeMethodOutput, ThrottleSettings as ThrottleSettings, + ThrottleSettingsDict as ThrottleSettingsDict, TlsConfig as TlsConfig, + TlsConfigDict as TlsConfigDict, TooManyRequestsException as TooManyRequestsException, UnauthorizedCacheControlHeaderStrategy as UnauthorizedCacheControlHeaderStrategy, UnauthorizedException as UnauthorizedException, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateAccountInput as UpdateAccountInput, + UpdateAccountInputDict as UpdateAccountInputDict, UpdateAccountOutput as UpdateAccountOutput, UpdateApiKeyInput as UpdateApiKeyInput, + UpdateApiKeyInputDict as UpdateApiKeyInputDict, UpdateApiKeyOutput as UpdateApiKeyOutput, UpdateAuthorizerInput as UpdateAuthorizerInput, + UpdateAuthorizerInputDict as UpdateAuthorizerInputDict, UpdateAuthorizerOutput as UpdateAuthorizerOutput, UpdateBasePathMappingInput as UpdateBasePathMappingInput, + UpdateBasePathMappingInputDict as UpdateBasePathMappingInputDict, UpdateBasePathMappingOutput as UpdateBasePathMappingOutput, UpdateClientCertificateInput as UpdateClientCertificateInput, + UpdateClientCertificateInputDict as UpdateClientCertificateInputDict, UpdateClientCertificateOutput as UpdateClientCertificateOutput, UpdateDeploymentInput as UpdateDeploymentInput, + UpdateDeploymentInputDict as UpdateDeploymentInputDict, UpdateDeploymentOutput as UpdateDeploymentOutput, UpdateDocumentationPartInput as UpdateDocumentationPartInput, + UpdateDocumentationPartInputDict as UpdateDocumentationPartInputDict, UpdateDocumentationPartOutput as UpdateDocumentationPartOutput, UpdateDocumentationVersionInput as UpdateDocumentationVersionInput, + UpdateDocumentationVersionInputDict as UpdateDocumentationVersionInputDict, UpdateDocumentationVersionOutput as UpdateDocumentationVersionOutput, UpdateDomainNameInput as UpdateDomainNameInput, + UpdateDomainNameInputDict as UpdateDomainNameInputDict, UpdateDomainNameOutput as UpdateDomainNameOutput, UpdateGatewayResponseInput as UpdateGatewayResponseInput, + UpdateGatewayResponseInputDict as UpdateGatewayResponseInputDict, UpdateGatewayResponseOutput as UpdateGatewayResponseOutput, UpdateIntegrationInput as UpdateIntegrationInput, + UpdateIntegrationInputDict as UpdateIntegrationInputDict, UpdateIntegrationOutput as UpdateIntegrationOutput, UpdateIntegrationResponseInput as UpdateIntegrationResponseInput, + UpdateIntegrationResponseInputDict as UpdateIntegrationResponseInputDict, UpdateIntegrationResponseOutput as UpdateIntegrationResponseOutput, UpdateMethodInput as UpdateMethodInput, + UpdateMethodInputDict as UpdateMethodInputDict, UpdateMethodOutput as UpdateMethodOutput, UpdateMethodResponseInput as UpdateMethodResponseInput, + UpdateMethodResponseInputDict as UpdateMethodResponseInputDict, UpdateMethodResponseOutput as UpdateMethodResponseOutput, UpdateModelInput as UpdateModelInput, + UpdateModelInputDict as UpdateModelInputDict, UpdateModelOutput as UpdateModelOutput, UpdateRequestValidatorInput as UpdateRequestValidatorInput, + UpdateRequestValidatorInputDict as UpdateRequestValidatorInputDict, UpdateRequestValidatorOutput as UpdateRequestValidatorOutput, UpdateResourceInput as UpdateResourceInput, + UpdateResourceInputDict as UpdateResourceInputDict, UpdateResourceOutput as UpdateResourceOutput, UpdateRestApiInput as UpdateRestApiInput, + UpdateRestApiInputDict as UpdateRestApiInputDict, UpdateRestApiOutput as UpdateRestApiOutput, UpdateStageInput as UpdateStageInput, + UpdateStageInputDict as UpdateStageInputDict, UpdateStageOutput as UpdateStageOutput, UpdateUsageInput as UpdateUsageInput, + UpdateUsageInputDict as UpdateUsageInputDict, UpdateUsageOutput as UpdateUsageOutput, UpdateUsagePlanInput as UpdateUsagePlanInput, + UpdateUsagePlanInputDict as UpdateUsagePlanInputDict, UpdateUsagePlanOutput as UpdateUsagePlanOutput, UpdateVpcLinkInput as UpdateVpcLinkInput, + UpdateVpcLinkInputDict as UpdateVpcLinkInputDict, UpdateVpcLinkOutput as UpdateVpcLinkOutput, UsagePlan as UsagePlan, UsagePlanKey as UsagePlanKey, diff --git a/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/py.typed b/clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-api-gateway/tests/_typecheck.py b/clients/aws-sdk-api-gateway/tests/_typecheck.py index a8046ae1d..5cfa56f4c 100644 --- a/clients/aws-sdk-api-gateway/tests/_typecheck.py +++ b/clients/aws-sdk-api-gateway/tests/_typecheck.py @@ -2,204 +2,302 @@ from typing import Any +from aws_sdk_api_gateway.aio.client import AsyncAPIGatewayClient +from aws_sdk_api_gateway.client import APIGatewayClient from aws_sdk_api_gateway.models import ( AccessLogSettings, ApiKey, ApiStage, + ApiStageDict, Authorizer, BasePathMapping, CanarySettings, + CanarySettingsDict, ClientCertificate, CreateApiKeyInput, + CreateApiKeyInputDict, CreateApiKeyOutput, CreateAuthorizerInput, + CreateAuthorizerInputDict, CreateAuthorizerOutput, CreateBasePathMappingInput, + CreateBasePathMappingInputDict, CreateBasePathMappingOutput, CreateDeploymentInput, + CreateDeploymentInputDict, CreateDeploymentOutput, CreateDocumentationPartInput, + CreateDocumentationPartInputDict, CreateDocumentationPartOutput, CreateDocumentationVersionInput, + CreateDocumentationVersionInputDict, CreateDocumentationVersionOutput, CreateDomainNameAccessAssociationInput, + CreateDomainNameAccessAssociationInputDict, CreateDomainNameAccessAssociationOutput, CreateDomainNameInput, + CreateDomainNameInputDict, CreateDomainNameOutput, CreateModelInput, + CreateModelInputDict, CreateModelOutput, CreateRequestValidatorInput, + CreateRequestValidatorInputDict, CreateRequestValidatorOutput, CreateResourceInput, + CreateResourceInputDict, CreateResourceOutput, CreateRestApiInput, + CreateRestApiInputDict, CreateRestApiOutput, CreateStageInput, + CreateStageInputDict, CreateStageOutput, CreateUsagePlanInput, + CreateUsagePlanInputDict, CreateUsagePlanKeyInput, + CreateUsagePlanKeyInputDict, CreateUsagePlanKeyOutput, CreateUsagePlanOutput, CreateVpcLinkInput, + CreateVpcLinkInputDict, CreateVpcLinkOutput, DeleteApiKeyInput, + DeleteApiKeyInputDict, DeleteApiKeyOutput, DeleteAuthorizerInput, + DeleteAuthorizerInputDict, DeleteAuthorizerOutput, DeleteBasePathMappingInput, + DeleteBasePathMappingInputDict, DeleteBasePathMappingOutput, DeleteClientCertificateInput, + DeleteClientCertificateInputDict, DeleteClientCertificateOutput, DeleteDeploymentInput, + DeleteDeploymentInputDict, DeleteDeploymentOutput, DeleteDocumentationPartInput, + DeleteDocumentationPartInputDict, DeleteDocumentationPartOutput, DeleteDocumentationVersionInput, + DeleteDocumentationVersionInputDict, DeleteDocumentationVersionOutput, DeleteDomainNameAccessAssociationInput, + DeleteDomainNameAccessAssociationInputDict, DeleteDomainNameAccessAssociationOutput, DeleteDomainNameInput, + DeleteDomainNameInputDict, DeleteDomainNameOutput, DeleteGatewayResponseInput, + DeleteGatewayResponseInputDict, DeleteGatewayResponseOutput, DeleteIntegrationInput, + DeleteIntegrationInputDict, DeleteIntegrationOutput, DeleteIntegrationResponseInput, + DeleteIntegrationResponseInputDict, DeleteIntegrationResponseOutput, DeleteMethodInput, + DeleteMethodInputDict, DeleteMethodOutput, DeleteMethodResponseInput, + DeleteMethodResponseInputDict, DeleteMethodResponseOutput, DeleteModelInput, + DeleteModelInputDict, DeleteModelOutput, DeleteRequestValidatorInput, + DeleteRequestValidatorInputDict, DeleteRequestValidatorOutput, DeleteResourceInput, + DeleteResourceInputDict, DeleteResourceOutput, DeleteRestApiInput, + DeleteRestApiInputDict, DeleteRestApiOutput, DeleteStageInput, + DeleteStageInputDict, DeleteStageOutput, DeleteUsagePlanInput, + DeleteUsagePlanInputDict, DeleteUsagePlanKeyInput, + DeleteUsagePlanKeyInputDict, DeleteUsagePlanKeyOutput, DeleteUsagePlanOutput, DeleteVpcLinkInput, + DeleteVpcLinkInputDict, DeleteVpcLinkOutput, Deployment, DeploymentCanarySettings, + DeploymentCanarySettingsDict, DocumentationPart, DocumentationPartLocation, + DocumentationPartLocationDict, DocumentationVersion, DomainName, DomainNameAccessAssociation, EndpointConfiguration, + EndpointConfigurationDict, FlushStageAuthorizersCacheInput, + FlushStageAuthorizersCacheInputDict, FlushStageAuthorizersCacheOutput, FlushStageCacheInput, + FlushStageCacheInputDict, FlushStageCacheOutput, GatewayResponse, GenerateClientCertificateInput, + GenerateClientCertificateInputDict, GenerateClientCertificateOutput, GetAccountInput, + GetAccountInputDict, GetAccountOutput, GetApiKeyInput, + GetApiKeyInputDict, GetApiKeyOutput, GetApiKeysInput, + GetApiKeysInputDict, GetApiKeysOutput, GetAuthorizerInput, + GetAuthorizerInputDict, GetAuthorizerOutput, GetAuthorizersInput, + GetAuthorizersInputDict, GetAuthorizersOutput, GetBasePathMappingInput, + GetBasePathMappingInputDict, GetBasePathMappingOutput, GetBasePathMappingsInput, + GetBasePathMappingsInputDict, GetBasePathMappingsOutput, GetClientCertificateInput, + GetClientCertificateInputDict, GetClientCertificateOutput, GetClientCertificatesInput, + GetClientCertificatesInputDict, GetClientCertificatesOutput, GetDeploymentInput, + GetDeploymentInputDict, GetDeploymentOutput, GetDeploymentsInput, + GetDeploymentsInputDict, GetDeploymentsOutput, GetDocumentationPartInput, + GetDocumentationPartInputDict, GetDocumentationPartOutput, GetDocumentationPartsInput, + GetDocumentationPartsInputDict, GetDocumentationPartsOutput, GetDocumentationVersionInput, + GetDocumentationVersionInputDict, GetDocumentationVersionOutput, GetDocumentationVersionsInput, + GetDocumentationVersionsInputDict, GetDocumentationVersionsOutput, GetDomainNameAccessAssociationsInput, + GetDomainNameAccessAssociationsInputDict, GetDomainNameAccessAssociationsOutput, GetDomainNameInput, + GetDomainNameInputDict, GetDomainNameOutput, GetDomainNamesInput, + GetDomainNamesInputDict, GetDomainNamesOutput, GetExportInput, + GetExportInputDict, GetExportOutput, GetGatewayResponseInput, + GetGatewayResponseInputDict, GetGatewayResponseOutput, GetGatewayResponsesInput, + GetGatewayResponsesInputDict, GetGatewayResponsesOutput, GetIntegrationInput, + GetIntegrationInputDict, GetIntegrationOutput, GetIntegrationResponseInput, + GetIntegrationResponseInputDict, GetIntegrationResponseOutput, GetMethodInput, + GetMethodInputDict, GetMethodOutput, GetMethodResponseInput, + GetMethodResponseInputDict, GetMethodResponseOutput, GetModelInput, + GetModelInputDict, GetModelOutput, GetModelTemplateInput, + GetModelTemplateInputDict, GetModelTemplateOutput, GetModelsInput, + GetModelsInputDict, GetModelsOutput, GetRequestValidatorInput, + GetRequestValidatorInputDict, GetRequestValidatorOutput, GetRequestValidatorsInput, + GetRequestValidatorsInputDict, GetRequestValidatorsOutput, GetResourceInput, + GetResourceInputDict, GetResourceOutput, GetResourcesInput, + GetResourcesInputDict, GetResourcesOutput, GetRestApiInput, + GetRestApiInputDict, GetRestApiOutput, GetRestApisInput, + GetRestApisInputDict, GetRestApisOutput, GetSdkInput, + GetSdkInputDict, GetSdkOutput, GetSdkTypeInput, + GetSdkTypeInputDict, GetSdkTypeOutput, GetSdkTypesInput, + GetSdkTypesInputDict, GetSdkTypesOutput, GetStageInput, + GetStageInputDict, GetStageOutput, GetStagesInput, + GetStagesInputDict, GetStagesOutput, GetTagsInput, + GetTagsInputDict, GetTagsOutput, GetUsageInput, + GetUsageInputDict, GetUsageOutput, GetUsagePlanInput, + GetUsagePlanInputDict, GetUsagePlanKeyInput, + GetUsagePlanKeyInputDict, GetUsagePlanKeyOutput, GetUsagePlanKeysInput, + GetUsagePlanKeysInputDict, GetUsagePlanKeysOutput, GetUsagePlanOutput, GetUsagePlansInput, + GetUsagePlansInputDict, GetUsagePlansOutput, GetVpcLinkInput, + GetVpcLinkInputDict, GetVpcLinkOutput, GetVpcLinksInput, + GetVpcLinksInputDict, GetVpcLinksOutput, ImportApiKeysInput, + ImportApiKeysInputDict, ImportApiKeysOutput, ImportDocumentationPartsInput, + ImportDocumentationPartsInputDict, ImportDocumentationPartsOutput, ImportRestApiInput, + ImportRestApiInputDict, ImportRestApiOutput, Integration, IntegrationResponse, @@ -210,21 +308,31 @@ Model, MutualTlsAuthentication, MutualTlsAuthenticationInput, + MutualTlsAuthenticationInputDict, PatchOperation, + PatchOperationDict, PutGatewayResponseInput, + PutGatewayResponseInputDict, PutGatewayResponseOutput, PutIntegrationInput, + PutIntegrationInputDict, PutIntegrationOutput, PutIntegrationResponseInput, + PutIntegrationResponseInputDict, PutIntegrationResponseOutput, PutMethodInput, + PutMethodInputDict, PutMethodOutput, PutMethodResponseInput, + PutMethodResponseInputDict, PutMethodResponseOutput, PutRestApiInput, + PutRestApiInputDict, PutRestApiOutput, QuotaSettings, + QuotaSettingsDict, RejectDomainNameAccessAssociationInput, + RejectDomainNameAccessAssociationInputDict, RejectDomainNameAccessAssociationOutput, RequestValidator, Resource, @@ -233,59 +341,88 @@ SdkType, Stage, StageKey, + StageKeyDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TestInvokeAuthorizerInput, + TestInvokeAuthorizerInputDict, TestInvokeAuthorizerOutput, TestInvokeMethodInput, + TestInvokeMethodInputDict, TestInvokeMethodOutput, ThrottleSettings, + ThrottleSettingsDict, TlsConfig, + TlsConfigDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAccountInput, + UpdateAccountInputDict, UpdateAccountOutput, UpdateApiKeyInput, + UpdateApiKeyInputDict, UpdateApiKeyOutput, UpdateAuthorizerInput, + UpdateAuthorizerInputDict, UpdateAuthorizerOutput, UpdateBasePathMappingInput, + UpdateBasePathMappingInputDict, UpdateBasePathMappingOutput, UpdateClientCertificateInput, + UpdateClientCertificateInputDict, UpdateClientCertificateOutput, UpdateDeploymentInput, + UpdateDeploymentInputDict, UpdateDeploymentOutput, UpdateDocumentationPartInput, + UpdateDocumentationPartInputDict, UpdateDocumentationPartOutput, UpdateDocumentationVersionInput, + UpdateDocumentationVersionInputDict, UpdateDocumentationVersionOutput, UpdateDomainNameInput, + UpdateDomainNameInputDict, UpdateDomainNameOutput, UpdateGatewayResponseInput, + UpdateGatewayResponseInputDict, UpdateGatewayResponseOutput, UpdateIntegrationInput, + UpdateIntegrationInputDict, UpdateIntegrationOutput, UpdateIntegrationResponseInput, + UpdateIntegrationResponseInputDict, UpdateIntegrationResponseOutput, UpdateMethodInput, + UpdateMethodInputDict, UpdateMethodOutput, UpdateMethodResponseInput, + UpdateMethodResponseInputDict, UpdateMethodResponseOutput, UpdateModelInput, + UpdateModelInputDict, UpdateModelOutput, UpdateRequestValidatorInput, + UpdateRequestValidatorInputDict, UpdateRequestValidatorOutput, UpdateResourceInput, + UpdateResourceInputDict, UpdateResourceOutput, UpdateRestApiInput, + UpdateRestApiInputDict, UpdateRestApiOutput, UpdateStageInput, + UpdateStageInputDict, UpdateStageOutput, UpdateUsageInput, + UpdateUsageInputDict, UpdateUsageOutput, UpdateUsagePlanInput, + UpdateUsagePlanInputDict, UpdateUsagePlanOutput, UpdateVpcLinkInput, + UpdateVpcLinkInputDict, UpdateVpcLinkOutput, UsagePlan, UsagePlanKey, @@ -293,8 +430,9 @@ ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -585,3 +723,1392 @@ UsagePlan() UsagePlanKey() VpcLink() +_params_0: ApiStageDict = {} +_params_1: CanarySettingsDict = {} +_params_2: CreateApiKeyInputDict = {} +_params_3: CreateAuthorizerInputDict = {"rest_api_id": _, "name": _, "type": _} +_params_4: CreateBasePathMappingInputDict = {"domain_name": _, "rest_api_id": _} +_params_5: CreateDeploymentInputDict = {"rest_api_id": _} +_params_6: CreateDocumentationPartInputDict = { + "rest_api_id": _, + "location": _, + "properties": _, +} +_params_7: CreateDocumentationVersionInputDict = { + "rest_api_id": _, + "documentation_version": _, +} +_params_8: CreateDomainNameAccessAssociationInputDict = { + "domain_name_arn": _, + "access_association_source_type": _, + "access_association_source": _, +} +_params_9: CreateDomainNameInputDict = {"domain_name": _} +_params_10: CreateModelInputDict = {"rest_api_id": _, "name": _, "content_type": _} +_params_11: CreateRequestValidatorInputDict = {"rest_api_id": _} +_params_12: CreateResourceInputDict = {"rest_api_id": _, "parent_id": _, "path_part": _} +_params_13: CreateRestApiInputDict = {"name": _} +_params_14: CreateStageInputDict = { + "rest_api_id": _, + "stage_name": _, + "deployment_id": _, +} +_params_15: CreateUsagePlanInputDict = {"name": _} +_params_16: CreateUsagePlanKeyInputDict = { + "usage_plan_id": _, + "key_id": _, + "key_type": _, +} +_params_17: CreateVpcLinkInputDict = {"name": _, "target_arns": _} +_params_18: DeleteApiKeyInputDict = {"api_key": _} +_params_19: DeleteAuthorizerInputDict = {"rest_api_id": _, "authorizer_id": _} +_params_20: DeleteBasePathMappingInputDict = {"domain_name": _, "base_path": _} +_params_21: DeleteClientCertificateInputDict = {"client_certificate_id": _} +_params_22: DeleteDeploymentInputDict = {"rest_api_id": _, "deployment_id": _} +_params_23: DeleteDocumentationPartInputDict = { + "rest_api_id": _, + "documentation_part_id": _, +} +_params_24: DeleteDocumentationVersionInputDict = { + "rest_api_id": _, + "documentation_version": _, +} +_params_25: DeleteDomainNameAccessAssociationInputDict = { + "domain_name_access_association_arn": _ +} +_params_26: DeleteDomainNameInputDict = {"domain_name": _} +_params_27: DeleteGatewayResponseInputDict = {"rest_api_id": _, "response_type": _} +_params_28: DeleteIntegrationInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, +} +_params_29: DeleteIntegrationResponseInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "status_code": _, +} +_params_30: DeleteMethodInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, +} +_params_31: DeleteMethodResponseInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "status_code": _, +} +_params_32: DeleteModelInputDict = {"rest_api_id": _, "model_name": _} +_params_33: DeleteRequestValidatorInputDict = { + "rest_api_id": _, + "request_validator_id": _, +} +_params_34: DeleteResourceInputDict = {"rest_api_id": _, "resource_id": _} +_params_35: DeleteRestApiInputDict = {"rest_api_id": _} +_params_36: DeleteStageInputDict = {"rest_api_id": _, "stage_name": _} +_params_37: DeleteUsagePlanInputDict = {"usage_plan_id": _} +_params_38: DeleteUsagePlanKeyInputDict = {"usage_plan_id": _, "key_id": _} +_params_39: DeleteVpcLinkInputDict = {"vpc_link_id": _} +_params_40: DeploymentCanarySettingsDict = {} +_params_41: DocumentationPartLocationDict = {"type": _} +_params_42: EndpointConfigurationDict = {} +_params_43: FlushStageAuthorizersCacheInputDict = {"rest_api_id": _, "stage_name": _} +_params_44: FlushStageCacheInputDict = {"rest_api_id": _, "stage_name": _} +_params_45: GenerateClientCertificateInputDict = {} +_params_46: GetAccountInputDict = {} +_params_47: GetApiKeyInputDict = {"api_key": _} +_params_48: GetApiKeysInputDict = {} +_params_49: GetAuthorizerInputDict = {"rest_api_id": _, "authorizer_id": _} +_params_50: GetAuthorizersInputDict = {"rest_api_id": _} +_params_51: GetBasePathMappingInputDict = {"domain_name": _, "base_path": _} +_params_52: GetBasePathMappingsInputDict = {"domain_name": _} +_params_53: GetClientCertificateInputDict = {"client_certificate_id": _} +_params_54: GetClientCertificatesInputDict = {} +_params_55: GetDeploymentInputDict = {"rest_api_id": _, "deployment_id": _} +_params_56: GetDeploymentsInputDict = {"rest_api_id": _} +_params_57: GetDocumentationPartInputDict = { + "rest_api_id": _, + "documentation_part_id": _, +} +_params_58: GetDocumentationPartsInputDict = {"rest_api_id": _} +_params_59: GetDocumentationVersionInputDict = { + "rest_api_id": _, + "documentation_version": _, +} +_params_60: GetDocumentationVersionsInputDict = {"rest_api_id": _} +_params_61: GetDomainNameAccessAssociationsInputDict = {} +_params_62: GetDomainNameInputDict = {"domain_name": _} +_params_63: GetDomainNamesInputDict = {} +_params_64: GetExportInputDict = {"rest_api_id": _, "stage_name": _, "export_type": _} +_params_65: GetGatewayResponseInputDict = {"rest_api_id": _, "response_type": _} +_params_66: GetGatewayResponsesInputDict = {"rest_api_id": _} +_params_67: GetIntegrationInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, +} +_params_68: GetIntegrationResponseInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "status_code": _, +} +_params_69: GetMethodInputDict = {"rest_api_id": _, "resource_id": _, "http_method": _} +_params_70: GetMethodResponseInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "status_code": _, +} +_params_71: GetModelInputDict = {"rest_api_id": _, "model_name": _} +_params_72: GetModelsInputDict = {"rest_api_id": _} +_params_73: GetModelTemplateInputDict = {"rest_api_id": _, "model_name": _} +_params_74: GetRequestValidatorInputDict = {"rest_api_id": _, "request_validator_id": _} +_params_75: GetRequestValidatorsInputDict = {"rest_api_id": _} +_params_76: GetResourceInputDict = {"rest_api_id": _, "resource_id": _} +_params_77: GetResourcesInputDict = {"rest_api_id": _} +_params_78: GetRestApiInputDict = {"rest_api_id": _} +_params_79: GetRestApisInputDict = {} +_params_80: GetSdkInputDict = {"rest_api_id": _, "stage_name": _, "sdk_type": _} +_params_81: GetSdkTypeInputDict = {"id": _} +_params_82: GetSdkTypesInputDict = {} +_params_83: GetStageInputDict = {"rest_api_id": _, "stage_name": _} +_params_84: GetStagesInputDict = {"rest_api_id": _} +_params_85: GetTagsInputDict = {"resource_arn": _} +_params_86: GetUsageInputDict = {"usage_plan_id": _, "start_date": _, "end_date": _} +_params_87: GetUsagePlanInputDict = {"usage_plan_id": _} +_params_88: GetUsagePlanKeyInputDict = {"usage_plan_id": _, "key_id": _} +_params_89: GetUsagePlanKeysInputDict = {"usage_plan_id": _} +_params_90: GetUsagePlansInputDict = {} +_params_91: GetVpcLinkInputDict = {"vpc_link_id": _} +_params_92: GetVpcLinksInputDict = {} +_params_93: ImportApiKeysInputDict = {"body": _, "format": _} +_params_94: ImportDocumentationPartsInputDict = {"rest_api_id": _, "body": _} +_params_95: ImportRestApiInputDict = {"body": _} +_params_96: MutualTlsAuthenticationInputDict = {} +_params_97: PatchOperationDict = {} +_params_98: PutGatewayResponseInputDict = {"rest_api_id": _, "response_type": _} +_params_99: PutIntegrationInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "type": _, +} +_params_100: PutIntegrationResponseInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "status_code": _, +} +_params_101: PutMethodInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "authorization_type": _, +} +_params_102: PutMethodResponseInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "status_code": _, +} +_params_103: PutRestApiInputDict = {"rest_api_id": _, "body": _} +_params_104: QuotaSettingsDict = {} +_params_105: RejectDomainNameAccessAssociationInputDict = { + "domain_name_access_association_arn": _, + "domain_name_arn": _, +} +_params_106: StageKeyDict = {} +_params_107: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_108: TestInvokeAuthorizerInputDict = {"rest_api_id": _, "authorizer_id": _} +_params_109: TestInvokeMethodInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, +} +_params_110: ThrottleSettingsDict = {} +_params_111: TlsConfigDict = {} +_params_112: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_113: UpdateAccountInputDict = {} +_params_114: UpdateApiKeyInputDict = {"api_key": _} +_params_115: UpdateAuthorizerInputDict = {"rest_api_id": _, "authorizer_id": _} +_params_116: UpdateBasePathMappingInputDict = {"domain_name": _, "base_path": _} +_params_117: UpdateClientCertificateInputDict = {"client_certificate_id": _} +_params_118: UpdateDeploymentInputDict = {"rest_api_id": _, "deployment_id": _} +_params_119: UpdateDocumentationPartInputDict = { + "rest_api_id": _, + "documentation_part_id": _, +} +_params_120: UpdateDocumentationVersionInputDict = { + "rest_api_id": _, + "documentation_version": _, +} +_params_121: UpdateDomainNameInputDict = {"domain_name": _} +_params_122: UpdateGatewayResponseInputDict = {"rest_api_id": _, "response_type": _} +_params_123: UpdateIntegrationInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, +} +_params_124: UpdateIntegrationResponseInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "status_code": _, +} +_params_125: UpdateMethodInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, +} +_params_126: UpdateMethodResponseInputDict = { + "rest_api_id": _, + "resource_id": _, + "http_method": _, + "status_code": _, +} +_params_127: UpdateModelInputDict = {"rest_api_id": _, "model_name": _} +_params_128: UpdateRequestValidatorInputDict = { + "rest_api_id": _, + "request_validator_id": _, +} +_params_129: UpdateResourceInputDict = {"rest_api_id": _, "resource_id": _} +_params_130: UpdateRestApiInputDict = {"rest_api_id": _} +_params_131: UpdateStageInputDict = {"rest_api_id": _, "stage_name": _} +_params_132: UpdateUsageInputDict = {"usage_plan_id": _, "key_id": _} +_params_133: UpdateUsagePlanInputDict = {"usage_plan_id": _} +_params_134: UpdateVpcLinkInputDict = {"vpc_link_id": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncAPIGatewayClient) -> None: + pass + await client.create_api_key() + await client.create_api_key(**_request(CreateApiKeyInputDict)) + await client.create_api_key(_request(CreateApiKeyInput)) + await client.create_api_key(_request(CreateApiKeyInputDict)) + await client.create_authorizer(rest_api_id=_, name=_, type=_) + await client.create_authorizer(**_request(CreateAuthorizerInputDict)) + await client.create_authorizer(_request(CreateAuthorizerInput)) + await client.create_authorizer(_request(CreateAuthorizerInputDict)) + await client.create_base_path_mapping(domain_name=_, rest_api_id=_) + await client.create_base_path_mapping(**_request(CreateBasePathMappingInputDict)) + await client.create_base_path_mapping(_request(CreateBasePathMappingInput)) + await client.create_base_path_mapping(_request(CreateBasePathMappingInputDict)) + await client.create_deployment(rest_api_id=_) + await client.create_deployment(**_request(CreateDeploymentInputDict)) + await client.create_deployment(_request(CreateDeploymentInput)) + await client.create_deployment(_request(CreateDeploymentInputDict)) + await client.create_documentation_part(rest_api_id=_, location=_, properties=_) + await client.create_documentation_part(**_request(CreateDocumentationPartInputDict)) + await client.create_documentation_part(_request(CreateDocumentationPartInput)) + await client.create_documentation_part(_request(CreateDocumentationPartInputDict)) + await client.create_documentation_version(rest_api_id=_, documentation_version=_) + await client.create_documentation_version( + **_request(CreateDocumentationVersionInputDict) + ) + await client.create_documentation_version(_request(CreateDocumentationVersionInput)) + await client.create_documentation_version( + _request(CreateDocumentationVersionInputDict) + ) + await client.create_domain_name(domain_name=_) + await client.create_domain_name(**_request(CreateDomainNameInputDict)) + await client.create_domain_name(_request(CreateDomainNameInput)) + await client.create_domain_name(_request(CreateDomainNameInputDict)) + await client.create_domain_name_access_association( + domain_name_arn=_, access_association_source_type=_, access_association_source=_ + ) + await client.create_domain_name_access_association( + **_request(CreateDomainNameAccessAssociationInputDict) + ) + await client.create_domain_name_access_association( + _request(CreateDomainNameAccessAssociationInput) + ) + await client.create_domain_name_access_association( + _request(CreateDomainNameAccessAssociationInputDict) + ) + await client.create_model(rest_api_id=_, name=_, content_type=_) + await client.create_model(**_request(CreateModelInputDict)) + await client.create_model(_request(CreateModelInput)) + await client.create_model(_request(CreateModelInputDict)) + await client.create_request_validator(rest_api_id=_) + await client.create_request_validator(**_request(CreateRequestValidatorInputDict)) + await client.create_request_validator(_request(CreateRequestValidatorInput)) + await client.create_request_validator(_request(CreateRequestValidatorInputDict)) + await client.create_resource(rest_api_id=_, parent_id=_, path_part=_) + await client.create_resource(**_request(CreateResourceInputDict)) + await client.create_resource(_request(CreateResourceInput)) + await client.create_resource(_request(CreateResourceInputDict)) + await client.create_rest_api(name=_) + await client.create_rest_api(**_request(CreateRestApiInputDict)) + await client.create_rest_api(_request(CreateRestApiInput)) + await client.create_rest_api(_request(CreateRestApiInputDict)) + await client.create_stage(rest_api_id=_, stage_name=_, deployment_id=_) + await client.create_stage(**_request(CreateStageInputDict)) + await client.create_stage(_request(CreateStageInput)) + await client.create_stage(_request(CreateStageInputDict)) + await client.create_usage_plan(name=_) + await client.create_usage_plan(**_request(CreateUsagePlanInputDict)) + await client.create_usage_plan(_request(CreateUsagePlanInput)) + await client.create_usage_plan(_request(CreateUsagePlanInputDict)) + await client.create_usage_plan_key(usage_plan_id=_, key_id=_, key_type=_) + await client.create_usage_plan_key(**_request(CreateUsagePlanKeyInputDict)) + await client.create_usage_plan_key(_request(CreateUsagePlanKeyInput)) + await client.create_usage_plan_key(_request(CreateUsagePlanKeyInputDict)) + await client.create_vpc_link(name=_, target_arns=_) + await client.create_vpc_link(**_request(CreateVpcLinkInputDict)) + await client.create_vpc_link(_request(CreateVpcLinkInput)) + await client.create_vpc_link(_request(CreateVpcLinkInputDict)) + await client.delete_api_key(api_key=_) + await client.delete_api_key(**_request(DeleteApiKeyInputDict)) + await client.delete_api_key(_request(DeleteApiKeyInput)) + await client.delete_api_key(_request(DeleteApiKeyInputDict)) + await client.delete_authorizer(rest_api_id=_, authorizer_id=_) + await client.delete_authorizer(**_request(DeleteAuthorizerInputDict)) + await client.delete_authorizer(_request(DeleteAuthorizerInput)) + await client.delete_authorizer(_request(DeleteAuthorizerInputDict)) + await client.delete_base_path_mapping(domain_name=_, base_path=_) + await client.delete_base_path_mapping(**_request(DeleteBasePathMappingInputDict)) + await client.delete_base_path_mapping(_request(DeleteBasePathMappingInput)) + await client.delete_base_path_mapping(_request(DeleteBasePathMappingInputDict)) + await client.delete_client_certificate(client_certificate_id=_) + await client.delete_client_certificate(**_request(DeleteClientCertificateInputDict)) + await client.delete_client_certificate(_request(DeleteClientCertificateInput)) + await client.delete_client_certificate(_request(DeleteClientCertificateInputDict)) + await client.delete_deployment(rest_api_id=_, deployment_id=_) + await client.delete_deployment(**_request(DeleteDeploymentInputDict)) + await client.delete_deployment(_request(DeleteDeploymentInput)) + await client.delete_deployment(_request(DeleteDeploymentInputDict)) + await client.delete_documentation_part(rest_api_id=_, documentation_part_id=_) + await client.delete_documentation_part(**_request(DeleteDocumentationPartInputDict)) + await client.delete_documentation_part(_request(DeleteDocumentationPartInput)) + await client.delete_documentation_part(_request(DeleteDocumentationPartInputDict)) + await client.delete_documentation_version(rest_api_id=_, documentation_version=_) + await client.delete_documentation_version( + **_request(DeleteDocumentationVersionInputDict) + ) + await client.delete_documentation_version(_request(DeleteDocumentationVersionInput)) + await client.delete_documentation_version( + _request(DeleteDocumentationVersionInputDict) + ) + await client.delete_domain_name(domain_name=_) + await client.delete_domain_name(**_request(DeleteDomainNameInputDict)) + await client.delete_domain_name(_request(DeleteDomainNameInput)) + await client.delete_domain_name(_request(DeleteDomainNameInputDict)) + await client.delete_domain_name_access_association( + domain_name_access_association_arn=_ + ) + await client.delete_domain_name_access_association( + **_request(DeleteDomainNameAccessAssociationInputDict) + ) + await client.delete_domain_name_access_association( + _request(DeleteDomainNameAccessAssociationInput) + ) + await client.delete_domain_name_access_association( + _request(DeleteDomainNameAccessAssociationInputDict) + ) + await client.delete_gateway_response(rest_api_id=_, response_type=_) + await client.delete_gateway_response(**_request(DeleteGatewayResponseInputDict)) + await client.delete_gateway_response(_request(DeleteGatewayResponseInput)) + await client.delete_gateway_response(_request(DeleteGatewayResponseInputDict)) + await client.delete_integration(rest_api_id=_, resource_id=_, http_method=_) + await client.delete_integration(**_request(DeleteIntegrationInputDict)) + await client.delete_integration(_request(DeleteIntegrationInput)) + await client.delete_integration(_request(DeleteIntegrationInputDict)) + await client.delete_integration_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + await client.delete_integration_response( + **_request(DeleteIntegrationResponseInputDict) + ) + await client.delete_integration_response(_request(DeleteIntegrationResponseInput)) + await client.delete_integration_response( + _request(DeleteIntegrationResponseInputDict) + ) + await client.delete_method(rest_api_id=_, resource_id=_, http_method=_) + await client.delete_method(**_request(DeleteMethodInputDict)) + await client.delete_method(_request(DeleteMethodInput)) + await client.delete_method(_request(DeleteMethodInputDict)) + await client.delete_method_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + await client.delete_method_response(**_request(DeleteMethodResponseInputDict)) + await client.delete_method_response(_request(DeleteMethodResponseInput)) + await client.delete_method_response(_request(DeleteMethodResponseInputDict)) + await client.delete_model(rest_api_id=_, model_name=_) + await client.delete_model(**_request(DeleteModelInputDict)) + await client.delete_model(_request(DeleteModelInput)) + await client.delete_model(_request(DeleteModelInputDict)) + await client.delete_request_validator(rest_api_id=_, request_validator_id=_) + await client.delete_request_validator(**_request(DeleteRequestValidatorInputDict)) + await client.delete_request_validator(_request(DeleteRequestValidatorInput)) + await client.delete_request_validator(_request(DeleteRequestValidatorInputDict)) + await client.delete_resource(rest_api_id=_, resource_id=_) + await client.delete_resource(**_request(DeleteResourceInputDict)) + await client.delete_resource(_request(DeleteResourceInput)) + await client.delete_resource(_request(DeleteResourceInputDict)) + await client.delete_rest_api(rest_api_id=_) + await client.delete_rest_api(**_request(DeleteRestApiInputDict)) + await client.delete_rest_api(_request(DeleteRestApiInput)) + await client.delete_rest_api(_request(DeleteRestApiInputDict)) + await client.delete_stage(rest_api_id=_, stage_name=_) + await client.delete_stage(**_request(DeleteStageInputDict)) + await client.delete_stage(_request(DeleteStageInput)) + await client.delete_stage(_request(DeleteStageInputDict)) + await client.delete_usage_plan(usage_plan_id=_) + await client.delete_usage_plan(**_request(DeleteUsagePlanInputDict)) + await client.delete_usage_plan(_request(DeleteUsagePlanInput)) + await client.delete_usage_plan(_request(DeleteUsagePlanInputDict)) + await client.delete_usage_plan_key(usage_plan_id=_, key_id=_) + await client.delete_usage_plan_key(**_request(DeleteUsagePlanKeyInputDict)) + await client.delete_usage_plan_key(_request(DeleteUsagePlanKeyInput)) + await client.delete_usage_plan_key(_request(DeleteUsagePlanKeyInputDict)) + await client.delete_vpc_link(vpc_link_id=_) + await client.delete_vpc_link(**_request(DeleteVpcLinkInputDict)) + await client.delete_vpc_link(_request(DeleteVpcLinkInput)) + await client.delete_vpc_link(_request(DeleteVpcLinkInputDict)) + await client.flush_stage_authorizers_cache(rest_api_id=_, stage_name=_) + await client.flush_stage_authorizers_cache( + **_request(FlushStageAuthorizersCacheInputDict) + ) + await client.flush_stage_authorizers_cache( + _request(FlushStageAuthorizersCacheInput) + ) + await client.flush_stage_authorizers_cache( + _request(FlushStageAuthorizersCacheInputDict) + ) + await client.flush_stage_cache(rest_api_id=_, stage_name=_) + await client.flush_stage_cache(**_request(FlushStageCacheInputDict)) + await client.flush_stage_cache(_request(FlushStageCacheInput)) + await client.flush_stage_cache(_request(FlushStageCacheInputDict)) + await client.generate_client_certificate() + await client.generate_client_certificate( + **_request(GenerateClientCertificateInputDict) + ) + await client.generate_client_certificate(_request(GenerateClientCertificateInput)) + await client.generate_client_certificate( + _request(GenerateClientCertificateInputDict) + ) + await client.get_account() + await client.get_account(**_request(GetAccountInputDict)) + await client.get_account(_request(GetAccountInput)) + await client.get_account(_request(GetAccountInputDict)) + await client.get_api_key(api_key=_) + await client.get_api_key(**_request(GetApiKeyInputDict)) + await client.get_api_key(_request(GetApiKeyInput)) + await client.get_api_key(_request(GetApiKeyInputDict)) + await client.get_api_keys() + await client.get_api_keys(**_request(GetApiKeysInputDict)) + await client.get_api_keys(_request(GetApiKeysInput)) + await client.get_api_keys(_request(GetApiKeysInputDict)) + await client.get_authorizer(rest_api_id=_, authorizer_id=_) + await client.get_authorizer(**_request(GetAuthorizerInputDict)) + await client.get_authorizer(_request(GetAuthorizerInput)) + await client.get_authorizer(_request(GetAuthorizerInputDict)) + await client.get_authorizers(rest_api_id=_) + await client.get_authorizers(**_request(GetAuthorizersInputDict)) + await client.get_authorizers(_request(GetAuthorizersInput)) + await client.get_authorizers(_request(GetAuthorizersInputDict)) + await client.get_base_path_mapping(domain_name=_, base_path=_) + await client.get_base_path_mapping(**_request(GetBasePathMappingInputDict)) + await client.get_base_path_mapping(_request(GetBasePathMappingInput)) + await client.get_base_path_mapping(_request(GetBasePathMappingInputDict)) + await client.get_base_path_mappings(domain_name=_) + await client.get_base_path_mappings(**_request(GetBasePathMappingsInputDict)) + await client.get_base_path_mappings(_request(GetBasePathMappingsInput)) + await client.get_base_path_mappings(_request(GetBasePathMappingsInputDict)) + await client.get_client_certificate(client_certificate_id=_) + await client.get_client_certificate(**_request(GetClientCertificateInputDict)) + await client.get_client_certificate(_request(GetClientCertificateInput)) + await client.get_client_certificate(_request(GetClientCertificateInputDict)) + await client.get_client_certificates() + await client.get_client_certificates(**_request(GetClientCertificatesInputDict)) + await client.get_client_certificates(_request(GetClientCertificatesInput)) + await client.get_client_certificates(_request(GetClientCertificatesInputDict)) + await client.get_deployment(rest_api_id=_, deployment_id=_) + await client.get_deployment(**_request(GetDeploymentInputDict)) + await client.get_deployment(_request(GetDeploymentInput)) + await client.get_deployment(_request(GetDeploymentInputDict)) + await client.get_deployments(rest_api_id=_) + await client.get_deployments(**_request(GetDeploymentsInputDict)) + await client.get_deployments(_request(GetDeploymentsInput)) + await client.get_deployments(_request(GetDeploymentsInputDict)) + await client.get_documentation_part(rest_api_id=_, documentation_part_id=_) + await client.get_documentation_part(**_request(GetDocumentationPartInputDict)) + await client.get_documentation_part(_request(GetDocumentationPartInput)) + await client.get_documentation_part(_request(GetDocumentationPartInputDict)) + await client.get_documentation_parts(rest_api_id=_) + await client.get_documentation_parts(**_request(GetDocumentationPartsInputDict)) + await client.get_documentation_parts(_request(GetDocumentationPartsInput)) + await client.get_documentation_parts(_request(GetDocumentationPartsInputDict)) + await client.get_documentation_version(rest_api_id=_, documentation_version=_) + await client.get_documentation_version(**_request(GetDocumentationVersionInputDict)) + await client.get_documentation_version(_request(GetDocumentationVersionInput)) + await client.get_documentation_version(_request(GetDocumentationVersionInputDict)) + await client.get_documentation_versions(rest_api_id=_) + await client.get_documentation_versions( + **_request(GetDocumentationVersionsInputDict) + ) + await client.get_documentation_versions(_request(GetDocumentationVersionsInput)) + await client.get_documentation_versions(_request(GetDocumentationVersionsInputDict)) + await client.get_domain_name(domain_name=_) + await client.get_domain_name(**_request(GetDomainNameInputDict)) + await client.get_domain_name(_request(GetDomainNameInput)) + await client.get_domain_name(_request(GetDomainNameInputDict)) + await client.get_domain_name_access_associations() + await client.get_domain_name_access_associations( + **_request(GetDomainNameAccessAssociationsInputDict) + ) + await client.get_domain_name_access_associations( + _request(GetDomainNameAccessAssociationsInput) + ) + await client.get_domain_name_access_associations( + _request(GetDomainNameAccessAssociationsInputDict) + ) + await client.get_domain_names() + await client.get_domain_names(**_request(GetDomainNamesInputDict)) + await client.get_domain_names(_request(GetDomainNamesInput)) + await client.get_domain_names(_request(GetDomainNamesInputDict)) + await client.get_export(rest_api_id=_, stage_name=_, export_type=_) + await client.get_export(**_request(GetExportInputDict)) + await client.get_export(_request(GetExportInput)) + await client.get_export(_request(GetExportInputDict)) + await client.get_gateway_response(rest_api_id=_, response_type=_) + await client.get_gateway_response(**_request(GetGatewayResponseInputDict)) + await client.get_gateway_response(_request(GetGatewayResponseInput)) + await client.get_gateway_response(_request(GetGatewayResponseInputDict)) + await client.get_gateway_responses(rest_api_id=_) + await client.get_gateway_responses(**_request(GetGatewayResponsesInputDict)) + await client.get_gateway_responses(_request(GetGatewayResponsesInput)) + await client.get_gateway_responses(_request(GetGatewayResponsesInputDict)) + await client.get_integration(rest_api_id=_, resource_id=_, http_method=_) + await client.get_integration(**_request(GetIntegrationInputDict)) + await client.get_integration(_request(GetIntegrationInput)) + await client.get_integration(_request(GetIntegrationInputDict)) + await client.get_integration_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + await client.get_integration_response(**_request(GetIntegrationResponseInputDict)) + await client.get_integration_response(_request(GetIntegrationResponseInput)) + await client.get_integration_response(_request(GetIntegrationResponseInputDict)) + await client.get_method(rest_api_id=_, resource_id=_, http_method=_) + await client.get_method(**_request(GetMethodInputDict)) + await client.get_method(_request(GetMethodInput)) + await client.get_method(_request(GetMethodInputDict)) + await client.get_method_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + await client.get_method_response(**_request(GetMethodResponseInputDict)) + await client.get_method_response(_request(GetMethodResponseInput)) + await client.get_method_response(_request(GetMethodResponseInputDict)) + await client.get_model(rest_api_id=_, model_name=_) + await client.get_model(**_request(GetModelInputDict)) + await client.get_model(_request(GetModelInput)) + await client.get_model(_request(GetModelInputDict)) + await client.get_models(rest_api_id=_) + await client.get_models(**_request(GetModelsInputDict)) + await client.get_models(_request(GetModelsInput)) + await client.get_models(_request(GetModelsInputDict)) + await client.get_model_template(rest_api_id=_, model_name=_) + await client.get_model_template(**_request(GetModelTemplateInputDict)) + await client.get_model_template(_request(GetModelTemplateInput)) + await client.get_model_template(_request(GetModelTemplateInputDict)) + await client.get_request_validator(rest_api_id=_, request_validator_id=_) + await client.get_request_validator(**_request(GetRequestValidatorInputDict)) + await client.get_request_validator(_request(GetRequestValidatorInput)) + await client.get_request_validator(_request(GetRequestValidatorInputDict)) + await client.get_request_validators(rest_api_id=_) + await client.get_request_validators(**_request(GetRequestValidatorsInputDict)) + await client.get_request_validators(_request(GetRequestValidatorsInput)) + await client.get_request_validators(_request(GetRequestValidatorsInputDict)) + await client.get_resource(rest_api_id=_, resource_id=_) + await client.get_resource(**_request(GetResourceInputDict)) + await client.get_resource(_request(GetResourceInput)) + await client.get_resource(_request(GetResourceInputDict)) + await client.get_resources(rest_api_id=_) + await client.get_resources(**_request(GetResourcesInputDict)) + await client.get_resources(_request(GetResourcesInput)) + await client.get_resources(_request(GetResourcesInputDict)) + await client.get_rest_api(rest_api_id=_) + await client.get_rest_api(**_request(GetRestApiInputDict)) + await client.get_rest_api(_request(GetRestApiInput)) + await client.get_rest_api(_request(GetRestApiInputDict)) + await client.get_rest_apis() + await client.get_rest_apis(**_request(GetRestApisInputDict)) + await client.get_rest_apis(_request(GetRestApisInput)) + await client.get_rest_apis(_request(GetRestApisInputDict)) + await client.get_sdk(rest_api_id=_, stage_name=_, sdk_type=_) + await client.get_sdk(**_request(GetSdkInputDict)) + await client.get_sdk(_request(GetSdkInput)) + await client.get_sdk(_request(GetSdkInputDict)) + await client.get_sdk_type(id=_) + await client.get_sdk_type(**_request(GetSdkTypeInputDict)) + await client.get_sdk_type(_request(GetSdkTypeInput)) + await client.get_sdk_type(_request(GetSdkTypeInputDict)) + await client.get_sdk_types() + await client.get_sdk_types(**_request(GetSdkTypesInputDict)) + await client.get_sdk_types(_request(GetSdkTypesInput)) + await client.get_sdk_types(_request(GetSdkTypesInputDict)) + await client.get_stage(rest_api_id=_, stage_name=_) + await client.get_stage(**_request(GetStageInputDict)) + await client.get_stage(_request(GetStageInput)) + await client.get_stage(_request(GetStageInputDict)) + await client.get_stages(rest_api_id=_) + await client.get_stages(**_request(GetStagesInputDict)) + await client.get_stages(_request(GetStagesInput)) + await client.get_stages(_request(GetStagesInputDict)) + await client.get_tags(resource_arn=_) + await client.get_tags(**_request(GetTagsInputDict)) + await client.get_tags(_request(GetTagsInput)) + await client.get_tags(_request(GetTagsInputDict)) + await client.get_usage(usage_plan_id=_, start_date=_, end_date=_) + await client.get_usage(**_request(GetUsageInputDict)) + await client.get_usage(_request(GetUsageInput)) + await client.get_usage(_request(GetUsageInputDict)) + await client.get_usage_plan(usage_plan_id=_) + await client.get_usage_plan(**_request(GetUsagePlanInputDict)) + await client.get_usage_plan(_request(GetUsagePlanInput)) + await client.get_usage_plan(_request(GetUsagePlanInputDict)) + await client.get_usage_plan_key(usage_plan_id=_, key_id=_) + await client.get_usage_plan_key(**_request(GetUsagePlanKeyInputDict)) + await client.get_usage_plan_key(_request(GetUsagePlanKeyInput)) + await client.get_usage_plan_key(_request(GetUsagePlanKeyInputDict)) + await client.get_usage_plan_keys(usage_plan_id=_) + await client.get_usage_plan_keys(**_request(GetUsagePlanKeysInputDict)) + await client.get_usage_plan_keys(_request(GetUsagePlanKeysInput)) + await client.get_usage_plan_keys(_request(GetUsagePlanKeysInputDict)) + await client.get_usage_plans() + await client.get_usage_plans(**_request(GetUsagePlansInputDict)) + await client.get_usage_plans(_request(GetUsagePlansInput)) + await client.get_usage_plans(_request(GetUsagePlansInputDict)) + await client.get_vpc_link(vpc_link_id=_) + await client.get_vpc_link(**_request(GetVpcLinkInputDict)) + await client.get_vpc_link(_request(GetVpcLinkInput)) + await client.get_vpc_link(_request(GetVpcLinkInputDict)) + await client.get_vpc_links() + await client.get_vpc_links(**_request(GetVpcLinksInputDict)) + await client.get_vpc_links(_request(GetVpcLinksInput)) + await client.get_vpc_links(_request(GetVpcLinksInputDict)) + await client.import_api_keys(body=_, format=_) + await client.import_api_keys(**_request(ImportApiKeysInputDict)) + await client.import_api_keys(_request(ImportApiKeysInput)) + await client.import_api_keys(_request(ImportApiKeysInputDict)) + await client.import_documentation_parts(rest_api_id=_, body=_) + await client.import_documentation_parts( + **_request(ImportDocumentationPartsInputDict) + ) + await client.import_documentation_parts(_request(ImportDocumentationPartsInput)) + await client.import_documentation_parts(_request(ImportDocumentationPartsInputDict)) + await client.import_rest_api(body=_) + await client.import_rest_api(**_request(ImportRestApiInputDict)) + await client.import_rest_api(_request(ImportRestApiInput)) + await client.import_rest_api(_request(ImportRestApiInputDict)) + await client.put_gateway_response(rest_api_id=_, response_type=_) + await client.put_gateway_response(**_request(PutGatewayResponseInputDict)) + await client.put_gateway_response(_request(PutGatewayResponseInput)) + await client.put_gateway_response(_request(PutGatewayResponseInputDict)) + await client.put_integration(rest_api_id=_, resource_id=_, http_method=_, type=_) + await client.put_integration(**_request(PutIntegrationInputDict)) + await client.put_integration(_request(PutIntegrationInput)) + await client.put_integration(_request(PutIntegrationInputDict)) + await client.put_integration_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + await client.put_integration_response(**_request(PutIntegrationResponseInputDict)) + await client.put_integration_response(_request(PutIntegrationResponseInput)) + await client.put_integration_response(_request(PutIntegrationResponseInputDict)) + await client.put_method( + rest_api_id=_, resource_id=_, http_method=_, authorization_type=_ + ) + await client.put_method(**_request(PutMethodInputDict)) + await client.put_method(_request(PutMethodInput)) + await client.put_method(_request(PutMethodInputDict)) + await client.put_method_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + await client.put_method_response(**_request(PutMethodResponseInputDict)) + await client.put_method_response(_request(PutMethodResponseInput)) + await client.put_method_response(_request(PutMethodResponseInputDict)) + await client.put_rest_api(rest_api_id=_, body=_) + await client.put_rest_api(**_request(PutRestApiInputDict)) + await client.put_rest_api(_request(PutRestApiInput)) + await client.put_rest_api(_request(PutRestApiInputDict)) + await client.reject_domain_name_access_association( + domain_name_access_association_arn=_, domain_name_arn=_ + ) + await client.reject_domain_name_access_association( + **_request(RejectDomainNameAccessAssociationInputDict) + ) + await client.reject_domain_name_access_association( + _request(RejectDomainNameAccessAssociationInput) + ) + await client.reject_domain_name_access_association( + _request(RejectDomainNameAccessAssociationInputDict) + ) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.test_invoke_authorizer(rest_api_id=_, authorizer_id=_) + await client.test_invoke_authorizer(**_request(TestInvokeAuthorizerInputDict)) + await client.test_invoke_authorizer(_request(TestInvokeAuthorizerInput)) + await client.test_invoke_authorizer(_request(TestInvokeAuthorizerInputDict)) + await client.test_invoke_method(rest_api_id=_, resource_id=_, http_method=_) + await client.test_invoke_method(**_request(TestInvokeMethodInputDict)) + await client.test_invoke_method(_request(TestInvokeMethodInput)) + await client.test_invoke_method(_request(TestInvokeMethodInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_account() + await client.update_account(**_request(UpdateAccountInputDict)) + await client.update_account(_request(UpdateAccountInput)) + await client.update_account(_request(UpdateAccountInputDict)) + await client.update_api_key(api_key=_) + await client.update_api_key(**_request(UpdateApiKeyInputDict)) + await client.update_api_key(_request(UpdateApiKeyInput)) + await client.update_api_key(_request(UpdateApiKeyInputDict)) + await client.update_authorizer(rest_api_id=_, authorizer_id=_) + await client.update_authorizer(**_request(UpdateAuthorizerInputDict)) + await client.update_authorizer(_request(UpdateAuthorizerInput)) + await client.update_authorizer(_request(UpdateAuthorizerInputDict)) + await client.update_base_path_mapping(domain_name=_, base_path=_) + await client.update_base_path_mapping(**_request(UpdateBasePathMappingInputDict)) + await client.update_base_path_mapping(_request(UpdateBasePathMappingInput)) + await client.update_base_path_mapping(_request(UpdateBasePathMappingInputDict)) + await client.update_client_certificate(client_certificate_id=_) + await client.update_client_certificate(**_request(UpdateClientCertificateInputDict)) + await client.update_client_certificate(_request(UpdateClientCertificateInput)) + await client.update_client_certificate(_request(UpdateClientCertificateInputDict)) + await client.update_deployment(rest_api_id=_, deployment_id=_) + await client.update_deployment(**_request(UpdateDeploymentInputDict)) + await client.update_deployment(_request(UpdateDeploymentInput)) + await client.update_deployment(_request(UpdateDeploymentInputDict)) + await client.update_documentation_part(rest_api_id=_, documentation_part_id=_) + await client.update_documentation_part(**_request(UpdateDocumentationPartInputDict)) + await client.update_documentation_part(_request(UpdateDocumentationPartInput)) + await client.update_documentation_part(_request(UpdateDocumentationPartInputDict)) + await client.update_documentation_version(rest_api_id=_, documentation_version=_) + await client.update_documentation_version( + **_request(UpdateDocumentationVersionInputDict) + ) + await client.update_documentation_version(_request(UpdateDocumentationVersionInput)) + await client.update_documentation_version( + _request(UpdateDocumentationVersionInputDict) + ) + await client.update_domain_name(domain_name=_) + await client.update_domain_name(**_request(UpdateDomainNameInputDict)) + await client.update_domain_name(_request(UpdateDomainNameInput)) + await client.update_domain_name(_request(UpdateDomainNameInputDict)) + await client.update_gateway_response(rest_api_id=_, response_type=_) + await client.update_gateway_response(**_request(UpdateGatewayResponseInputDict)) + await client.update_gateway_response(_request(UpdateGatewayResponseInput)) + await client.update_gateway_response(_request(UpdateGatewayResponseInputDict)) + await client.update_integration(rest_api_id=_, resource_id=_, http_method=_) + await client.update_integration(**_request(UpdateIntegrationInputDict)) + await client.update_integration(_request(UpdateIntegrationInput)) + await client.update_integration(_request(UpdateIntegrationInputDict)) + await client.update_integration_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + await client.update_integration_response( + **_request(UpdateIntegrationResponseInputDict) + ) + await client.update_integration_response(_request(UpdateIntegrationResponseInput)) + await client.update_integration_response( + _request(UpdateIntegrationResponseInputDict) + ) + await client.update_method(rest_api_id=_, resource_id=_, http_method=_) + await client.update_method(**_request(UpdateMethodInputDict)) + await client.update_method(_request(UpdateMethodInput)) + await client.update_method(_request(UpdateMethodInputDict)) + await client.update_method_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + await client.update_method_response(**_request(UpdateMethodResponseInputDict)) + await client.update_method_response(_request(UpdateMethodResponseInput)) + await client.update_method_response(_request(UpdateMethodResponseInputDict)) + await client.update_model(rest_api_id=_, model_name=_) + await client.update_model(**_request(UpdateModelInputDict)) + await client.update_model(_request(UpdateModelInput)) + await client.update_model(_request(UpdateModelInputDict)) + await client.update_request_validator(rest_api_id=_, request_validator_id=_) + await client.update_request_validator(**_request(UpdateRequestValidatorInputDict)) + await client.update_request_validator(_request(UpdateRequestValidatorInput)) + await client.update_request_validator(_request(UpdateRequestValidatorInputDict)) + await client.update_resource(rest_api_id=_, resource_id=_) + await client.update_resource(**_request(UpdateResourceInputDict)) + await client.update_resource(_request(UpdateResourceInput)) + await client.update_resource(_request(UpdateResourceInputDict)) + await client.update_rest_api(rest_api_id=_) + await client.update_rest_api(**_request(UpdateRestApiInputDict)) + await client.update_rest_api(_request(UpdateRestApiInput)) + await client.update_rest_api(_request(UpdateRestApiInputDict)) + await client.update_stage(rest_api_id=_, stage_name=_) + await client.update_stage(**_request(UpdateStageInputDict)) + await client.update_stage(_request(UpdateStageInput)) + await client.update_stage(_request(UpdateStageInputDict)) + await client.update_usage(usage_plan_id=_, key_id=_) + await client.update_usage(**_request(UpdateUsageInputDict)) + await client.update_usage(_request(UpdateUsageInput)) + await client.update_usage(_request(UpdateUsageInputDict)) + await client.update_usage_plan(usage_plan_id=_) + await client.update_usage_plan(**_request(UpdateUsagePlanInputDict)) + await client.update_usage_plan(_request(UpdateUsagePlanInput)) + await client.update_usage_plan(_request(UpdateUsagePlanInputDict)) + await client.update_vpc_link(vpc_link_id=_) + await client.update_vpc_link(**_request(UpdateVpcLinkInputDict)) + await client.update_vpc_link(_request(UpdateVpcLinkInput)) + await client.update_vpc_link(_request(UpdateVpcLinkInputDict)) + + +def check_sync_calls(client: APIGatewayClient) -> None: + pass + client.create_api_key() + client.create_api_key(**_request(CreateApiKeyInputDict)) + client.create_api_key(_request(CreateApiKeyInput)) + client.create_api_key(_request(CreateApiKeyInputDict)) + client.create_authorizer(rest_api_id=_, name=_, type=_) + client.create_authorizer(**_request(CreateAuthorizerInputDict)) + client.create_authorizer(_request(CreateAuthorizerInput)) + client.create_authorizer(_request(CreateAuthorizerInputDict)) + client.create_base_path_mapping(domain_name=_, rest_api_id=_) + client.create_base_path_mapping(**_request(CreateBasePathMappingInputDict)) + client.create_base_path_mapping(_request(CreateBasePathMappingInput)) + client.create_base_path_mapping(_request(CreateBasePathMappingInputDict)) + client.create_deployment(rest_api_id=_) + client.create_deployment(**_request(CreateDeploymentInputDict)) + client.create_deployment(_request(CreateDeploymentInput)) + client.create_deployment(_request(CreateDeploymentInputDict)) + client.create_documentation_part(rest_api_id=_, location=_, properties=_) + client.create_documentation_part(**_request(CreateDocumentationPartInputDict)) + client.create_documentation_part(_request(CreateDocumentationPartInput)) + client.create_documentation_part(_request(CreateDocumentationPartInputDict)) + client.create_documentation_version(rest_api_id=_, documentation_version=_) + client.create_documentation_version(**_request(CreateDocumentationVersionInputDict)) + client.create_documentation_version(_request(CreateDocumentationVersionInput)) + client.create_documentation_version(_request(CreateDocumentationVersionInputDict)) + client.create_domain_name(domain_name=_) + client.create_domain_name(**_request(CreateDomainNameInputDict)) + client.create_domain_name(_request(CreateDomainNameInput)) + client.create_domain_name(_request(CreateDomainNameInputDict)) + client.create_domain_name_access_association( + domain_name_arn=_, access_association_source_type=_, access_association_source=_ + ) + client.create_domain_name_access_association( + **_request(CreateDomainNameAccessAssociationInputDict) + ) + client.create_domain_name_access_association( + _request(CreateDomainNameAccessAssociationInput) + ) + client.create_domain_name_access_association( + _request(CreateDomainNameAccessAssociationInputDict) + ) + client.create_model(rest_api_id=_, name=_, content_type=_) + client.create_model(**_request(CreateModelInputDict)) + client.create_model(_request(CreateModelInput)) + client.create_model(_request(CreateModelInputDict)) + client.create_request_validator(rest_api_id=_) + client.create_request_validator(**_request(CreateRequestValidatorInputDict)) + client.create_request_validator(_request(CreateRequestValidatorInput)) + client.create_request_validator(_request(CreateRequestValidatorInputDict)) + client.create_resource(rest_api_id=_, parent_id=_, path_part=_) + client.create_resource(**_request(CreateResourceInputDict)) + client.create_resource(_request(CreateResourceInput)) + client.create_resource(_request(CreateResourceInputDict)) + client.create_rest_api(name=_) + client.create_rest_api(**_request(CreateRestApiInputDict)) + client.create_rest_api(_request(CreateRestApiInput)) + client.create_rest_api(_request(CreateRestApiInputDict)) + client.create_stage(rest_api_id=_, stage_name=_, deployment_id=_) + client.create_stage(**_request(CreateStageInputDict)) + client.create_stage(_request(CreateStageInput)) + client.create_stage(_request(CreateStageInputDict)) + client.create_usage_plan(name=_) + client.create_usage_plan(**_request(CreateUsagePlanInputDict)) + client.create_usage_plan(_request(CreateUsagePlanInput)) + client.create_usage_plan(_request(CreateUsagePlanInputDict)) + client.create_usage_plan_key(usage_plan_id=_, key_id=_, key_type=_) + client.create_usage_plan_key(**_request(CreateUsagePlanKeyInputDict)) + client.create_usage_plan_key(_request(CreateUsagePlanKeyInput)) + client.create_usage_plan_key(_request(CreateUsagePlanKeyInputDict)) + client.create_vpc_link(name=_, target_arns=_) + client.create_vpc_link(**_request(CreateVpcLinkInputDict)) + client.create_vpc_link(_request(CreateVpcLinkInput)) + client.create_vpc_link(_request(CreateVpcLinkInputDict)) + client.delete_api_key(api_key=_) + client.delete_api_key(**_request(DeleteApiKeyInputDict)) + client.delete_api_key(_request(DeleteApiKeyInput)) + client.delete_api_key(_request(DeleteApiKeyInputDict)) + client.delete_authorizer(rest_api_id=_, authorizer_id=_) + client.delete_authorizer(**_request(DeleteAuthorizerInputDict)) + client.delete_authorizer(_request(DeleteAuthorizerInput)) + client.delete_authorizer(_request(DeleteAuthorizerInputDict)) + client.delete_base_path_mapping(domain_name=_, base_path=_) + client.delete_base_path_mapping(**_request(DeleteBasePathMappingInputDict)) + client.delete_base_path_mapping(_request(DeleteBasePathMappingInput)) + client.delete_base_path_mapping(_request(DeleteBasePathMappingInputDict)) + client.delete_client_certificate(client_certificate_id=_) + client.delete_client_certificate(**_request(DeleteClientCertificateInputDict)) + client.delete_client_certificate(_request(DeleteClientCertificateInput)) + client.delete_client_certificate(_request(DeleteClientCertificateInputDict)) + client.delete_deployment(rest_api_id=_, deployment_id=_) + client.delete_deployment(**_request(DeleteDeploymentInputDict)) + client.delete_deployment(_request(DeleteDeploymentInput)) + client.delete_deployment(_request(DeleteDeploymentInputDict)) + client.delete_documentation_part(rest_api_id=_, documentation_part_id=_) + client.delete_documentation_part(**_request(DeleteDocumentationPartInputDict)) + client.delete_documentation_part(_request(DeleteDocumentationPartInput)) + client.delete_documentation_part(_request(DeleteDocumentationPartInputDict)) + client.delete_documentation_version(rest_api_id=_, documentation_version=_) + client.delete_documentation_version(**_request(DeleteDocumentationVersionInputDict)) + client.delete_documentation_version(_request(DeleteDocumentationVersionInput)) + client.delete_documentation_version(_request(DeleteDocumentationVersionInputDict)) + client.delete_domain_name(domain_name=_) + client.delete_domain_name(**_request(DeleteDomainNameInputDict)) + client.delete_domain_name(_request(DeleteDomainNameInput)) + client.delete_domain_name(_request(DeleteDomainNameInputDict)) + client.delete_domain_name_access_association(domain_name_access_association_arn=_) + client.delete_domain_name_access_association( + **_request(DeleteDomainNameAccessAssociationInputDict) + ) + client.delete_domain_name_access_association( + _request(DeleteDomainNameAccessAssociationInput) + ) + client.delete_domain_name_access_association( + _request(DeleteDomainNameAccessAssociationInputDict) + ) + client.delete_gateway_response(rest_api_id=_, response_type=_) + client.delete_gateway_response(**_request(DeleteGatewayResponseInputDict)) + client.delete_gateway_response(_request(DeleteGatewayResponseInput)) + client.delete_gateway_response(_request(DeleteGatewayResponseInputDict)) + client.delete_integration(rest_api_id=_, resource_id=_, http_method=_) + client.delete_integration(**_request(DeleteIntegrationInputDict)) + client.delete_integration(_request(DeleteIntegrationInput)) + client.delete_integration(_request(DeleteIntegrationInputDict)) + client.delete_integration_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + client.delete_integration_response(**_request(DeleteIntegrationResponseInputDict)) + client.delete_integration_response(_request(DeleteIntegrationResponseInput)) + client.delete_integration_response(_request(DeleteIntegrationResponseInputDict)) + client.delete_method(rest_api_id=_, resource_id=_, http_method=_) + client.delete_method(**_request(DeleteMethodInputDict)) + client.delete_method(_request(DeleteMethodInput)) + client.delete_method(_request(DeleteMethodInputDict)) + client.delete_method_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + client.delete_method_response(**_request(DeleteMethodResponseInputDict)) + client.delete_method_response(_request(DeleteMethodResponseInput)) + client.delete_method_response(_request(DeleteMethodResponseInputDict)) + client.delete_model(rest_api_id=_, model_name=_) + client.delete_model(**_request(DeleteModelInputDict)) + client.delete_model(_request(DeleteModelInput)) + client.delete_model(_request(DeleteModelInputDict)) + client.delete_request_validator(rest_api_id=_, request_validator_id=_) + client.delete_request_validator(**_request(DeleteRequestValidatorInputDict)) + client.delete_request_validator(_request(DeleteRequestValidatorInput)) + client.delete_request_validator(_request(DeleteRequestValidatorInputDict)) + client.delete_resource(rest_api_id=_, resource_id=_) + client.delete_resource(**_request(DeleteResourceInputDict)) + client.delete_resource(_request(DeleteResourceInput)) + client.delete_resource(_request(DeleteResourceInputDict)) + client.delete_rest_api(rest_api_id=_) + client.delete_rest_api(**_request(DeleteRestApiInputDict)) + client.delete_rest_api(_request(DeleteRestApiInput)) + client.delete_rest_api(_request(DeleteRestApiInputDict)) + client.delete_stage(rest_api_id=_, stage_name=_) + client.delete_stage(**_request(DeleteStageInputDict)) + client.delete_stage(_request(DeleteStageInput)) + client.delete_stage(_request(DeleteStageInputDict)) + client.delete_usage_plan(usage_plan_id=_) + client.delete_usage_plan(**_request(DeleteUsagePlanInputDict)) + client.delete_usage_plan(_request(DeleteUsagePlanInput)) + client.delete_usage_plan(_request(DeleteUsagePlanInputDict)) + client.delete_usage_plan_key(usage_plan_id=_, key_id=_) + client.delete_usage_plan_key(**_request(DeleteUsagePlanKeyInputDict)) + client.delete_usage_plan_key(_request(DeleteUsagePlanKeyInput)) + client.delete_usage_plan_key(_request(DeleteUsagePlanKeyInputDict)) + client.delete_vpc_link(vpc_link_id=_) + client.delete_vpc_link(**_request(DeleteVpcLinkInputDict)) + client.delete_vpc_link(_request(DeleteVpcLinkInput)) + client.delete_vpc_link(_request(DeleteVpcLinkInputDict)) + client.flush_stage_authorizers_cache(rest_api_id=_, stage_name=_) + client.flush_stage_authorizers_cache( + **_request(FlushStageAuthorizersCacheInputDict) + ) + client.flush_stage_authorizers_cache(_request(FlushStageAuthorizersCacheInput)) + client.flush_stage_authorizers_cache(_request(FlushStageAuthorizersCacheInputDict)) + client.flush_stage_cache(rest_api_id=_, stage_name=_) + client.flush_stage_cache(**_request(FlushStageCacheInputDict)) + client.flush_stage_cache(_request(FlushStageCacheInput)) + client.flush_stage_cache(_request(FlushStageCacheInputDict)) + client.generate_client_certificate() + client.generate_client_certificate(**_request(GenerateClientCertificateInputDict)) + client.generate_client_certificate(_request(GenerateClientCertificateInput)) + client.generate_client_certificate(_request(GenerateClientCertificateInputDict)) + client.get_account() + client.get_account(**_request(GetAccountInputDict)) + client.get_account(_request(GetAccountInput)) + client.get_account(_request(GetAccountInputDict)) + client.get_api_key(api_key=_) + client.get_api_key(**_request(GetApiKeyInputDict)) + client.get_api_key(_request(GetApiKeyInput)) + client.get_api_key(_request(GetApiKeyInputDict)) + client.get_api_keys() + client.get_api_keys(**_request(GetApiKeysInputDict)) + client.get_api_keys(_request(GetApiKeysInput)) + client.get_api_keys(_request(GetApiKeysInputDict)) + client.get_authorizer(rest_api_id=_, authorizer_id=_) + client.get_authorizer(**_request(GetAuthorizerInputDict)) + client.get_authorizer(_request(GetAuthorizerInput)) + client.get_authorizer(_request(GetAuthorizerInputDict)) + client.get_authorizers(rest_api_id=_) + client.get_authorizers(**_request(GetAuthorizersInputDict)) + client.get_authorizers(_request(GetAuthorizersInput)) + client.get_authorizers(_request(GetAuthorizersInputDict)) + client.get_base_path_mapping(domain_name=_, base_path=_) + client.get_base_path_mapping(**_request(GetBasePathMappingInputDict)) + client.get_base_path_mapping(_request(GetBasePathMappingInput)) + client.get_base_path_mapping(_request(GetBasePathMappingInputDict)) + client.get_base_path_mappings(domain_name=_) + client.get_base_path_mappings(**_request(GetBasePathMappingsInputDict)) + client.get_base_path_mappings(_request(GetBasePathMappingsInput)) + client.get_base_path_mappings(_request(GetBasePathMappingsInputDict)) + client.get_client_certificate(client_certificate_id=_) + client.get_client_certificate(**_request(GetClientCertificateInputDict)) + client.get_client_certificate(_request(GetClientCertificateInput)) + client.get_client_certificate(_request(GetClientCertificateInputDict)) + client.get_client_certificates() + client.get_client_certificates(**_request(GetClientCertificatesInputDict)) + client.get_client_certificates(_request(GetClientCertificatesInput)) + client.get_client_certificates(_request(GetClientCertificatesInputDict)) + client.get_deployment(rest_api_id=_, deployment_id=_) + client.get_deployment(**_request(GetDeploymentInputDict)) + client.get_deployment(_request(GetDeploymentInput)) + client.get_deployment(_request(GetDeploymentInputDict)) + client.get_deployments(rest_api_id=_) + client.get_deployments(**_request(GetDeploymentsInputDict)) + client.get_deployments(_request(GetDeploymentsInput)) + client.get_deployments(_request(GetDeploymentsInputDict)) + client.get_documentation_part(rest_api_id=_, documentation_part_id=_) + client.get_documentation_part(**_request(GetDocumentationPartInputDict)) + client.get_documentation_part(_request(GetDocumentationPartInput)) + client.get_documentation_part(_request(GetDocumentationPartInputDict)) + client.get_documentation_parts(rest_api_id=_) + client.get_documentation_parts(**_request(GetDocumentationPartsInputDict)) + client.get_documentation_parts(_request(GetDocumentationPartsInput)) + client.get_documentation_parts(_request(GetDocumentationPartsInputDict)) + client.get_documentation_version(rest_api_id=_, documentation_version=_) + client.get_documentation_version(**_request(GetDocumentationVersionInputDict)) + client.get_documentation_version(_request(GetDocumentationVersionInput)) + client.get_documentation_version(_request(GetDocumentationVersionInputDict)) + client.get_documentation_versions(rest_api_id=_) + client.get_documentation_versions(**_request(GetDocumentationVersionsInputDict)) + client.get_documentation_versions(_request(GetDocumentationVersionsInput)) + client.get_documentation_versions(_request(GetDocumentationVersionsInputDict)) + client.get_domain_name(domain_name=_) + client.get_domain_name(**_request(GetDomainNameInputDict)) + client.get_domain_name(_request(GetDomainNameInput)) + client.get_domain_name(_request(GetDomainNameInputDict)) + client.get_domain_name_access_associations() + client.get_domain_name_access_associations( + **_request(GetDomainNameAccessAssociationsInputDict) + ) + client.get_domain_name_access_associations( + _request(GetDomainNameAccessAssociationsInput) + ) + client.get_domain_name_access_associations( + _request(GetDomainNameAccessAssociationsInputDict) + ) + client.get_domain_names() + client.get_domain_names(**_request(GetDomainNamesInputDict)) + client.get_domain_names(_request(GetDomainNamesInput)) + client.get_domain_names(_request(GetDomainNamesInputDict)) + client.get_export(rest_api_id=_, stage_name=_, export_type=_) + client.get_export(**_request(GetExportInputDict)) + client.get_export(_request(GetExportInput)) + client.get_export(_request(GetExportInputDict)) + client.get_gateway_response(rest_api_id=_, response_type=_) + client.get_gateway_response(**_request(GetGatewayResponseInputDict)) + client.get_gateway_response(_request(GetGatewayResponseInput)) + client.get_gateway_response(_request(GetGatewayResponseInputDict)) + client.get_gateway_responses(rest_api_id=_) + client.get_gateway_responses(**_request(GetGatewayResponsesInputDict)) + client.get_gateway_responses(_request(GetGatewayResponsesInput)) + client.get_gateway_responses(_request(GetGatewayResponsesInputDict)) + client.get_integration(rest_api_id=_, resource_id=_, http_method=_) + client.get_integration(**_request(GetIntegrationInputDict)) + client.get_integration(_request(GetIntegrationInput)) + client.get_integration(_request(GetIntegrationInputDict)) + client.get_integration_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + client.get_integration_response(**_request(GetIntegrationResponseInputDict)) + client.get_integration_response(_request(GetIntegrationResponseInput)) + client.get_integration_response(_request(GetIntegrationResponseInputDict)) + client.get_method(rest_api_id=_, resource_id=_, http_method=_) + client.get_method(**_request(GetMethodInputDict)) + client.get_method(_request(GetMethodInput)) + client.get_method(_request(GetMethodInputDict)) + client.get_method_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + client.get_method_response(**_request(GetMethodResponseInputDict)) + client.get_method_response(_request(GetMethodResponseInput)) + client.get_method_response(_request(GetMethodResponseInputDict)) + client.get_model(rest_api_id=_, model_name=_) + client.get_model(**_request(GetModelInputDict)) + client.get_model(_request(GetModelInput)) + client.get_model(_request(GetModelInputDict)) + client.get_models(rest_api_id=_) + client.get_models(**_request(GetModelsInputDict)) + client.get_models(_request(GetModelsInput)) + client.get_models(_request(GetModelsInputDict)) + client.get_model_template(rest_api_id=_, model_name=_) + client.get_model_template(**_request(GetModelTemplateInputDict)) + client.get_model_template(_request(GetModelTemplateInput)) + client.get_model_template(_request(GetModelTemplateInputDict)) + client.get_request_validator(rest_api_id=_, request_validator_id=_) + client.get_request_validator(**_request(GetRequestValidatorInputDict)) + client.get_request_validator(_request(GetRequestValidatorInput)) + client.get_request_validator(_request(GetRequestValidatorInputDict)) + client.get_request_validators(rest_api_id=_) + client.get_request_validators(**_request(GetRequestValidatorsInputDict)) + client.get_request_validators(_request(GetRequestValidatorsInput)) + client.get_request_validators(_request(GetRequestValidatorsInputDict)) + client.get_resource(rest_api_id=_, resource_id=_) + client.get_resource(**_request(GetResourceInputDict)) + client.get_resource(_request(GetResourceInput)) + client.get_resource(_request(GetResourceInputDict)) + client.get_resources(rest_api_id=_) + client.get_resources(**_request(GetResourcesInputDict)) + client.get_resources(_request(GetResourcesInput)) + client.get_resources(_request(GetResourcesInputDict)) + client.get_rest_api(rest_api_id=_) + client.get_rest_api(**_request(GetRestApiInputDict)) + client.get_rest_api(_request(GetRestApiInput)) + client.get_rest_api(_request(GetRestApiInputDict)) + client.get_rest_apis() + client.get_rest_apis(**_request(GetRestApisInputDict)) + client.get_rest_apis(_request(GetRestApisInput)) + client.get_rest_apis(_request(GetRestApisInputDict)) + client.get_sdk(rest_api_id=_, stage_name=_, sdk_type=_) + client.get_sdk(**_request(GetSdkInputDict)) + client.get_sdk(_request(GetSdkInput)) + client.get_sdk(_request(GetSdkInputDict)) + client.get_sdk_type(id=_) + client.get_sdk_type(**_request(GetSdkTypeInputDict)) + client.get_sdk_type(_request(GetSdkTypeInput)) + client.get_sdk_type(_request(GetSdkTypeInputDict)) + client.get_sdk_types() + client.get_sdk_types(**_request(GetSdkTypesInputDict)) + client.get_sdk_types(_request(GetSdkTypesInput)) + client.get_sdk_types(_request(GetSdkTypesInputDict)) + client.get_stage(rest_api_id=_, stage_name=_) + client.get_stage(**_request(GetStageInputDict)) + client.get_stage(_request(GetStageInput)) + client.get_stage(_request(GetStageInputDict)) + client.get_stages(rest_api_id=_) + client.get_stages(**_request(GetStagesInputDict)) + client.get_stages(_request(GetStagesInput)) + client.get_stages(_request(GetStagesInputDict)) + client.get_tags(resource_arn=_) + client.get_tags(**_request(GetTagsInputDict)) + client.get_tags(_request(GetTagsInput)) + client.get_tags(_request(GetTagsInputDict)) + client.get_usage(usage_plan_id=_, start_date=_, end_date=_) + client.get_usage(**_request(GetUsageInputDict)) + client.get_usage(_request(GetUsageInput)) + client.get_usage(_request(GetUsageInputDict)) + client.get_usage_plan(usage_plan_id=_) + client.get_usage_plan(**_request(GetUsagePlanInputDict)) + client.get_usage_plan(_request(GetUsagePlanInput)) + client.get_usage_plan(_request(GetUsagePlanInputDict)) + client.get_usage_plan_key(usage_plan_id=_, key_id=_) + client.get_usage_plan_key(**_request(GetUsagePlanKeyInputDict)) + client.get_usage_plan_key(_request(GetUsagePlanKeyInput)) + client.get_usage_plan_key(_request(GetUsagePlanKeyInputDict)) + client.get_usage_plan_keys(usage_plan_id=_) + client.get_usage_plan_keys(**_request(GetUsagePlanKeysInputDict)) + client.get_usage_plan_keys(_request(GetUsagePlanKeysInput)) + client.get_usage_plan_keys(_request(GetUsagePlanKeysInputDict)) + client.get_usage_plans() + client.get_usage_plans(**_request(GetUsagePlansInputDict)) + client.get_usage_plans(_request(GetUsagePlansInput)) + client.get_usage_plans(_request(GetUsagePlansInputDict)) + client.get_vpc_link(vpc_link_id=_) + client.get_vpc_link(**_request(GetVpcLinkInputDict)) + client.get_vpc_link(_request(GetVpcLinkInput)) + client.get_vpc_link(_request(GetVpcLinkInputDict)) + client.get_vpc_links() + client.get_vpc_links(**_request(GetVpcLinksInputDict)) + client.get_vpc_links(_request(GetVpcLinksInput)) + client.get_vpc_links(_request(GetVpcLinksInputDict)) + client.import_api_keys(body=_, format=_) + client.import_api_keys(**_request(ImportApiKeysInputDict)) + client.import_api_keys(_request(ImportApiKeysInput)) + client.import_api_keys(_request(ImportApiKeysInputDict)) + client.import_documentation_parts(rest_api_id=_, body=_) + client.import_documentation_parts(**_request(ImportDocumentationPartsInputDict)) + client.import_documentation_parts(_request(ImportDocumentationPartsInput)) + client.import_documentation_parts(_request(ImportDocumentationPartsInputDict)) + client.import_rest_api(body=_) + client.import_rest_api(**_request(ImportRestApiInputDict)) + client.import_rest_api(_request(ImportRestApiInput)) + client.import_rest_api(_request(ImportRestApiInputDict)) + client.put_gateway_response(rest_api_id=_, response_type=_) + client.put_gateway_response(**_request(PutGatewayResponseInputDict)) + client.put_gateway_response(_request(PutGatewayResponseInput)) + client.put_gateway_response(_request(PutGatewayResponseInputDict)) + client.put_integration(rest_api_id=_, resource_id=_, http_method=_, type=_) + client.put_integration(**_request(PutIntegrationInputDict)) + client.put_integration(_request(PutIntegrationInput)) + client.put_integration(_request(PutIntegrationInputDict)) + client.put_integration_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + client.put_integration_response(**_request(PutIntegrationResponseInputDict)) + client.put_integration_response(_request(PutIntegrationResponseInput)) + client.put_integration_response(_request(PutIntegrationResponseInputDict)) + client.put_method(rest_api_id=_, resource_id=_, http_method=_, authorization_type=_) + client.put_method(**_request(PutMethodInputDict)) + client.put_method(_request(PutMethodInput)) + client.put_method(_request(PutMethodInputDict)) + client.put_method_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + client.put_method_response(**_request(PutMethodResponseInputDict)) + client.put_method_response(_request(PutMethodResponseInput)) + client.put_method_response(_request(PutMethodResponseInputDict)) + client.put_rest_api(rest_api_id=_, body=_) + client.put_rest_api(**_request(PutRestApiInputDict)) + client.put_rest_api(_request(PutRestApiInput)) + client.put_rest_api(_request(PutRestApiInputDict)) + client.reject_domain_name_access_association( + domain_name_access_association_arn=_, domain_name_arn=_ + ) + client.reject_domain_name_access_association( + **_request(RejectDomainNameAccessAssociationInputDict) + ) + client.reject_domain_name_access_association( + _request(RejectDomainNameAccessAssociationInput) + ) + client.reject_domain_name_access_association( + _request(RejectDomainNameAccessAssociationInputDict) + ) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.test_invoke_authorizer(rest_api_id=_, authorizer_id=_) + client.test_invoke_authorizer(**_request(TestInvokeAuthorizerInputDict)) + client.test_invoke_authorizer(_request(TestInvokeAuthorizerInput)) + client.test_invoke_authorizer(_request(TestInvokeAuthorizerInputDict)) + client.test_invoke_method(rest_api_id=_, resource_id=_, http_method=_) + client.test_invoke_method(**_request(TestInvokeMethodInputDict)) + client.test_invoke_method(_request(TestInvokeMethodInput)) + client.test_invoke_method(_request(TestInvokeMethodInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_account() + client.update_account(**_request(UpdateAccountInputDict)) + client.update_account(_request(UpdateAccountInput)) + client.update_account(_request(UpdateAccountInputDict)) + client.update_api_key(api_key=_) + client.update_api_key(**_request(UpdateApiKeyInputDict)) + client.update_api_key(_request(UpdateApiKeyInput)) + client.update_api_key(_request(UpdateApiKeyInputDict)) + client.update_authorizer(rest_api_id=_, authorizer_id=_) + client.update_authorizer(**_request(UpdateAuthorizerInputDict)) + client.update_authorizer(_request(UpdateAuthorizerInput)) + client.update_authorizer(_request(UpdateAuthorizerInputDict)) + client.update_base_path_mapping(domain_name=_, base_path=_) + client.update_base_path_mapping(**_request(UpdateBasePathMappingInputDict)) + client.update_base_path_mapping(_request(UpdateBasePathMappingInput)) + client.update_base_path_mapping(_request(UpdateBasePathMappingInputDict)) + client.update_client_certificate(client_certificate_id=_) + client.update_client_certificate(**_request(UpdateClientCertificateInputDict)) + client.update_client_certificate(_request(UpdateClientCertificateInput)) + client.update_client_certificate(_request(UpdateClientCertificateInputDict)) + client.update_deployment(rest_api_id=_, deployment_id=_) + client.update_deployment(**_request(UpdateDeploymentInputDict)) + client.update_deployment(_request(UpdateDeploymentInput)) + client.update_deployment(_request(UpdateDeploymentInputDict)) + client.update_documentation_part(rest_api_id=_, documentation_part_id=_) + client.update_documentation_part(**_request(UpdateDocumentationPartInputDict)) + client.update_documentation_part(_request(UpdateDocumentationPartInput)) + client.update_documentation_part(_request(UpdateDocumentationPartInputDict)) + client.update_documentation_version(rest_api_id=_, documentation_version=_) + client.update_documentation_version(**_request(UpdateDocumentationVersionInputDict)) + client.update_documentation_version(_request(UpdateDocumentationVersionInput)) + client.update_documentation_version(_request(UpdateDocumentationVersionInputDict)) + client.update_domain_name(domain_name=_) + client.update_domain_name(**_request(UpdateDomainNameInputDict)) + client.update_domain_name(_request(UpdateDomainNameInput)) + client.update_domain_name(_request(UpdateDomainNameInputDict)) + client.update_gateway_response(rest_api_id=_, response_type=_) + client.update_gateway_response(**_request(UpdateGatewayResponseInputDict)) + client.update_gateway_response(_request(UpdateGatewayResponseInput)) + client.update_gateway_response(_request(UpdateGatewayResponseInputDict)) + client.update_integration(rest_api_id=_, resource_id=_, http_method=_) + client.update_integration(**_request(UpdateIntegrationInputDict)) + client.update_integration(_request(UpdateIntegrationInput)) + client.update_integration(_request(UpdateIntegrationInputDict)) + client.update_integration_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + client.update_integration_response(**_request(UpdateIntegrationResponseInputDict)) + client.update_integration_response(_request(UpdateIntegrationResponseInput)) + client.update_integration_response(_request(UpdateIntegrationResponseInputDict)) + client.update_method(rest_api_id=_, resource_id=_, http_method=_) + client.update_method(**_request(UpdateMethodInputDict)) + client.update_method(_request(UpdateMethodInput)) + client.update_method(_request(UpdateMethodInputDict)) + client.update_method_response( + rest_api_id=_, resource_id=_, http_method=_, status_code=_ + ) + client.update_method_response(**_request(UpdateMethodResponseInputDict)) + client.update_method_response(_request(UpdateMethodResponseInput)) + client.update_method_response(_request(UpdateMethodResponseInputDict)) + client.update_model(rest_api_id=_, model_name=_) + client.update_model(**_request(UpdateModelInputDict)) + client.update_model(_request(UpdateModelInput)) + client.update_model(_request(UpdateModelInputDict)) + client.update_request_validator(rest_api_id=_, request_validator_id=_) + client.update_request_validator(**_request(UpdateRequestValidatorInputDict)) + client.update_request_validator(_request(UpdateRequestValidatorInput)) + client.update_request_validator(_request(UpdateRequestValidatorInputDict)) + client.update_resource(rest_api_id=_, resource_id=_) + client.update_resource(**_request(UpdateResourceInputDict)) + client.update_resource(_request(UpdateResourceInput)) + client.update_resource(_request(UpdateResourceInputDict)) + client.update_rest_api(rest_api_id=_) + client.update_rest_api(**_request(UpdateRestApiInputDict)) + client.update_rest_api(_request(UpdateRestApiInput)) + client.update_rest_api(_request(UpdateRestApiInputDict)) + client.update_stage(rest_api_id=_, stage_name=_) + client.update_stage(**_request(UpdateStageInputDict)) + client.update_stage(_request(UpdateStageInput)) + client.update_stage(_request(UpdateStageInputDict)) + client.update_usage(usage_plan_id=_, key_id=_) + client.update_usage(**_request(UpdateUsageInputDict)) + client.update_usage(_request(UpdateUsageInput)) + client.update_usage(_request(UpdateUsageInputDict)) + client.update_usage_plan(usage_plan_id=_) + client.update_usage_plan(**_request(UpdateUsagePlanInputDict)) + client.update_usage_plan(_request(UpdateUsagePlanInput)) + client.update_usage_plan(_request(UpdateUsagePlanInputDict)) + client.update_vpc_link(vpc_link_id=_) + client.update_vpc_link(**_request(UpdateVpcLinkInputDict)) + client.update_vpc_link(_request(UpdateVpcLinkInput)) + client.update_vpc_link(_request(UpdateVpcLinkInputDict)) diff --git a/clients/aws-sdk-appconfigdata/pyproject.toml b/clients/aws-sdk-appconfigdata/pyproject.toml index d8c7b65a6..b802b08f4 100644 --- a/clients/aws-sdk-appconfigdata/pyproject.toml +++ b/clients/aws-sdk-appconfigdata/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/aio/client.py b/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/aio/client.py index 2aa69bbfd..5a96b6b90 100644 --- a/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/aio/client.py +++ b/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -19,12 +19,7 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from ..models import ( - GetLatestConfigurationInput, - GetLatestConfigurationOutput, - StartConfigurationSessionInput, - StartConfigurationSessionOutput, - ) + from ..models import GetLatestConfigurationOutput, StartConfigurationSessionOutput logger = logging.getLogger(__name__) @@ -89,10 +84,25 @@ class AsyncAppConfigDataClient(AsyncClient[AsyncAppConfigDataConfig]): in the *AppConfig User Guide*. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def get_latest_configuration( - self, input: GetLatestConfigurationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLatestConfigurationInput + | _models.GetLatestConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLatestConfigurationOutput: ... + + @_overload + async def get_latest_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLatestConfigurationInputDict], ) -> GetLatestConfigurationOutput: """ Retrieves the latest deployed configuration. This API may return empty @@ -116,8 +126,6 @@ async def get_latest_configuration( [Pricing](https://aws.amazon.com/systems-manager/pricing/). Args: - input: - An instance of `GetLatestConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -127,10 +135,34 @@ async def get_latest_configuration( Returns: An instance of `GetLatestConfigurationOutput`. """ - return await self._invoke(input, _models.GET_LATEST_CONFIGURATION, [], plugins) + async def get_latest_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLatestConfigurationOutput: + return await self._invoke( + self._select_input(_models.GET_LATEST_CONFIGURATION, args, kwargs), + _models.GET_LATEST_CONFIGURATION, + [], + plugins, + ) + + @_overload + async def start_configuration_session( + self, + request: _models.StartConfigurationSessionInput + | _models.StartConfigurationSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartConfigurationSessionOutput: ... + + @_overload async def start_configuration_session( - self, input: StartConfigurationSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartConfigurationSessionInputDict], ) -> StartConfigurationSessionOutput: """ Starts a configuration session used to retrieve a deployed @@ -141,8 +173,6 @@ async def start_configuration_session( in the *AppConfig User Guide*. Args: - input: - An instance of `StartConfigurationSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -152,8 +182,15 @@ async def start_configuration_session( Returns: An instance of `StartConfigurationSessionOutput`. """ + + async def start_configuration_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartConfigurationSessionOutput: return await self._invoke( - input, _models.START_CONFIGURATION_SESSION, [], plugins + self._select_input(_models.START_CONFIGURATION_SESSION, args, kwargs), + _models.START_CONFIGURATION_SESSION, + [], + plugins, ) async def _new_config(self) -> AsyncAppConfigDataConfig: diff --git a/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/client.py b/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/client.py index 54121a6ed..2885ad9ff 100644 --- a/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/client.py +++ b/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -19,12 +19,7 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from .models import ( - GetLatestConfigurationInput, - GetLatestConfigurationOutput, - StartConfigurationSessionInput, - StartConfigurationSessionOutput, - ) + from .models import GetLatestConfigurationOutput, StartConfigurationSessionOutput logger = logging.getLogger(__name__) @@ -89,10 +84,25 @@ class AppConfigDataClient(Client[AppConfigDataConfig]): in the *AppConfig User Guide*. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def get_latest_configuration( - self, input: GetLatestConfigurationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLatestConfigurationInput + | _models.GetLatestConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLatestConfigurationOutput: ... + + @_overload + def get_latest_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLatestConfigurationInputDict], ) -> GetLatestConfigurationOutput: """ Retrieves the latest deployed configuration. This API may return empty @@ -116,8 +126,6 @@ def get_latest_configuration( [Pricing](https://aws.amazon.com/systems-manager/pricing/). Args: - input: - An instance of `GetLatestConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -127,10 +135,34 @@ def get_latest_configuration( Returns: An instance of `GetLatestConfigurationOutput`. """ - return self._invoke(input, _models.GET_LATEST_CONFIGURATION, [], plugins) + def get_latest_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLatestConfigurationOutput: + return self._invoke( + self._select_input(_models.GET_LATEST_CONFIGURATION, args, kwargs), + _models.GET_LATEST_CONFIGURATION, + [], + plugins, + ) + + @_overload + def start_configuration_session( + self, + request: _models.StartConfigurationSessionInput + | _models.StartConfigurationSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartConfigurationSessionOutput: ... + + @_overload def start_configuration_session( - self, input: StartConfigurationSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartConfigurationSessionInputDict], ) -> StartConfigurationSessionOutput: """ Starts a configuration session used to retrieve a deployed @@ -141,8 +173,6 @@ def start_configuration_session( in the *AppConfig User Guide*. Args: - input: - An instance of `StartConfigurationSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -152,7 +182,16 @@ def start_configuration_session( Returns: An instance of `StartConfigurationSessionOutput`. """ - return self._invoke(input, _models.START_CONFIGURATION_SESSION, [], plugins) + + def start_configuration_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartConfigurationSessionOutput: + return self._invoke( + self._select_input(_models.START_CONFIGURATION_SESSION, args, kwargs), + _models.START_CONFIGURATION_SESSION, + [], + plugins, + ) def _new_config(self) -> AppConfigDataConfig: return AppConfigDataConfig.resolve() diff --git a/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/models.pyi b/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/models.pyi index 3762776ef..d90c77fc7 100644 --- a/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/models.pyi +++ b/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/models.pyi @@ -1,7 +1,7 @@ # Code generated by smithy-python-codegen DO NOT EDIT. from dataclasses import dataclass -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -82,6 +82,23 @@ class GetLatestConfigurationInput(_SerdeShape): uses an expired token, the system returns `BadRequestException`. """ +class GetLatestConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetLatestConfigurationInput`.""" + + configuration_token: Required[str] + """ + Token describing the current state of the configuration session. To + obtain a token, first call the StartConfigurationSession API. Note that + every call to `GetLatestConfiguration` will return a new + `ConfigurationToken` (`NextPollConfigurationToken` in the response) and + *must* be provided to subsequent `GetLatestConfiguration` API calls. + + Warning: + This token should only be used once. To support long poll use cases, the + token is valid for up to 24 hours. If a `GetLatestConfiguration` call + uses an expired token, the system returns `BadRequestException`. + """ + @dataclass(kw_only=True) class GetLatestConfigurationOutput(_SerdeShape): """Dataclass for GetLatestConfigurationOutput structure.""" @@ -180,6 +197,22 @@ class StartConfigurationSessionInput(_SerdeShape): GetLatestConfiguration more frequently than every 60 seconds. """ +class StartConfigurationSessionInputDict(TypedDict, total=False): + """Dictionary form of `StartConfigurationSessionInput`.""" + + application_identifier: Required[str] + """The application ID or the application name.""" + environment_identifier: Required[str] + """The environment ID or the environment name.""" + configuration_profile_identifier: Required[str] + """The configuration profile ID or the configuration profile name.""" + required_minimum_poll_interval_in_seconds: int | None + """ + Sets a constraint on a session. If you specify a value of, for example, + 60 seconds, then the client that established the session can't call + GetLatestConfiguration more frequently than every 60 seconds. + """ + @dataclass(kw_only=True) class StartConfigurationSessionOutput(_SerdeShape): """Dataclass for StartConfigurationSessionOutput structure.""" diff --git a/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/py.typed b/clients/aws-sdk-appconfigdata/src/aws_sdk_appconfigdata/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-appconfigdata/tests/_typecheck.py b/clients/aws-sdk-appconfigdata/tests/_typecheck.py index af0d165b5..682a0b410 100644 --- a/clients/aws-sdk-appconfigdata/tests/_typecheck.py +++ b/clients/aws-sdk-appconfigdata/tests/_typecheck.py @@ -2,17 +2,22 @@ from typing import Any +from aws_sdk_appconfigdata.aio.client import AsyncAppConfigDataClient +from aws_sdk_appconfigdata.client import AppConfigDataClient from aws_sdk_appconfigdata.models import ( GetLatestConfigurationInput, + GetLatestConfigurationInputDict, GetLatestConfigurationOutput, InvalidParameterDetail, StartConfigurationSessionInput, + StartConfigurationSessionInputDict, StartConfigurationSessionOutput, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -21,3 +26,49 @@ InvalidParameterDetail() StartConfigurationSessionInput() StartConfigurationSessionOutput() +_params_0: GetLatestConfigurationInputDict = {"configuration_token": _} +_params_1: StartConfigurationSessionInputDict = { + "application_identifier": _, + "environment_identifier": _, + "configuration_profile_identifier": _, +} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncAppConfigDataClient) -> None: + pass + await client.get_latest_configuration(configuration_token=_) + await client.get_latest_configuration(**_request(GetLatestConfigurationInputDict)) + await client.get_latest_configuration(_request(GetLatestConfigurationInput)) + await client.get_latest_configuration(_request(GetLatestConfigurationInputDict)) + await client.start_configuration_session( + application_identifier=_, + environment_identifier=_, + configuration_profile_identifier=_, + ) + await client.start_configuration_session( + **_request(StartConfigurationSessionInputDict) + ) + await client.start_configuration_session(_request(StartConfigurationSessionInput)) + await client.start_configuration_session( + _request(StartConfigurationSessionInputDict) + ) + + +def check_sync_calls(client: AppConfigDataClient) -> None: + pass + client.get_latest_configuration(configuration_token=_) + client.get_latest_configuration(**_request(GetLatestConfigurationInputDict)) + client.get_latest_configuration(_request(GetLatestConfigurationInput)) + client.get_latest_configuration(_request(GetLatestConfigurationInputDict)) + client.start_configuration_session( + application_identifier=_, + environment_identifier=_, + configuration_profile_identifier=_, + ) + client.start_configuration_session(**_request(StartConfigurationSessionInputDict)) + client.start_configuration_session(_request(StartConfigurationSessionInput)) + client.start_configuration_session(_request(StartConfigurationSessionInputDict)) diff --git a/clients/aws-sdk-bedrock-agent-runtime/pyproject.toml b/clients/aws-sdk-bedrock-agent-runtime/pyproject.toml index e71938a63..0f232a979 100644 --- a/clients/aws-sdk-bedrock-agent-runtime/pyproject.toml +++ b/clients/aws-sdk-bedrock-agent-runtime/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/models_0.pyi b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/models_0.pyi index d29de369e..4d8e6cb06 100644 --- a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/models_0.pyi +++ b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,50 +13,70 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( InvocationResultMember, + InvocationResultMemberDict, InvocationStep, KnowledgeBase, + KnowledgeBaseDict, KnowledgeBaseLookupInput, MantleFoundationModelConfiguration, + MantleFoundationModelConfigurationDict, Memory, Message, + MessageDict, Metadata, MetadataAttributeSchema, + MetadataAttributeSchemaDict, NodeActionEvent, NodeDependencyEvent, NodeFailureEvent, NodeInputEvent, NodeOutputEvent, OrchestrationExecutor, + OrchestrationExecutorDict, OutputFile, Parameter, ParameterDetail, + ParameterDetailDict, PerformanceConfiguration, + PerformanceConfigurationDict, PromptOverrideConfiguration, + PromptOverrideConfigurationDict, PromptTemplate, + PromptTemplateDict, PropertyParameters, QueryGenerationInput, + QueryGenerationInputDict, RequestBody, ResourceNotFoundException, RetrievalContent, RetrievedReference, RetrieverConfiguration, + RetrieverConfigurationDict, ReturnControlPayload, ReturnControlResults, S3Identifier, + S3IdentifierDict, S3Location, + S3LocationDict, S3ObjectDoc, + S3ObjectDocDict, S3ObjectFile, + S3ObjectFileDict, SatisfiedCondition, ServiceError, ServiceQuotaExceededException, TextInferenceConfig, + TextInferenceConfigDict, TextPrompt, + TextPromptDict, TextResponsePart, ThrottlingException, Trace, TraceElements, TransformationConfiguration, + TransformationConfigurationDict, UserContext, + UserContextDict, ValidationException, _SerdeShape, ) @@ -117,6 +138,25 @@ method for handling the information elicited from the user. class _ActionGroupExecutorDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ActionGroupExecutor: ... +class ActionGroupExecutorLambdaDict(TypedDict): + lambda_: str + """ + The Amazon Resource Name (ARN) of the Lambda function containing the + business logic that is carried out upon invoking the action. + """ + +class ActionGroupExecutorCustomControlDict(TypedDict): + custom_control: str + """ + To return the action group invocation results directly in the + `InvokeInlineAgent` response, specify `RETURN_CONTROL`. + """ + +ActionGroupExecutorDict = Union[ + ActionGroupExecutorLambdaDict | ActionGroupExecutorCustomControlDict +] +"""Dictionary form of `ActionGroupExecutor`, setting exactly one variant.""" + @dataclass(kw_only=True) class ActionGroupInvocationInput(_SerdeShape): """ @@ -252,6 +292,78 @@ class AgentActionGroup(_SerdeShape): tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html). """ +class AgentActionGroupDict(TypedDict, total=False): + """Dictionary form of `AgentActionGroup`.""" + + action_group_name: Required[str] + """The name of the action group.""" + description: str | None + """A description of the action group.""" + parent_action_group_signature: str | None + """ + Specify a built-in or computer use action for this action group. If you + specify a value, you must leave the `description`, `apiSchema`, and + `actionGroupExecutor` fields empty for this action group. + + - To allow your agent to request the user for additional information + when trying to complete a task, set this field to `AMAZON.UserInput`. + + - To allow your agent to generate, run, and troubleshoot code when + trying to complete a task, set this field to `AMAZON.CodeInterpreter`. + + - To allow your agent to use an Anthropic computer use tool, specify one + of the following values. + + Warning: + Computer use is a new Anthropic Claude model capability (in beta) + available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 + only. When operating computer use functionality, we recommend taking + additional security precautions, such as executing computer actions in + virtual environments with restricted data access and limited internet + connectivity. For more information, see [Configure an Amazon Bedrock + Agent to complete tasks with computer use + tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html). + + - `ANTHROPIC.Computer` - Gives the agent permission to use the mouse + and keyboard and take screenshots. + + - `ANTHROPIC.TextEditor` - Gives the agent permission to view, create + and edit files. + + - `ANTHROPIC.Bash` - Gives the agent permission to run commands in a + bash shell. + """ + action_group_executor: ActionGroupExecutor | ActionGroupExecutorDict | None + """ + The Amazon Resource Name (ARN) of the Lambda function containing the + business logic that is carried out upon invoking the action or the + custom control method for handling the information elicited from the + user. + """ + api_schema: APISchema | APISchemaDict | None + """ + Contains either details about the S3 object containing the OpenAPI + schema for the action group or the JSON or YAML-formatted payload + defining the schema. For more information, see [Action group OpenAPI + schemas](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-api-schema.html). + """ + function_schema: FunctionSchema | FunctionSchemaDict | None + """ + Contains details about the function schema for the action group or the + JSON or YAML-formatted payload defining the schema. + """ + parent_action_group_signature_params: Mapping[str, str] | None + """ + The configuration settings for a computer use action. + + Warning: + Computer use is a new Anthropic Claude model capability (in beta) + available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more + information, see [Configure an Amazon Bedrock Agent to complete tasks + with computer use + tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html). + """ + class AgentCollaboration(UnknownEnumMixin, StrEnum): SUPERVISOR = "SUPERVISOR" SUPERVISOR_ROUTER = "SUPERVISOR_ROUTER" @@ -359,6 +471,14 @@ class AgenticRetrieveBedrockGuardrailConfiguration(_SerdeShape): guardrail_version: str """The version of the guardrail to use.""" +class AgenticRetrieveBedrockGuardrailConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveBedrockGuardrailConfiguration`.""" + + guardrail_id: Required[str] + """The unique identifier of the guardrail.""" + guardrail_version: Required[str] + """The version of the guardrail to use.""" + @dataclass(kw_only=True) class AgenticRetrieveBedrockRerankingConfiguration(_SerdeShape): """Configuration for a Bedrock reranking model.""" @@ -366,6 +486,15 @@ class AgenticRetrieveBedrockRerankingConfiguration(_SerdeShape): model_configuration: AgenticRetrieveBedrockRerankingModelConfiguration """The model configuration containing the model ARN.""" +class AgenticRetrieveBedrockRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveBedrockRerankingConfiguration`.""" + + model_configuration: Required[ + AgenticRetrieveBedrockRerankingModelConfiguration + | AgenticRetrieveBedrockRerankingModelConfigurationDict + ] + """The model configuration containing the model ARN.""" + @dataclass(kw_only=True) class AgenticRetrieveBedrockRerankingModelConfiguration(_SerdeShape): """Model configuration for a Bedrock reranking model.""" @@ -373,6 +502,12 @@ class AgenticRetrieveBedrockRerankingModelConfiguration(_SerdeShape): model_arn: str """The ARN of the Bedrock reranking model.""" +class AgenticRetrieveBedrockRerankingModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveBedrockRerankingModelConfiguration`.""" + + model_arn: Required[str] + """The ARN of the Bedrock reranking model.""" + @dataclass(kw_only=True) class AgenticRetrieveCitation(_SerdeShape): """A citation mapping a span of the generated answer to supporting results.""" @@ -443,6 +578,40 @@ class AgenticRetrieveConfiguration(_SerdeShape): max_agent_iteration: int = ... """The maximum number of agent iterations for retrieval.""" +class AgenticRetrieveConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveConfiguration`.""" + + foundation_model_type: str | None + """ + The type of foundation model to use. CUSTOM uses a specified model, + MANAGED uses the service default. + """ + foundation_model_configuration: ( + FoundationModelConfiguration | FoundationModelConfigurationDict | None + ) + """ + The foundation model configuration. Required when foundationModelType is + CUSTOM. + """ + reranking_model_type: str | None + """ + The type of reranking model to use. CUSTOM uses a specified model, + MANAGED uses the service default. If not specified, defaults to MANAGED + for managed embedding knowledge bases and NONE for custom embedding + knowledge bases. + """ + reranking_configuration: ( + AgenticRetrieveRerankingConfiguration + | AgenticRetrieveRerankingConfigurationDict + | None + ) + """ + The reranking model configuration. Required when rerankingModelType is + CUSTOM. + """ + max_agent_iteration: int | None + """The maximum number of agent iterations for retrieval.""" + @dataclass(kw_only=True) class AgenticRetrieveFailure(_SerdeShape): """A failure that occurred during agentic retrieval.""" @@ -500,6 +669,21 @@ class AgenticRetrieveInstructionConfiguration(_SerdeShape): DRAFT is used. This default is permanent. """ +class AgenticRetrieveInstructionConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveInstructionConfiguration`.""" + + retrieval_instruction_id: Required[str] + """ + The identifier of the retrieval instruction. The instruction must exist + in the caller's account and its status must be ACTIVE. + """ + version: str | None + """ + The version of the retrieval instruction to apply: a version number, or + DRAFT for the instruction's current reviewed content. When omitted, + DRAFT is used. This default is permanent. + """ + @dataclass(kw_only=True) class AgenticRetrieveMemoryConfiguration(_SerdeShape): """ @@ -541,6 +725,51 @@ class AgenticRetrieveMemoryConfiguration(_SerdeShape): - `NONE` -- Specifies that the session is left unchanged. """ +class AgenticRetrieveMemoryConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveMemoryConfiguration`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource to use. The resource + must exist in your account and be in the ACTIVE state. + """ + session_binding: ( + AgenticRetrieveMemorySessionBinding + | AgenticRetrieveMemorySessionBindingDict + | None + ) + """ + The short-term memory session whose history is restored for this + retrieval. To persist the agent-generated answer to the session, omit + persistenceMode or set it to DEFAULT. To leave the session unchanged, + set persistenceMode to NONE. Supply session history through the existing + messages parameter or through short-term memory, but not both. + """ + retrieval_configs: ( + Sequence[ + AgenticRetrieveMemoryRetrievalConfig + | AgenticRetrieveMemoryRetrievalConfigDict + ] + | None + ) + """ + Specifies the long-term memory configuration the agent can retrieve + from. The agent decides whether to retrieve and composes its own query. + This field currently accepts at most one entry. + """ + persistence_mode: str | None + """ + Specifies whether the agent-generated answer is written back to the + given short-term memory session, and applies only when sessionBinding is + set. Valid values: + + - `DEFAULT` (default) -- Specifies that the question and the + agent-generated answer are persisted to the session as a single event. + This value requires generateResponse to be true. + + - `NONE` -- Specifies that the session is left unchanged. + """ + @dataclass(kw_only=True) class AgenticRetrieveMemoryMetadataFilter(_SerdeShape): """ @@ -563,6 +792,29 @@ class AgenticRetrieveMemoryMetadataFilter(_SerdeShape): this value for every operator except EXISTS and NOT_EXISTS. """ +class AgenticRetrieveMemoryMetadataFilterDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveMemoryMetadataFilter`.""" + + left: Required[ + AgenticRetrieveMemoryMetadataFilterLeft + | AgenticRetrieveMemoryMetadataFilterLeftDict + ] + """The metadata key that the expression evaluates.""" + operator: Required[str] + """ + The relationship that the metadata key and value must have for a memory + record to match. + """ + right: ( + AgenticRetrieveMemoryMetadataFilterRight + | AgenticRetrieveMemoryMetadataFilterRightDict + | None + ) + """ + The value that the expression compares the metadata key against. Supply + this value for every operator except EXISTS and NOT_EXISTS. + """ + @dataclass class AgenticRetrieveMemoryMetadataFilterLeftMetadataKey(_SerdeShape): """The metadata key to filter on.""" @@ -593,6 +845,18 @@ class _AgenticRetrieveMemoryMetadataFilterLeftDeserializer: self, deserializer: ShapeDeserializer ) -> AgenticRetrieveMemoryMetadataFilterLeft: ... +class AgenticRetrieveMemoryMetadataFilterLeftMetadataKeyDict(TypedDict): + metadata_key: str + """The metadata key to filter on.""" + +AgenticRetrieveMemoryMetadataFilterLeftDict = Union[ + AgenticRetrieveMemoryMetadataFilterLeftMetadataKeyDict +] +""" +Dictionary form of `AgenticRetrieveMemoryMetadataFilterLeft`, setting +exactly one variant. +""" + class AgenticRetrieveMemoryMetadataFilterOperator(UnknownEnumMixin, StrEnum): """ Specifies the relationship that a metadata key and value must have for a @@ -680,6 +944,20 @@ class _AgenticRetrieveMemoryMetadataFilterRightDeserializer: self, deserializer: ShapeDeserializer ) -> AgenticRetrieveMemoryMetadataFilterRight: ... +class AgenticRetrieveMemoryMetadataFilterRightMetadataValueDict(TypedDict): + metadata_value: ( + AgenticRetrieveMemoryMetadataValue | AgenticRetrieveMemoryMetadataValueDict + ) + """The value to compare the metadata key against.""" + +AgenticRetrieveMemoryMetadataFilterRightDict = Union[ + AgenticRetrieveMemoryMetadataFilterRightMetadataValueDict +] +""" +Dictionary form of `AgenticRetrieveMemoryMetadataFilterRight`, setting +exactly one variant. +""" + @dataclass class AgenticRetrieveMemoryMetadataValueStringValue(_SerdeShape): """A string value.""" @@ -731,6 +1009,33 @@ class _AgenticRetrieveMemoryMetadataValueDeserializer: self, deserializer: ShapeDeserializer ) -> AgenticRetrieveMemoryMetadataValue: ... +class AgenticRetrieveMemoryMetadataValueStringValueDict(TypedDict): + string_value: str + """A string value.""" + +class AgenticRetrieveMemoryMetadataValueNumberValueDict(TypedDict): + number_value: float + """A numeric value.""" + +class AgenticRetrieveMemoryMetadataValueStringListValueDict(TypedDict): + string_list_value: Sequence[str] + """A list of string values.""" + +class AgenticRetrieveMemoryMetadataValueDateTimeValueDict(TypedDict): + date_time_value: datetime + """A timestamp value in ISO 8601 UTC format.""" + +AgenticRetrieveMemoryMetadataValueDict = Union[ + AgenticRetrieveMemoryMetadataValueStringValueDict + | AgenticRetrieveMemoryMetadataValueNumberValueDict + | AgenticRetrieveMemoryMetadataValueStringListValueDict + | AgenticRetrieveMemoryMetadataValueDateTimeValueDict +] +""" +Dictionary form of `AgenticRetrieveMemoryMetadataValue`, setting +exactly one variant. +""" + class AgenticRetrieveMemoryPersistenceMode(UnknownEnumMixin, StrEnum): """ Specifies whether the agent-generated answer is written back to a @@ -777,6 +1082,39 @@ class AgenticRetrieveMemoryRetrievalConfig(_SerdeShape): memory records. You can specify a maximum of 5 expressions. """ +class AgenticRetrieveMemoryRetrievalConfigDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveMemoryRetrievalConfig`.""" + + namespace: str | None + """ + The namespace prefix to filter memory records by. The agent retrieves + memory records in namespaces that start with the provided prefix. You + must specify either namespace or namespacePath. + """ + namespace_path: str | None + """ + The parent namespace to use for hierarchical retrievals. The agent + retrieves all memory records whose namespace falls under the same parent + hierarchy. You must specify either namespace or namespacePath. + """ + strategy_id: str | None + """ + The extraction strategy ID that restricts retrieval to memory records + produced by a single strategy. Omit this parameter to retrieve records + from every strategy on the memory resource. + """ + metadata_filters: ( + Sequence[ + AgenticRetrieveMemoryMetadataFilter + | AgenticRetrieveMemoryMetadataFilterDict + ] + | None + ) + """ + The metadata filter expressions that restrict retrieval to matching + memory records. You can specify a maximum of 5 expressions. + """ + @dataclass(kw_only=True) class AgenticRetrieveMemoryRetrieveDetails(_SerdeShape): """ @@ -825,6 +1163,22 @@ class AgenticRetrieveMemorySessionBinding(_SerdeShape): responsible for sending the correct session value. """ +class AgenticRetrieveMemorySessionBindingDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveMemorySessionBinding`.""" + + actor_id: Required[str] + """ + The identifier of the end user or agent that the session belongs to. + This identifier scopes session history so that one actor's history is + never returned for another. You are responsible for sending the correct + actor value. + """ + session_id: Required[str] + """ + The identifier of the session to restore and continue. You are + responsible for sending the correct session value. + """ + @dataclass(kw_only=True) class AgenticRetrieveMessage(_SerdeShape): """A message in the agentic retrieval conversation.""" @@ -834,6 +1188,14 @@ class AgenticRetrieveMessage(_SerdeShape): role: str """The role of the message sender (e.g., user or assistant).""" +class AgenticRetrieveMessageDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveMessage`.""" + + content: Required[AgenticRetrieveMessageContent | AgenticRetrieveMessageContentDict] + """The content of the message.""" + role: Required[str] + """The role of the message sender (e.g., user or assistant).""" + @dataclass(kw_only=True) class AgenticRetrieveMessageContent(_SerdeShape): """The content of an agentic retrieval message.""" @@ -841,6 +1203,12 @@ class AgenticRetrieveMessageContent(_SerdeShape): text: str | None = ... """The text content of the message.""" +class AgenticRetrieveMessageContentDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveMessageContent`.""" + + text: str | None + """The text content of the message.""" + @dataclass(kw_only=True) class AgenticRetrievePolicyConfiguration(_SerdeShape): """Policy configuration for agentic retrieval.""" @@ -850,6 +1218,16 @@ class AgenticRetrievePolicyConfiguration(_SerdeShape): ) = ... """Configuration for Bedrock guardrails to apply during retrieval.""" +class AgenticRetrievePolicyConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrievePolicyConfiguration`.""" + + bedrock_guardrail_configuration: ( + AgenticRetrieveBedrockGuardrailConfiguration + | AgenticRetrieveBedrockGuardrailConfigurationDict + | None + ) + """Configuration for Bedrock guardrails to apply during retrieval.""" + @dataclass(kw_only=True) class AgenticRetriever(_SerdeShape): """A retriever used in agentic retrieval.""" @@ -859,6 +1237,14 @@ class AgenticRetriever(_SerdeShape): configuration: RetrieverConfiguration """The configuration for this retriever.""" +class AgenticRetrieverDict(TypedDict, total=False): + """Dictionary form of `AgenticRetriever`.""" + + description: str | None + """A description of the retriever's purpose.""" + configuration: Required[RetrieverConfiguration | RetrieverConfigurationDict] + """The configuration for this retriever.""" + @dataclass(kw_only=True) class AgenticRetrieveRerankingConfiguration(_SerdeShape): """Configuration for the reranking model.""" @@ -870,6 +1256,18 @@ class AgenticRetrieveRerankingConfiguration(_SerdeShape): ) = ... """The Bedrock reranking model configuration.""" +class AgenticRetrieveRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveRerankingConfiguration`.""" + + type: Required[str] + """The type of reranking configuration.""" + bedrock_reranking_configuration: ( + AgenticRetrieveBedrockRerankingConfiguration + | AgenticRetrieveBedrockRerankingConfigurationDict + | None + ) + """The Bedrock reranking model configuration.""" + class AgenticRetrieveRerankingConfigurationType(UnknownEnumMixin, StrEnum): """The type of reranking configuration.""" @@ -991,6 +1389,49 @@ class AgenticRetrieveStreamInput(_SerdeShape): generate_response: bool = ... """Whether to generate a response based on the retrieved results.""" +class AgenticRetrieveStreamInputDict(TypedDict, total=False): + """Dictionary form of `AgenticRetrieveStreamInput`.""" + + messages: Required[Sequence[AgenticRetrieveMessage | AgenticRetrieveMessageDict]] + """The list of messages for the agentic retrieval conversation.""" + retrievers: Required[Sequence[AgenticRetriever | AgenticRetrieverDict]] + """The list of retrievers to use for agentic retrieval.""" + agentic_retrieve_configuration: Required[ + AgenticRetrieveConfiguration | AgenticRetrieveConfigurationDict + ] + """Configuration settings for the agentic retrieval operation.""" + policy_configuration: ( + AgenticRetrievePolicyConfiguration + | AgenticRetrievePolicyConfigurationDict + | None + ) + """Policy configuration for guardrails and content filtering.""" + next_token: str | None + """Opaque continuation token for paginated results.""" + user_context: UserContext | UserContextDict | None + """ + Contains information about the user making the request. This is used for + access control filtering to ensure that retrieval results only include + documents the user is authorized to access. + """ + memory_configuration: ( + AgenticRetrieveMemoryConfiguration + | AgenticRetrieveMemoryConfigurationDict + | None + ) + """ + The configuration for using an Amazon Bedrock AgentCore Memory resource + with this retrieval. + """ + retrieval_instruction_configuration: ( + AgenticRetrieveInstructionConfiguration + | AgenticRetrieveInstructionConfigurationDict + | None + ) + """A retrieval instruction to apply to this request.""" + generate_response: bool | None + """Whether to generate a response based on the retrieved results.""" + @dataclass(kw_only=True) class AgenticRetrieveStreamOutput(_SerdeShape): """Response structure for the agentic retrieve stream operation.""" @@ -1338,6 +1779,41 @@ class ApiResult(_SerdeShape): agent_id: str | None = ... """The agent's ID.""" +class ApiResultDict(TypedDict, total=False): + """Dictionary form of `ApiResult`.""" + + action_group: Required[str] + """The action group that the API operation belongs to.""" + http_method: str | None + """The HTTP method for the API operation.""" + api_path: str | None + """The path to the API operation.""" + confirmation_state: str | None + """ + Controls the API operations or functions to invoke based on the user + confirmation. + """ + response_state: str | None + """ + Controls the final response state returned to end user when API/Function + execution failed. When this state is FAILURE, the request would fail + with dependency failure exception. When this state is REPROMPT, the + API/function response will be sent to model for re-prompt + """ + http_status_code: int | None + """ + http status code from API execution response (for example: 200, 400, + 500). + """ + response_body: Mapping[str, ContentBody | ContentBodyDict] | None + """ + The response body from the API operation. The key of the object is the + content type (currently, only `TEXT` is supported). The response may be + returned directly or from the Lambda function. + """ + agent_id: str | None + """The agent's ID.""" + @dataclass class APISchemaS3(_SerdeShape): """ @@ -1379,6 +1855,23 @@ s3 field. class _APISchemaDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> APISchema: ... +class APISchemaS3Dict(TypedDict): + s3: S3Identifier | S3IdentifierDict + """ + Contains details about the S3 object containing the OpenAPI schema for + the action group. + """ + +class APISchemaPayloadDict(TypedDict): + payload: str + """ + The JSON or YAML-formatted payload defining the OpenAPI schema for the + action group. + """ + +APISchemaDict = Union[APISchemaS3Dict | APISchemaPayloadDict] +"""Dictionary form of `APISchema`, setting exactly one variant.""" + class AttributeType(UnknownEnumMixin, StrEnum): STRING = "STRING" NUMBER = "NUMBER" @@ -1443,6 +1936,15 @@ class BedrockFoundationModelConfiguration(_SerdeShape): model_configuration: BedrockFoundationModelModelConfiguration """The model configuration containing the model ARN.""" +class BedrockFoundationModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `BedrockFoundationModelConfiguration`.""" + + model_configuration: Required[ + BedrockFoundationModelModelConfiguration + | BedrockFoundationModelModelConfigurationDict + ] + """The model configuration containing the model ARN.""" + @dataclass(kw_only=True) class BedrockFoundationModelModelConfiguration(_SerdeShape): """Model configuration for a Bedrock foundation model.""" @@ -1450,6 +1952,12 @@ class BedrockFoundationModelModelConfiguration(_SerdeShape): model_arn: str """The ARN of the Bedrock foundation model.""" +class BedrockFoundationModelModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `BedrockFoundationModelModelConfiguration`.""" + + model_arn: Required[str] + """The ARN of the Bedrock foundation model.""" + @dataclass(kw_only=True) class BedrockModelConfigurations(_SerdeShape): """Settings for a model called with InvokeAgent.""" @@ -1457,6 +1965,12 @@ class BedrockModelConfigurations(_SerdeShape): performance_config: PerformanceConfiguration | None = ... """The performance configuration for the model.""" +class BedrockModelConfigurationsDict(TypedDict, total=False): + """Dictionary form of `BedrockModelConfigurations`.""" + + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """The performance configuration for the model.""" + @dataclass(kw_only=True) class BedrockRerankingConfiguration(_SerdeShape): """Contains configurations for an Amazon Bedrock reranker model.""" @@ -1466,6 +1980,16 @@ class BedrockRerankingConfiguration(_SerdeShape): model_configuration: BedrockRerankingModelConfiguration """Contains configurations for a reranker model.""" +class BedrockRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `BedrockRerankingConfiguration`.""" + + number_of_results: int | None + """The number of results to return after reranking.""" + model_configuration: Required[ + BedrockRerankingModelConfiguration | BedrockRerankingModelConfigurationDict + ] + """Contains configurations for a reranker model.""" + @dataclass(kw_only=True) class BedrockRerankingModelConfiguration(_SerdeShape): """Contains configurations for a reranker model.""" @@ -1478,6 +2002,17 @@ class BedrockRerankingModelConfiguration(_SerdeShape): values are values for those fields. """ +class BedrockRerankingModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `BedrockRerankingModelConfiguration`.""" + + model_arn: Required[str] + """The ARN of the reranker model.""" + additional_model_request_fields: Mapping[str, Document] | None + """ + A JSON object whose keys are request fields for the model and whose + values are values for those fields. + """ + @dataclass class BedrockSessionContentBlockText(_SerdeShape): """The text in the invocation step.""" @@ -1524,6 +2059,22 @@ class _BedrockSessionContentBlockDeserializer: self, deserializer: ShapeDeserializer ) -> BedrockSessionContentBlock: ... +class BedrockSessionContentBlockTextDict(TypedDict): + text: str + """The text in the invocation step.""" + +class BedrockSessionContentBlockImageDict(TypedDict): + image: ImageBlock | ImageBlockDict + """The image in the invocation step.""" + +BedrockSessionContentBlockDict = Union[ + BedrockSessionContentBlockTextDict | BedrockSessionContentBlockImageDict +] +""" +Dictionary form of `BedrockSessionContentBlock`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ByteContentDoc(_SerdeShape): """ @@ -1538,6 +2089,16 @@ class ByteContentDoc(_SerdeShape): data: bytes """The byte value of the file to upload, encoded as a Base-64 string.""" +class ByteContentDocDict(TypedDict, total=False): + """Dictionary form of `ByteContentDoc`.""" + + identifier: Required[str] + """The file name of the document contained in the wrapper object.""" + content_type: Required[str] + """The MIME type of the document contained in the wrapper object.""" + data: Required[bytes] + """The byte value of the file to upload, encoded as a Base-64 string.""" + @dataclass(kw_only=True) class ByteContentFile(_SerdeShape): """The property contains the file to chat with, along with its attributes.""" @@ -1550,6 +2111,17 @@ class ByteContentFile(_SerdeShape): is attached is 10MB. You can attach a maximum of 5 files. """ +class ByteContentFileDict(TypedDict, total=False): + """Dictionary form of `ByteContentFile`.""" + + media_type: Required[str] + """The MIME type of data contained in the file used for chat.""" + data: Required[bytes] + """ + The raw bytes of the file to attach. The maximum size of all files that + is attached is 10MB. You can attach a maximum of 5 files. + """ + @dataclass class CallerAgentAliasArn(_SerdeShape): """The caller's agent alias ARN.""" @@ -1589,6 +2161,22 @@ class CheckIngestedDocumentAclInput(_SerdeShape): evaluate the document access control list (ACL). """ +class CheckIngestedDocumentAclInputDict(TypedDict, total=False): + """Dictionary form of `CheckIngestedDocumentAclInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base that contains the document.""" + data_source_id: Required[str] + """The unique identifier of the data source that contains the document.""" + document_id: Required[str] + """The unique identifier of the document to check access for.""" + user_context: Required[UserContext | UserContextDict] + """ + The context object containing identity information for access control + filtering, including user ID and optional group memberships used to + evaluate the document access control list (ACL). + """ + @dataclass(kw_only=True) class CheckIngestedDocumentAclOutput(_SerdeShape): """Dataclass for CheckIngestedDocumentAclOutput structure.""" @@ -1721,6 +2309,64 @@ class Collaborator(_SerdeShape): specified for `collaboratorName`. """ +class CollaboratorDict(TypedDict, total=False): + """Dictionary form of `Collaborator`.""" + + customer_encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the + inline collaborator. + """ + foundation_model: Required[str] + """The foundation model used by the inline collaborator agent.""" + instruction: Required[str] + """ + Instruction that tell the inline collaborator agent what it should do + and how it should interact with users. + """ + idle_session_ttl_in_seconds: int | None + """ + The number of seconds for which the Amazon Bedrock keeps information + about the user's conversation with the inline collaborator agent. + + A user interaction remains active for the amount of time specified. If + no conversation occurs during this time, the session expires and Amazon + Bedrock deletes any data provided before the timeout. + """ + action_groups: Sequence[AgentActionGroup | AgentActionGroupDict] | None + """ + List of action groups with each action group defining tasks the inline + collaborator agent needs to carry out. + """ + knowledge_bases: Sequence[KnowledgeBase | KnowledgeBaseDict] | None + """Knowledge base associated with the inline collaborator agent.""" + guardrail_configuration: ( + GuardrailConfigurationWithArn | GuardrailConfigurationWithArnDict | None + ) + """Details of the guardwrail associated with the inline collaborator.""" + prompt_override_configuration: ( + PromptOverrideConfiguration | PromptOverrideConfigurationDict | None + ) + """ + Contains configurations to override prompt templates in different parts + of an inline collaborator sequence. For more information, see [Advanced + prompts](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html). + """ + agent_collaboration: str | None + """ + Defines how the inline supervisor agent handles information across + multiple collaborator agents to coordinate a final response. + """ + collaborator_configurations: ( + Sequence[CollaboratorConfiguration | CollaboratorConfigurationDict] | None + ) + """Settings of the collaborator agent.""" + agent_name: str | None + """ + Name of the inline collaborator agent which must be the same name as + specified for `collaboratorName`. + """ + @dataclass(kw_only=True) class CollaboratorConfiguration(_SerdeShape): """Settings of an inline collaborator agent.""" @@ -1740,6 +2386,24 @@ class CollaboratorConfiguration(_SerdeShape): relay_conversation_history: str | None = ... """A relay conversation history for the inline collaborator agent.""" +class CollaboratorConfigurationDict(TypedDict, total=False): + """Dictionary form of `CollaboratorConfiguration`.""" + + collaborator_name: Required[str] + """ + Name of the inline collaborator agent which must be the same name as + specified for `agentName`. + """ + collaborator_instruction: Required[str] + """ + Instructions that tell the inline collaborator agent what it should do + and how it should interact with users. + """ + agent_alias_arn: str | None + """The Amazon Resource Name (ARN) of the inline collaborator agent.""" + relay_conversation_history: str | None + """A relay conversation history for the inline collaborator agent.""" + @dataclass(kw_only=True) class ConditionResultEvent(_SerdeShape): """ @@ -1800,6 +2464,13 @@ ContentBlock = Union[ContentBlockText | ContentBlockUnknown] class _ContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ContentBlock: ... +class ContentBlockTextDict(TypedDict): + text: str + """The block's text.""" + +ContentBlockDict = Union[ContentBlockTextDict] +"""Dictionary form of `ContentBlock`, setting exactly one variant.""" + @dataclass(kw_only=True) class ContentBody(_SerdeShape): """ @@ -1823,6 +2494,21 @@ class ContentBody(_SerdeShape): tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html). """ +class ContentBodyDict(TypedDict, total=False): + """Dictionary form of `ContentBody`.""" + + body: str | None + """The body of the API response.""" + images: Sequence[ImageInput | ImageInputDict] | None + """ + Lists details, including format and source, for the image in the + response from the function call. You can specify only one image and the + function in the `returnControlInvocationResults` must be a computer use + action. For more information, see [Configure an Amazon Bedrock Agent to + complete tasks with computer use + tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html). + """ + @dataclass(kw_only=True) class ConversationHistory(_SerdeShape): """A conversation history.""" @@ -1830,6 +2516,12 @@ class ConversationHistory(_SerdeShape): messages: list[Message] | None = ... """The conversation's messages.""" +class ConversationHistoryDict(TypedDict, total=False): + """Dictionary form of `ConversationHistory`.""" + + messages: Sequence[Message | MessageDict] | None + """The conversation's messages.""" + class ConversationRole(UnknownEnumMixin, StrEnum): USER = "user" ASSISTANT = "assistant" @@ -1852,6 +2544,23 @@ class CreateInvocationInput(_SerdeShape): Name (ARN). """ +class CreateInvocationInputDict(TypedDict, total=False): + """Dictionary form of `CreateInvocationInput`.""" + + invocation_id: str | None + """A unique identifier for the invocation in UUID format.""" + description: str | None + """ + A description for the interactions in the invocation. For example, + \"User asking about weather in Seattle\". + """ + session_identifier: Required[str] + """ + The unique identifier for the associated session for the invocation. You + can specify either the session's `sessionId` or its Amazon Resource + Name (ARN). + """ + @dataclass(kw_only=True) class CreateInvocationOutput(_SerdeShape): """Dataclass for CreateInvocationOutput structure.""" @@ -1893,6 +2602,28 @@ class CreateSessionInput(_SerdeShape): session. """ +class CreateSessionInputDict(TypedDict, total=False): + """Dictionary form of `CreateSessionInput`.""" + + session_metadata: Mapping[str, str] | None + """ + A map of key-value pairs containing attributes to be persisted across + the session. For example, the user's ID, their language preference, and + the type of device they are using. + """ + encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the KMS key to use to encrypt the + session data. The user or role creating the session must have permission + to use the key. For more information, see [Amazon Bedrock session + encryption](https://docs.aws.amazon.com/bedrock/latest/userguide/session-encryption.html). + """ + tags: Mapping[str, str] | None + """ + Specify the key-value pairs for the tags that you want to attach to the + session. + """ + @dataclass(kw_only=True) class CreateSessionOutput(_SerdeShape): """Dataclass for CreateSessionOutput structure.""" @@ -1930,6 +2661,15 @@ class CustomOrchestration(_SerdeShape): orchestration. """ +class CustomOrchestrationDict(TypedDict, total=False): + """Dictionary form of `CustomOrchestration`.""" + + executor: OrchestrationExecutor | OrchestrationExecutorDict | None + """ + The structure of the executor invoking the actions in custom + orchestration. + """ + @dataclass(kw_only=True) class CustomOrchestrationTrace(_SerdeShape): """The trace behavior for the custom orchestration.""" @@ -1963,6 +2703,18 @@ class DeleteAgentMemoryInput(_SerdeShape): session_id: str | None = ... """The unique session identifier of the memory.""" +class DeleteAgentMemoryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAgentMemoryInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent to which the alias belongs.""" + agent_alias_id: Required[str] + """The unique identifier of an alias of an agent.""" + memory_id: str | None + """The unique identifier of the memory.""" + session_id: str | None + """The unique session identifier of the memory.""" + @dataclass(kw_only=True) class DeleteAgentMemoryOutput(_SerdeShape): """Dataclass for DeleteAgentMemoryOutput structure.""" @@ -1985,6 +2737,15 @@ class DeleteSessionInput(_SerdeShape): either the session's `sessionId` or its Amazon Resource Name (ARN). """ +class DeleteSessionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSessionInput`.""" + + session_identifier: Required[str] + """ + The unique identifier for the session to be deleted. You can specify + either the session's `sessionId` or its Amazon Resource Name (ARN). + """ + @dataclass(kw_only=True) class DeleteSessionOutput(_SerdeShape): """Dataclass for DeleteSessionOutput structure.""" @@ -2116,6 +2877,15 @@ class EndSessionInput(_SerdeShape): session's `sessionId` or its Amazon Resource Name (ARN). """ +class EndSessionInputDict(TypedDict, total=False): + """Dictionary form of `EndSessionInput`.""" + + session_identifier: Required[str] + """ + The unique identifier for the session to end. You can specify either the + session's `sessionId` or its Amazon Resource Name (ARN). + """ + @dataclass(kw_only=True) class EndSessionOutput(_SerdeShape): """Dataclass for EndSessionOutput structure.""" @@ -2155,6 +2925,19 @@ class ExternalSource(_SerdeShape): object. """ +class ExternalSourceDict(TypedDict, total=False): + """Dictionary form of `ExternalSource`.""" + + source_type: Required[str] + """The source type of the external source wrapper object.""" + s3_location: S3ObjectDoc | S3ObjectDocDict | None + """The S3 location of the external source wrapper object.""" + byte_content: ByteContentDoc | ByteContentDocDict | None + """ + The identifier, contentType, and data of the external source wrapper + object. + """ + @dataclass(kw_only=True) class ExternalSourcesGenerationConfiguration(_SerdeShape): """ @@ -2183,6 +2966,30 @@ class ExternalSourcesGenerationConfiguration(_SerdeShape): performance_config: PerformanceConfiguration | None = ... """The latency configuration for the model.""" +class ExternalSourcesGenerationConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExternalSourcesGenerationConfiguration`.""" + + prompt_template: PromptTemplate | PromptTemplateDict | None + """ + Contain the textPromptTemplate string for the external source wrapper + object. + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """The configuration details for the guardrail.""" + inference_config: InferenceConfig | InferenceConfigDict | None + """ + Configuration settings for inference when using RetrieveAndGenerate to + generate responses while using an external source. + """ + additional_model_request_fields: Mapping[str, Document] | None + """ + Additional model parameters and their corresponding values not included + in the textInferenceConfig structure for an external source. Takes in + custom model parameters specific to the language model being used. + """ + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """The latency configuration for the model.""" + @dataclass(kw_only=True) class ExternalSourcesRetrieveAndGenerateConfiguration(_SerdeShape): """ @@ -2206,6 +3013,29 @@ class ExternalSourcesRetrieveAndGenerateConfiguration(_SerdeShape): `retrieveAndGenerate` function. """ +class ExternalSourcesRetrieveAndGenerateConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExternalSourcesRetrieveAndGenerateConfiguration`.""" + + model_arn: Required[str] + """ + The model Amazon Resource Name (ARN) for the external source wrapper + object in the `retrieveAndGenerate` function. + """ + sources: Required[Sequence[ExternalSource | ExternalSourceDict]] + """ + The document for the external source wrapper object in the + `retrieveAndGenerate` function. + """ + generation_configuration: ( + ExternalSourcesGenerationConfiguration + | ExternalSourcesGenerationConfigurationDict + | None + ) + """ + The prompt used with the external source wrapper object with the + `retrieveAndGenerate` function. + """ + class ExternalSourceType(UnknownEnumMixin, StrEnum): S3 = "S3" BYTE_CONTENT = "BYTE_CONTENT" @@ -2236,6 +3066,15 @@ class FieldForReranking(_SerdeShape): when reranking. """ +class FieldForRerankingDict(TypedDict, total=False): + """Dictionary form of `FieldForReranking`.""" + + field_name: Required[str] + """ + The name of a metadata field to include in or exclude from consideration + when reranking. + """ + @dataclass(kw_only=True) class FilePart(_SerdeShape): """ @@ -2257,6 +3096,16 @@ class FileSource(_SerdeShape): byte_content: ByteContentFile | None = ... """The data and the text of the attached files.""" +class FileSourceDict(TypedDict, total=False): + """Dictionary form of `FileSource`.""" + + source_type: Required[str] + """The source type of the files to attach.""" + s3_location: S3ObjectFile | S3ObjectFileDict | None + """The s3 location of the files to attach.""" + byte_content: ByteContentFile | ByteContentFileDict | None + """The data and the text of the attached files.""" + class FileSourceType(UnknownEnumMixin, StrEnum): S3 = "S3" BYTE_CONTENT = "BYTE_CONTENT" @@ -2284,6 +3133,14 @@ class FilterAttribute(_SerdeShape): value: Document """The value to which to compare the value of the metadata attribute.""" +class FilterAttributeDict(TypedDict, total=False): + """Dictionary form of `FilterAttribute`.""" + + key: Required[str] + """The name that the metadata attribute must match.""" + value: Required[Document] + """The value to which to compare the value of the metadata attribute.""" + @dataclass(kw_only=True) class FinalResponse(_SerdeShape): """Contains details about the response to the user.""" @@ -2607,6 +3464,21 @@ class FlowInput(_SerdeShape): node_input_name: str | None = ... """The name of the input from the flow input node.""" +class FlowInputDict(TypedDict, total=False): + """Dictionary form of `FlowInput`.""" + + node_name: Required[str] + """The name of the flow input node that begins the prompt flow.""" + node_output_name: str | None + """ + The name of the output from the flow input node that begins the prompt + flow. + """ + content: Required[FlowInputContent | FlowInputContentDict] + """Contains information about an input into the prompt flow.""" + node_input_name: str | None + """The name of the input from the flow input node.""" + @dataclass class FlowInputContentDocument(_SerdeShape): """The input to send to the prompt flow input node.""" @@ -2629,6 +3501,13 @@ FlowInputContent = Union[FlowInputContentDocument | FlowInputContentUnknown] class _FlowInputContentDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> FlowInputContent: ... +class FlowInputContentDocumentDict(TypedDict): + document: Document + """The input to send to the prompt flow input node.""" + +FlowInputContentDict = Union[FlowInputContentDocumentDict] +"""Dictionary form of `FlowInputContent`, setting exactly one variant.""" + @dataclass(kw_only=True) class FlowInputField(_SerdeShape): """ @@ -3221,6 +4100,24 @@ class FoundationModelConfiguration(_SerdeShape): ) = ... """The Mantle foundation model configuration.""" +class FoundationModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `FoundationModelConfiguration`.""" + + type: Required[str] + """The type of foundation model configuration.""" + bedrock_foundation_model_configuration: ( + BedrockFoundationModelConfiguration + | BedrockFoundationModelConfigurationDict + | None + ) + """The Bedrock foundation model configuration.""" + mantle_foundation_model_configuration: ( + MantleFoundationModelConfiguration + | MantleFoundationModelConfigurationDict + | None + ) + """The Mantle foundation model configuration.""" + class FoundationModelConfigurationType(UnknownEnumMixin, StrEnum): """The type of foundation model configuration.""" @@ -3255,6 +4152,24 @@ class FunctionDefinition(_SerdeShape): function. """ +class FunctionDefinitionDict(TypedDict, total=False): + """Dictionary form of `FunctionDefinition`.""" + + name: Required[str] + """A name for the function.""" + description: str | None + """A description of the function and its purpose.""" + parameters: Mapping[str, ParameterDetail | ParameterDetailDict] | None + """ + The parameters that the agent elicits from the user to fulfill the + function. + """ + require_confirmation: str | None + """ + Contains information if user confirmation is required to invoke the + function. + """ + @dataclass(kw_only=True) class FunctionInvocationInput(_SerdeShape): """ @@ -3301,25 +4216,59 @@ class FunctionParameter(_SerdeShape): @dataclass(kw_only=True) class FunctionResult(_SerdeShape): """ - Contains information about the function that was called from the action - group and the response that was returned. - - This data type is used in the following API operations: - - - In the `returnControlInvocationResults` of the [InvokeAgent - request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_RequestSyntax) + Contains information about the function that was called from the action + group and the response that was returned. + + This data type is used in the following API operations: + + - In the `returnControlInvocationResults` of the [InvokeAgent + request](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_RequestSyntax) + """ + + action_group: str + """The action group that the function belongs to.""" + confirmation_state: str | None = ... + """ + Contains the user confirmation information about the function that was + called. + """ + function: str | None = ... + """The name of the function that was called.""" + response_body: dict[str, ContentBody] | None = ... + """ + The response from the function call using the parameters. The response + might be returned directly or from the Lambda function. Specify `TEXT` + or `IMAGES`. The key of the object is the content type. You can only + specify one type. If you specify `IMAGES`, you can specify only one + image. You can specify images only when the function in the + `returnControlInvocationResults` is a computer use action. For more + information, see [Configure an Amazon Bedrock Agent to complete tasks + with computer use + tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html). + """ + response_state: str | None = ... + """ + Controls the final response state returned to end user when API/Function + execution failed. When this state is FAILURE, the request would fail + with dependency failure exception. When this state is REPROMPT, the + API/function response will be sent to model for re-prompt """ + agent_id: str | None = ... + """The agent's ID.""" - action_group: str +class FunctionResultDict(TypedDict, total=False): + """Dictionary form of `FunctionResult`.""" + + action_group: Required[str] """The action group that the function belongs to.""" - confirmation_state: str | None = ... + confirmation_state: str | None """ Contains the user confirmation information about the function that was called. """ - function: str | None = ... + function: str | None """The name of the function that was called.""" - response_body: dict[str, ContentBody] | None = ... + response_body: Mapping[str, ContentBody | ContentBodyDict] | None """ The response from the function call using the parameters. The response might be returned directly or from the Lambda function. Specify `TEXT` @@ -3331,14 +4280,14 @@ class FunctionResult(_SerdeShape): with computer use tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html). """ - response_state: str | None = ... + response_state: str | None """ Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt """ - agent_id: str | None = ... + agent_id: str | None """The agent's ID.""" @dataclass @@ -3366,6 +4315,13 @@ JSON or YAML-formatted payload defining the schema. class _FunctionSchemaDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> FunctionSchema: ... +class FunctionSchemaFunctionsDict(TypedDict): + functions: Sequence[FunctionDefinition | FunctionDefinitionDict] + """A list of functions that each define an action in the action group.""" + +FunctionSchemaDict = Union[FunctionSchemaFunctionsDict] +"""Dictionary form of `FunctionSchema`, setting exactly one variant.""" + @dataclass(kw_only=True) class GeneratedQuery(_SerdeShape): """ @@ -3419,6 +4375,22 @@ class GenerateQueryInput(_SerdeShape): into SQL. """ +class GenerateQueryInputDict(TypedDict, total=False): + """Dictionary form of `GenerateQueryInput`.""" + + query_generation_input: Required[QueryGenerationInput | QueryGenerationInputDict] + """ + Specifies information about a natural language query to transform into + SQL. + """ + transformation_configuration: Required[ + TransformationConfiguration | TransformationConfigurationDict + ] + """ + Specifies configurations for transforming the natural language query + into SQL. + """ + @dataclass(kw_only=True) class GenerateQueryOutput(_SerdeShape): """Dataclass for GenerateQueryOutput structure.""" @@ -3473,6 +4445,34 @@ class GenerationConfiguration(_SerdeShape): performance_config: PerformanceConfiguration | None = ... """The latency configuration for the model.""" +class GenerationConfigurationDict(TypedDict, total=False): + """Dictionary form of `GenerationConfiguration`.""" + + prompt_template: PromptTemplate | PromptTemplateDict | None + """ + Contains the template for the prompt that's sent to the model for + response generation. Generation prompts must include the + `$search_results$` variable. For more information, see [Use placeholder + variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html) + in the user guide. + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """The configuration details for the guardrail.""" + inference_config: InferenceConfig | InferenceConfigDict | None + """ + Configuration settings for inference when using RetrieveAndGenerate to + generate responses while using a knowledge base as a source. + """ + additional_model_request_fields: Mapping[str, Document] | None + """ + Additional model parameters and corresponding values not included in the + textInferenceConfig structure for a knowledge base. This allows users to + provide custom model parameters specific to the language model being + used. + """ + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """The latency configuration for the model.""" + @dataclass(kw_only=True) class GetAgentMemoryInput(_SerdeShape): """Dataclass for GetAgentMemoryInput structure.""" @@ -3499,6 +4499,31 @@ class GetAgentMemoryInput(_SerdeShape): memory_id: str | None = ... """The unique identifier of the memory.""" +class GetAgentMemoryInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentMemoryInput`.""" + + next_token: str | None + """ + If the total number of results is greater than the maxItems value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + max_items: int | None + """ + The maximum number of items to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + agent_id: Required[str] + """The unique identifier of the agent to which the alias belongs.""" + agent_alias_id: Required[str] + """The unique identifier of an alias of an agent.""" + memory_type: Required[str] + """The type of memory.""" + memory_id: Required[str] + """The unique identifier of the memory.""" + @dataclass(kw_only=True) class GetAgentMemoryOutput(_SerdeShape): """Dataclass for GetAgentMemoryOutput structure.""" @@ -3544,12 +4569,12 @@ class GetDocumentContentInput(_SerdeShape): RAW - : Returns the original document, or the selected image if you specify - `mediaId`. + : Returns the original document, or the selected image if you specify + `mediaId`. EXTRACTED - : Returns parsed document text as JSON. + : Returns parsed document text as JSON. If you omit this parameter, the default is `RAW`. You can't use `EXTRACTED` with `mediaId`. @@ -3561,6 +4586,47 @@ class GetDocumentContentInput(_SerdeShape): the user is authorized to access. """ +class GetDocumentContentInputDict(TypedDict, total=False): + """Dictionary form of `GetDocumentContentInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base that contains the document.""" + data_source_id: Required[str] + """The unique identifier of the data source that contains the document.""" + document_id: Required[str] + """The unique identifier of the document to retrieve content for.""" + media_id: str | None + """ + The unique identifier (in UUID format) of an image embedded in the + specified document. Set this parameter to the `_media_id` value in the + metadata of the corresponding `Retrieve` result. If you specify this + parameter, the response contains a pre-signed URL for the image instead + of the document, and you must omit `outputFormat` or set it to `RAW`. + """ + output_format: str | None + """ + The output format for the content. You can specify one of the following + values: + + RAW + + : Returns the original document, or the selected image if you specify + `mediaId`. + + EXTRACTED + + : Returns parsed document text as JSON. + + If you omit this parameter, the default is `RAW`. You can't use + `EXTRACTED` with `mediaId`. + """ + user_context: UserContext | UserContextDict | None + """ + Contains information about the user making the request. This is used for + access control filtering to ensure that results only include documents + the user is authorized to access. + """ + @dataclass(kw_only=True) class GetDocumentContentOutput(_SerdeShape): """Dataclass for GetDocumentContentOutput structure.""" @@ -3598,6 +4664,16 @@ class GetExecutionFlowSnapshotInput(_SerdeShape): execution_identifier: str | None = ... """The unique identifier of the flow execution.""" +class GetExecutionFlowSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `GetExecutionFlowSnapshotInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + flow_alias_identifier: Required[str] + """The unique identifier of the flow alias used for the flow execution.""" + execution_identifier: Required[str] + """The unique identifier of the flow execution.""" + @dataclass(kw_only=True) class GetExecutionFlowSnapshotOutput(_SerdeShape): """Dataclass for GetExecutionFlowSnapshotOutput structure.""" @@ -3646,6 +4722,16 @@ class GetFlowExecutionInput(_SerdeShape): execution_identifier: str | None = ... """The unique identifier of the flow execution to retrieve.""" +class GetFlowExecutionInputDict(TypedDict, total=False): + """Dictionary form of `GetFlowExecutionInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + flow_alias_identifier: Required[str] + """The unique identifier of the flow alias used for the execution.""" + execution_identifier: Required[str] + """The unique identifier of the flow execution to retrieve.""" + @dataclass(kw_only=True) class GetFlowExecutionOutput(_SerdeShape): """Dataclass for GetFlowExecutionOutput structure.""" @@ -3703,6 +4789,19 @@ class GetIngestedDocumentAclInput(_SerdeShape): control list (ACL) for. """ +class GetIngestedDocumentAclInputDict(TypedDict, total=False): + """Dictionary form of `GetIngestedDocumentAclInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base that contains the document.""" + data_source_id: Required[str] + """The unique identifier of the data source that contains the document.""" + document_id: Required[str] + """ + The unique identifier of the document to retrieve the ingested access + control list (ACL) for. + """ + @dataclass(kw_only=True) class GetIngestedDocumentAclOutput(_SerdeShape): """Dataclass for GetIngestedDocumentAclOutput structure.""" @@ -3738,6 +4837,23 @@ class GetInvocationStepInput(_SerdeShape): Name (ARN). """ +class GetInvocationStepInputDict(TypedDict, total=False): + """Dictionary form of `GetInvocationStepInput`.""" + + invocation_identifier: Required[str] + """The unique identifier for the invocation in UUID format.""" + invocation_step_id: Required[str] + """ + The unique identifier (in UUID format) for the specific invocation step + to retrieve. + """ + session_identifier: Required[str] + """ + The unique identifier for the invocation step's associated session. You + can specify either the session's `sessionId` or its Amazon Resource + Name (ARN). + """ + @dataclass(kw_only=True) class GetInvocationStepOutput(_SerdeShape): """Dataclass for GetInvocationStepOutput structure.""" @@ -3762,6 +4878,15 @@ class GetSessionInput(_SerdeShape): the session's `sessionId` or its Amazon Resource Name (ARN). """ +class GetSessionInputDict(TypedDict, total=False): + """Dictionary form of `GetSessionInput`.""" + + session_identifier: Required[str] + """ + A unique identifier for the session to retrieve. You can specify either + the session's `sessionId` or its Amazon Resource Name (ARN). + """ + @dataclass(kw_only=True) class GetSessionOutput(_SerdeShape): """Dataclass for GetSessionOutput structure.""" @@ -3828,6 +4953,14 @@ class GuardrailConfiguration(_SerdeShape): guardrail_version: str """The version of the guardrail.""" +class GuardrailConfigurationDict(TypedDict, total=False): + """Dictionary form of `GuardrailConfiguration`.""" + + guardrail_id: Required[str] + """The unique identifier for the guardrail.""" + guardrail_version: Required[str] + """The version of the guardrail.""" + @dataclass(kw_only=True) class GuardrailConfigurationWithArn(_SerdeShape): """The configuration details for the guardrail.""" @@ -3837,6 +4970,14 @@ class GuardrailConfigurationWithArn(_SerdeShape): guardrail_version: str """The version of the guardrail.""" +class GuardrailConfigurationWithArnDict(TypedDict, total=False): + """Dictionary form of `GuardrailConfigurationWithArn`.""" + + guardrail_identifier: Required[str] + """The unique identifier for the guardrail.""" + guardrail_version: Required[str] + """The version of the guardrail.""" + @dataclass(kw_only=True) class GuardrailContentFilter(_SerdeShape): """Details of the content filter used in the Guardrail.""" @@ -4050,6 +5191,14 @@ class ImageBlock(_SerdeShape): source: ImageSource """The source for the image.""" +class ImageBlockDict(TypedDict, total=False): + """Dictionary form of `ImageBlock`.""" + + format: Required[str] + """The format of the image.""" + source: Required[ImageSource | ImageSourceDict] + """The source for the image.""" + class ImageFormat(UnknownEnumMixin, StrEnum): PNG = "png" JPEG = "jpeg" @@ -4071,6 +5220,14 @@ class ImageInput(_SerdeShape): source: ImageInputSource """The source of the image in the result.""" +class ImageInputDict(TypedDict, total=False): + """Dictionary form of `ImageInput`.""" + + format: Required[str] + """The type of image in the result.""" + source: Required[ImageInputSource | ImageInputSourceDict] + """The source of the image in the result.""" + class ImageInputFormat(UnknownEnumMixin, StrEnum): PNG = "png" JPEG = "jpeg" @@ -4105,6 +5262,16 @@ in the action group invocation. class _ImageInputSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ImageInputSource: ... +class ImageInputSourceBytesDict(TypedDict): + bytes_: bytes + """ + The raw image bytes for the image. If you use an Amazon Web Services + SDK, you don't need to encode the image bytes in base64. + """ + +ImageInputSourceDict = Union[ImageInputSourceBytesDict] +"""Dictionary form of `ImageInputSource`, setting exactly one variant.""" + @dataclass class ImageSourceBytes(_SerdeShape): """ @@ -4136,6 +5303,20 @@ ImageSource = Union[ImageSourceBytes | ImageSourceS3Location | ImageSourceUnknow class _ImageSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ImageSource: ... +class ImageSourceBytesDict(TypedDict): + bytes_: bytes + """ + The raw image bytes for the image. If you use an Amazon Web Services + SDK, you don't need to encode the image bytes in base64. + """ + +class ImageSourceS3LocationDict(TypedDict): + s3_location: S3Location | S3LocationDict + """The path to the Amazon S3 bucket where the image is stored.""" + +ImageSourceDict = Union[ImageSourceBytesDict | ImageSourceS3LocationDict] +"""Dictionary form of `ImageSource`, setting exactly one variant.""" + @dataclass(kw_only=True) class ImplicitFilterConfiguration(_SerdeShape): """ @@ -4148,6 +5329,16 @@ class ImplicitFilterConfiguration(_SerdeShape): model_arn: str """The model that generates the filter.""" +class ImplicitFilterConfigurationDict(TypedDict, total=False): + """Dictionary form of `ImplicitFilterConfiguration`.""" + + metadata_attributes: Required[ + Sequence[MetadataAttributeSchema | MetadataAttributeSchemaDict] + ] + """Metadata that can be used in a filter.""" + model_arn: Required[str] + """The model that generates the filter.""" + @dataclass(kw_only=True) class InferenceConfig(_SerdeShape): """ @@ -4161,6 +5352,15 @@ class InferenceConfig(_SerdeShape): responses using RetrieveAndGenerate. """ +class InferenceConfigDict(TypedDict, total=False): + """Dictionary form of `InferenceConfig`.""" + + text_inference_config: TextInferenceConfig | TextInferenceConfigDict | None + """ + Configuration settings specific to text generation while generating + responses using RetrieveAndGenerate. + """ + @dataclass(kw_only=True) class InferenceConfiguration(_SerdeShape): """ @@ -4205,6 +5405,42 @@ class InferenceConfiguration(_SerdeShape): that causes the model to stop generating the response. """ +class InferenceConfigurationDict(TypedDict, total=False): + """Dictionary form of `InferenceConfiguration`.""" + + temperature: float | None + """ + The likelihood of the model selecting higher-probability options while + generating a response. A lower value makes the model more likely to + choose higher-probability options, while a higher value makes the model + more likely to choose lower-probability options. + """ + top_p: float | None + """ + While generating a response, the model determines the probability of the + following token at each point of generation. The value that you set for + `Top P` determines the number of most-likely candidates from which the + model chooses the next token in the sequence. For example, if you set + `topP` to 0.8, the model only selects the next token from the top 80% of + the probability distribution of next tokens. + """ + top_k: int | None + """ + While generating a response, the model determines the probability of the + following token at each point of generation. The value that you set for + `topK` is the number of most-likely candidates from which the model + chooses the next token in the sequence. For example, if you set `topK` + to 50, the model selects the next token from among the top 50 most + likely choices. + """ + maximum_length: int | None + """The maximum number of tokens allowed in the generated response.""" + stop_sequences: Sequence[str] | None + """ + A list of stop sequences. A stop sequence is a sequence of characters + that causes the model to stop generating the response. + """ + @dataclass(kw_only=True) class InlineAgentFilePart(_SerdeShape): """ @@ -4428,6 +5664,12 @@ class InlineBedrockModelConfigurations(_SerdeShape): performance_config: PerformanceConfiguration | None = ... """The latency configuration for the model.""" +class InlineBedrockModelConfigurationsDict(TypedDict, total=False): + """Dictionary form of `InlineBedrockModelConfigurations`.""" + + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """The latency configuration for the model.""" + @dataclass(kw_only=True) class InlineSessionState(_SerdeShape): """ @@ -4476,6 +5718,45 @@ class InlineSessionState(_SerdeShape): conversation_history: ConversationHistory | None = ... """Contains the conversation history that persist across sessions.""" +class InlineSessionStateDict(TypedDict, total=False): + """Dictionary form of `InlineSessionState`.""" + + session_attributes: Mapping[str, str] | None + """ + Contains attributes that persist across a session and the values of + those attributes. + """ + prompt_session_attributes: Mapping[str, str] | None + """ + Contains attributes that persist across a session and the values of + those attributes. + """ + return_control_invocation_results: ( + Sequence[InvocationResultMember | InvocationResultMemberDict] | None + ) + """ + Contains information about the results from the action group invocation. + For more information, see [Return control to the agent + developer](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html). + + Note: + If you include this field in the `sessionState` field, the `inputText` + field will be ignored. + """ + invocation_id: str | None + """ + The identifier of the invocation of an action. This value must match the + `invocationId` returned in the `InvokeInlineAgent` response for the + action whose results are provided in the + `returnControlInvocationResults` field. For more information, see + [Return control to the agent + developer](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html). + """ + files: Sequence[InputFile | InputFileDict] | None + """Contains information about the files used by code interpreter.""" + conversation_history: ConversationHistory | ConversationHistoryDict | None + """Contains the conversation history that persist across sessions.""" + @dataclass(kw_only=True) class InputFile(_SerdeShape): """Contains details of the source files.""" @@ -4487,6 +5768,16 @@ class InputFile(_SerdeShape): use_case: str """Specifies how the source files will be used by the code interpreter.""" +class InputFileDict(TypedDict, total=False): + """Dictionary form of `InputFile`.""" + + name: Required[str] + """The name of the source file.""" + source: Required[FileSource | FileSourceDict] + """Specifies where the files are located.""" + use_case: Required[str] + """Specifies how the source files will be used by the code interpreter.""" + @dataclass(kw_only=True) class InputImage(_SerdeShape): """ @@ -4511,6 +5802,20 @@ class InputImage(_SerdeShape): 5MB. """ +class InputImageDict(TypedDict, total=False): + """Dictionary form of `InputImage`.""" + + format: Required[str] + """ + The format of the input image. Supported formats include png, gif, jpeg, + and webp. + """ + inline_content: Required[bytes] + """ + The base64-encoded image data for inline image content. Maximum size is + 5MB. + """ + class InputImageFormat(UnknownEnumMixin, StrEnum): PNG = "png" JPEG = "jpeg" @@ -4539,6 +5844,13 @@ InputPrompt = Union[InputPromptTextPrompt | InputPromptUnknown] class _InputPromptDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> InputPrompt: ... +class InputPromptTextPromptDict(TypedDict): + text_prompt: TextPrompt | TextPromptDict + """Contains information about the text prompt to optimize.""" + +InputPromptDict = Union[InputPromptTextPromptDict] +"""Dictionary form of `InputPrompt`, setting exactly one variant.""" + class InputQueryType(UnknownEnumMixin, StrEnum): TEXT = "TEXT" diff --git a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/models_1.pyi b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/models_1.pyi index 1f3288856..b242dd611 100644 --- a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/models_1.pyi +++ b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/models_1.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -14,50 +15,76 @@ from ..models import ( AccessDeniedException, ActionGroupInvocationOutput, AgentActionGroup, + AgentActionGroupDict, AgentCollaboratorInvocationOutput, AnalyzePromptEvent, ApiResult, + ApiResultDict, Attribution, AudioSegment, BadGatewayException, BedrockModelConfigurations, + BedrockModelConfigurationsDict, BedrockRerankingConfiguration, + BedrockRerankingConfigurationDict, BedrockSessionContentBlock, + BedrockSessionContentBlockDict, Caller, Citation, CitationEvent, CodeInterpreterInvocationOutput, Collaborator, CollaboratorConfiguration, + CollaboratorConfigurationDict, + CollaboratorDict, ConflictException, ContentBlock, + ContentBlockDict, ConversationHistory, + ConversationHistoryDict, CustomOrchestration, + CustomOrchestrationDict, CustomOrchestrationTrace, DependencyFailedException, ExternalSourcesRetrieveAndGenerateConfiguration, + ExternalSourcesRetrieveAndGenerateConfigurationDict, FailureTrace, FieldForReranking, + FieldForRerankingDict, FilePart, FilterAttribute, + FilterAttributeDict, FinalResponse, FlowExecutionEvent, FlowExecutionSummary, FlowInput, + FlowInputDict, FunctionResult, + FunctionResultDict, GenerationConfiguration, + GenerationConfigurationDict, GuardrailConfiguration, + GuardrailConfigurationDict, GuardrailConfigurationWithArn, + GuardrailConfigurationWithArnDict, GuardrailEvent, GuardrailTrace, ImplicitFilterConfiguration, + ImplicitFilterConfigurationDict, InferenceConfig, + InferenceConfigDict, InferenceConfiguration, + InferenceConfigurationDict, InlineBedrockModelConfigurations, + InlineBedrockModelConfigurationsDict, InlineSessionState, + InlineSessionStateDict, InputFile, + InputFileDict, InputImage, + InputImageDict, InputPrompt, + InputPromptDict, InternalServerException, InvocationInput, InvocationInputMember, @@ -110,6 +137,22 @@ class _InvocationResultMemberDeserializer: self, deserializer: ShapeDeserializer ) -> InvocationResultMember: ... +class InvocationResultMemberApiResultDict(TypedDict): + api_result: ApiResult | ApiResultDict + """The result from the API response from the action group invocation.""" + +class InvocationResultMemberFunctionResultDict(TypedDict): + function_result: FunctionResult | FunctionResultDict + """The result from the function from the action group invocation.""" + +InvocationResultMemberDict = Union[ + InvocationResultMemberApiResultDict | InvocationResultMemberFunctionResultDict +] +""" +Dictionary form of `InvocationResultMember`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class InvocationStep(_SerdeShape): """ @@ -158,6 +201,18 @@ InvocationStepPayload = Union[ class _InvocationStepPayloadDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> InvocationStepPayload: ... +class InvocationStepPayloadContentBlocksDict(TypedDict): + content_blocks: Sequence[ + BedrockSessionContentBlock | BedrockSessionContentBlockDict + ] + """The content for the invocation step.""" + +InvocationStepPayloadDict = Union[InvocationStepPayloadContentBlocksDict] +""" +Dictionary form of `InvocationStepPayload`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class InvocationStepSummary(_SerdeShape): """ @@ -264,6 +319,73 @@ class InvokeAgentInput(_SerdeShape): source_arn: str | None = ... """The ARN of the resource making the request.""" +class InvokeAgentInputDict(TypedDict, total=False): + """Dictionary form of `InvokeAgentInput`.""" + + session_state: SessionState | SessionStateDict | None + """ + Contains parameters that specify various attributes of the session. For + more information, see [Control session + context](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). + + Note: + If you include `returnControlInvocationResults` in the `sessionState` + field, the `inputText` field will be ignored. + """ + agent_id: Required[str] + """The unique identifier of the agent to use.""" + agent_alias_id: Required[str] + """The alias of the agent to use.""" + session_id: Required[str] + """ + The unique identifier of the session. Use the same value across requests + to continue the same conversation. + """ + end_session: bool | None + """Specifies whether to end the session with the agent or not.""" + enable_trace: bool | None + """ + Specifies whether to turn on the trace or not to track the agent's + reasoning process. For more information, see [Trace + enablement](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events). + """ + input_text: str | None + """ + The prompt text to send the agent. + + Note: + If you include `returnControlInvocationResults` in the `sessionState` + field, the `inputText` field will be ignored. + """ + memory_id: str | None + """The unique identifier of the agent memory.""" + bedrock_model_configurations: ( + BedrockModelConfigurations | BedrockModelConfigurationsDict | None + ) + """Model performance settings for the request.""" + streaming_configurations: ( + StreamingConfigurations | StreamingConfigurationsDict | None + ) + """ + Specifies the configurations for streaming. + + Note: + To use agent streaming, you need permissions to perform the + `bedrock:InvokeModelWithResponseStream` action. + """ + prompt_creation_configurations: ( + PromptCreationConfigurations | PromptCreationConfigurationsDict | None + ) + """ + Specifies parameters that control how the service populates the agent + prompt for an `InvokeAgent` request. You can control which aspects of + previous invocations in the same agent session the service uses to + populate the agent prompt. This gives you more granular control over the + contextual history that is used to process the current request. + """ + source_arn: str | None + """The ARN of the resource making the request.""" + @dataclass(kw_only=True) class InvokeAgentOutput(_SerdeShape): """Dataclass for InvokeAgentOutput structure.""" @@ -313,6 +435,35 @@ class InvokeFlowInput(_SerdeShape): provide a value, Amazon Bedrock creates the identifier for you. """ +class InvokeFlowInputDict(TypedDict, total=False): + """Dictionary form of `InvokeFlowInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + flow_alias_identifier: Required[str] + """The unique identifier of the flow alias.""" + inputs: Required[Sequence[FlowInput | FlowInputDict]] + """ + A list of objects, each containing information about an input into the + flow. + """ + enable_trace: bool | None + """ + Specifies whether to return the trace for the flow or not. Traces track + inputs and outputs for nodes in the flow. For more information, see + [Track each step in your prompt flow by viewing its trace in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html). + """ + model_performance_configuration: ( + ModelPerformanceConfiguration | ModelPerformanceConfigurationDict | None + ) + """Model performance settings for the request.""" + execution_id: str | None + """ + The unique identifier for the current flow execution. If you don't + provide a value, Amazon Bedrock creates the identifier for you. + """ + @dataclass(kw_only=True) class InvokeFlowOutput(_SerdeShape): """Dataclass for InvokeFlowOutput structure.""" @@ -450,6 +601,140 @@ class InvokeInlineAgentInput(_SerdeShape): custom_orchestration: CustomOrchestration | None = ... """Contains details of the custom orchestration configured for the agent.""" +class InvokeInlineAgentInputDict(TypedDict, total=False): + """Dictionary form of `InvokeInlineAgentInput`.""" + + customer_encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use + to encrypt your inline agent. + """ + foundation_model: Required[str] + """ + The [model identifier + (ID)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) + of the model to use for orchestration by the inline agent. For example, + `meta.llama3-1-70b-instruct-v1:0`. + """ + instruction: Required[str] + """ + The instructions that tell the inline agent what it should do and how it + should interact with users. + """ + idle_session_ttl_in_seconds: int | None + """ + The number of seconds for which the inline agent should maintain session + information. After this time expires, the subsequent `InvokeInlineAgent` + request begins a new session. + + A user interaction remains active for the amount of time specified. If + no conversation occurs during this time, the session expires and the + data provided before the timeout is deleted. + """ + action_groups: Sequence[AgentActionGroup | AgentActionGroupDict] | None + """ + A list of action groups with each action group defining the action the + inline agent needs to carry out. + """ + knowledge_bases: Sequence[KnowledgeBase | KnowledgeBaseDict] | None + """Contains information of the knowledge bases to associate with.""" + guardrail_configuration: ( + GuardrailConfigurationWithArn | GuardrailConfigurationWithArnDict | None + ) + """ + The + [guardrails](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html) + to assign to the inline agent. + """ + prompt_override_configuration: ( + PromptOverrideConfiguration | PromptOverrideConfigurationDict | None + ) + """ + Configurations for advanced prompts used to override the default prompts + to enhance the accuracy of the inline agent. + """ + agent_collaboration: str | None + """ + Defines how the inline collaborator agent handles information across + multiple collaborator agents to coordinate a final response. The inline + collaborator agent can also be the supervisor. + """ + collaborator_configurations: ( + Sequence[CollaboratorConfiguration | CollaboratorConfigurationDict] | None + ) + """ + Settings for an inline agent collaborator called with + [InvokeInlineAgent](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeInlineAgent.html). + """ + agent_name: str | None + """The name for the agent.""" + session_id: Required[str] + """ + The unique identifier of the session. Use the same value across requests + to continue the same conversation. + """ + end_session: bool | None + """Specifies whether to end the session with the inline agent or not.""" + enable_trace: bool | None + """ + Specifies whether to turn on the trace or not to track the agent's + reasoning process. For more information, see [Using + trace](https://docs.aws.amazon.com/bedrock/latest/userguide/trace-events.html). + """ + input_text: str | None + """ + The prompt text to send to the agent. + + Note: + If you include `returnControlInvocationResults` in the `sessionState` + field, the `inputText` field will be ignored. + """ + streaming_configurations: ( + StreamingConfigurations | StreamingConfigurationsDict | None + ) + """ + Specifies the configurations for streaming. + + Note: + To use agent streaming, you need permissions to perform the + `bedrock:InvokeModelWithResponseStream` action. + """ + prompt_creation_configurations: ( + PromptCreationConfigurations | PromptCreationConfigurationsDict | None + ) + """ + Specifies parameters that control how the service populates the agent + prompt for an `InvokeInlineAgent` request. You can control which aspects + of previous invocations in the same agent session the service uses to + populate the agent prompt. This gives you more granular control over the + contextual history that is used to process the current request. + """ + inline_session_state: InlineSessionState | InlineSessionStateDict | None + """ + Parameters that specify the various attributes of a sessions. You can + include attributes for the session or prompt or, if you configured an + action group to return control, results from invocation of the action + group. For more information, see [Control session + context](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). + + Note: + If you include `returnControlInvocationResults` in the `sessionState` + field, the `inputText` field will be ignored. + """ + collaborators: Sequence[Collaborator | CollaboratorDict] | None + """List of collaborator inline agents.""" + bedrock_model_configurations: ( + InlineBedrockModelConfigurations | InlineBedrockModelConfigurationsDict | None + ) + """Model settings for the request.""" + orchestration_type: str | None + """ + Specifies the type of orchestration strategy for the agent. This is set + to DEFAULT orchestration type, by default. + """ + custom_orchestration: CustomOrchestration | CustomOrchestrationDict | None + """Contains details of the custom orchestration configured for the agent.""" + @dataclass(kw_only=True) class InvokeInlineAgentOutput(_SerdeShape): """Dataclass for InvokeInlineAgentOutput structure.""" @@ -487,6 +772,27 @@ class KnowledgeBase(_SerdeShape): configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). """ +class KnowledgeBaseDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBase`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier for a knowledge base associated with the inline + agent. + """ + description: Required[str] + """The description of the knowledge base associated with the inline agent.""" + retrieval_configuration: ( + KnowledgeBaseRetrievalConfiguration + | KnowledgeBaseRetrievalConfigurationDict + | None + ) + """ + The configurations to apply to the knowledge base during query. For more + information, see [Query + configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). + """ + @dataclass(kw_only=True) class KnowledgeBaseConfiguration(_SerdeShape): """ @@ -504,6 +810,20 @@ class KnowledgeBaseConfiguration(_SerdeShape): configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). """ +class KnowledgeBaseConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseConfiguration`.""" + + knowledge_base_id: Required[str] + """The unique identifier for a knowledge base attached to the agent.""" + retrieval_configuration: Required[ + KnowledgeBaseRetrievalConfiguration | KnowledgeBaseRetrievalConfigurationDict + ] + """ + The configurations to apply to the knowledge base during query. For more + information, see [Query + configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). + """ + @dataclass(kw_only=True) class KnowledgeBaseLookupInput(_SerdeShape): """ @@ -547,6 +867,19 @@ class KnowledgeBaseQuery(_SerdeShape): retrieval. """ +class KnowledgeBaseQueryDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseQuery`.""" + + type: str | None + """The type of query being performed.""" + text: str | None + """The text of the query made to the knowledge base.""" + image: InputImage | InputImageDict | None + """ + An image to include in the knowledge base query for multimodal + retrieval. + """ + class KnowledgeBaseQueryType(UnknownEnumMixin, StrEnum): TEXT = "TEXT" IMAGE = "IMAGE" @@ -582,6 +915,28 @@ class KnowledgeBaseRetrievalConfiguration(_SerdeShape): configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). """ +class KnowledgeBaseRetrievalConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseRetrievalConfiguration`.""" + + vector_search_configuration: ( + KnowledgeBaseVectorSearchConfiguration + | KnowledgeBaseVectorSearchConfigurationDict + | None + ) + """ + Contains details about how the results from the vector search should be + returned. For more information, see [Query + configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). + """ + managed_search_configuration: ( + ManagedSearchConfiguration | ManagedSearchConfigurationDict | None + ) + """ + Contains configurations for managed search. For more information, see + [Query + configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). + """ + @dataclass(kw_only=True) class KnowledgeBaseRetrievalResult(_SerdeShape): """ @@ -652,6 +1007,41 @@ class KnowledgeBaseRetrieveAndGenerateConfiguration(_SerdeShape): generation. """ +class KnowledgeBaseRetrieveAndGenerateConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseRetrieveAndGenerateConfiguration`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base that is queried.""" + model_arn: Required[str] + """ + The ARN of the foundation model or [inference + profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) + used to generate a response. + """ + retrieval_configuration: ( + KnowledgeBaseRetrievalConfiguration + | KnowledgeBaseRetrievalConfigurationDict + | None + ) + """ + Contains configurations for how to retrieve and return the knowledge + base query. + """ + generation_configuration: ( + GenerationConfiguration | GenerationConfigurationDict | None + ) + """ + Contains configurations for response generation based on the knowledge + base query results. + """ + orchestration_configuration: ( + OrchestrationConfiguration | OrchestrationConfigurationDict | None + ) + """ + Settings for how the model processes the prompt prior to retrieval and + generation. + """ + @dataclass(kw_only=True) class KnowledgeBaseRetrieverConfiguration(_SerdeShape): """Configuration for retrieving from a Bedrock knowledge base.""" @@ -661,6 +1051,14 @@ class KnowledgeBaseRetrieverConfiguration(_SerdeShape): retrieval_overrides: RetrievalOverrides | None = ... """Overrides for retrieval behavior such as filters and result limits.""" +class KnowledgeBaseRetrieverConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseRetrieverConfiguration`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base.""" + retrieval_overrides: RetrievalOverrides | RetrievalOverridesDict | None + """Overrides for retrieval behavior such as filters and result limits.""" + @dataclass(kw_only=True) class KnowledgeBaseVectorSearchConfiguration(_SerdeShape): """ @@ -708,6 +1106,44 @@ class KnowledgeBaseVectorSearchConfiguration(_SerdeShape): implicit_filter_configuration: ImplicitFilterConfiguration | None = ... """Settings for implicit filtering.""" +class KnowledgeBaseVectorSearchConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseVectorSearchConfiguration`.""" + + number_of_results: int | None + """The number of source chunks to retrieve.""" + override_search_type: str | None + """ + By default, Amazon Bedrock decides a search strategy for you. If you're + using an Amazon OpenSearch Serverless vector store that contains a + filterable text field, you can specify whether to query the knowledge + base with a `HYBRID` search using both vector embeddings and raw text, + or `SEMANTIC` search using only vector embeddings. For other vector + store configurations, only `SEMANTIC` search is available. For more + information, see [Test a knowledge + base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-test.html). + """ + filter: RetrievalFilter | RetrievalFilterDict | None + """ + Specifies the filters to use on the metadata in the knowledge base data + sources before returning results. For more information, see [Query + configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). + """ + reranking_configuration: ( + VectorSearchRerankingConfiguration + | VectorSearchRerankingConfigurationDict + | None + ) + """ + Contains configurations for reranking the retrieved results. For more + information, see [Improve the relevance of query responses with a + reranker + model](https://docs.aws.amazon.com/bedrock/latest/userguide/rerank.html). + """ + implicit_filter_configuration: ( + ImplicitFilterConfiguration | ImplicitFilterConfigurationDict | None + ) + """Settings for implicit filtering.""" + @dataclass(kw_only=True) class ListFlowExecutionEventsInput(_SerdeShape): """Dataclass for ListFlowExecutionEventsInput structure.""" @@ -735,6 +1171,32 @@ class ListFlowExecutionEventsInput(_SerdeShape): `Flow` for flow-level events. """ +class ListFlowExecutionEventsInputDict(TypedDict, total=False): + """Dictionary form of `ListFlowExecutionEventsInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + flow_alias_identifier: Required[str] + """The unique identifier of the flow alias used for the execution.""" + execution_identifier: Required[str] + """The unique identifier of the flow execution.""" + max_results: int | None + """ + The maximum number of events to return in a single response. If more + events exist than the specified maxResults value, a token is included in + the response so that the remaining results can be retrieved. + """ + next_token: str | None + """ + A token to retrieve the next set of results. This value is returned in + the response if more results are available. + """ + event_type: Required[str] + """ + The type of events to retrieve. Specify `Node` for node-level events or + `Flow` for flow-level events. + """ + @dataclass(kw_only=True) class ListFlowExecutionEventsOutput(_SerdeShape): """Dataclass for ListFlowExecutionEventsOutput structure.""" @@ -778,6 +1240,25 @@ class ListFlowExecutionsInput(_SerdeShape): the response if more results are available. """ +class ListFlowExecutionsInputDict(TypedDict, total=False): + """Dictionary form of `ListFlowExecutionsInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow to list executions for.""" + flow_alias_identifier: str | None + """The unique identifier of the flow alias to list executions for.""" + max_results: int | None + """ + The maximum number of flow executions to return in a single response. If + more executions exist than the specified `maxResults` value, a token is + included in the response so that the remaining results can be retrieved. + """ + next_token: str | None + """ + A token to retrieve the next set of results. This value is returned in + the response if more results are available. + """ + @dataclass(kw_only=True) class ListFlowExecutionsOutput(_SerdeShape): """Dataclass for ListFlowExecutionsOutput structure.""" @@ -825,6 +1306,29 @@ class ListInvocationsInput(_SerdeShape): (ARN). """ +class ListInvocationsInputDict(TypedDict, total=False): + """Dictionary form of `ListInvocationsInput`.""" + + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + session_identifier: Required[str] + """ + The unique identifier for the session to list invocations for. You can + specify either the session's `sessionId` or its Amazon Resource Name + (ARN). + """ + @dataclass(kw_only=True) class ListInvocationsOutput(_SerdeShape): """Dataclass for ListInvocationsOutput structure.""" @@ -874,6 +1378,34 @@ class ListInvocationStepsInput(_SerdeShape): Resource Name (ARN). """ +class ListInvocationStepsInputDict(TypedDict, total=False): + """Dictionary form of `ListInvocationStepsInput`.""" + + invocation_identifier: str | None + """ + The unique identifier (in UUID format) for the invocation to list + invocation steps for. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + session_identifier: Required[str] + """ + The unique identifier for the session associated with the invocation + steps. You can specify either the session's `sessionId` or its Amazon + Resource Name (ARN). + """ + @dataclass(kw_only=True) class ListInvocationStepsOutput(_SerdeShape): """Dataclass for ListInvocationStepsOutput structure.""" @@ -901,14 +1433,31 @@ class ListInvocationStepsOutput(_SerdeShape): class ListSessionsInput(_SerdeShape): """Dataclass for ListSessionsInput structure.""" - max_results: int = ... + max_results: int = ... + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None = ... + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + +class ListSessionsInputDict(TypedDict, total=False): + """Dictionary form of `ListSessionsInput`.""" + + max_results: int | None """ The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the `nextToken` field when making another request to return the next batch of results. """ - next_token: str | None = ... + next_token: str | None """ If the total number of results is greater than the `maxResults` value provided in the request, enter the token returned in the `nextToken` @@ -945,6 +1494,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """The Amazon Resource Name (ARN) of the resource for which to list tags.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource for which to list tags.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -970,6 +1525,21 @@ class ManagedSearchBedrockRerankingConfiguration(_SerdeShape): metadata_configuration: MetadataConfigurationForReranking | None = ... """The metadata configuration for reranking.""" +class ManagedSearchBedrockRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedSearchBedrockRerankingConfiguration`.""" + + model_configuration: Required[ + ManagedSearchBedrockRerankingModelConfiguration + | ManagedSearchBedrockRerankingModelConfigurationDict + ] + """The model configuration containing the model ARN for reranking.""" + number_of_reranked_results: int | None + """The number of results to return after reranking.""" + metadata_configuration: ( + MetadataConfigurationForReranking | MetadataConfigurationForRerankingDict | None + ) + """The metadata configuration for reranking.""" + @dataclass(kw_only=True) class ManagedSearchBedrockRerankingModelConfiguration(_SerdeShape): """ @@ -982,6 +1552,14 @@ class ManagedSearchBedrockRerankingModelConfiguration(_SerdeShape): additional_model_request_fields: dict[str, Document] | None = ... """Additional request fields to pass to the reranking model.""" +class ManagedSearchBedrockRerankingModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedSearchBedrockRerankingModelConfiguration`.""" + + model_arn: Required[str] + """The ARN of the Bedrock reranking model.""" + additional_model_request_fields: Mapping[str, Document] | None + """Additional request fields to pass to the reranking model.""" + @dataclass(kw_only=True) class ManagedSearchConfiguration(_SerdeShape): """ @@ -1009,6 +1587,32 @@ class ManagedSearchConfiguration(_SerdeShape): managed search. """ +class ManagedSearchConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedSearchConfiguration`.""" + + number_of_results: int | None + """The number of results to retrieve.""" + filter: RetrievalFilter | RetrievalFilterDict | None + """ + Filters the metadata of the retrieved results so that Amazon Bedrock + returns only results that match the filter. + """ + reranking_model_type: str | None + """ + The type of reranking model to use when reranking results retrieved from + the managed search. Use `CUSTOM` to specify a model, `MANAGED` to use + the service default, or `NONE` to disable reranking. + """ + reranking_configuration: ( + ManagedSearchRerankingConfiguration + | ManagedSearchRerankingConfigurationDict + | None + ) + """ + Contains configurations for reranking the results retrieved from the + managed search. + """ + @dataclass(kw_only=True) class ManagedSearchRerankingConfiguration(_SerdeShape): """Configuration for the reranking model used in managed search.""" @@ -1020,6 +1624,18 @@ class ManagedSearchRerankingConfiguration(_SerdeShape): ) = ... """The Bedrock reranking model configuration for managed search.""" +class ManagedSearchRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedSearchRerankingConfiguration`.""" + + type: Required[str] + """The type of reranking configuration.""" + bedrock_reranking_configuration: ( + ManagedSearchBedrockRerankingConfiguration + | ManagedSearchBedrockRerankingConfigurationDict + | None + ) + """The Bedrock reranking model configuration for managed search.""" + class ManagedSearchRerankingConfigurationType(UnknownEnumMixin, StrEnum): """The type of reranking configuration for managed search.""" @@ -1032,6 +1648,15 @@ class MantleFoundationModelConfiguration(_SerdeShape): model_configuration: MantleFoundationModelModelConfiguration """The model configuration containing the model ARN and project ID.""" +class MantleFoundationModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `MantleFoundationModelConfiguration`.""" + + model_configuration: Required[ + MantleFoundationModelModelConfiguration + | MantleFoundationModelModelConfigurationDict + ] + """The model configuration containing the model ARN and project ID.""" + @dataclass(kw_only=True) class MantleFoundationModelModelConfiguration(_SerdeShape): """Model configuration for a Mantle foundation model.""" @@ -1044,6 +1669,17 @@ class MantleFoundationModelModelConfiguration(_SerdeShape): you don't specify a value, the service uses the default project. """ +class MantleFoundationModelModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `MantleFoundationModelModelConfiguration`.""" + + model_arn: Required[str] + """The ARN of the Mantle foundation model.""" + project_id: str | None + """ + The Amazon Bedrock project ID used for billing and usage attribution. If + you don't specify a value, the service uses the default project. + """ + @dataclass class Memory_SessionSummary(_SerdeShape): """Contains summary of a session.""" @@ -1093,6 +1729,14 @@ class Message(_SerdeShape): content: list[ContentBlock] """The message's content.""" +class MessageDict(TypedDict, total=False): + """Dictionary form of `Message`.""" + + role: Required[str] + """The message's role.""" + content: Required[Sequence[ContentBlock | ContentBlockDict]] + """The message's content.""" + @dataclass(kw_only=True) class Metadata(_SerdeShape): """ @@ -1146,6 +1790,16 @@ class MetadataAttributeSchema(_SerdeShape): description: str """The attribute's description.""" +class MetadataAttributeSchemaDict(TypedDict, total=False): + """Dictionary form of `MetadataAttributeSchema`.""" + + key: Required[str] + """The attribute's key.""" + type: Required[str] + """The attribute's type.""" + description: Required[str] + """The attribute's description.""" + @dataclass(kw_only=True) class MetadataConfigurationForReranking(_SerdeShape): """Contains configurations for the metadata to use in reranking.""" @@ -1164,6 +1818,25 @@ class MetadataConfigurationForReranking(_SerdeShape): when considering reranking. """ +class MetadataConfigurationForRerankingDict(TypedDict, total=False): + """Dictionary form of `MetadataConfigurationForReranking`.""" + + selection_mode: Required[str] + """ + Specifies whether to consider all metadata when reranking, or only the + metadata that you select. If you specify `SELECTIVE`, include the + `selectiveModeConfiguration` field. + """ + selective_mode_configuration: ( + RerankingMetadataSelectiveModeConfiguration + | RerankingMetadataSelectiveModeConfigurationDict + | None + ) + """ + Contains configurations for the metadata fields to include or exclude + when considering reranking. + """ + @dataclass(kw_only=True) class ModelInvocationInput(_SerdeShape): """ @@ -1240,6 +1913,12 @@ class ModelPerformanceConfiguration(_SerdeShape): performance_config: PerformanceConfiguration | None = ... """The latency configuration for the model.""" +class ModelPerformanceConfigurationDict(TypedDict, total=False): + """Dictionary form of `ModelPerformanceConfiguration`.""" + + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """The latency configuration for the model.""" + @dataclass(kw_only=True) class NodeActionEvent(_SerdeShape): """ @@ -1665,6 +2344,17 @@ class OptimizePromptInput(_SerdeShape): for. """ +class OptimizePromptInputDict(TypedDict, total=False): + """Dictionary form of `OptimizePromptInput`.""" + + input: Required[InputPrompt | InputPromptDict] + """Contains the prompt to optimize.""" + target_model_id: Required[str] + """ + The unique identifier of the model that you want to optimize the prompt + for. + """ + @dataclass(kw_only=True) class OptimizePromptOutput(_SerdeShape): """Dataclass for OptimizePromptOutput structure.""" @@ -1713,6 +2403,40 @@ class OrchestrationConfiguration(_SerdeShape): performance_config: PerformanceConfiguration | None = ... """The latency configuration for the model.""" +class OrchestrationConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrchestrationConfiguration`.""" + + prompt_template: PromptTemplate | PromptTemplateDict | None + """ + Contains the template for the prompt that's sent to the model. + Orchestration prompts must include the `$conversation_history$` and + `$output_format_instructions$` variables. For more information, see [Use + placeholder + variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html) + in the user guide. + """ + inference_config: InferenceConfig | InferenceConfigDict | None + """ + Configuration settings for inference when using RetrieveAndGenerate to + generate responses while using a knowledge base as a source. + """ + additional_model_request_fields: Mapping[str, Document] | None + """ + Additional model parameters and corresponding values not included in the + textInferenceConfig structure for a knowledge base. This allows users to + provide custom model parameters specific to the language model being + used. + """ + query_transformation_configuration: ( + QueryTransformationConfiguration | QueryTransformationConfigurationDict | None + ) + """ + To split up the prompt and retrieve multiple sources, set the + transformation type to `QUERY_DECOMPOSITION`. + """ + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """The latency configuration for the model.""" + @dataclass class OrchestrationExecutorLambda(_SerdeShape): """ @@ -1743,6 +2467,19 @@ orchestration. class _OrchestrationExecutorDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> OrchestrationExecutor: ... +class OrchestrationExecutorLambdaDict(TypedDict): + lambda_: str + """ + The Amazon Resource Name (ARN) of the Lambda function containing the + business logic that is carried out upon invoking the action. + """ + +OrchestrationExecutorDict = Union[OrchestrationExecutorLambdaDict] +""" +Dictionary form of `OrchestrationExecutor`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class OrchestrationModelInvocationOutput(_SerdeShape): """The foundation model output from the orchestration step.""" @@ -1886,6 +2623,22 @@ class ParameterDetail(_SerdeShape): for action group invocation. """ +class ParameterDetailDict(TypedDict, total=False): + """Dictionary form of `ParameterDetail`.""" + + description: str | None + """ + A description of the parameter. Helps the foundation model determine how + to elicit the parameters from the user. + """ + type: Required[str] + """The data type of the parameter.""" + required: bool | None + """ + Whether the parameter is required for the agent to complete the function + for action group invocation. + """ + class ParameterType(UnknownEnumMixin, StrEnum): STRING = "string" NUMBER = "number" @@ -1917,6 +2670,12 @@ class PerformanceConfiguration(_SerdeShape): latency: str = ... """To use a latency-optimized version of the model, set to `optimized`.""" +class PerformanceConfigurationDict(TypedDict, total=False): + """Dictionary form of `PerformanceConfiguration`.""" + + latency: str | None + """To use a latency-optimized version of the model, set to `optimized`.""" + @dataclass(kw_only=True) class PostProcessingModelInvocationOutput(_SerdeShape): """The foundation model output from the post-processing step.""" @@ -2160,6 +2919,75 @@ class PromptConfiguration(_SerdeShape): fields for foundation models* in the Amazon Bedrock user guide. """ +class PromptConfigurationDict(TypedDict, total=False): + """Dictionary form of `PromptConfiguration`.""" + + prompt_type: str | None + """ + The step in the agent sequence that this prompt configuration applies + to. + """ + prompt_creation_mode: str | None + """ + Specifies whether to override the default prompt template for this + `promptType`. Set this value to `OVERRIDDEN` to use the prompt that you + provide in the `basePromptTemplate`. If you leave it as `DEFAULT`, the + agent uses a default prompt template. + """ + prompt_state: str | None + """ + Specifies whether to allow the inline agent to carry out the step + specified in the `promptType`. If you set this value to `DISABLED`, the + agent skips that step. The default state for each `promptType` is as + follows. + + - `PRE_PROCESSING` -- `ENABLED` + + - `ORCHESTRATION` -- `ENABLED` + + - `KNOWLEDGE_BASE_RESPONSE_GENERATION` -- `ENABLED` + + - `POST_PROCESSING` -- `DISABLED` + """ + base_prompt_template: str | None + """ + Defines the prompt template with which to replace the default prompt + template. You can use placeholder variables in the base prompt template + to customize the prompt. For more information, see [Prompt template + placeholder + variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html). + For more information, see [Configure the prompt + templates](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html). + """ + inference_configuration: InferenceConfiguration | InferenceConfigurationDict | None + """ + Contains inference parameters to use when the agent invokes a foundation + model in the part of the agent sequence defined by the `promptType`. For + more information, see [Inference parameters for foundation + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + parser_mode: str | None + """ + Specifies whether to override the default parser Lambda function when + parsing the raw foundation model output in the part of the agent + sequence defined by the `promptType`. If you set the field as + `OVERRIDDEN`, the `overrideLambda` field in the + [PromptOverrideConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) + must be specified with the ARN of a Lambda function. + """ + foundation_model: str | None + """The foundation model to use.""" + additional_model_request_fields: Document | None + """ + If the Converse or ConverseStream operations support the model, + `additionalModelRequestFields` contains additional inference parameters, + beyond the base set of inference parameters in the + `inferenceConfiguration` field. + + For more information, see *Inference request parameters and response + fields for foundation models* in the Amazon Bedrock user guide. + """ + @dataclass(kw_only=True) class PromptCreationConfigurations(_SerdeShape): """ @@ -2190,6 +3018,28 @@ class PromptCreationConfigurations(_SerdeShape): costs. The default value is `false`. """ +class PromptCreationConfigurationsDict(TypedDict, total=False): + """Dictionary form of `PromptCreationConfigurations`.""" + + previous_conversation_turns_to_include: int | None + """ + The number of previous conversations from the ongoing agent session to + include in the conversation history of the agent prompt, during the + current invocation. This gives you more granular control over the + context that the model is made aware of, and helps the model remove + older context which is no longer useful during the ongoing agent + session. + """ + exclude_previous_thinking_steps: bool | None + """ + If `true`, the service removes any content between `` tags + from previous conversations in an agent session. The service will only + remove content from already processed turns. This helps you remove + content which might not be useful for current and subsequent + invocations. This can reduce the input token count and potentially save + costs. The default value is `false`. + """ + @dataclass(kw_only=True) class PromptOverrideConfiguration(_SerdeShape): """ @@ -2214,6 +3064,27 @@ class PromptOverrideConfiguration(_SerdeShape): Agents](https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html). """ +class PromptOverrideConfigurationDict(TypedDict, total=False): + """Dictionary form of `PromptOverrideConfiguration`.""" + + prompt_configurations: Required[ + Sequence[PromptConfiguration | PromptConfigurationDict] + ] + """ + Contains configurations to override a prompt template in one part of an + agent sequence. For more information, see [Advanced + prompts](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html). + """ + override_lambda: str | None + """ + The ARN of the Lambda function to use when parsing the raw foundation + model output in parts of the agent sequence. If you specify this field, + at least one of the `promptConfigurations` must contain a `parserMode` + value that is set to `OVERRIDDEN`. For more information, see [Parser + Lambda function in Amazon Bedrock + Agents](https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html). + """ + class PromptState(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -2249,6 +3120,26 @@ class PromptTemplate(_SerdeShape): models](https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags) """ +class PromptTemplateDict(TypedDict, total=False): + """Dictionary form of `PromptTemplate`.""" + + text_prompt_template: str | None + """ + The template for the prompt that's sent to the model for response + generation. You can include prompt placeholders, which become replaced + before the prompt is sent to the model to provide instructions and + context to the model. In addition, you can include XML tags to delineate + meaningful sections of the prompt template. + + For more information, see the following resources: + + - [Knowledge base prompt + templates](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html#kb-test-config-sysprompt) + + - [Use XML tags with Anthropic Claude + models](https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags) + """ + class PromptType(UnknownEnumMixin, StrEnum): PRE_PROCESSING = "PRE_PROCESSING" ORCHESTRATION = "ORCHESTRATION" @@ -2288,6 +3179,30 @@ class PutInvocationStepInput(_SerdeShape): invocation_step_id: str | None = ... """The unique identifier of the invocation step in UUID format.""" +class PutInvocationStepInputDict(TypedDict, total=False): + """Dictionary form of `PutInvocationStepInput`.""" + + session_identifier: Required[str] + """ + The unique identifier for the session to add the invocation step to. You + can specify either the session's `sessionId` or its Amazon Resource + Name (ARN). + """ + invocation_identifier: Required[str] + """ + The unique identifier (in UUID format) of the invocation to add the + invocation step to. + """ + invocation_step_time: Required[datetime] + """The timestamp for when the invocation step occurred.""" + payload: Required[InvocationStepPayload | InvocationStepPayloadDict] + """ + The payload for the invocation step, including text and images for the + interaction. + """ + invocation_step_id: str | None + """The unique identifier of the invocation step in UUID format.""" + @dataclass(kw_only=True) class PutInvocationStepOutput(_SerdeShape): """Dataclass for PutInvocationStepOutput structure.""" @@ -2314,6 +3229,14 @@ class QueryGenerationInput(_SerdeShape): text: str """The text of the query.""" +class QueryGenerationInputDict(TypedDict, total=False): + """Dictionary form of `QueryGenerationInput`.""" + + type: Required[str] + """The type of the query.""" + text: Required[str] + """The text of the query.""" + @dataclass(kw_only=True) class QueryTransformationConfiguration(_SerdeShape): """ @@ -2324,6 +3247,12 @@ class QueryTransformationConfiguration(_SerdeShape): type: str """The type of transformation to apply to the prompt.""" +class QueryTransformationConfigurationDict(TypedDict, total=False): + """Dictionary form of `QueryTransformationConfiguration`.""" + + type: Required[str] + """The type of transformation to apply to the prompt.""" + class QueryTransformationMode(UnknownEnumMixin, StrEnum): TEXT_TO_SQL = "TEXT_TO_SQL" @@ -2452,6 +3381,16 @@ class RerankDocument(_SerdeShape): json_document: Document | None = ... """Contains a JSON document to rerank.""" +class RerankDocumentDict(TypedDict, total=False): + """Dictionary form of `RerankDocument`.""" + + type: Required[str] + """The type of document to rerank.""" + text_document: RerankTextDocument | RerankTextDocumentDict | None + """Contains information about a text document to rerank.""" + json_document: Document | None + """Contains a JSON document to rerank.""" + class RerankDocumentType(UnknownEnumMixin, StrEnum): TEXT = "TEXT" JSON = "JSON" @@ -2465,6 +3404,16 @@ class RerankingConfiguration(_SerdeShape): bedrock_reranking_configuration: BedrockRerankingConfiguration """Contains configurations for an Amazon Bedrock reranker.""" +class RerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `RerankingConfiguration`.""" + + type: Required[str] + """The type of reranker that the configurations apply to.""" + bedrock_reranking_configuration: Required[ + BedrockRerankingConfiguration | BedrockRerankingConfigurationDict + ] + """Contains configurations for an Amazon Bedrock reranker.""" + class RerankingConfigurationType(UnknownEnumMixin, StrEnum): BEDROCK_RERANKING_MODEL = "BEDROCK_RERANKING_MODEL" @@ -2520,6 +3469,30 @@ class _RerankingMetadataSelectiveModeConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> RerankingMetadataSelectiveModeConfiguration: ... +class RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict(TypedDict): + fields_to_include: Sequence[FieldForReranking | FieldForRerankingDict] + """ + An array of objects, each of which specifies a metadata field to include + in consideration when reranking. The remaining metadata fields are + ignored. + """ + +class RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict(TypedDict): + fields_to_exclude: Sequence[FieldForReranking | FieldForRerankingDict] + """ + An array of objects, each of which specifies a metadata field to exclude + from consideration when reranking. + """ + +RerankingMetadataSelectiveModeConfigurationDict = Union[ + RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict + | RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict +] +""" +Dictionary form of `RerankingMetadataSelectiveModeConfiguration`, +setting exactly one variant. +""" + class RerankingModelType(UnknownEnumMixin, StrEnum): CUSTOM = "CUSTOM" MANAGED = "MANAGED" @@ -2548,6 +3521,30 @@ class RerankInput(_SerdeShape): in this field to return the next batch of results. """ +class RerankInputDict(TypedDict, total=False): + """Dictionary form of `RerankInput`.""" + + queries: Required[Sequence[RerankQuery | RerankQueryDict]] + """ + An array of objects, each of which contains information about a query to + submit to the reranker model. + """ + sources: Required[Sequence[RerankSource | RerankSourceDict]] + """ + An array of objects, each of which contains information about the + sources to rerank. + """ + reranking_configuration: Required[ + RerankingConfiguration | RerankingConfigurationDict + ] + """Contains configurations for reranking.""" + next_token: str | None + """ + If the total number of results was greater than could fit in a response, + a token is returned in the `nextToken` field. You can enter that token + in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class RerankOutput(_SerdeShape): """Dataclass for RerankOutput structure.""" @@ -2580,6 +3577,14 @@ class RerankQuery(_SerdeShape): text_query: RerankTextDocument """Contains information about a text query.""" +class RerankQueryDict(TypedDict, total=False): + """Dictionary form of `RerankQuery`.""" + + type: Required[str] + """The type of the query.""" + text_query: Required[RerankTextDocument | RerankTextDocumentDict] + """Contains information about a text query.""" + class RerankQueryContentType(UnknownEnumMixin, StrEnum): TEXT = "TEXT" @@ -2603,6 +3608,14 @@ class RerankSource(_SerdeShape): inline_document_source: RerankDocument """Contains an inline definition of a source for reranking.""" +class RerankSourceDict(TypedDict, total=False): + """Dictionary form of `RerankSource`.""" + + type: Required[str] + """The type of the source.""" + inline_document_source: Required[RerankDocument | RerankDocumentDict] + """Contains an inline definition of a source for reranking.""" + class RerankSourceType(UnknownEnumMixin, StrEnum): INLINE = "INLINE" @@ -2613,6 +3626,12 @@ class RerankTextDocument(_SerdeShape): text: str | None = ... """The text of the document.""" +class RerankTextDocumentDict(TypedDict, total=False): + """Dictionary form of `RerankTextDocument`.""" + + text: str | None + """The text of the document.""" + @dataclass(kw_only=True) class ResourceNotFoundException(ServiceError, _SerdeShape): """ @@ -3046,6 +4065,193 @@ This data type is used in the following API operations: class _RetrievalFilterDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RetrievalFilter: ... +class RetrievalFilterEqualsDict(TypedDict): + equals: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value matches the + `value` in this object. + + The following example would return data sources with an `animal` + attribute whose value is `cat`: + + `"equals": { "key": "animal", "value": "cat" }` + """ + +class RetrievalFilterNotEqualsDict(TypedDict): + not_equals: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned when: + + - It contains a metadata attribute whose name matches the `key` and + whose value doesn't match the `value` in this object. + + - The key is not present in the document. + + The following example would return data sources that don't contain an + `animal` attribute whose value is `cat`. + + `"notEquals": { "key": "animal", "value": "cat" }` + """ + +class RetrievalFilterGreaterThanDict(TypedDict): + greater_than: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value is greater than + the `value` in this object. + + The following example would return data sources with an `year` attribute + whose value is greater than `1989`: + + `"greaterThan": { "key": "year", "value": 1989 }` + """ + +class RetrievalFilterGreaterThanOrEqualsDict(TypedDict): + greater_than_or_equals: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value is greater than + or equal to the `value` in this object. + + The following example would return data sources with an `year` attribute + whose value is greater than or equal to `1989`: + + `"greaterThanOrEquals": { "key": "year", "value": 1989 }` + """ + +class RetrievalFilterLessThanDict(TypedDict): + less_than: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value is less than the + `value` in this object. + + The following example would return data sources with an `year` attribute + whose value is less than to `1989`. + + `"lessThan": { "key": "year", "value": 1989 }` + """ + +class RetrievalFilterLessThanOrEqualsDict(TypedDict): + less_than_or_equals: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value is less than or + equal to the `value` in this object. + + The following example would return data sources with an `year` attribute + whose value is less than or equal to `1989`. + + `"lessThanOrEquals": { "key": "year", "value": 1989 }` + """ + +class RetrievalFilterInDict(TypedDict): + in_: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value is in the list + specified in the `value` in this object. + + The following example would return data sources with an `animal` + attribute that is either `cat` or `dog`: + + `"in": { "key": "animal", "value": ["cat", "dog"] }` + """ + +class RetrievalFilterNotInDict(TypedDict): + not_in: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value isn't in the + list specified in the `value` in this object. + + The following example would return data sources whose `animal` attribute + is neither `cat` nor `dog`. + + `"notIn": { "key": "animal", "value": ["cat", "dog"] }` + """ + +class RetrievalFilterStartsWithDict(TypedDict): + starts_with: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value starts with the + `value` in this object. This filter is currently only supported for + Amazon OpenSearch Serverless vector stores. + + The following example would return data sources with an `animal` + attribute starts with `ca` (for example, `cat` or `camel`). + + `"startsWith": { "key": "animal", "value": "ca" }` + """ + +class RetrievalFilterListContainsDict(TypedDict): + list_contains: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value is a list that + contains the `value` as one of its members. + + The following example would return data sources with an `animals` + attribute that is a list containing a `cat` member (for example + `["dog", "cat"]`). + + `"listContains": { "key": "animals", "value": "cat" }` + """ + +class RetrievalFilterStringContainsDict(TypedDict): + string_contains: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the `key` and whose value is one of the + following: + + - A string that contains the `value` as a substring. The following + example would return data sources with an `animal` attribute that + contains the substring `at` (for example `cat`). + + `"stringContains": { "key": "animal", "value": "at" }` + + - A list with a member that contains the `value` as a substring. The + following example would return data sources with an `animals` + attribute that is a list containing a member that contains the + substring `at` (for example `["dog", "cat"]`). + + `"stringContains": { "key": "animals", "value": "at" }` + """ + +class RetrievalFilterAndAllDict(TypedDict): + and_all: Sequence[RetrievalFilter | RetrievalFilterDict] + """ + Knowledge base data sources are returned if their metadata attributes + fulfill all the filter conditions inside this list. + """ + +class RetrievalFilterOrAllDict(TypedDict): + or_all: Sequence[RetrievalFilter | RetrievalFilterDict] + """ + Knowledge base data sources are returned if their metadata attributes + fulfill at least one of the filter conditions inside this list. + """ + +RetrievalFilterDict = Union[ + RetrievalFilterEqualsDict + | RetrievalFilterNotEqualsDict + | RetrievalFilterGreaterThanDict + | RetrievalFilterGreaterThanOrEqualsDict + | RetrievalFilterLessThanDict + | RetrievalFilterLessThanOrEqualsDict + | RetrievalFilterInDict + | RetrievalFilterNotInDict + | RetrievalFilterStartsWithDict + | RetrievalFilterListContainsDict + | RetrievalFilterStringContainsDict + | RetrievalFilterAndAllDict + | RetrievalFilterOrAllDict +] +"""Dictionary form of `RetrievalFilter`, setting exactly one variant.""" + @dataclass(kw_only=True) class RetrievalOverrides(_SerdeShape): """Overrides for retrieval behavior.""" @@ -3055,6 +4261,14 @@ class RetrievalOverrides(_SerdeShape): max_number_of_results: int | None = ... """The maximum number of results to return.""" +class RetrievalOverridesDict(TypedDict, total=False): + """Dictionary form of `RetrievalOverrides`.""" + + filter: RetrievalFilter | RetrievalFilterDict | None + """A filter to apply to the retrieval results.""" + max_number_of_results: int | None + """The maximum number of results to return.""" + @dataclass(kw_only=True) class RetrievalResultConfluenceLocation(_SerdeShape): """The Confluence data source location.""" @@ -3309,6 +4523,37 @@ class RetrieveAndGenerateConfiguration(_SerdeShape): `retrieveAndGenerate` function. """ +class RetrieveAndGenerateConfigurationDict(TypedDict, total=False): + """Dictionary form of `RetrieveAndGenerateConfiguration`.""" + + type: Required[str] + """ + The type of resource that contains your data for retrieving information + and generating responses. + + Note: + If you choose to use `EXTERNAL_SOURCES`, then currently only Anthropic + Claude 3 Sonnet models for knowledge bases are supported. + """ + knowledge_base_configuration: ( + KnowledgeBaseRetrieveAndGenerateConfiguration + | KnowledgeBaseRetrieveAndGenerateConfigurationDict + | None + ) + """ + Contains details about the knowledge base for retrieving information and + generating responses. + """ + external_sources_configuration: ( + ExternalSourcesRetrieveAndGenerateConfiguration + | ExternalSourcesRetrieveAndGenerateConfigurationDict + | None + ) + """ + The configuration for the external source wrapper object in the + `retrieveAndGenerate` function. + """ + @dataclass(kw_only=True) class RetrieveAndGenerateInput(_SerdeShape): """ @@ -3321,14 +4566,49 @@ class RetrieveAndGenerateInput(_SerdeShape): -- in the `input` field """ - text: str - """The query made to the knowledge base, in characters.""" - -@dataclass(kw_only=True) -class RetrieveAndGenerateOperationInput(_SerdeShape): - """Dataclass for RetrieveAndGenerateOperationInput structure.""" + text: str + """The query made to the knowledge base, in characters.""" + +class RetrieveAndGenerateInputDict(TypedDict, total=False): + """Dictionary form of `RetrieveAndGenerateInput`.""" + + text: Required[str] + """The query made to the knowledge base, in characters.""" + +@dataclass(kw_only=True) +class RetrieveAndGenerateOperationInput(_SerdeShape): + """Dataclass for RetrieveAndGenerateOperationInput structure.""" + + session_id: str | None = ... + """ + The unique identifier of the session. When you first make a + `RetrieveAndGenerate` request, Amazon Bedrock automatically generates + this value. You must reuse this value for all subsequent requests in the + same conversational session. This value allows Amazon Bedrock to + maintain context and knowledge from previous interactions. You can't + explicitly set the `sessionId` yourself. + """ + input: RetrieveAndGenerateInput | None = ... + """Contains the query to be made to the knowledge base.""" + retrieve_and_generate_configuration: RetrieveAndGenerateConfiguration | None = ... + """ + Contains configurations for the knowledge base query and retrieval + process. For more information, see [Query + configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). + """ + session_configuration: RetrieveAndGenerateSessionConfiguration | None = ... + """Contains details about the session with the knowledge base.""" + user_context: UserContext | None = ... + """ + Contains information about the user making the request. This is used for + access control filtering to ensure that retrieval results only include + documents the user is authorized to access. + """ + +class RetrieveAndGenerateOperationInputDict(TypedDict, total=False): + """Dictionary form of `RetrieveAndGenerateOperationInput`.""" - session_id: str | None = ... + session_id: str | None """ The unique identifier of the session. When you first make a `RetrieveAndGenerate` request, Amazon Bedrock automatically generates @@ -3337,17 +4617,23 @@ class RetrieveAndGenerateOperationInput(_SerdeShape): maintain context and knowledge from previous interactions. You can't explicitly set the `sessionId` yourself. """ - input: RetrieveAndGenerateInput | None = ... + input: Required[RetrieveAndGenerateInput | RetrieveAndGenerateInputDict] """Contains the query to be made to the knowledge base.""" - retrieve_and_generate_configuration: RetrieveAndGenerateConfiguration | None = ... + retrieve_and_generate_configuration: ( + RetrieveAndGenerateConfiguration | RetrieveAndGenerateConfigurationDict | None + ) """ Contains configurations for the knowledge base query and retrieval process. For more information, see [Query configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). """ - session_configuration: RetrieveAndGenerateSessionConfiguration | None = ... + session_configuration: ( + RetrieveAndGenerateSessionConfiguration + | RetrieveAndGenerateSessionConfigurationDict + | None + ) """Contains details about the session with the knowledge base.""" - user_context: UserContext | None = ... + user_context: UserContext | UserContextDict | None """ Contains information about the user making the request. This is used for access control filtering to ensure that retrieval results only include @@ -3421,6 +4707,12 @@ class RetrieveAndGenerateSessionConfiguration(_SerdeShape): kms_key_arn: str """The ARN of the KMS key encrypting the session.""" +class RetrieveAndGenerateSessionConfigurationDict(TypedDict, total=False): + """Dictionary form of `RetrieveAndGenerateSessionConfiguration`.""" + + kms_key_arn: Required[str] + """The ARN of the KMS key encrypting the session.""" + @dataclass(kw_only=True) class RetrieveAndGenerateStreamInput(_SerdeShape): """Dataclass for RetrieveAndGenerateStreamInput structure.""" @@ -3451,6 +4743,41 @@ class RetrieveAndGenerateStreamInput(_SerdeShape): documents the user is authorized to access. """ +class RetrieveAndGenerateStreamInputDict(TypedDict, total=False): + """Dictionary form of `RetrieveAndGenerateStreamInput`.""" + + session_id: str | None + """ + The unique identifier of the session. When you first make a + `RetrieveAndGenerate` request, Amazon Bedrock automatically generates + this value. You must reuse this value for all subsequent requests in the + same conversational session. This value allows Amazon Bedrock to + maintain context and knowledge from previous interactions. You can't + explicitly set the `sessionId` yourself. + """ + input: Required[RetrieveAndGenerateInput | RetrieveAndGenerateInputDict] + """Contains the query to be made to the knowledge base.""" + retrieve_and_generate_configuration: ( + RetrieveAndGenerateConfiguration | RetrieveAndGenerateConfigurationDict | None + ) + """ + Contains configurations for the knowledge base query and retrieval + process. For more information, see [Query + configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). + """ + session_configuration: ( + RetrieveAndGenerateSessionConfiguration + | RetrieveAndGenerateSessionConfigurationDict + | None + ) + """Contains details about the session with the knowledge base.""" + user_context: UserContext | UserContextDict | None + """ + Contains information about the user making the request. This is used for + access control filtering to ensure that retrieval results only include + documents the user is authorized to access. + """ + @dataclass(kw_only=True) class RetrieveAndGenerateStreamOutput(_SerdeShape): """Dataclass for RetrieveAndGenerateStreamOutput structure.""" @@ -3654,6 +4981,38 @@ class RetrieveInput(_SerdeShape): documents the user is authorized to access. """ +class RetrieveInputDict(TypedDict, total=False): + """Dictionary form of `RetrieveInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base to query.""" + retrieval_query: Required[KnowledgeBaseQuery | KnowledgeBaseQueryDict] + """Contains the query to send the knowledge base.""" + retrieval_configuration: ( + KnowledgeBaseRetrievalConfiguration + | KnowledgeBaseRetrievalConfigurationDict + | None + ) + """ + Contains configurations for the knowledge base query and retrieval + process. For more information, see [Query + configurations](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """Guardrail settings.""" + next_token: str | None + """ + If there are more results than can fit in the response, the response + returns a `nextToken`. Use this token in the `nextToken` field of + another request to retrieve the next batch of results. + """ + user_context: UserContext | UserContextDict | None + """ + Contains information about the user making the request. This is used for + access control filtering to ensure that retrieval results only include + documents the user is authorized to access. + """ + @dataclass(kw_only=True) class RetrieveOutput(_SerdeShape): """Dataclass for RetrieveOutput structure.""" @@ -3702,6 +5061,18 @@ class _RetrieverConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> RetrieverConfiguration: ... +class RetrieverConfigurationKnowledgeBaseDict(TypedDict): + knowledge_base: ( + KnowledgeBaseRetrieverConfiguration | KnowledgeBaseRetrieverConfigurationDict + ) + """Configuration for a knowledge base retriever.""" + +RetrieverConfigurationDict = Union[RetrieverConfigurationKnowledgeBaseDict] +""" +Dictionary form of `RetrieverConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ReturnControlPayload(_SerdeShape): """ @@ -3800,6 +5171,14 @@ class S3Identifier(_SerdeShape): s3_object_key: str | None = ... """The S3 object key for the S3 resource.""" +class S3IdentifierDict(TypedDict, total=False): + """Dictionary form of `S3Identifier`.""" + + s3_bucket_name: str | None + """The name of the S3 bucket.""" + s3_object_key: str | None + """The S3 object key for the S3 resource.""" + @dataclass(kw_only=True) class S3Location(_SerdeShape): """Information about the Amazon S3 bucket where the image is stored.""" @@ -3807,6 +5186,12 @@ class S3Location(_SerdeShape): uri: str """The path to the Amazon S3 bucket where the image is stored.""" +class S3LocationDict(TypedDict, total=False): + """Dictionary form of `S3Location`.""" + + uri: Required[str] + """The path to the Amazon S3 bucket where the image is stored.""" + @dataclass(kw_only=True) class S3ObjectDoc(_SerdeShape): """The unique wrapper object of the document from the S3 location.""" @@ -3814,6 +5199,12 @@ class S3ObjectDoc(_SerdeShape): uri: str """The file location of the S3 wrapper object.""" +class S3ObjectDocDict(TypedDict, total=False): + """Dictionary form of `S3ObjectDoc`.""" + + uri: Required[str] + """The file location of the S3 wrapper object.""" + @dataclass(kw_only=True) class S3ObjectFile(_SerdeShape): """Contains details of the s3 object where the source file is located.""" @@ -3821,6 +5212,12 @@ class S3ObjectFile(_SerdeShape): uri: str """The uri of the s3 object.""" +class S3ObjectFileDict(TypedDict, total=False): + """Dictionary form of `S3ObjectFile`.""" + + uri: Required[str] + """The uri of the s3 object.""" + @dataclass(kw_only=True) class SatisfiedCondition(_SerdeShape): """ @@ -3923,6 +5320,67 @@ class SessionState(_SerdeShape): conversation_history: ConversationHistory | None = ... """The state's conversation history.""" +class SessionStateDict(TypedDict, total=False): + """Dictionary form of `SessionState`.""" + + session_attributes: Mapping[str, str] | None + """ + Contains attributes that persist across a session and the values of + those attributes. If `sessionAttributes` are passed to a supervisor + agent in [multi-agent + collaboration](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-multi-agent-collaboration.html), + it will be forwarded to all agent collaborators. + """ + prompt_session_attributes: Mapping[str, str] | None + """ + Contains attributes that persist across a prompt and the values of those + attributes. + + - In orchestration prompt template, these attributes replace the + $prompt_session_attributes$ placeholder variable. For more + information, see [Prompt template placeholder + variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html). + + - In [multi-agent + collaboration](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-multi-agent-collaboration.html), + the `promptSessionAttributes` will only be used by supervisor agent + when $prompt_session_attributes$ is present in prompt template. + """ + return_control_invocation_results: ( + Sequence[InvocationResultMember | InvocationResultMemberDict] | None + ) + """ + Contains information about the results from the action group invocation. + For more information, see [Return control to the agent + developer](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html) + and [Control session + context](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). + + Note: + If you include this field, the `inputText` field will be ignored. + """ + invocation_id: str | None + """ + The identifier of the invocation of an action. This value must match the + `invocationId` returned in the `InvokeAgent` response for the action + whose results are provided in the `returnControlInvocationResults` + field. For more information, see [Return control to the agent + developer](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html) + and [Control session + context](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). + """ + files: Sequence[InputFile | InputFileDict] | None + """Contains information about the files used by code interpreter.""" + knowledge_base_configurations: ( + Sequence[KnowledgeBaseConfiguration | KnowledgeBaseConfigurationDict] | None + ) + """ + An array of configurations, each of which applies to a knowledge base + attached to the agent. + """ + conversation_history: ConversationHistory | ConversationHistoryDict | None + """The state's conversation history.""" + class SessionStatus(UnknownEnumMixin, StrEnum): ACTIVE = "ACTIVE" EXPIRED = "EXPIRED" @@ -3999,6 +5457,31 @@ class StartFlowExecutionInput(_SerdeShape): execution. """ +class StartFlowExecutionInputDict(TypedDict, total=False): + """Dictionary form of `StartFlowExecutionInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow to execute.""" + flow_alias_identifier: Required[str] + """The unique identifier of the flow alias to use for the flow execution.""" + flow_execution_name: str | None + """ + The unique name for the flow execution. If you don't provide one, a + system-generated name is used. + """ + inputs: Required[Sequence[FlowInput | FlowInputDict]] + """ + The input data required for the flow execution. This must match the + input schema defined in the flow. + """ + model_performance_configuration: ( + ModelPerformanceConfiguration | ModelPerformanceConfigurationDict | None + ) + """ + The performance settings for the foundation model used in the flow + execution. + """ + @dataclass(kw_only=True) class StartFlowExecutionOutput(_SerdeShape): """Dataclass for StartFlowExecutionOutput structure.""" @@ -4027,6 +5510,16 @@ class StopFlowExecutionInput(_SerdeShape): execution_identifier: str | None = ... """The unique identifier of the flow execution to stop.""" +class StopFlowExecutionInputDict(TypedDict, total=False): + """Dictionary form of `StopFlowExecutionInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + flow_alias_identifier: Required[str] + """The unique identifier of the flow alias used for the execution.""" + execution_identifier: Required[str] + """The unique identifier of the flow execution to stop.""" + @dataclass(kw_only=True) class StopFlowExecutionOutput(_SerdeShape): """Dataclass for StopFlowExecutionOutput structure.""" @@ -4077,6 +5570,33 @@ class StreamingConfigurations(_SerdeShape): `Hello, I am an Agent` """ +class StreamingConfigurationsDict(TypedDict, total=False): + """Dictionary form of `StreamingConfigurations`.""" + + stream_final_response: bool | None + """ + Specifies whether to enable streaming for the final response. This is + set to `false` by default. + """ + apply_guardrail_interval: int | None + """ + The guardrail interval to apply as response is generated. By default, + the guardrail interval is set to 50 characters. If a larger interval is + specified, the response will be generated in larger chunks with fewer + `ApplyGuardrail` calls. The following examples show the response + generated for *Hello, I am an agent* input string. + + **Example response in chunks: Interval set to 3 characters** + + `'Hel', 'lo, ','I am', ' an', ' Age', 'nt'` + + Each chunk has at least 3 characters except for the last chunk + + **Example response in chunks: Interval set to 20 or more characters** + + `Hello, I am an Agent` + """ + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -4089,6 +5609,17 @@ class TagResourceInput(_SerdeShape): the resource. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource to tag.""" + tags: Required[Mapping[str, str]] + """ + An object containing key-value pairs that define the tags to attach to + the resource. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -4147,6 +5678,41 @@ class TextInferenceConfig(_SerdeShape): specific model. """ +class TextInferenceConfigDict(TypedDict, total=False): + """Dictionary form of `TextInferenceConfig`.""" + + temperature: float | None + """ + Controls the random-ness of text generated by the language model, + influencing how much the model sticks to the most predictable next words + versus exploring more surprising options. A lower temperature value + (e.g. 0.2 or 0.3) makes model outputs more deterministic or predictable, + while a higher temperature (e.g. 0.8 or 0.9) makes the outputs more + creative or unpredictable. + """ + top_p: float | None + """ + A probability distribution threshold which controls what the model + considers for the set of possible next tokens. The model will only + consider the top p% of the probability distribution when generating the + next token. + """ + max_tokens: int | None + """ + The maximum number of tokens to generate in the output text. Do not use + the minimum of 0 or the maximum of 65536. The limit values described + here are arbitary values, for actual values consult the limits defined + by your specific model. + """ + stop_sequences: Sequence[str] | None + """ + A list of sequences of characters that, if generated, will cause the + model to stop generating further tokens. Do not use a minimum length of + 1 or a maximum length of 1000. The limit values described here are + arbitary values, for actual values consult the limits defined by your + specific model. + """ + @dataclass(kw_only=True) class TextPrompt(_SerdeShape): """Contains information about the text prompt to optimize.""" @@ -4154,6 +5720,12 @@ class TextPrompt(_SerdeShape): text: str """The text in the text prompt to optimize.""" +class TextPromptDict(TypedDict, total=False): + """Dictionary form of `TextPrompt`.""" + + text: Required[str] + """The text in the text prompt to optimize.""" + @dataclass(kw_only=True) class TextResponsePart(_SerdeShape): """ @@ -4188,6 +5760,18 @@ class TextToSqlConfiguration(_SerdeShape): knowledge_base_configuration: TextToSqlKnowledgeBaseConfiguration | None = ... """Specifies configurations for a knowledge base to use in transformation.""" +class TextToSqlConfigurationDict(TypedDict, total=False): + """Dictionary form of `TextToSqlConfiguration`.""" + + type: Required[str] + """The type of resource to use in transformation.""" + knowledge_base_configuration: ( + TextToSqlKnowledgeBaseConfiguration + | TextToSqlKnowledgeBaseConfigurationDict + | None + ) + """Specifies configurations for a knowledge base to use in transformation.""" + class TextToSqlConfigurationType(UnknownEnumMixin, StrEnum): KNOWLEDGE_BASE = "KNOWLEDGE_BASE" @@ -4198,6 +5782,12 @@ class TextToSqlKnowledgeBaseConfiguration(_SerdeShape): knowledge_base_arn: str """The ARN of the knowledge base""" +class TextToSqlKnowledgeBaseConfigurationDict(TypedDict, total=False): + """Dictionary form of `TextToSqlKnowledgeBaseConfiguration`.""" + + knowledge_base_arn: Required[str] + """The ARN of the knowledge base""" + @dataclass(kw_only=True) class ThrottlingException(ServiceError, _SerdeShape): """The number of requests exceeds the limit. Resubmit your request later.""" @@ -4364,6 +5954,16 @@ class TransformationConfiguration(_SerdeShape): text_to_sql_configuration: TextToSqlConfiguration | None = ... """Specifies configurations for transforming text to SQL.""" +class TransformationConfigurationDict(TypedDict, total=False): + """Dictionary form of `TransformationConfiguration`.""" + + mode: Required[str] + """The mode of the transformation.""" + text_to_sql_configuration: ( + TextToSqlConfiguration | TextToSqlConfigurationDict | None + ) + """Specifies configurations for transforming text to SQL.""" + class Type(UnknownEnumMixin, StrEnum): ACTION_GROUP = "ACTION_GROUP" AGENT_COLLABORATOR = "AGENT_COLLABORATOR" @@ -4384,6 +5984,17 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """A list of keys of the tags to remove from the resource.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource from which to remove + tags. + """ + tag_keys: Required[Sequence[str]] + """A list of keys of the tags to remove from the resource.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -4412,6 +6023,21 @@ class UpdateSessionInput(_SerdeShape): the session's `sessionId` or its Amazon Resource Name (ARN). """ +class UpdateSessionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSessionInput`.""" + + session_metadata: Mapping[str, str] | None + """ + A map of key-value pairs containing attributes to be persisted across + the session. For example the user's ID, their language preference, and + the type of device they are using. + """ + session_identifier: Required[str] + """ + The unique identifier of the session to modify. You can specify either + the session's `sessionId` or its Amazon Resource Name (ARN). + """ + @dataclass(kw_only=True) class UpdateSessionOutput(_SerdeShape): """Dataclass for UpdateSessionOutput structure.""" @@ -4461,6 +6087,12 @@ class UserContext(_SerdeShape): user_id: str """The identifier of the user making the retrieval request.""" +class UserContextDict(TypedDict, total=False): + """Dictionary form of `UserContext`.""" + + user_id: Required[str] + """The identifier of the user making the retrieval request.""" + @dataclass(kw_only=True) class ValidationException(ServiceError, _SerdeShape): """ @@ -4490,6 +6122,21 @@ class VectorSearchBedrockRerankingConfiguration(_SerdeShape): metadata_configuration: MetadataConfigurationForReranking | None = ... """Contains configurations for the metadata to use in reranking.""" +class VectorSearchBedrockRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchBedrockRerankingConfiguration`.""" + + model_configuration: Required[ + VectorSearchBedrockRerankingModelConfiguration + | VectorSearchBedrockRerankingModelConfigurationDict + ] + """Contains configurations for the reranker model.""" + number_of_reranked_results: int | None + """The number of results to return after reranking.""" + metadata_configuration: ( + MetadataConfigurationForReranking | MetadataConfigurationForRerankingDict | None + ) + """Contains configurations for the metadata to use in reranking.""" + @dataclass(kw_only=True) class VectorSearchBedrockRerankingModelConfiguration(_SerdeShape): """Contains configurations for an Amazon Bedrock reranker model.""" @@ -4502,6 +6149,17 @@ class VectorSearchBedrockRerankingModelConfiguration(_SerdeShape): values are values for those fields. """ +class VectorSearchBedrockRerankingModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchBedrockRerankingModelConfiguration`.""" + + model_arn: Required[str] + """The ARN of the reranker model to use.""" + additional_model_request_fields: Mapping[str, Document] | None + """ + A JSON object whose keys are request fields for the model and whose + values are values for those fields. + """ + @dataclass(kw_only=True) class VectorSearchRerankingConfiguration(_SerdeShape): """Contains configurations for reranking the retrieved results.""" @@ -4513,6 +6171,18 @@ class VectorSearchRerankingConfiguration(_SerdeShape): ) = ... """Contains configurations for an Amazon Bedrock reranker model.""" +class VectorSearchRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchRerankingConfiguration`.""" + + type: Required[str] + """The type of reranker model.""" + bedrock_reranking_configuration: ( + VectorSearchBedrockRerankingConfiguration + | VectorSearchBedrockRerankingConfigurationDict + | None + ) + """Contains configurations for an Amazon Bedrock reranker model.""" + class VectorSearchRerankingConfigurationType(UnknownEnumMixin, StrEnum): BEDROCK_RERANKING_MODEL = "BEDROCK_RERANKING_MODEL" diff --git a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/schemas.py b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/schemas.py index eb1bf4049..ab7569da1 100644 --- a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/schemas.py +++ b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/_private/schemas.py @@ -732,7 +732,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/aio/client.py b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/aio/client.py index fa7d60cc0..378919c77 100644 --- a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/aio/client.py +++ b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -15,22 +15,16 @@ from .. import models as _models from ..models import ( - AgenticRetrieveStreamInput, AgenticRetrieveStreamOutput, AgenticRetrieveStreamResponseOutput, FlowResponseStream, InlineAgentResponseStream, - InvokeAgentInput, InvokeAgentOutput, - InvokeFlowInput, InvokeFlowOutput, - InvokeInlineAgentInput, InvokeInlineAgentOutput, - OptimizePromptInput, OptimizePromptOutput, OptimizedPromptStream, ResponseStream, - RetrieveAndGenerateStreamInput, RetrieveAndGenerateStreamOutput, RetrieveAndGenerateStreamResponseOutput, _AgenticRetrieveStreamResponseOutputDeserializer, @@ -47,63 +41,34 @@ if TYPE_CHECKING: from ..models import ( - CheckIngestedDocumentAclInput, CheckIngestedDocumentAclOutput, - CreateInvocationInput, CreateInvocationOutput, - CreateSessionInput, CreateSessionOutput, - DeleteAgentMemoryInput, DeleteAgentMemoryOutput, - DeleteSessionInput, DeleteSessionOutput, - EndSessionInput, EndSessionOutput, - GenerateQueryInput, GenerateQueryOutput, - GetAgentMemoryInput, GetAgentMemoryOutput, - GetDocumentContentInput, GetDocumentContentOutput, - GetExecutionFlowSnapshotInput, GetExecutionFlowSnapshotOutput, - GetFlowExecutionInput, GetFlowExecutionOutput, - GetIngestedDocumentAclInput, GetIngestedDocumentAclOutput, - GetInvocationStepInput, GetInvocationStepOutput, - GetSessionInput, GetSessionOutput, - ListFlowExecutionEventsInput, ListFlowExecutionEventsOutput, - ListFlowExecutionsInput, ListFlowExecutionsOutput, - ListInvocationStepsInput, ListInvocationStepsOutput, - ListInvocationsInput, ListInvocationsOutput, - ListSessionsInput, ListSessionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - PutInvocationStepInput, PutInvocationStepOutput, - RerankInput, RerankOutput, - RetrieveAndGenerateOperationInput, RetrieveAndGenerateOperationOutput, - RetrieveInput, RetrieveOutput, - StartFlowExecutionInput, StartFlowExecutionOutput, - StopFlowExecutionInput, StopFlowExecutionOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateSessionInput, UpdateSessionOutput, ) @@ -125,10 +90,27 @@ class AsyncBedrockAgentRuntimeClient(AsyncClient[AsyncBedrockAgentRuntimeConfig] bases. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def agentic_retrieve_stream( - self, input: AgenticRetrieveStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.AgenticRetrieveStreamInput + | _models.AgenticRetrieveStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + AgenticRetrieveStreamResponseOutput, AgenticRetrieveStreamOutput + ]: ... + + @_overload + async def agentic_retrieve_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AgenticRetrieveStreamInputDict], ) -> AsyncOutputEventStream[ AgenticRetrieveStreamResponseOutput, AgenticRetrieveStreamOutput ]: @@ -146,8 +128,6 @@ async def agentic_retrieve_stream( off. Args: - input: - An instance of `AgenticRetrieveStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -157,8 +137,17 @@ async def agentic_retrieve_stream( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def agentic_retrieve_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ + AgenticRetrieveStreamResponseOutput, AgenticRetrieveStreamOutput + ]: pipeline, call = await self._prepare_call( - input, _models.AGENTIC_RETRIEVE_STREAM, [], plugins + self._select_input(_models.AGENTIC_RETRIEVE_STREAM, args, kwargs), + _models.AGENTIC_RETRIEVE_STREAM, + [], + plugins, ) return await pipeline.output_stream( call, @@ -166,8 +155,23 @@ async def agentic_retrieve_stream( _AgenticRetrieveStreamResponseOutputDeserializer().deserialize, ) + @_overload + async def check_ingested_document_acl( + self, + request: _models.CheckIngestedDocumentAclInput + | _models.CheckIngestedDocumentAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CheckIngestedDocumentAclOutput: ... + + @_overload async def check_ingested_document_acl( - self, input: CheckIngestedDocumentAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CheckIngestedDocumentAclInputDict], ) -> CheckIngestedDocumentAclOutput: """ Checks whether a user has access to a specific document by verifying @@ -177,8 +181,6 @@ async def check_ingested_document_acl( `bedrock:CheckIngestedDocumentAcl` permission. Args: - input: - An instance of `CheckIngestedDocumentAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -188,12 +190,33 @@ async def check_ingested_document_acl( Returns: An instance of `CheckIngestedDocumentAclOutput`. """ + + async def check_ingested_document_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CheckIngestedDocumentAclOutput: return await self._invoke( - input, _models.CHECK_INGESTED_DOCUMENT_ACL, [], plugins + self._select_input(_models.CHECK_INGESTED_DOCUMENT_ACL, args, kwargs), + _models.CHECK_INGESTED_DOCUMENT_ACL, + [], + plugins, ) + @_overload async def create_invocation( - self, input: CreateInvocationInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateInvocationInput | _models.CreateInvocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInvocationOutput: ... + + @_overload + async def create_invocation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInvocationInputDict], ) -> CreateInvocationOutput: """ Creates a new invocation within a session. An invocation groups the @@ -211,8 +234,6 @@ async def create_invocation( - [GetSession](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html) Args: - input: - An instance of `CreateInvocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -222,10 +243,33 @@ async def create_invocation( Returns: An instance of `CreateInvocationOutput`. """ - return await self._invoke(input, _models.CREATE_INVOCATION, [], plugins) + async def create_invocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInvocationOutput: + return await self._invoke( + self._select_input(_models.CREATE_INVOCATION, args, kwargs), + _models.CREATE_INVOCATION, + [], + plugins, + ) + + @_overload async def create_session( - self, input: CreateSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateSessionInput | _models.CreateSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSessionOutput: ... + + @_overload + async def create_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSessionInputDict], ) -> CreateSessionOutput: """ Creates a session to temporarily store conversations for generative AI @@ -260,8 +304,6 @@ async def create_session( - [DeleteSession](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_DeleteSession.html) Args: - input: - An instance of `CreateSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -271,17 +313,38 @@ async def create_session( Returns: An instance of `CreateSessionOutput`. """ - return await self._invoke(input, _models.CREATE_SESSION, [], plugins) + async def create_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSessionOutput: + return await self._invoke( + self._select_input(_models.CREATE_SESSION, args, kwargs), + _models.CREATE_SESSION, + [], + plugins, + ) + + @_overload + async def delete_agent_memory( + self, + request: _models.DeleteAgentMemoryInput | _models.DeleteAgentMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentMemoryOutput: ... + + @_overload async def delete_agent_memory( - self, input: DeleteAgentMemoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentMemoryInputDict], ) -> DeleteAgentMemoryOutput: """ Deletes memory from the specified memory identifier. Args: - input: - An instance of `DeleteAgentMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -291,10 +354,33 @@ async def delete_agent_memory( Returns: An instance of `DeleteAgentMemoryOutput`. """ - return await self._invoke(input, _models.DELETE_AGENT_MEMORY, [], plugins) + async def delete_agent_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentMemoryOutput: + return await self._invoke( + self._select_input(_models.DELETE_AGENT_MEMORY, args, kwargs), + _models.DELETE_AGENT_MEMORY, + [], + plugins, + ) + + @_overload + async def delete_session( + self, + request: _models.DeleteSessionInput | _models.DeleteSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSessionOutput: ... + + @_overload async def delete_session( - self, input: DeleteSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSessionInputDict], ) -> DeleteSessionOutput: """ Deletes a session that you ended. You can't delete a session with an @@ -306,8 +392,6 @@ async def delete_session( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `DeleteSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -317,10 +401,33 @@ async def delete_session( Returns: An instance of `DeleteSessionOutput`. """ - return await self._invoke(input, _models.DELETE_SESSION, [], plugins) + async def delete_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSessionOutput: + return await self._invoke( + self._select_input(_models.DELETE_SESSION, args, kwargs), + _models.DELETE_SESSION, + [], + plugins, + ) + + @_overload + async def end_session( + self, + request: _models.EndSessionInput | _models.EndSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EndSessionOutput: ... + + @_overload async def end_session( - self, input: EndSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EndSessionInputDict], ) -> EndSessionOutput: """ Ends the session. After you end a session, you can still access its @@ -331,8 +438,6 @@ async def end_session( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `EndSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -342,10 +447,33 @@ async def end_session( Returns: An instance of `EndSessionOutput`. """ - return await self._invoke(input, _models.END_SESSION, [], plugins) + async def end_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EndSessionOutput: + return await self._invoke( + self._select_input(_models.END_SESSION, args, kwargs), + _models.END_SESSION, + [], + plugins, + ) + + @_overload async def generate_query( - self, input: GenerateQueryInput, plugins: list[Plugin] | None = None + self, + request: _models.GenerateQueryInput | _models.GenerateQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateQueryOutput: ... + + @_overload + async def generate_query( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateQueryInputDict], ) -> GenerateQueryOutput: """ Generates an SQL query from a natural language query. For more @@ -354,8 +482,6 @@ async def generate_query( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GenerateQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -365,17 +491,38 @@ async def generate_query( Returns: An instance of `GenerateQueryOutput`. """ - return await self._invoke(input, _models.GENERATE_QUERY, [], plugins) + async def generate_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateQueryOutput: + return await self._invoke( + self._select_input(_models.GENERATE_QUERY, args, kwargs), + _models.GENERATE_QUERY, + [], + plugins, + ) + + @_overload async def get_agent_memory( - self, input: GetAgentMemoryInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAgentMemoryInput | _models.GetAgentMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentMemoryOutput: ... + + @_overload + async def get_agent_memory( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentMemoryInputDict], ) -> GetAgentMemoryOutput: """ Gets the sessions stored in the memory of the agent. Args: - input: - An instance of `GetAgentMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -385,10 +532,33 @@ async def get_agent_memory( Returns: An instance of `GetAgentMemoryOutput`. """ - return await self._invoke(input, _models.GET_AGENT_MEMORY, [], plugins) + async def get_agent_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentMemoryOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT_MEMORY, args, kwargs), + _models.GET_AGENT_MEMORY, + [], + plugins, + ) + + @_overload + async def get_document_content( + self, + request: _models.GetDocumentContentInput | _models.GetDocumentContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentContentOutput: ... + + @_overload async def get_document_content( - self, input: GetDocumentContentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentContentInputDict], ) -> GetDocumentContentOutput: """ Retrieves the content of an ingested document from a knowledge base, or @@ -397,8 +567,6 @@ async def get_document_content( `Retrieve` result. Args: - input: - An instance of `GetDocumentContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -408,10 +576,34 @@ async def get_document_content( Returns: An instance of `GetDocumentContentOutput`. """ - return await self._invoke(input, _models.GET_DOCUMENT_CONTENT, [], plugins) + async def get_document_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentContentOutput: + return await self._invoke( + self._select_input(_models.GET_DOCUMENT_CONTENT, args, kwargs), + _models.GET_DOCUMENT_CONTENT, + [], + plugins, + ) + + @_overload + async def get_execution_flow_snapshot( + self, + request: _models.GetExecutionFlowSnapshotInput + | _models.GetExecutionFlowSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetExecutionFlowSnapshotOutput: ... + + @_overload async def get_execution_flow_snapshot( - self, input: GetExecutionFlowSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetExecutionFlowSnapshotInputDict], ) -> GetExecutionFlowSnapshotOutput: """ Retrieves the flow definition snapshot used for a flow execution. The @@ -425,8 +617,6 @@ async def get_execution_flow_snapshot( to change. Args: - input: - An instance of `GetExecutionFlowSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -436,20 +626,39 @@ async def get_execution_flow_snapshot( Returns: An instance of `GetExecutionFlowSnapshotOutput`. """ + + async def get_execution_flow_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetExecutionFlowSnapshotOutput: return await self._invoke( - input, _models.GET_EXECUTION_FLOW_SNAPSHOT, [], plugins + self._select_input(_models.GET_EXECUTION_FLOW_SNAPSHOT, args, kwargs), + _models.GET_EXECUTION_FLOW_SNAPSHOT, + [], + plugins, ) + @_overload + async def get_flow_execution( + self, + request: _models.GetFlowExecutionInput | _models.GetFlowExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowExecutionOutput: ... + + @_overload async def get_flow_execution( - self, input: GetFlowExecutionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowExecutionInputDict], ) -> GetFlowExecutionOutput: """ Retrieves details about a specific flow execution, including its status, start and end times, and any errors that occurred during execution. Args: - input: - An instance of `GetFlowExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -459,10 +668,34 @@ async def get_flow_execution( Returns: An instance of `GetFlowExecutionOutput`. """ - return await self._invoke(input, _models.GET_FLOW_EXECUTION, [], plugins) + async def get_flow_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowExecutionOutput: + return await self._invoke( + self._select_input(_models.GET_FLOW_EXECUTION, args, kwargs), + _models.GET_FLOW_EXECUTION, + [], + plugins, + ) + + @_overload async def get_ingested_document_acl( - self, input: GetIngestedDocumentAclInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIngestedDocumentAclInput + | _models.GetIngestedDocumentAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIngestedDocumentAclOutput: ... + + @_overload + async def get_ingested_document_acl( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIngestedDocumentAclInputDict], ) -> GetIngestedDocumentAclOutput: """ Retrieves the ingested access control list (ACL) for a specific document @@ -472,8 +705,6 @@ async def get_ingested_document_acl( `bedrock:GetIngestedDocumentAcl` permission. Args: - input: - An instance of `GetIngestedDocumentAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -483,10 +714,33 @@ async def get_ingested_document_acl( Returns: An instance of `GetIngestedDocumentAclOutput`. """ - return await self._invoke(input, _models.GET_INGESTED_DOCUMENT_ACL, [], plugins) + async def get_ingested_document_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIngestedDocumentAclOutput: + return await self._invoke( + self._select_input(_models.GET_INGESTED_DOCUMENT_ACL, args, kwargs), + _models.GET_INGESTED_DOCUMENT_ACL, + [], + plugins, + ) + + @_overload async def get_invocation_step( - self, input: GetInvocationStepInput, plugins: list[Plugin] | None = None + self, + request: _models.GetInvocationStepInput | _models.GetInvocationStepInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvocationStepOutput: ... + + @_overload + async def get_invocation_step( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvocationStepInputDict], ) -> GetInvocationStepOutput: """ Retrieves the details of a specific invocation step within an invocation @@ -495,8 +749,6 @@ async def get_invocation_step( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `GetInvocationStepInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -506,10 +758,33 @@ async def get_invocation_step( Returns: An instance of `GetInvocationStepOutput`. """ - return await self._invoke(input, _models.GET_INVOCATION_STEP, [], plugins) + async def get_invocation_step( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvocationStepOutput: + return await self._invoke( + self._select_input(_models.GET_INVOCATION_STEP, args, kwargs), + _models.GET_INVOCATION_STEP, + [], + plugins, + ) + + @_overload async def get_session( - self, input: GetSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSessionInput | _models.GetSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSessionOutput: ... + + @_overload + async def get_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSessionInputDict], ) -> GetSessionOutput: """ Retrieves details about a specific session. For more information about @@ -518,8 +793,6 @@ async def get_session( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `GetSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -529,10 +802,33 @@ async def get_session( Returns: An instance of `GetSessionOutput`. """ - return await self._invoke(input, _models.GET_SESSION, [], plugins) + async def get_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSessionOutput: + return await self._invoke( + self._select_input(_models.GET_SESSION, args, kwargs), + _models.GET_SESSION, + [], + plugins, + ) + + @_overload + async def invoke_agent( + self, + request: _models.InvokeAgentInput | _models.InvokeAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ResponseStream, InvokeAgentOutput]: ... + + @_overload async def invoke_agent( - self, input: InvokeAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeAgentInputDict], ) -> AsyncOutputEventStream[ResponseStream, InvokeAgentOutput]: """ Note: @@ -579,8 +875,6 @@ async def invoke_agent( - Errors are also surfaced in the response. Args: - input: - An instance of `InvokeAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -590,15 +884,36 @@ async def invoke_agent( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def invoke_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ResponseStream, InvokeAgentOutput]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_AGENT, [], plugins + self._select_input(_models.INVOKE_AGENT, args, kwargs), + _models.INVOKE_AGENT, + [], + plugins, ) return await pipeline.output_stream( call, ResponseStream, _ResponseStreamDeserializer().deserialize ) + @_overload + async def invoke_flow( + self, + request: _models.InvokeFlowInput | _models.InvokeFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[FlowResponseStream, InvokeFlowOutput]: ... + + @_overload async def invoke_flow( - self, input: InvokeFlowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeFlowInputDict], ) -> AsyncOutputEventStream[FlowResponseStream, InvokeFlowOutput]: """ Invokes an alias of a flow to run the inputs that you specify and return @@ -613,8 +928,6 @@ async def invoke_flow( including `InvokeFlow`. Args: - input: - An instance of `InvokeFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -624,15 +937,36 @@ async def invoke_flow( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def invoke_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[FlowResponseStream, InvokeFlowOutput]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_FLOW, [], plugins + self._select_input(_models.INVOKE_FLOW, args, kwargs), + _models.INVOKE_FLOW, + [], + plugins, ) return await pipeline.output_stream( call, FlowResponseStream, _FlowResponseStreamDeserializer().deserialize ) + @_overload async def invoke_inline_agent( - self, input: InvokeInlineAgentInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeInlineAgentInput | _models.InvokeInlineAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[InlineAgentResponseStream, InvokeInlineAgentOutput]: ... + + @_overload + async def invoke_inline_agent( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeInlineAgentInputDict], ) -> AsyncOutputEventStream[InlineAgentResponseStream, InvokeInlineAgentOutput]: """ Invokes an inline Amazon Bedrock agent using the configurations you @@ -660,8 +994,6 @@ async def invoke_inline_agent( Note: Args: - input: - An instance of `InvokeInlineAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -671,8 +1003,15 @@ async def invoke_inline_agent( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def invoke_inline_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[InlineAgentResponseStream, InvokeInlineAgentOutput]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_INLINE_AGENT, [], plugins + self._select_input(_models.INVOKE_INLINE_AGENT, args, kwargs), + _models.INVOKE_INLINE_AGENT, + [], + plugins, ) return await pipeline.output_stream( call, @@ -680,8 +1019,23 @@ async def invoke_inline_agent( _InlineAgentResponseStreamDeserializer().deserialize, ) + @_overload + async def list_flow_execution_events( + self, + request: _models.ListFlowExecutionEventsInput + | _models.ListFlowExecutionEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowExecutionEventsOutput: ... + + @_overload async def list_flow_execution_events( - self, input: ListFlowExecutionEventsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowExecutionEventsInputDict], ) -> ListFlowExecutionEventsOutput: """ Lists events that occurred during a flow execution. Events provide @@ -694,8 +1048,6 @@ async def list_flow_execution_events( to change. Args: - input: - An instance of `ListFlowExecutionEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -705,12 +1057,33 @@ async def list_flow_execution_events( Returns: An instance of `ListFlowExecutionEventsOutput`. """ + + async def list_flow_execution_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowExecutionEventsOutput: return await self._invoke( - input, _models.LIST_FLOW_EXECUTION_EVENTS, [], plugins + self._select_input(_models.LIST_FLOW_EXECUTION_EVENTS, args, kwargs), + _models.LIST_FLOW_EXECUTION_EVENTS, + [], + plugins, ) + @_overload async def list_flow_executions( - self, input: ListFlowExecutionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListFlowExecutionsInput | _models.ListFlowExecutionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowExecutionsOutput: ... + + @_overload + async def list_flow_executions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowExecutionsInputDict], ) -> ListFlowExecutionsOutput: """ Lists all executions of a flow. Results can be paginated and include @@ -722,8 +1095,6 @@ async def list_flow_executions( to change. Args: - input: - An instance of `ListFlowExecutionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -733,10 +1104,33 @@ async def list_flow_executions( Returns: An instance of `ListFlowExecutionsOutput`. """ - return await self._invoke(input, _models.LIST_FLOW_EXECUTIONS, [], plugins) + async def list_flow_executions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowExecutionsOutput: + return await self._invoke( + self._select_input(_models.LIST_FLOW_EXECUTIONS, args, kwargs), + _models.LIST_FLOW_EXECUTIONS, + [], + plugins, + ) + + @_overload async def list_invocations( - self, input: ListInvocationsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListInvocationsInput | _models.ListInvocationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvocationsOutput: ... + + @_overload + async def list_invocations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvocationsInputDict], ) -> ListInvocationsOutput: """ Lists all invocations associated with a specific session. For more @@ -745,8 +1139,6 @@ async def list_invocations( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `ListInvocationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -756,10 +1148,34 @@ async def list_invocations( Returns: An instance of `ListInvocationsOutput`. """ - return await self._invoke(input, _models.LIST_INVOCATIONS, [], plugins) + async def list_invocations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvocationsOutput: + return await self._invoke( + self._select_input(_models.LIST_INVOCATIONS, args, kwargs), + _models.LIST_INVOCATIONS, + [], + plugins, + ) + + @_overload async def list_invocation_steps( - self, input: ListInvocationStepsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListInvocationStepsInput + | _models.ListInvocationStepsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvocationStepsOutput: ... + + @_overload + async def list_invocation_steps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvocationStepsInputDict], ) -> ListInvocationStepsOutput: """ Lists all invocation steps associated with a session and optionally, an @@ -768,8 +1184,6 @@ async def list_invocation_steps( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `ListInvocationStepsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -779,10 +1193,33 @@ async def list_invocation_steps( Returns: An instance of `ListInvocationStepsOutput`. """ - return await self._invoke(input, _models.LIST_INVOCATION_STEPS, [], plugins) + async def list_invocation_steps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvocationStepsOutput: + return await self._invoke( + self._select_input(_models.LIST_INVOCATION_STEPS, args, kwargs), + _models.LIST_INVOCATION_STEPS, + [], + plugins, + ) + + @_overload async def list_sessions( - self, input: ListSessionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListSessionsInput | _models.ListSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSessionsOutput: ... + + @_overload + async def list_sessions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSessionsInputDict], ) -> ListSessionsOutput: """ Lists all sessions in your Amazon Web Services account. For more @@ -791,8 +1228,6 @@ async def list_sessions( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `ListSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -802,17 +1237,39 @@ async def list_sessions( Returns: An instance of `ListSessionsOutput`. """ - return await self._invoke(input, _models.LIST_SESSIONS, [], plugins) + async def list_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSessionsOutput: + return await self._invoke( + self._select_input(_models.LIST_SESSIONS, args, kwargs), + _models.LIST_SESSIONS, + [], + plugins, + ) + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + async def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List all the tags for the resource you specify. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -822,10 +1279,33 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def optimize_prompt( + self, + request: _models.OptimizePromptInput | _models.OptimizePromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[OptimizedPromptStream, OptimizePromptOutput]: ... + + @_overload async def optimize_prompt( - self, input: OptimizePromptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.OptimizePromptInputDict], ) -> AsyncOutputEventStream[OptimizedPromptStream, OptimizePromptOutput]: """ Optimizes a prompt for the task that you specify. For more information, @@ -835,8 +1315,6 @@ async def optimize_prompt( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `OptimizePromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -846,8 +1324,15 @@ async def optimize_prompt( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def optimize_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[OptimizedPromptStream, OptimizePromptOutput]: pipeline, call = await self._prepare_call( - input, _models.OPTIMIZE_PROMPT, [], plugins + self._select_input(_models.OPTIMIZE_PROMPT, args, kwargs), + _models.OPTIMIZE_PROMPT, + [], + plugins, ) return await pipeline.output_stream( call, @@ -855,8 +1340,22 @@ async def optimize_prompt( _OptimizedPromptStreamDeserializer().deserialize, ) + @_overload async def put_invocation_step( - self, input: PutInvocationStepInput, plugins: list[Plugin] | None = None + self, + request: _models.PutInvocationStepInput | _models.PutInvocationStepInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutInvocationStepOutput: ... + + @_overload + async def put_invocation_step( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutInvocationStepInputDict], ) -> PutInvocationStepOutput: """ Add an invocation step to an invocation in a session. An invocation step @@ -876,8 +1375,6 @@ async def put_invocation_step( - [ListSessions](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html) Args: - input: - An instance of `PutInvocationStepInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -887,10 +1384,33 @@ async def put_invocation_step( Returns: An instance of `PutInvocationStepOutput`. """ - return await self._invoke(input, _models.PUT_INVOCATION_STEP, [], plugins) + async def put_invocation_step( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutInvocationStepOutput: + return await self._invoke( + self._select_input(_models.PUT_INVOCATION_STEP, args, kwargs), + _models.PUT_INVOCATION_STEP, + [], + plugins, + ) + + @_overload async def rerank( - self, input: RerankInput, plugins: list[Plugin] | None = None + self, + request: _models.RerankInput | _models.RerankInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RerankOutput: ... + + @_overload + async def rerank( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RerankInputDict], ) -> RerankOutput: """ Reranks the relevance of sources based on queries. For more information, @@ -898,8 +1418,6 @@ async def rerank( model](https://docs.aws.amazon.com/bedrock/latest/userguide/rerank.html). Args: - input: - An instance of `RerankInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -909,17 +1427,38 @@ async def rerank( Returns: An instance of `RerankOutput`. """ - return await self._invoke(input, _models.RERANK, [], plugins) + async def rerank( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RerankOutput: + return await self._invoke( + self._select_input(_models.RERANK, args, kwargs), + _models.RERANK, + [], + plugins, + ) + + @_overload + async def retrieve( + self, + request: _models.RetrieveInput | _models.RetrieveInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RetrieveOutput: ... + + @_overload async def retrieve( - self, input: RetrieveInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetrieveInputDict], ) -> RetrieveOutput: """ Queries a knowledge base and retrieves information from it. Args: - input: - An instance of `RetrieveInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -929,12 +1468,34 @@ async def retrieve( Returns: An instance of `RetrieveOutput`. """ - return await self._invoke(input, _models.RETRIEVE, [], plugins) + async def retrieve( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RetrieveOutput: + return await self._invoke( + self._select_input(_models.RETRIEVE, args, kwargs), + _models.RETRIEVE, + [], + plugins, + ) + + @_overload + async def retrieve_and_generate( + self, + request: _models.RetrieveAndGenerateOperationInput + | _models.RetrieveAndGenerateOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RetrieveAndGenerateOperationOutput: ... + + @_overload async def retrieve_and_generate( self, - input: RetrieveAndGenerateOperationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetrieveAndGenerateOperationInputDict], ) -> RetrieveAndGenerateOperationOutput: """ Queries a knowledge base and generates responses based on the retrieved @@ -950,8 +1511,6 @@ async def retrieve_and_generate( with managed knowledge bases. Args: - input: - An instance of `RetrieveAndGenerateOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -961,10 +1520,36 @@ async def retrieve_and_generate( Returns: An instance of `RetrieveAndGenerateOperationOutput`. """ - return await self._invoke(input, _models.RETRIEVE_AND_GENERATE, [], plugins) + async def retrieve_and_generate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RetrieveAndGenerateOperationOutput: + return await self._invoke( + self._select_input(_models.RETRIEVE_AND_GENERATE, args, kwargs), + _models.RETRIEVE_AND_GENERATE, + [], + plugins, + ) + + @_overload + async def retrieve_and_generate_stream( + self, + request: _models.RetrieveAndGenerateStreamInput + | _models.RetrieveAndGenerateStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + RetrieveAndGenerateStreamResponseOutput, RetrieveAndGenerateStreamOutput + ]: ... + + @_overload async def retrieve_and_generate_stream( - self, input: RetrieveAndGenerateStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetrieveAndGenerateStreamInputDict], ) -> AsyncOutputEventStream[ RetrieveAndGenerateStreamResponseOutput, RetrieveAndGenerateStreamOutput ]: @@ -986,8 +1571,6 @@ async def retrieve_and_generate_stream( ` bedrock:RetrieveAndGenerate` action. Args: - input: - An instance of `RetrieveAndGenerateStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -997,8 +1580,17 @@ async def retrieve_and_generate_stream( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def retrieve_and_generate_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ + RetrieveAndGenerateStreamResponseOutput, RetrieveAndGenerateStreamOutput + ]: pipeline, call = await self._prepare_call( - input, _models.RETRIEVE_AND_GENERATE_STREAM, [], plugins + self._select_input(_models.RETRIEVE_AND_GENERATE_STREAM, args, kwargs), + _models.RETRIEVE_AND_GENERATE_STREAM, + [], + plugins, ) return await pipeline.output_stream( call, @@ -1006,8 +1598,22 @@ async def retrieve_and_generate_stream( _RetrieveAndGenerateStreamResponseOutputDeserializer().deserialize, ) + @_overload + async def start_flow_execution( + self, + request: _models.StartFlowExecutionInput | _models.StartFlowExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartFlowExecutionOutput: ... + + @_overload async def start_flow_execution( - self, input: StartFlowExecutionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartFlowExecutionInputDict], ) -> StartFlowExecutionOutput: """ Starts an execution of an Amazon Bedrock flow. Unlike flows that run @@ -1023,8 +1629,6 @@ async def start_flow_execution( to change. Args: - input: - An instance of `StartFlowExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1034,10 +1638,33 @@ async def start_flow_execution( Returns: An instance of `StartFlowExecutionOutput`. """ - return await self._invoke(input, _models.START_FLOW_EXECUTION, [], plugins) + async def start_flow_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartFlowExecutionOutput: + return await self._invoke( + self._select_input(_models.START_FLOW_EXECUTION, args, kwargs), + _models.START_FLOW_EXECUTION, + [], + plugins, + ) + + @_overload + async def stop_flow_execution( + self, + request: _models.StopFlowExecutionInput | _models.StopFlowExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopFlowExecutionOutput: ... + + @_overload async def stop_flow_execution( - self, input: StopFlowExecutionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopFlowExecutionInputDict], ) -> StopFlowExecutionOutput: """ Stops an Amazon Bedrock flow's execution. This operation prevents @@ -1045,8 +1672,6 @@ async def stop_flow_execution( `Aborted`. Args: - input: - An instance of `StopFlowExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1056,10 +1681,33 @@ async def stop_flow_execution( Returns: An instance of `StopFlowExecutionOutput`. """ - return await self._invoke(input, _models.STOP_FLOW_EXECUTION, [], plugins) + async def stop_flow_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopFlowExecutionOutput: + return await self._invoke( + self._select_input(_models.STOP_FLOW_EXECUTION, args, kwargs), + _models.STOP_FLOW_EXECUTION, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associate tags with a resource. For more information, see [Tagging @@ -1067,8 +1715,6 @@ async def tag_resource( in the Amazon Bedrock User Guide. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1078,17 +1724,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1098,10 +1765,33 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload async def update_session( - self, input: UpdateSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateSessionInput | _models.UpdateSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSessionOutput: ... + + @_overload + async def update_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSessionInputDict], ) -> UpdateSessionOutput: """ Updates the metadata or encryption settings of a session. For more @@ -1110,8 +1800,6 @@ async def update_session( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `UpdateSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1121,7 +1809,16 @@ async def update_session( Returns: An instance of `UpdateSessionOutput`. """ - return await self._invoke(input, _models.UPDATE_SESSION, [], plugins) + + async def update_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSessionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_SESSION, args, kwargs), + _models.UPDATE_SESSION, + [], + plugins, + ) async def _new_config(self) -> AsyncBedrockAgentRuntimeConfig: return await AsyncBedrockAgentRuntimeConfig.resolve() diff --git a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/client.py b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/client.py index 672068cda..4ee03b70b 100644 --- a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/client.py +++ b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,63 +20,34 @@ if TYPE_CHECKING: from .models import ( - CheckIngestedDocumentAclInput, CheckIngestedDocumentAclOutput, - CreateInvocationInput, CreateInvocationOutput, - CreateSessionInput, CreateSessionOutput, - DeleteAgentMemoryInput, DeleteAgentMemoryOutput, - DeleteSessionInput, DeleteSessionOutput, - EndSessionInput, EndSessionOutput, - GenerateQueryInput, GenerateQueryOutput, - GetAgentMemoryInput, GetAgentMemoryOutput, - GetDocumentContentInput, GetDocumentContentOutput, - GetExecutionFlowSnapshotInput, GetExecutionFlowSnapshotOutput, - GetFlowExecutionInput, GetFlowExecutionOutput, - GetIngestedDocumentAclInput, GetIngestedDocumentAclOutput, - GetInvocationStepInput, GetInvocationStepOutput, - GetSessionInput, GetSessionOutput, - ListFlowExecutionEventsInput, ListFlowExecutionEventsOutput, - ListFlowExecutionsInput, ListFlowExecutionsOutput, - ListInvocationStepsInput, ListInvocationStepsOutput, - ListInvocationsInput, ListInvocationsOutput, - ListSessionsInput, ListSessionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - PutInvocationStepInput, PutInvocationStepOutput, - RerankInput, RerankOutput, - RetrieveAndGenerateOperationInput, RetrieveAndGenerateOperationOutput, - RetrieveInput, RetrieveOutput, - StartFlowExecutionInput, StartFlowExecutionOutput, - StopFlowExecutionInput, StopFlowExecutionOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateSessionInput, UpdateSessionOutput, ) @@ -98,10 +69,25 @@ class BedrockAgentRuntimeClient(Client[BedrockAgentRuntimeConfig]): bases. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def check_ingested_document_acl( - self, input: CheckIngestedDocumentAclInput, plugins: list[Plugin] | None = None + self, + request: _models.CheckIngestedDocumentAclInput + | _models.CheckIngestedDocumentAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CheckIngestedDocumentAclOutput: ... + + @_overload + def check_ingested_document_acl( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CheckIngestedDocumentAclInputDict], ) -> CheckIngestedDocumentAclOutput: """ Checks whether a user has access to a specific document by verifying @@ -111,8 +97,6 @@ def check_ingested_document_acl( `bedrock:CheckIngestedDocumentAcl` permission. Args: - input: - An instance of `CheckIngestedDocumentAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -122,10 +106,33 @@ def check_ingested_document_acl( Returns: An instance of `CheckIngestedDocumentAclOutput`. """ - return self._invoke(input, _models.CHECK_INGESTED_DOCUMENT_ACL, [], plugins) + def check_ingested_document_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CheckIngestedDocumentAclOutput: + return self._invoke( + self._select_input(_models.CHECK_INGESTED_DOCUMENT_ACL, args, kwargs), + _models.CHECK_INGESTED_DOCUMENT_ACL, + [], + plugins, + ) + + @_overload def create_invocation( - self, input: CreateInvocationInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateInvocationInput | _models.CreateInvocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInvocationOutput: ... + + @_overload + def create_invocation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInvocationInputDict], ) -> CreateInvocationOutput: """ Creates a new invocation within a session. An invocation groups the @@ -143,8 +150,6 @@ def create_invocation( - [GetSession](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html) Args: - input: - An instance of `CreateInvocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -154,12 +159,33 @@ def create_invocation( Returns: An instance of `CreateInvocationOutput`. """ - return self._invoke(input, _models.CREATE_INVOCATION, [], plugins) + def create_invocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInvocationOutput: + return self._invoke( + self._select_input(_models.CREATE_INVOCATION, args, kwargs), + _models.CREATE_INVOCATION, + [], + plugins, + ) + + @_overload def create_session( self, - input: CreateSessionInput | None = None, + request: _models.CreateSessionInput | _models.CreateSessionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateSessionOutput: ... + + @_overload + def create_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSessionInputDict], ) -> CreateSessionOutput: """ Creates a session to temporarily store conversations for generative AI @@ -194,8 +220,6 @@ def create_session( - [DeleteSession](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_DeleteSession.html) Args: - input: - An instance of `CreateSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -205,17 +229,38 @@ def create_session( Returns: An instance of `CreateSessionOutput`. """ - return self._invoke(input, _models.CREATE_SESSION, [], plugins) + def create_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSessionOutput: + return self._invoke( + self._select_input(_models.CREATE_SESSION, args, kwargs), + _models.CREATE_SESSION, + [], + plugins, + ) + + @_overload + def delete_agent_memory( + self, + request: _models.DeleteAgentMemoryInput | _models.DeleteAgentMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentMemoryOutput: ... + + @_overload def delete_agent_memory( - self, input: DeleteAgentMemoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentMemoryInputDict], ) -> DeleteAgentMemoryOutput: """ Deletes memory from the specified memory identifier. Args: - input: - An instance of `DeleteAgentMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -225,10 +270,33 @@ def delete_agent_memory( Returns: An instance of `DeleteAgentMemoryOutput`. """ - return self._invoke(input, _models.DELETE_AGENT_MEMORY, [], plugins) + def delete_agent_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentMemoryOutput: + return self._invoke( + self._select_input(_models.DELETE_AGENT_MEMORY, args, kwargs), + _models.DELETE_AGENT_MEMORY, + [], + plugins, + ) + + @_overload def delete_session( - self, input: DeleteSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSessionInput | _models.DeleteSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSessionOutput: ... + + @_overload + def delete_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSessionInputDict], ) -> DeleteSessionOutput: """ Deletes a session that you ended. You can't delete a session with an @@ -240,8 +308,6 @@ def delete_session( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `DeleteSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -251,10 +317,33 @@ def delete_session( Returns: An instance of `DeleteSessionOutput`. """ - return self._invoke(input, _models.DELETE_SESSION, [], plugins) + def delete_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSessionOutput: + return self._invoke( + self._select_input(_models.DELETE_SESSION, args, kwargs), + _models.DELETE_SESSION, + [], + plugins, + ) + + @_overload def end_session( - self, input: EndSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.EndSessionInput | _models.EndSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EndSessionOutput: ... + + @_overload + def end_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EndSessionInputDict], ) -> EndSessionOutput: """ Ends the session. After you end a session, you can still access its @@ -265,8 +354,6 @@ def end_session( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `EndSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -276,10 +363,33 @@ def end_session( Returns: An instance of `EndSessionOutput`. """ - return self._invoke(input, _models.END_SESSION, [], plugins) + def end_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EndSessionOutput: + return self._invoke( + self._select_input(_models.END_SESSION, args, kwargs), + _models.END_SESSION, + [], + plugins, + ) + + @_overload + def generate_query( + self, + request: _models.GenerateQueryInput | _models.GenerateQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateQueryOutput: ... + + @_overload def generate_query( - self, input: GenerateQueryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateQueryInputDict], ) -> GenerateQueryOutput: """ Generates an SQL query from a natural language query. For more @@ -288,8 +398,6 @@ def generate_query( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GenerateQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -299,17 +407,38 @@ def generate_query( Returns: An instance of `GenerateQueryOutput`. """ - return self._invoke(input, _models.GENERATE_QUERY, [], plugins) + def generate_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateQueryOutput: + return self._invoke( + self._select_input(_models.GENERATE_QUERY, args, kwargs), + _models.GENERATE_QUERY, + [], + plugins, + ) + + @_overload + def get_agent_memory( + self, + request: _models.GetAgentMemoryInput | _models.GetAgentMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentMemoryOutput: ... + + @_overload def get_agent_memory( - self, input: GetAgentMemoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentMemoryInputDict], ) -> GetAgentMemoryOutput: """ Gets the sessions stored in the memory of the agent. Args: - input: - An instance of `GetAgentMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -319,10 +448,33 @@ def get_agent_memory( Returns: An instance of `GetAgentMemoryOutput`. """ - return self._invoke(input, _models.GET_AGENT_MEMORY, [], plugins) + def get_agent_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentMemoryOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_MEMORY, args, kwargs), + _models.GET_AGENT_MEMORY, + [], + plugins, + ) + + @_overload def get_document_content( - self, input: GetDocumentContentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDocumentContentInput | _models.GetDocumentContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentContentOutput: ... + + @_overload + def get_document_content( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentContentInputDict], ) -> GetDocumentContentOutput: """ Retrieves the content of an ingested document from a knowledge base, or @@ -331,8 +483,6 @@ def get_document_content( `Retrieve` result. Args: - input: - An instance of `GetDocumentContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -342,10 +492,34 @@ def get_document_content( Returns: An instance of `GetDocumentContentOutput`. """ - return self._invoke(input, _models.GET_DOCUMENT_CONTENT, [], plugins) + def get_document_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentContentOutput: + return self._invoke( + self._select_input(_models.GET_DOCUMENT_CONTENT, args, kwargs), + _models.GET_DOCUMENT_CONTENT, + [], + plugins, + ) + + @_overload def get_execution_flow_snapshot( - self, input: GetExecutionFlowSnapshotInput, plugins: list[Plugin] | None = None + self, + request: _models.GetExecutionFlowSnapshotInput + | _models.GetExecutionFlowSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetExecutionFlowSnapshotOutput: ... + + @_overload + def get_execution_flow_snapshot( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetExecutionFlowSnapshotInputDict], ) -> GetExecutionFlowSnapshotOutput: """ Retrieves the flow definition snapshot used for a flow execution. The @@ -359,8 +533,6 @@ def get_execution_flow_snapshot( to change. Args: - input: - An instance of `GetExecutionFlowSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -370,18 +542,39 @@ def get_execution_flow_snapshot( Returns: An instance of `GetExecutionFlowSnapshotOutput`. """ - return self._invoke(input, _models.GET_EXECUTION_FLOW_SNAPSHOT, [], plugins) + def get_execution_flow_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetExecutionFlowSnapshotOutput: + return self._invoke( + self._select_input(_models.GET_EXECUTION_FLOW_SNAPSHOT, args, kwargs), + _models.GET_EXECUTION_FLOW_SNAPSHOT, + [], + plugins, + ) + + @_overload + def get_flow_execution( + self, + request: _models.GetFlowExecutionInput | _models.GetFlowExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowExecutionOutput: ... + + @_overload def get_flow_execution( - self, input: GetFlowExecutionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowExecutionInputDict], ) -> GetFlowExecutionOutput: """ Retrieves details about a specific flow execution, including its status, start and end times, and any errors that occurred during execution. Args: - input: - An instance of `GetFlowExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -391,10 +584,34 @@ def get_flow_execution( Returns: An instance of `GetFlowExecutionOutput`. """ - return self._invoke(input, _models.GET_FLOW_EXECUTION, [], plugins) + def get_flow_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowExecutionOutput: + return self._invoke( + self._select_input(_models.GET_FLOW_EXECUTION, args, kwargs), + _models.GET_FLOW_EXECUTION, + [], + plugins, + ) + + @_overload def get_ingested_document_acl( - self, input: GetIngestedDocumentAclInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIngestedDocumentAclInput + | _models.GetIngestedDocumentAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIngestedDocumentAclOutput: ... + + @_overload + def get_ingested_document_acl( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIngestedDocumentAclInputDict], ) -> GetIngestedDocumentAclOutput: """ Retrieves the ingested access control list (ACL) for a specific document @@ -404,8 +621,6 @@ def get_ingested_document_acl( `bedrock:GetIngestedDocumentAcl` permission. Args: - input: - An instance of `GetIngestedDocumentAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -415,10 +630,33 @@ def get_ingested_document_acl( Returns: An instance of `GetIngestedDocumentAclOutput`. """ - return self._invoke(input, _models.GET_INGESTED_DOCUMENT_ACL, [], plugins) + def get_ingested_document_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIngestedDocumentAclOutput: + return self._invoke( + self._select_input(_models.GET_INGESTED_DOCUMENT_ACL, args, kwargs), + _models.GET_INGESTED_DOCUMENT_ACL, + [], + plugins, + ) + + @_overload + def get_invocation_step( + self, + request: _models.GetInvocationStepInput | _models.GetInvocationStepInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvocationStepOutput: ... + + @_overload def get_invocation_step( - self, input: GetInvocationStepInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvocationStepInputDict], ) -> GetInvocationStepOutput: """ Retrieves the details of a specific invocation step within an invocation @@ -427,8 +665,6 @@ def get_invocation_step( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `GetInvocationStepInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -438,10 +674,33 @@ def get_invocation_step( Returns: An instance of `GetInvocationStepOutput`. """ - return self._invoke(input, _models.GET_INVOCATION_STEP, [], plugins) + def get_invocation_step( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvocationStepOutput: + return self._invoke( + self._select_input(_models.GET_INVOCATION_STEP, args, kwargs), + _models.GET_INVOCATION_STEP, + [], + plugins, + ) + + @_overload def get_session( - self, input: GetSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSessionInput | _models.GetSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSessionOutput: ... + + @_overload + def get_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSessionInputDict], ) -> GetSessionOutput: """ Retrieves details about a specific session. For more information about @@ -450,8 +709,6 @@ def get_session( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `GetSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -461,10 +718,34 @@ def get_session( Returns: An instance of `GetSessionOutput`. """ - return self._invoke(input, _models.GET_SESSION, [], plugins) + def get_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSessionOutput: + return self._invoke( + self._select_input(_models.GET_SESSION, args, kwargs), + _models.GET_SESSION, + [], + plugins, + ) + + @_overload + def list_flow_execution_events( + self, + request: _models.ListFlowExecutionEventsInput + | _models.ListFlowExecutionEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowExecutionEventsOutput: ... + + @_overload def list_flow_execution_events( - self, input: ListFlowExecutionEventsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowExecutionEventsInputDict], ) -> ListFlowExecutionEventsOutput: """ Lists events that occurred during a flow execution. Events provide @@ -477,8 +758,6 @@ def list_flow_execution_events( to change. Args: - input: - An instance of `ListFlowExecutionEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -488,10 +767,33 @@ def list_flow_execution_events( Returns: An instance of `ListFlowExecutionEventsOutput`. """ - return self._invoke(input, _models.LIST_FLOW_EXECUTION_EVENTS, [], plugins) + def list_flow_execution_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowExecutionEventsOutput: + return self._invoke( + self._select_input(_models.LIST_FLOW_EXECUTION_EVENTS, args, kwargs), + _models.LIST_FLOW_EXECUTION_EVENTS, + [], + plugins, + ) + + @_overload + def list_flow_executions( + self, + request: _models.ListFlowExecutionsInput | _models.ListFlowExecutionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowExecutionsOutput: ... + + @_overload def list_flow_executions( - self, input: ListFlowExecutionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowExecutionsInputDict], ) -> ListFlowExecutionsOutput: """ Lists all executions of a flow. Results can be paginated and include @@ -503,8 +805,6 @@ def list_flow_executions( to change. Args: - input: - An instance of `ListFlowExecutionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -514,10 +814,33 @@ def list_flow_executions( Returns: An instance of `ListFlowExecutionsOutput`. """ - return self._invoke(input, _models.LIST_FLOW_EXECUTIONS, [], plugins) + def list_flow_executions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowExecutionsOutput: + return self._invoke( + self._select_input(_models.LIST_FLOW_EXECUTIONS, args, kwargs), + _models.LIST_FLOW_EXECUTIONS, + [], + plugins, + ) + + @_overload def list_invocations( - self, input: ListInvocationsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListInvocationsInput | _models.ListInvocationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvocationsOutput: ... + + @_overload + def list_invocations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvocationsInputDict], ) -> ListInvocationsOutput: """ Lists all invocations associated with a specific session. For more @@ -526,8 +849,6 @@ def list_invocations( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `ListInvocationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -537,10 +858,34 @@ def list_invocations( Returns: An instance of `ListInvocationsOutput`. """ - return self._invoke(input, _models.LIST_INVOCATIONS, [], plugins) + def list_invocations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvocationsOutput: + return self._invoke( + self._select_input(_models.LIST_INVOCATIONS, args, kwargs), + _models.LIST_INVOCATIONS, + [], + plugins, + ) + + @_overload + def list_invocation_steps( + self, + request: _models.ListInvocationStepsInput + | _models.ListInvocationStepsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvocationStepsOutput: ... + + @_overload def list_invocation_steps( - self, input: ListInvocationStepsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvocationStepsInputDict], ) -> ListInvocationStepsOutput: """ Lists all invocation steps associated with a session and optionally, an @@ -549,8 +894,6 @@ def list_invocation_steps( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `ListInvocationStepsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -560,12 +903,33 @@ def list_invocation_steps( Returns: An instance of `ListInvocationStepsOutput`. """ - return self._invoke(input, _models.LIST_INVOCATION_STEPS, [], plugins) + def list_invocation_steps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvocationStepsOutput: + return self._invoke( + self._select_input(_models.LIST_INVOCATION_STEPS, args, kwargs), + _models.LIST_INVOCATION_STEPS, + [], + plugins, + ) + + @_overload def list_sessions( self, - input: ListSessionsInput | None = None, + request: _models.ListSessionsInput | _models.ListSessionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListSessionsOutput: ... + + @_overload + def list_sessions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSessionsInputDict], ) -> ListSessionsOutput: """ Lists all sessions in your Amazon Web Services account. For more @@ -574,8 +938,6 @@ def list_sessions( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `ListSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -585,17 +947,39 @@ def list_sessions( Returns: An instance of `ListSessionsOutput`. """ - return self._invoke(input, _models.LIST_SESSIONS, [], plugins) + def list_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSessionsOutput: + return self._invoke( + self._select_input(_models.LIST_SESSIONS, args, kwargs), + _models.LIST_SESSIONS, + [], + plugins, + ) + + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List all the tags for the resource you specify. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -605,10 +989,33 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def put_invocation_step( + self, + request: _models.PutInvocationStepInput | _models.PutInvocationStepInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutInvocationStepOutput: ... + + @_overload def put_invocation_step( - self, input: PutInvocationStepInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutInvocationStepInputDict], ) -> PutInvocationStepOutput: """ Add an invocation step to an invocation in a session. An invocation step @@ -628,8 +1035,6 @@ def put_invocation_step( - [ListSessions](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html) Args: - input: - An instance of `PutInvocationStepInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -639,10 +1044,33 @@ def put_invocation_step( Returns: An instance of `PutInvocationStepOutput`. """ - return self._invoke(input, _models.PUT_INVOCATION_STEP, [], plugins) + def put_invocation_step( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutInvocationStepOutput: + return self._invoke( + self._select_input(_models.PUT_INVOCATION_STEP, args, kwargs), + _models.PUT_INVOCATION_STEP, + [], + plugins, + ) + + @_overload + def rerank( + self, + request: _models.RerankInput | _models.RerankInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RerankOutput: ... + + @_overload def rerank( - self, input: RerankInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RerankInputDict], ) -> RerankOutput: """ Reranks the relevance of sources based on queries. For more information, @@ -650,8 +1078,6 @@ def rerank( model](https://docs.aws.amazon.com/bedrock/latest/userguide/rerank.html). Args: - input: - An instance of `RerankInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -661,17 +1087,38 @@ def rerank( Returns: An instance of `RerankOutput`. """ - return self._invoke(input, _models.RERANK, [], plugins) + def rerank( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RerankOutput: + return self._invoke( + self._select_input(_models.RERANK, args, kwargs), + _models.RERANK, + [], + plugins, + ) + + @_overload def retrieve( - self, input: RetrieveInput, plugins: list[Plugin] | None = None + self, + request: _models.RetrieveInput | _models.RetrieveInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RetrieveOutput: ... + + @_overload + def retrieve( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetrieveInputDict], ) -> RetrieveOutput: """ Queries a knowledge base and retrieves information from it. Args: - input: - An instance of `RetrieveInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -681,12 +1128,34 @@ def retrieve( Returns: An instance of `RetrieveOutput`. """ - return self._invoke(input, _models.RETRIEVE, [], plugins) + def retrieve( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RetrieveOutput: + return self._invoke( + self._select_input(_models.RETRIEVE, args, kwargs), + _models.RETRIEVE, + [], + plugins, + ) + + @_overload def retrieve_and_generate( self, - input: RetrieveAndGenerateOperationInput, + request: _models.RetrieveAndGenerateOperationInput + | _models.RetrieveAndGenerateOperationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RetrieveAndGenerateOperationOutput: ... + + @_overload + def retrieve_and_generate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetrieveAndGenerateOperationInputDict], ) -> RetrieveAndGenerateOperationOutput: """ Queries a knowledge base and generates responses based on the retrieved @@ -702,8 +1171,6 @@ def retrieve_and_generate( with managed knowledge bases. Args: - input: - An instance of `RetrieveAndGenerateOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -713,10 +1180,33 @@ def retrieve_and_generate( Returns: An instance of `RetrieveAndGenerateOperationOutput`. """ - return self._invoke(input, _models.RETRIEVE_AND_GENERATE, [], plugins) + def retrieve_and_generate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RetrieveAndGenerateOperationOutput: + return self._invoke( + self._select_input(_models.RETRIEVE_AND_GENERATE, args, kwargs), + _models.RETRIEVE_AND_GENERATE, + [], + plugins, + ) + + @_overload + def start_flow_execution( + self, + request: _models.StartFlowExecutionInput | _models.StartFlowExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartFlowExecutionOutput: ... + + @_overload def start_flow_execution( - self, input: StartFlowExecutionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartFlowExecutionInputDict], ) -> StartFlowExecutionOutput: """ Starts an execution of an Amazon Bedrock flow. Unlike flows that run @@ -732,8 +1222,6 @@ def start_flow_execution( to change. Args: - input: - An instance of `StartFlowExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -743,10 +1231,33 @@ def start_flow_execution( Returns: An instance of `StartFlowExecutionOutput`. """ - return self._invoke(input, _models.START_FLOW_EXECUTION, [], plugins) + def start_flow_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartFlowExecutionOutput: + return self._invoke( + self._select_input(_models.START_FLOW_EXECUTION, args, kwargs), + _models.START_FLOW_EXECUTION, + [], + plugins, + ) + + @_overload def stop_flow_execution( - self, input: StopFlowExecutionInput, plugins: list[Plugin] | None = None + self, + request: _models.StopFlowExecutionInput | _models.StopFlowExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopFlowExecutionOutput: ... + + @_overload + def stop_flow_execution( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopFlowExecutionInputDict], ) -> StopFlowExecutionOutput: """ Stops an Amazon Bedrock flow's execution. This operation prevents @@ -754,8 +1265,6 @@ def stop_flow_execution( `Aborted`. Args: - input: - An instance of `StopFlowExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -765,10 +1274,33 @@ def stop_flow_execution( Returns: An instance of `StopFlowExecutionOutput`. """ - return self._invoke(input, _models.STOP_FLOW_EXECUTION, [], plugins) + def stop_flow_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopFlowExecutionOutput: + return self._invoke( + self._select_input(_models.STOP_FLOW_EXECUTION, args, kwargs), + _models.STOP_FLOW_EXECUTION, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associate tags with a resource. For more information, see [Tagging @@ -776,8 +1308,6 @@ def tag_resource( in the Amazon Bedrock User Guide. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -787,17 +1317,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -807,10 +1358,33 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_session( + self, + request: _models.UpdateSessionInput | _models.UpdateSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSessionOutput: ... + + @_overload def update_session( - self, input: UpdateSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSessionInputDict], ) -> UpdateSessionOutput: """ Updates the metadata or encryption settings of a session. For more @@ -819,8 +1393,6 @@ def update_session( sessions](https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html). Args: - input: - An instance of `UpdateSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -830,7 +1402,16 @@ def update_session( Returns: An instance of `UpdateSessionOutput`. """ - return self._invoke(input, _models.UPDATE_SESSION, [], plugins) + + def update_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSessionOutput: + return self._invoke( + self._select_input(_models.UPDATE_SESSION, args, kwargs), + _models.UPDATE_SESSION, + [], + plugins, + ) def _new_config(self) -> BedrockAgentRuntimeConfig: return BedrockAgentRuntimeConfig.resolve() diff --git a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/models.pyi b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/models.pyi index 2e93afffe..f707750c0 100644 --- a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/models.pyi +++ b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/models.pyi @@ -14,11 +14,15 @@ from ._private.models_0 import ( ActionGroupExecutorUnknown as ActionGroupExecutorUnknown, ActionGroupExecutor as ActionGroupExecutor, _ActionGroupExecutorDeserializer as _ActionGroupExecutorDeserializer, + ActionGroupExecutorLambdaDict as ActionGroupExecutorLambdaDict, + ActionGroupExecutorCustomControlDict as ActionGroupExecutorCustomControlDict, + ActionGroupExecutorDict as ActionGroupExecutorDict, ActionGroupInvocationInput as ActionGroupInvocationInput, ActionGroupInvocationOutput as ActionGroupInvocationOutput, ActionGroupSignature as ActionGroupSignature, ActionInvocationType as ActionInvocationType, AgentActionGroup as AgentActionGroup, + AgentActionGroupDict as AgentActionGroupDict, AgentCollaboration as AgentCollaboration, AgentCollaboratorInputPayload as AgentCollaboratorInputPayload, AgentCollaboratorInvocationInput as AgentCollaboratorInvocationInput, @@ -28,29 +32,40 @@ from ._private.models_0 import ( AgenticRetrieveActionDetails as AgenticRetrieveActionDetails, AgenticRetrieveAppliedInstruction as AgenticRetrieveAppliedInstruction, AgenticRetrieveBedrockGuardrailConfiguration as AgenticRetrieveBedrockGuardrailConfiguration, + AgenticRetrieveBedrockGuardrailConfigurationDict as AgenticRetrieveBedrockGuardrailConfigurationDict, AgenticRetrieveBedrockRerankingConfiguration as AgenticRetrieveBedrockRerankingConfiguration, + AgenticRetrieveBedrockRerankingConfigurationDict as AgenticRetrieveBedrockRerankingConfigurationDict, AgenticRetrieveBedrockRerankingModelConfiguration as AgenticRetrieveBedrockRerankingModelConfiguration, + AgenticRetrieveBedrockRerankingModelConfigurationDict as AgenticRetrieveBedrockRerankingModelConfigurationDict, AgenticRetrieveCitation as AgenticRetrieveCitation, AgenticRetrieveCitationReference as AgenticRetrieveCitationReference, AgenticRetrieveCodeExecutionDetails as AgenticRetrieveCodeExecutionDetails, AgenticRetrieveCodeExecutionDocument as AgenticRetrieveCodeExecutionDocument, AgenticRetrieveConfiguration as AgenticRetrieveConfiguration, + AgenticRetrieveConfigurationDict as AgenticRetrieveConfigurationDict, AgenticRetrieveFailure as AgenticRetrieveFailure, AgenticRetrieveFullDocExpansionDetails as AgenticRetrieveFullDocExpansionDetails, AgenticRetrieveGeneratedResponse as AgenticRetrieveGeneratedResponse, AgenticRetrieveGuardrailWarning as AgenticRetrieveGuardrailWarning, AgenticRetrieveInstructionConfiguration as AgenticRetrieveInstructionConfiguration, + AgenticRetrieveInstructionConfigurationDict as AgenticRetrieveInstructionConfigurationDict, AgenticRetrieveMemoryConfiguration as AgenticRetrieveMemoryConfiguration, + AgenticRetrieveMemoryConfigurationDict as AgenticRetrieveMemoryConfigurationDict, AgenticRetrieveMemoryMetadataFilter as AgenticRetrieveMemoryMetadataFilter, + AgenticRetrieveMemoryMetadataFilterDict as AgenticRetrieveMemoryMetadataFilterDict, AgenticRetrieveMemoryMetadataFilterLeftMetadataKey as AgenticRetrieveMemoryMetadataFilterLeftMetadataKey, AgenticRetrieveMemoryMetadataFilterLeftUnknown as AgenticRetrieveMemoryMetadataFilterLeftUnknown, AgenticRetrieveMemoryMetadataFilterLeft as AgenticRetrieveMemoryMetadataFilterLeft, _AgenticRetrieveMemoryMetadataFilterLeftDeserializer as _AgenticRetrieveMemoryMetadataFilterLeftDeserializer, + AgenticRetrieveMemoryMetadataFilterLeftMetadataKeyDict as AgenticRetrieveMemoryMetadataFilterLeftMetadataKeyDict, + AgenticRetrieveMemoryMetadataFilterLeftDict as AgenticRetrieveMemoryMetadataFilterLeftDict, AgenticRetrieveMemoryMetadataFilterOperator as AgenticRetrieveMemoryMetadataFilterOperator, AgenticRetrieveMemoryMetadataFilterRightMetadataValue as AgenticRetrieveMemoryMetadataFilterRightMetadataValue, AgenticRetrieveMemoryMetadataFilterRightUnknown as AgenticRetrieveMemoryMetadataFilterRightUnknown, AgenticRetrieveMemoryMetadataFilterRight as AgenticRetrieveMemoryMetadataFilterRight, _AgenticRetrieveMemoryMetadataFilterRightDeserializer as _AgenticRetrieveMemoryMetadataFilterRightDeserializer, + AgenticRetrieveMemoryMetadataFilterRightMetadataValueDict as AgenticRetrieveMemoryMetadataFilterRightMetadataValueDict, + AgenticRetrieveMemoryMetadataFilterRightDict as AgenticRetrieveMemoryMetadataFilterRightDict, AgenticRetrieveMemoryMetadataValueStringValue as AgenticRetrieveMemoryMetadataValueStringValue, AgenticRetrieveMemoryMetadataValueNumberValue as AgenticRetrieveMemoryMetadataValueNumberValue, AgenticRetrieveMemoryMetadataValueStringListValue as AgenticRetrieveMemoryMetadataValueStringListValue, @@ -58,15 +73,27 @@ from ._private.models_0 import ( AgenticRetrieveMemoryMetadataValueUnknown as AgenticRetrieveMemoryMetadataValueUnknown, AgenticRetrieveMemoryMetadataValue as AgenticRetrieveMemoryMetadataValue, _AgenticRetrieveMemoryMetadataValueDeserializer as _AgenticRetrieveMemoryMetadataValueDeserializer, + AgenticRetrieveMemoryMetadataValueStringValueDict as AgenticRetrieveMemoryMetadataValueStringValueDict, + AgenticRetrieveMemoryMetadataValueNumberValueDict as AgenticRetrieveMemoryMetadataValueNumberValueDict, + AgenticRetrieveMemoryMetadataValueStringListValueDict as AgenticRetrieveMemoryMetadataValueStringListValueDict, + AgenticRetrieveMemoryMetadataValueDateTimeValueDict as AgenticRetrieveMemoryMetadataValueDateTimeValueDict, + AgenticRetrieveMemoryMetadataValueDict as AgenticRetrieveMemoryMetadataValueDict, AgenticRetrieveMemoryPersistenceMode as AgenticRetrieveMemoryPersistenceMode, AgenticRetrieveMemoryRetrievalConfig as AgenticRetrieveMemoryRetrievalConfig, + AgenticRetrieveMemoryRetrievalConfigDict as AgenticRetrieveMemoryRetrievalConfigDict, AgenticRetrieveMemoryRetrieveDetails as AgenticRetrieveMemoryRetrieveDetails, AgenticRetrieveMemorySessionBinding as AgenticRetrieveMemorySessionBinding, + AgenticRetrieveMemorySessionBindingDict as AgenticRetrieveMemorySessionBindingDict, AgenticRetrieveMessage as AgenticRetrieveMessage, + AgenticRetrieveMessageDict as AgenticRetrieveMessageDict, AgenticRetrieveMessageContent as AgenticRetrieveMessageContent, + AgenticRetrieveMessageContentDict as AgenticRetrieveMessageContentDict, AgenticRetrievePolicyConfiguration as AgenticRetrievePolicyConfiguration, + AgenticRetrievePolicyConfigurationDict as AgenticRetrievePolicyConfigurationDict, AgenticRetriever as AgenticRetriever, + AgenticRetrieverDict as AgenticRetrieverDict, AgenticRetrieveRerankingConfiguration as AgenticRetrieveRerankingConfiguration, + AgenticRetrieveRerankingConfigurationDict as AgenticRetrieveRerankingConfigurationDict, AgenticRetrieveRerankingConfigurationType as AgenticRetrieveRerankingConfigurationType, AgenticRetrieveRerankingModelType as AgenticRetrieveRerankingModelType, AgenticRetrieveResponseEvent as AgenticRetrieveResponseEvent, @@ -77,6 +104,7 @@ from ._private.models_0 import ( AgenticRetrieveStatus as AgenticRetrieveStatus, AgenticRetrieveStep as AgenticRetrieveStep, AgenticRetrieveStreamInput as AgenticRetrieveStreamInput, + AgenticRetrieveStreamInputDict as AgenticRetrieveStreamInputDict, AgenticRetrieveStreamOutput as AgenticRetrieveStreamOutput, AgenticRetrieveStreamResponseOutputResult as AgenticRetrieveStreamResponseOutputResult, AgenticRetrieveStreamResponseOutputTraceEvent as AgenticRetrieveStreamResponseOutputTraceEvent, @@ -108,39 +136,56 @@ from ._private.models_0 import ( ApiParameter as ApiParameter, ApiRequestBody as ApiRequestBody, ApiResult as ApiResult, + ApiResultDict as ApiResultDict, APISchemaS3 as APISchemaS3, APISchemaPayload as APISchemaPayload, APISchemaUnknown as APISchemaUnknown, APISchema as APISchema, _APISchemaDeserializer as _APISchemaDeserializer, + APISchemaS3Dict as APISchemaS3Dict, + APISchemaPayloadDict as APISchemaPayloadDict, + APISchemaDict as APISchemaDict, AttributeType as AttributeType, Attribution as Attribution, AudioSegment as AudioSegment, BadGatewayException as BadGatewayException, BedrockFoundationModelConfiguration as BedrockFoundationModelConfiguration, + BedrockFoundationModelConfigurationDict as BedrockFoundationModelConfigurationDict, BedrockFoundationModelModelConfiguration as BedrockFoundationModelModelConfiguration, + BedrockFoundationModelModelConfigurationDict as BedrockFoundationModelModelConfigurationDict, BedrockModelConfigurations as BedrockModelConfigurations, + BedrockModelConfigurationsDict as BedrockModelConfigurationsDict, BedrockRerankingConfiguration as BedrockRerankingConfiguration, + BedrockRerankingConfigurationDict as BedrockRerankingConfigurationDict, BedrockRerankingModelConfiguration as BedrockRerankingModelConfiguration, + BedrockRerankingModelConfigurationDict as BedrockRerankingModelConfigurationDict, BedrockSessionContentBlockText as BedrockSessionContentBlockText, BedrockSessionContentBlockImage as BedrockSessionContentBlockImage, BedrockSessionContentBlockUnknown as BedrockSessionContentBlockUnknown, BedrockSessionContentBlock as BedrockSessionContentBlock, _BedrockSessionContentBlockDeserializer as _BedrockSessionContentBlockDeserializer, + BedrockSessionContentBlockTextDict as BedrockSessionContentBlockTextDict, + BedrockSessionContentBlockImageDict as BedrockSessionContentBlockImageDict, + BedrockSessionContentBlockDict as BedrockSessionContentBlockDict, ByteContentDoc as ByteContentDoc, + ByteContentDocDict as ByteContentDocDict, ByteContentFile as ByteContentFile, + ByteContentFileDict as ByteContentFileDict, CallerAgentAliasArn as CallerAgentAliasArn, CallerUnknown as CallerUnknown, Caller as Caller, _CallerDeserializer as _CallerDeserializer, CheckIngestedDocumentAclInput as CheckIngestedDocumentAclInput, + CheckIngestedDocumentAclInputDict as CheckIngestedDocumentAclInputDict, CheckIngestedDocumentAclOutput as CheckIngestedDocumentAclOutput, Citation as Citation, CitationEvent as CitationEvent, CodeInterpreterInvocationInput as CodeInterpreterInvocationInput, CodeInterpreterInvocationOutput as CodeInterpreterInvocationOutput, Collaborator as Collaborator, + CollaboratorDict as CollaboratorDict, CollaboratorConfiguration as CollaboratorConfiguration, + CollaboratorConfigurationDict as CollaboratorConfigurationDict, ConditionResultEvent as ConditionResultEvent, ConfirmationState as ConfirmationState, ConflictException as ConflictException, @@ -148,21 +193,30 @@ from ._private.models_0 import ( ContentBlockUnknown as ContentBlockUnknown, ContentBlock as ContentBlock, _ContentBlockDeserializer as _ContentBlockDeserializer, + ContentBlockTextDict as ContentBlockTextDict, + ContentBlockDict as ContentBlockDict, ContentBody as ContentBody, + ContentBodyDict as ContentBodyDict, ConversationHistory as ConversationHistory, + ConversationHistoryDict as ConversationHistoryDict, ConversationRole as ConversationRole, CreateInvocationInput as CreateInvocationInput, + CreateInvocationInputDict as CreateInvocationInputDict, CreateInvocationOutput as CreateInvocationOutput, CreateSessionInput as CreateSessionInput, + CreateSessionInputDict as CreateSessionInputDict, CreateSessionOutput as CreateSessionOutput, CreationMode as CreationMode, CustomControlMethod as CustomControlMethod, CustomOrchestration as CustomOrchestration, + CustomOrchestrationDict as CustomOrchestrationDict, CustomOrchestrationTrace as CustomOrchestrationTrace, CustomOrchestrationTraceEvent as CustomOrchestrationTraceEvent, DeleteAgentMemoryInput as DeleteAgentMemoryInput, + DeleteAgentMemoryInputDict as DeleteAgentMemoryInputDict, DeleteAgentMemoryOutput as DeleteAgentMemoryOutput, DeleteSessionInput as DeleteSessionInput, + DeleteSessionInputDict as DeleteSessionInputDict, DeleteSessionOutput as DeleteSessionOutput, DependencyFailedException as DependencyFailedException, DocumentAcl as DocumentAcl, @@ -174,19 +228,26 @@ from ._private.models_0 import ( DocumentAclUser as DocumentAclUser, DocumentOutputFormat as DocumentOutputFormat, EndSessionInput as EndSessionInput, + EndSessionInputDict as EndSessionInputDict, EndSessionOutput as EndSessionOutput, ExecutionType as ExecutionType, ExternalSource as ExternalSource, + ExternalSourceDict as ExternalSourceDict, ExternalSourcesGenerationConfiguration as ExternalSourcesGenerationConfiguration, + ExternalSourcesGenerationConfigurationDict as ExternalSourcesGenerationConfigurationDict, ExternalSourcesRetrieveAndGenerateConfiguration as ExternalSourcesRetrieveAndGenerateConfiguration, + ExternalSourcesRetrieveAndGenerateConfigurationDict as ExternalSourcesRetrieveAndGenerateConfigurationDict, ExternalSourceType as ExternalSourceType, FailureTrace as FailureTrace, FieldForReranking as FieldForReranking, + FieldForRerankingDict as FieldForRerankingDict, FilePart as FilePart, FileSource as FileSource, + FileSourceDict as FileSourceDict, FileSourceType as FileSourceType, FileUseCase as FileUseCase, FilterAttribute as FilterAttribute, + FilterAttributeDict as FilterAttributeDict, FinalResponse as FinalResponse, FlowCompletionEvent as FlowCompletionEvent, FlowCompletionReason as FlowCompletionReason, @@ -217,10 +278,13 @@ from ._private.models_0 import ( FlowExecutionSummary as FlowExecutionSummary, FlowFailureEvent as FlowFailureEvent, FlowInput as FlowInput, + FlowInputDict as FlowInputDict, FlowInputContentDocument as FlowInputContentDocument, FlowInputContentUnknown as FlowInputContentUnknown, FlowInputContent as FlowInputContent, _FlowInputContentDeserializer as _FlowInputContentDeserializer, + FlowInputContentDocumentDict as FlowInputContentDocumentDict, + FlowInputContentDict as FlowInputContentDict, FlowInputField as FlowInputField, FlowMultiTurnInputContentDocument as FlowMultiTurnInputContentDocument, FlowMultiTurnInputContentUnknown as FlowMultiTurnInputContentUnknown, @@ -280,41 +344,57 @@ from ._private.models_0 import ( FlowTraceNodeOutputField as FlowTraceNodeOutputField, FlowTraceNodeOutputNext as FlowTraceNodeOutputNext, FoundationModelConfiguration as FoundationModelConfiguration, + FoundationModelConfigurationDict as FoundationModelConfigurationDict, FoundationModelConfigurationType as FoundationModelConfigurationType, FoundationModelType as FoundationModelType, FunctionDefinition as FunctionDefinition, + FunctionDefinitionDict as FunctionDefinitionDict, FunctionInvocationInput as FunctionInvocationInput, FunctionParameter as FunctionParameter, FunctionResult as FunctionResult, + FunctionResultDict as FunctionResultDict, FunctionSchemaFunctions as FunctionSchemaFunctions, FunctionSchemaUnknown as FunctionSchemaUnknown, FunctionSchema as FunctionSchema, _FunctionSchemaDeserializer as _FunctionSchemaDeserializer, + FunctionSchemaFunctionsDict as FunctionSchemaFunctionsDict, + FunctionSchemaDict as FunctionSchemaDict, GeneratedQuery as GeneratedQuery, GeneratedQueryType as GeneratedQueryType, GeneratedResponsePart as GeneratedResponsePart, GenerateQueryInput as GenerateQueryInput, + GenerateQueryInputDict as GenerateQueryInputDict, GenerateQueryOutput as GenerateQueryOutput, GenerationConfiguration as GenerationConfiguration, + GenerationConfigurationDict as GenerationConfigurationDict, GetAgentMemoryInput as GetAgentMemoryInput, + GetAgentMemoryInputDict as GetAgentMemoryInputDict, GetAgentMemoryOutput as GetAgentMemoryOutput, GetDocumentContentInput as GetDocumentContentInput, + GetDocumentContentInputDict as GetDocumentContentInputDict, GetDocumentContentOutput as GetDocumentContentOutput, GetExecutionFlowSnapshotInput as GetExecutionFlowSnapshotInput, + GetExecutionFlowSnapshotInputDict as GetExecutionFlowSnapshotInputDict, GetExecutionFlowSnapshotOutput as GetExecutionFlowSnapshotOutput, GetFlowExecutionInput as GetFlowExecutionInput, + GetFlowExecutionInputDict as GetFlowExecutionInputDict, GetFlowExecutionOutput as GetFlowExecutionOutput, GetIngestedDocumentAclInput as GetIngestedDocumentAclInput, + GetIngestedDocumentAclInputDict as GetIngestedDocumentAclInputDict, GetIngestedDocumentAclOutput as GetIngestedDocumentAclOutput, GetInvocationStepInput as GetInvocationStepInput, + GetInvocationStepInputDict as GetInvocationStepInputDict, GetInvocationStepOutput as GetInvocationStepOutput, GetSessionInput as GetSessionInput, + GetSessionInputDict as GetSessionInputDict, GetSessionOutput as GetSessionOutput, GuadrailAction as GuadrailAction, GuardrailAction as GuardrailAction, GuardrailAssessment as GuardrailAssessment, GuardrailConfiguration as GuardrailConfiguration, + GuardrailConfigurationDict as GuardrailConfigurationDict, GuardrailConfigurationWithArn as GuardrailConfigurationWithArn, + GuardrailConfigurationWithArnDict as GuardrailConfigurationWithArnDict, GuardrailContentFilter as GuardrailContentFilter, GuardrailContentFilterConfidence as GuardrailContentFilterConfidence, GuardrailContentFilterType as GuardrailContentFilterType, @@ -337,21 +417,31 @@ from ._private.models_0 import ( GuardrailWordPolicyAction as GuardrailWordPolicyAction, GuardrailWordPolicyAssessment as GuardrailWordPolicyAssessment, ImageBlock as ImageBlock, + ImageBlockDict as ImageBlockDict, ImageFormat as ImageFormat, ImageInput as ImageInput, + ImageInputDict as ImageInputDict, ImageInputFormat as ImageInputFormat, ImageInputSourceBytes as ImageInputSourceBytes, ImageInputSourceUnknown as ImageInputSourceUnknown, ImageInputSource as ImageInputSource, _ImageInputSourceDeserializer as _ImageInputSourceDeserializer, + ImageInputSourceBytesDict as ImageInputSourceBytesDict, + ImageInputSourceDict as ImageInputSourceDict, ImageSourceBytes as ImageSourceBytes, ImageSourceS3Location as ImageSourceS3Location, ImageSourceUnknown as ImageSourceUnknown, ImageSource as ImageSource, _ImageSourceDeserializer as _ImageSourceDeserializer, + ImageSourceBytesDict as ImageSourceBytesDict, + ImageSourceS3LocationDict as ImageSourceS3LocationDict, + ImageSourceDict as ImageSourceDict, ImplicitFilterConfiguration as ImplicitFilterConfiguration, + ImplicitFilterConfigurationDict as ImplicitFilterConfigurationDict, InferenceConfig as InferenceConfig, + InferenceConfigDict as InferenceConfigDict, InferenceConfiguration as InferenceConfiguration, + InferenceConfigurationDict as InferenceConfigurationDict, InlineAgentFilePart as InlineAgentFilePart, InlineAgentPayloadPart as InlineAgentPayloadPart, InlineAgentResponseStreamChunk as InlineAgentResponseStreamChunk, @@ -373,14 +463,20 @@ from ._private.models_0 import ( InlineAgentReturnControlPayload as InlineAgentReturnControlPayload, InlineAgentTracePart as InlineAgentTracePart, InlineBedrockModelConfigurations as InlineBedrockModelConfigurations, + InlineBedrockModelConfigurationsDict as InlineBedrockModelConfigurationsDict, InlineSessionState as InlineSessionState, + InlineSessionStateDict as InlineSessionStateDict, InputFile as InputFile, + InputFileDict as InputFileDict, InputImage as InputImage, + InputImageDict as InputImageDict, InputImageFormat as InputImageFormat, InputPromptTextPrompt as InputPromptTextPrompt, InputPromptUnknown as InputPromptUnknown, InputPrompt as InputPrompt, _InputPromptDeserializer as _InputPromptDeserializer, + InputPromptTextPromptDict as InputPromptTextPromptDict, + InputPromptDict as InputPromptDict, InputQueryType as InputQueryType, InternalServerException as InternalServerException, InvocationInput as InvocationInput, @@ -397,50 +493,77 @@ from ._private.models_1 import ( InvocationResultMemberUnknown as InvocationResultMemberUnknown, InvocationResultMember as InvocationResultMember, _InvocationResultMemberDeserializer as _InvocationResultMemberDeserializer, + InvocationResultMemberApiResultDict as InvocationResultMemberApiResultDict, + InvocationResultMemberFunctionResultDict as InvocationResultMemberFunctionResultDict, + InvocationResultMemberDict as InvocationResultMemberDict, InvocationStep as InvocationStep, InvocationStepPayloadContentBlocks as InvocationStepPayloadContentBlocks, InvocationStepPayloadUnknown as InvocationStepPayloadUnknown, InvocationStepPayload as InvocationStepPayload, _InvocationStepPayloadDeserializer as _InvocationStepPayloadDeserializer, + InvocationStepPayloadContentBlocksDict as InvocationStepPayloadContentBlocksDict, + InvocationStepPayloadDict as InvocationStepPayloadDict, InvocationStepSummary as InvocationStepSummary, InvocationSummary as InvocationSummary, InvocationType as InvocationType, InvokeAgentInput as InvokeAgentInput, + InvokeAgentInputDict as InvokeAgentInputDict, InvokeAgentOutput as InvokeAgentOutput, InvokeFlowInput as InvokeFlowInput, + InvokeFlowInputDict as InvokeFlowInputDict, InvokeFlowOutput as InvokeFlowOutput, InvokeInlineAgentInput as InvokeInlineAgentInput, + InvokeInlineAgentInputDict as InvokeInlineAgentInputDict, InvokeInlineAgentOutput as InvokeInlineAgentOutput, KnowledgeBase as KnowledgeBase, + KnowledgeBaseDict as KnowledgeBaseDict, KnowledgeBaseConfiguration as KnowledgeBaseConfiguration, + KnowledgeBaseConfigurationDict as KnowledgeBaseConfigurationDict, KnowledgeBaseLookupInput as KnowledgeBaseLookupInput, KnowledgeBaseLookupOutput as KnowledgeBaseLookupOutput, KnowledgeBaseQuery as KnowledgeBaseQuery, + KnowledgeBaseQueryDict as KnowledgeBaseQueryDict, KnowledgeBaseQueryType as KnowledgeBaseQueryType, KnowledgeBaseRetrievalConfiguration as KnowledgeBaseRetrievalConfiguration, + KnowledgeBaseRetrievalConfigurationDict as KnowledgeBaseRetrievalConfigurationDict, KnowledgeBaseRetrievalResult as KnowledgeBaseRetrievalResult, KnowledgeBaseRetrieveAndGenerateConfiguration as KnowledgeBaseRetrieveAndGenerateConfiguration, + KnowledgeBaseRetrieveAndGenerateConfigurationDict as KnowledgeBaseRetrieveAndGenerateConfigurationDict, KnowledgeBaseRetrieverConfiguration as KnowledgeBaseRetrieverConfiguration, + KnowledgeBaseRetrieverConfigurationDict as KnowledgeBaseRetrieverConfigurationDict, KnowledgeBaseVectorSearchConfiguration as KnowledgeBaseVectorSearchConfiguration, + KnowledgeBaseVectorSearchConfigurationDict as KnowledgeBaseVectorSearchConfigurationDict, ListFlowExecutionEventsInput as ListFlowExecutionEventsInput, + ListFlowExecutionEventsInputDict as ListFlowExecutionEventsInputDict, ListFlowExecutionEventsOutput as ListFlowExecutionEventsOutput, ListFlowExecutionsInput as ListFlowExecutionsInput, + ListFlowExecutionsInputDict as ListFlowExecutionsInputDict, ListFlowExecutionsOutput as ListFlowExecutionsOutput, ListInvocationsInput as ListInvocationsInput, + ListInvocationsInputDict as ListInvocationsInputDict, ListInvocationsOutput as ListInvocationsOutput, ListInvocationStepsInput as ListInvocationStepsInput, + ListInvocationStepsInputDict as ListInvocationStepsInputDict, ListInvocationStepsOutput as ListInvocationStepsOutput, ListSessionsInput as ListSessionsInput, + ListSessionsInputDict as ListSessionsInputDict, ListSessionsOutput as ListSessionsOutput, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, ManagedSearchBedrockRerankingConfiguration as ManagedSearchBedrockRerankingConfiguration, + ManagedSearchBedrockRerankingConfigurationDict as ManagedSearchBedrockRerankingConfigurationDict, ManagedSearchBedrockRerankingModelConfiguration as ManagedSearchBedrockRerankingModelConfiguration, + ManagedSearchBedrockRerankingModelConfigurationDict as ManagedSearchBedrockRerankingModelConfigurationDict, ManagedSearchConfiguration as ManagedSearchConfiguration, + ManagedSearchConfigurationDict as ManagedSearchConfigurationDict, ManagedSearchRerankingConfiguration as ManagedSearchRerankingConfiguration, + ManagedSearchRerankingConfigurationDict as ManagedSearchRerankingConfigurationDict, ManagedSearchRerankingConfigurationType as ManagedSearchRerankingConfigurationType, MantleFoundationModelConfiguration as MantleFoundationModelConfiguration, + MantleFoundationModelConfigurationDict as MantleFoundationModelConfigurationDict, MantleFoundationModelModelConfiguration as MantleFoundationModelModelConfiguration, + MantleFoundationModelModelConfigurationDict as MantleFoundationModelModelConfigurationDict, Memory_SessionSummary as Memory_SessionSummary, MemoryUnknown as MemoryUnknown, Memory as Memory, @@ -448,12 +571,16 @@ from ._private.models_1 import ( MemorySessionSummary as MemorySessionSummary, MemoryType as MemoryType, Message as Message, + MessageDict as MessageDict, Metadata as Metadata, MetadataAttributeSchema as MetadataAttributeSchema, + MetadataAttributeSchemaDict as MetadataAttributeSchemaDict, MetadataConfigurationForReranking as MetadataConfigurationForReranking, + MetadataConfigurationForRerankingDict as MetadataConfigurationForRerankingDict, ModelInvocationInput as ModelInvocationInput, ModelNotReadyException as ModelNotReadyException, ModelPerformanceConfiguration as ModelPerformanceConfiguration, + ModelPerformanceConfigurationDict as ModelPerformanceConfigurationDict, NodeActionEvent as NodeActionEvent, NodeDependencyEvent as NodeDependencyEvent, NodeErrorCode as NodeErrorCode, @@ -492,12 +619,16 @@ from ._private.models_1 import ( OptimizedPromptStream as OptimizedPromptStream, _OptimizedPromptStreamDeserializer as _OptimizedPromptStreamDeserializer, OptimizePromptInput as OptimizePromptInput, + OptimizePromptInputDict as OptimizePromptInputDict, OptimizePromptOutput as OptimizePromptOutput, OrchestrationConfiguration as OrchestrationConfiguration, + OrchestrationConfigurationDict as OrchestrationConfigurationDict, OrchestrationExecutorLambda as OrchestrationExecutorLambda, OrchestrationExecutorUnknown as OrchestrationExecutorUnknown, OrchestrationExecutor as OrchestrationExecutor, _OrchestrationExecutorDeserializer as _OrchestrationExecutorDeserializer, + OrchestrationExecutorLambdaDict as OrchestrationExecutorLambdaDict, + OrchestrationExecutorDict as OrchestrationExecutorDict, OrchestrationModelInvocationOutput as OrchestrationModelInvocationOutput, OrchestrationTraceRationale as OrchestrationTraceRationale, OrchestrationTraceInvocationInput as OrchestrationTraceInvocationInput, @@ -511,11 +642,13 @@ from ._private.models_1 import ( OutputFile as OutputFile, Parameter as Parameter, ParameterDetail as ParameterDetail, + ParameterDetailDict as ParameterDetailDict, ParameterType as ParameterType, PayloadPart as PayloadPart, PayloadType as PayloadType, PerformanceConfigLatency as PerformanceConfigLatency, PerformanceConfiguration as PerformanceConfiguration, + PerformanceConfigurationDict as PerformanceConfigurationDict, PostProcessingModelInvocationOutput as PostProcessingModelInvocationOutput, PostProcessingParsedResponse as PostProcessingParsedResponse, PostProcessingTraceModelInvocationInput as PostProcessingTraceModelInvocationInput, @@ -531,16 +664,23 @@ from ._private.models_1 import ( PreProcessingTrace as PreProcessingTrace, _PreProcessingTraceDeserializer as _PreProcessingTraceDeserializer, PromptConfiguration as PromptConfiguration, + PromptConfigurationDict as PromptConfigurationDict, PromptCreationConfigurations as PromptCreationConfigurations, + PromptCreationConfigurationsDict as PromptCreationConfigurationsDict, PromptOverrideConfiguration as PromptOverrideConfiguration, + PromptOverrideConfigurationDict as PromptOverrideConfigurationDict, PromptState as PromptState, PromptTemplate as PromptTemplate, + PromptTemplateDict as PromptTemplateDict, PromptType as PromptType, PropertyParameters as PropertyParameters, PutInvocationStepInput as PutInvocationStepInput, + PutInvocationStepInputDict as PutInvocationStepInputDict, PutInvocationStepOutput as PutInvocationStepOutput, QueryGenerationInput as QueryGenerationInput, + QueryGenerationInputDict as QueryGenerationInputDict, QueryTransformationConfiguration as QueryTransformationConfiguration, + QueryTransformationConfigurationDict as QueryTransformationConfigurationDict, QueryTransformationMode as QueryTransformationMode, QueryTransformationType as QueryTransformationType, Rationale as Rationale, @@ -556,8 +696,10 @@ from ._private.models_1 import ( RequestBody as RequestBody, RequireConfirmation as RequireConfirmation, RerankDocument as RerankDocument, + RerankDocumentDict as RerankDocumentDict, RerankDocumentType as RerankDocumentType, RerankingConfiguration as RerankingConfiguration, + RerankingConfigurationDict as RerankingConfigurationDict, RerankingConfigurationType as RerankingConfigurationType, RerankingMetadataSelectionMode as RerankingMetadataSelectionMode, RerankingMetadataSelectiveModeConfigurationFieldsToInclude as RerankingMetadataSelectiveModeConfigurationFieldsToInclude, @@ -565,15 +707,22 @@ from ._private.models_1 import ( RerankingMetadataSelectiveModeConfigurationUnknown as RerankingMetadataSelectiveModeConfigurationUnknown, RerankingMetadataSelectiveModeConfiguration as RerankingMetadataSelectiveModeConfiguration, _RerankingMetadataSelectiveModeConfigurationDeserializer as _RerankingMetadataSelectiveModeConfigurationDeserializer, + RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict as RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict, + RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict as RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict, + RerankingMetadataSelectiveModeConfigurationDict as RerankingMetadataSelectiveModeConfigurationDict, RerankingModelType as RerankingModelType, RerankInput as RerankInput, + RerankInputDict as RerankInputDict, RerankOutput as RerankOutput, RerankQuery as RerankQuery, + RerankQueryDict as RerankQueryDict, RerankQueryContentType as RerankQueryContentType, RerankResult as RerankResult, RerankSource as RerankSource, + RerankSourceDict as RerankSourceDict, RerankSourceType as RerankSourceType, RerankTextDocument as RerankTextDocument, + RerankTextDocumentDict as RerankTextDocumentDict, ResourceNotFoundException as ResourceNotFoundException, ResponseState as ResponseState, ResponseStreamChunk as ResponseStreamChunk, @@ -610,7 +759,22 @@ from ._private.models_1 import ( RetrievalFilterUnknown as RetrievalFilterUnknown, RetrievalFilter as RetrievalFilter, _RetrievalFilterDeserializer as _RetrievalFilterDeserializer, + RetrievalFilterEqualsDict as RetrievalFilterEqualsDict, + RetrievalFilterNotEqualsDict as RetrievalFilterNotEqualsDict, + RetrievalFilterGreaterThanDict as RetrievalFilterGreaterThanDict, + RetrievalFilterGreaterThanOrEqualsDict as RetrievalFilterGreaterThanOrEqualsDict, + RetrievalFilterLessThanDict as RetrievalFilterLessThanDict, + RetrievalFilterLessThanOrEqualsDict as RetrievalFilterLessThanOrEqualsDict, + RetrievalFilterInDict as RetrievalFilterInDict, + RetrievalFilterNotInDict as RetrievalFilterNotInDict, + RetrievalFilterStartsWithDict as RetrievalFilterStartsWithDict, + RetrievalFilterListContainsDict as RetrievalFilterListContainsDict, + RetrievalFilterStringContainsDict as RetrievalFilterStringContainsDict, + RetrievalFilterAndAllDict as RetrievalFilterAndAllDict, + RetrievalFilterOrAllDict as RetrievalFilterOrAllDict, + RetrievalFilterDict as RetrievalFilterDict, RetrievalOverrides as RetrievalOverrides, + RetrievalOverridesDict as RetrievalOverridesDict, RetrievalResultConfluenceLocation as RetrievalResultConfluenceLocation, RetrievalResultContent as RetrievalResultContent, RetrievalResultContentColumn as RetrievalResultContentColumn, @@ -628,13 +792,18 @@ from ._private.models_1 import ( RetrievalResultSqlLocation as RetrievalResultSqlLocation, RetrievalResultWebLocation as RetrievalResultWebLocation, RetrieveAndGenerateConfiguration as RetrieveAndGenerateConfiguration, + RetrieveAndGenerateConfigurationDict as RetrieveAndGenerateConfigurationDict, RetrieveAndGenerateInput as RetrieveAndGenerateInput, + RetrieveAndGenerateInputDict as RetrieveAndGenerateInputDict, RetrieveAndGenerateOperationInput as RetrieveAndGenerateOperationInput, + RetrieveAndGenerateOperationInputDict as RetrieveAndGenerateOperationInputDict, RetrieveAndGenerateOperationOutput as RetrieveAndGenerateOperationOutput, RetrieveAndGenerateOutput as RetrieveAndGenerateOutput, RetrieveAndGenerateOutputEvent as RetrieveAndGenerateOutputEvent, RetrieveAndGenerateSessionConfiguration as RetrieveAndGenerateSessionConfiguration, + RetrieveAndGenerateSessionConfigurationDict as RetrieveAndGenerateSessionConfigurationDict, RetrieveAndGenerateStreamInput as RetrieveAndGenerateStreamInput, + RetrieveAndGenerateStreamInputDict as RetrieveAndGenerateStreamInputDict, RetrieveAndGenerateStreamOutput as RetrieveAndGenerateStreamOutput, RetrieveAndGenerateStreamResponseOutputOutput as RetrieveAndGenerateStreamResponseOutputOutput, RetrieveAndGenerateStreamResponseOutputCitation as RetrieveAndGenerateStreamResponseOutputCitation, @@ -654,11 +823,14 @@ from ._private.models_1 import ( RetrieveAndGenerateType as RetrieveAndGenerateType, RetrievedReference as RetrievedReference, RetrieveInput as RetrieveInput, + RetrieveInputDict as RetrieveInputDict, RetrieveOutput as RetrieveOutput, RetrieverConfigurationKnowledgeBase as RetrieverConfigurationKnowledgeBase, RetrieverConfigurationUnknown as RetrieverConfigurationUnknown, RetrieverConfiguration as RetrieverConfiguration, _RetrieverConfigurationDeserializer as _RetrieverConfigurationDeserializer, + RetrieverConfigurationKnowledgeBaseDict as RetrieverConfigurationKnowledgeBaseDict, + RetrieverConfigurationDict as RetrieverConfigurationDict, ReturnControlPayload as ReturnControlPayload, ReturnControlResults as ReturnControlResults, RoutingClassifierModelInvocationOutput as RoutingClassifierModelInvocationOutput, @@ -670,30 +842,43 @@ from ._private.models_1 import ( RoutingClassifierTrace as RoutingClassifierTrace, _RoutingClassifierTraceDeserializer as _RoutingClassifierTraceDeserializer, S3Identifier as S3Identifier, + S3IdentifierDict as S3IdentifierDict, S3Location as S3Location, + S3LocationDict as S3LocationDict, S3ObjectDoc as S3ObjectDoc, + S3ObjectDocDict as S3ObjectDocDict, S3ObjectFile as S3ObjectFile, + S3ObjectFileDict as S3ObjectFileDict, SatisfiedCondition as SatisfiedCondition, SearchType as SearchType, ServiceQuotaExceededException as ServiceQuotaExceededException, SessionState as SessionState, + SessionStateDict as SessionStateDict, SessionStatus as SessionStatus, SessionSummary as SessionSummary, Source as Source, Span as Span, StartFlowExecutionInput as StartFlowExecutionInput, + StartFlowExecutionInputDict as StartFlowExecutionInputDict, StartFlowExecutionOutput as StartFlowExecutionOutput, StopFlowExecutionInput as StopFlowExecutionInput, + StopFlowExecutionInputDict as StopFlowExecutionInputDict, StopFlowExecutionOutput as StopFlowExecutionOutput, StreamingConfigurations as StreamingConfigurations, + StreamingConfigurationsDict as StreamingConfigurationsDict, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, TextInferenceConfig as TextInferenceConfig, + TextInferenceConfigDict as TextInferenceConfigDict, TextPrompt as TextPrompt, + TextPromptDict as TextPromptDict, TextResponsePart as TextResponsePart, TextToSqlConfiguration as TextToSqlConfiguration, + TextToSqlConfigurationDict as TextToSqlConfigurationDict, TextToSqlConfigurationType as TextToSqlConfigurationType, TextToSqlKnowledgeBaseConfiguration as TextToSqlKnowledgeBaseConfiguration, + TextToSqlKnowledgeBaseConfigurationDict as TextToSqlKnowledgeBaseConfigurationDict, ThrottlingException as ThrottlingException, TraceGuardrailTrace as TraceGuardrailTrace, TracePreProcessingTrace as TracePreProcessingTrace, @@ -711,17 +896,24 @@ from ._private.models_1 import ( _TraceElementsDeserializer as _TraceElementsDeserializer, TracePart as TracePart, TransformationConfiguration as TransformationConfiguration, + TransformationConfigurationDict as TransformationConfigurationDict, Type as Type, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateSessionInput as UpdateSessionInput, + UpdateSessionInputDict as UpdateSessionInputDict, UpdateSessionOutput as UpdateSessionOutput, Usage as Usage, UserContext as UserContext, + UserContextDict as UserContextDict, ValidationException as ValidationException, VectorSearchBedrockRerankingConfiguration as VectorSearchBedrockRerankingConfiguration, + VectorSearchBedrockRerankingConfigurationDict as VectorSearchBedrockRerankingConfigurationDict, VectorSearchBedrockRerankingModelConfiguration as VectorSearchBedrockRerankingModelConfiguration, + VectorSearchBedrockRerankingModelConfigurationDict as VectorSearchBedrockRerankingModelConfigurationDict, VectorSearchRerankingConfiguration as VectorSearchRerankingConfiguration, + VectorSearchRerankingConfigurationDict as VectorSearchRerankingConfigurationDict, VectorSearchRerankingConfigurationType as VectorSearchRerankingConfigurationType, VideoSegment as VideoSegment, ) diff --git a/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/py.typed b/clients/aws-sdk-bedrock-agent-runtime/src/aws_sdk_bedrock_agent_runtime/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-bedrock-agent-runtime/tests/_typecheck.py b/clients/aws-sdk-bedrock-agent-runtime/tests/_typecheck.py index 183f0a471..275d1f53c 100644 --- a/clients/aws-sdk-bedrock-agent-runtime/tests/_typecheck.py +++ b/clients/aws-sdk-bedrock-agent-runtime/tests/_typecheck.py @@ -2,10 +2,15 @@ from typing import Any +from aws_sdk_bedrock_agent_runtime.aio.client import AsyncBedrockAgentRuntimeClient +from aws_sdk_bedrock_agent_runtime.client import BedrockAgentRuntimeClient from aws_sdk_bedrock_agent_runtime.models import ( + APISchemaDict, + ActionGroupExecutorDict, ActionGroupInvocationInput, ActionGroupInvocationOutput, AgentActionGroup, + AgentActionGroupDict, AgentCollaboratorInputPayload, AgentCollaboratorInvocationInput, AgentCollaboratorInvocationOutput, @@ -14,54 +19,82 @@ AgenticRetrieveActionDetails, AgenticRetrieveAppliedInstruction, AgenticRetrieveBedrockGuardrailConfiguration, + AgenticRetrieveBedrockGuardrailConfigurationDict, AgenticRetrieveBedrockRerankingConfiguration, + AgenticRetrieveBedrockRerankingConfigurationDict, AgenticRetrieveBedrockRerankingModelConfiguration, + AgenticRetrieveBedrockRerankingModelConfigurationDict, AgenticRetrieveCitation, AgenticRetrieveCitationReference, AgenticRetrieveCodeExecutionDetails, AgenticRetrieveCodeExecutionDocument, AgenticRetrieveConfiguration, + AgenticRetrieveConfigurationDict, AgenticRetrieveFailure, AgenticRetrieveFullDocExpansionDetails, AgenticRetrieveGeneratedResponse, AgenticRetrieveGuardrailWarning, AgenticRetrieveInstructionConfiguration, + AgenticRetrieveInstructionConfigurationDict, AgenticRetrieveMemoryConfiguration, + AgenticRetrieveMemoryConfigurationDict, AgenticRetrieveMemoryMetadataFilter, + AgenticRetrieveMemoryMetadataFilterDict, + AgenticRetrieveMemoryMetadataFilterLeftDict, + AgenticRetrieveMemoryMetadataFilterRightDict, + AgenticRetrieveMemoryMetadataValueDict, AgenticRetrieveMemoryRetrievalConfig, + AgenticRetrieveMemoryRetrievalConfigDict, AgenticRetrieveMemoryRetrieveDetails, AgenticRetrieveMemorySessionBinding, + AgenticRetrieveMemorySessionBindingDict, AgenticRetrieveMessage, AgenticRetrieveMessageContent, + AgenticRetrieveMessageContentDict, + AgenticRetrieveMessageDict, AgenticRetrievePolicyConfiguration, + AgenticRetrievePolicyConfigurationDict, AgenticRetrieveRerankingConfiguration, + AgenticRetrieveRerankingConfigurationDict, AgenticRetrieveResponseEvent, AgenticRetrieveResultEvent, AgenticRetrieveResultItem, AgenticRetrieveSourceMetadata, AgenticRetrieveSourceRetriever, AgenticRetrieveStreamInput, + AgenticRetrieveStreamInputDict, AgenticRetrieveStreamOutput, AgenticRetrieveTraceEvent, AgenticRetrieveTraceEventAttributes, AgenticRetrieveTraceResultItem, AgenticRetrieveWarningMessage, AgenticRetriever, + AgenticRetrieverDict, AnalyzePromptEvent, ApiInvocationInput, ApiParameter, ApiRequestBody, ApiResult, + ApiResultDict, Attribution, AudioSegment, BedrockFoundationModelConfiguration, + BedrockFoundationModelConfigurationDict, BedrockFoundationModelModelConfiguration, + BedrockFoundationModelModelConfigurationDict, BedrockModelConfigurations, + BedrockModelConfigurationsDict, BedrockRerankingConfiguration, + BedrockRerankingConfigurationDict, BedrockRerankingModelConfiguration, + BedrockRerankingModelConfigurationDict, + BedrockSessionContentBlockDict, ByteContentDoc, + ByteContentDocDict, ByteContentFile, + ByteContentFileDict, CheckIngestedDocumentAclInput, + CheckIngestedDocumentAclInputDict, CheckIngestedDocumentAclOutput, Citation, CitationEvent, @@ -69,19 +102,29 @@ CodeInterpreterInvocationOutput, Collaborator, CollaboratorConfiguration, + CollaboratorConfigurationDict, + CollaboratorDict, ConditionResultEvent, + ContentBlockDict, ContentBody, + ContentBodyDict, ConversationHistory, + ConversationHistoryDict, CreateInvocationInput, + CreateInvocationInputDict, CreateInvocationOutput, CreateSessionInput, + CreateSessionInputDict, CreateSessionOutput, CustomOrchestration, + CustomOrchestrationDict, CustomOrchestrationTrace, CustomOrchestrationTraceEvent, DeleteAgentMemoryInput, + DeleteAgentMemoryInputDict, DeleteAgentMemoryOutput, DeleteSessionInput, + DeleteSessionInputDict, DeleteSessionOutput, DocumentAcl, DocumentAclCondition, @@ -89,15 +132,22 @@ DocumentAclMembership, DocumentAclUser, EndSessionInput, + EndSessionInputDict, EndSessionOutput, ExternalSource, + ExternalSourceDict, ExternalSourcesGenerationConfiguration, + ExternalSourcesGenerationConfigurationDict, ExternalSourcesRetrieveAndGenerateConfiguration, + ExternalSourcesRetrieveAndGenerateConfigurationDict, FailureTrace, FieldForReranking, + FieldForRerankingDict, FilePart, FileSource, + FileSourceDict, FilterAttribute, + FilterAttributeDict, FinalResponse, FlowCompletionEvent, FlowExecutionError, @@ -106,6 +156,8 @@ FlowExecutionSummary, FlowFailureEvent, FlowInput, + FlowInputContentDict, + FlowInputDict, FlowInputField, FlowMultiTurnInputRequestEvent, FlowOutputEvent, @@ -123,32 +175,47 @@ FlowTraceNodeOutputField, FlowTraceNodeOutputNext, FoundationModelConfiguration, + FoundationModelConfigurationDict, FunctionDefinition, + FunctionDefinitionDict, FunctionInvocationInput, FunctionParameter, FunctionResult, + FunctionResultDict, + FunctionSchemaDict, GenerateQueryInput, + GenerateQueryInputDict, GenerateQueryOutput, GeneratedQuery, GeneratedResponsePart, GenerationConfiguration, + GenerationConfigurationDict, GetAgentMemoryInput, + GetAgentMemoryInputDict, GetAgentMemoryOutput, GetDocumentContentInput, + GetDocumentContentInputDict, GetDocumentContentOutput, GetExecutionFlowSnapshotInput, + GetExecutionFlowSnapshotInputDict, GetExecutionFlowSnapshotOutput, GetFlowExecutionInput, + GetFlowExecutionInputDict, GetFlowExecutionOutput, GetIngestedDocumentAclInput, + GetIngestedDocumentAclInputDict, GetIngestedDocumentAclOutput, GetInvocationStepInput, + GetInvocationStepInputDict, GetInvocationStepOutput, GetSessionInput, + GetSessionInputDict, GetSessionOutput, GuardrailAssessment, GuardrailConfiguration, + GuardrailConfigurationDict, GuardrailConfigurationWithArn, + GuardrailConfigurationWithArnDict, GuardrailContentFilter, GuardrailContentPolicyAssessment, GuardrailCustomWord, @@ -162,63 +229,103 @@ GuardrailTrace, GuardrailWordPolicyAssessment, ImageBlock, + ImageBlockDict, ImageInput, + ImageInputDict, + ImageInputSourceDict, + ImageSourceDict, ImplicitFilterConfiguration, + ImplicitFilterConfigurationDict, InferenceConfig, + InferenceConfigDict, InferenceConfiguration, + InferenceConfigurationDict, InlineAgentFilePart, InlineAgentPayloadPart, InlineAgentReturnControlPayload, InlineAgentTracePart, InlineBedrockModelConfigurations, + InlineBedrockModelConfigurationsDict, InlineSessionState, + InlineSessionStateDict, InputFile, + InputFileDict, InputImage, + InputImageDict, + InputPromptDict, InvocationInput, + InvocationResultMemberDict, InvocationStep, + InvocationStepPayloadDict, InvocationStepSummary, InvocationSummary, InvokeAgentInput, + InvokeAgentInputDict, InvokeAgentOutput, InvokeFlowInput, + InvokeFlowInputDict, InvokeFlowOutput, InvokeInlineAgentInput, + InvokeInlineAgentInputDict, InvokeInlineAgentOutput, KnowledgeBase, KnowledgeBaseConfiguration, + KnowledgeBaseConfigurationDict, + KnowledgeBaseDict, KnowledgeBaseLookupInput, KnowledgeBaseLookupOutput, KnowledgeBaseQuery, + KnowledgeBaseQueryDict, KnowledgeBaseRetrievalConfiguration, + KnowledgeBaseRetrievalConfigurationDict, KnowledgeBaseRetrievalResult, KnowledgeBaseRetrieveAndGenerateConfiguration, + KnowledgeBaseRetrieveAndGenerateConfigurationDict, KnowledgeBaseRetrieverConfiguration, + KnowledgeBaseRetrieverConfigurationDict, KnowledgeBaseVectorSearchConfiguration, + KnowledgeBaseVectorSearchConfigurationDict, ListFlowExecutionEventsInput, + ListFlowExecutionEventsInputDict, ListFlowExecutionEventsOutput, ListFlowExecutionsInput, + ListFlowExecutionsInputDict, ListFlowExecutionsOutput, ListInvocationStepsInput, + ListInvocationStepsInputDict, ListInvocationStepsOutput, ListInvocationsInput, + ListInvocationsInputDict, ListInvocationsOutput, ListSessionsInput, + ListSessionsInputDict, ListSessionsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ManagedSearchBedrockRerankingConfiguration, + ManagedSearchBedrockRerankingConfigurationDict, ManagedSearchBedrockRerankingModelConfiguration, + ManagedSearchBedrockRerankingModelConfigurationDict, ManagedSearchConfiguration, + ManagedSearchConfigurationDict, ManagedSearchRerankingConfiguration, + ManagedSearchRerankingConfigurationDict, MantleFoundationModelConfiguration, + MantleFoundationModelConfigurationDict, MantleFoundationModelModelConfiguration, + MantleFoundationModelModelConfigurationDict, MemorySessionSummary, Message, + MessageDict, Metadata, MetadataAttributeSchema, + MetadataAttributeSchemaDict, MetadataConfigurationForReranking, + MetadataConfigurationForRerankingDict, ModelInvocationInput, ModelPerformanceConfiguration, + ModelPerformanceConfigurationDict, NodeActionEvent, NodeDependencyEvent, NodeFailureEvent, @@ -231,43 +338,64 @@ NodeOutputNext, Observation, OptimizePromptInput, + OptimizePromptInputDict, OptimizePromptOutput, OptimizedPromptEvent, OrchestrationConfiguration, + OrchestrationConfigurationDict, + OrchestrationExecutorDict, OrchestrationModelInvocationOutput, OutputFile, Parameter, ParameterDetail, + ParameterDetailDict, PayloadPart, PerformanceConfiguration, + PerformanceConfigurationDict, PostProcessingModelInvocationOutput, PostProcessingParsedResponse, PreProcessingModelInvocationOutput, PreProcessingParsedResponse, PromptConfiguration, + PromptConfigurationDict, PromptCreationConfigurations, + PromptCreationConfigurationsDict, PromptOverrideConfiguration, + PromptOverrideConfigurationDict, PromptTemplate, + PromptTemplateDict, PropertyParameters, PutInvocationStepInput, + PutInvocationStepInputDict, PutInvocationStepOutput, QueryGenerationInput, + QueryGenerationInputDict, QueryTransformationConfiguration, + QueryTransformationConfigurationDict, Rationale, RawResponse, ReasoningTextBlock, RepromptResponse, RequestBody, RerankDocument, + RerankDocumentDict, RerankInput, + RerankInputDict, RerankOutput, RerankQuery, + RerankQueryDict, RerankResult, RerankSource, + RerankSourceDict, RerankTextDocument, + RerankTextDocumentDict, RerankingConfiguration, + RerankingConfigurationDict, + RerankingMetadataSelectiveModeConfigurationDict, RetrievalContent, + RetrievalFilterDict, RetrievalOverrides, + RetrievalOverridesDict, RetrievalResultConfluenceLocation, RetrievalResultContent, RetrievalResultContentColumn, @@ -282,57 +410,85 @@ RetrievalResultSqlLocation, RetrievalResultWebLocation, RetrieveAndGenerateConfiguration, + RetrieveAndGenerateConfigurationDict, RetrieveAndGenerateInput, + RetrieveAndGenerateInputDict, RetrieveAndGenerateOperationInput, + RetrieveAndGenerateOperationInputDict, RetrieveAndGenerateOperationOutput, RetrieveAndGenerateOutput, RetrieveAndGenerateOutputEvent, RetrieveAndGenerateSessionConfiguration, + RetrieveAndGenerateSessionConfigurationDict, RetrieveAndGenerateStreamInput, + RetrieveAndGenerateStreamInputDict, RetrieveAndGenerateStreamOutput, RetrieveInput, + RetrieveInputDict, RetrieveOutput, RetrievedReference, + RetrieverConfigurationDict, ReturnControlPayload, ReturnControlResults, RoutingClassifierModelInvocationOutput, S3Identifier, + S3IdentifierDict, S3Location, + S3LocationDict, S3ObjectDoc, + S3ObjectDocDict, S3ObjectFile, + S3ObjectFileDict, SatisfiedCondition, SessionState, + SessionStateDict, SessionSummary, Span, StartFlowExecutionInput, + StartFlowExecutionInputDict, StartFlowExecutionOutput, StopFlowExecutionInput, + StopFlowExecutionInputDict, StopFlowExecutionOutput, StreamingConfigurations, + StreamingConfigurationsDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TextInferenceConfig, + TextInferenceConfigDict, TextPrompt, + TextPromptDict, TextResponsePart, TextToSqlConfiguration, + TextToSqlConfigurationDict, TextToSqlKnowledgeBaseConfiguration, + TextToSqlKnowledgeBaseConfigurationDict, TracePart, TransformationConfiguration, + TransformationConfigurationDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateSessionInput, + UpdateSessionInputDict, UpdateSessionOutput, Usage, UserContext, + UserContextDict, VectorSearchBedrockRerankingConfiguration, + VectorSearchBedrockRerankingConfigurationDict, VectorSearchBedrockRerankingModelConfiguration, + VectorSearchBedrockRerankingModelConfigurationDict, VectorSearchRerankingConfiguration, + VectorSearchRerankingConfigurationDict, VideoSegment, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -699,3 +855,570 @@ VectorSearchBedrockRerankingModelConfiguration(model_arn=_) VectorSearchRerankingConfiguration(type=_) VideoSegment(s3_uri=_) +_params_0: ActionGroupExecutorDict = {"lambda_": _} +_params_1: AgentActionGroupDict = {"action_group_name": _} +_params_2: AgenticRetrieveBedrockGuardrailConfigurationDict = { + "guardrail_id": _, + "guardrail_version": _, +} +_params_3: AgenticRetrieveBedrockRerankingConfigurationDict = {"model_configuration": _} +_params_4: AgenticRetrieveBedrockRerankingModelConfigurationDict = {"model_arn": _} +_params_5: AgenticRetrieveConfigurationDict = {} +_params_6: AgenticRetrieveInstructionConfigurationDict = {"retrieval_instruction_id": _} +_params_7: AgenticRetrieveMemoryConfigurationDict = {"memory_id": _} +_params_8: AgenticRetrieveMemoryMetadataFilterDict = {"left": _, "operator": _} +_params_9: AgenticRetrieveMemoryMetadataFilterLeftDict = {"metadata_key": _} +_params_10: AgenticRetrieveMemoryMetadataFilterRightDict = {"metadata_value": _} +_params_11: AgenticRetrieveMemoryMetadataValueDict = {"string_value": _} +_params_12: AgenticRetrieveMemoryRetrievalConfigDict = {} +_params_13: AgenticRetrieveMemorySessionBindingDict = {"actor_id": _, "session_id": _} +_params_14: AgenticRetrieveMessageDict = {"content": _, "role": _} +_params_15: AgenticRetrieveMessageContentDict = {} +_params_16: AgenticRetrievePolicyConfigurationDict = {} +_params_17: AgenticRetrieverDict = {"configuration": _} +_params_18: AgenticRetrieveRerankingConfigurationDict = {"type": _} +_params_19: AgenticRetrieveStreamInputDict = { + "messages": _, + "retrievers": _, + "agentic_retrieve_configuration": _, +} +_params_20: ApiResultDict = {"action_group": _} +_params_21: APISchemaDict = {"s3": _} +_params_22: BedrockFoundationModelConfigurationDict = {"model_configuration": _} +_params_23: BedrockFoundationModelModelConfigurationDict = {"model_arn": _} +_params_24: BedrockModelConfigurationsDict = {} +_params_25: BedrockRerankingConfigurationDict = {"model_configuration": _} +_params_26: BedrockRerankingModelConfigurationDict = {"model_arn": _} +_params_27: BedrockSessionContentBlockDict = {"text": _} +_params_28: ByteContentDocDict = {"identifier": _, "content_type": _, "data": _} +_params_29: ByteContentFileDict = {"media_type": _, "data": _} +_params_30: CheckIngestedDocumentAclInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "document_id": _, + "user_context": _, +} +_params_31: CollaboratorDict = {"foundation_model": _, "instruction": _} +_params_32: CollaboratorConfigurationDict = { + "collaborator_name": _, + "collaborator_instruction": _, +} +_params_33: ContentBlockDict = {"text": _} +_params_34: ContentBodyDict = {} +_params_35: ConversationHistoryDict = {} +_params_36: CreateInvocationInputDict = {"session_identifier": _} +_params_37: CreateSessionInputDict = {} +_params_38: CustomOrchestrationDict = {} +_params_39: DeleteAgentMemoryInputDict = {"agent_id": _, "agent_alias_id": _} +_params_40: DeleteSessionInputDict = {"session_identifier": _} +_params_41: EndSessionInputDict = {"session_identifier": _} +_params_42: ExternalSourceDict = {"source_type": _} +_params_43: ExternalSourcesGenerationConfigurationDict = {} +_params_44: ExternalSourcesRetrieveAndGenerateConfigurationDict = { + "model_arn": _, + "sources": _, +} +_params_45: FieldForRerankingDict = {"field_name": _} +_params_46: FileSourceDict = {"source_type": _} +_params_47: FilterAttributeDict = {"key": _, "value": _} +_params_48: FlowInputDict = {"node_name": _, "content": _} +_params_49: FlowInputContentDict = {"document": _} +_params_50: FoundationModelConfigurationDict = {"type": _} +_params_51: FunctionDefinitionDict = {"name": _} +_params_52: FunctionResultDict = {"action_group": _} +_params_53: FunctionSchemaDict = {"functions": _} +_params_54: GenerateQueryInputDict = { + "query_generation_input": _, + "transformation_configuration": _, +} +_params_55: GenerationConfigurationDict = {} +_params_56: GetAgentMemoryInputDict = { + "agent_id": _, + "agent_alias_id": _, + "memory_type": _, + "memory_id": _, +} +_params_57: GetDocumentContentInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "document_id": _, +} +_params_58: GetExecutionFlowSnapshotInputDict = { + "flow_identifier": _, + "flow_alias_identifier": _, + "execution_identifier": _, +} +_params_59: GetFlowExecutionInputDict = { + "flow_identifier": _, + "flow_alias_identifier": _, + "execution_identifier": _, +} +_params_60: GetIngestedDocumentAclInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "document_id": _, +} +_params_61: GetInvocationStepInputDict = { + "invocation_identifier": _, + "invocation_step_id": _, + "session_identifier": _, +} +_params_62: GetSessionInputDict = {"session_identifier": _} +_params_63: GuardrailConfigurationDict = {"guardrail_id": _, "guardrail_version": _} +_params_64: GuardrailConfigurationWithArnDict = { + "guardrail_identifier": _, + "guardrail_version": _, +} +_params_65: ImageBlockDict = {"format": _, "source": _} +_params_66: ImageInputDict = {"format": _, "source": _} +_params_67: ImageInputSourceDict = {"bytes_": _} +_params_68: ImageSourceDict = {"bytes_": _} +_params_69: ImplicitFilterConfigurationDict = {"metadata_attributes": _, "model_arn": _} +_params_70: InferenceConfigDict = {} +_params_71: InferenceConfigurationDict = {} +_params_72: InlineBedrockModelConfigurationsDict = {} +_params_73: InlineSessionStateDict = {} +_params_74: InputFileDict = {"name": _, "source": _, "use_case": _} +_params_75: InputImageDict = {"format": _, "inline_content": _} +_params_76: InputPromptDict = {"text_prompt": _} +_params_77: InvocationResultMemberDict = {"api_result": _} +_params_78: InvocationStepPayloadDict = {"content_blocks": _} +_params_79: InvokeAgentInputDict = {"agent_id": _, "agent_alias_id": _, "session_id": _} +_params_80: InvokeFlowInputDict = { + "flow_identifier": _, + "flow_alias_identifier": _, + "inputs": _, +} +_params_81: InvokeInlineAgentInputDict = { + "foundation_model": _, + "instruction": _, + "session_id": _, +} +_params_82: KnowledgeBaseDict = {"knowledge_base_id": _, "description": _} +_params_83: KnowledgeBaseConfigurationDict = { + "knowledge_base_id": _, + "retrieval_configuration": _, +} +_params_84: KnowledgeBaseQueryDict = {} +_params_85: KnowledgeBaseRetrievalConfigurationDict = {} +_params_86: KnowledgeBaseRetrieveAndGenerateConfigurationDict = { + "knowledge_base_id": _, + "model_arn": _, +} +_params_87: KnowledgeBaseRetrieverConfigurationDict = {"knowledge_base_id": _} +_params_88: KnowledgeBaseVectorSearchConfigurationDict = {} +_params_89: ListFlowExecutionEventsInputDict = { + "flow_identifier": _, + "flow_alias_identifier": _, + "execution_identifier": _, + "event_type": _, +} +_params_90: ListFlowExecutionsInputDict = {"flow_identifier": _} +_params_91: ListInvocationsInputDict = {"session_identifier": _} +_params_92: ListInvocationStepsInputDict = {"session_identifier": _} +_params_93: ListSessionsInputDict = {} +_params_94: ListTagsForResourceInputDict = {"resource_arn": _} +_params_95: ManagedSearchBedrockRerankingConfigurationDict = {"model_configuration": _} +_params_96: ManagedSearchBedrockRerankingModelConfigurationDict = {"model_arn": _} +_params_97: ManagedSearchConfigurationDict = {} +_params_98: ManagedSearchRerankingConfigurationDict = {"type": _} +_params_99: MantleFoundationModelConfigurationDict = {"model_configuration": _} +_params_100: MantleFoundationModelModelConfigurationDict = {"model_arn": _} +_params_101: MessageDict = {"role": _, "content": _} +_params_102: MetadataAttributeSchemaDict = {"key": _, "type": _, "description": _} +_params_103: MetadataConfigurationForRerankingDict = {"selection_mode": _} +_params_104: ModelPerformanceConfigurationDict = {} +_params_105: OptimizePromptInputDict = {"input": _, "target_model_id": _} +_params_106: OrchestrationConfigurationDict = {} +_params_107: OrchestrationExecutorDict = {"lambda_": _} +_params_108: ParameterDetailDict = {"type": _} +_params_109: PerformanceConfigurationDict = {} +_params_110: PromptConfigurationDict = {} +_params_111: PromptCreationConfigurationsDict = {} +_params_112: PromptOverrideConfigurationDict = {"prompt_configurations": _} +_params_113: PromptTemplateDict = {} +_params_114: PutInvocationStepInputDict = { + "session_identifier": _, + "invocation_identifier": _, + "invocation_step_time": _, + "payload": _, +} +_params_115: QueryGenerationInputDict = {"type": _, "text": _} +_params_116: QueryTransformationConfigurationDict = {"type": _} +_params_117: RerankDocumentDict = {"type": _} +_params_118: RerankingConfigurationDict = { + "type": _, + "bedrock_reranking_configuration": _, +} +_params_119: RerankingMetadataSelectiveModeConfigurationDict = {"fields_to_include": _} +_params_120: RerankInputDict = { + "queries": _, + "sources": _, + "reranking_configuration": _, +} +_params_121: RerankQueryDict = {"type": _, "text_query": _} +_params_122: RerankSourceDict = {"type": _, "inline_document_source": _} +_params_123: RerankTextDocumentDict = {} +_params_124: RetrievalFilterDict = {"equals": _} +_params_125: RetrievalOverridesDict = {} +_params_126: RetrieveAndGenerateConfigurationDict = {"type": _} +_params_127: RetrieveAndGenerateInputDict = {"text": _} +_params_128: RetrieveAndGenerateOperationInputDict = {"input": _} +_params_129: RetrieveAndGenerateSessionConfigurationDict = {"kms_key_arn": _} +_params_130: RetrieveAndGenerateStreamInputDict = {"input": _} +_params_131: RetrieveInputDict = {"knowledge_base_id": _, "retrieval_query": _} +_params_132: RetrieverConfigurationDict = {"knowledge_base": _} +_params_133: S3IdentifierDict = {} +_params_134: S3LocationDict = {"uri": _} +_params_135: S3ObjectDocDict = {"uri": _} +_params_136: S3ObjectFileDict = {"uri": _} +_params_137: SessionStateDict = {} +_params_138: StartFlowExecutionInputDict = { + "flow_identifier": _, + "flow_alias_identifier": _, + "inputs": _, +} +_params_139: StopFlowExecutionInputDict = { + "flow_identifier": _, + "flow_alias_identifier": _, + "execution_identifier": _, +} +_params_140: StreamingConfigurationsDict = {} +_params_141: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_142: TextInferenceConfigDict = {} +_params_143: TextPromptDict = {"text": _} +_params_144: TextToSqlConfigurationDict = {"type": _} +_params_145: TextToSqlKnowledgeBaseConfigurationDict = {"knowledge_base_arn": _} +_params_146: TransformationConfigurationDict = {"mode": _} +_params_147: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_148: UpdateSessionInputDict = {"session_identifier": _} +_params_149: UserContextDict = {"user_id": _} +_params_150: VectorSearchBedrockRerankingConfigurationDict = {"model_configuration": _} +_params_151: VectorSearchBedrockRerankingModelConfigurationDict = {"model_arn": _} +_params_152: VectorSearchRerankingConfigurationDict = {"type": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncBedrockAgentRuntimeClient) -> None: + pass + await client.agentic_retrieve_stream( + messages=_, retrievers=_, agentic_retrieve_configuration=_ + ) + await client.agentic_retrieve_stream(**_request(AgenticRetrieveStreamInputDict)) + await client.agentic_retrieve_stream(_request(AgenticRetrieveStreamInput)) + await client.agentic_retrieve_stream(_request(AgenticRetrieveStreamInputDict)) + await client.check_ingested_document_acl( + knowledge_base_id=_, data_source_id=_, document_id=_, user_context=_ + ) + await client.check_ingested_document_acl( + **_request(CheckIngestedDocumentAclInputDict) + ) + await client.check_ingested_document_acl(_request(CheckIngestedDocumentAclInput)) + await client.check_ingested_document_acl( + _request(CheckIngestedDocumentAclInputDict) + ) + await client.create_invocation(session_identifier=_) + await client.create_invocation(**_request(CreateInvocationInputDict)) + await client.create_invocation(_request(CreateInvocationInput)) + await client.create_invocation(_request(CreateInvocationInputDict)) + await client.create_session() + await client.create_session(**_request(CreateSessionInputDict)) + await client.create_session(_request(CreateSessionInput)) + await client.create_session(_request(CreateSessionInputDict)) + await client.delete_agent_memory(agent_id=_, agent_alias_id=_) + await client.delete_agent_memory(**_request(DeleteAgentMemoryInputDict)) + await client.delete_agent_memory(_request(DeleteAgentMemoryInput)) + await client.delete_agent_memory(_request(DeleteAgentMemoryInputDict)) + await client.delete_session(session_identifier=_) + await client.delete_session(**_request(DeleteSessionInputDict)) + await client.delete_session(_request(DeleteSessionInput)) + await client.delete_session(_request(DeleteSessionInputDict)) + await client.end_session(session_identifier=_) + await client.end_session(**_request(EndSessionInputDict)) + await client.end_session(_request(EndSessionInput)) + await client.end_session(_request(EndSessionInputDict)) + await client.generate_query( + query_generation_input=_, transformation_configuration=_ + ) + await client.generate_query(**_request(GenerateQueryInputDict)) + await client.generate_query(_request(GenerateQueryInput)) + await client.generate_query(_request(GenerateQueryInputDict)) + await client.get_agent_memory( + agent_id=_, agent_alias_id=_, memory_type=_, memory_id=_ + ) + await client.get_agent_memory(**_request(GetAgentMemoryInputDict)) + await client.get_agent_memory(_request(GetAgentMemoryInput)) + await client.get_agent_memory(_request(GetAgentMemoryInputDict)) + await client.get_document_content( + knowledge_base_id=_, data_source_id=_, document_id=_ + ) + await client.get_document_content(**_request(GetDocumentContentInputDict)) + await client.get_document_content(_request(GetDocumentContentInput)) + await client.get_document_content(_request(GetDocumentContentInputDict)) + await client.get_execution_flow_snapshot( + flow_identifier=_, flow_alias_identifier=_, execution_identifier=_ + ) + await client.get_execution_flow_snapshot( + **_request(GetExecutionFlowSnapshotInputDict) + ) + await client.get_execution_flow_snapshot(_request(GetExecutionFlowSnapshotInput)) + await client.get_execution_flow_snapshot( + _request(GetExecutionFlowSnapshotInputDict) + ) + await client.get_flow_execution( + flow_identifier=_, flow_alias_identifier=_, execution_identifier=_ + ) + await client.get_flow_execution(**_request(GetFlowExecutionInputDict)) + await client.get_flow_execution(_request(GetFlowExecutionInput)) + await client.get_flow_execution(_request(GetFlowExecutionInputDict)) + await client.get_ingested_document_acl( + knowledge_base_id=_, data_source_id=_, document_id=_ + ) + await client.get_ingested_document_acl(**_request(GetIngestedDocumentAclInputDict)) + await client.get_ingested_document_acl(_request(GetIngestedDocumentAclInput)) + await client.get_ingested_document_acl(_request(GetIngestedDocumentAclInputDict)) + await client.get_invocation_step( + invocation_identifier=_, invocation_step_id=_, session_identifier=_ + ) + await client.get_invocation_step(**_request(GetInvocationStepInputDict)) + await client.get_invocation_step(_request(GetInvocationStepInput)) + await client.get_invocation_step(_request(GetInvocationStepInputDict)) + await client.get_session(session_identifier=_) + await client.get_session(**_request(GetSessionInputDict)) + await client.get_session(_request(GetSessionInput)) + await client.get_session(_request(GetSessionInputDict)) + await client.invoke_agent(agent_id=_, agent_alias_id=_, session_id=_) + await client.invoke_agent(**_request(InvokeAgentInputDict)) + await client.invoke_agent(_request(InvokeAgentInput)) + await client.invoke_agent(_request(InvokeAgentInputDict)) + await client.invoke_flow(flow_identifier=_, flow_alias_identifier=_, inputs=_) + await client.invoke_flow(**_request(InvokeFlowInputDict)) + await client.invoke_flow(_request(InvokeFlowInput)) + await client.invoke_flow(_request(InvokeFlowInputDict)) + await client.invoke_inline_agent(foundation_model=_, instruction=_, session_id=_) + await client.invoke_inline_agent(**_request(InvokeInlineAgentInputDict)) + await client.invoke_inline_agent(_request(InvokeInlineAgentInput)) + await client.invoke_inline_agent(_request(InvokeInlineAgentInputDict)) + await client.list_flow_execution_events( + flow_identifier=_, flow_alias_identifier=_, execution_identifier=_, event_type=_ + ) + await client.list_flow_execution_events( + **_request(ListFlowExecutionEventsInputDict) + ) + await client.list_flow_execution_events(_request(ListFlowExecutionEventsInput)) + await client.list_flow_execution_events(_request(ListFlowExecutionEventsInputDict)) + await client.list_flow_executions(flow_identifier=_) + await client.list_flow_executions(**_request(ListFlowExecutionsInputDict)) + await client.list_flow_executions(_request(ListFlowExecutionsInput)) + await client.list_flow_executions(_request(ListFlowExecutionsInputDict)) + await client.list_invocations(session_identifier=_) + await client.list_invocations(**_request(ListInvocationsInputDict)) + await client.list_invocations(_request(ListInvocationsInput)) + await client.list_invocations(_request(ListInvocationsInputDict)) + await client.list_invocation_steps(session_identifier=_) + await client.list_invocation_steps(**_request(ListInvocationStepsInputDict)) + await client.list_invocation_steps(_request(ListInvocationStepsInput)) + await client.list_invocation_steps(_request(ListInvocationStepsInputDict)) + await client.list_sessions() + await client.list_sessions(**_request(ListSessionsInputDict)) + await client.list_sessions(_request(ListSessionsInput)) + await client.list_sessions(_request(ListSessionsInputDict)) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.optimize_prompt(input=_, target_model_id=_) + await client.optimize_prompt(**_request(OptimizePromptInputDict)) + await client.optimize_prompt(_request(OptimizePromptInput)) + await client.optimize_prompt(_request(OptimizePromptInputDict)) + await client.put_invocation_step( + session_identifier=_, invocation_identifier=_, invocation_step_time=_, payload=_ + ) + await client.put_invocation_step(**_request(PutInvocationStepInputDict)) + await client.put_invocation_step(_request(PutInvocationStepInput)) + await client.put_invocation_step(_request(PutInvocationStepInputDict)) + await client.rerank(queries=_, sources=_, reranking_configuration=_) + await client.rerank(**_request(RerankInputDict)) + await client.rerank(_request(RerankInput)) + await client.rerank(_request(RerankInputDict)) + await client.retrieve(knowledge_base_id=_, retrieval_query=_) + await client.retrieve(**_request(RetrieveInputDict)) + await client.retrieve(_request(RetrieveInput)) + await client.retrieve(_request(RetrieveInputDict)) + await client.retrieve_and_generate(input=_) + await client.retrieve_and_generate( + **_request(RetrieveAndGenerateOperationInputDict) + ) + await client.retrieve_and_generate(_request(RetrieveAndGenerateOperationInput)) + await client.retrieve_and_generate(_request(RetrieveAndGenerateOperationInputDict)) + await client.retrieve_and_generate_stream(input=_) + await client.retrieve_and_generate_stream( + **_request(RetrieveAndGenerateStreamInputDict) + ) + await client.retrieve_and_generate_stream(_request(RetrieveAndGenerateStreamInput)) + await client.retrieve_and_generate_stream( + _request(RetrieveAndGenerateStreamInputDict) + ) + await client.start_flow_execution( + flow_identifier=_, flow_alias_identifier=_, inputs=_ + ) + await client.start_flow_execution(**_request(StartFlowExecutionInputDict)) + await client.start_flow_execution(_request(StartFlowExecutionInput)) + await client.start_flow_execution(_request(StartFlowExecutionInputDict)) + await client.stop_flow_execution( + flow_identifier=_, flow_alias_identifier=_, execution_identifier=_ + ) + await client.stop_flow_execution(**_request(StopFlowExecutionInputDict)) + await client.stop_flow_execution(_request(StopFlowExecutionInput)) + await client.stop_flow_execution(_request(StopFlowExecutionInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_session(session_identifier=_) + await client.update_session(**_request(UpdateSessionInputDict)) + await client.update_session(_request(UpdateSessionInput)) + await client.update_session(_request(UpdateSessionInputDict)) + + +def check_sync_calls(client: BedrockAgentRuntimeClient) -> None: + pass + client.check_ingested_document_acl( + knowledge_base_id=_, data_source_id=_, document_id=_, user_context=_ + ) + client.check_ingested_document_acl(**_request(CheckIngestedDocumentAclInputDict)) + client.check_ingested_document_acl(_request(CheckIngestedDocumentAclInput)) + client.check_ingested_document_acl(_request(CheckIngestedDocumentAclInputDict)) + client.create_invocation(session_identifier=_) + client.create_invocation(**_request(CreateInvocationInputDict)) + client.create_invocation(_request(CreateInvocationInput)) + client.create_invocation(_request(CreateInvocationInputDict)) + client.create_session() + client.create_session(**_request(CreateSessionInputDict)) + client.create_session(_request(CreateSessionInput)) + client.create_session(_request(CreateSessionInputDict)) + client.delete_agent_memory(agent_id=_, agent_alias_id=_) + client.delete_agent_memory(**_request(DeleteAgentMemoryInputDict)) + client.delete_agent_memory(_request(DeleteAgentMemoryInput)) + client.delete_agent_memory(_request(DeleteAgentMemoryInputDict)) + client.delete_session(session_identifier=_) + client.delete_session(**_request(DeleteSessionInputDict)) + client.delete_session(_request(DeleteSessionInput)) + client.delete_session(_request(DeleteSessionInputDict)) + client.end_session(session_identifier=_) + client.end_session(**_request(EndSessionInputDict)) + client.end_session(_request(EndSessionInput)) + client.end_session(_request(EndSessionInputDict)) + client.generate_query(query_generation_input=_, transformation_configuration=_) + client.generate_query(**_request(GenerateQueryInputDict)) + client.generate_query(_request(GenerateQueryInput)) + client.generate_query(_request(GenerateQueryInputDict)) + client.get_agent_memory(agent_id=_, agent_alias_id=_, memory_type=_, memory_id=_) + client.get_agent_memory(**_request(GetAgentMemoryInputDict)) + client.get_agent_memory(_request(GetAgentMemoryInput)) + client.get_agent_memory(_request(GetAgentMemoryInputDict)) + client.get_document_content(knowledge_base_id=_, data_source_id=_, document_id=_) + client.get_document_content(**_request(GetDocumentContentInputDict)) + client.get_document_content(_request(GetDocumentContentInput)) + client.get_document_content(_request(GetDocumentContentInputDict)) + client.get_execution_flow_snapshot( + flow_identifier=_, flow_alias_identifier=_, execution_identifier=_ + ) + client.get_execution_flow_snapshot(**_request(GetExecutionFlowSnapshotInputDict)) + client.get_execution_flow_snapshot(_request(GetExecutionFlowSnapshotInput)) + client.get_execution_flow_snapshot(_request(GetExecutionFlowSnapshotInputDict)) + client.get_flow_execution( + flow_identifier=_, flow_alias_identifier=_, execution_identifier=_ + ) + client.get_flow_execution(**_request(GetFlowExecutionInputDict)) + client.get_flow_execution(_request(GetFlowExecutionInput)) + client.get_flow_execution(_request(GetFlowExecutionInputDict)) + client.get_ingested_document_acl( + knowledge_base_id=_, data_source_id=_, document_id=_ + ) + client.get_ingested_document_acl(**_request(GetIngestedDocumentAclInputDict)) + client.get_ingested_document_acl(_request(GetIngestedDocumentAclInput)) + client.get_ingested_document_acl(_request(GetIngestedDocumentAclInputDict)) + client.get_invocation_step( + invocation_identifier=_, invocation_step_id=_, session_identifier=_ + ) + client.get_invocation_step(**_request(GetInvocationStepInputDict)) + client.get_invocation_step(_request(GetInvocationStepInput)) + client.get_invocation_step(_request(GetInvocationStepInputDict)) + client.get_session(session_identifier=_) + client.get_session(**_request(GetSessionInputDict)) + client.get_session(_request(GetSessionInput)) + client.get_session(_request(GetSessionInputDict)) + client.list_flow_execution_events( + flow_identifier=_, flow_alias_identifier=_, execution_identifier=_, event_type=_ + ) + client.list_flow_execution_events(**_request(ListFlowExecutionEventsInputDict)) + client.list_flow_execution_events(_request(ListFlowExecutionEventsInput)) + client.list_flow_execution_events(_request(ListFlowExecutionEventsInputDict)) + client.list_flow_executions(flow_identifier=_) + client.list_flow_executions(**_request(ListFlowExecutionsInputDict)) + client.list_flow_executions(_request(ListFlowExecutionsInput)) + client.list_flow_executions(_request(ListFlowExecutionsInputDict)) + client.list_invocations(session_identifier=_) + client.list_invocations(**_request(ListInvocationsInputDict)) + client.list_invocations(_request(ListInvocationsInput)) + client.list_invocations(_request(ListInvocationsInputDict)) + client.list_invocation_steps(session_identifier=_) + client.list_invocation_steps(**_request(ListInvocationStepsInputDict)) + client.list_invocation_steps(_request(ListInvocationStepsInput)) + client.list_invocation_steps(_request(ListInvocationStepsInputDict)) + client.list_sessions() + client.list_sessions(**_request(ListSessionsInputDict)) + client.list_sessions(_request(ListSessionsInput)) + client.list_sessions(_request(ListSessionsInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.put_invocation_step( + session_identifier=_, invocation_identifier=_, invocation_step_time=_, payload=_ + ) + client.put_invocation_step(**_request(PutInvocationStepInputDict)) + client.put_invocation_step(_request(PutInvocationStepInput)) + client.put_invocation_step(_request(PutInvocationStepInputDict)) + client.rerank(queries=_, sources=_, reranking_configuration=_) + client.rerank(**_request(RerankInputDict)) + client.rerank(_request(RerankInput)) + client.rerank(_request(RerankInputDict)) + client.retrieve(knowledge_base_id=_, retrieval_query=_) + client.retrieve(**_request(RetrieveInputDict)) + client.retrieve(_request(RetrieveInput)) + client.retrieve(_request(RetrieveInputDict)) + client.retrieve_and_generate(input=_) + client.retrieve_and_generate(**_request(RetrieveAndGenerateOperationInputDict)) + client.retrieve_and_generate(_request(RetrieveAndGenerateOperationInput)) + client.retrieve_and_generate(_request(RetrieveAndGenerateOperationInputDict)) + client.start_flow_execution(flow_identifier=_, flow_alias_identifier=_, inputs=_) + client.start_flow_execution(**_request(StartFlowExecutionInputDict)) + client.start_flow_execution(_request(StartFlowExecutionInput)) + client.start_flow_execution(_request(StartFlowExecutionInputDict)) + client.stop_flow_execution( + flow_identifier=_, flow_alias_identifier=_, execution_identifier=_ + ) + client.stop_flow_execution(**_request(StopFlowExecutionInputDict)) + client.stop_flow_execution(_request(StopFlowExecutionInput)) + client.stop_flow_execution(_request(StopFlowExecutionInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_session(session_identifier=_) + client.update_session(**_request(UpdateSessionInputDict)) + client.update_session(_request(UpdateSessionInput)) + client.update_session(_request(UpdateSessionInputDict)) diff --git a/clients/aws-sdk-bedrock-agent/pyproject.toml b/clients/aws-sdk-bedrock-agent/pyproject.toml index 1c5281330..866ec1de9 100644 --- a/clients/aws-sdk-bedrock-agent/pyproject.toml +++ b/clients/aws-sdk-bedrock-agent/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_0.pyi b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_0.pyi index 098b1ed1d..56982ef9a 100644 --- a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_0.pyi +++ b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,21 +13,34 @@ from smithy_core.types import JsonString, UnknownEnumMixin from ..models import ( KnowledgeBaseOrchestrationConfiguration, + KnowledgeBaseOrchestrationConfigurationDict, KnowledgeBasePromptTemplate, + KnowledgeBasePromptTemplateDict, LambdaFunctionFlowNodeConfiguration, + LambdaFunctionFlowNodeConfigurationDict, LastDayOfMonth, + LastDayOfMonthDict, LexFlowNodeConfiguration, + LexFlowNodeConfigurationDict, LoopControllerFlowNodeConfiguration, + LoopControllerFlowNodeConfigurationDict, LoopFlowNodeConfiguration, + LoopFlowNodeConfigurationDict, LoopIncompatibleNodeTypeFlowValidationDetails, LoopInputFlowNodeConfiguration, + LoopInputFlowNodeConfigurationDict, MalformedConditionExpressionFlowValidationDetails, MalformedNodeInputExpressionFlowValidationDetails, ManagedKnowledgeBaseConfiguration, + ManagedKnowledgeBaseConfigurationDict, ManagedKnowledgeBaseConnectorConfiguration, + ManagedKnowledgeBaseConnectorConfigurationDict, MemoryConfiguration, + MemoryConfigurationDict, Message, + MessageDict, MetadataAttribute, + MetadataAttributeDict, MetadataConfiguration, MismatchedNodeInputTypeFlowValidationDetails, MismatchedNodeOutputTypeFlowValidationDetails, @@ -43,34 +57,61 @@ from ..models import ( MultipleLoopInputNodesFlowValidationDetails, MultipleNodeInputConnectionsFlowValidationDetails, OrchestrationExecutor, + OrchestrationExecutorDict, OutputFlowNodeConfiguration, + OutputFlowNodeConfigurationDict, ParameterDetail, + ParameterDetailDict, ParsingPrompt, + ParsingPromptDict, PatternObjectFilterConfiguration, + PatternObjectFilterConfigurationDict, PromptFlowNodeConfiguration, + PromptFlowNodeConfigurationDict, PromptInferenceConfiguration, + PromptInferenceConfigurationDict, PromptInputVariable, + PromptInputVariableDict, PromptOverrideConfiguration, + PromptOverrideConfigurationDict, PromptVariant, + PromptVariantDict, RetrievalFlowNodeConfiguration, + RetrievalFlowNodeConfigurationDict, RetrievalInstructionContent, + RetrievalInstructionContentDict, RetrievalInstructionFailureReason, S3Content, + S3ContentDict, S3DataSourceConfiguration, + S3DataSourceConfigurationDict, S3Identifier, + S3IdentifierDict, S3Location, + S3LocationDict, SalesforceDataSourceConfiguration, + SalesforceDataSourceConfigurationDict, SemanticChunkingConfiguration, + SemanticChunkingConfigurationDict, ServerSideEncryptionConfiguration, + ServerSideEncryptionConfigurationDict, ServiceError, SharePointDataSourceConfiguration, + SharePointDataSourceConfigurationDict, SqlKnowledgeBaseConfiguration, + SqlKnowledgeBaseConfigurationDict, StorageConfiguration, + StorageConfigurationDict, StorageFlowNodeConfiguration, + StorageFlowNodeConfigurationDict, SystemContentBlock, + SystemContentBlockDict, TextContentDoc, + TextContentDocDict, ToolConfiguration, + ToolConfigurationDict, Transformation, + TransformationDict, UnfulfilledNodeInputFlowValidationDetails, UnknownConnectionConditionFlowValidationDetails, UnknownConnectionSourceFlowValidationDetails, @@ -83,11 +124,16 @@ from ..models import ( UnsatisfiedConnectionConditionsFlowValidationDetails, UnspecifiedFlowValidationDetails, VectorIngestionConfiguration, + VectorIngestionConfigurationDict, VectorKnowledgeBaseConfiguration, + VectorKnowledgeBaseConfigurationDict, VectorSearchRerankingConfiguration, + VectorSearchRerankingConfigurationDict, VideoConfiguration, + VideoConfigurationDict, VpcConfiguration, WebDataSourceConfiguration, + WebDataSourceConfigurationDict, _SerdeShape, ) @@ -156,6 +202,25 @@ method for handling the information elicited from the user. class _ActionGroupExecutorDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ActionGroupExecutor: ... +class ActionGroupExecutorLambdaDict(TypedDict): + lambda_: str + """ + The Amazon Resource Name (ARN) of the Lambda function containing the + business logic that is carried out upon invoking the action. + """ + +class ActionGroupExecutorCustomControlDict(TypedDict): + custom_control: str + """ + To return the action group invocation results directly in the + `InvokeAgent` response, specify `RETURN_CONTROL`. + """ + +ActionGroupExecutorDict = Union[ + ActionGroupExecutorLambdaDict | ActionGroupExecutorCustomControlDict +] +"""Dictionary form of `ActionGroupExecutor`, setting exactly one variant.""" + class ActionGroupSignature(UnknownEnumMixin, StrEnum): AMAZON_USERINPUT = "AMAZON.UserInput" AMAZON_CODEINTERPRETER = "AMAZON.CodeInterpreter" @@ -449,6 +514,14 @@ class AgentAliasRoutingConfigurationListItem(_SerdeShape): provisioned_throughput: str | None = ... """Information on the Provisioned Throughput assigned to an agent alias.""" +class AgentAliasRoutingConfigurationListItemDict(TypedDict, total=False): + """Dictionary form of `AgentAliasRoutingConfigurationListItem`.""" + + agent_version: str | None + """The version of the agent with which the alias is associated.""" + provisioned_throughput: str | None + """Information on the Provisioned Throughput assigned to an agent alias.""" + class AgentAliasStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" PREPARED = "PREPARED" @@ -546,6 +619,12 @@ class AgentDescriptor(_SerdeShape): alias_arn: str | None = ... """The agent's alias ARN.""" +class AgentDescriptorDict(TypedDict, total=False): + """Dictionary form of `AgentDescriptor`.""" + + alias_arn: str | None + """The agent's alias ARN.""" + @dataclass(kw_only=True) class AgentFlowNodeConfiguration(_SerdeShape): """ @@ -558,6 +637,12 @@ class AgentFlowNodeConfiguration(_SerdeShape): agent_alias_arn: str = ... """The Amazon Resource Name (ARN) of the alias of the agent to invoke.""" +class AgentFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `AgentFlowNodeConfiguration`.""" + + agent_alias_arn: str | None + """The Amazon Resource Name (ARN) of the alias of the agent to invoke.""" + @dataclass(kw_only=True) class AgentKnowledgeBase(_SerdeShape): """ @@ -749,6 +834,9 @@ class AnyToolChoice(_SerdeShape): response](https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html). """ +class AnyToolChoiceDict(TypedDict, total=False): + """Dictionary form of `AnyToolChoice`.""" + @dataclass class APISchemaS3(_SerdeShape): """ @@ -792,6 +880,25 @@ can upload it to an S3 bucket and specify the S3 bucket location in the class _APISchemaDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> APISchema: ... +class APISchemaS3Dict(TypedDict): + s3: S3Identifier | S3IdentifierDict + """ + Contains details about the S3 object containing the OpenAPI schema for + the action group. For more information, see [Action group OpenAPI + schemas](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-api-schema.html). + """ + +class APISchemaPayloadDict(TypedDict): + payload: str + """ + The JSON or YAML-formatted payload defining the OpenAPI schema for the + action group. For more information, see [Action group OpenAPI + schemas](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-api-schema.html). + """ + +APISchemaDict = Union[APISchemaS3Dict | APISchemaPayloadDict] +"""Dictionary form of `APISchema`, setting exactly one variant.""" + @dataclass(kw_only=True) class AssociateAgentCollaboratorInput(_SerdeShape): """Dataclass for AssociateAgentCollaboratorInput structure.""" @@ -815,6 +922,28 @@ class AssociateAgentCollaboratorInput(_SerdeShape): This field is autopopulated if not provided. """ +class AssociateAgentCollaboratorInputDict(TypedDict, total=False): + """Dictionary form of `AssociateAgentCollaboratorInput`.""" + + agent_id: Required[str] + """The agent's ID.""" + agent_version: Required[str] + """An agent version.""" + agent_descriptor: Required[AgentDescriptor | AgentDescriptorDict] + """The alias of the collaborator agent.""" + collaborator_name: Required[str] + """A name for the collaborator.""" + collaboration_instruction: Required[str] + """Instruction for the collaborator.""" + relay_conversation_history: str | None + """A relay conversation history for the collaborator.""" + client_token: str | None + """ + A client token. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class AssociateAgentCollaboratorOutput(_SerdeShape): """Dataclass for AssociateAgentCollaboratorOutput structure.""" @@ -854,6 +983,30 @@ class AssociateAgentKnowledgeBaseInput(_SerdeShape): request. """ +class AssociateAgentKnowledgeBaseInputDict(TypedDict, total=False): + """Dictionary form of `AssociateAgentKnowledgeBaseInput`.""" + + agent_id: Required[str] + """ + The unique identifier of the agent with which you want to associate the + knowledge base. + """ + agent_version: Required[str] + """ + The version of the agent with which you want to associate the knowledge + base. + """ + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base to associate with the agent.""" + description: Required[str] + """A description of what the agent should use the knowledge base for.""" + knowledge_base_state: str | None + """ + Specifies whether to use the knowledge base or not when sending an + [InvokeAgent](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) + request. + """ + @dataclass(kw_only=True) class AssociateAgentKnowledgeBaseOutput(_SerdeShape): """Dataclass for AssociateAgentKnowledgeBaseOutput structure.""" @@ -881,6 +1034,14 @@ class AudioConfiguration(_SerdeShape): segmentation_configuration: AudioSegmentationConfiguration """Configuration for segmenting audio content during processing.""" +class AudioConfigurationDict(TypedDict, total=False): + """Dictionary form of `AudioConfiguration`.""" + + segmentation_configuration: Required[ + AudioSegmentationConfiguration | AudioSegmentationConfigurationDict + ] + """Configuration for segmenting audio content during processing.""" + @dataclass(kw_only=True) class AudioExtractionConfiguration(_SerdeShape): """Configuration for audio extraction.""" @@ -888,6 +1049,12 @@ class AudioExtractionConfiguration(_SerdeShape): audio_extraction_status: str """Whether audio extraction is enabled or disabled.""" +class AudioExtractionConfigurationDict(TypedDict, total=False): + """Dictionary form of `AudioExtractionConfiguration`.""" + + audio_extraction_status: Required[str] + """Whether audio extraction is enabled or disabled.""" + @dataclass(kw_only=True) class AudioSegmentationConfiguration(_SerdeShape): """ @@ -902,6 +1069,15 @@ class AudioSegmentationConfiguration(_SerdeShape): divided into chunks of this length for processing. """ +class AudioSegmentationConfigurationDict(TypedDict, total=False): + """Dictionary form of `AudioSegmentationConfiguration`.""" + + fixed_length_duration: Required[int] + """ + The duration in seconds for each audio segment. Audio files will be + divided into chunks of this length for processing. + """ + @dataclass(kw_only=True) class AutoToolChoice(_SerdeShape): """ @@ -911,6 +1087,9 @@ class AutoToolChoice(_SerdeShape): response](https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html). """ +class AutoToolChoiceDict(TypedDict, total=False): + """Dictionary form of `AutoToolChoice`.""" + @dataclass(kw_only=True) class BedrockDataAutomationConfiguration(_SerdeShape): """ @@ -924,6 +1103,15 @@ class BedrockDataAutomationConfiguration(_SerdeShape): text and/or images. """ +class BedrockDataAutomationConfigurationDict(TypedDict, total=False): + """Dictionary form of `BedrockDataAutomationConfiguration`.""" + + parsing_modality: str | None + """ + Specifies whether to enable parsing of multimodal data, including both + text and/or images. + """ + @dataclass(kw_only=True) class BedrockEmbeddingModelConfiguration(_SerdeShape): """The vector configuration details for the Bedrock embeddings model.""" @@ -979,6 +1167,60 @@ class BedrockEmbeddingModelConfiguration(_SerdeShape): [CreateKnowledgeBase](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateKnowledgeBase.html). """ +class BedrockEmbeddingModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `BedrockEmbeddingModelConfiguration`.""" + + dimensions: int | None + """ + The dimensions details for the vector configuration used on the Bedrock + embeddings model. + """ + embedding_data_type: str | None + """ + The data type for the vectors when using a model to convert text into + vector embeddings. The model must support the specified data type for + vector embeddings. Floating-point (float32) is the default data type, + and is supported by most models for vector embeddings. See [Supported + embeddings + models](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-supported.html) + for information on the available models and their vector data types. + """ + audio: Sequence[AudioConfiguration | AudioConfigurationDict] | None + """ + Configuration settings for processing audio content in multimodal + knowledge bases. + + Warning: + This field is deprecated. Use `modelConfiguration` instead. + """ + video: Sequence[VideoConfiguration | VideoConfigurationDict] | None + """ + Configuration settings for processing video content in multimodal + knowledge bases. + + Warning: + This field is deprecated. Use `modelConfiguration` instead. + """ + model_configuration: Document | None + """ + Model-specific configuration for the embedding model, provided as a JSON + object. Use this field to specify settings that apply to the embedding + model that you selected, such as how audio and video files are divided + into segments. + + The fields that this object accepts depend on the embedding model. For + the settings that each model accepts, see the documentation for that + model. + + For an example of a + [CreateKnowledgeBase](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateKnowledgeBase.html) + request that uses this field to configure a multimodal embedding model, + see the + [Examples](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateKnowledgeBase.html#API_agent_CreateKnowledgeBase_Examples) + section of + [CreateKnowledgeBase](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateKnowledgeBase.html). + """ + @dataclass(kw_only=True) class BedrockFoundationModelConfiguration(_SerdeShape): """ @@ -996,6 +1238,19 @@ class BedrockFoundationModelConfiguration(_SerdeShape): text and/or images. """ +class BedrockFoundationModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `BedrockFoundationModelConfiguration`.""" + + model_arn: Required[str] + """The ARN of the foundation model to use for parsing.""" + parsing_prompt: ParsingPrompt | ParsingPromptDict | None + """Instructions for interpreting the contents of a document.""" + parsing_modality: str | None + """ + Specifies whether to enable parsing of multimodal data, including both + text and/or images. + """ + @dataclass(kw_only=True) class BedrockFoundationModelContextEnrichmentConfiguration(_SerdeShape): """ @@ -1015,6 +1270,23 @@ class BedrockFoundationModelContextEnrichmentConfiguration(_SerdeShape): embeddings for the knowledge base. """ +class BedrockFoundationModelContextEnrichmentConfigurationDict(TypedDict, total=False): + """Dictionary form of `BedrockFoundationModelContextEnrichmentConfiguration`.""" + + enrichment_strategy_configuration: Required[ + EnrichmentStrategyConfiguration | EnrichmentStrategyConfigurationDict + ] + """ + The enrichment stategy used to provide additional context. For example, + Neptune GraphRAG uses Amazon Bedrock foundation models to perform chunk + entity extraction. + """ + model_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the model used to create vector + embeddings for the knowledge base. + """ + @dataclass(kw_only=True) class ByteContentDoc(_SerdeShape): """Contains information about content defined inline in bytes.""" @@ -1068,6 +1340,58 @@ class ByteContentDoc(_SerdeShape): data: bytes """The base64-encoded string of the content.""" +class ByteContentDocDict(TypedDict, total=False): + """Dictionary form of `ByteContentDoc`.""" + + mime_type: Required[str] + """ + The MIME type of the content. For a list of MIME types, see [Media + Types](https://www.iana.org/assignments/media-types/media-types.xhtml). + The following MIME types are supported: + + - text/plain + + - text/html + + - text/csv + + - text/vtt + + - message/rfc822 + + - application/xhtml+xml + + - application/pdf + + - application/msword + + - application/vnd.ms-word.document.macroenabled.12 + + - application/vnd.ms-word.template.macroenabled.12 + + - application/vnd.ms-excel + + - application/vnd.ms-excel.addin.macroenabled.12 + + - application/vnd.ms-excel.sheet.macroenabled.12 + + - application/vnd.ms-excel.template.macroenabled.12 + + - application/vnd.ms-excel.sheet.binary.macroenabled.12 + + - application/vnd.ms-spreadsheetml + + - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + - application/vnd.openxmlformats-officedocument.spreadsheetml.template + + - application/vnd.openxmlformats-officedocument.wordprocessingml.document + + - application/vnd.openxmlformats-officedocument.wordprocessingml.template + """ + data: Required[bytes] + """The base64-encoded string of the content.""" + @dataclass(kw_only=True) class CachePointBlock(_SerdeShape): """ @@ -1078,6 +1402,12 @@ class CachePointBlock(_SerdeShape): type: str """Indicates that the CachePointBlock is of the default type""" +class CachePointBlockDict(TypedDict, total=False): + """Dictionary form of `CachePointBlock`.""" + + type: Required[str] + """Indicates that the CachePointBlock is of the default type""" + class CachePointType(UnknownEnumMixin, StrEnum): DEFAULT = "default" @@ -1104,6 +1434,24 @@ class ChatPromptTemplateConfiguration(_SerdeShape): generating a response. """ +class ChatPromptTemplateConfigurationDict(TypedDict, total=False): + """Dictionary form of `ChatPromptTemplateConfiguration`.""" + + messages: Required[Sequence[Message | MessageDict]] + """Contains messages in the chat for the prompt.""" + system: Sequence[SystemContentBlock | SystemContentBlockDict] | None + """ + Contains system prompts to provide context to the model or to describe + how it should behave. + """ + input_variables: Sequence[PromptInputVariable | PromptInputVariableDict] | None + """An array of the variables in the prompt template.""" + tool_configuration: ToolConfiguration | ToolConfigurationDict | None + """ + Configuration information for the tools that the model can use when + generating a response. + """ + @dataclass(kw_only=True) class ChunkingConfiguration(_SerdeShape): """ @@ -1156,6 +1504,59 @@ class ChunkingConfiguration(_SerdeShape): processing. """ +class ChunkingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ChunkingConfiguration`.""" + + chunking_strategy: Required[str] + """ + Knowledge base can split your source data into chunks. A *chunk* refers + to an excerpt from a data source that is returned when the knowledge + base that it belongs to is queried. You have the following options for + chunking your data. If you opt for `NONE`, then you may want to + pre-process your files by splitting them up such that each file + corresponds to a chunk. + + - `FIXED_SIZE` -- Amazon Bedrock splits your source data into chunks of + the approximate size that you set in the + `fixedSizeChunkingConfiguration`. + + - `HIERARCHICAL` -- Split documents into layers of chunks where the + first layer contains large chunks, and the second layer contains + smaller chunks derived from the first layer. + + - `SEMANTIC` -- Split documents into chunks based on groups of similar + content derived with natural language processing. + + - `NONE` -- Amazon Bedrock treats each file as one chunk. If you choose + this option, you may want to pre-process your documents by splitting + them into separate files. + """ + fixed_size_chunking_configuration: ( + FixedSizeChunkingConfiguration | FixedSizeChunkingConfigurationDict | None + ) + """ + Configurations for when you choose fixed-size chunking. If you set the + `chunkingStrategy` as `NONE`, exclude this field. + """ + hierarchical_chunking_configuration: ( + HierarchicalChunkingConfiguration | HierarchicalChunkingConfigurationDict | None + ) + """ + Settings for hierarchical document chunking for a data source. + Hierarchical chunking splits documents into layers of chunks where the + first layer contains large chunks, and the second layer contains smaller + chunks derived from the first layer. + """ + semantic_chunking_configuration: ( + SemanticChunkingConfiguration | SemanticChunkingConfigurationDict | None + ) + """ + Settings for semantic document chunking for a data source. Semantic + chunking splits a document into into smaller documents based on groups + of similar content derived from the text with natural language + processing. + """ + class ChunkingStrategy(UnknownEnumMixin, StrEnum): FIXED_SIZE = "FIXED_SIZE" NONE = "NONE" @@ -1172,6 +1573,9 @@ class CollectorFlowNodeConfiguration(_SerdeShape): in the Amazon Bedrock User Guide. """ +class CollectorFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `CollectorFlowNodeConfiguration`.""" + class ConcurrencyType(UnknownEnumMixin, StrEnum): AUTOMATIC = "Automatic" MANUAL = "Manual" @@ -1192,6 +1596,15 @@ class ConditionFlowNodeConfiguration(_SerdeShape): an expression that defines the condition. """ +class ConditionFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `ConditionFlowNodeConfiguration`.""" + + conditions: Required[Sequence[FlowCondition | FlowConditionDict]] + """ + An array of conditions. Each member contains the name of a condition and + an expression that defines the condition. + """ + @dataclass(kw_only=True) class ConflictException(ServiceError, _SerdeShape): """There was a conflict performing an operation.""" @@ -1222,6 +1635,16 @@ class ConfluenceCrawlerConfiguration(_SerdeShape): content. """ +class ConfluenceCrawlerConfigurationDict(TypedDict, total=False): + """Dictionary form of `ConfluenceCrawlerConfiguration`.""" + + filter_configuration: CrawlFilterConfiguration | CrawlFilterConfigurationDict | None + """ + The configuration of filtering the Confluence content. For example, + configuring regular expression patterns to include or exclude certain + content. + """ + @dataclass(kw_only=True) class ConfluenceDataSourceConfiguration(_SerdeShape): """ @@ -1237,6 +1660,21 @@ class ConfluenceDataSourceConfiguration(_SerdeShape): specific types of Confluence content. """ +class ConfluenceDataSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `ConfluenceDataSourceConfiguration`.""" + + source_configuration: Required[ + ConfluenceSourceConfiguration | ConfluenceSourceConfigurationDict + ] + """The endpoint information to connect to your Confluence data source.""" + crawler_configuration: ( + ConfluenceCrawlerConfiguration | ConfluenceCrawlerConfigurationDict | None + ) + """ + The configuration of the Confluence content. For example, configuring + specific types of Confluence content. + """ + class ConfluenceHostType(UnknownEnumMixin, StrEnum): SAAS = "SAAS" @@ -1262,6 +1700,27 @@ class ConfluenceSourceConfiguration(_SerdeShape): configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/confluence-data-source-connector.html#configuration-confluence-connector). """ +class ConfluenceSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `ConfluenceSourceConfiguration`.""" + + host_url: Required[str] + """The Confluence host URL or instance URL.""" + host_type: Required[str] + """The supported host type, whether online/cloud or server/on-premises.""" + auth_type: Required[str] + """ + The supported authentication type to authenticate and connect to your + Confluence instance. + """ + credentials_secret_arn: Required[str] + """ + The Amazon Resource Name of an Secrets Manager secret that stores your + authentication credentials for your Confluence instance URL. For more + information on the key-value pairs that must be included in your secret, + depending on your authentication type, see [Confluence connection + configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/confluence-data-source-connector.html#configuration-confluence-connector). + """ + @dataclass class ContentBlockText(_SerdeShape): """The text in the message.""" @@ -1294,6 +1753,17 @@ management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-manageme class _ContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ContentBlock: ... +class ContentBlockTextDict(TypedDict): + text: str + """The text in the message.""" + +class ContentBlockCachePointDict(TypedDict): + cache_point: CachePointBlock | CachePointBlockDict + """Creates a cache checkpoint within a message.""" + +ContentBlockDict = Union[ContentBlockTextDict | ContentBlockCachePointDict] +"""Dictionary form of `ContentBlock`, setting exactly one variant.""" + class ContentDataSourceType(UnknownEnumMixin, StrEnum): CUSTOM = "CUSTOM" S3 = "S3" @@ -1318,6 +1788,24 @@ class ContextEnrichmentConfiguration(_SerdeShape): context enrichment. """ +class ContextEnrichmentConfigurationDict(TypedDict, total=False): + """Dictionary form of `ContextEnrichmentConfiguration`.""" + + type: Required[str] + """ + The method used for context enrichment. It must be Amazon Bedrock + foundation models. + """ + bedrock_foundation_model_configuration: ( + BedrockFoundationModelContextEnrichmentConfiguration + | BedrockFoundationModelContextEnrichmentConfigurationDict + | None + ) + """ + The configuration of the Amazon Bedrock foundation model used for + context enrichment. + """ + class ContextEnrichmentType(UnknownEnumMixin, StrEnum): BEDROCK_FOUNDATION_MODEL = "BEDROCK_FOUNDATION_MODEL" @@ -1345,6 +1833,23 @@ class CrawlFilterConfiguration(_SerdeShape): data source. """ +class CrawlFilterConfigurationDict(TypedDict, total=False): + """Dictionary form of `CrawlFilterConfiguration`.""" + + type: Required[str] + """ + The type of filtering that you want to apply to certain objects or + content of the data source. For example, the `PATTERN` type is regular + expression patterns you can apply to filter your content. + """ + pattern_object_filter: ( + PatternObjectFilterConfiguration | PatternObjectFilterConfigurationDict | None + ) + """ + The configuration of filtering certain objects or content types of the + data source. + """ + class CrawlFilterConfigurationType(UnknownEnumMixin, StrEnum): PATTERN = "PATTERN" @@ -1442,6 +1947,99 @@ class CreateAgentActionGroupInput(_SerdeShape): JSON or YAML-formatted payload defining the schema. """ +class CreateAgentActionGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateAgentActionGroupInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent for which to create the action group.""" + agent_version: Required[str] + """The version of the agent for which to create the action group.""" + action_group_name: Required[str] + """The name to give the action group.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + description: str | None + """A description of the action group.""" + parent_action_group_signature: str | None + """ + Specify a built-in or computer use action for this action group. If you + specify a value, you must leave the `description`, `apiSchema`, and + `actionGroupExecutor` fields empty for this action group. + + - To allow your agent to request the user for additional information + when trying to complete a task, set this field to `AMAZON.UserInput`. + + - To allow your agent to generate, run, and troubleshoot code when + trying to complete a task, set this field to `AMAZON.CodeInterpreter`. + + - To allow your agent to use an Anthropic computer use tool, specify one + of the following values. + + Warning: + Computer use is a new Anthropic Claude model capability (in beta) + available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 + only. When operating computer use functionality, we recommend taking + additional security precautions, such as executing computer actions in + virtual environments with restricted data access and limited internet + connectivity. For more information, see [Configure an Amazon Bedrock + Agent to complete tasks with computer use + tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html). + + - `ANTHROPIC.Computer` - Gives the agent permission to use the mouse + and keyboard and take screenshots. + + - `ANTHROPIC.TextEditor` - Gives the agent permission to view, create + and edit files. + + - `ANTHROPIC.Bash` - Gives the agent permission to run commands in a + bash shell. + """ + parent_action_group_signature_params: Mapping[str, str] | None + """ + The configuration settings for a computer use action. + + Warning: + Computer use is a new Anthropic Claude model capability (in beta) + available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 + only. For more information, see [Configure an Amazon Bedrock Agent to + complete tasks with computer use + tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html). + """ + action_group_executor: ActionGroupExecutor | ActionGroupExecutorDict | None + """ + The Amazon Resource Name (ARN) of the Lambda function containing the + business logic that is carried out upon invoking the action or the + custom control method for handling the information elicited from the + user. + """ + api_schema: APISchema | APISchemaDict | None + """ + Contains either details about the S3 object containing the OpenAPI + schema for the action group or the JSON or YAML-formatted payload + defining the schema. For more information, see [Action group OpenAPI + schemas](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-api-schema.html). + """ + action_group_state: str | None + """ + Specifies whether the action group is available for the agent to invoke + or not when sending an + [InvokeAgent](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) + request. + """ + function_schema: FunctionSchema | FunctionSchemaDict | None + """ + Contains details about the function schema for the action group or the + JSON or YAML-formatted payload defining the schema. + """ + @dataclass(kw_only=True) class CreateAgentActionGroupOutput(_SerdeShape): """Dataclass for CreateAgentActionGroupOutput structure.""" @@ -1481,6 +2079,36 @@ class CreateAgentAliasInput(_SerdeShape): tags: dict[str, str] | None = ... """Any tags that you want to attach to the alias of the agent.""" +class CreateAgentAliasInputDict(TypedDict, total=False): + """Dictionary form of `CreateAgentAliasInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent.""" + agent_alias_name: Required[str] + """The name of the alias.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + description: str | None + """A description of the alias of the agent.""" + routing_configuration: ( + Sequence[ + AgentAliasRoutingConfigurationListItem + | AgentAliasRoutingConfigurationListItemDict + ] + | None + ) + """Contains details about the routing configuration of the alias.""" + tags: Mapping[str, str] | None + """Any tags that you want to attach to the alias of the agent.""" + @dataclass(kw_only=True) class CreateAgentAliasOutput(_SerdeShape): """Dataclass for CreateAgentAliasOutput structure.""" @@ -1601,6 +2229,113 @@ class CreateAgentInput(_SerdeShape): agent_collaboration: str | None = ... """The agent's collaboration role.""" +class CreateAgentInputDict(TypedDict, total=False): + """Dictionary form of `CreateAgentInput`.""" + + agent_name: Required[str] + """A name for the agent that you create.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + instruction: str | None + """ + Instructions that tell the agent what it should do and how it should + interact with users. + """ + foundation_model: str | None + """ + The identifier for the model that you want to be used for orchestration + by the agent you create. + + The `modelId` to provide depends on the type of model or throughput that + you use: + + - If you use a base model, specify the model ID or its ARN. For a list + of model IDs for base models, see [Amazon Bedrock base model IDs + (on-demand + throughput)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) + in the Amazon Bedrock User Guide. + + - If you use an inference profile, specify the inference profile ID or + its ARN. For a list of inference profile IDs, see [Supported Regions + and models for cross-region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) + in the Amazon Bedrock User Guide. + + - If you use a provisioned model, specify the ARN of the Provisioned + Throughput. For more information, see [Run inference using a + Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html) + in the Amazon Bedrock User Guide. + + - If you use a custom model, first purchase Provisioned Throughput for + it. Then specify the ARN of the resulting provisioned model. For more + information, see [Use a custom model in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html) + in the Amazon Bedrock User Guide. + + - If you use an [imported + model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html), + specify the ARN of the imported model. You can get the model ARN from + a successful call to + [CreateModelImportJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html) + or from the Imported models page in the Amazon Bedrock console. + """ + description: str | None + """A description of the agent.""" + orchestration_type: str | None + """ + Specifies the type of orchestration strategy for the agent. This is set + to `DEFAULT` orchestration type, by default. + """ + custom_orchestration: CustomOrchestration | CustomOrchestrationDict | None + """Contains details of the custom orchestration configured for the agent.""" + idle_session_ttl_in_seconds: int | None + """ + The number of seconds for which Amazon Bedrock keeps information about a + user's conversation with the agent. + + A user interaction remains active for the amount of time specified. If + no conversation occurs during this time, the session expires and Amazon + Bedrock deletes any data provided before the timeout. + """ + agent_resource_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role with permissions to + invoke API operations on the agent. + """ + customer_encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the KMS key with which to encrypt the + agent. + """ + tags: Mapping[str, str] | None + """Any tags that you want to attach to the agent.""" + prompt_override_configuration: ( + PromptOverrideConfiguration | PromptOverrideConfigurationDict | None + ) + """ + Contains configurations to override prompts in different parts of an + agent sequence. For more information, see [Advanced + prompts](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html). + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """ + The unique Guardrail configuration assigned to the agent when it is + created. + """ + memory_configuration: MemoryConfiguration | MemoryConfigurationDict | None + """Contains the details of the memory configured for the agent.""" + agent_collaboration: str | None + """The agent's collaboration role.""" + @dataclass(kw_only=True) class CreateAgentOutput(_SerdeShape): """Dataclass for CreateAgentOutput structure.""" @@ -1666,6 +2401,62 @@ class CreateDataSourceInput(_SerdeShape): vector_ingestion_configuration: VectorIngestionConfiguration | None = ... """Contains details about how to ingest the documents in the data source.""" +class CreateDataSourceInputDict(TypedDict, total=False): + """Dictionary form of `CreateDataSourceInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base to which to add the data + source. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + name: Required[str] + """The name of the data source.""" + description: str | None + """A description of the data source.""" + data_source_configuration: Required[ + DataSourceConfiguration | DataSourceConfigurationDict + ] + """The connection configuration for the data source.""" + data_deletion_policy: str | None + """ + The data deletion policy for the data source. + + You can set the data deletion policy to: + + - DELETE: Deletes all data from your data source that's converted into + vector embeddings upon deletion of a knowledge base or data source + resource. Note that the **vector store itself is not deleted**, only + the data. This flag is ignored if an Amazon Web Services account is + deleted. + + - RETAIN: Retains all data from your data source that's converted into + vector embeddings upon deletion of a knowledge base or data source + resource. Note that the **vector store itself is not deleted** if you + delete a knowledge base or data source resource. + + Note: + For managed knowledge bases, the only supported option is `DELETE`, + which is also the default. + """ + server_side_encryption_configuration: ( + ServerSideEncryptionConfiguration | ServerSideEncryptionConfigurationDict | None + ) + """Contains details about the server-side encryption for the data source.""" + vector_ingestion_configuration: ( + VectorIngestionConfiguration | VectorIngestionConfigurationDict | None + ) + """Contains details about how to ingest the documents in the data source.""" + @dataclass(kw_only=True) class CreateDataSourceOutput(_SerdeShape): """Dataclass for CreateDataSourceOutput structure.""" @@ -1714,6 +2505,46 @@ class CreateFlowAliasInput(_SerdeShape): Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html). """ +class CreateFlowAliasInputDict(TypedDict, total=False): + """Dictionary form of `CreateFlowAliasInput`.""" + + name: Required[str] + """A name for the alias.""" + description: str | None + """A description for the alias.""" + routing_configuration: Required[ + Sequence[ + FlowAliasRoutingConfigurationListItem + | FlowAliasRoutingConfigurationListItemDict + ] + ] + """Contains information about the version to which to map the alias.""" + concurrency_configuration: ( + FlowAliasConcurrencyConfiguration | FlowAliasConcurrencyConfigurationDict | None + ) + """ + The configuration that specifies how nodes in the flow are executed in + parallel. + """ + flow_identifier: Required[str] + """The unique identifier of the flow for which to create an alias.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + Any tags that you want to attach to the alias of the flow. For more + information, see [Tagging resources in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html). + """ + @dataclass(kw_only=True) class CreateFlowAliasOutput(_SerdeShape): """Dataclass for CreateFlowAliasOutput structure.""" @@ -1784,6 +2615,42 @@ class CreateFlowInput(_SerdeShape): Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html). """ +class CreateFlowInputDict(TypedDict, total=False): + """Dictionary form of `CreateFlowInput`.""" + + name: Required[str] + """A name for the flow.""" + description: str | None + """A description for the flow.""" + execution_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the service role with permissions to + create and manage a flow. For more information, see [Create a service + role for flows in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) + in the Amazon Bedrock User Guide. + """ + customer_encryption_key_arn: str | None + """The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.""" + definition: FlowDefinition | FlowDefinitionDict | None + """A definition of the nodes and connections between nodes in the flow.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + Any tags that you want to attach to the flow. For more information, see + [Tagging resources in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html). + """ + @dataclass(kw_only=True) class CreateFlowOutput(_SerdeShape): """Dataclass for CreateFlowOutput structure.""" @@ -1852,6 +2719,24 @@ class CreateFlowVersionInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateFlowVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateFlowVersionInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow that you want to create a version of.""" + description: str | None + """A description of the version of the flow.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateFlowVersionOutput(_SerdeShape): """Dataclass for CreateFlowVersionOutput structure.""" @@ -1929,6 +2814,43 @@ class CreateKnowledgeBaseInput(_SerdeShape): knowledge base in this object. """ +class CreateKnowledgeBaseInputDict(TypedDict, total=False): + """Dictionary form of `CreateKnowledgeBaseInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + name: Required[str] + """A name for the knowledge base.""" + description: str | None + """A description of the knowledge base.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role with permissions to + invoke API operations on the knowledge base. + """ + knowledge_base_configuration: Required[ + KnowledgeBaseConfiguration | KnowledgeBaseConfigurationDict + ] + """Contains details about the embeddings model used for the knowledge base.""" + storage_configuration: StorageConfiguration | StorageConfigurationDict | None + """ + Contains details about the configuration of the vector database used for + the knowledge base. + """ + tags: Mapping[str, str] | None + """ + Specify the key-value pairs for the tags that you want to attach to your + knowledge base in this object. + """ + @dataclass(kw_only=True) class CreateKnowledgeBaseOutput(_SerdeShape): """Dataclass for CreateKnowledgeBaseOutput structure.""" @@ -1943,29 +2865,67 @@ class CreateKnowledgeBaseOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class CreatePromptInput(_SerdeShape): - """Dataclass for CreatePromptInput structure.""" +@dataclass(kw_only=True) +class CreatePromptInput(_SerdeShape): + """Dataclass for CreatePromptInput structure.""" + + name: str | None = ... + """A name for the prompt.""" + description: str | None = ... + """A description for the prompt.""" + customer_encryption_key_arn: str | None = ... + """The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.""" + default_variant: str | None = ... + """ + The name of the default variant for the prompt. This value must match + the `name` field in the relevant + [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + object. + """ + variants: list[PromptVariant] | None = ... + """ + A list of objects, each containing details about a variant of the + prompt. + """ + client_token: str | None = ... + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + tags: dict[str, str] | None = ... + """ + Any tags that you want to attach to the prompt. For more information, + see [Tagging resources in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html). + """ + +class CreatePromptInputDict(TypedDict, total=False): + """Dictionary form of `CreatePromptInput`.""" - name: str | None = ... + name: Required[str] """A name for the prompt.""" - description: str | None = ... + description: str | None """A description for the prompt.""" - customer_encryption_key_arn: str | None = ... + customer_encryption_key_arn: str | None """The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.""" - default_variant: str | None = ... + default_variant: str | None """ The name of the default variant for the prompt. This value must match the `name` field in the relevant [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) object. """ - variants: list[PromptVariant] | None = ... + variants: Sequence[PromptVariant | PromptVariantDict] | None """ A list of objects, each containing details about a variant of the prompt. """ - client_token: str | None = ... + client_token: str | None """ A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous @@ -1975,7 +2935,7 @@ class CreatePromptInput(_SerdeShape): This field is autopopulated if not provided. """ - tags: dict[str, str] | None = ... + tags: Mapping[str, str] | None """ Any tags that you want to attach to the prompt. For more information, see [Tagging resources in Amazon @@ -2051,6 +3011,33 @@ class CreatePromptVersionInput(_SerdeShape): Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html). """ +class CreatePromptVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreatePromptVersionInput`.""" + + prompt_identifier: Required[str] + """ + The unique identifier of the prompt that you want to create a version + of. + """ + description: str | None + """A description for the version of the prompt.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + Any tags that you want to attach to the version of the prompt. For more + information, see [Tagging resources in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html). + """ + @dataclass(kw_only=True) class CreatePromptVersionOutput(_SerdeShape): """Dataclass for CreatePromptVersionOutput structure.""" @@ -2127,6 +3114,35 @@ class CreateRetrievalInstructionInput(_SerdeShape): tags: dict[str, str] | None = ... """Tags for the retrieval instruction.""" +class CreateRetrievalInstructionInputDict(TypedDict, total=False): + """Dictionary form of `CreateRetrievalInstructionInput`.""" + + client_token: str | None + """ + A caller-supplied token that makes a retried create return the existing + resource rather than a second one. The window is 8 hours. + + This field is autopopulated if not provided. + """ + name: Required[str] + """Specifies the name of the retrieval instruction.""" + instruction: Required[RetrievalInstructionContent | RetrievalInstructionContentDict] + """ + The instruction content, as a set of named fields. Get does not return + this field until the create review passes. + """ + description: str | None + """Specifies a description of the retrieval instruction.""" + customer_encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of a customer managed AWS Key Management + Service (AWS KMS) key used to encrypt the instruction content at rest. + If you omit it, the service uses an AWS owned key. You fix the key at + create and cannot change it later. + """ + tags: Mapping[str, str] | None + """Tags for the retrieval instruction.""" + @dataclass(kw_only=True) class CreateRetrievalInstructionOutput(_SerdeShape): """Dataclass for CreateRetrievalInstructionOutput structure.""" @@ -2180,6 +3196,25 @@ class CreateRetrievalInstructionVersionInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateRetrievalInstructionVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateRetrievalInstructionVersionInput`.""" + + retrieval_instruction_id: Required[str] + """The identifier of the retrieval instruction to version.""" + description: str | None + """ + A description of this version. Independent of the retrieval + instruction's own description. + """ + client_token: str | None + """ + A caller-supplied token that makes a retried call return the version + created by the first call rather than a second version. The window is 8 + hours. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateRetrievalInstructionVersionOutput(_SerdeShape): """Dataclass for CreateRetrievalInstructionVersionOutput structure.""" @@ -2309,6 +3344,105 @@ class CreateVpcConfigurationInput(_SerdeShape): a description, the VPC configuration has no description. """ +class CreateVpcConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcConfigurationInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base to associate this VPC + configuration with. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, the service ignores the request but does not return an error. + + This field is autopopulated if not provided. + """ + vpc_id: Required[str] + """ + The identifier of the VPC that the knowledge base connects through to + reach the resource. + """ + subnet_ids: Required[Sequence[str]] + """ + The subnets, in the VPC identified by `vpcId`, that the knowledge base + uses to connect to the resource. + """ + resource_target: Required[str] + """ + The private IPv4 address or DNS name of the resource you want the + knowledge base to reach. The target must be privately reachable from + inside your VPC, such as an internal load balancer or a private IP. The + following are not supported: + + - Internet-facing endpoints + + - Loopback addresses + + - Link-local addresses + + - Wildcard addresses + + - Multicast addresses + + - IPv6 literals + """ + port: Required[int] + """The port on which to reach the resource.""" + protocol: Required[str] + """ + The protocol used to connect to the resource. Specify `HTTP` for + plaintext or `HTTPS` for TLS. When you specify `HTTPS`, you must also + provide `tlsServerName`. + """ + resolution_mode: Required[str] + """ + Controls how a domain-name `resourceTarget` is resolved. This applies + only when the target is a domain name; it has no effect for IP-address + targets, which have no name to resolve. In all cases the resolved + address must be reachable from inside your VPC. Valid values: + + - `IN_VPC` (default, recommended) -- The target domain name is resolved + privately, using the DNS resolvers of the VPC, such as private Route + 53 hosted zones or on-premises DNS reachable from the VPC. Use this + for targets that are private to your VPC, such as internal load + balancers, private hosted-zone names, or on-premises hosts. + + - `PUBLIC` -- The target domain name is resolved against public DNS + resolvers. Select this only when the target's domain name must be + resolved through public DNS and the resulting address is still + reachable from the VPC, an uncommon split-horizon configuration. If + you are unsure, use `IN_VPC`. + """ + host_header: str | None + """ + An optional HTTP `Host` header value to send when invoking the resource. + Set this only if your resource (or an upstream router or ingress) routes + by the `Host` header and that host differs from the target. This setting + is independent of `tlsServerName`. + """ + tls_server_name: str | None + """ + The expected TLS server name. The service matches this value against the + Subject Alternative Names on your resource's TLS certificate during + invocation. This field is required when `protocol` is `HTTPS`. Set it to + a hostname on your certificate, such as `app.internal.example.com`. You + can use a single leftmost wildcard, such as `*.example.com`. The value + must be a hostname without a port. + """ + name: str | None + """ + An optional human-readable name for the VPC configuration. If you don't + specify a name, the VPC configuration has no name. + """ + description: str | None + """ + An optional description of the VPC configuration. If you don't specify + a description, the VPC configuration has no description. + """ + @dataclass(kw_only=True) class CreateVpcConfigurationOutput(_SerdeShape): """Dataclass for CreateVpcConfigurationOutput structure.""" @@ -2345,6 +3479,14 @@ class CuratedQuery(_SerdeShape): sql: str """The SQL equivalent of the natural language query.""" +class CuratedQueryDict(TypedDict, total=False): + """Dictionary form of `CuratedQuery`.""" + + natural_language: Required[str] + """An example natural language query.""" + sql: Required[str] + """The SQL equivalent of the natural language query.""" + @dataclass(kw_only=True) class CustomContent(_SerdeShape): """ @@ -2368,6 +3510,26 @@ class CustomContent(_SerdeShape): knowledge base. """ +class CustomContentDict(TypedDict, total=False): + """Dictionary form of `CustomContent`.""" + + custom_document_identifier: Required[ + CustomDocumentIdentifier | CustomDocumentIdentifierDict + ] + """A unique identifier for the document.""" + source_type: Required[str] + """The source of the data to ingest.""" + s3_location: CustomS3Location | CustomS3LocationDict | None + """ + Contains information about the Amazon S3 location of the file from which + to ingest data. + """ + inline_content: InlineContent | InlineContentDict | None + """ + Contains information about content defined inline to ingest into a + knowledge base. + """ + class CustomControlMethod(UnknownEnumMixin, StrEnum): RETURN_CONTROL = "RETURN_CONTROL" @@ -2381,6 +3543,12 @@ class CustomDocumentIdentifier(_SerdeShape): id: str """The identifier of the document to ingest into a custom data source.""" +class CustomDocumentIdentifierDict(TypedDict, total=False): + """Dictionary form of `CustomDocumentIdentifier`.""" + + id: Required[str] + """The identifier of the document to ingest into a custom data source.""" + @dataclass(kw_only=True) class CustomOrchestration(_SerdeShape): """Details of custom orchestration.""" @@ -2391,6 +3559,15 @@ class CustomOrchestration(_SerdeShape): orchestration. """ +class CustomOrchestrationDict(TypedDict, total=False): + """Dictionary form of `CustomOrchestration`.""" + + executor: OrchestrationExecutor | OrchestrationExecutorDict | None + """ + The structure of the executor invoking the actions in custom + orchestration. + """ + @dataclass(kw_only=True) class CustomS3Location(_SerdeShape): """ @@ -2407,6 +3584,17 @@ class CustomS3Location(_SerdeShape): bucket containing the content to ingest. """ +class CustomS3LocationDict(TypedDict, total=False): + """Dictionary form of `CustomS3Location`.""" + + uri: Required[str] + """The S3 URI of the file containing the content to ingest.""" + bucket_owner_account_id: str | None + """ + The identifier of the Amazon Web Services account that owns the S3 + bucket containing the content to ingest. + """ + class CustomSourceType(UnknownEnumMixin, StrEnum): IN_LINE = "IN_LINE" S3_LOCATION = "S3_LOCATION" @@ -2433,6 +3621,14 @@ class CustomTransformationConfiguration(_SerdeShape): transformations: list[Transformation] """A Lambda function that processes documents.""" +class CustomTransformationConfigurationDict(TypedDict, total=False): + """Dictionary form of `CustomTransformationConfiguration`.""" + + intermediate_storage: Required[IntermediateStorage | IntermediateStorageDict] + """An S3 bucket path for input and output objects.""" + transformations: Required[Sequence[Transformation | TransformationDict]] + """A Lambda function that processes documents.""" + @dataclass(kw_only=True) class CyclicConnectionFlowValidationDetails(_SerdeShape): """Details about a cyclic connection detected in the flow.""" @@ -2447,6 +3643,9 @@ class DailySchedule(_SerdeShape): configurable. """ +class DailyScheduleDict(TypedDict, total=False): + """Dictionary form of `DailySchedule`.""" + class DataDeletionPolicy(UnknownEnumMixin, StrEnum): RETAIN = "RETAIN" DELETE = "DELETE" @@ -2466,52 +3665,119 @@ class DataSource(_SerdeShape): """The name of the data source.""" status: str """ - The status of the data source. The following statuses are possible: + The status of the data source. The following statuses are possible: + + - Available -- The data source has been created and is ready for + ingestion into the knowledge base. + + - Deleting -- The data source is being deleted. + """ + description: str | None = ... + """The description of the data source.""" + data_source_configuration: DataSourceConfiguration + """The connection configuration for the data source.""" + server_side_encryption_configuration: ServerSideEncryptionConfiguration | None = ... + """Contains details about the configuration of the server-side encryption.""" + vector_ingestion_configuration: VectorIngestionConfiguration | None = ... + """Contains details about how to ingest the documents in the data source.""" + data_deletion_policy: str | None = ... + """The data deletion policy for the data source.""" + created_at: datetime + """The time at which the data source was created.""" + updated_at: datetime + """The time at which the data source was last updated.""" + failure_reasons: list[str] | None = ... + """The detailed reasons on the failure to delete a data source.""" + +@dataclass(kw_only=True) +class DataSourceConfiguration(_SerdeShape): + """The connection configuration for the data source.""" + + type: str + """The type of data source.""" + managed_knowledge_base_connector_configuration: ( + ManagedKnowledgeBaseConnectorConfiguration | None + ) = ... + """ + Contains the configuration for a data source that connects a managed + knowledge base to a supported data source connector. Specify this object + when the data source type is `MANAGED_KNOWLEDGE_BASE_CONNECTOR`. + """ + s3_configuration: S3DataSourceConfiguration | None = ... + """ + The configuration information to connect to Amazon S3 as your data + source for self-managed knowledge bases. To configure this data source + for managed knowledge bases, use + [managedKnowledgeBaseConnectorConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ManagedKnowledgeBaseConnectorConfiguration.html). + """ + web_configuration: WebDataSourceConfiguration | None = ... + """ + The configuration of web URLs to crawl for your data source. You should + be authorized to crawl the URLs. + + Note: + To configure this data source for managed knowledge bases, use + [managedKnowledgeBaseConnectorConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ManagedKnowledgeBaseConnectorConfiguration.html). + Web crawler data source connector for self-managed knowledge bases is in + preview release and is subject to change. + """ + confluence_configuration: ConfluenceDataSourceConfiguration | None = ... + """ + The configuration information to connect to Confluence as your data + source for self-managed knowledge bases. + + Note: + To configure this data source for managed knowledge bases, use + [managedKnowledgeBaseConnectorConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ManagedKnowledgeBaseConnectorConfiguration.html). + Confluence data source connector for self-managed knowledge bases is in + preview release and is subject to change. + """ + salesforce_configuration: SalesforceDataSourceConfiguration | None = ... + """ + The configuration information to connect to Salesforce as your data + source. - - Available -- The data source has been created and is ready for - ingestion into the knowledge base. + Note: + Salesforce data source connector for self-managed knowledge bases is in + preview release and is subject to change. + """ + share_point_configuration: SharePointDataSourceConfiguration | None = ... + """ + The configuration information to connect to SharePoint as your data + source for self-managed knowledge bases. - - Deleting -- The data source is being deleted. + Note: + To configure this data source for managed knowledge bases, use + [managedKnowledgeBaseConnectorConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ManagedKnowledgeBaseConnectorConfiguration.html). + SharePoint data source connector for self-managed knowledge bases is in + preview release and is subject to change. """ - description: str | None = ... - """The description of the data source.""" - data_source_configuration: DataSourceConfiguration - """The connection configuration for the data source.""" - server_side_encryption_configuration: ServerSideEncryptionConfiguration | None = ... - """Contains details about the configuration of the server-side encryption.""" - vector_ingestion_configuration: VectorIngestionConfiguration | None = ... - """Contains details about how to ingest the documents in the data source.""" - data_deletion_policy: str | None = ... - """The data deletion policy for the data source.""" - created_at: datetime - """The time at which the data source was created.""" - updated_at: datetime - """The time at which the data source was last updated.""" - failure_reasons: list[str] | None = ... - """The detailed reasons on the failure to delete a data source.""" -@dataclass(kw_only=True) -class DataSourceConfiguration(_SerdeShape): - """The connection configuration for the data source.""" +class DataSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `DataSourceConfiguration`.""" - type: str + type: Required[str] """The type of data source.""" managed_knowledge_base_connector_configuration: ( - ManagedKnowledgeBaseConnectorConfiguration | None - ) = ... + ManagedKnowledgeBaseConnectorConfiguration + | ManagedKnowledgeBaseConnectorConfigurationDict + | None + ) """ Contains the configuration for a data source that connects a managed knowledge base to a supported data source connector. Specify this object when the data source type is `MANAGED_KNOWLEDGE_BASE_CONNECTOR`. """ - s3_configuration: S3DataSourceConfiguration | None = ... + s3_configuration: S3DataSourceConfiguration | S3DataSourceConfigurationDict | None """ The configuration information to connect to Amazon S3 as your data source for self-managed knowledge bases. To configure this data source for managed knowledge bases, use [managedKnowledgeBaseConnectorConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ManagedKnowledgeBaseConnectorConfiguration.html). """ - web_configuration: WebDataSourceConfiguration | None = ... + web_configuration: ( + WebDataSourceConfiguration | WebDataSourceConfigurationDict | None + ) """ The configuration of web URLs to crawl for your data source. You should be authorized to crawl the URLs. @@ -2522,7 +3788,9 @@ class DataSourceConfiguration(_SerdeShape): Web crawler data source connector for self-managed knowledge bases is in preview release and is subject to change. """ - confluence_configuration: ConfluenceDataSourceConfiguration | None = ... + confluence_configuration: ( + ConfluenceDataSourceConfiguration | ConfluenceDataSourceConfigurationDict | None + ) """ The configuration information to connect to Confluence as your data source for self-managed knowledge bases. @@ -2533,7 +3801,9 @@ class DataSourceConfiguration(_SerdeShape): Confluence data source connector for self-managed knowledge bases is in preview release and is subject to change. """ - salesforce_configuration: SalesforceDataSourceConfiguration | None = ... + salesforce_configuration: ( + SalesforceDataSourceConfiguration | SalesforceDataSourceConfigurationDict | None + ) """ The configuration information to connect to Salesforce as your data source. @@ -2542,7 +3812,9 @@ class DataSourceConfiguration(_SerdeShape): Salesforce data source connector for self-managed knowledge bases is in preview release and is subject to change. """ - share_point_configuration: SharePointDataSourceConfiguration | None = ... + share_point_configuration: ( + SharePointDataSourceConfiguration | SharePointDataSourceConfigurationDict | None + ) """ The configuration information to connect to SharePoint as your data source for self-managed knowledge bases. @@ -2629,6 +3901,23 @@ of `dayNumber` or `lastDayOfMonth`. class _DayOfMonthDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> DayOfMonth: ... +class DayOfMonthDayNumberDict(TypedDict): + day_number: int + """ + A specific day of the month, from 1 to 28. Values are capped at 28, so a + monthly sync runs in every month, including February. + """ + +class DayOfMonthLastDayOfMonthDict(TypedDict): + last_day_of_month: LastDayOfMonth | LastDayOfMonthDict + """ + Set this option to run the monthly sync on the last calendar day of each + month. + """ + +DayOfMonthDict = Union[DayOfMonthDayNumberDict | DayOfMonthLastDayOfMonthDict] +"""Dictionary form of `DayOfMonth`, setting exactly one variant.""" + class DayOfWeek(UnknownEnumMixin, StrEnum): """ The day of the week on which a weekly sync runs. Valid values are the @@ -2660,6 +3949,22 @@ class DeleteAgentActionGroupInput(_SerdeShape): deleted even if the resource is in use. """ +class DeleteAgentActionGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAgentActionGroupInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent that the action group belongs to.""" + agent_version: Required[str] + """The version of the agent that the action group belongs to.""" + action_group_id: Required[str] + """The unique identifier of the action group to delete.""" + skip_resource_in_use_check: bool | None + """ + By default, this value is `false` and deletion is stopped if the + resource is in use. If you set it to `true`, the resource will be + deleted even if the resource is in use. + """ + @dataclass(kw_only=True) class DeleteAgentActionGroupOutput(_SerdeShape): """Dataclass for DeleteAgentActionGroupOutput structure.""" @@ -2681,6 +3986,14 @@ class DeleteAgentAliasInput(_SerdeShape): agent_alias_id: str | None = ... """The unique identifier of the alias to delete.""" +class DeleteAgentAliasInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAgentAliasInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent that the alias belongs to.""" + agent_alias_id: Required[str] + """The unique identifier of the alias to delete.""" + @dataclass(kw_only=True) class DeleteAgentAliasOutput(_SerdeShape): """Dataclass for DeleteAgentAliasOutput structure.""" @@ -2712,6 +4025,18 @@ class DeleteAgentInput(_SerdeShape): deleted even if the resource is in use. """ +class DeleteAgentInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAgentInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent to delete.""" + skip_resource_in_use_check: bool | None + """ + By default, this value is `false` and deletion is stopped if the + resource is in use. If you set it to `true`, the resource will be + deleted even if the resource is in use. + """ + @dataclass(kw_only=True) class DeleteAgentOutput(_SerdeShape): """Dataclass for DeleteAgentOutput structure.""" @@ -2743,6 +4068,20 @@ class DeleteAgentVersionInput(_SerdeShape): deleted even if the resource is in use. """ +class DeleteAgentVersionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAgentVersionInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent that the version belongs to.""" + agent_version: Required[str] + """The version of the agent to delete.""" + skip_resource_in_use_check: bool | None + """ + By default, this value is `false` and deletion is stopped if the + resource is in use. If you set it to `true`, the resource will be + deleted even if the resource is in use. + """ + @dataclass(kw_only=True) class DeleteAgentVersionOutput(_SerdeShape): """Dataclass for DeleteAgentVersionOutput structure.""" @@ -2773,6 +4112,17 @@ class DeleteDataSourceInput(_SerdeShape): data_source_id: str | None = ... """The unique identifier of the data source to delete.""" +class DeleteDataSourceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDataSourceInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base from which to delete the + data source. + """ + data_source_id: Required[str] + """The unique identifier of the data source to delete.""" + @dataclass(kw_only=True) class DeleteDataSourceOutput(_SerdeShape): """Dataclass for DeleteDataSourceOutput structure.""" @@ -2803,6 +4153,14 @@ class DeleteFlowAliasInput(_SerdeShape): alias_identifier: str | None = ... """The unique identifier of the alias to be deleted.""" +class DeleteFlowAliasInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFlowAliasInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow that the alias belongs to.""" + alias_identifier: Required[str] + """The unique identifier of the alias to be deleted.""" + @dataclass(kw_only=True) class DeleteFlowAliasOutput(_SerdeShape): """Dataclass for DeleteFlowAliasOutput structure.""" @@ -2832,6 +4190,18 @@ class DeleteFlowInput(_SerdeShape): deleted even if the resource is in use. """ +class DeleteFlowInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFlowInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + skip_resource_in_use_check: bool | None + """ + By default, this value is `false` and deletion is stopped if the + resource is in use. If you set it to `true`, the resource will be + deleted even if the resource is in use. + """ + @dataclass(kw_only=True) class DeleteFlowOutput(_SerdeShape): """Dataclass for DeleteFlowOutput structure.""" @@ -2861,6 +4231,20 @@ class DeleteFlowVersionInput(_SerdeShape): deleted even if the resource is in use. """ +class DeleteFlowVersionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFlowVersionInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow whose version that you want to delete""" + flow_version: Required[str] + """The version of the flow that you want to delete.""" + skip_resource_in_use_check: bool | None + """ + By default, this value is `false` and deletion is stopped if the + resource is in use. If you set it to `true`, the resource will be + deleted even if the resource is in use. + """ + @dataclass(kw_only=True) class DeleteFlowVersionOutput(_SerdeShape): """Dataclass for DeleteFlowVersionOutput structure.""" @@ -2904,6 +4288,34 @@ class DeleteKnowledgeBaseDocumentsInput(_SerdeShape): document to delete. """ +class DeleteKnowledgeBaseDocumentsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteKnowledgeBaseDocumentsInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base that is connected to the + data source. + """ + data_source_id: Required[str] + """The unique identifier of the data source that contains the documents.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + document_identifiers: Required[ + Sequence[DocumentIdentifier | DocumentIdentifierDict] + ] + """ + A list of objects, each of which contains information to identify a + document to delete. + """ + @dataclass(kw_only=True) class DeleteKnowledgeBaseDocumentsOutput(_SerdeShape): """Dataclass for DeleteKnowledgeBaseDocumentsOutput structure.""" @@ -2928,6 +4340,12 @@ class DeleteKnowledgeBaseInput(_SerdeShape): knowledge_base_id: str | None = ... """The unique identifier of the knowledge base to delete.""" +class DeleteKnowledgeBaseInputDict(TypedDict, total=False): + """Dictionary form of `DeleteKnowledgeBaseInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base to delete.""" + @dataclass(kw_only=True) class DeleteKnowledgeBaseOutput(_SerdeShape): """Dataclass for DeleteKnowledgeBaseOutput structure.""" @@ -2959,6 +4377,17 @@ class DeletePromptInput(_SerdeShape): field. """ +class DeletePromptInputDict(TypedDict, total=False): + """Dictionary form of `DeletePromptInput`.""" + + prompt_identifier: Required[str] + """The unique identifier of the prompt.""" + prompt_version: str | None + """ + The version of the prompt to delete. To delete the prompt, omit this + field. + """ + @dataclass(kw_only=True) class DeletePromptOutput(_SerdeShape): """Dataclass for DeletePromptOutput structure.""" @@ -2991,6 +4420,21 @@ class DeleteResourcePolicyInput(_SerdeShape): concurrently. """ +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the knowledge base to remove the + resource policy from. + """ + expected_revision_id: str | None + """ + The expected revision identifier of the resource policy. Use this to + prevent conflicts when multiple users update the same policy + concurrently. + """ + @dataclass(kw_only=True) class DeleteResourcePolicyOutput(_SerdeShape): """Dataclass for DeleteResourcePolicyOutput structure.""" @@ -3022,6 +4466,20 @@ class DeleteRetrievalInstructionInput(_SerdeShape): retrieval instruction removes it. """ +class DeleteRetrievalInstructionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRetrievalInstructionInput`.""" + + retrieval_instruction_id: Required[str] + """The identifier of the retrieval instruction to delete.""" + retrieval_instruction_version: str | None + """ + The version to delete. Omit this field to delete the retrieval + instruction itself, which you can do only when it has no versions; while + any version exists the service rejects the request with + ConflictException. You cannot delete DRAFT on its own; deleting the + retrieval instruction removes it. + """ + @dataclass(kw_only=True) class DeleteRetrievalInstructionOutput(_SerdeShape): """Dataclass for DeleteRetrievalInstructionOutput structure.""" @@ -3055,6 +4513,17 @@ class DeleteVpcConfigurationInput(_SerdeShape): vpc_configuration_id: str | None = ... """The unique identifier of the VPC configuration to delete.""" +class DeleteVpcConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcConfigurationInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base that owns the VPC + configuration. + """ + vpc_configuration_id: Required[str] + """The unique identifier of the VPC configuration to delete.""" + @dataclass(kw_only=True) class DeleteVpcConfigurationOutput(_SerdeShape): """Dataclass for DeleteVpcConfigurationOutput structure.""" @@ -3088,6 +4557,19 @@ class DeletionProtectionConfiguration(_SerdeShape): documents in place. Not supported for the Custom connector. """ +class DeletionProtectionConfigurationDict(TypedDict, total=False): + """Dictionary form of `DeletionProtectionConfiguration`.""" + + deletion_protection_status: Required[str] + """Enable or disable deletion protection for the connector.""" + deletion_protection_threshold: int | None + """ + The threshold is the maximum percentage of documents that a sync job can + delete from your index. If a sync would delete more than this + percentage, the sync skips its delete phase, leaving your indexed + documents in place. Not supported for the Custom connector. + """ + @dataclass(kw_only=True) class DisassociateAgentCollaboratorInput(_SerdeShape): """Dataclass for DisassociateAgentCollaboratorInput structure.""" @@ -3099,6 +4581,16 @@ class DisassociateAgentCollaboratorInput(_SerdeShape): collaborator_id: str | None = ... """The collaborator's ID.""" +class DisassociateAgentCollaboratorInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateAgentCollaboratorInput`.""" + + agent_id: Required[str] + """An agent ID.""" + agent_version: Required[str] + """The agent's version.""" + collaborator_id: Required[str] + """The collaborator's ID.""" + @dataclass(kw_only=True) class DisassociateAgentCollaboratorOutput(_SerdeShape): """Dataclass for DisassociateAgentCollaboratorOutput structure.""" @@ -3125,6 +4617,19 @@ class DisassociateAgentKnowledgeBaseInput(_SerdeShape): knowledge_base_id: str | None = ... """The unique identifier of the knowledge base to disassociate.""" +class DisassociateAgentKnowledgeBaseInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateAgentKnowledgeBaseInput`.""" + + agent_id: Required[str] + """ + The unique identifier of the agent from which to disassociate the + knowledge base. + """ + agent_version: Required[str] + """The version of the agent from which to disassociate the knowledge base.""" + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base to disassociate.""" + @dataclass(kw_only=True) class DisassociateAgentKnowledgeBaseOutput(_SerdeShape): """Dataclass for DisassociateAgentKnowledgeBaseOutput structure.""" @@ -3148,6 +4653,16 @@ class DocumentAccessControlEntry(_SerdeShape): access: str """Whether to allow or deny access.""" +class DocumentAccessControlEntryDict(TypedDict, total=False): + """Dictionary form of `DocumentAccessControlEntry`.""" + + name: Required[str] + """The user identifier.""" + type: Required[str] + """The type of principal.""" + access: Required[str] + """Whether to allow or deny access.""" + @dataclass(kw_only=True) class DocumentContent(_SerdeShape): """ @@ -3171,6 +4686,25 @@ class DocumentContent(_SerdeShape): connected to an Amazon S3 data source """ +class DocumentContentDict(TypedDict, total=False): + """Dictionary form of `DocumentContent`.""" + + data_source_type: Required[str] + """ + The type of data source that is connected to the knowledge base to which + to ingest this document. + """ + custom: CustomContent | CustomContentDict | None + """ + Contains information about the content to ingest into a knowledge base + connected to a custom data source. + """ + s3: S3Content | S3ContentDict | None + """ + Contains information about the content to ingest into a knowledge base + connected to an Amazon S3 data source + """ + @dataclass(kw_only=True) class DocumentIdentifier(_SerdeShape): """Contains information that identifies the document.""" @@ -3188,6 +4722,22 @@ class DocumentIdentifier(_SerdeShape): source. """ +class DocumentIdentifierDict(TypedDict, total=False): + """Dictionary form of `DocumentIdentifier`.""" + + data_source_type: Required[str] + """ + The type of data source connected to the knowledge base that contains + the document. + """ + s3: S3Location | S3LocationDict | None + """Contains information that identifies the document in an S3 data source.""" + custom: CustomDocumentIdentifier | CustomDocumentIdentifierDict | None + """ + Contains information that identifies the document in a custom data + source. + """ + @dataclass(kw_only=True) class DocumentMetadata(_SerdeShape): """ @@ -3214,6 +4764,29 @@ class DocumentMetadata(_SerdeShape): IN_LINE_ATTRIBUTE. """ +class DocumentMetadataDict(TypedDict, total=False): + """Dictionary form of `DocumentMetadata`.""" + + type: Required[str] + """The type of the source source from which to add metadata.""" + inline_attributes: Sequence[MetadataAttribute | MetadataAttributeDict] | None + """ + An array of objects, each of which defines a metadata attribute to + associate with the content to ingest. You define the attributes inline. + """ + s3_location: CustomS3Location | CustomS3LocationDict | None + """ + The Amazon S3 location of the file containing metadata to associate with + the content to ingest. + """ + access_control_list: ( + Sequence[DocumentAccessControlEntry | DocumentAccessControlEntryDict] | None + ) + """ + Access control list for the document. Used when metadata type is + IN_LINE_ATTRIBUTE. + """ + class DocumentStatus(UnknownEnumMixin, StrEnum): INDEXED = "INDEXED" PARTIALLY_INDEXED = "PARTIALLY_INDEXED" @@ -3261,6 +4834,16 @@ class EmbeddingModelConfiguration(_SerdeShape): ) = ... """The vector configuration details on the Bedrock embeddings model.""" +class EmbeddingModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `EmbeddingModelConfiguration`.""" + + bedrock_embedding_model_configuration: ( + BedrockEmbeddingModelConfiguration + | BedrockEmbeddingModelConfigurationDict + | None + ) + """The vector configuration details on the Bedrock embeddings model.""" + class EmbeddingModelType(UnknownEnumMixin, StrEnum): """ Choose `CUSTOM` to provide your own Bedrock embedding model ARN. Choose @@ -3283,6 +4866,12 @@ class EnrichmentStrategyConfiguration(_SerdeShape): method: str """The method used for the context enrichment strategy.""" +class EnrichmentStrategyConfigurationDict(TypedDict, total=False): + """Dictionary form of `EnrichmentStrategyConfiguration`.""" + + method: Required[str] + """The method used for the context enrichment strategy.""" + class EnrichmentStrategyMethod(UnknownEnumMixin, StrEnum): CHUNK_ENTITY_EXTRACTION = "CHUNK_ENTITY_EXTRACTION" @@ -3293,7 +4882,13 @@ class FieldForReranking(_SerdeShape): process. """ - field_name: str + field_name: str + """The name of the metadata field to include or exclude during reranking.""" + +class FieldForRerankingDict(TypedDict, total=False): + """Dictionary form of `FieldForReranking`.""" + + field_name: Required[str] """The name of the metadata field to include or exclude during reranking.""" class FieldType(UnknownEnumMixin, StrEnum): @@ -3320,6 +4915,14 @@ class FixedSizeChunkingConfiguration(_SerdeShape): overlap_percentage: int """The percentage of overlap between adjacent chunks of a data source.""" +class FixedSizeChunkingConfigurationDict(TypedDict, total=False): + """Dictionary form of `FixedSizeChunkingConfiguration`.""" + + max_tokens: Required[int] + """The maximum number of tokens to include in a chunk.""" + overlap_percentage: Required[int] + """The percentage of overlap between adjacent chunks of a data source.""" + @dataclass(kw_only=True) class FlowAliasConcurrencyConfiguration(_SerdeShape): """ @@ -3343,6 +4946,25 @@ class FlowAliasConcurrencyConfiguration(_SerdeShape): flow. """ +class FlowAliasConcurrencyConfigurationDict(TypedDict, total=False): + """Dictionary form of `FlowAliasConcurrencyConfiguration`.""" + + type: Required[str] + """ + The type of concurrency to use for parallel node execution. Specify one + of the following options: + + - `Automatic` - Amazon Bedrock determines which nodes can be executed in + parallel based on the flow definition and its dependencies. + + - `Manual` - You specify which nodes can be executed in parallel. + """ + max_concurrency: int | None + """ + The maximum number of nodes that can be executed concurrently in the + flow. + """ + @dataclass(kw_only=True) class FlowAliasRoutingConfigurationListItem(_SerdeShape): """Contains information about a version that the alias maps to.""" @@ -3350,6 +4972,12 @@ class FlowAliasRoutingConfigurationListItem(_SerdeShape): flow_version: str | None = ... """The version that the alias maps to.""" +class FlowAliasRoutingConfigurationListItemDict(TypedDict, total=False): + """Dictionary form of `FlowAliasRoutingConfigurationListItem`.""" + + flow_version: str | None + """The version that the alias maps to.""" + @dataclass(kw_only=True) class FlowAliasSummary(_SerdeShape): """ @@ -3400,6 +5028,19 @@ class FlowCondition(_SerdeShape): flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes). """ +class FlowConditionDict(TypedDict, total=False): + """Dictionary form of `FlowCondition`.""" + + name: Required[str] + """A name for the condition that you can reference.""" + expression: str | None + """ + Defines the condition. You must refer to at least one of the inputs in + the condition. For more information, expand the Condition node section + in [Node types in prompt + flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes). + """ + @dataclass(kw_only=True) class FlowConditionalConnectionConfiguration(_SerdeShape): """ @@ -3415,6 +5056,17 @@ class FlowConditionalConnectionConfiguration(_SerdeShape): topic in the Amazon Bedrock User Guide. """ +class FlowConditionalConnectionConfigurationDict(TypedDict, total=False): + """Dictionary form of `FlowConditionalConnectionConfiguration`.""" + + condition: Required[str] + """ + The condition that triggers this connection. For more information about + how to write conditions, see the **Condition** node type in the [Node + types](https://docs.aws.amazon.com/bedrock/latest/userguide/node-types.html) + topic in the Amazon Bedrock User Guide. + """ + @dataclass(kw_only=True) class FlowConnection(_SerdeShape): """Contains information about a connection between two nodes in the flow.""" @@ -3433,6 +5085,23 @@ class FlowConnection(_SerdeShape): configuration: FlowConnectionConfiguration | None = ... """The configuration of the connection.""" +class FlowConnectionDict(TypedDict, total=False): + """Dictionary form of `FlowConnection`.""" + + type: Required[str] + """ + Whether the source node that the connection begins from is a condition + node (`Conditional`) or not (`Data`). + """ + name: Required[str] + """A name for the connection that you can reference.""" + source: Required[str] + """The node that the connection starts at.""" + target: Required[str] + """The node that the connection ends at.""" + configuration: FlowConnectionConfiguration | FlowConnectionConfigurationDict | None + """The configuration of the connection.""" + @dataclass class FlowConnectionConfigurationData(_SerdeShape): """ @@ -3470,6 +5139,28 @@ class _FlowConnectionConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> FlowConnectionConfiguration: ... +class FlowConnectionConfigurationDataDict(TypedDict): + data: FlowDataConnectionConfiguration | FlowDataConnectionConfigurationDict + """ + The configuration of a connection originating from a node that isn't a + Condition node. + """ + +class FlowConnectionConfigurationConditionalDict(TypedDict): + conditional: ( + FlowConditionalConnectionConfiguration + | FlowConditionalConnectionConfigurationDict + ) + """The configuration of a connection originating from a Condition node.""" + +FlowConnectionConfigurationDict = Union[ + FlowConnectionConfigurationDataDict | FlowConnectionConfigurationConditionalDict +] +""" +Dictionary form of `FlowConnectionConfiguration`, setting exactly one +variant. +""" + class FlowConnectionType(UnknownEnumMixin, StrEnum): DATA = "Data" CONDITIONAL = "Conditional" @@ -3489,6 +5180,17 @@ class FlowDataConnectionConfiguration(_SerdeShape): target_input: str """The name of the input in the target node that the connection ends at.""" +class FlowDataConnectionConfigurationDict(TypedDict, total=False): + """Dictionary form of `FlowDataConnectionConfiguration`.""" + + source_output: Required[str] + """ + The name of the output in the source node that the connection begins + from. + """ + target_input: Required[str] + """The name of the input in the target node that the connection ends at.""" + @dataclass(kw_only=True) class FlowDefinition(_SerdeShape): """The definition of the nodes and connections between nodes in the flow.""" @@ -3498,6 +5200,14 @@ class FlowDefinition(_SerdeShape): connections: list[FlowConnection] | None = ... """An array of connection definitions in the flow.""" +class FlowDefinitionDict(TypedDict, total=False): + """Dictionary form of `FlowDefinition`.""" + + nodes: Sequence[FlowNode | FlowNodeDict] | None + """An array of node definitions in the flow.""" + connections: Sequence[FlowConnection | FlowConnectionDict] | None + """An array of connection definitions in the flow.""" + @dataclass(kw_only=True) class FlowNode(_SerdeShape): """Contains configurations about a node in the flow.""" @@ -3523,6 +5233,30 @@ class FlowNode(_SerdeShape): from the node. """ +class FlowNodeDict(TypedDict, total=False): + """Dictionary form of `FlowNode`.""" + + name: Required[str] + """A name for the node.""" + type: Required[str] + """ + The type of node. This value must match the name of the key that you + provide in the configuration you provide in the `FlowNodeConfiguration` + field. + """ + configuration: FlowNodeConfiguration | FlowNodeConfigurationDict | None + """Contains configurations for the node.""" + inputs: Sequence[FlowNodeInput | FlowNodeInputDict] | None + """ + An array of objects, each of which contains information about an input + into the node. + """ + outputs: Sequence[FlowNodeOutput | FlowNodeOutputDict] | None + """ + A list of objects, each of which contains information about an output + from the node. + """ + @dataclass class FlowNodeConfigurationInput(_SerdeShape): """ @@ -3708,6 +5442,149 @@ in the Amazon Bedrock User Guide. class _FlowNodeConfigurationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> FlowNodeConfiguration: ... +class FlowNodeConfigurationInputDict(TypedDict): + input: InputFlowNodeConfiguration | InputFlowNodeConfigurationDict + """ + Contains configurations for an input flow node in your flow. The first + node in the flow. `inputs` can't be specified for this node. + """ + +class FlowNodeConfigurationOutputDict(TypedDict): + output: OutputFlowNodeConfiguration | OutputFlowNodeConfigurationDict + """ + Contains configurations for an output flow node in your flow. The last + node in the flow. `outputs` can't be specified for this node. + """ + +class FlowNodeConfigurationKnowledgeBaseDict(TypedDict): + knowledge_base: ( + KnowledgeBaseFlowNodeConfiguration | KnowledgeBaseFlowNodeConfigurationDict + ) + """ + Contains configurations for a knowledge base node in your flow. Queries + a knowledge base and returns the retrieved results or generated + response. + """ + +class FlowNodeConfigurationConditionDict(TypedDict): + condition: ConditionFlowNodeConfiguration | ConditionFlowNodeConfigurationDict + """ + Contains configurations for a condition node in your flow. Defines + conditions that lead to different branches of the flow. + """ + +class FlowNodeConfigurationLexDict(TypedDict): + lex: LexFlowNodeConfiguration | LexFlowNodeConfigurationDict + """ + Contains configurations for a Lex node in your flow. Invokes an Amazon + Lex bot to identify the intent of the input and return the intent as the + output. + """ + +class FlowNodeConfigurationPromptDict(TypedDict): + prompt: PromptFlowNodeConfiguration | PromptFlowNodeConfigurationDict + """ + Contains configurations for a prompt node in your flow. Runs a prompt + and generates the model response as the output. You can use a prompt + from Prompt management or you can configure one in this node. + """ + +class FlowNodeConfigurationLambdaFunctionDict(TypedDict): + lambda_function: ( + LambdaFunctionFlowNodeConfiguration | LambdaFunctionFlowNodeConfigurationDict + ) + """ + Contains configurations for a Lambda function node in your flow. Invokes + an Lambda function. + """ + +class FlowNodeConfigurationStorageDict(TypedDict): + storage: StorageFlowNodeConfiguration | StorageFlowNodeConfigurationDict + """ + Contains configurations for a storage node in your flow. Stores an input + in an Amazon S3 location. + """ + +class FlowNodeConfigurationAgentDict(TypedDict): + agent: AgentFlowNodeConfiguration | AgentFlowNodeConfigurationDict + """ + Contains configurations for an agent node in your flow. Invokes an alias + of an agent and returns the response. + """ + +class FlowNodeConfigurationRetrievalDict(TypedDict): + retrieval: RetrievalFlowNodeConfiguration | RetrievalFlowNodeConfigurationDict + """ + Contains configurations for a retrieval node in your flow. Retrieves + data from an Amazon S3 location and returns it as the output. + """ + +class FlowNodeConfigurationIteratorDict(TypedDict): + iterator: IteratorFlowNodeConfiguration | IteratorFlowNodeConfigurationDict + """ + Contains configurations for an iterator node in your flow. Takes an + input that is an array and iteratively sends each item of the array as + an output to the following node. The size of the array is also returned + in the output. + + The output flow node at the end of the flow iteration will return a + response for each member of the array. To return only one response, you + can include a collector node downstream from the iterator node. + """ + +class FlowNodeConfigurationCollectorDict(TypedDict): + collector: CollectorFlowNodeConfiguration | CollectorFlowNodeConfigurationDict + """ + Contains configurations for a collector node in your flow. Collects an + iteration of inputs and consolidates them into an array of outputs. + """ + +class FlowNodeConfigurationInlineCodeDict(TypedDict): + inline_code: InlineCodeFlowNodeConfiguration | InlineCodeFlowNodeConfigurationDict + """ + Contains configurations for an inline code node in your flow. Inline + code nodes let you write and execute code directly within your flow, + enabling data transformations, custom logic, and integrations without + needing an external Lambda function. + """ + +class FlowNodeConfigurationLoopDict(TypedDict): + loop: LoopFlowNodeConfiguration | LoopFlowNodeConfigurationDict + """Contains configurations for a DoWhile loop in your flow.""" + +class FlowNodeConfigurationLoopInputDict(TypedDict): + loop_input: LoopInputFlowNodeConfiguration | LoopInputFlowNodeConfigurationDict + """Contains input node configurations for a DoWhile loop in your flow.""" + +class FlowNodeConfigurationLoopControllerDict(TypedDict): + loop_controller: ( + LoopControllerFlowNodeConfiguration | LoopControllerFlowNodeConfigurationDict + ) + """Contains controller node configurations for a DoWhile loop in your flow.""" + +FlowNodeConfigurationDict = Union[ + FlowNodeConfigurationInputDict + | FlowNodeConfigurationOutputDict + | FlowNodeConfigurationKnowledgeBaseDict + | FlowNodeConfigurationConditionDict + | FlowNodeConfigurationLexDict + | FlowNodeConfigurationPromptDict + | FlowNodeConfigurationLambdaFunctionDict + | FlowNodeConfigurationStorageDict + | FlowNodeConfigurationAgentDict + | FlowNodeConfigurationRetrievalDict + | FlowNodeConfigurationIteratorDict + | FlowNodeConfigurationCollectorDict + | FlowNodeConfigurationInlineCodeDict + | FlowNodeConfigurationLoopDict + | FlowNodeConfigurationLoopInputDict + | FlowNodeConfigurationLoopControllerDict +] +""" +Dictionary form of `FlowNodeConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class FlowNodeInput(_SerdeShape): """Contains configurations for an input in an Amazon Bedrock Flows node.""" @@ -3741,6 +5618,38 @@ class FlowNodeInput(_SerdeShape): Use this category to expose loop results to nodes outside the loop. """ +class FlowNodeInputDict(TypedDict, total=False): + """Dictionary form of `FlowNodeInput`.""" + + name: Required[str] + """Specifies a name for the input that you can reference.""" + type: Required[str] + """ + Specifies the data type of the input. If the input doesn't match this + type at runtime, a validation error will be thrown. + """ + expression: Required[str] + """ + An expression that formats the input for the node. For an explanation of + how to create expressions, see [Expressions in Prompt flows in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html). + """ + category: str | None + """ + Specifies how input data flows between iterations in a DoWhile loop. + + - `LoopCondition` - Controls whether the loop continues by evaluating + condition expressions against the input data. Use this category to + define the condition that determines if the loop should continue. + + - `ReturnValueToLoopStart` - Defines data to pass back to the start of + the loop's next iteration. Use this category for variables that you + want to update for each loop iteration. + + - `ExitLoop` - Defines the value that's available once the loop ends. + Use this category to expose loop results to nodes outside the loop. + """ + class FlowNodeInputCategory(UnknownEnumMixin, StrEnum): LOOP_CONDITION = "LoopCondition" RETURN_VALUE_TO_LOOP_START = "ReturnValueToLoopStart" @@ -3765,6 +5674,17 @@ class FlowNodeOutput(_SerdeShape): runtime, a validation error will be thrown. """ +class FlowNodeOutputDict(TypedDict, total=False): + """Dictionary form of `FlowNodeOutput`.""" + + name: Required[str] + """A name for the output that you can reference.""" + type: Required[str] + """ + The data type of the output. If the output doesn't match this type at + runtime, a validation error will be thrown. + """ + class FlowNodeType(UnknownEnumMixin, StrEnum): INPUT = "Input" OUTPUT = "Output" @@ -4220,6 +6140,24 @@ class Function(_SerdeShape): function. """ +class FunctionDict(TypedDict, total=False): + """Dictionary form of `Function`.""" + + name: Required[str] + """A name for the function.""" + description: str | None + """A description of the function and its purpose.""" + parameters: Mapping[str, ParameterDetail | ParameterDetailDict] | None + """ + The parameters that the agent elicits from the user to fulfill the + function. + """ + require_confirmation: str | None + """ + Contains information if user confirmation is required to invoke the + function. + """ + @dataclass class FunctionSchemaFunctions(_SerdeShape): """A list of functions that each define an action in the action group.""" @@ -4263,6 +6201,13 @@ This data type is used in the following API operations: class _FunctionSchemaDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> FunctionSchema: ... +class FunctionSchemaFunctionsDict(TypedDict): + functions: Sequence[Function | FunctionDict] + """A list of functions that each define an action in the action group.""" + +FunctionSchemaDict = Union[FunctionSchemaFunctionsDict] +"""Dictionary form of `FunctionSchema`, setting exactly one variant.""" + @dataclass(kw_only=True) class GetAgentActionGroupInput(_SerdeShape): """Dataclass for GetAgentActionGroupInput structure.""" @@ -4274,6 +6219,16 @@ class GetAgentActionGroupInput(_SerdeShape): action_group_id: str | None = ... """The unique identifier of the action group for which to get information.""" +class GetAgentActionGroupInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentActionGroupInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent that the action group belongs to.""" + agent_version: Required[str] + """The version of the agent that the action group belongs to.""" + action_group_id: Required[str] + """The unique identifier of the action group for which to get information.""" + @dataclass(kw_only=True) class GetAgentActionGroupOutput(_SerdeShape): """Dataclass for GetAgentActionGroupOutput structure.""" @@ -4300,6 +6255,17 @@ class GetAgentAliasInput(_SerdeShape): agent_alias_id: str | None = ... """The unique identifier of the alias for which to get information.""" +class GetAgentAliasInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentAliasInput`.""" + + agent_id: Required[str] + """ + The unique identifier of the agent to which the alias to get information + belongs. + """ + agent_alias_id: Required[str] + """The unique identifier of the alias for which to get information.""" + @dataclass(kw_only=True) class GetAgentAliasOutput(_SerdeShape): """Dataclass for GetAgentAliasOutput structure.""" @@ -4325,6 +6291,16 @@ class GetAgentCollaboratorInput(_SerdeShape): collaborator_id: str | None = ... """The collaborator's ID.""" +class GetAgentCollaboratorInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentCollaboratorInput`.""" + + agent_id: Required[str] + """The agent's ID.""" + agent_version: Required[str] + """The agent's version.""" + collaborator_id: Required[str] + """The collaborator's ID.""" + @dataclass(kw_only=True) class GetAgentCollaboratorOutput(_SerdeShape): """Dataclass for GetAgentCollaboratorOutput structure.""" @@ -4346,18 +6322,37 @@ class GetAgentInput(_SerdeShape): agent_id: str | None = ... """The unique identifier of the agent.""" -@dataclass(kw_only=True) -class GetAgentKnowledgeBaseInput(_SerdeShape): - """Dataclass for GetAgentKnowledgeBaseInput structure.""" +class GetAgentInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent.""" + +@dataclass(kw_only=True) +class GetAgentKnowledgeBaseInput(_SerdeShape): + """Dataclass for GetAgentKnowledgeBaseInput structure.""" + + agent_id: str | None = ... + """ + The unique identifier of the agent with which the knowledge base is + associated. + """ + agent_version: str | None = ... + """The version of the agent with which the knowledge base is associated.""" + knowledge_base_id: str | None = ... + """The unique identifier of the knowledge base associated with the agent.""" + +class GetAgentKnowledgeBaseInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentKnowledgeBaseInput`.""" - agent_id: str | None = ... + agent_id: Required[str] """ The unique identifier of the agent with which the knowledge base is associated. """ - agent_version: str | None = ... + agent_version: Required[str] """The version of the agent with which the knowledge base is associated.""" - knowledge_base_id: str | None = ... + knowledge_base_id: Required[str] """The unique identifier of the knowledge base associated with the agent.""" @dataclass(kw_only=True) @@ -4397,6 +6392,14 @@ class GetAgentVersionInput(_SerdeShape): agent_version: str | None = ... """The version of the agent.""" +class GetAgentVersionInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentVersionInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent.""" + agent_version: Required[str] + """The version of the agent.""" + @dataclass(kw_only=True) class GetAgentVersionOutput(_SerdeShape): """Dataclass for GetAgentVersionOutput structure.""" @@ -4420,6 +6423,14 @@ class GetDataSourceInput(_SerdeShape): data_source_id: str | None = ... """The unique identifier of the data source.""" +class GetDataSourceInputDict(TypedDict, total=False): + """Dictionary form of `GetDataSourceInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base for the data source.""" + data_source_id: Required[str] + """The unique identifier of the data source.""" + @dataclass(kw_only=True) class GetDataSourceOutput(_SerdeShape): """Dataclass for GetDataSourceOutput structure.""" @@ -4443,6 +6454,14 @@ class GetFlowAliasInput(_SerdeShape): alias_identifier: str | None = ... """The unique identifier of the alias for which to retrieve information.""" +class GetFlowAliasInputDict(TypedDict, total=False): + """Dictionary form of `GetFlowAliasInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow that the alias belongs to.""" + alias_identifier: Required[str] + """The unique identifier of the alias for which to retrieve information.""" + @dataclass(kw_only=True) class GetFlowAliasOutput(_SerdeShape): """Dataclass for GetFlowAliasOutput structure.""" @@ -4489,6 +6508,18 @@ class GetFlowInput(_SerdeShape): the full response. """ +class GetFlowInputDict(TypedDict, total=False): + """Dictionary form of `GetFlowInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + included_data: str | None + """ + Controls the scope of data returned. Set to `METADATA_ONLY` to return + only resource metadata. Set to `ALL_DATA` or omit this field to return + the full response. + """ + @dataclass(kw_only=True) class GetFlowOutput(_SerdeShape): """Dataclass for GetFlowOutput structure.""" @@ -4574,6 +6605,20 @@ class GetFlowVersionInput(_SerdeShape): the full response. """ +class GetFlowVersionInputDict(TypedDict, total=False): + """Dictionary form of `GetFlowVersionInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow for which to get information.""" + flow_version: Required[str] + """The version of the flow for which to get information.""" + included_data: str | None + """ + Controls the scope of data returned. Set to `METADATA_ONLY` to return + only resource metadata. Set to `ALL_DATA` or omit this field to return + the full response. + """ + @dataclass(kw_only=True) class GetFlowVersionOutput(_SerdeShape): """Dataclass for GetFlowVersionOutput structure.""" @@ -4635,6 +6680,25 @@ class GetIngestionJobInput(_SerdeShape): information on. """ +class GetIngestionJobInputDict(TypedDict, total=False): + """Dictionary form of `GetIngestionJobInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base for the data ingestion job + you want to get information on. + """ + data_source_id: Required[str] + """ + The unique identifier of the data source for the data ingestion job you + want to get information on. + """ + ingestion_job_id: Required[str] + """ + The unique identifier of the data ingestion job you want to get + information on. + """ + @dataclass(kw_only=True) class GetIngestionJobOutput(_SerdeShape): """Dataclass for GetIngestionJobOutput structure.""" @@ -4666,6 +6730,24 @@ class GetKnowledgeBaseDocumentsInput(_SerdeShape): document for which to retrieve information. """ +class GetKnowledgeBaseDocumentsInputDict(TypedDict, total=False): + """Dictionary form of `GetKnowledgeBaseDocumentsInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base that is connected to the + data source. + """ + data_source_id: Required[str] + """The unique identifier of the data source that contains the documents.""" + document_identifiers: Required[ + Sequence[DocumentIdentifier | DocumentIdentifierDict] + ] + """ + A list of objects, each of which contains information to identify a + document for which to retrieve information. + """ + @dataclass(kw_only=True) class GetKnowledgeBaseDocumentsOutput(_SerdeShape): """Dataclass for GetKnowledgeBaseDocumentsOutput structure.""" @@ -4693,6 +6775,15 @@ class GetKnowledgeBaseInput(_SerdeShape): on. """ +class GetKnowledgeBaseInputDict(TypedDict, total=False): + """Dictionary form of `GetKnowledgeBaseInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base you want to get information + on. + """ + @dataclass(kw_only=True) class GetKnowledgeBaseOutput(_SerdeShape): """Dataclass for GetKnowledgeBaseOutput structure.""" @@ -4726,6 +6817,24 @@ class GetPromptInput(_SerdeShape): the full response. """ +class GetPromptInputDict(TypedDict, total=False): + """Dictionary form of `GetPromptInput`.""" + + prompt_identifier: Required[str] + """The unique identifier of the prompt.""" + prompt_version: str | None + """ + The version of the prompt about which you want to retrieve information. + Omit this field to return information about the working draft of the + prompt. + """ + included_data: str | None + """ + Controls the scope of data returned. Set to `METADATA_ONLY` to return + only resource metadata. Set to `ALL_DATA` or omit this field to return + the full response. + """ + @dataclass(kw_only=True) class GetPromptOutput(_SerdeShape): """Dataclass for GetPromptOutput structure.""" @@ -4782,6 +6891,15 @@ class GetResourcePolicyInput(_SerdeShape): resource policy for. """ +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the knowledge base to retrieve the + resource policy for. + """ + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Dataclass for GetResourcePolicyOutput structure.""" @@ -4817,6 +6935,19 @@ class GetRetrievalInstructionInput(_SerdeShape): never resolve to a numbered version. """ +class GetRetrievalInstructionInputDict(TypedDict, total=False): + """Dictionary form of `GetRetrievalInstructionInput`.""" + + retrieval_instruction_id: Required[str] + """The identifier of the retrieval instruction to get.""" + retrieval_instruction_version: str | None + """ + The version to return: a version number, or DRAFT for the retrieval + instruction's current reviewed content. When omitted, DRAFT is used. + This default is permanent: omitting retrievalInstructionVersion will + never resolve to a numbered version. + """ + @dataclass(kw_only=True) class GetRetrievalInstructionOutput(_SerdeShape): """Dataclass for GetRetrievalInstructionOutput structure.""" @@ -4907,6 +7038,17 @@ class GetVpcConfigurationInput(_SerdeShape): vpc_configuration_id: str | None = ... """The unique identifier of the VPC configuration to retrieve.""" +class GetVpcConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetVpcConfigurationInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base that owns the VPC + configuration. + """ + vpc_configuration_id: Required[str] + """The unique identifier of the VPC configuration to retrieve.""" + @dataclass(kw_only=True) class GetVpcConfigurationOutput(_SerdeShape): """Dataclass for GetVpcConfigurationOutput structure.""" @@ -4933,6 +7075,14 @@ class GuardrailConfiguration(_SerdeShape): guardrail_version: str | None = ... """The version of the guardrail.""" +class GuardrailConfigurationDict(TypedDict, total=False): + """Dictionary form of `GuardrailConfiguration`.""" + + guardrail_identifier: str | None + """The unique identifier of the guardrail.""" + guardrail_version: str | None + """The version of the guardrail.""" + @dataclass(kw_only=True) class HierarchicalChunkingConfiguration(_SerdeShape): """ @@ -4953,6 +7103,19 @@ class HierarchicalChunkingConfiguration(_SerdeShape): overlap_tokens: int """The number of tokens to repeat across chunks in the same layer.""" +class HierarchicalChunkingConfigurationDict(TypedDict, total=False): + """Dictionary form of `HierarchicalChunkingConfiguration`.""" + + level_configurations: Required[ + Sequence[ + HierarchicalChunkingLevelConfiguration + | HierarchicalChunkingLevelConfigurationDict + ] + ] + """Token settings for each layer.""" + overlap_tokens: Required[int] + """The number of tokens to repeat across chunks in the same layer.""" + @dataclass(kw_only=True) class HierarchicalChunkingLevelConfiguration(_SerdeShape): """Token settings for a layer in a hierarchical chunking configuration.""" @@ -4960,6 +7123,12 @@ class HierarchicalChunkingLevelConfiguration(_SerdeShape): max_tokens: int """The maximum number of tokens that a chunk can contain in this layer.""" +class HierarchicalChunkingLevelConfigurationDict(TypedDict, total=False): + """Dictionary form of `HierarchicalChunkingLevelConfiguration`.""" + + max_tokens: Required[int] + """The maximum number of tokens that a chunk can contain in this layer.""" + @dataclass(kw_only=True) class ImageExtractionConfiguration(_SerdeShape): """Configuration for image extraction.""" @@ -4967,6 +7136,12 @@ class ImageExtractionConfiguration(_SerdeShape): image_extraction_status: str """Whether image extraction is enabled or disabled.""" +class ImageExtractionConfigurationDict(TypedDict, total=False): + """Dictionary form of `ImageExtractionConfiguration`.""" + + image_extraction_status: Required[str] + """Whether image extraction is enabled or disabled.""" + class IncludedData(UnknownEnumMixin, StrEnum): ALL_DATA = "ALL_DATA" METADATA_ONLY = "METADATA_ONLY" @@ -5030,6 +7205,42 @@ class InferenceConfiguration(_SerdeShape): that causes the model to stop generating the response. """ +class InferenceConfigurationDict(TypedDict, total=False): + """Dictionary form of `InferenceConfiguration`.""" + + temperature: float | None + """ + The likelihood of the model selecting higher-probability options while + generating a response. A lower value makes the model more likely to + choose higher-probability options, while a higher value makes the model + more likely to choose lower-probability options. + """ + top_p: float | None + """ + While generating a response, the model determines the probability of the + following token at each point of generation. The value that you set for + `Top P` determines the number of most-likely candidates from which the + model chooses the next token in the sequence. For example, if you set + `topP` to 0.8, the model only selects the next token from the top 80% of + the probability distribution of next tokens. + """ + top_k: int | None + """ + While generating a response, the model determines the probability of the + following token at each point of generation. The value that you set for + `topK` is the number of most-likely candidates from which the model + chooses the next token in the sequence. For example, if you set `topK` + to 50, the model selects the next token from among the top 50 most + likely choices. + """ + maximum_length: int | None + """The maximum number of tokens to allow in the generated response.""" + stop_sequences: Sequence[str] | None + """ + A list of stop sequences. A stop sequence is a sequence of characters + that causes the model to stop generating the response. + """ + @dataclass(kw_only=True) class IngestionJob(_SerdeShape): """ @@ -5097,6 +7308,16 @@ class IngestionJobFilter(_SerdeShape): values: list[str] """A list of values that belong to the field or attribute.""" +class IngestionJobFilterDict(TypedDict, total=False): + """Dictionary form of `IngestionJobFilter`.""" + + attribute: Required[str] + """The name of field or attribute to apply the filter.""" + operator: Required[str] + """The operation to apply to the field or attribute.""" + values: Required[Sequence[str]] + """A list of values that belong to the field or attribute.""" + class IngestionJobFilterAttribute(UnknownEnumMixin, StrEnum): STATUS = "STATUS" @@ -5112,6 +7333,14 @@ class IngestionJobSortBy(_SerdeShape): order: str """The order for sorting the data.""" +class IngestionJobSortByDict(TypedDict, total=False): + """Dictionary form of `IngestionJobSortBy`.""" + + attribute: Required[str] + """The name of field or attribute to apply sorting of data.""" + order: Required[str] + """The order for sorting the data.""" + class IngestionJobSortByAttribute(UnknownEnumMixin, StrEnum): STATUS = "STATUS" STARTED_AT = "STARTED_AT" @@ -5216,6 +7445,35 @@ class IngestKnowledgeBaseDocumentsInput(_SerdeShape): documents to add. """ +class IngestKnowledgeBaseDocumentsInputDict(TypedDict, total=False): + """Dictionary form of `IngestKnowledgeBaseDocumentsInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base to ingest the documents + into. + """ + data_source_id: Required[str] + """ + The unique identifier of the data source connected to the knowledge base + that you're adding documents to. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + documents: Required[Sequence[KnowledgeBaseDocument | KnowledgeBaseDocumentDict]] + """ + A list of objects, each of which contains information about the + documents to add. + """ + @dataclass(kw_only=True) class IngestKnowledgeBaseDocumentsOutput(_SerdeShape): """Dataclass for IngestKnowledgeBaseDocumentsOutput structure.""" @@ -5258,6 +7516,25 @@ class InlineCodeFlowNodeConfiguration(_SerdeShape): Currently, only Python 3 (`Python_3`) is supported. """ +class InlineCodeFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `InlineCodeFlowNodeConfiguration`.""" + + code: str | None + """ + The code that's executed in your inline code node. The code can access + input data from previous nodes in the flow, perform operations on that + data, and produce output that can be used by other nodes in your flow. + + The code must be valid in the programming `language` that you specify. + """ + language: str | None + """ + The programming language used by your inline code node. + + The code must be valid in the programming `language` that you specify. + Currently, only Python 3 (`Python_3`) is supported. + """ + @dataclass(kw_only=True) class InlineContent(_SerdeShape): """ @@ -5272,6 +7549,16 @@ class InlineContent(_SerdeShape): text_content: TextContentDoc | None = ... """Contains information about content defined inline in text.""" +class InlineContentDict(TypedDict, total=False): + """Dictionary form of `InlineContent`.""" + + type: Required[str] + """The type of inline content to define.""" + byte_content: ByteContentDoc | ByteContentDocDict | None + """Contains information about content defined inline in bytes.""" + text_content: TextContentDoc | TextContentDocDict | None + """Contains information about content defined inline in text.""" + class InlineContentType(UnknownEnumMixin, StrEnum): BYTE = "BYTE" TEXT = "TEXT" @@ -5284,6 +7571,9 @@ class InputFlowNodeConfiguration(_SerdeShape): the data type that you specify. """ +class InputFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `InputFlowNodeConfiguration`.""" + @dataclass(kw_only=True) class IntermediateStorage(_SerdeShape): """ @@ -5294,6 +7584,12 @@ class IntermediateStorage(_SerdeShape): s3_location: S3Location """An S3 bucket path.""" +class IntermediateStorageDict(TypedDict, total=False): + """Dictionary form of `IntermediateStorage`.""" + + s3_location: Required[S3Location | S3LocationDict] + """An S3 bucket path.""" + @dataclass(kw_only=True) class InternalServerException(ServiceError, _SerdeShape): """An internal server error occurred. Retry your request.""" @@ -5339,6 +7635,9 @@ class IteratorFlowNodeConfiguration(_SerdeShape): can include a collector node downstream from the iterator node. """ +class IteratorFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `IteratorFlowNodeConfiguration`.""" + @dataclass(kw_only=True) class KendraKnowledgeBaseConfiguration(_SerdeShape): """Settings for an Amazon Kendra knowledge base.""" @@ -5346,6 +7645,12 @@ class KendraKnowledgeBaseConfiguration(_SerdeShape): kendra_index_arn: str """The ARN of the Amazon Kendra index.""" +class KendraKnowledgeBaseConfigurationDict(TypedDict, total=False): + """Dictionary form of `KendraKnowledgeBaseConfiguration`.""" + + kendra_index_arn: Required[str] + """The ARN of the Amazon Kendra index.""" + @dataclass(kw_only=True) class KnowledgeBase(_SerdeShape): """Contains information about a knowledge base.""" @@ -5433,6 +7738,41 @@ class KnowledgeBaseConfiguration(_SerdeShape): database. """ +class KnowledgeBaseConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseConfiguration`.""" + + type: Required[str] + """ + The type of data that the data source is converted into for the + knowledge base. Choose `MANAGED` to create a managed knowledge base. + """ + vector_knowledge_base_configuration: ( + VectorKnowledgeBaseConfiguration | VectorKnowledgeBaseConfigurationDict | None + ) + """ + Contains details about the model that's used to convert the data source + into vector embeddings. + """ + managed_knowledge_base_configuration: ( + ManagedKnowledgeBaseConfiguration | ManagedKnowledgeBaseConfigurationDict | None + ) + """ + Contains configuration details for a knowledge base that uses a vector + store fully managed by Amazon Bedrock. Specify this object when the + knowledge base type is MANAGED. + """ + kendra_knowledge_base_configuration: ( + KendraKnowledgeBaseConfiguration | KendraKnowledgeBaseConfigurationDict | None + ) + """Settings for an Amazon Kendra knowledge base.""" + sql_knowledge_base_configuration: ( + SqlKnowledgeBaseConfiguration | SqlKnowledgeBaseConfigurationDict | None + ) + """ + Specifies configurations for a knowledge base connected to an SQL + database. + """ + @dataclass(kw_only=True) class KnowledgeBaseDocument(_SerdeShape): """ @@ -5445,6 +7785,14 @@ class KnowledgeBaseDocument(_SerdeShape): content: DocumentContent """Contains the content of the document.""" +class KnowledgeBaseDocumentDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseDocument`.""" + + metadata: DocumentMetadata | DocumentMetadataDict | None + """Contains the metadata to associate with the document.""" + content: Required[DocumentContent | DocumentContentDict] + """Contains the content of the document.""" + @dataclass(kw_only=True) class KnowledgeBaseDocumentDetail(_SerdeShape): """Contains the details for a document that was ingested or deleted.""" @@ -5541,3 +7889,52 @@ class KnowledgeBaseFlowNodeConfiguration(_SerdeShape): The configuration for orchestrating the retrieval and generation process in the knowledge base node. """ + +class KnowledgeBaseFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseFlowNodeConfiguration`.""" + + knowledge_base_id: str | None + """The unique identifier of the knowledge base to query.""" + model_id: str | None + """ + The unique identifier of the model or [inference + profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) + to use to generate a response from the query results. Omit this field if + you want to return the retrieved results as an array. + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """ + Contains configurations for a guardrail to apply during query and + response generation for the knowledge base in this configuration. + """ + number_of_results: int | None + """The number of results to retrieve from the knowledge base.""" + prompt_template: ( + KnowledgeBasePromptTemplate | KnowledgeBasePromptTemplateDict | None + ) + """ + A custom prompt template to use with the knowledge base for generating + responses. + """ + inference_configuration: ( + PromptInferenceConfiguration | PromptInferenceConfigurationDict | None + ) + """Contains inference configurations for the prompt.""" + reranking_configuration: ( + VectorSearchRerankingConfiguration + | VectorSearchRerankingConfigurationDict + | None + ) + """ + The configuration for reranking the retrieved results from the knowledge + base to improve relevance. + """ + orchestration_configuration: ( + KnowledgeBaseOrchestrationConfiguration + | KnowledgeBaseOrchestrationConfigurationDict + | None + ) + """ + The configuration for orchestrating the retrieval and generation process + in the knowledge base node. + """ diff --git a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_1.pyi b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_1.pyi index dd9872946..62f530541 100644 --- a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_1.pyi +++ b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_1.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,62 +13,97 @@ from smithy_core.types import JsonString, UnknownEnumMixin from ..models import ( APISchema, + APISchemaDict, ActionGroupExecutor, + ActionGroupExecutorDict, ActionGroupSummary, Agent, AgentActionGroup, AgentAlias, AgentAliasRoutingConfigurationListItem, + AgentAliasRoutingConfigurationListItemDict, AgentAliasSummary, AgentCollaborator, AgentCollaboratorSummary, AgentDescriptor, + AgentDescriptorDict, AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentSummary, AgentVersionSummary, AnyToolChoice, + AnyToolChoiceDict, AudioExtractionConfiguration, + AudioExtractionConfigurationDict, AutoToolChoice, + AutoToolChoiceDict, BedrockDataAutomationConfiguration, + BedrockDataAutomationConfigurationDict, BedrockFoundationModelConfiguration, + BedrockFoundationModelConfigurationDict, CachePointBlock, + CachePointBlockDict, ChatPromptTemplateConfiguration, + ChatPromptTemplateConfigurationDict, ContentBlock, + ContentBlockDict, CrawlFilterConfiguration, + CrawlFilterConfigurationDict, CuratedQuery, + CuratedQueryDict, CustomOrchestration, + CustomOrchestrationDict, DailySchedule, + DailyScheduleDict, DataSource, DataSourceConfiguration, + DataSourceConfigurationDict, DataSourceSummary, DayOfMonth, + DayOfMonthDict, DeletionProtectionConfiguration, + DeletionProtectionConfigurationDict, EmbeddingModelConfiguration, + EmbeddingModelConfigurationDict, FieldForReranking, + FieldForRerankingDict, FlowAliasConcurrencyConfiguration, + FlowAliasConcurrencyConfigurationDict, FlowAliasRoutingConfigurationListItem, + FlowAliasRoutingConfigurationListItemDict, FlowAliasSummary, FlowCondition, + FlowConditionDict, FlowDefinition, + FlowDefinitionDict, FlowSummary, FlowVersionSummary, FunctionSchema, + FunctionSchemaDict, GuardrailConfiguration, + GuardrailConfigurationDict, ImageExtractionConfiguration, + ImageExtractionConfigurationDict, InferenceConfiguration, + InferenceConfigurationDict, IngestionJob, IngestionJobFilter, + IngestionJobFilterDict, IngestionJobSortBy, + IngestionJobSortByDict, IngestionJobSummary, KnowledgeBase, KnowledgeBaseConfiguration, + KnowledgeBaseConfigurationDict, KnowledgeBaseDocumentDetail, ServiceError, VectorIngestionConfiguration, + VectorIngestionConfigurationDict, VideoExtractionConfiguration, + VideoExtractionConfigurationDict, VpcConfigurationSummary, WeeklySchedule, + WeeklyScheduleDict, _SerdeShape, ) @@ -97,6 +133,31 @@ class KnowledgeBaseOrchestrationConfiguration(_SerdeShape): and generation process. """ +class KnowledgeBaseOrchestrationConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseOrchestrationConfiguration`.""" + + prompt_template: ( + KnowledgeBasePromptTemplate | KnowledgeBasePromptTemplateDict | None + ) + """ + A custom prompt template for orchestrating the retrieval and generation + process. + """ + inference_config: ( + PromptInferenceConfiguration | PromptInferenceConfigurationDict | None + ) + """Contains inference configurations for the prompt.""" + additional_model_request_fields: Mapping[str, Document] | None + """ + The additional model-specific request parameters as key-value pairs to + be included in the request to the foundation model. + """ + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """ + The performance configuration options for the knowledge base retrieval + and generation process. + """ + @dataclass(kw_only=True) class KnowledgeBasePromptTemplate(_SerdeShape): """ @@ -107,6 +168,12 @@ class KnowledgeBasePromptTemplate(_SerdeShape): text_prompt_template: str | None = ... """The text of the prompt template.""" +class KnowledgeBasePromptTemplateDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBasePromptTemplate`.""" + + text_prompt_template: str | None + """The text of the prompt template.""" + class KnowledgeBaseState(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -169,6 +236,12 @@ class LambdaFunctionFlowNodeConfiguration(_SerdeShape): lambda_arn: str = ... """The Amazon Resource Name (ARN) of the Lambda function to invoke.""" +class LambdaFunctionFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `LambdaFunctionFlowNodeConfiguration`.""" + + lambda_arn: str | None + """The Amazon Resource Name (ARN) of the Lambda function to invoke.""" + @dataclass(kw_only=True) class LastDayOfMonth(_SerdeShape): """ @@ -176,6 +249,9 @@ class LastDayOfMonth(_SerdeShape): month. """ +class LastDayOfMonthDict(TypedDict, total=False): + """Dictionary form of `LastDayOfMonth`.""" + @dataclass(kw_only=True) class LexFlowNodeConfiguration(_SerdeShape): """ @@ -192,6 +268,14 @@ class LexFlowNodeConfiguration(_SerdeShape): locale_id: str = ... """The Region to invoke the Amazon Lex bot in.""" +class LexFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `LexFlowNodeConfiguration`.""" + + bot_alias_arn: str | None + """The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.""" + locale_id: str | None + """The Region to invoke the Amazon Lex bot in.""" + @dataclass(kw_only=True) class ListAgentActionGroupsInput(_SerdeShape): """Dataclass for ListAgentActionGroupsInput structure.""" @@ -214,6 +298,27 @@ class ListAgentActionGroupsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListAgentActionGroupsInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentActionGroupsInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent.""" + agent_version: Required[str] + """The version of the agent.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListAgentActionGroupsOutput(_SerdeShape): """Dataclass for ListAgentActionGroupsOutput structure.""" @@ -257,6 +362,25 @@ class ListAgentAliasesInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListAgentAliasesInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentAliasesInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListAgentAliasesOutput(_SerdeShape): """Dataclass for ListAgentAliasesOutput structure.""" @@ -299,6 +423,24 @@ class ListAgentCollaboratorsInput(_SerdeShape): next page of results. """ +class ListAgentCollaboratorsInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentCollaboratorsInput`.""" + + agent_id: Required[str] + """The agent's ID.""" + agent_version: Required[str] + """The agent's version.""" + max_results: int | None + """ + The maximum number of agent collaborators to return in one page of + results. + """ + next_token: str | None + """ + Specify the pagination token from a previous request to retrieve the + next page of results. + """ + @dataclass(kw_only=True) class ListAgentCollaboratorsOutput(_SerdeShape): """Dataclass for ListAgentCollaboratorsOutput structure.""" @@ -346,6 +488,33 @@ class ListAgentKnowledgeBasesInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListAgentKnowledgeBasesInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentKnowledgeBasesInput`.""" + + agent_id: Required[str] + """ + The unique identifier of the agent for which to return information about + knowledge bases associated with it. + """ + agent_version: Required[str] + """ + The version of the agent for which to return information about knowledge + bases associated with it. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListAgentKnowledgeBasesOutput(_SerdeShape): """Dataclass for ListAgentKnowledgeBasesOutput structure.""" @@ -387,6 +556,23 @@ class ListAgentsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListAgentsInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentsInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListAgentsOutput(_SerdeShape): """Dataclass for ListAgentsOutput structure.""" @@ -427,6 +613,25 @@ class ListAgentVersionsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListAgentVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentVersionsInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListAgentVersionsOutput(_SerdeShape): """Dataclass for ListAgentVersionsOutput structure.""" @@ -473,6 +678,28 @@ class ListDataSourcesInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListDataSourcesInputDict(TypedDict, total=False): + """Dictionary form of `ListDataSourcesInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base for which to return a list + of information. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListDataSourcesOutput(_SerdeShape): """Dataclass for ListDataSourcesOutput structure.""" @@ -516,6 +743,25 @@ class ListFlowAliasesInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListFlowAliasesInputDict(TypedDict, total=False): + """Dictionary form of `ListFlowAliasesInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow for which aliases are being returned.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListFlowAliasesOutput(_SerdeShape): """Dataclass for ListFlowAliasesOutput structure.""" @@ -554,6 +800,23 @@ class ListFlowsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListFlowsInputDict(TypedDict, total=False): + """Dictionary form of `ListFlowsInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListFlowsOutput(_SerdeShape): """Dataclass for ListFlowsOutput structure.""" @@ -594,6 +857,25 @@ class ListFlowVersionsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListFlowVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListFlowVersionsInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListFlowVersionsOutput(_SerdeShape): """Dataclass for ListFlowVersionsOutput structure.""" @@ -646,6 +928,37 @@ class ListIngestionJobsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListIngestionJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListIngestionJobsInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base for the list of data + ingestion jobs. + """ + data_source_id: Required[str] + """ + The unique identifier of the data source for the list of data ingestion + jobs. + """ + filters: Sequence[IngestionJobFilter | IngestionJobFilterDict] | None + """Contains information about the filters for filtering the data.""" + sort_by: IngestionJobSortBy | IngestionJobSortByDict | None + """Contains details about how to sort the data.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListIngestionJobsOutput(_SerdeShape): """Dataclass for ListIngestionJobsOutput structure.""" @@ -691,6 +1004,30 @@ class ListKnowledgeBaseDocumentsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListKnowledgeBaseDocumentsInputDict(TypedDict, total=False): + """Dictionary form of `ListKnowledgeBaseDocumentsInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base that is connected to the + data source. + """ + data_source_id: Required[str] + """The unique identifier of the data source that contains the documents.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListKnowledgeBaseDocumentsOutput(_SerdeShape): """Dataclass for ListKnowledgeBaseDocumentsOutput structure.""" @@ -732,6 +1069,23 @@ class ListKnowledgeBasesInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListKnowledgeBasesInputDict(TypedDict, total=False): + """Dictionary form of `ListKnowledgeBasesInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListKnowledgeBasesOutput(_SerdeShape): """Dataclass for ListKnowledgeBasesOutput structure.""" @@ -776,6 +1130,29 @@ class ListPromptsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListPromptsInputDict(TypedDict, total=False): + """Dictionary form of `ListPromptsInput`.""" + + prompt_identifier: str | None + """ + The unique identifier of the prompt for whose versions you want to + return information. Omit this field to list information about all + prompts in an account. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListPromptsOutput(_SerdeShape): """Dataclass for ListPromptsOutput structure.""" @@ -813,6 +1190,19 @@ class ListRetrievalInstructionsInput(_SerdeShape): next_token: str | None = ... """The pagination token from a previous ListRetrievalInstructions response.""" +class ListRetrievalInstructionsInputDict(TypedDict, total=False): + """Dictionary form of `ListRetrievalInstructionsInput`.""" + + status: str | None + """Return only instructions with this availability status.""" + max_results: int | None + """ + The maximum number of results to return in a single page. The effective + upper bound is enforced service-side. + """ + next_token: str | None + """The pagination token from a previous ListRetrievalInstructions response.""" + @dataclass(kw_only=True) class ListRetrievalInstructionsOutput(_SerdeShape): """Dataclass for ListRetrievalInstructionsOutput structure.""" @@ -849,7 +1239,23 @@ class ListRetrievalInstructionVersionsInput(_SerdeShape): response. """ -@dataclass(kw_only=True) +class ListRetrievalInstructionVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListRetrievalInstructionVersionsInput`.""" + + retrieval_instruction_id: Required[str] + """The identifier of the retrieval instruction whose versions to list.""" + max_results: int | None + """ + Specifies the maximum number of versions to return in a single page. The + service enforces the effective upper bound. + """ + next_token: str | None + """ + The pagination token from a previous ListRetrievalInstructionVersions + response. + """ + +@dataclass(kw_only=True) class ListRetrievalInstructionVersionsOutput(_SerdeShape): """Dataclass for ListRetrievalInstructionVersionsOutput structure.""" @@ -875,6 +1281,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """The Amazon Resource Name (ARN) of the resource for which to list tags.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource for which to list tags.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -914,6 +1326,30 @@ class ListVpcConfigurationsInput(_SerdeShape): previous response when more results are available. """ +class ListVpcConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `ListVpcConfigurationsInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base whose VPC configurations you + want to list. + """ + status_filter: str | None + """ + The status to filter the results by. Only VPC configurations with the + specified status are returned. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If more results + are available, the response returns a `nextToken`. + """ + next_token: str | None + """ + A pagination token to retrieve the next page of results, returned in a + previous response when more results are available. + """ + @dataclass(kw_only=True) class ListVpcConfigurationsOutput(_SerdeShape): """Dataclass for ListVpcConfigurationsOutput structure.""" @@ -951,6 +1387,20 @@ class LoopControllerFlowNodeConfiguration(_SerdeShape): before the flow exits the loop. """ +class LoopControllerFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `LoopControllerFlowNodeConfiguration`.""" + + continue_condition: Required[FlowCondition | FlowConditionDict] + """ + Specifies the condition that determines when the flow exits the DoWhile + loop. The loop executes until this condition evaluates to true. + """ + max_iterations: int | None + """ + Specifies the maximum number of times the DoWhile loop can iterate + before the flow exits the loop. + """ + @dataclass(kw_only=True) class LoopFlowNodeConfiguration(_SerdeShape): """ @@ -984,6 +1434,15 @@ class LoopFlowNodeConfiguration(_SerdeShape): in the flow. """ +class LoopFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `LoopFlowNodeConfiguration`.""" + + definition: Required[FlowDefinition | FlowDefinitionDict] + """ + The definition of the DoWhile loop nodes and connections between nodes + in the flow. + """ + @dataclass(kw_only=True) class LoopIncompatibleNodeTypeFlowValidationDetails(_SerdeShape): """ @@ -1008,6 +1467,9 @@ class LoopInputFlowNodeConfiguration(_SerdeShape): flow. """ +class LoopInputFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `LoopInputFlowNodeConfiguration`.""" + @dataclass(kw_only=True) class MalformedConditionExpressionFlowValidationDetails(_SerdeShape): """Details about a malformed condition expression in a node.""" @@ -1060,6 +1522,41 @@ class ManagedKnowledgeBaseConfiguration(_SerdeShape): required when you use a native multimodal embedding model. """ +class ManagedKnowledgeBaseConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedKnowledgeBaseConfiguration`.""" + + embedding_model_type: str | None + """ + Choose CUSTOM to provide your own Bedrock embedding model ARN. Choose + MANAGED to use a service-managed embedding model. + """ + embedding_model_arn: str | None + """The ARN for the embeddings model.""" + embedding_model_configuration: ( + EmbeddingModelConfiguration | EmbeddingModelConfigurationDict | None + ) + """ + The configuration details for the embeddings model. Not required when + choosing the MANAGED embeddingModelType. + """ + server_side_encryption_configuration: ( + ServerSideEncryptionConfiguration | ServerSideEncryptionConfigurationDict | None + ) + """ + Contains the configuration for server-side encryption for your managed + knowledge base. + """ + supplemental_data_storage_configuration: ( + SupplementalDataStorageConfiguration + | SupplementalDataStorageConfigurationDict + | None + ) + """ + Use this object to specify the Amazon S3 location that the knowledge + base uses to process and ingest multimodal content. This field is + required when you use a native multimodal embedding model. + """ + @dataclass(kw_only=True) class ManagedKnowledgeBaseConnectorConfiguration(_SerdeShape): """Configuration for managed knowledge base connector data sources.""" @@ -1084,6 +1581,33 @@ class ManagedKnowledgeBaseConnectorConfiguration(_SerdeShape): Custom connector. """ +class ManagedKnowledgeBaseConnectorConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedKnowledgeBaseConnectorConfiguration`.""" + + deletion_protection_configuration: ( + DeletionProtectionConfiguration | DeletionProtectionConfigurationDict | None + ) + """A safeguard against accidental bulk deletion of indexed content.""" + media_extraction_configuration: ( + MediaExtractionConfiguration | MediaExtractionConfigurationDict | None + ) + """ + Configuration for extracting media (images, audio, video) from data + source files. + """ + connector_parameters: Document | None + """ + Connector-specific parameters. For more information, see [Connect a data + source](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-managed-connect-ds.html). + """ + sync_schedule: SyncSchedule | SyncScheduleDict | None + """ + The recurring schedule on which the connector automatically syncs this + data source. If not specified, the data source is not synced + automatically and you start each sync yourself. Not supported for the + Custom connector. + """ + @dataclass(kw_only=True) class MediaExtractionConfiguration(_SerdeShape): """Configuration for media extraction settings.""" @@ -1095,6 +1619,22 @@ class MediaExtractionConfiguration(_SerdeShape): video_extraction_configuration: VideoExtractionConfiguration | None = ... """Configuration for video extraction.""" +class MediaExtractionConfigurationDict(TypedDict, total=False): + """Dictionary form of `MediaExtractionConfiguration`.""" + + image_extraction_configuration: ( + ImageExtractionConfiguration | ImageExtractionConfigurationDict | None + ) + """Configuration for image extraction.""" + audio_extraction_configuration: ( + AudioExtractionConfiguration | AudioExtractionConfigurationDict | None + ) + """Configuration for audio extraction.""" + video_extraction_configuration: ( + VideoExtractionConfiguration | VideoExtractionConfigurationDict | None + ) + """Configuration for video extraction.""" + @dataclass(kw_only=True) class MemoryConfiguration(_SerdeShape): """Details of the memory configuration.""" @@ -1112,6 +1652,24 @@ class MemoryConfiguration(_SerdeShape): the agent. """ +class MemoryConfigurationDict(TypedDict, total=False): + """Dictionary form of `MemoryConfiguration`.""" + + enabled_memory_types: Required[Sequence[str]] + """The type of memory that is stored.""" + storage_days: int | None + """ + The number of days the agent is configured to retain the conversational + context. + """ + session_summary_configuration: ( + SessionSummaryConfiguration | SessionSummaryConfigurationDict | None + ) + """ + Contains the configuration for SESSION_SUMMARY memory type enabled for + the agent. + """ + class MemoryType(UnknownEnumMixin, StrEnum): SESSION_SUMMARY = "SESSION_SUMMARY" @@ -1128,6 +1686,14 @@ class Message(_SerdeShape): content: list[ContentBlock] """The content in the message.""" +class MessageDict(TypedDict, total=False): + """Dictionary form of `Message`.""" + + role: Required[str] + """The role that the message belongs to.""" + content: Required[Sequence[ContentBlock | ContentBlockDict]] + """The content in the message.""" + @dataclass(kw_only=True) class MetadataAttribute(_SerdeShape): """Contains information about a metadata attribute.""" @@ -1137,6 +1703,14 @@ class MetadataAttribute(_SerdeShape): value: MetadataAttributeValue """Contains the value of the metadata attribute.""" +class MetadataAttributeDict(TypedDict, total=False): + """Dictionary form of `MetadataAttribute`.""" + + key: Required[str] + """The key of the metadata attribute.""" + value: Required[MetadataAttributeValue | MetadataAttributeValueDict] + """Contains the value of the metadata attribute.""" + @dataclass(kw_only=True) class MetadataAttributeValue(_SerdeShape): """ @@ -1155,6 +1729,20 @@ class MetadataAttributeValue(_SerdeShape): string_list_value: list[str] | None = ... """An array of strings that define the value of the metadata attribute.""" +class MetadataAttributeValueDict(TypedDict, total=False): + """Dictionary form of `MetadataAttributeValue`.""" + + type: Required[str] + """The type of the metadata attribute.""" + number_value: float | None + """The value of the numeric metadata attribute.""" + boolean_value: bool | None + """The value of the Boolean metadata attribute.""" + string_value: str | None + """The value of the string metadata attribute.""" + string_list_value: Sequence[str] | None + """An array of strings that define the value of the metadata attribute.""" + @dataclass(kw_only=True) class MetadataConfiguration(_SerdeShape): """ @@ -1179,6 +1767,25 @@ class MetadataConfiguration(_SerdeShape): - `DISABLED` -- The field is not searchable. """ +class MetadataConfigurationDict(TypedDict, total=False): + """Dictionary form of `MetadataConfiguration`.""" + + name: Required[str] + """The name of the custom metadata field.""" + type: Required[str] + """ + The data type of the custom metadata field. Valid values are `STRING` + and `STRING_LIST`. + """ + searchability: Required[str] + """ + Specifies whether the custom metadata field is searchable. Valid values: + + - `ENABLED` -- The field is searchable. + + - `DISABLED` -- The field is not searchable. + """ + @dataclass(kw_only=True) class MetadataConfigurationForReranking(_SerdeShape): """ @@ -1196,6 +1803,21 @@ class MetadataConfigurationForReranking(_SerdeShape): during reranking. """ +class MetadataConfigurationForRerankingDict(TypedDict, total=False): + """Dictionary form of `MetadataConfigurationForReranking`.""" + + selection_mode: Required[str] + """The mode for selecting metadata fields for reranking.""" + selective_mode_configuration: ( + RerankingMetadataSelectiveModeConfiguration + | RerankingMetadataSelectiveModeConfigurationDict + | None + ) + """ + The configuration for selective metadata field inclusion or exclusion + during reranking. + """ + class MetadataSourceType(UnknownEnumMixin, StrEnum): IN_LINE_ATTRIBUTE = "IN_LINE_ATTRIBUTE" S3_LOCATION = "S3_LOCATION" @@ -1340,6 +1962,38 @@ class MongoDbAtlasConfiguration(_SerdeShape): required for using the hybrid search feature. """ +class MongoDbAtlasConfigurationDict(TypedDict, total=False): + """Dictionary form of `MongoDbAtlasConfiguration`.""" + + endpoint: Required[str] + """The endpoint URL of your MongoDB Atlas cluster for your knowledge base.""" + database_name: Required[str] + """The database name in your MongoDB Atlas cluster for your knowledge base.""" + collection_name: Required[str] + """The collection name of the knowledge base in MongoDB Atlas.""" + vector_index_name: Required[str] + """The name of the MongoDB Atlas vector search index.""" + credentials_secret_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the secret that you created in Secrets + Manager that contains user credentials for your MongoDB Atlas cluster. + """ + field_mapping: Required[MongoDbAtlasFieldMapping | MongoDbAtlasFieldMappingDict] + """ + Contains the names of the fields to which to map information about the + vector store. + """ + endpoint_service_name: str | None + """ + The name of the VPC endpoint service in your account that is connected + to your MongoDB Atlas cluster. + """ + text_index_name: str | None + """ + The name of the text search index in the MongoDB collection. This is + required for using the hybrid search feature. + """ + @dataclass(kw_only=True) class MongoDbAtlasFieldMapping(_SerdeShape): """ @@ -1364,6 +2018,26 @@ class MongoDbAtlasFieldMapping(_SerdeShape): vector store. """ +class MongoDbAtlasFieldMappingDict(TypedDict, total=False): + """Dictionary form of `MongoDbAtlasFieldMapping`.""" + + vector_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the vector + embeddings for your data sources. + """ + text_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the raw text from + your data. The text is split according to the chunking strategy you + choose. + """ + metadata_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores metadata about the + vector store. + """ + @dataclass(kw_only=True) class MonthlySchedule(_SerdeShape): """A monthly sync on a specified day of the month.""" @@ -1371,6 +2045,12 @@ class MonthlySchedule(_SerdeShape): day_of_month: DayOfMonth """The day of the month on which the monthly sync runs.""" +class MonthlyScheduleDict(TypedDict, total=False): + """Dictionary form of `MonthlySchedule`.""" + + day_of_month: Required[DayOfMonth | DayOfMonthDict] + """The day of the month on which the monthly sync runs.""" + @dataclass(kw_only=True) class MultipleLoopControllerNodesFlowValidationDetails(_SerdeShape): """ @@ -1420,6 +2100,19 @@ class NeptuneAnalyticsConfiguration(_SerdeShape): vector store. """ +class NeptuneAnalyticsConfigurationDict(TypedDict, total=False): + """Dictionary form of `NeptuneAnalyticsConfiguration`.""" + + graph_arn: Required[str] + """The Amazon Resource Name (ARN) of the Neptune Analytics vector store.""" + field_mapping: Required[ + NeptuneAnalyticsFieldMapping | NeptuneAnalyticsFieldMappingDict + ] + """ + Contains the names of the fields to which to map information about the + vector store. + """ + @dataclass(kw_only=True) class NeptuneAnalyticsFieldMapping(_SerdeShape): """ @@ -1439,6 +2132,21 @@ class NeptuneAnalyticsFieldMapping(_SerdeShape): vector store. """ +class NeptuneAnalyticsFieldMappingDict(TypedDict, total=False): + """Dictionary form of `NeptuneAnalyticsFieldMapping`.""" + + text_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the raw text from + your data. The text is split according to the chunking strategy you + choose. + """ + metadata_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores metadata about the + vector store. + """ + @dataclass(kw_only=True) class OpenSearchManagedClusterConfiguration(_SerdeShape): """ @@ -1460,6 +2168,23 @@ class OpenSearchManagedClusterConfiguration(_SerdeShape): vector store. """ +class OpenSearchManagedClusterConfigurationDict(TypedDict, total=False): + """Dictionary form of `OpenSearchManagedClusterConfiguration`.""" + + domain_endpoint: Required[str] + """The endpoint URL the OpenSearch domain.""" + domain_arn: Required[str] + """The Amazon Resource Name (ARN) of the OpenSearch domain.""" + vector_index_name: Required[str] + """The name of the vector store.""" + field_mapping: Required[ + OpenSearchManagedClusterFieldMapping | OpenSearchManagedClusterFieldMappingDict + ] + """ + Contains the names of the fields to which to map information about the + vector store. + """ + @dataclass(kw_only=True) class OpenSearchManagedClusterFieldMapping(_SerdeShape): """ @@ -1484,6 +2209,26 @@ class OpenSearchManagedClusterFieldMapping(_SerdeShape): vector store. """ +class OpenSearchManagedClusterFieldMappingDict(TypedDict, total=False): + """Dictionary form of `OpenSearchManagedClusterFieldMapping`.""" + + vector_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the vector + embeddings for your data sources. + """ + text_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the raw text from + your data. The text is split according to the chunking strategy you + choose. + """ + metadata_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores metadata about the + vector store. + """ + @dataclass(kw_only=True) class OpenSearchServerlessConfiguration(_SerdeShape): """ @@ -1503,6 +2248,21 @@ class OpenSearchServerlessConfiguration(_SerdeShape): vector store. """ +class OpenSearchServerlessConfigurationDict(TypedDict, total=False): + """Dictionary form of `OpenSearchServerlessConfiguration`.""" + + collection_arn: Required[str] + """The Amazon Resource Name (ARN) of the OpenSearch Service vector store.""" + vector_index_name: Required[str] + """The name of the vector store.""" + field_mapping: Required[ + OpenSearchServerlessFieldMapping | OpenSearchServerlessFieldMappingDict + ] + """ + Contains the names of the fields to which to map information about the + vector store. + """ + @dataclass(kw_only=True) class OpenSearchServerlessFieldMapping(_SerdeShape): """ @@ -1527,6 +2287,26 @@ class OpenSearchServerlessFieldMapping(_SerdeShape): vector store. """ +class OpenSearchServerlessFieldMappingDict(TypedDict, total=False): + """Dictionary form of `OpenSearchServerlessFieldMapping`.""" + + vector_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the vector + embeddings for your data sources. + """ + text_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the raw text from + your data. The text is split according to the chunking strategy you + choose. + """ + metadata_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores metadata about the + vector store. + """ + @dataclass class OrchestrationExecutorLambda(_SerdeShape): """ @@ -1557,6 +2337,19 @@ logic carried out upon invoking the custom orchestration. class _OrchestrationExecutorDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> OrchestrationExecutor: ... +class OrchestrationExecutorLambdaDict(TypedDict): + lambda_: str + """ + The Amazon Resource Name (ARN) of the Lambda function containing the + business logic that is carried out upon invoking the action. + """ + +OrchestrationExecutorDict = Union[OrchestrationExecutorLambdaDict] +""" +Dictionary form of `OrchestrationExecutor`, setting exactly one +variant. +""" + class OrchestrationType(UnknownEnumMixin, StrEnum): DEFAULT = "DEFAULT" CUSTOM_ORCHESTRATION = "CUSTOM_ORCHESTRATION" @@ -1569,6 +2362,9 @@ class OutputFlowNodeConfiguration(_SerdeShape): and how to return the final output in the `expression` field. """ +class OutputFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `OutputFlowNodeConfiguration`.""" + @dataclass(kw_only=True) class ParameterDetail(_SerdeShape): """ @@ -1605,6 +2401,22 @@ class ParameterDetail(_SerdeShape): for action group invocation. """ +class ParameterDetailDict(TypedDict, total=False): + """Dictionary form of `ParameterDetail`.""" + + description: str | None + """ + A description of the parameter. Helps the foundation model determine how + to elicit the parameters from the user. + """ + type: Required[str] + """The data type of the parameter.""" + required: bool | None + """ + Whether the parameter is required for the agent to complete the function + for action group invocation. + """ + @dataclass(kw_only=True) class ParsingConfiguration(_SerdeShape): """ @@ -1656,6 +2468,47 @@ class ParsingConfiguration(_SerdeShape): using the Amazon Bedrock Data Automation parser. """ +class ParsingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ParsingConfiguration`.""" + + parsing_strategy: Required[str] + """ + The parsing strategy for the data source. + + For managed knowledge bases, the strategy that you can select depends on + the embedding model that your knowledge base uses: + + - If your knowledge base uses a native multimodal embedding model, + specify `MULTI_MODAL_EMBEDDINGS`. With this strategy, files are sent + directly to the embedding model instead of being parsed into text. + This is the only strategy that is supported for these knowledge bases. + + - Otherwise, specify `SMART_PARSING`. + + For more information, see [Customize ingestion for managed knowledge + bases](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-managed-customize-ingestion.html). + """ + bedrock_foundation_model_configuration: ( + BedrockFoundationModelConfiguration + | BedrockFoundationModelConfigurationDict + | None + ) + """ + If you specify `BEDROCK_FOUNDATION_MODEL` as the parsing strategy for + ingesting your data source, use this object to modify configurations for + using a foundation model to parse documents. + """ + bedrock_data_automation_configuration: ( + BedrockDataAutomationConfiguration + | BedrockDataAutomationConfigurationDict + | None + ) + """ + If you specify `BEDROCK_DATA_AUTOMATION` as the parsing strategy for + ingesting your data source, use this object to modify configurations for + using the Amazon Bedrock Data Automation parser. + """ + class ParsingModality(UnknownEnumMixin, StrEnum): MULTIMODAL = "MULTIMODAL" @@ -1666,6 +2519,12 @@ class ParsingPrompt(_SerdeShape): parsing_prompt_text: str """Instructions for interpreting the contents of a document.""" +class ParsingPromptDict(TypedDict, total=False): + """Dictionary form of `ParsingPrompt`.""" + + parsing_prompt_text: Required[str] + """Instructions for interpreting the contents of a document.""" + class ParsingStrategy(UnknownEnumMixin, StrEnum): BEDROCK_FOUNDATION_MODEL = "BEDROCK_FOUNDATION_MODEL" BEDROCK_DATA_AUTOMATION = "BEDROCK_DATA_AUTOMATION" @@ -1696,6 +2555,26 @@ class PatternObjectFilter(_SerdeShape): exclusion filter takes precedence and the document isn't crawled. """ +class PatternObjectFilterDict(TypedDict, total=False): + """Dictionary form of `PatternObjectFilter`.""" + + object_type: Required[str] + """The supported object type or content type of the data source.""" + inclusion_filters: Sequence[str] | None + """ + A list of one or more inclusion regular expression patterns to include + certain object types that adhere to the pattern. If you specify an + inclusion and exclusion filter/pattern and both match a document, the + exclusion filter takes precedence and the document isn't crawled. + """ + exclusion_filters: Sequence[str] | None + """ + A list of one or more exclusion regular expression patterns to exclude + certain object types that adhere to the pattern. If you specify an + inclusion and exclusion filter/pattern and both match a document, the + exclusion filter takes precedence and the document isn't crawled. + """ + @dataclass(kw_only=True) class PatternObjectFilterConfiguration(_SerdeShape): """ @@ -1709,6 +2588,15 @@ class PatternObjectFilterConfiguration(_SerdeShape): content. You can filter out or include certain content. """ +class PatternObjectFilterConfigurationDict(TypedDict, total=False): + """Dictionary form of `PatternObjectFilterConfiguration`.""" + + filters: Required[Sequence[PatternObjectFilter | PatternObjectFilterDict]] + """ + The configuration of specific filters applied to your data source + content. You can filter out or include certain content. + """ + class PerformanceConfigLatency(UnknownEnumMixin, StrEnum): STANDARD = "standard" OPTIMIZED = "optimized" @@ -1723,6 +2611,12 @@ class PerformanceConfiguration(_SerdeShape): latency: str = ... """The latency optimization setting.""" +class PerformanceConfigurationDict(TypedDict, total=False): + """Dictionary form of `PerformanceConfiguration`.""" + + latency: str | None + """The latency optimization setting.""" + @dataclass(kw_only=True) class PineconeConfiguration(_SerdeShape): """ @@ -1746,6 +2640,24 @@ class PineconeConfiguration(_SerdeShape): vector store. """ +class PineconeConfigurationDict(TypedDict, total=False): + """Dictionary form of `PineconeConfiguration`.""" + + connection_string: Required[str] + """The endpoint URL for your index management page.""" + credentials_secret_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the secret that you created in Secrets + Manager that is linked to your Pinecone API key. + """ + namespace: str | None + """The namespace to be used to write new data to your database.""" + field_mapping: Required[PineconeFieldMapping | PineconeFieldMappingDict] + """ + Contains the names of the fields to which to map information about the + vector store. + """ + @dataclass(kw_only=True) class PineconeFieldMapping(_SerdeShape): """ @@ -1765,6 +2677,21 @@ class PineconeFieldMapping(_SerdeShape): vector store. """ +class PineconeFieldMappingDict(TypedDict, total=False): + """Dictionary form of `PineconeFieldMapping`.""" + + text_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the raw text from + your data. The text is split according to the chunking strategy you + choose. + """ + metadata_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores metadata about the + vector store. + """ + @dataclass(kw_only=True) class PrepareAgentInput(_SerdeShape): """Dataclass for PrepareAgentInput structure.""" @@ -1775,6 +2702,15 @@ class PrepareAgentInput(_SerdeShape): version. """ +class PrepareAgentInputDict(TypedDict, total=False): + """Dictionary form of `PrepareAgentInput`.""" + + agent_id: Required[str] + """ + The unique identifier of the agent for which to create a `DRAFT` + version. + """ + @dataclass(kw_only=True) class PrepareAgentOutput(_SerdeShape): """Dataclass for PrepareAgentOutput structure.""" @@ -1805,6 +2741,12 @@ class PrepareFlowInput(_SerdeShape): flow_identifier: str | None = ... """The unique identifier of the flow.""" +class PrepareFlowInputDict(TypedDict, total=False): + """Dictionary form of `PrepareFlowInput`.""" + + flow_identifier: Required[str] + """The unique identifier of the flow.""" + @dataclass(kw_only=True) class PrepareFlowOutput(_SerdeShape): """Dataclass for PrepareFlowOutput structure.""" @@ -1838,6 +2780,12 @@ class PromptAgentResource(_SerdeShape): agent_identifier: str """The ARN of the agent with which to use the prompt.""" +class PromptAgentResourceDict(TypedDict, total=False): + """Dictionary form of `PromptAgentResource`.""" + + agent_identifier: Required[str] + """The ARN of the agent with which to use the prompt.""" + @dataclass(kw_only=True) class PromptConfiguration(_SerdeShape): """ @@ -1911,6 +2859,74 @@ class PromptConfiguration(_SerdeShape): fields for foundation models* in the Amazon Bedrock user guide. """ +class PromptConfigurationDict(TypedDict, total=False): + """Dictionary form of `PromptConfiguration`.""" + + prompt_type: str | None + """ + The step in the agent sequence that this prompt configuration applies + to. + """ + prompt_creation_mode: str | None + """ + Specifies whether to override the default prompt template for this + `promptType`. Set this value to `OVERRIDDEN` to use the prompt that you + provide in the `basePromptTemplate`. If you leave it as `DEFAULT`, the + agent uses a default prompt template. + """ + prompt_state: str | None + """ + Specifies whether to allow the agent to carry out the step specified in + the `promptType`. If you set this value to `DISABLED`, the agent skips + that step. The default state for each `promptType` is as follows. + + - `PRE_PROCESSING` -- `DISABLED` + + - `ORCHESTRATION` -- `ENABLED` + + - `KNOWLEDGE_BASE_RESPONSE_GENERATION` -- `ENABLED` + + - `POST_PROCESSING` -- `DISABLED` + """ + base_prompt_template: str | None + """ + Defines the prompt template with which to replace the default prompt + template. You can use placeholder variables in the base prompt template + to customize the prompt. For more information, see [Prompt template + placeholder + variables](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html). + For more information, see [Configure the prompt + templates](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts-configure.html). + """ + inference_configuration: InferenceConfiguration | InferenceConfigurationDict | None + """ + Contains inference parameters to use when the agent invokes a foundation + model in the part of the agent sequence defined by the `promptType`. For + more information, see [Inference parameters for foundation + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + parser_mode: str | None + """ + Specifies whether to override the default parser Lambda function when + parsing the raw foundation model output in the part of the agent + sequence defined by the `promptType`. If you set the field as + `OVERRIDDEN`, the `overrideLambda` field in the + [PromptOverrideConfiguration](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) + must be specified with the ARN of a Lambda function. + """ + foundation_model: str | None + """The agent's foundation model.""" + additional_model_request_fields: Document | None + """ + If the Converse or ConverseStream operations support the model, + `additionalModelRequestFields` contains additional inference parameters, + beyond the base set of inference parameters in the + `inferenceConfiguration` field. + + For more information, see *Inference request parameters and response + fields for foundation models* in the Amazon Bedrock user guide. + """ + @dataclass(kw_only=True) class PromptFlowNodeConfiguration(_SerdeShape): """ @@ -1934,6 +2950,22 @@ class PromptFlowNodeConfiguration(_SerdeShape): node and the response generated from it. """ +class PromptFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `PromptFlowNodeConfiguration`.""" + + source_configuration: Required[ + PromptFlowNodeSourceConfiguration | PromptFlowNodeSourceConfigurationDict + ] + """ + Specifies whether the prompt is from Prompt management or defined + inline. + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """ + Contains configurations for a guardrail to apply to the prompt in this + node and the response generated from it. + """ + @dataclass(kw_only=True) class PromptFlowNodeInlineConfiguration(_SerdeShape): """Contains configurations for a prompt defined inline in the node.""" @@ -1959,6 +2991,34 @@ class PromptFlowNodeInlineConfiguration(_SerdeShape): node. """ +class PromptFlowNodeInlineConfigurationDict(TypedDict, total=False): + """Dictionary form of `PromptFlowNodeInlineConfiguration`.""" + + template_type: str | None + """The type of prompt template.""" + template_configuration: Required[ + PromptTemplateConfiguration | PromptTemplateConfigurationDict + ] + """ + Contains a prompt and variables in the prompt that can be replaced with + values at runtime. + """ + model_id: str | None + """ + The unique identifier of the model or [inference + profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) + to run inference with. + """ + inference_configuration: ( + PromptInferenceConfiguration | PromptInferenceConfigurationDict | None + ) + """Contains inference configurations for the prompt.""" + additional_model_request_fields: Document | None + """ + Additional fields to be included in the model request for the Prompt + node. + """ + @dataclass(kw_only=True) class PromptFlowNodeResourceConfiguration(_SerdeShape): """ @@ -1969,6 +3029,12 @@ class PromptFlowNodeResourceConfiguration(_SerdeShape): prompt_arn: str = ... """The Amazon Resource Name (ARN) of the prompt from Prompt management.""" +class PromptFlowNodeResourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `PromptFlowNodeResourceConfiguration`.""" + + prompt_arn: str | None + """The Amazon Resource Name (ARN) of the prompt from Prompt management.""" + @dataclass class PromptFlowNodeSourceConfigurationResource(_SerdeShape): """Contains configurations for a prompt from Prompt management.""" @@ -2006,6 +3072,25 @@ class _PromptFlowNodeSourceConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> PromptFlowNodeSourceConfiguration: ... +class PromptFlowNodeSourceConfigurationResourceDict(TypedDict): + resource: ( + PromptFlowNodeResourceConfiguration | PromptFlowNodeResourceConfigurationDict + ) + """Contains configurations for a prompt from Prompt management.""" + +class PromptFlowNodeSourceConfigurationInlineDict(TypedDict): + inline: PromptFlowNodeInlineConfiguration | PromptFlowNodeInlineConfigurationDict + """Contains configurations for a prompt that is defined inline""" + +PromptFlowNodeSourceConfigurationDict = Union[ + PromptFlowNodeSourceConfigurationResourceDict + | PromptFlowNodeSourceConfigurationInlineDict +] +""" +Dictionary form of `PromptFlowNodeSourceConfiguration`, setting +exactly one variant. +""" + @dataclass class PromptGenAiResourceAgent(_SerdeShape): """Specifies an Amazon Bedrock agent with which to use the prompt.""" @@ -2032,6 +3117,13 @@ management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-manageme class _PromptGenAiResourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PromptGenAiResource: ... +class PromptGenAiResourceAgentDict(TypedDict): + agent: PromptAgentResource | PromptAgentResourceDict + """Specifies an Amazon Bedrock agent with which to use the prompt.""" + +PromptGenAiResourceDict = Union[PromptGenAiResourceAgentDict] +"""Dictionary form of `PromptGenAiResource`, setting exactly one variant.""" + @dataclass class PromptInferenceConfigurationText(_SerdeShape): """Contains inference configurations for a text prompt.""" @@ -2058,6 +3150,16 @@ class _PromptInferenceConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> PromptInferenceConfiguration: ... +class PromptInferenceConfigurationTextDict(TypedDict): + text: PromptModelInferenceConfiguration | PromptModelInferenceConfigurationDict + """Contains inference configurations for a text prompt.""" + +PromptInferenceConfigurationDict = Union[PromptInferenceConfigurationTextDict] +""" +Dictionary form of `PromptInferenceConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class PromptInputVariable(_SerdeShape): """Contains information about a variable in the prompt.""" @@ -2065,6 +3167,12 @@ class PromptInputVariable(_SerdeShape): name: str | None = ... """The name of the variable.""" +class PromptInputVariableDict(TypedDict, total=False): + """Dictionary form of `PromptInputVariable`.""" + + name: str | None + """The name of the variable.""" + @dataclass(kw_only=True) class PromptMetadataEntry(_SerdeShape): """ @@ -2079,6 +3187,14 @@ class PromptMetadataEntry(_SerdeShape): value: str """The value of a metadata tag for a prompt variant.""" +class PromptMetadataEntryDict(TypedDict, total=False): + """Dictionary form of `PromptMetadataEntry`.""" + + key: Required[str] + """The key of a metadata tag for a prompt variant.""" + value: Required[str] + """The value of a metadata tag for a prompt variant.""" + @dataclass(kw_only=True) class PromptModelInferenceConfiguration(_SerdeShape): """ @@ -2105,6 +3221,27 @@ class PromptModelInferenceConfiguration(_SerdeShape): generating. """ +class PromptModelInferenceConfigurationDict(TypedDict, total=False): + """Dictionary form of `PromptModelInferenceConfiguration`.""" + + temperature: float | None + """ + Controls the randomness of the response. Choose a lower value for more + predictable outputs and a higher value for more surprising outputs. + """ + top_p: float | None + """ + The percentage of most-likely candidates that the model considers for + the next token. + """ + max_tokens: int | None + """The maximum number of tokens to return in the response.""" + stop_sequences: Sequence[str] | None + """ + A list of strings that define sequences after which the model will stop + generating. + """ + @dataclass(kw_only=True) class PromptOverrideConfiguration(_SerdeShape): """ @@ -2129,6 +3266,27 @@ class PromptOverrideConfiguration(_SerdeShape): Agents](https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html). """ +class PromptOverrideConfigurationDict(TypedDict, total=False): + """Dictionary form of `PromptOverrideConfiguration`.""" + + prompt_configurations: Required[ + Sequence[PromptConfiguration | PromptConfigurationDict] + ] + """ + Contains configurations to override a prompt template in one part of an + agent sequence. For more information, see [Advanced + prompts](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html). + """ + override_lambda: str | None + """ + The ARN of the Lambda function to use when parsing the raw foundation + model output in parts of the agent sequence. If you specify this field, + at least one of the `promptConfigurations` must contain a `parserMode` + value that is set to `OVERRIDDEN`. For more information, see [Parser + Lambda function in Amazon Bedrock + Agents](https://docs.aws.amazon.com/bedrock/latest/userguide/lambda-parser.html). + """ + class PromptState(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -2200,6 +3358,22 @@ class _PromptTemplateConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> PromptTemplateConfiguration: ... +class PromptTemplateConfigurationTextDict(TypedDict): + text: TextPromptTemplateConfiguration | TextPromptTemplateConfigurationDict + """Contains configurations for the text in a message for a prompt.""" + +class PromptTemplateConfigurationChatDict(TypedDict): + chat: ChatPromptTemplateConfiguration | ChatPromptTemplateConfigurationDict + """Contains configurations to use the prompt in a conversational format.""" + +PromptTemplateConfigurationDict = Union[ + PromptTemplateConfigurationTextDict | PromptTemplateConfigurationChatDict +] +""" +Dictionary form of `PromptTemplateConfiguration`, setting exactly one +variant. +""" + class PromptTemplateType(UnknownEnumMixin, StrEnum): TEXT = "TEXT" CHAT = "CHAT" @@ -2245,6 +3419,43 @@ class PromptVariant(_SerdeShape): gen_ai_resource: PromptGenAiResource | None = ... """Specifies a generative AI resource with which to use the prompt.""" +class PromptVariantDict(TypedDict, total=False): + """Dictionary form of `PromptVariant`.""" + + name: Required[str] + """The name of the prompt variant.""" + template_type: Required[str] + """The type of prompt template to use.""" + template_configuration: Required[ + PromptTemplateConfiguration | PromptTemplateConfigurationDict + ] + """Contains configurations for the prompt template.""" + model_id: str | None + """ + The unique identifier of the model or [inference + profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) + with which to run inference on the prompt. + """ + inference_configuration: ( + PromptInferenceConfiguration | PromptInferenceConfigurationDict | None + ) + """Contains inference configurations for the prompt variant.""" + metadata: Sequence[PromptMetadataEntry | PromptMetadataEntryDict] | None + """ + An array of objects, each containing a key-value pair that defines a + metadata tag and value to attach to a prompt variant. + """ + additional_model_request_fields: Document | None + """ + Contains model-specific inference configurations that aren't in the + `inferenceConfiguration` field. To see model-specific inference + parameters, see [Inference request parameters and response fields for + foundation + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + gen_ai_resource: PromptGenAiResource | PromptGenAiResourceDict | None + """Specifies a generative AI resource with which to use the prompt.""" + @dataclass(kw_only=True) class PutResourcePolicyInput(_SerdeShape): """Dataclass for PutResourcePolicyInput structure.""" @@ -2264,6 +3475,24 @@ class PutResourcePolicyInput(_SerdeShape): `GetResourcePolicy` or `PutResourcePolicy` response. """ +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the knowledge base to attach the + resource policy to. + """ + policy: Required[str | JsonString] + """The JSON-formatted resource policy to associate with the knowledge base.""" + expected_revision_id: str | None + """ + The expected revision identifier of the resource policy. Use this to + prevent conflicts when multiple users update the same policy + concurrently. Specify the `revisionId` from the most recent + `GetResourcePolicy` or `PutResourcePolicy` response. + """ + @dataclass(kw_only=True) class PutResourcePolicyOutput(_SerdeShape): """Dataclass for PutResourcePolicyOutput structure.""" @@ -2308,6 +3537,23 @@ class QueryGenerationColumn(_SerdeShape): specify `INCLUDE`, all other columns in the table will be ignored. """ +class QueryGenerationColumnDict(TypedDict, total=False): + """Dictionary form of `QueryGenerationColumn`.""" + + name: str | None + """The name of the column for which the other fields in this object apply.""" + description: str | None + """ + A description of the column that helps the query engine understand the + contents of the column. + """ + inclusion: str | None + """ + Specifies whether to include or exclude the column during query + generation. If you specify `EXCLUDE`, the column will be ignored. If you + specify `INCLUDE`, all other columns in the table will be ignored. + """ + @dataclass(kw_only=True) class QueryGenerationConfiguration(_SerdeShape): """ @@ -2322,6 +3568,14 @@ class QueryGenerationConfiguration(_SerdeShape): generation_context: QueryGenerationContext | None = ... """Specifies configurations for context to use during query generation.""" +class QueryGenerationConfigurationDict(TypedDict, total=False): + """Dictionary form of `QueryGenerationConfiguration`.""" + + execution_timeout_seconds: int | None + """The time after which query generation will time out.""" + generation_context: QueryGenerationContext | QueryGenerationContextDict | None + """Specifies configurations for context to use during query generation.""" + @dataclass(kw_only=True) class QueryGenerationContext(_SerdeShape): """>Contains configurations for context to use during query generation.""" @@ -2337,6 +3591,20 @@ class QueryGenerationContext(_SerdeShape): queries to help the query engine generate appropriate SQL queries. """ +class QueryGenerationContextDict(TypedDict, total=False): + """Dictionary form of `QueryGenerationContext`.""" + + tables: Sequence[QueryGenerationTable | QueryGenerationTableDict] | None + """ + An array of objects, each of which defines information about a table in + the database. + """ + curated_queries: Sequence[CuratedQuery | CuratedQueryDict] | None + """ + An array of objects, each of which defines information about example + queries to help the query engine generate appropriate SQL queries. + """ + @dataclass(kw_only=True) class QueryGenerationTable(_SerdeShape): """Contains information about a table for the query engine to consider.""" @@ -2360,6 +3628,28 @@ class QueryGenerationTable(_SerdeShape): the table. """ +class QueryGenerationTableDict(TypedDict, total=False): + """Dictionary form of `QueryGenerationTable`.""" + + name: Required[str] + """The name of the table for which the other fields in this object apply.""" + description: str | None + """ + A description of the table that helps the query engine understand the + contents of the table. + """ + inclusion: str | None + """ + Specifies whether to include or exclude the table during query + generation. If you specify `EXCLUDE`, the table will be ignored. If you + specify `INCLUDE`, all other tables will be ignored. + """ + columns: Sequence[QueryGenerationColumn | QueryGenerationColumnDict] | None + """ + An array of objects, each of which defines information about a column in + the table. + """ + @dataclass(kw_only=True) class RdsConfiguration(_SerdeShape): """ @@ -2386,6 +3676,26 @@ class RdsConfiguration(_SerdeShape): vector store. """ +class RdsConfigurationDict(TypedDict, total=False): + """Dictionary form of `RdsConfiguration`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the vector store.""" + credentials_secret_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the secret that you created in Secrets + Manager that is linked to your Amazon RDS database. + """ + database_name: Required[str] + """The name of your Amazon RDS database.""" + table_name: Required[str] + """The name of the table in the database.""" + field_mapping: Required[RdsFieldMapping | RdsFieldMappingDict] + """ + Contains the names of the fields to which to map information about the + vector store. + """ + @dataclass(kw_only=True) class RdsFieldMapping(_SerdeShape): """ @@ -2420,6 +3730,36 @@ class RdsFieldMapping(_SerdeShape): will store any custom metadata from your data source. """ +class RdsFieldMappingDict(TypedDict, total=False): + """Dictionary form of `RdsFieldMapping`.""" + + primary_key_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the ID for each + entry. + """ + vector_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the vector + embeddings for your data sources. + """ + text_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores the raw text from + your data. The text is split according to the chunking strategy you + choose. + """ + metadata_field: Required[str] + """ + The name of the field in which Amazon Bedrock stores metadata about the + vector store. + """ + custom_metadata_field: str | None + """ + Provide a name for the universal metadata field where Amazon Bedrock + will store any custom metadata from your data source. + """ + @dataclass(kw_only=True) class RedisEnterpriseCloudConfiguration(_SerdeShape): """ @@ -2438,31 +3778,71 @@ class RedisEnterpriseCloudConfiguration(_SerdeShape): The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that is linked to your Redis Enterprise Cloud database. """ - field_mapping: RedisEnterpriseCloudFieldMapping + field_mapping: RedisEnterpriseCloudFieldMapping + """ + Contains the names of the fields to which to map information about the + vector store. + """ + +class RedisEnterpriseCloudConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedisEnterpriseCloudConfiguration`.""" + + endpoint: Required[str] + """The endpoint URL of the Redis Enterprise Cloud database.""" + vector_index_name: Required[str] + """The name of the vector index.""" + credentials_secret_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the secret that you created in Secrets + Manager that is linked to your Redis Enterprise Cloud database. + """ + field_mapping: Required[ + RedisEnterpriseCloudFieldMapping | RedisEnterpriseCloudFieldMappingDict + ] + """ + Contains the names of the fields to which to map information about the + vector store. + """ + +@dataclass(kw_only=True) +class RedisEnterpriseCloudFieldMapping(_SerdeShape): + """ + Contains the names of the fields to which to map information about the + vector store. + """ + + vector_field: str + """ + The name of the field in which Amazon Bedrock stores the vector + embeddings for your data sources. + """ + text_field: str + """ + The name of the field in which Amazon Bedrock stores the raw text from + your data. The text is split according to the chunking strategy you + choose. + """ + metadata_field: str """ - Contains the names of the fields to which to map information about the + The name of the field in which Amazon Bedrock stores metadata about the vector store. """ -@dataclass(kw_only=True) -class RedisEnterpriseCloudFieldMapping(_SerdeShape): - """ - Contains the names of the fields to which to map information about the - vector store. - """ +class RedisEnterpriseCloudFieldMappingDict(TypedDict, total=False): + """Dictionary form of `RedisEnterpriseCloudFieldMapping`.""" - vector_field: str + vector_field: Required[str] """ The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources. """ - text_field: str + text_field: Required[str] """ The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose. """ - metadata_field: str + metadata_field: Required[str] """ The name of the field in which Amazon Bedrock stores metadata about the vector store. @@ -2485,6 +3865,25 @@ class RedshiftConfiguration(_SerdeShape): query_generation_configuration: QueryGenerationConfiguration | None = ... """Specifies configurations for generating queries.""" +class RedshiftConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftConfiguration`.""" + + storage_configurations: Required[ + Sequence[ + RedshiftQueryEngineStorageConfiguration + | RedshiftQueryEngineStorageConfigurationDict + ] + ] + """Specifies configurations for Amazon Redshift database storage.""" + query_engine_configuration: Required[ + RedshiftQueryEngineConfiguration | RedshiftQueryEngineConfigurationDict + ] + """Specifies configurations for an Amazon Redshift query engine.""" + query_generation_configuration: ( + QueryGenerationConfiguration | QueryGenerationConfigurationDict | None + ) + """Specifies configurations for generating queries.""" + @dataclass(kw_only=True) class RedshiftProvisionedAuthConfiguration(_SerdeShape): """ @@ -2504,6 +3903,19 @@ class RedshiftProvisionedAuthConfiguration(_SerdeShape): username_password_secret_arn: str | None = ... """The ARN of an Secrets Manager secret for authentication.""" +class RedshiftProvisionedAuthConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftProvisionedAuthConfiguration`.""" + + type: Required[str] + """The type of authentication to use.""" + database_user: str | None + """ + The database username for authentication to an Amazon Redshift + provisioned data warehouse. + """ + username_password_secret_arn: str | None + """The ARN of an Secrets Manager secret for authentication.""" + class RedshiftProvisionedAuthType(UnknownEnumMixin, StrEnum): IAM = "IAM" USERNAME_PASSWORD = "USERNAME_PASSWORD" @@ -2518,6 +3930,16 @@ class RedshiftProvisionedConfiguration(_SerdeShape): auth_configuration: RedshiftProvisionedAuthConfiguration """Specifies configurations for authentication to Amazon Redshift.""" +class RedshiftProvisionedConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftProvisionedConfiguration`.""" + + cluster_identifier: Required[str] + """The ID of the Amazon Redshift cluster.""" + auth_configuration: Required[ + RedshiftProvisionedAuthConfiguration | RedshiftProvisionedAuthConfigurationDict + ] + """Specifies configurations for authentication to Amazon Redshift.""" + @dataclass(kw_only=True) class RedshiftQueryEngineAwsDataCatalogStorageConfiguration(_SerdeShape): """Contains configurations for storage in Glue Data Catalog.""" @@ -2525,6 +3947,12 @@ class RedshiftQueryEngineAwsDataCatalogStorageConfiguration(_SerdeShape): table_names: list[str] """A list of names of the tables to use.""" +class RedshiftQueryEngineAwsDataCatalogStorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftQueryEngineAwsDataCatalogStorageConfiguration`.""" + + table_names: Required[Sequence[str]] + """A list of names of the tables to use.""" + @dataclass(kw_only=True) class RedshiftQueryEngineConfiguration(_SerdeShape): """ @@ -2543,6 +3971,20 @@ class RedshiftQueryEngineConfiguration(_SerdeShape): provisioned_configuration: RedshiftProvisionedConfiguration | None = ... """Specifies configurations for a provisioned Amazon Redshift query engine.""" +class RedshiftQueryEngineConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftQueryEngineConfiguration`.""" + + type: Required[str] + """The type of query engine.""" + serverless_configuration: ( + RedshiftServerlessConfiguration | RedshiftServerlessConfigurationDict | None + ) + """Specifies configurations for a serverless Amazon Redshift query engine.""" + provisioned_configuration: ( + RedshiftProvisionedConfiguration | RedshiftProvisionedConfigurationDict | None + ) + """Specifies configurations for a provisioned Amazon Redshift query engine.""" + @dataclass(kw_only=True) class RedshiftQueryEngineRedshiftStorageConfiguration(_SerdeShape): """Contains configurations for storage in Amazon Redshift.""" @@ -2550,6 +3992,12 @@ class RedshiftQueryEngineRedshiftStorageConfiguration(_SerdeShape): database_name: str """The name of the Amazon Redshift database.""" +class RedshiftQueryEngineRedshiftStorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftQueryEngineRedshiftStorageConfiguration`.""" + + database_name: Required[str] + """The name of the Amazon Redshift database.""" + @dataclass(kw_only=True) class RedshiftQueryEngineStorageConfiguration(_SerdeShape): """ @@ -2570,6 +4018,24 @@ class RedshiftQueryEngineStorageConfiguration(_SerdeShape): redshift_configuration: RedshiftQueryEngineRedshiftStorageConfiguration | None = ... """Specifies configurations for storage in Amazon Redshift.""" +class RedshiftQueryEngineStorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftQueryEngineStorageConfiguration`.""" + + type: Required[str] + """The data storage service to use.""" + aws_data_catalog_configuration: ( + RedshiftQueryEngineAwsDataCatalogStorageConfiguration + | RedshiftQueryEngineAwsDataCatalogStorageConfigurationDict + | None + ) + """Specifies configurations for storage in Glue Data Catalog.""" + redshift_configuration: ( + RedshiftQueryEngineRedshiftStorageConfiguration + | RedshiftQueryEngineRedshiftStorageConfigurationDict + | None + ) + """Specifies configurations for storage in Amazon Redshift.""" + class RedshiftQueryEngineStorageType(UnknownEnumMixin, StrEnum): REDSHIFT = "REDSHIFT" AWS_DATA_CATALOG = "AWS_DATA_CATALOG" @@ -2592,6 +4058,14 @@ class RedshiftServerlessAuthConfiguration(_SerdeShape): username_password_secret_arn: str | None = ... """The ARN of an Secrets Manager secret for authentication.""" +class RedshiftServerlessAuthConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftServerlessAuthConfiguration`.""" + + type: Required[str] + """The type of authentication to use.""" + username_password_secret_arn: str | None + """The ARN of an Secrets Manager secret for authentication.""" + class RedshiftServerlessAuthType(UnknownEnumMixin, StrEnum): IAM = "IAM" USERNAME_PASSWORD = "USERNAME_PASSWORD" @@ -2611,6 +4085,19 @@ class RedshiftServerlessConfiguration(_SerdeShape): provisioned data warehouse. """ +class RedshiftServerlessConfigurationDict(TypedDict, total=False): + """Dictionary form of `RedshiftServerlessConfiguration`.""" + + workgroup_arn: Required[str] + """The ARN of the Amazon Redshift workgroup.""" + auth_configuration: Required[ + RedshiftServerlessAuthConfiguration | RedshiftServerlessAuthConfigurationDict + ] + """ + Specifies configurations for authentication to an Amazon Redshift + provisioned data warehouse. + """ + class RelayConversationHistory(UnknownEnumMixin, StrEnum): TO_COLLABORATOR = "TO_COLLABORATOR" DISABLED = "DISABLED" @@ -2662,6 +4149,23 @@ class _RerankingMetadataSelectiveModeConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> RerankingMetadataSelectiveModeConfiguration: ... +class RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict(TypedDict): + fields_to_include: Sequence[FieldForReranking | FieldForRerankingDict] + """Specifies the metadata fields to include in the reranking process.""" + +class RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict(TypedDict): + fields_to_exclude: Sequence[FieldForReranking | FieldForRerankingDict] + """Specifies the metadata fields to exclude from the reranking process.""" + +RerankingMetadataSelectiveModeConfigurationDict = Union[ + RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict + | RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict +] +""" +Dictionary form of `RerankingMetadataSelectiveModeConfiguration`, +setting exactly one variant. +""" + @dataclass(kw_only=True) class ResourceNotFoundException(ServiceError, _SerdeShape): """ @@ -2691,6 +4195,18 @@ class RetrievalFlowNodeConfiguration(_SerdeShape): return as the output from the node. """ +class RetrievalFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `RetrievalFlowNodeConfiguration`.""" + + service_configuration: Required[ + RetrievalFlowNodeServiceConfiguration + | RetrievalFlowNodeServiceConfigurationDict + ] + """ + Contains configurations for the service to use for retrieving data to + return as the output from the node. + """ + @dataclass(kw_only=True) class RetrievalFlowNodeS3Configuration(_SerdeShape): """ @@ -2701,6 +4217,12 @@ class RetrievalFlowNodeS3Configuration(_SerdeShape): bucket_name: str = ... """The name of the Amazon S3 bucket from which to retrieve data.""" +class RetrievalFlowNodeS3ConfigurationDict(TypedDict, total=False): + """Dictionary form of `RetrievalFlowNodeS3Configuration`.""" + + bucket_name: str | None + """The name of the Amazon S3 bucket from which to retrieve data.""" + @dataclass class RetrievalFlowNodeServiceConfigurationS3(_SerdeShape): """ @@ -2734,6 +4256,21 @@ class _RetrievalFlowNodeServiceConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> RetrievalFlowNodeServiceConfiguration: ... +class RetrievalFlowNodeServiceConfigurationS3Dict(TypedDict): + s3: RetrievalFlowNodeS3Configuration | RetrievalFlowNodeS3ConfigurationDict + """ + Contains configurations for the Amazon S3 location from which to + retrieve data to return as the output from the node. + """ + +RetrievalFlowNodeServiceConfigurationDict = Union[ + RetrievalFlowNodeServiceConfigurationS3Dict +] +""" +Dictionary form of `RetrievalFlowNodeServiceConfiguration`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class RetrievalInstructionContent(_SerdeShape): """ @@ -2757,6 +4294,24 @@ class RetrievalInstructionContent(_SerdeShape): what to do with questions outside scope. """ +class RetrievalInstructionContentDict(TypedDict, total=False): + """Dictionary form of `RetrievalInstructionContent`.""" + + retrieval_guidance: str | None + """ + How to interpret and decompose the question, and what to prioritise when + searching. + """ + persona: str | None + """Who the assistant is: identity, tone and language.""" + answer_format: str | None + """How the answer is structured, including how sources are cited.""" + answer_policy: str | None + """ + Whether and how to answer: how strongly an answer must be supported, and + what to do with questions outside scope. + """ + @dataclass(kw_only=True) class RetrievalInstructionFailureReason(_SerdeShape): """ @@ -2897,6 +4452,12 @@ class S3Content(_SerdeShape): s3_location: S3Location """The S3 location of the file containing the content to ingest.""" +class S3ContentDict(TypedDict, total=False): + """Dictionary form of `S3Content`.""" + + s3_location: Required[S3Location | S3LocationDict] + """The S3 location of the file containing the content to ingest.""" + @dataclass(kw_only=True) class S3DataSourceConfiguration(_SerdeShape): """ @@ -2917,6 +4478,20 @@ class S3DataSourceConfiguration(_SerdeShape): bucket_owner_account_id: str | None = ... """The account ID for the owner of the S3 bucket.""" +class S3DataSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3DataSourceConfiguration`.""" + + bucket_arn: Required[str] + """The Amazon Resource Name (ARN) of the S3 bucket that contains your data.""" + inclusion_prefixes: Sequence[str] | None + """ + A list of S3 prefixes to include certain files or content. For more + information, see [Organizing objects using + prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html). + """ + bucket_owner_account_id: str | None + """The account ID for the owner of the S3 bucket.""" + @dataclass(kw_only=True) class S3Identifier(_SerdeShape): """The identifier information for an Amazon S3 bucket.""" @@ -2926,6 +4501,14 @@ class S3Identifier(_SerdeShape): s3_object_key: str | None = ... """The S3 object key for the S3 resource.""" +class S3IdentifierDict(TypedDict, total=False): + """Dictionary form of `S3Identifier`.""" + + s3_bucket_name: str | None + """The name of the S3 bucket.""" + s3_object_key: str | None + """The S3 object key for the S3 resource.""" + @dataclass(kw_only=True) class S3Location(_SerdeShape): """An Amazon S3 location.""" @@ -2933,6 +4516,12 @@ class S3Location(_SerdeShape): uri: str """The location's URI. For example, `s3://my-bucket/chunk-processor/`.""" +class S3LocationDict(TypedDict, total=False): + """Dictionary form of `S3Location`.""" + + uri: Required[str] + """The location's URI. For example, `s3://my-bucket/chunk-processor/`.""" + @dataclass(kw_only=True) class S3VectorsConfiguration(_SerdeShape): """Contains the storage configuration of the knowledge base for S3 vectors.""" @@ -2955,6 +4544,27 @@ class S3VectorsConfiguration(_SerdeShape): identifies the vector index within the Amazon Bedrock service. """ +class S3VectorsConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3VectorsConfiguration`.""" + + vector_bucket_arn: str | None + """ + The Amazon Resource Name (ARN) of the S3 bucket where vector embeddings + are stored. This bucket contains the vector data used by the knowledge + base. + """ + index_arn: str | None + """ + The Amazon Resource Name (ARN) of the vector index used for the + knowledge base. This ARN identifies the specific vector index resource + within Amazon Bedrock. + """ + index_name: str | None + """ + The name of the vector index used for the knowledge base. This name + identifies the vector index within the Amazon Bedrock service. + """ + class SalesforceAuthType(UnknownEnumMixin, StrEnum): OAUTH2_CLIENT_CREDENTIALS = "OAUTH2_CLIENT_CREDENTIALS" @@ -2972,6 +4582,16 @@ class SalesforceCrawlerConfiguration(_SerdeShape): content. """ +class SalesforceCrawlerConfigurationDict(TypedDict, total=False): + """Dictionary form of `SalesforceCrawlerConfiguration`.""" + + filter_configuration: CrawlFilterConfiguration | CrawlFilterConfigurationDict | None + """ + The configuration of filtering the Salesforce content. For example, + configuring regular expression patterns to include or exclude certain + content. + """ + @dataclass(kw_only=True) class SalesforceDataSourceConfiguration(_SerdeShape): """ @@ -2987,6 +4607,21 @@ class SalesforceDataSourceConfiguration(_SerdeShape): specific types of Salesforce content. """ +class SalesforceDataSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `SalesforceDataSourceConfiguration`.""" + + source_configuration: Required[ + SalesforceSourceConfiguration | SalesforceSourceConfigurationDict + ] + """The endpoint information to connect to your Salesforce data source.""" + crawler_configuration: ( + SalesforceCrawlerConfiguration | SalesforceCrawlerConfigurationDict | None + ) + """ + The configuration of the Salesforce content. For example, configuring + specific types of Salesforce content. + """ + @dataclass(kw_only=True) class SalesforceSourceConfiguration(_SerdeShape): """The endpoint information to connect to your Salesforce data source.""" @@ -3007,6 +4642,25 @@ class SalesforceSourceConfiguration(_SerdeShape): configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/salesforce-data-source-connector.html#configuration-salesforce-connector). """ +class SalesforceSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `SalesforceSourceConfiguration`.""" + + host_url: Required[str] + """The Salesforce host URL or instance URL.""" + auth_type: Required[str] + """ + The supported authentication type to authenticate and connect to your + Salesforce instance. + """ + credentials_secret_arn: Required[str] + """ + The Amazon Resource Name of an Secrets Manager secret that stores your + authentication credentials for your Salesforce instance URL. For more + information on the key-value pairs that must be included in your secret, + depending on your authentication type, see [Salesforce connection + configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/salesforce-data-source-connector.html#configuration-salesforce-connector). + """ + class SearchableStatus(UnknownEnumMixin, StrEnum): """ Specifies whether a custom metadata field is searchable. The knowledge @@ -3026,6 +4680,12 @@ class SeedUrl(_SerdeShape): url: str | None = ... """A seed or starting point URL.""" +class SeedUrlDict(TypedDict, total=False): + """Dictionary form of `SeedUrl`.""" + + url: str | None + """A seed or starting point URL.""" + @dataclass(kw_only=True) class SemanticChunkingConfiguration(_SerdeShape): """ @@ -3058,6 +4718,16 @@ class SemanticChunkingConfiguration(_SerdeShape): breakpoint_percentile_threshold: int """The dissimilarity threshold for splitting chunks.""" +class SemanticChunkingConfigurationDict(TypedDict, total=False): + """Dictionary form of `SemanticChunkingConfiguration`.""" + + max_tokens: Required[int] + """The maximum number of tokens that a chunk can contain.""" + buffer_size: Required[int] + """The buffer size.""" + breakpoint_percentile_threshold: Required[int] + """The dissimilarity threshold for splitting chunks.""" + @dataclass(kw_only=True) class ServerSideEncryptionConfiguration(_SerdeShape): """ @@ -3071,6 +4741,15 @@ class ServerSideEncryptionConfiguration(_SerdeShape): resource. """ +class ServerSideEncryptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `ServerSideEncryptionConfiguration`.""" + + kms_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the KMS key used to encrypt the + resource. + """ + @dataclass(kw_only=True) class ServiceQuotaExceededException(ServiceError, _SerdeShape): """ @@ -3096,6 +4775,15 @@ class SessionSummaryConfiguration(_SerdeShape): prompt context. """ +class SessionSummaryConfigurationDict(TypedDict, total=False): + """Dictionary form of `SessionSummaryConfiguration`.""" + + max_recent_sessions: int | None + """ + Maximum number of recent session summaries to include in the agent's + prompt context. + """ + class SharePointAuthType(UnknownEnumMixin, StrEnum): OAUTH2_CLIENT_CREDENTIALS = "OAUTH2_CLIENT_CREDENTIALS" OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS = ( @@ -3116,6 +4804,16 @@ class SharePointCrawlerConfiguration(_SerdeShape): content. """ +class SharePointCrawlerConfigurationDict(TypedDict, total=False): + """Dictionary form of `SharePointCrawlerConfiguration`.""" + + filter_configuration: CrawlFilterConfiguration | CrawlFilterConfigurationDict | None + """ + The configuration of filtering the SharePoint content. For example, + configuring regular expression patterns to include or exclude certain + content. + """ + @dataclass(kw_only=True) class SharePointDataSourceConfiguration(_SerdeShape): """ @@ -3131,6 +4829,21 @@ class SharePointDataSourceConfiguration(_SerdeShape): specific types of SharePoint content. """ +class SharePointDataSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `SharePointDataSourceConfiguration`.""" + + source_configuration: Required[ + SharePointSourceConfiguration | SharePointSourceConfigurationDict + ] + """The endpoint information to connect to your SharePoint data source.""" + crawler_configuration: ( + SharePointCrawlerConfiguration | SharePointCrawlerConfigurationDict | None + ) + """ + The configuration of the SharePoint content. For example, configuring + specific types of SharePoint content. + """ + class SharePointHostType(UnknownEnumMixin, StrEnum): ONLINE = "ONLINE" @@ -3160,6 +4873,31 @@ class SharePointSourceConfiguration(_SerdeShape): configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/sharepoint-data-source-connector.html#configuration-sharepoint-connector). """ +class SharePointSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `SharePointSourceConfiguration`.""" + + tenant_id: str | None + """The identifier of your Microsoft 365 tenant.""" + domain: Required[str] + """The domain of your SharePoint instance or site URL/URLs.""" + site_urls: Required[Sequence[str]] + """A list of one or more SharePoint site URLs.""" + host_type: Required[str] + """The supported host type, whether online/cloud or server/on-premises.""" + auth_type: Required[str] + """ + The supported authentication type to authenticate and connect to your + SharePoint site/sites. + """ + credentials_secret_arn: Required[str] + """ + The Amazon Resource Name of an Secrets Manager secret that stores your + authentication credentials for your SharePoint site/sites. For more + information on the key-value pairs that must be included in your secret, + depending on your authentication type, see [SharePoint connection + configuration](https://docs.aws.amazon.com/bedrock/latest/userguide/sharepoint-data-source-connector.html#configuration-sharepoint-connector). + """ + class SortOrder(UnknownEnumMixin, StrEnum): ASCENDING = "ASCENDING" DESCENDING = "DESCENDING" @@ -3177,6 +4915,12 @@ class SpecificToolChoice(_SerdeShape): name: str """The name of the tool.""" +class SpecificToolChoiceDict(TypedDict, total=False): + """Dictionary form of `SpecificToolChoice`.""" + + name: Required[str] + """The name of the tool.""" + @dataclass(kw_only=True) class SqlKnowledgeBaseConfiguration(_SerdeShape): """ @@ -3196,6 +4940,17 @@ class SqlKnowledgeBaseConfiguration(_SerdeShape): Redshift database. """ +class SqlKnowledgeBaseConfigurationDict(TypedDict, total=False): + """Dictionary form of `SqlKnowledgeBaseConfiguration`.""" + + type: Required[str] + """The type of SQL database to connect to the knowledge base.""" + redshift_configuration: RedshiftConfiguration | RedshiftConfigurationDict | None + """ + Specifies configurations for a knowledge base connected to an Amazon + Redshift database. + """ + @dataclass(kw_only=True) class StartIngestionJobInput(_SerdeShape): """Dataclass for StartIngestionJobInput structure.""" @@ -3220,6 +4975,29 @@ class StartIngestionJobInput(_SerdeShape): description: str | None = ... """A description of the data ingestion job.""" +class StartIngestionJobInputDict(TypedDict, total=False): + """Dictionary form of `StartIngestionJobInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base for the data ingestion job.""" + data_source_id: Required[str] + """ + The unique identifier of the data source you want to ingest into your + knowledge base. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + description: str | None + """A description of the data ingestion job.""" + @dataclass(kw_only=True) class StartIngestionJobOutput(_SerdeShape): """Dataclass for StartIngestionJobOutput structure.""" @@ -3251,7 +5029,23 @@ class StopIngestionJobInput(_SerdeShape): The unique identifier of the data source for the data ingestion job you want to stop. """ - ingestion_job_id: str | None = ... + ingestion_job_id: str | None = ... + """The unique identifier of the data ingestion job you want to stop.""" + +class StopIngestionJobInputDict(TypedDict, total=False): + """Dictionary form of `StopIngestionJobInput`.""" + + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base for the data ingestion job + you want to stop. + """ + data_source_id: Required[str] + """ + The unique identifier of the data source for the data ingestion job you + want to stop. + """ + ingestion_job_id: Required[str] """The unique identifier of the data ingestion job you want to stop.""" @dataclass(kw_only=True) @@ -3321,6 +5115,68 @@ class StorageConfiguration(_SerdeShape): for vector storage. """ +class StorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `StorageConfiguration`.""" + + type: Required[str] + """The vector store service in which the knowledge base is stored.""" + opensearch_serverless_configuration: ( + OpenSearchServerlessConfiguration | OpenSearchServerlessConfigurationDict | None + ) + """ + Contains the storage configuration of the knowledge base in Amazon + OpenSearch Service. + """ + opensearch_managed_cluster_configuration: ( + OpenSearchManagedClusterConfiguration + | OpenSearchManagedClusterConfigurationDict + | None + ) + """ + Contains details about the storage configuration of the knowledge base + in OpenSearch Managed Cluster. For more information, see [Create a + vector index in Amazon OpenSearch + Service](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-osm.html). + """ + pinecone_configuration: PineconeConfiguration | PineconeConfigurationDict | None + """Contains the storage configuration of the knowledge base in Pinecone.""" + redis_enterprise_cloud_configuration: ( + RedisEnterpriseCloudConfiguration | RedisEnterpriseCloudConfigurationDict | None + ) + """ + Contains the storage configuration of the knowledge base in Redis + Enterprise Cloud. + """ + rds_configuration: RdsConfiguration | RdsConfigurationDict | None + """ + Contains details about the storage configuration of the knowledge base + in Amazon RDS. For more information, see [Create a vector index in + Amazon + RDS](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html). + """ + mongo_db_atlas_configuration: ( + MongoDbAtlasConfiguration | MongoDbAtlasConfigurationDict | None + ) + """ + Contains the storage configuration of the knowledge base in MongoDB + Atlas. + """ + neptune_analytics_configuration: ( + NeptuneAnalyticsConfiguration | NeptuneAnalyticsConfigurationDict | None + ) + """ + Contains details about the Neptune Analytics configuration of the + knowledge base in Amazon Neptune. For more information, see [Create a + vector index in Amazon Neptune + Analytics.](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-neptune.html). + """ + s3_vectors_configuration: S3VectorsConfiguration | S3VectorsConfigurationDict | None + """ + The configuration settings for storing knowledge base data using S3 + vectors. This includes vector index information and S3 bucket details + for vector storage. + """ + @dataclass(kw_only=True) class StorageFlowNodeConfiguration(_SerdeShape): """ @@ -3334,6 +5190,17 @@ class StorageFlowNodeConfiguration(_SerdeShape): into the node. """ +class StorageFlowNodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `StorageFlowNodeConfiguration`.""" + + service_configuration: Required[ + StorageFlowNodeServiceConfiguration | StorageFlowNodeServiceConfigurationDict + ] + """ + Contains configurations for the service to use for storing the input + into the node. + """ + @dataclass(kw_only=True) class StorageFlowNodeS3Configuration(_SerdeShape): """ @@ -3347,6 +5214,15 @@ class StorageFlowNodeS3Configuration(_SerdeShape): node. """ +class StorageFlowNodeS3ConfigurationDict(TypedDict, total=False): + """Dictionary form of `StorageFlowNodeS3Configuration`.""" + + bucket_name: str | None + """ + The name of the Amazon S3 bucket in which to store the input into the + node. + """ + @dataclass class StorageFlowNodeServiceConfigurationS3(_SerdeShape): """ @@ -3379,6 +5255,21 @@ class _StorageFlowNodeServiceConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> StorageFlowNodeServiceConfiguration: ... +class StorageFlowNodeServiceConfigurationS3Dict(TypedDict): + s3: StorageFlowNodeS3Configuration | StorageFlowNodeS3ConfigurationDict + """ + Contains configurations for the Amazon S3 location in which to store the + input into the node. + """ + +StorageFlowNodeServiceConfigurationDict = Union[ + StorageFlowNodeServiceConfigurationS3Dict +] +""" +Dictionary form of `StorageFlowNodeServiceConfiguration`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class SupplementalDataStorageConfiguration(_SerdeShape): """ @@ -3395,6 +5286,18 @@ class SupplementalDataStorageConfiguration(_SerdeShape): data source. """ +class SupplementalDataStorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `SupplementalDataStorageConfiguration`.""" + + storage_locations: Required[ + Sequence[SupplementalDataStorageLocation | SupplementalDataStorageLocationDict] + ] + """ + A list of objects specifying storage locations for multimedia content + (images, audio, and video) extracted from multimodal documents in your + data source. + """ + @dataclass(kw_only=True) class SupplementalDataStorageLocation(_SerdeShape): """ @@ -3411,6 +5314,17 @@ class SupplementalDataStorageLocation(_SerdeShape): multimedia content. """ +class SupplementalDataStorageLocationDict(TypedDict, total=False): + """Dictionary form of `SupplementalDataStorageLocation`.""" + + type: Required[str] + """Specifies the storage service used for this location.""" + s3_location: S3Location | S3LocationDict | None + """ + Contains information about the Amazon S3 location for the extracted + multimedia content. + """ + class SupplementalDataStorageLocationType(UnknownEnumMixin, StrEnum): S3 = "S3" @@ -3460,6 +5374,26 @@ automatically syncs its data source. Specify exactly one of `daily`, class _SyncScheduleDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> SyncSchedule: ... +class SyncScheduleDailyDict(TypedDict): + daily: DailySchedule | DailyScheduleDict + """ + A daily sync that runs once a day at a system-chosen off-peak time. The + run time is not configurable. + """ + +class SyncScheduleWeeklyDict(TypedDict): + weekly: WeeklySchedule | WeeklyScheduleDict + """A weekly sync that runs once a week on the specified day of the week.""" + +class SyncScheduleMonthlyDict(TypedDict): + monthly: MonthlySchedule | MonthlyScheduleDict + """A monthly sync that runs once a month on the specified day of the month.""" + +SyncScheduleDict = Union[ + SyncScheduleDailyDict | SyncScheduleWeeklyDict | SyncScheduleMonthlyDict +] +"""Dictionary form of `SyncSchedule`, setting exactly one variant.""" + @dataclass class SystemContentBlockText(_SerdeShape): """The text in the system prompt.""" @@ -3495,6 +5429,19 @@ management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-manageme class _SystemContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> SystemContentBlock: ... +class SystemContentBlockTextDict(TypedDict): + text: str + """The text in the system prompt.""" + +class SystemContentBlockCachePointDict(TypedDict): + cache_point: CachePointBlock | CachePointBlockDict + """Creates a cache checkpoint within a tool designation""" + +SystemContentBlockDict = Union[ + SystemContentBlockTextDict | SystemContentBlockCachePointDict +] +"""Dictionary form of `SystemContentBlock`, setting exactly one variant.""" + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -3507,6 +5454,17 @@ class TagResourceInput(_SerdeShape): the resource. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource to tag.""" + tags: Required[Mapping[str, str]] + """ + An object containing key-value pairs that define the tags to attach to + the resource. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -3526,6 +5484,12 @@ class TextContentDoc(_SerdeShape): data: str """The text of the content.""" +class TextContentDocDict(TypedDict, total=False): + """Dictionary form of `TextContentDoc`.""" + + data: Required[str] + """The text of the content.""" + @dataclass(kw_only=True) class TextPromptTemplateConfiguration(_SerdeShape): """ @@ -3540,6 +5504,16 @@ class TextPromptTemplateConfiguration(_SerdeShape): input_variables: list[PromptInputVariable] | None = ... """An array of the variables in the prompt template.""" +class TextPromptTemplateConfigurationDict(TypedDict, total=False): + """Dictionary form of `TextPromptTemplateConfiguration`.""" + + text: Required[str] + """The message for the prompt.""" + cache_point: CachePointBlock | CachePointBlockDict | None + """A cache checkpoint within a template configuration.""" + input_variables: Sequence[PromptInputVariable | PromptInputVariableDict] | None + """An array of the variables in the prompt template.""" + @dataclass(kw_only=True) class ThrottlingException(ServiceError, _SerdeShape): """The number of requests exceeds the limit. Resubmit your request later.""" @@ -3585,6 +5559,17 @@ response](https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html). class _ToolDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Tool: ... +class ToolToolSpecDict(TypedDict): + tool_spec: ToolSpecification | ToolSpecificationDict + """The specification for the tool.""" + +class ToolCachePointDict(TypedDict): + cache_point: CachePointBlock | CachePointBlockDict + """Creates a cache checkpoint within a tool designation""" + +ToolDict = Union[ToolToolSpecDict | ToolCachePointDict] +"""Dictionary form of `Tool`, setting exactly one variant.""" + @dataclass class ToolChoiceAuto(_SerdeShape): """ @@ -3634,6 +5619,32 @@ response](https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html). class _ToolChoiceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ToolChoice: ... +class ToolChoiceAutoDict(TypedDict): + auto: AutoToolChoice | AutoToolChoiceDict + """ + Defines tools. The model automatically decides whether to call a tool or + to generate text instead. + """ + +class ToolChoiceAnyDict(TypedDict): + any: AnyToolChoice | AnyToolChoiceDict + """ + Defines tools, at least one of which must be requested by the model. No + text is generated but the results of tool use are sent back to the model + to help generate a response. + """ + +class ToolChoiceToolDict(TypedDict): + tool: SpecificToolChoice | SpecificToolChoiceDict + """ + Defines a specific tool that the model must request. No text is + generated but the results of tool use are sent back to the model to help + generate a response. + """ + +ToolChoiceDict = Union[ToolChoiceAutoDict | ToolChoiceAnyDict | ToolChoiceToolDict] +"""Dictionary form of `ToolChoice`, setting exactly one variant.""" + @dataclass(kw_only=True) class ToolConfiguration(_SerdeShape): """ @@ -3648,6 +5659,14 @@ class ToolConfiguration(_SerdeShape): tool_choice: ToolChoice | None = ... """Defines which tools the model should request when invoked.""" +class ToolConfigurationDict(TypedDict, total=False): + """Dictionary form of `ToolConfiguration`.""" + + tools: Required[Sequence[Tool | ToolDict]] + """An array of tools to pass to a model.""" + tool_choice: ToolChoice | ToolChoiceDict | None + """Defines which tools the model should request when invoked.""" + @dataclass class ToolInputSchemaJson(_SerdeShape): """A JSON object defining the input schema for the tool.""" @@ -3674,6 +5693,13 @@ response](https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html). class _ToolInputSchemaDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ToolInputSchema: ... +class ToolInputSchemaJsonDict(TypedDict): + json: Document + """A JSON object defining the input schema for the tool.""" + +ToolInputSchemaDict = Union[ToolInputSchemaJsonDict] +"""Dictionary form of `ToolInputSchema`, setting exactly one variant.""" + @dataclass(kw_only=True) class ToolSpecification(_SerdeShape): """ @@ -3691,6 +5717,18 @@ class ToolSpecification(_SerdeShape): strict: bool | None = ... """Whether the tool schema is strictly enforced.""" +class ToolSpecificationDict(TypedDict, total=False): + """Dictionary form of `ToolSpecification`.""" + + name: Required[str] + """The name of the tool.""" + description: str | None + """The description of the tool.""" + input_schema: Required[ToolInputSchema | ToolInputSchemaDict] + """The input schema for the tool.""" + strict: bool | None + """Whether the tool schema is strictly enforced.""" + @dataclass(kw_only=True) class Transformation(_SerdeShape): """ @@ -3704,6 +5742,16 @@ class Transformation(_SerdeShape): step_to_apply: str """When the service applies the transformation.""" +class TransformationDict(TypedDict, total=False): + """Dictionary form of `Transformation`.""" + + transformation_function: Required[ + TransformationFunction | TransformationFunctionDict + ] + """A Lambda function that processes documents.""" + step_to_apply: Required[str] + """When the service applies the transformation.""" + @dataclass(kw_only=True) class TransformationFunction(_SerdeShape): """A Lambda function that processes documents.""" @@ -3711,6 +5759,14 @@ class TransformationFunction(_SerdeShape): transformation_lambda_configuration: TransformationLambdaConfiguration """The Lambda function.""" +class TransformationFunctionDict(TypedDict, total=False): + """Dictionary form of `TransformationFunction`.""" + + transformation_lambda_configuration: Required[ + TransformationLambdaConfiguration | TransformationLambdaConfigurationDict + ] + """The Lambda function.""" + @dataclass(kw_only=True) class TransformationLambdaConfiguration(_SerdeShape): """A Lambda function that processes documents.""" @@ -3718,6 +5774,12 @@ class TransformationLambdaConfiguration(_SerdeShape): lambda_arn: str """The function's ARN identifier.""" +class TransformationLambdaConfigurationDict(TypedDict, total=False): + """Dictionary form of `TransformationLambdaConfiguration`.""" + + lambda_arn: Required[str] + """The function's ARN identifier.""" + class Type(UnknownEnumMixin, StrEnum): STRING = "string" NUMBER = "number" @@ -3830,36 +5892,140 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """A list of keys of the tags to remove from the resource.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource from which to remove + tags. + """ + tag_keys: Required[Sequence[str]] + """A list of keys of the tags to remove from the resource.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class UpdateAgentActionGroupInput(_SerdeShape): + """Dataclass for UpdateAgentActionGroupInput structure.""" + + agent_id: str | None = ... + """The unique identifier of the agent for which to update the action group.""" + agent_version: str | None = ... + """ + The unique identifier of the agent version for which to update the + action group. + """ + action_group_id: str | None = ... + """The unique identifier of the action group.""" + action_group_name: str | None = ... + """Specifies a new name for the action group.""" + description: str | None = ... + """Specifies a new name for the action group.""" + parent_action_group_signature: str | None = ... + """ + Update the built-in or computer use action for this action group. If you + specify a value, you must leave the `description`, `apiSchema`, and + `actionGroupExecutor` fields empty for this action group. + + - To allow your agent to request the user for additional information + when trying to complete a task, set this field to `AMAZON.UserInput`. + + - To allow your agent to generate, run, and troubleshoot code when + trying to complete a task, set this field to `AMAZON.CodeInterpreter`. + + - To allow your agent to use an Anthropic computer use tool, specify one + of the following values. + + Warning: + Computer use is a new Anthropic Claude model capability (in beta) + available with Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 + only. When operating computer use functionality, we recommend taking + additional security precautions, such as executing computer actions in + virtual environments with restricted data access and limited internet + connectivity. For more information, see [Configure an Amazon Bedrock + Agent to complete tasks with computer use + tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html). + + - `ANTHROPIC.Computer` - Gives the agent permission to use the mouse + and keyboard and take screenshots. + + - `ANTHROPIC.TextEditor` - Gives the agent permission to view, create + and edit files. + + - `ANTHROPIC.Bash` - Gives the agent permission to run commands in a + bash shell. + + During orchestration, if your agent determines that it needs to invoke + an API in an action group, but doesn't have enough information to + complete the API request, it will invoke this action group instead and + return an + [Observation](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html) + reprompting the user for more information. + """ + parent_action_group_signature_params: dict[str, str] | None = ... + """ + The configuration settings for a computer use action. + + Warning: + Computer use is a new Anthropic Claude model capability (in beta) + available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more + information, see [Configure an Amazon Bedrock Agent to complete tasks + with computer use + tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html). + """ + action_group_executor: ActionGroupExecutor | None = ... + """ + The Amazon Resource Name (ARN) of the Lambda function containing the + business logic that is carried out upon invoking the action. + """ + action_group_state: str | None = ... + """ + Specifies whether the action group is available for the agent to invoke + or not when sending an + [InvokeAgent](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) + request. + """ + api_schema: APISchema | None = ... + """ + Contains either details about the S3 object containing the OpenAPI + schema for the action group or the JSON or YAML-formatted payload + defining the schema. For more information, see [Action group OpenAPI + schemas](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-api-schema.html). + """ + function_schema: FunctionSchema | None = ... + """ + Contains details about the function schema for the action group or the + JSON or YAML-formatted payload defining the schema. """ -@dataclass(kw_only=True) -class UpdateAgentActionGroupInput(_SerdeShape): - """Dataclass for UpdateAgentActionGroupInput structure.""" +class UpdateAgentActionGroupInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAgentActionGroupInput`.""" - agent_id: str | None = ... + agent_id: Required[str] """The unique identifier of the agent for which to update the action group.""" - agent_version: str | None = ... + agent_version: Required[str] """ The unique identifier of the agent version for which to update the action group. """ - action_group_id: str | None = ... + action_group_id: Required[str] """The unique identifier of the action group.""" - action_group_name: str | None = ... + action_group_name: Required[str] """Specifies a new name for the action group.""" - description: str | None = ... + description: str | None """Specifies a new name for the action group.""" - parent_action_group_signature: str | None = ... + parent_action_group_signature: str | None """ Update the built-in or computer use action for this action group. If you specify a value, you must leave the `description`, `apiSchema`, and @@ -3900,7 +6066,7 @@ class UpdateAgentActionGroupInput(_SerdeShape): [Observation](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html) reprompting the user for more information. """ - parent_action_group_signature_params: dict[str, str] | None = ... + parent_action_group_signature_params: Mapping[str, str] | None """ The configuration settings for a computer use action. @@ -3911,26 +6077,26 @@ class UpdateAgentActionGroupInput(_SerdeShape): with computer use tools](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html). """ - action_group_executor: ActionGroupExecutor | None = ... + action_group_executor: ActionGroupExecutor | ActionGroupExecutorDict | None """ The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action. """ - action_group_state: str | None = ... + action_group_state: str | None """ Specifies whether the action group is available for the agent to invoke or not when sending an [InvokeAgent](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) request. """ - api_schema: APISchema | None = ... + api_schema: APISchema | APISchemaDict | None """ Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see [Action group OpenAPI schemas](https://docs.aws.amazon.com/bedrock/latest/userguide/agents-api-schema.html). """ - function_schema: FunctionSchema | None = ... + function_schema: FunctionSchema | FunctionSchemaDict | None """ Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema. @@ -3973,6 +6139,34 @@ class UpdateAgentAliasInput(_SerdeShape): alias. """ +class UpdateAgentAliasInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAgentAliasInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent.""" + agent_alias_id: Required[str] + """The unique identifier of the alias.""" + agent_alias_name: Required[str] + """Specifies a new name for the alias.""" + description: str | None + """Specifies a new description for the alias.""" + routing_configuration: ( + Sequence[ + AgentAliasRoutingConfigurationListItem + | AgentAliasRoutingConfigurationListItemDict + ] + | None + ) + """Contains details about the routing configuration of the alias.""" + alias_invocation_state: str | None + """ + The invocation state for the agent alias. To pause the agent alias, set + the value to `REJECT_INVOCATIONS`. To start the agent alias running + again, set the value to `ACCEPT_INVOCATIONS`. Use the `GetAgentAlias`, + or `ListAgentAliases`, operation to get the invocation state of an agent + alias. + """ + @dataclass(kw_only=True) class UpdateAgentAliasOutput(_SerdeShape): """Dataclass for UpdateAgentAliasOutput structure.""" @@ -4006,6 +6200,24 @@ class UpdateAgentCollaboratorInput(_SerdeShape): relay_conversation_history: str | None = ... """A relay conversation history for the collaborator.""" +class UpdateAgentCollaboratorInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAgentCollaboratorInput`.""" + + agent_id: Required[str] + """The agent's ID.""" + agent_version: Required[str] + """The agent's version.""" + collaborator_id: Required[str] + """The collaborator's ID.""" + agent_descriptor: Required[AgentDescriptor | AgentDescriptorDict] + """An agent descriptor for the agent collaborator.""" + collaborator_name: Required[str] + """The collaborator's name.""" + collaboration_instruction: Required[str] + """Instruction for the collaborator.""" + relay_conversation_history: str | None + """A relay conversation history for the collaborator.""" + @dataclass(kw_only=True) class UpdateAgentCollaboratorOutput(_SerdeShape): """Dataclass for UpdateAgentCollaboratorOutput structure.""" @@ -4116,6 +6328,103 @@ class UpdateAgentInput(_SerdeShape): agent_collaboration: str | None = ... """The agent's collaboration role.""" +class UpdateAgentInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAgentInput`.""" + + agent_id: Required[str] + """The unique identifier of the agent.""" + agent_name: Required[str] + """Specifies a new name for the agent.""" + instruction: str | None + """ + Specifies new instructions that tell the agent what it should do and how + it should interact with users. + """ + foundation_model: Required[str] + """ + The identifier for the model that you want to be used for orchestration + by the agent you create. + + The `modelId` to provide depends on the type of model or throughput that + you use: + + - If you use a base model, specify the model ID or its ARN. For a list + of model IDs for base models, see [Amazon Bedrock base model IDs + (on-demand + throughput)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) + in the Amazon Bedrock User Guide. + + - If you use an inference profile, specify the inference profile ID or + its ARN. For a list of inference profile IDs, see [Supported Regions + and models for cross-region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) + in the Amazon Bedrock User Guide. + + - If you use a provisioned model, specify the ARN of the Provisioned + Throughput. For more information, see [Run inference using a + Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html) + in the Amazon Bedrock User Guide. + + - If you use a custom model, first purchase Provisioned Throughput for + it. Then specify the ARN of the resulting provisioned model. For more + information, see [Use a custom model in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html) + in the Amazon Bedrock User Guide. + + - If you use an [imported + model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html), + specify the ARN of the imported model. You can get the model ARN from + a successful call to + [CreateModelImportJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html) + or from the Imported models page in the Amazon Bedrock console. + """ + description: str | None + """Specifies a new description of the agent.""" + orchestration_type: str | None + """ + Specifies the type of orchestration strategy for the agent. This is set + to `DEFAULT` orchestration type, by default. + """ + custom_orchestration: CustomOrchestration | CustomOrchestrationDict | None + """Contains details of the custom orchestration configured for the agent.""" + idle_session_ttl_in_seconds: int | None + """ + The number of seconds for which Amazon Bedrock keeps information about a + user's conversation with the agent. + + A user interaction remains active for the amount of time specified. If + no conversation occurs during this time, the session expires and Amazon + Bedrock deletes any data provided before the timeout. + """ + agent_resource_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role with permissions to + invoke API operations on the agent. + """ + customer_encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the KMS key with which to encrypt the + agent. + """ + prompt_override_configuration: ( + PromptOverrideConfiguration | PromptOverrideConfigurationDict | None + ) + """ + Contains configurations to override prompts in different parts of an + agent sequence. For more information, see [Advanced + prompts](https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html). + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """ + The unique Guardrail configuration assigned to the agent when it is + updated. + """ + memory_configuration: MemoryConfiguration | MemoryConfigurationDict | None + """Specifies the new memory configuration for the agent.""" + agent_collaboration: str | None + """The agent's collaboration role.""" + @dataclass(kw_only=True) class UpdateAgentKnowledgeBaseInput(_SerdeShape): """Dataclass for UpdateAgentKnowledgeBaseInput structure.""" @@ -4148,6 +6457,37 @@ class UpdateAgentKnowledgeBaseInput(_SerdeShape): request. """ +class UpdateAgentKnowledgeBaseInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAgentKnowledgeBaseInput`.""" + + agent_id: Required[str] + """ + The unique identifier of the agent associated with the knowledge base + that you want to update. + """ + agent_version: Required[str] + """ + The version of the agent associated with the knowledge base that you + want to update. + """ + knowledge_base_id: Required[str] + """ + The unique identifier of the knowledge base that has been associated + with an agent. + """ + description: str | None + """ + Specifies a new description for the knowledge base associated with an + agent. + """ + knowledge_base_state: str | None + """ + Specifies whether the agent uses the knowledge base or not when sending + an + [InvokeAgent](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) + request. + """ + @dataclass(kw_only=True) class UpdateAgentKnowledgeBaseOutput(_SerdeShape): """Dataclass for UpdateAgentKnowledgeBaseOutput structure.""" @@ -4203,6 +6543,35 @@ class UpdateDataSourceInput(_SerdeShape): vector_ingestion_configuration: VectorIngestionConfiguration | None = ... """Contains details about how to ingest the documents in the data source.""" +class UpdateDataSourceInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDataSourceInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base for the data source.""" + data_source_id: Required[str] + """The unique identifier of the data source.""" + name: Required[str] + """Specifies a new name for the data source.""" + description: str | None + """Specifies a new description for the data source.""" + data_source_configuration: Required[ + DataSourceConfiguration | DataSourceConfigurationDict + ] + """ + The connection configuration for the data source that you want to + update. + """ + data_deletion_policy: str | None + """The data deletion policy for the data source that you want to update.""" + server_side_encryption_configuration: ( + ServerSideEncryptionConfiguration | ServerSideEncryptionConfigurationDict | None + ) + """Contains details about server-side encryption of the data source.""" + vector_ingestion_configuration: ( + VectorIngestionConfiguration | VectorIngestionConfigurationDict | None + ) + """Contains details about how to ingest the documents in the data source.""" + @dataclass(kw_only=True) class UpdateDataSourceOutput(_SerdeShape): """Dataclass for UpdateDataSourceOutput structure.""" @@ -4237,6 +6606,32 @@ class UpdateFlowAliasInput(_SerdeShape): alias_identifier: str | None = ... """The unique identifier of the alias.""" +class UpdateFlowAliasInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFlowAliasInput`.""" + + name: Required[str] + """The name of the alias.""" + description: str | None + """A description for the alias.""" + routing_configuration: Required[ + Sequence[ + FlowAliasRoutingConfigurationListItem + | FlowAliasRoutingConfigurationListItemDict + ] + ] + """Contains information about the version to which to map the alias.""" + concurrency_configuration: ( + FlowAliasConcurrencyConfiguration | FlowAliasConcurrencyConfigurationDict | None + ) + """ + The configuration that specifies how nodes in the flow are executed in + parallel. + """ + flow_identifier: Required[str] + """The unique identifier of the flow.""" + alias_identifier: Required[str] + """The unique identifier of the alias.""" + @dataclass(kw_only=True) class UpdateFlowAliasOutput(_SerdeShape): """Dataclass for UpdateFlowAliasOutput structure.""" @@ -4296,6 +6691,31 @@ class UpdateFlowInput(_SerdeShape): flow_identifier: str | None = ... """The unique identifier of the flow.""" +class UpdateFlowInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFlowInput`.""" + + name: Required[str] + """A name for the flow.""" + description: str | None + """A description for the flow.""" + execution_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the service role with permissions to + create and manage a flow. For more information, see [Create a service + role for flows in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html) + in the Amazon Bedrock User Guide. + """ + customer_encryption_key_arn: str | None + """The Amazon Resource Name (ARN) of the KMS key to encrypt the flow.""" + definition: FlowDefinition | FlowDefinitionDict | None + """ + A definition of the nodes and the connections between the nodes in the + flow. + """ + flow_identifier: Required[str] + """The unique identifier of the flow.""" + @dataclass(kw_only=True) class UpdateFlowOutput(_SerdeShape): """Dataclass for UpdateFlowOutput structure.""" @@ -4383,6 +6803,47 @@ class UpdateKnowledgeBaseInput(_SerdeShape): don't specify a list, the existing configurations don't change. """ +class UpdateKnowledgeBaseInputDict(TypedDict, total=False): + """Dictionary form of `UpdateKnowledgeBaseInput`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base to update.""" + name: Required[str] + """Specifies a new name for the knowledge base.""" + description: str | None + """Specifies a new description for the knowledge base.""" + role_arn: Required[str] + """ + Specifies a different Amazon Resource Name (ARN) of the IAM role with + permissions to invoke API operations on the knowledge base. + """ + knowledge_base_configuration: Required[ + KnowledgeBaseConfiguration | KnowledgeBaseConfigurationDict + ] + """ + Specifies the configuration for the embeddings model used for the + knowledge base. You must use the same configuration as when the + knowledge base was created. + """ + storage_configuration: StorageConfiguration | StorageConfigurationDict | None + """ + Specifies the configuration for the vector store used for the knowledge + base. You must use the same configuration as when the knowledge base was + created. + """ + metadata_configurations: ( + Sequence[MetadataConfiguration | MetadataConfigurationDict] | None + ) + """ + Specifies up to 30 custom metadata field configurations for a managed + knowledge base. + + The list that you specify replaces the existing configurations. The + update removes any configuration that you leave out, and its field is no + longer searchable. An empty list removes all configurations. If you + don't specify a list, the existing configurations don't change. + """ + @dataclass(kw_only=True) class UpdateKnowledgeBaseOutput(_SerdeShape): """Dataclass for UpdateKnowledgeBaseOutput structure.""" @@ -4422,6 +6883,30 @@ class UpdatePromptInput(_SerdeShape): prompt_identifier: str | None = ... """The unique identifier of the prompt.""" +class UpdatePromptInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePromptInput`.""" + + name: Required[str] + """A name for the prompt.""" + description: str | None + """A description for the prompt.""" + customer_encryption_key_arn: str | None + """The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.""" + default_variant: str | None + """ + The name of the default variant for the prompt. This value must match + the `name` field in the relevant + [PromptVariant](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html) + object. + """ + variants: Sequence[PromptVariant | PromptVariantDict] | None + """ + A list of objects, each containing details about a variant of the + prompt. + """ + prompt_identifier: Required[str] + """The unique identifier of the prompt.""" + @dataclass(kw_only=True) class UpdatePromptOutput(_SerdeShape): """Dataclass for UpdatePromptOutput structure.""" @@ -4483,6 +6968,23 @@ class UpdateRetrievalInstructionInput(_SerdeShape): review passes. Omit to clear. """ +class UpdateRetrievalInstructionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRetrievalInstructionInput`.""" + + retrieval_instruction_id: Required[str] + """The identifier of the retrieval instruction to update.""" + instruction: Required[RetrievalInstructionContent | RetrievalInstructionContentDict] + """ + The replacement instruction content. This is a full replacement of all + four fields, not a patch. During UPDATING, Get continues to return the + previously-served content until the update review passes. + """ + description: str | None + """ + A replacement description; applied together with the content when the + review passes. Omit to clear. + """ + @dataclass(kw_only=True) class UpdateRetrievalInstructionOutput(_SerdeShape): """Dataclass for UpdateRetrievalInstructionOutput structure.""" diff --git a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_2.pyi b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_2.pyi index c064f2494..de834de36 100644 --- a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_2.pyi +++ b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/models_2.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.documents import Document from smithy_core.response import ResponseMetadata @@ -10,16 +12,25 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( ChunkingConfiguration, + ChunkingConfigurationDict, ContextEnrichmentConfiguration, + ContextEnrichmentConfigurationDict, CustomTransformationConfiguration, + CustomTransformationConfigurationDict, EmbeddingModelConfiguration, + EmbeddingModelConfigurationDict, FlowDefinition, + FlowDefinitionDict, FlowValidation, MetadataConfigurationForReranking, + MetadataConfigurationForRerankingDict, ParsingConfiguration, + ParsingConfigurationDict, SeedUrl, + SeedUrlDict, ServiceError, SupplementalDataStorageConfiguration, + SupplementalDataStorageConfigurationDict, _SerdeShape, ) @@ -33,6 +44,12 @@ class UrlConfiguration(_SerdeShape): seed_urls: list[SeedUrl] | None = ... """One or more seed or starting point URLs.""" +class UrlConfigurationDict(TypedDict, total=False): + """Dictionary form of `UrlConfiguration`.""" + + seed_urls: Sequence[SeedUrl | SeedUrlDict] | None + """One or more seed or starting point URLs.""" + @dataclass(kw_only=True) class ValidateFlowDefinitionInput(_SerdeShape): """Dataclass for ValidateFlowDefinitionInput structure.""" @@ -40,6 +57,12 @@ class ValidateFlowDefinitionInput(_SerdeShape): definition: FlowDefinition | None = ... """The definition of a flow to validate.""" +class ValidateFlowDefinitionInputDict(TypedDict, total=False): + """Dictionary form of `ValidateFlowDefinitionInput`.""" + + definition: Required[FlowDefinition | FlowDefinitionDict] + """The definition of a flow to validate.""" + @dataclass(kw_only=True) class ValidateFlowDefinitionOutput(_SerdeShape): """Dataclass for ValidateFlowDefinitionOutput structure.""" @@ -112,6 +135,32 @@ class VectorIngestionConfiguration(_SerdeShape): the vector store. """ +class VectorIngestionConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorIngestionConfiguration`.""" + + chunking_configuration: ChunkingConfiguration | ChunkingConfigurationDict | None + """ + Details about how to chunk the documents in the data source. A *chunk* + refers to an excerpt from a data source that is returned when the + knowledge base that it belongs to is queried. + """ + custom_transformation_configuration: ( + CustomTransformationConfiguration | CustomTransformationConfigurationDict | None + ) + """A custom document transformer for parsed data source documents.""" + parsing_configuration: ParsingConfiguration | ParsingConfigurationDict | None + """ + Configurations for a parser to use for parsing documents in your data + source. If you exclude this field, the default parser will be used. + """ + context_enrichment_configuration: ( + ContextEnrichmentConfiguration | ContextEnrichmentConfigurationDict | None + ) + """ + The context enrichment configuration used for ingestion of the data into + the vector store. + """ + @dataclass(kw_only=True) class VectorKnowledgeBaseConfiguration(_SerdeShape): """ @@ -140,6 +189,34 @@ class VectorKnowledgeBaseConfiguration(_SerdeShape): [RetrieveAndGenerate](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html). """ +class VectorKnowledgeBaseConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorKnowledgeBaseConfiguration`.""" + + embedding_model_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the model used to create vector + embeddings for the knowledge base. + """ + embedding_model_configuration: ( + EmbeddingModelConfiguration | EmbeddingModelConfigurationDict | None + ) + """ + The embeddings model configuration details for the vector model used in + Knowledge Base. + """ + supplemental_data_storage_configuration: ( + SupplementalDataStorageConfiguration + | SupplementalDataStorageConfigurationDict + | None + ) + """ + If you include multimodal data from your data source, use this object to + specify configurations for the storage location of the images extracted + from your documents. These images can be retrieved and returned to the + end user. They can also be used in generation when using + [RetrieveAndGenerate](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html). + """ + @dataclass(kw_only=True) class VectorSearchBedrockRerankingConfiguration(_SerdeShape): """ @@ -157,6 +234,24 @@ class VectorSearchBedrockRerankingConfiguration(_SerdeShape): process. """ +class VectorSearchBedrockRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchBedrockRerankingConfiguration`.""" + + model_configuration: Required[ + VectorSearchBedrockRerankingModelConfiguration + | VectorSearchBedrockRerankingModelConfigurationDict + ] + """Specifies the configuration for the Amazon Bedrock reranker model.""" + number_of_reranked_results: int | None + """Specifies the number of results to return after reranking.""" + metadata_configuration: ( + MetadataConfigurationForReranking | MetadataConfigurationForRerankingDict | None + ) + """ + Specifies how metadata fields should be handled during the reranking + process. + """ + @dataclass(kw_only=True) class VectorSearchBedrockRerankingModelConfiguration(_SerdeShape): """ @@ -173,6 +268,18 @@ class VectorSearchBedrockRerankingModelConfiguration(_SerdeShape): model. """ +class VectorSearchBedrockRerankingModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchBedrockRerankingModelConfiguration`.""" + + model_arn: Required[str] + """The Amazon Resource Name (ARN) of the Amazon Bedrock reranker model.""" + additional_model_request_fields: Mapping[str, Document] | None + """ + Specifies additional model-specific request parameters as key-value + pairs that are included in the request to the Amazon Bedrock reranker + model. + """ + @dataclass(kw_only=True) class VectorSearchRerankingConfiguration(_SerdeShape): """ @@ -193,6 +300,24 @@ class VectorSearchRerankingConfiguration(_SerdeShape): to rerank retrieved results. """ +class VectorSearchRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchRerankingConfiguration`.""" + + type: Required[str] + """ + Specifies the type of reranking model to use. Currently, the only + supported value is `BEDROCK_RERANKING_MODEL`. + """ + bedrock_reranking_configuration: ( + VectorSearchBedrockRerankingConfiguration + | VectorSearchBedrockRerankingConfigurationDict + | None + ) + """ + Specifies the configuration for using an Amazon Bedrock reranker model + to rerank retrieved results. + """ + class VectorSearchRerankingConfigurationType(UnknownEnumMixin, StrEnum): BEDROCK_RERANKING_MODEL = "BEDROCK_RERANKING_MODEL" @@ -206,6 +331,14 @@ class VideoConfiguration(_SerdeShape): segmentation_configuration: VideoSegmentationConfiguration """Configuration for segmenting video content during processing.""" +class VideoConfigurationDict(TypedDict, total=False): + """Dictionary form of `VideoConfiguration`.""" + + segmentation_configuration: Required[ + VideoSegmentationConfiguration | VideoSegmentationConfigurationDict + ] + """Configuration for segmenting video content during processing.""" + @dataclass(kw_only=True) class VideoExtractionConfiguration(_SerdeShape): """Configuration for video extraction.""" @@ -213,6 +346,12 @@ class VideoExtractionConfiguration(_SerdeShape): video_extraction_status: str """Whether video extraction is enabled or disabled.""" +class VideoExtractionConfigurationDict(TypedDict, total=False): + """Dictionary form of `VideoExtractionConfiguration`.""" + + video_extraction_status: Required[str] + """Whether video extraction is enabled or disabled.""" + @dataclass(kw_only=True) class VideoSegmentationConfiguration(_SerdeShape): """ @@ -227,6 +366,15 @@ class VideoSegmentationConfiguration(_SerdeShape): divided into chunks of this length for processing. """ +class VideoSegmentationConfigurationDict(TypedDict, total=False): + """Dictionary form of `VideoSegmentationConfiguration`.""" + + fixed_length_duration: Required[int] + """ + The duration in seconds for each video segment. Video files will be + divided into chunks of this length for processing. + """ + @dataclass(kw_only=True) class VpcConfiguration(_SerdeShape): """ @@ -419,6 +567,48 @@ class WebCrawlerConfiguration(_SerdeShape): permitted to access your source URLs. """ +class WebCrawlerConfigurationDict(TypedDict, total=False): + """Dictionary form of `WebCrawlerConfiguration`.""" + + crawler_limits: WebCrawlerLimits | WebCrawlerLimitsDict | None + """The configuration of crawl limits for the web URLs.""" + inclusion_filters: Sequence[str] | None + """ + A list of one or more inclusion regular expression patterns to include + certain URLs. If you specify an inclusion and exclusion filter/pattern + and both match a URL, the exclusion filter takes precedence and the web + content of the URL isn't crawled. + """ + exclusion_filters: Sequence[str] | None + """ + A list of one or more exclusion regular expression patterns to exclude + certain URLs. If you specify an inclusion and exclusion filter/pattern + and both match a URL, the exclusion filter takes precedence and the web + content of the URL isn't crawled. + """ + scope: str | None + """ + The scope of what is crawled for your URLs. + + You can choose to crawl only web pages that belong to the same host or + primary domain. For example, only web pages that contain the seed URL + \"https://docs.aws.amazon.com/bedrock/latest/userguide/\" and no other + domains. You can choose to include sub domains in addition to the host + or primary domain. For example, web pages that contain + \"aws.amazon.com\" can also include sub domain \"docs.aws.amazon.com\". + """ + user_agent: str | None + """Returns the user agent suffix for your web crawler.""" + user_agent_header: str | None + """ + A string used for identifying the crawler or bot when it accesses a web + server. The user agent header value consists of the `bedrockbot`, UUID, + and a user agent suffix for your crawler (if one is provided). By + default, it is set to `bedrockbot_UUID`. You can optionally append a + custom suffix to `bedrockbot_UUID` to allowlist a specific user agent + permitted to access your source URLs. + """ + @dataclass(kw_only=True) class WebCrawlerLimits(_SerdeShape): """ @@ -435,6 +625,18 @@ class WebCrawlerLimits(_SerdeShape): fail and no web pages will be ingested. """ +class WebCrawlerLimitsDict(TypedDict, total=False): + """Dictionary form of `WebCrawlerLimits`.""" + + rate_limit: int | None + """The max rate at which pages are crawled, up to 300 per minute per host.""" + max_pages: int | None + """ + The max number of web pages crawled from your source URLs, up to 25,000 + pages. If the web pages exceed this limit, the data source sync will + fail and no web pages will be ingested. + """ + @dataclass(kw_only=True) class WebDataSourceConfiguration(_SerdeShape): """The configuration details for the web data source.""" @@ -444,6 +646,14 @@ class WebDataSourceConfiguration(_SerdeShape): crawler_configuration: WebCrawlerConfiguration | None = ... """The Web Crawler configuration details for the web data source.""" +class WebDataSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `WebDataSourceConfiguration`.""" + + source_configuration: Required[WebSourceConfiguration | WebSourceConfigurationDict] + """The source configuration details for the web data source.""" + crawler_configuration: WebCrawlerConfiguration | WebCrawlerConfigurationDict | None + """The Web Crawler configuration details for the web data source.""" + class WebScopeType(UnknownEnumMixin, StrEnum): HOST_ONLY = "HOST_ONLY" SUBDOMAINS = "SUBDOMAINS" @@ -458,9 +668,21 @@ class WebSourceConfiguration(_SerdeShape): url_configuration: UrlConfiguration """The configuration of the URL/URLs.""" +class WebSourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `WebSourceConfiguration`.""" + + url_configuration: Required[UrlConfiguration | UrlConfigurationDict] + """The configuration of the URL/URLs.""" + @dataclass(kw_only=True) class WeeklySchedule(_SerdeShape): """A weekly sync on a specified day of the week.""" day_of_week: str """The day of the week on which the weekly sync runs.""" + +class WeeklyScheduleDict(TypedDict, total=False): + """Dictionary form of `WeeklySchedule`.""" + + day_of_week: Required[str] + """The day of the week on which the weekly sync runs.""" diff --git a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/schemas.py b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/schemas.py index 27c4e5cec..f8c1cb67e 100644 --- a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/schemas.py +++ b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/_private/schemas.py @@ -886,7 +886,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/aio/client.py b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/aio/client.py index 804655391..8de578522 100644 --- a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/aio/client.py +++ b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,177 +20,91 @@ if TYPE_CHECKING: from ..models import ( - AssociateAgentCollaboratorInput, AssociateAgentCollaboratorOutput, - AssociateAgentKnowledgeBaseInput, AssociateAgentKnowledgeBaseOutput, - CreateAgentActionGroupInput, CreateAgentActionGroupOutput, - CreateAgentAliasInput, CreateAgentAliasOutput, - CreateAgentInput, CreateAgentOutput, - CreateDataSourceInput, CreateDataSourceOutput, - CreateFlowAliasInput, CreateFlowAliasOutput, - CreateFlowInput, CreateFlowOutput, - CreateFlowVersionInput, CreateFlowVersionOutput, - CreateKnowledgeBaseInput, CreateKnowledgeBaseOutput, - CreatePromptInput, CreatePromptOutput, - CreatePromptVersionInput, CreatePromptVersionOutput, - CreateRetrievalInstructionInput, CreateRetrievalInstructionOutput, - CreateRetrievalInstructionVersionInput, CreateRetrievalInstructionVersionOutput, - CreateVpcConfigurationInput, CreateVpcConfigurationOutput, - DeleteAgentActionGroupInput, DeleteAgentActionGroupOutput, - DeleteAgentAliasInput, DeleteAgentAliasOutput, - DeleteAgentInput, DeleteAgentOutput, - DeleteAgentVersionInput, DeleteAgentVersionOutput, - DeleteDataSourceInput, DeleteDataSourceOutput, - DeleteFlowAliasInput, DeleteFlowAliasOutput, - DeleteFlowInput, DeleteFlowOutput, - DeleteFlowVersionInput, DeleteFlowVersionOutput, - DeleteKnowledgeBaseDocumentsInput, DeleteKnowledgeBaseDocumentsOutput, - DeleteKnowledgeBaseInput, DeleteKnowledgeBaseOutput, - DeletePromptInput, DeletePromptOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteRetrievalInstructionInput, DeleteRetrievalInstructionOutput, - DeleteVpcConfigurationInput, DeleteVpcConfigurationOutput, - DisassociateAgentCollaboratorInput, DisassociateAgentCollaboratorOutput, - DisassociateAgentKnowledgeBaseInput, DisassociateAgentKnowledgeBaseOutput, - GetAgentActionGroupInput, GetAgentActionGroupOutput, - GetAgentAliasInput, GetAgentAliasOutput, - GetAgentCollaboratorInput, GetAgentCollaboratorOutput, - GetAgentInput, - GetAgentKnowledgeBaseInput, GetAgentKnowledgeBaseOutput, GetAgentOutput, - GetAgentVersionInput, GetAgentVersionOutput, - GetDataSourceInput, GetDataSourceOutput, - GetFlowAliasInput, GetFlowAliasOutput, - GetFlowInput, GetFlowOutput, - GetFlowVersionInput, GetFlowVersionOutput, - GetIngestionJobInput, GetIngestionJobOutput, - GetKnowledgeBaseDocumentsInput, GetKnowledgeBaseDocumentsOutput, - GetKnowledgeBaseInput, GetKnowledgeBaseOutput, - GetPromptInput, GetPromptOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetRetrievalInstructionInput, GetRetrievalInstructionOutput, - GetVpcConfigurationInput, GetVpcConfigurationOutput, - IngestKnowledgeBaseDocumentsInput, IngestKnowledgeBaseDocumentsOutput, - ListAgentActionGroupsInput, ListAgentActionGroupsOutput, - ListAgentAliasesInput, ListAgentAliasesOutput, - ListAgentCollaboratorsInput, ListAgentCollaboratorsOutput, - ListAgentKnowledgeBasesInput, ListAgentKnowledgeBasesOutput, - ListAgentVersionsInput, ListAgentVersionsOutput, - ListAgentsInput, ListAgentsOutput, - ListDataSourcesInput, ListDataSourcesOutput, - ListFlowAliasesInput, ListFlowAliasesOutput, - ListFlowVersionsInput, ListFlowVersionsOutput, - ListFlowsInput, ListFlowsOutput, - ListIngestionJobsInput, ListIngestionJobsOutput, - ListKnowledgeBaseDocumentsInput, ListKnowledgeBaseDocumentsOutput, - ListKnowledgeBasesInput, ListKnowledgeBasesOutput, - ListPromptsInput, ListPromptsOutput, - ListRetrievalInstructionVersionsInput, ListRetrievalInstructionVersionsOutput, - ListRetrievalInstructionsInput, ListRetrievalInstructionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListVpcConfigurationsInput, ListVpcConfigurationsOutput, - PrepareAgentInput, PrepareAgentOutput, - PrepareFlowInput, PrepareFlowOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - StartIngestionJobInput, StartIngestionJobOutput, - StopIngestionJobInput, StopIngestionJobOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAgentActionGroupInput, UpdateAgentActionGroupOutput, - UpdateAgentAliasInput, UpdateAgentAliasOutput, - UpdateAgentCollaboratorInput, UpdateAgentCollaboratorOutput, - UpdateAgentInput, - UpdateAgentKnowledgeBaseInput, UpdateAgentKnowledgeBaseOutput, UpdateAgentOutput, - UpdateDataSourceInput, UpdateDataSourceOutput, - UpdateFlowAliasInput, UpdateFlowAliasOutput, - UpdateFlowInput, UpdateFlowOutput, - UpdateKnowledgeBaseInput, UpdateKnowledgeBaseOutput, - UpdatePromptInput, UpdatePromptOutput, - UpdateRetrievalInstructionInput, UpdateRetrievalInstructionOutput, - ValidateFlowDefinitionInput, ValidateFlowDefinitionOutput, ) @@ -212,19 +126,30 @@ class AsyncBedrockAgentClient(AsyncClient[AsyncBedrockAgentConfig]): agents. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def associate_agent_collaborator( self, - input: AssociateAgentCollaboratorInput, + request: _models.AssociateAgentCollaboratorInput + | _models.AssociateAgentCollaboratorInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssociateAgentCollaboratorOutput: ... + + @_overload + async def associate_agent_collaborator( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateAgentCollaboratorInputDict], ) -> AssociateAgentCollaboratorOutput: """ Makes an agent a collaborator for another agent. Args: - input: - An instance of `AssociateAgentCollaboratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -234,14 +159,34 @@ async def associate_agent_collaborator( Returns: An instance of `AssociateAgentCollaboratorOutput`. """ + + async def associate_agent_collaborator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateAgentCollaboratorOutput: return await self._invoke( - input, _models.ASSOCIATE_AGENT_COLLABORATOR, [], plugins + self._select_input(_models.ASSOCIATE_AGENT_COLLABORATOR, args, kwargs), + _models.ASSOCIATE_AGENT_COLLABORATOR, + [], + plugins, ) + @_overload + async def associate_agent_knowledge_base( + self, + request: _models.AssociateAgentKnowledgeBaseInput + | _models.AssociateAgentKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateAgentKnowledgeBaseOutput: ... + + @_overload async def associate_agent_knowledge_base( self, - input: AssociateAgentKnowledgeBaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateAgentKnowledgeBaseInputDict], ) -> AssociateAgentKnowledgeBaseOutput: """ Associates a knowledge base with an agent. If a knowledge base is @@ -249,8 +194,6 @@ async def associate_agent_knowledge_base( the knowledge base for information to augment its response to the user. Args: - input: - An instance of `AssociateAgentKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -260,12 +203,33 @@ async def associate_agent_knowledge_base( Returns: An instance of `AssociateAgentKnowledgeBaseOutput`. """ + + async def associate_agent_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateAgentKnowledgeBaseOutput: return await self._invoke( - input, _models.ASSOCIATE_AGENT_KNOWLEDGE_BASE, [], plugins + self._select_input(_models.ASSOCIATE_AGENT_KNOWLEDGE_BASE, args, kwargs), + _models.ASSOCIATE_AGENT_KNOWLEDGE_BASE, + [], + plugins, ) + @_overload + async def create_agent( + self, + request: _models.CreateAgentInput | _models.CreateAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentOutput: ... + + @_overload async def create_agent( - self, input: CreateAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentInputDict], ) -> CreateAgentOutput: """ Note: @@ -312,8 +276,6 @@ async def create_agent( input is disabled. Args: - input: - An instance of `CreateAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -323,10 +285,34 @@ async def create_agent( Returns: An instance of `CreateAgentOutput`. """ - return await self._invoke(input, _models.CREATE_AGENT, [], plugins) + async def create_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentOutput: + return await self._invoke( + self._select_input(_models.CREATE_AGENT, args, kwargs), + _models.CREATE_AGENT, + [], + plugins, + ) + + @_overload + async def create_agent_action_group( + self, + request: _models.CreateAgentActionGroupInput + | _models.CreateAgentActionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentActionGroupOutput: ... + + @_overload async def create_agent_action_group( - self, input: CreateAgentActionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentActionGroupInputDict], ) -> CreateAgentActionGroupOutput: """ Creates an action group for an agent. An action group represents the @@ -350,8 +336,6 @@ async def create_agent_action_group( reprompting the user for more information. Args: - input: - An instance of `CreateAgentActionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -361,17 +345,38 @@ async def create_agent_action_group( Returns: An instance of `CreateAgentActionGroupOutput`. """ - return await self._invoke(input, _models.CREATE_AGENT_ACTION_GROUP, [], plugins) + async def create_agent_action_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentActionGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_AGENT_ACTION_GROUP, args, kwargs), + _models.CREATE_AGENT_ACTION_GROUP, + [], + plugins, + ) + + @_overload + async def create_agent_alias( + self, + request: _models.CreateAgentAliasInput | _models.CreateAgentAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentAliasOutput: ... + + @_overload async def create_agent_alias( - self, input: CreateAgentAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentAliasInputDict], ) -> CreateAgentAliasOutput: """ Creates an alias of an agent that can be used to deploy the agent. Args: - input: - An instance of `CreateAgentAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -381,10 +386,33 @@ async def create_agent_alias( Returns: An instance of `CreateAgentAliasOutput`. """ - return await self._invoke(input, _models.CREATE_AGENT_ALIAS, [], plugins) + async def create_agent_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentAliasOutput: + return await self._invoke( + self._select_input(_models.CREATE_AGENT_ALIAS, args, kwargs), + _models.CREATE_AGENT_ALIAS, + [], + plugins, + ) + + @_overload + async def create_data_source( + self, + request: _models.CreateDataSourceInput | _models.CreateDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataSourceOutput: ... + + @_overload async def create_data_source( - self, input: CreateDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataSourceInputDict], ) -> CreateDataSourceOutput: """ Connects a knowledge base to a data source. You specify the @@ -396,8 +424,6 @@ async def create_data_source( source connector. Args: - input: - An instance of `CreateDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -407,10 +433,33 @@ async def create_data_source( Returns: An instance of `CreateDataSourceOutput`. """ - return await self._invoke(input, _models.CREATE_DATA_SOURCE, [], plugins) + async def create_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataSourceOutput: + return await self._invoke( + self._select_input(_models.CREATE_DATA_SOURCE, args, kwargs), + _models.CREATE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + async def create_flow( + self, + request: _models.CreateFlowInput | _models.CreateFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFlowOutput: ... + + @_overload async def create_flow( - self, input: CreateFlowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFlowInputDict], ) -> CreateFlowOutput: """ Creates a prompt flow that you can use to send an input through various @@ -423,8 +472,6 @@ async def create_flow( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreateFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -434,10 +481,33 @@ async def create_flow( Returns: An instance of `CreateFlowOutput`. """ - return await self._invoke(input, _models.CREATE_FLOW, [], plugins) + async def create_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFlowOutput: + return await self._invoke( + self._select_input(_models.CREATE_FLOW, args, kwargs), + _models.CREATE_FLOW, + [], + plugins, + ) + + @_overload + async def create_flow_alias( + self, + request: _models.CreateFlowAliasInput | _models.CreateFlowAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFlowAliasOutput: ... + + @_overload async def create_flow_alias( - self, input: CreateFlowAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFlowAliasInputDict], ) -> CreateFlowAliasOutput: """ Creates an alias of a flow for deployment. For more information, see @@ -446,8 +516,6 @@ async def create_flow_alias( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreateFlowAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -457,10 +525,33 @@ async def create_flow_alias( Returns: An instance of `CreateFlowAliasOutput`. """ - return await self._invoke(input, _models.CREATE_FLOW_ALIAS, [], plugins) + async def create_flow_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFlowAliasOutput: + return await self._invoke( + self._select_input(_models.CREATE_FLOW_ALIAS, args, kwargs), + _models.CREATE_FLOW_ALIAS, + [], + plugins, + ) + + @_overload async def create_flow_version( - self, input: CreateFlowVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateFlowVersionInput | _models.CreateFlowVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFlowVersionOutput: ... + + @_overload + async def create_flow_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFlowVersionInputDict], ) -> CreateFlowVersionOutput: """ Creates a version of the flow that you can deploy. For more information, @@ -469,8 +560,6 @@ async def create_flow_version( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreateFlowVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -480,10 +569,34 @@ async def create_flow_version( Returns: An instance of `CreateFlowVersionOutput`. """ - return await self._invoke(input, _models.CREATE_FLOW_VERSION, [], plugins) + async def create_flow_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFlowVersionOutput: + return await self._invoke( + self._select_input(_models.CREATE_FLOW_VERSION, args, kwargs), + _models.CREATE_FLOW_VERSION, + [], + plugins, + ) + + @_overload + async def create_knowledge_base( + self, + request: _models.CreateKnowledgeBaseInput + | _models.CreateKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKnowledgeBaseOutput: ... + + @_overload async def create_knowledge_base( - self, input: CreateKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKnowledgeBaseInputDict], ) -> CreateKnowledgeBaseOutput: """ Creates a knowledge base. A knowledge base contains your data sources so @@ -535,8 +648,6 @@ async def create_knowledge_base( Cloud](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-redis.html). Args: - input: - An instance of `CreateKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -546,10 +657,33 @@ async def create_knowledge_base( Returns: An instance of `CreateKnowledgeBaseOutput`. """ - return await self._invoke(input, _models.CREATE_KNOWLEDGE_BASE, [], plugins) + async def create_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKnowledgeBaseOutput: + return await self._invoke( + self._select_input(_models.CREATE_KNOWLEDGE_BASE, args, kwargs), + _models.CREATE_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + async def create_prompt( + self, + request: _models.CreatePromptInput | _models.CreatePromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePromptOutput: ... + + @_overload async def create_prompt( - self, input: CreatePromptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePromptInputDict], ) -> CreatePromptOutput: """ Creates a prompt in your prompt library that you can add to a flow. For @@ -562,8 +696,6 @@ async def create_prompt( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreatePromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -573,10 +705,34 @@ async def create_prompt( Returns: An instance of `CreatePromptOutput`. """ - return await self._invoke(input, _models.CREATE_PROMPT, [], plugins) + async def create_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePromptOutput: + return await self._invoke( + self._select_input(_models.CREATE_PROMPT, args, kwargs), + _models.CREATE_PROMPT, + [], + plugins, + ) + + @_overload + async def create_prompt_version( + self, + request: _models.CreatePromptVersionInput + | _models.CreatePromptVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePromptVersionOutput: ... + + @_overload async def create_prompt_version( - self, input: CreatePromptVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePromptVersionInputDict], ) -> CreatePromptVersionOutput: """ Creates a static snapshot of your prompt that can be deployed to @@ -586,8 +742,6 @@ async def create_prompt_version( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreatePromptVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -597,12 +751,34 @@ async def create_prompt_version( Returns: An instance of `CreatePromptVersionOutput`. """ - return await self._invoke(input, _models.CREATE_PROMPT_VERSION, [], plugins) + async def create_prompt_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePromptVersionOutput: + return await self._invoke( + self._select_input(_models.CREATE_PROMPT_VERSION, args, kwargs), + _models.CREATE_PROMPT_VERSION, + [], + plugins, + ) + + @_overload + async def create_retrieval_instruction( + self, + request: _models.CreateRetrievalInstructionInput + | _models.CreateRetrievalInstructionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRetrievalInstructionOutput: ... + + @_overload async def create_retrieval_instruction( self, - input: CreateRetrievalInstructionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRetrievalInstructionInputDict], ) -> CreateRetrievalInstructionOutput: """ Creates a new retrieval instruction. The retrieval instruction is usable @@ -610,8 +786,6 @@ async def create_retrieval_instruction( whether it is ready. Args: - input: - An instance of `CreateRetrievalInstructionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -621,14 +795,34 @@ async def create_retrieval_instruction( Returns: An instance of `CreateRetrievalInstructionOutput`. """ + + async def create_retrieval_instruction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRetrievalInstructionOutput: return await self._invoke( - input, _models.CREATE_RETRIEVAL_INSTRUCTION, [], plugins + self._select_input(_models.CREATE_RETRIEVAL_INSTRUCTION, args, kwargs), + _models.CREATE_RETRIEVAL_INSTRUCTION, + [], + plugins, ) + @_overload + async def create_retrieval_instruction_version( + self, + request: _models.CreateRetrievalInstructionVersionInput + | _models.CreateRetrievalInstructionVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRetrievalInstructionVersionOutput: ... + + @_overload async def create_retrieval_instruction_version( self, - input: CreateRetrievalInstructionVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRetrievalInstructionVersionInputDict], ) -> CreateRetrievalInstructionVersionOutput: """ Creates an immutable numbered version from the retrieval instruction's @@ -638,8 +832,6 @@ async def create_retrieval_instruction_version( reusing a number. Args: - input: - An instance of `CreateRetrievalInstructionVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -649,12 +841,36 @@ async def create_retrieval_instruction_version( Returns: An instance of `CreateRetrievalInstructionVersionOutput`. """ + + async def create_retrieval_instruction_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRetrievalInstructionVersionOutput: return await self._invoke( - input, _models.CREATE_RETRIEVAL_INSTRUCTION_VERSION, [], plugins + self._select_input( + _models.CREATE_RETRIEVAL_INSTRUCTION_VERSION, args, kwargs + ), + _models.CREATE_RETRIEVAL_INSTRUCTION_VERSION, + [], + plugins, ) + @_overload + async def create_vpc_configuration( + self, + request: _models.CreateVpcConfigurationInput + | _models.CreateVpcConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcConfigurationOutput: ... + + @_overload async def create_vpc_configuration( - self, input: CreateVpcConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcConfigurationInputDict], ) -> CreateVpcConfigurationOutput: """ Creates a VPC configuration that lets a knowledge base connect to a @@ -664,8 +880,6 @@ async def create_vpc_configuration( `CREATE_FAILED`. Args: - input: - An instance of `CreateVpcConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -675,17 +889,38 @@ async def create_vpc_configuration( Returns: An instance of `CreateVpcConfigurationOutput`. """ - return await self._invoke(input, _models.CREATE_VPC_CONFIGURATION, [], plugins) + async def create_vpc_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcConfigurationOutput: + return await self._invoke( + self._select_input(_models.CREATE_VPC_CONFIGURATION, args, kwargs), + _models.CREATE_VPC_CONFIGURATION, + [], + plugins, + ) + + @_overload + async def delete_agent( + self, + request: _models.DeleteAgentInput | _models.DeleteAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentOutput: ... + + @_overload async def delete_agent( - self, input: DeleteAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentInputDict], ) -> DeleteAgentOutput: """ Deletes an agent. Args: - input: - An instance of `DeleteAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -695,17 +930,39 @@ async def delete_agent( Returns: An instance of `DeleteAgentOutput`. """ - return await self._invoke(input, _models.DELETE_AGENT, [], plugins) + async def delete_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentOutput: + return await self._invoke( + self._select_input(_models.DELETE_AGENT, args, kwargs), + _models.DELETE_AGENT, + [], + plugins, + ) + + @_overload async def delete_agent_action_group( - self, input: DeleteAgentActionGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteAgentActionGroupInput + | _models.DeleteAgentActionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentActionGroupOutput: ... + + @_overload + async def delete_agent_action_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentActionGroupInputDict], ) -> DeleteAgentActionGroupOutput: """ Deletes an action group in an agent. Args: - input: - An instance of `DeleteAgentActionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -715,17 +972,38 @@ async def delete_agent_action_group( Returns: An instance of `DeleteAgentActionGroupOutput`. """ - return await self._invoke(input, _models.DELETE_AGENT_ACTION_GROUP, [], plugins) + async def delete_agent_action_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentActionGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_AGENT_ACTION_GROUP, args, kwargs), + _models.DELETE_AGENT_ACTION_GROUP, + [], + plugins, + ) + + @_overload + async def delete_agent_alias( + self, + request: _models.DeleteAgentAliasInput | _models.DeleteAgentAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentAliasOutput: ... + + @_overload async def delete_agent_alias( - self, input: DeleteAgentAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentAliasInputDict], ) -> DeleteAgentAliasOutput: """ Deletes an alias of an agent. Args: - input: - An instance of `DeleteAgentAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -735,17 +1013,38 @@ async def delete_agent_alias( Returns: An instance of `DeleteAgentAliasOutput`. """ - return await self._invoke(input, _models.DELETE_AGENT_ALIAS, [], plugins) + async def delete_agent_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentAliasOutput: + return await self._invoke( + self._select_input(_models.DELETE_AGENT_ALIAS, args, kwargs), + _models.DELETE_AGENT_ALIAS, + [], + plugins, + ) + + @_overload + async def delete_agent_version( + self, + request: _models.DeleteAgentVersionInput | _models.DeleteAgentVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentVersionOutput: ... + + @_overload async def delete_agent_version( - self, input: DeleteAgentVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentVersionInputDict], ) -> DeleteAgentVersionOutput: """ Deletes a version of an agent. Args: - input: - An instance of `DeleteAgentVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -755,17 +1054,38 @@ async def delete_agent_version( Returns: An instance of `DeleteAgentVersionOutput`. """ - return await self._invoke(input, _models.DELETE_AGENT_VERSION, [], plugins) + async def delete_agent_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentVersionOutput: + return await self._invoke( + self._select_input(_models.DELETE_AGENT_VERSION, args, kwargs), + _models.DELETE_AGENT_VERSION, + [], + plugins, + ) + + @_overload + async def delete_data_source( + self, + request: _models.DeleteDataSourceInput | _models.DeleteDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDataSourceOutput: ... + + @_overload async def delete_data_source( - self, input: DeleteDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataSourceInputDict], ) -> DeleteDataSourceOutput: """ Deletes a data source from a knowledge base. Args: - input: - An instance of `DeleteDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -775,17 +1095,38 @@ async def delete_data_source( Returns: An instance of `DeleteDataSourceOutput`. """ - return await self._invoke(input, _models.DELETE_DATA_SOURCE, [], plugins) + async def delete_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataSourceOutput: + return await self._invoke( + self._select_input(_models.DELETE_DATA_SOURCE, args, kwargs), + _models.DELETE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + async def delete_flow( + self, + request: _models.DeleteFlowInput | _models.DeleteFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFlowOutput: ... + + @_overload async def delete_flow( - self, input: DeleteFlowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFlowInputDict], ) -> DeleteFlowOutput: """ Deletes a flow. Args: - input: - An instance of `DeleteFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -795,17 +1136,38 @@ async def delete_flow( Returns: An instance of `DeleteFlowOutput`. """ - return await self._invoke(input, _models.DELETE_FLOW, [], plugins) + async def delete_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFlowOutput: + return await self._invoke( + self._select_input(_models.DELETE_FLOW, args, kwargs), + _models.DELETE_FLOW, + [], + plugins, + ) + + @_overload + async def delete_flow_alias( + self, + request: _models.DeleteFlowAliasInput | _models.DeleteFlowAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFlowAliasOutput: ... + + @_overload async def delete_flow_alias( - self, input: DeleteFlowAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFlowAliasInputDict], ) -> DeleteFlowAliasOutput: """ Deletes an alias of a flow. Args: - input: - An instance of `DeleteFlowAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -815,17 +1177,38 @@ async def delete_flow_alias( Returns: An instance of `DeleteFlowAliasOutput`. """ - return await self._invoke(input, _models.DELETE_FLOW_ALIAS, [], plugins) + async def delete_flow_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFlowAliasOutput: + return await self._invoke( + self._select_input(_models.DELETE_FLOW_ALIAS, args, kwargs), + _models.DELETE_FLOW_ALIAS, + [], + plugins, + ) + + @_overload + async def delete_flow_version( + self, + request: _models.DeleteFlowVersionInput | _models.DeleteFlowVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFlowVersionOutput: ... + + @_overload async def delete_flow_version( - self, input: DeleteFlowVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFlowVersionInputDict], ) -> DeleteFlowVersionOutput: """ Deletes a version of a flow. Args: - input: - An instance of `DeleteFlowVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -835,10 +1218,34 @@ async def delete_flow_version( Returns: An instance of `DeleteFlowVersionOutput`. """ - return await self._invoke(input, _models.DELETE_FLOW_VERSION, [], plugins) + async def delete_flow_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFlowVersionOutput: + return await self._invoke( + self._select_input(_models.DELETE_FLOW_VERSION, args, kwargs), + _models.DELETE_FLOW_VERSION, + [], + plugins, + ) + + @_overload + async def delete_knowledge_base( + self, + request: _models.DeleteKnowledgeBaseInput + | _models.DeleteKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKnowledgeBaseOutput: ... + + @_overload async def delete_knowledge_base( - self, input: DeleteKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKnowledgeBaseInputDict], ) -> DeleteKnowledgeBaseOutput: """ Deletes a knowledge base. Before deleting a knowledge base, you should @@ -848,8 +1255,6 @@ async def delete_knowledge_base( request. Args: - input: - An instance of `DeleteKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -859,12 +1264,34 @@ async def delete_knowledge_base( Returns: An instance of `DeleteKnowledgeBaseOutput`. """ - return await self._invoke(input, _models.DELETE_KNOWLEDGE_BASE, [], plugins) + async def delete_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKnowledgeBaseOutput: + return await self._invoke( + self._select_input(_models.DELETE_KNOWLEDGE_BASE, args, kwargs), + _models.DELETE_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload async def delete_knowledge_base_documents( self, - input: DeleteKnowledgeBaseDocumentsInput, + request: _models.DeleteKnowledgeBaseDocumentsInput + | _models.DeleteKnowledgeBaseDocumentsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteKnowledgeBaseDocumentsOutput: ... + + @_overload + async def delete_knowledge_base_documents( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKnowledgeBaseDocumentsInputDict], ) -> DeleteKnowledgeBaseDocumentsOutput: """ Deletes documents from a data source and syncs the changes to the @@ -874,8 +1301,6 @@ async def delete_knowledge_base_documents( in the Amazon Bedrock User Guide. Args: - input: - An instance of `DeleteKnowledgeBaseDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -885,13 +1310,34 @@ async def delete_knowledge_base_documents( Returns: An instance of `DeleteKnowledgeBaseDocumentsOutput`. """ + + async def delete_knowledge_base_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKnowledgeBaseDocumentsOutput: return await self._invoke( - input, _models.DELETE_KNOWLEDGE_BASE_DOCUMENTS, [], plugins + self._select_input(_models.DELETE_KNOWLEDGE_BASE_DOCUMENTS, args, kwargs), + _models.DELETE_KNOWLEDGE_BASE_DOCUMENTS, + [], + plugins, ) + @_overload async def delete_prompt( - self, input: DeletePromptInput, plugins: list[Plugin] | None = None - ) -> DeletePromptOutput: + self, + request: _models.DeletePromptInput | _models.DeletePromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePromptOutput: ... + + @_overload + async def delete_prompt( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePromptInputDict], + ) -> DeletePromptOutput: """ Deletes a prompt or a version of it, depending on whether you include the `promptVersion` field or not. For more information, see [Delete @@ -902,8 +1348,6 @@ async def delete_prompt( in the Amazon Bedrock User Guide. Args: - input: - An instance of `DeletePromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -913,10 +1357,34 @@ async def delete_prompt( Returns: An instance of `DeletePromptOutput`. """ - return await self._invoke(input, _models.DELETE_PROMPT, [], plugins) + async def delete_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePromptOutput: + return await self._invoke( + self._select_input(_models.DELETE_PROMPT, args, kwargs), + _models.DELETE_PROMPT, + [], + plugins, + ) + + @_overload + async def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Removes the resource policy associated with a knowledge base. After @@ -924,8 +1392,6 @@ async def delete_resource_policy( using cross-account permissions. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -935,12 +1401,34 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def delete_retrieval_instruction( + self, + request: _models.DeleteRetrievalInstructionInput + | _models.DeleteRetrievalInstructionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRetrievalInstructionOutput: ... + + @_overload async def delete_retrieval_instruction( self, - input: DeleteRetrievalInstructionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRetrievalInstructionInputDict], ) -> DeleteRetrievalInstructionOutput: """ Deletes a retrieval instruction or a single version of it. Omit @@ -952,8 +1440,6 @@ async def delete_retrieval_instruction( unaffected. Args: - input: - An instance of `DeleteRetrievalInstructionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -963,12 +1449,34 @@ async def delete_retrieval_instruction( Returns: An instance of `DeleteRetrievalInstructionOutput`. """ + + async def delete_retrieval_instruction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRetrievalInstructionOutput: return await self._invoke( - input, _models.DELETE_RETRIEVAL_INSTRUCTION, [], plugins + self._select_input(_models.DELETE_RETRIEVAL_INSTRUCTION, args, kwargs), + _models.DELETE_RETRIEVAL_INSTRUCTION, + [], + plugins, ) + @_overload + async def delete_vpc_configuration( + self, + request: _models.DeleteVpcConfigurationInput + | _models.DeleteVpcConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcConfigurationOutput: ... + + @_overload async def delete_vpc_configuration( - self, input: DeleteVpcConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcConfigurationInputDict], ) -> DeleteVpcConfigurationOutput: """ Deletes a VPC configuration. This operation is asynchronous: it returns @@ -977,8 +1485,6 @@ async def delete_vpc_configuration( Delete requests are idempotent and safe to retry. Args: - input: - An instance of `DeleteVpcConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -988,19 +1494,39 @@ async def delete_vpc_configuration( Returns: An instance of `DeleteVpcConfigurationOutput`. """ - return await self._invoke(input, _models.DELETE_VPC_CONFIGURATION, [], plugins) + async def delete_vpc_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcConfigurationOutput: + return await self._invoke( + self._select_input(_models.DELETE_VPC_CONFIGURATION, args, kwargs), + _models.DELETE_VPC_CONFIGURATION, + [], + plugins, + ) + + @_overload + async def disassociate_agent_collaborator( + self, + request: _models.DisassociateAgentCollaboratorInput + | _models.DisassociateAgentCollaboratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateAgentCollaboratorOutput: ... + + @_overload async def disassociate_agent_collaborator( self, - input: DisassociateAgentCollaboratorInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateAgentCollaboratorInputDict], ) -> DisassociateAgentCollaboratorOutput: """ Disassociates an agent collaborator. Args: - input: - An instance of `DisassociateAgentCollaboratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1010,21 +1536,39 @@ async def disassociate_agent_collaborator( Returns: An instance of `DisassociateAgentCollaboratorOutput`. """ + + async def disassociate_agent_collaborator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateAgentCollaboratorOutput: return await self._invoke( - input, _models.DISASSOCIATE_AGENT_COLLABORATOR, [], plugins + self._select_input(_models.DISASSOCIATE_AGENT_COLLABORATOR, args, kwargs), + _models.DISASSOCIATE_AGENT_COLLABORATOR, + [], + plugins, ) + @_overload async def disassociate_agent_knowledge_base( self, - input: DisassociateAgentKnowledgeBaseInput, + request: _models.DisassociateAgentKnowledgeBaseInput + | _models.DisassociateAgentKnowledgeBaseInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateAgentKnowledgeBaseOutput: ... + + @_overload + async def disassociate_agent_knowledge_base( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateAgentKnowledgeBaseInputDict], ) -> DisassociateAgentKnowledgeBaseOutput: """ Disassociates a knowledge base from an agent. Args: - input: - An instance of `DisassociateAgentKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1034,19 +1578,38 @@ async def disassociate_agent_knowledge_base( Returns: An instance of `DisassociateAgentKnowledgeBaseOutput`. """ + + async def disassociate_agent_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateAgentKnowledgeBaseOutput: return await self._invoke( - input, _models.DISASSOCIATE_AGENT_KNOWLEDGE_BASE, [], plugins + self._select_input(_models.DISASSOCIATE_AGENT_KNOWLEDGE_BASE, args, kwargs), + _models.DISASSOCIATE_AGENT_KNOWLEDGE_BASE, + [], + plugins, ) + @_overload + async def get_agent( + self, + request: _models.GetAgentInput | _models.GetAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentOutput: ... + + @_overload async def get_agent( - self, input: GetAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentInputDict], ) -> GetAgentOutput: """ Gets information about an agent. Args: - input: - An instance of `GetAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1056,17 +1619,39 @@ async def get_agent( Returns: An instance of `GetAgentOutput`. """ - return await self._invoke(input, _models.GET_AGENT, [], plugins) + async def get_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT, args, kwargs), + _models.GET_AGENT, + [], + plugins, + ) + + @_overload + async def get_agent_action_group( + self, + request: _models.GetAgentActionGroupInput + | _models.GetAgentActionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentActionGroupOutput: ... + + @_overload async def get_agent_action_group( - self, input: GetAgentActionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentActionGroupInputDict], ) -> GetAgentActionGroupOutput: """ Gets information about an action group for an agent. Args: - input: - An instance of `GetAgentActionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1076,17 +1661,38 @@ async def get_agent_action_group( Returns: An instance of `GetAgentActionGroupOutput`. """ - return await self._invoke(input, _models.GET_AGENT_ACTION_GROUP, [], plugins) + async def get_agent_action_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentActionGroupOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT_ACTION_GROUP, args, kwargs), + _models.GET_AGENT_ACTION_GROUP, + [], + plugins, + ) + + @_overload + async def get_agent_alias( + self, + request: _models.GetAgentAliasInput | _models.GetAgentAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentAliasOutput: ... + + @_overload async def get_agent_alias( - self, input: GetAgentAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentAliasInputDict], ) -> GetAgentAliasOutput: """ Gets information about an alias of an agent. Args: - input: - An instance of `GetAgentAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1096,17 +1702,39 @@ async def get_agent_alias( Returns: An instance of `GetAgentAliasOutput`. """ - return await self._invoke(input, _models.GET_AGENT_ALIAS, [], plugins) + async def get_agent_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentAliasOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT_ALIAS, args, kwargs), + _models.GET_AGENT_ALIAS, + [], + plugins, + ) + + @_overload async def get_agent_collaborator( - self, input: GetAgentCollaboratorInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAgentCollaboratorInput + | _models.GetAgentCollaboratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentCollaboratorOutput: ... + + @_overload + async def get_agent_collaborator( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentCollaboratorInputDict], ) -> GetAgentCollaboratorOutput: """ Retrieves information about an agent's collaborator. Args: - input: - An instance of `GetAgentCollaboratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1116,17 +1744,39 @@ async def get_agent_collaborator( Returns: An instance of `GetAgentCollaboratorOutput`. """ - return await self._invoke(input, _models.GET_AGENT_COLLABORATOR, [], plugins) + async def get_agent_collaborator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentCollaboratorOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT_COLLABORATOR, args, kwargs), + _models.GET_AGENT_COLLABORATOR, + [], + plugins, + ) + + @_overload + async def get_agent_knowledge_base( + self, + request: _models.GetAgentKnowledgeBaseInput + | _models.GetAgentKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentKnowledgeBaseOutput: ... + + @_overload async def get_agent_knowledge_base( - self, input: GetAgentKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentKnowledgeBaseInputDict], ) -> GetAgentKnowledgeBaseOutput: """ Gets information about a knowledge base associated with an agent. Args: - input: - An instance of `GetAgentKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1136,17 +1786,38 @@ async def get_agent_knowledge_base( Returns: An instance of `GetAgentKnowledgeBaseOutput`. """ - return await self._invoke(input, _models.GET_AGENT_KNOWLEDGE_BASE, [], plugins) + async def get_agent_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentKnowledgeBaseOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT_KNOWLEDGE_BASE, args, kwargs), + _models.GET_AGENT_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + async def get_agent_version( + self, + request: _models.GetAgentVersionInput | _models.GetAgentVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentVersionOutput: ... + + @_overload async def get_agent_version( - self, input: GetAgentVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentVersionInputDict], ) -> GetAgentVersionOutput: """ Gets details about a version of an agent. Args: - input: - An instance of `GetAgentVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1156,17 +1827,38 @@ async def get_agent_version( Returns: An instance of `GetAgentVersionOutput`. """ - return await self._invoke(input, _models.GET_AGENT_VERSION, [], plugins) + async def get_agent_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentVersionOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT_VERSION, args, kwargs), + _models.GET_AGENT_VERSION, + [], + plugins, + ) + + @_overload + async def get_data_source( + self, + request: _models.GetDataSourceInput | _models.GetDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataSourceOutput: ... + + @_overload async def get_data_source( - self, input: GetDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataSourceInputDict], ) -> GetDataSourceOutput: """ Gets information about a data source. Args: - input: - An instance of `GetDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1176,10 +1868,33 @@ async def get_data_source( Returns: An instance of `GetDataSourceOutput`. """ - return await self._invoke(input, _models.GET_DATA_SOURCE, [], plugins) + async def get_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataSourceOutput: + return await self._invoke( + self._select_input(_models.GET_DATA_SOURCE, args, kwargs), + _models.GET_DATA_SOURCE, + [], + plugins, + ) + + @_overload + async def get_flow( + self, + request: _models.GetFlowInput | _models.GetFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowOutput: ... + + @_overload async def get_flow( - self, input: GetFlowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowInputDict], ) -> GetFlowOutput: """ Retrieves information about a flow. For more information, see [Manage a @@ -1188,8 +1903,6 @@ async def get_flow( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1199,10 +1912,33 @@ async def get_flow( Returns: An instance of `GetFlowOutput`. """ - return await self._invoke(input, _models.GET_FLOW, [], plugins) + async def get_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowOutput: + return await self._invoke( + self._select_input(_models.GET_FLOW, args, kwargs), + _models.GET_FLOW, + [], + plugins, + ) + + @_overload + async def get_flow_alias( + self, + request: _models.GetFlowAliasInput | _models.GetFlowAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowAliasOutput: ... + + @_overload async def get_flow_alias( - self, input: GetFlowAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowAliasInputDict], ) -> GetFlowAliasOutput: """ Retrieves information about a flow. For more information, see [Deploy a @@ -1211,8 +1947,6 @@ async def get_flow_alias( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetFlowAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1222,10 +1956,33 @@ async def get_flow_alias( Returns: An instance of `GetFlowAliasOutput`. """ - return await self._invoke(input, _models.GET_FLOW_ALIAS, [], plugins) + async def get_flow_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowAliasOutput: + return await self._invoke( + self._select_input(_models.GET_FLOW_ALIAS, args, kwargs), + _models.GET_FLOW_ALIAS, + [], + plugins, + ) + + @_overload + async def get_flow_version( + self, + request: _models.GetFlowVersionInput | _models.GetFlowVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowVersionOutput: ... + + @_overload async def get_flow_version( - self, input: GetFlowVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowVersionInputDict], ) -> GetFlowVersionOutput: """ Retrieves information about a version of a flow. For more information, @@ -1234,8 +1991,6 @@ async def get_flow_version( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetFlowVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1245,10 +2000,33 @@ async def get_flow_version( Returns: An instance of `GetFlowVersionOutput`. """ - return await self._invoke(input, _models.GET_FLOW_VERSION, [], plugins) + async def get_flow_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowVersionOutput: + return await self._invoke( + self._select_input(_models.GET_FLOW_VERSION, args, kwargs), + _models.GET_FLOW_VERSION, + [], + plugins, + ) + + @_overload + async def get_ingestion_job( + self, + request: _models.GetIngestionJobInput | _models.GetIngestionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIngestionJobOutput: ... + + @_overload async def get_ingestion_job( - self, input: GetIngestionJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIngestionJobInputDict], ) -> GetIngestionJobOutput: """ Gets information about a data ingestion job. Data sources are ingested @@ -1256,8 +2034,6 @@ async def get_ingestion_job( your data. Args: - input: - An instance of `GetIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1267,17 +2043,38 @@ async def get_ingestion_job( Returns: An instance of `GetIngestionJobOutput`. """ - return await self._invoke(input, _models.GET_INGESTION_JOB, [], plugins) + async def get_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIngestionJobOutput: + return await self._invoke( + self._select_input(_models.GET_INGESTION_JOB, args, kwargs), + _models.GET_INGESTION_JOB, + [], + plugins, + ) + + @_overload async def get_knowledge_base( - self, input: GetKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + request: _models.GetKnowledgeBaseInput | _models.GetKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKnowledgeBaseOutput: ... + + @_overload + async def get_knowledge_base( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKnowledgeBaseInputDict], ) -> GetKnowledgeBaseOutput: """ Gets information about a knowledge base. Args: - input: - An instance of `GetKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1287,10 +2084,34 @@ async def get_knowledge_base( Returns: An instance of `GetKnowledgeBaseOutput`. """ - return await self._invoke(input, _models.GET_KNOWLEDGE_BASE, [], plugins) + async def get_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKnowledgeBaseOutput: + return await self._invoke( + self._select_input(_models.GET_KNOWLEDGE_BASE, args, kwargs), + _models.GET_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + async def get_knowledge_base_documents( + self, + request: _models.GetKnowledgeBaseDocumentsInput + | _models.GetKnowledgeBaseDocumentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKnowledgeBaseDocumentsOutput: ... + + @_overload async def get_knowledge_base_documents( - self, input: GetKnowledgeBaseDocumentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKnowledgeBaseDocumentsInputDict], ) -> GetKnowledgeBaseDocumentsOutput: """ Retrieves specific documents from a data source that is connected to a @@ -1300,8 +2121,6 @@ async def get_knowledge_base_documents( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetKnowledgeBaseDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1311,12 +2130,33 @@ async def get_knowledge_base_documents( Returns: An instance of `GetKnowledgeBaseDocumentsOutput`. """ + + async def get_knowledge_base_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKnowledgeBaseDocumentsOutput: return await self._invoke( - input, _models.GET_KNOWLEDGE_BASE_DOCUMENTS, [], plugins + self._select_input(_models.GET_KNOWLEDGE_BASE_DOCUMENTS, args, kwargs), + _models.GET_KNOWLEDGE_BASE_DOCUMENTS, + [], + plugins, ) + @_overload + async def get_prompt( + self, + request: _models.GetPromptInput | _models.GetPromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPromptOutput: ... + + @_overload async def get_prompt( - self, input: GetPromptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPromptInputDict], ) -> GetPromptOutput: """ Retrieves information about the working draft (`DRAFT` version) of a @@ -1329,8 +2169,6 @@ async def get_prompt( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetPromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1340,17 +2178,38 @@ async def get_prompt( Returns: An instance of `GetPromptOutput`. """ - return await self._invoke(input, _models.GET_PROMPT, [], plugins) + async def get_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPromptOutput: + return await self._invoke( + self._select_input(_models.GET_PROMPT, args, kwargs), + _models.GET_PROMPT, + [], + plugins, + ) + + @_overload + async def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the resource policy associated with a knowledge base. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1360,18 +2219,40 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def get_retrieval_instruction( + self, + request: _models.GetRetrievalInstructionInput + | _models.GetRetrievalInstructionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRetrievalInstructionOutput: ... + + @_overload async def get_retrieval_instruction( - self, input: GetRetrievalInstructionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRetrievalInstructionInputDict], ) -> GetRetrievalInstructionOutput: """ Gets a retrieval instruction. Also used to poll the terminal reporting of an asynchronous create or update. Args: - input: - An instance of `GetRetrievalInstructionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1381,10 +2262,34 @@ async def get_retrieval_instruction( Returns: An instance of `GetRetrievalInstructionOutput`. """ - return await self._invoke(input, _models.GET_RETRIEVAL_INSTRUCTION, [], plugins) + async def get_retrieval_instruction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRetrievalInstructionOutput: + return await self._invoke( + self._select_input(_models.GET_RETRIEVAL_INSTRUCTION, args, kwargs), + _models.GET_RETRIEVAL_INSTRUCTION, + [], + plugins, + ) + + @_overload + async def get_vpc_configuration( + self, + request: _models.GetVpcConfigurationInput + | _models.GetVpcConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcConfigurationOutput: ... + + @_overload async def get_vpc_configuration( - self, input: GetVpcConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpcConfigurationInputDict], ) -> GetVpcConfigurationOutput: """ Returns the details and current status of a single VPC configuration. @@ -1392,8 +2297,6 @@ async def get_vpc_configuration( delete. Args: - input: - An instance of `GetVpcConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1403,12 +2306,34 @@ async def get_vpc_configuration( Returns: An instance of `GetVpcConfigurationOutput`. """ - return await self._invoke(input, _models.GET_VPC_CONFIGURATION, [], plugins) + async def get_vpc_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcConfigurationOutput: + return await self._invoke( + self._select_input(_models.GET_VPC_CONFIGURATION, args, kwargs), + _models.GET_VPC_CONFIGURATION, + [], + plugins, + ) + + @_overload async def ingest_knowledge_base_documents( self, - input: IngestKnowledgeBaseDocumentsInput, + request: _models.IngestKnowledgeBaseDocumentsInput + | _models.IngestKnowledgeBaseDocumentsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> IngestKnowledgeBaseDocumentsOutput: ... + + @_overload + async def ingest_knowledge_base_documents( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.IngestKnowledgeBaseDocumentsInputDict], ) -> IngestKnowledgeBaseDocumentsOutput: """ Ingests documents directly into the knowledge base that is connected to @@ -1420,8 +2345,6 @@ async def ingest_knowledge_base_documents( in the Amazon Bedrock User Guide. Args: - input: - An instance of `IngestKnowledgeBaseDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1431,19 +2354,39 @@ async def ingest_knowledge_base_documents( Returns: An instance of `IngestKnowledgeBaseDocumentsOutput`. """ + + async def ingest_knowledge_base_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> IngestKnowledgeBaseDocumentsOutput: return await self._invoke( - input, _models.INGEST_KNOWLEDGE_BASE_DOCUMENTS, [], plugins + self._select_input(_models.INGEST_KNOWLEDGE_BASE_DOCUMENTS, args, kwargs), + _models.INGEST_KNOWLEDGE_BASE_DOCUMENTS, + [], + plugins, ) + @_overload + async def list_agent_action_groups( + self, + request: _models.ListAgentActionGroupsInput + | _models.ListAgentActionGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentActionGroupsOutput: ... + + @_overload async def list_agent_action_groups( - self, input: ListAgentActionGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentActionGroupsInputDict], ) -> ListAgentActionGroupsOutput: """ Lists the action groups for an agent and information about each one. Args: - input: - An instance of `ListAgentActionGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1453,17 +2396,38 @@ async def list_agent_action_groups( Returns: An instance of `ListAgentActionGroupsOutput`. """ - return await self._invoke(input, _models.LIST_AGENT_ACTION_GROUPS, [], plugins) - async def list_agent_aliases( - self, input: ListAgentAliasesInput, plugins: list[Plugin] | None = None - ) -> ListAgentAliasesOutput: - """ + async def list_agent_action_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentActionGroupsOutput: + return await self._invoke( + self._select_input(_models.LIST_AGENT_ACTION_GROUPS, args, kwargs), + _models.LIST_AGENT_ACTION_GROUPS, + [], + plugins, + ) + + @_overload + async def list_agent_aliases( + self, + request: _models.ListAgentAliasesInput | _models.ListAgentAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentAliasesOutput: ... + + @_overload + async def list_agent_aliases( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentAliasesInputDict], + ) -> ListAgentAliasesOutput: + """ Lists the aliases of an agent and information about each one. Args: - input: - An instance of `ListAgentAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1473,17 +2437,39 @@ async def list_agent_aliases( Returns: An instance of `ListAgentAliasesOutput`. """ - return await self._invoke(input, _models.LIST_AGENT_ALIASES, [], plugins) + async def list_agent_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentAliasesOutput: + return await self._invoke( + self._select_input(_models.LIST_AGENT_ALIASES, args, kwargs), + _models.LIST_AGENT_ALIASES, + [], + plugins, + ) + + @_overload async def list_agent_collaborators( - self, input: ListAgentCollaboratorsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAgentCollaboratorsInput + | _models.ListAgentCollaboratorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentCollaboratorsOutput: ... + + @_overload + async def list_agent_collaborators( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentCollaboratorsInputDict], ) -> ListAgentCollaboratorsOutput: """ Retrieve a list of an agent's collaborators. Args: - input: - An instance of `ListAgentCollaboratorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1493,18 +2479,40 @@ async def list_agent_collaborators( Returns: An instance of `ListAgentCollaboratorsOutput`. """ - return await self._invoke(input, _models.LIST_AGENT_COLLABORATORS, [], plugins) + async def list_agent_collaborators( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentCollaboratorsOutput: + return await self._invoke( + self._select_input(_models.LIST_AGENT_COLLABORATORS, args, kwargs), + _models.LIST_AGENT_COLLABORATORS, + [], + plugins, + ) + + @_overload + async def list_agent_knowledge_bases( + self, + request: _models.ListAgentKnowledgeBasesInput + | _models.ListAgentKnowledgeBasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentKnowledgeBasesOutput: ... + + @_overload async def list_agent_knowledge_bases( - self, input: ListAgentKnowledgeBasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentKnowledgeBasesInputDict], ) -> ListAgentKnowledgeBasesOutput: """ Lists knowledge bases associated with an agent and information about each one. Args: - input: - An instance of `ListAgentKnowledgeBasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1514,20 +2522,39 @@ async def list_agent_knowledge_bases( Returns: An instance of `ListAgentKnowledgeBasesOutput`. """ + + async def list_agent_knowledge_bases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentKnowledgeBasesOutput: return await self._invoke( - input, _models.LIST_AGENT_KNOWLEDGE_BASES, [], plugins + self._select_input(_models.LIST_AGENT_KNOWLEDGE_BASES, args, kwargs), + _models.LIST_AGENT_KNOWLEDGE_BASES, + [], + plugins, ) + @_overload + async def list_agents( + self, + request: _models.ListAgentsInput | _models.ListAgentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentsOutput: ... + + @_overload async def list_agents( - self, input: ListAgentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentsInputDict], ) -> ListAgentsOutput: """ Lists the agents belonging to an account and information about each agent. Args: - input: - An instance of `ListAgentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1537,17 +2564,38 @@ async def list_agents( Returns: An instance of `ListAgentsOutput`. """ - return await self._invoke(input, _models.LIST_AGENTS, [], plugins) + async def list_agents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentsOutput: + return await self._invoke( + self._select_input(_models.LIST_AGENTS, args, kwargs), + _models.LIST_AGENTS, + [], + plugins, + ) + + @_overload + async def list_agent_versions( + self, + request: _models.ListAgentVersionsInput | _models.ListAgentVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentVersionsOutput: ... + + @_overload async def list_agent_versions( - self, input: ListAgentVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentVersionsInputDict], ) -> ListAgentVersionsOutput: """ Lists the versions of an agent and information about each version. Args: - input: - An instance of `ListAgentVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1557,18 +2605,39 @@ async def list_agent_versions( Returns: An instance of `ListAgentVersionsOutput`. """ - return await self._invoke(input, _models.LIST_AGENT_VERSIONS, [], plugins) + async def list_agent_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentVersionsOutput: + return await self._invoke( + self._select_input(_models.LIST_AGENT_VERSIONS, args, kwargs), + _models.LIST_AGENT_VERSIONS, + [], + plugins, + ) + + @_overload async def list_data_sources( - self, input: ListDataSourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDataSourcesInput | _models.ListDataSourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataSourcesOutput: ... + + @_overload + async def list_data_sources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataSourcesInputDict], ) -> ListDataSourcesOutput: """ Lists the data sources in a knowledge base and information about each one. Args: - input: - An instance of `ListDataSourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1578,17 +2647,38 @@ async def list_data_sources( Returns: An instance of `ListDataSourcesOutput`. """ - return await self._invoke(input, _models.LIST_DATA_SOURCES, [], plugins) + async def list_data_sources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataSourcesOutput: + return await self._invoke( + self._select_input(_models.LIST_DATA_SOURCES, args, kwargs), + _models.LIST_DATA_SOURCES, + [], + plugins, + ) + + @_overload + async def list_flow_aliases( + self, + request: _models.ListFlowAliasesInput | _models.ListFlowAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowAliasesOutput: ... + + @_overload async def list_flow_aliases( - self, input: ListFlowAliasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowAliasesInputDict], ) -> ListFlowAliasesOutput: """ Returns a list of aliases for a flow. Args: - input: - An instance of `ListFlowAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1598,10 +2688,33 @@ async def list_flow_aliases( Returns: An instance of `ListFlowAliasesOutput`. """ - return await self._invoke(input, _models.LIST_FLOW_ALIASES, [], plugins) + async def list_flow_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowAliasesOutput: + return await self._invoke( + self._select_input(_models.LIST_FLOW_ALIASES, args, kwargs), + _models.LIST_FLOW_ALIASES, + [], + plugins, + ) + + @_overload + async def list_flows( + self, + request: _models.ListFlowsInput | _models.ListFlowsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowsOutput: ... + + @_overload async def list_flows( - self, input: ListFlowsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowsInputDict], ) -> ListFlowsOutput: """ Returns a list of flows and information about each flow. For more @@ -1610,8 +2723,6 @@ async def list_flows( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListFlowsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1621,10 +2732,33 @@ async def list_flows( Returns: An instance of `ListFlowsOutput`. """ - return await self._invoke(input, _models.LIST_FLOWS, [], plugins) + async def list_flows( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowsOutput: + return await self._invoke( + self._select_input(_models.LIST_FLOWS, args, kwargs), + _models.LIST_FLOWS, + [], + plugins, + ) + + @_overload async def list_flow_versions( - self, input: ListFlowVersionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListFlowVersionsInput | _models.ListFlowVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowVersionsOutput: ... + + @_overload + async def list_flow_versions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowVersionsInputDict], ) -> ListFlowVersionsOutput: """ Returns a list of information about each flow. For more information, see @@ -1633,8 +2767,6 @@ async def list_flow_versions( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListFlowVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1644,18 +2776,39 @@ async def list_flow_versions( Returns: An instance of `ListFlowVersionsOutput`. """ - return await self._invoke(input, _models.LIST_FLOW_VERSIONS, [], plugins) + async def list_flow_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowVersionsOutput: + return await self._invoke( + self._select_input(_models.LIST_FLOW_VERSIONS, args, kwargs), + _models.LIST_FLOW_VERSIONS, + [], + plugins, + ) + + @_overload + async def list_ingestion_jobs( + self, + request: _models.ListIngestionJobsInput | _models.ListIngestionJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIngestionJobsOutput: ... + + @_overload async def list_ingestion_jobs( - self, input: ListIngestionJobsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIngestionJobsInputDict], ) -> ListIngestionJobsOutput: """ Lists the data ingestion jobs for a data source. The list also includes information about each job. Args: - input: - An instance of `ListIngestionJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1665,12 +2818,34 @@ async def list_ingestion_jobs( Returns: An instance of `ListIngestionJobsOutput`. """ - return await self._invoke(input, _models.LIST_INGESTION_JOBS, [], plugins) + async def list_ingestion_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIngestionJobsOutput: + return await self._invoke( + self._select_input(_models.LIST_INGESTION_JOBS, args, kwargs), + _models.LIST_INGESTION_JOBS, + [], + plugins, + ) + + @_overload + async def list_knowledge_base_documents( + self, + request: _models.ListKnowledgeBaseDocumentsInput + | _models.ListKnowledgeBaseDocumentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKnowledgeBaseDocumentsOutput: ... + + @_overload async def list_knowledge_base_documents( self, - input: ListKnowledgeBaseDocumentsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKnowledgeBaseDocumentsInputDict], ) -> ListKnowledgeBaseDocumentsOutput: """ Retrieves all the documents contained in a data source that is connected @@ -1680,8 +2855,6 @@ async def list_knowledge_base_documents( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListKnowledgeBaseDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1691,20 +2864,39 @@ async def list_knowledge_base_documents( Returns: An instance of `ListKnowledgeBaseDocumentsOutput`. """ + + async def list_knowledge_base_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKnowledgeBaseDocumentsOutput: return await self._invoke( - input, _models.LIST_KNOWLEDGE_BASE_DOCUMENTS, [], plugins + self._select_input(_models.LIST_KNOWLEDGE_BASE_DOCUMENTS, args, kwargs), + _models.LIST_KNOWLEDGE_BASE_DOCUMENTS, + [], + plugins, ) + @_overload + async def list_knowledge_bases( + self, + request: _models.ListKnowledgeBasesInput | _models.ListKnowledgeBasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKnowledgeBasesOutput: ... + + @_overload async def list_knowledge_bases( - self, input: ListKnowledgeBasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKnowledgeBasesInputDict], ) -> ListKnowledgeBasesOutput: """ Lists the knowledge bases in an account. The list also includesinformation about each knowledge base. Args: - input: - An instance of `ListKnowledgeBasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1714,10 +2906,33 @@ async def list_knowledge_bases( Returns: An instance of `ListKnowledgeBasesOutput`. """ - return await self._invoke(input, _models.LIST_KNOWLEDGE_BASES, [], plugins) + async def list_knowledge_bases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKnowledgeBasesOutput: + return await self._invoke( + self._select_input(_models.LIST_KNOWLEDGE_BASES, args, kwargs), + _models.LIST_KNOWLEDGE_BASES, + [], + plugins, + ) + + @_overload + async def list_prompts( + self, + request: _models.ListPromptsInput | _models.ListPromptsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPromptsOutput: ... + + @_overload async def list_prompts( - self, input: ListPromptsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPromptsInputDict], ) -> ListPromptsOutput: """ Returns either information about the working draft (`DRAFT` version) of @@ -1729,8 +2944,6 @@ async def list_prompts( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListPromptsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1740,18 +2953,40 @@ async def list_prompts( Returns: An instance of `ListPromptsOutput`. """ - return await self._invoke(input, _models.LIST_PROMPTS, [], plugins) + async def list_prompts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPromptsOutput: + return await self._invoke( + self._select_input(_models.LIST_PROMPTS, args, kwargs), + _models.LIST_PROMPTS, + [], + plugins, + ) + + @_overload async def list_retrieval_instructions( - self, input: ListRetrievalInstructionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListRetrievalInstructionsInput + | _models.ListRetrievalInstructionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRetrievalInstructionsOutput: ... + + @_overload + async def list_retrieval_instructions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRetrievalInstructionsInputDict], ) -> ListRetrievalInstructionsOutput: """ Lists the retrieval instructions in the caller's account. Results are paginated. Use the nextToken parameter to retrieve additional results. Args: - input: - An instance of `ListRetrievalInstructionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1761,14 +2996,34 @@ async def list_retrieval_instructions( Returns: An instance of `ListRetrievalInstructionsOutput`. """ + + async def list_retrieval_instructions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRetrievalInstructionsOutput: return await self._invoke( - input, _models.LIST_RETRIEVAL_INSTRUCTIONS, [], plugins + self._select_input(_models.LIST_RETRIEVAL_INSTRUCTIONS, args, kwargs), + _models.LIST_RETRIEVAL_INSTRUCTIONS, + [], + plugins, ) + @_overload + async def list_retrieval_instruction_versions( + self, + request: _models.ListRetrievalInstructionVersionsInput + | _models.ListRetrievalInstructionVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRetrievalInstructionVersionsOutput: ... + + @_overload async def list_retrieval_instruction_versions( self, - input: ListRetrievalInstructionVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRetrievalInstructionVersionsInputDict], ) -> ListRetrievalInstructionVersionsOutput: """ Lists the numbered versions of a retrieval instruction, newest first. @@ -1777,8 +3032,6 @@ async def list_retrieval_instruction_versions( parameter to retrieve additional results. Args: - input: - An instance of `ListRetrievalInstructionVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1788,19 +3041,41 @@ async def list_retrieval_instruction_versions( Returns: An instance of `ListRetrievalInstructionVersionsOutput`. """ + + async def list_retrieval_instruction_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRetrievalInstructionVersionsOutput: return await self._invoke( - input, _models.LIST_RETRIEVAL_INSTRUCTION_VERSIONS, [], plugins + self._select_input( + _models.LIST_RETRIEVAL_INSTRUCTION_VERSIONS, args, kwargs + ), + _models.LIST_RETRIEVAL_INSTRUCTION_VERSIONS, + [], + plugins, ) + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List all the tags for the resource you specify. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1810,10 +3085,34 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def list_vpc_configurations( + self, + request: _models.ListVpcConfigurationsInput + | _models.ListVpcConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVpcConfigurationsOutput: ... + + @_overload async def list_vpc_configurations( - self, input: ListVpcConfigurationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVpcConfigurationsInputDict], ) -> ListVpcConfigurationsOutput: """ Returns a paginated list of the VPC configurations for a knowledge base. @@ -1821,8 +3120,6 @@ async def list_vpc_configurations( retrieve additional results. Args: - input: - An instance of `ListVpcConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1832,18 +3129,39 @@ async def list_vpc_configurations( Returns: An instance of `ListVpcConfigurationsOutput`. """ - return await self._invoke(input, _models.LIST_VPC_CONFIGURATIONS, [], plugins) + async def list_vpc_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVpcConfigurationsOutput: + return await self._invoke( + self._select_input(_models.LIST_VPC_CONFIGURATIONS, args, kwargs), + _models.LIST_VPC_CONFIGURATIONS, + [], + plugins, + ) + + @_overload + async def prepare_agent( + self, + request: _models.PrepareAgentInput | _models.PrepareAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PrepareAgentOutput: ... + + @_overload async def prepare_agent( - self, input: PrepareAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PrepareAgentInputDict], ) -> PrepareAgentOutput: """ Creates a `DRAFT` version of the agent that can be used for internal testing. Args: - input: - An instance of `PrepareAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1853,10 +3171,33 @@ async def prepare_agent( Returns: An instance of `PrepareAgentOutput`. """ - return await self._invoke(input, _models.PREPARE_AGENT, [], plugins) + async def prepare_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PrepareAgentOutput: + return await self._invoke( + self._select_input(_models.PREPARE_AGENT, args, kwargs), + _models.PREPARE_AGENT, + [], + plugins, + ) + + @_overload async def prepare_flow( - self, input: PrepareFlowInput, plugins: list[Plugin] | None = None + self, + request: _models.PrepareFlowInput | _models.PrepareFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PrepareFlowOutput: ... + + @_overload + async def prepare_flow( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PrepareFlowInputDict], ) -> PrepareFlowOutput: """ Prepares the `DRAFT` version of a flow so that it can be invoked. For @@ -1865,8 +3206,6 @@ async def prepare_flow( in the Amazon Bedrock User Guide. Args: - input: - An instance of `PrepareFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1876,10 +3215,33 @@ async def prepare_flow( Returns: An instance of `PrepareFlowOutput`. """ - return await self._invoke(input, _models.PREPARE_FLOW, [], plugins) + async def prepare_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PrepareFlowOutput: + return await self._invoke( + self._select_input(_models.PREPARE_FLOW, args, kwargs), + _models.PREPARE_FLOW, + [], + plugins, + ) + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload + async def put_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Associates a resource policy with a knowledge base. A resource policy @@ -1888,8 +3250,6 @@ async def put_resource_policy( bases](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-managed-cross-account.html). Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1899,18 +3259,39 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload async def start_ingestion_job( - self, input: StartIngestionJobInput, plugins: list[Plugin] | None = None + self, + request: _models.StartIngestionJobInput | _models.StartIngestionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartIngestionJobOutput: ... + + @_overload + async def start_ingestion_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartIngestionJobInputDict], ) -> StartIngestionJobOutput: """ Begins a data ingestion job. Data sources are ingested into your knowledge base so that Large Language Models (LLMs) can use your data. Args: - input: - An instance of `StartIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1920,10 +3301,33 @@ async def start_ingestion_job( Returns: An instance of `StartIngestionJobOutput`. """ - return await self._invoke(input, _models.START_INGESTION_JOB, [], plugins) + async def start_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartIngestionJobOutput: + return await self._invoke( + self._select_input(_models.START_INGESTION_JOB, args, kwargs), + _models.START_INGESTION_JOB, + [], + plugins, + ) + + @_overload + async def stop_ingestion_job( + self, + request: _models.StopIngestionJobInput | _models.StopIngestionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopIngestionJobOutput: ... + + @_overload async def stop_ingestion_job( - self, input: StopIngestionJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopIngestionJobInputDict], ) -> StopIngestionJobOutput: """ Stops a currently running data ingestion job. You can send a @@ -1931,8 +3335,6 @@ async def stop_ingestion_job( you are ready. Args: - input: - An instance of `StopIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1942,10 +3344,33 @@ async def stop_ingestion_job( Returns: An instance of `StopIngestionJobOutput`. """ - return await self._invoke(input, _models.STOP_INGESTION_JOB, [], plugins) + async def stop_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopIngestionJobOutput: + return await self._invoke( + self._select_input(_models.STOP_INGESTION_JOB, args, kwargs), + _models.STOP_INGESTION_JOB, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associate tags with a resource. For more information, see [Tagging @@ -1953,8 +3378,6 @@ async def tag_resource( in the Amazon Bedrock User Guide. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1964,17 +3387,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1984,17 +3428,38 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload async def update_agent( - self, input: UpdateAgentInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateAgentInput | _models.UpdateAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentOutput: ... + + @_overload + async def update_agent( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentInputDict], ) -> UpdateAgentOutput: """ Updates the configuration of an agent. Args: - input: - An instance of `UpdateAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2004,17 +3469,39 @@ async def update_agent( Returns: An instance of `UpdateAgentOutput`. """ - return await self._invoke(input, _models.UPDATE_AGENT, [], plugins) + async def update_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentOutput: + return await self._invoke( + self._select_input(_models.UPDATE_AGENT, args, kwargs), + _models.UPDATE_AGENT, + [], + plugins, + ) + + @_overload + async def update_agent_action_group( + self, + request: _models.UpdateAgentActionGroupInput + | _models.UpdateAgentActionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentActionGroupOutput: ... + + @_overload async def update_agent_action_group( - self, input: UpdateAgentActionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentActionGroupInputDict], ) -> UpdateAgentActionGroupOutput: """ Updates the configuration for an action group for an agent. Args: - input: - An instance of `UpdateAgentActionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2024,17 +3511,38 @@ async def update_agent_action_group( Returns: An instance of `UpdateAgentActionGroupOutput`. """ - return await self._invoke(input, _models.UPDATE_AGENT_ACTION_GROUP, [], plugins) + async def update_agent_action_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentActionGroupOutput: + return await self._invoke( + self._select_input(_models.UPDATE_AGENT_ACTION_GROUP, args, kwargs), + _models.UPDATE_AGENT_ACTION_GROUP, + [], + plugins, + ) + + @_overload + async def update_agent_alias( + self, + request: _models.UpdateAgentAliasInput | _models.UpdateAgentAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentAliasOutput: ... + + @_overload async def update_agent_alias( - self, input: UpdateAgentAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentAliasInputDict], ) -> UpdateAgentAliasOutput: """ Updates configurations for an alias of an agent. Args: - input: - An instance of `UpdateAgentAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2044,17 +3552,39 @@ async def update_agent_alias( Returns: An instance of `UpdateAgentAliasOutput`. """ - return await self._invoke(input, _models.UPDATE_AGENT_ALIAS, [], plugins) + async def update_agent_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentAliasOutput: + return await self._invoke( + self._select_input(_models.UPDATE_AGENT_ALIAS, args, kwargs), + _models.UPDATE_AGENT_ALIAS, + [], + plugins, + ) + + @_overload + async def update_agent_collaborator( + self, + request: _models.UpdateAgentCollaboratorInput + | _models.UpdateAgentCollaboratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentCollaboratorOutput: ... + + @_overload async def update_agent_collaborator( - self, input: UpdateAgentCollaboratorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentCollaboratorInputDict], ) -> UpdateAgentCollaboratorOutput: """ Updates an agent's collaborator. Args: - input: - An instance of `UpdateAgentCollaboratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2064,18 +3594,40 @@ async def update_agent_collaborator( Returns: An instance of `UpdateAgentCollaboratorOutput`. """ - return await self._invoke(input, _models.UPDATE_AGENT_COLLABORATOR, [], plugins) + async def update_agent_collaborator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentCollaboratorOutput: + return await self._invoke( + self._select_input(_models.UPDATE_AGENT_COLLABORATOR, args, kwargs), + _models.UPDATE_AGENT_COLLABORATOR, + [], + plugins, + ) + + @_overload + async def update_agent_knowledge_base( + self, + request: _models.UpdateAgentKnowledgeBaseInput + | _models.UpdateAgentKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentKnowledgeBaseOutput: ... + + @_overload async def update_agent_knowledge_base( - self, input: UpdateAgentKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentKnowledgeBaseInputDict], ) -> UpdateAgentKnowledgeBaseOutput: """ Updates the configuration for a knowledge base that has been associated with an agent. Args: - input: - An instance of `UpdateAgentKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2085,12 +3637,33 @@ async def update_agent_knowledge_base( Returns: An instance of `UpdateAgentKnowledgeBaseOutput`. """ + + async def update_agent_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentKnowledgeBaseOutput: return await self._invoke( - input, _models.UPDATE_AGENT_KNOWLEDGE_BASE, [], plugins + self._select_input(_models.UPDATE_AGENT_KNOWLEDGE_BASE, args, kwargs), + _models.UPDATE_AGENT_KNOWLEDGE_BASE, + [], + plugins, ) + @_overload + async def update_data_source( + self, + request: _models.UpdateDataSourceInput | _models.UpdateDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDataSourceOutput: ... + + @_overload async def update_data_source( - self, input: UpdateDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataSourceInputDict], ) -> UpdateDataSourceOutput: """ Updates the configurations for a data source connector. @@ -2100,8 +3673,6 @@ async def update_data_source( source connector. Specify the existing `chunkingConfiguration`. Args: - input: - An instance of `UpdateDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2111,10 +3682,33 @@ async def update_data_source( Returns: An instance of `UpdateDataSourceOutput`. """ - return await self._invoke(input, _models.UPDATE_DATA_SOURCE, [], plugins) + async def update_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataSourceOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DATA_SOURCE, args, kwargs), + _models.UPDATE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + async def update_flow( + self, + request: _models.UpdateFlowInput | _models.UpdateFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFlowOutput: ... + + @_overload async def update_flow( - self, input: UpdateFlowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFlowInputDict], ) -> UpdateFlowOutput: """ Modifies a flow. Include both fields that you want to keep and fields @@ -2125,8 +3719,6 @@ async def update_flow( in the Amazon Bedrock User Guide. Args: - input: - An instance of `UpdateFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2136,10 +3728,33 @@ async def update_flow( Returns: An instance of `UpdateFlowOutput`. """ - return await self._invoke(input, _models.UPDATE_FLOW, [], plugins) + async def update_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFlowOutput: + return await self._invoke( + self._select_input(_models.UPDATE_FLOW, args, kwargs), + _models.UPDATE_FLOW, + [], + plugins, + ) + + @_overload + async def update_flow_alias( + self, + request: _models.UpdateFlowAliasInput | _models.UpdateFlowAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFlowAliasOutput: ... + + @_overload async def update_flow_alias( - self, input: UpdateFlowAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFlowAliasInputDict], ) -> UpdateFlowAliasOutput: """ Modifies the alias of a flow. Include both fields that you want to keep @@ -2149,8 +3764,6 @@ async def update_flow_alias( in the Amazon Bedrock User Guide. Args: - input: - An instance of `UpdateFlowAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2160,10 +3773,34 @@ async def update_flow_alias( Returns: An instance of `UpdateFlowAliasOutput`. """ - return await self._invoke(input, _models.UPDATE_FLOW_ALIAS, [], plugins) + async def update_flow_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFlowAliasOutput: + return await self._invoke( + self._select_input(_models.UPDATE_FLOW_ALIAS, args, kwargs), + _models.UPDATE_FLOW_ALIAS, + [], + plugins, + ) + + @_overload + async def update_knowledge_base( + self, + request: _models.UpdateKnowledgeBaseInput + | _models.UpdateKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKnowledgeBaseOutput: ... + + @_overload async def update_knowledge_base( - self, input: UpdateKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKnowledgeBaseInputDict], ) -> UpdateKnowledgeBaseOutput: """ Updates the configuration of a knowledge base with the fields that you @@ -2185,8 +3822,6 @@ async def update_knowledge_base( request and copy the same configurations. Args: - input: - An instance of `UpdateKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2196,10 +3831,33 @@ async def update_knowledge_base( Returns: An instance of `UpdateKnowledgeBaseOutput`. """ - return await self._invoke(input, _models.UPDATE_KNOWLEDGE_BASE, [], plugins) + async def update_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKnowledgeBaseOutput: + return await self._invoke( + self._select_input(_models.UPDATE_KNOWLEDGE_BASE, args, kwargs), + _models.UPDATE_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + async def update_prompt( + self, + request: _models.UpdatePromptInput | _models.UpdatePromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePromptOutput: ... + + @_overload async def update_prompt( - self, input: UpdatePromptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePromptInputDict], ) -> UpdatePromptOutput: """ Modifies a prompt in your prompt library. Include both fields that you @@ -2211,8 +3869,6 @@ async def update_prompt( in the Amazon Bedrock User Guide. Args: - input: - An instance of `UpdatePromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2222,12 +3878,34 @@ async def update_prompt( Returns: An instance of `UpdatePromptOutput`. """ - return await self._invoke(input, _models.UPDATE_PROMPT, [], plugins) + async def update_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePromptOutput: + return await self._invoke( + self._select_input(_models.UPDATE_PROMPT, args, kwargs), + _models.UPDATE_PROMPT, + [], + plugins, + ) + + @_overload async def update_retrieval_instruction( self, - input: UpdateRetrievalInstructionInput, + request: _models.UpdateRetrievalInstructionInput + | _models.UpdateRetrievalInstructionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateRetrievalInstructionOutput: ... + + @_overload + async def update_retrieval_instruction( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRetrievalInstructionInputDict], ) -> UpdateRetrievalInstructionOutput: """ Updates the content of a retrieval instruction. The update is processed @@ -2237,8 +3915,6 @@ async def update_retrieval_instruction( lastTransitionStatus is CREATING or UPDATING. Args: - input: - An instance of `UpdateRetrievalInstructionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2248,19 +3924,39 @@ async def update_retrieval_instruction( Returns: An instance of `UpdateRetrievalInstructionOutput`. """ + + async def update_retrieval_instruction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRetrievalInstructionOutput: return await self._invoke( - input, _models.UPDATE_RETRIEVAL_INSTRUCTION, [], plugins + self._select_input(_models.UPDATE_RETRIEVAL_INSTRUCTION, args, kwargs), + _models.UPDATE_RETRIEVAL_INSTRUCTION, + [], + plugins, ) + @_overload + async def validate_flow_definition( + self, + request: _models.ValidateFlowDefinitionInput + | _models.ValidateFlowDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ValidateFlowDefinitionOutput: ... + + @_overload async def validate_flow_definition( - self, input: ValidateFlowDefinitionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ValidateFlowDefinitionInputDict], ) -> ValidateFlowDefinitionOutput: """ Validates the definition of a flow. Args: - input: - An instance of `ValidateFlowDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2270,7 +3966,16 @@ async def validate_flow_definition( Returns: An instance of `ValidateFlowDefinitionOutput`. """ - return await self._invoke(input, _models.VALIDATE_FLOW_DEFINITION, [], plugins) + + async def validate_flow_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ValidateFlowDefinitionOutput: + return await self._invoke( + self._select_input(_models.VALIDATE_FLOW_DEFINITION, args, kwargs), + _models.VALIDATE_FLOW_DEFINITION, + [], + plugins, + ) async def _new_config(self) -> AsyncBedrockAgentConfig: return await AsyncBedrockAgentConfig.resolve() diff --git a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/client.py b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/client.py index f311e372f..ea80d30c8 100644 --- a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/client.py +++ b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,177 +20,91 @@ if TYPE_CHECKING: from .models import ( - AssociateAgentCollaboratorInput, AssociateAgentCollaboratorOutput, - AssociateAgentKnowledgeBaseInput, AssociateAgentKnowledgeBaseOutput, - CreateAgentActionGroupInput, CreateAgentActionGroupOutput, - CreateAgentAliasInput, CreateAgentAliasOutput, - CreateAgentInput, CreateAgentOutput, - CreateDataSourceInput, CreateDataSourceOutput, - CreateFlowAliasInput, CreateFlowAliasOutput, - CreateFlowInput, CreateFlowOutput, - CreateFlowVersionInput, CreateFlowVersionOutput, - CreateKnowledgeBaseInput, CreateKnowledgeBaseOutput, - CreatePromptInput, CreatePromptOutput, - CreatePromptVersionInput, CreatePromptVersionOutput, - CreateRetrievalInstructionInput, CreateRetrievalInstructionOutput, - CreateRetrievalInstructionVersionInput, CreateRetrievalInstructionVersionOutput, - CreateVpcConfigurationInput, CreateVpcConfigurationOutput, - DeleteAgentActionGroupInput, DeleteAgentActionGroupOutput, - DeleteAgentAliasInput, DeleteAgentAliasOutput, - DeleteAgentInput, DeleteAgentOutput, - DeleteAgentVersionInput, DeleteAgentVersionOutput, - DeleteDataSourceInput, DeleteDataSourceOutput, - DeleteFlowAliasInput, DeleteFlowAliasOutput, - DeleteFlowInput, DeleteFlowOutput, - DeleteFlowVersionInput, DeleteFlowVersionOutput, - DeleteKnowledgeBaseDocumentsInput, DeleteKnowledgeBaseDocumentsOutput, - DeleteKnowledgeBaseInput, DeleteKnowledgeBaseOutput, - DeletePromptInput, DeletePromptOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteRetrievalInstructionInput, DeleteRetrievalInstructionOutput, - DeleteVpcConfigurationInput, DeleteVpcConfigurationOutput, - DisassociateAgentCollaboratorInput, DisassociateAgentCollaboratorOutput, - DisassociateAgentKnowledgeBaseInput, DisassociateAgentKnowledgeBaseOutput, - GetAgentActionGroupInput, GetAgentActionGroupOutput, - GetAgentAliasInput, GetAgentAliasOutput, - GetAgentCollaboratorInput, GetAgentCollaboratorOutput, - GetAgentInput, - GetAgentKnowledgeBaseInput, GetAgentKnowledgeBaseOutput, GetAgentOutput, - GetAgentVersionInput, GetAgentVersionOutput, - GetDataSourceInput, GetDataSourceOutput, - GetFlowAliasInput, GetFlowAliasOutput, - GetFlowInput, GetFlowOutput, - GetFlowVersionInput, GetFlowVersionOutput, - GetIngestionJobInput, GetIngestionJobOutput, - GetKnowledgeBaseDocumentsInput, GetKnowledgeBaseDocumentsOutput, - GetKnowledgeBaseInput, GetKnowledgeBaseOutput, - GetPromptInput, GetPromptOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetRetrievalInstructionInput, GetRetrievalInstructionOutput, - GetVpcConfigurationInput, GetVpcConfigurationOutput, - IngestKnowledgeBaseDocumentsInput, IngestKnowledgeBaseDocumentsOutput, - ListAgentActionGroupsInput, ListAgentActionGroupsOutput, - ListAgentAliasesInput, ListAgentAliasesOutput, - ListAgentCollaboratorsInput, ListAgentCollaboratorsOutput, - ListAgentKnowledgeBasesInput, ListAgentKnowledgeBasesOutput, - ListAgentVersionsInput, ListAgentVersionsOutput, - ListAgentsInput, ListAgentsOutput, - ListDataSourcesInput, ListDataSourcesOutput, - ListFlowAliasesInput, ListFlowAliasesOutput, - ListFlowVersionsInput, ListFlowVersionsOutput, - ListFlowsInput, ListFlowsOutput, - ListIngestionJobsInput, ListIngestionJobsOutput, - ListKnowledgeBaseDocumentsInput, ListKnowledgeBaseDocumentsOutput, - ListKnowledgeBasesInput, ListKnowledgeBasesOutput, - ListPromptsInput, ListPromptsOutput, - ListRetrievalInstructionVersionsInput, ListRetrievalInstructionVersionsOutput, - ListRetrievalInstructionsInput, ListRetrievalInstructionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListVpcConfigurationsInput, ListVpcConfigurationsOutput, - PrepareAgentInput, PrepareAgentOutput, - PrepareFlowInput, PrepareFlowOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - StartIngestionJobInput, StartIngestionJobOutput, - StopIngestionJobInput, StopIngestionJobOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAgentActionGroupInput, UpdateAgentActionGroupOutput, - UpdateAgentAliasInput, UpdateAgentAliasOutput, - UpdateAgentCollaboratorInput, UpdateAgentCollaboratorOutput, - UpdateAgentInput, - UpdateAgentKnowledgeBaseInput, UpdateAgentKnowledgeBaseOutput, UpdateAgentOutput, - UpdateDataSourceInput, UpdateDataSourceOutput, - UpdateFlowAliasInput, UpdateFlowAliasOutput, - UpdateFlowInput, UpdateFlowOutput, - UpdateKnowledgeBaseInput, UpdateKnowledgeBaseOutput, - UpdatePromptInput, UpdatePromptOutput, - UpdateRetrievalInstructionInput, UpdateRetrievalInstructionOutput, - ValidateFlowDefinitionInput, ValidateFlowDefinitionOutput, ) @@ -212,19 +126,30 @@ class BedrockAgentClient(Client[BedrockAgentConfig]): agents. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def associate_agent_collaborator( self, - input: AssociateAgentCollaboratorInput, + request: _models.AssociateAgentCollaboratorInput + | _models.AssociateAgentCollaboratorInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssociateAgentCollaboratorOutput: ... + + @_overload + def associate_agent_collaborator( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateAgentCollaboratorInputDict], ) -> AssociateAgentCollaboratorOutput: """ Makes an agent a collaborator for another agent. Args: - input: - An instance of `AssociateAgentCollaboratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -234,12 +159,34 @@ def associate_agent_collaborator( Returns: An instance of `AssociateAgentCollaboratorOutput`. """ - return self._invoke(input, _models.ASSOCIATE_AGENT_COLLABORATOR, [], plugins) + def associate_agent_collaborator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateAgentCollaboratorOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_AGENT_COLLABORATOR, args, kwargs), + _models.ASSOCIATE_AGENT_COLLABORATOR, + [], + plugins, + ) + + @_overload + def associate_agent_knowledge_base( + self, + request: _models.AssociateAgentKnowledgeBaseInput + | _models.AssociateAgentKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateAgentKnowledgeBaseOutput: ... + + @_overload def associate_agent_knowledge_base( self, - input: AssociateAgentKnowledgeBaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateAgentKnowledgeBaseInputDict], ) -> AssociateAgentKnowledgeBaseOutput: """ Associates a knowledge base with an agent. If a knowledge base is @@ -247,8 +194,6 @@ def associate_agent_knowledge_base( the knowledge base for information to augment its response to the user. Args: - input: - An instance of `AssociateAgentKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -258,10 +203,33 @@ def associate_agent_knowledge_base( Returns: An instance of `AssociateAgentKnowledgeBaseOutput`. """ - return self._invoke(input, _models.ASSOCIATE_AGENT_KNOWLEDGE_BASE, [], plugins) + def associate_agent_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateAgentKnowledgeBaseOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_AGENT_KNOWLEDGE_BASE, args, kwargs), + _models.ASSOCIATE_AGENT_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + def create_agent( + self, + request: _models.CreateAgentInput | _models.CreateAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentOutput: ... + + @_overload def create_agent( - self, input: CreateAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentInputDict], ) -> CreateAgentOutput: """ Note: @@ -308,8 +276,6 @@ def create_agent( input is disabled. Args: - input: - An instance of `CreateAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -319,10 +285,34 @@ def create_agent( Returns: An instance of `CreateAgentOutput`. """ - return self._invoke(input, _models.CREATE_AGENT, [], plugins) + def create_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentOutput: + return self._invoke( + self._select_input(_models.CREATE_AGENT, args, kwargs), + _models.CREATE_AGENT, + [], + plugins, + ) + + @_overload + def create_agent_action_group( + self, + request: _models.CreateAgentActionGroupInput + | _models.CreateAgentActionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentActionGroupOutput: ... + + @_overload def create_agent_action_group( - self, input: CreateAgentActionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentActionGroupInputDict], ) -> CreateAgentActionGroupOutput: """ Creates an action group for an agent. An action group represents the @@ -346,8 +336,6 @@ def create_agent_action_group( reprompting the user for more information. Args: - input: - An instance of `CreateAgentActionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -357,17 +345,38 @@ def create_agent_action_group( Returns: An instance of `CreateAgentActionGroupOutput`. """ - return self._invoke(input, _models.CREATE_AGENT_ACTION_GROUP, [], plugins) + def create_agent_action_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentActionGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_AGENT_ACTION_GROUP, args, kwargs), + _models.CREATE_AGENT_ACTION_GROUP, + [], + plugins, + ) + + @_overload def create_agent_alias( - self, input: CreateAgentAliasInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateAgentAliasInput | _models.CreateAgentAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentAliasOutput: ... + + @_overload + def create_agent_alias( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentAliasInputDict], ) -> CreateAgentAliasOutput: """ Creates an alias of an agent that can be used to deploy the agent. Args: - input: - An instance of `CreateAgentAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -377,10 +386,33 @@ def create_agent_alias( Returns: An instance of `CreateAgentAliasOutput`. """ - return self._invoke(input, _models.CREATE_AGENT_ALIAS, [], plugins) + def create_agent_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentAliasOutput: + return self._invoke( + self._select_input(_models.CREATE_AGENT_ALIAS, args, kwargs), + _models.CREATE_AGENT_ALIAS, + [], + plugins, + ) + + @_overload + def create_data_source( + self, + request: _models.CreateDataSourceInput | _models.CreateDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataSourceOutput: ... + + @_overload def create_data_source( - self, input: CreateDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataSourceInputDict], ) -> CreateDataSourceOutput: """ Connects a knowledge base to a data source. You specify the @@ -392,8 +424,6 @@ def create_data_source( source connector. Args: - input: - An instance of `CreateDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -403,10 +433,33 @@ def create_data_source( Returns: An instance of `CreateDataSourceOutput`. """ - return self._invoke(input, _models.CREATE_DATA_SOURCE, [], plugins) + def create_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataSourceOutput: + return self._invoke( + self._select_input(_models.CREATE_DATA_SOURCE, args, kwargs), + _models.CREATE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + def create_flow( + self, + request: _models.CreateFlowInput | _models.CreateFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFlowOutput: ... + + @_overload def create_flow( - self, input: CreateFlowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFlowInputDict], ) -> CreateFlowOutput: """ Creates a prompt flow that you can use to send an input through various @@ -419,8 +472,6 @@ def create_flow( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreateFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -430,10 +481,33 @@ def create_flow( Returns: An instance of `CreateFlowOutput`. """ - return self._invoke(input, _models.CREATE_FLOW, [], plugins) + def create_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFlowOutput: + return self._invoke( + self._select_input(_models.CREATE_FLOW, args, kwargs), + _models.CREATE_FLOW, + [], + plugins, + ) + + @_overload + def create_flow_alias( + self, + request: _models.CreateFlowAliasInput | _models.CreateFlowAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFlowAliasOutput: ... + + @_overload def create_flow_alias( - self, input: CreateFlowAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFlowAliasInputDict], ) -> CreateFlowAliasOutput: """ Creates an alias of a flow for deployment. For more information, see @@ -442,8 +516,6 @@ def create_flow_alias( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreateFlowAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -453,10 +525,33 @@ def create_flow_alias( Returns: An instance of `CreateFlowAliasOutput`. """ - return self._invoke(input, _models.CREATE_FLOW_ALIAS, [], plugins) + def create_flow_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFlowAliasOutput: + return self._invoke( + self._select_input(_models.CREATE_FLOW_ALIAS, args, kwargs), + _models.CREATE_FLOW_ALIAS, + [], + plugins, + ) + + @_overload + def create_flow_version( + self, + request: _models.CreateFlowVersionInput | _models.CreateFlowVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFlowVersionOutput: ... + + @_overload def create_flow_version( - self, input: CreateFlowVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFlowVersionInputDict], ) -> CreateFlowVersionOutput: """ Creates a version of the flow that you can deploy. For more information, @@ -465,8 +560,6 @@ def create_flow_version( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreateFlowVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -476,10 +569,34 @@ def create_flow_version( Returns: An instance of `CreateFlowVersionOutput`. """ - return self._invoke(input, _models.CREATE_FLOW_VERSION, [], plugins) + def create_flow_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFlowVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_FLOW_VERSION, args, kwargs), + _models.CREATE_FLOW_VERSION, + [], + plugins, + ) + + @_overload + def create_knowledge_base( + self, + request: _models.CreateKnowledgeBaseInput + | _models.CreateKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKnowledgeBaseOutput: ... + + @_overload def create_knowledge_base( - self, input: CreateKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKnowledgeBaseInputDict], ) -> CreateKnowledgeBaseOutput: """ Creates a knowledge base. A knowledge base contains your data sources so @@ -531,8 +648,6 @@ def create_knowledge_base( Cloud](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-redis.html). Args: - input: - An instance of `CreateKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -542,10 +657,33 @@ def create_knowledge_base( Returns: An instance of `CreateKnowledgeBaseOutput`. """ - return self._invoke(input, _models.CREATE_KNOWLEDGE_BASE, [], plugins) + def create_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKnowledgeBaseOutput: + return self._invoke( + self._select_input(_models.CREATE_KNOWLEDGE_BASE, args, kwargs), + _models.CREATE_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + def create_prompt( + self, + request: _models.CreatePromptInput | _models.CreatePromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePromptOutput: ... + + @_overload def create_prompt( - self, input: CreatePromptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePromptInputDict], ) -> CreatePromptOutput: """ Creates a prompt in your prompt library that you can add to a flow. For @@ -558,8 +696,6 @@ def create_prompt( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreatePromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -569,10 +705,34 @@ def create_prompt( Returns: An instance of `CreatePromptOutput`. """ - return self._invoke(input, _models.CREATE_PROMPT, [], plugins) + def create_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePromptOutput: + return self._invoke( + self._select_input(_models.CREATE_PROMPT, args, kwargs), + _models.CREATE_PROMPT, + [], + plugins, + ) + + @_overload + def create_prompt_version( + self, + request: _models.CreatePromptVersionInput + | _models.CreatePromptVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePromptVersionOutput: ... + + @_overload def create_prompt_version( - self, input: CreatePromptVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePromptVersionInputDict], ) -> CreatePromptVersionOutput: """ Creates a static snapshot of your prompt that can be deployed to @@ -582,8 +742,6 @@ def create_prompt_version( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreatePromptVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -593,12 +751,34 @@ def create_prompt_version( Returns: An instance of `CreatePromptVersionOutput`. """ - return self._invoke(input, _models.CREATE_PROMPT_VERSION, [], plugins) + def create_prompt_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePromptVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_PROMPT_VERSION, args, kwargs), + _models.CREATE_PROMPT_VERSION, + [], + plugins, + ) + + @_overload def create_retrieval_instruction( self, - input: CreateRetrievalInstructionInput, + request: _models.CreateRetrievalInstructionInput + | _models.CreateRetrievalInstructionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateRetrievalInstructionOutput: ... + + @_overload + def create_retrieval_instruction( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRetrievalInstructionInputDict], ) -> CreateRetrievalInstructionOutput: """ Creates a new retrieval instruction. The retrieval instruction is usable @@ -606,8 +786,6 @@ def create_retrieval_instruction( whether it is ready. Args: - input: - An instance of `CreateRetrievalInstructionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -617,12 +795,34 @@ def create_retrieval_instruction( Returns: An instance of `CreateRetrievalInstructionOutput`. """ - return self._invoke(input, _models.CREATE_RETRIEVAL_INSTRUCTION, [], plugins) + def create_retrieval_instruction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRetrievalInstructionOutput: + return self._invoke( + self._select_input(_models.CREATE_RETRIEVAL_INSTRUCTION, args, kwargs), + _models.CREATE_RETRIEVAL_INSTRUCTION, + [], + plugins, + ) + + @_overload + def create_retrieval_instruction_version( + self, + request: _models.CreateRetrievalInstructionVersionInput + | _models.CreateRetrievalInstructionVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRetrievalInstructionVersionOutput: ... + + @_overload def create_retrieval_instruction_version( self, - input: CreateRetrievalInstructionVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRetrievalInstructionVersionInputDict], ) -> CreateRetrievalInstructionVersionOutput: """ Creates an immutable numbered version from the retrieval instruction's @@ -632,8 +832,6 @@ def create_retrieval_instruction_version( reusing a number. Args: - input: - An instance of `CreateRetrievalInstructionVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -643,12 +841,36 @@ def create_retrieval_instruction_version( Returns: An instance of `CreateRetrievalInstructionVersionOutput`. """ + + def create_retrieval_instruction_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRetrievalInstructionVersionOutput: return self._invoke( - input, _models.CREATE_RETRIEVAL_INSTRUCTION_VERSION, [], plugins + self._select_input( + _models.CREATE_RETRIEVAL_INSTRUCTION_VERSION, args, kwargs + ), + _models.CREATE_RETRIEVAL_INSTRUCTION_VERSION, + [], + plugins, ) + @_overload def create_vpc_configuration( - self, input: CreateVpcConfigurationInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateVpcConfigurationInput + | _models.CreateVpcConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcConfigurationOutput: ... + + @_overload + def create_vpc_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcConfigurationInputDict], ) -> CreateVpcConfigurationOutput: """ Creates a VPC configuration that lets a knowledge base connect to a @@ -658,8 +880,6 @@ def create_vpc_configuration( `CREATE_FAILED`. Args: - input: - An instance of `CreateVpcConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -669,17 +889,38 @@ def create_vpc_configuration( Returns: An instance of `CreateVpcConfigurationOutput`. """ - return self._invoke(input, _models.CREATE_VPC_CONFIGURATION, [], plugins) + def create_vpc_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcConfigurationOutput: + return self._invoke( + self._select_input(_models.CREATE_VPC_CONFIGURATION, args, kwargs), + _models.CREATE_VPC_CONFIGURATION, + [], + plugins, + ) + + @_overload + def delete_agent( + self, + request: _models.DeleteAgentInput | _models.DeleteAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentOutput: ... + + @_overload def delete_agent( - self, input: DeleteAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentInputDict], ) -> DeleteAgentOutput: """ Deletes an agent. Args: - input: - An instance of `DeleteAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -689,17 +930,39 @@ def delete_agent( Returns: An instance of `DeleteAgentOutput`. """ - return self._invoke(input, _models.DELETE_AGENT, [], plugins) + def delete_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentOutput: + return self._invoke( + self._select_input(_models.DELETE_AGENT, args, kwargs), + _models.DELETE_AGENT, + [], + plugins, + ) + + @_overload + def delete_agent_action_group( + self, + request: _models.DeleteAgentActionGroupInput + | _models.DeleteAgentActionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentActionGroupOutput: ... + + @_overload def delete_agent_action_group( - self, input: DeleteAgentActionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentActionGroupInputDict], ) -> DeleteAgentActionGroupOutput: """ Deletes an action group in an agent. Args: - input: - An instance of `DeleteAgentActionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -709,17 +972,38 @@ def delete_agent_action_group( Returns: An instance of `DeleteAgentActionGroupOutput`. """ - return self._invoke(input, _models.DELETE_AGENT_ACTION_GROUP, [], plugins) + def delete_agent_action_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentActionGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_AGENT_ACTION_GROUP, args, kwargs), + _models.DELETE_AGENT_ACTION_GROUP, + [], + plugins, + ) + + @_overload + def delete_agent_alias( + self, + request: _models.DeleteAgentAliasInput | _models.DeleteAgentAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentAliasOutput: ... + + @_overload def delete_agent_alias( - self, input: DeleteAgentAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentAliasInputDict], ) -> DeleteAgentAliasOutput: """ Deletes an alias of an agent. Args: - input: - An instance of `DeleteAgentAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -729,17 +1013,38 @@ def delete_agent_alias( Returns: An instance of `DeleteAgentAliasOutput`. """ - return self._invoke(input, _models.DELETE_AGENT_ALIAS, [], plugins) + def delete_agent_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentAliasOutput: + return self._invoke( + self._select_input(_models.DELETE_AGENT_ALIAS, args, kwargs), + _models.DELETE_AGENT_ALIAS, + [], + plugins, + ) + + @_overload + def delete_agent_version( + self, + request: _models.DeleteAgentVersionInput | _models.DeleteAgentVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentVersionOutput: ... + + @_overload def delete_agent_version( - self, input: DeleteAgentVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentVersionInputDict], ) -> DeleteAgentVersionOutput: """ Deletes a version of an agent. Args: - input: - An instance of `DeleteAgentVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -749,17 +1054,38 @@ def delete_agent_version( Returns: An instance of `DeleteAgentVersionOutput`. """ - return self._invoke(input, _models.DELETE_AGENT_VERSION, [], plugins) + def delete_agent_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentVersionOutput: + return self._invoke( + self._select_input(_models.DELETE_AGENT_VERSION, args, kwargs), + _models.DELETE_AGENT_VERSION, + [], + plugins, + ) + + @_overload + def delete_data_source( + self, + request: _models.DeleteDataSourceInput | _models.DeleteDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDataSourceOutput: ... + + @_overload def delete_data_source( - self, input: DeleteDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataSourceInputDict], ) -> DeleteDataSourceOutput: """ Deletes a data source from a knowledge base. Args: - input: - An instance of `DeleteDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -769,17 +1095,38 @@ def delete_data_source( Returns: An instance of `DeleteDataSourceOutput`. """ - return self._invoke(input, _models.DELETE_DATA_SOURCE, [], plugins) + def delete_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataSourceOutput: + return self._invoke( + self._select_input(_models.DELETE_DATA_SOURCE, args, kwargs), + _models.DELETE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + def delete_flow( + self, + request: _models.DeleteFlowInput | _models.DeleteFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFlowOutput: ... + + @_overload def delete_flow( - self, input: DeleteFlowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFlowInputDict], ) -> DeleteFlowOutput: """ Deletes a flow. Args: - input: - An instance of `DeleteFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -789,17 +1136,38 @@ def delete_flow( Returns: An instance of `DeleteFlowOutput`. """ - return self._invoke(input, _models.DELETE_FLOW, [], plugins) + def delete_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFlowOutput: + return self._invoke( + self._select_input(_models.DELETE_FLOW, args, kwargs), + _models.DELETE_FLOW, + [], + plugins, + ) + + @_overload + def delete_flow_alias( + self, + request: _models.DeleteFlowAliasInput | _models.DeleteFlowAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFlowAliasOutput: ... + + @_overload def delete_flow_alias( - self, input: DeleteFlowAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFlowAliasInputDict], ) -> DeleteFlowAliasOutput: """ Deletes an alias of a flow. Args: - input: - An instance of `DeleteFlowAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -809,17 +1177,38 @@ def delete_flow_alias( Returns: An instance of `DeleteFlowAliasOutput`. """ - return self._invoke(input, _models.DELETE_FLOW_ALIAS, [], plugins) + def delete_flow_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFlowAliasOutput: + return self._invoke( + self._select_input(_models.DELETE_FLOW_ALIAS, args, kwargs), + _models.DELETE_FLOW_ALIAS, + [], + plugins, + ) + + @_overload def delete_flow_version( - self, input: DeleteFlowVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteFlowVersionInput | _models.DeleteFlowVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFlowVersionOutput: ... + + @_overload + def delete_flow_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFlowVersionInputDict], ) -> DeleteFlowVersionOutput: """ Deletes a version of a flow. Args: - input: - An instance of `DeleteFlowVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -829,10 +1218,34 @@ def delete_flow_version( Returns: An instance of `DeleteFlowVersionOutput`. """ - return self._invoke(input, _models.DELETE_FLOW_VERSION, [], plugins) + def delete_flow_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFlowVersionOutput: + return self._invoke( + self._select_input(_models.DELETE_FLOW_VERSION, args, kwargs), + _models.DELETE_FLOW_VERSION, + [], + plugins, + ) + + @_overload + def delete_knowledge_base( + self, + request: _models.DeleteKnowledgeBaseInput + | _models.DeleteKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKnowledgeBaseOutput: ... + + @_overload def delete_knowledge_base( - self, input: DeleteKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKnowledgeBaseInputDict], ) -> DeleteKnowledgeBaseOutput: """ Deletes a knowledge base. Before deleting a knowledge base, you should @@ -842,8 +1255,6 @@ def delete_knowledge_base( request. Args: - input: - An instance of `DeleteKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -853,14 +1264,36 @@ def delete_knowledge_base( Returns: An instance of `DeleteKnowledgeBaseOutput`. """ - return self._invoke(input, _models.DELETE_KNOWLEDGE_BASE, [], plugins) + def delete_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKnowledgeBaseOutput: + return self._invoke( + self._select_input(_models.DELETE_KNOWLEDGE_BASE, args, kwargs), + _models.DELETE_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload def delete_knowledge_base_documents( self, - input: DeleteKnowledgeBaseDocumentsInput, + request: _models.DeleteKnowledgeBaseDocumentsInput + | _models.DeleteKnowledgeBaseDocumentsInputDict, + /, + *, plugins: list[Plugin] | None = None, - ) -> DeleteKnowledgeBaseDocumentsOutput: - """ + ) -> DeleteKnowledgeBaseDocumentsOutput: ... + + @_overload + def delete_knowledge_base_documents( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKnowledgeBaseDocumentsInputDict], + ) -> DeleteKnowledgeBaseDocumentsOutput: + """ Deletes documents from a data source and syncs the changes to the knowledge base that is connected to it. For more information, see [Ingest changes directly into a knowledge @@ -868,8 +1301,6 @@ def delete_knowledge_base_documents( in the Amazon Bedrock User Guide. Args: - input: - An instance of `DeleteKnowledgeBaseDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -879,10 +1310,33 @@ def delete_knowledge_base_documents( Returns: An instance of `DeleteKnowledgeBaseDocumentsOutput`. """ - return self._invoke(input, _models.DELETE_KNOWLEDGE_BASE_DOCUMENTS, [], plugins) + def delete_knowledge_base_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKnowledgeBaseDocumentsOutput: + return self._invoke( + self._select_input(_models.DELETE_KNOWLEDGE_BASE_DOCUMENTS, args, kwargs), + _models.DELETE_KNOWLEDGE_BASE_DOCUMENTS, + [], + plugins, + ) + + @_overload + def delete_prompt( + self, + request: _models.DeletePromptInput | _models.DeletePromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePromptOutput: ... + + @_overload def delete_prompt( - self, input: DeletePromptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePromptInputDict], ) -> DeletePromptOutput: """ Deletes a prompt or a version of it, depending on whether you include @@ -894,8 +1348,6 @@ def delete_prompt( in the Amazon Bedrock User Guide. Args: - input: - An instance of `DeletePromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -905,10 +1357,34 @@ def delete_prompt( Returns: An instance of `DeletePromptOutput`. """ - return self._invoke(input, _models.DELETE_PROMPT, [], plugins) + def delete_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePromptOutput: + return self._invoke( + self._select_input(_models.DELETE_PROMPT, args, kwargs), + _models.DELETE_PROMPT, + [], + plugins, + ) + + @_overload + def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Removes the resource policy associated with a knowledge base. After @@ -916,8 +1392,6 @@ def delete_resource_policy( using cross-account permissions. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -927,12 +1401,34 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def delete_retrieval_instruction( self, - input: DeleteRetrievalInstructionInput, + request: _models.DeleteRetrievalInstructionInput + | _models.DeleteRetrievalInstructionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteRetrievalInstructionOutput: ... + + @_overload + def delete_retrieval_instruction( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRetrievalInstructionInputDict], ) -> DeleteRetrievalInstructionOutput: """ Deletes a retrieval instruction or a single version of it. Omit @@ -944,8 +1440,6 @@ def delete_retrieval_instruction( unaffected. Args: - input: - An instance of `DeleteRetrievalInstructionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -955,10 +1449,34 @@ def delete_retrieval_instruction( Returns: An instance of `DeleteRetrievalInstructionOutput`. """ - return self._invoke(input, _models.DELETE_RETRIEVAL_INSTRUCTION, [], plugins) + def delete_retrieval_instruction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRetrievalInstructionOutput: + return self._invoke( + self._select_input(_models.DELETE_RETRIEVAL_INSTRUCTION, args, kwargs), + _models.DELETE_RETRIEVAL_INSTRUCTION, + [], + plugins, + ) + + @_overload + def delete_vpc_configuration( + self, + request: _models.DeleteVpcConfigurationInput + | _models.DeleteVpcConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcConfigurationOutput: ... + + @_overload def delete_vpc_configuration( - self, input: DeleteVpcConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcConfigurationInputDict], ) -> DeleteVpcConfigurationOutput: """ Deletes a VPC configuration. This operation is asynchronous: it returns @@ -967,8 +1485,6 @@ def delete_vpc_configuration( Delete requests are idempotent and safe to retry. Args: - input: - An instance of `DeleteVpcConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -978,19 +1494,39 @@ def delete_vpc_configuration( Returns: An instance of `DeleteVpcConfigurationOutput`. """ - return self._invoke(input, _models.DELETE_VPC_CONFIGURATION, [], plugins) + def delete_vpc_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcConfigurationOutput: + return self._invoke( + self._select_input(_models.DELETE_VPC_CONFIGURATION, args, kwargs), + _models.DELETE_VPC_CONFIGURATION, + [], + plugins, + ) + + @_overload def disassociate_agent_collaborator( self, - input: DisassociateAgentCollaboratorInput, + request: _models.DisassociateAgentCollaboratorInput + | _models.DisassociateAgentCollaboratorInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateAgentCollaboratorOutput: ... + + @_overload + def disassociate_agent_collaborator( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateAgentCollaboratorInputDict], ) -> DisassociateAgentCollaboratorOutput: """ Disassociates an agent collaborator. Args: - input: - An instance of `DisassociateAgentCollaboratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1000,19 +1536,39 @@ def disassociate_agent_collaborator( Returns: An instance of `DisassociateAgentCollaboratorOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_AGENT_COLLABORATOR, [], plugins) + def disassociate_agent_collaborator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateAgentCollaboratorOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_AGENT_COLLABORATOR, args, kwargs), + _models.DISASSOCIATE_AGENT_COLLABORATOR, + [], + plugins, + ) + + @_overload def disassociate_agent_knowledge_base( self, - input: DisassociateAgentKnowledgeBaseInput, + request: _models.DisassociateAgentKnowledgeBaseInput + | _models.DisassociateAgentKnowledgeBaseInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateAgentKnowledgeBaseOutput: ... + + @_overload + def disassociate_agent_knowledge_base( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateAgentKnowledgeBaseInputDict], ) -> DisassociateAgentKnowledgeBaseOutput: """ Disassociates a knowledge base from an agent. Args: - input: - An instance of `DisassociateAgentKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1022,19 +1578,38 @@ def disassociate_agent_knowledge_base( Returns: An instance of `DisassociateAgentKnowledgeBaseOutput`. """ + + def disassociate_agent_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateAgentKnowledgeBaseOutput: return self._invoke( - input, _models.DISASSOCIATE_AGENT_KNOWLEDGE_BASE, [], plugins + self._select_input(_models.DISASSOCIATE_AGENT_KNOWLEDGE_BASE, args, kwargs), + _models.DISASSOCIATE_AGENT_KNOWLEDGE_BASE, + [], + plugins, ) + @_overload + def get_agent( + self, + request: _models.GetAgentInput | _models.GetAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentOutput: ... + + @_overload def get_agent( - self, input: GetAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentInputDict], ) -> GetAgentOutput: """ Gets information about an agent. Args: - input: - An instance of `GetAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1044,17 +1619,39 @@ def get_agent( Returns: An instance of `GetAgentOutput`. """ - return self._invoke(input, _models.GET_AGENT, [], plugins) + def get_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentOutput: + return self._invoke( + self._select_input(_models.GET_AGENT, args, kwargs), + _models.GET_AGENT, + [], + plugins, + ) + + @_overload def get_agent_action_group( - self, input: GetAgentActionGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAgentActionGroupInput + | _models.GetAgentActionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentActionGroupOutput: ... + + @_overload + def get_agent_action_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentActionGroupInputDict], ) -> GetAgentActionGroupOutput: """ Gets information about an action group for an agent. Args: - input: - An instance of `GetAgentActionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1064,17 +1661,38 @@ def get_agent_action_group( Returns: An instance of `GetAgentActionGroupOutput`. """ - return self._invoke(input, _models.GET_AGENT_ACTION_GROUP, [], plugins) + def get_agent_action_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentActionGroupOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_ACTION_GROUP, args, kwargs), + _models.GET_AGENT_ACTION_GROUP, + [], + plugins, + ) + + @_overload + def get_agent_alias( + self, + request: _models.GetAgentAliasInput | _models.GetAgentAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentAliasOutput: ... + + @_overload def get_agent_alias( - self, input: GetAgentAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentAliasInputDict], ) -> GetAgentAliasOutput: """ Gets information about an alias of an agent. Args: - input: - An instance of `GetAgentAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1084,17 +1702,39 @@ def get_agent_alias( Returns: An instance of `GetAgentAliasOutput`. """ - return self._invoke(input, _models.GET_AGENT_ALIAS, [], plugins) + def get_agent_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentAliasOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_ALIAS, args, kwargs), + _models.GET_AGENT_ALIAS, + [], + plugins, + ) + + @_overload def get_agent_collaborator( - self, input: GetAgentCollaboratorInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAgentCollaboratorInput + | _models.GetAgentCollaboratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentCollaboratorOutput: ... + + @_overload + def get_agent_collaborator( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentCollaboratorInputDict], ) -> GetAgentCollaboratorOutput: """ Retrieves information about an agent's collaborator. Args: - input: - An instance of `GetAgentCollaboratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1104,17 +1744,39 @@ def get_agent_collaborator( Returns: An instance of `GetAgentCollaboratorOutput`. """ - return self._invoke(input, _models.GET_AGENT_COLLABORATOR, [], plugins) + def get_agent_collaborator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentCollaboratorOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_COLLABORATOR, args, kwargs), + _models.GET_AGENT_COLLABORATOR, + [], + plugins, + ) + + @_overload + def get_agent_knowledge_base( + self, + request: _models.GetAgentKnowledgeBaseInput + | _models.GetAgentKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentKnowledgeBaseOutput: ... + + @_overload def get_agent_knowledge_base( - self, input: GetAgentKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentKnowledgeBaseInputDict], ) -> GetAgentKnowledgeBaseOutput: """ Gets information about a knowledge base associated with an agent. Args: - input: - An instance of `GetAgentKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1124,17 +1786,38 @@ def get_agent_knowledge_base( Returns: An instance of `GetAgentKnowledgeBaseOutput`. """ - return self._invoke(input, _models.GET_AGENT_KNOWLEDGE_BASE, [], plugins) + def get_agent_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentKnowledgeBaseOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_KNOWLEDGE_BASE, args, kwargs), + _models.GET_AGENT_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload def get_agent_version( - self, input: GetAgentVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAgentVersionInput | _models.GetAgentVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentVersionOutput: ... + + @_overload + def get_agent_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentVersionInputDict], ) -> GetAgentVersionOutput: """ Gets details about a version of an agent. Args: - input: - An instance of `GetAgentVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1144,17 +1827,38 @@ def get_agent_version( Returns: An instance of `GetAgentVersionOutput`. """ - return self._invoke(input, _models.GET_AGENT_VERSION, [], plugins) + def get_agent_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentVersionOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_VERSION, args, kwargs), + _models.GET_AGENT_VERSION, + [], + plugins, + ) + + @_overload + def get_data_source( + self, + request: _models.GetDataSourceInput | _models.GetDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataSourceOutput: ... + + @_overload def get_data_source( - self, input: GetDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataSourceInputDict], ) -> GetDataSourceOutput: """ Gets information about a data source. Args: - input: - An instance of `GetDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1164,10 +1868,33 @@ def get_data_source( Returns: An instance of `GetDataSourceOutput`. """ - return self._invoke(input, _models.GET_DATA_SOURCE, [], plugins) + def get_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataSourceOutput: + return self._invoke( + self._select_input(_models.GET_DATA_SOURCE, args, kwargs), + _models.GET_DATA_SOURCE, + [], + plugins, + ) + + @_overload def get_flow( - self, input: GetFlowInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFlowInput | _models.GetFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowOutput: ... + + @_overload + def get_flow( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowInputDict], ) -> GetFlowOutput: """ Retrieves information about a flow. For more information, see [Manage a @@ -1176,8 +1903,6 @@ def get_flow( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1187,10 +1912,33 @@ def get_flow( Returns: An instance of `GetFlowOutput`. """ - return self._invoke(input, _models.GET_FLOW, [], plugins) + def get_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowOutput: + return self._invoke( + self._select_input(_models.GET_FLOW, args, kwargs), + _models.GET_FLOW, + [], + plugins, + ) + + @_overload def get_flow_alias( - self, input: GetFlowAliasInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFlowAliasInput | _models.GetFlowAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowAliasOutput: ... + + @_overload + def get_flow_alias( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowAliasInputDict], ) -> GetFlowAliasOutput: """ Retrieves information about a flow. For more information, see [Deploy a @@ -1199,8 +1947,6 @@ def get_flow_alias( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetFlowAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1210,10 +1956,33 @@ def get_flow_alias( Returns: An instance of `GetFlowAliasOutput`. """ - return self._invoke(input, _models.GET_FLOW_ALIAS, [], plugins) + def get_flow_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowAliasOutput: + return self._invoke( + self._select_input(_models.GET_FLOW_ALIAS, args, kwargs), + _models.GET_FLOW_ALIAS, + [], + plugins, + ) + + @_overload + def get_flow_version( + self, + request: _models.GetFlowVersionInput | _models.GetFlowVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowVersionOutput: ... + + @_overload def get_flow_version( - self, input: GetFlowVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowVersionInputDict], ) -> GetFlowVersionOutput: """ Retrieves information about a version of a flow. For more information, @@ -1222,8 +1991,6 @@ def get_flow_version( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetFlowVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1233,10 +2000,33 @@ def get_flow_version( Returns: An instance of `GetFlowVersionOutput`. """ - return self._invoke(input, _models.GET_FLOW_VERSION, [], plugins) + def get_flow_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowVersionOutput: + return self._invoke( + self._select_input(_models.GET_FLOW_VERSION, args, kwargs), + _models.GET_FLOW_VERSION, + [], + plugins, + ) + + @_overload def get_ingestion_job( - self, input: GetIngestionJobInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIngestionJobInput | _models.GetIngestionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIngestionJobOutput: ... + + @_overload + def get_ingestion_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIngestionJobInputDict], ) -> GetIngestionJobOutput: """ Gets information about a data ingestion job. Data sources are ingested @@ -1244,8 +2034,6 @@ def get_ingestion_job( your data. Args: - input: - An instance of `GetIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1255,17 +2043,38 @@ def get_ingestion_job( Returns: An instance of `GetIngestionJobOutput`. """ - return self._invoke(input, _models.GET_INGESTION_JOB, [], plugins) + def get_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIngestionJobOutput: + return self._invoke( + self._select_input(_models.GET_INGESTION_JOB, args, kwargs), + _models.GET_INGESTION_JOB, + [], + plugins, + ) + + @_overload def get_knowledge_base( - self, input: GetKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + request: _models.GetKnowledgeBaseInput | _models.GetKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKnowledgeBaseOutput: ... + + @_overload + def get_knowledge_base( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKnowledgeBaseInputDict], ) -> GetKnowledgeBaseOutput: """ Gets information about a knowledge base. Args: - input: - An instance of `GetKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1275,10 +2084,34 @@ def get_knowledge_base( Returns: An instance of `GetKnowledgeBaseOutput`. """ - return self._invoke(input, _models.GET_KNOWLEDGE_BASE, [], plugins) + def get_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKnowledgeBaseOutput: + return self._invoke( + self._select_input(_models.GET_KNOWLEDGE_BASE, args, kwargs), + _models.GET_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + def get_knowledge_base_documents( + self, + request: _models.GetKnowledgeBaseDocumentsInput + | _models.GetKnowledgeBaseDocumentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKnowledgeBaseDocumentsOutput: ... + + @_overload def get_knowledge_base_documents( - self, input: GetKnowledgeBaseDocumentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKnowledgeBaseDocumentsInputDict], ) -> GetKnowledgeBaseDocumentsOutput: """ Retrieves specific documents from a data source that is connected to a @@ -1288,8 +2121,6 @@ def get_knowledge_base_documents( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetKnowledgeBaseDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1299,10 +2130,33 @@ def get_knowledge_base_documents( Returns: An instance of `GetKnowledgeBaseDocumentsOutput`. """ - return self._invoke(input, _models.GET_KNOWLEDGE_BASE_DOCUMENTS, [], plugins) + def get_knowledge_base_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKnowledgeBaseDocumentsOutput: + return self._invoke( + self._select_input(_models.GET_KNOWLEDGE_BASE_DOCUMENTS, args, kwargs), + _models.GET_KNOWLEDGE_BASE_DOCUMENTS, + [], + plugins, + ) + + @_overload + def get_prompt( + self, + request: _models.GetPromptInput | _models.GetPromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPromptOutput: ... + + @_overload def get_prompt( - self, input: GetPromptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPromptInputDict], ) -> GetPromptOutput: """ Retrieves information about the working draft (`DRAFT` version) of a @@ -1315,8 +2169,6 @@ def get_prompt( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetPromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1326,17 +2178,38 @@ def get_prompt( Returns: An instance of `GetPromptOutput`. """ - return self._invoke(input, _models.GET_PROMPT, [], plugins) + def get_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPromptOutput: + return self._invoke( + self._select_input(_models.GET_PROMPT, args, kwargs), + _models.GET_PROMPT, + [], + plugins, + ) + + @_overload + def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the resource policy associated with a knowledge base. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1346,18 +2219,40 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def get_retrieval_instruction( - self, input: GetRetrievalInstructionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRetrievalInstructionInput + | _models.GetRetrievalInstructionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRetrievalInstructionOutput: ... + + @_overload + def get_retrieval_instruction( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRetrievalInstructionInputDict], ) -> GetRetrievalInstructionOutput: """ Gets a retrieval instruction. Also used to poll the terminal reporting of an asynchronous create or update. Args: - input: - An instance of `GetRetrievalInstructionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1367,10 +2262,34 @@ def get_retrieval_instruction( Returns: An instance of `GetRetrievalInstructionOutput`. """ - return self._invoke(input, _models.GET_RETRIEVAL_INSTRUCTION, [], plugins) + def get_retrieval_instruction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRetrievalInstructionOutput: + return self._invoke( + self._select_input(_models.GET_RETRIEVAL_INSTRUCTION, args, kwargs), + _models.GET_RETRIEVAL_INSTRUCTION, + [], + plugins, + ) + + @_overload + def get_vpc_configuration( + self, + request: _models.GetVpcConfigurationInput + | _models.GetVpcConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcConfigurationOutput: ... + + @_overload def get_vpc_configuration( - self, input: GetVpcConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpcConfigurationInputDict], ) -> GetVpcConfigurationOutput: """ Returns the details and current status of a single VPC configuration. @@ -1378,8 +2297,6 @@ def get_vpc_configuration( delete. Args: - input: - An instance of `GetVpcConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1389,12 +2306,34 @@ def get_vpc_configuration( Returns: An instance of `GetVpcConfigurationOutput`. """ - return self._invoke(input, _models.GET_VPC_CONFIGURATION, [], plugins) + def get_vpc_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcConfigurationOutput: + return self._invoke( + self._select_input(_models.GET_VPC_CONFIGURATION, args, kwargs), + _models.GET_VPC_CONFIGURATION, + [], + plugins, + ) + + @_overload + def ingest_knowledge_base_documents( + self, + request: _models.IngestKnowledgeBaseDocumentsInput + | _models.IngestKnowledgeBaseDocumentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> IngestKnowledgeBaseDocumentsOutput: ... + + @_overload def ingest_knowledge_base_documents( self, - input: IngestKnowledgeBaseDocumentsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.IngestKnowledgeBaseDocumentsInputDict], ) -> IngestKnowledgeBaseDocumentsOutput: """ Ingests documents directly into the knowledge base that is connected to @@ -1406,8 +2345,6 @@ def ingest_knowledge_base_documents( in the Amazon Bedrock User Guide. Args: - input: - An instance of `IngestKnowledgeBaseDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1417,17 +2354,39 @@ def ingest_knowledge_base_documents( Returns: An instance of `IngestKnowledgeBaseDocumentsOutput`. """ - return self._invoke(input, _models.INGEST_KNOWLEDGE_BASE_DOCUMENTS, [], plugins) + def ingest_knowledge_base_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> IngestKnowledgeBaseDocumentsOutput: + return self._invoke( + self._select_input(_models.INGEST_KNOWLEDGE_BASE_DOCUMENTS, args, kwargs), + _models.INGEST_KNOWLEDGE_BASE_DOCUMENTS, + [], + plugins, + ) + + @_overload def list_agent_action_groups( - self, input: ListAgentActionGroupsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAgentActionGroupsInput + | _models.ListAgentActionGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentActionGroupsOutput: ... + + @_overload + def list_agent_action_groups( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentActionGroupsInputDict], ) -> ListAgentActionGroupsOutput: """ Lists the action groups for an agent and information about each one. Args: - input: - An instance of `ListAgentActionGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1437,17 +2396,38 @@ def list_agent_action_groups( Returns: An instance of `ListAgentActionGroupsOutput`. """ - return self._invoke(input, _models.LIST_AGENT_ACTION_GROUPS, [], plugins) + def list_agent_action_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentActionGroupsOutput: + return self._invoke( + self._select_input(_models.LIST_AGENT_ACTION_GROUPS, args, kwargs), + _models.LIST_AGENT_ACTION_GROUPS, + [], + plugins, + ) + + @_overload + def list_agent_aliases( + self, + request: _models.ListAgentAliasesInput | _models.ListAgentAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentAliasesOutput: ... + + @_overload def list_agent_aliases( - self, input: ListAgentAliasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentAliasesInputDict], ) -> ListAgentAliasesOutput: """ Lists the aliases of an agent and information about each one. Args: - input: - An instance of `ListAgentAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1457,17 +2437,39 @@ def list_agent_aliases( Returns: An instance of `ListAgentAliasesOutput`. """ - return self._invoke(input, _models.LIST_AGENT_ALIASES, [], plugins) + def list_agent_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentAliasesOutput: + return self._invoke( + self._select_input(_models.LIST_AGENT_ALIASES, args, kwargs), + _models.LIST_AGENT_ALIASES, + [], + plugins, + ) + + @_overload + def list_agent_collaborators( + self, + request: _models.ListAgentCollaboratorsInput + | _models.ListAgentCollaboratorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentCollaboratorsOutput: ... + + @_overload def list_agent_collaborators( - self, input: ListAgentCollaboratorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentCollaboratorsInputDict], ) -> ListAgentCollaboratorsOutput: """ Retrieve a list of an agent's collaborators. Args: - input: - An instance of `ListAgentCollaboratorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1477,18 +2479,40 @@ def list_agent_collaborators( Returns: An instance of `ListAgentCollaboratorsOutput`. """ - return self._invoke(input, _models.LIST_AGENT_COLLABORATORS, [], plugins) + def list_agent_collaborators( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentCollaboratorsOutput: + return self._invoke( + self._select_input(_models.LIST_AGENT_COLLABORATORS, args, kwargs), + _models.LIST_AGENT_COLLABORATORS, + [], + plugins, + ) + + @_overload + def list_agent_knowledge_bases( + self, + request: _models.ListAgentKnowledgeBasesInput + | _models.ListAgentKnowledgeBasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentKnowledgeBasesOutput: ... + + @_overload def list_agent_knowledge_bases( - self, input: ListAgentKnowledgeBasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentKnowledgeBasesInputDict], ) -> ListAgentKnowledgeBasesOutput: """ Lists knowledge bases associated with an agent and information about each one. Args: - input: - An instance of `ListAgentKnowledgeBasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1498,18 +2522,39 @@ def list_agent_knowledge_bases( Returns: An instance of `ListAgentKnowledgeBasesOutput`. """ - return self._invoke(input, _models.LIST_AGENT_KNOWLEDGE_BASES, [], plugins) + def list_agent_knowledge_bases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentKnowledgeBasesOutput: + return self._invoke( + self._select_input(_models.LIST_AGENT_KNOWLEDGE_BASES, args, kwargs), + _models.LIST_AGENT_KNOWLEDGE_BASES, + [], + plugins, + ) + + @_overload def list_agents( - self, input: ListAgentsInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListAgentsInput | _models.ListAgentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentsOutput: ... + + @_overload + def list_agents( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentsInputDict], ) -> ListAgentsOutput: """ Lists the agents belonging to an account and information about each agent. Args: - input: - An instance of `ListAgentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1519,17 +2564,38 @@ def list_agents( Returns: An instance of `ListAgentsOutput`. """ - return self._invoke(input, _models.LIST_AGENTS, [], plugins) + def list_agents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentsOutput: + return self._invoke( + self._select_input(_models.LIST_AGENTS, args, kwargs), + _models.LIST_AGENTS, + [], + plugins, + ) + + @_overload def list_agent_versions( - self, input: ListAgentVersionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAgentVersionsInput | _models.ListAgentVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentVersionsOutput: ... + + @_overload + def list_agent_versions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentVersionsInputDict], ) -> ListAgentVersionsOutput: """ Lists the versions of an agent and information about each version. Args: - input: - An instance of `ListAgentVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1539,18 +2605,39 @@ def list_agent_versions( Returns: An instance of `ListAgentVersionsOutput`. """ - return self._invoke(input, _models.LIST_AGENT_VERSIONS, [], plugins) + def list_agent_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_AGENT_VERSIONS, args, kwargs), + _models.LIST_AGENT_VERSIONS, + [], + plugins, + ) + + @_overload def list_data_sources( - self, input: ListDataSourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDataSourcesInput | _models.ListDataSourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataSourcesOutput: ... + + @_overload + def list_data_sources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataSourcesInputDict], ) -> ListDataSourcesOutput: """ Lists the data sources in a knowledge base and information about each one. Args: - input: - An instance of `ListDataSourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1560,17 +2647,38 @@ def list_data_sources( Returns: An instance of `ListDataSourcesOutput`. """ - return self._invoke(input, _models.LIST_DATA_SOURCES, [], plugins) + def list_data_sources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataSourcesOutput: + return self._invoke( + self._select_input(_models.LIST_DATA_SOURCES, args, kwargs), + _models.LIST_DATA_SOURCES, + [], + plugins, + ) + + @_overload def list_flow_aliases( - self, input: ListFlowAliasesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListFlowAliasesInput | _models.ListFlowAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowAliasesOutput: ... + + @_overload + def list_flow_aliases( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowAliasesInputDict], ) -> ListFlowAliasesOutput: """ Returns a list of aliases for a flow. Args: - input: - An instance of `ListFlowAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1580,10 +2688,33 @@ def list_flow_aliases( Returns: An instance of `ListFlowAliasesOutput`. """ - return self._invoke(input, _models.LIST_FLOW_ALIASES, [], plugins) + def list_flow_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowAliasesOutput: + return self._invoke( + self._select_input(_models.LIST_FLOW_ALIASES, args, kwargs), + _models.LIST_FLOW_ALIASES, + [], + plugins, + ) + + @_overload def list_flows( - self, input: ListFlowsInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListFlowsInput | _models.ListFlowsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowsOutput: ... + + @_overload + def list_flows( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowsInputDict], ) -> ListFlowsOutput: """ Returns a list of flows and information about each flow. For more @@ -1592,8 +2723,6 @@ def list_flows( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListFlowsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1603,10 +2732,33 @@ def list_flows( Returns: An instance of `ListFlowsOutput`. """ - return self._invoke(input, _models.LIST_FLOWS, [], plugins) + def list_flows( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowsOutput: + return self._invoke( + self._select_input(_models.LIST_FLOWS, args, kwargs), + _models.LIST_FLOWS, + [], + plugins, + ) + + @_overload def list_flow_versions( - self, input: ListFlowVersionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListFlowVersionsInput | _models.ListFlowVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFlowVersionsOutput: ... + + @_overload + def list_flow_versions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFlowVersionsInputDict], ) -> ListFlowVersionsOutput: """ Returns a list of information about each flow. For more information, see @@ -1615,8 +2767,6 @@ def list_flow_versions( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListFlowVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1626,18 +2776,39 @@ def list_flow_versions( Returns: An instance of `ListFlowVersionsOutput`. """ - return self._invoke(input, _models.LIST_FLOW_VERSIONS, [], plugins) + def list_flow_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFlowVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_FLOW_VERSIONS, args, kwargs), + _models.LIST_FLOW_VERSIONS, + [], + plugins, + ) + + @_overload + def list_ingestion_jobs( + self, + request: _models.ListIngestionJobsInput | _models.ListIngestionJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIngestionJobsOutput: ... + + @_overload def list_ingestion_jobs( - self, input: ListIngestionJobsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIngestionJobsInputDict], ) -> ListIngestionJobsOutput: """ Lists the data ingestion jobs for a data source. The list also includes information about each job. Args: - input: - An instance of `ListIngestionJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1647,12 +2818,34 @@ def list_ingestion_jobs( Returns: An instance of `ListIngestionJobsOutput`. """ - return self._invoke(input, _models.LIST_INGESTION_JOBS, [], plugins) + def list_ingestion_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIngestionJobsOutput: + return self._invoke( + self._select_input(_models.LIST_INGESTION_JOBS, args, kwargs), + _models.LIST_INGESTION_JOBS, + [], + plugins, + ) + + @_overload def list_knowledge_base_documents( self, - input: ListKnowledgeBaseDocumentsInput, + request: _models.ListKnowledgeBaseDocumentsInput + | _models.ListKnowledgeBaseDocumentsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListKnowledgeBaseDocumentsOutput: ... + + @_overload + def list_knowledge_base_documents( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKnowledgeBaseDocumentsInputDict], ) -> ListKnowledgeBaseDocumentsOutput: """ Retrieves all the documents contained in a data source that is connected @@ -1662,8 +2855,6 @@ def list_knowledge_base_documents( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListKnowledgeBaseDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1673,20 +2864,39 @@ def list_knowledge_base_documents( Returns: An instance of `ListKnowledgeBaseDocumentsOutput`. """ - return self._invoke(input, _models.LIST_KNOWLEDGE_BASE_DOCUMENTS, [], plugins) + def list_knowledge_base_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKnowledgeBaseDocumentsOutput: + return self._invoke( + self._select_input(_models.LIST_KNOWLEDGE_BASE_DOCUMENTS, args, kwargs), + _models.LIST_KNOWLEDGE_BASE_DOCUMENTS, + [], + plugins, + ) + + @_overload + def list_knowledge_bases( + self, + request: _models.ListKnowledgeBasesInput | _models.ListKnowledgeBasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKnowledgeBasesOutput: ... + + @_overload def list_knowledge_bases( self, - input: ListKnowledgeBasesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKnowledgeBasesInputDict], ) -> ListKnowledgeBasesOutput: """ Lists the knowledge bases in an account. The list also includesinformation about each knowledge base. Args: - input: - An instance of `ListKnowledgeBasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1696,10 +2906,33 @@ def list_knowledge_bases( Returns: An instance of `ListKnowledgeBasesOutput`. """ - return self._invoke(input, _models.LIST_KNOWLEDGE_BASES, [], plugins) + def list_knowledge_bases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKnowledgeBasesOutput: + return self._invoke( + self._select_input(_models.LIST_KNOWLEDGE_BASES, args, kwargs), + _models.LIST_KNOWLEDGE_BASES, + [], + plugins, + ) + + @_overload def list_prompts( - self, input: ListPromptsInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListPromptsInput | _models.ListPromptsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPromptsOutput: ... + + @_overload + def list_prompts( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPromptsInputDict], ) -> ListPromptsOutput: """ Returns either information about the working draft (`DRAFT` version) of @@ -1711,8 +2944,6 @@ def list_prompts( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListPromptsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1722,20 +2953,40 @@ def list_prompts( Returns: An instance of `ListPromptsOutput`. """ - return self._invoke(input, _models.LIST_PROMPTS, [], plugins) + def list_prompts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPromptsOutput: + return self._invoke( + self._select_input(_models.LIST_PROMPTS, args, kwargs), + _models.LIST_PROMPTS, + [], + plugins, + ) + + @_overload + def list_retrieval_instructions( + self, + request: _models.ListRetrievalInstructionsInput + | _models.ListRetrievalInstructionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRetrievalInstructionsOutput: ... + + @_overload def list_retrieval_instructions( self, - input: ListRetrievalInstructionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRetrievalInstructionsInputDict], ) -> ListRetrievalInstructionsOutput: """ Lists the retrieval instructions in the caller's account. Results are paginated. Use the nextToken parameter to retrieve additional results. Args: - input: - An instance of `ListRetrievalInstructionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1745,12 +2996,34 @@ def list_retrieval_instructions( Returns: An instance of `ListRetrievalInstructionsOutput`. """ - return self._invoke(input, _models.LIST_RETRIEVAL_INSTRUCTIONS, [], plugins) + def list_retrieval_instructions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRetrievalInstructionsOutput: + return self._invoke( + self._select_input(_models.LIST_RETRIEVAL_INSTRUCTIONS, args, kwargs), + _models.LIST_RETRIEVAL_INSTRUCTIONS, + [], + plugins, + ) + + @_overload + def list_retrieval_instruction_versions( + self, + request: _models.ListRetrievalInstructionVersionsInput + | _models.ListRetrievalInstructionVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRetrievalInstructionVersionsOutput: ... + + @_overload def list_retrieval_instruction_versions( self, - input: ListRetrievalInstructionVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRetrievalInstructionVersionsInputDict], ) -> ListRetrievalInstructionVersionsOutput: """ Lists the numbered versions of a retrieval instruction, newest first. @@ -1759,8 +3032,6 @@ def list_retrieval_instruction_versions( parameter to retrieve additional results. Args: - input: - An instance of `ListRetrievalInstructionVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1770,19 +3041,41 @@ def list_retrieval_instruction_versions( Returns: An instance of `ListRetrievalInstructionVersionsOutput`. """ + + def list_retrieval_instruction_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRetrievalInstructionVersionsOutput: return self._invoke( - input, _models.LIST_RETRIEVAL_INSTRUCTION_VERSIONS, [], plugins + self._select_input( + _models.LIST_RETRIEVAL_INSTRUCTION_VERSIONS, args, kwargs + ), + _models.LIST_RETRIEVAL_INSTRUCTION_VERSIONS, + [], + plugins, ) + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List all the tags for the resource you specify. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1792,10 +3085,34 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def list_vpc_configurations( + self, + request: _models.ListVpcConfigurationsInput + | _models.ListVpcConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVpcConfigurationsOutput: ... + + @_overload def list_vpc_configurations( - self, input: ListVpcConfigurationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVpcConfigurationsInputDict], ) -> ListVpcConfigurationsOutput: """ Returns a paginated list of the VPC configurations for a knowledge base. @@ -1803,8 +3120,6 @@ def list_vpc_configurations( retrieve additional results. Args: - input: - An instance of `ListVpcConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1814,18 +3129,39 @@ def list_vpc_configurations( Returns: An instance of `ListVpcConfigurationsOutput`. """ - return self._invoke(input, _models.LIST_VPC_CONFIGURATIONS, [], plugins) + def list_vpc_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVpcConfigurationsOutput: + return self._invoke( + self._select_input(_models.LIST_VPC_CONFIGURATIONS, args, kwargs), + _models.LIST_VPC_CONFIGURATIONS, + [], + plugins, + ) + + @_overload + def prepare_agent( + self, + request: _models.PrepareAgentInput | _models.PrepareAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PrepareAgentOutput: ... + + @_overload def prepare_agent( - self, input: PrepareAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PrepareAgentInputDict], ) -> PrepareAgentOutput: """ Creates a `DRAFT` version of the agent that can be used for internal testing. Args: - input: - An instance of `PrepareAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1835,10 +3171,33 @@ def prepare_agent( Returns: An instance of `PrepareAgentOutput`. """ - return self._invoke(input, _models.PREPARE_AGENT, [], plugins) + def prepare_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PrepareAgentOutput: + return self._invoke( + self._select_input(_models.PREPARE_AGENT, args, kwargs), + _models.PREPARE_AGENT, + [], + plugins, + ) + + @_overload + def prepare_flow( + self, + request: _models.PrepareFlowInput | _models.PrepareFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PrepareFlowOutput: ... + + @_overload def prepare_flow( - self, input: PrepareFlowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PrepareFlowInputDict], ) -> PrepareFlowOutput: """ Prepares the `DRAFT` version of a flow so that it can be invoked. For @@ -1847,8 +3206,6 @@ def prepare_flow( in the Amazon Bedrock User Guide. Args: - input: - An instance of `PrepareFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1858,10 +3215,33 @@ def prepare_flow( Returns: An instance of `PrepareFlowOutput`. """ - return self._invoke(input, _models.PREPARE_FLOW, [], plugins) + def prepare_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PrepareFlowOutput: + return self._invoke( + self._select_input(_models.PREPARE_FLOW, args, kwargs), + _models.PREPARE_FLOW, + [], + plugins, + ) + + @_overload + def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Associates a resource policy with a knowledge base. A resource policy @@ -1870,8 +3250,6 @@ def put_resource_policy( bases](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-managed-cross-account.html). Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1881,18 +3259,39 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def start_ingestion_job( + self, + request: _models.StartIngestionJobInput | _models.StartIngestionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartIngestionJobOutput: ... + + @_overload def start_ingestion_job( - self, input: StartIngestionJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartIngestionJobInputDict], ) -> StartIngestionJobOutput: """ Begins a data ingestion job. Data sources are ingested into your knowledge base so that Large Language Models (LLMs) can use your data. Args: - input: - An instance of `StartIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1902,10 +3301,33 @@ def start_ingestion_job( Returns: An instance of `StartIngestionJobOutput`. """ - return self._invoke(input, _models.START_INGESTION_JOB, [], plugins) + def start_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartIngestionJobOutput: + return self._invoke( + self._select_input(_models.START_INGESTION_JOB, args, kwargs), + _models.START_INGESTION_JOB, + [], + plugins, + ) + + @_overload + def stop_ingestion_job( + self, + request: _models.StopIngestionJobInput | _models.StopIngestionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopIngestionJobOutput: ... + + @_overload def stop_ingestion_job( - self, input: StopIngestionJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopIngestionJobInputDict], ) -> StopIngestionJobOutput: """ Stops a currently running data ingestion job. You can send a @@ -1913,8 +3335,6 @@ def stop_ingestion_job( you are ready. Args: - input: - An instance of `StopIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1924,10 +3344,33 @@ def stop_ingestion_job( Returns: An instance of `StopIngestionJobOutput`. """ - return self._invoke(input, _models.STOP_INGESTION_JOB, [], plugins) + def stop_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopIngestionJobOutput: + return self._invoke( + self._select_input(_models.STOP_INGESTION_JOB, args, kwargs), + _models.STOP_INGESTION_JOB, + [], + plugins, + ) + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associate tags with a resource. For more information, see [Tagging @@ -1935,8 +3378,6 @@ def tag_resource( in the Amazon Bedrock User Guide. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1946,17 +3387,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1966,17 +3428,38 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_agent( + self, + request: _models.UpdateAgentInput | _models.UpdateAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentOutput: ... + + @_overload def update_agent( - self, input: UpdateAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentInputDict], ) -> UpdateAgentOutput: """ Updates the configuration of an agent. Args: - input: - An instance of `UpdateAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1986,17 +3469,39 @@ def update_agent( Returns: An instance of `UpdateAgentOutput`. """ - return self._invoke(input, _models.UPDATE_AGENT, [], plugins) + def update_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentOutput: + return self._invoke( + self._select_input(_models.UPDATE_AGENT, args, kwargs), + _models.UPDATE_AGENT, + [], + plugins, + ) + + @_overload + def update_agent_action_group( + self, + request: _models.UpdateAgentActionGroupInput + | _models.UpdateAgentActionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentActionGroupOutput: ... + + @_overload def update_agent_action_group( - self, input: UpdateAgentActionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentActionGroupInputDict], ) -> UpdateAgentActionGroupOutput: """ Updates the configuration for an action group for an agent. Args: - input: - An instance of `UpdateAgentActionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2006,17 +3511,38 @@ def update_agent_action_group( Returns: An instance of `UpdateAgentActionGroupOutput`. """ - return self._invoke(input, _models.UPDATE_AGENT_ACTION_GROUP, [], plugins) + def update_agent_action_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentActionGroupOutput: + return self._invoke( + self._select_input(_models.UPDATE_AGENT_ACTION_GROUP, args, kwargs), + _models.UPDATE_AGENT_ACTION_GROUP, + [], + plugins, + ) + + @_overload + def update_agent_alias( + self, + request: _models.UpdateAgentAliasInput | _models.UpdateAgentAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentAliasOutput: ... + + @_overload def update_agent_alias( - self, input: UpdateAgentAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentAliasInputDict], ) -> UpdateAgentAliasOutput: """ Updates configurations for an alias of an agent. Args: - input: - An instance of `UpdateAgentAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2026,17 +3552,39 @@ def update_agent_alias( Returns: An instance of `UpdateAgentAliasOutput`. """ - return self._invoke(input, _models.UPDATE_AGENT_ALIAS, [], plugins) + def update_agent_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentAliasOutput: + return self._invoke( + self._select_input(_models.UPDATE_AGENT_ALIAS, args, kwargs), + _models.UPDATE_AGENT_ALIAS, + [], + plugins, + ) + + @_overload + def update_agent_collaborator( + self, + request: _models.UpdateAgentCollaboratorInput + | _models.UpdateAgentCollaboratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentCollaboratorOutput: ... + + @_overload def update_agent_collaborator( - self, input: UpdateAgentCollaboratorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentCollaboratorInputDict], ) -> UpdateAgentCollaboratorOutput: """ Updates an agent's collaborator. Args: - input: - An instance of `UpdateAgentCollaboratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2046,18 +3594,40 @@ def update_agent_collaborator( Returns: An instance of `UpdateAgentCollaboratorOutput`. """ - return self._invoke(input, _models.UPDATE_AGENT_COLLABORATOR, [], plugins) + def update_agent_collaborator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentCollaboratorOutput: + return self._invoke( + self._select_input(_models.UPDATE_AGENT_COLLABORATOR, args, kwargs), + _models.UPDATE_AGENT_COLLABORATOR, + [], + plugins, + ) + + @_overload + def update_agent_knowledge_base( + self, + request: _models.UpdateAgentKnowledgeBaseInput + | _models.UpdateAgentKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentKnowledgeBaseOutput: ... + + @_overload def update_agent_knowledge_base( - self, input: UpdateAgentKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentKnowledgeBaseInputDict], ) -> UpdateAgentKnowledgeBaseOutput: """ Updates the configuration for a knowledge base that has been associated with an agent. Args: - input: - An instance of `UpdateAgentKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2067,10 +3637,33 @@ def update_agent_knowledge_base( Returns: An instance of `UpdateAgentKnowledgeBaseOutput`. """ - return self._invoke(input, _models.UPDATE_AGENT_KNOWLEDGE_BASE, [], plugins) + def update_agent_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentKnowledgeBaseOutput: + return self._invoke( + self._select_input(_models.UPDATE_AGENT_KNOWLEDGE_BASE, args, kwargs), + _models.UPDATE_AGENT_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + def update_data_source( + self, + request: _models.UpdateDataSourceInput | _models.UpdateDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDataSourceOutput: ... + + @_overload def update_data_source( - self, input: UpdateDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataSourceInputDict], ) -> UpdateDataSourceOutput: """ Updates the configurations for a data source connector. @@ -2080,8 +3673,6 @@ def update_data_source( source connector. Specify the existing `chunkingConfiguration`. Args: - input: - An instance of `UpdateDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2091,10 +3682,33 @@ def update_data_source( Returns: An instance of `UpdateDataSourceOutput`. """ - return self._invoke(input, _models.UPDATE_DATA_SOURCE, [], plugins) + def update_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataSourceOutput: + return self._invoke( + self._select_input(_models.UPDATE_DATA_SOURCE, args, kwargs), + _models.UPDATE_DATA_SOURCE, + [], + plugins, + ) + + @_overload def update_flow( - self, input: UpdateFlowInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateFlowInput | _models.UpdateFlowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFlowOutput: ... + + @_overload + def update_flow( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFlowInputDict], ) -> UpdateFlowOutput: """ Modifies a flow. Include both fields that you want to keep and fields @@ -2105,8 +3719,6 @@ def update_flow( in the Amazon Bedrock User Guide. Args: - input: - An instance of `UpdateFlowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2116,10 +3728,33 @@ def update_flow( Returns: An instance of `UpdateFlowOutput`. """ - return self._invoke(input, _models.UPDATE_FLOW, [], plugins) + def update_flow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFlowOutput: + return self._invoke( + self._select_input(_models.UPDATE_FLOW, args, kwargs), + _models.UPDATE_FLOW, + [], + plugins, + ) + + @_overload + def update_flow_alias( + self, + request: _models.UpdateFlowAliasInput | _models.UpdateFlowAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFlowAliasOutput: ... + + @_overload def update_flow_alias( - self, input: UpdateFlowAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFlowAliasInputDict], ) -> UpdateFlowAliasOutput: """ Modifies the alias of a flow. Include both fields that you want to keep @@ -2129,8 +3764,6 @@ def update_flow_alias( in the Amazon Bedrock User Guide. Args: - input: - An instance of `UpdateFlowAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2140,10 +3773,34 @@ def update_flow_alias( Returns: An instance of `UpdateFlowAliasOutput`. """ - return self._invoke(input, _models.UPDATE_FLOW_ALIAS, [], plugins) + def update_flow_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFlowAliasOutput: + return self._invoke( + self._select_input(_models.UPDATE_FLOW_ALIAS, args, kwargs), + _models.UPDATE_FLOW_ALIAS, + [], + plugins, + ) + + @_overload + def update_knowledge_base( + self, + request: _models.UpdateKnowledgeBaseInput + | _models.UpdateKnowledgeBaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKnowledgeBaseOutput: ... + + @_overload def update_knowledge_base( - self, input: UpdateKnowledgeBaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKnowledgeBaseInputDict], ) -> UpdateKnowledgeBaseOutput: """ Updates the configuration of a knowledge base with the fields that you @@ -2165,8 +3822,6 @@ def update_knowledge_base( request and copy the same configurations. Args: - input: - An instance of `UpdateKnowledgeBaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2176,10 +3831,33 @@ def update_knowledge_base( Returns: An instance of `UpdateKnowledgeBaseOutput`. """ - return self._invoke(input, _models.UPDATE_KNOWLEDGE_BASE, [], plugins) + def update_knowledge_base( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKnowledgeBaseOutput: + return self._invoke( + self._select_input(_models.UPDATE_KNOWLEDGE_BASE, args, kwargs), + _models.UPDATE_KNOWLEDGE_BASE, + [], + plugins, + ) + + @_overload + def update_prompt( + self, + request: _models.UpdatePromptInput | _models.UpdatePromptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePromptOutput: ... + + @_overload def update_prompt( - self, input: UpdatePromptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePromptInputDict], ) -> UpdatePromptOutput: """ Modifies a prompt in your prompt library. Include both fields that you @@ -2191,8 +3869,6 @@ def update_prompt( in the Amazon Bedrock User Guide. Args: - input: - An instance of `UpdatePromptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2202,12 +3878,34 @@ def update_prompt( Returns: An instance of `UpdatePromptOutput`. """ - return self._invoke(input, _models.UPDATE_PROMPT, [], plugins) + def update_prompt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePromptOutput: + return self._invoke( + self._select_input(_models.UPDATE_PROMPT, args, kwargs), + _models.UPDATE_PROMPT, + [], + plugins, + ) + + @_overload + def update_retrieval_instruction( + self, + request: _models.UpdateRetrievalInstructionInput + | _models.UpdateRetrievalInstructionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRetrievalInstructionOutput: ... + + @_overload def update_retrieval_instruction( self, - input: UpdateRetrievalInstructionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRetrievalInstructionInputDict], ) -> UpdateRetrievalInstructionOutput: """ Updates the content of a retrieval instruction. The update is processed @@ -2217,8 +3915,6 @@ def update_retrieval_instruction( lastTransitionStatus is CREATING or UPDATING. Args: - input: - An instance of `UpdateRetrievalInstructionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2228,17 +3924,39 @@ def update_retrieval_instruction( Returns: An instance of `UpdateRetrievalInstructionOutput`. """ - return self._invoke(input, _models.UPDATE_RETRIEVAL_INSTRUCTION, [], plugins) + def update_retrieval_instruction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRetrievalInstructionOutput: + return self._invoke( + self._select_input(_models.UPDATE_RETRIEVAL_INSTRUCTION, args, kwargs), + _models.UPDATE_RETRIEVAL_INSTRUCTION, + [], + plugins, + ) + + @_overload + def validate_flow_definition( + self, + request: _models.ValidateFlowDefinitionInput + | _models.ValidateFlowDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ValidateFlowDefinitionOutput: ... + + @_overload def validate_flow_definition( - self, input: ValidateFlowDefinitionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ValidateFlowDefinitionInputDict], ) -> ValidateFlowDefinitionOutput: """ Validates the definition of a flow. Args: - input: - An instance of `ValidateFlowDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2248,7 +3966,16 @@ def validate_flow_definition( Returns: An instance of `ValidateFlowDefinitionOutput`. """ - return self._invoke(input, _models.VALIDATE_FLOW_DEFINITION, [], plugins) + + def validate_flow_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ValidateFlowDefinitionOutput: + return self._invoke( + self._select_input(_models.VALIDATE_FLOW_DEFINITION, args, kwargs), + _models.VALIDATE_FLOW_DEFINITION, + [], + plugins, + ) def _new_config(self) -> BedrockAgentConfig: return BedrockAgentConfig.resolve() diff --git a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/models.pyi b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/models.pyi index 47fa8f3e8..746a64097 100644 --- a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/models.pyi +++ b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/models.pyi @@ -16,6 +16,9 @@ from ._private.models_0 import ( ActionGroupExecutorUnknown as ActionGroupExecutorUnknown, ActionGroupExecutor as ActionGroupExecutor, _ActionGroupExecutorDeserializer as _ActionGroupExecutorDeserializer, + ActionGroupExecutorLambdaDict as ActionGroupExecutorLambdaDict, + ActionGroupExecutorCustomControlDict as ActionGroupExecutorCustomControlDict, + ActionGroupExecutorDict as ActionGroupExecutorDict, ActionGroupSignature as ActionGroupSignature, ActionGroupState as ActionGroupState, ActionGroupSummary as ActionGroupSummary, @@ -24,13 +27,16 @@ from ._private.models_0 import ( AgentAlias as AgentAlias, AgentAliasHistoryEvent as AgentAliasHistoryEvent, AgentAliasRoutingConfigurationListItem as AgentAliasRoutingConfigurationListItem, + AgentAliasRoutingConfigurationListItemDict as AgentAliasRoutingConfigurationListItemDict, AgentAliasStatus as AgentAliasStatus, AgentAliasSummary as AgentAliasSummary, AgentCollaboration as AgentCollaboration, AgentCollaborator as AgentCollaborator, AgentCollaboratorSummary as AgentCollaboratorSummary, AgentDescriptor as AgentDescriptor, + AgentDescriptorDict as AgentDescriptorDict, AgentFlowNodeConfiguration as AgentFlowNodeConfiguration, + AgentFlowNodeConfigurationDict as AgentFlowNodeConfigurationDict, AgentKnowledgeBase as AgentKnowledgeBase, AgentKnowledgeBaseSummary as AgentKnowledgeBaseSummary, AgentStatus as AgentStatus, @@ -39,89 +45,138 @@ from ._private.models_0 import ( AgentVersionSummary as AgentVersionSummary, AliasInvocationState as AliasInvocationState, AnyToolChoice as AnyToolChoice, + AnyToolChoiceDict as AnyToolChoiceDict, APISchemaS3 as APISchemaS3, APISchemaPayload as APISchemaPayload, APISchemaUnknown as APISchemaUnknown, APISchema as APISchema, _APISchemaDeserializer as _APISchemaDeserializer, + APISchemaS3Dict as APISchemaS3Dict, + APISchemaPayloadDict as APISchemaPayloadDict, + APISchemaDict as APISchemaDict, AssociateAgentCollaboratorInput as AssociateAgentCollaboratorInput, + AssociateAgentCollaboratorInputDict as AssociateAgentCollaboratorInputDict, AssociateAgentCollaboratorOutput as AssociateAgentCollaboratorOutput, AssociateAgentKnowledgeBaseInput as AssociateAgentKnowledgeBaseInput, + AssociateAgentKnowledgeBaseInputDict as AssociateAgentKnowledgeBaseInputDict, AssociateAgentKnowledgeBaseOutput as AssociateAgentKnowledgeBaseOutput, AudioConfiguration as AudioConfiguration, + AudioConfigurationDict as AudioConfigurationDict, AudioExtractionConfiguration as AudioExtractionConfiguration, + AudioExtractionConfigurationDict as AudioExtractionConfigurationDict, AudioSegmentationConfiguration as AudioSegmentationConfiguration, + AudioSegmentationConfigurationDict as AudioSegmentationConfigurationDict, AutoToolChoice as AutoToolChoice, + AutoToolChoiceDict as AutoToolChoiceDict, BedrockDataAutomationConfiguration as BedrockDataAutomationConfiguration, + BedrockDataAutomationConfigurationDict as BedrockDataAutomationConfigurationDict, BedrockEmbeddingModelConfiguration as BedrockEmbeddingModelConfiguration, + BedrockEmbeddingModelConfigurationDict as BedrockEmbeddingModelConfigurationDict, BedrockFoundationModelConfiguration as BedrockFoundationModelConfiguration, + BedrockFoundationModelConfigurationDict as BedrockFoundationModelConfigurationDict, BedrockFoundationModelContextEnrichmentConfiguration as BedrockFoundationModelContextEnrichmentConfiguration, + BedrockFoundationModelContextEnrichmentConfigurationDict as BedrockFoundationModelContextEnrichmentConfigurationDict, ByteContentDoc as ByteContentDoc, + ByteContentDocDict as ByteContentDocDict, CachePointBlock as CachePointBlock, + CachePointBlockDict as CachePointBlockDict, CachePointType as CachePointType, ChatPromptTemplateConfiguration as ChatPromptTemplateConfiguration, + ChatPromptTemplateConfigurationDict as ChatPromptTemplateConfigurationDict, ChunkingConfiguration as ChunkingConfiguration, + ChunkingConfigurationDict as ChunkingConfigurationDict, ChunkingStrategy as ChunkingStrategy, CollectorFlowNodeConfiguration as CollectorFlowNodeConfiguration, + CollectorFlowNodeConfigurationDict as CollectorFlowNodeConfigurationDict, ConcurrencyType as ConcurrencyType, ConditionFlowNodeConfiguration as ConditionFlowNodeConfiguration, + ConditionFlowNodeConfigurationDict as ConditionFlowNodeConfigurationDict, ConflictException as ConflictException, ConfluenceAuthType as ConfluenceAuthType, ConfluenceCrawlerConfiguration as ConfluenceCrawlerConfiguration, + ConfluenceCrawlerConfigurationDict as ConfluenceCrawlerConfigurationDict, ConfluenceDataSourceConfiguration as ConfluenceDataSourceConfiguration, + ConfluenceDataSourceConfigurationDict as ConfluenceDataSourceConfigurationDict, ConfluenceHostType as ConfluenceHostType, ConfluenceSourceConfiguration as ConfluenceSourceConfiguration, + ConfluenceSourceConfigurationDict as ConfluenceSourceConfigurationDict, ContentBlockText as ContentBlockText, ContentBlockCachePoint as ContentBlockCachePoint, ContentBlockUnknown as ContentBlockUnknown, ContentBlock as ContentBlock, _ContentBlockDeserializer as _ContentBlockDeserializer, + ContentBlockTextDict as ContentBlockTextDict, + ContentBlockCachePointDict as ContentBlockCachePointDict, + ContentBlockDict as ContentBlockDict, ContentDataSourceType as ContentDataSourceType, ContextEnrichmentConfiguration as ContextEnrichmentConfiguration, + ContextEnrichmentConfigurationDict as ContextEnrichmentConfigurationDict, ContextEnrichmentType as ContextEnrichmentType, ConversationRole as ConversationRole, CrawlFilterConfiguration as CrawlFilterConfiguration, + CrawlFilterConfigurationDict as CrawlFilterConfigurationDict, CrawlFilterConfigurationType as CrawlFilterConfigurationType, CreateAgentActionGroupInput as CreateAgentActionGroupInput, + CreateAgentActionGroupInputDict as CreateAgentActionGroupInputDict, CreateAgentActionGroupOutput as CreateAgentActionGroupOutput, CreateAgentAliasInput as CreateAgentAliasInput, + CreateAgentAliasInputDict as CreateAgentAliasInputDict, CreateAgentAliasOutput as CreateAgentAliasOutput, CreateAgentInput as CreateAgentInput, + CreateAgentInputDict as CreateAgentInputDict, CreateAgentOutput as CreateAgentOutput, CreateDataSourceInput as CreateDataSourceInput, + CreateDataSourceInputDict as CreateDataSourceInputDict, CreateDataSourceOutput as CreateDataSourceOutput, CreateFlowAliasInput as CreateFlowAliasInput, + CreateFlowAliasInputDict as CreateFlowAliasInputDict, CreateFlowAliasOutput as CreateFlowAliasOutput, CreateFlowInput as CreateFlowInput, + CreateFlowInputDict as CreateFlowInputDict, CreateFlowOutput as CreateFlowOutput, CreateFlowVersionInput as CreateFlowVersionInput, + CreateFlowVersionInputDict as CreateFlowVersionInputDict, CreateFlowVersionOutput as CreateFlowVersionOutput, CreateKnowledgeBaseInput as CreateKnowledgeBaseInput, + CreateKnowledgeBaseInputDict as CreateKnowledgeBaseInputDict, CreateKnowledgeBaseOutput as CreateKnowledgeBaseOutput, CreatePromptInput as CreatePromptInput, + CreatePromptInputDict as CreatePromptInputDict, CreatePromptOutput as CreatePromptOutput, CreatePromptVersionInput as CreatePromptVersionInput, + CreatePromptVersionInputDict as CreatePromptVersionInputDict, CreatePromptVersionOutput as CreatePromptVersionOutput, CreateRetrievalInstructionInput as CreateRetrievalInstructionInput, + CreateRetrievalInstructionInputDict as CreateRetrievalInstructionInputDict, CreateRetrievalInstructionOutput as CreateRetrievalInstructionOutput, CreateRetrievalInstructionVersionInput as CreateRetrievalInstructionVersionInput, + CreateRetrievalInstructionVersionInputDict as CreateRetrievalInstructionVersionInputDict, CreateRetrievalInstructionVersionOutput as CreateRetrievalInstructionVersionOutput, CreateVpcConfigurationInput as CreateVpcConfigurationInput, + CreateVpcConfigurationInputDict as CreateVpcConfigurationInputDict, CreateVpcConfigurationOutput as CreateVpcConfigurationOutput, CreationMode as CreationMode, CuratedQuery as CuratedQuery, + CuratedQueryDict as CuratedQueryDict, CustomContent as CustomContent, + CustomContentDict as CustomContentDict, CustomControlMethod as CustomControlMethod, CustomDocumentIdentifier as CustomDocumentIdentifier, + CustomDocumentIdentifierDict as CustomDocumentIdentifierDict, CustomOrchestration as CustomOrchestration, + CustomOrchestrationDict as CustomOrchestrationDict, CustomS3Location as CustomS3Location, + CustomS3LocationDict as CustomS3LocationDict, CustomSourceType as CustomSourceType, CustomTransformationConfiguration as CustomTransformationConfiguration, + CustomTransformationConfigurationDict as CustomTransformationConfigurationDict, CyclicConnectionFlowValidationDetails as CyclicConnectionFlowValidationDetails, DailySchedule as DailySchedule, + DailyScheduleDict as DailyScheduleDict, DataDeletionPolicy as DataDeletionPolicy, DataSource as DataSource, DataSourceConfiguration as DataSourceConfiguration, + DataSourceConfigurationDict as DataSourceConfigurationDict, DataSourceStatus as DataSourceStatus, DataSourceSummary as DataSourceSummary, DataSourceType as DataSourceType, @@ -130,71 +185,110 @@ from ._private.models_0 import ( DayOfMonthUnknown as DayOfMonthUnknown, DayOfMonth as DayOfMonth, _DayOfMonthDeserializer as _DayOfMonthDeserializer, + DayOfMonthDayNumberDict as DayOfMonthDayNumberDict, + DayOfMonthLastDayOfMonthDict as DayOfMonthLastDayOfMonthDict, + DayOfMonthDict as DayOfMonthDict, DayOfWeek as DayOfWeek, DeleteAgentActionGroupInput as DeleteAgentActionGroupInput, + DeleteAgentActionGroupInputDict as DeleteAgentActionGroupInputDict, DeleteAgentActionGroupOutput as DeleteAgentActionGroupOutput, DeleteAgentAliasInput as DeleteAgentAliasInput, + DeleteAgentAliasInputDict as DeleteAgentAliasInputDict, DeleteAgentAliasOutput as DeleteAgentAliasOutput, DeleteAgentInput as DeleteAgentInput, + DeleteAgentInputDict as DeleteAgentInputDict, DeleteAgentOutput as DeleteAgentOutput, DeleteAgentVersionInput as DeleteAgentVersionInput, + DeleteAgentVersionInputDict as DeleteAgentVersionInputDict, DeleteAgentVersionOutput as DeleteAgentVersionOutput, DeleteDataSourceInput as DeleteDataSourceInput, + DeleteDataSourceInputDict as DeleteDataSourceInputDict, DeleteDataSourceOutput as DeleteDataSourceOutput, DeleteFlowAliasInput as DeleteFlowAliasInput, + DeleteFlowAliasInputDict as DeleteFlowAliasInputDict, DeleteFlowAliasOutput as DeleteFlowAliasOutput, DeleteFlowInput as DeleteFlowInput, + DeleteFlowInputDict as DeleteFlowInputDict, DeleteFlowOutput as DeleteFlowOutput, DeleteFlowVersionInput as DeleteFlowVersionInput, + DeleteFlowVersionInputDict as DeleteFlowVersionInputDict, DeleteFlowVersionOutput as DeleteFlowVersionOutput, DeleteKnowledgeBaseDocumentsInput as DeleteKnowledgeBaseDocumentsInput, + DeleteKnowledgeBaseDocumentsInputDict as DeleteKnowledgeBaseDocumentsInputDict, DeleteKnowledgeBaseDocumentsOutput as DeleteKnowledgeBaseDocumentsOutput, DeleteKnowledgeBaseInput as DeleteKnowledgeBaseInput, + DeleteKnowledgeBaseInputDict as DeleteKnowledgeBaseInputDict, DeleteKnowledgeBaseOutput as DeleteKnowledgeBaseOutput, DeletePromptInput as DeletePromptInput, + DeletePromptInputDict as DeletePromptInputDict, DeletePromptOutput as DeletePromptOutput, DeleteResourcePolicyInput as DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict as DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput as DeleteResourcePolicyOutput, DeleteRetrievalInstructionInput as DeleteRetrievalInstructionInput, + DeleteRetrievalInstructionInputDict as DeleteRetrievalInstructionInputDict, DeleteRetrievalInstructionOutput as DeleteRetrievalInstructionOutput, DeleteVpcConfigurationInput as DeleteVpcConfigurationInput, + DeleteVpcConfigurationInputDict as DeleteVpcConfigurationInputDict, DeleteVpcConfigurationOutput as DeleteVpcConfigurationOutput, DeletionProtectionConfiguration as DeletionProtectionConfiguration, + DeletionProtectionConfigurationDict as DeletionProtectionConfigurationDict, DisassociateAgentCollaboratorInput as DisassociateAgentCollaboratorInput, + DisassociateAgentCollaboratorInputDict as DisassociateAgentCollaboratorInputDict, DisassociateAgentCollaboratorOutput as DisassociateAgentCollaboratorOutput, DisassociateAgentKnowledgeBaseInput as DisassociateAgentKnowledgeBaseInput, + DisassociateAgentKnowledgeBaseInputDict as DisassociateAgentKnowledgeBaseInputDict, DisassociateAgentKnowledgeBaseOutput as DisassociateAgentKnowledgeBaseOutput, DocumentAccessControlEntry as DocumentAccessControlEntry, + DocumentAccessControlEntryDict as DocumentAccessControlEntryDict, DocumentContent as DocumentContent, + DocumentContentDict as DocumentContentDict, DocumentIdentifier as DocumentIdentifier, + DocumentIdentifierDict as DocumentIdentifierDict, DocumentMetadata as DocumentMetadata, + DocumentMetadataDict as DocumentMetadataDict, DocumentStatus as DocumentStatus, DuplicateConditionExpressionFlowValidationDetails as DuplicateConditionExpressionFlowValidationDetails, DuplicateConnectionsFlowValidationDetails as DuplicateConnectionsFlowValidationDetails, EmbeddingDataType as EmbeddingDataType, EmbeddingModelConfiguration as EmbeddingModelConfiguration, + EmbeddingModelConfigurationDict as EmbeddingModelConfigurationDict, EmbeddingModelType as EmbeddingModelType, EnabledOrDisabledState as EnabledOrDisabledState, EnrichmentStrategyConfiguration as EnrichmentStrategyConfiguration, + EnrichmentStrategyConfigurationDict as EnrichmentStrategyConfigurationDict, EnrichmentStrategyMethod as EnrichmentStrategyMethod, FieldForReranking as FieldForReranking, + FieldForRerankingDict as FieldForRerankingDict, FieldType as FieldType, FixedSizeChunkingConfiguration as FixedSizeChunkingConfiguration, + FixedSizeChunkingConfigurationDict as FixedSizeChunkingConfigurationDict, FlowAliasConcurrencyConfiguration as FlowAliasConcurrencyConfiguration, + FlowAliasConcurrencyConfigurationDict as FlowAliasConcurrencyConfigurationDict, FlowAliasRoutingConfigurationListItem as FlowAliasRoutingConfigurationListItem, + FlowAliasRoutingConfigurationListItemDict as FlowAliasRoutingConfigurationListItemDict, FlowAliasSummary as FlowAliasSummary, FlowCondition as FlowCondition, + FlowConditionDict as FlowConditionDict, FlowConditionalConnectionConfiguration as FlowConditionalConnectionConfiguration, + FlowConditionalConnectionConfigurationDict as FlowConditionalConnectionConfigurationDict, FlowConnection as FlowConnection, + FlowConnectionDict as FlowConnectionDict, FlowConnectionConfigurationData as FlowConnectionConfigurationData, FlowConnectionConfigurationConditional as FlowConnectionConfigurationConditional, FlowConnectionConfigurationUnknown as FlowConnectionConfigurationUnknown, FlowConnectionConfiguration as FlowConnectionConfiguration, _FlowConnectionConfigurationDeserializer as _FlowConnectionConfigurationDeserializer, + FlowConnectionConfigurationDataDict as FlowConnectionConfigurationDataDict, + FlowConnectionConfigurationConditionalDict as FlowConnectionConfigurationConditionalDict, + FlowConnectionConfigurationDict as FlowConnectionConfigurationDict, FlowConnectionType as FlowConnectionType, FlowDataConnectionConfiguration as FlowDataConnectionConfiguration, + FlowDataConnectionConfigurationDict as FlowDataConnectionConfigurationDict, FlowDefinition as FlowDefinition, + FlowDefinitionDict as FlowDefinitionDict, FlowNode as FlowNode, + FlowNodeDict as FlowNodeDict, FlowNodeConfigurationInput as FlowNodeConfigurationInput, FlowNodeConfigurationOutput as FlowNodeConfigurationOutput, FlowNodeConfigurationKnowledgeBase as FlowNodeConfigurationKnowledgeBase, @@ -214,10 +308,29 @@ from ._private.models_0 import ( FlowNodeConfigurationUnknown as FlowNodeConfigurationUnknown, FlowNodeConfiguration as FlowNodeConfiguration, _FlowNodeConfigurationDeserializer as _FlowNodeConfigurationDeserializer, + FlowNodeConfigurationInputDict as FlowNodeConfigurationInputDict, + FlowNodeConfigurationOutputDict as FlowNodeConfigurationOutputDict, + FlowNodeConfigurationKnowledgeBaseDict as FlowNodeConfigurationKnowledgeBaseDict, + FlowNodeConfigurationConditionDict as FlowNodeConfigurationConditionDict, + FlowNodeConfigurationLexDict as FlowNodeConfigurationLexDict, + FlowNodeConfigurationPromptDict as FlowNodeConfigurationPromptDict, + FlowNodeConfigurationLambdaFunctionDict as FlowNodeConfigurationLambdaFunctionDict, + FlowNodeConfigurationStorageDict as FlowNodeConfigurationStorageDict, + FlowNodeConfigurationAgentDict as FlowNodeConfigurationAgentDict, + FlowNodeConfigurationRetrievalDict as FlowNodeConfigurationRetrievalDict, + FlowNodeConfigurationIteratorDict as FlowNodeConfigurationIteratorDict, + FlowNodeConfigurationCollectorDict as FlowNodeConfigurationCollectorDict, + FlowNodeConfigurationInlineCodeDict as FlowNodeConfigurationInlineCodeDict, + FlowNodeConfigurationLoopDict as FlowNodeConfigurationLoopDict, + FlowNodeConfigurationLoopInputDict as FlowNodeConfigurationLoopInputDict, + FlowNodeConfigurationLoopControllerDict as FlowNodeConfigurationLoopControllerDict, + FlowNodeConfigurationDict as FlowNodeConfigurationDict, FlowNodeInput as FlowNodeInput, + FlowNodeInputDict as FlowNodeInputDict, FlowNodeInputCategory as FlowNodeInputCategory, FlowNodeIODataType as FlowNodeIODataType, FlowNodeOutput as FlowNodeOutput, + FlowNodeOutputDict as FlowNodeOutputDict, FlowNodeType as FlowNodeType, FlowStatus as FlowStatus, FlowSummary as FlowSummary, @@ -262,143 +375,215 @@ from ._private.models_0 import ( FlowValidationType as FlowValidationType, FlowVersionSummary as FlowVersionSummary, Function as Function, + FunctionDict as FunctionDict, FunctionSchemaFunctions as FunctionSchemaFunctions, FunctionSchemaUnknown as FunctionSchemaUnknown, FunctionSchema as FunctionSchema, _FunctionSchemaDeserializer as _FunctionSchemaDeserializer, + FunctionSchemaFunctionsDict as FunctionSchemaFunctionsDict, + FunctionSchemaDict as FunctionSchemaDict, GetAgentActionGroupInput as GetAgentActionGroupInput, + GetAgentActionGroupInputDict as GetAgentActionGroupInputDict, GetAgentActionGroupOutput as GetAgentActionGroupOutput, GetAgentAliasInput as GetAgentAliasInput, + GetAgentAliasInputDict as GetAgentAliasInputDict, GetAgentAliasOutput as GetAgentAliasOutput, GetAgentCollaboratorInput as GetAgentCollaboratorInput, + GetAgentCollaboratorInputDict as GetAgentCollaboratorInputDict, GetAgentCollaboratorOutput as GetAgentCollaboratorOutput, GetAgentInput as GetAgentInput, + GetAgentInputDict as GetAgentInputDict, GetAgentKnowledgeBaseInput as GetAgentKnowledgeBaseInput, + GetAgentKnowledgeBaseInputDict as GetAgentKnowledgeBaseInputDict, GetAgentKnowledgeBaseOutput as GetAgentKnowledgeBaseOutput, GetAgentOutput as GetAgentOutput, GetAgentVersionInput as GetAgentVersionInput, + GetAgentVersionInputDict as GetAgentVersionInputDict, GetAgentVersionOutput as GetAgentVersionOutput, GetDataSourceInput as GetDataSourceInput, + GetDataSourceInputDict as GetDataSourceInputDict, GetDataSourceOutput as GetDataSourceOutput, GetFlowAliasInput as GetFlowAliasInput, + GetFlowAliasInputDict as GetFlowAliasInputDict, GetFlowAliasOutput as GetFlowAliasOutput, GetFlowInput as GetFlowInput, + GetFlowInputDict as GetFlowInputDict, GetFlowOutput as GetFlowOutput, GetFlowVersionInput as GetFlowVersionInput, + GetFlowVersionInputDict as GetFlowVersionInputDict, GetFlowVersionOutput as GetFlowVersionOutput, GetIngestionJobInput as GetIngestionJobInput, + GetIngestionJobInputDict as GetIngestionJobInputDict, GetIngestionJobOutput as GetIngestionJobOutput, GetKnowledgeBaseDocumentsInput as GetKnowledgeBaseDocumentsInput, + GetKnowledgeBaseDocumentsInputDict as GetKnowledgeBaseDocumentsInputDict, GetKnowledgeBaseDocumentsOutput as GetKnowledgeBaseDocumentsOutput, GetKnowledgeBaseInput as GetKnowledgeBaseInput, + GetKnowledgeBaseInputDict as GetKnowledgeBaseInputDict, GetKnowledgeBaseOutput as GetKnowledgeBaseOutput, GetPromptInput as GetPromptInput, + GetPromptInputDict as GetPromptInputDict, GetPromptOutput as GetPromptOutput, GetResourcePolicyInput as GetResourcePolicyInput, + GetResourcePolicyInputDict as GetResourcePolicyInputDict, GetResourcePolicyOutput as GetResourcePolicyOutput, GetRetrievalInstructionInput as GetRetrievalInstructionInput, + GetRetrievalInstructionInputDict as GetRetrievalInstructionInputDict, GetRetrievalInstructionOutput as GetRetrievalInstructionOutput, GetVpcConfigurationInput as GetVpcConfigurationInput, + GetVpcConfigurationInputDict as GetVpcConfigurationInputDict, GetVpcConfigurationOutput as GetVpcConfigurationOutput, GuardrailConfiguration as GuardrailConfiguration, + GuardrailConfigurationDict as GuardrailConfigurationDict, HierarchicalChunkingConfiguration as HierarchicalChunkingConfiguration, + HierarchicalChunkingConfigurationDict as HierarchicalChunkingConfigurationDict, HierarchicalChunkingLevelConfiguration as HierarchicalChunkingLevelConfiguration, + HierarchicalChunkingLevelConfigurationDict as HierarchicalChunkingLevelConfigurationDict, ImageExtractionConfiguration as ImageExtractionConfiguration, + ImageExtractionConfigurationDict as ImageExtractionConfigurationDict, IncludedData as IncludedData, IncludeExclude as IncludeExclude, IncompatibleConnectionDataTypeFlowValidationDetails as IncompatibleConnectionDataTypeFlowValidationDetails, IncompatibleLoopNodeType as IncompatibleLoopNodeType, InferenceConfiguration as InferenceConfiguration, + InferenceConfigurationDict as InferenceConfigurationDict, IngestionJob as IngestionJob, IngestionJobFilter as IngestionJobFilter, + IngestionJobFilterDict as IngestionJobFilterDict, IngestionJobFilterAttribute as IngestionJobFilterAttribute, IngestionJobFilterOperator as IngestionJobFilterOperator, IngestionJobSortBy as IngestionJobSortBy, + IngestionJobSortByDict as IngestionJobSortByDict, IngestionJobSortByAttribute as IngestionJobSortByAttribute, IngestionJobStatistics as IngestionJobStatistics, IngestionJobStatus as IngestionJobStatus, IngestionJobSummary as IngestionJobSummary, IngestKnowledgeBaseDocumentsInput as IngestKnowledgeBaseDocumentsInput, + IngestKnowledgeBaseDocumentsInputDict as IngestKnowledgeBaseDocumentsInputDict, IngestKnowledgeBaseDocumentsOutput as IngestKnowledgeBaseDocumentsOutput, InlineCodeFlowNodeConfiguration as InlineCodeFlowNodeConfiguration, + InlineCodeFlowNodeConfigurationDict as InlineCodeFlowNodeConfigurationDict, InlineContent as InlineContent, + InlineContentDict as InlineContentDict, InlineContentType as InlineContentType, InputFlowNodeConfiguration as InputFlowNodeConfiguration, + InputFlowNodeConfigurationDict as InputFlowNodeConfigurationDict, IntermediateStorage as IntermediateStorage, + IntermediateStorageDict as IntermediateStorageDict, InternalServerException as InternalServerException, InvalidLoopBoundaryFlowValidationDetails as InvalidLoopBoundaryFlowValidationDetails, IteratorFlowNodeConfiguration as IteratorFlowNodeConfiguration, + IteratorFlowNodeConfigurationDict as IteratorFlowNodeConfigurationDict, KendraKnowledgeBaseConfiguration as KendraKnowledgeBaseConfiguration, + KendraKnowledgeBaseConfigurationDict as KendraKnowledgeBaseConfigurationDict, KnowledgeBase as KnowledgeBase, KnowledgeBaseConfiguration as KnowledgeBaseConfiguration, + KnowledgeBaseConfigurationDict as KnowledgeBaseConfigurationDict, KnowledgeBaseDocument as KnowledgeBaseDocument, + KnowledgeBaseDocumentDict as KnowledgeBaseDocumentDict, KnowledgeBaseDocumentDetail as KnowledgeBaseDocumentDetail, KnowledgeBaseFlowNodeConfiguration as KnowledgeBaseFlowNodeConfiguration, + KnowledgeBaseFlowNodeConfigurationDict as KnowledgeBaseFlowNodeConfigurationDict, ) from ._private.models_1 import ( KnowledgeBaseOrchestrationConfiguration as KnowledgeBaseOrchestrationConfiguration, + KnowledgeBaseOrchestrationConfigurationDict as KnowledgeBaseOrchestrationConfigurationDict, KnowledgeBasePromptTemplate as KnowledgeBasePromptTemplate, + KnowledgeBasePromptTemplateDict as KnowledgeBasePromptTemplateDict, KnowledgeBaseState as KnowledgeBaseState, KnowledgeBaseStatus as KnowledgeBaseStatus, KnowledgeBaseStorageType as KnowledgeBaseStorageType, KnowledgeBaseSummary as KnowledgeBaseSummary, KnowledgeBaseType as KnowledgeBaseType, LambdaFunctionFlowNodeConfiguration as LambdaFunctionFlowNodeConfiguration, + LambdaFunctionFlowNodeConfigurationDict as LambdaFunctionFlowNodeConfigurationDict, LastDayOfMonth as LastDayOfMonth, + LastDayOfMonthDict as LastDayOfMonthDict, LexFlowNodeConfiguration as LexFlowNodeConfiguration, + LexFlowNodeConfigurationDict as LexFlowNodeConfigurationDict, ListAgentActionGroupsInput as ListAgentActionGroupsInput, + ListAgentActionGroupsInputDict as ListAgentActionGroupsInputDict, ListAgentActionGroupsOutput as ListAgentActionGroupsOutput, ListAgentAliasesInput as ListAgentAliasesInput, + ListAgentAliasesInputDict as ListAgentAliasesInputDict, ListAgentAliasesOutput as ListAgentAliasesOutput, ListAgentCollaboratorsInput as ListAgentCollaboratorsInput, + ListAgentCollaboratorsInputDict as ListAgentCollaboratorsInputDict, ListAgentCollaboratorsOutput as ListAgentCollaboratorsOutput, ListAgentKnowledgeBasesInput as ListAgentKnowledgeBasesInput, + ListAgentKnowledgeBasesInputDict as ListAgentKnowledgeBasesInputDict, ListAgentKnowledgeBasesOutput as ListAgentKnowledgeBasesOutput, ListAgentsInput as ListAgentsInput, + ListAgentsInputDict as ListAgentsInputDict, ListAgentsOutput as ListAgentsOutput, ListAgentVersionsInput as ListAgentVersionsInput, + ListAgentVersionsInputDict as ListAgentVersionsInputDict, ListAgentVersionsOutput as ListAgentVersionsOutput, ListDataSourcesInput as ListDataSourcesInput, + ListDataSourcesInputDict as ListDataSourcesInputDict, ListDataSourcesOutput as ListDataSourcesOutput, ListFlowAliasesInput as ListFlowAliasesInput, + ListFlowAliasesInputDict as ListFlowAliasesInputDict, ListFlowAliasesOutput as ListFlowAliasesOutput, ListFlowsInput as ListFlowsInput, + ListFlowsInputDict as ListFlowsInputDict, ListFlowsOutput as ListFlowsOutput, ListFlowVersionsInput as ListFlowVersionsInput, + ListFlowVersionsInputDict as ListFlowVersionsInputDict, ListFlowVersionsOutput as ListFlowVersionsOutput, ListIngestionJobsInput as ListIngestionJobsInput, + ListIngestionJobsInputDict as ListIngestionJobsInputDict, ListIngestionJobsOutput as ListIngestionJobsOutput, ListKnowledgeBaseDocumentsInput as ListKnowledgeBaseDocumentsInput, + ListKnowledgeBaseDocumentsInputDict as ListKnowledgeBaseDocumentsInputDict, ListKnowledgeBaseDocumentsOutput as ListKnowledgeBaseDocumentsOutput, ListKnowledgeBasesInput as ListKnowledgeBasesInput, + ListKnowledgeBasesInputDict as ListKnowledgeBasesInputDict, ListKnowledgeBasesOutput as ListKnowledgeBasesOutput, ListPromptsInput as ListPromptsInput, + ListPromptsInputDict as ListPromptsInputDict, ListPromptsOutput as ListPromptsOutput, ListRetrievalInstructionsInput as ListRetrievalInstructionsInput, + ListRetrievalInstructionsInputDict as ListRetrievalInstructionsInputDict, ListRetrievalInstructionsOutput as ListRetrievalInstructionsOutput, ListRetrievalInstructionVersionsInput as ListRetrievalInstructionVersionsInput, + ListRetrievalInstructionVersionsInputDict as ListRetrievalInstructionVersionsInputDict, ListRetrievalInstructionVersionsOutput as ListRetrievalInstructionVersionsOutput, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, ListVpcConfigurationsInput as ListVpcConfigurationsInput, + ListVpcConfigurationsInputDict as ListVpcConfigurationsInputDict, ListVpcConfigurationsOutput as ListVpcConfigurationsOutput, LoopControllerFlowNodeConfiguration as LoopControllerFlowNodeConfiguration, + LoopControllerFlowNodeConfigurationDict as LoopControllerFlowNodeConfigurationDict, LoopFlowNodeConfiguration as LoopFlowNodeConfiguration, + LoopFlowNodeConfigurationDict as LoopFlowNodeConfigurationDict, LoopIncompatibleNodeTypeFlowValidationDetails as LoopIncompatibleNodeTypeFlowValidationDetails, LoopInputFlowNodeConfiguration as LoopInputFlowNodeConfiguration, + LoopInputFlowNodeConfigurationDict as LoopInputFlowNodeConfigurationDict, MalformedConditionExpressionFlowValidationDetails as MalformedConditionExpressionFlowValidationDetails, MalformedNodeInputExpressionFlowValidationDetails as MalformedNodeInputExpressionFlowValidationDetails, ManagedKnowledgeBaseConfiguration as ManagedKnowledgeBaseConfiguration, + ManagedKnowledgeBaseConfigurationDict as ManagedKnowledgeBaseConfigurationDict, ManagedKnowledgeBaseConnectorConfiguration as ManagedKnowledgeBaseConnectorConfiguration, + ManagedKnowledgeBaseConnectorConfigurationDict as ManagedKnowledgeBaseConnectorConfigurationDict, MediaExtractionConfiguration as MediaExtractionConfiguration, + MediaExtractionConfigurationDict as MediaExtractionConfigurationDict, MemoryConfiguration as MemoryConfiguration, + MemoryConfigurationDict as MemoryConfigurationDict, MemoryType as MemoryType, Message as Message, + MessageDict as MessageDict, MetadataAttribute as MetadataAttribute, + MetadataAttributeDict as MetadataAttributeDict, MetadataAttributeValue as MetadataAttributeValue, + MetadataAttributeValueDict as MetadataAttributeValueDict, MetadataConfiguration as MetadataConfiguration, + MetadataConfigurationDict as MetadataConfigurationDict, MetadataConfigurationForReranking as MetadataConfigurationForReranking, + MetadataConfigurationForRerankingDict as MetadataConfigurationForRerankingDict, MetadataSourceType as MetadataSourceType, MetadataValueType as MetadataValueType, MismatchedNodeInputTypeFlowValidationDetails as MismatchedNodeInputTypeFlowValidationDetails, @@ -413,60 +598,98 @@ from ._private.models_1 import ( MissingNodeOutputFlowValidationDetails as MissingNodeOutputFlowValidationDetails, MissingStartingNodesFlowValidationDetails as MissingStartingNodesFlowValidationDetails, MongoDbAtlasConfiguration as MongoDbAtlasConfiguration, + MongoDbAtlasConfigurationDict as MongoDbAtlasConfigurationDict, MongoDbAtlasFieldMapping as MongoDbAtlasFieldMapping, + MongoDbAtlasFieldMappingDict as MongoDbAtlasFieldMappingDict, MonthlySchedule as MonthlySchedule, + MonthlyScheduleDict as MonthlyScheduleDict, MultipleLoopControllerNodesFlowValidationDetails as MultipleLoopControllerNodesFlowValidationDetails, MultipleLoopInputNodesFlowValidationDetails as MultipleLoopInputNodesFlowValidationDetails, MultipleNodeInputConnectionsFlowValidationDetails as MultipleNodeInputConnectionsFlowValidationDetails, NeptuneAnalyticsConfiguration as NeptuneAnalyticsConfiguration, + NeptuneAnalyticsConfigurationDict as NeptuneAnalyticsConfigurationDict, NeptuneAnalyticsFieldMapping as NeptuneAnalyticsFieldMapping, + NeptuneAnalyticsFieldMappingDict as NeptuneAnalyticsFieldMappingDict, OpenSearchManagedClusterConfiguration as OpenSearchManagedClusterConfiguration, + OpenSearchManagedClusterConfigurationDict as OpenSearchManagedClusterConfigurationDict, OpenSearchManagedClusterFieldMapping as OpenSearchManagedClusterFieldMapping, + OpenSearchManagedClusterFieldMappingDict as OpenSearchManagedClusterFieldMappingDict, OpenSearchServerlessConfiguration as OpenSearchServerlessConfiguration, + OpenSearchServerlessConfigurationDict as OpenSearchServerlessConfigurationDict, OpenSearchServerlessFieldMapping as OpenSearchServerlessFieldMapping, + OpenSearchServerlessFieldMappingDict as OpenSearchServerlessFieldMappingDict, OrchestrationExecutorLambda as OrchestrationExecutorLambda, OrchestrationExecutorUnknown as OrchestrationExecutorUnknown, OrchestrationExecutor as OrchestrationExecutor, _OrchestrationExecutorDeserializer as _OrchestrationExecutorDeserializer, + OrchestrationExecutorLambdaDict as OrchestrationExecutorLambdaDict, + OrchestrationExecutorDict as OrchestrationExecutorDict, OrchestrationType as OrchestrationType, OutputFlowNodeConfiguration as OutputFlowNodeConfiguration, + OutputFlowNodeConfigurationDict as OutputFlowNodeConfigurationDict, ParameterDetail as ParameterDetail, + ParameterDetailDict as ParameterDetailDict, ParsingConfiguration as ParsingConfiguration, + ParsingConfigurationDict as ParsingConfigurationDict, ParsingModality as ParsingModality, ParsingPrompt as ParsingPrompt, + ParsingPromptDict as ParsingPromptDict, ParsingStrategy as ParsingStrategy, PatternObjectFilter as PatternObjectFilter, + PatternObjectFilterDict as PatternObjectFilterDict, PatternObjectFilterConfiguration as PatternObjectFilterConfiguration, + PatternObjectFilterConfigurationDict as PatternObjectFilterConfigurationDict, PerformanceConfigLatency as PerformanceConfigLatency, PerformanceConfiguration as PerformanceConfiguration, + PerformanceConfigurationDict as PerformanceConfigurationDict, PineconeConfiguration as PineconeConfiguration, + PineconeConfigurationDict as PineconeConfigurationDict, PineconeFieldMapping as PineconeFieldMapping, + PineconeFieldMappingDict as PineconeFieldMappingDict, PrepareAgentInput as PrepareAgentInput, + PrepareAgentInputDict as PrepareAgentInputDict, PrepareAgentOutput as PrepareAgentOutput, PrepareFlowInput as PrepareFlowInput, + PrepareFlowInputDict as PrepareFlowInputDict, PrepareFlowOutput as PrepareFlowOutput, PromptAgentResource as PromptAgentResource, + PromptAgentResourceDict as PromptAgentResourceDict, PromptConfiguration as PromptConfiguration, + PromptConfigurationDict as PromptConfigurationDict, PromptFlowNodeConfiguration as PromptFlowNodeConfiguration, + PromptFlowNodeConfigurationDict as PromptFlowNodeConfigurationDict, PromptFlowNodeInlineConfiguration as PromptFlowNodeInlineConfiguration, + PromptFlowNodeInlineConfigurationDict as PromptFlowNodeInlineConfigurationDict, PromptFlowNodeResourceConfiguration as PromptFlowNodeResourceConfiguration, + PromptFlowNodeResourceConfigurationDict as PromptFlowNodeResourceConfigurationDict, PromptFlowNodeSourceConfigurationResource as PromptFlowNodeSourceConfigurationResource, PromptFlowNodeSourceConfigurationInline as PromptFlowNodeSourceConfigurationInline, PromptFlowNodeSourceConfigurationUnknown as PromptFlowNodeSourceConfigurationUnknown, PromptFlowNodeSourceConfiguration as PromptFlowNodeSourceConfiguration, _PromptFlowNodeSourceConfigurationDeserializer as _PromptFlowNodeSourceConfigurationDeserializer, + PromptFlowNodeSourceConfigurationResourceDict as PromptFlowNodeSourceConfigurationResourceDict, + PromptFlowNodeSourceConfigurationInlineDict as PromptFlowNodeSourceConfigurationInlineDict, + PromptFlowNodeSourceConfigurationDict as PromptFlowNodeSourceConfigurationDict, PromptGenAiResourceAgent as PromptGenAiResourceAgent, PromptGenAiResourceUnknown as PromptGenAiResourceUnknown, PromptGenAiResource as PromptGenAiResource, _PromptGenAiResourceDeserializer as _PromptGenAiResourceDeserializer, + PromptGenAiResourceAgentDict as PromptGenAiResourceAgentDict, + PromptGenAiResourceDict as PromptGenAiResourceDict, PromptInferenceConfigurationText as PromptInferenceConfigurationText, PromptInferenceConfigurationUnknown as PromptInferenceConfigurationUnknown, PromptInferenceConfiguration as PromptInferenceConfiguration, _PromptInferenceConfigurationDeserializer as _PromptInferenceConfigurationDeserializer, + PromptInferenceConfigurationTextDict as PromptInferenceConfigurationTextDict, + PromptInferenceConfigurationDict as PromptInferenceConfigurationDict, PromptInputVariable as PromptInputVariable, + PromptInputVariableDict as PromptInputVariableDict, PromptMetadataEntry as PromptMetadataEntry, + PromptMetadataEntryDict as PromptMetadataEntryDict, PromptModelInferenceConfiguration as PromptModelInferenceConfiguration, + PromptModelInferenceConfigurationDict as PromptModelInferenceConfigurationDict, PromptOverrideConfiguration as PromptOverrideConfiguration, + PromptOverrideConfigurationDict as PromptOverrideConfigurationDict, PromptState as PromptState, PromptSummary as PromptSummary, PromptTemplateConfigurationText as PromptTemplateConfigurationText, @@ -474,33 +697,55 @@ from ._private.models_1 import ( PromptTemplateConfigurationUnknown as PromptTemplateConfigurationUnknown, PromptTemplateConfiguration as PromptTemplateConfiguration, _PromptTemplateConfigurationDeserializer as _PromptTemplateConfigurationDeserializer, + PromptTemplateConfigurationTextDict as PromptTemplateConfigurationTextDict, + PromptTemplateConfigurationChatDict as PromptTemplateConfigurationChatDict, + PromptTemplateConfigurationDict as PromptTemplateConfigurationDict, PromptTemplateType as PromptTemplateType, PromptType as PromptType, PromptVariant as PromptVariant, + PromptVariantDict as PromptVariantDict, PutResourcePolicyInput as PutResourcePolicyInput, + PutResourcePolicyInputDict as PutResourcePolicyInputDict, PutResourcePolicyOutput as PutResourcePolicyOutput, QueryEngineType as QueryEngineType, QueryGenerationColumn as QueryGenerationColumn, + QueryGenerationColumnDict as QueryGenerationColumnDict, QueryGenerationConfiguration as QueryGenerationConfiguration, + QueryGenerationConfigurationDict as QueryGenerationConfigurationDict, QueryGenerationContext as QueryGenerationContext, + QueryGenerationContextDict as QueryGenerationContextDict, QueryGenerationTable as QueryGenerationTable, + QueryGenerationTableDict as QueryGenerationTableDict, RdsConfiguration as RdsConfiguration, + RdsConfigurationDict as RdsConfigurationDict, RdsFieldMapping as RdsFieldMapping, + RdsFieldMappingDict as RdsFieldMappingDict, RedisEnterpriseCloudConfiguration as RedisEnterpriseCloudConfiguration, + RedisEnterpriseCloudConfigurationDict as RedisEnterpriseCloudConfigurationDict, RedisEnterpriseCloudFieldMapping as RedisEnterpriseCloudFieldMapping, + RedisEnterpriseCloudFieldMappingDict as RedisEnterpriseCloudFieldMappingDict, RedshiftConfiguration as RedshiftConfiguration, + RedshiftConfigurationDict as RedshiftConfigurationDict, RedshiftProvisionedAuthConfiguration as RedshiftProvisionedAuthConfiguration, + RedshiftProvisionedAuthConfigurationDict as RedshiftProvisionedAuthConfigurationDict, RedshiftProvisionedAuthType as RedshiftProvisionedAuthType, RedshiftProvisionedConfiguration as RedshiftProvisionedConfiguration, + RedshiftProvisionedConfigurationDict as RedshiftProvisionedConfigurationDict, RedshiftQueryEngineAwsDataCatalogStorageConfiguration as RedshiftQueryEngineAwsDataCatalogStorageConfiguration, + RedshiftQueryEngineAwsDataCatalogStorageConfigurationDict as RedshiftQueryEngineAwsDataCatalogStorageConfigurationDict, RedshiftQueryEngineConfiguration as RedshiftQueryEngineConfiguration, + RedshiftQueryEngineConfigurationDict as RedshiftQueryEngineConfigurationDict, RedshiftQueryEngineRedshiftStorageConfiguration as RedshiftQueryEngineRedshiftStorageConfiguration, + RedshiftQueryEngineRedshiftStorageConfigurationDict as RedshiftQueryEngineRedshiftStorageConfigurationDict, RedshiftQueryEngineStorageConfiguration as RedshiftQueryEngineStorageConfiguration, + RedshiftQueryEngineStorageConfigurationDict as RedshiftQueryEngineStorageConfigurationDict, RedshiftQueryEngineStorageType as RedshiftQueryEngineStorageType, RedshiftQueryEngineType as RedshiftQueryEngineType, RedshiftServerlessAuthConfiguration as RedshiftServerlessAuthConfiguration, + RedshiftServerlessAuthConfigurationDict as RedshiftServerlessAuthConfigurationDict, RedshiftServerlessAuthType as RedshiftServerlessAuthType, RedshiftServerlessConfiguration as RedshiftServerlessConfiguration, + RedshiftServerlessConfigurationDict as RedshiftServerlessConfigurationDict, RelayConversationHistory as RelayConversationHistory, RequireConfirmation as RequireConfirmation, RerankingMetadataSelectionMode as RerankingMetadataSelectionMode, @@ -509,14 +754,22 @@ from ._private.models_1 import ( RerankingMetadataSelectiveModeConfigurationUnknown as RerankingMetadataSelectiveModeConfigurationUnknown, RerankingMetadataSelectiveModeConfiguration as RerankingMetadataSelectiveModeConfiguration, _RerankingMetadataSelectiveModeConfigurationDeserializer as _RerankingMetadataSelectiveModeConfigurationDeserializer, + RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict as RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict, + RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict as RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict, + RerankingMetadataSelectiveModeConfigurationDict as RerankingMetadataSelectiveModeConfigurationDict, ResourceNotFoundException as ResourceNotFoundException, RetrievalFlowNodeConfiguration as RetrievalFlowNodeConfiguration, + RetrievalFlowNodeConfigurationDict as RetrievalFlowNodeConfigurationDict, RetrievalFlowNodeS3Configuration as RetrievalFlowNodeS3Configuration, + RetrievalFlowNodeS3ConfigurationDict as RetrievalFlowNodeS3ConfigurationDict, RetrievalFlowNodeServiceConfigurationS3 as RetrievalFlowNodeServiceConfigurationS3, RetrievalFlowNodeServiceConfigurationUnknown as RetrievalFlowNodeServiceConfigurationUnknown, RetrievalFlowNodeServiceConfiguration as RetrievalFlowNodeServiceConfiguration, _RetrievalFlowNodeServiceConfigurationDeserializer as _RetrievalFlowNodeServiceConfigurationDeserializer, + RetrievalFlowNodeServiceConfigurationS3Dict as RetrievalFlowNodeServiceConfigurationS3Dict, + RetrievalFlowNodeServiceConfigurationDict as RetrievalFlowNodeServiceConfigurationDict, RetrievalInstructionContent as RetrievalInstructionContent, + RetrievalInstructionContentDict as RetrievalInstructionContentDict, RetrievalInstructionFailureReason as RetrievalInstructionFailureReason, RetrievalInstructionFailureReasonCode as RetrievalInstructionFailureReasonCode, RetrievalInstructionFieldName as RetrievalInstructionFieldName, @@ -525,42 +778,68 @@ from ._private.models_1 import ( RetrievalInstructionSummary as RetrievalInstructionSummary, RetrievalInstructionVersionSummary as RetrievalInstructionVersionSummary, S3Content as S3Content, + S3ContentDict as S3ContentDict, S3DataSourceConfiguration as S3DataSourceConfiguration, + S3DataSourceConfigurationDict as S3DataSourceConfigurationDict, S3Identifier as S3Identifier, + S3IdentifierDict as S3IdentifierDict, S3Location as S3Location, + S3LocationDict as S3LocationDict, S3VectorsConfiguration as S3VectorsConfiguration, + S3VectorsConfigurationDict as S3VectorsConfigurationDict, SalesforceAuthType as SalesforceAuthType, SalesforceCrawlerConfiguration as SalesforceCrawlerConfiguration, + SalesforceCrawlerConfigurationDict as SalesforceCrawlerConfigurationDict, SalesforceDataSourceConfiguration as SalesforceDataSourceConfiguration, + SalesforceDataSourceConfigurationDict as SalesforceDataSourceConfigurationDict, SalesforceSourceConfiguration as SalesforceSourceConfiguration, + SalesforceSourceConfigurationDict as SalesforceSourceConfigurationDict, SearchableStatus as SearchableStatus, SeedUrl as SeedUrl, + SeedUrlDict as SeedUrlDict, SemanticChunkingConfiguration as SemanticChunkingConfiguration, + SemanticChunkingConfigurationDict as SemanticChunkingConfigurationDict, ServerSideEncryptionConfiguration as ServerSideEncryptionConfiguration, + ServerSideEncryptionConfigurationDict as ServerSideEncryptionConfigurationDict, ServiceQuotaExceededException as ServiceQuotaExceededException, SessionSummaryConfiguration as SessionSummaryConfiguration, + SessionSummaryConfigurationDict as SessionSummaryConfigurationDict, SharePointAuthType as SharePointAuthType, SharePointCrawlerConfiguration as SharePointCrawlerConfiguration, + SharePointCrawlerConfigurationDict as SharePointCrawlerConfigurationDict, SharePointDataSourceConfiguration as SharePointDataSourceConfiguration, + SharePointDataSourceConfigurationDict as SharePointDataSourceConfigurationDict, SharePointHostType as SharePointHostType, SharePointSourceConfiguration as SharePointSourceConfiguration, + SharePointSourceConfigurationDict as SharePointSourceConfigurationDict, SortOrder as SortOrder, SpecificToolChoice as SpecificToolChoice, + SpecificToolChoiceDict as SpecificToolChoiceDict, SqlKnowledgeBaseConfiguration as SqlKnowledgeBaseConfiguration, + SqlKnowledgeBaseConfigurationDict as SqlKnowledgeBaseConfigurationDict, StartIngestionJobInput as StartIngestionJobInput, + StartIngestionJobInputDict as StartIngestionJobInputDict, StartIngestionJobOutput as StartIngestionJobOutput, StepType as StepType, StopIngestionJobInput as StopIngestionJobInput, + StopIngestionJobInputDict as StopIngestionJobInputDict, StopIngestionJobOutput as StopIngestionJobOutput, StorageConfiguration as StorageConfiguration, + StorageConfigurationDict as StorageConfigurationDict, StorageFlowNodeConfiguration as StorageFlowNodeConfiguration, + StorageFlowNodeConfigurationDict as StorageFlowNodeConfigurationDict, StorageFlowNodeS3Configuration as StorageFlowNodeS3Configuration, + StorageFlowNodeS3ConfigurationDict as StorageFlowNodeS3ConfigurationDict, StorageFlowNodeServiceConfigurationS3 as StorageFlowNodeServiceConfigurationS3, StorageFlowNodeServiceConfigurationUnknown as StorageFlowNodeServiceConfigurationUnknown, StorageFlowNodeServiceConfiguration as StorageFlowNodeServiceConfiguration, _StorageFlowNodeServiceConfigurationDeserializer as _StorageFlowNodeServiceConfigurationDeserializer, + StorageFlowNodeServiceConfigurationS3Dict as StorageFlowNodeServiceConfigurationS3Dict, + StorageFlowNodeServiceConfigurationDict as StorageFlowNodeServiceConfigurationDict, SupplementalDataStorageConfiguration as SupplementalDataStorageConfiguration, + SupplementalDataStorageConfigurationDict as SupplementalDataStorageConfigurationDict, SupplementalDataStorageLocation as SupplementalDataStorageLocation, + SupplementalDataStorageLocationDict as SupplementalDataStorageLocationDict, SupplementalDataStorageLocationType as SupplementalDataStorageLocationType, SupportedLanguages as SupportedLanguages, SyncScheduleDaily as SyncScheduleDaily, @@ -569,36 +848,60 @@ from ._private.models_1 import ( SyncScheduleUnknown as SyncScheduleUnknown, SyncSchedule as SyncSchedule, _SyncScheduleDeserializer as _SyncScheduleDeserializer, + SyncScheduleDailyDict as SyncScheduleDailyDict, + SyncScheduleWeeklyDict as SyncScheduleWeeklyDict, + SyncScheduleMonthlyDict as SyncScheduleMonthlyDict, + SyncScheduleDict as SyncScheduleDict, SystemContentBlockText as SystemContentBlockText, SystemContentBlockCachePoint as SystemContentBlockCachePoint, SystemContentBlockUnknown as SystemContentBlockUnknown, SystemContentBlock as SystemContentBlock, _SystemContentBlockDeserializer as _SystemContentBlockDeserializer, + SystemContentBlockTextDict as SystemContentBlockTextDict, + SystemContentBlockCachePointDict as SystemContentBlockCachePointDict, + SystemContentBlockDict as SystemContentBlockDict, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, TextContentDoc as TextContentDoc, + TextContentDocDict as TextContentDocDict, TextPromptTemplateConfiguration as TextPromptTemplateConfiguration, + TextPromptTemplateConfigurationDict as TextPromptTemplateConfigurationDict, ThrottlingException as ThrottlingException, ToolToolSpec as ToolToolSpec, ToolCachePoint as ToolCachePoint, ToolUnknown as ToolUnknown, Tool as Tool, _ToolDeserializer as _ToolDeserializer, + ToolToolSpecDict as ToolToolSpecDict, + ToolCachePointDict as ToolCachePointDict, + ToolDict as ToolDict, ToolChoiceAuto as ToolChoiceAuto, ToolChoiceAny as ToolChoiceAny, ToolChoiceTool as ToolChoiceTool, ToolChoiceUnknown as ToolChoiceUnknown, ToolChoice as ToolChoice, _ToolChoiceDeserializer as _ToolChoiceDeserializer, + ToolChoiceAutoDict as ToolChoiceAutoDict, + ToolChoiceAnyDict as ToolChoiceAnyDict, + ToolChoiceToolDict as ToolChoiceToolDict, + ToolChoiceDict as ToolChoiceDict, ToolConfiguration as ToolConfiguration, + ToolConfigurationDict as ToolConfigurationDict, ToolInputSchemaJson as ToolInputSchemaJson, ToolInputSchemaUnknown as ToolInputSchemaUnknown, ToolInputSchema as ToolInputSchema, _ToolInputSchemaDeserializer as _ToolInputSchemaDeserializer, + ToolInputSchemaJsonDict as ToolInputSchemaJsonDict, + ToolInputSchemaDict as ToolInputSchemaDict, ToolSpecification as ToolSpecification, + ToolSpecificationDict as ToolSpecificationDict, Transformation as Transformation, + TransformationDict as TransformationDict, TransformationFunction as TransformationFunction, + TransformationFunctionDict as TransformationFunctionDict, TransformationLambdaConfiguration as TransformationLambdaConfiguration, + TransformationLambdaConfigurationDict as TransformationLambdaConfigurationDict, Type as Type, UnfulfilledNodeInputFlowValidationDetails as UnfulfilledNodeInputFlowValidationDetails, UnknownConnectionConditionFlowValidationDetails as UnknownConnectionConditionFlowValidationDetails, @@ -612,57 +915,84 @@ from ._private.models_1 import ( UnsatisfiedConnectionConditionsFlowValidationDetails as UnsatisfiedConnectionConditionsFlowValidationDetails, UnspecifiedFlowValidationDetails as UnspecifiedFlowValidationDetails, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateAgentActionGroupInput as UpdateAgentActionGroupInput, + UpdateAgentActionGroupInputDict as UpdateAgentActionGroupInputDict, UpdateAgentActionGroupOutput as UpdateAgentActionGroupOutput, UpdateAgentAliasInput as UpdateAgentAliasInput, + UpdateAgentAliasInputDict as UpdateAgentAliasInputDict, UpdateAgentAliasOutput as UpdateAgentAliasOutput, UpdateAgentCollaboratorInput as UpdateAgentCollaboratorInput, + UpdateAgentCollaboratorInputDict as UpdateAgentCollaboratorInputDict, UpdateAgentCollaboratorOutput as UpdateAgentCollaboratorOutput, UpdateAgentInput as UpdateAgentInput, + UpdateAgentInputDict as UpdateAgentInputDict, UpdateAgentKnowledgeBaseInput as UpdateAgentKnowledgeBaseInput, + UpdateAgentKnowledgeBaseInputDict as UpdateAgentKnowledgeBaseInputDict, UpdateAgentKnowledgeBaseOutput as UpdateAgentKnowledgeBaseOutput, UpdateAgentOutput as UpdateAgentOutput, UpdateDataSourceInput as UpdateDataSourceInput, + UpdateDataSourceInputDict as UpdateDataSourceInputDict, UpdateDataSourceOutput as UpdateDataSourceOutput, UpdateFlowAliasInput as UpdateFlowAliasInput, + UpdateFlowAliasInputDict as UpdateFlowAliasInputDict, UpdateFlowAliasOutput as UpdateFlowAliasOutput, UpdateFlowInput as UpdateFlowInput, + UpdateFlowInputDict as UpdateFlowInputDict, UpdateFlowOutput as UpdateFlowOutput, UpdateKnowledgeBaseInput as UpdateKnowledgeBaseInput, + UpdateKnowledgeBaseInputDict as UpdateKnowledgeBaseInputDict, UpdateKnowledgeBaseOutput as UpdateKnowledgeBaseOutput, UpdatePromptInput as UpdatePromptInput, + UpdatePromptInputDict as UpdatePromptInputDict, UpdatePromptOutput as UpdatePromptOutput, UpdateRetrievalInstructionInput as UpdateRetrievalInstructionInput, + UpdateRetrievalInstructionInputDict as UpdateRetrievalInstructionInputDict, UpdateRetrievalInstructionOutput as UpdateRetrievalInstructionOutput, ) from ._private.models_2 import ( UrlConfiguration as UrlConfiguration, + UrlConfigurationDict as UrlConfigurationDict, ValidateFlowDefinitionInput as ValidateFlowDefinitionInput, + ValidateFlowDefinitionInputDict as ValidateFlowDefinitionInputDict, ValidateFlowDefinitionOutput as ValidateFlowDefinitionOutput, ValidationException as ValidationException, ValidationExceptionField as ValidationExceptionField, VectorIngestionConfiguration as VectorIngestionConfiguration, + VectorIngestionConfigurationDict as VectorIngestionConfigurationDict, VectorKnowledgeBaseConfiguration as VectorKnowledgeBaseConfiguration, + VectorKnowledgeBaseConfigurationDict as VectorKnowledgeBaseConfigurationDict, VectorSearchBedrockRerankingConfiguration as VectorSearchBedrockRerankingConfiguration, + VectorSearchBedrockRerankingConfigurationDict as VectorSearchBedrockRerankingConfigurationDict, VectorSearchBedrockRerankingModelConfiguration as VectorSearchBedrockRerankingModelConfiguration, + VectorSearchBedrockRerankingModelConfigurationDict as VectorSearchBedrockRerankingModelConfigurationDict, VectorSearchRerankingConfiguration as VectorSearchRerankingConfiguration, + VectorSearchRerankingConfigurationDict as VectorSearchRerankingConfigurationDict, VectorSearchRerankingConfigurationType as VectorSearchRerankingConfigurationType, VideoConfiguration as VideoConfiguration, + VideoConfigurationDict as VideoConfigurationDict, VideoExtractionConfiguration as VideoExtractionConfiguration, + VideoExtractionConfigurationDict as VideoExtractionConfigurationDict, VideoSegmentationConfiguration as VideoSegmentationConfiguration, + VideoSegmentationConfigurationDict as VideoSegmentationConfigurationDict, VpcConfiguration as VpcConfiguration, VpcConfigurationStatus as VpcConfigurationStatus, VpcConfigurationSummary as VpcConfigurationSummary, VpcProtocol as VpcProtocol, VpcResolutionMode as VpcResolutionMode, WebCrawlerConfiguration as WebCrawlerConfiguration, + WebCrawlerConfigurationDict as WebCrawlerConfigurationDict, WebCrawlerLimits as WebCrawlerLimits, + WebCrawlerLimitsDict as WebCrawlerLimitsDict, WebDataSourceConfiguration as WebDataSourceConfiguration, + WebDataSourceConfigurationDict as WebDataSourceConfigurationDict, WebScopeType as WebScopeType, WebSourceConfiguration as WebSourceConfiguration, + WebSourceConfigurationDict as WebSourceConfigurationDict, WeeklySchedule as WeeklySchedule, + WeeklyScheduleDict as WeeklyScheduleDict, ) class _SerdeShape: diff --git a/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/py.typed b/clients/aws-sdk-bedrock-agent/src/aws_sdk_bedrock_agent/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-bedrock-agent/tests/_typecheck.py b/clients/aws-sdk-bedrock-agent/tests/_typecheck.py index 9e0dd2e5e..988243c4a 100644 --- a/clients/aws-sdk-bedrock-agent/tests/_typecheck.py +++ b/clients/aws-sdk-bedrock-agent/tests/_typecheck.py @@ -2,258 +2,418 @@ from typing import Any +from aws_sdk_bedrock_agent.aio.client import AsyncBedrockAgentClient +from aws_sdk_bedrock_agent.client import BedrockAgentClient from aws_sdk_bedrock_agent.models import ( + APISchemaDict, + ActionGroupExecutorDict, ActionGroupSummary, Agent, AgentActionGroup, AgentAlias, AgentAliasHistoryEvent, AgentAliasRoutingConfigurationListItem, + AgentAliasRoutingConfigurationListItemDict, AgentAliasSummary, AgentCollaborator, AgentCollaboratorSummary, AgentDescriptor, + AgentDescriptorDict, AgentFlowNodeConfiguration, + AgentFlowNodeConfigurationDict, AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentSummary, AgentVersion, AgentVersionSummary, AnyToolChoice, + AnyToolChoiceDict, AssociateAgentCollaboratorInput, + AssociateAgentCollaboratorInputDict, AssociateAgentCollaboratorOutput, AssociateAgentKnowledgeBaseInput, + AssociateAgentKnowledgeBaseInputDict, AssociateAgentKnowledgeBaseOutput, AudioConfiguration, + AudioConfigurationDict, AudioExtractionConfiguration, + AudioExtractionConfigurationDict, AudioSegmentationConfiguration, + AudioSegmentationConfigurationDict, AutoToolChoice, + AutoToolChoiceDict, BedrockDataAutomationConfiguration, + BedrockDataAutomationConfigurationDict, BedrockEmbeddingModelConfiguration, + BedrockEmbeddingModelConfigurationDict, BedrockFoundationModelConfiguration, + BedrockFoundationModelConfigurationDict, BedrockFoundationModelContextEnrichmentConfiguration, + BedrockFoundationModelContextEnrichmentConfigurationDict, ByteContentDoc, + ByteContentDocDict, CachePointBlock, + CachePointBlockDict, ChatPromptTemplateConfiguration, + ChatPromptTemplateConfigurationDict, ChunkingConfiguration, + ChunkingConfigurationDict, CollectorFlowNodeConfiguration, + CollectorFlowNodeConfigurationDict, ConditionFlowNodeConfiguration, + ConditionFlowNodeConfigurationDict, ConfluenceCrawlerConfiguration, + ConfluenceCrawlerConfigurationDict, ConfluenceDataSourceConfiguration, + ConfluenceDataSourceConfigurationDict, ConfluenceSourceConfiguration, + ConfluenceSourceConfigurationDict, + ContentBlockDict, ContextEnrichmentConfiguration, + ContextEnrichmentConfigurationDict, CrawlFilterConfiguration, + CrawlFilterConfigurationDict, CreateAgentActionGroupInput, + CreateAgentActionGroupInputDict, CreateAgentActionGroupOutput, CreateAgentAliasInput, + CreateAgentAliasInputDict, CreateAgentAliasOutput, CreateAgentInput, + CreateAgentInputDict, CreateAgentOutput, CreateDataSourceInput, + CreateDataSourceInputDict, CreateDataSourceOutput, CreateFlowAliasInput, + CreateFlowAliasInputDict, CreateFlowAliasOutput, CreateFlowInput, + CreateFlowInputDict, CreateFlowOutput, CreateFlowVersionInput, + CreateFlowVersionInputDict, CreateFlowVersionOutput, CreateKnowledgeBaseInput, + CreateKnowledgeBaseInputDict, CreateKnowledgeBaseOutput, CreatePromptInput, + CreatePromptInputDict, CreatePromptOutput, CreatePromptVersionInput, + CreatePromptVersionInputDict, CreatePromptVersionOutput, CreateRetrievalInstructionInput, + CreateRetrievalInstructionInputDict, CreateRetrievalInstructionOutput, CreateRetrievalInstructionVersionInput, + CreateRetrievalInstructionVersionInputDict, CreateRetrievalInstructionVersionOutput, CreateVpcConfigurationInput, + CreateVpcConfigurationInputDict, CreateVpcConfigurationOutput, CuratedQuery, + CuratedQueryDict, CustomContent, + CustomContentDict, CustomDocumentIdentifier, + CustomDocumentIdentifierDict, CustomOrchestration, + CustomOrchestrationDict, CustomS3Location, + CustomS3LocationDict, CustomTransformationConfiguration, + CustomTransformationConfigurationDict, CyclicConnectionFlowValidationDetails, DailySchedule, + DailyScheduleDict, DataSource, DataSourceConfiguration, + DataSourceConfigurationDict, DataSourceSummary, + DayOfMonthDict, DeleteAgentActionGroupInput, + DeleteAgentActionGroupInputDict, DeleteAgentActionGroupOutput, DeleteAgentAliasInput, + DeleteAgentAliasInputDict, DeleteAgentAliasOutput, DeleteAgentInput, + DeleteAgentInputDict, DeleteAgentOutput, DeleteAgentVersionInput, + DeleteAgentVersionInputDict, DeleteAgentVersionOutput, DeleteDataSourceInput, + DeleteDataSourceInputDict, DeleteDataSourceOutput, DeleteFlowAliasInput, + DeleteFlowAliasInputDict, DeleteFlowAliasOutput, DeleteFlowInput, + DeleteFlowInputDict, DeleteFlowOutput, DeleteFlowVersionInput, + DeleteFlowVersionInputDict, DeleteFlowVersionOutput, DeleteKnowledgeBaseDocumentsInput, + DeleteKnowledgeBaseDocumentsInputDict, DeleteKnowledgeBaseDocumentsOutput, DeleteKnowledgeBaseInput, + DeleteKnowledgeBaseInputDict, DeleteKnowledgeBaseOutput, DeletePromptInput, + DeletePromptInputDict, DeletePromptOutput, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DeleteRetrievalInstructionInput, + DeleteRetrievalInstructionInputDict, DeleteRetrievalInstructionOutput, DeleteVpcConfigurationInput, + DeleteVpcConfigurationInputDict, DeleteVpcConfigurationOutput, DeletionProtectionConfiguration, + DeletionProtectionConfigurationDict, DisassociateAgentCollaboratorInput, + DisassociateAgentCollaboratorInputDict, DisassociateAgentCollaboratorOutput, DisassociateAgentKnowledgeBaseInput, + DisassociateAgentKnowledgeBaseInputDict, DisassociateAgentKnowledgeBaseOutput, DocumentAccessControlEntry, + DocumentAccessControlEntryDict, DocumentContent, + DocumentContentDict, DocumentIdentifier, + DocumentIdentifierDict, DocumentMetadata, + DocumentMetadataDict, DuplicateConditionExpressionFlowValidationDetails, DuplicateConnectionsFlowValidationDetails, EmbeddingModelConfiguration, + EmbeddingModelConfigurationDict, EnrichmentStrategyConfiguration, + EnrichmentStrategyConfigurationDict, FieldForReranking, + FieldForRerankingDict, FixedSizeChunkingConfiguration, + FixedSizeChunkingConfigurationDict, FlowAliasConcurrencyConfiguration, + FlowAliasConcurrencyConfigurationDict, FlowAliasRoutingConfigurationListItem, + FlowAliasRoutingConfigurationListItemDict, FlowAliasSummary, FlowCondition, + FlowConditionDict, FlowConditionalConnectionConfiguration, + FlowConditionalConnectionConfigurationDict, FlowConnection, + FlowConnectionConfigurationDict, + FlowConnectionDict, FlowDataConnectionConfiguration, + FlowDataConnectionConfigurationDict, FlowDefinition, + FlowDefinitionDict, FlowNode, + FlowNodeConfigurationDict, + FlowNodeDict, FlowNodeInput, + FlowNodeInputDict, FlowNodeOutput, + FlowNodeOutputDict, FlowSummary, FlowValidation, FlowVersionSummary, Function, + FunctionDict, + FunctionSchemaDict, GetAgentActionGroupInput, + GetAgentActionGroupInputDict, GetAgentActionGroupOutput, GetAgentAliasInput, + GetAgentAliasInputDict, GetAgentAliasOutput, GetAgentCollaboratorInput, + GetAgentCollaboratorInputDict, GetAgentCollaboratorOutput, GetAgentInput, + GetAgentInputDict, GetAgentKnowledgeBaseInput, + GetAgentKnowledgeBaseInputDict, GetAgentKnowledgeBaseOutput, GetAgentOutput, GetAgentVersionInput, + GetAgentVersionInputDict, GetAgentVersionOutput, GetDataSourceInput, + GetDataSourceInputDict, GetDataSourceOutput, GetFlowAliasInput, + GetFlowAliasInputDict, GetFlowAliasOutput, GetFlowInput, + GetFlowInputDict, GetFlowOutput, GetFlowVersionInput, + GetFlowVersionInputDict, GetFlowVersionOutput, GetIngestionJobInput, + GetIngestionJobInputDict, GetIngestionJobOutput, GetKnowledgeBaseDocumentsInput, + GetKnowledgeBaseDocumentsInputDict, GetKnowledgeBaseDocumentsOutput, GetKnowledgeBaseInput, + GetKnowledgeBaseInputDict, GetKnowledgeBaseOutput, GetPromptInput, + GetPromptInputDict, GetPromptOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GetRetrievalInstructionInput, + GetRetrievalInstructionInputDict, GetRetrievalInstructionOutput, GetVpcConfigurationInput, + GetVpcConfigurationInputDict, GetVpcConfigurationOutput, GuardrailConfiguration, + GuardrailConfigurationDict, HierarchicalChunkingConfiguration, + HierarchicalChunkingConfigurationDict, HierarchicalChunkingLevelConfiguration, + HierarchicalChunkingLevelConfigurationDict, ImageExtractionConfiguration, + ImageExtractionConfigurationDict, IncompatibleConnectionDataTypeFlowValidationDetails, InferenceConfiguration, + InferenceConfigurationDict, IngestKnowledgeBaseDocumentsInput, + IngestKnowledgeBaseDocumentsInputDict, IngestKnowledgeBaseDocumentsOutput, IngestionJob, IngestionJobFilter, + IngestionJobFilterDict, IngestionJobSortBy, + IngestionJobSortByDict, IngestionJobStatistics, IngestionJobSummary, InlineCodeFlowNodeConfiguration, + InlineCodeFlowNodeConfigurationDict, InlineContent, + InlineContentDict, InputFlowNodeConfiguration, + InputFlowNodeConfigurationDict, IntermediateStorage, + IntermediateStorageDict, InvalidLoopBoundaryFlowValidationDetails, IteratorFlowNodeConfiguration, + IteratorFlowNodeConfigurationDict, KendraKnowledgeBaseConfiguration, + KendraKnowledgeBaseConfigurationDict, KnowledgeBase, KnowledgeBaseConfiguration, + KnowledgeBaseConfigurationDict, KnowledgeBaseDocument, KnowledgeBaseDocumentDetail, + KnowledgeBaseDocumentDict, KnowledgeBaseFlowNodeConfiguration, + KnowledgeBaseFlowNodeConfigurationDict, KnowledgeBaseOrchestrationConfiguration, + KnowledgeBaseOrchestrationConfigurationDict, KnowledgeBasePromptTemplate, + KnowledgeBasePromptTemplateDict, KnowledgeBaseSummary, LambdaFunctionFlowNodeConfiguration, + LambdaFunctionFlowNodeConfigurationDict, LastDayOfMonth, + LastDayOfMonthDict, LexFlowNodeConfiguration, + LexFlowNodeConfigurationDict, ListAgentActionGroupsInput, + ListAgentActionGroupsInputDict, ListAgentActionGroupsOutput, ListAgentAliasesInput, + ListAgentAliasesInputDict, ListAgentAliasesOutput, ListAgentCollaboratorsInput, + ListAgentCollaboratorsInputDict, ListAgentCollaboratorsOutput, ListAgentKnowledgeBasesInput, + ListAgentKnowledgeBasesInputDict, ListAgentKnowledgeBasesOutput, ListAgentVersionsInput, + ListAgentVersionsInputDict, ListAgentVersionsOutput, ListAgentsInput, + ListAgentsInputDict, ListAgentsOutput, ListDataSourcesInput, + ListDataSourcesInputDict, ListDataSourcesOutput, ListFlowAliasesInput, + ListFlowAliasesInputDict, ListFlowAliasesOutput, ListFlowVersionsInput, + ListFlowVersionsInputDict, ListFlowVersionsOutput, ListFlowsInput, + ListFlowsInputDict, ListFlowsOutput, ListIngestionJobsInput, + ListIngestionJobsInputDict, ListIngestionJobsOutput, ListKnowledgeBaseDocumentsInput, + ListKnowledgeBaseDocumentsInputDict, ListKnowledgeBaseDocumentsOutput, ListKnowledgeBasesInput, + ListKnowledgeBasesInputDict, ListKnowledgeBasesOutput, ListPromptsInput, + ListPromptsInputDict, ListPromptsOutput, ListRetrievalInstructionVersionsInput, + ListRetrievalInstructionVersionsInputDict, ListRetrievalInstructionVersionsOutput, ListRetrievalInstructionsInput, + ListRetrievalInstructionsInputDict, ListRetrievalInstructionsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ListVpcConfigurationsInput, + ListVpcConfigurationsInputDict, ListVpcConfigurationsOutput, LoopControllerFlowNodeConfiguration, + LoopControllerFlowNodeConfigurationDict, LoopFlowNodeConfiguration, + LoopFlowNodeConfigurationDict, LoopIncompatibleNodeTypeFlowValidationDetails, LoopInputFlowNodeConfiguration, + LoopInputFlowNodeConfigurationDict, MalformedConditionExpressionFlowValidationDetails, MalformedNodeInputExpressionFlowValidationDetails, ManagedKnowledgeBaseConfiguration, + ManagedKnowledgeBaseConfigurationDict, ManagedKnowledgeBaseConnectorConfiguration, + ManagedKnowledgeBaseConnectorConfigurationDict, MediaExtractionConfiguration, + MediaExtractionConfigurationDict, MemoryConfiguration, + MemoryConfigurationDict, Message, + MessageDict, MetadataAttribute, + MetadataAttributeDict, MetadataAttributeValue, + MetadataAttributeValueDict, MetadataConfiguration, + MetadataConfigurationDict, MetadataConfigurationForReranking, + MetadataConfigurationForRerankingDict, MismatchedNodeInputTypeFlowValidationDetails, MismatchedNodeOutputTypeFlowValidationDetails, MissingConnectionConfigurationFlowValidationDetails, @@ -266,101 +426,197 @@ MissingNodeOutputFlowValidationDetails, MissingStartingNodesFlowValidationDetails, MongoDbAtlasConfiguration, + MongoDbAtlasConfigurationDict, MongoDbAtlasFieldMapping, + MongoDbAtlasFieldMappingDict, MonthlySchedule, + MonthlyScheduleDict, MultipleLoopControllerNodesFlowValidationDetails, MultipleLoopInputNodesFlowValidationDetails, MultipleNodeInputConnectionsFlowValidationDetails, NeptuneAnalyticsConfiguration, + NeptuneAnalyticsConfigurationDict, NeptuneAnalyticsFieldMapping, + NeptuneAnalyticsFieldMappingDict, OpenSearchManagedClusterConfiguration, + OpenSearchManagedClusterConfigurationDict, OpenSearchManagedClusterFieldMapping, + OpenSearchManagedClusterFieldMappingDict, OpenSearchServerlessConfiguration, + OpenSearchServerlessConfigurationDict, OpenSearchServerlessFieldMapping, + OpenSearchServerlessFieldMappingDict, + OrchestrationExecutorDict, OutputFlowNodeConfiguration, + OutputFlowNodeConfigurationDict, ParameterDetail, + ParameterDetailDict, ParsingConfiguration, + ParsingConfigurationDict, ParsingPrompt, + ParsingPromptDict, PatternObjectFilter, PatternObjectFilterConfiguration, + PatternObjectFilterConfigurationDict, + PatternObjectFilterDict, PerformanceConfiguration, + PerformanceConfigurationDict, PineconeConfiguration, + PineconeConfigurationDict, PineconeFieldMapping, + PineconeFieldMappingDict, PrepareAgentInput, + PrepareAgentInputDict, PrepareAgentOutput, PrepareFlowInput, + PrepareFlowInputDict, PrepareFlowOutput, PromptAgentResource, + PromptAgentResourceDict, PromptConfiguration, + PromptConfigurationDict, PromptFlowNodeConfiguration, + PromptFlowNodeConfigurationDict, PromptFlowNodeInlineConfiguration, + PromptFlowNodeInlineConfigurationDict, PromptFlowNodeResourceConfiguration, + PromptFlowNodeResourceConfigurationDict, + PromptFlowNodeSourceConfigurationDict, + PromptGenAiResourceDict, + PromptInferenceConfigurationDict, PromptInputVariable, + PromptInputVariableDict, PromptMetadataEntry, + PromptMetadataEntryDict, PromptModelInferenceConfiguration, + PromptModelInferenceConfigurationDict, PromptOverrideConfiguration, + PromptOverrideConfigurationDict, PromptSummary, + PromptTemplateConfigurationDict, PromptVariant, + PromptVariantDict, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, QueryGenerationColumn, + QueryGenerationColumnDict, QueryGenerationConfiguration, + QueryGenerationConfigurationDict, QueryGenerationContext, + QueryGenerationContextDict, QueryGenerationTable, + QueryGenerationTableDict, RdsConfiguration, + RdsConfigurationDict, RdsFieldMapping, + RdsFieldMappingDict, RedisEnterpriseCloudConfiguration, + RedisEnterpriseCloudConfigurationDict, RedisEnterpriseCloudFieldMapping, + RedisEnterpriseCloudFieldMappingDict, RedshiftConfiguration, + RedshiftConfigurationDict, RedshiftProvisionedAuthConfiguration, + RedshiftProvisionedAuthConfigurationDict, RedshiftProvisionedConfiguration, + RedshiftProvisionedConfigurationDict, RedshiftQueryEngineAwsDataCatalogStorageConfiguration, + RedshiftQueryEngineAwsDataCatalogStorageConfigurationDict, RedshiftQueryEngineConfiguration, + RedshiftQueryEngineConfigurationDict, RedshiftQueryEngineRedshiftStorageConfiguration, + RedshiftQueryEngineRedshiftStorageConfigurationDict, RedshiftQueryEngineStorageConfiguration, + RedshiftQueryEngineStorageConfigurationDict, RedshiftServerlessAuthConfiguration, + RedshiftServerlessAuthConfigurationDict, RedshiftServerlessConfiguration, + RedshiftServerlessConfigurationDict, + RerankingMetadataSelectiveModeConfigurationDict, RetrievalFlowNodeConfiguration, + RetrievalFlowNodeConfigurationDict, RetrievalFlowNodeS3Configuration, + RetrievalFlowNodeS3ConfigurationDict, + RetrievalFlowNodeServiceConfigurationDict, RetrievalInstructionContent, + RetrievalInstructionContentDict, RetrievalInstructionFailureReason, RetrievalInstructionSummary, RetrievalInstructionVersionSummary, S3Content, + S3ContentDict, S3DataSourceConfiguration, + S3DataSourceConfigurationDict, S3Identifier, + S3IdentifierDict, S3Location, + S3LocationDict, S3VectorsConfiguration, + S3VectorsConfigurationDict, SalesforceCrawlerConfiguration, + SalesforceCrawlerConfigurationDict, SalesforceDataSourceConfiguration, + SalesforceDataSourceConfigurationDict, SalesforceSourceConfiguration, + SalesforceSourceConfigurationDict, SeedUrl, + SeedUrlDict, SemanticChunkingConfiguration, + SemanticChunkingConfigurationDict, ServerSideEncryptionConfiguration, + ServerSideEncryptionConfigurationDict, SessionSummaryConfiguration, + SessionSummaryConfigurationDict, SharePointCrawlerConfiguration, + SharePointCrawlerConfigurationDict, SharePointDataSourceConfiguration, + SharePointDataSourceConfigurationDict, SharePointSourceConfiguration, + SharePointSourceConfigurationDict, SpecificToolChoice, + SpecificToolChoiceDict, SqlKnowledgeBaseConfiguration, + SqlKnowledgeBaseConfigurationDict, StartIngestionJobInput, + StartIngestionJobInputDict, StartIngestionJobOutput, StopIngestionJobInput, + StopIngestionJobInputDict, StopIngestionJobOutput, StorageConfiguration, + StorageConfigurationDict, StorageFlowNodeConfiguration, + StorageFlowNodeConfigurationDict, StorageFlowNodeS3Configuration, + StorageFlowNodeS3ConfigurationDict, + StorageFlowNodeServiceConfigurationDict, SupplementalDataStorageConfiguration, + SupplementalDataStorageConfigurationDict, SupplementalDataStorageLocation, + SupplementalDataStorageLocationDict, + SyncScheduleDict, + SystemContentBlockDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TextContentDoc, + TextContentDocDict, TextPromptTemplateConfiguration, + TextPromptTemplateConfigurationDict, + ToolChoiceDict, ToolConfiguration, + ToolConfigurationDict, + ToolDict, + ToolInputSchemaDict, ToolSpecification, + ToolSpecificationDict, Transformation, + TransformationDict, TransformationFunction, + TransformationFunctionDict, TransformationLambdaConfiguration, + TransformationLambdaConfigurationDict, UnfulfilledNodeInputFlowValidationDetails, UnknownConnectionConditionFlowValidationDetails, UnknownConnectionSourceFlowValidationDetails, @@ -373,53 +629,81 @@ UnsatisfiedConnectionConditionsFlowValidationDetails, UnspecifiedFlowValidationDetails, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAgentActionGroupInput, + UpdateAgentActionGroupInputDict, UpdateAgentActionGroupOutput, UpdateAgentAliasInput, + UpdateAgentAliasInputDict, UpdateAgentAliasOutput, UpdateAgentCollaboratorInput, + UpdateAgentCollaboratorInputDict, UpdateAgentCollaboratorOutput, UpdateAgentInput, + UpdateAgentInputDict, UpdateAgentKnowledgeBaseInput, + UpdateAgentKnowledgeBaseInputDict, UpdateAgentKnowledgeBaseOutput, UpdateAgentOutput, UpdateDataSourceInput, + UpdateDataSourceInputDict, UpdateDataSourceOutput, UpdateFlowAliasInput, + UpdateFlowAliasInputDict, UpdateFlowAliasOutput, UpdateFlowInput, + UpdateFlowInputDict, UpdateFlowOutput, UpdateKnowledgeBaseInput, + UpdateKnowledgeBaseInputDict, UpdateKnowledgeBaseOutput, UpdatePromptInput, + UpdatePromptInputDict, UpdatePromptOutput, UpdateRetrievalInstructionInput, + UpdateRetrievalInstructionInputDict, UpdateRetrievalInstructionOutput, UrlConfiguration, + UrlConfigurationDict, ValidateFlowDefinitionInput, + ValidateFlowDefinitionInputDict, ValidateFlowDefinitionOutput, ValidationExceptionField, VectorIngestionConfiguration, + VectorIngestionConfigurationDict, VectorKnowledgeBaseConfiguration, + VectorKnowledgeBaseConfigurationDict, VectorSearchBedrockRerankingConfiguration, + VectorSearchBedrockRerankingConfigurationDict, VectorSearchBedrockRerankingModelConfiguration, + VectorSearchBedrockRerankingModelConfigurationDict, VectorSearchRerankingConfiguration, + VectorSearchRerankingConfigurationDict, VideoConfiguration, + VideoConfigurationDict, VideoExtractionConfiguration, + VideoExtractionConfigurationDict, VideoSegmentationConfiguration, + VideoSegmentationConfigurationDict, VpcConfiguration, VpcConfigurationSummary, WebCrawlerConfiguration, + WebCrawlerConfigurationDict, WebCrawlerLimits, + WebCrawlerLimitsDict, WebDataSourceConfiguration, + WebDataSourceConfigurationDict, WebSourceConfiguration, + WebSourceConfigurationDict, WeeklySchedule, + WeeklyScheduleDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -1066,3 +1350,1436 @@ WebDataSourceConfiguration(source_configuration=_) WebSourceConfiguration(url_configuration=_) WeeklySchedule(day_of_week=_) +_params_0: ActionGroupExecutorDict = {"lambda_": _} +_params_1: AgentAliasRoutingConfigurationListItemDict = {} +_params_2: AgentDescriptorDict = {} +_params_3: AgentFlowNodeConfigurationDict = {} +_params_4: AnyToolChoiceDict = {} +_params_5: APISchemaDict = {"s3": _} +_params_6: AssociateAgentCollaboratorInputDict = { + "agent_id": _, + "agent_version": _, + "agent_descriptor": _, + "collaborator_name": _, + "collaboration_instruction": _, +} +_params_7: AssociateAgentKnowledgeBaseInputDict = { + "agent_id": _, + "agent_version": _, + "knowledge_base_id": _, + "description": _, +} +_params_8: AudioConfigurationDict = {"segmentation_configuration": _} +_params_9: AudioExtractionConfigurationDict = {"audio_extraction_status": _} +_params_10: AudioSegmentationConfigurationDict = {"fixed_length_duration": _} +_params_11: AutoToolChoiceDict = {} +_params_12: BedrockDataAutomationConfigurationDict = {} +_params_13: BedrockEmbeddingModelConfigurationDict = {} +_params_14: BedrockFoundationModelConfigurationDict = {"model_arn": _} +_params_15: BedrockFoundationModelContextEnrichmentConfigurationDict = { + "enrichment_strategy_configuration": _, + "model_arn": _, +} +_params_16: ByteContentDocDict = {"mime_type": _, "data": _} +_params_17: CachePointBlockDict = {"type": _} +_params_18: ChatPromptTemplateConfigurationDict = {"messages": _} +_params_19: ChunkingConfigurationDict = {"chunking_strategy": _} +_params_20: CollectorFlowNodeConfigurationDict = {} +_params_21: ConditionFlowNodeConfigurationDict = {"conditions": _} +_params_22: ConfluenceCrawlerConfigurationDict = {} +_params_23: ConfluenceDataSourceConfigurationDict = {"source_configuration": _} +_params_24: ConfluenceSourceConfigurationDict = { + "host_url": _, + "host_type": _, + "auth_type": _, + "credentials_secret_arn": _, +} +_params_25: ContentBlockDict = {"text": _} +_params_26: ContextEnrichmentConfigurationDict = {"type": _} +_params_27: CrawlFilterConfigurationDict = {"type": _} +_params_28: CreateAgentActionGroupInputDict = { + "agent_id": _, + "agent_version": _, + "action_group_name": _, +} +_params_29: CreateAgentAliasInputDict = {"agent_id": _, "agent_alias_name": _} +_params_30: CreateAgentInputDict = {"agent_name": _} +_params_31: CreateDataSourceInputDict = { + "knowledge_base_id": _, + "name": _, + "data_source_configuration": _, +} +_params_32: CreateFlowAliasInputDict = { + "name": _, + "routing_configuration": _, + "flow_identifier": _, +} +_params_33: CreateFlowInputDict = {"name": _, "execution_role_arn": _} +_params_34: CreateFlowVersionInputDict = {"flow_identifier": _} +_params_35: CreateKnowledgeBaseInputDict = { + "name": _, + "role_arn": _, + "knowledge_base_configuration": _, +} +_params_36: CreatePromptInputDict = {"name": _} +_params_37: CreatePromptVersionInputDict = {"prompt_identifier": _} +_params_38: CreateRetrievalInstructionInputDict = {"name": _, "instruction": _} +_params_39: CreateRetrievalInstructionVersionInputDict = {"retrieval_instruction_id": _} +_params_40: CreateVpcConfigurationInputDict = { + "knowledge_base_id": _, + "vpc_id": _, + "subnet_ids": _, + "resource_target": _, + "port": _, + "protocol": _, + "resolution_mode": _, +} +_params_41: CuratedQueryDict = {"natural_language": _, "sql": _} +_params_42: CustomContentDict = {"custom_document_identifier": _, "source_type": _} +_params_43: CustomDocumentIdentifierDict = {"id": _} +_params_44: CustomOrchestrationDict = {} +_params_45: CustomS3LocationDict = {"uri": _} +_params_46: CustomTransformationConfigurationDict = { + "intermediate_storage": _, + "transformations": _, +} +_params_47: DailyScheduleDict = {} +_params_48: DataSourceConfigurationDict = {"type": _} +_params_49: DayOfMonthDict = {"day_number": _} +_params_50: DeleteAgentActionGroupInputDict = { + "agent_id": _, + "agent_version": _, + "action_group_id": _, +} +_params_51: DeleteAgentAliasInputDict = {"agent_id": _, "agent_alias_id": _} +_params_52: DeleteAgentInputDict = {"agent_id": _} +_params_53: DeleteAgentVersionInputDict = {"agent_id": _, "agent_version": _} +_params_54: DeleteDataSourceInputDict = {"knowledge_base_id": _, "data_source_id": _} +_params_55: DeleteFlowAliasInputDict = {"flow_identifier": _, "alias_identifier": _} +_params_56: DeleteFlowInputDict = {"flow_identifier": _} +_params_57: DeleteFlowVersionInputDict = {"flow_identifier": _, "flow_version": _} +_params_58: DeleteKnowledgeBaseDocumentsInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "document_identifiers": _, +} +_params_59: DeleteKnowledgeBaseInputDict = {"knowledge_base_id": _} +_params_60: DeletePromptInputDict = {"prompt_identifier": _} +_params_61: DeleteResourcePolicyInputDict = {"resource_arn": _} +_params_62: DeleteRetrievalInstructionInputDict = {"retrieval_instruction_id": _} +_params_63: DeleteVpcConfigurationInputDict = { + "knowledge_base_id": _, + "vpc_configuration_id": _, +} +_params_64: DeletionProtectionConfigurationDict = {"deletion_protection_status": _} +_params_65: DisassociateAgentCollaboratorInputDict = { + "agent_id": _, + "agent_version": _, + "collaborator_id": _, +} +_params_66: DisassociateAgentKnowledgeBaseInputDict = { + "agent_id": _, + "agent_version": _, + "knowledge_base_id": _, +} +_params_67: DocumentAccessControlEntryDict = {"name": _, "type": _, "access": _} +_params_68: DocumentContentDict = {"data_source_type": _} +_params_69: DocumentIdentifierDict = {"data_source_type": _} +_params_70: DocumentMetadataDict = {"type": _} +_params_71: EmbeddingModelConfigurationDict = {} +_params_72: EnrichmentStrategyConfigurationDict = {"method": _} +_params_73: FieldForRerankingDict = {"field_name": _} +_params_74: FixedSizeChunkingConfigurationDict = { + "max_tokens": _, + "overlap_percentage": _, +} +_params_75: FlowAliasConcurrencyConfigurationDict = {"type": _} +_params_76: FlowAliasRoutingConfigurationListItemDict = {} +_params_77: FlowConditionDict = {"name": _} +_params_78: FlowConditionalConnectionConfigurationDict = {"condition": _} +_params_79: FlowConnectionDict = {"type": _, "name": _, "source": _, "target": _} +_params_80: FlowConnectionConfigurationDict = {"data": _} +_params_81: FlowDataConnectionConfigurationDict = { + "source_output": _, + "target_input": _, +} +_params_82: FlowDefinitionDict = {} +_params_83: FlowNodeDict = {"name": _, "type": _} +_params_84: FlowNodeConfigurationDict = {"input": _} +_params_85: FlowNodeInputDict = {"name": _, "type": _, "expression": _} +_params_86: FlowNodeOutputDict = {"name": _, "type": _} +_params_87: FunctionDict = {"name": _} +_params_88: FunctionSchemaDict = {"functions": _} +_params_89: GetAgentActionGroupInputDict = { + "agent_id": _, + "agent_version": _, + "action_group_id": _, +} +_params_90: GetAgentAliasInputDict = {"agent_id": _, "agent_alias_id": _} +_params_91: GetAgentCollaboratorInputDict = { + "agent_id": _, + "agent_version": _, + "collaborator_id": _, +} +_params_92: GetAgentInputDict = {"agent_id": _} +_params_93: GetAgentKnowledgeBaseInputDict = { + "agent_id": _, + "agent_version": _, + "knowledge_base_id": _, +} +_params_94: GetAgentVersionInputDict = {"agent_id": _, "agent_version": _} +_params_95: GetDataSourceInputDict = {"knowledge_base_id": _, "data_source_id": _} +_params_96: GetFlowAliasInputDict = {"flow_identifier": _, "alias_identifier": _} +_params_97: GetFlowInputDict = {"flow_identifier": _} +_params_98: GetFlowVersionInputDict = {"flow_identifier": _, "flow_version": _} +_params_99: GetIngestionJobInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "ingestion_job_id": _, +} +_params_100: GetKnowledgeBaseDocumentsInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "document_identifiers": _, +} +_params_101: GetKnowledgeBaseInputDict = {"knowledge_base_id": _} +_params_102: GetPromptInputDict = {"prompt_identifier": _} +_params_103: GetResourcePolicyInputDict = {"resource_arn": _} +_params_104: GetRetrievalInstructionInputDict = {"retrieval_instruction_id": _} +_params_105: GetVpcConfigurationInputDict = { + "knowledge_base_id": _, + "vpc_configuration_id": _, +} +_params_106: GuardrailConfigurationDict = {} +_params_107: HierarchicalChunkingConfigurationDict = { + "level_configurations": _, + "overlap_tokens": _, +} +_params_108: HierarchicalChunkingLevelConfigurationDict = {"max_tokens": _} +_params_109: ImageExtractionConfigurationDict = {"image_extraction_status": _} +_params_110: InferenceConfigurationDict = {} +_params_111: IngestionJobFilterDict = {"attribute": _, "operator": _, "values": _} +_params_112: IngestionJobSortByDict = {"attribute": _, "order": _} +_params_113: IngestKnowledgeBaseDocumentsInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "documents": _, +} +_params_114: InlineCodeFlowNodeConfigurationDict = {} +_params_115: InlineContentDict = {"type": _} +_params_116: InputFlowNodeConfigurationDict = {} +_params_117: IntermediateStorageDict = {"s3_location": _} +_params_118: IteratorFlowNodeConfigurationDict = {} +_params_119: KendraKnowledgeBaseConfigurationDict = {"kendra_index_arn": _} +_params_120: KnowledgeBaseConfigurationDict = {"type": _} +_params_121: KnowledgeBaseDocumentDict = {"content": _} +_params_122: KnowledgeBaseFlowNodeConfigurationDict = {} +_params_123: KnowledgeBaseOrchestrationConfigurationDict = {} +_params_124: KnowledgeBasePromptTemplateDict = {} +_params_125: LambdaFunctionFlowNodeConfigurationDict = {} +_params_126: LastDayOfMonthDict = {} +_params_127: LexFlowNodeConfigurationDict = {} +_params_128: ListAgentActionGroupsInputDict = {"agent_id": _, "agent_version": _} +_params_129: ListAgentAliasesInputDict = {"agent_id": _} +_params_130: ListAgentCollaboratorsInputDict = {"agent_id": _, "agent_version": _} +_params_131: ListAgentKnowledgeBasesInputDict = {"agent_id": _, "agent_version": _} +_params_132: ListAgentsInputDict = {} +_params_133: ListAgentVersionsInputDict = {"agent_id": _} +_params_134: ListDataSourcesInputDict = {"knowledge_base_id": _} +_params_135: ListFlowAliasesInputDict = {"flow_identifier": _} +_params_136: ListFlowsInputDict = {} +_params_137: ListFlowVersionsInputDict = {"flow_identifier": _} +_params_138: ListIngestionJobsInputDict = {"knowledge_base_id": _, "data_source_id": _} +_params_139: ListKnowledgeBaseDocumentsInputDict = { + "knowledge_base_id": _, + "data_source_id": _, +} +_params_140: ListKnowledgeBasesInputDict = {} +_params_141: ListPromptsInputDict = {} +_params_142: ListRetrievalInstructionsInputDict = {} +_params_143: ListRetrievalInstructionVersionsInputDict = {"retrieval_instruction_id": _} +_params_144: ListTagsForResourceInputDict = {"resource_arn": _} +_params_145: ListVpcConfigurationsInputDict = {"knowledge_base_id": _} +_params_146: LoopControllerFlowNodeConfigurationDict = {"continue_condition": _} +_params_147: LoopFlowNodeConfigurationDict = {"definition": _} +_params_148: LoopInputFlowNodeConfigurationDict = {} +_params_149: ManagedKnowledgeBaseConfigurationDict = {} +_params_150: ManagedKnowledgeBaseConnectorConfigurationDict = {} +_params_151: MediaExtractionConfigurationDict = {} +_params_152: MemoryConfigurationDict = {"enabled_memory_types": _} +_params_153: MessageDict = {"role": _, "content": _} +_params_154: MetadataAttributeDict = {"key": _, "value": _} +_params_155: MetadataAttributeValueDict = {"type": _} +_params_156: MetadataConfigurationDict = {"name": _, "type": _, "searchability": _} +_params_157: MetadataConfigurationForRerankingDict = {"selection_mode": _} +_params_158: MongoDbAtlasConfigurationDict = { + "endpoint": _, + "database_name": _, + "collection_name": _, + "vector_index_name": _, + "credentials_secret_arn": _, + "field_mapping": _, +} +_params_159: MongoDbAtlasFieldMappingDict = { + "vector_field": _, + "text_field": _, + "metadata_field": _, +} +_params_160: MonthlyScheduleDict = {"day_of_month": _} +_params_161: NeptuneAnalyticsConfigurationDict = {"graph_arn": _, "field_mapping": _} +_params_162: NeptuneAnalyticsFieldMappingDict = {"text_field": _, "metadata_field": _} +_params_163: OpenSearchManagedClusterConfigurationDict = { + "domain_endpoint": _, + "domain_arn": _, + "vector_index_name": _, + "field_mapping": _, +} +_params_164: OpenSearchManagedClusterFieldMappingDict = { + "vector_field": _, + "text_field": _, + "metadata_field": _, +} +_params_165: OpenSearchServerlessConfigurationDict = { + "collection_arn": _, + "vector_index_name": _, + "field_mapping": _, +} +_params_166: OpenSearchServerlessFieldMappingDict = { + "vector_field": _, + "text_field": _, + "metadata_field": _, +} +_params_167: OrchestrationExecutorDict = {"lambda_": _} +_params_168: OutputFlowNodeConfigurationDict = {} +_params_169: ParameterDetailDict = {"type": _} +_params_170: ParsingConfigurationDict = {"parsing_strategy": _} +_params_171: ParsingPromptDict = {"parsing_prompt_text": _} +_params_172: PatternObjectFilterDict = {"object_type": _} +_params_173: PatternObjectFilterConfigurationDict = {"filters": _} +_params_174: PerformanceConfigurationDict = {} +_params_175: PineconeConfigurationDict = { + "connection_string": _, + "credentials_secret_arn": _, + "field_mapping": _, +} +_params_176: PineconeFieldMappingDict = {"text_field": _, "metadata_field": _} +_params_177: PrepareAgentInputDict = {"agent_id": _} +_params_178: PrepareFlowInputDict = {"flow_identifier": _} +_params_179: PromptAgentResourceDict = {"agent_identifier": _} +_params_180: PromptConfigurationDict = {} +_params_181: PromptFlowNodeConfigurationDict = {"source_configuration": _} +_params_182: PromptFlowNodeInlineConfigurationDict = {"template_configuration": _} +_params_183: PromptFlowNodeResourceConfigurationDict = {} +_params_184: PromptFlowNodeSourceConfigurationDict = {"resource": _} +_params_185: PromptGenAiResourceDict = {"agent": _} +_params_186: PromptInferenceConfigurationDict = {"text": _} +_params_187: PromptInputVariableDict = {} +_params_188: PromptMetadataEntryDict = {"key": _, "value": _} +_params_189: PromptModelInferenceConfigurationDict = {} +_params_190: PromptOverrideConfigurationDict = {"prompt_configurations": _} +_params_191: PromptTemplateConfigurationDict = {"text": _} +_params_192: PromptVariantDict = { + "name": _, + "template_type": _, + "template_configuration": _, +} +_params_193: PutResourcePolicyInputDict = {"resource_arn": _, "policy": _} +_params_194: QueryGenerationColumnDict = {} +_params_195: QueryGenerationConfigurationDict = {} +_params_196: QueryGenerationContextDict = {} +_params_197: QueryGenerationTableDict = {"name": _} +_params_198: RdsConfigurationDict = { + "resource_arn": _, + "credentials_secret_arn": _, + "database_name": _, + "table_name": _, + "field_mapping": _, +} +_params_199: RdsFieldMappingDict = { + "primary_key_field": _, + "vector_field": _, + "text_field": _, + "metadata_field": _, +} +_params_200: RedisEnterpriseCloudConfigurationDict = { + "endpoint": _, + "vector_index_name": _, + "credentials_secret_arn": _, + "field_mapping": _, +} +_params_201: RedisEnterpriseCloudFieldMappingDict = { + "vector_field": _, + "text_field": _, + "metadata_field": _, +} +_params_202: RedshiftConfigurationDict = { + "storage_configurations": _, + "query_engine_configuration": _, +} +_params_203: RedshiftProvisionedAuthConfigurationDict = {"type": _} +_params_204: RedshiftProvisionedConfigurationDict = { + "cluster_identifier": _, + "auth_configuration": _, +} +_params_205: RedshiftQueryEngineAwsDataCatalogStorageConfigurationDict = { + "table_names": _ +} +_params_206: RedshiftQueryEngineConfigurationDict = {"type": _} +_params_207: RedshiftQueryEngineRedshiftStorageConfigurationDict = {"database_name": _} +_params_208: RedshiftQueryEngineStorageConfigurationDict = {"type": _} +_params_209: RedshiftServerlessAuthConfigurationDict = {"type": _} +_params_210: RedshiftServerlessConfigurationDict = { + "workgroup_arn": _, + "auth_configuration": _, +} +_params_211: RerankingMetadataSelectiveModeConfigurationDict = {"fields_to_include": _} +_params_212: RetrievalFlowNodeConfigurationDict = {"service_configuration": _} +_params_213: RetrievalFlowNodeS3ConfigurationDict = {} +_params_214: RetrievalFlowNodeServiceConfigurationDict = {"s3": _} +_params_215: RetrievalInstructionContentDict = {} +_params_216: S3ContentDict = {"s3_location": _} +_params_217: S3DataSourceConfigurationDict = {"bucket_arn": _} +_params_218: S3IdentifierDict = {} +_params_219: S3LocationDict = {"uri": _} +_params_220: S3VectorsConfigurationDict = {} +_params_221: SalesforceCrawlerConfigurationDict = {} +_params_222: SalesforceDataSourceConfigurationDict = {"source_configuration": _} +_params_223: SalesforceSourceConfigurationDict = { + "host_url": _, + "auth_type": _, + "credentials_secret_arn": _, +} +_params_224: SeedUrlDict = {} +_params_225: SemanticChunkingConfigurationDict = { + "max_tokens": _, + "buffer_size": _, + "breakpoint_percentile_threshold": _, +} +_params_226: ServerSideEncryptionConfigurationDict = {} +_params_227: SessionSummaryConfigurationDict = {} +_params_228: SharePointCrawlerConfigurationDict = {} +_params_229: SharePointDataSourceConfigurationDict = {"source_configuration": _} +_params_230: SharePointSourceConfigurationDict = { + "domain": _, + "site_urls": _, + "host_type": _, + "auth_type": _, + "credentials_secret_arn": _, +} +_params_231: SpecificToolChoiceDict = {"name": _} +_params_232: SqlKnowledgeBaseConfigurationDict = {"type": _} +_params_233: StartIngestionJobInputDict = {"knowledge_base_id": _, "data_source_id": _} +_params_234: StopIngestionJobInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "ingestion_job_id": _, +} +_params_235: StorageConfigurationDict = {"type": _} +_params_236: StorageFlowNodeConfigurationDict = {"service_configuration": _} +_params_237: StorageFlowNodeS3ConfigurationDict = {} +_params_238: StorageFlowNodeServiceConfigurationDict = {"s3": _} +_params_239: SupplementalDataStorageConfigurationDict = {"storage_locations": _} +_params_240: SupplementalDataStorageLocationDict = {"type": _} +_params_241: SyncScheduleDict = {"daily": _} +_params_242: SystemContentBlockDict = {"text": _} +_params_243: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_244: TextContentDocDict = {"data": _} +_params_245: TextPromptTemplateConfigurationDict = {"text": _} +_params_246: ToolDict = {"tool_spec": _} +_params_247: ToolChoiceDict = {"auto": _} +_params_248: ToolConfigurationDict = {"tools": _} +_params_249: ToolInputSchemaDict = {"json": _} +_params_250: ToolSpecificationDict = {"name": _, "input_schema": _} +_params_251: TransformationDict = {"transformation_function": _, "step_to_apply": _} +_params_252: TransformationFunctionDict = {"transformation_lambda_configuration": _} +_params_253: TransformationLambdaConfigurationDict = {"lambda_arn": _} +_params_254: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_255: UpdateAgentActionGroupInputDict = { + "agent_id": _, + "agent_version": _, + "action_group_id": _, + "action_group_name": _, +} +_params_256: UpdateAgentAliasInputDict = { + "agent_id": _, + "agent_alias_id": _, + "agent_alias_name": _, +} +_params_257: UpdateAgentCollaboratorInputDict = { + "agent_id": _, + "agent_version": _, + "collaborator_id": _, + "agent_descriptor": _, + "collaborator_name": _, + "collaboration_instruction": _, +} +_params_258: UpdateAgentInputDict = { + "agent_id": _, + "agent_name": _, + "foundation_model": _, + "agent_resource_role_arn": _, +} +_params_259: UpdateAgentKnowledgeBaseInputDict = { + "agent_id": _, + "agent_version": _, + "knowledge_base_id": _, +} +_params_260: UpdateDataSourceInputDict = { + "knowledge_base_id": _, + "data_source_id": _, + "name": _, + "data_source_configuration": _, +} +_params_261: UpdateFlowAliasInputDict = { + "name": _, + "routing_configuration": _, + "flow_identifier": _, + "alias_identifier": _, +} +_params_262: UpdateFlowInputDict = { + "name": _, + "execution_role_arn": _, + "flow_identifier": _, +} +_params_263: UpdateKnowledgeBaseInputDict = { + "knowledge_base_id": _, + "name": _, + "role_arn": _, + "knowledge_base_configuration": _, +} +_params_264: UpdatePromptInputDict = {"name": _, "prompt_identifier": _} +_params_265: UpdateRetrievalInstructionInputDict = { + "retrieval_instruction_id": _, + "instruction": _, +} +_params_266: UrlConfigurationDict = {} +_params_267: ValidateFlowDefinitionInputDict = {"definition": _} +_params_268: VectorIngestionConfigurationDict = {} +_params_269: VectorKnowledgeBaseConfigurationDict = {"embedding_model_arn": _} +_params_270: VectorSearchBedrockRerankingConfigurationDict = {"model_configuration": _} +_params_271: VectorSearchBedrockRerankingModelConfigurationDict = {"model_arn": _} +_params_272: VectorSearchRerankingConfigurationDict = {"type": _} +_params_273: VideoConfigurationDict = {"segmentation_configuration": _} +_params_274: VideoExtractionConfigurationDict = {"video_extraction_status": _} +_params_275: VideoSegmentationConfigurationDict = {"fixed_length_duration": _} +_params_276: WebCrawlerConfigurationDict = {} +_params_277: WebCrawlerLimitsDict = {} +_params_278: WebDataSourceConfigurationDict = {"source_configuration": _} +_params_279: WebSourceConfigurationDict = {"url_configuration": _} +_params_280: WeeklyScheduleDict = {"day_of_week": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncBedrockAgentClient) -> None: + pass + await client.associate_agent_collaborator( + agent_id=_, + agent_version=_, + agent_descriptor=_, + collaborator_name=_, + collaboration_instruction=_, + ) + await client.associate_agent_collaborator( + **_request(AssociateAgentCollaboratorInputDict) + ) + await client.associate_agent_collaborator(_request(AssociateAgentCollaboratorInput)) + await client.associate_agent_collaborator( + _request(AssociateAgentCollaboratorInputDict) + ) + await client.associate_agent_knowledge_base( + agent_id=_, agent_version=_, knowledge_base_id=_, description=_ + ) + await client.associate_agent_knowledge_base( + **_request(AssociateAgentKnowledgeBaseInputDict) + ) + await client.associate_agent_knowledge_base( + _request(AssociateAgentKnowledgeBaseInput) + ) + await client.associate_agent_knowledge_base( + _request(AssociateAgentKnowledgeBaseInputDict) + ) + await client.create_agent(agent_name=_) + await client.create_agent(**_request(CreateAgentInputDict)) + await client.create_agent(_request(CreateAgentInput)) + await client.create_agent(_request(CreateAgentInputDict)) + await client.create_agent_action_group( + agent_id=_, agent_version=_, action_group_name=_ + ) + await client.create_agent_action_group(**_request(CreateAgentActionGroupInputDict)) + await client.create_agent_action_group(_request(CreateAgentActionGroupInput)) + await client.create_agent_action_group(_request(CreateAgentActionGroupInputDict)) + await client.create_agent_alias(agent_id=_, agent_alias_name=_) + await client.create_agent_alias(**_request(CreateAgentAliasInputDict)) + await client.create_agent_alias(_request(CreateAgentAliasInput)) + await client.create_agent_alias(_request(CreateAgentAliasInputDict)) + await client.create_data_source( + knowledge_base_id=_, name=_, data_source_configuration=_ + ) + await client.create_data_source(**_request(CreateDataSourceInputDict)) + await client.create_data_source(_request(CreateDataSourceInput)) + await client.create_data_source(_request(CreateDataSourceInputDict)) + await client.create_flow(name=_, execution_role_arn=_) + await client.create_flow(**_request(CreateFlowInputDict)) + await client.create_flow(_request(CreateFlowInput)) + await client.create_flow(_request(CreateFlowInputDict)) + await client.create_flow_alias(name=_, routing_configuration=_, flow_identifier=_) + await client.create_flow_alias(**_request(CreateFlowAliasInputDict)) + await client.create_flow_alias(_request(CreateFlowAliasInput)) + await client.create_flow_alias(_request(CreateFlowAliasInputDict)) + await client.create_flow_version(flow_identifier=_) + await client.create_flow_version(**_request(CreateFlowVersionInputDict)) + await client.create_flow_version(_request(CreateFlowVersionInput)) + await client.create_flow_version(_request(CreateFlowVersionInputDict)) + await client.create_knowledge_base( + name=_, role_arn=_, knowledge_base_configuration=_ + ) + await client.create_knowledge_base(**_request(CreateKnowledgeBaseInputDict)) + await client.create_knowledge_base(_request(CreateKnowledgeBaseInput)) + await client.create_knowledge_base(_request(CreateKnowledgeBaseInputDict)) + await client.create_prompt(name=_) + await client.create_prompt(**_request(CreatePromptInputDict)) + await client.create_prompt(_request(CreatePromptInput)) + await client.create_prompt(_request(CreatePromptInputDict)) + await client.create_prompt_version(prompt_identifier=_) + await client.create_prompt_version(**_request(CreatePromptVersionInputDict)) + await client.create_prompt_version(_request(CreatePromptVersionInput)) + await client.create_prompt_version(_request(CreatePromptVersionInputDict)) + await client.create_retrieval_instruction(name=_, instruction=_) + await client.create_retrieval_instruction( + **_request(CreateRetrievalInstructionInputDict) + ) + await client.create_retrieval_instruction(_request(CreateRetrievalInstructionInput)) + await client.create_retrieval_instruction( + _request(CreateRetrievalInstructionInputDict) + ) + await client.create_retrieval_instruction_version(retrieval_instruction_id=_) + await client.create_retrieval_instruction_version( + **_request(CreateRetrievalInstructionVersionInputDict) + ) + await client.create_retrieval_instruction_version( + _request(CreateRetrievalInstructionVersionInput) + ) + await client.create_retrieval_instruction_version( + _request(CreateRetrievalInstructionVersionInputDict) + ) + await client.create_vpc_configuration( + knowledge_base_id=_, + vpc_id=_, + subnet_ids=_, + resource_target=_, + port=_, + protocol=_, + resolution_mode=_, + ) + await client.create_vpc_configuration(**_request(CreateVpcConfigurationInputDict)) + await client.create_vpc_configuration(_request(CreateVpcConfigurationInput)) + await client.create_vpc_configuration(_request(CreateVpcConfigurationInputDict)) + await client.delete_agent(agent_id=_) + await client.delete_agent(**_request(DeleteAgentInputDict)) + await client.delete_agent(_request(DeleteAgentInput)) + await client.delete_agent(_request(DeleteAgentInputDict)) + await client.delete_agent_action_group( + agent_id=_, agent_version=_, action_group_id=_ + ) + await client.delete_agent_action_group(**_request(DeleteAgentActionGroupInputDict)) + await client.delete_agent_action_group(_request(DeleteAgentActionGroupInput)) + await client.delete_agent_action_group(_request(DeleteAgentActionGroupInputDict)) + await client.delete_agent_alias(agent_id=_, agent_alias_id=_) + await client.delete_agent_alias(**_request(DeleteAgentAliasInputDict)) + await client.delete_agent_alias(_request(DeleteAgentAliasInput)) + await client.delete_agent_alias(_request(DeleteAgentAliasInputDict)) + await client.delete_agent_version(agent_id=_, agent_version=_) + await client.delete_agent_version(**_request(DeleteAgentVersionInputDict)) + await client.delete_agent_version(_request(DeleteAgentVersionInput)) + await client.delete_agent_version(_request(DeleteAgentVersionInputDict)) + await client.delete_data_source(knowledge_base_id=_, data_source_id=_) + await client.delete_data_source(**_request(DeleteDataSourceInputDict)) + await client.delete_data_source(_request(DeleteDataSourceInput)) + await client.delete_data_source(_request(DeleteDataSourceInputDict)) + await client.delete_flow(flow_identifier=_) + await client.delete_flow(**_request(DeleteFlowInputDict)) + await client.delete_flow(_request(DeleteFlowInput)) + await client.delete_flow(_request(DeleteFlowInputDict)) + await client.delete_flow_alias(flow_identifier=_, alias_identifier=_) + await client.delete_flow_alias(**_request(DeleteFlowAliasInputDict)) + await client.delete_flow_alias(_request(DeleteFlowAliasInput)) + await client.delete_flow_alias(_request(DeleteFlowAliasInputDict)) + await client.delete_flow_version(flow_identifier=_, flow_version=_) + await client.delete_flow_version(**_request(DeleteFlowVersionInputDict)) + await client.delete_flow_version(_request(DeleteFlowVersionInput)) + await client.delete_flow_version(_request(DeleteFlowVersionInputDict)) + await client.delete_knowledge_base(knowledge_base_id=_) + await client.delete_knowledge_base(**_request(DeleteKnowledgeBaseInputDict)) + await client.delete_knowledge_base(_request(DeleteKnowledgeBaseInput)) + await client.delete_knowledge_base(_request(DeleteKnowledgeBaseInputDict)) + await client.delete_knowledge_base_documents( + knowledge_base_id=_, data_source_id=_, document_identifiers=_ + ) + await client.delete_knowledge_base_documents( + **_request(DeleteKnowledgeBaseDocumentsInputDict) + ) + await client.delete_knowledge_base_documents( + _request(DeleteKnowledgeBaseDocumentsInput) + ) + await client.delete_knowledge_base_documents( + _request(DeleteKnowledgeBaseDocumentsInputDict) + ) + await client.delete_prompt(prompt_identifier=_) + await client.delete_prompt(**_request(DeletePromptInputDict)) + await client.delete_prompt(_request(DeletePromptInput)) + await client.delete_prompt(_request(DeletePromptInputDict)) + await client.delete_resource_policy(resource_arn=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.delete_retrieval_instruction(retrieval_instruction_id=_) + await client.delete_retrieval_instruction( + **_request(DeleteRetrievalInstructionInputDict) + ) + await client.delete_retrieval_instruction(_request(DeleteRetrievalInstructionInput)) + await client.delete_retrieval_instruction( + _request(DeleteRetrievalInstructionInputDict) + ) + await client.delete_vpc_configuration(knowledge_base_id=_, vpc_configuration_id=_) + await client.delete_vpc_configuration(**_request(DeleteVpcConfigurationInputDict)) + await client.delete_vpc_configuration(_request(DeleteVpcConfigurationInput)) + await client.delete_vpc_configuration(_request(DeleteVpcConfigurationInputDict)) + await client.disassociate_agent_collaborator( + agent_id=_, agent_version=_, collaborator_id=_ + ) + await client.disassociate_agent_collaborator( + **_request(DisassociateAgentCollaboratorInputDict) + ) + await client.disassociate_agent_collaborator( + _request(DisassociateAgentCollaboratorInput) + ) + await client.disassociate_agent_collaborator( + _request(DisassociateAgentCollaboratorInputDict) + ) + await client.disassociate_agent_knowledge_base( + agent_id=_, agent_version=_, knowledge_base_id=_ + ) + await client.disassociate_agent_knowledge_base( + **_request(DisassociateAgentKnowledgeBaseInputDict) + ) + await client.disassociate_agent_knowledge_base( + _request(DisassociateAgentKnowledgeBaseInput) + ) + await client.disassociate_agent_knowledge_base( + _request(DisassociateAgentKnowledgeBaseInputDict) + ) + await client.get_agent(agent_id=_) + await client.get_agent(**_request(GetAgentInputDict)) + await client.get_agent(_request(GetAgentInput)) + await client.get_agent(_request(GetAgentInputDict)) + await client.get_agent_action_group(agent_id=_, agent_version=_, action_group_id=_) + await client.get_agent_action_group(**_request(GetAgentActionGroupInputDict)) + await client.get_agent_action_group(_request(GetAgentActionGroupInput)) + await client.get_agent_action_group(_request(GetAgentActionGroupInputDict)) + await client.get_agent_alias(agent_id=_, agent_alias_id=_) + await client.get_agent_alias(**_request(GetAgentAliasInputDict)) + await client.get_agent_alias(_request(GetAgentAliasInput)) + await client.get_agent_alias(_request(GetAgentAliasInputDict)) + await client.get_agent_collaborator(agent_id=_, agent_version=_, collaborator_id=_) + await client.get_agent_collaborator(**_request(GetAgentCollaboratorInputDict)) + await client.get_agent_collaborator(_request(GetAgentCollaboratorInput)) + await client.get_agent_collaborator(_request(GetAgentCollaboratorInputDict)) + await client.get_agent_knowledge_base( + agent_id=_, agent_version=_, knowledge_base_id=_ + ) + await client.get_agent_knowledge_base(**_request(GetAgentKnowledgeBaseInputDict)) + await client.get_agent_knowledge_base(_request(GetAgentKnowledgeBaseInput)) + await client.get_agent_knowledge_base(_request(GetAgentKnowledgeBaseInputDict)) + await client.get_agent_version(agent_id=_, agent_version=_) + await client.get_agent_version(**_request(GetAgentVersionInputDict)) + await client.get_agent_version(_request(GetAgentVersionInput)) + await client.get_agent_version(_request(GetAgentVersionInputDict)) + await client.get_data_source(knowledge_base_id=_, data_source_id=_) + await client.get_data_source(**_request(GetDataSourceInputDict)) + await client.get_data_source(_request(GetDataSourceInput)) + await client.get_data_source(_request(GetDataSourceInputDict)) + await client.get_flow(flow_identifier=_) + await client.get_flow(**_request(GetFlowInputDict)) + await client.get_flow(_request(GetFlowInput)) + await client.get_flow(_request(GetFlowInputDict)) + await client.get_flow_alias(flow_identifier=_, alias_identifier=_) + await client.get_flow_alias(**_request(GetFlowAliasInputDict)) + await client.get_flow_alias(_request(GetFlowAliasInput)) + await client.get_flow_alias(_request(GetFlowAliasInputDict)) + await client.get_flow_version(flow_identifier=_, flow_version=_) + await client.get_flow_version(**_request(GetFlowVersionInputDict)) + await client.get_flow_version(_request(GetFlowVersionInput)) + await client.get_flow_version(_request(GetFlowVersionInputDict)) + await client.get_ingestion_job( + knowledge_base_id=_, data_source_id=_, ingestion_job_id=_ + ) + await client.get_ingestion_job(**_request(GetIngestionJobInputDict)) + await client.get_ingestion_job(_request(GetIngestionJobInput)) + await client.get_ingestion_job(_request(GetIngestionJobInputDict)) + await client.get_knowledge_base(knowledge_base_id=_) + await client.get_knowledge_base(**_request(GetKnowledgeBaseInputDict)) + await client.get_knowledge_base(_request(GetKnowledgeBaseInput)) + await client.get_knowledge_base(_request(GetKnowledgeBaseInputDict)) + await client.get_knowledge_base_documents( + knowledge_base_id=_, data_source_id=_, document_identifiers=_ + ) + await client.get_knowledge_base_documents( + **_request(GetKnowledgeBaseDocumentsInputDict) + ) + await client.get_knowledge_base_documents(_request(GetKnowledgeBaseDocumentsInput)) + await client.get_knowledge_base_documents( + _request(GetKnowledgeBaseDocumentsInputDict) + ) + await client.get_prompt(prompt_identifier=_) + await client.get_prompt(**_request(GetPromptInputDict)) + await client.get_prompt(_request(GetPromptInput)) + await client.get_prompt(_request(GetPromptInputDict)) + await client.get_resource_policy(resource_arn=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.get_retrieval_instruction(retrieval_instruction_id=_) + await client.get_retrieval_instruction(**_request(GetRetrievalInstructionInputDict)) + await client.get_retrieval_instruction(_request(GetRetrievalInstructionInput)) + await client.get_retrieval_instruction(_request(GetRetrievalInstructionInputDict)) + await client.get_vpc_configuration(knowledge_base_id=_, vpc_configuration_id=_) + await client.get_vpc_configuration(**_request(GetVpcConfigurationInputDict)) + await client.get_vpc_configuration(_request(GetVpcConfigurationInput)) + await client.get_vpc_configuration(_request(GetVpcConfigurationInputDict)) + await client.ingest_knowledge_base_documents( + knowledge_base_id=_, data_source_id=_, documents=_ + ) + await client.ingest_knowledge_base_documents( + **_request(IngestKnowledgeBaseDocumentsInputDict) + ) + await client.ingest_knowledge_base_documents( + _request(IngestKnowledgeBaseDocumentsInput) + ) + await client.ingest_knowledge_base_documents( + _request(IngestKnowledgeBaseDocumentsInputDict) + ) + await client.list_agent_action_groups(agent_id=_, agent_version=_) + await client.list_agent_action_groups(**_request(ListAgentActionGroupsInputDict)) + await client.list_agent_action_groups(_request(ListAgentActionGroupsInput)) + await client.list_agent_action_groups(_request(ListAgentActionGroupsInputDict)) + await client.list_agent_aliases(agent_id=_) + await client.list_agent_aliases(**_request(ListAgentAliasesInputDict)) + await client.list_agent_aliases(_request(ListAgentAliasesInput)) + await client.list_agent_aliases(_request(ListAgentAliasesInputDict)) + await client.list_agent_collaborators(agent_id=_, agent_version=_) + await client.list_agent_collaborators(**_request(ListAgentCollaboratorsInputDict)) + await client.list_agent_collaborators(_request(ListAgentCollaboratorsInput)) + await client.list_agent_collaborators(_request(ListAgentCollaboratorsInputDict)) + await client.list_agent_knowledge_bases(agent_id=_, agent_version=_) + await client.list_agent_knowledge_bases( + **_request(ListAgentKnowledgeBasesInputDict) + ) + await client.list_agent_knowledge_bases(_request(ListAgentKnowledgeBasesInput)) + await client.list_agent_knowledge_bases(_request(ListAgentKnowledgeBasesInputDict)) + await client.list_agents() + await client.list_agents(**_request(ListAgentsInputDict)) + await client.list_agents(_request(ListAgentsInput)) + await client.list_agents(_request(ListAgentsInputDict)) + await client.list_agent_versions(agent_id=_) + await client.list_agent_versions(**_request(ListAgentVersionsInputDict)) + await client.list_agent_versions(_request(ListAgentVersionsInput)) + await client.list_agent_versions(_request(ListAgentVersionsInputDict)) + await client.list_data_sources(knowledge_base_id=_) + await client.list_data_sources(**_request(ListDataSourcesInputDict)) + await client.list_data_sources(_request(ListDataSourcesInput)) + await client.list_data_sources(_request(ListDataSourcesInputDict)) + await client.list_flow_aliases(flow_identifier=_) + await client.list_flow_aliases(**_request(ListFlowAliasesInputDict)) + await client.list_flow_aliases(_request(ListFlowAliasesInput)) + await client.list_flow_aliases(_request(ListFlowAliasesInputDict)) + await client.list_flows() + await client.list_flows(**_request(ListFlowsInputDict)) + await client.list_flows(_request(ListFlowsInput)) + await client.list_flows(_request(ListFlowsInputDict)) + await client.list_flow_versions(flow_identifier=_) + await client.list_flow_versions(**_request(ListFlowVersionsInputDict)) + await client.list_flow_versions(_request(ListFlowVersionsInput)) + await client.list_flow_versions(_request(ListFlowVersionsInputDict)) + await client.list_ingestion_jobs(knowledge_base_id=_, data_source_id=_) + await client.list_ingestion_jobs(**_request(ListIngestionJobsInputDict)) + await client.list_ingestion_jobs(_request(ListIngestionJobsInput)) + await client.list_ingestion_jobs(_request(ListIngestionJobsInputDict)) + await client.list_knowledge_base_documents(knowledge_base_id=_, data_source_id=_) + await client.list_knowledge_base_documents( + **_request(ListKnowledgeBaseDocumentsInputDict) + ) + await client.list_knowledge_base_documents( + _request(ListKnowledgeBaseDocumentsInput) + ) + await client.list_knowledge_base_documents( + _request(ListKnowledgeBaseDocumentsInputDict) + ) + await client.list_knowledge_bases() + await client.list_knowledge_bases(**_request(ListKnowledgeBasesInputDict)) + await client.list_knowledge_bases(_request(ListKnowledgeBasesInput)) + await client.list_knowledge_bases(_request(ListKnowledgeBasesInputDict)) + await client.list_prompts() + await client.list_prompts(**_request(ListPromptsInputDict)) + await client.list_prompts(_request(ListPromptsInput)) + await client.list_prompts(_request(ListPromptsInputDict)) + await client.list_retrieval_instructions() + await client.list_retrieval_instructions( + **_request(ListRetrievalInstructionsInputDict) + ) + await client.list_retrieval_instructions(_request(ListRetrievalInstructionsInput)) + await client.list_retrieval_instructions( + _request(ListRetrievalInstructionsInputDict) + ) + await client.list_retrieval_instruction_versions(retrieval_instruction_id=_) + await client.list_retrieval_instruction_versions( + **_request(ListRetrievalInstructionVersionsInputDict) + ) + await client.list_retrieval_instruction_versions( + _request(ListRetrievalInstructionVersionsInput) + ) + await client.list_retrieval_instruction_versions( + _request(ListRetrievalInstructionVersionsInputDict) + ) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.list_vpc_configurations(knowledge_base_id=_) + await client.list_vpc_configurations(**_request(ListVpcConfigurationsInputDict)) + await client.list_vpc_configurations(_request(ListVpcConfigurationsInput)) + await client.list_vpc_configurations(_request(ListVpcConfigurationsInputDict)) + await client.prepare_agent(agent_id=_) + await client.prepare_agent(**_request(PrepareAgentInputDict)) + await client.prepare_agent(_request(PrepareAgentInput)) + await client.prepare_agent(_request(PrepareAgentInputDict)) + await client.prepare_flow(flow_identifier=_) + await client.prepare_flow(**_request(PrepareFlowInputDict)) + await client.prepare_flow(_request(PrepareFlowInput)) + await client.prepare_flow(_request(PrepareFlowInputDict)) + await client.put_resource_policy(resource_arn=_, policy=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.start_ingestion_job(knowledge_base_id=_, data_source_id=_) + await client.start_ingestion_job(**_request(StartIngestionJobInputDict)) + await client.start_ingestion_job(_request(StartIngestionJobInput)) + await client.start_ingestion_job(_request(StartIngestionJobInputDict)) + await client.stop_ingestion_job( + knowledge_base_id=_, data_source_id=_, ingestion_job_id=_ + ) + await client.stop_ingestion_job(**_request(StopIngestionJobInputDict)) + await client.stop_ingestion_job(_request(StopIngestionJobInput)) + await client.stop_ingestion_job(_request(StopIngestionJobInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_agent( + agent_id=_, agent_name=_, foundation_model=_, agent_resource_role_arn=_ + ) + await client.update_agent(**_request(UpdateAgentInputDict)) + await client.update_agent(_request(UpdateAgentInput)) + await client.update_agent(_request(UpdateAgentInputDict)) + await client.update_agent_action_group( + agent_id=_, agent_version=_, action_group_id=_, action_group_name=_ + ) + await client.update_agent_action_group(**_request(UpdateAgentActionGroupInputDict)) + await client.update_agent_action_group(_request(UpdateAgentActionGroupInput)) + await client.update_agent_action_group(_request(UpdateAgentActionGroupInputDict)) + await client.update_agent_alias(agent_id=_, agent_alias_id=_, agent_alias_name=_) + await client.update_agent_alias(**_request(UpdateAgentAliasInputDict)) + await client.update_agent_alias(_request(UpdateAgentAliasInput)) + await client.update_agent_alias(_request(UpdateAgentAliasInputDict)) + await client.update_agent_collaborator( + agent_id=_, + agent_version=_, + collaborator_id=_, + agent_descriptor=_, + collaborator_name=_, + collaboration_instruction=_, + ) + await client.update_agent_collaborator(**_request(UpdateAgentCollaboratorInputDict)) + await client.update_agent_collaborator(_request(UpdateAgentCollaboratorInput)) + await client.update_agent_collaborator(_request(UpdateAgentCollaboratorInputDict)) + await client.update_agent_knowledge_base( + agent_id=_, agent_version=_, knowledge_base_id=_ + ) + await client.update_agent_knowledge_base( + **_request(UpdateAgentKnowledgeBaseInputDict) + ) + await client.update_agent_knowledge_base(_request(UpdateAgentKnowledgeBaseInput)) + await client.update_agent_knowledge_base( + _request(UpdateAgentKnowledgeBaseInputDict) + ) + await client.update_data_source( + knowledge_base_id=_, data_source_id=_, name=_, data_source_configuration=_ + ) + await client.update_data_source(**_request(UpdateDataSourceInputDict)) + await client.update_data_source(_request(UpdateDataSourceInput)) + await client.update_data_source(_request(UpdateDataSourceInputDict)) + await client.update_flow(name=_, execution_role_arn=_, flow_identifier=_) + await client.update_flow(**_request(UpdateFlowInputDict)) + await client.update_flow(_request(UpdateFlowInput)) + await client.update_flow(_request(UpdateFlowInputDict)) + await client.update_flow_alias( + name=_, routing_configuration=_, flow_identifier=_, alias_identifier=_ + ) + await client.update_flow_alias(**_request(UpdateFlowAliasInputDict)) + await client.update_flow_alias(_request(UpdateFlowAliasInput)) + await client.update_flow_alias(_request(UpdateFlowAliasInputDict)) + await client.update_knowledge_base( + knowledge_base_id=_, name=_, role_arn=_, knowledge_base_configuration=_ + ) + await client.update_knowledge_base(**_request(UpdateKnowledgeBaseInputDict)) + await client.update_knowledge_base(_request(UpdateKnowledgeBaseInput)) + await client.update_knowledge_base(_request(UpdateKnowledgeBaseInputDict)) + await client.update_prompt(name=_, prompt_identifier=_) + await client.update_prompt(**_request(UpdatePromptInputDict)) + await client.update_prompt(_request(UpdatePromptInput)) + await client.update_prompt(_request(UpdatePromptInputDict)) + await client.update_retrieval_instruction(retrieval_instruction_id=_, instruction=_) + await client.update_retrieval_instruction( + **_request(UpdateRetrievalInstructionInputDict) + ) + await client.update_retrieval_instruction(_request(UpdateRetrievalInstructionInput)) + await client.update_retrieval_instruction( + _request(UpdateRetrievalInstructionInputDict) + ) + await client.validate_flow_definition(definition=_) + await client.validate_flow_definition(**_request(ValidateFlowDefinitionInputDict)) + await client.validate_flow_definition(_request(ValidateFlowDefinitionInput)) + await client.validate_flow_definition(_request(ValidateFlowDefinitionInputDict)) + + +def check_sync_calls(client: BedrockAgentClient) -> None: + pass + client.associate_agent_collaborator( + agent_id=_, + agent_version=_, + agent_descriptor=_, + collaborator_name=_, + collaboration_instruction=_, + ) + client.associate_agent_collaborator(**_request(AssociateAgentCollaboratorInputDict)) + client.associate_agent_collaborator(_request(AssociateAgentCollaboratorInput)) + client.associate_agent_collaborator(_request(AssociateAgentCollaboratorInputDict)) + client.associate_agent_knowledge_base( + agent_id=_, agent_version=_, knowledge_base_id=_, description=_ + ) + client.associate_agent_knowledge_base( + **_request(AssociateAgentKnowledgeBaseInputDict) + ) + client.associate_agent_knowledge_base(_request(AssociateAgentKnowledgeBaseInput)) + client.associate_agent_knowledge_base( + _request(AssociateAgentKnowledgeBaseInputDict) + ) + client.create_agent(agent_name=_) + client.create_agent(**_request(CreateAgentInputDict)) + client.create_agent(_request(CreateAgentInput)) + client.create_agent(_request(CreateAgentInputDict)) + client.create_agent_action_group(agent_id=_, agent_version=_, action_group_name=_) + client.create_agent_action_group(**_request(CreateAgentActionGroupInputDict)) + client.create_agent_action_group(_request(CreateAgentActionGroupInput)) + client.create_agent_action_group(_request(CreateAgentActionGroupInputDict)) + client.create_agent_alias(agent_id=_, agent_alias_name=_) + client.create_agent_alias(**_request(CreateAgentAliasInputDict)) + client.create_agent_alias(_request(CreateAgentAliasInput)) + client.create_agent_alias(_request(CreateAgentAliasInputDict)) + client.create_data_source(knowledge_base_id=_, name=_, data_source_configuration=_) + client.create_data_source(**_request(CreateDataSourceInputDict)) + client.create_data_source(_request(CreateDataSourceInput)) + client.create_data_source(_request(CreateDataSourceInputDict)) + client.create_flow(name=_, execution_role_arn=_) + client.create_flow(**_request(CreateFlowInputDict)) + client.create_flow(_request(CreateFlowInput)) + client.create_flow(_request(CreateFlowInputDict)) + client.create_flow_alias(name=_, routing_configuration=_, flow_identifier=_) + client.create_flow_alias(**_request(CreateFlowAliasInputDict)) + client.create_flow_alias(_request(CreateFlowAliasInput)) + client.create_flow_alias(_request(CreateFlowAliasInputDict)) + client.create_flow_version(flow_identifier=_) + client.create_flow_version(**_request(CreateFlowVersionInputDict)) + client.create_flow_version(_request(CreateFlowVersionInput)) + client.create_flow_version(_request(CreateFlowVersionInputDict)) + client.create_knowledge_base(name=_, role_arn=_, knowledge_base_configuration=_) + client.create_knowledge_base(**_request(CreateKnowledgeBaseInputDict)) + client.create_knowledge_base(_request(CreateKnowledgeBaseInput)) + client.create_knowledge_base(_request(CreateKnowledgeBaseInputDict)) + client.create_prompt(name=_) + client.create_prompt(**_request(CreatePromptInputDict)) + client.create_prompt(_request(CreatePromptInput)) + client.create_prompt(_request(CreatePromptInputDict)) + client.create_prompt_version(prompt_identifier=_) + client.create_prompt_version(**_request(CreatePromptVersionInputDict)) + client.create_prompt_version(_request(CreatePromptVersionInput)) + client.create_prompt_version(_request(CreatePromptVersionInputDict)) + client.create_retrieval_instruction(name=_, instruction=_) + client.create_retrieval_instruction(**_request(CreateRetrievalInstructionInputDict)) + client.create_retrieval_instruction(_request(CreateRetrievalInstructionInput)) + client.create_retrieval_instruction(_request(CreateRetrievalInstructionInputDict)) + client.create_retrieval_instruction_version(retrieval_instruction_id=_) + client.create_retrieval_instruction_version( + **_request(CreateRetrievalInstructionVersionInputDict) + ) + client.create_retrieval_instruction_version( + _request(CreateRetrievalInstructionVersionInput) + ) + client.create_retrieval_instruction_version( + _request(CreateRetrievalInstructionVersionInputDict) + ) + client.create_vpc_configuration( + knowledge_base_id=_, + vpc_id=_, + subnet_ids=_, + resource_target=_, + port=_, + protocol=_, + resolution_mode=_, + ) + client.create_vpc_configuration(**_request(CreateVpcConfigurationInputDict)) + client.create_vpc_configuration(_request(CreateVpcConfigurationInput)) + client.create_vpc_configuration(_request(CreateVpcConfigurationInputDict)) + client.delete_agent(agent_id=_) + client.delete_agent(**_request(DeleteAgentInputDict)) + client.delete_agent(_request(DeleteAgentInput)) + client.delete_agent(_request(DeleteAgentInputDict)) + client.delete_agent_action_group(agent_id=_, agent_version=_, action_group_id=_) + client.delete_agent_action_group(**_request(DeleteAgentActionGroupInputDict)) + client.delete_agent_action_group(_request(DeleteAgentActionGroupInput)) + client.delete_agent_action_group(_request(DeleteAgentActionGroupInputDict)) + client.delete_agent_alias(agent_id=_, agent_alias_id=_) + client.delete_agent_alias(**_request(DeleteAgentAliasInputDict)) + client.delete_agent_alias(_request(DeleteAgentAliasInput)) + client.delete_agent_alias(_request(DeleteAgentAliasInputDict)) + client.delete_agent_version(agent_id=_, agent_version=_) + client.delete_agent_version(**_request(DeleteAgentVersionInputDict)) + client.delete_agent_version(_request(DeleteAgentVersionInput)) + client.delete_agent_version(_request(DeleteAgentVersionInputDict)) + client.delete_data_source(knowledge_base_id=_, data_source_id=_) + client.delete_data_source(**_request(DeleteDataSourceInputDict)) + client.delete_data_source(_request(DeleteDataSourceInput)) + client.delete_data_source(_request(DeleteDataSourceInputDict)) + client.delete_flow(flow_identifier=_) + client.delete_flow(**_request(DeleteFlowInputDict)) + client.delete_flow(_request(DeleteFlowInput)) + client.delete_flow(_request(DeleteFlowInputDict)) + client.delete_flow_alias(flow_identifier=_, alias_identifier=_) + client.delete_flow_alias(**_request(DeleteFlowAliasInputDict)) + client.delete_flow_alias(_request(DeleteFlowAliasInput)) + client.delete_flow_alias(_request(DeleteFlowAliasInputDict)) + client.delete_flow_version(flow_identifier=_, flow_version=_) + client.delete_flow_version(**_request(DeleteFlowVersionInputDict)) + client.delete_flow_version(_request(DeleteFlowVersionInput)) + client.delete_flow_version(_request(DeleteFlowVersionInputDict)) + client.delete_knowledge_base(knowledge_base_id=_) + client.delete_knowledge_base(**_request(DeleteKnowledgeBaseInputDict)) + client.delete_knowledge_base(_request(DeleteKnowledgeBaseInput)) + client.delete_knowledge_base(_request(DeleteKnowledgeBaseInputDict)) + client.delete_knowledge_base_documents( + knowledge_base_id=_, data_source_id=_, document_identifiers=_ + ) + client.delete_knowledge_base_documents( + **_request(DeleteKnowledgeBaseDocumentsInputDict) + ) + client.delete_knowledge_base_documents(_request(DeleteKnowledgeBaseDocumentsInput)) + client.delete_knowledge_base_documents( + _request(DeleteKnowledgeBaseDocumentsInputDict) + ) + client.delete_prompt(prompt_identifier=_) + client.delete_prompt(**_request(DeletePromptInputDict)) + client.delete_prompt(_request(DeletePromptInput)) + client.delete_prompt(_request(DeletePromptInputDict)) + client.delete_resource_policy(resource_arn=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.delete_retrieval_instruction(retrieval_instruction_id=_) + client.delete_retrieval_instruction(**_request(DeleteRetrievalInstructionInputDict)) + client.delete_retrieval_instruction(_request(DeleteRetrievalInstructionInput)) + client.delete_retrieval_instruction(_request(DeleteRetrievalInstructionInputDict)) + client.delete_vpc_configuration(knowledge_base_id=_, vpc_configuration_id=_) + client.delete_vpc_configuration(**_request(DeleteVpcConfigurationInputDict)) + client.delete_vpc_configuration(_request(DeleteVpcConfigurationInput)) + client.delete_vpc_configuration(_request(DeleteVpcConfigurationInputDict)) + client.disassociate_agent_collaborator( + agent_id=_, agent_version=_, collaborator_id=_ + ) + client.disassociate_agent_collaborator( + **_request(DisassociateAgentCollaboratorInputDict) + ) + client.disassociate_agent_collaborator(_request(DisassociateAgentCollaboratorInput)) + client.disassociate_agent_collaborator( + _request(DisassociateAgentCollaboratorInputDict) + ) + client.disassociate_agent_knowledge_base( + agent_id=_, agent_version=_, knowledge_base_id=_ + ) + client.disassociate_agent_knowledge_base( + **_request(DisassociateAgentKnowledgeBaseInputDict) + ) + client.disassociate_agent_knowledge_base( + _request(DisassociateAgentKnowledgeBaseInput) + ) + client.disassociate_agent_knowledge_base( + _request(DisassociateAgentKnowledgeBaseInputDict) + ) + client.get_agent(agent_id=_) + client.get_agent(**_request(GetAgentInputDict)) + client.get_agent(_request(GetAgentInput)) + client.get_agent(_request(GetAgentInputDict)) + client.get_agent_action_group(agent_id=_, agent_version=_, action_group_id=_) + client.get_agent_action_group(**_request(GetAgentActionGroupInputDict)) + client.get_agent_action_group(_request(GetAgentActionGroupInput)) + client.get_agent_action_group(_request(GetAgentActionGroupInputDict)) + client.get_agent_alias(agent_id=_, agent_alias_id=_) + client.get_agent_alias(**_request(GetAgentAliasInputDict)) + client.get_agent_alias(_request(GetAgentAliasInput)) + client.get_agent_alias(_request(GetAgentAliasInputDict)) + client.get_agent_collaborator(agent_id=_, agent_version=_, collaborator_id=_) + client.get_agent_collaborator(**_request(GetAgentCollaboratorInputDict)) + client.get_agent_collaborator(_request(GetAgentCollaboratorInput)) + client.get_agent_collaborator(_request(GetAgentCollaboratorInputDict)) + client.get_agent_knowledge_base(agent_id=_, agent_version=_, knowledge_base_id=_) + client.get_agent_knowledge_base(**_request(GetAgentKnowledgeBaseInputDict)) + client.get_agent_knowledge_base(_request(GetAgentKnowledgeBaseInput)) + client.get_agent_knowledge_base(_request(GetAgentKnowledgeBaseInputDict)) + client.get_agent_version(agent_id=_, agent_version=_) + client.get_agent_version(**_request(GetAgentVersionInputDict)) + client.get_agent_version(_request(GetAgentVersionInput)) + client.get_agent_version(_request(GetAgentVersionInputDict)) + client.get_data_source(knowledge_base_id=_, data_source_id=_) + client.get_data_source(**_request(GetDataSourceInputDict)) + client.get_data_source(_request(GetDataSourceInput)) + client.get_data_source(_request(GetDataSourceInputDict)) + client.get_flow(flow_identifier=_) + client.get_flow(**_request(GetFlowInputDict)) + client.get_flow(_request(GetFlowInput)) + client.get_flow(_request(GetFlowInputDict)) + client.get_flow_alias(flow_identifier=_, alias_identifier=_) + client.get_flow_alias(**_request(GetFlowAliasInputDict)) + client.get_flow_alias(_request(GetFlowAliasInput)) + client.get_flow_alias(_request(GetFlowAliasInputDict)) + client.get_flow_version(flow_identifier=_, flow_version=_) + client.get_flow_version(**_request(GetFlowVersionInputDict)) + client.get_flow_version(_request(GetFlowVersionInput)) + client.get_flow_version(_request(GetFlowVersionInputDict)) + client.get_ingestion_job(knowledge_base_id=_, data_source_id=_, ingestion_job_id=_) + client.get_ingestion_job(**_request(GetIngestionJobInputDict)) + client.get_ingestion_job(_request(GetIngestionJobInput)) + client.get_ingestion_job(_request(GetIngestionJobInputDict)) + client.get_knowledge_base(knowledge_base_id=_) + client.get_knowledge_base(**_request(GetKnowledgeBaseInputDict)) + client.get_knowledge_base(_request(GetKnowledgeBaseInput)) + client.get_knowledge_base(_request(GetKnowledgeBaseInputDict)) + client.get_knowledge_base_documents( + knowledge_base_id=_, data_source_id=_, document_identifiers=_ + ) + client.get_knowledge_base_documents(**_request(GetKnowledgeBaseDocumentsInputDict)) + client.get_knowledge_base_documents(_request(GetKnowledgeBaseDocumentsInput)) + client.get_knowledge_base_documents(_request(GetKnowledgeBaseDocumentsInputDict)) + client.get_prompt(prompt_identifier=_) + client.get_prompt(**_request(GetPromptInputDict)) + client.get_prompt(_request(GetPromptInput)) + client.get_prompt(_request(GetPromptInputDict)) + client.get_resource_policy(resource_arn=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.get_retrieval_instruction(retrieval_instruction_id=_) + client.get_retrieval_instruction(**_request(GetRetrievalInstructionInputDict)) + client.get_retrieval_instruction(_request(GetRetrievalInstructionInput)) + client.get_retrieval_instruction(_request(GetRetrievalInstructionInputDict)) + client.get_vpc_configuration(knowledge_base_id=_, vpc_configuration_id=_) + client.get_vpc_configuration(**_request(GetVpcConfigurationInputDict)) + client.get_vpc_configuration(_request(GetVpcConfigurationInput)) + client.get_vpc_configuration(_request(GetVpcConfigurationInputDict)) + client.ingest_knowledge_base_documents( + knowledge_base_id=_, data_source_id=_, documents=_ + ) + client.ingest_knowledge_base_documents( + **_request(IngestKnowledgeBaseDocumentsInputDict) + ) + client.ingest_knowledge_base_documents(_request(IngestKnowledgeBaseDocumentsInput)) + client.ingest_knowledge_base_documents( + _request(IngestKnowledgeBaseDocumentsInputDict) + ) + client.list_agent_action_groups(agent_id=_, agent_version=_) + client.list_agent_action_groups(**_request(ListAgentActionGroupsInputDict)) + client.list_agent_action_groups(_request(ListAgentActionGroupsInput)) + client.list_agent_action_groups(_request(ListAgentActionGroupsInputDict)) + client.list_agent_aliases(agent_id=_) + client.list_agent_aliases(**_request(ListAgentAliasesInputDict)) + client.list_agent_aliases(_request(ListAgentAliasesInput)) + client.list_agent_aliases(_request(ListAgentAliasesInputDict)) + client.list_agent_collaborators(agent_id=_, agent_version=_) + client.list_agent_collaborators(**_request(ListAgentCollaboratorsInputDict)) + client.list_agent_collaborators(_request(ListAgentCollaboratorsInput)) + client.list_agent_collaborators(_request(ListAgentCollaboratorsInputDict)) + client.list_agent_knowledge_bases(agent_id=_, agent_version=_) + client.list_agent_knowledge_bases(**_request(ListAgentKnowledgeBasesInputDict)) + client.list_agent_knowledge_bases(_request(ListAgentKnowledgeBasesInput)) + client.list_agent_knowledge_bases(_request(ListAgentKnowledgeBasesInputDict)) + client.list_agents() + client.list_agents(**_request(ListAgentsInputDict)) + client.list_agents(_request(ListAgentsInput)) + client.list_agents(_request(ListAgentsInputDict)) + client.list_agent_versions(agent_id=_) + client.list_agent_versions(**_request(ListAgentVersionsInputDict)) + client.list_agent_versions(_request(ListAgentVersionsInput)) + client.list_agent_versions(_request(ListAgentVersionsInputDict)) + client.list_data_sources(knowledge_base_id=_) + client.list_data_sources(**_request(ListDataSourcesInputDict)) + client.list_data_sources(_request(ListDataSourcesInput)) + client.list_data_sources(_request(ListDataSourcesInputDict)) + client.list_flow_aliases(flow_identifier=_) + client.list_flow_aliases(**_request(ListFlowAliasesInputDict)) + client.list_flow_aliases(_request(ListFlowAliasesInput)) + client.list_flow_aliases(_request(ListFlowAliasesInputDict)) + client.list_flows() + client.list_flows(**_request(ListFlowsInputDict)) + client.list_flows(_request(ListFlowsInput)) + client.list_flows(_request(ListFlowsInputDict)) + client.list_flow_versions(flow_identifier=_) + client.list_flow_versions(**_request(ListFlowVersionsInputDict)) + client.list_flow_versions(_request(ListFlowVersionsInput)) + client.list_flow_versions(_request(ListFlowVersionsInputDict)) + client.list_ingestion_jobs(knowledge_base_id=_, data_source_id=_) + client.list_ingestion_jobs(**_request(ListIngestionJobsInputDict)) + client.list_ingestion_jobs(_request(ListIngestionJobsInput)) + client.list_ingestion_jobs(_request(ListIngestionJobsInputDict)) + client.list_knowledge_base_documents(knowledge_base_id=_, data_source_id=_) + client.list_knowledge_base_documents( + **_request(ListKnowledgeBaseDocumentsInputDict) + ) + client.list_knowledge_base_documents(_request(ListKnowledgeBaseDocumentsInput)) + client.list_knowledge_base_documents(_request(ListKnowledgeBaseDocumentsInputDict)) + client.list_knowledge_bases() + client.list_knowledge_bases(**_request(ListKnowledgeBasesInputDict)) + client.list_knowledge_bases(_request(ListKnowledgeBasesInput)) + client.list_knowledge_bases(_request(ListKnowledgeBasesInputDict)) + client.list_prompts() + client.list_prompts(**_request(ListPromptsInputDict)) + client.list_prompts(_request(ListPromptsInput)) + client.list_prompts(_request(ListPromptsInputDict)) + client.list_retrieval_instructions() + client.list_retrieval_instructions(**_request(ListRetrievalInstructionsInputDict)) + client.list_retrieval_instructions(_request(ListRetrievalInstructionsInput)) + client.list_retrieval_instructions(_request(ListRetrievalInstructionsInputDict)) + client.list_retrieval_instruction_versions(retrieval_instruction_id=_) + client.list_retrieval_instruction_versions( + **_request(ListRetrievalInstructionVersionsInputDict) + ) + client.list_retrieval_instruction_versions( + _request(ListRetrievalInstructionVersionsInput) + ) + client.list_retrieval_instruction_versions( + _request(ListRetrievalInstructionVersionsInputDict) + ) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.list_vpc_configurations(knowledge_base_id=_) + client.list_vpc_configurations(**_request(ListVpcConfigurationsInputDict)) + client.list_vpc_configurations(_request(ListVpcConfigurationsInput)) + client.list_vpc_configurations(_request(ListVpcConfigurationsInputDict)) + client.prepare_agent(agent_id=_) + client.prepare_agent(**_request(PrepareAgentInputDict)) + client.prepare_agent(_request(PrepareAgentInput)) + client.prepare_agent(_request(PrepareAgentInputDict)) + client.prepare_flow(flow_identifier=_) + client.prepare_flow(**_request(PrepareFlowInputDict)) + client.prepare_flow(_request(PrepareFlowInput)) + client.prepare_flow(_request(PrepareFlowInputDict)) + client.put_resource_policy(resource_arn=_, policy=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.start_ingestion_job(knowledge_base_id=_, data_source_id=_) + client.start_ingestion_job(**_request(StartIngestionJobInputDict)) + client.start_ingestion_job(_request(StartIngestionJobInput)) + client.start_ingestion_job(_request(StartIngestionJobInputDict)) + client.stop_ingestion_job(knowledge_base_id=_, data_source_id=_, ingestion_job_id=_) + client.stop_ingestion_job(**_request(StopIngestionJobInputDict)) + client.stop_ingestion_job(_request(StopIngestionJobInput)) + client.stop_ingestion_job(_request(StopIngestionJobInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_agent( + agent_id=_, agent_name=_, foundation_model=_, agent_resource_role_arn=_ + ) + client.update_agent(**_request(UpdateAgentInputDict)) + client.update_agent(_request(UpdateAgentInput)) + client.update_agent(_request(UpdateAgentInputDict)) + client.update_agent_action_group( + agent_id=_, agent_version=_, action_group_id=_, action_group_name=_ + ) + client.update_agent_action_group(**_request(UpdateAgentActionGroupInputDict)) + client.update_agent_action_group(_request(UpdateAgentActionGroupInput)) + client.update_agent_action_group(_request(UpdateAgentActionGroupInputDict)) + client.update_agent_alias(agent_id=_, agent_alias_id=_, agent_alias_name=_) + client.update_agent_alias(**_request(UpdateAgentAliasInputDict)) + client.update_agent_alias(_request(UpdateAgentAliasInput)) + client.update_agent_alias(_request(UpdateAgentAliasInputDict)) + client.update_agent_collaborator( + agent_id=_, + agent_version=_, + collaborator_id=_, + agent_descriptor=_, + collaborator_name=_, + collaboration_instruction=_, + ) + client.update_agent_collaborator(**_request(UpdateAgentCollaboratorInputDict)) + client.update_agent_collaborator(_request(UpdateAgentCollaboratorInput)) + client.update_agent_collaborator(_request(UpdateAgentCollaboratorInputDict)) + client.update_agent_knowledge_base(agent_id=_, agent_version=_, knowledge_base_id=_) + client.update_agent_knowledge_base(**_request(UpdateAgentKnowledgeBaseInputDict)) + client.update_agent_knowledge_base(_request(UpdateAgentKnowledgeBaseInput)) + client.update_agent_knowledge_base(_request(UpdateAgentKnowledgeBaseInputDict)) + client.update_data_source( + knowledge_base_id=_, data_source_id=_, name=_, data_source_configuration=_ + ) + client.update_data_source(**_request(UpdateDataSourceInputDict)) + client.update_data_source(_request(UpdateDataSourceInput)) + client.update_data_source(_request(UpdateDataSourceInputDict)) + client.update_flow(name=_, execution_role_arn=_, flow_identifier=_) + client.update_flow(**_request(UpdateFlowInputDict)) + client.update_flow(_request(UpdateFlowInput)) + client.update_flow(_request(UpdateFlowInputDict)) + client.update_flow_alias( + name=_, routing_configuration=_, flow_identifier=_, alias_identifier=_ + ) + client.update_flow_alias(**_request(UpdateFlowAliasInputDict)) + client.update_flow_alias(_request(UpdateFlowAliasInput)) + client.update_flow_alias(_request(UpdateFlowAliasInputDict)) + client.update_knowledge_base( + knowledge_base_id=_, name=_, role_arn=_, knowledge_base_configuration=_ + ) + client.update_knowledge_base(**_request(UpdateKnowledgeBaseInputDict)) + client.update_knowledge_base(_request(UpdateKnowledgeBaseInput)) + client.update_knowledge_base(_request(UpdateKnowledgeBaseInputDict)) + client.update_prompt(name=_, prompt_identifier=_) + client.update_prompt(**_request(UpdatePromptInputDict)) + client.update_prompt(_request(UpdatePromptInput)) + client.update_prompt(_request(UpdatePromptInputDict)) + client.update_retrieval_instruction(retrieval_instruction_id=_, instruction=_) + client.update_retrieval_instruction(**_request(UpdateRetrievalInstructionInputDict)) + client.update_retrieval_instruction(_request(UpdateRetrievalInstructionInput)) + client.update_retrieval_instruction(_request(UpdateRetrievalInstructionInputDict)) + client.validate_flow_definition(definition=_) + client.validate_flow_definition(**_request(ValidateFlowDefinitionInputDict)) + client.validate_flow_definition(_request(ValidateFlowDefinitionInput)) + client.validate_flow_definition(_request(ValidateFlowDefinitionInputDict)) diff --git a/clients/aws-sdk-bedrock-agentcore-control/pyproject.toml b/clients/aws-sdk-bedrock-agentcore-control/pyproject.toml index fe5dc0753..7e692803e 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/pyproject.toml +++ b/clients/aws-sdk-bedrock-agentcore-control/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_0.pyi b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_0.pyi index f3223ed32..113951590 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_0.pyi +++ b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,116 +13,206 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( Descriptors, + DescriptorsDict, DomainOverride, + DomainOverrideDict, Ec2Configuration, + Ec2ConfigurationDict, EpisodicConsolidationOverride, EpisodicExtractionOverride, EpisodicOverrideConfigurationInput, + EpisodicOverrideConfigurationInputDict, EpisodicOverrideConsolidationConfigurationInput, + EpisodicOverrideConsolidationConfigurationInputDict, EpisodicOverrideExtractionConfigurationInput, + EpisodicOverrideExtractionConfigurationInputDict, EpisodicOverrideReflectionConfigurationInput, + EpisodicOverrideReflectionConfigurationInputDict, EpisodicReflectionOverride, EvaluatorConfig, + EvaluatorConfigDict, EvaluatorReference, + EvaluatorReferenceDict, FilesystemConfiguration, + FilesystemConfigurationDict, GatewayApiKeyCredentialProvider, + GatewayApiKeyCredentialProviderDict, GatewayInterceptorConfiguration, + GatewayInterceptorConfigurationDict, GatewayPolicyEngineConfiguration, + GatewayPolicyEngineConfigurationDict, GatewayProtocolConfiguration, + GatewayProtocolConfigurationDict, GatewayRateLimitDetail, Harness, HarnessEndpoint, HarnessEnvironmentArtifact, + HarnessEnvironmentArtifactDict, HarnessEnvironmentProviderRequest, + HarnessEnvironmentProviderRequestDict, HarnessHook, + HarnessHookDict, HarnessMemoryConfiguration, + HarnessMemoryConfigurationDict, HarnessModelConfiguration, + HarnessModelConfigurationDict, HarnessSkill, + HarnessSkillDict, HarnessSystemContentBlock, + HarnessSystemContentBlockDict, HarnessTool, + HarnessToolDict, HarnessTruncationConfiguration, + HarnessTruncationConfigurationDict, HostingEnvironment, + HostingEnvironmentDict, IamCredentialProvider, + IamCredentialProviderDict, IndexedKey, + IndexedKeyDict, InferenceConfiguration, + InferenceConfigurationDict, InlineExamplesSource, + InlineExamplesSourceDict, Insight, + InsightDict, LambdaEvaluatorConfig, + LambdaEvaluatorConfigDict, LambdaTransformConfiguration, + LambdaTransformConfigurationDict, LifecycleConfiguration, + LifecycleConfigurationDict, LifecycleHook, + LifecycleHookDict, LimitEntry, + LimitEntryDict, ManagedResourceDetails, MatchModels, + MatchModelsDict, MatchPaths, + MatchPathsDict, MatchPrincipals, + MatchPrincipalsDict, Memory, MemoryRecordSchema, + MemoryRecordSchemaDict, MemoryStrategyInput, + MemoryStrategyInputDict, MetadataConfiguration, + MetadataConfigurationDict, NamespaceKeyEntry, + NamespaceKeyEntryDict, NetworkConfiguration, + NetworkConfigurationDict, OAuth2AuthorizationData, OAuthCredentialProvider, + OAuthCredentialProviderDict, Oauth2Discovery, + Oauth2DiscoveryDict, Oauth2ProviderConfigInput, + Oauth2ProviderConfigInputDict, Oauth2ProviderConfigOutput, OnBehalfOfTokenExchangeConfigType, + OnBehalfOfTokenExchangeConfigTypeDict, OutputConfig, + OutputConfigDict, PaymentCredentialProviderConfiguration, + PaymentCredentialProviderConfigurationDict, PaymentProviderConfigurationInput, + PaymentProviderConfigurationInputDict, PaymentProviderConfigurationOutput, PermissionsConfiguration, + PermissionsConfigurationDict, PolicyDefinition, + PolicyDefinitionDict, PortRange, + PortRangeDict, PrivateEndpoint, + PrivateEndpointDict, PrivateEndpointOverride, + PrivateEndpointOverrideDict, PrivateKeyJwtConfig, + PrivateKeyJwtConfigDict, ProtocolConfiguration, + ProtocolConfigurationDict, RecordExpirySpecification, + RecordExpirySpecificationDict, RecordingConfig, + RecordingConfigDict, RequestHeaderConfiguration, + RequestHeaderConfigurationDict, ResourceConfiguration, + ResourceConfigurationDict, ResourceLocation, + ResourceLocationDict, RouteToTargetAction, + RouteToTargetActionDict, Rule, + RuleDict, RuntimeHooksConfiguration, + RuntimeHooksConfigurationDict, S3CertificateConfiguration, + S3CertificateConfigurationDict, S3Configuration, + S3ConfigurationDict, S3Location, + S3LocationDict, S3Source, + S3SourceDict, Secret, SecretReference, + SecretReferenceDict, SecretsManagerCertificateConfiguration, + SecretsManagerCertificateConfigurationDict, SecretsManagerLocation, + SecretsManagerLocationDict, SelfManagedConfigurationInput, + SelfManagedConfigurationInputDict, SemanticConsolidationOverride, SemanticExtractionOverride, SemanticOverrideConfigurationInput, + SemanticOverrideConfigurationInputDict, SemanticOverrideConsolidationConfigurationInput, + SemanticOverrideConsolidationConfigurationInputDict, SemanticOverrideExtractionConfigurationInput, + SemanticOverrideExtractionConfigurationInputDict, ServiceError, SkillDefinition, + SkillDefinitionDict, SkillMdDefinition, + SkillMdDefinitionDict, StaticOverride, + StaticOverrideDict, StreamDeliveryResources, + StreamDeliveryResourcesDict, SummaryConsolidationOverride, SummaryOverrideConfigurationInput, + SummaryOverrideConfigurationInputDict, SummaryOverrideConsolidationConfigurationInput, + SummaryOverrideConsolidationConfigurationInputDict, SynchronizationConfiguration, + SynchronizationConfigurationDict, SystemManagedBlock, TargetConfiguration, + TargetConfigurationDict, ToolsFileSystemConfiguration, + ToolsFileSystemConfigurationDict, UserPreferenceConsolidationOverride, UserPreferenceExtractionOverride, UserPreferenceOverrideConfigurationInput, + UserPreferenceOverrideConfigurationInputDict, UserPreferenceOverrideConsolidationConfigurationInput, + UserPreferenceOverrideConsolidationConfigurationInputDict, UserPreferenceOverrideExtractionConfigurationInput, + UserPreferenceOverrideExtractionConfigurationInputDict, VersionCreatedBySource, + VersionCreatedBySourceDict, VersionLineageMetadata, VpcConfig, + VpcConfigDict, WafConfiguration, WeightedOverride, + WeightedOverrideDict, WorkloadIdentityDetails, _SerdeShape, ) @@ -140,6 +231,15 @@ class A2aDescriptor(_SerdeShape): protocol specification. """ +class A2aDescriptorDict(TypedDict, total=False): + """Dictionary form of `A2aDescriptor`.""" + + agent_card: AgentCardDefinition | AgentCardDefinitionDict | None + """ + The agent card definition for the A2A agent, as defined by the A2A + protocol specification. + """ + @dataclass(kw_only=True) class AccessDeniedException(ServiceError, _SerdeShape): """This exception is thrown when a request is denied per access permissions""" @@ -180,6 +280,17 @@ Action = Union[ActionConfigurationBundle | ActionRouteToTarget | ActionUnknown] class _ActionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Action: ... +class ActionConfigurationBundleDict(TypedDict): + configuration_bundle: ConfigurationBundleAction | ConfigurationBundleActionDict + """An action that applies a configuration bundle override to the request.""" + +class ActionRouteToTargetDict(TypedDict): + route_to_target: RouteToTargetAction | RouteToTargetActionDict + """An action that routes the request to a specific target.""" + +ActionDict = Union[ActionConfigurationBundleDict | ActionRouteToTargetDict] +"""Dictionary form of `Action`, setting exactly one variant.""" + class ActorTokenContentType(UnknownEnumMixin, StrEnum): NONE = "NONE" M2_M = "M2M" @@ -208,6 +319,28 @@ class AddDatasetExamplesInput(_SerdeShape): pointing to a JSONL file. """ +class AddDatasetExamplesInputDict(TypedDict, total=False): + """Dictionary form of `AddDatasetExamplesInput`.""" + + dataset_id: Required[str] + """The unique identifier of the dataset to add examples to.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + source: Required[DataSourceType | DataSourceTypeDict] + """ + Source of examples to add. Provide either inline examples or an S3 URI + pointing to a JSONL file. + """ + @dataclass(kw_only=True) class AddDatasetExamplesOutput(_SerdeShape): """Dataclass for AddDatasetExamplesOutput structure.""" @@ -250,6 +383,20 @@ class AgentCardDefinition(_SerdeShape): the A2A protocol specification. """ +class AgentCardDefinitionDict(TypedDict, total=False): + """Dictionary form of `AgentCardDefinition`.""" + + schema_version: str | None + """ + The schema version of the agent card based on the A2A protocol + specification. + """ + inline_content: str | None + """ + The JSON content containing the A2A agent card definition, conforming to + the A2A protocol specification. + """ + class AgentManagedRuntimeType(UnknownEnumMixin, StrEnum): PYTHON_3_10 = "PYTHON_3_10" PYTHON_3_11 = "PYTHON_3_11" @@ -315,6 +462,26 @@ AgentRuntimeArtifact = Union[ class _AgentRuntimeArtifactDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> AgentRuntimeArtifact: ... +class AgentRuntimeArtifactContainerConfigurationDict(TypedDict): + container_configuration: ContainerConfiguration | ContainerConfigurationDict + """The container configuration for the agent artifact.""" + +class AgentRuntimeArtifactCodeConfigurationDict(TypedDict): + code_configuration: CodeConfiguration | CodeConfigurationDict + """ + The code configuration for the agent runtime artifact, including the + source code location and execution settings. + """ + +AgentRuntimeArtifactDict = Union[ + AgentRuntimeArtifactContainerConfigurationDict + | AgentRuntimeArtifactCodeConfigurationDict +] +""" +Dictionary form of `AgentRuntimeArtifact`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class AgentRuntimeEndpoint(_SerdeShape): """ @@ -401,6 +568,17 @@ class AgentSkillsDescriptor(_SerdeShape): skill_definition: SkillDefinition | None = ... """The structured skill definition with schema version and content.""" +class AgentSkillsDescriptorDict(TypedDict, total=False): + """Dictionary form of `AgentSkillsDescriptor`.""" + + skill_md: SkillMdDefinition | SkillMdDefinitionDict | None + """ + The optional skill markdown definition describing the agent's skills in + a human-readable format. + """ + skill_definition: SkillDefinition | SkillDefinitionDict | None + """The structured skill definition with schema version and content.""" + @dataclass class AllowedPortPort(_SerdeShape): """A single port that is reachable through the runtime's session URL.""" @@ -435,6 +613,20 @@ URL. Specify exactly one of `port` or `portRange`. class _AllowedPortDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> AllowedPort: ... +class AllowedPortPortDict(TypedDict): + port: int + """A single port that is reachable through the runtime's session URL.""" + +class AllowedPortPortRangeDict(TypedDict): + port_range: PortRange | PortRangeDict + """ + An inclusive range of ports that are reachable through the runtime's + session URL. + """ + +AllowedPortDict = Union[AllowedPortPortDict | AllowedPortPortRangeDict] +"""Dictionary form of `AllowedPort`, setting exactly one variant.""" + @dataclass(kw_only=True) class AllowedWorkloadConfiguration(_SerdeShape): """ @@ -454,6 +646,18 @@ class AllowedWorkloadConfiguration(_SerdeShape): workload_identities: list[str] | None = ... """The list of workload identities that are allowed to invoke the target.""" +class AllowedWorkloadConfigurationDict(TypedDict, total=False): + """Dictionary form of `AllowedWorkloadConfiguration`.""" + + hosting_environments: Sequence[HostingEnvironment | HostingEnvironmentDict] | None + """ + The list of hosting environments whose workloads are allowed to invoke + the target. At launch, the only supported hosting environment is + AgentCore Gateway. + """ + workload_identities: Sequence[str] | None + """The list of workload identities that are allowed to invoke the target.""" + @dataclass(kw_only=True) class ApiGatewayTargetConfiguration(_SerdeShape): """The configuration for an Amazon API Gateway target.""" @@ -468,6 +672,21 @@ class ApiGatewayTargetConfiguration(_SerdeShape): the gateway target. """ +class ApiGatewayTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `ApiGatewayTargetConfiguration`.""" + + rest_api_id: Required[str] + """The ID of the API Gateway REST API.""" + stage: Required[str] + """The ID of the stage of the REST API to add as a target.""" + api_gateway_tool_configuration: Required[ + ApiGatewayToolConfiguration | ApiGatewayToolConfigurationDict + ] + """ + The configuration for defining REST API tool filters and overrides for + the gateway target. + """ + @dataclass(kw_only=True) class ApiGatewayToolConfiguration(_SerdeShape): """ @@ -486,6 +705,20 @@ class ApiGatewayToolConfiguration(_SerdeShape): from the REST API's OpenAPI specification. """ +class ApiGatewayToolConfigurationDict(TypedDict, total=False): + """Dictionary form of `ApiGatewayToolConfiguration`.""" + + tool_overrides: Sequence[ApiGatewayToolOverride | ApiGatewayToolOverrideDict] | None + """ + A list of explicit tool definitions with optional custom names and + descriptions. + """ + tool_filters: Required[Sequence[ApiGatewayToolFilter | ApiGatewayToolFilterDict]] + """ + A list of path and method patterns to expose as tools using metadata + from the REST API's OpenAPI specification. + """ + @dataclass(kw_only=True) class ApiGatewayToolFilter(_SerdeShape): """ @@ -503,6 +736,18 @@ class ApiGatewayToolFilter(_SerdeShape): methods: list[str] """The methods to filter for.""" +class ApiGatewayToolFilterDict(TypedDict, total=False): + """Dictionary form of `ApiGatewayToolFilter`.""" + + filter_path: Required[str] + """ + Resource path to match in the REST API. Supports exact paths (for + example, `/pets`) or wildcard paths (for example, `/pets/*` to match all + paths under `/pets`). Must match existing paths in the REST API. + """ + methods: Required[Sequence[str]] + """The methods to filter for.""" + @dataclass(kw_only=True) class ApiGatewayToolOverride(_SerdeShape): """Settings to override configurations for a tool.""" @@ -523,6 +768,25 @@ class ApiGatewayToolOverride(_SerdeShape): method: str """The HTTP method to expose for the specified path.""" +class ApiGatewayToolOverrideDict(TypedDict, total=False): + """Dictionary form of `ApiGatewayToolOverride`.""" + + name: Required[str] + """The name of tool. Identifies the tool in the Model Context Protocol.""" + description: str | None + """ + The description of the tool. Provides information about the purpose and + usage of the tool. If not provided, uses the description from the API's + OpenAPI specification. + """ + path: Required[str] + """ + Resource path in the REST API (e.g., `/pets`). Must explicitly match an + existing path in the REST API. + """ + method: Required[str] + """The HTTP method to expose for the specified path.""" + class ApiKeyCredentialLocation(UnknownEnumMixin, StrEnum): HEADER = "HEADER" QUERY_PARAMETER = "QUERY_PARAMETER" @@ -577,6 +841,25 @@ class _ApiSchemaConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> ApiSchemaConfiguration: ... +class ApiSchemaConfigurationS3Dict(TypedDict): + s3: S3Configuration | S3ConfigurationDict + """ + The Amazon S3 configuration for a gateway. This structure defines how + the gateway accesses files in Amazon S3. + """ + +class ApiSchemaConfigurationInlinePayloadDict(TypedDict): + inline_payload: str + """The inline payload containing the API schema definition.""" + +ApiSchemaConfigurationDict = Union[ + ApiSchemaConfigurationS3Dict | ApiSchemaConfigurationInlinePayloadDict +] +""" +Dictionary form of `ApiSchemaConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ApprovalConfiguration(_SerdeShape): """ @@ -592,6 +875,16 @@ class ApprovalConfiguration(_SerdeShape): default), records require explicit approval for security purposes. """ +class ApprovalConfigurationDict(TypedDict, total=False): + """Dictionary form of `ApprovalConfiguration`.""" + + auto_approval: bool | None + """ + Whether registry records are auto-approved. When set to `true`, records + are automatically approved upon creation. When set to `false` (the + default), records require explicit approval for security purposes. + """ + @dataclass(kw_only=True) class AtlassianOauth2ProviderConfigInput(_SerdeShape): """ @@ -625,6 +918,34 @@ class AtlassianOauth2ProviderConfigInput(_SerdeShape): you manage the secret yourself in Amazon Web Services Secrets Manager. """ +class AtlassianOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `AtlassianOauth2ProviderConfigInput`.""" + + client_id: Required[str] + """ + The client ID for the Atlassian OAuth2 provider. This identifier is + assigned by Atlassian when you register your application. + """ + client_secret: str | None + """ + The client secret for the Atlassian OAuth2 provider. This secret is + assigned by Atlassian and used along with the client ID to authenticate + your application. + """ + client_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None + """ + The source type of the client secret for the Atlassian OAuth2 provider. + Use `MANAGED` if the secret is managed by the service, or `EXTERNAL` if + you manage the secret yourself in Amazon Web Services Secrets Manager. + """ + @dataclass(kw_only=True) class AtlassianOauth2ProviderConfigOutput(_SerdeShape): """ @@ -695,6 +1016,21 @@ class _AuthorizerConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> AuthorizerConfiguration: ... +class AuthorizerConfigurationCustomJWTAuthorizerDict(TypedDict): + custom_jwt_authorizer: ( + CustomJWTAuthorizerConfiguration | CustomJWTAuthorizerConfigurationDict + ) + """ + The inbound JWT-based authorization, specifying how incoming requests + should be authenticated. + """ + +AuthorizerConfigurationDict = Union[AuthorizerConfigurationCustomJWTAuthorizerDict] +""" +Dictionary form of `AuthorizerConfiguration`, setting exactly one +variant. +""" + class AuthorizerType(UnknownEnumMixin, StrEnum): CUSTOM_JWT = "CUSTOM_JWT" AWS_IAM = "AWS_IAM" @@ -716,6 +1052,17 @@ class AuthorizingClaimMatchValueType(_SerdeShape): values you're matching for. """ +class AuthorizingClaimMatchValueTypeDict(TypedDict, total=False): + """Dictionary form of `AuthorizingClaimMatchValueType`.""" + + claim_match_value: Required[ClaimMatchValueType | ClaimMatchValueTypeDict] + """The value or values to match for.""" + claim_match_operator: Required[str] + """ + Defines the relationship between the claim field value and the value or + values you're matching for. + """ + @dataclass(kw_only=True) class BatchPutGatewayRateLimitsInput(_SerdeShape): """Dataclass for BatchPutGatewayRateLimitsInput structure.""" @@ -740,6 +1087,29 @@ class BatchPutGatewayRateLimitsInput(_SerdeShape): fails, no rate limits are changed. """ +class BatchPutGatewayRateLimitsInputDict(TypedDict, total=False): + """Dictionary form of `BatchPutGatewayRateLimitsInput`.""" + + gateway_identifier: Required[str] + """The unique identifier of the gateway.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + rate_limits: Required[Sequence[BatchPutLimitEntry | BatchPutLimitEntryDict]] + """ + The complete set of rate limits for this gateway. This operation + replaces all existing rate limits in a single request. If the operation + fails, no rate limits are changed. + """ + @dataclass(kw_only=True) class BatchPutGatewayRateLimitsOutput(_SerdeShape): """Dataclass for BatchPutGatewayRateLimitsOutput structure.""" @@ -783,6 +1153,30 @@ class BatchPutLimitEntry(_SerdeShape): configurations. """ +class BatchPutLimitEntryDict(TypedDict, total=False): + """Dictionary form of `BatchPutLimitEntry`.""" + + rate_limit_id: str | None + """ + The unique identifier of the rate limit. If provided, the service uses + it for upsert matching against existing rate limits. + """ + description: str | None + """ + An optional human-readable description for this rate limit. If not + provided, the rate limit is created without a description. + """ + dimension_keys: Required[Sequence[str]] + """ + The ordered list of dimension key names that define the scope of this + rate limit. + """ + entries: Required[Sequence[LimitEntry | LimitEntryDict]] + """ + The list of rule entries that map dimension values to rate + configurations. + """ + @dataclass(kw_only=True) class BedrockEvaluatorModelConfig(_SerdeShape): """ @@ -807,6 +1201,26 @@ class BedrockEvaluatorModelConfig(_SerdeShape): beyond the standard inference configuration. """ +class BedrockEvaluatorModelConfigDict(TypedDict, total=False): + """Dictionary form of `BedrockEvaluatorModelConfig`.""" + + model_id: Required[str] + """ + The identifier of the Amazon Bedrock model to use for evaluation. Must + be a supported foundation model available in your region. + """ + inference_config: InferenceConfiguration | InferenceConfigurationDict | None + """ + The inference configuration parameters that control model behavior + during evaluation, including temperature, token limits, and sampling + settings. + """ + additional_model_request_fields: Document | None + """ + Additional model-specific request fields to customize model behavior + beyond the standard inference configuration. + """ + @dataclass(kw_only=True) class BrowserEnterprisePolicy(_SerdeShape): """Browser enterprise policy configuration.""" @@ -819,6 +1233,17 @@ class BrowserEnterprisePolicy(_SerdeShape): and `RECOMMENDED`. """ +class BrowserEnterprisePolicyDict(TypedDict, total=False): + """Dictionary form of `BrowserEnterprisePolicy`.""" + + location: Required[ResourceLocation | ResourceLocationDict] + """The location of the enterprise policy file.""" + type: str | None + """ + The type of browser enterprise policy. Available values are `MANAGED` + and `RECOMMENDED`. + """ + class BrowserEnterprisePolicyType(UnknownEnumMixin, StrEnum): MANAGED = "MANAGED" RECOMMENDED = "RECOMMENDED" @@ -841,6 +1266,20 @@ class BrowserNetworkConfiguration(_SerdeShape): when the network mode is set to `VPC`. """ +class BrowserNetworkConfigurationDict(TypedDict, total=False): + """Dictionary form of `BrowserNetworkConfiguration`.""" + + network_mode: str | None + """ + The network mode for the browser. This field specifies how the browser + connects to the network. + """ + vpc_config: VpcConfig | VpcConfigDict | None + """ + The VPC configuration for the browser. This configuration is required + when the network mode is set to `VPC`. + """ + class BrowserNetworkMode(UnknownEnumMixin, StrEnum): PUBLIC = "PUBLIC" VPC = "VPC" @@ -906,6 +1345,16 @@ class BrowserSigningConfigInput(_SerdeShape): agent to bot control vendors. """ +class BrowserSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `BrowserSigningConfigInput`.""" + + enabled: bool | None + """ + Specifies whether browser signing is enabled. When enabled, the browser + will cryptographically sign HTTP requests to identify itself as an AI + agent to bot control vendors. + """ + @dataclass(kw_only=True) class BrowserSigningConfigOutput(_SerdeShape): """ @@ -964,6 +1413,16 @@ class BuildLifecycleHooks(_SerdeShape): libraries, or caches. Your hook must complete within 120 seconds. """ +class BuildLifecycleHooksDict(TypedDict, total=False): + """Dictionary form of `BuildLifecycleHooks`.""" + + warmup: LifecycleHook | LifecycleHookDict | None + """ + The hook that warms up your agent before any sessions are created. Use + this hook to load the resources that your sessions need, such as models, + libraries, or caches. Your hook must complete within 120 seconds. + """ + @dataclass(kw_only=True) class CapacityProviderConfiguration(_SerdeShape): """ @@ -978,6 +1437,15 @@ class CapacityProviderConfiguration(_SerdeShape): AgentCore Runtime. """ +class CapacityProviderConfigurationDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderConfiguration`.""" + + capacity_provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the capacity provider to use for the + AgentCore Runtime. + """ + class CapacityProviderStatus(UnknownEnumMixin, StrEnum): """ The status of a capacity provider. Possible values: @@ -1075,8 +1543,24 @@ class CapacityProviderVolumeConfiguration(_SerdeShape): level (for example, `/mnt/data`). """ -class CapacityReservationPreference(UnknownEnumMixin, StrEnum): - CAPACITY_RESERVATIONS_ONLY = "capacity-reservations-only" +class CapacityProviderVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderVolumeConfiguration`.""" + + volume_name: Required[str] + """ + The logical name of the capacity provider volume to mount. This name + must match a volume that is defined in the capacity provider's list of + volumes. + """ + mount_path: Required[str] + """ + The mount path for the capacity provider volume inside the AgentCore + Runtime. The path must be under `/mnt` with exactly one subdirectory + level (for example, `/mnt/data`). + """ + +class CapacityReservationPreference(UnknownEnumMixin, StrEnum): + CAPACITY_RESERVATIONS_ONLY = "capacity-reservations-only" OPEN = "open" NONE = "none" @@ -1092,6 +1576,19 @@ class CapacityReservationSpecification(_SerdeShape): instances. """ +class CapacityReservationSpecificationDict(TypedDict, total=False): + """Dictionary form of `CapacityReservationSpecification`.""" + + capacity_reservation_preference: str | None + """The Capacity Reservation preference for the instances.""" + capacity_reservation_target: ( + CapacityReservationTarget | CapacityReservationTargetDict | None + ) + """ + The target Capacity Reservation or Capacity Reservation group for the + instances. + """ + @dataclass(kw_only=True) class CapacityReservationTarget(_SerdeShape): """ @@ -1107,6 +1604,17 @@ class CapacityReservationTarget(_SerdeShape): group in which to run the instances. """ +class CapacityReservationTargetDict(TypedDict, total=False): + """Dictionary form of `CapacityReservationTarget`.""" + + capacity_reservation_id: str | None + """The ID of the Capacity Reservation in which to run the instances.""" + capacity_reservation_resource_group_arn: str | None + """ + The Amazon Resource Name (ARN) of the Capacity Reservation resource + group in which to run the instances. + """ + @dataclass(kw_only=True) class CategoricalScaleDefinition(_SerdeShape): """ @@ -1122,6 +1630,17 @@ class CategoricalScaleDefinition(_SerdeShape): label: str """The label or name of this categorical rating option.""" +class CategoricalScaleDefinitionDict(TypedDict, total=False): + """Dictionary form of `CategoricalScaleDefinition`.""" + + definition: Required[str] + """ + The description that explains what this categorical rating represents + and when it should be used. + """ + label: Required[str] + """The label or name of this categorical rating option.""" + @dataclass(kw_only=True) class CedarPolicy(_SerdeShape): """ @@ -1139,6 +1658,17 @@ class CedarPolicy(_SerdeShape): or denied. """ +class CedarPolicyDict(TypedDict, total=False): + """Dictionary form of `CedarPolicy`.""" + + statement: Required[str] + """ + The Cedar policy statement that defines the authorization logic. This + statement follows Cedar syntax and specifies principals, actions, + resources, and conditions that determine when access should be allowed + or denied. + """ + @dataclass(kw_only=True) class Certificate(_SerdeShape): """A certificate to install in the browser or code interpreter.""" @@ -1146,6 +1676,12 @@ class Certificate(_SerdeShape): location: CertificateLocation """The location of the certificate.""" +class CertificateDict(TypedDict, total=False): + """Dictionary form of `Certificate`.""" + + location: Required[CertificateLocation | CertificateLocationDict] + """The location of the certificate.""" + @dataclass class CertificateConfigurationS3(_SerdeShape): """The Amazon S3 location of the PEM-encoded private CA certificate.""" @@ -1190,6 +1726,28 @@ class _CertificateConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> CertificateConfiguration: ... +class CertificateConfigurationS3Dict(TypedDict): + s3: S3CertificateConfiguration | S3CertificateConfigurationDict + """The Amazon S3 location of the PEM-encoded private CA certificate.""" + +class CertificateConfigurationSecretsManagerDict(TypedDict): + secrets_manager: ( + SecretsManagerCertificateConfiguration + | SecretsManagerCertificateConfigurationDict + ) + """ + The Amazon Web Services Secrets Manager location of the PEM-encoded + private CA certificate. + """ + +CertificateConfigurationDict = Union[ + CertificateConfigurationS3Dict | CertificateConfigurationSecretsManagerDict +] +""" +Dictionary form of `CertificateConfiguration`, setting exactly one +variant. +""" + @dataclass class CertificateLocationSecretsManager(_SerdeShape): """The Amazon Web Services Secrets Manager location of the certificate.""" @@ -1214,6 +1772,13 @@ CertificateLocation = Union[ class _CertificateLocationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CertificateLocation: ... +class CertificateLocationSecretsManagerDict(TypedDict): + secrets_manager: SecretsManagerLocation | SecretsManagerLocationDict + """The Amazon Web Services Secrets Manager location of the certificate.""" + +CertificateLocationDict = Union[CertificateLocationSecretsManagerDict] +"""Dictionary form of `CertificateLocation`, setting exactly one variant.""" + @dataclass(kw_only=True) class CircuitBreakerConfiguration(_SerdeShape): """ @@ -1227,6 +1792,15 @@ class CircuitBreakerConfiguration(_SerdeShape): off, set this value to `DISABLED`. The default is `ENABLED`. """ +class CircuitBreakerConfigurationDict(TypedDict, total=False): + """Dictionary form of `CircuitBreakerConfiguration`.""" + + mode: str | None + """ + Specifies whether you want the circuit breaker turned on. To turn it + off, set this value to `DISABLED`. The default is `ENABLED`. + """ + class CircuitBreakerMode(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -1282,6 +1856,20 @@ The value or values to match for. class _ClaimMatchValueTypeDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ClaimMatchValueType: ... +class ClaimMatchValueTypeMatchValueStringDict(TypedDict): + match_value_string: str + """The string value to match for.""" + +class ClaimMatchValueTypeMatchValueStringListDict(TypedDict): + match_value_string_list: Sequence[str] + """An array of strings to check for a match.""" + +ClaimMatchValueTypeDict = Union[ + ClaimMatchValueTypeMatchValueStringDict + | ClaimMatchValueTypeMatchValueStringListDict +] +"""Dictionary form of `ClaimMatchValueType`, setting exactly one variant.""" + class ClientAuthenticationMethodType(UnknownEnumMixin, StrEnum): CLIENT_SECRET_BASIC = "CLIENT_SECRET_BASIC" CLIENT_SECRET_POST = "CLIENT_SECRET_POST" @@ -1310,6 +1898,24 @@ class CloudWatchLogsInputConfig(_SerdeShape): groups. Used to identify relevant agent sessions. """ +class CloudWatchLogsInputConfigDict(TypedDict, total=False): + """Dictionary form of `CloudWatchLogsInputConfig`.""" + + log_group_names: Sequence[str] | None + """The list of CloudWatch log group names to monitor for agent traces.""" + log_group_name_prefixes: Sequence[str] | None + """ + The list of CloudWatch log group name prefixes to monitor for agent + traces. Specify this instead of `logGroupNames` to match log groups by + prefix. Specify either `logGroupNames` or `logGroupNamePrefixes`, not + both. One of the two is required. + """ + service_names: Required[Sequence[str]] + """ + The list of service names to filter traces within the specified log + groups. Used to identify relevant agent sessions. + """ + @dataclass(kw_only=True) class CloudWatchOutputConfig(_SerdeShape): """ @@ -1345,6 +1951,37 @@ class CloudWatchOutputConfig(_SerdeShape): `logGroupName`. """ +class CloudWatchOutputConfigDict(TypedDict, total=False): + """Dictionary form of `CloudWatchOutputConfig`.""" + + log_group_name: str | None + """ + The name of the CloudWatch log group where evaluation results will be + written. An existing log group is used as-is; otherwise the service + creates it, which requires the evaluation execution role to grant + `logs:CreateLogGroup` on the log group. Don't specify this value when + `resultDestination` is `SOURCE_LOG_GROUP`. The name can't be under the + service-reserved `/aws/bedrock-agentcore/evaluations/` namespace, apart + from this configuration's own service-managed default group. + """ + metrics_namespace: str | None + """ + The CloudWatch metrics namespace where evaluation result metrics are + published. If you omit this value, the service publishes metrics to + `Bedrock-AgentCore/Evaluations`. This value can't begin with `AWS/`. + """ + result_destination: str | None + """ + The destination where evaluation results are written. Valid values: + + - `DEDICATED_LOG_GROUP` (default) -- Writes results to a dedicated + result log group. + + - `SOURCE_LOG_GROUP` -- Writes results back to the log group that the + agent traces were read from. If you use this value, don't specify + `logGroupName`. + """ + @dataclass(kw_only=True) class ClusteringConfig(_SerdeShape): """ @@ -1358,6 +1995,15 @@ class ClusteringConfig(_SerdeShape): triggered. """ +class ClusteringConfigDict(TypedDict, total=False): + """Dictionary form of `ClusteringConfig`.""" + + frequencies: Required[Sequence[str]] + """ + The list of frequencies at which clustering batch evaluations are + triggered. + """ + class ClusteringFrequency(UnknownEnumMixin, StrEnum): DAILY = "DAILY" WEEKLY = "WEEKLY" @@ -1391,6 +2037,16 @@ the code to be executed. class _CodeDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Code: ... +class CodeS3Dict(TypedDict): + s3: S3Location | S3LocationDict + """ + The Amazon Amazon S3 object that contains the source code for the agent + runtime. + """ + +CodeDict = Union[CodeS3Dict] +"""Dictionary form of `Code`, setting exactly one variant.""" + @dataclass class CodeBasedEvaluatorConfigLambdaConfig(_SerdeShape): """The Lambda function configuration for code-based evaluation.""" @@ -1420,6 +2076,16 @@ class _CodeBasedEvaluatorConfigDeserializer: self, deserializer: ShapeDeserializer ) -> CodeBasedEvaluatorConfig: ... +class CodeBasedEvaluatorConfigLambdaConfigDict(TypedDict): + lambda_config: LambdaEvaluatorConfig | LambdaEvaluatorConfigDict + """The Lambda function configuration for code-based evaluation.""" + +CodeBasedEvaluatorConfigDict = Union[CodeBasedEvaluatorConfigLambdaConfigDict] +""" +Dictionary form of `CodeBasedEvaluatorConfig`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class CodeConfiguration(_SerdeShape): """ @@ -1442,6 +2108,23 @@ class CodeConfiguration(_SerdeShape): method that should be invoked when the code runs. """ +class CodeConfigurationDict(TypedDict, total=False): + """Dictionary form of `CodeConfiguration`.""" + + code: Required[Code | CodeDict] + """The source code location and configuration details.""" + runtime: Required[str] + """ + The runtime environment for executing the agent code. Specify the + programming language and version to use for the agent runtime. For valid + values, see the list of supported runtimes. + """ + entry_point: Required[Sequence[str]] + """ + The entry point for the code execution, specifying the function or + method that should be invoked when the code runs. + """ + @dataclass(kw_only=True) class CodeInterpreterNetworkConfiguration(_SerdeShape): """ @@ -1460,6 +2143,20 @@ class CodeInterpreterNetworkConfiguration(_SerdeShape): required when the network mode is set to `VPC`. """ +class CodeInterpreterNetworkConfigurationDict(TypedDict, total=False): + """Dictionary form of `CodeInterpreterNetworkConfiguration`.""" + + network_mode: str | None + """ + The network mode for the code interpreter. This field specifies how the + code interpreter connects to the network. + """ + vpc_config: VpcConfig | VpcConfigDict | None + """ + The VPC configuration for the code interpreter. This configuration is + required when the network mode is set to `VPC`. + """ + class CodeInterpreterNetworkMode(UnknownEnumMixin, StrEnum): PUBLIC = "PUBLIC" SANDBOX = "SANDBOX" @@ -1537,6 +2234,44 @@ class CoinbaseCdpConfigurationInput(_SerdeShape): `walletSecretSource` is set to `EXTERNAL`. """ +class CoinbaseCdpConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `CoinbaseCdpConfigurationInput`.""" + + api_key_id: Required[str] + """The API key identifier provided by Coinbase Developer Platform.""" + api_key_secret: str | None + """The API key secret provided by Coinbase Developer Platform.""" + api_key_secret_source: str | None + """ + The source type of the API key secret for the Coinbase Developer + Platform. Use `MANAGED` if the secret is managed by the service, or + `EXTERNAL` if you manage the secret yourself in Amazon Web Services + Secrets Manager. + """ + api_key_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the API key secret. This includes the secret ID and the JSON key + used to extract the API key secret value from the secret. Required when + `apiKeySecretSource` is set to `EXTERNAL`. + """ + wallet_secret: str | None + """The wallet secret provided by Coinbase Developer Platform.""" + wallet_secret_source: str | None + """ + The source type of the wallet secret for the Coinbase Developer + Platform. Use `MANAGED` if the secret is managed by the service, or + `EXTERNAL` if you manage the secret yourself in Amazon Web Services + Secrets Manager. + """ + wallet_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the wallet secret. This includes the secret ID and the JSON key + used to extract the wallet secret value from the secret. Required when + `walletSecretSource` is set to `EXTERNAL`. + """ + @dataclass(kw_only=True) class CoinbaseCdpConfigurationOutput(_SerdeShape): """Coinbase CDP configuration output with secret ARNs.""" @@ -1595,6 +2330,24 @@ class CoinbaseCdpRotationTargets(_SerdeShape): briefly interrupted. """ +class CoinbaseCdpRotationTargetsDict(TypedDict, total=False): + """Dictionary form of `CoinbaseCdpRotationTargets`.""" + + secrets: Required[Sequence[str]] + """ + The secrets to rotate. Specify at least one value. Each secret that you + specify is rotated independently. + + - `API_KEY` - The API key that the payment connector uses to call + Coinbase CDP. Rotate it as routine maintenance, or if you suspect that + it is compromised. + + - `WALLET_SECRET` - The wallet secret that signs transactions. Rotate it + only if it is lost or compromised. Coinbase CDP allows one wallet + secret per project, so it is replaced in place and signing can be + briefly interrupted. + """ + class CoinbaseCdpSecret(UnknownEnumMixin, StrEnum): API_KEY = "API_KEY" WALLET_SECRET = "WALLET_SECRET" @@ -1609,6 +2362,12 @@ class ComponentConfiguration(_SerdeShape): configuration: Document """The configuration values as a flexible JSON document.""" +class ComponentConfigurationDict(TypedDict, total=False): + """Dictionary form of `ComponentConfiguration`.""" + + configuration: Required[Document] + """The configuration values as a flexible JSON document.""" + @dataclass class ComputeConfigurationEc2Configuration(_SerdeShape): """The Amazon EC2 compute configuration for the capacity provider.""" @@ -1637,6 +2396,16 @@ instances. class _ComputeConfigurationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ComputeConfiguration: ... +class ComputeConfigurationEc2ConfigurationDict(TypedDict): + ec2_configuration: Ec2Configuration | Ec2ConfigurationDict + """The Amazon EC2 compute configuration for the capacity provider.""" + +ComputeConfigurationDict = Union[ComputeConfigurationEc2ConfigurationDict] +""" +Dictionary form of `ComputeConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ConcurrentModificationException(ServiceError, _SerdeShape): """ @@ -1697,6 +2466,26 @@ match on principals, request paths, or the requested model. class _ConditionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Condition: ... +class ConditionMatchPrincipalsDict(TypedDict): + match_principals: MatchPrincipals | MatchPrincipalsDict + """ + A condition that matches on the identity of the caller making the + request. + """ + +class ConditionMatchPathsDict(TypedDict): + match_paths: MatchPaths | MatchPathsDict + """A condition that matches on the request path.""" + +class ConditionMatchModelsDict(TypedDict): + match_models: MatchModels | MatchModelsDict + """A condition that matches on the model requested in an inference request.""" + +ConditionDict = Union[ + ConditionMatchPrincipalsDict | ConditionMatchPathsDict | ConditionMatchModelsDict +] +"""Dictionary form of `Condition`, setting exactly one variant.""" + @dataclass class ConfigurationBundleActionStaticOverride(_SerdeShape): """ @@ -1740,6 +2529,29 @@ class _ConfigurationBundleActionDeserializer: self, deserializer: ShapeDeserializer ) -> ConfigurationBundleAction: ... +class ConfigurationBundleActionStaticOverrideDict(TypedDict): + static_override: StaticOverride | StaticOverrideDict + """ + A static configuration bundle override that applies a single bundle + version to all matching requests. + """ + +class ConfigurationBundleActionWeightedOverrideDict(TypedDict): + weighted_override: WeightedOverride | WeightedOverrideDict + """ + A weighted configuration bundle override that splits traffic between + multiple bundle versions based on configured weights. + """ + +ConfigurationBundleActionDict = Union[ + ConfigurationBundleActionStaticOverrideDict + | ConfigurationBundleActionWeightedOverrideDict +] +""" +Dictionary form of `ConfigurationBundleAction`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ConfigurationBundleReference(_SerdeShape): """A reference to a specific version of a configuration bundle.""" @@ -1749,6 +2561,14 @@ class ConfigurationBundleReference(_SerdeShape): bundle_version: str """The version of the configuration bundle.""" +class ConfigurationBundleReferenceDict(TypedDict, total=False): + """Dictionary form of `ConfigurationBundleReference`.""" + + bundle_arn: Required[str] + """The Amazon Resource Name (ARN) of the configuration bundle.""" + bundle_version: Required[str] + """The version of the configuration bundle.""" + class ConfigurationBundleStatus(UnknownEnumMixin, StrEnum): ACTIVE = "ACTIVE" CREATING = "CREATING" @@ -1825,6 +2645,26 @@ class ConnectorConfiguration(_SerdeShape): overrides. """ +class ConnectorConfigurationDict(TypedDict, total=False): + """Dictionary form of `ConnectorConfiguration`.""" + + name: Required[str] + """The tool or operation name (for example, `retrieve` or `webSearch`).""" + description: str | None + """An agent-facing description override for this tool.""" + parameter_values: Document | None + """ + Parameters to set as fixed or default values when provisioning this + tool. + """ + parameter_overrides: ( + Sequence[ConnectorParameterOverride | ConnectorParameterOverrideDict] | None + ) + """ + Parameters to expose to the agent at runtime, with optional description + overrides. + """ + @dataclass(kw_only=True) class ConnectorParameterOverride(_SerdeShape): """ @@ -1845,6 +2685,22 @@ class ConnectorParameterOverride(_SerdeShape): the service default. """ +class ConnectorParameterOverrideDict(TypedDict, total=False): + """Dictionary form of `ConnectorParameterOverride`.""" + + path: Required[str] + """ + A JSON Pointer path identifying the parameter (for example, + `/numberOfResults` or `/filter`). + """ + description: str | None + """An agent-facing description override for this parameter.""" + visible: bool | None + """ + Whether this parameter is visible to the agent. If not specified, uses + the service default. + """ + @dataclass(kw_only=True) class ConnectorSource(_SerdeShape): """The source identifying the connector integration.""" @@ -1860,8 +2716,22 @@ class ConnectorSource(_SerdeShape): don't specify a version, the service uses the latest available version. """ -@dataclass(kw_only=True) -class ConnectorTargetConfiguration(_SerdeShape): +class ConnectorSourceDict(TypedDict, total=False): + """Dictionary form of `ConnectorSource`.""" + + connector_id: Required[str] + """ + The identifier for the connector integration (for example, + `bedrock-knowledge-bases`). + """ + version: str | None + """ + The version of the connector to use (for example, `1.1.0`). If you + don't specify a version, the service uses the latest available version. + """ + +@dataclass(kw_only=True) +class ConnectorTargetConfiguration(_SerdeShape): """ Configuration for a connector integration target. Connectors provide pre-built integrations with Amazon Web Services services and third-party @@ -1878,6 +2748,19 @@ class ConnectorTargetConfiguration(_SerdeShape): configurations: list[ConnectorConfiguration] | None = ... """A list of per-tool configurations for the connector.""" +class ConnectorTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `ConnectorTargetConfiguration`.""" + + source: Required[ConnectorSource | ConnectorSourceDict] + """The source configuration identifying which connector to use.""" + enabled: Sequence[str] | None + """ + A list of tool names to enable from this connector. If absent, all tools + provided by the connector are enabled. + """ + configurations: Sequence[ConnectorConfiguration | ConnectorConfigurationDict] | None + """A list of per-tool configurations for the connector.""" + @dataclass(kw_only=True) class ConsentPortalIdpConfig(_SerdeShape): """ @@ -1901,6 +2784,25 @@ class ConsentPortalIdpConfig(_SerdeShape): tokens from the identity provider. """ +class ConsentPortalIdpConfigDict(TypedDict, total=False): + """Dictionary form of `ConsentPortalIdpConfig`.""" + + credential_provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the OAuth2 credential provider used to + authenticate end users to the consent portal. + """ + scopes: Required[Sequence[str]] + """ + The OAuth2 scopes that the consent portal requests when authenticating + end users. + """ + audience: str | None + """ + The audience value that the consent portal includes when requesting + tokens from the identity provider. + """ + @dataclass(kw_only=True) class ConsentPortalSource(_SerdeShape): """A resource served by the consent portal.""" @@ -1913,6 +2815,17 @@ class ConsentPortalSource(_SerdeShape): type: str """The type of the source resource.""" +class ConsentPortalSourceDict(TypedDict, total=False): + """Dictionary form of `ConsentPortalSource`.""" + + identifier: Required[str] + """ + The identifier of the source resource. For an `agentcore-gateway` + source, this is the gateway ID or its Amazon Resource Name (ARN). + """ + type: Required[str] + """The type of the source resource.""" + class ConsentPortalSourceType(UnknownEnumMixin, StrEnum): """ The type of a consent portal source. Currently, we only support type @@ -1988,6 +2901,12 @@ class ContainerConfiguration(_SerdeShape): container_uri: str """The ECR URI of the container.""" +class ContainerConfigurationDict(TypedDict, total=False): + """Dictionary form of `ContainerConfiguration`.""" + + container_uri: Required[str] + """The ECR URI of the container.""" + @dataclass class ContentRawText(_SerdeShape): """ @@ -2018,6 +2937,17 @@ content formats that are used as input for AI-powered policy generation. class _ContentDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Content: ... +class ContentRawTextDict(TypedDict): + raw_text: str + """ + The raw text content containing natural language descriptions of desired + policy behavior. This text is processed by AI to generate corresponding + Dogwood policy statements that match the described intent. + """ + +ContentDict = Union[ContentRawTextDict] +"""Dictionary form of `Content`, setting exactly one variant.""" + @dataclass(kw_only=True) class ContentConfiguration(_SerdeShape): """Defines what content to stream and at what level of detail.""" @@ -2027,6 +2957,14 @@ class ContentConfiguration(_SerdeShape): level: str = ... """Level of detail for streamed content.""" +class ContentConfigurationDict(TypedDict, total=False): + """Dictionary form of `ContentConfiguration`.""" + + type: Required[str] + """Type of content to stream.""" + level: str | None + """Level of detail for streamed content.""" + class ContentLevel(UnknownEnumMixin, StrEnum): METADATA_ONLY = "METADATA_ONLY" FULL_CONTENT = "FULL_CONTENT" @@ -2063,6 +3001,34 @@ class CreateAgentRuntimeEndpointInput(_SerdeShape): example, by purpose, owner, or environment. """ +class CreateAgentRuntimeEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateAgentRuntimeEndpointInput`.""" + + agent_runtime_id: Required[str] + """ + The unique identifier of the AgentCore Runtime to create an endpoint + for. + """ + name: Required[str] + """The name of the AgentCore Runtime endpoint.""" + agent_runtime_version: str | None + """The version of the AgentCore Runtime to use for the endpoint.""" + description: str | None + """The description of the AgentCore Runtime endpoint.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the agent runtime endpoint. + Tags enable you to categorize your resources in different ways, for + example, by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateAgentRuntimeEndpointOutput(_SerdeShape): """Dataclass for CreateAgentRuntimeEndpointOutput structure.""" @@ -2168,6 +3134,96 @@ class CreateAgentRuntimeInput(_SerdeShape): most one resource configuration. """ +class CreateAgentRuntimeInputDict(TypedDict, total=False): + """Dictionary form of `CreateAgentRuntimeInput`.""" + + agent_runtime_name: Required[str] + """The name of the AgentCore Runtime.""" + agent_runtime_artifact: Required[AgentRuntimeArtifact | AgentRuntimeArtifactDict] + """The artifact of the AgentCore Runtime.""" + role_arn: Required[str] + """The IAM role ARN that provides permissions for the AgentCore Runtime.""" + network_configuration: NetworkConfiguration | NetworkConfigurationDict | None + """The network configuration for the AgentCore Runtime.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + description: str | None + """The description of the AgentCore Runtime.""" + authorizer_configuration: ( + AuthorizerConfiguration | AuthorizerConfigurationDict | None + ) + """The authorizer configuration for the AgentCore Runtime.""" + request_header_configuration: ( + RequestHeaderConfiguration | RequestHeaderConfigurationDict | None + ) + """ + Configuration for HTTP request headers that will be passed through to + the runtime. + """ + protocol_configuration: ProtocolConfiguration | ProtocolConfigurationDict | None + """ + The protocol configuration for the AgentCore Runtime, including the + protocol, port, and path on which the agent server is available. + """ + lifecycle_configuration: LifecycleConfiguration | LifecycleConfigurationDict | None + """The life cycle configuration for the AgentCore Runtime.""" + hooks_configuration: ( + RuntimeHooksConfiguration | RuntimeHooksConfigurationDict | None + ) + """ + The lifecycle hooks configuration for the AgentCore Runtime. Use + lifecycle hooks to run actions in the agent's container at fixed points + in the runtime's lifecycle, such as warming up the agent before + sessions are created. + """ + environment_variables: Mapping[str, str] | None + """Environment variables to set in the AgentCore Runtime environment.""" + filesystem_configurations: ( + Sequence[FilesystemConfiguration | FilesystemConfigurationDict] | None + ) + """ + The filesystem configurations to mount into the AgentCore Runtime. Use + filesystem configurations to provide persistent storage to your + AgentCore Runtime sessions. + """ + capacity_provider_configuration: ( + CapacityProviderConfiguration | CapacityProviderConfigurationDict | None + ) + """ + The capacity provider configuration for the AgentCore Runtime. Use a + capacity provider to run the AgentCore Runtime on the Instances compute + type, which provisions Amazon Web Services managed compute in your + account. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the agent runtime. Tags enable + you to categorize your resources in different ways, for example, by + purpose, owner, or environment. + """ + platform_version: str | None + """The version of the runtime platform to use for the AgentCore Runtime.""" + allowed_ports: Sequence[AllowedPort | AllowedPortDict] | None + """ + The additional ports on the AgentCore Runtime that are reachable through + the runtime's session URL. Specify one to five non-overlapping entries, + each containing either a single port or an inclusive port range. Ports + must be between `8000` and `12000`, excluding the reserved port `8443`. + """ + resource_configurations: ( + Sequence[ResourceConfiguration | ResourceConfigurationDict] | None + ) + """ + The resource configurations for the AgentCore Runtime, such as the + minimum amount of memory to allocate to the runtime. You can specify at + most one resource configuration. + """ + @dataclass(kw_only=True) class CreateAgentRuntimeOutput(_SerdeShape): """Dataclass for CreateAgentRuntimeOutput structure.""" @@ -2226,6 +3282,39 @@ class CreateApiKeyCredentialProviderInput(_SerdeShape): ways, for example, by purpose, owner, or environment. """ +class CreateApiKeyCredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreateApiKeyCredentialProviderInput`.""" + + name: Required[str] + """ + The name of the API key credential provider. The name must be unique + within your account. + """ + api_key: str | None + """ + The API key to use for authentication. This value is encrypted and + stored securely. + """ + api_key_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the API key. This includes the secret ID and the JSON key used to + extract the API key value from the secret. Required when + `apiKeySecretSource` is set to `EXTERNAL`. + """ + api_key_secret_source: str | None + """ + The source type of the API key secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the API key credential + provider. Tags enable you to categorize your resources in different + ways, for example, by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateApiKeyCredentialProviderOutput(_SerdeShape): """Dataclass for CreateApiKeyCredentialProviderOutput structure.""" @@ -2314,6 +3403,67 @@ class CreateBrowserInput(_SerdeShape): owner, or environment. """ +class CreateBrowserInputDict(TypedDict, total=False): + """Dictionary form of `CreateBrowserInput`.""" + + name: Required[str] + """The name of the browser. The name must be unique within your account.""" + description: str | None + """The description of the browser.""" + execution_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that provides permissions + for the browser to access Amazon Web Services services. + """ + network_configuration: Required[ + BrowserNetworkConfiguration | BrowserNetworkConfigurationDict + ] + """ + The network configuration for the browser. This configuration specifies + the network mode for the browser. + """ + recording: RecordingConfig | RecordingConfigDict | None + """ + The recording configuration for the browser. When enabled, browser + sessions are recorded and stored in the specified Amazon S3 location. + """ + browser_signing: BrowserSigningConfigInput | BrowserSigningConfigInputDict | None + """ + The browser signing configuration that enables cryptographic agent + identification using HTTP message signatures for web bot authentication. + """ + enterprise_policies: ( + Sequence[BrowserEnterprisePolicy | BrowserEnterprisePolicyDict] | None + ) + """A list of enterprise policy files for the browser.""" + certificates: Sequence[Certificate | CertificateDict] | None + """A list of certificates to install in the browser.""" + filesystem_configurations: ( + Sequence[ToolsFileSystemConfiguration | ToolsFileSystemConfigurationDict] | None + ) + """ + The file system configurations to mount into the browser. Use these + configurations to mount your own Amazon Simple Storage Service (Amazon + S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your + sessions can then access your data. If you don't specify this field, no + file systems are mounted. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock AgentCore ignores the request but does not + return an error. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the browser. Tags enable you + to categorize your resources in different ways, for example, by purpose, + owner, or environment. + """ + @dataclass(kw_only=True) class CreateBrowserOutput(_SerdeShape): """Dataclass for CreateBrowserOutput structure.""" @@ -2364,6 +3514,35 @@ class CreateBrowserProfileInput(_SerdeShape): by purpose, owner, or environment. """ +class CreateBrowserProfileInputDict(TypedDict, total=False): + """Dictionary form of `CreateBrowserProfileInput`.""" + + name: Required[str] + """ + The name of the browser profile. The name must be unique within your + account and can contain alphanumeric characters and underscores. + """ + description: str | None + """ + A description of the browser profile. Use this field to describe the + purpose or contents of the profile. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock AgentCore ignores the request but does not + return an error. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the browser profile. Tags + enable you to categorize your resources in different ways, for example, + by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateBrowserProfileOutput(_SerdeShape): """Dataclass for CreateBrowserProfileOutput structure.""" @@ -2427,37 +3606,81 @@ class CreateCapacityProviderInput(_SerdeShape): system, allowed instance types, networking, and storage. """ -@dataclass(kw_only=True) -class CreateCapacityProviderOutput(_SerdeShape): - """Dataclass for CreateCapacityProviderOutput structure.""" +class CreateCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityProviderInput`.""" - capacity_provider_id: str - """The unique identifier of the created capacity provider.""" - capacity_provider_arn: str - """The Amazon Resource Name (ARN) of the capacity provider.""" - name: str - """The name of the capacity provider.""" - status: str + name: Required[str] """ - The current status of the capacity provider. For possible values, see - `CapacityProviderStatus`. + The name of the capacity provider. The name must be unique within your + account. """ - response_metadata: ResponseMetadata = ... + description: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + An optional description of the capacity provider. If you don't specify + a description, the service creates the capacity provider without one. """ - -@dataclass(kw_only=True) -class CreateCodeInterpreterInput(_SerdeShape): - """Dataclass for CreateCodeInterpreterInput structure.""" - - name: str | None = ... + permissions_configuration: Required[ + PermissionsConfiguration | PermissionsConfigurationDict + ] """ - The name of the code interpreter. The name must be unique within your - account. + The permissions configuration for the capacity provider. This specifies + the IAM role that AgentCore uses to manage the Amazon EC2 instances on + your behalf. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to associate with the capacity provider. If + you don't specify tags, the capacity provider is created with no tags. + """ + compute_configuration: Required[ComputeConfiguration | ComputeConfigurationDict] + """ + The compute configuration for the capacity provider. This defines the + Amazon EC2 compute resources used to launch instances: the operating + system, allowed instance types, networking, and storage. + """ + +@dataclass(kw_only=True) +class CreateCapacityProviderOutput(_SerdeShape): + """Dataclass for CreateCapacityProviderOutput structure.""" + + capacity_provider_id: str + """The unique identifier of the created capacity provider.""" + capacity_provider_arn: str + """The Amazon Resource Name (ARN) of the capacity provider.""" + name: str + """The name of the capacity provider.""" + status: str + """ + The current status of the capacity provider. For possible values, see + `CapacityProviderStatus`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateCodeInterpreterInput(_SerdeShape): + """Dataclass for CreateCodeInterpreterInput structure.""" + + name: str | None = ... + """ + The name of the code interpreter. The name must be unique within your + account. """ description: str | None = ... """The description of the code interpreter.""" @@ -2497,6 +3720,56 @@ class CreateCodeInterpreterInput(_SerdeShape): by purpose, owner, or environment. """ +class CreateCodeInterpreterInputDict(TypedDict, total=False): + """Dictionary form of `CreateCodeInterpreterInput`.""" + + name: Required[str] + """ + The name of the code interpreter. The name must be unique within your + account. + """ + description: str | None + """The description of the code interpreter.""" + execution_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that provides permissions + for the code interpreter to access Amazon Web Services services. + """ + network_configuration: Required[ + CodeInterpreterNetworkConfiguration | CodeInterpreterNetworkConfigurationDict + ] + """ + The network configuration for the code interpreter. This configuration + specifies the network mode for the code interpreter. + """ + certificates: Sequence[Certificate | CertificateDict] | None + """A list of certificates to install in the code interpreter.""" + filesystem_configurations: ( + Sequence[ToolsFileSystemConfiguration | ToolsFileSystemConfigurationDict] | None + ) + """ + The file system configurations to mount into the code interpreter. Use + these configurations to mount your own Amazon Simple Storage Service + (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access + points. Your sessions can then access your data. If you don't specify + this field, no file systems are mounted. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock AgentCore ignores the request but does not + return an error. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the code interpreter. Tags + enable you to categorize your resources in different ways, for example, + by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateCodeInterpreterOutput(_SerdeShape): """Dataclass for CreateCodeInterpreterOutput structure.""" @@ -2568,6 +3841,58 @@ class CreateConfigurationBundleInput(_SerdeShape): by purpose, owner, or environment. """ +class CreateConfigurationBundleInputDict(TypedDict, total=False): + """Dictionary form of `CreateConfigurationBundleInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + bundle_name: Required[str] + """ + The name for the configuration bundle. Names must be unique within your + account. + """ + description: str | None + """The description for the configuration bundle.""" + components: Required[ + Mapping[str, ComponentConfiguration | ComponentConfigurationDict] + ] + """ + A map of component identifiers to their configurations. Each component + represents a configurable element within the bundle. + """ + branch_name: str | None + """ + The branch name for version tracking. Defaults to `mainline` if not + specified. + """ + commit_message: str | None + """ + A commit message describing the initial version of the configuration + bundle. + """ + created_by: VersionCreatedBySource | VersionCreatedBySourceDict | None + """ + The source that created this version, including the source name and + optional ARN. + """ + kms_key_arn: str | None + """Optional KMS key ARN for encrypting component configurations.""" + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the configuration bundle. Tags + enable you to categorize your resources in different ways, for example, + by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateConfigurationBundleOutput(_SerdeShape): """Dataclass for CreateConfigurationBundleOutput structure.""" @@ -2621,6 +3946,38 @@ class CreateConsentPortalInput(_SerdeShape): by purpose, owner, or environment. """ +class CreateConsentPortalInputDict(TypedDict, total=False): + """Dictionary form of `CreateConsentPortalInput`.""" + + execution_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role that the consent portal + assumes to access the resources defined in its sources. + """ + idp_config: Required[ConsentPortalIdpConfig | ConsentPortalIdpConfigDict] + """ + The identity provider configuration that the consent portal uses to + authenticate end users. + """ + name: Required[str] + """ + The name of the consent portal. The name must be unique within your + account. + """ + sources: Required[Sequence[ConsentPortalSource | ConsentPortalSourceDict]] + """ + The resources served by the consent portal. Currently, we only support + type `agentcore-gateway`. + """ + description: str | None + """The description of the consent portal.""" + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the consent portal. Tags + enable you to categorize your resources in different ways, for example, + by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateConsentPortalOutput(_SerdeShape): """Dataclass for CreateConsentPortalOutput structure.""" @@ -2706,6 +4063,45 @@ class CreateDatasetInput(_SerdeShape): tags: dict[str, str] | None = ... """A map of tag keys and values to assign to the dataset.""" +class CreateDatasetInputDict(TypedDict, total=False): + """Dictionary form of `CreateDatasetInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dataset_name: Required[str] + """ + Human-readable name for the dataset. Must be unique within the account. + Immutable after creation. + """ + description: str | None + """A description of the dataset.""" + source: Required[DataSourceType | DataSourceTypeDict] + """ + Source of initial examples. Provide either inline examples or an S3 URI + pointing to a JSONL file. + """ + schema_type: Required[str] + """ + Versioned schema type governing the structure of examples. Immutable + after creation. + """ + kms_key_arn: str | None + """ + Optional KMS key ARN for server-side encryption on service Amazon S3 + writes. + """ + tags: Mapping[str, str] | None + """A map of tag keys and values to assign to the dataset.""" + @dataclass(kw_only=True) class CreateDatasetOutput(_SerdeShape): """Dataclass for CreateDatasetOutput structure.""" @@ -2747,6 +4143,23 @@ class CreateDatasetVersionInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateDatasetVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateDatasetVersionInput`.""" + + dataset_id: Required[str] + """The unique identifier of the dataset to publish a version for.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateDatasetVersionOutput(_SerdeShape): """Dataclass for CreateDatasetVersionOutput structure.""" @@ -2824,6 +4237,57 @@ class CreateEvaluatorInput(_SerdeShape): by purpose, owner, or environment. """ +class CreateEvaluatorInputDict(TypedDict, total=False): + """Dictionary form of `CreateEvaluatorInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + evaluator_name: Required[str] + """The name of the evaluator. Must be unique within your account.""" + description: str | None + """ + The description of the evaluator that explains its purpose and + evaluation criteria. + """ + evaluator_config: Required[EvaluatorConfig | EvaluatorConfigDict] + """ + The configuration for the evaluator. Specify either LLM-as-a-Judge + settings with instructions, rating scale, and model configuration, or + code-based settings with a customer-managed Lambda function. + """ + level: Required[str] + """ + The evaluation level that determines the scope of evaluation. Valid + values are `TOOL_CALL` for individual tool invocations, `TRACE` for + single request-response interactions, or `SESSION` for entire + conversation sessions. + """ + kms_key_arn: str | None + """ + The Amazon Resource Name (ARN) of a customer managed KMS key to use for + encrypting sensitive evaluator data, including instructions and rating + scale. If you don't specify a KMS key, the evaluator data is encrypted + with an Amazon Web Services owned key. Only symmetric encryption KMS + keys are supported. For more information, see [Encryption at rest for + AgentCore + Evaluations](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/evaluations-encryption.html). + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to an AgentCore Evaluator. Tags + enable you to categorize your resources in different ways, for example, + by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateEvaluatorOutput(_SerdeShape): """Dataclass for CreateEvaluatorOutput structure.""" @@ -2928,6 +4392,98 @@ class CreateGatewayInput(_SerdeShape): clients reach the gateway through your own proxy or custom domain. """ +class CreateGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateGatewayInput`.""" + + name: Required[str] + """The name of the gateway. The name must be unique within your account.""" + description: str | None + """The description of the gateway.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role that provides permissions + for the gateway to access Amazon Web Services services. + """ + protocol_type: str | None + """The protocol type for the gateway.""" + protocol_configuration: ( + GatewayProtocolConfiguration | GatewayProtocolConfigurationDict | None + ) + """ + The configuration settings for the protocol specified in the + `protocolType` parameter. + """ + authorizer_type: Required[str] + """ + The type of authorizer to use for the gateway. + + - `CUSTOM_JWT` - Authorize with a bearer token. + + - `AWS_IAM` - Authorize with your Amazon Web Services IAM credentials. + + - `NONE` - No authorization + """ + authorizer_configuration: ( + AuthorizerConfiguration | AuthorizerConfigurationDict | None + ) + """ + The authorizer configuration for the gateway. Required if + `authorizerType` is `CUSTOM_JWT`. + """ + kms_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the KMS key used to encrypt data + associated with the gateway. + """ + interceptor_configurations: ( + Sequence[GatewayInterceptorConfiguration | GatewayInterceptorConfigurationDict] + | None + ) + """ + A list of configuration settings for a gateway interceptor. Gateway + interceptors allow custom code to be invoked during gateway invocations. + """ + policy_engine_configuration: ( + GatewayPolicyEngineConfiguration | GatewayPolicyEngineConfigurationDict | None + ) + """ + The policy engine configuration for the gateway. A policy engine is a + collection of policies that evaluates and authorizes agent tool calls. + When associated with a gateway, the policy engine intercepts all agent + requests and determines whether to allow or deny each action based on + the defined policies. + """ + exception_level: str | None + """ + The level of detail in error messages returned when invoking the + gateway. + + - If the value is `DEBUG`, granular exception messages are returned to + help a user debug the gateway. + + - If the value is omitted, a generic error message is returned to the + end user. + """ + tags: Mapping[str, str] | None + """A map of key-value pairs to associate with the gateway as metadata tags.""" + domain_override: DomainOverride | DomainOverrideDict | None + """ + The public domain names that the gateway advertises in its OAuth + discovery URLs instead of the inbound Host header. Specify this when + clients reach the gateway through your own proxy or custom domain. + """ + @dataclass(kw_only=True) class CreateGatewayOutput(_SerdeShape): """Dataclass for CreateGatewayOutput structure.""" @@ -3046,6 +4602,41 @@ class CreateGatewayRateLimitInput(_SerdeShape): entries: list[LimitEntry] | None = ... """The rule entries that map dimension values to rate configurations.""" +class CreateGatewayRateLimitInputDict(TypedDict, total=False): + """Dictionary form of `CreateGatewayRateLimitInput`.""" + + gateway_identifier: Required[str] + """The unique identifier of the gateway to create the rate limit for.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + rate_limit_id: str | None + """ + An optional customer-defined identifier for the rate limit. If not + provided, the system generates one. + """ + description: str | None + """ + An optional human-readable description for this rate limit. If not + provided, the rate limit is created without a description. + """ + dimension_keys: Required[Sequence[str]] + """ + The ordered list of dimension key names that define the scope of this + rate limit. Must be unique per gateway---no two rate limits can share + the same dimension keys. + """ + entries: Required[Sequence[LimitEntry | LimitEntryDict]] + """The rule entries that map dimension values to rate configurations.""" + @dataclass(kw_only=True) class CreateGatewayRateLimitOutput(_SerdeShape): """Shared fields for `GatewayRateLimit` responses.""" @@ -3115,6 +4706,40 @@ class CreateGatewayRuleInput(_SerdeShape): description: str | None = ... """The description of the gateway rule.""" +class CreateGatewayRuleInputDict(TypedDict, total=False): + """Dictionary form of `CreateGatewayRuleInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway to create a rule for.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + priority: Required[int] + """ + The priority of the rule. Rules are evaluated in order of priority, with + lower numbers evaluated first. Must be between 1 and 1,000,000. + """ + conditions: Sequence[Condition | ConditionDict] | None + """ + The conditions that must be met for the rule to apply. Conditions can + match on principals (IAM ARNs) or request paths. + """ + actions: Required[Sequence[Action | ActionDict]] + """ + The actions to take when the rule conditions are met. Actions can route + to a specific target or apply a configuration bundle override. + """ + description: str | None + """The description of the gateway rule.""" + @dataclass(kw_only=True) class CreateGatewayRuleOutput(_SerdeShape): """Dataclass for CreateGatewayRuleOutput structure.""" @@ -3172,30 +4797,89 @@ class CreateGatewayTargetInput(_SerdeShape): This field is autopopulated if not provided. """ - target_configuration: TargetConfiguration | None = ... + target_configuration: TargetConfiguration | None = ... + """ + The configuration settings for the target, including endpoint + information and schema definitions. + """ + credential_provider_configurations: ( + list[CredentialProviderConfiguration] | None + ) = ... + """ + The credential provider configurations for the target. These + configurations specify how the gateway authenticates with the target + endpoint. + """ + metadata_configuration: MetadataConfiguration | None = ... + """ + Optional configuration for HTTP header and query parameter propagation + to and from the gateway target. + """ + private_endpoint: PrivateEndpoint | None = ... + """ + The private endpoint configuration for the gateway target. Use this to + connect the gateway to private resources in your VPC. + """ + certificate_configurations: list[CertificateConfiguration] | None = ... + """ + The private certificate authority (CA) configurations for the gateway + target. Use this to have the gateway trust a private CA when it + establishes TLS connections to the target endpoint. Provide each + certificate by reference to an Amazon S3 object or an Amazon Web + Services Secrets Manager secret. You can specify only one certificate + authority configuration in this list. + """ + +class CreateGatewayTargetInputDict(TypedDict, total=False): + """Dictionary form of `CreateGatewayTargetInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway to create a target for.""" + name: str | None + """ + The name of the gateway target. The name must be unique within the + gateway. + """ + description: str | None + """The description of the gateway target.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + target_configuration: Required[TargetConfiguration | TargetConfigurationDict] """ The configuration settings for the target, including endpoint information and schema definitions. """ credential_provider_configurations: ( - list[CredentialProviderConfiguration] | None - ) = ... + Sequence[CredentialProviderConfiguration | CredentialProviderConfigurationDict] + | None + ) """ The credential provider configurations for the target. These configurations specify how the gateway authenticates with the target endpoint. """ - metadata_configuration: MetadataConfiguration | None = ... + metadata_configuration: MetadataConfiguration | MetadataConfigurationDict | None """ Optional configuration for HTTP header and query parameter propagation to and from the gateway target. """ - private_endpoint: PrivateEndpoint | None = ... + private_endpoint: PrivateEndpoint | PrivateEndpointDict | None """ The private endpoint configuration for the gateway target. Use this to connect the gateway to private resources in your VPC. """ - certificate_configurations: list[CertificateConfiguration] | None = ... + certificate_configurations: ( + Sequence[CertificateConfiguration | CertificateConfigurationDict] | None + ) """ The private certificate authority (CA) configurations for the gateway target. Use this to have the gateway trust a private CA when it @@ -3292,6 +4976,33 @@ class CreateHarnessEndpointInput(_SerdeShape): tags: dict[str, str] | None = ... """Tags to apply to the endpoint resource.""" +class CreateHarnessEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateHarnessEndpointInput`.""" + + harness_id: Required[str] + """The ID of the harness to create an endpoint for.""" + endpoint_name: Required[str] + """ + The name of the endpoint. Must start with a letter and contain only + alphanumeric characters and underscores. + """ + target_version: str | None + """ + The harness version that the endpoint points to and serves invocations + from. + """ + description: str | None + """A description of the endpoint.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """Tags to apply to the endpoint resource.""" + @dataclass(kw_only=True) class CreateHarnessEndpointOutput(_SerdeShape): """Dataclass for CreateHarnessEndpointOutput structure.""" @@ -3398,6 +5109,107 @@ class CreateHarnessInput(_SerdeShape): tags: dict[str, str] | None = ... """Tags to apply to the harness resource.""" +class CreateHarnessInputDict(TypedDict, total=False): + """Dictionary form of `CreateHarnessInput`.""" + + harness_name: Required[str] + """ + The name of the harness. Must start with a letter and contain only + alphanumeric characters and underscores. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + execution_role_arn: Required[str] + """ + The ARN of the IAM role that the harness assumes when running. This role + must have permissions for the services the agent needs to access, such + as Amazon Bedrock for model invocation. + """ + environment: ( + HarnessEnvironmentProviderRequest | HarnessEnvironmentProviderRequestDict | None + ) + """ + The compute environment configuration for the harness, including network + and lifecycle settings. + """ + environment_artifact: ( + HarnessEnvironmentArtifact | HarnessEnvironmentArtifactDict | None + ) + """ + The environment artifact for the harness, such as a custom container + image containing additional dependencies. + """ + environment_variables: Mapping[str, str] | None + """Environment variables to set in the harness runtime environment.""" + authorizer_configuration: ( + AuthorizerConfiguration | AuthorizerConfigurationDict | None + ) + """ + Represents inbound authorization configuration options used to + authenticate incoming requests. + """ + model: HarnessModelConfiguration | HarnessModelConfigurationDict | None + """ + The model configuration for the harness. Supports Amazon Bedrock, + OpenAI, and Google Gemini model providers. + """ + system_prompt: ( + Sequence[HarnessSystemContentBlock | HarnessSystemContentBlockDict] | None + ) + """The system prompt that defines the agent's behavior and instructions.""" + tools: Sequence[HarnessTool | HarnessToolDict] | None + """ + The tools available to the agent, such as remote MCP servers, AgentCore + Gateway, AgentCore Browser, Code Interpreter, or inline functions. + """ + skills: Sequence[HarnessSkill | HarnessSkillDict] | None + """ + The skills available to the agent. Skills are bundles of files that the + agent can pull into its context on demand. + """ + allowed_tools: Sequence[str] | None + """ + The tools that the agent is allowed to use. Supports glob patterns such + as * for all tools, @builtin for all built-in tools, or + @serverName/toolName for specific MCP server tools. + """ + memory: HarnessMemoryConfiguration | HarnessMemoryConfigurationDict | None + """ + The AgentCore Memory configuration for persisting conversation context + across sessions. + """ + truncation: ( + HarnessTruncationConfiguration | HarnessTruncationConfigurationDict | None + ) + """ + The truncation configuration for managing conversation context when it + exceeds model limits. + """ + hooks: Sequence[HarnessHook | HarnessHookDict] | None + """The lifecycle hooks to run at defined points in the agent loop.""" + max_iterations: int | None + """ + The maximum number of iterations the agent loop can execute per + invocation. + """ + max_tokens: int | None + """ + The maximum total number of output tokens the agent can generate across + all model calls within a single invocation. + """ + timeout_seconds: int | None + """ + The maximum duration in seconds for the agent loop execution per + invocation. + """ + tags: Mapping[str, str] | None + """Tags to apply to the harness resource.""" + @dataclass(kw_only=True) class CreateHarnessOutput(_SerdeShape): """Dataclass for CreateHarnessOutput structure.""" @@ -3469,6 +5281,64 @@ class CreateMemoryInput(_SerdeShape): by purpose, owner, or environment. """ +class CreateMemoryInputDict(TypedDict, total=False): + """Dictionary form of `CreateMemoryInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request but does not return an + error. + + This field is autopopulated if not provided. + """ + name: Required[str] + """The name of the memory. The name must be unique within your account.""" + description: str | None + """The description of the memory.""" + encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the KMS key used to encrypt the memory + data. + """ + memory_execution_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that provides permissions + for the memory to access Amazon Web Services services. + """ + event_expiry_duration: Required[int] + """ + The number of days after which memory events expire, between 7 and 3650 + days. + """ + memory_strategies: Sequence[MemoryStrategyInput | MemoryStrategyInputDict] | None + """ + The memory strategies to use for this memory. Strategies define how + information is extracted, processed, and consolidated. + """ + indexed_keys: Sequence[IndexedKey | IndexedKeyDict] | None + """ + Metadata keys to index for filtering. Once declared, indexed keys cannot + be removed. + """ + namespace_keys: Sequence[NamespaceKeyEntry | NamespaceKeyEntryDict] | None + """ + The namespace variable key definitions with optional validation rules. + Use these `namespaceKeys` in `namespaceTemplates` to control namespace + hierarchy. + """ + stream_delivery_resources: ( + StreamDeliveryResources | StreamDeliveryResourcesDict | None + ) + """Configuration for streaming memory record data to external resources.""" + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to an AgentCore Memory. Tags + enable you to categorize your resources in different ways, for example, + by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateMemoryOutput(_SerdeShape): """Dataclass for CreateMemoryOutput structure.""" @@ -3512,6 +5382,33 @@ class CreateOauth2CredentialProviderInput(_SerdeShape): ways, for example, by purpose, owner, or environment. """ +class CreateOauth2CredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreateOauth2CredentialProviderInput`.""" + + name: Required[str] + """ + The name of the OAuth2 credential provider. The name must be unique + within your account. + """ + credential_provider_vendor: Required[str] + """ + The vendor of the OAuth2 credential provider. This specifies which + OAuth2 implementation to use. + """ + oauth2_provider_config_input: Required[ + Oauth2ProviderConfigInput | Oauth2ProviderConfigInputDict + ] + """ + The configuration settings for the OAuth2 provider, including client ID, + client secret, and other vendor-specific settings. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the OAuth2 credential + provider. Tags enable you to categorize your resources in different + ways, for example, by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateOauth2CredentialProviderOutput(_SerdeShape): """Dataclass for CreateOauth2CredentialProviderOutput structure.""" @@ -3630,6 +5527,81 @@ class CreateOnlineEvaluationConfigInput(_SerdeShape): for example, by purpose, owner, or environment. """ +class CreateOnlineEvaluationConfigInputDict(TypedDict, total=False): + """Dictionary form of `CreateOnlineEvaluationConfigInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + online_evaluation_config_name: Required[str] + """ + The name of the online evaluation configuration. Must be unique within + your account. + """ + description: str | None + """ + The description of the online evaluation configuration that explains its + monitoring purpose and scope. + """ + rule: Required[Rule | RuleDict] + """ + The evaluation rule that defines sampling configuration, filters, and + session detection settings for the online evaluation. + """ + data_source_config: Required[DataSourceConfig | DataSourceConfigDict] + """ + The data source configuration that specifies CloudWatch log groups and + service names to monitor for agent traces. + """ + evaluators: Sequence[EvaluatorReference | EvaluatorReferenceDict] | None + """ + The list of evaluators to apply during online evaluation. Can include + both built-in evaluators and custom evaluators created with + `CreateEvaluator`. + """ + insights: Sequence[Insight | InsightDict] | None + """The list of insight types to run against agent sessions.""" + clustering_config: ClusteringConfig | ClusteringConfigDict | None + """ + Configuration for periodic batch evaluation clustering of insight + results. + """ + output_config: OutputConfig | OutputConfigDict | None + """ + The configuration that specifies where evaluation results should be + written for monitoring and analysis. + """ + evaluation_execution_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role that grants permissions + to read from CloudWatch logs, write evaluation results, and invoke + Amazon Bedrock models for evaluation. If the configuration references + evaluators encrypted with a customer managed KMS key, this role must + also have `kms:Decrypt` permission on the KMS key. The service validates + this permission at configuration creation time. For more information, + see [Encryption at rest for AgentCore + Evaluations](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/evaluations-encryption.html). + """ + enable_on_create: Required[bool] + """ + Whether to enable the online evaluation configuration immediately upon + creation. If true, evaluation begins automatically. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to an AgentCore Online Evaluation + Config. Tags enable you to categorize your resources in different ways, + for example, by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateOnlineEvaluationConfigOutput(_SerdeShape): """Dataclass for CreateOnlineEvaluationConfigOutput structure.""" @@ -3660,41 +5632,91 @@ class CreateOnlineEvaluationConfigOutput(_SerdeShape): The reason for failure if the online evaluation configuration creation or execution failed. """ - response_metadata: ResponseMetadata = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreatePaymentConnectorInput(_SerdeShape): + """Dataclass for CreatePaymentConnectorInput structure.""" + + payment_manager_id: str | None = ... + """ + The unique identifier of the payment manager to create the connector + for. + """ + name: str | None = ... + """The name of the payment connector.""" + description: str | None = ... + """A description of the payment connector.""" + type: str | None = ... + """ + The type of payment connector, which determines the payment provider + integration. + """ + credential_provider_configurations: ( + list[CredentialsProviderConfiguration] | None + ) = ... + """ + The credential provider configurations for the payment connector. These + configurations specify how the connector authenticates with the payment + provider. + """ + provision_mode: str | None = ... + """ + The provision mode for creating the payment connector. If you don't + specify a value, the default is `MANUAL`. + + - `MANUAL` - You provide the credential provider configurations + directly. + + - `QUICK_CREATE` - The service orchestrates OAuth consent and provisions + the credential provider for you. + """ + client_token: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. """ -@dataclass(kw_only=True) -class CreatePaymentConnectorInput(_SerdeShape): - """Dataclass for CreatePaymentConnectorInput structure.""" +class CreatePaymentConnectorInputDict(TypedDict, total=False): + """Dictionary form of `CreatePaymentConnectorInput`.""" - payment_manager_id: str | None = ... + payment_manager_id: Required[str] """ The unique identifier of the payment manager to create the connector for. """ - name: str | None = ... + name: Required[str] """The name of the payment connector.""" - description: str | None = ... + description: str | None """A description of the payment connector.""" - type: str | None = ... + type: Required[str] """ The type of payment connector, which determines the payment provider integration. """ - credential_provider_configurations: ( - list[CredentialsProviderConfiguration] | None - ) = ... + credential_provider_configurations: Required[ + Sequence[ + CredentialsProviderConfiguration | CredentialsProviderConfigurationDict + ] + ] """ The credential provider configurations for the payment connector. These configurations specify how the connector authenticates with the payment provider. """ - provision_mode: str | None = ... + provision_mode: str | None """ The provision mode for creating the payment connector. If you don't specify a value, the default is `MANUAL`. @@ -3705,7 +5727,7 @@ class CreatePaymentConnectorInput(_SerdeShape): - `QUICK_CREATE` - The service orchestrates OAuth consent and provisions the credential provider for you. """ - client_token: str | None = ... + client_token: str | None """ A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a @@ -3772,6 +5794,23 @@ class CreatePaymentCredentialProviderInput(_SerdeShape): tags: dict[str, str] | None = ... """Optional tags for resource organization.""" +class CreatePaymentCredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreatePaymentCredentialProviderInput`.""" + + name: Required[str] + """Unique name for the payment credential provider.""" + credential_provider_vendor: Required[str] + """ + The vendor type for the payment credential provider (e.g., CoinbaseCDP, + StripePrivy). + """ + provider_configuration_input: Required[ + PaymentProviderConfigurationInput | PaymentProviderConfigurationInputDict + ] + """Configuration specific to the vendor, including API credentials.""" + tags: Mapping[str, str] | None + """Optional tags for resource organization.""" + @dataclass(kw_only=True) class CreatePaymentCredentialProviderOutput(_SerdeShape): """Dataclass for CreatePaymentCredentialProviderOutput structure.""" @@ -3842,6 +5881,51 @@ class CreatePaymentManagerInput(_SerdeShape): key. """ +class CreatePaymentManagerInputDict(TypedDict, total=False): + """Dictionary form of `CreatePaymentManagerInput`.""" + + name: Required[str] + """The name of the payment manager.""" + description: str | None + """A description of the payment manager.""" + authorizer_type: Required[str] + """ + The type of authorizer to use for the payment manager. + + - `CUSTOM_JWT` - Authorize with a bearer token. + + - `AWS_IAM` - Authorize with your Amazon Web Services IAM credentials. + """ + authorizer_configuration: ( + AuthorizerConfiguration | AuthorizerConfigurationDict | None + ) + """The authorizer configuration for the payment manager.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role that the payment manager + assumes to access resources on your behalf. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """A map of tag keys and values to assign to the payment manager.""" + kms_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the customer managed KMS key to use + for encrypting sensitive payment manager data at rest. If you don't + specify a key, the data is encrypted with an Amazon Web Services owned + key. + """ + @dataclass(kw_only=True) class CreatePaymentManagerOutput(_SerdeShape): """Dataclass for CreatePaymentManagerOutput structure.""" @@ -3929,6 +6013,45 @@ class CreatePolicyEngineInput(_SerdeShape): by purpose, owner, or environment. """ +class CreatePolicyEngineInputDict(TypedDict, total=False): + """Dictionary form of `CreatePolicyEngineInput`.""" + + name: Required[str] + """ + The customer-assigned immutable name for the policy engine. This name + identifies the policy engine and cannot be changed after creation. + """ + description: str | None + """ + A human-readable description of the policy engine's purpose and scope + (1-4,096 characters). This helps administrators understand the policy + engine's role in the overall governance strategy. Document which + Gateway this engine will be associated with, what types of tools or + workflows it governs, and the team or service responsible for + maintaining it. Clear descriptions are essential when managing multiple + policy engines across different services or environments. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. If you retry a request with the same client + token, the service returns the same response without creating a + duplicate policy engine. + + This field is autopopulated if not provided. + """ + encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy + engine data. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to an AgentCore Policy. Tags + enable you to categorize your resources in different ways, for example, + by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreatePolicyEngineOutput(_SerdeShape): """Dataclass for CreatePolicyEngineOutput structure.""" @@ -4052,6 +6175,69 @@ class CreatePolicyInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreatePolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreatePolicyInput`.""" + + name: Required[str] + """ + The customer-assigned immutable name for the policy. Must be unique + within the account. This name is used for policy identification and + cannot be changed after creation. + """ + definition: Required[PolicyDefinition | PolicyDefinitionDict] + """ + The Cedar or Dogwood policy statement that defines the access control + rules. This contains the actual policy logic written in Cedar or + Dogwood, specifying effect (permit or forbid), principals, actions, + resources, and conditions for agent behavior control. + """ + description: str | None + """ + A human-readable description of the policy's purpose and functionality + (1-4,096 characters). This helps policy administrators understand the + policy's intent, business rules, and operational scope. Use this field + to document why the policy exists, what business requirement it + addresses, and any special considerations for maintenance. Clear + descriptions are essential for policy governance, auditing, and + troubleshooting. + """ + validation_mode: str | None + """ + The validation mode for the policy creation. Determines how Cedar + analyzer validation results are handled during policy creation. + FAIL_ON_ANY_FINDINGS (default) runs the Cedar analyzer to validate the + policy against the Cedar schema and tool context, failing creation if + the analyzer detects any validation issues to ensure strict conformance. + IGNORE_ALL_FINDINGS runs the Cedar analyzer but allows policy creation + even if validation issues are detected, useful for testing or when the + policy schema is evolving. Use FAIL_ON_ANY_FINDINGS for production + policies to ensure correctness, and IGNORE_ALL_FINDINGS only when you + understand and accept the analyzer findings. + """ + enforcement_mode: str | None + """ + The enforcement mode for the policy. Run this policy in `LOG_ONLY` mode + to collect data on how it affects your application. Once you are + satisfied with the data gathered, switch the policy to `ACTIVE`. + Defaults to `ACTIVE`. + """ + policy_engine_id: Required[str] + """ + The identifier of the policy engine which contains this policy. Policy + engines group related policies and provide the execution context for + policy evaluation. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure the idempotency of the + request. The Amazon Web Services SDK automatically generates this token, + so you don't need to provide it in most cases. If you retry a request + with the same client token, the service returns the same response + without creating a duplicate policy. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreatePolicyOutput(_SerdeShape): """Dataclass for CreatePolicyOutput structure.""" @@ -4168,6 +6354,53 @@ class CreateRegistryInput(_SerdeShape): `ApprovalConfiguration` data type for supported configuration options. """ +class CreateRegistryInputDict(TypedDict, total=False): + """Dictionary form of `CreateRegistryInput`.""" + + name: Required[str] + """ + The name of the registry. The name must be unique within your account + and can contain alphanumeric characters and underscores. + """ + description: str | None + """A description of the registry.""" + authorizer_type: str | None + """ + The type of authorizer to use for the registry. This controls the + authorization method for the Search and Invoke APIs used by consumers, + and does not affect the standard CRUDL APIs for registry and registry + record management used by administrators. + + - `CUSTOM_JWT` - Authorize with a bearer token. + + - `AWS_IAM` - Authorize with your Amazon Web Services IAM credentials. + """ + authorizer_configuration: ( + AuthorizerConfiguration | AuthorizerConfigurationDict | None + ) + """ + The authorizer configuration for the registry. Required if + `authorizerType` is `CUSTOM_JWT`. For details, see the + `AuthorizerConfiguration` data type. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + approval_configuration: ApprovalConfiguration | ApprovalConfigurationDict | None + """ + The approval configuration for registry records. Controls whether + records require explicit approval before becoming active. See the + `ApprovalConfiguration` data type for supported configuration options. + """ + @dataclass(kw_only=True) class CreateRegistryOutput(_SerdeShape): """Dataclass for CreateRegistryOutput structure.""" @@ -4186,16 +6419,77 @@ class CreateRegistryOutput(_SerdeShape): class CreateRegistryRecordInput(_SerdeShape): """Dataclass for CreateRegistryRecordInput structure.""" - registry_id: str | None = ... + registry_id: str | None = ... + """ + The identifier of the registry where the record will be created. You can + specify either the Amazon Resource Name (ARN) or the ID of the registry. + """ + name: str | None = ... + """The name of the registry record.""" + description: str | None = ... + """A description of the registry record.""" + descriptor_type: str | None = ... + """ + The descriptor type of the registry record. + + - `MCP` - Model Context Protocol descriptor for MCP-compatible servers + and tools. + + - `A2A` - Agent-to-Agent protocol descriptor. + + - `CUSTOM` - Custom descriptor type for resources such as APIs, Lambda + functions, or servers not conforming to a standard protocol. + + - `AGENT_SKILLS` - Agent skills descriptor for defining agent skill + definitions. + """ + descriptors: Descriptors | None = ... + """ + The descriptor-type-specific configuration containing the resource + schema and metadata. The structure of this field depends on the + `descriptorType` you specify. + """ + record_version: str | None = ... + """ + The version of the registry record. Use this to track different versions + of the record's content. + """ + synchronization_type: str | None = ... + """ + The type of synchronization to use for keeping the record metadata up to + date from an external source. Possible values include `FROM_URL` and + `NONE`. + """ + synchronization_configuration: SynchronizationConfiguration | None = ... + """ + The configuration for synchronizing registry record metadata from an + external source, such as a URL-based MCP server. + """ + client_token: str | None = ... + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + +class CreateRegistryRecordInputDict(TypedDict, total=False): + """Dictionary form of `CreateRegistryRecordInput`.""" + + registry_id: Required[str] """ The identifier of the registry where the record will be created. You can specify either the Amazon Resource Name (ARN) or the ID of the registry. """ - name: str | None = ... + name: Required[str] """The name of the registry record.""" - description: str | None = ... + description: str | None """A description of the registry record.""" - descriptor_type: str | None = ... + descriptor_type: Required[str] """ The descriptor type of the registry record. @@ -4210,29 +6504,31 @@ class CreateRegistryRecordInput(_SerdeShape): - `AGENT_SKILLS` - Agent skills descriptor for defining agent skill definitions. """ - descriptors: Descriptors | None = ... + descriptors: Descriptors | DescriptorsDict | None """ The descriptor-type-specific configuration containing the resource schema and metadata. The structure of this field depends on the `descriptorType` you specify. """ - record_version: str | None = ... + record_version: str | None """ The version of the registry record. Use this to track different versions of the record's content. """ - synchronization_type: str | None = ... + synchronization_type: str | None """ The type of synchronization to use for keeping the record metadata up to date from an external source. Possible values include `FROM_URL` and `NONE`. """ - synchronization_configuration: SynchronizationConfiguration | None = ... + synchronization_configuration: ( + SynchronizationConfiguration | SynchronizationConfigurationDict | None + ) """ The configuration for synchronizing registry record metadata from an external source, such as a URL-based MCP server. """ - client_token: str | None = ... + client_token: str | None """ A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a @@ -4284,6 +6580,26 @@ class CreateWorkloadIdentityInput(_SerdeShape): by purpose, owner, or environment. """ +class CreateWorkloadIdentityInputDict(TypedDict, total=False): + """Dictionary form of `CreateWorkloadIdentityInput`.""" + + name: Required[str] + """ + The name of the workload identity. The name must be unique within your + account. + """ + allowed_resource_oauth2_return_urls: Sequence[str] | None + """ + The list of allowed OAuth2 return URLs for resources associated with + this workload identity. + """ + tags: Mapping[str, str] | None + """ + A map of tag keys and values to assign to the workload identity. Tags + enable you to categorize your resources in different ways, for example, + by purpose, owner, or environment. + """ + @dataclass(kw_only=True) class CreateWorkloadIdentityOutput(_SerdeShape): """Dataclass for CreateWorkloadIdentityOutput structure.""" @@ -4356,6 +6672,36 @@ contains the configuration for authenticating with the target endpoint. class _CredentialProviderDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CredentialProvider: ... +class CredentialProviderOauthCredentialProviderDict(TypedDict): + oauth_credential_provider: OAuthCredentialProvider | OAuthCredentialProviderDict + """ + The OAuth credential provider. This provider uses OAuth authentication + to access the target endpoint. + """ + +class CredentialProviderApiKeyCredentialProviderDict(TypedDict): + api_key_credential_provider: ( + GatewayApiKeyCredentialProvider | GatewayApiKeyCredentialProviderDict + ) + """ + The API key credential provider. This provider uses an API key to + authenticate with the target endpoint. + """ + +class CredentialProviderIamCredentialProviderDict(TypedDict): + iam_credential_provider: IamCredentialProvider | IamCredentialProviderDict + """ + The IAM credential provider. This provider uses IAM authentication with + SigV4 signing to access the target endpoint. + """ + +CredentialProviderDict = Union[ + CredentialProviderOauthCredentialProviderDict + | CredentialProviderApiKeyCredentialProviderDict + | CredentialProviderIamCredentialProviderDict +] +"""Dictionary form of `CredentialProvider`, setting exactly one variant.""" + @dataclass(kw_only=True) class CredentialProviderConfiguration(_SerdeShape): """ @@ -4374,6 +6720,20 @@ class CredentialProviderConfiguration(_SerdeShape): for the credential provider type. """ +class CredentialProviderConfigurationDict(TypedDict, total=False): + """Dictionary form of `CredentialProviderConfiguration`.""" + + credential_provider_type: Required[str] + """ + The type of credential provider. This field specifies which + authentication method the gateway uses. + """ + credential_provider: CredentialProvider | CredentialProviderDict | None + """ + The credential provider. This field contains the specific configuration + for the credential provider type. + """ + class CredentialProviderType(UnknownEnumMixin, StrEnum): GATEWAY_IAM_ROLE = "GATEWAY_IAM_ROLE" OAUTH = "OAUTH" @@ -4437,6 +6797,16 @@ class _CredentialRotationConfigDeserializer: self, deserializer: ShapeDeserializer ) -> CredentialRotationConfig: ... +class CredentialRotationConfigCoinbaseCDPDict(TypedDict): + coinbase_cdp: CoinbaseCdpRotationTargets | CoinbaseCdpRotationTargetsDict + """The credentials to rotate for a Coinbase CDP payment connector.""" + +CredentialRotationConfigDict = Union[CredentialRotationConfigCoinbaseCDPDict] +""" +Dictionary form of `CredentialRotationConfig`, setting exactly one +variant. +""" + @dataclass class CredentialsProviderConfigurationCoinbaseCDP(_SerdeShape): """ @@ -4480,6 +6850,35 @@ class _CredentialsProviderConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> CredentialsProviderConfiguration: ... +class CredentialsProviderConfigurationCoinbaseCDPDict(TypedDict): + coinbase_cdp: ( + PaymentCredentialProviderConfiguration + | PaymentCredentialProviderConfigurationDict + ) + """ + The credential provider configuration for a Coinbase CDP payment + connector. + """ + +class CredentialsProviderConfigurationStripePrivyDict(TypedDict): + stripe_privy: ( + PaymentCredentialProviderConfiguration + | PaymentCredentialProviderConfigurationDict + ) + """ + The credential provider configuration for a Stripe Privy payment + connector. + """ + +CredentialsProviderConfigurationDict = Union[ + CredentialsProviderConfigurationCoinbaseCDPDict + | CredentialsProviderConfigurationStripePrivyDict +] +""" +Dictionary form of `CredentialsProviderConfiguration`, setting exactly +one variant. +""" + @dataclass(kw_only=True) class CustomClaimValidationType(_SerdeShape): """ @@ -4505,6 +6904,29 @@ class CustomClaimValidationType(_SerdeShape): match. """ +class CustomClaimValidationTypeDict(TypedDict, total=False): + """Dictionary form of `CustomClaimValidationType`.""" + + inbound_token_claim_name: Required[str] + """The name of the custom claim field to check.""" + inbound_token_claim_value_type: Required[str] + """ + The data type of the claim value to check for. + + - Use `STRING` if you want to find an exact match to a string you + define. + + - Use `STRING_ARRAY` if you want to fnd a match to at least one value in + an array you define. + """ + authorizing_claim_match_value: Required[ + AuthorizingClaimMatchValueType | AuthorizingClaimMatchValueTypeDict + ] + """ + Defines the value or values to match for and the relationship of the + match. + """ + @dataclass class CustomConfigurationInputSemanticOverride(_SerdeShape): """The semantic override configuration for a custom memory strategy.""" @@ -4563,6 +6985,52 @@ class _CustomConfigurationInputDeserializer: self, deserializer: ShapeDeserializer ) -> CustomConfigurationInput: ... +class CustomConfigurationInputSemanticOverrideDict(TypedDict): + semantic_override: ( + SemanticOverrideConfigurationInput | SemanticOverrideConfigurationInputDict + ) + """The semantic override configuration for a custom memory strategy.""" + +class CustomConfigurationInputSummaryOverrideDict(TypedDict): + summary_override: ( + SummaryOverrideConfigurationInput | SummaryOverrideConfigurationInputDict + ) + """The summary override configuration for a custom memory strategy.""" + +class CustomConfigurationInputUserPreferenceOverrideDict(TypedDict): + user_preference_override: ( + UserPreferenceOverrideConfigurationInput + | UserPreferenceOverrideConfigurationInputDict + ) + """The user preference override configuration for a custom memory strategy.""" + +class CustomConfigurationInputEpisodicOverrideDict(TypedDict): + episodic_override: ( + EpisodicOverrideConfigurationInput | EpisodicOverrideConfigurationInputDict + ) + """ + The episodic memory strategy override configuration for a custom memory + strategy. + """ + +class CustomConfigurationInputSelfManagedConfigurationDict(TypedDict): + self_managed_configuration: ( + SelfManagedConfigurationInput | SelfManagedConfigurationInputDict + ) + """The self managed configuration for a custom memory strategy.""" + +CustomConfigurationInputDict = Union[ + CustomConfigurationInputSemanticOverrideDict + | CustomConfigurationInputSummaryOverrideDict + | CustomConfigurationInputUserPreferenceOverrideDict + | CustomConfigurationInputEpisodicOverrideDict + | CustomConfigurationInputSelfManagedConfigurationDict +] +""" +Dictionary form of `CustomConfigurationInput`, setting exactly one +variant. +""" + @dataclass class CustomConsolidationConfigurationSemanticConsolidationOverride(_SerdeShape): """The semantic consolidation override configuration.""" @@ -4667,6 +7135,50 @@ class _CustomConsolidationConfigurationInputDeserializer: self, deserializer: ShapeDeserializer ) -> CustomConsolidationConfigurationInput: ... +class CustomConsolidationConfigurationInputSemanticConsolidationOverrideDict(TypedDict): + semantic_consolidation_override: ( + SemanticOverrideConsolidationConfigurationInput + | SemanticOverrideConsolidationConfigurationInputDict + ) + """The semantic consolidation override configuration input.""" + +class CustomConsolidationConfigurationInputSummaryConsolidationOverrideDict(TypedDict): + summary_consolidation_override: ( + SummaryOverrideConsolidationConfigurationInput + | SummaryOverrideConsolidationConfigurationInputDict + ) + """The summary consolidation override configuration input.""" + +class CustomConsolidationConfigurationInputUserPreferenceConsolidationOverrideDict( + TypedDict +): + user_preference_consolidation_override: ( + UserPreferenceOverrideConsolidationConfigurationInput + | UserPreferenceOverrideConsolidationConfigurationInputDict + ) + """The user preference consolidation override configuration input.""" + +class CustomConsolidationConfigurationInputEpisodicConsolidationOverrideDict(TypedDict): + episodic_consolidation_override: ( + EpisodicOverrideConsolidationConfigurationInput + | EpisodicOverrideConsolidationConfigurationInputDict + ) + """ + Configurations to override the consolidation step of the episodic + strategy. + """ + +CustomConsolidationConfigurationInputDict = Union[ + CustomConsolidationConfigurationInputSemanticConsolidationOverrideDict + | CustomConsolidationConfigurationInputSummaryConsolidationOverrideDict + | CustomConsolidationConfigurationInputUserPreferenceConsolidationOverrideDict + | CustomConsolidationConfigurationInputEpisodicConsolidationOverrideDict +] +""" +Dictionary form of `CustomConsolidationConfigurationInput`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class CustomDescriptor(_SerdeShape): """ @@ -4681,6 +7193,15 @@ class CustomDescriptor(_SerdeShape): any custom schema that describes your resource. """ +class CustomDescriptorDict(TypedDict, total=False): + """Dictionary form of `CustomDescriptor`.""" + + inline_content: str | None + """ + The custom descriptor content as a valid JSON document. You can define + any custom schema that describes your resource. + """ + @dataclass class CustomExtractionConfigurationSemanticExtractionOverride(_SerdeShape): """The semantic extraction override configuration.""" @@ -4766,6 +7287,37 @@ class _CustomExtractionConfigurationInputDeserializer: self, deserializer: ShapeDeserializer ) -> CustomExtractionConfigurationInput: ... +class CustomExtractionConfigurationInputSemanticExtractionOverrideDict(TypedDict): + semantic_extraction_override: ( + SemanticOverrideExtractionConfigurationInput + | SemanticOverrideExtractionConfigurationInputDict + ) + """The semantic extraction override configuration input.""" + +class CustomExtractionConfigurationInputUserPreferenceExtractionOverrideDict(TypedDict): + user_preference_extraction_override: ( + UserPreferenceOverrideExtractionConfigurationInput + | UserPreferenceOverrideExtractionConfigurationInputDict + ) + """The user preference extraction override configuration input.""" + +class CustomExtractionConfigurationInputEpisodicExtractionOverrideDict(TypedDict): + episodic_extraction_override: ( + EpisodicOverrideExtractionConfigurationInput + | EpisodicOverrideExtractionConfigurationInputDict + ) + """Configurations to override the extraction step of the episodic strategy.""" + +CustomExtractionConfigurationInputDict = Union[ + CustomExtractionConfigurationInputSemanticExtractionOverrideDict + | CustomExtractionConfigurationInputUserPreferenceExtractionOverrideDict + | CustomExtractionConfigurationInputEpisodicExtractionOverrideDict +] +""" +Dictionary form of `CustomExtractionConfigurationInput`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class CustomJWTAuthorizerConfiguration(_SerdeShape): """ @@ -4835,6 +7387,79 @@ class CustomJWTAuthorizerConfiguration(_SerdeShape): are AgentCore Gateways. """ +class CustomJWTAuthorizerConfigurationDict(TypedDict, total=False): + """Dictionary form of `CustomJWTAuthorizerConfiguration`.""" + + discovery_url: Required[str] + """ + This URL is used to fetch OpenID Connect configuration or authorization + server metadata for validating incoming tokens. + """ + allowed_audience: Sequence[str] | None + """ + Represents individual audience values that are validated in the incoming + JWT token validation process. + """ + allowed_clients: Sequence[str] | None + """ + Represents individual client IDs that are validated in the incoming JWT + token validation process. + """ + allowed_scopes: Sequence[str] | None + """An array of scopes that are allowed to access the token.""" + advertised_scope_mapping: Mapping[str, str] | None + """ + A map that associates each scope in `allowedScopes` with a corresponding + advertised scope value. The advertised scope appears in OAuth protected + resource metadata and `WWW-Authenticate` response headers. Use this + parameter when the scope that clients request from your identity + provider differs from the scope in the validated token. Each key is a + scope from `allowedScopes` that the service uses for token validation. + Each value is the corresponding scope that the service advertises to + clients. Scopes without a mapping entry appear unchanged to clients. + """ + custom_claims: ( + Sequence[CustomClaimValidationType | CustomClaimValidationTypeDict] | None + ) + """ + An array of objects that define a custom claim validation name, value, + and operation + """ + private_endpoint: PrivateEndpoint | PrivateEndpointDict | None + """ + The private endpoint configuration for a gateway target. Defines how the + gateway connects to private resources in your VPC. + """ + private_endpoint_overrides: ( + Sequence[PrivateEndpointOverride | PrivateEndpointOverrideDict] | None + ) + """ + The private endpoint overrides for the custom JWT authorizer + configuration. + """ + certificate_configurations: ( + Sequence[CertificateConfiguration | CertificateConfigurationDict] | None + ) + """ + The private certificate authority (CA) configurations for the identity + provider. Use this to have AgentCore Identity trust a private CA when + establishing TLS connections to identity provider endpoints. You can + specify only one certificate authority configuration in this list. + Provide the certificate by reference to an Amazon S3 object or an Amazon + Web Services Secrets Manager secret. You can use this only together with + `privateEndpoint`. + """ + allowed_workload_configuration: ( + AllowedWorkloadConfiguration | AllowedWorkloadConfigurationDict | None + ) + """ + The configuration that restricts which workloads in the request's + identity chain are allowed to invoke the target, identified by their + hosting environments and workload identities. At launch, this is + supported only for AgentCore Runtime targets, and the allowed workloads + are AgentCore Gateways. + """ + @dataclass(kw_only=True) class CustomMemoryStrategyInput(_SerdeShape): """Input for creating a custom memory strategy.""" @@ -4863,6 +7488,35 @@ class CustomMemoryStrategyInput(_SerdeShape): expire. """ +class CustomMemoryStrategyInputDict(TypedDict, total=False): + """Dictionary form of `CustomMemoryStrategyInput`.""" + + name: Required[str] + """The name of the custom memory strategy.""" + description: str | None + """The description of the custom memory strategy.""" + namespaces: Sequence[str] | None + """ + This is a legacy parameter, use `namespaceTemplates`. The namespaces + associated with the custom memory strategy. + """ + namespace_templates: Sequence[str] | None + """The namespaceTemplates associated with the custom memory strategy.""" + configuration: CustomConfigurationInput | CustomConfigurationInputDict | None + """The configuration for the custom memory strategy.""" + memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None + """Schema for metadata fields on records generated by this strategy.""" + record_expiry_specification: ( + RecordExpirySpecification | RecordExpirySpecificationDict | None + ) + """ + The record expiry (long-term memory time-to-live) configuration for + memory records generated by this strategy. Set + `recordExpiryDurationDays` to the number of days after which records + expire. If not specified, records generated by this strategy do not + expire. + """ + @dataclass(kw_only=True) class CustomOauth2ProviderConfigInput(_SerdeShape): """Input configuration for a custom OAuth2 provider.""" @@ -4924,6 +7578,72 @@ class CustomOauth2ProviderConfigInput(_SerdeShape): `privateEndpoint`. """ +class CustomOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `CustomOauth2ProviderConfigInput`.""" + + oauth_discovery: Required[Oauth2Discovery | Oauth2DiscoveryDict] + """The OAuth2 discovery information for the custom provider.""" + client_id: str | None + """The client ID for the custom OAuth2 provider.""" + client_secret: str | None + """The client secret for the custom OAuth2 provider.""" + client_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None + """ + The source type of the client secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + on_behalf_of_token_exchange_config: ( + OnBehalfOfTokenExchangeConfigType | OnBehalfOfTokenExchangeConfigTypeDict | None + ) + """ + The configuration for on-behalf-of token exchange. This enables + authentication flows that use RFC 8693 token exchange or RFC 7523 JWT + authorization grants. + """ + client_authentication_method: str | None + """ + The client authentication method to use when authenticating with the + token endpoint. + """ + private_key_jwt_config: PrivateKeyJwtConfig | PrivateKeyJwtConfigDict | None + """ + The private_key_jwt client authentication configuration for this + credential provider. When specified, the credential provider uses JWT + client assertions to authenticate with the token endpoint. + """ + private_endpoint: PrivateEndpoint | PrivateEndpointDict | None + """ + The default private endpoint for the custom OAuth2 provider, enabling + secure connectivity through a VPC Lattice resource configuration. + """ + private_endpoint_overrides: ( + Sequence[PrivateEndpointOverride | PrivateEndpointOverrideDict] | None + ) + """ + The private endpoint overrides for the custom OAuth2 provider + configuration. + """ + certificate_configurations: ( + Sequence[CertificateConfiguration | CertificateConfigurationDict] | None + ) + """ + The private certificate authority (CA) configurations for the identity + provider. Use this to have AgentCore Identity trust a private CA when + establishing TLS connections to identity provider endpoints. You can + specify only one certificate authority configuration in this list. + Provide the certificate by reference to an Amazon S3 object or an Amazon + Web Services Secrets Manager secret. You can use this only together with + `privateEndpoint`. + """ + @dataclass(kw_only=True) class CustomOauth2ProviderConfigOutput(_SerdeShape): """Output configuration for a custom OAuth2 provider.""" @@ -5019,6 +7739,21 @@ class _CustomReflectionConfigurationInputDeserializer: self, deserializer: ShapeDeserializer ) -> CustomReflectionConfigurationInput: ... +class CustomReflectionConfigurationInputEpisodicReflectionOverrideDict(TypedDict): + episodic_reflection_override: ( + EpisodicOverrideReflectionConfigurationInput + | EpisodicOverrideReflectionConfigurationInputDict + ) + """The reflection override configuration input.""" + +CustomReflectionConfigurationInputDict = Union[ + CustomReflectionConfigurationInputEpisodicReflectionOverrideDict +] +""" +Dictionary form of `CustomReflectionConfigurationInput`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class CustomTransformConfiguration(_SerdeShape): """ @@ -5033,6 +7768,15 @@ class CustomTransformConfiguration(_SerdeShape): defines how the gateway uses a Lambda function to transform data. """ +class CustomTransformConfigurationDict(TypedDict, total=False): + """Dictionary form of `CustomTransformConfiguration`.""" + + lambda_: LambdaTransformConfiguration | LambdaTransformConfigurationDict | None + """ + The Lambda configuration for custom transformations. This configuration + defines how the gateway uses a Lambda function to transform data. + """ + class DatasetSchemaType(UnknownEnumMixin, StrEnum): """ Versioned schema type for dataset examples. Each value identifies both @@ -5154,6 +7898,16 @@ evaluation. class _DataSourceConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> DataSourceConfig: ... +class DataSourceConfigCloudWatchLogsDict(TypedDict): + cloud_watch_logs: CloudWatchLogsInputConfig | CloudWatchLogsInputConfigDict + """ + The CloudWatch logs configuration for reading agent traces from log + groups. + """ + +DataSourceConfigDict = Union[DataSourceConfigCloudWatchLogsDict] +"""Dictionary form of `DataSourceConfig`, setting exactly one variant.""" + @dataclass class DataSourceTypeInlineExamples(_SerdeShape): """Inline examples provided directly in the request body.""" @@ -5184,6 +7938,19 @@ DataSourceType = Union[ class _DataSourceTypeDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> DataSourceType: ... +class DataSourceTypeInlineExamplesDict(TypedDict): + inline_examples: InlineExamplesSource | InlineExamplesSourceDict + """Inline examples provided directly in the request body.""" + +class DataSourceTypeS3SourceDict(TypedDict): + s3_source: S3Source | S3SourceDict + """Amazon S3 URI pointing to a JSONL file in the customer's bucket.""" + +DataSourceTypeDict = Union[ + DataSourceTypeInlineExamplesDict | DataSourceTypeS3SourceDict +] +"""Dictionary form of `DataSourceType`, setting exactly one variant.""" + @dataclass(kw_only=True) class DecryptionFailure(ServiceError, _SerdeShape): """Exception thrown when decryption of a secret fails.""" @@ -5215,6 +7982,24 @@ class DeleteAgentRuntimeEndpointInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteAgentRuntimeEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAgentRuntimeEndpointInput`.""" + + agent_runtime_id: Required[str] + """ + The unique identifier of the AgentCore Runtime associated with the + endpoint. + """ + endpoint_name: Required[str] + """The name of the AgentCore Runtime endpoint to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteAgentRuntimeEndpointOutput(_SerdeShape): """Dataclass for DeleteAgentRuntimeEndpointOutput structure.""" @@ -5254,6 +8039,26 @@ class DeleteAgentRuntimeInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteAgentRuntimeInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAgentRuntimeInput`.""" + + agent_runtime_id: Required[str] + """The unique identifier of the AgentCore Runtime to delete.""" + agent_runtime_version: str | None + """ + The version of the AgentCore Runtime to delete. When you provide this + value, only that version is deleted. When you omit it, the entire + AgentCore Runtime and all of its versions are deleted. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, the service ignores the request but does not return an error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteAgentRuntimeOutput(_SerdeShape): """Dataclass for DeleteAgentRuntimeOutput structure.""" @@ -5282,6 +8087,12 @@ class DeleteApiKeyCredentialProviderInput(_SerdeShape): name: str | None = ... """The name of the API key credential provider to delete.""" +class DeleteApiKeyCredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeleteApiKeyCredentialProviderInput`.""" + + name: Required[str] + """The name of the API key credential provider to delete.""" + @dataclass(kw_only=True) class DeleteApiKeyCredentialProviderOutput(_SerdeShape): """Dataclass for DeleteApiKeyCredentialProviderOutput structure.""" @@ -5308,6 +8119,19 @@ class DeleteBrowserInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteBrowserInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBrowserInput`.""" + + browser_id: Required[str] + """The unique identifier of the browser to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteBrowserOutput(_SerdeShape): """Dataclass for DeleteBrowserOutput structure.""" @@ -5340,6 +8164,19 @@ class DeleteBrowserProfileInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteBrowserProfileInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBrowserProfileInput`.""" + + profile_id: Required[str] + """The unique identifier of the browser profile to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteBrowserProfileOutput(_SerdeShape): """Dataclass for DeleteBrowserProfileOutput structure.""" @@ -5383,6 +8220,23 @@ class DeleteCapacityProviderInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCapacityProviderInput`.""" + + capacity_provider_id: Required[str] + """The unique identifier of the capacity provider to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteCapacityProviderOutput(_SerdeShape): """Dataclass for DeleteCapacityProviderOutput structure.""" @@ -5416,6 +8270,19 @@ class DeleteCodeInterpreterInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteCodeInterpreterInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCodeInterpreterInput`.""" + + code_interpreter_id: Required[str] + """The unique identifier of the code interpreter to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteCodeInterpreterOutput(_SerdeShape): """Dataclass for DeleteCodeInterpreterOutput structure.""" @@ -5441,6 +8308,12 @@ class DeleteConfigurationBundleInput(_SerdeShape): bundle_id: str | None = ... """The unique identifier of the configuration bundle to delete.""" +class DeleteConfigurationBundleInputDict(TypedDict, total=False): + """Dictionary form of `DeleteConfigurationBundleInput`.""" + + bundle_id: Required[str] + """The unique identifier of the configuration bundle to delete.""" + @dataclass(kw_only=True) class DeleteConfigurationBundleOutput(_SerdeShape): """Dataclass for DeleteConfigurationBundleOutput structure.""" @@ -5469,6 +8342,15 @@ class DeleteConsentPortalInput(_SerdeShape): portal ID or its Amazon Resource Name (ARN). """ +class DeleteConsentPortalInputDict(TypedDict, total=False): + """Dictionary form of `DeleteConsentPortalInput`.""" + + consent_portal_identifier: Required[str] + """ + The identifier of the consent portal. You can specify either the consent + portal ID or its Amazon Resource Name (ARN). + """ + @dataclass(kw_only=True) class DeleteConsentPortalOutput(_SerdeShape): """Dataclass for DeleteConsentPortalOutput structure.""" @@ -5501,6 +8383,25 @@ class DeleteDatasetExamplesInput(_SerdeShape): example_ids: list[str] | None = ... """The IDs of the examples to delete.""" +class DeleteDatasetExamplesInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDatasetExamplesInput`.""" + + dataset_id: Required[str] + """The unique identifier of the dataset.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + example_ids: Required[Sequence[str]] + """The IDs of the examples to delete.""" + @dataclass(kw_only=True) class DeleteDatasetExamplesOutput(_SerdeShape): """Dataclass for DeleteDatasetExamplesOutput structure.""" @@ -5535,6 +8436,17 @@ class DeleteDatasetInput(_SerdeShape): provided, deletes only that specific version. """ +class DeleteDatasetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDatasetInput`.""" + + dataset_id: Required[str] + """The unique identifier of the dataset to delete.""" + dataset_version: str | None + """ + Optional version to delete. If absent, deletes the entire dataset. If + provided, deletes only that specific version. + """ + @dataclass(kw_only=True) class DeleteDatasetOutput(_SerdeShape): """Dataclass for DeleteDatasetOutput structure.""" @@ -5564,6 +8476,12 @@ class DeleteEvaluatorInput(_SerdeShape): evaluator_id: str | None = ... """The unique identifier of the evaluator to delete.""" +class DeleteEvaluatorInputDict(TypedDict, total=False): + """Dictionary form of `DeleteEvaluatorInput`.""" + + evaluator_id: Required[str] + """The unique identifier of the evaluator to delete.""" + @dataclass(kw_only=True) class DeleteEvaluatorOutput(_SerdeShape): """Dataclass for DeleteEvaluatorOutput structure.""" @@ -5589,6 +8507,12 @@ class DeleteGatewayInput(_SerdeShape): gateway_identifier: str | None = ... """The identifier of the gateway to delete.""" +class DeleteGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGatewayInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway to delete.""" + @dataclass(kw_only=True) class DeleteGatewayOutput(_SerdeShape): """Dataclass for DeleteGatewayOutput structure.""" @@ -5616,6 +8540,14 @@ class DeleteGatewayRateLimitInput(_SerdeShape): rate_limit_id: str | None = ... """The unique identifier of the rate limit to delete.""" +class DeleteGatewayRateLimitInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGatewayRateLimitInput`.""" + + gateway_identifier: Required[str] + """The unique identifier of the gateway.""" + rate_limit_id: Required[str] + """The unique identifier of the rate limit to delete.""" + @dataclass(kw_only=True) class DeleteGatewayRateLimitOutput(_SerdeShape): """Dataclass for DeleteGatewayRateLimitOutput structure.""" @@ -5641,6 +8573,14 @@ class DeleteGatewayRuleInput(_SerdeShape): rule_id: str | None = ... """The unique identifier of the rule to delete.""" +class DeleteGatewayRuleInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGatewayRuleInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway containing the rule.""" + rule_id: Required[str] + """The unique identifier of the rule to delete.""" + @dataclass(kw_only=True) class DeleteGatewayRuleOutput(_SerdeShape): """Dataclass for DeleteGatewayRuleOutput structure.""" @@ -5666,6 +8606,14 @@ class DeleteGatewayTargetInput(_SerdeShape): target_id: str | None = ... """The unique identifier of the gateway target to delete.""" +class DeleteGatewayTargetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGatewayTargetInput`.""" + + gateway_identifier: Required[str] + """The unique identifier of the gateway associated with the target.""" + target_id: Required[str] + """The unique identifier of the gateway target to delete.""" + @dataclass(kw_only=True) class DeleteGatewayTargetOutput(_SerdeShape): """Dataclass for DeleteGatewayTargetOutput structure.""" @@ -5702,6 +8650,21 @@ class DeleteHarnessEndpointInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteHarnessEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteHarnessEndpointInput`.""" + + harness_id: Required[str] + """The ID of the harness that the endpoint belongs to.""" + endpoint_name: Required[str] + """The name of the endpoint to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteHarnessEndpointOutput(_SerdeShape): """Dataclass for DeleteHarnessEndpointOutput structure.""" @@ -5736,6 +8699,25 @@ class DeleteHarnessInput(_SerdeShape): customer-owned resource. """ +class DeleteHarnessInputDict(TypedDict, total=False): + """Dictionary form of `DeleteHarnessInput`.""" + + harness_id: Required[str] + """The ID of the harness to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + delete_managed_memory: bool | None + """ + Whether to delete the managed memory on harness deletion. Default: true. + If false, the memory is disassociated and becomes a regular + customer-owned resource. + """ + @dataclass(kw_only=True) class DeleteHarnessOutput(_SerdeShape): """Dataclass for DeleteHarnessOutput structure.""" @@ -5765,6 +8747,20 @@ class DeleteMemoryInput(_SerdeShape): memory_id: str | None = ... """The unique identifier of the memory to delete.""" +class DeleteMemoryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMemoryInput`.""" + + client_token: str | None + """ + A client token is used for keeping track of idempotent requests. It can + contain a session id which can be around 250 chars, combined with a + unique Amazon Web Services identifier. + + This field is autopopulated if not provided. + """ + memory_id: Required[str] + """The unique identifier of the memory to delete.""" + @dataclass(kw_only=True) class DeleteMemoryOutput(_SerdeShape): """Dataclass for DeleteMemoryOutput structure.""" @@ -5788,6 +8784,12 @@ class DeleteMemoryStrategyInput(_SerdeShape): memory_strategy_id: str """The unique identifier of the memory strategy to delete.""" +class DeleteMemoryStrategyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMemoryStrategyInput`.""" + + memory_strategy_id: Required[str] + """The unique identifier of the memory strategy to delete.""" + @dataclass(kw_only=True) class DeleteOauth2CredentialProviderInput(_SerdeShape): """Dataclass for DeleteOauth2CredentialProviderInput structure.""" @@ -5795,6 +8797,12 @@ class DeleteOauth2CredentialProviderInput(_SerdeShape): name: str | None = ... """The name of the OAuth2 credential provider to delete.""" +class DeleteOauth2CredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeleteOauth2CredentialProviderInput`.""" + + name: Required[str] + """The name of the OAuth2 credential provider to delete.""" + @dataclass(kw_only=True) class DeleteOauth2CredentialProviderOutput(_SerdeShape): """Dataclass for DeleteOauth2CredentialProviderOutput structure.""" @@ -5814,6 +8822,12 @@ class DeleteOnlineEvaluationConfigInput(_SerdeShape): online_evaluation_config_id: str | None = ... """The unique identifier of the online evaluation configuration to delete.""" +class DeleteOnlineEvaluationConfigInputDict(TypedDict, total=False): + """Dictionary form of `DeleteOnlineEvaluationConfigInput`.""" + + online_evaluation_config_id: Required[str] + """The unique identifier of the online evaluation configuration to delete.""" + @dataclass(kw_only=True) class DeleteOnlineEvaluationConfigOutput(_SerdeShape): """Dataclass for DeleteOnlineEvaluationConfigOutput structure.""" @@ -5855,6 +8869,25 @@ class DeletePaymentConnectorInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeletePaymentConnectorInputDict(TypedDict, total=False): + """Dictionary form of `DeletePaymentConnectorInput`.""" + + payment_manager_id: Required[str] + """The unique identifier of the parent payment manager.""" + payment_connector_id: Required[str] + """The unique identifier of the payment connector to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeletePaymentConnectorOutput(_SerdeShape): """Dataclass for DeletePaymentConnectorOutput structure.""" @@ -5883,6 +8916,12 @@ class DeletePaymentCredentialProviderInput(_SerdeShape): name: str | None = ... """The name of the payment credential provider to delete.""" +class DeletePaymentCredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeletePaymentCredentialProviderInput`.""" + + name: Required[str] + """The name of the payment credential provider to delete.""" + @dataclass(kw_only=True) class DeletePaymentCredentialProviderOutput(_SerdeShape): """Dataclass for DeletePaymentCredentialProviderOutput structure.""" @@ -5913,6 +8952,23 @@ class DeletePaymentManagerInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeletePaymentManagerInputDict(TypedDict, total=False): + """Dictionary form of `DeletePaymentManagerInput`.""" + + payment_manager_id: Required[str] + """The unique identifier of the payment manager to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeletePaymentManagerOutput(_SerdeShape): """Dataclass for DeletePaymentManagerOutput structure.""" @@ -5944,6 +9000,15 @@ class DeletePolicyEngineInput(_SerdeShape): valid policy engine ID that exists within the account. """ +class DeletePolicyEngineInputDict(TypedDict, total=False): + """Dictionary form of `DeletePolicyEngineInput`.""" + + policy_engine_id: Required[str] + """ + The unique identifier of the policy engine to be deleted. This must be a + valid policy engine ID that exists within the account. + """ + @dataclass(kw_only=True) class DeletePolicyEngineOutput(_SerdeShape): """Dataclass for DeletePolicyEngineOutput structure.""" @@ -6010,6 +9075,21 @@ class DeletePolicyInput(_SerdeShape): policy ID that exists within the specified policy engine. """ +class DeletePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeletePolicyInput`.""" + + policy_engine_id: Required[str] + """ + The identifier of the policy engine that manages the policy to be + deleted. This ensures the policy is deleted from the correct policy + engine context. + """ + policy_id: Required[str] + """ + The unique identifier of the policy to be deleted. This must be a valid + policy ID that exists within the specified policy engine. + """ + @dataclass(kw_only=True) class DeletePolicyOutput(_SerdeShape): """Dataclass for DeletePolicyOutput structure.""" @@ -6082,6 +9162,15 @@ class DeleteRegistryInput(_SerdeShape): Amazon Resource Name (ARN) or the ID of the registry. """ +class DeleteRegistryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRegistryInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry to delete. You can specify either the + Amazon Resource Name (ARN) or the ID of the registry. + """ + @dataclass(kw_only=True) class DeleteRegistryOutput(_SerdeShape): """Dataclass for DeleteRegistryOutput structure.""" @@ -6115,6 +9204,20 @@ class DeleteRegistryRecordInput(_SerdeShape): the Amazon Resource Name (ARN) or the ID of the record. """ +class DeleteRegistryRecordInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRegistryRecordInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry containing the record. You can specify + either the Amazon Resource Name (ARN) or the ID of the registry. + """ + record_id: Required[str] + """ + The identifier of the registry record to delete. You can specify either + the Amazon Resource Name (ARN) or the ID of the record. + """ + @dataclass(kw_only=True) class DeleteRegistryRecordOutput(_SerdeShape): """Dataclass for DeleteRegistryRecordOutput structure.""" @@ -6137,6 +9240,15 @@ class DeleteResourcePolicyInput(_SerdeShape): resource policy. """ +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource for which to delete the + resource policy. + """ + @dataclass(kw_only=True) class DeleteResourcePolicyOutput(_SerdeShape): """Dataclass for DeleteResourcePolicyOutput structure.""" @@ -6156,6 +9268,12 @@ class DeleteWorkloadIdentityInput(_SerdeShape): name: str | None = ... """The name of the workload identity to delete.""" +class DeleteWorkloadIdentityInputDict(TypedDict, total=False): + """Dictionary form of `DeleteWorkloadIdentityInput`.""" + + name: Required[str] + """The name of the workload identity to delete.""" + @dataclass(kw_only=True) class DeleteWorkloadIdentityOutput(_SerdeShape): """Dataclass for DeleteWorkloadIdentityOutput structure.""" diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_1.pyi b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_1.pyi index a33fd8448..77e38e6ab 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_1.pyi +++ b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_1.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,31 +13,40 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( A2aDescriptor, + A2aDescriptorDict, Action, AgentRuntime, AgentRuntimeArtifact, AgentRuntimeEndpoint, AgentRuntimeVersionSummary, AgentSkillsDescriptor, + AgentSkillsDescriptorDict, AllowedPort, ApiKeyCredentialProviderItem, ApiSchemaConfiguration, + ApiSchemaConfigurationDict, ApprovalConfiguration, AuthorizationData, AuthorizerConfiguration, BedrockEvaluatorModelConfig, + BedrockEvaluatorModelConfigDict, BrowserEnterprisePolicy, BrowserNetworkConfiguration, BrowserSigningConfigOutput, CapacityProviderConfiguration, CapacityProviderVolumeConfiguration, + CapacityProviderVolumeConfigurationDict, CapacityReservationSpecification, + CapacityReservationSpecificationDict, CategoricalScaleDefinition, + CategoricalScaleDefinitionDict, Certificate, CertificateConfiguration, CircuitBreakerConfiguration, + CircuitBreakerConfigurationDict, ClusteringConfig, CodeBasedEvaluatorConfig, + CodeBasedEvaluatorConfigDict, CodeInterpreterNetworkConfiguration, ComponentConfiguration, ComputeConfiguration, @@ -44,61 +54,87 @@ from ..models import ( ConsentPortalIdpConfig, ConsentPortalSource, ContainerConfiguration, + ContainerConfigurationDict, ContentConfiguration, + ContentConfigurationDict, CredentialProviderConfiguration, CredentialsProviderConfiguration, CustomDescriptor, + CustomDescriptorDict, CustomExtractionConfiguration, CustomTransformConfiguration, DataSourceConfig, LlmAsAJudgeEvaluatorConfig, + LlmAsAJudgeEvaluatorConfigDict, LlmExtractionConfig, + LlmExtractionConfigDict, MCPGatewayConfiguration, + MCPGatewayConfigurationDict, ManagedResourceDetails, McpDescriptor, + McpDescriptorDict, Memory, MemoryRecordSchema, + MemoryRecordSchemaDict, MetadataConfiguration, ModelEntry, + ModelEntryDict, ModelMapping, + ModelMappingDict, NetworkConfiguration, + NetworkConfigurationDict, NumericalScaleDefinition, + NumericalScaleDefinitionDict, OAuthCredentialProvider, + OAuthCredentialProviderDict, Oauth2Discovery, Oauth2ProviderConfigOutput, OpenResponsesEvaluatorModelConfig, + OpenResponsesEvaluatorModelConfigDict, OutputConfig, PassthroughTargetConfiguration, + PassthroughTargetConfigurationDict, PaymentProviderConfigurationOutput, PermissionsConfiguration, PolicyDefinition, PrivateEndpoint, ProtocolConfiguration, RateConfig, + RateConfigDict, RecordExpirySpecification, + RecordExpirySpecificationDict, RecordingConfig, RegistryRecordCredentialProviderConfiguration, + RegistryRecordCredentialProviderConfigurationDict, RequestHeaderConfiguration, Resource, ResourceConfiguration, RootVolumeConfiguration, + RootVolumeConfigurationDict, Rule, RuntimeHooksConfiguration, RuntimeMetadataConfiguration, RuntimeTargetConfiguration, + RuntimeTargetConfigurationDict, S3FilesAccessPointConfiguration, + S3FilesAccessPointConfigurationDict, Secret, SecretReference, + SecretReferenceDict, ServiceError, SessionStorageConfiguration, + SessionStorageConfigurationDict, SynchronizationConfiguration, SystemManagedBlock, TargetConfiguration, ToolsFileSystemConfiguration, Unit, + UnitDict, VersionLineageMetadata, VolumeConfiguration, + VolumeConfigurationDict, VpcConfiguration, + VpcConfigurationDict, WafConfiguration, WorkloadIdentityDetails, _SerdeShape, @@ -119,6 +155,17 @@ class DerivedEvaluatorConfig(_SerdeShape): model_config: EvaluatorModelConfig """The configuration of the evaluator model that you supply.""" +class DerivedEvaluatorConfigDict(TypedDict, total=False): + """Dictionary form of `DerivedEvaluatorConfig`.""" + + base_evaluator_id: Required[str] + """ + The identifier of the base evaluator whose logic to run (a `Builtin.*` + or `ThirdParty.*` evaluator). + """ + model_config: Required[EvaluatorModelConfig | EvaluatorModelConfigDict] + """The configuration of the evaluator model that you supply.""" + @dataclass(kw_only=True) class Descriptors(_SerdeShape): """ @@ -148,6 +195,30 @@ class Descriptors(_SerdeShape): `descriptorType` is `AGENT_SKILLS`. """ +class DescriptorsDict(TypedDict, total=False): + """Dictionary form of `Descriptors`.""" + + mcp: McpDescriptor | McpDescriptorDict | None + """ + The Model Context Protocol (MCP) descriptor configuration. Use this when + the `descriptorType` is `MCP`. + """ + a2a: A2aDescriptor | A2aDescriptorDict | None + """ + The Agent-to-Agent (A2A) protocol descriptor configuration. Use this + when the `descriptorType` is `A2A`. + """ + custom: CustomDescriptor | CustomDescriptorDict | None + """ + The custom descriptor configuration. Use this when the `descriptorType` + is `CUSTOM`. + """ + agent_skills: AgentSkillsDescriptor | AgentSkillsDescriptorDict | None + """ + The agent skills descriptor configuration. Use this when the + `descriptorType` is `AGENT_SKILLS`. + """ + class DescriptorType(UnknownEnumMixin, StrEnum): MCP = "MCP" A2_A = "A2A" @@ -195,6 +266,28 @@ supporting either a numerical or a categorical scale. class _DimensionRatingScaleDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> DimensionRatingScale: ... +class DimensionRatingScaleNumericalDict(TypedDict): + numerical: Sequence[NumericalScaleDefinition | NumericalScaleDefinitionDict] + """ + The numerical rating scale with defined score values and descriptions + for quantitative evaluation of the dimension. + """ + +class DimensionRatingScaleCategoricalDict(TypedDict): + categorical: Sequence[CategoricalScaleDefinition | CategoricalScaleDefinitionDict] + """ + The categorical rating scale with named categories and definitions for + qualitative evaluation of the dimension. + """ + +DimensionRatingScaleDict = Union[ + DimensionRatingScaleNumericalDict | DimensionRatingScaleCategoricalDict +] +""" +Dictionary form of `DimensionRatingScale`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class DomainOverride(_SerdeShape): """ @@ -219,6 +312,23 @@ class DomainOverride(_SerdeShape): request that selects a domain that isn't configured. """ +class DomainOverrideDict(TypedDict, total=False): + """Dictionary form of `DomainOverride`.""" + + default_domain: Required[str] + """ + The default public domain name for the gateway. The gateway advertises + this domain when a request doesn't select a specific domain. + """ + alternate_domains: Sequence[str] | None + """ + Additional public domain names for the gateway, up to 10. Don't repeat + the default domain or list a domain more than once. A request can select + one of these domains, or the default domain, with the + `x-amzn-bedrock-agentcore-gateway-domain` header. The gateway rejects a + request that selects a domain that isn't configured. + """ + class DraftStatus(UnknownEnumMixin, StrEnum): """Publish synchronization state of the DRAFT working copy.""" @@ -275,6 +385,45 @@ class EbsVolumeConfiguration(_SerdeShape): ignored. """ +class EbsVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `EbsVolumeConfiguration`.""" + + name: Required[str] + """ + The logical name of the volume. Use this name to reference the volume + when you mount it into an agent runtime. + """ + size_gi_b: Required[int] + """The size of the volume, in GiB.""" + volume_type: str | None + """ + The Amazon EBS volume type. If you do not specify a type, the default is + `gp3`. + """ + iops: int | None + """ + The number of IOPS to provision. Valid only for `gp3`, `io1`, and `io2` + volumes. + """ + throughput: int | None + """The throughput, in MiB/s. Valid only for `gp3` volumes.""" + encrypted: bool | None + """ + Specifies whether to encrypt the volume. If `true`, the service encrypts + the volume with the KMS key that you specify in `kmsKeyId`, or the + default KMS key for Amazon EBS if you do not specify one. The default is + `true`. + """ + kms_key_id: str | None + """The identifier of the KMS key to use for encryption.""" + snapshot_id: str | None + """ + An optional Amazon EBS snapshot ID. If provided, the volume is + initialized from this snapshot the first time it is created. On + subsequent restarts, the existing volume is used and the snapshot is + ignored. + """ + class EbsVolumeType(UnknownEnumMixin, StrEnum): """The type of Amazon EBS volume.""" @@ -319,6 +468,36 @@ class Ec2Configuration(_SerdeShape): are not configurable. """ +class Ec2ConfigurationDict(TypedDict, total=False): + """Dictionary form of `Ec2Configuration`.""" + + launch_template_source: Required[LaunchTemplateSource | LaunchTemplateSourceDict] + """ + The source of the launch template configuration that defines how + instances are launched. + """ + vpc_configuration: Required[VpcConfiguration | VpcConfigurationDict] + """ + The VPC configuration for launching instances, including subnets and + security groups. + """ + volumes: Sequence[VolumeConfiguration | VolumeConfigurationDict] | None + """ + The named persistent Amazon EBS volumes for the capacity provider. A + capacity provider can define up to five volumes. + """ + lifecycle_configuration: ( + InstanceLifecycleConfiguration | InstanceLifecycleConfigurationDict | None + ) + """The lifecycle configuration for instances in the capacity provider.""" + root_volume: RootVolumeConfiguration | RootVolumeConfigurationDict | None + """ + The configuration for the instance root volume. Specify the amount of + free space to guarantee and, optionally, the Amazon EBS performance and + encryption settings. The device name and delete-on-termination behavior + are not configurable. + """ + @dataclass(kw_only=True) class EfsAccessPointConfiguration(_SerdeShape): """ @@ -336,6 +515,18 @@ class EfsAccessPointConfiguration(_SerdeShape): example, `/mnt/data`). """ +class EfsAccessPointConfigurationDict(TypedDict, total=False): + """Dictionary form of `EfsAccessPointConfiguration`.""" + + access_point_arn: Required[str] + """The ARN of the EFS access point to mount into the AgentCore Runtime.""" + mount_path: Required[str] + """ + The mount path for the EFS access point inside the AgentCore Runtime. + The path must be under `/mnt` with exactly one subdirectory level (for + example, `/mnt/data`). + """ + @dataclass(kw_only=True) class EfsConfiguration(_SerdeShape): """ @@ -360,6 +551,26 @@ class EfsConfiguration(_SerdeShape): EFS) file system that owns the access point. """ +class EfsConfigurationDict(TypedDict, total=False): + """Dictionary form of `EfsConfiguration`.""" + + access_point_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Elastic File System (Amazon + EFS) access point to mount. + """ + mount_path: Required[str] + """ + The absolute path within the session at which the access point is + mounted, for example `/mnt/efs`. Each mount path must be unique across + all file system configurations in the session. + """ + file_system_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Elastic File System (Amazon + EFS) file system that owns the access point. + """ + @dataclass(kw_only=True) class EncryptionFailure(ServiceError, _SerdeShape): """Exception thrown when encryption of a secret fails.""" @@ -406,6 +617,25 @@ class EphemeralBlockDeviceMapping(_SerdeShape): configurations for a capacity provider. """ +class EphemeralBlockDeviceMappingDict(TypedDict, total=False): + """Dictionary form of `EphemeralBlockDeviceMapping`.""" + + device_name: str | None + """The device name, for example `/dev/sdh` or `xvdh`.""" + virtual_name: str | None + """ + The virtual device name (`ephemeralN`). Instance store volumes are + numbered starting from 0. The number of available instance store volumes + depends on the instance type. After you connect to the instance, you + must mount the volume. + """ + ebs: EphemeralEBSVolumeConfiguration | EphemeralEBSVolumeConfigurationDict | None + """ + The shared Amazon EBS performance and encryption properties for a + volume. These properties are common across the different volume + configurations for a capacity provider. + """ + @dataclass(kw_only=True) class EphemeralEBSVolumeConfiguration(_SerdeShape): """ @@ -463,6 +693,58 @@ class EphemeralEBSVolumeConfiguration(_SerdeShape): Amazon EBS cards. """ +class EphemeralEBSVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `EphemeralEBSVolumeConfiguration`.""" + + volume_type: str | None + """ + The Amazon EBS volume type. If you do not specify a type, the default is + `gp3`. + """ + iops: int | None + """ + The number of IOPS to provision. For `gp3`, `io1`, and `io2` volumes, + this is the number of IOPS provisioned for the volume. For `gp2` + volumes, this sets the baseline IOPS performance. It also controls the + rate at which the volume accumulates I/O credits for bursting. Supported + values: `gp3`, 3,000--80,000; `io1`, 100--64,000; `io2`, 100--256,000. + """ + throughput: int | None + """ + The throughput to provision, in MiB/s. Valid only for `gp3` volumes. + Valid range: 125--2,000 MiB/s. + """ + encrypted: bool | None + """ + Specifies whether to encrypt the volume. Encrypted volumes can be + attached only to instances that support Amazon EBS encryption. If you + create a volume from a snapshot, you cannot specify an encryption value. + """ + kms_key_id: str | None + """ + The identifier (key ID, key alias, key ARN, or alias ARN) of the + customer managed KMS key to use for Amazon EBS encryption. + """ + snapshot_id: str | None + """The ID of the snapshot.""" + volume_size: int | None + """ + The size of the volume, in GiB. You must specify either a snapshot ID or + a volume size. Supported sizes: `gp2`, 1--16,384; `gp3`, 1--65,536; + `io1`, 4--16,384; `io2`, 4--65,536. + """ + volume_initialization_rate: int | None + """ + The rate at which the volume is initialized after creation, in MiB/s. + Supported only for volumes created from snapshots. Valid range: 100--300 + MiB/s. + """ + ebs_card_index: int | None + """ + The index of the Amazon EBS card. Applies to instances with multiple + Amazon EBS cards. + """ + @dataclass(kw_only=True) class EpisodicConsolidationOverride(_SerdeShape): """ @@ -530,6 +812,42 @@ class EpisodicMemoryStrategyInput(_SerdeShape): expire. """ +class EpisodicMemoryStrategyInputDict(TypedDict, total=False): + """Dictionary form of `EpisodicMemoryStrategyInput`.""" + + name: Required[str] + """The name of the episodic memory strategy.""" + description: str | None + """The description of the episodic memory strategy.""" + namespaces: Sequence[str] | None + """ + This is a legacy parameter, use `namespaceTemplates`. The namespaces for + which to create episodes. + """ + namespace_templates: Sequence[str] | None + """The namespaceTemplates for which to create episodes.""" + reflection_configuration: ( + EpisodicReflectionConfigurationInput + | EpisodicReflectionConfigurationInputDict + | None + ) + """ + The configuration for the reflections created with the episodic memory + strategy. + """ + memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None + """Schema for metadata fields on records generated by this strategy.""" + record_expiry_specification: ( + RecordExpirySpecification | RecordExpirySpecificationDict | None + ) + """ + The record expiry (long-term memory time-to-live) configuration for + memory records generated by this strategy. Set + `recordExpiryDurationDays` to the number of days after which records + expire. If not specified, records generated by this strategy do not + expire. + """ + @dataclass(kw_only=True) class EpisodicOverrideConfigurationInput(_SerdeShape): """Input for the configuration to override the episodic memory strategy.""" @@ -550,6 +868,37 @@ class EpisodicOverrideConfigurationInput(_SerdeShape): episodic memory strategy. """ +class EpisodicOverrideConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `EpisodicOverrideConfigurationInput`.""" + + extraction: ( + EpisodicOverrideExtractionConfigurationInput + | EpisodicOverrideExtractionConfigurationInputDict + | None + ) + """ + Contains configurations for overriding the extraction step of the + episodic memory strategy. + """ + consolidation: ( + EpisodicOverrideConsolidationConfigurationInput + | EpisodicOverrideConsolidationConfigurationInputDict + | None + ) + """ + Contains configurations for overriding the consolidation step of the + episodic memory strategy. + """ + reflection: ( + EpisodicOverrideReflectionConfigurationInput + | EpisodicOverrideReflectionConfigurationInputDict + | None + ) + """ + Contains configurations for overriding the reflection step of the + episodic memory strategy. + """ + @dataclass(kw_only=True) class EpisodicOverrideConsolidationConfigurationInput(_SerdeShape): """ @@ -568,6 +917,20 @@ class EpisodicOverrideConsolidationConfigurationInput(_SerdeShape): strategy. """ +class EpisodicOverrideConsolidationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `EpisodicOverrideConsolidationConfigurationInput`.""" + + append_to_prompt: Required[str] + """ + The text to append to the prompt for the consolidation step of the + episodic memory strategy. + """ + model_id: Required[str] + """ + The model ID to use for the consolidation step of the episodic memory + strategy. + """ + @dataclass(kw_only=True) class EpisodicOverrideExtractionConfigurationInput(_SerdeShape): """ @@ -586,6 +949,20 @@ class EpisodicOverrideExtractionConfigurationInput(_SerdeShape): strategy. """ +class EpisodicOverrideExtractionConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `EpisodicOverrideExtractionConfigurationInput`.""" + + append_to_prompt: Required[str] + """ + The text to append to the prompt for the extraction step of the episodic + memory strategy. + """ + model_id: Required[str] + """ + The model ID to use for the extraction step of the episodic memory + strategy. + """ + @dataclass(kw_only=True) class EpisodicOverrideReflectionConfigurationInput(_SerdeShape): """ @@ -620,6 +997,36 @@ class EpisodicOverrideReflectionConfigurationInput(_SerdeShape): override. """ +class EpisodicOverrideReflectionConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `EpisodicOverrideReflectionConfigurationInput`.""" + + append_to_prompt: Required[str] + """ + The text to append to the prompt for reflection step of the episodic + memory strategy. + """ + model_id: Required[str] + """ + The model ID to use for the reflection step of the episodic memory + strategy. + """ + namespaces: Sequence[str] | None + """ + This is a legacy parameter, use `namespaceTemplates`. The namespaces to + use for episodic reflection. Can be less nested than the episodic + namespaces. + """ + namespace_templates: Sequence[str] | None + """ + The namespaceTemplates to use for episodic reflection. Can be less + nested than the episodic namespaces. + """ + memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None + """ + Schema for metadata fields on records generated by this reflection + override. + """ + @dataclass(kw_only=True) class EpisodicReflectionConfiguration(_SerdeShape): """ @@ -659,6 +1066,23 @@ class EpisodicReflectionConfigurationInput(_SerdeShape): memory_record_schema: MemoryRecordSchema | None = ... """Schema for metadata fields on records generated by reflections.""" +class EpisodicReflectionConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `EpisodicReflectionConfigurationInput`.""" + + namespaces: Sequence[str] | None + """ + This is a legacy parameter, use `namespaceTemplates`. The namespaces + over which to create reflections. Can be less nested than episode + namespaces. + """ + namespace_templates: Sequence[str] | None + """ + The namespaceTemplates over which to create reflections. Can be less + nested than episode namespaces. + """ + memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None + """Schema for metadata fields on records generated by reflections.""" + @dataclass(kw_only=True) class EpisodicReflectionOverride(_SerdeShape): """ @@ -717,6 +1141,26 @@ class EvaluationDimension(_SerdeShape): multi-dimensional. """ +class EvaluationDimensionDict(TypedDict, total=False): + """Dictionary form of `EvaluationDimension`.""" + + dimension_name: Required[str] + """ + The name of the dimension. This name is unique within the evaluator and + identifies the dimension's results. + """ + dimension_instruction: Required[str] + """ + The instruction to the evaluator model for this dimension, describing + what the model should judge when scoring the dimension. + """ + dimension_rating_scale: Required[DimensionRatingScale | DimensionRatingScaleDict] + """ + The rating scale for this dimension, which can be numerical or + categorical. A dimension's rating scale cannot itself be + multi-dimensional. + """ + @dataclass class EvaluatorConfigLlmAsAJudge(_SerdeShape): """ @@ -769,6 +1213,35 @@ performance, including the evaluation method and parameters. class _EvaluatorConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluatorConfig: ... +class EvaluatorConfigLlmAsAJudgeDict(TypedDict): + llm_as_a_judge: LlmAsAJudgeEvaluatorConfig | LlmAsAJudgeEvaluatorConfigDict + """ + The LLM-as-a-Judge configuration that uses a language model to evaluate + agent performance based on custom instructions and rating scales. + """ + +class EvaluatorConfigCodeBasedDict(TypedDict): + code_based: CodeBasedEvaluatorConfig | CodeBasedEvaluatorConfigDict + """ + Configuration for a code-based evaluator that uses a customer-managed + Lambda function to programmatically assess agent performance. + """ + +class EvaluatorConfigDerivedDict(TypedDict): + derived: DerivedEvaluatorConfig | DerivedEvaluatorConfigDict + """ + The configuration for an evaluator derived from an existing base + evaluator (a built-in or third-party evaluator), run on your own model. + The base evaluator supplies the prompt and scoring. + """ + +EvaluatorConfigDict = Union[ + EvaluatorConfigLlmAsAJudgeDict + | EvaluatorConfigCodeBasedDict + | EvaluatorConfigDerivedDict +] +"""Dictionary form of `EvaluatorConfig`, setting exactly one variant.""" + class EvaluatorLevel(UnknownEnumMixin, StrEnum): TOOL_CALL = "TOOL_CALL" TRACE = "TRACE" @@ -809,6 +1282,27 @@ evaluation and how to configure it. class _EvaluatorModelConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluatorModelConfig: ... +class EvaluatorModelConfigBedrockEvaluatorModelConfigDict(TypedDict): + bedrock_evaluator_model_config: ( + BedrockEvaluatorModelConfig | BedrockEvaluatorModelConfigDict + ) + """The Amazon Bedrock model configuration for evaluation.""" + +class EvaluatorModelConfigResponsesEvaluatorModelConfigDict(TypedDict): + responses_evaluator_model_config: ( + OpenResponsesEvaluatorModelConfig | OpenResponsesEvaluatorModelConfigDict + ) + """The OpenResponses model configuration for evaluation.""" + +EvaluatorModelConfigDict = Union[ + EvaluatorModelConfigBedrockEvaluatorModelConfigDict + | EvaluatorModelConfigResponsesEvaluatorModelConfigDict +] +""" +Dictionary form of `EvaluatorModelConfig`, setting exactly one +variant. +""" + @dataclass class EvaluatorReferenceEvaluatorId(_SerdeShape): """ @@ -837,6 +1331,16 @@ containing the evaluator identifier. class _EvaluatorReferenceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluatorReference: ... +class EvaluatorReferenceEvaluatorIdDict(TypedDict): + evaluator_id: str + """ + The unique identifier of the evaluator. Can reference builtin evaluators + (e.g., Builtin.Helpfulness) or custom evaluators. + """ + +EvaluatorReferenceDict = Union[EvaluatorReferenceEvaluatorIdDict] +"""Dictionary form of `EvaluatorReference`, setting exactly one variant.""" + class EvaluatorStatus(UnknownEnumMixin, StrEnum): ACTIVE = "ACTIVE" CREATING = "CREATING" @@ -925,6 +1429,13 @@ ExtractionConfig = Union[ExtractionConfigLlmExtractionConfig | ExtractionConfigU class _ExtractionConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ExtractionConfig: ... +class ExtractionConfigLlmExtractionConfigDict(TypedDict): + llm_extraction_config: LlmExtractionConfig | LlmExtractionConfigDict + """Model-based extraction using a definition and instructions.""" + +ExtractionConfigDict = Union[ExtractionConfigLlmExtractionConfigDict] +"""Dictionary form of `ExtractionConfig`, setting exactly one variant.""" + @dataclass class ExtractionConfigurationCustomExtractionConfiguration(_SerdeShape): """The custom extraction configuration.""" @@ -1009,6 +1520,48 @@ class Fallback(_SerdeShape): appear only once. """ +class FallbackDict(TypedDict, total=False): + """Dictionary form of `Fallback`.""" + + trigger_on: FallbackTriggers | FallbackTriggersDict | None + """ + The status codes and errors from the route's target that cause the + gateway to send the request to the first fallback target. If you omit + `triggerOn`, the gateway falls back on `5XX` status codes and on the + `CONNECTION_ERROR`, `FIRST_BYTE_TIMEOUT`, and `UNROUTABLE` errors. If + you specify `triggerOn`, only the status codes and errors that you list + trigger a fallback. + """ + first_byte_timeout_milliseconds: int | None + """ + The maximum time, in milliseconds, from sending the request to the + route's target until the first byte of the response body arrives. If + the time expires, the gateway abandons the request and treats it as a + `FIRST_BYTE_TIMEOUT` error. If you don't specify a value, no timeout is + enforced. + """ + circuit_breaker: ( + CircuitBreakerConfiguration | CircuitBreakerConfigurationDict | None + ) + """ + Specifies whether the gateway temporarily stops sending your requests to + a failing target. The circuit breaker tracks each combination of target + and model separately. With the circuit breaker enabled, the gateway + skips one or more targets and models that fail repeatedly, and your + requests go to the next target in the chain. The gateway always tries + the last remaining target in the chain. The gateway enables the circuit + breaker by default. + """ + target_fallback: Required[Sequence[FallbackTarget | FallbackTargetDict]] + """ + The ordered list of fallback targets. The gateway tries each target in + order until a response doesn't match that target's triggers, and + returns that response to the caller. If every target fails, the gateway + returns the last response. You can specify up to two fallback targets. + Each combination of target and model, including the route's target, can + appear only once. + """ + class FallbackError(UnknownEnumMixin, StrEnum): CONNECTION_ERROR = "CONNECTION_ERROR" """ @@ -1064,6 +1617,35 @@ class FallbackTarget(_SerdeShape): timeout is enforced. """ +class FallbackTargetDict(TypedDict, total=False): + """Dictionary form of `FallbackTarget`.""" + + target_name: Required[str] + """ + The name of the gateway target to fall back to. The target must be an + inference target. + """ + model: str | None + """ + The model ID to send to this fallback target. If you don't specify a + model, the gateway sends the model from the original request. + """ + trigger_on: FallbackTriggers | FallbackTriggersDict | None + """ + The status codes and errors from this target that cause the gateway to + send the request to the next fallback target. This setting isn't + inherited from the route. If you omit it, the gateway uses the default + triggers: `5XX` status codes and the `CONNECTION_ERROR`, + `FIRST_BYTE_TIMEOUT`, and `UNROUTABLE` errors. + """ + first_byte_timeout_milliseconds: int | None + """ + The maximum time, in milliseconds, from sending the request to this + target until the first byte of the response body arrives. This setting + isn't inherited from the route. If you don't specify a value, no + timeout is enforced. + """ + @dataclass(kw_only=True) class FallbackTriggers(_SerdeShape): """ @@ -1103,6 +1685,40 @@ class FallbackTriggers(_SerdeShape): request path. These errors don't count toward the circuit breaker. """ +class FallbackTriggersDict(TypedDict, total=False): + """Dictionary form of `FallbackTriggers`.""" + + status_codes: Sequence[str] | None + """ + The HTTP status codes returned by the target that trigger a fallback. + You can specify the following: + + - An exact status code -- A three-digit code, such as `429`. + + - A class of status codes -- The first digit followed by `XX`, such as + `5XX`, which matches every code from 500 to 599. + + Only 4XX and 5XX codes are supported. Throttling by the gateway itself + doesn't trigger a fallback. + """ + errors: Sequence[str] | None + """ + The errors that trigger a fallback. You can specify the following: + + - `CONNECTION_ERROR` -- The gateway couldn't connect to the target + because the connection was refused, reset, or timed out. The request + didn't reach the target. + + - `FIRST_BYTE_TIMEOUT` -- The target accepted the connection but didn't + return the first byte of the response within + `firstByteTimeoutMilliseconds`. The gateway abandons the request + before any of the response reaches you. + + - `UNROUTABLE` -- The gateway couldn't route the request to the target, + for example because the target doesn't exist or doesn't support the + request path. These errors don't count toward the circuit breaker. + """ + @dataclass class FilesystemConfigurationSessionStorage(_SerdeShape): """ @@ -1167,6 +1783,50 @@ class _FilesystemConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> FilesystemConfiguration: ... +class FilesystemConfigurationSessionStorageDict(TypedDict): + session_storage: SessionStorageConfiguration | SessionStorageConfigurationDict + """ + Configuration for session storage. Session storage provides persistent + storage that is preserved across AgentCore Runtime session invocations. + """ + +class FilesystemConfigurationS3FilesAccessPointDict(TypedDict): + s3_files_access_point: ( + S3FilesAccessPointConfiguration | S3FilesAccessPointConfigurationDict + ) + """ + Configuration for an Amazon S3 Files access point to mount into the + AgentCore Runtime. + """ + +class FilesystemConfigurationEfsAccessPointDict(TypedDict): + efs_access_point: EfsAccessPointConfiguration | EfsAccessPointConfigurationDict + """ + Configuration for an Amazon EFS access point to mount into the AgentCore + Runtime. + """ + +class FilesystemConfigurationCapacityProviderVolumeDict(TypedDict): + capacity_provider_volume: ( + CapacityProviderVolumeConfiguration | CapacityProviderVolumeConfigurationDict + ) + """ + Configuration for a capacity provider volume to mount into the AgentCore + Runtime. This mounts a persistent volume that is defined on the capacity + provider, referenced by its logical name. + """ + +FilesystemConfigurationDict = Union[ + FilesystemConfigurationSessionStorageDict + | FilesystemConfigurationS3FilesAccessPointDict + | FilesystemConfigurationEfsAccessPointDict + | FilesystemConfigurationCapacityProviderVolumeDict +] +""" +Dictionary form of `FilesystemConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class Filter(_SerdeShape): """ @@ -1181,6 +1841,16 @@ class Filter(_SerdeShape): value: FilterValue """The value to compare against using the specified operator.""" +class FilterDict(TypedDict, total=False): + """Dictionary form of `Filter`.""" + + key: Required[str] + """The key or field name to filter on within the agent trace data.""" + operator: Required[str] + """The comparison operator to use for filtering.""" + value: Required[FilterValue | FilterValueDict] + """The value to compare against using the specified operator.""" + class FilterOperator(UnknownEnumMixin, StrEnum): EQUALS = "Equals" NOT_EQUALS = "NotEquals" @@ -1233,6 +1903,25 @@ for flexible filtering criteria. class _FilterValueDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> FilterValue: ... +class FilterValueStringValueDict(TypedDict): + string_value: str + """The string value for text-based filtering.""" + +class FilterValueDoubleValueDict(TypedDict): + double_value: float + """The numeric value for numerical filtering and comparisons.""" + +class FilterValueBooleanValueDict(TypedDict): + boolean_value: bool + """The boolean value for true/false filtering conditions.""" + +FilterValueDict = Union[ + FilterValueStringValueDict + | FilterValueDoubleValueDict + | FilterValueBooleanValueDict +] +"""Dictionary form of `FilterValue`, setting exactly one variant.""" + @dataclass(kw_only=True) class Finding(_SerdeShape): """ @@ -1286,6 +1975,24 @@ class FromUrlSynchronizationConfiguration(_SerdeShape): be specified. """ +class FromUrlSynchronizationConfigurationDict(TypedDict, total=False): + """Dictionary form of `FromUrlSynchronizationConfiguration`.""" + + url: Required[str] + """The HTTPS URL of the MCP server to synchronize from.""" + credential_provider_configurations: ( + Sequence[ + RegistryRecordCredentialProviderConfiguration + | RegistryRecordCredentialProviderConfigurationDict + ] + | None + ) + """ + Optional list of credential provider configurations for authenticating + with the MCP server. At most one credential provider configuration can + be specified. + """ + @dataclass(kw_only=True) class GatewayApiKeyCredentialProvider(_SerdeShape): """ @@ -1315,6 +2022,30 @@ class GatewayApiKeyCredentialProvider(_SerdeShape): the request the API key should be placed. """ +class GatewayApiKeyCredentialProviderDict(TypedDict, total=False): + """Dictionary form of `GatewayApiKeyCredentialProvider`.""" + + provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the API key credential provider. This + ARN identifies the provider in Amazon Web Services. + """ + credential_parameter_name: str | None + """ + The name of the credential parameter for the API key. This parameter + name is used when sending the API key to the target endpoint. + """ + credential_prefix: str | None + """ + The prefix for the API key credential. This prefix is added to the API + key when sending it to the target endpoint. + """ + credential_location: str | None + """ + The location of the API key credential. This field specifies where in + the request the API key should be placed. + """ + class GatewayInterceptionPoint(UnknownEnumMixin, StrEnum): REQUEST = "REQUEST" RESPONSE = "RESPONSE" @@ -1343,24 +2074,70 @@ class GatewayInterceptorConfiguration(_SerdeShape): how the input to the interceptor is constructed """ +class GatewayInterceptorConfigurationDict(TypedDict, total=False): + """Dictionary form of `GatewayInterceptorConfiguration`.""" + + interceptor: Required[InterceptorConfiguration | InterceptorConfigurationDict] + """ + The infrastructure settings of an interceptor configuration. This + structure defines how the interceptor can be invoked. + """ + interception_points: Required[Sequence[str]] + """ + The supported points of interception. This field specifies which points + during the gateway invocation to invoke the interceptor + """ + input_configuration: ( + InterceptorInputConfiguration | InterceptorInputConfigurationDict | None + ) + """ + The configuration for the input of the interceptor. This field specifies + how the input to the interceptor is constructed + """ + @dataclass(kw_only=True) class GatewayPolicyEngineConfiguration(_SerdeShape): """ - The configuration for a policy engine associated with a gateway. A - policy engine is a collection of policies that evaluates and authorizes - agent tool calls. When associated with a gateway, the policy engine - intercepts all agent requests and determines whether to allow or deny - each action based on the defined policies. + The configuration for a policy engine associated with a gateway. A + policy engine is a collection of policies that evaluates and authorizes + agent tool calls. When associated with a gateway, the policy engine + intercepts all agent requests and determines whether to allow or deny + each action based on the defined policies. + """ + + arn: str + """ + The ARN of the policy engine. The policy engine contains Cedar or + Dogwood policies that define fine-grained authorization rules specifying + who can perform what actions on which resources as agents interact + through the gateway. + """ + mode: str + """ + The enforcement mode for the policy engine. Valid values include: + + - `LOG_ONLY` - The policy engine evaluates each action against your + policies and adds traces on whether tool calls would be allowed or + denied, but does not enforce the decision. Use this mode to test and + validate policies before enabling enforcement. + + - `ENFORCE` - The policy engine evaluates actions against your policies + and enforces decisions by allowing or denying agent operations. Test + and validate policies in `LOG_ONLY` mode before enabling enforcement + to avoid unintended denials or adversely affecting production traffic. """ - arn: str +class GatewayPolicyEngineConfigurationDict(TypedDict, total=False): + """Dictionary form of `GatewayPolicyEngineConfiguration`.""" + + arn: Required[str] """ The ARN of the policy engine. The policy engine contains Cedar or Dogwood policies that define fine-grained authorization rules specifying who can perform what actions on which resources as agents interact through the gateway. """ - mode: str + mode: Required[str] """ The enforcement mode for the policy engine. Valid values include: @@ -1411,6 +2188,19 @@ class _GatewayProtocolConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> GatewayProtocolConfiguration: ... +class GatewayProtocolConfigurationMcpDict(TypedDict): + mcp: MCPGatewayConfiguration | MCPGatewayConfigurationDict + """ + The configuration for the Model Context Protocol (MCP). This protocol + enables communication between Amazon Bedrock Agent and external tools. + """ + +GatewayProtocolConfigurationDict = Union[GatewayProtocolConfigurationMcpDict] +""" +Dictionary form of `GatewayProtocolConfiguration`, setting exactly one +variant. +""" + class GatewayProtocolType(UnknownEnumMixin, StrEnum): MCP = "MCP" @@ -1586,6 +2376,17 @@ class GetAgentRuntimeEndpointInput(_SerdeShape): endpoint_name: str | None = ... """The name of the AgentCore Runtime endpoint to retrieve.""" +class GetAgentRuntimeEndpointInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentRuntimeEndpointInput`.""" + + agent_runtime_id: Required[str] + """ + The unique identifier of the AgentCore Runtime associated with the + endpoint. + """ + endpoint_name: Required[str] + """The name of the AgentCore Runtime endpoint to retrieve.""" + @dataclass(kw_only=True) class GetAgentRuntimeEndpointOutput(_SerdeShape): """Dataclass for GetAgentRuntimeEndpointOutput structure.""" @@ -1632,6 +2433,14 @@ class GetAgentRuntimeInput(_SerdeShape): agent_runtime_version: str | None = ... """The version of the AgentCore Runtime to retrieve.""" +class GetAgentRuntimeInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentRuntimeInput`.""" + + agent_runtime_id: Required[str] + """The unique identifier of the AgentCore Runtime to retrieve.""" + agent_runtime_version: str | None + """The version of the AgentCore Runtime to retrieve.""" + @dataclass(kw_only=True) class GetAgentRuntimeOutput(_SerdeShape): """Dataclass for GetAgentRuntimeOutput structure.""" @@ -1713,6 +2522,12 @@ class GetApiKeyCredentialProviderInput(_SerdeShape): name: str | None = ... """The name of the API key credential provider to retrieve.""" +class GetApiKeyCredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `GetApiKeyCredentialProviderInput`.""" + + name: Required[str] + """The name of the API key credential provider to retrieve.""" + @dataclass(kw_only=True) class GetApiKeyCredentialProviderOutput(_SerdeShape): """Dataclass for GetApiKeyCredentialProviderOutput structure.""" @@ -1756,6 +2571,12 @@ class GetBrowserInput(_SerdeShape): browser_id: str | None = ... """The unique identifier of the browser to retrieve.""" +class GetBrowserInputDict(TypedDict, total=False): + """Dictionary form of `GetBrowserInput`.""" + + browser_id: Required[str] + """The unique identifier of the browser to retrieve.""" + @dataclass(kw_only=True) class GetBrowserOutput(_SerdeShape): """Dataclass for GetBrowserOutput structure.""" @@ -1817,6 +2638,12 @@ class GetBrowserProfileInput(_SerdeShape): profile_id: str | None = ... """The unique identifier of the browser profile to retrieve.""" +class GetBrowserProfileInputDict(TypedDict, total=False): + """Dictionary form of `GetBrowserProfileInput`.""" + + profile_id: Required[str] + """The unique identifier of the browser profile to retrieve.""" + @dataclass(kw_only=True) class GetBrowserProfileOutput(_SerdeShape): """Dataclass for GetBrowserProfileOutput structure.""" @@ -1862,6 +2689,12 @@ class GetCapacityProviderInput(_SerdeShape): capacity_provider_id: str | None = ... """The unique identifier of the capacity provider.""" +class GetCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `GetCapacityProviderInput`.""" + + capacity_provider_id: Required[str] + """The unique identifier of the capacity provider.""" + @dataclass(kw_only=True) class GetCapacityProviderOutput(_SerdeShape): """Dataclass for GetCapacityProviderOutput structure.""" @@ -1913,6 +2746,12 @@ class GetCodeInterpreterInput(_SerdeShape): code_interpreter_id: str | None = ... """The unique identifier of the code interpreter to retrieve.""" +class GetCodeInterpreterInputDict(TypedDict, total=False): + """Dictionary form of `GetCodeInterpreterInput`.""" + + code_interpreter_id: Required[str] + """The unique identifier of the code interpreter to retrieve.""" + @dataclass(kw_only=True) class GetCodeInterpreterOutput(_SerdeShape): """Dataclass for GetCodeInterpreterOutput structure.""" @@ -1967,6 +2806,17 @@ class GetConfigurationBundleInput(_SerdeShape): returns the latest version on the mainline branch. """ +class GetConfigurationBundleInputDict(TypedDict, total=False): + """Dictionary form of `GetConfigurationBundleInput`.""" + + bundle_id: Required[str] + """The unique identifier of the configuration bundle to retrieve.""" + branch_name: str | None + """ + The branch name to get the latest version from. If not specified, + returns the latest version on the mainline branch. + """ + @dataclass(kw_only=True) class GetConfigurationBundleOutput(_SerdeShape): """Dataclass for GetConfigurationBundleOutput structure.""" @@ -2014,6 +2864,14 @@ class GetConfigurationBundleVersionInput(_SerdeShape): version_id: str | None = ... """The version identifier of the configuration bundle version to retrieve.""" +class GetConfigurationBundleVersionInputDict(TypedDict, total=False): + """Dictionary form of `GetConfigurationBundleVersionInput`.""" + + bundle_id: Required[str] + """The unique identifier of the configuration bundle.""" + version_id: Required[str] + """The version identifier of the configuration bundle version to retrieve.""" + @dataclass(kw_only=True) class GetConfigurationBundleVersionOutput(_SerdeShape): """Dataclass for GetConfigurationBundleVersionOutput structure.""" @@ -2062,6 +2920,15 @@ class GetConsentPortalInput(_SerdeShape): portal ID or its Amazon Resource Name (ARN). """ +class GetConsentPortalInputDict(TypedDict, total=False): + """Dictionary form of `GetConsentPortalInput`.""" + + consent_portal_identifier: Required[str] + """ + The identifier of the consent portal. You can specify either the consent + portal ID or its Amazon Resource Name (ARN). + """ + @dataclass(kw_only=True) class GetConsentPortalOutput(_SerdeShape): """Dataclass for GetConsentPortalOutput structure.""" @@ -2119,6 +2986,17 @@ class GetDatasetInput(_SerdeShape): absent. """ +class GetDatasetInputDict(TypedDict, total=False): + """Dictionary form of `GetDatasetInput`.""" + + dataset_id: Required[str] + """The unique identifier of the dataset to retrieve.""" + dataset_version: str | None + """ + Version to retrieve: \"DRAFT\" or a version number. Defaults to DRAFT if + absent. + """ + @dataclass(kw_only=True) class GetDatasetOutput(_SerdeShape): """Dataclass for GetDatasetOutput structure.""" @@ -2199,6 +3077,24 @@ class GetEvaluatorInput(_SerdeShape): rating scale, and does not require any KMS permissions. """ +class GetEvaluatorInputDict(TypedDict, total=False): + """Dictionary form of `GetEvaluatorInput`.""" + + evaluator_id: Required[str] + """ + The unique identifier of the evaluator to retrieve. Can be a built-in + evaluator ID (e.g., Builtin.Helpfulness) or a custom evaluator ID. + """ + included_data: str | None + """ + Controls which data is returned in the response. `ALL_DATA` (default) + returns the full evaluator including decrypted instructions and rating + scale. For evaluators encrypted with a customer managed KMS key, this + requires `kms:Decrypt` permission on the key. `METADATA_ONLY` returns + evaluator metadata and model configuration without instructions or + rating scale, and does not require any KMS permissions. + """ + @dataclass(kw_only=True) class GetEvaluatorOutput(_SerdeShape): """Dataclass for GetEvaluatorOutput structure.""" @@ -2274,6 +3170,12 @@ class GetGatewayInput(_SerdeShape): gateway_identifier: str | None = ... """The identifier of the gateway to retrieve.""" +class GetGatewayInputDict(TypedDict, total=False): + """Dictionary form of `GetGatewayInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway to retrieve.""" + @dataclass(kw_only=True) class GetGatewayOutput(_SerdeShape): """Dataclass for GetGatewayOutput structure.""" @@ -2365,6 +3267,14 @@ class GetGatewayRateLimitInput(_SerdeShape): rate_limit_id: str | None = ... """The unique identifier of the rate limit to retrieve.""" +class GetGatewayRateLimitInputDict(TypedDict, total=False): + """Dictionary form of `GetGatewayRateLimitInput`.""" + + gateway_identifier: Required[str] + """The unique identifier of the gateway.""" + rate_limit_id: Required[str] + """The unique identifier of the rate limit to retrieve.""" + @dataclass(kw_only=True) class GetGatewayRateLimitOutput(_SerdeShape): """Shared fields for `GatewayRateLimit` responses.""" @@ -2408,6 +3318,14 @@ class GetGatewayRuleInput(_SerdeShape): rule_id: str | None = ... """The unique identifier of the rule to retrieve.""" +class GetGatewayRuleInputDict(TypedDict, total=False): + """Dictionary form of `GetGatewayRuleInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway containing the rule.""" + rule_id: Required[str] + """The unique identifier of the rule to retrieve.""" + @dataclass(kw_only=True) class GetGatewayRuleOutput(_SerdeShape): """ @@ -2455,6 +3373,14 @@ class GetGatewayTargetInput(_SerdeShape): target_id: str | None = ... """The unique identifier of the target to retrieve.""" +class GetGatewayTargetInputDict(TypedDict, total=False): + """Dictionary form of `GetGatewayTargetInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway that contains the target.""" + target_id: Required[str] + """The unique identifier of the target to retrieve.""" + @dataclass(kw_only=True) class GetGatewayTargetOutput(_SerdeShape): """Dataclass for GetGatewayTargetOutput structure.""" @@ -2526,6 +3452,14 @@ class GetHarnessEndpointInput(_SerdeShape): endpoint_name: str | None = ... """The name of the endpoint to retrieve.""" +class GetHarnessEndpointInputDict(TypedDict, total=False): + """Dictionary form of `GetHarnessEndpointInput`.""" + + harness_id: Required[str] + """The ID of the harness that the endpoint belongs to.""" + endpoint_name: Required[str] + """The name of the endpoint to retrieve.""" + @dataclass(kw_only=True) class GetHarnessEndpointOutput(_SerdeShape): """Dataclass for GetHarnessEndpointOutput structure.""" @@ -2552,6 +3486,17 @@ class GetHarnessInput(_SerdeShape): current Harness configuration, including its status. """ +class GetHarnessInputDict(TypedDict, total=False): + """Dictionary form of `GetHarnessInput`.""" + + harness_id: Required[str] + """The ID of the harness to retrieve.""" + harness_version: str | None + """ + Specific version of the harness to retrieve. If omitted, returns the + current Harness configuration, including its status. + """ + @dataclass(kw_only=True) class GetHarnessOutput(_SerdeShape): """Dataclass for GetHarnessOutput structure.""" @@ -2575,6 +3520,14 @@ class GetMemoryInput(_SerdeShape): view: str = ... """The level of detail to return for the memory.""" +class GetMemoryInputDict(TypedDict, total=False): + """Dictionary form of `GetMemoryInput`.""" + + memory_id: Required[str] + """The unique identifier of the memory to retrieve.""" + view: str | None + """The level of detail to return for the memory.""" + @dataclass(kw_only=True) class GetMemoryOutput(_SerdeShape): """Dataclass for GetMemoryOutput structure.""" @@ -2596,6 +3549,12 @@ class GetOauth2CredentialProviderInput(_SerdeShape): name: str | None = ... """The name of the OAuth2 credential provider to retrieve.""" +class GetOauth2CredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `GetOauth2CredentialProviderInput`.""" + + name: Required[str] + """The name of the OAuth2 credential provider to retrieve.""" + @dataclass(kw_only=True) class GetOauth2CredentialProviderOutput(_SerdeShape): """Dataclass for GetOauth2CredentialProviderOutput structure.""" @@ -2659,6 +3618,15 @@ class GetOnlineEvaluationConfigInput(_SerdeShape): retrieve. """ +class GetOnlineEvaluationConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetOnlineEvaluationConfigInput`.""" + + online_evaluation_config_id: Required[str] + """ + The unique identifier of the online evaluation configuration to + retrieve. + """ + @dataclass(kw_only=True) class GetOnlineEvaluationConfigOutput(_SerdeShape): """Dataclass for GetOnlineEvaluationConfigOutput structure.""" @@ -2730,6 +3698,14 @@ class GetPaymentConnectorInput(_SerdeShape): payment_connector_id: str | None = ... """The unique identifier of the payment connector to retrieve.""" +class GetPaymentConnectorInputDict(TypedDict, total=False): + """Dictionary form of `GetPaymentConnectorInput`.""" + + payment_manager_id: Required[str] + """The unique identifier of the parent payment manager.""" + payment_connector_id: Required[str] + """The unique identifier of the payment connector to retrieve.""" + @dataclass(kw_only=True) class GetPaymentConnectorOutput(_SerdeShape): """Dataclass for GetPaymentConnectorOutput structure.""" @@ -2798,6 +3774,12 @@ class GetPaymentCredentialProviderInput(_SerdeShape): name: str | None = ... """The name of the payment credential provider to retrieve.""" +class GetPaymentCredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `GetPaymentCredentialProviderInput`.""" + + name: Required[str] + """The name of the payment credential provider to retrieve.""" + @dataclass(kw_only=True) class GetPaymentCredentialProviderOutput(_SerdeShape): """Dataclass for GetPaymentCredentialProviderOutput structure.""" @@ -2834,6 +3816,12 @@ class GetPaymentManagerInput(_SerdeShape): payment_manager_id: str | None = ... """The unique identifier of the payment manager to retrieve.""" +class GetPaymentManagerInputDict(TypedDict, total=False): + """Dictionary form of `GetPaymentManagerInput`.""" + + payment_manager_id: Required[str] + """The unique identifier of the payment manager to retrieve.""" + @dataclass(kw_only=True) class GetPaymentManagerOutput(_SerdeShape): """Dataclass for GetPaymentManagerOutput structure.""" @@ -2901,6 +3889,15 @@ class GetPolicyEngineInput(_SerdeShape): a valid policy engine ID that exists within the account. """ +class GetPolicyEngineInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyEngineInput`.""" + + policy_engine_id: Required[str] + """ + The unique identifier of the policy engine to be retrieved. This must be + a valid policy engine ID that exists within the account. + """ + @dataclass(kw_only=True) class GetPolicyEngineOutput(_SerdeShape): """Dataclass for GetPolicyEngineOutput structure.""" @@ -2966,6 +3963,15 @@ class GetPolicyEngineSummaryInput(_SerdeShape): This must be a valid policy engine ID that exists within the account. """ +class GetPolicyEngineSummaryInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyEngineSummaryInput`.""" + + policy_engine_id: Required[str] + """ + The unique identifier of the policy engine to retrieve the summary for. + This must be a valid policy engine ID that exists within the account. + """ + @dataclass(kw_only=True) class GetPolicyEngineSummaryOutput(_SerdeShape): """Dataclass for GetPolicyEngineSummaryOutput structure.""" @@ -3013,6 +4019,23 @@ class GetPolicyGenerationInput(_SerdeShape): operation and schema validation. """ +class GetPolicyGenerationInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyGenerationInput`.""" + + policy_generation_id: Required[str] + """ + The unique identifier of the policy generation request to be retrieved. + This must be a valid generation ID from a previous + [StartPolicyGeneration](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_StartPolicyGeneration.html) + call. + """ + policy_engine_id: Required[str] + """ + The identifier of the policy engine associated with the policy + generation request. This provides the context for the generation + operation and schema validation. + """ + @dataclass(kw_only=True) class GetPolicyGenerationOutput(_SerdeShape): """Dataclass for GetPolicyGenerationOutput structure.""" @@ -3098,6 +4121,20 @@ class GetPolicyGenerationSummaryInput(_SerdeShape): generation request. """ +class GetPolicyGenerationSummaryInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyGenerationSummaryInput`.""" + + policy_generation_id: Required[str] + """ + The unique identifier of the policy generation request to retrieve the + summary for. + """ + policy_engine_id: Required[str] + """ + The identifier of the policy engine associated with the policy + generation request. + """ + @dataclass(kw_only=True) class GetPolicyGenerationSummaryOutput(_SerdeShape): """Dataclass for GetPolicyGenerationSummaryOutput structure.""" @@ -3146,6 +4183,20 @@ class GetPolicyInput(_SerdeShape): valid policy ID that exists within the specified policy engine. """ +class GetPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyInput`.""" + + policy_engine_id: Required[str] + """ + The identifier of the policy engine that manages the policy to be + retrieved. + """ + policy_id: Required[str] + """ + The unique identifier of the policy to be retrieved. This must be a + valid policy ID that exists within the specified policy engine. + """ + @dataclass(kw_only=True) class GetPolicyOutput(_SerdeShape): """Dataclass for GetPolicyOutput structure.""" @@ -3224,6 +4275,21 @@ class GetPolicySummaryInput(_SerdeShape): engine. """ +class GetPolicySummaryInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicySummaryInput`.""" + + policy_engine_id: Required[str] + """ + The identifier of the policy engine that manages the policy to retrieve + the summary for. + """ + policy_id: Required[str] + """ + The unique identifier of the policy to retrieve the summary for. This + must be a valid policy ID that exists within the specified policy + engine. + """ + @dataclass(kw_only=True) class GetPolicySummaryOutput(_SerdeShape): """Dataclass for GetPolicySummaryOutput structure.""" @@ -3262,6 +4328,15 @@ class GetRegistryInput(_SerdeShape): Amazon Resource Name (ARN) or the ID of the registry. """ +class GetRegistryInputDict(TypedDict, total=False): + """Dictionary form of `GetRegistryInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry to retrieve. You can specify either the + Amazon Resource Name (ARN) or the ID of the registry. + """ + @dataclass(kw_only=True) class GetRegistryOutput(_SerdeShape): """Dataclass for GetRegistryOutput structure.""" @@ -3331,6 +4406,20 @@ class GetRegistryRecordInput(_SerdeShape): either the Amazon Resource Name (ARN) or the ID of the record. """ +class GetRegistryRecordInputDict(TypedDict, total=False): + """Dictionary form of `GetRegistryRecordInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry containing the record. You can specify + either the Amazon Resource Name (ARN) or the ID of the registry. + """ + record_id: Required[str] + """ + The identifier of the registry record to retrieve. You can specify + either the Amazon Resource Name (ARN) or the ID of the record. + """ + @dataclass(kw_only=True) class GetRegistryRecordOutput(_SerdeShape): """Dataclass for GetRegistryRecordOutput structure.""" @@ -3400,6 +4489,15 @@ class GetResourcePolicyInput(_SerdeShape): resource policy. """ +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource for which to retrieve the + resource policy. + """ + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Dataclass for GetResourcePolicyOutput structure.""" @@ -3421,6 +4519,12 @@ class GetTokenVaultInput(_SerdeShape): token_vault_id: str | None = ... """The unique identifier of the token vault to retrieve.""" +class GetTokenVaultInputDict(TypedDict, total=False): + """Dictionary form of `GetTokenVaultInput`.""" + + token_vault_id: str | None + """The unique identifier of the token vault to retrieve.""" + @dataclass(kw_only=True) class GetTokenVaultOutput(_SerdeShape): """Dataclass for GetTokenVaultOutput structure.""" @@ -3446,6 +4550,12 @@ class GetWorkloadIdentityInput(_SerdeShape): name: str | None = ... """The name of the workload identity to retrieve.""" +class GetWorkloadIdentityInputDict(TypedDict, total=False): + """Dictionary form of `GetWorkloadIdentityInput`.""" + + name: Required[str] + """The name of the workload identity to retrieve.""" + @dataclass(kw_only=True) class GetWorkloadIdentityOutput(_SerdeShape): """Dataclass for GetWorkloadIdentityOutput structure.""" @@ -3493,6 +4603,27 @@ class GithubOauth2ProviderConfigInput(_SerdeShape): in Amazon Web Services Secrets Manager. """ +class GithubOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `GithubOauth2ProviderConfigInput`.""" + + client_id: Required[str] + """The client ID for the GitHub OAuth2 provider.""" + client_secret: str | None + """The client secret for the GitHub OAuth2 provider.""" + client_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None + """ + The source type of the client secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + @dataclass(kw_only=True) class GithubOauth2ProviderConfigOutput(_SerdeShape): """Output configuration for a GitHub OAuth2 provider.""" @@ -3502,22 +4633,43 @@ class GithubOauth2ProviderConfigOutput(_SerdeShape): client_id: str | None = ... """The client ID for the GitHub OAuth2 provider.""" -@dataclass(kw_only=True) -class GoogleOauth2ProviderConfigInput(_SerdeShape): - """Input configuration for a Google OAuth2 provider.""" +@dataclass(kw_only=True) +class GoogleOauth2ProviderConfigInput(_SerdeShape): + """Input configuration for a Google OAuth2 provider.""" + + client_id: str + """The client ID for the Google OAuth2 provider.""" + client_secret: str = ... + """The client secret for the Google OAuth2 provider.""" + client_secret_config: SecretReference | None = ... + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None = ... + """ + The source type of the client secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + +class GoogleOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `GoogleOauth2ProviderConfigInput`.""" - client_id: str + client_id: Required[str] """The client ID for the Google OAuth2 provider.""" - client_secret: str = ... + client_secret: str | None """The client secret for the Google OAuth2 provider.""" - client_secret_config: SecretReference | None = ... + client_secret_config: SecretReference | SecretReferenceDict | None """ A reference to the Amazon Web Services Secrets Manager secret that stores the client secret. This includes the secret ID and the JSON key used to extract the client secret value from the secret. Required when `clientSecretSource` is set to `EXTERNAL`. """ - client_secret_source: str | None = ... + client_secret_source: str | None """ The source type of the client secret. Use `MANAGED` if the secret is managed by the service, or `EXTERNAL` if you manage the secret yourself @@ -3613,6 +4765,14 @@ class HarnessAfterInvocationHook(_SerdeShape): target: HarnessHookTarget """The target that receives the hook event.""" +class HarnessAfterInvocationHookDict(TypedDict, total=False): + """Dictionary form of `HarnessAfterInvocationHook`.""" + + name: Required[str] + """The name of the hook.""" + target: Required[HarnessHookTarget | HarnessHookTargetDict] + """The target that receives the hook event.""" + @dataclass(kw_only=True) class HarnessAfterToolCallHook(_SerdeShape): """The configuration for a hook that runs after a tool call completes.""" @@ -3622,6 +4782,14 @@ class HarnessAfterToolCallHook(_SerdeShape): target: HarnessHookTarget """The target that receives the hook event.""" +class HarnessAfterToolCallHookDict(TypedDict, total=False): + """Dictionary form of `HarnessAfterToolCallHook`.""" + + name: Required[str] + """The name of the hook.""" + target: Required[HarnessHookTarget | HarnessHookTargetDict] + """The target that receives the hook event.""" + @dataclass(kw_only=True) class HarnessAgentCoreBrowserConfig(_SerdeShape): """Configuration for AgentCore Browser.""" @@ -3629,6 +4797,12 @@ class HarnessAgentCoreBrowserConfig(_SerdeShape): browser_arn: str | None = ... """If not populated, the built-in Browser ARN is used.""" +class HarnessAgentCoreBrowserConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreBrowserConfig`.""" + + browser_arn: str | None + """If not populated, the built-in Browser ARN is used.""" + @dataclass(kw_only=True) class HarnessAgentCoreCodeInterpreterConfig(_SerdeShape): """Configuration for AgentCore Code Interpreter.""" @@ -3636,6 +4810,12 @@ class HarnessAgentCoreCodeInterpreterConfig(_SerdeShape): code_interpreter_arn: str | None = ... """If not populated, the built-in Code Interpreter ARN is used.""" +class HarnessAgentCoreCodeInterpreterConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreCodeInterpreterConfig`.""" + + code_interpreter_arn: str | None + """If not populated, the built-in Code Interpreter ARN is used.""" + @dataclass(kw_only=True) class HarnessAgentCoreGatewayConfig(_SerdeShape): """Configuration for AgentCore Gateway.""" @@ -3648,6 +4828,17 @@ class HarnessAgentCoreGatewayConfig(_SerdeShape): if omitted. """ +class HarnessAgentCoreGatewayConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreGatewayConfig`.""" + + gateway_arn: Required[str] + """The ARN of the desired AgentCore Gateway.""" + outbound_auth: HarnessGatewayOutboundAuth | HarnessGatewayOutboundAuthDict | None + """ + How harness authenticates to this Gateway. Defaults to AWS_IAM (SigV4) + if omitted. + """ + @dataclass(kw_only=True) class HarnessAgentCoreMemoryConfiguration(_SerdeShape): """Configuration for AgentCore Memory integration.""" @@ -3664,6 +4855,28 @@ class HarnessAgentCoreMemoryConfiguration(_SerdeShape): templates to retrieval settings. """ +class HarnessAgentCoreMemoryConfigurationDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreMemoryConfiguration`.""" + + arn: Required[str] + """The ARN of the AgentCore Memory resource.""" + actor_id: str | None + """The actor ID for memory operations.""" + messages_count: int | None + """The number of messages to retrieve from memory.""" + retrieval_config: ( + Mapping[ + str, + HarnessAgentCoreMemoryRetrievalConfig + | HarnessAgentCoreMemoryRetrievalConfigDict, + ] + | None + ) + """ + The retrieval configuration for long-term memory, mapping namespace path + templates to retrieval settings. + """ + @dataclass(kw_only=True) class HarnessAgentCoreMemoryRetrievalConfig(_SerdeShape): """Configuration for memory retrieval within a namespace.""" @@ -3675,6 +4888,16 @@ class HarnessAgentCoreMemoryRetrievalConfig(_SerdeShape): strategy_id: str | None = ... """The ID of the retrieval strategy to use.""" +class HarnessAgentCoreMemoryRetrievalConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreMemoryRetrievalConfig`.""" + + top_k: int | None + """The maximum number of memory entries to retrieve.""" + relevance_score: float | None + """The minimum relevance score for retrieved memories.""" + strategy_id: str | None + """The ID of the retrieval strategy to use.""" + @dataclass(kw_only=True) class HarnessAgentCoreRuntimeEnvironment(_SerdeShape): """The AgentCore Runtime environment for a harness.""" @@ -3714,6 +4937,24 @@ class HarnessAgentCoreRuntimeEnvironmentRequest(_SerdeShape): filesystem_configurations: list[FilesystemConfiguration] | None = ... """The filesystem configurations for the runtime environment.""" +class HarnessAgentCoreRuntimeEnvironmentRequestDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreRuntimeEnvironmentRequest`.""" + + lifecycle_configuration: LifecycleConfiguration | LifecycleConfigurationDict | None + """ + The lifecycle configuration for the harness's runtime environment. For + a harness, `idleRuntimeSessionTimeout` and `maxLifetime` each accept a + value between 60 and 28800 seconds (8 hours), and + `idleRuntimeSessionTimeout` must be less than or equal to `maxLifetime`. + Values above 28800 seconds are rejected with a `ValidationException`. + """ + network_configuration: NetworkConfiguration | NetworkConfigurationDict | None + """SecurityConfig for the Agent.""" + filesystem_configurations: ( + Sequence[FilesystemConfiguration | FilesystemConfigurationDict] | None + ) + """The filesystem configurations for the runtime environment.""" + class HarnessBedrockApiFormat(UnknownEnumMixin, StrEnum): CONVERSE_STREAM = "converse_stream" """Use the Bedrock Converse Stream API format.""" @@ -3745,6 +4986,28 @@ class HarnessBedrockModelConfig(_SerdeShape): unchanged. """ +class HarnessBedrockModelConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessBedrockModelConfig`.""" + + model_id: Required[str] + """The Bedrock model ID.""" + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response per + model call. + """ + temperature: float | None + """The temperature to set when calling the model.""" + top_p: float | None + """The topP set when calling the model.""" + api_format: str | None + """The API format to use when calling the Bedrock provider.""" + additional_params: Document | None + """ + Provider-specific parameters passed through to the model provider + unchanged. + """ + @dataclass(kw_only=True) class HarnessBeforeInvocationHook(_SerdeShape): """The configuration for a hook that runs before an invocation begins.""" @@ -3754,6 +5017,14 @@ class HarnessBeforeInvocationHook(_SerdeShape): target: HarnessHookTarget """The target that receives the hook event.""" +class HarnessBeforeInvocationHookDict(TypedDict, total=False): + """Dictionary form of `HarnessBeforeInvocationHook`.""" + + name: Required[str] + """The name of the hook.""" + target: Required[HarnessHookTarget | HarnessHookTargetDict] + """The target that receives the hook event.""" + @dataclass(kw_only=True) class HarnessBeforeToolCallHook(_SerdeShape): """The configuration for a hook that runs before the agent calls a tool.""" @@ -3763,10 +5034,21 @@ class HarnessBeforeToolCallHook(_SerdeShape): target: HarnessHookTarget """The target that receives the hook event.""" +class HarnessBeforeToolCallHookDict(TypedDict, total=False): + """Dictionary form of `HarnessBeforeToolCallHook`.""" + + name: Required[str] + """The name of the hook.""" + target: Required[HarnessHookTarget | HarnessHookTargetDict] + """The target that receives the hook event.""" + @dataclass(kw_only=True) class HarnessDisabledMemoryConfiguration(_SerdeShape): """Explicitly opt out of memory.""" +class HarnessDisabledMemoryConfigurationDict(TypedDict, total=False): + """Dictionary form of `HarnessDisabledMemoryConfiguration`.""" + @dataclass(kw_only=True) class HarnessEndpoint(_SerdeShape): """ @@ -3841,6 +5123,18 @@ class _HarnessEnvironmentArtifactDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessEnvironmentArtifact: ... +class HarnessEnvironmentArtifactContainerConfigurationDict(TypedDict): + container_configuration: ContainerConfiguration | ContainerConfigurationDict + """Representation of a container configuration.""" + +HarnessEnvironmentArtifactDict = Union[ + HarnessEnvironmentArtifactContainerConfigurationDict +] +""" +Dictionary form of `HarnessEnvironmentArtifact`, setting exactly one +variant. +""" + @dataclass class HarnessEnvironmentProviderAgentCoreRuntimeEnvironment(_SerdeShape): """The AgentCore Runtime environment configuration.""" @@ -3895,6 +5189,21 @@ class _HarnessEnvironmentProviderRequestDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessEnvironmentProviderRequest: ... +class HarnessEnvironmentProviderRequestAgentCoreRuntimeEnvironmentDict(TypedDict): + agent_core_runtime_environment: ( + HarnessAgentCoreRuntimeEnvironmentRequest + | HarnessAgentCoreRuntimeEnvironmentRequestDict + ) + """The AgentCore Runtime environment configuration.""" + +HarnessEnvironmentProviderRequestDict = Union[ + HarnessEnvironmentProviderRequestAgentCoreRuntimeEnvironmentDict +] +""" +Dictionary form of `HarnessEnvironmentProviderRequest`, setting +exactly one variant. +""" + @dataclass class HarnessGatewayOutboundAuthAwsIam(_SerdeShape): """SigV4-sign requests using the agent's execution role.""" @@ -3942,6 +5251,34 @@ class _HarnessGatewayOutboundAuthDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessGatewayOutboundAuth: ... +class HarnessGatewayOutboundAuthAwsIamDict(TypedDict): + aws_iam: Unit | UnitDict + """SigV4-sign requests using the agent's execution role.""" + +class HarnessGatewayOutboundAuthNoneDict(TypedDict): + none: Unit | UnitDict + """No authentication.""" + +class HarnessGatewayOutboundAuthOauthDict(TypedDict): + oauth: OAuthCredentialProvider | OAuthCredentialProviderDict + """ + Use OAuth credentials for outbound authentication to the gateway. + + The `AUTHORIZATION_CODE` grant type is not supported for outbound + authentication from a harness to an AgentCore Gateway, even when + `defaultReturnUrl` is specified. + """ + +HarnessGatewayOutboundAuthDict = Union[ + HarnessGatewayOutboundAuthAwsIamDict + | HarnessGatewayOutboundAuthNoneDict + | HarnessGatewayOutboundAuthOauthDict +] +""" +Dictionary form of `HarnessGatewayOutboundAuth`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class HarnessGeminiModelConfig(_SerdeShape): """ @@ -3970,6 +5307,30 @@ class HarnessGeminiModelConfig(_SerdeShape): unchanged. """ +class HarnessGeminiModelConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessGeminiModelConfig`.""" + + model_id: Required[str] + """The Gemini model ID.""" + api_key_arn: Required[str] + """The ARN of your Gemini API key on AgentCore Identity.""" + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response per + model call. + """ + temperature: float | None + """The temperature to set when calling the model.""" + top_p: float | None + """The topP set when calling the model.""" + top_k: int | None + """The topK set when calling the model.""" + additional_params: Document | None + """ + Provider-specific parameters passed through to the Gemini model provider + unchanged. + """ + @dataclass class HarnessHookBeforeInvocation(_SerdeShape): """A hook that runs before an invocation begins.""" @@ -4016,6 +5377,30 @@ HarnessHook = Union[ class _HarnessHookDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> HarnessHook: ... +class HarnessHookBeforeInvocationDict(TypedDict): + before_invocation: HarnessBeforeInvocationHook | HarnessBeforeInvocationHookDict + """A hook that runs before an invocation begins.""" + +class HarnessHookAfterInvocationDict(TypedDict): + after_invocation: HarnessAfterInvocationHook | HarnessAfterInvocationHookDict + """A hook that runs after an invocation completes.""" + +class HarnessHookBeforeToolCallDict(TypedDict): + before_tool_call: HarnessBeforeToolCallHook | HarnessBeforeToolCallHookDict + """A hook that runs before the agent calls a tool.""" + +class HarnessHookAfterToolCallDict(TypedDict): + after_tool_call: HarnessAfterToolCallHook | HarnessAfterToolCallHookDict + """A hook that runs after a tool call completes.""" + +HarnessHookDict = Union[ + HarnessHookBeforeInvocationDict + | HarnessHookAfterInvocationDict + | HarnessHookBeforeToolCallDict + | HarnessHookAfterToolCallDict +] +"""Dictionary form of `HarnessHook`, setting exactly one variant.""" + @dataclass(kw_only=True) class HarnessHookEventBridgeTarget(_SerdeShape): """The configuration for an Amazon EventBridge hook target.""" @@ -4023,6 +5408,12 @@ class HarnessHookEventBridgeTarget(_SerdeShape): arn: str """The ARN of the Amazon EventBridge event bus to send hook events to.""" +class HarnessHookEventBridgeTargetDict(TypedDict, total=False): + """Dictionary form of `HarnessHookEventBridgeTarget`.""" + + arn: Required[str] + """The ARN of the Amazon EventBridge event bus to send hook events to.""" + class HarnessHookFailureMode(UnknownEnumMixin, StrEnum): """The behavior when a synchronous hook target fails.""" @@ -4051,6 +5442,22 @@ class HarnessHookLambdaTarget(_SerdeShape): returns an invalid response. The default is `DENY`. """ +class HarnessHookLambdaTargetDict(TypedDict, total=False): + """Dictionary form of `HarnessHookLambdaTarget`.""" + + arn: Required[str] + """The ARN of the Lambda function to invoke.""" + timeout_seconds: int | None + """ + The maximum number of seconds to wait for the Lambda function response. + The default is 60 seconds. + """ + failure_mode: str | None + """ + The behavior when the Lambda function times out, returns an error, or + returns an invalid response. The default is `DENY`. + """ + @dataclass(kw_only=True) class HarnessHookSnsTarget(_SerdeShape): """The configuration for an Amazon SNS hook target.""" @@ -4058,6 +5465,12 @@ class HarnessHookSnsTarget(_SerdeShape): arn: str """The ARN of the Amazon SNS topic to publish hook events to.""" +class HarnessHookSnsTargetDict(TypedDict, total=False): + """Dictionary form of `HarnessHookSnsTarget`.""" + + arn: Required[str] + """The ARN of the Amazon SNS topic to publish hook events to.""" + @dataclass class HarnessHookTargetLambda(_SerdeShape): """ @@ -4106,6 +5519,34 @@ HarnessHookTarget = Union[ class _HarnessHookTargetDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> HarnessHookTarget: ... +class HarnessHookTargetLambdaDict(TypedDict): + lambda_: HarnessHookLambdaTarget | HarnessHookLambdaTargetDict + """ + A Lambda hook target that invokes an Amazon Web Services Lambda function + synchronously and waits for its response. + """ + +class HarnessHookTargetSnsDict(TypedDict): + sns: HarnessHookSnsTarget | HarnessHookSnsTargetDict + """ + An Amazon SNS hook target that publishes the hook event without waiting + for a response. + """ + +class HarnessHookTargetEventBridgeDict(TypedDict): + event_bridge: HarnessHookEventBridgeTarget | HarnessHookEventBridgeTargetDict + """ + An Amazon EventBridge hook target that sends the hook event without + waiting for a response. + """ + +HarnessHookTargetDict = Union[ + HarnessHookTargetLambdaDict + | HarnessHookTargetSnsDict + | HarnessHookTargetEventBridgeDict +] +"""Dictionary form of `HarnessHookTarget`, setting exactly one variant.""" + @dataclass(kw_only=True) class HarnessInlineFunctionConfig(_SerdeShape): """ @@ -4118,6 +5559,14 @@ class HarnessInlineFunctionConfig(_SerdeShape): input_schema: Document """JSON Schema describing the tool's input parameters.""" +class HarnessInlineFunctionConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessInlineFunctionConfig`.""" + + description: Required[str] + """Description of what the tool does, provided to the model.""" + input_schema: Required[Document] + """JSON Schema describing the tool's input parameters.""" + @dataclass(kw_only=True) class HarnessLiteLlmModelConfig(_SerdeShape): """ @@ -4149,6 +5598,33 @@ class HarnessLiteLlmModelConfig(_SerdeShape): unchanged. """ +class HarnessLiteLlmModelConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessLiteLlmModelConfig`.""" + + model_id: Required[str] + """The LiteLLM model identifier (e.g., \"anthropic/claude-3-sonnet\").""" + api_key_arn: str | None + """ + The ARN of the API key in AgentCore Identity for authenticating with the + model provider. + """ + api_base: str | None + """The base URL for the model provider's API endpoint.""" + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response per + iteration. + """ + temperature: float | None + """The temperature to set when calling the model.""" + top_p: float | None + """The topP set when calling the model.""" + additional_params: Document | None + """ + Provider-specific parameters passed through to the model provider + unchanged. + """ + @dataclass(kw_only=True) class HarnessManagedMemoryConfiguration(_SerdeShape): """Configuration for managed memory creation.""" @@ -4168,6 +5644,24 @@ class HarnessManagedMemoryConfiguration(_SerdeShape): updatable after creation. """ +class HarnessManagedMemoryConfigurationDict(TypedDict, total=False): + """Dictionary form of `HarnessManagedMemoryConfiguration`.""" + + arn: str | None + """ + The ARN of the managed AgentCore Memory resource. Read-only on Get, + ignored on Create/Update input. + """ + strategies: Sequence[str] | None + """Strategy types to enable. Defaults to [SEMANTIC, SUMMARIZATION].""" + event_expiry_duration: int | None + """Event retention in days. Defaults to 30.""" + encryption_key_arn: str | None + """ + Customer-managed KMS key. Defaults to Amazon Web Services-owned key. Not + updatable after creation. + """ + class HarnessManagedMemoryStrategyType(UnknownEnumMixin, StrEnum): SEMANTIC = "SEMANTIC" SUMMARIZATION = "SUMMARIZATION" @@ -4218,6 +5712,37 @@ class _HarnessMemoryConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessMemoryConfiguration: ... +class HarnessMemoryConfigurationAgentCoreMemoryConfigurationDict(TypedDict): + agent_core_memory_configuration: ( + HarnessAgentCoreMemoryConfiguration | HarnessAgentCoreMemoryConfigurationDict + ) + """The AgentCore Memory configuration.""" + +class HarnessMemoryConfigurationManagedMemoryConfigurationDict(TypedDict): + managed_memory_configuration: ( + HarnessManagedMemoryConfiguration | HarnessManagedMemoryConfigurationDict + ) + """ + Harness creates and manages a memory resource in the customer's + account. + """ + +class HarnessMemoryConfigurationDisabledDict(TypedDict): + disabled: ( + HarnessDisabledMemoryConfiguration | HarnessDisabledMemoryConfigurationDict + ) + """Explicitly opt out of memory.""" + +HarnessMemoryConfigurationDict = Union[ + HarnessMemoryConfigurationAgentCoreMemoryConfigurationDict + | HarnessMemoryConfigurationManagedMemoryConfigurationDict + | HarnessMemoryConfigurationDisabledDict +] +""" +Dictionary form of `HarnessMemoryConfiguration`, setting exactly one +variant. +""" + @dataclass class HarnessModelConfigurationBedrockModelConfig(_SerdeShape): """Configuration for an Amazon Bedrock model.""" @@ -4269,6 +5794,36 @@ class _HarnessModelConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessModelConfiguration: ... +class HarnessModelConfigurationBedrockModelConfigDict(TypedDict): + bedrock_model_config: HarnessBedrockModelConfig | HarnessBedrockModelConfigDict + """Configuration for an Amazon Bedrock model.""" + +class HarnessModelConfigurationOpenAiModelConfigDict(TypedDict): + open_ai_model_config: HarnessOpenAiModelConfig | HarnessOpenAiModelConfigDict + """Configuration for an OpenAI model.""" + +class HarnessModelConfigurationGeminiModelConfigDict(TypedDict): + gemini_model_config: HarnessGeminiModelConfig | HarnessGeminiModelConfigDict + """Configuration for a Google Gemini model.""" + +class HarnessModelConfigurationLiteLlmModelConfigDict(TypedDict): + lite_llm_model_config: HarnessLiteLlmModelConfig | HarnessLiteLlmModelConfigDict + """ + The LiteLLM model configuration for connecting to third-party model + providers. + """ + +HarnessModelConfigurationDict = Union[ + HarnessModelConfigurationBedrockModelConfigDict + | HarnessModelConfigurationOpenAiModelConfigDict + | HarnessModelConfigurationGeminiModelConfigDict + | HarnessModelConfigurationLiteLlmModelConfigDict +] +""" +Dictionary form of `HarnessModelConfiguration`, setting exactly one +variant. +""" + class HarnessOpenAiApiFormat(UnknownEnumMixin, StrEnum): CHAT_COMPLETIONS = "chat_completions" """Use the Chat Completions API format.""" @@ -4305,6 +5860,32 @@ class HarnessOpenAiModelConfig(_SerdeShape): unchanged. """ +class HarnessOpenAiModelConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessOpenAiModelConfig`.""" + + model_id: Required[str] + """The OpenAI model ID.""" + api_key_arn: Required[str] + """The ARN of your OpenAI API key on AgentCore Identity.""" + api_base: str | None + """Optional custom endpoint URL for an OpenAI-compatible endpoint.""" + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response per + model call. + """ + temperature: float | None + """The temperature to set when calling the model.""" + top_p: float | None + """The topP set when calling the model.""" + api_format: str | None + """The API format to use when calling the OpenAI provider.""" + additional_params: Document | None + """ + Provider-specific parameters passed through to the model provider + unchanged. + """ + @dataclass(kw_only=True) class HarnessRemoteMcpConfig(_SerdeShape): """Configuration for connecting to a remote MCP server.""" @@ -4313,7 +5894,22 @@ class HarnessRemoteMcpConfig(_SerdeShape): """URL of the MCP endpoint.""" headers: dict[str, str] | None = ... """Custom headers to include when connecting to the remote MCP server.""" - outbound_auth: HarnessRemoteMcpOutboundAuth | None = ... + outbound_auth: HarnessRemoteMcpOutboundAuth | None = ... + """ + How the harness authenticates to this MCP server. Defaults to no + authentication. + """ + +class HarnessRemoteMcpConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessRemoteMcpConfig`.""" + + url: Required[str] + """URL of the MCP endpoint.""" + headers: Mapping[str, str] | None + """Custom headers to include when connecting to the remote MCP server.""" + outbound_auth: ( + HarnessRemoteMcpOutboundAuth | HarnessRemoteMcpOutboundAuthDict | None + ) """ How the harness authenticates to this MCP server. Defaults to no authentication. @@ -4357,6 +5953,26 @@ class _HarnessRemoteMcpOutboundAuthDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessRemoteMcpOutboundAuth: ... +class HarnessRemoteMcpOutboundAuthAwsIamDict(TypedDict): + aws_iam: IamCredentialProvider | IamCredentialProviderDict + """ + Sign requests to the remote MCP server with Signature Version 4 (SigV4) + using the harness execution role. If you don't specify a Region, the + harness Region is used. + """ + +class HarnessRemoteMcpOutboundAuthNoneDict(TypedDict): + none: Unit | UnitDict + """No authentication.""" + +HarnessRemoteMcpOutboundAuthDict = Union[ + HarnessRemoteMcpOutboundAuthAwsIamDict | HarnessRemoteMcpOutboundAuthNoneDict +] +""" +Dictionary form of `HarnessRemoteMcpOutboundAuth`, setting exactly one +variant. +""" + @dataclass class HarnessSkillPath(_SerdeShape): """The filesystem path to the skill definition.""" @@ -4403,6 +6019,30 @@ HarnessSkill = Union[ class _HarnessSkillDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> HarnessSkill: ... +class HarnessSkillPathDict(TypedDict): + path: str + """The filesystem path to the skill definition.""" + +class HarnessSkillS3Dict(TypedDict): + s3: HarnessSkillS3Source | HarnessSkillS3SourceDict + """An S3 source containing the skill.""" + +class HarnessSkillGitDict(TypedDict): + git: HarnessSkillGitSource | HarnessSkillGitSourceDict + """A git repository containing the skill.""" + +class HarnessSkillAwsSkillsDict(TypedDict): + aws_skills: HarnessSkillAwsSkillsSource | HarnessSkillAwsSkillsSourceDict + """Amazon Web Services Skills baked into the harness's underlying Runtime.""" + +HarnessSkillDict = Union[ + HarnessSkillPathDict + | HarnessSkillS3Dict + | HarnessSkillGitDict + | HarnessSkillAwsSkillsDict +] +"""Dictionary form of `HarnessSkill`, setting exactly one variant.""" + @dataclass(kw_only=True) class HarnessSkillAwsSkillsSource(_SerdeShape): """Passed to show that Amazon Web Services Skills should be included.""" @@ -4413,6 +6053,15 @@ class HarnessSkillAwsSkillsSource(_SerdeShape): ['core-skills/*']. """ +class HarnessSkillAwsSkillsSourceDict(TypedDict, total=False): + """Dictionary form of `HarnessSkillAwsSkillsSource`.""" + + paths: Sequence[str] | None + """ + Optionally filter allowed skills with glob syntax, e.g., + ['core-skills/*']. + """ + @dataclass(kw_only=True) class HarnessSkillGitAuth(_SerdeShape): """Authentication configuration for accessing a private git repository.""" @@ -4425,6 +6074,17 @@ class HarnessSkillGitAuth(_SerdeShape): username: str | None = ... """Username for authentication. Defaults to 'oauth2' if not specified.""" +class HarnessSkillGitAuthDict(TypedDict, total=False): + """Dictionary form of `HarnessSkillGitAuth`.""" + + credential_arn: Required[str] + """ + The ARN of the credential in AgentCore Identity containing the password + or personal access token. + """ + username: str | None + """Username for authentication. Defaults to 'oauth2' if not specified.""" + @dataclass(kw_only=True) class HarnessSkillGitSource(_SerdeShape): """A git repository source for a skill.""" @@ -4436,6 +6096,16 @@ class HarnessSkillGitSource(_SerdeShape): auth: HarnessSkillGitAuth | None = ... """Authentication configuration for private repositories.""" +class HarnessSkillGitSourceDict(TypedDict, total=False): + """Dictionary form of `HarnessSkillGitSource`.""" + + url: Required[str] + """The HTTPS URL of the git repository.""" + path: str | None + """Subdirectory within the repository containing the skill.""" + auth: HarnessSkillGitAuth | HarnessSkillGitAuthDict | None + """Authentication configuration for private repositories.""" + @dataclass(kw_only=True) class HarnessSkillS3Source(_SerdeShape): """An S3 source for a skill.""" @@ -4446,6 +6116,15 @@ class HarnessSkillS3Source(_SerdeShape): s3://bucket/skills/my-skill/). """ +class HarnessSkillS3SourceDict(TypedDict, total=False): + """Dictionary form of `HarnessSkillS3Source`.""" + + uri: Required[str] + """ + The S3 URI pointing to the skill directory (e.g., + s3://bucket/skills/my-skill/). + """ + @dataclass(kw_only=True) class HarnessSlidingWindowConfiguration(_SerdeShape): """Configuration for sliding window truncation strategy.""" @@ -4453,6 +6132,12 @@ class HarnessSlidingWindowConfiguration(_SerdeShape): messages_count: int | None = ... """The number of recent messages to retain in the context window.""" +class HarnessSlidingWindowConfigurationDict(TypedDict, total=False): + """Dictionary form of `HarnessSlidingWindowConfiguration`.""" + + messages_count: int | None + """The number of recent messages to retain in the context window.""" + class HarnessStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" CREATE_FAILED = "CREATE_FAILED" @@ -4473,6 +6158,16 @@ class HarnessSummarizationConfiguration(_SerdeShape): summarization_system_prompt: str | None = ... """The system prompt used for generating summaries.""" +class HarnessSummarizationConfigurationDict(TypedDict, total=False): + """Dictionary form of `HarnessSummarizationConfiguration`.""" + + summary_ratio: float | None + """The ratio of content to summarize.""" + preserve_recent_messages: int | None + """The number of recent messages to preserve without summarization.""" + summarization_system_prompt: str | None + """The system prompt used for generating summaries.""" + @dataclass(kw_only=True) class HarnessSummary(_SerdeShape): """Summary information about a harness.""" @@ -4518,6 +6213,16 @@ class _HarnessSystemContentBlockDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessSystemContentBlock: ... +class HarnessSystemContentBlockTextDict(TypedDict): + text: str + """The text content of the system prompt block.""" + +HarnessSystemContentBlockDict = Union[HarnessSystemContentBlockTextDict] +""" +Dictionary form of `HarnessSystemContentBlock`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class HarnessTool(_SerdeShape): """A tool available to the agent loop.""" @@ -4532,6 +6237,19 @@ class HarnessTool(_SerdeShape): config: HarnessToolConfiguration | None = ... """Tool-specific configuration.""" +class HarnessToolDict(TypedDict, total=False): + """Dictionary form of `HarnessTool`.""" + + type: Required[str] + """The type of tool.""" + name: str | None + """ + Unique name for the tool. If not provided, a name will be inferred or + generated. + """ + config: HarnessToolConfiguration | HarnessToolConfigurationDict | None + """Tool-specific configuration.""" + @dataclass class HarnessToolConfigurationRemoteMcp(_SerdeShape): """Configuration for remote MCP server.""" @@ -4587,6 +6305,45 @@ class _HarnessToolConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessToolConfiguration: ... +class HarnessToolConfigurationRemoteMcpDict(TypedDict): + remote_mcp: HarnessRemoteMcpConfig | HarnessRemoteMcpConfigDict + """Configuration for remote MCP server.""" + +class HarnessToolConfigurationAgentCoreBrowserDict(TypedDict): + agent_core_browser: ( + HarnessAgentCoreBrowserConfig | HarnessAgentCoreBrowserConfigDict + ) + """Configuration for AgentCore Browser.""" + +class HarnessToolConfigurationAgentCoreGatewayDict(TypedDict): + agent_core_gateway: ( + HarnessAgentCoreGatewayConfig | HarnessAgentCoreGatewayConfigDict + ) + """Configuration for AgentCore Gateway.""" + +class HarnessToolConfigurationInlineFunctionDict(TypedDict): + inline_function: HarnessInlineFunctionConfig | HarnessInlineFunctionConfigDict + """Configuration for an inline function tool.""" + +class HarnessToolConfigurationAgentCoreCodeInterpreterDict(TypedDict): + agent_core_code_interpreter: ( + HarnessAgentCoreCodeInterpreterConfig + | HarnessAgentCoreCodeInterpreterConfigDict + ) + """Configuration for AgentCore Code Interpreter.""" + +HarnessToolConfigurationDict = Union[ + HarnessToolConfigurationRemoteMcpDict + | HarnessToolConfigurationAgentCoreBrowserDict + | HarnessToolConfigurationAgentCoreGatewayDict + | HarnessToolConfigurationInlineFunctionDict + | HarnessToolConfigurationAgentCoreCodeInterpreterDict +] +""" +Dictionary form of `HarnessToolConfiguration`, setting exactly one +variant. +""" + class HarnessToolType(UnknownEnumMixin, StrEnum): REMOTE_MCP = "remote_mcp" AGENTCORE_BROWSER = "agentcore_browser" @@ -4606,6 +6363,18 @@ class HarnessTruncationConfiguration(_SerdeShape): config: HarnessTruncationStrategyConfiguration | None = ... """The strategy-specific configuration.""" +class HarnessTruncationConfigurationDict(TypedDict, total=False): + """Dictionary form of `HarnessTruncationConfiguration`.""" + + strategy: Required[str] + """The truncation strategy to use.""" + config: ( + HarnessTruncationStrategyConfiguration + | HarnessTruncationStrategyConfigurationDict + | None + ) + """The strategy-specific configuration.""" + class HarnessTruncationStrategy(UnknownEnumMixin, StrEnum): SLIDING_WINDOW = "sliding_window" SUMMARIZATION = "summarization" @@ -4645,6 +6414,27 @@ class _HarnessTruncationStrategyConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessTruncationStrategyConfiguration: ... +class HarnessTruncationStrategyConfigurationSlidingWindowDict(TypedDict): + sliding_window: ( + HarnessSlidingWindowConfiguration | HarnessSlidingWindowConfigurationDict + ) + """Configuration for sliding window truncation.""" + +class HarnessTruncationStrategyConfigurationSummarizationDict(TypedDict): + summarization: ( + HarnessSummarizationConfiguration | HarnessSummarizationConfigurationDict + ) + """Configuration for summarization-based truncation.""" + +HarnessTruncationStrategyConfigurationDict = Union[ + HarnessTruncationStrategyConfigurationSlidingWindowDict + | HarnessTruncationStrategyConfigurationSummarizationDict +] +""" +Dictionary form of `HarnessTruncationStrategyConfiguration`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class HarnessVersionSummary(_SerdeShape): """Summary information about a single version of a harness.""" @@ -4679,6 +6469,12 @@ class HostingEnvironment(_SerdeShape): arn: str """The Amazon Resource Name (ARN) of the hosting environment.""" +class HostingEnvironmentDict(TypedDict, total=False): + """Dictionary form of `HostingEnvironment`.""" + + arn: Required[str] + """The Amazon Resource Name (ARN) of the hosting environment.""" + @dataclass(kw_only=True) class HttpApiSchemaConfiguration(_SerdeShape): """ @@ -4689,6 +6485,12 @@ class HttpApiSchemaConfiguration(_SerdeShape): source: ApiSchemaConfiguration """Configuration for API schema.""" +class HttpApiSchemaConfigurationDict(TypedDict, total=False): + """Dictionary form of `HttpApiSchemaConfiguration`.""" + + source: Required[ApiSchemaConfiguration | ApiSchemaConfigurationDict] + """Configuration for API schema.""" + @dataclass(kw_only=True) class HttpConnectorSource(_SerdeShape): """The source identifying the HTTP connector integration.""" @@ -4696,6 +6498,12 @@ class HttpConnectorSource(_SerdeShape): connector_id: str """The identifier for the HTTP connector integration.""" +class HttpConnectorSourceDict(TypedDict, total=False): + """Dictionary form of `HttpConnectorSource`.""" + + connector_id: Required[str] + """The identifier for the HTTP connector integration.""" + @dataclass(kw_only=True) class HttpConnectorTargetConfiguration(_SerdeShape): """ @@ -4712,6 +6520,18 @@ class HttpConnectorTargetConfiguration(_SerdeShape): runtime. """ +class HttpConnectorTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `HttpConnectorTargetConfiguration`.""" + + source: Required[HttpConnectorSource | HttpConnectorSourceDict] + """The source configuration identifying which HTTP connector to use.""" + parameters: Mapping[str, str] | None + """ + The resource parameters for this connector (for example, `memoryId`). + The service validates these parameters against the request path at + runtime. + """ + @dataclass(kw_only=True) class HttpPostLifecycleHookAction(_SerdeShape): """ @@ -4734,6 +6554,22 @@ class HttpPostLifecycleHookAction(_SerdeShape): set, otherwise the protocol's default port. """ +class HttpPostLifecycleHookActionDict(TypedDict, total=False): + """Dictionary form of `HttpPostLifecycleHookAction`.""" + + path: Required[str] + """ + The path in the agent's container that AgentCore Runtime sends the + `POST` request to. + """ + port: int | None + """ + The port in the agent's container that AgentCore Runtime sends the + `POST` request to. If you don't specify a port, the default is the + runtime's server port: the port in the protocol configuration if one is + set, otherwise the protocol's default port. + """ + @dataclass class HttpTargetConfigurationAgentcoreRuntime(_SerdeShape): """ @@ -4788,6 +6624,38 @@ class _HttpTargetConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> HttpTargetConfiguration: ... +class HttpTargetConfigurationAgentcoreRuntimeDict(TypedDict): + agentcore_runtime: RuntimeTargetConfiguration | RuntimeTargetConfigurationDict + """ + The AgentCore Runtime target configuration for HTTP-based communication + with an agent runtime. + """ + +class HttpTargetConfigurationPassthroughDict(TypedDict): + passthrough: PassthroughTargetConfiguration | PassthroughTargetConfigurationDict + """ + The passthrough configuration for the HTTP target. A passthrough target + forwards requests directly to an external HTTP endpoint. + """ + +class HttpTargetConfigurationConnectorDict(TypedDict): + connector: HttpConnectorTargetConfiguration | HttpConnectorTargetConfigurationDict + """ + The connector-based configuration for the HTTP target. Use this + configuration when you want to route HTTP requests through a managed + connector. + """ + +HttpTargetConfigurationDict = Union[ + HttpTargetConfigurationAgentcoreRuntimeDict + | HttpTargetConfigurationPassthroughDict + | HttpTargetConfigurationConnectorDict +] +""" +Dictionary form of `HttpTargetConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class IamCredentialProvider(_SerdeShape): """ @@ -4808,6 +6676,21 @@ class IamCredentialProvider(_SerdeShape): defaults to the gateway's Region. """ +class IamCredentialProviderDict(TypedDict, total=False): + """Dictionary form of `IamCredentialProvider`.""" + + service: Required[str] + """ + The target Amazon Web Services service name used for SigV4 signing. This + value identifies the service that the gateway authenticates with when + making requests to the target endpoint. + """ + region: str | None + """ + The Amazon Web Services Region used for SigV4 signing. If not specified, + defaults to the gateway's Region. + """ + @dataclass(kw_only=True) class IamPrincipal(_SerdeShape): """An IAM principal specification for rule matching.""" @@ -4824,6 +6707,21 @@ class IamPrincipal(_SerdeShape): supports wildcard patterns using `*` and `?`. """ +class IamPrincipalDict(TypedDict, total=False): + """Dictionary form of `IamPrincipal`.""" + + arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM principal. Supports user, + role, and assumed-role ARNs. Wildcards can be used with the `StringLike` + operator. + """ + operator: str | None + """ + The match operator. `StringEquals` requires an exact match. `StringLike` + supports wildcard patterns using `*` and `?`. + """ + class InboundTokenClaimValueType(UnknownEnumMixin, StrEnum): STRING = "STRING" STRING_ARRAY = "STRING_ARRAY" @@ -4882,6 +6780,51 @@ class IncludedOauth2ProviderConfigInput(_SerdeShape): is where authorization codes are exchanged for access tokens. """ +class IncludedOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `IncludedOauth2ProviderConfigInput`.""" + + client_id: Required[str] + """ + The client ID for the supported OAuth2 provider. This identifier is + assigned by the OAuth2 provider when you register your application. + """ + client_secret: str | None + """ + The client secret for the supported OAuth2 provider. This secret is + assigned by the OAuth2 provider and used along with the client ID to + authenticate your application. + """ + client_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None + """ + The source type of the client secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + issuer: str | None + """ + Token issuer of your isolated OAuth2 application tenant. This URL + identifies the authorization server that issues tokens for this + provider. + """ + authorization_endpoint: str | None + """ + OAuth2 authorization endpoint for your isolated OAuth2 application + tenant. This is where users are redirected to authenticate and authorize + access to their resources. + """ + token_endpoint: str | None + """ + OAuth2 token endpoint for your isolated OAuth2 application tenant. This + is where authorization codes are exchanged for access tokens. + """ + @dataclass(kw_only=True) class IncludedOauth2ProviderConfigOutput(_SerdeShape): """ @@ -4903,6 +6846,14 @@ class IndexedKey(_SerdeShape): type: str """The data type of the indexed key.""" +class IndexedKeyDict(TypedDict, total=False): + """Dictionary form of `IndexedKey`.""" + + key: Required[str] + """The metadata key name to index.""" + type: Required[str] + """The data type of the indexed key.""" + @dataclass(kw_only=True) class InferenceConfiguration(_SerdeShape): """ @@ -4931,6 +6882,30 @@ class InferenceConfiguration(_SerdeShape): tokens when encountered. """ +class InferenceConfigurationDict(TypedDict, total=False): + """Dictionary form of `InferenceConfiguration`.""" + + max_tokens: int | None + """ + The maximum number of tokens to generate in the model response during + evaluation. + """ + temperature: float | None + """ + The temperature value that controls randomness in the model's + responses. Lower values produce more deterministic outputs. + """ + top_p: float | None + """ + The top-p sampling parameter that controls the diversity of the model's + responses by limiting the cumulative probability of token choices. + """ + stop_sequences: Sequence[str] | None + """ + The list of sequences that will cause the model to stop generating + tokens when encountered. + """ + @dataclass(kw_only=True) class InferenceConnectorSource(_SerdeShape): """The source identifying the inference connector.""" @@ -4941,6 +6916,15 @@ class InferenceConnectorSource(_SerdeShape): `bedrock-mantle`, `openai`, or `anthropic`). """ +class InferenceConnectorSourceDict(TypedDict, total=False): + """Dictionary form of `InferenceConnectorSource`.""" + + connector_id: Required[str] + """ + The identifier for the inference connector (for example, + `bedrock-mantle`, `openai`, or `anthropic`). + """ + @dataclass(kw_only=True) class InferenceConnectorTargetConfiguration(_SerdeShape): """ @@ -4952,6 +6936,12 @@ class InferenceConnectorTargetConfiguration(_SerdeShape): source: InferenceConnectorSource """The source configuration identifying which inference connector to use.""" +class InferenceConnectorTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `InferenceConnectorTargetConfiguration`.""" + + source: Required[InferenceConnectorSource | InferenceConnectorSourceDict] + """The source configuration identifying which inference connector to use.""" + @dataclass(kw_only=True) class InferenceOperationConfiguration(_SerdeShape): """ @@ -4973,6 +6963,23 @@ class InferenceOperationConfiguration(_SerdeShape): models: list[ModelEntry] | None = ... """The list of models supported for this operation.""" +class InferenceOperationConfigurationDict(TypedDict, total=False): + """Dictionary form of `InferenceOperationConfiguration`.""" + + path: Required[str] + """ + The request path for this operation (for example, `/v1/messages` or + `/v1/responses`). + """ + provider_path: str | None + """ + The provider path to forward requests to, if it differs from the request + path. For example, `/anthropic/v1/messages` when the provider expects a + different path than the client-facing `/v1/messages`. + """ + models: Sequence[ModelEntry | ModelEntryDict] | None + """The list of models supported for this operation.""" + @dataclass(kw_only=True) class InferenceProviderTargetConfiguration(_SerdeShape): """ @@ -4982,17 +6989,39 @@ class InferenceProviderTargetConfiguration(_SerdeShape): provider. """ - endpoint: str + endpoint: str + """ + The HTTPS endpoint of the inference provider that the gateway forwards + requests to. + """ + model_mapping: ModelMapping | None = ... + """ + The configuration that translates client-facing model IDs to the model + IDs expected by the provider. + """ + operations: list[InferenceOperationConfiguration] | None = ... + """ + A list of per-operation configurations that map request paths to the + models supported for each operation. + """ + +class InferenceProviderTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `InferenceProviderTargetConfiguration`.""" + + endpoint: Required[str] """ The HTTPS endpoint of the inference provider that the gateway forwards requests to. """ - model_mapping: ModelMapping | None = ... + model_mapping: ModelMapping | ModelMappingDict | None """ The configuration that translates client-facing model IDs to the model IDs expected by the provider. """ - operations: list[InferenceOperationConfiguration] | None = ... + operations: ( + Sequence[InferenceOperationConfiguration | InferenceOperationConfigurationDict] + | None + ) """ A list of per-operation configurations that map request paths to the models supported for each operation. @@ -5044,6 +7073,35 @@ class _InferenceTargetConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> InferenceTargetConfiguration: ... +class InferenceTargetConfigurationConnectorDict(TypedDict): + connector: ( + InferenceConnectorTargetConfiguration + | InferenceConnectorTargetConfigurationDict + ) + """ + The connector-based inference configuration. Use this option to route + requests to an LLM provider through a built-in connector that includes + predefined provider rules. + """ + +class InferenceTargetConfigurationProviderDict(TypedDict): + provider: ( + InferenceProviderTargetConfiguration | InferenceProviderTargetConfigurationDict + ) + """ + The provider-based inference configuration. Use this option to + explicitly configure the endpoint, model mapping, and operations for an + LLM provider. + """ + +InferenceTargetConfigurationDict = Union[ + InferenceTargetConfigurationConnectorDict | InferenceTargetConfigurationProviderDict +] +""" +Dictionary form of `InferenceTargetConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class InlineExamplesSource(_SerdeShape): """Inline examples provided directly in the request body.""" @@ -5051,6 +7109,12 @@ class InlineExamplesSource(_SerdeShape): examples: list[Document] """Examples to add. Each example is assigned an auto-generated UUID.""" +class InlineExamplesSourceDict(TypedDict, total=False): + """Dictionary form of `InlineExamplesSource`.""" + + examples: Required[Sequence[Document]] + """Examples to add. Each example is assigned an auto-generated UUID.""" + @dataclass(kw_only=True) class Insight(_SerdeShape): """ @@ -5063,6 +7127,12 @@ class Insight(_SerdeShape): insight_id: str """The unique identifier of the insight to run.""" +class InsightDict(TypedDict, total=False): + """Dictionary form of `Insight`.""" + + insight_id: Required[str] + """The unique identifier of the insight to run.""" + @dataclass(kw_only=True) class InstanceLifecycleConfiguration(_SerdeShape): """ @@ -5084,6 +7154,23 @@ class InstanceLifecycleConfiguration(_SerdeShape): (14 days). """ +class InstanceLifecycleConfigurationDict(TypedDict, total=False): + """Dictionary form of `InstanceLifecycleConfiguration`.""" + + idle_instance_timeout: int | None + """ + The number of seconds an instance can remain idle before it is stopped. + An instance is considered idle when all of its agents are idle. The + default is 900 seconds (15 minutes). + """ + max_lifetime: int | None + """ + The maximum lifetime of an instance, in seconds. When an instance + reaches this limit, the service terminates it regardless of activity. + The default is 28800 seconds (8 hours). The maximum is 1209600 seconds + (14 days). + """ + @dataclass(kw_only=True) class InstanceRequirements(_SerdeShape): """The requirements for Amazon EC2 instance types in a capacity provider.""" @@ -5094,6 +7181,15 @@ class InstanceRequirements(_SerdeShape): types. """ +class InstanceRequirementsDict(TypedDict, total=False): + """Dictionary form of `InstanceRequirements`.""" + + allowed_instance_types: Required[Sequence[str]] + """ + The list of allowed instance types. You can specify up to 30 instance + types. + """ + @dataclass class InterceptorConfigurationLambda(_SerdeShape): """The details of the lambda function used for the interceptor.""" @@ -5120,6 +7216,16 @@ class _InterceptorConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> InterceptorConfiguration: ... +class InterceptorConfigurationLambdaDict(TypedDict): + lambda_: LambdaInterceptorConfiguration | LambdaInterceptorConfigurationDict + """The details of the lambda function used for the interceptor.""" + +InterceptorConfigurationDict = Union[InterceptorConfigurationLambdaDict] +""" +Dictionary form of `InterceptorConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class InterceptorInputConfiguration(_SerdeShape): """The input configuration of the interceptor.""" @@ -5135,6 +7241,20 @@ class InterceptorInputConfiguration(_SerdeShape): payload are passed as input to the interceptor. """ +class InterceptorInputConfigurationDict(TypedDict, total=False): + """Dictionary form of `InterceptorInputConfiguration`.""" + + pass_request_headers: Required[bool] + """ + Indicates whether to pass request headers as input into the interceptor. + When set to true, request headers will be passed. + """ + payload_filter: InterceptorPayloadFilter | InterceptorPayloadFilterDict | None + """ + The filter that determines which parts of the request or response + payload are passed as input to the interceptor. + """ + class InterceptorPayloadExclusion(UnknownEnumMixin, StrEnum): RESPONSE_BODY = "RESPONSE_BODY" @@ -5168,6 +7288,18 @@ class _InterceptorPayloadExclusionSelectorDeserializer: self, deserializer: ShapeDeserializer ) -> InterceptorPayloadExclusionSelector: ... +class InterceptorPayloadExclusionSelectorFieldDict(TypedDict): + field: str + """The field to exclude from the interceptor input.""" + +InterceptorPayloadExclusionSelectorDict = Union[ + InterceptorPayloadExclusionSelectorFieldDict +] +""" +Dictionary form of `InterceptorPayloadExclusionSelector`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class InterceptorPayloadFilter(_SerdeShape): """ @@ -5181,6 +7313,20 @@ class InterceptorPayloadFilter(_SerdeShape): interceptor input. """ +class InterceptorPayloadFilterDict(TypedDict, total=False): + """Dictionary form of `InterceptorPayloadFilter`.""" + + exclude: Required[ + Sequence[ + InterceptorPayloadExclusionSelector + | InterceptorPayloadExclusionSelectorDict + ] + ] + """ + The list of selectors that identify payload fields to exclude from the + interceptor input. + """ + @dataclass(kw_only=True) class InternalServerException(ServiceError, _SerdeShape): """ @@ -5220,6 +7366,14 @@ class InvocationConfigurationInput(_SerdeShape): payload_delivery_bucket_name: str """The S3 bucket name for event payload delivery.""" +class InvocationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `InvocationConfigurationInput`.""" + + topic_arn: Required[str] + """The ARN of the SNS topic for job notifications.""" + payload_delivery_bucket_name: Required[str] + """The S3 bucket name for event payload delivery.""" + class KeyType(UnknownEnumMixin, StrEnum): CUSTOMER_MANAGED_KEY = "CustomerManagedKey" SERVICE_MANAGED_KEY = "ServiceManagedKey" @@ -5233,6 +7387,16 @@ class KinesisResource(_SerdeShape): content_configurations: list[ContentConfiguration] """Content configurations for stream delivery.""" +class KinesisResourceDict(TypedDict, total=False): + """Dictionary form of `KinesisResource`.""" + + data_stream_arn: Required[str] + """ARN of the Kinesis Data Stream.""" + content_configurations: Required[ + Sequence[ContentConfiguration | ContentConfigurationDict] + ] + """Content configurations for stream delivery.""" + @dataclass(kw_only=True) class KmsConfiguration(_SerdeShape): """Contains the KMS configuration for a resource.""" @@ -5242,6 +7406,14 @@ class KmsConfiguration(_SerdeShape): kms_key_arn: str | None = ... """The Amazon Resource Name (ARN) of the KMS key.""" +class KmsConfigurationDict(TypedDict, total=False): + """Dictionary form of `KmsConfiguration`.""" + + key_type: Required[str] + """The type of KMS key (CustomerManagedKey or ServiceManagedKey).""" + kms_key_arn: str | None + """The Amazon Resource Name (ARN) of the KMS key.""" + @dataclass(kw_only=True) class KmsKeySourceType(_SerdeShape): """Contains the KMS key configuration for a JWT client assertion.""" @@ -5254,6 +7426,17 @@ class KmsKeySourceType(_SerdeShape): algorithm. """ +class KmsKeySourceTypeDict(TypedDict, total=False): + """Dictionary form of `KmsKeySourceType`.""" + + kms_key_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the KMS key used to sign the JWT + client assertion. The key must be an asymmetric key with key usage + SIGN_VERIFY and a key spec compatible with the configured signing + algorithm. + """ + @dataclass(kw_only=True) class LambdaEvaluatorConfig(_SerdeShape): """Configuration for a Lambda function used as a code-based evaluator.""" @@ -5269,6 +7452,20 @@ class LambdaEvaluatorConfig(_SerdeShape): 60. Must be between 1 and 300. """ +class LambdaEvaluatorConfigDict(TypedDict, total=False): + """Dictionary form of `LambdaEvaluatorConfig`.""" + + lambda_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Lambda function that implements + the evaluation logic. + """ + lambda_timeout_in_seconds: int | None + """ + The timeout in seconds for the Lambda function invocation. Defaults to + 60. Must be between 1 and 300. + """ + @dataclass(kw_only=True) class LambdaInterceptorConfiguration(_SerdeShape): """The lambda configuration for the interceptor""" @@ -5276,6 +7473,12 @@ class LambdaInterceptorConfiguration(_SerdeShape): arn: str """The arn of the lambda function to be invoked for the interceptor.""" +class LambdaInterceptorConfigurationDict(TypedDict, total=False): + """Dictionary form of `LambdaInterceptorConfiguration`.""" + + arn: Required[str] + """The arn of the lambda function to be invoked for the interceptor.""" + @dataclass(kw_only=True) class LambdaTransformConfiguration(_SerdeShape): """ @@ -5289,6 +7492,15 @@ class LambdaTransformConfiguration(_SerdeShape): invoked by the gateway to transform data. """ +class LambdaTransformConfigurationDict(TypedDict, total=False): + """Dictionary form of `LambdaTransformConfiguration`.""" + + arn: str | None + """ + The Amazon Resource Name (ARN) of the Lambda function. This function is + invoked by the gateway to transform data. + """ + @dataclass(kw_only=True) class LaunchParameters(_SerdeShape): """ @@ -5331,6 +7543,50 @@ class LaunchParameters(_SerdeShape): and network interfaces) that the capacity provider creates. """ +class LaunchParametersDict(TypedDict, total=False): + """Dictionary form of `LaunchParameters`.""" + + operating_system: Required[str] + """The operating system and CPU architecture for the instances.""" + instance_requirements: Required[InstanceRequirements | InstanceRequirementsDict] + """The requirements that determine which instance types can be launched.""" + ephemeral_volumes: ( + Sequence[EphemeralBlockDeviceMapping | EphemeralBlockDeviceMappingDict] | None + ) + """ + The block device mappings for instance store (ephemeral) volumes. You + can specify up to five mappings. + """ + monitoring: str | None + """The monitoring level for the instances.""" + license_specifications: ( + Sequence[LicenseSpecification | LicenseSpecificationDict] | None + ) + """ + The license configurations to associate with the instances. You can + specify up to five configurations. + """ + capacity_reservation_specification: ( + CapacityReservationSpecification | CapacityReservationSpecificationDict | None + ) + """The Capacity Reservation targeting option for the instances.""" + ssh_key_name: str | None + """ + The name of the SSH key pair to configure on the instances for SSH + connectivity. + """ + instance_profile_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM instance profile to associate + with launched instances. If provided, this overrides the default + instance profile. + """ + propagated_tags: Mapping[str, str] | None + """ + The tags to propagate to all Amazon EC2 resources (instances, volumes, + and network interfaces) that the capacity provider creates. + """ + @dataclass class LaunchTemplateSourceLaunchParameters(_SerdeShape): """The parameters that AgentCore uses to create the launch template.""" @@ -5359,6 +7615,16 @@ requirements, and other settings used to launch instances. class _LaunchTemplateSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> LaunchTemplateSource: ... +class LaunchTemplateSourceLaunchParametersDict(TypedDict): + launch_parameters: LaunchParameters | LaunchParametersDict + """The parameters that AgentCore uses to create the launch template.""" + +LaunchTemplateSourceDict = Union[LaunchTemplateSourceLaunchParametersDict] +""" +Dictionary form of `LaunchTemplateSource`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class LicenseSpecification(_SerdeShape): """A license configuration to associate with the instances.""" @@ -5366,6 +7632,12 @@ class LicenseSpecification(_SerdeShape): license_configuration_arn: str """The Amazon Resource Name (ARN) of the license configuration.""" +class LicenseSpecificationDict(TypedDict, total=False): + """Dictionary form of `LicenseSpecification`.""" + + license_configuration_arn: Required[str] + """The Amazon Resource Name (ARN) of the license configuration.""" + @dataclass(kw_only=True) class LifecycleConfiguration(_SerdeShape): """ @@ -5388,6 +7660,22 @@ class LifecycleConfiguration(_SerdeShape): hours). """ +class LifecycleConfigurationDict(TypedDict, total=False): + """Dictionary form of `LifecycleConfiguration`.""" + + idle_runtime_session_timeout: int | None + """ + Timeout in seconds for idle runtime sessions. When a session remains + idle for this duration, it will be automatically terminated. Default: + 900 seconds (15 minutes). + """ + max_lifetime: int | None + """ + Maximum lifetime for the instance in seconds. Once reached, instances + will be automatically terminated and replaced. Default: 28800 seconds (8 + hours). + """ + @dataclass(kw_only=True) class LifecycleHook(_SerdeShape): """ @@ -5401,6 +7689,15 @@ class LifecycleHook(_SerdeShape): action. """ +class LifecycleHookDict(TypedDict, total=False): + """Dictionary form of `LifecycleHook`.""" + + action: Required[LifecycleHookAction | LifecycleHookActionDict] + """ + The action that AgentCore Runtime runs for the hook. Specify exactly one + action. + """ + @dataclass class LifecycleHookActionHttpPost(_SerdeShape): """ @@ -5431,6 +7728,18 @@ Currently, `httpPost` is the only supported action. class _LifecycleHookActionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> LifecycleHookAction: ... +class LifecycleHookActionHttpPostDict(TypedDict): + http_post: HttpPostLifecycleHookAction | HttpPostLifecycleHookActionDict + """ + Sends an HTTP `POST` request to your agent's container on the specified + port and path to run the hook. The hook succeeds if your container + returns a `2xx` response. The hook fails if your container returns any + other response or doesn't respond before the hook times out. + """ + +LifecycleHookActionDict = Union[LifecycleHookActionHttpPostDict] +"""Dictionary form of `LifecycleHookAction`, setting exactly one variant.""" + @dataclass(kw_only=True) class LimitEntry(_SerdeShape): """ @@ -5462,6 +7771,32 @@ class LimitEntry(_SerdeShape): concurrent connections allowed. """ +class LimitEntryDict(TypedDict, total=False): + """Dictionary form of `LimitEntry`.""" + + dimensions: Required[Mapping[str, str]] + """ + A map of dimension names to dimension values for this rule entry. Keys + must match the parent rate limit's dimension keys. Values may use `*` + as a wildcard, but only in trailing positions based on the dimension + keys ordering. + """ + requests: Sequence[RateConfig | RateConfigDict] | None + """ + The request rate limit configuration. Specifies the maximum number of + requests allowed per time period. + """ + tokens: Sequence[RateConfig | RateConfigDict] | None + """ + The token rate limit configuration. Specifies the maximum number of + tokens allowed per time period. + """ + connections: Sequence[RateConfig | RateConfigDict] | None + """ + The connection rate limit configuration. Specifies the maximum number of + concurrent connections allowed. + """ + @dataclass(kw_only=True) class LinkedinOauth2ProviderConfigInput(_SerdeShape): """ @@ -5495,6 +7830,34 @@ class LinkedinOauth2ProviderConfigInput(_SerdeShape): in Amazon Web Services Secrets Manager. """ +class LinkedinOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `LinkedinOauth2ProviderConfigInput`.""" + + client_id: Required[str] + """ + The client ID for the LinkedIn OAuth2 provider. This identifier is + assigned by LinkedIn when you register your application. + """ + client_secret: str | None + """ + The client secret for the LinkedIn OAuth2 provider. This secret is + assigned by LinkedIn and used along with the client ID to authenticate + your application. + """ + client_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None + """ + The source type of the client secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + @dataclass(kw_only=True) class LinkedinOauth2ProviderConfigOutput(_SerdeShape): """ @@ -5518,6 +7881,16 @@ class ListAgentRuntimeEndpointsInput(_SerdeShape): next_token: str | None = ... """A token to retrieve the next page of results.""" +class ListAgentRuntimeEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentRuntimeEndpointsInput`.""" + + agent_runtime_id: Required[str] + """The unique identifier of the AgentCore Runtime to list endpoints for.""" + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """A token to retrieve the next page of results.""" + @dataclass(kw_only=True) class ListAgentRuntimeEndpointsOutput(_SerdeShape): """Dataclass for ListAgentRuntimeEndpointsOutput structure.""" @@ -5543,6 +7916,14 @@ class ListAgentRuntimesInput(_SerdeShape): next_token: str | None = ... """A token to retrieve the next page of results.""" +class ListAgentRuntimesInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentRuntimesInput`.""" + + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """A token to retrieve the next page of results.""" + @dataclass(kw_only=True) class ListAgentRuntimesOutput(_SerdeShape): """Dataclass for ListAgentRuntimesOutput structure.""" @@ -5579,6 +7960,25 @@ class ListAgentRuntimeVersionsByCapacityProviderInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListAgentRuntimeVersionsByCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentRuntimeVersionsByCapacityProviderInput`.""" + + capacity_provider_id: Required[str] + """The unique identifier of the capacity provider.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListAgentRuntimeVersionsByCapacityProviderOutput(_SerdeShape): """ @@ -5616,6 +8016,16 @@ class ListAgentRuntimeVersionsInput(_SerdeShape): next_token: str | None = ... """A token to retrieve the next page of results.""" +class ListAgentRuntimeVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListAgentRuntimeVersionsInput`.""" + + agent_runtime_id: Required[str] + """The unique identifier of the AgentCore Runtime to list versions for.""" + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """A token to retrieve the next page of results.""" + @dataclass(kw_only=True) class ListAgentRuntimeVersionsOutput(_SerdeShape): """Dataclass for ListAgentRuntimeVersionsOutput structure.""" @@ -5641,6 +8051,14 @@ class ListApiKeyCredentialProvidersInput(_SerdeShape): max_results: int = ... """Maximum number of results to return.""" +class ListApiKeyCredentialProvidersInputDict(TypedDict, total=False): + """Dictionary form of `ListApiKeyCredentialProvidersInput`.""" + + next_token: str | None + """Pagination token.""" + max_results: int | None + """Maximum number of results to return.""" + @dataclass(kw_only=True) class ListApiKeyCredentialProvidersOutput(_SerdeShape): """Dataclass for ListApiKeyCredentialProvidersOutput structure.""" @@ -5667,3 +8085,13 @@ class ListBrowserProfilesInput(_SerdeShape): """A token to retrieve the next page of results.""" name: str | None = ... """The name of the browser profile to filter results by.""" + +class ListBrowserProfilesInputDict(TypedDict, total=False): + """Dictionary form of `ListBrowserProfilesInput`.""" + + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """A token to retrieve the next page of results.""" + name: str | None + """The name of the browser profile to filter results by.""" diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_2.pyi b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_2.pyi index 5459b56dc..388800d4f 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_2.pyi +++ b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_2.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,88 +13,133 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( ApiGatewayTargetConfiguration, + ApiGatewayTargetConfigurationDict, ApiSchemaConfiguration, + ApiSchemaConfigurationDict, AtlassianOauth2ProviderConfigInput, + AtlassianOauth2ProviderConfigInputDict, AtlassianOauth2ProviderConfigOutput, BrowserProfileSummary, BrowserSummary, BuildLifecycleHooks, + BuildLifecycleHooksDict, CapacityProviderSummary, CategoricalScaleDefinition, + CategoricalScaleDefinitionDict, CedarPolicy, + CedarPolicyDict, CloudWatchOutputConfig, + CloudWatchOutputConfigDict, ClusteringConfig, CodeInterpreterSummary, CoinbaseCdpConfigurationInput, + CoinbaseCdpConfigurationInputDict, CoinbaseCdpConfigurationOutput, ConfigurationBundleSummary, ConfigurationBundleVersionSummary, ConnectorTargetConfiguration, + ConnectorTargetConfigurationDict, ConsentPortalSummary, CredentialRotationConfig, + CredentialRotationConfigDict, CustomConsolidationConfigurationInput, + CustomConsolidationConfigurationInputDict, CustomExtractionConfigurationInput, + CustomExtractionConfigurationInputDict, CustomMemoryStrategyInput, + CustomMemoryStrategyInputDict, CustomOauth2ProviderConfigInput, + CustomOauth2ProviderConfigInputDict, CustomOauth2ProviderConfigOutput, CustomReflectionConfiguration, CustomReflectionConfigurationInput, + CustomReflectionConfigurationInputDict, DatasetSummary, DatasetVersionSummary, DeleteMemoryStrategyInput, + DeleteMemoryStrategyInputDict, EpisodicMemoryStrategyInput, + EpisodicMemoryStrategyInputDict, EpisodicReflectionConfiguration, EpisodicReflectionConfigurationInput, + EpisodicReflectionConfigurationInputDict, EvaluationDimension, + EvaluationDimensionDict, EvaluatorModelConfig, + EvaluatorModelConfigDict, EvaluatorSummary, ExtractionConfig, + ExtractionConfigDict, Filter, + FilterDict, Finding, GatewayRateLimitDetail, GatewayRuleDetail, GatewaySummary, GithubOauth2ProviderConfigInput, + GithubOauth2ProviderConfigInputDict, GithubOauth2ProviderConfigOutput, GoogleOauth2ProviderConfigInput, + GoogleOauth2ProviderConfigInputDict, GoogleOauth2ProviderConfigOutput, HarnessEndpoint, HarnessSummary, HarnessVersionSummary, HttpApiSchemaConfiguration, + HttpApiSchemaConfigurationDict, IamPrincipal, + IamPrincipalDict, IncludedOauth2ProviderConfigInput, + IncludedOauth2ProviderConfigInputDict, IncludedOauth2ProviderConfigOutput, IndexedKey, Insight, InvocationConfiguration, InvocationConfigurationInput, + InvocationConfigurationInputDict, KmsConfiguration, KmsKeySourceType, + KmsKeySourceTypeDict, LinkedinOauth2ProviderConfigInput, + LinkedinOauth2ProviderConfigInputDict, LinkedinOauth2ProviderConfigOutput, ServiceError, SlackOauth2ProviderConfigInput, + SlackOauth2ProviderConfigInputDict, SlackOauth2ProviderConfigOutput, StaticRoute, + StaticRouteDict, StickinessConfiguration, + StickinessConfigurationDict, StrategyConfiguration, StreamDeliveryResources, StreamingConfiguration, + StreamingConfigurationDict, StripePrivyConfigurationInput, + StripePrivyConfigurationInputDict, StripePrivyConfigurationOutput, SummaryMemoryStrategyInput, + SummaryMemoryStrategyInputDict, TargetSummary, TokenExchangeGrantTypeConfigType, + TokenExchangeGrantTypeConfigTypeDict, ToolSchema, + ToolSchemaDict, ToolsDefinition, + ToolsDefinitionDict, TriggerCondition, TriggerConditionInput, + TriggerConditionInputDict, UserPreferenceMemoryStrategyInput, + UserPreferenceMemoryStrategyInputDict, Validation, + ValidationDict, VersionFilter, + VersionFilterDict, VpcConfig, + VpcConfigDict, WeightedRoute, + WeightedRouteDict, WorkloadIdentityType, _SerdeShape, ) @@ -135,6 +181,26 @@ class ListBrowsersInput(_SerdeShape): returned. """ +class ListBrowsersInputDict(TypedDict, total=False): + """Dictionary form of `ListBrowsersInput`.""" + + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 10. The maximum value is 50. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. + """ + type: str | None + """ + The type of browsers to list. If not specified, all browser types are + returned. + """ + @dataclass(kw_only=True) class ListBrowsersOutput(_SerdeShape): """Dataclass for ListBrowsersOutput structure.""" @@ -169,6 +235,23 @@ class ListCapacityProvidersInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListCapacityProvidersInputDict(TypedDict, total=False): + """Dictionary form of `ListCapacityProvidersInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListCapacityProvidersOutput(_SerdeShape): """Dataclass for ListCapacityProvidersOutput structure.""" @@ -200,6 +283,16 @@ class ListCodeInterpretersInput(_SerdeShape): type: str | None = ... """The type of code interpreters to list.""" +class ListCodeInterpretersInputDict(TypedDict, total=False): + """Dictionary form of `ListCodeInterpretersInput`.""" + + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """A token to retrieve the next page of results.""" + type: str | None + """The type of code interpreters to list.""" + @dataclass(kw_only=True) class ListCodeInterpretersOutput(_SerdeShape): """Dataclass for ListCodeInterpretersOutput structure.""" @@ -234,6 +327,23 @@ class ListConfigurationBundlesInput(_SerdeShape): return the next batch of results. """ +class ListConfigurationBundlesInputDict(TypedDict, total=False): + """Dictionary form of `ListConfigurationBundlesInput`.""" + + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + @dataclass(kw_only=True) class ListConfigurationBundlesOutput(_SerdeShape): """Dataclass for ListConfigurationBundlesOutput structure.""" @@ -279,6 +389,30 @@ class ListConfigurationBundleVersionsInput(_SerdeShape): source, and whether to return only the latest version per branch. """ +class ListConfigurationBundleVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListConfigurationBundleVersionsInput`.""" + + bundle_id: Required[str] + """The unique identifier of the configuration bundle to list versions for.""" + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + filter: VersionFilter | VersionFilterDict | None + """ + An optional filter for listing versions, including branch name, creation + source, and whether to return only the latest version per branch. + """ + @dataclass(kw_only=True) class ListConfigurationBundleVersionsOutput(_SerdeShape): """Dataclass for ListConfigurationBundleVersionsOutput structure.""" @@ -311,6 +445,17 @@ class ListConsentPortalsInput(_SerdeShape): a previous response to request the next page. """ +class ListConsentPortalsInputDict(TypedDict, total=False): + """Dictionary form of `ListConsentPortalsInput`.""" + + max_results: int | None + """The maximum number of consent portals to return in a single call.""" + next_token: str | None + """ + A token to retrieve the next page of results. Use the value returned in + a previous response to request the next page. + """ + @dataclass(kw_only=True) class ListConsentPortalsOutput(_SerdeShape): """Dataclass for ListConsentPortalsOutput structure.""" @@ -347,6 +492,22 @@ class ListDatasetExamplesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class ListDatasetExamplesInputDict(TypedDict, total=False): + """Dictionary form of `ListDatasetExamplesInput`.""" + + dataset_id: Required[str] + """The unique identifier of the dataset.""" + dataset_version: str | None + """ + Version to paginate: \"DRAFT\" or a version number. Defaults to DRAFT if + absent. Only used on the first request; for subsequent pages, the + version is extracted from the pagination token. + """ + max_results: int | None + """Maximum number of examples to return per page.""" + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class ListDatasetExamplesOutput(_SerdeShape): """Dataclass for ListDatasetExamplesOutput structure.""" @@ -384,6 +545,14 @@ class ListDatasetsInput(_SerdeShape): max_results: int | None = ... """The maximum number of datasets to return per page.""" +class ListDatasetsInputDict(TypedDict, total=False): + """Dictionary form of `ListDatasetsInput`.""" + + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """The maximum number of datasets to return per page.""" + @dataclass(kw_only=True) class ListDatasetsOutput(_SerdeShape): """Dataclass for ListDatasetsOutput structure.""" @@ -414,6 +583,16 @@ class ListDatasetVersionsInput(_SerdeShape): max_results: int | None = ... """The maximum number of versions to return per page.""" +class ListDatasetVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListDatasetVersionsInput`.""" + + dataset_id: Required[str] + """The unique identifier of the dataset.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """The maximum number of versions to return per page.""" + @dataclass(kw_only=True) class ListDatasetVersionsOutput(_SerdeShape): """Dataclass for ListDatasetVersionsOutput structure.""" @@ -445,6 +624,17 @@ class ListEvaluatorsInput(_SerdeShape): max_results: int | None = ... """The maximum number of evaluators to return in a single response.""" +class ListEvaluatorsInputDict(TypedDict, total=False): + """Dictionary form of `ListEvaluatorsInput`.""" + + next_token: str | None + """ + The pagination token from a previous request to retrieve the next page + of results. + """ + max_results: int | None + """The maximum number of evaluators to return in a single response.""" + @dataclass(kw_only=True) class ListEvaluatorsOutput(_SerdeShape): """Dataclass for ListEvaluatorsOutput structure.""" @@ -486,6 +676,24 @@ class ListGatewayRateLimitsInput(_SerdeShape): returned in a previous `ListGatewayRateLimits` response. """ +class ListGatewayRateLimitsInputDict(TypedDict, total=False): + """Dictionary form of `ListGatewayRateLimitsInput`.""" + + gateway_identifier: Required[str] + """The unique identifier of the gateway.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + The token to use to retrieve the next page of results. Use the value + returned in a previous `ListGatewayRateLimits` response. + """ + @dataclass(kw_only=True) class ListGatewayRateLimitsOutput(_SerdeShape): """Dataclass for ListGatewayRateLimitsOutput structure.""" @@ -521,6 +729,21 @@ class ListGatewayRulesInput(_SerdeShape): next_token: str | None = ... """The pagination token from a previous request.""" +class ListGatewayRulesInputDict(TypedDict, total=False): + """Dictionary form of `ListGatewayRulesInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway to list rules for.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """The pagination token from a previous request.""" + @dataclass(kw_only=True) class ListGatewayRulesOutput(_SerdeShape): """Dataclass for ListGatewayRulesOutput structure.""" @@ -555,6 +778,23 @@ class ListGatewaysInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `ListGatewaysInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListGatewaysOutput(_SerdeShape): """Dataclass for ListGatewaysOutput structure.""" @@ -595,6 +835,25 @@ class ListGatewayTargetsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListGatewayTargetsInputDict(TypedDict, total=False): + """Dictionary form of `ListGatewayTargetsInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway to list targets for.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListGatewayTargetsOutput(_SerdeShape): """Dataclass for ListGatewayTargetsOutput structure.""" @@ -626,6 +885,16 @@ class ListHarnessEndpointsInput(_SerdeShape): next_token: str | None = ... """The token for the next set of results.""" +class ListHarnessEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `ListHarnessEndpointsInput`.""" + + harness_id: Required[str] + """The ID of the harness whose endpoints are listed.""" + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """The token for the next set of results.""" + @dataclass(kw_only=True) class ListHarnessEndpointsOutput(_SerdeShape): """Dataclass for ListHarnessEndpointsOutput structure.""" @@ -651,6 +920,14 @@ class ListHarnessesInput(_SerdeShape): next_token: str | None = ... """The token for the next set of results.""" +class ListHarnessesInputDict(TypedDict, total=False): + """Dictionary form of `ListHarnessesInput`.""" + + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """The token for the next set of results.""" + @dataclass(kw_only=True) class ListHarnessesOutput(_SerdeShape): """Dataclass for ListHarnessesOutput structure.""" @@ -678,6 +955,16 @@ class ListHarnessVersionsInput(_SerdeShape): next_token: str | None = ... """The token for the next set of results.""" +class ListHarnessVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListHarnessVersionsInput`.""" + + harness_id: Required[str] + """The ID of the harness whose versions are listed.""" + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """The token for the next set of results.""" + @dataclass(kw_only=True) class ListHarnessVersionsOutput(_SerdeShape): """Dataclass for ListHarnessVersionsOutput structure.""" @@ -714,6 +1001,21 @@ class ListMemoriesInput(_SerdeShape): results. """ +class ListMemoriesInputDict(TypedDict, total=False): + """Dictionary form of `ListMemoriesInput`.""" + + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 10. The maximum value is 50. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. + """ + @dataclass(kw_only=True) class ListMemoriesOutput(_SerdeShape): """Dataclass for ListMemoriesOutput structure.""" @@ -739,6 +1041,14 @@ class ListOauth2CredentialProvidersInput(_SerdeShape): max_results: int = ... """Maximum number of results to return.""" +class ListOauth2CredentialProvidersInputDict(TypedDict, total=False): + """Dictionary form of `ListOauth2CredentialProvidersInput`.""" + + next_token: str | None + """Pagination token.""" + max_results: int | None + """Maximum number of results to return.""" + @dataclass(kw_only=True) class ListOauth2CredentialProvidersOutput(_SerdeShape): """Dataclass for ListOauth2CredentialProvidersOutput structure.""" @@ -770,6 +1080,20 @@ class ListOnlineEvaluationConfigsInput(_SerdeShape): single response. """ +class ListOnlineEvaluationConfigsInputDict(TypedDict, total=False): + """Dictionary form of `ListOnlineEvaluationConfigsInput`.""" + + next_token: str | None + """ + The pagination token from a previous request to retrieve the next page + of results. + """ + max_results: int | None + """ + The maximum number of online evaluation configurations to return in a + single response. + """ + @dataclass(kw_only=True) class ListOnlineEvaluationConfigsOutput(_SerdeShape): """Dataclass for ListOnlineEvaluationConfigsOutput structure.""" @@ -812,6 +1136,25 @@ class ListPaymentConnectorsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListPaymentConnectorsInputDict(TypedDict, total=False): + """Dictionary form of `ListPaymentConnectorsInput`.""" + + payment_manager_id: Required[str] + """The unique identifier of the payment manager whose connectors to list.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListPaymentConnectorsOutput(_SerdeShape): """Dataclass for ListPaymentConnectorsOutput structure.""" @@ -844,6 +1187,14 @@ class ListPaymentCredentialProvidersInput(_SerdeShape): max_results: int = ... """Maximum number of results to return.""" +class ListPaymentCredentialProvidersInputDict(TypedDict, total=False): + """Dictionary form of `ListPaymentCredentialProvidersInput`.""" + + next_token: str | None + """Pagination token.""" + max_results: int | None + """Maximum number of results to return.""" + @dataclass(kw_only=True) class ListPaymentCredentialProvidersOutput(_SerdeShape): """Dataclass for ListPaymentCredentialProvidersOutput structure.""" @@ -878,6 +1229,23 @@ class ListPaymentManagersInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListPaymentManagersInputDict(TypedDict, total=False): + """Dictionary form of `ListPaymentManagersInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListPaymentManagersOutput(_SerdeShape): """Dataclass for ListPaymentManagersOutput structure.""" @@ -928,6 +1296,32 @@ class ListPoliciesInput(_SerdeShape): operational contexts within the policy engine ecosystem. """ +class ListPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListPoliciesInput`.""" + + next_token: str | None + """ + A pagination token returned from a previous + [ListPolicies](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_ListPolicies.html) + call. Use this token to retrieve the next page of results when the + response is paginated. + """ + max_results: int | None + """ + The maximum number of policies to return in a single response. If not + specified, the default is 10 policies per page, with a maximum of 100 + per page. + """ + policy_engine_id: Required[str] + """The identifier of the policy engine whose policies to retrieve.""" + target_resource_scope: str | None + """ + Optional filter to list policies that apply to a specific resource scope + or resource type. This helps narrow down policy results to those + relevant for particular Amazon Web Services resources, agent tools, or + operational contexts within the policy engine ecosystem. + """ + @dataclass(kw_only=True) class ListPoliciesOutput(_SerdeShape): """Dataclass for ListPoliciesOutput structure.""" @@ -970,6 +1364,23 @@ class ListPolicyEnginesInput(_SerdeShape): of 100 per page. """ +class ListPolicyEnginesInputDict(TypedDict, total=False): + """Dictionary form of `ListPolicyEnginesInput`.""" + + next_token: str | None + """ + A pagination token returned from a previous + [ListPolicyEngines](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_ListPolicyEngines.html) + call. Use this token to retrieve the next page of results when the + response is paginated. + """ + max_results: int | None + """ + The maximum number of policy engines to return in a single response. If + not specified, the default is 10 policy engines per page, with a maximum + of 100 per page. + """ + @dataclass(kw_only=True) class ListPolicyEnginesOutput(_SerdeShape): """Dataclass for ListPolicyEnginesOutput structure.""" @@ -1012,14 +1423,30 @@ class ListPolicyEngineSummariesInput(_SerdeShape): response. """ -@dataclass(kw_only=True) -class ListPolicyEngineSummariesOutput(_SerdeShape): - """Dataclass for ListPolicyEngineSummariesOutput structure.""" +class ListPolicyEngineSummariesInputDict(TypedDict, total=False): + """Dictionary form of `ListPolicyEngineSummariesInput`.""" - policy_engines: list[PolicyEngineSummary] + next_token: str | None """ - An array of policy engine summary objects that exist in the account. - Each summary contains resource identifiers, status, and timestamps + A pagination token returned from a previous + [ListPolicyEngineSummaries](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_ListPolicyEngineSummaries.html) + call. Use this token to retrieve the next page of results when the + response is paginated. + """ + max_results: int | None + """ + The maximum number of policy engine summaries to return in a single + response. + """ + +@dataclass(kw_only=True) +class ListPolicyEngineSummariesOutput(_SerdeShape): + """Dataclass for ListPolicyEngineSummariesOutput structure.""" + + policy_engines: list[PolicyEngineSummary] + """ + An array of policy engine summary objects that exist in the account. + Each summary contains resource identifiers, status, and timestamps without customer-encrypted content. """ next_token: str | None = ... @@ -1070,6 +1497,38 @@ class ListPolicyGenerationAssetsInput(_SerdeShape): with policy generations that produce many alternative policy options. """ +class ListPolicyGenerationAssetsInputDict(TypedDict, total=False): + """Dictionary form of `ListPolicyGenerationAssetsInput`.""" + + policy_generation_id: Required[str] + """ + The unique identifier of the policy generation request whose assets are + to be retrieved. This must be a valid generation ID from a previous + [StartPolicyGeneration](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_StartPolicyGeneration.html) + call that has completed processing. + """ + policy_engine_id: Required[str] + """ + The unique identifier of the policy engine associated with the policy + generation request. This provides the context for the generation + operation and ensures assets are retrieved from the correct policy + engine. + """ + next_token: str | None + """ + A pagination token returned from a previous + [ListPolicyGenerationAssets](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_ListPolicyGenerationAssets.html) + call. Use this token to retrieve the next page of assets when the + response is paginated due to large numbers of generated policy options. + """ + max_results: int | None + """ + The maximum number of policy generation assets to return in a single + response. If not specified, the default is 10 assets per page, with a + maximum of 100 per page. This helps control response size when dealing + with policy generations that produce many alternative policy options. + """ + @dataclass(kw_only=True) class ListPolicyGenerationAssetsOutput(_SerdeShape): """Dataclass for ListPolicyGenerationAssetsOutput structure.""" @@ -1114,6 +1573,22 @@ class ListPolicyGenerationsInput(_SerdeShape): retrieve. """ +class ListPolicyGenerationsInputDict(TypedDict, total=False): + """Dictionary form of `ListPolicyGenerationsInput`.""" + + next_token: str | None + """ + A pagination token for retrieving additional policy generations when + results are paginated. + """ + max_results: int | None + """The maximum number of policy generations to return in a single response.""" + policy_engine_id: Required[str] + """ + The identifier of the policy engine whose policy generations to + retrieve. + """ + @dataclass(kw_only=True) class ListPolicyGenerationsOutput(_SerdeShape): """Dataclass for ListPolicyGenerationsOutput structure.""" @@ -1155,6 +1630,27 @@ class ListPolicyGenerationSummariesInput(_SerdeShape): retrieve. """ +class ListPolicyGenerationSummariesInputDict(TypedDict, total=False): + """Dictionary form of `ListPolicyGenerationSummariesInput`.""" + + next_token: str | None + """ + A pagination token returned from a previous + [ListPolicyGenerationSummaries](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_ListPolicyGenerationSummaries.html) + call. Use this token to retrieve the next page of results when the + response is paginated. + """ + max_results: int | None + """ + The maximum number of policy generation summaries to return in a single + response. + """ + policy_engine_id: Required[str] + """ + The identifier of the policy engine whose policy generation summaries to + retrieve. + """ + @dataclass(kw_only=True) class ListPolicyGenerationSummariesOutput(_SerdeShape): """Dataclass for ListPolicyGenerationSummariesOutput structure.""" @@ -1203,6 +1699,28 @@ class ListPolicySummariesInput(_SerdeShape): operational contexts within the policy engine ecosystem. """ +class ListPolicySummariesInputDict(TypedDict, total=False): + """Dictionary form of `ListPolicySummariesInput`.""" + + next_token: str | None + """ + A pagination token returned from a previous + [ListPolicySummaries](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_ListPolicySummaries.html) + call. Use this token to retrieve the next page of results when the + response is paginated. + """ + max_results: int | None + """The maximum number of policy summaries to return in a single response.""" + policy_engine_id: Required[str] + """The identifier of the policy engine whose policy summaries to retrieve.""" + target_resource_scope: str | None + """ + Optional filter to list policy summaries that apply to a specific + resource scope or resource type. This helps narrow down results to those + relevant for particular Amazon Web Services resources, agent tools, or + operational contexts within the policy engine ecosystem. + """ + @dataclass(kw_only=True) class ListPolicySummariesOutput(_SerdeShape): """Dataclass for ListPolicySummariesOutput structure.""" @@ -1258,6 +1776,35 @@ class ListRegistriesInput(_SerdeShape): see the `RegistryAuthorizerType` enum. """ +class ListRegistriesInputDict(TypedDict, total=False): + """Dictionary form of `ListRegistriesInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + status: str | None + """ + Filter registries by their current status. Possible values include + `CREATING`, `READY`, `UPDATING`, `CREATE_FAILED`, `UPDATE_FAILED`, + `DELETING`, and `DELETE_FAILED`. + """ + authorizer_type: str | None + """ + Filter registries by their authorizer type. Possible values are + `CUSTOM_JWT` and `AWS_IAM`. For more information about authorizer types, + see the `RegistryAuthorizerType` enum. + """ + @dataclass(kw_only=True) class ListRegistriesOutput(_SerdeShape): """Dataclass for ListRegistriesOutput structure.""" @@ -1317,6 +1864,41 @@ class ListRegistryRecordsInput(_SerdeShape): `MCP`, `A2A`, `CUSTOM`, and `AGENT_SKILLS`. """ +class ListRegistryRecordsInputDict(TypedDict, total=False): + """Dictionary form of `ListRegistryRecordsInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry to list records from. You can specify + either the Amazon Resource Name (ARN) or the ID of the registry. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + name: str | None + """Filter registry records by name.""" + status: str | None + """ + Filter registry records by their current status. Possible values include + `CREATING`, `DRAFT`, `APPROVED`, `PENDING_APPROVAL`, `REJECTED`, + `DEPRECATED`, `UPDATING`, `CREATE_FAILED`, and `UPDATE_FAILED`. + """ + descriptor_type: str | None + """ + Filter registry records by their descriptor type. Possible values are + `MCP`, `A2A`, `CUSTOM`, and `AGENT_SKILLS`. + """ + @dataclass(kw_only=True) class ListRegistryRecordsOutput(_SerdeShape): """Dataclass for ListRegistryRecordsOutput structure.""" @@ -1350,6 +1932,15 @@ class ListTagsForResourceInput(_SerdeShape): list tags. """ +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource for which you want to + list tags. + """ + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -1373,6 +1964,14 @@ class ListWorkloadIdentitiesInput(_SerdeShape): max_results: int = ... """Maximum number of results to return.""" +class ListWorkloadIdentitiesInputDict(TypedDict, total=False): + """Dictionary form of `ListWorkloadIdentitiesInput`.""" + + next_token: str | None + """Pagination token.""" + max_results: int | None + """Maximum number of results to return.""" + @dataclass(kw_only=True) class ListWorkloadIdentitiesOutput(_SerdeShape): """Dataclass for ListWorkloadIdentitiesOutput structure.""" @@ -1413,6 +2012,25 @@ class LlmAsAJudgeEvaluatorConfig(_SerdeShape): how to configure it for evaluation. """ +class LlmAsAJudgeEvaluatorConfigDict(TypedDict, total=False): + """Dictionary form of `LlmAsAJudgeEvaluatorConfig`.""" + + instructions: Required[str] + """ + The evaluation instructions that guide the language model in assessing + agent performance, including criteria and evaluation guidelines. + """ + rating_scale: Required[RatingScale | RatingScaleDict] + """ + The rating scale that defines how the evaluator should score agent + performance, either numerical or categorical. + """ + model_config: Required[EvaluatorModelConfig | EvaluatorModelConfigDict] + """ + The model configuration that specifies which foundation model to use and + how to configure it for evaluation. + """ + @dataclass(kw_only=True) class LlmExtractionConfig(_SerdeShape): """Model-based metadata extraction configuration.""" @@ -1427,6 +2045,19 @@ class LlmExtractionConfig(_SerdeShape): validation: Validation | None = ... """Validation rules to constrain extracted values.""" +class LlmExtractionConfigDict(TypedDict, total=False): + """Dictionary form of `LlmExtractionConfig`.""" + + llm_extraction_instruction: str | None + """ + Instructions for extraction. Supports built-in operators like + LATEST_VALUE or custom natural-language instructions. + """ + definition: Required[str] + """Description of what this metadata field represents.""" + validation: Validation | ValidationDict | None + """Validation rules to constrain extracted values.""" + @dataclass(kw_only=True) class ManagedResourceDetails(_SerdeShape): """ @@ -1476,6 +2107,36 @@ class ManagedVpcResource(_SerdeShape): intermediate domain]. """ +class ManagedVpcResourceDict(TypedDict, total=False): + """Dictionary form of `ManagedVpcResource`.""" + + vpc_identifier: Required[str] + """The ID of the VPC that contains your private resource.""" + subnet_ids: Required[Sequence[str]] + """ + The subnet IDs within the VPC where the VPC Lattice resource gateway is + placed. + """ + endpoint_ip_address_type: Required[str] + """The IP address type for the resource configuration endpoint.""" + security_group_ids: Sequence[str] | None + """ + The security group IDs to associate with the VPC Lattice resource + gateway. If not specified, the default security group for the VPC is + used. + """ + tags: Mapping[str, str] | None + """Tags to apply to the managed VPC Lattice resource gateway.""" + routing_domain: str | None + """ + An intermediate domain to use as the resource configuration endpoint + instead of the actual target domain. Use this when you want to route + traffic through an intermediate component such as a VPC endpoint or + internal load balancer. For more information, see + xref:lattice-vpc-egress-routing-domain[Route traffic through an + intermediate domain]. + """ + @dataclass(kw_only=True) class MatchModelEntry(_SerdeShape): """ @@ -1498,6 +2159,24 @@ class MatchModelEntry(_SerdeShape): the default. """ +class MatchModelEntryDict(TypedDict, total=False): + """Dictionary form of `MatchModelEntry`.""" + + value: Required[str] + """ + The model ID or pattern to match. With the `StringLike` operator, you + can use `*` and `?` as wildcards, for example `anthropic.claude-*`. + """ + operator: str | None + """ + The operator to use when comparing the requested model to the value: + + - `StringEquals` -- Requires an exact match. + + - `StringLike` -- Supports wildcard patterns using `*` and `?`. This is + the default. + """ + @dataclass(kw_only=True) class MatchModels(_SerdeShape): """ @@ -1511,6 +2190,15 @@ class MatchModels(_SerdeShape): matches any of the entries. """ +class MatchModelsDict(TypedDict, total=False): + """Dictionary form of `MatchModels`.""" + + any_of: Required[Sequence[MatchModelEntry | MatchModelEntryDict]] + """ + A list of model entries. The condition is met if the requested model + matches any of the entries. + """ + class MatchOperator(UnknownEnumMixin, StrEnum): STRING_EQUALS = "StringEquals" STRING_LIKE = "StringLike" @@ -1525,6 +2213,15 @@ class MatchPaths(_SerdeShape): matches any of the patterns. """ +class MatchPathsDict(TypedDict, total=False): + """Dictionary form of `MatchPaths`.""" + + any_of: Required[Sequence[str]] + """ + A list of path patterns. The condition is met if the request path + matches any of the patterns. + """ + @dataclass class MatchPrincipalEntryIamPrincipal(_SerdeShape): """An IAM principal to match against, specified by ARN.""" @@ -1552,6 +2249,13 @@ matching. class _MatchPrincipalEntryDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> MatchPrincipalEntry: ... +class MatchPrincipalEntryIamPrincipalDict(TypedDict): + iam_principal: IamPrincipal | IamPrincipalDict + """An IAM principal to match against, specified by ARN.""" + +MatchPrincipalEntryDict = Union[MatchPrincipalEntryIamPrincipalDict] +"""Dictionary form of `MatchPrincipalEntry`, setting exactly one variant.""" + @dataclass(kw_only=True) class MatchPrincipals(_SerdeShape): """A condition that matches requests based on the caller's identity.""" @@ -1562,6 +2266,15 @@ class MatchPrincipals(_SerdeShape): match the caller's identity. """ +class MatchPrincipalsDict(TypedDict, total=False): + """Dictionary form of `MatchPrincipals`.""" + + any_of: Required[Sequence[MatchPrincipalEntry | MatchPrincipalEntryDict]] + """ + A list of principal entries. The condition is met if any of the entries + match the caller's identity. + """ + @dataclass(kw_only=True) class McpDescriptor(_SerdeShape): """ @@ -1582,6 +2295,20 @@ class McpDescriptor(_SerdeShape): server as defined by the MCP protocol specification. """ +class McpDescriptorDict(TypedDict, total=False): + """Dictionary form of `McpDescriptor`.""" + + server: ServerDefinition | ServerDefinitionDict | None + """ + The MCP server definition, containing the server configuration and + schema as defined by the MCP protocol specification. + """ + tools: ToolsDefinition | ToolsDefinitionDict | None + """ + The MCP tools definition, containing the tools available on the MCP + server as defined by the MCP protocol specification. + """ + @dataclass(kw_only=True) class MCPGatewayConfiguration(_SerdeShape): """ @@ -1599,22 +2326,61 @@ class MCPGatewayConfiguration(_SerdeShape): The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway. """ - search_type: str | None = ... + search_type: str | None = ... + """ + The search type for the Model Context Protocol gateway. This field + specifies how the gateway handles search operations. + """ + session_configuration: SessionConfiguration | None = ... + """ + The session configuration for the MCP gateway. This configuration + controls session behavior, including session timeout settings. + """ + streaming_configuration: StreamingConfiguration | None = ... + """ + The streaming configuration for the MCP gateway. This configuration + controls whether response streaming is enabled for the gateway. + """ + disable_mcp_list_tools_pagination: bool | None = ... + """ + Specifies whether the gateway disables pagination for the Model Context + Protocol (MCP) `tools/list` operation. When set to `true`, the gateway + returns the complete list of tools in a single response without a + pagination cursor. When set to `false` or omitted, the gateway returns + tools in paginated responses. For information about changing this value + on an existing gateway, see + [UpdateGateway](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_UpdateGateway.html). + """ + +class MCPGatewayConfigurationDict(TypedDict, total=False): + """Dictionary form of `MCPGatewayConfiguration`.""" + + supported_versions: Sequence[str] | None + """ + The supported versions of the Model Context Protocol. This field + specifies which versions of the protocol the gateway can use. + """ + instructions: str | None + """ + The instructions for using the Model Context Protocol gateway. These + instructions provide guidance on how to interact with the gateway. + """ + search_type: str | None """ The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations. """ - session_configuration: SessionConfiguration | None = ... + session_configuration: SessionConfiguration | SessionConfigurationDict | None """ The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings. """ - streaming_configuration: StreamingConfiguration | None = ... + streaming_configuration: StreamingConfiguration | StreamingConfigurationDict | None """ The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway. """ - disable_mcp_list_tools_pagination: bool | None = ... + disable_mcp_list_tools_pagination: bool | None """ Specifies whether the gateway disables pagination for the Model Context Protocol (MCP) `tools/list` operation. When set to `true`, the gateway @@ -1644,6 +2410,20 @@ class McpLambdaTargetConfiguration(_SerdeShape): structure of the tools that the Lambda function provides. """ +class McpLambdaTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `McpLambdaTargetConfiguration`.""" + + lambda_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Lambda function. This function is + invoked by the gateway to communicate with the target. + """ + tool_schema: Required[ToolSchema | ToolSchemaDict] + """ + The tool schema for the Lambda function. This schema defines the + structure of the tools that the Lambda function provides. + """ + @dataclass(kw_only=True) class McpServerTargetConfiguration(_SerdeShape): """The target configuration for the MCP server.""" @@ -1669,6 +2449,30 @@ class McpServerTargetConfiguration(_SerdeShape): Lower values take precedence. Defaults to 1000 when not set. """ +class McpServerTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `McpServerTargetConfiguration`.""" + + endpoint: Required[str] + """The endpoint for the MCP server target configuration.""" + mcp_tool_schema: McpToolSchemaConfiguration | McpToolSchemaConfigurationDict | None + """ + A static tool list for the MCP server target. It is supported for all + credential providers. Dynamic tool discovery/synchronization will be + disabled when a target is configured with mcpToolSchema. + """ + listing_mode: str | None + """ + The listing mode for the MCP server target configuration. MCP resources + for default targets are cached at the control plane for faster access. + MCP resources for dynamic targets will be dynamically retrieved when + listing tools. + """ + resource_priority: int | None + """ + Priority for resolving MCP server targets with shared resource URIs. + Lower values take precedence. Defaults to 1000 when not set. + """ + @dataclass class McpTargetConfigurationOpenApiSchema(_SerdeShape): """ @@ -1749,6 +2553,57 @@ class _McpTargetConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> McpTargetConfiguration: ... +class McpTargetConfigurationOpenApiSchemaDict(TypedDict): + open_api_schema: ApiSchemaConfiguration | ApiSchemaConfigurationDict + """ + The OpenAPI schema for the Model Context Protocol target. This schema + defines the API structure of the target. + """ + +class McpTargetConfigurationSmithyModelDict(TypedDict): + smithy_model: ApiSchemaConfiguration | ApiSchemaConfigurationDict + """ + The Smithy model for the Model Context Protocol target. This model + defines the API structure of the target using the Smithy specification. + """ + +class McpTargetConfigurationLambdaDict(TypedDict): + lambda_: McpLambdaTargetConfiguration | McpLambdaTargetConfigurationDict + """ + The Lambda configuration for the Model Context Protocol target. This + configuration defines how the gateway uses a Lambda function to + communicate with the target. + """ + +class McpTargetConfigurationMcpServerDict(TypedDict): + mcp_server: McpServerTargetConfiguration | McpServerTargetConfigurationDict + """The MCP server specified as the gateway target.""" + +class McpTargetConfigurationApiGatewayDict(TypedDict): + api_gateway: ApiGatewayTargetConfiguration | ApiGatewayTargetConfigurationDict + """The configuration for an Amazon API Gateway target.""" + +class McpTargetConfigurationConnectorDict(TypedDict): + connector: ConnectorTargetConfiguration | ConnectorTargetConfigurationDict + """ + The connector integration configuration for the Model Context Protocol + target. This configuration defines how the gateway uses a pre-built + connector to communicate with the target. + """ + +McpTargetConfigurationDict = Union[ + McpTargetConfigurationOpenApiSchemaDict + | McpTargetConfigurationSmithyModelDict + | McpTargetConfigurationLambdaDict + | McpTargetConfigurationMcpServerDict + | McpTargetConfigurationApiGatewayDict + | McpTargetConfigurationConnectorDict +] +""" +Dictionary form of `McpTargetConfiguration`, setting exactly one +variant. +""" + @dataclass class McpToolSchemaConfigurationS3(_SerdeShape): """ @@ -1789,6 +2644,25 @@ class _McpToolSchemaConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> McpToolSchemaConfiguration: ... +class McpToolSchemaConfigurationS3Dict(TypedDict): + s3: S3Configuration | S3ConfigurationDict + """ + The Amazon S3 location of the tool schema. This location contains the + schema definition file. + """ + +class McpToolSchemaConfigurationInlinePayloadDict(TypedDict): + inline_payload: str + """The inline payload containing the MCP tool schema definition.""" + +McpToolSchemaConfigurationDict = Union[ + McpToolSchemaConfigurationS3Dict | McpToolSchemaConfigurationInlinePayloadDict +] +""" +Dictionary form of `McpToolSchemaConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class Memory(_SerdeShape): """Contains information about a memory resource.""" @@ -1844,6 +2718,12 @@ class MemoryRecordSchema(_SerdeShape): metadata_schema: list[MetadataSchemaEntry] | None = ... """The metadata field definitions for this strategy.""" +class MemoryRecordSchemaDict(TypedDict, total=False): + """Dictionary form of `MemoryRecordSchema`.""" + + metadata_schema: Sequence[MetadataSchemaEntry | MetadataSchemaEntryDict] | None + """The metadata field definitions for this strategy.""" + class MemoryStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" ACTIVE = "ACTIVE" @@ -1941,6 +2821,41 @@ MemoryStrategyInput = Union[ class _MemoryStrategyInputDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> MemoryStrategyInput: ... +class MemoryStrategyInputSemanticMemoryStrategyDict(TypedDict): + semantic_memory_strategy: ( + SemanticMemoryStrategyInput | SemanticMemoryStrategyInputDict + ) + """Input for creating a semantic memory strategy.""" + +class MemoryStrategyInputSummaryMemoryStrategyDict(TypedDict): + summary_memory_strategy: SummaryMemoryStrategyInput | SummaryMemoryStrategyInputDict + """Input for creating a summary memory strategy.""" + +class MemoryStrategyInputUserPreferenceMemoryStrategyDict(TypedDict): + user_preference_memory_strategy: ( + UserPreferenceMemoryStrategyInput | UserPreferenceMemoryStrategyInputDict + ) + """Input for creating a user preference memory strategy.""" + +class MemoryStrategyInputCustomMemoryStrategyDict(TypedDict): + custom_memory_strategy: CustomMemoryStrategyInput | CustomMemoryStrategyInputDict + """Input for creating a custom memory strategy.""" + +class MemoryStrategyInputEpisodicMemoryStrategyDict(TypedDict): + episodic_memory_strategy: ( + EpisodicMemoryStrategyInput | EpisodicMemoryStrategyInputDict + ) + """Input for creating an episodic memory strategy""" + +MemoryStrategyInputDict = Union[ + MemoryStrategyInputSemanticMemoryStrategyDict + | MemoryStrategyInputSummaryMemoryStrategyDict + | MemoryStrategyInputUserPreferenceMemoryStrategyDict + | MemoryStrategyInputCustomMemoryStrategyDict + | MemoryStrategyInputEpisodicMemoryStrategyDict +] +"""Dictionary form of `MemoryStrategyInput`, setting exactly one variant.""" + class MemoryStrategyStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" ACTIVE = "ACTIVE" @@ -1992,6 +2907,12 @@ class MessageBasedTriggerInput(_SerdeShape): message_count: int = ... """The number of messages that trigger memory processing.""" +class MessageBasedTriggerInputDict(TypedDict, total=False): + """Dictionary form of `MessageBasedTriggerInput`.""" + + message_count: int | None + """The number of messages that trigger memory processing.""" + @dataclass(kw_only=True) class MetadataConfiguration(_SerdeShape): """ @@ -2015,6 +2936,25 @@ class MetadataConfiguration(_SerdeShape): response back to the client. """ +class MetadataConfigurationDict(TypedDict, total=False): + """Dictionary form of `MetadataConfiguration`.""" + + allowed_request_headers: Sequence[str] | None + """ + A list of HTTP headers that are allowed to be propagated from incoming + client requests to the target. + """ + allowed_query_parameters: Sequence[str] | None + """ + A list of URL query parameters that are allowed to be propagated from + incoming gateway URL to the target. + """ + allowed_response_headers: Sequence[str] | None + """ + A list of HTTP headers that are allowed to be propagated from the target + response back to the client. + """ + @dataclass(kw_only=True) class MetadataSchemaEntry(_SerdeShape): """A metadata field definition within a strategy's schema.""" @@ -2037,6 +2977,27 @@ class MetadataSchemaEntry(_SerdeShape): content. Applicable only if extractionType is LLM inferred. """ +class MetadataSchemaEntryDict(TypedDict, total=False): + """Dictionary form of `MetadataSchemaEntry`.""" + + key: Required[str] + """ + The metadata field name. Must match an indexed key to be queryable via + metadata filters. + """ + type: str | None + """The MetadataValueType.""" + extraction_type: str | None + """ + Specifies whether the metadata value is extracted by the LLM or passed + through deterministically from the event. + """ + extraction_config: ExtractionConfig | ExtractionConfigDict | None + """ + Configuration for extracting this metadata value from conversational + content. Applicable only if extractionType is LLM inferred. + """ + class MetadataValueType(UnknownEnumMixin, StrEnum): STRING = "STRING" STRINGLIST = "STRINGLIST" @@ -2070,6 +3031,33 @@ class MicrosoftOauth2ProviderConfigInput(_SerdeShape): identity platform where your application is registered. """ +class MicrosoftOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `MicrosoftOauth2ProviderConfigInput`.""" + + client_id: Required[str] + """The client ID for the Microsoft OAuth2 provider.""" + client_secret: str | None + """The client secret for the Microsoft OAuth2 provider.""" + client_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None + """ + The source type of the client secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + tenant_id: str | None + """ + The Microsoft Entra ID (formerly Azure AD) tenant ID for your + organization. This identifies the specific tenant within Microsoft's + identity platform where your application is registered. + """ + @dataclass(kw_only=True) class MicrosoftOauth2ProviderConfigOutput(_SerdeShape): """Output configuration for a Microsoft OAuth2 provider.""" @@ -2092,6 +3080,15 @@ class ModelEntry(_SerdeShape): `anthropic.claude-opus-*` or `openai.gpt-oss-*`). """ +class ModelEntryDict(TypedDict, total=False): + """Dictionary form of `ModelEntry`.""" + + model: Required[str] + """ + The model ID or glob pattern that identifies the model (for example, + `anthropic.claude-opus-*` or `openai.gpt-oss-*`). + """ + @dataclass(kw_only=True) class ModelMapping(_SerdeShape): """ @@ -2102,6 +3099,12 @@ class ModelMapping(_SerdeShape): provider_prefix: ProviderPrefix | None = ... """The provider prefix configuration used for model ID translation.""" +class ModelMappingDict(TypedDict, total=False): + """Dictionary form of `ModelMapping`.""" + + provider_prefix: ProviderPrefix | ProviderPrefixDict | None + """The provider prefix configuration used for model ID translation.""" + @dataclass class ModifyConsolidationConfigurationCustomConsolidationConfiguration(_SerdeShape): """The updated custom consolidation configuration.""" @@ -2129,6 +3132,21 @@ class _ModifyConsolidationConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> ModifyConsolidationConfiguration: ... +class ModifyConsolidationConfigurationCustomConsolidationConfigurationDict(TypedDict): + custom_consolidation_configuration: ( + CustomConsolidationConfigurationInput + | CustomConsolidationConfigurationInputDict + ) + """The updated custom consolidation configuration.""" + +ModifyConsolidationConfigurationDict = Union[ + ModifyConsolidationConfigurationCustomConsolidationConfigurationDict +] +""" +Dictionary form of `ModifyConsolidationConfiguration`, setting exactly +one variant. +""" + @dataclass class ModifyExtractionConfigurationCustomExtractionConfiguration(_SerdeShape): """The updated custom extraction configuration.""" @@ -2156,6 +3174,20 @@ class _ModifyExtractionConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> ModifyExtractionConfiguration: ... +class ModifyExtractionConfigurationCustomExtractionConfigurationDict(TypedDict): + custom_extraction_configuration: ( + CustomExtractionConfigurationInput | CustomExtractionConfigurationInputDict + ) + """The updated custom extraction configuration.""" + +ModifyExtractionConfigurationDict = Union[ + ModifyExtractionConfigurationCustomExtractionConfigurationDict +] +""" +Dictionary form of `ModifyExtractionConfiguration`, setting exactly +one variant. +""" + @dataclass(kw_only=True) class ModifyInvocationConfigurationInput(_SerdeShape): """The configuration for updating invocation settings.""" @@ -2165,6 +3197,14 @@ class ModifyInvocationConfigurationInput(_SerdeShape): payload_delivery_bucket_name: str | None = ... """The updated S3 bucket name for event payload delivery.""" +class ModifyInvocationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInvocationConfigurationInput`.""" + + topic_arn: str | None + """The updated ARN of the SNS topic for job notifications.""" + payload_delivery_bucket_name: str | None + """The updated S3 bucket name for event payload delivery.""" + @dataclass(kw_only=True) class ModifyMemoryStrategies(_SerdeShape): """Contains information for modifying memory strategies.""" @@ -2176,6 +3216,22 @@ class ModifyMemoryStrategies(_SerdeShape): delete_memory_strategies: list[DeleteMemoryStrategyInput] | None = ... """The list of memory strategies to delete.""" +class ModifyMemoryStrategiesDict(TypedDict, total=False): + """Dictionary form of `ModifyMemoryStrategies`.""" + + add_memory_strategies: ( + Sequence[MemoryStrategyInput | MemoryStrategyInputDict] | None + ) + """The list of memory strategies to add.""" + modify_memory_strategies: ( + Sequence[ModifyMemoryStrategyInput | ModifyMemoryStrategyInputDict] | None + ) + """The list of memory strategies to modify.""" + delete_memory_strategies: ( + Sequence[DeleteMemoryStrategyInput | DeleteMemoryStrategyInputDict] | None + ) + """The list of memory strategies to delete.""" + @dataclass(kw_only=True) class ModifyMemoryStrategyInput(_SerdeShape): """Input for modifying a memory strategy.""" @@ -2205,6 +3261,36 @@ class ModifyMemoryStrategyInput(_SerdeShape): update. """ +class ModifyMemoryStrategyInputDict(TypedDict, total=False): + """Dictionary form of `ModifyMemoryStrategyInput`.""" + + memory_strategy_id: Required[str] + """The unique identifier of the memory strategy to modify.""" + description: str | None + """The updated description of the memory strategy.""" + namespaces: Sequence[str] | None + """ + This is a legacy parameter, use `namespaceTemplates`. The updated + namespaces for the memory strategy. + """ + namespace_templates: Sequence[str] | None + """The updated namespaceTemplates for the memory strategy.""" + configuration: ModifyStrategyConfiguration | ModifyStrategyConfigurationDict | None + """The updated configuration for the memory strategy.""" + memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None + """Updated metadata schema for records generated by this strategy.""" + record_expiry_specification: ( + RecordExpirySpecification | RecordExpirySpecificationDict | None + ) + """ + Updates or removes the record expiry (long-term memory time-to-live) for + this strategy. Set `recordExpiryDurationDays` to configure or update the + number of days after which records expire, or set `action` to `REMOVE` + to remove a previously configured time-to-live so that newer records no + longer expire. The change applies only to records created after the + update. + """ + @dataclass class ModifyReflectionConfigurationEpisodicReflectionConfiguration(_SerdeShape): """The updated episodic reflection configuration.""" @@ -2239,6 +3325,27 @@ class _ModifyReflectionConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> ModifyReflectionConfiguration: ... +class ModifyReflectionConfigurationEpisodicReflectionConfigurationDict(TypedDict): + episodic_reflection_configuration: ( + EpisodicReflectionConfigurationInput | EpisodicReflectionConfigurationInputDict + ) + """The updated episodic reflection configuration.""" + +class ModifyReflectionConfigurationCustomReflectionConfigurationDict(TypedDict): + custom_reflection_configuration: ( + CustomReflectionConfigurationInput | CustomReflectionConfigurationInputDict + ) + """The updated custom reflection configuration.""" + +ModifyReflectionConfigurationDict = Union[ + ModifyReflectionConfigurationEpisodicReflectionConfigurationDict + | ModifyReflectionConfigurationCustomReflectionConfigurationDict +] +""" +Dictionary form of `ModifyReflectionConfiguration`, setting exactly +one variant. +""" + @dataclass(kw_only=True) class ModifySelfManagedConfiguration(_SerdeShape): """The configuration for updating the self-managed memory strategy.""" @@ -2256,6 +3363,28 @@ class ModifySelfManagedConfiguration(_SerdeShape): context. """ +class ModifySelfManagedConfigurationDict(TypedDict, total=False): + """Dictionary form of `ModifySelfManagedConfiguration`.""" + + trigger_conditions: ( + Sequence[TriggerConditionInput | TriggerConditionInputDict] | None + ) + """The updated list of conditions that trigger memory processing.""" + invocation_configuration: ( + ModifyInvocationConfigurationInput + | ModifyInvocationConfigurationInputDict + | None + ) + """ + The updated configuration to invoke self-managed memory processing + pipeline. + """ + historical_context_window_size: int | None + """ + The updated number of historical messages to include in processing + context. + """ + @dataclass(kw_only=True) class ModifyStrategyConfiguration(_SerdeShape): """Contains information for modifying a strategy configuration.""" @@ -2269,6 +3398,22 @@ class ModifyStrategyConfiguration(_SerdeShape): self_managed_configuration: ModifySelfManagedConfiguration | None = ... """The updated self-managed configuration.""" +class ModifyStrategyConfigurationDict(TypedDict, total=False): + """Dictionary form of `ModifyStrategyConfiguration`.""" + + extraction: ModifyExtractionConfiguration | ModifyExtractionConfigurationDict | None + """The updated extraction configuration.""" + consolidation: ( + ModifyConsolidationConfiguration | ModifyConsolidationConfigurationDict | None + ) + """The updated consolidation configuration.""" + reflection: ModifyReflectionConfiguration | ModifyReflectionConfigurationDict | None + """The updated reflection configuration.""" + self_managed_configuration: ( + ModifySelfManagedConfiguration | ModifySelfManagedConfigurationDict | None + ) + """The updated self-managed configuration.""" + class Monitoring(UnknownEnumMixin, StrEnum): BASIC = "BASIC" DETAILED = "DETAILED" @@ -2288,6 +3433,17 @@ class NamespaceKeyEntry(_SerdeShape): at runtime (`CreateEvent` API). """ +class NamespaceKeyEntryDict(TypedDict, total=False): + """Dictionary form of `NamespaceKeyEntry`.""" + + key: Required[str] + """The namespace variable key name.""" + validation: NamespaceKeyValidation | NamespaceKeyValidationDict | None + """ + The validation rules that constrain values for this namespace variable + at runtime (`CreateEvent` API). + """ + @dataclass(kw_only=True) class NamespaceKeyValidation(_SerdeShape): """ @@ -2301,6 +3457,14 @@ class NamespaceKeyValidation(_SerdeShape): regex_pattern: str | None = ... """A regex pattern that the namespace variable key-value must match.""" +class NamespaceKeyValidationDict(TypedDict, total=False): + """Dictionary form of `NamespaceKeyValidation`.""" + + allowed_values: Sequence[str] | None + """The allowed values for this namespace variable key.""" + regex_pattern: str | None + """A regex pattern that the namespace variable key-value must match.""" + @dataclass(kw_only=True) class NetworkConfiguration(_SerdeShape): """SecurityConfig for the Agent.""" @@ -2310,6 +3474,14 @@ class NetworkConfiguration(_SerdeShape): network_mode_config: VpcConfig | None = ... """The network mode configuration for the AgentCore Runtime.""" +class NetworkConfigurationDict(TypedDict, total=False): + """Dictionary form of `NetworkConfiguration`.""" + + network_mode: Required[str] + """The network mode for the AgentCore Runtime.""" + network_mode_config: VpcConfig | VpcConfigDict | None + """The network mode configuration for the AgentCore Runtime.""" + class NetworkMode(UnknownEnumMixin, StrEnum): PUBLIC = "PUBLIC" VPC = "VPC" @@ -2323,6 +3495,14 @@ class NumberValidation(_SerdeShape): max_value: float | None = ... """Maximum allowed value.""" +class NumberValidationDict(TypedDict, total=False): + """Dictionary form of `NumberValidation`.""" + + min_value: float | None + """Minimum allowed value.""" + max_value: float | None + """Maximum allowed value.""" + @dataclass(kw_only=True) class NumericalScaleDefinition(_SerdeShape): """ @@ -2340,6 +3520,19 @@ class NumericalScaleDefinition(_SerdeShape): label: str """The label or name that describes this numerical rating option.""" +class NumericalScaleDefinitionDict(TypedDict, total=False): + """Dictionary form of `NumericalScaleDefinition`.""" + + definition: Required[str] + """ + The description that explains what this numerical rating represents and + when it should be used. + """ + value: Required[float] + """The numerical value for this rating scale option.""" + label: Required[str] + """The label or name that describes this numerical rating option.""" + @dataclass(kw_only=True) class OAuth2AuthorizationData(_SerdeShape): """ @@ -2377,6 +3570,24 @@ class Oauth2AuthorizationServerMetadata(_SerdeShape): authorization server. """ +class Oauth2AuthorizationServerMetadataDict(TypedDict, total=False): + """Dictionary form of `Oauth2AuthorizationServerMetadata`.""" + + issuer: Required[str] + """The issuer URL for the OAuth2 authorization server.""" + authorization_endpoint: Required[str] + """The authorization endpoint URL for the OAuth2 authorization server.""" + token_endpoint: Required[str] + """The token endpoint URL for the OAuth2 authorization server.""" + response_types: Sequence[str] | None + """The supported response types for the OAuth2 authorization server.""" + token_endpoint_auth_methods: Sequence[str] | None + """ + The authentication methods supported by the token endpoint. This + specifies how clients can authenticate when requesting tokens from the + authorization server. + """ + @dataclass(kw_only=True) class Oauth2CredentialProviderItem(_SerdeShape): """Contains information about an OAuth2 credential provider.""" @@ -2424,6 +3635,21 @@ Oauth2Discovery = Union[ class _Oauth2DiscoveryDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Oauth2Discovery: ... +class Oauth2DiscoveryDiscoveryUrlDict(TypedDict): + discovery_url: str + """The discovery URL for the OAuth2 provider.""" + +class Oauth2DiscoveryAuthorizationServerMetadataDict(TypedDict): + authorization_server_metadata: ( + Oauth2AuthorizationServerMetadata | Oauth2AuthorizationServerMetadataDict + ) + """The authorization server metadata for the OAuth2 provider.""" + +Oauth2DiscoveryDict = Union[ + Oauth2DiscoveryDiscoveryUrlDict | Oauth2DiscoveryAuthorizationServerMetadataDict +] +"""Dictionary form of `Oauth2Discovery`, setting exactly one variant.""" + @dataclass class Oauth2ProviderConfigInputCustomOauth2ProviderConfig(_SerdeShape): """The configuration for a custom OAuth2 provider.""" @@ -2511,6 +3737,80 @@ class _Oauth2ProviderConfigInputDeserializer: self, deserializer: ShapeDeserializer ) -> Oauth2ProviderConfigInput: ... +class Oauth2ProviderConfigInputCustomOauth2ProviderConfigDict(TypedDict): + custom_oauth2_provider_config: ( + CustomOauth2ProviderConfigInput | CustomOauth2ProviderConfigInputDict + ) + """The configuration for a custom OAuth2 provider.""" + +class Oauth2ProviderConfigInputGoogleOauth2ProviderConfigDict(TypedDict): + google_oauth2_provider_config: ( + GoogleOauth2ProviderConfigInput | GoogleOauth2ProviderConfigInputDict + ) + """The configuration for a Google OAuth2 provider.""" + +class Oauth2ProviderConfigInputGithubOauth2ProviderConfigDict(TypedDict): + github_oauth2_provider_config: ( + GithubOauth2ProviderConfigInput | GithubOauth2ProviderConfigInputDict + ) + """The configuration for a GitHub OAuth2 provider.""" + +class Oauth2ProviderConfigInputSlackOauth2ProviderConfigDict(TypedDict): + slack_oauth2_provider_config: ( + SlackOauth2ProviderConfigInput | SlackOauth2ProviderConfigInputDict + ) + """The configuration for a Slack OAuth2 provider.""" + +class Oauth2ProviderConfigInputSalesforceOauth2ProviderConfigDict(TypedDict): + salesforce_oauth2_provider_config: ( + SalesforceOauth2ProviderConfigInput | SalesforceOauth2ProviderConfigInputDict + ) + """The configuration for a Salesforce OAuth2 provider.""" + +class Oauth2ProviderConfigInputMicrosoftOauth2ProviderConfigDict(TypedDict): + microsoft_oauth2_provider_config: ( + MicrosoftOauth2ProviderConfigInput | MicrosoftOauth2ProviderConfigInputDict + ) + """The configuration for a Microsoft OAuth2 provider.""" + +class Oauth2ProviderConfigInputAtlassianOauth2ProviderConfigDict(TypedDict): + atlassian_oauth2_provider_config: ( + AtlassianOauth2ProviderConfigInput | AtlassianOauth2ProviderConfigInputDict + ) + """Configuration settings for Atlassian OAuth2 provider integration.""" + +class Oauth2ProviderConfigInputLinkedinOauth2ProviderConfigDict(TypedDict): + linkedin_oauth2_provider_config: ( + LinkedinOauth2ProviderConfigInput | LinkedinOauth2ProviderConfigInputDict + ) + """Configuration settings for LinkedIn OAuth2 provider integration.""" + +class Oauth2ProviderConfigInputIncludedOauth2ProviderConfigDict(TypedDict): + included_oauth2_provider_config: ( + IncludedOauth2ProviderConfigInput | IncludedOauth2ProviderConfigInputDict + ) + """ + The configuration for a non-custom OAuth2 provider. This includes + settings for supported OAuth2 providers that have built-in integration + support. + """ + +Oauth2ProviderConfigInputDict = Union[ + Oauth2ProviderConfigInputCustomOauth2ProviderConfigDict + | Oauth2ProviderConfigInputGoogleOauth2ProviderConfigDict + | Oauth2ProviderConfigInputGithubOauth2ProviderConfigDict + | Oauth2ProviderConfigInputSlackOauth2ProviderConfigDict + | Oauth2ProviderConfigInputSalesforceOauth2ProviderConfigDict + | Oauth2ProviderConfigInputMicrosoftOauth2ProviderConfigDict + | Oauth2ProviderConfigInputAtlassianOauth2ProviderConfigDict + | Oauth2ProviderConfigInputLinkedinOauth2ProviderConfigDict + | Oauth2ProviderConfigInputIncludedOauth2ProviderConfigDict +] +""" +Dictionary form of `Oauth2ProviderConfigInput`, setting exactly one +variant. +""" + @dataclass class Oauth2ProviderConfigOutputCustomOauth2ProviderConfig(_SerdeShape): """The output configuration for a custom OAuth2 provider.""" @@ -2641,6 +3941,44 @@ class OAuthCredentialProvider(_SerdeShape): authorization code. Generally points to the customer's application. """ +class OAuthCredentialProviderDict(TypedDict, total=False): + """Dictionary form of `OAuthCredentialProvider`.""" + + provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the OAuth credential provider. This + ARN identifies the provider in Amazon Web Services. + """ + scopes: Required[Sequence[str]] + """ + The OAuth scopes for the credential provider. These scopes define the + level of access requested from the OAuth provider. + """ + custom_parameters: Mapping[str, str] | None + """ + The custom parameters for the OAuth credential provider. These + parameters provide additional configuration for the OAuth authentication + process. + """ + grant_type: str | None + """ + Specifies the kind of credentials to use for authorization: + + - `CLIENT_CREDENTIALS` - Authorization with a client ID and secret. + + - `AUTHORIZATION_CODE` - Authorization with a token that is specific to + an individual end user. + + - `TOKEN_EXCHANGE` - Authorization using on-behalf-of token exchange. An + inbound user token is exchanged for a downstream access token scoped + to the target audience. + """ + default_return_url: str | None + """ + The URL where the end user's browser is redirected after obtaining the + authorization code. Generally points to the customer's application. + """ + class OAuthGrantType(UnknownEnumMixin, StrEnum): CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" AUTHORIZATION_CODE = "AUTHORIZATION_CODE" @@ -2660,6 +3998,16 @@ class OnBehalfOfAuthenticationConfig(_SerdeShape): during the on-behalf-of token exchange with the identity provider. """ +class OnBehalfOfAuthenticationConfigDict(TypedDict, total=False): + """Dictionary form of `OnBehalfOfAuthenticationConfig`.""" + + client_authentication_method: Required[str] + """ + The client authentication method to use during the on-behalf-of token + exchange. The `NO_CLIENT` option omits the `clientId` and `clientSecret` + during the on-behalf-of token exchange with the identity provider. + """ + class OnBehalfOfClientAuthenticationMethod(UnknownEnumMixin, StrEnum): NO_CLIENT = "NO_CLIENT" @@ -2680,6 +4028,26 @@ class OnBehalfOfTokenExchangeConfigType(_SerdeShape): configuration, we use the provider level client authentication method. """ +class OnBehalfOfTokenExchangeConfigTypeDict(TypedDict, total=False): + """Dictionary form of `OnBehalfOfTokenExchangeConfigType`.""" + + grant_type: Required[str] + """The grant type for the on-behalf-of token exchange.""" + token_exchange_grant_type_config: ( + TokenExchangeGrantTypeConfigType | TokenExchangeGrantTypeConfigTypeDict | None + ) + """Configuration specific to the TOKEN_EXCHANGE grant type (RFC 8693).""" + on_behalf_of_authentication_config: ( + OnBehalfOfAuthenticationConfig | OnBehalfOfAuthenticationConfigDict | None + ) + """ + Specify the client authentication configuration to use for the + on-behalf-of token exchange. With this configuration, you override the + provider level client authentication method for the on-behalf-of + exchange with the identity provider. If you don't specify this + configuration, we use the provider level client authentication method. + """ + class OnBehalfOfTokenExchangeGrantTypeType(UnknownEnumMixin, StrEnum): TOKEN_EXCHANGE = "TOKEN_EXCHANGE" """ @@ -2769,6 +4137,32 @@ class OpenResponsesEvaluatorModelConfig(_SerdeShape): ignore this configuration. """ +class OpenResponsesEvaluatorModelConfigDict(TypedDict, total=False): + """Dictionary form of `OpenResponsesEvaluatorModelConfig`.""" + + model_id: Required[str] + """The identifier of the model to use for evaluation.""" + max_output_tokens: int | None + """ + The maximum number of tokens to generate in the model response, + including visible output and reasoning tokens. + """ + temperature: float | None + """ + The temperature value that controls randomness in the model's + responses. Lower values produce more deterministic outputs. + """ + top_p: float | None + """ + The top-p sampling parameter that controls the diversity of the model's + responses by limiting the cumulative probability of token choices. + """ + reasoning: ReasoningConfiguration | ReasoningConfigurationDict | None + """ + The reasoning configuration for reasoning models. Non-reasoning models + ignore this configuration. + """ + class OperatingSystem(UnknownEnumMixin, StrEnum): """ The operating system and CPU architecture for capacity provider @@ -2791,6 +4185,15 @@ class OutputConfig(_SerdeShape): CloudWatch logs with embedded metric format. """ +class OutputConfigDict(TypedDict, total=False): + """Dictionary form of `OutputConfig`.""" + + cloud_watch_config: Required[CloudWatchOutputConfig | CloudWatchOutputConfigDict] + """ + The CloudWatch configuration for writing evaluation results to + CloudWatch logs with embedded metric format. + """ + class OverrideType(UnknownEnumMixin, StrEnum): SEMANTIC_OVERRIDE = "SEMANTIC_OVERRIDE" SUMMARY_OVERRIDE = "SUMMARY_OVERRIDE" @@ -2861,6 +4264,61 @@ class PassthroughTargetConfiguration(_SerdeShape): overriding the client-supplied value for that parameter name. """ +class PassthroughTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `PassthroughTargetConfiguration`.""" + + endpoint: Required[str] + """ + The HTTPS endpoint that the gateway forwards requests to for this + passthrough target. + """ + protocol_type: Required[str] + """ + The application protocol that the passthrough target implements. This + value is required for passthrough targets: + + - `MCP` - The Model Context Protocol. + + - `A2A` - The Agent-to-Agent protocol. + + - `INFERENCE` - The protocol for routing requests to a large language + model (LLM) provider. + + - `CUSTOM` - A custom application protocol. + """ + schema: HttpApiSchemaConfiguration | HttpApiSchemaConfigurationDict | None + """ + The API schema configuration that defines the structure of the + passthrough target's API. + """ + stickiness_configuration: ( + StickinessConfiguration | StickinessConfigurationDict | None + ) + """ + The session stickiness configuration for the passthrough target. This + configuration routes requests within the same session to the same + target. + """ + static_query_parameters: Mapping[str, str] | None + """ + A map of static query parameters that the gateway always appends to the + outbound URL when forwarding requests to the target. The total outbound + URL length, which includes the endpoint and the percent-encoded query + parameters, is enforced by the service. + """ + static_query_parameter_conflict_resolution: str | None + """ + Controls precedence when a client request supplies a query parameter + whose name matches a configured static query parameter. If not set, + defaults to `CLIENT_OVERRIDE`: + + - `CLIENT_OVERRIDE` - The client-supplied value overrides the configured + static value for that parameter name. + + - `STATIC_OVERRIDE` - The configured static value is retained, + overriding the client-supplied value for that parameter name. + """ + class PaymentConnectorProvisionMode(UnknownEnumMixin, StrEnum): MANUAL = "MANUAL" QUICK_CREATE = "QUICK_CREATE" @@ -2930,6 +4388,15 @@ class PaymentCredentialProviderConfiguration(_SerdeShape): the authentication credentials for the payment provider. """ +class PaymentCredentialProviderConfigurationDict(TypedDict, total=False): + """Dictionary form of `PaymentCredentialProviderConfiguration`.""" + + credential_provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the credential provider that stores + the authentication credentials for the payment provider. + """ + @dataclass(kw_only=True) class PaymentCredentialProviderItem(_SerdeShape): """Contains summary information about a payment credential provider.""" @@ -3043,6 +4510,27 @@ class _PaymentProviderConfigurationInputDeserializer: self, deserializer: ShapeDeserializer ) -> PaymentProviderConfigurationInput: ... +class PaymentProviderConfigurationInputCoinbaseCdpConfigurationDict(TypedDict): + coinbase_cdp_configuration: ( + CoinbaseCdpConfigurationInput | CoinbaseCdpConfigurationInputDict + ) + """The Coinbase CDP configuration.""" + +class PaymentProviderConfigurationInputStripePrivyConfigurationDict(TypedDict): + stripe_privy_configuration: ( + StripePrivyConfigurationInput | StripePrivyConfigurationInputDict + ) + """The Stripe Privy configuration.""" + +PaymentProviderConfigurationInputDict = Union[ + PaymentProviderConfigurationInputCoinbaseCdpConfigurationDict + | PaymentProviderConfigurationInputStripePrivyConfigurationDict +] +""" +Dictionary form of `PaymentProviderConfigurationInput`, setting +exactly one variant. +""" + @dataclass class PaymentProviderConfigurationOutputCoinbaseCdpConfiguration(_SerdeShape): """The Coinbase CDP configuration.""" @@ -3106,6 +4594,17 @@ class PermissionsConfiguration(_SerdeShape): this role to the minimum permissions that your workloads require. """ +class PermissionsConfigurationDict(TypedDict, total=False): + """Dictionary form of `PermissionsConfiguration`.""" + + capacity_provider_operator_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role that AgentCore assumes to + manage the capacity provider, including launching, tagging, and + terminating instances and their network interfaces. We recommend scoping + this role to the minimum permissions that your workloads require. + """ + @dataclass(kw_only=True) class Policy(_SerdeShape): """ @@ -3246,6 +4745,48 @@ languages that can be used to define access control rules. class _PolicyDefinitionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PolicyDefinition: ... +class PolicyDefinitionCedarDict(TypedDict): + cedar: CedarPolicy | CedarPolicyDict + """ + The Cedar policy definition within the policy definition structure. This + contains the Cedar policy statement that defines the authorization logic + using Cedar's human-readable, analyzable policy language. Cedar + policies specify principals (who can access), actions (what operations + are allowed), resources (what can be accessed), and optional conditions + for fine-grained control. Cedar provides a formal policy language + designed for authorization with deterministic evaluation, making + policies testable, reviewable, and auditable. All Cedar policies follow + a default-deny model where actions are denied unless explicitly + permitted, and forbid policies always override permit policies. + """ + +class PolicyDefinitionPolicyGenerationDict(TypedDict): + policy_generation: PolicyGenerationDetails | PolicyGenerationDetailsDict + """ + The generated policy asset information within the policy definition + structure. This contains information identifying a generated policy + asset from the AI-powered policy generation process within the AgentCore + Policy system. Each asset contains a Dogwood policy statement generated + from natural language input, along with associated metadata and analysis + findings to help users evaluate and select the most appropriate policy + option. + """ + +class PolicyDefinitionPolicyDict(TypedDict): + policy: PolicyStatement | PolicyStatementDict + """ + The Dogwood policy statement that defines the access control rules. This + policy definition can include Dogwood policies and supports temporal + conditions and information providers such as guardrails. + """ + +PolicyDefinitionDict = Union[ + PolicyDefinitionCedarDict + | PolicyDefinitionPolicyGenerationDict + | PolicyDefinitionPolicyDict +] +"""Dictionary form of `PolicyDefinition`, setting exactly one variant.""" + @dataclass(kw_only=True) class PolicyEngine(_SerdeShape): """ @@ -3451,6 +4992,17 @@ class PolicyGenerationDetails(_SerdeShape): generation request. """ +class PolicyGenerationDetailsDict(TypedDict, total=False): + """Dictionary form of `PolicyGenerationDetails`.""" + + policy_generation_id: Required[str] + """The unique identifier for this policy generation request.""" + policy_generation_asset_id: Required[str] + """ + The unique identifier for this generated policy asset within the policy + generation request. + """ + class PolicyGenerationStatus(UnknownEnumMixin, StrEnum): GENERATING = "GENERATING" GENERATED = "GENERATED" @@ -3503,6 +5055,16 @@ class PolicyStatement(_SerdeShape): guardrails definition. """ +class PolicyStatementDict(TypedDict, total=False): + """Dictionary form of `PolicyStatement`.""" + + statement: Required[str] + """ + The body of the AgentCore Cedar or Dogwood policy statement. Contains + the policy logic, which can be a Cedar policy, a temporal policy, or a + guardrails definition. + """ + class PolicyStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" ACTIVE = "ACTIVE" @@ -3555,6 +5117,14 @@ class PortRange(_SerdeShape): to: int """The last port in the inclusive range.""" +class PortRangeDict(TypedDict, total=False): + """Dictionary form of `PortRange`.""" + + from_: Required[int] + """The first port in the inclusive range.""" + to: Required[int] + """The last port in the inclusive range.""" + class PrincipalMatchOperator(UnknownEnumMixin, StrEnum): STRING_EQUALS = "StringEquals" STRING_LIKE = "StringLike" @@ -3601,6 +5171,29 @@ gateway connects to private resources in your VPC. class _PrivateEndpointDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PrivateEndpoint: ... +class PrivateEndpointSelfManagedLatticeResourceDict(TypedDict): + self_managed_lattice_resource: ( + SelfManagedLatticeResource | SelfManagedLatticeResourceDict + ) + """ + Configuration for connecting to a private resource using a self-managed + VPC Lattice resource configuration. + """ + +class PrivateEndpointManagedVpcResourceDict(TypedDict): + managed_vpc_resource: ManagedVpcResource | ManagedVpcResourceDict + """ + Configuration for connecting to a private resource using a managed VPC + Lattice resource. The gateway creates and manages the VPC Lattice + resources on your behalf. + """ + +PrivateEndpointDict = Union[ + PrivateEndpointSelfManagedLatticeResourceDict + | PrivateEndpointManagedVpcResourceDict +] +"""Dictionary form of `PrivateEndpoint`, setting exactly one variant.""" + @dataclass(kw_only=True) class PrivateEndpointOverride(_SerdeShape): """ @@ -3613,23 +5206,53 @@ class PrivateEndpointOverride(_SerdeShape): private_endpoint: PrivateEndpoint """The private endpoint configuration for the specified domain.""" -@dataclass(kw_only=True) -class PrivateKeyJwtConfig(_SerdeShape): - """The private key configuration for private_key_jwt client authentication.""" +class PrivateEndpointOverrideDict(TypedDict, total=False): + """Dictionary form of `PrivateEndpointOverride`.""" + + domain: Required[str] + """The domain to override with a private endpoint.""" + private_endpoint: Required[PrivateEndpoint | PrivateEndpointDict] + """The private endpoint configuration for the specified domain.""" + +@dataclass(kw_only=True) +class PrivateKeyJwtConfig(_SerdeShape): + """The private key configuration for private_key_jwt client authentication.""" + + private_key_source: PrivateKeySource | None = ... + """The private key source for the JWT client assertion.""" + signing_algorithm: str | None = ... + """ + The algorithm used to sign the JWT client assertion. Valid values are + `RS256`, `PS256`, and `ES256`. + """ + additional_header_claims: dict[str, str] | None = ... + """ + A map of additional claims to include in the JWT client assertion + header. Standard header claims such as `alg` and `typ` cannot be added. + """ + additional_payload_claims: dict[str, str] | None = ... + """ + A map of additional claims to include in the JWT client assertion + payload. Payload claims generated by the service, such as `iss`, `sub`, + `jti`, and `exp`, cannot be added. + """ + +class PrivateKeyJwtConfigDict(TypedDict, total=False): + """Dictionary form of `PrivateKeyJwtConfig`.""" - private_key_source: PrivateKeySource | None = ... + private_key_source: PrivateKeySource | PrivateKeySourceDict | None """The private key source for the JWT client assertion.""" - signing_algorithm: str | None = ... + signing_algorithm: str | None """ The algorithm used to sign the JWT client assertion. Valid values are `RS256`, `PS256`, and `ES256`. """ - additional_header_claims: dict[str, str] | None = ... + additional_header_claims: Mapping[str, str] | None """ A map of additional claims to include in the JWT client assertion header. Standard header claims such as `alg` and `typ` cannot be added. """ - additional_payload_claims: dict[str, str] | None = ... + additional_payload_claims: Mapping[str, str] | None """ A map of additional claims to include in the JWT client assertion payload. Payload claims generated by the service, such as `iss`, `sub`, @@ -3661,6 +5284,13 @@ assertion. class _PrivateKeySourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PrivateKeySource: ... +class PrivateKeySourceKmsKeySourceDict(TypedDict): + kms_key_source: KmsKeySourceType | KmsKeySourceTypeDict + """The KMS key source for the JWT client assertion.""" + +PrivateKeySourceDict = Union[PrivateKeySourceKmsKeySourceDict] +"""Dictionary form of `PrivateKeySource`, setting exactly one variant.""" + @dataclass(kw_only=True) class ProtocolConfiguration(_SerdeShape): """ @@ -3687,6 +5317,28 @@ class ProtocolConfiguration(_SerdeShape): `HTTP` and `AGUI`, `/mcp` for `MCP`, and `/` for `A2A`. """ +class ProtocolConfigurationDict(TypedDict, total=False): + """Dictionary form of `ProtocolConfiguration`.""" + + server_protocol: Required[str] + """ + The server protocol for the agent runtime. This field specifies which + protocol the agent runtime uses to communicate with clients. + """ + port: int | None + """ + The port on which the agent server listens. The port must be between + `8000` and `12000`, excluding the reserved port `8443`. When this field + is omitted, the default is `8080` for `HTTP` and `AGUI`, `8000` for + `MCP`, and `9000` for `A2A`. + """ + path: str | None + """ + The path on which the agent server accepts requests. The path must begin + with `/`. When this field is omitted, the default is `/invocations` for + `HTTP` and `AGUI`, `/mcp` for `MCP`, and `/` for `A2A`. + """ + class Provider(UnknownEnumMixin, StrEnum): AWS = "AWS" DEEP_EVAL = "DeepEval" @@ -3712,6 +5364,21 @@ class ProviderPrefix(_SerdeShape): name (for example, `.`). The default is `.`. """ +class ProviderPrefixDict(TypedDict, total=False): + """Dictionary form of `ProviderPrefix`.""" + + strip: bool | None + """ + Whether clients can omit the provider prefix from model IDs. If `true`, + the gateway accepts model IDs without the prefix and restores the full + prefixed form before forwarding to the provider. The default is `false`. + """ + separator: str | None + """ + The single character that separates the provider prefix from the model + name (for example, `.`). The default is `.`. + """ + @dataclass(kw_only=True) class PutResourcePolicyInput(_SerdeShape): """Dataclass for PutResourcePolicyInput structure.""" @@ -3724,6 +5391,17 @@ class PutResourcePolicyInput(_SerdeShape): policy: str | None = ... """The resource policy to create or update.""" +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource for which to create or + update the resource policy. + """ + policy: Required[str] + """The resource policy to create or update.""" + @dataclass(kw_only=True) class PutResourcePolicyOutput(_SerdeShape): """Dataclass for PutResourcePolicyOutput structure.""" @@ -3761,6 +5439,25 @@ class RateConfig(_SerdeShape): - `minute`---Measures the rate limit over a one-minute window. """ +class RateConfigDict(TypedDict, total=False): + """Dictionary form of `RateConfig`.""" + + rate: Required[float] + """ + The rate value for the limit. For request limits, this is the number of + requests allowed per period. For token limits, this is the number of + tokens allowed per period. For connection limits, this is the number of + concurrent connections allowed. + """ + period: Required[str] + """ + The time period for the rate limit. Valid values: + + - `second`---Measures the rate limit over a one-second window. + + - `minute`---Measures the rate limit over a one-minute window. + """ + @dataclass class RatingScaleNumerical(_SerdeShape): """ @@ -3813,6 +5510,35 @@ performance, supporting both numerical and categorical scales. class _RatingScaleDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RatingScale: ... +class RatingScaleNumericalDict(TypedDict): + numerical: Sequence[NumericalScaleDefinition | NumericalScaleDefinitionDict] + """ + The numerical rating scale with defined score values and descriptions + for quantitative evaluation. + """ + +class RatingScaleCategoricalDict(TypedDict): + categorical: Sequence[CategoricalScaleDefinition | CategoricalScaleDefinitionDict] + """ + The categorical rating scale with named categories and definitions for + qualitative evaluation. + """ + +class RatingScaleMultiDimensionalDict(TypedDict): + multi_dimensional: Sequence[EvaluationDimension | EvaluationDimensionDict] + """ + A list of dimensions that lets an LLM-as-a-judge evaluator score several + dimensions of the same target in a single evaluation. Each dimension has + its own instruction and rating scale, and produces its own result. + """ + +RatingScaleDict = Union[ + RatingScaleNumericalDict + | RatingScaleCategoricalDict + | RatingScaleMultiDimensionalDict +] +"""Dictionary form of `RatingScale`, setting exactly one variant.""" + @dataclass(kw_only=True) class ReasoningConfiguration(_SerdeShape): """ @@ -3826,6 +5552,15 @@ class ReasoningConfiguration(_SerdeShape): response. For supported values, see the model provider's documentation. """ +class ReasoningConfigurationDict(TypedDict, total=False): + """Dictionary form of `ReasoningConfiguration`.""" + + effort: str | None + """ + The level of reasoning effort the model applies when generating a + response. For supported values, see the model provider's documentation. + """ + class RecordExpiryAction(UnknownEnumMixin, StrEnum): """ The action to apply to a strategy's record expiry (long-term memory @@ -3884,6 +5619,31 @@ class _RecordExpirySpecificationDeserializer: self, deserializer: ShapeDeserializer ) -> RecordExpirySpecification: ... +class RecordExpirySpecificationRecordExpiryDurationDaysDict(TypedDict): + record_expiry_duration_days: int + """ + The duration, in days, after which memory records generated by this + strategy expire. The minimum is 31 days. + """ + +class RecordExpirySpecificationActionDict(TypedDict): + action: str + """ + The action to apply to the existing record expiry (long-term memory + time-to-live) configuration. Set to `REMOVE` to remove a previously + configured time-to-live so that newer records no longer expire. This + value is not applicable on create paths. + """ + +RecordExpirySpecificationDict = Union[ + RecordExpirySpecificationRecordExpiryDurationDaysDict + | RecordExpirySpecificationActionDict +] +""" +Dictionary form of `RecordExpirySpecification`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class RecordingConfig(_SerdeShape): """ @@ -3902,6 +5662,20 @@ class RecordingConfig(_SerdeShape): location contains the recorded browser sessions. """ +class RecordingConfigDict(TypedDict, total=False): + """Dictionary form of `RecordingConfig`.""" + + enabled: bool | None + """ + Indicates whether recording is enabled for the browser. When set to + true, browser sessions are recorded. + """ + s3_location: S3Location | S3LocationDict | None + """ + The Amazon S3 location where browser recordings are stored. This + location contains the recorded browser sessions. + """ + @dataclass class ReflectionConfigurationCustomReflectionConfiguration(_SerdeShape): """The configuration for a custom reflection strategy.""" @@ -3962,6 +5736,27 @@ class RegistryRecordCredentialProviderConfiguration(_SerdeShape): the `credentialProviderType`. """ +class RegistryRecordCredentialProviderConfigurationDict(TypedDict, total=False): + """Dictionary form of `RegistryRecordCredentialProviderConfiguration`.""" + + credential_provider_type: Required[str] + """ + The type of credential provider. + + - `OAUTH` - OAuth-based authentication. + + - `IAM` - Amazon Web Services IAM-based authentication using SigV4 + signing. + """ + credential_provider: Required[ + RegistryRecordCredentialProviderUnion + | RegistryRecordCredentialProviderUnionDict + ] + """ + The credential provider configuration details. The structure depends on + the `credentialProviderType`. + """ + class RegistryRecordCredentialProviderType(UnknownEnumMixin, StrEnum): OAUTH = "OAUTH" IAM = "IAM" @@ -4009,6 +5804,34 @@ class _RegistryRecordCredentialProviderUnionDeserializer: self, deserializer: ShapeDeserializer ) -> RegistryRecordCredentialProviderUnion: ... +class RegistryRecordCredentialProviderUnionOauthCredentialProviderDict(TypedDict): + oauth_credential_provider: ( + RegistryRecordOAuthCredentialProvider + | RegistryRecordOAuthCredentialProviderDict + ) + """ + The OAuth credential provider configuration for authenticating with the + external source. + """ + +class RegistryRecordCredentialProviderUnionIamCredentialProviderDict(TypedDict): + iam_credential_provider: ( + RegistryRecordIamCredentialProvider | RegistryRecordIamCredentialProviderDict + ) + """ + The IAM credential provider configuration for authenticating with the + external source using SigV4 signing. + """ + +RegistryRecordCredentialProviderUnionDict = Union[ + RegistryRecordCredentialProviderUnionOauthCredentialProviderDict + | RegistryRecordCredentialProviderUnionIamCredentialProviderDict +] +""" +Dictionary form of `RegistryRecordCredentialProviderUnion`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class RegistryRecordIamCredentialProvider(_SerdeShape): """ @@ -4033,6 +5856,26 @@ class RegistryRecordIamCredentialProvider(_SerdeShape): server URL hostname, with fallback to the service's own region. """ +class RegistryRecordIamCredentialProviderDict(TypedDict, total=False): + """Dictionary form of `RegistryRecordIamCredentialProvider`.""" + + role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role to assume for SigV4 + signing. + """ + service: str | None + """ + The SigV4 signing service name (for example, `execute-api` or + `bedrock-agentcore`). + """ + region: str | None + """ + The Amazon Web Services region for SigV4 signing (for example, + `us-west-2`). If not specified, the region is extracted from the MCP + server URL hostname, with fallback to the service's own region. + """ + @dataclass(kw_only=True) class RegistryRecordOAuthCredentialProvider(_SerdeShape): """ @@ -4052,6 +5895,21 @@ class RegistryRecordOAuthCredentialProvider(_SerdeShape): custom_parameters: dict[str, str] | None = ... """Additional custom parameters for the OAuth flow.""" +class RegistryRecordOAuthCredentialProviderDict(TypedDict, total=False): + """Dictionary form of `RegistryRecordOAuthCredentialProvider`.""" + + provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the OAuth credential provider + resource. + """ + grant_type: str | None + """The OAuth grant type. Currently only `CLIENT_CREDENTIALS` is supported.""" + scopes: Sequence[str] | None + """The OAuth scopes to request during authentication.""" + custom_parameters: Mapping[str, str] | None + """Additional custom parameters for the OAuth flow.""" + class RegistryRecordOAuthGrantType(UnknownEnumMixin, StrEnum): CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" @@ -4176,6 +6034,21 @@ class _RequestHeaderConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> RequestHeaderConfiguration: ... +class RequestHeaderConfigurationRequestHeaderAllowlistDict(TypedDict): + request_header_allowlist: Sequence[str] + """ + A list of HTTP request headers that are allowed to be passed through to + the runtime. + """ + +RequestHeaderConfigurationDict = Union[ + RequestHeaderConfigurationRequestHeaderAllowlistDict +] +""" +Dictionary form of `RequestHeaderConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ResetTokenVaultKeyMaterialInput(_SerdeShape): """Dataclass for ResetTokenVaultKeyMaterialInput structure.""" @@ -4186,6 +6059,15 @@ class ResetTokenVaultKeyMaterialInput(_SerdeShape): account's default token vault, specify `default`. """ +class ResetTokenVaultKeyMaterialInputDict(TypedDict, total=False): + """Dictionary form of `ResetTokenVaultKeyMaterialInput`.""" + + token_vault_id: Required[str] + """ + The unique identifier of the token vault to reset. To reset your + account's default token vault, specify `default`. + """ + @dataclass(kw_only=True) class ResetTokenVaultKeyMaterialOutput(_SerdeShape): """Dataclass for ResetTokenVaultKeyMaterialOutput structure.""" @@ -4237,6 +6119,17 @@ supported as resources for policy enforcement. class _ResourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Resource: ... +class ResourceArnDict(TypedDict): + arn: str + """ + The Amazon Resource Name (ARN) of the resource. This globally unique + identifier specifies the exact resource that policies will be evaluated + against for access control decisions. + """ + +ResourceDict = Union[ResourceArnDict] +"""Dictionary form of `Resource`, setting exactly one variant.""" + @dataclass(kw_only=True) class ResourceConfiguration(_SerdeShape): """The resource configuration for an AgentCore Runtime.""" @@ -4247,6 +6140,15 @@ class ResourceConfiguration(_SerdeShape): Runtime. """ +class ResourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `ResourceConfiguration`.""" + + minimum_memory_in_mi_b: Required[int] + """ + The minimum amount of memory, in mebibytes, to allocate to the AgentCore + Runtime. + """ + @dataclass(kw_only=True) class ResourceLimitExceededException(ServiceError, _SerdeShape): """Exception thrown when a resource limit is exceeded.""" @@ -4284,6 +6186,16 @@ ResourceLocation = Union[ResourceLocationS3 | ResourceLocationUnknown] class _ResourceLocationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ResourceLocation: ... +class ResourceLocationS3Dict(TypedDict): + s3: S3Location | S3LocationDict + """ + The Amazon S3 location for storing data. This structure defines where in + Amazon S3 data is stored. + """ + +ResourceLocationDict = Union[ResourceLocationS3Dict] +"""Dictionary form of `ResourceLocation`, setting exactly one variant.""" + @dataclass(kw_only=True) class ResourceNotFoundException(ServiceError, _SerdeShape): """ @@ -4380,24 +6292,92 @@ class RootVolumeConfiguration(_SerdeShape): operating system overhead on top of this value. The default is 8 GiB. """ -@dataclass(kw_only=True) -class RotatePaymentConnectorCredentialsInput(_SerdeShape): - """Dataclass for RotatePaymentConnectorCredentialsInput structure.""" +class RootVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `RootVolumeConfiguration`.""" + + volume_type: str | None + """ + The Amazon EBS volume type. If you do not specify a type, the default is + `gp3`. + """ + iops: int | None + """ + The number of IOPS to provision. For `gp3`, `io1`, and `io2` volumes, + this is the number of IOPS provisioned for the volume. For `gp2` + volumes, this sets the baseline IOPS performance. It also controls the + rate at which the volume accumulates I/O credits for bursting. Supported + values: `gp3`, 3,000--80,000; `io1`, 100--64,000; `io2`, 100--256,000. + """ + throughput: int | None + """ + The throughput to provision, in MiB/s. Valid only for `gp3` volumes. + Valid range: 125--2,000 MiB/s. + """ + encrypted: bool | None + """ + Specifies whether to encrypt the volume. Encrypted volumes can be + attached only to instances that support Amazon EBS encryption. If you + create a volume from a snapshot, you cannot specify an encryption value. + """ + kms_key_id: str | None + """ + The identifier (key ID, key alias, key ARN, or alias ARN) of the + customer managed KMS key to use for Amazon EBS encryption. + """ + free_space_gi_b: int | None + """ + The free space guaranteed on the root volume, in GiB. AgentCore adds the + operating system overhead on top of this value. The default is 8 GiB. + """ + +@dataclass(kw_only=True) +class RotatePaymentConnectorCredentialsInput(_SerdeShape): + """Dataclass for RotatePaymentConnectorCredentialsInput structure.""" + + payment_manager_id: str | None = ... + """The unique identifier of the parent payment manager.""" + payment_connector_id: str | None = ... + """ + The unique identifier of the payment connector whose credentials you + want to rotate. + """ + credentials_to_rotate: CredentialRotationConfig | None = ... + """ + The credentials to rotate. Specify the member that matches the payment + connector's `type`. Each credential that you select is rotated + independently. + """ + client_token: str | None = ... + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + +class RotatePaymentConnectorCredentialsInputDict(TypedDict, total=False): + """Dictionary form of `RotatePaymentConnectorCredentialsInput`.""" - payment_manager_id: str | None = ... + payment_manager_id: Required[str] """The unique identifier of the parent payment manager.""" - payment_connector_id: str | None = ... + payment_connector_id: Required[str] """ The unique identifier of the payment connector whose credentials you want to rotate. """ - credentials_to_rotate: CredentialRotationConfig | None = ... + credentials_to_rotate: Required[ + CredentialRotationConfig | CredentialRotationConfigDict + ] """ The credentials to rotate. Specify the member that matches the payment connector's `type`. Each credential that you select is rotated independently. """ - client_token: str | None = ... + client_token: str | None """ A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a @@ -4470,6 +6450,19 @@ with weighted traffic splitting. class _RouteToTargetActionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RouteToTargetAction: ... +class RouteToTargetActionStaticRouteDict(TypedDict): + static_route: StaticRoute | StaticRouteDict + """A static route that sends all matching requests to a single target.""" + +class RouteToTargetActionWeightedRouteDict(TypedDict): + weighted_route: WeightedRoute | WeightedRouteDict + """A weighted route that splits traffic between multiple targets.""" + +RouteToTargetActionDict = Union[ + RouteToTargetActionStaticRouteDict | RouteToTargetActionWeightedRouteDict +] +"""Dictionary form of `RouteToTargetAction`, setting exactly one variant.""" + @dataclass(kw_only=True) class Rule(_SerdeShape): """ @@ -4493,6 +6486,25 @@ class Rule(_SerdeShape): when agent sessions are complete and ready for evaluation. """ +class RuleDict(TypedDict, total=False): + """Dictionary form of `Rule`.""" + + sampling_config: Required[SamplingConfig | SamplingConfigDict] + """ + The sampling configuration that determines what percentage of agent + traces to evaluate. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The list of filters that determine which agent traces should be included + in the evaluation based on trace properties. + """ + session_config: SessionConfig | SessionConfigDict | None + """ + The session configuration that defines timeout settings for detecting + when agent sessions are complete and ready for evaluation. + """ + @dataclass(kw_only=True) class RuntimeHooksConfiguration(_SerdeShape): """ @@ -4506,6 +6518,15 @@ class RuntimeHooksConfiguration(_SerdeShape): before any sessions are created. """ +class RuntimeHooksConfigurationDict(TypedDict, total=False): + """Dictionary form of `RuntimeHooksConfiguration`.""" + + build: BuildLifecycleHooks | BuildLifecycleHooksDict | None + """ + The hooks that run when you create or update the AgentCore Runtime, + before any sessions are created. + """ + @dataclass(kw_only=True) class RuntimeMetadataConfiguration(_SerdeShape): """Configuration for microVM metadata service settings.""" @@ -4517,6 +6538,16 @@ class RuntimeMetadataConfiguration(_SerdeShape): MMDSv2 requests. """ +class RuntimeMetadataConfigurationDict(TypedDict, total=False): + """Dictionary form of `RuntimeMetadataConfiguration`.""" + + require_mmdsv2: Required[bool] + """ + Enables MMDSv2 (microVM Metadata Service Version 2) requirement for the + agent runtime. When set to `true`, the runtime microVM will only accept + MMDSv2 requests. + """ + @dataclass(kw_only=True) class RuntimeTargetConfiguration(_SerdeShape): """ @@ -4540,6 +6571,25 @@ class RuntimeTargetConfiguration(_SerdeShape): target's API. """ +class RuntimeTargetConfigurationDict(TypedDict, total=False): + """Dictionary form of `RuntimeTargetConfiguration`.""" + + arn: Required[str] + """ + The Amazon Resource Name (ARN) of the AgentCore Runtime to route + requests to. + """ + qualifier: str | None + """ + The qualifier for the agent runtime, used to target a specific endpoint + version. If not specified, the default endpoint is used. + """ + schema: HttpApiSchemaConfiguration | HttpApiSchemaConfigurationDict | None + """ + The API schema configuration that defines the structure of the runtime + target's API. + """ + @dataclass(kw_only=True) class S3CertificateConfiguration(_SerdeShape): """ @@ -4558,6 +6608,20 @@ class S3CertificateConfiguration(_SerdeShape): cross-account access to the bucket. """ +class S3CertificateConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3CertificateConfiguration`.""" + + uri: Required[str] + """ + The URI of the Amazon S3 object that contains the PEM-encoded + certificate. + """ + bucket_owner_account_id: str | None + """ + The account ID of the Amazon S3 bucket owner. This ID is used for + cross-account access to the bucket. + """ + @dataclass(kw_only=True) class S3Configuration(_SerdeShape): """ @@ -4576,6 +6640,20 @@ class S3Configuration(_SerdeShape): cross-account access to the bucket. """ +class S3ConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3Configuration`.""" + + uri: str | None + """ + The URI of the Amazon S3 object. This URI specifies the location of the + object in Amazon S3. + """ + bucket_owner_account_id: str | None + """ + The account ID of the Amazon S3 bucket owner. This ID is used for + cross-account access to the bucket. + """ + @dataclass(kw_only=True) class S3FilesAccessPointConfiguration(_SerdeShape): """ @@ -4596,6 +6674,21 @@ class S3FilesAccessPointConfiguration(_SerdeShape): level (for example, `/mnt/data`). """ +class S3FilesAccessPointConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3FilesAccessPointConfiguration`.""" + + access_point_arn: Required[str] + """ + The ARN of the S3 Files access point to mount into the AgentCore + Runtime. + """ + mount_path: Required[str] + """ + The mount path for the S3 Files access point inside the AgentCore + Runtime. The path must be under `/mnt` with exactly one subdirectory + level (for example, `/mnt/data`). + """ + @dataclass(kw_only=True) class S3FilesConfiguration(_SerdeShape): """ @@ -4620,6 +6713,26 @@ class S3FilesConfiguration(_SerdeShape): (Amazon S3) Files file system that owns the access point. """ +class S3FilesConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3FilesConfiguration`.""" + + access_point_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Simple Storage Service + (Amazon S3) Files access point to mount. + """ + mount_path: Required[str] + """ + The absolute path within the session at which the access point is + mounted, for example `/mnt/s3data`. Each mount path must be unique + across all file system configurations in the session. + """ + file_system_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Simple Storage Service + (Amazon S3) Files file system that owns the access point. + """ + @dataclass(kw_only=True) class S3Location(_SerdeShape): """ @@ -4640,6 +6753,22 @@ class S3Location(_SerdeShape): latest version of the object is used. """ +class S3LocationDict(TypedDict, total=False): + """Dictionary form of `S3Location`.""" + + bucket: Required[str] + """The name of the Amazon S3 bucket. This bucket contains the stored data.""" + prefix: Required[str] + """ + The prefix for objects in the Amazon S3 bucket. This prefix is added to + the object keys to organize the data. + """ + version_id: str | None + """ + The version ID of the Amazon Amazon S3 object. If not specified, the + latest version of the object is used. + """ + @dataclass(kw_only=True) class S3Source(_SerdeShape): """Amazon S3 location of a JSONL file containing dataset examples.""" @@ -4650,6 +6779,15 @@ class S3Source(_SerdeShape): `s3://my-bucket/path/to/examples.jsonl`). """ +class S3SourceDict(TypedDict, total=False): + """Dictionary form of `S3Source`.""" + + s3_uri: Required[str] + """ + Amazon S3 URI of the JSONL file (for example, + `s3://my-bucket/path/to/examples.jsonl`). + """ + @dataclass(kw_only=True) class SalesforceOauth2ProviderConfigInput(_SerdeShape): """Input configuration for a Salesforce OAuth2 provider.""" @@ -4672,6 +6810,27 @@ class SalesforceOauth2ProviderConfigInput(_SerdeShape): in Amazon Web Services Secrets Manager. """ +class SalesforceOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `SalesforceOauth2ProviderConfigInput`.""" + + client_id: Required[str] + """The client ID for the Salesforce OAuth2 provider.""" + client_secret: str | None + """The client secret for the Salesforce OAuth2 provider.""" + client_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None + """ + The source type of the client secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + @dataclass(kw_only=True) class SalesforceOauth2ProviderConfigOutput(_SerdeShape): """Output configuration for a Salesforce OAuth2 provider.""" @@ -4694,6 +6853,15 @@ class SamplingConfig(_SerdeShape): 0.01% to 100%. """ +class SamplingConfigDict(TypedDict, total=False): + """Dictionary form of `SamplingConfig`.""" + + sampling_percentage: Required[float] + """ + The percentage of agent traces to sample for evaluation, ranging from + 0.01% to 100%. + """ + @dataclass(kw_only=True) class SchemaDefinition(_SerdeShape): """ @@ -4727,6 +6895,35 @@ class SchemaDefinition(_SerdeShape): information about the purpose and usage of the schema. """ +class SchemaDefinitionDict(TypedDict, total=False): + """Dictionary form of `SchemaDefinition`.""" + + type: Required[str] + """ + The type of the schema definition. This field specifies the data type of + the schema. + """ + properties: Mapping[str, SchemaDefinition | SchemaDefinitionDict] | None + """ + The properties of the schema definition. These properties define the + fields in the schema. + """ + required: Sequence[str] | None + """ + The required fields in the schema definition. These fields must be + provided when using the schema. + """ + items: SchemaDefinition | SchemaDefinitionDict | None + """ + The items in the schema definition. This field is used for array types + to define the structure of the array elements. + """ + description: str | None + """ + The description of the schema definition. This description provides + information about the purpose and usage of the schema. + """ + class SchemaType(UnknownEnumMixin, StrEnum): STRING = "string" NUMBER = "number" @@ -4769,6 +6966,20 @@ class SecretReference(_SerdeShape): Services Secrets Manager secret. """ +class SecretReferenceDict(TypedDict, total=False): + """Dictionary form of `SecretReference`.""" + + secret_id: Required[str] + """ + The ID of the Amazon Web Services Secrets Manager secret that stores the + secret value. + """ + json_key: Required[str] + """ + The JSON key used to extract the secret value from the Amazon Web + Services Secrets Manager secret. + """ + @dataclass(kw_only=True) class SecretsManagerCertificateConfiguration(_SerdeShape): """ @@ -4782,6 +6993,15 @@ class SecretsManagerCertificateConfiguration(_SerdeShape): Manager secret that contains the PEM-encoded certificate. """ +class SecretsManagerCertificateConfigurationDict(TypedDict, total=False): + """Dictionary form of `SecretsManagerCertificateConfiguration`.""" + + secret_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Web Services Secrets + Manager secret that contains the PEM-encoded certificate. + """ + @dataclass(kw_only=True) class SecretsManagerLocation(_SerdeShape): """The Amazon Web Services Secrets Manager location configuration.""" @@ -4792,6 +7012,15 @@ class SecretsManagerLocation(_SerdeShape): certificate. """ +class SecretsManagerLocationDict(TypedDict, total=False): + """Dictionary form of `SecretsManagerLocation`.""" + + secret_arn: Required[str] + """ + The ARN of the Amazon Web Services Secrets Manager secret containing the + certificate. + """ + class SecretSourceType(UnknownEnumMixin, StrEnum): MANAGED = "MANAGED" EXTERNAL = "EXTERNAL" @@ -4818,6 +7047,20 @@ class SelfManagedConfigurationInput(_SerdeShape): historical_context_window_size: int = ... """Number of historical messages to include in processing context.""" +class SelfManagedConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `SelfManagedConfigurationInput`.""" + + trigger_conditions: ( + Sequence[TriggerConditionInput | TriggerConditionInputDict] | None + ) + """A list of conditions that trigger memory processing.""" + invocation_configuration: Required[ + InvocationConfigurationInput | InvocationConfigurationInputDict + ] + """Configuration to invoke a self-managed memory processing pipeline with.""" + historical_context_window_size: int | None + """Number of historical messages to include in processing context.""" + @dataclass class SelfManagedLatticeResourceResourceConfigurationIdentifier(_SerdeShape): """The ARN or ID of the VPC Lattice resource configuration.""" @@ -4849,6 +7092,18 @@ class _SelfManagedLatticeResourceDeserializer: self, deserializer: ShapeDeserializer ) -> SelfManagedLatticeResource: ... +class SelfManagedLatticeResourceResourceConfigurationIdentifierDict(TypedDict): + resource_configuration_identifier: str + """The ARN or ID of the VPC Lattice resource configuration.""" + +SelfManagedLatticeResourceDict = Union[ + SelfManagedLatticeResourceResourceConfigurationIdentifierDict +] +""" +Dictionary form of `SelfManagedLatticeResource`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class SemanticConsolidationOverride(_SerdeShape): """Contains semantic consolidation override configuration.""" @@ -4893,6 +7148,33 @@ class SemanticMemoryStrategyInput(_SerdeShape): expire. """ +class SemanticMemoryStrategyInputDict(TypedDict, total=False): + """Dictionary form of `SemanticMemoryStrategyInput`.""" + + name: Required[str] + """The name of the semantic memory strategy.""" + description: str | None + """The description of the semantic memory strategy.""" + namespaces: Sequence[str] | None + """ + This is a legacy parameter, use `namespaceTemplates`. The namespaces + associated with the semantic memory strategy. + """ + namespace_templates: Sequence[str] | None + """The namespaceTemplates associated with the semantic memory strategy.""" + memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None + """Schema for metadata on memory records generated by a strategy.""" + record_expiry_specification: ( + RecordExpirySpecification | RecordExpirySpecificationDict | None + ) + """ + The record expiry (long-term memory time-to-live) configuration for + memory records generated by this strategy. Set + `recordExpiryDurationDays` to the number of days after which records + expire. If not specified, records generated by this strategy do not + expire. + """ + @dataclass(kw_only=True) class SemanticOverrideConfigurationInput(_SerdeShape): """Input for semantic override configuration in a memory strategy.""" @@ -4902,6 +7184,22 @@ class SemanticOverrideConfigurationInput(_SerdeShape): consolidation: SemanticOverrideConsolidationConfigurationInput | None = ... """The consolidation configuration for a semantic override.""" +class SemanticOverrideConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `SemanticOverrideConfigurationInput`.""" + + extraction: ( + SemanticOverrideExtractionConfigurationInput + | SemanticOverrideExtractionConfigurationInputDict + | None + ) + """The extraction configuration for a semantic override.""" + consolidation: ( + SemanticOverrideConsolidationConfigurationInput + | SemanticOverrideConsolidationConfigurationInputDict + | None + ) + """The consolidation configuration for a semantic override.""" + @dataclass(kw_only=True) class SemanticOverrideConsolidationConfigurationInput(_SerdeShape): """ @@ -4914,6 +7212,14 @@ class SemanticOverrideConsolidationConfigurationInput(_SerdeShape): model_id: str """The model ID to use for semantic consolidation.""" +class SemanticOverrideConsolidationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `SemanticOverrideConsolidationConfigurationInput`.""" + + append_to_prompt: Required[str] + """The text to append to the prompt for semantic consolidation.""" + model_id: Required[str] + """The model ID to use for semantic consolidation.""" + @dataclass(kw_only=True) class SemanticOverrideExtractionConfigurationInput(_SerdeShape): """ @@ -4926,6 +7232,14 @@ class SemanticOverrideExtractionConfigurationInput(_SerdeShape): model_id: str """The model ID to use for semantic extraction.""" +class SemanticOverrideExtractionConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `SemanticOverrideExtractionConfigurationInput`.""" + + append_to_prompt: Required[str] + """The text to append to the prompt for semantic extraction.""" + model_id: Required[str] + """The model ID to use for semantic extraction.""" + @dataclass(kw_only=True) class ServerDefinition(_SerdeShape): """ @@ -4945,6 +7259,21 @@ class ServerDefinition(_SerdeShape): MCP protocol specification. """ +class ServerDefinitionDict(TypedDict, total=False): + """Dictionary form of `ServerDefinition`.""" + + schema_version: str | None + """ + The schema version of the server definition based on the MCP protocol + specification. If not specified, the version is auto-detected from the + content. + """ + inline_content: str | None + """ + The JSON content containing the MCP server definition, conforming to the + MCP protocol specification. + """ + class ServerProtocol(UnknownEnumMixin, StrEnum): MCP = "MCP" HTTP = "HTTP" @@ -4988,6 +7317,15 @@ class SessionConfig(_SerdeShape): considered complete and ready for evaluation. Default is 15 minutes. """ +class SessionConfigDict(TypedDict, total=False): + """Dictionary form of `SessionConfig`.""" + + session_timeout_minutes: Required[int] + """ + The number of minutes of inactivity after which an agent session is + considered complete and ready for evaluation. Default is 15 minutes. + """ + @dataclass(kw_only=True) class SessionConfiguration(_SerdeShape): """ @@ -5003,6 +7341,17 @@ class SessionConfiguration(_SerdeShape): seconds (8 hours), and the default value is 3600 seconds (1 hour). """ +class SessionConfigurationDict(TypedDict, total=False): + """Dictionary form of `SessionConfiguration`.""" + + session_timeout_in_seconds: int | None + """ + The session timeout in seconds. After this timeout, the session expires + and subsequent requests to this session will receive an error. The + minimum value is 900 seconds (15 minutes), the maximum value is 28800 + seconds (8 hours), and the default value is 3600 seconds (1 hour). + """ + @dataclass(kw_only=True) class SessionStorageConfiguration(_SerdeShape): """ @@ -5017,3 +7366,13 @@ class SessionStorageConfiguration(_SerdeShape): Runtime. The path must be under `/mnt` with exactly one subdirectory level (for example, `/mnt/data`). """ + +class SessionStorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `SessionStorageConfiguration`.""" + + mount_path: Required[str] + """ + The mount path for the session storage filesystem inside the AgentCore + Runtime. The path must be under `/mnt` with exactly one subdirectory + level (for example, `/mnt/data`). + """ diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_3.pyi b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_3.pyi index 96652f122..d7a7a35cb 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_3.pyi +++ b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/models_3.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,95 +13,168 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( A2aDescriptor, + A2aDescriptorDict, Action, + ActionDict, AgentRuntimeArtifact, + AgentRuntimeArtifactDict, AllowedPort, + AllowedPortDict, ApprovalConfiguration, + ApprovalConfigurationDict, AuthorizationData, AuthorizerConfiguration, + AuthorizerConfigurationDict, CapacityProviderConfiguration, + CapacityProviderConfigurationDict, CertificateConfiguration, + CertificateConfigurationDict, ClusteringConfig, + ClusteringConfigDict, ComponentConfiguration, + ComponentConfigurationDict, Condition, + ConditionDict, ConfigurationBundleReference, + ConfigurationBundleReferenceDict, ConsentPortalIdpConfig, + ConsentPortalIdpConfigDict, ConsentPortalSource, ConsolidationConfiguration, Content, + ContentDict, CredentialProviderConfiguration, + CredentialProviderConfigurationDict, CredentialsProviderConfiguration, + CredentialsProviderConfigurationDict, CustomDescriptor, + CustomDescriptorDict, CustomTransformConfiguration, + CustomTransformConfigurationDict, DataSourceConfig, + DataSourceConfigDict, Descriptors, DomainOverride, + DomainOverrideDict, EbsVolumeConfiguration, + EbsVolumeConfigurationDict, EfsConfiguration, + EfsConfigurationDict, EvaluatorConfig, + EvaluatorConfigDict, EvaluatorReference, + EvaluatorReferenceDict, ExtractionConfiguration, Fallback, + FallbackDict, FilesystemConfiguration, + FilesystemConfigurationDict, FromUrlSynchronizationConfiguration, + FromUrlSynchronizationConfigurationDict, GatewayInterceptorConfiguration, + GatewayInterceptorConfigurationDict, GatewayPolicyEngineConfiguration, + GatewayPolicyEngineConfigurationDict, GatewayProtocolConfiguration, + GatewayProtocolConfigurationDict, GatewayTarget, Harness, HarnessEndpoint, HarnessEnvironmentArtifact, + HarnessEnvironmentArtifactDict, HarnessEnvironmentProviderRequest, + HarnessEnvironmentProviderRequestDict, HarnessHook, + HarnessHookDict, HarnessMemoryConfiguration, + HarnessMemoryConfigurationDict, HarnessModelConfiguration, + HarnessModelConfigurationDict, HarnessSkill, + HarnessSkillDict, HarnessSystemContentBlock, + HarnessSystemContentBlockDict, HarnessTool, + HarnessToolDict, HarnessTruncationConfiguration, + HarnessTruncationConfigurationDict, HttpTargetConfiguration, + HttpTargetConfigurationDict, IndexedKey, + IndexedKeyDict, InferenceTargetConfiguration, + InferenceTargetConfigurationDict, Insight, + InsightDict, KinesisResource, + KinesisResourceDict, KmsConfiguration, + KmsConfigurationDict, LifecycleConfiguration, + LifecycleConfigurationDict, LimitEntry, + LimitEntryDict, ManagedResourceDetails, McpTargetConfiguration, + McpTargetConfigurationDict, Memory, MemoryRecordSchema, + MemoryRecordSchemaDict, MessageBasedTrigger, MessageBasedTriggerInput, + MessageBasedTriggerInputDict, MetadataConfiguration, + MetadataConfigurationDict, ModifyMemoryStrategies, + ModifyMemoryStrategiesDict, NamespaceKeyEntry, + NamespaceKeyEntryDict, NetworkConfiguration, + NetworkConfigurationDict, NumberValidation, + NumberValidationDict, Oauth2Discovery, Oauth2ProviderConfigInput, + Oauth2ProviderConfigInputDict, Oauth2ProviderConfigOutput, OutputConfig, + OutputConfigDict, PaymentProviderConfigurationInput, + PaymentProviderConfigurationInputDict, PaymentProviderConfigurationOutput, PolicyDefinition, + PolicyDefinitionDict, PrivateEndpoint, + PrivateEndpointDict, ProtocolConfiguration, + ProtocolConfigurationDict, RecordExpirySpecification, + RecordExpirySpecificationDict, ReflectionConfiguration, RequestHeaderConfiguration, + RequestHeaderConfigurationDict, Resource, ResourceConfiguration, + ResourceConfigurationDict, + ResourceDict, Rule, + RuleDict, RuntimeHooksConfiguration, + RuntimeHooksConfigurationDict, RuntimeMetadataConfiguration, + RuntimeMetadataConfigurationDict, S3Configuration, + S3ConfigurationDict, S3FilesConfiguration, + S3FilesConfigurationDict, SchemaDefinition, + SchemaDefinitionDict, Secret, SecretReference, + SecretReferenceDict, SelfManagedConfiguration, ServerDefinition, + ServerDefinitionDict, ServiceError, _SerdeShape, ) @@ -117,6 +191,17 @@ class SetTokenVaultCMKInput(_SerdeShape): KMS key ARN. """ +class SetTokenVaultCMKInputDict(TypedDict, total=False): + """Dictionary form of `SetTokenVaultCMKInput`.""" + + token_vault_id: str | None + """The unique identifier of the token vault to update.""" + kms_configuration: Required[KmsConfiguration | KmsConfigurationDict] + """ + The KMS configuration for the token vault, including the key type and + KMS key ARN. + """ + @dataclass(kw_only=True) class SetTokenVaultCMKOutput(_SerdeShape): """Dataclass for SetTokenVaultCMKOutput structure.""" @@ -149,6 +234,14 @@ class SkillDefinition(_SerdeShape): inline_content: str | None = ... """The JSON content containing the structured skill definition.""" +class SkillDefinitionDict(TypedDict, total=False): + """Dictionary form of `SkillDefinition`.""" + + schema_version: str | None + """The version of the skill definition schema.""" + inline_content: str | None + """The JSON content containing the structured skill definition.""" + @dataclass(kw_only=True) class SkillMdDefinition(_SerdeShape): """The skill markdown definition for an agent skills descriptor.""" @@ -159,6 +252,15 @@ class SkillMdDefinition(_SerdeShape): format. """ +class SkillMdDefinitionDict(TypedDict, total=False): + """Dictionary form of `SkillMdDefinition`.""" + + inline_content: str | None + """ + The markdown content describing the agent's skills in a human-readable + format. + """ + @dataclass(kw_only=True) class SlackOauth2ProviderConfigInput(_SerdeShape): """Input configuration for a Slack OAuth2 provider.""" @@ -181,6 +283,27 @@ class SlackOauth2ProviderConfigInput(_SerdeShape): in Amazon Web Services Secrets Manager. """ +class SlackOauth2ProviderConfigInputDict(TypedDict, total=False): + """Dictionary form of `SlackOauth2ProviderConfigInput`.""" + + client_id: Required[str] + """The client ID for the Slack OAuth2 provider.""" + client_secret: str | None + """The client secret for the Slack OAuth2 provider.""" + client_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the client secret. This includes the secret ID and the JSON key + used to extract the client secret value from the secret. Required when + `clientSecretSource` is set to `EXTERNAL`. + """ + client_secret_source: str | None + """ + The source type of the client secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + @dataclass(kw_only=True) class SlackOauth2ProviderConfigOutput(_SerdeShape): """Output configuration for a Slack OAuth2 provider.""" @@ -229,6 +352,44 @@ class StartPolicyGenerationInput(_SerdeShape): This field is autopopulated if not provided. """ +class StartPolicyGenerationInputDict(TypedDict, total=False): + """Dictionary form of `StartPolicyGenerationInput`.""" + + policy_engine_id: Required[str] + """ + The identifier of the policy engine that provides the context for policy + generation. This engine's schema and tool context are used to ensure + generated policies are valid and applicable. + """ + resource: Required[Resource | ResourceDict] + """ + The resource information that provides context for policy generation. + This helps the AI understand the target resources and generate + appropriate access control rules. + """ + content: Required[Content | ContentDict] + """ + The natural language description of the desired policy behavior. This + content is processed by AI to generate corresponding Dogwood policy + statements that match the described intent. + """ + name: Required[str] + """ + A customer-assigned name for the policy generation request. This helps + track and identify generation operations, especially when running + multiple generations simultaneously. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure the idempotency of the + request. The Amazon Web Services SDK automatically generates this token, + so you don't need to provide it in most cases. If you retry a request + with the same client token, the service returns the same response + without starting a duplicate generation. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StartPolicyGenerationOutput(_SerdeShape): """Dataclass for StartPolicyGenerationOutput structure.""" @@ -276,6 +437,14 @@ class StaticOverride(_SerdeShape): bundle_version: str """The version of the configuration bundle to apply.""" +class StaticOverrideDict(TypedDict, total=False): + """Dictionary form of `StaticOverride`.""" + + bundle_arn: Required[str] + """The Amazon Resource Name (ARN) of the configuration bundle to apply.""" + bundle_version: Required[str] + """The version of the configuration bundle to apply.""" + class StaticQueryParameterConflictResolution(UnknownEnumMixin, StrEnum): """ The precedence used when a client-supplied query parameter has the same @@ -309,6 +478,23 @@ class StaticRoute(_SerdeShape): targets. """ +class StaticRouteDict(TypedDict, total=False): + """Dictionary form of `StaticRoute`.""" + + target_name: Required[str] + """The name of the target to route requests to.""" + model: str | None + """ + The model ID to send to the target. Supported only for inference + targets. If you don't specify a model, the gateway sends the model from + the original request. + """ + fallback: Fallback | FallbackDict | None + """ + The fallback configuration for this route. Supported only for inference + targets. + """ + class Status(UnknownEnumMixin, StrEnum): CREATING = "CREATING" CREATE_FAILED = "CREATE_FAILED" @@ -344,6 +530,27 @@ class StickinessConfiguration(_SerdeShape): `identifier` and all composite identifier values match. """ +class StickinessConfigurationDict(TypedDict, total=False): + """Dictionary form of `StickinessConfiguration`.""" + + identifier: Required[str] + """ + The expression that identifies where to extract the session identifier + from the request (for example, `$context.header.x-session-id`). + """ + timeout: int | None + """ + The session stickiness timeout, in seconds. After this duration of + inactivity, the session affinity expires. Valid values range from 1 to + 86400. + """ + composite_identifier: Sequence[str] | None + """ + Additional headers to include in session affinity routing. When set, + requests are only considered part of the same session if both the + `identifier` and all composite identifier values match. + """ + @dataclass(kw_only=True) class StrategyConfiguration(_SerdeShape): """Contains configuration information for a memory strategy.""" @@ -385,6 +592,16 @@ class _StreamDeliveryResourceDeserializer: self, deserializer: ShapeDeserializer ) -> StreamDeliveryResource: ... +class StreamDeliveryResourceKinesisDict(TypedDict): + kinesis: KinesisResource | KinesisResourceDict + """Kinesis Data Stream configuration.""" + +StreamDeliveryResourceDict = Union[StreamDeliveryResourceKinesisDict] +""" +Dictionary form of `StreamDeliveryResource`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class StreamDeliveryResources(_SerdeShape): """Configuration for streaming memory record data to external resources.""" @@ -392,6 +609,12 @@ class StreamDeliveryResources(_SerdeShape): resources: list[StreamDeliveryResource] """List of stream delivery resource configurations.""" +class StreamDeliveryResourcesDict(TypedDict, total=False): + """Dictionary form of `StreamDeliveryResources`.""" + + resources: Required[Sequence[StreamDeliveryResource | StreamDeliveryResourceDict]] + """List of stream delivery resource configurations.""" + @dataclass(kw_only=True) class StreamingConfiguration(_SerdeShape): """ @@ -406,6 +629,16 @@ class StreamingConfiguration(_SerdeShape): client. """ +class StreamingConfigurationDict(TypedDict, total=False): + """Dictionary form of `StreamingConfiguration`.""" + + enable_response_streaming: bool | None + """ + Indicates whether response streaming is enabled for the gateway. When + set to `true`, the gateway streams responses from targets back to the + client. + """ + @dataclass(kw_only=True) class StringListValidation(_SerdeShape): """Validation for STRINGLIST fields.""" @@ -415,6 +648,14 @@ class StringListValidation(_SerdeShape): max_items: int | None = ... """Maximum number of items in the string list.""" +class StringListValidationDict(TypedDict, total=False): + """Dictionary form of `StringListValidation`.""" + + allowed_values: Sequence[str] | None + """Allowed values for items in this STRINGLIST field.""" + max_items: int | None + """Maximum number of items in the string list.""" + @dataclass(kw_only=True) class StringValidation(_SerdeShape): """Validation for STRING fields.""" @@ -422,6 +663,12 @@ class StringValidation(_SerdeShape): allowed_values: list[str] """Allowed values for this STRING field.""" +class StringValidationDict(TypedDict, total=False): + """Dictionary form of `StringValidation`.""" + + allowed_values: Required[Sequence[str]] + """Allowed values for this STRING field.""" + @dataclass(kw_only=True) class StripePrivyConfigurationInput(_SerdeShape): """Stripe Privy configuration --- credentials provided by Stripe and Privy.""" @@ -462,6 +709,45 @@ class StripePrivyConfigurationInput(_SerdeShape): authorization_id: str """The authorization ID for the Stripe Privy integration.""" +class StripePrivyConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `StripePrivyConfigurationInput`.""" + + app_id: Required[str] + """The app ID provided by Privy.""" + app_secret: str | None + """The app secret provided by Privy.""" + app_secret_source: str | None + """ + The source type of the app secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + app_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the app secret. This includes the secret ID and the JSON key used + to extract the app secret value from the secret. Required when + `appSecretSource` is set to `EXTERNAL`. + """ + authorization_private_key: str | None + """The authorization private key for the Stripe Privy integration.""" + authorization_private_key_source: str | None + """ + The source type of the authorization private key. Use `MANAGED` if the + secret is managed by the service, or `EXTERNAL` if you manage the secret + yourself in Amazon Web Services Secrets Manager. + """ + authorization_private_key_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the authorization private key. This includes the secret ID and + the JSON key used to extract the authorization private key value from + the secret. Required when `authorizationPrivateKeySource` is set to + `EXTERNAL`. + """ + authorization_id: Required[str] + """The authorization ID for the Stripe Privy integration.""" + @dataclass(kw_only=True) class StripePrivyConfigurationOutput(_SerdeShape): """Stripe Privy configuration output with secret ARNs.""" @@ -518,6 +804,20 @@ class SubmitRegistryRecordForApprovalInput(_SerdeShape): specify either the Amazon Resource Name (ARN) or the ID of the record. """ +class SubmitRegistryRecordForApprovalInputDict(TypedDict, total=False): + """Dictionary form of `SubmitRegistryRecordForApprovalInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry containing the record. You can specify + either the Amazon Resource Name (ARN) or the ID of the registry. + """ + record_id: Required[str] + """ + The identifier of the registry record to submit for approval. You can + specify either the Amazon Resource Name (ARN) or the ID of the record. + """ + @dataclass(kw_only=True) class SubmitRegistryRecordForApprovalOutput(_SerdeShape): """Dataclass for SubmitRegistryRecordForApprovalOutput structure.""" @@ -595,6 +895,33 @@ class SummaryMemoryStrategyInput(_SerdeShape): expire. """ +class SummaryMemoryStrategyInputDict(TypedDict, total=False): + """Dictionary form of `SummaryMemoryStrategyInput`.""" + + name: Required[str] + """The name of the summary memory strategy.""" + description: str | None + """The description of the summary memory strategy.""" + namespaces: Sequence[str] | None + """ + This is a legacy parameter, use `namespaceTemplates`. The namespaces + associated with the summary memory strategy. + """ + namespace_templates: Sequence[str] | None + """The namespaceTemplates associated with the summary memory strategy.""" + memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None + """Schema for metadata fields on records generated by this strategy.""" + record_expiry_specification: ( + RecordExpirySpecification | RecordExpirySpecificationDict | None + ) + """ + The record expiry (long-term memory time-to-live) configuration for + memory records generated by this strategy. Set + `recordExpiryDurationDays` to the number of days after which records + expire. If not specified, records generated by this strategy do not + expire. + """ + @dataclass(kw_only=True) class SummaryOverrideConfigurationInput(_SerdeShape): """Input for summary override configuration in a memory strategy.""" @@ -602,6 +929,16 @@ class SummaryOverrideConfigurationInput(_SerdeShape): consolidation: SummaryOverrideConsolidationConfigurationInput | None = ... """The consolidation configuration for a summary override.""" +class SummaryOverrideConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `SummaryOverrideConfigurationInput`.""" + + consolidation: ( + SummaryOverrideConsolidationConfigurationInput + | SummaryOverrideConsolidationConfigurationInputDict + | None + ) + """The consolidation configuration for a summary override.""" + @dataclass(kw_only=True) class SummaryOverrideConsolidationConfigurationInput(_SerdeShape): """ @@ -614,6 +951,14 @@ class SummaryOverrideConsolidationConfigurationInput(_SerdeShape): model_id: str """The model ID to use for summary consolidation.""" +class SummaryOverrideConsolidationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `SummaryOverrideConsolidationConfigurationInput`.""" + + append_to_prompt: Required[str] + """The text to append to the prompt for summary consolidation.""" + model_id: Required[str] + """The model ID to use for summary consolidation.""" + @dataclass(kw_only=True) class SynchronizationConfiguration(_SerdeShape): """ @@ -624,6 +969,16 @@ class SynchronizationConfiguration(_SerdeShape): from_url: FromUrlSynchronizationConfiguration | None = ... """Configuration for synchronizing from a URL-based source.""" +class SynchronizationConfigurationDict(TypedDict, total=False): + """Dictionary form of `SynchronizationConfiguration`.""" + + from_url: ( + FromUrlSynchronizationConfiguration + | FromUrlSynchronizationConfigurationDict + | None + ) + """Configuration for synchronizing from a URL-based source.""" + class SynchronizationType(UnknownEnumMixin, StrEnum): URL = "URL" @@ -636,6 +991,14 @@ class SynchronizeGatewayTargetsInput(_SerdeShape): target_id_list: list[str] | None = ... """The target ID list.""" +class SynchronizeGatewayTargetsInputDict(TypedDict, total=False): + """Dictionary form of `SynchronizeGatewayTargetsInput`.""" + + gateway_identifier: Required[str] + """The gateway Identifier.""" + target_id_list: Required[Sequence[str]] + """The target ID list.""" + @dataclass(kw_only=True) class SynchronizeGatewayTargetsOutput(_SerdeShape): """Dataclass for SynchronizeGatewayTargetsOutput structure.""" @@ -669,6 +1032,14 @@ class TagResourceInput(_SerdeShape): tags: dict[str, str] | None = ... """The tags to add to the resource. A tag is a key-value pair.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource that you want to tag.""" + tags: Required[Mapping[str, str]] + """The tags to add to the resource. A tag is a key-value pair.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -733,6 +1104,35 @@ gateway connects to and interacts with the target endpoint. class _TargetConfigurationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> TargetConfiguration: ... +class TargetConfigurationMcpDict(TypedDict): + mcp: McpTargetConfiguration | McpTargetConfigurationDict + """ + The Model Context Protocol (MCP) configuration for the target. This + configuration defines how the gateway uses MCP to communicate with the + target. + """ + +class TargetConfigurationHttpDict(TypedDict): + http: HttpTargetConfiguration | HttpTargetConfigurationDict + """ + The HTTP target configuration. Use this to route gateway requests to an + HTTP-based endpoint such as an AgentCore Runtime. + """ + +class TargetConfigurationInferenceDict(TypedDict): + inference: InferenceTargetConfiguration | InferenceTargetConfigurationDict + """ + The inference configuration for the target. This configuration routes + requests to a large language model (LLM) provider. + """ + +TargetConfigurationDict = Union[ + TargetConfigurationMcpDict + | TargetConfigurationHttpDict + | TargetConfigurationInferenceDict +] +"""Dictionary form of `TargetConfiguration`, setting exactly one variant.""" + class TargetProtocolType(UnknownEnumMixin, StrEnum): MCP = "MCP" HTTP = "HTTP" @@ -817,6 +1217,31 @@ class TargetTrafficSplitEntry(_SerdeShape): metadata: dict[str, str] | None = ... """Key-value metadata associated with this traffic split variant.""" +class TargetTrafficSplitEntryDict(TypedDict, total=False): + """Dictionary form of `TargetTrafficSplitEntry`.""" + + target_name: Required[str] + """The name of the target to route traffic to.""" + model: str | None + """ + The model ID to send to the target for this variant. Supported only for + inference targets. If you don't specify a model, the gateway sends the + model from the original request. + """ + fallback: Fallback | FallbackDict | None + """ + The fallback configuration for this variant. Supported only for + inference targets. + """ + name: Required[str] + """The name of this traffic split variant.""" + weight: Required[int] + """The percentage of traffic to route to this variant.""" + description: str | None + """The description of this traffic split variant.""" + metadata: Mapping[str, str] | None + """Key-value metadata associated with this traffic split variant.""" + class TargetType(UnknownEnumMixin, StrEnum): OPEN_API_SCHEMA = "OPEN_API_SCHEMA" SMITHY_MODEL = "SMITHY_MODEL" @@ -867,6 +1292,12 @@ class TimeBasedTriggerInput(_SerdeShape): idle_session_timeout: int = ... """Idle session timeout (seconds) that triggers memory processing.""" +class TimeBasedTriggerInputDict(TypedDict, total=False): + """Dictionary form of `TimeBasedTriggerInput`.""" + + idle_session_timeout: int | None + """Idle session timeout (seconds) that triggers memory processing.""" + @dataclass(kw_only=True) class TokenBasedTrigger(_SerdeShape): """Trigger configuration based on tokens.""" @@ -881,6 +1312,12 @@ class TokenBasedTriggerInput(_SerdeShape): token_count: int = ... """Number of tokens that trigger memory processing.""" +class TokenBasedTriggerInputDict(TypedDict, total=False): + """Dictionary form of `TokenBasedTriggerInput`.""" + + token_count: int | None + """Number of tokens that trigger memory processing.""" + @dataclass(kw_only=True) class TokenExchangeGrantTypeConfigType(_SerdeShape): """Configuration for RFC 8693 token exchange.""" @@ -893,6 +1330,17 @@ class TokenExchangeGrantTypeConfigType(_SerdeShape): M2M. """ +class TokenExchangeGrantTypeConfigTypeDict(TypedDict, total=False): + """Dictionary form of `TokenExchangeGrantTypeConfigType`.""" + + actor_token_content: Required[str] + """The content type for the actor token in the token exchange.""" + actor_token_scopes: Sequence[str] | None + """ + The scopes for the actor token. Only valid when actorTokenContent is + M2M. + """ + @dataclass(kw_only=True) class ToolDefinition(_SerdeShape): """ @@ -921,6 +1369,30 @@ class ToolDefinition(_SerdeShape): output that the tool produces. """ +class ToolDefinitionDict(TypedDict, total=False): + """Dictionary form of `ToolDefinition`.""" + + name: Required[str] + """ + The name of the tool. This name identifies the tool in the Model Context + Protocol. + """ + description: Required[str] + """ + The description of the tool. This description provides information about + the purpose and usage of the tool. + """ + input_schema: Required[SchemaDefinition | SchemaDefinitionDict] + """ + The input schema for the tool. This schema defines the structure of the + input that the tool accepts. + """ + output_schema: SchemaDefinition | SchemaDefinitionDict | None + """ + The output schema for the tool. This schema defines the structure of the + output that the tool produces. + """ + @dataclass class ToolSchemaS3(_SerdeShape): """ @@ -958,6 +1430,23 @@ for a tool that the target exposes through the Model Context Protocol. class _ToolSchemaDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ToolSchema: ... +class ToolSchemaS3Dict(TypedDict): + s3: S3Configuration | S3ConfigurationDict + """ + The Amazon S3 location of the tool schema. This location contains the + schema definition file. + """ + +class ToolSchemaInlinePayloadDict(TypedDict): + inline_payload: Sequence[ToolDefinition | ToolDefinitionDict] + """ + The inline payload of the tool schema. This payload contains the schema + definition directly in the request. + """ + +ToolSchemaDict = Union[ToolSchemaS3Dict | ToolSchemaInlinePayloadDict] +"""Dictionary form of `ToolSchema`, setting exactly one variant.""" + @dataclass(kw_only=True) class ToolsDefinition(_SerdeShape): """ @@ -977,6 +1466,21 @@ class ToolsDefinition(_SerdeShape): MCP protocol specification. """ +class ToolsDefinitionDict(TypedDict, total=False): + """Dictionary form of `ToolsDefinition`.""" + + protocol_version: str | None + """ + The protocol version of the tools definition based on the MCP protocol + specification. If not specified, the version is auto-detected from the + content. + """ + inline_content: str | None + """ + The JSON content containing the MCP tools definition, conforming to the + MCP protocol specification. + """ + @dataclass class ToolsFileSystemConfigurationS3FilesConfiguration(_SerdeShape): """ @@ -1026,6 +1530,29 @@ class _ToolsFileSystemConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> ToolsFileSystemConfiguration: ... +class ToolsFileSystemConfigurationS3FilesConfigurationDict(TypedDict): + s3_files_configuration: S3FilesConfiguration | S3FilesConfigurationDict + """ + The configuration for mounting your own Amazon Simple Storage Service + (Amazon S3) Files access point into the session. + """ + +class ToolsFileSystemConfigurationEfsConfigurationDict(TypedDict): + efs_configuration: EfsConfiguration | EfsConfigurationDict + """ + The configuration for mounting your own Amazon Elastic File System + (Amazon EFS) access point into the session. + """ + +ToolsFileSystemConfigurationDict = Union[ + ToolsFileSystemConfigurationS3FilesConfigurationDict + | ToolsFileSystemConfigurationEfsConfigurationDict +] +""" +Dictionary form of `ToolsFileSystemConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class TrafficSplitEntry(_SerdeShape): """ @@ -1047,6 +1574,25 @@ class TrafficSplitEntry(_SerdeShape): metadata: dict[str, str] | None = ... """Key-value metadata associated with this traffic split variant.""" +class TrafficSplitEntryDict(TypedDict, total=False): + """Dictionary form of `TrafficSplitEntry`.""" + + name: Required[str] + """The name of this traffic split variant.""" + weight: Required[int] + """ + The percentage of traffic to route to this variant. Weights across all + entries must sum to 100. + """ + configuration_bundle: Required[ + ConfigurationBundleReference | ConfigurationBundleReferenceDict + ] + """The configuration bundle reference for this variant.""" + description: str | None + """The description of this traffic split variant.""" + metadata: Mapping[str, str] | None + """Key-value metadata associated with this traffic split variant.""" + @dataclass class TriggerConditionMessageBasedTrigger(_SerdeShape): """Message based trigger configuration.""" @@ -1125,6 +1671,28 @@ TriggerConditionInput = Union[ class _TriggerConditionInputDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> TriggerConditionInput: ... +class TriggerConditionInputMessageBasedTriggerDict(TypedDict): + message_based_trigger: MessageBasedTriggerInput | MessageBasedTriggerInputDict + """Message based trigger configuration.""" + +class TriggerConditionInputTokenBasedTriggerDict(TypedDict): + token_based_trigger: TokenBasedTriggerInput | TokenBasedTriggerInputDict + """Token based trigger configuration.""" + +class TriggerConditionInputTimeBasedTriggerDict(TypedDict): + time_based_trigger: TimeBasedTriggerInput | TimeBasedTriggerInputDict + """Time based trigger configuration.""" + +TriggerConditionInputDict = Union[ + TriggerConditionInputMessageBasedTriggerDict + | TriggerConditionInputTokenBasedTriggerDict + | TriggerConditionInputTimeBasedTriggerDict +] +""" +Dictionary form of `TriggerConditionInput`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class UnauthorizedException(ServiceError, _SerdeShape): """ @@ -1149,6 +1717,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The tag keys of the tags to remove from the resource.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource that you want to untag.""" + tag_keys: Required[Sequence[str]] + """The tag keys of the tags to remove from the resource.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -1184,6 +1760,28 @@ class UpdateAgentRuntimeEndpointInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateAgentRuntimeEndpointInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAgentRuntimeEndpointInput`.""" + + agent_runtime_id: Required[str] + """ + The unique identifier of the AgentCore Runtime associated with the + endpoint. + """ + endpoint_name: Required[str] + """The name of the AgentCore Runtime endpoint to update.""" + agent_runtime_version: str | None + """The updated version of the AgentCore Runtime for the endpoint.""" + description: str | None + """The updated description of the AgentCore Runtime endpoint.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateAgentRuntimeEndpointOutput(_SerdeShape): """Dataclass for UpdateAgentRuntimeEndpointOutput structure.""" @@ -1286,6 +1884,95 @@ class UpdateAgentRuntimeInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateAgentRuntimeInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAgentRuntimeInput`.""" + + agent_runtime_id: Required[str] + """The unique identifier of the AgentCore Runtime to update.""" + agent_runtime_artifact: Required[AgentRuntimeArtifact | AgentRuntimeArtifactDict] + """The updated artifact of the AgentCore Runtime.""" + role_arn: Required[str] + """ + The updated IAM role ARN that provides permissions for the AgentCore + Runtime. + """ + network_configuration: NetworkConfiguration | NetworkConfigurationDict | None + """The updated network configuration for the AgentCore Runtime.""" + description: str | None + """The updated description of the AgentCore Runtime.""" + authorizer_configuration: ( + AuthorizerConfiguration | AuthorizerConfigurationDict | None + ) + """The updated authorizer configuration for the AgentCore Runtime.""" + request_header_configuration: ( + RequestHeaderConfiguration | RequestHeaderConfigurationDict | None + ) + """ + The updated configuration for HTTP request headers that will be passed + through to the runtime. + """ + protocol_configuration: ProtocolConfiguration | ProtocolConfigurationDict | None + """ + The updated protocol configuration for the AgentCore Runtime, including + the protocol, port, and path on which the agent server is available. + """ + lifecycle_configuration: LifecycleConfiguration | LifecycleConfigurationDict | None + """The updated life cycle configuration for the AgentCore Runtime.""" + hooks_configuration: ( + RuntimeHooksConfiguration | RuntimeHooksConfigurationDict | None + ) + """The updated lifecycle hooks configuration for the AgentCore Runtime.""" + metadata_configuration: ( + RuntimeMetadataConfiguration | RuntimeMetadataConfigurationDict | None + ) + """ + The updated configuration for microVM Metadata Service (MMDS) settings + for the AgentCore Runtime. + """ + environment_variables: Mapping[str, str] | None + """ + Updated environment variables to set in the AgentCore Runtime + environment. + """ + filesystem_configurations: ( + Sequence[FilesystemConfiguration | FilesystemConfigurationDict] | None + ) + """ + The updated filesystem configurations to mount into the AgentCore + Runtime. + """ + capacity_provider_configuration: ( + CapacityProviderConfiguration | CapacityProviderConfigurationDict | None + ) + """The updated capacity provider configuration for the AgentCore Runtime.""" + platform_version: str | None + """ + The updated version of the runtime platform to use for the AgentCore + Runtime. + """ + allowed_ports: Sequence[AllowedPort | AllowedPortDict] | None + """ + The updated additional ports on the AgentCore Runtime that are reachable + through the runtime's session URL. Specify one to five non-overlapping + entries, each containing either a single port or an inclusive port + range. Ports must be between `8000` and `12000`, excluding the reserved + port `8443`. + """ + resource_configurations: ( + Sequence[ResourceConfiguration | ResourceConfigurationDict] | None + ) + """ + The updated resource configurations for the AgentCore Runtime. You can + specify at most one resource configuration. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateAgentRuntimeOutput(_SerdeShape): """Dataclass for UpdateAgentRuntimeOutput structure.""" @@ -1337,6 +2024,30 @@ class UpdateApiKeyCredentialProviderInput(_SerdeShape): in Amazon Web Services Secrets Manager. """ +class UpdateApiKeyCredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `UpdateApiKeyCredentialProviderInput`.""" + + name: Required[str] + """The name of the API key credential provider to update.""" + api_key: str | None + """ + The new API key to use for authentication. This value replaces the + existing API key and is encrypted and stored securely. + """ + api_key_secret_config: SecretReference | SecretReferenceDict | None + """ + A reference to the Amazon Web Services Secrets Manager secret that + stores the API key. This includes the secret ID and the JSON key used to + extract the API key value from the secret. Required when + `apiKeySecretSource` is set to `EXTERNAL`. + """ + api_key_secret_source: str | None + """ + The source type of the API key secret. Use `MANAGED` if the secret is + managed by the service, or `EXTERNAL` if you manage the secret yourself + in Amazon Web Services Secrets Manager. + """ + @dataclass(kw_only=True) class UpdateApiKeyCredentialProviderOutput(_SerdeShape): """Dataclass for UpdateApiKeyCredentialProviderOutput structure.""" @@ -1393,6 +2104,25 @@ class UpdateCapacityProviderInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCapacityProviderInput`.""" + + capacity_provider_id: Required[str] + """The unique identifier of the capacity provider to update.""" + description: UpdatedDescription | UpdatedDescriptionDict | None + """The updated description of the capacity provider.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateCapacityProviderOutput(_SerdeShape): """Dataclass for UpdateCapacityProviderOutput structure.""" @@ -1472,6 +2202,57 @@ class UpdateConfigurationBundleInput(_SerdeShape): already has a KMS key, this rotates to the new key. """ +class UpdateConfigurationBundleInputDict(TypedDict, total=False): + """Dictionary form of `UpdateConfigurationBundleInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + bundle_id: Required[str] + """The unique identifier of the configuration bundle to update.""" + bundle_name: str | None + """The updated name for the configuration bundle.""" + description: str | None + """The updated description for the configuration bundle.""" + components: Mapping[str, ComponentConfiguration | ComponentConfigurationDict] | None + """ + The updated component configurations. Creates a new version of the + bundle. + """ + parent_version_ids: Required[Sequence[str]] + """ + A list of parent version identifiers for lineage tracking. Regular + commits have a single parent. Merge commits have two parents: the target + branch parent and the source branch parent. If the branch already + exists, the first parent must be the latest version on that branch. + """ + branch_name: str | None + """ + The branch name for this version. If not specified, inherits the + parent's branch or defaults to `mainline`. + """ + commit_message: Required[str] + """A commit message describing the changes in this version.""" + created_by: VersionCreatedBySource | VersionCreatedBySourceDict | None + """ + The source that created this version, including the source name and + optional ARN. + """ + kms_key_arn: str | None + """ + Optional KMS key ARN for encrypting component configurations. If + provided, components will be encrypted with this key. If the bundle + already has a KMS key, this rotates to the new key. + """ + @dataclass(kw_only=True) class UpdateConfigurationBundleOutput(_SerdeShape): """Dataclass for UpdateConfigurationBundleOutput structure.""" @@ -1514,6 +2295,27 @@ class UpdateConsentPortalInput(_SerdeShape): description: str | None = ... """The description of the consent portal.""" +class UpdateConsentPortalInputDict(TypedDict, total=False): + """Dictionary form of `UpdateConsentPortalInput`.""" + + consent_portal_identifier: Required[str] + """ + The identifier of the consent portal. You can specify either the consent + portal ID or its Amazon Resource Name (ARN). + """ + execution_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that the consent portal + assumes to access the resources defined in its sources. + """ + idp_config: ConsentPortalIdpConfig | ConsentPortalIdpConfigDict | None + """ + The identity provider configuration that the consent portal uses to + authenticate end users. + """ + description: str | None + """The description of the consent portal.""" + @dataclass(kw_only=True) class UpdateConsentPortalOutput(_SerdeShape): """Dataclass for UpdateConsentPortalOutput structure.""" @@ -1571,6 +2373,12 @@ class UpdatedA2aDescriptor(_SerdeShape): optional_value: A2aDescriptor | None = ... """The updated A2A descriptor value.""" +class UpdatedA2aDescriptorDict(TypedDict, total=False): + """Dictionary form of `UpdatedA2aDescriptor`.""" + + optional_value: A2aDescriptor | A2aDescriptorDict | None + """The updated A2A descriptor value.""" + @dataclass(kw_only=True) class UpdatedAgentSkillsDescriptor(_SerdeShape): """ @@ -1584,6 +2392,16 @@ class UpdatedAgentSkillsDescriptor(_SerdeShape): optional_value: UpdatedAgentSkillsDescriptorFields | None = ... """The updated agent skills descriptor fields.""" +class UpdatedAgentSkillsDescriptorDict(TypedDict, total=False): + """Dictionary form of `UpdatedAgentSkillsDescriptor`.""" + + optional_value: ( + UpdatedAgentSkillsDescriptorFields + | UpdatedAgentSkillsDescriptorFieldsDict + | None + ) + """The updated agent skills descriptor fields.""" + @dataclass(kw_only=True) class UpdatedAgentSkillsDescriptorFields(_SerdeShape): """ @@ -1596,6 +2414,14 @@ class UpdatedAgentSkillsDescriptorFields(_SerdeShape): skill_definition: UpdatedSkillDefinition | None = ... """The updated skill definition.""" +class UpdatedAgentSkillsDescriptorFieldsDict(TypedDict, total=False): + """Dictionary form of `UpdatedAgentSkillsDescriptorFields`.""" + + skill_md: UpdatedSkillMdDefinition | UpdatedSkillMdDefinitionDict | None + """The updated skill markdown definition.""" + skill_definition: UpdatedSkillDefinition | UpdatedSkillDefinitionDict | None + """The updated skill definition.""" + @dataclass(kw_only=True) class UpdatedApprovalConfiguration(_SerdeShape): """ @@ -1611,6 +2437,15 @@ class UpdatedApprovalConfiguration(_SerdeShape): approval configuration. """ +class UpdatedApprovalConfigurationDict(TypedDict, total=False): + """Dictionary form of `UpdatedApprovalConfiguration`.""" + + optional_value: ApprovalConfiguration | ApprovalConfigurationDict | None + """ + The updated approval configuration value. Set to `null` to unset the + approval configuration. + """ + @dataclass(kw_only=True) class UpdateDatasetExamplesInput(_SerdeShape): """Dataclass for UpdateDatasetExamplesInput structure.""" @@ -1635,6 +2470,29 @@ class UpdateDatasetExamplesInput(_SerdeShape): fields. Maximum 1000 examples per call. """ +class UpdateDatasetExamplesInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDatasetExamplesInput`.""" + + dataset_id: Required[str] + """The unique identifier of the dataset.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + examples: Required[Sequence[Document]] + """ + Examples to update. Each element is a JSON object containing a required + `exampleId` field identifying the existing example, plus the replacement + fields. Maximum 1000 examples per call. + """ + @dataclass(kw_only=True) class UpdateDatasetExamplesOutput(_SerdeShape): """Dataclass for UpdateDatasetExamplesOutput structure.""" @@ -1677,13 +2535,32 @@ class UpdateDatasetInput(_SerdeShape): description: str | None = ... """The updated description for the dataset.""" -@dataclass(kw_only=True) -class UpdateDatasetOutput(_SerdeShape): - """Dataclass for UpdateDatasetOutput structure.""" +class UpdateDatasetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDatasetInput`.""" - dataset_arn: str - """The Amazon Resource Name (ARN) of the updated dataset.""" - dataset_id: str + dataset_id: Required[str] + """The unique identifier of the dataset to update.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + description: str | None + """The updated description for the dataset.""" + +@dataclass(kw_only=True) +class UpdateDatasetOutput(_SerdeShape): + """Dataclass for UpdateDatasetOutput structure.""" + + dataset_arn: str + """The Amazon Resource Name (ARN) of the updated dataset.""" + dataset_id: str """The unique identifier of the updated dataset.""" updated_at: datetime """The timestamp when the dataset was updated.""" @@ -1711,6 +2588,15 @@ class UpdatedAuthorizerConfiguration(_SerdeShape): clear the current authorizer configuration of the resource. """ +class UpdatedAuthorizerConfigurationDict(TypedDict, total=False): + """Dictionary form of `UpdatedAuthorizerConfiguration`.""" + + optional_value: AuthorizerConfiguration | AuthorizerConfigurationDict | None + """ + The updated authorizer configuration value. If not specified, it will + clear the current authorizer configuration of the resource. + """ + @dataclass(kw_only=True) class UpdatedCustomDescriptor(_SerdeShape): """ @@ -1723,6 +2609,12 @@ class UpdatedCustomDescriptor(_SerdeShape): optional_value: CustomDescriptor | None = ... """The updated custom descriptor value.""" +class UpdatedCustomDescriptorDict(TypedDict, total=False): + """Dictionary form of `UpdatedCustomDescriptor`.""" + + optional_value: CustomDescriptor | CustomDescriptorDict | None + """The updated custom descriptor value.""" + @dataclass(kw_only=True) class UpdatedDescription(_SerdeShape): """ @@ -1739,6 +2631,16 @@ class UpdatedDescription(_SerdeShape): description of the resource. """ +class UpdatedDescriptionDict(TypedDict, total=False): + """Dictionary form of `UpdatedDescription`.""" + + optional_value: str | None + """ + Represents an optional value that is used to update the human-readable + description of the resource. If not specified, it will clear the current + description of the resource. + """ + @dataclass(kw_only=True) class UpdatedDescriptors(_SerdeShape): """ @@ -1754,6 +2656,15 @@ class UpdatedDescriptors(_SerdeShape): that are each independently updatable. """ +class UpdatedDescriptorsDict(TypedDict, total=False): + """Dictionary form of `UpdatedDescriptors`.""" + + optional_value: UpdatedDescriptorsUnion | UpdatedDescriptorsUnionDict | None + """ + The updated descriptors value. Contains per-descriptor-type wrappers + that are each independently updatable. + """ + @dataclass(kw_only=True) class UpdatedDescriptorsUnion(_SerdeShape): """ @@ -1770,6 +2681,18 @@ class UpdatedDescriptorsUnion(_SerdeShape): agent_skills: UpdatedAgentSkillsDescriptor | None = ... """The updated agent skills descriptor.""" +class UpdatedDescriptorsUnionDict(TypedDict, total=False): + """Dictionary form of `UpdatedDescriptorsUnion`.""" + + mcp: UpdatedMcpDescriptor | UpdatedMcpDescriptorDict | None + """The updated MCP descriptor.""" + a2a: UpdatedA2aDescriptor | UpdatedA2aDescriptorDict | None + """The updated A2A descriptor.""" + custom: UpdatedCustomDescriptor | UpdatedCustomDescriptorDict | None + """The updated custom descriptor.""" + agent_skills: UpdatedAgentSkillsDescriptor | UpdatedAgentSkillsDescriptorDict | None + """The updated agent skills descriptor.""" + @dataclass(kw_only=True) class UpdatedHarnessEnvironmentArtifact(_SerdeShape): """Wrapper for updating the environment artifact configuration.""" @@ -1780,6 +2703,15 @@ class UpdatedHarnessEnvironmentArtifact(_SerdeShape): configuration. """ +class UpdatedHarnessEnvironmentArtifactDict(TypedDict, total=False): + """Dictionary form of `UpdatedHarnessEnvironmentArtifact`.""" + + optional_value: HarnessEnvironmentArtifact | HarnessEnvironmentArtifactDict | None + """ + The updated environment artifact value, or null to clear the existing + configuration. + """ + @dataclass(kw_only=True) class UpdatedHarnessMemoryConfiguration(_SerdeShape): """Wrapper for updating the memory configuration.""" @@ -1790,6 +2722,15 @@ class UpdatedHarnessMemoryConfiguration(_SerdeShape): configuration. """ +class UpdatedHarnessMemoryConfigurationDict(TypedDict, total=False): + """Dictionary form of `UpdatedHarnessMemoryConfiguration`.""" + + optional_value: HarnessMemoryConfiguration | HarnessMemoryConfigurationDict | None + """ + The updated memory configuration value, or null to clear the existing + configuration. + """ + @dataclass(kw_only=True) class UpdatedMcpDescriptor(_SerdeShape): """ @@ -1802,6 +2743,12 @@ class UpdatedMcpDescriptor(_SerdeShape): optional_value: UpdatedMcpDescriptorFields | None = ... """The updated MCP descriptor fields.""" +class UpdatedMcpDescriptorDict(TypedDict, total=False): + """Dictionary form of `UpdatedMcpDescriptor`.""" + + optional_value: UpdatedMcpDescriptorFields | UpdatedMcpDescriptorFieldsDict | None + """The updated MCP descriptor fields.""" + @dataclass(kw_only=True) class UpdatedMcpDescriptorFields(_SerdeShape): """Individual MCP descriptor fields that can be updated independently.""" @@ -1811,6 +2758,14 @@ class UpdatedMcpDescriptorFields(_SerdeShape): tools: UpdatedToolsDefinition | None = ... """The updated tools definition for the MCP descriptor.""" +class UpdatedMcpDescriptorFieldsDict(TypedDict, total=False): + """Dictionary form of `UpdatedMcpDescriptorFields`.""" + + server: UpdatedServerDefinition | UpdatedServerDefinitionDict | None + """The updated server definition for the MCP descriptor.""" + tools: UpdatedToolsDefinition | UpdatedToolsDefinitionDict | None + """The updated tools definition for the MCP descriptor.""" + @dataclass(kw_only=True) class UpdatedServerDefinition(_SerdeShape): """ @@ -1823,6 +2778,12 @@ class UpdatedServerDefinition(_SerdeShape): optional_value: ServerDefinition | None = ... """The updated server definition value.""" +class UpdatedServerDefinitionDict(TypedDict, total=False): + """Dictionary form of `UpdatedServerDefinition`.""" + + optional_value: ServerDefinition | ServerDefinitionDict | None + """The updated server definition value.""" + @dataclass(kw_only=True) class UpdatedSkillDefinition(_SerdeShape): """Wrapper for updating a skill definition with PATCH semantics.""" @@ -1830,6 +2791,12 @@ class UpdatedSkillDefinition(_SerdeShape): optional_value: SkillDefinition | None = ... """The updated skill definition value.""" +class UpdatedSkillDefinitionDict(TypedDict, total=False): + """Dictionary form of `UpdatedSkillDefinition`.""" + + optional_value: SkillDefinition | SkillDefinitionDict | None + """The updated skill definition value.""" + @dataclass(kw_only=True) class UpdatedSkillMdDefinition(_SerdeShape): """Wrapper for updating a skill markdown definition with PATCH semantics.""" @@ -1837,6 +2804,12 @@ class UpdatedSkillMdDefinition(_SerdeShape): optional_value: SkillMdDefinition | None = ... """The updated skill markdown definition value.""" +class UpdatedSkillMdDefinitionDict(TypedDict, total=False): + """Dictionary form of `UpdatedSkillMdDefinition`.""" + + optional_value: SkillMdDefinition | SkillMdDefinitionDict | None + """The updated skill markdown definition value.""" + @dataclass(kw_only=True) class UpdatedSynchronizationConfiguration(_SerdeShape): """ @@ -1847,6 +2820,14 @@ class UpdatedSynchronizationConfiguration(_SerdeShape): optional_value: SynchronizationConfiguration | None = ... """The updated synchronization configuration value.""" +class UpdatedSynchronizationConfigurationDict(TypedDict, total=False): + """Dictionary form of `UpdatedSynchronizationConfiguration`.""" + + optional_value: ( + SynchronizationConfiguration | SynchronizationConfigurationDict | None + ) + """The updated synchronization configuration value.""" + @dataclass(kw_only=True) class UpdatedSynchronizationType(_SerdeShape): """ @@ -1857,6 +2838,12 @@ class UpdatedSynchronizationType(_SerdeShape): optional_value: str | None = ... """The updated synchronization type value.""" +class UpdatedSynchronizationTypeDict(TypedDict, total=False): + """Dictionary form of `UpdatedSynchronizationType`.""" + + optional_value: str | None + """The updated synchronization type value.""" + @dataclass(kw_only=True) class UpdatedToolsDefinition(_SerdeShape): """ @@ -1869,6 +2856,12 @@ class UpdatedToolsDefinition(_SerdeShape): optional_value: ToolsDefinition | None = ... """The updated tools definition value.""" +class UpdatedToolsDefinitionDict(TypedDict, total=False): + """Dictionary form of `UpdatedToolsDefinition`.""" + + optional_value: ToolsDefinition | ToolsDefinitionDict | None + """The updated tools definition value.""" + @dataclass(kw_only=True) class UpdateEvaluatorInput(_SerdeShape): """Dataclass for UpdateEvaluatorInput structure.""" @@ -1912,6 +2905,48 @@ class UpdateEvaluatorInput(_SerdeShape): Evaluations](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/evaluations-encryption.html). """ +class UpdateEvaluatorInputDict(TypedDict, total=False): + """Dictionary form of `UpdateEvaluatorInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + evaluator_id: Required[str] + """The unique identifier of the evaluator to update.""" + description: str | None + """The updated description of the evaluator.""" + evaluator_config: EvaluatorConfig | EvaluatorConfigDict | None + """ + The updated configuration for the evaluator. Specify either + LLM-as-a-Judge settings with instructions, rating scale, and model + configuration, or code-based settings with a customer-managed Lambda + function. + """ + level: str | None + """ + The updated evaluation level (`TOOL_CALL`, `TRACE`, or `SESSION`) that + determines the scope of evaluation. + """ + kms_key_arn: str | None + """ + The Amazon Resource Name (ARN) of a customer managed KMS key to use for + encrypting sensitive evaluator data. Specify a new key ARN to rotate the + encryption key, or specify a key ARN to add encryption to an evaluator + that was previously created without one. When you rotate to a new key, + the service decrypts the existing data with the old key and re-encrypts + it with the new key. Only symmetric encryption KMS keys are supported. + For more information, see [Encryption at rest for AgentCore + Evaluations](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/evaluations-encryption.html). + """ + @dataclass(kw_only=True) class UpdateEvaluatorOutput(_SerdeShape): """Dataclass for UpdateEvaluatorOutput structure.""" @@ -1995,6 +3030,79 @@ class UpdateGatewayInput(_SerdeShape): clients reach the gateway through your own proxy or custom domain. """ +class UpdateGatewayInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGatewayInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway to update.""" + name: Required[str] + """ + The name of the gateway. This name must be the same as the one when the + gateway was created. + """ + description: str | None + """The updated description for the gateway.""" + role_arn: Required[str] + """The updated IAM role ARN that provides permissions for the gateway.""" + protocol_type: str | None + """The updated protocol type for the gateway.""" + protocol_configuration: ( + GatewayProtocolConfiguration | GatewayProtocolConfigurationDict | None + ) + """ + The configuration for a gateway protocol. This structure defines how the + gateway communicates with external services. + """ + authorizer_type: Required[str] + """The updated authorizer type for the gateway.""" + authorizer_configuration: ( + AuthorizerConfiguration | AuthorizerConfigurationDict | None + ) + """The updated authorizer configuration for the gateway.""" + kms_key_arn: str | None + """The updated ARN of the KMS key used to encrypt the gateway.""" + custom_transform_configuration: ( + CustomTransformConfiguration | CustomTransformConfigurationDict | None + ) + """ + The updated custom transformation configuration for the gateway. This + configuration defines how the gateway transforms requests and responses. + """ + interceptor_configurations: ( + Sequence[GatewayInterceptorConfiguration | GatewayInterceptorConfigurationDict] + | None + ) + """The updated interceptor configurations for the gateway.""" + policy_engine_configuration: ( + GatewayPolicyEngineConfiguration | GatewayPolicyEngineConfigurationDict | None + ) + """ + The updated policy engine configuration for the gateway. A policy engine + is a collection of policies that evaluates and authorizes agent tool + calls. When associated with a gateway, the policy engine intercepts all + agent requests and determines whether to allow or deny each action based + on the defined policies. + """ + exception_level: str | None + """ + The level of detail in error messages returned when invoking the + gateway. + + - If the value is `DEBUG`, granular exception messages are returned to + help a user debug the gateway. + + - If the value is omitted, a generic error message is returned to the + end user. + """ + waf_configuration: WafConfiguration | WafConfigurationDict | None + """The updated Amazon Web Services WAF configuration for the gateway.""" + domain_override: DomainOverride | DomainOverrideDict | None + """ + The updated public domain names that the gateway advertises in its OAuth + discovery URLs instead of the inbound Host header. Specify this when + clients reach the gateway through your own proxy or custom domain. + """ + @dataclass(kw_only=True) class UpdateGatewayOutput(_SerdeShape): """Dataclass for UpdateGatewayOutput structure.""" @@ -2090,6 +3198,21 @@ class UpdateGatewayRateLimitInput(_SerdeShape): creation and cannot be changed. """ +class UpdateGatewayRateLimitInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGatewayRateLimitInput`.""" + + gateway_identifier: Required[str] + """The unique identifier of the gateway.""" + rate_limit_id: Required[str] + """The unique identifier of the rate limit to update.""" + description: str | None + """The updated human-readable description for this rate limit.""" + entries: Required[Sequence[LimitEntry | LimitEntryDict]] + """ + The updated rule entries. The dimension keys are immutable after + creation and cannot be changed. + """ + @dataclass(kw_only=True) class UpdateGatewayRateLimitOutput(_SerdeShape): """Shared fields for `GatewayRateLimit` responses.""" @@ -2141,6 +3264,22 @@ class UpdateGatewayRuleInput(_SerdeShape): description: str | None = ... """The updated description of the rule.""" +class UpdateGatewayRuleInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGatewayRuleInput`.""" + + gateway_identifier: Required[str] + """The identifier of the gateway containing the rule.""" + rule_id: Required[str] + """The unique identifier of the rule to update.""" + priority: int | None + """The updated priority of the rule.""" + conditions: Sequence[Condition | ConditionDict] | None + """The updated conditions for the rule.""" + actions: Sequence[Action | ActionDict] | None + """The updated actions for the rule.""" + description: str | None + """The updated description of the rule.""" + @dataclass(kw_only=True) class UpdateGatewayRuleOutput(_SerdeShape): """ @@ -2221,6 +3360,50 @@ class UpdateGatewayTargetInput(_SerdeShape): certificate authority, omit this field on update. """ +class UpdateGatewayTargetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGatewayTargetInput`.""" + + gateway_identifier: Required[str] + """The unique identifier of the gateway associated with the target.""" + target_id: Required[str] + """The unique identifier of the gateway target to update.""" + name: str | None + """The updated name for the gateway target.""" + description: str | None + """The updated description for the gateway target.""" + target_configuration: Required[TargetConfiguration | TargetConfigurationDict] + """ + The configuration for a gateway target. This structure defines how the + gateway connects to and interacts with the target endpoint. + """ + credential_provider_configurations: ( + Sequence[CredentialProviderConfiguration | CredentialProviderConfigurationDict] + | None + ) + """The updated credential provider configurations for the gateway target.""" + metadata_configuration: MetadataConfiguration | MetadataConfigurationDict | None + """ + Configuration for HTTP header and query parameter propagation to the + gateway target. + """ + private_endpoint: PrivateEndpoint | PrivateEndpointDict | None + """ + The private endpoint configuration for the gateway target. Use this to + connect the gateway to private resources in your VPC. + """ + certificate_configurations: ( + Sequence[CertificateConfiguration | CertificateConfigurationDict] | None + ) + """ + The private certificate authority (CA) configurations for the gateway + target. Use this to have the gateway trust a private CA when it + establishes TLS connections to the target endpoint. Provide each + certificate by reference to an Amazon S3 object or an Amazon Web + Services Secrets Manager secret. You can specify only one certificate + authority configuration in this list. To remove a previously configured + certificate authority, omit this field on update. + """ + @dataclass(kw_only=True) class UpdateGatewayTargetOutput(_SerdeShape): """Dataclass for UpdateGatewayTargetOutput structure.""" @@ -2306,6 +3489,31 @@ class UpdateHarnessEndpointInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateHarnessEndpointInputDict(TypedDict, total=False): + """Dictionary form of `UpdateHarnessEndpointInput`.""" + + harness_id: Required[str] + """The ID of the harness that the endpoint belongs to.""" + endpoint_name: Required[str] + """The name of the endpoint to update.""" + target_version: str | None + """ + The harness version that the endpoint points to. If not specified, the + existing value is retained. + """ + description: str | None + """ + A description of the endpoint. If not specified, the existing value is + retained. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateHarnessEndpointOutput(_SerdeShape): """Dataclass for UpdateHarnessEndpointOutput structure.""" @@ -2422,6 +3630,119 @@ class UpdateHarnessInput(_SerdeShape): invocation. If not specified, the existing value is retained. """ +class UpdateHarnessInputDict(TypedDict, total=False): + """Dictionary form of `UpdateHarnessInput`.""" + + harness_id: Required[str] + """The ID of the harness to update.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. + + This field is autopopulated if not provided. + """ + execution_role_arn: str | None + """ + The ARN of the IAM role that the harness assumes when running. If not + specified, the existing value is retained. + """ + environment: ( + HarnessEnvironmentProviderRequest | HarnessEnvironmentProviderRequestDict | None + ) + """ + The compute environment configuration for the harness. If not specified, + the existing value is retained. + """ + environment_artifact: ( + UpdatedHarnessEnvironmentArtifact | UpdatedHarnessEnvironmentArtifactDict | None + ) + """ + The environment artifact for the harness. Use the optionalValue wrapper + to set a new value, or set it to null to clear the existing + configuration. + """ + environment_variables: Mapping[str, str] | None + """ + Environment variables to set in the harness runtime environment. If + specified, this replaces all existing environment variables. If not + specified, the existing value is retained. + """ + authorizer_configuration: ( + UpdatedAuthorizerConfiguration | UpdatedAuthorizerConfigurationDict | None + ) + """ + Wrapper for updating an optional AuthorizerConfiguration field with + PATCH semantics. When present in an update request, the authorizer + configuration is replaced with optionalValue. When absent, the + authorizer configuration is left unchanged. To unset, include the + wrapper with optionalValue not specified. + """ + model: HarnessModelConfiguration | HarnessModelConfigurationDict | None + """ + The model configuration for the harness. If not specified, the existing + value is retained. + """ + system_prompt: ( + Sequence[HarnessSystemContentBlock | HarnessSystemContentBlockDict] | None + ) + """ + The system prompt that defines the agent's behavior. If not specified, + the existing value is retained. + """ + tools: Sequence[HarnessTool | HarnessToolDict] | None + """ + The tools available to the agent. If specified, this replaces all + existing tools. If not specified, the existing value is retained. + """ + skills: Sequence[HarnessSkill | HarnessSkillDict] | None + """ + The skills available to the agent. If specified, this replaces all + existing skills. If not specified, the existing value is retained. + """ + allowed_tools: Sequence[str] | None + """ + The tools that the agent is allowed to use. If specified, this replaces + all existing allowed tools. If not specified, the existing value is + retained. + """ + memory: ( + UpdatedHarnessMemoryConfiguration | UpdatedHarnessMemoryConfigurationDict | None + ) + """ + The AgentCore Memory configuration. Use the optionalValue wrapper to set + a new value, or set it to null to clear the existing configuration. + """ + truncation: ( + HarnessTruncationConfiguration | HarnessTruncationConfigurationDict | None + ) + """ + The truncation configuration for managing conversation context. If not + specified, the existing value is retained. + """ + hooks: Sequence[HarnessHook | HarnessHookDict] | None + """ + The lifecycle hooks to run at defined points in the agent loop. If + specified, this replaces all existing hooks. If not specified, the + existing hooks are retained. + """ + max_iterations: int | None + """ + The maximum number of iterations the agent loop can execute per + invocation. If not specified, the existing value is retained. + """ + max_tokens: int | None + """ + The maximum total number of output tokens the agent can generate across + all model calls within a single invocation. If not specified, the + existing value is retained. + """ + timeout_seconds: int | None + """ + The maximum duration in seconds for the agent loop execution per + invocation. If not specified, the existing value is retained. + """ + @dataclass(kw_only=True) class UpdateHarnessOutput(_SerdeShape): """Dataclass for UpdateHarnessOutput structure.""" @@ -2479,6 +3800,50 @@ class UpdateMemoryInput(_SerdeShape): stream_delivery_resources: StreamDeliveryResources | None = ... """Configuration for streaming memory record data to external resources.""" +class UpdateMemoryInputDict(TypedDict, total=False): + """Dictionary form of `UpdateMemoryInput`.""" + + client_token: str | None + """ + A client token is used for keeping track of idempotent requests. It can + contain a session id which can be around 250 chars, combined with a + unique Amazon Web Services identifier. + + This field is autopopulated if not provided. + """ + memory_id: Required[str] + """The unique identifier of the memory to update.""" + description: str | None + """The updated description of the AgentCore Memory resource.""" + event_expiry_duration: int | None + """ + The number of days after which memory events expire, between 7 and 3650 + days. + """ + memory_execution_role_arn: str | None + """ + The ARN of the IAM role that provides permissions for the AgentCore + Memory resource. + """ + memory_strategies: ModifyMemoryStrategies | ModifyMemoryStrategiesDict | None + """The memory strategies to add, modify, or delete.""" + add_indexed_keys: Sequence[IndexedKey | IndexedKeyDict] | None + """ + Additional metadata keys to index. Previously indexed keys cannot be + removed. + """ + namespace_keys: Sequence[NamespaceKeyEntry | NamespaceKeyEntryDict] | None + """ + The namespace variable key definitions with validation rules for this + memory. This value fully replaces the existing set --- any key you omit + is removed. Any referenced `namespaceKey` omission will throw + ValidationException. + """ + stream_delivery_resources: ( + StreamDeliveryResources | StreamDeliveryResourcesDict | None + ) + """Configuration for streaming memory record data to external resources.""" + @dataclass(kw_only=True) class UpdateMemoryOutput(_SerdeShape): """Dataclass for UpdateMemoryOutput structure.""" @@ -2504,6 +3869,18 @@ class UpdateOauth2CredentialProviderInput(_SerdeShape): oauth2_provider_config_input: Oauth2ProviderConfigInput | None = ... """The configuration input for the OAuth2 provider.""" +class UpdateOauth2CredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `UpdateOauth2CredentialProviderInput`.""" + + name: Required[str] + """The name of the OAuth2 credential provider to update.""" + credential_provider_vendor: Required[str] + """The vendor of the OAuth2 credential provider.""" + oauth2_provider_config_input: Required[ + Oauth2ProviderConfigInput | Oauth2ProviderConfigInputDict + ] + """The configuration input for the OAuth2 provider.""" + @dataclass(kw_only=True) class UpdateOauth2CredentialProviderOutput(_SerdeShape): """Dataclass for UpdateOauth2CredentialProviderOutput structure.""" @@ -2600,6 +3977,53 @@ class UpdateOnlineEvaluationConfigInput(_SerdeShape): execution_status: str | None = ... """The updated execution status to enable or disable the online evaluation.""" +class UpdateOnlineEvaluationConfigInputDict(TypedDict, total=False): + """Dictionary form of `UpdateOnlineEvaluationConfigInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + online_evaluation_config_id: Required[str] + """The unique identifier of the online evaluation configuration to update.""" + description: str | None + """The updated description of the online evaluation configuration.""" + rule: Rule | RuleDict | None + """ + The updated evaluation rule containing sampling configuration, filters, + and session settings. + """ + data_source_config: DataSourceConfig | DataSourceConfigDict | None + """ + The updated data source configuration specifying CloudWatch log groups + and service names to monitor. + """ + evaluators: Sequence[EvaluatorReference | EvaluatorReferenceDict] | None + """The updated list of evaluators to apply during online evaluation.""" + insights: Sequence[Insight | InsightDict] | None + """The updated list of insight types to run against agent sessions.""" + clustering_config: ClusteringConfig | ClusteringConfigDict | None + """The updated clustering configuration for periodic batch evaluation.""" + output_config: OutputConfig | OutputConfigDict | None + """ + The configuration that specifies where evaluation results should be + written for monitoring and analysis. + """ + evaluation_execution_role_arn: str | None + """ + The updated Amazon Resource Name (ARN) of the IAM role used for + evaluation execution. + """ + execution_status: str | None + """The updated execution status to enable or disable the online evaluation.""" + @dataclass(kw_only=True) class UpdateOnlineEvaluationConfigOutput(_SerdeShape): """Dataclass for UpdateOnlineEvaluationConfigOutput structure.""" @@ -2664,6 +4088,39 @@ class UpdatePaymentConnectorInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdatePaymentConnectorInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePaymentConnectorInput`.""" + + payment_manager_id: Required[str] + """The unique identifier of the parent payment manager.""" + payment_connector_id: Required[str] + """The unique identifier of the payment connector to update.""" + description: str | None + """The updated description of the payment connector.""" + type: str | None + """The updated type of the payment connector.""" + credential_provider_configurations: ( + Sequence[ + CredentialsProviderConfiguration | CredentialsProviderConfigurationDict + ] + | None + ) + """ + The updated credential provider configurations for the payment + connector. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdatePaymentConnectorOutput(_SerdeShape): """Dataclass for UpdatePaymentConnectorOutput structure.""" @@ -2717,6 +4174,21 @@ class UpdatePaymentCredentialProviderInput(_SerdeShape): provider_configuration_input: PaymentProviderConfigurationInput | None = ... """Configuration specific to the vendor, including API credentials.""" +class UpdatePaymentCredentialProviderInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePaymentCredentialProviderInput`.""" + + name: Required[str] + """The name of the payment credential provider to update.""" + credential_provider_vendor: Required[str] + """ + The vendor type for the payment credential provider (e.g., CoinbaseCDP, + StripePrivy). + """ + provider_configuration_input: Required[ + PaymentProviderConfigurationInput | PaymentProviderConfigurationInputDict + ] + """Configuration specific to the vendor, including API credentials.""" + @dataclass(kw_only=True) class UpdatePaymentCredentialProviderOutput(_SerdeShape): """Dataclass for UpdatePaymentCredentialProviderOutput structure.""" @@ -2781,6 +4253,41 @@ class UpdatePaymentManagerInput(_SerdeShape): used to encrypt sensitive payment manager data at rest. """ +class UpdatePaymentManagerInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePaymentManagerInput`.""" + + payment_manager_id: Required[str] + """The unique identifier of the payment manager to update.""" + description: str | None + """The updated description of the payment manager.""" + authorizer_type: str | None + """The updated authorizer type for the payment manager.""" + authorizer_configuration: ( + AuthorizerConfiguration | AuthorizerConfigurationDict | None + ) + """The updated authorizer configuration for the payment manager.""" + role_arn: str | None + """ + The updated Amazon Resource Name (ARN) of the IAM role for the payment + manager. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If you don't specify this field, a + value is randomly generated for you. If this token matches a previous + request, the service ignores the request, but doesn't return an error. + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + kms_key_arn: str | None + """ + The updated Amazon Resource Name (ARN) of the customer managed KMS key + used to encrypt sensitive payment manager data at rest. + """ + @dataclass(kw_only=True) class UpdatePaymentManagerOutput(_SerdeShape): """Dataclass for UpdatePaymentManagerOutput structure.""" @@ -2825,9 +4332,17 @@ class UpdatePaymentManagerOutput(_SerdeShape): class UpdatePolicyEngineInput(_SerdeShape): """Dataclass for UpdatePolicyEngineInput structure.""" - policy_engine_id: str | None = ... + policy_engine_id: str | None = ... + """The unique identifier of the policy engine to be updated.""" + description: UpdatedDescription | None = ... + """The new description for the policy engine.""" + +class UpdatePolicyEngineInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePolicyEngineInput`.""" + + policy_engine_id: Required[str] """The unique identifier of the policy engine to be updated.""" - description: UpdatedDescription | None = ... + description: UpdatedDescription | UpdatedDescriptionDict | None """The new description for the policy engine.""" @dataclass(kw_only=True) @@ -2909,6 +4424,51 @@ class UpdatePolicyInput(_SerdeShape): omit this field, the policy's existing enforcement mode is unchanged. """ +class UpdatePolicyInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePolicyInput`.""" + + policy_engine_id: Required[str] + """ + The identifier of the policy engine that manages the policy to be + updated. This ensures the policy is updated within the correct policy + engine context. + """ + policy_id: Required[str] + """ + The unique identifier of the policy to be updated. This must be a valid + policy ID that exists within the specified policy engine. + """ + description: UpdatedDescription | UpdatedDescriptionDict | None + """ + The new human-readable description for the policy. This optional field + allows updating the policy's documentation while keeping the same + policy logic. + """ + definition: PolicyDefinition | PolicyDefinitionDict | None + """ + The new Cedar or Dogwood policy statement that defines the access + control rules. This replaces the existing policy definition with new + logic while maintaining the policy's identity. + """ + validation_mode: str | None + """ + The validation mode for the policy update. Determines how Cedar analyzer + validation results are handled during policy updates. + FAIL_ON_ANY_FINDINGS runs the Cedar analyzer and fails the update if + validation issues are detected, ensuring the policy conforms to the + Cedar schema and tool context. IGNORE_ALL_FINDINGS runs the Cedar + analyzer but allows updates despite validation warnings. Use + FAIL_ON_ANY_FINDINGS to ensure policy correctness during updates, + especially when modifying policy logic or conditions. + """ + enforcement_mode: str | None + """ + The enforcement mode for the policy. Run this policy in `LOG_ONLY` mode + to collect data on how it affects your application. Once you are + satisfied with the data gathered, switch the policy to `ACTIVE`. If you + omit this field, the policy's existing enforcement mode is unchanged. + """ + @dataclass(kw_only=True) class UpdatePolicyOutput(_SerdeShape): """Dataclass for UpdatePolicyOutput structure.""" @@ -2974,6 +4534,40 @@ class UpdateRegistryInput(_SerdeShape): status are not affected. """ +class UpdateRegistryInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRegistryInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry to update. You can specify either the + Amazon Resource Name (ARN) or the ID of the registry. + """ + name: str | None + """The updated name of the registry.""" + description: UpdatedDescription | UpdatedDescriptionDict | None + """ + The updated description of the registry. To clear the description, + include the `UpdatedDescription` wrapper with `optionalValue` not + specified. + """ + authorizer_configuration: ( + UpdatedAuthorizerConfiguration | UpdatedAuthorizerConfigurationDict | None + ) + """ + The updated authorizer configuration for the registry. Changing the + authorizer configuration can break existing consumers of the registry + who are using the authorization type prior to the update. + """ + approval_configuration: ( + UpdatedApprovalConfiguration | UpdatedApprovalConfigurationDict | None + ) + """ + The updated approval configuration for registry records. The updated + configuration only affects new records that move to `PENDING_APPROVAL` + status after the change. Existing records already in `PENDING_APPROVAL` + status are not affected. + """ + @dataclass(kw_only=True) class UpdateRegistryOutput(_SerdeShape): """Dataclass for UpdateRegistryOutput structure.""" @@ -3076,6 +4670,62 @@ class UpdateRegistryRecordInput(_SerdeShape): record metadata from the configured external source. """ +class UpdateRegistryRecordInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRegistryRecordInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry containing the record. You can specify + either the Amazon Resource Name (ARN) or the ID of the registry. + """ + record_id: Required[str] + """ + The identifier of the registry record to update. You can specify either + the Amazon Resource Name (ARN) or the ID of the record. + """ + name: str | None + """The updated name for the registry record.""" + description: UpdatedDescription | UpdatedDescriptionDict | None + """ + The updated description for the registry record. To clear the + description, include the `UpdatedDescription` wrapper with + `optionalValue` not specified. + """ + descriptor_type: str | None + """ + The updated descriptor type for the registry record. Changing the + descriptor type may require updating the `descriptors` field to match + the new type's schema requirements. + """ + descriptors: UpdatedDescriptors | UpdatedDescriptorsDict | None + """ + The updated descriptor-type-specific configuration containing the + resource schema and metadata. Uses PATCH semantics where individual + descriptor fields can be updated independently. + """ + record_version: str | None + """ + The version of the registry record for optimistic locking. If provided, + it must match the current version of the record. The service + automatically increments the version after a successful update. + """ + synchronization_type: ( + UpdatedSynchronizationType | UpdatedSynchronizationTypeDict | None + ) + """The updated synchronization type for the registry record.""" + synchronization_configuration: ( + UpdatedSynchronizationConfiguration + | UpdatedSynchronizationConfigurationDict + | None + ) + """The updated synchronization configuration for the registry record.""" + trigger_synchronization: bool | None + """ + Whether to trigger synchronization using the stored or provided + configuration. When set to `true`, the service will synchronize the + record metadata from the configured external source. + """ + @dataclass(kw_only=True) class UpdateRegistryRecordOutput(_SerdeShape): """Dataclass for UpdateRegistryRecordOutput structure.""" @@ -3151,6 +4801,27 @@ class UpdateRegistryRecordStatusInput(_SerdeShape): rejected. """ +class UpdateRegistryRecordStatusInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRegistryRecordStatusInput`.""" + + registry_id: Required[str] + """ + The identifier of the registry containing the record. You can specify + either the Amazon Resource Name (ARN) or the ID of the registry. + """ + record_id: Required[str] + """ + The identifier of the registry record to update the status for. You can + specify either the Amazon Resource Name (ARN) or the ID of the record. + """ + status: Required[str] + """The target status for the registry record.""" + status_reason: Required[str] + """ + The reason for the status change, such as why the record was approved or + rejected. + """ + @dataclass(kw_only=True) class UpdateRegistryRecordStatusOutput(_SerdeShape): """Dataclass for UpdateRegistryRecordStatusOutput structure.""" @@ -3187,6 +4858,17 @@ class UpdateWorkloadIdentityInput(_SerdeShape): this workload identity. This list replaces the existing list. """ +class UpdateWorkloadIdentityInputDict(TypedDict, total=False): + """Dictionary form of `UpdateWorkloadIdentityInput`.""" + + name: Required[str] + """The name of the workload identity to update.""" + allowed_resource_oauth2_return_urls: Sequence[str] | None + """ + The new list of allowed OAuth2 return URLs for resources associated with + this workload identity. This list replaces the existing list. + """ + @dataclass(kw_only=True) class UpdateWorkloadIdentityOutput(_SerdeShape): """Dataclass for UpdateWorkloadIdentityOutput structure.""" @@ -3259,6 +4941,36 @@ class UserPreferenceMemoryStrategyInput(_SerdeShape): expire. """ +class UserPreferenceMemoryStrategyInputDict(TypedDict, total=False): + """Dictionary form of `UserPreferenceMemoryStrategyInput`.""" + + name: Required[str] + """The name of the user preference memory strategy.""" + description: str | None + """The description of the user preference memory strategy.""" + namespaces: Sequence[str] | None + """ + This is a legacy parameter, use `namespaceTemplates`. The namespaces + associated with the user preference memory strategy. + """ + namespace_templates: Sequence[str] | None + """ + The namespaceTemplates associated with the user preference memory + strategy. + """ + memory_record_schema: MemoryRecordSchema | MemoryRecordSchemaDict | None + """Schema for metadata fields on records generated by this strategy.""" + record_expiry_specification: ( + RecordExpirySpecification | RecordExpirySpecificationDict | None + ) + """ + The record expiry (long-term memory time-to-live) configuration for + memory records generated by this strategy. Set + `recordExpiryDurationDays` to the number of days after which records + expire. If not specified, records generated by this strategy do not + expire. + """ + @dataclass(kw_only=True) class UserPreferenceOverrideConfigurationInput(_SerdeShape): """Input for user preference override configuration in a memory strategy.""" @@ -3268,6 +4980,22 @@ class UserPreferenceOverrideConfigurationInput(_SerdeShape): consolidation: UserPreferenceOverrideConsolidationConfigurationInput | None = ... """The consolidation configuration for a user preference override.""" +class UserPreferenceOverrideConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UserPreferenceOverrideConfigurationInput`.""" + + extraction: ( + UserPreferenceOverrideExtractionConfigurationInput + | UserPreferenceOverrideExtractionConfigurationInputDict + | None + ) + """The extraction configuration for a user preference override.""" + consolidation: ( + UserPreferenceOverrideConsolidationConfigurationInput + | UserPreferenceOverrideConsolidationConfigurationInputDict + | None + ) + """The consolidation configuration for a user preference override.""" + @dataclass(kw_only=True) class UserPreferenceOverrideConsolidationConfigurationInput(_SerdeShape): """ @@ -3280,6 +5008,14 @@ class UserPreferenceOverrideConsolidationConfigurationInput(_SerdeShape): model_id: str """The model ID to use for user preference consolidation.""" +class UserPreferenceOverrideConsolidationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UserPreferenceOverrideConsolidationConfigurationInput`.""" + + append_to_prompt: Required[str] + """The text to append to the prompt for user preference consolidation.""" + model_id: Required[str] + """The model ID to use for user preference consolidation.""" + @dataclass(kw_only=True) class UserPreferenceOverrideExtractionConfigurationInput(_SerdeShape): """ @@ -3292,6 +5028,14 @@ class UserPreferenceOverrideExtractionConfigurationInput(_SerdeShape): model_id: str """The model ID to use for user preference extraction.""" +class UserPreferenceOverrideExtractionConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UserPreferenceOverrideExtractionConfigurationInput`.""" + + append_to_prompt: Required[str] + """The text to append to the prompt for user preference extraction.""" + model_id: Required[str] + """The model ID to use for user preference extraction.""" + @dataclass class ValidationStringValidation(_SerdeShape): """Validation for STRING fields.""" @@ -3334,6 +5078,25 @@ specified, matching the field's data type. class _ValidationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Validation: ... +class ValidationStringValidationDict(TypedDict): + string_validation: StringValidation | StringValidationDict + """Validation for STRING fields.""" + +class ValidationStringListValidationDict(TypedDict): + string_list_validation: StringListValidation | StringListValidationDict + """Validation for STRINGLIST fields.""" + +class ValidationNumberValidationDict(TypedDict): + number_validation: NumberValidation | NumberValidationDict + """Validation for NUMBER fields.""" + +ValidationDict = Union[ + ValidationStringValidationDict + | ValidationStringListValidationDict + | ValidationNumberValidationDict +] +"""Dictionary form of `Validation`, setting exactly one variant.""" + @dataclass(kw_only=True) class ValidationException(ServiceError, _SerdeShape): """The input fails to satisfy the constraints specified by the service.""" @@ -3382,6 +5145,20 @@ class VersionCreatedBySource(_SerdeShape): example, a user ARN or optimization job ARN). """ +class VersionCreatedBySourceDict(TypedDict, total=False): + """Dictionary form of `VersionCreatedBySource`.""" + + name: Required[str] + """ + The name of the source (for example, `user`, `optimization-job`, or + `system`). + """ + arn: str | None + """ + The Amazon Resource Name (ARN) of the source, if applicable (for + example, a user ARN or optimization job ARN). + """ + @dataclass(kw_only=True) class VersionFilter(_SerdeShape): """A filter for listing configuration bundle versions.""" @@ -3397,6 +5174,20 @@ class VersionFilter(_SerdeShape): `branchName` to get the latest version for a specific branch. """ +class VersionFilterDict(TypedDict, total=False): + """Dictionary form of `VersionFilter`.""" + + branch_name: str | None + """Filter by branch name.""" + created_by_name: str | None + """Filter by creation source name.""" + latest_per_branch: bool | None + """ + When true, returns only the latest version for each branch. When false + or not specified, returns all versions. Can be combined with + `branchName` to get the latest version for a specific branch. + """ + @dataclass(kw_only=True) class VersionLineageMetadata(_SerdeShape): """ @@ -3448,6 +5239,13 @@ volumes used by agents that run on capacity provider instances. class _VolumeConfigurationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> VolumeConfiguration: ... +class VolumeConfigurationEbsConfigurationDict(TypedDict): + ebs_configuration: EbsVolumeConfiguration | EbsVolumeConfigurationDict + """The configuration for an Amazon EBS-backed persistent volume.""" + +VolumeConfigurationDict = Union[VolumeConfigurationEbsConfigurationDict] +"""Dictionary form of `VolumeConfiguration`, setting exactly one variant.""" + @dataclass(kw_only=True) class VpcConfig(_SerdeShape): """VpcConfig for the Agent.""" @@ -3489,6 +5287,46 @@ class VpcConfig(_SerdeShape): request returns a `ValidationException`. """ +class VpcConfigDict(TypedDict, total=False): + """Dictionary form of `VpcConfig`.""" + + security_groups: Required[Sequence[str]] + """The security groups associated with the VPC configuration.""" + subnets: Required[Sequence[str]] + """The subnets associated with the VPC configuration.""" + require_service_s3_endpoint: bool | None + """ + Note: + This field applies only to Agent Runtimes. It is not applicable to + Browsers or Code Interpreters. + + Controls whether a service-managed Amazon S3 gateway endpoint is + provisioned in the VPC network topology for the agent runtime. This + gateway is used by Amazon Bedrock AgentCore Runtime to download code and + container images during agent startup. + + Starting May 5, 2026, Amazon Bedrock AgentCore Runtime is gradually + rolling out a change to how network isolation is configured for VPC mode + agents. Agent runtimes created on or after this rollout will no longer + include the service-managed Amazon S3 gateway. Instead, all network + access, including to Amazon S3, is governed exclusively by your VPC + configuration. This field cannot be set on agent runtimes created after + the rollout. Passing this field in an `UpdateAgentRuntime` request for + these agent runtimes returns a `ValidationException`. + + Agent runtimes created before the rollout are not affected and continue + to operate with the service-managed Amazon S3 gateway. To enforce full + VPC network isolation on these existing agent runtimes, set this field + to `false` via the `UpdateAgentRuntime` API. Before opting out, ensure + your VPC provides the Amazon S3 access required for agent startup. If + this field is not specified or is set to `true`, the service-managed + Amazon S3 gateway remains provisioned. + + This field is only supported in the `UpdateAgentRuntime` API for + pre-rollout agent runtimes. Passing this field in a `CreateAgentRuntime` + request returns a `ValidationException`. + """ + @dataclass(kw_only=True) class VpcConfiguration(_SerdeShape): """The VPC configuration for launching Amazon EC2 instances.""" @@ -3504,6 +5342,20 @@ class VpcConfiguration(_SerdeShape): specify at least one security group. """ +class VpcConfigurationDict(TypedDict, total=False): + """Dictionary form of `VpcConfiguration`.""" + + subnets: Required[Sequence[str]] + """ + The IDs of the subnets in which to launch instances. You must specify at + least one subnet. + """ + security_groups: Required[Sequence[str]] + """ + The IDs of the security groups to associate with the instances. You must + specify at least one security group. + """ + @dataclass(kw_only=True) class WafConfiguration(_SerdeShape): """ @@ -3525,6 +5377,22 @@ class WafConfiguration(_SerdeShape): cannot be evaluated. """ +class WafConfigurationDict(TypedDict, total=False): + """Dictionary form of `WafConfiguration`.""" + + failure_mode: str | None + """ + The failure mode that determines how the gateway handles requests when + Amazon Web Services WAF is unreachable or times out. Valid values + include: + + - `FAIL_CLOSE` - The gateway blocks requests when Amazon Web Services + WAF cannot be evaluated. + + - `FAIL_OPEN` - The gateway allows requests when Amazon Web Services WAF + cannot be evaluated. + """ + class WafFailureMode(UnknownEnumMixin, StrEnum): FAIL_CLOSE = "FAIL_CLOSE" FAIL_OPEN = "FAIL_OPEN" @@ -3542,6 +5410,15 @@ class WeightedOverride(_SerdeShape): configuration bundle versions. """ +class WeightedOverrideDict(TypedDict, total=False): + """Dictionary form of `WeightedOverride`.""" + + traffic_split: Required[Sequence[TrafficSplitEntry | TrafficSplitEntryDict]] + """ + The traffic split entries defining how traffic is distributed between + configuration bundle versions. + """ + @dataclass(kw_only=True) class WeightedRoute(_SerdeShape): """A weighted route that splits traffic between multiple gateway targets.""" @@ -3552,6 +5429,17 @@ class WeightedRoute(_SerdeShape): targets. """ +class WeightedRouteDict(TypedDict, total=False): + """Dictionary form of `WeightedRoute`.""" + + traffic_split: Required[ + Sequence[TargetTrafficSplitEntry | TargetTrafficSplitEntryDict] + ] + """ + The traffic split entries defining how traffic is distributed between + targets. + """ + @dataclass(kw_only=True) class WorkloadIdentityDetails(_SerdeShape): """The information about the workload identity.""" @@ -3571,3 +5459,6 @@ class WorkloadIdentityType(_SerdeShape): @dataclass(kw_only=True) class Unit(_SerdeShape): """Dataclass for Unit structure.""" + +class UnitDict(TypedDict, total=False): + """Dictionary form of `Unit`.""" diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas.py index 1c42d6ce8..3eab1a508 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas.py +++ b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas.py @@ -1607,7 +1607,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:02d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_0.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_00.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_0.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_00.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_1.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_01.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_1.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_01.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_2.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_02.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_2.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_02.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_3.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_03.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_3.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_03.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_4.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_04.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_4.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_04.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_5.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_05.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_5.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_05.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_6.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_06.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_6.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_06.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_7.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_07.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_7.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_07.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_8.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_08.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_8.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_08.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_9.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_09.py similarity index 100% rename from clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_9.py rename to clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/_private/schemas_09.py diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/aio/client.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/aio/client.py index dd554d68d..ce4444cf1 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/aio/client.py +++ b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,349 +20,177 @@ if TYPE_CHECKING: from ..models import ( - AddDatasetExamplesInput, AddDatasetExamplesOutput, - BatchPutGatewayRateLimitsInput, BatchPutGatewayRateLimitsOutput, - CreateAgentRuntimeEndpointInput, CreateAgentRuntimeEndpointOutput, - CreateAgentRuntimeInput, CreateAgentRuntimeOutput, - CreateApiKeyCredentialProviderInput, CreateApiKeyCredentialProviderOutput, - CreateBrowserInput, CreateBrowserOutput, - CreateBrowserProfileInput, CreateBrowserProfileOutput, - CreateCapacityProviderInput, CreateCapacityProviderOutput, - CreateCodeInterpreterInput, CreateCodeInterpreterOutput, - CreateConfigurationBundleInput, CreateConfigurationBundleOutput, - CreateConsentPortalInput, CreateConsentPortalOutput, - CreateDatasetInput, CreateDatasetOutput, - CreateDatasetVersionInput, CreateDatasetVersionOutput, - CreateEvaluatorInput, CreateEvaluatorOutput, - CreateGatewayInput, CreateGatewayOutput, - CreateGatewayRateLimitInput, CreateGatewayRateLimitOutput, - CreateGatewayRuleInput, CreateGatewayRuleOutput, - CreateGatewayTargetInput, CreateGatewayTargetOutput, - CreateHarnessEndpointInput, CreateHarnessEndpointOutput, - CreateHarnessInput, CreateHarnessOutput, - CreateMemoryInput, CreateMemoryOutput, - CreateOauth2CredentialProviderInput, CreateOauth2CredentialProviderOutput, - CreateOnlineEvaluationConfigInput, CreateOnlineEvaluationConfigOutput, - CreatePaymentConnectorInput, CreatePaymentConnectorOutput, - CreatePaymentCredentialProviderInput, CreatePaymentCredentialProviderOutput, - CreatePaymentManagerInput, CreatePaymentManagerOutput, - CreatePolicyEngineInput, CreatePolicyEngineOutput, - CreatePolicyInput, CreatePolicyOutput, - CreateRegistryInput, CreateRegistryOutput, - CreateRegistryRecordInput, CreateRegistryRecordOutput, - CreateWorkloadIdentityInput, CreateWorkloadIdentityOutput, - DeleteAgentRuntimeEndpointInput, DeleteAgentRuntimeEndpointOutput, - DeleteAgentRuntimeInput, DeleteAgentRuntimeOutput, - DeleteApiKeyCredentialProviderInput, DeleteApiKeyCredentialProviderOutput, - DeleteBrowserInput, DeleteBrowserOutput, - DeleteBrowserProfileInput, DeleteBrowserProfileOutput, - DeleteCapacityProviderInput, DeleteCapacityProviderOutput, - DeleteCodeInterpreterInput, DeleteCodeInterpreterOutput, - DeleteConfigurationBundleInput, DeleteConfigurationBundleOutput, - DeleteConsentPortalInput, DeleteConsentPortalOutput, - DeleteDatasetExamplesInput, DeleteDatasetExamplesOutput, - DeleteDatasetInput, DeleteDatasetOutput, - DeleteEvaluatorInput, DeleteEvaluatorOutput, - DeleteGatewayInput, DeleteGatewayOutput, - DeleteGatewayRateLimitInput, DeleteGatewayRateLimitOutput, - DeleteGatewayRuleInput, DeleteGatewayRuleOutput, - DeleteGatewayTargetInput, DeleteGatewayTargetOutput, - DeleteHarnessEndpointInput, DeleteHarnessEndpointOutput, - DeleteHarnessInput, DeleteHarnessOutput, - DeleteMemoryInput, DeleteMemoryOutput, - DeleteOauth2CredentialProviderInput, DeleteOauth2CredentialProviderOutput, - DeleteOnlineEvaluationConfigInput, DeleteOnlineEvaluationConfigOutput, - DeletePaymentConnectorInput, DeletePaymentConnectorOutput, - DeletePaymentCredentialProviderInput, DeletePaymentCredentialProviderOutput, - DeletePaymentManagerInput, DeletePaymentManagerOutput, - DeletePolicyEngineInput, DeletePolicyEngineOutput, - DeletePolicyInput, DeletePolicyOutput, - DeleteRegistryInput, DeleteRegistryOutput, - DeleteRegistryRecordInput, DeleteRegistryRecordOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteWorkloadIdentityInput, DeleteWorkloadIdentityOutput, - GetAgentRuntimeEndpointInput, GetAgentRuntimeEndpointOutput, - GetAgentRuntimeInput, GetAgentRuntimeOutput, - GetApiKeyCredentialProviderInput, GetApiKeyCredentialProviderOutput, - GetBrowserInput, GetBrowserOutput, - GetBrowserProfileInput, GetBrowserProfileOutput, - GetCapacityProviderInput, GetCapacityProviderOutput, - GetCodeInterpreterInput, GetCodeInterpreterOutput, - GetConfigurationBundleInput, GetConfigurationBundleOutput, - GetConfigurationBundleVersionInput, GetConfigurationBundleVersionOutput, - GetConsentPortalInput, GetConsentPortalOutput, - GetDatasetInput, GetDatasetOutput, - GetEvaluatorInput, GetEvaluatorOutput, - GetGatewayInput, GetGatewayOutput, - GetGatewayRateLimitInput, GetGatewayRateLimitOutput, - GetGatewayRuleInput, GetGatewayRuleOutput, - GetGatewayTargetInput, GetGatewayTargetOutput, - GetHarnessEndpointInput, GetHarnessEndpointOutput, - GetHarnessInput, GetHarnessOutput, - GetMemoryInput, GetMemoryOutput, - GetOauth2CredentialProviderInput, GetOauth2CredentialProviderOutput, - GetOnlineEvaluationConfigInput, GetOnlineEvaluationConfigOutput, - GetPaymentConnectorInput, GetPaymentConnectorOutput, - GetPaymentCredentialProviderInput, GetPaymentCredentialProviderOutput, - GetPaymentManagerInput, GetPaymentManagerOutput, - GetPolicyEngineInput, GetPolicyEngineOutput, - GetPolicyEngineSummaryInput, GetPolicyEngineSummaryOutput, - GetPolicyGenerationInput, GetPolicyGenerationOutput, - GetPolicyGenerationSummaryInput, GetPolicyGenerationSummaryOutput, - GetPolicyInput, GetPolicyOutput, - GetPolicySummaryInput, GetPolicySummaryOutput, - GetRegistryInput, GetRegistryOutput, - GetRegistryRecordInput, GetRegistryRecordOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetTokenVaultInput, GetTokenVaultOutput, - GetWorkloadIdentityInput, GetWorkloadIdentityOutput, - ListAgentRuntimeEndpointsInput, ListAgentRuntimeEndpointsOutput, - ListAgentRuntimeVersionsByCapacityProviderInput, ListAgentRuntimeVersionsByCapacityProviderOutput, - ListAgentRuntimeVersionsInput, ListAgentRuntimeVersionsOutput, - ListAgentRuntimesInput, ListAgentRuntimesOutput, - ListApiKeyCredentialProvidersInput, ListApiKeyCredentialProvidersOutput, - ListBrowserProfilesInput, ListBrowserProfilesOutput, - ListBrowsersInput, ListBrowsersOutput, - ListCapacityProvidersInput, ListCapacityProvidersOutput, - ListCodeInterpretersInput, ListCodeInterpretersOutput, - ListConfigurationBundleVersionsInput, ListConfigurationBundleVersionsOutput, - ListConfigurationBundlesInput, ListConfigurationBundlesOutput, - ListConsentPortalsInput, ListConsentPortalsOutput, - ListDatasetExamplesInput, ListDatasetExamplesOutput, - ListDatasetVersionsInput, ListDatasetVersionsOutput, - ListDatasetsInput, ListDatasetsOutput, - ListEvaluatorsInput, ListEvaluatorsOutput, - ListGatewayRateLimitsInput, ListGatewayRateLimitsOutput, - ListGatewayRulesInput, ListGatewayRulesOutput, - ListGatewayTargetsInput, ListGatewayTargetsOutput, - ListGatewaysInput, ListGatewaysOutput, - ListHarnessEndpointsInput, ListHarnessEndpointsOutput, - ListHarnessVersionsInput, ListHarnessVersionsOutput, - ListHarnessesInput, ListHarnessesOutput, - ListMemoriesInput, ListMemoriesOutput, - ListOauth2CredentialProvidersInput, ListOauth2CredentialProvidersOutput, - ListOnlineEvaluationConfigsInput, ListOnlineEvaluationConfigsOutput, - ListPaymentConnectorsInput, ListPaymentConnectorsOutput, - ListPaymentCredentialProvidersInput, ListPaymentCredentialProvidersOutput, - ListPaymentManagersInput, ListPaymentManagersOutput, - ListPoliciesInput, ListPoliciesOutput, - ListPolicyEngineSummariesInput, ListPolicyEngineSummariesOutput, - ListPolicyEnginesInput, ListPolicyEnginesOutput, - ListPolicyGenerationAssetsInput, ListPolicyGenerationAssetsOutput, - ListPolicyGenerationSummariesInput, ListPolicyGenerationSummariesOutput, - ListPolicyGenerationsInput, ListPolicyGenerationsOutput, - ListPolicySummariesInput, ListPolicySummariesOutput, - ListRegistriesInput, ListRegistriesOutput, - ListRegistryRecordsInput, ListRegistryRecordsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListWorkloadIdentitiesInput, ListWorkloadIdentitiesOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - ResetTokenVaultKeyMaterialInput, ResetTokenVaultKeyMaterialOutput, - RotatePaymentConnectorCredentialsInput, RotatePaymentConnectorCredentialsOutput, - SetTokenVaultCMKInput, SetTokenVaultCMKOutput, - StartPolicyGenerationInput, StartPolicyGenerationOutput, - SubmitRegistryRecordForApprovalInput, SubmitRegistryRecordForApprovalOutput, - SynchronizeGatewayTargetsInput, SynchronizeGatewayTargetsOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAgentRuntimeEndpointInput, UpdateAgentRuntimeEndpointOutput, - UpdateAgentRuntimeInput, UpdateAgentRuntimeOutput, - UpdateApiKeyCredentialProviderInput, UpdateApiKeyCredentialProviderOutput, - UpdateCapacityProviderInput, UpdateCapacityProviderOutput, - UpdateConfigurationBundleInput, UpdateConfigurationBundleOutput, - UpdateConsentPortalInput, UpdateConsentPortalOutput, - UpdateDatasetExamplesInput, UpdateDatasetExamplesOutput, - UpdateDatasetInput, UpdateDatasetOutput, - UpdateEvaluatorInput, UpdateEvaluatorOutput, - UpdateGatewayInput, UpdateGatewayOutput, - UpdateGatewayRateLimitInput, UpdateGatewayRateLimitOutput, - UpdateGatewayRuleInput, UpdateGatewayRuleOutput, - UpdateGatewayTargetInput, UpdateGatewayTargetOutput, - UpdateHarnessEndpointInput, UpdateHarnessEndpointOutput, - UpdateHarnessInput, UpdateHarnessOutput, - UpdateMemoryInput, UpdateMemoryOutput, - UpdateOauth2CredentialProviderInput, UpdateOauth2CredentialProviderOutput, - UpdateOnlineEvaluationConfigInput, UpdateOnlineEvaluationConfigOutput, - UpdatePaymentConnectorInput, UpdatePaymentConnectorOutput, - UpdatePaymentCredentialProviderInput, UpdatePaymentCredentialProviderOutput, - UpdatePaymentManagerInput, UpdatePaymentManagerOutput, - UpdatePolicyEngineInput, UpdatePolicyEngineOutput, - UpdatePolicyInput, UpdatePolicyOutput, - UpdateRegistryInput, UpdateRegistryOutput, - UpdateRegistryRecordInput, UpdateRegistryRecordOutput, - UpdateRegistryRecordStatusInput, UpdateRegistryRecordStatusOutput, - UpdateWorkloadIdentityInput, UpdateWorkloadIdentityOutput, ) @@ -379,10 +207,24 @@ class AsyncBedrockAgentCoreControlClient( Services resources. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def add_dataset_examples( - self, input: AddDatasetExamplesInput, plugins: list[Plugin] | None = None + self, + request: _models.AddDatasetExamplesInput | _models.AddDatasetExamplesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddDatasetExamplesOutput: ... + + @_overload + async def add_dataset_examples( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddDatasetExamplesInputDict], ) -> AddDatasetExamplesOutput: """ Adds examples to the dataset's DRAFT. All examples are validated @@ -391,8 +233,6 @@ async def add_dataset_examples( semantics). Args: - input: - An instance of `AddDatasetExamplesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -402,10 +242,34 @@ async def add_dataset_examples( Returns: An instance of `AddDatasetExamplesOutput`. """ - return await self._invoke(input, _models.ADD_DATASET_EXAMPLES, [], plugins) + async def add_dataset_examples( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddDatasetExamplesOutput: + return await self._invoke( + self._select_input(_models.ADD_DATASET_EXAMPLES, args, kwargs), + _models.ADD_DATASET_EXAMPLES, + [], + plugins, + ) + + @_overload + async def batch_put_gateway_rate_limits( + self, + request: _models.BatchPutGatewayRateLimitsInput + | _models.BatchPutGatewayRateLimitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchPutGatewayRateLimitsOutput: ... + + @_overload async def batch_put_gateway_rate_limits( - self, input: BatchPutGatewayRateLimitsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchPutGatewayRateLimitsInputDict], ) -> BatchPutGatewayRateLimitsOutput: """ Atomically creates or updates multiple rate limits for a gateway. The @@ -414,8 +278,6 @@ async def batch_put_gateway_rate_limits( changes. Retry the request after resolving the issue. Args: - input: - An instance of `BatchPutGatewayRateLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -425,19 +287,38 @@ async def batch_put_gateway_rate_limits( Returns: An instance of `BatchPutGatewayRateLimitsOutput`. """ + + async def batch_put_gateway_rate_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchPutGatewayRateLimitsOutput: return await self._invoke( - input, _models.BATCH_PUT_GATEWAY_RATE_LIMITS, [], plugins + self._select_input(_models.BATCH_PUT_GATEWAY_RATE_LIMITS, args, kwargs), + _models.BATCH_PUT_GATEWAY_RATE_LIMITS, + [], + plugins, ) + @_overload + async def create_agent_runtime( + self, + request: _models.CreateAgentRuntimeInput | _models.CreateAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentRuntimeOutput: ... + + @_overload async def create_agent_runtime( - self, input: CreateAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentRuntimeInputDict], ) -> CreateAgentRuntimeOutput: """ Creates an Amazon Bedrock AgentCore Runtime. Args: - input: - An instance of `CreateAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -447,19 +328,39 @@ async def create_agent_runtime( Returns: An instance of `CreateAgentRuntimeOutput`. """ - return await self._invoke(input, _models.CREATE_AGENT_RUNTIME, [], plugins) + async def create_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentRuntimeOutput: + return await self._invoke( + self._select_input(_models.CREATE_AGENT_RUNTIME, args, kwargs), + _models.CREATE_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload + async def create_agent_runtime_endpoint( + self, + request: _models.CreateAgentRuntimeEndpointInput + | _models.CreateAgentRuntimeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentRuntimeEndpointOutput: ... + + @_overload async def create_agent_runtime_endpoint( self, - input: CreateAgentRuntimeEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentRuntimeEndpointInputDict], ) -> CreateAgentRuntimeEndpointOutput: """ Creates an AgentCore Runtime endpoint. Args: - input: - An instance of `CreateAgentRuntimeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -469,21 +370,39 @@ async def create_agent_runtime_endpoint( Returns: An instance of `CreateAgentRuntimeEndpointOutput`. """ + + async def create_agent_runtime_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentRuntimeEndpointOutput: return await self._invoke( - input, _models.CREATE_AGENT_RUNTIME_ENDPOINT, [], plugins + self._select_input(_models.CREATE_AGENT_RUNTIME_ENDPOINT, args, kwargs), + _models.CREATE_AGENT_RUNTIME_ENDPOINT, + [], + plugins, ) + @_overload + async def create_api_key_credential_provider( + self, + request: _models.CreateApiKeyCredentialProviderInput + | _models.CreateApiKeyCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateApiKeyCredentialProviderOutput: ... + + @_overload async def create_api_key_credential_provider( self, - input: CreateApiKeyCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateApiKeyCredentialProviderInputDict], ) -> CreateApiKeyCredentialProviderOutput: """ Creates a new API key credential provider. Args: - input: - An instance of `CreateApiKeyCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -493,19 +412,40 @@ async def create_api_key_credential_provider( Returns: An instance of `CreateApiKeyCredentialProviderOutput`. """ + + async def create_api_key_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateApiKeyCredentialProviderOutput: return await self._invoke( - input, _models.CREATE_API_KEY_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.CREATE_API_KEY_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.CREATE_API_KEY_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def create_browser( + self, + request: _models.CreateBrowserInput | _models.CreateBrowserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBrowserOutput: ... + + @_overload async def create_browser( - self, input: CreateBrowserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBrowserInputDict], ) -> CreateBrowserOutput: """ Creates a custom browser. Args: - input: - An instance of `CreateBrowserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -515,10 +455,34 @@ async def create_browser( Returns: An instance of `CreateBrowserOutput`. """ - return await self._invoke(input, _models.CREATE_BROWSER, [], plugins) + async def create_browser( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBrowserOutput: + return await self._invoke( + self._select_input(_models.CREATE_BROWSER, args, kwargs), + _models.CREATE_BROWSER, + [], + plugins, + ) + + @_overload async def create_browser_profile( - self, input: CreateBrowserProfileInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateBrowserProfileInput + | _models.CreateBrowserProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBrowserProfileOutput: ... + + @_overload + async def create_browser_profile( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBrowserProfileInputDict], ) -> CreateBrowserProfileOutput: """ Creates a browser profile in Amazon Bedrock AgentCore. A browser profile @@ -527,8 +491,6 @@ async def create_browser_profile( and reused in subsequent sessions. Args: - input: - An instance of `CreateBrowserProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -538,10 +500,34 @@ async def create_browser_profile( Returns: An instance of `CreateBrowserProfileOutput`. """ - return await self._invoke(input, _models.CREATE_BROWSER_PROFILE, [], plugins) + async def create_browser_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBrowserProfileOutput: + return await self._invoke( + self._select_input(_models.CREATE_BROWSER_PROFILE, args, kwargs), + _models.CREATE_BROWSER_PROFILE, + [], + plugins, + ) + + @_overload + async def create_capacity_provider( + self, + request: _models.CreateCapacityProviderInput + | _models.CreateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityProviderOutput: ... + + @_overload async def create_capacity_provider( - self, input: CreateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityProviderInputDict], ) -> CreateCapacityProviderOutput: """ Creates a capacity provider. A capacity provider defines the Amazon EC2 @@ -554,8 +540,6 @@ async def create_capacity_provider( transitions to `READY` when it is available for use. Args: - input: - An instance of `CreateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -565,17 +549,39 @@ async def create_capacity_provider( Returns: An instance of `CreateCapacityProviderOutput`. """ - return await self._invoke(input, _models.CREATE_CAPACITY_PROVIDER, [], plugins) + async def create_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.CREATE_CAPACITY_PROVIDER, args, kwargs), + _models.CREATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def create_code_interpreter( + self, + request: _models.CreateCodeInterpreterInput + | _models.CreateCodeInterpreterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCodeInterpreterOutput: ... + + @_overload async def create_code_interpreter( - self, input: CreateCodeInterpreterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCodeInterpreterInputDict], ) -> CreateCodeInterpreterOutput: """ Creates a custom code interpreter. Args: - input: - An instance of `CreateCodeInterpreterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -585,10 +591,34 @@ async def create_code_interpreter( Returns: An instance of `CreateCodeInterpreterOutput`. """ - return await self._invoke(input, _models.CREATE_CODE_INTERPRETER, [], plugins) + async def create_code_interpreter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCodeInterpreterOutput: + return await self._invoke( + self._select_input(_models.CREATE_CODE_INTERPRETER, args, kwargs), + _models.CREATE_CODE_INTERPRETER, + [], + plugins, + ) + + @_overload + async def create_configuration_bundle( + self, + request: _models.CreateConfigurationBundleInput + | _models.CreateConfigurationBundleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateConfigurationBundleOutput: ... + + @_overload async def create_configuration_bundle( - self, input: CreateConfigurationBundleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateConfigurationBundleInputDict], ) -> CreateConfigurationBundleOutput: """ Creates a new configuration bundle resource. A configuration bundle @@ -596,8 +626,6 @@ async def create_configuration_bundle( workflows. Args: - input: - An instance of `CreateConfigurationBundleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -607,19 +635,39 @@ async def create_configuration_bundle( Returns: An instance of `CreateConfigurationBundleOutput`. """ + + async def create_configuration_bundle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateConfigurationBundleOutput: return await self._invoke( - input, _models.CREATE_CONFIGURATION_BUNDLE, [], plugins + self._select_input(_models.CREATE_CONFIGURATION_BUNDLE, args, kwargs), + _models.CREATE_CONFIGURATION_BUNDLE, + [], + plugins, ) + @_overload + async def create_consent_portal( + self, + request: _models.CreateConsentPortalInput + | _models.CreateConsentPortalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateConsentPortalOutput: ... + + @_overload async def create_consent_portal( - self, input: CreateConsentPortalInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateConsentPortalInputDict], ) -> CreateConsentPortalOutput: """ Creates a new consent portal. Args: - input: - An instance of `CreateConsentPortalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -629,10 +677,33 @@ async def create_consent_portal( Returns: An instance of `CreateConsentPortalOutput`. """ - return await self._invoke(input, _models.CREATE_CONSENT_PORTAL, [], plugins) + async def create_consent_portal( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateConsentPortalOutput: + return await self._invoke( + self._select_input(_models.CREATE_CONSENT_PORTAL, args, kwargs), + _models.CREATE_CONSENT_PORTAL, + [], + plugins, + ) + + @_overload + async def create_dataset( + self, + request: _models.CreateDatasetInput | _models.CreateDatasetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDatasetOutput: ... + + @_overload async def create_dataset( - self, input: CreateDatasetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDatasetInputDict], ) -> CreateDatasetOutput: """ Creates a new dataset resource asynchronously. Returns immediately with @@ -640,8 +711,6 @@ async def create_dataset( CREATE_FAILED. Args: - input: - An instance of `CreateDatasetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -651,10 +720,34 @@ async def create_dataset( Returns: An instance of `CreateDatasetOutput`. """ - return await self._invoke(input, _models.CREATE_DATASET, [], plugins) + async def create_dataset( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDatasetOutput: + return await self._invoke( + self._select_input(_models.CREATE_DATASET, args, kwargs), + _models.CREATE_DATASET, + [], + plugins, + ) + + @_overload async def create_dataset_version( - self, input: CreateDatasetVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDatasetVersionInput + | _models.CreateDatasetVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDatasetVersionOutput: ... + + @_overload + async def create_dataset_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDatasetVersionInputDict], ) -> CreateDatasetVersionOutput: """ Publishes the current DRAFT as a new numbered version. The DRAFT is @@ -663,8 +756,6 @@ async def create_dataset_version( ACTIVE or UPDATE_FAILED. Args: - input: - An instance of `CreateDatasetVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -674,10 +765,33 @@ async def create_dataset_version( Returns: An instance of `CreateDatasetVersionOutput`. """ - return await self._invoke(input, _models.CREATE_DATASET_VERSION, [], plugins) + async def create_dataset_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDatasetVersionOutput: + return await self._invoke( + self._select_input(_models.CREATE_DATASET_VERSION, args, kwargs), + _models.CREATE_DATASET_VERSION, + [], + plugins, + ) + + @_overload + async def create_evaluator( + self, + request: _models.CreateEvaluatorInput | _models.CreateEvaluatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEvaluatorOutput: ... + + @_overload async def create_evaluator( - self, input: CreateEvaluatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEvaluatorInputDict], ) -> CreateEvaluatorOutput: """ Creates a custom evaluator for agent quality assessment. Custom @@ -687,8 +801,6 @@ async def create_evaluator( performance at tool call, trace, or session levels. Args: - input: - An instance of `CreateEvaluatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -698,10 +810,33 @@ async def create_evaluator( Returns: An instance of `CreateEvaluatorOutput`. """ - return await self._invoke(input, _models.CREATE_EVALUATOR, [], plugins) + async def create_evaluator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEvaluatorOutput: + return await self._invoke( + self._select_input(_models.CREATE_EVALUATOR, args, kwargs), + _models.CREATE_EVALUATOR, + [], + plugins, + ) + + @_overload + async def create_gateway( + self, + request: _models.CreateGatewayInput | _models.CreateGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayOutput: ... + + @_overload async def create_gateway( - self, input: CreateGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayInputDict], ) -> CreateGatewayOutput: """ Creates a gateway for Amazon Bedrock Agent. A gateway serves as an @@ -711,8 +846,6 @@ async def create_gateway( `authorizerConfiguration`. Args: - input: - An instance of `CreateGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -722,10 +855,34 @@ async def create_gateway( Returns: An instance of `CreateGatewayOutput`. """ - return await self._invoke(input, _models.CREATE_GATEWAY, [], plugins) + async def create_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayOutput: + return await self._invoke( + self._select_input(_models.CREATE_GATEWAY, args, kwargs), + _models.CREATE_GATEWAY, + [], + plugins, + ) + + @_overload + async def create_gateway_rate_limit( + self, + request: _models.CreateGatewayRateLimitInput + | _models.CreateGatewayRateLimitInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayRateLimitOutput: ... + + @_overload async def create_gateway_rate_limit( - self, input: CreateGatewayRateLimitInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayRateLimitInputDict], ) -> CreateGatewayRateLimitOutput: """ Creates a rate limit for a gateway. Rate limits define throttling rules @@ -733,8 +890,6 @@ async def create_gateway_rate_limit( and concurrent connections through the gateway. Args: - input: - An instance of `CreateGatewayRateLimitInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -744,10 +899,33 @@ async def create_gateway_rate_limit( Returns: An instance of `CreateGatewayRateLimitOutput`. """ - return await self._invoke(input, _models.CREATE_GATEWAY_RATE_LIMIT, [], plugins) + async def create_gateway_rate_limit( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayRateLimitOutput: + return await self._invoke( + self._select_input(_models.CREATE_GATEWAY_RATE_LIMIT, args, kwargs), + _models.CREATE_GATEWAY_RATE_LIMIT, + [], + plugins, + ) + + @_overload + async def create_gateway_rule( + self, + request: _models.CreateGatewayRuleInput | _models.CreateGatewayRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayRuleOutput: ... + + @_overload async def create_gateway_rule( - self, input: CreateGatewayRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayRuleInputDict], ) -> CreateGatewayRuleOutput: """ Creates a rule for a gateway. Rules define conditions and actions that @@ -755,8 +933,6 @@ async def create_gateway_rule( including principal-based access control and path-based routing. Args: - input: - An instance of `CreateGatewayRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -766,18 +942,40 @@ async def create_gateway_rule( Returns: An instance of `CreateGatewayRuleOutput`. """ - return await self._invoke(input, _models.CREATE_GATEWAY_RULE, [], plugins) + async def create_gateway_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayRuleOutput: + return await self._invoke( + self._select_input(_models.CREATE_GATEWAY_RULE, args, kwargs), + _models.CREATE_GATEWAY_RULE, + [], + plugins, + ) + + @_overload + async def create_gateway_target( + self, + request: _models.CreateGatewayTargetInput + | _models.CreateGatewayTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayTargetOutput: ... + + @_overload async def create_gateway_target( - self, input: CreateGatewayTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayTargetInputDict], ) -> CreateGatewayTargetOutput: """ Creates a target for a gateway. A target defines an endpoint that the gateway can connect to. Args: - input: - An instance of `CreateGatewayTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -787,17 +985,38 @@ async def create_gateway_target( Returns: An instance of `CreateGatewayTargetOutput`. """ - return await self._invoke(input, _models.CREATE_GATEWAY_TARGET, [], plugins) + async def create_gateway_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayTargetOutput: + return await self._invoke( + self._select_input(_models.CREATE_GATEWAY_TARGET, args, kwargs), + _models.CREATE_GATEWAY_TARGET, + [], + plugins, + ) + + @_overload + async def create_harness( + self, + request: _models.CreateHarnessInput | _models.CreateHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateHarnessOutput: ... + + @_overload async def create_harness( - self, input: CreateHarnessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateHarnessInputDict], ) -> CreateHarnessOutput: """ Operation to create a harness. Args: - input: - An instance of `CreateHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -807,17 +1026,39 @@ async def create_harness( Returns: An instance of `CreateHarnessOutput`. """ - return await self._invoke(input, _models.CREATE_HARNESS, [], plugins) + async def create_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateHarnessOutput: + return await self._invoke( + self._select_input(_models.CREATE_HARNESS, args, kwargs), + _models.CREATE_HARNESS, + [], + plugins, + ) + + @_overload + async def create_harness_endpoint( + self, + request: _models.CreateHarnessEndpointInput + | _models.CreateHarnessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateHarnessEndpointOutput: ... + + @_overload async def create_harness_endpoint( - self, input: CreateHarnessEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateHarnessEndpointInputDict], ) -> CreateHarnessEndpointOutput: """ Operation to create a harness endpoint. Args: - input: - An instance of `CreateHarnessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -827,17 +1068,38 @@ async def create_harness_endpoint( Returns: An instance of `CreateHarnessEndpointOutput`. """ - return await self._invoke(input, _models.CREATE_HARNESS_ENDPOINT, [], plugins) + async def create_harness_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateHarnessEndpointOutput: + return await self._invoke( + self._select_input(_models.CREATE_HARNESS_ENDPOINT, args, kwargs), + _models.CREATE_HARNESS_ENDPOINT, + [], + plugins, + ) + + @_overload async def create_memory( - self, input: CreateMemoryInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateMemoryInput | _models.CreateMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMemoryOutput: ... + + @_overload + async def create_memory( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMemoryInputDict], ) -> CreateMemoryOutput: """ Creates a new Amazon Bedrock AgentCore Memory resource. Args: - input: - An instance of `CreateMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -847,19 +1109,39 @@ async def create_memory( Returns: An instance of `CreateMemoryOutput`. """ - return await self._invoke(input, _models.CREATE_MEMORY, [], plugins) + async def create_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMemoryOutput: + return await self._invoke( + self._select_input(_models.CREATE_MEMORY, args, kwargs), + _models.CREATE_MEMORY, + [], + plugins, + ) + + @_overload + async def create_oauth2_credential_provider( + self, + request: _models.CreateOauth2CredentialProviderInput + | _models.CreateOauth2CredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOauth2CredentialProviderOutput: ... + + @_overload async def create_oauth2_credential_provider( self, - input: CreateOauth2CredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOauth2CredentialProviderInputDict], ) -> CreateOauth2CredentialProviderOutput: """ Creates a new OAuth2 credential provider. Args: - input: - An instance of `CreateOauth2CredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -869,14 +1151,34 @@ async def create_oauth2_credential_provider( Returns: An instance of `CreateOauth2CredentialProviderOutput`. """ + + async def create_oauth2_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOauth2CredentialProviderOutput: return await self._invoke( - input, _models.CREATE_OAUTH2_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.CREATE_OAUTH2_CREDENTIAL_PROVIDER, args, kwargs), + _models.CREATE_OAUTH2_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def create_online_evaluation_config( + self, + request: _models.CreateOnlineEvaluationConfigInput + | _models.CreateOnlineEvaluationConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOnlineEvaluationConfigOutput: ... + + @_overload async def create_online_evaluation_config( self, - input: CreateOnlineEvaluationConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOnlineEvaluationConfigInputDict], ) -> CreateOnlineEvaluationConfigOutput: """ Creates an online evaluation configuration for continuous monitoring of @@ -885,8 +1187,6 @@ async def create_online_evaluation_config( agent quality in production. Args: - input: - An instance of `CreateOnlineEvaluationConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -896,12 +1196,34 @@ async def create_online_evaluation_config( Returns: An instance of `CreateOnlineEvaluationConfigOutput`. """ + + async def create_online_evaluation_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOnlineEvaluationConfigOutput: return await self._invoke( - input, _models.CREATE_ONLINE_EVALUATION_CONFIG, [], plugins + self._select_input(_models.CREATE_ONLINE_EVALUATION_CONFIG, args, kwargs), + _models.CREATE_ONLINE_EVALUATION_CONFIG, + [], + plugins, ) + @_overload + async def create_payment_connector( + self, + request: _models.CreatePaymentConnectorInput + | _models.CreatePaymentConnectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentConnectorOutput: ... + + @_overload async def create_payment_connector( - self, input: CreatePaymentConnectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentConnectorInputDict], ) -> CreatePaymentConnectorOutput: """ Creates a new payment connector for a payment manager. A payment @@ -909,8 +1231,6 @@ async def create_payment_connector( processing capabilities. Args: - input: - An instance of `CreatePaymentConnectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -920,12 +1240,34 @@ async def create_payment_connector( Returns: An instance of `CreatePaymentConnectorOutput`. """ - return await self._invoke(input, _models.CREATE_PAYMENT_CONNECTOR, [], plugins) + async def create_payment_connector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentConnectorOutput: + return await self._invoke( + self._select_input(_models.CREATE_PAYMENT_CONNECTOR, args, kwargs), + _models.CREATE_PAYMENT_CONNECTOR, + [], + plugins, + ) + + @_overload + async def create_payment_credential_provider( + self, + request: _models.CreatePaymentCredentialProviderInput + | _models.CreatePaymentCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentCredentialProviderOutput: ... + + @_overload async def create_payment_credential_provider( self, - input: CreatePaymentCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentCredentialProviderInputDict], ) -> CreatePaymentCredentialProviderOutput: """ Creates a new payment credential provider for storing authentication @@ -933,8 +1275,6 @@ async def create_payment_credential_provider( payment providers. Args: - input: - An instance of `CreatePaymentCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -944,25 +1284,47 @@ async def create_payment_credential_provider( Returns: An instance of `CreatePaymentCredentialProviderOutput`. """ + + async def create_payment_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentCredentialProviderOutput: return await self._invoke( - input, _models.CREATE_PAYMENT_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.CREATE_PAYMENT_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.CREATE_PAYMENT_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload async def create_payment_manager( - self, input: CreatePaymentManagerInput, plugins: list[Plugin] | None = None - ) -> CreatePaymentManagerOutput: - """ - Creates a new payment manager in your Amazon Web Services account. A - payment manager serves as the top-level resource for managing payment - processing capabilities, including payment connectors that integrate + self, + request: _models.CreatePaymentManagerInput + | _models.CreatePaymentManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentManagerOutput: ... + + @_overload + async def create_payment_manager( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentManagerInputDict], + ) -> CreatePaymentManagerOutput: + """ + Creates a new payment manager in your Amazon Web Services account. A + payment manager serves as the top-level resource for managing payment + processing capabilities, including payment connectors that integrate with supported payment providers. If you specify `CUSTOM_JWT` as the `authorizerType`, you must provide an `authorizerConfiguration`. Args: - input: - An instance of `CreatePaymentManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -972,10 +1334,33 @@ async def create_payment_manager( Returns: An instance of `CreatePaymentManagerOutput`. """ - return await self._invoke(input, _models.CREATE_PAYMENT_MANAGER, [], plugins) + async def create_payment_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentManagerOutput: + return await self._invoke( + self._select_input(_models.CREATE_PAYMENT_MANAGER, args, kwargs), + _models.CREATE_PAYMENT_MANAGER, + [], + plugins, + ) + + @_overload async def create_policy( - self, input: CreatePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.CreatePolicyInput | _models.CreatePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePolicyOutput: ... + + @_overload + async def create_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePolicyInputDict], ) -> CreatePolicyOutput: """ Creates a policy within the AgentCore Policy system. Policies provide @@ -999,8 +1384,6 @@ async def create_policy( sessions. To resume, you must start a new session with a new session ID. Args: - input: - An instance of `CreatePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1010,10 +1393,33 @@ async def create_policy( Returns: An instance of `CreatePolicyOutput`. """ - return await self._invoke(input, _models.CREATE_POLICY, [], plugins) + async def create_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePolicyOutput: + return await self._invoke( + self._select_input(_models.CREATE_POLICY, args, kwargs), + _models.CREATE_POLICY, + [], + plugins, + ) + + @_overload + async def create_policy_engine( + self, + request: _models.CreatePolicyEngineInput | _models.CreatePolicyEngineInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePolicyEngineOutput: ... + + @_overload async def create_policy_engine( - self, input: CreatePolicyEngineInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePolicyEngineInputDict], ) -> CreatePolicyEngineOutput: """ Creates a new policy engine within the AgentCore Policy system. A policy @@ -1027,8 +1433,6 @@ async def create_policy_engine( operation to poll the `status` field to track completion. Args: - input: - An instance of `CreatePolicyEngineInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1038,10 +1442,33 @@ async def create_policy_engine( Returns: An instance of `CreatePolicyEngineOutput`. """ - return await self._invoke(input, _models.CREATE_POLICY_ENGINE, [], plugins) + async def create_policy_engine( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePolicyEngineOutput: + return await self._invoke( + self._select_input(_models.CREATE_POLICY_ENGINE, args, kwargs), + _models.CREATE_POLICY_ENGINE, + [], + plugins, + ) + + @_overload + async def create_registry( + self, + request: _models.CreateRegistryInput | _models.CreateRegistryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRegistryOutput: ... + + @_overload async def create_registry( - self, input: CreateRegistryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRegistryInputDict], ) -> CreateRegistryOutput: """ Creates a new registry in your Amazon Web Services account. A registry @@ -1053,8 +1480,6 @@ async def create_registry( `authorizerConfiguration`. Args: - input: - An instance of `CreateRegistryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1064,10 +1489,34 @@ async def create_registry( Returns: An instance of `CreateRegistryOutput`. """ - return await self._invoke(input, _models.CREATE_REGISTRY, [], plugins) + async def create_registry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRegistryOutput: + return await self._invoke( + self._select_input(_models.CREATE_REGISTRY, args, kwargs), + _models.CREATE_REGISTRY, + [], + plugins, + ) + + @_overload + async def create_registry_record( + self, + request: _models.CreateRegistryRecordInput + | _models.CreateRegistryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRegistryRecordOutput: ... + + @_overload async def create_registry_record( - self, input: CreateRegistryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRegistryRecordInputDict], ) -> CreateRegistryRecordOutput: """ Creates a new registry record within the specified registry. A registry @@ -1078,8 +1527,6 @@ async def create_registry_record( The record is processed asynchronously and returns HTTP 202 Accepted. Args: - input: - An instance of `CreateRegistryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1089,17 +1536,39 @@ async def create_registry_record( Returns: An instance of `CreateRegistryRecordOutput`. """ - return await self._invoke(input, _models.CREATE_REGISTRY_RECORD, [], plugins) + async def create_registry_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRegistryRecordOutput: + return await self._invoke( + self._select_input(_models.CREATE_REGISTRY_RECORD, args, kwargs), + _models.CREATE_REGISTRY_RECORD, + [], + plugins, + ) + + @_overload + async def create_workload_identity( + self, + request: _models.CreateWorkloadIdentityInput + | _models.CreateWorkloadIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateWorkloadIdentityOutput: ... + + @_overload async def create_workload_identity( - self, input: CreateWorkloadIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateWorkloadIdentityInputDict], ) -> CreateWorkloadIdentityOutput: """ Creates a new workload identity. Args: - input: - An instance of `CreateWorkloadIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1109,18 +1578,39 @@ async def create_workload_identity( Returns: An instance of `CreateWorkloadIdentityOutput`. """ - return await self._invoke(input, _models.CREATE_WORKLOAD_IDENTITY, [], plugins) + async def create_workload_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateWorkloadIdentityOutput: + return await self._invoke( + self._select_input(_models.CREATE_WORKLOAD_IDENTITY, args, kwargs), + _models.CREATE_WORKLOAD_IDENTITY, + [], + plugins, + ) + + @_overload + async def delete_agent_runtime( + self, + request: _models.DeleteAgentRuntimeInput | _models.DeleteAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentRuntimeOutput: ... + + @_overload async def delete_agent_runtime( - self, input: DeleteAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentRuntimeInputDict], ) -> DeleteAgentRuntimeOutput: """ Deletes an Amazon Bedrock AgentCore Runtime, or a single version of an AgentCore Runtime when you provide the version qualifier. Args: - input: - An instance of `DeleteAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1130,19 +1620,39 @@ async def delete_agent_runtime( Returns: An instance of `DeleteAgentRuntimeOutput`. """ - return await self._invoke(input, _models.DELETE_AGENT_RUNTIME, [], plugins) + async def delete_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentRuntimeOutput: + return await self._invoke( + self._select_input(_models.DELETE_AGENT_RUNTIME, args, kwargs), + _models.DELETE_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload + async def delete_agent_runtime_endpoint( + self, + request: _models.DeleteAgentRuntimeEndpointInput + | _models.DeleteAgentRuntimeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentRuntimeEndpointOutput: ... + + @_overload async def delete_agent_runtime_endpoint( self, - input: DeleteAgentRuntimeEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentRuntimeEndpointInputDict], ) -> DeleteAgentRuntimeEndpointOutput: """ Deletes an AgentCore Runtime endpoint. Args: - input: - An instance of `DeleteAgentRuntimeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1152,21 +1662,39 @@ async def delete_agent_runtime_endpoint( Returns: An instance of `DeleteAgentRuntimeEndpointOutput`. """ + + async def delete_agent_runtime_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentRuntimeEndpointOutput: return await self._invoke( - input, _models.DELETE_AGENT_RUNTIME_ENDPOINT, [], plugins + self._select_input(_models.DELETE_AGENT_RUNTIME_ENDPOINT, args, kwargs), + _models.DELETE_AGENT_RUNTIME_ENDPOINT, + [], + plugins, ) + @_overload + async def delete_api_key_credential_provider( + self, + request: _models.DeleteApiKeyCredentialProviderInput + | _models.DeleteApiKeyCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteApiKeyCredentialProviderOutput: ... + + @_overload async def delete_api_key_credential_provider( self, - input: DeleteApiKeyCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteApiKeyCredentialProviderInputDict], ) -> DeleteApiKeyCredentialProviderOutput: """ Deletes an API key credential provider. Args: - input: - An instance of `DeleteApiKeyCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1176,19 +1704,40 @@ async def delete_api_key_credential_provider( Returns: An instance of `DeleteApiKeyCredentialProviderOutput`. """ + + async def delete_api_key_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteApiKeyCredentialProviderOutput: return await self._invoke( - input, _models.DELETE_API_KEY_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.DELETE_API_KEY_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.DELETE_API_KEY_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload async def delete_browser( - self, input: DeleteBrowserInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteBrowserInput | _models.DeleteBrowserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBrowserOutput: ... + + @_overload + async def delete_browser( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBrowserInputDict], ) -> DeleteBrowserOutput: """ Deletes a custom browser. Args: - input: - An instance of `DeleteBrowserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1198,17 +1747,39 @@ async def delete_browser( Returns: An instance of `DeleteBrowserOutput`. """ - return await self._invoke(input, _models.DELETE_BROWSER, [], plugins) + async def delete_browser( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBrowserOutput: + return await self._invoke( + self._select_input(_models.DELETE_BROWSER, args, kwargs), + _models.DELETE_BROWSER, + [], + plugins, + ) + + @_overload + async def delete_browser_profile( + self, + request: _models.DeleteBrowserProfileInput + | _models.DeleteBrowserProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBrowserProfileOutput: ... + + @_overload async def delete_browser_profile( - self, input: DeleteBrowserProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBrowserProfileInputDict], ) -> DeleteBrowserProfileOutput: """ Deletes a browser profile. Args: - input: - An instance of `DeleteBrowserProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1218,10 +1789,34 @@ async def delete_browser_profile( Returns: An instance of `DeleteBrowserProfileOutput`. """ - return await self._invoke(input, _models.DELETE_BROWSER_PROFILE, [], plugins) + async def delete_browser_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBrowserProfileOutput: + return await self._invoke( + self._select_input(_models.DELETE_BROWSER_PROFILE, args, kwargs), + _models.DELETE_BROWSER_PROFILE, + [], + plugins, + ) + + @_overload + async def delete_capacity_provider( + self, + request: _models.DeleteCapacityProviderInput + | _models.DeleteCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCapacityProviderOutput: ... + + @_overload async def delete_capacity_provider( - self, input: DeleteCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityProviderInputDict], ) -> DeleteCapacityProviderOutput: """ Deletes a capacity provider. Before you delete a capacity provider, @@ -1229,8 +1824,6 @@ async def delete_capacity_provider( If any references remain, the operation fails. Args: - input: - An instance of `DeleteCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1240,17 +1833,39 @@ async def delete_capacity_provider( Returns: An instance of `DeleteCapacityProviderOutput`. """ - return await self._invoke(input, _models.DELETE_CAPACITY_PROVIDER, [], plugins) + async def delete_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.DELETE_CAPACITY_PROVIDER, args, kwargs), + _models.DELETE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def delete_code_interpreter( + self, + request: _models.DeleteCodeInterpreterInput + | _models.DeleteCodeInterpreterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCodeInterpreterOutput: ... + + @_overload async def delete_code_interpreter( - self, input: DeleteCodeInterpreterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCodeInterpreterInputDict], ) -> DeleteCodeInterpreterOutput: """ Deletes a custom code interpreter. Args: - input: - An instance of `DeleteCodeInterpreterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1260,17 +1875,39 @@ async def delete_code_interpreter( Returns: An instance of `DeleteCodeInterpreterOutput`. """ - return await self._invoke(input, _models.DELETE_CODE_INTERPRETER, [], plugins) + async def delete_code_interpreter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCodeInterpreterOutput: + return await self._invoke( + self._select_input(_models.DELETE_CODE_INTERPRETER, args, kwargs), + _models.DELETE_CODE_INTERPRETER, + [], + plugins, + ) + + @_overload + async def delete_configuration_bundle( + self, + request: _models.DeleteConfigurationBundleInput + | _models.DeleteConfigurationBundleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConfigurationBundleOutput: ... + + @_overload async def delete_configuration_bundle( - self, input: DeleteConfigurationBundleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConfigurationBundleInputDict], ) -> DeleteConfigurationBundleOutput: """ Deletes a configuration bundle and all of its versions. Args: - input: - An instance of `DeleteConfigurationBundleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1280,19 +1917,39 @@ async def delete_configuration_bundle( Returns: An instance of `DeleteConfigurationBundleOutput`. """ + + async def delete_configuration_bundle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConfigurationBundleOutput: return await self._invoke( - input, _models.DELETE_CONFIGURATION_BUNDLE, [], plugins + self._select_input(_models.DELETE_CONFIGURATION_BUNDLE, args, kwargs), + _models.DELETE_CONFIGURATION_BUNDLE, + [], + plugins, ) + @_overload + async def delete_consent_portal( + self, + request: _models.DeleteConsentPortalInput + | _models.DeleteConsentPortalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConsentPortalOutput: ... + + @_overload async def delete_consent_portal( - self, input: DeleteConsentPortalInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConsentPortalInputDict], ) -> DeleteConsentPortalOutput: """ Deletes a consent portal. Args: - input: - An instance of `DeleteConsentPortalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1302,10 +1959,33 @@ async def delete_consent_portal( Returns: An instance of `DeleteConsentPortalOutput`. """ - return await self._invoke(input, _models.DELETE_CONSENT_PORTAL, [], plugins) + async def delete_consent_portal( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConsentPortalOutput: + return await self._invoke( + self._select_input(_models.DELETE_CONSENT_PORTAL, args, kwargs), + _models.DELETE_CONSENT_PORTAL, + [], + plugins, + ) + + @_overload async def delete_dataset( - self, input: DeleteDatasetInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteDatasetInput | _models.DeleteDatasetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDatasetOutput: ... + + @_overload + async def delete_dataset( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDatasetInputDict], ) -> DeleteDatasetOutput: """ Deletes a dataset version or an entire dataset asynchronously. If @@ -1313,8 +1993,6 @@ async def delete_dataset( itself. If provided, deletes only that specific version. Args: - input: - An instance of `DeleteDatasetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1324,10 +2002,34 @@ async def delete_dataset( Returns: An instance of `DeleteDatasetOutput`. """ - return await self._invoke(input, _models.DELETE_DATASET, [], plugins) + async def delete_dataset( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDatasetOutput: + return await self._invoke( + self._select_input(_models.DELETE_DATASET, args, kwargs), + _models.DELETE_DATASET, + [], + plugins, + ) + + @_overload + async def delete_dataset_examples( + self, + request: _models.DeleteDatasetExamplesInput + | _models.DeleteDatasetExamplesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDatasetExamplesOutput: ... + + @_overload async def delete_dataset_examples( - self, input: DeleteDatasetExamplesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDatasetExamplesInputDict], ) -> DeleteDatasetExamplesOutput: """ Deletes specific examples by ID from DRAFT. All example IDs are @@ -1335,8 +2037,6 @@ async def delete_dataset_examples( the entire batch is rejected (all-or-nothing semantics). Args: - input: - An instance of `DeleteDatasetExamplesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1346,10 +2046,33 @@ async def delete_dataset_examples( Returns: An instance of `DeleteDatasetExamplesOutput`. """ - return await self._invoke(input, _models.DELETE_DATASET_EXAMPLES, [], plugins) + async def delete_dataset_examples( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDatasetExamplesOutput: + return await self._invoke( + self._select_input(_models.DELETE_DATASET_EXAMPLES, args, kwargs), + _models.DELETE_DATASET_EXAMPLES, + [], + plugins, + ) + + @_overload + async def delete_evaluator( + self, + request: _models.DeleteEvaluatorInput | _models.DeleteEvaluatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEvaluatorOutput: ... + + @_overload async def delete_evaluator( - self, input: DeleteEvaluatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEvaluatorInputDict], ) -> DeleteEvaluatorOutput: """ Deletes a custom evaluator. Builtin evaluators cannot be deleted. The @@ -1357,8 +2080,6 @@ async def delete_evaluator( configurations. Args: - input: - An instance of `DeleteEvaluatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1368,17 +2089,38 @@ async def delete_evaluator( Returns: An instance of `DeleteEvaluatorOutput`. """ - return await self._invoke(input, _models.DELETE_EVALUATOR, [], plugins) + async def delete_evaluator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEvaluatorOutput: + return await self._invoke( + self._select_input(_models.DELETE_EVALUATOR, args, kwargs), + _models.DELETE_EVALUATOR, + [], + plugins, + ) + + @_overload + async def delete_gateway( + self, + request: _models.DeleteGatewayInput | _models.DeleteGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayOutput: ... + + @_overload async def delete_gateway( - self, input: DeleteGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayInputDict], ) -> DeleteGatewayOutput: """ Deletes a gateway. Args: - input: - An instance of `DeleteGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1388,17 +2130,39 @@ async def delete_gateway( Returns: An instance of `DeleteGatewayOutput`. """ - return await self._invoke(input, _models.DELETE_GATEWAY, [], plugins) + async def delete_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayOutput: + return await self._invoke( + self._select_input(_models.DELETE_GATEWAY, args, kwargs), + _models.DELETE_GATEWAY, + [], + plugins, + ) + + @_overload + async def delete_gateway_rate_limit( + self, + request: _models.DeleteGatewayRateLimitInput + | _models.DeleteGatewayRateLimitInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayRateLimitOutput: ... + + @_overload async def delete_gateway_rate_limit( - self, input: DeleteGatewayRateLimitInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayRateLimitInputDict], ) -> DeleteGatewayRateLimitOutput: """ Deletes a gateway rate limit. Args: - input: - An instance of `DeleteGatewayRateLimitInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1408,17 +2172,38 @@ async def delete_gateway_rate_limit( Returns: An instance of `DeleteGatewayRateLimitOutput`. """ - return await self._invoke(input, _models.DELETE_GATEWAY_RATE_LIMIT, [], plugins) + async def delete_gateway_rate_limit( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayRateLimitOutput: + return await self._invoke( + self._select_input(_models.DELETE_GATEWAY_RATE_LIMIT, args, kwargs), + _models.DELETE_GATEWAY_RATE_LIMIT, + [], + plugins, + ) + + @_overload + async def delete_gateway_rule( + self, + request: _models.DeleteGatewayRuleInput | _models.DeleteGatewayRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayRuleOutput: ... + + @_overload async def delete_gateway_rule( - self, input: DeleteGatewayRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayRuleInputDict], ) -> DeleteGatewayRuleOutput: """ Deletes a gateway rule. Args: - input: - An instance of `DeleteGatewayRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1428,10 +2213,34 @@ async def delete_gateway_rule( Returns: An instance of `DeleteGatewayRuleOutput`. """ - return await self._invoke(input, _models.DELETE_GATEWAY_RULE, [], plugins) + async def delete_gateway_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayRuleOutput: + return await self._invoke( + self._select_input(_models.DELETE_GATEWAY_RULE, args, kwargs), + _models.DELETE_GATEWAY_RULE, + [], + plugins, + ) + + @_overload + async def delete_gateway_target( + self, + request: _models.DeleteGatewayTargetInput + | _models.DeleteGatewayTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayTargetOutput: ... + + @_overload async def delete_gateway_target( - self, input: DeleteGatewayTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayTargetInputDict], ) -> DeleteGatewayTargetOutput: """ Deletes a gateway target. @@ -1442,8 +2251,6 @@ async def delete_gateway_target( fail before deleting the target. Args: - input: - An instance of `DeleteGatewayTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1453,17 +2260,38 @@ async def delete_gateway_target( Returns: An instance of `DeleteGatewayTargetOutput`. """ - return await self._invoke(input, _models.DELETE_GATEWAY_TARGET, [], plugins) + async def delete_gateway_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayTargetOutput: + return await self._invoke( + self._select_input(_models.DELETE_GATEWAY_TARGET, args, kwargs), + _models.DELETE_GATEWAY_TARGET, + [], + plugins, + ) + + @_overload + async def delete_harness( + self, + request: _models.DeleteHarnessInput | _models.DeleteHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteHarnessOutput: ... + + @_overload async def delete_harness( - self, input: DeleteHarnessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteHarnessInputDict], ) -> DeleteHarnessOutput: """ Operation to delete a Harness. Args: - input: - An instance of `DeleteHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1473,17 +2301,39 @@ async def delete_harness( Returns: An instance of `DeleteHarnessOutput`. """ - return await self._invoke(input, _models.DELETE_HARNESS, [], plugins) + async def delete_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteHarnessOutput: + return await self._invoke( + self._select_input(_models.DELETE_HARNESS, args, kwargs), + _models.DELETE_HARNESS, + [], + plugins, + ) + + @_overload async def delete_harness_endpoint( - self, input: DeleteHarnessEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteHarnessEndpointInput + | _models.DeleteHarnessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteHarnessEndpointOutput: ... + + @_overload + async def delete_harness_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteHarnessEndpointInputDict], ) -> DeleteHarnessEndpointOutput: """ Operation to delete a harness endpoint. Args: - input: - An instance of `DeleteHarnessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1493,18 +2343,39 @@ async def delete_harness_endpoint( Returns: An instance of `DeleteHarnessEndpointOutput`. """ - return await self._invoke(input, _models.DELETE_HARNESS_ENDPOINT, [], plugins) - async def delete_memory( - self, input: DeleteMemoryInput, plugins: list[Plugin] | None = None - ) -> DeleteMemoryOutput: + async def delete_harness_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteHarnessEndpointOutput: + return await self._invoke( + self._select_input(_models.DELETE_HARNESS_ENDPOINT, args, kwargs), + _models.DELETE_HARNESS_ENDPOINT, + [], + plugins, + ) + + @_overload + async def delete_memory( + self, + request: _models.DeleteMemoryInput | _models.DeleteMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMemoryOutput: ... + + @_overload + async def delete_memory( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMemoryInputDict], + ) -> DeleteMemoryOutput: """ Deletes an Amazon Bedrock AgentCore Memory resource. When you delete a memory resource, it is permanently removed. Args: - input: - An instance of `DeleteMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1514,19 +2385,39 @@ async def delete_memory( Returns: An instance of `DeleteMemoryOutput`. """ - return await self._invoke(input, _models.DELETE_MEMORY, [], plugins) + async def delete_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMemoryOutput: + return await self._invoke( + self._select_input(_models.DELETE_MEMORY, args, kwargs), + _models.DELETE_MEMORY, + [], + plugins, + ) + + @_overload + async def delete_oauth2_credential_provider( + self, + request: _models.DeleteOauth2CredentialProviderInput + | _models.DeleteOauth2CredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOauth2CredentialProviderOutput: ... + + @_overload async def delete_oauth2_credential_provider( self, - input: DeleteOauth2CredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOauth2CredentialProviderInputDict], ) -> DeleteOauth2CredentialProviderOutput: """ Deletes an OAuth2 credential provider. Args: - input: - An instance of `DeleteOauth2CredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1536,22 +2427,40 @@ async def delete_oauth2_credential_provider( Returns: An instance of `DeleteOauth2CredentialProviderOutput`. """ + + async def delete_oauth2_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOauth2CredentialProviderOutput: return await self._invoke( - input, _models.DELETE_OAUTH2_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.DELETE_OAUTH2_CREDENTIAL_PROVIDER, args, kwargs), + _models.DELETE_OAUTH2_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def delete_online_evaluation_config( + self, + request: _models.DeleteOnlineEvaluationConfigInput + | _models.DeleteOnlineEvaluationConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOnlineEvaluationConfigOutput: ... + + @_overload async def delete_online_evaluation_config( self, - input: DeleteOnlineEvaluationConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOnlineEvaluationConfigInputDict], ) -> DeleteOnlineEvaluationConfigOutput: """ Deletes an online evaluation configuration and stops any ongoing evaluation processes associated with it. Args: - input: - An instance of `DeleteOnlineEvaluationConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1561,19 +2470,39 @@ async def delete_online_evaluation_config( Returns: An instance of `DeleteOnlineEvaluationConfigOutput`. """ + + async def delete_online_evaluation_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOnlineEvaluationConfigOutput: return await self._invoke( - input, _models.DELETE_ONLINE_EVALUATION_CONFIG, [], plugins + self._select_input(_models.DELETE_ONLINE_EVALUATION_CONFIG, args, kwargs), + _models.DELETE_ONLINE_EVALUATION_CONFIG, + [], + plugins, ) + @_overload async def delete_payment_connector( - self, input: DeletePaymentConnectorInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePaymentConnectorInput + | _models.DeletePaymentConnectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentConnectorOutput: ... + + @_overload + async def delete_payment_connector( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentConnectorInputDict], ) -> DeletePaymentConnectorOutput: """ Deletes a payment connector. Args: - input: - An instance of `DeletePaymentConnectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1583,20 +2512,40 @@ async def delete_payment_connector( Returns: An instance of `DeletePaymentConnectorOutput`. """ - return await self._invoke(input, _models.DELETE_PAYMENT_CONNECTOR, [], plugins) + async def delete_payment_connector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentConnectorOutput: + return await self._invoke( + self._select_input(_models.DELETE_PAYMENT_CONNECTOR, args, kwargs), + _models.DELETE_PAYMENT_CONNECTOR, + [], + plugins, + ) + + @_overload + async def delete_payment_credential_provider( + self, + request: _models.DeletePaymentCredentialProviderInput + | _models.DeletePaymentCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentCredentialProviderOutput: ... + + @_overload async def delete_payment_credential_provider( self, - input: DeletePaymentCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentCredentialProviderInputDict], ) -> DeletePaymentCredentialProviderOutput: """ Deletes a payment credential provider and its associated stored credentials. Args: - input: - An instance of `DeletePaymentCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1606,12 +2555,36 @@ async def delete_payment_credential_provider( Returns: An instance of `DeletePaymentCredentialProviderOutput`. """ + + async def delete_payment_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentCredentialProviderOutput: return await self._invoke( - input, _models.DELETE_PAYMENT_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.DELETE_PAYMENT_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.DELETE_PAYMENT_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def delete_payment_manager( + self, + request: _models.DeletePaymentManagerInput + | _models.DeletePaymentManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentManagerOutput: ... + + @_overload async def delete_payment_manager( - self, input: DeletePaymentManagerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentManagerInputDict], ) -> DeletePaymentManagerOutput: """ Deletes a payment manager. All payment connectors associated with the @@ -1619,8 +2592,6 @@ async def delete_payment_manager( deleted. This operation initiates the deletion process asynchronously. Args: - input: - An instance of `DeletePaymentManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1630,10 +2601,33 @@ async def delete_payment_manager( Returns: An instance of `DeletePaymentManagerOutput`. """ - return await self._invoke(input, _models.DELETE_PAYMENT_MANAGER, [], plugins) + async def delete_payment_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentManagerOutput: + return await self._invoke( + self._select_input(_models.DELETE_PAYMENT_MANAGER, args, kwargs), + _models.DELETE_PAYMENT_MANAGER, + [], + plugins, + ) + + @_overload + async def delete_policy( + self, + request: _models.DeletePolicyInput | _models.DeletePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePolicyOutput: ... + + @_overload async def delete_policy( - self, input: DeletePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePolicyInputDict], ) -> DeletePolicyOutput: """ Deletes an existing policy from the AgentCore Policy system. Once @@ -1643,8 +2637,6 @@ async def delete_policy( completion. Args: - input: - An instance of `DeletePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1654,10 +2646,33 @@ async def delete_policy( Returns: An instance of `DeletePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_POLICY, [], plugins) + async def delete_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_POLICY, args, kwargs), + _models.DELETE_POLICY, + [], + plugins, + ) + + @_overload async def delete_policy_engine( - self, input: DeletePolicyEngineInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePolicyEngineInput | _models.DeletePolicyEngineInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePolicyEngineOutput: ... + + @_overload + async def delete_policy_engine( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePolicyEngineInputDict], ) -> DeletePolicyEngineOutput: """ Deletes an existing policy engine from the AgentCore Policy system. The @@ -1668,8 +2683,6 @@ async def delete_policy_engine( `status` field to track completion. Args: - input: - An instance of `DeletePolicyEngineInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1679,10 +2692,33 @@ async def delete_policy_engine( Returns: An instance of `DeletePolicyEngineOutput`. """ - return await self._invoke(input, _models.DELETE_POLICY_ENGINE, [], plugins) + async def delete_policy_engine( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePolicyEngineOutput: + return await self._invoke( + self._select_input(_models.DELETE_POLICY_ENGINE, args, kwargs), + _models.DELETE_POLICY_ENGINE, + [], + plugins, + ) + + @_overload + async def delete_registry( + self, + request: _models.DeleteRegistryInput | _models.DeleteRegistryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRegistryOutput: ... + + @_overload async def delete_registry( - self, input: DeleteRegistryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRegistryInputDict], ) -> DeleteRegistryOutput: """ Deletes a registry. The registry must contain zero records before it can @@ -1690,8 +2726,6 @@ async def delete_registry( asynchronously. Args: - input: - An instance of `DeleteRegistryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1701,18 +2735,40 @@ async def delete_registry( Returns: An instance of `DeleteRegistryOutput`. """ - return await self._invoke(input, _models.DELETE_REGISTRY, [], plugins) + async def delete_registry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRegistryOutput: + return await self._invoke( + self._select_input(_models.DELETE_REGISTRY, args, kwargs), + _models.DELETE_REGISTRY, + [], + plugins, + ) + + @_overload + async def delete_registry_record( + self, + request: _models.DeleteRegistryRecordInput + | _models.DeleteRegistryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRegistryRecordOutput: ... + + @_overload async def delete_registry_record( - self, input: DeleteRegistryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRegistryRecordInputDict], ) -> DeleteRegistryRecordOutput: """ Deletes a registry record. The record's status transitions to `DELETING` and the record is removed asynchronously. Args: - input: - An instance of `DeleteRegistryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1722,10 +2778,34 @@ async def delete_registry_record( Returns: An instance of `DeleteRegistryRecordOutput`. """ - return await self._invoke(input, _models.DELETE_REGISTRY_RECORD, [], plugins) + async def delete_registry_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRegistryRecordOutput: + return await self._invoke( + self._select_input(_models.DELETE_REGISTRY_RECORD, args, kwargs), + _models.DELETE_REGISTRY_RECORD, + [], + plugins, + ) + + @_overload + async def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource-based policy for a specified resource. @@ -1735,8 +2815,6 @@ async def delete_resource_policy( Gateway. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1746,17 +2824,39 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def delete_workload_identity( + self, + request: _models.DeleteWorkloadIdentityInput + | _models.DeleteWorkloadIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteWorkloadIdentityOutput: ... + + @_overload async def delete_workload_identity( - self, input: DeleteWorkloadIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteWorkloadIdentityInputDict], ) -> DeleteWorkloadIdentityOutput: """ Deletes a workload identity. Args: - input: - An instance of `DeleteWorkloadIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1766,17 +2866,38 @@ async def delete_workload_identity( Returns: An instance of `DeleteWorkloadIdentityOutput`. """ - return await self._invoke(input, _models.DELETE_WORKLOAD_IDENTITY, [], plugins) + async def delete_workload_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteWorkloadIdentityOutput: + return await self._invoke( + self._select_input(_models.DELETE_WORKLOAD_IDENTITY, args, kwargs), + _models.DELETE_WORKLOAD_IDENTITY, + [], + plugins, + ) + + @_overload + async def get_agent_runtime( + self, + request: _models.GetAgentRuntimeInput | _models.GetAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentRuntimeOutput: ... + + @_overload async def get_agent_runtime( - self, input: GetAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentRuntimeInputDict], ) -> GetAgentRuntimeOutput: """ Gets an Amazon Bedrock AgentCore Runtime. Args: - input: - An instance of `GetAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1786,17 +2907,39 @@ async def get_agent_runtime( Returns: An instance of `GetAgentRuntimeOutput`. """ - return await self._invoke(input, _models.GET_AGENT_RUNTIME, [], plugins) + async def get_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentRuntimeOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT_RUNTIME, args, kwargs), + _models.GET_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload + async def get_agent_runtime_endpoint( + self, + request: _models.GetAgentRuntimeEndpointInput + | _models.GetAgentRuntimeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentRuntimeEndpointOutput: ... + + @_overload async def get_agent_runtime_endpoint( - self, input: GetAgentRuntimeEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentRuntimeEndpointInputDict], ) -> GetAgentRuntimeEndpointOutput: """ Gets information about an Amazon Secure AgentEndpoint. Args: - input: - An instance of `GetAgentRuntimeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1806,21 +2949,39 @@ async def get_agent_runtime_endpoint( Returns: An instance of `GetAgentRuntimeEndpointOutput`. """ + + async def get_agent_runtime_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentRuntimeEndpointOutput: return await self._invoke( - input, _models.GET_AGENT_RUNTIME_ENDPOINT, [], plugins + self._select_input(_models.GET_AGENT_RUNTIME_ENDPOINT, args, kwargs), + _models.GET_AGENT_RUNTIME_ENDPOINT, + [], + plugins, ) + @_overload + async def get_api_key_credential_provider( + self, + request: _models.GetApiKeyCredentialProviderInput + | _models.GetApiKeyCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetApiKeyCredentialProviderOutput: ... + + @_overload async def get_api_key_credential_provider( self, - input: GetApiKeyCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetApiKeyCredentialProviderInputDict], ) -> GetApiKeyCredentialProviderOutput: """ Retrieves information about an API key credential provider. Args: - input: - An instance of `GetApiKeyCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1830,19 +2991,38 @@ async def get_api_key_credential_provider( Returns: An instance of `GetApiKeyCredentialProviderOutput`. """ + + async def get_api_key_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetApiKeyCredentialProviderOutput: return await self._invoke( - input, _models.GET_API_KEY_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.GET_API_KEY_CREDENTIAL_PROVIDER, args, kwargs), + _models.GET_API_KEY_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def get_browser( + self, + request: _models.GetBrowserInput | _models.GetBrowserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBrowserOutput: ... + + @_overload async def get_browser( - self, input: GetBrowserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBrowserInputDict], ) -> GetBrowserOutput: """ Gets information about a custom browser. Args: - input: - An instance of `GetBrowserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1852,17 +3032,38 @@ async def get_browser( Returns: An instance of `GetBrowserOutput`. """ - return await self._invoke(input, _models.GET_BROWSER, [], plugins) + async def get_browser( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBrowserOutput: + return await self._invoke( + self._select_input(_models.GET_BROWSER, args, kwargs), + _models.GET_BROWSER, + [], + plugins, + ) + + @_overload + async def get_browser_profile( + self, + request: _models.GetBrowserProfileInput | _models.GetBrowserProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBrowserProfileOutput: ... + + @_overload async def get_browser_profile( - self, input: GetBrowserProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBrowserProfileInputDict], ) -> GetBrowserProfileOutput: """ Gets information about a browser profile. Args: - input: - An instance of `GetBrowserProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1872,18 +3073,40 @@ async def get_browser_profile( Returns: An instance of `GetBrowserProfileOutput`. """ - return await self._invoke(input, _models.GET_BROWSER_PROFILE, [], plugins) + async def get_browser_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBrowserProfileOutput: + return await self._invoke( + self._select_input(_models.GET_BROWSER_PROFILE, args, kwargs), + _models.GET_BROWSER_PROFILE, + [], + plugins, + ) + + @_overload async def get_capacity_provider( - self, input: GetCapacityProviderInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCapacityProviderInput + | _models.GetCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityProviderOutput: ... + + @_overload + async def get_capacity_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityProviderInputDict], ) -> GetCapacityProviderOutput: """ Retrieves information about a capacity provider, including its status, permissions configuration, and compute configuration. Args: - input: - An instance of `GetCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1893,17 +3116,38 @@ async def get_capacity_provider( Returns: An instance of `GetCapacityProviderOutput`. """ - return await self._invoke(input, _models.GET_CAPACITY_PROVIDER, [], plugins) + async def get_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.GET_CAPACITY_PROVIDER, args, kwargs), + _models.GET_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def get_code_interpreter( + self, + request: _models.GetCodeInterpreterInput | _models.GetCodeInterpreterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCodeInterpreterOutput: ... + + @_overload async def get_code_interpreter( - self, input: GetCodeInterpreterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCodeInterpreterInputDict], ) -> GetCodeInterpreterOutput: """ Gets information about a custom code interpreter. Args: - input: - An instance of `GetCodeInterpreterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1913,10 +3157,34 @@ async def get_code_interpreter( Returns: An instance of `GetCodeInterpreterOutput`. """ - return await self._invoke(input, _models.GET_CODE_INTERPRETER, [], plugins) + async def get_code_interpreter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCodeInterpreterOutput: + return await self._invoke( + self._select_input(_models.GET_CODE_INTERPRETER, args, kwargs), + _models.GET_CODE_INTERPRETER, + [], + plugins, + ) + + @_overload + async def get_configuration_bundle( + self, + request: _models.GetConfigurationBundleInput + | _models.GetConfigurationBundleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConfigurationBundleOutput: ... + + @_overload async def get_configuration_bundle( - self, input: GetConfigurationBundleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConfigurationBundleInputDict], ) -> GetConfigurationBundleOutput: """ Gets the latest version of a configuration bundle. By default, returns @@ -1925,8 +3193,6 @@ async def get_configuration_bundle( version. Args: - input: - An instance of `GetConfigurationBundleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1936,20 +3202,40 @@ async def get_configuration_bundle( Returns: An instance of `GetConfigurationBundleOutput`. """ - return await self._invoke(input, _models.GET_CONFIGURATION_BUNDLE, [], plugins) + async def get_configuration_bundle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConfigurationBundleOutput: + return await self._invoke( + self._select_input(_models.GET_CONFIGURATION_BUNDLE, args, kwargs), + _models.GET_CONFIGURATION_BUNDLE, + [], + plugins, + ) + + @_overload + async def get_configuration_bundle_version( + self, + request: _models.GetConfigurationBundleVersionInput + | _models.GetConfigurationBundleVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConfigurationBundleVersionOutput: ... + + @_overload async def get_configuration_bundle_version( self, - input: GetConfigurationBundleVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConfigurationBundleVersionInputDict], ) -> GetConfigurationBundleVersionOutput: """ Gets a specific version of a configuration bundle by its version identifier. Args: - input: - An instance of `GetConfigurationBundleVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1959,19 +3245,38 @@ async def get_configuration_bundle_version( Returns: An instance of `GetConfigurationBundleVersionOutput`. """ + + async def get_configuration_bundle_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConfigurationBundleVersionOutput: return await self._invoke( - input, _models.GET_CONFIGURATION_BUNDLE_VERSION, [], plugins + self._select_input(_models.GET_CONFIGURATION_BUNDLE_VERSION, args, kwargs), + _models.GET_CONFIGURATION_BUNDLE_VERSION, + [], + plugins, ) + @_overload async def get_consent_portal( - self, input: GetConsentPortalInput, plugins: list[Plugin] | None = None + self, + request: _models.GetConsentPortalInput | _models.GetConsentPortalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConsentPortalOutput: ... + + @_overload + async def get_consent_portal( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConsentPortalInputDict], ) -> GetConsentPortalOutput: """ Retrieves information about a consent portal. Args: - input: - An instance of `GetConsentPortalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1981,10 +3286,33 @@ async def get_consent_portal( Returns: An instance of `GetConsentPortalOutput`. """ - return await self._invoke(input, _models.GET_CONSENT_PORTAL, [], plugins) + async def get_consent_portal( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConsentPortalOutput: + return await self._invoke( + self._select_input(_models.GET_CONSENT_PORTAL, args, kwargs), + _models.GET_CONSENT_PORTAL, + [], + plugins, + ) + + @_overload + async def get_dataset( + self, + request: _models.GetDatasetInput | _models.GetDatasetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDatasetOutput: ... + + @_overload async def get_dataset( - self, input: GetDatasetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDatasetInputDict], ) -> GetDatasetOutput: """ Retrieves dataset metadata. Use the `datasetVersion` query parameter to @@ -1992,8 +3320,6 @@ async def get_dataset( For paginated example content, use `ListDatasetExamples`. Args: - input: - An instance of `GetDatasetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2003,10 +3329,33 @@ async def get_dataset( Returns: An instance of `GetDatasetOutput`. """ - return await self._invoke(input, _models.GET_DATASET, [], plugins) + async def get_dataset( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDatasetOutput: + return await self._invoke( + self._select_input(_models.GET_DATASET, args, kwargs), + _models.GET_DATASET, + [], + plugins, + ) + + @_overload + async def get_evaluator( + self, + request: _models.GetEvaluatorInput | _models.GetEvaluatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEvaluatorOutput: ... + + @_overload async def get_evaluator( - self, input: GetEvaluatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEvaluatorInputDict], ) -> GetEvaluatorOutput: """ Retrieves detailed information about an evaluator, including its @@ -2014,8 +3363,6 @@ async def get_evaluator( evaluators. Args: - input: - An instance of `GetEvaluatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2025,17 +3372,38 @@ async def get_evaluator( Returns: An instance of `GetEvaluatorOutput`. """ - return await self._invoke(input, _models.GET_EVALUATOR, [], plugins) + async def get_evaluator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEvaluatorOutput: + return await self._invoke( + self._select_input(_models.GET_EVALUATOR, args, kwargs), + _models.GET_EVALUATOR, + [], + plugins, + ) + + @_overload + async def get_gateway( + self, + request: _models.GetGatewayInput | _models.GetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayOutput: ... + + @_overload async def get_gateway( - self, input: GetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayInputDict], ) -> GetGatewayOutput: """ Retrieves information about a specific Gateway. Args: - input: - An instance of `GetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2045,17 +3413,39 @@ async def get_gateway( Returns: An instance of `GetGatewayOutput`. """ - return await self._invoke(input, _models.GET_GATEWAY, [], plugins) - async def get_gateway_rate_limit( - self, input: GetGatewayRateLimitInput, plugins: list[Plugin] | None = None + async def get_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayOutput: + return await self._invoke( + self._select_input(_models.GET_GATEWAY, args, kwargs), + _models.GET_GATEWAY, + [], + plugins, + ) + + @_overload + async def get_gateway_rate_limit( + self, + request: _models.GetGatewayRateLimitInput + | _models.GetGatewayRateLimitInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayRateLimitOutput: ... + + @_overload + async def get_gateway_rate_limit( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayRateLimitInputDict], ) -> GetGatewayRateLimitOutput: """ Retrieves information about a gateway rate limit. Args: - input: - An instance of `GetGatewayRateLimitInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2065,17 +3455,38 @@ async def get_gateway_rate_limit( Returns: An instance of `GetGatewayRateLimitOutput`. """ - return await self._invoke(input, _models.GET_GATEWAY_RATE_LIMIT, [], plugins) + async def get_gateway_rate_limit( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayRateLimitOutput: + return await self._invoke( + self._select_input(_models.GET_GATEWAY_RATE_LIMIT, args, kwargs), + _models.GET_GATEWAY_RATE_LIMIT, + [], + plugins, + ) + + @_overload + async def get_gateway_rule( + self, + request: _models.GetGatewayRuleInput | _models.GetGatewayRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayRuleOutput: ... + + @_overload async def get_gateway_rule( - self, input: GetGatewayRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayRuleInputDict], ) -> GetGatewayRuleOutput: """ Retrieves detailed information about a specific gateway rule. Args: - input: - An instance of `GetGatewayRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2085,17 +3496,38 @@ async def get_gateway_rule( Returns: An instance of `GetGatewayRuleOutput`. """ - return await self._invoke(input, _models.GET_GATEWAY_RULE, [], plugins) + async def get_gateway_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayRuleOutput: + return await self._invoke( + self._select_input(_models.GET_GATEWAY_RULE, args, kwargs), + _models.GET_GATEWAY_RULE, + [], + plugins, + ) + + @_overload async def get_gateway_target( - self, input: GetGatewayTargetInput, plugins: list[Plugin] | None = None + self, + request: _models.GetGatewayTargetInput | _models.GetGatewayTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayTargetOutput: ... + + @_overload + async def get_gateway_target( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayTargetInputDict], ) -> GetGatewayTargetOutput: """ Retrieves information about a specific gateway target. Args: - input: - An instance of `GetGatewayTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2105,17 +3537,38 @@ async def get_gateway_target( Returns: An instance of `GetGatewayTargetOutput`. """ - return await self._invoke(input, _models.GET_GATEWAY_TARGET, [], plugins) + async def get_gateway_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayTargetOutput: + return await self._invoke( + self._select_input(_models.GET_GATEWAY_TARGET, args, kwargs), + _models.GET_GATEWAY_TARGET, + [], + plugins, + ) + + @_overload async def get_harness( - self, input: GetHarnessInput, plugins: list[Plugin] | None = None + self, + request: _models.GetHarnessInput | _models.GetHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHarnessOutput: ... + + @_overload + async def get_harness( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHarnessInputDict], ) -> GetHarnessOutput: """ Operation to get a single harness. Args: - input: - An instance of `GetHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2125,17 +3578,38 @@ async def get_harness( Returns: An instance of `GetHarnessOutput`. """ - return await self._invoke(input, _models.GET_HARNESS, [], plugins) + async def get_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHarnessOutput: + return await self._invoke( + self._select_input(_models.GET_HARNESS, args, kwargs), + _models.GET_HARNESS, + [], + plugins, + ) + + @_overload + async def get_harness_endpoint( + self, + request: _models.GetHarnessEndpointInput | _models.GetHarnessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHarnessEndpointOutput: ... + + @_overload async def get_harness_endpoint( - self, input: GetHarnessEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHarnessEndpointInputDict], ) -> GetHarnessEndpointOutput: """ Operation to get a single harness endpoint. Args: - input: - An instance of `GetHarnessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2145,17 +3619,38 @@ async def get_harness_endpoint( Returns: An instance of `GetHarnessEndpointOutput`. """ - return await self._invoke(input, _models.GET_HARNESS_ENDPOINT, [], plugins) + async def get_harness_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHarnessEndpointOutput: + return await self._invoke( + self._select_input(_models.GET_HARNESS_ENDPOINT, args, kwargs), + _models.GET_HARNESS_ENDPOINT, + [], + plugins, + ) + + @_overload async def get_memory( - self, input: GetMemoryInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMemoryInput | _models.GetMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMemoryOutput: ... + + @_overload + async def get_memory( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMemoryInputDict], ) -> GetMemoryOutput: """ Retrieve an existing Amazon Bedrock AgentCore Memory resource. Args: - input: - An instance of `GetMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2165,19 +3660,39 @@ async def get_memory( Returns: An instance of `GetMemoryOutput`. """ - return await self._invoke(input, _models.GET_MEMORY, [], plugins) + async def get_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMemoryOutput: + return await self._invoke( + self._select_input(_models.GET_MEMORY, args, kwargs), + _models.GET_MEMORY, + [], + plugins, + ) + + @_overload + async def get_oauth2_credential_provider( + self, + request: _models.GetOauth2CredentialProviderInput + | _models.GetOauth2CredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOauth2CredentialProviderOutput: ... + + @_overload async def get_oauth2_credential_provider( self, - input: GetOauth2CredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOauth2CredentialProviderInputDict], ) -> GetOauth2CredentialProviderOutput: """ Retrieves information about an OAuth2 credential provider. Args: - input: - An instance of `GetOauth2CredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2187,20 +3702,40 @@ async def get_oauth2_credential_provider( Returns: An instance of `GetOauth2CredentialProviderOutput`. """ + + async def get_oauth2_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOauth2CredentialProviderOutput: return await self._invoke( - input, _models.GET_OAUTH2_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.GET_OAUTH2_CREDENTIAL_PROVIDER, args, kwargs), + _models.GET_OAUTH2_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def get_online_evaluation_config( + self, + request: _models.GetOnlineEvaluationConfigInput + | _models.GetOnlineEvaluationConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOnlineEvaluationConfigOutput: ... + + @_overload async def get_online_evaluation_config( - self, input: GetOnlineEvaluationConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOnlineEvaluationConfigInputDict], ) -> GetOnlineEvaluationConfigOutput: """ Retrieves detailed information about an online evaluation configuration, including its rules, data sources, evaluators, and execution status. Args: - input: - An instance of `GetOnlineEvaluationConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2210,19 +3745,39 @@ async def get_online_evaluation_config( Returns: An instance of `GetOnlineEvaluationConfigOutput`. """ + + async def get_online_evaluation_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOnlineEvaluationConfigOutput: return await self._invoke( - input, _models.GET_ONLINE_EVALUATION_CONFIG, [], plugins + self._select_input(_models.GET_ONLINE_EVALUATION_CONFIG, args, kwargs), + _models.GET_ONLINE_EVALUATION_CONFIG, + [], + plugins, ) + @_overload + async def get_payment_connector( + self, + request: _models.GetPaymentConnectorInput + | _models.GetPaymentConnectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPaymentConnectorOutput: ... + + @_overload async def get_payment_connector( - self, input: GetPaymentConnectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentConnectorInputDict], ) -> GetPaymentConnectorOutput: """ Retrieves information about a specific payment connector. Args: - input: - An instance of `GetPaymentConnectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2232,19 +3787,39 @@ async def get_payment_connector( Returns: An instance of `GetPaymentConnectorOutput`. """ - return await self._invoke(input, _models.GET_PAYMENT_CONNECTOR, [], plugins) + async def get_payment_connector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentConnectorOutput: + return await self._invoke( + self._select_input(_models.GET_PAYMENT_CONNECTOR, args, kwargs), + _models.GET_PAYMENT_CONNECTOR, + [], + plugins, + ) + + @_overload async def get_payment_credential_provider( self, - input: GetPaymentCredentialProviderInput, + request: _models.GetPaymentCredentialProviderInput + | _models.GetPaymentCredentialProviderInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetPaymentCredentialProviderOutput: ... + + @_overload + async def get_payment_credential_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentCredentialProviderInputDict], ) -> GetPaymentCredentialProviderOutput: """ Retrieves information about a specific payment credential provider. Args: - input: - An instance of `GetPaymentCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2254,19 +3829,38 @@ async def get_payment_credential_provider( Returns: An instance of `GetPaymentCredentialProviderOutput`. """ + + async def get_payment_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentCredentialProviderOutput: return await self._invoke( - input, _models.GET_PAYMENT_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.GET_PAYMENT_CREDENTIAL_PROVIDER, args, kwargs), + _models.GET_PAYMENT_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload async def get_payment_manager( - self, input: GetPaymentManagerInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPaymentManagerInput | _models.GetPaymentManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPaymentManagerOutput: ... + + @_overload + async def get_payment_manager( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentManagerInputDict], ) -> GetPaymentManagerOutput: """ Retrieves information about a specific payment manager. Args: - input: - An instance of `GetPaymentManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2276,10 +3870,33 @@ async def get_payment_manager( Returns: An instance of `GetPaymentManagerOutput`. """ - return await self._invoke(input, _models.GET_PAYMENT_MANAGER, [], plugins) + async def get_payment_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentManagerOutput: + return await self._invoke( + self._select_input(_models.GET_PAYMENT_MANAGER, args, kwargs), + _models.GET_PAYMENT_MANAGER, + [], + plugins, + ) + + @_overload + async def get_policy( + self, + request: _models.GetPolicyInput | _models.GetPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyOutput: ... + + @_overload async def get_policy( - self, input: GetPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyInputDict], ) -> GetPolicyOutput: """ Retrieves detailed information about a specific policy within the @@ -2288,8 +3905,6 @@ async def get_policy( review and manage policy configurations. Args: - input: - An instance of `GetPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2299,10 +3914,33 @@ async def get_policy( Returns: An instance of `GetPolicyOutput`. """ - return await self._invoke(input, _models.GET_POLICY, [], plugins) + async def get_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY, args, kwargs), + _models.GET_POLICY, + [], + plugins, + ) + + @_overload + async def get_policy_engine( + self, + request: _models.GetPolicyEngineInput | _models.GetPolicyEngineInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyEngineOutput: ... + + @_overload async def get_policy_engine( - self, input: GetPolicyEngineInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyEngineInputDict], ) -> GetPolicyEngineOutput: """ Retrieves detailed information about a specific policy engine within the @@ -2311,8 +3949,6 @@ async def get_policy_engine( administrators to review and manage policy engine settings. Args: - input: - An instance of `GetPolicyEngineInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2322,10 +3958,34 @@ async def get_policy_engine( Returns: An instance of `GetPolicyEngineOutput`. """ - return await self._invoke(input, _models.GET_POLICY_ENGINE, [], plugins) + async def get_policy_engine( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyEngineOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY_ENGINE, args, kwargs), + _models.GET_POLICY_ENGINE, + [], + plugins, + ) + + @_overload + async def get_policy_engine_summary( + self, + request: _models.GetPolicyEngineSummaryInput + | _models.GetPolicyEngineSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyEngineSummaryOutput: ... + + @_overload async def get_policy_engine_summary( - self, input: GetPolicyEngineSummaryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyEngineSummaryInputDict], ) -> GetPolicyEngineSummaryOutput: """ Retrieves a metadata-only summary of a specific policy engine without @@ -2337,8 +3997,6 @@ async def get_policy_engine_summary( where only metadata is needed. Args: - input: - An instance of `GetPolicyEngineSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2348,10 +4006,34 @@ async def get_policy_engine_summary( Returns: An instance of `GetPolicyEngineSummaryOutput`. """ - return await self._invoke(input, _models.GET_POLICY_ENGINE_SUMMARY, [], plugins) + async def get_policy_engine_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyEngineSummaryOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY_ENGINE_SUMMARY, args, kwargs), + _models.GET_POLICY_ENGINE_SUMMARY, + [], + plugins, + ) + + @_overload async def get_policy_generation( - self, input: GetPolicyGenerationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPolicyGenerationInput + | _models.GetPolicyGenerationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyGenerationOutput: ... + + @_overload + async def get_policy_generation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyGenerationInputDict], ) -> GetPolicyGenerationOutput: """ Retrieves information about a policy generation request within the @@ -2360,8 +4042,6 @@ async def get_policy_generation( translation, enabling non-technical users to create policies. Args: - input: - An instance of `GetPolicyGenerationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2371,12 +4051,34 @@ async def get_policy_generation( Returns: An instance of `GetPolicyGenerationOutput`. """ - return await self._invoke(input, _models.GET_POLICY_GENERATION, [], plugins) + async def get_policy_generation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyGenerationOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY_GENERATION, args, kwargs), + _models.GET_POLICY_GENERATION, + [], + plugins, + ) + + @_overload async def get_policy_generation_summary( self, - input: GetPolicyGenerationSummaryInput, + request: _models.GetPolicyGenerationSummaryInput + | _models.GetPolicyGenerationSummaryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetPolicyGenerationSummaryOutput: ... + + @_overload + async def get_policy_generation_summary( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyGenerationSummaryInputDict], ) -> GetPolicyGenerationSummaryOutput: """ Retrieves a metadata-only summary of a specific policy generation @@ -2388,8 +4090,6 @@ async def get_policy_generation_summary( metadata is needed. Args: - input: - An instance of `GetPolicyGenerationSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2399,12 +4099,33 @@ async def get_policy_generation_summary( Returns: An instance of `GetPolicyGenerationSummaryOutput`. """ + + async def get_policy_generation_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyGenerationSummaryOutput: return await self._invoke( - input, _models.GET_POLICY_GENERATION_SUMMARY, [], plugins + self._select_input(_models.GET_POLICY_GENERATION_SUMMARY, args, kwargs), + _models.GET_POLICY_GENERATION_SUMMARY, + [], + plugins, ) + @_overload + async def get_policy_summary( + self, + request: _models.GetPolicySummaryInput | _models.GetPolicySummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicySummaryOutput: ... + + @_overload async def get_policy_summary( - self, input: GetPolicySummaryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicySummaryInputDict], ) -> GetPolicySummaryOutput: """ Retrieves a metadata-only summary of a specific policy without @@ -2416,8 +4137,6 @@ async def get_policy_summary( where only metadata is needed. Args: - input: - An instance of `GetPolicySummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2427,17 +4146,38 @@ async def get_policy_summary( Returns: An instance of `GetPolicySummaryOutput`. """ - return await self._invoke(input, _models.GET_POLICY_SUMMARY, [], plugins) + async def get_policy_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicySummaryOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY_SUMMARY, args, kwargs), + _models.GET_POLICY_SUMMARY, + [], + plugins, + ) + + @_overload async def get_registry( - self, input: GetRegistryInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRegistryInput | _models.GetRegistryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRegistryOutput: ... + + @_overload + async def get_registry( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRegistryInputDict], ) -> GetRegistryOutput: """ Retrieves information about a specific registry. Args: - input: - An instance of `GetRegistryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2447,17 +4187,38 @@ async def get_registry( Returns: An instance of `GetRegistryOutput`. """ - return await self._invoke(input, _models.GET_REGISTRY, [], plugins) + async def get_registry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRegistryOutput: + return await self._invoke( + self._select_input(_models.GET_REGISTRY, args, kwargs), + _models.GET_REGISTRY, + [], + plugins, + ) + + @_overload async def get_registry_record( - self, input: GetRegistryRecordInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRegistryRecordInput | _models.GetRegistryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRegistryRecordOutput: ... + + @_overload + async def get_registry_record( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRegistryRecordInputDict], ) -> GetRegistryRecordOutput: """ Retrieves information about a specific registry record. Args: - input: - An instance of `GetRegistryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2467,10 +4228,33 @@ async def get_registry_record( Returns: An instance of `GetRegistryRecordOutput`. """ - return await self._invoke(input, _models.GET_REGISTRY_RECORD, [], plugins) + async def get_registry_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRegistryRecordOutput: + return await self._invoke( + self._select_input(_models.GET_REGISTRY_RECORD, args, kwargs), + _models.GET_REGISTRY_RECORD, + [], + plugins, + ) + + @_overload + async def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the resource-based policy for a specified resource. @@ -2480,8 +4264,6 @@ async def get_resource_policy( Gateway. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2491,17 +4273,38 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload async def get_token_vault( - self, input: GetTokenVaultInput, plugins: list[Plugin] | None = None + self, + request: _models.GetTokenVaultInput | _models.GetTokenVaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTokenVaultOutput: ... + + @_overload + async def get_token_vault( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTokenVaultInputDict], ) -> GetTokenVaultOutput: """ Retrieves information about a token vault. Args: - input: - An instance of `GetTokenVaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2511,17 +4314,39 @@ async def get_token_vault( Returns: An instance of `GetTokenVaultOutput`. """ - return await self._invoke(input, _models.GET_TOKEN_VAULT, [], plugins) + async def get_token_vault( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTokenVaultOutput: + return await self._invoke( + self._select_input(_models.GET_TOKEN_VAULT, args, kwargs), + _models.GET_TOKEN_VAULT, + [], + plugins, + ) + + @_overload + async def get_workload_identity( + self, + request: _models.GetWorkloadIdentityInput + | _models.GetWorkloadIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWorkloadIdentityOutput: ... + + @_overload async def get_workload_identity( - self, input: GetWorkloadIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWorkloadIdentityInputDict], ) -> GetWorkloadIdentityOutput: """ Retrieves information about a workload identity. Args: - input: - An instance of `GetWorkloadIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2531,17 +4356,39 @@ async def get_workload_identity( Returns: An instance of `GetWorkloadIdentityOutput`. """ - return await self._invoke(input, _models.GET_WORKLOAD_IDENTITY, [], plugins) + async def get_workload_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWorkloadIdentityOutput: + return await self._invoke( + self._select_input(_models.GET_WORKLOAD_IDENTITY, args, kwargs), + _models.GET_WORKLOAD_IDENTITY, + [], + plugins, + ) + + @_overload async def list_agent_runtime_endpoints( - self, input: ListAgentRuntimeEndpointsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAgentRuntimeEndpointsInput + | _models.ListAgentRuntimeEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentRuntimeEndpointsOutput: ... + + @_overload + async def list_agent_runtime_endpoints( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentRuntimeEndpointsInputDict], ) -> ListAgentRuntimeEndpointsOutput: """ Lists all endpoints for a specific Amazon Secure Agent. Args: - input: - An instance of `ListAgentRuntimeEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2551,19 +4398,38 @@ async def list_agent_runtime_endpoints( Returns: An instance of `ListAgentRuntimeEndpointsOutput`. """ + + async def list_agent_runtime_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentRuntimeEndpointsOutput: return await self._invoke( - input, _models.LIST_AGENT_RUNTIME_ENDPOINTS, [], plugins + self._select_input(_models.LIST_AGENT_RUNTIME_ENDPOINTS, args, kwargs), + _models.LIST_AGENT_RUNTIME_ENDPOINTS, + [], + plugins, ) + @_overload + async def list_agent_runtimes( + self, + request: _models.ListAgentRuntimesInput | _models.ListAgentRuntimesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentRuntimesOutput: ... + + @_overload async def list_agent_runtimes( - self, input: ListAgentRuntimesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentRuntimesInputDict], ) -> ListAgentRuntimesOutput: """ Lists all Amazon Secure Agents in your account. Args: - input: - An instance of `ListAgentRuntimesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2573,17 +4439,39 @@ async def list_agent_runtimes( Returns: An instance of `ListAgentRuntimesOutput`. """ - return await self._invoke(input, _models.LIST_AGENT_RUNTIMES, [], plugins) + async def list_agent_runtimes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentRuntimesOutput: + return await self._invoke( + self._select_input(_models.LIST_AGENT_RUNTIMES, args, kwargs), + _models.LIST_AGENT_RUNTIMES, + [], + plugins, + ) + + @_overload + async def list_agent_runtime_versions( + self, + request: _models.ListAgentRuntimeVersionsInput + | _models.ListAgentRuntimeVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentRuntimeVersionsOutput: ... + + @_overload async def list_agent_runtime_versions( - self, input: ListAgentRuntimeVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentRuntimeVersionsInputDict], ) -> ListAgentRuntimeVersionsOutput: """ Lists all versions of a specific Amazon Secure Agent. Args: - input: - An instance of `ListAgentRuntimeVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2593,14 +4481,34 @@ async def list_agent_runtime_versions( Returns: An instance of `ListAgentRuntimeVersionsOutput`. """ + + async def list_agent_runtime_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentRuntimeVersionsOutput: return await self._invoke( - input, _models.LIST_AGENT_RUNTIME_VERSIONS, [], plugins + self._select_input(_models.LIST_AGENT_RUNTIME_VERSIONS, args, kwargs), + _models.LIST_AGENT_RUNTIME_VERSIONS, + [], + plugins, ) + @_overload async def list_agent_runtime_versions_by_capacity_provider( self, - input: ListAgentRuntimeVersionsByCapacityProviderInput, + request: _models.ListAgentRuntimeVersionsByCapacityProviderInput + | _models.ListAgentRuntimeVersionsByCapacityProviderInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListAgentRuntimeVersionsByCapacityProviderOutput: ... + + @_overload + async def list_agent_runtime_versions_by_capacity_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentRuntimeVersionsByCapacityProviderInputDict], ) -> ListAgentRuntimeVersionsByCapacityProviderOutput: """ Lists the agent runtime versions that are associated with a capacity @@ -2609,8 +4517,6 @@ async def list_agent_runtime_versions_by_capacity_provider( paginated; use the `nextToken` parameter to retrieve additional results. Args: - input: - An instance of `ListAgentRuntimeVersionsByCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2620,21 +4526,41 @@ async def list_agent_runtime_versions_by_capacity_provider( Returns: An instance of `ListAgentRuntimeVersionsByCapacityProviderOutput`. """ + + async def list_agent_runtime_versions_by_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentRuntimeVersionsByCapacityProviderOutput: return await self._invoke( - input, _models.LIST_AGENT_RUNTIME_VERSIONS_BY_CAPACITY_PROVIDER, [], plugins + self._select_input( + _models.LIST_AGENT_RUNTIME_VERSIONS_BY_CAPACITY_PROVIDER, args, kwargs + ), + _models.LIST_AGENT_RUNTIME_VERSIONS_BY_CAPACITY_PROVIDER, + [], + plugins, ) + @_overload async def list_api_key_credential_providers( self, - input: ListApiKeyCredentialProvidersInput, + request: _models.ListApiKeyCredentialProvidersInput + | _models.ListApiKeyCredentialProvidersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListApiKeyCredentialProvidersOutput: ... + + @_overload + async def list_api_key_credential_providers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListApiKeyCredentialProvidersInputDict], ) -> ListApiKeyCredentialProvidersOutput: """ Lists all API key credential providers in your account. Args: - input: - An instance of `ListApiKeyCredentialProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2644,19 +4570,39 @@ async def list_api_key_credential_providers( Returns: An instance of `ListApiKeyCredentialProvidersOutput`. """ + + async def list_api_key_credential_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListApiKeyCredentialProvidersOutput: return await self._invoke( - input, _models.LIST_API_KEY_CREDENTIAL_PROVIDERS, [], plugins + self._select_input(_models.LIST_API_KEY_CREDENTIAL_PROVIDERS, args, kwargs), + _models.LIST_API_KEY_CREDENTIAL_PROVIDERS, + [], + plugins, ) + @_overload + async def list_browser_profiles( + self, + request: _models.ListBrowserProfilesInput + | _models.ListBrowserProfilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBrowserProfilesOutput: ... + + @_overload async def list_browser_profiles( - self, input: ListBrowserProfilesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBrowserProfilesInputDict], ) -> ListBrowserProfilesOutput: """ Lists all browser profiles in your account. Args: - input: - An instance of `ListBrowserProfilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2666,17 +4612,38 @@ async def list_browser_profiles( Returns: An instance of `ListBrowserProfilesOutput`. """ - return await self._invoke(input, _models.LIST_BROWSER_PROFILES, [], plugins) + async def list_browser_profiles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBrowserProfilesOutput: + return await self._invoke( + self._select_input(_models.LIST_BROWSER_PROFILES, args, kwargs), + _models.LIST_BROWSER_PROFILES, + [], + plugins, + ) + + @_overload async def list_browsers( - self, input: ListBrowsersInput, plugins: list[Plugin] | None = None + self, + request: _models.ListBrowsersInput | _models.ListBrowsersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBrowsersOutput: ... + + @_overload + async def list_browsers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBrowsersInputDict], ) -> ListBrowsersOutput: """ Lists all custom browsers in your account. Args: - input: - An instance of `ListBrowsersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2686,10 +4653,34 @@ async def list_browsers( Returns: An instance of `ListBrowsersOutput`. """ - return await self._invoke(input, _models.LIST_BROWSERS, [], plugins) + async def list_browsers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBrowsersOutput: + return await self._invoke( + self._select_input(_models.LIST_BROWSERS, args, kwargs), + _models.LIST_BROWSERS, + [], + plugins, + ) + + @_overload + async def list_capacity_providers( + self, + request: _models.ListCapacityProvidersInput + | _models.ListCapacityProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCapacityProvidersOutput: ... + + @_overload async def list_capacity_providers( - self, input: ListCapacityProvidersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCapacityProvidersInputDict], ) -> ListCapacityProvidersOutput: """ Lists the capacity providers in your account and returns summary @@ -2698,8 +4689,6 @@ async def list_capacity_providers( paginated; use the `nextToken` parameter to retrieve additional results. Args: - input: - An instance of `ListCapacityProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2709,17 +4698,39 @@ async def list_capacity_providers( Returns: An instance of `ListCapacityProvidersOutput`. """ - return await self._invoke(input, _models.LIST_CAPACITY_PROVIDERS, [], plugins) + async def list_capacity_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCapacityProvidersOutput: + return await self._invoke( + self._select_input(_models.LIST_CAPACITY_PROVIDERS, args, kwargs), + _models.LIST_CAPACITY_PROVIDERS, + [], + plugins, + ) + + @_overload async def list_code_interpreters( - self, input: ListCodeInterpretersInput, plugins: list[Plugin] | None = None + self, + request: _models.ListCodeInterpretersInput + | _models.ListCodeInterpretersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCodeInterpretersOutput: ... + + @_overload + async def list_code_interpreters( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCodeInterpretersInputDict], ) -> ListCodeInterpretersOutput: """ Lists all custom code interpreters in your account. Args: - input: - An instance of `ListCodeInterpretersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2729,17 +4740,39 @@ async def list_code_interpreters( Returns: An instance of `ListCodeInterpretersOutput`. """ - return await self._invoke(input, _models.LIST_CODE_INTERPRETERS, [], plugins) + async def list_code_interpreters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCodeInterpretersOutput: + return await self._invoke( + self._select_input(_models.LIST_CODE_INTERPRETERS, args, kwargs), + _models.LIST_CODE_INTERPRETERS, + [], + plugins, + ) + + @_overload + async def list_configuration_bundles( + self, + request: _models.ListConfigurationBundlesInput + | _models.ListConfigurationBundlesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConfigurationBundlesOutput: ... + + @_overload async def list_configuration_bundles( - self, input: ListConfigurationBundlesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConfigurationBundlesInputDict], ) -> ListConfigurationBundlesOutput: """ Lists all configuration bundles in the account. Args: - input: - An instance of `ListConfigurationBundlesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2749,22 +4782,40 @@ async def list_configuration_bundles( Returns: An instance of `ListConfigurationBundlesOutput`. """ + + async def list_configuration_bundles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConfigurationBundlesOutput: return await self._invoke( - input, _models.LIST_CONFIGURATION_BUNDLES, [], plugins + self._select_input(_models.LIST_CONFIGURATION_BUNDLES, args, kwargs), + _models.LIST_CONFIGURATION_BUNDLES, + [], + plugins, ) + @_overload + async def list_configuration_bundle_versions( + self, + request: _models.ListConfigurationBundleVersionsInput + | _models.ListConfigurationBundleVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConfigurationBundleVersionsOutput: ... + + @_overload async def list_configuration_bundle_versions( self, - input: ListConfigurationBundleVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConfigurationBundleVersionsInputDict], ) -> ListConfigurationBundleVersionsOutput: """ Lists all versions of a configuration bundle, with optional filtering by branch name or creation source. Args: - input: - An instance of `ListConfigurationBundleVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2774,19 +4825,40 @@ async def list_configuration_bundle_versions( Returns: An instance of `ListConfigurationBundleVersionsOutput`. """ + + async def list_configuration_bundle_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConfigurationBundleVersionsOutput: return await self._invoke( - input, _models.LIST_CONFIGURATION_BUNDLE_VERSIONS, [], plugins + self._select_input( + _models.LIST_CONFIGURATION_BUNDLE_VERSIONS, args, kwargs + ), + _models.LIST_CONFIGURATION_BUNDLE_VERSIONS, + [], + plugins, ) + @_overload + async def list_consent_portals( + self, + request: _models.ListConsentPortalsInput | _models.ListConsentPortalsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConsentPortalsOutput: ... + + @_overload async def list_consent_portals( - self, input: ListConsentPortalsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConsentPortalsInputDict], ) -> ListConsentPortalsOutput: """ Lists all of the consent portals in your account. Args: - input: - An instance of `ListConsentPortalsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2796,10 +4868,34 @@ async def list_consent_portals( Returns: An instance of `ListConsentPortalsOutput`. """ - return await self._invoke(input, _models.LIST_CONSENT_PORTALS, [], plugins) + async def list_consent_portals( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConsentPortalsOutput: + return await self._invoke( + self._select_input(_models.LIST_CONSENT_PORTALS, args, kwargs), + _models.LIST_CONSENT_PORTALS, + [], + plugins, + ) + + @_overload async def list_dataset_examples( - self, input: ListDatasetExamplesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDatasetExamplesInput + | _models.ListDatasetExamplesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDatasetExamplesOutput: ... + + @_overload + async def list_dataset_examples( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDatasetExamplesInputDict], ) -> ListDatasetExamplesOutput: """ Returns paginated examples from the dataset. The server embeds the @@ -2808,8 +4904,6 @@ async def list_dataset_examples( mutations. Args: - input: - An instance of `ListDatasetExamplesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2819,17 +4913,38 @@ async def list_dataset_examples( Returns: An instance of `ListDatasetExamplesOutput`. """ - return await self._invoke(input, _models.LIST_DATASET_EXAMPLES, [], plugins) + async def list_dataset_examples( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDatasetExamplesOutput: + return await self._invoke( + self._select_input(_models.LIST_DATASET_EXAMPLES, args, kwargs), + _models.LIST_DATASET_EXAMPLES, + [], + plugins, + ) + + @_overload + async def list_datasets( + self, + request: _models.ListDatasetsInput | _models.ListDatasetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDatasetsOutput: ... + + @_overload async def list_datasets( - self, input: ListDatasetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDatasetsInputDict], ) -> ListDatasetsOutput: """ Lists all datasets in the caller's account, paginated. Args: - input: - An instance of `ListDatasetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2839,18 +4954,40 @@ async def list_datasets( Returns: An instance of `ListDatasetsOutput`. """ - return await self._invoke(input, _models.LIST_DATASETS, [], plugins) + async def list_datasets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDatasetsOutput: + return await self._invoke( + self._select_input(_models.LIST_DATASETS, args, kwargs), + _models.LIST_DATASETS, + [], + plugins, + ) + + @_overload + async def list_dataset_versions( + self, + request: _models.ListDatasetVersionsInput + | _models.ListDatasetVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDatasetVersionsOutput: ... + + @_overload async def list_dataset_versions( - self, input: ListDatasetVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDatasetVersionsInputDict], ) -> ListDatasetVersionsOutput: """ Lists all published versions of a dataset, sorted by version number descending (newest first). Does not include the DRAFT working copy. Args: - input: - An instance of `ListDatasetVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2860,18 +4997,39 @@ async def list_dataset_versions( Returns: An instance of `ListDatasetVersionsOutput`. """ - return await self._invoke(input, _models.LIST_DATASET_VERSIONS, [], plugins) + async def list_dataset_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDatasetVersionsOutput: + return await self._invoke( + self._select_input(_models.LIST_DATASET_VERSIONS, args, kwargs), + _models.LIST_DATASET_VERSIONS, + [], + plugins, + ) + + @_overload + async def list_evaluators( + self, + request: _models.ListEvaluatorsInput | _models.ListEvaluatorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEvaluatorsOutput: ... + + @_overload async def list_evaluators( - self, input: ListEvaluatorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEvaluatorsInputDict], ) -> ListEvaluatorsOutput: """ Lists all available evaluators, including both builtin evaluators provided by the service and custom evaluators created by the user. Args: - input: - An instance of `ListEvaluatorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2881,18 +5039,40 @@ async def list_evaluators( Returns: An instance of `ListEvaluatorsOutput`. """ - return await self._invoke(input, _models.LIST_EVALUATORS, [], plugins) + async def list_evaluators( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEvaluatorsOutput: + return await self._invoke( + self._select_input(_models.LIST_EVALUATORS, args, kwargs), + _models.LIST_EVALUATORS, + [], + plugins, + ) + + @_overload async def list_gateway_rate_limits( - self, input: ListGatewayRateLimitsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGatewayRateLimitsInput + | _models.ListGatewayRateLimitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewayRateLimitsOutput: ... + + @_overload + async def list_gateway_rate_limits( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayRateLimitsInputDict], ) -> ListGatewayRateLimitsOutput: """ Lists all rate limits for a gateway. Results are paginated. Use the `nextToken` parameter to retrieve additional results. Args: - input: - An instance of `ListGatewayRateLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2902,17 +5082,38 @@ async def list_gateway_rate_limits( Returns: An instance of `ListGatewayRateLimitsOutput`. """ - return await self._invoke(input, _models.LIST_GATEWAY_RATE_LIMITS, [], plugins) + async def list_gateway_rate_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayRateLimitsOutput: + return await self._invoke( + self._select_input(_models.LIST_GATEWAY_RATE_LIMITS, args, kwargs), + _models.LIST_GATEWAY_RATE_LIMITS, + [], + plugins, + ) + + @_overload async def list_gateway_rules( - self, input: ListGatewayRulesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGatewayRulesInput | _models.ListGatewayRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewayRulesOutput: ... + + @_overload + async def list_gateway_rules( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayRulesInputDict], ) -> ListGatewayRulesOutput: """ Lists all rules for a gateway. Args: - input: - An instance of `ListGatewayRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2922,17 +5123,38 @@ async def list_gateway_rules( Returns: An instance of `ListGatewayRulesOutput`. """ - return await self._invoke(input, _models.LIST_GATEWAY_RULES, [], plugins) + async def list_gateway_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayRulesOutput: + return await self._invoke( + self._select_input(_models.LIST_GATEWAY_RULES, args, kwargs), + _models.LIST_GATEWAY_RULES, + [], + plugins, + ) + + @_overload async def list_gateways( - self, input: ListGatewaysInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGatewaysInput | _models.ListGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewaysOutput: ... + + @_overload + async def list_gateways( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewaysInputDict], ) -> ListGatewaysOutput: """ Lists all gateways in the account. Args: - input: - An instance of `ListGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2942,17 +5164,38 @@ async def list_gateways( Returns: An instance of `ListGatewaysOutput`. """ - return await self._invoke(input, _models.LIST_GATEWAYS, [], plugins) + async def list_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewaysOutput: + return await self._invoke( + self._select_input(_models.LIST_GATEWAYS, args, kwargs), + _models.LIST_GATEWAYS, + [], + plugins, + ) + + @_overload + async def list_gateway_targets( + self, + request: _models.ListGatewayTargetsInput | _models.ListGatewayTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewayTargetsOutput: ... + + @_overload async def list_gateway_targets( - self, input: ListGatewayTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayTargetsInputDict], ) -> ListGatewayTargetsOutput: """ Lists all targets for a specific gateway. Args: - input: - An instance of `ListGatewayTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2962,17 +5205,39 @@ async def list_gateway_targets( Returns: An instance of `ListGatewayTargetsOutput`. """ - return await self._invoke(input, _models.LIST_GATEWAY_TARGETS, [], plugins) + async def list_gateway_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayTargetsOutput: + return await self._invoke( + self._select_input(_models.LIST_GATEWAY_TARGETS, args, kwargs), + _models.LIST_GATEWAY_TARGETS, + [], + plugins, + ) + + @_overload + async def list_harness_endpoints( + self, + request: _models.ListHarnessEndpointsInput + | _models.ListHarnessEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListHarnessEndpointsOutput: ... + + @_overload async def list_harness_endpoints( - self, input: ListHarnessEndpointsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListHarnessEndpointsInputDict], ) -> ListHarnessEndpointsOutput: """ Operation to list the endpoints of a harness. Args: - input: - An instance of `ListHarnessEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2982,17 +5247,38 @@ async def list_harness_endpoints( Returns: An instance of `ListHarnessEndpointsOutput`. """ - return await self._invoke(input, _models.LIST_HARNESS_ENDPOINTS, [], plugins) + async def list_harness_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListHarnessEndpointsOutput: + return await self._invoke( + self._select_input(_models.LIST_HARNESS_ENDPOINTS, args, kwargs), + _models.LIST_HARNESS_ENDPOINTS, + [], + plugins, + ) + + @_overload async def list_harnesses( - self, input: ListHarnessesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListHarnessesInput | _models.ListHarnessesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListHarnessesOutput: ... + + @_overload + async def list_harnesses( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListHarnessesInputDict], ) -> ListHarnessesOutput: """ Operation to list harnesses. Args: - input: - An instance of `ListHarnessesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3002,17 +5288,39 @@ async def list_harnesses( Returns: An instance of `ListHarnessesOutput`. """ - return await self._invoke(input, _models.LIST_HARNESSES, [], plugins) + async def list_harnesses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListHarnessesOutput: + return await self._invoke( + self._select_input(_models.LIST_HARNESSES, args, kwargs), + _models.LIST_HARNESSES, + [], + plugins, + ) + + @_overload + async def list_harness_versions( + self, + request: _models.ListHarnessVersionsInput + | _models.ListHarnessVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListHarnessVersionsOutput: ... + + @_overload async def list_harness_versions( - self, input: ListHarnessVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListHarnessVersionsInputDict], ) -> ListHarnessVersionsOutput: """ Operation to list the versions of a Harness. Args: - input: - An instance of `ListHarnessVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3022,40 +5330,81 @@ async def list_harness_versions( Returns: An instance of `ListHarnessVersionsOutput`. """ - return await self._invoke(input, _models.LIST_HARNESS_VERSIONS, [], plugins) + async def list_harness_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListHarnessVersionsOutput: + return await self._invoke( + self._select_input(_models.LIST_HARNESS_VERSIONS, args, kwargs), + _models.LIST_HARNESS_VERSIONS, + [], + plugins, + ) + + @_overload async def list_memories( - self, input: ListMemoriesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListMemoriesInput | _models.ListMemoriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMemoriesOutput: ... + + @_overload + async def list_memories( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMemoriesInputDict], ) -> ListMemoriesOutput: """ Lists the available Amazon Bedrock AgentCore Memory resources in the current Amazon Web Services Region. Args: - input: - An instance of `ListMemoriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ListMemoriesOutput`. - """ - return await self._invoke(input, _models.LIST_MEMORIES, [], plugins) + Returns: + An instance of `ListMemoriesOutput`. + """ + + async def list_memories( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMemoriesOutput: + return await self._invoke( + self._select_input(_models.LIST_MEMORIES, args, kwargs), + _models.LIST_MEMORIES, + [], + plugins, + ) + + @_overload + async def list_oauth2_credential_providers( + self, + request: _models.ListOauth2CredentialProvidersInput + | _models.ListOauth2CredentialProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOauth2CredentialProvidersOutput: ... + @_overload async def list_oauth2_credential_providers( self, - input: ListOauth2CredentialProvidersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOauth2CredentialProvidersInputDict], ) -> ListOauth2CredentialProvidersOutput: """ Lists all OAuth2 credential providers in your account. Args: - input: - An instance of `ListOauth2CredentialProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3065,22 +5414,40 @@ async def list_oauth2_credential_providers( Returns: An instance of `ListOauth2CredentialProvidersOutput`. """ + + async def list_oauth2_credential_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOauth2CredentialProvidersOutput: return await self._invoke( - input, _models.LIST_OAUTH2_CREDENTIAL_PROVIDERS, [], plugins + self._select_input(_models.LIST_OAUTH2_CREDENTIAL_PROVIDERS, args, kwargs), + _models.LIST_OAUTH2_CREDENTIAL_PROVIDERS, + [], + plugins, ) + @_overload + async def list_online_evaluation_configs( + self, + request: _models.ListOnlineEvaluationConfigsInput + | _models.ListOnlineEvaluationConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOnlineEvaluationConfigsOutput: ... + + @_overload async def list_online_evaluation_configs( self, - input: ListOnlineEvaluationConfigsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOnlineEvaluationConfigsInputDict], ) -> ListOnlineEvaluationConfigsOutput: """ Lists all online evaluation configurations in the account, providing summary information about each configuration's status and settings. Args: - input: - An instance of `ListOnlineEvaluationConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3090,19 +5457,39 @@ async def list_online_evaluation_configs( Returns: An instance of `ListOnlineEvaluationConfigsOutput`. """ + + async def list_online_evaluation_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOnlineEvaluationConfigsOutput: return await self._invoke( - input, _models.LIST_ONLINE_EVALUATION_CONFIGS, [], plugins + self._select_input(_models.LIST_ONLINE_EVALUATION_CONFIGS, args, kwargs), + _models.LIST_ONLINE_EVALUATION_CONFIGS, + [], + plugins, ) + @_overload async def list_payment_connectors( - self, input: ListPaymentConnectorsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListPaymentConnectorsInput + | _models.ListPaymentConnectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentConnectorsOutput: ... + + @_overload + async def list_payment_connectors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentConnectorsInputDict], ) -> ListPaymentConnectorsOutput: """ Lists all payment connectors for a specified payment manager. Args: - input: - An instance of `ListPaymentConnectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3112,19 +5499,39 @@ async def list_payment_connectors( Returns: An instance of `ListPaymentConnectorsOutput`. """ - return await self._invoke(input, _models.LIST_PAYMENT_CONNECTORS, [], plugins) + async def list_payment_connectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentConnectorsOutput: + return await self._invoke( + self._select_input(_models.LIST_PAYMENT_CONNECTORS, args, kwargs), + _models.LIST_PAYMENT_CONNECTORS, + [], + plugins, + ) + + @_overload + async def list_payment_credential_providers( + self, + request: _models.ListPaymentCredentialProvidersInput + | _models.ListPaymentCredentialProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentCredentialProvidersOutput: ... + + @_overload async def list_payment_credential_providers( self, - input: ListPaymentCredentialProvidersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentCredentialProvidersInputDict], ) -> ListPaymentCredentialProvidersOutput: """ Lists all payment credential providers in the account. Args: - input: - An instance of `ListPaymentCredentialProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3134,19 +5541,39 @@ async def list_payment_credential_providers( Returns: An instance of `ListPaymentCredentialProvidersOutput`. """ + + async def list_payment_credential_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentCredentialProvidersOutput: return await self._invoke( - input, _models.LIST_PAYMENT_CREDENTIAL_PROVIDERS, [], plugins + self._select_input(_models.LIST_PAYMENT_CREDENTIAL_PROVIDERS, args, kwargs), + _models.LIST_PAYMENT_CREDENTIAL_PROVIDERS, + [], + plugins, ) + @_overload + async def list_payment_managers( + self, + request: _models.ListPaymentManagersInput + | _models.ListPaymentManagersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentManagersOutput: ... + + @_overload async def list_payment_managers( - self, input: ListPaymentManagersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentManagersInputDict], ) -> ListPaymentManagersOutput: """ Lists all payment managers in the account. Args: - input: - An instance of `ListPaymentManagersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3156,10 +5583,33 @@ async def list_payment_managers( Returns: An instance of `ListPaymentManagersOutput`. """ - return await self._invoke(input, _models.LIST_PAYMENT_MANAGERS, [], plugins) + async def list_payment_managers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentManagersOutput: + return await self._invoke( + self._select_input(_models.LIST_PAYMENT_MANAGERS, args, kwargs), + _models.LIST_PAYMENT_MANAGERS, + [], + plugins, + ) + + @_overload + async def list_policies( + self, + request: _models.ListPoliciesInput | _models.ListPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPoliciesOutput: ... + + @_overload async def list_policies( - self, input: ListPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPoliciesInputDict], ) -> ListPoliciesOutput: """ Retrieves a list of policies within the AgentCore Policy engine. This @@ -3168,8 +5618,6 @@ async def list_policies( filtered by policy engine or resource associations. Args: - input: - An instance of `ListPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3179,10 +5627,33 @@ async def list_policies( Returns: An instance of `ListPoliciesOutput`. """ - return await self._invoke(input, _models.LIST_POLICIES, [], plugins) + async def list_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPoliciesOutput: + return await self._invoke( + self._select_input(_models.LIST_POLICIES, args, kwargs), + _models.LIST_POLICIES, + [], + plugins, + ) + + @_overload async def list_policy_engines( - self, input: ListPolicyEnginesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListPolicyEnginesInput | _models.ListPolicyEnginesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyEnginesOutput: ... + + @_overload + async def list_policy_engines( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyEnginesInputDict], ) -> ListPolicyEnginesOutput: """ Retrieves a list of policy engines within the AgentCore Policy system. @@ -3191,8 +5662,6 @@ async def list_policy_engines( a container for related policies. Args: - input: - An instance of `ListPolicyEnginesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3202,10 +5671,34 @@ async def list_policy_engines( Returns: An instance of `ListPolicyEnginesOutput`. """ - return await self._invoke(input, _models.LIST_POLICY_ENGINES, [], plugins) + async def list_policy_engines( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyEnginesOutput: + return await self._invoke( + self._select_input(_models.LIST_POLICY_ENGINES, args, kwargs), + _models.LIST_POLICY_ENGINES, + [], + plugins, + ) + + @_overload + async def list_policy_engine_summaries( + self, + request: _models.ListPolicyEngineSummariesInput + | _models.ListPolicyEngineSummariesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyEngineSummariesOutput: ... + + @_overload async def list_policy_engine_summaries( - self, input: ListPolicyEngineSummariesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyEngineSummariesInputDict], ) -> ListPolicyEngineSummariesOutput: """ Retrieves a paginated list of metadata-only policy engine summaries @@ -3217,8 +5710,6 @@ async def list_policy_engine_summaries( where only metadata is needed. Args: - input: - An instance of `ListPolicyEngineSummariesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3228,14 +5719,34 @@ async def list_policy_engine_summaries( Returns: An instance of `ListPolicyEngineSummariesOutput`. """ + + async def list_policy_engine_summaries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyEngineSummariesOutput: return await self._invoke( - input, _models.LIST_POLICY_ENGINE_SUMMARIES, [], plugins + self._select_input(_models.LIST_POLICY_ENGINE_SUMMARIES, args, kwargs), + _models.LIST_POLICY_ENGINE_SUMMARIES, + [], + plugins, ) + @_overload + async def list_policy_generation_assets( + self, + request: _models.ListPolicyGenerationAssetsInput + | _models.ListPolicyGenerationAssetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyGenerationAssetsOutput: ... + + @_overload async def list_policy_generation_assets( self, - input: ListPolicyGenerationAssetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyGenerationAssetsInputDict], ) -> ListPolicyGenerationAssetsOutput: """ Retrieves a list of generated policy assets from a policy generation @@ -3245,8 +5756,6 @@ async def list_policy_generation_assets( multiple generated policy options. Args: - input: - An instance of `ListPolicyGenerationAssetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3256,12 +5765,34 @@ async def list_policy_generation_assets( Returns: An instance of `ListPolicyGenerationAssetsOutput`. """ + + async def list_policy_generation_assets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyGenerationAssetsOutput: return await self._invoke( - input, _models.LIST_POLICY_GENERATION_ASSETS, [], plugins + self._select_input(_models.LIST_POLICY_GENERATION_ASSETS, args, kwargs), + _models.LIST_POLICY_GENERATION_ASSETS, + [], + plugins, ) + @_overload + async def list_policy_generations( + self, + request: _models.ListPolicyGenerationsInput + | _models.ListPolicyGenerationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyGenerationsOutput: ... + + @_overload async def list_policy_generations( - self, input: ListPolicyGenerationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyGenerationsInputDict], ) -> ListPolicyGenerationsOutput: """ Retrieves a list of policy generation requests within the AgentCore @@ -3269,8 +5800,6 @@ async def list_policy_generations( track and manage AI-powered policy generation operations. Args: - input: - An instance of `ListPolicyGenerationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3280,12 +5809,34 @@ async def list_policy_generations( Returns: An instance of `ListPolicyGenerationsOutput`. """ - return await self._invoke(input, _models.LIST_POLICY_GENERATIONS, [], plugins) + async def list_policy_generations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyGenerationsOutput: + return await self._invoke( + self._select_input(_models.LIST_POLICY_GENERATIONS, args, kwargs), + _models.LIST_POLICY_GENERATIONS, + [], + plugins, + ) + + @_overload + async def list_policy_generation_summaries( + self, + request: _models.ListPolicyGenerationSummariesInput + | _models.ListPolicyGenerationSummariesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyGenerationSummariesOutput: ... + + @_overload async def list_policy_generation_summaries( self, - input: ListPolicyGenerationSummariesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyGenerationSummariesInputDict], ) -> ListPolicyGenerationSummariesOutput: """ Retrieves a paginated list of metadata-only policy generation summaries @@ -3297,8 +5848,6 @@ async def list_policy_generation_summaries( inventory, and integration scenarios where only metadata is needed. Args: - input: - An instance of `ListPolicyGenerationSummariesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3308,12 +5857,34 @@ async def list_policy_generation_summaries( Returns: An instance of `ListPolicyGenerationSummariesOutput`. """ + + async def list_policy_generation_summaries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyGenerationSummariesOutput: return await self._invoke( - input, _models.LIST_POLICY_GENERATION_SUMMARIES, [], plugins + self._select_input(_models.LIST_POLICY_GENERATION_SUMMARIES, args, kwargs), + _models.LIST_POLICY_GENERATION_SUMMARIES, + [], + plugins, ) + @_overload + async def list_policy_summaries( + self, + request: _models.ListPolicySummariesInput + | _models.ListPolicySummariesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicySummariesOutput: ... + + @_overload async def list_policy_summaries( - self, input: ListPolicySummariesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicySummariesInputDict], ) -> ListPolicySummariesOutput: """ Retrieves a paginated list of metadata-only policy summaries within a @@ -3325,8 +5896,6 @@ async def list_policy_summaries( and integration scenarios where only metadata is needed. Args: - input: - An instance of `ListPolicySummariesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3336,10 +5905,33 @@ async def list_policy_summaries( Returns: An instance of `ListPolicySummariesOutput`. """ - return await self._invoke(input, _models.LIST_POLICY_SUMMARIES, [], plugins) + async def list_policy_summaries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicySummariesOutput: + return await self._invoke( + self._select_input(_models.LIST_POLICY_SUMMARIES, args, kwargs), + _models.LIST_POLICY_SUMMARIES, + [], + plugins, + ) + + @_overload async def list_registries( - self, input: ListRegistriesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListRegistriesInput | _models.ListRegistriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRegistriesOutput: ... + + @_overload + async def list_registries( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRegistriesInputDict], ) -> ListRegistriesOutput: """ Lists all registries in the account. You can optionally filter results @@ -3347,8 +5939,6 @@ async def list_registries( `authorizerType` parameter. Args: - input: - An instance of `ListRegistriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3358,10 +5948,34 @@ async def list_registries( Returns: An instance of `ListRegistriesOutput`. """ - return await self._invoke(input, _models.LIST_REGISTRIES, [], plugins) + async def list_registries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRegistriesOutput: + return await self._invoke( + self._select_input(_models.LIST_REGISTRIES, args, kwargs), + _models.LIST_REGISTRIES, + [], + plugins, + ) + + @_overload + async def list_registry_records( + self, + request: _models.ListRegistryRecordsInput + | _models.ListRegistryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRegistryRecordsOutput: ... + + @_overload async def list_registry_records( - self, input: ListRegistryRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRegistryRecordsInputDict], ) -> ListRegistryRecordsOutput: """ Lists registry records within a registry. You can optionally filter @@ -3369,8 +5983,6 @@ async def list_registry_records( When multiple filters are specified, they are combined using AND logic. Args: - input: - An instance of `ListRegistryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3380,10 +5992,34 @@ async def list_registry_records( Returns: An instance of `ListRegistryRecordsOutput`. """ - return await self._invoke(input, _models.LIST_REGISTRY_RECORDS, [], plugins) + async def list_registry_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRegistryRecordsOutput: + return await self._invoke( + self._select_input(_models.LIST_REGISTRY_RECORDS, args, kwargs), + _models.LIST_REGISTRY_RECORDS, + [], + plugins, + ) + + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags associated with the specified resource. @@ -3393,8 +6029,6 @@ async def list_tags_for_resource( Browser Profile, Code Interpreter tool, and Gateway. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3404,17 +6038,39 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def list_workload_identities( + self, + request: _models.ListWorkloadIdentitiesInput + | _models.ListWorkloadIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListWorkloadIdentitiesOutput: ... + + @_overload async def list_workload_identities( - self, input: ListWorkloadIdentitiesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListWorkloadIdentitiesInputDict], ) -> ListWorkloadIdentitiesOutput: """ Lists all workload identities in your account. Args: - input: - An instance of `ListWorkloadIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3424,10 +6080,33 @@ async def list_workload_identities( Returns: An instance of `ListWorkloadIdentitiesOutput`. """ - return await self._invoke(input, _models.LIST_WORKLOAD_IDENTITIES, [], plugins) + async def list_workload_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListWorkloadIdentitiesOutput: + return await self._invoke( + self._select_input(_models.LIST_WORKLOAD_IDENTITIES, args, kwargs), + _models.LIST_WORKLOAD_IDENTITIES, + [], + plugins, + ) + + @_overload + async def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Creates or updates a resource-based policy for a resource with the @@ -3438,8 +6117,6 @@ async def put_resource_policy( Gateway. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3449,12 +6126,34 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def reset_token_vault_key_material( + self, + request: _models.ResetTokenVaultKeyMaterialInput + | _models.ResetTokenVaultKeyMaterialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetTokenVaultKeyMaterialOutput: ... + + @_overload async def reset_token_vault_key_material( self, - input: ResetTokenVaultKeyMaterialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetTokenVaultKeyMaterialInputDict], ) -> ResetTokenVaultKeyMaterialOutput: """ Resets the key material for a token vault whose customer managed KMS key @@ -3476,8 +6175,6 @@ async def reset_token_vault_key_material( deletion in KMS. To switch to a different key, use `SetTokenVaultCMK`. Args: - input: - An instance of `ResetTokenVaultKeyMaterialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3487,14 +6184,34 @@ async def reset_token_vault_key_material( Returns: An instance of `ResetTokenVaultKeyMaterialOutput`. """ + + async def reset_token_vault_key_material( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetTokenVaultKeyMaterialOutput: return await self._invoke( - input, _models.RESET_TOKEN_VAULT_KEY_MATERIAL, [], plugins + self._select_input(_models.RESET_TOKEN_VAULT_KEY_MATERIAL, args, kwargs), + _models.RESET_TOKEN_VAULT_KEY_MATERIAL, + [], + plugins, ) + @_overload + async def rotate_payment_connector_credentials( + self, + request: _models.RotatePaymentConnectorCredentialsInput + | _models.RotatePaymentConnectorCredentialsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RotatePaymentConnectorCredentialsOutput: ... + + @_overload async def rotate_payment_connector_credentials( self, - input: RotatePaymentConnectorCredentialsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RotatePaymentConnectorCredentialsInputDict], ) -> RotatePaymentConnectorCredentialsOutput: """ Replaces the service-managed credentials of a payment connector with @@ -3518,8 +6235,6 @@ async def rotate_payment_connector_credentials( outside AgentCore. Args: - input: - An instance of `RotatePaymentConnectorCredentialsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3529,19 +6244,40 @@ async def rotate_payment_connector_credentials( Returns: An instance of `RotatePaymentConnectorCredentialsOutput`. """ + + async def rotate_payment_connector_credentials( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RotatePaymentConnectorCredentialsOutput: return await self._invoke( - input, _models.ROTATE_PAYMENT_CONNECTOR_CREDENTIALS, [], plugins + self._select_input( + _models.ROTATE_PAYMENT_CONNECTOR_CREDENTIALS, args, kwargs + ), + _models.ROTATE_PAYMENT_CONNECTOR_CREDENTIALS, + [], + plugins, ) + @_overload + async def set_token_vault_cmk( + self, + request: _models.SetTokenVaultCMKInput | _models.SetTokenVaultCMKInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetTokenVaultCMKOutput: ... + + @_overload async def set_token_vault_cmk( - self, input: SetTokenVaultCMKInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetTokenVaultCMKInputDict], ) -> SetTokenVaultCMKOutput: """ Sets the customer master key (CMK) for a token vault. Args: - input: - An instance of `SetTokenVaultCMKInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3551,10 +6287,34 @@ async def set_token_vault_cmk( Returns: An instance of `SetTokenVaultCMKOutput`. """ - return await self._invoke(input, _models.SET_TOKEN_VAULT_CMK, [], plugins) + async def set_token_vault_cmk( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetTokenVaultCMKOutput: + return await self._invoke( + self._select_input(_models.SET_TOKEN_VAULT_CMK, args, kwargs), + _models.SET_TOKEN_VAULT_CMK, + [], + plugins, + ) + + @_overload async def start_policy_generation( - self, input: StartPolicyGenerationInput, plugins: list[Plugin] | None = None + self, + request: _models.StartPolicyGenerationInput + | _models.StartPolicyGenerationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartPolicyGenerationOutput: ... + + @_overload + async def start_policy_generation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartPolicyGenerationInputDict], ) -> StartPolicyGenerationOutput: """ Initiates the AI-powered generation of Dogwood policies from natural @@ -3573,8 +6333,6 @@ async def start_policy_generation( generated policies may require refinement for complex scenarios. Args: - input: - An instance of `StartPolicyGenerationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3584,12 +6342,34 @@ async def start_policy_generation( Returns: An instance of `StartPolicyGenerationOutput`. """ - return await self._invoke(input, _models.START_POLICY_GENERATION, [], plugins) + async def start_policy_generation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartPolicyGenerationOutput: + return await self._invoke( + self._select_input(_models.START_POLICY_GENERATION, args, kwargs), + _models.START_POLICY_GENERATION, + [], + plugins, + ) + + @_overload + async def submit_registry_record_for_approval( + self, + request: _models.SubmitRegistryRecordForApprovalInput + | _models.SubmitRegistryRecordForApprovalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubmitRegistryRecordForApprovalOutput: ... + + @_overload async def submit_registry_record_for_approval( self, - input: SubmitRegistryRecordForApprovalInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubmitRegistryRecordForApprovalInputDict], ) -> SubmitRegistryRecordForApprovalOutput: """ Submits a registry record for approval. This transitions the record from @@ -3597,8 +6377,6 @@ async def submit_registry_record_for_approval( auto-approval enabled, the record is automatically approved. Args: - input: - An instance of `SubmitRegistryRecordForApprovalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3608,12 +6386,36 @@ async def submit_registry_record_for_approval( Returns: An instance of `SubmitRegistryRecordForApprovalOutput`. """ + + async def submit_registry_record_for_approval( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubmitRegistryRecordForApprovalOutput: return await self._invoke( - input, _models.SUBMIT_REGISTRY_RECORD_FOR_APPROVAL, [], plugins + self._select_input( + _models.SUBMIT_REGISTRY_RECORD_FOR_APPROVAL, args, kwargs + ), + _models.SUBMIT_REGISTRY_RECORD_FOR_APPROVAL, + [], + plugins, ) + @_overload + async def synchronize_gateway_targets( + self, + request: _models.SynchronizeGatewayTargetsInput + | _models.SynchronizeGatewayTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SynchronizeGatewayTargetsOutput: ... + + @_overload async def synchronize_gateway_targets( - self, input: SynchronizeGatewayTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SynchronizeGatewayTargetsInputDict], ) -> SynchronizeGatewayTargetsOutput: """ Synchronizes the gateway targets by fetching the latest tool definitions @@ -3629,8 +6431,6 @@ async def synchronize_gateway_targets( `UpdateGatewayTarget` call to enable dynamic tool synchronization. Args: - input: - An instance of `SynchronizeGatewayTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3640,12 +6440,33 @@ async def synchronize_gateway_targets( Returns: An instance of `SynchronizeGatewayTargetsOutput`. """ + + async def synchronize_gateway_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SynchronizeGatewayTargetsOutput: return await self._invoke( - input, _models.SYNCHRONIZE_GATEWAY_TARGETS, [], plugins + self._select_input(_models.SYNCHRONIZE_GATEWAY_TARGETS, args, kwargs), + _models.SYNCHRONIZE_GATEWAY_TARGETS, + [], + plugins, ) + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associates the specified tags to a resource with the specified @@ -3658,8 +6479,6 @@ async def tag_resource( Browser Profile, Code Interpreter tool, and Gateway. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3669,10 +6488,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes the specified tags from the specified resource. @@ -3682,8 +6524,6 @@ async def untag_resource( Browser Profile, Code Interpreter tool, and Gateway. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3693,17 +6533,38 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_agent_runtime( + self, + request: _models.UpdateAgentRuntimeInput | _models.UpdateAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentRuntimeOutput: ... + + @_overload async def update_agent_runtime( - self, input: UpdateAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentRuntimeInputDict], ) -> UpdateAgentRuntimeOutput: """ Updates an existing Amazon Secure Agent. Args: - input: - An instance of `UpdateAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3713,19 +6574,39 @@ async def update_agent_runtime( Returns: An instance of `UpdateAgentRuntimeOutput`. """ - return await self._invoke(input, _models.UPDATE_AGENT_RUNTIME, [], plugins) + async def update_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentRuntimeOutput: + return await self._invoke( + self._select_input(_models.UPDATE_AGENT_RUNTIME, args, kwargs), + _models.UPDATE_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload + async def update_agent_runtime_endpoint( + self, + request: _models.UpdateAgentRuntimeEndpointInput + | _models.UpdateAgentRuntimeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentRuntimeEndpointOutput: ... + + @_overload async def update_agent_runtime_endpoint( self, - input: UpdateAgentRuntimeEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentRuntimeEndpointInputDict], ) -> UpdateAgentRuntimeEndpointOutput: """ Updates an existing Amazon Bedrock AgentCore Runtime endpoint. Args: - input: - An instance of `UpdateAgentRuntimeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3735,21 +6616,39 @@ async def update_agent_runtime_endpoint( Returns: An instance of `UpdateAgentRuntimeEndpointOutput`. """ + + async def update_agent_runtime_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentRuntimeEndpointOutput: return await self._invoke( - input, _models.UPDATE_AGENT_RUNTIME_ENDPOINT, [], plugins + self._select_input(_models.UPDATE_AGENT_RUNTIME_ENDPOINT, args, kwargs), + _models.UPDATE_AGENT_RUNTIME_ENDPOINT, + [], + plugins, ) + @_overload + async def update_api_key_credential_provider( + self, + request: _models.UpdateApiKeyCredentialProviderInput + | _models.UpdateApiKeyCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateApiKeyCredentialProviderOutput: ... + + @_overload async def update_api_key_credential_provider( self, - input: UpdateApiKeyCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateApiKeyCredentialProviderInputDict], ) -> UpdateApiKeyCredentialProviderOutput: """ Updates an existing API key credential provider. Args: - input: - An instance of `UpdateApiKeyCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3759,12 +6658,36 @@ async def update_api_key_credential_provider( Returns: An instance of `UpdateApiKeyCredentialProviderOutput`. """ + + async def update_api_key_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateApiKeyCredentialProviderOutput: return await self._invoke( - input, _models.UPDATE_API_KEY_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.UPDATE_API_KEY_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.UPDATE_API_KEY_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def update_capacity_provider( + self, + request: _models.UpdateCapacityProviderInput + | _models.UpdateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCapacityProviderOutput: ... + + @_overload async def update_capacity_provider( - self, input: UpdateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityProviderInputDict], ) -> UpdateCapacityProviderOutput: """ Updates a capacity provider. Only the description can be changed. To @@ -3772,8 +6695,6 @@ async def update_capacity_provider( storage, create a new capacity provider. Args: - input: - An instance of `UpdateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3783,10 +6704,34 @@ async def update_capacity_provider( Returns: An instance of `UpdateCapacityProviderOutput`. """ - return await self._invoke(input, _models.UPDATE_CAPACITY_PROVIDER, [], plugins) + async def update_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CAPACITY_PROVIDER, args, kwargs), + _models.UPDATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def update_configuration_bundle( + self, + request: _models.UpdateConfigurationBundleInput + | _models.UpdateConfigurationBundleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateConfigurationBundleOutput: ... + + @_overload async def update_configuration_bundle( - self, input: UpdateConfigurationBundleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateConfigurationBundleInputDict], ) -> UpdateConfigurationBundleOutput: """ Updates a configuration bundle by creating a new version with the @@ -3794,8 +6739,6 @@ async def update_configuration_bundle( history. Args: - input: - An instance of `UpdateConfigurationBundleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3805,19 +6748,39 @@ async def update_configuration_bundle( Returns: An instance of `UpdateConfigurationBundleOutput`. """ + + async def update_configuration_bundle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateConfigurationBundleOutput: return await self._invoke( - input, _models.UPDATE_CONFIGURATION_BUNDLE, [], plugins + self._select_input(_models.UPDATE_CONFIGURATION_BUNDLE, args, kwargs), + _models.UPDATE_CONFIGURATION_BUNDLE, + [], + plugins, ) + @_overload + async def update_consent_portal( + self, + request: _models.UpdateConsentPortalInput + | _models.UpdateConsentPortalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateConsentPortalOutput: ... + + @_overload async def update_consent_portal( - self, input: UpdateConsentPortalInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateConsentPortalInputDict], ) -> UpdateConsentPortalOutput: """ Updates an existing consent portal. Args: - input: - An instance of `UpdateConsentPortalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3827,10 +6790,33 @@ async def update_consent_portal( Returns: An instance of `UpdateConsentPortalOutput`. """ - return await self._invoke(input, _models.UPDATE_CONSENT_PORTAL, [], plugins) + async def update_consent_portal( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateConsentPortalOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CONSENT_PORTAL, args, kwargs), + _models.UPDATE_CONSENT_PORTAL, + [], + plugins, + ) + + @_overload + async def update_dataset( + self, + request: _models.UpdateDatasetInput | _models.UpdateDatasetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDatasetOutput: ... + + @_overload async def update_dataset( - self, input: UpdateDatasetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDatasetInputDict], ) -> UpdateDatasetOutput: """ Updates a dataset's metadata. Synchronous operation. Only provided @@ -3839,8 +6825,6 @@ async def update_dataset( `DeleteDatasetExamples`. Args: - input: - An instance of `UpdateDatasetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3850,10 +6834,34 @@ async def update_dataset( Returns: An instance of `UpdateDatasetOutput`. """ - return await self._invoke(input, _models.UPDATE_DATASET, [], plugins) + async def update_dataset( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDatasetOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DATASET, args, kwargs), + _models.UPDATE_DATASET, + [], + plugins, + ) + + @_overload + async def update_dataset_examples( + self, + request: _models.UpdateDatasetExamplesInput + | _models.UpdateDatasetExamplesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDatasetExamplesOutput: ... + + @_overload async def update_dataset_examples( - self, input: UpdateDatasetExamplesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDatasetExamplesInputDict], ) -> UpdateDatasetExamplesOutput: """ Updates multiple existing examples in-place on DRAFT. All examples are @@ -3862,8 +6870,6 @@ async def update_dataset_examples( (all-or-nothing semantics). Args: - input: - An instance of `UpdateDatasetExamplesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3873,10 +6879,33 @@ async def update_dataset_examples( Returns: An instance of `UpdateDatasetExamplesOutput`. """ - return await self._invoke(input, _models.UPDATE_DATASET_EXAMPLES, [], plugins) + async def update_dataset_examples( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDatasetExamplesOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DATASET_EXAMPLES, args, kwargs), + _models.UPDATE_DATASET_EXAMPLES, + [], + plugins, + ) + + @_overload + async def update_evaluator( + self, + request: _models.UpdateEvaluatorInput | _models.UpdateEvaluatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateEvaluatorOutput: ... + + @_overload async def update_evaluator( - self, input: UpdateEvaluatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateEvaluatorInputDict], ) -> UpdateEvaluatorOutput: """ Updates a custom evaluator's configuration, description, or evaluation @@ -3884,8 +6913,6 @@ async def update_evaluator( locked for modification. Args: - input: - An instance of `UpdateEvaluatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3895,10 +6922,33 @@ async def update_evaluator( Returns: An instance of `UpdateEvaluatorOutput`. """ - return await self._invoke(input, _models.UPDATE_EVALUATOR, [], plugins) + async def update_evaluator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateEvaluatorOutput: + return await self._invoke( + self._select_input(_models.UPDATE_EVALUATOR, args, kwargs), + _models.UPDATE_EVALUATOR, + [], + plugins, + ) + + @_overload + async def update_gateway( + self, + request: _models.UpdateGatewayInput | _models.UpdateGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayOutput: ... + + @_overload async def update_gateway( - self, input: UpdateGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayInputDict], ) -> UpdateGatewayOutput: """ Updates an existing gateway. @@ -3909,8 +6959,6 @@ async def update_gateway( [GetGateway](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_GetGateway.html). Args: - input: - An instance of `UpdateGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3920,18 +6968,40 @@ async def update_gateway( Returns: An instance of `UpdateGatewayOutput`. """ - return await self._invoke(input, _models.UPDATE_GATEWAY, [], plugins) + async def update_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GATEWAY, args, kwargs), + _models.UPDATE_GATEWAY, + [], + plugins, + ) + + @_overload + async def update_gateway_rate_limit( + self, + request: _models.UpdateGatewayRateLimitInput + | _models.UpdateGatewayRateLimitInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayRateLimitOutput: ... + + @_overload async def update_gateway_rate_limit( - self, input: UpdateGatewayRateLimitInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayRateLimitInputDict], ) -> UpdateGatewayRateLimitOutput: """ Updates the entries of a gateway rate limit. The dimension keys are immutable after creation. Args: - input: - An instance of `UpdateGatewayRateLimitInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3941,17 +7011,38 @@ async def update_gateway_rate_limit( Returns: An instance of `UpdateGatewayRateLimitOutput`. """ - return await self._invoke(input, _models.UPDATE_GATEWAY_RATE_LIMIT, [], plugins) + async def update_gateway_rate_limit( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayRateLimitOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GATEWAY_RATE_LIMIT, args, kwargs), + _models.UPDATE_GATEWAY_RATE_LIMIT, + [], + plugins, + ) + + @_overload async def update_gateway_rule( - self, input: UpdateGatewayRuleInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateGatewayRuleInput | _models.UpdateGatewayRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayRuleOutput: ... + + @_overload + async def update_gateway_rule( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayRuleInputDict], ) -> UpdateGatewayRuleOutput: """ Updates a gateway rule's priority, conditions, actions, or description. Args: - input: - An instance of `UpdateGatewayRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3961,10 +7052,34 @@ async def update_gateway_rule( Returns: An instance of `UpdateGatewayRuleOutput`. """ - return await self._invoke(input, _models.UPDATE_GATEWAY_RULE, [], plugins) + async def update_gateway_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayRuleOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GATEWAY_RULE, args, kwargs), + _models.UPDATE_GATEWAY_RULE, + [], + plugins, + ) + + @_overload + async def update_gateway_target( + self, + request: _models.UpdateGatewayTargetInput + | _models.UpdateGatewayTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayTargetOutput: ... + + @_overload async def update_gateway_target( - self, input: UpdateGatewayTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayTargetInputDict], ) -> UpdateGatewayTargetOutput: """ Updates an existing gateway target. @@ -3975,8 +7090,6 @@ async def update_gateway_target( fail before updating the target. Args: - input: - An instance of `UpdateGatewayTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3986,17 +7099,38 @@ async def update_gateway_target( Returns: An instance of `UpdateGatewayTargetOutput`. """ - return await self._invoke(input, _models.UPDATE_GATEWAY_TARGET, [], plugins) + async def update_gateway_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayTargetOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GATEWAY_TARGET, args, kwargs), + _models.UPDATE_GATEWAY_TARGET, + [], + plugins, + ) + + @_overload + async def update_harness( + self, + request: _models.UpdateHarnessInput | _models.UpdateHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateHarnessOutput: ... + + @_overload async def update_harness( - self, input: UpdateHarnessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateHarnessInputDict], ) -> UpdateHarnessOutput: """ Operation to update a harness. Args: - input: - An instance of `UpdateHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4006,17 +7140,39 @@ async def update_harness( Returns: An instance of `UpdateHarnessOutput`. """ - return await self._invoke(input, _models.UPDATE_HARNESS, [], plugins) + async def update_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateHarnessOutput: + return await self._invoke( + self._select_input(_models.UPDATE_HARNESS, args, kwargs), + _models.UPDATE_HARNESS, + [], + plugins, + ) + + @_overload + async def update_harness_endpoint( + self, + request: _models.UpdateHarnessEndpointInput + | _models.UpdateHarnessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateHarnessEndpointOutput: ... + + @_overload async def update_harness_endpoint( - self, input: UpdateHarnessEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateHarnessEndpointInputDict], ) -> UpdateHarnessEndpointOutput: """ Operation to update a harness endpoint. Args: - input: - An instance of `UpdateHarnessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4026,17 +7182,38 @@ async def update_harness_endpoint( Returns: An instance of `UpdateHarnessEndpointOutput`. """ - return await self._invoke(input, _models.UPDATE_HARNESS_ENDPOINT, [], plugins) + async def update_harness_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateHarnessEndpointOutput: + return await self._invoke( + self._select_input(_models.UPDATE_HARNESS_ENDPOINT, args, kwargs), + _models.UPDATE_HARNESS_ENDPOINT, + [], + plugins, + ) + + @_overload + async def update_memory( + self, + request: _models.UpdateMemoryInput | _models.UpdateMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMemoryOutput: ... + + @_overload async def update_memory( - self, input: UpdateMemoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMemoryInputDict], ) -> UpdateMemoryOutput: """ Update an Amazon Bedrock AgentCore Memory resource memory. Args: - input: - An instance of `UpdateMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4046,19 +7223,39 @@ async def update_memory( Returns: An instance of `UpdateMemoryOutput`. """ - return await self._invoke(input, _models.UPDATE_MEMORY, [], plugins) + async def update_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMemoryOutput: + return await self._invoke( + self._select_input(_models.UPDATE_MEMORY, args, kwargs), + _models.UPDATE_MEMORY, + [], + plugins, + ) + + @_overload + async def update_oauth2_credential_provider( + self, + request: _models.UpdateOauth2CredentialProviderInput + | _models.UpdateOauth2CredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOauth2CredentialProviderOutput: ... + + @_overload async def update_oauth2_credential_provider( self, - input: UpdateOauth2CredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOauth2CredentialProviderInputDict], ) -> UpdateOauth2CredentialProviderOutput: """ Updates an existing OAuth2 credential provider. Args: - input: - An instance of `UpdateOauth2CredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4068,14 +7265,34 @@ async def update_oauth2_credential_provider( Returns: An instance of `UpdateOauth2CredentialProviderOutput`. """ + + async def update_oauth2_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOauth2CredentialProviderOutput: return await self._invoke( - input, _models.UPDATE_OAUTH2_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.UPDATE_OAUTH2_CREDENTIAL_PROVIDER, args, kwargs), + _models.UPDATE_OAUTH2_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def update_online_evaluation_config( + self, + request: _models.UpdateOnlineEvaluationConfigInput + | _models.UpdateOnlineEvaluationConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOnlineEvaluationConfigOutput: ... + + @_overload async def update_online_evaluation_config( self, - input: UpdateOnlineEvaluationConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOnlineEvaluationConfigInputDict], ) -> UpdateOnlineEvaluationConfigOutput: """ Updates an online evaluation configuration's settings, including rules, @@ -4083,8 +7300,6 @@ async def update_online_evaluation_config( immediately for ongoing evaluations. Args: - input: - An instance of `UpdateOnlineEvaluationConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4094,20 +7309,40 @@ async def update_online_evaluation_config( Returns: An instance of `UpdateOnlineEvaluationConfigOutput`. """ + + async def update_online_evaluation_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOnlineEvaluationConfigOutput: return await self._invoke( - input, _models.UPDATE_ONLINE_EVALUATION_CONFIG, [], plugins + self._select_input(_models.UPDATE_ONLINE_EVALUATION_CONFIG, args, kwargs), + _models.UPDATE_ONLINE_EVALUATION_CONFIG, + [], + plugins, ) + @_overload + async def update_payment_connector( + self, + request: _models.UpdatePaymentConnectorInput + | _models.UpdatePaymentConnectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePaymentConnectorOutput: ... + + @_overload async def update_payment_connector( - self, input: UpdatePaymentConnectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePaymentConnectorInputDict], ) -> UpdatePaymentConnectorOutput: """ Updates an existing payment connector. This operation uses PATCH semantics, so you only need to specify the fields you want to change. Args: - input: - An instance of `UpdatePaymentConnectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4117,20 +7352,40 @@ async def update_payment_connector( Returns: An instance of `UpdatePaymentConnectorOutput`. """ - return await self._invoke(input, _models.UPDATE_PAYMENT_CONNECTOR, [], plugins) + async def update_payment_connector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePaymentConnectorOutput: + return await self._invoke( + self._select_input(_models.UPDATE_PAYMENT_CONNECTOR, args, kwargs), + _models.UPDATE_PAYMENT_CONNECTOR, + [], + plugins, + ) + + @_overload async def update_payment_credential_provider( self, - input: UpdatePaymentCredentialProviderInput, + request: _models.UpdatePaymentCredentialProviderInput + | _models.UpdatePaymentCredentialProviderInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdatePaymentCredentialProviderOutput: ... + + @_overload + async def update_payment_credential_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePaymentCredentialProviderInputDict], ) -> UpdatePaymentCredentialProviderOutput: """ Updates an existing payment credential provider with new authentication credentials. Args: - input: - An instance of `UpdatePaymentCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4140,20 +7395,42 @@ async def update_payment_credential_provider( Returns: An instance of `UpdatePaymentCredentialProviderOutput`. """ + + async def update_payment_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePaymentCredentialProviderOutput: return await self._invoke( - input, _models.UPDATE_PAYMENT_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.UPDATE_PAYMENT_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.UPDATE_PAYMENT_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + async def update_payment_manager( + self, + request: _models.UpdatePaymentManagerInput + | _models.UpdatePaymentManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePaymentManagerOutput: ... + + @_overload async def update_payment_manager( - self, input: UpdatePaymentManagerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePaymentManagerInputDict], ) -> UpdatePaymentManagerOutput: """ Updates an existing payment manager. This operation uses PATCH semantics, so you only need to specify the fields you want to change. Args: - input: - An instance of `UpdatePaymentManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4163,10 +7440,33 @@ async def update_payment_manager( Returns: An instance of `UpdatePaymentManagerOutput`. """ - return await self._invoke(input, _models.UPDATE_PAYMENT_MANAGER, [], plugins) + async def update_payment_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePaymentManagerOutput: + return await self._invoke( + self._select_input(_models.UPDATE_PAYMENT_MANAGER, args, kwargs), + _models.UPDATE_PAYMENT_MANAGER, + [], + plugins, + ) + + @_overload + async def update_policy( + self, + request: _models.UpdatePolicyInput | _models.UpdatePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePolicyOutput: ... + + @_overload async def update_policy( - self, input: UpdatePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePolicyInputDict], ) -> UpdatePolicyOutput: """ Updates an existing policy within the AgentCore Policy system. This @@ -4186,8 +7486,6 @@ async def update_policy( sessions. To resume, you must start a new session with a new session ID. Args: - input: - An instance of `UpdatePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4197,10 +7495,33 @@ async def update_policy( Returns: An instance of `UpdatePolicyOutput`. """ - return await self._invoke(input, _models.UPDATE_POLICY, [], plugins) + async def update_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePolicyOutput: + return await self._invoke( + self._select_input(_models.UPDATE_POLICY, args, kwargs), + _models.UPDATE_POLICY, + [], + plugins, + ) + + @_overload + async def update_policy_engine( + self, + request: _models.UpdatePolicyEngineInput | _models.UpdatePolicyEngineInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePolicyEngineOutput: ... + + @_overload async def update_policy_engine( - self, input: UpdatePolicyEngineInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePolicyEngineInputDict], ) -> UpdatePolicyEngineOutput: """ Updates an existing policy engine within the AgentCore Policy system. @@ -4210,8 +7531,6 @@ async def update_policy_engine( completion. Args: - input: - An instance of `UpdatePolicyEngineInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4221,18 +7540,39 @@ async def update_policy_engine( Returns: An instance of `UpdatePolicyEngineOutput`. """ - return await self._invoke(input, _models.UPDATE_POLICY_ENGINE, [], plugins) + async def update_policy_engine( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePolicyEngineOutput: + return await self._invoke( + self._select_input(_models.UPDATE_POLICY_ENGINE, args, kwargs), + _models.UPDATE_POLICY_ENGINE, + [], + plugins, + ) + + @_overload async def update_registry( - self, input: UpdateRegistryInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateRegistryInput | _models.UpdateRegistryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRegistryOutput: ... + + @_overload + async def update_registry( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRegistryInputDict], ) -> UpdateRegistryOutput: """ Updates an existing registry. This operation uses PATCH semantics, so you only need to specify the fields you want to change. Args: - input: - An instance of `UpdateRegistryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4242,10 +7582,34 @@ async def update_registry( Returns: An instance of `UpdateRegistryOutput`. """ - return await self._invoke(input, _models.UPDATE_REGISTRY, [], plugins) + async def update_registry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRegistryOutput: + return await self._invoke( + self._select_input(_models.UPDATE_REGISTRY, args, kwargs), + _models.UPDATE_REGISTRY, + [], + plugins, + ) + + @_overload + async def update_registry_record( + self, + request: _models.UpdateRegistryRecordInput + | _models.UpdateRegistryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRegistryRecordOutput: ... + + @_overload async def update_registry_record( - self, input: UpdateRegistryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRegistryRecordInputDict], ) -> UpdateRegistryRecordOutput: """ Updates an existing registry record. This operation uses PATCH @@ -4253,8 +7617,6 @@ async def update_registry_record( The update is processed asynchronously and returns HTTP 202 Accepted. Args: - input: - An instance of `UpdateRegistryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4264,20 +7626,40 @@ async def update_registry_record( Returns: An instance of `UpdateRegistryRecordOutput`. """ - return await self._invoke(input, _models.UPDATE_REGISTRY_RECORD, [], plugins) + async def update_registry_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRegistryRecordOutput: + return await self._invoke( + self._select_input(_models.UPDATE_REGISTRY_RECORD, args, kwargs), + _models.UPDATE_REGISTRY_RECORD, + [], + plugins, + ) + + @_overload + async def update_registry_record_status( + self, + request: _models.UpdateRegistryRecordStatusInput + | _models.UpdateRegistryRecordStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRegistryRecordStatusOutput: ... + + @_overload async def update_registry_record_status( self, - input: UpdateRegistryRecordStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRegistryRecordStatusInputDict], ) -> UpdateRegistryRecordStatusOutput: """ Updates the status of a registry record. Use this operation to approve, reject, or deprecate a registry record. Args: - input: - An instance of `UpdateRegistryRecordStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4287,19 +7669,39 @@ async def update_registry_record_status( Returns: An instance of `UpdateRegistryRecordStatusOutput`. """ + + async def update_registry_record_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRegistryRecordStatusOutput: return await self._invoke( - input, _models.UPDATE_REGISTRY_RECORD_STATUS, [], plugins + self._select_input(_models.UPDATE_REGISTRY_RECORD_STATUS, args, kwargs), + _models.UPDATE_REGISTRY_RECORD_STATUS, + [], + plugins, ) + @_overload + async def update_workload_identity( + self, + request: _models.UpdateWorkloadIdentityInput + | _models.UpdateWorkloadIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateWorkloadIdentityOutput: ... + + @_overload async def update_workload_identity( - self, input: UpdateWorkloadIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateWorkloadIdentityInputDict], ) -> UpdateWorkloadIdentityOutput: """ Updates an existing workload identity. Args: - input: - An instance of `UpdateWorkloadIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4309,7 +7711,16 @@ async def update_workload_identity( Returns: An instance of `UpdateWorkloadIdentityOutput`. """ - return await self._invoke(input, _models.UPDATE_WORKLOAD_IDENTITY, [], plugins) + + async def update_workload_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateWorkloadIdentityOutput: + return await self._invoke( + self._select_input(_models.UPDATE_WORKLOAD_IDENTITY, args, kwargs), + _models.UPDATE_WORKLOAD_IDENTITY, + [], + plugins, + ) async def _new_config(self) -> AsyncBedrockAgentCoreControlConfig: return await AsyncBedrockAgentCoreControlConfig.resolve() diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/client.py b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/client.py index b4c93f9dc..a2eabc95f 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/client.py +++ b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,349 +20,177 @@ if TYPE_CHECKING: from .models import ( - AddDatasetExamplesInput, AddDatasetExamplesOutput, - BatchPutGatewayRateLimitsInput, BatchPutGatewayRateLimitsOutput, - CreateAgentRuntimeEndpointInput, CreateAgentRuntimeEndpointOutput, - CreateAgentRuntimeInput, CreateAgentRuntimeOutput, - CreateApiKeyCredentialProviderInput, CreateApiKeyCredentialProviderOutput, - CreateBrowserInput, CreateBrowserOutput, - CreateBrowserProfileInput, CreateBrowserProfileOutput, - CreateCapacityProviderInput, CreateCapacityProviderOutput, - CreateCodeInterpreterInput, CreateCodeInterpreterOutput, - CreateConfigurationBundleInput, CreateConfigurationBundleOutput, - CreateConsentPortalInput, CreateConsentPortalOutput, - CreateDatasetInput, CreateDatasetOutput, - CreateDatasetVersionInput, CreateDatasetVersionOutput, - CreateEvaluatorInput, CreateEvaluatorOutput, - CreateGatewayInput, CreateGatewayOutput, - CreateGatewayRateLimitInput, CreateGatewayRateLimitOutput, - CreateGatewayRuleInput, CreateGatewayRuleOutput, - CreateGatewayTargetInput, CreateGatewayTargetOutput, - CreateHarnessEndpointInput, CreateHarnessEndpointOutput, - CreateHarnessInput, CreateHarnessOutput, - CreateMemoryInput, CreateMemoryOutput, - CreateOauth2CredentialProviderInput, CreateOauth2CredentialProviderOutput, - CreateOnlineEvaluationConfigInput, CreateOnlineEvaluationConfigOutput, - CreatePaymentConnectorInput, CreatePaymentConnectorOutput, - CreatePaymentCredentialProviderInput, CreatePaymentCredentialProviderOutput, - CreatePaymentManagerInput, CreatePaymentManagerOutput, - CreatePolicyEngineInput, CreatePolicyEngineOutput, - CreatePolicyInput, CreatePolicyOutput, - CreateRegistryInput, CreateRegistryOutput, - CreateRegistryRecordInput, CreateRegistryRecordOutput, - CreateWorkloadIdentityInput, CreateWorkloadIdentityOutput, - DeleteAgentRuntimeEndpointInput, DeleteAgentRuntimeEndpointOutput, - DeleteAgentRuntimeInput, DeleteAgentRuntimeOutput, - DeleteApiKeyCredentialProviderInput, DeleteApiKeyCredentialProviderOutput, - DeleteBrowserInput, DeleteBrowserOutput, - DeleteBrowserProfileInput, DeleteBrowserProfileOutput, - DeleteCapacityProviderInput, DeleteCapacityProviderOutput, - DeleteCodeInterpreterInput, DeleteCodeInterpreterOutput, - DeleteConfigurationBundleInput, DeleteConfigurationBundleOutput, - DeleteConsentPortalInput, DeleteConsentPortalOutput, - DeleteDatasetExamplesInput, DeleteDatasetExamplesOutput, - DeleteDatasetInput, DeleteDatasetOutput, - DeleteEvaluatorInput, DeleteEvaluatorOutput, - DeleteGatewayInput, DeleteGatewayOutput, - DeleteGatewayRateLimitInput, DeleteGatewayRateLimitOutput, - DeleteGatewayRuleInput, DeleteGatewayRuleOutput, - DeleteGatewayTargetInput, DeleteGatewayTargetOutput, - DeleteHarnessEndpointInput, DeleteHarnessEndpointOutput, - DeleteHarnessInput, DeleteHarnessOutput, - DeleteMemoryInput, DeleteMemoryOutput, - DeleteOauth2CredentialProviderInput, DeleteOauth2CredentialProviderOutput, - DeleteOnlineEvaluationConfigInput, DeleteOnlineEvaluationConfigOutput, - DeletePaymentConnectorInput, DeletePaymentConnectorOutput, - DeletePaymentCredentialProviderInput, DeletePaymentCredentialProviderOutput, - DeletePaymentManagerInput, DeletePaymentManagerOutput, - DeletePolicyEngineInput, DeletePolicyEngineOutput, - DeletePolicyInput, DeletePolicyOutput, - DeleteRegistryInput, DeleteRegistryOutput, - DeleteRegistryRecordInput, DeleteRegistryRecordOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteWorkloadIdentityInput, DeleteWorkloadIdentityOutput, - GetAgentRuntimeEndpointInput, GetAgentRuntimeEndpointOutput, - GetAgentRuntimeInput, GetAgentRuntimeOutput, - GetApiKeyCredentialProviderInput, GetApiKeyCredentialProviderOutput, - GetBrowserInput, GetBrowserOutput, - GetBrowserProfileInput, GetBrowserProfileOutput, - GetCapacityProviderInput, GetCapacityProviderOutput, - GetCodeInterpreterInput, GetCodeInterpreterOutput, - GetConfigurationBundleInput, GetConfigurationBundleOutput, - GetConfigurationBundleVersionInput, GetConfigurationBundleVersionOutput, - GetConsentPortalInput, GetConsentPortalOutput, - GetDatasetInput, GetDatasetOutput, - GetEvaluatorInput, GetEvaluatorOutput, - GetGatewayInput, GetGatewayOutput, - GetGatewayRateLimitInput, GetGatewayRateLimitOutput, - GetGatewayRuleInput, GetGatewayRuleOutput, - GetGatewayTargetInput, GetGatewayTargetOutput, - GetHarnessEndpointInput, GetHarnessEndpointOutput, - GetHarnessInput, GetHarnessOutput, - GetMemoryInput, GetMemoryOutput, - GetOauth2CredentialProviderInput, GetOauth2CredentialProviderOutput, - GetOnlineEvaluationConfigInput, GetOnlineEvaluationConfigOutput, - GetPaymentConnectorInput, GetPaymentConnectorOutput, - GetPaymentCredentialProviderInput, GetPaymentCredentialProviderOutput, - GetPaymentManagerInput, GetPaymentManagerOutput, - GetPolicyEngineInput, GetPolicyEngineOutput, - GetPolicyEngineSummaryInput, GetPolicyEngineSummaryOutput, - GetPolicyGenerationInput, GetPolicyGenerationOutput, - GetPolicyGenerationSummaryInput, GetPolicyGenerationSummaryOutput, - GetPolicyInput, GetPolicyOutput, - GetPolicySummaryInput, GetPolicySummaryOutput, - GetRegistryInput, GetRegistryOutput, - GetRegistryRecordInput, GetRegistryRecordOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetTokenVaultInput, GetTokenVaultOutput, - GetWorkloadIdentityInput, GetWorkloadIdentityOutput, - ListAgentRuntimeEndpointsInput, ListAgentRuntimeEndpointsOutput, - ListAgentRuntimeVersionsByCapacityProviderInput, ListAgentRuntimeVersionsByCapacityProviderOutput, - ListAgentRuntimeVersionsInput, ListAgentRuntimeVersionsOutput, - ListAgentRuntimesInput, ListAgentRuntimesOutput, - ListApiKeyCredentialProvidersInput, ListApiKeyCredentialProvidersOutput, - ListBrowserProfilesInput, ListBrowserProfilesOutput, - ListBrowsersInput, ListBrowsersOutput, - ListCapacityProvidersInput, ListCapacityProvidersOutput, - ListCodeInterpretersInput, ListCodeInterpretersOutput, - ListConfigurationBundleVersionsInput, ListConfigurationBundleVersionsOutput, - ListConfigurationBundlesInput, ListConfigurationBundlesOutput, - ListConsentPortalsInput, ListConsentPortalsOutput, - ListDatasetExamplesInput, ListDatasetExamplesOutput, - ListDatasetVersionsInput, ListDatasetVersionsOutput, - ListDatasetsInput, ListDatasetsOutput, - ListEvaluatorsInput, ListEvaluatorsOutput, - ListGatewayRateLimitsInput, ListGatewayRateLimitsOutput, - ListGatewayRulesInput, ListGatewayRulesOutput, - ListGatewayTargetsInput, ListGatewayTargetsOutput, - ListGatewaysInput, ListGatewaysOutput, - ListHarnessEndpointsInput, ListHarnessEndpointsOutput, - ListHarnessVersionsInput, ListHarnessVersionsOutput, - ListHarnessesInput, ListHarnessesOutput, - ListMemoriesInput, ListMemoriesOutput, - ListOauth2CredentialProvidersInput, ListOauth2CredentialProvidersOutput, - ListOnlineEvaluationConfigsInput, ListOnlineEvaluationConfigsOutput, - ListPaymentConnectorsInput, ListPaymentConnectorsOutput, - ListPaymentCredentialProvidersInput, ListPaymentCredentialProvidersOutput, - ListPaymentManagersInput, ListPaymentManagersOutput, - ListPoliciesInput, ListPoliciesOutput, - ListPolicyEngineSummariesInput, ListPolicyEngineSummariesOutput, - ListPolicyEnginesInput, ListPolicyEnginesOutput, - ListPolicyGenerationAssetsInput, ListPolicyGenerationAssetsOutput, - ListPolicyGenerationSummariesInput, ListPolicyGenerationSummariesOutput, - ListPolicyGenerationsInput, ListPolicyGenerationsOutput, - ListPolicySummariesInput, ListPolicySummariesOutput, - ListRegistriesInput, ListRegistriesOutput, - ListRegistryRecordsInput, ListRegistryRecordsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListWorkloadIdentitiesInput, ListWorkloadIdentitiesOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - ResetTokenVaultKeyMaterialInput, ResetTokenVaultKeyMaterialOutput, - RotatePaymentConnectorCredentialsInput, RotatePaymentConnectorCredentialsOutput, - SetTokenVaultCMKInput, SetTokenVaultCMKOutput, - StartPolicyGenerationInput, StartPolicyGenerationOutput, - SubmitRegistryRecordForApprovalInput, SubmitRegistryRecordForApprovalOutput, - SynchronizeGatewayTargetsInput, SynchronizeGatewayTargetsOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAgentRuntimeEndpointInput, UpdateAgentRuntimeEndpointOutput, - UpdateAgentRuntimeInput, UpdateAgentRuntimeOutput, - UpdateApiKeyCredentialProviderInput, UpdateApiKeyCredentialProviderOutput, - UpdateCapacityProviderInput, UpdateCapacityProviderOutput, - UpdateConfigurationBundleInput, UpdateConfigurationBundleOutput, - UpdateConsentPortalInput, UpdateConsentPortalOutput, - UpdateDatasetExamplesInput, UpdateDatasetExamplesOutput, - UpdateDatasetInput, UpdateDatasetOutput, - UpdateEvaluatorInput, UpdateEvaluatorOutput, - UpdateGatewayInput, UpdateGatewayOutput, - UpdateGatewayRateLimitInput, UpdateGatewayRateLimitOutput, - UpdateGatewayRuleInput, UpdateGatewayRuleOutput, - UpdateGatewayTargetInput, UpdateGatewayTargetOutput, - UpdateHarnessEndpointInput, UpdateHarnessEndpointOutput, - UpdateHarnessInput, UpdateHarnessOutput, - UpdateMemoryInput, UpdateMemoryOutput, - UpdateOauth2CredentialProviderInput, UpdateOauth2CredentialProviderOutput, - UpdateOnlineEvaluationConfigInput, UpdateOnlineEvaluationConfigOutput, - UpdatePaymentConnectorInput, UpdatePaymentConnectorOutput, - UpdatePaymentCredentialProviderInput, UpdatePaymentCredentialProviderOutput, - UpdatePaymentManagerInput, UpdatePaymentManagerOutput, - UpdatePolicyEngineInput, UpdatePolicyEngineOutput, - UpdatePolicyInput, UpdatePolicyOutput, - UpdateRegistryInput, UpdateRegistryOutput, - UpdateRegistryRecordInput, UpdateRegistryRecordOutput, - UpdateRegistryRecordStatusInput, UpdateRegistryRecordStatusOutput, - UpdateWorkloadIdentityInput, UpdateWorkloadIdentityOutput, ) @@ -377,10 +205,24 @@ class BedrockAgentCoreControlClient(Client[BedrockAgentCoreControlConfig]): Services resources. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def add_dataset_examples( - self, input: AddDatasetExamplesInput, plugins: list[Plugin] | None = None + self, + request: _models.AddDatasetExamplesInput | _models.AddDatasetExamplesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddDatasetExamplesOutput: ... + + @_overload + def add_dataset_examples( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddDatasetExamplesInputDict], ) -> AddDatasetExamplesOutput: """ Adds examples to the dataset's DRAFT. All examples are validated @@ -389,8 +231,6 @@ def add_dataset_examples( semantics). Args: - input: - An instance of `AddDatasetExamplesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -400,10 +240,34 @@ def add_dataset_examples( Returns: An instance of `AddDatasetExamplesOutput`. """ - return self._invoke(input, _models.ADD_DATASET_EXAMPLES, [], plugins) + def add_dataset_examples( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddDatasetExamplesOutput: + return self._invoke( + self._select_input(_models.ADD_DATASET_EXAMPLES, args, kwargs), + _models.ADD_DATASET_EXAMPLES, + [], + plugins, + ) + + @_overload + def batch_put_gateway_rate_limits( + self, + request: _models.BatchPutGatewayRateLimitsInput + | _models.BatchPutGatewayRateLimitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchPutGatewayRateLimitsOutput: ... + + @_overload def batch_put_gateway_rate_limits( - self, input: BatchPutGatewayRateLimitsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchPutGatewayRateLimitsInputDict], ) -> BatchPutGatewayRateLimitsOutput: """ Atomically creates or updates multiple rate limits for a gateway. The @@ -412,8 +276,6 @@ def batch_put_gateway_rate_limits( changes. Retry the request after resolving the issue. Args: - input: - An instance of `BatchPutGatewayRateLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -423,17 +285,38 @@ def batch_put_gateway_rate_limits( Returns: An instance of `BatchPutGatewayRateLimitsOutput`. """ - return self._invoke(input, _models.BATCH_PUT_GATEWAY_RATE_LIMITS, [], plugins) + def batch_put_gateway_rate_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchPutGatewayRateLimitsOutput: + return self._invoke( + self._select_input(_models.BATCH_PUT_GATEWAY_RATE_LIMITS, args, kwargs), + _models.BATCH_PUT_GATEWAY_RATE_LIMITS, + [], + plugins, + ) + + @_overload + def create_agent_runtime( + self, + request: _models.CreateAgentRuntimeInput | _models.CreateAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentRuntimeOutput: ... + + @_overload def create_agent_runtime( - self, input: CreateAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentRuntimeInputDict], ) -> CreateAgentRuntimeOutput: """ Creates an Amazon Bedrock AgentCore Runtime. Args: - input: - An instance of `CreateAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -443,19 +326,39 @@ def create_agent_runtime( Returns: An instance of `CreateAgentRuntimeOutput`. """ - return self._invoke(input, _models.CREATE_AGENT_RUNTIME, [], plugins) + def create_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentRuntimeOutput: + return self._invoke( + self._select_input(_models.CREATE_AGENT_RUNTIME, args, kwargs), + _models.CREATE_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload + def create_agent_runtime_endpoint( + self, + request: _models.CreateAgentRuntimeEndpointInput + | _models.CreateAgentRuntimeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAgentRuntimeEndpointOutput: ... + + @_overload def create_agent_runtime_endpoint( self, - input: CreateAgentRuntimeEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAgentRuntimeEndpointInputDict], ) -> CreateAgentRuntimeEndpointOutput: """ Creates an AgentCore Runtime endpoint. Args: - input: - An instance of `CreateAgentRuntimeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -465,19 +368,39 @@ def create_agent_runtime_endpoint( Returns: An instance of `CreateAgentRuntimeEndpointOutput`. """ - return self._invoke(input, _models.CREATE_AGENT_RUNTIME_ENDPOINT, [], plugins) + def create_agent_runtime_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAgentRuntimeEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_AGENT_RUNTIME_ENDPOINT, args, kwargs), + _models.CREATE_AGENT_RUNTIME_ENDPOINT, + [], + plugins, + ) + + @_overload + def create_api_key_credential_provider( + self, + request: _models.CreateApiKeyCredentialProviderInput + | _models.CreateApiKeyCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateApiKeyCredentialProviderOutput: ... + + @_overload def create_api_key_credential_provider( self, - input: CreateApiKeyCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateApiKeyCredentialProviderInputDict], ) -> CreateApiKeyCredentialProviderOutput: """ Creates a new API key credential provider. Args: - input: - An instance of `CreateApiKeyCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -487,19 +410,40 @@ def create_api_key_credential_provider( Returns: An instance of `CreateApiKeyCredentialProviderOutput`. """ + + def create_api_key_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateApiKeyCredentialProviderOutput: return self._invoke( - input, _models.CREATE_API_KEY_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.CREATE_API_KEY_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.CREATE_API_KEY_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + def create_browser( + self, + request: _models.CreateBrowserInput | _models.CreateBrowserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBrowserOutput: ... + + @_overload def create_browser( - self, input: CreateBrowserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBrowserInputDict], ) -> CreateBrowserOutput: """ Creates a custom browser. Args: - input: - An instance of `CreateBrowserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -509,10 +453,34 @@ def create_browser( Returns: An instance of `CreateBrowserOutput`. """ - return self._invoke(input, _models.CREATE_BROWSER, [], plugins) + def create_browser( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBrowserOutput: + return self._invoke( + self._select_input(_models.CREATE_BROWSER, args, kwargs), + _models.CREATE_BROWSER, + [], + plugins, + ) + + @_overload + def create_browser_profile( + self, + request: _models.CreateBrowserProfileInput + | _models.CreateBrowserProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBrowserProfileOutput: ... + + @_overload def create_browser_profile( - self, input: CreateBrowserProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBrowserProfileInputDict], ) -> CreateBrowserProfileOutput: """ Creates a browser profile in Amazon Bedrock AgentCore. A browser profile @@ -521,8 +489,6 @@ def create_browser_profile( and reused in subsequent sessions. Args: - input: - An instance of `CreateBrowserProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -532,10 +498,34 @@ def create_browser_profile( Returns: An instance of `CreateBrowserProfileOutput`. """ - return self._invoke(input, _models.CREATE_BROWSER_PROFILE, [], plugins) + def create_browser_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBrowserProfileOutput: + return self._invoke( + self._select_input(_models.CREATE_BROWSER_PROFILE, args, kwargs), + _models.CREATE_BROWSER_PROFILE, + [], + plugins, + ) + + @_overload + def create_capacity_provider( + self, + request: _models.CreateCapacityProviderInput + | _models.CreateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityProviderOutput: ... + + @_overload def create_capacity_provider( - self, input: CreateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityProviderInputDict], ) -> CreateCapacityProviderOutput: """ Creates a capacity provider. A capacity provider defines the Amazon EC2 @@ -548,8 +538,6 @@ def create_capacity_provider( transitions to `READY` when it is available for use. Args: - input: - An instance of `CreateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -559,17 +547,39 @@ def create_capacity_provider( Returns: An instance of `CreateCapacityProviderOutput`. """ - return self._invoke(input, _models.CREATE_CAPACITY_PROVIDER, [], plugins) + def create_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityProviderOutput: + return self._invoke( + self._select_input(_models.CREATE_CAPACITY_PROVIDER, args, kwargs), + _models.CREATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def create_code_interpreter( + self, + request: _models.CreateCodeInterpreterInput + | _models.CreateCodeInterpreterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCodeInterpreterOutput: ... + + @_overload def create_code_interpreter( - self, input: CreateCodeInterpreterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCodeInterpreterInputDict], ) -> CreateCodeInterpreterOutput: """ Creates a custom code interpreter. Args: - input: - An instance of `CreateCodeInterpreterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -579,10 +589,34 @@ def create_code_interpreter( Returns: An instance of `CreateCodeInterpreterOutput`. """ - return self._invoke(input, _models.CREATE_CODE_INTERPRETER, [], plugins) + def create_code_interpreter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCodeInterpreterOutput: + return self._invoke( + self._select_input(_models.CREATE_CODE_INTERPRETER, args, kwargs), + _models.CREATE_CODE_INTERPRETER, + [], + plugins, + ) + + @_overload + def create_configuration_bundle( + self, + request: _models.CreateConfigurationBundleInput + | _models.CreateConfigurationBundleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateConfigurationBundleOutput: ... + + @_overload def create_configuration_bundle( - self, input: CreateConfigurationBundleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateConfigurationBundleInputDict], ) -> CreateConfigurationBundleOutput: """ Creates a new configuration bundle resource. A configuration bundle @@ -590,8 +624,6 @@ def create_configuration_bundle( workflows. Args: - input: - An instance of `CreateConfigurationBundleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -601,17 +633,39 @@ def create_configuration_bundle( Returns: An instance of `CreateConfigurationBundleOutput`. """ - return self._invoke(input, _models.CREATE_CONFIGURATION_BUNDLE, [], plugins) + def create_configuration_bundle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateConfigurationBundleOutput: + return self._invoke( + self._select_input(_models.CREATE_CONFIGURATION_BUNDLE, args, kwargs), + _models.CREATE_CONFIGURATION_BUNDLE, + [], + plugins, + ) + + @_overload def create_consent_portal( - self, input: CreateConsentPortalInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateConsentPortalInput + | _models.CreateConsentPortalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateConsentPortalOutput: ... + + @_overload + def create_consent_portal( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateConsentPortalInputDict], ) -> CreateConsentPortalOutput: """ Creates a new consent portal. Args: - input: - An instance of `CreateConsentPortalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -621,10 +675,33 @@ def create_consent_portal( Returns: An instance of `CreateConsentPortalOutput`. """ - return self._invoke(input, _models.CREATE_CONSENT_PORTAL, [], plugins) + def create_consent_portal( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateConsentPortalOutput: + return self._invoke( + self._select_input(_models.CREATE_CONSENT_PORTAL, args, kwargs), + _models.CREATE_CONSENT_PORTAL, + [], + plugins, + ) + + @_overload + def create_dataset( + self, + request: _models.CreateDatasetInput | _models.CreateDatasetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDatasetOutput: ... + + @_overload def create_dataset( - self, input: CreateDatasetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDatasetInputDict], ) -> CreateDatasetOutput: """ Creates a new dataset resource asynchronously. Returns immediately with @@ -632,8 +709,6 @@ def create_dataset( CREATE_FAILED. Args: - input: - An instance of `CreateDatasetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -643,10 +718,34 @@ def create_dataset( Returns: An instance of `CreateDatasetOutput`. """ - return self._invoke(input, _models.CREATE_DATASET, [], plugins) + def create_dataset( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDatasetOutput: + return self._invoke( + self._select_input(_models.CREATE_DATASET, args, kwargs), + _models.CREATE_DATASET, + [], + plugins, + ) + + @_overload + def create_dataset_version( + self, + request: _models.CreateDatasetVersionInput + | _models.CreateDatasetVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDatasetVersionOutput: ... + + @_overload def create_dataset_version( - self, input: CreateDatasetVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDatasetVersionInputDict], ) -> CreateDatasetVersionOutput: """ Publishes the current DRAFT as a new numbered version. The DRAFT is @@ -655,8 +754,6 @@ def create_dataset_version( ACTIVE or UPDATE_FAILED. Args: - input: - An instance of `CreateDatasetVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -666,10 +763,33 @@ def create_dataset_version( Returns: An instance of `CreateDatasetVersionOutput`. """ - return self._invoke(input, _models.CREATE_DATASET_VERSION, [], plugins) + def create_dataset_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDatasetVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_DATASET_VERSION, args, kwargs), + _models.CREATE_DATASET_VERSION, + [], + plugins, + ) + + @_overload + def create_evaluator( + self, + request: _models.CreateEvaluatorInput | _models.CreateEvaluatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEvaluatorOutput: ... + + @_overload def create_evaluator( - self, input: CreateEvaluatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEvaluatorInputDict], ) -> CreateEvaluatorOutput: """ Creates a custom evaluator for agent quality assessment. Custom @@ -679,8 +799,6 @@ def create_evaluator( performance at tool call, trace, or session levels. Args: - input: - An instance of `CreateEvaluatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -690,10 +808,33 @@ def create_evaluator( Returns: An instance of `CreateEvaluatorOutput`. """ - return self._invoke(input, _models.CREATE_EVALUATOR, [], plugins) + def create_evaluator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEvaluatorOutput: + return self._invoke( + self._select_input(_models.CREATE_EVALUATOR, args, kwargs), + _models.CREATE_EVALUATOR, + [], + plugins, + ) + + @_overload + def create_gateway( + self, + request: _models.CreateGatewayInput | _models.CreateGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayOutput: ... + + @_overload def create_gateway( - self, input: CreateGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayInputDict], ) -> CreateGatewayOutput: """ Creates a gateway for Amazon Bedrock Agent. A gateway serves as an @@ -703,8 +844,6 @@ def create_gateway( `authorizerConfiguration`. Args: - input: - An instance of `CreateGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -714,10 +853,34 @@ def create_gateway( Returns: An instance of `CreateGatewayOutput`. """ - return self._invoke(input, _models.CREATE_GATEWAY, [], plugins) + def create_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayOutput: + return self._invoke( + self._select_input(_models.CREATE_GATEWAY, args, kwargs), + _models.CREATE_GATEWAY, + [], + plugins, + ) + + @_overload + def create_gateway_rate_limit( + self, + request: _models.CreateGatewayRateLimitInput + | _models.CreateGatewayRateLimitInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayRateLimitOutput: ... + + @_overload def create_gateway_rate_limit( - self, input: CreateGatewayRateLimitInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayRateLimitInputDict], ) -> CreateGatewayRateLimitOutput: """ Creates a rate limit for a gateway. Rate limits define throttling rules @@ -725,8 +888,6 @@ def create_gateway_rate_limit( and concurrent connections through the gateway. Args: - input: - An instance of `CreateGatewayRateLimitInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -736,10 +897,33 @@ def create_gateway_rate_limit( Returns: An instance of `CreateGatewayRateLimitOutput`. """ - return self._invoke(input, _models.CREATE_GATEWAY_RATE_LIMIT, [], plugins) + def create_gateway_rate_limit( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayRateLimitOutput: + return self._invoke( + self._select_input(_models.CREATE_GATEWAY_RATE_LIMIT, args, kwargs), + _models.CREATE_GATEWAY_RATE_LIMIT, + [], + plugins, + ) + + @_overload + def create_gateway_rule( + self, + request: _models.CreateGatewayRuleInput | _models.CreateGatewayRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayRuleOutput: ... + + @_overload def create_gateway_rule( - self, input: CreateGatewayRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayRuleInputDict], ) -> CreateGatewayRuleOutput: """ Creates a rule for a gateway. Rules define conditions and actions that @@ -747,8 +931,6 @@ def create_gateway_rule( including principal-based access control and path-based routing. Args: - input: - An instance of `CreateGatewayRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -758,18 +940,40 @@ def create_gateway_rule( Returns: An instance of `CreateGatewayRuleOutput`. """ - return self._invoke(input, _models.CREATE_GATEWAY_RULE, [], plugins) + def create_gateway_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayRuleOutput: + return self._invoke( + self._select_input(_models.CREATE_GATEWAY_RULE, args, kwargs), + _models.CREATE_GATEWAY_RULE, + [], + plugins, + ) + + @_overload + def create_gateway_target( + self, + request: _models.CreateGatewayTargetInput + | _models.CreateGatewayTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayTargetOutput: ... + + @_overload def create_gateway_target( - self, input: CreateGatewayTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayTargetInputDict], ) -> CreateGatewayTargetOutput: """ Creates a target for a gateway. A target defines an endpoint that the gateway can connect to. Args: - input: - An instance of `CreateGatewayTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -779,17 +983,38 @@ def create_gateway_target( Returns: An instance of `CreateGatewayTargetOutput`. """ - return self._invoke(input, _models.CREATE_GATEWAY_TARGET, [], plugins) + def create_gateway_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayTargetOutput: + return self._invoke( + self._select_input(_models.CREATE_GATEWAY_TARGET, args, kwargs), + _models.CREATE_GATEWAY_TARGET, + [], + plugins, + ) + + @_overload def create_harness( - self, input: CreateHarnessInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateHarnessInput | _models.CreateHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateHarnessOutput: ... + + @_overload + def create_harness( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateHarnessInputDict], ) -> CreateHarnessOutput: """ Operation to create a harness. Args: - input: - An instance of `CreateHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -799,17 +1024,39 @@ def create_harness( Returns: An instance of `CreateHarnessOutput`. """ - return self._invoke(input, _models.CREATE_HARNESS, [], plugins) + def create_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateHarnessOutput: + return self._invoke( + self._select_input(_models.CREATE_HARNESS, args, kwargs), + _models.CREATE_HARNESS, + [], + plugins, + ) + + @_overload + def create_harness_endpoint( + self, + request: _models.CreateHarnessEndpointInput + | _models.CreateHarnessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateHarnessEndpointOutput: ... + + @_overload def create_harness_endpoint( - self, input: CreateHarnessEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateHarnessEndpointInputDict], ) -> CreateHarnessEndpointOutput: """ Operation to create a harness endpoint. Args: - input: - An instance of `CreateHarnessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -819,17 +1066,38 @@ def create_harness_endpoint( Returns: An instance of `CreateHarnessEndpointOutput`. """ - return self._invoke(input, _models.CREATE_HARNESS_ENDPOINT, [], plugins) + def create_harness_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateHarnessEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_HARNESS_ENDPOINT, args, kwargs), + _models.CREATE_HARNESS_ENDPOINT, + [], + plugins, + ) + + @_overload + def create_memory( + self, + request: _models.CreateMemoryInput | _models.CreateMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMemoryOutput: ... + + @_overload def create_memory( - self, input: CreateMemoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMemoryInputDict], ) -> CreateMemoryOutput: """ Creates a new Amazon Bedrock AgentCore Memory resource. Args: - input: - An instance of `CreateMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -839,19 +1107,39 @@ def create_memory( Returns: An instance of `CreateMemoryOutput`. """ - return self._invoke(input, _models.CREATE_MEMORY, [], plugins) + def create_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMemoryOutput: + return self._invoke( + self._select_input(_models.CREATE_MEMORY, args, kwargs), + _models.CREATE_MEMORY, + [], + plugins, + ) + + @_overload + def create_oauth2_credential_provider( + self, + request: _models.CreateOauth2CredentialProviderInput + | _models.CreateOauth2CredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOauth2CredentialProviderOutput: ... + + @_overload def create_oauth2_credential_provider( self, - input: CreateOauth2CredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOauth2CredentialProviderInputDict], ) -> CreateOauth2CredentialProviderOutput: """ Creates a new OAuth2 credential provider. Args: - input: - An instance of `CreateOauth2CredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -861,14 +1149,34 @@ def create_oauth2_credential_provider( Returns: An instance of `CreateOauth2CredentialProviderOutput`. """ + + def create_oauth2_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOauth2CredentialProviderOutput: return self._invoke( - input, _models.CREATE_OAUTH2_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.CREATE_OAUTH2_CREDENTIAL_PROVIDER, args, kwargs), + _models.CREATE_OAUTH2_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload def create_online_evaluation_config( self, - input: CreateOnlineEvaluationConfigInput, + request: _models.CreateOnlineEvaluationConfigInput + | _models.CreateOnlineEvaluationConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateOnlineEvaluationConfigOutput: ... + + @_overload + def create_online_evaluation_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOnlineEvaluationConfigInputDict], ) -> CreateOnlineEvaluationConfigOutput: """ Creates an online evaluation configuration for continuous monitoring of @@ -877,8 +1185,6 @@ def create_online_evaluation_config( agent quality in production. Args: - input: - An instance of `CreateOnlineEvaluationConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -888,10 +1194,34 @@ def create_online_evaluation_config( Returns: An instance of `CreateOnlineEvaluationConfigOutput`. """ - return self._invoke(input, _models.CREATE_ONLINE_EVALUATION_CONFIG, [], plugins) + def create_online_evaluation_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOnlineEvaluationConfigOutput: + return self._invoke( + self._select_input(_models.CREATE_ONLINE_EVALUATION_CONFIG, args, kwargs), + _models.CREATE_ONLINE_EVALUATION_CONFIG, + [], + plugins, + ) + + @_overload + def create_payment_connector( + self, + request: _models.CreatePaymentConnectorInput + | _models.CreatePaymentConnectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentConnectorOutput: ... + + @_overload def create_payment_connector( - self, input: CreatePaymentConnectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentConnectorInputDict], ) -> CreatePaymentConnectorOutput: """ Creates a new payment connector for a payment manager. A payment @@ -899,8 +1229,6 @@ def create_payment_connector( processing capabilities. Args: - input: - An instance of `CreatePaymentConnectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -910,12 +1238,34 @@ def create_payment_connector( Returns: An instance of `CreatePaymentConnectorOutput`. """ - return self._invoke(input, _models.CREATE_PAYMENT_CONNECTOR, [], plugins) + def create_payment_connector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentConnectorOutput: + return self._invoke( + self._select_input(_models.CREATE_PAYMENT_CONNECTOR, args, kwargs), + _models.CREATE_PAYMENT_CONNECTOR, + [], + plugins, + ) + + @_overload + def create_payment_credential_provider( + self, + request: _models.CreatePaymentCredentialProviderInput + | _models.CreatePaymentCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentCredentialProviderOutput: ... + + @_overload def create_payment_credential_provider( self, - input: CreatePaymentCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentCredentialProviderInputDict], ) -> CreatePaymentCredentialProviderOutput: """ Creates a new payment credential provider for storing authentication @@ -923,8 +1273,6 @@ def create_payment_credential_provider( payment providers. Args: - input: - An instance of `CreatePaymentCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -934,12 +1282,36 @@ def create_payment_credential_provider( Returns: An instance of `CreatePaymentCredentialProviderOutput`. """ + + def create_payment_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentCredentialProviderOutput: return self._invoke( - input, _models.CREATE_PAYMENT_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.CREATE_PAYMENT_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.CREATE_PAYMENT_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + def create_payment_manager( + self, + request: _models.CreatePaymentManagerInput + | _models.CreatePaymentManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentManagerOutput: ... + + @_overload def create_payment_manager( - self, input: CreatePaymentManagerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentManagerInputDict], ) -> CreatePaymentManagerOutput: """ Creates a new payment manager in your Amazon Web Services account. A @@ -951,8 +1323,6 @@ def create_payment_manager( `authorizerConfiguration`. Args: - input: - An instance of `CreatePaymentManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -962,10 +1332,33 @@ def create_payment_manager( Returns: An instance of `CreatePaymentManagerOutput`. """ - return self._invoke(input, _models.CREATE_PAYMENT_MANAGER, [], plugins) + def create_payment_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentManagerOutput: + return self._invoke( + self._select_input(_models.CREATE_PAYMENT_MANAGER, args, kwargs), + _models.CREATE_PAYMENT_MANAGER, + [], + plugins, + ) + + @_overload + def create_policy( + self, + request: _models.CreatePolicyInput | _models.CreatePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePolicyOutput: ... + + @_overload def create_policy( - self, input: CreatePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePolicyInputDict], ) -> CreatePolicyOutput: """ Creates a policy within the AgentCore Policy system. Policies provide @@ -989,8 +1382,6 @@ def create_policy( sessions. To resume, you must start a new session with a new session ID. Args: - input: - An instance of `CreatePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1000,10 +1391,33 @@ def create_policy( Returns: An instance of `CreatePolicyOutput`. """ - return self._invoke(input, _models.CREATE_POLICY, [], plugins) + def create_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePolicyOutput: + return self._invoke( + self._select_input(_models.CREATE_POLICY, args, kwargs), + _models.CREATE_POLICY, + [], + plugins, + ) + + @_overload + def create_policy_engine( + self, + request: _models.CreatePolicyEngineInput | _models.CreatePolicyEngineInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePolicyEngineOutput: ... + + @_overload def create_policy_engine( - self, input: CreatePolicyEngineInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePolicyEngineInputDict], ) -> CreatePolicyEngineOutput: """ Creates a new policy engine within the AgentCore Policy system. A policy @@ -1017,8 +1431,6 @@ def create_policy_engine( operation to poll the `status` field to track completion. Args: - input: - An instance of `CreatePolicyEngineInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1028,10 +1440,33 @@ def create_policy_engine( Returns: An instance of `CreatePolicyEngineOutput`. """ - return self._invoke(input, _models.CREATE_POLICY_ENGINE, [], plugins) + def create_policy_engine( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePolicyEngineOutput: + return self._invoke( + self._select_input(_models.CREATE_POLICY_ENGINE, args, kwargs), + _models.CREATE_POLICY_ENGINE, + [], + plugins, + ) + + @_overload + def create_registry( + self, + request: _models.CreateRegistryInput | _models.CreateRegistryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRegistryOutput: ... + + @_overload def create_registry( - self, input: CreateRegistryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRegistryInputDict], ) -> CreateRegistryOutput: """ Creates a new registry in your Amazon Web Services account. A registry @@ -1043,8 +1478,6 @@ def create_registry( `authorizerConfiguration`. Args: - input: - An instance of `CreateRegistryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1054,10 +1487,34 @@ def create_registry( Returns: An instance of `CreateRegistryOutput`. """ - return self._invoke(input, _models.CREATE_REGISTRY, [], plugins) + def create_registry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRegistryOutput: + return self._invoke( + self._select_input(_models.CREATE_REGISTRY, args, kwargs), + _models.CREATE_REGISTRY, + [], + plugins, + ) + + @_overload + def create_registry_record( + self, + request: _models.CreateRegistryRecordInput + | _models.CreateRegistryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRegistryRecordOutput: ... + + @_overload def create_registry_record( - self, input: CreateRegistryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRegistryRecordInputDict], ) -> CreateRegistryRecordOutput: """ Creates a new registry record within the specified registry. A registry @@ -1068,8 +1525,6 @@ def create_registry_record( The record is processed asynchronously and returns HTTP 202 Accepted. Args: - input: - An instance of `CreateRegistryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1079,17 +1534,39 @@ def create_registry_record( Returns: An instance of `CreateRegistryRecordOutput`. """ - return self._invoke(input, _models.CREATE_REGISTRY_RECORD, [], plugins) + def create_registry_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRegistryRecordOutput: + return self._invoke( + self._select_input(_models.CREATE_REGISTRY_RECORD, args, kwargs), + _models.CREATE_REGISTRY_RECORD, + [], + plugins, + ) + + @_overload + def create_workload_identity( + self, + request: _models.CreateWorkloadIdentityInput + | _models.CreateWorkloadIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateWorkloadIdentityOutput: ... + + @_overload def create_workload_identity( - self, input: CreateWorkloadIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateWorkloadIdentityInputDict], ) -> CreateWorkloadIdentityOutput: """ Creates a new workload identity. Args: - input: - An instance of `CreateWorkloadIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1099,18 +1576,39 @@ def create_workload_identity( Returns: An instance of `CreateWorkloadIdentityOutput`. """ - return self._invoke(input, _models.CREATE_WORKLOAD_IDENTITY, [], plugins) + def create_workload_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateWorkloadIdentityOutput: + return self._invoke( + self._select_input(_models.CREATE_WORKLOAD_IDENTITY, args, kwargs), + _models.CREATE_WORKLOAD_IDENTITY, + [], + plugins, + ) + + @_overload + def delete_agent_runtime( + self, + request: _models.DeleteAgentRuntimeInput | _models.DeleteAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAgentRuntimeOutput: ... + + @_overload def delete_agent_runtime( - self, input: DeleteAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentRuntimeInputDict], ) -> DeleteAgentRuntimeOutput: """ Deletes an Amazon Bedrock AgentCore Runtime, or a single version of an AgentCore Runtime when you provide the version qualifier. Args: - input: - An instance of `DeleteAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1120,19 +1618,39 @@ def delete_agent_runtime( Returns: An instance of `DeleteAgentRuntimeOutput`. """ - return self._invoke(input, _models.DELETE_AGENT_RUNTIME, [], plugins) + def delete_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentRuntimeOutput: + return self._invoke( + self._select_input(_models.DELETE_AGENT_RUNTIME, args, kwargs), + _models.DELETE_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload def delete_agent_runtime_endpoint( self, - input: DeleteAgentRuntimeEndpointInput, + request: _models.DeleteAgentRuntimeEndpointInput + | _models.DeleteAgentRuntimeEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteAgentRuntimeEndpointOutput: ... + + @_overload + def delete_agent_runtime_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAgentRuntimeEndpointInputDict], ) -> DeleteAgentRuntimeEndpointOutput: """ Deletes an AgentCore Runtime endpoint. Args: - input: - An instance of `DeleteAgentRuntimeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1142,19 +1660,39 @@ def delete_agent_runtime_endpoint( Returns: An instance of `DeleteAgentRuntimeEndpointOutput`. """ - return self._invoke(input, _models.DELETE_AGENT_RUNTIME_ENDPOINT, [], plugins) + def delete_agent_runtime_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAgentRuntimeEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_AGENT_RUNTIME_ENDPOINT, args, kwargs), + _models.DELETE_AGENT_RUNTIME_ENDPOINT, + [], + plugins, + ) + + @_overload + def delete_api_key_credential_provider( + self, + request: _models.DeleteApiKeyCredentialProviderInput + | _models.DeleteApiKeyCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteApiKeyCredentialProviderOutput: ... + + @_overload def delete_api_key_credential_provider( self, - input: DeleteApiKeyCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteApiKeyCredentialProviderInputDict], ) -> DeleteApiKeyCredentialProviderOutput: """ Deletes an API key credential provider. Args: - input: - An instance of `DeleteApiKeyCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1164,19 +1702,40 @@ def delete_api_key_credential_provider( Returns: An instance of `DeleteApiKeyCredentialProviderOutput`. """ + + def delete_api_key_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteApiKeyCredentialProviderOutput: return self._invoke( - input, _models.DELETE_API_KEY_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.DELETE_API_KEY_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.DELETE_API_KEY_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload def delete_browser( - self, input: DeleteBrowserInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteBrowserInput | _models.DeleteBrowserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBrowserOutput: ... + + @_overload + def delete_browser( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBrowserInputDict], ) -> DeleteBrowserOutput: """ Deletes a custom browser. Args: - input: - An instance of `DeleteBrowserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1186,17 +1745,39 @@ def delete_browser( Returns: An instance of `DeleteBrowserOutput`. """ - return self._invoke(input, _models.DELETE_BROWSER, [], plugins) + def delete_browser( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBrowserOutput: + return self._invoke( + self._select_input(_models.DELETE_BROWSER, args, kwargs), + _models.DELETE_BROWSER, + [], + plugins, + ) + + @_overload + def delete_browser_profile( + self, + request: _models.DeleteBrowserProfileInput + | _models.DeleteBrowserProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBrowserProfileOutput: ... + + @_overload def delete_browser_profile( - self, input: DeleteBrowserProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBrowserProfileInputDict], ) -> DeleteBrowserProfileOutput: """ Deletes a browser profile. Args: - input: - An instance of `DeleteBrowserProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1206,10 +1787,34 @@ def delete_browser_profile( Returns: An instance of `DeleteBrowserProfileOutput`. """ - return self._invoke(input, _models.DELETE_BROWSER_PROFILE, [], plugins) + def delete_browser_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBrowserProfileOutput: + return self._invoke( + self._select_input(_models.DELETE_BROWSER_PROFILE, args, kwargs), + _models.DELETE_BROWSER_PROFILE, + [], + plugins, + ) + + @_overload + def delete_capacity_provider( + self, + request: _models.DeleteCapacityProviderInput + | _models.DeleteCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCapacityProviderOutput: ... + + @_overload def delete_capacity_provider( - self, input: DeleteCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityProviderInputDict], ) -> DeleteCapacityProviderOutput: """ Deletes a capacity provider. Before you delete a capacity provider, @@ -1217,8 +1822,6 @@ def delete_capacity_provider( If any references remain, the operation fails. Args: - input: - An instance of `DeleteCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1228,17 +1831,39 @@ def delete_capacity_provider( Returns: An instance of `DeleteCapacityProviderOutput`. """ - return self._invoke(input, _models.DELETE_CAPACITY_PROVIDER, [], plugins) + def delete_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityProviderOutput: + return self._invoke( + self._select_input(_models.DELETE_CAPACITY_PROVIDER, args, kwargs), + _models.DELETE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def delete_code_interpreter( + self, + request: _models.DeleteCodeInterpreterInput + | _models.DeleteCodeInterpreterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCodeInterpreterOutput: ... + + @_overload def delete_code_interpreter( - self, input: DeleteCodeInterpreterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCodeInterpreterInputDict], ) -> DeleteCodeInterpreterOutput: """ Deletes a custom code interpreter. Args: - input: - An instance of `DeleteCodeInterpreterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1248,17 +1873,39 @@ def delete_code_interpreter( Returns: An instance of `DeleteCodeInterpreterOutput`. """ - return self._invoke(input, _models.DELETE_CODE_INTERPRETER, [], plugins) + def delete_code_interpreter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCodeInterpreterOutput: + return self._invoke( + self._select_input(_models.DELETE_CODE_INTERPRETER, args, kwargs), + _models.DELETE_CODE_INTERPRETER, + [], + plugins, + ) + + @_overload + def delete_configuration_bundle( + self, + request: _models.DeleteConfigurationBundleInput + | _models.DeleteConfigurationBundleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConfigurationBundleOutput: ... + + @_overload def delete_configuration_bundle( - self, input: DeleteConfigurationBundleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConfigurationBundleInputDict], ) -> DeleteConfigurationBundleOutput: """ Deletes a configuration bundle and all of its versions. Args: - input: - An instance of `DeleteConfigurationBundleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1268,17 +1915,39 @@ def delete_configuration_bundle( Returns: An instance of `DeleteConfigurationBundleOutput`. """ - return self._invoke(input, _models.DELETE_CONFIGURATION_BUNDLE, [], plugins) + def delete_configuration_bundle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConfigurationBundleOutput: + return self._invoke( + self._select_input(_models.DELETE_CONFIGURATION_BUNDLE, args, kwargs), + _models.DELETE_CONFIGURATION_BUNDLE, + [], + plugins, + ) + + @_overload + def delete_consent_portal( + self, + request: _models.DeleteConsentPortalInput + | _models.DeleteConsentPortalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConsentPortalOutput: ... + + @_overload def delete_consent_portal( - self, input: DeleteConsentPortalInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConsentPortalInputDict], ) -> DeleteConsentPortalOutput: """ Deletes a consent portal. Args: - input: - An instance of `DeleteConsentPortalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1288,10 +1957,33 @@ def delete_consent_portal( Returns: An instance of `DeleteConsentPortalOutput`. """ - return self._invoke(input, _models.DELETE_CONSENT_PORTAL, [], plugins) + def delete_consent_portal( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConsentPortalOutput: + return self._invoke( + self._select_input(_models.DELETE_CONSENT_PORTAL, args, kwargs), + _models.DELETE_CONSENT_PORTAL, + [], + plugins, + ) + + @_overload + def delete_dataset( + self, + request: _models.DeleteDatasetInput | _models.DeleteDatasetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDatasetOutput: ... + + @_overload def delete_dataset( - self, input: DeleteDatasetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDatasetInputDict], ) -> DeleteDatasetOutput: """ Deletes a dataset version or an entire dataset asynchronously. If @@ -1299,8 +1991,6 @@ def delete_dataset( itself. If provided, deletes only that specific version. Args: - input: - An instance of `DeleteDatasetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1310,10 +2000,34 @@ def delete_dataset( Returns: An instance of `DeleteDatasetOutput`. """ - return self._invoke(input, _models.DELETE_DATASET, [], plugins) + def delete_dataset( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDatasetOutput: + return self._invoke( + self._select_input(_models.DELETE_DATASET, args, kwargs), + _models.DELETE_DATASET, + [], + plugins, + ) + + @_overload + def delete_dataset_examples( + self, + request: _models.DeleteDatasetExamplesInput + | _models.DeleteDatasetExamplesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDatasetExamplesOutput: ... + + @_overload def delete_dataset_examples( - self, input: DeleteDatasetExamplesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDatasetExamplesInputDict], ) -> DeleteDatasetExamplesOutput: """ Deletes specific examples by ID from DRAFT. All example IDs are @@ -1321,8 +2035,6 @@ def delete_dataset_examples( the entire batch is rejected (all-or-nothing semantics). Args: - input: - An instance of `DeleteDatasetExamplesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1332,10 +2044,33 @@ def delete_dataset_examples( Returns: An instance of `DeleteDatasetExamplesOutput`. """ - return self._invoke(input, _models.DELETE_DATASET_EXAMPLES, [], plugins) + def delete_dataset_examples( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDatasetExamplesOutput: + return self._invoke( + self._select_input(_models.DELETE_DATASET_EXAMPLES, args, kwargs), + _models.DELETE_DATASET_EXAMPLES, + [], + plugins, + ) + + @_overload def delete_evaluator( - self, input: DeleteEvaluatorInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteEvaluatorInput | _models.DeleteEvaluatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEvaluatorOutput: ... + + @_overload + def delete_evaluator( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEvaluatorInputDict], ) -> DeleteEvaluatorOutput: """ Deletes a custom evaluator. Builtin evaluators cannot be deleted. The @@ -1343,8 +2078,6 @@ def delete_evaluator( configurations. Args: - input: - An instance of `DeleteEvaluatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1354,17 +2087,38 @@ def delete_evaluator( Returns: An instance of `DeleteEvaluatorOutput`. """ - return self._invoke(input, _models.DELETE_EVALUATOR, [], plugins) + def delete_evaluator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEvaluatorOutput: + return self._invoke( + self._select_input(_models.DELETE_EVALUATOR, args, kwargs), + _models.DELETE_EVALUATOR, + [], + plugins, + ) + + @_overload + def delete_gateway( + self, + request: _models.DeleteGatewayInput | _models.DeleteGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayOutput: ... + + @_overload def delete_gateway( - self, input: DeleteGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayInputDict], ) -> DeleteGatewayOutput: """ Deletes a gateway. Args: - input: - An instance of `DeleteGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1374,17 +2128,39 @@ def delete_gateway( Returns: An instance of `DeleteGatewayOutput`. """ - return self._invoke(input, _models.DELETE_GATEWAY, [], plugins) + def delete_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayOutput: + return self._invoke( + self._select_input(_models.DELETE_GATEWAY, args, kwargs), + _models.DELETE_GATEWAY, + [], + plugins, + ) + + @_overload + def delete_gateway_rate_limit( + self, + request: _models.DeleteGatewayRateLimitInput + | _models.DeleteGatewayRateLimitInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayRateLimitOutput: ... + + @_overload def delete_gateway_rate_limit( - self, input: DeleteGatewayRateLimitInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayRateLimitInputDict], ) -> DeleteGatewayRateLimitOutput: """ Deletes a gateway rate limit. Args: - input: - An instance of `DeleteGatewayRateLimitInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1394,17 +2170,38 @@ def delete_gateway_rate_limit( Returns: An instance of `DeleteGatewayRateLimitOutput`. """ - return self._invoke(input, _models.DELETE_GATEWAY_RATE_LIMIT, [], plugins) + def delete_gateway_rate_limit( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayRateLimitOutput: + return self._invoke( + self._select_input(_models.DELETE_GATEWAY_RATE_LIMIT, args, kwargs), + _models.DELETE_GATEWAY_RATE_LIMIT, + [], + plugins, + ) + + @_overload + def delete_gateway_rule( + self, + request: _models.DeleteGatewayRuleInput | _models.DeleteGatewayRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayRuleOutput: ... + + @_overload def delete_gateway_rule( - self, input: DeleteGatewayRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayRuleInputDict], ) -> DeleteGatewayRuleOutput: """ Deletes a gateway rule. Args: - input: - An instance of `DeleteGatewayRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1414,10 +2211,34 @@ def delete_gateway_rule( Returns: An instance of `DeleteGatewayRuleOutput`. """ - return self._invoke(input, _models.DELETE_GATEWAY_RULE, [], plugins) + def delete_gateway_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayRuleOutput: + return self._invoke( + self._select_input(_models.DELETE_GATEWAY_RULE, args, kwargs), + _models.DELETE_GATEWAY_RULE, + [], + plugins, + ) + + @_overload + def delete_gateway_target( + self, + request: _models.DeleteGatewayTargetInput + | _models.DeleteGatewayTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayTargetOutput: ... + + @_overload def delete_gateway_target( - self, input: DeleteGatewayTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayTargetInputDict], ) -> DeleteGatewayTargetOutput: """ Deletes a gateway target. @@ -1428,8 +2249,6 @@ def delete_gateway_target( fail before deleting the target. Args: - input: - An instance of `DeleteGatewayTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1439,17 +2258,38 @@ def delete_gateway_target( Returns: An instance of `DeleteGatewayTargetOutput`. """ - return self._invoke(input, _models.DELETE_GATEWAY_TARGET, [], plugins) + def delete_gateway_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayTargetOutput: + return self._invoke( + self._select_input(_models.DELETE_GATEWAY_TARGET, args, kwargs), + _models.DELETE_GATEWAY_TARGET, + [], + plugins, + ) + + @_overload + def delete_harness( + self, + request: _models.DeleteHarnessInput | _models.DeleteHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteHarnessOutput: ... + + @_overload def delete_harness( - self, input: DeleteHarnessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteHarnessInputDict], ) -> DeleteHarnessOutput: """ Operation to delete a Harness. Args: - input: - An instance of `DeleteHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1459,17 +2299,39 @@ def delete_harness( Returns: An instance of `DeleteHarnessOutput`. """ - return self._invoke(input, _models.DELETE_HARNESS, [], plugins) + def delete_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteHarnessOutput: + return self._invoke( + self._select_input(_models.DELETE_HARNESS, args, kwargs), + _models.DELETE_HARNESS, + [], + plugins, + ) + + @_overload + def delete_harness_endpoint( + self, + request: _models.DeleteHarnessEndpointInput + | _models.DeleteHarnessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteHarnessEndpointOutput: ... + + @_overload def delete_harness_endpoint( - self, input: DeleteHarnessEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteHarnessEndpointInputDict], ) -> DeleteHarnessEndpointOutput: """ Operation to delete a harness endpoint. Args: - input: - An instance of `DeleteHarnessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1479,18 +2341,39 @@ def delete_harness_endpoint( Returns: An instance of `DeleteHarnessEndpointOutput`. """ - return self._invoke(input, _models.DELETE_HARNESS_ENDPOINT, [], plugins) + def delete_harness_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteHarnessEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_HARNESS_ENDPOINT, args, kwargs), + _models.DELETE_HARNESS_ENDPOINT, + [], + plugins, + ) + + @_overload + def delete_memory( + self, + request: _models.DeleteMemoryInput | _models.DeleteMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMemoryOutput: ... + + @_overload def delete_memory( - self, input: DeleteMemoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMemoryInputDict], ) -> DeleteMemoryOutput: """ Deletes an Amazon Bedrock AgentCore Memory resource. When you delete a memory resource, it is permanently removed. Args: - input: - An instance of `DeleteMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1500,19 +2383,39 @@ def delete_memory( Returns: An instance of `DeleteMemoryOutput`. """ - return self._invoke(input, _models.DELETE_MEMORY, [], plugins) + def delete_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMemoryOutput: + return self._invoke( + self._select_input(_models.DELETE_MEMORY, args, kwargs), + _models.DELETE_MEMORY, + [], + plugins, + ) + + @_overload def delete_oauth2_credential_provider( self, - input: DeleteOauth2CredentialProviderInput, + request: _models.DeleteOauth2CredentialProviderInput + | _models.DeleteOauth2CredentialProviderInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteOauth2CredentialProviderOutput: ... + + @_overload + def delete_oauth2_credential_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOauth2CredentialProviderInputDict], ) -> DeleteOauth2CredentialProviderOutput: """ Deletes an OAuth2 credential provider. Args: - input: - An instance of `DeleteOauth2CredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1522,22 +2425,40 @@ def delete_oauth2_credential_provider( Returns: An instance of `DeleteOauth2CredentialProviderOutput`. """ + + def delete_oauth2_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOauth2CredentialProviderOutput: return self._invoke( - input, _models.DELETE_OAUTH2_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.DELETE_OAUTH2_CREDENTIAL_PROVIDER, args, kwargs), + _models.DELETE_OAUTH2_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload def delete_online_evaluation_config( self, - input: DeleteOnlineEvaluationConfigInput, + request: _models.DeleteOnlineEvaluationConfigInput + | _models.DeleteOnlineEvaluationConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteOnlineEvaluationConfigOutput: ... + + @_overload + def delete_online_evaluation_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOnlineEvaluationConfigInputDict], ) -> DeleteOnlineEvaluationConfigOutput: """ Deletes an online evaluation configuration and stops any ongoing evaluation processes associated with it. Args: - input: - An instance of `DeleteOnlineEvaluationConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1547,17 +2468,39 @@ def delete_online_evaluation_config( Returns: An instance of `DeleteOnlineEvaluationConfigOutput`. """ - return self._invoke(input, _models.DELETE_ONLINE_EVALUATION_CONFIG, [], plugins) + def delete_online_evaluation_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOnlineEvaluationConfigOutput: + return self._invoke( + self._select_input(_models.DELETE_ONLINE_EVALUATION_CONFIG, args, kwargs), + _models.DELETE_ONLINE_EVALUATION_CONFIG, + [], + plugins, + ) + + @_overload + def delete_payment_connector( + self, + request: _models.DeletePaymentConnectorInput + | _models.DeletePaymentConnectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentConnectorOutput: ... + + @_overload def delete_payment_connector( - self, input: DeletePaymentConnectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentConnectorInputDict], ) -> DeletePaymentConnectorOutput: """ Deletes a payment connector. Args: - input: - An instance of `DeletePaymentConnectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1567,20 +2510,40 @@ def delete_payment_connector( Returns: An instance of `DeletePaymentConnectorOutput`. """ - return self._invoke(input, _models.DELETE_PAYMENT_CONNECTOR, [], plugins) + def delete_payment_connector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentConnectorOutput: + return self._invoke( + self._select_input(_models.DELETE_PAYMENT_CONNECTOR, args, kwargs), + _models.DELETE_PAYMENT_CONNECTOR, + [], + plugins, + ) + + @_overload + def delete_payment_credential_provider( + self, + request: _models.DeletePaymentCredentialProviderInput + | _models.DeletePaymentCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentCredentialProviderOutput: ... + + @_overload def delete_payment_credential_provider( self, - input: DeletePaymentCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentCredentialProviderInputDict], ) -> DeletePaymentCredentialProviderOutput: """ Deletes a payment credential provider and its associated stored credentials. Args: - input: - An instance of `DeletePaymentCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1590,12 +2553,36 @@ def delete_payment_credential_provider( Returns: An instance of `DeletePaymentCredentialProviderOutput`. """ + + def delete_payment_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentCredentialProviderOutput: return self._invoke( - input, _models.DELETE_PAYMENT_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.DELETE_PAYMENT_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.DELETE_PAYMENT_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + def delete_payment_manager( + self, + request: _models.DeletePaymentManagerInput + | _models.DeletePaymentManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentManagerOutput: ... + + @_overload def delete_payment_manager( - self, input: DeletePaymentManagerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentManagerInputDict], ) -> DeletePaymentManagerOutput: """ Deletes a payment manager. All payment connectors associated with the @@ -1603,8 +2590,6 @@ def delete_payment_manager( deleted. This operation initiates the deletion process asynchronously. Args: - input: - An instance of `DeletePaymentManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1614,10 +2599,33 @@ def delete_payment_manager( Returns: An instance of `DeletePaymentManagerOutput`. """ - return self._invoke(input, _models.DELETE_PAYMENT_MANAGER, [], plugins) + def delete_payment_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentManagerOutput: + return self._invoke( + self._select_input(_models.DELETE_PAYMENT_MANAGER, args, kwargs), + _models.DELETE_PAYMENT_MANAGER, + [], + plugins, + ) + + @_overload def delete_policy( - self, input: DeletePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePolicyInput | _models.DeletePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePolicyOutput: ... + + @_overload + def delete_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePolicyInputDict], ) -> DeletePolicyOutput: """ Deletes an existing policy from the AgentCore Policy system. Once @@ -1627,8 +2635,6 @@ def delete_policy( completion. Args: - input: - An instance of `DeletePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1638,10 +2644,33 @@ def delete_policy( Returns: An instance of `DeletePolicyOutput`. """ - return self._invoke(input, _models.DELETE_POLICY, [], plugins) + def delete_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_POLICY, args, kwargs), + _models.DELETE_POLICY, + [], + plugins, + ) + + @_overload + def delete_policy_engine( + self, + request: _models.DeletePolicyEngineInput | _models.DeletePolicyEngineInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePolicyEngineOutput: ... + + @_overload def delete_policy_engine( - self, input: DeletePolicyEngineInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePolicyEngineInputDict], ) -> DeletePolicyEngineOutput: """ Deletes an existing policy engine from the AgentCore Policy system. The @@ -1652,8 +2681,6 @@ def delete_policy_engine( `status` field to track completion. Args: - input: - An instance of `DeletePolicyEngineInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1663,10 +2690,33 @@ def delete_policy_engine( Returns: An instance of `DeletePolicyEngineOutput`. """ - return self._invoke(input, _models.DELETE_POLICY_ENGINE, [], plugins) + def delete_policy_engine( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePolicyEngineOutput: + return self._invoke( + self._select_input(_models.DELETE_POLICY_ENGINE, args, kwargs), + _models.DELETE_POLICY_ENGINE, + [], + plugins, + ) + + @_overload def delete_registry( - self, input: DeleteRegistryInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRegistryInput | _models.DeleteRegistryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRegistryOutput: ... + + @_overload + def delete_registry( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRegistryInputDict], ) -> DeleteRegistryOutput: """ Deletes a registry. The registry must contain zero records before it can @@ -1674,8 +2724,6 @@ def delete_registry( asynchronously. Args: - input: - An instance of `DeleteRegistryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1685,18 +2733,40 @@ def delete_registry( Returns: An instance of `DeleteRegistryOutput`. """ - return self._invoke(input, _models.DELETE_REGISTRY, [], plugins) + def delete_registry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRegistryOutput: + return self._invoke( + self._select_input(_models.DELETE_REGISTRY, args, kwargs), + _models.DELETE_REGISTRY, + [], + plugins, + ) + + @_overload + def delete_registry_record( + self, + request: _models.DeleteRegistryRecordInput + | _models.DeleteRegistryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRegistryRecordOutput: ... + + @_overload def delete_registry_record( - self, input: DeleteRegistryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRegistryRecordInputDict], ) -> DeleteRegistryRecordOutput: """ Deletes a registry record. The record's status transitions to `DELETING` and the record is removed asynchronously. Args: - input: - An instance of `DeleteRegistryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1706,10 +2776,34 @@ def delete_registry_record( Returns: An instance of `DeleteRegistryRecordOutput`. """ - return self._invoke(input, _models.DELETE_REGISTRY_RECORD, [], plugins) + def delete_registry_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRegistryRecordOutput: + return self._invoke( + self._select_input(_models.DELETE_REGISTRY_RECORD, args, kwargs), + _models.DELETE_REGISTRY_RECORD, + [], + plugins, + ) + + @_overload + def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource-based policy for a specified resource. @@ -1719,8 +2813,6 @@ def delete_resource_policy( Gateway. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1730,17 +2822,39 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def delete_workload_identity( - self, input: DeleteWorkloadIdentityInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteWorkloadIdentityInput + | _models.DeleteWorkloadIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteWorkloadIdentityOutput: ... + + @_overload + def delete_workload_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteWorkloadIdentityInputDict], ) -> DeleteWorkloadIdentityOutput: """ Deletes a workload identity. Args: - input: - An instance of `DeleteWorkloadIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1750,17 +2864,38 @@ def delete_workload_identity( Returns: An instance of `DeleteWorkloadIdentityOutput`. """ - return self._invoke(input, _models.DELETE_WORKLOAD_IDENTITY, [], plugins) + def delete_workload_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteWorkloadIdentityOutput: + return self._invoke( + self._select_input(_models.DELETE_WORKLOAD_IDENTITY, args, kwargs), + _models.DELETE_WORKLOAD_IDENTITY, + [], + plugins, + ) + + @_overload def get_agent_runtime( - self, input: GetAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAgentRuntimeInput | _models.GetAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentRuntimeOutput: ... + + @_overload + def get_agent_runtime( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentRuntimeInputDict], ) -> GetAgentRuntimeOutput: """ Gets an Amazon Bedrock AgentCore Runtime. Args: - input: - An instance of `GetAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1770,17 +2905,39 @@ def get_agent_runtime( Returns: An instance of `GetAgentRuntimeOutput`. """ - return self._invoke(input, _models.GET_AGENT_RUNTIME, [], plugins) + def get_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentRuntimeOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_RUNTIME, args, kwargs), + _models.GET_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload + def get_agent_runtime_endpoint( + self, + request: _models.GetAgentRuntimeEndpointInput + | _models.GetAgentRuntimeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentRuntimeEndpointOutput: ... + + @_overload def get_agent_runtime_endpoint( - self, input: GetAgentRuntimeEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentRuntimeEndpointInputDict], ) -> GetAgentRuntimeEndpointOutput: """ Gets information about an Amazon Secure AgentEndpoint. Args: - input: - An instance of `GetAgentRuntimeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1790,19 +2947,39 @@ def get_agent_runtime_endpoint( Returns: An instance of `GetAgentRuntimeEndpointOutput`. """ - return self._invoke(input, _models.GET_AGENT_RUNTIME_ENDPOINT, [], plugins) + def get_agent_runtime_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentRuntimeEndpointOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_RUNTIME_ENDPOINT, args, kwargs), + _models.GET_AGENT_RUNTIME_ENDPOINT, + [], + plugins, + ) + + @_overload + def get_api_key_credential_provider( + self, + request: _models.GetApiKeyCredentialProviderInput + | _models.GetApiKeyCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetApiKeyCredentialProviderOutput: ... + + @_overload def get_api_key_credential_provider( self, - input: GetApiKeyCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetApiKeyCredentialProviderInputDict], ) -> GetApiKeyCredentialProviderOutput: """ Retrieves information about an API key credential provider. Args: - input: - An instance of `GetApiKeyCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1812,17 +2989,38 @@ def get_api_key_credential_provider( Returns: An instance of `GetApiKeyCredentialProviderOutput`. """ - return self._invoke(input, _models.GET_API_KEY_CREDENTIAL_PROVIDER, [], plugins) + def get_api_key_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetApiKeyCredentialProviderOutput: + return self._invoke( + self._select_input(_models.GET_API_KEY_CREDENTIAL_PROVIDER, args, kwargs), + _models.GET_API_KEY_CREDENTIAL_PROVIDER, + [], + plugins, + ) + + @_overload def get_browser( - self, input: GetBrowserInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBrowserInput | _models.GetBrowserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBrowserOutput: ... + + @_overload + def get_browser( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBrowserInputDict], ) -> GetBrowserOutput: """ Gets information about a custom browser. Args: - input: - An instance of `GetBrowserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1832,17 +3030,38 @@ def get_browser( Returns: An instance of `GetBrowserOutput`. """ - return self._invoke(input, _models.GET_BROWSER, [], plugins) + def get_browser( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBrowserOutput: + return self._invoke( + self._select_input(_models.GET_BROWSER, args, kwargs), + _models.GET_BROWSER, + [], + plugins, + ) + + @_overload + def get_browser_profile( + self, + request: _models.GetBrowserProfileInput | _models.GetBrowserProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBrowserProfileOutput: ... + + @_overload def get_browser_profile( - self, input: GetBrowserProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBrowserProfileInputDict], ) -> GetBrowserProfileOutput: """ Gets information about a browser profile. Args: - input: - An instance of `GetBrowserProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1852,18 +3071,40 @@ def get_browser_profile( Returns: An instance of `GetBrowserProfileOutput`. """ - return self._invoke(input, _models.GET_BROWSER_PROFILE, [], plugins) + def get_browser_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBrowserProfileOutput: + return self._invoke( + self._select_input(_models.GET_BROWSER_PROFILE, args, kwargs), + _models.GET_BROWSER_PROFILE, + [], + plugins, + ) + + @_overload + def get_capacity_provider( + self, + request: _models.GetCapacityProviderInput + | _models.GetCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityProviderOutput: ... + + @_overload def get_capacity_provider( - self, input: GetCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityProviderInputDict], ) -> GetCapacityProviderOutput: """ Retrieves information about a capacity provider, including its status, permissions configuration, and compute configuration. Args: - input: - An instance of `GetCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1873,17 +3114,38 @@ def get_capacity_provider( Returns: An instance of `GetCapacityProviderOutput`. """ - return self._invoke(input, _models.GET_CAPACITY_PROVIDER, [], plugins) + def get_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityProviderOutput: + return self._invoke( + self._select_input(_models.GET_CAPACITY_PROVIDER, args, kwargs), + _models.GET_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload def get_code_interpreter( - self, input: GetCodeInterpreterInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCodeInterpreterInput | _models.GetCodeInterpreterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCodeInterpreterOutput: ... + + @_overload + def get_code_interpreter( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCodeInterpreterInputDict], ) -> GetCodeInterpreterOutput: """ Gets information about a custom code interpreter. Args: - input: - An instance of `GetCodeInterpreterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1893,10 +3155,34 @@ def get_code_interpreter( Returns: An instance of `GetCodeInterpreterOutput`. """ - return self._invoke(input, _models.GET_CODE_INTERPRETER, [], plugins) + def get_code_interpreter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCodeInterpreterOutput: + return self._invoke( + self._select_input(_models.GET_CODE_INTERPRETER, args, kwargs), + _models.GET_CODE_INTERPRETER, + [], + plugins, + ) + + @_overload def get_configuration_bundle( - self, input: GetConfigurationBundleInput, plugins: list[Plugin] | None = None + self, + request: _models.GetConfigurationBundleInput + | _models.GetConfigurationBundleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConfigurationBundleOutput: ... + + @_overload + def get_configuration_bundle( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConfigurationBundleInputDict], ) -> GetConfigurationBundleOutput: """ Gets the latest version of a configuration bundle. By default, returns @@ -1905,8 +3191,6 @@ def get_configuration_bundle( version. Args: - input: - An instance of `GetConfigurationBundleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1916,20 +3200,40 @@ def get_configuration_bundle( Returns: An instance of `GetConfigurationBundleOutput`. """ - return self._invoke(input, _models.GET_CONFIGURATION_BUNDLE, [], plugins) + def get_configuration_bundle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConfigurationBundleOutput: + return self._invoke( + self._select_input(_models.GET_CONFIGURATION_BUNDLE, args, kwargs), + _models.GET_CONFIGURATION_BUNDLE, + [], + plugins, + ) + + @_overload + def get_configuration_bundle_version( + self, + request: _models.GetConfigurationBundleVersionInput + | _models.GetConfigurationBundleVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConfigurationBundleVersionOutput: ... + + @_overload def get_configuration_bundle_version( self, - input: GetConfigurationBundleVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConfigurationBundleVersionInputDict], ) -> GetConfigurationBundleVersionOutput: """ Gets a specific version of a configuration bundle by its version identifier. Args: - input: - An instance of `GetConfigurationBundleVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1939,19 +3243,38 @@ def get_configuration_bundle_version( Returns: An instance of `GetConfigurationBundleVersionOutput`. """ + + def get_configuration_bundle_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConfigurationBundleVersionOutput: return self._invoke( - input, _models.GET_CONFIGURATION_BUNDLE_VERSION, [], plugins + self._select_input(_models.GET_CONFIGURATION_BUNDLE_VERSION, args, kwargs), + _models.GET_CONFIGURATION_BUNDLE_VERSION, + [], + plugins, ) + @_overload def get_consent_portal( - self, input: GetConsentPortalInput, plugins: list[Plugin] | None = None + self, + request: _models.GetConsentPortalInput | _models.GetConsentPortalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConsentPortalOutput: ... + + @_overload + def get_consent_portal( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConsentPortalInputDict], ) -> GetConsentPortalOutput: """ Retrieves information about a consent portal. Args: - input: - An instance of `GetConsentPortalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1961,10 +3284,33 @@ def get_consent_portal( Returns: An instance of `GetConsentPortalOutput`. """ - return self._invoke(input, _models.GET_CONSENT_PORTAL, [], plugins) + def get_consent_portal( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConsentPortalOutput: + return self._invoke( + self._select_input(_models.GET_CONSENT_PORTAL, args, kwargs), + _models.GET_CONSENT_PORTAL, + [], + plugins, + ) + + @_overload def get_dataset( - self, input: GetDatasetInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDatasetInput | _models.GetDatasetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDatasetOutput: ... + + @_overload + def get_dataset( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDatasetInputDict], ) -> GetDatasetOutput: """ Retrieves dataset metadata. Use the `datasetVersion` query parameter to @@ -1972,8 +3318,6 @@ def get_dataset( For paginated example content, use `ListDatasetExamples`. Args: - input: - An instance of `GetDatasetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1983,10 +3327,33 @@ def get_dataset( Returns: An instance of `GetDatasetOutput`. """ - return self._invoke(input, _models.GET_DATASET, [], plugins) + def get_dataset( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDatasetOutput: + return self._invoke( + self._select_input(_models.GET_DATASET, args, kwargs), + _models.GET_DATASET, + [], + plugins, + ) + + @_overload + def get_evaluator( + self, + request: _models.GetEvaluatorInput | _models.GetEvaluatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEvaluatorOutput: ... + + @_overload def get_evaluator( - self, input: GetEvaluatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEvaluatorInputDict], ) -> GetEvaluatorOutput: """ Retrieves detailed information about an evaluator, including its @@ -1994,8 +3361,6 @@ def get_evaluator( evaluators. Args: - input: - An instance of `GetEvaluatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2005,17 +3370,38 @@ def get_evaluator( Returns: An instance of `GetEvaluatorOutput`. """ - return self._invoke(input, _models.GET_EVALUATOR, [], plugins) + def get_evaluator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEvaluatorOutput: + return self._invoke( + self._select_input(_models.GET_EVALUATOR, args, kwargs), + _models.GET_EVALUATOR, + [], + plugins, + ) + + @_overload + def get_gateway( + self, + request: _models.GetGatewayInput | _models.GetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayOutput: ... + + @_overload def get_gateway( - self, input: GetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayInputDict], ) -> GetGatewayOutput: """ Retrieves information about a specific Gateway. Args: - input: - An instance of `GetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2025,17 +3411,39 @@ def get_gateway( Returns: An instance of `GetGatewayOutput`. """ - return self._invoke(input, _models.GET_GATEWAY, [], plugins) + def get_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayOutput: + return self._invoke( + self._select_input(_models.GET_GATEWAY, args, kwargs), + _models.GET_GATEWAY, + [], + plugins, + ) + + @_overload def get_gateway_rate_limit( - self, input: GetGatewayRateLimitInput, plugins: list[Plugin] | None = None + self, + request: _models.GetGatewayRateLimitInput + | _models.GetGatewayRateLimitInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayRateLimitOutput: ... + + @_overload + def get_gateway_rate_limit( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayRateLimitInputDict], ) -> GetGatewayRateLimitOutput: """ Retrieves information about a gateway rate limit. Args: - input: - An instance of `GetGatewayRateLimitInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2045,17 +3453,38 @@ def get_gateway_rate_limit( Returns: An instance of `GetGatewayRateLimitOutput`. """ - return self._invoke(input, _models.GET_GATEWAY_RATE_LIMIT, [], plugins) + def get_gateway_rate_limit( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayRateLimitOutput: + return self._invoke( + self._select_input(_models.GET_GATEWAY_RATE_LIMIT, args, kwargs), + _models.GET_GATEWAY_RATE_LIMIT, + [], + plugins, + ) + + @_overload + def get_gateway_rule( + self, + request: _models.GetGatewayRuleInput | _models.GetGatewayRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayRuleOutput: ... + + @_overload def get_gateway_rule( - self, input: GetGatewayRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayRuleInputDict], ) -> GetGatewayRuleOutput: """ Retrieves detailed information about a specific gateway rule. Args: - input: - An instance of `GetGatewayRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2065,17 +3494,38 @@ def get_gateway_rule( Returns: An instance of `GetGatewayRuleOutput`. """ - return self._invoke(input, _models.GET_GATEWAY_RULE, [], plugins) + def get_gateway_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayRuleOutput: + return self._invoke( + self._select_input(_models.GET_GATEWAY_RULE, args, kwargs), + _models.GET_GATEWAY_RULE, + [], + plugins, + ) + + @_overload + def get_gateway_target( + self, + request: _models.GetGatewayTargetInput | _models.GetGatewayTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGatewayTargetOutput: ... + + @_overload def get_gateway_target( - self, input: GetGatewayTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGatewayTargetInputDict], ) -> GetGatewayTargetOutput: """ Retrieves information about a specific gateway target. Args: - input: - An instance of `GetGatewayTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2085,17 +3535,38 @@ def get_gateway_target( Returns: An instance of `GetGatewayTargetOutput`. """ - return self._invoke(input, _models.GET_GATEWAY_TARGET, [], plugins) + def get_gateway_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGatewayTargetOutput: + return self._invoke( + self._select_input(_models.GET_GATEWAY_TARGET, args, kwargs), + _models.GET_GATEWAY_TARGET, + [], + plugins, + ) + + @_overload def get_harness( - self, input: GetHarnessInput, plugins: list[Plugin] | None = None + self, + request: _models.GetHarnessInput | _models.GetHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHarnessOutput: ... + + @_overload + def get_harness( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHarnessInputDict], ) -> GetHarnessOutput: """ Operation to get a single harness. Args: - input: - An instance of `GetHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2105,17 +3576,38 @@ def get_harness( Returns: An instance of `GetHarnessOutput`. """ - return self._invoke(input, _models.GET_HARNESS, [], plugins) + def get_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHarnessOutput: + return self._invoke( + self._select_input(_models.GET_HARNESS, args, kwargs), + _models.GET_HARNESS, + [], + plugins, + ) + + @_overload def get_harness_endpoint( - self, input: GetHarnessEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.GetHarnessEndpointInput | _models.GetHarnessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHarnessEndpointOutput: ... + + @_overload + def get_harness_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHarnessEndpointInputDict], ) -> GetHarnessEndpointOutput: """ Operation to get a single harness endpoint. Args: - input: - An instance of `GetHarnessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2125,17 +3617,38 @@ def get_harness_endpoint( Returns: An instance of `GetHarnessEndpointOutput`. """ - return self._invoke(input, _models.GET_HARNESS_ENDPOINT, [], plugins) + def get_harness_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHarnessEndpointOutput: + return self._invoke( + self._select_input(_models.GET_HARNESS_ENDPOINT, args, kwargs), + _models.GET_HARNESS_ENDPOINT, + [], + plugins, + ) + + @_overload + def get_memory( + self, + request: _models.GetMemoryInput | _models.GetMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMemoryOutput: ... + + @_overload def get_memory( - self, input: GetMemoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMemoryInputDict], ) -> GetMemoryOutput: """ Retrieve an existing Amazon Bedrock AgentCore Memory resource. Args: - input: - An instance of `GetMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2145,19 +3658,39 @@ def get_memory( Returns: An instance of `GetMemoryOutput`. """ - return self._invoke(input, _models.GET_MEMORY, [], plugins) + def get_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMemoryOutput: + return self._invoke( + self._select_input(_models.GET_MEMORY, args, kwargs), + _models.GET_MEMORY, + [], + plugins, + ) + + @_overload + def get_oauth2_credential_provider( + self, + request: _models.GetOauth2CredentialProviderInput + | _models.GetOauth2CredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOauth2CredentialProviderOutput: ... + + @_overload def get_oauth2_credential_provider( self, - input: GetOauth2CredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOauth2CredentialProviderInputDict], ) -> GetOauth2CredentialProviderOutput: """ Retrieves information about an OAuth2 credential provider. Args: - input: - An instance of `GetOauth2CredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2167,18 +3700,40 @@ def get_oauth2_credential_provider( Returns: An instance of `GetOauth2CredentialProviderOutput`. """ - return self._invoke(input, _models.GET_OAUTH2_CREDENTIAL_PROVIDER, [], plugins) + def get_oauth2_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOauth2CredentialProviderOutput: + return self._invoke( + self._select_input(_models.GET_OAUTH2_CREDENTIAL_PROVIDER, args, kwargs), + _models.GET_OAUTH2_CREDENTIAL_PROVIDER, + [], + plugins, + ) + + @_overload def get_online_evaluation_config( - self, input: GetOnlineEvaluationConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.GetOnlineEvaluationConfigInput + | _models.GetOnlineEvaluationConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOnlineEvaluationConfigOutput: ... + + @_overload + def get_online_evaluation_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOnlineEvaluationConfigInputDict], ) -> GetOnlineEvaluationConfigOutput: """ Retrieves detailed information about an online evaluation configuration, including its rules, data sources, evaluators, and execution status. Args: - input: - An instance of `GetOnlineEvaluationConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2188,17 +3743,39 @@ def get_online_evaluation_config( Returns: An instance of `GetOnlineEvaluationConfigOutput`. """ - return self._invoke(input, _models.GET_ONLINE_EVALUATION_CONFIG, [], plugins) + def get_online_evaluation_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOnlineEvaluationConfigOutput: + return self._invoke( + self._select_input(_models.GET_ONLINE_EVALUATION_CONFIG, args, kwargs), + _models.GET_ONLINE_EVALUATION_CONFIG, + [], + plugins, + ) + + @_overload + def get_payment_connector( + self, + request: _models.GetPaymentConnectorInput + | _models.GetPaymentConnectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPaymentConnectorOutput: ... + + @_overload def get_payment_connector( - self, input: GetPaymentConnectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentConnectorInputDict], ) -> GetPaymentConnectorOutput: """ Retrieves information about a specific payment connector. Args: - input: - An instance of `GetPaymentConnectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2208,19 +3785,39 @@ def get_payment_connector( Returns: An instance of `GetPaymentConnectorOutput`. """ - return self._invoke(input, _models.GET_PAYMENT_CONNECTOR, [], plugins) + def get_payment_connector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentConnectorOutput: + return self._invoke( + self._select_input(_models.GET_PAYMENT_CONNECTOR, args, kwargs), + _models.GET_PAYMENT_CONNECTOR, + [], + plugins, + ) + + @_overload def get_payment_credential_provider( self, - input: GetPaymentCredentialProviderInput, + request: _models.GetPaymentCredentialProviderInput + | _models.GetPaymentCredentialProviderInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetPaymentCredentialProviderOutput: ... + + @_overload + def get_payment_credential_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentCredentialProviderInputDict], ) -> GetPaymentCredentialProviderOutput: """ Retrieves information about a specific payment credential provider. Args: - input: - An instance of `GetPaymentCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2230,17 +3827,38 @@ def get_payment_credential_provider( Returns: An instance of `GetPaymentCredentialProviderOutput`. """ - return self._invoke(input, _models.GET_PAYMENT_CREDENTIAL_PROVIDER, [], plugins) + def get_payment_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentCredentialProviderOutput: + return self._invoke( + self._select_input(_models.GET_PAYMENT_CREDENTIAL_PROVIDER, args, kwargs), + _models.GET_PAYMENT_CREDENTIAL_PROVIDER, + [], + plugins, + ) + + @_overload def get_payment_manager( - self, input: GetPaymentManagerInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPaymentManagerInput | _models.GetPaymentManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPaymentManagerOutput: ... + + @_overload + def get_payment_manager( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentManagerInputDict], ) -> GetPaymentManagerOutput: """ Retrieves information about a specific payment manager. Args: - input: - An instance of `GetPaymentManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2250,10 +3868,33 @@ def get_payment_manager( Returns: An instance of `GetPaymentManagerOutput`. """ - return self._invoke(input, _models.GET_PAYMENT_MANAGER, [], plugins) + def get_payment_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentManagerOutput: + return self._invoke( + self._select_input(_models.GET_PAYMENT_MANAGER, args, kwargs), + _models.GET_PAYMENT_MANAGER, + [], + plugins, + ) + + @_overload + def get_policy( + self, + request: _models.GetPolicyInput | _models.GetPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyOutput: ... + + @_overload def get_policy( - self, input: GetPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyInputDict], ) -> GetPolicyOutput: """ Retrieves detailed information about a specific policy within the @@ -2262,8 +3903,6 @@ def get_policy( review and manage policy configurations. Args: - input: - An instance of `GetPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2273,10 +3912,33 @@ def get_policy( Returns: An instance of `GetPolicyOutput`. """ - return self._invoke(input, _models.GET_POLICY, [], plugins) + def get_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyOutput: + return self._invoke( + self._select_input(_models.GET_POLICY, args, kwargs), + _models.GET_POLICY, + [], + plugins, + ) + + @_overload def get_policy_engine( - self, input: GetPolicyEngineInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPolicyEngineInput | _models.GetPolicyEngineInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyEngineOutput: ... + + @_overload + def get_policy_engine( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyEngineInputDict], ) -> GetPolicyEngineOutput: """ Retrieves detailed information about a specific policy engine within the @@ -2285,8 +3947,6 @@ def get_policy_engine( administrators to review and manage policy engine settings. Args: - input: - An instance of `GetPolicyEngineInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2296,10 +3956,34 @@ def get_policy_engine( Returns: An instance of `GetPolicyEngineOutput`. """ - return self._invoke(input, _models.GET_POLICY_ENGINE, [], plugins) + def get_policy_engine( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyEngineOutput: + return self._invoke( + self._select_input(_models.GET_POLICY_ENGINE, args, kwargs), + _models.GET_POLICY_ENGINE, + [], + plugins, + ) + + @_overload + def get_policy_engine_summary( + self, + request: _models.GetPolicyEngineSummaryInput + | _models.GetPolicyEngineSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyEngineSummaryOutput: ... + + @_overload def get_policy_engine_summary( - self, input: GetPolicyEngineSummaryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyEngineSummaryInputDict], ) -> GetPolicyEngineSummaryOutput: """ Retrieves a metadata-only summary of a specific policy engine without @@ -2311,8 +3995,6 @@ def get_policy_engine_summary( where only metadata is needed. Args: - input: - An instance of `GetPolicyEngineSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2322,10 +4004,34 @@ def get_policy_engine_summary( Returns: An instance of `GetPolicyEngineSummaryOutput`. """ - return self._invoke(input, _models.GET_POLICY_ENGINE_SUMMARY, [], plugins) + def get_policy_engine_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyEngineSummaryOutput: + return self._invoke( + self._select_input(_models.GET_POLICY_ENGINE_SUMMARY, args, kwargs), + _models.GET_POLICY_ENGINE_SUMMARY, + [], + plugins, + ) + + @_overload def get_policy_generation( - self, input: GetPolicyGenerationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPolicyGenerationInput + | _models.GetPolicyGenerationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyGenerationOutput: ... + + @_overload + def get_policy_generation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyGenerationInputDict], ) -> GetPolicyGenerationOutput: """ Retrieves information about a policy generation request within the @@ -2334,8 +4040,6 @@ def get_policy_generation( translation, enabling non-technical users to create policies. Args: - input: - An instance of `GetPolicyGenerationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2345,12 +4049,34 @@ def get_policy_generation( Returns: An instance of `GetPolicyGenerationOutput`. """ - return self._invoke(input, _models.GET_POLICY_GENERATION, [], plugins) + def get_policy_generation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyGenerationOutput: + return self._invoke( + self._select_input(_models.GET_POLICY_GENERATION, args, kwargs), + _models.GET_POLICY_GENERATION, + [], + plugins, + ) + + @_overload + def get_policy_generation_summary( + self, + request: _models.GetPolicyGenerationSummaryInput + | _models.GetPolicyGenerationSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyGenerationSummaryOutput: ... + + @_overload def get_policy_generation_summary( self, - input: GetPolicyGenerationSummaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyGenerationSummaryInputDict], ) -> GetPolicyGenerationSummaryOutput: """ Retrieves a metadata-only summary of a specific policy generation @@ -2362,8 +4088,6 @@ def get_policy_generation_summary( metadata is needed. Args: - input: - An instance of `GetPolicyGenerationSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2373,10 +4097,33 @@ def get_policy_generation_summary( Returns: An instance of `GetPolicyGenerationSummaryOutput`. """ - return self._invoke(input, _models.GET_POLICY_GENERATION_SUMMARY, [], plugins) + def get_policy_generation_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyGenerationSummaryOutput: + return self._invoke( + self._select_input(_models.GET_POLICY_GENERATION_SUMMARY, args, kwargs), + _models.GET_POLICY_GENERATION_SUMMARY, + [], + plugins, + ) + + @_overload + def get_policy_summary( + self, + request: _models.GetPolicySummaryInput | _models.GetPolicySummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicySummaryOutput: ... + + @_overload def get_policy_summary( - self, input: GetPolicySummaryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicySummaryInputDict], ) -> GetPolicySummaryOutput: """ Retrieves a metadata-only summary of a specific policy without @@ -2388,8 +4135,6 @@ def get_policy_summary( where only metadata is needed. Args: - input: - An instance of `GetPolicySummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2399,17 +4144,38 @@ def get_policy_summary( Returns: An instance of `GetPolicySummaryOutput`. """ - return self._invoke(input, _models.GET_POLICY_SUMMARY, [], plugins) + def get_policy_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicySummaryOutput: + return self._invoke( + self._select_input(_models.GET_POLICY_SUMMARY, args, kwargs), + _models.GET_POLICY_SUMMARY, + [], + plugins, + ) + + @_overload def get_registry( - self, input: GetRegistryInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRegistryInput | _models.GetRegistryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRegistryOutput: ... + + @_overload + def get_registry( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRegistryInputDict], ) -> GetRegistryOutput: """ Retrieves information about a specific registry. Args: - input: - An instance of `GetRegistryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2419,17 +4185,38 @@ def get_registry( Returns: An instance of `GetRegistryOutput`. """ - return self._invoke(input, _models.GET_REGISTRY, [], plugins) + def get_registry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRegistryOutput: + return self._invoke( + self._select_input(_models.GET_REGISTRY, args, kwargs), + _models.GET_REGISTRY, + [], + plugins, + ) + + @_overload + def get_registry_record( + self, + request: _models.GetRegistryRecordInput | _models.GetRegistryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRegistryRecordOutput: ... + + @_overload def get_registry_record( - self, input: GetRegistryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRegistryRecordInputDict], ) -> GetRegistryRecordOutput: """ Retrieves information about a specific registry record. Args: - input: - An instance of `GetRegistryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2439,10 +4226,33 @@ def get_registry_record( Returns: An instance of `GetRegistryRecordOutput`. """ - return self._invoke(input, _models.GET_REGISTRY_RECORD, [], plugins) + def get_registry_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRegistryRecordOutput: + return self._invoke( + self._select_input(_models.GET_REGISTRY_RECORD, args, kwargs), + _models.GET_REGISTRY_RECORD, + [], + plugins, + ) + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload + def get_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the resource-based policy for a specified resource. @@ -2452,30 +4262,47 @@ def get_resource_policy( Gateway. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `GetResourcePolicyOutput`. - """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + Returns: + An instance of `GetResourcePolicyOutput`. + """ + + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def get_token_vault( + self, + request: _models.GetTokenVaultInput | _models.GetTokenVaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTokenVaultOutput: ... + @_overload def get_token_vault( self, - input: GetTokenVaultInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTokenVaultInputDict], ) -> GetTokenVaultOutput: """ Retrieves information about a token vault. Args: - input: - An instance of `GetTokenVaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2485,17 +4312,39 @@ def get_token_vault( Returns: An instance of `GetTokenVaultOutput`. """ - return self._invoke(input, _models.GET_TOKEN_VAULT, [], plugins) + def get_token_vault( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTokenVaultOutput: + return self._invoke( + self._select_input(_models.GET_TOKEN_VAULT, args, kwargs), + _models.GET_TOKEN_VAULT, + [], + plugins, + ) + + @_overload + def get_workload_identity( + self, + request: _models.GetWorkloadIdentityInput + | _models.GetWorkloadIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWorkloadIdentityOutput: ... + + @_overload def get_workload_identity( - self, input: GetWorkloadIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWorkloadIdentityInputDict], ) -> GetWorkloadIdentityOutput: """ Retrieves information about a workload identity. Args: - input: - An instance of `GetWorkloadIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2505,17 +4354,39 @@ def get_workload_identity( Returns: An instance of `GetWorkloadIdentityOutput`. """ - return self._invoke(input, _models.GET_WORKLOAD_IDENTITY, [], plugins) + def get_workload_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWorkloadIdentityOutput: + return self._invoke( + self._select_input(_models.GET_WORKLOAD_IDENTITY, args, kwargs), + _models.GET_WORKLOAD_IDENTITY, + [], + plugins, + ) + + @_overload + def list_agent_runtime_endpoints( + self, + request: _models.ListAgentRuntimeEndpointsInput + | _models.ListAgentRuntimeEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentRuntimeEndpointsOutput: ... + + @_overload def list_agent_runtime_endpoints( - self, input: ListAgentRuntimeEndpointsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentRuntimeEndpointsInputDict], ) -> ListAgentRuntimeEndpointsOutput: """ Lists all endpoints for a specific Amazon Secure Agent. Args: - input: - An instance of `ListAgentRuntimeEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2525,19 +4396,38 @@ def list_agent_runtime_endpoints( Returns: An instance of `ListAgentRuntimeEndpointsOutput`. """ - return self._invoke(input, _models.LIST_AGENT_RUNTIME_ENDPOINTS, [], plugins) + def list_agent_runtime_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentRuntimeEndpointsOutput: + return self._invoke( + self._select_input(_models.LIST_AGENT_RUNTIME_ENDPOINTS, args, kwargs), + _models.LIST_AGENT_RUNTIME_ENDPOINTS, + [], + plugins, + ) + + @_overload + def list_agent_runtimes( + self, + request: _models.ListAgentRuntimesInput | _models.ListAgentRuntimesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentRuntimesOutput: ... + + @_overload def list_agent_runtimes( self, - input: ListAgentRuntimesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentRuntimesInputDict], ) -> ListAgentRuntimesOutput: """ Lists all Amazon Secure Agents in your account. Args: - input: - An instance of `ListAgentRuntimesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2547,17 +4437,39 @@ def list_agent_runtimes( Returns: An instance of `ListAgentRuntimesOutput`. """ - return self._invoke(input, _models.LIST_AGENT_RUNTIMES, [], plugins) + def list_agent_runtimes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentRuntimesOutput: + return self._invoke( + self._select_input(_models.LIST_AGENT_RUNTIMES, args, kwargs), + _models.LIST_AGENT_RUNTIMES, + [], + plugins, + ) + + @_overload + def list_agent_runtime_versions( + self, + request: _models.ListAgentRuntimeVersionsInput + | _models.ListAgentRuntimeVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentRuntimeVersionsOutput: ... + + @_overload def list_agent_runtime_versions( - self, input: ListAgentRuntimeVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentRuntimeVersionsInputDict], ) -> ListAgentRuntimeVersionsOutput: """ Lists all versions of a specific Amazon Secure Agent. Args: - input: - An instance of `ListAgentRuntimeVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2567,12 +4479,34 @@ def list_agent_runtime_versions( Returns: An instance of `ListAgentRuntimeVersionsOutput`. """ - return self._invoke(input, _models.LIST_AGENT_RUNTIME_VERSIONS, [], plugins) + def list_agent_runtime_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentRuntimeVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_AGENT_RUNTIME_VERSIONS, args, kwargs), + _models.LIST_AGENT_RUNTIME_VERSIONS, + [], + plugins, + ) + + @_overload + def list_agent_runtime_versions_by_capacity_provider( + self, + request: _models.ListAgentRuntimeVersionsByCapacityProviderInput + | _models.ListAgentRuntimeVersionsByCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAgentRuntimeVersionsByCapacityProviderOutput: ... + + @_overload def list_agent_runtime_versions_by_capacity_provider( self, - input: ListAgentRuntimeVersionsByCapacityProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAgentRuntimeVersionsByCapacityProviderInputDict], ) -> ListAgentRuntimeVersionsByCapacityProviderOutput: """ Lists the agent runtime versions that are associated with a capacity @@ -2581,8 +4515,6 @@ def list_agent_runtime_versions_by_capacity_provider( paginated; use the `nextToken` parameter to retrieve additional results. Args: - input: - An instance of `ListAgentRuntimeVersionsByCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2592,21 +4524,41 @@ def list_agent_runtime_versions_by_capacity_provider( Returns: An instance of `ListAgentRuntimeVersionsByCapacityProviderOutput`. """ + + def list_agent_runtime_versions_by_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAgentRuntimeVersionsByCapacityProviderOutput: return self._invoke( - input, _models.LIST_AGENT_RUNTIME_VERSIONS_BY_CAPACITY_PROVIDER, [], plugins + self._select_input( + _models.LIST_AGENT_RUNTIME_VERSIONS_BY_CAPACITY_PROVIDER, args, kwargs + ), + _models.LIST_AGENT_RUNTIME_VERSIONS_BY_CAPACITY_PROVIDER, + [], + plugins, ) + @_overload + def list_api_key_credential_providers( + self, + request: _models.ListApiKeyCredentialProvidersInput + | _models.ListApiKeyCredentialProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListApiKeyCredentialProvidersOutput: ... + + @_overload def list_api_key_credential_providers( self, - input: ListApiKeyCredentialProvidersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListApiKeyCredentialProvidersInputDict], ) -> ListApiKeyCredentialProvidersOutput: """ Lists all API key credential providers in your account. Args: - input: - An instance of `ListApiKeyCredentialProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2616,21 +4568,39 @@ def list_api_key_credential_providers( Returns: An instance of `ListApiKeyCredentialProvidersOutput`. """ + + def list_api_key_credential_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListApiKeyCredentialProvidersOutput: return self._invoke( - input, _models.LIST_API_KEY_CREDENTIAL_PROVIDERS, [], plugins + self._select_input(_models.LIST_API_KEY_CREDENTIAL_PROVIDERS, args, kwargs), + _models.LIST_API_KEY_CREDENTIAL_PROVIDERS, + [], + plugins, ) + @_overload + def list_browser_profiles( + self, + request: _models.ListBrowserProfilesInput + | _models.ListBrowserProfilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBrowserProfilesOutput: ... + + @_overload def list_browser_profiles( self, - input: ListBrowserProfilesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBrowserProfilesInputDict], ) -> ListBrowserProfilesOutput: """ Lists all browser profiles in your account. Args: - input: - An instance of `ListBrowserProfilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2640,19 +4610,38 @@ def list_browser_profiles( Returns: An instance of `ListBrowserProfilesOutput`. """ - return self._invoke(input, _models.LIST_BROWSER_PROFILES, [], plugins) + def list_browser_profiles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBrowserProfilesOutput: + return self._invoke( + self._select_input(_models.LIST_BROWSER_PROFILES, args, kwargs), + _models.LIST_BROWSER_PROFILES, + [], + plugins, + ) + + @_overload + def list_browsers( + self, + request: _models.ListBrowsersInput | _models.ListBrowsersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBrowsersOutput: ... + + @_overload def list_browsers( self, - input: ListBrowsersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBrowsersInputDict], ) -> ListBrowsersOutput: """ Lists all custom browsers in your account. Args: - input: - An instance of `ListBrowsersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2662,12 +4651,34 @@ def list_browsers( Returns: An instance of `ListBrowsersOutput`. """ - return self._invoke(input, _models.LIST_BROWSERS, [], plugins) + def list_browsers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBrowsersOutput: + return self._invoke( + self._select_input(_models.LIST_BROWSERS, args, kwargs), + _models.LIST_BROWSERS, + [], + plugins, + ) + + @_overload + def list_capacity_providers( + self, + request: _models.ListCapacityProvidersInput + | _models.ListCapacityProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCapacityProvidersOutput: ... + + @_overload def list_capacity_providers( self, - input: ListCapacityProvidersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCapacityProvidersInputDict], ) -> ListCapacityProvidersOutput: """ Lists the capacity providers in your account and returns summary @@ -2676,8 +4687,6 @@ def list_capacity_providers( paginated; use the `nextToken` parameter to retrieve additional results. Args: - input: - An instance of `ListCapacityProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2687,19 +4696,39 @@ def list_capacity_providers( Returns: An instance of `ListCapacityProvidersOutput`. """ - return self._invoke(input, _models.LIST_CAPACITY_PROVIDERS, [], plugins) + def list_capacity_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCapacityProvidersOutput: + return self._invoke( + self._select_input(_models.LIST_CAPACITY_PROVIDERS, args, kwargs), + _models.LIST_CAPACITY_PROVIDERS, + [], + plugins, + ) + + @_overload + def list_code_interpreters( + self, + request: _models.ListCodeInterpretersInput + | _models.ListCodeInterpretersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCodeInterpretersOutput: ... + + @_overload def list_code_interpreters( self, - input: ListCodeInterpretersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCodeInterpretersInputDict], ) -> ListCodeInterpretersOutput: """ Lists all custom code interpreters in your account. Args: - input: - An instance of `ListCodeInterpretersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2709,19 +4738,39 @@ def list_code_interpreters( Returns: An instance of `ListCodeInterpretersOutput`. """ - return self._invoke(input, _models.LIST_CODE_INTERPRETERS, [], plugins) + def list_code_interpreters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCodeInterpretersOutput: + return self._invoke( + self._select_input(_models.LIST_CODE_INTERPRETERS, args, kwargs), + _models.LIST_CODE_INTERPRETERS, + [], + plugins, + ) + + @_overload + def list_configuration_bundles( + self, + request: _models.ListConfigurationBundlesInput + | _models.ListConfigurationBundlesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConfigurationBundlesOutput: ... + + @_overload def list_configuration_bundles( self, - input: ListConfigurationBundlesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConfigurationBundlesInputDict], ) -> ListConfigurationBundlesOutput: """ Lists all configuration bundles in the account. Args: - input: - An instance of `ListConfigurationBundlesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2731,20 +4780,40 @@ def list_configuration_bundles( Returns: An instance of `ListConfigurationBundlesOutput`. """ - return self._invoke(input, _models.LIST_CONFIGURATION_BUNDLES, [], plugins) + def list_configuration_bundles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConfigurationBundlesOutput: + return self._invoke( + self._select_input(_models.LIST_CONFIGURATION_BUNDLES, args, kwargs), + _models.LIST_CONFIGURATION_BUNDLES, + [], + plugins, + ) + + @_overload def list_configuration_bundle_versions( self, - input: ListConfigurationBundleVersionsInput, + request: _models.ListConfigurationBundleVersionsInput + | _models.ListConfigurationBundleVersionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListConfigurationBundleVersionsOutput: ... + + @_overload + def list_configuration_bundle_versions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConfigurationBundleVersionsInputDict], ) -> ListConfigurationBundleVersionsOutput: """ Lists all versions of a configuration bundle, with optional filtering by branch name or creation source. Args: - input: - An instance of `ListConfigurationBundleVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2754,21 +4823,40 @@ def list_configuration_bundle_versions( Returns: An instance of `ListConfigurationBundleVersionsOutput`. """ + + def list_configuration_bundle_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConfigurationBundleVersionsOutput: return self._invoke( - input, _models.LIST_CONFIGURATION_BUNDLE_VERSIONS, [], plugins + self._select_input( + _models.LIST_CONFIGURATION_BUNDLE_VERSIONS, args, kwargs + ), + _models.LIST_CONFIGURATION_BUNDLE_VERSIONS, + [], + plugins, ) + @_overload + def list_consent_portals( + self, + request: _models.ListConsentPortalsInput | _models.ListConsentPortalsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConsentPortalsOutput: ... + + @_overload def list_consent_portals( self, - input: ListConsentPortalsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConsentPortalsInputDict], ) -> ListConsentPortalsOutput: """ Lists all of the consent portals in your account. Args: - input: - An instance of `ListConsentPortalsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2778,10 +4866,34 @@ def list_consent_portals( Returns: An instance of `ListConsentPortalsOutput`. """ - return self._invoke(input, _models.LIST_CONSENT_PORTALS, [], plugins) + def list_consent_portals( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConsentPortalsOutput: + return self._invoke( + self._select_input(_models.LIST_CONSENT_PORTALS, args, kwargs), + _models.LIST_CONSENT_PORTALS, + [], + plugins, + ) + + @_overload def list_dataset_examples( - self, input: ListDatasetExamplesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDatasetExamplesInput + | _models.ListDatasetExamplesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDatasetExamplesOutput: ... + + @_overload + def list_dataset_examples( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDatasetExamplesInputDict], ) -> ListDatasetExamplesOutput: """ Returns paginated examples from the dataset. The server embeds the @@ -2790,8 +4902,6 @@ def list_dataset_examples( mutations. Args: - input: - An instance of `ListDatasetExamplesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2801,19 +4911,38 @@ def list_dataset_examples( Returns: An instance of `ListDatasetExamplesOutput`. """ - return self._invoke(input, _models.LIST_DATASET_EXAMPLES, [], plugins) + def list_dataset_examples( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDatasetExamplesOutput: + return self._invoke( + self._select_input(_models.LIST_DATASET_EXAMPLES, args, kwargs), + _models.LIST_DATASET_EXAMPLES, + [], + plugins, + ) + + @_overload + def list_datasets( + self, + request: _models.ListDatasetsInput | _models.ListDatasetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDatasetsOutput: ... + + @_overload def list_datasets( self, - input: ListDatasetsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDatasetsInputDict], ) -> ListDatasetsOutput: """ Lists all datasets in the caller's account, paginated. Args: - input: - An instance of `ListDatasetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2823,18 +4952,40 @@ def list_datasets( Returns: An instance of `ListDatasetsOutput`. """ - return self._invoke(input, _models.LIST_DATASETS, [], plugins) + def list_datasets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDatasetsOutput: + return self._invoke( + self._select_input(_models.LIST_DATASETS, args, kwargs), + _models.LIST_DATASETS, + [], + plugins, + ) + + @_overload + def list_dataset_versions( + self, + request: _models.ListDatasetVersionsInput + | _models.ListDatasetVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDatasetVersionsOutput: ... + + @_overload def list_dataset_versions( - self, input: ListDatasetVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDatasetVersionsInputDict], ) -> ListDatasetVersionsOutput: """ Lists all published versions of a dataset, sorted by version number descending (newest first). Does not include the DRAFT working copy. Args: - input: - An instance of `ListDatasetVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2844,20 +4995,39 @@ def list_dataset_versions( Returns: An instance of `ListDatasetVersionsOutput`. """ - return self._invoke(input, _models.LIST_DATASET_VERSIONS, [], plugins) + def list_dataset_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDatasetVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_DATASET_VERSIONS, args, kwargs), + _models.LIST_DATASET_VERSIONS, + [], + plugins, + ) + + @_overload + def list_evaluators( + self, + request: _models.ListEvaluatorsInput | _models.ListEvaluatorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEvaluatorsOutput: ... + + @_overload def list_evaluators( self, - input: ListEvaluatorsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEvaluatorsInputDict], ) -> ListEvaluatorsOutput: """ Lists all available evaluators, including both builtin evaluators provided by the service and custom evaluators created by the user. Args: - input: - An instance of `ListEvaluatorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2867,18 +5037,40 @@ def list_evaluators( Returns: An instance of `ListEvaluatorsOutput`. """ - return self._invoke(input, _models.LIST_EVALUATORS, [], plugins) + def list_evaluators( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEvaluatorsOutput: + return self._invoke( + self._select_input(_models.LIST_EVALUATORS, args, kwargs), + _models.LIST_EVALUATORS, + [], + plugins, + ) + + @_overload def list_gateway_rate_limits( - self, input: ListGatewayRateLimitsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGatewayRateLimitsInput + | _models.ListGatewayRateLimitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewayRateLimitsOutput: ... + + @_overload + def list_gateway_rate_limits( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayRateLimitsInputDict], ) -> ListGatewayRateLimitsOutput: """ Lists all rate limits for a gateway. Results are paginated. Use the `nextToken` parameter to retrieve additional results. Args: - input: - An instance of `ListGatewayRateLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2888,17 +5080,38 @@ def list_gateway_rate_limits( Returns: An instance of `ListGatewayRateLimitsOutput`. """ - return self._invoke(input, _models.LIST_GATEWAY_RATE_LIMITS, [], plugins) + def list_gateway_rate_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayRateLimitsOutput: + return self._invoke( + self._select_input(_models.LIST_GATEWAY_RATE_LIMITS, args, kwargs), + _models.LIST_GATEWAY_RATE_LIMITS, + [], + plugins, + ) + + @_overload + def list_gateway_rules( + self, + request: _models.ListGatewayRulesInput | _models.ListGatewayRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewayRulesOutput: ... + + @_overload def list_gateway_rules( - self, input: ListGatewayRulesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayRulesInputDict], ) -> ListGatewayRulesOutput: """ Lists all rules for a gateway. Args: - input: - An instance of `ListGatewayRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2908,19 +5121,38 @@ def list_gateway_rules( Returns: An instance of `ListGatewayRulesOutput`. """ - return self._invoke(input, _models.LIST_GATEWAY_RULES, [], plugins) + def list_gateway_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayRulesOutput: + return self._invoke( + self._select_input(_models.LIST_GATEWAY_RULES, args, kwargs), + _models.LIST_GATEWAY_RULES, + [], + plugins, + ) + + @_overload + def list_gateways( + self, + request: _models.ListGatewaysInput | _models.ListGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewaysOutput: ... + + @_overload def list_gateways( self, - input: ListGatewaysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewaysInputDict], ) -> ListGatewaysOutput: """ Lists all gateways in the account. Args: - input: - An instance of `ListGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2930,17 +5162,38 @@ def list_gateways( Returns: An instance of `ListGatewaysOutput`. """ - return self._invoke(input, _models.LIST_GATEWAYS, [], plugins) + def list_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewaysOutput: + return self._invoke( + self._select_input(_models.LIST_GATEWAYS, args, kwargs), + _models.LIST_GATEWAYS, + [], + plugins, + ) + + @_overload + def list_gateway_targets( + self, + request: _models.ListGatewayTargetsInput | _models.ListGatewayTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewayTargetsOutput: ... + + @_overload def list_gateway_targets( - self, input: ListGatewayTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayTargetsInputDict], ) -> ListGatewayTargetsOutput: """ Lists all targets for a specific gateway. Args: - input: - An instance of `ListGatewayTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2950,17 +5203,39 @@ def list_gateway_targets( Returns: An instance of `ListGatewayTargetsOutput`. """ - return self._invoke(input, _models.LIST_GATEWAY_TARGETS, [], plugins) + def list_gateway_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayTargetsOutput: + return self._invoke( + self._select_input(_models.LIST_GATEWAY_TARGETS, args, kwargs), + _models.LIST_GATEWAY_TARGETS, + [], + plugins, + ) + + @_overload + def list_harness_endpoints( + self, + request: _models.ListHarnessEndpointsInput + | _models.ListHarnessEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListHarnessEndpointsOutput: ... + + @_overload def list_harness_endpoints( - self, input: ListHarnessEndpointsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListHarnessEndpointsInputDict], ) -> ListHarnessEndpointsOutput: """ Operation to list the endpoints of a harness. Args: - input: - An instance of `ListHarnessEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2970,19 +5245,38 @@ def list_harness_endpoints( Returns: An instance of `ListHarnessEndpointsOutput`. """ - return self._invoke(input, _models.LIST_HARNESS_ENDPOINTS, [], plugins) + def list_harness_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListHarnessEndpointsOutput: + return self._invoke( + self._select_input(_models.LIST_HARNESS_ENDPOINTS, args, kwargs), + _models.LIST_HARNESS_ENDPOINTS, + [], + plugins, + ) + + @_overload + def list_harnesses( + self, + request: _models.ListHarnessesInput | _models.ListHarnessesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListHarnessesOutput: ... + + @_overload def list_harnesses( self, - input: ListHarnessesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListHarnessesInputDict], ) -> ListHarnessesOutput: """ Operation to list harnesses. Args: - input: - An instance of `ListHarnessesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2992,17 +5286,39 @@ def list_harnesses( Returns: An instance of `ListHarnessesOutput`. """ - return self._invoke(input, _models.LIST_HARNESSES, [], plugins) + def list_harnesses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListHarnessesOutput: + return self._invoke( + self._select_input(_models.LIST_HARNESSES, args, kwargs), + _models.LIST_HARNESSES, + [], + plugins, + ) + + @_overload + def list_harness_versions( + self, + request: _models.ListHarnessVersionsInput + | _models.ListHarnessVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListHarnessVersionsOutput: ... + + @_overload def list_harness_versions( - self, input: ListHarnessVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListHarnessVersionsInputDict], ) -> ListHarnessVersionsOutput: """ Operation to list the versions of a Harness. Args: - input: - An instance of `ListHarnessVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3012,20 +5328,39 @@ def list_harness_versions( Returns: An instance of `ListHarnessVersionsOutput`. """ - return self._invoke(input, _models.LIST_HARNESS_VERSIONS, [], plugins) + def list_harness_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListHarnessVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_HARNESS_VERSIONS, args, kwargs), + _models.LIST_HARNESS_VERSIONS, + [], + plugins, + ) + + @_overload + def list_memories( + self, + request: _models.ListMemoriesInput | _models.ListMemoriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMemoriesOutput: ... + + @_overload def list_memories( self, - input: ListMemoriesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMemoriesInputDict], ) -> ListMemoriesOutput: """ Lists the available Amazon Bedrock AgentCore Memory resources in the current Amazon Web Services Region. Args: - input: - An instance of `ListMemoriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3035,19 +5370,39 @@ def list_memories( Returns: An instance of `ListMemoriesOutput`. """ - return self._invoke(input, _models.LIST_MEMORIES, [], plugins) + def list_memories( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMemoriesOutput: + return self._invoke( + self._select_input(_models.LIST_MEMORIES, args, kwargs), + _models.LIST_MEMORIES, + [], + plugins, + ) + + @_overload + def list_oauth2_credential_providers( + self, + request: _models.ListOauth2CredentialProvidersInput + | _models.ListOauth2CredentialProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOauth2CredentialProvidersOutput: ... + + @_overload def list_oauth2_credential_providers( self, - input: ListOauth2CredentialProvidersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOauth2CredentialProvidersInputDict], ) -> ListOauth2CredentialProvidersOutput: """ Lists all OAuth2 credential providers in your account. Args: - input: - An instance of `ListOauth2CredentialProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3057,22 +5412,40 @@ def list_oauth2_credential_providers( Returns: An instance of `ListOauth2CredentialProvidersOutput`. """ + + def list_oauth2_credential_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOauth2CredentialProvidersOutput: return self._invoke( - input, _models.LIST_OAUTH2_CREDENTIAL_PROVIDERS, [], plugins + self._select_input(_models.LIST_OAUTH2_CREDENTIAL_PROVIDERS, args, kwargs), + _models.LIST_OAUTH2_CREDENTIAL_PROVIDERS, + [], + plugins, ) + @_overload + def list_online_evaluation_configs( + self, + request: _models.ListOnlineEvaluationConfigsInput + | _models.ListOnlineEvaluationConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOnlineEvaluationConfigsOutput: ... + + @_overload def list_online_evaluation_configs( self, - input: ListOnlineEvaluationConfigsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOnlineEvaluationConfigsInputDict], ) -> ListOnlineEvaluationConfigsOutput: """ Lists all online evaluation configurations in the account, providing summary information about each configuration's status and settings. Args: - input: - An instance of `ListOnlineEvaluationConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3082,17 +5455,39 @@ def list_online_evaluation_configs( Returns: An instance of `ListOnlineEvaluationConfigsOutput`. """ - return self._invoke(input, _models.LIST_ONLINE_EVALUATION_CONFIGS, [], plugins) + def list_online_evaluation_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOnlineEvaluationConfigsOutput: + return self._invoke( + self._select_input(_models.LIST_ONLINE_EVALUATION_CONFIGS, args, kwargs), + _models.LIST_ONLINE_EVALUATION_CONFIGS, + [], + plugins, + ) + + @_overload + def list_payment_connectors( + self, + request: _models.ListPaymentConnectorsInput + | _models.ListPaymentConnectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentConnectorsOutput: ... + + @_overload def list_payment_connectors( - self, input: ListPaymentConnectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentConnectorsInputDict], ) -> ListPaymentConnectorsOutput: """ Lists all payment connectors for a specified payment manager. Args: - input: - An instance of `ListPaymentConnectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3102,19 +5497,39 @@ def list_payment_connectors( Returns: An instance of `ListPaymentConnectorsOutput`. """ - return self._invoke(input, _models.LIST_PAYMENT_CONNECTORS, [], plugins) + def list_payment_connectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentConnectorsOutput: + return self._invoke( + self._select_input(_models.LIST_PAYMENT_CONNECTORS, args, kwargs), + _models.LIST_PAYMENT_CONNECTORS, + [], + plugins, + ) + + @_overload + def list_payment_credential_providers( + self, + request: _models.ListPaymentCredentialProvidersInput + | _models.ListPaymentCredentialProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentCredentialProvidersOutput: ... + + @_overload def list_payment_credential_providers( self, - input: ListPaymentCredentialProvidersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentCredentialProvidersInputDict], ) -> ListPaymentCredentialProvidersOutput: """ Lists all payment credential providers in the account. Args: - input: - An instance of `ListPaymentCredentialProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3124,21 +5539,39 @@ def list_payment_credential_providers( Returns: An instance of `ListPaymentCredentialProvidersOutput`. """ + + def list_payment_credential_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentCredentialProvidersOutput: return self._invoke( - input, _models.LIST_PAYMENT_CREDENTIAL_PROVIDERS, [], plugins + self._select_input(_models.LIST_PAYMENT_CREDENTIAL_PROVIDERS, args, kwargs), + _models.LIST_PAYMENT_CREDENTIAL_PROVIDERS, + [], + plugins, ) + @_overload + def list_payment_managers( + self, + request: _models.ListPaymentManagersInput + | _models.ListPaymentManagersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentManagersOutput: ... + + @_overload def list_payment_managers( self, - input: ListPaymentManagersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentManagersInputDict], ) -> ListPaymentManagersOutput: """ Lists all payment managers in the account. Args: - input: - An instance of `ListPaymentManagersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3148,10 +5581,33 @@ def list_payment_managers( Returns: An instance of `ListPaymentManagersOutput`. """ - return self._invoke(input, _models.LIST_PAYMENT_MANAGERS, [], plugins) + def list_payment_managers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentManagersOutput: + return self._invoke( + self._select_input(_models.LIST_PAYMENT_MANAGERS, args, kwargs), + _models.LIST_PAYMENT_MANAGERS, + [], + plugins, + ) + + @_overload + def list_policies( + self, + request: _models.ListPoliciesInput | _models.ListPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPoliciesOutput: ... + + @_overload def list_policies( - self, input: ListPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPoliciesInputDict], ) -> ListPoliciesOutput: """ Retrieves a list of policies within the AgentCore Policy engine. This @@ -3160,8 +5616,6 @@ def list_policies( filtered by policy engine or resource associations. Args: - input: - An instance of `ListPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3171,12 +5625,33 @@ def list_policies( Returns: An instance of `ListPoliciesOutput`. """ - return self._invoke(input, _models.LIST_POLICIES, [], plugins) + def list_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_POLICIES, args, kwargs), + _models.LIST_POLICIES, + [], + plugins, + ) + + @_overload def list_policy_engines( self, - input: ListPolicyEnginesInput | None = None, + request: _models.ListPolicyEnginesInput | _models.ListPolicyEnginesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListPolicyEnginesOutput: ... + + @_overload + def list_policy_engines( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyEnginesInputDict], ) -> ListPolicyEnginesOutput: """ Retrieves a list of policy engines within the AgentCore Policy system. @@ -3185,8 +5660,6 @@ def list_policy_engines( a container for related policies. Args: - input: - An instance of `ListPolicyEnginesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3196,12 +5669,34 @@ def list_policy_engines( Returns: An instance of `ListPolicyEnginesOutput`. """ - return self._invoke(input, _models.LIST_POLICY_ENGINES, [], plugins) + def list_policy_engines( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyEnginesOutput: + return self._invoke( + self._select_input(_models.LIST_POLICY_ENGINES, args, kwargs), + _models.LIST_POLICY_ENGINES, + [], + plugins, + ) + + @_overload + def list_policy_engine_summaries( + self, + request: _models.ListPolicyEngineSummariesInput + | _models.ListPolicyEngineSummariesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyEngineSummariesOutput: ... + + @_overload def list_policy_engine_summaries( self, - input: ListPolicyEngineSummariesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyEngineSummariesInputDict], ) -> ListPolicyEngineSummariesOutput: """ Retrieves a paginated list of metadata-only policy engine summaries @@ -3213,8 +5708,6 @@ def list_policy_engine_summaries( where only metadata is needed. Args: - input: - An instance of `ListPolicyEngineSummariesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3224,12 +5717,34 @@ def list_policy_engine_summaries( Returns: An instance of `ListPolicyEngineSummariesOutput`. """ - return self._invoke(input, _models.LIST_POLICY_ENGINE_SUMMARIES, [], plugins) + def list_policy_engine_summaries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyEngineSummariesOutput: + return self._invoke( + self._select_input(_models.LIST_POLICY_ENGINE_SUMMARIES, args, kwargs), + _models.LIST_POLICY_ENGINE_SUMMARIES, + [], + plugins, + ) + + @_overload + def list_policy_generation_assets( + self, + request: _models.ListPolicyGenerationAssetsInput + | _models.ListPolicyGenerationAssetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyGenerationAssetsOutput: ... + + @_overload def list_policy_generation_assets( self, - input: ListPolicyGenerationAssetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyGenerationAssetsInputDict], ) -> ListPolicyGenerationAssetsOutput: """ Retrieves a list of generated policy assets from a policy generation @@ -3239,8 +5754,6 @@ def list_policy_generation_assets( multiple generated policy options. Args: - input: - An instance of `ListPolicyGenerationAssetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3250,10 +5763,34 @@ def list_policy_generation_assets( Returns: An instance of `ListPolicyGenerationAssetsOutput`. """ - return self._invoke(input, _models.LIST_POLICY_GENERATION_ASSETS, [], plugins) + def list_policy_generation_assets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyGenerationAssetsOutput: + return self._invoke( + self._select_input(_models.LIST_POLICY_GENERATION_ASSETS, args, kwargs), + _models.LIST_POLICY_GENERATION_ASSETS, + [], + plugins, + ) + + @_overload + def list_policy_generations( + self, + request: _models.ListPolicyGenerationsInput + | _models.ListPolicyGenerationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyGenerationsOutput: ... + + @_overload def list_policy_generations( - self, input: ListPolicyGenerationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyGenerationsInputDict], ) -> ListPolicyGenerationsOutput: """ Retrieves a list of policy generation requests within the AgentCore @@ -3261,8 +5798,6 @@ def list_policy_generations( track and manage AI-powered policy generation operations. Args: - input: - An instance of `ListPolicyGenerationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3272,12 +5807,34 @@ def list_policy_generations( Returns: An instance of `ListPolicyGenerationsOutput`. """ - return self._invoke(input, _models.LIST_POLICY_GENERATIONS, [], plugins) + def list_policy_generations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyGenerationsOutput: + return self._invoke( + self._select_input(_models.LIST_POLICY_GENERATIONS, args, kwargs), + _models.LIST_POLICY_GENERATIONS, + [], + plugins, + ) + + @_overload + def list_policy_generation_summaries( + self, + request: _models.ListPolicyGenerationSummariesInput + | _models.ListPolicyGenerationSummariesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyGenerationSummariesOutput: ... + + @_overload def list_policy_generation_summaries( self, - input: ListPolicyGenerationSummariesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyGenerationSummariesInputDict], ) -> ListPolicyGenerationSummariesOutput: """ Retrieves a paginated list of metadata-only policy generation summaries @@ -3289,8 +5846,6 @@ def list_policy_generation_summaries( inventory, and integration scenarios where only metadata is needed. Args: - input: - An instance of `ListPolicyGenerationSummariesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3300,12 +5855,34 @@ def list_policy_generation_summaries( Returns: An instance of `ListPolicyGenerationSummariesOutput`. """ + + def list_policy_generation_summaries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyGenerationSummariesOutput: return self._invoke( - input, _models.LIST_POLICY_GENERATION_SUMMARIES, [], plugins + self._select_input(_models.LIST_POLICY_GENERATION_SUMMARIES, args, kwargs), + _models.LIST_POLICY_GENERATION_SUMMARIES, + [], + plugins, ) + @_overload + def list_policy_summaries( + self, + request: _models.ListPolicySummariesInput + | _models.ListPolicySummariesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicySummariesOutput: ... + + @_overload def list_policy_summaries( - self, input: ListPolicySummariesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicySummariesInputDict], ) -> ListPolicySummariesOutput: """ Retrieves a paginated list of metadata-only policy summaries within a @@ -3317,8 +5894,6 @@ def list_policy_summaries( and integration scenarios where only metadata is needed. Args: - input: - An instance of `ListPolicySummariesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3328,12 +5903,33 @@ def list_policy_summaries( Returns: An instance of `ListPolicySummariesOutput`. """ - return self._invoke(input, _models.LIST_POLICY_SUMMARIES, [], plugins) + def list_policy_summaries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicySummariesOutput: + return self._invoke( + self._select_input(_models.LIST_POLICY_SUMMARIES, args, kwargs), + _models.LIST_POLICY_SUMMARIES, + [], + plugins, + ) + + @_overload def list_registries( self, - input: ListRegistriesInput | None = None, + request: _models.ListRegistriesInput | _models.ListRegistriesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListRegistriesOutput: ... + + @_overload + def list_registries( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRegistriesInputDict], ) -> ListRegistriesOutput: """ Lists all registries in the account. You can optionally filter results @@ -3341,8 +5937,6 @@ def list_registries( `authorizerType` parameter. Args: - input: - An instance of `ListRegistriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3352,10 +5946,34 @@ def list_registries( Returns: An instance of `ListRegistriesOutput`. """ - return self._invoke(input, _models.LIST_REGISTRIES, [], plugins) + def list_registries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRegistriesOutput: + return self._invoke( + self._select_input(_models.LIST_REGISTRIES, args, kwargs), + _models.LIST_REGISTRIES, + [], + plugins, + ) + + @_overload + def list_registry_records( + self, + request: _models.ListRegistryRecordsInput + | _models.ListRegistryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRegistryRecordsOutput: ... + + @_overload def list_registry_records( - self, input: ListRegistryRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRegistryRecordsInputDict], ) -> ListRegistryRecordsOutput: """ Lists registry records within a registry. You can optionally filter @@ -3363,8 +5981,6 @@ def list_registry_records( When multiple filters are specified, they are combined using AND logic. Args: - input: - An instance of `ListRegistryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3374,10 +5990,34 @@ def list_registry_records( Returns: An instance of `ListRegistryRecordsOutput`. """ - return self._invoke(input, _models.LIST_REGISTRY_RECORDS, [], plugins) + def list_registry_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRegistryRecordsOutput: + return self._invoke( + self._select_input(_models.LIST_REGISTRY_RECORDS, args, kwargs), + _models.LIST_REGISTRY_RECORDS, + [], + plugins, + ) + + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags associated with the specified resource. @@ -3387,8 +6027,6 @@ def list_tags_for_resource( Browser Profile, Code Interpreter tool, and Gateway. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3398,19 +6036,39 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def list_workload_identities( + self, + request: _models.ListWorkloadIdentitiesInput + | _models.ListWorkloadIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListWorkloadIdentitiesOutput: ... + + @_overload def list_workload_identities( self, - input: ListWorkloadIdentitiesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListWorkloadIdentitiesInputDict], ) -> ListWorkloadIdentitiesOutput: """ Lists all workload identities in your account. Args: - input: - An instance of `ListWorkloadIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3420,10 +6078,33 @@ def list_workload_identities( Returns: An instance of `ListWorkloadIdentitiesOutput`. """ - return self._invoke(input, _models.LIST_WORKLOAD_IDENTITIES, [], plugins) + def list_workload_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListWorkloadIdentitiesOutput: + return self._invoke( + self._select_input(_models.LIST_WORKLOAD_IDENTITIES, args, kwargs), + _models.LIST_WORKLOAD_IDENTITIES, + [], + plugins, + ) + + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload + def put_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Creates or updates a resource-based policy for a resource with the @@ -3434,8 +6115,6 @@ def put_resource_policy( Gateway. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3445,12 +6124,34 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def reset_token_vault_key_material( + self, + request: _models.ResetTokenVaultKeyMaterialInput + | _models.ResetTokenVaultKeyMaterialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetTokenVaultKeyMaterialOutput: ... + + @_overload def reset_token_vault_key_material( self, - input: ResetTokenVaultKeyMaterialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetTokenVaultKeyMaterialInputDict], ) -> ResetTokenVaultKeyMaterialOutput: """ Resets the key material for a token vault whose customer managed KMS key @@ -3472,8 +6173,6 @@ def reset_token_vault_key_material( deletion in KMS. To switch to a different key, use `SetTokenVaultCMK`. Args: - input: - An instance of `ResetTokenVaultKeyMaterialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3483,12 +6182,34 @@ def reset_token_vault_key_material( Returns: An instance of `ResetTokenVaultKeyMaterialOutput`. """ - return self._invoke(input, _models.RESET_TOKEN_VAULT_KEY_MATERIAL, [], plugins) + def reset_token_vault_key_material( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetTokenVaultKeyMaterialOutput: + return self._invoke( + self._select_input(_models.RESET_TOKEN_VAULT_KEY_MATERIAL, args, kwargs), + _models.RESET_TOKEN_VAULT_KEY_MATERIAL, + [], + plugins, + ) + + @_overload + def rotate_payment_connector_credentials( + self, + request: _models.RotatePaymentConnectorCredentialsInput + | _models.RotatePaymentConnectorCredentialsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RotatePaymentConnectorCredentialsOutput: ... + + @_overload def rotate_payment_connector_credentials( self, - input: RotatePaymentConnectorCredentialsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RotatePaymentConnectorCredentialsInputDict], ) -> RotatePaymentConnectorCredentialsOutput: """ Replaces the service-managed credentials of a payment connector with @@ -3512,8 +6233,6 @@ def rotate_payment_connector_credentials( outside AgentCore. Args: - input: - An instance of `RotatePaymentConnectorCredentialsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3523,19 +6242,40 @@ def rotate_payment_connector_credentials( Returns: An instance of `RotatePaymentConnectorCredentialsOutput`. """ + + def rotate_payment_connector_credentials( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RotatePaymentConnectorCredentialsOutput: return self._invoke( - input, _models.ROTATE_PAYMENT_CONNECTOR_CREDENTIALS, [], plugins + self._select_input( + _models.ROTATE_PAYMENT_CONNECTOR_CREDENTIALS, args, kwargs + ), + _models.ROTATE_PAYMENT_CONNECTOR_CREDENTIALS, + [], + plugins, ) + @_overload + def set_token_vault_cmk( + self, + request: _models.SetTokenVaultCMKInput | _models.SetTokenVaultCMKInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetTokenVaultCMKOutput: ... + + @_overload def set_token_vault_cmk( - self, input: SetTokenVaultCMKInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetTokenVaultCMKInputDict], ) -> SetTokenVaultCMKOutput: """ Sets the customer master key (CMK) for a token vault. Args: - input: - An instance of `SetTokenVaultCMKInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3545,10 +6285,34 @@ def set_token_vault_cmk( Returns: An instance of `SetTokenVaultCMKOutput`. """ - return self._invoke(input, _models.SET_TOKEN_VAULT_CMK, [], plugins) + def set_token_vault_cmk( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetTokenVaultCMKOutput: + return self._invoke( + self._select_input(_models.SET_TOKEN_VAULT_CMK, args, kwargs), + _models.SET_TOKEN_VAULT_CMK, + [], + plugins, + ) + + @_overload + def start_policy_generation( + self, + request: _models.StartPolicyGenerationInput + | _models.StartPolicyGenerationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartPolicyGenerationOutput: ... + + @_overload def start_policy_generation( - self, input: StartPolicyGenerationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartPolicyGenerationInputDict], ) -> StartPolicyGenerationOutput: """ Initiates the AI-powered generation of Dogwood policies from natural @@ -3567,8 +6331,6 @@ def start_policy_generation( generated policies may require refinement for complex scenarios. Args: - input: - An instance of `StartPolicyGenerationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3578,12 +6340,34 @@ def start_policy_generation( Returns: An instance of `StartPolicyGenerationOutput`. """ - return self._invoke(input, _models.START_POLICY_GENERATION, [], plugins) + def start_policy_generation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartPolicyGenerationOutput: + return self._invoke( + self._select_input(_models.START_POLICY_GENERATION, args, kwargs), + _models.START_POLICY_GENERATION, + [], + plugins, + ) + + @_overload + def submit_registry_record_for_approval( + self, + request: _models.SubmitRegistryRecordForApprovalInput + | _models.SubmitRegistryRecordForApprovalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubmitRegistryRecordForApprovalOutput: ... + + @_overload def submit_registry_record_for_approval( self, - input: SubmitRegistryRecordForApprovalInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubmitRegistryRecordForApprovalInputDict], ) -> SubmitRegistryRecordForApprovalOutput: """ Submits a registry record for approval. This transitions the record from @@ -3591,8 +6375,6 @@ def submit_registry_record_for_approval( auto-approval enabled, the record is automatically approved. Args: - input: - An instance of `SubmitRegistryRecordForApprovalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3602,12 +6384,36 @@ def submit_registry_record_for_approval( Returns: An instance of `SubmitRegistryRecordForApprovalOutput`. """ + + def submit_registry_record_for_approval( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubmitRegistryRecordForApprovalOutput: return self._invoke( - input, _models.SUBMIT_REGISTRY_RECORD_FOR_APPROVAL, [], plugins + self._select_input( + _models.SUBMIT_REGISTRY_RECORD_FOR_APPROVAL, args, kwargs + ), + _models.SUBMIT_REGISTRY_RECORD_FOR_APPROVAL, + [], + plugins, ) + @_overload def synchronize_gateway_targets( - self, input: SynchronizeGatewayTargetsInput, plugins: list[Plugin] | None = None + self, + request: _models.SynchronizeGatewayTargetsInput + | _models.SynchronizeGatewayTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SynchronizeGatewayTargetsOutput: ... + + @_overload + def synchronize_gateway_targets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SynchronizeGatewayTargetsInputDict], ) -> SynchronizeGatewayTargetsOutput: """ Synchronizes the gateway targets by fetching the latest tool definitions @@ -3623,8 +6429,6 @@ def synchronize_gateway_targets( `UpdateGatewayTarget` call to enable dynamic tool synchronization. Args: - input: - An instance of `SynchronizeGatewayTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3634,10 +6438,33 @@ def synchronize_gateway_targets( Returns: An instance of `SynchronizeGatewayTargetsOutput`. """ - return self._invoke(input, _models.SYNCHRONIZE_GATEWAY_TARGETS, [], plugins) + def synchronize_gateway_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SynchronizeGatewayTargetsOutput: + return self._invoke( + self._select_input(_models.SYNCHRONIZE_GATEWAY_TARGETS, args, kwargs), + _models.SYNCHRONIZE_GATEWAY_TARGETS, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associates the specified tags to a resource with the specified @@ -3650,8 +6477,6 @@ def tag_resource( Browser Profile, Code Interpreter tool, and Gateway. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3661,10 +6486,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes the specified tags from the specified resource. @@ -3674,8 +6522,6 @@ def untag_resource( Browser Profile, Code Interpreter tool, and Gateway. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3685,17 +6531,38 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_agent_runtime( + self, + request: _models.UpdateAgentRuntimeInput | _models.UpdateAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentRuntimeOutput: ... + + @_overload def update_agent_runtime( - self, input: UpdateAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentRuntimeInputDict], ) -> UpdateAgentRuntimeOutput: """ Updates an existing Amazon Secure Agent. Args: - input: - An instance of `UpdateAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3705,19 +6572,39 @@ def update_agent_runtime( Returns: An instance of `UpdateAgentRuntimeOutput`. """ - return self._invoke(input, _models.UPDATE_AGENT_RUNTIME, [], plugins) + def update_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentRuntimeOutput: + return self._invoke( + self._select_input(_models.UPDATE_AGENT_RUNTIME, args, kwargs), + _models.UPDATE_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload + def update_agent_runtime_endpoint( + self, + request: _models.UpdateAgentRuntimeEndpointInput + | _models.UpdateAgentRuntimeEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAgentRuntimeEndpointOutput: ... + + @_overload def update_agent_runtime_endpoint( self, - input: UpdateAgentRuntimeEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAgentRuntimeEndpointInputDict], ) -> UpdateAgentRuntimeEndpointOutput: """ Updates an existing Amazon Bedrock AgentCore Runtime endpoint. Args: - input: - An instance of `UpdateAgentRuntimeEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3727,19 +6614,39 @@ def update_agent_runtime_endpoint( Returns: An instance of `UpdateAgentRuntimeEndpointOutput`. """ - return self._invoke(input, _models.UPDATE_AGENT_RUNTIME_ENDPOINT, [], plugins) + def update_agent_runtime_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAgentRuntimeEndpointOutput: + return self._invoke( + self._select_input(_models.UPDATE_AGENT_RUNTIME_ENDPOINT, args, kwargs), + _models.UPDATE_AGENT_RUNTIME_ENDPOINT, + [], + plugins, + ) + + @_overload + def update_api_key_credential_provider( + self, + request: _models.UpdateApiKeyCredentialProviderInput + | _models.UpdateApiKeyCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateApiKeyCredentialProviderOutput: ... + + @_overload def update_api_key_credential_provider( self, - input: UpdateApiKeyCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateApiKeyCredentialProviderInputDict], ) -> UpdateApiKeyCredentialProviderOutput: """ Updates an existing API key credential provider. Args: - input: - An instance of `UpdateApiKeyCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3749,12 +6656,36 @@ def update_api_key_credential_provider( Returns: An instance of `UpdateApiKeyCredentialProviderOutput`. """ + + def update_api_key_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateApiKeyCredentialProviderOutput: return self._invoke( - input, _models.UPDATE_API_KEY_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.UPDATE_API_KEY_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.UPDATE_API_KEY_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + def update_capacity_provider( + self, + request: _models.UpdateCapacityProviderInput + | _models.UpdateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCapacityProviderOutput: ... + + @_overload def update_capacity_provider( - self, input: UpdateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityProviderInputDict], ) -> UpdateCapacityProviderOutput: """ Updates a capacity provider. Only the description can be changed. To @@ -3762,8 +6693,6 @@ def update_capacity_provider( storage, create a new capacity provider. Args: - input: - An instance of `UpdateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3773,10 +6702,34 @@ def update_capacity_provider( Returns: An instance of `UpdateCapacityProviderOutput`. """ - return self._invoke(input, _models.UPDATE_CAPACITY_PROVIDER, [], plugins) + def update_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityProviderOutput: + return self._invoke( + self._select_input(_models.UPDATE_CAPACITY_PROVIDER, args, kwargs), + _models.UPDATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def update_configuration_bundle( + self, + request: _models.UpdateConfigurationBundleInput + | _models.UpdateConfigurationBundleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateConfigurationBundleOutput: ... + + @_overload def update_configuration_bundle( - self, input: UpdateConfigurationBundleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateConfigurationBundleInputDict], ) -> UpdateConfigurationBundleOutput: """ Updates a configuration bundle by creating a new version with the @@ -3784,8 +6737,6 @@ def update_configuration_bundle( history. Args: - input: - An instance of `UpdateConfigurationBundleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3795,17 +6746,39 @@ def update_configuration_bundle( Returns: An instance of `UpdateConfigurationBundleOutput`. """ - return self._invoke(input, _models.UPDATE_CONFIGURATION_BUNDLE, [], plugins) + def update_configuration_bundle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateConfigurationBundleOutput: + return self._invoke( + self._select_input(_models.UPDATE_CONFIGURATION_BUNDLE, args, kwargs), + _models.UPDATE_CONFIGURATION_BUNDLE, + [], + plugins, + ) + + @_overload + def update_consent_portal( + self, + request: _models.UpdateConsentPortalInput + | _models.UpdateConsentPortalInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateConsentPortalOutput: ... + + @_overload def update_consent_portal( - self, input: UpdateConsentPortalInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateConsentPortalInputDict], ) -> UpdateConsentPortalOutput: """ Updates an existing consent portal. Args: - input: - An instance of `UpdateConsentPortalInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3815,10 +6788,33 @@ def update_consent_portal( Returns: An instance of `UpdateConsentPortalOutput`. """ - return self._invoke(input, _models.UPDATE_CONSENT_PORTAL, [], plugins) + def update_consent_portal( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateConsentPortalOutput: + return self._invoke( + self._select_input(_models.UPDATE_CONSENT_PORTAL, args, kwargs), + _models.UPDATE_CONSENT_PORTAL, + [], + plugins, + ) + + @_overload + def update_dataset( + self, + request: _models.UpdateDatasetInput | _models.UpdateDatasetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDatasetOutput: ... + + @_overload def update_dataset( - self, input: UpdateDatasetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDatasetInputDict], ) -> UpdateDatasetOutput: """ Updates a dataset's metadata. Synchronous operation. Only provided @@ -3827,8 +6823,6 @@ def update_dataset( `DeleteDatasetExamples`. Args: - input: - An instance of `UpdateDatasetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3838,10 +6832,34 @@ def update_dataset( Returns: An instance of `UpdateDatasetOutput`. """ - return self._invoke(input, _models.UPDATE_DATASET, [], plugins) + def update_dataset( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDatasetOutput: + return self._invoke( + self._select_input(_models.UPDATE_DATASET, args, kwargs), + _models.UPDATE_DATASET, + [], + plugins, + ) + + @_overload def update_dataset_examples( - self, input: UpdateDatasetExamplesInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateDatasetExamplesInput + | _models.UpdateDatasetExamplesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDatasetExamplesOutput: ... + + @_overload + def update_dataset_examples( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDatasetExamplesInputDict], ) -> UpdateDatasetExamplesOutput: """ Updates multiple existing examples in-place on DRAFT. All examples are @@ -3850,8 +6868,6 @@ def update_dataset_examples( (all-or-nothing semantics). Args: - input: - An instance of `UpdateDatasetExamplesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3861,10 +6877,33 @@ def update_dataset_examples( Returns: An instance of `UpdateDatasetExamplesOutput`. """ - return self._invoke(input, _models.UPDATE_DATASET_EXAMPLES, [], plugins) + def update_dataset_examples( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDatasetExamplesOutput: + return self._invoke( + self._select_input(_models.UPDATE_DATASET_EXAMPLES, args, kwargs), + _models.UPDATE_DATASET_EXAMPLES, + [], + plugins, + ) + + @_overload + def update_evaluator( + self, + request: _models.UpdateEvaluatorInput | _models.UpdateEvaluatorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateEvaluatorOutput: ... + + @_overload def update_evaluator( - self, input: UpdateEvaluatorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateEvaluatorInputDict], ) -> UpdateEvaluatorOutput: """ Updates a custom evaluator's configuration, description, or evaluation @@ -3872,8 +6911,6 @@ def update_evaluator( locked for modification. Args: - input: - An instance of `UpdateEvaluatorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3883,10 +6920,33 @@ def update_evaluator( Returns: An instance of `UpdateEvaluatorOutput`. """ - return self._invoke(input, _models.UPDATE_EVALUATOR, [], plugins) + def update_evaluator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateEvaluatorOutput: + return self._invoke( + self._select_input(_models.UPDATE_EVALUATOR, args, kwargs), + _models.UPDATE_EVALUATOR, + [], + plugins, + ) + + @_overload + def update_gateway( + self, + request: _models.UpdateGatewayInput | _models.UpdateGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayOutput: ... + + @_overload def update_gateway( - self, input: UpdateGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayInputDict], ) -> UpdateGatewayOutput: """ Updates an existing gateway. @@ -3897,8 +6957,6 @@ def update_gateway( [GetGateway](https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_GetGateway.html). Args: - input: - An instance of `UpdateGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3908,18 +6966,40 @@ def update_gateway( Returns: An instance of `UpdateGatewayOutput`. """ - return self._invoke(input, _models.UPDATE_GATEWAY, [], plugins) + def update_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayOutput: + return self._invoke( + self._select_input(_models.UPDATE_GATEWAY, args, kwargs), + _models.UPDATE_GATEWAY, + [], + plugins, + ) + + @_overload + def update_gateway_rate_limit( + self, + request: _models.UpdateGatewayRateLimitInput + | _models.UpdateGatewayRateLimitInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayRateLimitOutput: ... + + @_overload def update_gateway_rate_limit( - self, input: UpdateGatewayRateLimitInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayRateLimitInputDict], ) -> UpdateGatewayRateLimitOutput: """ Updates the entries of a gateway rate limit. The dimension keys are immutable after creation. Args: - input: - An instance of `UpdateGatewayRateLimitInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3929,17 +7009,38 @@ def update_gateway_rate_limit( Returns: An instance of `UpdateGatewayRateLimitOutput`. """ - return self._invoke(input, _models.UPDATE_GATEWAY_RATE_LIMIT, [], plugins) + def update_gateway_rate_limit( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayRateLimitOutput: + return self._invoke( + self._select_input(_models.UPDATE_GATEWAY_RATE_LIMIT, args, kwargs), + _models.UPDATE_GATEWAY_RATE_LIMIT, + [], + plugins, + ) + + @_overload + def update_gateway_rule( + self, + request: _models.UpdateGatewayRuleInput | _models.UpdateGatewayRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayRuleOutput: ... + + @_overload def update_gateway_rule( - self, input: UpdateGatewayRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayRuleInputDict], ) -> UpdateGatewayRuleOutput: """ Updates a gateway rule's priority, conditions, actions, or description. Args: - input: - An instance of `UpdateGatewayRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3949,10 +7050,34 @@ def update_gateway_rule( Returns: An instance of `UpdateGatewayRuleOutput`. """ - return self._invoke(input, _models.UPDATE_GATEWAY_RULE, [], plugins) + def update_gateway_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayRuleOutput: + return self._invoke( + self._select_input(_models.UPDATE_GATEWAY_RULE, args, kwargs), + _models.UPDATE_GATEWAY_RULE, + [], + plugins, + ) + + @_overload + def update_gateway_target( + self, + request: _models.UpdateGatewayTargetInput + | _models.UpdateGatewayTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayTargetOutput: ... + + @_overload def update_gateway_target( - self, input: UpdateGatewayTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayTargetInputDict], ) -> UpdateGatewayTargetOutput: """ Updates an existing gateway target. @@ -3963,8 +7088,6 @@ def update_gateway_target( fail before updating the target. Args: - input: - An instance of `UpdateGatewayTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3974,17 +7097,38 @@ def update_gateway_target( Returns: An instance of `UpdateGatewayTargetOutput`. """ - return self._invoke(input, _models.UPDATE_GATEWAY_TARGET, [], plugins) + def update_gateway_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayTargetOutput: + return self._invoke( + self._select_input(_models.UPDATE_GATEWAY_TARGET, args, kwargs), + _models.UPDATE_GATEWAY_TARGET, + [], + plugins, + ) + + @_overload + def update_harness( + self, + request: _models.UpdateHarnessInput | _models.UpdateHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateHarnessOutput: ... + + @_overload def update_harness( - self, input: UpdateHarnessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateHarnessInputDict], ) -> UpdateHarnessOutput: """ Operation to update a harness. Args: - input: - An instance of `UpdateHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3994,17 +7138,39 @@ def update_harness( Returns: An instance of `UpdateHarnessOutput`. """ - return self._invoke(input, _models.UPDATE_HARNESS, [], plugins) + def update_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateHarnessOutput: + return self._invoke( + self._select_input(_models.UPDATE_HARNESS, args, kwargs), + _models.UPDATE_HARNESS, + [], + plugins, + ) + + @_overload + def update_harness_endpoint( + self, + request: _models.UpdateHarnessEndpointInput + | _models.UpdateHarnessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateHarnessEndpointOutput: ... + + @_overload def update_harness_endpoint( - self, input: UpdateHarnessEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateHarnessEndpointInputDict], ) -> UpdateHarnessEndpointOutput: """ Operation to update a harness endpoint. Args: - input: - An instance of `UpdateHarnessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4014,17 +7180,38 @@ def update_harness_endpoint( Returns: An instance of `UpdateHarnessEndpointOutput`. """ - return self._invoke(input, _models.UPDATE_HARNESS_ENDPOINT, [], plugins) + def update_harness_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateHarnessEndpointOutput: + return self._invoke( + self._select_input(_models.UPDATE_HARNESS_ENDPOINT, args, kwargs), + _models.UPDATE_HARNESS_ENDPOINT, + [], + plugins, + ) + + @_overload def update_memory( - self, input: UpdateMemoryInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateMemoryInput | _models.UpdateMemoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMemoryOutput: ... + + @_overload + def update_memory( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMemoryInputDict], ) -> UpdateMemoryOutput: """ Update an Amazon Bedrock AgentCore Memory resource memory. Args: - input: - An instance of `UpdateMemoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4034,19 +7221,39 @@ def update_memory( Returns: An instance of `UpdateMemoryOutput`. """ - return self._invoke(input, _models.UPDATE_MEMORY, [], plugins) + def update_memory( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMemoryOutput: + return self._invoke( + self._select_input(_models.UPDATE_MEMORY, args, kwargs), + _models.UPDATE_MEMORY, + [], + plugins, + ) + + @_overload + def update_oauth2_credential_provider( + self, + request: _models.UpdateOauth2CredentialProviderInput + | _models.UpdateOauth2CredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOauth2CredentialProviderOutput: ... + + @_overload def update_oauth2_credential_provider( self, - input: UpdateOauth2CredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOauth2CredentialProviderInputDict], ) -> UpdateOauth2CredentialProviderOutput: """ Updates an existing OAuth2 credential provider. Args: - input: - An instance of `UpdateOauth2CredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4056,14 +7263,34 @@ def update_oauth2_credential_provider( Returns: An instance of `UpdateOauth2CredentialProviderOutput`. """ + + def update_oauth2_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOauth2CredentialProviderOutput: return self._invoke( - input, _models.UPDATE_OAUTH2_CREDENTIAL_PROVIDER, [], plugins + self._select_input(_models.UPDATE_OAUTH2_CREDENTIAL_PROVIDER, args, kwargs), + _models.UPDATE_OAUTH2_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + def update_online_evaluation_config( + self, + request: _models.UpdateOnlineEvaluationConfigInput + | _models.UpdateOnlineEvaluationConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOnlineEvaluationConfigOutput: ... + + @_overload def update_online_evaluation_config( self, - input: UpdateOnlineEvaluationConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOnlineEvaluationConfigInputDict], ) -> UpdateOnlineEvaluationConfigOutput: """ Updates an online evaluation configuration's settings, including rules, @@ -4071,8 +7298,6 @@ def update_online_evaluation_config( immediately for ongoing evaluations. Args: - input: - An instance of `UpdateOnlineEvaluationConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4082,18 +7307,40 @@ def update_online_evaluation_config( Returns: An instance of `UpdateOnlineEvaluationConfigOutput`. """ - return self._invoke(input, _models.UPDATE_ONLINE_EVALUATION_CONFIG, [], plugins) + def update_online_evaluation_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOnlineEvaluationConfigOutput: + return self._invoke( + self._select_input(_models.UPDATE_ONLINE_EVALUATION_CONFIG, args, kwargs), + _models.UPDATE_ONLINE_EVALUATION_CONFIG, + [], + plugins, + ) + + @_overload + def update_payment_connector( + self, + request: _models.UpdatePaymentConnectorInput + | _models.UpdatePaymentConnectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePaymentConnectorOutput: ... + + @_overload def update_payment_connector( - self, input: UpdatePaymentConnectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePaymentConnectorInputDict], ) -> UpdatePaymentConnectorOutput: """ Updates an existing payment connector. This operation uses PATCH semantics, so you only need to specify the fields you want to change. Args: - input: - An instance of `UpdatePaymentConnectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4103,20 +7350,40 @@ def update_payment_connector( Returns: An instance of `UpdatePaymentConnectorOutput`. """ - return self._invoke(input, _models.UPDATE_PAYMENT_CONNECTOR, [], plugins) + def update_payment_connector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePaymentConnectorOutput: + return self._invoke( + self._select_input(_models.UPDATE_PAYMENT_CONNECTOR, args, kwargs), + _models.UPDATE_PAYMENT_CONNECTOR, + [], + plugins, + ) + + @_overload + def update_payment_credential_provider( + self, + request: _models.UpdatePaymentCredentialProviderInput + | _models.UpdatePaymentCredentialProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePaymentCredentialProviderOutput: ... + + @_overload def update_payment_credential_provider( self, - input: UpdatePaymentCredentialProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePaymentCredentialProviderInputDict], ) -> UpdatePaymentCredentialProviderOutput: """ Updates an existing payment credential provider with new authentication credentials. Args: - input: - An instance of `UpdatePaymentCredentialProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4126,20 +7393,42 @@ def update_payment_credential_provider( Returns: An instance of `UpdatePaymentCredentialProviderOutput`. """ + + def update_payment_credential_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePaymentCredentialProviderOutput: return self._invoke( - input, _models.UPDATE_PAYMENT_CREDENTIAL_PROVIDER, [], plugins + self._select_input( + _models.UPDATE_PAYMENT_CREDENTIAL_PROVIDER, args, kwargs + ), + _models.UPDATE_PAYMENT_CREDENTIAL_PROVIDER, + [], + plugins, ) + @_overload + def update_payment_manager( + self, + request: _models.UpdatePaymentManagerInput + | _models.UpdatePaymentManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePaymentManagerOutput: ... + + @_overload def update_payment_manager( - self, input: UpdatePaymentManagerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePaymentManagerInputDict], ) -> UpdatePaymentManagerOutput: """ Updates an existing payment manager. This operation uses PATCH semantics, so you only need to specify the fields you want to change. Args: - input: - An instance of `UpdatePaymentManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4149,10 +7438,33 @@ def update_payment_manager( Returns: An instance of `UpdatePaymentManagerOutput`. """ - return self._invoke(input, _models.UPDATE_PAYMENT_MANAGER, [], plugins) + def update_payment_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePaymentManagerOutput: + return self._invoke( + self._select_input(_models.UPDATE_PAYMENT_MANAGER, args, kwargs), + _models.UPDATE_PAYMENT_MANAGER, + [], + plugins, + ) + + @_overload def update_policy( - self, input: UpdatePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdatePolicyInput | _models.UpdatePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePolicyOutput: ... + + @_overload + def update_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePolicyInputDict], ) -> UpdatePolicyOutput: """ Updates an existing policy within the AgentCore Policy system. This @@ -4172,8 +7484,6 @@ def update_policy( sessions. To resume, you must start a new session with a new session ID. Args: - input: - An instance of `UpdatePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4183,10 +7493,33 @@ def update_policy( Returns: An instance of `UpdatePolicyOutput`. """ - return self._invoke(input, _models.UPDATE_POLICY, [], plugins) + def update_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePolicyOutput: + return self._invoke( + self._select_input(_models.UPDATE_POLICY, args, kwargs), + _models.UPDATE_POLICY, + [], + plugins, + ) + + @_overload + def update_policy_engine( + self, + request: _models.UpdatePolicyEngineInput | _models.UpdatePolicyEngineInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePolicyEngineOutput: ... + + @_overload def update_policy_engine( - self, input: UpdatePolicyEngineInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePolicyEngineInputDict], ) -> UpdatePolicyEngineOutput: """ Updates an existing policy engine within the AgentCore Policy system. @@ -4196,8 +7529,6 @@ def update_policy_engine( completion. Args: - input: - An instance of `UpdatePolicyEngineInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4207,18 +7538,39 @@ def update_policy_engine( Returns: An instance of `UpdatePolicyEngineOutput`. """ - return self._invoke(input, _models.UPDATE_POLICY_ENGINE, [], plugins) + def update_policy_engine( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePolicyEngineOutput: + return self._invoke( + self._select_input(_models.UPDATE_POLICY_ENGINE, args, kwargs), + _models.UPDATE_POLICY_ENGINE, + [], + plugins, + ) + + @_overload + def update_registry( + self, + request: _models.UpdateRegistryInput | _models.UpdateRegistryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRegistryOutput: ... + + @_overload def update_registry( - self, input: UpdateRegistryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRegistryInputDict], ) -> UpdateRegistryOutput: """ Updates an existing registry. This operation uses PATCH semantics, so you only need to specify the fields you want to change. Args: - input: - An instance of `UpdateRegistryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4228,10 +7580,34 @@ def update_registry( Returns: An instance of `UpdateRegistryOutput`. """ - return self._invoke(input, _models.UPDATE_REGISTRY, [], plugins) + def update_registry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRegistryOutput: + return self._invoke( + self._select_input(_models.UPDATE_REGISTRY, args, kwargs), + _models.UPDATE_REGISTRY, + [], + plugins, + ) + + @_overload + def update_registry_record( + self, + request: _models.UpdateRegistryRecordInput + | _models.UpdateRegistryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRegistryRecordOutput: ... + + @_overload def update_registry_record( - self, input: UpdateRegistryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRegistryRecordInputDict], ) -> UpdateRegistryRecordOutput: """ Updates an existing registry record. This operation uses PATCH @@ -4239,8 +7615,6 @@ def update_registry_record( The update is processed asynchronously and returns HTTP 202 Accepted. Args: - input: - An instance of `UpdateRegistryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4250,20 +7624,40 @@ def update_registry_record( Returns: An instance of `UpdateRegistryRecordOutput`. """ - return self._invoke(input, _models.UPDATE_REGISTRY_RECORD, [], plugins) + def update_registry_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRegistryRecordOutput: + return self._invoke( + self._select_input(_models.UPDATE_REGISTRY_RECORD, args, kwargs), + _models.UPDATE_REGISTRY_RECORD, + [], + plugins, + ) + + @_overload + def update_registry_record_status( + self, + request: _models.UpdateRegistryRecordStatusInput + | _models.UpdateRegistryRecordStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRegistryRecordStatusOutput: ... + + @_overload def update_registry_record_status( self, - input: UpdateRegistryRecordStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRegistryRecordStatusInputDict], ) -> UpdateRegistryRecordStatusOutput: """ Updates the status of a registry record. Use this operation to approve, reject, or deprecate a registry record. Args: - input: - An instance of `UpdateRegistryRecordStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4273,17 +7667,39 @@ def update_registry_record_status( Returns: An instance of `UpdateRegistryRecordStatusOutput`. """ - return self._invoke(input, _models.UPDATE_REGISTRY_RECORD_STATUS, [], plugins) + def update_registry_record_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRegistryRecordStatusOutput: + return self._invoke( + self._select_input(_models.UPDATE_REGISTRY_RECORD_STATUS, args, kwargs), + _models.UPDATE_REGISTRY_RECORD_STATUS, + [], + plugins, + ) + + @_overload + def update_workload_identity( + self, + request: _models.UpdateWorkloadIdentityInput + | _models.UpdateWorkloadIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateWorkloadIdentityOutput: ... + + @_overload def update_workload_identity( - self, input: UpdateWorkloadIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateWorkloadIdentityInputDict], ) -> UpdateWorkloadIdentityOutput: """ Updates an existing workload identity. Args: - input: - An instance of `UpdateWorkloadIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4293,7 +7709,16 @@ def update_workload_identity( Returns: An instance of `UpdateWorkloadIdentityOutput`. """ - return self._invoke(input, _models.UPDATE_WORKLOAD_IDENTITY, [], plugins) + + def update_workload_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateWorkloadIdentityOutput: + return self._invoke( + self._select_input(_models.UPDATE_WORKLOAD_IDENTITY, args, kwargs), + _models.UPDATE_WORKLOAD_IDENTITY, + [], + plugins, + ) def _new_config(self) -> BedrockAgentCoreControlConfig: return BedrockAgentCoreControlConfig.resolve() diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/models.pyi b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/models.pyi index 57a104a94..3e933964d 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/models.pyi +++ b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/models.pyi @@ -9,16 +9,22 @@ from smithy_core.serializers import ShapeSerializer from ._private.models_0 import ( A2aDescriptor as A2aDescriptor, + A2aDescriptorDict as A2aDescriptorDict, AccessDeniedException as AccessDeniedException, ActionConfigurationBundle as ActionConfigurationBundle, ActionRouteToTarget as ActionRouteToTarget, ActionUnknown as ActionUnknown, Action as Action, _ActionDeserializer as _ActionDeserializer, + ActionConfigurationBundleDict as ActionConfigurationBundleDict, + ActionRouteToTargetDict as ActionRouteToTargetDict, + ActionDict as ActionDict, ActorTokenContentType as ActorTokenContentType, AddDatasetExamplesInput as AddDatasetExamplesInput, + AddDatasetExamplesInputDict as AddDatasetExamplesInputDict, AddDatasetExamplesOutput as AddDatasetExamplesOutput, AgentCardDefinition as AgentCardDefinition, + AgentCardDefinitionDict as AgentCardDefinitionDict, AgentManagedRuntimeType as AgentManagedRuntimeType, AgentRuntime as AgentRuntime, AgentRuntimeArtifactContainerConfiguration as AgentRuntimeArtifactContainerConfiguration, @@ -26,21 +32,33 @@ from ._private.models_0 import ( AgentRuntimeArtifactUnknown as AgentRuntimeArtifactUnknown, AgentRuntimeArtifact as AgentRuntimeArtifact, _AgentRuntimeArtifactDeserializer as _AgentRuntimeArtifactDeserializer, + AgentRuntimeArtifactContainerConfigurationDict as AgentRuntimeArtifactContainerConfigurationDict, + AgentRuntimeArtifactCodeConfigurationDict as AgentRuntimeArtifactCodeConfigurationDict, + AgentRuntimeArtifactDict as AgentRuntimeArtifactDict, AgentRuntimeEndpoint as AgentRuntimeEndpoint, AgentRuntimeEndpointStatus as AgentRuntimeEndpointStatus, AgentRuntimeStatus as AgentRuntimeStatus, AgentRuntimeVersionSummary as AgentRuntimeVersionSummary, AgentSkillsDescriptor as AgentSkillsDescriptor, + AgentSkillsDescriptorDict as AgentSkillsDescriptorDict, AllowedPortPort as AllowedPortPort, AllowedPortPortRange as AllowedPortPortRange, AllowedPortUnknown as AllowedPortUnknown, AllowedPort as AllowedPort, _AllowedPortDeserializer as _AllowedPortDeserializer, + AllowedPortPortDict as AllowedPortPortDict, + AllowedPortPortRangeDict as AllowedPortPortRangeDict, + AllowedPortDict as AllowedPortDict, AllowedWorkloadConfiguration as AllowedWorkloadConfiguration, + AllowedWorkloadConfigurationDict as AllowedWorkloadConfigurationDict, ApiGatewayTargetConfiguration as ApiGatewayTargetConfiguration, + ApiGatewayTargetConfigurationDict as ApiGatewayTargetConfigurationDict, ApiGatewayToolConfiguration as ApiGatewayToolConfiguration, + ApiGatewayToolConfigurationDict as ApiGatewayToolConfigurationDict, ApiGatewayToolFilter as ApiGatewayToolFilter, + ApiGatewayToolFilterDict as ApiGatewayToolFilterDict, ApiGatewayToolOverride as ApiGatewayToolOverride, + ApiGatewayToolOverrideDict as ApiGatewayToolOverrideDict, ApiKeyCredentialLocation as ApiKeyCredentialLocation, ApiKeyCredentialProviderItem as ApiKeyCredentialProviderItem, ApiSchemaConfigurationS3 as ApiSchemaConfigurationS3, @@ -48,8 +66,13 @@ from ._private.models_0 import ( ApiSchemaConfigurationUnknown as ApiSchemaConfigurationUnknown, ApiSchemaConfiguration as ApiSchemaConfiguration, _ApiSchemaConfigurationDeserializer as _ApiSchemaConfigurationDeserializer, + ApiSchemaConfigurationS3Dict as ApiSchemaConfigurationS3Dict, + ApiSchemaConfigurationInlinePayloadDict as ApiSchemaConfigurationInlinePayloadDict, + ApiSchemaConfigurationDict as ApiSchemaConfigurationDict, ApprovalConfiguration as ApprovalConfiguration, + ApprovalConfigurationDict as ApprovalConfigurationDict, AtlassianOauth2ProviderConfigInput as AtlassianOauth2ProviderConfigInput, + AtlassianOauth2ProviderConfigInputDict as AtlassianOauth2ProviderConfigInputDict, AtlassianOauth2ProviderConfigOutput as AtlassianOauth2ProviderConfigOutput, AuthorizationDataOauth2 as AuthorizationDataOauth2, AuthorizationDataUnknown as AuthorizationDataUnknown, @@ -59,44 +82,67 @@ from ._private.models_0 import ( AuthorizerConfigurationUnknown as AuthorizerConfigurationUnknown, AuthorizerConfiguration as AuthorizerConfiguration, _AuthorizerConfigurationDeserializer as _AuthorizerConfigurationDeserializer, + AuthorizerConfigurationCustomJWTAuthorizerDict as AuthorizerConfigurationCustomJWTAuthorizerDict, + AuthorizerConfigurationDict as AuthorizerConfigurationDict, AuthorizerType as AuthorizerType, AuthorizingClaimMatchValueType as AuthorizingClaimMatchValueType, + AuthorizingClaimMatchValueTypeDict as AuthorizingClaimMatchValueTypeDict, BatchPutGatewayRateLimitsInput as BatchPutGatewayRateLimitsInput, + BatchPutGatewayRateLimitsInputDict as BatchPutGatewayRateLimitsInputDict, BatchPutGatewayRateLimitsOutput as BatchPutGatewayRateLimitsOutput, BatchPutLimitEntry as BatchPutLimitEntry, + BatchPutLimitEntryDict as BatchPutLimitEntryDict, BedrockEvaluatorModelConfig as BedrockEvaluatorModelConfig, + BedrockEvaluatorModelConfigDict as BedrockEvaluatorModelConfigDict, BrowserEnterprisePolicy as BrowserEnterprisePolicy, + BrowserEnterprisePolicyDict as BrowserEnterprisePolicyDict, BrowserEnterprisePolicyType as BrowserEnterprisePolicyType, BrowserNetworkConfiguration as BrowserNetworkConfiguration, + BrowserNetworkConfigurationDict as BrowserNetworkConfigurationDict, BrowserNetworkMode as BrowserNetworkMode, BrowserProfileStatus as BrowserProfileStatus, BrowserProfileSummary as BrowserProfileSummary, BrowserSigningConfigInput as BrowserSigningConfigInput, + BrowserSigningConfigInputDict as BrowserSigningConfigInputDict, BrowserSigningConfigOutput as BrowserSigningConfigOutput, BrowserStatus as BrowserStatus, BrowserSummary as BrowserSummary, BuildLifecycleHooks as BuildLifecycleHooks, + BuildLifecycleHooksDict as BuildLifecycleHooksDict, CapacityProviderConfiguration as CapacityProviderConfiguration, + CapacityProviderConfigurationDict as CapacityProviderConfigurationDict, CapacityProviderStatus as CapacityProviderStatus, CapacityProviderStatusCode as CapacityProviderStatusCode, CapacityProviderSummary as CapacityProviderSummary, CapacityProviderVolumeConfiguration as CapacityProviderVolumeConfiguration, + CapacityProviderVolumeConfigurationDict as CapacityProviderVolumeConfigurationDict, CapacityReservationPreference as CapacityReservationPreference, CapacityReservationSpecification as CapacityReservationSpecification, + CapacityReservationSpecificationDict as CapacityReservationSpecificationDict, CapacityReservationTarget as CapacityReservationTarget, + CapacityReservationTargetDict as CapacityReservationTargetDict, CategoricalScaleDefinition as CategoricalScaleDefinition, + CategoricalScaleDefinitionDict as CategoricalScaleDefinitionDict, CedarPolicy as CedarPolicy, + CedarPolicyDict as CedarPolicyDict, Certificate as Certificate, + CertificateDict as CertificateDict, CertificateConfigurationS3 as CertificateConfigurationS3, CertificateConfigurationSecretsManager as CertificateConfigurationSecretsManager, CertificateConfigurationUnknown as CertificateConfigurationUnknown, CertificateConfiguration as CertificateConfiguration, _CertificateConfigurationDeserializer as _CertificateConfigurationDeserializer, + CertificateConfigurationS3Dict as CertificateConfigurationS3Dict, + CertificateConfigurationSecretsManagerDict as CertificateConfigurationSecretsManagerDict, + CertificateConfigurationDict as CertificateConfigurationDict, CertificateLocationSecretsManager as CertificateLocationSecretsManager, CertificateLocationUnknown as CertificateLocationUnknown, CertificateLocation as CertificateLocation, _CertificateLocationDeserializer as _CertificateLocationDeserializer, + CertificateLocationSecretsManagerDict as CertificateLocationSecretsManagerDict, + CertificateLocationDict as CertificateLocationDict, CircuitBreakerConfiguration as CircuitBreakerConfiguration, + CircuitBreakerConfigurationDict as CircuitBreakerConfigurationDict, CircuitBreakerMode as CircuitBreakerMode, ClaimMatchOperatorType as ClaimMatchOperatorType, ClaimMatchValueTypeMatchValueString as ClaimMatchValueTypeMatchValueString, @@ -104,33 +150,50 @@ from ._private.models_0 import ( ClaimMatchValueTypeUnknown as ClaimMatchValueTypeUnknown, ClaimMatchValueType as ClaimMatchValueType, _ClaimMatchValueTypeDeserializer as _ClaimMatchValueTypeDeserializer, + ClaimMatchValueTypeMatchValueStringDict as ClaimMatchValueTypeMatchValueStringDict, + ClaimMatchValueTypeMatchValueStringListDict as ClaimMatchValueTypeMatchValueStringListDict, + ClaimMatchValueTypeDict as ClaimMatchValueTypeDict, ClientAuthenticationMethodType as ClientAuthenticationMethodType, CloudWatchLogsInputConfig as CloudWatchLogsInputConfig, + CloudWatchLogsInputConfigDict as CloudWatchLogsInputConfigDict, CloudWatchOutputConfig as CloudWatchOutputConfig, + CloudWatchOutputConfigDict as CloudWatchOutputConfigDict, ClusteringConfig as ClusteringConfig, + ClusteringConfigDict as ClusteringConfigDict, ClusteringFrequency as ClusteringFrequency, CodeS3 as CodeS3, CodeUnknown as CodeUnknown, Code as Code, _CodeDeserializer as _CodeDeserializer, + CodeS3Dict as CodeS3Dict, + CodeDict as CodeDict, CodeBasedEvaluatorConfigLambdaConfig as CodeBasedEvaluatorConfigLambdaConfig, CodeBasedEvaluatorConfigUnknown as CodeBasedEvaluatorConfigUnknown, CodeBasedEvaluatorConfig as CodeBasedEvaluatorConfig, _CodeBasedEvaluatorConfigDeserializer as _CodeBasedEvaluatorConfigDeserializer, + CodeBasedEvaluatorConfigLambdaConfigDict as CodeBasedEvaluatorConfigLambdaConfigDict, + CodeBasedEvaluatorConfigDict as CodeBasedEvaluatorConfigDict, CodeConfiguration as CodeConfiguration, + CodeConfigurationDict as CodeConfigurationDict, CodeInterpreterNetworkConfiguration as CodeInterpreterNetworkConfiguration, + CodeInterpreterNetworkConfigurationDict as CodeInterpreterNetworkConfigurationDict, CodeInterpreterNetworkMode as CodeInterpreterNetworkMode, CodeInterpreterStatus as CodeInterpreterStatus, CodeInterpreterSummary as CodeInterpreterSummary, CoinbaseCdpConfigurationInput as CoinbaseCdpConfigurationInput, + CoinbaseCdpConfigurationInputDict as CoinbaseCdpConfigurationInputDict, CoinbaseCdpConfigurationOutput as CoinbaseCdpConfigurationOutput, CoinbaseCdpRotationTargets as CoinbaseCdpRotationTargets, + CoinbaseCdpRotationTargetsDict as CoinbaseCdpRotationTargetsDict, CoinbaseCdpSecret as CoinbaseCdpSecret, ComponentConfiguration as ComponentConfiguration, + ComponentConfigurationDict as ComponentConfigurationDict, ComputeConfigurationEc2Configuration as ComputeConfigurationEc2Configuration, ComputeConfigurationUnknown as ComputeConfigurationUnknown, ComputeConfiguration as ComputeConfiguration, _ComputeConfigurationDeserializer as _ComputeConfigurationDeserializer, + ComputeConfigurationEc2ConfigurationDict as ComputeConfigurationEc2ConfigurationDict, + ComputeConfigurationDict as ComputeConfigurationDict, ConcurrentModificationException as ConcurrentModificationException, ConditionMatchPrincipals as ConditionMatchPrincipals, ConditionMatchPaths as ConditionMatchPaths, @@ -138,22 +201,36 @@ from ._private.models_0 import ( ConditionUnknown as ConditionUnknown, Condition as Condition, _ConditionDeserializer as _ConditionDeserializer, + ConditionMatchPrincipalsDict as ConditionMatchPrincipalsDict, + ConditionMatchPathsDict as ConditionMatchPathsDict, + ConditionMatchModelsDict as ConditionMatchModelsDict, + ConditionDict as ConditionDict, ConfigurationBundleActionStaticOverride as ConfigurationBundleActionStaticOverride, ConfigurationBundleActionWeightedOverride as ConfigurationBundleActionWeightedOverride, ConfigurationBundleActionUnknown as ConfigurationBundleActionUnknown, ConfigurationBundleAction as ConfigurationBundleAction, _ConfigurationBundleActionDeserializer as _ConfigurationBundleActionDeserializer, + ConfigurationBundleActionStaticOverrideDict as ConfigurationBundleActionStaticOverrideDict, + ConfigurationBundleActionWeightedOverrideDict as ConfigurationBundleActionWeightedOverrideDict, + ConfigurationBundleActionDict as ConfigurationBundleActionDict, ConfigurationBundleReference as ConfigurationBundleReference, + ConfigurationBundleReferenceDict as ConfigurationBundleReferenceDict, ConfigurationBundleStatus as ConfigurationBundleStatus, ConfigurationBundleSummary as ConfigurationBundleSummary, ConfigurationBundleVersionSummary as ConfigurationBundleVersionSummary, ConflictException as ConflictException, ConnectorConfiguration as ConnectorConfiguration, + ConnectorConfigurationDict as ConnectorConfigurationDict, ConnectorParameterOverride as ConnectorParameterOverride, + ConnectorParameterOverrideDict as ConnectorParameterOverrideDict, ConnectorSource as ConnectorSource, + ConnectorSourceDict as ConnectorSourceDict, ConnectorTargetConfiguration as ConnectorTargetConfiguration, + ConnectorTargetConfigurationDict as ConnectorTargetConfigurationDict, ConsentPortalIdpConfig as ConsentPortalIdpConfig, + ConsentPortalIdpConfigDict as ConsentPortalIdpConfigDict, ConsentPortalSource as ConsentPortalSource, + ConsentPortalSourceDict as ConsentPortalSourceDict, ConsentPortalSourceType as ConsentPortalSourceType, ConsentPortalStatus as ConsentPortalStatus, ConsentPortalSummary as ConsentPortalSummary, @@ -162,70 +239,103 @@ from ._private.models_0 import ( ConsolidationConfiguration as ConsolidationConfiguration, _ConsolidationConfigurationDeserializer as _ConsolidationConfigurationDeserializer, ContainerConfiguration as ContainerConfiguration, + ContainerConfigurationDict as ContainerConfigurationDict, ContentRawText as ContentRawText, ContentUnknown as ContentUnknown, Content as Content, _ContentDeserializer as _ContentDeserializer, + ContentRawTextDict as ContentRawTextDict, + ContentDict as ContentDict, ContentConfiguration as ContentConfiguration, + ContentConfigurationDict as ContentConfigurationDict, ContentLevel as ContentLevel, ContentType as ContentType, CreateAgentRuntimeEndpointInput as CreateAgentRuntimeEndpointInput, + CreateAgentRuntimeEndpointInputDict as CreateAgentRuntimeEndpointInputDict, CreateAgentRuntimeEndpointOutput as CreateAgentRuntimeEndpointOutput, CreateAgentRuntimeInput as CreateAgentRuntimeInput, + CreateAgentRuntimeInputDict as CreateAgentRuntimeInputDict, CreateAgentRuntimeOutput as CreateAgentRuntimeOutput, CreateApiKeyCredentialProviderInput as CreateApiKeyCredentialProviderInput, + CreateApiKeyCredentialProviderInputDict as CreateApiKeyCredentialProviderInputDict, CreateApiKeyCredentialProviderOutput as CreateApiKeyCredentialProviderOutput, CreateBrowserInput as CreateBrowserInput, + CreateBrowserInputDict as CreateBrowserInputDict, CreateBrowserOutput as CreateBrowserOutput, CreateBrowserProfileInput as CreateBrowserProfileInput, + CreateBrowserProfileInputDict as CreateBrowserProfileInputDict, CreateBrowserProfileOutput as CreateBrowserProfileOutput, CreateCapacityProviderInput as CreateCapacityProviderInput, + CreateCapacityProviderInputDict as CreateCapacityProviderInputDict, CreateCapacityProviderOutput as CreateCapacityProviderOutput, CreateCodeInterpreterInput as CreateCodeInterpreterInput, + CreateCodeInterpreterInputDict as CreateCodeInterpreterInputDict, CreateCodeInterpreterOutput as CreateCodeInterpreterOutput, CreateConfigurationBundleInput as CreateConfigurationBundleInput, + CreateConfigurationBundleInputDict as CreateConfigurationBundleInputDict, CreateConfigurationBundleOutput as CreateConfigurationBundleOutput, CreateConsentPortalInput as CreateConsentPortalInput, + CreateConsentPortalInputDict as CreateConsentPortalInputDict, CreateConsentPortalOutput as CreateConsentPortalOutput, CreateDatasetInput as CreateDatasetInput, + CreateDatasetInputDict as CreateDatasetInputDict, CreateDatasetOutput as CreateDatasetOutput, CreateDatasetVersionInput as CreateDatasetVersionInput, + CreateDatasetVersionInputDict as CreateDatasetVersionInputDict, CreateDatasetVersionOutput as CreateDatasetVersionOutput, CreateEvaluatorInput as CreateEvaluatorInput, + CreateEvaluatorInputDict as CreateEvaluatorInputDict, CreateEvaluatorOutput as CreateEvaluatorOutput, CreateGatewayInput as CreateGatewayInput, + CreateGatewayInputDict as CreateGatewayInputDict, CreateGatewayOutput as CreateGatewayOutput, CreateGatewayRateLimitInput as CreateGatewayRateLimitInput, + CreateGatewayRateLimitInputDict as CreateGatewayRateLimitInputDict, CreateGatewayRateLimitOutput as CreateGatewayRateLimitOutput, CreateGatewayRuleInput as CreateGatewayRuleInput, + CreateGatewayRuleInputDict as CreateGatewayRuleInputDict, CreateGatewayRuleOutput as CreateGatewayRuleOutput, CreateGatewayTargetInput as CreateGatewayTargetInput, + CreateGatewayTargetInputDict as CreateGatewayTargetInputDict, CreateGatewayTargetOutput as CreateGatewayTargetOutput, CreateHarnessEndpointInput as CreateHarnessEndpointInput, + CreateHarnessEndpointInputDict as CreateHarnessEndpointInputDict, CreateHarnessEndpointOutput as CreateHarnessEndpointOutput, CreateHarnessInput as CreateHarnessInput, + CreateHarnessInputDict as CreateHarnessInputDict, CreateHarnessOutput as CreateHarnessOutput, CreateMemoryInput as CreateMemoryInput, + CreateMemoryInputDict as CreateMemoryInputDict, CreateMemoryOutput as CreateMemoryOutput, CreateOauth2CredentialProviderInput as CreateOauth2CredentialProviderInput, + CreateOauth2CredentialProviderInputDict as CreateOauth2CredentialProviderInputDict, CreateOauth2CredentialProviderOutput as CreateOauth2CredentialProviderOutput, CreateOnlineEvaluationConfigInput as CreateOnlineEvaluationConfigInput, + CreateOnlineEvaluationConfigInputDict as CreateOnlineEvaluationConfigInputDict, CreateOnlineEvaluationConfigOutput as CreateOnlineEvaluationConfigOutput, CreatePaymentConnectorInput as CreatePaymentConnectorInput, + CreatePaymentConnectorInputDict as CreatePaymentConnectorInputDict, CreatePaymentConnectorOutput as CreatePaymentConnectorOutput, CreatePaymentCredentialProviderInput as CreatePaymentCredentialProviderInput, + CreatePaymentCredentialProviderInputDict as CreatePaymentCredentialProviderInputDict, CreatePaymentCredentialProviderOutput as CreatePaymentCredentialProviderOutput, CreatePaymentManagerInput as CreatePaymentManagerInput, + CreatePaymentManagerInputDict as CreatePaymentManagerInputDict, CreatePaymentManagerOutput as CreatePaymentManagerOutput, CreatePolicyEngineInput as CreatePolicyEngineInput, + CreatePolicyEngineInputDict as CreatePolicyEngineInputDict, CreatePolicyEngineOutput as CreatePolicyEngineOutput, CreatePolicyInput as CreatePolicyInput, + CreatePolicyInputDict as CreatePolicyInputDict, CreatePolicyOutput as CreatePolicyOutput, CreateRegistryInput as CreateRegistryInput, + CreateRegistryInputDict as CreateRegistryInputDict, CreateRegistryOutput as CreateRegistryOutput, CreateRegistryRecordInput as CreateRegistryRecordInput, + CreateRegistryRecordInputDict as CreateRegistryRecordInputDict, CreateRegistryRecordOutput as CreateRegistryRecordOutput, CreateWorkloadIdentityInput as CreateWorkloadIdentityInput, + CreateWorkloadIdentityInputDict as CreateWorkloadIdentityInputDict, CreateWorkloadIdentityOutput as CreateWorkloadIdentityOutput, CredentialProviderOauthCredentialProvider as CredentialProviderOauthCredentialProvider, CredentialProviderApiKeyCredentialProvider as CredentialProviderApiKeyCredentialProvider, @@ -233,19 +343,30 @@ from ._private.models_0 import ( CredentialProviderUnknown as CredentialProviderUnknown, CredentialProvider as CredentialProvider, _CredentialProviderDeserializer as _CredentialProviderDeserializer, + CredentialProviderOauthCredentialProviderDict as CredentialProviderOauthCredentialProviderDict, + CredentialProviderApiKeyCredentialProviderDict as CredentialProviderApiKeyCredentialProviderDict, + CredentialProviderIamCredentialProviderDict as CredentialProviderIamCredentialProviderDict, + CredentialProviderDict as CredentialProviderDict, CredentialProviderConfiguration as CredentialProviderConfiguration, + CredentialProviderConfigurationDict as CredentialProviderConfigurationDict, CredentialProviderType as CredentialProviderType, CredentialProviderVendorType as CredentialProviderVendorType, CredentialRotationConfigCoinbaseCDP as CredentialRotationConfigCoinbaseCDP, CredentialRotationConfigUnknown as CredentialRotationConfigUnknown, CredentialRotationConfig as CredentialRotationConfig, _CredentialRotationConfigDeserializer as _CredentialRotationConfigDeserializer, + CredentialRotationConfigCoinbaseCDPDict as CredentialRotationConfigCoinbaseCDPDict, + CredentialRotationConfigDict as CredentialRotationConfigDict, CredentialsProviderConfigurationCoinbaseCDP as CredentialsProviderConfigurationCoinbaseCDP, CredentialsProviderConfigurationStripePrivy as CredentialsProviderConfigurationStripePrivy, CredentialsProviderConfigurationUnknown as CredentialsProviderConfigurationUnknown, CredentialsProviderConfiguration as CredentialsProviderConfiguration, _CredentialsProviderConfigurationDeserializer as _CredentialsProviderConfigurationDeserializer, + CredentialsProviderConfigurationCoinbaseCDPDict as CredentialsProviderConfigurationCoinbaseCDPDict, + CredentialsProviderConfigurationStripePrivyDict as CredentialsProviderConfigurationStripePrivyDict, + CredentialsProviderConfigurationDict as CredentialsProviderConfigurationDict, CustomClaimValidationType as CustomClaimValidationType, + CustomClaimValidationTypeDict as CustomClaimValidationTypeDict, CustomConfigurationInputSemanticOverride as CustomConfigurationInputSemanticOverride, CustomConfigurationInputSummaryOverride as CustomConfigurationInputSummaryOverride, CustomConfigurationInputUserPreferenceOverride as CustomConfigurationInputUserPreferenceOverride, @@ -254,6 +375,12 @@ from ._private.models_0 import ( CustomConfigurationInputUnknown as CustomConfigurationInputUnknown, CustomConfigurationInput as CustomConfigurationInput, _CustomConfigurationInputDeserializer as _CustomConfigurationInputDeserializer, + CustomConfigurationInputSemanticOverrideDict as CustomConfigurationInputSemanticOverrideDict, + CustomConfigurationInputSummaryOverrideDict as CustomConfigurationInputSummaryOverrideDict, + CustomConfigurationInputUserPreferenceOverrideDict as CustomConfigurationInputUserPreferenceOverrideDict, + CustomConfigurationInputEpisodicOverrideDict as CustomConfigurationInputEpisodicOverrideDict, + CustomConfigurationInputSelfManagedConfigurationDict as CustomConfigurationInputSelfManagedConfigurationDict, + CustomConfigurationInputDict as CustomConfigurationInputDict, CustomConsolidationConfigurationSemanticConsolidationOverride as CustomConsolidationConfigurationSemanticConsolidationOverride, CustomConsolidationConfigurationSummaryConsolidationOverride as CustomConsolidationConfigurationSummaryConsolidationOverride, CustomConsolidationConfigurationUserPreferenceConsolidationOverride as CustomConsolidationConfigurationUserPreferenceConsolidationOverride, @@ -268,7 +395,13 @@ from ._private.models_0 import ( CustomConsolidationConfigurationInputUnknown as CustomConsolidationConfigurationInputUnknown, CustomConsolidationConfigurationInput as CustomConsolidationConfigurationInput, _CustomConsolidationConfigurationInputDeserializer as _CustomConsolidationConfigurationInputDeserializer, + CustomConsolidationConfigurationInputSemanticConsolidationOverrideDict as CustomConsolidationConfigurationInputSemanticConsolidationOverrideDict, + CustomConsolidationConfigurationInputSummaryConsolidationOverrideDict as CustomConsolidationConfigurationInputSummaryConsolidationOverrideDict, + CustomConsolidationConfigurationInputUserPreferenceConsolidationOverrideDict as CustomConsolidationConfigurationInputUserPreferenceConsolidationOverrideDict, + CustomConsolidationConfigurationInputEpisodicConsolidationOverrideDict as CustomConsolidationConfigurationInputEpisodicConsolidationOverrideDict, + CustomConsolidationConfigurationInputDict as CustomConsolidationConfigurationInputDict, CustomDescriptor as CustomDescriptor, + CustomDescriptorDict as CustomDescriptorDict, CustomExtractionConfigurationSemanticExtractionOverride as CustomExtractionConfigurationSemanticExtractionOverride, CustomExtractionConfigurationUserPreferenceExtractionOverride as CustomExtractionConfigurationUserPreferenceExtractionOverride, CustomExtractionConfigurationEpisodicExtractionOverride as CustomExtractionConfigurationEpisodicExtractionOverride, @@ -281,9 +414,16 @@ from ._private.models_0 import ( CustomExtractionConfigurationInputUnknown as CustomExtractionConfigurationInputUnknown, CustomExtractionConfigurationInput as CustomExtractionConfigurationInput, _CustomExtractionConfigurationInputDeserializer as _CustomExtractionConfigurationInputDeserializer, + CustomExtractionConfigurationInputSemanticExtractionOverrideDict as CustomExtractionConfigurationInputSemanticExtractionOverrideDict, + CustomExtractionConfigurationInputUserPreferenceExtractionOverrideDict as CustomExtractionConfigurationInputUserPreferenceExtractionOverrideDict, + CustomExtractionConfigurationInputEpisodicExtractionOverrideDict as CustomExtractionConfigurationInputEpisodicExtractionOverrideDict, + CustomExtractionConfigurationInputDict as CustomExtractionConfigurationInputDict, CustomJWTAuthorizerConfiguration as CustomJWTAuthorizerConfiguration, + CustomJWTAuthorizerConfigurationDict as CustomJWTAuthorizerConfigurationDict, CustomMemoryStrategyInput as CustomMemoryStrategyInput, + CustomMemoryStrategyInputDict as CustomMemoryStrategyInputDict, CustomOauth2ProviderConfigInput as CustomOauth2ProviderConfigInput, + CustomOauth2ProviderConfigInputDict as CustomOauth2ProviderConfigInputDict, CustomOauth2ProviderConfigOutput as CustomOauth2ProviderConfigOutput, CustomReflectionConfigurationEpisodicReflectionOverride as CustomReflectionConfigurationEpisodicReflectionOverride, CustomReflectionConfigurationUnknown as CustomReflectionConfigurationUnknown, @@ -293,7 +433,10 @@ from ._private.models_0 import ( CustomReflectionConfigurationInputUnknown as CustomReflectionConfigurationInputUnknown, CustomReflectionConfigurationInput as CustomReflectionConfigurationInput, _CustomReflectionConfigurationInputDeserializer as _CustomReflectionConfigurationInputDeserializer, + CustomReflectionConfigurationInputEpisodicReflectionOverrideDict as CustomReflectionConfigurationInputEpisodicReflectionOverrideDict, + CustomReflectionConfigurationInputDict as CustomReflectionConfigurationInputDict, CustomTransformConfiguration as CustomTransformConfiguration, + CustomTransformConfigurationDict as CustomTransformConfigurationDict, DatasetSchemaType as DatasetSchemaType, DatasetStatus as DatasetStatus, DatasetSummary as DatasetSummary, @@ -302,123 +445,187 @@ from ._private.models_0 import ( DataSourceConfigUnknown as DataSourceConfigUnknown, DataSourceConfig as DataSourceConfig, _DataSourceConfigDeserializer as _DataSourceConfigDeserializer, + DataSourceConfigCloudWatchLogsDict as DataSourceConfigCloudWatchLogsDict, + DataSourceConfigDict as DataSourceConfigDict, DataSourceTypeInlineExamples as DataSourceTypeInlineExamples, DataSourceTypeS3Source as DataSourceTypeS3Source, DataSourceTypeUnknown as DataSourceTypeUnknown, DataSourceType as DataSourceType, _DataSourceTypeDeserializer as _DataSourceTypeDeserializer, + DataSourceTypeInlineExamplesDict as DataSourceTypeInlineExamplesDict, + DataSourceTypeS3SourceDict as DataSourceTypeS3SourceDict, + DataSourceTypeDict as DataSourceTypeDict, DecryptionFailure as DecryptionFailure, DeleteAgentRuntimeEndpointInput as DeleteAgentRuntimeEndpointInput, + DeleteAgentRuntimeEndpointInputDict as DeleteAgentRuntimeEndpointInputDict, DeleteAgentRuntimeEndpointOutput as DeleteAgentRuntimeEndpointOutput, DeleteAgentRuntimeInput as DeleteAgentRuntimeInput, + DeleteAgentRuntimeInputDict as DeleteAgentRuntimeInputDict, DeleteAgentRuntimeOutput as DeleteAgentRuntimeOutput, DeleteApiKeyCredentialProviderInput as DeleteApiKeyCredentialProviderInput, + DeleteApiKeyCredentialProviderInputDict as DeleteApiKeyCredentialProviderInputDict, DeleteApiKeyCredentialProviderOutput as DeleteApiKeyCredentialProviderOutput, DeleteBrowserInput as DeleteBrowserInput, + DeleteBrowserInputDict as DeleteBrowserInputDict, DeleteBrowserOutput as DeleteBrowserOutput, DeleteBrowserProfileInput as DeleteBrowserProfileInput, + DeleteBrowserProfileInputDict as DeleteBrowserProfileInputDict, DeleteBrowserProfileOutput as DeleteBrowserProfileOutput, DeleteCapacityProviderInput as DeleteCapacityProviderInput, + DeleteCapacityProviderInputDict as DeleteCapacityProviderInputDict, DeleteCapacityProviderOutput as DeleteCapacityProviderOutput, DeleteCodeInterpreterInput as DeleteCodeInterpreterInput, + DeleteCodeInterpreterInputDict as DeleteCodeInterpreterInputDict, DeleteCodeInterpreterOutput as DeleteCodeInterpreterOutput, DeleteConfigurationBundleInput as DeleteConfigurationBundleInput, + DeleteConfigurationBundleInputDict as DeleteConfigurationBundleInputDict, DeleteConfigurationBundleOutput as DeleteConfigurationBundleOutput, DeleteConsentPortalInput as DeleteConsentPortalInput, + DeleteConsentPortalInputDict as DeleteConsentPortalInputDict, DeleteConsentPortalOutput as DeleteConsentPortalOutput, DeleteDatasetExamplesInput as DeleteDatasetExamplesInput, + DeleteDatasetExamplesInputDict as DeleteDatasetExamplesInputDict, DeleteDatasetExamplesOutput as DeleteDatasetExamplesOutput, DeleteDatasetInput as DeleteDatasetInput, + DeleteDatasetInputDict as DeleteDatasetInputDict, DeleteDatasetOutput as DeleteDatasetOutput, DeleteEvaluatorInput as DeleteEvaluatorInput, + DeleteEvaluatorInputDict as DeleteEvaluatorInputDict, DeleteEvaluatorOutput as DeleteEvaluatorOutput, DeleteGatewayInput as DeleteGatewayInput, + DeleteGatewayInputDict as DeleteGatewayInputDict, DeleteGatewayOutput as DeleteGatewayOutput, DeleteGatewayRateLimitInput as DeleteGatewayRateLimitInput, + DeleteGatewayRateLimitInputDict as DeleteGatewayRateLimitInputDict, DeleteGatewayRateLimitOutput as DeleteGatewayRateLimitOutput, DeleteGatewayRuleInput as DeleteGatewayRuleInput, + DeleteGatewayRuleInputDict as DeleteGatewayRuleInputDict, DeleteGatewayRuleOutput as DeleteGatewayRuleOutput, DeleteGatewayTargetInput as DeleteGatewayTargetInput, + DeleteGatewayTargetInputDict as DeleteGatewayTargetInputDict, DeleteGatewayTargetOutput as DeleteGatewayTargetOutput, DeleteHarnessEndpointInput as DeleteHarnessEndpointInput, + DeleteHarnessEndpointInputDict as DeleteHarnessEndpointInputDict, DeleteHarnessEndpointOutput as DeleteHarnessEndpointOutput, DeleteHarnessInput as DeleteHarnessInput, + DeleteHarnessInputDict as DeleteHarnessInputDict, DeleteHarnessOutput as DeleteHarnessOutput, DeleteMemoryInput as DeleteMemoryInput, + DeleteMemoryInputDict as DeleteMemoryInputDict, DeleteMemoryOutput as DeleteMemoryOutput, DeleteMemoryStrategyInput as DeleteMemoryStrategyInput, + DeleteMemoryStrategyInputDict as DeleteMemoryStrategyInputDict, DeleteOauth2CredentialProviderInput as DeleteOauth2CredentialProviderInput, + DeleteOauth2CredentialProviderInputDict as DeleteOauth2CredentialProviderInputDict, DeleteOauth2CredentialProviderOutput as DeleteOauth2CredentialProviderOutput, DeleteOnlineEvaluationConfigInput as DeleteOnlineEvaluationConfigInput, + DeleteOnlineEvaluationConfigInputDict as DeleteOnlineEvaluationConfigInputDict, DeleteOnlineEvaluationConfigOutput as DeleteOnlineEvaluationConfigOutput, DeletePaymentConnectorInput as DeletePaymentConnectorInput, + DeletePaymentConnectorInputDict as DeletePaymentConnectorInputDict, DeletePaymentConnectorOutput as DeletePaymentConnectorOutput, DeletePaymentCredentialProviderInput as DeletePaymentCredentialProviderInput, + DeletePaymentCredentialProviderInputDict as DeletePaymentCredentialProviderInputDict, DeletePaymentCredentialProviderOutput as DeletePaymentCredentialProviderOutput, DeletePaymentManagerInput as DeletePaymentManagerInput, + DeletePaymentManagerInputDict as DeletePaymentManagerInputDict, DeletePaymentManagerOutput as DeletePaymentManagerOutput, DeletePolicyEngineInput as DeletePolicyEngineInput, + DeletePolicyEngineInputDict as DeletePolicyEngineInputDict, DeletePolicyEngineOutput as DeletePolicyEngineOutput, DeletePolicyInput as DeletePolicyInput, + DeletePolicyInputDict as DeletePolicyInputDict, DeletePolicyOutput as DeletePolicyOutput, DeleteRegistryInput as DeleteRegistryInput, + DeleteRegistryInputDict as DeleteRegistryInputDict, DeleteRegistryOutput as DeleteRegistryOutput, DeleteRegistryRecordInput as DeleteRegistryRecordInput, + DeleteRegistryRecordInputDict as DeleteRegistryRecordInputDict, DeleteRegistryRecordOutput as DeleteRegistryRecordOutput, DeleteResourcePolicyInput as DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict as DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput as DeleteResourcePolicyOutput, DeleteWorkloadIdentityInput as DeleteWorkloadIdentityInput, + DeleteWorkloadIdentityInputDict as DeleteWorkloadIdentityInputDict, DeleteWorkloadIdentityOutput as DeleteWorkloadIdentityOutput, ) from ._private.models_1 import ( DerivedEvaluatorConfig as DerivedEvaluatorConfig, + DerivedEvaluatorConfigDict as DerivedEvaluatorConfigDict, Descriptors as Descriptors, + DescriptorsDict as DescriptorsDict, DescriptorType as DescriptorType, DimensionRatingScaleNumerical as DimensionRatingScaleNumerical, DimensionRatingScaleCategorical as DimensionRatingScaleCategorical, DimensionRatingScaleUnknown as DimensionRatingScaleUnknown, DimensionRatingScale as DimensionRatingScale, _DimensionRatingScaleDeserializer as _DimensionRatingScaleDeserializer, + DimensionRatingScaleNumericalDict as DimensionRatingScaleNumericalDict, + DimensionRatingScaleCategoricalDict as DimensionRatingScaleCategoricalDict, + DimensionRatingScaleDict as DimensionRatingScaleDict, DomainOverride as DomainOverride, + DomainOverrideDict as DomainOverrideDict, DraftStatus as DraftStatus, EbsVolumeConfiguration as EbsVolumeConfiguration, + EbsVolumeConfigurationDict as EbsVolumeConfigurationDict, EbsVolumeType as EbsVolumeType, Ec2Configuration as Ec2Configuration, + Ec2ConfigurationDict as Ec2ConfigurationDict, EfsAccessPointConfiguration as EfsAccessPointConfiguration, + EfsAccessPointConfigurationDict as EfsAccessPointConfigurationDict, EfsConfiguration as EfsConfiguration, + EfsConfigurationDict as EfsConfigurationDict, EncryptionFailure as EncryptionFailure, EndpointIpAddressType as EndpointIpAddressType, EnforcementMode as EnforcementMode, EphemeralBlockDeviceMapping as EphemeralBlockDeviceMapping, + EphemeralBlockDeviceMappingDict as EphemeralBlockDeviceMappingDict, EphemeralEBSVolumeConfiguration as EphemeralEBSVolumeConfiguration, + EphemeralEBSVolumeConfigurationDict as EphemeralEBSVolumeConfigurationDict, EpisodicConsolidationOverride as EpisodicConsolidationOverride, EpisodicExtractionOverride as EpisodicExtractionOverride, EpisodicMemoryStrategyInput as EpisodicMemoryStrategyInput, + EpisodicMemoryStrategyInputDict as EpisodicMemoryStrategyInputDict, EpisodicOverrideConfigurationInput as EpisodicOverrideConfigurationInput, + EpisodicOverrideConfigurationInputDict as EpisodicOverrideConfigurationInputDict, EpisodicOverrideConsolidationConfigurationInput as EpisodicOverrideConsolidationConfigurationInput, + EpisodicOverrideConsolidationConfigurationInputDict as EpisodicOverrideConsolidationConfigurationInputDict, EpisodicOverrideExtractionConfigurationInput as EpisodicOverrideExtractionConfigurationInput, + EpisodicOverrideExtractionConfigurationInputDict as EpisodicOverrideExtractionConfigurationInputDict, EpisodicOverrideReflectionConfigurationInput as EpisodicOverrideReflectionConfigurationInput, + EpisodicOverrideReflectionConfigurationInputDict as EpisodicOverrideReflectionConfigurationInputDict, EpisodicReflectionConfiguration as EpisodicReflectionConfiguration, EpisodicReflectionConfigurationInput as EpisodicReflectionConfigurationInput, + EpisodicReflectionConfigurationInputDict as EpisodicReflectionConfigurationInputDict, EpisodicReflectionOverride as EpisodicReflectionOverride, EvaluationDimension as EvaluationDimension, + EvaluationDimensionDict as EvaluationDimensionDict, EvaluatorConfigLlmAsAJudge as EvaluatorConfigLlmAsAJudge, EvaluatorConfigCodeBased as EvaluatorConfigCodeBased, EvaluatorConfigDerived as EvaluatorConfigDerived, EvaluatorConfigUnknown as EvaluatorConfigUnknown, EvaluatorConfig as EvaluatorConfig, _EvaluatorConfigDeserializer as _EvaluatorConfigDeserializer, + EvaluatorConfigLlmAsAJudgeDict as EvaluatorConfigLlmAsAJudgeDict, + EvaluatorConfigCodeBasedDict as EvaluatorConfigCodeBasedDict, + EvaluatorConfigDerivedDict as EvaluatorConfigDerivedDict, + EvaluatorConfigDict as EvaluatorConfigDict, EvaluatorLevel as EvaluatorLevel, EvaluatorModelConfigBedrockEvaluatorModelConfig as EvaluatorModelConfigBedrockEvaluatorModelConfig, EvaluatorModelConfigResponsesEvaluatorModelConfig as EvaluatorModelConfigResponsesEvaluatorModelConfig, EvaluatorModelConfigUnknown as EvaluatorModelConfigUnknown, EvaluatorModelConfig as EvaluatorModelConfig, _EvaluatorModelConfigDeserializer as _EvaluatorModelConfigDeserializer, + EvaluatorModelConfigBedrockEvaluatorModelConfigDict as EvaluatorModelConfigBedrockEvaluatorModelConfigDict, + EvaluatorModelConfigResponsesEvaluatorModelConfigDict as EvaluatorModelConfigResponsesEvaluatorModelConfigDict, + EvaluatorModelConfigDict as EvaluatorModelConfigDict, EvaluatorReferenceEvaluatorId as EvaluatorReferenceEvaluatorId, EvaluatorReferenceUnknown as EvaluatorReferenceUnknown, EvaluatorReference as EvaluatorReference, _EvaluatorReferenceDeserializer as _EvaluatorReferenceDeserializer, + EvaluatorReferenceEvaluatorIdDict as EvaluatorReferenceEvaluatorIdDict, + EvaluatorReferenceDict as EvaluatorReferenceDict, EvaluatorStatus as EvaluatorStatus, EvaluatorSummary as EvaluatorSummary, EvaluatorType as EvaluatorType, @@ -427,15 +634,20 @@ from ._private.models_1 import ( ExtractionConfigUnknown as ExtractionConfigUnknown, ExtractionConfig as ExtractionConfig, _ExtractionConfigDeserializer as _ExtractionConfigDeserializer, + ExtractionConfigLlmExtractionConfigDict as ExtractionConfigLlmExtractionConfigDict, + ExtractionConfigDict as ExtractionConfigDict, ExtractionConfigurationCustomExtractionConfiguration as ExtractionConfigurationCustomExtractionConfiguration, ExtractionConfigurationUnknown as ExtractionConfigurationUnknown, ExtractionConfiguration as ExtractionConfiguration, _ExtractionConfigurationDeserializer as _ExtractionConfigurationDeserializer, ExtractionType as ExtractionType, Fallback as Fallback, + FallbackDict as FallbackDict, FallbackError as FallbackError, FallbackTarget as FallbackTarget, + FallbackTargetDict as FallbackTargetDict, FallbackTriggers as FallbackTriggers, + FallbackTriggersDict as FallbackTriggersDict, FilesystemConfigurationSessionStorage as FilesystemConfigurationSessionStorage, FilesystemConfigurationS3FilesAccessPoint as FilesystemConfigurationS3FilesAccessPoint, FilesystemConfigurationEfsAccessPoint as FilesystemConfigurationEfsAccessPoint, @@ -443,7 +655,13 @@ from ._private.models_1 import ( FilesystemConfigurationUnknown as FilesystemConfigurationUnknown, FilesystemConfiguration as FilesystemConfiguration, _FilesystemConfigurationDeserializer as _FilesystemConfigurationDeserializer, + FilesystemConfigurationSessionStorageDict as FilesystemConfigurationSessionStorageDict, + FilesystemConfigurationS3FilesAccessPointDict as FilesystemConfigurationS3FilesAccessPointDict, + FilesystemConfigurationEfsAccessPointDict as FilesystemConfigurationEfsAccessPointDict, + FilesystemConfigurationCapacityProviderVolumeDict as FilesystemConfigurationCapacityProviderVolumeDict, + FilesystemConfigurationDict as FilesystemConfigurationDict, Filter as Filter, + FilterDict as FilterDict, FilterOperator as FilterOperator, FilterValueStringValue as FilterValueStringValue, FilterValueDoubleValue as FilterValueDoubleValue, @@ -451,18 +669,28 @@ from ._private.models_1 import ( FilterValueUnknown as FilterValueUnknown, FilterValue as FilterValue, _FilterValueDeserializer as _FilterValueDeserializer, + FilterValueStringValueDict as FilterValueStringValueDict, + FilterValueDoubleValueDict as FilterValueDoubleValueDict, + FilterValueBooleanValueDict as FilterValueBooleanValueDict, + FilterValueDict as FilterValueDict, Finding as Finding, FindingType as FindingType, FromUrlSynchronizationConfiguration as FromUrlSynchronizationConfiguration, + FromUrlSynchronizationConfigurationDict as FromUrlSynchronizationConfigurationDict, GatewayApiKeyCredentialProvider as GatewayApiKeyCredentialProvider, + GatewayApiKeyCredentialProviderDict as GatewayApiKeyCredentialProviderDict, GatewayInterceptionPoint as GatewayInterceptionPoint, GatewayInterceptorConfiguration as GatewayInterceptorConfiguration, + GatewayInterceptorConfigurationDict as GatewayInterceptorConfigurationDict, GatewayPolicyEngineConfiguration as GatewayPolicyEngineConfiguration, + GatewayPolicyEngineConfigurationDict as GatewayPolicyEngineConfigurationDict, GatewayPolicyEngineMode as GatewayPolicyEngineMode, GatewayProtocolConfigurationMcp as GatewayProtocolConfigurationMcp, GatewayProtocolConfigurationUnknown as GatewayProtocolConfigurationUnknown, GatewayProtocolConfiguration as GatewayProtocolConfiguration, _GatewayProtocolConfigurationDeserializer as _GatewayProtocolConfigurationDeserializer, + GatewayProtocolConfigurationMcpDict as GatewayProtocolConfigurationMcpDict, + GatewayProtocolConfigurationDict as GatewayProtocolConfigurationDict, GatewayProtocolType as GatewayProtocolType, GatewayRateLimitDetail as GatewayRateLimitDetail, GatewayRateLimitStatus as GatewayRateLimitStatus, @@ -472,100 +700,151 @@ from ._private.models_1 import ( GatewaySummary as GatewaySummary, GatewayTarget as GatewayTarget, GetAgentRuntimeEndpointInput as GetAgentRuntimeEndpointInput, + GetAgentRuntimeEndpointInputDict as GetAgentRuntimeEndpointInputDict, GetAgentRuntimeEndpointOutput as GetAgentRuntimeEndpointOutput, GetAgentRuntimeInput as GetAgentRuntimeInput, + GetAgentRuntimeInputDict as GetAgentRuntimeInputDict, GetAgentRuntimeOutput as GetAgentRuntimeOutput, GetApiKeyCredentialProviderInput as GetApiKeyCredentialProviderInput, + GetApiKeyCredentialProviderInputDict as GetApiKeyCredentialProviderInputDict, GetApiKeyCredentialProviderOutput as GetApiKeyCredentialProviderOutput, GetBrowserInput as GetBrowserInput, + GetBrowserInputDict as GetBrowserInputDict, GetBrowserOutput as GetBrowserOutput, GetBrowserProfileInput as GetBrowserProfileInput, + GetBrowserProfileInputDict as GetBrowserProfileInputDict, GetBrowserProfileOutput as GetBrowserProfileOutput, GetCapacityProviderInput as GetCapacityProviderInput, + GetCapacityProviderInputDict as GetCapacityProviderInputDict, GetCapacityProviderOutput as GetCapacityProviderOutput, GetCodeInterpreterInput as GetCodeInterpreterInput, + GetCodeInterpreterInputDict as GetCodeInterpreterInputDict, GetCodeInterpreterOutput as GetCodeInterpreterOutput, GetConfigurationBundleInput as GetConfigurationBundleInput, + GetConfigurationBundleInputDict as GetConfigurationBundleInputDict, GetConfigurationBundleOutput as GetConfigurationBundleOutput, GetConfigurationBundleVersionInput as GetConfigurationBundleVersionInput, + GetConfigurationBundleVersionInputDict as GetConfigurationBundleVersionInputDict, GetConfigurationBundleVersionOutput as GetConfigurationBundleVersionOutput, GetConsentPortalInput as GetConsentPortalInput, + GetConsentPortalInputDict as GetConsentPortalInputDict, GetConsentPortalOutput as GetConsentPortalOutput, GetDatasetInput as GetDatasetInput, + GetDatasetInputDict as GetDatasetInputDict, GetDatasetOutput as GetDatasetOutput, GetEvaluatorInput as GetEvaluatorInput, + GetEvaluatorInputDict as GetEvaluatorInputDict, GetEvaluatorOutput as GetEvaluatorOutput, GetGatewayInput as GetGatewayInput, + GetGatewayInputDict as GetGatewayInputDict, GetGatewayOutput as GetGatewayOutput, GetGatewayRateLimitInput as GetGatewayRateLimitInput, + GetGatewayRateLimitInputDict as GetGatewayRateLimitInputDict, GetGatewayRateLimitOutput as GetGatewayRateLimitOutput, GetGatewayRuleInput as GetGatewayRuleInput, + GetGatewayRuleInputDict as GetGatewayRuleInputDict, GetGatewayRuleOutput as GetGatewayRuleOutput, GetGatewayTargetInput as GetGatewayTargetInput, + GetGatewayTargetInputDict as GetGatewayTargetInputDict, GetGatewayTargetOutput as GetGatewayTargetOutput, GetHarnessEndpointInput as GetHarnessEndpointInput, + GetHarnessEndpointInputDict as GetHarnessEndpointInputDict, GetHarnessEndpointOutput as GetHarnessEndpointOutput, GetHarnessInput as GetHarnessInput, + GetHarnessInputDict as GetHarnessInputDict, GetHarnessOutput as GetHarnessOutput, GetMemoryInput as GetMemoryInput, + GetMemoryInputDict as GetMemoryInputDict, GetMemoryOutput as GetMemoryOutput, GetOauth2CredentialProviderInput as GetOauth2CredentialProviderInput, + GetOauth2CredentialProviderInputDict as GetOauth2CredentialProviderInputDict, GetOauth2CredentialProviderOutput as GetOauth2CredentialProviderOutput, GetOnlineEvaluationConfigInput as GetOnlineEvaluationConfigInput, + GetOnlineEvaluationConfigInputDict as GetOnlineEvaluationConfigInputDict, GetOnlineEvaluationConfigOutput as GetOnlineEvaluationConfigOutput, GetPaymentConnectorInput as GetPaymentConnectorInput, + GetPaymentConnectorInputDict as GetPaymentConnectorInputDict, GetPaymentConnectorOutput as GetPaymentConnectorOutput, GetPaymentCredentialProviderInput as GetPaymentCredentialProviderInput, + GetPaymentCredentialProviderInputDict as GetPaymentCredentialProviderInputDict, GetPaymentCredentialProviderOutput as GetPaymentCredentialProviderOutput, GetPaymentManagerInput as GetPaymentManagerInput, + GetPaymentManagerInputDict as GetPaymentManagerInputDict, GetPaymentManagerOutput as GetPaymentManagerOutput, GetPolicyEngineInput as GetPolicyEngineInput, + GetPolicyEngineInputDict as GetPolicyEngineInputDict, GetPolicyEngineOutput as GetPolicyEngineOutput, GetPolicyEngineSummaryInput as GetPolicyEngineSummaryInput, + GetPolicyEngineSummaryInputDict as GetPolicyEngineSummaryInputDict, GetPolicyEngineSummaryOutput as GetPolicyEngineSummaryOutput, GetPolicyGenerationInput as GetPolicyGenerationInput, + GetPolicyGenerationInputDict as GetPolicyGenerationInputDict, GetPolicyGenerationOutput as GetPolicyGenerationOutput, GetPolicyGenerationSummaryInput as GetPolicyGenerationSummaryInput, + GetPolicyGenerationSummaryInputDict as GetPolicyGenerationSummaryInputDict, GetPolicyGenerationSummaryOutput as GetPolicyGenerationSummaryOutput, GetPolicyInput as GetPolicyInput, + GetPolicyInputDict as GetPolicyInputDict, GetPolicyOutput as GetPolicyOutput, GetPolicySummaryInput as GetPolicySummaryInput, + GetPolicySummaryInputDict as GetPolicySummaryInputDict, GetPolicySummaryOutput as GetPolicySummaryOutput, GetRegistryInput as GetRegistryInput, + GetRegistryInputDict as GetRegistryInputDict, GetRegistryOutput as GetRegistryOutput, GetRegistryRecordInput as GetRegistryRecordInput, + GetRegistryRecordInputDict as GetRegistryRecordInputDict, GetRegistryRecordOutput as GetRegistryRecordOutput, GetResourcePolicyInput as GetResourcePolicyInput, + GetResourcePolicyInputDict as GetResourcePolicyInputDict, GetResourcePolicyOutput as GetResourcePolicyOutput, GetTokenVaultInput as GetTokenVaultInput, + GetTokenVaultInputDict as GetTokenVaultInputDict, GetTokenVaultOutput as GetTokenVaultOutput, GetWorkloadIdentityInput as GetWorkloadIdentityInput, + GetWorkloadIdentityInputDict as GetWorkloadIdentityInputDict, GetWorkloadIdentityOutput as GetWorkloadIdentityOutput, GithubOauth2ProviderConfigInput as GithubOauth2ProviderConfigInput, + GithubOauth2ProviderConfigInputDict as GithubOauth2ProviderConfigInputDict, GithubOauth2ProviderConfigOutput as GithubOauth2ProviderConfigOutput, GoogleOauth2ProviderConfigInput as GoogleOauth2ProviderConfigInput, + GoogleOauth2ProviderConfigInputDict as GoogleOauth2ProviderConfigInputDict, GoogleOauth2ProviderConfigOutput as GoogleOauth2ProviderConfigOutput, Harness as Harness, HarnessAfterInvocationHook as HarnessAfterInvocationHook, + HarnessAfterInvocationHookDict as HarnessAfterInvocationHookDict, HarnessAfterToolCallHook as HarnessAfterToolCallHook, + HarnessAfterToolCallHookDict as HarnessAfterToolCallHookDict, HarnessAgentCoreBrowserConfig as HarnessAgentCoreBrowserConfig, + HarnessAgentCoreBrowserConfigDict as HarnessAgentCoreBrowserConfigDict, HarnessAgentCoreCodeInterpreterConfig as HarnessAgentCoreCodeInterpreterConfig, + HarnessAgentCoreCodeInterpreterConfigDict as HarnessAgentCoreCodeInterpreterConfigDict, HarnessAgentCoreGatewayConfig as HarnessAgentCoreGatewayConfig, + HarnessAgentCoreGatewayConfigDict as HarnessAgentCoreGatewayConfigDict, HarnessAgentCoreMemoryConfiguration as HarnessAgentCoreMemoryConfiguration, + HarnessAgentCoreMemoryConfigurationDict as HarnessAgentCoreMemoryConfigurationDict, HarnessAgentCoreMemoryRetrievalConfig as HarnessAgentCoreMemoryRetrievalConfig, + HarnessAgentCoreMemoryRetrievalConfigDict as HarnessAgentCoreMemoryRetrievalConfigDict, HarnessAgentCoreRuntimeEnvironment as HarnessAgentCoreRuntimeEnvironment, HarnessAgentCoreRuntimeEnvironmentRequest as HarnessAgentCoreRuntimeEnvironmentRequest, + HarnessAgentCoreRuntimeEnvironmentRequestDict as HarnessAgentCoreRuntimeEnvironmentRequestDict, HarnessBedrockApiFormat as HarnessBedrockApiFormat, HarnessBedrockModelConfig as HarnessBedrockModelConfig, + HarnessBedrockModelConfigDict as HarnessBedrockModelConfigDict, HarnessBeforeInvocationHook as HarnessBeforeInvocationHook, + HarnessBeforeInvocationHookDict as HarnessBeforeInvocationHookDict, HarnessBeforeToolCallHook as HarnessBeforeToolCallHook, + HarnessBeforeToolCallHookDict as HarnessBeforeToolCallHookDict, HarnessDisabledMemoryConfiguration as HarnessDisabledMemoryConfiguration, + HarnessDisabledMemoryConfigurationDict as HarnessDisabledMemoryConfigurationDict, HarnessEndpoint as HarnessEndpoint, HarnessEndpointStatus as HarnessEndpointStatus, HarnessEnvironmentArtifactContainerConfiguration as HarnessEnvironmentArtifactContainerConfiguration, HarnessEnvironmentArtifactUnknown as HarnessEnvironmentArtifactUnknown, HarnessEnvironmentArtifact as HarnessEnvironmentArtifact, _HarnessEnvironmentArtifactDeserializer as _HarnessEnvironmentArtifactDeserializer, + HarnessEnvironmentArtifactContainerConfigurationDict as HarnessEnvironmentArtifactContainerConfigurationDict, + HarnessEnvironmentArtifactDict as HarnessEnvironmentArtifactDict, HarnessEnvironmentProviderAgentCoreRuntimeEnvironment as HarnessEnvironmentProviderAgentCoreRuntimeEnvironment, HarnessEnvironmentProviderUnknown as HarnessEnvironmentProviderUnknown, HarnessEnvironmentProvider as HarnessEnvironmentProvider, @@ -574,13 +853,20 @@ from ._private.models_1 import ( HarnessEnvironmentProviderRequestUnknown as HarnessEnvironmentProviderRequestUnknown, HarnessEnvironmentProviderRequest as HarnessEnvironmentProviderRequest, _HarnessEnvironmentProviderRequestDeserializer as _HarnessEnvironmentProviderRequestDeserializer, + HarnessEnvironmentProviderRequestAgentCoreRuntimeEnvironmentDict as HarnessEnvironmentProviderRequestAgentCoreRuntimeEnvironmentDict, + HarnessEnvironmentProviderRequestDict as HarnessEnvironmentProviderRequestDict, HarnessGatewayOutboundAuthAwsIam as HarnessGatewayOutboundAuthAwsIam, HarnessGatewayOutboundAuthNone as HarnessGatewayOutboundAuthNone, HarnessGatewayOutboundAuthOauth as HarnessGatewayOutboundAuthOauth, HarnessGatewayOutboundAuthUnknown as HarnessGatewayOutboundAuthUnknown, HarnessGatewayOutboundAuth as HarnessGatewayOutboundAuth, _HarnessGatewayOutboundAuthDeserializer as _HarnessGatewayOutboundAuthDeserializer, + HarnessGatewayOutboundAuthAwsIamDict as HarnessGatewayOutboundAuthAwsIamDict, + HarnessGatewayOutboundAuthNoneDict as HarnessGatewayOutboundAuthNoneDict, + HarnessGatewayOutboundAuthOauthDict as HarnessGatewayOutboundAuthOauthDict, + HarnessGatewayOutboundAuthDict as HarnessGatewayOutboundAuthDict, HarnessGeminiModelConfig as HarnessGeminiModelConfig, + HarnessGeminiModelConfigDict as HarnessGeminiModelConfigDict, HarnessHookBeforeInvocation as HarnessHookBeforeInvocation, HarnessHookAfterInvocation as HarnessHookAfterInvocation, HarnessHookBeforeToolCall as HarnessHookBeforeToolCall, @@ -588,19 +874,34 @@ from ._private.models_1 import ( HarnessHookUnknown as HarnessHookUnknown, HarnessHook as HarnessHook, _HarnessHookDeserializer as _HarnessHookDeserializer, + HarnessHookBeforeInvocationDict as HarnessHookBeforeInvocationDict, + HarnessHookAfterInvocationDict as HarnessHookAfterInvocationDict, + HarnessHookBeforeToolCallDict as HarnessHookBeforeToolCallDict, + HarnessHookAfterToolCallDict as HarnessHookAfterToolCallDict, + HarnessHookDict as HarnessHookDict, HarnessHookEventBridgeTarget as HarnessHookEventBridgeTarget, + HarnessHookEventBridgeTargetDict as HarnessHookEventBridgeTargetDict, HarnessHookFailureMode as HarnessHookFailureMode, HarnessHookLambdaTarget as HarnessHookLambdaTarget, + HarnessHookLambdaTargetDict as HarnessHookLambdaTargetDict, HarnessHookSnsTarget as HarnessHookSnsTarget, + HarnessHookSnsTargetDict as HarnessHookSnsTargetDict, HarnessHookTargetLambda as HarnessHookTargetLambda, HarnessHookTargetSns as HarnessHookTargetSns, HarnessHookTargetEventBridge as HarnessHookTargetEventBridge, HarnessHookTargetUnknown as HarnessHookTargetUnknown, HarnessHookTarget as HarnessHookTarget, _HarnessHookTargetDeserializer as _HarnessHookTargetDeserializer, + HarnessHookTargetLambdaDict as HarnessHookTargetLambdaDict, + HarnessHookTargetSnsDict as HarnessHookTargetSnsDict, + HarnessHookTargetEventBridgeDict as HarnessHookTargetEventBridgeDict, + HarnessHookTargetDict as HarnessHookTargetDict, HarnessInlineFunctionConfig as HarnessInlineFunctionConfig, + HarnessInlineFunctionConfigDict as HarnessInlineFunctionConfigDict, HarnessLiteLlmModelConfig as HarnessLiteLlmModelConfig, + HarnessLiteLlmModelConfigDict as HarnessLiteLlmModelConfigDict, HarnessManagedMemoryConfiguration as HarnessManagedMemoryConfiguration, + HarnessManagedMemoryConfigurationDict as HarnessManagedMemoryConfigurationDict, HarnessManagedMemoryStrategyType as HarnessManagedMemoryStrategyType, HarnessMemoryConfigurationAgentCoreMemoryConfiguration as HarnessMemoryConfigurationAgentCoreMemoryConfiguration, HarnessMemoryConfigurationManagedMemoryConfiguration as HarnessMemoryConfigurationManagedMemoryConfiguration, @@ -608,6 +909,10 @@ from ._private.models_1 import ( HarnessMemoryConfigurationUnknown as HarnessMemoryConfigurationUnknown, HarnessMemoryConfiguration as HarnessMemoryConfiguration, _HarnessMemoryConfigurationDeserializer as _HarnessMemoryConfigurationDeserializer, + HarnessMemoryConfigurationAgentCoreMemoryConfigurationDict as HarnessMemoryConfigurationAgentCoreMemoryConfigurationDict, + HarnessMemoryConfigurationManagedMemoryConfigurationDict as HarnessMemoryConfigurationManagedMemoryConfigurationDict, + HarnessMemoryConfigurationDisabledDict as HarnessMemoryConfigurationDisabledDict, + HarnessMemoryConfigurationDict as HarnessMemoryConfigurationDict, HarnessModelConfigurationBedrockModelConfig as HarnessModelConfigurationBedrockModelConfig, HarnessModelConfigurationOpenAiModelConfig as HarnessModelConfigurationOpenAiModelConfig, HarnessModelConfigurationGeminiModelConfig as HarnessModelConfigurationGeminiModelConfig, @@ -615,14 +920,24 @@ from ._private.models_1 import ( HarnessModelConfigurationUnknown as HarnessModelConfigurationUnknown, HarnessModelConfiguration as HarnessModelConfiguration, _HarnessModelConfigurationDeserializer as _HarnessModelConfigurationDeserializer, + HarnessModelConfigurationBedrockModelConfigDict as HarnessModelConfigurationBedrockModelConfigDict, + HarnessModelConfigurationOpenAiModelConfigDict as HarnessModelConfigurationOpenAiModelConfigDict, + HarnessModelConfigurationGeminiModelConfigDict as HarnessModelConfigurationGeminiModelConfigDict, + HarnessModelConfigurationLiteLlmModelConfigDict as HarnessModelConfigurationLiteLlmModelConfigDict, + HarnessModelConfigurationDict as HarnessModelConfigurationDict, HarnessOpenAiApiFormat as HarnessOpenAiApiFormat, HarnessOpenAiModelConfig as HarnessOpenAiModelConfig, + HarnessOpenAiModelConfigDict as HarnessOpenAiModelConfigDict, HarnessRemoteMcpConfig as HarnessRemoteMcpConfig, + HarnessRemoteMcpConfigDict as HarnessRemoteMcpConfigDict, HarnessRemoteMcpOutboundAuthAwsIam as HarnessRemoteMcpOutboundAuthAwsIam, HarnessRemoteMcpOutboundAuthNone as HarnessRemoteMcpOutboundAuthNone, HarnessRemoteMcpOutboundAuthUnknown as HarnessRemoteMcpOutboundAuthUnknown, HarnessRemoteMcpOutboundAuth as HarnessRemoteMcpOutboundAuth, _HarnessRemoteMcpOutboundAuthDeserializer as _HarnessRemoteMcpOutboundAuthDeserializer, + HarnessRemoteMcpOutboundAuthAwsIamDict as HarnessRemoteMcpOutboundAuthAwsIamDict, + HarnessRemoteMcpOutboundAuthNoneDict as HarnessRemoteMcpOutboundAuthNoneDict, + HarnessRemoteMcpOutboundAuthDict as HarnessRemoteMcpOutboundAuthDict, HarnessSkillPath as HarnessSkillPath, HarnessSkillS3 as HarnessSkillS3, HarnessSkillGit as HarnessSkillGit, @@ -630,19 +945,33 @@ from ._private.models_1 import ( HarnessSkillUnknown as HarnessSkillUnknown, HarnessSkill as HarnessSkill, _HarnessSkillDeserializer as _HarnessSkillDeserializer, + HarnessSkillPathDict as HarnessSkillPathDict, + HarnessSkillS3Dict as HarnessSkillS3Dict, + HarnessSkillGitDict as HarnessSkillGitDict, + HarnessSkillAwsSkillsDict as HarnessSkillAwsSkillsDict, + HarnessSkillDict as HarnessSkillDict, HarnessSkillAwsSkillsSource as HarnessSkillAwsSkillsSource, + HarnessSkillAwsSkillsSourceDict as HarnessSkillAwsSkillsSourceDict, HarnessSkillGitAuth as HarnessSkillGitAuth, + HarnessSkillGitAuthDict as HarnessSkillGitAuthDict, HarnessSkillGitSource as HarnessSkillGitSource, + HarnessSkillGitSourceDict as HarnessSkillGitSourceDict, HarnessSkillS3Source as HarnessSkillS3Source, + HarnessSkillS3SourceDict as HarnessSkillS3SourceDict, HarnessSlidingWindowConfiguration as HarnessSlidingWindowConfiguration, + HarnessSlidingWindowConfigurationDict as HarnessSlidingWindowConfigurationDict, HarnessStatus as HarnessStatus, HarnessSummarizationConfiguration as HarnessSummarizationConfiguration, + HarnessSummarizationConfigurationDict as HarnessSummarizationConfigurationDict, HarnessSummary as HarnessSummary, HarnessSystemContentBlockText as HarnessSystemContentBlockText, HarnessSystemContentBlockUnknown as HarnessSystemContentBlockUnknown, HarnessSystemContentBlock as HarnessSystemContentBlock, _HarnessSystemContentBlockDeserializer as _HarnessSystemContentBlockDeserializer, + HarnessSystemContentBlockTextDict as HarnessSystemContentBlockTextDict, + HarnessSystemContentBlockDict as HarnessSystemContentBlockDict, HarnessTool as HarnessTool, + HarnessToolDict as HarnessToolDict, HarnessToolConfigurationRemoteMcp as HarnessToolConfigurationRemoteMcp, HarnessToolConfigurationAgentCoreBrowser as HarnessToolConfigurationAgentCoreBrowser, HarnessToolConfigurationAgentCoreGateway as HarnessToolConfigurationAgentCoreGateway, @@ -651,184 +980,295 @@ from ._private.models_1 import ( HarnessToolConfigurationUnknown as HarnessToolConfigurationUnknown, HarnessToolConfiguration as HarnessToolConfiguration, _HarnessToolConfigurationDeserializer as _HarnessToolConfigurationDeserializer, + HarnessToolConfigurationRemoteMcpDict as HarnessToolConfigurationRemoteMcpDict, + HarnessToolConfigurationAgentCoreBrowserDict as HarnessToolConfigurationAgentCoreBrowserDict, + HarnessToolConfigurationAgentCoreGatewayDict as HarnessToolConfigurationAgentCoreGatewayDict, + HarnessToolConfigurationInlineFunctionDict as HarnessToolConfigurationInlineFunctionDict, + HarnessToolConfigurationAgentCoreCodeInterpreterDict as HarnessToolConfigurationAgentCoreCodeInterpreterDict, + HarnessToolConfigurationDict as HarnessToolConfigurationDict, HarnessToolType as HarnessToolType, HarnessTruncationConfiguration as HarnessTruncationConfiguration, + HarnessTruncationConfigurationDict as HarnessTruncationConfigurationDict, HarnessTruncationStrategy as HarnessTruncationStrategy, HarnessTruncationStrategyConfigurationSlidingWindow as HarnessTruncationStrategyConfigurationSlidingWindow, HarnessTruncationStrategyConfigurationSummarization as HarnessTruncationStrategyConfigurationSummarization, HarnessTruncationStrategyConfigurationUnknown as HarnessTruncationStrategyConfigurationUnknown, HarnessTruncationStrategyConfiguration as HarnessTruncationStrategyConfiguration, _HarnessTruncationStrategyConfigurationDeserializer as _HarnessTruncationStrategyConfigurationDeserializer, + HarnessTruncationStrategyConfigurationSlidingWindowDict as HarnessTruncationStrategyConfigurationSlidingWindowDict, + HarnessTruncationStrategyConfigurationSummarizationDict as HarnessTruncationStrategyConfigurationSummarizationDict, + HarnessTruncationStrategyConfigurationDict as HarnessTruncationStrategyConfigurationDict, HarnessVersionSummary as HarnessVersionSummary, HostingEnvironment as HostingEnvironment, + HostingEnvironmentDict as HostingEnvironmentDict, HttpApiSchemaConfiguration as HttpApiSchemaConfiguration, + HttpApiSchemaConfigurationDict as HttpApiSchemaConfigurationDict, HttpConnectorSource as HttpConnectorSource, + HttpConnectorSourceDict as HttpConnectorSourceDict, HttpConnectorTargetConfiguration as HttpConnectorTargetConfiguration, + HttpConnectorTargetConfigurationDict as HttpConnectorTargetConfigurationDict, HttpPostLifecycleHookAction as HttpPostLifecycleHookAction, + HttpPostLifecycleHookActionDict as HttpPostLifecycleHookActionDict, HttpTargetConfigurationAgentcoreRuntime as HttpTargetConfigurationAgentcoreRuntime, HttpTargetConfigurationPassthrough as HttpTargetConfigurationPassthrough, HttpTargetConfigurationConnector as HttpTargetConfigurationConnector, HttpTargetConfigurationUnknown as HttpTargetConfigurationUnknown, HttpTargetConfiguration as HttpTargetConfiguration, _HttpTargetConfigurationDeserializer as _HttpTargetConfigurationDeserializer, + HttpTargetConfigurationAgentcoreRuntimeDict as HttpTargetConfigurationAgentcoreRuntimeDict, + HttpTargetConfigurationPassthroughDict as HttpTargetConfigurationPassthroughDict, + HttpTargetConfigurationConnectorDict as HttpTargetConfigurationConnectorDict, + HttpTargetConfigurationDict as HttpTargetConfigurationDict, IamCredentialProvider as IamCredentialProvider, + IamCredentialProviderDict as IamCredentialProviderDict, IamPrincipal as IamPrincipal, + IamPrincipalDict as IamPrincipalDict, InboundTokenClaimValueType as InboundTokenClaimValueType, IncludedData as IncludedData, IncludedOauth2ProviderConfigInput as IncludedOauth2ProviderConfigInput, + IncludedOauth2ProviderConfigInputDict as IncludedOauth2ProviderConfigInputDict, IncludedOauth2ProviderConfigOutput as IncludedOauth2ProviderConfigOutput, IndexedKey as IndexedKey, + IndexedKeyDict as IndexedKeyDict, InferenceConfiguration as InferenceConfiguration, + InferenceConfigurationDict as InferenceConfigurationDict, InferenceConnectorSource as InferenceConnectorSource, + InferenceConnectorSourceDict as InferenceConnectorSourceDict, InferenceConnectorTargetConfiguration as InferenceConnectorTargetConfiguration, + InferenceConnectorTargetConfigurationDict as InferenceConnectorTargetConfigurationDict, InferenceOperationConfiguration as InferenceOperationConfiguration, + InferenceOperationConfigurationDict as InferenceOperationConfigurationDict, InferenceProviderTargetConfiguration as InferenceProviderTargetConfiguration, + InferenceProviderTargetConfigurationDict as InferenceProviderTargetConfigurationDict, InferenceTargetConfigurationConnector as InferenceTargetConfigurationConnector, InferenceTargetConfigurationProvider as InferenceTargetConfigurationProvider, InferenceTargetConfigurationUnknown as InferenceTargetConfigurationUnknown, InferenceTargetConfiguration as InferenceTargetConfiguration, _InferenceTargetConfigurationDeserializer as _InferenceTargetConfigurationDeserializer, + InferenceTargetConfigurationConnectorDict as InferenceTargetConfigurationConnectorDict, + InferenceTargetConfigurationProviderDict as InferenceTargetConfigurationProviderDict, + InferenceTargetConfigurationDict as InferenceTargetConfigurationDict, InlineExamplesSource as InlineExamplesSource, + InlineExamplesSourceDict as InlineExamplesSourceDict, Insight as Insight, + InsightDict as InsightDict, InstanceLifecycleConfiguration as InstanceLifecycleConfiguration, + InstanceLifecycleConfigurationDict as InstanceLifecycleConfigurationDict, InstanceRequirements as InstanceRequirements, + InstanceRequirementsDict as InstanceRequirementsDict, InterceptorConfigurationLambda as InterceptorConfigurationLambda, InterceptorConfigurationUnknown as InterceptorConfigurationUnknown, InterceptorConfiguration as InterceptorConfiguration, _InterceptorConfigurationDeserializer as _InterceptorConfigurationDeserializer, + InterceptorConfigurationLambdaDict as InterceptorConfigurationLambdaDict, + InterceptorConfigurationDict as InterceptorConfigurationDict, InterceptorInputConfiguration as InterceptorInputConfiguration, + InterceptorInputConfigurationDict as InterceptorInputConfigurationDict, InterceptorPayloadExclusion as InterceptorPayloadExclusion, InterceptorPayloadExclusionSelectorField as InterceptorPayloadExclusionSelectorField, InterceptorPayloadExclusionSelectorUnknown as InterceptorPayloadExclusionSelectorUnknown, InterceptorPayloadExclusionSelector as InterceptorPayloadExclusionSelector, _InterceptorPayloadExclusionSelectorDeserializer as _InterceptorPayloadExclusionSelectorDeserializer, + InterceptorPayloadExclusionSelectorFieldDict as InterceptorPayloadExclusionSelectorFieldDict, + InterceptorPayloadExclusionSelectorDict as InterceptorPayloadExclusionSelectorDict, InterceptorPayloadFilter as InterceptorPayloadFilter, + InterceptorPayloadFilterDict as InterceptorPayloadFilterDict, InternalServerException as InternalServerException, InvocationConfiguration as InvocationConfiguration, InvocationConfigurationInput as InvocationConfigurationInput, + InvocationConfigurationInputDict as InvocationConfigurationInputDict, KeyType as KeyType, KinesisResource as KinesisResource, + KinesisResourceDict as KinesisResourceDict, KmsConfiguration as KmsConfiguration, + KmsConfigurationDict as KmsConfigurationDict, KmsKeySourceType as KmsKeySourceType, + KmsKeySourceTypeDict as KmsKeySourceTypeDict, LambdaEvaluatorConfig as LambdaEvaluatorConfig, + LambdaEvaluatorConfigDict as LambdaEvaluatorConfigDict, LambdaInterceptorConfiguration as LambdaInterceptorConfiguration, + LambdaInterceptorConfigurationDict as LambdaInterceptorConfigurationDict, LambdaTransformConfiguration as LambdaTransformConfiguration, + LambdaTransformConfigurationDict as LambdaTransformConfigurationDict, LaunchParameters as LaunchParameters, + LaunchParametersDict as LaunchParametersDict, LaunchTemplateSourceLaunchParameters as LaunchTemplateSourceLaunchParameters, LaunchTemplateSourceUnknown as LaunchTemplateSourceUnknown, LaunchTemplateSource as LaunchTemplateSource, _LaunchTemplateSourceDeserializer as _LaunchTemplateSourceDeserializer, + LaunchTemplateSourceLaunchParametersDict as LaunchTemplateSourceLaunchParametersDict, + LaunchTemplateSourceDict as LaunchTemplateSourceDict, LicenseSpecification as LicenseSpecification, + LicenseSpecificationDict as LicenseSpecificationDict, LifecycleConfiguration as LifecycleConfiguration, + LifecycleConfigurationDict as LifecycleConfigurationDict, LifecycleHook as LifecycleHook, + LifecycleHookDict as LifecycleHookDict, LifecycleHookActionHttpPost as LifecycleHookActionHttpPost, LifecycleHookActionUnknown as LifecycleHookActionUnknown, LifecycleHookAction as LifecycleHookAction, _LifecycleHookActionDeserializer as _LifecycleHookActionDeserializer, + LifecycleHookActionHttpPostDict as LifecycleHookActionHttpPostDict, + LifecycleHookActionDict as LifecycleHookActionDict, LimitEntry as LimitEntry, + LimitEntryDict as LimitEntryDict, LinkedinOauth2ProviderConfigInput as LinkedinOauth2ProviderConfigInput, + LinkedinOauth2ProviderConfigInputDict as LinkedinOauth2ProviderConfigInputDict, LinkedinOauth2ProviderConfigOutput as LinkedinOauth2ProviderConfigOutput, ListAgentRuntimeEndpointsInput as ListAgentRuntimeEndpointsInput, + ListAgentRuntimeEndpointsInputDict as ListAgentRuntimeEndpointsInputDict, ListAgentRuntimeEndpointsOutput as ListAgentRuntimeEndpointsOutput, ListAgentRuntimesInput as ListAgentRuntimesInput, + ListAgentRuntimesInputDict as ListAgentRuntimesInputDict, ListAgentRuntimesOutput as ListAgentRuntimesOutput, ListAgentRuntimeVersionsByCapacityProviderInput as ListAgentRuntimeVersionsByCapacityProviderInput, + ListAgentRuntimeVersionsByCapacityProviderInputDict as ListAgentRuntimeVersionsByCapacityProviderInputDict, ListAgentRuntimeVersionsByCapacityProviderOutput as ListAgentRuntimeVersionsByCapacityProviderOutput, ListAgentRuntimeVersionsInput as ListAgentRuntimeVersionsInput, + ListAgentRuntimeVersionsInputDict as ListAgentRuntimeVersionsInputDict, ListAgentRuntimeVersionsOutput as ListAgentRuntimeVersionsOutput, ListApiKeyCredentialProvidersInput as ListApiKeyCredentialProvidersInput, + ListApiKeyCredentialProvidersInputDict as ListApiKeyCredentialProvidersInputDict, ListApiKeyCredentialProvidersOutput as ListApiKeyCredentialProvidersOutput, ListBrowserProfilesInput as ListBrowserProfilesInput, + ListBrowserProfilesInputDict as ListBrowserProfilesInputDict, ) from ._private.models_2 import ( ListBrowserProfilesOutput as ListBrowserProfilesOutput, ListBrowsersInput as ListBrowsersInput, + ListBrowsersInputDict as ListBrowsersInputDict, ListBrowsersOutput as ListBrowsersOutput, ListCapacityProvidersInput as ListCapacityProvidersInput, + ListCapacityProvidersInputDict as ListCapacityProvidersInputDict, ListCapacityProvidersOutput as ListCapacityProvidersOutput, ListCodeInterpretersInput as ListCodeInterpretersInput, + ListCodeInterpretersInputDict as ListCodeInterpretersInputDict, ListCodeInterpretersOutput as ListCodeInterpretersOutput, ListConfigurationBundlesInput as ListConfigurationBundlesInput, + ListConfigurationBundlesInputDict as ListConfigurationBundlesInputDict, ListConfigurationBundlesOutput as ListConfigurationBundlesOutput, ListConfigurationBundleVersionsInput as ListConfigurationBundleVersionsInput, + ListConfigurationBundleVersionsInputDict as ListConfigurationBundleVersionsInputDict, ListConfigurationBundleVersionsOutput as ListConfigurationBundleVersionsOutput, ListConsentPortalsInput as ListConsentPortalsInput, + ListConsentPortalsInputDict as ListConsentPortalsInputDict, ListConsentPortalsOutput as ListConsentPortalsOutput, ListDatasetExamplesInput as ListDatasetExamplesInput, + ListDatasetExamplesInputDict as ListDatasetExamplesInputDict, ListDatasetExamplesOutput as ListDatasetExamplesOutput, ListDatasetsInput as ListDatasetsInput, + ListDatasetsInputDict as ListDatasetsInputDict, ListDatasetsOutput as ListDatasetsOutput, ListDatasetVersionsInput as ListDatasetVersionsInput, + ListDatasetVersionsInputDict as ListDatasetVersionsInputDict, ListDatasetVersionsOutput as ListDatasetVersionsOutput, ListEvaluatorsInput as ListEvaluatorsInput, + ListEvaluatorsInputDict as ListEvaluatorsInputDict, ListEvaluatorsOutput as ListEvaluatorsOutput, ListGatewayRateLimitsInput as ListGatewayRateLimitsInput, + ListGatewayRateLimitsInputDict as ListGatewayRateLimitsInputDict, ListGatewayRateLimitsOutput as ListGatewayRateLimitsOutput, ListGatewayRulesInput as ListGatewayRulesInput, + ListGatewayRulesInputDict as ListGatewayRulesInputDict, ListGatewayRulesOutput as ListGatewayRulesOutput, ListGatewaysInput as ListGatewaysInput, + ListGatewaysInputDict as ListGatewaysInputDict, ListGatewaysOutput as ListGatewaysOutput, ListGatewayTargetsInput as ListGatewayTargetsInput, + ListGatewayTargetsInputDict as ListGatewayTargetsInputDict, ListGatewayTargetsOutput as ListGatewayTargetsOutput, ListHarnessEndpointsInput as ListHarnessEndpointsInput, + ListHarnessEndpointsInputDict as ListHarnessEndpointsInputDict, ListHarnessEndpointsOutput as ListHarnessEndpointsOutput, ListHarnessesInput as ListHarnessesInput, + ListHarnessesInputDict as ListHarnessesInputDict, ListHarnessesOutput as ListHarnessesOutput, ListHarnessVersionsInput as ListHarnessVersionsInput, + ListHarnessVersionsInputDict as ListHarnessVersionsInputDict, ListHarnessVersionsOutput as ListHarnessVersionsOutput, ListingMode as ListingMode, ListMemoriesInput as ListMemoriesInput, + ListMemoriesInputDict as ListMemoriesInputDict, ListMemoriesOutput as ListMemoriesOutput, ListOauth2CredentialProvidersInput as ListOauth2CredentialProvidersInput, + ListOauth2CredentialProvidersInputDict as ListOauth2CredentialProvidersInputDict, ListOauth2CredentialProvidersOutput as ListOauth2CredentialProvidersOutput, ListOnlineEvaluationConfigsInput as ListOnlineEvaluationConfigsInput, + ListOnlineEvaluationConfigsInputDict as ListOnlineEvaluationConfigsInputDict, ListOnlineEvaluationConfigsOutput as ListOnlineEvaluationConfigsOutput, ListPaymentConnectorsInput as ListPaymentConnectorsInput, + ListPaymentConnectorsInputDict as ListPaymentConnectorsInputDict, ListPaymentConnectorsOutput as ListPaymentConnectorsOutput, ListPaymentCredentialProvidersInput as ListPaymentCredentialProvidersInput, + ListPaymentCredentialProvidersInputDict as ListPaymentCredentialProvidersInputDict, ListPaymentCredentialProvidersOutput as ListPaymentCredentialProvidersOutput, ListPaymentManagersInput as ListPaymentManagersInput, + ListPaymentManagersInputDict as ListPaymentManagersInputDict, ListPaymentManagersOutput as ListPaymentManagersOutput, ListPoliciesInput as ListPoliciesInput, + ListPoliciesInputDict as ListPoliciesInputDict, ListPoliciesOutput as ListPoliciesOutput, ListPolicyEnginesInput as ListPolicyEnginesInput, + ListPolicyEnginesInputDict as ListPolicyEnginesInputDict, ListPolicyEnginesOutput as ListPolicyEnginesOutput, ListPolicyEngineSummariesInput as ListPolicyEngineSummariesInput, + ListPolicyEngineSummariesInputDict as ListPolicyEngineSummariesInputDict, ListPolicyEngineSummariesOutput as ListPolicyEngineSummariesOutput, ListPolicyGenerationAssetsInput as ListPolicyGenerationAssetsInput, + ListPolicyGenerationAssetsInputDict as ListPolicyGenerationAssetsInputDict, ListPolicyGenerationAssetsOutput as ListPolicyGenerationAssetsOutput, ListPolicyGenerationsInput as ListPolicyGenerationsInput, + ListPolicyGenerationsInputDict as ListPolicyGenerationsInputDict, ListPolicyGenerationsOutput as ListPolicyGenerationsOutput, ListPolicyGenerationSummariesInput as ListPolicyGenerationSummariesInput, + ListPolicyGenerationSummariesInputDict as ListPolicyGenerationSummariesInputDict, ListPolicyGenerationSummariesOutput as ListPolicyGenerationSummariesOutput, ListPolicySummariesInput as ListPolicySummariesInput, + ListPolicySummariesInputDict as ListPolicySummariesInputDict, ListPolicySummariesOutput as ListPolicySummariesOutput, ListRegistriesInput as ListRegistriesInput, + ListRegistriesInputDict as ListRegistriesInputDict, ListRegistriesOutput as ListRegistriesOutput, ListRegistryRecordsInput as ListRegistryRecordsInput, + ListRegistryRecordsInputDict as ListRegistryRecordsInputDict, ListRegistryRecordsOutput as ListRegistryRecordsOutput, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, ListWorkloadIdentitiesInput as ListWorkloadIdentitiesInput, + ListWorkloadIdentitiesInputDict as ListWorkloadIdentitiesInputDict, ListWorkloadIdentitiesOutput as ListWorkloadIdentitiesOutput, LlmAsAJudgeEvaluatorConfig as LlmAsAJudgeEvaluatorConfig, + LlmAsAJudgeEvaluatorConfigDict as LlmAsAJudgeEvaluatorConfigDict, LlmExtractionConfig as LlmExtractionConfig, + LlmExtractionConfigDict as LlmExtractionConfigDict, ManagedResourceDetails as ManagedResourceDetails, ManagedVpcResource as ManagedVpcResource, + ManagedVpcResourceDict as ManagedVpcResourceDict, MatchModelEntry as MatchModelEntry, + MatchModelEntryDict as MatchModelEntryDict, MatchModels as MatchModels, + MatchModelsDict as MatchModelsDict, MatchOperator as MatchOperator, MatchPaths as MatchPaths, + MatchPathsDict as MatchPathsDict, MatchPrincipalEntryIamPrincipal as MatchPrincipalEntryIamPrincipal, MatchPrincipalEntryUnknown as MatchPrincipalEntryUnknown, MatchPrincipalEntry as MatchPrincipalEntry, _MatchPrincipalEntryDeserializer as _MatchPrincipalEntryDeserializer, + MatchPrincipalEntryIamPrincipalDict as MatchPrincipalEntryIamPrincipalDict, + MatchPrincipalEntryDict as MatchPrincipalEntryDict, MatchPrincipals as MatchPrincipals, + MatchPrincipalsDict as MatchPrincipalsDict, McpDescriptor as McpDescriptor, + McpDescriptorDict as McpDescriptorDict, MCPGatewayConfiguration as MCPGatewayConfiguration, + MCPGatewayConfigurationDict as MCPGatewayConfigurationDict, McpLambdaTargetConfiguration as McpLambdaTargetConfiguration, + McpLambdaTargetConfigurationDict as McpLambdaTargetConfigurationDict, McpServerTargetConfiguration as McpServerTargetConfiguration, + McpServerTargetConfigurationDict as McpServerTargetConfigurationDict, McpTargetConfigurationOpenApiSchema as McpTargetConfigurationOpenApiSchema, McpTargetConfigurationSmithyModel as McpTargetConfigurationSmithyModel, McpTargetConfigurationLambda as McpTargetConfigurationLambda, @@ -838,13 +1278,24 @@ from ._private.models_2 import ( McpTargetConfigurationUnknown as McpTargetConfigurationUnknown, McpTargetConfiguration as McpTargetConfiguration, _McpTargetConfigurationDeserializer as _McpTargetConfigurationDeserializer, + McpTargetConfigurationOpenApiSchemaDict as McpTargetConfigurationOpenApiSchemaDict, + McpTargetConfigurationSmithyModelDict as McpTargetConfigurationSmithyModelDict, + McpTargetConfigurationLambdaDict as McpTargetConfigurationLambdaDict, + McpTargetConfigurationMcpServerDict as McpTargetConfigurationMcpServerDict, + McpTargetConfigurationApiGatewayDict as McpTargetConfigurationApiGatewayDict, + McpTargetConfigurationConnectorDict as McpTargetConfigurationConnectorDict, + McpTargetConfigurationDict as McpTargetConfigurationDict, McpToolSchemaConfigurationS3 as McpToolSchemaConfigurationS3, McpToolSchemaConfigurationInlinePayload as McpToolSchemaConfigurationInlinePayload, McpToolSchemaConfigurationUnknown as McpToolSchemaConfigurationUnknown, McpToolSchemaConfiguration as McpToolSchemaConfiguration, _McpToolSchemaConfigurationDeserializer as _McpToolSchemaConfigurationDeserializer, + McpToolSchemaConfigurationS3Dict as McpToolSchemaConfigurationS3Dict, + McpToolSchemaConfigurationInlinePayloadDict as McpToolSchemaConfigurationInlinePayloadDict, + McpToolSchemaConfigurationDict as McpToolSchemaConfigurationDict, Memory as Memory, MemoryRecordSchema as MemoryRecordSchema, + MemoryRecordSchemaDict as MemoryRecordSchemaDict, MemoryStatus as MemoryStatus, MemoryStrategy as MemoryStrategy, MemoryStrategyInputSemanticMemoryStrategy as MemoryStrategyInputSemanticMemoryStrategy, @@ -855,52 +1306,85 @@ from ._private.models_2 import ( MemoryStrategyInputUnknown as MemoryStrategyInputUnknown, MemoryStrategyInput as MemoryStrategyInput, _MemoryStrategyInputDeserializer as _MemoryStrategyInputDeserializer, + MemoryStrategyInputSemanticMemoryStrategyDict as MemoryStrategyInputSemanticMemoryStrategyDict, + MemoryStrategyInputSummaryMemoryStrategyDict as MemoryStrategyInputSummaryMemoryStrategyDict, + MemoryStrategyInputUserPreferenceMemoryStrategyDict as MemoryStrategyInputUserPreferenceMemoryStrategyDict, + MemoryStrategyInputCustomMemoryStrategyDict as MemoryStrategyInputCustomMemoryStrategyDict, + MemoryStrategyInputEpisodicMemoryStrategyDict as MemoryStrategyInputEpisodicMemoryStrategyDict, + MemoryStrategyInputDict as MemoryStrategyInputDict, MemoryStrategyStatus as MemoryStrategyStatus, MemoryStrategyType as MemoryStrategyType, MemorySummary as MemorySummary, MemoryView as MemoryView, MessageBasedTrigger as MessageBasedTrigger, MessageBasedTriggerInput as MessageBasedTriggerInput, + MessageBasedTriggerInputDict as MessageBasedTriggerInputDict, MetadataConfiguration as MetadataConfiguration, + MetadataConfigurationDict as MetadataConfigurationDict, MetadataSchemaEntry as MetadataSchemaEntry, + MetadataSchemaEntryDict as MetadataSchemaEntryDict, MetadataValueType as MetadataValueType, MicrosoftOauth2ProviderConfigInput as MicrosoftOauth2ProviderConfigInput, + MicrosoftOauth2ProviderConfigInputDict as MicrosoftOauth2ProviderConfigInputDict, MicrosoftOauth2ProviderConfigOutput as MicrosoftOauth2ProviderConfigOutput, ModelEntry as ModelEntry, + ModelEntryDict as ModelEntryDict, ModelMapping as ModelMapping, + ModelMappingDict as ModelMappingDict, ModifyConsolidationConfigurationCustomConsolidationConfiguration as ModifyConsolidationConfigurationCustomConsolidationConfiguration, ModifyConsolidationConfigurationUnknown as ModifyConsolidationConfigurationUnknown, ModifyConsolidationConfiguration as ModifyConsolidationConfiguration, _ModifyConsolidationConfigurationDeserializer as _ModifyConsolidationConfigurationDeserializer, + ModifyConsolidationConfigurationCustomConsolidationConfigurationDict as ModifyConsolidationConfigurationCustomConsolidationConfigurationDict, + ModifyConsolidationConfigurationDict as ModifyConsolidationConfigurationDict, ModifyExtractionConfigurationCustomExtractionConfiguration as ModifyExtractionConfigurationCustomExtractionConfiguration, ModifyExtractionConfigurationUnknown as ModifyExtractionConfigurationUnknown, ModifyExtractionConfiguration as ModifyExtractionConfiguration, _ModifyExtractionConfigurationDeserializer as _ModifyExtractionConfigurationDeserializer, + ModifyExtractionConfigurationCustomExtractionConfigurationDict as ModifyExtractionConfigurationCustomExtractionConfigurationDict, + ModifyExtractionConfigurationDict as ModifyExtractionConfigurationDict, ModifyInvocationConfigurationInput as ModifyInvocationConfigurationInput, + ModifyInvocationConfigurationInputDict as ModifyInvocationConfigurationInputDict, ModifyMemoryStrategies as ModifyMemoryStrategies, + ModifyMemoryStrategiesDict as ModifyMemoryStrategiesDict, ModifyMemoryStrategyInput as ModifyMemoryStrategyInput, + ModifyMemoryStrategyInputDict as ModifyMemoryStrategyInputDict, ModifyReflectionConfigurationEpisodicReflectionConfiguration as ModifyReflectionConfigurationEpisodicReflectionConfiguration, ModifyReflectionConfigurationCustomReflectionConfiguration as ModifyReflectionConfigurationCustomReflectionConfiguration, ModifyReflectionConfigurationUnknown as ModifyReflectionConfigurationUnknown, ModifyReflectionConfiguration as ModifyReflectionConfiguration, _ModifyReflectionConfigurationDeserializer as _ModifyReflectionConfigurationDeserializer, + ModifyReflectionConfigurationEpisodicReflectionConfigurationDict as ModifyReflectionConfigurationEpisodicReflectionConfigurationDict, + ModifyReflectionConfigurationCustomReflectionConfigurationDict as ModifyReflectionConfigurationCustomReflectionConfigurationDict, + ModifyReflectionConfigurationDict as ModifyReflectionConfigurationDict, ModifySelfManagedConfiguration as ModifySelfManagedConfiguration, + ModifySelfManagedConfigurationDict as ModifySelfManagedConfigurationDict, ModifyStrategyConfiguration as ModifyStrategyConfiguration, + ModifyStrategyConfigurationDict as ModifyStrategyConfigurationDict, Monitoring as Monitoring, NamespaceKeyEntry as NamespaceKeyEntry, + NamespaceKeyEntryDict as NamespaceKeyEntryDict, NamespaceKeyValidation as NamespaceKeyValidation, + NamespaceKeyValidationDict as NamespaceKeyValidationDict, NetworkConfiguration as NetworkConfiguration, + NetworkConfigurationDict as NetworkConfigurationDict, NetworkMode as NetworkMode, NumberValidation as NumberValidation, + NumberValidationDict as NumberValidationDict, NumericalScaleDefinition as NumericalScaleDefinition, + NumericalScaleDefinitionDict as NumericalScaleDefinitionDict, OAuth2AuthorizationData as OAuth2AuthorizationData, Oauth2AuthorizationServerMetadata as Oauth2AuthorizationServerMetadata, + Oauth2AuthorizationServerMetadataDict as Oauth2AuthorizationServerMetadataDict, Oauth2CredentialProviderItem as Oauth2CredentialProviderItem, Oauth2DiscoveryDiscoveryUrl as Oauth2DiscoveryDiscoveryUrl, Oauth2DiscoveryAuthorizationServerMetadata as Oauth2DiscoveryAuthorizationServerMetadata, Oauth2DiscoveryUnknown as Oauth2DiscoveryUnknown, Oauth2Discovery as Oauth2Discovery, _Oauth2DiscoveryDeserializer as _Oauth2DiscoveryDeserializer, + Oauth2DiscoveryDiscoveryUrlDict as Oauth2DiscoveryDiscoveryUrlDict, + Oauth2DiscoveryAuthorizationServerMetadataDict as Oauth2DiscoveryAuthorizationServerMetadataDict, + Oauth2DiscoveryDict as Oauth2DiscoveryDict, Oauth2ProviderConfigInputCustomOauth2ProviderConfig as Oauth2ProviderConfigInputCustomOauth2ProviderConfig, Oauth2ProviderConfigInputGoogleOauth2ProviderConfig as Oauth2ProviderConfigInputGoogleOauth2ProviderConfig, Oauth2ProviderConfigInputGithubOauth2ProviderConfig as Oauth2ProviderConfigInputGithubOauth2ProviderConfig, @@ -913,6 +1397,16 @@ from ._private.models_2 import ( Oauth2ProviderConfigInputUnknown as Oauth2ProviderConfigInputUnknown, Oauth2ProviderConfigInput as Oauth2ProviderConfigInput, _Oauth2ProviderConfigInputDeserializer as _Oauth2ProviderConfigInputDeserializer, + Oauth2ProviderConfigInputCustomOauth2ProviderConfigDict as Oauth2ProviderConfigInputCustomOauth2ProviderConfigDict, + Oauth2ProviderConfigInputGoogleOauth2ProviderConfigDict as Oauth2ProviderConfigInputGoogleOauth2ProviderConfigDict, + Oauth2ProviderConfigInputGithubOauth2ProviderConfigDict as Oauth2ProviderConfigInputGithubOauth2ProviderConfigDict, + Oauth2ProviderConfigInputSlackOauth2ProviderConfigDict as Oauth2ProviderConfigInputSlackOauth2ProviderConfigDict, + Oauth2ProviderConfigInputSalesforceOauth2ProviderConfigDict as Oauth2ProviderConfigInputSalesforceOauth2ProviderConfigDict, + Oauth2ProviderConfigInputMicrosoftOauth2ProviderConfigDict as Oauth2ProviderConfigInputMicrosoftOauth2ProviderConfigDict, + Oauth2ProviderConfigInputAtlassianOauth2ProviderConfigDict as Oauth2ProviderConfigInputAtlassianOauth2ProviderConfigDict, + Oauth2ProviderConfigInputLinkedinOauth2ProviderConfigDict as Oauth2ProviderConfigInputLinkedinOauth2ProviderConfigDict, + Oauth2ProviderConfigInputIncludedOauth2ProviderConfigDict as Oauth2ProviderConfigInputIncludedOauth2ProviderConfigDict, + Oauth2ProviderConfigInputDict as Oauth2ProviderConfigInputDict, Oauth2ProviderConfigOutputCustomOauth2ProviderConfig as Oauth2ProviderConfigOutputCustomOauth2ProviderConfig, Oauth2ProviderConfigOutputGoogleOauth2ProviderConfig as Oauth2ProviderConfigOutputGoogleOauth2ProviderConfig, Oauth2ProviderConfigOutputGithubOauth2ProviderConfig as Oauth2ProviderConfigOutputGithubOauth2ProviderConfig, @@ -926,25 +1420,32 @@ from ._private.models_2 import ( Oauth2ProviderConfigOutput as Oauth2ProviderConfigOutput, _Oauth2ProviderConfigOutputDeserializer as _Oauth2ProviderConfigOutputDeserializer, OAuthCredentialProvider as OAuthCredentialProvider, + OAuthCredentialProviderDict as OAuthCredentialProviderDict, OAuthGrantType as OAuthGrantType, OnBehalfOfAuthenticationConfig as OnBehalfOfAuthenticationConfig, + OnBehalfOfAuthenticationConfigDict as OnBehalfOfAuthenticationConfigDict, OnBehalfOfClientAuthenticationMethod as OnBehalfOfClientAuthenticationMethod, OnBehalfOfTokenExchangeConfigType as OnBehalfOfTokenExchangeConfigType, + OnBehalfOfTokenExchangeConfigTypeDict as OnBehalfOfTokenExchangeConfigTypeDict, OnBehalfOfTokenExchangeGrantTypeType as OnBehalfOfTokenExchangeGrantTypeType, OnlineEvaluationConfigStatus as OnlineEvaluationConfigStatus, OnlineEvaluationConfigSummary as OnlineEvaluationConfigSummary, OnlineEvaluationExecutionStatus as OnlineEvaluationExecutionStatus, OpenResponsesEvaluatorModelConfig as OpenResponsesEvaluatorModelConfig, + OpenResponsesEvaluatorModelConfigDict as OpenResponsesEvaluatorModelConfigDict, OperatingSystem as OperatingSystem, OutputConfig as OutputConfig, + OutputConfigDict as OutputConfigDict, OverrideType as OverrideType, PassthroughProtocolType as PassthroughProtocolType, PassthroughTargetConfiguration as PassthroughTargetConfiguration, + PassthroughTargetConfigurationDict as PassthroughTargetConfigurationDict, PaymentConnectorProvisionMode as PaymentConnectorProvisionMode, PaymentConnectorStatus as PaymentConnectorStatus, PaymentConnectorSummary as PaymentConnectorSummary, PaymentConnectorType as PaymentConnectorType, PaymentCredentialProviderConfiguration as PaymentCredentialProviderConfiguration, + PaymentCredentialProviderConfigurationDict as PaymentCredentialProviderConfigurationDict, PaymentCredentialProviderItem as PaymentCredentialProviderItem, PaymentCredentialProviderVendorType as PaymentCredentialProviderVendorType, PaymentManagerStatus as PaymentManagerStatus, @@ -954,6 +1455,9 @@ from ._private.models_2 import ( PaymentProviderConfigurationInputUnknown as PaymentProviderConfigurationInputUnknown, PaymentProviderConfigurationInput as PaymentProviderConfigurationInput, _PaymentProviderConfigurationInputDeserializer as _PaymentProviderConfigurationInputDeserializer, + PaymentProviderConfigurationInputCoinbaseCdpConfigurationDict as PaymentProviderConfigurationInputCoinbaseCdpConfigurationDict, + PaymentProviderConfigurationInputStripePrivyConfigurationDict as PaymentProviderConfigurationInputStripePrivyConfigurationDict, + PaymentProviderConfigurationInputDict as PaymentProviderConfigurationInputDict, PaymentProviderConfigurationOutputCoinbaseCdpConfiguration as PaymentProviderConfigurationOutputCoinbaseCdpConfiguration, PaymentProviderConfigurationOutputStripePrivyConfiguration as PaymentProviderConfigurationOutputStripePrivyConfiguration, PaymentProviderConfigurationOutputUnknown as PaymentProviderConfigurationOutputUnknown, @@ -962,6 +1466,7 @@ from ._private.models_2 import ( PaymentsAuthorizerType as PaymentsAuthorizerType, Period as Period, PermissionsConfiguration as PermissionsConfiguration, + PermissionsConfigurationDict as PermissionsConfigurationDict, Policy as Policy, PolicyDefinitionCedar as PolicyDefinitionCedar, PolicyDefinitionPolicyGeneration as PolicyDefinitionPolicyGeneration, @@ -969,51 +1474,78 @@ from ._private.models_2 import ( PolicyDefinitionUnknown as PolicyDefinitionUnknown, PolicyDefinition as PolicyDefinition, _PolicyDefinitionDeserializer as _PolicyDefinitionDeserializer, + PolicyDefinitionCedarDict as PolicyDefinitionCedarDict, + PolicyDefinitionPolicyGenerationDict as PolicyDefinitionPolicyGenerationDict, + PolicyDefinitionPolicyDict as PolicyDefinitionPolicyDict, + PolicyDefinitionDict as PolicyDefinitionDict, PolicyEngine as PolicyEngine, PolicyEngineStatus as PolicyEngineStatus, PolicyEngineSummary as PolicyEngineSummary, PolicyGeneration as PolicyGeneration, PolicyGenerationAsset as PolicyGenerationAsset, PolicyGenerationDetails as PolicyGenerationDetails, + PolicyGenerationDetailsDict as PolicyGenerationDetailsDict, PolicyGenerationStatus as PolicyGenerationStatus, PolicyGenerationSummary as PolicyGenerationSummary, PolicyStatement as PolicyStatement, + PolicyStatementDict as PolicyStatementDict, PolicyStatus as PolicyStatus, PolicySummary as PolicySummary, PolicyValidationMode as PolicyValidationMode, PortRange as PortRange, + PortRangeDict as PortRangeDict, PrincipalMatchOperator as PrincipalMatchOperator, PrivateEndpointSelfManagedLatticeResource as PrivateEndpointSelfManagedLatticeResource, PrivateEndpointManagedVpcResource as PrivateEndpointManagedVpcResource, PrivateEndpointUnknown as PrivateEndpointUnknown, PrivateEndpoint as PrivateEndpoint, _PrivateEndpointDeserializer as _PrivateEndpointDeserializer, + PrivateEndpointSelfManagedLatticeResourceDict as PrivateEndpointSelfManagedLatticeResourceDict, + PrivateEndpointManagedVpcResourceDict as PrivateEndpointManagedVpcResourceDict, + PrivateEndpointDict as PrivateEndpointDict, PrivateEndpointOverride as PrivateEndpointOverride, + PrivateEndpointOverrideDict as PrivateEndpointOverrideDict, PrivateKeyJwtConfig as PrivateKeyJwtConfig, + PrivateKeyJwtConfigDict as PrivateKeyJwtConfigDict, PrivateKeySourceKmsKeySource as PrivateKeySourceKmsKeySource, PrivateKeySourceUnknown as PrivateKeySourceUnknown, PrivateKeySource as PrivateKeySource, _PrivateKeySourceDeserializer as _PrivateKeySourceDeserializer, + PrivateKeySourceKmsKeySourceDict as PrivateKeySourceKmsKeySourceDict, + PrivateKeySourceDict as PrivateKeySourceDict, ProtocolConfiguration as ProtocolConfiguration, + ProtocolConfigurationDict as ProtocolConfigurationDict, Provider as Provider, ProviderPrefix as ProviderPrefix, + ProviderPrefixDict as ProviderPrefixDict, PutResourcePolicyInput as PutResourcePolicyInput, + PutResourcePolicyInputDict as PutResourcePolicyInputDict, PutResourcePolicyOutput as PutResourcePolicyOutput, RateConfig as RateConfig, + RateConfigDict as RateConfigDict, RatingScaleNumerical as RatingScaleNumerical, RatingScaleCategorical as RatingScaleCategorical, RatingScaleMultiDimensional as RatingScaleMultiDimensional, RatingScaleUnknown as RatingScaleUnknown, RatingScale as RatingScale, _RatingScaleDeserializer as _RatingScaleDeserializer, + RatingScaleNumericalDict as RatingScaleNumericalDict, + RatingScaleCategoricalDict as RatingScaleCategoricalDict, + RatingScaleMultiDimensionalDict as RatingScaleMultiDimensionalDict, + RatingScaleDict as RatingScaleDict, ReasoningConfiguration as ReasoningConfiguration, + ReasoningConfigurationDict as ReasoningConfigurationDict, RecordExpiryAction as RecordExpiryAction, RecordExpirySpecificationRecordExpiryDurationDays as RecordExpirySpecificationRecordExpiryDurationDays, RecordExpirySpecificationAction as RecordExpirySpecificationAction, RecordExpirySpecificationUnknown as RecordExpirySpecificationUnknown, RecordExpirySpecification as RecordExpirySpecification, _RecordExpirySpecificationDeserializer as _RecordExpirySpecificationDeserializer, + RecordExpirySpecificationRecordExpiryDurationDaysDict as RecordExpirySpecificationRecordExpiryDurationDaysDict, + RecordExpirySpecificationActionDict as RecordExpirySpecificationActionDict, + RecordExpirySpecificationDict as RecordExpirySpecificationDict, RecordingConfig as RecordingConfig, + RecordingConfigDict as RecordingConfigDict, ReflectionConfigurationCustomReflectionConfiguration as ReflectionConfigurationCustomReflectionConfiguration, ReflectionConfigurationEpisodicReflectionConfiguration as ReflectionConfigurationEpisodicReflectionConfiguration, ReflectionConfigurationUnknown as ReflectionConfigurationUnknown, @@ -1021,14 +1553,20 @@ from ._private.models_2 import ( _ReflectionConfigurationDeserializer as _ReflectionConfigurationDeserializer, RegistryAuthorizerType as RegistryAuthorizerType, RegistryRecordCredentialProviderConfiguration as RegistryRecordCredentialProviderConfiguration, + RegistryRecordCredentialProviderConfigurationDict as RegistryRecordCredentialProviderConfigurationDict, RegistryRecordCredentialProviderType as RegistryRecordCredentialProviderType, RegistryRecordCredentialProviderUnionOauthCredentialProvider as RegistryRecordCredentialProviderUnionOauthCredentialProvider, RegistryRecordCredentialProviderUnionIamCredentialProvider as RegistryRecordCredentialProviderUnionIamCredentialProvider, RegistryRecordCredentialProviderUnionUnknown as RegistryRecordCredentialProviderUnionUnknown, RegistryRecordCredentialProviderUnion as RegistryRecordCredentialProviderUnion, _RegistryRecordCredentialProviderUnionDeserializer as _RegistryRecordCredentialProviderUnionDeserializer, + RegistryRecordCredentialProviderUnionOauthCredentialProviderDict as RegistryRecordCredentialProviderUnionOauthCredentialProviderDict, + RegistryRecordCredentialProviderUnionIamCredentialProviderDict as RegistryRecordCredentialProviderUnionIamCredentialProviderDict, + RegistryRecordCredentialProviderUnionDict as RegistryRecordCredentialProviderUnionDict, RegistryRecordIamCredentialProvider as RegistryRecordIamCredentialProvider, + RegistryRecordIamCredentialProviderDict as RegistryRecordIamCredentialProviderDict, RegistryRecordOAuthCredentialProvider as RegistryRecordOAuthCredentialProvider, + RegistryRecordOAuthCredentialProviderDict as RegistryRecordOAuthCredentialProviderDict, RegistryRecordOAuthGrantType as RegistryRecordOAuthGrantType, RegistryRecordStatus as RegistryRecordStatus, RegistryRecordSummary as RegistryRecordSummary, @@ -1038,112 +1576,174 @@ from ._private.models_2 import ( RequestHeaderConfigurationUnknown as RequestHeaderConfigurationUnknown, RequestHeaderConfiguration as RequestHeaderConfiguration, _RequestHeaderConfigurationDeserializer as _RequestHeaderConfigurationDeserializer, + RequestHeaderConfigurationRequestHeaderAllowlistDict as RequestHeaderConfigurationRequestHeaderAllowlistDict, + RequestHeaderConfigurationDict as RequestHeaderConfigurationDict, ResetTokenVaultKeyMaterialInput as ResetTokenVaultKeyMaterialInput, + ResetTokenVaultKeyMaterialInputDict as ResetTokenVaultKeyMaterialInputDict, ResetTokenVaultKeyMaterialOutput as ResetTokenVaultKeyMaterialOutput, ResourceArn as ResourceArn, ResourceUnknown as ResourceUnknown, Resource as Resource, _ResourceDeserializer as _ResourceDeserializer, + ResourceArnDict as ResourceArnDict, + ResourceDict as ResourceDict, ResourceConfiguration as ResourceConfiguration, + ResourceConfigurationDict as ResourceConfigurationDict, ResourceLimitExceededException as ResourceLimitExceededException, ResourceLocationS3 as ResourceLocationS3, ResourceLocationUnknown as ResourceLocationUnknown, ResourceLocation as ResourceLocation, _ResourceLocationDeserializer as _ResourceLocationDeserializer, + ResourceLocationS3Dict as ResourceLocationS3Dict, + ResourceLocationDict as ResourceLocationDict, ResourceNotFoundException as ResourceNotFoundException, ResourceType as ResourceType, RestApiMethod as RestApiMethod, ResultDestination as ResultDestination, RetryableConflictException as RetryableConflictException, RootVolumeConfiguration as RootVolumeConfiguration, + RootVolumeConfigurationDict as RootVolumeConfigurationDict, RotatePaymentConnectorCredentialsInput as RotatePaymentConnectorCredentialsInput, + RotatePaymentConnectorCredentialsInputDict as RotatePaymentConnectorCredentialsInputDict, RotatePaymentConnectorCredentialsOutput as RotatePaymentConnectorCredentialsOutput, RouteToTargetActionStaticRoute as RouteToTargetActionStaticRoute, RouteToTargetActionWeightedRoute as RouteToTargetActionWeightedRoute, RouteToTargetActionUnknown as RouteToTargetActionUnknown, RouteToTargetAction as RouteToTargetAction, _RouteToTargetActionDeserializer as _RouteToTargetActionDeserializer, + RouteToTargetActionStaticRouteDict as RouteToTargetActionStaticRouteDict, + RouteToTargetActionWeightedRouteDict as RouteToTargetActionWeightedRouteDict, + RouteToTargetActionDict as RouteToTargetActionDict, Rule as Rule, + RuleDict as RuleDict, RuntimeHooksConfiguration as RuntimeHooksConfiguration, + RuntimeHooksConfigurationDict as RuntimeHooksConfigurationDict, RuntimeMetadataConfiguration as RuntimeMetadataConfiguration, + RuntimeMetadataConfigurationDict as RuntimeMetadataConfigurationDict, RuntimeTargetConfiguration as RuntimeTargetConfiguration, + RuntimeTargetConfigurationDict as RuntimeTargetConfigurationDict, S3CertificateConfiguration as S3CertificateConfiguration, + S3CertificateConfigurationDict as S3CertificateConfigurationDict, S3Configuration as S3Configuration, + S3ConfigurationDict as S3ConfigurationDict, S3FilesAccessPointConfiguration as S3FilesAccessPointConfiguration, + S3FilesAccessPointConfigurationDict as S3FilesAccessPointConfigurationDict, S3FilesConfiguration as S3FilesConfiguration, + S3FilesConfigurationDict as S3FilesConfigurationDict, S3Location as S3Location, + S3LocationDict as S3LocationDict, S3Source as S3Source, + S3SourceDict as S3SourceDict, SalesforceOauth2ProviderConfigInput as SalesforceOauth2ProviderConfigInput, + SalesforceOauth2ProviderConfigInputDict as SalesforceOauth2ProviderConfigInputDict, SalesforceOauth2ProviderConfigOutput as SalesforceOauth2ProviderConfigOutput, SamplingConfig as SamplingConfig, + SamplingConfigDict as SamplingConfigDict, SchemaDefinition as SchemaDefinition, + SchemaDefinitionDict as SchemaDefinitionDict, SchemaType as SchemaType, SearchType as SearchType, Secret as Secret, SecretReference as SecretReference, + SecretReferenceDict as SecretReferenceDict, SecretsManagerCertificateConfiguration as SecretsManagerCertificateConfiguration, + SecretsManagerCertificateConfigurationDict as SecretsManagerCertificateConfigurationDict, SecretsManagerLocation as SecretsManagerLocation, + SecretsManagerLocationDict as SecretsManagerLocationDict, SecretSourceType as SecretSourceType, SelfManagedConfiguration as SelfManagedConfiguration, SelfManagedConfigurationInput as SelfManagedConfigurationInput, + SelfManagedConfigurationInputDict as SelfManagedConfigurationInputDict, SelfManagedLatticeResourceResourceConfigurationIdentifier as SelfManagedLatticeResourceResourceConfigurationIdentifier, SelfManagedLatticeResourceUnknown as SelfManagedLatticeResourceUnknown, SelfManagedLatticeResource as SelfManagedLatticeResource, _SelfManagedLatticeResourceDeserializer as _SelfManagedLatticeResourceDeserializer, + SelfManagedLatticeResourceResourceConfigurationIdentifierDict as SelfManagedLatticeResourceResourceConfigurationIdentifierDict, + SelfManagedLatticeResourceDict as SelfManagedLatticeResourceDict, SemanticConsolidationOverride as SemanticConsolidationOverride, SemanticExtractionOverride as SemanticExtractionOverride, SemanticMemoryStrategyInput as SemanticMemoryStrategyInput, + SemanticMemoryStrategyInputDict as SemanticMemoryStrategyInputDict, SemanticOverrideConfigurationInput as SemanticOverrideConfigurationInput, + SemanticOverrideConfigurationInputDict as SemanticOverrideConfigurationInputDict, SemanticOverrideConsolidationConfigurationInput as SemanticOverrideConsolidationConfigurationInput, + SemanticOverrideConsolidationConfigurationInputDict as SemanticOverrideConsolidationConfigurationInputDict, SemanticOverrideExtractionConfigurationInput as SemanticOverrideExtractionConfigurationInput, + SemanticOverrideExtractionConfigurationInputDict as SemanticOverrideExtractionConfigurationInputDict, ServerDefinition as ServerDefinition, + ServerDefinitionDict as ServerDefinitionDict, ServerProtocol as ServerProtocol, ServiceException as ServiceException, ServiceQuotaExceededException as ServiceQuotaExceededException, SessionConfig as SessionConfig, + SessionConfigDict as SessionConfigDict, SessionConfiguration as SessionConfiguration, + SessionConfigurationDict as SessionConfigurationDict, SessionStorageConfiguration as SessionStorageConfiguration, + SessionStorageConfigurationDict as SessionStorageConfigurationDict, ) from ._private.models_3 import ( SetTokenVaultCMKInput as SetTokenVaultCMKInput, + SetTokenVaultCMKInputDict as SetTokenVaultCMKInputDict, SetTokenVaultCMKOutput as SetTokenVaultCMKOutput, SigningAlgorithm as SigningAlgorithm, SkillDefinition as SkillDefinition, + SkillDefinitionDict as SkillDefinitionDict, SkillMdDefinition as SkillMdDefinition, + SkillMdDefinitionDict as SkillMdDefinitionDict, SlackOauth2ProviderConfigInput as SlackOauth2ProviderConfigInput, + SlackOauth2ProviderConfigInputDict as SlackOauth2ProviderConfigInputDict, SlackOauth2ProviderConfigOutput as SlackOauth2ProviderConfigOutput, StartPolicyGenerationInput as StartPolicyGenerationInput, + StartPolicyGenerationInputDict as StartPolicyGenerationInputDict, StartPolicyGenerationOutput as StartPolicyGenerationOutput, StaticOverride as StaticOverride, + StaticOverrideDict as StaticOverrideDict, StaticQueryParameterConflictResolution as StaticQueryParameterConflictResolution, StaticRoute as StaticRoute, + StaticRouteDict as StaticRouteDict, Status as Status, StickinessConfiguration as StickinessConfiguration, + StickinessConfigurationDict as StickinessConfigurationDict, StrategyConfiguration as StrategyConfiguration, StreamDeliveryResourceKinesis as StreamDeliveryResourceKinesis, StreamDeliveryResourceUnknown as StreamDeliveryResourceUnknown, StreamDeliveryResource as StreamDeliveryResource, _StreamDeliveryResourceDeserializer as _StreamDeliveryResourceDeserializer, + StreamDeliveryResourceKinesisDict as StreamDeliveryResourceKinesisDict, + StreamDeliveryResourceDict as StreamDeliveryResourceDict, StreamDeliveryResources as StreamDeliveryResources, + StreamDeliveryResourcesDict as StreamDeliveryResourcesDict, StreamingConfiguration as StreamingConfiguration, + StreamingConfigurationDict as StreamingConfigurationDict, StringListValidation as StringListValidation, + StringListValidationDict as StringListValidationDict, StringValidation as StringValidation, + StringValidationDict as StringValidationDict, StripePrivyConfigurationInput as StripePrivyConfigurationInput, + StripePrivyConfigurationInputDict as StripePrivyConfigurationInputDict, StripePrivyConfigurationOutput as StripePrivyConfigurationOutput, SubmitRegistryRecordForApprovalInput as SubmitRegistryRecordForApprovalInput, + SubmitRegistryRecordForApprovalInputDict as SubmitRegistryRecordForApprovalInputDict, SubmitRegistryRecordForApprovalOutput as SubmitRegistryRecordForApprovalOutput, SubscriptionRequiredException as SubscriptionRequiredException, SummaryConsolidationOverride as SummaryConsolidationOverride, SummaryMemoryStrategyInput as SummaryMemoryStrategyInput, + SummaryMemoryStrategyInputDict as SummaryMemoryStrategyInputDict, SummaryOverrideConfigurationInput as SummaryOverrideConfigurationInput, + SummaryOverrideConfigurationInputDict as SummaryOverrideConfigurationInputDict, SummaryOverrideConsolidationConfigurationInput as SummaryOverrideConsolidationConfigurationInput, + SummaryOverrideConsolidationConfigurationInputDict as SummaryOverrideConsolidationConfigurationInputDict, SynchronizationConfiguration as SynchronizationConfiguration, + SynchronizationConfigurationDict as SynchronizationConfigurationDict, SynchronizationType as SynchronizationType, SynchronizeGatewayTargetsInput as SynchronizeGatewayTargetsInput, + SynchronizeGatewayTargetsInputDict as SynchronizeGatewayTargetsInputDict, SynchronizeGatewayTargetsOutput as SynchronizeGatewayTargetsOutput, SystemManagedBlock as SystemManagedBlock, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, TargetConfigurationMcp as TargetConfigurationMcp, TargetConfigurationHttp as TargetConfigurationHttp, @@ -1151,31 +1751,48 @@ from ._private.models_3 import ( TargetConfigurationUnknown as TargetConfigurationUnknown, TargetConfiguration as TargetConfiguration, _TargetConfigurationDeserializer as _TargetConfigurationDeserializer, + TargetConfigurationMcpDict as TargetConfigurationMcpDict, + TargetConfigurationHttpDict as TargetConfigurationHttpDict, + TargetConfigurationInferenceDict as TargetConfigurationInferenceDict, + TargetConfigurationDict as TargetConfigurationDict, TargetProtocolType as TargetProtocolType, TargetStatus as TargetStatus, TargetSummary as TargetSummary, TargetTrafficSplitEntry as TargetTrafficSplitEntry, + TargetTrafficSplitEntryDict as TargetTrafficSplitEntryDict, TargetType as TargetType, ThrottledException as ThrottledException, ThrottlingException as ThrottlingException, TimeBasedTrigger as TimeBasedTrigger, TimeBasedTriggerInput as TimeBasedTriggerInput, + TimeBasedTriggerInputDict as TimeBasedTriggerInputDict, TokenBasedTrigger as TokenBasedTrigger, TokenBasedTriggerInput as TokenBasedTriggerInput, + TokenBasedTriggerInputDict as TokenBasedTriggerInputDict, TokenExchangeGrantTypeConfigType as TokenExchangeGrantTypeConfigType, + TokenExchangeGrantTypeConfigTypeDict as TokenExchangeGrantTypeConfigTypeDict, ToolDefinition as ToolDefinition, + ToolDefinitionDict as ToolDefinitionDict, ToolSchemaS3 as ToolSchemaS3, ToolSchemaInlinePayload as ToolSchemaInlinePayload, ToolSchemaUnknown as ToolSchemaUnknown, ToolSchema as ToolSchema, _ToolSchemaDeserializer as _ToolSchemaDeserializer, + ToolSchemaS3Dict as ToolSchemaS3Dict, + ToolSchemaInlinePayloadDict as ToolSchemaInlinePayloadDict, + ToolSchemaDict as ToolSchemaDict, ToolsDefinition as ToolsDefinition, + ToolsDefinitionDict as ToolsDefinitionDict, ToolsFileSystemConfigurationS3FilesConfiguration as ToolsFileSystemConfigurationS3FilesConfiguration, ToolsFileSystemConfigurationEfsConfiguration as ToolsFileSystemConfigurationEfsConfiguration, ToolsFileSystemConfigurationUnknown as ToolsFileSystemConfigurationUnknown, ToolsFileSystemConfiguration as ToolsFileSystemConfiguration, _ToolsFileSystemConfigurationDeserializer as _ToolsFileSystemConfigurationDeserializer, + ToolsFileSystemConfigurationS3FilesConfigurationDict as ToolsFileSystemConfigurationS3FilesConfigurationDict, + ToolsFileSystemConfigurationEfsConfigurationDict as ToolsFileSystemConfigurationEfsConfigurationDict, + ToolsFileSystemConfigurationDict as ToolsFileSystemConfigurationDict, TrafficSplitEntry as TrafficSplitEntry, + TrafficSplitEntryDict as TrafficSplitEntryDict, TriggerConditionMessageBasedTrigger as TriggerConditionMessageBasedTrigger, TriggerConditionTokenBasedTrigger as TriggerConditionTokenBasedTrigger, TriggerConditionTimeBasedTrigger as TriggerConditionTimeBasedTrigger, @@ -1188,113 +1805,182 @@ from ._private.models_3 import ( TriggerConditionInputUnknown as TriggerConditionInputUnknown, TriggerConditionInput as TriggerConditionInput, _TriggerConditionInputDeserializer as _TriggerConditionInputDeserializer, + TriggerConditionInputMessageBasedTriggerDict as TriggerConditionInputMessageBasedTriggerDict, + TriggerConditionInputTokenBasedTriggerDict as TriggerConditionInputTokenBasedTriggerDict, + TriggerConditionInputTimeBasedTriggerDict as TriggerConditionInputTimeBasedTriggerDict, + TriggerConditionInputDict as TriggerConditionInputDict, UnauthorizedException as UnauthorizedException, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateAgentRuntimeEndpointInput as UpdateAgentRuntimeEndpointInput, + UpdateAgentRuntimeEndpointInputDict as UpdateAgentRuntimeEndpointInputDict, UpdateAgentRuntimeEndpointOutput as UpdateAgentRuntimeEndpointOutput, UpdateAgentRuntimeInput as UpdateAgentRuntimeInput, + UpdateAgentRuntimeInputDict as UpdateAgentRuntimeInputDict, UpdateAgentRuntimeOutput as UpdateAgentRuntimeOutput, UpdateApiKeyCredentialProviderInput as UpdateApiKeyCredentialProviderInput, + UpdateApiKeyCredentialProviderInputDict as UpdateApiKeyCredentialProviderInputDict, UpdateApiKeyCredentialProviderOutput as UpdateApiKeyCredentialProviderOutput, UpdateCapacityProviderInput as UpdateCapacityProviderInput, + UpdateCapacityProviderInputDict as UpdateCapacityProviderInputDict, UpdateCapacityProviderOutput as UpdateCapacityProviderOutput, UpdateConfigurationBundleInput as UpdateConfigurationBundleInput, + UpdateConfigurationBundleInputDict as UpdateConfigurationBundleInputDict, UpdateConfigurationBundleOutput as UpdateConfigurationBundleOutput, UpdateConsentPortalInput as UpdateConsentPortalInput, + UpdateConsentPortalInputDict as UpdateConsentPortalInputDict, UpdateConsentPortalOutput as UpdateConsentPortalOutput, UpdatedA2aDescriptor as UpdatedA2aDescriptor, + UpdatedA2aDescriptorDict as UpdatedA2aDescriptorDict, UpdatedAgentSkillsDescriptor as UpdatedAgentSkillsDescriptor, + UpdatedAgentSkillsDescriptorDict as UpdatedAgentSkillsDescriptorDict, UpdatedAgentSkillsDescriptorFields as UpdatedAgentSkillsDescriptorFields, + UpdatedAgentSkillsDescriptorFieldsDict as UpdatedAgentSkillsDescriptorFieldsDict, UpdatedApprovalConfiguration as UpdatedApprovalConfiguration, + UpdatedApprovalConfigurationDict as UpdatedApprovalConfigurationDict, UpdateDatasetExamplesInput as UpdateDatasetExamplesInput, + UpdateDatasetExamplesInputDict as UpdateDatasetExamplesInputDict, UpdateDatasetExamplesOutput as UpdateDatasetExamplesOutput, UpdateDatasetInput as UpdateDatasetInput, + UpdateDatasetInputDict as UpdateDatasetInputDict, UpdateDatasetOutput as UpdateDatasetOutput, UpdatedAuthorizerConfiguration as UpdatedAuthorizerConfiguration, + UpdatedAuthorizerConfigurationDict as UpdatedAuthorizerConfigurationDict, UpdatedCustomDescriptor as UpdatedCustomDescriptor, + UpdatedCustomDescriptorDict as UpdatedCustomDescriptorDict, UpdatedDescription as UpdatedDescription, + UpdatedDescriptionDict as UpdatedDescriptionDict, UpdatedDescriptors as UpdatedDescriptors, + UpdatedDescriptorsDict as UpdatedDescriptorsDict, UpdatedDescriptorsUnion as UpdatedDescriptorsUnion, + UpdatedDescriptorsUnionDict as UpdatedDescriptorsUnionDict, UpdatedHarnessEnvironmentArtifact as UpdatedHarnessEnvironmentArtifact, + UpdatedHarnessEnvironmentArtifactDict as UpdatedHarnessEnvironmentArtifactDict, UpdatedHarnessMemoryConfiguration as UpdatedHarnessMemoryConfiguration, + UpdatedHarnessMemoryConfigurationDict as UpdatedHarnessMemoryConfigurationDict, UpdatedMcpDescriptor as UpdatedMcpDescriptor, + UpdatedMcpDescriptorDict as UpdatedMcpDescriptorDict, UpdatedMcpDescriptorFields as UpdatedMcpDescriptorFields, + UpdatedMcpDescriptorFieldsDict as UpdatedMcpDescriptorFieldsDict, UpdatedServerDefinition as UpdatedServerDefinition, + UpdatedServerDefinitionDict as UpdatedServerDefinitionDict, UpdatedSkillDefinition as UpdatedSkillDefinition, + UpdatedSkillDefinitionDict as UpdatedSkillDefinitionDict, UpdatedSkillMdDefinition as UpdatedSkillMdDefinition, + UpdatedSkillMdDefinitionDict as UpdatedSkillMdDefinitionDict, UpdatedSynchronizationConfiguration as UpdatedSynchronizationConfiguration, + UpdatedSynchronizationConfigurationDict as UpdatedSynchronizationConfigurationDict, UpdatedSynchronizationType as UpdatedSynchronizationType, + UpdatedSynchronizationTypeDict as UpdatedSynchronizationTypeDict, UpdatedToolsDefinition as UpdatedToolsDefinition, + UpdatedToolsDefinitionDict as UpdatedToolsDefinitionDict, UpdateEvaluatorInput as UpdateEvaluatorInput, + UpdateEvaluatorInputDict as UpdateEvaluatorInputDict, UpdateEvaluatorOutput as UpdateEvaluatorOutput, UpdateGatewayInput as UpdateGatewayInput, + UpdateGatewayInputDict as UpdateGatewayInputDict, UpdateGatewayOutput as UpdateGatewayOutput, UpdateGatewayRateLimitInput as UpdateGatewayRateLimitInput, + UpdateGatewayRateLimitInputDict as UpdateGatewayRateLimitInputDict, UpdateGatewayRateLimitOutput as UpdateGatewayRateLimitOutput, UpdateGatewayRuleInput as UpdateGatewayRuleInput, + UpdateGatewayRuleInputDict as UpdateGatewayRuleInputDict, UpdateGatewayRuleOutput as UpdateGatewayRuleOutput, UpdateGatewayTargetInput as UpdateGatewayTargetInput, + UpdateGatewayTargetInputDict as UpdateGatewayTargetInputDict, UpdateGatewayTargetOutput as UpdateGatewayTargetOutput, UpdateHarnessEndpointInput as UpdateHarnessEndpointInput, + UpdateHarnessEndpointInputDict as UpdateHarnessEndpointInputDict, UpdateHarnessEndpointOutput as UpdateHarnessEndpointOutput, UpdateHarnessInput as UpdateHarnessInput, + UpdateHarnessInputDict as UpdateHarnessInputDict, UpdateHarnessOutput as UpdateHarnessOutput, UpdateMemoryInput as UpdateMemoryInput, + UpdateMemoryInputDict as UpdateMemoryInputDict, UpdateMemoryOutput as UpdateMemoryOutput, UpdateOauth2CredentialProviderInput as UpdateOauth2CredentialProviderInput, + UpdateOauth2CredentialProviderInputDict as UpdateOauth2CredentialProviderInputDict, UpdateOauth2CredentialProviderOutput as UpdateOauth2CredentialProviderOutput, UpdateOnlineEvaluationConfigInput as UpdateOnlineEvaluationConfigInput, + UpdateOnlineEvaluationConfigInputDict as UpdateOnlineEvaluationConfigInputDict, UpdateOnlineEvaluationConfigOutput as UpdateOnlineEvaluationConfigOutput, UpdatePaymentConnectorInput as UpdatePaymentConnectorInput, + UpdatePaymentConnectorInputDict as UpdatePaymentConnectorInputDict, UpdatePaymentConnectorOutput as UpdatePaymentConnectorOutput, UpdatePaymentCredentialProviderInput as UpdatePaymentCredentialProviderInput, + UpdatePaymentCredentialProviderInputDict as UpdatePaymentCredentialProviderInputDict, UpdatePaymentCredentialProviderOutput as UpdatePaymentCredentialProviderOutput, UpdatePaymentManagerInput as UpdatePaymentManagerInput, + UpdatePaymentManagerInputDict as UpdatePaymentManagerInputDict, UpdatePaymentManagerOutput as UpdatePaymentManagerOutput, UpdatePolicyEngineInput as UpdatePolicyEngineInput, + UpdatePolicyEngineInputDict as UpdatePolicyEngineInputDict, UpdatePolicyEngineOutput as UpdatePolicyEngineOutput, UpdatePolicyInput as UpdatePolicyInput, + UpdatePolicyInputDict as UpdatePolicyInputDict, UpdatePolicyOutput as UpdatePolicyOutput, UpdateRegistryInput as UpdateRegistryInput, + UpdateRegistryInputDict as UpdateRegistryInputDict, UpdateRegistryOutput as UpdateRegistryOutput, UpdateRegistryRecordInput as UpdateRegistryRecordInput, + UpdateRegistryRecordInputDict as UpdateRegistryRecordInputDict, UpdateRegistryRecordOutput as UpdateRegistryRecordOutput, UpdateRegistryRecordStatusInput as UpdateRegistryRecordStatusInput, + UpdateRegistryRecordStatusInputDict as UpdateRegistryRecordStatusInputDict, UpdateRegistryRecordStatusOutput as UpdateRegistryRecordStatusOutput, UpdateWorkloadIdentityInput as UpdateWorkloadIdentityInput, + UpdateWorkloadIdentityInputDict as UpdateWorkloadIdentityInputDict, UpdateWorkloadIdentityOutput as UpdateWorkloadIdentityOutput, UserPreferenceConsolidationOverride as UserPreferenceConsolidationOverride, UserPreferenceExtractionOverride as UserPreferenceExtractionOverride, UserPreferenceMemoryStrategyInput as UserPreferenceMemoryStrategyInput, + UserPreferenceMemoryStrategyInputDict as UserPreferenceMemoryStrategyInputDict, UserPreferenceOverrideConfigurationInput as UserPreferenceOverrideConfigurationInput, + UserPreferenceOverrideConfigurationInputDict as UserPreferenceOverrideConfigurationInputDict, UserPreferenceOverrideConsolidationConfigurationInput as UserPreferenceOverrideConsolidationConfigurationInput, + UserPreferenceOverrideConsolidationConfigurationInputDict as UserPreferenceOverrideConsolidationConfigurationInputDict, UserPreferenceOverrideExtractionConfigurationInput as UserPreferenceOverrideExtractionConfigurationInput, + UserPreferenceOverrideExtractionConfigurationInputDict as UserPreferenceOverrideExtractionConfigurationInputDict, ValidationStringValidation as ValidationStringValidation, ValidationStringListValidation as ValidationStringListValidation, ValidationNumberValidation as ValidationNumberValidation, ValidationUnknown as ValidationUnknown, Validation as Validation, _ValidationDeserializer as _ValidationDeserializer, + ValidationStringValidationDict as ValidationStringValidationDict, + ValidationStringListValidationDict as ValidationStringListValidationDict, + ValidationNumberValidationDict as ValidationNumberValidationDict, + ValidationDict as ValidationDict, ValidationException as ValidationException, ValidationExceptionField as ValidationExceptionField, ValidationExceptionReason as ValidationExceptionReason, VersionCreatedBySource as VersionCreatedBySource, + VersionCreatedBySourceDict as VersionCreatedBySourceDict, VersionFilter as VersionFilter, + VersionFilterDict as VersionFilterDict, VersionLineageMetadata as VersionLineageMetadata, VolumeConfigurationEbsConfiguration as VolumeConfigurationEbsConfiguration, VolumeConfigurationUnknown as VolumeConfigurationUnknown, VolumeConfiguration as VolumeConfiguration, _VolumeConfigurationDeserializer as _VolumeConfigurationDeserializer, + VolumeConfigurationEbsConfigurationDict as VolumeConfigurationEbsConfigurationDict, + VolumeConfigurationDict as VolumeConfigurationDict, VpcConfig as VpcConfig, + VpcConfigDict as VpcConfigDict, VpcConfiguration as VpcConfiguration, + VpcConfigurationDict as VpcConfigurationDict, WafConfiguration as WafConfiguration, + WafConfigurationDict as WafConfigurationDict, WafFailureMode as WafFailureMode, WeightedOverride as WeightedOverride, + WeightedOverrideDict as WeightedOverrideDict, WeightedRoute as WeightedRoute, + WeightedRouteDict as WeightedRouteDict, WorkloadIdentityDetails as WorkloadIdentityDetails, WorkloadIdentityType as WorkloadIdentityType, Unit as Unit, + UnitDict as UnitDict, ) class _SerdeShape: diff --git a/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/py.typed b/clients/aws-sdk-bedrock-agentcore-control/src/aws_sdk_bedrock_agentcore_control/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-bedrock-agentcore-control/tests/_typecheck.py b/clients/aws-sdk-bedrock-agentcore-control/tests/_typecheck.py index 4d9793a2e..5d946f605 100644 --- a/clients/aws-sdk-bedrock-agentcore-control/tests/_typecheck.py +++ b/clients/aws-sdk-bedrock-agentcore-control/tests/_typecheck.py @@ -2,701 +2,1223 @@ from typing import Any +from aws_sdk_bedrock_agentcore_control.aio.client import ( + AsyncBedrockAgentCoreControlClient, +) +from aws_sdk_bedrock_agentcore_control.client import BedrockAgentCoreControlClient from aws_sdk_bedrock_agentcore_control.models import ( A2aDescriptor, + A2aDescriptorDict, + ActionDict, AddDatasetExamplesInput, + AddDatasetExamplesInputDict, AddDatasetExamplesOutput, AgentCardDefinition, + AgentCardDefinitionDict, AgentRuntime, + AgentRuntimeArtifactDict, AgentRuntimeEndpoint, AgentRuntimeVersionSummary, AgentSkillsDescriptor, + AgentSkillsDescriptorDict, + AllowedPortDict, AllowedWorkloadConfiguration, + AllowedWorkloadConfigurationDict, ApiGatewayTargetConfiguration, + ApiGatewayTargetConfigurationDict, ApiGatewayToolConfiguration, + ApiGatewayToolConfigurationDict, ApiGatewayToolFilter, + ApiGatewayToolFilterDict, ApiGatewayToolOverride, + ApiGatewayToolOverrideDict, ApiKeyCredentialProviderItem, + ApiSchemaConfigurationDict, ApprovalConfiguration, + ApprovalConfigurationDict, AtlassianOauth2ProviderConfigInput, + AtlassianOauth2ProviderConfigInputDict, AtlassianOauth2ProviderConfigOutput, + AuthorizerConfigurationDict, AuthorizingClaimMatchValueType, + AuthorizingClaimMatchValueTypeDict, BatchPutGatewayRateLimitsInput, + BatchPutGatewayRateLimitsInputDict, BatchPutGatewayRateLimitsOutput, BatchPutLimitEntry, + BatchPutLimitEntryDict, BedrockEvaluatorModelConfig, + BedrockEvaluatorModelConfigDict, BrowserEnterprisePolicy, + BrowserEnterprisePolicyDict, BrowserNetworkConfiguration, + BrowserNetworkConfigurationDict, BrowserProfileSummary, BrowserSigningConfigInput, + BrowserSigningConfigInputDict, BrowserSigningConfigOutput, BrowserSummary, BuildLifecycleHooks, + BuildLifecycleHooksDict, CapacityProviderConfiguration, + CapacityProviderConfigurationDict, CapacityProviderSummary, CapacityProviderVolumeConfiguration, + CapacityProviderVolumeConfigurationDict, CapacityReservationSpecification, + CapacityReservationSpecificationDict, CapacityReservationTarget, + CapacityReservationTargetDict, CategoricalScaleDefinition, + CategoricalScaleDefinitionDict, CedarPolicy, + CedarPolicyDict, Certificate, + CertificateConfigurationDict, + CertificateDict, + CertificateLocationDict, CircuitBreakerConfiguration, + CircuitBreakerConfigurationDict, + ClaimMatchValueTypeDict, CloudWatchLogsInputConfig, + CloudWatchLogsInputConfigDict, CloudWatchOutputConfig, + CloudWatchOutputConfigDict, ClusteringConfig, + ClusteringConfigDict, + CodeBasedEvaluatorConfigDict, CodeConfiguration, + CodeConfigurationDict, + CodeDict, CodeInterpreterNetworkConfiguration, + CodeInterpreterNetworkConfigurationDict, CodeInterpreterSummary, CoinbaseCdpConfigurationInput, + CoinbaseCdpConfigurationInputDict, CoinbaseCdpConfigurationOutput, CoinbaseCdpRotationTargets, + CoinbaseCdpRotationTargetsDict, ComponentConfiguration, + ComponentConfigurationDict, + ComputeConfigurationDict, + ConditionDict, + ConfigurationBundleActionDict, ConfigurationBundleReference, + ConfigurationBundleReferenceDict, ConfigurationBundleSummary, ConfigurationBundleVersionSummary, ConnectorConfiguration, + ConnectorConfigurationDict, ConnectorParameterOverride, + ConnectorParameterOverrideDict, ConnectorSource, + ConnectorSourceDict, ConnectorTargetConfiguration, + ConnectorTargetConfigurationDict, ConsentPortalIdpConfig, + ConsentPortalIdpConfigDict, ConsentPortalSource, + ConsentPortalSourceDict, ConsentPortalSummary, ContainerConfiguration, + ContainerConfigurationDict, ContentConfiguration, + ContentConfigurationDict, + ContentDict, CreateAgentRuntimeEndpointInput, + CreateAgentRuntimeEndpointInputDict, CreateAgentRuntimeEndpointOutput, CreateAgentRuntimeInput, + CreateAgentRuntimeInputDict, CreateAgentRuntimeOutput, CreateApiKeyCredentialProviderInput, + CreateApiKeyCredentialProviderInputDict, CreateApiKeyCredentialProviderOutput, CreateBrowserInput, + CreateBrowserInputDict, CreateBrowserOutput, CreateBrowserProfileInput, + CreateBrowserProfileInputDict, CreateBrowserProfileOutput, CreateCapacityProviderInput, + CreateCapacityProviderInputDict, CreateCapacityProviderOutput, CreateCodeInterpreterInput, + CreateCodeInterpreterInputDict, CreateCodeInterpreterOutput, CreateConfigurationBundleInput, + CreateConfigurationBundleInputDict, CreateConfigurationBundleOutput, CreateConsentPortalInput, + CreateConsentPortalInputDict, CreateConsentPortalOutput, CreateDatasetInput, + CreateDatasetInputDict, CreateDatasetOutput, CreateDatasetVersionInput, + CreateDatasetVersionInputDict, CreateDatasetVersionOutput, CreateEvaluatorInput, + CreateEvaluatorInputDict, CreateEvaluatorOutput, CreateGatewayInput, + CreateGatewayInputDict, CreateGatewayOutput, CreateGatewayRateLimitInput, + CreateGatewayRateLimitInputDict, CreateGatewayRateLimitOutput, CreateGatewayRuleInput, + CreateGatewayRuleInputDict, CreateGatewayRuleOutput, CreateGatewayTargetInput, + CreateGatewayTargetInputDict, CreateGatewayTargetOutput, CreateHarnessEndpointInput, + CreateHarnessEndpointInputDict, CreateHarnessEndpointOutput, CreateHarnessInput, + CreateHarnessInputDict, CreateHarnessOutput, CreateMemoryInput, + CreateMemoryInputDict, CreateMemoryOutput, CreateOauth2CredentialProviderInput, + CreateOauth2CredentialProviderInputDict, CreateOauth2CredentialProviderOutput, CreateOnlineEvaluationConfigInput, + CreateOnlineEvaluationConfigInputDict, CreateOnlineEvaluationConfigOutput, CreatePaymentConnectorInput, + CreatePaymentConnectorInputDict, CreatePaymentConnectorOutput, CreatePaymentCredentialProviderInput, + CreatePaymentCredentialProviderInputDict, CreatePaymentCredentialProviderOutput, CreatePaymentManagerInput, + CreatePaymentManagerInputDict, CreatePaymentManagerOutput, CreatePolicyEngineInput, + CreatePolicyEngineInputDict, CreatePolicyEngineOutput, CreatePolicyInput, + CreatePolicyInputDict, CreatePolicyOutput, CreateRegistryInput, + CreateRegistryInputDict, CreateRegistryOutput, CreateRegistryRecordInput, + CreateRegistryRecordInputDict, CreateRegistryRecordOutput, CreateWorkloadIdentityInput, + CreateWorkloadIdentityInputDict, CreateWorkloadIdentityOutput, CredentialProviderConfiguration, + CredentialProviderConfigurationDict, + CredentialProviderDict, + CredentialRotationConfigDict, + CredentialsProviderConfigurationDict, CustomClaimValidationType, + CustomClaimValidationTypeDict, + CustomConfigurationInputDict, + CustomConsolidationConfigurationInputDict, CustomDescriptor, + CustomDescriptorDict, + CustomExtractionConfigurationInputDict, CustomJWTAuthorizerConfiguration, + CustomJWTAuthorizerConfigurationDict, CustomMemoryStrategyInput, + CustomMemoryStrategyInputDict, CustomOauth2ProviderConfigInput, + CustomOauth2ProviderConfigInputDict, CustomOauth2ProviderConfigOutput, + CustomReflectionConfigurationInputDict, CustomTransformConfiguration, + CustomTransformConfigurationDict, + DataSourceConfigDict, + DataSourceTypeDict, DatasetSummary, DatasetVersionSummary, DeleteAgentRuntimeEndpointInput, + DeleteAgentRuntimeEndpointInputDict, DeleteAgentRuntimeEndpointOutput, DeleteAgentRuntimeInput, + DeleteAgentRuntimeInputDict, DeleteAgentRuntimeOutput, DeleteApiKeyCredentialProviderInput, + DeleteApiKeyCredentialProviderInputDict, DeleteApiKeyCredentialProviderOutput, DeleteBrowserInput, + DeleteBrowserInputDict, DeleteBrowserOutput, DeleteBrowserProfileInput, + DeleteBrowserProfileInputDict, DeleteBrowserProfileOutput, DeleteCapacityProviderInput, + DeleteCapacityProviderInputDict, DeleteCapacityProviderOutput, DeleteCodeInterpreterInput, + DeleteCodeInterpreterInputDict, DeleteCodeInterpreterOutput, DeleteConfigurationBundleInput, + DeleteConfigurationBundleInputDict, DeleteConfigurationBundleOutput, DeleteConsentPortalInput, + DeleteConsentPortalInputDict, DeleteConsentPortalOutput, DeleteDatasetExamplesInput, + DeleteDatasetExamplesInputDict, DeleteDatasetExamplesOutput, DeleteDatasetInput, + DeleteDatasetInputDict, DeleteDatasetOutput, DeleteEvaluatorInput, + DeleteEvaluatorInputDict, DeleteEvaluatorOutput, DeleteGatewayInput, + DeleteGatewayInputDict, DeleteGatewayOutput, DeleteGatewayRateLimitInput, + DeleteGatewayRateLimitInputDict, DeleteGatewayRateLimitOutput, DeleteGatewayRuleInput, + DeleteGatewayRuleInputDict, DeleteGatewayRuleOutput, DeleteGatewayTargetInput, + DeleteGatewayTargetInputDict, DeleteGatewayTargetOutput, DeleteHarnessEndpointInput, + DeleteHarnessEndpointInputDict, DeleteHarnessEndpointOutput, DeleteHarnessInput, + DeleteHarnessInputDict, DeleteHarnessOutput, DeleteMemoryInput, + DeleteMemoryInputDict, DeleteMemoryOutput, DeleteMemoryStrategyInput, + DeleteMemoryStrategyInputDict, DeleteOauth2CredentialProviderInput, + DeleteOauth2CredentialProviderInputDict, DeleteOauth2CredentialProviderOutput, DeleteOnlineEvaluationConfigInput, + DeleteOnlineEvaluationConfigInputDict, DeleteOnlineEvaluationConfigOutput, DeletePaymentConnectorInput, + DeletePaymentConnectorInputDict, DeletePaymentConnectorOutput, DeletePaymentCredentialProviderInput, + DeletePaymentCredentialProviderInputDict, DeletePaymentCredentialProviderOutput, DeletePaymentManagerInput, + DeletePaymentManagerInputDict, DeletePaymentManagerOutput, DeletePolicyEngineInput, + DeletePolicyEngineInputDict, DeletePolicyEngineOutput, DeletePolicyInput, + DeletePolicyInputDict, DeletePolicyOutput, DeleteRegistryInput, + DeleteRegistryInputDict, DeleteRegistryOutput, DeleteRegistryRecordInput, + DeleteRegistryRecordInputDict, DeleteRegistryRecordOutput, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DeleteWorkloadIdentityInput, + DeleteWorkloadIdentityInputDict, DeleteWorkloadIdentityOutput, DerivedEvaluatorConfig, + DerivedEvaluatorConfigDict, Descriptors, + DescriptorsDict, + DimensionRatingScaleDict, DomainOverride, + DomainOverrideDict, EbsVolumeConfiguration, + EbsVolumeConfigurationDict, Ec2Configuration, + Ec2ConfigurationDict, EfsAccessPointConfiguration, + EfsAccessPointConfigurationDict, EfsConfiguration, + EfsConfigurationDict, EphemeralBlockDeviceMapping, + EphemeralBlockDeviceMappingDict, EphemeralEBSVolumeConfiguration, + EphemeralEBSVolumeConfigurationDict, EpisodicConsolidationOverride, EpisodicExtractionOverride, EpisodicMemoryStrategyInput, + EpisodicMemoryStrategyInputDict, EpisodicOverrideConfigurationInput, + EpisodicOverrideConfigurationInputDict, EpisodicOverrideConsolidationConfigurationInput, + EpisodicOverrideConsolidationConfigurationInputDict, EpisodicOverrideExtractionConfigurationInput, + EpisodicOverrideExtractionConfigurationInputDict, EpisodicOverrideReflectionConfigurationInput, + EpisodicOverrideReflectionConfigurationInputDict, EpisodicReflectionConfiguration, EpisodicReflectionConfigurationInput, + EpisodicReflectionConfigurationInputDict, EpisodicReflectionOverride, EvaluationDimension, + EvaluationDimensionDict, + EvaluatorConfigDict, + EvaluatorModelConfigDict, + EvaluatorReferenceDict, EvaluatorSummary, + ExtractionConfigDict, Fallback, + FallbackDict, FallbackTarget, + FallbackTargetDict, FallbackTriggers, + FallbackTriggersDict, + FilesystemConfigurationDict, Filter, + FilterDict, + FilterValueDict, Finding, FromUrlSynchronizationConfiguration, + FromUrlSynchronizationConfigurationDict, GatewayApiKeyCredentialProvider, + GatewayApiKeyCredentialProviderDict, GatewayInterceptorConfiguration, + GatewayInterceptorConfigurationDict, GatewayPolicyEngineConfiguration, + GatewayPolicyEngineConfigurationDict, + GatewayProtocolConfigurationDict, GatewayRateLimitDetail, GatewayRuleDetail, GatewaySummary, GatewayTarget, GetAgentRuntimeEndpointInput, + GetAgentRuntimeEndpointInputDict, GetAgentRuntimeEndpointOutput, GetAgentRuntimeInput, + GetAgentRuntimeInputDict, GetAgentRuntimeOutput, GetApiKeyCredentialProviderInput, + GetApiKeyCredentialProviderInputDict, GetApiKeyCredentialProviderOutput, GetBrowserInput, + GetBrowserInputDict, GetBrowserOutput, GetBrowserProfileInput, + GetBrowserProfileInputDict, GetBrowserProfileOutput, GetCapacityProviderInput, + GetCapacityProviderInputDict, GetCapacityProviderOutput, GetCodeInterpreterInput, + GetCodeInterpreterInputDict, GetCodeInterpreterOutput, GetConfigurationBundleInput, + GetConfigurationBundleInputDict, GetConfigurationBundleOutput, GetConfigurationBundleVersionInput, + GetConfigurationBundleVersionInputDict, GetConfigurationBundleVersionOutput, GetConsentPortalInput, + GetConsentPortalInputDict, GetConsentPortalOutput, GetDatasetInput, + GetDatasetInputDict, GetDatasetOutput, GetEvaluatorInput, + GetEvaluatorInputDict, GetEvaluatorOutput, GetGatewayInput, + GetGatewayInputDict, GetGatewayOutput, GetGatewayRateLimitInput, + GetGatewayRateLimitInputDict, GetGatewayRateLimitOutput, GetGatewayRuleInput, + GetGatewayRuleInputDict, GetGatewayRuleOutput, GetGatewayTargetInput, + GetGatewayTargetInputDict, GetGatewayTargetOutput, GetHarnessEndpointInput, + GetHarnessEndpointInputDict, GetHarnessEndpointOutput, GetHarnessInput, + GetHarnessInputDict, GetHarnessOutput, GetMemoryInput, + GetMemoryInputDict, GetMemoryOutput, GetOauth2CredentialProviderInput, + GetOauth2CredentialProviderInputDict, GetOauth2CredentialProviderOutput, GetOnlineEvaluationConfigInput, + GetOnlineEvaluationConfigInputDict, GetOnlineEvaluationConfigOutput, GetPaymentConnectorInput, + GetPaymentConnectorInputDict, GetPaymentConnectorOutput, GetPaymentCredentialProviderInput, + GetPaymentCredentialProviderInputDict, GetPaymentCredentialProviderOutput, GetPaymentManagerInput, + GetPaymentManagerInputDict, GetPaymentManagerOutput, GetPolicyEngineInput, + GetPolicyEngineInputDict, GetPolicyEngineOutput, GetPolicyEngineSummaryInput, + GetPolicyEngineSummaryInputDict, GetPolicyEngineSummaryOutput, GetPolicyGenerationInput, + GetPolicyGenerationInputDict, GetPolicyGenerationOutput, GetPolicyGenerationSummaryInput, + GetPolicyGenerationSummaryInputDict, GetPolicyGenerationSummaryOutput, GetPolicyInput, + GetPolicyInputDict, GetPolicyOutput, GetPolicySummaryInput, + GetPolicySummaryInputDict, GetPolicySummaryOutput, GetRegistryInput, + GetRegistryInputDict, GetRegistryOutput, GetRegistryRecordInput, + GetRegistryRecordInputDict, GetRegistryRecordOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GetTokenVaultInput, + GetTokenVaultInputDict, GetTokenVaultOutput, GetWorkloadIdentityInput, + GetWorkloadIdentityInputDict, GetWorkloadIdentityOutput, GithubOauth2ProviderConfigInput, + GithubOauth2ProviderConfigInputDict, GithubOauth2ProviderConfigOutput, GoogleOauth2ProviderConfigInput, + GoogleOauth2ProviderConfigInputDict, GoogleOauth2ProviderConfigOutput, Harness, HarnessAfterInvocationHook, + HarnessAfterInvocationHookDict, HarnessAfterToolCallHook, + HarnessAfterToolCallHookDict, HarnessAgentCoreBrowserConfig, + HarnessAgentCoreBrowserConfigDict, HarnessAgentCoreCodeInterpreterConfig, + HarnessAgentCoreCodeInterpreterConfigDict, HarnessAgentCoreGatewayConfig, + HarnessAgentCoreGatewayConfigDict, HarnessAgentCoreMemoryConfiguration, + HarnessAgentCoreMemoryConfigurationDict, HarnessAgentCoreMemoryRetrievalConfig, + HarnessAgentCoreMemoryRetrievalConfigDict, HarnessAgentCoreRuntimeEnvironment, HarnessAgentCoreRuntimeEnvironmentRequest, + HarnessAgentCoreRuntimeEnvironmentRequestDict, HarnessBedrockModelConfig, + HarnessBedrockModelConfigDict, HarnessBeforeInvocationHook, + HarnessBeforeInvocationHookDict, HarnessBeforeToolCallHook, + HarnessBeforeToolCallHookDict, HarnessDisabledMemoryConfiguration, + HarnessDisabledMemoryConfigurationDict, HarnessEndpoint, + HarnessEnvironmentArtifactDict, + HarnessEnvironmentProviderRequestDict, + HarnessGatewayOutboundAuthDict, HarnessGeminiModelConfig, + HarnessGeminiModelConfigDict, + HarnessHookDict, HarnessHookEventBridgeTarget, + HarnessHookEventBridgeTargetDict, HarnessHookLambdaTarget, + HarnessHookLambdaTargetDict, HarnessHookSnsTarget, + HarnessHookSnsTargetDict, + HarnessHookTargetDict, HarnessInlineFunctionConfig, + HarnessInlineFunctionConfigDict, HarnessLiteLlmModelConfig, + HarnessLiteLlmModelConfigDict, HarnessManagedMemoryConfiguration, + HarnessManagedMemoryConfigurationDict, + HarnessMemoryConfigurationDict, + HarnessModelConfigurationDict, HarnessOpenAiModelConfig, + HarnessOpenAiModelConfigDict, HarnessRemoteMcpConfig, + HarnessRemoteMcpConfigDict, + HarnessRemoteMcpOutboundAuthDict, HarnessSkillAwsSkillsSource, + HarnessSkillAwsSkillsSourceDict, + HarnessSkillDict, HarnessSkillGitAuth, + HarnessSkillGitAuthDict, HarnessSkillGitSource, + HarnessSkillGitSourceDict, HarnessSkillS3Source, + HarnessSkillS3SourceDict, HarnessSlidingWindowConfiguration, + HarnessSlidingWindowConfigurationDict, HarnessSummarizationConfiguration, + HarnessSummarizationConfigurationDict, HarnessSummary, + HarnessSystemContentBlockDict, HarnessTool, + HarnessToolConfigurationDict, + HarnessToolDict, HarnessTruncationConfiguration, + HarnessTruncationConfigurationDict, + HarnessTruncationStrategyConfigurationDict, HarnessVersionSummary, HostingEnvironment, + HostingEnvironmentDict, HttpApiSchemaConfiguration, + HttpApiSchemaConfigurationDict, HttpConnectorSource, + HttpConnectorSourceDict, HttpConnectorTargetConfiguration, + HttpConnectorTargetConfigurationDict, HttpPostLifecycleHookAction, + HttpPostLifecycleHookActionDict, + HttpTargetConfigurationDict, IamCredentialProvider, + IamCredentialProviderDict, IamPrincipal, + IamPrincipalDict, IncludedOauth2ProviderConfigInput, + IncludedOauth2ProviderConfigInputDict, IncludedOauth2ProviderConfigOutput, IndexedKey, + IndexedKeyDict, InferenceConfiguration, + InferenceConfigurationDict, InferenceConnectorSource, + InferenceConnectorSourceDict, InferenceConnectorTargetConfiguration, + InferenceConnectorTargetConfigurationDict, InferenceOperationConfiguration, + InferenceOperationConfigurationDict, InferenceProviderTargetConfiguration, + InferenceProviderTargetConfigurationDict, + InferenceTargetConfigurationDict, InlineExamplesSource, + InlineExamplesSourceDict, Insight, + InsightDict, InstanceLifecycleConfiguration, + InstanceLifecycleConfigurationDict, InstanceRequirements, + InstanceRequirementsDict, + InterceptorConfigurationDict, InterceptorInputConfiguration, + InterceptorInputConfigurationDict, + InterceptorPayloadExclusionSelectorDict, InterceptorPayloadFilter, + InterceptorPayloadFilterDict, InvocationConfiguration, InvocationConfigurationInput, + InvocationConfigurationInputDict, KinesisResource, + KinesisResourceDict, KmsConfiguration, + KmsConfigurationDict, KmsKeySourceType, + KmsKeySourceTypeDict, LambdaEvaluatorConfig, + LambdaEvaluatorConfigDict, LambdaInterceptorConfiguration, + LambdaInterceptorConfigurationDict, LambdaTransformConfiguration, + LambdaTransformConfigurationDict, LaunchParameters, + LaunchParametersDict, + LaunchTemplateSourceDict, LicenseSpecification, + LicenseSpecificationDict, LifecycleConfiguration, + LifecycleConfigurationDict, LifecycleHook, + LifecycleHookActionDict, + LifecycleHookDict, LimitEntry, + LimitEntryDict, LinkedinOauth2ProviderConfigInput, + LinkedinOauth2ProviderConfigInputDict, LinkedinOauth2ProviderConfigOutput, ListAgentRuntimeEndpointsInput, + ListAgentRuntimeEndpointsInputDict, ListAgentRuntimeEndpointsOutput, ListAgentRuntimeVersionsByCapacityProviderInput, + ListAgentRuntimeVersionsByCapacityProviderInputDict, ListAgentRuntimeVersionsByCapacityProviderOutput, ListAgentRuntimeVersionsInput, + ListAgentRuntimeVersionsInputDict, ListAgentRuntimeVersionsOutput, ListAgentRuntimesInput, + ListAgentRuntimesInputDict, ListAgentRuntimesOutput, ListApiKeyCredentialProvidersInput, + ListApiKeyCredentialProvidersInputDict, ListApiKeyCredentialProvidersOutput, ListBrowserProfilesInput, + ListBrowserProfilesInputDict, ListBrowserProfilesOutput, ListBrowsersInput, + ListBrowsersInputDict, ListBrowsersOutput, ListCapacityProvidersInput, + ListCapacityProvidersInputDict, ListCapacityProvidersOutput, ListCodeInterpretersInput, + ListCodeInterpretersInputDict, ListCodeInterpretersOutput, ListConfigurationBundleVersionsInput, + ListConfigurationBundleVersionsInputDict, ListConfigurationBundleVersionsOutput, ListConfigurationBundlesInput, + ListConfigurationBundlesInputDict, ListConfigurationBundlesOutput, ListConsentPortalsInput, + ListConsentPortalsInputDict, ListConsentPortalsOutput, ListDatasetExamplesInput, + ListDatasetExamplesInputDict, ListDatasetExamplesOutput, ListDatasetVersionsInput, + ListDatasetVersionsInputDict, ListDatasetVersionsOutput, ListDatasetsInput, + ListDatasetsInputDict, ListDatasetsOutput, ListEvaluatorsInput, + ListEvaluatorsInputDict, ListEvaluatorsOutput, ListGatewayRateLimitsInput, + ListGatewayRateLimitsInputDict, ListGatewayRateLimitsOutput, ListGatewayRulesInput, + ListGatewayRulesInputDict, ListGatewayRulesOutput, ListGatewayTargetsInput, + ListGatewayTargetsInputDict, ListGatewayTargetsOutput, ListGatewaysInput, + ListGatewaysInputDict, ListGatewaysOutput, ListHarnessEndpointsInput, + ListHarnessEndpointsInputDict, ListHarnessEndpointsOutput, ListHarnessVersionsInput, + ListHarnessVersionsInputDict, ListHarnessVersionsOutput, ListHarnessesInput, + ListHarnessesInputDict, ListHarnessesOutput, ListMemoriesInput, + ListMemoriesInputDict, ListMemoriesOutput, ListOauth2CredentialProvidersInput, + ListOauth2CredentialProvidersInputDict, ListOauth2CredentialProvidersOutput, ListOnlineEvaluationConfigsInput, + ListOnlineEvaluationConfigsInputDict, ListOnlineEvaluationConfigsOutput, ListPaymentConnectorsInput, + ListPaymentConnectorsInputDict, ListPaymentConnectorsOutput, ListPaymentCredentialProvidersInput, + ListPaymentCredentialProvidersInputDict, ListPaymentCredentialProvidersOutput, ListPaymentManagersInput, + ListPaymentManagersInputDict, ListPaymentManagersOutput, ListPoliciesInput, + ListPoliciesInputDict, ListPoliciesOutput, ListPolicyEngineSummariesInput, + ListPolicyEngineSummariesInputDict, ListPolicyEngineSummariesOutput, ListPolicyEnginesInput, + ListPolicyEnginesInputDict, ListPolicyEnginesOutput, ListPolicyGenerationAssetsInput, + ListPolicyGenerationAssetsInputDict, ListPolicyGenerationAssetsOutput, ListPolicyGenerationSummariesInput, + ListPolicyGenerationSummariesInputDict, ListPolicyGenerationSummariesOutput, ListPolicyGenerationsInput, + ListPolicyGenerationsInputDict, ListPolicyGenerationsOutput, ListPolicySummariesInput, + ListPolicySummariesInputDict, ListPolicySummariesOutput, ListRegistriesInput, + ListRegistriesInputDict, ListRegistriesOutput, ListRegistryRecordsInput, + ListRegistryRecordsInputDict, ListRegistryRecordsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ListWorkloadIdentitiesInput, + ListWorkloadIdentitiesInputDict, ListWorkloadIdentitiesOutput, LlmAsAJudgeEvaluatorConfig, + LlmAsAJudgeEvaluatorConfigDict, LlmExtractionConfig, + LlmExtractionConfigDict, MCPGatewayConfiguration, + MCPGatewayConfigurationDict, ManagedResourceDetails, ManagedVpcResource, + ManagedVpcResourceDict, MatchModelEntry, + MatchModelEntryDict, MatchModels, + MatchModelsDict, MatchPaths, + MatchPathsDict, + MatchPrincipalEntryDict, MatchPrincipals, + MatchPrincipalsDict, McpDescriptor, + McpDescriptorDict, McpLambdaTargetConfiguration, + McpLambdaTargetConfigurationDict, McpServerTargetConfiguration, + McpServerTargetConfigurationDict, + McpTargetConfigurationDict, + McpToolSchemaConfigurationDict, Memory, MemoryRecordSchema, + MemoryRecordSchemaDict, MemoryStrategy, + MemoryStrategyInputDict, MemorySummary, MessageBasedTrigger, MessageBasedTriggerInput, + MessageBasedTriggerInputDict, MetadataConfiguration, + MetadataConfigurationDict, MetadataSchemaEntry, + MetadataSchemaEntryDict, MicrosoftOauth2ProviderConfigInput, + MicrosoftOauth2ProviderConfigInputDict, MicrosoftOauth2ProviderConfigOutput, ModelEntry, + ModelEntryDict, ModelMapping, + ModelMappingDict, + ModifyConsolidationConfigurationDict, + ModifyExtractionConfigurationDict, ModifyInvocationConfigurationInput, + ModifyInvocationConfigurationInputDict, ModifyMemoryStrategies, + ModifyMemoryStrategiesDict, ModifyMemoryStrategyInput, + ModifyMemoryStrategyInputDict, + ModifyReflectionConfigurationDict, ModifySelfManagedConfiguration, + ModifySelfManagedConfigurationDict, ModifyStrategyConfiguration, + ModifyStrategyConfigurationDict, NamespaceKeyEntry, + NamespaceKeyEntryDict, NamespaceKeyValidation, + NamespaceKeyValidationDict, NetworkConfiguration, + NetworkConfigurationDict, NumberValidation, + NumberValidationDict, NumericalScaleDefinition, + NumericalScaleDefinitionDict, OAuth2AuthorizationData, OAuthCredentialProvider, + OAuthCredentialProviderDict, Oauth2AuthorizationServerMetadata, + Oauth2AuthorizationServerMetadataDict, Oauth2CredentialProviderItem, + Oauth2DiscoveryDict, + Oauth2ProviderConfigInputDict, OnBehalfOfAuthenticationConfig, + OnBehalfOfAuthenticationConfigDict, OnBehalfOfTokenExchangeConfigType, + OnBehalfOfTokenExchangeConfigTypeDict, OnlineEvaluationConfigSummary, OpenResponsesEvaluatorModelConfig, + OpenResponsesEvaluatorModelConfigDict, OutputConfig, + OutputConfigDict, PassthroughTargetConfiguration, + PassthroughTargetConfigurationDict, PaymentConnectorSummary, PaymentCredentialProviderConfiguration, + PaymentCredentialProviderConfigurationDict, PaymentCredentialProviderItem, PaymentManagerSummary, + PaymentProviderConfigurationInputDict, PermissionsConfiguration, + PermissionsConfigurationDict, Policy, + PolicyDefinitionDict, PolicyEngine, PolicyEngineSummary, PolicyGeneration, PolicyGenerationAsset, PolicyGenerationDetails, + PolicyGenerationDetailsDict, PolicyGenerationSummary, PolicyStatement, + PolicyStatementDict, PolicySummary, PortRange, + PortRangeDict, + PrivateEndpointDict, PrivateEndpointOverride, + PrivateEndpointOverrideDict, PrivateKeyJwtConfig, + PrivateKeyJwtConfigDict, + PrivateKeySourceDict, ProtocolConfiguration, + ProtocolConfigurationDict, ProviderPrefix, + ProviderPrefixDict, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, RateConfig, + RateConfigDict, + RatingScaleDict, ReasoningConfiguration, + ReasoningConfigurationDict, + RecordExpirySpecificationDict, RecordingConfig, + RecordingConfigDict, RegistryRecordCredentialProviderConfiguration, + RegistryRecordCredentialProviderConfigurationDict, + RegistryRecordCredentialProviderUnionDict, RegistryRecordIamCredentialProvider, + RegistryRecordIamCredentialProviderDict, RegistryRecordOAuthCredentialProvider, + RegistryRecordOAuthCredentialProviderDict, RegistryRecordSummary, RegistrySummary, + RequestHeaderConfigurationDict, ResetTokenVaultKeyMaterialInput, + ResetTokenVaultKeyMaterialInputDict, ResetTokenVaultKeyMaterialOutput, ResourceConfiguration, + ResourceConfigurationDict, + ResourceDict, + ResourceLocationDict, RootVolumeConfiguration, + RootVolumeConfigurationDict, RotatePaymentConnectorCredentialsInput, + RotatePaymentConnectorCredentialsInputDict, RotatePaymentConnectorCredentialsOutput, + RouteToTargetActionDict, Rule, + RuleDict, RuntimeHooksConfiguration, + RuntimeHooksConfigurationDict, RuntimeMetadataConfiguration, + RuntimeMetadataConfigurationDict, RuntimeTargetConfiguration, + RuntimeTargetConfigurationDict, S3CertificateConfiguration, + S3CertificateConfigurationDict, S3Configuration, + S3ConfigurationDict, S3FilesAccessPointConfiguration, + S3FilesAccessPointConfigurationDict, S3FilesConfiguration, + S3FilesConfigurationDict, S3Location, + S3LocationDict, S3Source, + S3SourceDict, SalesforceOauth2ProviderConfigInput, + SalesforceOauth2ProviderConfigInputDict, SalesforceOauth2ProviderConfigOutput, SamplingConfig, + SamplingConfigDict, SchemaDefinition, + SchemaDefinitionDict, Secret, SecretReference, + SecretReferenceDict, SecretsManagerCertificateConfiguration, + SecretsManagerCertificateConfigurationDict, SecretsManagerLocation, + SecretsManagerLocationDict, SelfManagedConfiguration, SelfManagedConfigurationInput, + SelfManagedConfigurationInputDict, + SelfManagedLatticeResourceDict, SemanticConsolidationOverride, SemanticExtractionOverride, SemanticMemoryStrategyInput, + SemanticMemoryStrategyInputDict, SemanticOverrideConfigurationInput, + SemanticOverrideConfigurationInputDict, SemanticOverrideConsolidationConfigurationInput, + SemanticOverrideConsolidationConfigurationInputDict, SemanticOverrideExtractionConfigurationInput, + SemanticOverrideExtractionConfigurationInputDict, ServerDefinition, + ServerDefinitionDict, SessionConfig, + SessionConfigDict, SessionConfiguration, + SessionConfigurationDict, SessionStorageConfiguration, + SessionStorageConfigurationDict, SetTokenVaultCMKInput, + SetTokenVaultCMKInputDict, SetTokenVaultCMKOutput, SkillDefinition, + SkillDefinitionDict, SkillMdDefinition, + SkillMdDefinitionDict, SlackOauth2ProviderConfigInput, + SlackOauth2ProviderConfigInputDict, SlackOauth2ProviderConfigOutput, StartPolicyGenerationInput, + StartPolicyGenerationInputDict, StartPolicyGenerationOutput, StaticOverride, + StaticOverrideDict, StaticRoute, + StaticRouteDict, StickinessConfiguration, + StickinessConfigurationDict, StrategyConfiguration, + StreamDeliveryResourceDict, StreamDeliveryResources, + StreamDeliveryResourcesDict, StreamingConfiguration, + StreamingConfigurationDict, StringListValidation, + StringListValidationDict, StringValidation, + StringValidationDict, StripePrivyConfigurationInput, + StripePrivyConfigurationInputDict, StripePrivyConfigurationOutput, SubmitRegistryRecordForApprovalInput, + SubmitRegistryRecordForApprovalInputDict, SubmitRegistryRecordForApprovalOutput, SummaryConsolidationOverride, SummaryMemoryStrategyInput, + SummaryMemoryStrategyInputDict, SummaryOverrideConfigurationInput, + SummaryOverrideConfigurationInputDict, SummaryOverrideConsolidationConfigurationInput, + SummaryOverrideConsolidationConfigurationInputDict, SynchronizationConfiguration, + SynchronizationConfigurationDict, SynchronizeGatewayTargetsInput, + SynchronizeGatewayTargetsInputDict, SynchronizeGatewayTargetsOutput, SystemManagedBlock, TagResourceInput, + TagResourceInputDict, TagResourceOutput, + TargetConfigurationDict, TargetSummary, TargetTrafficSplitEntry, + TargetTrafficSplitEntryDict, TimeBasedTrigger, TimeBasedTriggerInput, + TimeBasedTriggerInputDict, TokenBasedTrigger, TokenBasedTriggerInput, + TokenBasedTriggerInputDict, TokenExchangeGrantTypeConfigType, + TokenExchangeGrantTypeConfigTypeDict, ToolDefinition, + ToolDefinitionDict, + ToolSchemaDict, ToolsDefinition, + ToolsDefinitionDict, + ToolsFileSystemConfigurationDict, TrafficSplitEntry, + TrafficSplitEntryDict, + TriggerConditionInputDict, Unit, + UnitDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAgentRuntimeEndpointInput, + UpdateAgentRuntimeEndpointInputDict, UpdateAgentRuntimeEndpointOutput, UpdateAgentRuntimeInput, + UpdateAgentRuntimeInputDict, UpdateAgentRuntimeOutput, UpdateApiKeyCredentialProviderInput, + UpdateApiKeyCredentialProviderInputDict, UpdateApiKeyCredentialProviderOutput, UpdateCapacityProviderInput, + UpdateCapacityProviderInputDict, UpdateCapacityProviderOutput, UpdateConfigurationBundleInput, + UpdateConfigurationBundleInputDict, UpdateConfigurationBundleOutput, UpdateConsentPortalInput, + UpdateConsentPortalInputDict, UpdateConsentPortalOutput, UpdateDatasetExamplesInput, + UpdateDatasetExamplesInputDict, UpdateDatasetExamplesOutput, UpdateDatasetInput, + UpdateDatasetInputDict, UpdateDatasetOutput, UpdateEvaluatorInput, + UpdateEvaluatorInputDict, UpdateEvaluatorOutput, UpdateGatewayInput, + UpdateGatewayInputDict, UpdateGatewayOutput, UpdateGatewayRateLimitInput, + UpdateGatewayRateLimitInputDict, UpdateGatewayRateLimitOutput, UpdateGatewayRuleInput, + UpdateGatewayRuleInputDict, UpdateGatewayRuleOutput, UpdateGatewayTargetInput, + UpdateGatewayTargetInputDict, UpdateGatewayTargetOutput, UpdateHarnessEndpointInput, + UpdateHarnessEndpointInputDict, UpdateHarnessEndpointOutput, UpdateHarnessInput, + UpdateHarnessInputDict, UpdateHarnessOutput, UpdateMemoryInput, + UpdateMemoryInputDict, UpdateMemoryOutput, UpdateOauth2CredentialProviderInput, + UpdateOauth2CredentialProviderInputDict, UpdateOauth2CredentialProviderOutput, UpdateOnlineEvaluationConfigInput, + UpdateOnlineEvaluationConfigInputDict, UpdateOnlineEvaluationConfigOutput, UpdatePaymentConnectorInput, + UpdatePaymentConnectorInputDict, UpdatePaymentConnectorOutput, UpdatePaymentCredentialProviderInput, + UpdatePaymentCredentialProviderInputDict, UpdatePaymentCredentialProviderOutput, UpdatePaymentManagerInput, + UpdatePaymentManagerInputDict, UpdatePaymentManagerOutput, UpdatePolicyEngineInput, + UpdatePolicyEngineInputDict, UpdatePolicyEngineOutput, UpdatePolicyInput, + UpdatePolicyInputDict, UpdatePolicyOutput, UpdateRegistryInput, + UpdateRegistryInputDict, UpdateRegistryOutput, UpdateRegistryRecordInput, + UpdateRegistryRecordInputDict, UpdateRegistryRecordOutput, UpdateRegistryRecordStatusInput, + UpdateRegistryRecordStatusInputDict, UpdateRegistryRecordStatusOutput, UpdateWorkloadIdentityInput, + UpdateWorkloadIdentityInputDict, UpdateWorkloadIdentityOutput, UpdatedA2aDescriptor, + UpdatedA2aDescriptorDict, UpdatedAgentSkillsDescriptor, + UpdatedAgentSkillsDescriptorDict, UpdatedAgentSkillsDescriptorFields, + UpdatedAgentSkillsDescriptorFieldsDict, UpdatedApprovalConfiguration, + UpdatedApprovalConfigurationDict, UpdatedAuthorizerConfiguration, + UpdatedAuthorizerConfigurationDict, UpdatedCustomDescriptor, + UpdatedCustomDescriptorDict, UpdatedDescription, + UpdatedDescriptionDict, UpdatedDescriptors, + UpdatedDescriptorsDict, UpdatedDescriptorsUnion, + UpdatedDescriptorsUnionDict, UpdatedHarnessEnvironmentArtifact, + UpdatedHarnessEnvironmentArtifactDict, UpdatedHarnessMemoryConfiguration, + UpdatedHarnessMemoryConfigurationDict, UpdatedMcpDescriptor, + UpdatedMcpDescriptorDict, UpdatedMcpDescriptorFields, + UpdatedMcpDescriptorFieldsDict, UpdatedServerDefinition, + UpdatedServerDefinitionDict, UpdatedSkillDefinition, + UpdatedSkillDefinitionDict, UpdatedSkillMdDefinition, + UpdatedSkillMdDefinitionDict, UpdatedSynchronizationConfiguration, + UpdatedSynchronizationConfigurationDict, UpdatedSynchronizationType, + UpdatedSynchronizationTypeDict, UpdatedToolsDefinition, + UpdatedToolsDefinitionDict, UserPreferenceConsolidationOverride, UserPreferenceExtractionOverride, UserPreferenceMemoryStrategyInput, + UserPreferenceMemoryStrategyInputDict, UserPreferenceOverrideConfigurationInput, + UserPreferenceOverrideConfigurationInputDict, UserPreferenceOverrideConsolidationConfigurationInput, + UserPreferenceOverrideConsolidationConfigurationInputDict, UserPreferenceOverrideExtractionConfigurationInput, + UserPreferenceOverrideExtractionConfigurationInputDict, + ValidationDict, ValidationExceptionField, VersionCreatedBySource, + VersionCreatedBySourceDict, VersionFilter, + VersionFilterDict, VersionLineageMetadata, + VolumeConfigurationDict, VpcConfig, + VpcConfigDict, VpcConfiguration, + VpcConfigurationDict, WafConfiguration, + WafConfigurationDict, WeightedOverride, + WeightedOverrideDict, WeightedRoute, + WeightedRouteDict, WorkloadIdentityDetails, WorkloadIdentityType, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -2119,3 +2641,2598 @@ WorkloadIdentityDetails(workload_identity_arn=_) WorkloadIdentityType(name=_, workload_identity_arn=_) Unit() +_params_0: A2aDescriptorDict = {} +_params_1: ActionDict = {"configuration_bundle": _} +_params_2: AddDatasetExamplesInputDict = {"dataset_id": _, "source": _} +_params_3: AgentCardDefinitionDict = {} +_params_4: AgentRuntimeArtifactDict = {"container_configuration": _} +_params_5: AgentSkillsDescriptorDict = {} +_params_6: AllowedPortDict = {"port": _} +_params_7: AllowedWorkloadConfigurationDict = {} +_params_8: ApiGatewayTargetConfigurationDict = { + "rest_api_id": _, + "stage": _, + "api_gateway_tool_configuration": _, +} +_params_9: ApiGatewayToolConfigurationDict = {"tool_filters": _} +_params_10: ApiGatewayToolFilterDict = {"filter_path": _, "methods": _} +_params_11: ApiGatewayToolOverrideDict = {"name": _, "path": _, "method": _} +_params_12: ApiSchemaConfigurationDict = {"s3": _} +_params_13: ApprovalConfigurationDict = {} +_params_14: AtlassianOauth2ProviderConfigInputDict = {"client_id": _} +_params_15: AuthorizerConfigurationDict = {"custom_jwt_authorizer": _} +_params_16: AuthorizingClaimMatchValueTypeDict = { + "claim_match_value": _, + "claim_match_operator": _, +} +_params_17: BatchPutGatewayRateLimitsInputDict = { + "gateway_identifier": _, + "rate_limits": _, +} +_params_18: BatchPutLimitEntryDict = {"dimension_keys": _, "entries": _} +_params_19: BedrockEvaluatorModelConfigDict = {"model_id": _} +_params_20: BrowserEnterprisePolicyDict = {"location": _} +_params_21: BrowserNetworkConfigurationDict = {} +_params_22: BrowserSigningConfigInputDict = {} +_params_23: BuildLifecycleHooksDict = {} +_params_24: CapacityProviderConfigurationDict = {"capacity_provider_arn": _} +_params_25: CapacityProviderVolumeConfigurationDict = { + "volume_name": _, + "mount_path": _, +} +_params_26: CapacityReservationSpecificationDict = {} +_params_27: CapacityReservationTargetDict = {} +_params_28: CategoricalScaleDefinitionDict = {"definition": _, "label": _} +_params_29: CedarPolicyDict = {"statement": _} +_params_30: CertificateDict = {"location": _} +_params_31: CertificateConfigurationDict = {"s3": _} +_params_32: CertificateLocationDict = {"secrets_manager": _} +_params_33: CircuitBreakerConfigurationDict = {} +_params_34: ClaimMatchValueTypeDict = {"match_value_string": _} +_params_35: CloudWatchLogsInputConfigDict = {"service_names": _} +_params_36: CloudWatchOutputConfigDict = {} +_params_37: ClusteringConfigDict = {"frequencies": _} +_params_38: CodeDict = {"s3": _} +_params_39: CodeBasedEvaluatorConfigDict = {"lambda_config": _} +_params_40: CodeConfigurationDict = {"code": _, "runtime": _, "entry_point": _} +_params_41: CodeInterpreterNetworkConfigurationDict = {} +_params_42: CoinbaseCdpConfigurationInputDict = {"api_key_id": _} +_params_43: CoinbaseCdpRotationTargetsDict = {"secrets": _} +_params_44: ComponentConfigurationDict = {"configuration": _} +_params_45: ComputeConfigurationDict = {"ec2_configuration": _} +_params_46: ConditionDict = {"match_principals": _} +_params_47: ConfigurationBundleActionDict = {"static_override": _} +_params_48: ConfigurationBundleReferenceDict = {"bundle_arn": _, "bundle_version": _} +_params_49: ConnectorConfigurationDict = {"name": _} +_params_50: ConnectorParameterOverrideDict = {"path": _} +_params_51: ConnectorSourceDict = {"connector_id": _} +_params_52: ConnectorTargetConfigurationDict = {"source": _} +_params_53: ConsentPortalIdpConfigDict = {"credential_provider_arn": _, "scopes": _} +_params_54: ConsentPortalSourceDict = {"identifier": _, "type": _} +_params_55: ContainerConfigurationDict = {"container_uri": _} +_params_56: ContentDict = {"raw_text": _} +_params_57: ContentConfigurationDict = {"type": _} +_params_58: CreateAgentRuntimeEndpointInputDict = {"agent_runtime_id": _, "name": _} +_params_59: CreateAgentRuntimeInputDict = { + "agent_runtime_name": _, + "agent_runtime_artifact": _, + "role_arn": _, +} +_params_60: CreateApiKeyCredentialProviderInputDict = {"name": _} +_params_61: CreateBrowserInputDict = {"name": _, "network_configuration": _} +_params_62: CreateBrowserProfileInputDict = {"name": _} +_params_63: CreateCapacityProviderInputDict = { + "name": _, + "permissions_configuration": _, + "compute_configuration": _, +} +_params_64: CreateCodeInterpreterInputDict = {"name": _, "network_configuration": _} +_params_65: CreateConfigurationBundleInputDict = {"bundle_name": _, "components": _} +_params_66: CreateConsentPortalInputDict = { + "execution_role_arn": _, + "idp_config": _, + "name": _, + "sources": _, +} +_params_67: CreateDatasetInputDict = {"dataset_name": _, "source": _, "schema_type": _} +_params_68: CreateDatasetVersionInputDict = {"dataset_id": _} +_params_69: CreateEvaluatorInputDict = { + "evaluator_name": _, + "evaluator_config": _, + "level": _, +} +_params_70: CreateGatewayInputDict = {"name": _, "role_arn": _, "authorizer_type": _} +_params_71: CreateGatewayRateLimitInputDict = { + "gateway_identifier": _, + "dimension_keys": _, + "entries": _, +} +_params_72: CreateGatewayRuleInputDict = { + "gateway_identifier": _, + "priority": _, + "actions": _, +} +_params_73: CreateGatewayTargetInputDict = { + "gateway_identifier": _, + "target_configuration": _, +} +_params_74: CreateHarnessEndpointInputDict = {"harness_id": _, "endpoint_name": _} +_params_75: CreateHarnessInputDict = {"harness_name": _, "execution_role_arn": _} +_params_76: CreateMemoryInputDict = {"name": _, "event_expiry_duration": _} +_params_77: CreateOauth2CredentialProviderInputDict = { + "name": _, + "credential_provider_vendor": _, + "oauth2_provider_config_input": _, +} +_params_78: CreateOnlineEvaluationConfigInputDict = { + "online_evaluation_config_name": _, + "rule": _, + "data_source_config": _, + "evaluation_execution_role_arn": _, + "enable_on_create": _, +} +_params_79: CreatePaymentConnectorInputDict = { + "payment_manager_id": _, + "name": _, + "type": _, + "credential_provider_configurations": _, +} +_params_80: CreatePaymentCredentialProviderInputDict = { + "name": _, + "credential_provider_vendor": _, + "provider_configuration_input": _, +} +_params_81: CreatePaymentManagerInputDict = { + "name": _, + "authorizer_type": _, + "role_arn": _, +} +_params_82: CreatePolicyEngineInputDict = {"name": _} +_params_83: CreatePolicyInputDict = {"name": _, "definition": _, "policy_engine_id": _} +_params_84: CreateRegistryInputDict = {"name": _} +_params_85: CreateRegistryRecordInputDict = { + "registry_id": _, + "name": _, + "descriptor_type": _, +} +_params_86: CreateWorkloadIdentityInputDict = {"name": _} +_params_87: CredentialProviderDict = {"oauth_credential_provider": _} +_params_88: CredentialProviderConfigurationDict = {"credential_provider_type": _} +_params_89: CredentialRotationConfigDict = {"coinbase_cdp": _} +_params_90: CredentialsProviderConfigurationDict = {"coinbase_cdp": _} +_params_91: CustomClaimValidationTypeDict = { + "inbound_token_claim_name": _, + "inbound_token_claim_value_type": _, + "authorizing_claim_match_value": _, +} +_params_92: CustomConfigurationInputDict = {"semantic_override": _} +_params_93: CustomConsolidationConfigurationInputDict = { + "semantic_consolidation_override": _ +} +_params_94: CustomDescriptorDict = {} +_params_95: CustomExtractionConfigurationInputDict = {"semantic_extraction_override": _} +_params_96: CustomJWTAuthorizerConfigurationDict = {"discovery_url": _} +_params_97: CustomMemoryStrategyInputDict = {"name": _} +_params_98: CustomOauth2ProviderConfigInputDict = {"oauth_discovery": _} +_params_99: CustomReflectionConfigurationInputDict = {"episodic_reflection_override": _} +_params_100: CustomTransformConfigurationDict = {} +_params_101: DataSourceConfigDict = {"cloud_watch_logs": _} +_params_102: DataSourceTypeDict = {"inline_examples": _} +_params_103: DeleteAgentRuntimeEndpointInputDict = { + "agent_runtime_id": _, + "endpoint_name": _, +} +_params_104: DeleteAgentRuntimeInputDict = {"agent_runtime_id": _} +_params_105: DeleteApiKeyCredentialProviderInputDict = {"name": _} +_params_106: DeleteBrowserInputDict = {"browser_id": _} +_params_107: DeleteBrowserProfileInputDict = {"profile_id": _} +_params_108: DeleteCapacityProviderInputDict = {"capacity_provider_id": _} +_params_109: DeleteCodeInterpreterInputDict = {"code_interpreter_id": _} +_params_110: DeleteConfigurationBundleInputDict = {"bundle_id": _} +_params_111: DeleteConsentPortalInputDict = {"consent_portal_identifier": _} +_params_112: DeleteDatasetExamplesInputDict = {"dataset_id": _, "example_ids": _} +_params_113: DeleteDatasetInputDict = {"dataset_id": _} +_params_114: DeleteEvaluatorInputDict = {"evaluator_id": _} +_params_115: DeleteGatewayInputDict = {"gateway_identifier": _} +_params_116: DeleteGatewayRateLimitInputDict = { + "gateway_identifier": _, + "rate_limit_id": _, +} +_params_117: DeleteGatewayRuleInputDict = {"gateway_identifier": _, "rule_id": _} +_params_118: DeleteGatewayTargetInputDict = {"gateway_identifier": _, "target_id": _} +_params_119: DeleteHarnessEndpointInputDict = {"harness_id": _, "endpoint_name": _} +_params_120: DeleteHarnessInputDict = {"harness_id": _} +_params_121: DeleteMemoryInputDict = {"memory_id": _} +_params_122: DeleteMemoryStrategyInputDict = {"memory_strategy_id": _} +_params_123: DeleteOauth2CredentialProviderInputDict = {"name": _} +_params_124: DeleteOnlineEvaluationConfigInputDict = {"online_evaluation_config_id": _} +_params_125: DeletePaymentConnectorInputDict = { + "payment_manager_id": _, + "payment_connector_id": _, +} +_params_126: DeletePaymentCredentialProviderInputDict = {"name": _} +_params_127: DeletePaymentManagerInputDict = {"payment_manager_id": _} +_params_128: DeletePolicyEngineInputDict = {"policy_engine_id": _} +_params_129: DeletePolicyInputDict = {"policy_engine_id": _, "policy_id": _} +_params_130: DeleteRegistryInputDict = {"registry_id": _} +_params_131: DeleteRegistryRecordInputDict = {"registry_id": _, "record_id": _} +_params_132: DeleteResourcePolicyInputDict = {"resource_arn": _} +_params_133: DeleteWorkloadIdentityInputDict = {"name": _} +_params_134: DerivedEvaluatorConfigDict = {"base_evaluator_id": _, "model_config": _} +_params_135: DescriptorsDict = {} +_params_136: DimensionRatingScaleDict = {"numerical": _} +_params_137: DomainOverrideDict = {"default_domain": _} +_params_138: EbsVolumeConfigurationDict = {"name": _, "size_gi_b": _} +_params_139: Ec2ConfigurationDict = { + "launch_template_source": _, + "vpc_configuration": _, +} +_params_140: EfsAccessPointConfigurationDict = {"access_point_arn": _, "mount_path": _} +_params_141: EfsConfigurationDict = { + "access_point_arn": _, + "mount_path": _, + "file_system_arn": _, +} +_params_142: EphemeralBlockDeviceMappingDict = {} +_params_143: EphemeralEBSVolumeConfigurationDict = {} +_params_144: EpisodicMemoryStrategyInputDict = {"name": _} +_params_145: EpisodicOverrideConfigurationInputDict = {} +_params_146: EpisodicOverrideConsolidationConfigurationInputDict = { + "append_to_prompt": _, + "model_id": _, +} +_params_147: EpisodicOverrideExtractionConfigurationInputDict = { + "append_to_prompt": _, + "model_id": _, +} +_params_148: EpisodicOverrideReflectionConfigurationInputDict = { + "append_to_prompt": _, + "model_id": _, +} +_params_149: EpisodicReflectionConfigurationInputDict = {} +_params_150: EvaluationDimensionDict = { + "dimension_name": _, + "dimension_instruction": _, + "dimension_rating_scale": _, +} +_params_151: EvaluatorConfigDict = {"llm_as_a_judge": _} +_params_152: EvaluatorModelConfigDict = {"bedrock_evaluator_model_config": _} +_params_153: EvaluatorReferenceDict = {"evaluator_id": _} +_params_154: ExtractionConfigDict = {"llm_extraction_config": _} +_params_155: FallbackDict = {"target_fallback": _} +_params_156: FallbackTargetDict = {"target_name": _} +_params_157: FallbackTriggersDict = {} +_params_158: FilesystemConfigurationDict = {"session_storage": _} +_params_159: FilterDict = {"key": _, "operator": _, "value": _} +_params_160: FilterValueDict = {"string_value": _} +_params_161: FromUrlSynchronizationConfigurationDict = {"url": _} +_params_162: GatewayApiKeyCredentialProviderDict = {"provider_arn": _} +_params_163: GatewayInterceptorConfigurationDict = { + "interceptor": _, + "interception_points": _, +} +_params_164: GatewayPolicyEngineConfigurationDict = {"arn": _, "mode": _} +_params_165: GatewayProtocolConfigurationDict = {"mcp": _} +_params_166: GetAgentRuntimeEndpointInputDict = { + "agent_runtime_id": _, + "endpoint_name": _, +} +_params_167: GetAgentRuntimeInputDict = {"agent_runtime_id": _} +_params_168: GetApiKeyCredentialProviderInputDict = {"name": _} +_params_169: GetBrowserInputDict = {"browser_id": _} +_params_170: GetBrowserProfileInputDict = {"profile_id": _} +_params_171: GetCapacityProviderInputDict = {"capacity_provider_id": _} +_params_172: GetCodeInterpreterInputDict = {"code_interpreter_id": _} +_params_173: GetConfigurationBundleInputDict = {"bundle_id": _} +_params_174: GetConfigurationBundleVersionInputDict = {"bundle_id": _, "version_id": _} +_params_175: GetConsentPortalInputDict = {"consent_portal_identifier": _} +_params_176: GetDatasetInputDict = {"dataset_id": _} +_params_177: GetEvaluatorInputDict = {"evaluator_id": _} +_params_178: GetGatewayInputDict = {"gateway_identifier": _} +_params_179: GetGatewayRateLimitInputDict = { + "gateway_identifier": _, + "rate_limit_id": _, +} +_params_180: GetGatewayRuleInputDict = {"gateway_identifier": _, "rule_id": _} +_params_181: GetGatewayTargetInputDict = {"gateway_identifier": _, "target_id": _} +_params_182: GetHarnessEndpointInputDict = {"harness_id": _, "endpoint_name": _} +_params_183: GetHarnessInputDict = {"harness_id": _} +_params_184: GetMemoryInputDict = {"memory_id": _} +_params_185: GetOauth2CredentialProviderInputDict = {"name": _} +_params_186: GetOnlineEvaluationConfigInputDict = {"online_evaluation_config_id": _} +_params_187: GetPaymentConnectorInputDict = { + "payment_manager_id": _, + "payment_connector_id": _, +} +_params_188: GetPaymentCredentialProviderInputDict = {"name": _} +_params_189: GetPaymentManagerInputDict = {"payment_manager_id": _} +_params_190: GetPolicyEngineInputDict = {"policy_engine_id": _} +_params_191: GetPolicyEngineSummaryInputDict = {"policy_engine_id": _} +_params_192: GetPolicyGenerationInputDict = { + "policy_generation_id": _, + "policy_engine_id": _, +} +_params_193: GetPolicyGenerationSummaryInputDict = { + "policy_generation_id": _, + "policy_engine_id": _, +} +_params_194: GetPolicyInputDict = {"policy_engine_id": _, "policy_id": _} +_params_195: GetPolicySummaryInputDict = {"policy_engine_id": _, "policy_id": _} +_params_196: GetRegistryInputDict = {"registry_id": _} +_params_197: GetRegistryRecordInputDict = {"registry_id": _, "record_id": _} +_params_198: GetResourcePolicyInputDict = {"resource_arn": _} +_params_199: GetTokenVaultInputDict = {} +_params_200: GetWorkloadIdentityInputDict = {"name": _} +_params_201: GithubOauth2ProviderConfigInputDict = {"client_id": _} +_params_202: GoogleOauth2ProviderConfigInputDict = {"client_id": _} +_params_203: HarnessAfterInvocationHookDict = {"name": _, "target": _} +_params_204: HarnessAfterToolCallHookDict = {"name": _, "target": _} +_params_205: HarnessAgentCoreBrowserConfigDict = {} +_params_206: HarnessAgentCoreCodeInterpreterConfigDict = {} +_params_207: HarnessAgentCoreGatewayConfigDict = {"gateway_arn": _} +_params_208: HarnessAgentCoreMemoryConfigurationDict = {"arn": _} +_params_209: HarnessAgentCoreMemoryRetrievalConfigDict = {} +_params_210: HarnessAgentCoreRuntimeEnvironmentRequestDict = {} +_params_211: HarnessBedrockModelConfigDict = {"model_id": _} +_params_212: HarnessBeforeInvocationHookDict = {"name": _, "target": _} +_params_213: HarnessBeforeToolCallHookDict = {"name": _, "target": _} +_params_214: HarnessDisabledMemoryConfigurationDict = {} +_params_215: HarnessEnvironmentArtifactDict = {"container_configuration": _} +_params_216: HarnessEnvironmentProviderRequestDict = { + "agent_core_runtime_environment": _ +} +_params_217: HarnessGatewayOutboundAuthDict = {"aws_iam": _} +_params_218: HarnessGeminiModelConfigDict = {"model_id": _, "api_key_arn": _} +_params_219: HarnessHookDict = {"before_invocation": _} +_params_220: HarnessHookEventBridgeTargetDict = {"arn": _} +_params_221: HarnessHookLambdaTargetDict = {"arn": _} +_params_222: HarnessHookSnsTargetDict = {"arn": _} +_params_223: HarnessHookTargetDict = {"lambda_": _} +_params_224: HarnessInlineFunctionConfigDict = {"description": _, "input_schema": _} +_params_225: HarnessLiteLlmModelConfigDict = {"model_id": _} +_params_226: HarnessManagedMemoryConfigurationDict = {} +_params_227: HarnessMemoryConfigurationDict = {"agent_core_memory_configuration": _} +_params_228: HarnessModelConfigurationDict = {"bedrock_model_config": _} +_params_229: HarnessOpenAiModelConfigDict = {"model_id": _, "api_key_arn": _} +_params_230: HarnessRemoteMcpConfigDict = {"url": _} +_params_231: HarnessRemoteMcpOutboundAuthDict = {"aws_iam": _} +_params_232: HarnessSkillDict = {"path": _} +_params_233: HarnessSkillAwsSkillsSourceDict = {} +_params_234: HarnessSkillGitAuthDict = {"credential_arn": _} +_params_235: HarnessSkillGitSourceDict = {"url": _} +_params_236: HarnessSkillS3SourceDict = {"uri": _} +_params_237: HarnessSlidingWindowConfigurationDict = {} +_params_238: HarnessSummarizationConfigurationDict = {} +_params_239: HarnessSystemContentBlockDict = {"text": _} +_params_240: HarnessToolDict = {"type": _} +_params_241: HarnessToolConfigurationDict = {"remote_mcp": _} +_params_242: HarnessTruncationConfigurationDict = {"strategy": _} +_params_243: HarnessTruncationStrategyConfigurationDict = {"sliding_window": _} +_params_244: HostingEnvironmentDict = {"arn": _} +_params_245: HttpApiSchemaConfigurationDict = {"source": _} +_params_246: HttpConnectorSourceDict = {"connector_id": _} +_params_247: HttpConnectorTargetConfigurationDict = {"source": _} +_params_248: HttpPostLifecycleHookActionDict = {"path": _} +_params_249: HttpTargetConfigurationDict = {"agentcore_runtime": _} +_params_250: IamCredentialProviderDict = {"service": _} +_params_251: IamPrincipalDict = {"arn": _} +_params_252: IncludedOauth2ProviderConfigInputDict = {"client_id": _} +_params_253: IndexedKeyDict = {"key": _, "type": _} +_params_254: InferenceConfigurationDict = {} +_params_255: InferenceConnectorSourceDict = {"connector_id": _} +_params_256: InferenceConnectorTargetConfigurationDict = {"source": _} +_params_257: InferenceOperationConfigurationDict = {"path": _} +_params_258: InferenceProviderTargetConfigurationDict = {"endpoint": _} +_params_259: InferenceTargetConfigurationDict = {"connector": _} +_params_260: InlineExamplesSourceDict = {"examples": _} +_params_261: InsightDict = {"insight_id": _} +_params_262: InstanceLifecycleConfigurationDict = {} +_params_263: InstanceRequirementsDict = {"allowed_instance_types": _} +_params_264: InterceptorConfigurationDict = {"lambda_": _} +_params_265: InterceptorInputConfigurationDict = {"pass_request_headers": _} +_params_266: InterceptorPayloadExclusionSelectorDict = {"field": _} +_params_267: InterceptorPayloadFilterDict = {"exclude": _} +_params_268: InvocationConfigurationInputDict = { + "topic_arn": _, + "payload_delivery_bucket_name": _, +} +_params_269: KinesisResourceDict = {"data_stream_arn": _, "content_configurations": _} +_params_270: KmsConfigurationDict = {"key_type": _} +_params_271: KmsKeySourceTypeDict = {"kms_key_arn": _} +_params_272: LambdaEvaluatorConfigDict = {"lambda_arn": _} +_params_273: LambdaInterceptorConfigurationDict = {"arn": _} +_params_274: LambdaTransformConfigurationDict = {} +_params_275: LaunchParametersDict = {"operating_system": _, "instance_requirements": _} +_params_276: LaunchTemplateSourceDict = {"launch_parameters": _} +_params_277: LicenseSpecificationDict = {"license_configuration_arn": _} +_params_278: LifecycleConfigurationDict = {} +_params_279: LifecycleHookDict = {"action": _} +_params_280: LifecycleHookActionDict = {"http_post": _} +_params_281: LimitEntryDict = {"dimensions": _} +_params_282: LinkedinOauth2ProviderConfigInputDict = {"client_id": _} +_params_283: ListAgentRuntimeEndpointsInputDict = {"agent_runtime_id": _} +_params_284: ListAgentRuntimesInputDict = {} +_params_285: ListAgentRuntimeVersionsByCapacityProviderInputDict = { + "capacity_provider_id": _ +} +_params_286: ListAgentRuntimeVersionsInputDict = {"agent_runtime_id": _} +_params_287: ListApiKeyCredentialProvidersInputDict = {} +_params_288: ListBrowserProfilesInputDict = {} +_params_289: ListBrowsersInputDict = {} +_params_290: ListCapacityProvidersInputDict = {} +_params_291: ListCodeInterpretersInputDict = {} +_params_292: ListConfigurationBundlesInputDict = {} +_params_293: ListConfigurationBundleVersionsInputDict = {"bundle_id": _} +_params_294: ListConsentPortalsInputDict = {} +_params_295: ListDatasetExamplesInputDict = {"dataset_id": _} +_params_296: ListDatasetsInputDict = {} +_params_297: ListDatasetVersionsInputDict = {"dataset_id": _} +_params_298: ListEvaluatorsInputDict = {} +_params_299: ListGatewayRateLimitsInputDict = {"gateway_identifier": _} +_params_300: ListGatewayRulesInputDict = {"gateway_identifier": _} +_params_301: ListGatewaysInputDict = {} +_params_302: ListGatewayTargetsInputDict = {"gateway_identifier": _} +_params_303: ListHarnessEndpointsInputDict = {"harness_id": _} +_params_304: ListHarnessesInputDict = {} +_params_305: ListHarnessVersionsInputDict = {"harness_id": _} +_params_306: ListMemoriesInputDict = {} +_params_307: ListOauth2CredentialProvidersInputDict = {} +_params_308: ListOnlineEvaluationConfigsInputDict = {} +_params_309: ListPaymentConnectorsInputDict = {"payment_manager_id": _} +_params_310: ListPaymentCredentialProvidersInputDict = {} +_params_311: ListPaymentManagersInputDict = {} +_params_312: ListPoliciesInputDict = {"policy_engine_id": _} +_params_313: ListPolicyEnginesInputDict = {} +_params_314: ListPolicyEngineSummariesInputDict = {} +_params_315: ListPolicyGenerationAssetsInputDict = { + "policy_generation_id": _, + "policy_engine_id": _, +} +_params_316: ListPolicyGenerationsInputDict = {"policy_engine_id": _} +_params_317: ListPolicyGenerationSummariesInputDict = {"policy_engine_id": _} +_params_318: ListPolicySummariesInputDict = {"policy_engine_id": _} +_params_319: ListRegistriesInputDict = {} +_params_320: ListRegistryRecordsInputDict = {"registry_id": _} +_params_321: ListTagsForResourceInputDict = {"resource_arn": _} +_params_322: ListWorkloadIdentitiesInputDict = {} +_params_323: LlmAsAJudgeEvaluatorConfigDict = { + "instructions": _, + "rating_scale": _, + "model_config": _, +} +_params_324: LlmExtractionConfigDict = {"definition": _} +_params_325: ManagedVpcResourceDict = { + "vpc_identifier": _, + "subnet_ids": _, + "endpoint_ip_address_type": _, +} +_params_326: MatchModelEntryDict = {"value": _} +_params_327: MatchModelsDict = {"any_of": _} +_params_328: MatchPathsDict = {"any_of": _} +_params_329: MatchPrincipalEntryDict = {"iam_principal": _} +_params_330: MatchPrincipalsDict = {"any_of": _} +_params_331: McpDescriptorDict = {} +_params_332: MCPGatewayConfigurationDict = {} +_params_333: McpLambdaTargetConfigurationDict = {"lambda_arn": _, "tool_schema": _} +_params_334: McpServerTargetConfigurationDict = {"endpoint": _} +_params_335: McpTargetConfigurationDict = {"open_api_schema": _} +_params_336: McpToolSchemaConfigurationDict = {"s3": _} +_params_337: MemoryRecordSchemaDict = {} +_params_338: MemoryStrategyInputDict = {"semantic_memory_strategy": _} +_params_339: MessageBasedTriggerInputDict = {} +_params_340: MetadataConfigurationDict = {} +_params_341: MetadataSchemaEntryDict = {"key": _} +_params_342: MicrosoftOauth2ProviderConfigInputDict = {"client_id": _} +_params_343: ModelEntryDict = {"model": _} +_params_344: ModelMappingDict = {} +_params_345: ModifyConsolidationConfigurationDict = { + "custom_consolidation_configuration": _ +} +_params_346: ModifyExtractionConfigurationDict = {"custom_extraction_configuration": _} +_params_347: ModifyInvocationConfigurationInputDict = {} +_params_348: ModifyMemoryStrategiesDict = {} +_params_349: ModifyMemoryStrategyInputDict = {"memory_strategy_id": _} +_params_350: ModifyReflectionConfigurationDict = { + "episodic_reflection_configuration": _ +} +_params_351: ModifySelfManagedConfigurationDict = {} +_params_352: ModifyStrategyConfigurationDict = {} +_params_353: NamespaceKeyEntryDict = {"key": _} +_params_354: NamespaceKeyValidationDict = {} +_params_355: NetworkConfigurationDict = {"network_mode": _} +_params_356: NumberValidationDict = {} +_params_357: NumericalScaleDefinitionDict = {"definition": _, "value": _, "label": _} +_params_358: Oauth2AuthorizationServerMetadataDict = { + "issuer": _, + "authorization_endpoint": _, + "token_endpoint": _, +} +_params_359: Oauth2DiscoveryDict = {"discovery_url": _} +_params_360: Oauth2ProviderConfigInputDict = {"custom_oauth2_provider_config": _} +_params_361: OAuthCredentialProviderDict = {"provider_arn": _, "scopes": _} +_params_362: OnBehalfOfAuthenticationConfigDict = {"client_authentication_method": _} +_params_363: OnBehalfOfTokenExchangeConfigTypeDict = {"grant_type": _} +_params_364: OpenResponsesEvaluatorModelConfigDict = {"model_id": _} +_params_365: OutputConfigDict = {"cloud_watch_config": _} +_params_366: PassthroughTargetConfigurationDict = {"endpoint": _, "protocol_type": _} +_params_367: PaymentCredentialProviderConfigurationDict = {"credential_provider_arn": _} +_params_368: PaymentProviderConfigurationInputDict = {"coinbase_cdp_configuration": _} +_params_369: PermissionsConfigurationDict = {"capacity_provider_operator_role_arn": _} +_params_370: PolicyDefinitionDict = {"cedar": _} +_params_371: PolicyGenerationDetailsDict = { + "policy_generation_id": _, + "policy_generation_asset_id": _, +} +_params_372: PolicyStatementDict = {"statement": _} +_params_373: PortRangeDict = {"from_": _, "to": _} +_params_374: PrivateEndpointDict = {"self_managed_lattice_resource": _} +_params_375: PrivateEndpointOverrideDict = {"domain": _, "private_endpoint": _} +_params_376: PrivateKeyJwtConfigDict = {} +_params_377: PrivateKeySourceDict = {"kms_key_source": _} +_params_378: ProtocolConfigurationDict = {"server_protocol": _} +_params_379: ProviderPrefixDict = {} +_params_380: PutResourcePolicyInputDict = {"resource_arn": _, "policy": _} +_params_381: RateConfigDict = {"rate": _, "period": _} +_params_382: RatingScaleDict = {"numerical": _} +_params_383: ReasoningConfigurationDict = {} +_params_384: RecordExpirySpecificationDict = {"record_expiry_duration_days": _} +_params_385: RecordingConfigDict = {} +_params_386: RegistryRecordCredentialProviderConfigurationDict = { + "credential_provider_type": _, + "credential_provider": _, +} +_params_387: RegistryRecordCredentialProviderUnionDict = { + "oauth_credential_provider": _ +} +_params_388: RegistryRecordIamCredentialProviderDict = {} +_params_389: RegistryRecordOAuthCredentialProviderDict = {"provider_arn": _} +_params_390: RequestHeaderConfigurationDict = {"request_header_allowlist": _} +_params_391: ResetTokenVaultKeyMaterialInputDict = {"token_vault_id": _} +_params_392: ResourceDict = {"arn": _} +_params_393: ResourceConfigurationDict = {"minimum_memory_in_mi_b": _} +_params_394: ResourceLocationDict = {"s3": _} +_params_395: RootVolumeConfigurationDict = {} +_params_396: RotatePaymentConnectorCredentialsInputDict = { + "payment_manager_id": _, + "payment_connector_id": _, + "credentials_to_rotate": _, +} +_params_397: RouteToTargetActionDict = {"static_route": _} +_params_398: RuleDict = {"sampling_config": _} +_params_399: RuntimeHooksConfigurationDict = {} +_params_400: RuntimeMetadataConfigurationDict = {"require_mmdsv2": _} +_params_401: RuntimeTargetConfigurationDict = {"arn": _} +_params_402: S3CertificateConfigurationDict = {"uri": _} +_params_403: S3ConfigurationDict = {} +_params_404: S3FilesAccessPointConfigurationDict = { + "access_point_arn": _, + "mount_path": _, +} +_params_405: S3FilesConfigurationDict = { + "access_point_arn": _, + "mount_path": _, + "file_system_arn": _, +} +_params_406: S3LocationDict = {"bucket": _, "prefix": _} +_params_407: S3SourceDict = {"s3_uri": _} +_params_408: SalesforceOauth2ProviderConfigInputDict = {"client_id": _} +_params_409: SamplingConfigDict = {"sampling_percentage": _} +_params_410: SchemaDefinitionDict = {"type": _} +_params_411: SecretReferenceDict = {"secret_id": _, "json_key": _} +_params_412: SecretsManagerCertificateConfigurationDict = {"secret_arn": _} +_params_413: SecretsManagerLocationDict = {"secret_arn": _} +_params_414: SelfManagedConfigurationInputDict = {"invocation_configuration": _} +_params_415: SelfManagedLatticeResourceDict = {"resource_configuration_identifier": _} +_params_416: SemanticMemoryStrategyInputDict = {"name": _} +_params_417: SemanticOverrideConfigurationInputDict = {} +_params_418: SemanticOverrideConsolidationConfigurationInputDict = { + "append_to_prompt": _, + "model_id": _, +} +_params_419: SemanticOverrideExtractionConfigurationInputDict = { + "append_to_prompt": _, + "model_id": _, +} +_params_420: ServerDefinitionDict = {} +_params_421: SessionConfigDict = {"session_timeout_minutes": _} +_params_422: SessionConfigurationDict = {} +_params_423: SessionStorageConfigurationDict = {"mount_path": _} +_params_424: SetTokenVaultCMKInputDict = {"kms_configuration": _} +_params_425: SkillDefinitionDict = {} +_params_426: SkillMdDefinitionDict = {} +_params_427: SlackOauth2ProviderConfigInputDict = {"client_id": _} +_params_428: StartPolicyGenerationInputDict = { + "policy_engine_id": _, + "resource": _, + "content": _, + "name": _, +} +_params_429: StaticOverrideDict = {"bundle_arn": _, "bundle_version": _} +_params_430: StaticRouteDict = {"target_name": _} +_params_431: StickinessConfigurationDict = {"identifier": _} +_params_432: StreamDeliveryResourceDict = {"kinesis": _} +_params_433: StreamDeliveryResourcesDict = {"resources": _} +_params_434: StreamingConfigurationDict = {} +_params_435: StringListValidationDict = {} +_params_436: StringValidationDict = {"allowed_values": _} +_params_437: StripePrivyConfigurationInputDict = {"app_id": _, "authorization_id": _} +_params_438: SubmitRegistryRecordForApprovalInputDict = { + "registry_id": _, + "record_id": _, +} +_params_439: SummaryMemoryStrategyInputDict = {"name": _} +_params_440: SummaryOverrideConfigurationInputDict = {} +_params_441: SummaryOverrideConsolidationConfigurationInputDict = { + "append_to_prompt": _, + "model_id": _, +} +_params_442: SynchronizationConfigurationDict = {} +_params_443: SynchronizeGatewayTargetsInputDict = { + "gateway_identifier": _, + "target_id_list": _, +} +_params_444: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_445: TargetConfigurationDict = {"mcp": _} +_params_446: TargetTrafficSplitEntryDict = {"target_name": _, "name": _, "weight": _} +_params_447: TimeBasedTriggerInputDict = {} +_params_448: TokenBasedTriggerInputDict = {} +_params_449: TokenExchangeGrantTypeConfigTypeDict = {"actor_token_content": _} +_params_450: ToolDefinitionDict = {"name": _, "description": _, "input_schema": _} +_params_451: ToolSchemaDict = {"s3": _} +_params_452: ToolsDefinitionDict = {} +_params_453: ToolsFileSystemConfigurationDict = {"s3_files_configuration": _} +_params_454: TrafficSplitEntryDict = {"name": _, "weight": _, "configuration_bundle": _} +_params_455: TriggerConditionInputDict = {"message_based_trigger": _} +_params_456: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_457: UpdateAgentRuntimeEndpointInputDict = { + "agent_runtime_id": _, + "endpoint_name": _, +} +_params_458: UpdateAgentRuntimeInputDict = { + "agent_runtime_id": _, + "agent_runtime_artifact": _, + "role_arn": _, +} +_params_459: UpdateApiKeyCredentialProviderInputDict = {"name": _} +_params_460: UpdateCapacityProviderInputDict = {"capacity_provider_id": _} +_params_461: UpdateConfigurationBundleInputDict = { + "bundle_id": _, + "parent_version_ids": _, + "commit_message": _, +} +_params_462: UpdateConsentPortalInputDict = {"consent_portal_identifier": _} +_params_463: UpdatedA2aDescriptorDict = {} +_params_464: UpdatedAgentSkillsDescriptorDict = {} +_params_465: UpdatedAgentSkillsDescriptorFieldsDict = {} +_params_466: UpdatedApprovalConfigurationDict = {} +_params_467: UpdateDatasetExamplesInputDict = {"dataset_id": _, "examples": _} +_params_468: UpdateDatasetInputDict = {"dataset_id": _} +_params_469: UpdatedAuthorizerConfigurationDict = {} +_params_470: UpdatedCustomDescriptorDict = {} +_params_471: UpdatedDescriptionDict = {} +_params_472: UpdatedDescriptorsDict = {} +_params_473: UpdatedDescriptorsUnionDict = {} +_params_474: UpdatedHarnessEnvironmentArtifactDict = {} +_params_475: UpdatedHarnessMemoryConfigurationDict = {} +_params_476: UpdatedMcpDescriptorDict = {} +_params_477: UpdatedMcpDescriptorFieldsDict = {} +_params_478: UpdatedServerDefinitionDict = {} +_params_479: UpdatedSkillDefinitionDict = {} +_params_480: UpdatedSkillMdDefinitionDict = {} +_params_481: UpdatedSynchronizationConfigurationDict = {} +_params_482: UpdatedSynchronizationTypeDict = {} +_params_483: UpdatedToolsDefinitionDict = {} +_params_484: UpdateEvaluatorInputDict = {"evaluator_id": _} +_params_485: UpdateGatewayInputDict = { + "gateway_identifier": _, + "name": _, + "role_arn": _, + "authorizer_type": _, +} +_params_486: UpdateGatewayRateLimitInputDict = { + "gateway_identifier": _, + "rate_limit_id": _, + "entries": _, +} +_params_487: UpdateGatewayRuleInputDict = {"gateway_identifier": _, "rule_id": _} +_params_488: UpdateGatewayTargetInputDict = { + "gateway_identifier": _, + "target_id": _, + "target_configuration": _, +} +_params_489: UpdateHarnessEndpointInputDict = {"harness_id": _, "endpoint_name": _} +_params_490: UpdateHarnessInputDict = {"harness_id": _} +_params_491: UpdateMemoryInputDict = {"memory_id": _} +_params_492: UpdateOauth2CredentialProviderInputDict = { + "name": _, + "credential_provider_vendor": _, + "oauth2_provider_config_input": _, +} +_params_493: UpdateOnlineEvaluationConfigInputDict = {"online_evaluation_config_id": _} +_params_494: UpdatePaymentConnectorInputDict = { + "payment_manager_id": _, + "payment_connector_id": _, +} +_params_495: UpdatePaymentCredentialProviderInputDict = { + "name": _, + "credential_provider_vendor": _, + "provider_configuration_input": _, +} +_params_496: UpdatePaymentManagerInputDict = {"payment_manager_id": _} +_params_497: UpdatePolicyEngineInputDict = {"policy_engine_id": _} +_params_498: UpdatePolicyInputDict = {"policy_engine_id": _, "policy_id": _} +_params_499: UpdateRegistryInputDict = {"registry_id": _} +_params_500: UpdateRegistryRecordInputDict = {"registry_id": _, "record_id": _} +_params_501: UpdateRegistryRecordStatusInputDict = { + "registry_id": _, + "record_id": _, + "status": _, + "status_reason": _, +} +_params_502: UpdateWorkloadIdentityInputDict = {"name": _} +_params_503: UserPreferenceMemoryStrategyInputDict = {"name": _} +_params_504: UserPreferenceOverrideConfigurationInputDict = {} +_params_505: UserPreferenceOverrideConsolidationConfigurationInputDict = { + "append_to_prompt": _, + "model_id": _, +} +_params_506: UserPreferenceOverrideExtractionConfigurationInputDict = { + "append_to_prompt": _, + "model_id": _, +} +_params_507: ValidationDict = {"string_validation": _} +_params_508: VersionCreatedBySourceDict = {"name": _} +_params_509: VersionFilterDict = {} +_params_510: VolumeConfigurationDict = {"ebs_configuration": _} +_params_511: VpcConfigDict = {"security_groups": _, "subnets": _} +_params_512: VpcConfigurationDict = {"subnets": _, "security_groups": _} +_params_513: WafConfigurationDict = {} +_params_514: WeightedOverrideDict = {"traffic_split": _} +_params_515: WeightedRouteDict = {"traffic_split": _} +_params_516: UnitDict = {} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncBedrockAgentCoreControlClient) -> None: + pass + await client.add_dataset_examples(dataset_id=_, source=_) + await client.add_dataset_examples(**_request(AddDatasetExamplesInputDict)) + await client.add_dataset_examples(_request(AddDatasetExamplesInput)) + await client.add_dataset_examples(_request(AddDatasetExamplesInputDict)) + await client.batch_put_gateway_rate_limits(gateway_identifier=_, rate_limits=_) + await client.batch_put_gateway_rate_limits( + **_request(BatchPutGatewayRateLimitsInputDict) + ) + await client.batch_put_gateway_rate_limits(_request(BatchPutGatewayRateLimitsInput)) + await client.batch_put_gateway_rate_limits( + _request(BatchPutGatewayRateLimitsInputDict) + ) + await client.create_agent_runtime( + agent_runtime_name=_, agent_runtime_artifact=_, role_arn=_ + ) + await client.create_agent_runtime(**_request(CreateAgentRuntimeInputDict)) + await client.create_agent_runtime(_request(CreateAgentRuntimeInput)) + await client.create_agent_runtime(_request(CreateAgentRuntimeInputDict)) + await client.create_agent_runtime_endpoint(agent_runtime_id=_, name=_) + await client.create_agent_runtime_endpoint( + **_request(CreateAgentRuntimeEndpointInputDict) + ) + await client.create_agent_runtime_endpoint( + _request(CreateAgentRuntimeEndpointInput) + ) + await client.create_agent_runtime_endpoint( + _request(CreateAgentRuntimeEndpointInputDict) + ) + await client.create_api_key_credential_provider(name=_) + await client.create_api_key_credential_provider( + **_request(CreateApiKeyCredentialProviderInputDict) + ) + await client.create_api_key_credential_provider( + _request(CreateApiKeyCredentialProviderInput) + ) + await client.create_api_key_credential_provider( + _request(CreateApiKeyCredentialProviderInputDict) + ) + await client.create_browser(name=_, network_configuration=_) + await client.create_browser(**_request(CreateBrowserInputDict)) + await client.create_browser(_request(CreateBrowserInput)) + await client.create_browser(_request(CreateBrowserInputDict)) + await client.create_browser_profile(name=_) + await client.create_browser_profile(**_request(CreateBrowserProfileInputDict)) + await client.create_browser_profile(_request(CreateBrowserProfileInput)) + await client.create_browser_profile(_request(CreateBrowserProfileInputDict)) + await client.create_capacity_provider( + name=_, permissions_configuration=_, compute_configuration=_ + ) + await client.create_capacity_provider(**_request(CreateCapacityProviderInputDict)) + await client.create_capacity_provider(_request(CreateCapacityProviderInput)) + await client.create_capacity_provider(_request(CreateCapacityProviderInputDict)) + await client.create_code_interpreter(name=_, network_configuration=_) + await client.create_code_interpreter(**_request(CreateCodeInterpreterInputDict)) + await client.create_code_interpreter(_request(CreateCodeInterpreterInput)) + await client.create_code_interpreter(_request(CreateCodeInterpreterInputDict)) + await client.create_configuration_bundle(bundle_name=_, components=_) + await client.create_configuration_bundle( + **_request(CreateConfigurationBundleInputDict) + ) + await client.create_configuration_bundle(_request(CreateConfigurationBundleInput)) + await client.create_configuration_bundle( + _request(CreateConfigurationBundleInputDict) + ) + await client.create_consent_portal( + execution_role_arn=_, idp_config=_, name=_, sources=_ + ) + await client.create_consent_portal(**_request(CreateConsentPortalInputDict)) + await client.create_consent_portal(_request(CreateConsentPortalInput)) + await client.create_consent_portal(_request(CreateConsentPortalInputDict)) + await client.create_dataset(dataset_name=_, source=_, schema_type=_) + await client.create_dataset(**_request(CreateDatasetInputDict)) + await client.create_dataset(_request(CreateDatasetInput)) + await client.create_dataset(_request(CreateDatasetInputDict)) + await client.create_dataset_version(dataset_id=_) + await client.create_dataset_version(**_request(CreateDatasetVersionInputDict)) + await client.create_dataset_version(_request(CreateDatasetVersionInput)) + await client.create_dataset_version(_request(CreateDatasetVersionInputDict)) + await client.create_evaluator(evaluator_name=_, evaluator_config=_, level=_) + await client.create_evaluator(**_request(CreateEvaluatorInputDict)) + await client.create_evaluator(_request(CreateEvaluatorInput)) + await client.create_evaluator(_request(CreateEvaluatorInputDict)) + await client.create_gateway(name=_, role_arn=_, authorizer_type=_) + await client.create_gateway(**_request(CreateGatewayInputDict)) + await client.create_gateway(_request(CreateGatewayInput)) + await client.create_gateway(_request(CreateGatewayInputDict)) + await client.create_gateway_rate_limit( + gateway_identifier=_, dimension_keys=_, entries=_ + ) + await client.create_gateway_rate_limit(**_request(CreateGatewayRateLimitInputDict)) + await client.create_gateway_rate_limit(_request(CreateGatewayRateLimitInput)) + await client.create_gateway_rate_limit(_request(CreateGatewayRateLimitInputDict)) + await client.create_gateway_rule(gateway_identifier=_, priority=_, actions=_) + await client.create_gateway_rule(**_request(CreateGatewayRuleInputDict)) + await client.create_gateway_rule(_request(CreateGatewayRuleInput)) + await client.create_gateway_rule(_request(CreateGatewayRuleInputDict)) + await client.create_gateway_target(gateway_identifier=_, target_configuration=_) + await client.create_gateway_target(**_request(CreateGatewayTargetInputDict)) + await client.create_gateway_target(_request(CreateGatewayTargetInput)) + await client.create_gateway_target(_request(CreateGatewayTargetInputDict)) + await client.create_harness(harness_name=_, execution_role_arn=_) + await client.create_harness(**_request(CreateHarnessInputDict)) + await client.create_harness(_request(CreateHarnessInput)) + await client.create_harness(_request(CreateHarnessInputDict)) + await client.create_harness_endpoint(harness_id=_, endpoint_name=_) + await client.create_harness_endpoint(**_request(CreateHarnessEndpointInputDict)) + await client.create_harness_endpoint(_request(CreateHarnessEndpointInput)) + await client.create_harness_endpoint(_request(CreateHarnessEndpointInputDict)) + await client.create_memory(name=_, event_expiry_duration=_) + await client.create_memory(**_request(CreateMemoryInputDict)) + await client.create_memory(_request(CreateMemoryInput)) + await client.create_memory(_request(CreateMemoryInputDict)) + await client.create_oauth2_credential_provider( + name=_, credential_provider_vendor=_, oauth2_provider_config_input=_ + ) + await client.create_oauth2_credential_provider( + **_request(CreateOauth2CredentialProviderInputDict) + ) + await client.create_oauth2_credential_provider( + _request(CreateOauth2CredentialProviderInput) + ) + await client.create_oauth2_credential_provider( + _request(CreateOauth2CredentialProviderInputDict) + ) + await client.create_online_evaluation_config( + online_evaluation_config_name=_, + rule=_, + data_source_config=_, + evaluation_execution_role_arn=_, + enable_on_create=_, + ) + await client.create_online_evaluation_config( + **_request(CreateOnlineEvaluationConfigInputDict) + ) + await client.create_online_evaluation_config( + _request(CreateOnlineEvaluationConfigInput) + ) + await client.create_online_evaluation_config( + _request(CreateOnlineEvaluationConfigInputDict) + ) + await client.create_payment_connector( + payment_manager_id=_, name=_, type=_, credential_provider_configurations=_ + ) + await client.create_payment_connector(**_request(CreatePaymentConnectorInputDict)) + await client.create_payment_connector(_request(CreatePaymentConnectorInput)) + await client.create_payment_connector(_request(CreatePaymentConnectorInputDict)) + await client.create_payment_credential_provider( + name=_, credential_provider_vendor=_, provider_configuration_input=_ + ) + await client.create_payment_credential_provider( + **_request(CreatePaymentCredentialProviderInputDict) + ) + await client.create_payment_credential_provider( + _request(CreatePaymentCredentialProviderInput) + ) + await client.create_payment_credential_provider( + _request(CreatePaymentCredentialProviderInputDict) + ) + await client.create_payment_manager(name=_, authorizer_type=_, role_arn=_) + await client.create_payment_manager(**_request(CreatePaymentManagerInputDict)) + await client.create_payment_manager(_request(CreatePaymentManagerInput)) + await client.create_payment_manager(_request(CreatePaymentManagerInputDict)) + await client.create_policy(name=_, definition=_, policy_engine_id=_) + await client.create_policy(**_request(CreatePolicyInputDict)) + await client.create_policy(_request(CreatePolicyInput)) + await client.create_policy(_request(CreatePolicyInputDict)) + await client.create_policy_engine(name=_) + await client.create_policy_engine(**_request(CreatePolicyEngineInputDict)) + await client.create_policy_engine(_request(CreatePolicyEngineInput)) + await client.create_policy_engine(_request(CreatePolicyEngineInputDict)) + await client.create_registry(name=_) + await client.create_registry(**_request(CreateRegistryInputDict)) + await client.create_registry(_request(CreateRegistryInput)) + await client.create_registry(_request(CreateRegistryInputDict)) + await client.create_registry_record(registry_id=_, name=_, descriptor_type=_) + await client.create_registry_record(**_request(CreateRegistryRecordInputDict)) + await client.create_registry_record(_request(CreateRegistryRecordInput)) + await client.create_registry_record(_request(CreateRegistryRecordInputDict)) + await client.create_workload_identity(name=_) + await client.create_workload_identity(**_request(CreateWorkloadIdentityInputDict)) + await client.create_workload_identity(_request(CreateWorkloadIdentityInput)) + await client.create_workload_identity(_request(CreateWorkloadIdentityInputDict)) + await client.delete_agent_runtime(agent_runtime_id=_) + await client.delete_agent_runtime(**_request(DeleteAgentRuntimeInputDict)) + await client.delete_agent_runtime(_request(DeleteAgentRuntimeInput)) + await client.delete_agent_runtime(_request(DeleteAgentRuntimeInputDict)) + await client.delete_agent_runtime_endpoint(agent_runtime_id=_, endpoint_name=_) + await client.delete_agent_runtime_endpoint( + **_request(DeleteAgentRuntimeEndpointInputDict) + ) + await client.delete_agent_runtime_endpoint( + _request(DeleteAgentRuntimeEndpointInput) + ) + await client.delete_agent_runtime_endpoint( + _request(DeleteAgentRuntimeEndpointInputDict) + ) + await client.delete_api_key_credential_provider(name=_) + await client.delete_api_key_credential_provider( + **_request(DeleteApiKeyCredentialProviderInputDict) + ) + await client.delete_api_key_credential_provider( + _request(DeleteApiKeyCredentialProviderInput) + ) + await client.delete_api_key_credential_provider( + _request(DeleteApiKeyCredentialProviderInputDict) + ) + await client.delete_browser(browser_id=_) + await client.delete_browser(**_request(DeleteBrowserInputDict)) + await client.delete_browser(_request(DeleteBrowserInput)) + await client.delete_browser(_request(DeleteBrowserInputDict)) + await client.delete_browser_profile(profile_id=_) + await client.delete_browser_profile(**_request(DeleteBrowserProfileInputDict)) + await client.delete_browser_profile(_request(DeleteBrowserProfileInput)) + await client.delete_browser_profile(_request(DeleteBrowserProfileInputDict)) + await client.delete_capacity_provider(capacity_provider_id=_) + await client.delete_capacity_provider(**_request(DeleteCapacityProviderInputDict)) + await client.delete_capacity_provider(_request(DeleteCapacityProviderInput)) + await client.delete_capacity_provider(_request(DeleteCapacityProviderInputDict)) + await client.delete_code_interpreter(code_interpreter_id=_) + await client.delete_code_interpreter(**_request(DeleteCodeInterpreterInputDict)) + await client.delete_code_interpreter(_request(DeleteCodeInterpreterInput)) + await client.delete_code_interpreter(_request(DeleteCodeInterpreterInputDict)) + await client.delete_configuration_bundle(bundle_id=_) + await client.delete_configuration_bundle( + **_request(DeleteConfigurationBundleInputDict) + ) + await client.delete_configuration_bundle(_request(DeleteConfigurationBundleInput)) + await client.delete_configuration_bundle( + _request(DeleteConfigurationBundleInputDict) + ) + await client.delete_consent_portal(consent_portal_identifier=_) + await client.delete_consent_portal(**_request(DeleteConsentPortalInputDict)) + await client.delete_consent_portal(_request(DeleteConsentPortalInput)) + await client.delete_consent_portal(_request(DeleteConsentPortalInputDict)) + await client.delete_dataset(dataset_id=_) + await client.delete_dataset(**_request(DeleteDatasetInputDict)) + await client.delete_dataset(_request(DeleteDatasetInput)) + await client.delete_dataset(_request(DeleteDatasetInputDict)) + await client.delete_dataset_examples(dataset_id=_, example_ids=_) + await client.delete_dataset_examples(**_request(DeleteDatasetExamplesInputDict)) + await client.delete_dataset_examples(_request(DeleteDatasetExamplesInput)) + await client.delete_dataset_examples(_request(DeleteDatasetExamplesInputDict)) + await client.delete_evaluator(evaluator_id=_) + await client.delete_evaluator(**_request(DeleteEvaluatorInputDict)) + await client.delete_evaluator(_request(DeleteEvaluatorInput)) + await client.delete_evaluator(_request(DeleteEvaluatorInputDict)) + await client.delete_gateway(gateway_identifier=_) + await client.delete_gateway(**_request(DeleteGatewayInputDict)) + await client.delete_gateway(_request(DeleteGatewayInput)) + await client.delete_gateway(_request(DeleteGatewayInputDict)) + await client.delete_gateway_rate_limit(gateway_identifier=_, rate_limit_id=_) + await client.delete_gateway_rate_limit(**_request(DeleteGatewayRateLimitInputDict)) + await client.delete_gateway_rate_limit(_request(DeleteGatewayRateLimitInput)) + await client.delete_gateway_rate_limit(_request(DeleteGatewayRateLimitInputDict)) + await client.delete_gateway_rule(gateway_identifier=_, rule_id=_) + await client.delete_gateway_rule(**_request(DeleteGatewayRuleInputDict)) + await client.delete_gateway_rule(_request(DeleteGatewayRuleInput)) + await client.delete_gateway_rule(_request(DeleteGatewayRuleInputDict)) + await client.delete_gateway_target(gateway_identifier=_, target_id=_) + await client.delete_gateway_target(**_request(DeleteGatewayTargetInputDict)) + await client.delete_gateway_target(_request(DeleteGatewayTargetInput)) + await client.delete_gateway_target(_request(DeleteGatewayTargetInputDict)) + await client.delete_harness(harness_id=_) + await client.delete_harness(**_request(DeleteHarnessInputDict)) + await client.delete_harness(_request(DeleteHarnessInput)) + await client.delete_harness(_request(DeleteHarnessInputDict)) + await client.delete_harness_endpoint(harness_id=_, endpoint_name=_) + await client.delete_harness_endpoint(**_request(DeleteHarnessEndpointInputDict)) + await client.delete_harness_endpoint(_request(DeleteHarnessEndpointInput)) + await client.delete_harness_endpoint(_request(DeleteHarnessEndpointInputDict)) + await client.delete_memory(memory_id=_) + await client.delete_memory(**_request(DeleteMemoryInputDict)) + await client.delete_memory(_request(DeleteMemoryInput)) + await client.delete_memory(_request(DeleteMemoryInputDict)) + await client.delete_oauth2_credential_provider(name=_) + await client.delete_oauth2_credential_provider( + **_request(DeleteOauth2CredentialProviderInputDict) + ) + await client.delete_oauth2_credential_provider( + _request(DeleteOauth2CredentialProviderInput) + ) + await client.delete_oauth2_credential_provider( + _request(DeleteOauth2CredentialProviderInputDict) + ) + await client.delete_online_evaluation_config(online_evaluation_config_id=_) + await client.delete_online_evaluation_config( + **_request(DeleteOnlineEvaluationConfigInputDict) + ) + await client.delete_online_evaluation_config( + _request(DeleteOnlineEvaluationConfigInput) + ) + await client.delete_online_evaluation_config( + _request(DeleteOnlineEvaluationConfigInputDict) + ) + await client.delete_payment_connector(payment_manager_id=_, payment_connector_id=_) + await client.delete_payment_connector(**_request(DeletePaymentConnectorInputDict)) + await client.delete_payment_connector(_request(DeletePaymentConnectorInput)) + await client.delete_payment_connector(_request(DeletePaymentConnectorInputDict)) + await client.delete_payment_credential_provider(name=_) + await client.delete_payment_credential_provider( + **_request(DeletePaymentCredentialProviderInputDict) + ) + await client.delete_payment_credential_provider( + _request(DeletePaymentCredentialProviderInput) + ) + await client.delete_payment_credential_provider( + _request(DeletePaymentCredentialProviderInputDict) + ) + await client.delete_payment_manager(payment_manager_id=_) + await client.delete_payment_manager(**_request(DeletePaymentManagerInputDict)) + await client.delete_payment_manager(_request(DeletePaymentManagerInput)) + await client.delete_payment_manager(_request(DeletePaymentManagerInputDict)) + await client.delete_policy(policy_engine_id=_, policy_id=_) + await client.delete_policy(**_request(DeletePolicyInputDict)) + await client.delete_policy(_request(DeletePolicyInput)) + await client.delete_policy(_request(DeletePolicyInputDict)) + await client.delete_policy_engine(policy_engine_id=_) + await client.delete_policy_engine(**_request(DeletePolicyEngineInputDict)) + await client.delete_policy_engine(_request(DeletePolicyEngineInput)) + await client.delete_policy_engine(_request(DeletePolicyEngineInputDict)) + await client.delete_registry(registry_id=_) + await client.delete_registry(**_request(DeleteRegistryInputDict)) + await client.delete_registry(_request(DeleteRegistryInput)) + await client.delete_registry(_request(DeleteRegistryInputDict)) + await client.delete_registry_record(registry_id=_, record_id=_) + await client.delete_registry_record(**_request(DeleteRegistryRecordInputDict)) + await client.delete_registry_record(_request(DeleteRegistryRecordInput)) + await client.delete_registry_record(_request(DeleteRegistryRecordInputDict)) + await client.delete_resource_policy(resource_arn=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.delete_workload_identity(name=_) + await client.delete_workload_identity(**_request(DeleteWorkloadIdentityInputDict)) + await client.delete_workload_identity(_request(DeleteWorkloadIdentityInput)) + await client.delete_workload_identity(_request(DeleteWorkloadIdentityInputDict)) + await client.get_agent_runtime(agent_runtime_id=_) + await client.get_agent_runtime(**_request(GetAgentRuntimeInputDict)) + await client.get_agent_runtime(_request(GetAgentRuntimeInput)) + await client.get_agent_runtime(_request(GetAgentRuntimeInputDict)) + await client.get_agent_runtime_endpoint(agent_runtime_id=_, endpoint_name=_) + await client.get_agent_runtime_endpoint( + **_request(GetAgentRuntimeEndpointInputDict) + ) + await client.get_agent_runtime_endpoint(_request(GetAgentRuntimeEndpointInput)) + await client.get_agent_runtime_endpoint(_request(GetAgentRuntimeEndpointInputDict)) + await client.get_api_key_credential_provider(name=_) + await client.get_api_key_credential_provider( + **_request(GetApiKeyCredentialProviderInputDict) + ) + await client.get_api_key_credential_provider( + _request(GetApiKeyCredentialProviderInput) + ) + await client.get_api_key_credential_provider( + _request(GetApiKeyCredentialProviderInputDict) + ) + await client.get_browser(browser_id=_) + await client.get_browser(**_request(GetBrowserInputDict)) + await client.get_browser(_request(GetBrowserInput)) + await client.get_browser(_request(GetBrowserInputDict)) + await client.get_browser_profile(profile_id=_) + await client.get_browser_profile(**_request(GetBrowserProfileInputDict)) + await client.get_browser_profile(_request(GetBrowserProfileInput)) + await client.get_browser_profile(_request(GetBrowserProfileInputDict)) + await client.get_capacity_provider(capacity_provider_id=_) + await client.get_capacity_provider(**_request(GetCapacityProviderInputDict)) + await client.get_capacity_provider(_request(GetCapacityProviderInput)) + await client.get_capacity_provider(_request(GetCapacityProviderInputDict)) + await client.get_code_interpreter(code_interpreter_id=_) + await client.get_code_interpreter(**_request(GetCodeInterpreterInputDict)) + await client.get_code_interpreter(_request(GetCodeInterpreterInput)) + await client.get_code_interpreter(_request(GetCodeInterpreterInputDict)) + await client.get_configuration_bundle(bundle_id=_) + await client.get_configuration_bundle(**_request(GetConfigurationBundleInputDict)) + await client.get_configuration_bundle(_request(GetConfigurationBundleInput)) + await client.get_configuration_bundle(_request(GetConfigurationBundleInputDict)) + await client.get_configuration_bundle_version(bundle_id=_, version_id=_) + await client.get_configuration_bundle_version( + **_request(GetConfigurationBundleVersionInputDict) + ) + await client.get_configuration_bundle_version( + _request(GetConfigurationBundleVersionInput) + ) + await client.get_configuration_bundle_version( + _request(GetConfigurationBundleVersionInputDict) + ) + await client.get_consent_portal(consent_portal_identifier=_) + await client.get_consent_portal(**_request(GetConsentPortalInputDict)) + await client.get_consent_portal(_request(GetConsentPortalInput)) + await client.get_consent_portal(_request(GetConsentPortalInputDict)) + await client.get_dataset(dataset_id=_) + await client.get_dataset(**_request(GetDatasetInputDict)) + await client.get_dataset(_request(GetDatasetInput)) + await client.get_dataset(_request(GetDatasetInputDict)) + await client.get_evaluator(evaluator_id=_) + await client.get_evaluator(**_request(GetEvaluatorInputDict)) + await client.get_evaluator(_request(GetEvaluatorInput)) + await client.get_evaluator(_request(GetEvaluatorInputDict)) + await client.get_gateway(gateway_identifier=_) + await client.get_gateway(**_request(GetGatewayInputDict)) + await client.get_gateway(_request(GetGatewayInput)) + await client.get_gateway(_request(GetGatewayInputDict)) + await client.get_gateway_rate_limit(gateway_identifier=_, rate_limit_id=_) + await client.get_gateway_rate_limit(**_request(GetGatewayRateLimitInputDict)) + await client.get_gateway_rate_limit(_request(GetGatewayRateLimitInput)) + await client.get_gateway_rate_limit(_request(GetGatewayRateLimitInputDict)) + await client.get_gateway_rule(gateway_identifier=_, rule_id=_) + await client.get_gateway_rule(**_request(GetGatewayRuleInputDict)) + await client.get_gateway_rule(_request(GetGatewayRuleInput)) + await client.get_gateway_rule(_request(GetGatewayRuleInputDict)) + await client.get_gateway_target(gateway_identifier=_, target_id=_) + await client.get_gateway_target(**_request(GetGatewayTargetInputDict)) + await client.get_gateway_target(_request(GetGatewayTargetInput)) + await client.get_gateway_target(_request(GetGatewayTargetInputDict)) + await client.get_harness(harness_id=_) + await client.get_harness(**_request(GetHarnessInputDict)) + await client.get_harness(_request(GetHarnessInput)) + await client.get_harness(_request(GetHarnessInputDict)) + await client.get_harness_endpoint(harness_id=_, endpoint_name=_) + await client.get_harness_endpoint(**_request(GetHarnessEndpointInputDict)) + await client.get_harness_endpoint(_request(GetHarnessEndpointInput)) + await client.get_harness_endpoint(_request(GetHarnessEndpointInputDict)) + await client.get_memory(memory_id=_) + await client.get_memory(**_request(GetMemoryInputDict)) + await client.get_memory(_request(GetMemoryInput)) + await client.get_memory(_request(GetMemoryInputDict)) + await client.get_oauth2_credential_provider(name=_) + await client.get_oauth2_credential_provider( + **_request(GetOauth2CredentialProviderInputDict) + ) + await client.get_oauth2_credential_provider( + _request(GetOauth2CredentialProviderInput) + ) + await client.get_oauth2_credential_provider( + _request(GetOauth2CredentialProviderInputDict) + ) + await client.get_online_evaluation_config(online_evaluation_config_id=_) + await client.get_online_evaluation_config( + **_request(GetOnlineEvaluationConfigInputDict) + ) + await client.get_online_evaluation_config(_request(GetOnlineEvaluationConfigInput)) + await client.get_online_evaluation_config( + _request(GetOnlineEvaluationConfigInputDict) + ) + await client.get_payment_connector(payment_manager_id=_, payment_connector_id=_) + await client.get_payment_connector(**_request(GetPaymentConnectorInputDict)) + await client.get_payment_connector(_request(GetPaymentConnectorInput)) + await client.get_payment_connector(_request(GetPaymentConnectorInputDict)) + await client.get_payment_credential_provider(name=_) + await client.get_payment_credential_provider( + **_request(GetPaymentCredentialProviderInputDict) + ) + await client.get_payment_credential_provider( + _request(GetPaymentCredentialProviderInput) + ) + await client.get_payment_credential_provider( + _request(GetPaymentCredentialProviderInputDict) + ) + await client.get_payment_manager(payment_manager_id=_) + await client.get_payment_manager(**_request(GetPaymentManagerInputDict)) + await client.get_payment_manager(_request(GetPaymentManagerInput)) + await client.get_payment_manager(_request(GetPaymentManagerInputDict)) + await client.get_policy(policy_engine_id=_, policy_id=_) + await client.get_policy(**_request(GetPolicyInputDict)) + await client.get_policy(_request(GetPolicyInput)) + await client.get_policy(_request(GetPolicyInputDict)) + await client.get_policy_engine(policy_engine_id=_) + await client.get_policy_engine(**_request(GetPolicyEngineInputDict)) + await client.get_policy_engine(_request(GetPolicyEngineInput)) + await client.get_policy_engine(_request(GetPolicyEngineInputDict)) + await client.get_policy_engine_summary(policy_engine_id=_) + await client.get_policy_engine_summary(**_request(GetPolicyEngineSummaryInputDict)) + await client.get_policy_engine_summary(_request(GetPolicyEngineSummaryInput)) + await client.get_policy_engine_summary(_request(GetPolicyEngineSummaryInputDict)) + await client.get_policy_generation(policy_generation_id=_, policy_engine_id=_) + await client.get_policy_generation(**_request(GetPolicyGenerationInputDict)) + await client.get_policy_generation(_request(GetPolicyGenerationInput)) + await client.get_policy_generation(_request(GetPolicyGenerationInputDict)) + await client.get_policy_generation_summary( + policy_generation_id=_, policy_engine_id=_ + ) + await client.get_policy_generation_summary( + **_request(GetPolicyGenerationSummaryInputDict) + ) + await client.get_policy_generation_summary( + _request(GetPolicyGenerationSummaryInput) + ) + await client.get_policy_generation_summary( + _request(GetPolicyGenerationSummaryInputDict) + ) + await client.get_policy_summary(policy_engine_id=_, policy_id=_) + await client.get_policy_summary(**_request(GetPolicySummaryInputDict)) + await client.get_policy_summary(_request(GetPolicySummaryInput)) + await client.get_policy_summary(_request(GetPolicySummaryInputDict)) + await client.get_registry(registry_id=_) + await client.get_registry(**_request(GetRegistryInputDict)) + await client.get_registry(_request(GetRegistryInput)) + await client.get_registry(_request(GetRegistryInputDict)) + await client.get_registry_record(registry_id=_, record_id=_) + await client.get_registry_record(**_request(GetRegistryRecordInputDict)) + await client.get_registry_record(_request(GetRegistryRecordInput)) + await client.get_registry_record(_request(GetRegistryRecordInputDict)) + await client.get_resource_policy(resource_arn=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.get_token_vault() + await client.get_token_vault(**_request(GetTokenVaultInputDict)) + await client.get_token_vault(_request(GetTokenVaultInput)) + await client.get_token_vault(_request(GetTokenVaultInputDict)) + await client.get_workload_identity(name=_) + await client.get_workload_identity(**_request(GetWorkloadIdentityInputDict)) + await client.get_workload_identity(_request(GetWorkloadIdentityInput)) + await client.get_workload_identity(_request(GetWorkloadIdentityInputDict)) + await client.list_agent_runtime_endpoints(agent_runtime_id=_) + await client.list_agent_runtime_endpoints( + **_request(ListAgentRuntimeEndpointsInputDict) + ) + await client.list_agent_runtime_endpoints(_request(ListAgentRuntimeEndpointsInput)) + await client.list_agent_runtime_endpoints( + _request(ListAgentRuntimeEndpointsInputDict) + ) + await client.list_agent_runtimes() + await client.list_agent_runtimes(**_request(ListAgentRuntimesInputDict)) + await client.list_agent_runtimes(_request(ListAgentRuntimesInput)) + await client.list_agent_runtimes(_request(ListAgentRuntimesInputDict)) + await client.list_agent_runtime_versions(agent_runtime_id=_) + await client.list_agent_runtime_versions( + **_request(ListAgentRuntimeVersionsInputDict) + ) + await client.list_agent_runtime_versions(_request(ListAgentRuntimeVersionsInput)) + await client.list_agent_runtime_versions( + _request(ListAgentRuntimeVersionsInputDict) + ) + await client.list_agent_runtime_versions_by_capacity_provider( + capacity_provider_id=_ + ) + await client.list_agent_runtime_versions_by_capacity_provider( + **_request(ListAgentRuntimeVersionsByCapacityProviderInputDict) + ) + await client.list_agent_runtime_versions_by_capacity_provider( + _request(ListAgentRuntimeVersionsByCapacityProviderInput) + ) + await client.list_agent_runtime_versions_by_capacity_provider( + _request(ListAgentRuntimeVersionsByCapacityProviderInputDict) + ) + await client.list_api_key_credential_providers() + await client.list_api_key_credential_providers( + **_request(ListApiKeyCredentialProvidersInputDict) + ) + await client.list_api_key_credential_providers( + _request(ListApiKeyCredentialProvidersInput) + ) + await client.list_api_key_credential_providers( + _request(ListApiKeyCredentialProvidersInputDict) + ) + await client.list_browser_profiles() + await client.list_browser_profiles(**_request(ListBrowserProfilesInputDict)) + await client.list_browser_profiles(_request(ListBrowserProfilesInput)) + await client.list_browser_profiles(_request(ListBrowserProfilesInputDict)) + await client.list_browsers() + await client.list_browsers(**_request(ListBrowsersInputDict)) + await client.list_browsers(_request(ListBrowsersInput)) + await client.list_browsers(_request(ListBrowsersInputDict)) + await client.list_capacity_providers() + await client.list_capacity_providers(**_request(ListCapacityProvidersInputDict)) + await client.list_capacity_providers(_request(ListCapacityProvidersInput)) + await client.list_capacity_providers(_request(ListCapacityProvidersInputDict)) + await client.list_code_interpreters() + await client.list_code_interpreters(**_request(ListCodeInterpretersInputDict)) + await client.list_code_interpreters(_request(ListCodeInterpretersInput)) + await client.list_code_interpreters(_request(ListCodeInterpretersInputDict)) + await client.list_configuration_bundles() + await client.list_configuration_bundles( + **_request(ListConfigurationBundlesInputDict) + ) + await client.list_configuration_bundles(_request(ListConfigurationBundlesInput)) + await client.list_configuration_bundles(_request(ListConfigurationBundlesInputDict)) + await client.list_configuration_bundle_versions(bundle_id=_) + await client.list_configuration_bundle_versions( + **_request(ListConfigurationBundleVersionsInputDict) + ) + await client.list_configuration_bundle_versions( + _request(ListConfigurationBundleVersionsInput) + ) + await client.list_configuration_bundle_versions( + _request(ListConfigurationBundleVersionsInputDict) + ) + await client.list_consent_portals() + await client.list_consent_portals(**_request(ListConsentPortalsInputDict)) + await client.list_consent_portals(_request(ListConsentPortalsInput)) + await client.list_consent_portals(_request(ListConsentPortalsInputDict)) + await client.list_dataset_examples(dataset_id=_) + await client.list_dataset_examples(**_request(ListDatasetExamplesInputDict)) + await client.list_dataset_examples(_request(ListDatasetExamplesInput)) + await client.list_dataset_examples(_request(ListDatasetExamplesInputDict)) + await client.list_datasets() + await client.list_datasets(**_request(ListDatasetsInputDict)) + await client.list_datasets(_request(ListDatasetsInput)) + await client.list_datasets(_request(ListDatasetsInputDict)) + await client.list_dataset_versions(dataset_id=_) + await client.list_dataset_versions(**_request(ListDatasetVersionsInputDict)) + await client.list_dataset_versions(_request(ListDatasetVersionsInput)) + await client.list_dataset_versions(_request(ListDatasetVersionsInputDict)) + await client.list_evaluators() + await client.list_evaluators(**_request(ListEvaluatorsInputDict)) + await client.list_evaluators(_request(ListEvaluatorsInput)) + await client.list_evaluators(_request(ListEvaluatorsInputDict)) + await client.list_gateway_rate_limits(gateway_identifier=_) + await client.list_gateway_rate_limits(**_request(ListGatewayRateLimitsInputDict)) + await client.list_gateway_rate_limits(_request(ListGatewayRateLimitsInput)) + await client.list_gateway_rate_limits(_request(ListGatewayRateLimitsInputDict)) + await client.list_gateway_rules(gateway_identifier=_) + await client.list_gateway_rules(**_request(ListGatewayRulesInputDict)) + await client.list_gateway_rules(_request(ListGatewayRulesInput)) + await client.list_gateway_rules(_request(ListGatewayRulesInputDict)) + await client.list_gateways() + await client.list_gateways(**_request(ListGatewaysInputDict)) + await client.list_gateways(_request(ListGatewaysInput)) + await client.list_gateways(_request(ListGatewaysInputDict)) + await client.list_gateway_targets(gateway_identifier=_) + await client.list_gateway_targets(**_request(ListGatewayTargetsInputDict)) + await client.list_gateway_targets(_request(ListGatewayTargetsInput)) + await client.list_gateway_targets(_request(ListGatewayTargetsInputDict)) + await client.list_harness_endpoints(harness_id=_) + await client.list_harness_endpoints(**_request(ListHarnessEndpointsInputDict)) + await client.list_harness_endpoints(_request(ListHarnessEndpointsInput)) + await client.list_harness_endpoints(_request(ListHarnessEndpointsInputDict)) + await client.list_harnesses() + await client.list_harnesses(**_request(ListHarnessesInputDict)) + await client.list_harnesses(_request(ListHarnessesInput)) + await client.list_harnesses(_request(ListHarnessesInputDict)) + await client.list_harness_versions(harness_id=_) + await client.list_harness_versions(**_request(ListHarnessVersionsInputDict)) + await client.list_harness_versions(_request(ListHarnessVersionsInput)) + await client.list_harness_versions(_request(ListHarnessVersionsInputDict)) + await client.list_memories() + await client.list_memories(**_request(ListMemoriesInputDict)) + await client.list_memories(_request(ListMemoriesInput)) + await client.list_memories(_request(ListMemoriesInputDict)) + await client.list_oauth2_credential_providers() + await client.list_oauth2_credential_providers( + **_request(ListOauth2CredentialProvidersInputDict) + ) + await client.list_oauth2_credential_providers( + _request(ListOauth2CredentialProvidersInput) + ) + await client.list_oauth2_credential_providers( + _request(ListOauth2CredentialProvidersInputDict) + ) + await client.list_online_evaluation_configs() + await client.list_online_evaluation_configs( + **_request(ListOnlineEvaluationConfigsInputDict) + ) + await client.list_online_evaluation_configs( + _request(ListOnlineEvaluationConfigsInput) + ) + await client.list_online_evaluation_configs( + _request(ListOnlineEvaluationConfigsInputDict) + ) + await client.list_payment_connectors(payment_manager_id=_) + await client.list_payment_connectors(**_request(ListPaymentConnectorsInputDict)) + await client.list_payment_connectors(_request(ListPaymentConnectorsInput)) + await client.list_payment_connectors(_request(ListPaymentConnectorsInputDict)) + await client.list_payment_credential_providers() + await client.list_payment_credential_providers( + **_request(ListPaymentCredentialProvidersInputDict) + ) + await client.list_payment_credential_providers( + _request(ListPaymentCredentialProvidersInput) + ) + await client.list_payment_credential_providers( + _request(ListPaymentCredentialProvidersInputDict) + ) + await client.list_payment_managers() + await client.list_payment_managers(**_request(ListPaymentManagersInputDict)) + await client.list_payment_managers(_request(ListPaymentManagersInput)) + await client.list_payment_managers(_request(ListPaymentManagersInputDict)) + await client.list_policies(policy_engine_id=_) + await client.list_policies(**_request(ListPoliciesInputDict)) + await client.list_policies(_request(ListPoliciesInput)) + await client.list_policies(_request(ListPoliciesInputDict)) + await client.list_policy_engines() + await client.list_policy_engines(**_request(ListPolicyEnginesInputDict)) + await client.list_policy_engines(_request(ListPolicyEnginesInput)) + await client.list_policy_engines(_request(ListPolicyEnginesInputDict)) + await client.list_policy_engine_summaries() + await client.list_policy_engine_summaries( + **_request(ListPolicyEngineSummariesInputDict) + ) + await client.list_policy_engine_summaries(_request(ListPolicyEngineSummariesInput)) + await client.list_policy_engine_summaries( + _request(ListPolicyEngineSummariesInputDict) + ) + await client.list_policy_generation_assets( + policy_generation_id=_, policy_engine_id=_ + ) + await client.list_policy_generation_assets( + **_request(ListPolicyGenerationAssetsInputDict) + ) + await client.list_policy_generation_assets( + _request(ListPolicyGenerationAssetsInput) + ) + await client.list_policy_generation_assets( + _request(ListPolicyGenerationAssetsInputDict) + ) + await client.list_policy_generations(policy_engine_id=_) + await client.list_policy_generations(**_request(ListPolicyGenerationsInputDict)) + await client.list_policy_generations(_request(ListPolicyGenerationsInput)) + await client.list_policy_generations(_request(ListPolicyGenerationsInputDict)) + await client.list_policy_generation_summaries(policy_engine_id=_) + await client.list_policy_generation_summaries( + **_request(ListPolicyGenerationSummariesInputDict) + ) + await client.list_policy_generation_summaries( + _request(ListPolicyGenerationSummariesInput) + ) + await client.list_policy_generation_summaries( + _request(ListPolicyGenerationSummariesInputDict) + ) + await client.list_policy_summaries(policy_engine_id=_) + await client.list_policy_summaries(**_request(ListPolicySummariesInputDict)) + await client.list_policy_summaries(_request(ListPolicySummariesInput)) + await client.list_policy_summaries(_request(ListPolicySummariesInputDict)) + await client.list_registries() + await client.list_registries(**_request(ListRegistriesInputDict)) + await client.list_registries(_request(ListRegistriesInput)) + await client.list_registries(_request(ListRegistriesInputDict)) + await client.list_registry_records(registry_id=_) + await client.list_registry_records(**_request(ListRegistryRecordsInputDict)) + await client.list_registry_records(_request(ListRegistryRecordsInput)) + await client.list_registry_records(_request(ListRegistryRecordsInputDict)) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.list_workload_identities() + await client.list_workload_identities(**_request(ListWorkloadIdentitiesInputDict)) + await client.list_workload_identities(_request(ListWorkloadIdentitiesInput)) + await client.list_workload_identities(_request(ListWorkloadIdentitiesInputDict)) + await client.put_resource_policy(resource_arn=_, policy=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.reset_token_vault_key_material(token_vault_id=_) + await client.reset_token_vault_key_material( + **_request(ResetTokenVaultKeyMaterialInputDict) + ) + await client.reset_token_vault_key_material( + _request(ResetTokenVaultKeyMaterialInput) + ) + await client.reset_token_vault_key_material( + _request(ResetTokenVaultKeyMaterialInputDict) + ) + await client.rotate_payment_connector_credentials( + payment_manager_id=_, payment_connector_id=_, credentials_to_rotate=_ + ) + await client.rotate_payment_connector_credentials( + **_request(RotatePaymentConnectorCredentialsInputDict) + ) + await client.rotate_payment_connector_credentials( + _request(RotatePaymentConnectorCredentialsInput) + ) + await client.rotate_payment_connector_credentials( + _request(RotatePaymentConnectorCredentialsInputDict) + ) + await client.set_token_vault_cmk(kms_configuration=_) + await client.set_token_vault_cmk(**_request(SetTokenVaultCMKInputDict)) + await client.set_token_vault_cmk(_request(SetTokenVaultCMKInput)) + await client.set_token_vault_cmk(_request(SetTokenVaultCMKInputDict)) + await client.start_policy_generation( + policy_engine_id=_, resource=_, content=_, name=_ + ) + await client.start_policy_generation(**_request(StartPolicyGenerationInputDict)) + await client.start_policy_generation(_request(StartPolicyGenerationInput)) + await client.start_policy_generation(_request(StartPolicyGenerationInputDict)) + await client.submit_registry_record_for_approval(registry_id=_, record_id=_) + await client.submit_registry_record_for_approval( + **_request(SubmitRegistryRecordForApprovalInputDict) + ) + await client.submit_registry_record_for_approval( + _request(SubmitRegistryRecordForApprovalInput) + ) + await client.submit_registry_record_for_approval( + _request(SubmitRegistryRecordForApprovalInputDict) + ) + await client.synchronize_gateway_targets(gateway_identifier=_, target_id_list=_) + await client.synchronize_gateway_targets( + **_request(SynchronizeGatewayTargetsInputDict) + ) + await client.synchronize_gateway_targets(_request(SynchronizeGatewayTargetsInput)) + await client.synchronize_gateway_targets( + _request(SynchronizeGatewayTargetsInputDict) + ) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_agent_runtime( + agent_runtime_id=_, agent_runtime_artifact=_, role_arn=_ + ) + await client.update_agent_runtime(**_request(UpdateAgentRuntimeInputDict)) + await client.update_agent_runtime(_request(UpdateAgentRuntimeInput)) + await client.update_agent_runtime(_request(UpdateAgentRuntimeInputDict)) + await client.update_agent_runtime_endpoint(agent_runtime_id=_, endpoint_name=_) + await client.update_agent_runtime_endpoint( + **_request(UpdateAgentRuntimeEndpointInputDict) + ) + await client.update_agent_runtime_endpoint( + _request(UpdateAgentRuntimeEndpointInput) + ) + await client.update_agent_runtime_endpoint( + _request(UpdateAgentRuntimeEndpointInputDict) + ) + await client.update_api_key_credential_provider(name=_) + await client.update_api_key_credential_provider( + **_request(UpdateApiKeyCredentialProviderInputDict) + ) + await client.update_api_key_credential_provider( + _request(UpdateApiKeyCredentialProviderInput) + ) + await client.update_api_key_credential_provider( + _request(UpdateApiKeyCredentialProviderInputDict) + ) + await client.update_capacity_provider(capacity_provider_id=_) + await client.update_capacity_provider(**_request(UpdateCapacityProviderInputDict)) + await client.update_capacity_provider(_request(UpdateCapacityProviderInput)) + await client.update_capacity_provider(_request(UpdateCapacityProviderInputDict)) + await client.update_configuration_bundle( + bundle_id=_, parent_version_ids=_, commit_message=_ + ) + await client.update_configuration_bundle( + **_request(UpdateConfigurationBundleInputDict) + ) + await client.update_configuration_bundle(_request(UpdateConfigurationBundleInput)) + await client.update_configuration_bundle( + _request(UpdateConfigurationBundleInputDict) + ) + await client.update_consent_portal(consent_portal_identifier=_) + await client.update_consent_portal(**_request(UpdateConsentPortalInputDict)) + await client.update_consent_portal(_request(UpdateConsentPortalInput)) + await client.update_consent_portal(_request(UpdateConsentPortalInputDict)) + await client.update_dataset(dataset_id=_) + await client.update_dataset(**_request(UpdateDatasetInputDict)) + await client.update_dataset(_request(UpdateDatasetInput)) + await client.update_dataset(_request(UpdateDatasetInputDict)) + await client.update_dataset_examples(dataset_id=_, examples=_) + await client.update_dataset_examples(**_request(UpdateDatasetExamplesInputDict)) + await client.update_dataset_examples(_request(UpdateDatasetExamplesInput)) + await client.update_dataset_examples(_request(UpdateDatasetExamplesInputDict)) + await client.update_evaluator(evaluator_id=_) + await client.update_evaluator(**_request(UpdateEvaluatorInputDict)) + await client.update_evaluator(_request(UpdateEvaluatorInput)) + await client.update_evaluator(_request(UpdateEvaluatorInputDict)) + await client.update_gateway( + gateway_identifier=_, name=_, role_arn=_, authorizer_type=_ + ) + await client.update_gateway(**_request(UpdateGatewayInputDict)) + await client.update_gateway(_request(UpdateGatewayInput)) + await client.update_gateway(_request(UpdateGatewayInputDict)) + await client.update_gateway_rate_limit( + gateway_identifier=_, rate_limit_id=_, entries=_ + ) + await client.update_gateway_rate_limit(**_request(UpdateGatewayRateLimitInputDict)) + await client.update_gateway_rate_limit(_request(UpdateGatewayRateLimitInput)) + await client.update_gateway_rate_limit(_request(UpdateGatewayRateLimitInputDict)) + await client.update_gateway_rule(gateway_identifier=_, rule_id=_) + await client.update_gateway_rule(**_request(UpdateGatewayRuleInputDict)) + await client.update_gateway_rule(_request(UpdateGatewayRuleInput)) + await client.update_gateway_rule(_request(UpdateGatewayRuleInputDict)) + await client.update_gateway_target( + gateway_identifier=_, target_id=_, target_configuration=_ + ) + await client.update_gateway_target(**_request(UpdateGatewayTargetInputDict)) + await client.update_gateway_target(_request(UpdateGatewayTargetInput)) + await client.update_gateway_target(_request(UpdateGatewayTargetInputDict)) + await client.update_harness(harness_id=_) + await client.update_harness(**_request(UpdateHarnessInputDict)) + await client.update_harness(_request(UpdateHarnessInput)) + await client.update_harness(_request(UpdateHarnessInputDict)) + await client.update_harness_endpoint(harness_id=_, endpoint_name=_) + await client.update_harness_endpoint(**_request(UpdateHarnessEndpointInputDict)) + await client.update_harness_endpoint(_request(UpdateHarnessEndpointInput)) + await client.update_harness_endpoint(_request(UpdateHarnessEndpointInputDict)) + await client.update_memory(memory_id=_) + await client.update_memory(**_request(UpdateMemoryInputDict)) + await client.update_memory(_request(UpdateMemoryInput)) + await client.update_memory(_request(UpdateMemoryInputDict)) + await client.update_oauth2_credential_provider( + name=_, credential_provider_vendor=_, oauth2_provider_config_input=_ + ) + await client.update_oauth2_credential_provider( + **_request(UpdateOauth2CredentialProviderInputDict) + ) + await client.update_oauth2_credential_provider( + _request(UpdateOauth2CredentialProviderInput) + ) + await client.update_oauth2_credential_provider( + _request(UpdateOauth2CredentialProviderInputDict) + ) + await client.update_online_evaluation_config(online_evaluation_config_id=_) + await client.update_online_evaluation_config( + **_request(UpdateOnlineEvaluationConfigInputDict) + ) + await client.update_online_evaluation_config( + _request(UpdateOnlineEvaluationConfigInput) + ) + await client.update_online_evaluation_config( + _request(UpdateOnlineEvaluationConfigInputDict) + ) + await client.update_payment_connector(payment_manager_id=_, payment_connector_id=_) + await client.update_payment_connector(**_request(UpdatePaymentConnectorInputDict)) + await client.update_payment_connector(_request(UpdatePaymentConnectorInput)) + await client.update_payment_connector(_request(UpdatePaymentConnectorInputDict)) + await client.update_payment_credential_provider( + name=_, credential_provider_vendor=_, provider_configuration_input=_ + ) + await client.update_payment_credential_provider( + **_request(UpdatePaymentCredentialProviderInputDict) + ) + await client.update_payment_credential_provider( + _request(UpdatePaymentCredentialProviderInput) + ) + await client.update_payment_credential_provider( + _request(UpdatePaymentCredentialProviderInputDict) + ) + await client.update_payment_manager(payment_manager_id=_) + await client.update_payment_manager(**_request(UpdatePaymentManagerInputDict)) + await client.update_payment_manager(_request(UpdatePaymentManagerInput)) + await client.update_payment_manager(_request(UpdatePaymentManagerInputDict)) + await client.update_policy(policy_engine_id=_, policy_id=_) + await client.update_policy(**_request(UpdatePolicyInputDict)) + await client.update_policy(_request(UpdatePolicyInput)) + await client.update_policy(_request(UpdatePolicyInputDict)) + await client.update_policy_engine(policy_engine_id=_) + await client.update_policy_engine(**_request(UpdatePolicyEngineInputDict)) + await client.update_policy_engine(_request(UpdatePolicyEngineInput)) + await client.update_policy_engine(_request(UpdatePolicyEngineInputDict)) + await client.update_registry(registry_id=_) + await client.update_registry(**_request(UpdateRegistryInputDict)) + await client.update_registry(_request(UpdateRegistryInput)) + await client.update_registry(_request(UpdateRegistryInputDict)) + await client.update_registry_record(registry_id=_, record_id=_) + await client.update_registry_record(**_request(UpdateRegistryRecordInputDict)) + await client.update_registry_record(_request(UpdateRegistryRecordInput)) + await client.update_registry_record(_request(UpdateRegistryRecordInputDict)) + await client.update_registry_record_status( + registry_id=_, record_id=_, status=_, status_reason=_ + ) + await client.update_registry_record_status( + **_request(UpdateRegistryRecordStatusInputDict) + ) + await client.update_registry_record_status( + _request(UpdateRegistryRecordStatusInput) + ) + await client.update_registry_record_status( + _request(UpdateRegistryRecordStatusInputDict) + ) + await client.update_workload_identity(name=_) + await client.update_workload_identity(**_request(UpdateWorkloadIdentityInputDict)) + await client.update_workload_identity(_request(UpdateWorkloadIdentityInput)) + await client.update_workload_identity(_request(UpdateWorkloadIdentityInputDict)) + + +def check_sync_calls(client: BedrockAgentCoreControlClient) -> None: + pass + client.add_dataset_examples(dataset_id=_, source=_) + client.add_dataset_examples(**_request(AddDatasetExamplesInputDict)) + client.add_dataset_examples(_request(AddDatasetExamplesInput)) + client.add_dataset_examples(_request(AddDatasetExamplesInputDict)) + client.batch_put_gateway_rate_limits(gateway_identifier=_, rate_limits=_) + client.batch_put_gateway_rate_limits(**_request(BatchPutGatewayRateLimitsInputDict)) + client.batch_put_gateway_rate_limits(_request(BatchPutGatewayRateLimitsInput)) + client.batch_put_gateway_rate_limits(_request(BatchPutGatewayRateLimitsInputDict)) + client.create_agent_runtime( + agent_runtime_name=_, agent_runtime_artifact=_, role_arn=_ + ) + client.create_agent_runtime(**_request(CreateAgentRuntimeInputDict)) + client.create_agent_runtime(_request(CreateAgentRuntimeInput)) + client.create_agent_runtime(_request(CreateAgentRuntimeInputDict)) + client.create_agent_runtime_endpoint(agent_runtime_id=_, name=_) + client.create_agent_runtime_endpoint( + **_request(CreateAgentRuntimeEndpointInputDict) + ) + client.create_agent_runtime_endpoint(_request(CreateAgentRuntimeEndpointInput)) + client.create_agent_runtime_endpoint(_request(CreateAgentRuntimeEndpointInputDict)) + client.create_api_key_credential_provider(name=_) + client.create_api_key_credential_provider( + **_request(CreateApiKeyCredentialProviderInputDict) + ) + client.create_api_key_credential_provider( + _request(CreateApiKeyCredentialProviderInput) + ) + client.create_api_key_credential_provider( + _request(CreateApiKeyCredentialProviderInputDict) + ) + client.create_browser(name=_, network_configuration=_) + client.create_browser(**_request(CreateBrowserInputDict)) + client.create_browser(_request(CreateBrowserInput)) + client.create_browser(_request(CreateBrowserInputDict)) + client.create_browser_profile(name=_) + client.create_browser_profile(**_request(CreateBrowserProfileInputDict)) + client.create_browser_profile(_request(CreateBrowserProfileInput)) + client.create_browser_profile(_request(CreateBrowserProfileInputDict)) + client.create_capacity_provider( + name=_, permissions_configuration=_, compute_configuration=_ + ) + client.create_capacity_provider(**_request(CreateCapacityProviderInputDict)) + client.create_capacity_provider(_request(CreateCapacityProviderInput)) + client.create_capacity_provider(_request(CreateCapacityProviderInputDict)) + client.create_code_interpreter(name=_, network_configuration=_) + client.create_code_interpreter(**_request(CreateCodeInterpreterInputDict)) + client.create_code_interpreter(_request(CreateCodeInterpreterInput)) + client.create_code_interpreter(_request(CreateCodeInterpreterInputDict)) + client.create_configuration_bundle(bundle_name=_, components=_) + client.create_configuration_bundle(**_request(CreateConfigurationBundleInputDict)) + client.create_configuration_bundle(_request(CreateConfigurationBundleInput)) + client.create_configuration_bundle(_request(CreateConfigurationBundleInputDict)) + client.create_consent_portal(execution_role_arn=_, idp_config=_, name=_, sources=_) + client.create_consent_portal(**_request(CreateConsentPortalInputDict)) + client.create_consent_portal(_request(CreateConsentPortalInput)) + client.create_consent_portal(_request(CreateConsentPortalInputDict)) + client.create_dataset(dataset_name=_, source=_, schema_type=_) + client.create_dataset(**_request(CreateDatasetInputDict)) + client.create_dataset(_request(CreateDatasetInput)) + client.create_dataset(_request(CreateDatasetInputDict)) + client.create_dataset_version(dataset_id=_) + client.create_dataset_version(**_request(CreateDatasetVersionInputDict)) + client.create_dataset_version(_request(CreateDatasetVersionInput)) + client.create_dataset_version(_request(CreateDatasetVersionInputDict)) + client.create_evaluator(evaluator_name=_, evaluator_config=_, level=_) + client.create_evaluator(**_request(CreateEvaluatorInputDict)) + client.create_evaluator(_request(CreateEvaluatorInput)) + client.create_evaluator(_request(CreateEvaluatorInputDict)) + client.create_gateway(name=_, role_arn=_, authorizer_type=_) + client.create_gateway(**_request(CreateGatewayInputDict)) + client.create_gateway(_request(CreateGatewayInput)) + client.create_gateway(_request(CreateGatewayInputDict)) + client.create_gateway_rate_limit(gateway_identifier=_, dimension_keys=_, entries=_) + client.create_gateway_rate_limit(**_request(CreateGatewayRateLimitInputDict)) + client.create_gateway_rate_limit(_request(CreateGatewayRateLimitInput)) + client.create_gateway_rate_limit(_request(CreateGatewayRateLimitInputDict)) + client.create_gateway_rule(gateway_identifier=_, priority=_, actions=_) + client.create_gateway_rule(**_request(CreateGatewayRuleInputDict)) + client.create_gateway_rule(_request(CreateGatewayRuleInput)) + client.create_gateway_rule(_request(CreateGatewayRuleInputDict)) + client.create_gateway_target(gateway_identifier=_, target_configuration=_) + client.create_gateway_target(**_request(CreateGatewayTargetInputDict)) + client.create_gateway_target(_request(CreateGatewayTargetInput)) + client.create_gateway_target(_request(CreateGatewayTargetInputDict)) + client.create_harness(harness_name=_, execution_role_arn=_) + client.create_harness(**_request(CreateHarnessInputDict)) + client.create_harness(_request(CreateHarnessInput)) + client.create_harness(_request(CreateHarnessInputDict)) + client.create_harness_endpoint(harness_id=_, endpoint_name=_) + client.create_harness_endpoint(**_request(CreateHarnessEndpointInputDict)) + client.create_harness_endpoint(_request(CreateHarnessEndpointInput)) + client.create_harness_endpoint(_request(CreateHarnessEndpointInputDict)) + client.create_memory(name=_, event_expiry_duration=_) + client.create_memory(**_request(CreateMemoryInputDict)) + client.create_memory(_request(CreateMemoryInput)) + client.create_memory(_request(CreateMemoryInputDict)) + client.create_oauth2_credential_provider( + name=_, credential_provider_vendor=_, oauth2_provider_config_input=_ + ) + client.create_oauth2_credential_provider( + **_request(CreateOauth2CredentialProviderInputDict) + ) + client.create_oauth2_credential_provider( + _request(CreateOauth2CredentialProviderInput) + ) + client.create_oauth2_credential_provider( + _request(CreateOauth2CredentialProviderInputDict) + ) + client.create_online_evaluation_config( + online_evaluation_config_name=_, + rule=_, + data_source_config=_, + evaluation_execution_role_arn=_, + enable_on_create=_, + ) + client.create_online_evaluation_config( + **_request(CreateOnlineEvaluationConfigInputDict) + ) + client.create_online_evaluation_config(_request(CreateOnlineEvaluationConfigInput)) + client.create_online_evaluation_config( + _request(CreateOnlineEvaluationConfigInputDict) + ) + client.create_payment_connector( + payment_manager_id=_, name=_, type=_, credential_provider_configurations=_ + ) + client.create_payment_connector(**_request(CreatePaymentConnectorInputDict)) + client.create_payment_connector(_request(CreatePaymentConnectorInput)) + client.create_payment_connector(_request(CreatePaymentConnectorInputDict)) + client.create_payment_credential_provider( + name=_, credential_provider_vendor=_, provider_configuration_input=_ + ) + client.create_payment_credential_provider( + **_request(CreatePaymentCredentialProviderInputDict) + ) + client.create_payment_credential_provider( + _request(CreatePaymentCredentialProviderInput) + ) + client.create_payment_credential_provider( + _request(CreatePaymentCredentialProviderInputDict) + ) + client.create_payment_manager(name=_, authorizer_type=_, role_arn=_) + client.create_payment_manager(**_request(CreatePaymentManagerInputDict)) + client.create_payment_manager(_request(CreatePaymentManagerInput)) + client.create_payment_manager(_request(CreatePaymentManagerInputDict)) + client.create_policy(name=_, definition=_, policy_engine_id=_) + client.create_policy(**_request(CreatePolicyInputDict)) + client.create_policy(_request(CreatePolicyInput)) + client.create_policy(_request(CreatePolicyInputDict)) + client.create_policy_engine(name=_) + client.create_policy_engine(**_request(CreatePolicyEngineInputDict)) + client.create_policy_engine(_request(CreatePolicyEngineInput)) + client.create_policy_engine(_request(CreatePolicyEngineInputDict)) + client.create_registry(name=_) + client.create_registry(**_request(CreateRegistryInputDict)) + client.create_registry(_request(CreateRegistryInput)) + client.create_registry(_request(CreateRegistryInputDict)) + client.create_registry_record(registry_id=_, name=_, descriptor_type=_) + client.create_registry_record(**_request(CreateRegistryRecordInputDict)) + client.create_registry_record(_request(CreateRegistryRecordInput)) + client.create_registry_record(_request(CreateRegistryRecordInputDict)) + client.create_workload_identity(name=_) + client.create_workload_identity(**_request(CreateWorkloadIdentityInputDict)) + client.create_workload_identity(_request(CreateWorkloadIdentityInput)) + client.create_workload_identity(_request(CreateWorkloadIdentityInputDict)) + client.delete_agent_runtime(agent_runtime_id=_) + client.delete_agent_runtime(**_request(DeleteAgentRuntimeInputDict)) + client.delete_agent_runtime(_request(DeleteAgentRuntimeInput)) + client.delete_agent_runtime(_request(DeleteAgentRuntimeInputDict)) + client.delete_agent_runtime_endpoint(agent_runtime_id=_, endpoint_name=_) + client.delete_agent_runtime_endpoint( + **_request(DeleteAgentRuntimeEndpointInputDict) + ) + client.delete_agent_runtime_endpoint(_request(DeleteAgentRuntimeEndpointInput)) + client.delete_agent_runtime_endpoint(_request(DeleteAgentRuntimeEndpointInputDict)) + client.delete_api_key_credential_provider(name=_) + client.delete_api_key_credential_provider( + **_request(DeleteApiKeyCredentialProviderInputDict) + ) + client.delete_api_key_credential_provider( + _request(DeleteApiKeyCredentialProviderInput) + ) + client.delete_api_key_credential_provider( + _request(DeleteApiKeyCredentialProviderInputDict) + ) + client.delete_browser(browser_id=_) + client.delete_browser(**_request(DeleteBrowserInputDict)) + client.delete_browser(_request(DeleteBrowserInput)) + client.delete_browser(_request(DeleteBrowserInputDict)) + client.delete_browser_profile(profile_id=_) + client.delete_browser_profile(**_request(DeleteBrowserProfileInputDict)) + client.delete_browser_profile(_request(DeleteBrowserProfileInput)) + client.delete_browser_profile(_request(DeleteBrowserProfileInputDict)) + client.delete_capacity_provider(capacity_provider_id=_) + client.delete_capacity_provider(**_request(DeleteCapacityProviderInputDict)) + client.delete_capacity_provider(_request(DeleteCapacityProviderInput)) + client.delete_capacity_provider(_request(DeleteCapacityProviderInputDict)) + client.delete_code_interpreter(code_interpreter_id=_) + client.delete_code_interpreter(**_request(DeleteCodeInterpreterInputDict)) + client.delete_code_interpreter(_request(DeleteCodeInterpreterInput)) + client.delete_code_interpreter(_request(DeleteCodeInterpreterInputDict)) + client.delete_configuration_bundle(bundle_id=_) + client.delete_configuration_bundle(**_request(DeleteConfigurationBundleInputDict)) + client.delete_configuration_bundle(_request(DeleteConfigurationBundleInput)) + client.delete_configuration_bundle(_request(DeleteConfigurationBundleInputDict)) + client.delete_consent_portal(consent_portal_identifier=_) + client.delete_consent_portal(**_request(DeleteConsentPortalInputDict)) + client.delete_consent_portal(_request(DeleteConsentPortalInput)) + client.delete_consent_portal(_request(DeleteConsentPortalInputDict)) + client.delete_dataset(dataset_id=_) + client.delete_dataset(**_request(DeleteDatasetInputDict)) + client.delete_dataset(_request(DeleteDatasetInput)) + client.delete_dataset(_request(DeleteDatasetInputDict)) + client.delete_dataset_examples(dataset_id=_, example_ids=_) + client.delete_dataset_examples(**_request(DeleteDatasetExamplesInputDict)) + client.delete_dataset_examples(_request(DeleteDatasetExamplesInput)) + client.delete_dataset_examples(_request(DeleteDatasetExamplesInputDict)) + client.delete_evaluator(evaluator_id=_) + client.delete_evaluator(**_request(DeleteEvaluatorInputDict)) + client.delete_evaluator(_request(DeleteEvaluatorInput)) + client.delete_evaluator(_request(DeleteEvaluatorInputDict)) + client.delete_gateway(gateway_identifier=_) + client.delete_gateway(**_request(DeleteGatewayInputDict)) + client.delete_gateway(_request(DeleteGatewayInput)) + client.delete_gateway(_request(DeleteGatewayInputDict)) + client.delete_gateway_rate_limit(gateway_identifier=_, rate_limit_id=_) + client.delete_gateway_rate_limit(**_request(DeleteGatewayRateLimitInputDict)) + client.delete_gateway_rate_limit(_request(DeleteGatewayRateLimitInput)) + client.delete_gateway_rate_limit(_request(DeleteGatewayRateLimitInputDict)) + client.delete_gateway_rule(gateway_identifier=_, rule_id=_) + client.delete_gateway_rule(**_request(DeleteGatewayRuleInputDict)) + client.delete_gateway_rule(_request(DeleteGatewayRuleInput)) + client.delete_gateway_rule(_request(DeleteGatewayRuleInputDict)) + client.delete_gateway_target(gateway_identifier=_, target_id=_) + client.delete_gateway_target(**_request(DeleteGatewayTargetInputDict)) + client.delete_gateway_target(_request(DeleteGatewayTargetInput)) + client.delete_gateway_target(_request(DeleteGatewayTargetInputDict)) + client.delete_harness(harness_id=_) + client.delete_harness(**_request(DeleteHarnessInputDict)) + client.delete_harness(_request(DeleteHarnessInput)) + client.delete_harness(_request(DeleteHarnessInputDict)) + client.delete_harness_endpoint(harness_id=_, endpoint_name=_) + client.delete_harness_endpoint(**_request(DeleteHarnessEndpointInputDict)) + client.delete_harness_endpoint(_request(DeleteHarnessEndpointInput)) + client.delete_harness_endpoint(_request(DeleteHarnessEndpointInputDict)) + client.delete_memory(memory_id=_) + client.delete_memory(**_request(DeleteMemoryInputDict)) + client.delete_memory(_request(DeleteMemoryInput)) + client.delete_memory(_request(DeleteMemoryInputDict)) + client.delete_oauth2_credential_provider(name=_) + client.delete_oauth2_credential_provider( + **_request(DeleteOauth2CredentialProviderInputDict) + ) + client.delete_oauth2_credential_provider( + _request(DeleteOauth2CredentialProviderInput) + ) + client.delete_oauth2_credential_provider( + _request(DeleteOauth2CredentialProviderInputDict) + ) + client.delete_online_evaluation_config(online_evaluation_config_id=_) + client.delete_online_evaluation_config( + **_request(DeleteOnlineEvaluationConfigInputDict) + ) + client.delete_online_evaluation_config(_request(DeleteOnlineEvaluationConfigInput)) + client.delete_online_evaluation_config( + _request(DeleteOnlineEvaluationConfigInputDict) + ) + client.delete_payment_connector(payment_manager_id=_, payment_connector_id=_) + client.delete_payment_connector(**_request(DeletePaymentConnectorInputDict)) + client.delete_payment_connector(_request(DeletePaymentConnectorInput)) + client.delete_payment_connector(_request(DeletePaymentConnectorInputDict)) + client.delete_payment_credential_provider(name=_) + client.delete_payment_credential_provider( + **_request(DeletePaymentCredentialProviderInputDict) + ) + client.delete_payment_credential_provider( + _request(DeletePaymentCredentialProviderInput) + ) + client.delete_payment_credential_provider( + _request(DeletePaymentCredentialProviderInputDict) + ) + client.delete_payment_manager(payment_manager_id=_) + client.delete_payment_manager(**_request(DeletePaymentManagerInputDict)) + client.delete_payment_manager(_request(DeletePaymentManagerInput)) + client.delete_payment_manager(_request(DeletePaymentManagerInputDict)) + client.delete_policy(policy_engine_id=_, policy_id=_) + client.delete_policy(**_request(DeletePolicyInputDict)) + client.delete_policy(_request(DeletePolicyInput)) + client.delete_policy(_request(DeletePolicyInputDict)) + client.delete_policy_engine(policy_engine_id=_) + client.delete_policy_engine(**_request(DeletePolicyEngineInputDict)) + client.delete_policy_engine(_request(DeletePolicyEngineInput)) + client.delete_policy_engine(_request(DeletePolicyEngineInputDict)) + client.delete_registry(registry_id=_) + client.delete_registry(**_request(DeleteRegistryInputDict)) + client.delete_registry(_request(DeleteRegistryInput)) + client.delete_registry(_request(DeleteRegistryInputDict)) + client.delete_registry_record(registry_id=_, record_id=_) + client.delete_registry_record(**_request(DeleteRegistryRecordInputDict)) + client.delete_registry_record(_request(DeleteRegistryRecordInput)) + client.delete_registry_record(_request(DeleteRegistryRecordInputDict)) + client.delete_resource_policy(resource_arn=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.delete_workload_identity(name=_) + client.delete_workload_identity(**_request(DeleteWorkloadIdentityInputDict)) + client.delete_workload_identity(_request(DeleteWorkloadIdentityInput)) + client.delete_workload_identity(_request(DeleteWorkloadIdentityInputDict)) + client.get_agent_runtime(agent_runtime_id=_) + client.get_agent_runtime(**_request(GetAgentRuntimeInputDict)) + client.get_agent_runtime(_request(GetAgentRuntimeInput)) + client.get_agent_runtime(_request(GetAgentRuntimeInputDict)) + client.get_agent_runtime_endpoint(agent_runtime_id=_, endpoint_name=_) + client.get_agent_runtime_endpoint(**_request(GetAgentRuntimeEndpointInputDict)) + client.get_agent_runtime_endpoint(_request(GetAgentRuntimeEndpointInput)) + client.get_agent_runtime_endpoint(_request(GetAgentRuntimeEndpointInputDict)) + client.get_api_key_credential_provider(name=_) + client.get_api_key_credential_provider( + **_request(GetApiKeyCredentialProviderInputDict) + ) + client.get_api_key_credential_provider(_request(GetApiKeyCredentialProviderInput)) + client.get_api_key_credential_provider( + _request(GetApiKeyCredentialProviderInputDict) + ) + client.get_browser(browser_id=_) + client.get_browser(**_request(GetBrowserInputDict)) + client.get_browser(_request(GetBrowserInput)) + client.get_browser(_request(GetBrowserInputDict)) + client.get_browser_profile(profile_id=_) + client.get_browser_profile(**_request(GetBrowserProfileInputDict)) + client.get_browser_profile(_request(GetBrowserProfileInput)) + client.get_browser_profile(_request(GetBrowserProfileInputDict)) + client.get_capacity_provider(capacity_provider_id=_) + client.get_capacity_provider(**_request(GetCapacityProviderInputDict)) + client.get_capacity_provider(_request(GetCapacityProviderInput)) + client.get_capacity_provider(_request(GetCapacityProviderInputDict)) + client.get_code_interpreter(code_interpreter_id=_) + client.get_code_interpreter(**_request(GetCodeInterpreterInputDict)) + client.get_code_interpreter(_request(GetCodeInterpreterInput)) + client.get_code_interpreter(_request(GetCodeInterpreterInputDict)) + client.get_configuration_bundle(bundle_id=_) + client.get_configuration_bundle(**_request(GetConfigurationBundleInputDict)) + client.get_configuration_bundle(_request(GetConfigurationBundleInput)) + client.get_configuration_bundle(_request(GetConfigurationBundleInputDict)) + client.get_configuration_bundle_version(bundle_id=_, version_id=_) + client.get_configuration_bundle_version( + **_request(GetConfigurationBundleVersionInputDict) + ) + client.get_configuration_bundle_version( + _request(GetConfigurationBundleVersionInput) + ) + client.get_configuration_bundle_version( + _request(GetConfigurationBundleVersionInputDict) + ) + client.get_consent_portal(consent_portal_identifier=_) + client.get_consent_portal(**_request(GetConsentPortalInputDict)) + client.get_consent_portal(_request(GetConsentPortalInput)) + client.get_consent_portal(_request(GetConsentPortalInputDict)) + client.get_dataset(dataset_id=_) + client.get_dataset(**_request(GetDatasetInputDict)) + client.get_dataset(_request(GetDatasetInput)) + client.get_dataset(_request(GetDatasetInputDict)) + client.get_evaluator(evaluator_id=_) + client.get_evaluator(**_request(GetEvaluatorInputDict)) + client.get_evaluator(_request(GetEvaluatorInput)) + client.get_evaluator(_request(GetEvaluatorInputDict)) + client.get_gateway(gateway_identifier=_) + client.get_gateway(**_request(GetGatewayInputDict)) + client.get_gateway(_request(GetGatewayInput)) + client.get_gateway(_request(GetGatewayInputDict)) + client.get_gateway_rate_limit(gateway_identifier=_, rate_limit_id=_) + client.get_gateway_rate_limit(**_request(GetGatewayRateLimitInputDict)) + client.get_gateway_rate_limit(_request(GetGatewayRateLimitInput)) + client.get_gateway_rate_limit(_request(GetGatewayRateLimitInputDict)) + client.get_gateway_rule(gateway_identifier=_, rule_id=_) + client.get_gateway_rule(**_request(GetGatewayRuleInputDict)) + client.get_gateway_rule(_request(GetGatewayRuleInput)) + client.get_gateway_rule(_request(GetGatewayRuleInputDict)) + client.get_gateway_target(gateway_identifier=_, target_id=_) + client.get_gateway_target(**_request(GetGatewayTargetInputDict)) + client.get_gateway_target(_request(GetGatewayTargetInput)) + client.get_gateway_target(_request(GetGatewayTargetInputDict)) + client.get_harness(harness_id=_) + client.get_harness(**_request(GetHarnessInputDict)) + client.get_harness(_request(GetHarnessInput)) + client.get_harness(_request(GetHarnessInputDict)) + client.get_harness_endpoint(harness_id=_, endpoint_name=_) + client.get_harness_endpoint(**_request(GetHarnessEndpointInputDict)) + client.get_harness_endpoint(_request(GetHarnessEndpointInput)) + client.get_harness_endpoint(_request(GetHarnessEndpointInputDict)) + client.get_memory(memory_id=_) + client.get_memory(**_request(GetMemoryInputDict)) + client.get_memory(_request(GetMemoryInput)) + client.get_memory(_request(GetMemoryInputDict)) + client.get_oauth2_credential_provider(name=_) + client.get_oauth2_credential_provider( + **_request(GetOauth2CredentialProviderInputDict) + ) + client.get_oauth2_credential_provider(_request(GetOauth2CredentialProviderInput)) + client.get_oauth2_credential_provider( + _request(GetOauth2CredentialProviderInputDict) + ) + client.get_online_evaluation_config(online_evaluation_config_id=_) + client.get_online_evaluation_config(**_request(GetOnlineEvaluationConfigInputDict)) + client.get_online_evaluation_config(_request(GetOnlineEvaluationConfigInput)) + client.get_online_evaluation_config(_request(GetOnlineEvaluationConfigInputDict)) + client.get_payment_connector(payment_manager_id=_, payment_connector_id=_) + client.get_payment_connector(**_request(GetPaymentConnectorInputDict)) + client.get_payment_connector(_request(GetPaymentConnectorInput)) + client.get_payment_connector(_request(GetPaymentConnectorInputDict)) + client.get_payment_credential_provider(name=_) + client.get_payment_credential_provider( + **_request(GetPaymentCredentialProviderInputDict) + ) + client.get_payment_credential_provider(_request(GetPaymentCredentialProviderInput)) + client.get_payment_credential_provider( + _request(GetPaymentCredentialProviderInputDict) + ) + client.get_payment_manager(payment_manager_id=_) + client.get_payment_manager(**_request(GetPaymentManagerInputDict)) + client.get_payment_manager(_request(GetPaymentManagerInput)) + client.get_payment_manager(_request(GetPaymentManagerInputDict)) + client.get_policy(policy_engine_id=_, policy_id=_) + client.get_policy(**_request(GetPolicyInputDict)) + client.get_policy(_request(GetPolicyInput)) + client.get_policy(_request(GetPolicyInputDict)) + client.get_policy_engine(policy_engine_id=_) + client.get_policy_engine(**_request(GetPolicyEngineInputDict)) + client.get_policy_engine(_request(GetPolicyEngineInput)) + client.get_policy_engine(_request(GetPolicyEngineInputDict)) + client.get_policy_engine_summary(policy_engine_id=_) + client.get_policy_engine_summary(**_request(GetPolicyEngineSummaryInputDict)) + client.get_policy_engine_summary(_request(GetPolicyEngineSummaryInput)) + client.get_policy_engine_summary(_request(GetPolicyEngineSummaryInputDict)) + client.get_policy_generation(policy_generation_id=_, policy_engine_id=_) + client.get_policy_generation(**_request(GetPolicyGenerationInputDict)) + client.get_policy_generation(_request(GetPolicyGenerationInput)) + client.get_policy_generation(_request(GetPolicyGenerationInputDict)) + client.get_policy_generation_summary(policy_generation_id=_, policy_engine_id=_) + client.get_policy_generation_summary( + **_request(GetPolicyGenerationSummaryInputDict) + ) + client.get_policy_generation_summary(_request(GetPolicyGenerationSummaryInput)) + client.get_policy_generation_summary(_request(GetPolicyGenerationSummaryInputDict)) + client.get_policy_summary(policy_engine_id=_, policy_id=_) + client.get_policy_summary(**_request(GetPolicySummaryInputDict)) + client.get_policy_summary(_request(GetPolicySummaryInput)) + client.get_policy_summary(_request(GetPolicySummaryInputDict)) + client.get_registry(registry_id=_) + client.get_registry(**_request(GetRegistryInputDict)) + client.get_registry(_request(GetRegistryInput)) + client.get_registry(_request(GetRegistryInputDict)) + client.get_registry_record(registry_id=_, record_id=_) + client.get_registry_record(**_request(GetRegistryRecordInputDict)) + client.get_registry_record(_request(GetRegistryRecordInput)) + client.get_registry_record(_request(GetRegistryRecordInputDict)) + client.get_resource_policy(resource_arn=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.get_token_vault() + client.get_token_vault(**_request(GetTokenVaultInputDict)) + client.get_token_vault(_request(GetTokenVaultInput)) + client.get_token_vault(_request(GetTokenVaultInputDict)) + client.get_workload_identity(name=_) + client.get_workload_identity(**_request(GetWorkloadIdentityInputDict)) + client.get_workload_identity(_request(GetWorkloadIdentityInput)) + client.get_workload_identity(_request(GetWorkloadIdentityInputDict)) + client.list_agent_runtime_endpoints(agent_runtime_id=_) + client.list_agent_runtime_endpoints(**_request(ListAgentRuntimeEndpointsInputDict)) + client.list_agent_runtime_endpoints(_request(ListAgentRuntimeEndpointsInput)) + client.list_agent_runtime_endpoints(_request(ListAgentRuntimeEndpointsInputDict)) + client.list_agent_runtimes() + client.list_agent_runtimes(**_request(ListAgentRuntimesInputDict)) + client.list_agent_runtimes(_request(ListAgentRuntimesInput)) + client.list_agent_runtimes(_request(ListAgentRuntimesInputDict)) + client.list_agent_runtime_versions(agent_runtime_id=_) + client.list_agent_runtime_versions(**_request(ListAgentRuntimeVersionsInputDict)) + client.list_agent_runtime_versions(_request(ListAgentRuntimeVersionsInput)) + client.list_agent_runtime_versions(_request(ListAgentRuntimeVersionsInputDict)) + client.list_agent_runtime_versions_by_capacity_provider(capacity_provider_id=_) + client.list_agent_runtime_versions_by_capacity_provider( + **_request(ListAgentRuntimeVersionsByCapacityProviderInputDict) + ) + client.list_agent_runtime_versions_by_capacity_provider( + _request(ListAgentRuntimeVersionsByCapacityProviderInput) + ) + client.list_agent_runtime_versions_by_capacity_provider( + _request(ListAgentRuntimeVersionsByCapacityProviderInputDict) + ) + client.list_api_key_credential_providers() + client.list_api_key_credential_providers( + **_request(ListApiKeyCredentialProvidersInputDict) + ) + client.list_api_key_credential_providers( + _request(ListApiKeyCredentialProvidersInput) + ) + client.list_api_key_credential_providers( + _request(ListApiKeyCredentialProvidersInputDict) + ) + client.list_browser_profiles() + client.list_browser_profiles(**_request(ListBrowserProfilesInputDict)) + client.list_browser_profiles(_request(ListBrowserProfilesInput)) + client.list_browser_profiles(_request(ListBrowserProfilesInputDict)) + client.list_browsers() + client.list_browsers(**_request(ListBrowsersInputDict)) + client.list_browsers(_request(ListBrowsersInput)) + client.list_browsers(_request(ListBrowsersInputDict)) + client.list_capacity_providers() + client.list_capacity_providers(**_request(ListCapacityProvidersInputDict)) + client.list_capacity_providers(_request(ListCapacityProvidersInput)) + client.list_capacity_providers(_request(ListCapacityProvidersInputDict)) + client.list_code_interpreters() + client.list_code_interpreters(**_request(ListCodeInterpretersInputDict)) + client.list_code_interpreters(_request(ListCodeInterpretersInput)) + client.list_code_interpreters(_request(ListCodeInterpretersInputDict)) + client.list_configuration_bundles() + client.list_configuration_bundles(**_request(ListConfigurationBundlesInputDict)) + client.list_configuration_bundles(_request(ListConfigurationBundlesInput)) + client.list_configuration_bundles(_request(ListConfigurationBundlesInputDict)) + client.list_configuration_bundle_versions(bundle_id=_) + client.list_configuration_bundle_versions( + **_request(ListConfigurationBundleVersionsInputDict) + ) + client.list_configuration_bundle_versions( + _request(ListConfigurationBundleVersionsInput) + ) + client.list_configuration_bundle_versions( + _request(ListConfigurationBundleVersionsInputDict) + ) + client.list_consent_portals() + client.list_consent_portals(**_request(ListConsentPortalsInputDict)) + client.list_consent_portals(_request(ListConsentPortalsInput)) + client.list_consent_portals(_request(ListConsentPortalsInputDict)) + client.list_dataset_examples(dataset_id=_) + client.list_dataset_examples(**_request(ListDatasetExamplesInputDict)) + client.list_dataset_examples(_request(ListDatasetExamplesInput)) + client.list_dataset_examples(_request(ListDatasetExamplesInputDict)) + client.list_datasets() + client.list_datasets(**_request(ListDatasetsInputDict)) + client.list_datasets(_request(ListDatasetsInput)) + client.list_datasets(_request(ListDatasetsInputDict)) + client.list_dataset_versions(dataset_id=_) + client.list_dataset_versions(**_request(ListDatasetVersionsInputDict)) + client.list_dataset_versions(_request(ListDatasetVersionsInput)) + client.list_dataset_versions(_request(ListDatasetVersionsInputDict)) + client.list_evaluators() + client.list_evaluators(**_request(ListEvaluatorsInputDict)) + client.list_evaluators(_request(ListEvaluatorsInput)) + client.list_evaluators(_request(ListEvaluatorsInputDict)) + client.list_gateway_rate_limits(gateway_identifier=_) + client.list_gateway_rate_limits(**_request(ListGatewayRateLimitsInputDict)) + client.list_gateway_rate_limits(_request(ListGatewayRateLimitsInput)) + client.list_gateway_rate_limits(_request(ListGatewayRateLimitsInputDict)) + client.list_gateway_rules(gateway_identifier=_) + client.list_gateway_rules(**_request(ListGatewayRulesInputDict)) + client.list_gateway_rules(_request(ListGatewayRulesInput)) + client.list_gateway_rules(_request(ListGatewayRulesInputDict)) + client.list_gateways() + client.list_gateways(**_request(ListGatewaysInputDict)) + client.list_gateways(_request(ListGatewaysInput)) + client.list_gateways(_request(ListGatewaysInputDict)) + client.list_gateway_targets(gateway_identifier=_) + client.list_gateway_targets(**_request(ListGatewayTargetsInputDict)) + client.list_gateway_targets(_request(ListGatewayTargetsInput)) + client.list_gateway_targets(_request(ListGatewayTargetsInputDict)) + client.list_harness_endpoints(harness_id=_) + client.list_harness_endpoints(**_request(ListHarnessEndpointsInputDict)) + client.list_harness_endpoints(_request(ListHarnessEndpointsInput)) + client.list_harness_endpoints(_request(ListHarnessEndpointsInputDict)) + client.list_harnesses() + client.list_harnesses(**_request(ListHarnessesInputDict)) + client.list_harnesses(_request(ListHarnessesInput)) + client.list_harnesses(_request(ListHarnessesInputDict)) + client.list_harness_versions(harness_id=_) + client.list_harness_versions(**_request(ListHarnessVersionsInputDict)) + client.list_harness_versions(_request(ListHarnessVersionsInput)) + client.list_harness_versions(_request(ListHarnessVersionsInputDict)) + client.list_memories() + client.list_memories(**_request(ListMemoriesInputDict)) + client.list_memories(_request(ListMemoriesInput)) + client.list_memories(_request(ListMemoriesInputDict)) + client.list_oauth2_credential_providers() + client.list_oauth2_credential_providers( + **_request(ListOauth2CredentialProvidersInputDict) + ) + client.list_oauth2_credential_providers( + _request(ListOauth2CredentialProvidersInput) + ) + client.list_oauth2_credential_providers( + _request(ListOauth2CredentialProvidersInputDict) + ) + client.list_online_evaluation_configs() + client.list_online_evaluation_configs( + **_request(ListOnlineEvaluationConfigsInputDict) + ) + client.list_online_evaluation_configs(_request(ListOnlineEvaluationConfigsInput)) + client.list_online_evaluation_configs( + _request(ListOnlineEvaluationConfigsInputDict) + ) + client.list_payment_connectors(payment_manager_id=_) + client.list_payment_connectors(**_request(ListPaymentConnectorsInputDict)) + client.list_payment_connectors(_request(ListPaymentConnectorsInput)) + client.list_payment_connectors(_request(ListPaymentConnectorsInputDict)) + client.list_payment_credential_providers() + client.list_payment_credential_providers( + **_request(ListPaymentCredentialProvidersInputDict) + ) + client.list_payment_credential_providers( + _request(ListPaymentCredentialProvidersInput) + ) + client.list_payment_credential_providers( + _request(ListPaymentCredentialProvidersInputDict) + ) + client.list_payment_managers() + client.list_payment_managers(**_request(ListPaymentManagersInputDict)) + client.list_payment_managers(_request(ListPaymentManagersInput)) + client.list_payment_managers(_request(ListPaymentManagersInputDict)) + client.list_policies(policy_engine_id=_) + client.list_policies(**_request(ListPoliciesInputDict)) + client.list_policies(_request(ListPoliciesInput)) + client.list_policies(_request(ListPoliciesInputDict)) + client.list_policy_engines() + client.list_policy_engines(**_request(ListPolicyEnginesInputDict)) + client.list_policy_engines(_request(ListPolicyEnginesInput)) + client.list_policy_engines(_request(ListPolicyEnginesInputDict)) + client.list_policy_engine_summaries() + client.list_policy_engine_summaries(**_request(ListPolicyEngineSummariesInputDict)) + client.list_policy_engine_summaries(_request(ListPolicyEngineSummariesInput)) + client.list_policy_engine_summaries(_request(ListPolicyEngineSummariesInputDict)) + client.list_policy_generation_assets(policy_generation_id=_, policy_engine_id=_) + client.list_policy_generation_assets( + **_request(ListPolicyGenerationAssetsInputDict) + ) + client.list_policy_generation_assets(_request(ListPolicyGenerationAssetsInput)) + client.list_policy_generation_assets(_request(ListPolicyGenerationAssetsInputDict)) + client.list_policy_generations(policy_engine_id=_) + client.list_policy_generations(**_request(ListPolicyGenerationsInputDict)) + client.list_policy_generations(_request(ListPolicyGenerationsInput)) + client.list_policy_generations(_request(ListPolicyGenerationsInputDict)) + client.list_policy_generation_summaries(policy_engine_id=_) + client.list_policy_generation_summaries( + **_request(ListPolicyGenerationSummariesInputDict) + ) + client.list_policy_generation_summaries( + _request(ListPolicyGenerationSummariesInput) + ) + client.list_policy_generation_summaries( + _request(ListPolicyGenerationSummariesInputDict) + ) + client.list_policy_summaries(policy_engine_id=_) + client.list_policy_summaries(**_request(ListPolicySummariesInputDict)) + client.list_policy_summaries(_request(ListPolicySummariesInput)) + client.list_policy_summaries(_request(ListPolicySummariesInputDict)) + client.list_registries() + client.list_registries(**_request(ListRegistriesInputDict)) + client.list_registries(_request(ListRegistriesInput)) + client.list_registries(_request(ListRegistriesInputDict)) + client.list_registry_records(registry_id=_) + client.list_registry_records(**_request(ListRegistryRecordsInputDict)) + client.list_registry_records(_request(ListRegistryRecordsInput)) + client.list_registry_records(_request(ListRegistryRecordsInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.list_workload_identities() + client.list_workload_identities(**_request(ListWorkloadIdentitiesInputDict)) + client.list_workload_identities(_request(ListWorkloadIdentitiesInput)) + client.list_workload_identities(_request(ListWorkloadIdentitiesInputDict)) + client.put_resource_policy(resource_arn=_, policy=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.reset_token_vault_key_material(token_vault_id=_) + client.reset_token_vault_key_material( + **_request(ResetTokenVaultKeyMaterialInputDict) + ) + client.reset_token_vault_key_material(_request(ResetTokenVaultKeyMaterialInput)) + client.reset_token_vault_key_material(_request(ResetTokenVaultKeyMaterialInputDict)) + client.rotate_payment_connector_credentials( + payment_manager_id=_, payment_connector_id=_, credentials_to_rotate=_ + ) + client.rotate_payment_connector_credentials( + **_request(RotatePaymentConnectorCredentialsInputDict) + ) + client.rotate_payment_connector_credentials( + _request(RotatePaymentConnectorCredentialsInput) + ) + client.rotate_payment_connector_credentials( + _request(RotatePaymentConnectorCredentialsInputDict) + ) + client.set_token_vault_cmk(kms_configuration=_) + client.set_token_vault_cmk(**_request(SetTokenVaultCMKInputDict)) + client.set_token_vault_cmk(_request(SetTokenVaultCMKInput)) + client.set_token_vault_cmk(_request(SetTokenVaultCMKInputDict)) + client.start_policy_generation(policy_engine_id=_, resource=_, content=_, name=_) + client.start_policy_generation(**_request(StartPolicyGenerationInputDict)) + client.start_policy_generation(_request(StartPolicyGenerationInput)) + client.start_policy_generation(_request(StartPolicyGenerationInputDict)) + client.submit_registry_record_for_approval(registry_id=_, record_id=_) + client.submit_registry_record_for_approval( + **_request(SubmitRegistryRecordForApprovalInputDict) + ) + client.submit_registry_record_for_approval( + _request(SubmitRegistryRecordForApprovalInput) + ) + client.submit_registry_record_for_approval( + _request(SubmitRegistryRecordForApprovalInputDict) + ) + client.synchronize_gateway_targets(gateway_identifier=_, target_id_list=_) + client.synchronize_gateway_targets(**_request(SynchronizeGatewayTargetsInputDict)) + client.synchronize_gateway_targets(_request(SynchronizeGatewayTargetsInput)) + client.synchronize_gateway_targets(_request(SynchronizeGatewayTargetsInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_agent_runtime( + agent_runtime_id=_, agent_runtime_artifact=_, role_arn=_ + ) + client.update_agent_runtime(**_request(UpdateAgentRuntimeInputDict)) + client.update_agent_runtime(_request(UpdateAgentRuntimeInput)) + client.update_agent_runtime(_request(UpdateAgentRuntimeInputDict)) + client.update_agent_runtime_endpoint(agent_runtime_id=_, endpoint_name=_) + client.update_agent_runtime_endpoint( + **_request(UpdateAgentRuntimeEndpointInputDict) + ) + client.update_agent_runtime_endpoint(_request(UpdateAgentRuntimeEndpointInput)) + client.update_agent_runtime_endpoint(_request(UpdateAgentRuntimeEndpointInputDict)) + client.update_api_key_credential_provider(name=_) + client.update_api_key_credential_provider( + **_request(UpdateApiKeyCredentialProviderInputDict) + ) + client.update_api_key_credential_provider( + _request(UpdateApiKeyCredentialProviderInput) + ) + client.update_api_key_credential_provider( + _request(UpdateApiKeyCredentialProviderInputDict) + ) + client.update_capacity_provider(capacity_provider_id=_) + client.update_capacity_provider(**_request(UpdateCapacityProviderInputDict)) + client.update_capacity_provider(_request(UpdateCapacityProviderInput)) + client.update_capacity_provider(_request(UpdateCapacityProviderInputDict)) + client.update_configuration_bundle( + bundle_id=_, parent_version_ids=_, commit_message=_ + ) + client.update_configuration_bundle(**_request(UpdateConfigurationBundleInputDict)) + client.update_configuration_bundle(_request(UpdateConfigurationBundleInput)) + client.update_configuration_bundle(_request(UpdateConfigurationBundleInputDict)) + client.update_consent_portal(consent_portal_identifier=_) + client.update_consent_portal(**_request(UpdateConsentPortalInputDict)) + client.update_consent_portal(_request(UpdateConsentPortalInput)) + client.update_consent_portal(_request(UpdateConsentPortalInputDict)) + client.update_dataset(dataset_id=_) + client.update_dataset(**_request(UpdateDatasetInputDict)) + client.update_dataset(_request(UpdateDatasetInput)) + client.update_dataset(_request(UpdateDatasetInputDict)) + client.update_dataset_examples(dataset_id=_, examples=_) + client.update_dataset_examples(**_request(UpdateDatasetExamplesInputDict)) + client.update_dataset_examples(_request(UpdateDatasetExamplesInput)) + client.update_dataset_examples(_request(UpdateDatasetExamplesInputDict)) + client.update_evaluator(evaluator_id=_) + client.update_evaluator(**_request(UpdateEvaluatorInputDict)) + client.update_evaluator(_request(UpdateEvaluatorInput)) + client.update_evaluator(_request(UpdateEvaluatorInputDict)) + client.update_gateway(gateway_identifier=_, name=_, role_arn=_, authorizer_type=_) + client.update_gateway(**_request(UpdateGatewayInputDict)) + client.update_gateway(_request(UpdateGatewayInput)) + client.update_gateway(_request(UpdateGatewayInputDict)) + client.update_gateway_rate_limit(gateway_identifier=_, rate_limit_id=_, entries=_) + client.update_gateway_rate_limit(**_request(UpdateGatewayRateLimitInputDict)) + client.update_gateway_rate_limit(_request(UpdateGatewayRateLimitInput)) + client.update_gateway_rate_limit(_request(UpdateGatewayRateLimitInputDict)) + client.update_gateway_rule(gateway_identifier=_, rule_id=_) + client.update_gateway_rule(**_request(UpdateGatewayRuleInputDict)) + client.update_gateway_rule(_request(UpdateGatewayRuleInput)) + client.update_gateway_rule(_request(UpdateGatewayRuleInputDict)) + client.update_gateway_target( + gateway_identifier=_, target_id=_, target_configuration=_ + ) + client.update_gateway_target(**_request(UpdateGatewayTargetInputDict)) + client.update_gateway_target(_request(UpdateGatewayTargetInput)) + client.update_gateway_target(_request(UpdateGatewayTargetInputDict)) + client.update_harness(harness_id=_) + client.update_harness(**_request(UpdateHarnessInputDict)) + client.update_harness(_request(UpdateHarnessInput)) + client.update_harness(_request(UpdateHarnessInputDict)) + client.update_harness_endpoint(harness_id=_, endpoint_name=_) + client.update_harness_endpoint(**_request(UpdateHarnessEndpointInputDict)) + client.update_harness_endpoint(_request(UpdateHarnessEndpointInput)) + client.update_harness_endpoint(_request(UpdateHarnessEndpointInputDict)) + client.update_memory(memory_id=_) + client.update_memory(**_request(UpdateMemoryInputDict)) + client.update_memory(_request(UpdateMemoryInput)) + client.update_memory(_request(UpdateMemoryInputDict)) + client.update_oauth2_credential_provider( + name=_, credential_provider_vendor=_, oauth2_provider_config_input=_ + ) + client.update_oauth2_credential_provider( + **_request(UpdateOauth2CredentialProviderInputDict) + ) + client.update_oauth2_credential_provider( + _request(UpdateOauth2CredentialProviderInput) + ) + client.update_oauth2_credential_provider( + _request(UpdateOauth2CredentialProviderInputDict) + ) + client.update_online_evaluation_config(online_evaluation_config_id=_) + client.update_online_evaluation_config( + **_request(UpdateOnlineEvaluationConfigInputDict) + ) + client.update_online_evaluation_config(_request(UpdateOnlineEvaluationConfigInput)) + client.update_online_evaluation_config( + _request(UpdateOnlineEvaluationConfigInputDict) + ) + client.update_payment_connector(payment_manager_id=_, payment_connector_id=_) + client.update_payment_connector(**_request(UpdatePaymentConnectorInputDict)) + client.update_payment_connector(_request(UpdatePaymentConnectorInput)) + client.update_payment_connector(_request(UpdatePaymentConnectorInputDict)) + client.update_payment_credential_provider( + name=_, credential_provider_vendor=_, provider_configuration_input=_ + ) + client.update_payment_credential_provider( + **_request(UpdatePaymentCredentialProviderInputDict) + ) + client.update_payment_credential_provider( + _request(UpdatePaymentCredentialProviderInput) + ) + client.update_payment_credential_provider( + _request(UpdatePaymentCredentialProviderInputDict) + ) + client.update_payment_manager(payment_manager_id=_) + client.update_payment_manager(**_request(UpdatePaymentManagerInputDict)) + client.update_payment_manager(_request(UpdatePaymentManagerInput)) + client.update_payment_manager(_request(UpdatePaymentManagerInputDict)) + client.update_policy(policy_engine_id=_, policy_id=_) + client.update_policy(**_request(UpdatePolicyInputDict)) + client.update_policy(_request(UpdatePolicyInput)) + client.update_policy(_request(UpdatePolicyInputDict)) + client.update_policy_engine(policy_engine_id=_) + client.update_policy_engine(**_request(UpdatePolicyEngineInputDict)) + client.update_policy_engine(_request(UpdatePolicyEngineInput)) + client.update_policy_engine(_request(UpdatePolicyEngineInputDict)) + client.update_registry(registry_id=_) + client.update_registry(**_request(UpdateRegistryInputDict)) + client.update_registry(_request(UpdateRegistryInput)) + client.update_registry(_request(UpdateRegistryInputDict)) + client.update_registry_record(registry_id=_, record_id=_) + client.update_registry_record(**_request(UpdateRegistryRecordInputDict)) + client.update_registry_record(_request(UpdateRegistryRecordInput)) + client.update_registry_record(_request(UpdateRegistryRecordInputDict)) + client.update_registry_record_status( + registry_id=_, record_id=_, status=_, status_reason=_ + ) + client.update_registry_record_status( + **_request(UpdateRegistryRecordStatusInputDict) + ) + client.update_registry_record_status(_request(UpdateRegistryRecordStatusInput)) + client.update_registry_record_status(_request(UpdateRegistryRecordStatusInputDict)) + client.update_workload_identity(name=_) + client.update_workload_identity(**_request(UpdateWorkloadIdentityInputDict)) + client.update_workload_identity(_request(UpdateWorkloadIdentityInput)) + client.update_workload_identity(_request(UpdateWorkloadIdentityInputDict)) diff --git a/clients/aws-sdk-bedrock-agentcore/pyproject.toml b/clients/aws-sdk-bedrock-agentcore/pyproject.toml index 3d5850e32..7ecf212a8 100644 --- a/clients/aws-sdk-bedrock-agentcore/pyproject.toml +++ b/clients/aws-sdk-bedrock-agentcore/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/models_0.pyi b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/models_0.pyi index ac74cbadb..eebe34b12 100644 --- a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/models_0.pyi +++ b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,75 +13,110 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( KeyPressArguments, + KeyPressArgumentsDict, KeyPressResult, KeyShortcutArguments, + KeyShortcutArgumentsDict, KeyShortcutResult, KeyTypeArguments, + KeyTypeArgumentsDict, KeyTypeResult, LeftExpression, + LeftExpressionDict, LinkedAccount, + LinkedAccountDict, LiveViewStream, McpDescriptor, MemoryJsonData, + MemoryJsonDataDict, MemoryRecord, MemoryRecordCreateInput, + MemoryRecordCreateInputDict, MemoryRecordDeleteInput, + MemoryRecordDeleteInputDict, MemoryRecordOutput, MemoryRecordUpdateInput, + MemoryRecordUpdateInputDict, MessageMetadata, MetadataValue, + MetadataValueDict, MouseClickArguments, + MouseClickArgumentsDict, MouseClickResult, MouseDragArguments, + MouseDragArgumentsDict, MouseDragResult, MouseMoveArguments, + MouseMoveArgumentsDict, MouseMoveResult, MouseScrollArguments, + MouseScrollArgumentsDict, MouseScrollResult, OAuthCredentialProvider, + OAuthCredentialProviderDict, OnlineEvaluationConfigSource, + OnlineEvaluationConfigSourceDict, OnlineEvaluationTraceConfig, + OnlineEvaluationTraceConfigDict, OutputConfig, PayloadType, + PayloadTypeDict, PaymentInstrument, PaymentInstrumentDetails, + PaymentInstrumentDetailsDict, PaymentSession, PaymentTokenRequestInput, + PaymentTokenRequestInputDict, PaymentTokenResponseOutput, PerVariantOnlineEvaluationConfig, + PerVariantOnlineEvaluationConfigDict, ProxyConfiguration, ProxyCredentials, + ProxyCredentialsDict, RecommendationConfig, RecommendationResult, RecordExpirySpecification, + RecordExpirySpecificationDict, ResourceContent, ResourceLocation, + ResourceLocationDict, ResourceNotFoundException, RightExpression, + RightExpressionDict, RootCauseCluster, SampleSession, ScreenshotArguments, + ScreenshotArgumentsDict, ScreenshotResult, SecretsManagerLocation, + SecretsManagerLocationDict, ServiceError, ServiceQuotaExceededException, SessionFilterConfig, + SessionFilterConfigDict, SessionLimits, + SessionLimitsDict, SessionMetadataShape, + SessionMetadataShapeDict, SessionTraceIds, + SessionTraceIdsDict, SkillDefinition, SkillMdDefinition, SpanContext, + SpanContextDict, ThrottlingException, TokenBalance, TokenUsage, ToolResultStructuredContent, ToolsFileSystemConfiguration, Unit, + UnitDict, UserIdentifier, + UserIdentifierDict, UserIntentClusteringResultContent, ValidationException, Variant, + VariantDict, VariantResult, ViewPort, _SerdeShape, @@ -139,6 +175,31 @@ class _ABTestEvaluationConfigDeserializer: self, deserializer: ShapeDeserializer ) -> ABTestEvaluationConfig: ... +class ABTestEvaluationConfigOnlineEvaluationConfigArnDict(TypedDict): + online_evaluation_config_arn: str + """ + The Amazon Resource Name (ARN) of a single online evaluation + configuration to use for both variants. + """ + +class ABTestEvaluationConfigPerVariantOnlineEvaluationConfigDict(TypedDict): + per_variant_online_evaluation_config: Sequence[ + PerVariantOnlineEvaluationConfig | PerVariantOnlineEvaluationConfigDict + ] + """ + Per-variant online evaluation configurations, allowing different + evaluation settings for each variant. + """ + +ABTestEvaluationConfigDict = Union[ + ABTestEvaluationConfigOnlineEvaluationConfigArnDict + | ABTestEvaluationConfigPerVariantOnlineEvaluationConfigDict +] +""" +Dictionary form of `ABTestEvaluationConfig`, setting exactly one +variant. +""" + class ABTestExecutionStatus(UnknownEnumMixin, StrEnum): PAUSED = "PAUSED" RUNNING = "RUNNING" @@ -307,6 +368,33 @@ recommendation analysis. class _AgentTracesConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> AgentTracesConfig: ... +class AgentTracesConfigSessionSpansDict(TypedDict): + session_spans: Sequence[Document] + """Agent traces provided as inline session spans in OpenTelemetry format.""" + +class AgentTracesConfigCloudwatchLogsDict(TypedDict): + cloudwatch_logs: CloudWatchLogsTraceConfig | CloudWatchLogsTraceConfigDict + """Agent traces read from CloudWatch Logs.""" + +class AgentTracesConfigBatchEvaluationDict(TypedDict): + batch_evaluation: BatchEvaluationTraceConfig | BatchEvaluationTraceConfigDict + """Use a completed batch evaluation as the source of agent traces.""" + +class AgentTracesConfigOnlineEvaluationDict(TypedDict): + online_evaluation: OnlineEvaluationTraceConfig | OnlineEvaluationTraceConfigDict + """ + Agent traces from an online evaluation configuration over a specified + time range. + """ + +AgentTracesConfigDict = Union[ + AgentTracesConfigSessionSpansDict + | AgentTracesConfigCloudwatchLogsDict + | AgentTracesConfigBatchEvaluationDict + | AgentTracesConfigOnlineEvaluationDict +] +"""Dictionary form of `AgentTracesConfig`, setting exactly one variant.""" + @dataclass(kw_only=True) class Amount(_SerdeShape): """Represents a monetary amount with a currency.""" @@ -316,6 +404,14 @@ class Amount(_SerdeShape): currency: str """The currency code for the amount.""" +class AmountDict(TypedDict, total=False): + """Dictionary form of `Amount`.""" + + value: Required[str] + """The numeric value of the amount.""" + currency: Required[str] + """The currency code for the amount.""" + @dataclass(kw_only=True) class AutomationStream(_SerdeShape): """ @@ -350,6 +446,12 @@ class AutomationStreamUpdate(_SerdeShape): stream_status: str | None = ... """The status of the automation stream.""" +class AutomationStreamUpdateDict(TypedDict, total=False): + """Dictionary form of `AutomationStreamUpdate`.""" + + stream_status: str | None + """The status of the automation stream.""" + @dataclass(kw_only=True) class AvailableLimits(_SerdeShape): """The available spending limits for a payment session.""" @@ -381,6 +483,19 @@ class BasicAuth(_SerdeShape): `{"username": "proxy_user", "password": "secure_password"}` """ +class BasicAuthDict(TypedDict, total=False): + """Dictionary form of `BasicAuth`.""" + + secret_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Web Services Secrets + Manager secret containing proxy credentials. The secret must be a JSON + object with `username` and `password` string fields that meet validation + requirements. The caller must have `secretsmanager:GetSecretValue` + permission for this ARN. Example secret format: + `{"username": "proxy_user", "password": "secure_password"}` + """ + @dataclass(kw_only=True) class BatchCreateMemoryRecordsInput(_SerdeShape): """Dataclass for BatchCreateMemoryRecordsInput structure.""" @@ -409,6 +524,35 @@ class BatchCreateMemoryRecordsInput(_SerdeShape): expire. The `REMOVE` action does not apply when creating records. """ +class BatchCreateMemoryRecordsInputDict(TypedDict, total=False): + """Dictionary form of `BatchCreateMemoryRecordsInput`.""" + + memory_id: Required[str] + """The unique ID of the memory resource where records will be created.""" + records: Required[Sequence[MemoryRecordCreateInput | MemoryRecordCreateInputDict]] + """ + A list of memory record creation inputs to be processed in the batch + operation. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotent processing of + the batch request. + + This field is autopopulated if not provided. + """ + record_expiry_specification: ( + RecordExpirySpecification | RecordExpirySpecificationDict | None + ) + """ + The record expiry (long-term memory time-to-live) applied to every + record created by this request. Set `recordExpiryDurationDays` to the + number of days after which the records expire. Only the expiry provided + here is applied; the records' strategy association has no effect on + their expiry. If you do not provide this value, the records do not + expire. The `REMOVE` action does not apply when creating records. + """ + @dataclass(kw_only=True) class BatchCreateMemoryRecordsOutput(_SerdeShape): """Dataclass for BatchCreateMemoryRecordsOutput structure.""" @@ -443,6 +587,17 @@ class BatchDeleteMemoryRecordsInput(_SerdeShape): operation. """ +class BatchDeleteMemoryRecordsInputDict(TypedDict, total=False): + """Dictionary form of `BatchDeleteMemoryRecordsInput`.""" + + memory_id: Required[str] + """The unique ID of the memory resource where records will be deleted.""" + records: Required[Sequence[MemoryRecordDeleteInput | MemoryRecordDeleteInputDict]] + """ + A list of memory record deletion inputs to be processed in the batch + operation. + """ + @dataclass(kw_only=True) class BatchDeleteMemoryRecordsOutput(_SerdeShape): """Dataclass for BatchDeleteMemoryRecordsOutput structure.""" @@ -516,6 +671,12 @@ class BatchEvaluationTraceConfig(_SerdeShape): batch_evaluation_arn: str """The ARN of the completed batch evaluation to use as the trace source.""" +class BatchEvaluationTraceConfigDict(TypedDict, total=False): + """Dictionary form of `BatchEvaluationTraceConfig`.""" + + batch_evaluation_arn: Required[str] + """The ARN of the completed batch evaluation to use as the trace source.""" + @dataclass(kw_only=True) class BatchUpdateMemoryRecordsInput(_SerdeShape): """Dataclass for BatchUpdateMemoryRecordsInput structure.""" @@ -551,6 +712,42 @@ class BatchUpdateMemoryRecordsInput(_SerdeShape): that previously had none. """ +class BatchUpdateMemoryRecordsInputDict(TypedDict, total=False): + """Dictionary form of `BatchUpdateMemoryRecordsInput`.""" + + memory_id: Required[str] + """The unique ID of the memory resource where records will be updated.""" + records: Required[Sequence[MemoryRecordUpdateInput | MemoryRecordUpdateInputDict]] + """ + A list of memory record update inputs to be processed in the batch + operation. + """ + record_expiry_specification: ( + RecordExpirySpecification | RecordExpirySpecificationDict | None + ) + """ + The record expiry (long-term memory time-to-live) applied to every + record updated by this request. Set `recordExpiryDurationDays` to + configure or overwrite the number of days after which the records + expire, or set `action` to `REMOVE` to clear a previously configured + expiry so that the records no longer expire. + + When you do not provide this value, the service determines each + record's expiry from its current state: + + - If the record already has an expiry configured, the service resets and + reapplies the expiry based on the last applied + `recordExpiryDurationDays`. + + - If the record does not have an expiry configured, no expiry is applied + and the record remains non-expiring. This is the outcome regardless of + whether the record's strategy configures an expiry. + + Providing an explicit `recordExpiryDurationDays` always takes + precedence: it overwrites an existing expiry, or sets one on a record + that previously had none. + """ + @dataclass(kw_only=True) class BatchUpdateMemoryRecordsOutput(_SerdeShape): """Dataclass for BatchUpdateMemoryRecordsOutput structure.""" @@ -604,6 +801,14 @@ class Branch(_SerdeShape): name: str """The name of the branch.""" +class BranchDict(TypedDict, total=False): + """Dictionary form of `Branch`.""" + + root_event_id: str | None + """The identifier of the root event for this branch.""" + name: Required[str] + """The name of the branch.""" + @dataclass(kw_only=True) class BranchFilter(_SerdeShape): """Contains filter criteria for branches when listing events.""" @@ -616,6 +821,17 @@ class BranchFilter(_SerdeShape): to include parent branches, or false to exclude them. """ +class BranchFilterDict(TypedDict, total=False): + """Dictionary form of `BranchFilter`.""" + + name: Required[str] + """The name of the branch to filter by.""" + include_parent_branches: bool | None + """ + Specifies whether to include parent branches in the results. Set to true + to include parent branches, or false to exclude them. + """ + @dataclass class BrowserActionMouseClick(_SerdeShape): """Click at the specified coordinates.""" @@ -693,6 +909,50 @@ request. class _BrowserActionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> BrowserAction: ... +class BrowserActionMouseClickDict(TypedDict): + mouse_click: MouseClickArguments | MouseClickArgumentsDict + """Click at the specified coordinates.""" + +class BrowserActionMouseMoveDict(TypedDict): + mouse_move: MouseMoveArguments | MouseMoveArgumentsDict + """Move the cursor to the specified coordinates.""" + +class BrowserActionMouseDragDict(TypedDict): + mouse_drag: MouseDragArguments | MouseDragArgumentsDict + """Drag from a start position to an end position.""" + +class BrowserActionMouseScrollDict(TypedDict): + mouse_scroll: MouseScrollArguments | MouseScrollArgumentsDict + """Scroll at the specified position.""" + +class BrowserActionKeyTypeDict(TypedDict): + key_type: KeyTypeArguments | KeyTypeArgumentsDict + """Type a string of text.""" + +class BrowserActionKeyPressDict(TypedDict): + key_press: KeyPressArguments | KeyPressArgumentsDict + """Press a key one or more times.""" + +class BrowserActionKeyShortcutDict(TypedDict): + key_shortcut: KeyShortcutArguments | KeyShortcutArgumentsDict + """Press a key combination.""" + +class BrowserActionScreenshotDict(TypedDict): + screenshot: ScreenshotArguments | ScreenshotArgumentsDict + """Capture a full-screen screenshot.""" + +BrowserActionDict = Union[ + BrowserActionMouseClickDict + | BrowserActionMouseMoveDict + | BrowserActionMouseDragDict + | BrowserActionMouseScrollDict + | BrowserActionKeyTypeDict + | BrowserActionKeyPressDict + | BrowserActionKeyShortcutDict + | BrowserActionScreenshotDict +] +"""Dictionary form of `BrowserAction`, setting exactly one variant.""" + @dataclass class BrowserActionResultMouseClick(_SerdeShape): """The result of a mouse click action.""" @@ -785,6 +1045,14 @@ class BrowserEnterprisePolicy(_SerdeShape): type: str | None = ... """The enterprise policy type. See BrowserEnterprisePolicyType.""" +class BrowserEnterprisePolicyDict(TypedDict, total=False): + """Dictionary form of `BrowserEnterprisePolicy`.""" + + location: Required[ResourceLocation | ResourceLocationDict] + """The location of the enterprise policy file.""" + type: str | None + """The enterprise policy type. See BrowserEnterprisePolicyType.""" + class BrowserEnterprisePolicyType(UnknownEnumMixin, StrEnum): """ The type of browser enterprise policy. Available values are `MANAGED` @@ -805,6 +1073,16 @@ class BrowserExtension(_SerdeShape): installed. """ +class BrowserExtensionDict(TypedDict, total=False): + """Dictionary form of `BrowserExtension`.""" + + location: Required[ResourceLocation | ResourceLocationDict] + """ + The location where the browser extension files are stored. This + specifies the source from which the extension will be loaded and + installed. + """ + @dataclass(kw_only=True) class BrowserProfileConfiguration(_SerdeShape): """ @@ -823,6 +1101,16 @@ class BrowserProfileConfiguration(_SerdeShape): session data to the profile. """ +class BrowserProfileConfigurationDict(TypedDict, total=False): + """Dictionary form of `BrowserProfileConfiguration`.""" + + profile_identifier: Required[str] + """ + The unique identifier of the browser profile. This identifier is used to + reference the profile when starting new browser sessions or saving + session data to the profile. + """ + class BrowserSessionStatus(UnknownEnumMixin, StrEnum): READY = "READY" TERMINATED = "TERMINATED" @@ -904,6 +1192,12 @@ class Certificate(_SerdeShape): location: CertificateLocation """The location of the certificate.""" +class CertificateDict(TypedDict, total=False): + """Dictionary form of `Certificate`.""" + + location: Required[CertificateLocation | CertificateLocationDict] + """The location of the certificate.""" + @dataclass class CertificateLocationSecretsManager(_SerdeShape): """The Amazon Web Services Secrets Manager location of the certificate.""" @@ -928,6 +1222,13 @@ CertificateLocation = Union[ class _CertificateLocationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CertificateLocation: ... +class CertificateLocationSecretsManagerDict(TypedDict): + secrets_manager: SecretsManagerLocation | SecretsManagerLocationDict + """The Amazon Web Services Secrets Manager location of the certificate.""" + +CertificateLocationDict = Union[CertificateLocationSecretsManagerDict] +"""Dictionary form of `CertificateLocation`, setting exactly one variant.""" + @dataclass(kw_only=True) class CloudWatchFilterConfig(_SerdeShape): """ @@ -949,6 +1250,23 @@ class CloudWatchFilterConfig(_SerdeShape): are evaluated instead of the entire session. """ +class CloudWatchFilterConfigDict(TypedDict, total=False): + """Dictionary form of `CloudWatchFilterConfig`.""" + + session_ids: Sequence[str] | None + """ + A list of specific session IDs to evaluate. If specified, only these + sessions are included in the evaluation. + """ + time_range: SessionFilterConfig | SessionFilterConfigDict | None + """The time range filter for selecting sessions to evaluate.""" + session_trace_ids: Sequence[SessionTraceIds | SessionTraceIdsDict] | None + """ + A list of session and trace ID pairs that restrict evaluation to + specific traces within a session. If specified, only the listed traces + are evaluated instead of the entire session. + """ + @dataclass(kw_only=True) class CloudWatchLogsFilter(_SerdeShape): """ @@ -963,6 +1281,16 @@ class CloudWatchLogsFilter(_SerdeShape): value: FilterValue """The value to compare against using the specified operator.""" +class CloudWatchLogsFilterDict(TypedDict, total=False): + """Dictionary form of `CloudWatchLogsFilter`.""" + + key: Required[str] + """The key or field name to filter on within the agent trace data.""" + operator: Required[str] + """The comparison operator to use for filtering.""" + value: Required[FilterValue | FilterValueDict] + """The value to compare against using the specified operator.""" + class CloudWatchLogsFilterOperator(UnknownEnumMixin, StrEnum): """The comparison operator used to filter CloudWatch Logs entries.""" @@ -982,6 +1310,12 @@ class CloudWatchLogsRule(_SerdeShape): filters: list[CloudWatchLogsFilter] | None = ... """The list of filters to apply when reading agent traces.""" +class CloudWatchLogsRuleDict(TypedDict, total=False): + """Dictionary form of `CloudWatchLogsRule`.""" + + filters: Sequence[CloudWatchLogsFilter | CloudWatchLogsFilterDict] | None + """The list of filters to apply when reading agent traces.""" + @dataclass(kw_only=True) class CloudWatchLogsSource(_SerdeShape): """The configuration for reading agent traces from CloudWatch Logs.""" @@ -1006,6 +1340,29 @@ class CloudWatchLogsSource(_SerdeShape): filter_config: CloudWatchFilterConfig | None = ... """Optional filter configuration to narrow down which sessions to evaluate.""" +class CloudWatchLogsSourceDict(TypedDict, total=False): + """Dictionary form of `CloudWatchLogsSource`.""" + + service_names: Required[Sequence[str]] + """ + The list of agent service names to filter traces within the specified + log groups. + """ + log_group_names: Sequence[str] | None + """ + The list of CloudWatch log group names to read agent traces from. + Maximum of 10 log groups. + """ + log_group_name_prefixes: Sequence[str] | None + """ + The list of CloudWatch log group name prefixes to read agent traces + from. Specify this instead of `logGroupNames` to match log groups by + prefix. Maximum of 5 prefixes. Specify either `logGroupNames` or + `logGroupNamePrefixes`, not both. One of the two is required. + """ + filter_config: CloudWatchFilterConfig | CloudWatchFilterConfigDict | None + """Optional filter configuration to narrow down which sessions to evaluate.""" + @dataclass(kw_only=True) class CloudWatchLogsTraceConfig(_SerdeShape): """ @@ -1027,6 +1384,23 @@ class CloudWatchLogsTraceConfig(_SerdeShape): rule: CloudWatchLogsRule | None = ... """Optional rule configuration for filtering traces.""" +class CloudWatchLogsTraceConfigDict(TypedDict, total=False): + """Dictionary form of `CloudWatchLogsTraceConfig`.""" + + log_group_arns: Required[Sequence[str]] + """The list of CloudWatch log group ARNs to read agent traces from.""" + service_names: Required[Sequence[str]] + """ + The list of service names to filter traces within the specified log + groups. + """ + start_time: Required[datetime] + """The start time of the time range to read traces from.""" + end_time: Required[datetime] + """The end time of the time range to read traces from.""" + rule: CloudWatchLogsRule | CloudWatchLogsRuleDict | None + """Optional rule configuration for filtering traces.""" + @dataclass(kw_only=True) class CloudWatchOutputConfig(_SerdeShape): """CloudWatch Logs destination for batch evaluation results.""" @@ -1063,6 +1437,41 @@ class CloudWatchOutputConfig(_SerdeShape): `logGroupName`. """ +class CloudWatchOutputConfigDict(TypedDict, total=False): + """Dictionary form of `CloudWatchOutputConfig`.""" + + log_group_name: str | None + """ + The name of the CloudWatch log group where evaluation results will be + written. This value doesn't apply when `resultDestination` is + `SOURCE_LOG_GROUP`, because results are written back to the trace source + log group. The name can't be under the service-reserved + `/aws/bedrock-agentcore/evaluations/` namespace, apart from the + service-managed default group. + """ + log_stream_name: str | None + """ + The name of the CloudWatch log stream where evaluation results will be + written. + """ + metrics_namespace: str | None + """ + The CloudWatch metrics namespace where evaluation result metrics are + published. If you omit this value, the service publishes metrics to + `Bedrock-AgentCore/Evaluations`. This value can't begin with `AWS/`. + """ + result_destination: str | None + """ + The destination where evaluation results are written. Valid values: + + - `DEDICATED_LOG_GROUP` (default) -- Writes results to a dedicated + result log group. + + - `SOURCE_LOG_GROUP` -- Writes results back to the log group that the + agent traces were read from. If you use this value, don't specify + `logGroupName`. + """ + @dataclass(kw_only=True) class CodeInterpreterResult(_SerdeShape): """ @@ -1272,6 +1681,26 @@ class CoinbaseCdpTokenRequestInput(_SerdeShape): request_body: str | None = ... """Request body JSON --- used to generate wallet auth JWT.""" +class CoinbaseCdpTokenRequestInputDict(TypedDict, total=False): + """Dictionary form of `CoinbaseCdpTokenRequestInput`.""" + + request_method: Required[str] + """The HTTP method for the payment API request.""" + request_host: str | None + """ + The host for the payment API request. Defaults to + \"api.cdp.coinbase.com\". + """ + request_path: Required[str] + """The path of the payment API request.""" + include_wallet_auth_token: bool | None + """ + Set to true for wallet write operations (requires walletSecret + configured). + """ + request_body: str | None + """Request body JSON --- used to generate wallet auth JWT.""" + @dataclass(kw_only=True) class CoinbaseCdpTokenResponseOutput(_SerdeShape): """Coinbase CDP token response.""" @@ -1303,16 +1732,33 @@ class CompleteResourceTokenAuthInput(_SerdeShape): process. """ -@dataclass(kw_only=True) -class CompleteResourceTokenAuthOutput(_SerdeShape): - """Dataclass for CompleteResourceTokenAuthOutput structure.""" +class CompleteResourceTokenAuthInputDict(TypedDict, total=False): + """Dictionary form of `CompleteResourceTokenAuthInput`.""" - response_metadata: ResponseMetadata = ... + user_identifier: Required[UserIdentifier | UserIdentifierDict] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The OAuth2.0 token or user ID that was used to generate the workload + access token used for initiating the user authorization flow to retrieve + OAuth2.0 tokens. + """ + session_uri: Required[str] + """ + Unique identifier for the user's authentication session for retrieving + OAuth2 tokens. This ID tracks the authorization flow state across + multiple requests and responses during the OAuth2 authentication + process. + """ + +@dataclass(kw_only=True) +class CompleteResourceTokenAuthOutput(_SerdeShape): + """Dataclass for CompleteResourceTokenAuthOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) @@ -1333,6 +1779,14 @@ class ConfigurationBundleRef(_SerdeShape): bundle_version: str """The version of the configuration bundle.""" +class ConfigurationBundleRefDict(TypedDict, total=False): + """Dictionary form of `ConfigurationBundleRef`.""" + + bundle_arn: Required[str] + """The Amazon Resource Name (ARN) of the configuration bundle.""" + bundle_version: Required[str] + """The version of the configuration bundle.""" + @dataclass(kw_only=True) class ConfigurationBundleToolEntry(_SerdeShape): """Maps a tool name to its JSON path within a configuration bundle.""" @@ -1345,6 +1799,17 @@ class ConfigurationBundleToolEntry(_SerdeShape): contains the tool description. """ +class ConfigurationBundleToolEntryDict(TypedDict, total=False): + """Dictionary form of `ConfigurationBundleToolEntry`.""" + + tool_name: Required[str] + """The name of the tool.""" + tool_description_json_path: Required[str] + """ + The JSON path within the configuration bundle's components that + contains the tool description. + """ + @dataclass(kw_only=True) class ConflictException(ServiceError, _SerdeShape): """ @@ -1384,6 +1849,13 @@ Content = Union[ContentText | ContentUnknown] class _ContentDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Content: ... +class ContentTextDict(TypedDict): + text: str + """The text content of the memory item.""" + +ContentDict = Union[ContentTextDict] +"""Dictionary form of `Content`, setting exactly one variant.""" + @dataclass(kw_only=True) class ContentBlock(_SerdeShape): """A block of content in a response.""" @@ -1456,6 +1928,13 @@ ContentSource = Union[ContentSourceInline | ContentSourceUnknown] class _ContentSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ContentSource: ... +class ContentSourceInlineDict(TypedDict): + inline: InlineMemoryContent | InlineMemoryContentDict + """The content included directly in the request.""" + +ContentSourceDict = Union[ContentSourceInlineDict] +"""Dictionary form of `ContentSource`, setting exactly one variant.""" + @dataclass(kw_only=True) class ContentStartEvent(_SerdeShape): """ @@ -1513,6 +1992,17 @@ evaluated within the agent's execution flow. class _ContextDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Context: ... +class ContextSpanContextDict(TypedDict): + span_context: SpanContext | SpanContextDict + """ + The span context information that uniquely identifies the trace and span + being evaluated, including session ID, trace ID, and span ID for precise + targeting within the agent's execution flow. + """ + +ContextDict = Union[ContextSpanContextDict] +"""Dictionary form of `Context`, setting exactly one variant.""" + @dataclass(kw_only=True) class ControlStats(_SerdeShape): """Statistics for the control variant in an A/B test.""" @@ -1536,6 +2026,17 @@ class Conversational(_SerdeShape): or \"assistant\"). """ +class ConversationalDict(TypedDict, total=False): + """Dictionary form of `Conversational`.""" + + content: Required[Content | ContentDict] + """The content of the conversation message.""" + role: Required[str] + """ + The role of the participant in the conversation (for example, \"user\" + or \"assistant\"). + """ + @dataclass(kw_only=True) class CreateABTestInput(_SerdeShape): """Dataclass for CreateABTestInput structure.""" @@ -1586,6 +2087,55 @@ class CreateABTestInput(_SerdeShape): tags: dict[str, str] | None = ... """A map of tag keys and values to associate with the A/B test.""" +class CreateABTestInputDict(TypedDict, total=False): + """Dictionary form of `CreateABTestInput`.""" + + name: Required[str] + """The name of the A/B test. Must be unique within your account.""" + description: str | None + """The description of the A/B test.""" + gateway_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the gateway to use for traffic + splitting. + """ + variants: Required[Sequence[Variant | VariantDict]] + """ + The list of variants for the A/B test. Must contain exactly two + variants: a control (C) and a treatment (T1), each with a configuration + bundle or target reference and a traffic weight. + """ + gateway_filter: GatewayFilter | GatewayFilterDict | None + """ + Optional filter to restrict which gateway target paths are included in + the A/B test. + """ + evaluation_config: Required[ABTestEvaluationConfig | ABTestEvaluationConfigDict] + """ + The evaluation configuration specifying which online evaluation + configurations to use for measuring variant performance. + """ + role_arn: Required[str] + """ + The IAM role ARN that grants permissions for the A/B test to access + gateway and evaluation resources. + """ + enable_on_create: bool | None + """ + Whether to enable the A/B test immediately upon creation. If true, + traffic splitting begins automatically. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, the service ignores the request, but does not return an error. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """A map of tag keys and values to associate with the A/B test.""" + @dataclass(kw_only=True) class CreateABTestOutput(_SerdeShape): """Dataclass for CreateABTestOutput structure.""" @@ -1671,6 +2221,63 @@ class CreateEventInput(_SerdeShape): namespace substitution during extraction. """ +class CreateEventInputDict(TypedDict, total=False): + """Dictionary form of `CreateEventInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource in which to create the + event. + """ + actor_id: Required[str] + """ + The identifier of the actor associated with this event. An actor + represents an entity that participates in sessions and generates events. + """ + session_id: str | None + """ + The identifier of the session in which this event occurs. A session + represents a sequence of related events. + """ + event_timestamp: Required[datetime] + """ + The timestamp when the event occurred. If not specified, the current + time is used. + """ + payload: Required[Sequence[PayloadType | PayloadTypeDict]] + """ + The content payload of the event. This can include conversational data, + JSON data, or binary content. + """ + branch: Branch | BranchDict | None + """ + The branch information for this event. Branches allow for organizing + events into different conversation threads or paths. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, AgentCore ignores the request, but does not return an error. + + This field is autopopulated if not provided. + """ + metadata: Mapping[str, MetadataValue | MetadataValueDict] | None + """The key-value metadata to attach to the event.""" + extraction_mode: str | None + """ + Controls long-term memory extraction for this event. When set to `SKIP`, + the event is stored in short-term memory but is excluded from long-term + memory extraction. If not specified, the event is processed for + extraction as usual. + """ + extraction_config: ExtractionConfig | ExtractionConfigDict | None + """ + The extraction configuration for long-term memory records. Use this + parameter to specify namespace variable keys and their values for + namespace substitution during extraction. + """ + @dataclass(kw_only=True) class CreateEventOutput(_SerdeShape): """Dataclass for CreateEventOutput structure.""" @@ -1709,6 +2316,31 @@ class CreatePaymentInstrumentInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreatePaymentInstrumentInputDict(TypedDict, total=False): + """Dictionary form of `CreatePaymentInstrumentInput`.""" + + user_id: str | None + """The user ID associated with this payment instrument.""" + agent_name: str | None + """The agent name associated with this request, used for observability.""" + payment_manager_arn: Required[str] + """The ARN of the payment manager that owns this payment instrument.""" + payment_connector_id: Required[str] + """The ID of the payment connector to use for this instrument.""" + payment_instrument_type: Required[str] + """The type of payment instrument being created.""" + payment_instrument_details: Required[ + PaymentInstrumentDetails | PaymentInstrumentDetailsDict + ] + """The details of the payment instrument.""" + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreatePaymentInstrumentOutput(_SerdeShape): """Response structure for creating a payment instrument.""" @@ -1745,6 +2377,27 @@ class CreatePaymentSessionInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreatePaymentSessionInputDict(TypedDict, total=False): + """Dictionary form of `CreatePaymentSessionInput`.""" + + user_id: str | None + """The user ID associated with this payment session.""" + agent_name: str | None + """The agent name associated with this request, used for observability.""" + payment_manager_arn: Required[str] + """The ARN of the payment manager that owns this session.""" + limits: SessionLimits | SessionLimitsDict | None + """The spending limits for this payment session.""" + expiry_time_in_minutes: Required[int] + """The session expiry time in minutes. Must be between 15 and 480 minutes.""" + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreatePaymentSessionOutput(_SerdeShape): """Response structure for creating a payment session.""" @@ -1788,6 +2441,28 @@ class CryptoX402PaymentInput(_SerdeShape): the default, and the only behavior for the `exact` scheme. """ +class CryptoX402PaymentInputDict(TypedDict, total=False): + """Dictionary form of `CryptoX402PaymentInput`.""" + + version: Required[str] + """The version of the X402 protocol.""" + payload: Required[Document] + """The X402 payment payload.""" + permit2_allowance_limit: str | None + """ + The maximum on-chain Permit2 allowance to grant before signing the + payment authorization, in the asset's smallest denomination. This field + is valid only for the `upto` (metered) scheme; supplying it for the + `exact` scheme returns a validation error. + + When set, the service approves an ERC-20 allowance for this amount + before processing the payment. The approval sets, rather than adds to, + the wallet's allowance. Set this field only when the wallet needs + approving, for example on its first `upto` payment, to avoid a redundant + on-chain transaction. Omit the field to skip allowance handling. This is + the default, and the only behavior for the `exact` scheme. + """ + @dataclass(kw_only=True) class CryptoX402PaymentOutput(_SerdeShape): """The output from a crypto X402 payment.""" @@ -1841,6 +2516,22 @@ DataSourceConfig = Union[ class _DataSourceConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> DataSourceConfig: ... +class DataSourceConfigCloudWatchLogsDict(TypedDict): + cloud_watch_logs: CloudWatchLogsSource | CloudWatchLogsSourceDict + """Configuration for pulling agent session traces from CloudWatch Logs.""" + +class DataSourceConfigOnlineEvaluationConfigSourceDict(TypedDict): + online_evaluation_config_source: ( + OnlineEvaluationConfigSource | OnlineEvaluationConfigSourceDict + ) + """Reference an existing OnlineEvaluationConfig as session source""" + +DataSourceConfigDict = Union[ + DataSourceConfigCloudWatchLogsDict + | DataSourceConfigOnlineEvaluationConfigSourceDict +] +"""Dictionary form of `DataSourceConfig`, setting exactly one variant.""" + @dataclass(kw_only=True) class DeleteABTestInput(_SerdeShape): """Dataclass for DeleteABTestInput structure.""" @@ -1848,6 +2539,12 @@ class DeleteABTestInput(_SerdeShape): ab_test_id: str | None = ... """The unique identifier of the A/B test to delete.""" +class DeleteABTestInputDict(TypedDict, total=False): + """Dictionary form of `DeleteABTestInput`.""" + + ab_test_id: Required[str] + """The unique identifier of the A/B test to delete.""" + @dataclass(kw_only=True) class DeleteABTestOutput(_SerdeShape): """Dataclass for DeleteABTestOutput structure.""" @@ -1873,6 +2570,12 @@ class DeleteBatchEvaluationInput(_SerdeShape): batch_evaluation_id: str | None = ... """The unique identifier of the batch evaluation to delete.""" +class DeleteBatchEvaluationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBatchEvaluationInput`.""" + + batch_evaluation_id: Required[str] + """The unique identifier of the batch evaluation to delete.""" + @dataclass(kw_only=True) class DeleteBatchEvaluationOutput(_SerdeShape): """Dataclass for DeleteBatchEvaluationOutput structure.""" @@ -1903,6 +2606,17 @@ class DeleteCapacityProviderSessionInput(_SerdeShape): session_id: str | None = ... """The unique identifier of the capacity provider session to delete.""" +class DeleteCapacityProviderSessionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCapacityProviderSessionInput`.""" + + capacity_provider_id: Required[str] + """ + The unique identifier of the capacity provider associated with the + session. + """ + session_id: Required[str] + """The unique identifier of the capacity provider session to delete.""" + @dataclass(kw_only=True) class DeleteCapacityProviderSessionOutput(_SerdeShape): """Dataclass for DeleteCapacityProviderSessionOutput structure.""" @@ -1944,6 +2658,21 @@ class DeleteEventInput(_SerdeShape): actor_id: str | None = ... """The identifier of the actor associated with the event to delete.""" +class DeleteEventInputDict(TypedDict, total=False): + """Dictionary form of `DeleteEventInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource from which to delete the + event. + """ + session_id: Required[str] + """The identifier of the session containing the event to delete.""" + event_id: Required[str] + """The identifier of the event to delete.""" + actor_id: Required[str] + """The identifier of the actor associated with the event to delete.""" + @dataclass(kw_only=True) class DeleteEventOutput(_SerdeShape): """Dataclass for DeleteEventOutput structure.""" @@ -1975,6 +2704,22 @@ class DeleteMemoryRecordInput(_SerdeShape): condition key authorization. """ +class DeleteMemoryRecordInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMemoryRecordInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource from which to delete the + memory record. + """ + memory_record_id: Required[str] + """The identifier of the memory record to delete.""" + namespace: str | None + """ + The namespace of the memory record to delete. This value is used for IAM + condition key authorization. + """ + @dataclass(kw_only=True) class DeleteMemoryRecordOutput(_SerdeShape): """Dataclass for DeleteMemoryRecordOutput structure.""" @@ -2008,6 +2753,24 @@ class DeletePaymentInstrumentInput(_SerdeShape): payment_instrument_id: str | None = ... """The payment instrument ID to delete.""" +class DeletePaymentInstrumentInputDict(TypedDict, total=False): + """Dictionary form of `DeletePaymentInstrumentInput`.""" + + user_id: str | None + """ + The user ID making the delete request. Must match the instrument's + userId. + """ + payment_manager_arn: Required[str] + """The payment manager ARN. Must match the instrument's paymentManagerArn.""" + payment_connector_id: Required[str] + """ + The payment connector ID. Must match the instrument's + paymentConnectorId. + """ + payment_instrument_id: Required[str] + """The payment instrument ID to delete.""" + @dataclass(kw_only=True) class DeletePaymentInstrumentOutput(_SerdeShape): """Response structure for deleting a payment instrument.""" @@ -2036,6 +2799,16 @@ class DeletePaymentSessionInput(_SerdeShape): payment_session_id: str | None = ... """The payment session ID to delete.""" +class DeletePaymentSessionInputDict(TypedDict, total=False): + """Dictionary form of `DeletePaymentSessionInput`.""" + + user_id: str | None + """The user ID making the delete request. Must match the session's userId.""" + payment_manager_arn: Required[str] + """The payment manager ARN. Must match the session's paymentManagerArn.""" + payment_session_id: Required[str] + """The payment session ID to delete.""" + @dataclass(kw_only=True) class DeletePaymentSessionOutput(_SerdeShape): """Response structure for deleting a payment session.""" @@ -2057,6 +2830,12 @@ class DeleteRecommendationInput(_SerdeShape): recommendation_id: str | None = ... """The unique identifier of the recommendation to delete.""" +class DeleteRecommendationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRecommendationInput`.""" + + recommendation_id: Required[str] + """The unique identifier of the recommendation to delete.""" + @dataclass(kw_only=True) class DeleteRecommendationOutput(_SerdeShape): """Dataclass for DeleteRecommendationOutput structure.""" @@ -2125,6 +2904,17 @@ class DomainFilter(_SerdeShape): exclude: list[str] | None = ... """The domains to never return results from.""" +class DomainFilterDict(TypedDict, total=False): + """Dictionary form of `DomainFilter`.""" + + include: Sequence[str] | None + """ + The domains to return results from. Results from other domains are not + returned. + """ + exclude: Sequence[str] | None + """The domains to never return results from.""" + @dataclass(kw_only=True) class DuplicateIdException(ServiceError, _SerdeShape): """ @@ -2164,6 +2954,26 @@ class EfsConfiguration(_SerdeShape): EFS) file system that owns the access point. """ +class EfsConfigurationDict(TypedDict, total=False): + """Dictionary form of `EfsConfiguration`.""" + + access_point_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Elastic File System (Amazon + EFS) access point to mount. + """ + mount_path: Required[str] + """ + The absolute path within the session at which the access point is + mounted, for example `/mnt/efs`. Each mount path must be unique across + all file system configurations in the session. + """ + file_system_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Elastic File System (Amazon + EFS) file system that owns the access point. + """ + @dataclass(kw_only=True) class EmbeddedCryptoWallet(_SerdeShape): """Embedded crypto wallet instrument details.""" @@ -2186,6 +2996,27 @@ class EmbeddedCryptoWallet(_SerdeShape): wallet linking or onboarding. """ +class EmbeddedCryptoWalletDict(TypedDict, total=False): + """Dictionary form of `EmbeddedCryptoWallet`.""" + + network: Required[str] + """ + The blockchain network for this embedded crypto wallet. Supported + networks: ETHEREUM, SOLANA. + """ + linked_accounts: Required[Sequence[LinkedAccount | LinkedAccountDict]] + """ + List of linked accounts linked to this wallet. Each represents a way the + end user can authenticate to this wallet. + """ + wallet_address: str | None + """The wallet address on the specified blockchain network.""" + redirect_url: str | None + """ + URL for the end user to complete a provider-specific action such as + wallet linking or onboarding. + """ + @dataclass(kw_only=True) class EvaluateInput(_SerdeShape): """Dataclass for EvaluateInput structure.""" @@ -2220,6 +3051,41 @@ class EvaluateInput(_SerdeShape): ID. """ +class EvaluateInputDict(TypedDict, total=False): + """Dictionary form of `EvaluateInput`.""" + + evaluator_id: Required[str] + """ + The unique identifier of the evaluator to use for scoring. Can be a + built-in evaluator (e.g., `Builtin.Helpfulness`, `Builtin.Correctness`) + or a custom evaluator Id created through the control plane API. + """ + evaluation_input: Required[EvaluationInput | EvaluationInputDict] + """ + The input data containing agent session spans to be evaluated. Includes + a list of spans in OpenTelemetry format from supported frameworks like + Strands (AgentCore Runtime) or LangGraph with OpenInference + instrumentation. + """ + evaluation_target: EvaluationTarget | EvaluationTargetDict | None + """ + The specific trace or span IDs to evaluate within the provided input. + Allows targeting evaluation at different levels: individual tool calls, + single request-response interactions (traces), or entire conversation + sessions. + """ + evaluation_reference_inputs: ( + Sequence[EvaluationReferenceInput | EvaluationReferenceInputDict] | None + ) + """ + Ground truth data to compare against agent responses during evaluation. + Allows to provide expected responses, assertions, and expected tool + trajectories at different evaluation levels. Session-level reference + inputs apply to the entire conversation, while trace-level reference + inputs target specific request-response interactions identified by trace + ID. + """ + @dataclass(kw_only=True) class EvaluateOutput(_SerdeShape): """Dataclass for EvaluateOutput structure.""" @@ -2267,6 +3133,16 @@ Supports text content for expected responses and assertions. class _EvaluationContentDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluationContent: ... +class EvaluationContentTextDict(TypedDict): + text: str + """ + The text content of the ground truth data. Used for expected response + text and assertion statements. + """ + +EvaluationContentDict = Union[EvaluationContentTextDict] +"""Dictionary form of `EvaluationContent`, setting exactly one variant.""" + @dataclass(kw_only=True) class EvaluationExpectedTrajectory(_SerdeShape): """The expected tool call trajectory for trajectory-based evaluation.""" @@ -2274,6 +3150,12 @@ class EvaluationExpectedTrajectory(_SerdeShape): tool_names: list[str] | None = ... """The list of tool names representing the expected tool call sequence.""" +class EvaluationExpectedTrajectoryDict(TypedDict, total=False): + """Dictionary form of `EvaluationExpectedTrajectory`.""" + + tool_names: Sequence[str] | None + """The list of tool names representing the expected tool call sequence.""" + @dataclass class EvaluationInputSessionSpans(_SerdeShape): """ @@ -2306,6 +3188,18 @@ evaluation. class _EvaluationInputDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluationInput: ... +class EvaluationInputSessionSpansDict(TypedDict): + session_spans: Sequence[Document] + """ + The collection of spans representing agent execution traces within a + session. Each span contains detailed information about tool calls, model + interactions, and other agent activities that can be evaluated for + quality and performance. + """ + +EvaluationInputDict = Union[EvaluationInputSessionSpansDict] +"""Dictionary form of `EvaluationInput`, setting exactly one variant.""" + @dataclass(kw_only=True) class EvaluationJobResults(_SerdeShape): """ @@ -2356,6 +3250,16 @@ data. class _EvaluationMetadataDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluationMetadata: ... +class EvaluationMetadataSessionMetadataDict(TypedDict): + session_metadata: Sequence[SessionMetadataShape | SessionMetadataShapeDict] + """ + A list of session metadata entries containing ground truth data and test + scenario identifiers for specific sessions. + """ + +EvaluationMetadataDict = Union[EvaluationMetadataSessionMetadataDict] +"""Dictionary form of `EvaluationMetadata`, setting exactly one variant.""" + @dataclass(kw_only=True) class EvaluationReferenceInput(_SerdeShape): """ @@ -2388,6 +3292,36 @@ class EvaluationReferenceInput(_SerdeShape): expected to invoke. """ +class EvaluationReferenceInputDict(TypedDict, total=False): + """Dictionary form of `EvaluationReferenceInput`.""" + + context: Required[Context | ContextDict] + """ + The span context that identifies which session or trace this reference + input applies to, used for correlating ground truth with agent output. + """ + expected_response: EvaluationContent | EvaluationContentDict | None + """ + The expected response for trace-level evaluation. Built-in evaluators + that support this field compare the agent's actual response against + this value for assessment. Custom evaluators can access it through the + `{expected_response}` placeholder in their instructions. + """ + assertions: Sequence[EvaluationContent | EvaluationContentDict] | None + """ + A list of assertion statements for session-level evaluation. Each + assertion describes an expected behavior or outcome the agent should + demonstrate during the session. + """ + expected_trajectory: ( + EvaluationExpectedTrajectory | EvaluationExpectedTrajectoryDict | None + ) + """ + The expected tool call sequence for session-level trajectory evaluation. + Contains a list of tool names representing the tools the agent is + expected to invoke. + """ + @dataclass(kw_only=True) class EvaluationResultContent(_SerdeShape): """ @@ -2518,6 +3452,25 @@ levels: tool calls, traces, or sessions. class _EvaluationTargetDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluationTarget: ... +class EvaluationTargetSpanIdsDict(TypedDict): + span_ids: Sequence[str] + """ + The list of specific span IDs to evaluate within the provided traces. + Used to target evaluation at individual tool calls or specific + operations within the agent's execution flow. + """ + +class EvaluationTargetTraceIdsDict(TypedDict): + trace_ids: Sequence[str] + """ + The list of trace IDs to evaluate, representing complete + request-response interactions. Used to evaluate entire conversation + turns or specific agent interactions within a session. + """ + +EvaluationTargetDict = Union[EvaluationTargetSpanIdsDict | EvaluationTargetTraceIdsDict] +"""Dictionary form of `EvaluationTarget`, setting exactly one variant.""" + @dataclass(kw_only=True) class Evaluator(_SerdeShape): """An evaluator to run against sessions during batch evaluation.""" @@ -2528,6 +3481,15 @@ class Evaluator(_SerdeShape): evaluators (e.g., `Builtin.Helpfulness`) or custom evaluators. """ +class EvaluatorDict(TypedDict, total=False): + """Dictionary form of `Evaluator`.""" + + evaluator_id: Required[str] + """ + The unique identifier of the evaluator. Can reference built-in + evaluators (e.g., `Builtin.Helpfulness`) or custom evaluators. + """ + @dataclass(kw_only=True) class EvaluatorMetric(_SerdeShape): """ @@ -2609,6 +3571,16 @@ class EventMetadataFilterExpression(_SerdeShape): right: RightExpression | None = ... """Right operand of the event metadata filter expression.""" +class EventMetadataFilterExpressionDict(TypedDict, total=False): + """Dictionary form of `EventMetadataFilterExpression`.""" + + left: Required[LeftExpression | LeftExpressionDict] + """Left operand of the event metadata filter expression.""" + operator: Required[str] + """Operator applied to the event metadata filter expression.""" + right: RightExpression | RightExpressionDict | None + """Right operand of the event metadata filter expression.""" + @dataclass(kw_only=True) class ExecutionSummaryAffectedSession(_SerdeShape): """A session associated with an execution summary cluster.""" @@ -2679,6 +3651,32 @@ class ExternalProxy(_SerdeShape): proxies). """ +class ExternalProxyDict(TypedDict, total=False): + """Dictionary form of `ExternalProxy`.""" + + server: Required[str] + """ + The hostname of the proxy server. Must be a valid DNS hostname (maximum + 253 characters). + """ + port: Required[int] + """The port number of the proxy server. Valid range: 1-65535.""" + domain_patterns: Sequence[str] | None + """ + Optional array of domain patterns that should route through this + specific proxy. Supports `.example.com` for subdomain matching (matches + any subdomain of example.com) or `example.com` for exact domain + matching. If omitted, this proxy acts as a catch-all for domains not + matched by other proxies. Maximum 100 patterns per proxy, each up to 253 + characters. + """ + credentials: ProxyCredentials | ProxyCredentialsDict | None + """ + Optional authentication credentials for the proxy server. If omitted, + the proxy is accessed without authentication (useful for IP-allowlisted + proxies). + """ + @dataclass(kw_only=True) class ExtractionConfig(_SerdeShape): """ @@ -2694,6 +3692,16 @@ class ExtractionConfig(_SerdeShape): control namespace hierarchy. """ +class ExtractionConfigDict(TypedDict, total=False): + """Dictionary form of `ExtractionConfig`.""" + + namespace_variables: Mapping[str, str] | None + """ + A map of `namespaceKeys` to their values. The service substitutes these + values into `namespaceTemplates` during long-term memory extraction to + control namespace hierarchy. + """ + @dataclass(kw_only=True) class ExtractionJob(_SerdeShape): """ @@ -2704,6 +3712,12 @@ class ExtractionJob(_SerdeShape): job_id: str """The unique identifier of the extraction job.""" +class ExtractionJobDict(TypedDict, total=False): + """Dictionary form of `ExtractionJob`.""" + + job_id: Required[str] + """The unique identifier of the extraction job.""" + @dataclass(kw_only=True) class ExtractionJobFilterInput(_SerdeShape): """Filters for querying memory extraction jobs based on various criteria.""" @@ -2729,6 +3743,30 @@ class ExtractionJobFilterInput(_SerdeShape): with this status are returned. """ +class ExtractionJobFilterInputDict(TypedDict, total=False): + """Dictionary form of `ExtractionJobFilterInput`.""" + + strategy_id: str | None + """ + The memory strategy identifier to filter extraction jobs by. If + specified, only extraction jobs with this strategy ID are returned. + """ + session_id: str | None + """ + The unique identifier of the session. If specified, only extraction jobs + with this session ID are returned. + """ + actor_id: str | None + """ + The identifier of the actor. If specified, only extraction jobs with + this actor ID are returned. + """ + status: str | None + """ + The status of the extraction job. If specified, only extraction jobs + with this status are returned. + """ + @dataclass class ExtractionJobMessagesMessagesList(_SerdeShape): """The list of messages that compose this extraction job.""" @@ -2839,9 +3877,20 @@ class FailureSubCategoryCluster(_SerdeShape): class FilterInput(_SerdeShape): """Contains filter criteria for listing events.""" - branch: BranchFilter | None = ... + branch: BranchFilter | None = ... + """The branch filter criteria to apply when listing events.""" + event_metadata: list[EventMetadataFilterExpression] | None = ... + """Event metadata filter criteria to apply when retrieving events.""" + +class FilterInputDict(TypedDict, total=False): + """Dictionary form of `FilterInput`.""" + + branch: BranchFilter | BranchFilterDict | None """The branch filter criteria to apply when listing events.""" - event_metadata: list[EventMetadataFilterExpression] | None = ... + event_metadata: ( + Sequence[EventMetadataFilterExpression | EventMetadataFilterExpressionDict] + | None + ) """Event metadata filter criteria to apply when retrieving events.""" @dataclass @@ -2883,6 +3932,25 @@ FilterValue = Union[ class _FilterValueDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> FilterValue: ... +class FilterValueStringValueDict(TypedDict): + string_value: str + """A string value for text-based filtering.""" + +class FilterValueDoubleValueDict(TypedDict): + double_value: float + """A numeric value for numerical filtering and comparisons.""" + +class FilterValueBooleanValueDict(TypedDict): + boolean_value: bool + """A boolean value for true/false filtering conditions.""" + +FilterValueDict = Union[ + FilterValueStringValueDict + | FilterValueDoubleValueDict + | FilterValueBooleanValueDict +] +"""Dictionary form of `FilterValue`, setting exactly one variant.""" + class FindingTargetType(UnknownEnumMixin, StrEnum): """ The type of location in a session that a finding points to: a span ID, a @@ -2903,6 +3971,12 @@ class GatewayFilter(_SerdeShape): target_paths: list[str] | None = ... """A list of target path patterns to include in the A/B test.""" +class GatewayFilterDict(TypedDict, total=False): + """Dictionary form of `GatewayFilter`.""" + + target_paths: Sequence[str] | None + """A list of target path patterns to include in the A/B test.""" + @dataclass(kw_only=True) class GetABTestInput(_SerdeShape): """Dataclass for GetABTestInput structure.""" @@ -2910,6 +3984,12 @@ class GetABTestInput(_SerdeShape): ab_test_id: str | None = ... """The unique identifier of the A/B test to retrieve.""" +class GetABTestInputDict(TypedDict, total=False): + """Dictionary form of `GetABTestInput`.""" + + ab_test_id: Required[str] + """The unique identifier of the A/B test to retrieve.""" + @dataclass(kw_only=True) class GetABTestOutput(_SerdeShape): """Dataclass for GetABTestOutput structure.""" @@ -2990,6 +4070,26 @@ class GetAgentCardInput(_SerdeShape): `dev`. If you don't provide a value, the DEFAULT alias is used. """ +class GetAgentCardInputDict(TypedDict, total=False): + """Dictionary form of `GetAgentCardInput`.""" + + runtime_session_id: str | None + """ + The session ID that the AgentCore Runtime agent is using. + + This field is autopopulated if not provided. + """ + agent_runtime_arn: Required[str] + """ + The ARN of the AgentCore Runtime agent for which you want to get the A2A + agent card. + """ + qualifier: str | None + """ + Optional qualifier to specify an agent alias, such as `prod`code> or + `dev`. If you don't provide a value, the DEFAULT alias is used. + """ + @dataclass(kw_only=True) class GetAgentCardOutput(_SerdeShape): """Dataclass for GetAgentCardOutput structure.""" @@ -3018,6 +4118,12 @@ class GetBatchEvaluationInput(_SerdeShape): batch_evaluation_id: str | None = ... """The unique identifier of the batch evaluation to retrieve.""" +class GetBatchEvaluationInputDict(TypedDict, total=False): + """Dictionary form of `GetBatchEvaluationInput`.""" + + batch_evaluation_id: Required[str] + """The unique identifier of the batch evaluation to retrieve.""" + @dataclass(kw_only=True) class GetBatchEvaluationOutput(_SerdeShape): """Dataclass for GetBatchEvaluationOutput structure.""" @@ -3099,6 +4205,14 @@ class GetBrowserSessionInput(_SerdeShape): session_id: str | None = ... """The unique identifier of the browser session to retrieve.""" +class GetBrowserSessionInputDict(TypedDict, total=False): + """Dictionary form of `GetBrowserSessionInput`.""" + + browser_identifier: Required[str] + """The unique identifier of the browser associated with the session.""" + session_id: Required[str] + """The unique identifier of the browser session to retrieve.""" + @dataclass(kw_only=True) class GetBrowserSessionOutput(_SerdeShape): """Dataclass for GetBrowserSessionOutput structure.""" @@ -3182,6 +4296,17 @@ class GetCodeInterpreterSessionInput(_SerdeShape): session_id: str | None = ... """The unique identifier of the code interpreter session to retrieve.""" +class GetCodeInterpreterSessionInputDict(TypedDict, total=False): + """Dictionary form of `GetCodeInterpreterSessionInput`.""" + + code_interpreter_identifier: Required[str] + """ + The unique identifier of the code interpreter associated with the + session. + """ + session_id: Required[str] + """The unique identifier of the code interpreter session to retrieve.""" + @dataclass(kw_only=True) class GetCodeInterpreterSessionOutput(_SerdeShape): """Dataclass for GetCodeInterpreterSessionOutput structure.""" @@ -3229,6 +4354,18 @@ class GetEventInput(_SerdeShape): event_id: str | None = ... """The identifier of the event to retrieve.""" +class GetEventInputDict(TypedDict, total=False): + """Dictionary form of `GetEventInput`.""" + + memory_id: Required[str] + """The identifier of the AgentCore Memory resource containing the event.""" + session_id: Required[str] + """The identifier of the session containing the event.""" + actor_id: Required[str] + """The identifier of the actor associated with the event.""" + event_id: Required[str] + """The identifier of the event to retrieve.""" + @dataclass(kw_only=True) class GetEventOutput(_SerdeShape): """Dataclass for GetEventOutput structure.""" @@ -3260,6 +4397,22 @@ class GetMemoryRecordInput(_SerdeShape): IAM condition key authorization. """ +class GetMemoryRecordInputDict(TypedDict, total=False): + """Dictionary form of `GetMemoryRecordInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource containing the memory + record. + """ + memory_record_id: Required[str] + """The identifier of the memory record to retrieve.""" + namespace: str | None + """ + The namespace of the memory record to retrieve. This value is used for + IAM condition key authorization. + """ + @dataclass(kw_only=True) class GetMemoryRecordOutput(_SerdeShape): """Dataclass for GetMemoryRecordOutput structure.""" @@ -3299,6 +4452,30 @@ class GetPaymentInstrumentBalanceInput(_SerdeShape): are returned. """ +class GetPaymentInstrumentBalanceInputDict(TypedDict, total=False): + """Dictionary form of `GetPaymentInstrumentBalanceInput`.""" + + user_id: str | None + """The user ID associated with this payment instrument.""" + agent_name: str | None + """The agent name associated with this request, used for observability.""" + payment_manager_arn: Required[str] + """The ARN of the payment manager that owns this payment instrument.""" + payment_connector_id: Required[str] + """The ID of the payment connector associated with this instrument.""" + payment_instrument_id: Required[str] + """The ID of the payment instrument to query balance for.""" + chain: Required[str] + """ + The specific blockchain chain to query balance on. Required because + balances are chain-specific. + """ + token: Required[str] + """ + The token to query balance for. Only tokens supported for X402 payments + are returned. + """ + @dataclass(kw_only=True) class GetPaymentInstrumentBalanceOutput(_SerdeShape): """Response structure for getting payment instrument balance.""" @@ -3330,6 +4507,20 @@ class GetPaymentInstrumentInput(_SerdeShape): payment_instrument_id: str | None = ... """The ID of the payment instrument to retrieve.""" +class GetPaymentInstrumentInputDict(TypedDict, total=False): + """Dictionary form of `GetPaymentInstrumentInput`.""" + + user_id: str | None + """The user ID associated with this payment instrument.""" + agent_name: str | None + """The agent name associated with this request, used for observability.""" + payment_manager_arn: Required[str] + """The ARN of the payment manager that owns this payment instrument.""" + payment_connector_id: str | None + """The ID of the payment connector.""" + payment_instrument_id: Required[str] + """The ID of the payment instrument to retrieve.""" + @dataclass(kw_only=True) class GetPaymentInstrumentOutput(_SerdeShape): """Response structure for getting a payment instrument.""" @@ -3357,6 +4548,18 @@ class GetPaymentSessionInput(_SerdeShape): payment_session_id: str | None = ... """The ID of the payment session to retrieve.""" +class GetPaymentSessionInputDict(TypedDict, total=False): + """Dictionary form of `GetPaymentSessionInput`.""" + + user_id: str | None + """The user ID associated with this payment session.""" + agent_name: str | None + """The agent name associated with this request, used for observability.""" + payment_manager_arn: Required[str] + """The ARN of the payment manager that owns this session.""" + payment_session_id: Required[str] + """The ID of the payment session to retrieve.""" + @dataclass(kw_only=True) class GetPaymentSessionOutput(_SerdeShape): """Response structure for getting a payment session.""" @@ -3378,6 +4581,12 @@ class GetRecommendationInput(_SerdeShape): recommendation_id: str | None = ... """The unique identifier of the recommendation to retrieve.""" +class GetRecommendationInputDict(TypedDict, total=False): + """Dictionary form of `GetRecommendationInput`.""" + + recommendation_id: Required[str] + """The unique identifier of the recommendation to retrieve.""" + @dataclass(kw_only=True) class GetRecommendationOutput(_SerdeShape): """Dataclass for GetRecommendationOutput structure.""" @@ -3431,6 +4640,20 @@ class GetResourceApiKeyInput(_SerdeShape): retrieving the API key. """ +class GetResourceApiKeyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourceApiKeyInput`.""" + + workload_identity_token: Required[str] + """ + The identity token of the workload from which you want to retrieve the + API key. + """ + resource_credential_provider_name: Required[str] + """ + The credential provider name for the resource from which you are + retrieving the API key. + """ + @dataclass(kw_only=True) class GetResourceApiKeyOutput(_SerdeShape): """Dataclass for GetResourceApiKeyOutput structure.""" @@ -3502,6 +4725,62 @@ class GetResourceOauth2TokenInput(_SerdeShape): the intended recipients of the OAuth2 token. """ +class GetResourceOauth2TokenInputDict(TypedDict, total=False): + """Dictionary form of `GetResourceOauth2TokenInput`.""" + + workload_identity_token: Required[str] + """ + The identity token of the workload from which you want to retrieve the + OAuth2 token. + """ + resource_credential_provider_name: Required[str] + """The name of the resource's credential provider.""" + scopes: Required[Sequence[str]] + """The OAuth scopes being requested.""" + oauth2_flow: Required[str] + """The type of flow to be performed.""" + session_uri: str | None + """ + Unique identifier for the user's authentication session for retrieving + OAuth2 tokens. This ID tracks the authorization flow state across + multiple requests and responses during the OAuth2 authentication + process. + """ + resource_oauth2_return_url: str | None + """ + The callback URL to redirect to after the OAuth 2.0 token retrieval is + complete. This URL must be one of the provided URLs configured for the + workload identity. + """ + force_authentication: bool | None + """ + Indicates whether to always initiate a new three-legged OAuth (3LO) + flow, regardless of any existing session. + """ + custom_parameters: Mapping[str, str] | None + """ + A map of custom parameters to include in the authorization request to + the resource credential provider. These parameters are in addition to + the standard OAuth 2.0 flow parameters, and will not override them. + """ + custom_state: str | None + """ + An opaque string that will be sent back to the callback URL provided in + resourceOauth2ReturnUrl. This state should be used to protect the + callback URL of your application against CSRF attacks by ensuring the + response corresponds to the original request. + """ + resources: Sequence[str] | None + """ + The resources to include in the token request. These are used to specify + the target resources for which the OAuth2 token is being requested. + """ + audiences: Sequence[str] | None + """ + The audiences to include in the token request. These are used to specify + the intended recipients of the OAuth2 token. + """ + @dataclass(kw_only=True) class GetResourceOauth2TokenOutput(_SerdeShape): """Dataclass for GetResourceOauth2TokenOutput structure.""" @@ -3547,6 +4826,21 @@ class GetResourcePaymentTokenInput(_SerdeShape): a type-safe, vendor-specific structure. """ +class GetResourcePaymentTokenInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePaymentTokenInput`.""" + + workload_identity_token: Required[str] + """Workload access token for authorization.""" + resource_credential_provider_name: Required[str] + """Name of the payment credential provider to use.""" + payment_token_request: Required[ + PaymentTokenRequestInput | PaymentTokenRequestInputDict + ] + """ + Vendor-specific token request input. Contains all request parameters in + a type-safe, vendor-specific structure. + """ + @dataclass(kw_only=True) class GetResourcePaymentTokenOutput(_SerdeShape): """Dataclass for GetResourcePaymentTokenOutput structure.""" @@ -3573,6 +4867,14 @@ class GetWorkloadAccessTokenForJWTInput(_SerdeShape): user_token: str | None = ... """The OAuth 2.0 token issued by the user's identity provider.""" +class GetWorkloadAccessTokenForJWTInputDict(TypedDict, total=False): + """Dictionary form of `GetWorkloadAccessTokenForJWTInput`.""" + + workload_name: Required[str] + """The unique identifier for the registered workload.""" + user_token: Required[str] + """The OAuth 2.0 token issued by the user's identity provider.""" + @dataclass(kw_only=True) class GetWorkloadAccessTokenForJWTOutput(_SerdeShape): """Dataclass for GetWorkloadAccessTokenForJWTOutput structure.""" @@ -3602,6 +4904,17 @@ class GetWorkloadAccessTokenForUserIdInput(_SerdeShape): user_id: str | None = ... """The ID of the user for whom you are retrieving the access token.""" +class GetWorkloadAccessTokenForUserIdInputDict(TypedDict, total=False): + """Dictionary form of `GetWorkloadAccessTokenForUserIdInput`.""" + + workload_name: Required[str] + """ + The name of the workload from which you want to retrieve the access + token. + """ + user_id: Required[str] + """The ID of the user for whom you are retrieving the access token.""" + @dataclass(kw_only=True) class GetWorkloadAccessTokenForUserIdOutput(_SerdeShape): """Dataclass for GetWorkloadAccessTokenForUserIdOutput structure.""" @@ -3623,6 +4936,12 @@ class GetWorkloadAccessTokenInput(_SerdeShape): workload_name: str | None = ... """The unique identifier for the registered workload.""" +class GetWorkloadAccessTokenInputDict(TypedDict, total=False): + """Dictionary form of `GetWorkloadAccessTokenInput`.""" + + workload_name: Required[str] + """The unique identifier for the registered workload.""" + @dataclass(kw_only=True) class GetWorkloadAccessTokenOutput(_SerdeShape): """Dataclass for GetWorkloadAccessTokenOutput structure.""" @@ -3662,6 +4981,13 @@ GroundTruthSource = Union[GroundTruthSourceInline | GroundTruthSourceUnknown] class _GroundTruthSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> GroundTruthSource: ... +class GroundTruthSourceInlineDict(TypedDict): + inline: InlineGroundTruth | InlineGroundTruthDict + """Inline ground truth data provided directly in the request.""" + +GroundTruthSourceDict = Union[GroundTruthSourceInlineDict] +"""Dictionary form of `GroundTruthSource`, setting exactly one variant.""" + @dataclass(kw_only=True) class GroundTruthTurn(_SerdeShape): """Ground truth data for a single conversation turn.""" @@ -3671,6 +4997,14 @@ class GroundTruthTurn(_SerdeShape): expected_response: EvaluationContent | None = ... """The expected response for this conversation turn.""" +class GroundTruthTurnDict(TypedDict, total=False): + """Dictionary form of `GroundTruthTurn`.""" + + input: GroundTruthTurnInput | GroundTruthTurnInputDict | None + """The input for this conversation turn.""" + expected_response: EvaluationContent | EvaluationContentDict | None + """The expected response for this conversation turn.""" + @dataclass class GroundTruthTurnInputPrompt(_SerdeShape): """The text prompt for this conversation turn.""" @@ -3693,6 +5027,16 @@ GroundTruthTurnInput = Union[GroundTruthTurnInputPrompt | GroundTruthTurnInputUn class _GroundTruthTurnInputDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> GroundTruthTurnInput: ... +class GroundTruthTurnInputPromptDict(TypedDict): + prompt: str + """The text prompt for this conversation turn.""" + +GroundTruthTurnInputDict = Union[GroundTruthTurnInputPromptDict] +""" +Dictionary form of `GroundTruthTurnInput`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class HarnessAgentCoreBrowserConfig(_SerdeShape): """Configuration for AgentCore Browser.""" @@ -3700,6 +5044,12 @@ class HarnessAgentCoreBrowserConfig(_SerdeShape): browser_arn: str | None = ... """If not populated, the built-in Browser ARN is used.""" +class HarnessAgentCoreBrowserConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreBrowserConfig`.""" + + browser_arn: str | None + """If not populated, the built-in Browser ARN is used.""" + @dataclass(kw_only=True) class HarnessAgentCoreCodeInterpreterConfig(_SerdeShape): """Configuration for AgentCore Code Interpreter.""" @@ -3707,6 +5057,12 @@ class HarnessAgentCoreCodeInterpreterConfig(_SerdeShape): code_interpreter_arn: str | None = ... """If not populated, the built-in Code Interpreter ARN is used.""" +class HarnessAgentCoreCodeInterpreterConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreCodeInterpreterConfig`.""" + + code_interpreter_arn: str | None + """If not populated, the built-in Code Interpreter ARN is used.""" + @dataclass(kw_only=True) class HarnessAgentCoreGatewayConfig(_SerdeShape): """Configuration for AgentCore Gateway.""" @@ -3719,6 +5075,17 @@ class HarnessAgentCoreGatewayConfig(_SerdeShape): if omitted. """ +class HarnessAgentCoreGatewayConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessAgentCoreGatewayConfig`.""" + + gateway_arn: Required[str] + """The ARN of the desired AgentCore Gateway.""" + outbound_auth: HarnessGatewayOutboundAuth | HarnessGatewayOutboundAuthDict | None + """ + How harness authenticates to this Gateway. Defaults to AWS_IAM (SigV4) + if omitted. + """ + class HarnessBedrockApiFormat(UnknownEnumMixin, StrEnum): CONVERSE_STREAM = "converse_stream" """Use the Bedrock Converse Stream API format.""" @@ -3750,6 +5117,28 @@ class HarnessBedrockModelConfig(_SerdeShape): unchanged. """ +class HarnessBedrockModelConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessBedrockModelConfig`.""" + + model_id: Required[str] + """The Bedrock model ID.""" + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response per + iteration. + """ + temperature: float | None + """The temperature to set when calling the model.""" + top_p: float | None + """The topP set when calling the model.""" + api_format: str | None + """The API format to use when calling the Bedrock provider.""" + additional_params: Document | None + """ + Provider-specific parameters passed through to the model provider + unchanged. + """ + @dataclass class HarnessContentBlockText(_SerdeShape): """Text content.""" @@ -3796,6 +5185,30 @@ HarnessContentBlock = Union[ class _HarnessContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> HarnessContentBlock: ... +class HarnessContentBlockTextDict(TypedDict): + text: str + """Text content.""" + +class HarnessContentBlockToolUseDict(TypedDict): + tool_use: HarnessToolUseBlock | HarnessToolUseBlockDict + """A tool use request from the model.""" + +class HarnessContentBlockToolResultDict(TypedDict): + tool_result: HarnessToolResultBlock | HarnessToolResultBlockDict + """A tool execution result.""" + +class HarnessContentBlockReasoningContentDict(TypedDict): + reasoning_content: HarnessReasoningContentBlock | HarnessReasoningContentBlockDict + """Model reasoning content.""" + +HarnessContentBlockDict = Union[ + HarnessContentBlockTextDict + | HarnessContentBlockToolUseDict + | HarnessContentBlockToolResultDict + | HarnessContentBlockReasoningContentDict +] +"""Dictionary form of `HarnessContentBlock`, setting exactly one variant.""" + @dataclass class HarnessContentBlockDeltaText(_SerdeShape): """A text delta.""" @@ -3961,29 +5374,81 @@ class _HarnessGatewayOutboundAuthDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessGatewayOutboundAuth: ... +class HarnessGatewayOutboundAuthAwsIamDict(TypedDict): + aws_iam: Unit | UnitDict + """SigV4-sign requests using the agent's execution role.""" + +class HarnessGatewayOutboundAuthNoneDict(TypedDict): + none: Unit | UnitDict + """No authentication.""" + +class HarnessGatewayOutboundAuthOauthDict(TypedDict): + oauth: OAuthCredentialProvider | OAuthCredentialProviderDict + """ + OAuth 2.0 authentication via AgentCore Identity. + + The `AUTHORIZATION_CODE` grant type is not supported for outbound + authentication from a harness to an AgentCore Gateway, even when + `defaultReturnUrl` is specified. + """ + +HarnessGatewayOutboundAuthDict = Union[ + HarnessGatewayOutboundAuthAwsIamDict + | HarnessGatewayOutboundAuthNoneDict + | HarnessGatewayOutboundAuthOauthDict +] +""" +Dictionary form of `HarnessGatewayOutboundAuth`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class HarnessGeminiModelConfig(_SerdeShape): """ - Configuration for a Google Gemini model provider. Requires an API key - stored in AgentCore Identity. + Configuration for a Google Gemini model provider. Requires an API key + stored in AgentCore Identity. + """ + + model_id: str + """The Gemini model ID.""" + api_key_arn: str + """The ARN of your Gemini API key on AgentCore Identity.""" + max_tokens: int | None = ... + """ + The maximum number of tokens to allow in the generated response per + iteration. + """ + temperature: float | None = ... + """The temperature to set when calling the model.""" + top_p: float | None = ... + """The topP set when calling the model.""" + top_k: int | None = ... + """The topK set when calling the model.""" + additional_params: Document | None = ... + """ + Provider-specific parameters passed through to the Gemini model provider + unchanged. """ - model_id: str +class HarnessGeminiModelConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessGeminiModelConfig`.""" + + model_id: Required[str] """The Gemini model ID.""" - api_key_arn: str + api_key_arn: Required[str] """The ARN of your Gemini API key on AgentCore Identity.""" - max_tokens: int | None = ... + max_tokens: int | None """ The maximum number of tokens to allow in the generated response per iteration. """ - temperature: float | None = ... + temperature: float | None """The temperature to set when calling the model.""" - top_p: float | None = ... + top_p: float | None """The topP set when calling the model.""" - top_k: int | None = ... + top_k: int | None """The topK set when calling the model.""" - additional_params: Document | None = ... + additional_params: Document | None """ Provider-specific parameters passed through to the Gemini model provider unchanged. @@ -4032,6 +5497,14 @@ class HarnessInlineFunctionConfig(_SerdeShape): input_schema: Document """JSON Schema describing the tool's input parameters.""" +class HarnessInlineFunctionConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessInlineFunctionConfig`.""" + + description: Required[str] + """Description of what the tool does, provided to the model.""" + input_schema: Required[Document] + """JSON Schema describing the tool's input parameters.""" + @dataclass(kw_only=True) class HarnessLiteLlmModelConfig(_SerdeShape): """ @@ -4063,6 +5536,33 @@ class HarnessLiteLlmModelConfig(_SerdeShape): unchanged. """ +class HarnessLiteLlmModelConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessLiteLlmModelConfig`.""" + + model_id: Required[str] + """The LiteLLM model identifier (e.g., \"anthropic/claude-3-sonnet\").""" + api_key_arn: str | None + """ + The ARN of the API key in AgentCore Identity for authenticating with the + model provider. + """ + api_base: str | None + """The base URL for the model provider's API endpoint.""" + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response per + iteration. + """ + temperature: float | None + """The temperature to set when calling the model.""" + top_p: float | None + """The topP set when calling the model.""" + additional_params: Document | None + """ + Provider-specific parameters passed through to the model provider + unchanged. + """ + @dataclass(kw_only=True) class HarnessMessage(_SerdeShape): """A message in the conversation.""" @@ -4072,6 +5572,14 @@ class HarnessMessage(_SerdeShape): content: list[HarnessContentBlock] """The content blocks of the message.""" +class HarnessMessageDict(TypedDict, total=False): + """Dictionary form of `HarnessMessage`.""" + + role: Required[str] + """The role of the message sender.""" + content: Required[Sequence[HarnessContentBlock | HarnessContentBlockDict]] + """The content blocks of the message.""" + @dataclass(kw_only=True) class HarnessMessageStartEvent(_SerdeShape): """Event indicating the start of a message.""" @@ -4146,6 +5654,36 @@ class _HarnessModelConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessModelConfiguration: ... +class HarnessModelConfigurationBedrockModelConfigDict(TypedDict): + bedrock_model_config: HarnessBedrockModelConfig | HarnessBedrockModelConfigDict + """Configuration for an Amazon Bedrock model.""" + +class HarnessModelConfigurationOpenAiModelConfigDict(TypedDict): + open_ai_model_config: HarnessOpenAiModelConfig | HarnessOpenAiModelConfigDict + """Configuration for an OpenAI model.""" + +class HarnessModelConfigurationGeminiModelConfigDict(TypedDict): + gemini_model_config: HarnessGeminiModelConfig | HarnessGeminiModelConfigDict + """Configuration for a Google Gemini model.""" + +class HarnessModelConfigurationLiteLlmModelConfigDict(TypedDict): + lite_llm_model_config: HarnessLiteLlmModelConfig | HarnessLiteLlmModelConfigDict + """ + The LiteLLM model configuration for connecting to third-party model + providers. + """ + +HarnessModelConfigurationDict = Union[ + HarnessModelConfigurationBedrockModelConfigDict + | HarnessModelConfigurationOpenAiModelConfigDict + | HarnessModelConfigurationGeminiModelConfigDict + | HarnessModelConfigurationLiteLlmModelConfigDict +] +""" +Dictionary form of `HarnessModelConfiguration`, setting exactly one +variant. +""" + class HarnessOpenAiApiFormat(UnknownEnumMixin, StrEnum): CHAT_COMPLETIONS = "chat_completions" """Use the Chat Completions API format.""" @@ -4182,6 +5720,32 @@ class HarnessOpenAiModelConfig(_SerdeShape): unchanged. """ +class HarnessOpenAiModelConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessOpenAiModelConfig`.""" + + model_id: Required[str] + """The OpenAI model ID.""" + api_key_arn: Required[str] + """The ARN of your OpenAI API key on AgentCore Identity.""" + api_base: str | None + """Optional custom endpoint URL for an OpenAI-compatible endpoint.""" + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response per + iteration. + """ + temperature: float | None + """The temperature to set when calling the model.""" + top_p: float | None + """The topP set when calling the model.""" + api_format: str | None + """The API format to use when calling the OpenAI provider.""" + additional_params: Document | None + """ + Provider-specific parameters passed through to the model provider + unchanged. + """ + @dataclass class HarnessReasoningContentBlockReasoningText(_SerdeShape): """The reasoning text.""" @@ -4216,6 +5780,23 @@ class _HarnessReasoningContentBlockDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessReasoningContentBlock: ... +class HarnessReasoningContentBlockReasoningTextDict(TypedDict): + reasoning_text: HarnessReasoningTextBlock | HarnessReasoningTextBlockDict + """The reasoning text.""" + +class HarnessReasoningContentBlockRedactedContentDict(TypedDict): + redacted_content: bytes + """Redacted reasoning content.""" + +HarnessReasoningContentBlockDict = Union[ + HarnessReasoningContentBlockReasoningTextDict + | HarnessReasoningContentBlockRedactedContentDict +] +""" +Dictionary form of `HarnessReasoningContentBlock`, setting exactly one +variant. +""" + @dataclass class HarnessReasoningContentBlockDeltaText(_SerdeShape): """Reasoning text delta.""" @@ -4266,6 +5847,14 @@ class HarnessReasoningTextBlock(_SerdeShape): signature: str | None = ... """Signature for verifying the reasoning content.""" +class HarnessReasoningTextBlockDict(TypedDict, total=False): + """Dictionary form of `HarnessReasoningTextBlock`.""" + + text: Required[str] + """The reasoning text.""" + signature: str | None + """Signature for verifying the reasoning content.""" + @dataclass(kw_only=True) class HarnessRemoteMcpConfig(_SerdeShape): """Configuration for connecting to a remote MCP server.""" @@ -4280,6 +5869,21 @@ class HarnessRemoteMcpConfig(_SerdeShape): authentication. """ +class HarnessRemoteMcpConfigDict(TypedDict, total=False): + """Dictionary form of `HarnessRemoteMcpConfig`.""" + + url: Required[str] + """URL of the MCP endpoint.""" + headers: Mapping[str, str] | None + """Custom headers to include when connecting to the remote MCP server.""" + outbound_auth: ( + HarnessRemoteMcpOutboundAuth | HarnessRemoteMcpOutboundAuthDict | None + ) + """ + How the harness authenticates to this MCP server. Defaults to no + authentication. + """ + @dataclass class HarnessRemoteMcpOutboundAuthAwsIam(_SerdeShape): """ @@ -4318,6 +5922,26 @@ class _HarnessRemoteMcpOutboundAuthDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessRemoteMcpOutboundAuth: ... +class HarnessRemoteMcpOutboundAuthAwsIamDict(TypedDict): + aws_iam: IamCredentialProvider | IamCredentialProviderDict + """ + Sign requests to the remote MCP server with Signature Version 4 (SigV4) + using the harness execution role. If you don't specify a Region, the + harness Region is used. + """ + +class HarnessRemoteMcpOutboundAuthNoneDict(TypedDict): + none: Unit | UnitDict + """No authentication.""" + +HarnessRemoteMcpOutboundAuthDict = Union[ + HarnessRemoteMcpOutboundAuthAwsIamDict | HarnessRemoteMcpOutboundAuthNoneDict +] +""" +Dictionary form of `HarnessRemoteMcpOutboundAuth`, setting exactly one +variant. +""" + @dataclass class HarnessSkillPath(_SerdeShape): """The filesystem path to the skill definition.""" @@ -4364,6 +5988,30 @@ HarnessSkill = Union[ class _HarnessSkillDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> HarnessSkill: ... +class HarnessSkillPathDict(TypedDict): + path: str + """The filesystem path to the skill definition.""" + +class HarnessSkillS3Dict(TypedDict): + s3: HarnessSkillS3Source | HarnessSkillS3SourceDict + """An S3 source containing the skill.""" + +class HarnessSkillGitDict(TypedDict): + git: HarnessSkillGitSource | HarnessSkillGitSourceDict + """A git repository containing the skill.""" + +class HarnessSkillAwsSkillsDict(TypedDict): + aws_skills: HarnessSkillAwsSkillsSource | HarnessSkillAwsSkillsSourceDict + """Amazon Web Services Skills baked into the Harness's underlying Runtime.""" + +HarnessSkillDict = Union[ + HarnessSkillPathDict + | HarnessSkillS3Dict + | HarnessSkillGitDict + | HarnessSkillAwsSkillsDict +] +"""Dictionary form of `HarnessSkill`, setting exactly one variant.""" + @dataclass(kw_only=True) class HarnessSkillAwsSkillsSource(_SerdeShape): """Passed to show that Amazon Web Services Skills should be included.""" @@ -4374,6 +6022,15 @@ class HarnessSkillAwsSkillsSource(_SerdeShape): ['core-skills/*']. """ +class HarnessSkillAwsSkillsSourceDict(TypedDict, total=False): + """Dictionary form of `HarnessSkillAwsSkillsSource`.""" + + paths: Sequence[str] | None + """ + Optionally filter allowed skills with glob syntax, e.g., + ['core-skills/*']. + """ + @dataclass(kw_only=True) class HarnessSkillGitAuth(_SerdeShape): """Authentication configuration for accessing a private git repository.""" @@ -4386,6 +6043,17 @@ class HarnessSkillGitAuth(_SerdeShape): username: str | None = ... """Username for authentication. Defaults to 'oauth2' if not specified.""" +class HarnessSkillGitAuthDict(TypedDict, total=False): + """Dictionary form of `HarnessSkillGitAuth`.""" + + credential_arn: Required[str] + """ + The ARN of the credential in AgentCore Identity containing the password + or personal access token. + """ + username: str | None + """Username for authentication. Defaults to 'oauth2' if not specified.""" + @dataclass(kw_only=True) class HarnessSkillGitSource(_SerdeShape): """A git repository source for a skill.""" @@ -4397,6 +6065,16 @@ class HarnessSkillGitSource(_SerdeShape): auth: HarnessSkillGitAuth | None = ... """Authentication configuration for private repositories.""" +class HarnessSkillGitSourceDict(TypedDict, total=False): + """Dictionary form of `HarnessSkillGitSource`.""" + + url: Required[str] + """The HTTPS URL of the git repository.""" + path: str | None + """Subdirectory within the repository containing the skill.""" + auth: HarnessSkillGitAuth | HarnessSkillGitAuthDict | None + """Authentication configuration for private repositories.""" + @dataclass(kw_only=True) class HarnessSkillS3Source(_SerdeShape): """An S3 source for a skill.""" @@ -4407,6 +6085,15 @@ class HarnessSkillS3Source(_SerdeShape): s3://bucket/skills/my-skill/). """ +class HarnessSkillS3SourceDict(TypedDict, total=False): + """Dictionary form of `HarnessSkillS3Source`.""" + + uri: Required[str] + """ + The S3 URI pointing to the skill directory (e.g., + s3://bucket/skills/my-skill/). + """ + class HarnessStopReason(UnknownEnumMixin, StrEnum): END_TURN = "end_turn" TOOL_USE = "tool_use" @@ -4457,6 +6144,16 @@ class _HarnessSystemContentBlockDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessSystemContentBlock: ... +class HarnessSystemContentBlockTextDict(TypedDict): + text: str + """The text content of the system prompt block.""" + +HarnessSystemContentBlockDict = Union[HarnessSystemContentBlockTextDict] +""" +Dictionary form of `HarnessSystemContentBlock`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class HarnessTokenUsage(_SerdeShape): """Token usage counts for the invocation.""" @@ -4486,6 +6183,19 @@ class HarnessTool(_SerdeShape): config: HarnessToolConfiguration | None = ... """Tool-specific configuration.""" +class HarnessToolDict(TypedDict, total=False): + """Dictionary form of `HarnessTool`.""" + + type: Required[str] + """The type of tool.""" + name: str | None + """ + Unique name for the tool. If not provided, a name will be inferred or + generated. + """ + config: HarnessToolConfiguration | HarnessToolConfigurationDict | None + """Tool-specific configuration.""" + @dataclass class HarnessToolConfigurationRemoteMcp(_SerdeShape): """Configuration for remote MCP server.""" @@ -4541,6 +6251,45 @@ class _HarnessToolConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessToolConfiguration: ... +class HarnessToolConfigurationRemoteMcpDict(TypedDict): + remote_mcp: HarnessRemoteMcpConfig | HarnessRemoteMcpConfigDict + """Configuration for remote MCP server.""" + +class HarnessToolConfigurationAgentCoreBrowserDict(TypedDict): + agent_core_browser: ( + HarnessAgentCoreBrowserConfig | HarnessAgentCoreBrowserConfigDict + ) + """Configuration for AgentCore Browser.""" + +class HarnessToolConfigurationAgentCoreGatewayDict(TypedDict): + agent_core_gateway: ( + HarnessAgentCoreGatewayConfig | HarnessAgentCoreGatewayConfigDict + ) + """Configuration for AgentCore Gateway.""" + +class HarnessToolConfigurationInlineFunctionDict(TypedDict): + inline_function: HarnessInlineFunctionConfig | HarnessInlineFunctionConfigDict + """Configuration for an inline function tool.""" + +class HarnessToolConfigurationAgentCoreCodeInterpreterDict(TypedDict): + agent_core_code_interpreter: ( + HarnessAgentCoreCodeInterpreterConfig + | HarnessAgentCoreCodeInterpreterConfigDict + ) + """Configuration for AgentCore Code Interpreter.""" + +HarnessToolConfigurationDict = Union[ + HarnessToolConfigurationRemoteMcpDict + | HarnessToolConfigurationAgentCoreBrowserDict + | HarnessToolConfigurationAgentCoreGatewayDict + | HarnessToolConfigurationInlineFunctionDict + | HarnessToolConfigurationAgentCoreCodeInterpreterDict +] +""" +Dictionary form of `HarnessToolConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class HarnessToolResultBlock(_SerdeShape): """The result of a tool execution.""" @@ -4554,6 +6303,20 @@ class HarnessToolResultBlock(_SerdeShape): type: str | None = ... """The type of tool use that produced this result.""" +class HarnessToolResultBlockDict(TypedDict, total=False): + """Dictionary form of `HarnessToolResultBlock`.""" + + tool_use_id: Required[str] + """The tool use ID that this result corresponds to.""" + content: Required[ + Sequence[HarnessToolResultContentBlock | HarnessToolResultContentBlockDict] + ] + """The content of the tool result.""" + status: str | None + """The status of the tool execution.""" + type: str | None + """The type of tool use that produced this result.""" + @dataclass class HarnessToolResultBlockDeltaText(_SerdeShape): """A text tool result delta.""" @@ -4631,6 +6394,22 @@ class _HarnessToolResultContentBlockDeserializer: self, deserializer: ShapeDeserializer ) -> HarnessToolResultContentBlock: ... +class HarnessToolResultContentBlockTextDict(TypedDict): + text: str + """Text content.""" + +class HarnessToolResultContentBlockJsonDict(TypedDict): + json: Document + """JSON content.""" + +HarnessToolResultContentBlockDict = Union[ + HarnessToolResultContentBlockTextDict | HarnessToolResultContentBlockJsonDict +] +""" +Dictionary form of `HarnessToolResultContentBlock`, setting exactly +one variant. +""" + @dataclass(kw_only=True) class HarnessToolResultMetadataBlockDelta(_SerdeShape): """Delta payload for a tool result metadata.""" @@ -4660,6 +6439,20 @@ class HarnessToolUseBlock(_SerdeShape): server_name: str | None = ... """The name of the MCP server providing this tool.""" +class HarnessToolUseBlockDict(TypedDict, total=False): + """Dictionary form of `HarnessToolUseBlock`.""" + + name: Required[str] + """The name of the tool to call.""" + tool_use_id: Required[str] + """The unique ID of this tool use.""" + input: Required[Document] + """The JSON input to pass to the tool.""" + type: str | None + """The type of tool use.""" + server_name: str | None + """The name of the MCP server providing this tool.""" + @dataclass(kw_only=True) class HarnessToolUseBlockDelta(_SerdeShape): """Delta payload for tool use input.""" @@ -4709,6 +6502,21 @@ class IamCredentialProvider(_SerdeShape): defaults to the Region of the resource that makes the request. """ +class IamCredentialProviderDict(TypedDict, total=False): + """Dictionary form of `IamCredentialProvider`.""" + + service: Required[str] + """ + The name of the Amazon Web Services service used for SigV4 signing. This + value identifies the service to authenticate with when sending requests + to the target endpoint. + """ + region: str | None + """ + The Amazon Web Services Region used for SigV4 signing. If not specified, + defaults to the Region of the resource that makes the request. + """ + @dataclass(kw_only=True) class IngestDataInput(_SerdeShape): """Dataclass for IngestDataInput structure.""" @@ -4748,6 +6556,44 @@ class IngestDataInput(_SerdeShape): This field is autopopulated if not provided. """ +class IngestDataInputDict(TypedDict, total=False): + """Dictionary form of `IngestDataInput`.""" + + memory_id: Required[str] + """The identifier of the AgentCore Memory resource to ingest content into.""" + source: Required[ContentSource | ContentSourceDict] + """The content to ingest. Only inline content is supported.""" + content_timestamp: Required[datetime] + """The timestamp of when the content occurred.""" + actor_id: Required[str] + """ + The identifier of the actor associated with this content. An actor + represents an entity that participates in sessions and generates + content. + """ + session_id: str | None + """ + The identifier of the session that the content belongs to. If not + provided, a session identifier is generated and returned in the + response. + """ + extraction_config: ExtractionConfig | ExtractionConfigDict | None + """ + The extraction configuration for long-term memory records. Use this + parameter to specify namespace variable keys and their values for + namespace substitution during extraction. + """ + metadata: Mapping[str, MetadataValue | MetadataValueDict] | None + """The key-value metadata to attach to the content.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, AgentCore ignores the request, but does not return an error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class IngestDataOutput(_SerdeShape): """Dataclass for IngestDataOutput structure.""" @@ -4799,6 +6645,19 @@ conversational or JSON content. class _IngestPayloadTypeDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> IngestPayloadType: ... +class IngestPayloadTypeConversationalDict(TypedDict): + conversational: Conversational | ConversationalDict + """The conversational content for this payload item.""" + +class IngestPayloadTypeJsonDict(TypedDict): + json: MemoryJsonData | MemoryJsonDataDict + """The JSON content for this payload item.""" + +IngestPayloadTypeDict = Union[ + IngestPayloadTypeConversationalDict | IngestPayloadTypeJsonDict +] +"""Dictionary form of `IngestPayloadType`, setting exactly one variant.""" + @dataclass(kw_only=True) class InlineGroundTruth(_SerdeShape): """ @@ -4816,6 +6675,21 @@ class InlineGroundTruth(_SerdeShape): and expected response. """ +class InlineGroundTruthDict(TypedDict, total=False): + """Dictionary form of `InlineGroundTruth`.""" + + assertions: Sequence[EvaluationContent | EvaluationContentDict] | None + """Assertions for evaluation, reuses common model EvaluationContentList.""" + expected_trajectory: ( + EvaluationExpectedTrajectory | EvaluationExpectedTrajectoryDict | None + ) + """The expected tool call sequence for trajectory evaluation.""" + turns: Sequence[GroundTruthTurn | GroundTruthTurnDict] | None + """ + A list of per-turn ground truth data, each containing an input prompt + and expected response. + """ + @dataclass(kw_only=True) class InlineMemoryContent(_SerdeShape): """ @@ -4826,6 +6700,12 @@ class InlineMemoryContent(_SerdeShape): payload: list[IngestPayloadType] """The list of content payload items to ingest.""" +class InlineMemoryContentDict(TypedDict, total=False): + """Dictionary form of `InlineMemoryContent`.""" + + payload: Required[Sequence[IngestPayloadType | IngestPayloadTypeDict]] + """The list of content payload items to ingest.""" + @dataclass(kw_only=True) class InputContentBlock(_SerdeShape): """A block of input content.""" @@ -4837,6 +6717,16 @@ class InputContentBlock(_SerdeShape): blob: bytes | None = ... """The binary input content.""" +class InputContentBlockDict(TypedDict, total=False): + """Dictionary form of `InputContentBlock`.""" + + path: Required[str] + """The path to the input content.""" + text: str | None + """The text input content.""" + blob: bytes | None + """The binary input content.""" + @dataclass(kw_only=True) class Insight(_SerdeShape): """ @@ -4849,6 +6739,12 @@ class Insight(_SerdeShape): insight_id: str """The unique identifier of the insight to run.""" +class InsightDict(TypedDict, total=False): + """Dictionary form of `Insight`.""" + + insight_id: Required[str] + """The unique identifier of the insight to run.""" + @dataclass(kw_only=True) class InsightResult(_SerdeShape): """ diff --git a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/models_1.pyi b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/models_1.pyi index edf8afc2c..892212259 100644 --- a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/models_1.pyi +++ b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/models_1.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.aio.interfaces import StreamingBlob from smithy_core.deserializers import ShapeDeserializer @@ -13,66 +14,101 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( ABTestEvaluationConfig, + ABTestEvaluationConfigDict, ABTestSummary, AccessDeniedException, ActorSummary, AffectedSession, AgentTracesConfig, + AgentTracesConfigDict, Amount, + AmountDict, AutomationStreamUpdate, + AutomationStreamUpdateDict, AvailableLimits, BasicAuth, + BasicAuthDict, BatchEvaluationSummary, BrowserAction, + BrowserActionDict, BrowserActionResult, BrowserEnterprisePolicy, + BrowserEnterprisePolicyDict, BrowserExtension, + BrowserExtensionDict, BrowserProfileConfiguration, + BrowserProfileConfigurationDict, BrowserSessionStream, BrowserSessionSummary, Certificate, + CertificateDict, CloudWatchOutputConfig, + CloudWatchOutputConfigDict, CodeInterpreterSessionSummary, CoinbaseCdpTokenRequestInput, + CoinbaseCdpTokenRequestInputDict, CoinbaseCdpTokenResponseOutput, ConfidenceInterval, ConfigurationBundleRef, + ConfigurationBundleRefDict, ConfigurationBundleToolEntry, + ConfigurationBundleToolEntryDict, ContentDeltaEvent, ContentStartEvent, ContentStopEvent, Conversational, + ConversationalDict, CryptoX402PaymentInput, + CryptoX402PaymentInputDict, CryptoX402PaymentOutput, DataSourceConfig, + DataSourceConfigDict, Descriptors, DomainFilter, + DomainFilterDict, EfsConfiguration, + EfsConfigurationDict, EmbeddedCryptoWallet, + EmbeddedCryptoWalletDict, EvaluationMetadata, + EvaluationMetadataDict, Evaluator, + EvaluatorDict, Event, ExternalProxy, + ExternalProxyDict, ExtractionJob, + ExtractionJobDict, ExtractionJobFilterInput, + ExtractionJobFilterInputDict, ExtractionJobMetadata, FilterInput, + FilterInputDict, GatewayFilter, + GatewayFilterDict, GroundTruthSource, + GroundTruthSourceDict, HarnessContentBlockDeltaEvent, HarnessContentBlockStartEvent, HarnessContentBlockStopEvent, HarnessHookEvent, HarnessMessage, + HarnessMessageDict, HarnessMessageStartEvent, HarnessMessageStopEvent, HarnessMetadataEvent, HarnessModelConfiguration, + HarnessModelConfigurationDict, HarnessSkill, + HarnessSkillDict, HarnessSystemContentBlock, + HarnessSystemContentBlockDict, HarnessTool, + HarnessToolDict, InputContentBlock, + InputContentBlockDict, Insight, + InsightDict, InternalServerException, ServiceError, _SerdeShape, @@ -149,6 +185,63 @@ class InvokeAgentRuntimeCommandInput(_SerdeShape): configuration parameters such as timeout settings. """ +class InvokeAgentRuntimeCommandInputDict(TypedDict, total=False): + """Dictionary form of `InvokeAgentRuntimeCommandInput`.""" + + content_type: str | None + """ + The MIME type of the input data in the request payload. This tells the + agent runtime how to interpret the payload data. Common values include + application/json for JSON data. + """ + accept: str | None + """ + The desired MIME type for the response from the agent runtime command. + This tells the agent runtime what format to use for the response data. + Common values include application/json for JSON data. + """ + runtime_session_id: str | None + """ + The unique identifier of the runtime session in which to execute the + command. This session ID is used to maintain state and context across + multiple command invocations. + + This field is autopopulated if not provided. + """ + trace_id: str | None + """The trace identifier for request tracking.""" + trace_parent: str | None + """The parent trace information for distributed tracing.""" + trace_state: str | None + """The trace state information for distributed tracing.""" + baggage: str | None + """Additional context information for distributed tracing.""" + agent_runtime_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the agent runtime on which to execute + the command. This identifies the specific agent runtime environment + where the command will run. + """ + qualifier: str | None + """ + The qualifier to use for the agent runtime. This is an endpoint name + that points to a specific version. If not specified, Amazon Bedrock + AgentCore uses the default endpoint of the agent runtime. + """ + account_id: str | None + """ + The identifier of the Amazon Web Services account for the agent runtime + resource. This parameter is required when you specify an agent ID + instead of the full ARN for `agentRuntimeArn`. + """ + body: Required[ + InvokeAgentRuntimeCommandRequestBody | InvokeAgentRuntimeCommandRequestBodyDict + ] + """ + The request body containing the command to execute and optional + configuration parameters such as timeout settings. + """ + @dataclass(kw_only=True) class InvokeAgentRuntimeCommandOutput(_SerdeShape): """Response for InvokeAgentRuntimeCommand operation.""" @@ -206,6 +299,22 @@ class InvokeAgentRuntimeCommandRequestBody(_SerdeShape): Default is 300 seconds. Minimum is 1 second. Maximum is 3600 seconds. """ +class InvokeAgentRuntimeCommandRequestBodyDict(TypedDict, total=False): + """Dictionary form of `InvokeAgentRuntimeCommandRequestBody`.""" + + command: Required[str] + """ + The shell command to execute on the agent runtime. This command is + executed in the runtime environment and its output is streamed back to + the caller. + """ + timeout: int | None + """ + The maximum duration in seconds to wait for the command to complete. If + the command execution exceeds this timeout, it will be terminated. + Default is 300 seconds. Minimum is 1 second. Maximum is 3600 seconds. + """ + @dataclass class InvokeAgentRuntimeCommandStreamOutputChunk(_SerdeShape): """ @@ -394,6 +503,83 @@ class InvokeAgentRuntimeInput(_SerdeShape): user's request. """ +class InvokeAgentRuntimeInputDict(TypedDict, total=False): + """Dictionary form of `InvokeAgentRuntimeInput`.""" + + content_type: str | None + """ + The MIME type of the input data in the payload. This tells the agent + runtime how to interpret the payload data. Common values include + application/json for JSON data. + """ + accept: str | None + """ + The desired MIME type for the response from the agent runtime. This + tells the agent runtime what format to use for the response data. Common + values include application/json for JSON data. + """ + mcp_session_id: str | None + """The identifier of the MCP session.""" + runtime_session_id: str | None + """ + The identifier of the runtime session. + + This field is autopopulated if not provided. + """ + mcp_protocol_version: str | None + """The version of the MCP protocol being used.""" + mcp_method: str | None + """ + The MCP method being invoked. For example, `tools/call`, + `resources/read`, or `prompts/get`. + """ + mcp_name: str | None + """ + The name of the MCP resource, tool, or prompt being accessed. The value + depends on the method: + + - `tools/call` -- The tool name. + + - `resources/read` -- The resource URI. + + - `prompts/get` -- The prompt name. + """ + runtime_user_id: str | None + """The identifier of the runtime user.""" + trace_id: str | None + """The trace identifier for request tracking.""" + trace_parent: str | None + """The parent trace information for distributed tracing.""" + trace_state: str | None + """The trace state information for distributed tracing.""" + baggage: str | None + """Additional context information for distributed tracing.""" + agent_runtime_arn: Required[str] + """ + The identifier of the agent runtime to invoke. You can specify either + the full Amazon Web Services Resource Name (ARN) or the agent ID. If you + use the agent ID, you must also provide the `accountId` query parameter. + """ + qualifier: str | None + """ + The qualifier to use for the agent runtime. This is an endpoint name + that points to a specific version. If not specified, Amazon Bedrock + AgentCore uses the default endpoint of the agent runtime. + """ + account_id: str | None + """ + The identifier of the Amazon Web Services account for the agent runtime + resource. This parameter is required when you specify an agent ID + instead of the full ARN for `agentRuntimeArn`. + """ + payload: Required[bytes] + """ + The input data to send to the agent runtime. The format of this data + depends on the specific agent configuration and must match the specified + content type. For most agents, this is a JSON object containing the + user's request. + """ + @dataclass(kw_only=True) class InvokeAgentRuntimeOutput(_SerdeShape): """Dataclass for InvokeAgentRuntimeOutput structure.""" @@ -468,6 +654,27 @@ class InvokeBrowserInput(_SerdeShape): union must be set per request. """ +class InvokeBrowserInputDict(TypedDict, total=False): + """Dictionary form of `InvokeBrowserInput`.""" + + browser_identifier: Required[str] + """ + The unique identifier of the browser associated with the session. This + must match the identifier used when creating the session with + `StartBrowserSession`. + """ + session_id: Required[str] + """ + The unique identifier of the browser session on which to perform the + action. This must be an active session created with + `StartBrowserSession`. + """ + action: Required[BrowserAction | BrowserActionDict] + """ + The browser action to perform. Exactly one member of the `BrowserAction` + union must be set per request. + """ + @dataclass(kw_only=True) class InvokeBrowserOutput(_SerdeShape): """Response for the InvokeBrowser operation.""" @@ -521,6 +728,36 @@ class InvokeCodeInterpreterInput(_SerdeShape): being used. """ +class InvokeCodeInterpreterInputDict(TypedDict, total=False): + """Dictionary form of `InvokeCodeInterpreterInput`.""" + + code_interpreter_identifier: Required[str] + """ + The unique identifier of the code interpreter associated with the + session. This must match the identifier used when creating the session + with `StartCodeInterpreterSession`. + """ + session_id: str | None + """ + The unique identifier of the code interpreter session to use. This must + be an active session created with `StartCodeInterpreterSession`. If the + session has expired or been stopped, the request will fail. + """ + trace_id: str | None + """The trace identifier for request tracking.""" + trace_parent: str | None + """The parent trace information for distributed tracing.""" + name: Required[str] + """The name of the code interpreter to invoke.""" + arguments: ToolArguments | ToolArgumentsDict | None + """ + The arguments for the code interpreter. This includes the code to + execute and any additional parameters such as the programming language, + whether to clear the execution context, and other execution options. The + structure of this parameter depends on the specific code interpreter + being used. + """ + @dataclass(kw_only=True) class InvokeCodeInterpreterOutput(_SerdeShape): """Dataclass for InvokeCodeInterpreterOutput structure.""" @@ -615,6 +852,87 @@ class InvokeHarnessInput(_SerdeShape): the harness. """ +class InvokeHarnessInputDict(TypedDict, total=False): + """Dictionary form of `InvokeHarnessInput`.""" + + harness_arn: Required[str] + """The ARN of the harness to invoke.""" + qualifier: str | None + """The endpoint name to invoke. If omitted, the DEFAULT endpoint is used.""" + runtime_session_id: Required[str] + """ + The session ID for the invocation. Use the same session ID across + requests to continue a conversation. + """ + runtime_user_id: str | None + """ + An identifier for the end user making the request. This value is passed + through to the runtime container. + """ + trace_parent: str | None + """ + W3C trace context parent header containing version, trace ID, parent + span ID, and trace flags. + """ + trace_state: str | None + """W3C trace context state header for vendor-specific trace information.""" + trace_id: str | None + """Trace ID for maintaining observability through the operation.""" + baggage: str | None + """ + W3C Baggage header for user-defined context propagation. Format: + key1=value1,key2=value2 + """ + messages: Required[Sequence[HarnessMessage | HarnessMessageDict]] + """The messages to send to the agent.""" + model: HarnessModelConfiguration | HarnessModelConfigurationDict | None + """ + The model configuration to use for this invocation. If specified, + overrides the harness default. + """ + system_prompt: ( + Sequence[HarnessSystemContentBlock | HarnessSystemContentBlockDict] | None + ) + """ + The system prompt to use for this invocation. If specified, overrides + the harness default. + """ + tools: Sequence[HarnessTool | HarnessToolDict] | None + """ + The tools available to the agent for this invocation. If specified, + overrides the harness default. + """ + skills: Sequence[HarnessSkill | HarnessSkillDict] | None + """ + The skills available to the agent for this invocation. If specified, + overrides the harness default. + """ + allowed_tools: Sequence[str] | None + """ + The tools that the agent is allowed to use for this invocation. If + specified, overrides the harness default. + """ + max_iterations: int | None + """ + The maximum number of iterations the agent loop can execute. If + specified, overrides the harness default. + """ + max_tokens: int | None + """ + The maximum number of tokens the agent can generate per iteration. If + specified, overrides the harness default. + """ + timeout_seconds: int | None + """ + The maximum duration in seconds for the agent loop execution. If + specified, overrides the harness default. + """ + actor_id: str | None + """ + The actor ID for memory operations. Overrides the actor ID configured on + the harness. + """ + @dataclass(kw_only=True) class InvokeHarnessOutput(_SerdeShape): """Dataclass for InvokeHarnessOutput structure.""" @@ -742,6 +1060,21 @@ class InvokeWebSearchInput(_SerdeShape): filters: WebSearchFilters | None = ... """The filters to apply to the search results.""" +class InvokeWebSearchInputDict(TypedDict, total=False): + """Dictionary form of `InvokeWebSearchInput`.""" + + web_search_id: Required[str] + """ + The identifier of the web search tool to invoke. The Amazon Web + Services-managed web search tool is `web-search.v1`. + """ + search_query: Required[str] + """The text to search for.""" + max_results: int | None + """The maximum number of results to return. Defaults to 25.""" + filters: WebSearchFilters | WebSearchFiltersDict | None + """The filters to apply to the search results.""" + @dataclass(kw_only=True) class InvokeWebSearchOutput(_SerdeShape): """Response for the `InvokeWebSearch` operation.""" @@ -768,6 +1101,17 @@ class KeyPressArguments(_SerdeShape): 1. """ +class KeyPressArgumentsDict(TypedDict, total=False): + """Dictionary form of `KeyPressArguments`.""" + + key: Required[str] + """The key name to press (for example, `enter`, `tab`, `escape`).""" + presses: int | None + """ + The number of times to press the key. Valid range: 1--100. Defaults to + 1. + """ + @dataclass(kw_only=True) class KeyPressResult(_SerdeShape): """The result of a key press action.""" @@ -787,6 +1131,15 @@ class KeyShortcutArguments(_SerdeShape): keys. """ +class KeyShortcutArgumentsDict(TypedDict, total=False): + """Dictionary form of `KeyShortcutArguments`.""" + + keys: Required[Sequence[str]] + """ + The key combination to press (for example, `["ctrl", "s"]`). Maximum 5 + keys. + """ + @dataclass(kw_only=True) class KeyShortcutResult(_SerdeShape): """The result of a key shortcut action.""" @@ -803,6 +1156,12 @@ class KeyTypeArguments(_SerdeShape): text: str """The text string to type. Maximum length: 10,000 characters.""" +class KeyTypeArgumentsDict(TypedDict, total=False): + """Dictionary form of `KeyTypeArguments`.""" + + text: Required[str] + """The text string to type. Maximum length: 10,000 characters.""" + @dataclass(kw_only=True) class KeyTypeResult(_SerdeShape): """The result of a key type action.""" @@ -839,6 +1198,13 @@ LeftExpression = Union[LeftExpressionMetadataKey | LeftExpressionUnknown] class _LeftExpressionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> LeftExpression: ... +class LeftExpressionMetadataKeyDict(TypedDict): + metadata_key: str + """Key associated with the metadata in an event.""" + +LeftExpressionDict = Union[LeftExpressionMetadataKeyDict] +"""Dictionary form of `LeftExpression`, setting exactly one variant.""" + @dataclass class LinkedAccount_Email(_SerdeShape): """Email-based linked account.""" @@ -888,6 +1254,30 @@ wallet. Supports email, SMS, JWT, and OAuth2 approaches. class _LinkedAccountDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> LinkedAccount: ... +class LinkedAccount_EmailDict(TypedDict): + email: LinkedAccountEmail | LinkedAccountEmailDict + """Email-based linked account.""" + +class LinkedAccount_SmsDict(TypedDict): + sms: LinkedAccountSms | LinkedAccountSmsDict + """SMS-based linked account using phone number.""" + +class LinkedAccount_DeveloperJwtDict(TypedDict): + developer_jwt: LinkedAccountDeveloperJwt | LinkedAccountDeveloperJwtDict + """Developer JWT linked account with key ID and subject.""" + +class LinkedAccount_OAuth2Dict(TypedDict): + o_auth2: LinkedAccountOAuth2 | LinkedAccountOAuth2Dict + """OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).""" + +LinkedAccountDict = Union[ + LinkedAccount_EmailDict + | LinkedAccount_SmsDict + | LinkedAccount_DeveloperJwtDict + | LinkedAccount_OAuth2Dict +] +"""Dictionary form of `LinkedAccount`, setting exactly one variant.""" + @dataclass(kw_only=True) class LinkedAccountDeveloperJwt(_SerdeShape): """Authentication method using JWT with key ID and subject claims.""" @@ -903,14 +1293,37 @@ class LinkedAccountDeveloperJwt(_SerdeShape): that is the subject of the JWT. """ -@dataclass(kw_only=True) -class LinkedAccountEmail(_SerdeShape): - """Linked account using an email address.""" +class LinkedAccountDeveloperJwtDict(TypedDict, total=False): + """Dictionary form of `LinkedAccountDeveloperJwt`.""" - email_address: str + kid: Required[str] """ - The email address used for the linked account. Must be a valid email - format. + The key ID (kid) from the JWT header. Identifies which key was used to + sign the JWT. + """ + sub: Required[str] + """ + The subject (sub) claim from the JWT payload. Identifies the principal + that is the subject of the JWT. + """ + +@dataclass(kw_only=True) +class LinkedAccountEmail(_SerdeShape): + """Linked account using an email address.""" + + email_address: str + """ + The email address used for the linked account. Must be a valid email + format. + """ + +class LinkedAccountEmailDict(TypedDict, total=False): + """Dictionary form of `LinkedAccountEmail`.""" + + email_address: Required[str] + """ + The email address used for the linked account. Must be a valid email + format. """ @dataclass @@ -969,6 +1382,35 @@ Telegram, and GitHub providers. class _LinkedAccountOAuth2Deserializer: def deserialize(self, deserializer: ShapeDeserializer) -> LinkedAccountOAuth2: ... +class LinkedAccountOAuth2GoogleDict(TypedDict): + google: OAuth2Authentication | OAuth2AuthenticationDict + """Google OAuth2 authentication.""" + +class LinkedAccountOAuth2AppleDict(TypedDict): + apple: OAuth2Authentication | OAuth2AuthenticationDict + """Apple OAuth2 authentication.""" + +class LinkedAccountOAuth2XDict(TypedDict): + x: OAuth2Authentication | OAuth2AuthenticationDict + """X (formerly Twitter) OAuth2 authentication.""" + +class LinkedAccountOAuth2TelegramDict(TypedDict): + telegram: OAuth2Authentication | OAuth2AuthenticationDict + """Telegram OAuth2 authentication.""" + +class LinkedAccountOAuth2GithubDict(TypedDict): + github: OAuth2Authentication | OAuth2AuthenticationDict + """GitHub OAuth2 authentication.""" + +LinkedAccountOAuth2Dict = Union[ + LinkedAccountOAuth2GoogleDict + | LinkedAccountOAuth2AppleDict + | LinkedAccountOAuth2XDict + | LinkedAccountOAuth2TelegramDict + | LinkedAccountOAuth2GithubDict +] +"""Dictionary form of `LinkedAccountOAuth2`, setting exactly one variant.""" + @dataclass(kw_only=True) class LinkedAccountSms(_SerdeShape): """Linked account using a phone number in E.164 format.""" @@ -976,6 +1418,12 @@ class LinkedAccountSms(_SerdeShape): phone_number: str """The phone number in E.164 format (e.g., +1234567890).""" +class LinkedAccountSmsDict(TypedDict, total=False): + """Dictionary form of `LinkedAccountSms`.""" + + phone_number: Required[str] + """The phone number in E.164 format (e.g., +1234567890).""" + @dataclass(kw_only=True) class ListABTestsInput(_SerdeShape): """Dataclass for ListABTestsInput structure.""" @@ -994,6 +1442,23 @@ class ListABTestsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListABTestsInputDict(TypedDict, total=False): + """Dictionary form of `ListABTestsInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListABTestsOutput(_SerdeShape): """Dataclass for ListABTestsOutput structure.""" @@ -1035,6 +1500,26 @@ class ListActorsInput(_SerdeShape): results. """ +class ListActorsInputDict(TypedDict, total=False): + """Dictionary form of `ListActorsInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource for which to list + actors. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 20. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. + """ + @dataclass(kw_only=True) class ListActorsOutput(_SerdeShape): """Dataclass for ListActorsOutput structure.""" @@ -1072,6 +1557,23 @@ class ListBatchEvaluationsInput(_SerdeShape): field in the response in this field to return the next batch of results. """ +class ListBatchEvaluationsInputDict(TypedDict, total=False): + """Dictionary form of `ListBatchEvaluationsInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + @dataclass(kw_only=True) class ListBatchEvaluationsOutput(_SerdeShape): """Dataclass for ListBatchEvaluationsOutput structure.""" @@ -1122,6 +1624,35 @@ class ListBrowserSessionsInput(_SerdeShape): returned. """ +class ListBrowserSessionsInputDict(TypedDict, total=False): + """Dictionary form of `ListBrowserSessionsInput`.""" + + browser_identifier: Required[str] + """ + The unique identifier of the browser to list sessions for. If specified, + only sessions for this browser are returned. If not specified, sessions + for all browsers are returned. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 10. Valid values range from 1 to 100. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. If not specified, Amazon Bedrock AgentCore returns the first + page of results. + """ + status: str | None + """ + The status of the browser sessions to list. Valid values include ACTIVE, + STOPPING, and STOPPED. If not specified, sessions with any status are + returned. + """ + @dataclass(kw_only=True) class ListBrowserSessionsOutput(_SerdeShape): """Dataclass for ListBrowserSessionsOutput structure.""" @@ -1171,6 +1702,35 @@ class ListCodeInterpreterSessionsInput(_SerdeShape): any status are returned. """ +class ListCodeInterpreterSessionsInputDict(TypedDict, total=False): + """Dictionary form of `ListCodeInterpreterSessionsInput`.""" + + code_interpreter_identifier: Required[str] + """ + The unique identifier of the code interpreter to list sessions for. If + specified, only sessions for this code interpreter are returned. If not + specified, sessions for all code interpreters are returned. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 10. Valid values range from 1 to 100. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. If not specified, Amazon Bedrock AgentCore returns the first + page of results. + """ + status: str | None + """ + The status of the code interpreter sessions to list. Valid values + include ACTIVE, STOPPING, and STOPPED. If not specified, sessions with + any status are returned. + """ + @dataclass(kw_only=True) class ListCodeInterpreterSessionsOutput(_SerdeShape): """Dataclass for ListCodeInterpreterSessionsOutput structure.""" @@ -1222,6 +1782,37 @@ class ListEventsInput(_SerdeShape): results. """ +class ListEventsInputDict(TypedDict, total=False): + """Dictionary form of `ListEventsInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource for which to list + events. + """ + session_id: Required[str] + """The identifier of the session for which to list events.""" + actor_id: Required[str] + """The identifier of the actor for which to list events.""" + include_payloads: bool | None + """ + Specifies whether to include event payloads in the response. Set to true + to include payloads, or false to exclude them. + """ + filter: FilterInput | FilterInputDict | None + """Filter criteria to apply when listing events.""" + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 20. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. + """ + @dataclass(kw_only=True) class ListEventsOutput(_SerdeShape): """Dataclass for ListEventsOutput structure.""" @@ -1261,6 +1852,25 @@ class ListMemoryExtractionJobsInput(_SerdeShape): results. """ +class ListMemoryExtractionJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListMemoryExtractionJobsInput`.""" + + memory_id: Required[str] + """The unique identifier of the memory to list extraction jobs for.""" + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 20. + """ + filter: ExtractionJobFilterInput | ExtractionJobFilterInputDict | None + """Filter criteria to apply when listing extraction jobs.""" + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. + """ + @dataclass(kw_only=True) class ListMemoryExtractionJobsOutput(_SerdeShape): """Dataclass for ListMemoryExtractionJobsOutput structure.""" @@ -1320,6 +1930,51 @@ class ListMemoryRecordsInput(_SerdeShape): records. """ +class ListMemoryRecordsInputDict(TypedDict, total=False): + """Dictionary form of `ListMemoryRecordsInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource for which to list memory + records. + """ + namespace: str | None + """ + The exact namespace to filter memory records by. Returns all memory + records that matches the provided namespace. Either `namespace` or + `namespacePath` is required. + """ + namespace_path: str | None + """ + Use namespacePath for hierarchical retrievals. Return all memory records + where namespace falls under the same parent hierarchy. Either + `namespace` or `namespacePath` is required. + """ + memory_strategy_id: str | None + """ + The memory strategy identifier to filter memory records by. If + specified, only memory records with this strategy ID are returned. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 20. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. + """ + metadata_filters: ( + Sequence[MemoryMetadataFilterExpression | MemoryMetadataFilterExpressionDict] + | None + ) + """ + A list of metadata filter expressions to scope the returned memory + records. + """ + @dataclass(kw_only=True) class ListMemoryRecordsOutput(_SerdeShape): """Dataclass for ListMemoryRecordsOutput structure.""" @@ -1356,6 +2011,22 @@ class ListPaymentInstrumentsInput(_SerdeShape): max_results: int | None = ... """Maximum number of results to return in a single response.""" +class ListPaymentInstrumentsInputDict(TypedDict, total=False): + """Dictionary form of `ListPaymentInstrumentsInput`.""" + + user_id: str | None + """The user ID associated with the payment instruments.""" + agent_name: str | None + """The agent name associated with this request, used for observability.""" + payment_manager_arn: Required[str] + """The ARN of the payment manager that owns the payment instruments.""" + payment_connector_id: str | None + """The ID of the payment connector to filter by.""" + next_token: str | None + """Token for pagination to retrieve the next set of results.""" + max_results: int | None + """Maximum number of results to return in a single response.""" + @dataclass(kw_only=True) class ListPaymentInstrumentsOutput(_SerdeShape): """Response structure for listing payment instruments.""" @@ -1387,6 +2058,20 @@ class ListPaymentSessionsInput(_SerdeShape): max_results: int | None = ... """Maximum number of results to return in a single response.""" +class ListPaymentSessionsInputDict(TypedDict, total=False): + """Dictionary form of `ListPaymentSessionsInput`.""" + + user_id: str | None + """The user ID associated with the payment sessions.""" + agent_name: str | None + """The agent name associated with this request, used for observability.""" + payment_manager_arn: Required[str] + """The ARN of the payment manager that owns the sessions.""" + next_token: str | None + """Token for pagination to retrieve the next set of results.""" + max_results: int | None + """Maximum number of results to return in a single response.""" + @dataclass(kw_only=True) class ListPaymentSessionsOutput(_SerdeShape): """Response structure for listing payment sessions.""" @@ -1426,6 +2111,28 @@ class ListRecommendationsInput(_SerdeShape): status. """ +class ListRecommendationsInputDict(TypedDict, total=False): + """Dictionary form of `ListRecommendationsInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + status_filter: str | None + """ + Optional filter to return only recommendations with the specified + status. + """ + @dataclass(kw_only=True) class ListRecommendationsOutput(_SerdeShape): """Dataclass for ListRecommendationsOutput structure.""" @@ -1471,6 +2178,30 @@ class ListSessionsInput(_SerdeShape): filter: SessionFilter | None = ... """Filter criteria to apply when listing sessions.""" +class ListSessionsInputDict(TypedDict, total=False): + """Dictionary form of `ListSessionsInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource for which to list + sessions. + """ + actor_id: Required[str] + """The identifier of the actor for which to list sessions.""" + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 20. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. + """ + filter: SessionFilter | SessionFilterDict | None + """Filter criteria to apply when listing sessions.""" + @dataclass(kw_only=True) class ListSessionsOutput(_SerdeShape): """Dataclass for ListSessionsOutput structure.""" @@ -1539,6 +2270,13 @@ MemoryContent = Union[MemoryContentText | MemoryContentUnknown] class _MemoryContentDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> MemoryContent: ... +class MemoryContentTextDict(TypedDict): + text: str + """The text content of the memory record.""" + +MemoryContentDict = Union[MemoryContentTextDict] +"""Dictionary form of `MemoryContent`, setting exactly one variant.""" + @dataclass(kw_only=True) class MemoryJsonData(_SerdeShape): """ @@ -1553,6 +2291,16 @@ class MemoryJsonData(_SerdeShape): is 100 KB. """ +class MemoryJsonDataDict(TypedDict, total=False): + """Dictionary form of `MemoryJsonData`.""" + + content: Required[Document] + """ + The JSON content of the payload. Accepts any JSON value, including + objects, arrays, strings, numbers, booleans, and null. The maximum size + is 100 KB. + """ + @dataclass(kw_only=True) class MemoryMetadataFilterExpression(_SerdeShape): """ @@ -1574,12 +2322,28 @@ class MemoryMetadataFilterExpression(_SerdeShape): and NOT_EXISTS. """ -@dataclass(kw_only=True) -class MemoryRecord(_SerdeShape): - """ - Contains information about a memory record in an AgentCore Memory - resource. - """ +class MemoryMetadataFilterExpressionDict(TypedDict, total=False): + """Dictionary form of `MemoryMetadataFilterExpression`.""" + + left: Required[MemoryRecordLeftExpression | MemoryRecordLeftExpressionDict] + """The metadata key to evaluate.""" + operator: Required[str] + """ + The relationship between the metadata key and value to match when + applying the metadata filter. + """ + right: MemoryRecordRightExpression | MemoryRecordRightExpressionDict | None + """ + The value to compare against. Required for all operators except EXISTS + and NOT_EXISTS. + """ + +@dataclass(kw_only=True) +class MemoryRecord(_SerdeShape): + """ + Contains information about a memory record in an AgentCore Memory + resource. + """ memory_record_id: str """The unique identifier of the memory record.""" @@ -1639,6 +2403,33 @@ class MemoryRecordCreateInput(_SerdeShape): metadata: dict[str, MemoryRecordMetadataValue] | None = ... """Metadata key-value pairs to be stored with the memory record.""" +class MemoryRecordCreateInputDict(TypedDict, total=False): + """Dictionary form of `MemoryRecordCreateInput`.""" + + request_identifier: Required[str] + """ + A client-provided identifier for tracking this specific record creation + request. + """ + namespaces: Required[Sequence[str]] + """ + A list of namespace identifiers that categorize or group the memory + record. + """ + content: Required[MemoryContent | MemoryContentDict] + """The content to be stored within the memory record.""" + timestamp: Required[datetime] + """Time at which the memory record was created.""" + memory_strategy_id: str | None + """ + The ID of the memory strategy that defines how this memory record is + grouped. + """ + metadata: ( + Mapping[str, MemoryRecordMetadataValue | MemoryRecordMetadataValueDict] | None + ) + """Metadata key-value pairs to be stored with the memory record.""" + @dataclass(kw_only=True) class MemoryRecordDeleteInput(_SerdeShape): """Input structure to delete an existing memory record.""" @@ -1651,6 +2442,17 @@ class MemoryRecordDeleteInput(_SerdeShape): IAM condition key authorization. """ +class MemoryRecordDeleteInputDict(TypedDict, total=False): + """Dictionary form of `MemoryRecordDeleteInput`.""" + + memory_record_id: Required[str] + """The unique ID of the memory record to be deleted.""" + namespace: str | None + """ + The namespace of the memory record being deleted. This value is used for + IAM condition key authorization. + """ + @dataclass class MemoryRecordLeftExpressionMetadataKey(_SerdeShape): """The metadata key to filter on.""" @@ -1677,6 +2479,16 @@ class _MemoryRecordLeftExpressionDeserializer: self, deserializer: ShapeDeserializer ) -> MemoryRecordLeftExpression: ... +class MemoryRecordLeftExpressionMetadataKeyDict(TypedDict): + metadata_key: str + """The metadata key to filter on.""" + +MemoryRecordLeftExpressionDict = Union[MemoryRecordLeftExpressionMetadataKeyDict] +""" +Dictionary form of `MemoryRecordLeftExpression`, setting exactly one +variant. +""" + @dataclass class MemoryRecordMetadataValueStringValue(_SerdeShape): """A string value.""" @@ -1725,6 +2537,33 @@ class _MemoryRecordMetadataValueDeserializer: self, deserializer: ShapeDeserializer ) -> MemoryRecordMetadataValue: ... +class MemoryRecordMetadataValueStringValueDict(TypedDict): + string_value: str + """A string value.""" + +class MemoryRecordMetadataValueStringListValueDict(TypedDict): + string_list_value: Sequence[str] + """A list of string values.""" + +class MemoryRecordMetadataValueNumberValueDict(TypedDict): + number_value: float + """A numeric value.""" + +class MemoryRecordMetadataValueDateTimeValueDict(TypedDict): + date_time_value: datetime + """A timestamp value in ISO 8601 UTC format.""" + +MemoryRecordMetadataValueDict = Union[ + MemoryRecordMetadataValueStringValueDict + | MemoryRecordMetadataValueStringListValueDict + | MemoryRecordMetadataValueNumberValueDict + | MemoryRecordMetadataValueDateTimeValueDict +] +""" +Dictionary form of `MemoryRecordMetadataValue`, setting exactly one +variant. +""" + class MemoryRecordOperatorType(UnknownEnumMixin, StrEnum): EQUALS_TO = "EQUALS_TO" EXISTS = "EXISTS" @@ -1784,6 +2623,16 @@ class _MemoryRecordRightExpressionDeserializer: self, deserializer: ShapeDeserializer ) -> MemoryRecordRightExpression: ... +class MemoryRecordRightExpressionMetadataValueDict(TypedDict): + metadata_value: MemoryRecordMetadataValue | MemoryRecordMetadataValueDict + """The metadata value to compare against.""" + +MemoryRecordRightExpressionDict = Union[MemoryRecordRightExpressionMetadataValueDict] +""" +Dictionary form of `MemoryRecordRightExpression`, setting exactly one +variant. +""" + class MemoryRecordStatus(UnknownEnumMixin, StrEnum): SUCCEEDED = "SUCCEEDED" FAILED = "FAILED" @@ -1846,6 +2695,35 @@ class MemoryRecordUpdateInput(_SerdeShape): metadata: dict[str, MemoryRecordMetadataValue] | None = ... """Metadata key-value pairs to be stored with the memory record.""" +class MemoryRecordUpdateInputDict(TypedDict, total=False): + """Dictionary form of `MemoryRecordUpdateInput`.""" + + memory_record_id: Required[str] + """The unique ID of the memory record to be updated.""" + timestamp: Required[datetime] + """Time at which the memory record was updated""" + content: MemoryContent | MemoryContentDict | None + """The content to be stored within the memory record.""" + namespaces: Sequence[str] | None + """ + The updated list of namespace identifiers for categorizing the memory + record. + """ + source_namespaces: Sequence[str] | None + """ + The namespaces of the source memory record being updated. This value is + used for IAM condition key authorization. + """ + memory_strategy_id: str | None + """ + The updated ID of the memory strategy that defines how this memory + record is grouped. + """ + metadata: ( + Mapping[str, MemoryRecordMetadataValue | MemoryRecordMetadataValueDict] | None + ) + """Metadata key-value pairs to be stored with the memory record.""" + @dataclass(kw_only=True) class MessageMetadata(_SerdeShape): """Metadata information associated with this message.""" @@ -1880,6 +2758,13 @@ MetadataValue = Union[MetadataValueStringValue | MetadataValueUnknown] class _MetadataValueDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> MetadataValue: ... +class MetadataValueStringValueDict(TypedDict): + string_value: str + """Value associated with the `eventMetadata` key.""" + +MetadataValueDict = Union[MetadataValueStringValueDict] +"""Dictionary form of `MetadataValue`, setting exactly one variant.""" + class MouseButton(UnknownEnumMixin, StrEnum): """The mouse button to use for a browser mouse action.""" @@ -1900,6 +2785,18 @@ class MouseClickArguments(_SerdeShape): click_count: int | None = ... """The number of clicks to perform. Valid range: 1--10. Defaults to 1.""" +class MouseClickArgumentsDict(TypedDict, total=False): + """Dictionary form of `MouseClickArguments`.""" + + x: Required[int] + """The X coordinate on screen where the click occurs.""" + y: Required[int] + """The Y coordinate on screen where the click occurs.""" + button: str | None + """The mouse button to use. Defaults to `LEFT`.""" + click_count: int | None + """The number of clicks to perform. Valid range: 1--10. Defaults to 1.""" + @dataclass(kw_only=True) class MouseClickResult(_SerdeShape): """The result of a mouse click action.""" @@ -1924,6 +2821,20 @@ class MouseDragArguments(_SerdeShape): button: str | None = ... """The mouse button to use for the drag. Defaults to `LEFT`.""" +class MouseDragArgumentsDict(TypedDict, total=False): + """Dictionary form of `MouseDragArguments`.""" + + end_x: Required[int] + """The ending X coordinate for the drag.""" + end_y: Required[int] + """The ending Y coordinate for the drag.""" + start_x: Required[int] + """The starting X coordinate for the drag.""" + start_y: Required[int] + """The starting Y coordinate for the drag.""" + button: str | None + """The mouse button to use for the drag. Defaults to `LEFT`.""" + @dataclass(kw_only=True) class MouseDragResult(_SerdeShape): """The result of a mouse drag action.""" @@ -1942,6 +2853,14 @@ class MouseMoveArguments(_SerdeShape): y: int """The target Y coordinate on screen.""" +class MouseMoveArgumentsDict(TypedDict, total=False): + """Dictionary form of `MouseMoveArguments`.""" + + x: Required[int] + """The target X coordinate on screen.""" + y: Required[int] + """The target Y coordinate on screen.""" + @dataclass(kw_only=True) class MouseMoveResult(_SerdeShape): """The result of a mouse move action.""" @@ -1967,6 +2886,21 @@ class MouseScrollArguments(_SerdeShape): scroll down. """ +class MouseScrollArgumentsDict(TypedDict, total=False): + """Dictionary form of `MouseScrollArguments`.""" + + x: Required[int] + """The X coordinate on screen where the scroll occurs.""" + y: Required[int] + """The Y coordinate on screen where the scroll occurs.""" + delta_x: int | None + """The horizontal scroll delta. Valid range: -1000 to 1000.""" + delta_y: int | None + """ + The vertical scroll delta. Valid range: -1000 to 1000. Negative values + scroll down. + """ + @dataclass(kw_only=True) class MouseScrollResult(_SerdeShape): """The result of a mouse scroll action.""" @@ -2008,6 +2942,32 @@ class MppPaymentInput(_SerdeShape): field has no effect on challenges that already sponsor the fees. """ +class MppPaymentInputDict(TypedDict, total=False): + """Dictionary form of `MppPaymentInput`.""" + + version: Required[str] + """The MPP protocol version, for example \"1\" or \"2\".""" + www_authenticate_headers: Required[Sequence[str]] + """ + The raw `WWW-Authenticate: Payment` header value from the 402 response, + passed verbatim. Provide exactly one entry. The service uses this value + to generate the payment credential. + """ + buyer_pays_gas_fees: bool | None + """ + Authorizes the service to sign a payment whose blockchain network (gas) + fees are charged to your wallet, on top of the payment amount. + + The challenge indicates who sponsors the network fees. When the + challenge does not sponsor them, the service signs the payment only if + this field is `true`. Otherwise it returns a validation error, so you + can decide whether to pay the fees or obtain a challenge that sponsors + them. + + Optional. When omitted or `false`, you decline to pay network fees. This + field has no effect on challenges that already sponsor the fees. + """ + @dataclass(kw_only=True) class MppPaymentOutput(_SerdeShape): """Contains the payment credential, ready to retry the request.""" @@ -2043,6 +3003,21 @@ class OAuth2Authentication(_SerdeShape): username: str | None = ... """The username from the OAuth2 provider.""" +class OAuth2AuthenticationDict(TypedDict, total=False): + """Dictionary form of `OAuth2Authentication`.""" + + sub: Required[str] + """ + The subject (sub) claim from the OAuth2 provider. Uniquely identifies + the user at the provider. + """ + email_address: str | None + """The email address from the OAuth2 provider.""" + name: str | None + """The user's name from the OAuth2 provider.""" + username: str | None + """The username from the OAuth2 provider.""" + class Oauth2FlowType(UnknownEnumMixin, StrEnum): USER_FEDERATION = "USER_FEDERATION" M2_M = "M2M" @@ -2066,6 +3041,20 @@ class OAuthCredentialProvider(_SerdeShape): default_return_url: str | None = ... """The default return URL for the OAuth 2.0 authorization flow.""" +class OAuthCredentialProviderDict(TypedDict, total=False): + """Dictionary form of `OAuthCredentialProvider`.""" + + provider_arn: Required[str] + """The ARN of the OAuth 2.0 credential provider in AgentCore Identity.""" + scopes: Required[Sequence[str]] + """The OAuth 2.0 scopes to request when obtaining an access token.""" + custom_parameters: Mapping[str, str] | None + """Additional custom parameters to include in the OAuth 2.0 token request.""" + grant_type: str | None + """The OAuth 2.0 grant type to use for authentication.""" + default_return_url: str | None + """The default return URL for the OAuth 2.0 authorization flow.""" + class OAuthGrantType(UnknownEnumMixin, StrEnum): CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" AUTHORIZATION_CODE = "AUTHORIZATION_CODE" @@ -2089,6 +3078,20 @@ class OnlineEvaluationConfigSource(_SerdeShape): the online evaluation configuration to include. """ +class OnlineEvaluationConfigSourceDict(TypedDict, total=False): + """Dictionary form of `OnlineEvaluationConfigSource`.""" + + online_evaluation_config_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the online evaluation configuration to + use as the session source. + """ + time_range: SessionFilterConfig | SessionFilterConfigDict | None + """ + Optional session filter configuration to narrow down which sessions from + the online evaluation configuration to include. + """ + @dataclass(kw_only=True) class OnlineEvaluationTraceConfig(_SerdeShape): """ @@ -2111,6 +3114,22 @@ class OnlineEvaluationTraceConfig(_SerdeShape): timestamp are included. """ +class OnlineEvaluationTraceConfigDict(TypedDict, total=False): + """Dictionary form of `OnlineEvaluationTraceConfig`.""" + + online_evaluation_config_arn: Required[str] + """The ARN of the online evaluation configuration to reuse sessions from.""" + start_time: Required[datetime] + """ + The start time of the time range. Only sessions evaluated at or after + this timestamp are included. + """ + end_time: Required[datetime] + """ + The end time of the time range. Only sessions evaluated before this + timestamp are included. + """ + class OperatorType(UnknownEnumMixin, StrEnum): EQUALS_TO = "EQUALS_TO" EXISTS = "EXISTS" @@ -2138,6 +3157,13 @@ OutputConfig = Union[OutputConfigCloudWatchConfig | OutputConfigUnknown] class _OutputConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> OutputConfig: ... +class OutputConfigCloudWatchConfigDict(TypedDict): + cloud_watch_config: CloudWatchOutputConfig | CloudWatchOutputConfigDict + """The CloudWatch Logs configuration for writing evaluation results.""" + +OutputConfigDict = Union[OutputConfigCloudWatchConfigDict] +"""Dictionary form of `OutputConfig`, setting exactly one variant.""" + @dataclass class PayloadTypeConversational(_SerdeShape): """The conversational content of the payload.""" @@ -2178,6 +3204,27 @@ PayloadType = Union[ class _PayloadTypeDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PayloadType: ... +class PayloadTypeConversationalDict(TypedDict): + conversational: Conversational | ConversationalDict + """The conversational content of the payload.""" + +class PayloadTypeBlobDict(TypedDict): + blob: Document + """The binary content of the payload.""" + +class PayloadTypeJsonDict(TypedDict): + json: MemoryJsonData | MemoryJsonDataDict + """ + The JSON content of the payload. Use this type to store + non-conversational, JSON-formatted data, such as behavioral events, + activity logs, or system events. + """ + +PayloadTypeDict = Union[ + PayloadTypeConversationalDict | PayloadTypeBlobDict | PayloadTypeJsonDict +] +"""Dictionary form of `PayloadType`, setting exactly one variant.""" + class PaymentHttpMethodType(UnknownEnumMixin, StrEnum): GET = "GET" POST = "POST" @@ -2218,6 +3265,22 @@ PaymentInput = Union[PaymentInputCryptoX402 | PaymentInputMpp | PaymentInputUnkn class _PaymentInputDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PaymentInput: ... +class PaymentInputCryptoX402Dict(TypedDict): + crypto_x402: CryptoX402PaymentInput | CryptoX402PaymentInputDict + """Input for a crypto X402 payment.""" + +class PaymentInputMppDict(TypedDict): + mpp: MppPaymentInput | MppPaymentInputDict + """ + Contains the payment challenge from a 402 Payment Required response. + Forward the raw `WWW-Authenticate: Payment` header value verbatim. In + response, you receive a payment credential that satisfies the challenge. + Provide exactly one challenge per request. + """ + +PaymentInputDict = Union[PaymentInputCryptoX402Dict | PaymentInputMppDict] +"""Dictionary form of `PaymentInput`, setting exactly one variant.""" + @dataclass(kw_only=True) class PaymentInstrument(_SerdeShape): """Represents a payment instrument.""" @@ -2267,6 +3330,16 @@ class _PaymentInstrumentDetailsDeserializer: self, deserializer: ShapeDeserializer ) -> PaymentInstrumentDetails: ... +class PaymentInstrumentDetailsEmbeddedCryptoWalletDict(TypedDict): + embedded_crypto_wallet: EmbeddedCryptoWallet | EmbeddedCryptoWalletDict + """Embedded crypto wallet managed directly by end user.""" + +PaymentInstrumentDetailsDict = Union[PaymentInstrumentDetailsEmbeddedCryptoWalletDict] +""" +Dictionary form of `PaymentInstrumentDetails`, setting exactly one +variant. +""" + class PaymentInstrumentStatus(UnknownEnumMixin, StrEnum): """The status of a payment instrument.""" @@ -2414,6 +3487,27 @@ class _PaymentTokenRequestInputDeserializer: self, deserializer: ShapeDeserializer ) -> PaymentTokenRequestInput: ... +class PaymentTokenRequestInputCoinbaseCdpTokenRequestDict(TypedDict): + coinbase_cdp_token_request: ( + CoinbaseCdpTokenRequestInput | CoinbaseCdpTokenRequestInputDict + ) + """The Coinbase CDP token request.""" + +class PaymentTokenRequestInputStripePrivyTokenRequestDict(TypedDict): + stripe_privy_token_request: ( + StripePrivyTokenRequestInput | StripePrivyTokenRequestInputDict + ) + """The Stripe Privy token request.""" + +PaymentTokenRequestInputDict = Union[ + PaymentTokenRequestInputCoinbaseCdpTokenRequestDict + | PaymentTokenRequestInputStripePrivyTokenRequestDict +] +""" +Dictionary form of `PaymentTokenRequestInput`, setting exactly one +variant. +""" + @dataclass class PaymentTokenResponseOutputCoinbaseCdpTokenResponse(_SerdeShape): """The Coinbase CDP token response.""" @@ -2469,6 +3563,17 @@ class PerVariantOnlineEvaluationConfig(_SerdeShape): for this variant. """ +class PerVariantOnlineEvaluationConfigDict(TypedDict, total=False): + """Dictionary form of `PerVariantOnlineEvaluationConfig`.""" + + name: Required[str] + """The name of the variant this evaluation configuration applies to.""" + online_evaluation_config_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the online evaluation configuration + for this variant. + """ + @dataclass(kw_only=True) class ProcessPaymentInput(_SerdeShape): """Request structure for processing a payment.""" @@ -2495,6 +3600,31 @@ class ProcessPaymentInput(_SerdeShape): This field is autopopulated if not provided. """ +class ProcessPaymentInputDict(TypedDict, total=False): + """Dictionary form of `ProcessPaymentInput`.""" + + user_id: str | None + """The user ID associated with this payment.""" + agent_name: str | None + """The agent name associated with this request, used for observability.""" + payment_manager_arn: Required[str] + """The ARN of the payment manager.""" + payment_session_id: Required[str] + """The ID of the payment session.""" + payment_instrument_id: Required[str] + """The ID of the payment instrument to use.""" + payment_type: Required[str] + """The type of payment to process.""" + payment_input: Required[PaymentInput | PaymentInputDict] + """The payment input details specific to the payment type.""" + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class ProcessPaymentOutput(_SerdeShape): """Response structure for processing a payment.""" @@ -2555,6 +3685,13 @@ supports external customer-managed proxies. class _ProxyDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Proxy: ... +class ProxyExternalProxyDict(TypedDict): + external_proxy: ExternalProxy | ExternalProxyDict + """Configuration for an external customer-managed proxy server.""" + +ProxyDict = Union[ProxyExternalProxyDict] +"""Dictionary form of `Proxy`, setting exactly one variant.""" + @dataclass(kw_only=True) class ProxyBypass(_SerdeShape): """ @@ -2571,6 +3708,17 @@ class ProxyBypass(_SerdeShape): using any proxy. Maximum 253 characters per pattern. """ +class ProxyBypassDict(TypedDict, total=False): + """Dictionary form of `ProxyBypass`.""" + + domain_patterns: Sequence[str] | None + """ + Array of domain patterns that should bypass the proxy. Supports + `.amazonaws.com` for subdomain matching or `amazonaws.com` for exact + domain matching. Requests to these domains connect directly without + using any proxy. Maximum 253 characters per pattern. + """ + @dataclass(kw_only=True) class ProxyConfiguration(_SerdeShape): """ @@ -2593,6 +3741,23 @@ class ProxyConfiguration(_SerdeShape): precedence over all proxy routing rules. """ +class ProxyConfigurationDict(TypedDict, total=False): + """Dictionary form of `ProxyConfiguration`.""" + + proxies: Required[Sequence[Proxy | ProxyDict]] + """ + An array of 1-5 proxy server configurations for domain-based routing. + Each proxy can specify which domains it handles via `domainPatterns`, + enabling flexible routing of different traffic through different proxies + based on destination domain. + """ + bypass: ProxyBypass | ProxyBypassDict | None + """ + Optional configuration for domains that should bypass all proxies and + connect directly to their destination, like the internet. Takes + precedence over all proxy routing rules. + """ + @dataclass class ProxyCredentialsBasicAuth(_SerdeShape): """ @@ -2621,11 +3786,21 @@ Currently supports HTTP Basic Authentication (username and password). class _ProxyCredentialsDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ProxyCredentials: ... -@dataclass(kw_only=True) -class PublishedDateFilter(_SerdeShape): +class ProxyCredentialsBasicAuthDict(TypedDict): + basic_auth: BasicAuth | BasicAuthDict """ - A publication time range for the results. Both bounds are optional, and - both are inclusive. If `publishedAfter` is later than `publishedBefore`, + HTTP Basic Authentication credentials (username and password) stored in + Amazon Web Services Secrets Manager. + """ + +ProxyCredentialsDict = Union[ProxyCredentialsBasicAuthDict] +"""Dictionary form of `ProxyCredentials`, setting exactly one variant.""" + +@dataclass(kw_only=True) +class PublishedDateFilter(_SerdeShape): + """ + A publication time range for the results. Both bounds are optional, and + both are inclusive. If `publishedAfter` is later than `publishedBefore`, the request fails with a `ValidationException`. """ @@ -2639,6 +3814,19 @@ class PublishedDateFilter(_SerdeShape): `2026-01-31T23:59:59Z`. """ +class PublishedDateFilterDict(TypedDict, total=False): + """Dictionary form of `PublishedDateFilter`.""" + + published_after: datetime | None + """The earliest publication time of the results, inclusive.""" + published_before: datetime | None + """ + The latest publication time of the results, inclusive. A date without a + time, such as one passed to the AWS CLI, means midnight UTC. To include + a whole day, use the last second of that day, for example + `2026-01-31T23:59:59Z`. + """ + @dataclass class RecommendationConfigSystemPromptRecommendationConfig(_SerdeShape): """The configuration for a system prompt recommendation.""" @@ -2671,6 +3859,27 @@ RecommendationConfig = Union[ class _RecommendationConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RecommendationConfig: ... +class RecommendationConfigSystemPromptRecommendationConfigDict(TypedDict): + system_prompt_recommendation_config: ( + SystemPromptRecommendationConfig | SystemPromptRecommendationConfigDict + ) + """The configuration for a system prompt recommendation.""" + +class RecommendationConfigToolDescriptionRecommendationConfigDict(TypedDict): + tool_description_recommendation_config: ( + ToolDescriptionRecommendationConfig | ToolDescriptionRecommendationConfigDict + ) + """The configuration for a tool description recommendation.""" + +RecommendationConfigDict = Union[ + RecommendationConfigSystemPromptRecommendationConfigDict + | RecommendationConfigToolDescriptionRecommendationConfigDict +] +""" +Dictionary form of `RecommendationConfig`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class RecommendationEvaluationConfig(_SerdeShape): """The evaluation configuration for assessing recommendation quality.""" @@ -2678,6 +3887,16 @@ class RecommendationEvaluationConfig(_SerdeShape): evaluators: list[RecommendationEvaluatorReference] """The list of evaluators to use for assessing recommendation quality.""" +class RecommendationEvaluationConfigDict(TypedDict, total=False): + """Dictionary form of `RecommendationEvaluationConfig`.""" + + evaluators: Required[ + Sequence[ + RecommendationEvaluatorReference | RecommendationEvaluatorReferenceDict + ] + ] + """The list of evaluators to use for assessing recommendation quality.""" + @dataclass(kw_only=True) class RecommendationEvaluatorReference(_SerdeShape): """A reference to an evaluator used for recommendation assessment.""" @@ -2685,6 +3904,12 @@ class RecommendationEvaluatorReference(_SerdeShape): evaluator_arn: str """The Amazon Resource Name (ARN) of the evaluator.""" +class RecommendationEvaluatorReferenceDict(TypedDict, total=False): + """Dictionary form of `RecommendationEvaluatorReference`.""" + + evaluator_arn: Required[str] + """The Amazon Resource Name (ARN) of the evaluator.""" + @dataclass class RecommendationResultSystemPromptRecommendationResult(_SerdeShape): """The result of a system prompt recommendation.""" @@ -2821,6 +4046,30 @@ class _RecordExpirySpecificationDeserializer: self, deserializer: ShapeDeserializer ) -> RecordExpirySpecification: ... +class RecordExpirySpecificationRecordExpiryDurationDaysDict(TypedDict): + record_expiry_duration_days: int + """ + The duration, in days, after which the records in this request expire. + The minimum is 31 days. + """ + +class RecordExpirySpecificationActionDict(TypedDict): + action: str + """ + The action to apply to the existing record expiry configuration. Set to + `REMOVE` to remove a previously configured expiry so that the records no + longer expire. This value does not apply when creating records. + """ + +RecordExpirySpecificationDict = Union[ + RecordExpirySpecificationRecordExpiryDurationDaysDict + | RecordExpirySpecificationActionDict +] +""" +Dictionary form of `RecordExpirySpecification`, setting exactly one +variant. +""" + class RegistryRecordStatus(UnknownEnumMixin, StrEnum): """The status of a registry record in its lifecycle.""" @@ -2904,6 +4153,16 @@ ResourceLocation = Union[ResourceLocationS3 | ResourceLocationUnknown] class _ResourceLocationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ResourceLocation: ... +class ResourceLocationS3Dict(TypedDict): + s3: S3Location | S3LocationDict + """ + The Amazon S3 location of the resource. Use this when the resource is + stored in an Amazon S3 bucket. + """ + +ResourceLocationDict = Union[ResourceLocationS3Dict] +"""Dictionary form of `ResourceLocation`, setting exactly one variant.""" + @dataclass(kw_only=True) class ResourceNotFoundException(ServiceError, _SerdeShape): """ @@ -2992,6 +4251,44 @@ class RetrieveMemoryRecordsInput(_SerdeShape): value is 20. """ +class RetrieveMemoryRecordsInputDict(TypedDict, total=False): + """Dictionary form of `RetrieveMemoryRecordsInput`.""" + + memory_id: Required[str] + """ + The identifier of the AgentCore Memory resource from which to retrieve + memory records. + """ + namespace: str | None + """ + The exact namespace to filter memory records by. Searches for memory + records that matches the provided namespace value. Either `namespace` or + `namespacePath` is required. + """ + namespace_path: str | None + """ + Use namespacePath for hierarchical retrievals. Return all memory records + where namespace falls under the same parent hierarchy. Either + `namespace` or `namespacePath` is required. + """ + search_criteria: Required[SearchCriteria | SearchCriteriaDict] + """ + The search criteria to use for finding relevant memory records. This + includes the search query, memory strategy ID, and other search + parameters. + """ + next_token: str | None + """ + The token for the next set of results. Use the value returned in the + previous response in the next request to retrieve the next set of + results. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. The default + value is 20. + """ + @dataclass(kw_only=True) class RetrieveMemoryRecordsOutput(_SerdeShape): """Dataclass for RetrieveMemoryRecordsOutput structure.""" @@ -3053,6 +4350,13 @@ RightExpression = Union[RightExpressionMetadataValue | RightExpressionUnknown] class _RightExpressionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RightExpression: ... +class RightExpressionMetadataValueDict(TypedDict): + metadata_value: MetadataValue | MetadataValueDict + """Value associated with the key in `eventMetadata`.""" + +RightExpressionDict = Union[RightExpressionMetadataValueDict] +"""Dictionary form of `RightExpression`, setting exactly one variant.""" + class Role(UnknownEnumMixin, StrEnum): ASSISTANT = "ASSISTANT" USER = "USER" @@ -3120,6 +4424,26 @@ class S3FilesConfiguration(_SerdeShape): (Amazon S3) Files file system that owns the access point. """ +class S3FilesConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3FilesConfiguration`.""" + + access_point_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Simple Storage Service + (Amazon S3) Files access point to mount. + """ + mount_path: Required[str] + """ + The absolute path within the session at which the access point is + mounted, for example `/mnt/s3data`. Each mount path must be unique + across all file system configurations in the session. + """ + file_system_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Simple Storage Service + (Amazon S3) Files file system that owns the access point. + """ + @dataclass(kw_only=True) class S3Location(_SerdeShape): """The Amazon S3 location configuration of a resource.""" @@ -3134,6 +4458,19 @@ class S3Location(_SerdeShape): (Optional). """ +class S3LocationDict(TypedDict, total=False): + """Dictionary form of `S3Location`.""" + + bucket: Required[str] + """The name of the Amazon S3 bucket where the resource is stored.""" + prefix: Required[str] + """The name of the Amazon S3 prefix/key where the resource is stored.""" + version_id: str | None + """ + The name of the Amazon S3 version ID where the resource is stored + (Optional). + """ + @dataclass(kw_only=True) class SampleSession(_SerdeShape): """ @@ -3189,6 +4526,40 @@ class SaveBrowserSessionProfileInput(_SerdeShape): This field is autopopulated if not provided. """ +class SaveBrowserSessionProfileInputDict(TypedDict, total=False): + """Dictionary form of `SaveBrowserSessionProfileInput`.""" + + trace_id: str | None + """The trace identifier for request tracking.""" + trace_parent: str | None + """The parent trace information for distributed tracing.""" + profile_identifier: Required[str] + """ + The unique identifier for the browser profile. This identifier is used + to reference the profile when starting new browser sessions. The + identifier must follow the pattern of an alphanumeric name (up to 48 + characters) followed by a hyphen and a 10-character alphanumeric suffix. + """ + browser_identifier: Required[str] + """ + The unique identifier of the browser associated with the session from + which to save the profile. + """ + session_id: Required[str] + """ + The unique identifier of the browser session from which to save the + profile. The session must be active when saving the profile. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock AgentCore ignores the request, but does not + return an error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class SaveBrowserSessionProfileOutput(_SerdeShape): """Dataclass for SaveBrowserSessionProfileOutput structure.""" @@ -3225,6 +4596,12 @@ class ScreenshotArguments(_SerdeShape): format: str | None = ... """The image format for the screenshot. Defaults to `PNG`.""" +class ScreenshotArgumentsDict(TypedDict, total=False): + """Dictionary form of `ScreenshotArguments`.""" + + format: str | None + """The image format for the screenshot. Defaults to `PNG`.""" + class ScreenshotFormat(UnknownEnumMixin, StrEnum): """The image format for a browser screenshot.""" @@ -3257,6 +4634,24 @@ class SearchCriteria(_SerdeShape): metadata_filters: list[MemoryMetadataFilterExpression] | None = ... """Filters to apply to metadata associated with a memory.""" +class SearchCriteriaDict(TypedDict, total=False): + """Dictionary form of `SearchCriteria`.""" + + search_query: Required[str] + """The search query to use for finding relevant memory records.""" + memory_strategy_id: str | None + """The memory strategy identifier to filter memory records by.""" + top_k: int | None + """ + The maximum number of top-scoring memory records to return. This value + is used for semantic search ranking. + """ + metadata_filters: ( + Sequence[MemoryMetadataFilterExpression | MemoryMetadataFilterExpressionDict] + | None + ) + """Filters to apply to metadata associated with a memory.""" + @dataclass(kw_only=True) class SearchRegistryRecordsInput(_SerdeShape): """Dataclass for SearchRegistryRecordsInput structure.""" @@ -3285,6 +4680,33 @@ class SearchRegistryRecordsInput(_SerdeShape): `{"$and": [{"descriptorType": {"$eq": "MCP"}}, {"name": {"$eq": "my-tool"}}]}`. """ +class SearchRegistryRecordsInputDict(TypedDict, total=False): + """Dictionary form of `SearchRegistryRecordsInput`.""" + + search_query: Required[str] + """The search query to find matching registry records.""" + registry_ids: Required[Sequence[str]] + """ + The list of registry identifiers to search within. Currently, you can + specify exactly one registry identifier. You can provide either the full + Amazon Web Services Resource Name (ARN) or the 12-character alphanumeric + registry ID. + """ + max_results: int | None + """ + The maximum number of records to return in a single call. Valid values + are 1 through 20. The default value is 10. + """ + filters: Document | None + """ + A metadata filter expression to narrow search results. Uses structured + JSON operators including field-level operators (`$eq`, `$ne`, `$in`) and + logical operators (`$and`, `$or`) on filterable fields (`name`, + `descriptorType`, `version`). For example, to filter by descriptor type: + `{"descriptorType": {"$eq": "MCP"}}`. To combine filters: + `{"$and": [{"descriptorType": {"$eq": "MCP"}}, {"name": {"$eq": "my-tool"}}]}`. + """ + @dataclass(kw_only=True) class SearchRegistryRecordsOutput(_SerdeShape): """Dataclass for SearchRegistryRecordsOutput structure.""" @@ -3312,6 +4734,15 @@ class SecretsManagerLocation(_SerdeShape): certificate. """ +class SecretsManagerLocationDict(TypedDict, total=False): + """Dictionary form of `SecretsManagerLocation`.""" + + secret_arn: Required[str] + """ + The ARN of the Amazon Web Services Secrets Manager secret containing the + certificate. + """ + @dataclass(kw_only=True) class ServerDefinition(_SerdeShape): """ @@ -3384,6 +4815,15 @@ class SessionFilter(_SerdeShape): on event presence. """ +class SessionFilterDict(TypedDict, total=False): + """Dictionary form of `SessionFilter`.""" + + event_filter: str | None + """ + The event filter condition to apply. Use this to filter sessions based + on event presence. + """ + @dataclass(kw_only=True) class SessionFilterConfig(_SerdeShape): """ @@ -3402,6 +4842,20 @@ class SessionFilterConfig(_SerdeShape): timestamp are included. """ +class SessionFilterConfigDict(TypedDict, total=False): + """Dictionary form of `SessionFilterConfig`.""" + + start_time: datetime | None + """ + The start time of the time range. Only sessions with activity at or + after this timestamp are included. + """ + end_time: datetime | None + """ + The end time of the time range. Only sessions with activity before this + timestamp are included. + """ + @dataclass(kw_only=True) class SessionFinding(_SerdeShape): """A failure found in a session.""" @@ -3427,6 +4881,12 @@ class SessionLimits(_SerdeShape): max_spend_amount: Amount """The maximum amount that can be spent in the session.""" +class SessionLimitsDict(TypedDict, total=False): + """Dictionary form of `SessionLimits`.""" + + max_spend_amount: Required[Amount | AmountDict] + """The maximum amount that can be spent in the session.""" + @dataclass(kw_only=True) class SessionMetadataShape(_SerdeShape): """ @@ -3449,6 +4909,24 @@ class SessionMetadataShape(_SerdeShape): metadata: dict[str, str] | None = ... """Additional key-value metadata associated with this session.""" +class SessionMetadataShapeDict(TypedDict, total=False): + """Dictionary form of `SessionMetadataShape`.""" + + session_id: Required[str] + """The unique identifier of the session this metadata applies to.""" + test_scenario_id: str | None + """ + An optional test scenario identifier for categorizing and tracking + evaluation results. + """ + ground_truth: GroundTruthSource | GroundTruthSourceDict | None + """ + The ground truth data for this session, including expected responses and + assertions. + """ + metadata: Mapping[str, str] | None + """Additional key-value metadata associated with this session.""" + class SessionStatus(UnknownEnumMixin, StrEnum): IN_PROGRESS = "IN_PROGRESS" FAILED = "FAILED" @@ -3483,6 +4961,17 @@ class SessionTraceIds(_SerdeShape): trace_ids: list[str] """The list of trace IDs within the session to evaluate.""" +class SessionTraceIdsDict(TypedDict, total=False): + """Dictionary form of `SessionTraceIds`.""" + + session_id: Required[str] + """ + The unique identifier of the session that contains the traces to + evaluate. + """ + trace_ids: Required[Sequence[str]] + """The list of trace IDs within the session to evaluate.""" + @dataclass(kw_only=True) class SkillDefinition(_SerdeShape): """ @@ -3533,6 +5022,28 @@ class SpanContext(_SerdeShape): other discrete actions within the agent's execution. """ +class SpanContextDict(TypedDict, total=False): + """Dictionary form of `SpanContext`.""" + + session_id: Required[str] + """ + The unique identifier of the session containing this span. Sessions + represent complete conversation flows and are detected using + configurable `SessionTimeoutMinutes` (default 15 minutes). + """ + trace_id: str | None + """ + The unique identifier of the trace containing this span. Traces + represent individual request-response interactions within a session and + group related spans together. + """ + span_id: str | None + """ + The unique identifier of the specific span being referenced. Spans + represent individual operations like tool calls, model invocations, or + other discrete actions within the agent's execution. + """ + @dataclass(kw_only=True) class StartBatchEvaluationInput(_SerdeShape): """Dataclass for StartBatchEvaluationInput structure.""" @@ -3580,6 +5091,52 @@ class StartBatchEvaluationInput(_SerdeShape): output_config: OutputConfig | None = ... """Output destination configuration.""" +class StartBatchEvaluationInputDict(TypedDict, total=False): + """Dictionary form of `StartBatchEvaluationInput`.""" + + batch_evaluation_name: Required[str] + """The name of the batch evaluation. Must be unique within your account.""" + evaluators: Sequence[Evaluator | EvaluatorDict] | None + """ + The list of evaluators to apply during the batch evaluation. Can include + both built-in evaluators and custom evaluators. Maximum of 10 + evaluators. + """ + insights: Sequence[Insight | InsightDict] | None + """ + The list of insight analyses to run against sessions during the batch + evaluation. Maximum of 10 insights. + """ + data_source_config: Required[DataSourceConfig | DataSourceConfigDict] + """ + The data source configuration that specifies where to pull agent session + traces from for evaluation. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, the service ignores the request, but does not return an error. + + This field is autopopulated if not provided. + """ + evaluation_metadata: EvaluationMetadata | EvaluationMetadataDict | None + """ + Optional metadata for the evaluation, including session-specific ground + truth data and test scenario identifiers. + """ + tags: Mapping[str, str] | None + """A map of tag keys and values to associate with the batch evaluation.""" + kms_key_arn: str | None + """ + The ARN of the KMS key used to encrypt evaluation data. If provided, + customer data is encrypted at rest with the specified key. + """ + description: str | None + """The description of the batch evaluation.""" + output_config: OutputConfig | OutputConfigDict | None + """Output destination configuration.""" + @dataclass(kw_only=True) class StartBatchEvaluationOutput(_SerdeShape): """Dataclass for StartBatchEvaluationOutput structure.""" @@ -3691,6 +5248,85 @@ class StartBrowserSessionInput(_SerdeShape): This field is autopopulated if not provided. """ +class StartBrowserSessionInputDict(TypedDict, total=False): + """Dictionary form of `StartBrowserSessionInput`.""" + + trace_id: str | None + """The trace identifier for request tracking.""" + trace_parent: str | None + """The parent trace information for distributed tracing.""" + browser_identifier: Required[str] + """ + The unique identifier of the browser to use for this session. This + identifier specifies which browser environment to initialize for the + session. + """ + name: str | None + """ + The name of the browser session. This name helps you identify and manage + the session. The name does not need to be unique. + """ + session_timeout_seconds: int | None + """ + The duration in seconds (time-to-live) after which the session + automatically terminates, regardless of ongoing activity. Defaults to + 3600 seconds (1 hour). Recommended minimum: 60 seconds. Maximum allowed: + 28,800 seconds (8 hours). + """ + view_port: ViewPort | ViewPortDict | None + """ + The dimensions of the browser viewport for this session. This determines + the visible area of the web content and affects how web pages are + rendered. If not specified, Amazon Bedrock AgentCore uses a default + viewport size. + """ + extensions: Sequence[BrowserExtension | BrowserExtensionDict] | None + """A list of browser extensions to load into the browser session.""" + profile_configuration: ( + BrowserProfileConfiguration | BrowserProfileConfigurationDict | None + ) + """ + The browser profile configuration to use for this session. A browser + profile contains persistent data such as cookies and local storage that + can be reused across multiple browser sessions. If specified, the + session initializes with the profile's stored data, enabling continuity + for tasks that require authentication or personalized settings. + """ + proxy_configuration: ProxyConfiguration | ProxyConfigurationDict | None + """ + Optional proxy configuration for routing browser traffic through + customer-specified proxy servers. When provided, enables HTTP Basic + authentication via Amazon Web Services Secrets Manager and domain-based + routing rules. Requires `secretsmanager:GetSecretValue` IAM permission + for the specified secret ARNs. + """ + enterprise_policies: ( + Sequence[BrowserEnterprisePolicy | BrowserEnterprisePolicyDict] | None + ) + """A list of files containing enterprise policies for the browser.""" + certificates: Sequence[Certificate | CertificateDict] | None + """A list of certificates to install in the browser session.""" + filesystem_configurations: ( + Sequence[ToolsFileSystemConfiguration | ToolsFileSystemConfigurationDict] | None + ) + """ + The file system configurations to mount into the browser session. Use + these configurations to mount your own Amazon Simple Storage Service + (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access + points. Your session can then read and write your data. If you don't + specify this field, no additional file systems are mounted. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock AgentCore ignores the request, but does not + return an error. This parameter helps prevent the creation of duplicate + sessions if there are temporary network issues. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StartBrowserSessionOutput(_SerdeShape): """Dataclass for StartBrowserSessionOutput structure.""" @@ -3761,6 +5397,54 @@ class StartCodeInterpreterSessionInput(_SerdeShape): This field is autopopulated if not provided. """ +class StartCodeInterpreterSessionInputDict(TypedDict, total=False): + """Dictionary form of `StartCodeInterpreterSessionInput`.""" + + trace_id: str | None + """The trace identifier for request tracking.""" + trace_parent: str | None + """The parent trace information for distributed tracing.""" + code_interpreter_identifier: Required[str] + """ + The unique identifier of the code interpreter to use for this session. + This identifier specifies which code interpreter environment to + initialize for the session. + """ + name: str | None + """ + The name of the code interpreter session. This name helps you identify + and manage the session. The name does not need to be unique. + """ + session_timeout_seconds: int | None + """ + The duration in seconds (time-to-live) after which the session + automatically terminates, regardless of ongoing activity. Defaults to + 900 seconds (15 minutes). Recommended minimum: 60 seconds. Maximum + allowed: 28,800 seconds (8 hours). + """ + certificates: Sequence[Certificate | CertificateDict] | None + """A list of certificates to install in the code interpreter session.""" + filesystem_configurations: ( + Sequence[ToolsFileSystemConfiguration | ToolsFileSystemConfigurationDict] | None + ) + """ + The file system configurations to mount into the code interpreter + session. Use these configurations to mount your own Amazon Simple + Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon + EFS) access points. Your session can then read and write your data. If + you don't specify this field, no additional file systems are mounted. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock AgentCore ignores the request, but does not + return an error. This parameter helps prevent the creation of duplicate + sessions if there are temporary network issues. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StartCodeInterpreterSessionOutput(_SerdeShape): """Dataclass for StartCodeInterpreterSessionOutput structure.""" @@ -3787,7 +5471,22 @@ class StartMemoryExtractionJobInput(_SerdeShape): """The unique identifier of the memory for which to start extraction jobs.""" extraction_job: ExtractionJob | None = ... """Extraction job to start in this operation.""" - client_token: str | None = ... + client_token: str | None = ... + """ + A unique, case-sensitive identifier to ensure idempotent processing of + the request. + + This field is autopopulated if not provided. + """ + +class StartMemoryExtractionJobInputDict(TypedDict, total=False): + """Dictionary form of `StartMemoryExtractionJobInput`.""" + + memory_id: Required[str] + """The unique identifier of the memory for which to start extraction jobs.""" + extraction_job: Required[ExtractionJob | ExtractionJobDict] + """Extraction job to start in this operation.""" + client_token: str | None """ A unique, case-sensitive identifier to ensure idempotent processing of the request. @@ -3844,6 +5543,40 @@ class StartRecommendationInput(_SerdeShape): tags: dict[str, str] | None = ... """A map of tag keys and values to associate with the recommendation.""" +class StartRecommendationInputDict(TypedDict, total=False): + """Dictionary form of `StartRecommendationInput`.""" + + name: Required[str] + """The name of the recommendation. Must be unique within your account.""" + description: str | None + """The description of the recommendation.""" + type: Required[str] + """ + The type of recommendation to generate. Valid values are + `SYSTEM_PROMPT_RECOMMENDATION` for system prompt optimization or + `TOOL_DESCRIPTION_RECOMMENDATION` for tool description optimization. + """ + recommendation_config: Required[RecommendationConfig | RecommendationConfigDict] + """ + The configuration for the recommendation, including the input to + optimize, agent traces to analyze, and evaluation settings. + """ + kms_key_arn: str | None + """ + The ARN of the KMS key used to encrypt recommendation data. If provided, + customer data is encrypted at rest with the specified key. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, the service ignores the request, but does not return an error. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """A map of tag keys and values to associate with the recommendation.""" + @dataclass(kw_only=True) class StartRecommendationOutput(_SerdeShape): """Dataclass for StartRecommendationOutput structure.""" @@ -3881,6 +5614,12 @@ class StopBatchEvaluationInput(_SerdeShape): batch_evaluation_id: str | None = ... """The unique identifier of the batch evaluation to stop.""" +class StopBatchEvaluationInputDict(TypedDict, total=False): + """Dictionary form of `StopBatchEvaluationInput`.""" + + batch_evaluation_id: Required[str] + """The unique identifier of the batch evaluation to stop.""" + @dataclass(kw_only=True) class StopBatchEvaluationOutput(_SerdeShape): """Dataclass for StopBatchEvaluationOutput structure.""" @@ -3923,6 +5662,27 @@ class StopBrowserSessionInput(_SerdeShape): This field is autopopulated if not provided. """ +class StopBrowserSessionInputDict(TypedDict, total=False): + """Dictionary form of `StopBrowserSessionInput`.""" + + trace_id: str | None + """The trace identifier for request tracking.""" + trace_parent: str | None + """The parent trace information for distributed tracing.""" + browser_identifier: Required[str] + """The unique identifier of the browser associated with the session.""" + session_id: Required[str] + """The unique identifier of the browser session to stop.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock AgentCore ignores the request, but does not + return an error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StopBrowserSessionOutput(_SerdeShape): """Dataclass for StopBrowserSessionOutput structure.""" @@ -3966,6 +5726,30 @@ class StopCodeInterpreterSessionInput(_SerdeShape): This field is autopopulated if not provided. """ +class StopCodeInterpreterSessionInputDict(TypedDict, total=False): + """Dictionary form of `StopCodeInterpreterSessionInput`.""" + + trace_id: str | None + """The trace identifier for request tracking.""" + trace_parent: str | None + """The parent trace information for distributed tracing.""" + code_interpreter_identifier: Required[str] + """ + The unique identifier of the code interpreter associated with the + session. + """ + session_id: Required[str] + """The unique identifier of the code interpreter session to stop.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock AgentCore ignores the request, but does not + return an error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StopCodeInterpreterSessionOutput(_SerdeShape): """Dataclass for StopCodeInterpreterSessionOutput structure.""" @@ -4006,6 +5790,27 @@ class StopRuntimeSessionInput(_SerdeShape): This field is autopopulated if not provided. """ +class StopRuntimeSessionInputDict(TypedDict, total=False): + """Dictionary form of `StopRuntimeSessionInput`.""" + + runtime_session_id: Required[str] + """The ID of the session that you want to stop.""" + agent_runtime_arn: Required[str] + """The ARN of the agent that contains the session that you want to stop.""" + qualifier: str | None + """ + Optional qualifier to specify an agent alias, such as `prod`code> or + `dev`. If you don't provide a value, the DEFAULT alias is used. + """ + client_token: str | None + """ + Idempotent token used to identify the request. If you use the same token + with multiple requests, the same response is returned. Use ClientToken + to prevent the same request from being processed more than once. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StopRuntimeSessionOutput(_SerdeShape): """Dataclass for StopRuntimeSessionOutput structure.""" @@ -4044,6 +5849,13 @@ StreamUpdate = Union[StreamUpdateAutomationStreamUpdate | StreamUpdateUnknown] class _StreamUpdateDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> StreamUpdate: ... +class StreamUpdateAutomationStreamUpdateDict(TypedDict): + automation_stream_update: AutomationStreamUpdate | AutomationStreamUpdateDict + """The update to an automation stream.""" + +StreamUpdateDict = Union[StreamUpdateAutomationStreamUpdateDict] +"""Dictionary form of `StreamUpdate`, setting exactly one variant.""" + @dataclass(kw_only=True) class StripePrivyTokenRequestInput(_SerdeShape): """Stripe Privy token request parameters.""" @@ -4057,6 +5869,18 @@ class StripePrivyTokenRequestInput(_SerdeShape): include_authorization_signature: bool = ... """Set to true to generate privy-authorization-signature.""" +class StripePrivyTokenRequestInputDict(TypedDict, total=False): + """Dictionary form of `StripePrivyTokenRequestInput`.""" + + request_host: str | None + """The host for the Privy API request. Defaults to \"api.privy.io\".""" + request_path: Required[str] + """The path of the Stripe Privy API request.""" + request_body: Required[str] + """Request body JSON for the Privy API call.""" + include_authorization_signature: bool | None + """Set to true to generate privy-authorization-signature.""" + @dataclass(kw_only=True) class StripePrivyTokenResponseOutput(_SerdeShape): """ @@ -4135,6 +5959,21 @@ bundle. class _SystemPromptConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> SystemPromptConfig: ... +class SystemPromptConfigTextDict(TypedDict): + text: str + """The system prompt text provided inline.""" + +class SystemPromptConfigConfigurationBundleDict(TypedDict): + configuration_bundle: ( + SystemPromptConfigurationBundle | SystemPromptConfigurationBundleDict + ) + """The system prompt sourced from a configuration bundle version.""" + +SystemPromptConfigDict = Union[ + SystemPromptConfigTextDict | SystemPromptConfigConfigurationBundleDict +] +"""Dictionary form of `SystemPromptConfig`, setting exactly one variant.""" + @dataclass(kw_only=True) class SystemPromptConfigurationBundle(_SerdeShape): """A system prompt sourced from a configuration bundle version.""" @@ -4149,6 +5988,19 @@ class SystemPromptConfigurationBundle(_SerdeShape): prompt. """ +class SystemPromptConfigurationBundleDict(TypedDict, total=False): + """Dictionary form of `SystemPromptConfigurationBundle`.""" + + bundle_arn: Required[str] + """The Amazon Resource Name (ARN) of the configuration bundle.""" + version_id: Required[str] + """The version identifier of the configuration bundle.""" + system_prompt_json_path: Required[str] + """ + The JSON path within the configuration bundle that contains the system + prompt. + """ + @dataclass(kw_only=True) class SystemPromptRecommendationConfig(_SerdeShape): """Configuration for generating system prompt optimization recommendations.""" @@ -4163,6 +6015,21 @@ class SystemPromptRecommendationConfig(_SerdeShape): assessing recommendation quality. """ +class SystemPromptRecommendationConfigDict(TypedDict, total=False): + """Dictionary form of `SystemPromptRecommendationConfig`.""" + + system_prompt: Required[SystemPromptConfig | SystemPromptConfigDict] + """The current system prompt to optimize.""" + agent_traces: Required[AgentTracesConfig | AgentTracesConfigDict] + """The agent traces to analyze for generating recommendations.""" + evaluation_config: ( + RecommendationEvaluationConfig | RecommendationEvaluationConfigDict | None + ) + """ + The evaluation configuration specifying which evaluator to use for + assessing recommendation quality. + """ + @dataclass(kw_only=True) class SystemPromptRecommendationResult(_SerdeShape): """ @@ -4194,6 +6061,12 @@ class TargetRef(_SerdeShape): name: str """The name of the gateway target.""" +class TargetRefDict(TypedDict, total=False): + """Dictionary form of `TargetRef`.""" + + name: Required[str] + """The name of the gateway target.""" + class TaskStatus(UnknownEnumMixin, StrEnum): SUBMITTED = "submitted" WORKING = "working" @@ -4318,6 +6191,40 @@ class ToolArguments(_SerdeShape): defaults to `deno` for JavaScript and TypeScript. """ +class ToolArgumentsDict(TypedDict, total=False): + """Dictionary form of `ToolArguments`.""" + + code: str | None + """ + The code to execute in a code interpreter session. This is the source + code in the specified programming language that will be executed by the + code interpreter. + """ + language: str | None + """ + The programming language of the code to execute. This tells the code + interpreter which language runtime to use for execution. + """ + clear_context: bool | None + """Whether to clear the context for the tool.""" + command: str | None + """The command to execute with the tool.""" + path: str | None + """The path for the tool operation.""" + paths: Sequence[str] | None + """The paths for the tool operation.""" + content: Sequence[InputContentBlock | InputContentBlockDict] | None + """The content for the tool operation.""" + directory_path: str | None + """The directory path for the tool operation.""" + task_id: str | None + """The identifier of the task for the tool operation.""" + runtime: str | None + """ + The runtime environment to use for code execution. If not specified, + defaults to `deno` for JavaScript and TypeScript. + """ + @dataclass class ToolDescriptionConfigText(_SerdeShape): """The tool description as inline text.""" @@ -4340,6 +6247,16 @@ ToolDescriptionConfig = Union[ToolDescriptionConfigText | ToolDescriptionConfigU class _ToolDescriptionConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ToolDescriptionConfig: ... +class ToolDescriptionConfigTextDict(TypedDict): + text: str + """The tool description as inline text.""" + +ToolDescriptionConfigDict = Union[ToolDescriptionConfigTextDict] +""" +Dictionary form of `ToolDescriptionConfig`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ToolDescriptionConfigurationBundle(_SerdeShape): """Tool descriptions sourced from a configuration bundle version.""" @@ -4354,6 +6271,21 @@ class ToolDescriptionConfigurationBundle(_SerdeShape): the bundle. """ +class ToolDescriptionConfigurationBundleDict(TypedDict, total=False): + """Dictionary form of `ToolDescriptionConfigurationBundle`.""" + + bundle_arn: Required[str] + """The Amazon Resource Name (ARN) of the configuration bundle.""" + version_id: Required[str] + """The version identifier of the configuration bundle.""" + tools: Required[ + Sequence[ConfigurationBundleToolEntry | ConfigurationBundleToolEntryDict] + ] + """ + The list of tool entries mapping tool names to their JSON paths within + the bundle. + """ + @dataclass(kw_only=True) class ToolDescriptionInput(_SerdeShape): """ @@ -4366,6 +6298,14 @@ class ToolDescriptionInput(_SerdeShape): tool_description: ToolDescriptionConfig """The current description of the tool to optimize.""" +class ToolDescriptionInputDict(TypedDict, total=False): + """Dictionary form of `ToolDescriptionInput`.""" + + tool_name: Required[str] + """The name of the tool.""" + tool_description: Required[ToolDescriptionConfig | ToolDescriptionConfigDict] + """The current description of the tool to optimize.""" + @dataclass(kw_only=True) class ToolDescriptionOutput(_SerdeShape): """The output for a single tool description recommendation.""" @@ -4395,6 +6335,17 @@ class ToolDescriptionRecommendationConfig(_SerdeShape): recommendations. """ +class ToolDescriptionRecommendationConfigDict(TypedDict, total=False): + """Dictionary form of `ToolDescriptionRecommendationConfig`.""" + + tool_description: Required[ToolDescriptionSource | ToolDescriptionSourceDict] + """The current tool descriptions to optimize.""" + agent_traces: Required[AgentTracesConfig | AgentTracesConfigDict] + """ + The agent traces to analyze for generating tool description + recommendations. + """ + @dataclass(kw_only=True) class ToolDescriptionRecommendationResult(_SerdeShape): """ @@ -4449,6 +6400,25 @@ configuration bundle. class _ToolDescriptionSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ToolDescriptionSource: ... +class ToolDescriptionSourceToolDescriptionTextDict(TypedDict): + tool_description_text: ToolDescriptionTextInput | ToolDescriptionTextInputDict + """Tool descriptions provided as inline text.""" + +class ToolDescriptionSourceConfigurationBundleDict(TypedDict): + configuration_bundle: ( + ToolDescriptionConfigurationBundle | ToolDescriptionConfigurationBundleDict + ) + """Tool descriptions sourced from a configuration bundle version.""" + +ToolDescriptionSourceDict = Union[ + ToolDescriptionSourceToolDescriptionTextDict + | ToolDescriptionSourceConfigurationBundleDict +] +""" +Dictionary form of `ToolDescriptionSource`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ToolDescriptionTextInput(_SerdeShape): """Inline tool description input containing a list of tools.""" @@ -4456,6 +6426,12 @@ class ToolDescriptionTextInput(_SerdeShape): tools: list[ToolDescriptionInput] """The list of tool descriptions to optimize.""" +class ToolDescriptionTextInputDict(TypedDict, total=False): + """Dictionary form of `ToolDescriptionTextInput`.""" + + tools: Required[Sequence[ToolDescriptionInput | ToolDescriptionInputDict]] + """The list of tool descriptions to optimize.""" + class ToolName(UnknownEnumMixin, StrEnum): EXECUTE_CODE = "executeCode" EXECUTE_COMMAND = "executeCommand" @@ -4551,6 +6527,29 @@ class _ToolsFileSystemConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> ToolsFileSystemConfiguration: ... +class ToolsFileSystemConfigurationS3FilesConfigurationDict(TypedDict): + s3_files_configuration: S3FilesConfiguration | S3FilesConfigurationDict + """ + The configuration for mounting your own Amazon Simple Storage Service + (Amazon S3) Files access point into the session. + """ + +class ToolsFileSystemConfigurationEfsConfigurationDict(TypedDict): + efs_configuration: EfsConfiguration | EfsConfigurationDict + """ + The configuration for mounting your own Amazon Elastic File System + (Amazon EFS) access point into the session. + """ + +ToolsFileSystemConfigurationDict = Union[ + ToolsFileSystemConfigurationS3FilesConfigurationDict + | ToolsFileSystemConfigurationEfsConfigurationDict +] +""" +Dictionary form of `ToolsFileSystemConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class UnauthorizedException(ServiceError, _SerdeShape): """ @@ -4595,6 +6594,34 @@ class UpdateABTestInput(_SerdeShape): execution_status: str | None = ... """The updated execution status to enable or disable the A/B test.""" +class UpdateABTestInputDict(TypedDict, total=False): + """Dictionary form of `UpdateABTestInput`.""" + + ab_test_id: Required[str] + """The unique identifier of the A/B test to update.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, the service ignores the request, but does not return an error. + + This field is autopopulated if not provided. + """ + name: str | None + """The updated name of the A/B test.""" + description: str | None + """The updated description of the A/B test.""" + variants: Sequence[Variant | VariantDict] | None + """The updated list of variants.""" + gateway_filter: GatewayFilter | GatewayFilterDict | None + """The updated gateway filter.""" + evaluation_config: ABTestEvaluationConfig | ABTestEvaluationConfigDict | None + """The updated evaluation configuration.""" + role_arn: str | None + """The updated IAM role ARN.""" + execution_status: str | None + """The updated execution status to enable or disable the A/B test.""" + @dataclass(kw_only=True) class UpdateABTestOutput(_SerdeShape): """Dataclass for UpdateABTestOutput structure.""" @@ -4637,6 +6664,25 @@ class UpdateBrowserStreamInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateBrowserStreamInputDict(TypedDict, total=False): + """Dictionary form of `UpdateBrowserStreamInput`.""" + + browser_identifier: Required[str] + """The identifier of the browser.""" + session_id: Required[str] + """The identifier of the browser session.""" + stream_update: Required[StreamUpdate | StreamUpdateDict] + """The update to apply to the browser stream.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateBrowserStreamOutput(_SerdeShape): """Dataclass for UpdateBrowserStreamOutput structure.""" @@ -4702,6 +6748,23 @@ OAuth2.0 tokens. class _UserIdentifierDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> UserIdentifier: ... +class UserIdentifierUserTokenDict(TypedDict): + user_token: str + """ + The OAuth2.0 token issued by the user's identity provider that was used + to generate the workload access token + """ + +class UserIdentifierUserIdDict(TypedDict): + user_id: str + """ + The ID of the user for whom you have retrieved a workload access token + for + """ + +UserIdentifierDict = Union[UserIdentifierUserTokenDict | UserIdentifierUserIdDict] +"""Dictionary form of `UserIdentifier`, setting exactly one variant.""" + @dataclass(kw_only=True) class UserIntentAffectedSession(_SerdeShape): """A session associated with a user intent cluster.""" @@ -4796,6 +6859,22 @@ class Variant(_SerdeShape): or target reference. """ +class VariantDict(TypedDict, total=False): + """Dictionary form of `Variant`.""" + + name: Required[str] + """The name of the variant. Must be `C` for control or `T1` for treatment.""" + weight: Required[int] + """ + The percentage of traffic to route to this variant. Weights across all + variants must sum to 100. + """ + variant_configuration: Required[VariantConfiguration | VariantConfigurationDict] + """ + The configuration for this variant, including the configuration bundle + or target reference. + """ + @dataclass(kw_only=True) class VariantConfiguration(_SerdeShape): """The configuration for an A/B test variant.""" @@ -4805,6 +6884,14 @@ class VariantConfiguration(_SerdeShape): target: TargetRef | None = ... """A reference to a gateway target to route traffic to for this variant.""" +class VariantConfigurationDict(TypedDict, total=False): + """Dictionary form of `VariantConfiguration`.""" + + configuration_bundle: ConfigurationBundleRef | ConfigurationBundleRefDict | None + """A reference to a configuration bundle version to use for this variant.""" + target: TargetRef | TargetRefDict | None + """A reference to a gateway target to route traffic to for this variant.""" + @dataclass(kw_only=True) class VariantResult(_SerdeShape): """ @@ -4855,6 +6942,22 @@ class ViewPort(_SerdeShape): pixels. """ +class ViewPortDict(TypedDict, total=False): + """Dictionary form of `ViewPort`.""" + + width: Required[int] + """ + The width of the viewport in pixels. This value determines the + horizontal dimension of the visible area. Valid values range from 800 to + 1920 pixels. + """ + height: Required[int] + """ + The height of the viewport in pixels. This value determines the vertical + dimension of the visible area. Valid values range from 600 to 1080 + pixels. + """ + @dataclass(kw_only=True) class WebSearchFilters(_SerdeShape): """The filters to apply to a web search.""" @@ -4864,6 +6967,14 @@ class WebSearchFilters(_SerdeShape): published_date_filter: PublishedDateFilter | None = ... """The publication time range of the results.""" +class WebSearchFiltersDict(TypedDict, total=False): + """Dictionary form of `WebSearchFilters`.""" + + domain_filter: DomainFilter | DomainFilterDict | None + """The domains to include in or exclude from the results.""" + published_date_filter: PublishedDateFilter | PublishedDateFilterDict | None + """The publication time range of the results.""" + @dataclass(kw_only=True) class WebSearchResult(_SerdeShape): """A web search result.""" @@ -4883,3 +6994,6 @@ class WebSearchResult(_SerdeShape): @dataclass(kw_only=True) class Unit(_SerdeShape): """Dataclass for Unit structure.""" + +class UnitDict(TypedDict, total=False): + """Dictionary form of `Unit`.""" diff --git a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/schemas.py b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/schemas.py index 7afea3c55..b9b692d3c 100644 --- a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/schemas.py +++ b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/_private/schemas.py @@ -884,7 +884,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/aio/client.py b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/aio/client.py index d8a147a09..f7bc6db37 100644 --- a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/aio/client.py +++ b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -16,12 +16,9 @@ from .. import models as _models from ..models import ( CodeInterpreterStreamOutput, - InvokeAgentRuntimeCommandInput, InvokeAgentRuntimeCommandOutput, InvokeAgentRuntimeCommandStreamOutput, - InvokeCodeInterpreterInput, InvokeCodeInterpreterOutput, - InvokeHarnessInput, InvokeHarnessOutput, InvokeHarnessStreamOutput, _CodeInterpreterStreamOutputDeserializer, @@ -35,135 +32,70 @@ if TYPE_CHECKING: from ..models import ( - BatchCreateMemoryRecordsInput, BatchCreateMemoryRecordsOutput, - BatchDeleteMemoryRecordsInput, BatchDeleteMemoryRecordsOutput, - BatchUpdateMemoryRecordsInput, BatchUpdateMemoryRecordsOutput, - CompleteResourceTokenAuthInput, CompleteResourceTokenAuthOutput, - CreateABTestInput, CreateABTestOutput, - CreateEventInput, CreateEventOutput, - CreatePaymentInstrumentInput, CreatePaymentInstrumentOutput, - CreatePaymentSessionInput, CreatePaymentSessionOutput, - DeleteABTestInput, DeleteABTestOutput, - DeleteBatchEvaluationInput, DeleteBatchEvaluationOutput, - DeleteCapacityProviderSessionInput, DeleteCapacityProviderSessionOutput, - DeleteEventInput, DeleteEventOutput, - DeleteMemoryRecordInput, DeleteMemoryRecordOutput, - DeletePaymentInstrumentInput, DeletePaymentInstrumentOutput, - DeletePaymentSessionInput, DeletePaymentSessionOutput, - DeleteRecommendationInput, DeleteRecommendationOutput, - EvaluateInput, EvaluateOutput, - GetABTestInput, GetABTestOutput, - GetAgentCardInput, GetAgentCardOutput, - GetBatchEvaluationInput, GetBatchEvaluationOutput, - GetBrowserSessionInput, GetBrowserSessionOutput, - GetCodeInterpreterSessionInput, GetCodeInterpreterSessionOutput, - GetEventInput, GetEventOutput, - GetMemoryRecordInput, GetMemoryRecordOutput, - GetPaymentInstrumentBalanceInput, GetPaymentInstrumentBalanceOutput, - GetPaymentInstrumentInput, GetPaymentInstrumentOutput, - GetPaymentSessionInput, GetPaymentSessionOutput, - GetRecommendationInput, GetRecommendationOutput, - GetResourceApiKeyInput, GetResourceApiKeyOutput, - GetResourceOauth2TokenInput, GetResourceOauth2TokenOutput, - GetResourcePaymentTokenInput, GetResourcePaymentTokenOutput, - GetWorkloadAccessTokenForJWTInput, GetWorkloadAccessTokenForJWTOutput, - GetWorkloadAccessTokenForUserIdInput, GetWorkloadAccessTokenForUserIdOutput, - GetWorkloadAccessTokenInput, GetWorkloadAccessTokenOutput, - IngestDataInput, IngestDataOutput, - InvokeAgentRuntimeInput, InvokeAgentRuntimeOutput, - InvokeBrowserInput, InvokeBrowserOutput, - InvokeWebSearchInput, InvokeWebSearchOutput, - ListABTestsInput, ListABTestsOutput, - ListActorsInput, ListActorsOutput, - ListBatchEvaluationsInput, ListBatchEvaluationsOutput, - ListBrowserSessionsInput, ListBrowserSessionsOutput, - ListCodeInterpreterSessionsInput, ListCodeInterpreterSessionsOutput, - ListEventsInput, ListEventsOutput, - ListMemoryExtractionJobsInput, ListMemoryExtractionJobsOutput, - ListMemoryRecordsInput, ListMemoryRecordsOutput, - ListPaymentInstrumentsInput, ListPaymentInstrumentsOutput, - ListPaymentSessionsInput, ListPaymentSessionsOutput, - ListRecommendationsInput, ListRecommendationsOutput, - ListSessionsInput, ListSessionsOutput, - ProcessPaymentInput, ProcessPaymentOutput, - RetrieveMemoryRecordsInput, RetrieveMemoryRecordsOutput, - SaveBrowserSessionProfileInput, SaveBrowserSessionProfileOutput, - SearchRegistryRecordsInput, SearchRegistryRecordsOutput, - StartBatchEvaluationInput, StartBatchEvaluationOutput, - StartBrowserSessionInput, StartBrowserSessionOutput, - StartCodeInterpreterSessionInput, StartCodeInterpreterSessionOutput, - StartMemoryExtractionJobInput, StartMemoryExtractionJobOutput, - StartRecommendationInput, StartRecommendationOutput, - StopBatchEvaluationInput, StopBatchEvaluationOutput, - StopBrowserSessionInput, StopBrowserSessionOutput, - StopCodeInterpreterSessionInput, StopCodeInterpreterSessionOutput, - StopRuntimeSessionInput, StopRuntimeSessionOutput, - UpdateABTestInput, UpdateABTestOutput, - UpdateBrowserStreamInput, UpdateBrowserStreamOutput, ) @@ -178,18 +110,31 @@ class AsyncBedrockAgentCoreClient(AsyncClient[AsyncBedrockAgentCoreConfig]): Services services. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def batch_create_memory_records( - self, input: BatchCreateMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchCreateMemoryRecordsInput + | _models.BatchCreateMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchCreateMemoryRecordsOutput: ... + + @_overload + async def batch_create_memory_records( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchCreateMemoryRecordsInputDict], ) -> BatchCreateMemoryRecordsOutput: """ Creates multiple memory records in a single batch operation for the specified memory with custom content. Args: - input: - An instance of `BatchCreateMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -199,20 +144,40 @@ async def batch_create_memory_records( Returns: An instance of `BatchCreateMemoryRecordsOutput`. """ + + async def batch_create_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchCreateMemoryRecordsOutput: return await self._invoke( - input, _models.BATCH_CREATE_MEMORY_RECORDS, [], plugins + self._select_input(_models.BATCH_CREATE_MEMORY_RECORDS, args, kwargs), + _models.BATCH_CREATE_MEMORY_RECORDS, + [], + plugins, ) + @_overload async def batch_delete_memory_records( - self, input: BatchDeleteMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchDeleteMemoryRecordsInput + | _models.BatchDeleteMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchDeleteMemoryRecordsOutput: ... + + @_overload + async def batch_delete_memory_records( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDeleteMemoryRecordsInputDict], ) -> BatchDeleteMemoryRecordsOutput: """ Deletes multiple memory records in a single batch operation from the specified memory. Args: - input: - An instance of `BatchDeleteMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -222,20 +187,40 @@ async def batch_delete_memory_records( Returns: An instance of `BatchDeleteMemoryRecordsOutput`. """ + + async def batch_delete_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDeleteMemoryRecordsOutput: return await self._invoke( - input, _models.BATCH_DELETE_MEMORY_RECORDS, [], plugins + self._select_input(_models.BATCH_DELETE_MEMORY_RECORDS, args, kwargs), + _models.BATCH_DELETE_MEMORY_RECORDS, + [], + plugins, ) + @_overload + async def batch_update_memory_records( + self, + request: _models.BatchUpdateMemoryRecordsInput + | _models.BatchUpdateMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchUpdateMemoryRecordsOutput: ... + + @_overload async def batch_update_memory_records( - self, input: BatchUpdateMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchUpdateMemoryRecordsInputDict], ) -> BatchUpdateMemoryRecordsOutput: """ Updates multiple memory records with custom content in a single batch operation within the specified memory. Args: - input: - An instance of `BatchUpdateMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -245,20 +230,40 @@ async def batch_update_memory_records( Returns: An instance of `BatchUpdateMemoryRecordsOutput`. """ + + async def batch_update_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchUpdateMemoryRecordsOutput: return await self._invoke( - input, _models.BATCH_UPDATE_MEMORY_RECORDS, [], plugins + self._select_input(_models.BATCH_UPDATE_MEMORY_RECORDS, args, kwargs), + _models.BATCH_UPDATE_MEMORY_RECORDS, + [], + plugins, ) + @_overload + async def complete_resource_token_auth( + self, + request: _models.CompleteResourceTokenAuthInput + | _models.CompleteResourceTokenAuthInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CompleteResourceTokenAuthOutput: ... + + @_overload async def complete_resource_token_auth( - self, input: CompleteResourceTokenAuthInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CompleteResourceTokenAuthInputDict], ) -> CompleteResourceTokenAuthOutput: """ Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource. Args: - input: - An instance of `CompleteResourceTokenAuthInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -268,12 +273,33 @@ async def complete_resource_token_auth( Returns: An instance of `CompleteResourceTokenAuthOutput`. """ + + async def complete_resource_token_auth( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CompleteResourceTokenAuthOutput: return await self._invoke( - input, _models.COMPLETE_RESOURCE_TOKEN_AUTH, [], plugins + self._select_input(_models.COMPLETE_RESOURCE_TOKEN_AUTH, args, kwargs), + _models.COMPLETE_RESOURCE_TOKEN_AUTH, + [], + plugins, ) + @_overload async def create_ab_test( - self, input: CreateABTestInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateABTestInput | _models.CreateABTestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateABTestOutput: ... + + @_overload + async def create_ab_test( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateABTestInputDict], ) -> CreateABTestOutput: """ Creates an A/B test for comparing agent configurations. A/B tests split @@ -282,8 +308,6 @@ async def create_ab_test( configurations to determine which variant performs better. Args: - input: - An instance of `CreateABTestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -293,10 +317,33 @@ async def create_ab_test( Returns: An instance of `CreateABTestOutput`. """ - return await self._invoke(input, _models.CREATE_AB_TEST, [], plugins) + async def create_ab_test( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateABTestOutput: + return await self._invoke( + self._select_input(_models.CREATE_AB_TEST, args, kwargs), + _models.CREATE_AB_TEST, + [], + plugins, + ) + + @_overload + async def create_event( + self, + request: _models.CreateEventInput | _models.CreateEventInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEventOutput: ... + + @_overload async def create_event( - self, input: CreateEventInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEventInputDict], ) -> CreateEventOutput: """ Creates an event in an AgentCore Memory resource. Events represent @@ -309,8 +356,6 @@ async def create_event( This operation is subject to request rate limiting. Args: - input: - An instance of `CreateEventInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -320,17 +365,39 @@ async def create_event( Returns: An instance of `CreateEventOutput`. """ - return await self._invoke(input, _models.CREATE_EVENT, [], plugins) + async def create_event( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEventOutput: + return await self._invoke( + self._select_input(_models.CREATE_EVENT, args, kwargs), + _models.CREATE_EVENT, + [], + plugins, + ) + + @_overload async def create_payment_instrument( - self, input: CreatePaymentInstrumentInput, plugins: list[Plugin] | None = None + self, + request: _models.CreatePaymentInstrumentInput + | _models.CreatePaymentInstrumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentInstrumentOutput: ... + + @_overload + async def create_payment_instrument( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentInstrumentInputDict], ) -> CreatePaymentInstrumentOutput: """ Create a new payment instrument for a connector. Args: - input: - An instance of `CreatePaymentInstrumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -340,17 +407,39 @@ async def create_payment_instrument( Returns: An instance of `CreatePaymentInstrumentOutput`. """ - return await self._invoke(input, _models.CREATE_PAYMENT_INSTRUMENT, [], plugins) + async def create_payment_instrument( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentInstrumentOutput: + return await self._invoke( + self._select_input(_models.CREATE_PAYMENT_INSTRUMENT, args, kwargs), + _models.CREATE_PAYMENT_INSTRUMENT, + [], + plugins, + ) + + @_overload + async def create_payment_session( + self, + request: _models.CreatePaymentSessionInput + | _models.CreatePaymentSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentSessionOutput: ... + + @_overload async def create_payment_session( - self, input: CreatePaymentSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentSessionInputDict], ) -> CreatePaymentSessionOutput: """ Create a new payment session. Args: - input: - An instance of `CreatePaymentSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -360,17 +449,38 @@ async def create_payment_session( Returns: An instance of `CreatePaymentSessionOutput`. """ - return await self._invoke(input, _models.CREATE_PAYMENT_SESSION, [], plugins) + async def create_payment_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentSessionOutput: + return await self._invoke( + self._select_input(_models.CREATE_PAYMENT_SESSION, args, kwargs), + _models.CREATE_PAYMENT_SESSION, + [], + plugins, + ) + + @_overload + async def delete_ab_test( + self, + request: _models.DeleteABTestInput | _models.DeleteABTestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteABTestOutput: ... + + @_overload async def delete_ab_test( - self, input: DeleteABTestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteABTestInputDict], ) -> DeleteABTestOutput: """ Deletes an A/B test and its associated gateway rules. Args: - input: - An instance of `DeleteABTestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -380,17 +490,39 @@ async def delete_ab_test( Returns: An instance of `DeleteABTestOutput`. """ - return await self._invoke(input, _models.DELETE_AB_TEST, [], plugins) + async def delete_ab_test( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteABTestOutput: + return await self._invoke( + self._select_input(_models.DELETE_AB_TEST, args, kwargs), + _models.DELETE_AB_TEST, + [], + plugins, + ) + + @_overload async def delete_batch_evaluation( - self, input: DeleteBatchEvaluationInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteBatchEvaluationInput + | _models.DeleteBatchEvaluationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBatchEvaluationOutput: ... + + @_overload + async def delete_batch_evaluation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBatchEvaluationInputDict], ) -> DeleteBatchEvaluationOutput: """ Deletes a batch evaluation and its associated results. Args: - input: - An instance of `DeleteBatchEvaluationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -400,12 +532,34 @@ async def delete_batch_evaluation( Returns: An instance of `DeleteBatchEvaluationOutput`. """ - return await self._invoke(input, _models.DELETE_BATCH_EVALUATION, [], plugins) + async def delete_batch_evaluation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBatchEvaluationOutput: + return await self._invoke( + self._select_input(_models.DELETE_BATCH_EVALUATION, args, kwargs), + _models.DELETE_BATCH_EVALUATION, + [], + plugins, + ) + + @_overload + async def delete_capacity_provider_session( + self, + request: _models.DeleteCapacityProviderSessionInput + | _models.DeleteCapacityProviderSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCapacityProviderSessionOutput: ... + + @_overload async def delete_capacity_provider_session( self, - input: DeleteCapacityProviderSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityProviderSessionInputDict], ) -> DeleteCapacityProviderSessionOutput: """ Deletes a session associated with a capacity provider in Amazon Bedrock @@ -414,8 +568,6 @@ async def delete_capacity_provider_session( and the session ID. After you delete a session, you cannot restart it. Args: - input: - An instance of `DeleteCapacityProviderSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -425,12 +577,33 @@ async def delete_capacity_provider_session( Returns: An instance of `DeleteCapacityProviderSessionOutput`. """ + + async def delete_capacity_provider_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityProviderSessionOutput: return await self._invoke( - input, _models.DELETE_CAPACITY_PROVIDER_SESSION, [], plugins + self._select_input(_models.DELETE_CAPACITY_PROVIDER_SESSION, args, kwargs), + _models.DELETE_CAPACITY_PROVIDER_SESSION, + [], + plugins, ) + @_overload + async def delete_event( + self, + request: _models.DeleteEventInput | _models.DeleteEventInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEventOutput: ... + + @_overload async def delete_event( - self, input: DeleteEventInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEventInputDict], ) -> DeleteEventOutput: """ Deletes an event from an AgentCore Memory resource. When you delete an @@ -440,8 +613,6 @@ async def delete_event( permission. Args: - input: - An instance of `DeleteEventInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -451,10 +622,33 @@ async def delete_event( Returns: An instance of `DeleteEventOutput`. """ - return await self._invoke(input, _models.DELETE_EVENT, [], plugins) + async def delete_event( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEventOutput: + return await self._invoke( + self._select_input(_models.DELETE_EVENT, args, kwargs), + _models.DELETE_EVENT, + [], + plugins, + ) + + @_overload async def delete_memory_record( - self, input: DeleteMemoryRecordInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteMemoryRecordInput | _models.DeleteMemoryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMemoryRecordOutput: ... + + @_overload + async def delete_memory_record( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMemoryRecordInputDict], ) -> DeleteMemoryRecordOutput: """ Deletes a memory record from an AgentCore Memory resource. When you @@ -464,8 +658,6 @@ async def delete_memory_record( `bedrock-agentcore:DeleteMemoryRecord` permission. Args: - input: - An instance of `DeleteMemoryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -475,18 +667,40 @@ async def delete_memory_record( Returns: An instance of `DeleteMemoryRecordOutput`. """ - return await self._invoke(input, _models.DELETE_MEMORY_RECORD, [], plugins) + async def delete_memory_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMemoryRecordOutput: + return await self._invoke( + self._select_input(_models.DELETE_MEMORY_RECORD, args, kwargs), + _models.DELETE_MEMORY_RECORD, + [], + plugins, + ) + + @_overload + async def delete_payment_instrument( + self, + request: _models.DeletePaymentInstrumentInput + | _models.DeletePaymentInstrumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentInstrumentOutput: ... + + @_overload async def delete_payment_instrument( - self, input: DeletePaymentInstrumentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentInstrumentInputDict], ) -> DeletePaymentInstrumentOutput: """ Deletes a payment instrument. This is a soft delete operation that preserves the record for audit and compliance purposes. Args: - input: - An instance of `DeletePaymentInstrumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -496,18 +710,40 @@ async def delete_payment_instrument( Returns: An instance of `DeletePaymentInstrumentOutput`. """ - return await self._invoke(input, _models.DELETE_PAYMENT_INSTRUMENT, [], plugins) + async def delete_payment_instrument( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentInstrumentOutput: + return await self._invoke( + self._select_input(_models.DELETE_PAYMENT_INSTRUMENT, args, kwargs), + _models.DELETE_PAYMENT_INSTRUMENT, + [], + plugins, + ) + + @_overload async def delete_payment_session( - self, input: DeletePaymentSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePaymentSessionInput + | _models.DeletePaymentSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentSessionOutput: ... + + @_overload + async def delete_payment_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentSessionInputDict], ) -> DeletePaymentSessionOutput: """ Deletes a payment session. This permanently removes the payment session record. Args: - input: - An instance of `DeletePaymentSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -517,17 +753,39 @@ async def delete_payment_session( Returns: An instance of `DeletePaymentSessionOutput`. """ - return await self._invoke(input, _models.DELETE_PAYMENT_SESSION, [], plugins) + async def delete_payment_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentSessionOutput: + return await self._invoke( + self._select_input(_models.DELETE_PAYMENT_SESSION, args, kwargs), + _models.DELETE_PAYMENT_SESSION, + [], + plugins, + ) + + @_overload + async def delete_recommendation( + self, + request: _models.DeleteRecommendationInput + | _models.DeleteRecommendationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRecommendationOutput: ... + + @_overload async def delete_recommendation( - self, input: DeleteRecommendationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRecommendationInputDict], ) -> DeleteRecommendationOutput: """ Deletes a recommendation and its associated results. Args: - input: - An instance of `DeleteRecommendationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -537,10 +795,33 @@ async def delete_recommendation( Returns: An instance of `DeleteRecommendationOutput`. """ - return await self._invoke(input, _models.DELETE_RECOMMENDATION, [], plugins) + async def delete_recommendation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRecommendationOutput: + return await self._invoke( + self._select_input(_models.DELETE_RECOMMENDATION, args, kwargs), + _models.DELETE_RECOMMENDATION, + [], + plugins, + ) + + @_overload + async def evaluate( + self, + request: _models.EvaluateInput | _models.EvaluateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EvaluateOutput: ... + + @_overload async def evaluate( - self, input: EvaluateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EvaluateInputDict], ) -> EvaluateOutput: """ Performs on-demand evaluation of agent traces using a specified @@ -548,8 +829,6 @@ async def evaluate( and returns immediate scoring results with detailed explanations. Args: - input: - An instance of `EvaluateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -559,18 +838,39 @@ async def evaluate( Returns: An instance of `EvaluateOutput`. """ - return await self._invoke(input, _models.EVALUATE, [], plugins) + async def evaluate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EvaluateOutput: + return await self._invoke( + self._select_input(_models.EVALUATE, args, kwargs), + _models.EVALUATE, + [], + plugins, + ) + + @_overload async def get_ab_test( - self, input: GetABTestInput, plugins: list[Plugin] | None = None + self, + request: _models.GetABTestInput | _models.GetABTestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetABTestOutput: ... + + @_overload + async def get_ab_test( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetABTestInputDict], ) -> GetABTestOutput: """ Retrieves detailed information about an A/B test, including its configuration, status, and statistical results. Args: - input: - An instance of `GetABTestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -580,17 +880,38 @@ async def get_ab_test( Returns: An instance of `GetABTestOutput`. """ - return await self._invoke(input, _models.GET_AB_TEST, [], plugins) + async def get_ab_test( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetABTestOutput: + return await self._invoke( + self._select_input(_models.GET_AB_TEST, args, kwargs), + _models.GET_AB_TEST, + [], + plugins, + ) + + @_overload + async def get_agent_card( + self, + request: _models.GetAgentCardInput | _models.GetAgentCardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentCardOutput: ... + + @_overload async def get_agent_card( - self, input: GetAgentCardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentCardInputDict], ) -> GetAgentCardOutput: """ Retrieves the A2A agent card associated with an AgentCore Runtime agent. Args: - input: - An instance of `GetAgentCardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -600,18 +921,39 @@ async def get_agent_card( Returns: An instance of `GetAgentCardOutput`. """ - return await self._invoke(input, _models.GET_AGENT_CARD, [], plugins) + async def get_agent_card( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentCardOutput: + return await self._invoke( + self._select_input(_models.GET_AGENT_CARD, args, kwargs), + _models.GET_AGENT_CARD, + [], + plugins, + ) + + @_overload async def get_batch_evaluation( - self, input: GetBatchEvaluationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBatchEvaluationInput | _models.GetBatchEvaluationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBatchEvaluationOutput: ... + + @_overload + async def get_batch_evaluation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBatchEvaluationInputDict], ) -> GetBatchEvaluationOutput: """ Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details. Args: - input: - An instance of `GetBatchEvaluationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -621,10 +963,33 @@ async def get_batch_evaluation( Returns: An instance of `GetBatchEvaluationOutput`. """ - return await self._invoke(input, _models.GET_BATCH_EVALUATION, [], plugins) + async def get_batch_evaluation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBatchEvaluationOutput: + return await self._invoke( + self._select_input(_models.GET_BATCH_EVALUATION, args, kwargs), + _models.GET_BATCH_EVALUATION, + [], + plugins, + ) + + @_overload + async def get_browser_session( + self, + request: _models.GetBrowserSessionInput | _models.GetBrowserSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBrowserSessionOutput: ... + + @_overload async def get_browser_session( - self, input: GetBrowserSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBrowserSessionInputDict], ) -> GetBrowserSessionOutput: """ Retrieves detailed information about a specific browser session in @@ -645,8 +1010,6 @@ async def get_browser_session( - [StopBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopBrowserSession.html) Args: - input: - An instance of `GetBrowserSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -656,10 +1019,34 @@ async def get_browser_session( Returns: An instance of `GetBrowserSessionOutput`. """ - return await self._invoke(input, _models.GET_BROWSER_SESSION, [], plugins) + async def get_browser_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBrowserSessionOutput: + return await self._invoke( + self._select_input(_models.GET_BROWSER_SESSION, args, kwargs), + _models.GET_BROWSER_SESSION, + [], + plugins, + ) + + @_overload async def get_code_interpreter_session( - self, input: GetCodeInterpreterSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCodeInterpreterSessionInput + | _models.GetCodeInterpreterSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCodeInterpreterSessionOutput: ... + + @_overload + async def get_code_interpreter_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCodeInterpreterSessionInputDict], ) -> GetCodeInterpreterSessionOutput: """ Retrieves detailed information about a specific code interpreter session @@ -679,8 +1066,6 @@ async def get_code_interpreter_session( - [StopCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopCodeInterpreterSession.html) Args: - input: - An instance of `GetCodeInterpreterSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -690,12 +1075,33 @@ async def get_code_interpreter_session( Returns: An instance of `GetCodeInterpreterSessionOutput`. """ + + async def get_code_interpreter_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCodeInterpreterSessionOutput: return await self._invoke( - input, _models.GET_CODE_INTERPRETER_SESSION, [], plugins + self._select_input(_models.GET_CODE_INTERPRETER_SESSION, args, kwargs), + _models.GET_CODE_INTERPRETER_SESSION, + [], + plugins, ) + @_overload + async def get_event( + self, + request: _models.GetEventInput | _models.GetEventInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventOutput: ... + + @_overload async def get_event( - self, input: GetEventInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventInputDict], ) -> GetEventOutput: """ Retrieves information about a specific event in an AgentCore Memory @@ -705,8 +1111,6 @@ async def get_event( permission. Args: - input: - An instance of `GetEventInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -716,10 +1120,33 @@ async def get_event( Returns: An instance of `GetEventOutput`. """ - return await self._invoke(input, _models.GET_EVENT, [], plugins) + async def get_event( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventOutput: + return await self._invoke( + self._select_input(_models.GET_EVENT, args, kwargs), + _models.GET_EVENT, + [], + plugins, + ) + + @_overload async def get_memory_record( - self, input: GetMemoryRecordInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMemoryRecordInput | _models.GetMemoryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMemoryRecordOutput: ... + + @_overload + async def get_memory_record( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMemoryRecordInputDict], ) -> GetMemoryRecordOutput: """ Retrieves a specific memory record from an AgentCore Memory resource. @@ -728,8 +1155,6 @@ async def get_memory_record( `bedrock-agentcore:GetMemoryRecord` permission. Args: - input: - An instance of `GetMemoryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -739,17 +1164,39 @@ async def get_memory_record( Returns: An instance of `GetMemoryRecordOutput`. """ - return await self._invoke(input, _models.GET_MEMORY_RECORD, [], plugins) + async def get_memory_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMemoryRecordOutput: + return await self._invoke( + self._select_input(_models.GET_MEMORY_RECORD, args, kwargs), + _models.GET_MEMORY_RECORD, + [], + plugins, + ) + + @_overload + async def get_payment_instrument( + self, + request: _models.GetPaymentInstrumentInput + | _models.GetPaymentInstrumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPaymentInstrumentOutput: ... + + @_overload async def get_payment_instrument( - self, input: GetPaymentInstrumentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentInstrumentInputDict], ) -> GetPaymentInstrumentOutput: """ Get a payment instrument by ID. Args: - input: - An instance of `GetPaymentInstrumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -759,19 +1206,39 @@ async def get_payment_instrument( Returns: An instance of `GetPaymentInstrumentOutput`. """ - return await self._invoke(input, _models.GET_PAYMENT_INSTRUMENT, [], plugins) + async def get_payment_instrument( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentInstrumentOutput: + return await self._invoke( + self._select_input(_models.GET_PAYMENT_INSTRUMENT, args, kwargs), + _models.GET_PAYMENT_INSTRUMENT, + [], + plugins, + ) + + @_overload async def get_payment_instrument_balance( self, - input: GetPaymentInstrumentBalanceInput, + request: _models.GetPaymentInstrumentBalanceInput + | _models.GetPaymentInstrumentBalanceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetPaymentInstrumentBalanceOutput: ... + + @_overload + async def get_payment_instrument_balance( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentInstrumentBalanceInputDict], ) -> GetPaymentInstrumentBalanceOutput: """ Get the balance of a payment instrument. Args: - input: - An instance of `GetPaymentInstrumentBalanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -781,19 +1248,38 @@ async def get_payment_instrument_balance( Returns: An instance of `GetPaymentInstrumentBalanceOutput`. """ + + async def get_payment_instrument_balance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentInstrumentBalanceOutput: return await self._invoke( - input, _models.GET_PAYMENT_INSTRUMENT_BALANCE, [], plugins + self._select_input(_models.GET_PAYMENT_INSTRUMENT_BALANCE, args, kwargs), + _models.GET_PAYMENT_INSTRUMENT_BALANCE, + [], + plugins, ) + @_overload async def get_payment_session( - self, input: GetPaymentSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPaymentSessionInput | _models.GetPaymentSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPaymentSessionOutput: ... + + @_overload + async def get_payment_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentSessionInputDict], ) -> GetPaymentSessionOutput: """ Get a payment session. Args: - input: - An instance of `GetPaymentSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -803,18 +1289,39 @@ async def get_payment_session( Returns: An instance of `GetPaymentSessionOutput`. """ - return await self._invoke(input, _models.GET_PAYMENT_SESSION, [], plugins) + async def get_payment_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentSessionOutput: + return await self._invoke( + self._select_input(_models.GET_PAYMENT_SESSION, args, kwargs), + _models.GET_PAYMENT_SESSION, + [], + plugins, + ) + + @_overload + async def get_recommendation( + self, + request: _models.GetRecommendationInput | _models.GetRecommendationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRecommendationOutput: ... + + @_overload async def get_recommendation( - self, input: GetRecommendationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRecommendationInputDict], ) -> GetRecommendationOutput: """ Retrieves detailed information about a recommendation, including its configuration, status, and results. Args: - input: - An instance of `GetRecommendationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -824,17 +1331,38 @@ async def get_recommendation( Returns: An instance of `GetRecommendationOutput`. """ - return await self._invoke(input, _models.GET_RECOMMENDATION, [], plugins) + async def get_recommendation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRecommendationOutput: + return await self._invoke( + self._select_input(_models.GET_RECOMMENDATION, args, kwargs), + _models.GET_RECOMMENDATION, + [], + plugins, + ) + + @_overload + async def get_resource_api_key( + self, + request: _models.GetResourceApiKeyInput | _models.GetResourceApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourceApiKeyOutput: ... + + @_overload async def get_resource_api_key( - self, input: GetResourceApiKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourceApiKeyInputDict], ) -> GetResourceApiKeyOutput: """ Retrieves the API key associated with an API key credential provider. Args: - input: - An instance of `GetResourceApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -844,17 +1372,39 @@ async def get_resource_api_key( Returns: An instance of `GetResourceApiKeyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_API_KEY, [], plugins) + async def get_resource_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourceApiKeyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_API_KEY, args, kwargs), + _models.GET_RESOURCE_API_KEY, + [], + plugins, + ) + + @_overload async def get_resource_oauth2_token( - self, input: GetResourceOauth2TokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourceOauth2TokenInput + | _models.GetResourceOauth2TokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourceOauth2TokenOutput: ... + + @_overload + async def get_resource_oauth2_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourceOauth2TokenInputDict], ) -> GetResourceOauth2TokenOutput: """ Returns the OAuth 2.0 token of the provided resource. Args: - input: - An instance of `GetResourceOauth2TokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -864,18 +1414,40 @@ async def get_resource_oauth2_token( Returns: An instance of `GetResourceOauth2TokenOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_OAUTH2_TOKEN, [], plugins) + async def get_resource_oauth2_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourceOauth2TokenOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_OAUTH2_TOKEN, args, kwargs), + _models.GET_RESOURCE_OAUTH2_TOKEN, + [], + plugins, + ) + + @_overload + async def get_resource_payment_token( + self, + request: _models.GetResourcePaymentTokenInput + | _models.GetResourcePaymentTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePaymentTokenOutput: ... + + @_overload async def get_resource_payment_token( - self, input: GetResourcePaymentTokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePaymentTokenInputDict], ) -> GetResourcePaymentTokenOutput: """ Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms. Args: - input: - An instance of `GetResourcePaymentTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -885,20 +1457,40 @@ async def get_resource_payment_token( Returns: An instance of `GetResourcePaymentTokenOutput`. """ + + async def get_resource_payment_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePaymentTokenOutput: return await self._invoke( - input, _models.GET_RESOURCE_PAYMENT_TOKEN, [], plugins + self._select_input(_models.GET_RESOURCE_PAYMENT_TOKEN, args, kwargs), + _models.GET_RESOURCE_PAYMENT_TOKEN, + [], + plugins, ) + @_overload + async def get_workload_access_token( + self, + request: _models.GetWorkloadAccessTokenInput + | _models.GetWorkloadAccessTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWorkloadAccessTokenOutput: ... + + @_overload async def get_workload_access_token( - self, input: GetWorkloadAccessTokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWorkloadAccessTokenInputDict], ) -> GetWorkloadAccessTokenOutput: """ Obtains a workload access token for agentic workloads not acting on behalf of a user. Args: - input: - An instance of `GetWorkloadAccessTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -908,20 +1500,40 @@ async def get_workload_access_token( Returns: An instance of `GetWorkloadAccessTokenOutput`. """ - return await self._invoke(input, _models.GET_WORKLOAD_ACCESS_TOKEN, [], plugins) + async def get_workload_access_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWorkloadAccessTokenOutput: + return await self._invoke( + self._select_input(_models.GET_WORKLOAD_ACCESS_TOKEN, args, kwargs), + _models.GET_WORKLOAD_ACCESS_TOKEN, + [], + plugins, + ) + + @_overload + async def get_workload_access_token_for_jwt( + self, + request: _models.GetWorkloadAccessTokenForJWTInput + | _models.GetWorkloadAccessTokenForJWTInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWorkloadAccessTokenForJWTOutput: ... + + @_overload async def get_workload_access_token_for_jwt( self, - input: GetWorkloadAccessTokenForJWTInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWorkloadAccessTokenForJWTInputDict], ) -> GetWorkloadAccessTokenForJWTOutput: """ Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token. Args: - input: - An instance of `GetWorkloadAccessTokenForJWTInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -931,22 +1543,40 @@ async def get_workload_access_token_for_jwt( Returns: An instance of `GetWorkloadAccessTokenForJWTOutput`. """ + + async def get_workload_access_token_for_jwt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWorkloadAccessTokenForJWTOutput: return await self._invoke( - input, _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_JWT, [], plugins + self._select_input(_models.GET_WORKLOAD_ACCESS_TOKEN_FOR_JWT, args, kwargs), + _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_JWT, + [], + plugins, ) + @_overload + async def get_workload_access_token_for_user_id( + self, + request: _models.GetWorkloadAccessTokenForUserIdInput + | _models.GetWorkloadAccessTokenForUserIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWorkloadAccessTokenForUserIdOutput: ... + + @_overload async def get_workload_access_token_for_user_id( self, - input: GetWorkloadAccessTokenForUserIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWorkloadAccessTokenForUserIdInputDict], ) -> GetWorkloadAccessTokenForUserIdOutput: """ Obtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID. Args: - input: - An instance of `GetWorkloadAccessTokenForUserIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -956,12 +1586,35 @@ async def get_workload_access_token_for_user_id( Returns: An instance of `GetWorkloadAccessTokenForUserIdOutput`. """ + + async def get_workload_access_token_for_user_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWorkloadAccessTokenForUserIdOutput: return await self._invoke( - input, _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_USER_ID, [], plugins + self._select_input( + _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_USER_ID, args, kwargs + ), + _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_USER_ID, + [], + plugins, ) + @_overload + async def ingest_data( + self, + request: _models.IngestDataInput | _models.IngestDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> IngestDataOutput: ... + + @_overload async def ingest_data( - self, input: IngestDataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.IngestDataInputDict], ) -> IngestDataOutput: """ Submits content directly for ingestion to generate long-term memory @@ -971,8 +1624,6 @@ async def ingest_data( permission. Args: - input: - An instance of `IngestDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -982,10 +1633,33 @@ async def ingest_data( Returns: An instance of `IngestDataOutput`. """ - return await self._invoke(input, _models.INGEST_DATA, [], plugins) + async def ingest_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> IngestDataOutput: + return await self._invoke( + self._select_input(_models.INGEST_DATA, args, kwargs), + _models.INGEST_DATA, + [], + plugins, + ) + + @_overload async def invoke_agent_runtime( - self, input: InvokeAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeAgentRuntimeInput | _models.InvokeAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeAgentRuntimeOutput: ... + + @_overload + async def invoke_agent_runtime( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeAgentRuntimeInputDict], ) -> InvokeAgentRuntimeOutput: """ Sends a request to an agent or tool hosted in an Amazon Bedrock @@ -1019,8 +1693,6 @@ async def invoke_agent_runtime( `bedrock-agentcore:InvokeAgentRuntimeForUser`). Args: - input: - An instance of `InvokeAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1030,10 +1702,36 @@ async def invoke_agent_runtime( Returns: An instance of `InvokeAgentRuntimeOutput`. """ - return await self._invoke(input, _models.INVOKE_AGENT_RUNTIME, [], plugins) + async def invoke_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeAgentRuntimeOutput: + return await self._invoke( + self._select_input(_models.INVOKE_AGENT_RUNTIME, args, kwargs), + _models.INVOKE_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload + async def invoke_agent_runtime_command( + self, + request: _models.InvokeAgentRuntimeCommandInput + | _models.InvokeAgentRuntimeCommandInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + InvokeAgentRuntimeCommandStreamOutput, InvokeAgentRuntimeCommandOutput + ]: ... + + @_overload async def invoke_agent_runtime_command( - self, input: InvokeAgentRuntimeCommandInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeAgentRuntimeCommandInputDict], ) -> AsyncOutputEventStream[ InvokeAgentRuntimeCommandStreamOutput, InvokeAgentRuntimeCommandOutput ]: @@ -1052,8 +1750,6 @@ async def invoke_agent_runtime_command( `bedrock-agentcore:InvokeAgentRuntimeCommand` permission. Args: - input: - An instance of `InvokeAgentRuntimeCommandInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1063,8 +1759,17 @@ async def invoke_agent_runtime_command( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def invoke_agent_runtime_command( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ + InvokeAgentRuntimeCommandStreamOutput, InvokeAgentRuntimeCommandOutput + ]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_AGENT_RUNTIME_COMMAND, [], plugins + self._select_input(_models.INVOKE_AGENT_RUNTIME_COMMAND, args, kwargs), + _models.INVOKE_AGENT_RUNTIME_COMMAND, + [], + plugins, ) return await pipeline.output_stream( call, @@ -1072,8 +1777,22 @@ async def invoke_agent_runtime_command( _InvokeAgentRuntimeCommandStreamOutputDeserializer().deserialize, ) + @_overload + async def invoke_browser( + self, + request: _models.InvokeBrowserInput | _models.InvokeBrowserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeBrowserOutput: ... + + @_overload async def invoke_browser( - self, input: InvokeBrowserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeBrowserInputDict], ) -> InvokeBrowserOutput: """ Invokes an operating system-level action on a browser session in Amazon @@ -1095,8 +1814,6 @@ async def invoke_browser( - [StopBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopBrowserSession.html) Args: - input: - An instance of `InvokeBrowserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1106,10 +1823,36 @@ async def invoke_browser( Returns: An instance of `InvokeBrowserOutput`. """ - return await self._invoke(input, _models.INVOKE_BROWSER, [], plugins) + async def invoke_browser( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeBrowserOutput: + return await self._invoke( + self._select_input(_models.INVOKE_BROWSER, args, kwargs), + _models.INVOKE_BROWSER, + [], + plugins, + ) + + @_overload async def invoke_code_interpreter( - self, input: InvokeCodeInterpreterInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeCodeInterpreterInput + | _models.InvokeCodeInterpreterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + CodeInterpreterStreamOutput, InvokeCodeInterpreterOutput + ]: ... + + @_overload + async def invoke_code_interpreter( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeCodeInterpreterInputDict], ) -> AsyncOutputEventStream[ CodeInterpreterStreamOutput, InvokeCodeInterpreterOutput ]: @@ -1134,8 +1877,6 @@ async def invoke_code_interpreter( - [GetCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetCodeInterpreterSession.html) Args: - input: - An instance of `InvokeCodeInterpreterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1145,8 +1886,17 @@ async def invoke_code_interpreter( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def invoke_code_interpreter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ + CodeInterpreterStreamOutput, InvokeCodeInterpreterOutput + ]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_CODE_INTERPRETER, [], plugins + self._select_input(_models.INVOKE_CODE_INTERPRETER, args, kwargs), + _models.INVOKE_CODE_INTERPRETER, + [], + plugins, ) return await pipeline.output_stream( call, @@ -1154,15 +1904,27 @@ async def invoke_code_interpreter( _CodeInterpreterStreamOutputDeserializer().deserialize, ) + @_overload + async def invoke_harness( + self, + request: _models.InvokeHarnessInput | _models.InvokeHarnessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[InvokeHarnessStreamOutput, InvokeHarnessOutput]: ... + + @_overload async def invoke_harness( - self, input: InvokeHarnessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeHarnessInputDict], ) -> AsyncOutputEventStream[InvokeHarnessStreamOutput, InvokeHarnessOutput]: """ Operation to invoke a Harness. Args: - input: - An instance of `InvokeHarnessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1172,8 +1934,15 @@ async def invoke_harness( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def invoke_harness( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[InvokeHarnessStreamOutput, InvokeHarnessOutput]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_HARNESS, [], plugins + self._select_input(_models.INVOKE_HARNESS, args, kwargs), + _models.INVOKE_HARNESS, + [], + plugins, ) return await pipeline.output_stream( call, @@ -1181,8 +1950,22 @@ async def invoke_harness( _InvokeHarnessStreamOutputDeserializer().deserialize, ) + @_overload async def invoke_web_search( - self, input: InvokeWebSearchInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeWebSearchInput | _models.InvokeWebSearchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeWebSearchOutput: ... + + @_overload + async def invoke_web_search( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeWebSearchInputDict], ) -> InvokeWebSearchOutput: """ Searches the web and returns a ranked list of results. Each result @@ -1192,11 +1975,9 @@ async def invoke_web_search( To use this operation, you must have the `bedrock-agentcore:InvokeWebSearch` permission on the resource - `arn:$${Partition}:bedrock-agentcore:$${Region}:aws:tool/web-search.v1`. + `arn:${Partition}:bedrock-agentcore:${Region}:aws:tool/web-search.v1`. Args: - input: - An instance of `InvokeWebSearchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1206,17 +1987,38 @@ async def invoke_web_search( Returns: An instance of `InvokeWebSearchOutput`. """ - return await self._invoke(input, _models.INVOKE_WEB_SEARCH, [], plugins) + async def invoke_web_search( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeWebSearchOutput: + return await self._invoke( + self._select_input(_models.INVOKE_WEB_SEARCH, args, kwargs), + _models.INVOKE_WEB_SEARCH, + [], + plugins, + ) + + @_overload + async def list_ab_tests( + self, + request: _models.ListABTestsInput | _models.ListABTestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListABTestsOutput: ... + + @_overload async def list_ab_tests( - self, input: ListABTestsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListABTestsInputDict], ) -> ListABTestsOutput: """ Lists all A/B tests in the account. Args: - input: - An instance of `ListABTestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1226,10 +2028,33 @@ async def list_ab_tests( Returns: An instance of `ListABTestsOutput`. """ - return await self._invoke(input, _models.LIST_AB_TESTS, [], plugins) + async def list_ab_tests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListABTestsOutput: + return await self._invoke( + self._select_input(_models.LIST_AB_TESTS, args, kwargs), + _models.LIST_AB_TESTS, + [], + plugins, + ) + + @_overload async def list_actors( - self, input: ListActorsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListActorsInput | _models.ListActorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListActorsOutput: ... + + @_overload + async def list_actors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListActorsInputDict], ) -> ListActorsOutput: """ Lists all actors in an AgentCore Memory resource. We recommend using @@ -1240,8 +2065,6 @@ async def list_actors( permission. Args: - input: - An instance of `ListActorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1251,18 +2074,40 @@ async def list_actors( Returns: An instance of `ListActorsOutput`. """ - return await self._invoke(input, _models.LIST_ACTORS, [], plugins) + async def list_actors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListActorsOutput: + return await self._invoke( + self._select_input(_models.LIST_ACTORS, args, kwargs), + _models.LIST_ACTORS, + [], + plugins, + ) + + @_overload + async def list_batch_evaluations( + self, + request: _models.ListBatchEvaluationsInput + | _models.ListBatchEvaluationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBatchEvaluationsOutput: ... + + @_overload async def list_batch_evaluations( - self, input: ListBatchEvaluationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBatchEvaluationsInputDict], ) -> ListBatchEvaluationsOutput: """ Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration. Args: - input: - An instance of `ListBatchEvaluationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1272,10 +2117,34 @@ async def list_batch_evaluations( Returns: An instance of `ListBatchEvaluationsOutput`. """ - return await self._invoke(input, _models.LIST_BATCH_EVALUATIONS, [], plugins) + async def list_batch_evaluations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBatchEvaluationsOutput: + return await self._invoke( + self._select_input(_models.LIST_BATCH_EVALUATIONS, args, kwargs), + _models.LIST_BATCH_EVALUATIONS, + [], + plugins, + ) + + @_overload + async def list_browser_sessions( + self, + request: _models.ListBrowserSessionsInput + | _models.ListBrowserSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBrowserSessionsOutput: ... + + @_overload async def list_browser_sessions( - self, input: ListBrowserSessionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBrowserSessionsInputDict], ) -> ListBrowserSessionsOutput: """ Retrieves a list of browser sessions in Amazon Bedrock AgentCore that @@ -1295,8 +2164,6 @@ async def list_browser_sessions( - [GetBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html) Args: - input: - An instance of `ListBrowserSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1306,12 +2173,34 @@ async def list_browser_sessions( Returns: An instance of `ListBrowserSessionsOutput`. """ - return await self._invoke(input, _models.LIST_BROWSER_SESSIONS, [], plugins) + async def list_browser_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBrowserSessionsOutput: + return await self._invoke( + self._select_input(_models.LIST_BROWSER_SESSIONS, args, kwargs), + _models.LIST_BROWSER_SESSIONS, + [], + plugins, + ) + + @_overload + async def list_code_interpreter_sessions( + self, + request: _models.ListCodeInterpreterSessionsInput + | _models.ListCodeInterpreterSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCodeInterpreterSessionsOutput: ... + + @_overload async def list_code_interpreter_sessions( self, - input: ListCodeInterpreterSessionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCodeInterpreterSessionsInputDict], ) -> ListCodeInterpreterSessionsOutput: """ Retrieves a list of code interpreter sessions in Amazon Bedrock @@ -1333,8 +2222,6 @@ async def list_code_interpreter_sessions( - [GetCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetCodeInterpreterSession.html) Args: - input: - An instance of `ListCodeInterpreterSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1344,12 +2231,33 @@ async def list_code_interpreter_sessions( Returns: An instance of `ListCodeInterpreterSessionsOutput`. """ + + async def list_code_interpreter_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCodeInterpreterSessionsOutput: return await self._invoke( - input, _models.LIST_CODE_INTERPRETER_SESSIONS, [], plugins + self._select_input(_models.LIST_CODE_INTERPRETER_SESSIONS, args, kwargs), + _models.LIST_CODE_INTERPRETER_SESSIONS, + [], + plugins, ) + @_overload + async def list_events( + self, + request: _models.ListEventsInput | _models.ListEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEventsOutput: ... + + @_overload async def list_events( - self, input: ListEventsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEventsInputDict], ) -> ListEventsOutput: """ Lists events in an AgentCore Memory resource based on specified @@ -1360,8 +2268,6 @@ async def list_events( permission. Args: - input: - An instance of `ListEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1371,10 +2277,34 @@ async def list_events( Returns: An instance of `ListEventsOutput`. """ - return await self._invoke(input, _models.LIST_EVENTS, [], plugins) + async def list_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEventsOutput: + return await self._invoke( + self._select_input(_models.LIST_EVENTS, args, kwargs), + _models.LIST_EVENTS, + [], + plugins, + ) + + @_overload + async def list_memory_extraction_jobs( + self, + request: _models.ListMemoryExtractionJobsInput + | _models.ListMemoryExtractionJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMemoryExtractionJobsOutput: ... + + @_overload async def list_memory_extraction_jobs( - self, input: ListMemoryExtractionJobsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMemoryExtractionJobsInputDict], ) -> ListMemoryExtractionJobsOutput: """ Lists all long-term memory extraction jobs that are eligible to be @@ -1384,8 +2314,6 @@ async def list_memory_extraction_jobs( `bedrock-agentcore:ListMemoryExtractionJobs` permission. Args: - input: - An instance of `ListMemoryExtractionJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1395,12 +2323,33 @@ async def list_memory_extraction_jobs( Returns: An instance of `ListMemoryExtractionJobsOutput`. """ + + async def list_memory_extraction_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMemoryExtractionJobsOutput: return await self._invoke( - input, _models.LIST_MEMORY_EXTRACTION_JOBS, [], plugins + self._select_input(_models.LIST_MEMORY_EXTRACTION_JOBS, args, kwargs), + _models.LIST_MEMORY_EXTRACTION_JOBS, + [], + plugins, ) + @_overload async def list_memory_records( - self, input: ListMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListMemoryRecordsInput | _models.ListMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMemoryRecordsOutput: ... + + @_overload + async def list_memory_records( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMemoryRecordsInputDict], ) -> ListMemoryRecordsOutput: """ Lists memory records in an AgentCore Memory resource based on specified @@ -1411,8 +2360,6 @@ async def list_memory_records( `bedrock-agentcore:ListMemoryRecords` permission. Args: - input: - An instance of `ListMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1422,17 +2369,39 @@ async def list_memory_records( Returns: An instance of `ListMemoryRecordsOutput`. """ - return await self._invoke(input, _models.LIST_MEMORY_RECORDS, [], plugins) + async def list_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMemoryRecordsOutput: + return await self._invoke( + self._select_input(_models.LIST_MEMORY_RECORDS, args, kwargs), + _models.LIST_MEMORY_RECORDS, + [], + plugins, + ) + + @_overload + async def list_payment_instruments( + self, + request: _models.ListPaymentInstrumentsInput + | _models.ListPaymentInstrumentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentInstrumentsOutput: ... + + @_overload async def list_payment_instruments( - self, input: ListPaymentInstrumentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentInstrumentsInputDict], ) -> ListPaymentInstrumentsOutput: """ List payment instruments for a manager. Args: - input: - An instance of `ListPaymentInstrumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1442,17 +2411,39 @@ async def list_payment_instruments( Returns: An instance of `ListPaymentInstrumentsOutput`. """ - return await self._invoke(input, _models.LIST_PAYMENT_INSTRUMENTS, [], plugins) + async def list_payment_instruments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentInstrumentsOutput: + return await self._invoke( + self._select_input(_models.LIST_PAYMENT_INSTRUMENTS, args, kwargs), + _models.LIST_PAYMENT_INSTRUMENTS, + [], + plugins, + ) + + @_overload + async def list_payment_sessions( + self, + request: _models.ListPaymentSessionsInput + | _models.ListPaymentSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentSessionsOutput: ... + + @_overload async def list_payment_sessions( - self, input: ListPaymentSessionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentSessionsInputDict], ) -> ListPaymentSessionsOutput: """ List payment sessions. Args: - input: - An instance of `ListPaymentSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1462,18 +2453,40 @@ async def list_payment_sessions( Returns: An instance of `ListPaymentSessionsOutput`. """ - return await self._invoke(input, _models.LIST_PAYMENT_SESSIONS, [], plugins) + async def list_payment_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentSessionsOutput: + return await self._invoke( + self._select_input(_models.LIST_PAYMENT_SESSIONS, args, kwargs), + _models.LIST_PAYMENT_SESSIONS, + [], + plugins, + ) + + @_overload + async def list_recommendations( + self, + request: _models.ListRecommendationsInput + | _models.ListRecommendationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRecommendationsOutput: ... + + @_overload async def list_recommendations( - self, input: ListRecommendationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRecommendationsInputDict], ) -> ListRecommendationsOutput: """ Lists all recommendations in the account, with optional filtering by status. Args: - input: - An instance of `ListRecommendationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1483,10 +2496,33 @@ async def list_recommendations( Returns: An instance of `ListRecommendationsOutput`. """ - return await self._invoke(input, _models.LIST_RECOMMENDATIONS, [], plugins) + async def list_recommendations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRecommendationsOutput: + return await self._invoke( + self._select_input(_models.LIST_RECOMMENDATIONS, args, kwargs), + _models.LIST_RECOMMENDATIONS, + [], + plugins, + ) + + @_overload + async def list_sessions( + self, + request: _models.ListSessionsInput | _models.ListSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSessionsOutput: ... + + @_overload async def list_sessions( - self, input: ListSessionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSessionsInputDict], ) -> ListSessionsOutput: """ Lists sessions in an AgentCore Memory resource based on specified @@ -1499,8 +2535,6 @@ async def list_sessions( `bedrock-agentcore:ListSessions` permission. Args: - input: - An instance of `ListSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1510,17 +2544,38 @@ async def list_sessions( Returns: An instance of `ListSessionsOutput`. """ - return await self._invoke(input, _models.LIST_SESSIONS, [], plugins) + async def list_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSessionsOutput: + return await self._invoke( + self._select_input(_models.LIST_SESSIONS, args, kwargs), + _models.LIST_SESSIONS, + [], + plugins, + ) + + @_overload + async def process_payment( + self, + request: _models.ProcessPaymentInput | _models.ProcessPaymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProcessPaymentOutput: ... + + @_overload async def process_payment( - self, input: ProcessPaymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProcessPaymentInputDict], ) -> ProcessPaymentOutput: """ Processes a payment using a payment instrument within a payment session. Args: - input: - An instance of `ProcessPaymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1530,10 +2585,34 @@ async def process_payment( Returns: An instance of `ProcessPaymentOutput`. """ - return await self._invoke(input, _models.PROCESS_PAYMENT, [], plugins) + async def process_payment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProcessPaymentOutput: + return await self._invoke( + self._select_input(_models.PROCESS_PAYMENT, args, kwargs), + _models.PROCESS_PAYMENT, + [], + plugins, + ) + + @_overload + async def retrieve_memory_records( + self, + request: _models.RetrieveMemoryRecordsInput + | _models.RetrieveMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RetrieveMemoryRecordsOutput: ... + + @_overload async def retrieve_memory_records( - self, input: RetrieveMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetrieveMemoryRecordsInputDict], ) -> RetrieveMemoryRecordsOutput: """ Searches for and retrieves memory records from an AgentCore Memory @@ -1545,8 +2624,6 @@ async def retrieve_memory_records( `bedrock-agentcore:RetrieveMemoryRecords` permission. Args: - input: - An instance of `RetrieveMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1556,10 +2633,34 @@ async def retrieve_memory_records( Returns: An instance of `RetrieveMemoryRecordsOutput`. """ - return await self._invoke(input, _models.RETRIEVE_MEMORY_RECORDS, [], plugins) + async def retrieve_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RetrieveMemoryRecordsOutput: + return await self._invoke( + self._select_input(_models.RETRIEVE_MEMORY_RECORDS, args, kwargs), + _models.RETRIEVE_MEMORY_RECORDS, + [], + plugins, + ) + + @_overload + async def save_browser_session_profile( + self, + request: _models.SaveBrowserSessionProfileInput + | _models.SaveBrowserSessionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SaveBrowserSessionProfileOutput: ... + + @_overload async def save_browser_session_profile( - self, input: SaveBrowserSessionProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SaveBrowserSessionProfileInputDict], ) -> SaveBrowserSessionProfileOutput: """ Saves the current state of a browser session as a reusable profile in @@ -1584,8 +2685,6 @@ async def save_browser_session_profile( - [GetBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html) Args: - input: - An instance of `SaveBrowserSessionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1595,12 +2694,34 @@ async def save_browser_session_profile( Returns: An instance of `SaveBrowserSessionProfileOutput`. """ + + async def save_browser_session_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SaveBrowserSessionProfileOutput: return await self._invoke( - input, _models.SAVE_BROWSER_SESSION_PROFILE, [], plugins + self._select_input(_models.SAVE_BROWSER_SESSION_PROFILE, args, kwargs), + _models.SAVE_BROWSER_SESSION_PROFILE, + [], + plugins, ) + @_overload + async def search_registry_records( + self, + request: _models.SearchRegistryRecordsInput + | _models.SearchRegistryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchRegistryRecordsOutput: ... + + @_overload async def search_registry_records( - self, input: SearchRegistryRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchRegistryRecordsInputDict], ) -> SearchRegistryRecordsOutput: """ Searches for registry records using semantic, lexical, or hybrid @@ -1608,8 +2729,6 @@ async def search_registry_records( within the specified registry. Args: - input: - An instance of `SearchRegistryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1619,10 +2738,34 @@ async def search_registry_records( Returns: An instance of `SearchRegistryRecordsOutput`. """ - return await self._invoke(input, _models.SEARCH_REGISTRY_RECORDS, [], plugins) + async def search_registry_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchRegistryRecordsOutput: + return await self._invoke( + self._select_input(_models.SEARCH_REGISTRY_RECORDS, args, kwargs), + _models.SEARCH_REGISTRY_RECORDS, + [], + plugins, + ) + + @_overload + async def start_batch_evaluation( + self, + request: _models.StartBatchEvaluationInput + | _models.StartBatchEvaluationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartBatchEvaluationOutput: ... + + @_overload async def start_batch_evaluation( - self, input: StartBatchEvaluationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartBatchEvaluationInputDict], ) -> StartBatchEvaluationOutput: """ Starts a batch evaluation job that evaluates agent performance across @@ -1631,8 +2774,6 @@ async def start_batch_evaluation( evaluators and insights against them. Args: - input: - An instance of `StartBatchEvaluationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1642,10 +2783,34 @@ async def start_batch_evaluation( Returns: An instance of `StartBatchEvaluationOutput`. """ - return await self._invoke(input, _models.START_BATCH_EVALUATION, [], plugins) + async def start_batch_evaluation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartBatchEvaluationOutput: + return await self._invoke( + self._select_input(_models.START_BATCH_EVALUATION, args, kwargs), + _models.START_BATCH_EVALUATION, + [], + plugins, + ) + + @_overload + async def start_browser_session( + self, + request: _models.StartBrowserSessionInput + | _models.StartBrowserSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartBrowserSessionOutput: ... + + @_overload async def start_browser_session( - self, input: StartBrowserSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartBrowserSessionInputDict], ) -> StartBrowserSessionOutput: """ Creates and initializes a browser session in Amazon Bedrock AgentCore. @@ -1671,8 +2836,6 @@ async def start_browser_session( - [InvokeBrowser](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_InvokeBrowser.html) Args: - input: - An instance of `StartBrowserSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1682,12 +2845,34 @@ async def start_browser_session( Returns: An instance of `StartBrowserSessionOutput`. """ - return await self._invoke(input, _models.START_BROWSER_SESSION, [], plugins) + async def start_browser_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartBrowserSessionOutput: + return await self._invoke( + self._select_input(_models.START_BROWSER_SESSION, args, kwargs), + _models.START_BROWSER_SESSION, + [], + plugins, + ) + + @_overload + async def start_code_interpreter_session( + self, + request: _models.StartCodeInterpreterSessionInput + | _models.StartCodeInterpreterSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartCodeInterpreterSessionOutput: ... + + @_overload async def start_code_interpreter_session( self, - input: StartCodeInterpreterSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartCodeInterpreterSessionInputDict], ) -> StartCodeInterpreterSessionOutput: """ Creates and initializes a code interpreter session in Amazon Bedrock @@ -1708,8 +2893,6 @@ async def start_code_interpreter_session( - [StopCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopCodeInterpreterSession.html) Args: - input: - An instance of `StartCodeInterpreterSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1719,12 +2902,34 @@ async def start_code_interpreter_session( Returns: An instance of `StartCodeInterpreterSessionOutput`. """ + + async def start_code_interpreter_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartCodeInterpreterSessionOutput: return await self._invoke( - input, _models.START_CODE_INTERPRETER_SESSION, [], plugins + self._select_input(_models.START_CODE_INTERPRETER_SESSION, args, kwargs), + _models.START_CODE_INTERPRETER_SESSION, + [], + plugins, ) + @_overload + async def start_memory_extraction_job( + self, + request: _models.StartMemoryExtractionJobInput + | _models.StartMemoryExtractionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartMemoryExtractionJobOutput: ... + + @_overload async def start_memory_extraction_job( - self, input: StartMemoryExtractionJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMemoryExtractionJobInputDict], ) -> StartMemoryExtractionJobOutput: """ Starts a memory extraction job that processes events that failed @@ -1736,8 +2941,6 @@ async def start_memory_extraction_job( `bedrock-agentcore:StartMemoryExtractionJob` permission. Args: - input: - An instance of `StartMemoryExtractionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1747,12 +2950,34 @@ async def start_memory_extraction_job( Returns: An instance of `StartMemoryExtractionJobOutput`. """ + + async def start_memory_extraction_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartMemoryExtractionJobOutput: return await self._invoke( - input, _models.START_MEMORY_EXTRACTION_JOB, [], plugins + self._select_input(_models.START_MEMORY_EXTRACTION_JOB, args, kwargs), + _models.START_MEMORY_EXTRACTION_JOB, + [], + plugins, ) + @_overload + async def start_recommendation( + self, + request: _models.StartRecommendationInput + | _models.StartRecommendationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartRecommendationOutput: ... + + @_overload async def start_recommendation( - self, input: StartRecommendationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartRecommendationInputDict], ) -> StartRecommendationOutput: """ Starts a recommendation job that analyzes agent traces and generates @@ -1760,8 +2985,6 @@ async def start_recommendation( improve agent performance. Args: - input: - An instance of `StartRecommendationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1771,18 +2994,40 @@ async def start_recommendation( Returns: An instance of `StartRecommendationOutput`. """ - return await self._invoke(input, _models.START_RECOMMENDATION, [], plugins) + async def start_recommendation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartRecommendationOutput: + return await self._invoke( + self._select_input(_models.START_RECOMMENDATION, args, kwargs), + _models.START_RECOMMENDATION, + [], + plugins, + ) + + @_overload + async def stop_batch_evaluation( + self, + request: _models.StopBatchEvaluationInput + | _models.StopBatchEvaluationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopBatchEvaluationOutput: ... + + @_overload async def stop_batch_evaluation( - self, input: StopBatchEvaluationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopBatchEvaluationInputDict], ) -> StopBatchEvaluationOutput: """ Stops a running batch evaluation. Sessions that have already been evaluated retain their results. Args: - input: - An instance of `StopBatchEvaluationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1792,10 +3037,33 @@ async def stop_batch_evaluation( Returns: An instance of `StopBatchEvaluationOutput`. """ - return await self._invoke(input, _models.STOP_BATCH_EVALUATION, [], plugins) + async def stop_batch_evaluation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopBatchEvaluationOutput: + return await self._invoke( + self._select_input(_models.STOP_BATCH_EVALUATION, args, kwargs), + _models.STOP_BATCH_EVALUATION, + [], + plugins, + ) + + @_overload + async def stop_browser_session( + self, + request: _models.StopBrowserSessionInput | _models.StopBrowserSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopBrowserSessionOutput: ... + + @_overload async def stop_browser_session( - self, input: StopBrowserSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopBrowserSessionInputDict], ) -> StopBrowserSessionOutput: """ Terminates an active browser session in Amazon Bedrock AgentCore. This @@ -1813,8 +3081,6 @@ async def stop_browser_session( - [GetBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html) Args: - input: - An instance of `StopBrowserSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1824,12 +3090,34 @@ async def stop_browser_session( Returns: An instance of `StopBrowserSessionOutput`. """ - return await self._invoke(input, _models.STOP_BROWSER_SESSION, [], plugins) + async def stop_browser_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopBrowserSessionOutput: + return await self._invoke( + self._select_input(_models.STOP_BROWSER_SESSION, args, kwargs), + _models.STOP_BROWSER_SESSION, + [], + plugins, + ) + + @_overload async def stop_code_interpreter_session( self, - input: StopCodeInterpreterSessionInput, + request: _models.StopCodeInterpreterSessionInput + | _models.StopCodeInterpreterSessionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> StopCodeInterpreterSessionOutput: ... + + @_overload + async def stop_code_interpreter_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopCodeInterpreterSessionInputDict], ) -> StopCodeInterpreterSessionOutput: """ Terminates an active code interpreter session in Amazon Bedrock @@ -1848,8 +3136,6 @@ async def stop_code_interpreter_session( - [GetCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetCodeInterpreterSession.html) Args: - input: - An instance of `StopCodeInterpreterSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1859,19 +3145,38 @@ async def stop_code_interpreter_session( Returns: An instance of `StopCodeInterpreterSessionOutput`. """ + + async def stop_code_interpreter_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopCodeInterpreterSessionOutput: return await self._invoke( - input, _models.STOP_CODE_INTERPRETER_SESSION, [], plugins + self._select_input(_models.STOP_CODE_INTERPRETER_SESSION, args, kwargs), + _models.STOP_CODE_INTERPRETER_SESSION, + [], + plugins, ) + @_overload + async def stop_runtime_session( + self, + request: _models.StopRuntimeSessionInput | _models.StopRuntimeSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopRuntimeSessionOutput: ... + + @_overload async def stop_runtime_session( - self, input: StopRuntimeSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopRuntimeSessionInputDict], ) -> StopRuntimeSessionOutput: """ Stops a session that is running in an running AgentCore Runtime agent. Args: - input: - An instance of `StopRuntimeSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1881,18 +3186,39 @@ async def stop_runtime_session( Returns: An instance of `StopRuntimeSessionOutput`. """ - return await self._invoke(input, _models.STOP_RUNTIME_SESSION, [], plugins) + async def stop_runtime_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopRuntimeSessionOutput: + return await self._invoke( + self._select_input(_models.STOP_RUNTIME_SESSION, args, kwargs), + _models.STOP_RUNTIME_SESSION, + [], + plugins, + ) + + @_overload + async def update_ab_test( + self, + request: _models.UpdateABTestInput | _models.UpdateABTestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateABTestOutput: ... + + @_overload async def update_ab_test( - self, input: UpdateABTestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateABTestInputDict], ) -> UpdateABTestOutput: """ Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status. Args: - input: - An instance of `UpdateABTestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1902,18 +3228,40 @@ async def update_ab_test( Returns: An instance of `UpdateABTestOutput`. """ - return await self._invoke(input, _models.UPDATE_AB_TEST, [], plugins) + async def update_ab_test( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateABTestOutput: + return await self._invoke( + self._select_input(_models.UPDATE_AB_TEST, args, kwargs), + _models.UPDATE_AB_TEST, + [], + plugins, + ) + + @_overload + async def update_browser_stream( + self, + request: _models.UpdateBrowserStreamInput + | _models.UpdateBrowserStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBrowserStreamOutput: ... + + @_overload async def update_browser_stream( - self, input: UpdateBrowserStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateBrowserStreamInputDict], ) -> UpdateBrowserStreamOutput: """ Updates a browser stream. To use this operation, you must have permissions to perform the bedrock:UpdateBrowserStream action. Args: - input: - An instance of `UpdateBrowserStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1923,7 +3271,16 @@ async def update_browser_stream( Returns: An instance of `UpdateBrowserStreamOutput`. """ - return await self._invoke(input, _models.UPDATE_BROWSER_STREAM, [], plugins) + + async def update_browser_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBrowserStreamOutput: + return await self._invoke( + self._select_input(_models.UPDATE_BROWSER_STREAM, args, kwargs), + _models.UPDATE_BROWSER_STREAM, + [], + plugins, + ) async def _new_config(self) -> AsyncBedrockAgentCoreConfig: return await AsyncBedrockAgentCoreConfig.resolve() diff --git a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/client.py b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/client.py index 41cdc59f0..ac1aec26f 100644 --- a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/client.py +++ b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,135 +20,70 @@ if TYPE_CHECKING: from .models import ( - BatchCreateMemoryRecordsInput, BatchCreateMemoryRecordsOutput, - BatchDeleteMemoryRecordsInput, BatchDeleteMemoryRecordsOutput, - BatchUpdateMemoryRecordsInput, BatchUpdateMemoryRecordsOutput, - CompleteResourceTokenAuthInput, CompleteResourceTokenAuthOutput, - CreateABTestInput, CreateABTestOutput, - CreateEventInput, CreateEventOutput, - CreatePaymentInstrumentInput, CreatePaymentInstrumentOutput, - CreatePaymentSessionInput, CreatePaymentSessionOutput, - DeleteABTestInput, DeleteABTestOutput, - DeleteBatchEvaluationInput, DeleteBatchEvaluationOutput, - DeleteCapacityProviderSessionInput, DeleteCapacityProviderSessionOutput, - DeleteEventInput, DeleteEventOutput, - DeleteMemoryRecordInput, DeleteMemoryRecordOutput, - DeletePaymentInstrumentInput, DeletePaymentInstrumentOutput, - DeletePaymentSessionInput, DeletePaymentSessionOutput, - DeleteRecommendationInput, DeleteRecommendationOutput, - EvaluateInput, EvaluateOutput, - GetABTestInput, GetABTestOutput, - GetAgentCardInput, GetAgentCardOutput, - GetBatchEvaluationInput, GetBatchEvaluationOutput, - GetBrowserSessionInput, GetBrowserSessionOutput, - GetCodeInterpreterSessionInput, GetCodeInterpreterSessionOutput, - GetEventInput, GetEventOutput, - GetMemoryRecordInput, GetMemoryRecordOutput, - GetPaymentInstrumentBalanceInput, GetPaymentInstrumentBalanceOutput, - GetPaymentInstrumentInput, GetPaymentInstrumentOutput, - GetPaymentSessionInput, GetPaymentSessionOutput, - GetRecommendationInput, GetRecommendationOutput, - GetResourceApiKeyInput, GetResourceApiKeyOutput, - GetResourceOauth2TokenInput, GetResourceOauth2TokenOutput, - GetResourcePaymentTokenInput, GetResourcePaymentTokenOutput, - GetWorkloadAccessTokenForJWTInput, GetWorkloadAccessTokenForJWTOutput, - GetWorkloadAccessTokenForUserIdInput, GetWorkloadAccessTokenForUserIdOutput, - GetWorkloadAccessTokenInput, GetWorkloadAccessTokenOutput, - IngestDataInput, IngestDataOutput, - InvokeAgentRuntimeInput, InvokeAgentRuntimeOutput, - InvokeBrowserInput, InvokeBrowserOutput, - InvokeWebSearchInput, InvokeWebSearchOutput, - ListABTestsInput, ListABTestsOutput, - ListActorsInput, ListActorsOutput, - ListBatchEvaluationsInput, ListBatchEvaluationsOutput, - ListBrowserSessionsInput, ListBrowserSessionsOutput, - ListCodeInterpreterSessionsInput, ListCodeInterpreterSessionsOutput, - ListEventsInput, ListEventsOutput, - ListMemoryExtractionJobsInput, ListMemoryExtractionJobsOutput, - ListMemoryRecordsInput, ListMemoryRecordsOutput, - ListPaymentInstrumentsInput, ListPaymentInstrumentsOutput, - ListPaymentSessionsInput, ListPaymentSessionsOutput, - ListRecommendationsInput, ListRecommendationsOutput, - ListSessionsInput, ListSessionsOutput, - ProcessPaymentInput, ProcessPaymentOutput, - RetrieveMemoryRecordsInput, RetrieveMemoryRecordsOutput, - SaveBrowserSessionProfileInput, SaveBrowserSessionProfileOutput, - SearchRegistryRecordsInput, SearchRegistryRecordsOutput, - StartBatchEvaluationInput, StartBatchEvaluationOutput, - StartBrowserSessionInput, StartBrowserSessionOutput, - StartCodeInterpreterSessionInput, StartCodeInterpreterSessionOutput, - StartMemoryExtractionJobInput, StartMemoryExtractionJobOutput, - StartRecommendationInput, StartRecommendationOutput, - StopBatchEvaluationInput, StopBatchEvaluationOutput, - StopBrowserSessionInput, StopBrowserSessionOutput, - StopCodeInterpreterSessionInput, StopCodeInterpreterSessionOutput, - StopRuntimeSessionInput, StopRuntimeSessionOutput, - UpdateABTestInput, UpdateABTestOutput, - UpdateBrowserStreamInput, UpdateBrowserStreamOutput, ) @@ -163,18 +98,31 @@ class BedrockAgentCoreClient(Client[BedrockAgentCoreConfig]): Services services. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def batch_create_memory_records( - self, input: BatchCreateMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchCreateMemoryRecordsInput + | _models.BatchCreateMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchCreateMemoryRecordsOutput: ... + + @_overload + def batch_create_memory_records( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchCreateMemoryRecordsInputDict], ) -> BatchCreateMemoryRecordsOutput: """ Creates multiple memory records in a single batch operation for the specified memory with custom content. Args: - input: - An instance of `BatchCreateMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -184,18 +132,40 @@ def batch_create_memory_records( Returns: An instance of `BatchCreateMemoryRecordsOutput`. """ - return self._invoke(input, _models.BATCH_CREATE_MEMORY_RECORDS, [], plugins) + def batch_create_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchCreateMemoryRecordsOutput: + return self._invoke( + self._select_input(_models.BATCH_CREATE_MEMORY_RECORDS, args, kwargs), + _models.BATCH_CREATE_MEMORY_RECORDS, + [], + plugins, + ) + + @_overload + def batch_delete_memory_records( + self, + request: _models.BatchDeleteMemoryRecordsInput + | _models.BatchDeleteMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchDeleteMemoryRecordsOutput: ... + + @_overload def batch_delete_memory_records( - self, input: BatchDeleteMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDeleteMemoryRecordsInputDict], ) -> BatchDeleteMemoryRecordsOutput: """ Deletes multiple memory records in a single batch operation from the specified memory. Args: - input: - An instance of `BatchDeleteMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -205,18 +175,40 @@ def batch_delete_memory_records( Returns: An instance of `BatchDeleteMemoryRecordsOutput`. """ - return self._invoke(input, _models.BATCH_DELETE_MEMORY_RECORDS, [], plugins) + def batch_delete_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDeleteMemoryRecordsOutput: + return self._invoke( + self._select_input(_models.BATCH_DELETE_MEMORY_RECORDS, args, kwargs), + _models.BATCH_DELETE_MEMORY_RECORDS, + [], + plugins, + ) + + @_overload def batch_update_memory_records( - self, input: BatchUpdateMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchUpdateMemoryRecordsInput + | _models.BatchUpdateMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchUpdateMemoryRecordsOutput: ... + + @_overload + def batch_update_memory_records( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchUpdateMemoryRecordsInputDict], ) -> BatchUpdateMemoryRecordsOutput: """ Updates multiple memory records with custom content in a single batch operation within the specified memory. Args: - input: - An instance of `BatchUpdateMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -226,18 +218,40 @@ def batch_update_memory_records( Returns: An instance of `BatchUpdateMemoryRecordsOutput`. """ - return self._invoke(input, _models.BATCH_UPDATE_MEMORY_RECORDS, [], plugins) + def batch_update_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchUpdateMemoryRecordsOutput: + return self._invoke( + self._select_input(_models.BATCH_UPDATE_MEMORY_RECORDS, args, kwargs), + _models.BATCH_UPDATE_MEMORY_RECORDS, + [], + plugins, + ) + + @_overload + def complete_resource_token_auth( + self, + request: _models.CompleteResourceTokenAuthInput + | _models.CompleteResourceTokenAuthInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CompleteResourceTokenAuthOutput: ... + + @_overload def complete_resource_token_auth( - self, input: CompleteResourceTokenAuthInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CompleteResourceTokenAuthInputDict], ) -> CompleteResourceTokenAuthOutput: """ Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource. Args: - input: - An instance of `CompleteResourceTokenAuthInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -247,10 +261,33 @@ def complete_resource_token_auth( Returns: An instance of `CompleteResourceTokenAuthOutput`. """ - return self._invoke(input, _models.COMPLETE_RESOURCE_TOKEN_AUTH, [], plugins) + def complete_resource_token_auth( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CompleteResourceTokenAuthOutput: + return self._invoke( + self._select_input(_models.COMPLETE_RESOURCE_TOKEN_AUTH, args, kwargs), + _models.COMPLETE_RESOURCE_TOKEN_AUTH, + [], + plugins, + ) + + @_overload def create_ab_test( - self, input: CreateABTestInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateABTestInput | _models.CreateABTestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateABTestOutput: ... + + @_overload + def create_ab_test( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateABTestInputDict], ) -> CreateABTestOutput: """ Creates an A/B test for comparing agent configurations. A/B tests split @@ -259,8 +296,6 @@ def create_ab_test( configurations to determine which variant performs better. Args: - input: - An instance of `CreateABTestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -270,10 +305,33 @@ def create_ab_test( Returns: An instance of `CreateABTestOutput`. """ - return self._invoke(input, _models.CREATE_AB_TEST, [], plugins) + def create_ab_test( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateABTestOutput: + return self._invoke( + self._select_input(_models.CREATE_AB_TEST, args, kwargs), + _models.CREATE_AB_TEST, + [], + plugins, + ) + + @_overload def create_event( - self, input: CreateEventInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateEventInput | _models.CreateEventInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEventOutput: ... + + @_overload + def create_event( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEventInputDict], ) -> CreateEventOutput: """ Creates an event in an AgentCore Memory resource. Events represent @@ -286,8 +344,6 @@ def create_event( This operation is subject to request rate limiting. Args: - input: - An instance of `CreateEventInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -297,17 +353,39 @@ def create_event( Returns: An instance of `CreateEventOutput`. """ - return self._invoke(input, _models.CREATE_EVENT, [], plugins) + def create_event( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEventOutput: + return self._invoke( + self._select_input(_models.CREATE_EVENT, args, kwargs), + _models.CREATE_EVENT, + [], + plugins, + ) + + @_overload def create_payment_instrument( - self, input: CreatePaymentInstrumentInput, plugins: list[Plugin] | None = None + self, + request: _models.CreatePaymentInstrumentInput + | _models.CreatePaymentInstrumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentInstrumentOutput: ... + + @_overload + def create_payment_instrument( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentInstrumentInputDict], ) -> CreatePaymentInstrumentOutput: """ Create a new payment instrument for a connector. Args: - input: - An instance of `CreatePaymentInstrumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -317,17 +395,39 @@ def create_payment_instrument( Returns: An instance of `CreatePaymentInstrumentOutput`. """ - return self._invoke(input, _models.CREATE_PAYMENT_INSTRUMENT, [], plugins) + def create_payment_instrument( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentInstrumentOutput: + return self._invoke( + self._select_input(_models.CREATE_PAYMENT_INSTRUMENT, args, kwargs), + _models.CREATE_PAYMENT_INSTRUMENT, + [], + plugins, + ) + + @_overload + def create_payment_session( + self, + request: _models.CreatePaymentSessionInput + | _models.CreatePaymentSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePaymentSessionOutput: ... + + @_overload def create_payment_session( - self, input: CreatePaymentSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePaymentSessionInputDict], ) -> CreatePaymentSessionOutput: """ Create a new payment session. Args: - input: - An instance of `CreatePaymentSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -337,17 +437,38 @@ def create_payment_session( Returns: An instance of `CreatePaymentSessionOutput`. """ - return self._invoke(input, _models.CREATE_PAYMENT_SESSION, [], plugins) + def create_payment_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePaymentSessionOutput: + return self._invoke( + self._select_input(_models.CREATE_PAYMENT_SESSION, args, kwargs), + _models.CREATE_PAYMENT_SESSION, + [], + plugins, + ) + + @_overload + def delete_ab_test( + self, + request: _models.DeleteABTestInput | _models.DeleteABTestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteABTestOutput: ... + + @_overload def delete_ab_test( - self, input: DeleteABTestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteABTestInputDict], ) -> DeleteABTestOutput: """ Deletes an A/B test and its associated gateway rules. Args: - input: - An instance of `DeleteABTestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -357,17 +478,39 @@ def delete_ab_test( Returns: An instance of `DeleteABTestOutput`. """ - return self._invoke(input, _models.DELETE_AB_TEST, [], plugins) + def delete_ab_test( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteABTestOutput: + return self._invoke( + self._select_input(_models.DELETE_AB_TEST, args, kwargs), + _models.DELETE_AB_TEST, + [], + plugins, + ) + + @_overload + def delete_batch_evaluation( + self, + request: _models.DeleteBatchEvaluationInput + | _models.DeleteBatchEvaluationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBatchEvaluationOutput: ... + + @_overload def delete_batch_evaluation( - self, input: DeleteBatchEvaluationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBatchEvaluationInputDict], ) -> DeleteBatchEvaluationOutput: """ Deletes a batch evaluation and its associated results. Args: - input: - An instance of `DeleteBatchEvaluationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -377,12 +520,34 @@ def delete_batch_evaluation( Returns: An instance of `DeleteBatchEvaluationOutput`. """ - return self._invoke(input, _models.DELETE_BATCH_EVALUATION, [], plugins) + def delete_batch_evaluation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBatchEvaluationOutput: + return self._invoke( + self._select_input(_models.DELETE_BATCH_EVALUATION, args, kwargs), + _models.DELETE_BATCH_EVALUATION, + [], + plugins, + ) + + @_overload def delete_capacity_provider_session( self, - input: DeleteCapacityProviderSessionInput, + request: _models.DeleteCapacityProviderSessionInput + | _models.DeleteCapacityProviderSessionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteCapacityProviderSessionOutput: ... + + @_overload + def delete_capacity_provider_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityProviderSessionInputDict], ) -> DeleteCapacityProviderSessionOutput: """ Deletes a session associated with a capacity provider in Amazon Bedrock @@ -391,8 +556,6 @@ def delete_capacity_provider_session( and the session ID. After you delete a session, you cannot restart it. Args: - input: - An instance of `DeleteCapacityProviderSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -402,12 +565,33 @@ def delete_capacity_provider_session( Returns: An instance of `DeleteCapacityProviderSessionOutput`. """ + + def delete_capacity_provider_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityProviderSessionOutput: return self._invoke( - input, _models.DELETE_CAPACITY_PROVIDER_SESSION, [], plugins + self._select_input(_models.DELETE_CAPACITY_PROVIDER_SESSION, args, kwargs), + _models.DELETE_CAPACITY_PROVIDER_SESSION, + [], + plugins, ) + @_overload def delete_event( - self, input: DeleteEventInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteEventInput | _models.DeleteEventInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEventOutput: ... + + @_overload + def delete_event( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEventInputDict], ) -> DeleteEventOutput: """ Deletes an event from an AgentCore Memory resource. When you delete an @@ -417,8 +601,6 @@ def delete_event( permission. Args: - input: - An instance of `DeleteEventInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -428,10 +610,33 @@ def delete_event( Returns: An instance of `DeleteEventOutput`. """ - return self._invoke(input, _models.DELETE_EVENT, [], plugins) + def delete_event( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEventOutput: + return self._invoke( + self._select_input(_models.DELETE_EVENT, args, kwargs), + _models.DELETE_EVENT, + [], + plugins, + ) + + @_overload + def delete_memory_record( + self, + request: _models.DeleteMemoryRecordInput | _models.DeleteMemoryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMemoryRecordOutput: ... + + @_overload def delete_memory_record( - self, input: DeleteMemoryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMemoryRecordInputDict], ) -> DeleteMemoryRecordOutput: """ Deletes a memory record from an AgentCore Memory resource. When you @@ -441,8 +646,6 @@ def delete_memory_record( `bedrock-agentcore:DeleteMemoryRecord` permission. Args: - input: - An instance of `DeleteMemoryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -452,18 +655,40 @@ def delete_memory_record( Returns: An instance of `DeleteMemoryRecordOutput`. """ - return self._invoke(input, _models.DELETE_MEMORY_RECORD, [], plugins) + def delete_memory_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMemoryRecordOutput: + return self._invoke( + self._select_input(_models.DELETE_MEMORY_RECORD, args, kwargs), + _models.DELETE_MEMORY_RECORD, + [], + plugins, + ) + + @_overload def delete_payment_instrument( - self, input: DeletePaymentInstrumentInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePaymentInstrumentInput + | _models.DeletePaymentInstrumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentInstrumentOutput: ... + + @_overload + def delete_payment_instrument( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentInstrumentInputDict], ) -> DeletePaymentInstrumentOutput: """ Deletes a payment instrument. This is a soft delete operation that preserves the record for audit and compliance purposes. Args: - input: - An instance of `DeletePaymentInstrumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -473,18 +698,40 @@ def delete_payment_instrument( Returns: An instance of `DeletePaymentInstrumentOutput`. """ - return self._invoke(input, _models.DELETE_PAYMENT_INSTRUMENT, [], plugins) + def delete_payment_instrument( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentInstrumentOutput: + return self._invoke( + self._select_input(_models.DELETE_PAYMENT_INSTRUMENT, args, kwargs), + _models.DELETE_PAYMENT_INSTRUMENT, + [], + plugins, + ) + + @_overload def delete_payment_session( - self, input: DeletePaymentSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePaymentSessionInput + | _models.DeletePaymentSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePaymentSessionOutput: ... + + @_overload + def delete_payment_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePaymentSessionInputDict], ) -> DeletePaymentSessionOutput: """ Deletes a payment session. This permanently removes the payment session record. Args: - input: - An instance of `DeletePaymentSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -494,17 +741,39 @@ def delete_payment_session( Returns: An instance of `DeletePaymentSessionOutput`. """ - return self._invoke(input, _models.DELETE_PAYMENT_SESSION, [], plugins) + def delete_payment_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePaymentSessionOutput: + return self._invoke( + self._select_input(_models.DELETE_PAYMENT_SESSION, args, kwargs), + _models.DELETE_PAYMENT_SESSION, + [], + plugins, + ) + + @_overload def delete_recommendation( - self, input: DeleteRecommendationInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRecommendationInput + | _models.DeleteRecommendationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRecommendationOutput: ... + + @_overload + def delete_recommendation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRecommendationInputDict], ) -> DeleteRecommendationOutput: """ Deletes a recommendation and its associated results. Args: - input: - An instance of `DeleteRecommendationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -514,10 +783,33 @@ def delete_recommendation( Returns: An instance of `DeleteRecommendationOutput`. """ - return self._invoke(input, _models.DELETE_RECOMMENDATION, [], plugins) + def delete_recommendation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRecommendationOutput: + return self._invoke( + self._select_input(_models.DELETE_RECOMMENDATION, args, kwargs), + _models.DELETE_RECOMMENDATION, + [], + plugins, + ) + + @_overload def evaluate( - self, input: EvaluateInput, plugins: list[Plugin] | None = None + self, + request: _models.EvaluateInput | _models.EvaluateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EvaluateOutput: ... + + @_overload + def evaluate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EvaluateInputDict], ) -> EvaluateOutput: """ Performs on-demand evaluation of agent traces using a specified @@ -525,8 +817,6 @@ def evaluate( and returns immediate scoring results with detailed explanations. Args: - input: - An instance of `EvaluateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -536,18 +826,39 @@ def evaluate( Returns: An instance of `EvaluateOutput`. """ - return self._invoke(input, _models.EVALUATE, [], plugins) + def evaluate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EvaluateOutput: + return self._invoke( + self._select_input(_models.EVALUATE, args, kwargs), + _models.EVALUATE, + [], + plugins, + ) + + @_overload def get_ab_test( - self, input: GetABTestInput, plugins: list[Plugin] | None = None + self, + request: _models.GetABTestInput | _models.GetABTestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetABTestOutput: ... + + @_overload + def get_ab_test( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetABTestInputDict], ) -> GetABTestOutput: """ Retrieves detailed information about an A/B test, including its configuration, status, and statistical results. Args: - input: - An instance of `GetABTestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -557,17 +868,38 @@ def get_ab_test( Returns: An instance of `GetABTestOutput`. """ - return self._invoke(input, _models.GET_AB_TEST, [], plugins) + def get_ab_test( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetABTestOutput: + return self._invoke( + self._select_input(_models.GET_AB_TEST, args, kwargs), + _models.GET_AB_TEST, + [], + plugins, + ) + + @_overload + def get_agent_card( + self, + request: _models.GetAgentCardInput | _models.GetAgentCardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAgentCardOutput: ... + + @_overload def get_agent_card( - self, input: GetAgentCardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAgentCardInputDict], ) -> GetAgentCardOutput: """ Retrieves the A2A agent card associated with an AgentCore Runtime agent. Args: - input: - An instance of `GetAgentCardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -577,18 +909,39 @@ def get_agent_card( Returns: An instance of `GetAgentCardOutput`. """ - return self._invoke(input, _models.GET_AGENT_CARD, [], plugins) + def get_agent_card( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAgentCardOutput: + return self._invoke( + self._select_input(_models.GET_AGENT_CARD, args, kwargs), + _models.GET_AGENT_CARD, + [], + plugins, + ) + + @_overload def get_batch_evaluation( - self, input: GetBatchEvaluationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBatchEvaluationInput | _models.GetBatchEvaluationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBatchEvaluationOutput: ... + + @_overload + def get_batch_evaluation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBatchEvaluationInputDict], ) -> GetBatchEvaluationOutput: """ Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details. Args: - input: - An instance of `GetBatchEvaluationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -598,10 +951,33 @@ def get_batch_evaluation( Returns: An instance of `GetBatchEvaluationOutput`. """ - return self._invoke(input, _models.GET_BATCH_EVALUATION, [], plugins) + def get_batch_evaluation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBatchEvaluationOutput: + return self._invoke( + self._select_input(_models.GET_BATCH_EVALUATION, args, kwargs), + _models.GET_BATCH_EVALUATION, + [], + plugins, + ) + + @_overload def get_browser_session( - self, input: GetBrowserSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBrowserSessionInput | _models.GetBrowserSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBrowserSessionOutput: ... + + @_overload + def get_browser_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBrowserSessionInputDict], ) -> GetBrowserSessionOutput: """ Retrieves detailed information about a specific browser session in @@ -622,8 +998,6 @@ def get_browser_session( - [StopBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopBrowserSession.html) Args: - input: - An instance of `GetBrowserSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -633,10 +1007,34 @@ def get_browser_session( Returns: An instance of `GetBrowserSessionOutput`. """ - return self._invoke(input, _models.GET_BROWSER_SESSION, [], plugins) + def get_browser_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBrowserSessionOutput: + return self._invoke( + self._select_input(_models.GET_BROWSER_SESSION, args, kwargs), + _models.GET_BROWSER_SESSION, + [], + plugins, + ) + + @_overload def get_code_interpreter_session( - self, input: GetCodeInterpreterSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCodeInterpreterSessionInput + | _models.GetCodeInterpreterSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCodeInterpreterSessionOutput: ... + + @_overload + def get_code_interpreter_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCodeInterpreterSessionInputDict], ) -> GetCodeInterpreterSessionOutput: """ Retrieves detailed information about a specific code interpreter session @@ -656,8 +1054,6 @@ def get_code_interpreter_session( - [StopCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopCodeInterpreterSession.html) Args: - input: - An instance of `GetCodeInterpreterSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -667,10 +1063,33 @@ def get_code_interpreter_session( Returns: An instance of `GetCodeInterpreterSessionOutput`. """ - return self._invoke(input, _models.GET_CODE_INTERPRETER_SESSION, [], plugins) + def get_code_interpreter_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCodeInterpreterSessionOutput: + return self._invoke( + self._select_input(_models.GET_CODE_INTERPRETER_SESSION, args, kwargs), + _models.GET_CODE_INTERPRETER_SESSION, + [], + plugins, + ) + + @_overload + def get_event( + self, + request: _models.GetEventInput | _models.GetEventInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventOutput: ... + + @_overload def get_event( - self, input: GetEventInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventInputDict], ) -> GetEventOutput: """ Retrieves information about a specific event in an AgentCore Memory @@ -680,8 +1099,6 @@ def get_event( permission. Args: - input: - An instance of `GetEventInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -691,10 +1108,33 @@ def get_event( Returns: An instance of `GetEventOutput`. """ - return self._invoke(input, _models.GET_EVENT, [], plugins) + def get_event( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventOutput: + return self._invoke( + self._select_input(_models.GET_EVENT, args, kwargs), + _models.GET_EVENT, + [], + plugins, + ) + + @_overload + def get_memory_record( + self, + request: _models.GetMemoryRecordInput | _models.GetMemoryRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMemoryRecordOutput: ... + + @_overload def get_memory_record( - self, input: GetMemoryRecordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMemoryRecordInputDict], ) -> GetMemoryRecordOutput: """ Retrieves a specific memory record from an AgentCore Memory resource. @@ -703,8 +1143,6 @@ def get_memory_record( `bedrock-agentcore:GetMemoryRecord` permission. Args: - input: - An instance of `GetMemoryRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -714,17 +1152,39 @@ def get_memory_record( Returns: An instance of `GetMemoryRecordOutput`. """ - return self._invoke(input, _models.GET_MEMORY_RECORD, [], plugins) + def get_memory_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMemoryRecordOutput: + return self._invoke( + self._select_input(_models.GET_MEMORY_RECORD, args, kwargs), + _models.GET_MEMORY_RECORD, + [], + plugins, + ) + + @_overload def get_payment_instrument( - self, input: GetPaymentInstrumentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPaymentInstrumentInput + | _models.GetPaymentInstrumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPaymentInstrumentOutput: ... + + @_overload + def get_payment_instrument( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentInstrumentInputDict], ) -> GetPaymentInstrumentOutput: """ Get a payment instrument by ID. Args: - input: - An instance of `GetPaymentInstrumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -734,19 +1194,39 @@ def get_payment_instrument( Returns: An instance of `GetPaymentInstrumentOutput`. """ - return self._invoke(input, _models.GET_PAYMENT_INSTRUMENT, [], plugins) + def get_payment_instrument( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentInstrumentOutput: + return self._invoke( + self._select_input(_models.GET_PAYMENT_INSTRUMENT, args, kwargs), + _models.GET_PAYMENT_INSTRUMENT, + [], + plugins, + ) + + @_overload def get_payment_instrument_balance( self, - input: GetPaymentInstrumentBalanceInput, + request: _models.GetPaymentInstrumentBalanceInput + | _models.GetPaymentInstrumentBalanceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetPaymentInstrumentBalanceOutput: ... + + @_overload + def get_payment_instrument_balance( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentInstrumentBalanceInputDict], ) -> GetPaymentInstrumentBalanceOutput: """ Get the balance of a payment instrument. Args: - input: - An instance of `GetPaymentInstrumentBalanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -756,17 +1236,38 @@ def get_payment_instrument_balance( Returns: An instance of `GetPaymentInstrumentBalanceOutput`. """ - return self._invoke(input, _models.GET_PAYMENT_INSTRUMENT_BALANCE, [], plugins) + def get_payment_instrument_balance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentInstrumentBalanceOutput: + return self._invoke( + self._select_input(_models.GET_PAYMENT_INSTRUMENT_BALANCE, args, kwargs), + _models.GET_PAYMENT_INSTRUMENT_BALANCE, + [], + plugins, + ) + + @_overload def get_payment_session( - self, input: GetPaymentSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPaymentSessionInput | _models.GetPaymentSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPaymentSessionOutput: ... + + @_overload + def get_payment_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPaymentSessionInputDict], ) -> GetPaymentSessionOutput: """ Get a payment session. Args: - input: - An instance of `GetPaymentSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -776,18 +1277,39 @@ def get_payment_session( Returns: An instance of `GetPaymentSessionOutput`. """ - return self._invoke(input, _models.GET_PAYMENT_SESSION, [], plugins) + def get_payment_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPaymentSessionOutput: + return self._invoke( + self._select_input(_models.GET_PAYMENT_SESSION, args, kwargs), + _models.GET_PAYMENT_SESSION, + [], + plugins, + ) + + @_overload def get_recommendation( - self, input: GetRecommendationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRecommendationInput | _models.GetRecommendationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRecommendationOutput: ... + + @_overload + def get_recommendation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRecommendationInputDict], ) -> GetRecommendationOutput: """ Retrieves detailed information about a recommendation, including its configuration, status, and results. Args: - input: - An instance of `GetRecommendationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -797,17 +1319,38 @@ def get_recommendation( Returns: An instance of `GetRecommendationOutput`. """ - return self._invoke(input, _models.GET_RECOMMENDATION, [], plugins) + def get_recommendation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRecommendationOutput: + return self._invoke( + self._select_input(_models.GET_RECOMMENDATION, args, kwargs), + _models.GET_RECOMMENDATION, + [], + plugins, + ) + + @_overload def get_resource_api_key( - self, input: GetResourceApiKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourceApiKeyInput | _models.GetResourceApiKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourceApiKeyOutput: ... + + @_overload + def get_resource_api_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourceApiKeyInputDict], ) -> GetResourceApiKeyOutput: """ Retrieves the API key associated with an API key credential provider. Args: - input: - An instance of `GetResourceApiKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -817,17 +1360,39 @@ def get_resource_api_key( Returns: An instance of `GetResourceApiKeyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_API_KEY, [], plugins) + def get_resource_api_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourceApiKeyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_API_KEY, args, kwargs), + _models.GET_RESOURCE_API_KEY, + [], + plugins, + ) + + @_overload def get_resource_oauth2_token( - self, input: GetResourceOauth2TokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourceOauth2TokenInput + | _models.GetResourceOauth2TokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourceOauth2TokenOutput: ... + + @_overload + def get_resource_oauth2_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourceOauth2TokenInputDict], ) -> GetResourceOauth2TokenOutput: """ Returns the OAuth 2.0 token of the provided resource. Args: - input: - An instance of `GetResourceOauth2TokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -837,18 +1402,40 @@ def get_resource_oauth2_token( Returns: An instance of `GetResourceOauth2TokenOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_OAUTH2_TOKEN, [], plugins) + def get_resource_oauth2_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourceOauth2TokenOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_OAUTH2_TOKEN, args, kwargs), + _models.GET_RESOURCE_OAUTH2_TOKEN, + [], + plugins, + ) + + @_overload def get_resource_payment_token( - self, input: GetResourcePaymentTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcePaymentTokenInput + | _models.GetResourcePaymentTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePaymentTokenOutput: ... + + @_overload + def get_resource_payment_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePaymentTokenInputDict], ) -> GetResourcePaymentTokenOutput: """ Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms. Args: - input: - An instance of `GetResourcePaymentTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -858,18 +1445,40 @@ def get_resource_payment_token( Returns: An instance of `GetResourcePaymentTokenOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_PAYMENT_TOKEN, [], plugins) + def get_resource_payment_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePaymentTokenOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_PAYMENT_TOKEN, args, kwargs), + _models.GET_RESOURCE_PAYMENT_TOKEN, + [], + plugins, + ) + + @_overload def get_workload_access_token( - self, input: GetWorkloadAccessTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetWorkloadAccessTokenInput + | _models.GetWorkloadAccessTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWorkloadAccessTokenOutput: ... + + @_overload + def get_workload_access_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWorkloadAccessTokenInputDict], ) -> GetWorkloadAccessTokenOutput: """ Obtains a workload access token for agentic workloads not acting on behalf of a user. Args: - input: - An instance of `GetWorkloadAccessTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -879,20 +1488,40 @@ def get_workload_access_token( Returns: An instance of `GetWorkloadAccessTokenOutput`. """ - return self._invoke(input, _models.GET_WORKLOAD_ACCESS_TOKEN, [], plugins) + def get_workload_access_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWorkloadAccessTokenOutput: + return self._invoke( + self._select_input(_models.GET_WORKLOAD_ACCESS_TOKEN, args, kwargs), + _models.GET_WORKLOAD_ACCESS_TOKEN, + [], + plugins, + ) + + @_overload def get_workload_access_token_for_jwt( self, - input: GetWorkloadAccessTokenForJWTInput, + request: _models.GetWorkloadAccessTokenForJWTInput + | _models.GetWorkloadAccessTokenForJWTInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetWorkloadAccessTokenForJWTOutput: ... + + @_overload + def get_workload_access_token_for_jwt( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWorkloadAccessTokenForJWTInputDict], ) -> GetWorkloadAccessTokenForJWTOutput: """ Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token. Args: - input: - An instance of `GetWorkloadAccessTokenForJWTInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -902,22 +1531,40 @@ def get_workload_access_token_for_jwt( Returns: An instance of `GetWorkloadAccessTokenForJWTOutput`. """ + + def get_workload_access_token_for_jwt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWorkloadAccessTokenForJWTOutput: return self._invoke( - input, _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_JWT, [], plugins + self._select_input(_models.GET_WORKLOAD_ACCESS_TOKEN_FOR_JWT, args, kwargs), + _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_JWT, + [], + plugins, ) + @_overload + def get_workload_access_token_for_user_id( + self, + request: _models.GetWorkloadAccessTokenForUserIdInput + | _models.GetWorkloadAccessTokenForUserIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWorkloadAccessTokenForUserIdOutput: ... + + @_overload def get_workload_access_token_for_user_id( self, - input: GetWorkloadAccessTokenForUserIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWorkloadAccessTokenForUserIdInputDict], ) -> GetWorkloadAccessTokenForUserIdOutput: """ Obtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID. Args: - input: - An instance of `GetWorkloadAccessTokenForUserIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -927,12 +1574,35 @@ def get_workload_access_token_for_user_id( Returns: An instance of `GetWorkloadAccessTokenForUserIdOutput`. """ + + def get_workload_access_token_for_user_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWorkloadAccessTokenForUserIdOutput: return self._invoke( - input, _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_USER_ID, [], plugins + self._select_input( + _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_USER_ID, args, kwargs + ), + _models.GET_WORKLOAD_ACCESS_TOKEN_FOR_USER_ID, + [], + plugins, ) + @_overload + def ingest_data( + self, + request: _models.IngestDataInput | _models.IngestDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> IngestDataOutput: ... + + @_overload def ingest_data( - self, input: IngestDataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.IngestDataInputDict], ) -> IngestDataOutput: """ Submits content directly for ingestion to generate long-term memory @@ -942,8 +1612,6 @@ def ingest_data( permission. Args: - input: - An instance of `IngestDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -953,10 +1621,33 @@ def ingest_data( Returns: An instance of `IngestDataOutput`. """ - return self._invoke(input, _models.INGEST_DATA, [], plugins) + def ingest_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> IngestDataOutput: + return self._invoke( + self._select_input(_models.INGEST_DATA, args, kwargs), + _models.INGEST_DATA, + [], + plugins, + ) + + @_overload + def invoke_agent_runtime( + self, + request: _models.InvokeAgentRuntimeInput | _models.InvokeAgentRuntimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeAgentRuntimeOutput: ... + + @_overload def invoke_agent_runtime( - self, input: InvokeAgentRuntimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeAgentRuntimeInputDict], ) -> InvokeAgentRuntimeOutput: """ Sends a request to an agent or tool hosted in an Amazon Bedrock @@ -990,8 +1681,6 @@ def invoke_agent_runtime( `bedrock-agentcore:InvokeAgentRuntimeForUser`). Args: - input: - An instance of `InvokeAgentRuntimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1001,10 +1690,33 @@ def invoke_agent_runtime( Returns: An instance of `InvokeAgentRuntimeOutput`. """ - return self._invoke(input, _models.INVOKE_AGENT_RUNTIME, [], plugins) + def invoke_agent_runtime( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeAgentRuntimeOutput: + return self._invoke( + self._select_input(_models.INVOKE_AGENT_RUNTIME, args, kwargs), + _models.INVOKE_AGENT_RUNTIME, + [], + plugins, + ) + + @_overload def invoke_browser( - self, input: InvokeBrowserInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeBrowserInput | _models.InvokeBrowserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeBrowserOutput: ... + + @_overload + def invoke_browser( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeBrowserInputDict], ) -> InvokeBrowserOutput: """ Invokes an operating system-level action on a browser session in Amazon @@ -1026,8 +1738,6 @@ def invoke_browser( - [StopBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopBrowserSession.html) Args: - input: - An instance of `InvokeBrowserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1037,10 +1747,33 @@ def invoke_browser( Returns: An instance of `InvokeBrowserOutput`. """ - return self._invoke(input, _models.INVOKE_BROWSER, [], plugins) + def invoke_browser( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeBrowserOutput: + return self._invoke( + self._select_input(_models.INVOKE_BROWSER, args, kwargs), + _models.INVOKE_BROWSER, + [], + plugins, + ) + + @_overload def invoke_web_search( - self, input: InvokeWebSearchInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeWebSearchInput | _models.InvokeWebSearchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeWebSearchOutput: ... + + @_overload + def invoke_web_search( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeWebSearchInputDict], ) -> InvokeWebSearchOutput: """ Searches the web and returns a ranked list of results. Each result @@ -1050,11 +1783,9 @@ def invoke_web_search( To use this operation, you must have the `bedrock-agentcore:InvokeWebSearch` permission on the resource - `arn:$${Partition}:bedrock-agentcore:$${Region}:aws:tool/web-search.v1`. + `arn:${Partition}:bedrock-agentcore:${Region}:aws:tool/web-search.v1`. Args: - input: - An instance of `InvokeWebSearchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1064,17 +1795,38 @@ def invoke_web_search( Returns: An instance of `InvokeWebSearchOutput`. """ - return self._invoke(input, _models.INVOKE_WEB_SEARCH, [], plugins) + def invoke_web_search( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeWebSearchOutput: + return self._invoke( + self._select_input(_models.INVOKE_WEB_SEARCH, args, kwargs), + _models.INVOKE_WEB_SEARCH, + [], + plugins, + ) + + @_overload + def list_ab_tests( + self, + request: _models.ListABTestsInput | _models.ListABTestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListABTestsOutput: ... + + @_overload def list_ab_tests( - self, input: ListABTestsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListABTestsInputDict], ) -> ListABTestsOutput: """ Lists all A/B tests in the account. Args: - input: - An instance of `ListABTestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1084,10 +1836,33 @@ def list_ab_tests( Returns: An instance of `ListABTestsOutput`. """ - return self._invoke(input, _models.LIST_AB_TESTS, [], plugins) + def list_ab_tests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListABTestsOutput: + return self._invoke( + self._select_input(_models.LIST_AB_TESTS, args, kwargs), + _models.LIST_AB_TESTS, + [], + plugins, + ) + + @_overload def list_actors( - self, input: ListActorsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListActorsInput | _models.ListActorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListActorsOutput: ... + + @_overload + def list_actors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListActorsInputDict], ) -> ListActorsOutput: """ Lists all actors in an AgentCore Memory resource. We recommend using @@ -1098,8 +1873,6 @@ def list_actors( permission. Args: - input: - An instance of `ListActorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1109,20 +1882,40 @@ def list_actors( Returns: An instance of `ListActorsOutput`. """ - return self._invoke(input, _models.LIST_ACTORS, [], plugins) + def list_actors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListActorsOutput: + return self._invoke( + self._select_input(_models.LIST_ACTORS, args, kwargs), + _models.LIST_ACTORS, + [], + plugins, + ) + + @_overload def list_batch_evaluations( self, - input: ListBatchEvaluationsInput | None = None, + request: _models.ListBatchEvaluationsInput + | _models.ListBatchEvaluationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListBatchEvaluationsOutput: ... + + @_overload + def list_batch_evaluations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBatchEvaluationsInputDict], ) -> ListBatchEvaluationsOutput: """ Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration. Args: - input: - An instance of `ListBatchEvaluationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1132,10 +1925,34 @@ def list_batch_evaluations( Returns: An instance of `ListBatchEvaluationsOutput`. """ - return self._invoke(input, _models.LIST_BATCH_EVALUATIONS, [], plugins) + def list_batch_evaluations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBatchEvaluationsOutput: + return self._invoke( + self._select_input(_models.LIST_BATCH_EVALUATIONS, args, kwargs), + _models.LIST_BATCH_EVALUATIONS, + [], + plugins, + ) + + @_overload def list_browser_sessions( - self, input: ListBrowserSessionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListBrowserSessionsInput + | _models.ListBrowserSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBrowserSessionsOutput: ... + + @_overload + def list_browser_sessions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBrowserSessionsInputDict], ) -> ListBrowserSessionsOutput: """ Retrieves a list of browser sessions in Amazon Bedrock AgentCore that @@ -1155,8 +1972,6 @@ def list_browser_sessions( - [GetBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html) Args: - input: - An instance of `ListBrowserSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1166,12 +1981,34 @@ def list_browser_sessions( Returns: An instance of `ListBrowserSessionsOutput`. """ - return self._invoke(input, _models.LIST_BROWSER_SESSIONS, [], plugins) + def list_browser_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBrowserSessionsOutput: + return self._invoke( + self._select_input(_models.LIST_BROWSER_SESSIONS, args, kwargs), + _models.LIST_BROWSER_SESSIONS, + [], + plugins, + ) + + @_overload + def list_code_interpreter_sessions( + self, + request: _models.ListCodeInterpreterSessionsInput + | _models.ListCodeInterpreterSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCodeInterpreterSessionsOutput: ... + + @_overload def list_code_interpreter_sessions( self, - input: ListCodeInterpreterSessionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCodeInterpreterSessionsInputDict], ) -> ListCodeInterpreterSessionsOutput: """ Retrieves a list of code interpreter sessions in Amazon Bedrock @@ -1193,8 +2030,6 @@ def list_code_interpreter_sessions( - [GetCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetCodeInterpreterSession.html) Args: - input: - An instance of `ListCodeInterpreterSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1204,10 +2039,33 @@ def list_code_interpreter_sessions( Returns: An instance of `ListCodeInterpreterSessionsOutput`. """ - return self._invoke(input, _models.LIST_CODE_INTERPRETER_SESSIONS, [], plugins) + def list_code_interpreter_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCodeInterpreterSessionsOutput: + return self._invoke( + self._select_input(_models.LIST_CODE_INTERPRETER_SESSIONS, args, kwargs), + _models.LIST_CODE_INTERPRETER_SESSIONS, + [], + plugins, + ) + + @_overload + def list_events( + self, + request: _models.ListEventsInput | _models.ListEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEventsOutput: ... + + @_overload def list_events( - self, input: ListEventsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEventsInputDict], ) -> ListEventsOutput: """ Lists events in an AgentCore Memory resource based on specified @@ -1218,8 +2076,6 @@ def list_events( permission. Args: - input: - An instance of `ListEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1229,10 +2085,34 @@ def list_events( Returns: An instance of `ListEventsOutput`. """ - return self._invoke(input, _models.LIST_EVENTS, [], plugins) + def list_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEventsOutput: + return self._invoke( + self._select_input(_models.LIST_EVENTS, args, kwargs), + _models.LIST_EVENTS, + [], + plugins, + ) + + @_overload + def list_memory_extraction_jobs( + self, + request: _models.ListMemoryExtractionJobsInput + | _models.ListMemoryExtractionJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMemoryExtractionJobsOutput: ... + + @_overload def list_memory_extraction_jobs( - self, input: ListMemoryExtractionJobsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMemoryExtractionJobsInputDict], ) -> ListMemoryExtractionJobsOutput: """ Lists all long-term memory extraction jobs that are eligible to be @@ -1242,8 +2122,6 @@ def list_memory_extraction_jobs( `bedrock-agentcore:ListMemoryExtractionJobs` permission. Args: - input: - An instance of `ListMemoryExtractionJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1253,10 +2131,33 @@ def list_memory_extraction_jobs( Returns: An instance of `ListMemoryExtractionJobsOutput`. """ - return self._invoke(input, _models.LIST_MEMORY_EXTRACTION_JOBS, [], plugins) + def list_memory_extraction_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMemoryExtractionJobsOutput: + return self._invoke( + self._select_input(_models.LIST_MEMORY_EXTRACTION_JOBS, args, kwargs), + _models.LIST_MEMORY_EXTRACTION_JOBS, + [], + plugins, + ) + + @_overload + def list_memory_records( + self, + request: _models.ListMemoryRecordsInput | _models.ListMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMemoryRecordsOutput: ... + + @_overload def list_memory_records( - self, input: ListMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMemoryRecordsInputDict], ) -> ListMemoryRecordsOutput: """ Lists memory records in an AgentCore Memory resource based on specified @@ -1267,8 +2168,6 @@ def list_memory_records( `bedrock-agentcore:ListMemoryRecords` permission. Args: - input: - An instance of `ListMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1278,17 +2177,39 @@ def list_memory_records( Returns: An instance of `ListMemoryRecordsOutput`. """ - return self._invoke(input, _models.LIST_MEMORY_RECORDS, [], plugins) + def list_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMemoryRecordsOutput: + return self._invoke( + self._select_input(_models.LIST_MEMORY_RECORDS, args, kwargs), + _models.LIST_MEMORY_RECORDS, + [], + plugins, + ) + + @_overload + def list_payment_instruments( + self, + request: _models.ListPaymentInstrumentsInput + | _models.ListPaymentInstrumentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentInstrumentsOutput: ... + + @_overload def list_payment_instruments( - self, input: ListPaymentInstrumentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentInstrumentsInputDict], ) -> ListPaymentInstrumentsOutput: """ List payment instruments for a manager. Args: - input: - An instance of `ListPaymentInstrumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1298,17 +2219,39 @@ def list_payment_instruments( Returns: An instance of `ListPaymentInstrumentsOutput`. """ - return self._invoke(input, _models.LIST_PAYMENT_INSTRUMENTS, [], plugins) + def list_payment_instruments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentInstrumentsOutput: + return self._invoke( + self._select_input(_models.LIST_PAYMENT_INSTRUMENTS, args, kwargs), + _models.LIST_PAYMENT_INSTRUMENTS, + [], + plugins, + ) + + @_overload def list_payment_sessions( - self, input: ListPaymentSessionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListPaymentSessionsInput + | _models.ListPaymentSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPaymentSessionsOutput: ... + + @_overload + def list_payment_sessions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPaymentSessionsInputDict], ) -> ListPaymentSessionsOutput: """ List payment sessions. Args: - input: - An instance of `ListPaymentSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1318,20 +2261,40 @@ def list_payment_sessions( Returns: An instance of `ListPaymentSessionsOutput`. """ - return self._invoke(input, _models.LIST_PAYMENT_SESSIONS, [], plugins) + def list_payment_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPaymentSessionsOutput: + return self._invoke( + self._select_input(_models.LIST_PAYMENT_SESSIONS, args, kwargs), + _models.LIST_PAYMENT_SESSIONS, + [], + plugins, + ) + + @_overload + def list_recommendations( + self, + request: _models.ListRecommendationsInput + | _models.ListRecommendationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRecommendationsOutput: ... + + @_overload def list_recommendations( self, - input: ListRecommendationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRecommendationsInputDict], ) -> ListRecommendationsOutput: """ Lists all recommendations in the account, with optional filtering by status. Args: - input: - An instance of `ListRecommendationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1341,10 +2304,33 @@ def list_recommendations( Returns: An instance of `ListRecommendationsOutput`. """ - return self._invoke(input, _models.LIST_RECOMMENDATIONS, [], plugins) + def list_recommendations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRecommendationsOutput: + return self._invoke( + self._select_input(_models.LIST_RECOMMENDATIONS, args, kwargs), + _models.LIST_RECOMMENDATIONS, + [], + plugins, + ) + + @_overload + def list_sessions( + self, + request: _models.ListSessionsInput | _models.ListSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSessionsOutput: ... + + @_overload def list_sessions( - self, input: ListSessionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSessionsInputDict], ) -> ListSessionsOutput: """ Lists sessions in an AgentCore Memory resource based on specified @@ -1357,8 +2343,6 @@ def list_sessions( `bedrock-agentcore:ListSessions` permission. Args: - input: - An instance of `ListSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1368,17 +2352,38 @@ def list_sessions( Returns: An instance of `ListSessionsOutput`. """ - return self._invoke(input, _models.LIST_SESSIONS, [], plugins) + def list_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSessionsOutput: + return self._invoke( + self._select_input(_models.LIST_SESSIONS, args, kwargs), + _models.LIST_SESSIONS, + [], + plugins, + ) + + @_overload + def process_payment( + self, + request: _models.ProcessPaymentInput | _models.ProcessPaymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProcessPaymentOutput: ... + + @_overload def process_payment( - self, input: ProcessPaymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProcessPaymentInputDict], ) -> ProcessPaymentOutput: """ Processes a payment using a payment instrument within a payment session. Args: - input: - An instance of `ProcessPaymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1388,10 +2393,34 @@ def process_payment( Returns: An instance of `ProcessPaymentOutput`. """ - return self._invoke(input, _models.PROCESS_PAYMENT, [], plugins) + def process_payment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProcessPaymentOutput: + return self._invoke( + self._select_input(_models.PROCESS_PAYMENT, args, kwargs), + _models.PROCESS_PAYMENT, + [], + plugins, + ) + + @_overload + def retrieve_memory_records( + self, + request: _models.RetrieveMemoryRecordsInput + | _models.RetrieveMemoryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RetrieveMemoryRecordsOutput: ... + + @_overload def retrieve_memory_records( - self, input: RetrieveMemoryRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetrieveMemoryRecordsInputDict], ) -> RetrieveMemoryRecordsOutput: """ Searches for and retrieves memory records from an AgentCore Memory @@ -1403,8 +2432,6 @@ def retrieve_memory_records( `bedrock-agentcore:RetrieveMemoryRecords` permission. Args: - input: - An instance of `RetrieveMemoryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1414,10 +2441,34 @@ def retrieve_memory_records( Returns: An instance of `RetrieveMemoryRecordsOutput`. """ - return self._invoke(input, _models.RETRIEVE_MEMORY_RECORDS, [], plugins) + def retrieve_memory_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RetrieveMemoryRecordsOutput: + return self._invoke( + self._select_input(_models.RETRIEVE_MEMORY_RECORDS, args, kwargs), + _models.RETRIEVE_MEMORY_RECORDS, + [], + plugins, + ) + + @_overload + def save_browser_session_profile( + self, + request: _models.SaveBrowserSessionProfileInput + | _models.SaveBrowserSessionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SaveBrowserSessionProfileOutput: ... + + @_overload def save_browser_session_profile( - self, input: SaveBrowserSessionProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SaveBrowserSessionProfileInputDict], ) -> SaveBrowserSessionProfileOutput: """ Saves the current state of a browser session as a reusable profile in @@ -1442,8 +2493,6 @@ def save_browser_session_profile( - [GetBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html) Args: - input: - An instance of `SaveBrowserSessionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1453,10 +2502,34 @@ def save_browser_session_profile( Returns: An instance of `SaveBrowserSessionProfileOutput`. """ - return self._invoke(input, _models.SAVE_BROWSER_SESSION_PROFILE, [], plugins) + def save_browser_session_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SaveBrowserSessionProfileOutput: + return self._invoke( + self._select_input(_models.SAVE_BROWSER_SESSION_PROFILE, args, kwargs), + _models.SAVE_BROWSER_SESSION_PROFILE, + [], + plugins, + ) + + @_overload def search_registry_records( - self, input: SearchRegistryRecordsInput, plugins: list[Plugin] | None = None + self, + request: _models.SearchRegistryRecordsInput + | _models.SearchRegistryRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchRegistryRecordsOutput: ... + + @_overload + def search_registry_records( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchRegistryRecordsInputDict], ) -> SearchRegistryRecordsOutput: """ Searches for registry records using semantic, lexical, or hybrid @@ -1464,8 +2537,6 @@ def search_registry_records( within the specified registry. Args: - input: - An instance of `SearchRegistryRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1475,10 +2546,34 @@ def search_registry_records( Returns: An instance of `SearchRegistryRecordsOutput`. """ - return self._invoke(input, _models.SEARCH_REGISTRY_RECORDS, [], plugins) + def search_registry_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchRegistryRecordsOutput: + return self._invoke( + self._select_input(_models.SEARCH_REGISTRY_RECORDS, args, kwargs), + _models.SEARCH_REGISTRY_RECORDS, + [], + plugins, + ) + + @_overload + def start_batch_evaluation( + self, + request: _models.StartBatchEvaluationInput + | _models.StartBatchEvaluationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartBatchEvaluationOutput: ... + + @_overload def start_batch_evaluation( - self, input: StartBatchEvaluationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartBatchEvaluationInputDict], ) -> StartBatchEvaluationOutput: """ Starts a batch evaluation job that evaluates agent performance across @@ -1487,8 +2582,6 @@ def start_batch_evaluation( evaluators and insights against them. Args: - input: - An instance of `StartBatchEvaluationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1498,10 +2591,34 @@ def start_batch_evaluation( Returns: An instance of `StartBatchEvaluationOutput`. """ - return self._invoke(input, _models.START_BATCH_EVALUATION, [], plugins) + def start_batch_evaluation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartBatchEvaluationOutput: + return self._invoke( + self._select_input(_models.START_BATCH_EVALUATION, args, kwargs), + _models.START_BATCH_EVALUATION, + [], + plugins, + ) + + @_overload + def start_browser_session( + self, + request: _models.StartBrowserSessionInput + | _models.StartBrowserSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartBrowserSessionOutput: ... + + @_overload def start_browser_session( - self, input: StartBrowserSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartBrowserSessionInputDict], ) -> StartBrowserSessionOutput: """ Creates and initializes a browser session in Amazon Bedrock AgentCore. @@ -1527,8 +2644,6 @@ def start_browser_session( - [InvokeBrowser](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_InvokeBrowser.html) Args: - input: - An instance of `StartBrowserSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1538,12 +2653,34 @@ def start_browser_session( Returns: An instance of `StartBrowserSessionOutput`. """ - return self._invoke(input, _models.START_BROWSER_SESSION, [], plugins) + def start_browser_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartBrowserSessionOutput: + return self._invoke( + self._select_input(_models.START_BROWSER_SESSION, args, kwargs), + _models.START_BROWSER_SESSION, + [], + plugins, + ) + + @_overload + def start_code_interpreter_session( + self, + request: _models.StartCodeInterpreterSessionInput + | _models.StartCodeInterpreterSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartCodeInterpreterSessionOutput: ... + + @_overload def start_code_interpreter_session( self, - input: StartCodeInterpreterSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartCodeInterpreterSessionInputDict], ) -> StartCodeInterpreterSessionOutput: """ Creates and initializes a code interpreter session in Amazon Bedrock @@ -1564,8 +2701,6 @@ def start_code_interpreter_session( - [StopCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopCodeInterpreterSession.html) Args: - input: - An instance of `StartCodeInterpreterSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1575,10 +2710,34 @@ def start_code_interpreter_session( Returns: An instance of `StartCodeInterpreterSessionOutput`. """ - return self._invoke(input, _models.START_CODE_INTERPRETER_SESSION, [], plugins) + def start_code_interpreter_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartCodeInterpreterSessionOutput: + return self._invoke( + self._select_input(_models.START_CODE_INTERPRETER_SESSION, args, kwargs), + _models.START_CODE_INTERPRETER_SESSION, + [], + plugins, + ) + + @_overload + def start_memory_extraction_job( + self, + request: _models.StartMemoryExtractionJobInput + | _models.StartMemoryExtractionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartMemoryExtractionJobOutput: ... + + @_overload def start_memory_extraction_job( - self, input: StartMemoryExtractionJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMemoryExtractionJobInputDict], ) -> StartMemoryExtractionJobOutput: """ Starts a memory extraction job that processes events that failed @@ -1590,8 +2749,6 @@ def start_memory_extraction_job( `bedrock-agentcore:StartMemoryExtractionJob` permission. Args: - input: - An instance of `StartMemoryExtractionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1601,10 +2758,34 @@ def start_memory_extraction_job( Returns: An instance of `StartMemoryExtractionJobOutput`. """ - return self._invoke(input, _models.START_MEMORY_EXTRACTION_JOB, [], plugins) + def start_memory_extraction_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartMemoryExtractionJobOutput: + return self._invoke( + self._select_input(_models.START_MEMORY_EXTRACTION_JOB, args, kwargs), + _models.START_MEMORY_EXTRACTION_JOB, + [], + plugins, + ) + + @_overload + def start_recommendation( + self, + request: _models.StartRecommendationInput + | _models.StartRecommendationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartRecommendationOutput: ... + + @_overload def start_recommendation( - self, input: StartRecommendationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartRecommendationInputDict], ) -> StartRecommendationOutput: """ Starts a recommendation job that analyzes agent traces and generates @@ -1612,8 +2793,6 @@ def start_recommendation( improve agent performance. Args: - input: - An instance of `StartRecommendationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1623,18 +2802,40 @@ def start_recommendation( Returns: An instance of `StartRecommendationOutput`. """ - return self._invoke(input, _models.START_RECOMMENDATION, [], plugins) + def start_recommendation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartRecommendationOutput: + return self._invoke( + self._select_input(_models.START_RECOMMENDATION, args, kwargs), + _models.START_RECOMMENDATION, + [], + plugins, + ) + + @_overload def stop_batch_evaluation( - self, input: StopBatchEvaluationInput, plugins: list[Plugin] | None = None + self, + request: _models.StopBatchEvaluationInput + | _models.StopBatchEvaluationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopBatchEvaluationOutput: ... + + @_overload + def stop_batch_evaluation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopBatchEvaluationInputDict], ) -> StopBatchEvaluationOutput: """ Stops a running batch evaluation. Sessions that have already been evaluated retain their results. Args: - input: - An instance of `StopBatchEvaluationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1644,10 +2845,33 @@ def stop_batch_evaluation( Returns: An instance of `StopBatchEvaluationOutput`. """ - return self._invoke(input, _models.STOP_BATCH_EVALUATION, [], plugins) + def stop_batch_evaluation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopBatchEvaluationOutput: + return self._invoke( + self._select_input(_models.STOP_BATCH_EVALUATION, args, kwargs), + _models.STOP_BATCH_EVALUATION, + [], + plugins, + ) + + @_overload + def stop_browser_session( + self, + request: _models.StopBrowserSessionInput | _models.StopBrowserSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopBrowserSessionOutput: ... + + @_overload def stop_browser_session( - self, input: StopBrowserSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopBrowserSessionInputDict], ) -> StopBrowserSessionOutput: """ Terminates an active browser session in Amazon Bedrock AgentCore. This @@ -1665,8 +2889,6 @@ def stop_browser_session( - [GetBrowserSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html) Args: - input: - An instance of `StopBrowserSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1676,12 +2898,34 @@ def stop_browser_session( Returns: An instance of `StopBrowserSessionOutput`. """ - return self._invoke(input, _models.STOP_BROWSER_SESSION, [], plugins) + def stop_browser_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopBrowserSessionOutput: + return self._invoke( + self._select_input(_models.STOP_BROWSER_SESSION, args, kwargs), + _models.STOP_BROWSER_SESSION, + [], + plugins, + ) + + @_overload + def stop_code_interpreter_session( + self, + request: _models.StopCodeInterpreterSessionInput + | _models.StopCodeInterpreterSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopCodeInterpreterSessionOutput: ... + + @_overload def stop_code_interpreter_session( self, - input: StopCodeInterpreterSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopCodeInterpreterSessionInputDict], ) -> StopCodeInterpreterSessionOutput: """ Terminates an active code interpreter session in Amazon Bedrock @@ -1700,8 +2944,6 @@ def stop_code_interpreter_session( - [GetCodeInterpreterSession](https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetCodeInterpreterSession.html) Args: - input: - An instance of `StopCodeInterpreterSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1711,17 +2953,38 @@ def stop_code_interpreter_session( Returns: An instance of `StopCodeInterpreterSessionOutput`. """ - return self._invoke(input, _models.STOP_CODE_INTERPRETER_SESSION, [], plugins) + def stop_code_interpreter_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopCodeInterpreterSessionOutput: + return self._invoke( + self._select_input(_models.STOP_CODE_INTERPRETER_SESSION, args, kwargs), + _models.STOP_CODE_INTERPRETER_SESSION, + [], + plugins, + ) + + @_overload + def stop_runtime_session( + self, + request: _models.StopRuntimeSessionInput | _models.StopRuntimeSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopRuntimeSessionOutput: ... + + @_overload def stop_runtime_session( - self, input: StopRuntimeSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopRuntimeSessionInputDict], ) -> StopRuntimeSessionOutput: """ Stops a session that is running in an running AgentCore Runtime agent. Args: - input: - An instance of `StopRuntimeSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1731,18 +2994,39 @@ def stop_runtime_session( Returns: An instance of `StopRuntimeSessionOutput`. """ - return self._invoke(input, _models.STOP_RUNTIME_SESSION, [], plugins) + def stop_runtime_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopRuntimeSessionOutput: + return self._invoke( + self._select_input(_models.STOP_RUNTIME_SESSION, args, kwargs), + _models.STOP_RUNTIME_SESSION, + [], + plugins, + ) + + @_overload + def update_ab_test( + self, + request: _models.UpdateABTestInput | _models.UpdateABTestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateABTestOutput: ... + + @_overload def update_ab_test( - self, input: UpdateABTestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateABTestInputDict], ) -> UpdateABTestOutput: """ Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status. Args: - input: - An instance of `UpdateABTestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1752,18 +3036,40 @@ def update_ab_test( Returns: An instance of `UpdateABTestOutput`. """ - return self._invoke(input, _models.UPDATE_AB_TEST, [], plugins) + def update_ab_test( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateABTestOutput: + return self._invoke( + self._select_input(_models.UPDATE_AB_TEST, args, kwargs), + _models.UPDATE_AB_TEST, + [], + plugins, + ) + + @_overload + def update_browser_stream( + self, + request: _models.UpdateBrowserStreamInput + | _models.UpdateBrowserStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBrowserStreamOutput: ... + + @_overload def update_browser_stream( - self, input: UpdateBrowserStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateBrowserStreamInputDict], ) -> UpdateBrowserStreamOutput: """ Updates a browser stream. To use this operation, you must have permissions to perform the bedrock:UpdateBrowserStream action. Args: - input: - An instance of `UpdateBrowserStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1773,7 +3079,16 @@ def update_browser_stream( Returns: An instance of `UpdateBrowserStreamOutput`. """ - return self._invoke(input, _models.UPDATE_BROWSER_STREAM, [], plugins) + + def update_browser_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBrowserStreamOutput: + return self._invoke( + self._select_input(_models.UPDATE_BROWSER_STREAM, args, kwargs), + _models.UPDATE_BROWSER_STREAM, + [], + plugins, + ) def _new_config(self) -> BedrockAgentCoreConfig: return BedrockAgentCoreConfig.resolve() diff --git a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/models.pyi b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/models.pyi index dd552a23b..ff157ae61 100644 --- a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/models.pyi +++ b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/models.pyi @@ -14,6 +14,9 @@ from ._private.models_0 import ( ABTestEvaluationConfigUnknown as ABTestEvaluationConfigUnknown, ABTestEvaluationConfig as ABTestEvaluationConfig, _ABTestEvaluationConfigDeserializer as _ABTestEvaluationConfigDeserializer, + ABTestEvaluationConfigOnlineEvaluationConfigArnDict as ABTestEvaluationConfigOnlineEvaluationConfigArnDict, + ABTestEvaluationConfigPerVariantOnlineEvaluationConfigDict as ABTestEvaluationConfigPerVariantOnlineEvaluationConfigDict, + ABTestEvaluationConfigDict as ABTestEvaluationConfigDict, ABTestExecutionStatus as ABTestExecutionStatus, ABTestResults as ABTestResults, ABTestStatus as ABTestStatus, @@ -30,24 +33,38 @@ from ._private.models_0 import ( AgentTracesConfigUnknown as AgentTracesConfigUnknown, AgentTracesConfig as AgentTracesConfig, _AgentTracesConfigDeserializer as _AgentTracesConfigDeserializer, + AgentTracesConfigSessionSpansDict as AgentTracesConfigSessionSpansDict, + AgentTracesConfigCloudwatchLogsDict as AgentTracesConfigCloudwatchLogsDict, + AgentTracesConfigBatchEvaluationDict as AgentTracesConfigBatchEvaluationDict, + AgentTracesConfigOnlineEvaluationDict as AgentTracesConfigOnlineEvaluationDict, + AgentTracesConfigDict as AgentTracesConfigDict, Amount as Amount, + AmountDict as AmountDict, AutomationStream as AutomationStream, AutomationStreamStatus as AutomationStreamStatus, AutomationStreamUpdate as AutomationStreamUpdate, + AutomationStreamUpdateDict as AutomationStreamUpdateDict, AvailableLimits as AvailableLimits, BasicAuth as BasicAuth, + BasicAuthDict as BasicAuthDict, BatchCreateMemoryRecordsInput as BatchCreateMemoryRecordsInput, + BatchCreateMemoryRecordsInputDict as BatchCreateMemoryRecordsInputDict, BatchCreateMemoryRecordsOutput as BatchCreateMemoryRecordsOutput, BatchDeleteMemoryRecordsInput as BatchDeleteMemoryRecordsInput, + BatchDeleteMemoryRecordsInputDict as BatchDeleteMemoryRecordsInputDict, BatchDeleteMemoryRecordsOutput as BatchDeleteMemoryRecordsOutput, BatchEvaluationStatus as BatchEvaluationStatus, BatchEvaluationSummary as BatchEvaluationSummary, BatchEvaluationTraceConfig as BatchEvaluationTraceConfig, + BatchEvaluationTraceConfigDict as BatchEvaluationTraceConfigDict, BatchUpdateMemoryRecordsInput as BatchUpdateMemoryRecordsInput, + BatchUpdateMemoryRecordsInputDict as BatchUpdateMemoryRecordsInputDict, BatchUpdateMemoryRecordsOutput as BatchUpdateMemoryRecordsOutput, BlockchainChainId as BlockchainChainId, Branch as Branch, + BranchDict as BranchDict, BranchFilter as BranchFilter, + BranchFilterDict as BranchFilterDict, BrowserActionMouseClick as BrowserActionMouseClick, BrowserActionMouseMove as BrowserActionMouseMove, BrowserActionMouseDrag as BrowserActionMouseDrag, @@ -59,6 +76,15 @@ from ._private.models_0 import ( BrowserActionUnknown as BrowserActionUnknown, BrowserAction as BrowserAction, _BrowserActionDeserializer as _BrowserActionDeserializer, + BrowserActionMouseClickDict as BrowserActionMouseClickDict, + BrowserActionMouseMoveDict as BrowserActionMouseMoveDict, + BrowserActionMouseDragDict as BrowserActionMouseDragDict, + BrowserActionMouseScrollDict as BrowserActionMouseScrollDict, + BrowserActionKeyTypeDict as BrowserActionKeyTypeDict, + BrowserActionKeyPressDict as BrowserActionKeyPressDict, + BrowserActionKeyShortcutDict as BrowserActionKeyShortcutDict, + BrowserActionScreenshotDict as BrowserActionScreenshotDict, + BrowserActionDict as BrowserActionDict, BrowserActionResultMouseClick as BrowserActionResultMouseClick, BrowserActionResultMouseMove as BrowserActionResultMouseMove, BrowserActionResultMouseDrag as BrowserActionResultMouseDrag, @@ -72,25 +98,37 @@ from ._private.models_0 import ( _BrowserActionResultDeserializer as _BrowserActionResultDeserializer, BrowserActionStatus as BrowserActionStatus, BrowserEnterprisePolicy as BrowserEnterprisePolicy, + BrowserEnterprisePolicyDict as BrowserEnterprisePolicyDict, BrowserEnterprisePolicyType as BrowserEnterprisePolicyType, BrowserExtension as BrowserExtension, + BrowserExtensionDict as BrowserExtensionDict, BrowserProfileConfiguration as BrowserProfileConfiguration, + BrowserProfileConfigurationDict as BrowserProfileConfigurationDict, BrowserSessionStatus as BrowserSessionStatus, BrowserSessionStream as BrowserSessionStream, BrowserSessionSummary as BrowserSessionSummary, CapacityProviderSessionStatus as CapacityProviderSessionStatus, Certificate as Certificate, + CertificateDict as CertificateDict, CertificateLocationSecretsManager as CertificateLocationSecretsManager, CertificateLocationUnknown as CertificateLocationUnknown, CertificateLocation as CertificateLocation, _CertificateLocationDeserializer as _CertificateLocationDeserializer, + CertificateLocationSecretsManagerDict as CertificateLocationSecretsManagerDict, + CertificateLocationDict as CertificateLocationDict, CloudWatchFilterConfig as CloudWatchFilterConfig, + CloudWatchFilterConfigDict as CloudWatchFilterConfigDict, CloudWatchLogsFilter as CloudWatchLogsFilter, + CloudWatchLogsFilterDict as CloudWatchLogsFilterDict, CloudWatchLogsFilterOperator as CloudWatchLogsFilterOperator, CloudWatchLogsRule as CloudWatchLogsRule, + CloudWatchLogsRuleDict as CloudWatchLogsRuleDict, CloudWatchLogsSource as CloudWatchLogsSource, + CloudWatchLogsSourceDict as CloudWatchLogsSourceDict, CloudWatchLogsTraceConfig as CloudWatchLogsTraceConfig, + CloudWatchLogsTraceConfigDict as CloudWatchLogsTraceConfigDict, CloudWatchOutputConfig as CloudWatchOutputConfig, + CloudWatchOutputConfigDict as CloudWatchOutputConfigDict, CodeInterpreterResult as CodeInterpreterResult, CodeInterpreterSessionStatus as CodeInterpreterSessionStatus, CodeInterpreterSessionSummary as CodeInterpreterSessionSummary, @@ -106,18 +144,24 @@ from ._private.models_0 import ( CodeInterpreterStreamOutput as CodeInterpreterStreamOutput, _CodeInterpreterStreamOutputDeserializer as _CodeInterpreterStreamOutputDeserializer, CoinbaseCdpTokenRequestInput as CoinbaseCdpTokenRequestInput, + CoinbaseCdpTokenRequestInputDict as CoinbaseCdpTokenRequestInputDict, CoinbaseCdpTokenResponseOutput as CoinbaseCdpTokenResponseOutput, CommandExecutionStatus as CommandExecutionStatus, CompleteResourceTokenAuthInput as CompleteResourceTokenAuthInput, + CompleteResourceTokenAuthInputDict as CompleteResourceTokenAuthInputDict, CompleteResourceTokenAuthOutput as CompleteResourceTokenAuthOutput, ConfidenceInterval as ConfidenceInterval, ConfigurationBundleRef as ConfigurationBundleRef, + ConfigurationBundleRefDict as ConfigurationBundleRefDict, ConfigurationBundleToolEntry as ConfigurationBundleToolEntry, + ConfigurationBundleToolEntryDict as ConfigurationBundleToolEntryDict, ConflictException as ConflictException, ContentText as ContentText, ContentUnknown as ContentUnknown, Content as Content, _ContentDeserializer as _ContentDeserializer, + ContentTextDict as ContentTextDict, + ContentDict as ContentDict, ContentBlock as ContentBlock, ContentBlockType as ContentBlockType, ContentDeltaEvent as ContentDeltaEvent, @@ -125,24 +169,34 @@ from ._private.models_0 import ( ContentSourceUnknown as ContentSourceUnknown, ContentSource as ContentSource, _ContentSourceDeserializer as _ContentSourceDeserializer, + ContentSourceInlineDict as ContentSourceInlineDict, + ContentSourceDict as ContentSourceDict, ContentStartEvent as ContentStartEvent, ContentStopEvent as ContentStopEvent, ContextSpanContext as ContextSpanContext, ContextUnknown as ContextUnknown, Context as Context, _ContextDeserializer as _ContextDeserializer, + ContextSpanContextDict as ContextSpanContextDict, + ContextDict as ContextDict, ControlStats as ControlStats, Conversational as Conversational, + ConversationalDict as ConversationalDict, CreateABTestInput as CreateABTestInput, + CreateABTestInputDict as CreateABTestInputDict, CreateABTestOutput as CreateABTestOutput, CreateEventInput as CreateEventInput, + CreateEventInputDict as CreateEventInputDict, CreateEventOutput as CreateEventOutput, CreatePaymentInstrumentInput as CreatePaymentInstrumentInput, + CreatePaymentInstrumentInputDict as CreatePaymentInstrumentInputDict, CreatePaymentInstrumentOutput as CreatePaymentInstrumentOutput, CreatePaymentSessionInput as CreatePaymentSessionInput, + CreatePaymentSessionInputDict as CreatePaymentSessionInputDict, CreatePaymentSessionOutput as CreatePaymentSessionOutput, CryptoWalletNetwork as CryptoWalletNetwork, CryptoX402PaymentInput as CryptoX402PaymentInput, + CryptoX402PaymentInputDict as CryptoX402PaymentInputDict, CryptoX402PaymentOutput as CryptoX402PaymentOutput, Currency as Currency, CustomDescriptor as CustomDescriptor, @@ -151,65 +205,97 @@ from ._private.models_0 import ( DataSourceConfigUnknown as DataSourceConfigUnknown, DataSourceConfig as DataSourceConfig, _DataSourceConfigDeserializer as _DataSourceConfigDeserializer, + DataSourceConfigCloudWatchLogsDict as DataSourceConfigCloudWatchLogsDict, + DataSourceConfigOnlineEvaluationConfigSourceDict as DataSourceConfigOnlineEvaluationConfigSourceDict, + DataSourceConfigDict as DataSourceConfigDict, DeleteABTestInput as DeleteABTestInput, + DeleteABTestInputDict as DeleteABTestInputDict, DeleteABTestOutput as DeleteABTestOutput, DeleteBatchEvaluationInput as DeleteBatchEvaluationInput, + DeleteBatchEvaluationInputDict as DeleteBatchEvaluationInputDict, DeleteBatchEvaluationOutput as DeleteBatchEvaluationOutput, DeleteCapacityProviderSessionInput as DeleteCapacityProviderSessionInput, + DeleteCapacityProviderSessionInputDict as DeleteCapacityProviderSessionInputDict, DeleteCapacityProviderSessionOutput as DeleteCapacityProviderSessionOutput, DeleteEventInput as DeleteEventInput, + DeleteEventInputDict as DeleteEventInputDict, DeleteEventOutput as DeleteEventOutput, DeleteMemoryRecordInput as DeleteMemoryRecordInput, + DeleteMemoryRecordInputDict as DeleteMemoryRecordInputDict, DeleteMemoryRecordOutput as DeleteMemoryRecordOutput, DeletePaymentInstrumentInput as DeletePaymentInstrumentInput, + DeletePaymentInstrumentInputDict as DeletePaymentInstrumentInputDict, DeletePaymentInstrumentOutput as DeletePaymentInstrumentOutput, DeletePaymentSessionInput as DeletePaymentSessionInput, + DeletePaymentSessionInputDict as DeletePaymentSessionInputDict, DeletePaymentSessionOutput as DeletePaymentSessionOutput, DeleteRecommendationInput as DeleteRecommendationInput, + DeleteRecommendationInputDict as DeleteRecommendationInputDict, DeleteRecommendationOutput as DeleteRecommendationOutput, Descriptors as Descriptors, DescriptorType as DescriptorType, DomainFilter as DomainFilter, + DomainFilterDict as DomainFilterDict, DuplicateIdException as DuplicateIdException, EfsConfiguration as EfsConfiguration, + EfsConfigurationDict as EfsConfigurationDict, EmbeddedCryptoWallet as EmbeddedCryptoWallet, + EmbeddedCryptoWalletDict as EmbeddedCryptoWalletDict, EvaluateInput as EvaluateInput, + EvaluateInputDict as EvaluateInputDict, EvaluateOutput as EvaluateOutput, EvaluationContentText as EvaluationContentText, EvaluationContentUnknown as EvaluationContentUnknown, EvaluationContent as EvaluationContent, _EvaluationContentDeserializer as _EvaluationContentDeserializer, + EvaluationContentTextDict as EvaluationContentTextDict, + EvaluationContentDict as EvaluationContentDict, EvaluationExpectedTrajectory as EvaluationExpectedTrajectory, + EvaluationExpectedTrajectoryDict as EvaluationExpectedTrajectoryDict, EvaluationInputSessionSpans as EvaluationInputSessionSpans, EvaluationInputUnknown as EvaluationInputUnknown, EvaluationInput as EvaluationInput, _EvaluationInputDeserializer as _EvaluationInputDeserializer, + EvaluationInputSessionSpansDict as EvaluationInputSessionSpansDict, + EvaluationInputDict as EvaluationInputDict, EvaluationJobResults as EvaluationJobResults, EvaluationMetadataSessionMetadata as EvaluationMetadataSessionMetadata, EvaluationMetadataUnknown as EvaluationMetadataUnknown, EvaluationMetadata as EvaluationMetadata, _EvaluationMetadataDeserializer as _EvaluationMetadataDeserializer, + EvaluationMetadataSessionMetadataDict as EvaluationMetadataSessionMetadataDict, + EvaluationMetadataDict as EvaluationMetadataDict, EvaluationReferenceInput as EvaluationReferenceInput, + EvaluationReferenceInputDict as EvaluationReferenceInputDict, EvaluationResultContent as EvaluationResultContent, EvaluationTargetSpanIds as EvaluationTargetSpanIds, EvaluationTargetTraceIds as EvaluationTargetTraceIds, EvaluationTargetUnknown as EvaluationTargetUnknown, EvaluationTarget as EvaluationTarget, _EvaluationTargetDeserializer as _EvaluationTargetDeserializer, + EvaluationTargetSpanIdsDict as EvaluationTargetSpanIdsDict, + EvaluationTargetTraceIdsDict as EvaluationTargetTraceIdsDict, + EvaluationTargetDict as EvaluationTargetDict, Evaluator as Evaluator, + EvaluatorDict as EvaluatorDict, EvaluatorMetric as EvaluatorMetric, EvaluatorStatistics as EvaluatorStatistics, EvaluatorSummary as EvaluatorSummary, Event as Event, EventFilterCondition as EventFilterCondition, EventMetadataFilterExpression as EventMetadataFilterExpression, + EventMetadataFilterExpressionDict as EventMetadataFilterExpressionDict, ExecutionSummaryAffectedSession as ExecutionSummaryAffectedSession, ExecutionSummaryCluster as ExecutionSummaryCluster, ExecutionSummaryClusteringResultContent as ExecutionSummaryClusteringResultContent, ExternalProxy as ExternalProxy, + ExternalProxyDict as ExternalProxyDict, ExtractionConfig as ExtractionConfig, + ExtractionConfigDict as ExtractionConfigDict, ExtractionJob as ExtractionJob, + ExtractionJobDict as ExtractionJobDict, ExtractionJobFilterInput as ExtractionJobFilterInput, + ExtractionJobFilterInputDict as ExtractionJobFilterInputDict, ExtractionJobMessagesMessagesList as ExtractionJobMessagesMessagesList, ExtractionJobMessagesUnknown as ExtractionJobMessagesUnknown, ExtractionJobMessages as ExtractionJobMessages, @@ -222,62 +308,94 @@ from ._private.models_0 import ( FailureSpanDetail as FailureSpanDetail, FailureSubCategoryCluster as FailureSubCategoryCluster, FilterInput as FilterInput, + FilterInputDict as FilterInputDict, FilterValueStringValue as FilterValueStringValue, FilterValueDoubleValue as FilterValueDoubleValue, FilterValueBooleanValue as FilterValueBooleanValue, FilterValueUnknown as FilterValueUnknown, FilterValue as FilterValue, _FilterValueDeserializer as _FilterValueDeserializer, + FilterValueStringValueDict as FilterValueStringValueDict, + FilterValueDoubleValueDict as FilterValueDoubleValueDict, + FilterValueBooleanValueDict as FilterValueBooleanValueDict, + FilterValueDict as FilterValueDict, FindingTargetType as FindingTargetType, GatewayFilter as GatewayFilter, + GatewayFilterDict as GatewayFilterDict, GetABTestInput as GetABTestInput, + GetABTestInputDict as GetABTestInputDict, GetABTestOutput as GetABTestOutput, GetAgentCardInput as GetAgentCardInput, + GetAgentCardInputDict as GetAgentCardInputDict, GetAgentCardOutput as GetAgentCardOutput, GetBatchEvaluationInput as GetBatchEvaluationInput, + GetBatchEvaluationInputDict as GetBatchEvaluationInputDict, GetBatchEvaluationOutput as GetBatchEvaluationOutput, GetBrowserSessionInput as GetBrowserSessionInput, + GetBrowserSessionInputDict as GetBrowserSessionInputDict, GetBrowserSessionOutput as GetBrowserSessionOutput, GetCodeInterpreterSessionInput as GetCodeInterpreterSessionInput, + GetCodeInterpreterSessionInputDict as GetCodeInterpreterSessionInputDict, GetCodeInterpreterSessionOutput as GetCodeInterpreterSessionOutput, GetEventInput as GetEventInput, + GetEventInputDict as GetEventInputDict, GetEventOutput as GetEventOutput, GetMemoryRecordInput as GetMemoryRecordInput, + GetMemoryRecordInputDict as GetMemoryRecordInputDict, GetMemoryRecordOutput as GetMemoryRecordOutput, GetPaymentInstrumentBalanceInput as GetPaymentInstrumentBalanceInput, + GetPaymentInstrumentBalanceInputDict as GetPaymentInstrumentBalanceInputDict, GetPaymentInstrumentBalanceOutput as GetPaymentInstrumentBalanceOutput, GetPaymentInstrumentInput as GetPaymentInstrumentInput, + GetPaymentInstrumentInputDict as GetPaymentInstrumentInputDict, GetPaymentInstrumentOutput as GetPaymentInstrumentOutput, GetPaymentSessionInput as GetPaymentSessionInput, + GetPaymentSessionInputDict as GetPaymentSessionInputDict, GetPaymentSessionOutput as GetPaymentSessionOutput, GetRecommendationInput as GetRecommendationInput, + GetRecommendationInputDict as GetRecommendationInputDict, GetRecommendationOutput as GetRecommendationOutput, GetResourceApiKeyInput as GetResourceApiKeyInput, + GetResourceApiKeyInputDict as GetResourceApiKeyInputDict, GetResourceApiKeyOutput as GetResourceApiKeyOutput, GetResourceOauth2TokenInput as GetResourceOauth2TokenInput, + GetResourceOauth2TokenInputDict as GetResourceOauth2TokenInputDict, GetResourceOauth2TokenOutput as GetResourceOauth2TokenOutput, GetResourcePaymentTokenInput as GetResourcePaymentTokenInput, + GetResourcePaymentTokenInputDict as GetResourcePaymentTokenInputDict, GetResourcePaymentTokenOutput as GetResourcePaymentTokenOutput, GetWorkloadAccessTokenForJWTInput as GetWorkloadAccessTokenForJWTInput, + GetWorkloadAccessTokenForJWTInputDict as GetWorkloadAccessTokenForJWTInputDict, GetWorkloadAccessTokenForJWTOutput as GetWorkloadAccessTokenForJWTOutput, GetWorkloadAccessTokenForUserIdInput as GetWorkloadAccessTokenForUserIdInput, + GetWorkloadAccessTokenForUserIdInputDict as GetWorkloadAccessTokenForUserIdInputDict, GetWorkloadAccessTokenForUserIdOutput as GetWorkloadAccessTokenForUserIdOutput, GetWorkloadAccessTokenInput as GetWorkloadAccessTokenInput, + GetWorkloadAccessTokenInputDict as GetWorkloadAccessTokenInputDict, GetWorkloadAccessTokenOutput as GetWorkloadAccessTokenOutput, GroundTruthSourceInline as GroundTruthSourceInline, GroundTruthSourceUnknown as GroundTruthSourceUnknown, GroundTruthSource as GroundTruthSource, _GroundTruthSourceDeserializer as _GroundTruthSourceDeserializer, + GroundTruthSourceInlineDict as GroundTruthSourceInlineDict, + GroundTruthSourceDict as GroundTruthSourceDict, GroundTruthTurn as GroundTruthTurn, + GroundTruthTurnDict as GroundTruthTurnDict, GroundTruthTurnInputPrompt as GroundTruthTurnInputPrompt, GroundTruthTurnInputUnknown as GroundTruthTurnInputUnknown, GroundTruthTurnInput as GroundTruthTurnInput, _GroundTruthTurnInputDeserializer as _GroundTruthTurnInputDeserializer, + GroundTruthTurnInputPromptDict as GroundTruthTurnInputPromptDict, + GroundTruthTurnInputDict as GroundTruthTurnInputDict, HarnessAgentCoreBrowserConfig as HarnessAgentCoreBrowserConfig, + HarnessAgentCoreBrowserConfigDict as HarnessAgentCoreBrowserConfigDict, HarnessAgentCoreCodeInterpreterConfig as HarnessAgentCoreCodeInterpreterConfig, + HarnessAgentCoreCodeInterpreterConfigDict as HarnessAgentCoreCodeInterpreterConfigDict, HarnessAgentCoreGatewayConfig as HarnessAgentCoreGatewayConfig, + HarnessAgentCoreGatewayConfigDict as HarnessAgentCoreGatewayConfigDict, HarnessBedrockApiFormat as HarnessBedrockApiFormat, HarnessBedrockModelConfig as HarnessBedrockModelConfig, + HarnessBedrockModelConfigDict as HarnessBedrockModelConfigDict, HarnessContentBlockText as HarnessContentBlockText, HarnessContentBlockToolUse as HarnessContentBlockToolUse, HarnessContentBlockToolResult as HarnessContentBlockToolResult, @@ -285,6 +403,11 @@ from ._private.models_0 import ( HarnessContentBlockUnknown as HarnessContentBlockUnknown, HarnessContentBlock as HarnessContentBlock, _HarnessContentBlockDeserializer as _HarnessContentBlockDeserializer, + HarnessContentBlockTextDict as HarnessContentBlockTextDict, + HarnessContentBlockToolUseDict as HarnessContentBlockToolUseDict, + HarnessContentBlockToolResultDict as HarnessContentBlockToolResultDict, + HarnessContentBlockReasoningContentDict as HarnessContentBlockReasoningContentDict, + HarnessContentBlockDict as HarnessContentBlockDict, HarnessContentBlockDeltaText as HarnessContentBlockDeltaText, HarnessContentBlockDeltaToolUse as HarnessContentBlockDeltaToolUse, HarnessContentBlockDeltaToolResult as HarnessContentBlockDeltaToolResult, @@ -308,13 +431,21 @@ from ._private.models_0 import ( HarnessGatewayOutboundAuthUnknown as HarnessGatewayOutboundAuthUnknown, HarnessGatewayOutboundAuth as HarnessGatewayOutboundAuth, _HarnessGatewayOutboundAuthDeserializer as _HarnessGatewayOutboundAuthDeserializer, + HarnessGatewayOutboundAuthAwsIamDict as HarnessGatewayOutboundAuthAwsIamDict, + HarnessGatewayOutboundAuthNoneDict as HarnessGatewayOutboundAuthNoneDict, + HarnessGatewayOutboundAuthOauthDict as HarnessGatewayOutboundAuthOauthDict, + HarnessGatewayOutboundAuthDict as HarnessGatewayOutboundAuthDict, HarnessGeminiModelConfig as HarnessGeminiModelConfig, + HarnessGeminiModelConfigDict as HarnessGeminiModelConfigDict, HarnessHookDecision as HarnessHookDecision, HarnessHookEvent as HarnessHookEvent, HarnessHookEventType as HarnessHookEventType, HarnessInlineFunctionConfig as HarnessInlineFunctionConfig, + HarnessInlineFunctionConfigDict as HarnessInlineFunctionConfigDict, HarnessLiteLlmModelConfig as HarnessLiteLlmModelConfig, + HarnessLiteLlmModelConfigDict as HarnessLiteLlmModelConfigDict, HarnessMessage as HarnessMessage, + HarnessMessageDict as HarnessMessageDict, HarnessMessageStartEvent as HarnessMessageStartEvent, HarnessMessageStopEvent as HarnessMessageStopEvent, HarnessMetadataEvent as HarnessMetadataEvent, @@ -325,13 +456,22 @@ from ._private.models_0 import ( HarnessModelConfigurationUnknown as HarnessModelConfigurationUnknown, HarnessModelConfiguration as HarnessModelConfiguration, _HarnessModelConfigurationDeserializer as _HarnessModelConfigurationDeserializer, + HarnessModelConfigurationBedrockModelConfigDict as HarnessModelConfigurationBedrockModelConfigDict, + HarnessModelConfigurationOpenAiModelConfigDict as HarnessModelConfigurationOpenAiModelConfigDict, + HarnessModelConfigurationGeminiModelConfigDict as HarnessModelConfigurationGeminiModelConfigDict, + HarnessModelConfigurationLiteLlmModelConfigDict as HarnessModelConfigurationLiteLlmModelConfigDict, + HarnessModelConfigurationDict as HarnessModelConfigurationDict, HarnessOpenAiApiFormat as HarnessOpenAiApiFormat, HarnessOpenAiModelConfig as HarnessOpenAiModelConfig, + HarnessOpenAiModelConfigDict as HarnessOpenAiModelConfigDict, HarnessReasoningContentBlockReasoningText as HarnessReasoningContentBlockReasoningText, HarnessReasoningContentBlockRedactedContent as HarnessReasoningContentBlockRedactedContent, HarnessReasoningContentBlockUnknown as HarnessReasoningContentBlockUnknown, HarnessReasoningContentBlock as HarnessReasoningContentBlock, _HarnessReasoningContentBlockDeserializer as _HarnessReasoningContentBlockDeserializer, + HarnessReasoningContentBlockReasoningTextDict as HarnessReasoningContentBlockReasoningTextDict, + HarnessReasoningContentBlockRedactedContentDict as HarnessReasoningContentBlockRedactedContentDict, + HarnessReasoningContentBlockDict as HarnessReasoningContentBlockDict, HarnessReasoningContentBlockDeltaText as HarnessReasoningContentBlockDeltaText, HarnessReasoningContentBlockDeltaRedactedContent as HarnessReasoningContentBlockDeltaRedactedContent, HarnessReasoningContentBlockDeltaSignature as HarnessReasoningContentBlockDeltaSignature, @@ -339,12 +479,17 @@ from ._private.models_0 import ( HarnessReasoningContentBlockDelta as HarnessReasoningContentBlockDelta, _HarnessReasoningContentBlockDeltaDeserializer as _HarnessReasoningContentBlockDeltaDeserializer, HarnessReasoningTextBlock as HarnessReasoningTextBlock, + HarnessReasoningTextBlockDict as HarnessReasoningTextBlockDict, HarnessRemoteMcpConfig as HarnessRemoteMcpConfig, + HarnessRemoteMcpConfigDict as HarnessRemoteMcpConfigDict, HarnessRemoteMcpOutboundAuthAwsIam as HarnessRemoteMcpOutboundAuthAwsIam, HarnessRemoteMcpOutboundAuthNone as HarnessRemoteMcpOutboundAuthNone, HarnessRemoteMcpOutboundAuthUnknown as HarnessRemoteMcpOutboundAuthUnknown, HarnessRemoteMcpOutboundAuth as HarnessRemoteMcpOutboundAuth, _HarnessRemoteMcpOutboundAuthDeserializer as _HarnessRemoteMcpOutboundAuthDeserializer, + HarnessRemoteMcpOutboundAuthAwsIamDict as HarnessRemoteMcpOutboundAuthAwsIamDict, + HarnessRemoteMcpOutboundAuthNoneDict as HarnessRemoteMcpOutboundAuthNoneDict, + HarnessRemoteMcpOutboundAuthDict as HarnessRemoteMcpOutboundAuthDict, HarnessSkillPath as HarnessSkillPath, HarnessSkillS3 as HarnessSkillS3, HarnessSkillGit as HarnessSkillGit, @@ -352,18 +497,30 @@ from ._private.models_0 import ( HarnessSkillUnknown as HarnessSkillUnknown, HarnessSkill as HarnessSkill, _HarnessSkillDeserializer as _HarnessSkillDeserializer, + HarnessSkillPathDict as HarnessSkillPathDict, + HarnessSkillS3Dict as HarnessSkillS3Dict, + HarnessSkillGitDict as HarnessSkillGitDict, + HarnessSkillAwsSkillsDict as HarnessSkillAwsSkillsDict, + HarnessSkillDict as HarnessSkillDict, HarnessSkillAwsSkillsSource as HarnessSkillAwsSkillsSource, + HarnessSkillAwsSkillsSourceDict as HarnessSkillAwsSkillsSourceDict, HarnessSkillGitAuth as HarnessSkillGitAuth, + HarnessSkillGitAuthDict as HarnessSkillGitAuthDict, HarnessSkillGitSource as HarnessSkillGitSource, + HarnessSkillGitSourceDict as HarnessSkillGitSourceDict, HarnessSkillS3Source as HarnessSkillS3Source, + HarnessSkillS3SourceDict as HarnessSkillS3SourceDict, HarnessStopReason as HarnessStopReason, HarnessStreamMetrics as HarnessStreamMetrics, HarnessSystemContentBlockText as HarnessSystemContentBlockText, HarnessSystemContentBlockUnknown as HarnessSystemContentBlockUnknown, HarnessSystemContentBlock as HarnessSystemContentBlock, _HarnessSystemContentBlockDeserializer as _HarnessSystemContentBlockDeserializer, + HarnessSystemContentBlockTextDict as HarnessSystemContentBlockTextDict, + HarnessSystemContentBlockDict as HarnessSystemContentBlockDict, HarnessTokenUsage as HarnessTokenUsage, HarnessTool as HarnessTool, + HarnessToolDict as HarnessToolDict, HarnessToolConfigurationRemoteMcp as HarnessToolConfigurationRemoteMcp, HarnessToolConfigurationAgentCoreBrowser as HarnessToolConfigurationAgentCoreBrowser, HarnessToolConfigurationAgentCoreGateway as HarnessToolConfigurationAgentCoreGateway, @@ -372,7 +529,14 @@ from ._private.models_0 import ( HarnessToolConfigurationUnknown as HarnessToolConfigurationUnknown, HarnessToolConfiguration as HarnessToolConfiguration, _HarnessToolConfigurationDeserializer as _HarnessToolConfigurationDeserializer, + HarnessToolConfigurationRemoteMcpDict as HarnessToolConfigurationRemoteMcpDict, + HarnessToolConfigurationAgentCoreBrowserDict as HarnessToolConfigurationAgentCoreBrowserDict, + HarnessToolConfigurationAgentCoreGatewayDict as HarnessToolConfigurationAgentCoreGatewayDict, + HarnessToolConfigurationInlineFunctionDict as HarnessToolConfigurationInlineFunctionDict, + HarnessToolConfigurationAgentCoreCodeInterpreterDict as HarnessToolConfigurationAgentCoreCodeInterpreterDict, + HarnessToolConfigurationDict as HarnessToolConfigurationDict, HarnessToolResultBlock as HarnessToolResultBlock, + HarnessToolResultBlockDict as HarnessToolResultBlockDict, HarnessToolResultBlockDeltaText as HarnessToolResultBlockDeltaText, HarnessToolResultBlockDeltaJson as HarnessToolResultBlockDeltaJson, HarnessToolResultBlockDeltaUnknown as HarnessToolResultBlockDeltaUnknown, @@ -384,25 +548,38 @@ from ._private.models_0 import ( HarnessToolResultContentBlockUnknown as HarnessToolResultContentBlockUnknown, HarnessToolResultContentBlock as HarnessToolResultContentBlock, _HarnessToolResultContentBlockDeserializer as _HarnessToolResultContentBlockDeserializer, + HarnessToolResultContentBlockTextDict as HarnessToolResultContentBlockTextDict, + HarnessToolResultContentBlockJsonDict as HarnessToolResultContentBlockJsonDict, + HarnessToolResultContentBlockDict as HarnessToolResultContentBlockDict, HarnessToolResultMetadataBlockDelta as HarnessToolResultMetadataBlockDelta, HarnessToolType as HarnessToolType, HarnessToolUseBlock as HarnessToolUseBlock, + HarnessToolUseBlockDict as HarnessToolUseBlockDict, HarnessToolUseBlockDelta as HarnessToolUseBlockDelta, HarnessToolUseBlockStart as HarnessToolUseBlockStart, HarnessToolUseStatus as HarnessToolUseStatus, HarnessToolUseType as HarnessToolUseType, IamCredentialProvider as IamCredentialProvider, + IamCredentialProviderDict as IamCredentialProviderDict, IngestDataInput as IngestDataInput, + IngestDataInputDict as IngestDataInputDict, IngestDataOutput as IngestDataOutput, IngestPayloadTypeConversational as IngestPayloadTypeConversational, IngestPayloadTypeJson as IngestPayloadTypeJson, IngestPayloadTypeUnknown as IngestPayloadTypeUnknown, IngestPayloadType as IngestPayloadType, _IngestPayloadTypeDeserializer as _IngestPayloadTypeDeserializer, + IngestPayloadTypeConversationalDict as IngestPayloadTypeConversationalDict, + IngestPayloadTypeJsonDict as IngestPayloadTypeJsonDict, + IngestPayloadTypeDict as IngestPayloadTypeDict, InlineGroundTruth as InlineGroundTruth, + InlineGroundTruthDict as InlineGroundTruthDict, InlineMemoryContent as InlineMemoryContent, + InlineMemoryContentDict as InlineMemoryContentDict, InputContentBlock as InputContentBlock, + InputContentBlockDict as InputContentBlockDict, Insight as Insight, + InsightDict as InsightDict, InsightResult as InsightResult, InsightRootCause as InsightRootCause, InsightsFailureCategory as InsightsFailureCategory, @@ -415,8 +592,10 @@ from ._private.models_0 import ( from ._private.models_1 import ( InvalidInputException as InvalidInputException, InvokeAgentRuntimeCommandInput as InvokeAgentRuntimeCommandInput, + InvokeAgentRuntimeCommandInputDict as InvokeAgentRuntimeCommandInputDict, InvokeAgentRuntimeCommandOutput as InvokeAgentRuntimeCommandOutput, InvokeAgentRuntimeCommandRequestBody as InvokeAgentRuntimeCommandRequestBody, + InvokeAgentRuntimeCommandRequestBodyDict as InvokeAgentRuntimeCommandRequestBodyDict, InvokeAgentRuntimeCommandStreamOutputChunk as InvokeAgentRuntimeCommandStreamOutputChunk, InvokeAgentRuntimeCommandStreamOutputAccessDeniedException as InvokeAgentRuntimeCommandStreamOutputAccessDeniedException, InvokeAgentRuntimeCommandStreamOutputInternalServerException as InvokeAgentRuntimeCommandStreamOutputInternalServerException, @@ -429,12 +608,16 @@ from ._private.models_1 import ( InvokeAgentRuntimeCommandStreamOutput as InvokeAgentRuntimeCommandStreamOutput, _InvokeAgentRuntimeCommandStreamOutputDeserializer as _InvokeAgentRuntimeCommandStreamOutputDeserializer, InvokeAgentRuntimeInput as InvokeAgentRuntimeInput, + InvokeAgentRuntimeInputDict as InvokeAgentRuntimeInputDict, InvokeAgentRuntimeOutput as InvokeAgentRuntimeOutput, InvokeBrowserInput as InvokeBrowserInput, + InvokeBrowserInputDict as InvokeBrowserInputDict, InvokeBrowserOutput as InvokeBrowserOutput, InvokeCodeInterpreterInput as InvokeCodeInterpreterInput, + InvokeCodeInterpreterInputDict as InvokeCodeInterpreterInputDict, InvokeCodeInterpreterOutput as InvokeCodeInterpreterOutput, InvokeHarnessInput as InvokeHarnessInput, + InvokeHarnessInputDict as InvokeHarnessInputDict, InvokeHarnessOutput as InvokeHarnessOutput, InvokeHarnessStreamOutputMessageStart as InvokeHarnessStreamOutputMessageStart, InvokeHarnessStreamOutputContentBlockStart as InvokeHarnessStreamOutputContentBlockStart, @@ -450,18 +633,24 @@ from ._private.models_1 import ( InvokeHarnessStreamOutput as InvokeHarnessStreamOutput, _InvokeHarnessStreamOutputDeserializer as _InvokeHarnessStreamOutputDeserializer, InvokeWebSearchInput as InvokeWebSearchInput, + InvokeWebSearchInputDict as InvokeWebSearchInputDict, InvokeWebSearchOutput as InvokeWebSearchOutput, KeyPressArguments as KeyPressArguments, + KeyPressArgumentsDict as KeyPressArgumentsDict, KeyPressResult as KeyPressResult, KeyShortcutArguments as KeyShortcutArguments, + KeyShortcutArgumentsDict as KeyShortcutArgumentsDict, KeyShortcutResult as KeyShortcutResult, KeyTypeArguments as KeyTypeArguments, + KeyTypeArgumentsDict as KeyTypeArgumentsDict, KeyTypeResult as KeyTypeResult, LanguageRuntime as LanguageRuntime, LeftExpressionMetadataKey as LeftExpressionMetadataKey, LeftExpressionUnknown as LeftExpressionUnknown, LeftExpression as LeftExpression, _LeftExpressionDeserializer as _LeftExpressionDeserializer, + LeftExpressionMetadataKeyDict as LeftExpressionMetadataKeyDict, + LeftExpressionDict as LeftExpressionDict, LinkedAccount_Email as LinkedAccount_Email, LinkedAccount_Sms as LinkedAccount_Sms, LinkedAccount_DeveloperJwt as LinkedAccount_DeveloperJwt, @@ -469,8 +658,15 @@ from ._private.models_1 import ( LinkedAccountUnknown as LinkedAccountUnknown, LinkedAccount as LinkedAccount, _LinkedAccountDeserializer as _LinkedAccountDeserializer, + LinkedAccount_EmailDict as LinkedAccount_EmailDict, + LinkedAccount_SmsDict as LinkedAccount_SmsDict, + LinkedAccount_DeveloperJwtDict as LinkedAccount_DeveloperJwtDict, + LinkedAccount_OAuth2Dict as LinkedAccount_OAuth2Dict, + LinkedAccountDict as LinkedAccountDict, LinkedAccountDeveloperJwt as LinkedAccountDeveloperJwt, + LinkedAccountDeveloperJwtDict as LinkedAccountDeveloperJwtDict, LinkedAccountEmail as LinkedAccountEmail, + LinkedAccountEmailDict as LinkedAccountEmailDict, LinkedAccountOAuth2Google as LinkedAccountOAuth2Google, LinkedAccountOAuth2Apple as LinkedAccountOAuth2Apple, LinkedAccountOAuth2X as LinkedAccountOAuth2X, @@ -479,30 +675,49 @@ from ._private.models_1 import ( LinkedAccountOAuth2Unknown as LinkedAccountOAuth2Unknown, LinkedAccountOAuth2 as LinkedAccountOAuth2, _LinkedAccountOAuth2Deserializer as _LinkedAccountOAuth2Deserializer, + LinkedAccountOAuth2GoogleDict as LinkedAccountOAuth2GoogleDict, + LinkedAccountOAuth2AppleDict as LinkedAccountOAuth2AppleDict, + LinkedAccountOAuth2XDict as LinkedAccountOAuth2XDict, + LinkedAccountOAuth2TelegramDict as LinkedAccountOAuth2TelegramDict, + LinkedAccountOAuth2GithubDict as LinkedAccountOAuth2GithubDict, + LinkedAccountOAuth2Dict as LinkedAccountOAuth2Dict, LinkedAccountSms as LinkedAccountSms, + LinkedAccountSmsDict as LinkedAccountSmsDict, ListABTestsInput as ListABTestsInput, + ListABTestsInputDict as ListABTestsInputDict, ListABTestsOutput as ListABTestsOutput, ListActorsInput as ListActorsInput, + ListActorsInputDict as ListActorsInputDict, ListActorsOutput as ListActorsOutput, ListBatchEvaluationsInput as ListBatchEvaluationsInput, + ListBatchEvaluationsInputDict as ListBatchEvaluationsInputDict, ListBatchEvaluationsOutput as ListBatchEvaluationsOutput, ListBrowserSessionsInput as ListBrowserSessionsInput, + ListBrowserSessionsInputDict as ListBrowserSessionsInputDict, ListBrowserSessionsOutput as ListBrowserSessionsOutput, ListCodeInterpreterSessionsInput as ListCodeInterpreterSessionsInput, + ListCodeInterpreterSessionsInputDict as ListCodeInterpreterSessionsInputDict, ListCodeInterpreterSessionsOutput as ListCodeInterpreterSessionsOutput, ListEventsInput as ListEventsInput, + ListEventsInputDict as ListEventsInputDict, ListEventsOutput as ListEventsOutput, ListMemoryExtractionJobsInput as ListMemoryExtractionJobsInput, + ListMemoryExtractionJobsInputDict as ListMemoryExtractionJobsInputDict, ListMemoryExtractionJobsOutput as ListMemoryExtractionJobsOutput, ListMemoryRecordsInput as ListMemoryRecordsInput, + ListMemoryRecordsInputDict as ListMemoryRecordsInputDict, ListMemoryRecordsOutput as ListMemoryRecordsOutput, ListPaymentInstrumentsInput as ListPaymentInstrumentsInput, + ListPaymentInstrumentsInputDict as ListPaymentInstrumentsInputDict, ListPaymentInstrumentsOutput as ListPaymentInstrumentsOutput, ListPaymentSessionsInput as ListPaymentSessionsInput, + ListPaymentSessionsInputDict as ListPaymentSessionsInputDict, ListPaymentSessionsOutput as ListPaymentSessionsOutput, ListRecommendationsInput as ListRecommendationsInput, + ListRecommendationsInputDict as ListRecommendationsInputDict, ListRecommendationsOutput as ListRecommendationsOutput, ListSessionsInput as ListSessionsInput, + ListSessionsInputDict as ListSessionsInputDict, ListSessionsOutput as ListSessionsOutput, LiveViewStream as LiveViewStream, McpDescriptor as McpDescriptor, @@ -510,15 +725,23 @@ from ._private.models_1 import ( MemoryContentUnknown as MemoryContentUnknown, MemoryContent as MemoryContent, _MemoryContentDeserializer as _MemoryContentDeserializer, + MemoryContentTextDict as MemoryContentTextDict, + MemoryContentDict as MemoryContentDict, MemoryJsonData as MemoryJsonData, + MemoryJsonDataDict as MemoryJsonDataDict, MemoryMetadataFilterExpression as MemoryMetadataFilterExpression, + MemoryMetadataFilterExpressionDict as MemoryMetadataFilterExpressionDict, MemoryRecord as MemoryRecord, MemoryRecordCreateInput as MemoryRecordCreateInput, + MemoryRecordCreateInputDict as MemoryRecordCreateInputDict, MemoryRecordDeleteInput as MemoryRecordDeleteInput, + MemoryRecordDeleteInputDict as MemoryRecordDeleteInputDict, MemoryRecordLeftExpressionMetadataKey as MemoryRecordLeftExpressionMetadataKey, MemoryRecordLeftExpressionUnknown as MemoryRecordLeftExpressionUnknown, MemoryRecordLeftExpression as MemoryRecordLeftExpression, _MemoryRecordLeftExpressionDeserializer as _MemoryRecordLeftExpressionDeserializer, + MemoryRecordLeftExpressionMetadataKeyDict as MemoryRecordLeftExpressionMetadataKeyDict, + MemoryRecordLeftExpressionDict as MemoryRecordLeftExpressionDict, MemoryRecordMetadataValueStringValue as MemoryRecordMetadataValueStringValue, MemoryRecordMetadataValueStringListValue as MemoryRecordMetadataValueStringListValue, MemoryRecordMetadataValueNumberValue as MemoryRecordMetadataValueNumberValue, @@ -526,59 +749,89 @@ from ._private.models_1 import ( MemoryRecordMetadataValueUnknown as MemoryRecordMetadataValueUnknown, MemoryRecordMetadataValue as MemoryRecordMetadataValue, _MemoryRecordMetadataValueDeserializer as _MemoryRecordMetadataValueDeserializer, + MemoryRecordMetadataValueStringValueDict as MemoryRecordMetadataValueStringValueDict, + MemoryRecordMetadataValueStringListValueDict as MemoryRecordMetadataValueStringListValueDict, + MemoryRecordMetadataValueNumberValueDict as MemoryRecordMetadataValueNumberValueDict, + MemoryRecordMetadataValueDateTimeValueDict as MemoryRecordMetadataValueDateTimeValueDict, + MemoryRecordMetadataValueDict as MemoryRecordMetadataValueDict, MemoryRecordOperatorType as MemoryRecordOperatorType, MemoryRecordOutput as MemoryRecordOutput, MemoryRecordRightExpressionMetadataValue as MemoryRecordRightExpressionMetadataValue, MemoryRecordRightExpressionUnknown as MemoryRecordRightExpressionUnknown, MemoryRecordRightExpression as MemoryRecordRightExpression, _MemoryRecordRightExpressionDeserializer as _MemoryRecordRightExpressionDeserializer, + MemoryRecordRightExpressionMetadataValueDict as MemoryRecordRightExpressionMetadataValueDict, + MemoryRecordRightExpressionDict as MemoryRecordRightExpressionDict, MemoryRecordStatus as MemoryRecordStatus, MemoryRecordSummary as MemoryRecordSummary, MemoryRecordUpdateInput as MemoryRecordUpdateInput, + MemoryRecordUpdateInputDict as MemoryRecordUpdateInputDict, MessageMetadata as MessageMetadata, MetadataValueStringValue as MetadataValueStringValue, MetadataValueUnknown as MetadataValueUnknown, MetadataValue as MetadataValue, _MetadataValueDeserializer as _MetadataValueDeserializer, + MetadataValueStringValueDict as MetadataValueStringValueDict, + MetadataValueDict as MetadataValueDict, MouseButton as MouseButton, MouseClickArguments as MouseClickArguments, + MouseClickArgumentsDict as MouseClickArgumentsDict, MouseClickResult as MouseClickResult, MouseDragArguments as MouseDragArguments, + MouseDragArgumentsDict as MouseDragArgumentsDict, MouseDragResult as MouseDragResult, MouseMoveArguments as MouseMoveArguments, + MouseMoveArgumentsDict as MouseMoveArgumentsDict, MouseMoveResult as MouseMoveResult, MouseScrollArguments as MouseScrollArguments, + MouseScrollArgumentsDict as MouseScrollArgumentsDict, MouseScrollResult as MouseScrollResult, MppPaymentInput as MppPaymentInput, + MppPaymentInputDict as MppPaymentInputDict, MppPaymentOutput as MppPaymentOutput, OAuth2Authentication as OAuth2Authentication, + OAuth2AuthenticationDict as OAuth2AuthenticationDict, Oauth2FlowType as Oauth2FlowType, OAuthCredentialProvider as OAuthCredentialProvider, + OAuthCredentialProviderDict as OAuthCredentialProviderDict, OAuthGrantType as OAuthGrantType, OnlineEvaluationConfigSource as OnlineEvaluationConfigSource, + OnlineEvaluationConfigSourceDict as OnlineEvaluationConfigSourceDict, OnlineEvaluationTraceConfig as OnlineEvaluationTraceConfig, + OnlineEvaluationTraceConfigDict as OnlineEvaluationTraceConfigDict, OperatorType as OperatorType, OutputConfigCloudWatchConfig as OutputConfigCloudWatchConfig, OutputConfigUnknown as OutputConfigUnknown, OutputConfig as OutputConfig, _OutputConfigDeserializer as _OutputConfigDeserializer, + OutputConfigCloudWatchConfigDict as OutputConfigCloudWatchConfigDict, + OutputConfigDict as OutputConfigDict, PayloadTypeConversational as PayloadTypeConversational, PayloadTypeBlob as PayloadTypeBlob, PayloadTypeJson as PayloadTypeJson, PayloadTypeUnknown as PayloadTypeUnknown, PayloadType as PayloadType, _PayloadTypeDeserializer as _PayloadTypeDeserializer, + PayloadTypeConversationalDict as PayloadTypeConversationalDict, + PayloadTypeBlobDict as PayloadTypeBlobDict, + PayloadTypeJsonDict as PayloadTypeJsonDict, + PayloadTypeDict as PayloadTypeDict, PaymentHttpMethodType as PaymentHttpMethodType, PaymentInputCryptoX402 as PaymentInputCryptoX402, PaymentInputMpp as PaymentInputMpp, PaymentInputUnknown as PaymentInputUnknown, PaymentInput as PaymentInput, _PaymentInputDeserializer as _PaymentInputDeserializer, + PaymentInputCryptoX402Dict as PaymentInputCryptoX402Dict, + PaymentInputMppDict as PaymentInputMppDict, + PaymentInputDict as PaymentInputDict, PaymentInstrument as PaymentInstrument, PaymentInstrumentDetailsEmbeddedCryptoWallet as PaymentInstrumentDetailsEmbeddedCryptoWallet, PaymentInstrumentDetailsUnknown as PaymentInstrumentDetailsUnknown, PaymentInstrumentDetails as PaymentInstrumentDetails, _PaymentInstrumentDetailsDeserializer as _PaymentInstrumentDetailsDeserializer, + PaymentInstrumentDetailsEmbeddedCryptoWalletDict as PaymentInstrumentDetailsEmbeddedCryptoWalletDict, + PaymentInstrumentDetailsDict as PaymentInstrumentDetailsDict, PaymentInstrumentStatus as PaymentInstrumentStatus, PaymentInstrumentSummary as PaymentInstrumentSummary, PaymentInstrumentType as PaymentInstrumentType, @@ -596,6 +849,9 @@ from ._private.models_1 import ( PaymentTokenRequestInputUnknown as PaymentTokenRequestInputUnknown, PaymentTokenRequestInput as PaymentTokenRequestInput, _PaymentTokenRequestInputDeserializer as _PaymentTokenRequestInputDeserializer, + PaymentTokenRequestInputCoinbaseCdpTokenRequestDict as PaymentTokenRequestInputCoinbaseCdpTokenRequestDict, + PaymentTokenRequestInputStripePrivyTokenRequestDict as PaymentTokenRequestInputStripePrivyTokenRequestDict, + PaymentTokenRequestInputDict as PaymentTokenRequestInputDict, PaymentTokenResponseOutputCoinbaseCdpTokenResponse as PaymentTokenResponseOutputCoinbaseCdpTokenResponse, PaymentTokenResponseOutputStripePrivyTokenResponse as PaymentTokenResponseOutputStripePrivyTokenResponse, PaymentTokenResponseOutputUnknown as PaymentTokenResponseOutputUnknown, @@ -603,27 +859,41 @@ from ._private.models_1 import ( _PaymentTokenResponseOutputDeserializer as _PaymentTokenResponseOutputDeserializer, PaymentType as PaymentType, PerVariantOnlineEvaluationConfig as PerVariantOnlineEvaluationConfig, + PerVariantOnlineEvaluationConfigDict as PerVariantOnlineEvaluationConfigDict, ProcessPaymentInput as ProcessPaymentInput, + ProcessPaymentInputDict as ProcessPaymentInputDict, ProcessPaymentOutput as ProcessPaymentOutput, ProgrammingLanguage as ProgrammingLanguage, ProxyExternalProxy as ProxyExternalProxy, ProxyUnknown as ProxyUnknown, Proxy as Proxy, _ProxyDeserializer as _ProxyDeserializer, + ProxyExternalProxyDict as ProxyExternalProxyDict, + ProxyDict as ProxyDict, ProxyBypass as ProxyBypass, + ProxyBypassDict as ProxyBypassDict, ProxyConfiguration as ProxyConfiguration, + ProxyConfigurationDict as ProxyConfigurationDict, ProxyCredentialsBasicAuth as ProxyCredentialsBasicAuth, ProxyCredentialsUnknown as ProxyCredentialsUnknown, ProxyCredentials as ProxyCredentials, _ProxyCredentialsDeserializer as _ProxyCredentialsDeserializer, + ProxyCredentialsBasicAuthDict as ProxyCredentialsBasicAuthDict, + ProxyCredentialsDict as ProxyCredentialsDict, PublishedDateFilter as PublishedDateFilter, + PublishedDateFilterDict as PublishedDateFilterDict, RecommendationConfigSystemPromptRecommendationConfig as RecommendationConfigSystemPromptRecommendationConfig, RecommendationConfigToolDescriptionRecommendationConfig as RecommendationConfigToolDescriptionRecommendationConfig, RecommendationConfigUnknown as RecommendationConfigUnknown, RecommendationConfig as RecommendationConfig, _RecommendationConfigDeserializer as _RecommendationConfigDeserializer, + RecommendationConfigSystemPromptRecommendationConfigDict as RecommendationConfigSystemPromptRecommendationConfigDict, + RecommendationConfigToolDescriptionRecommendationConfigDict as RecommendationConfigToolDescriptionRecommendationConfigDict, + RecommendationConfigDict as RecommendationConfigDict, RecommendationEvaluationConfig as RecommendationEvaluationConfig, + RecommendationEvaluationConfigDict as RecommendationEvaluationConfigDict, RecommendationEvaluatorReference as RecommendationEvaluatorReference, + RecommendationEvaluatorReferenceDict as RecommendationEvaluatorReferenceDict, RecommendationResultSystemPromptRecommendationResult as RecommendationResultSystemPromptRecommendationResult, RecommendationResultToolDescriptionRecommendationResult as RecommendationResultToolDescriptionRecommendationResult, RecommendationResultUnknown as RecommendationResultUnknown, @@ -639,6 +909,9 @@ from ._private.models_1 import ( RecordExpirySpecificationUnknown as RecordExpirySpecificationUnknown, RecordExpirySpecification as RecordExpirySpecification, _RecordExpirySpecificationDeserializer as _RecordExpirySpecificationDeserializer, + RecordExpirySpecificationRecordExpiryDurationDaysDict as RecordExpirySpecificationRecordExpiryDurationDaysDict, + RecordExpirySpecificationActionDict as RecordExpirySpecificationActionDict, + RecordExpirySpecificationDict as RecordExpirySpecificationDict, RegistryRecordStatus as RegistryRecordStatus, RegistryRecordSummary as RegistryRecordSummary, ResourceContent as ResourceContent, @@ -647,69 +920,99 @@ from ._private.models_1 import ( ResourceLocationUnknown as ResourceLocationUnknown, ResourceLocation as ResourceLocation, _ResourceLocationDeserializer as _ResourceLocationDeserializer, + ResourceLocationS3Dict as ResourceLocationS3Dict, + ResourceLocationDict as ResourceLocationDict, ResourceNotFoundException as ResourceNotFoundException, ResponseChunk as ResponseChunk, ResultDestination as ResultDestination, RetrieveMemoryRecordsInput as RetrieveMemoryRecordsInput, + RetrieveMemoryRecordsInputDict as RetrieveMemoryRecordsInputDict, RetrieveMemoryRecordsOutput as RetrieveMemoryRecordsOutput, RetryableConflictException as RetryableConflictException, RightExpressionMetadataValue as RightExpressionMetadataValue, RightExpressionUnknown as RightExpressionUnknown, RightExpression as RightExpression, _RightExpressionDeserializer as _RightExpressionDeserializer, + RightExpressionMetadataValueDict as RightExpressionMetadataValueDict, + RightExpressionDict as RightExpressionDict, Role as Role, RootCauseCluster as RootCauseCluster, RuntimeClientError as RuntimeClientError, S3FilesConfiguration as S3FilesConfiguration, + S3FilesConfigurationDict as S3FilesConfigurationDict, S3Location as S3Location, + S3LocationDict as S3LocationDict, SampleSession as SampleSession, SaveBrowserSessionProfileInput as SaveBrowserSessionProfileInput, + SaveBrowserSessionProfileInputDict as SaveBrowserSessionProfileInputDict, SaveBrowserSessionProfileOutput as SaveBrowserSessionProfileOutput, ScreenshotArguments as ScreenshotArguments, + ScreenshotArgumentsDict as ScreenshotArgumentsDict, ScreenshotFormat as ScreenshotFormat, ScreenshotResult as ScreenshotResult, SearchCriteria as SearchCriteria, + SearchCriteriaDict as SearchCriteriaDict, SearchRegistryRecordsInput as SearchRegistryRecordsInput, + SearchRegistryRecordsInputDict as SearchRegistryRecordsInputDict, SearchRegistryRecordsOutput as SearchRegistryRecordsOutput, SecretsManagerLocation as SecretsManagerLocation, + SecretsManagerLocationDict as SecretsManagerLocationDict, ServerDefinition as ServerDefinition, ServiceException as ServiceException, ServiceQuotaExceededException as ServiceQuotaExceededException, ServiceUnavailableException as ServiceUnavailableException, SessionFilter as SessionFilter, + SessionFilterDict as SessionFilterDict, SessionFilterConfig as SessionFilterConfig, + SessionFilterConfigDict as SessionFilterConfigDict, SessionFinding as SessionFinding, SessionLimits as SessionLimits, + SessionLimitsDict as SessionLimitsDict, SessionMetadataShape as SessionMetadataShape, + SessionMetadataShapeDict as SessionMetadataShapeDict, SessionStatus as SessionStatus, SessionSummary as SessionSummary, SessionTraceIds as SessionTraceIds, + SessionTraceIdsDict as SessionTraceIdsDict, SkillDefinition as SkillDefinition, SkillMdDefinition as SkillMdDefinition, SpanContext as SpanContext, + SpanContextDict as SpanContextDict, StartBatchEvaluationInput as StartBatchEvaluationInput, + StartBatchEvaluationInputDict as StartBatchEvaluationInputDict, StartBatchEvaluationOutput as StartBatchEvaluationOutput, StartBrowserSessionInput as StartBrowserSessionInput, + StartBrowserSessionInputDict as StartBrowserSessionInputDict, StartBrowserSessionOutput as StartBrowserSessionOutput, StartCodeInterpreterSessionInput as StartCodeInterpreterSessionInput, + StartCodeInterpreterSessionInputDict as StartCodeInterpreterSessionInputDict, StartCodeInterpreterSessionOutput as StartCodeInterpreterSessionOutput, StartMemoryExtractionJobInput as StartMemoryExtractionJobInput, + StartMemoryExtractionJobInputDict as StartMemoryExtractionJobInputDict, StartMemoryExtractionJobOutput as StartMemoryExtractionJobOutput, StartRecommendationInput as StartRecommendationInput, + StartRecommendationInputDict as StartRecommendationInputDict, StartRecommendationOutput as StartRecommendationOutput, StopBatchEvaluationInput as StopBatchEvaluationInput, + StopBatchEvaluationInputDict as StopBatchEvaluationInputDict, StopBatchEvaluationOutput as StopBatchEvaluationOutput, StopBrowserSessionInput as StopBrowserSessionInput, + StopBrowserSessionInputDict as StopBrowserSessionInputDict, StopBrowserSessionOutput as StopBrowserSessionOutput, StopCodeInterpreterSessionInput as StopCodeInterpreterSessionInput, + StopCodeInterpreterSessionInputDict as StopCodeInterpreterSessionInputDict, StopCodeInterpreterSessionOutput as StopCodeInterpreterSessionOutput, StopRuntimeSessionInput as StopRuntimeSessionInput, + StopRuntimeSessionInputDict as StopRuntimeSessionInputDict, StopRuntimeSessionOutput as StopRuntimeSessionOutput, StreamUpdateAutomationStreamUpdate as StreamUpdateAutomationStreamUpdate, StreamUpdateUnknown as StreamUpdateUnknown, StreamUpdate as StreamUpdate, _StreamUpdateDeserializer as _StreamUpdateDeserializer, + StreamUpdateAutomationStreamUpdateDict as StreamUpdateAutomationStreamUpdateDict, + StreamUpdateDict as StreamUpdateDict, StripePrivyTokenRequestInput as StripePrivyTokenRequestInput, + StripePrivyTokenRequestInputDict as StripePrivyTokenRequestInputDict, StripePrivyTokenResponseOutput as StripePrivyTokenResponseOutput, SubscriptionRequiredException as SubscriptionRequiredException, SystemPromptConfigText as SystemPromptConfigText, @@ -717,31 +1020,47 @@ from ._private.models_1 import ( SystemPromptConfigUnknown as SystemPromptConfigUnknown, SystemPromptConfig as SystemPromptConfig, _SystemPromptConfigDeserializer as _SystemPromptConfigDeserializer, + SystemPromptConfigTextDict as SystemPromptConfigTextDict, + SystemPromptConfigConfigurationBundleDict as SystemPromptConfigConfigurationBundleDict, + SystemPromptConfigDict as SystemPromptConfigDict, SystemPromptConfigurationBundle as SystemPromptConfigurationBundle, + SystemPromptConfigurationBundleDict as SystemPromptConfigurationBundleDict, SystemPromptRecommendationConfig as SystemPromptRecommendationConfig, + SystemPromptRecommendationConfigDict as SystemPromptRecommendationConfigDict, SystemPromptRecommendationResult as SystemPromptRecommendationResult, TargetRef as TargetRef, + TargetRefDict as TargetRefDict, TaskStatus as TaskStatus, ThrottledException as ThrottledException, ThrottlingException as ThrottlingException, TokenBalance as TokenBalance, TokenUsage as TokenUsage, ToolArguments as ToolArguments, + ToolArgumentsDict as ToolArgumentsDict, ToolDescriptionConfigText as ToolDescriptionConfigText, ToolDescriptionConfigUnknown as ToolDescriptionConfigUnknown, ToolDescriptionConfig as ToolDescriptionConfig, _ToolDescriptionConfigDeserializer as _ToolDescriptionConfigDeserializer, + ToolDescriptionConfigTextDict as ToolDescriptionConfigTextDict, + ToolDescriptionConfigDict as ToolDescriptionConfigDict, ToolDescriptionConfigurationBundle as ToolDescriptionConfigurationBundle, + ToolDescriptionConfigurationBundleDict as ToolDescriptionConfigurationBundleDict, ToolDescriptionInput as ToolDescriptionInput, + ToolDescriptionInputDict as ToolDescriptionInputDict, ToolDescriptionOutput as ToolDescriptionOutput, ToolDescriptionRecommendationConfig as ToolDescriptionRecommendationConfig, + ToolDescriptionRecommendationConfigDict as ToolDescriptionRecommendationConfigDict, ToolDescriptionRecommendationResult as ToolDescriptionRecommendationResult, ToolDescriptionSourceToolDescriptionText as ToolDescriptionSourceToolDescriptionText, ToolDescriptionSourceConfigurationBundle as ToolDescriptionSourceConfigurationBundle, ToolDescriptionSourceUnknown as ToolDescriptionSourceUnknown, ToolDescriptionSource as ToolDescriptionSource, _ToolDescriptionSourceDeserializer as _ToolDescriptionSourceDeserializer, + ToolDescriptionSourceToolDescriptionTextDict as ToolDescriptionSourceToolDescriptionTextDict, + ToolDescriptionSourceConfigurationBundleDict as ToolDescriptionSourceConfigurationBundleDict, + ToolDescriptionSourceDict as ToolDescriptionSourceDict, ToolDescriptionTextInput as ToolDescriptionTextInput, + ToolDescriptionTextInputDict as ToolDescriptionTextInputDict, ToolName as ToolName, ToolResultStructuredContent as ToolResultStructuredContent, ToolsDefinition as ToolsDefinition, @@ -750,16 +1069,24 @@ from ._private.models_1 import ( ToolsFileSystemConfigurationUnknown as ToolsFileSystemConfigurationUnknown, ToolsFileSystemConfiguration as ToolsFileSystemConfiguration, _ToolsFileSystemConfigurationDeserializer as _ToolsFileSystemConfigurationDeserializer, + ToolsFileSystemConfigurationS3FilesConfigurationDict as ToolsFileSystemConfigurationS3FilesConfigurationDict, + ToolsFileSystemConfigurationEfsConfigurationDict as ToolsFileSystemConfigurationEfsConfigurationDict, + ToolsFileSystemConfigurationDict as ToolsFileSystemConfigurationDict, UnauthorizedException as UnauthorizedException, UpdateABTestInput as UpdateABTestInput, + UpdateABTestInputDict as UpdateABTestInputDict, UpdateABTestOutput as UpdateABTestOutput, UpdateBrowserStreamInput as UpdateBrowserStreamInput, + UpdateBrowserStreamInputDict as UpdateBrowserStreamInputDict, UpdateBrowserStreamOutput as UpdateBrowserStreamOutput, UserIdentifierUserToken as UserIdentifierUserToken, UserIdentifierUserId as UserIdentifierUserId, UserIdentifierUnknown as UserIdentifierUnknown, UserIdentifier as UserIdentifier, _UserIdentifierDeserializer as _UserIdentifierDeserializer, + UserIdentifierUserTokenDict as UserIdentifierUserTokenDict, + UserIdentifierUserIdDict as UserIdentifierUserIdDict, + UserIdentifierDict as UserIdentifierDict, UserIntentAffectedSession as UserIntentAffectedSession, UserIntentCluster as UserIntentCluster, UserIntentClusteringResultContent as UserIntentClusteringResultContent, @@ -767,12 +1094,17 @@ from ._private.models_1 import ( ValidationExceptionField as ValidationExceptionField, ValidationExceptionReason as ValidationExceptionReason, Variant as Variant, + VariantDict as VariantDict, VariantConfiguration as VariantConfiguration, + VariantConfigurationDict as VariantConfigurationDict, VariantResult as VariantResult, ViewPort as ViewPort, + ViewPortDict as ViewPortDict, WebSearchFilters as WebSearchFilters, + WebSearchFiltersDict as WebSearchFiltersDict, WebSearchResult as WebSearchResult, Unit as Unit, + UnitDict as UnitDict, ) class _SerdeShape: diff --git a/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/py.typed b/clients/aws-sdk-bedrock-agentcore/src/aws_sdk_bedrock_agentcore/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-bedrock-agentcore/tests/_typecheck.py b/clients/aws-sdk-bedrock-agentcore/tests/_typecheck.py index a7a5285ea..558d90755 100644 --- a/clients/aws-sdk-bedrock-agentcore/tests/_typecheck.py +++ b/clients/aws-sdk-bedrock-agentcore/tests/_typecheck.py @@ -2,357 +2,588 @@ from typing import Any +from aws_sdk_bedrock_agentcore.aio.client import AsyncBedrockAgentCoreClient +from aws_sdk_bedrock_agentcore.client import BedrockAgentCoreClient from aws_sdk_bedrock_agentcore.models import ( A2aDescriptor, + ABTestEvaluationConfigDict, ABTestResults, ABTestSummary, ActorSummary, AffectedSession, AgentCardDefinition, AgentSkillsDescriptor, + AgentTracesConfigDict, Amount, + AmountDict, AutomationStream, AutomationStreamUpdate, + AutomationStreamUpdateDict, AvailableLimits, BasicAuth, + BasicAuthDict, BatchCreateMemoryRecordsInput, + BatchCreateMemoryRecordsInputDict, BatchCreateMemoryRecordsOutput, BatchDeleteMemoryRecordsInput, + BatchDeleteMemoryRecordsInputDict, BatchDeleteMemoryRecordsOutput, BatchEvaluationSummary, BatchEvaluationTraceConfig, + BatchEvaluationTraceConfigDict, BatchUpdateMemoryRecordsInput, + BatchUpdateMemoryRecordsInputDict, BatchUpdateMemoryRecordsOutput, Branch, + BranchDict, BranchFilter, + BranchFilterDict, + BrowserActionDict, BrowserEnterprisePolicy, + BrowserEnterprisePolicyDict, BrowserExtension, + BrowserExtensionDict, BrowserProfileConfiguration, + BrowserProfileConfigurationDict, BrowserSessionStream, BrowserSessionSummary, Certificate, + CertificateDict, + CertificateLocationDict, CloudWatchFilterConfig, + CloudWatchFilterConfigDict, CloudWatchLogsFilter, + CloudWatchLogsFilterDict, CloudWatchLogsRule, + CloudWatchLogsRuleDict, CloudWatchLogsSource, + CloudWatchLogsSourceDict, CloudWatchLogsTraceConfig, + CloudWatchLogsTraceConfigDict, CloudWatchOutputConfig, + CloudWatchOutputConfigDict, CodeInterpreterResult, CodeInterpreterSessionSummary, CoinbaseCdpTokenRequestInput, + CoinbaseCdpTokenRequestInputDict, CoinbaseCdpTokenResponseOutput, CompleteResourceTokenAuthInput, + CompleteResourceTokenAuthInputDict, CompleteResourceTokenAuthOutput, ConfidenceInterval, ConfigurationBundleRef, + ConfigurationBundleRefDict, ConfigurationBundleToolEntry, + ConfigurationBundleToolEntryDict, ContentBlock, ContentDeltaEvent, + ContentDict, + ContentSourceDict, ContentStartEvent, ContentStopEvent, + ContextDict, ControlStats, Conversational, + ConversationalDict, CreateABTestInput, + CreateABTestInputDict, CreateABTestOutput, CreateEventInput, + CreateEventInputDict, CreateEventOutput, CreatePaymentInstrumentInput, + CreatePaymentInstrumentInputDict, CreatePaymentInstrumentOutput, CreatePaymentSessionInput, + CreatePaymentSessionInputDict, CreatePaymentSessionOutput, CryptoX402PaymentInput, + CryptoX402PaymentInputDict, CryptoX402PaymentOutput, CustomDescriptor, + DataSourceConfigDict, DeleteABTestInput, + DeleteABTestInputDict, DeleteABTestOutput, DeleteBatchEvaluationInput, + DeleteBatchEvaluationInputDict, DeleteBatchEvaluationOutput, DeleteCapacityProviderSessionInput, + DeleteCapacityProviderSessionInputDict, DeleteCapacityProviderSessionOutput, DeleteEventInput, + DeleteEventInputDict, DeleteEventOutput, DeleteMemoryRecordInput, + DeleteMemoryRecordInputDict, DeleteMemoryRecordOutput, DeletePaymentInstrumentInput, + DeletePaymentInstrumentInputDict, DeletePaymentInstrumentOutput, DeletePaymentSessionInput, + DeletePaymentSessionInputDict, DeletePaymentSessionOutput, DeleteRecommendationInput, + DeleteRecommendationInputDict, DeleteRecommendationOutput, Descriptors, DomainFilter, + DomainFilterDict, EfsConfiguration, + EfsConfigurationDict, EmbeddedCryptoWallet, + EmbeddedCryptoWalletDict, EvaluateInput, + EvaluateInputDict, EvaluateOutput, + EvaluationContentDict, EvaluationExpectedTrajectory, + EvaluationExpectedTrajectoryDict, + EvaluationInputDict, EvaluationJobResults, + EvaluationMetadataDict, EvaluationReferenceInput, + EvaluationReferenceInputDict, EvaluationResultContent, + EvaluationTargetDict, Evaluator, + EvaluatorDict, EvaluatorMetric, EvaluatorStatistics, EvaluatorSummary, Event, EventMetadataFilterExpression, + EventMetadataFilterExpressionDict, ExecutionSummaryAffectedSession, ExecutionSummaryCluster, ExecutionSummaryClusteringResultContent, ExternalProxy, + ExternalProxyDict, ExtractionConfig, + ExtractionConfigDict, ExtractionJob, + ExtractionJobDict, ExtractionJobFilterInput, + ExtractionJobFilterInputDict, ExtractionJobMetadata, FailureAnalysisResultContent, FailureCategoryCluster, FailureSpanDetail, FailureSubCategoryCluster, FilterInput, + FilterInputDict, + FilterValueDict, GatewayFilter, + GatewayFilterDict, GetABTestInput, + GetABTestInputDict, GetABTestOutput, GetAgentCardInput, + GetAgentCardInputDict, GetAgentCardOutput, GetBatchEvaluationInput, + GetBatchEvaluationInputDict, GetBatchEvaluationOutput, GetBrowserSessionInput, + GetBrowserSessionInputDict, GetBrowserSessionOutput, GetCodeInterpreterSessionInput, + GetCodeInterpreterSessionInputDict, GetCodeInterpreterSessionOutput, GetEventInput, + GetEventInputDict, GetEventOutput, GetMemoryRecordInput, + GetMemoryRecordInputDict, GetMemoryRecordOutput, GetPaymentInstrumentBalanceInput, + GetPaymentInstrumentBalanceInputDict, GetPaymentInstrumentBalanceOutput, GetPaymentInstrumentInput, + GetPaymentInstrumentInputDict, GetPaymentInstrumentOutput, GetPaymentSessionInput, + GetPaymentSessionInputDict, GetPaymentSessionOutput, GetRecommendationInput, + GetRecommendationInputDict, GetRecommendationOutput, GetResourceApiKeyInput, + GetResourceApiKeyInputDict, GetResourceApiKeyOutput, GetResourceOauth2TokenInput, + GetResourceOauth2TokenInputDict, GetResourceOauth2TokenOutput, GetResourcePaymentTokenInput, + GetResourcePaymentTokenInputDict, GetResourcePaymentTokenOutput, GetWorkloadAccessTokenForJWTInput, + GetWorkloadAccessTokenForJWTInputDict, GetWorkloadAccessTokenForJWTOutput, GetWorkloadAccessTokenForUserIdInput, + GetWorkloadAccessTokenForUserIdInputDict, GetWorkloadAccessTokenForUserIdOutput, GetWorkloadAccessTokenInput, + GetWorkloadAccessTokenInputDict, GetWorkloadAccessTokenOutput, + GroundTruthSourceDict, GroundTruthTurn, + GroundTruthTurnDict, + GroundTruthTurnInputDict, HarnessAgentCoreBrowserConfig, + HarnessAgentCoreBrowserConfigDict, HarnessAgentCoreCodeInterpreterConfig, + HarnessAgentCoreCodeInterpreterConfigDict, HarnessAgentCoreGatewayConfig, + HarnessAgentCoreGatewayConfigDict, HarnessBedrockModelConfig, + HarnessBedrockModelConfigDict, HarnessContentBlockDeltaEvent, + HarnessContentBlockDict, HarnessContentBlockStartEvent, HarnessContentBlockStopEvent, + HarnessGatewayOutboundAuthDict, HarnessGeminiModelConfig, + HarnessGeminiModelConfigDict, HarnessHookEvent, HarnessInlineFunctionConfig, + HarnessInlineFunctionConfigDict, HarnessLiteLlmModelConfig, + HarnessLiteLlmModelConfigDict, HarnessMessage, + HarnessMessageDict, HarnessMessageStartEvent, HarnessMessageStopEvent, HarnessMetadataEvent, + HarnessModelConfigurationDict, HarnessOpenAiModelConfig, + HarnessOpenAiModelConfigDict, + HarnessReasoningContentBlockDict, HarnessReasoningTextBlock, + HarnessReasoningTextBlockDict, HarnessRemoteMcpConfig, + HarnessRemoteMcpConfigDict, + HarnessRemoteMcpOutboundAuthDict, HarnessSkillAwsSkillsSource, + HarnessSkillAwsSkillsSourceDict, + HarnessSkillDict, HarnessSkillGitAuth, + HarnessSkillGitAuthDict, HarnessSkillGitSource, + HarnessSkillGitSourceDict, HarnessSkillS3Source, + HarnessSkillS3SourceDict, HarnessStreamMetrics, + HarnessSystemContentBlockDict, HarnessTokenUsage, HarnessTool, + HarnessToolConfigurationDict, + HarnessToolDict, HarnessToolResultBlock, + HarnessToolResultBlockDict, HarnessToolResultBlockStart, + HarnessToolResultContentBlockDict, HarnessToolResultMetadataBlockDelta, HarnessToolUseBlock, HarnessToolUseBlockDelta, + HarnessToolUseBlockDict, HarnessToolUseBlockStart, IamCredentialProvider, + IamCredentialProviderDict, IngestDataInput, + IngestDataInputDict, IngestDataOutput, + IngestPayloadTypeDict, InlineGroundTruth, + InlineGroundTruthDict, InlineMemoryContent, + InlineMemoryContentDict, InputContentBlock, + InputContentBlockDict, Insight, + InsightDict, InsightResult, InsightRootCause, InsightsFailureSignal, InvokeAgentRuntimeCommandInput, + InvokeAgentRuntimeCommandInputDict, InvokeAgentRuntimeCommandOutput, InvokeAgentRuntimeCommandRequestBody, + InvokeAgentRuntimeCommandRequestBodyDict, InvokeAgentRuntimeInput, + InvokeAgentRuntimeInputDict, InvokeAgentRuntimeOutput, InvokeBrowserInput, + InvokeBrowserInputDict, InvokeBrowserOutput, InvokeCodeInterpreterInput, + InvokeCodeInterpreterInputDict, InvokeCodeInterpreterOutput, InvokeHarnessInput, + InvokeHarnessInputDict, InvokeHarnessOutput, InvokeWebSearchInput, + InvokeWebSearchInputDict, InvokeWebSearchOutput, KeyPressArguments, + KeyPressArgumentsDict, KeyPressResult, KeyShortcutArguments, + KeyShortcutArgumentsDict, KeyShortcutResult, KeyTypeArguments, + KeyTypeArgumentsDict, KeyTypeResult, + LeftExpressionDict, LinkedAccountDeveloperJwt, + LinkedAccountDeveloperJwtDict, + LinkedAccountDict, LinkedAccountEmail, + LinkedAccountEmailDict, + LinkedAccountOAuth2Dict, LinkedAccountSms, + LinkedAccountSmsDict, ListABTestsInput, + ListABTestsInputDict, ListABTestsOutput, ListActorsInput, + ListActorsInputDict, ListActorsOutput, ListBatchEvaluationsInput, + ListBatchEvaluationsInputDict, ListBatchEvaluationsOutput, ListBrowserSessionsInput, + ListBrowserSessionsInputDict, ListBrowserSessionsOutput, ListCodeInterpreterSessionsInput, + ListCodeInterpreterSessionsInputDict, ListCodeInterpreterSessionsOutput, ListEventsInput, + ListEventsInputDict, ListEventsOutput, ListMemoryExtractionJobsInput, + ListMemoryExtractionJobsInputDict, ListMemoryExtractionJobsOutput, ListMemoryRecordsInput, + ListMemoryRecordsInputDict, ListMemoryRecordsOutput, ListPaymentInstrumentsInput, + ListPaymentInstrumentsInputDict, ListPaymentInstrumentsOutput, ListPaymentSessionsInput, + ListPaymentSessionsInputDict, ListPaymentSessionsOutput, ListRecommendationsInput, + ListRecommendationsInputDict, ListRecommendationsOutput, ListSessionsInput, + ListSessionsInputDict, ListSessionsOutput, LiveViewStream, McpDescriptor, + MemoryContentDict, MemoryJsonData, + MemoryJsonDataDict, MemoryMetadataFilterExpression, + MemoryMetadataFilterExpressionDict, MemoryRecord, MemoryRecordCreateInput, + MemoryRecordCreateInputDict, MemoryRecordDeleteInput, + MemoryRecordDeleteInputDict, + MemoryRecordLeftExpressionDict, + MemoryRecordMetadataValueDict, MemoryRecordOutput, + MemoryRecordRightExpressionDict, MemoryRecordSummary, MemoryRecordUpdateInput, + MemoryRecordUpdateInputDict, MessageMetadata, + MetadataValueDict, MouseClickArguments, + MouseClickArgumentsDict, MouseClickResult, MouseDragArguments, + MouseDragArgumentsDict, MouseDragResult, MouseMoveArguments, + MouseMoveArgumentsDict, MouseMoveResult, MouseScrollArguments, + MouseScrollArgumentsDict, MouseScrollResult, MppPaymentInput, + MppPaymentInputDict, MppPaymentOutput, OAuth2Authentication, + OAuth2AuthenticationDict, OAuthCredentialProvider, + OAuthCredentialProviderDict, OnlineEvaluationConfigSource, + OnlineEvaluationConfigSourceDict, OnlineEvaluationTraceConfig, + OnlineEvaluationTraceConfigDict, + OutputConfigDict, + PayloadTypeDict, + PaymentInputDict, PaymentInstrument, + PaymentInstrumentDetailsDict, PaymentInstrumentSummary, PaymentSession, PaymentSessionSummary, + PaymentTokenRequestInputDict, PerVariantOnlineEvaluationConfig, + PerVariantOnlineEvaluationConfigDict, ProcessPaymentInput, + ProcessPaymentInputDict, ProcessPaymentOutput, ProxyBypass, + ProxyBypassDict, ProxyConfiguration, + ProxyConfigurationDict, + ProxyCredentialsDict, + ProxyDict, PublishedDateFilter, + PublishedDateFilterDict, + RecommendationConfigDict, RecommendationEvaluationConfig, + RecommendationEvaluationConfigDict, RecommendationEvaluatorReference, + RecommendationEvaluatorReferenceDict, RecommendationResultConfigurationBundle, RecommendationSummary, + RecordExpirySpecificationDict, RegistryRecordSummary, ResourceContent, + ResourceLocationDict, ResponseChunk, RetrieveMemoryRecordsInput, + RetrieveMemoryRecordsInputDict, RetrieveMemoryRecordsOutput, + RightExpressionDict, RootCauseCluster, S3FilesConfiguration, + S3FilesConfigurationDict, S3Location, + S3LocationDict, SampleSession, SaveBrowserSessionProfileInput, + SaveBrowserSessionProfileInputDict, SaveBrowserSessionProfileOutput, ScreenshotArguments, + ScreenshotArgumentsDict, ScreenshotResult, SearchCriteria, + SearchCriteriaDict, SearchRegistryRecordsInput, + SearchRegistryRecordsInputDict, SearchRegistryRecordsOutput, SecretsManagerLocation, + SecretsManagerLocationDict, ServerDefinition, SessionFilter, SessionFilterConfig, + SessionFilterConfigDict, + SessionFilterDict, SessionFinding, SessionLimits, + SessionLimitsDict, SessionMetadataShape, + SessionMetadataShapeDict, SessionSummary, SessionTraceIds, + SessionTraceIdsDict, SkillDefinition, SkillMdDefinition, SpanContext, + SpanContextDict, StartBatchEvaluationInput, + StartBatchEvaluationInputDict, StartBatchEvaluationOutput, StartBrowserSessionInput, + StartBrowserSessionInputDict, StartBrowserSessionOutput, StartCodeInterpreterSessionInput, + StartCodeInterpreterSessionInputDict, StartCodeInterpreterSessionOutput, StartMemoryExtractionJobInput, + StartMemoryExtractionJobInputDict, StartMemoryExtractionJobOutput, StartRecommendationInput, + StartRecommendationInputDict, StartRecommendationOutput, StopBatchEvaluationInput, + StopBatchEvaluationInputDict, StopBatchEvaluationOutput, StopBrowserSessionInput, + StopBrowserSessionInputDict, StopBrowserSessionOutput, StopCodeInterpreterSessionInput, + StopCodeInterpreterSessionInputDict, StopCodeInterpreterSessionOutput, StopRuntimeSessionInput, + StopRuntimeSessionInputDict, StopRuntimeSessionOutput, + StreamUpdateDict, StripePrivyTokenRequestInput, + StripePrivyTokenRequestInputDict, StripePrivyTokenResponseOutput, + SystemPromptConfigDict, SystemPromptConfigurationBundle, + SystemPromptConfigurationBundleDict, SystemPromptRecommendationConfig, + SystemPromptRecommendationConfigDict, SystemPromptRecommendationResult, TargetRef, + TargetRefDict, TokenBalance, TokenUsage, ToolArguments, + ToolArgumentsDict, + ToolDescriptionConfigDict, ToolDescriptionConfigurationBundle, + ToolDescriptionConfigurationBundleDict, ToolDescriptionInput, + ToolDescriptionInputDict, ToolDescriptionOutput, ToolDescriptionRecommendationConfig, + ToolDescriptionRecommendationConfigDict, ToolDescriptionRecommendationResult, + ToolDescriptionSourceDict, ToolDescriptionTextInput, + ToolDescriptionTextInputDict, ToolResultStructuredContent, ToolsDefinition, + ToolsFileSystemConfigurationDict, Unit, + UnitDict, UpdateABTestInput, + UpdateABTestInputDict, UpdateABTestOutput, UpdateBrowserStreamInput, + UpdateBrowserStreamInputDict, UpdateBrowserStreamOutput, + UserIdentifierDict, UserIntentAffectedSession, UserIntentCluster, UserIntentClusteringResultContent, ValidationExceptionField, Variant, VariantConfiguration, + VariantConfigurationDict, + VariantDict, VariantResult, ViewPort, + ViewPortDict, WebSearchFilters, + WebSearchFiltersDict, WebSearchResult, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -853,3 +1084,1126 @@ WebSearchFilters() WebSearchResult(text=_) Unit() +_params_0: ABTestEvaluationConfigDict = {"online_evaluation_config_arn": _} +_params_1: AgentTracesConfigDict = {"session_spans": _} +_params_2: AmountDict = {"value": _, "currency": _} +_params_3: AutomationStreamUpdateDict = {} +_params_4: BasicAuthDict = {"secret_arn": _} +_params_5: BatchCreateMemoryRecordsInputDict = {"memory_id": _, "records": _} +_params_6: BatchDeleteMemoryRecordsInputDict = {"memory_id": _, "records": _} +_params_7: BatchEvaluationTraceConfigDict = {"batch_evaluation_arn": _} +_params_8: BatchUpdateMemoryRecordsInputDict = {"memory_id": _, "records": _} +_params_9: BranchDict = {"name": _} +_params_10: BranchFilterDict = {"name": _} +_params_11: BrowserActionDict = {"mouse_click": _} +_params_12: BrowserEnterprisePolicyDict = {"location": _} +_params_13: BrowserExtensionDict = {"location": _} +_params_14: BrowserProfileConfigurationDict = {"profile_identifier": _} +_params_15: CertificateDict = {"location": _} +_params_16: CertificateLocationDict = {"secrets_manager": _} +_params_17: CloudWatchFilterConfigDict = {} +_params_18: CloudWatchLogsFilterDict = {"key": _, "operator": _, "value": _} +_params_19: CloudWatchLogsRuleDict = {} +_params_20: CloudWatchLogsSourceDict = {"service_names": _} +_params_21: CloudWatchLogsTraceConfigDict = { + "log_group_arns": _, + "service_names": _, + "start_time": _, + "end_time": _, +} +_params_22: CloudWatchOutputConfigDict = {} +_params_23: CoinbaseCdpTokenRequestInputDict = {"request_method": _, "request_path": _} +_params_24: CompleteResourceTokenAuthInputDict = { + "user_identifier": _, + "session_uri": _, +} +_params_25: ConfigurationBundleRefDict = {"bundle_arn": _, "bundle_version": _} +_params_26: ConfigurationBundleToolEntryDict = { + "tool_name": _, + "tool_description_json_path": _, +} +_params_27: ContentDict = {"text": _} +_params_28: ContentSourceDict = {"inline": _} +_params_29: ContextDict = {"span_context": _} +_params_30: ConversationalDict = {"content": _, "role": _} +_params_31: CreateABTestInputDict = { + "name": _, + "gateway_arn": _, + "variants": _, + "evaluation_config": _, + "role_arn": _, +} +_params_32: CreateEventInputDict = { + "memory_id": _, + "actor_id": _, + "event_timestamp": _, + "payload": _, +} +_params_33: CreatePaymentInstrumentInputDict = { + "payment_manager_arn": _, + "payment_connector_id": _, + "payment_instrument_type": _, + "payment_instrument_details": _, +} +_params_34: CreatePaymentSessionInputDict = { + "payment_manager_arn": _, + "expiry_time_in_minutes": _, +} +_params_35: CryptoX402PaymentInputDict = {"version": _, "payload": _} +_params_36: DataSourceConfigDict = {"cloud_watch_logs": _} +_params_37: DeleteABTestInputDict = {"ab_test_id": _} +_params_38: DeleteBatchEvaluationInputDict = {"batch_evaluation_id": _} +_params_39: DeleteCapacityProviderSessionInputDict = { + "capacity_provider_id": _, + "session_id": _, +} +_params_40: DeleteEventInputDict = { + "memory_id": _, + "session_id": _, + "event_id": _, + "actor_id": _, +} +_params_41: DeleteMemoryRecordInputDict = {"memory_id": _, "memory_record_id": _} +_params_42: DeletePaymentInstrumentInputDict = { + "payment_manager_arn": _, + "payment_connector_id": _, + "payment_instrument_id": _, +} +_params_43: DeletePaymentSessionInputDict = { + "payment_manager_arn": _, + "payment_session_id": _, +} +_params_44: DeleteRecommendationInputDict = {"recommendation_id": _} +_params_45: DomainFilterDict = {} +_params_46: EfsConfigurationDict = { + "access_point_arn": _, + "mount_path": _, + "file_system_arn": _, +} +_params_47: EmbeddedCryptoWalletDict = {"network": _, "linked_accounts": _} +_params_48: EvaluateInputDict = {"evaluator_id": _, "evaluation_input": _} +_params_49: EvaluationContentDict = {"text": _} +_params_50: EvaluationExpectedTrajectoryDict = {} +_params_51: EvaluationInputDict = {"session_spans": _} +_params_52: EvaluationMetadataDict = {"session_metadata": _} +_params_53: EvaluationReferenceInputDict = {"context": _} +_params_54: EvaluationTargetDict = {"span_ids": _} +_params_55: EvaluatorDict = {"evaluator_id": _} +_params_56: EventMetadataFilterExpressionDict = {"left": _, "operator": _} +_params_57: ExternalProxyDict = {"server": _, "port": _} +_params_58: ExtractionConfigDict = {} +_params_59: ExtractionJobDict = {"job_id": _} +_params_60: ExtractionJobFilterInputDict = {} +_params_61: FilterInputDict = {} +_params_62: FilterValueDict = {"string_value": _} +_params_63: GatewayFilterDict = {} +_params_64: GetABTestInputDict = {"ab_test_id": _} +_params_65: GetAgentCardInputDict = {"agent_runtime_arn": _} +_params_66: GetBatchEvaluationInputDict = {"batch_evaluation_id": _} +_params_67: GetBrowserSessionInputDict = {"browser_identifier": _, "session_id": _} +_params_68: GetCodeInterpreterSessionInputDict = { + "code_interpreter_identifier": _, + "session_id": _, +} +_params_69: GetEventInputDict = { + "memory_id": _, + "session_id": _, + "actor_id": _, + "event_id": _, +} +_params_70: GetMemoryRecordInputDict = {"memory_id": _, "memory_record_id": _} +_params_71: GetPaymentInstrumentBalanceInputDict = { + "payment_manager_arn": _, + "payment_connector_id": _, + "payment_instrument_id": _, + "chain": _, + "token": _, +} +_params_72: GetPaymentInstrumentInputDict = { + "payment_manager_arn": _, + "payment_instrument_id": _, +} +_params_73: GetPaymentSessionInputDict = { + "payment_manager_arn": _, + "payment_session_id": _, +} +_params_74: GetRecommendationInputDict = {"recommendation_id": _} +_params_75: GetResourceApiKeyInputDict = { + "workload_identity_token": _, + "resource_credential_provider_name": _, +} +_params_76: GetResourceOauth2TokenInputDict = { + "workload_identity_token": _, + "resource_credential_provider_name": _, + "scopes": _, + "oauth2_flow": _, +} +_params_77: GetResourcePaymentTokenInputDict = { + "workload_identity_token": _, + "resource_credential_provider_name": _, + "payment_token_request": _, +} +_params_78: GetWorkloadAccessTokenForJWTInputDict = { + "workload_name": _, + "user_token": _, +} +_params_79: GetWorkloadAccessTokenForUserIdInputDict = { + "workload_name": _, + "user_id": _, +} +_params_80: GetWorkloadAccessTokenInputDict = {"workload_name": _} +_params_81: GroundTruthSourceDict = {"inline": _} +_params_82: GroundTruthTurnDict = {} +_params_83: GroundTruthTurnInputDict = {"prompt": _} +_params_84: HarnessAgentCoreBrowserConfigDict = {} +_params_85: HarnessAgentCoreCodeInterpreterConfigDict = {} +_params_86: HarnessAgentCoreGatewayConfigDict = {"gateway_arn": _} +_params_87: HarnessBedrockModelConfigDict = {"model_id": _} +_params_88: HarnessContentBlockDict = {"text": _} +_params_89: HarnessGatewayOutboundAuthDict = {"aws_iam": _} +_params_90: HarnessGeminiModelConfigDict = {"model_id": _, "api_key_arn": _} +_params_91: HarnessInlineFunctionConfigDict = {"description": _, "input_schema": _} +_params_92: HarnessLiteLlmModelConfigDict = {"model_id": _} +_params_93: HarnessMessageDict = {"role": _, "content": _} +_params_94: HarnessModelConfigurationDict = {"bedrock_model_config": _} +_params_95: HarnessOpenAiModelConfigDict = {"model_id": _, "api_key_arn": _} +_params_96: HarnessReasoningContentBlockDict = {"reasoning_text": _} +_params_97: HarnessReasoningTextBlockDict = {"text": _} +_params_98: HarnessRemoteMcpConfigDict = {"url": _} +_params_99: HarnessRemoteMcpOutboundAuthDict = {"aws_iam": _} +_params_100: HarnessSkillDict = {"path": _} +_params_101: HarnessSkillAwsSkillsSourceDict = {} +_params_102: HarnessSkillGitAuthDict = {"credential_arn": _} +_params_103: HarnessSkillGitSourceDict = {"url": _} +_params_104: HarnessSkillS3SourceDict = {"uri": _} +_params_105: HarnessSystemContentBlockDict = {"text": _} +_params_106: HarnessToolDict = {"type": _} +_params_107: HarnessToolConfigurationDict = {"remote_mcp": _} +_params_108: HarnessToolResultBlockDict = {"tool_use_id": _, "content": _} +_params_109: HarnessToolResultContentBlockDict = {"text": _} +_params_110: HarnessToolUseBlockDict = {"name": _, "tool_use_id": _, "input": _} +_params_111: IamCredentialProviderDict = {"service": _} +_params_112: IngestDataInputDict = { + "memory_id": _, + "source": _, + "content_timestamp": _, + "actor_id": _, +} +_params_113: IngestPayloadTypeDict = {"conversational": _} +_params_114: InlineGroundTruthDict = {} +_params_115: InlineMemoryContentDict = {"payload": _} +_params_116: InputContentBlockDict = {"path": _} +_params_117: InsightDict = {"insight_id": _} +_params_118: InvokeAgentRuntimeCommandInputDict = {"agent_runtime_arn": _, "body": _} +_params_119: InvokeAgentRuntimeCommandRequestBodyDict = {"command": _} +_params_120: InvokeAgentRuntimeInputDict = {"agent_runtime_arn": _, "payload": _} +_params_121: InvokeBrowserInputDict = { + "browser_identifier": _, + "session_id": _, + "action": _, +} +_params_122: InvokeCodeInterpreterInputDict = { + "code_interpreter_identifier": _, + "name": _, +} +_params_123: InvokeHarnessInputDict = { + "harness_arn": _, + "runtime_session_id": _, + "messages": _, +} +_params_124: InvokeWebSearchInputDict = {"web_search_id": _, "search_query": _} +_params_125: KeyPressArgumentsDict = {"key": _} +_params_126: KeyShortcutArgumentsDict = {"keys": _} +_params_127: KeyTypeArgumentsDict = {"text": _} +_params_128: LeftExpressionDict = {"metadata_key": _} +_params_129: LinkedAccountDict = {"email": _} +_params_130: LinkedAccountDeveloperJwtDict = {"kid": _, "sub": _} +_params_131: LinkedAccountEmailDict = {"email_address": _} +_params_132: LinkedAccountOAuth2Dict = {"google": _} +_params_133: LinkedAccountSmsDict = {"phone_number": _} +_params_134: ListABTestsInputDict = {} +_params_135: ListActorsInputDict = {"memory_id": _} +_params_136: ListBatchEvaluationsInputDict = {} +_params_137: ListBrowserSessionsInputDict = {"browser_identifier": _} +_params_138: ListCodeInterpreterSessionsInputDict = {"code_interpreter_identifier": _} +_params_139: ListEventsInputDict = {"memory_id": _, "session_id": _, "actor_id": _} +_params_140: ListMemoryExtractionJobsInputDict = {"memory_id": _} +_params_141: ListMemoryRecordsInputDict = {"memory_id": _} +_params_142: ListPaymentInstrumentsInputDict = {"payment_manager_arn": _} +_params_143: ListPaymentSessionsInputDict = {"payment_manager_arn": _} +_params_144: ListRecommendationsInputDict = {} +_params_145: ListSessionsInputDict = {"memory_id": _, "actor_id": _} +_params_146: MemoryContentDict = {"text": _} +_params_147: MemoryJsonDataDict = {"content": _} +_params_148: MemoryMetadataFilterExpressionDict = {"left": _, "operator": _} +_params_149: MemoryRecordCreateInputDict = { + "request_identifier": _, + "namespaces": _, + "content": _, + "timestamp": _, +} +_params_150: MemoryRecordDeleteInputDict = {"memory_record_id": _} +_params_151: MemoryRecordLeftExpressionDict = {"metadata_key": _} +_params_152: MemoryRecordMetadataValueDict = {"string_value": _} +_params_153: MemoryRecordRightExpressionDict = {"metadata_value": _} +_params_154: MemoryRecordUpdateInputDict = {"memory_record_id": _, "timestamp": _} +_params_155: MetadataValueDict = {"string_value": _} +_params_156: MouseClickArgumentsDict = {"x": _, "y": _} +_params_157: MouseDragArgumentsDict = { + "end_x": _, + "end_y": _, + "start_x": _, + "start_y": _, +} +_params_158: MouseMoveArgumentsDict = {"x": _, "y": _} +_params_159: MouseScrollArgumentsDict = {"x": _, "y": _} +_params_160: MppPaymentInputDict = {"version": _, "www_authenticate_headers": _} +_params_161: OAuth2AuthenticationDict = {"sub": _} +_params_162: OAuthCredentialProviderDict = {"provider_arn": _, "scopes": _} +_params_163: OnlineEvaluationConfigSourceDict = {"online_evaluation_config_arn": _} +_params_164: OnlineEvaluationTraceConfigDict = { + "online_evaluation_config_arn": _, + "start_time": _, + "end_time": _, +} +_params_165: OutputConfigDict = {"cloud_watch_config": _} +_params_166: PayloadTypeDict = {"conversational": _} +_params_167: PaymentInputDict = {"crypto_x402": _} +_params_168: PaymentInstrumentDetailsDict = {"embedded_crypto_wallet": _} +_params_169: PaymentTokenRequestInputDict = {"coinbase_cdp_token_request": _} +_params_170: PerVariantOnlineEvaluationConfigDict = { + "name": _, + "online_evaluation_config_arn": _, +} +_params_171: ProcessPaymentInputDict = { + "payment_manager_arn": _, + "payment_session_id": _, + "payment_instrument_id": _, + "payment_type": _, + "payment_input": _, +} +_params_172: ProxyDict = {"external_proxy": _} +_params_173: ProxyBypassDict = {} +_params_174: ProxyConfigurationDict = {"proxies": _} +_params_175: ProxyCredentialsDict = {"basic_auth": _} +_params_176: PublishedDateFilterDict = {} +_params_177: RecommendationConfigDict = {"system_prompt_recommendation_config": _} +_params_178: RecommendationEvaluationConfigDict = {"evaluators": _} +_params_179: RecommendationEvaluatorReferenceDict = {"evaluator_arn": _} +_params_180: RecordExpirySpecificationDict = {"record_expiry_duration_days": _} +_params_181: ResourceLocationDict = {"s3": _} +_params_182: RetrieveMemoryRecordsInputDict = {"memory_id": _, "search_criteria": _} +_params_183: RightExpressionDict = {"metadata_value": _} +_params_184: S3FilesConfigurationDict = { + "access_point_arn": _, + "mount_path": _, + "file_system_arn": _, +} +_params_185: S3LocationDict = {"bucket": _, "prefix": _} +_params_186: SaveBrowserSessionProfileInputDict = { + "profile_identifier": _, + "browser_identifier": _, + "session_id": _, +} +_params_187: ScreenshotArgumentsDict = {} +_params_188: SearchCriteriaDict = {"search_query": _} +_params_189: SearchRegistryRecordsInputDict = {"search_query": _, "registry_ids": _} +_params_190: SecretsManagerLocationDict = {"secret_arn": _} +_params_191: SessionFilterDict = {} +_params_192: SessionFilterConfigDict = {} +_params_193: SessionLimitsDict = {"max_spend_amount": _} +_params_194: SessionMetadataShapeDict = {"session_id": _} +_params_195: SessionTraceIdsDict = {"session_id": _, "trace_ids": _} +_params_196: SpanContextDict = {"session_id": _} +_params_197: StartBatchEvaluationInputDict = { + "batch_evaluation_name": _, + "data_source_config": _, +} +_params_198: StartBrowserSessionInputDict = {"browser_identifier": _} +_params_199: StartCodeInterpreterSessionInputDict = {"code_interpreter_identifier": _} +_params_200: StartMemoryExtractionJobInputDict = {"memory_id": _, "extraction_job": _} +_params_201: StartRecommendationInputDict = { + "name": _, + "type": _, + "recommendation_config": _, +} +_params_202: StopBatchEvaluationInputDict = {"batch_evaluation_id": _} +_params_203: StopBrowserSessionInputDict = {"browser_identifier": _, "session_id": _} +_params_204: StopCodeInterpreterSessionInputDict = { + "code_interpreter_identifier": _, + "session_id": _, +} +_params_205: StopRuntimeSessionInputDict = { + "runtime_session_id": _, + "agent_runtime_arn": _, +} +_params_206: StreamUpdateDict = {"automation_stream_update": _} +_params_207: StripePrivyTokenRequestInputDict = {"request_path": _, "request_body": _} +_params_208: SystemPromptConfigDict = {"text": _} +_params_209: SystemPromptConfigurationBundleDict = { + "bundle_arn": _, + "version_id": _, + "system_prompt_json_path": _, +} +_params_210: SystemPromptRecommendationConfigDict = { + "system_prompt": _, + "agent_traces": _, +} +_params_211: TargetRefDict = {"name": _} +_params_212: ToolArgumentsDict = {} +_params_213: ToolDescriptionConfigDict = {"text": _} +_params_214: ToolDescriptionConfigurationBundleDict = { + "bundle_arn": _, + "version_id": _, + "tools": _, +} +_params_215: ToolDescriptionInputDict = {"tool_name": _, "tool_description": _} +_params_216: ToolDescriptionRecommendationConfigDict = { + "tool_description": _, + "agent_traces": _, +} +_params_217: ToolDescriptionSourceDict = {"tool_description_text": _} +_params_218: ToolDescriptionTextInputDict = {"tools": _} +_params_219: ToolsFileSystemConfigurationDict = {"s3_files_configuration": _} +_params_220: UpdateABTestInputDict = {"ab_test_id": _} +_params_221: UpdateBrowserStreamInputDict = { + "browser_identifier": _, + "session_id": _, + "stream_update": _, +} +_params_222: UserIdentifierDict = {"user_token": _} +_params_223: VariantDict = {"name": _, "weight": _, "variant_configuration": _} +_params_224: VariantConfigurationDict = {} +_params_225: ViewPortDict = {"width": _, "height": _} +_params_226: WebSearchFiltersDict = {} +_params_227: UnitDict = {} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncBedrockAgentCoreClient) -> None: + pass + await client.batch_create_memory_records(memory_id=_, records=_) + await client.batch_create_memory_records( + **_request(BatchCreateMemoryRecordsInputDict) + ) + await client.batch_create_memory_records(_request(BatchCreateMemoryRecordsInput)) + await client.batch_create_memory_records( + _request(BatchCreateMemoryRecordsInputDict) + ) + await client.batch_delete_memory_records(memory_id=_, records=_) + await client.batch_delete_memory_records( + **_request(BatchDeleteMemoryRecordsInputDict) + ) + await client.batch_delete_memory_records(_request(BatchDeleteMemoryRecordsInput)) + await client.batch_delete_memory_records( + _request(BatchDeleteMemoryRecordsInputDict) + ) + await client.batch_update_memory_records(memory_id=_, records=_) + await client.batch_update_memory_records( + **_request(BatchUpdateMemoryRecordsInputDict) + ) + await client.batch_update_memory_records(_request(BatchUpdateMemoryRecordsInput)) + await client.batch_update_memory_records( + _request(BatchUpdateMemoryRecordsInputDict) + ) + await client.complete_resource_token_auth(user_identifier=_, session_uri=_) + await client.complete_resource_token_auth( + **_request(CompleteResourceTokenAuthInputDict) + ) + await client.complete_resource_token_auth(_request(CompleteResourceTokenAuthInput)) + await client.complete_resource_token_auth( + _request(CompleteResourceTokenAuthInputDict) + ) + await client.create_ab_test( + name=_, gateway_arn=_, variants=_, evaluation_config=_, role_arn=_ + ) + await client.create_ab_test(**_request(CreateABTestInputDict)) + await client.create_ab_test(_request(CreateABTestInput)) + await client.create_ab_test(_request(CreateABTestInputDict)) + await client.create_event(memory_id=_, actor_id=_, event_timestamp=_, payload=_) + await client.create_event(**_request(CreateEventInputDict)) + await client.create_event(_request(CreateEventInput)) + await client.create_event(_request(CreateEventInputDict)) + await client.create_payment_instrument( + payment_manager_arn=_, + payment_connector_id=_, + payment_instrument_type=_, + payment_instrument_details=_, + ) + await client.create_payment_instrument(**_request(CreatePaymentInstrumentInputDict)) + await client.create_payment_instrument(_request(CreatePaymentInstrumentInput)) + await client.create_payment_instrument(_request(CreatePaymentInstrumentInputDict)) + await client.create_payment_session(payment_manager_arn=_, expiry_time_in_minutes=_) + await client.create_payment_session(**_request(CreatePaymentSessionInputDict)) + await client.create_payment_session(_request(CreatePaymentSessionInput)) + await client.create_payment_session(_request(CreatePaymentSessionInputDict)) + await client.delete_ab_test(ab_test_id=_) + await client.delete_ab_test(**_request(DeleteABTestInputDict)) + await client.delete_ab_test(_request(DeleteABTestInput)) + await client.delete_ab_test(_request(DeleteABTestInputDict)) + await client.delete_batch_evaluation(batch_evaluation_id=_) + await client.delete_batch_evaluation(**_request(DeleteBatchEvaluationInputDict)) + await client.delete_batch_evaluation(_request(DeleteBatchEvaluationInput)) + await client.delete_batch_evaluation(_request(DeleteBatchEvaluationInputDict)) + await client.delete_capacity_provider_session(capacity_provider_id=_, session_id=_) + await client.delete_capacity_provider_session( + **_request(DeleteCapacityProviderSessionInputDict) + ) + await client.delete_capacity_provider_session( + _request(DeleteCapacityProviderSessionInput) + ) + await client.delete_capacity_provider_session( + _request(DeleteCapacityProviderSessionInputDict) + ) + await client.delete_event(memory_id=_, session_id=_, event_id=_, actor_id=_) + await client.delete_event(**_request(DeleteEventInputDict)) + await client.delete_event(_request(DeleteEventInput)) + await client.delete_event(_request(DeleteEventInputDict)) + await client.delete_memory_record(memory_id=_, memory_record_id=_) + await client.delete_memory_record(**_request(DeleteMemoryRecordInputDict)) + await client.delete_memory_record(_request(DeleteMemoryRecordInput)) + await client.delete_memory_record(_request(DeleteMemoryRecordInputDict)) + await client.delete_payment_instrument( + payment_manager_arn=_, payment_connector_id=_, payment_instrument_id=_ + ) + await client.delete_payment_instrument(**_request(DeletePaymentInstrumentInputDict)) + await client.delete_payment_instrument(_request(DeletePaymentInstrumentInput)) + await client.delete_payment_instrument(_request(DeletePaymentInstrumentInputDict)) + await client.delete_payment_session(payment_manager_arn=_, payment_session_id=_) + await client.delete_payment_session(**_request(DeletePaymentSessionInputDict)) + await client.delete_payment_session(_request(DeletePaymentSessionInput)) + await client.delete_payment_session(_request(DeletePaymentSessionInputDict)) + await client.delete_recommendation(recommendation_id=_) + await client.delete_recommendation(**_request(DeleteRecommendationInputDict)) + await client.delete_recommendation(_request(DeleteRecommendationInput)) + await client.delete_recommendation(_request(DeleteRecommendationInputDict)) + await client.evaluate(evaluator_id=_, evaluation_input=_) + await client.evaluate(**_request(EvaluateInputDict)) + await client.evaluate(_request(EvaluateInput)) + await client.evaluate(_request(EvaluateInputDict)) + await client.get_ab_test(ab_test_id=_) + await client.get_ab_test(**_request(GetABTestInputDict)) + await client.get_ab_test(_request(GetABTestInput)) + await client.get_ab_test(_request(GetABTestInputDict)) + await client.get_agent_card(agent_runtime_arn=_) + await client.get_agent_card(**_request(GetAgentCardInputDict)) + await client.get_agent_card(_request(GetAgentCardInput)) + await client.get_agent_card(_request(GetAgentCardInputDict)) + await client.get_batch_evaluation(batch_evaluation_id=_) + await client.get_batch_evaluation(**_request(GetBatchEvaluationInputDict)) + await client.get_batch_evaluation(_request(GetBatchEvaluationInput)) + await client.get_batch_evaluation(_request(GetBatchEvaluationInputDict)) + await client.get_browser_session(browser_identifier=_, session_id=_) + await client.get_browser_session(**_request(GetBrowserSessionInputDict)) + await client.get_browser_session(_request(GetBrowserSessionInput)) + await client.get_browser_session(_request(GetBrowserSessionInputDict)) + await client.get_code_interpreter_session( + code_interpreter_identifier=_, session_id=_ + ) + await client.get_code_interpreter_session( + **_request(GetCodeInterpreterSessionInputDict) + ) + await client.get_code_interpreter_session(_request(GetCodeInterpreterSessionInput)) + await client.get_code_interpreter_session( + _request(GetCodeInterpreterSessionInputDict) + ) + await client.get_event(memory_id=_, session_id=_, actor_id=_, event_id=_) + await client.get_event(**_request(GetEventInputDict)) + await client.get_event(_request(GetEventInput)) + await client.get_event(_request(GetEventInputDict)) + await client.get_memory_record(memory_id=_, memory_record_id=_) + await client.get_memory_record(**_request(GetMemoryRecordInputDict)) + await client.get_memory_record(_request(GetMemoryRecordInput)) + await client.get_memory_record(_request(GetMemoryRecordInputDict)) + await client.get_payment_instrument(payment_manager_arn=_, payment_instrument_id=_) + await client.get_payment_instrument(**_request(GetPaymentInstrumentInputDict)) + await client.get_payment_instrument(_request(GetPaymentInstrumentInput)) + await client.get_payment_instrument(_request(GetPaymentInstrumentInputDict)) + await client.get_payment_instrument_balance( + payment_manager_arn=_, + payment_connector_id=_, + payment_instrument_id=_, + chain=_, + token=_, + ) + await client.get_payment_instrument_balance( + **_request(GetPaymentInstrumentBalanceInputDict) + ) + await client.get_payment_instrument_balance( + _request(GetPaymentInstrumentBalanceInput) + ) + await client.get_payment_instrument_balance( + _request(GetPaymentInstrumentBalanceInputDict) + ) + await client.get_payment_session(payment_manager_arn=_, payment_session_id=_) + await client.get_payment_session(**_request(GetPaymentSessionInputDict)) + await client.get_payment_session(_request(GetPaymentSessionInput)) + await client.get_payment_session(_request(GetPaymentSessionInputDict)) + await client.get_recommendation(recommendation_id=_) + await client.get_recommendation(**_request(GetRecommendationInputDict)) + await client.get_recommendation(_request(GetRecommendationInput)) + await client.get_recommendation(_request(GetRecommendationInputDict)) + await client.get_resource_api_key( + workload_identity_token=_, resource_credential_provider_name=_ + ) + await client.get_resource_api_key(**_request(GetResourceApiKeyInputDict)) + await client.get_resource_api_key(_request(GetResourceApiKeyInput)) + await client.get_resource_api_key(_request(GetResourceApiKeyInputDict)) + await client.get_resource_oauth2_token( + workload_identity_token=_, + resource_credential_provider_name=_, + scopes=_, + oauth2_flow=_, + ) + await client.get_resource_oauth2_token(**_request(GetResourceOauth2TokenInputDict)) + await client.get_resource_oauth2_token(_request(GetResourceOauth2TokenInput)) + await client.get_resource_oauth2_token(_request(GetResourceOauth2TokenInputDict)) + await client.get_resource_payment_token( + workload_identity_token=_, + resource_credential_provider_name=_, + payment_token_request=_, + ) + await client.get_resource_payment_token( + **_request(GetResourcePaymentTokenInputDict) + ) + await client.get_resource_payment_token(_request(GetResourcePaymentTokenInput)) + await client.get_resource_payment_token(_request(GetResourcePaymentTokenInputDict)) + await client.get_workload_access_token(workload_name=_) + await client.get_workload_access_token(**_request(GetWorkloadAccessTokenInputDict)) + await client.get_workload_access_token(_request(GetWorkloadAccessTokenInput)) + await client.get_workload_access_token(_request(GetWorkloadAccessTokenInputDict)) + await client.get_workload_access_token_for_jwt(workload_name=_, user_token=_) + await client.get_workload_access_token_for_jwt( + **_request(GetWorkloadAccessTokenForJWTInputDict) + ) + await client.get_workload_access_token_for_jwt( + _request(GetWorkloadAccessTokenForJWTInput) + ) + await client.get_workload_access_token_for_jwt( + _request(GetWorkloadAccessTokenForJWTInputDict) + ) + await client.get_workload_access_token_for_user_id(workload_name=_, user_id=_) + await client.get_workload_access_token_for_user_id( + **_request(GetWorkloadAccessTokenForUserIdInputDict) + ) + await client.get_workload_access_token_for_user_id( + _request(GetWorkloadAccessTokenForUserIdInput) + ) + await client.get_workload_access_token_for_user_id( + _request(GetWorkloadAccessTokenForUserIdInputDict) + ) + await client.ingest_data(memory_id=_, source=_, content_timestamp=_, actor_id=_) + await client.ingest_data(**_request(IngestDataInputDict)) + await client.ingest_data(_request(IngestDataInput)) + await client.ingest_data(_request(IngestDataInputDict)) + await client.invoke_agent_runtime(agent_runtime_arn=_, payload=_) + await client.invoke_agent_runtime(**_request(InvokeAgentRuntimeInputDict)) + await client.invoke_agent_runtime(_request(InvokeAgentRuntimeInput)) + await client.invoke_agent_runtime(_request(InvokeAgentRuntimeInputDict)) + await client.invoke_agent_runtime_command(agent_runtime_arn=_, body=_) + await client.invoke_agent_runtime_command( + **_request(InvokeAgentRuntimeCommandInputDict) + ) + await client.invoke_agent_runtime_command(_request(InvokeAgentRuntimeCommandInput)) + await client.invoke_agent_runtime_command( + _request(InvokeAgentRuntimeCommandInputDict) + ) + await client.invoke_browser(browser_identifier=_, session_id=_, action=_) + await client.invoke_browser(**_request(InvokeBrowserInputDict)) + await client.invoke_browser(_request(InvokeBrowserInput)) + await client.invoke_browser(_request(InvokeBrowserInputDict)) + await client.invoke_code_interpreter(code_interpreter_identifier=_, name=_) + await client.invoke_code_interpreter(**_request(InvokeCodeInterpreterInputDict)) + await client.invoke_code_interpreter(_request(InvokeCodeInterpreterInput)) + await client.invoke_code_interpreter(_request(InvokeCodeInterpreterInputDict)) + await client.invoke_harness(harness_arn=_, runtime_session_id=_, messages=_) + await client.invoke_harness(**_request(InvokeHarnessInputDict)) + await client.invoke_harness(_request(InvokeHarnessInput)) + await client.invoke_harness(_request(InvokeHarnessInputDict)) + await client.invoke_web_search(web_search_id=_, search_query=_) + await client.invoke_web_search(**_request(InvokeWebSearchInputDict)) + await client.invoke_web_search(_request(InvokeWebSearchInput)) + await client.invoke_web_search(_request(InvokeWebSearchInputDict)) + await client.list_ab_tests() + await client.list_ab_tests(**_request(ListABTestsInputDict)) + await client.list_ab_tests(_request(ListABTestsInput)) + await client.list_ab_tests(_request(ListABTestsInputDict)) + await client.list_actors(memory_id=_) + await client.list_actors(**_request(ListActorsInputDict)) + await client.list_actors(_request(ListActorsInput)) + await client.list_actors(_request(ListActorsInputDict)) + await client.list_batch_evaluations() + await client.list_batch_evaluations(**_request(ListBatchEvaluationsInputDict)) + await client.list_batch_evaluations(_request(ListBatchEvaluationsInput)) + await client.list_batch_evaluations(_request(ListBatchEvaluationsInputDict)) + await client.list_browser_sessions(browser_identifier=_) + await client.list_browser_sessions(**_request(ListBrowserSessionsInputDict)) + await client.list_browser_sessions(_request(ListBrowserSessionsInput)) + await client.list_browser_sessions(_request(ListBrowserSessionsInputDict)) + await client.list_code_interpreter_sessions(code_interpreter_identifier=_) + await client.list_code_interpreter_sessions( + **_request(ListCodeInterpreterSessionsInputDict) + ) + await client.list_code_interpreter_sessions( + _request(ListCodeInterpreterSessionsInput) + ) + await client.list_code_interpreter_sessions( + _request(ListCodeInterpreterSessionsInputDict) + ) + await client.list_events(memory_id=_, session_id=_, actor_id=_) + await client.list_events(**_request(ListEventsInputDict)) + await client.list_events(_request(ListEventsInput)) + await client.list_events(_request(ListEventsInputDict)) + await client.list_memory_extraction_jobs(memory_id=_) + await client.list_memory_extraction_jobs( + **_request(ListMemoryExtractionJobsInputDict) + ) + await client.list_memory_extraction_jobs(_request(ListMemoryExtractionJobsInput)) + await client.list_memory_extraction_jobs( + _request(ListMemoryExtractionJobsInputDict) + ) + await client.list_memory_records(memory_id=_) + await client.list_memory_records(**_request(ListMemoryRecordsInputDict)) + await client.list_memory_records(_request(ListMemoryRecordsInput)) + await client.list_memory_records(_request(ListMemoryRecordsInputDict)) + await client.list_payment_instruments(payment_manager_arn=_) + await client.list_payment_instruments(**_request(ListPaymentInstrumentsInputDict)) + await client.list_payment_instruments(_request(ListPaymentInstrumentsInput)) + await client.list_payment_instruments(_request(ListPaymentInstrumentsInputDict)) + await client.list_payment_sessions(payment_manager_arn=_) + await client.list_payment_sessions(**_request(ListPaymentSessionsInputDict)) + await client.list_payment_sessions(_request(ListPaymentSessionsInput)) + await client.list_payment_sessions(_request(ListPaymentSessionsInputDict)) + await client.list_recommendations() + await client.list_recommendations(**_request(ListRecommendationsInputDict)) + await client.list_recommendations(_request(ListRecommendationsInput)) + await client.list_recommendations(_request(ListRecommendationsInputDict)) + await client.list_sessions(memory_id=_, actor_id=_) + await client.list_sessions(**_request(ListSessionsInputDict)) + await client.list_sessions(_request(ListSessionsInput)) + await client.list_sessions(_request(ListSessionsInputDict)) + await client.process_payment( + payment_manager_arn=_, + payment_session_id=_, + payment_instrument_id=_, + payment_type=_, + payment_input=_, + ) + await client.process_payment(**_request(ProcessPaymentInputDict)) + await client.process_payment(_request(ProcessPaymentInput)) + await client.process_payment(_request(ProcessPaymentInputDict)) + await client.retrieve_memory_records(memory_id=_, search_criteria=_) + await client.retrieve_memory_records(**_request(RetrieveMemoryRecordsInputDict)) + await client.retrieve_memory_records(_request(RetrieveMemoryRecordsInput)) + await client.retrieve_memory_records(_request(RetrieveMemoryRecordsInputDict)) + await client.save_browser_session_profile( + profile_identifier=_, browser_identifier=_, session_id=_ + ) + await client.save_browser_session_profile( + **_request(SaveBrowserSessionProfileInputDict) + ) + await client.save_browser_session_profile(_request(SaveBrowserSessionProfileInput)) + await client.save_browser_session_profile( + _request(SaveBrowserSessionProfileInputDict) + ) + await client.search_registry_records(search_query=_, registry_ids=_) + await client.search_registry_records(**_request(SearchRegistryRecordsInputDict)) + await client.search_registry_records(_request(SearchRegistryRecordsInput)) + await client.search_registry_records(_request(SearchRegistryRecordsInputDict)) + await client.start_batch_evaluation(batch_evaluation_name=_, data_source_config=_) + await client.start_batch_evaluation(**_request(StartBatchEvaluationInputDict)) + await client.start_batch_evaluation(_request(StartBatchEvaluationInput)) + await client.start_batch_evaluation(_request(StartBatchEvaluationInputDict)) + await client.start_browser_session(browser_identifier=_) + await client.start_browser_session(**_request(StartBrowserSessionInputDict)) + await client.start_browser_session(_request(StartBrowserSessionInput)) + await client.start_browser_session(_request(StartBrowserSessionInputDict)) + await client.start_code_interpreter_session(code_interpreter_identifier=_) + await client.start_code_interpreter_session( + **_request(StartCodeInterpreterSessionInputDict) + ) + await client.start_code_interpreter_session( + _request(StartCodeInterpreterSessionInput) + ) + await client.start_code_interpreter_session( + _request(StartCodeInterpreterSessionInputDict) + ) + await client.start_memory_extraction_job(memory_id=_, extraction_job=_) + await client.start_memory_extraction_job( + **_request(StartMemoryExtractionJobInputDict) + ) + await client.start_memory_extraction_job(_request(StartMemoryExtractionJobInput)) + await client.start_memory_extraction_job( + _request(StartMemoryExtractionJobInputDict) + ) + await client.start_recommendation(name=_, type=_, recommendation_config=_) + await client.start_recommendation(**_request(StartRecommendationInputDict)) + await client.start_recommendation(_request(StartRecommendationInput)) + await client.start_recommendation(_request(StartRecommendationInputDict)) + await client.stop_batch_evaluation(batch_evaluation_id=_) + await client.stop_batch_evaluation(**_request(StopBatchEvaluationInputDict)) + await client.stop_batch_evaluation(_request(StopBatchEvaluationInput)) + await client.stop_batch_evaluation(_request(StopBatchEvaluationInputDict)) + await client.stop_browser_session(browser_identifier=_, session_id=_) + await client.stop_browser_session(**_request(StopBrowserSessionInputDict)) + await client.stop_browser_session(_request(StopBrowserSessionInput)) + await client.stop_browser_session(_request(StopBrowserSessionInputDict)) + await client.stop_code_interpreter_session( + code_interpreter_identifier=_, session_id=_ + ) + await client.stop_code_interpreter_session( + **_request(StopCodeInterpreterSessionInputDict) + ) + await client.stop_code_interpreter_session( + _request(StopCodeInterpreterSessionInput) + ) + await client.stop_code_interpreter_session( + _request(StopCodeInterpreterSessionInputDict) + ) + await client.stop_runtime_session(runtime_session_id=_, agent_runtime_arn=_) + await client.stop_runtime_session(**_request(StopRuntimeSessionInputDict)) + await client.stop_runtime_session(_request(StopRuntimeSessionInput)) + await client.stop_runtime_session(_request(StopRuntimeSessionInputDict)) + await client.update_ab_test(ab_test_id=_) + await client.update_ab_test(**_request(UpdateABTestInputDict)) + await client.update_ab_test(_request(UpdateABTestInput)) + await client.update_ab_test(_request(UpdateABTestInputDict)) + await client.update_browser_stream( + browser_identifier=_, session_id=_, stream_update=_ + ) + await client.update_browser_stream(**_request(UpdateBrowserStreamInputDict)) + await client.update_browser_stream(_request(UpdateBrowserStreamInput)) + await client.update_browser_stream(_request(UpdateBrowserStreamInputDict)) + + +def check_sync_calls(client: BedrockAgentCoreClient) -> None: + pass + client.batch_create_memory_records(memory_id=_, records=_) + client.batch_create_memory_records(**_request(BatchCreateMemoryRecordsInputDict)) + client.batch_create_memory_records(_request(BatchCreateMemoryRecordsInput)) + client.batch_create_memory_records(_request(BatchCreateMemoryRecordsInputDict)) + client.batch_delete_memory_records(memory_id=_, records=_) + client.batch_delete_memory_records(**_request(BatchDeleteMemoryRecordsInputDict)) + client.batch_delete_memory_records(_request(BatchDeleteMemoryRecordsInput)) + client.batch_delete_memory_records(_request(BatchDeleteMemoryRecordsInputDict)) + client.batch_update_memory_records(memory_id=_, records=_) + client.batch_update_memory_records(**_request(BatchUpdateMemoryRecordsInputDict)) + client.batch_update_memory_records(_request(BatchUpdateMemoryRecordsInput)) + client.batch_update_memory_records(_request(BatchUpdateMemoryRecordsInputDict)) + client.complete_resource_token_auth(user_identifier=_, session_uri=_) + client.complete_resource_token_auth(**_request(CompleteResourceTokenAuthInputDict)) + client.complete_resource_token_auth(_request(CompleteResourceTokenAuthInput)) + client.complete_resource_token_auth(_request(CompleteResourceTokenAuthInputDict)) + client.create_ab_test( + name=_, gateway_arn=_, variants=_, evaluation_config=_, role_arn=_ + ) + client.create_ab_test(**_request(CreateABTestInputDict)) + client.create_ab_test(_request(CreateABTestInput)) + client.create_ab_test(_request(CreateABTestInputDict)) + client.create_event(memory_id=_, actor_id=_, event_timestamp=_, payload=_) + client.create_event(**_request(CreateEventInputDict)) + client.create_event(_request(CreateEventInput)) + client.create_event(_request(CreateEventInputDict)) + client.create_payment_instrument( + payment_manager_arn=_, + payment_connector_id=_, + payment_instrument_type=_, + payment_instrument_details=_, + ) + client.create_payment_instrument(**_request(CreatePaymentInstrumentInputDict)) + client.create_payment_instrument(_request(CreatePaymentInstrumentInput)) + client.create_payment_instrument(_request(CreatePaymentInstrumentInputDict)) + client.create_payment_session(payment_manager_arn=_, expiry_time_in_minutes=_) + client.create_payment_session(**_request(CreatePaymentSessionInputDict)) + client.create_payment_session(_request(CreatePaymentSessionInput)) + client.create_payment_session(_request(CreatePaymentSessionInputDict)) + client.delete_ab_test(ab_test_id=_) + client.delete_ab_test(**_request(DeleteABTestInputDict)) + client.delete_ab_test(_request(DeleteABTestInput)) + client.delete_ab_test(_request(DeleteABTestInputDict)) + client.delete_batch_evaluation(batch_evaluation_id=_) + client.delete_batch_evaluation(**_request(DeleteBatchEvaluationInputDict)) + client.delete_batch_evaluation(_request(DeleteBatchEvaluationInput)) + client.delete_batch_evaluation(_request(DeleteBatchEvaluationInputDict)) + client.delete_capacity_provider_session(capacity_provider_id=_, session_id=_) + client.delete_capacity_provider_session( + **_request(DeleteCapacityProviderSessionInputDict) + ) + client.delete_capacity_provider_session( + _request(DeleteCapacityProviderSessionInput) + ) + client.delete_capacity_provider_session( + _request(DeleteCapacityProviderSessionInputDict) + ) + client.delete_event(memory_id=_, session_id=_, event_id=_, actor_id=_) + client.delete_event(**_request(DeleteEventInputDict)) + client.delete_event(_request(DeleteEventInput)) + client.delete_event(_request(DeleteEventInputDict)) + client.delete_memory_record(memory_id=_, memory_record_id=_) + client.delete_memory_record(**_request(DeleteMemoryRecordInputDict)) + client.delete_memory_record(_request(DeleteMemoryRecordInput)) + client.delete_memory_record(_request(DeleteMemoryRecordInputDict)) + client.delete_payment_instrument( + payment_manager_arn=_, payment_connector_id=_, payment_instrument_id=_ + ) + client.delete_payment_instrument(**_request(DeletePaymentInstrumentInputDict)) + client.delete_payment_instrument(_request(DeletePaymentInstrumentInput)) + client.delete_payment_instrument(_request(DeletePaymentInstrumentInputDict)) + client.delete_payment_session(payment_manager_arn=_, payment_session_id=_) + client.delete_payment_session(**_request(DeletePaymentSessionInputDict)) + client.delete_payment_session(_request(DeletePaymentSessionInput)) + client.delete_payment_session(_request(DeletePaymentSessionInputDict)) + client.delete_recommendation(recommendation_id=_) + client.delete_recommendation(**_request(DeleteRecommendationInputDict)) + client.delete_recommendation(_request(DeleteRecommendationInput)) + client.delete_recommendation(_request(DeleteRecommendationInputDict)) + client.evaluate(evaluator_id=_, evaluation_input=_) + client.evaluate(**_request(EvaluateInputDict)) + client.evaluate(_request(EvaluateInput)) + client.evaluate(_request(EvaluateInputDict)) + client.get_ab_test(ab_test_id=_) + client.get_ab_test(**_request(GetABTestInputDict)) + client.get_ab_test(_request(GetABTestInput)) + client.get_ab_test(_request(GetABTestInputDict)) + client.get_agent_card(agent_runtime_arn=_) + client.get_agent_card(**_request(GetAgentCardInputDict)) + client.get_agent_card(_request(GetAgentCardInput)) + client.get_agent_card(_request(GetAgentCardInputDict)) + client.get_batch_evaluation(batch_evaluation_id=_) + client.get_batch_evaluation(**_request(GetBatchEvaluationInputDict)) + client.get_batch_evaluation(_request(GetBatchEvaluationInput)) + client.get_batch_evaluation(_request(GetBatchEvaluationInputDict)) + client.get_browser_session(browser_identifier=_, session_id=_) + client.get_browser_session(**_request(GetBrowserSessionInputDict)) + client.get_browser_session(_request(GetBrowserSessionInput)) + client.get_browser_session(_request(GetBrowserSessionInputDict)) + client.get_code_interpreter_session(code_interpreter_identifier=_, session_id=_) + client.get_code_interpreter_session(**_request(GetCodeInterpreterSessionInputDict)) + client.get_code_interpreter_session(_request(GetCodeInterpreterSessionInput)) + client.get_code_interpreter_session(_request(GetCodeInterpreterSessionInputDict)) + client.get_event(memory_id=_, session_id=_, actor_id=_, event_id=_) + client.get_event(**_request(GetEventInputDict)) + client.get_event(_request(GetEventInput)) + client.get_event(_request(GetEventInputDict)) + client.get_memory_record(memory_id=_, memory_record_id=_) + client.get_memory_record(**_request(GetMemoryRecordInputDict)) + client.get_memory_record(_request(GetMemoryRecordInput)) + client.get_memory_record(_request(GetMemoryRecordInputDict)) + client.get_payment_instrument(payment_manager_arn=_, payment_instrument_id=_) + client.get_payment_instrument(**_request(GetPaymentInstrumentInputDict)) + client.get_payment_instrument(_request(GetPaymentInstrumentInput)) + client.get_payment_instrument(_request(GetPaymentInstrumentInputDict)) + client.get_payment_instrument_balance( + payment_manager_arn=_, + payment_connector_id=_, + payment_instrument_id=_, + chain=_, + token=_, + ) + client.get_payment_instrument_balance( + **_request(GetPaymentInstrumentBalanceInputDict) + ) + client.get_payment_instrument_balance(_request(GetPaymentInstrumentBalanceInput)) + client.get_payment_instrument_balance( + _request(GetPaymentInstrumentBalanceInputDict) + ) + client.get_payment_session(payment_manager_arn=_, payment_session_id=_) + client.get_payment_session(**_request(GetPaymentSessionInputDict)) + client.get_payment_session(_request(GetPaymentSessionInput)) + client.get_payment_session(_request(GetPaymentSessionInputDict)) + client.get_recommendation(recommendation_id=_) + client.get_recommendation(**_request(GetRecommendationInputDict)) + client.get_recommendation(_request(GetRecommendationInput)) + client.get_recommendation(_request(GetRecommendationInputDict)) + client.get_resource_api_key( + workload_identity_token=_, resource_credential_provider_name=_ + ) + client.get_resource_api_key(**_request(GetResourceApiKeyInputDict)) + client.get_resource_api_key(_request(GetResourceApiKeyInput)) + client.get_resource_api_key(_request(GetResourceApiKeyInputDict)) + client.get_resource_oauth2_token( + workload_identity_token=_, + resource_credential_provider_name=_, + scopes=_, + oauth2_flow=_, + ) + client.get_resource_oauth2_token(**_request(GetResourceOauth2TokenInputDict)) + client.get_resource_oauth2_token(_request(GetResourceOauth2TokenInput)) + client.get_resource_oauth2_token(_request(GetResourceOauth2TokenInputDict)) + client.get_resource_payment_token( + workload_identity_token=_, + resource_credential_provider_name=_, + payment_token_request=_, + ) + client.get_resource_payment_token(**_request(GetResourcePaymentTokenInputDict)) + client.get_resource_payment_token(_request(GetResourcePaymentTokenInput)) + client.get_resource_payment_token(_request(GetResourcePaymentTokenInputDict)) + client.get_workload_access_token(workload_name=_) + client.get_workload_access_token(**_request(GetWorkloadAccessTokenInputDict)) + client.get_workload_access_token(_request(GetWorkloadAccessTokenInput)) + client.get_workload_access_token(_request(GetWorkloadAccessTokenInputDict)) + client.get_workload_access_token_for_jwt(workload_name=_, user_token=_) + client.get_workload_access_token_for_jwt( + **_request(GetWorkloadAccessTokenForJWTInputDict) + ) + client.get_workload_access_token_for_jwt( + _request(GetWorkloadAccessTokenForJWTInput) + ) + client.get_workload_access_token_for_jwt( + _request(GetWorkloadAccessTokenForJWTInputDict) + ) + client.get_workload_access_token_for_user_id(workload_name=_, user_id=_) + client.get_workload_access_token_for_user_id( + **_request(GetWorkloadAccessTokenForUserIdInputDict) + ) + client.get_workload_access_token_for_user_id( + _request(GetWorkloadAccessTokenForUserIdInput) + ) + client.get_workload_access_token_for_user_id( + _request(GetWorkloadAccessTokenForUserIdInputDict) + ) + client.ingest_data(memory_id=_, source=_, content_timestamp=_, actor_id=_) + client.ingest_data(**_request(IngestDataInputDict)) + client.ingest_data(_request(IngestDataInput)) + client.ingest_data(_request(IngestDataInputDict)) + client.invoke_agent_runtime(agent_runtime_arn=_, payload=_) + client.invoke_agent_runtime(**_request(InvokeAgentRuntimeInputDict)) + client.invoke_agent_runtime(_request(InvokeAgentRuntimeInput)) + client.invoke_agent_runtime(_request(InvokeAgentRuntimeInputDict)) + client.invoke_browser(browser_identifier=_, session_id=_, action=_) + client.invoke_browser(**_request(InvokeBrowserInputDict)) + client.invoke_browser(_request(InvokeBrowserInput)) + client.invoke_browser(_request(InvokeBrowserInputDict)) + client.invoke_web_search(web_search_id=_, search_query=_) + client.invoke_web_search(**_request(InvokeWebSearchInputDict)) + client.invoke_web_search(_request(InvokeWebSearchInput)) + client.invoke_web_search(_request(InvokeWebSearchInputDict)) + client.list_ab_tests() + client.list_ab_tests(**_request(ListABTestsInputDict)) + client.list_ab_tests(_request(ListABTestsInput)) + client.list_ab_tests(_request(ListABTestsInputDict)) + client.list_actors(memory_id=_) + client.list_actors(**_request(ListActorsInputDict)) + client.list_actors(_request(ListActorsInput)) + client.list_actors(_request(ListActorsInputDict)) + client.list_batch_evaluations() + client.list_batch_evaluations(**_request(ListBatchEvaluationsInputDict)) + client.list_batch_evaluations(_request(ListBatchEvaluationsInput)) + client.list_batch_evaluations(_request(ListBatchEvaluationsInputDict)) + client.list_browser_sessions(browser_identifier=_) + client.list_browser_sessions(**_request(ListBrowserSessionsInputDict)) + client.list_browser_sessions(_request(ListBrowserSessionsInput)) + client.list_browser_sessions(_request(ListBrowserSessionsInputDict)) + client.list_code_interpreter_sessions(code_interpreter_identifier=_) + client.list_code_interpreter_sessions( + **_request(ListCodeInterpreterSessionsInputDict) + ) + client.list_code_interpreter_sessions(_request(ListCodeInterpreterSessionsInput)) + client.list_code_interpreter_sessions( + _request(ListCodeInterpreterSessionsInputDict) + ) + client.list_events(memory_id=_, session_id=_, actor_id=_) + client.list_events(**_request(ListEventsInputDict)) + client.list_events(_request(ListEventsInput)) + client.list_events(_request(ListEventsInputDict)) + client.list_memory_extraction_jobs(memory_id=_) + client.list_memory_extraction_jobs(**_request(ListMemoryExtractionJobsInputDict)) + client.list_memory_extraction_jobs(_request(ListMemoryExtractionJobsInput)) + client.list_memory_extraction_jobs(_request(ListMemoryExtractionJobsInputDict)) + client.list_memory_records(memory_id=_) + client.list_memory_records(**_request(ListMemoryRecordsInputDict)) + client.list_memory_records(_request(ListMemoryRecordsInput)) + client.list_memory_records(_request(ListMemoryRecordsInputDict)) + client.list_payment_instruments(payment_manager_arn=_) + client.list_payment_instruments(**_request(ListPaymentInstrumentsInputDict)) + client.list_payment_instruments(_request(ListPaymentInstrumentsInput)) + client.list_payment_instruments(_request(ListPaymentInstrumentsInputDict)) + client.list_payment_sessions(payment_manager_arn=_) + client.list_payment_sessions(**_request(ListPaymentSessionsInputDict)) + client.list_payment_sessions(_request(ListPaymentSessionsInput)) + client.list_payment_sessions(_request(ListPaymentSessionsInputDict)) + client.list_recommendations() + client.list_recommendations(**_request(ListRecommendationsInputDict)) + client.list_recommendations(_request(ListRecommendationsInput)) + client.list_recommendations(_request(ListRecommendationsInputDict)) + client.list_sessions(memory_id=_, actor_id=_) + client.list_sessions(**_request(ListSessionsInputDict)) + client.list_sessions(_request(ListSessionsInput)) + client.list_sessions(_request(ListSessionsInputDict)) + client.process_payment( + payment_manager_arn=_, + payment_session_id=_, + payment_instrument_id=_, + payment_type=_, + payment_input=_, + ) + client.process_payment(**_request(ProcessPaymentInputDict)) + client.process_payment(_request(ProcessPaymentInput)) + client.process_payment(_request(ProcessPaymentInputDict)) + client.retrieve_memory_records(memory_id=_, search_criteria=_) + client.retrieve_memory_records(**_request(RetrieveMemoryRecordsInputDict)) + client.retrieve_memory_records(_request(RetrieveMemoryRecordsInput)) + client.retrieve_memory_records(_request(RetrieveMemoryRecordsInputDict)) + client.save_browser_session_profile( + profile_identifier=_, browser_identifier=_, session_id=_ + ) + client.save_browser_session_profile(**_request(SaveBrowserSessionProfileInputDict)) + client.save_browser_session_profile(_request(SaveBrowserSessionProfileInput)) + client.save_browser_session_profile(_request(SaveBrowserSessionProfileInputDict)) + client.search_registry_records(search_query=_, registry_ids=_) + client.search_registry_records(**_request(SearchRegistryRecordsInputDict)) + client.search_registry_records(_request(SearchRegistryRecordsInput)) + client.search_registry_records(_request(SearchRegistryRecordsInputDict)) + client.start_batch_evaluation(batch_evaluation_name=_, data_source_config=_) + client.start_batch_evaluation(**_request(StartBatchEvaluationInputDict)) + client.start_batch_evaluation(_request(StartBatchEvaluationInput)) + client.start_batch_evaluation(_request(StartBatchEvaluationInputDict)) + client.start_browser_session(browser_identifier=_) + client.start_browser_session(**_request(StartBrowserSessionInputDict)) + client.start_browser_session(_request(StartBrowserSessionInput)) + client.start_browser_session(_request(StartBrowserSessionInputDict)) + client.start_code_interpreter_session(code_interpreter_identifier=_) + client.start_code_interpreter_session( + **_request(StartCodeInterpreterSessionInputDict) + ) + client.start_code_interpreter_session(_request(StartCodeInterpreterSessionInput)) + client.start_code_interpreter_session( + _request(StartCodeInterpreterSessionInputDict) + ) + client.start_memory_extraction_job(memory_id=_, extraction_job=_) + client.start_memory_extraction_job(**_request(StartMemoryExtractionJobInputDict)) + client.start_memory_extraction_job(_request(StartMemoryExtractionJobInput)) + client.start_memory_extraction_job(_request(StartMemoryExtractionJobInputDict)) + client.start_recommendation(name=_, type=_, recommendation_config=_) + client.start_recommendation(**_request(StartRecommendationInputDict)) + client.start_recommendation(_request(StartRecommendationInput)) + client.start_recommendation(_request(StartRecommendationInputDict)) + client.stop_batch_evaluation(batch_evaluation_id=_) + client.stop_batch_evaluation(**_request(StopBatchEvaluationInputDict)) + client.stop_batch_evaluation(_request(StopBatchEvaluationInput)) + client.stop_batch_evaluation(_request(StopBatchEvaluationInputDict)) + client.stop_browser_session(browser_identifier=_, session_id=_) + client.stop_browser_session(**_request(StopBrowserSessionInputDict)) + client.stop_browser_session(_request(StopBrowserSessionInput)) + client.stop_browser_session(_request(StopBrowserSessionInputDict)) + client.stop_code_interpreter_session(code_interpreter_identifier=_, session_id=_) + client.stop_code_interpreter_session( + **_request(StopCodeInterpreterSessionInputDict) + ) + client.stop_code_interpreter_session(_request(StopCodeInterpreterSessionInput)) + client.stop_code_interpreter_session(_request(StopCodeInterpreterSessionInputDict)) + client.stop_runtime_session(runtime_session_id=_, agent_runtime_arn=_) + client.stop_runtime_session(**_request(StopRuntimeSessionInputDict)) + client.stop_runtime_session(_request(StopRuntimeSessionInput)) + client.stop_runtime_session(_request(StopRuntimeSessionInputDict)) + client.update_ab_test(ab_test_id=_) + client.update_ab_test(**_request(UpdateABTestInputDict)) + client.update_ab_test(_request(UpdateABTestInput)) + client.update_ab_test(_request(UpdateABTestInputDict)) + client.update_browser_stream(browser_identifier=_, session_id=_, stream_update=_) + client.update_browser_stream(**_request(UpdateBrowserStreamInputDict)) + client.update_browser_stream(_request(UpdateBrowserStreamInput)) + client.update_browser_stream(_request(UpdateBrowserStreamInputDict)) diff --git a/clients/aws-sdk-bedrock-data-automation-runtime/pyproject.toml b/clients/aws-sdk-bedrock-data-automation-runtime/pyproject.toml index fdf9d3df5..3e6c40402 100644 --- a/clients/aws-sdk-bedrock-data-automation-runtime/pyproject.toml +++ b/clients/aws-sdk-bedrock-data-automation-runtime/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/aio/client.py b/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/aio/client.py index 9470ddb20..ed8574b0f 100644 --- a/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/aio/client.py +++ b/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,17 +20,11 @@ if TYPE_CHECKING: from ..models import ( - GetDataAutomationStatusInput, GetDataAutomationStatusOutput, - InvokeDataAutomationAsyncInput, InvokeDataAutomationAsyncOutput, - InvokeDataAutomationInput, InvokeDataAutomationOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, ) @@ -43,17 +37,30 @@ class AsyncBedrockDataAutomationRuntimeClient( ): """Amazon Bedrock Data Automation Runtime""" - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def get_data_automation_status( - self, input: GetDataAutomationStatusInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDataAutomationStatusInput + | _models.GetDataAutomationStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAutomationStatusOutput: ... + + @_overload + async def get_data_automation_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationStatusInputDict], ) -> GetDataAutomationStatusOutput: """ API used to get data automation status. Args: - input: - An instance of `GetDataAutomationStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -63,19 +70,39 @@ async def get_data_automation_status( Returns: An instance of `GetDataAutomationStatusOutput`. """ + + async def get_data_automation_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationStatusOutput: return await self._invoke( - input, _models.GET_DATA_AUTOMATION_STATUS, [], plugins + self._select_input(_models.GET_DATA_AUTOMATION_STATUS, args, kwargs), + _models.GET_DATA_AUTOMATION_STATUS, + [], + plugins, ) + @_overload async def invoke_data_automation( - self, input: InvokeDataAutomationInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeDataAutomationInput + | _models.InvokeDataAutomationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeDataAutomationOutput: ... + + @_overload + async def invoke_data_automation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeDataAutomationInputDict], ) -> InvokeDataAutomationOutput: """ Sync API: Invoke data automation. Args: - input: - An instance of `InvokeDataAutomationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -85,17 +112,39 @@ async def invoke_data_automation( Returns: An instance of `InvokeDataAutomationOutput`. """ - return await self._invoke(input, _models.INVOKE_DATA_AUTOMATION, [], plugins) + async def invoke_data_automation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeDataAutomationOutput: + return await self._invoke( + self._select_input(_models.INVOKE_DATA_AUTOMATION, args, kwargs), + _models.INVOKE_DATA_AUTOMATION, + [], + plugins, + ) + + @_overload async def invoke_data_automation_async( - self, input: InvokeDataAutomationAsyncInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeDataAutomationAsyncInput + | _models.InvokeDataAutomationAsyncInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeDataAutomationAsyncOutput: ... + + @_overload + async def invoke_data_automation_async( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeDataAutomationAsyncInputDict], ) -> InvokeDataAutomationAsyncOutput: """ Async API: Invoke data automation. Args: - input: - An instance of `InvokeDataAutomationAsyncInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -105,19 +154,39 @@ async def invoke_data_automation_async( Returns: An instance of `InvokeDataAutomationAsyncOutput`. """ + + async def invoke_data_automation_async( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeDataAutomationAsyncOutput: return await self._invoke( - input, _models.INVOKE_DATA_AUTOMATION_ASYNC, [], plugins + self._select_input(_models.INVOKE_DATA_AUTOMATION_ASYNC, args, kwargs), + _models.INVOKE_DATA_AUTOMATION_ASYNC, + [], + plugins, ) + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List tags for an Amazon Bedrock Data Automation resource Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -127,17 +196,38 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + async def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Tag an Amazon Bedrock Data Automation resource Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -147,17 +237,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Untag an Amazon Bedrock Data Automation resource Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -167,7 +278,16 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) async def _new_config(self) -> AsyncBedrockDataAutomationRuntimeConfig: return await AsyncBedrockDataAutomationRuntimeConfig.resolve() diff --git a/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/client.py b/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/client.py index 79d507f56..bc56a2158 100644 --- a/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/client.py +++ b/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,17 +20,11 @@ if TYPE_CHECKING: from .models import ( - GetDataAutomationStatusInput, GetDataAutomationStatusOutput, - InvokeDataAutomationAsyncInput, InvokeDataAutomationAsyncOutput, - InvokeDataAutomationInput, InvokeDataAutomationOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, ) @@ -41,17 +35,30 @@ class BedrockDataAutomationRuntimeClient(Client[BedrockDataAutomationRuntimeConfig]): """Amazon Bedrock Data Automation Runtime""" - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def get_data_automation_status( - self, input: GetDataAutomationStatusInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDataAutomationStatusInput + | _models.GetDataAutomationStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAutomationStatusOutput: ... + + @_overload + def get_data_automation_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationStatusInputDict], ) -> GetDataAutomationStatusOutput: """ API used to get data automation status. Args: - input: - An instance of `GetDataAutomationStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -61,17 +68,39 @@ def get_data_automation_status( Returns: An instance of `GetDataAutomationStatusOutput`. """ - return self._invoke(input, _models.GET_DATA_AUTOMATION_STATUS, [], plugins) + def get_data_automation_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationStatusOutput: + return self._invoke( + self._select_input(_models.GET_DATA_AUTOMATION_STATUS, args, kwargs), + _models.GET_DATA_AUTOMATION_STATUS, + [], + plugins, + ) + + @_overload + def invoke_data_automation( + self, + request: _models.InvokeDataAutomationInput + | _models.InvokeDataAutomationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeDataAutomationOutput: ... + + @_overload def invoke_data_automation( - self, input: InvokeDataAutomationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeDataAutomationInputDict], ) -> InvokeDataAutomationOutput: """ Sync API: Invoke data automation. Args: - input: - An instance of `InvokeDataAutomationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -81,17 +110,39 @@ def invoke_data_automation( Returns: An instance of `InvokeDataAutomationOutput`. """ - return self._invoke(input, _models.INVOKE_DATA_AUTOMATION, [], plugins) + def invoke_data_automation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeDataAutomationOutput: + return self._invoke( + self._select_input(_models.INVOKE_DATA_AUTOMATION, args, kwargs), + _models.INVOKE_DATA_AUTOMATION, + [], + plugins, + ) + + @_overload + def invoke_data_automation_async( + self, + request: _models.InvokeDataAutomationAsyncInput + | _models.InvokeDataAutomationAsyncInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeDataAutomationAsyncOutput: ... + + @_overload def invoke_data_automation_async( - self, input: InvokeDataAutomationAsyncInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeDataAutomationAsyncInputDict], ) -> InvokeDataAutomationAsyncOutput: """ Async API: Invoke data automation. Args: - input: - An instance of `InvokeDataAutomationAsyncInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -101,17 +152,39 @@ def invoke_data_automation_async( Returns: An instance of `InvokeDataAutomationAsyncOutput`. """ - return self._invoke(input, _models.INVOKE_DATA_AUTOMATION_ASYNC, [], plugins) + def invoke_data_automation_async( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeDataAutomationAsyncOutput: + return self._invoke( + self._select_input(_models.INVOKE_DATA_AUTOMATION_ASYNC, args, kwargs), + _models.INVOKE_DATA_AUTOMATION_ASYNC, + [], + plugins, + ) + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List tags for an Amazon Bedrock Data Automation resource Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -121,17 +194,38 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Tag an Amazon Bedrock Data Automation resource Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -141,17 +235,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Untag an Amazon Bedrock Data Automation resource Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -161,7 +276,16 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) def _new_config(self) -> BedrockDataAutomationRuntimeConfig: return BedrockDataAutomationRuntimeConfig.resolve() diff --git a/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/models.pyi b/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/models.pyi index 5d12a3285..d10be1291 100644 --- a/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/models.pyi +++ b/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -45,6 +46,14 @@ class AssetProcessingConfiguration(_SerdeShape): video: VideoAssetProcessingConfiguration | None = ... """Video asset processing configuration""" +class AssetProcessingConfigurationDict(TypedDict, total=False): + """Dictionary form of `AssetProcessingConfiguration`.""" + + video: ( + VideoAssetProcessingConfiguration | VideoAssetProcessingConfigurationDict | None + ) + """Video asset processing configuration""" + class AutomationJobStatus(UnknownEnumMixin, StrEnum): """List of status supported by automation jobs""" @@ -65,6 +74,16 @@ class Blueprint(_SerdeShape): stage: str | None = ... """Stage of blueprint.""" +class BlueprintDict(TypedDict, total=False): + """Dictionary form of `Blueprint`.""" + + blueprint_arn: Required[str] + """Arn of blueprint.""" + version: str | None + """Version of blueprint.""" + stage: str | None + """Stage of blueprint.""" + class BlueprintStage(UnknownEnumMixin, StrEnum): """Blueprint stage enum.""" @@ -86,6 +105,14 @@ class DataAutomationConfiguration(_SerdeShape): stage: str | None = ... """Data automation stage.""" +class DataAutomationConfigurationDict(TypedDict, total=False): + """Dictionary form of `DataAutomationConfiguration`.""" + + data_automation_project_arn: Required[str] + """Data automation project arn.""" + stage: str | None + """Data automation stage.""" + class DataAutomationStage(UnknownEnumMixin, StrEnum): """Data automation stage.""" @@ -101,6 +128,14 @@ class EncryptionConfiguration(_SerdeShape): kms_encryption_context: dict[str, str] | None = ... """KMS encryption context.""" +class EncryptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `EncryptionConfiguration`.""" + + kms_key_id: Required[str] + """Customer KMS key used for encryption""" + kms_encryption_context: Mapping[str, str] | None + """KMS encryption context.""" + @dataclass(kw_only=True) class EventBridgeConfiguration(_SerdeShape): """Event bridge configuration.""" @@ -108,6 +143,12 @@ class EventBridgeConfiguration(_SerdeShape): event_bridge_enabled: bool """Event bridge flag.""" +class EventBridgeConfigurationDict(TypedDict, total=False): + """Dictionary form of `EventBridgeConfiguration`.""" + + event_bridge_enabled: Required[bool] + """Event bridge flag.""" + @dataclass(kw_only=True) class GetDataAutomationStatusInput(_SerdeShape): """Structure for request of GetDataAutomationStatus API.""" @@ -115,6 +156,12 @@ class GetDataAutomationStatusInput(_SerdeShape): invocation_arn: str | None = ... """Invocation arn.""" +class GetDataAutomationStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetDataAutomationStatusInput`.""" + + invocation_arn: Required[str] + """Invocation arn.""" + @dataclass(kw_only=True) class GetDataAutomationStatusOutput(_SerdeShape): """Response of GetDataAutomationStatus API.""" @@ -150,6 +197,16 @@ class InputConfiguration(_SerdeShape): asset_processing_configuration: AssetProcessingConfiguration | None = ... """Asset processing configuration""" +class InputConfigurationDict(TypedDict, total=False): + """Dictionary form of `InputConfiguration`.""" + + s3_uri: Required[str] + """S3 uri.""" + asset_processing_configuration: ( + AssetProcessingConfiguration | AssetProcessingConfigurationDict | None + ) + """Asset processing configuration""" + @dataclass(kw_only=True) class InternalServerException(ServiceError, _SerdeShape): """This exception is for any internal un-expected service errors.""" @@ -185,6 +242,34 @@ class InvokeDataAutomationAsyncInput(_SerdeShape): tags: list[Tag] | None = ... """List of tags.""" +class InvokeDataAutomationAsyncInputDict(TypedDict, total=False): + """Dictionary form of `InvokeDataAutomationAsyncInput`.""" + + client_token: str | None + """Idempotency token. This field is autopopulated if not provided.""" + input_configuration: Required[InputConfiguration | InputConfigurationDict] + """Input configuration.""" + output_configuration: Required[OutputConfiguration | OutputConfigurationDict] + """Output configuration.""" + data_automation_configuration: ( + DataAutomationConfiguration | DataAutomationConfigurationDict | None + ) + """Data automation configuration.""" + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """Encryption configuration.""" + notification_configuration: ( + NotificationConfiguration | NotificationConfigurationDict | None + ) + """Notification configuration.""" + blueprints: Sequence[Blueprint | BlueprintDict] | None + """Blueprint list.""" + data_automation_profile_arn: Required[str] + """Data automation profile ARN""" + tags: Sequence[Tag | TagDict] | None + """List of tags.""" + @dataclass(kw_only=True) class InvokeDataAutomationAsyncOutput(_SerdeShape): """Invoke Data Automation Async Response""" @@ -216,6 +301,26 @@ class InvokeDataAutomationInput(_SerdeShape): output_configuration: OutputConfiguration | None = ... """Output configuration.""" +class InvokeDataAutomationInputDict(TypedDict, total=False): + """Dictionary form of `InvokeDataAutomationInput`.""" + + input_configuration: Required[SyncInputConfiguration | SyncInputConfigurationDict] + """Input configuration.""" + data_automation_configuration: ( + DataAutomationConfiguration | DataAutomationConfigurationDict | None + ) + """Data automation configuration.""" + blueprints: Sequence[Blueprint | BlueprintDict] | None + """Blueprint list.""" + data_automation_profile_arn: Required[str] + """Data automation profile ARN""" + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """Encryption configuration.""" + output_configuration: OutputConfiguration | OutputConfigurationDict | None + """Output configuration.""" + @dataclass(kw_only=True) class InvokeDataAutomationOutput(_SerdeShape): """Invoke Data Automation Response""" @@ -241,6 +346,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """ARN of a taggable resource""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """ARN of a taggable resource""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -262,6 +373,14 @@ class NotificationConfiguration(_SerdeShape): event_bridge_configuration: EventBridgeConfiguration """Event bridge configuration.""" +class NotificationConfigurationDict(TypedDict, total=False): + """Dictionary form of `NotificationConfiguration`.""" + + event_bridge_configuration: Required[ + EventBridgeConfiguration | EventBridgeConfigurationDict + ] + """Event bridge configuration.""" + @dataclass(kw_only=True) class OutputConfiguration(_SerdeShape): """Output configuration.""" @@ -269,6 +388,12 @@ class OutputConfiguration(_SerdeShape): s3_uri: str """S3 uri.""" +class OutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `OutputConfiguration`.""" + + s3_uri: Required[str] + """S3 uri.""" + @dataclass(kw_only=True) class OutputSegment(_SerdeShape): """Results for an output segment""" @@ -336,6 +461,14 @@ class SyncInputConfiguration(_SerdeShape): s3_uri: str | None = ... """S3 URI of the input data""" +class SyncInputConfigurationDict(TypedDict, total=False): + """Dictionary form of `SyncInputConfiguration`.""" + + bytes_: bytes | None + """Input data as bytes""" + s3_uri: str | None + """S3 URI of the input data""" + @dataclass(kw_only=True) class Tag(_SerdeShape): """Key value pair of a tag""" @@ -348,6 +481,17 @@ class Tag(_SerdeShape): ``{=html}. """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """Defines the context of the tag.""" + value: Required[str] + """ + Defines the value within the context. e.g. + ``{=html}. + """ + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -357,6 +501,14 @@ class TagResourceInput(_SerdeShape): tags: list[Tag] | None = ... """List of tags""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """ARN of a taggable resource""" + tags: Required[Sequence[Tag | TagDict]] + """List of tags""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -390,6 +542,14 @@ class TimestampSegment(_SerdeShape): end_time_millis: int """End timestamp in milliseconds""" +class TimestampSegmentDict(TypedDict, total=False): + """Dictionary form of `TimestampSegment`.""" + + start_time_millis: Required[int] + """Start timestamp in milliseconds""" + end_time_millis: Required[int] + """End timestamp in milliseconds""" + @dataclass(kw_only=True) class UntagResourceInput(_SerdeShape): """Dataclass for UntagResourceInput structure.""" @@ -399,6 +559,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """List of tag keys""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """ARN of a taggable resource""" + tag_keys: Required[Sequence[str]] + """List of tag keys""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -430,6 +598,14 @@ class VideoAssetProcessingConfiguration(_SerdeShape): segment_configuration: VideoSegmentConfiguration | None = ... """Delimits the segment of the input that will be processed""" +class VideoAssetProcessingConfigurationDict(TypedDict, total=False): + """Dictionary form of `VideoAssetProcessingConfiguration`.""" + + segment_configuration: ( + VideoSegmentConfiguration | VideoSegmentConfigurationDict | None + ) + """Delimits the segment of the input that will be processed""" + @dataclass class VideoSegmentConfigurationTimestampSegment(_SerdeShape): """Timestamp segment""" @@ -456,6 +632,16 @@ class _VideoSegmentConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> VideoSegmentConfiguration: ... +class VideoSegmentConfigurationTimestampSegmentDict(TypedDict): + timestamp_segment: TimestampSegment | TimestampSegmentDict + """Timestamp segment""" + +VideoSegmentConfigurationDict = Union[VideoSegmentConfigurationTimestampSegmentDict] +""" +Dictionary form of `VideoSegmentConfiguration`, setting exactly one +variant. +""" + GET_DATA_AUTOMATION_STATUS: APIOperation[ GetDataAutomationStatusInput, GetDataAutomationStatusOutput ] diff --git a/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/py.typed b/clients/aws-sdk-bedrock-data-automation-runtime/src/aws_sdk_bedrock_data_automation_runtime/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-bedrock-data-automation-runtime/tests/_typecheck.py b/clients/aws-sdk-bedrock-data-automation-runtime/tests/_typecheck.py index 624eea62f..d84779c60 100644 --- a/clients/aws-sdk-bedrock-data-automation-runtime/tests/_typecheck.py +++ b/clients/aws-sdk-bedrock-data-automation-runtime/tests/_typecheck.py @@ -2,37 +2,63 @@ from typing import Any +from aws_sdk_bedrock_data_automation_runtime.aio.client import ( + AsyncBedrockDataAutomationRuntimeClient, +) +from aws_sdk_bedrock_data_automation_runtime.client import ( + BedrockDataAutomationRuntimeClient, +) from aws_sdk_bedrock_data_automation_runtime.models import ( AssetProcessingConfiguration, + AssetProcessingConfigurationDict, Blueprint, + BlueprintDict, DataAutomationConfiguration, + DataAutomationConfigurationDict, EncryptionConfiguration, + EncryptionConfigurationDict, EventBridgeConfiguration, + EventBridgeConfigurationDict, GetDataAutomationStatusInput, + GetDataAutomationStatusInputDict, GetDataAutomationStatusOutput, InputConfiguration, + InputConfigurationDict, InvokeDataAutomationAsyncInput, + InvokeDataAutomationAsyncInputDict, InvokeDataAutomationAsyncOutput, InvokeDataAutomationInput, + InvokeDataAutomationInputDict, InvokeDataAutomationOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, NotificationConfiguration, + NotificationConfigurationDict, OutputConfiguration, + OutputConfigurationDict, OutputSegment, SyncInputConfiguration, + SyncInputConfigurationDict, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TimestampSegment, + TimestampSegmentDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, VideoAssetProcessingConfiguration, + VideoAssetProcessingConfigurationDict, + VideoSegmentConfigurationDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -61,3 +87,101 @@ UntagResourceInput() UntagResourceOutput() VideoAssetProcessingConfiguration() +_params_0: AssetProcessingConfigurationDict = {} +_params_1: BlueprintDict = {"blueprint_arn": _} +_params_2: DataAutomationConfigurationDict = {"data_automation_project_arn": _} +_params_3: EncryptionConfigurationDict = {"kms_key_id": _} +_params_4: EventBridgeConfigurationDict = {"event_bridge_enabled": _} +_params_5: GetDataAutomationStatusInputDict = {"invocation_arn": _} +_params_6: InputConfigurationDict = {"s3_uri": _} +_params_7: InvokeDataAutomationAsyncInputDict = { + "input_configuration": _, + "output_configuration": _, + "data_automation_profile_arn": _, +} +_params_8: InvokeDataAutomationInputDict = { + "input_configuration": _, + "data_automation_profile_arn": _, +} +_params_9: ListTagsForResourceInputDict = {"resource_arn": _} +_params_10: NotificationConfigurationDict = {"event_bridge_configuration": _} +_params_11: OutputConfigurationDict = {"s3_uri": _} +_params_12: SyncInputConfigurationDict = {} +_params_13: TagDict = {"key": _, "value": _} +_params_14: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_15: TimestampSegmentDict = {"start_time_millis": _, "end_time_millis": _} +_params_16: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_17: VideoAssetProcessingConfigurationDict = {} +_params_18: VideoSegmentConfigurationDict = {"timestamp_segment": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncBedrockDataAutomationRuntimeClient) -> None: + pass + await client.get_data_automation_status(invocation_arn=_) + await client.get_data_automation_status( + **_request(GetDataAutomationStatusInputDict) + ) + await client.get_data_automation_status(_request(GetDataAutomationStatusInput)) + await client.get_data_automation_status(_request(GetDataAutomationStatusInputDict)) + await client.invoke_data_automation( + input_configuration=_, data_automation_profile_arn=_ + ) + await client.invoke_data_automation(**_request(InvokeDataAutomationInputDict)) + await client.invoke_data_automation(_request(InvokeDataAutomationInput)) + await client.invoke_data_automation(_request(InvokeDataAutomationInputDict)) + await client.invoke_data_automation_async( + input_configuration=_, output_configuration=_, data_automation_profile_arn=_ + ) + await client.invoke_data_automation_async( + **_request(InvokeDataAutomationAsyncInputDict) + ) + await client.invoke_data_automation_async(_request(InvokeDataAutomationAsyncInput)) + await client.invoke_data_automation_async( + _request(InvokeDataAutomationAsyncInputDict) + ) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + + +def check_sync_calls(client: BedrockDataAutomationRuntimeClient) -> None: + pass + client.get_data_automation_status(invocation_arn=_) + client.get_data_automation_status(**_request(GetDataAutomationStatusInputDict)) + client.get_data_automation_status(_request(GetDataAutomationStatusInput)) + client.get_data_automation_status(_request(GetDataAutomationStatusInputDict)) + client.invoke_data_automation(input_configuration=_, data_automation_profile_arn=_) + client.invoke_data_automation(**_request(InvokeDataAutomationInputDict)) + client.invoke_data_automation(_request(InvokeDataAutomationInput)) + client.invoke_data_automation(_request(InvokeDataAutomationInputDict)) + client.invoke_data_automation_async( + input_configuration=_, output_configuration=_, data_automation_profile_arn=_ + ) + client.invoke_data_automation_async(**_request(InvokeDataAutomationAsyncInputDict)) + client.invoke_data_automation_async(_request(InvokeDataAutomationAsyncInput)) + client.invoke_data_automation_async(_request(InvokeDataAutomationAsyncInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) diff --git a/clients/aws-sdk-bedrock-data-automation/pyproject.toml b/clients/aws-sdk-bedrock-data-automation/pyproject.toml index 386aad524..1ded113d0 100644 --- a/clients/aws-sdk-bedrock-data-automation/pyproject.toml +++ b/clients/aws-sdk-bedrock-data-automation/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/_private/schemas.py b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/_private/schemas.py index 0e66ec589..45e98a9b9 100644 --- a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/_private/schemas.py +++ b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/_private/schemas.py @@ -275,7 +275,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/aio/client.py b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/aio/client.py index 6a23e2b26..55aaca0de 100644 --- a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/aio/client.py +++ b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,59 +20,32 @@ if TYPE_CHECKING: from ..models import ( - CopyBlueprintStageInput, CopyBlueprintStageOutput, - CreateBlueprintInput, CreateBlueprintOutput, - CreateBlueprintVersionInput, CreateBlueprintVersionOutput, - CreateDataAutomationLibraryInput, CreateDataAutomationLibraryOutput, - CreateDataAutomationProjectInput, CreateDataAutomationProjectOutput, - DeleteBlueprintInput, DeleteBlueprintOutput, - DeleteDataAutomationLibraryInput, DeleteDataAutomationLibraryOutput, - DeleteDataAutomationProjectInput, DeleteDataAutomationProjectOutput, - GetBlueprintInput, - GetBlueprintOptimizationStatusInput, GetBlueprintOptimizationStatusOutput, GetBlueprintOutput, - GetDataAutomationLibraryEntityInput, GetDataAutomationLibraryEntityOutput, - GetDataAutomationLibraryIngestionJobInput, GetDataAutomationLibraryIngestionJobOutput, - GetDataAutomationLibraryInput, GetDataAutomationLibraryOutput, - GetDataAutomationProjectInput, GetDataAutomationProjectOutput, - InvokeBlueprintOptimizationAsyncInput, InvokeBlueprintOptimizationAsyncOutput, - InvokeDataAutomationLibraryIngestionJobInput, InvokeDataAutomationLibraryIngestionJobOutput, - ListBlueprintsInput, ListBlueprintsOutput, - ListDataAutomationLibrariesInput, ListDataAutomationLibrariesOutput, - ListDataAutomationLibraryEntitiesInput, ListDataAutomationLibraryEntitiesOutput, - ListDataAutomationLibraryIngestionJobsInput, ListDataAutomationLibraryIngestionJobsOutput, - ListDataAutomationProjectsInput, ListDataAutomationProjectsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateBlueprintInput, UpdateBlueprintOutput, - UpdateDataAutomationLibraryInput, UpdateDataAutomationLibraryOutput, - UpdateDataAutomationProjectInput, UpdateDataAutomationProjectOutput, ) @@ -83,17 +56,29 @@ class AsyncBedrockDataAutomationClient(AsyncClient[AsyncBedrockDataAutomationConfig]): """Amazon Bedrock Data Automation BuildTime""" - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def copy_blueprint_stage( - self, input: CopyBlueprintStageInput, plugins: list[Plugin] | None = None + self, + request: _models.CopyBlueprintStageInput | _models.CopyBlueprintStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyBlueprintStageOutput: ... + + @_overload + async def copy_blueprint_stage( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyBlueprintStageInputDict], ) -> CopyBlueprintStageOutput: """ Copies a Blueprint from one stage to another Args: - input: - An instance of `CopyBlueprintStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -103,17 +88,38 @@ async def copy_blueprint_stage( Returns: An instance of `CopyBlueprintStageOutput`. """ - return await self._invoke(input, _models.COPY_BLUEPRINT_STAGE, [], plugins) + async def copy_blueprint_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyBlueprintStageOutput: + return await self._invoke( + self._select_input(_models.COPY_BLUEPRINT_STAGE, args, kwargs), + _models.COPY_BLUEPRINT_STAGE, + [], + plugins, + ) + + @_overload + async def create_blueprint( + self, + request: _models.CreateBlueprintInput | _models.CreateBlueprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBlueprintOutput: ... + + @_overload async def create_blueprint( - self, input: CreateBlueprintInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBlueprintInputDict], ) -> CreateBlueprintOutput: """ Creates an Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `CreateBlueprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -123,18 +129,40 @@ async def create_blueprint( Returns: An instance of `CreateBlueprintOutput`. """ - return await self._invoke(input, _models.CREATE_BLUEPRINT, [], plugins) + async def create_blueprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBlueprintOutput: + return await self._invoke( + self._select_input(_models.CREATE_BLUEPRINT, args, kwargs), + _models.CREATE_BLUEPRINT, + [], + plugins, + ) + + @_overload async def create_blueprint_version( - self, input: CreateBlueprintVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateBlueprintVersionInput + | _models.CreateBlueprintVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBlueprintVersionOutput: ... + + @_overload + async def create_blueprint_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBlueprintVersionInputDict], ) -> CreateBlueprintVersionOutput: """ Creates a new version of an existing Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `CreateBlueprintVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -144,19 +172,39 @@ async def create_blueprint_version( Returns: An instance of `CreateBlueprintVersionOutput`. """ - return await self._invoke(input, _models.CREATE_BLUEPRINT_VERSION, [], plugins) + async def create_blueprint_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBlueprintVersionOutput: + return await self._invoke( + self._select_input(_models.CREATE_BLUEPRINT_VERSION, args, kwargs), + _models.CREATE_BLUEPRINT_VERSION, + [], + plugins, + ) + + @_overload + async def create_data_automation_library( + self, + request: _models.CreateDataAutomationLibraryInput + | _models.CreateDataAutomationLibraryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataAutomationLibraryOutput: ... + + @_overload async def create_data_automation_library( self, - input: CreateDataAutomationLibraryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataAutomationLibraryInputDict], ) -> CreateDataAutomationLibraryOutput: """ Creates an Amazon Bedrock Data Automation Library Args: - input: - An instance of `CreateDataAutomationLibraryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -166,21 +214,39 @@ async def create_data_automation_library( Returns: An instance of `CreateDataAutomationLibraryOutput`. """ + + async def create_data_automation_library( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataAutomationLibraryOutput: return await self._invoke( - input, _models.CREATE_DATA_AUTOMATION_LIBRARY, [], plugins + self._select_input(_models.CREATE_DATA_AUTOMATION_LIBRARY, args, kwargs), + _models.CREATE_DATA_AUTOMATION_LIBRARY, + [], + plugins, ) + @_overload async def create_data_automation_project( self, - input: CreateDataAutomationProjectInput, + request: _models.CreateDataAutomationProjectInput + | _models.CreateDataAutomationProjectInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateDataAutomationProjectOutput: ... + + @_overload + async def create_data_automation_project( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataAutomationProjectInputDict], ) -> CreateDataAutomationProjectOutput: """ Creates an Amazon Bedrock Data Automation Project Args: - input: - An instance of `CreateDataAutomationProjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -190,19 +256,38 @@ async def create_data_automation_project( Returns: An instance of `CreateDataAutomationProjectOutput`. """ + + async def create_data_automation_project( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataAutomationProjectOutput: return await self._invoke( - input, _models.CREATE_DATA_AUTOMATION_PROJECT, [], plugins + self._select_input(_models.CREATE_DATA_AUTOMATION_PROJECT, args, kwargs), + _models.CREATE_DATA_AUTOMATION_PROJECT, + [], + plugins, ) + @_overload async def delete_blueprint( - self, input: DeleteBlueprintInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteBlueprintInput | _models.DeleteBlueprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBlueprintOutput: ... + + @_overload + async def delete_blueprint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBlueprintInputDict], ) -> DeleteBlueprintOutput: """ Deletes an existing Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `DeleteBlueprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -212,19 +297,39 @@ async def delete_blueprint( Returns: An instance of `DeleteBlueprintOutput`. """ - return await self._invoke(input, _models.DELETE_BLUEPRINT, [], plugins) + async def delete_blueprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBlueprintOutput: + return await self._invoke( + self._select_input(_models.DELETE_BLUEPRINT, args, kwargs), + _models.DELETE_BLUEPRINT, + [], + plugins, + ) + + @_overload async def delete_data_automation_library( self, - input: DeleteDataAutomationLibraryInput, + request: _models.DeleteDataAutomationLibraryInput + | _models.DeleteDataAutomationLibraryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteDataAutomationLibraryOutput: ... + + @_overload + async def delete_data_automation_library( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataAutomationLibraryInputDict], ) -> DeleteDataAutomationLibraryOutput: """ Deletes an existing Amazon Bedrock Data Automation Library Args: - input: - An instance of `DeleteDataAutomationLibraryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -234,21 +339,39 @@ async def delete_data_automation_library( Returns: An instance of `DeleteDataAutomationLibraryOutput`. """ + + async def delete_data_automation_library( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataAutomationLibraryOutput: return await self._invoke( - input, _models.DELETE_DATA_AUTOMATION_LIBRARY, [], plugins + self._select_input(_models.DELETE_DATA_AUTOMATION_LIBRARY, args, kwargs), + _models.DELETE_DATA_AUTOMATION_LIBRARY, + [], + plugins, ) + @_overload async def delete_data_automation_project( self, - input: DeleteDataAutomationProjectInput, + request: _models.DeleteDataAutomationProjectInput + | _models.DeleteDataAutomationProjectInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteDataAutomationProjectOutput: ... + + @_overload + async def delete_data_automation_project( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataAutomationProjectInputDict], ) -> DeleteDataAutomationProjectOutput: """ Deletes an existing Amazon Bedrock Data Automation Project Args: - input: - An instance of `DeleteDataAutomationProjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -258,19 +381,38 @@ async def delete_data_automation_project( Returns: An instance of `DeleteDataAutomationProjectOutput`. """ + + async def delete_data_automation_project( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataAutomationProjectOutput: return await self._invoke( - input, _models.DELETE_DATA_AUTOMATION_PROJECT, [], plugins + self._select_input(_models.DELETE_DATA_AUTOMATION_PROJECT, args, kwargs), + _models.DELETE_DATA_AUTOMATION_PROJECT, + [], + plugins, ) + @_overload async def get_blueprint( - self, input: GetBlueprintInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBlueprintInput | _models.GetBlueprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBlueprintOutput: ... + + @_overload + async def get_blueprint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBlueprintInputDict], ) -> GetBlueprintOutput: """ Gets an existing Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `GetBlueprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -280,19 +422,39 @@ async def get_blueprint( Returns: An instance of `GetBlueprintOutput`. """ - return await self._invoke(input, _models.GET_BLUEPRINT, [], plugins) + async def get_blueprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBlueprintOutput: + return await self._invoke( + self._select_input(_models.GET_BLUEPRINT, args, kwargs), + _models.GET_BLUEPRINT, + [], + plugins, + ) + + @_overload async def get_blueprint_optimization_status( self, - input: GetBlueprintOptimizationStatusInput, + request: _models.GetBlueprintOptimizationStatusInput + | _models.GetBlueprintOptimizationStatusInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetBlueprintOptimizationStatusOutput: ... + + @_overload + async def get_blueprint_optimization_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBlueprintOptimizationStatusInputDict], ) -> GetBlueprintOptimizationStatusOutput: """ API used to get blueprint optimization status. Args: - input: - An instance of `GetBlueprintOptimizationStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -302,19 +464,39 @@ async def get_blueprint_optimization_status( Returns: An instance of `GetBlueprintOptimizationStatusOutput`. """ + + async def get_blueprint_optimization_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBlueprintOptimizationStatusOutput: return await self._invoke( - input, _models.GET_BLUEPRINT_OPTIMIZATION_STATUS, [], plugins + self._select_input(_models.GET_BLUEPRINT_OPTIMIZATION_STATUS, args, kwargs), + _models.GET_BLUEPRINT_OPTIMIZATION_STATUS, + [], + plugins, ) + @_overload + async def get_data_automation_library( + self, + request: _models.GetDataAutomationLibraryInput + | _models.GetDataAutomationLibraryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAutomationLibraryOutput: ... + + @_overload async def get_data_automation_library( - self, input: GetDataAutomationLibraryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationLibraryInputDict], ) -> GetDataAutomationLibraryOutput: """ Gets an existing Amazon Bedrock Data Automation Library Args: - input: - An instance of `GetDataAutomationLibraryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -324,21 +506,39 @@ async def get_data_automation_library( Returns: An instance of `GetDataAutomationLibraryOutput`. """ + + async def get_data_automation_library( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationLibraryOutput: return await self._invoke( - input, _models.GET_DATA_AUTOMATION_LIBRARY, [], plugins + self._select_input(_models.GET_DATA_AUTOMATION_LIBRARY, args, kwargs), + _models.GET_DATA_AUTOMATION_LIBRARY, + [], + plugins, ) + @_overload + async def get_data_automation_library_entity( + self, + request: _models.GetDataAutomationLibraryEntityInput + | _models.GetDataAutomationLibraryEntityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAutomationLibraryEntityOutput: ... + + @_overload async def get_data_automation_library_entity( self, - input: GetDataAutomationLibraryEntityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationLibraryEntityInputDict], ) -> GetDataAutomationLibraryEntityOutput: """ Gets an existing entity based on entity type from the library Args: - input: - An instance of `GetDataAutomationLibraryEntityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -348,21 +548,41 @@ async def get_data_automation_library_entity( Returns: An instance of `GetDataAutomationLibraryEntityOutput`. """ + + async def get_data_automation_library_entity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationLibraryEntityOutput: return await self._invoke( - input, _models.GET_DATA_AUTOMATION_LIBRARY_ENTITY, [], plugins + self._select_input( + _models.GET_DATA_AUTOMATION_LIBRARY_ENTITY, args, kwargs + ), + _models.GET_DATA_AUTOMATION_LIBRARY_ENTITY, + [], + plugins, ) + @_overload + async def get_data_automation_library_ingestion_job( + self, + request: _models.GetDataAutomationLibraryIngestionJobInput + | _models.GetDataAutomationLibraryIngestionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAutomationLibraryIngestionJobOutput: ... + + @_overload async def get_data_automation_library_ingestion_job( self, - input: GetDataAutomationLibraryIngestionJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationLibraryIngestionJobInputDict], ) -> GetDataAutomationLibraryIngestionJobOutput: """ API used to get status of data automation library ingestion job Args: - input: - An instance of `GetDataAutomationLibraryIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -372,19 +592,41 @@ async def get_data_automation_library_ingestion_job( Returns: An instance of `GetDataAutomationLibraryIngestionJobOutput`. """ + + async def get_data_automation_library_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationLibraryIngestionJobOutput: return await self._invoke( - input, _models.GET_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, [], plugins + self._select_input( + _models.GET_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, args, kwargs + ), + _models.GET_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, + [], + plugins, ) + @_overload + async def get_data_automation_project( + self, + request: _models.GetDataAutomationProjectInput + | _models.GetDataAutomationProjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAutomationProjectOutput: ... + + @_overload async def get_data_automation_project( - self, input: GetDataAutomationProjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationProjectInputDict], ) -> GetDataAutomationProjectOutput: """ Gets an existing Amazon Bedrock Data Automation Project Args: - input: - An instance of `GetDataAutomationProjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -394,21 +636,39 @@ async def get_data_automation_project( Returns: An instance of `GetDataAutomationProjectOutput`. """ + + async def get_data_automation_project( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationProjectOutput: return await self._invoke( - input, _models.GET_DATA_AUTOMATION_PROJECT, [], plugins + self._select_input(_models.GET_DATA_AUTOMATION_PROJECT, args, kwargs), + _models.GET_DATA_AUTOMATION_PROJECT, + [], + plugins, ) + @_overload async def invoke_blueprint_optimization_async( self, - input: InvokeBlueprintOptimizationAsyncInput, + request: _models.InvokeBlueprintOptimizationAsyncInput + | _models.InvokeBlueprintOptimizationAsyncInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> InvokeBlueprintOptimizationAsyncOutput: ... + + @_overload + async def invoke_blueprint_optimization_async( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeBlueprintOptimizationAsyncInputDict], ) -> InvokeBlueprintOptimizationAsyncOutput: """ Invoke an async job to perform Blueprint Optimization Args: - input: - An instance of `InvokeBlueprintOptimizationAsyncInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -418,21 +678,41 @@ async def invoke_blueprint_optimization_async( Returns: An instance of `InvokeBlueprintOptimizationAsyncOutput`. """ + + async def invoke_blueprint_optimization_async( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeBlueprintOptimizationAsyncOutput: return await self._invoke( - input, _models.INVOKE_BLUEPRINT_OPTIMIZATION_ASYNC, [], plugins + self._select_input( + _models.INVOKE_BLUEPRINT_OPTIMIZATION_ASYNC, args, kwargs + ), + _models.INVOKE_BLUEPRINT_OPTIMIZATION_ASYNC, + [], + plugins, ) + @_overload async def invoke_data_automation_library_ingestion_job( self, - input: InvokeDataAutomationLibraryIngestionJobInput, + request: _models.InvokeDataAutomationLibraryIngestionJobInput + | _models.InvokeDataAutomationLibraryIngestionJobInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> InvokeDataAutomationLibraryIngestionJobOutput: ... + + @_overload + async def invoke_data_automation_library_ingestion_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeDataAutomationLibraryIngestionJobInputDict], ) -> InvokeDataAutomationLibraryIngestionJobOutput: """ Async API: Invoke data automation library ingestion job Args: - input: - An instance of `InvokeDataAutomationLibraryIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -442,19 +722,40 @@ async def invoke_data_automation_library_ingestion_job( Returns: An instance of `InvokeDataAutomationLibraryIngestionJobOutput`. """ + + async def invoke_data_automation_library_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeDataAutomationLibraryIngestionJobOutput: return await self._invoke( - input, _models.INVOKE_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, [], plugins + self._select_input( + _models.INVOKE_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, args, kwargs + ), + _models.INVOKE_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, + [], + plugins, ) + @_overload + async def list_blueprints( + self, + request: _models.ListBlueprintsInput | _models.ListBlueprintsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBlueprintsOutput: ... + + @_overload async def list_blueprints( - self, input: ListBlueprintsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBlueprintsInputDict], ) -> ListBlueprintsOutput: """ Lists all existing Amazon Bedrock Data Automation Blueprints Args: - input: - An instance of `ListBlueprintsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -464,19 +765,39 @@ async def list_blueprints( Returns: An instance of `ListBlueprintsOutput`. """ - return await self._invoke(input, _models.LIST_BLUEPRINTS, [], plugins) + async def list_blueprints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBlueprintsOutput: + return await self._invoke( + self._select_input(_models.LIST_BLUEPRINTS, args, kwargs), + _models.LIST_BLUEPRINTS, + [], + plugins, + ) + + @_overload + async def list_data_automation_libraries( + self, + request: _models.ListDataAutomationLibrariesInput + | _models.ListDataAutomationLibrariesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataAutomationLibrariesOutput: ... + + @_overload async def list_data_automation_libraries( self, - input: ListDataAutomationLibrariesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAutomationLibrariesInputDict], ) -> ListDataAutomationLibrariesOutput: """ Lists all existing Amazon Bedrock Data Automation Libraries Args: - input: - An instance of `ListDataAutomationLibrariesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -486,21 +807,39 @@ async def list_data_automation_libraries( Returns: An instance of `ListDataAutomationLibrariesOutput`. """ + + async def list_data_automation_libraries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAutomationLibrariesOutput: return await self._invoke( - input, _models.LIST_DATA_AUTOMATION_LIBRARIES, [], plugins + self._select_input(_models.LIST_DATA_AUTOMATION_LIBRARIES, args, kwargs), + _models.LIST_DATA_AUTOMATION_LIBRARIES, + [], + plugins, ) + @_overload async def list_data_automation_library_entities( self, - input: ListDataAutomationLibraryEntitiesInput, + request: _models.ListDataAutomationLibraryEntitiesInput + | _models.ListDataAutomationLibraryEntitiesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDataAutomationLibraryEntitiesOutput: ... + + @_overload + async def list_data_automation_library_entities( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAutomationLibraryEntitiesInputDict], ) -> ListDataAutomationLibraryEntitiesOutput: """ Lists all stored entities in the library Args: - input: - An instance of `ListDataAutomationLibraryEntitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -510,21 +849,41 @@ async def list_data_automation_library_entities( Returns: An instance of `ListDataAutomationLibraryEntitiesOutput`. """ + + async def list_data_automation_library_entities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAutomationLibraryEntitiesOutput: return await self._invoke( - input, _models.LIST_DATA_AUTOMATION_LIBRARY_ENTITIES, [], plugins + self._select_input( + _models.LIST_DATA_AUTOMATION_LIBRARY_ENTITIES, args, kwargs + ), + _models.LIST_DATA_AUTOMATION_LIBRARY_ENTITIES, + [], + plugins, ) + @_overload async def list_data_automation_library_ingestion_jobs( self, - input: ListDataAutomationLibraryIngestionJobsInput, + request: _models.ListDataAutomationLibraryIngestionJobsInput + | _models.ListDataAutomationLibraryIngestionJobsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDataAutomationLibraryIngestionJobsOutput: ... + + @_overload + async def list_data_automation_library_ingestion_jobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAutomationLibraryIngestionJobsInputDict], ) -> ListDataAutomationLibraryIngestionJobsOutput: """ Lists all data automation library ingestion jobs Args: - input: - An instance of `ListDataAutomationLibraryIngestionJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -534,21 +893,41 @@ async def list_data_automation_library_ingestion_jobs( Returns: An instance of `ListDataAutomationLibraryIngestionJobsOutput`. """ + + async def list_data_automation_library_ingestion_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAutomationLibraryIngestionJobsOutput: return await self._invoke( - input, _models.LIST_DATA_AUTOMATION_LIBRARY_INGESTION_JOBS, [], plugins + self._select_input( + _models.LIST_DATA_AUTOMATION_LIBRARY_INGESTION_JOBS, args, kwargs + ), + _models.LIST_DATA_AUTOMATION_LIBRARY_INGESTION_JOBS, + [], + plugins, ) + @_overload async def list_data_automation_projects( self, - input: ListDataAutomationProjectsInput, + request: _models.ListDataAutomationProjectsInput + | _models.ListDataAutomationProjectsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDataAutomationProjectsOutput: ... + + @_overload + async def list_data_automation_projects( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAutomationProjectsInputDict], ) -> ListDataAutomationProjectsOutput: """ Lists all existing Amazon Bedrock Data Automation Projects Args: - input: - An instance of `ListDataAutomationProjectsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -558,19 +937,39 @@ async def list_data_automation_projects( Returns: An instance of `ListDataAutomationProjectsOutput`. """ + + async def list_data_automation_projects( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAutomationProjectsOutput: return await self._invoke( - input, _models.LIST_DATA_AUTOMATION_PROJECTS, [], plugins + self._select_input(_models.LIST_DATA_AUTOMATION_PROJECTS, args, kwargs), + _models.LIST_DATA_AUTOMATION_PROJECTS, + [], + plugins, ) + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + async def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List tags for an Amazon Bedrock Data Automation resource Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -580,17 +979,38 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Tag an Amazon Bedrock Data Automation resource Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -600,17 +1020,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Untag an Amazon Bedrock Data Automation resource Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -620,17 +1061,38 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_blueprint( + self, + request: _models.UpdateBlueprintInput | _models.UpdateBlueprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBlueprintOutput: ... + + @_overload async def update_blueprint( - self, input: UpdateBlueprintInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateBlueprintInputDict], ) -> UpdateBlueprintOutput: """ Updates an existing Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `UpdateBlueprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -640,19 +1102,39 @@ async def update_blueprint( Returns: An instance of `UpdateBlueprintOutput`. """ - return await self._invoke(input, _models.UPDATE_BLUEPRINT, [], plugins) + async def update_blueprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBlueprintOutput: + return await self._invoke( + self._select_input(_models.UPDATE_BLUEPRINT, args, kwargs), + _models.UPDATE_BLUEPRINT, + [], + plugins, + ) + + @_overload async def update_data_automation_library( self, - input: UpdateDataAutomationLibraryInput, + request: _models.UpdateDataAutomationLibraryInput + | _models.UpdateDataAutomationLibraryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateDataAutomationLibraryOutput: ... + + @_overload + async def update_data_automation_library( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataAutomationLibraryInputDict], ) -> UpdateDataAutomationLibraryOutput: """ Updates an existing Amazon Bedrock Data Automation Library Args: - input: - An instance of `UpdateDataAutomationLibraryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -662,21 +1144,39 @@ async def update_data_automation_library( Returns: An instance of `UpdateDataAutomationLibraryOutput`. """ + + async def update_data_automation_library( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataAutomationLibraryOutput: return await self._invoke( - input, _models.UPDATE_DATA_AUTOMATION_LIBRARY, [], plugins + self._select_input(_models.UPDATE_DATA_AUTOMATION_LIBRARY, args, kwargs), + _models.UPDATE_DATA_AUTOMATION_LIBRARY, + [], + plugins, ) + @_overload async def update_data_automation_project( self, - input: UpdateDataAutomationProjectInput, + request: _models.UpdateDataAutomationProjectInput + | _models.UpdateDataAutomationProjectInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateDataAutomationProjectOutput: ... + + @_overload + async def update_data_automation_project( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataAutomationProjectInputDict], ) -> UpdateDataAutomationProjectOutput: """ Updates an existing Amazon Bedrock Data Automation Project Args: - input: - An instance of `UpdateDataAutomationProjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -686,8 +1186,15 @@ async def update_data_automation_project( Returns: An instance of `UpdateDataAutomationProjectOutput`. """ + + async def update_data_automation_project( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataAutomationProjectOutput: return await self._invoke( - input, _models.UPDATE_DATA_AUTOMATION_PROJECT, [], plugins + self._select_input(_models.UPDATE_DATA_AUTOMATION_PROJECT, args, kwargs), + _models.UPDATE_DATA_AUTOMATION_PROJECT, + [], + plugins, ) async def _new_config(self) -> AsyncBedrockDataAutomationConfig: diff --git a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/client.py b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/client.py index 47248d567..1ccce5775 100644 --- a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/client.py +++ b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,59 +20,32 @@ if TYPE_CHECKING: from .models import ( - CopyBlueprintStageInput, CopyBlueprintStageOutput, - CreateBlueprintInput, CreateBlueprintOutput, - CreateBlueprintVersionInput, CreateBlueprintVersionOutput, - CreateDataAutomationLibraryInput, CreateDataAutomationLibraryOutput, - CreateDataAutomationProjectInput, CreateDataAutomationProjectOutput, - DeleteBlueprintInput, DeleteBlueprintOutput, - DeleteDataAutomationLibraryInput, DeleteDataAutomationLibraryOutput, - DeleteDataAutomationProjectInput, DeleteDataAutomationProjectOutput, - GetBlueprintInput, - GetBlueprintOptimizationStatusInput, GetBlueprintOptimizationStatusOutput, GetBlueprintOutput, - GetDataAutomationLibraryEntityInput, GetDataAutomationLibraryEntityOutput, - GetDataAutomationLibraryIngestionJobInput, GetDataAutomationLibraryIngestionJobOutput, - GetDataAutomationLibraryInput, GetDataAutomationLibraryOutput, - GetDataAutomationProjectInput, GetDataAutomationProjectOutput, - InvokeBlueprintOptimizationAsyncInput, InvokeBlueprintOptimizationAsyncOutput, - InvokeDataAutomationLibraryIngestionJobInput, InvokeDataAutomationLibraryIngestionJobOutput, - ListBlueprintsInput, ListBlueprintsOutput, - ListDataAutomationLibrariesInput, ListDataAutomationLibrariesOutput, - ListDataAutomationLibraryEntitiesInput, ListDataAutomationLibraryEntitiesOutput, - ListDataAutomationLibraryIngestionJobsInput, ListDataAutomationLibraryIngestionJobsOutput, - ListDataAutomationProjectsInput, ListDataAutomationProjectsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateBlueprintInput, UpdateBlueprintOutput, - UpdateDataAutomationLibraryInput, UpdateDataAutomationLibraryOutput, - UpdateDataAutomationProjectInput, UpdateDataAutomationProjectOutput, ) @@ -83,17 +56,29 @@ class BedrockDataAutomationClient(Client[BedrockDataAutomationConfig]): """Amazon Bedrock Data Automation BuildTime""" - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def copy_blueprint_stage( - self, input: CopyBlueprintStageInput, plugins: list[Plugin] | None = None + self, + request: _models.CopyBlueprintStageInput | _models.CopyBlueprintStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyBlueprintStageOutput: ... + + @_overload + def copy_blueprint_stage( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyBlueprintStageInputDict], ) -> CopyBlueprintStageOutput: """ Copies a Blueprint from one stage to another Args: - input: - An instance of `CopyBlueprintStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -103,17 +88,38 @@ def copy_blueprint_stage( Returns: An instance of `CopyBlueprintStageOutput`. """ - return self._invoke(input, _models.COPY_BLUEPRINT_STAGE, [], plugins) + def copy_blueprint_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyBlueprintStageOutput: + return self._invoke( + self._select_input(_models.COPY_BLUEPRINT_STAGE, args, kwargs), + _models.COPY_BLUEPRINT_STAGE, + [], + plugins, + ) + + @_overload + def create_blueprint( + self, + request: _models.CreateBlueprintInput | _models.CreateBlueprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBlueprintOutput: ... + + @_overload def create_blueprint( - self, input: CreateBlueprintInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBlueprintInputDict], ) -> CreateBlueprintOutput: """ Creates an Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `CreateBlueprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -123,18 +129,40 @@ def create_blueprint( Returns: An instance of `CreateBlueprintOutput`. """ - return self._invoke(input, _models.CREATE_BLUEPRINT, [], plugins) + def create_blueprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBlueprintOutput: + return self._invoke( + self._select_input(_models.CREATE_BLUEPRINT, args, kwargs), + _models.CREATE_BLUEPRINT, + [], + plugins, + ) + + @_overload + def create_blueprint_version( + self, + request: _models.CreateBlueprintVersionInput + | _models.CreateBlueprintVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBlueprintVersionOutput: ... + + @_overload def create_blueprint_version( - self, input: CreateBlueprintVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBlueprintVersionInputDict], ) -> CreateBlueprintVersionOutput: """ Creates a new version of an existing Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `CreateBlueprintVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -144,19 +172,39 @@ def create_blueprint_version( Returns: An instance of `CreateBlueprintVersionOutput`. """ - return self._invoke(input, _models.CREATE_BLUEPRINT_VERSION, [], plugins) + def create_blueprint_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBlueprintVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_BLUEPRINT_VERSION, args, kwargs), + _models.CREATE_BLUEPRINT_VERSION, + [], + plugins, + ) + + @_overload + def create_data_automation_library( + self, + request: _models.CreateDataAutomationLibraryInput + | _models.CreateDataAutomationLibraryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataAutomationLibraryOutput: ... + + @_overload def create_data_automation_library( self, - input: CreateDataAutomationLibraryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataAutomationLibraryInputDict], ) -> CreateDataAutomationLibraryOutput: """ Creates an Amazon Bedrock Data Automation Library Args: - input: - An instance of `CreateDataAutomationLibraryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -166,19 +214,39 @@ def create_data_automation_library( Returns: An instance of `CreateDataAutomationLibraryOutput`. """ - return self._invoke(input, _models.CREATE_DATA_AUTOMATION_LIBRARY, [], plugins) + def create_data_automation_library( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataAutomationLibraryOutput: + return self._invoke( + self._select_input(_models.CREATE_DATA_AUTOMATION_LIBRARY, args, kwargs), + _models.CREATE_DATA_AUTOMATION_LIBRARY, + [], + plugins, + ) + + @_overload + def create_data_automation_project( + self, + request: _models.CreateDataAutomationProjectInput + | _models.CreateDataAutomationProjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataAutomationProjectOutput: ... + + @_overload def create_data_automation_project( self, - input: CreateDataAutomationProjectInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataAutomationProjectInputDict], ) -> CreateDataAutomationProjectOutput: """ Creates an Amazon Bedrock Data Automation Project Args: - input: - An instance of `CreateDataAutomationProjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -188,17 +256,38 @@ def create_data_automation_project( Returns: An instance of `CreateDataAutomationProjectOutput`. """ - return self._invoke(input, _models.CREATE_DATA_AUTOMATION_PROJECT, [], plugins) + def create_data_automation_project( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataAutomationProjectOutput: + return self._invoke( + self._select_input(_models.CREATE_DATA_AUTOMATION_PROJECT, args, kwargs), + _models.CREATE_DATA_AUTOMATION_PROJECT, + [], + plugins, + ) + + @_overload + def delete_blueprint( + self, + request: _models.DeleteBlueprintInput | _models.DeleteBlueprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBlueprintOutput: ... + + @_overload def delete_blueprint( - self, input: DeleteBlueprintInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBlueprintInputDict], ) -> DeleteBlueprintOutput: """ Deletes an existing Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `DeleteBlueprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -208,19 +297,39 @@ def delete_blueprint( Returns: An instance of `DeleteBlueprintOutput`. """ - return self._invoke(input, _models.DELETE_BLUEPRINT, [], plugins) + def delete_blueprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBlueprintOutput: + return self._invoke( + self._select_input(_models.DELETE_BLUEPRINT, args, kwargs), + _models.DELETE_BLUEPRINT, + [], + plugins, + ) + + @_overload + def delete_data_automation_library( + self, + request: _models.DeleteDataAutomationLibraryInput + | _models.DeleteDataAutomationLibraryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDataAutomationLibraryOutput: ... + + @_overload def delete_data_automation_library( self, - input: DeleteDataAutomationLibraryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataAutomationLibraryInputDict], ) -> DeleteDataAutomationLibraryOutput: """ Deletes an existing Amazon Bedrock Data Automation Library Args: - input: - An instance of `DeleteDataAutomationLibraryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -230,19 +339,39 @@ def delete_data_automation_library( Returns: An instance of `DeleteDataAutomationLibraryOutput`. """ - return self._invoke(input, _models.DELETE_DATA_AUTOMATION_LIBRARY, [], plugins) + def delete_data_automation_library( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataAutomationLibraryOutput: + return self._invoke( + self._select_input(_models.DELETE_DATA_AUTOMATION_LIBRARY, args, kwargs), + _models.DELETE_DATA_AUTOMATION_LIBRARY, + [], + plugins, + ) + + @_overload def delete_data_automation_project( self, - input: DeleteDataAutomationProjectInput, + request: _models.DeleteDataAutomationProjectInput + | _models.DeleteDataAutomationProjectInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteDataAutomationProjectOutput: ... + + @_overload + def delete_data_automation_project( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataAutomationProjectInputDict], ) -> DeleteDataAutomationProjectOutput: """ Deletes an existing Amazon Bedrock Data Automation Project Args: - input: - An instance of `DeleteDataAutomationProjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -252,17 +381,38 @@ def delete_data_automation_project( Returns: An instance of `DeleteDataAutomationProjectOutput`. """ - return self._invoke(input, _models.DELETE_DATA_AUTOMATION_PROJECT, [], plugins) + def delete_data_automation_project( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataAutomationProjectOutput: + return self._invoke( + self._select_input(_models.DELETE_DATA_AUTOMATION_PROJECT, args, kwargs), + _models.DELETE_DATA_AUTOMATION_PROJECT, + [], + plugins, + ) + + @_overload + def get_blueprint( + self, + request: _models.GetBlueprintInput | _models.GetBlueprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBlueprintOutput: ... + + @_overload def get_blueprint( - self, input: GetBlueprintInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBlueprintInputDict], ) -> GetBlueprintOutput: """ Gets an existing Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `GetBlueprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -272,19 +422,39 @@ def get_blueprint( Returns: An instance of `GetBlueprintOutput`. """ - return self._invoke(input, _models.GET_BLUEPRINT, [], plugins) + def get_blueprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBlueprintOutput: + return self._invoke( + self._select_input(_models.GET_BLUEPRINT, args, kwargs), + _models.GET_BLUEPRINT, + [], + plugins, + ) + + @_overload + def get_blueprint_optimization_status( + self, + request: _models.GetBlueprintOptimizationStatusInput + | _models.GetBlueprintOptimizationStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBlueprintOptimizationStatusOutput: ... + + @_overload def get_blueprint_optimization_status( self, - input: GetBlueprintOptimizationStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBlueprintOptimizationStatusInputDict], ) -> GetBlueprintOptimizationStatusOutput: """ API used to get blueprint optimization status. Args: - input: - An instance of `GetBlueprintOptimizationStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -294,19 +464,39 @@ def get_blueprint_optimization_status( Returns: An instance of `GetBlueprintOptimizationStatusOutput`. """ + + def get_blueprint_optimization_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBlueprintOptimizationStatusOutput: return self._invoke( - input, _models.GET_BLUEPRINT_OPTIMIZATION_STATUS, [], plugins + self._select_input(_models.GET_BLUEPRINT_OPTIMIZATION_STATUS, args, kwargs), + _models.GET_BLUEPRINT_OPTIMIZATION_STATUS, + [], + plugins, ) + @_overload + def get_data_automation_library( + self, + request: _models.GetDataAutomationLibraryInput + | _models.GetDataAutomationLibraryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAutomationLibraryOutput: ... + + @_overload def get_data_automation_library( - self, input: GetDataAutomationLibraryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationLibraryInputDict], ) -> GetDataAutomationLibraryOutput: """ Gets an existing Amazon Bedrock Data Automation Library Args: - input: - An instance of `GetDataAutomationLibraryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -316,19 +506,39 @@ def get_data_automation_library( Returns: An instance of `GetDataAutomationLibraryOutput`. """ - return self._invoke(input, _models.GET_DATA_AUTOMATION_LIBRARY, [], plugins) + def get_data_automation_library( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationLibraryOutput: + return self._invoke( + self._select_input(_models.GET_DATA_AUTOMATION_LIBRARY, args, kwargs), + _models.GET_DATA_AUTOMATION_LIBRARY, + [], + plugins, + ) + + @_overload def get_data_automation_library_entity( self, - input: GetDataAutomationLibraryEntityInput, + request: _models.GetDataAutomationLibraryEntityInput + | _models.GetDataAutomationLibraryEntityInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetDataAutomationLibraryEntityOutput: ... + + @_overload + def get_data_automation_library_entity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationLibraryEntityInputDict], ) -> GetDataAutomationLibraryEntityOutput: """ Gets an existing entity based on entity type from the library Args: - input: - An instance of `GetDataAutomationLibraryEntityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -338,21 +548,41 @@ def get_data_automation_library_entity( Returns: An instance of `GetDataAutomationLibraryEntityOutput`. """ + + def get_data_automation_library_entity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationLibraryEntityOutput: return self._invoke( - input, _models.GET_DATA_AUTOMATION_LIBRARY_ENTITY, [], plugins + self._select_input( + _models.GET_DATA_AUTOMATION_LIBRARY_ENTITY, args, kwargs + ), + _models.GET_DATA_AUTOMATION_LIBRARY_ENTITY, + [], + plugins, ) + @_overload def get_data_automation_library_ingestion_job( self, - input: GetDataAutomationLibraryIngestionJobInput, + request: _models.GetDataAutomationLibraryIngestionJobInput + | _models.GetDataAutomationLibraryIngestionJobInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetDataAutomationLibraryIngestionJobOutput: ... + + @_overload + def get_data_automation_library_ingestion_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationLibraryIngestionJobInputDict], ) -> GetDataAutomationLibraryIngestionJobOutput: """ API used to get status of data automation library ingestion job Args: - input: - An instance of `GetDataAutomationLibraryIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -362,19 +592,41 @@ def get_data_automation_library_ingestion_job( Returns: An instance of `GetDataAutomationLibraryIngestionJobOutput`. """ + + def get_data_automation_library_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationLibraryIngestionJobOutput: return self._invoke( - input, _models.GET_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, [], plugins + self._select_input( + _models.GET_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, args, kwargs + ), + _models.GET_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, + [], + plugins, ) + @_overload def get_data_automation_project( - self, input: GetDataAutomationProjectInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDataAutomationProjectInput + | _models.GetDataAutomationProjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAutomationProjectOutput: ... + + @_overload + def get_data_automation_project( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAutomationProjectInputDict], ) -> GetDataAutomationProjectOutput: """ Gets an existing Amazon Bedrock Data Automation Project Args: - input: - An instance of `GetDataAutomationProjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -384,19 +636,39 @@ def get_data_automation_project( Returns: An instance of `GetDataAutomationProjectOutput`. """ - return self._invoke(input, _models.GET_DATA_AUTOMATION_PROJECT, [], plugins) + def get_data_automation_project( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAutomationProjectOutput: + return self._invoke( + self._select_input(_models.GET_DATA_AUTOMATION_PROJECT, args, kwargs), + _models.GET_DATA_AUTOMATION_PROJECT, + [], + plugins, + ) + + @_overload def invoke_blueprint_optimization_async( self, - input: InvokeBlueprintOptimizationAsyncInput, + request: _models.InvokeBlueprintOptimizationAsyncInput + | _models.InvokeBlueprintOptimizationAsyncInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> InvokeBlueprintOptimizationAsyncOutput: ... + + @_overload + def invoke_blueprint_optimization_async( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeBlueprintOptimizationAsyncInputDict], ) -> InvokeBlueprintOptimizationAsyncOutput: """ Invoke an async job to perform Blueprint Optimization Args: - input: - An instance of `InvokeBlueprintOptimizationAsyncInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -406,21 +678,41 @@ def invoke_blueprint_optimization_async( Returns: An instance of `InvokeBlueprintOptimizationAsyncOutput`. """ + + def invoke_blueprint_optimization_async( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeBlueprintOptimizationAsyncOutput: return self._invoke( - input, _models.INVOKE_BLUEPRINT_OPTIMIZATION_ASYNC, [], plugins + self._select_input( + _models.INVOKE_BLUEPRINT_OPTIMIZATION_ASYNC, args, kwargs + ), + _models.INVOKE_BLUEPRINT_OPTIMIZATION_ASYNC, + [], + plugins, ) + @_overload + def invoke_data_automation_library_ingestion_job( + self, + request: _models.InvokeDataAutomationLibraryIngestionJobInput + | _models.InvokeDataAutomationLibraryIngestionJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeDataAutomationLibraryIngestionJobOutput: ... + + @_overload def invoke_data_automation_library_ingestion_job( self, - input: InvokeDataAutomationLibraryIngestionJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeDataAutomationLibraryIngestionJobInputDict], ) -> InvokeDataAutomationLibraryIngestionJobOutput: """ Async API: Invoke data automation library ingestion job Args: - input: - An instance of `InvokeDataAutomationLibraryIngestionJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -430,21 +722,40 @@ def invoke_data_automation_library_ingestion_job( Returns: An instance of `InvokeDataAutomationLibraryIngestionJobOutput`. """ + + def invoke_data_automation_library_ingestion_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeDataAutomationLibraryIngestionJobOutput: return self._invoke( - input, _models.INVOKE_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, [], plugins + self._select_input( + _models.INVOKE_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, args, kwargs + ), + _models.INVOKE_DATA_AUTOMATION_LIBRARY_INGESTION_JOB, + [], + plugins, ) + @_overload + def list_blueprints( + self, + request: _models.ListBlueprintsInput | _models.ListBlueprintsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBlueprintsOutput: ... + + @_overload def list_blueprints( self, - input: ListBlueprintsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBlueprintsInputDict], ) -> ListBlueprintsOutput: """ Lists all existing Amazon Bedrock Data Automation Blueprints Args: - input: - An instance of `ListBlueprintsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -454,19 +765,39 @@ def list_blueprints( Returns: An instance of `ListBlueprintsOutput`. """ - return self._invoke(input, _models.LIST_BLUEPRINTS, [], plugins) + def list_blueprints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBlueprintsOutput: + return self._invoke( + self._select_input(_models.LIST_BLUEPRINTS, args, kwargs), + _models.LIST_BLUEPRINTS, + [], + plugins, + ) + + @_overload def list_data_automation_libraries( self, - input: ListDataAutomationLibrariesInput | None = None, + request: _models.ListDataAutomationLibrariesInput + | _models.ListDataAutomationLibrariesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDataAutomationLibrariesOutput: ... + + @_overload + def list_data_automation_libraries( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAutomationLibrariesInputDict], ) -> ListDataAutomationLibrariesOutput: """ Lists all existing Amazon Bedrock Data Automation Libraries Args: - input: - An instance of `ListDataAutomationLibrariesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -476,19 +807,39 @@ def list_data_automation_libraries( Returns: An instance of `ListDataAutomationLibrariesOutput`. """ - return self._invoke(input, _models.LIST_DATA_AUTOMATION_LIBRARIES, [], plugins) + def list_data_automation_libraries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAutomationLibrariesOutput: + return self._invoke( + self._select_input(_models.LIST_DATA_AUTOMATION_LIBRARIES, args, kwargs), + _models.LIST_DATA_AUTOMATION_LIBRARIES, + [], + plugins, + ) + + @_overload def list_data_automation_library_entities( self, - input: ListDataAutomationLibraryEntitiesInput, + request: _models.ListDataAutomationLibraryEntitiesInput + | _models.ListDataAutomationLibraryEntitiesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDataAutomationLibraryEntitiesOutput: ... + + @_overload + def list_data_automation_library_entities( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAutomationLibraryEntitiesInputDict], ) -> ListDataAutomationLibraryEntitiesOutput: """ Lists all stored entities in the library Args: - input: - An instance of `ListDataAutomationLibraryEntitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -498,21 +849,41 @@ def list_data_automation_library_entities( Returns: An instance of `ListDataAutomationLibraryEntitiesOutput`. """ + + def list_data_automation_library_entities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAutomationLibraryEntitiesOutput: return self._invoke( - input, _models.LIST_DATA_AUTOMATION_LIBRARY_ENTITIES, [], plugins + self._select_input( + _models.LIST_DATA_AUTOMATION_LIBRARY_ENTITIES, args, kwargs + ), + _models.LIST_DATA_AUTOMATION_LIBRARY_ENTITIES, + [], + plugins, ) + @_overload def list_data_automation_library_ingestion_jobs( self, - input: ListDataAutomationLibraryIngestionJobsInput, + request: _models.ListDataAutomationLibraryIngestionJobsInput + | _models.ListDataAutomationLibraryIngestionJobsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDataAutomationLibraryIngestionJobsOutput: ... + + @_overload + def list_data_automation_library_ingestion_jobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAutomationLibraryIngestionJobsInputDict], ) -> ListDataAutomationLibraryIngestionJobsOutput: """ Lists all data automation library ingestion jobs Args: - input: - An instance of `ListDataAutomationLibraryIngestionJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -522,21 +893,41 @@ def list_data_automation_library_ingestion_jobs( Returns: An instance of `ListDataAutomationLibraryIngestionJobsOutput`. """ + + def list_data_automation_library_ingestion_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAutomationLibraryIngestionJobsOutput: return self._invoke( - input, _models.LIST_DATA_AUTOMATION_LIBRARY_INGESTION_JOBS, [], plugins + self._select_input( + _models.LIST_DATA_AUTOMATION_LIBRARY_INGESTION_JOBS, args, kwargs + ), + _models.LIST_DATA_AUTOMATION_LIBRARY_INGESTION_JOBS, + [], + plugins, ) + @_overload def list_data_automation_projects( self, - input: ListDataAutomationProjectsInput | None = None, + request: _models.ListDataAutomationProjectsInput + | _models.ListDataAutomationProjectsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDataAutomationProjectsOutput: ... + + @_overload + def list_data_automation_projects( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAutomationProjectsInputDict], ) -> ListDataAutomationProjectsOutput: """ Lists all existing Amazon Bedrock Data Automation Projects Args: - input: - An instance of `ListDataAutomationProjectsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -546,17 +937,39 @@ def list_data_automation_projects( Returns: An instance of `ListDataAutomationProjectsOutput`. """ - return self._invoke(input, _models.LIST_DATA_AUTOMATION_PROJECTS, [], plugins) + def list_data_automation_projects( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAutomationProjectsOutput: + return self._invoke( + self._select_input(_models.LIST_DATA_AUTOMATION_PROJECTS, args, kwargs), + _models.LIST_DATA_AUTOMATION_PROJECTS, + [], + plugins, + ) + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List tags for an Amazon Bedrock Data Automation resource Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -566,17 +979,38 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Tag an Amazon Bedrock Data Automation resource Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -586,17 +1020,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Untag an Amazon Bedrock Data Automation resource Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -606,17 +1061,38 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_blueprint( + self, + request: _models.UpdateBlueprintInput | _models.UpdateBlueprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBlueprintOutput: ... + + @_overload def update_blueprint( - self, input: UpdateBlueprintInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateBlueprintInputDict], ) -> UpdateBlueprintOutput: """ Updates an existing Amazon Bedrock Data Automation Blueprint Args: - input: - An instance of `UpdateBlueprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -626,19 +1102,39 @@ def update_blueprint( Returns: An instance of `UpdateBlueprintOutput`. """ - return self._invoke(input, _models.UPDATE_BLUEPRINT, [], plugins) + def update_blueprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBlueprintOutput: + return self._invoke( + self._select_input(_models.UPDATE_BLUEPRINT, args, kwargs), + _models.UPDATE_BLUEPRINT, + [], + plugins, + ) + + @_overload def update_data_automation_library( self, - input: UpdateDataAutomationLibraryInput, + request: _models.UpdateDataAutomationLibraryInput + | _models.UpdateDataAutomationLibraryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateDataAutomationLibraryOutput: ... + + @_overload + def update_data_automation_library( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataAutomationLibraryInputDict], ) -> UpdateDataAutomationLibraryOutput: """ Updates an existing Amazon Bedrock Data Automation Library Args: - input: - An instance of `UpdateDataAutomationLibraryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -648,19 +1144,39 @@ def update_data_automation_library( Returns: An instance of `UpdateDataAutomationLibraryOutput`. """ - return self._invoke(input, _models.UPDATE_DATA_AUTOMATION_LIBRARY, [], plugins) + def update_data_automation_library( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataAutomationLibraryOutput: + return self._invoke( + self._select_input(_models.UPDATE_DATA_AUTOMATION_LIBRARY, args, kwargs), + _models.UPDATE_DATA_AUTOMATION_LIBRARY, + [], + plugins, + ) + + @_overload def update_data_automation_project( self, - input: UpdateDataAutomationProjectInput, + request: _models.UpdateDataAutomationProjectInput + | _models.UpdateDataAutomationProjectInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateDataAutomationProjectOutput: ... + + @_overload + def update_data_automation_project( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataAutomationProjectInputDict], ) -> UpdateDataAutomationProjectOutput: """ Updates an existing Amazon Bedrock Data Automation Project Args: - input: - An instance of `UpdateDataAutomationProjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -670,7 +1186,16 @@ def update_data_automation_project( Returns: An instance of `UpdateDataAutomationProjectOutput`. """ - return self._invoke(input, _models.UPDATE_DATA_AUTOMATION_PROJECT, [], plugins) + + def update_data_automation_project( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataAutomationProjectOutput: + return self._invoke( + self._select_input(_models.UPDATE_DATA_AUTOMATION_PROJECT, args, kwargs), + _models.UPDATE_DATA_AUTOMATION_PROJECT, + [], + plugins, + ) def _new_config(self) -> BedrockDataAutomationConfig: return BedrockDataAutomationConfig.resolve() diff --git a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/models.pyi b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/models.pyi index e60cdb220..e5f265fdb 100644 --- a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/models.pyi +++ b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -49,6 +50,20 @@ class AudioExtractionCategory(_SerdeShape): type_configuration: AudioExtractionCategoryTypeConfiguration | None = ... """Configuration for different audio extraction category types""" +class AudioExtractionCategoryDict(TypedDict, total=False): + """Dictionary form of `AudioExtractionCategory`.""" + + state: Required[str] + """State""" + types: Sequence[str] | None + """List of Audio Extraction Category Type""" + type_configuration: ( + AudioExtractionCategoryTypeConfiguration + | AudioExtractionCategoryTypeConfigurationDict + | None + ) + """Configuration for different audio extraction category types""" + class AudioExtractionCategoryType(UnknownEnumMixin, StrEnum): AUDIO_CONTENT_MODERATION = "AUDIO_CONTENT_MODERATION" TRANSCRIPT = "TRANSCRIPT" @@ -61,6 +76,12 @@ class AudioExtractionCategoryTypeConfiguration(_SerdeShape): transcript: TranscriptConfiguration | None = ... """Configuration for transcript related features""" +class AudioExtractionCategoryTypeConfigurationDict(TypedDict, total=False): + """Dictionary form of `AudioExtractionCategoryTypeConfiguration`.""" + + transcript: TranscriptConfiguration | TranscriptConfigurationDict | None + """Configuration for transcript related features""" + class AudioGenerativeOutputLanguage(UnknownEnumMixin, StrEnum): """Configuration for Audio output language""" @@ -78,6 +99,16 @@ class AudioLanguageConfiguration(_SerdeShape): identify_multiple_languages: bool | None = ... """Enable multiple language identification in audio""" +class AudioLanguageConfigurationDict(TypedDict, total=False): + """Dictionary form of `AudioLanguageConfiguration`.""" + + input_languages: Sequence[str] | None + """List of supported audio languages""" + generative_output_language: str | None + """Configuration for Audio output language""" + identify_multiple_languages: bool | None + """Enable multiple language identification in audio""" + @dataclass(kw_only=True) class AudioOverrideConfiguration(_SerdeShape): """Override Configuration of Audio""" @@ -89,6 +120,22 @@ class AudioOverrideConfiguration(_SerdeShape): sensitive_data_configuration: SensitiveDataConfiguration | None = ... """Configuration for sensitive data detection and redaction""" +class AudioOverrideConfigurationDict(TypedDict, total=False): + """Dictionary form of `AudioOverrideConfiguration`.""" + + modality_processing: ( + ModalityProcessingConfiguration | ModalityProcessingConfigurationDict | None + ) + """Configuration to enable/disable processing of modality""" + language_configuration: ( + AudioLanguageConfiguration | AudioLanguageConfigurationDict | None + ) + """Optional configuration for audio language settings""" + sensitive_data_configuration: ( + SensitiveDataConfiguration | SensitiveDataConfigurationDict | None + ) + """Configuration for sensitive data detection and redaction""" + @dataclass(kw_only=True) class AudioStandardExtraction(_SerdeShape): """Standard Extraction Configuration of Audio""" @@ -96,6 +143,12 @@ class AudioStandardExtraction(_SerdeShape): category: AudioExtractionCategory """Category of Audio Extraction""" +class AudioStandardExtractionDict(TypedDict, total=False): + """Dictionary form of `AudioStandardExtraction`.""" + + category: Required[AudioExtractionCategory | AudioExtractionCategoryDict] + """Category of Audio Extraction""" + @dataclass(kw_only=True) class AudioStandardGenerativeField(_SerdeShape): """Standard Generative Field Configuration of Audio""" @@ -105,6 +158,14 @@ class AudioStandardGenerativeField(_SerdeShape): types: list[str] | None = ... """List of Audio Standard Generative Field Type""" +class AudioStandardGenerativeFieldDict(TypedDict, total=False): + """Dictionary form of `AudioStandardGenerativeField`.""" + + state: Required[str] + """State""" + types: Sequence[str] | None + """List of Audio Standard Generative Field Type""" + class AudioStandardGenerativeFieldType(UnknownEnumMixin, StrEnum): AUDIO_SUMMARY = "AUDIO_SUMMARY" IAB = "IAB" @@ -119,6 +180,16 @@ class AudioStandardOutputConfiguration(_SerdeShape): generative_field: AudioStandardGenerativeField | None = ... """Standard Generative Field Configuration of Audio""" +class AudioStandardOutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `AudioStandardOutputConfiguration`.""" + + extraction: AudioStandardExtraction | AudioStandardExtractionDict | None + """Standard Extraction Configuration of Audio""" + generative_field: ( + AudioStandardGenerativeField | AudioStandardGenerativeFieldDict | None + ) + """Standard Generative Field Configuration of Audio""" + @dataclass(kw_only=True) class Blueprint(_SerdeShape): """Contains the information of a Blueprint.""" @@ -159,6 +230,16 @@ class BlueprintFilter(_SerdeShape): blueprint_stage: str | None = ... """Stage of the Blueprint""" +class BlueprintFilterDict(TypedDict, total=False): + """Dictionary form of `BlueprintFilter`.""" + + blueprint_arn: Required[str] + """ARN of a Blueprint""" + blueprint_version: str | None + """Blueprint Version""" + blueprint_stage: str | None + """Stage of the Blueprint""" + @dataclass(kw_only=True) class BlueprintItem(_SerdeShape): """Blueprint Item""" @@ -170,6 +251,16 @@ class BlueprintItem(_SerdeShape): blueprint_stage: str | None = ... """Stage of the Blueprint""" +class BlueprintItemDict(TypedDict, total=False): + """Dictionary form of `BlueprintItem`.""" + + blueprint_arn: Required[str] + """ARN of a Blueprint""" + blueprint_version: str | None + """Blueprint Version""" + blueprint_stage: str | None + """Stage of the Blueprint""" + class BlueprintOptimizationJobStatus(UnknownEnumMixin, StrEnum): """List of status supported by optimization jobs""" @@ -188,6 +279,14 @@ class BlueprintOptimizationObject(_SerdeShape): stage: str | None = ... """Stage of blueprint.""" +class BlueprintOptimizationObjectDict(TypedDict, total=False): + """Dictionary form of `BlueprintOptimizationObject`.""" + + blueprint_arn: Required[str] + """Arn of blueprint.""" + stage: str | None + """Stage of blueprint.""" + @dataclass(kw_only=True) class BlueprintOptimizationOutputConfiguration(_SerdeShape): """Blueprint Optimization Output configuration.""" @@ -195,6 +294,12 @@ class BlueprintOptimizationOutputConfiguration(_SerdeShape): s3_object: S3Object """S3 object.""" +class BlueprintOptimizationOutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `BlueprintOptimizationOutputConfiguration`.""" + + s3_object: Required[S3Object | S3ObjectDict] + """S3 object.""" + @dataclass(kw_only=True) class BlueprintOptimizationSample(_SerdeShape): """Blueprint Recommendation Sample""" @@ -204,6 +309,14 @@ class BlueprintOptimizationSample(_SerdeShape): ground_truth_s3_object: S3Object """Ground truth for the Blueprint and Asset combination""" +class BlueprintOptimizationSampleDict(TypedDict, total=False): + """Dictionary form of `BlueprintOptimizationSample`.""" + + asset_s3_object: Required[S3Object | S3ObjectDict] + """S3 Object of the asset""" + ground_truth_s3_object: Required[S3Object | S3ObjectDict] + """Ground truth for the Blueprint and Asset combination""" + class BlueprintStage(UnknownEnumMixin, StrEnum): """Stage of the Blueprint""" @@ -241,6 +354,12 @@ class ChannelLabelingConfiguration(_SerdeShape): state: str """State""" +class ChannelLabelingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ChannelLabelingConfiguration`.""" + + state: Required[str] + """State""" + @dataclass(kw_only=True) class ConflictException(ServiceError, _SerdeShape): """ @@ -272,6 +391,21 @@ class CopyBlueprintStageInput(_SerdeShape): provided. """ +class CopyBlueprintStageInputDict(TypedDict, total=False): + """Dictionary form of `CopyBlueprintStageInput`.""" + + blueprint_arn: Required[str] + """Blueprint to be copied""" + source_stage: Required[str] + """Source stage to copy from""" + target_stage: Required[str] + """Target stage to copy to""" + client_token: str | None + """ + Client token for idempotency This field is autopopulated if not + provided. + """ + @dataclass(kw_only=True) class CopyBlueprintStageOutput(_SerdeShape): """CopyBlueprintStage Response""" @@ -306,6 +440,29 @@ class CreateBlueprintInput(_SerdeShape): tags: list[Tag] | None = ... """List of tags""" +class CreateBlueprintInputDict(TypedDict, total=False): + """Dictionary form of `CreateBlueprintInput`.""" + + blueprint_name: Required[str] + """Name of the Blueprint""" + type: Required[str] + """Type""" + blueprint_stage: str | None + """Stage of the Blueprint""" + schema: Required[str] + """Schema of the blueprint""" + client_token: str | None + """ + Client specified token used for idempotency checks This field is + autopopulated if not provided. + """ + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """KMS Encryption Configuration""" + tags: Sequence[Tag | TagDict] | None + """List of tags""" + @dataclass(kw_only=True) class CreateBlueprintOutput(_SerdeShape): """Create Blueprint Response""" @@ -332,6 +489,17 @@ class CreateBlueprintVersionInput(_SerdeShape): autopopulated if not provided. """ +class CreateBlueprintVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateBlueprintVersionInput`.""" + + blueprint_arn: Required[str] + """ARN generated at the server side when a Blueprint is created""" + client_token: str | None + """ + Client specified token used for idempotency checks This field is + autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateBlueprintVersionOutput(_SerdeShape): """Create Blueprint Version Response""" @@ -364,6 +532,25 @@ class CreateDataAutomationLibraryInput(_SerdeShape): tags: list[Tag] | None = ... """List of tags""" +class CreateDataAutomationLibraryInputDict(TypedDict, total=False): + """Dictionary form of `CreateDataAutomationLibraryInput`.""" + + library_name: Required[str] + """Name of the DataAutomationLibrary""" + library_description: str | None + """Description of the DataAutomationLibrary""" + client_token: str | None + """ + Client specified token used for idempotency checks This field is + autopopulated if not provided. + """ + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """KMS Encryption Configuration""" + tags: Sequence[Tag | TagDict] | None + """List of tags""" + @dataclass(kw_only=True) class CreateDataAutomationLibraryOutput(_SerdeShape): """Create DataAutomationLibrary Response""" @@ -412,6 +599,45 @@ class CreateDataAutomationProjectInput(_SerdeShape): tags: list[Tag] | None = ... """List of tags""" +class CreateDataAutomationProjectInputDict(TypedDict, total=False): + """Dictionary form of `CreateDataAutomationProjectInput`.""" + + project_name: Required[str] + """Name of the DataAutomationProject""" + project_description: str | None + """Description of the DataAutomationProject""" + project_stage: str | None + """Stage of the Project""" + project_type: str | None + """Type of the DataAutomationProject""" + standard_output_configuration: Required[ + StandardOutputConfiguration | StandardOutputConfigurationDict + ] + """Standard output configuration""" + custom_output_configuration: ( + CustomOutputConfiguration | CustomOutputConfigurationDict | None + ) + """Custom output configuration""" + override_configuration: OverrideConfiguration | OverrideConfigurationDict | None + """Override configuration""" + data_automation_library_configuration: ( + DataAutomationLibraryConfiguration + | DataAutomationLibraryConfigurationDict + | None + ) + """DataAutomation Library configuration""" + client_token: str | None + """ + Client specified token used for idempotency checks This field is + autopopulated if not provided. + """ + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """KMS Encryption Configuration""" + tags: Sequence[Tag | TagDict] | None + """List of tags""" + @dataclass(kw_only=True) class CreateDataAutomationProjectOutput(_SerdeShape): """Create DataAutomationProject Response""" @@ -439,6 +665,16 @@ class CustomOutputConfiguration(_SerdeShape): document: DocumentCustomOutputConfiguration | None = ... """Custom Configuration of Document""" +class CustomOutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `CustomOutputConfiguration`.""" + + blueprints: Sequence[BlueprintItem | BlueprintItemDict] | None + """List of Blueprint Item""" + document: ( + DocumentCustomOutputConfiguration | DocumentCustomOutputConfigurationDict | None + ) + """Custom Configuration of Document""" + @dataclass(kw_only=True) class DataAutomationLibrary(_SerdeShape): """Contains the information of a DataAutomationLibrary.""" @@ -467,6 +703,14 @@ class DataAutomationLibraryConfiguration(_SerdeShape): libraries: list[DataAutomationLibraryItem] | None = ... """List of DataAutomationLibrary Items""" +class DataAutomationLibraryConfigurationDict(TypedDict, total=False): + """Dictionary form of `DataAutomationLibraryConfiguration`.""" + + libraries: ( + Sequence[DataAutomationLibraryItem | DataAutomationLibraryItemDict] | None + ) + """List of DataAutomationLibrary Items""" + @dataclass class DataAutomationLibraryEntitySummaryVocabulary(_SerdeShape): """Summary of a Vocabulary entity""" @@ -501,6 +745,12 @@ class DataAutomationLibraryFilter(_SerdeShape): library_arn: str """ARN generated at the server side when a DataAutomationLibrary is created""" +class DataAutomationLibraryFilterDict(TypedDict, total=False): + """Dictionary form of `DataAutomationLibraryFilter`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + @dataclass(kw_only=True) class DataAutomationLibraryIngestionJob(_SerdeShape): """Contains the information of a DataAutomationLibraryIngestionJob""" @@ -548,6 +798,12 @@ class DataAutomationLibraryItem(_SerdeShape): library_arn: str """ARN generated at the server side when a DataAutomationLibrary is created""" +class DataAutomationLibraryItemDict(TypedDict, total=False): + """Dictionary form of `DataAutomationLibraryItem`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + class DataAutomationLibraryStatus(UnknownEnumMixin, StrEnum): """Status of DataAutomationLibrary""" @@ -609,6 +865,14 @@ class DataAutomationProjectFilter(_SerdeShape): project_stage: str | None = ... """Stage of the Project""" +class DataAutomationProjectFilterDict(TypedDict, total=False): + """Dictionary form of `DataAutomationProjectFilter`.""" + + project_arn: Required[str] + """ARN of a DataAutomationProject""" + project_stage: str | None + """Stage of the Project""" + class DataAutomationProjectStage(UnknownEnumMixin, StrEnum): """Stage of the Project""" @@ -659,6 +923,14 @@ class DeleteBlueprintInput(_SerdeShape): blueprint_version: str | None = ... """Optional field to delete a specific Blueprint version""" +class DeleteBlueprintInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBlueprintInput`.""" + + blueprint_arn: Required[str] + """ARN generated at the server side when a Blueprint is created""" + blueprint_version: str | None + """Optional field to delete a specific Blueprint version""" + @dataclass(kw_only=True) class DeleteBlueprintOutput(_SerdeShape): """Delete Blueprint Response""" @@ -678,6 +950,12 @@ class DeleteDataAutomationLibraryInput(_SerdeShape): library_arn: str | None = ... """ARN generated at the server side when a DataAutomationLibrary is created""" +class DeleteDataAutomationLibraryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDataAutomationLibraryInput`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + @dataclass(kw_only=True) class DeleteDataAutomationLibraryOutput(_SerdeShape): """Delete DataAutomationLibrary Response""" @@ -701,6 +979,12 @@ class DeleteDataAutomationProjectInput(_SerdeShape): project_arn: str | None = ... """ARN generated at the server side when a DataAutomationProject is created""" +class DeleteDataAutomationProjectInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDataAutomationProjectInput`.""" + + project_arn: Required[str] + """ARN generated at the server side when a DataAutomationProject is created""" + @dataclass(kw_only=True) class DeleteDataAutomationProjectOutput(_SerdeShape): """Delete DataAutomationProject Response""" @@ -724,6 +1008,12 @@ class DeleteEntitiesInfo(_SerdeShape): entity_ids: list[str] """List of EntityId""" +class DeleteEntitiesInfoDict(TypedDict, total=False): + """Dictionary form of `DeleteEntitiesInfo`.""" + + entity_ids: Required[Sequence[str]] + """List of EntityId""" + class DesiredModality(UnknownEnumMixin, StrEnum): """Desired Modality types""" @@ -739,6 +1029,12 @@ class DocumentBoundingBox(_SerdeShape): state: str """State""" +class DocumentBoundingBoxDict(TypedDict, total=False): + """Dictionary form of `DocumentBoundingBox`.""" + + state: Required[str] + """State""" + @dataclass(kw_only=True) class DocumentCustomOutputConfiguration(_SerdeShape): """Custom Configuration of Document""" @@ -746,6 +1042,12 @@ class DocumentCustomOutputConfiguration(_SerdeShape): fallback_blueprints: list[BlueprintItem] | None = ... """List of Fallback Blueprint Items""" +class DocumentCustomOutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `DocumentCustomOutputConfiguration`.""" + + fallback_blueprints: Sequence[BlueprintItem | BlueprintItemDict] | None + """List of Fallback Blueprint Items""" + @dataclass(kw_only=True) class DocumentExtractionGranularity(_SerdeShape): """Granularity of Document Extraction""" @@ -753,6 +1055,12 @@ class DocumentExtractionGranularity(_SerdeShape): types: list[str] | None = ... """List of Document Extraction Granularity Type""" +class DocumentExtractionGranularityDict(TypedDict, total=False): + """Dictionary form of `DocumentExtractionGranularity`.""" + + types: Sequence[str] | None + """List of Document Extraction Granularity Type""" + class DocumentExtractionGranularityType(UnknownEnumMixin, StrEnum): DOCUMENT = "DOCUMENT" PAGE = "PAGE" @@ -767,6 +1075,12 @@ class DocumentOutputAdditionalFileFormat(_SerdeShape): state: str """State""" +class DocumentOutputAdditionalFileFormatDict(TypedDict, total=False): + """Dictionary form of `DocumentOutputAdditionalFileFormat`.""" + + state: Required[str] + """State""" + @dataclass(kw_only=True) class DocumentOutputFormat(_SerdeShape): """Output Format of Document""" @@ -776,6 +1090,16 @@ class DocumentOutputFormat(_SerdeShape): additional_file_format: DocumentOutputAdditionalFileFormat """Additional File Format of Document Output""" +class DocumentOutputFormatDict(TypedDict, total=False): + """Dictionary form of `DocumentOutputFormat`.""" + + text_format: Required[DocumentOutputTextFormat | DocumentOutputTextFormatDict] + """Text Format of Document Output""" + additional_file_format: Required[ + DocumentOutputAdditionalFileFormat | DocumentOutputAdditionalFileFormatDict + ] + """Additional File Format of Document Output""" + @dataclass(kw_only=True) class DocumentOutputTextFormat(_SerdeShape): """Text Format of Document Output""" @@ -783,6 +1107,12 @@ class DocumentOutputTextFormat(_SerdeShape): types: list[str] | None = ... """List of Document Output Text Format Type""" +class DocumentOutputTextFormatDict(TypedDict, total=False): + """Dictionary form of `DocumentOutputTextFormat`.""" + + types: Sequence[str] | None + """List of Document Output Text Format Type""" + class DocumentOutputTextFormatType(UnknownEnumMixin, StrEnum): PLAIN_TEXT = "PLAIN_TEXT" MARKDOWN = "MARKDOWN" @@ -800,6 +1130,20 @@ class DocumentOverrideConfiguration(_SerdeShape): sensitive_data_configuration: SensitiveDataConfiguration | None = ... """Configuration for sensitive data detection and redaction""" +class DocumentOverrideConfigurationDict(TypedDict, total=False): + """Dictionary form of `DocumentOverrideConfiguration`.""" + + splitter: SplitterConfiguration | SplitterConfigurationDict | None + """Configuration of Splitter""" + modality_processing: ( + ModalityProcessingConfiguration | ModalityProcessingConfigurationDict | None + ) + """Configuration to enable/disable processing of modality""" + sensitive_data_configuration: ( + SensitiveDataConfiguration | SensitiveDataConfigurationDict | None + ) + """Configuration for sensitive data detection and redaction""" + @dataclass(kw_only=True) class DocumentStandardExtraction(_SerdeShape): """Standard Extraction Configuration of Document""" @@ -809,6 +1153,16 @@ class DocumentStandardExtraction(_SerdeShape): bounding_box: DocumentBoundingBox """Bounding Box Configuration of Document Extraction""" +class DocumentStandardExtractionDict(TypedDict, total=False): + """Dictionary form of `DocumentStandardExtraction`.""" + + granularity: Required[ + DocumentExtractionGranularity | DocumentExtractionGranularityDict + ] + """Granularity of Document Extraction""" + bounding_box: Required[DocumentBoundingBox | DocumentBoundingBoxDict] + """Bounding Box Configuration of Document Extraction""" + @dataclass(kw_only=True) class DocumentStandardGenerativeField(_SerdeShape): """Standard Generative Field Configuration of Document""" @@ -816,6 +1170,12 @@ class DocumentStandardGenerativeField(_SerdeShape): state: str """State""" +class DocumentStandardGenerativeFieldDict(TypedDict, total=False): + """Dictionary form of `DocumentStandardGenerativeField`.""" + + state: Required[str] + """State""" + @dataclass(kw_only=True) class DocumentStandardOutputConfiguration(_SerdeShape): """Standard Output Configuration of Document""" @@ -827,6 +1187,18 @@ class DocumentStandardOutputConfiguration(_SerdeShape): output_format: DocumentOutputFormat | None = ... """Output Format of Document""" +class DocumentStandardOutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `DocumentStandardOutputConfiguration`.""" + + extraction: DocumentStandardExtraction | DocumentStandardExtractionDict | None + """Standard Extraction Configuration of Document""" + generative_field: ( + DocumentStandardGenerativeField | DocumentStandardGenerativeFieldDict | None + ) + """Standard Generative Field Configuration of Document""" + output_format: DocumentOutputFormat | DocumentOutputFormatDict | None + """Output Format of Document""" + @dataclass(kw_only=True) class EncryptionConfiguration(_SerdeShape): """KMS Encryption Configuration""" @@ -836,6 +1208,14 @@ class EncryptionConfiguration(_SerdeShape): kms_encryption_context: dict[str, str] | None = ... """KMS Encryption Context""" +class EncryptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `EncryptionConfiguration`.""" + + kms_key_id: Required[str] + """KMS Key Identifier""" + kms_encryption_context: Mapping[str, str] | None + """KMS Encryption Context""" + @dataclass class EntityDetailsVocabulary(_SerdeShape): """Vocabulary entity with detailed information""" @@ -879,6 +1259,12 @@ class EventBridgeConfiguration(_SerdeShape): event_bridge_enabled: bool """Event bridge flag.""" +class EventBridgeConfigurationDict(TypedDict, total=False): + """Dictionary form of `EventBridgeConfiguration`.""" + + event_bridge_enabled: Required[bool] + """Event bridge flag.""" + @dataclass(kw_only=True) class GetBlueprintInput(_SerdeShape): """Get Blueprint Request""" @@ -890,6 +1276,16 @@ class GetBlueprintInput(_SerdeShape): blueprint_stage: str | None = ... """Optional field to get a specific Blueprint stage""" +class GetBlueprintInputDict(TypedDict, total=False): + """Dictionary form of `GetBlueprintInput`.""" + + blueprint_arn: Required[str] + """ARN generated at the server side when a Blueprint is created""" + blueprint_version: str | None + """Optional field to get a specific Blueprint version""" + blueprint_stage: str | None + """Optional field to get a specific Blueprint stage""" + @dataclass(kw_only=True) class GetBlueprintOptimizationStatusInput(_SerdeShape): """Structure for request of GetBlueprintOptimizationStatus API.""" @@ -897,6 +1293,12 @@ class GetBlueprintOptimizationStatusInput(_SerdeShape): invocation_arn: str | None = ... """Invocation arn.""" +class GetBlueprintOptimizationStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetBlueprintOptimizationStatusInput`.""" + + invocation_arn: Required[str] + """Invocation arn.""" + @dataclass(kw_only=True) class GetBlueprintOptimizationStatusOutput(_SerdeShape): """Response of GetBlueprintOptimizationStatus API.""" @@ -942,6 +1344,16 @@ class GetDataAutomationLibraryEntityInput(_SerdeShape): entity_id: str | None = ... """Unique identifier for the entity""" +class GetDataAutomationLibraryEntityInputDict(TypedDict, total=False): + """Dictionary form of `GetDataAutomationLibraryEntityInput`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + entity_type: Required[str] + """The entity type for which the entity is requested""" + entity_id: Required[str] + """Unique identifier for the entity""" + @dataclass(kw_only=True) class GetDataAutomationLibraryEntityOutput(_SerdeShape): """Get DataAutomationLibraryEntity Response""" @@ -965,6 +1377,14 @@ class GetDataAutomationLibraryIngestionJobInput(_SerdeShape): job_arn: str | None = ... """ARN of the DataAutomationLibraryIngestionJob""" +class GetDataAutomationLibraryIngestionJobInputDict(TypedDict, total=False): + """Dictionary form of `GetDataAutomationLibraryIngestionJobInput`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + job_arn: Required[str] + """ARN of the DataAutomationLibraryIngestionJob""" + @dataclass(kw_only=True) class GetDataAutomationLibraryIngestionJobOutput(_SerdeShape): """Get DataAutomationLibraryIngestionJob Response""" @@ -986,6 +1406,12 @@ class GetDataAutomationLibraryInput(_SerdeShape): library_arn: str | None = ... """ARN generated at the server side when a DataAutomationLibrary is created""" +class GetDataAutomationLibraryInputDict(TypedDict, total=False): + """Dictionary form of `GetDataAutomationLibraryInput`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + @dataclass(kw_only=True) class GetDataAutomationLibraryOutput(_SerdeShape): """Get DataAutomationLibrary Response""" @@ -1009,6 +1435,14 @@ class GetDataAutomationProjectInput(_SerdeShape): project_stage: str | None = ... """Optional field to delete a specific DataAutomationProject stage""" +class GetDataAutomationProjectInputDict(TypedDict, total=False): + """Dictionary form of `GetDataAutomationProjectInput`.""" + + project_arn: Required[str] + """ARN generated at the server side when a DataAutomationProject is created""" + project_stage: str | None + """Optional field to delete a specific DataAutomationProject stage""" + @dataclass(kw_only=True) class GetDataAutomationProjectOutput(_SerdeShape): """Get DataAutomationProject Response""" @@ -1030,6 +1464,12 @@ class ImageBoundingBox(_SerdeShape): state: str """State""" +class ImageBoundingBoxDict(TypedDict, total=False): + """Dictionary form of `ImageBoundingBox`.""" + + state: Required[str] + """State""" + @dataclass(kw_only=True) class ImageExtractionCategory(_SerdeShape): """Category of Image Extraction""" @@ -1039,6 +1479,14 @@ class ImageExtractionCategory(_SerdeShape): types: list[str] | None = ... """List of Image Extraction Category""" +class ImageExtractionCategoryDict(TypedDict, total=False): + """Dictionary form of `ImageExtractionCategory`.""" + + state: Required[str] + """State""" + types: Sequence[str] | None + """List of Image Extraction Category""" + class ImageExtractionCategoryType(UnknownEnumMixin, StrEnum): CONTENT_MODERATION = "CONTENT_MODERATION" TEXT_DETECTION = "TEXT_DETECTION" @@ -1053,6 +1501,18 @@ class ImageOverrideConfiguration(_SerdeShape): sensitive_data_configuration: SensitiveDataConfiguration | None = ... """Configuration for sensitive data detection and redaction""" +class ImageOverrideConfigurationDict(TypedDict, total=False): + """Dictionary form of `ImageOverrideConfiguration`.""" + + modality_processing: ( + ModalityProcessingConfiguration | ModalityProcessingConfigurationDict | None + ) + """Configuration to enable/disable processing of modality""" + sensitive_data_configuration: ( + SensitiveDataConfiguration | SensitiveDataConfigurationDict | None + ) + """Configuration for sensitive data detection and redaction""" + @dataclass(kw_only=True) class ImageStandardExtraction(_SerdeShape): """Standard Extraction Configuration of Image""" @@ -1062,6 +1522,14 @@ class ImageStandardExtraction(_SerdeShape): bounding_box: ImageBoundingBox """Bounding Box Configuration of Image Extraction""" +class ImageStandardExtractionDict(TypedDict, total=False): + """Dictionary form of `ImageStandardExtraction`.""" + + category: Required[ImageExtractionCategory | ImageExtractionCategoryDict] + """Category of Image Extraction""" + bounding_box: Required[ImageBoundingBox | ImageBoundingBoxDict] + """Bounding Box Configuration of Image Extraction""" + @dataclass(kw_only=True) class ImageStandardGenerativeField(_SerdeShape): """Standard Generative Field Configuration of Image""" @@ -1071,6 +1539,14 @@ class ImageStandardGenerativeField(_SerdeShape): types: list[str] | None = ... """List of Image Standard Generative Field Type""" +class ImageStandardGenerativeFieldDict(TypedDict, total=False): + """Dictionary form of `ImageStandardGenerativeField`.""" + + state: Required[str] + """State""" + types: Sequence[str] | None + """List of Image Standard Generative Field Type""" + class ImageStandardGenerativeFieldType(UnknownEnumMixin, StrEnum): IMAGE_SUMMARY = "IMAGE_SUMMARY" IAB = "IAB" @@ -1084,6 +1560,16 @@ class ImageStandardOutputConfiguration(_SerdeShape): generative_field: ImageStandardGenerativeField | None = ... """Standard Generative Field Configuration of Image""" +class ImageStandardOutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `ImageStandardOutputConfiguration`.""" + + extraction: ImageStandardExtraction | ImageStandardExtractionDict | None + """Standard Extraction Configuration of Image""" + generative_field: ( + ImageStandardGenerativeField | ImageStandardGenerativeFieldDict | None + ) + """Standard Generative Field Configuration of Image""" + @dataclass class InlinePayloadUpsertEntitiesInfo(_SerdeShape): """ @@ -1119,6 +1605,22 @@ InlinePayload = Union[ class _InlinePayloadDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> InlinePayload: ... +class InlinePayloadUpsertEntitiesInfoDict(TypedDict): + upsert_entities_info: Sequence[UpsertEntityInfo | UpsertEntityInfoDict] + """ + List of UpsertEntityInfo for upserting data in a + DataAutomationLibraryIngestionJob + """ + +class InlinePayloadDeleteEntitiesInfoDict(TypedDict): + delete_entities_info: DeleteEntitiesInfo | DeleteEntitiesInfoDict + """Input for entities needed to be deleted""" + +InlinePayloadDict = Union[ + InlinePayloadUpsertEntitiesInfoDict | InlinePayloadDeleteEntitiesInfoDict +] +"""Dictionary form of `InlinePayload`, setting exactly one variant.""" + @dataclass(kw_only=True) class InputConfiguration(_SerdeShape): """Input configuration for DataAutomationLibraryIngestionJob""" @@ -1128,6 +1630,14 @@ class InputConfiguration(_SerdeShape): inline_payload: InlinePayload | None = ... """Input Payload""" +class InputConfigurationDict(TypedDict, total=False): + """Dictionary form of `InputConfiguration`.""" + + s3_object: S3Object | S3ObjectDict | None + """S3 object""" + inline_payload: InlinePayload | InlinePayloadDict | None + """Input Payload""" + @dataclass(kw_only=True) class InternalServerException(ServiceError, _SerdeShape): """ @@ -1160,6 +1670,29 @@ class InvokeBlueprintOptimizationAsyncInput(_SerdeShape): tags: list[Tag] | None = ... """List of tags.""" +class InvokeBlueprintOptimizationAsyncInputDict(TypedDict, total=False): + """Dictionary form of `InvokeBlueprintOptimizationAsyncInput`.""" + + blueprint: Required[BlueprintOptimizationObject | BlueprintOptimizationObjectDict] + """Blueprint to be optimized""" + samples: Required[ + Sequence[BlueprintOptimizationSample | BlueprintOptimizationSampleDict] + ] + """List of Blueprint Optimization Samples""" + output_configuration: Required[ + BlueprintOptimizationOutputConfiguration + | BlueprintOptimizationOutputConfigurationDict + ] + """Output configuration where the results should be placed""" + data_automation_profile_arn: Required[str] + """Data automation profile ARN""" + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """Encryption configuration.""" + tags: Sequence[Tag | TagDict] | None + """List of tags.""" + @dataclass(kw_only=True) class InvokeBlueprintOptimizationAsyncOutput(_SerdeShape): """Invoke Blueprint Optimization Async Response""" @@ -1195,6 +1728,28 @@ class InvokeDataAutomationLibraryIngestionJobInput(_SerdeShape): tags: list[Tag] | None = ... """List of tags""" +class InvokeDataAutomationLibraryIngestionJobInputDict(TypedDict, total=False): + """Dictionary form of `InvokeDataAutomationLibraryIngestionJobInput`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + client_token: str | None + """Idempotency token This field is autopopulated if not provided.""" + input_configuration: Required[InputConfiguration | InputConfigurationDict] + """Input configuration of DataAutomationLibraryIngestionJob request""" + entity_type: Required[str] + """The entity type for which DataAutomationLibraryIngestionJob is being run""" + operation_type: Required[str] + """The operation to be performed by DataAutomationLibraryIngestionJob""" + output_configuration: Required[OutputConfiguration | OutputConfigurationDict] + """Output configuration of DataAutomationLibraryIngestionJob""" + notification_configuration: ( + NotificationConfiguration | NotificationConfigurationDict | None + ) + """Notification configuration.""" + tags: Sequence[Tag | TagDict] | None + """List of tags""" + @dataclass(kw_only=True) class InvokeDataAutomationLibraryIngestionJobOutput(_SerdeShape): """Invoke DataAutomationLibraryIngestionJob Response""" @@ -1255,6 +1810,22 @@ class ListBlueprintsInput(_SerdeShape): project_filter: DataAutomationProjectFilter | None = ... """Data Automation Project Filter""" +class ListBlueprintsInputDict(TypedDict, total=False): + """Dictionary form of `ListBlueprintsInput`.""" + + blueprint_arn: str | None + """ARN of a Blueprint""" + resource_owner: str | None + """Resource Owner""" + blueprint_stage_filter: str | None + """Blueprint Stage filter""" + max_results: int | None + """Max Results""" + next_token: str | None + """Pagination token""" + project_filter: DataAutomationProjectFilter | DataAutomationProjectFilterDict | None + """Data Automation Project Filter""" + @dataclass(kw_only=True) class ListBlueprintsOutput(_SerdeShape): """List Blueprint Response""" @@ -1282,6 +1853,16 @@ class ListDataAutomationLibrariesInput(_SerdeShape): project_filter: DataAutomationProjectFilter | None = ... """Data Automation Project Filter""" +class ListDataAutomationLibrariesInputDict(TypedDict, total=False): + """Dictionary form of `ListDataAutomationLibrariesInput`.""" + + max_results: int | None + """Max Results""" + next_token: str | None + """Pagination token""" + project_filter: DataAutomationProjectFilter | DataAutomationProjectFilterDict | None + """Data Automation Project Filter""" + @dataclass(kw_only=True) class ListDataAutomationLibrariesOutput(_SerdeShape): """List DataAutomationLibraries Response""" @@ -1311,6 +1892,18 @@ class ListDataAutomationLibraryEntitiesInput(_SerdeShape): next_token: str | None = ... """Pagination token for retrieving the next set of results""" +class ListDataAutomationLibraryEntitiesInputDict(TypedDict, total=False): + """Dictionary form of `ListDataAutomationLibraryEntitiesInput`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + entity_type: Required[str] + """The entity type for which the entity list is requested""" + max_results: int | None + """Max Results""" + next_token: str | None + """Pagination token for retrieving the next set of results""" + @dataclass(kw_only=True) class ListDataAutomationLibraryEntitiesOutput(_SerdeShape): """List DataAutomationLibraryEntities Response""" @@ -1338,6 +1931,16 @@ class ListDataAutomationLibraryIngestionJobsInput(_SerdeShape): next_token: str | None = ... """Pagination token for retrieving the next set of results""" +class ListDataAutomationLibraryIngestionJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListDataAutomationLibraryIngestionJobsInput`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + max_results: int | None + """Max Results""" + next_token: str | None + """Pagination token for retrieving the next set of results""" + @dataclass(kw_only=True) class ListDataAutomationLibraryIngestionJobsOutput(_SerdeShape): """List DataAutomationLibraryIngestionJobs Response""" @@ -1371,6 +1974,22 @@ class ListDataAutomationProjectsInput(_SerdeShape): library_filter: DataAutomationLibraryFilter | None = ... """Data Automation Library Filter""" +class ListDataAutomationProjectsInputDict(TypedDict, total=False): + """Dictionary form of `ListDataAutomationProjectsInput`.""" + + max_results: int | None + """Max Results""" + next_token: str | None + """Pagination token""" + project_stage_filter: str | None + """Project Stage filter""" + blueprint_filter: BlueprintFilter | BlueprintFilterDict | None + """Blueprint Filter""" + resource_owner: str | None + """Resource Owner""" + library_filter: DataAutomationLibraryFilter | DataAutomationLibraryFilterDict | None + """Data Automation Library Filter""" + @dataclass(kw_only=True) class ListDataAutomationProjectsOutput(_SerdeShape): """List DataAutomationProject Response""" @@ -1394,6 +2013,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """ARN of a taggable resource""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """ARN of a taggable resource""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -1415,6 +2040,12 @@ class ModalityProcessingConfiguration(_SerdeShape): state: str | None = ... """State""" +class ModalityProcessingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ModalityProcessingConfiguration`.""" + + state: str | None + """State""" + @dataclass(kw_only=True) class ModalityRoutingConfiguration(_SerdeShape): """Configuration for routing file type to desired modality""" @@ -1428,6 +2059,18 @@ class ModalityRoutingConfiguration(_SerdeShape): mov: str | None = ... """Desired Modality types""" +class ModalityRoutingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ModalityRoutingConfiguration`.""" + + jpeg: str | None + """Desired Modality types""" + png: str | None + """Desired Modality types""" + mp4: str | None + """Desired Modality types""" + mov: str | None + """Desired Modality types""" + @dataclass(kw_only=True) class NotificationConfiguration(_SerdeShape): """Notification configuration.""" @@ -1435,6 +2078,14 @@ class NotificationConfiguration(_SerdeShape): event_bridge_configuration: EventBridgeConfiguration """Event bridge configuration.""" +class NotificationConfigurationDict(TypedDict, total=False): + """Dictionary form of `NotificationConfiguration`.""" + + event_bridge_configuration: Required[ + EventBridgeConfiguration | EventBridgeConfigurationDict + ] + """Event bridge configuration.""" + @dataclass(kw_only=True) class OutputConfiguration(_SerdeShape): """Output configuration for DataAutomationLibraryIngestionJob""" @@ -1442,6 +2093,12 @@ class OutputConfiguration(_SerdeShape): s3_uri: str """S3 Uri""" +class OutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `OutputConfiguration`.""" + + s3_uri: Required[str] + """S3 Uri""" + @dataclass(kw_only=True) class OverrideConfiguration(_SerdeShape): """Override configuration""" @@ -1457,6 +2114,22 @@ class OverrideConfiguration(_SerdeShape): modality_routing: ModalityRoutingConfiguration | None = ... """Configuration for routing file type to desired modality""" +class OverrideConfigurationDict(TypedDict, total=False): + """Dictionary form of `OverrideConfiguration`.""" + + document: DocumentOverrideConfiguration | DocumentOverrideConfigurationDict | None + """Override Configuration of Document""" + image: ImageOverrideConfiguration | ImageOverrideConfigurationDict | None + """Override Configuration of Image""" + video: VideoOverrideConfiguration | VideoOverrideConfigurationDict | None + """Override Configuration of Video""" + audio: AudioOverrideConfiguration | AudioOverrideConfigurationDict | None + """Override Configuration of Audio""" + modality_routing: ( + ModalityRoutingConfiguration | ModalityRoutingConfigurationDict | None + ) + """Configuration for routing file type to desired modality""" + @dataclass(kw_only=True) class Phrase(_SerdeShape): """Phrase structure for vocabulary""" @@ -1466,6 +2139,14 @@ class Phrase(_SerdeShape): display_as_text: str | None = ... """Text to configure how phrase is displayed in Transcript""" +class PhraseDict(TypedDict, total=False): + """Dictionary form of `Phrase`.""" + + text: Required[str] + """Text content of the phrase""" + display_as_text: str | None + """Text to configure how phrase is displayed in Transcript""" + @dataclass(kw_only=True) class PIIEntitiesConfiguration(_SerdeShape): """Configuration for PII entities detection and redaction""" @@ -1475,6 +2156,14 @@ class PIIEntitiesConfiguration(_SerdeShape): redaction_mask_mode: str | None = ... """Mode for redacting detected PII""" +class PIIEntitiesConfigurationDict(TypedDict, total=False): + """Dictionary form of `PIIEntitiesConfiguration`.""" + + pii_entity_types: Sequence[str] | None + """Types of PII entities to detect""" + redaction_mask_mode: str | None + """Mode for redacting detected PII""" + class PIIEntityType(UnknownEnumMixin, StrEnum): """ Types of PII entities that can be detected, we will support every types @@ -1620,6 +2309,14 @@ class S3Object(_SerdeShape): version: str | None = ... """S3 object version.""" +class S3ObjectDict(TypedDict, total=False): + """Dictionary form of `S3Object`.""" + + s3_uri: Required[str] + """S3 uri.""" + version: str | None + """S3 object version.""" + @dataclass(kw_only=True) class SensitiveDataConfiguration(_SerdeShape): """Configuration for sensitive data detection and redaction""" @@ -1631,6 +2328,18 @@ class SensitiveDataConfiguration(_SerdeShape): pii_entities_configuration: PIIEntitiesConfiguration | None = ... """Configuration for PII entities detection and redaction""" +class SensitiveDataConfigurationDict(TypedDict, total=False): + """Dictionary form of `SensitiveDataConfiguration`.""" + + detection_mode: Required[str] + """Mode for sensitive data detection""" + detection_scope: Sequence[str] | None + """Scope of detection - what types of sensitive data to detect""" + pii_entities_configuration: ( + PIIEntitiesConfiguration | PIIEntitiesConfigurationDict | None + ) + """Configuration for PII entities detection and redaction""" + class SensitiveDataDetectionMode(UnknownEnumMixin, StrEnum): """Mode for sensitive data detection""" @@ -1666,6 +2375,12 @@ class SpeakerLabelingConfiguration(_SerdeShape): state: str """State""" +class SpeakerLabelingConfigurationDict(TypedDict, total=False): + """Dictionary form of `SpeakerLabelingConfiguration`.""" + + state: Required[str] + """State""" + @dataclass(kw_only=True) class SplitterConfiguration(_SerdeShape): """Configuration of Splitter""" @@ -1673,6 +2388,12 @@ class SplitterConfiguration(_SerdeShape): state: str | None = ... """State""" +class SplitterConfigurationDict(TypedDict, total=False): + """Dictionary form of `SplitterConfiguration`.""" + + state: str | None + """State""" + @dataclass(kw_only=True) class StandardOutputConfiguration(_SerdeShape): """Standard output configuration""" @@ -1686,6 +2407,28 @@ class StandardOutputConfiguration(_SerdeShape): audio: AudioStandardOutputConfiguration | None = ... """Standard Output Configuration of Audio""" +class StandardOutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `StandardOutputConfiguration`.""" + + document: ( + DocumentStandardOutputConfiguration + | DocumentStandardOutputConfigurationDict + | None + ) + """Standard Output Configuration of Document""" + image: ( + ImageStandardOutputConfiguration | ImageStandardOutputConfigurationDict | None + ) + """Standard Output Configuration of Image""" + video: ( + VideoStandardOutputConfiguration | VideoStandardOutputConfigurationDict | None + ) + """Standard Output Configuration of Video""" + audio: ( + AudioStandardOutputConfiguration | AudioStandardOutputConfigurationDict | None + ) + """Standard Output Configuration of Audio""" + class State(UnknownEnumMixin, StrEnum): """State""" @@ -1704,6 +2447,17 @@ class Tag(_SerdeShape): ``{=html}. """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """Defines the context of the tag.""" + value: Required[str] + """ + Defines the value within the context. e.g. + ``{=html}. + """ + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -1713,6 +2467,14 @@ class TagResourceInput(_SerdeShape): tags: list[Tag] | None = ... """List of tags""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """ARN of a taggable resource""" + tags: Required[Sequence[Tag | TagDict]] + """List of tags""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -1746,6 +2508,18 @@ class TranscriptConfiguration(_SerdeShape): channel_labeling: ChannelLabelingConfiguration | None = ... """Channel labeling configuration""" +class TranscriptConfigurationDict(TypedDict, total=False): + """Dictionary form of `TranscriptConfiguration`.""" + + speaker_labeling: ( + SpeakerLabelingConfiguration | SpeakerLabelingConfigurationDict | None + ) + """Speaker labeling configuration""" + channel_labeling: ( + ChannelLabelingConfiguration | ChannelLabelingConfigurationDict | None + ) + """Channel labeling configuration""" + class Type(UnknownEnumMixin, StrEnum): """Type""" @@ -1763,6 +2537,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """List of tag keys""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """ARN of a taggable resource""" + tag_keys: Required[Sequence[str]] + """List of tag keys""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -1788,6 +2570,20 @@ class UpdateBlueprintInput(_SerdeShape): encryption_configuration: EncryptionConfiguration | None = ... """KMS Encryption Configuration""" +class UpdateBlueprintInputDict(TypedDict, total=False): + """Dictionary form of `UpdateBlueprintInput`.""" + + blueprint_arn: Required[str] + """ARN generated at the server side when a Blueprint is created""" + schema: Required[str] + """Schema of the blueprint""" + blueprint_stage: str | None + """Stage of the Blueprint""" + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """KMS Encryption Configuration""" + @dataclass(kw_only=True) class UpdateBlueprintOutput(_SerdeShape): """Update Blueprint Response""" @@ -1816,6 +2612,19 @@ class UpdateDataAutomationLibraryInput(_SerdeShape): autopopulated if not provided. """ +class UpdateDataAutomationLibraryInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDataAutomationLibraryInput`.""" + + library_arn: Required[str] + """ARN generated at the server side when a DataAutomationLibrary is created""" + library_description: str | None + """Description of the DataAutomationLibrary""" + client_token: str | None + """ + Client specified token used for idempotency checks This field is + autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateDataAutomationLibraryOutput(_SerdeShape): """Update DataAutomationLibrary Response""" @@ -1855,6 +2664,36 @@ class UpdateDataAutomationProjectInput(_SerdeShape): encryption_configuration: EncryptionConfiguration | None = ... """KMS Encryption Configuration""" +class UpdateDataAutomationProjectInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDataAutomationProjectInput`.""" + + project_arn: Required[str] + """ARN generated at the server side when a DataAutomationProject is created""" + project_stage: str | None + """Stage of the Project""" + project_description: str | None + """Description of the DataAutomationProject""" + standard_output_configuration: Required[ + StandardOutputConfiguration | StandardOutputConfigurationDict + ] + """Standard output configuration""" + custom_output_configuration: ( + CustomOutputConfiguration | CustomOutputConfigurationDict | None + ) + """Custom output configuration""" + override_configuration: OverrideConfiguration | OverrideConfigurationDict | None + """Override configuration""" + data_automation_library_configuration: ( + DataAutomationLibraryConfiguration + | DataAutomationLibraryConfigurationDict + | None + ) + """DataAutomation Library configuration""" + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """KMS Encryption Configuration""" + @dataclass(kw_only=True) class UpdateDataAutomationProjectOutput(_SerdeShape): """Update DataAutomationProject Response""" @@ -1898,6 +2737,13 @@ DataAutomationLibraryIngestionJob class _UpsertEntityInfoDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> UpsertEntityInfo: ... +class UpsertEntityInfoVocabularyDict(TypedDict): + vocabulary: VocabularyEntityInfo | VocabularyEntityInfoDict + """Vocabulary entity info with detailed information""" + +UpsertEntityInfoDict = Union[UpsertEntityInfoVocabularyDict] +"""Dictionary form of `UpsertEntityInfo`, setting exactly one variant.""" + @dataclass(kw_only=True) class ValidationException(ServiceError, _SerdeShape): """This exception is thrown when the request's input validation fails""" @@ -1931,6 +2777,12 @@ class VideoBoundingBox(_SerdeShape): state: str """State""" +class VideoBoundingBoxDict(TypedDict, total=False): + """Dictionary form of `VideoBoundingBox`.""" + + state: Required[str] + """State""" + @dataclass(kw_only=True) class VideoExtractionCategory(_SerdeShape): """Category of Video Extraction""" @@ -1940,6 +2792,14 @@ class VideoExtractionCategory(_SerdeShape): types: list[str] | None = ... """List of Video Extraction Category Type""" +class VideoExtractionCategoryDict(TypedDict, total=False): + """Dictionary form of `VideoExtractionCategory`.""" + + state: Required[str] + """State""" + types: Sequence[str] | None + """List of Video Extraction Category Type""" + class VideoExtractionCategoryType(UnknownEnumMixin, StrEnum): CONTENT_MODERATION = "CONTENT_MODERATION" TEXT_DETECTION = "TEXT_DETECTION" @@ -1955,6 +2815,18 @@ class VideoOverrideConfiguration(_SerdeShape): sensitive_data_configuration: SensitiveDataConfiguration | None = ... """Configuration for sensitive data detection and redaction""" +class VideoOverrideConfigurationDict(TypedDict, total=False): + """Dictionary form of `VideoOverrideConfiguration`.""" + + modality_processing: ( + ModalityProcessingConfiguration | ModalityProcessingConfigurationDict | None + ) + """Configuration to enable/disable processing of modality""" + sensitive_data_configuration: ( + SensitiveDataConfiguration | SensitiveDataConfigurationDict | None + ) + """Configuration for sensitive data detection and redaction""" + @dataclass(kw_only=True) class VideoStandardExtraction(_SerdeShape): """Standard Extraction Configuration of Video""" @@ -1964,6 +2836,14 @@ class VideoStandardExtraction(_SerdeShape): bounding_box: VideoBoundingBox """Bounding Box Configuration of Video Extraction""" +class VideoStandardExtractionDict(TypedDict, total=False): + """Dictionary form of `VideoStandardExtraction`.""" + + category: Required[VideoExtractionCategory | VideoExtractionCategoryDict] + """Category of Video Extraction""" + bounding_box: Required[VideoBoundingBox | VideoBoundingBoxDict] + """Bounding Box Configuration of Video Extraction""" + @dataclass(kw_only=True) class VideoStandardGenerativeField(_SerdeShape): """Standard Generative Field Configuration of Video""" @@ -1973,6 +2853,14 @@ class VideoStandardGenerativeField(_SerdeShape): types: list[str] | None = ... """List of Video Standard Generative Field Type""" +class VideoStandardGenerativeFieldDict(TypedDict, total=False): + """Dictionary form of `VideoStandardGenerativeField`.""" + + state: Required[str] + """State""" + types: Sequence[str] | None + """List of Video Standard Generative Field Type""" + class VideoStandardGenerativeFieldType(UnknownEnumMixin, StrEnum): VIDEO_SUMMARY = "VIDEO_SUMMARY" IAB = "IAB" @@ -1987,6 +2875,16 @@ class VideoStandardOutputConfiguration(_SerdeShape): generative_field: VideoStandardGenerativeField | None = ... """Standard Generative Field Configuration of Video""" +class VideoStandardOutputConfigurationDict(TypedDict, total=False): + """Dictionary form of `VideoStandardOutputConfiguration`.""" + + extraction: VideoStandardExtraction | VideoStandardExtractionDict | None + """Standard Extraction Configuration of Video""" + generative_field: ( + VideoStandardGenerativeField | VideoStandardGenerativeFieldDict | None + ) + """Standard Generative Field Configuration of Video""" + @dataclass(kw_only=True) class VocabularyEntity(_SerdeShape): """Vocabulary entity with detailed information""" @@ -2015,6 +2913,18 @@ class VocabularyEntityInfo(_SerdeShape): phrases: list[Phrase] """List of phrases""" +class VocabularyEntityInfoDict(TypedDict, total=False): + """Dictionary form of `VocabularyEntityInfo`.""" + + entity_id: str | None + """Unique identifier for the entity""" + description: str | None + """Description of the entity""" + language: Required[str] + """Supported input languages""" + phrases: Required[Sequence[Phrase | PhraseDict]] + """List of phrases""" + @dataclass(kw_only=True) class VocabularyEntitySummary(_SerdeShape): """Summary of a Vocabulary entity""" diff --git a/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/py.typed b/clients/aws-sdk-bedrock-data-automation/src/aws_sdk_bedrock_data_automation/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-bedrock-data-automation/tests/_typecheck.py b/clients/aws-sdk-bedrock-data-automation/tests/_typecheck.py index a7e1b1593..e1a1cb6e5 100644 --- a/clients/aws-sdk-bedrock-data-automation/tests/_typecheck.py +++ b/clients/aws-sdk-bedrock-data-automation/tests/_typecheck.py @@ -2,137 +2,228 @@ from typing import Any +from aws_sdk_bedrock_data_automation.aio.client import AsyncBedrockDataAutomationClient +from aws_sdk_bedrock_data_automation.client import BedrockDataAutomationClient from aws_sdk_bedrock_data_automation.models import ( AudioExtractionCategory, + AudioExtractionCategoryDict, AudioExtractionCategoryTypeConfiguration, + AudioExtractionCategoryTypeConfigurationDict, AudioLanguageConfiguration, + AudioLanguageConfigurationDict, AudioOverrideConfiguration, + AudioOverrideConfigurationDict, AudioStandardExtraction, + AudioStandardExtractionDict, AudioStandardGenerativeField, + AudioStandardGenerativeFieldDict, AudioStandardOutputConfiguration, + AudioStandardOutputConfigurationDict, Blueprint, BlueprintFilter, + BlueprintFilterDict, BlueprintItem, + BlueprintItemDict, BlueprintOptimizationObject, + BlueprintOptimizationObjectDict, BlueprintOptimizationOutputConfiguration, + BlueprintOptimizationOutputConfigurationDict, BlueprintOptimizationSample, + BlueprintOptimizationSampleDict, BlueprintSummary, ChannelLabelingConfiguration, + ChannelLabelingConfigurationDict, CopyBlueprintStageInput, + CopyBlueprintStageInputDict, CopyBlueprintStageOutput, CreateBlueprintInput, + CreateBlueprintInputDict, CreateBlueprintOutput, CreateBlueprintVersionInput, + CreateBlueprintVersionInputDict, CreateBlueprintVersionOutput, CreateDataAutomationLibraryInput, + CreateDataAutomationLibraryInputDict, CreateDataAutomationLibraryOutput, CreateDataAutomationProjectInput, + CreateDataAutomationProjectInputDict, CreateDataAutomationProjectOutput, CustomOutputConfiguration, + CustomOutputConfigurationDict, DataAutomationLibrary, DataAutomationLibraryConfiguration, + DataAutomationLibraryConfigurationDict, DataAutomationLibraryFilter, + DataAutomationLibraryFilterDict, DataAutomationLibraryIngestionJob, DataAutomationLibraryIngestionJobSummary, DataAutomationLibraryItem, + DataAutomationLibraryItemDict, DataAutomationLibrarySummary, DataAutomationProject, DataAutomationProjectFilter, + DataAutomationProjectFilterDict, DataAutomationProjectSummary, DeleteBlueprintInput, + DeleteBlueprintInputDict, DeleteBlueprintOutput, DeleteDataAutomationLibraryInput, + DeleteDataAutomationLibraryInputDict, DeleteDataAutomationLibraryOutput, DeleteDataAutomationProjectInput, + DeleteDataAutomationProjectInputDict, DeleteDataAutomationProjectOutput, DeleteEntitiesInfo, + DeleteEntitiesInfoDict, DocumentBoundingBox, + DocumentBoundingBoxDict, DocumentCustomOutputConfiguration, + DocumentCustomOutputConfigurationDict, DocumentExtractionGranularity, + DocumentExtractionGranularityDict, DocumentOutputAdditionalFileFormat, + DocumentOutputAdditionalFileFormatDict, DocumentOutputFormat, + DocumentOutputFormatDict, DocumentOutputTextFormat, + DocumentOutputTextFormatDict, DocumentOverrideConfiguration, + DocumentOverrideConfigurationDict, DocumentStandardExtraction, + DocumentStandardExtractionDict, DocumentStandardGenerativeField, + DocumentStandardGenerativeFieldDict, DocumentStandardOutputConfiguration, + DocumentStandardOutputConfigurationDict, EncryptionConfiguration, + EncryptionConfigurationDict, EntityTypeInfo, EventBridgeConfiguration, + EventBridgeConfigurationDict, GetBlueprintInput, + GetBlueprintInputDict, GetBlueprintOptimizationStatusInput, + GetBlueprintOptimizationStatusInputDict, GetBlueprintOptimizationStatusOutput, GetBlueprintOutput, GetDataAutomationLibraryEntityInput, + GetDataAutomationLibraryEntityInputDict, GetDataAutomationLibraryEntityOutput, GetDataAutomationLibraryIngestionJobInput, + GetDataAutomationLibraryIngestionJobInputDict, GetDataAutomationLibraryIngestionJobOutput, GetDataAutomationLibraryInput, + GetDataAutomationLibraryInputDict, GetDataAutomationLibraryOutput, GetDataAutomationProjectInput, + GetDataAutomationProjectInputDict, GetDataAutomationProjectOutput, ImageBoundingBox, + ImageBoundingBoxDict, ImageExtractionCategory, + ImageExtractionCategoryDict, ImageOverrideConfiguration, + ImageOverrideConfigurationDict, ImageStandardExtraction, + ImageStandardExtractionDict, ImageStandardGenerativeField, + ImageStandardGenerativeFieldDict, ImageStandardOutputConfiguration, + ImageStandardOutputConfigurationDict, + InlinePayloadDict, InputConfiguration, + InputConfigurationDict, InvokeBlueprintOptimizationAsyncInput, + InvokeBlueprintOptimizationAsyncInputDict, InvokeBlueprintOptimizationAsyncOutput, InvokeDataAutomationLibraryIngestionJobInput, + InvokeDataAutomationLibraryIngestionJobInputDict, InvokeDataAutomationLibraryIngestionJobOutput, ListBlueprintsInput, + ListBlueprintsInputDict, ListBlueprintsOutput, ListDataAutomationLibrariesInput, + ListDataAutomationLibrariesInputDict, ListDataAutomationLibrariesOutput, ListDataAutomationLibraryEntitiesInput, + ListDataAutomationLibraryEntitiesInputDict, ListDataAutomationLibraryEntitiesOutput, ListDataAutomationLibraryIngestionJobsInput, + ListDataAutomationLibraryIngestionJobsInputDict, ListDataAutomationLibraryIngestionJobsOutput, ListDataAutomationProjectsInput, + ListDataAutomationProjectsInputDict, ListDataAutomationProjectsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ModalityProcessingConfiguration, + ModalityProcessingConfigurationDict, ModalityRoutingConfiguration, + ModalityRoutingConfigurationDict, NotificationConfiguration, + NotificationConfigurationDict, OutputConfiguration, + OutputConfigurationDict, OverrideConfiguration, + OverrideConfigurationDict, PIIEntitiesConfiguration, + PIIEntitiesConfigurationDict, Phrase, + PhraseDict, S3Object, + S3ObjectDict, SensitiveDataConfiguration, + SensitiveDataConfigurationDict, SpeakerLabelingConfiguration, + SpeakerLabelingConfigurationDict, SplitterConfiguration, + SplitterConfigurationDict, StandardOutputConfiguration, + StandardOutputConfigurationDict, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TranscriptConfiguration, + TranscriptConfigurationDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateBlueprintInput, + UpdateBlueprintInputDict, UpdateBlueprintOutput, UpdateDataAutomationLibraryInput, + UpdateDataAutomationLibraryInputDict, UpdateDataAutomationLibraryOutput, UpdateDataAutomationProjectInput, + UpdateDataAutomationProjectInputDict, UpdateDataAutomationProjectOutput, + UpsertEntityInfoDict, ValidationExceptionField, VideoBoundingBox, + VideoBoundingBoxDict, VideoExtractionCategory, + VideoExtractionCategoryDict, VideoOverrideConfiguration, + VideoOverrideConfigurationDict, VideoStandardExtraction, + VideoStandardExtractionDict, VideoStandardGenerativeField, + VideoStandardGenerativeFieldDict, VideoStandardOutputConfiguration, + VideoStandardOutputConfigurationDict, VocabularyEntity, VocabularyEntityInfo, + VocabularyEntityInfoDict, VocabularyEntitySummary, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -279,3 +370,549 @@ VocabularyEntity() VocabularyEntityInfo(language=_, phrases=_) VocabularyEntitySummary() +_params_0: AudioExtractionCategoryDict = {"state": _} +_params_1: AudioExtractionCategoryTypeConfigurationDict = {} +_params_2: AudioLanguageConfigurationDict = {} +_params_3: AudioOverrideConfigurationDict = {} +_params_4: AudioStandardExtractionDict = {"category": _} +_params_5: AudioStandardGenerativeFieldDict = {"state": _} +_params_6: AudioStandardOutputConfigurationDict = {} +_params_7: BlueprintFilterDict = {"blueprint_arn": _} +_params_8: BlueprintItemDict = {"blueprint_arn": _} +_params_9: BlueprintOptimizationObjectDict = {"blueprint_arn": _} +_params_10: BlueprintOptimizationOutputConfigurationDict = {"s3_object": _} +_params_11: BlueprintOptimizationSampleDict = { + "asset_s3_object": _, + "ground_truth_s3_object": _, +} +_params_12: ChannelLabelingConfigurationDict = {"state": _} +_params_13: CopyBlueprintStageInputDict = { + "blueprint_arn": _, + "source_stage": _, + "target_stage": _, +} +_params_14: CreateBlueprintInputDict = {"blueprint_name": _, "type": _, "schema": _} +_params_15: CreateBlueprintVersionInputDict = {"blueprint_arn": _} +_params_16: CreateDataAutomationLibraryInputDict = {"library_name": _} +_params_17: CreateDataAutomationProjectInputDict = { + "project_name": _, + "standard_output_configuration": _, +} +_params_18: CustomOutputConfigurationDict = {} +_params_19: DataAutomationLibraryConfigurationDict = {} +_params_20: DataAutomationLibraryFilterDict = {"library_arn": _} +_params_21: DataAutomationLibraryItemDict = {"library_arn": _} +_params_22: DataAutomationProjectFilterDict = {"project_arn": _} +_params_23: DeleteBlueprintInputDict = {"blueprint_arn": _} +_params_24: DeleteDataAutomationLibraryInputDict = {"library_arn": _} +_params_25: DeleteDataAutomationProjectInputDict = {"project_arn": _} +_params_26: DeleteEntitiesInfoDict = {"entity_ids": _} +_params_27: DocumentBoundingBoxDict = {"state": _} +_params_28: DocumentCustomOutputConfigurationDict = {} +_params_29: DocumentExtractionGranularityDict = {} +_params_30: DocumentOutputAdditionalFileFormatDict = {"state": _} +_params_31: DocumentOutputFormatDict = {"text_format": _, "additional_file_format": _} +_params_32: DocumentOutputTextFormatDict = {} +_params_33: DocumentOverrideConfigurationDict = {} +_params_34: DocumentStandardExtractionDict = {"granularity": _, "bounding_box": _} +_params_35: DocumentStandardGenerativeFieldDict = {"state": _} +_params_36: DocumentStandardOutputConfigurationDict = {} +_params_37: EncryptionConfigurationDict = {"kms_key_id": _} +_params_38: EventBridgeConfigurationDict = {"event_bridge_enabled": _} +_params_39: GetBlueprintInputDict = {"blueprint_arn": _} +_params_40: GetBlueprintOptimizationStatusInputDict = {"invocation_arn": _} +_params_41: GetDataAutomationLibraryEntityInputDict = { + "library_arn": _, + "entity_type": _, + "entity_id": _, +} +_params_42: GetDataAutomationLibraryIngestionJobInputDict = { + "library_arn": _, + "job_arn": _, +} +_params_43: GetDataAutomationLibraryInputDict = {"library_arn": _} +_params_44: GetDataAutomationProjectInputDict = {"project_arn": _} +_params_45: ImageBoundingBoxDict = {"state": _} +_params_46: ImageExtractionCategoryDict = {"state": _} +_params_47: ImageOverrideConfigurationDict = {} +_params_48: ImageStandardExtractionDict = {"category": _, "bounding_box": _} +_params_49: ImageStandardGenerativeFieldDict = {"state": _} +_params_50: ImageStandardOutputConfigurationDict = {} +_params_51: InlinePayloadDict = {"upsert_entities_info": _} +_params_52: InputConfigurationDict = {} +_params_53: InvokeBlueprintOptimizationAsyncInputDict = { + "blueprint": _, + "samples": _, + "output_configuration": _, + "data_automation_profile_arn": _, +} +_params_54: InvokeDataAutomationLibraryIngestionJobInputDict = { + "library_arn": _, + "input_configuration": _, + "entity_type": _, + "operation_type": _, + "output_configuration": _, +} +_params_55: ListBlueprintsInputDict = {} +_params_56: ListDataAutomationLibrariesInputDict = {} +_params_57: ListDataAutomationLibraryEntitiesInputDict = { + "library_arn": _, + "entity_type": _, +} +_params_58: ListDataAutomationLibraryIngestionJobsInputDict = {"library_arn": _} +_params_59: ListDataAutomationProjectsInputDict = {} +_params_60: ListTagsForResourceInputDict = {"resource_arn": _} +_params_61: ModalityProcessingConfigurationDict = {} +_params_62: ModalityRoutingConfigurationDict = {} +_params_63: NotificationConfigurationDict = {"event_bridge_configuration": _} +_params_64: OutputConfigurationDict = {"s3_uri": _} +_params_65: OverrideConfigurationDict = {} +_params_66: PhraseDict = {"text": _} +_params_67: PIIEntitiesConfigurationDict = {} +_params_68: S3ObjectDict = {"s3_uri": _} +_params_69: SensitiveDataConfigurationDict = {"detection_mode": _} +_params_70: SpeakerLabelingConfigurationDict = {"state": _} +_params_71: SplitterConfigurationDict = {} +_params_72: StandardOutputConfigurationDict = {} +_params_73: TagDict = {"key": _, "value": _} +_params_74: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_75: TranscriptConfigurationDict = {} +_params_76: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_77: UpdateBlueprintInputDict = {"blueprint_arn": _, "schema": _} +_params_78: UpdateDataAutomationLibraryInputDict = {"library_arn": _} +_params_79: UpdateDataAutomationProjectInputDict = { + "project_arn": _, + "standard_output_configuration": _, +} +_params_80: UpsertEntityInfoDict = {"vocabulary": _} +_params_81: VideoBoundingBoxDict = {"state": _} +_params_82: VideoExtractionCategoryDict = {"state": _} +_params_83: VideoOverrideConfigurationDict = {} +_params_84: VideoStandardExtractionDict = {"category": _, "bounding_box": _} +_params_85: VideoStandardGenerativeFieldDict = {"state": _} +_params_86: VideoStandardOutputConfigurationDict = {} +_params_87: VocabularyEntityInfoDict = {"language": _, "phrases": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncBedrockDataAutomationClient) -> None: + pass + await client.copy_blueprint_stage(blueprint_arn=_, source_stage=_, target_stage=_) + await client.copy_blueprint_stage(**_request(CopyBlueprintStageInputDict)) + await client.copy_blueprint_stage(_request(CopyBlueprintStageInput)) + await client.copy_blueprint_stage(_request(CopyBlueprintStageInputDict)) + await client.create_blueprint(blueprint_name=_, type=_, schema=_) + await client.create_blueprint(**_request(CreateBlueprintInputDict)) + await client.create_blueprint(_request(CreateBlueprintInput)) + await client.create_blueprint(_request(CreateBlueprintInputDict)) + await client.create_blueprint_version(blueprint_arn=_) + await client.create_blueprint_version(**_request(CreateBlueprintVersionInputDict)) + await client.create_blueprint_version(_request(CreateBlueprintVersionInput)) + await client.create_blueprint_version(_request(CreateBlueprintVersionInputDict)) + await client.create_data_automation_library(library_name=_) + await client.create_data_automation_library( + **_request(CreateDataAutomationLibraryInputDict) + ) + await client.create_data_automation_library( + _request(CreateDataAutomationLibraryInput) + ) + await client.create_data_automation_library( + _request(CreateDataAutomationLibraryInputDict) + ) + await client.create_data_automation_project( + project_name=_, standard_output_configuration=_ + ) + await client.create_data_automation_project( + **_request(CreateDataAutomationProjectInputDict) + ) + await client.create_data_automation_project( + _request(CreateDataAutomationProjectInput) + ) + await client.create_data_automation_project( + _request(CreateDataAutomationProjectInputDict) + ) + await client.delete_blueprint(blueprint_arn=_) + await client.delete_blueprint(**_request(DeleteBlueprintInputDict)) + await client.delete_blueprint(_request(DeleteBlueprintInput)) + await client.delete_blueprint(_request(DeleteBlueprintInputDict)) + await client.delete_data_automation_library(library_arn=_) + await client.delete_data_automation_library( + **_request(DeleteDataAutomationLibraryInputDict) + ) + await client.delete_data_automation_library( + _request(DeleteDataAutomationLibraryInput) + ) + await client.delete_data_automation_library( + _request(DeleteDataAutomationLibraryInputDict) + ) + await client.delete_data_automation_project(project_arn=_) + await client.delete_data_automation_project( + **_request(DeleteDataAutomationProjectInputDict) + ) + await client.delete_data_automation_project( + _request(DeleteDataAutomationProjectInput) + ) + await client.delete_data_automation_project( + _request(DeleteDataAutomationProjectInputDict) + ) + await client.get_blueprint(blueprint_arn=_) + await client.get_blueprint(**_request(GetBlueprintInputDict)) + await client.get_blueprint(_request(GetBlueprintInput)) + await client.get_blueprint(_request(GetBlueprintInputDict)) + await client.get_blueprint_optimization_status(invocation_arn=_) + await client.get_blueprint_optimization_status( + **_request(GetBlueprintOptimizationStatusInputDict) + ) + await client.get_blueprint_optimization_status( + _request(GetBlueprintOptimizationStatusInput) + ) + await client.get_blueprint_optimization_status( + _request(GetBlueprintOptimizationStatusInputDict) + ) + await client.get_data_automation_library(library_arn=_) + await client.get_data_automation_library( + **_request(GetDataAutomationLibraryInputDict) + ) + await client.get_data_automation_library(_request(GetDataAutomationLibraryInput)) + await client.get_data_automation_library( + _request(GetDataAutomationLibraryInputDict) + ) + await client.get_data_automation_library_entity( + library_arn=_, entity_type=_, entity_id=_ + ) + await client.get_data_automation_library_entity( + **_request(GetDataAutomationLibraryEntityInputDict) + ) + await client.get_data_automation_library_entity( + _request(GetDataAutomationLibraryEntityInput) + ) + await client.get_data_automation_library_entity( + _request(GetDataAutomationLibraryEntityInputDict) + ) + await client.get_data_automation_library_ingestion_job(library_arn=_, job_arn=_) + await client.get_data_automation_library_ingestion_job( + **_request(GetDataAutomationLibraryIngestionJobInputDict) + ) + await client.get_data_automation_library_ingestion_job( + _request(GetDataAutomationLibraryIngestionJobInput) + ) + await client.get_data_automation_library_ingestion_job( + _request(GetDataAutomationLibraryIngestionJobInputDict) + ) + await client.get_data_automation_project(project_arn=_) + await client.get_data_automation_project( + **_request(GetDataAutomationProjectInputDict) + ) + await client.get_data_automation_project(_request(GetDataAutomationProjectInput)) + await client.get_data_automation_project( + _request(GetDataAutomationProjectInputDict) + ) + await client.invoke_blueprint_optimization_async( + blueprint=_, samples=_, output_configuration=_, data_automation_profile_arn=_ + ) + await client.invoke_blueprint_optimization_async( + **_request(InvokeBlueprintOptimizationAsyncInputDict) + ) + await client.invoke_blueprint_optimization_async( + _request(InvokeBlueprintOptimizationAsyncInput) + ) + await client.invoke_blueprint_optimization_async( + _request(InvokeBlueprintOptimizationAsyncInputDict) + ) + await client.invoke_data_automation_library_ingestion_job( + library_arn=_, + input_configuration=_, + entity_type=_, + operation_type=_, + output_configuration=_, + ) + await client.invoke_data_automation_library_ingestion_job( + **_request(InvokeDataAutomationLibraryIngestionJobInputDict) + ) + await client.invoke_data_automation_library_ingestion_job( + _request(InvokeDataAutomationLibraryIngestionJobInput) + ) + await client.invoke_data_automation_library_ingestion_job( + _request(InvokeDataAutomationLibraryIngestionJobInputDict) + ) + await client.list_blueprints() + await client.list_blueprints(**_request(ListBlueprintsInputDict)) + await client.list_blueprints(_request(ListBlueprintsInput)) + await client.list_blueprints(_request(ListBlueprintsInputDict)) + await client.list_data_automation_libraries() + await client.list_data_automation_libraries( + **_request(ListDataAutomationLibrariesInputDict) + ) + await client.list_data_automation_libraries( + _request(ListDataAutomationLibrariesInput) + ) + await client.list_data_automation_libraries( + _request(ListDataAutomationLibrariesInputDict) + ) + await client.list_data_automation_library_entities(library_arn=_, entity_type=_) + await client.list_data_automation_library_entities( + **_request(ListDataAutomationLibraryEntitiesInputDict) + ) + await client.list_data_automation_library_entities( + _request(ListDataAutomationLibraryEntitiesInput) + ) + await client.list_data_automation_library_entities( + _request(ListDataAutomationLibraryEntitiesInputDict) + ) + await client.list_data_automation_library_ingestion_jobs(library_arn=_) + await client.list_data_automation_library_ingestion_jobs( + **_request(ListDataAutomationLibraryIngestionJobsInputDict) + ) + await client.list_data_automation_library_ingestion_jobs( + _request(ListDataAutomationLibraryIngestionJobsInput) + ) + await client.list_data_automation_library_ingestion_jobs( + _request(ListDataAutomationLibraryIngestionJobsInputDict) + ) + await client.list_data_automation_projects() + await client.list_data_automation_projects( + **_request(ListDataAutomationProjectsInputDict) + ) + await client.list_data_automation_projects( + _request(ListDataAutomationProjectsInput) + ) + await client.list_data_automation_projects( + _request(ListDataAutomationProjectsInputDict) + ) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_blueprint(blueprint_arn=_, schema=_) + await client.update_blueprint(**_request(UpdateBlueprintInputDict)) + await client.update_blueprint(_request(UpdateBlueprintInput)) + await client.update_blueprint(_request(UpdateBlueprintInputDict)) + await client.update_data_automation_library(library_arn=_) + await client.update_data_automation_library( + **_request(UpdateDataAutomationLibraryInputDict) + ) + await client.update_data_automation_library( + _request(UpdateDataAutomationLibraryInput) + ) + await client.update_data_automation_library( + _request(UpdateDataAutomationLibraryInputDict) + ) + await client.update_data_automation_project( + project_arn=_, standard_output_configuration=_ + ) + await client.update_data_automation_project( + **_request(UpdateDataAutomationProjectInputDict) + ) + await client.update_data_automation_project( + _request(UpdateDataAutomationProjectInput) + ) + await client.update_data_automation_project( + _request(UpdateDataAutomationProjectInputDict) + ) + + +def check_sync_calls(client: BedrockDataAutomationClient) -> None: + pass + client.copy_blueprint_stage(blueprint_arn=_, source_stage=_, target_stage=_) + client.copy_blueprint_stage(**_request(CopyBlueprintStageInputDict)) + client.copy_blueprint_stage(_request(CopyBlueprintStageInput)) + client.copy_blueprint_stage(_request(CopyBlueprintStageInputDict)) + client.create_blueprint(blueprint_name=_, type=_, schema=_) + client.create_blueprint(**_request(CreateBlueprintInputDict)) + client.create_blueprint(_request(CreateBlueprintInput)) + client.create_blueprint(_request(CreateBlueprintInputDict)) + client.create_blueprint_version(blueprint_arn=_) + client.create_blueprint_version(**_request(CreateBlueprintVersionInputDict)) + client.create_blueprint_version(_request(CreateBlueprintVersionInput)) + client.create_blueprint_version(_request(CreateBlueprintVersionInputDict)) + client.create_data_automation_library(library_name=_) + client.create_data_automation_library( + **_request(CreateDataAutomationLibraryInputDict) + ) + client.create_data_automation_library(_request(CreateDataAutomationLibraryInput)) + client.create_data_automation_library( + _request(CreateDataAutomationLibraryInputDict) + ) + client.create_data_automation_project( + project_name=_, standard_output_configuration=_ + ) + client.create_data_automation_project( + **_request(CreateDataAutomationProjectInputDict) + ) + client.create_data_automation_project(_request(CreateDataAutomationProjectInput)) + client.create_data_automation_project( + _request(CreateDataAutomationProjectInputDict) + ) + client.delete_blueprint(blueprint_arn=_) + client.delete_blueprint(**_request(DeleteBlueprintInputDict)) + client.delete_blueprint(_request(DeleteBlueprintInput)) + client.delete_blueprint(_request(DeleteBlueprintInputDict)) + client.delete_data_automation_library(library_arn=_) + client.delete_data_automation_library( + **_request(DeleteDataAutomationLibraryInputDict) + ) + client.delete_data_automation_library(_request(DeleteDataAutomationLibraryInput)) + client.delete_data_automation_library( + _request(DeleteDataAutomationLibraryInputDict) + ) + client.delete_data_automation_project(project_arn=_) + client.delete_data_automation_project( + **_request(DeleteDataAutomationProjectInputDict) + ) + client.delete_data_automation_project(_request(DeleteDataAutomationProjectInput)) + client.delete_data_automation_project( + _request(DeleteDataAutomationProjectInputDict) + ) + client.get_blueprint(blueprint_arn=_) + client.get_blueprint(**_request(GetBlueprintInputDict)) + client.get_blueprint(_request(GetBlueprintInput)) + client.get_blueprint(_request(GetBlueprintInputDict)) + client.get_blueprint_optimization_status(invocation_arn=_) + client.get_blueprint_optimization_status( + **_request(GetBlueprintOptimizationStatusInputDict) + ) + client.get_blueprint_optimization_status( + _request(GetBlueprintOptimizationStatusInput) + ) + client.get_blueprint_optimization_status( + _request(GetBlueprintOptimizationStatusInputDict) + ) + client.get_data_automation_library(library_arn=_) + client.get_data_automation_library(**_request(GetDataAutomationLibraryInputDict)) + client.get_data_automation_library(_request(GetDataAutomationLibraryInput)) + client.get_data_automation_library(_request(GetDataAutomationLibraryInputDict)) + client.get_data_automation_library_entity(library_arn=_, entity_type=_, entity_id=_) + client.get_data_automation_library_entity( + **_request(GetDataAutomationLibraryEntityInputDict) + ) + client.get_data_automation_library_entity( + _request(GetDataAutomationLibraryEntityInput) + ) + client.get_data_automation_library_entity( + _request(GetDataAutomationLibraryEntityInputDict) + ) + client.get_data_automation_library_ingestion_job(library_arn=_, job_arn=_) + client.get_data_automation_library_ingestion_job( + **_request(GetDataAutomationLibraryIngestionJobInputDict) + ) + client.get_data_automation_library_ingestion_job( + _request(GetDataAutomationLibraryIngestionJobInput) + ) + client.get_data_automation_library_ingestion_job( + _request(GetDataAutomationLibraryIngestionJobInputDict) + ) + client.get_data_automation_project(project_arn=_) + client.get_data_automation_project(**_request(GetDataAutomationProjectInputDict)) + client.get_data_automation_project(_request(GetDataAutomationProjectInput)) + client.get_data_automation_project(_request(GetDataAutomationProjectInputDict)) + client.invoke_blueprint_optimization_async( + blueprint=_, samples=_, output_configuration=_, data_automation_profile_arn=_ + ) + client.invoke_blueprint_optimization_async( + **_request(InvokeBlueprintOptimizationAsyncInputDict) + ) + client.invoke_blueprint_optimization_async( + _request(InvokeBlueprintOptimizationAsyncInput) + ) + client.invoke_blueprint_optimization_async( + _request(InvokeBlueprintOptimizationAsyncInputDict) + ) + client.invoke_data_automation_library_ingestion_job( + library_arn=_, + input_configuration=_, + entity_type=_, + operation_type=_, + output_configuration=_, + ) + client.invoke_data_automation_library_ingestion_job( + **_request(InvokeDataAutomationLibraryIngestionJobInputDict) + ) + client.invoke_data_automation_library_ingestion_job( + _request(InvokeDataAutomationLibraryIngestionJobInput) + ) + client.invoke_data_automation_library_ingestion_job( + _request(InvokeDataAutomationLibraryIngestionJobInputDict) + ) + client.list_blueprints() + client.list_blueprints(**_request(ListBlueprintsInputDict)) + client.list_blueprints(_request(ListBlueprintsInput)) + client.list_blueprints(_request(ListBlueprintsInputDict)) + client.list_data_automation_libraries() + client.list_data_automation_libraries( + **_request(ListDataAutomationLibrariesInputDict) + ) + client.list_data_automation_libraries(_request(ListDataAutomationLibrariesInput)) + client.list_data_automation_libraries( + _request(ListDataAutomationLibrariesInputDict) + ) + client.list_data_automation_library_entities(library_arn=_, entity_type=_) + client.list_data_automation_library_entities( + **_request(ListDataAutomationLibraryEntitiesInputDict) + ) + client.list_data_automation_library_entities( + _request(ListDataAutomationLibraryEntitiesInput) + ) + client.list_data_automation_library_entities( + _request(ListDataAutomationLibraryEntitiesInputDict) + ) + client.list_data_automation_library_ingestion_jobs(library_arn=_) + client.list_data_automation_library_ingestion_jobs( + **_request(ListDataAutomationLibraryIngestionJobsInputDict) + ) + client.list_data_automation_library_ingestion_jobs( + _request(ListDataAutomationLibraryIngestionJobsInput) + ) + client.list_data_automation_library_ingestion_jobs( + _request(ListDataAutomationLibraryIngestionJobsInputDict) + ) + client.list_data_automation_projects() + client.list_data_automation_projects( + **_request(ListDataAutomationProjectsInputDict) + ) + client.list_data_automation_projects(_request(ListDataAutomationProjectsInput)) + client.list_data_automation_projects(_request(ListDataAutomationProjectsInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_blueprint(blueprint_arn=_, schema=_) + client.update_blueprint(**_request(UpdateBlueprintInputDict)) + client.update_blueprint(_request(UpdateBlueprintInput)) + client.update_blueprint(_request(UpdateBlueprintInputDict)) + client.update_data_automation_library(library_arn=_) + client.update_data_automation_library( + **_request(UpdateDataAutomationLibraryInputDict) + ) + client.update_data_automation_library(_request(UpdateDataAutomationLibraryInput)) + client.update_data_automation_library( + _request(UpdateDataAutomationLibraryInputDict) + ) + client.update_data_automation_project( + project_arn=_, standard_output_configuration=_ + ) + client.update_data_automation_project( + **_request(UpdateDataAutomationProjectInputDict) + ) + client.update_data_automation_project(_request(UpdateDataAutomationProjectInput)) + client.update_data_automation_project( + _request(UpdateDataAutomationProjectInputDict) + ) diff --git a/clients/aws-sdk-bedrock-runtime/pyproject.toml b/clients/aws-sdk-bedrock-runtime/pyproject.toml index 188d4dcf0..c3e697ab0 100644 --- a/clients/aws-sdk-bedrock-runtime/pyproject.toml +++ b/clients/aws-sdk-bedrock-runtime/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/_private/schemas.py b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/_private/schemas.py index 48abb8eae..a62038c11 100644 --- a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/_private/schemas.py +++ b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/_private/schemas.py @@ -378,7 +378,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/aio/client.py b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/aio/client.py index 26d6d8a89..d81aaa73b 100644 --- a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/aio/client.py +++ b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -15,14 +15,11 @@ from .. import models as _models from ..models import ( - ConverseStreamInput, ConverseStreamOperationOutput, ConverseStreamOutput, InvokeModelWithBidirectionalStreamInput, - InvokeModelWithBidirectionalStreamOperationInput, InvokeModelWithBidirectionalStreamOperationOutput, InvokeModelWithBidirectionalStreamOutput, - InvokeModelWithResponseStreamInput, InvokeModelWithResponseStreamOutput, ResponseStream, _ConverseStreamOutputDeserializer, @@ -36,21 +33,13 @@ if TYPE_CHECKING: from ..models import ( - ApplyGuardrailInput, ApplyGuardrailOutput, - ConverseInput, ConverseOperationOutput, - CountTokensOperationInput, CountTokensOutput, - GetAsyncInvokeInput, GetAsyncInvokeOutput, - InvokeGuardrailChecksInput, InvokeGuardrailChecksOutput, - InvokeModelInput, InvokeModelOutput, - ListAsyncInvokesInput, ListAsyncInvokesOutput, - StartAsyncInvokeInput, StartAsyncInvokeOutput, ) @@ -64,10 +53,24 @@ class AsyncBedrockRuntimeClient(AsyncClient[AsyncBedrockRuntimeConfig]): models. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def apply_guardrail( - self, input: ApplyGuardrailInput, plugins: list[Plugin] | None = None + self, + request: _models.ApplyGuardrailInput | _models.ApplyGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ApplyGuardrailOutput: ... + + @_overload + async def apply_guardrail( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ApplyGuardrailInputDict], ) -> ApplyGuardrailOutput: """ The action to apply a guardrail. @@ -79,8 +82,6 @@ async def apply_guardrail( in the Amazon Bedrock User Guide Args: - input: - An instance of `ApplyGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -90,10 +91,33 @@ async def apply_guardrail( Returns: An instance of `ApplyGuardrailOutput`. """ - return await self._invoke(input, _models.APPLY_GUARDRAIL, [], plugins) + async def apply_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ApplyGuardrailOutput: + return await self._invoke( + self._select_input(_models.APPLY_GUARDRAIL, args, kwargs), + _models.APPLY_GUARDRAIL, + [], + plugins, + ) + + @_overload + async def converse( + self, + request: _models.ConverseInput | _models.ConverseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ConverseOperationOutput: ... + + @_overload async def converse( - self, input: ConverseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConverseInputDict], ) -> ConverseOperationOutput: """ Sends messages to the specified Amazon Bedrock model. `Converse` @@ -148,8 +172,6 @@ async def converse( in the Amazon Bedrock User Guide Args: - input: - An instance of `ConverseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -159,10 +181,35 @@ async def converse( Returns: An instance of `ConverseOperationOutput`. """ - return await self._invoke(input, _models.CONVERSE, [], plugins) + async def converse( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ConverseOperationOutput: + return await self._invoke( + self._select_input(_models.CONVERSE, args, kwargs), + _models.CONVERSE, + [], + plugins, + ) + + @_overload + async def converse_stream( + self, + request: _models.ConverseStreamInput | _models.ConverseStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + ConverseStreamOutput, ConverseStreamOperationOutput + ]: ... + + @_overload async def converse_stream( - self, input: ConverseStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConverseStreamInputDict], ) -> AsyncOutputEventStream[ConverseStreamOutput, ConverseStreamOperationOutput]: """ Sends messages to the specified Amazon Bedrock model and returns the @@ -228,8 +275,6 @@ async def converse_stream( in the Amazon Bedrock User Guide Args: - input: - An instance of `ConverseStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -239,15 +284,37 @@ async def converse_stream( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def converse_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ConverseStreamOutput, ConverseStreamOperationOutput]: pipeline, call = await self._prepare_call( - input, _models.CONVERSE_STREAM, [], plugins + self._select_input(_models.CONVERSE_STREAM, args, kwargs), + _models.CONVERSE_STREAM, + [], + plugins, ) return await pipeline.output_stream( call, ConverseStreamOutput, _ConverseStreamOutputDeserializer().deserialize ) + @_overload async def count_tokens( - self, input: CountTokensOperationInput, plugins: list[Plugin] | None = None + self, + request: _models.CountTokensOperationInput + | _models.CountTokensOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CountTokensOutput: ... + + @_overload + async def count_tokens( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CountTokensOperationInputDict], ) -> CountTokensOutput: """ Returns the token count for a given inference request. This operation @@ -281,8 +348,6 @@ async def count_tokens( Sends conversation-based inference requests to foundation models Args: - input: - An instance of `CountTokensOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -292,17 +357,38 @@ async def count_tokens( Returns: An instance of `CountTokensOutput`. """ - return await self._invoke(input, _models.COUNT_TOKENS, [], plugins) + async def count_tokens( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CountTokensOutput: + return await self._invoke( + self._select_input(_models.COUNT_TOKENS, args, kwargs), + _models.COUNT_TOKENS, + [], + plugins, + ) + + @_overload + async def get_async_invoke( + self, + request: _models.GetAsyncInvokeInput | _models.GetAsyncInvokeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAsyncInvokeOutput: ... + + @_overload async def get_async_invoke( - self, input: GetAsyncInvokeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAsyncInvokeInputDict], ) -> GetAsyncInvokeOutput: """ Retrieve information about an asynchronous invocation. Args: - input: - An instance of `GetAsyncInvokeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -312,10 +398,34 @@ async def get_async_invoke( Returns: An instance of `GetAsyncInvokeOutput`. """ - return await self._invoke(input, _models.GET_ASYNC_INVOKE, [], plugins) + async def get_async_invoke( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAsyncInvokeOutput: + return await self._invoke( + self._select_input(_models.GET_ASYNC_INVOKE, args, kwargs), + _models.GET_ASYNC_INVOKE, + [], + plugins, + ) + + @_overload async def invoke_guardrail_checks( - self, input: InvokeGuardrailChecksInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeGuardrailChecksInput + | _models.InvokeGuardrailChecksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeGuardrailChecksOutput: ... + + @_overload + async def invoke_guardrail_checks( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeGuardrailChecksInputDict], ) -> InvokeGuardrailChecksOutput: """ Evaluates messages against inline guardrail checks. You specify the @@ -323,8 +433,6 @@ async def invoke_guardrail_checks( per-check results with severity or confidence scores. Args: - input: - An instance of `InvokeGuardrailChecksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -334,10 +442,33 @@ async def invoke_guardrail_checks( Returns: An instance of `InvokeGuardrailChecksOutput`. """ - return await self._invoke(input, _models.INVOKE_GUARDRAIL_CHECKS, [], plugins) + async def invoke_guardrail_checks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeGuardrailChecksOutput: + return await self._invoke( + self._select_input(_models.INVOKE_GUARDRAIL_CHECKS, args, kwargs), + _models.INVOKE_GUARDRAIL_CHECKS, + [], + plugins, + ) + + @_overload + async def invoke_model( + self, + request: _models.InvokeModelInput | _models.InvokeModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeModelOutput: ... + + @_overload async def invoke_model( - self, input: InvokeModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeModelInputDict], ) -> InvokeModelOutput: """ Invokes the specified Amazon Bedrock model to run inference using the @@ -367,8 +498,6 @@ async def invoke_model( in the Amazon Bedrock User Guide Args: - input: - An instance of `InvokeModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -378,12 +507,38 @@ async def invoke_model( Returns: An instance of `InvokeModelOutput`. """ - return await self._invoke(input, _models.INVOKE_MODEL, [], plugins) + async def invoke_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeModelOutput: + return await self._invoke( + self._select_input(_models.INVOKE_MODEL, args, kwargs), + _models.INVOKE_MODEL, + [], + plugins, + ) + + @_overload + async def invoke_model_with_bidirectional_stream( + self, + request: _models.InvokeModelWithBidirectionalStreamOperationInput + | _models.InvokeModelWithBidirectionalStreamOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ + InvokeModelWithBidirectionalStreamInput, + InvokeModelWithBidirectionalStreamOutput, + InvokeModelWithBidirectionalStreamOperationOutput, + ]: ... + + @_overload async def invoke_model_with_bidirectional_stream( self, - input: InvokeModelWithBidirectionalStreamOperationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeModelWithBidirectionalStreamOperationInputDict], ) -> AsyncDuplexEventStream[ InvokeModelWithBidirectionalStreamInput, InvokeModelWithBidirectionalStreamOutput, @@ -403,8 +558,6 @@ async def invoke_model_with_bidirectional_stream( the new prompt. Args: - input: - An instance of `InvokeModelWithBidirectionalStreamOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -414,8 +567,21 @@ async def invoke_model_with_bidirectional_stream( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def invoke_model_with_bidirectional_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + InvokeModelWithBidirectionalStreamInput, + InvokeModelWithBidirectionalStreamOutput, + InvokeModelWithBidirectionalStreamOperationOutput, + ]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_MODEL_WITH_BIDIRECTIONAL_STREAM, [], plugins + self._select_input( + _models.INVOKE_MODEL_WITH_BIDIRECTIONAL_STREAM, args, kwargs + ), + _models.INVOKE_MODEL_WITH_BIDIRECTIONAL_STREAM, + [], + plugins, ) return await pipeline.duplex_stream( call, @@ -424,10 +590,25 @@ async def invoke_model_with_bidirectional_stream( _InvokeModelWithBidirectionalStreamOutputDeserializer().deserialize, ) + @_overload async def invoke_model_with_response_stream( self, - input: InvokeModelWithResponseStreamInput, + request: _models.InvokeModelWithResponseStreamInput + | _models.InvokeModelWithResponseStreamInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + ResponseStream, InvokeModelWithResponseStreamOutput + ]: ... + + @_overload + async def invoke_model_with_response_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeModelWithResponseStreamInputDict], ) -> AsyncOutputEventStream[ResponseStream, InvokeModelWithResponseStreamOutput]: """ Invoke the specified Amazon Bedrock model to run inference using the @@ -466,8 +647,6 @@ async def invoke_model_with_response_stream( in the Amazon Bedrock User Guide Args: - input: - An instance of `InvokeModelWithResponseStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -477,22 +656,41 @@ async def invoke_model_with_response_stream( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def invoke_model_with_response_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ResponseStream, InvokeModelWithResponseStreamOutput]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_MODEL_WITH_RESPONSE_STREAM, [], plugins + self._select_input(_models.INVOKE_MODEL_WITH_RESPONSE_STREAM, args, kwargs), + _models.INVOKE_MODEL_WITH_RESPONSE_STREAM, + [], + plugins, ) return await pipeline.output_stream( call, ResponseStream, _ResponseStreamDeserializer().deserialize ) + @_overload async def list_async_invokes( - self, input: ListAsyncInvokesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAsyncInvokesInput | _models.ListAsyncInvokesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAsyncInvokesOutput: ... + + @_overload + async def list_async_invokes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAsyncInvokesInputDict], ) -> ListAsyncInvokesOutput: """ Lists asynchronous invocations. Args: - input: - An instance of `ListAsyncInvokesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -502,10 +700,33 @@ async def list_async_invokes( Returns: An instance of `ListAsyncInvokesOutput`. """ - return await self._invoke(input, _models.LIST_ASYNC_INVOKES, [], plugins) + async def list_async_invokes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAsyncInvokesOutput: + return await self._invoke( + self._select_input(_models.LIST_ASYNC_INVOKES, args, kwargs), + _models.LIST_ASYNC_INVOKES, + [], + plugins, + ) + + @_overload + async def start_async_invoke( + self, + request: _models.StartAsyncInvokeInput | _models.StartAsyncInvokeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartAsyncInvokeOutput: ... + + @_overload async def start_async_invoke( - self, input: StartAsyncInvokeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartAsyncInvokeInputDict], ) -> StartAsyncInvokeOutput: """ Starts an asynchronous invocation. @@ -524,8 +745,6 @@ async def start_async_invoke( models](https://docs.aws.amazon.com/bedrock/latest/userguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-deny-inference). Args: - input: - An instance of `StartAsyncInvokeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -535,7 +754,16 @@ async def start_async_invoke( Returns: An instance of `StartAsyncInvokeOutput`. """ - return await self._invoke(input, _models.START_ASYNC_INVOKE, [], plugins) + + async def start_async_invoke( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartAsyncInvokeOutput: + return await self._invoke( + self._select_input(_models.START_ASYNC_INVOKE, args, kwargs), + _models.START_ASYNC_INVOKE, + [], + plugins, + ) async def _new_config(self) -> AsyncBedrockRuntimeConfig: return await AsyncBedrockRuntimeConfig.resolve() diff --git a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/client.py b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/client.py index 0d4f180f3..963cd0bbe 100644 --- a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/client.py +++ b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,21 +20,13 @@ if TYPE_CHECKING: from .models import ( - ApplyGuardrailInput, ApplyGuardrailOutput, - ConverseInput, ConverseOperationOutput, - CountTokensOperationInput, CountTokensOutput, - GetAsyncInvokeInput, GetAsyncInvokeOutput, - InvokeGuardrailChecksInput, InvokeGuardrailChecksOutput, - InvokeModelInput, InvokeModelOutput, - ListAsyncInvokesInput, ListAsyncInvokesOutput, - StartAsyncInvokeInput, StartAsyncInvokeOutput, ) @@ -48,10 +40,24 @@ class BedrockRuntimeClient(Client[BedrockRuntimeConfig]): models. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def apply_guardrail( - self, input: ApplyGuardrailInput, plugins: list[Plugin] | None = None + self, + request: _models.ApplyGuardrailInput | _models.ApplyGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ApplyGuardrailOutput: ... + + @_overload + def apply_guardrail( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ApplyGuardrailInputDict], ) -> ApplyGuardrailOutput: """ The action to apply a guardrail. @@ -63,8 +69,6 @@ def apply_guardrail( in the Amazon Bedrock User Guide Args: - input: - An instance of `ApplyGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -74,10 +78,33 @@ def apply_guardrail( Returns: An instance of `ApplyGuardrailOutput`. """ - return self._invoke(input, _models.APPLY_GUARDRAIL, [], plugins) + def apply_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ApplyGuardrailOutput: + return self._invoke( + self._select_input(_models.APPLY_GUARDRAIL, args, kwargs), + _models.APPLY_GUARDRAIL, + [], + plugins, + ) + + @_overload + def converse( + self, + request: _models.ConverseInput | _models.ConverseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ConverseOperationOutput: ... + + @_overload def converse( - self, input: ConverseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConverseInputDict], ) -> ConverseOperationOutput: """ Sends messages to the specified Amazon Bedrock model. `Converse` @@ -132,8 +159,6 @@ def converse( in the Amazon Bedrock User Guide Args: - input: - An instance of `ConverseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -143,10 +168,34 @@ def converse( Returns: An instance of `ConverseOperationOutput`. """ - return self._invoke(input, _models.CONVERSE, [], plugins) + def converse( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ConverseOperationOutput: + return self._invoke( + self._select_input(_models.CONVERSE, args, kwargs), + _models.CONVERSE, + [], + plugins, + ) + + @_overload + def count_tokens( + self, + request: _models.CountTokensOperationInput + | _models.CountTokensOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CountTokensOutput: ... + + @_overload def count_tokens( - self, input: CountTokensOperationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CountTokensOperationInputDict], ) -> CountTokensOutput: """ Returns the token count for a given inference request. This operation @@ -180,8 +229,6 @@ def count_tokens( Sends conversation-based inference requests to foundation models Args: - input: - An instance of `CountTokensOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -191,17 +238,38 @@ def count_tokens( Returns: An instance of `CountTokensOutput`. """ - return self._invoke(input, _models.COUNT_TOKENS, [], plugins) + def count_tokens( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CountTokensOutput: + return self._invoke( + self._select_input(_models.COUNT_TOKENS, args, kwargs), + _models.COUNT_TOKENS, + [], + plugins, + ) + + @_overload + def get_async_invoke( + self, + request: _models.GetAsyncInvokeInput | _models.GetAsyncInvokeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAsyncInvokeOutput: ... + + @_overload def get_async_invoke( - self, input: GetAsyncInvokeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAsyncInvokeInputDict], ) -> GetAsyncInvokeOutput: """ Retrieve information about an asynchronous invocation. Args: - input: - An instance of `GetAsyncInvokeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -211,10 +279,34 @@ def get_async_invoke( Returns: An instance of `GetAsyncInvokeOutput`. """ - return self._invoke(input, _models.GET_ASYNC_INVOKE, [], plugins) + def get_async_invoke( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAsyncInvokeOutput: + return self._invoke( + self._select_input(_models.GET_ASYNC_INVOKE, args, kwargs), + _models.GET_ASYNC_INVOKE, + [], + plugins, + ) + + @_overload def invoke_guardrail_checks( - self, input: InvokeGuardrailChecksInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeGuardrailChecksInput + | _models.InvokeGuardrailChecksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeGuardrailChecksOutput: ... + + @_overload + def invoke_guardrail_checks( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeGuardrailChecksInputDict], ) -> InvokeGuardrailChecksOutput: """ Evaluates messages against inline guardrail checks. You specify the @@ -222,8 +314,6 @@ def invoke_guardrail_checks( per-check results with severity or confidence scores. Args: - input: - An instance of `InvokeGuardrailChecksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -233,10 +323,33 @@ def invoke_guardrail_checks( Returns: An instance of `InvokeGuardrailChecksOutput`. """ - return self._invoke(input, _models.INVOKE_GUARDRAIL_CHECKS, [], plugins) + def invoke_guardrail_checks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeGuardrailChecksOutput: + return self._invoke( + self._select_input(_models.INVOKE_GUARDRAIL_CHECKS, args, kwargs), + _models.INVOKE_GUARDRAIL_CHECKS, + [], + plugins, + ) + + @_overload + def invoke_model( + self, + request: _models.InvokeModelInput | _models.InvokeModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeModelOutput: ... + + @_overload def invoke_model( - self, input: InvokeModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeModelInputDict], ) -> InvokeModelOutput: """ Invokes the specified Amazon Bedrock model to run inference using the @@ -266,8 +379,6 @@ def invoke_model( in the Amazon Bedrock User Guide Args: - input: - An instance of `InvokeModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -277,19 +388,38 @@ def invoke_model( Returns: An instance of `InvokeModelOutput`. """ - return self._invoke(input, _models.INVOKE_MODEL, [], plugins) + def invoke_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeModelOutput: + return self._invoke( + self._select_input(_models.INVOKE_MODEL, args, kwargs), + _models.INVOKE_MODEL, + [], + plugins, + ) + + @_overload def list_async_invokes( self, - input: ListAsyncInvokesInput | None = None, + request: _models.ListAsyncInvokesInput | _models.ListAsyncInvokesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListAsyncInvokesOutput: ... + + @_overload + def list_async_invokes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAsyncInvokesInputDict], ) -> ListAsyncInvokesOutput: """ Lists asynchronous invocations. Args: - input: - An instance of `ListAsyncInvokesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -299,10 +429,33 @@ def list_async_invokes( Returns: An instance of `ListAsyncInvokesOutput`. """ - return self._invoke(input, _models.LIST_ASYNC_INVOKES, [], plugins) + def list_async_invokes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAsyncInvokesOutput: + return self._invoke( + self._select_input(_models.LIST_ASYNC_INVOKES, args, kwargs), + _models.LIST_ASYNC_INVOKES, + [], + plugins, + ) + + @_overload def start_async_invoke( - self, input: StartAsyncInvokeInput, plugins: list[Plugin] | None = None + self, + request: _models.StartAsyncInvokeInput | _models.StartAsyncInvokeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartAsyncInvokeOutput: ... + + @_overload + def start_async_invoke( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartAsyncInvokeInputDict], ) -> StartAsyncInvokeOutput: """ Starts an asynchronous invocation. @@ -321,8 +474,6 @@ def start_async_invoke( models](https://docs.aws.amazon.com/bedrock/latest/userguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-deny-inference). Args: - input: - An instance of `StartAsyncInvokeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -332,7 +483,16 @@ def start_async_invoke( Returns: An instance of `StartAsyncInvokeOutput`. """ - return self._invoke(input, _models.START_ASYNC_INVOKE, [], plugins) + + def start_async_invoke( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartAsyncInvokeOutput: + return self._invoke( + self._select_input(_models.START_ASYNC_INVOKE, args, kwargs), + _models.START_ASYNC_INVOKE, + [], + plugins, + ) def _new_config(self) -> BedrockRuntimeConfig: return BedrockRuntimeConfig.resolve() diff --git a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/models.pyi b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/models.pyi index 18ed01e33..d0e151015 100644 --- a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/models.pyi +++ b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -54,6 +55,9 @@ class AnyToolChoice(_SerdeShape): in the Amazon Bedrock User Guide. """ +class AnyToolChoiceDict(TypedDict, total=False): + """Dictionary form of `AnyToolChoice`.""" + @dataclass(kw_only=True) class AppliedGuardrailDetails(_SerdeShape): """ @@ -105,6 +109,29 @@ class ApplyGuardrailInput(_SerdeShape): personally identifiable information (PII). """ +class ApplyGuardrailInputDict(TypedDict, total=False): + """Dictionary form of `ApplyGuardrailInput`.""" + + guardrail_identifier: Required[str] + """The guardrail identifier used in the request to apply the guardrail.""" + guardrail_version: Required[str] + """The guardrail version used in the request to apply the guardrail.""" + source: Required[str] + """The source of data used in the request to apply the guardrail.""" + content: Required[Sequence[GuardrailContentBlock | GuardrailContentBlockDict]] + """The content details used in the request to apply the guardrail.""" + output_scope: str | None + """ + Specifies the scope of the output that you get in the response. Set to + `FULL` to return the entire output, including any detected and + non-detected entries in the response for enhanced debugging. + + Note that the full output scope doesn't apply to word filters or regex + in sensitive information filters. It does apply to all other filtering + policies, including sensitive information with filters that can detect + personally identifiable information (PII). + """ + @dataclass(kw_only=True) class ApplyGuardrailOutput(_SerdeShape): """Dataclass for ApplyGuardrailOutput structure.""" @@ -155,6 +182,20 @@ class _AsyncInvokeOutputDataConfigDeserializer: self, deserializer: ShapeDeserializer ) -> AsyncInvokeOutputDataConfig: ... +class AsyncInvokeOutputDataConfigS3OutputDataConfigDict(TypedDict): + s3_output_data_config: ( + AsyncInvokeS3OutputDataConfig | AsyncInvokeS3OutputDataConfigDict + ) + """A storage location for the output data in an S3 bucket""" + +AsyncInvokeOutputDataConfigDict = Union[ + AsyncInvokeOutputDataConfigS3OutputDataConfigDict +] +""" +Dictionary form of `AsyncInvokeOutputDataConfig`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class AsyncInvokeS3OutputDataConfig(_SerdeShape): """Asynchronous invocation output data settings.""" @@ -169,6 +210,19 @@ class AsyncInvokeS3OutputDataConfig(_SerdeShape): ID. """ +class AsyncInvokeS3OutputDataConfigDict(TypedDict, total=False): + """Dictionary form of `AsyncInvokeS3OutputDataConfig`.""" + + s3_uri: Required[str] + """An object URI starting with `s3://`.""" + kms_key_id: str | None + """A KMS encryption key ID.""" + bucket_owner: str | None + """ + If the bucket belongs to another AWS account, specify that account's + ID. + """ + class AsyncInvokeStatus(UnknownEnumMixin, StrEnum): IN_PROGRESS = "InProgress" COMPLETED = "Completed" @@ -220,6 +274,25 @@ class AudioBlock(_SerdeShape): invalid data. """ +class AudioBlockDict(TypedDict, total=False): + """Dictionary form of `AudioBlock`.""" + + format: Required[str] + """ + The format of the audio data, such as MP3, WAV, FLAC, or other supported + audio formats. + """ + source: Required[AudioSource | AudioSourceDict] + """ + The source of the audio data, which can be provided as raw bytes or an + S3 location. + """ + error: ErrorBlock | ErrorBlockDict | None + """ + Error information if the audio block could not be processed or contains + invalid data. + """ + class AudioFormat(UnknownEnumMixin, StrEnum): MP3 = "mp3" OPUS = "opus" @@ -272,6 +345,21 @@ reference to an S3 location. class _AudioSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> AudioSource: ... +class AudioSourceBytesDict(TypedDict): + bytes_: bytes + """Audio data encoded in base64.""" + +class AudioSourceS3LocationDict(TypedDict): + s3_location: S3Location | S3LocationDict + """ + A reference to audio data stored in an Amazon S3 bucket. To see which + models support S3 uploads, see [Supported models and features for + Converse](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html). + """ + +AudioSourceDict = Union[AudioSourceBytesDict | AudioSourceS3LocationDict] +"""Dictionary form of `AudioSource`, setting exactly one variant.""" + @dataclass(kw_only=True) class AutoToolChoice(_SerdeShape): """ @@ -282,6 +370,9 @@ class AutoToolChoice(_SerdeShape): in the Amazon Bedrock User Guide """ +class AutoToolChoiceDict(TypedDict, total=False): + """Dictionary form of `AutoToolChoice`.""" + @dataclass(kw_only=True) class BidirectionalInputPayloadPart(_SerdeShape): """ @@ -327,6 +418,18 @@ class CachePointBlock(_SerdeShape): `type` value for caching behavior. """ +class CachePointBlockDict(TypedDict, total=False): + """Dictionary form of `CachePointBlock`.""" + + type: Required[str] + """Specifies the type of cache point within the CachePointBlock.""" + ttl: str | None + """ + Optional TTL duration for cache entries. When specified, enables + extended TTL caching with the specified duration. When omitted, uses + `type` value for caching behavior. + """ + class CachePointType(UnknownEnumMixin, StrEnum): DEFAULT = "default" @@ -363,6 +466,28 @@ class Citation(_SerdeShape): identifiers. """ +class CitationDict(TypedDict, total=False): + """Dictionary form of `Citation`.""" + + title: str | None + """The title or identifier of the source document being cited.""" + source: str | None + """ + The source from the original search result that provided the cited + content. + """ + source_content: Sequence[CitationSourceContent | CitationSourceContentDict] | None + """ + The specific content from the source document that was referenced or + cited in the generated response. + """ + location: CitationLocation | CitationLocationDict | None + """ + The precise location within the source document where the cited content + can be found, including character positions, page numbers, or chunk + identifiers. + """ + @dataclass class CitationGeneratedContentText(_SerdeShape): """ @@ -395,6 +520,19 @@ class _CitationGeneratedContentDeserializer: self, deserializer: ShapeDeserializer ) -> CitationGeneratedContent: ... +class CitationGeneratedContentTextDict(TypedDict): + text: str + """ + The text content that was generated by the model and is supported by the + associated citation. + """ + +CitationGeneratedContentDict = Union[CitationGeneratedContentTextDict] +""" +Dictionary form of `CitationGeneratedContent`, setting exactly one +variant. +""" + @dataclass class CitationLocationWeb(_SerdeShape): """The web URL that was cited for this reference.""" @@ -466,6 +604,48 @@ method. class _CitationLocationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CitationLocation: ... +class CitationLocationWebDict(TypedDict): + web: WebLocation | WebLocationDict + """The web URL that was cited for this reference.""" + +class CitationLocationDocumentCharDict(TypedDict): + document_char: DocumentCharLocation | DocumentCharLocationDict + """ + The character-level location within the document where the cited content + is found. + """ + +class CitationLocationDocumentPageDict(TypedDict): + document_page: DocumentPageLocation | DocumentPageLocationDict + """ + The page-level location within the document where the cited content is + found. + """ + +class CitationLocationDocumentChunkDict(TypedDict): + document_chunk: DocumentChunkLocation | DocumentChunkLocationDict + """ + The chunk-level location within the document where the cited content is + found, typically used for documents that have been segmented into + logical chunks. + """ + +class CitationLocationSearchResultLocationDict(TypedDict): + search_result_location: SearchResultLocation | SearchResultLocationDict + """ + The search result location where the cited content is found, including + the search result index and block positions within the content array. + """ + +CitationLocationDict = Union[ + CitationLocationWebDict + | CitationLocationDocumentCharDict + | CitationLocationDocumentPageDict + | CitationLocationDocumentChunkDict + | CitationLocationSearchResultLocationDict +] +"""Dictionary form of `CitationLocation`, setting exactly one variant.""" + @dataclass(kw_only=True) class CitationsConfig(_SerdeShape): """ @@ -483,6 +663,17 @@ class CitationsConfig(_SerdeShape): response. """ +class CitationsConfigDict(TypedDict, total=False): + """Dictionary form of `CitationsConfig`.""" + + enabled: Required[bool] + """ + Specifies whether citations from the selected document should be used in + the model's response. When set to true, the model can generate + citations that reference the source documents used to inform the + response. + """ + @dataclass(kw_only=True) class CitationsContentBlock(_SerdeShape): """ @@ -500,6 +691,17 @@ class CitationsContentBlock(_SerdeShape): generate the associated content. """ +class CitationsContentBlockDict(TypedDict, total=False): + """Dictionary form of `CitationsContentBlock`.""" + + content: Sequence[CitationGeneratedContent | CitationGeneratedContentDict] | None + """The generated content that is supported by the associated citations.""" + citations: Sequence[Citation | CitationDict] | None + """ + An array of citations that reference the source documents used to + generate the associated content. + """ + @dataclass(kw_only=True) class CitationsDelta(_SerdeShape): """ @@ -553,6 +755,16 @@ cited or referenced in the model's response. class _CitationSourceContentDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CitationSourceContent: ... +class CitationSourceContentTextDict(TypedDict): + text: str + """The text content from the source document that is being cited.""" + +CitationSourceContentDict = Union[CitationSourceContentTextDict] +""" +Dictionary form of `CitationSourceContent`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class CitationSourceContentDelta(_SerdeShape): """ @@ -731,6 +943,110 @@ API operations. class _ContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ContentBlock: ... +class ContentBlockTextDict(TypedDict): + text: str + """Text to include in the message.""" + +class ContentBlockImageDict(TypedDict): + image: ImageBlock | ImageBlockDict + """ + Image to include in the message. + + Note: + This field is only supported by Anthropic Claude 3 models. + """ + +class ContentBlockDocumentDict(TypedDict): + document: DocumentBlock | DocumentBlockDict + """A document to include in the message.""" + +class ContentBlockVideoDict(TypedDict): + video: VideoBlock | VideoBlockDict + """Video to include in the message.""" + +class ContentBlockAudioDict(TypedDict): + audio: AudioBlock | AudioBlockDict + """An audio content block containing audio data in the conversation.""" + +class ContentBlockToolUseDict(TypedDict): + tool_use: ToolUseBlock | ToolUseBlockDict + """Information about a tool use request from a model.""" + +class ContentBlockToolResultDict(TypedDict): + tool_result: ToolResultBlock | ToolResultBlockDict + """The result for a tool request that a model makes.""" + +class ContentBlockGuardContentDict(TypedDict): + guard_content: GuardrailConverseContentBlock | GuardrailConverseContentBlockDict + """ + Contains the content to assess with the guardrail. If you don't specify + `guardContent` in a call to the Converse API, the guardrail (if passed + in the Converse API) assesses the entire message. + + For more information, see *Use a guardrail with the Converse API* in the + *Amazon Bedrock User Guide*. + """ + +class ContentBlockCachePointDict(TypedDict): + cache_point: CachePointBlock | CachePointBlockDict + """CachePoint to include in the message.""" + +class ContentBlockReasoningContentDict(TypedDict): + reasoning_content: ReasoningContentBlock | ReasoningContentBlockDict + """ + Contains content regarding the reasoning that is carried out by the + model. Reasoning refers to a Chain of Thought (CoT) that the model + generates to enhance the accuracy of its final response. + """ + +class ContentBlockCitationsContentDict(TypedDict): + citations_content: CitationsContentBlock | CitationsContentBlockDict + """ + A content block that contains both generated text and associated + citation information, providing traceability between the response and + source documents. + """ + +class ContentBlockSearchResultDict(TypedDict): + search_result: SearchResultBlock | SearchResultBlockDict + """Search result to include in the message.""" + +class ContentBlockToolAdditionDict(TypedDict): + tool_addition: ToolAdditionBlock | ToolAdditionBlockDict + """ + A content block for adding a tool to the available tool set + mid-conversation. Each block references a single tool via its `tool` + field. Use within a `system` role message to make a tool available + without re-sending the full tool configuration. + """ + +class ContentBlockToolRemovalDict(TypedDict): + tool_removal: ToolRemovalBlock | ToolRemovalBlockDict + """ + A content block for removing a tool from the available tool set + mid-conversation. Each block references a single tool via its `tool` + field. Use within a `system` role message to remove a tool without + re-sending the full tool configuration. + """ + +ContentBlockDict = Union[ + ContentBlockTextDict + | ContentBlockImageDict + | ContentBlockDocumentDict + | ContentBlockVideoDict + | ContentBlockAudioDict + | ContentBlockToolUseDict + | ContentBlockToolResultDict + | ContentBlockGuardContentDict + | ContentBlockCachePointDict + | ContentBlockReasoningContentDict + | ContentBlockCitationsContentDict + | ContentBlockSearchResultDict + | ContentBlockToolAdditionDict + | ContentBlockToolRemovalDict +] +"""Dictionary form of `ContentBlock`, setting exactly one variant.""" + @dataclass class ContentBlockDeltaText(_SerdeShape): """The content text.""" @@ -984,39 +1300,157 @@ class ConverseInput(_SerdeShape): output_config: OutputConfig | None = ... """Output configuration for a model response.""" -@dataclass(kw_only=True) -class ConverseMetrics(_SerdeShape): - """ - Metrics for a call to - [Converse](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html). +class ConverseInputDict(TypedDict, total=False): + """Dictionary form of `ConverseInput`.""" + + model_id: Required[str] """ + Specifies the model or throughput with which to run inference, or the + prompt resource to use in inference. The value depends on the resource + that you use: - latency_ms: int - """The latency of the call to `Converse`, in milliseconds.""" + - If you use a base model, specify the model ID or its ARN. For a list + of model IDs for base models, see [Amazon Bedrock base model IDs + (on-demand + throughput)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) + in the Amazon Bedrock User Guide. -@dataclass(kw_only=True) -class ConverseOperationOutput(_SerdeShape): - """Dataclass for ConverseOperationOutput structure.""" + - If you use an inference profile, specify the inference profile ID or + its ARN. For a list of inference profile IDs, see [Supported Regions + and models for cross-region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) + in the Amazon Bedrock User Guide. - output: ConverseOutput - """The result from the call to `Converse`.""" - stop_reason: str - """The reason why the model stopped generating output.""" - usage: TokenUsage - """ - The total number of tokens used in the call to `Converse`. The total - includes the tokens input to the model and the tokens generated by the - model. + - If you use a provisioned model, specify the ARN of the Provisioned + Throughput. For more information, see [Run inference using a + Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html) + in the Amazon Bedrock User Guide. + + - If you use a custom model, first purchase Provisioned Throughput for + it. Then specify the ARN of the resulting provisioned model. For more + information, see [Use a custom model in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html) + in the Amazon Bedrock User Guide. + + - To include a prompt that was defined in [Prompt + management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html), + specify the ARN of the prompt version to use. + + The Converse API doesn't support [imported + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html). """ - metrics: ConverseMetrics - """Metrics for the call to `Converse`.""" - additional_model_response_fields: Document | None = ... - """Additional fields in the response that are unique to the model.""" - trace: ConverseTrace | None = ... - """A trace object that contains information about the Guardrail behavior.""" - performance_config: PerformanceConfiguration | None = ... - """Model performance settings for the request.""" - service_tier: ServiceTier | None = ... + messages: Sequence[Message | MessageDict] | None + """The messages that you want to send to the model.""" + system: Sequence[SystemContentBlock | SystemContentBlockDict] | None + """ + A prompt that provides instructions or context to the model about the + task it should perform, or the persona it should adopt during the + conversation. + """ + inference_config: InferenceConfiguration | InferenceConfigurationDict | None + """ + Inference parameters to pass to the model. `Converse` and + `ConverseStream` support a base set of inference parameters. If you need + to pass additional parameters that the model supports, use the + `additionalModelRequestFields` request field. + """ + tool_config: ToolConfiguration | ToolConfigurationDict | None + """ + Configuration information for the tools that the model can use when + generating a response. + + For information about models that support tool use, see [Supported + models and model + features](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html#conversation-inference-supported-models-features). + """ + guardrail_config: GuardrailConfiguration | GuardrailConfigurationDict | None + """ + Configuration information for a guardrail that you want to use in the + request. If you include `guardContent` blocks in the `content` field in + the `messages` field, the guardrail operates only on those messages. If + you include no `guardContent` blocks, the guardrail operates on all + messages in the request body and in any included prompt resource. + """ + additional_model_request_fields: Document | None + """ + Additional inference parameters that the model supports, beyond the base + set of inference parameters that `Converse` and `ConverseStream` support + in the `inferenceConfig` field. For more information, see [Model + parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + prompt_variables: ( + Mapping[str, PromptVariableValues | PromptVariableValuesDict] | None + ) + """ + Contains a map of variables in a prompt from Prompt management to + objects containing the values to fill in for them when running model + invocation. This field is ignored if you don't specify a prompt + resource in the `modelId` field. + """ + additional_model_response_field_paths: Sequence[str] | None + """ + Additional model parameters field paths to return in the response. + `Converse` and `ConverseStream` return the requested fields as a JSON + Pointer object in the `additionalModelResponseFields` field. The + following is example JSON for `additionalModelResponseFieldPaths`. + + `[ "/stop_sequence" ]` + + For information about the JSON Pointer syntax, see the [Internet + Engineering Task Force + (IETF)](https://datatracker.ietf.org/doc/html/rfc6901) documentation. + + `Converse` and `ConverseStream` reject an empty JSON Pointer or + incorrectly structured JSON Pointer with a `400` error code. if the JSON + Pointer is valid, but the requested field is not in the model response, + it is ignored by `Converse`. + """ + request_metadata: Mapping[str, str] | None + """Key-value pairs that you can use to filter invocation logs.""" + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """Model performance settings for the request.""" + service_tier: ServiceTier | ServiceTierDict | None + """ + Specifies the processing tier configuration used for serving the + request. + """ + output_config: OutputConfig | OutputConfigDict | None + """Output configuration for a model response.""" + +@dataclass(kw_only=True) +class ConverseMetrics(_SerdeShape): + """ + Metrics for a call to + [Converse](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html). + """ + + latency_ms: int + """The latency of the call to `Converse`, in milliseconds.""" + +@dataclass(kw_only=True) +class ConverseOperationOutput(_SerdeShape): + """Dataclass for ConverseOperationOutput structure.""" + + output: ConverseOutput + """The result from the call to `Converse`.""" + stop_reason: str + """The reason why the model stopped generating output.""" + usage: TokenUsage + """ + The total number of tokens used in the call to `Converse`. The total + includes the tokens input to the model and the tokens generated by the + model. + """ + metrics: ConverseMetrics + """Metrics for the call to `Converse`.""" + additional_model_response_fields: Document | None = ... + """Additional fields in the response that are unique to the model.""" + trace: ConverseTrace | None = ... + """A trace object that contains information about the Guardrail behavior.""" + performance_config: PerformanceConfiguration | None = ... + """Model performance settings for the request.""" + service_tier: ServiceTier | None = ... """ Specifies the processing tier configuration used for serving the request. @@ -1171,6 +1605,126 @@ class ConverseStreamInput(_SerdeShape): output_config: OutputConfig | None = ... """Output configuration for a model response.""" +class ConverseStreamInputDict(TypedDict, total=False): + """Dictionary form of `ConverseStreamInput`.""" + + model_id: Required[str] + """ + Specifies the model or throughput with which to run inference, or the + prompt resource to use in inference. The value depends on the resource + that you use: + + - If you use a base model, specify the model ID or its ARN. For a list + of model IDs for base models, see [Amazon Bedrock base model IDs + (on-demand + throughput)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) + in the Amazon Bedrock User Guide. + + - If you use an inference profile, specify the inference profile ID or + its ARN. For a list of inference profile IDs, see [Supported Regions + and models for cross-region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) + in the Amazon Bedrock User Guide. + + - If you use a provisioned model, specify the ARN of the Provisioned + Throughput. For more information, see [Run inference using a + Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html) + in the Amazon Bedrock User Guide. + + - If you use a custom model, first purchase Provisioned Throughput for + it. Then specify the ARN of the resulting provisioned model. For more + information, see [Use a custom model in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html) + in the Amazon Bedrock User Guide. + + - To include a prompt that was defined in [Prompt + management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html), + specify the ARN of the prompt version to use. + + The Converse API doesn't support [imported + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html). + """ + messages: Sequence[Message | MessageDict] | None + """The messages that you want to send to the model.""" + system: Sequence[SystemContentBlock | SystemContentBlockDict] | None + """ + A prompt that provides instructions or context to the model about the + task it should perform, or the persona it should adopt during the + conversation. + """ + inference_config: InferenceConfiguration | InferenceConfigurationDict | None + """ + Inference parameters to pass to the model. `Converse` and + `ConverseStream` support a base set of inference parameters. If you need + to pass additional parameters that the model supports, use the + `additionalModelRequestFields` request field. + """ + tool_config: ToolConfiguration | ToolConfigurationDict | None + """ + Configuration information for the tools that the model can use when + generating a response. + + For information about models that support streaming tool use, see + [Supported models and model + features](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html#conversation-inference-supported-models-features). + """ + guardrail_config: ( + GuardrailStreamConfiguration | GuardrailStreamConfigurationDict | None + ) + """ + Configuration information for a guardrail that you want to use in the + request. If you include `guardContent` blocks in the `content` field in + the `messages` field, the guardrail operates only on those messages. If + you include no `guardContent` blocks, the guardrail operates on all + messages in the request body and in any included prompt resource. + """ + additional_model_request_fields: Document | None + """ + Additional inference parameters that the model supports, beyond the base + set of inference parameters that `Converse` and `ConverseStream` support + in the `inferenceConfig` field. For more information, see [Model + parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + prompt_variables: ( + Mapping[str, PromptVariableValues | PromptVariableValuesDict] | None + ) + """ + Contains a map of variables in a prompt from Prompt management to + objects containing the values to fill in for them when running model + invocation. This field is ignored if you don't specify a prompt + resource in the `modelId` field. + """ + additional_model_response_field_paths: Sequence[str] | None + """ + Additional model parameters field paths to return in the response. + `Converse` and `ConverseStream` return the requested fields as a JSON + Pointer object in the `additionalModelResponseFields` field. The + following is example JSON for `additionalModelResponseFieldPaths`. + + `[ "/stop_sequence" ]` + + For information about the JSON Pointer syntax, see the [Internet + Engineering Task Force + (IETF)](https://datatracker.ietf.org/doc/html/rfc6901) documentation. + + `Converse` and `ConverseStream` reject an empty JSON Pointer or + incorrectly structured JSON Pointer with a `400` error code. if the JSON + Pointer is valid, but the requested field is not in the model response, + it is ignored by `Converse`. + """ + request_metadata: Mapping[str, str] | None + """Key-value pairs that you can use to filter invocation logs.""" + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """Model performance settings for the request.""" + service_tier: ServiceTier | ServiceTierDict | None + """ + Specifies the processing tier configuration used for serving the + request. + """ + output_config: OutputConfig | OutputConfigDict | None + """Output configuration for a model response.""" + @dataclass(kw_only=True) class ConverseStreamMetadataEvent(_SerdeShape): """A conversation stream metadata event.""" @@ -1367,6 +1921,30 @@ class ConverseTokensRequest(_SerdeShape): that the model supports. """ +class ConverseTokensRequestDict(TypedDict, total=False): + """Dictionary form of `ConverseTokensRequest`.""" + + messages: Sequence[Message | MessageDict] | None + """An array of messages to count tokens for.""" + system: Sequence[SystemContentBlock | SystemContentBlockDict] | None + """ + The system content blocks to count tokens for. System content provides + instructions or context to the model about how it should behave or + respond. The token count will include any system content provided. + """ + tool_config: ToolConfiguration | ToolConfigurationDict | None + """ + The toolConfig of Converse input request to count tokens for. + Configuration information for the tools that the model can use when + generating a response. + """ + additional_model_request_fields: Document | None + """ + The additionalModelRequestFields of Converse input request to count + tokens for. Use this field when you want to pass additional parameters + that the model supports. + """ + @dataclass(kw_only=True) class ConverseTrace(_SerdeShape): """ @@ -1420,6 +1998,27 @@ The input value for token counting. The value should be either an class _CountTokensInputDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CountTokensInput: ... +class CountTokensInputInvokeModelDict(TypedDict): + invoke_model: InvokeModelTokensRequest | InvokeModelTokensRequestDict + """ + An `InvokeModel` request for which to count tokens. Use this field when + you want to count tokens for a raw text input that would be sent to the + `InvokeModel` operation. + """ + +class CountTokensInputConverseDict(TypedDict): + converse: ConverseTokensRequest | ConverseTokensRequestDict + """ + A `Converse` request for which to count tokens. Use this field when you + want to count tokens for a conversation-based input that would be sent + to the `Converse` operation. + """ + +CountTokensInputDict = Union[ + CountTokensInputInvokeModelDict | CountTokensInputConverseDict +] +"""Dictionary form of `CountTokensInput`, setting exactly one variant.""" + @dataclass(kw_only=True) class CountTokensOperationInput(_SerdeShape): """Dataclass for CountTokensOperationInput structure.""" @@ -1446,6 +2045,31 @@ class CountTokensOperationInput(_SerdeShape): `modelId` parameter. """ +class CountTokensOperationInputDict(TypedDict, total=False): + """Dictionary form of `CountTokensOperationInput`.""" + + model_id: Required[str] + """ + The unique identifier or ARN of the foundation model to use for token + counting. Each model processes tokens differently, so the token count is + specific to the model you specify. + """ + input: Required[CountTokensInput | CountTokensInputDict] + """ + The input for which to count tokens. The structure of this parameter + depends on whether you're counting tokens for an `InvokeModel` or + `Converse` request: + + - For `InvokeModel` requests, provide the request body in the + `invokeModel` field + + - For `Converse` requests, provide the messages and system content in + the `converse` field + + The input format must be compatible with the model specified in the + `modelId` parameter. + """ + @dataclass(kw_only=True) class CountTokensOutput(_SerdeShape): """Dataclass for CountTokensOutput structure.""" @@ -1505,6 +2129,44 @@ class DocumentBlock(_SerdeShape): for this specific document. """ +class DocumentBlockDict(TypedDict, total=False): + """Dictionary form of `DocumentBlock`.""" + + format: str | None + """The format of a document, or its extension.""" + name: Required[str] + """ + A name for the document. The name can only contain the following + characters: + + - Alphanumeric characters + + - Whitespace characters (no more than one in a row) + + - Hyphens + + - Parentheses + + - Square brackets + + Note: + This field is vulnerable to prompt injections, because the model might + inadvertently interpret it as instructions. Therefore, we recommend that + you specify a neutral name. + """ + source: Required[DocumentSource | DocumentSourceDict] + """Contains the content of the document.""" + context: str | None + """ + Contextual information about how the document should be processed or + interpreted by the model when generating citations. + """ + citations: CitationsConfig | CitationsConfigDict | None + """ + Configuration settings that control how citations should be generated + for this specific document. + """ + @dataclass(kw_only=True) class DocumentCharLocation(_SerdeShape): """ @@ -1526,6 +2188,22 @@ class DocumentCharLocation(_SerdeShape): end: int | None = ... """The ending character position of the cited content within the document.""" +class DocumentCharLocationDict(TypedDict, total=False): + """Dictionary form of `DocumentCharLocation`.""" + + document_index: int | None + """ + The index of the document within the array of documents provided in the + request. + """ + start: int | None + """ + The starting character position of the cited content within the + document. + """ + end: int | None + """The ending character position of the cited content within the document.""" + @dataclass(kw_only=True) class DocumentChunkLocation(_SerdeShape): """ @@ -1550,6 +2228,25 @@ class DocumentChunkLocation(_SerdeShape): document. """ +class DocumentChunkLocationDict(TypedDict, total=False): + """Dictionary form of `DocumentChunkLocation`.""" + + document_index: int | None + """ + The index of the document within the array of documents provided in the + request. + """ + start: int | None + """ + The starting chunk identifier or index of the cited content within the + document. + """ + end: int | None + """ + The ending chunk identifier or index of the cited content within the + document. + """ + @dataclass class DocumentContentBlockText(_SerdeShape): """The text content of the document.""" @@ -1575,6 +2272,16 @@ model and potentially cited in the response. class _DocumentContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> DocumentContentBlock: ... +class DocumentContentBlockTextDict(TypedDict): + text: str + """The text content of the document.""" + +DocumentContentBlockDict = Union[DocumentContentBlockTextDict] +""" +Dictionary form of `DocumentContentBlock`, setting exactly one +variant. +""" + class DocumentFormat(UnknownEnumMixin, StrEnum): PDF = "pdf" CSV = "csv" @@ -1603,6 +2310,19 @@ class DocumentPageLocation(_SerdeShape): end: int | None = ... """The ending page number of the cited content within the document.""" +class DocumentPageLocationDict(TypedDict, total=False): + """Dictionary form of `DocumentPageLocation`.""" + + document_index: int | None + """ + The index of the document within the array of documents provided in the + request. + """ + start: int | None + """The starting page number of the cited content within the document.""" + end: int | None + """The ending page number of the cited content within the document.""" + @dataclass class DocumentSourceBytes(_SerdeShape): """ @@ -1659,6 +2379,40 @@ DocumentSource = Union[ class _DocumentSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> DocumentSource: ... +class DocumentSourceBytesDict(TypedDict): + bytes_: bytes + """ + The raw bytes for the document. If you use an Amazon Web Services SDK, + you don't need to encode the bytes in base64. + """ + +class DocumentSourceS3LocationDict(TypedDict): + s3_location: S3Location | S3LocationDict + """ + The location of a document object in an Amazon S3 bucket. To see which + models support S3 uploads, see [Supported models and features for + Converse](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html). + """ + +class DocumentSourceTextDict(TypedDict): + text: str + """The text content of the document source.""" + +class DocumentSourceContentDict(TypedDict): + content: Sequence[DocumentContentBlock | DocumentContentBlockDict] + """ + The structured content of the document source, which may include various + content blocks such as text, images, or other document elements. + """ + +DocumentSourceDict = Union[ + DocumentSourceBytesDict + | DocumentSourceS3LocationDict + | DocumentSourceTextDict + | DocumentSourceContentDict +] +"""Dictionary form of `DocumentSource`, setting exactly one variant.""" + @dataclass(kw_only=True) class ErrorBlock(_SerdeShape): """A block containing error information when content processing fails.""" @@ -1669,6 +2423,15 @@ class ErrorBlock(_SerdeShape): processing. """ +class ErrorBlockDict(TypedDict, total=False): + """Dictionary form of `ErrorBlock`.""" + + message: str | None + """ + A human-readable error message describing what went wrong during content + processing. + """ + @dataclass(kw_only=True) class GetAsyncInvokeInput(_SerdeShape): """Dataclass for GetAsyncInvokeInput structure.""" @@ -1676,6 +2439,12 @@ class GetAsyncInvokeInput(_SerdeShape): invocation_arn: str | None = ... """The invocation's ARN.""" +class GetAsyncInvokeInputDict(TypedDict, total=False): + """Dictionary form of `GetAsyncInvokeInput`.""" + + invocation_arn: Required[str] + """The invocation's ARN.""" + @dataclass(kw_only=True) class GetAsyncInvokeOutput(_SerdeShape): """Dataclass for GetAsyncInvokeOutput structure.""" @@ -2118,6 +2887,26 @@ class GuardrailChecksConfig(_SerdeShape): sensitive_information: GuardrailChecksSensitiveInformationConfig | None = ... """The sensitive information check configuration.""" +class GuardrailChecksConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailChecksConfig`.""" + + content_filter: ( + GuardrailChecksContentFilterConfig + | GuardrailChecksContentFilterConfigDict + | None + ) + """The content filter check configuration.""" + prompt_attack: ( + GuardrailChecksPromptAttackConfig | GuardrailChecksPromptAttackConfigDict | None + ) + """The prompt attack check configuration.""" + sensitive_information: ( + GuardrailChecksSensitiveInformationConfig + | GuardrailChecksSensitiveInformationConfigDict + | None + ) + """The sensitive information check configuration.""" + @dataclass class GuardrailChecksContentBlockText(_SerdeShape): """The text content to evaluate.""" @@ -2144,6 +2933,16 @@ class _GuardrailChecksContentBlockDeserializer: self, deserializer: ShapeDeserializer ) -> GuardrailChecksContentBlock: ... +class GuardrailChecksContentBlockTextDict(TypedDict): + text: str + """The text content to evaluate.""" + +GuardrailChecksContentBlockDict = Union[GuardrailChecksContentBlockTextDict] +""" +Dictionary form of `GuardrailChecksContentBlock`, setting exactly one +variant. +""" + class GuardrailChecksContentFilterCategory(UnknownEnumMixin, StrEnum): """The category for content filter evaluation.""" @@ -2160,6 +2959,12 @@ class GuardrailChecksContentFilterCategoryConfig(_SerdeShape): category: str """The content filter category to evaluate.""" +class GuardrailChecksContentFilterCategoryConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailChecksContentFilterCategoryConfig`.""" + + category: Required[str] + """The content filter category to evaluate.""" + @dataclass(kw_only=True) class GuardrailChecksContentFilterConfig(_SerdeShape): """ @@ -2170,6 +2975,17 @@ class GuardrailChecksContentFilterConfig(_SerdeShape): categories: list[GuardrailChecksContentFilterCategoryConfig] """The content filter categories to evaluate.""" +class GuardrailChecksContentFilterConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailChecksContentFilterConfig`.""" + + categories: Required[ + Sequence[ + GuardrailChecksContentFilterCategoryConfig + | GuardrailChecksContentFilterCategoryConfigDict + ] + ] + """The content filter categories to evaluate.""" + @dataclass(kw_only=True) class GuardrailChecksContentFilterResult(_SerdeShape): """The content filter check results.""" @@ -2208,6 +3024,16 @@ class GuardrailChecksMessage(_SerdeShape): content: list[GuardrailChecksContentBlock] """The content blocks for the message.""" +class GuardrailChecksMessageDict(TypedDict, total=False): + """Dictionary form of `GuardrailChecksMessage`.""" + + role: Required[str] + """The role of the message sender.""" + content: Required[ + Sequence[GuardrailChecksContentBlock | GuardrailChecksContentBlockDict] + ] + """The content blocks for the message.""" + class GuardrailChecksPromptAttackCategory(UnknownEnumMixin, StrEnum): """The category for prompt attack evaluation.""" @@ -2222,6 +3048,12 @@ class GuardrailChecksPromptAttackCategoryConfig(_SerdeShape): category: str """The prompt attack category to evaluate.""" +class GuardrailChecksPromptAttackCategoryConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailChecksPromptAttackCategoryConfig`.""" + + category: Required[str] + """The prompt attack category to evaluate.""" + @dataclass(kw_only=True) class GuardrailChecksPromptAttackConfig(_SerdeShape): """ @@ -2232,6 +3064,17 @@ class GuardrailChecksPromptAttackConfig(_SerdeShape): categories: list[GuardrailChecksPromptAttackCategoryConfig] """The prompt attack categories to evaluate.""" +class GuardrailChecksPromptAttackConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailChecksPromptAttackConfig`.""" + + categories: Required[ + Sequence[ + GuardrailChecksPromptAttackCategoryConfig + | GuardrailChecksPromptAttackCategoryConfigDict + ] + ] + """The prompt attack categories to evaluate.""" + @dataclass(kw_only=True) class GuardrailChecksPromptAttackResult(_SerdeShape): """The prompt attack check results.""" @@ -2289,6 +3132,17 @@ class GuardrailChecksSensitiveInformationConfig(_SerdeShape): entities: list[GuardrailChecksSensitiveInformationEntityConfig] """The sensitive information entity types to detect.""" +class GuardrailChecksSensitiveInformationConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailChecksSensitiveInformationConfig`.""" + + entities: Required[ + Sequence[ + GuardrailChecksSensitiveInformationEntityConfig + | GuardrailChecksSensitiveInformationEntityConfigDict + ] + ] + """The sensitive information entity types to detect.""" + @dataclass(kw_only=True) class GuardrailChecksSensitiveInformationEntityConfig(_SerdeShape): """ @@ -2299,6 +3153,12 @@ class GuardrailChecksSensitiveInformationEntityConfig(_SerdeShape): type: str """The PII entity type to detect.""" +class GuardrailChecksSensitiveInformationEntityConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailChecksSensitiveInformationEntityConfig`.""" + + type: Required[str] + """The PII entity type to detect.""" + class GuardrailChecksSensitiveInformationEntityType(UnknownEnumMixin, StrEnum): """The type of personally identifiable information (PII) entity to detect.""" @@ -2417,6 +3277,16 @@ class GuardrailConfiguration(_SerdeShape): trace: str = ... """The trace behavior for the guardrail.""" +class GuardrailConfigurationDict(TypedDict, total=False): + """Dictionary form of `GuardrailConfiguration`.""" + + guardrail_identifier: str | None + """The identifier for the guardrail.""" + guardrail_version: str | None + """The version of the guardrail.""" + trace: str | None + """The trace behavior for the guardrail.""" + @dataclass class GuardrailContentBlockText(_SerdeShape): """Text within content block to be evaluated by the guardrail.""" @@ -2449,6 +3319,22 @@ GuardrailContentBlock = Union[ class _GuardrailContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> GuardrailContentBlock: ... +class GuardrailContentBlockTextDict(TypedDict): + text: GuardrailTextBlock | GuardrailTextBlockDict + """Text within content block to be evaluated by the guardrail.""" + +class GuardrailContentBlockImageDict(TypedDict): + image: GuardrailImageBlock | GuardrailImageBlockDict + """Image within guardrail content block to be evaluated by the guardrail.""" + +GuardrailContentBlockDict = Union[ + GuardrailContentBlockTextDict | GuardrailContentBlockImageDict +] +""" +Dictionary form of `GuardrailContentBlock`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class GuardrailContentFilter(_SerdeShape): """The content filter for a guardrail.""" @@ -2587,6 +3473,22 @@ class _GuardrailConverseContentBlockDeserializer: self, deserializer: ShapeDeserializer ) -> GuardrailConverseContentBlock: ... +class GuardrailConverseContentBlockTextDict(TypedDict): + text: GuardrailConverseTextBlock | GuardrailConverseTextBlockDict + """The text to guard.""" + +class GuardrailConverseContentBlockImageDict(TypedDict): + image: GuardrailConverseImageBlock | GuardrailConverseImageBlockDict + """Image within converse content block to be evaluated by the guardrail.""" + +GuardrailConverseContentBlockDict = Union[ + GuardrailConverseContentBlockTextDict | GuardrailConverseContentBlockImageDict +] +""" +Dictionary form of `GuardrailConverseContentBlock`, setting exactly +one variant. +""" + class GuardrailConverseContentQualifier(UnknownEnumMixin, StrEnum): GROUNDING_SOURCE = "grounding_source" QUERY = "query" @@ -2607,6 +3509,17 @@ class GuardrailConverseImageBlock(_SerdeShape): source: GuardrailConverseImageSource """The image source (image bytes) of the guardrail converse image block.""" +class GuardrailConverseImageBlockDict(TypedDict, total=False): + """Dictionary form of `GuardrailConverseImageBlock`.""" + + format: Required[str] + """ + The format details for the image type of the guardrail converse image + block. + """ + source: Required[GuardrailConverseImageSource | GuardrailConverseImageSourceDict] + """The image source (image bytes) of the guardrail converse image block.""" + class GuardrailConverseImageFormat(UnknownEnumMixin, StrEnum): PNG = "png" JPEG = "jpeg" @@ -2637,6 +3550,16 @@ class _GuardrailConverseImageSourceDeserializer: self, deserializer: ShapeDeserializer ) -> GuardrailConverseImageSource: ... +class GuardrailConverseImageSourceBytesDict(TypedDict): + bytes_: bytes + """The raw image bytes for the image.""" + +GuardrailConverseImageSourceDict = Union[GuardrailConverseImageSourceBytesDict] +""" +Dictionary form of `GuardrailConverseImageSource`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class GuardrailConverseTextBlock(_SerdeShape): """ @@ -2650,6 +3573,14 @@ class GuardrailConverseTextBlock(_SerdeShape): qualifiers: list[str] | None = ... """The qualifier details for the guardrails contextual grounding filter.""" +class GuardrailConverseTextBlockDict(TypedDict, total=False): + """Dictionary form of `GuardrailConverseTextBlock`.""" + + text: Required[str] + """The text that you want to guard.""" + qualifiers: Sequence[str] | None + """The qualifier details for the guardrails contextual grounding filter.""" + @dataclass(kw_only=True) class GuardrailCoverage(_SerdeShape): """The action of the guardrail coverage details.""" @@ -2694,6 +3625,20 @@ class GuardrailImageBlock(_SerdeShape): guardrail. """ +class GuardrailImageBlockDict(TypedDict, total=False): + """Dictionary form of `GuardrailImageBlock`.""" + + format: Required[str] + """ + The format details for the file type of the image blocked by the + guardrail. + """ + source: Required[GuardrailImageSource | GuardrailImageSourceDict] + """ + The image source (image bytes) details of the image blocked by the + guardrail. + """ + @dataclass(kw_only=True) class GuardrailImageCoverage(_SerdeShape): """The details of the guardrail image coverage.""" @@ -2738,6 +3683,19 @@ used in independent api. class _GuardrailImageSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> GuardrailImageSource: ... +class GuardrailImageSourceBytesDict(TypedDict): + bytes_: bytes + """ + The bytes details of the guardrail image source. Object used in + independent api. + """ + +GuardrailImageSourceDict = Union[GuardrailImageSourceBytesDict] +""" +Dictionary form of `GuardrailImageSource`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class GuardrailInvocationMetrics(_SerdeShape): """The invocation metrics for the guardrail.""" @@ -2894,6 +3852,23 @@ class GuardrailStreamConfiguration(_SerdeShape): response behavior* in the *Amazon Bedrock User Guide*. """ +class GuardrailStreamConfigurationDict(TypedDict, total=False): + """Dictionary form of `GuardrailStreamConfiguration`.""" + + guardrail_identifier: str | None + """The identifier for the guardrail.""" + guardrail_version: str | None + """The version of the guardrail.""" + trace: str | None + """The trace behavior for the guardrail.""" + stream_processing_mode: str | None + """ + The processing mode. + + The processing mode. For more information, see *Configure streaming + response behavior* in the *Amazon Bedrock User Guide*. + """ + class GuardrailStreamProcessingMode(UnknownEnumMixin, StrEnum): SYNC = "sync" ASYNC_ = "async" @@ -2907,6 +3882,14 @@ class GuardrailTextBlock(_SerdeShape): qualifiers: list[str] | None = ... """The qualifiers describing the text block.""" +class GuardrailTextBlockDict(TypedDict, total=False): + """Dictionary form of `GuardrailTextBlock`.""" + + text: Required[str] + """The input text details to be evaluated by the guardrail.""" + qualifiers: Sequence[str] | None + """The qualifiers describing the text block.""" + @dataclass(kw_only=True) class GuardrailTextCharactersCoverage(_SerdeShape): """The guardrail coverage for the text characters.""" @@ -3026,6 +4009,19 @@ class ImageBlock(_SerdeShape): invalid data. """ +class ImageBlockDict(TypedDict, total=False): + """Dictionary form of `ImageBlock`.""" + + format: Required[str] + """The format of the image.""" + source: Required[ImageSource | ImageSourceDict] + """The source for the image.""" + error: ErrorBlock | ErrorBlockDict | None + """ + Error information if the image block could not be processed or contains + invalid data. + """ + @dataclass(kw_only=True) class ImageBlockDelta(_SerdeShape): """ @@ -3086,11 +4082,29 @@ class ImageSourceUnknown(_SerdeShape): tag: str -ImageSource = Union[ImageSourceBytes | ImageSourceS3Location | ImageSourceUnknown] -"""The source for an image.""" +ImageSource = Union[ImageSourceBytes | ImageSourceS3Location | ImageSourceUnknown] +"""The source for an image.""" + +class _ImageSourceDeserializer: + def deserialize(self, deserializer: ShapeDeserializer) -> ImageSource: ... + +class ImageSourceBytesDict(TypedDict): + bytes_: bytes + """ + The raw image bytes for the image. If you use an AWS SDK, you don't + need to encode the image bytes in base64. + """ + +class ImageSourceS3LocationDict(TypedDict): + s3_location: S3Location | S3LocationDict + """ + The location of an image object in an Amazon S3 bucket. To see which + models support S3 uploads, see [Supported models and features for + Converse](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html). + """ -class _ImageSourceDeserializer: - def deserialize(self, deserializer: ShapeDeserializer) -> ImageSource: ... +ImageSourceDict = Union[ImageSourceBytesDict | ImageSourceS3LocationDict] +"""Dictionary form of `ImageSource`, setting exactly one variant.""" @dataclass(kw_only=True) class InferenceConfiguration(_SerdeShape): @@ -3143,6 +4157,44 @@ class InferenceConfiguration(_SerdeShape): that causes the model to stop generating the response. """ +class InferenceConfigurationDict(TypedDict, total=False): + """Dictionary form of `InferenceConfiguration`.""" + + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response. The + default value is the maximum allowed value for the model that you are + using. For more information, see [Inference parameters for foundation + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + temperature: float | None + """ + The likelihood of the model selecting higher-probability options while + generating a response. A lower value makes the model more likely to + choose higher-probability options, while a higher value makes the model + more likely to choose lower-probability options. + + The default value is the default value for the model that you are using. + For more information, see [Inference parameters for foundation + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + top_p: float | None + """ + The percentage of most-likely candidates that the model considers for + the next token. For example, if you choose a value of 0.8 for `topP`, + the model selects from the top 80% of the probability distribution of + tokens that could be next in the sequence. + + The default value is the default value for the model that you are using. + For more information, see [Inference parameters for foundation + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + stop_sequences: Sequence[str] | None + """ + A list of stop sequences. A stop sequence is a sequence of characters + that causes the model to stop generating the response. + """ + @dataclass(kw_only=True) class InternalServerException(ServiceError, _SerdeShape): """ @@ -3174,6 +4226,20 @@ class InvokeGuardrailChecksInput(_SerdeShape): run against the messages. """ +class InvokeGuardrailChecksInputDict(TypedDict, total=False): + """Dictionary form of `InvokeGuardrailChecksInput`.""" + + messages: Required[Sequence[GuardrailChecksMessage | GuardrailChecksMessageDict]] + """ + The messages to evaluate against the specified guardrail checks. Each + message includes a role and one or more content blocks. + """ + checks: Required[GuardrailChecksConfig | GuardrailChecksConfigDict] + """ + The inline check configurations that specify which guardrail checks to + run against the messages. + """ + @dataclass(kw_only=True) class InvokeGuardrailChecksOutput(_SerdeShape): """Dataclass for InvokeGuardrailChecksOutput structure.""" @@ -3284,6 +4350,99 @@ class InvokeModelInput(_SerdeShape): request_metadata: str | None = ... """Key-value pairs that you can use to filter invocation logs.""" +class InvokeModelInputDict(TypedDict, total=False): + """Dictionary form of `InvokeModelInput`.""" + + body: bytes | None + """ + The prompt and inference parameters in the format specified in the + `contentType` in the header. You must provide the body in JSON format. + To see the format and content of the request and response bodies for + different models, refer to [Inference + parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + For more information, see [Run + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html) + in the Bedrock User Guide. + """ + content_type: str | None + """ + The MIME type of the input data in the request. You must specify + `application/json`. + """ + accept: str | None + """ + The desired MIME type of the inference body in the response. The default + value is `application/json`. + """ + model_id: Required[str] + """ + The unique identifier of the model to invoke to run inference. + + The `modelId` to provide depends on the type of model or throughput that + you use: + + - If you use a base model, specify the model ID or its ARN. For a list + of model IDs for base models, see [Amazon Bedrock base model IDs + (on-demand + throughput)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) + in the Amazon Bedrock User Guide. + + - If you use an inference profile, specify the inference profile ID or + its ARN. For a list of inference profile IDs, see [Supported Regions + and models for cross-region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) + in the Amazon Bedrock User Guide. + + - If you use a provisioned model, specify the ARN of the Provisioned + Throughput. For more information, see [Run inference using a + Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html) + in the Amazon Bedrock User Guide. + + - If you use a custom model, specify the ARN of the custom model + deployment (for on-demand inference) or the ARN of your provisioned + model (for Provisioned Throughput). For more information, see [Use a + custom model in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html) + in the Amazon Bedrock User Guide. + + - If you use an [imported + model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html), + specify the ARN of the imported model. You can get the model ARN from + a successful call to + [CreateModelImportJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html) + or from the Imported models page in the Amazon Bedrock console. + """ + trace: str | None + """ + Specifies whether to enable or disable the Bedrock trace. If enabled, + you can see the full Bedrock trace. + """ + guardrail_identifier: str | None + """ + The unique identifier of the guardrail that you want to use. If you + don't provide a value, no guardrail is applied to the invocation. + + An error will be thrown in the following situations. + + - You don't provide a guardrail identifier but you specify the + `amazon-bedrock-guardrailConfig` field in the request body. + + - You enable the guardrail but the `contentType` isn't + `application/json`. + + - You provide a guardrail identifier, but `guardrailVersion` isn't + specified. + """ + guardrail_version: str | None + """The version number for the guardrail. The value can also be `DRAFT`.""" + performance_config_latency: str | None + """Model performance settings for the request.""" + service_tier: str | None + """Specifies the processing tier type used for serving the request.""" + request_metadata: str | None + """Key-value pairs that you can use to filter invocation logs.""" + @dataclass(kw_only=True) class InvokeModelOutput(_SerdeShape): """Dataclass for InvokeModelOutput structure.""" @@ -3325,6 +4484,17 @@ class InvokeModelTokensRequest(_SerdeShape): responses](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). """ +class InvokeModelTokensRequestDict(TypedDict, total=False): + """Dictionary form of `InvokeModelTokensRequest`.""" + + body: Required[bytes] + """ + The request body to count tokens for, formatted according to the + model's expected input format. To learn about the input format for + different models, see [Model inference parameters and + responses](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + """ + @dataclass class InvokeModelWithBidirectionalStreamInputChunk(_SerdeShape): """The audio chunk that is used as input for the invocation step.""" @@ -3368,6 +4538,15 @@ class InvokeModelWithBidirectionalStreamOperationInput(_SerdeShape): `amazon.nova-sonic-v1:0` is supported. """ +class InvokeModelWithBidirectionalStreamOperationInputDict(TypedDict, total=False): + """Dictionary form of `InvokeModelWithBidirectionalStreamOperationInput`.""" + + model_id: Required[str] + """ + The model ID or ARN of the model ID to use. Currently, only + `amazon.nova-sonic-v1:0` is supported. + """ + @dataclass(kw_only=True) class InvokeModelWithBidirectionalStreamOperationOutput(_SerdeShape): """ @@ -3552,6 +4731,99 @@ class InvokeModelWithResponseStreamInput(_SerdeShape): request_metadata: str | None = ... """Key-value pairs that you can use to filter invocation logs.""" +class InvokeModelWithResponseStreamInputDict(TypedDict, total=False): + """Dictionary form of `InvokeModelWithResponseStreamInput`.""" + + body: bytes | None + """ + The prompt and inference parameters in the format specified in the + `contentType` in the header. You must provide the body in JSON format. + To see the format and content of the request and response bodies for + different models, refer to [Inference + parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + For more information, see [Run + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html) + in the Bedrock User Guide. + """ + content_type: str | None + """ + The MIME type of the input data in the request. You must specify + `application/json`. + """ + accept: str | None + """ + The desired MIME type of the inference body in the response. The default + value is `application/json`. + """ + model_id: Required[str] + """ + The unique identifier of the model to invoke to run inference. + + The `modelId` to provide depends on the type of model or throughput that + you use: + + - If you use a base model, specify the model ID or its ARN. For a list + of model IDs for base models, see [Amazon Bedrock base model IDs + (on-demand + throughput)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) + in the Amazon Bedrock User Guide. + + - If you use an inference profile, specify the inference profile ID or + its ARN. For a list of inference profile IDs, see [Supported Regions + and models for cross-region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) + in the Amazon Bedrock User Guide. + + - If you use a provisioned model, specify the ARN of the Provisioned + Throughput. For more information, see [Run inference using a + Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html) + in the Amazon Bedrock User Guide. + + - If you use a custom model, specify the ARN of the custom model + deployment (for on-demand inference) or the ARN of your provisioned + model (for Provisioned Throughput). For more information, see [Use a + custom model in Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html) + in the Amazon Bedrock User Guide. + + - If you use an [imported + model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html), + specify the ARN of the imported model. You can get the model ARN from + a successful call to + [CreateModelImportJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html) + or from the Imported models page in the Amazon Bedrock console. + """ + trace: str | None + """ + Specifies whether to enable or disable the Bedrock trace. If enabled, + you can see the full Bedrock trace. + """ + guardrail_identifier: str | None + """ + The unique identifier of the guardrail that you want to use. If you + don't provide a value, no guardrail is applied to the invocation. + + An error is thrown in the following situations. + + - You don't provide a guardrail identifier but you specify the + `amazon-bedrock-guardrailConfig` field in the request body. + + - You enable the guardrail but the `contentType` isn't + `application/json`. + + - You provide a guardrail identifier, but `guardrailVersion` isn't + specified. + """ + guardrail_version: str | None + """The version number for the guardrail. The value can also be `DRAFT`.""" + performance_config_latency: str | None + """Model performance settings for the request.""" + service_tier: str | None + """Specifies the processing tier type used for serving the request.""" + request_metadata: str | None + """Key-value pairs that you can use to filter invocation logs.""" + @dataclass(kw_only=True) class InvokeModelWithResponseStreamOutput(_SerdeShape): """Dataclass for InvokeModelWithResponseStreamOutput structure.""" @@ -3585,26 +4857,61 @@ class JsonSchemaDefinition(_SerdeShape): description: str | None = ... """A description of the JSON schema.""" +class JsonSchemaDefinitionDict(TypedDict, total=False): + """Dictionary form of `JsonSchemaDefinition`.""" + + schema: Required[str] + """ + The JSON schema to constrain the model's output. For more information, + see [JSON Schema + Reference](https://json-schema.org/understanding-json-schema/reference). + """ + name: str | None + """The name of the JSON schema.""" + description: str | None + """A description of the JSON schema.""" + @dataclass(kw_only=True) class ListAsyncInvokesInput(_SerdeShape): """Dataclass for ListAsyncInvokesInput structure.""" - submit_time_after: datetime | None = ... + submit_time_after: datetime | None = ... + """Include invocations submitted after this time.""" + submit_time_before: datetime | None = ... + """Include invocations submitted before this time.""" + status_equals: str | None = ... + """Filter invocations by status.""" + max_results: int | None = ... + """The maximum number of invocations to return in one page of results.""" + next_token: str | None = ... + """ + Specify the pagination token from a previous request to retrieve the + next page of results. + """ + sort_by: str = ... + """How to sort the response.""" + sort_order: str = ... + """The sorting order for the response.""" + +class ListAsyncInvokesInputDict(TypedDict, total=False): + """Dictionary form of `ListAsyncInvokesInput`.""" + + submit_time_after: datetime | None """Include invocations submitted after this time.""" - submit_time_before: datetime | None = ... + submit_time_before: datetime | None """Include invocations submitted before this time.""" - status_equals: str | None = ... + status_equals: str | None """Filter invocations by status.""" - max_results: int | None = ... + max_results: int | None """The maximum number of invocations to return in one page of results.""" - next_token: str | None = ... + next_token: str | None """ Specify the pagination token from a previous request to retrieve the next page of results. """ - sort_by: str = ... + sort_by: str | None """How to sort the response.""" - sort_order: str = ... + sort_order: str | None """The sorting order for the response.""" @dataclass(kw_only=True) @@ -3653,6 +4960,27 @@ class Message(_SerdeShape): - You can only include images and documents if the `role` is `user`. """ +class MessageDict(TypedDict, total=False): + """Dictionary form of `Message`.""" + + role: Required[str] + """The role that the message plays in the message.""" + content: Required[Sequence[ContentBlock | ContentBlockDict]] + """ + The message content. Note the following restrictions: + + - You can include up to 20 images. Each image's size, height, and width + must be no more than 3.75 MB, 8000 px, and 8000 px, respectively. + + - You can include up to five documents. Each document's size must be no + more than 4.5 MB. + + - If you include a `ContentBlock` with a `document` field in the array, + you must also include a `ContentBlock` with a `text` field. + + - You can only include images and documents if the `role` is `user`. + """ + @dataclass(kw_only=True) class MessageStartEvent(_SerdeShape): """The start of a message.""" @@ -3758,6 +5086,24 @@ class OutputConfig(_SerdeShape): effort levels. """ +class OutputConfigDict(TypedDict, total=False): + """Dictionary form of `OutputConfig`.""" + + text_format: OutputFormat | OutputFormatDict | None + """Structured output parameters to control the model's text response.""" + effort: str | None + """ + The effort level for the model to use when generating a response. Higher + effort levels allow the model to spend more time reasoning before + responding. Supported values are `low`, `medium`, `high`, `xhigh`, and + `max`. + + Note: + When extended thinking is disabled, the effort level is capped at + `high`. Use effort `high` or below, or enable thinking to use higher + effort levels. + """ + @dataclass(kw_only=True) class OutputFormat(_SerdeShape): """Structured output parameters to control the model's response.""" @@ -3767,6 +5113,14 @@ class OutputFormat(_SerdeShape): structure: OutputFormatStructure """The structure that the model's output must adhere to.""" +class OutputFormatDict(TypedDict, total=False): + """Dictionary form of `OutputFormat`.""" + + type: Required[str] + """The type of structured output format.""" + structure: Required[OutputFormatStructure | OutputFormatStructureDict] + """The structure that the model's output must adhere to.""" + @dataclass class OutputFormatStructureJsonSchema(_SerdeShape): """A JSON schema structure that the model's output must adhere to.""" @@ -3791,6 +5145,16 @@ OutputFormatStructure = Union[ class _OutputFormatStructureDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> OutputFormatStructure: ... +class OutputFormatStructureJsonSchemaDict(TypedDict): + json_schema: JsonSchemaDefinition | JsonSchemaDefinitionDict + """A JSON schema structure that the model's output must adhere to.""" + +OutputFormatStructureDict = Union[OutputFormatStructureJsonSchemaDict] +""" +Dictionary form of `OutputFormatStructure`, setting exactly one +variant. +""" + class OutputFormatType(UnknownEnumMixin, StrEnum): """ The type of structured output format. Available options are: @@ -3817,6 +5181,12 @@ class PerformanceConfiguration(_SerdeShape): latency: str = ... """To use a latency-optimized version of the model, set to `optimized`.""" +class PerformanceConfigurationDict(TypedDict, total=False): + """Dictionary form of `PerformanceConfiguration`.""" + + latency: str | None + """To use a latency-optimized version of the model, set to `optimized`.""" + @dataclass(kw_only=True) class PromptRouterTrace(_SerdeShape): """A prompt router trace.""" @@ -3851,6 +5221,16 @@ works](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-ho class _PromptVariableValuesDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PromptVariableValues: ... +class PromptVariableValuesTextDict(TypedDict): + text: str + """The text value that the variable maps to.""" + +PromptVariableValuesDict = Union[PromptVariableValuesTextDict] +""" +Dictionary form of `PromptVariableValues`, setting exactly one +variant. +""" + @dataclass class ReasoningContentBlockReasoningText(_SerdeShape): """The reasoning that the model used to return the output.""" @@ -3892,6 +5272,26 @@ accuracy of its final response. class _ReasoningContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ReasoningContentBlock: ... +class ReasoningContentBlockReasoningTextDict(TypedDict): + reasoning_text: ReasoningTextBlock | ReasoningTextBlockDict + """The reasoning that the model used to return the output.""" + +class ReasoningContentBlockRedactedContentDict(TypedDict): + redacted_content: bytes + """ + The content in the reasoning that was encrypted by the model provider + for safety reasons. The encryption doesn't affect the quality of + responses. + """ + +ReasoningContentBlockDict = Union[ + ReasoningContentBlockReasoningTextDict | ReasoningContentBlockRedactedContentDict +] +""" +Dictionary form of `ReasoningContentBlock`, setting exactly one +variant. +""" + @dataclass class ReasoningContentBlockDeltaText(_SerdeShape): """The reasoning that the model used to return the output.""" @@ -3959,6 +5359,18 @@ class ReasoningTextBlock(_SerdeShape): conversation, include the text and its signature unmodified. """ +class ReasoningTextBlockDict(TypedDict, total=False): + """Dictionary form of `ReasoningTextBlock`.""" + + text: Required[str] + """The reasoning that the model used to return the output.""" + signature: str | None + """ + A token that verifies that the reasoning text was generated by the + model. If you pass a reasoning block back to the API in a multi-turn + conversation, include the text and its signature unmodified. + """ + @dataclass(kw_only=True) class ResourceNotFoundException(ServiceError, _SerdeShape): """ @@ -4067,6 +5479,17 @@ class S3Location(_SerdeShape): ID. """ +class S3LocationDict(TypedDict, total=False): + """Dictionary form of `S3Location`.""" + + uri: Required[str] + """An object URI starting with `s3://`.""" + bucket_owner: str | None + """ + If the bucket belongs to another AWS account, specify that account's + ID. + """ + @dataclass(kw_only=True) class SearchResultBlock(_SerdeShape): """ @@ -4087,6 +5510,18 @@ class SearchResultBlock(_SerdeShape): citations: CitationsConfig | None = ... """Configuration setting for citations""" +class SearchResultBlockDict(TypedDict, total=False): + """Dictionary form of `SearchResultBlock`.""" + + source: Required[str] + """The source URL or identifier for the content.""" + title: Required[str] + """A descriptive title for the search result.""" + content: Required[Sequence[SearchResultContentBlock | SearchResultContentBlockDict]] + """An array of search result content block.""" + citations: CitationsConfig | CitationsConfigDict | None + """Configuration setting for citations""" + @dataclass(kw_only=True) class SearchResultContentBlock(_SerdeShape): """A block within a search result that contains the content.""" @@ -4094,6 +5529,12 @@ class SearchResultContentBlock(_SerdeShape): text: str """The actual text content""" +class SearchResultContentBlockDict(TypedDict, total=False): + """Dictionary form of `SearchResultContentBlock`.""" + + text: Required[str] + """The actual text content""" + @dataclass(kw_only=True) class SearchResultLocation(_SerdeShape): """ @@ -4115,6 +5556,22 @@ class SearchResultLocation(_SerdeShape): end: int | None = ... """The ending position in the content array where the cited content ends.""" +class SearchResultLocationDict(TypedDict, total=False): + """Dictionary form of `SearchResultLocation`.""" + + search_result_index: int | None + """ + The index of the search result content block where the cited content is + found. + """ + start: int | None + """ + The starting position in the content array where the cited content + begins. + """ + end: int | None + """The ending position in the content array where the cited content ends.""" + @dataclass(kw_only=True) class ServiceQuotaExceededException(ServiceError, _SerdeShape): """ @@ -4142,6 +5599,12 @@ class ServiceTier(_SerdeShape): type: str """Specifies the processing tier type used for serving the request.""" +class ServiceTierDict(TypedDict, total=False): + """Dictionary form of `ServiceTier`.""" + + type: Required[str] + """Specifies the processing tier type used for serving the request.""" + class ServiceTierType(UnknownEnumMixin, StrEnum): PRIORITY = "priority" DEFAULT = "default" @@ -4188,6 +5651,12 @@ class SpecificToolChoice(_SerdeShape): name: str """The name of the tool that the model must request.""" +class SpecificToolChoiceDict(TypedDict, total=False): + """Dictionary form of `SpecificToolChoice`.""" + + name: Required[str] + """The name of the tool that the model must request.""" + @dataclass(kw_only=True) class StartAsyncInvokeInput(_SerdeShape): """Dataclass for StartAsyncInvokeInput structure.""" @@ -4207,6 +5676,26 @@ class StartAsyncInvokeInput(_SerdeShape): tags: list[Tag] | None = ... """Tags to apply to the invocation.""" +class StartAsyncInvokeInputDict(TypedDict, total=False): + """Dictionary form of `StartAsyncInvokeInput`.""" + + client_request_token: str | None + """ + Specify idempotency token to ensure that requests are not duplicated. + + This field is autopopulated if not provided. + """ + model_id: Required[str] + """The model to invoke.""" + model_input: Required[Document] + """Input to send to the model.""" + output_data_config: Required[ + AsyncInvokeOutputDataConfig | AsyncInvokeOutputDataConfigDict + ] + """Where to store the output.""" + tags: Sequence[Tag | TagDict] | None + """Tags to apply to the invocation.""" + @dataclass(kw_only=True) class StartAsyncInvokeOutput(_SerdeShape): """Dataclass for StartAsyncInvokeOutput structure.""" @@ -4284,6 +5773,34 @@ API](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference class _SystemContentBlockDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> SystemContentBlock: ... +class SystemContentBlockTextDict(TypedDict): + text: str + """A system prompt for the model.""" + +class SystemContentBlockGuardContentDict(TypedDict): + guard_content: GuardrailConverseContentBlock | GuardrailConverseContentBlockDict + """ + A content block to assess with the guardrail. Use with the + [Converse](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html) + or + [ConverseStream](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html) + API operations. + + For more information, see *Use a guardrail with the Converse API* in the + *Amazon Bedrock User Guide*. + """ + +class SystemContentBlockCachePointDict(TypedDict): + cache_point: CachePointBlock | CachePointBlockDict + """CachePoint to include in the system prompt.""" + +SystemContentBlockDict = Union[ + SystemContentBlockTextDict + | SystemContentBlockGuardContentDict + | SystemContentBlockCachePointDict +] +"""Dictionary form of `SystemContentBlock`, setting exactly one variant.""" + @dataclass(kw_only=True) class SystemTool(_SerdeShape): """ @@ -4294,6 +5811,12 @@ class SystemTool(_SerdeShape): name: str """The name of the system-defined tool that you want to call.""" +class SystemToolDict(TypedDict, total=False): + """Dictionary form of `SystemTool`.""" + + name: Required[str] + """The name of the system-defined tool that you want to call.""" + @dataclass(kw_only=True) class Tag(_SerdeShape): """A tag.""" @@ -4303,6 +5826,14 @@ class Tag(_SerdeShape): value: str """The tag's value.""" +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """The tag's key.""" + value: Required[str] + """The tag's value.""" + @dataclass(kw_only=True) class ThrottlingException(ServiceError, _SerdeShape): """ @@ -4379,6 +5910,21 @@ in the Amazon Bedrock User Guide. class _ToolDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Tool: ... +class ToolToolSpecDict(TypedDict): + tool_spec: ToolSpecification | ToolSpecificationDict + """The specfication for the tool.""" + +class ToolSystemToolDict(TypedDict): + system_tool: SystemTool | SystemToolDict + """Specifies the system-defined tool that you want use.""" + +class ToolCachePointDict(TypedDict): + cache_point: CachePointBlock | CachePointBlockDict + """CachePoint to include in the tool configuration.""" + +ToolDict = Union[ToolToolSpecDict | ToolSystemToolDict | ToolCachePointDict] +"""Dictionary form of `Tool`, setting exactly one variant.""" + @dataclass(kw_only=True) class ToolAdditionBlock(_SerdeShape): """ @@ -4391,6 +5937,12 @@ class ToolAdditionBlock(_SerdeShape): tool: ToolReference """A reference to the tool to add to the available tool set.""" +class ToolAdditionBlockDict(TypedDict, total=False): + """Dictionary form of `ToolAdditionBlock`.""" + + tool: Required[ToolReference | ToolReferenceDict] + """A reference to the tool to add to the available tool set.""" + @dataclass class ToolChoiceAuto(_SerdeShape): """ @@ -4437,6 +5989,27 @@ in the Amazon Bedrock User Guide. class _ToolChoiceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ToolChoice: ... +class ToolChoiceAutoDict(TypedDict): + auto: AutoToolChoice | AutoToolChoiceDict + """ + (Default). The Model automatically decides if a tool should be called or + whether to generate text instead. + """ + +class ToolChoiceAnyDict(TypedDict): + any: AnyToolChoice | AnyToolChoiceDict + """The model must request at least one tool (no text is generated).""" + +class ToolChoiceToolDict(TypedDict): + tool: SpecificToolChoice | SpecificToolChoiceDict + """ + The Model must request the specified tool. Only supported by Anthropic + Claude 3 and Amazon Nova models. + """ + +ToolChoiceDict = Union[ToolChoiceAutoDict | ToolChoiceAnyDict | ToolChoiceToolDict] +"""Dictionary form of `ToolChoice`, setting exactly one variant.""" + @dataclass(kw_only=True) class ToolConfiguration(_SerdeShape): """ @@ -4451,6 +6024,14 @@ class ToolConfiguration(_SerdeShape): tool_choice: ToolChoice | None = ... """If supported by model, forces the model to request a tool.""" +class ToolConfigurationDict(TypedDict, total=False): + """Dictionary form of `ToolConfiguration`.""" + + tools: Required[Sequence[Tool | ToolDict]] + """An array of tools that you want to pass to a model.""" + tool_choice: ToolChoice | ToolChoiceDict | None + """If supported by model, forces the model to request a tool.""" + @dataclass class ToolInputSchemaJson(_SerdeShape): """ @@ -4481,6 +6062,16 @@ in the Amazon Bedrock User Guide. class _ToolInputSchemaDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ToolInputSchema: ... +class ToolInputSchemaJsonDict(TypedDict): + json: Document + """ + The JSON schema for the tool. For more information, see [JSON Schema + Reference](https://json-schema.org/understanding-json-schema/reference). + """ + +ToolInputSchemaDict = Union[ToolInputSchemaJsonDict] +"""Dictionary form of `ToolInputSchema`, setting exactly one variant.""" + @dataclass(kw_only=True) class ToolReference(_SerdeShape): """ @@ -4502,6 +6093,22 @@ class ToolReference(_SerdeShape): referencing an MCP tool. """ +class ToolReferenceDict(TypedDict, total=False): + """Dictionary form of `ToolReference`.""" + + type: str | None + """The type of tool reference.""" + name: str | None + """ + The name of the tool. Must match the name of a tool declared in the + top-level tool configuration. + """ + server_name: str | None + """ + The name of the MCP server that provides the tool. Required when + referencing an MCP tool. + """ + @dataclass(kw_only=True) class ToolRemovalBlock(_SerdeShape): """ @@ -4514,6 +6121,12 @@ class ToolRemovalBlock(_SerdeShape): tool: ToolReference """A reference to the tool to remove from the available tool set.""" +class ToolRemovalBlockDict(TypedDict, total=False): + """Dictionary form of `ToolRemovalBlock`.""" + + tool: Required[ToolReference | ToolReferenceDict] + """A reference to the tool to remove from the available tool set.""" + @dataclass(kw_only=True) class ToolResultBlock(_SerdeShape): """ @@ -4539,6 +6152,24 @@ class ToolResultBlock(_SerdeShape): type: str | None = ... """The type for the tool result content block.""" +class ToolResultBlockDict(TypedDict, total=False): + """Dictionary form of `ToolResultBlock`.""" + + tool_use_id: Required[str] + """The ID of the tool request that this is the result for.""" + content: Required[Sequence[ToolResultContentBlock | ToolResultContentBlockDict]] + """The content for tool result content block.""" + status: str | None + """ + The status for the tool result content block. + + Note: + This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 + models. + """ + type: str | None + """The type for the tool result content block.""" + @dataclass class ToolResultBlockDeltaText(_SerdeShape): """The reasoning the model used to return the output.""" @@ -4665,6 +6296,49 @@ class _ToolResultContentBlockDeserializer: self, deserializer: ShapeDeserializer ) -> ToolResultContentBlock: ... +class ToolResultContentBlockJsonDict(TypedDict): + json: Document + """A tool result that is JSON format data.""" + +class ToolResultContentBlockTextDict(TypedDict): + text: str + """A tool result that is text.""" + +class ToolResultContentBlockImageDict(TypedDict): + image: ImageBlock | ImageBlockDict + """ + A tool result that is an image. + + Note: + This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 + models. + """ + +class ToolResultContentBlockDocumentDict(TypedDict): + document: DocumentBlock | DocumentBlockDict + """A tool result that is a document.""" + +class ToolResultContentBlockVideoDict(TypedDict): + video: VideoBlock | VideoBlockDict + """A tool result that is video.""" + +class ToolResultContentBlockSearchResultDict(TypedDict): + search_result: SearchResultBlock | SearchResultBlockDict + """A tool result that is a search result.""" + +ToolResultContentBlockDict = Union[ + ToolResultContentBlockJsonDict + | ToolResultContentBlockTextDict + | ToolResultContentBlockImageDict + | ToolResultContentBlockDocumentDict + | ToolResultContentBlockVideoDict + | ToolResultContentBlockSearchResultDict +] +""" +Dictionary form of `ToolResultContentBlock`, setting exactly one +variant. +""" + class ToolResultStatus(UnknownEnumMixin, StrEnum): SUCCESS = "success" ERROR = "error" @@ -4687,6 +6361,18 @@ class ToolSpecification(_SerdeShape): strict: bool | None = ... """Flag to enable structured output enforcement on a tool usage response.""" +class ToolSpecificationDict(TypedDict, total=False): + """Dictionary form of `ToolSpecification`.""" + + name: Required[str] + """The name for the tool.""" + description: str | None + """The description for the tool.""" + input_schema: Required[ToolInputSchema | ToolInputSchemaDict] + """The input schema for the tool in JSON format.""" + strict: bool | None + """Flag to enable structured output enforcement on a tool usage response.""" + @dataclass(kw_only=True) class ToolUseBlock(_SerdeShape): """ @@ -4707,6 +6393,18 @@ class ToolUseBlock(_SerdeShape): type: str | None = ... """The type for the tool request.""" +class ToolUseBlockDict(TypedDict, total=False): + """Dictionary form of `ToolUseBlock`.""" + + tool_use_id: Required[str] + """The ID for the tool request.""" + name: Required[str] + """The name of the tool that the model wants to use.""" + input: Required[Document] + """The input to pass to the tool.""" + type: str | None + """The type for the tool request.""" + @dataclass(kw_only=True) class ToolUseBlockDelta(_SerdeShape): """The delta for a tool use block.""" @@ -4764,6 +6462,14 @@ class VideoBlock(_SerdeShape): source: VideoSource """The block's source.""" +class VideoBlockDict(TypedDict, total=False): + """Dictionary form of `VideoBlock`.""" + + format: Required[str] + """The block's format.""" + source: Required[VideoSource | VideoSourceDict] + """The block's source.""" + class VideoFormat(UnknownEnumMixin, StrEnum): MKV = "mkv" MOV = "mov" @@ -4811,6 +6517,21 @@ transfer videos up to 1GB in size from an S3 bucket. class _VideoSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> VideoSource: ... +class VideoSourceBytesDict(TypedDict): + bytes_: bytes + """Video content encoded in base64.""" + +class VideoSourceS3LocationDict(TypedDict): + s3_location: S3Location | S3LocationDict + """ + The location of a video object in an Amazon S3 bucket. To see which + models support S3 uploads, see [Supported models and features for + Converse](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html). + """ + +VideoSourceDict = Union[VideoSourceBytesDict | VideoSourceS3LocationDict] +"""Dictionary form of `VideoSource`, setting exactly one variant.""" + @dataclass(kw_only=True) class WebLocation(_SerdeShape): """ @@ -4823,6 +6544,14 @@ class WebLocation(_SerdeShape): domain: str | None = ... """The domain that was cited when performing a web search.""" +class WebLocationDict(TypedDict, total=False): + """Dictionary form of `WebLocation`.""" + + url: str | None + """The URL that was cited when performing a web search.""" + domain: str | None + """The domain that was cited when performing a web search.""" + APPLY_GUARDRAIL: APIOperation[ApplyGuardrailInput, ApplyGuardrailOutput] CONVERSE: APIOperation[ConverseInput, ConverseOperationOutput] CONVERSE_STREAM: APIOperation[ConverseStreamInput, ConverseStreamOperationOutput] diff --git a/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/py.typed b/clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-bedrock-runtime/tests/_typecheck.py b/clients/aws-sdk-bedrock-runtime/tests/_typecheck.py index 3a04c8a29..c814db176 100644 --- a/clients/aws-sdk-bedrock-runtime/tests/_typecheck.py +++ b/clients/aws-sdk-bedrock-runtime/tests/_typecheck.py @@ -2,45 +2,75 @@ from typing import Any +from aws_sdk_bedrock_runtime.aio.client import AsyncBedrockRuntimeClient +from aws_sdk_bedrock_runtime.client import BedrockRuntimeClient from aws_sdk_bedrock_runtime.models import ( AnyToolChoice, + AnyToolChoiceDict, AppliedGuardrailDetails, ApplyGuardrailInput, + ApplyGuardrailInputDict, ApplyGuardrailOutput, + AsyncInvokeOutputDataConfigDict, AsyncInvokeS3OutputDataConfig, + AsyncInvokeS3OutputDataConfigDict, AsyncInvokeSummary, AudioBlock, + AudioBlockDict, + AudioSourceDict, AutoToolChoice, + AutoToolChoiceDict, BidirectionalInputPayloadPart, BidirectionalOutputPayloadPart, CacheDetail, CachePointBlock, + CachePointBlockDict, Citation, + CitationDict, + CitationGeneratedContentDict, + CitationLocationDict, CitationSourceContentDelta, + CitationSourceContentDict, CitationsConfig, + CitationsConfigDict, CitationsContentBlock, + CitationsContentBlockDict, CitationsDelta, ContentBlockDeltaEvent, + ContentBlockDict, ContentBlockStartEvent, ContentBlockStopEvent, ConverseInput, + ConverseInputDict, ConverseMetrics, ConverseOperationOutput, ConverseStreamInput, + ConverseStreamInputDict, ConverseStreamMetadataEvent, ConverseStreamMetrics, ConverseStreamOperationOutput, ConverseStreamTrace, ConverseTokensRequest, + ConverseTokensRequestDict, ConverseTrace, + CountTokensInputDict, CountTokensOperationInput, + CountTokensOperationInputDict, CountTokensOutput, DocumentBlock, + DocumentBlockDict, DocumentCharLocation, + DocumentCharLocationDict, DocumentChunkLocation, + DocumentChunkLocationDict, + DocumentContentBlockDict, DocumentPageLocation, + DocumentPageLocationDict, + DocumentSourceDict, ErrorBlock, + ErrorBlockDict, GetAsyncInvokeInput, + GetAsyncInvokeInputDict, GetAsyncInvokeOutput, GuardrailAssessment, GuardrailAutomatedReasoningImpossibleFinding, @@ -59,35 +89,52 @@ GuardrailAutomatedReasoningTranslationOption, GuardrailAutomatedReasoningValidFinding, GuardrailChecksConfig, + GuardrailChecksConfigDict, + GuardrailChecksContentBlockDict, GuardrailChecksContentFilterCategoryConfig, + GuardrailChecksContentFilterCategoryConfigDict, GuardrailChecksContentFilterConfig, + GuardrailChecksContentFilterConfigDict, GuardrailChecksContentFilterResult, GuardrailChecksContentFilterResultEntry, GuardrailChecksContentFilterUsage, GuardrailChecksMessage, + GuardrailChecksMessageDict, GuardrailChecksPromptAttackCategoryConfig, + GuardrailChecksPromptAttackCategoryConfigDict, GuardrailChecksPromptAttackConfig, + GuardrailChecksPromptAttackConfigDict, GuardrailChecksPromptAttackResult, GuardrailChecksPromptAttackResultEntry, GuardrailChecksPromptAttackUsage, GuardrailChecksResults, GuardrailChecksSensitiveInformationConfig, + GuardrailChecksSensitiveInformationConfigDict, GuardrailChecksSensitiveInformationEntityConfig, + GuardrailChecksSensitiveInformationEntityConfigDict, GuardrailChecksSensitiveInformationResult, GuardrailChecksSensitiveInformationResultEntry, GuardrailChecksSensitiveInformationUsage, GuardrailChecksUsageResults, GuardrailConfiguration, + GuardrailConfigurationDict, + GuardrailContentBlockDict, GuardrailContentFilter, GuardrailContentPolicyAssessment, GuardrailContextualGroundingFilter, GuardrailContextualGroundingPolicyAssessment, + GuardrailConverseContentBlockDict, GuardrailConverseImageBlock, + GuardrailConverseImageBlockDict, + GuardrailConverseImageSourceDict, GuardrailConverseTextBlock, + GuardrailConverseTextBlockDict, GuardrailCoverage, GuardrailCustomWord, GuardrailImageBlock, + GuardrailImageBlockDict, GuardrailImageCoverage, + GuardrailImageSourceDict, GuardrailInvocationMetrics, GuardrailManagedWord, GuardrailOutputContent, @@ -95,7 +142,9 @@ GuardrailRegexFilter, GuardrailSensitiveInformationPolicyAssessment, GuardrailStreamConfiguration, + GuardrailStreamConfigurationDict, GuardrailTextBlock, + GuardrailTextBlockDict, GuardrailTextCharactersCoverage, GuardrailTopic, GuardrailTopicPolicyAssessment, @@ -104,57 +153,100 @@ GuardrailWordPolicyAssessment, ImageBlock, ImageBlockDelta, + ImageBlockDict, ImageBlockStart, + ImageSourceDict, InferenceConfiguration, + InferenceConfigurationDict, InvokeGuardrailChecksInput, + InvokeGuardrailChecksInputDict, InvokeGuardrailChecksOutput, InvokeModelInput, + InvokeModelInputDict, InvokeModelOutput, InvokeModelTokensRequest, + InvokeModelTokensRequestDict, InvokeModelWithBidirectionalStreamOperationInput, + InvokeModelWithBidirectionalStreamOperationInputDict, InvokeModelWithBidirectionalStreamOperationOutput, InvokeModelWithResponseStreamInput, + InvokeModelWithResponseStreamInputDict, InvokeModelWithResponseStreamOutput, JsonSchemaDefinition, + JsonSchemaDefinitionDict, ListAsyncInvokesInput, + ListAsyncInvokesInputDict, ListAsyncInvokesOutput, Message, + MessageDict, MessageStartEvent, MessageStopEvent, OutputConfig, + OutputConfigDict, OutputFormat, + OutputFormatDict, + OutputFormatStructureDict, PayloadPart, PerformanceConfiguration, + PerformanceConfigurationDict, PromptRouterTrace, + PromptVariableValuesDict, + ReasoningContentBlockDict, ReasoningTextBlock, + ReasoningTextBlockDict, S3Location, + S3LocationDict, SearchResultBlock, + SearchResultBlockDict, SearchResultContentBlock, + SearchResultContentBlockDict, SearchResultLocation, + SearchResultLocationDict, ServiceTier, + ServiceTierDict, SpecificToolChoice, + SpecificToolChoiceDict, StartAsyncInvokeInput, + StartAsyncInvokeInputDict, StartAsyncInvokeOutput, + SystemContentBlockDict, SystemTool, + SystemToolDict, Tag, + TagDict, TokenUsage, ToolAdditionBlock, + ToolAdditionBlockDict, + ToolChoiceDict, ToolConfiguration, + ToolConfigurationDict, + ToolDict, + ToolInputSchemaDict, ToolReference, + ToolReferenceDict, ToolRemovalBlock, + ToolRemovalBlockDict, ToolResultBlock, + ToolResultBlockDict, ToolResultBlockStart, + ToolResultContentBlockDict, ToolSpecification, + ToolSpecificationDict, ToolUseBlock, ToolUseBlockDelta, + ToolUseBlockDict, ToolUseBlockStart, VideoBlock, + VideoBlockDict, + VideoSourceDict, WebLocation, + WebLocationDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -321,3 +413,205 @@ ToolUseBlockStart(tool_use_id=_, name=_) VideoBlock(format=_, source=_) WebLocation() +_params_0: AnyToolChoiceDict = {} +_params_1: ApplyGuardrailInputDict = { + "guardrail_identifier": _, + "guardrail_version": _, + "source": _, + "content": _, +} +_params_2: AsyncInvokeOutputDataConfigDict = {"s3_output_data_config": _} +_params_3: AsyncInvokeS3OutputDataConfigDict = {"s3_uri": _} +_params_4: AudioBlockDict = {"format": _, "source": _} +_params_5: AudioSourceDict = {"bytes_": _} +_params_6: AutoToolChoiceDict = {} +_params_7: CachePointBlockDict = {"type": _} +_params_8: CitationDict = {} +_params_9: CitationGeneratedContentDict = {"text": _} +_params_10: CitationLocationDict = {"web": _} +_params_11: CitationsConfigDict = {"enabled": _} +_params_12: CitationsContentBlockDict = {} +_params_13: CitationSourceContentDict = {"text": _} +_params_14: ContentBlockDict = {"text": _} +_params_15: ConverseInputDict = {"model_id": _} +_params_16: ConverseStreamInputDict = {"model_id": _} +_params_17: ConverseTokensRequestDict = {} +_params_18: CountTokensInputDict = {"invoke_model": _} +_params_19: CountTokensOperationInputDict = {"model_id": _, "input": _} +_params_20: DocumentBlockDict = {"name": _, "source": _} +_params_21: DocumentCharLocationDict = {} +_params_22: DocumentChunkLocationDict = {} +_params_23: DocumentContentBlockDict = {"text": _} +_params_24: DocumentPageLocationDict = {} +_params_25: DocumentSourceDict = {"bytes_": _} +_params_26: ErrorBlockDict = {} +_params_27: GetAsyncInvokeInputDict = {"invocation_arn": _} +_params_28: GuardrailChecksConfigDict = {} +_params_29: GuardrailChecksContentBlockDict = {"text": _} +_params_30: GuardrailChecksContentFilterCategoryConfigDict = {"category": _} +_params_31: GuardrailChecksContentFilterConfigDict = {"categories": _} +_params_32: GuardrailChecksMessageDict = {"role": _, "content": _} +_params_33: GuardrailChecksPromptAttackCategoryConfigDict = {"category": _} +_params_34: GuardrailChecksPromptAttackConfigDict = {"categories": _} +_params_35: GuardrailChecksSensitiveInformationConfigDict = {"entities": _} +_params_36: GuardrailChecksSensitiveInformationEntityConfigDict = {"type": _} +_params_37: GuardrailConfigurationDict = {} +_params_38: GuardrailContentBlockDict = {"text": _} +_params_39: GuardrailConverseContentBlockDict = {"text": _} +_params_40: GuardrailConverseImageBlockDict = {"format": _, "source": _} +_params_41: GuardrailConverseImageSourceDict = {"bytes_": _} +_params_42: GuardrailConverseTextBlockDict = {"text": _} +_params_43: GuardrailImageBlockDict = {"format": _, "source": _} +_params_44: GuardrailImageSourceDict = {"bytes_": _} +_params_45: GuardrailStreamConfigurationDict = {} +_params_46: GuardrailTextBlockDict = {"text": _} +_params_47: ImageBlockDict = {"format": _, "source": _} +_params_48: ImageSourceDict = {"bytes_": _} +_params_49: InferenceConfigurationDict = {} +_params_50: InvokeGuardrailChecksInputDict = {"messages": _, "checks": _} +_params_51: InvokeModelInputDict = {"model_id": _} +_params_52: InvokeModelTokensRequestDict = {"body": _} +_params_53: InvokeModelWithBidirectionalStreamOperationInputDict = {"model_id": _} +_params_54: InvokeModelWithResponseStreamInputDict = {"model_id": _} +_params_55: JsonSchemaDefinitionDict = {"schema": _} +_params_56: ListAsyncInvokesInputDict = {} +_params_57: MessageDict = {"role": _, "content": _} +_params_58: OutputConfigDict = {} +_params_59: OutputFormatDict = {"type": _, "structure": _} +_params_60: OutputFormatStructureDict = {"json_schema": _} +_params_61: PerformanceConfigurationDict = {} +_params_62: PromptVariableValuesDict = {"text": _} +_params_63: ReasoningContentBlockDict = {"reasoning_text": _} +_params_64: ReasoningTextBlockDict = {"text": _} +_params_65: S3LocationDict = {"uri": _} +_params_66: SearchResultBlockDict = {"source": _, "title": _, "content": _} +_params_67: SearchResultContentBlockDict = {"text": _} +_params_68: SearchResultLocationDict = {} +_params_69: ServiceTierDict = {"type": _} +_params_70: SpecificToolChoiceDict = {"name": _} +_params_71: StartAsyncInvokeInputDict = { + "model_id": _, + "model_input": _, + "output_data_config": _, +} +_params_72: SystemContentBlockDict = {"text": _} +_params_73: SystemToolDict = {"name": _} +_params_74: TagDict = {"key": _, "value": _} +_params_75: ToolDict = {"tool_spec": _} +_params_76: ToolAdditionBlockDict = {"tool": _} +_params_77: ToolChoiceDict = {"auto": _} +_params_78: ToolConfigurationDict = {"tools": _} +_params_79: ToolInputSchemaDict = {"json": _} +_params_80: ToolReferenceDict = {} +_params_81: ToolRemovalBlockDict = {"tool": _} +_params_82: ToolResultBlockDict = {"tool_use_id": _, "content": _} +_params_83: ToolResultContentBlockDict = {"json": _} +_params_84: ToolSpecificationDict = {"name": _, "input_schema": _} +_params_85: ToolUseBlockDict = {"tool_use_id": _, "name": _, "input": _} +_params_86: VideoBlockDict = {"format": _, "source": _} +_params_87: VideoSourceDict = {"bytes_": _} +_params_88: WebLocationDict = {} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncBedrockRuntimeClient) -> None: + pass + await client.apply_guardrail( + guardrail_identifier=_, guardrail_version=_, source=_, content=_ + ) + await client.apply_guardrail(**_request(ApplyGuardrailInputDict)) + await client.apply_guardrail(_request(ApplyGuardrailInput)) + await client.apply_guardrail(_request(ApplyGuardrailInputDict)) + await client.converse(model_id=_) + await client.converse(**_request(ConverseInputDict)) + await client.converse(_request(ConverseInput)) + await client.converse(_request(ConverseInputDict)) + await client.converse_stream(model_id=_) + await client.converse_stream(**_request(ConverseStreamInputDict)) + await client.converse_stream(_request(ConverseStreamInput)) + await client.converse_stream(_request(ConverseStreamInputDict)) + await client.count_tokens(model_id=_, input=_) + await client.count_tokens(**_request(CountTokensOperationInputDict)) + await client.count_tokens(_request(CountTokensOperationInput)) + await client.count_tokens(_request(CountTokensOperationInputDict)) + await client.get_async_invoke(invocation_arn=_) + await client.get_async_invoke(**_request(GetAsyncInvokeInputDict)) + await client.get_async_invoke(_request(GetAsyncInvokeInput)) + await client.get_async_invoke(_request(GetAsyncInvokeInputDict)) + await client.invoke_guardrail_checks(messages=_, checks=_) + await client.invoke_guardrail_checks(**_request(InvokeGuardrailChecksInputDict)) + await client.invoke_guardrail_checks(_request(InvokeGuardrailChecksInput)) + await client.invoke_guardrail_checks(_request(InvokeGuardrailChecksInputDict)) + await client.invoke_model(model_id=_) + await client.invoke_model(**_request(InvokeModelInputDict)) + await client.invoke_model(_request(InvokeModelInput)) + await client.invoke_model(_request(InvokeModelInputDict)) + await client.invoke_model_with_bidirectional_stream(model_id=_) + await client.invoke_model_with_bidirectional_stream( + **_request(InvokeModelWithBidirectionalStreamOperationInputDict) + ) + await client.invoke_model_with_bidirectional_stream( + _request(InvokeModelWithBidirectionalStreamOperationInput) + ) + await client.invoke_model_with_bidirectional_stream( + _request(InvokeModelWithBidirectionalStreamOperationInputDict) + ) + await client.invoke_model_with_response_stream(model_id=_) + await client.invoke_model_with_response_stream( + **_request(InvokeModelWithResponseStreamInputDict) + ) + await client.invoke_model_with_response_stream( + _request(InvokeModelWithResponseStreamInput) + ) + await client.invoke_model_with_response_stream( + _request(InvokeModelWithResponseStreamInputDict) + ) + await client.list_async_invokes() + await client.list_async_invokes(**_request(ListAsyncInvokesInputDict)) + await client.list_async_invokes(_request(ListAsyncInvokesInput)) + await client.list_async_invokes(_request(ListAsyncInvokesInputDict)) + await client.start_async_invoke(model_id=_, model_input=_, output_data_config=_) + await client.start_async_invoke(**_request(StartAsyncInvokeInputDict)) + await client.start_async_invoke(_request(StartAsyncInvokeInput)) + await client.start_async_invoke(_request(StartAsyncInvokeInputDict)) + + +def check_sync_calls(client: BedrockRuntimeClient) -> None: + pass + client.apply_guardrail( + guardrail_identifier=_, guardrail_version=_, source=_, content=_ + ) + client.apply_guardrail(**_request(ApplyGuardrailInputDict)) + client.apply_guardrail(_request(ApplyGuardrailInput)) + client.apply_guardrail(_request(ApplyGuardrailInputDict)) + client.converse(model_id=_) + client.converse(**_request(ConverseInputDict)) + client.converse(_request(ConverseInput)) + client.converse(_request(ConverseInputDict)) + client.count_tokens(model_id=_, input=_) + client.count_tokens(**_request(CountTokensOperationInputDict)) + client.count_tokens(_request(CountTokensOperationInput)) + client.count_tokens(_request(CountTokensOperationInputDict)) + client.get_async_invoke(invocation_arn=_) + client.get_async_invoke(**_request(GetAsyncInvokeInputDict)) + client.get_async_invoke(_request(GetAsyncInvokeInput)) + client.get_async_invoke(_request(GetAsyncInvokeInputDict)) + client.invoke_guardrail_checks(messages=_, checks=_) + client.invoke_guardrail_checks(**_request(InvokeGuardrailChecksInputDict)) + client.invoke_guardrail_checks(_request(InvokeGuardrailChecksInput)) + client.invoke_guardrail_checks(_request(InvokeGuardrailChecksInputDict)) + client.invoke_model(model_id=_) + client.invoke_model(**_request(InvokeModelInputDict)) + client.invoke_model(_request(InvokeModelInput)) + client.invoke_model(_request(InvokeModelInputDict)) + client.list_async_invokes() + client.list_async_invokes(**_request(ListAsyncInvokesInputDict)) + client.list_async_invokes(_request(ListAsyncInvokesInput)) + client.list_async_invokes(_request(ListAsyncInvokesInputDict)) + client.start_async_invoke(model_id=_, model_input=_, output_data_config=_) + client.start_async_invoke(**_request(StartAsyncInvokeInputDict)) + client.start_async_invoke(_request(StartAsyncInvokeInput)) + client.start_async_invoke(_request(StartAsyncInvokeInputDict)) diff --git a/clients/aws-sdk-bedrock-runtime/tests/integration/test_output_streaming.py b/clients/aws-sdk-bedrock-runtime/tests/integration/test_output_streaming.py index d6018571d..4b141112a 100644 --- a/clients/aws-sdk-bedrock-runtime/tests/integration/test_output_streaming.py +++ b/clients/aws-sdk-bedrock-runtime/tests/integration/test_output_streaming.py @@ -5,12 +5,9 @@ from aws_sdk_bedrock_runtime.models import ( ContentBlockDeltaText, - ContentBlockText, - ConverseStreamInput, ConverseStreamOperationOutput, ConverseStreamOutputContentBlockDelta, ConverseStreamOutputMetadata, - Message, ) from . import MESSAGE, MODEL_ID, create_bedrock_client @@ -18,9 +15,9 @@ async def test_converse_stream() -> None: async with await create_bedrock_client("us-west-2") as bedrock_client: - input_message = Message(role="user", content=[ContentBlockText(value=MESSAGE)]) response = await bedrock_client.converse_stream( - ConverseStreamInput(model_id=MODEL_ID, messages=[input_message]) + model_id=MODEL_ID, + messages=[{"role": "user", "content": [{"text": MESSAGE}]}], ) received_text: list[str] = [] diff --git a/clients/aws-sdk-bedrock/pyproject.toml b/clients/aws-sdk-bedrock/pyproject.toml index 9bb3a70f1..e8e49d9c0 100644 --- a/clients/aws-sdk-bedrock/pyproject.toml +++ b/clients/aws-sdk-bedrock/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_0.pyi b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_0.pyi index 45abcc8ef..cbac7d1c0 100644 --- a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_0.pyi +++ b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,41 +13,75 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( GuardrailAutomatedReasoningPolicyConfig, + GuardrailAutomatedReasoningPolicyConfigDict, GuardrailConfiguration, + GuardrailConfigurationDict, GuardrailContentPolicyConfig, + GuardrailContentPolicyConfigDict, GuardrailContextualGroundingPolicyConfig, + GuardrailContextualGroundingPolicyConfigDict, GuardrailCrossRegionConfig, + GuardrailCrossRegionConfigDict, GuardrailSensitiveInformationPolicyConfig, + GuardrailSensitiveInformationPolicyConfigDict, GuardrailTopicPolicyConfig, + GuardrailTopicPolicyConfigDict, GuardrailWordPolicyConfig, + GuardrailWordPolicyConfigDict, HumanEvaluationConfig, + HumanEvaluationConfigDict, InferenceProfileModelSource, + InferenceProfileModelSourceDict, KbInferenceConfig, + KbInferenceConfigDict, MarketplaceModelEndpoint, ModelConfiguration, + ModelConfigurationDict, ModelDataSource, + ModelDataSourceDict, ModelEnforcement, + ModelEnforcementDict, ModelInvocationJobInputDataConfig, + ModelInvocationJobInputDataConfigDict, ModelInvocationJobOutputDataConfig, + ModelInvocationJobOutputDataConfigDict, ModelPackageArnDataSource, + ModelPackageArnDataSourceDict, OutputDataConfig, + OutputDataConfigDict, PerformanceConfiguration, + PerformanceConfigurationDict, PromptRouterTargetModel, + PromptRouterTargetModelDict, PromptTemplate, + PromptTemplateDict, RAGConfig, + RAGConfigDict, RFTConfig, + RFTConfigDict, RatingScaleItem, + RatingScaleItemDict, RoutingCriteria, + RoutingCriteriaDict, S3Config, + S3ConfigDict, S3ObjectDoc, + S3ObjectDocDict, SageMakerEndpoint, + SageMakerEndpointDict, SelectiveContentGuarding, + SelectiveContentGuardingDict, ServiceError, Tag, + TagDict, TeacherModelConfig, + TeacherModelConfigDict, TrainingDataConfig, + TrainingDataConfigDict, ValidationDataConfig, + ValidationDataConfigDict, VpcConfig, + VpcConfigDict, _SerdeShape, ) @@ -78,6 +113,23 @@ class AccountEnforcedGuardrailInferenceInputConfiguration(_SerdeShape): not present, the configuration is enforced on all models """ +class AccountEnforcedGuardrailInferenceInputConfigurationDict(TypedDict, total=False): + """Dictionary form of `AccountEnforcedGuardrailInferenceInputConfiguration`.""" + + guardrail_identifier: Required[str] + """Identifier for the guardrail, could be the ID or the ARN.""" + guardrail_version: Required[str] + """Numerical guardrail version.""" + selective_content_guarding: ( + SelectiveContentGuarding | SelectiveContentGuardingDict | None + ) + """Selective content guarding controls for enforced guardrails.""" + model_enforcement: ModelEnforcement | ModelEnforcementDict | None + """ + Model-specific information for the enforced guardrail configuration. If + not present, the configuration is enforced on all models + """ + @dataclass(kw_only=True) class AccountEnforcedGuardrailOutputConfiguration(_SerdeShape): """Account enforced guardrail output configuration.""" @@ -120,6 +172,15 @@ class AdvancedPromptOptimizationInputConfig(_SerdeShape): evaluation samples. """ +class AdvancedPromptOptimizationInputConfigDict(TypedDict, total=False): + """Dictionary form of `AdvancedPromptOptimizationInputConfig`.""" + + s3_uri: Required[str] + """ + The S3 URI of the JSONL input file containing prompt templates and + evaluation samples. + """ + class AdvancedPromptOptimizationJobStatus(UnknownEnumMixin, StrEnum): """The status of an advanced prompt optimization job.""" @@ -156,6 +217,12 @@ class AdvancedPromptOptimizationOutputConfig(_SerdeShape): s3_uri: str """The S3 URI prefix where the optimization results will be written.""" +class AdvancedPromptOptimizationOutputConfigDict(TypedDict, total=False): + """Dictionary form of `AdvancedPromptOptimizationOutputConfig`.""" + + s3_uri: Required[str] + """The S3 URI prefix where the optimization results will be written.""" + @dataclass(kw_only=True) class AgreementAvailability(_SerdeShape): """Information about the agreement availability""" @@ -211,6 +278,33 @@ class AutomatedEvaluationConfig(_SerdeShape): job. """ +class AutomatedEvaluationConfigDict(TypedDict, total=False): + """Dictionary form of `AutomatedEvaluationConfig`.""" + + dataset_metric_configs: Required[ + Sequence[EvaluationDatasetMetricConfig | EvaluationDatasetMetricConfigDict] + ] + """ + Configuration details of the prompt datasets and metrics you want to use + for your evaluation job. + """ + evaluator_model_config: EvaluatorModelConfig | EvaluatorModelConfigDict | None + """ + Contains the evaluator model configuration details. + `EvaluatorModelConfig` is required for evaluation jobs that use a + knowledge base or in model evaluation job that use a model as judge. + This model computes all evaluation related metrics. + """ + custom_metric_config: ( + AutomatedEvaluationCustomMetricConfig + | AutomatedEvaluationCustomMetricConfigDict + | None + ) + """ + Defines the configuration of custom metrics to be used in an evaluation + job. + """ + @dataclass(kw_only=True) class AutomatedEvaluationCustomMetricConfig(_SerdeShape): """ @@ -234,6 +328,27 @@ class AutomatedEvaluationCustomMetricConfig(_SerdeShape): metrics in an Amazon Bedrock evaluation job. """ +class AutomatedEvaluationCustomMetricConfigDict(TypedDict, total=False): + """Dictionary form of `AutomatedEvaluationCustomMetricConfig`.""" + + custom_metrics: Required[ + Sequence[ + AutomatedEvaluationCustomMetricSource + | AutomatedEvaluationCustomMetricSourceDict + ] + ] + """ + Defines a list of custom metrics to be used in an Amazon Bedrock + evaluation job. + """ + evaluator_model_config: Required[ + CustomMetricEvaluatorModelConfig | CustomMetricEvaluatorModelConfigDict + ] + """ + Configuration of the evaluator model you want to use to evaluate custom + metrics in an Amazon Bedrock evaluation job. + """ + @dataclass class AutomatedEvaluationCustomMetricSourceCustomMetricDefinition(_SerdeShape): """ @@ -267,6 +382,21 @@ class _AutomatedEvaluationCustomMetricSourceDeserializer: self, deserializer: ShapeDeserializer ) -> AutomatedEvaluationCustomMetricSource: ... +class AutomatedEvaluationCustomMetricSourceCustomMetricDefinitionDict(TypedDict): + custom_metric_definition: CustomMetricDefinition | CustomMetricDefinitionDict + """ + The definition of a custom metric for use in an Amazon Bedrock + evaluation job. + """ + +AutomatedEvaluationCustomMetricSourceDict = Union[ + AutomatedEvaluationCustomMetricSourceCustomMetricDefinitionDict +] +""" +Dictionary form of `AutomatedEvaluationCustomMetricSource`, setting +exactly one variant. +""" + @dataclass class AutomatedReasoningCheckFindingValid(_SerdeShape): """ @@ -640,6 +770,15 @@ class AutomatedReasoningPolicyAddRuleAnnotation(_SerdeShape): notation and referencing policy variables and types. """ +class AutomatedReasoningPolicyAddRuleAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyAddRuleAnnotation`.""" + + expression: Required[str] + """ + The formal logical expression that defines the rule, using mathematical + notation and referencing policy variables and types. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation(_SerdeShape): """ @@ -653,6 +792,17 @@ class AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation(_SerdeShape): into a formal logical expression. """ +class AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotationDict( + TypedDict, total=False +): + """Dictionary form of `AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation`.""" + + natural_language: Required[str] + """ + The natural language description of the rule that should be converted + into a formal logical expression. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyAddRuleMutation(_SerdeShape): """ @@ -689,6 +839,30 @@ class AutomatedReasoningPolicyAddTypeAnnotation(_SerdeShape): with its own description and identifier. """ +class AutomatedReasoningPolicyAddTypeAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyAddTypeAnnotation`.""" + + name: Required[str] + """ + The name of the new custom type. This name will be used to reference the + type in variable definitions and rules. + """ + description: Required[str] + """ + A description of what the custom type represents and how it should be + used in the policy. + """ + values: Required[ + Sequence[ + AutomatedReasoningPolicyDefinitionTypeValue + | AutomatedReasoningPolicyDefinitionTypeValueDict + ] + ] + """ + The list of possible values that variables of this type can take, each + with its own description and identifier. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyAddTypeMutation(_SerdeShape): """ @@ -717,6 +891,17 @@ class AutomatedReasoningPolicyAddTypeValue(_SerdeShape): be used. """ +class AutomatedReasoningPolicyAddTypeValueDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyAddTypeValue`.""" + + value: Required[str] + """The identifier or name of the new value to add to the type.""" + description: str | None + """ + A description of what this new type value represents and when it should + be used. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyAddVariableAnnotation(_SerdeShape): """ @@ -740,6 +925,25 @@ class AutomatedReasoningPolicyAddVariableAnnotation(_SerdeShape): in rules. """ +class AutomatedReasoningPolicyAddVariableAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyAddVariableAnnotation`.""" + + name: Required[str] + """ + The name of the new variable. This name will be used to reference the + variable in rule expressions. + """ + type: Required[str] + """ + The type of the variable, which can be a built-in type (like string or + number) or a custom type defined in the policy. + """ + description: Required[str] + """ + A description of what the variable represents and how it should be used + in rules. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyAddVariableMutation(_SerdeShape): """ @@ -970,6 +1174,153 @@ class _AutomatedReasoningPolicyAnnotationDeserializer: self, deserializer: ShapeDeserializer ) -> AutomatedReasoningPolicyAnnotation: ... +class AutomatedReasoningPolicyAnnotationAddTypeDict(TypedDict): + add_type: ( + AutomatedReasoningPolicyAddTypeAnnotation + | AutomatedReasoningPolicyAddTypeAnnotationDict + ) + """ + An operation to add a new custom type to the policy, defining a set of + possible values for policy variables. + """ + +class AutomatedReasoningPolicyAnnotationUpdateTypeDict(TypedDict): + update_type: ( + AutomatedReasoningPolicyUpdateTypeAnnotation + | AutomatedReasoningPolicyUpdateTypeAnnotationDict + ) + """ + An operation to modify an existing custom type in the policy, such as + changing its name, description, or allowed values. + """ + +class AutomatedReasoningPolicyAnnotationDeleteTypeDict(TypedDict): + delete_type: ( + AutomatedReasoningPolicyDeleteTypeAnnotation + | AutomatedReasoningPolicyDeleteTypeAnnotationDict + ) + """ + An operation to remove a custom type from the policy. The type must not + be referenced by any variables or rules. + """ + +class AutomatedReasoningPolicyAnnotationAddVariableDict(TypedDict): + add_variable: ( + AutomatedReasoningPolicyAddVariableAnnotation + | AutomatedReasoningPolicyAddVariableAnnotationDict + ) + """ + An operation to add a new variable to the policy, which can be used in + rule expressions to represent dynamic values. + """ + +class AutomatedReasoningPolicyAnnotationUpdateVariableDict(TypedDict): + update_variable: ( + AutomatedReasoningPolicyUpdateVariableAnnotation + | AutomatedReasoningPolicyUpdateVariableAnnotationDict + ) + """ + An operation to modify an existing variable in the policy, such as + changing its name, type, or description. + """ + +class AutomatedReasoningPolicyAnnotationDeleteVariableDict(TypedDict): + delete_variable: ( + AutomatedReasoningPolicyDeleteVariableAnnotation + | AutomatedReasoningPolicyDeleteVariableAnnotationDict + ) + """ + An operation to remove a variable from the policy. The variable must not + be referenced by any rules. + """ + +class AutomatedReasoningPolicyAnnotationAddRuleDict(TypedDict): + add_rule: ( + AutomatedReasoningPolicyAddRuleAnnotation + | AutomatedReasoningPolicyAddRuleAnnotationDict + ) + """ + An operation to add a new logical rule to the policy using formal + mathematical expressions. + """ + +class AutomatedReasoningPolicyAnnotationUpdateRuleDict(TypedDict): + update_rule: ( + AutomatedReasoningPolicyUpdateRuleAnnotation + | AutomatedReasoningPolicyUpdateRuleAnnotationDict + ) + """ + An operation to modify an existing rule in the policy, such as changing + its logical expression or conditions. + """ + +class AutomatedReasoningPolicyAnnotationDeleteRuleDict(TypedDict): + delete_rule: ( + AutomatedReasoningPolicyDeleteRuleAnnotation + | AutomatedReasoningPolicyDeleteRuleAnnotationDict + ) + """An operation to remove a rule from the policy.""" + +class AutomatedReasoningPolicyAnnotationAddRuleFromNaturalLanguageDict(TypedDict): + add_rule_from_natural_language: ( + AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation + | AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotationDict + ) + """ + An operation to add a new rule by converting natural language + descriptions into formal logical expressions. + """ + +class AutomatedReasoningPolicyAnnotationUpdateFromRulesFeedbackDict(TypedDict): + update_from_rules_feedback: ( + AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation + | AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotationDict + ) + """ + An operation to update the policy based on feedback about how specific + rules performed during testing or validation. + """ + +class AutomatedReasoningPolicyAnnotationUpdateFromScenarioFeedbackDict(TypedDict): + update_from_scenario_feedback: ( + AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation + | AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotationDict + ) + """ + An operation to update the policy based on feedback about how it + performed on specific test scenarios. + """ + +class AutomatedReasoningPolicyAnnotationIngestContentDict(TypedDict): + ingest_content: ( + AutomatedReasoningPolicyIngestContentAnnotation + | AutomatedReasoningPolicyIngestContentAnnotationDict + ) + """ + An operation to process and incorporate new content into the policy, + extracting additional rules and concepts. + """ + +AutomatedReasoningPolicyAnnotationDict = Union[ + AutomatedReasoningPolicyAnnotationAddTypeDict + | AutomatedReasoningPolicyAnnotationUpdateTypeDict + | AutomatedReasoningPolicyAnnotationDeleteTypeDict + | AutomatedReasoningPolicyAnnotationAddVariableDict + | AutomatedReasoningPolicyAnnotationUpdateVariableDict + | AutomatedReasoningPolicyAnnotationDeleteVariableDict + | AutomatedReasoningPolicyAnnotationAddRuleDict + | AutomatedReasoningPolicyAnnotationUpdateRuleDict + | AutomatedReasoningPolicyAnnotationDeleteRuleDict + | AutomatedReasoningPolicyAnnotationAddRuleFromNaturalLanguageDict + | AutomatedReasoningPolicyAnnotationUpdateFromRulesFeedbackDict + | AutomatedReasoningPolicyAnnotationUpdateFromScenarioFeedbackDict + | AutomatedReasoningPolicyAnnotationIngestContentDict +] +""" +Dictionary form of `AutomatedReasoningPolicyAnnotation`, setting +exactly one variant. +""" + class AutomatedReasoningPolicyAnnotationStatus(UnknownEnumMixin, StrEnum): APPLIED = "APPLIED" FAILED = "FAILED" @@ -1311,6 +1662,30 @@ class AutomatedReasoningPolicyBuildWorkflowDocument(_SerdeShape): used in the policy generation process. """ +class AutomatedReasoningPolicyBuildWorkflowDocumentDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyBuildWorkflowDocument`.""" + + document: Required[bytes] + """ + The actual content of the source document that will be analyzed to + extract policy rules and concepts. + """ + document_content_type: Required[str] + """ + The MIME type of the document content (e.g., text/plain, + application/pdf, text/markdown). + """ + document_name: Required[str] + """ + A descriptive name for the document that helps identify its purpose and + content. + """ + document_description: str | None + """ + A detailed description of the document's content and how it should be + used in the policy generation process. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyBuildWorkflowRepairContent(_SerdeShape): """ @@ -1324,6 +1699,19 @@ class AutomatedReasoningPolicyBuildWorkflowRepairContent(_SerdeShape): process, such as rule corrections or variable updates. """ +class AutomatedReasoningPolicyBuildWorkflowRepairContentDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyBuildWorkflowRepairContent`.""" + + annotations: Required[ + Sequence[ + AutomatedReasoningPolicyAnnotation | AutomatedReasoningPolicyAnnotationDict + ] + ] + """ + Specific annotations or modifications to apply during the policy repair + process, such as rule corrections or variable updates. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyBuildWorkflowSource(_SerdeShape): """ @@ -1342,6 +1730,28 @@ class AutomatedReasoningPolicyBuildWorkflowSource(_SerdeShape): documents to analyze or repair instructions to apply. """ +class AutomatedReasoningPolicyBuildWorkflowSourceDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyBuildWorkflowSource`.""" + + policy_definition: ( + AutomatedReasoningPolicyDefinition + | AutomatedReasoningPolicyDefinitionDict + | None + ) + """ + An existing policy definition that serves as the starting point for the + build workflow, typically used in policy repair or update scenarios. + """ + workflow_content: ( + AutomatedReasoningPolicyWorkflowTypeContent + | AutomatedReasoningPolicyWorkflowTypeContentDict + | None + ) + """ + The actual content to be processed in the build workflow, such as + documents to analyze or repair instructions to apply. + """ + class AutomatedReasoningPolicyBuildWorkflowStatus(UnknownEnumMixin, StrEnum): SCHEDULED = "SCHEDULED" CANCEL_REQUESTED = "CANCEL_REQUESTED" @@ -1417,6 +1827,48 @@ class AutomatedReasoningPolicyDefinition(_SerdeShape): Their descriptions are crucial for accurate translation. """ +class AutomatedReasoningPolicyDefinitionDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDefinition`.""" + + version: str | None + """The version of the policy definition format.""" + types: ( + Sequence[ + AutomatedReasoningPolicyDefinitionType + | AutomatedReasoningPolicyDefinitionTypeDict + ] + | None + ) + """ + The custom user-defined vairable types used in the policy. Types are + enum-based variable types that provide additional context beyond the + predefined variable types. + """ + rules: ( + Sequence[ + AutomatedReasoningPolicyDefinitionRule + | AutomatedReasoningPolicyDefinitionRuleDict + ] + | None + ) + """ + The formal logic rules extracted from the source document. Rules define + the logical constraints that determine whether model responses are + valid, invalid, or satisfiable. + """ + variables: ( + Sequence[ + AutomatedReasoningPolicyDefinitionVariable + | AutomatedReasoningPolicyDefinitionVariableDict + ] + | None + ) + """ + The variables that represent concepts in the policy. Variables can have + values assigned when translating natural language into formal logic. + Their descriptions are crucial for accurate translation. + """ + @dataclass class AutomatedReasoningPolicyDefinitionElementPolicyDefinitionVariable(_SerdeShape): """ @@ -1528,6 +1980,19 @@ class AutomatedReasoningPolicyDefinitionRule(_SerdeShape): language or simplified notation. """ +class AutomatedReasoningPolicyDefinitionRuleDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDefinitionRule`.""" + + id: Required[str] + """The unique identifier of the rule within the policy.""" + expression: Required[str] + """The formal logic expression of the rule.""" + alternate_expression: str | None + """ + The human-readable form of the rule expression, often in natural + language or simplified notation. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyDefinitionType(_SerdeShape): """ @@ -1546,6 +2011,24 @@ class AutomatedReasoningPolicyDefinitionType(_SerdeShape): description. """ +class AutomatedReasoningPolicyDefinitionTypeDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDefinitionType`.""" + + name: Required[str] + """The name of the custom type.""" + description: str | None + """The description of what the custom type represents.""" + values: Required[ + Sequence[ + AutomatedReasoningPolicyDefinitionTypeValue + | AutomatedReasoningPolicyDefinitionTypeValueDict + ] + ] + """ + The possible values for this enum-based type, each with its own + description. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyDefinitionTypeValue(_SerdeShape): """ @@ -1561,6 +2044,17 @@ class AutomatedReasoningPolicyDefinitionTypeValue(_SerdeShape): and when it should be used. """ +class AutomatedReasoningPolicyDefinitionTypeValueDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDefinitionTypeValue`.""" + + value: Required[str] + """The actual value or identifier for this type value.""" + description: str | None + """ + A human-readable description explaining what this type value represents + and when it should be used. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyDefinitionTypeValuePair(_SerdeShape): """ @@ -1598,15 +2092,41 @@ class AutomatedReasoningPolicyDefinitionVariable(_SerdeShape): essential for accurate natural language translation. """ -@dataclass(kw_only=True) -class AutomatedReasoningPolicyDeleteRuleAnnotation(_SerdeShape): - """An annotation for removing a rule from an Automated Reasoning policy.""" - - rule_id: str - """The unique identifier of the rule to delete from the policy.""" +class AutomatedReasoningPolicyDefinitionVariableDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDefinitionVariable`.""" -@dataclass(kw_only=True) -class AutomatedReasoningPolicyDeleteRuleMutation(_SerdeShape): + name: Required[str] + """ + The name of the variable. Use descriptive names that clearly indicate + the concept being represented. + """ + type: Required[str] + """ + The data type of the variable. Valid types include bool, int, real, + enum, and custom types that you can provide. + """ + description: Required[str] + """ + The description of the variable that explains what it represents and how + users might refer to it. Clear and comprehensive descriptions are + essential for accurate natural language translation. + """ + +@dataclass(kw_only=True) +class AutomatedReasoningPolicyDeleteRuleAnnotation(_SerdeShape): + """An annotation for removing a rule from an Automated Reasoning policy.""" + + rule_id: str + """The unique identifier of the rule to delete from the policy.""" + +class AutomatedReasoningPolicyDeleteRuleAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDeleteRuleAnnotation`.""" + + rule_id: Required[str] + """The unique identifier of the rule to delete from the policy.""" + +@dataclass(kw_only=True) +class AutomatedReasoningPolicyDeleteRuleMutation(_SerdeShape): """ A mutation operation that removes a rule from the policy definition during the build process. @@ -1628,6 +2148,15 @@ class AutomatedReasoningPolicyDeleteTypeAnnotation(_SerdeShape): be referenced by any variables or rules. """ +class AutomatedReasoningPolicyDeleteTypeAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDeleteTypeAnnotation`.""" + + name: Required[str] + """ + The name of the custom type to delete from the policy. The type must not + be referenced by any variables or rules. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyDeleteTypeMutation(_SerdeShape): """ @@ -1648,6 +2177,12 @@ class AutomatedReasoningPolicyDeleteTypeValue(_SerdeShape): value: str """The identifier or name of the value to remove from the type.""" +class AutomatedReasoningPolicyDeleteTypeValueDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDeleteTypeValue`.""" + + value: Required[str] + """The identifier or name of the value to remove from the type.""" + @dataclass(kw_only=True) class AutomatedReasoningPolicyDeleteVariableAnnotation(_SerdeShape): """ @@ -1661,6 +2196,15 @@ class AutomatedReasoningPolicyDeleteVariableAnnotation(_SerdeShape): not be referenced by any rules. """ +class AutomatedReasoningPolicyDeleteVariableAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyDeleteVariableAnnotation`.""" + + name: Required[str] + """ + The name of the variable to delete from the policy. The variable must + not be referenced by any rules. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyDeleteVariableMutation(_SerdeShape): """ @@ -1814,6 +2358,26 @@ class _AutomatedReasoningPolicyGenerateFidelityReportContentDeserializer: self, deserializer: ShapeDeserializer ) -> AutomatedReasoningPolicyGenerateFidelityReportContent: ... +class AutomatedReasoningPolicyGenerateFidelityReportContentDocumentsDict(TypedDict): + documents: Sequence[ + AutomatedReasoningPolicyBuildWorkflowDocument + | AutomatedReasoningPolicyBuildWorkflowDocumentDict + ] + """ + Source documents to analyze for generating a new fidelity report. The + documents will be processed to create atomic statements and grounding + information. + """ + +AutomatedReasoningPolicyGenerateFidelityReportContentDict = Union[ + AutomatedReasoningPolicyGenerateFidelityReportContentDocumentsDict +] +""" +Dictionary form of +`AutomatedReasoningPolicyGenerateFidelityReportContent`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class AutomatedReasoningPolicyIngestContentAnnotation(_SerdeShape): """ @@ -1827,6 +2391,15 @@ class AutomatedReasoningPolicyIngestContentAnnotation(_SerdeShape): additional documents or rule descriptions. """ +class AutomatedReasoningPolicyIngestContentAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyIngestContentAnnotation`.""" + + content: Required[str] + """ + The new content to be analyzed and incorporated into the policy, such as + additional documents or rule descriptions. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyIterativeRefinementContent(_SerdeShape): """ @@ -1846,6 +2419,25 @@ class AutomatedReasoningPolicyIterativeRefinementContent(_SerdeShape): specific instructions or constraints for policy refinement. """ +class AutomatedReasoningPolicyIterativeRefinementContentDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyIterativeRefinementContent`.""" + + documents: Required[ + Sequence[ + AutomatedReasoningPolicyBuildWorkflowDocument + | AutomatedReasoningPolicyBuildWorkflowDocumentDict + ] + ] + """ + Source documents used for iterative policy refinement. These documents + provide context for refining the policy definition. + """ + feedback: str | None + """ + Optional feedback to guide the iterative refinement workflow. Provide + specific instructions or constraints for policy refinement. + """ + @dataclass class AutomatedReasoningPolicyMutationAddType(_SerdeShape): """A mutation to add a new custom type to the policy.""" @@ -2232,6 +2824,36 @@ class _AutomatedReasoningPolicyTypeValueAnnotationDeserializer: self, deserializer: ShapeDeserializer ) -> AutomatedReasoningPolicyTypeValueAnnotation: ... +class AutomatedReasoningPolicyTypeValueAnnotationAddTypeValueDict(TypedDict): + add_type_value: ( + AutomatedReasoningPolicyAddTypeValue | AutomatedReasoningPolicyAddTypeValueDict + ) + """An operation to add a new value to an existing custom type.""" + +class AutomatedReasoningPolicyTypeValueAnnotationUpdateTypeValueDict(TypedDict): + update_type_value: ( + AutomatedReasoningPolicyUpdateTypeValue + | AutomatedReasoningPolicyUpdateTypeValueDict + ) + """An operation to modify an existing value within a custom type.""" + +class AutomatedReasoningPolicyTypeValueAnnotationDeleteTypeValueDict(TypedDict): + delete_type_value: ( + AutomatedReasoningPolicyDeleteTypeValue + | AutomatedReasoningPolicyDeleteTypeValueDict + ) + """An operation to remove a value from an existing custom type.""" + +AutomatedReasoningPolicyTypeValueAnnotationDict = Union[ + AutomatedReasoningPolicyTypeValueAnnotationAddTypeValueDict + | AutomatedReasoningPolicyTypeValueAnnotationUpdateTypeValueDict + | AutomatedReasoningPolicyTypeValueAnnotationDeleteTypeValueDict +] +""" +Dictionary form of `AutomatedReasoningPolicyTypeValueAnnotation`, +setting exactly one variant. +""" + @dataclass(kw_only=True) class AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation(_SerdeShape): """ @@ -2247,6 +2869,19 @@ class AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation(_SerdeShape): for improvements or corrections. """ +class AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotationDict( + TypedDict, total=False +): + """Dictionary form of `AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation`.""" + + rule_ids: Sequence[str] | None + """The list of rule identifiers that the feedback applies to.""" + feedback: Required[str] + """ + The feedback information about rule performance, including suggestions + for improvements or corrections. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation(_SerdeShape): """ @@ -2270,6 +2905,27 @@ class AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation(_SerdeShape): issues or improvements identified. """ +class AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotationDict( + TypedDict, total=False +): + """Dictionary form of `AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation`.""" + + rule_ids: Sequence[str] | None + """ + The list of rule identifiers that were involved in the scenario being + evaluated. + """ + scenario_expression: Required[str] + """ + The logical expression that defines the test scenario that generated + this feedback. + """ + feedback: str | None + """ + The feedback information about scenario performance, including any + issues or improvements identified. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyUpdateRuleAnnotation(_SerdeShape): """ @@ -2285,6 +2941,17 @@ class AutomatedReasoningPolicyUpdateRuleAnnotation(_SerdeShape): expression. """ +class AutomatedReasoningPolicyUpdateRuleAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyUpdateRuleAnnotation`.""" + + rule_id: Required[str] + """The unique identifier of the rule to update.""" + expression: Required[str] + """ + The new formal logical expression for the rule, replacing the previous + expression. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyUpdateRuleMutation(_SerdeShape): """ @@ -2323,6 +2990,32 @@ class AutomatedReasoningPolicyUpdateTypeAnnotation(_SerdeShape): additions, modifications, or removals. """ +class AutomatedReasoningPolicyUpdateTypeAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyUpdateTypeAnnotation`.""" + + name: Required[str] + """The current name of the custom type to update.""" + new_name: str | None + """ + The new name for the custom type, if you want to rename it. If not + provided, the name remains unchanged. + """ + description: str | None + """ + The new description for the custom type, replacing the previous + description. + """ + values: Required[ + Sequence[ + AutomatedReasoningPolicyTypeValueAnnotation + | AutomatedReasoningPolicyTypeValueAnnotationDict + ] + ] + """ + The updated list of values for the custom type, which can include + additions, modifications, or removals. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyUpdateTypeMutation(_SerdeShape): """ @@ -2350,6 +3043,19 @@ class AutomatedReasoningPolicyUpdateTypeValue(_SerdeShape): description. """ +class AutomatedReasoningPolicyUpdateTypeValueDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyUpdateTypeValue`.""" + + value: Required[str] + """The current identifier or name of the type value to update.""" + new_value: str | None + """The new identifier or name for the type value, if you want to rename it.""" + description: str | None + """ + The new description for the type value, replacing the previous + description. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyUpdateVariableAnnotation(_SerdeShape): """ @@ -2370,6 +3076,22 @@ class AutomatedReasoningPolicyUpdateVariableAnnotation(_SerdeShape): description. """ +class AutomatedReasoningPolicyUpdateVariableAnnotationDict(TypedDict, total=False): + """Dictionary form of `AutomatedReasoningPolicyUpdateVariableAnnotation`.""" + + name: Required[str] + """The current name of the variable to update.""" + new_name: str | None + """ + The new name for the variable, if you want to rename it. If not + provided, the name remains unchanged. + """ + description: str | None + """ + The new description for the variable, replacing the previous + description. + """ + @dataclass(kw_only=True) class AutomatedReasoningPolicyUpdateVariableMutation(_SerdeShape): """ @@ -2480,6 +3202,60 @@ class _AutomatedReasoningPolicyWorkflowTypeContentDeserializer: self, deserializer: ShapeDeserializer ) -> AutomatedReasoningPolicyWorkflowTypeContent: ... +class AutomatedReasoningPolicyWorkflowTypeContentDocumentsDict(TypedDict): + documents: Sequence[ + AutomatedReasoningPolicyBuildWorkflowDocument + | AutomatedReasoningPolicyBuildWorkflowDocumentDict + ] + """The list of documents to be processed in a document ingestion workflow.""" + +class AutomatedReasoningPolicyWorkflowTypeContentPolicyRepairAssetsDict(TypedDict): + policy_repair_assets: ( + AutomatedReasoningPolicyBuildWorkflowRepairContent + | AutomatedReasoningPolicyBuildWorkflowRepairContentDict + ) + """ + The assets and instructions needed for a policy repair workflow, + including repair annotations and guidance. + """ + +class AutomatedReasoningPolicyWorkflowTypeContentGenerateFidelityReportContentDict( + TypedDict +): + generate_fidelity_report_content: ( + AutomatedReasoningPolicyGenerateFidelityReportContent + | AutomatedReasoningPolicyGenerateFidelityReportContentDict + ) + """ + The content configuration for generating a fidelity report workflow. + This can include source documents to analyze or an existing fidelity + report to update with a new policy definition. + """ + +class AutomatedReasoningPolicyWorkflowTypeContentIterativeRefinementContentDict( + TypedDict +): + iterative_refinement_content: ( + AutomatedReasoningPolicyIterativeRefinementContent + | AutomatedReasoningPolicyIterativeRefinementContentDict + ) + """ + Content configuration to start an iterative policy refinement workflow + that uses generative AI to automatically make changes to the policy + based on test results and the optional feedback provided. + """ + +AutomatedReasoningPolicyWorkflowTypeContentDict = Union[ + AutomatedReasoningPolicyWorkflowTypeContentDocumentsDict + | AutomatedReasoningPolicyWorkflowTypeContentPolicyRepairAssetsDict + | AutomatedReasoningPolicyWorkflowTypeContentGenerateFidelityReportContentDict + | AutomatedReasoningPolicyWorkflowTypeContentIterativeRefinementContentDict +] +""" +Dictionary form of `AutomatedReasoningPolicyWorkflowTypeContent`, +setting exactly one variant. +""" + @dataclass(kw_only=True) class BatchDeleteAdvancedPromptOptimizationJobError(_SerdeShape): """ @@ -2504,6 +3280,15 @@ class BatchDeleteAdvancedPromptOptimizationJobInput(_SerdeShape): delete. """ +class BatchDeleteAdvancedPromptOptimizationJobInputDict(TypedDict, total=False): + """Dictionary form of `BatchDeleteAdvancedPromptOptimizationJobInput`.""" + + job_identifiers: Required[Sequence[str]] + """ + A list of advanced prompt optimization job identifiers (ARNs or IDs) to + delete. + """ + @dataclass(kw_only=True) class BatchDeleteAdvancedPromptOptimizationJobItem(_SerdeShape): """ @@ -2558,6 +3343,15 @@ class BatchDeleteEvaluationJobInput(_SerdeShape): want to delete. """ +class BatchDeleteEvaluationJobInputDict(TypedDict, total=False): + """Dictionary form of `BatchDeleteEvaluationJobInput`.""" + + job_identifiers: Required[Sequence[str]] + """ + A list of one or more evaluation job Amazon Resource Names (ARNs) you + want to delete. + """ + @dataclass(kw_only=True) class BatchDeleteEvaluationJobItem(_SerdeShape): """An evaluation job for deletion, and it's current status.""" @@ -2601,6 +3395,16 @@ class BedrockEvaluatorModel(_SerdeShape): model as judge. """ +class BedrockEvaluatorModelDict(TypedDict, total=False): + """Dictionary form of `BedrockEvaluatorModel`.""" + + model_identifier: Required[str] + """ + The Amazon Resource Name (ARN) of the evaluator model used used in + knowledge base evaluation job or in model evaluation job that use a + model as judge. + """ + @dataclass(kw_only=True) class ByteContentDoc(_SerdeShape): """ @@ -2615,6 +3419,16 @@ class ByteContentDoc(_SerdeShape): data: bytes """The byte value of the file to upload, encoded as a Base-64 string.""" +class ByteContentDocDict(TypedDict, total=False): + """Dictionary form of `ByteContentDoc`.""" + + identifier: Required[str] + """The file name of the document contained in the wrapper object.""" + content_type: Required[str] + """The MIME type of the document contained in the wrapper object.""" + data: Required[bytes] + """The byte value of the file to upload, encoded as a Base-64 string.""" + @dataclass(kw_only=True) class CancelAutomatedReasoningPolicyBuildWorkflowInput(_SerdeShape): """ @@ -2634,6 +3448,21 @@ class CancelAutomatedReasoningPolicyBuildWorkflowInput(_SerdeShape): listing build workflows. """ +class CancelAutomatedReasoningPolicyBuildWorkflowInputDict(TypedDict, total=False): + """Dictionary form of `CancelAutomatedReasoningPolicyBuildWorkflowInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy whose + build workflow you want to cancel. + """ + build_workflow_id: Required[str] + """ + The unique identifier of the build workflow to cancel. You can get this + ID from the StartAutomatedReasoningPolicyBuildWorkflow response or by + listing build workflows. + """ + @dataclass(kw_only=True) class CancelAutomatedReasoningPolicyBuildWorkflowOutput(_SerdeShape): """ @@ -2660,6 +3489,16 @@ class CloudWatchConfig(_SerdeShape): large_data_delivery_s3_config: S3Config | None = ... """S3 configuration for delivering a large amount of data.""" +class CloudWatchConfigDict(TypedDict, total=False): + """Dictionary form of `CloudWatchConfig`.""" + + log_group_name: Required[str] + """The log group name.""" + role_arn: Required[str] + """The role Amazon Resource Name (ARN).""" + large_data_delivery_s3_config: S3Config | S3ConfigDict | None + """S3 configuration for delivering a large amount of data.""" + class CommitmentDuration(UnknownEnumMixin, StrEnum): ONE_MONTH = "OneMonth" SIX_MONTHS = "SixMonths" @@ -2714,6 +3553,51 @@ class CreateAdvancedPromptOptimizationJobInput(_SerdeShape): optimization. You can specify up to 5 models. """ +class CreateAdvancedPromptOptimizationJobInputDict(TypedDict, total=False): + """Dictionary form of `CreateAdvancedPromptOptimizationJobInput`.""" + + job_name: Required[str] + """A name for the advanced prompt optimization job.""" + job_description: str | None + """A description of the advanced prompt optimization job.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request but does not return an + error. + + This field is autopopulated if not provided. + """ + input_config: Required[ + AdvancedPromptOptimizationInputConfig + | AdvancedPromptOptimizationInputConfigDict + ] + """ + Specifies the S3 location of your JSONL input file containing prompt + templates and evaluation samples. + """ + output_config: Required[ + AdvancedPromptOptimizationOutputConfig + | AdvancedPromptOptimizationOutputConfigDict + ] + """Specifies the S3 location where optimization results will be stored.""" + encryption_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the KMS key used for encrypting the + output data. If not specified, the output is encrypted with an + Amazon-owned KMS key. + """ + tags: Sequence[Tag | TagDict] | None + """Tags to associate with the advanced prompt optimization job.""" + model_configurations: Required[ + Sequence[ModelConfiguration | ModelConfigurationDict] + ] + """ + A list of model configurations specifying the target models for prompt + optimization. You can specify up to 5 models. + """ + @dataclass(kw_only=True) class CreateAdvancedPromptOptimizationJobOutput(_SerdeShape): """Create Advanced Prompt Optimization Job Response""" @@ -2775,21 +3659,68 @@ class CreateAutomatedReasoningPolicyInput(_SerdeShape): help you organize and manage your policies. """ -@dataclass(kw_only=True) -class CreateAutomatedReasoningPolicyOutput(_SerdeShape): - """Dataclass for CreateAutomatedReasoningPolicyOutput structure.""" +class CreateAutomatedReasoningPolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreateAutomatedReasoningPolicyInput`.""" - policy_arn: str + name: Required[str] """ - The Amazon Resource Name (ARN) of the Automated Reasoning policy that - you created. + A unique name for the Automated Reasoning policy. The name must be + between 1 and 63 characters and can contain letters, numbers, hyphens, + and underscores. """ - version: str + description: str | None """ - The version number of the newly created Automated Reasoning policy. The - initial version is always DRAFT. + A description of the Automated Reasoning policy. Use this to provide + context about the policy's purpose and the types of validations it + performs. """ - name: str + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than once. If this token matches a previous request, + Amazon Bedrock ignores the request but doesn't return an error. + + This field is autopopulated if not provided. + """ + policy_definition: ( + AutomatedReasoningPolicyDefinition + | AutomatedReasoningPolicyDefinitionDict + | None + ) + """ + The policy definition that contains the formal logic rules, variables, + and custom variable types used to validate foundation model responses in + your application. + """ + kms_key_id: str | None + """ + The identifier of the KMS key to use for encrypting the automated + reasoning policy and its associated artifacts. If you don't specify a + KMS key, Amazon Bedrock uses an KMS managed key for encryption. For + enhanced security and control, you can specify a customer managed KMS + key. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags to associate with the Automated Reasoning policy. Tags + help you organize and manage your policies. + """ + +@dataclass(kw_only=True) +class CreateAutomatedReasoningPolicyOutput(_SerdeShape): + """Dataclass for CreateAutomatedReasoningPolicyOutput structure.""" + + policy_arn: str + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy that + you created. + """ + version: str + """ + The version number of the newly created Automated Reasoning policy. The + initial version is always DRAFT. + """ + name: str """The name of the Automated Reasoning policy.""" description: str | None = ... """The description of the Automated Reasoning policy.""" @@ -2887,6 +3818,82 @@ class CreateAutomatedReasoningPolicyTestCaseInput(_SerdeShape): validated. """ +class CreateAutomatedReasoningPolicyTestCaseInputDict(TypedDict, total=False): + """Dictionary form of `CreateAutomatedReasoningPolicyTestCaseInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy for + which to create the test. + """ + guard_content: Required[str] + """ + The output content that's validated by the Automated Reasoning policy. + This represents the foundation model response that will be checked for + accuracy. + """ + query_content: str | None + """ + The input query or prompt that generated the content. This provides + context for the validation. + """ + expected_aggregated_findings_result: Required[str] + """ + The expected result of the Automated Reasoning check. Valid values + include: , TOO_COMPLEX, and NO_TRANSLATIONS. + + - `VALID` - The claims are true. The claims are implied by the premises + and the Automated Reasoning policy. Given the Automated Reasoning + policy and premises, it is not possible for these claims to be false. + In other words, there are no alternative answers that are true that + contradict the claims. + + - `INVALID` - The claims are false. The claims are not implied by the + premises and Automated Reasoning policy. Furthermore, there exists + different claims that are consistent with the premises and Automated + Reasoning policy. + + - `SATISFIABLE` - The claims can be true or false. It depends on what + assumptions are made for the claim to be implied from the premises and + Automated Reasoning policy rules. In this situation, different + assumptions can make input claims false and alternative claims true. + + - `IMPOSSIBLE` - Automated Reasoning can't make a statement about the + claims. This can happen if the premises are logically incorrect, or if + there is a conflict within the Automated Reasoning policy itself. + + - `TRANSLATION_AMBIGUOUS` - Detected an ambiguity in the translation + meant it would be unsound to continue with validity checking. + Additional context or follow-up questions might be needed to get + translation to succeed. + + - `TOO_COMPLEX` - The input contains too much information for Automated + Reasoning to process within its latency limits. + + - `NO_TRANSLATIONS` - Identifies that some or all of the input prompt + wasn't translated into logic. This can happen if the input isn't + relevant to the Automated Reasoning policy, or if the policy doesn't + have variables to model relevant input. If Automated Reasoning can't + translate anything, you get a single `NO_TRANSLATIONS` finding. You + might also see a `NO_TRANSLATIONS` (along with other findings) if some + part of the validation isn't translated. + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + confidence_threshold: float | None + """ + The minimum confidence level for logic validation. Content that meets + the threshold is considered a high-confidence finding that can be + validated. + """ + @dataclass(kw_only=True) class CreateAutomatedReasoningPolicyTestCaseOutput(_SerdeShape): """Dataclass for CreateAutomatedReasoningPolicyTestCaseOutput structure.""" @@ -2932,6 +3939,31 @@ class CreateAutomatedReasoningPolicyVersionInput(_SerdeShape): tags: list[Tag] | None = ... """A list of tags to associate with the policy version.""" +class CreateAutomatedReasoningPolicyVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateAutomatedReasoningPolicyVersionInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy for + which to create a version. + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + last_updated_definition_hash: Required[str] + """ + The hash of the current policy definition used as a concurrency token to + ensure the policy hasn't been modified since you last retrieved it. + """ + tags: Sequence[Tag | TagDict] | None + """A list of tags to associate with the policy version.""" + @dataclass(kw_only=True) class CreateAutomatedReasoningPolicyVersionOutput(_SerdeShape): """Dataclass for CreateAutomatedReasoningPolicyVersionOutput structure.""" @@ -2992,6 +4024,41 @@ class CreateCustomModelDeploymentInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateCustomModelDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `CreateCustomModelDeploymentInput`.""" + + model_deployment_name: Required[str] + """ + The name for the custom model deployment. The name must be unique within + your Amazon Web Services account and Region. + """ + model_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the custom model to deploy for + on-demand inference. The custom model must be in the `Active` state. + """ + description: str | None + """ + A description for the custom model deployment to help you identify its + purpose. + """ + tags: Sequence[Tag | TagDict] | None + """ + Tags to assign to the custom model deployment. You can use tags to + organize and track your Amazon Web Services resources for cost + allocation and management purposes. + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateCustomModelDeploymentOutput(_SerdeShape): """Dataclass for CreateCustomModelDeploymentOutput structure.""" @@ -3080,6 +4147,75 @@ class CreateCustomModelInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateCustomModelInputDict(TypedDict, total=False): + """Dictionary form of `CreateCustomModelInput`.""" + + model_name: Required[str] + """A unique name for the custom model.""" + model_source_config: ModelDataSource | ModelDataSourceDict | None + """ + The data source for the model. The Amazon S3 URI in the model source + must be for the Amazon-managed Amazon S3 bucket containing your model + artifacts. + """ + custom_model_data_source: CustomModelDataSource | CustomModelDataSourceDict | None + """ + The data source for the custom model. Use this field to specify a + SageMaker AI model package ARN as the source for your custom model. + Amazon Bedrock resolves the model package to retrieve the model + artifacts. + + You can specify either `customModelDataSource` or `modelSourceConfig`, + but not both. + """ + model_kms_key_arn: str | None + """ + The Amazon Resource Name (ARN) of the customer managed KMS key to + encrypt the custom model. If you don't provide a KMS key, Amazon + Bedrock uses an Amazon Web Services-managed KMS key to encrypt the + model. + + If you provide a customer managed KMS key, your Amazon Bedrock service + role must have permissions to use it. For more information see + [Encryption of imported + models](https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-import-model.html). + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM service role that Amazon + Bedrock assumes to perform tasks on your behalf. This role must have + permissions to access the Amazon S3 bucket containing your model + artifacts and the KMS key (if specified). For more information, see + [Setting up an IAM service role for importing + models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html) + in the Amazon Bedrock User Guide. + + This field is required when you use `modelSourceConfig` with an Amazon + S3 data source. It is not required when you use `customModelDataSource` + with a model package ARN, because Amazon Bedrock uses its own + credentials to access the model artifacts. + """ + model_tags: Sequence[Tag | TagDict] | None + """ + A list of key-value pairs to associate with the custom model resource. + You can use these tags to organize and identify your resources. + + For more information, see [Tagging + resources](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html) + in the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateCustomModelOutput(_SerdeShape): """Dataclass for CreateCustomModelOutput structure.""" @@ -3156,6 +4292,71 @@ class CreateEvaluationJobInput(_SerdeShape): the results of the evaluation job. """ +class CreateEvaluationJobInputDict(TypedDict, total=False): + """Dictionary form of `CreateEvaluationJobInput`.""" + + job_name: Required[str] + """ + A name for the evaluation job. Names must unique with your Amazon Web + Services account, and your account's Amazon Web Services region. + """ + job_description: str | None + """A description of the evaluation job.""" + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of an IAM service role that Amazon + Bedrock can assume to perform tasks on your behalf. To learn more about + the required permissions, see [Required permissions for model + evaluations](https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-security.html). + """ + customer_encryption_key_id: str | None + """ + Specify your customer managed encryption key Amazon Resource Name (ARN) + that will be used to encrypt your evaluation job. + """ + job_tags: Sequence[Tag | TagDict] | None + """Tags to attach to the model evaluation job.""" + application_type: str | None + """ + Specifies whether the evaluation job is for evaluating a model or + evaluating a knowledge base (retrieval and response generation). + """ + evaluation_config: Required[EvaluationConfig | EvaluationConfigDict] + """ + Contains the configuration details of either an automated or human-based + evaluation job. + """ + inference_config: Required[ + EvaluationInferenceConfig | EvaluationInferenceConfigDict + ] + """ + Contains the configuration details of the inference model for the + evaluation job. + + For model evaluation jobs, automated jobs support a single model or + [inference + profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html), + and jobs that use human workers support two models or inference + profiles. + """ + output_data_config: Required[ + EvaluationOutputDataConfig | EvaluationOutputDataConfigDict + ] + """ + Contains the configuration details of the Amazon S3 bucket for storing + the results of the evaluation job. + """ + @dataclass(kw_only=True) class CreateEvaluationJobOutput(_SerdeShape): """Dataclass for CreateEvaluationJobOutput structure.""" @@ -3179,6 +4380,14 @@ class CreateFoundationModelAgreementInput(_SerdeShape): model_id: str | None = ... """Model Id of the model for the access request.""" +class CreateFoundationModelAgreementInputDict(TypedDict, total=False): + """Dictionary form of `CreateFoundationModelAgreementInput`.""" + + offer_token: Required[str] + """An offer token encapsulates the information for an offer.""" + model_id: Required[str] + """Model Id of the model for the access request.""" + @dataclass(kw_only=True) class CreateFoundationModelAgreementOutput(_SerdeShape): """Dataclass for CreateFoundationModelAgreementOutput structure.""" @@ -3254,6 +4463,78 @@ class CreateGuardrailInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateGuardrailInputDict(TypedDict, total=False): + """Dictionary form of `CreateGuardrailInput`.""" + + name: Required[str] + """The name to give the guardrail.""" + description: str | None + """A description of the guardrail.""" + topic_policy_config: ( + GuardrailTopicPolicyConfig | GuardrailTopicPolicyConfigDict | None + ) + """The topic policies to configure for the guardrail.""" + content_policy_config: ( + GuardrailContentPolicyConfig | GuardrailContentPolicyConfigDict | None + ) + """The content filter policies to configure for the guardrail.""" + word_policy_config: GuardrailWordPolicyConfig | GuardrailWordPolicyConfigDict | None + """The word policy you configure for the guardrail.""" + sensitive_information_policy_config: ( + GuardrailSensitiveInformationPolicyConfig + | GuardrailSensitiveInformationPolicyConfigDict + | None + ) + """The sensitive information policy to configure for the guardrail.""" + contextual_grounding_policy_config: ( + GuardrailContextualGroundingPolicyConfig + | GuardrailContextualGroundingPolicyConfigDict + | None + ) + """ + The contextual grounding policy configuration used to create a + guardrail. + """ + automated_reasoning_policy_config: ( + GuardrailAutomatedReasoningPolicyConfig + | GuardrailAutomatedReasoningPolicyConfigDict + | None + ) + """ + Optional configuration for integrating Automated Reasoning policies with + the new guardrail. + """ + cross_region_config: ( + GuardrailCrossRegionConfig | GuardrailCrossRegionConfigDict | None + ) + """ + The system-defined guardrail profile that you're using with your + guardrail. Guardrail profiles define the destination Amazon Web Services + Regions where guardrail inference requests can be automatically routed. + + For more information, see the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html). + """ + blocked_input_messaging: Required[str] + """The message to return when the guardrail blocks a prompt.""" + blocked_outputs_messaging: Required[str] + """The message to return when the guardrail blocks a model response.""" + kms_key_id: str | None + """The ARN of the KMS key that you use to encrypt the guardrail.""" + tags: Sequence[Tag | TagDict] | None + """The tags that you want to attach to the guardrail.""" + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than once. If this token matches a previous request, + Amazon Bedrock ignores the request, but does not return an error. For + more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html) + in the *Amazon S3 User Guide*. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateGuardrailOutput(_SerdeShape): """Dataclass for CreateGuardrailOutput structure.""" @@ -3297,6 +4578,25 @@ class CreateGuardrailVersionInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateGuardrailVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateGuardrailVersionInput`.""" + + guardrail_identifier: Required[str] + """The unique identifier of the guardrail. This can be an ID or the ARN.""" + description: str | None + """A description of the guardrail version.""" + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than once. If this token matches a previous request, + Amazon Bedrock ignores the request, but does not return an error. For + more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html) + in the *Amazon S3 User Guide*. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateGuardrailVersionOutput(_SerdeShape): """Dataclass for CreateGuardrailVersionOutput structure.""" @@ -3345,6 +4645,39 @@ class CreateInferenceProfileInput(_SerdeShape): Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). """ +class CreateInferenceProfileInputDict(TypedDict, total=False): + """Dictionary form of `CreateInferenceProfileInput`.""" + + inference_profile_name: Required[str] + """A name for the inference profile.""" + description: str | None + """A description for the inference profile.""" + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + model_source: Required[ + InferenceProfileModelSource | InferenceProfileModelSourceDict + ] + """ + The foundation model or system-defined inference profile that the + inference profile will track metrics and costs for. + """ + tags: Sequence[Tag | TagDict] | None + """ + An array of objects, each of which contains a tag and its value. For + more information, see [Tagging + resources](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html) + in the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). + """ + @dataclass(kw_only=True) class CreateInferenceProfileOutput(_SerdeShape): """Dataclass for CreateInferenceProfileOutput structure.""" @@ -3405,6 +4738,46 @@ class CreateMarketplaceModelEndpointInput(_SerdeShape): Web Services resources. """ +class CreateMarketplaceModelEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateMarketplaceModelEndpointInput`.""" + + model_source_identifier: Required[str] + """ + The ARN of the model from Amazon Bedrock Marketplace that you want to + deploy to the endpoint. + """ + endpoint_config: Required[EndpointConfig | EndpointConfigDict] + """ + The configuration for the endpoint, including the number and type of + instances to use. + """ + accept_eula: bool | None + """ + Indicates whether you accept the end-user license agreement (EULA) for + the model. Set to `true` to accept the EULA. + """ + endpoint_name: Required[str] + """ + The name of the endpoint. This name must be unique within your Amazon + Web Services account and region. + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. This token is listed as not required because + Amazon Web Services SDKs automatically generate it for you and set this + parameter. If you're not using the Amazon Web Services SDK or the CLI, + you must provide this token or the action will fail. + + This field is autopopulated if not provided. + """ + tags: Sequence[Tag | TagDict] | None + """ + An array of key-value pairs to apply to the underlying Amazon SageMaker + endpoint. You can use these tags to organize and identify your Amazon + Web Services resources. + """ + @dataclass(kw_only=True) class CreateMarketplaceModelEndpointOutput(_SerdeShape): """Dataclass for CreateMarketplaceModelEndpointOutput structure.""" @@ -3447,6 +4820,33 @@ class CreateModelCopyJobInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateModelCopyJobInputDict(TypedDict, total=False): + """Dictionary form of `CreateModelCopyJobInput`.""" + + source_model_arn: Required[str] + """The Amazon Resource Name (ARN) of the model to be copied.""" + target_model_name: Required[str] + """A name for the copied model.""" + model_kms_key_id: str | None + """The ARN of the KMS key that you use to encrypt the model copy.""" + target_model_tags: Sequence[Tag | TagDict] | None + """ + Tags to associate with the target model. For more information, see [Tag + resources](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html) + in the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateModelCopyJobOutput(_SerdeShape): """Dataclass for CreateModelCopyJobOutput structure.""" @@ -3520,6 +4920,64 @@ class CreateModelCustomizationJobInput(_SerdeShape): customization_config: CustomizationConfig | None = ... """The customization configuration for the model customization job.""" +class CreateModelCustomizationJobInputDict(TypedDict, total=False): + """Dictionary form of `CreateModelCustomizationJobInput`.""" + + job_name: Required[str] + """A name for the fine-tuning job.""" + custom_model_name: Required[str] + """A name for the resulting custom model.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of an IAM service role that Amazon + Bedrock can assume to perform tasks on your behalf. For example, during + model training, Amazon Bedrock needs your permission to read input data + from an S3 bucket, write model artifacts to an S3 bucket. To pass this + role to Amazon Bedrock, the caller of this API must have the + `iam:PassRole` permission. + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + base_model_identifier: Required[str] + """Name of the base model.""" + customization_type: str | None + """The customization type.""" + custom_model_kms_key_id: str | None + """The custom model is encrypted at rest using this key.""" + job_tags: Sequence[Tag | TagDict] | None + """Tags to attach to the job.""" + custom_model_tags: Sequence[Tag | TagDict] | None + """Tags to attach to the resulting custom model.""" + training_data_config: Required[TrainingDataConfig | TrainingDataConfigDict] + """Information about the training dataset.""" + validation_data_config: ValidationDataConfig | ValidationDataConfigDict | None + """Information about the validation dataset.""" + output_data_config: Required[OutputDataConfig | OutputDataConfigDict] + """S3 location for the output data.""" + hyper_parameters: Mapping[str, str] | None + """ + Parameters related to tuning the model. For details on the format for + different models, see [Custom model + hyperparameters](https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html). + """ + vpc_config: VpcConfig | VpcConfigDict | None + """ + The configuration of the Virtual Private Cloud (VPC) that contains the + resources that you're using for this job. For more information, see + [Protect your model customization jobs using a + VPC](https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-model-customization.html). + """ + customization_config: CustomizationConfig | CustomizationConfigDict | None + """The customization configuration for the model customization job.""" + @dataclass(kw_only=True) class CreateModelCustomizationJobOutput(_SerdeShape): """Dataclass for CreateModelCustomizationJobOutput structure.""" @@ -3534,23 +4992,54 @@ class CreateModelCustomizationJobOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class CreateModelImportJobInput(_SerdeShape): - """Dataclass for CreateModelImportJobInput structure.""" +@dataclass(kw_only=True) +class CreateModelImportJobInput(_SerdeShape): + """Dataclass for CreateModelImportJobInput structure.""" + + job_name: str | None = ... + """The name of the import job.""" + imported_model_name: str | None = ... + """The name of the imported model.""" + role_arn: str | None = ... + """The Amazon Resource Name (ARN) of the model import job.""" + model_data_source: ModelDataSource | None = ... + """The data source for the imported model.""" + job_tags: list[Tag] | None = ... + """Tags to attach to this import job.""" + imported_model_tags: list[Tag] | None = ... + """Tags to attach to the imported model.""" + client_request_token: str | None = ... + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + """ + vpc_config: VpcConfig | None = ... + """ + VPC configuration parameters for the private Virtual Private Cloud (VPC) + that contains the resources you are using for the import job. + """ + imported_model_kms_key_id: str | None = ... + """The imported model is encrypted at rest using this key.""" + +class CreateModelImportJobInputDict(TypedDict, total=False): + """Dictionary form of `CreateModelImportJobInput`.""" - job_name: str | None = ... + job_name: Required[str] """The name of the import job.""" - imported_model_name: str | None = ... + imported_model_name: Required[str] """The name of the imported model.""" - role_arn: str | None = ... + role_arn: Required[str] """The Amazon Resource Name (ARN) of the model import job.""" - model_data_source: ModelDataSource | None = ... + model_data_source: Required[ModelDataSource | ModelDataSourceDict] """The data source for the imported model.""" - job_tags: list[Tag] | None = ... + job_tags: Sequence[Tag | TagDict] | None """Tags to attach to this import job.""" - imported_model_tags: list[Tag] | None = ... + imported_model_tags: Sequence[Tag | TagDict] | None """Tags to attach to the imported model.""" - client_request_token: str | None = ... + client_request_token: str | None """ A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous @@ -3558,12 +5047,12 @@ class CreateModelImportJobInput(_SerdeShape): error. For more information, see [Ensuring idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). """ - vpc_config: VpcConfig | None = ... + vpc_config: VpcConfig | VpcConfigDict | None """ VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job. """ - imported_model_kms_key_id: str | None = ... + imported_model_kms_key_id: str | None """The imported model is encrypted at rest using this key.""" @dataclass(kw_only=True) @@ -3634,6 +5123,63 @@ class CreateModelInvocationJobInput(_SerdeShape): model_invocation_type: str = ... """The invocation endpoint for ModelInvocationJob""" +class CreateModelInvocationJobInputDict(TypedDict, total=False): + """Dictionary form of `CreateModelInvocationJobInput`.""" + + job_name: Required[str] + """A name to give the batch inference job.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the service role with permissions to + carry out and manage batch inference. You can use the console to create + a default service role or follow the steps at [Create a service role for + batch + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html). + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + model_id: Required[str] + """ + The unique identifier of the foundation model to use for the batch + inference job. + """ + input_data_config: Required[ + ModelInvocationJobInputDataConfig | ModelInvocationJobInputDataConfigDict + ] + """Details about the location of the input to the batch inference job.""" + output_data_config: Required[ + ModelInvocationJobOutputDataConfig | ModelInvocationJobOutputDataConfigDict + ] + """Details about the location of the output of the batch inference job.""" + vpc_config: VpcConfig | VpcConfigDict | None + """ + The configuration of the Virtual Private Cloud (VPC) for the data in the + batch inference job. For more information, see [Protect batch inference + jobs using a + VPC](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-vpc). + """ + timeout_duration_in_hours: int | None + """ + The number of hours after which to force the batch inference job to time + out. + """ + tags: Sequence[Tag | TagDict] | None + """ + Any tags to associate with the batch inference job. For more + information, see [Tagging Amazon Bedrock + resources](https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html). + """ + model_invocation_type: str | None + """The invocation endpoint for ModelInvocationJob""" + @dataclass(kw_only=True) class CreateModelInvocationJobOutput(_SerdeShape): """Dataclass for CreateModelInvocationJobOutput structure.""" @@ -3688,6 +5234,45 @@ class CreatePromptRouterInput(_SerdeShape): use tags to categorize and manage your Amazon Web Services resources. """ +class CreatePromptRouterInputDict(TypedDict, total=False): + """Dictionary form of `CreatePromptRouterInput`.""" + + client_request_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure + idempotency of your requests. If not specified, the Amazon Web Services + SDK automatically generates one for you. + + This field is autopopulated if not provided. + """ + prompt_router_name: Required[str] + """ + The name of the prompt router. The name must be unique within your + Amazon Web Services account in the current region. + """ + models: Required[Sequence[PromptRouterTargetModel | PromptRouterTargetModelDict]] + """ + A list of foundation models that the prompt router can route requests + to. At least one model must be specified. + """ + description: str | None + """ + An optional description of the prompt router to help identify its + purpose. + """ + routing_criteria: Required[RoutingCriteria | RoutingCriteriaDict] + """ + The criteria, which is the response quality difference, used to + determine how incoming requests are routed to different models. + """ + fallback_model: Required[PromptRouterTargetModel | PromptRouterTargetModelDict] + """The default model to use when the routing criteria is not met.""" + tags: Sequence[Tag | TagDict] | None + """ + An array of key-value pairs to apply to this resource as tags. You can + use tags to categorize and manage your Amazon Web Services resources. + """ + @dataclass(kw_only=True) class CreatePromptRouterOutput(_SerdeShape): """Dataclass for CreatePromptRouterOutput structure.""" @@ -3766,6 +5351,66 @@ class CreateProvisionedModelThroughputInput(_SerdeShape): tags: list[Tag] | None = ... """Tags to associate with this Provisioned Throughput.""" +class CreateProvisionedModelThroughputInputDict(TypedDict, total=False): + """Dictionary form of `CreateProvisionedModelThroughputInput`.""" + + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the API request + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html) + in the Amazon S3 User Guide. + + This field is autopopulated if not provided. + """ + model_units: Required[int] + """ + Number of model units to allocate. A model unit delivers a specific + throughput level for the specified model. The throughput level of a + model unit specifies the total number of input and output tokens that it + can process and generate within a span of one minute. By default, your + account has no model units for purchasing Provisioned Throughputs with + commitment. You must first visit the [Amazon Web Services support + center](https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase) + to request MUs. + + For model unit quotas, see [Provisioned Throughput + quotas](https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html#prov-thru-quotas) + in the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). + + For more information about what an MU specifies, contact your Amazon Web + Services account manager. + """ + provisioned_model_name: Required[str] + """The name for this Provisioned Throughput.""" + model_id: Required[str] + """ + The Amazon Resource Name (ARN) or name of the model to associate with + this Provisioned Throughput. For a list of models for which you can + purchase Provisioned Throughput, see [Amazon Bedrock model IDs for + purchasing Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#prov-throughput-models) + in the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). + """ + commitment_duration: str | None + """ + The commitment duration requested for the Provisioned Throughput. + Billing occurs hourly and is discounted for longer commitment terms. To + request a no-commit Provisioned Throughput, omit this field. + + Custom models support all levels of commitment. To see which base models + support no commitment, see [Supported regions and models for Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/pt-supported.html) + in the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html) + """ + tags: Sequence[Tag | TagDict] | None + """Tags to associate with this Provisioned Throughput.""" + @dataclass(kw_only=True) class CreateProvisionedModelThroughputOutput(_SerdeShape): """Dataclass for CreateProvisionedModelThroughputOutput structure.""" @@ -3815,6 +5460,22 @@ CustomizationConfig = Union[ class _CustomizationConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CustomizationConfig: ... +class CustomizationConfigDistillationConfigDict(TypedDict): + distillation_config: DistillationConfig | DistillationConfigDict + """The Distillation configuration for the custom model.""" + +class CustomizationConfigRftConfigDict(TypedDict): + rft_config: RFTConfig | RFTConfigDict + """ + Configuration settings for reinforcement fine-tuning (RFT) model + customization, including grader configuration and hyperparameters. + """ + +CustomizationConfigDict = Union[ + CustomizationConfigDistillationConfigDict | CustomizationConfigRftConfigDict +] +"""Dictionary form of `CustomizationConfig`, setting exactly one variant.""" + class CustomizationType(UnknownEnumMixin, StrEnum): FINE_TUNING = "FINE_TUNING" CONTINUED_PRE_TRAINING = "CONTINUED_PRE_TRAINING" @@ -3839,6 +5500,19 @@ class CustomMetricBedrockEvaluatorModel(_SerdeShape): evaluations](https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation-kb.html). """ +class CustomMetricBedrockEvaluatorModelDict(TypedDict, total=False): + """Dictionary form of `CustomMetricBedrockEvaluatorModel`.""" + + model_identifier: Required[str] + """ + The Amazon Resource Name (ARN) of the evaluator model for custom + metrics. For a list of supported evaluator models, see [Evaluate model + performance using another LLM as a + judge](https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation-judge.html) + and [Evaluate the performance of RAG sources using Amazon Bedrock + evaluations](https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation-kb.html). + """ + @dataclass(kw_only=True) class CustomMetricDefinition(_SerdeShape): """ @@ -3876,6 +5550,30 @@ class CustomMetricDefinition(_SerdeShape): scale)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-custom-metrics-prompt-formats.html#model-evaluation-custom-metrics-prompt-formats-schema). """ +class CustomMetricDefinitionDict(TypedDict, total=False): + """Dictionary form of `CustomMetricDefinition`.""" + + name: Required[str] + """ + The name for a custom metric. Names must be unique in your Amazon Web + Services region. + """ + instructions: Required[str] + """ + The prompt for a custom metric that instructs the evaluator model how to + rate the model or RAG source under evaluation. + """ + rating_scale: Sequence[RatingScaleItem | RatingScaleItemDict] | None + """ + Defines the rating scale to be used for a custom metric. We recommend + that you always define a ratings scale when creating a custom metric. If + you don't define a scale, Amazon Bedrock won't be able to visually + display the results of the evaluation in the console or calculate + average values of numerical scores. For more information on specifying a + rating scale, see [Specifying an output schema (rating + scale)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-custom-metrics-prompt-formats.html#model-evaluation-custom-metrics-prompt-formats-schema). + """ + @dataclass(kw_only=True) class CustomMetricEvaluatorModelConfig(_SerdeShape): """ @@ -3889,6 +5587,19 @@ class CustomMetricEvaluatorModelConfig(_SerdeShape): Bedrock evaluation job. """ +class CustomMetricEvaluatorModelConfigDict(TypedDict, total=False): + """Dictionary form of `CustomMetricEvaluatorModelConfig`.""" + + bedrock_evaluator_models: Required[ + Sequence[ + CustomMetricBedrockEvaluatorModel | CustomMetricBedrockEvaluatorModelDict + ] + ] + """ + Defines the model you want to evaluate custom metrics in an Amazon + Bedrock evaluation job. + """ + @dataclass class CustomModelDataSourceModelPackageArnDataSource(_SerdeShape): """ @@ -3923,6 +5634,22 @@ the following member: class _CustomModelDataSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CustomModelDataSource: ... +class CustomModelDataSourceModelPackageArnDataSourceDict(TypedDict): + model_package_arn_data_source: ( + ModelPackageArnDataSource | ModelPackageArnDataSourceDict + ) + """ + A SageMaker AI model package ARN as the data source for the custom + model. When you specify a model package ARN, Amazon Bedrock resolves the + model package to retrieve the model artifacts. + """ + +CustomModelDataSourceDict = Union[CustomModelDataSourceModelPackageArnDataSourceDict] +""" +Dictionary form of `CustomModelDataSource`, setting exactly one +variant. +""" + class CustomModelDeploymentStatus(UnknownEnumMixin, StrEnum): CREATING = "Creating" ACTIVE = "Active" @@ -4091,6 +5818,23 @@ class DeleteAutomatedReasoningPolicyBuildWorkflowInput(_SerdeShape): workflows that have been modified. """ +class DeleteAutomatedReasoningPolicyBuildWorkflowInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAutomatedReasoningPolicyBuildWorkflowInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy whose + build workflow you want to delete. + """ + build_workflow_id: Required[str] + """The unique identifier of the build workflow to delete.""" + last_updated_at: Required[datetime] + """ + The timestamp when the build workflow was last updated. This is used for + optimistic concurrency control to prevent accidental deletion of + workflows that have been modified. + """ + @dataclass(kw_only=True) class DeleteAutomatedReasoningPolicyBuildWorkflowOutput(_SerdeShape): """ @@ -4125,6 +5869,24 @@ class DeleteAutomatedReasoningPolicyInput(_SerdeShape): `false`. """ +class DeleteAutomatedReasoningPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAutomatedReasoningPolicyInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy to + delete. + """ + force: bool | None + """ + Specifies whether to force delete the automated reasoning policy even if + it has active resources. When `false`, Amazon Bedrock validates if all + artifacts have been deleted (e.g. policy version, test case, test + result) for a policy before deletion. When `true`, Amazon Bedrock will + delete the policy and all its artifacts without validation. Default is + `false`. + """ + @dataclass(kw_only=True) class DeleteAutomatedReasoningPolicyOutput(_SerdeShape): """Dataclass for DeleteAutomatedReasoningPolicyOutput structure.""" @@ -4154,6 +5916,22 @@ class DeleteAutomatedReasoningPolicyTestCaseInput(_SerdeShape): concurrency token to prevent conflicting modifications. """ +class DeleteAutomatedReasoningPolicyTestCaseInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAutomatedReasoningPolicyTestCaseInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy that + contains the test. + """ + test_case_id: Required[str] + """The unique identifier of the test to delete.""" + last_updated_at: Required[datetime] + """ + The timestamp when the test was last updated. This is used as a + concurrency token to prevent conflicting modifications. + """ + @dataclass(kw_only=True) class DeleteAutomatedReasoningPolicyTestCaseOutput(_SerdeShape): """Dataclass for DeleteAutomatedReasoningPolicyTestCaseOutput structure.""" @@ -4176,6 +5954,15 @@ class DeleteCustomModelDeploymentInput(_SerdeShape): delete. """ +class DeleteCustomModelDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCustomModelDeploymentInput`.""" + + custom_model_deployment_identifier: Required[str] + """ + The Amazon Resource Name (ARN) or name of the custom model deployment to + delete. + """ + @dataclass(kw_only=True) class DeleteCustomModelDeploymentOutput(_SerdeShape): """Dataclass for DeleteCustomModelDeploymentOutput structure.""" @@ -4195,6 +5982,12 @@ class DeleteCustomModelInput(_SerdeShape): model_identifier: str | None = ... """Name of the model to delete.""" +class DeleteCustomModelInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCustomModelInput`.""" + + model_identifier: Required[str] + """Name of the model to delete.""" + @dataclass(kw_only=True) class DeleteCustomModelOutput(_SerdeShape): """Dataclass for DeleteCustomModelOutput structure.""" @@ -4214,6 +6007,12 @@ class DeleteEnforcedGuardrailConfigurationInput(_SerdeShape): config_id: str | None = ... """Unique ID for the account enforced configuration.""" +class DeleteEnforcedGuardrailConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteEnforcedGuardrailConfigurationInput`.""" + + config_id: Required[str] + """Unique ID for the account enforced configuration.""" + @dataclass(kw_only=True) class DeleteEnforcedGuardrailConfigurationOutput(_SerdeShape): """Dataclass for DeleteEnforcedGuardrailConfigurationOutput structure.""" @@ -4233,6 +6032,12 @@ class DeleteFoundationModelAgreementInput(_SerdeShape): model_id: str | None = ... """Model Id of the model access to delete.""" +class DeleteFoundationModelAgreementInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFoundationModelAgreementInput`.""" + + model_id: Required[str] + """Model Id of the model access to delete.""" + @dataclass(kw_only=True) class DeleteFoundationModelAgreementOutput(_SerdeShape): """Dataclass for DeleteFoundationModelAgreementOutput structure.""" @@ -4254,6 +6059,14 @@ class DeleteGuardrailInput(_SerdeShape): guardrail_version: str | None = ... """The version of the guardrail.""" +class DeleteGuardrailInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGuardrailInput`.""" + + guardrail_identifier: Required[str] + """The unique identifier of the guardrail. This can be an ID or the ARN.""" + guardrail_version: str | None + """The version of the guardrail.""" + @dataclass(kw_only=True) class DeleteGuardrailOutput(_SerdeShape): """Dataclass for DeleteGuardrailOutput structure.""" @@ -4270,7 +6083,13 @@ class DeleteGuardrailOutput(_SerdeShape): class DeleteImportedModelInput(_SerdeShape): """Dataclass for DeleteImportedModelInput structure.""" - model_identifier: str | None = ... + model_identifier: str | None = ... + """Name of the imported model to delete.""" + +class DeleteImportedModelInputDict(TypedDict, total=False): + """Dictionary form of `DeleteImportedModelInput`.""" + + model_identifier: Required[str] """Name of the imported model to delete.""" @dataclass(kw_only=True) @@ -4295,6 +6114,15 @@ class DeleteInferenceProfileInput(_SerdeShape): profile to delete. """ +class DeleteInferenceProfileInputDict(TypedDict, total=False): + """Dictionary form of `DeleteInferenceProfileInput`.""" + + inference_profile_identifier: Required[str] + """ + The Amazon Resource Name (ARN) or ID of the application inference + profile to delete. + """ + @dataclass(kw_only=True) class DeleteInferenceProfileOutput(_SerdeShape): """Dataclass for DeleteInferenceProfileOutput structure.""" @@ -4314,6 +6142,12 @@ class DeleteMarketplaceModelEndpointInput(_SerdeShape): endpoint_arn: str | None = ... """The Amazon Resource Name (ARN) of the endpoint you want to delete.""" +class DeleteMarketplaceModelEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMarketplaceModelEndpointInput`.""" + + endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the endpoint you want to delete.""" + @dataclass(kw_only=True) class DeleteMarketplaceModelEndpointOutput(_SerdeShape): """Dataclass for DeleteMarketplaceModelEndpointOutput structure.""" @@ -4330,6 +6164,9 @@ class DeleteMarketplaceModelEndpointOutput(_SerdeShape): class DeleteModelInvocationLoggingConfigurationInput(_SerdeShape): """Dataclass for DeleteModelInvocationLoggingConfigurationInput structure.""" +class DeleteModelInvocationLoggingConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteModelInvocationLoggingConfigurationInput`.""" + @dataclass(kw_only=True) class DeleteModelInvocationLoggingConfigurationOutput(_SerdeShape): """Dataclass for DeleteModelInvocationLoggingConfigurationOutput structure.""" @@ -4349,6 +6186,12 @@ class DeletePromptRouterInput(_SerdeShape): prompt_router_arn: str | None = ... """The Amazon Resource Name (ARN) of the prompt router to delete.""" +class DeletePromptRouterInputDict(TypedDict, total=False): + """Dictionary form of `DeletePromptRouterInput`.""" + + prompt_router_arn: Required[str] + """The Amazon Resource Name (ARN) of the prompt router to delete.""" + @dataclass(kw_only=True) class DeletePromptRouterOutput(_SerdeShape): """Dataclass for DeletePromptRouterOutput structure.""" @@ -4368,6 +6211,12 @@ class DeleteProvisionedModelThroughputInput(_SerdeShape): provisioned_model_id: str | None = ... """The Amazon Resource Name (ARN) or name of the Provisioned Throughput.""" +class DeleteProvisionedModelThroughputInputDict(TypedDict, total=False): + """Dictionary form of `DeleteProvisionedModelThroughputInput`.""" + + provisioned_model_id: Required[str] + """The Amazon Resource Name (ARN) or name of the Provisioned Throughput.""" + @dataclass(kw_only=True) class DeleteProvisionedModelThroughputOutput(_SerdeShape): """Dataclass for DeleteProvisionedModelThroughputOutput structure.""" @@ -4387,6 +6236,12 @@ class DeleteResourcePolicyInput(_SerdeShape): resource_arn: str | None = ... """The ARN of the Bedrock resource to which this resource policy applies.""" +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + resource_arn: Required[str] + """The ARN of the Bedrock resource to which this resource policy applies.""" + @dataclass(kw_only=True) class DeleteResourcePolicyOutput(_SerdeShape): """Dataclass for DeleteResourcePolicyOutput structure.""" @@ -4406,6 +6261,12 @@ class DeregisterMarketplaceModelEndpointInput(_SerdeShape): endpoint_arn: str | None = ... """The Amazon Resource Name (ARN) of the endpoint you want to deregister.""" +class DeregisterMarketplaceModelEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterMarketplaceModelEndpointInput`.""" + + endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the endpoint you want to deregister.""" + @dataclass(kw_only=True) class DeregisterMarketplaceModelEndpointOutput(_SerdeShape): """Dataclass for DeregisterMarketplaceModelEndpointOutput structure.""" @@ -4441,6 +6302,12 @@ class DistillationConfig(_SerdeShape): teacher_model_config: TeacherModelConfig """The teacher model configuration.""" +class DistillationConfigDict(TypedDict, total=False): + """Dictionary form of `DistillationConfig`.""" + + teacher_model_config: Required[TeacherModelConfig | TeacherModelConfigDict] + """The teacher model configuration.""" + @dataclass class EndpointConfigSageMaker(_SerdeShape): """The configuration specific to Amazon SageMaker for the endpoint.""" @@ -4463,6 +6330,13 @@ EndpointConfig = Union[EndpointConfigSageMaker | EndpointConfigUnknown] class _EndpointConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EndpointConfig: ... +class EndpointConfigSageMakerDict(TypedDict): + sage_maker: SageMakerEndpoint | SageMakerEndpointDict + """The configuration specific to Amazon SageMaker for the endpoint.""" + +EndpointConfigDict = Union[EndpointConfigSageMakerDict] +"""Dictionary form of `EndpointConfig`, setting exactly one variant.""" + class EntitlementAvailability(UnknownEnumMixin, StrEnum): AVAILABLE = "AVAILABLE" NOT_AVAILABLE = "NOT_AVAILABLE" @@ -4481,7 +6355,7 @@ class EvaluationBedrockModel(_SerdeShape): The `inferenceParams` are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, `"temperature":"0.25"` key value pair would need to be - formatted as `\"temperature\":\"0.25\"` to successfully accepted in the + formatted as `\\"temperature\\":\\"0.25\\"` to successfully accepted in the request. """ @@ -4495,6 +6369,19 @@ class EvaluationBedrockModel(_SerdeShape): performance_config: PerformanceConfiguration | None = ... """Specifies performance settings for the model or inference profile.""" +class EvaluationBedrockModelDict(TypedDict, total=False): + """Dictionary form of `EvaluationBedrockModel`.""" + + model_identifier: Required[str] + """The ARN of the Amazon Bedrock model or inference profile specified.""" + inference_params: str | None + """ + Each Amazon Bedrock support different inference parameters that change + how the model behaves during inference. + """ + performance_config: PerformanceConfiguration | PerformanceConfigurationDict | None + """Specifies performance settings for the model or inference profile.""" + @dataclass class EvaluationConfigAutomated(_SerdeShape): """ @@ -4534,6 +6421,23 @@ evaluation job. class _EvaluationConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluationConfig: ... +class EvaluationConfigAutomatedDict(TypedDict): + automated: AutomatedEvaluationConfig | AutomatedEvaluationConfigDict + """ + Contains the configuration details of an automated evaluation job that + computes metrics. + """ + +class EvaluationConfigHumanDict(TypedDict): + human: HumanEvaluationConfig | HumanEvaluationConfigDict + """ + Contains the configuration details of an evaluation job that uses human + workers. + """ + +EvaluationConfigDict = Union[EvaluationConfigAutomatedDict | EvaluationConfigHumanDict] +"""Dictionary form of `EvaluationConfig`, setting exactly one variant.""" + @dataclass(kw_only=True) class EvaluationDataset(_SerdeShape): """ @@ -4555,6 +6459,23 @@ class EvaluationDataset(_SerdeShape): where the prompt dataset is saved. """ +class EvaluationDatasetDict(TypedDict, total=False): + """Dictionary form of `EvaluationDataset`.""" + + name: Required[str] + """ + Used to specify supported built-in prompt datasets. Valid values are + `Builtin.Bold`, `Builtin.BoolQ`, `Builtin.NaturalQuestions`, + `Builtin.Gigaword`, `Builtin.RealToxicityPrompts`, `Builtin.TriviaQA`, + `Builtin.T-Rex`, `Builtin.WomensEcommerceClothingReviews` and + `Builtin.Wikitext2`. + """ + dataset_location: EvaluationDatasetLocation | EvaluationDatasetLocationDict | None + """ + For custom prompt datasets, you must specify the location in Amazon S3 + where the prompt dataset is saved. + """ + @dataclass class EvaluationDatasetLocationS3Uri(_SerdeShape): """The S3 URI of the S3 bucket specified in the job.""" @@ -4581,6 +6502,16 @@ class _EvaluationDatasetLocationDeserializer: self, deserializer: ShapeDeserializer ) -> EvaluationDatasetLocation: ... +class EvaluationDatasetLocationS3UriDict(TypedDict): + s3_uri: str + """The S3 URI of the S3 bucket specified in the job.""" + +EvaluationDatasetLocationDict = Union[EvaluationDatasetLocationS3UriDict] +""" +Dictionary form of `EvaluationDatasetLocation`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class EvaluationDatasetMetricConfig(_SerdeShape): """ @@ -4627,6 +6558,48 @@ class EvaluationDatasetMetricConfig(_SerdeShape): the `name` parameter specified in `HumanEvaluationCustomMetric`. """ +class EvaluationDatasetMetricConfigDict(TypedDict, total=False): + """Dictionary form of `EvaluationDatasetMetricConfig`.""" + + task_type: Required[str] + """ + The the type of task you want to evaluate for your evaluation job. This + applies only to model evaluation jobs and is ignored for knowledge base + evaluation jobs. + """ + dataset: Required[EvaluationDataset | EvaluationDatasetDict] + """Specifies the prompt dataset.""" + metric_names: Required[Sequence[str]] + """ + The names of the metrics you want to use for your evaluation job. + + For knowledge base evaluation jobs that evaluate retrieval only, valid + values are \"`Builtin.ContextRelevance`\", + \"`Builtin.ContextCoverage`\". + + For knowledge base evaluation jobs that evaluate retrieval with response + generation, valid values are \"`Builtin.Correctness`\", + \"`Builtin.Completeness`\", \"`Builtin.Helpfulness`\", + \"`Builtin.LogicalCoherence`\", \"`Builtin.Faithfulness`\", + \"`Builtin.Harmfulness`\", \"`Builtin.Stereotyping`\", + \"`Builtin.Refusal`\". + + For automated model evaluation jobs, valid values are + \"`Builtin.Accuracy`\", \"`Builtin.Robustness`\", and + \"`Builtin.Toxicity`\". In model evaluation jobs that use a LLM as judge + you can specify \"`Builtin.Correctness`\", \"`Builtin.Completeness"`, + \"`Builtin.Faithfulness"`, \"`Builtin.Helpfulness`\", + \"`Builtin.Coherence`\", \"`Builtin.Relevance`\", + \"`Builtin.FollowingInstructions`\", + \"`Builtin.ProfessionalStyleAndTone`\", You can also specify the + following responsible AI related metrics only for model evaluation job + that use a LLM as judge \"`Builtin.Harmfulness`\", + \"`Builtin.Stereotyping`\", and \"`Builtin.Refusal`\". + + For human-based model evaluation jobs, the list of strings must match + the `name` parameter specified in `HumanEvaluationCustomMetric`. + """ + @dataclass class EvaluationInferenceConfigModels(_SerdeShape): """Specifies the inference models.""" @@ -4672,6 +6645,26 @@ class _EvaluationInferenceConfigDeserializer: self, deserializer: ShapeDeserializer ) -> EvaluationInferenceConfig: ... +class EvaluationInferenceConfigModelsDict(TypedDict): + models: Sequence[EvaluationModelConfig | EvaluationModelConfigDict] + """Specifies the inference models.""" + +class EvaluationInferenceConfigRagConfigsDict(TypedDict): + rag_configs: Sequence[RAGConfig | RAGConfigDict] + """ + Contains the configuration details of the inference for a knowledge base + evaluation job, including either the retrieval only configuration or the + retrieval with response generation configuration. + """ + +EvaluationInferenceConfigDict = Union[ + EvaluationInferenceConfigModelsDict | EvaluationInferenceConfigRagConfigsDict +] +""" +Dictionary form of `EvaluationInferenceConfig`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class EvaluationInferenceConfigSummary(_SerdeShape): """ @@ -4744,6 +6737,31 @@ EvaluationModelConfig = Union[ class _EvaluationModelConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluationModelConfig: ... +class EvaluationModelConfigBedrockModelDict(TypedDict): + bedrock_model: EvaluationBedrockModel | EvaluationBedrockModelDict + """ + Defines the Amazon Bedrock model or inference profile and inference + parameters you want used. + """ + +class EvaluationModelConfigPrecomputedInferenceSourceDict(TypedDict): + precomputed_inference_source: ( + EvaluationPrecomputedInferenceSource | EvaluationPrecomputedInferenceSourceDict + ) + """ + Defines the model used to generate inference response data for a model + evaluation job where you provide your own inference response data. + """ + +EvaluationModelConfigDict = Union[ + EvaluationModelConfigBedrockModelDict + | EvaluationModelConfigPrecomputedInferenceSourceDict +] +""" +Dictionary form of `EvaluationModelConfig`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class EvaluationModelConfigSummary(_SerdeShape): """ @@ -4774,6 +6792,12 @@ class EvaluationOutputDataConfig(_SerdeShape): s3_uri: str """The Amazon S3 URI where the results of the evaluation job are saved.""" +class EvaluationOutputDataConfigDict(TypedDict, total=False): + """Dictionary form of `EvaluationOutputDataConfig`.""" + + s3_uri: Required[str] + """The Amazon S3 URI where the results of the evaluation job are saved.""" + @dataclass(kw_only=True) class EvaluationPrecomputedInferenceSource(_SerdeShape): """ @@ -4787,6 +6811,15 @@ class EvaluationPrecomputedInferenceSource(_SerdeShape): provide your own inference response data. """ +class EvaluationPrecomputedInferenceSourceDict(TypedDict, total=False): + """Dictionary form of `EvaluationPrecomputedInferenceSource`.""" + + inference_source_identifier: Required[str] + """ + A label that identifies a model used in a model evaluation job where you + provide your own inference response data. + """ + @dataclass class EvaluationPrecomputedRagSourceConfigRetrieveSourceConfig(_SerdeShape): """ @@ -4830,6 +6863,37 @@ class _EvaluationPrecomputedRagSourceConfigDeserializer: self, deserializer: ShapeDeserializer ) -> EvaluationPrecomputedRagSourceConfig: ... +class EvaluationPrecomputedRagSourceConfigRetrieveSourceConfigDict(TypedDict): + retrieve_source_config: ( + EvaluationPrecomputedRetrieveSourceConfig + | EvaluationPrecomputedRetrieveSourceConfigDict + ) + """ + A summary of a RAG source used for a retrieve-only Knowledge Base + evaluation job where you provide your own inference response data. + """ + +class EvaluationPrecomputedRagSourceConfigRetrieveAndGenerateSourceConfigDict( + TypedDict +): + retrieve_and_generate_source_config: ( + EvaluationPrecomputedRetrieveAndGenerateSourceConfig + | EvaluationPrecomputedRetrieveAndGenerateSourceConfigDict + ) + """ + A summary of a RAG source used for a retrieve-and-generate Knowledge + Base evaluation job where you provide your own inference response data. + """ + +EvaluationPrecomputedRagSourceConfigDict = Union[ + EvaluationPrecomputedRagSourceConfigRetrieveSourceConfigDict + | EvaluationPrecomputedRagSourceConfigRetrieveAndGenerateSourceConfigDict +] +""" +Dictionary form of `EvaluationPrecomputedRagSourceConfig`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class EvaluationPrecomputedRetrieveAndGenerateSourceConfig(_SerdeShape): """ @@ -4844,6 +6908,16 @@ class EvaluationPrecomputedRetrieveAndGenerateSourceConfig(_SerdeShape): response data. """ +class EvaluationPrecomputedRetrieveAndGenerateSourceConfigDict(TypedDict, total=False): + """Dictionary form of `EvaluationPrecomputedRetrieveAndGenerateSourceConfig`.""" + + rag_source_identifier: Required[str] + """ + A label that identifies the RAG source used for a retrieve-and-generate + Knowledge Base evaluation job where you provide your own inference + response data. + """ + @dataclass(kw_only=True) class EvaluationPrecomputedRetrieveSourceConfig(_SerdeShape): """ @@ -4858,6 +6932,16 @@ class EvaluationPrecomputedRetrieveSourceConfig(_SerdeShape): response data. """ +class EvaluationPrecomputedRetrieveSourceConfigDict(TypedDict, total=False): + """Dictionary form of `EvaluationPrecomputedRetrieveSourceConfig`.""" + + rag_source_identifier: Required[str] + """ + A label that identifies the RAG source used for a retrieve-only + Knowledge Base evaluation job where you provide your own inference + response data. + """ + @dataclass(kw_only=True) class EvaluationRagConfigSummary(_SerdeShape): """ @@ -4966,6 +7050,22 @@ This model computes all evaluation related metrics. class _EvaluatorModelConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> EvaluatorModelConfig: ... +class EvaluatorModelConfigBedrockEvaluatorModelsDict(TypedDict): + bedrock_evaluator_models: Sequence[ + BedrockEvaluatorModel | BedrockEvaluatorModelDict + ] + """ + The evaluator model used in knowledge base evaluation job or in model + evaluation job that use a model as judge. This model computes all + evaluation related metrics. + """ + +EvaluatorModelConfigDict = Union[EvaluatorModelConfigBedrockEvaluatorModelsDict] +""" +Dictionary form of `EvaluatorModelConfig`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ExportAutomatedReasoningPolicyVersionInput(_SerdeShape): """Dataclass for ExportAutomatedReasoningPolicyVersionInput structure.""" @@ -4977,6 +7077,16 @@ class ExportAutomatedReasoningPolicyVersionInput(_SerdeShape): versioned ARN for a specific policy version. """ +class ExportAutomatedReasoningPolicyVersionInputDict(TypedDict, total=False): + """Dictionary form of `ExportAutomatedReasoningPolicyVersionInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy to + export. Can be either the unversioned ARN for the draft policy or a + versioned ARN for a specific policy version. + """ + @dataclass(kw_only=True) class ExportAutomatedReasoningPolicyVersionOutput(_SerdeShape): """Dataclass for ExportAutomatedReasoningPolicyVersionOutput structure.""" @@ -5011,6 +7121,19 @@ class ExternalSource(_SerdeShape): object. """ +class ExternalSourceDict(TypedDict, total=False): + """Dictionary form of `ExternalSource`.""" + + source_type: Required[str] + """The source type of the external source wrapper object.""" + s3_location: S3ObjectDoc | S3ObjectDocDict | None + """The S3 location of the external source wrapper object.""" + byte_content: ByteContentDoc | ByteContentDocDict | None + """ + The identifier, content type, and data of the external source wrapper + object. + """ + @dataclass(kw_only=True) class ExternalSourcesGenerationConfiguration(_SerdeShape): """ @@ -5037,6 +7160,28 @@ class ExternalSourcesGenerationConfiguration(_SerdeShape): custom model parameters specific to the language model being used. """ +class ExternalSourcesGenerationConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExternalSourcesGenerationConfiguration`.""" + + prompt_template: PromptTemplate | PromptTemplateDict | None + """ + Contains the template for the prompt for the external source wrapper + object. + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """Configuration details for the guardrail.""" + kb_inference_config: KbInferenceConfig | KbInferenceConfigDict | None + """ + Configuration details for inference when using `RetrieveAndGenerate` to + generate responses while using an external source. + """ + additional_model_request_fields: Mapping[str, Document] | None + """ + Additional model parameters and their corresponding values not included + in the text inference configuration for an external source. Takes in + custom model parameters specific to the language model being used. + """ + @dataclass(kw_only=True) class ExternalSourcesRetrieveAndGenerateConfiguration(_SerdeShape): """ @@ -5061,6 +7206,30 @@ class ExternalSourcesRetrieveAndGenerateConfiguration(_SerdeShape): retrieved text chunks. """ +class ExternalSourcesRetrieveAndGenerateConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExternalSourcesRetrieveAndGenerateConfiguration`.""" + + model_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the foundation model or [inference + profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) + used to generate responses. + """ + sources: Required[Sequence[ExternalSource | ExternalSourceDict]] + """ + The document for the external source wrapper object in the + `retrieveAndGenerate` function. + """ + generation_configuration: ( + ExternalSourcesGenerationConfiguration + | ExternalSourcesGenerationConfigurationDict + | None + ) + """ + Contains configurations details for response generation based on + retrieved text chunks. + """ + class ExternalSourceType(UnknownEnumMixin, StrEnum): S3 = "S3" BYTE_CONTENT = "BYTE_CONTENT" @@ -5077,6 +7246,12 @@ class FieldForReranking(_SerdeShape): field_name: str """The name of the metadata field to be used during the reranking process.""" +class FieldForRerankingDict(TypedDict, total=False): + """Dictionary form of `FieldForReranking`.""" + + field_name: Required[str] + """The name of the metadata field to be used during the reranking process.""" + @dataclass(kw_only=True) class FilterAttribute(_SerdeShape): """ @@ -5093,6 +7268,17 @@ class FilterAttribute(_SerdeShape): value: Document """The value of the metadata attribute/field.""" +class FilterAttributeDict(TypedDict, total=False): + """Dictionary form of `FilterAttribute`.""" + + key: Required[str] + """ + The name of metadata attribute/field, which must match the name in your + data source/document metadata. + """ + value: Required[Document] + """The value of the metadata attribute/field.""" + class FineTuningJobStatus(UnknownEnumMixin, StrEnum): IN_PROGRESS = "InProgress" COMPLETED = "Completed" @@ -5212,10 +7398,36 @@ class GenerationConfiguration(_SerdeShape): used. """ +class GenerationConfigurationDict(TypedDict, total=False): + """Dictionary form of `GenerationConfiguration`.""" + + prompt_template: PromptTemplate | PromptTemplateDict | None + """ + Contains the template for the prompt that's sent to the model for + response generation. + """ + guardrail_configuration: GuardrailConfiguration | GuardrailConfigurationDict | None + """Contains configuration details for the guardrail.""" + kb_inference_config: KbInferenceConfig | KbInferenceConfigDict | None + """ + Contains configuration details for inference for knowledge base + retrieval and response generation. + """ + additional_model_request_fields: Mapping[str, Document] | None + """ + Additional model parameters and corresponding values not included in the + `textInferenceConfig` structure for a knowledge base. This allows you to + provide custom model parameters specific to the language model being + used. + """ + @dataclass(kw_only=True) class GetAccountDataRetentionInput(_SerdeShape): """Dataclass for GetAccountDataRetentionInput structure.""" +class GetAccountDataRetentionInputDict(TypedDict, total=False): + """Dictionary form of `GetAccountDataRetentionInput`.""" + @dataclass(kw_only=True) class GetAccountDataRetentionOutput(_SerdeShape): """Dataclass for GetAccountDataRetentionOutput structure.""" @@ -5239,6 +7451,12 @@ class GetAdvancedPromptOptimizationJobInput(_SerdeShape): job_identifier: str | None = ... """The ARN or ID of the advanced prompt optimization job.""" +class GetAdvancedPromptOptimizationJobInputDict(TypedDict, total=False): + """Dictionary form of `GetAdvancedPromptOptimizationJobInput`.""" + + job_identifier: Required[str] + """The ARN or ID of the advanced prompt optimization job.""" + @dataclass(kw_only=True) class GetAdvancedPromptOptimizationJobOutput(_SerdeShape): """Get Advanced Prompt Optimization Job Response""" diff --git a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_1.pyi b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_1.pyi index 538831196..11ad54d5a 100644 --- a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_1.pyi +++ b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_1.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,6 +13,7 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( AccountEnforcedGuardrailInferenceInputConfiguration, + AccountEnforcedGuardrailInferenceInputConfigurationDict, AccountEnforcedGuardrailOutputConfiguration, AdvancedPromptOptimizationJobSummary, AgreementAvailability, @@ -23,6 +25,7 @@ from ..models import ( AutomatedReasoningPolicyTestCase, AutomatedReasoningPolicyTestResult, CloudWatchConfig, + CloudWatchConfigDict, CustomModelDeploymentSummary, CustomModelDeploymentUpdateDetails, CustomModelSummary, @@ -32,27 +35,36 @@ from ..models import ( EndpointConfig, EvaluationConfig, EvaluationDatasetMetricConfig, + EvaluationDatasetMetricConfigDict, EvaluationInferenceConfig, EvaluationOutputDataConfig, EvaluationPrecomputedRagSourceConfig, + EvaluationPrecomputedRagSourceConfigDict, EvaluationSummary, ExternalSourcesRetrieveAndGenerateConfiguration, + ExternalSourcesRetrieveAndGenerateConfigurationDict, FieldForReranking, + FieldForRerankingDict, FilterAttribute, + FilterAttributeDict, FoundationModelDetails, FoundationModelSummary, GenerationConfiguration, + GenerationConfigurationDict, ServiceError, StatusDetails, Tag, TermDetails, TextInferenceConfig, + TextInferenceConfigDict, TrainingDataConfig, TrainingMetrics, ValidationDataConfig, ValidatorMetric, VectorSearchRerankingConfiguration, + VectorSearchRerankingConfigurationDict, VpcConfig, + VpcConfigDict, _SerdeShape, ) @@ -71,6 +83,20 @@ class GetAutomatedReasoningPolicyAnnotationsInput(_SerdeShape): to retrieve. """ +class GetAutomatedReasoningPolicyAnnotationsInputDict(TypedDict, total=False): + """Dictionary form of `GetAutomatedReasoningPolicyAnnotationsInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy whose + annotations you want to retrieve. + """ + build_workflow_id: Required[str] + """ + The unique identifier of the build workflow whose annotations you want + to retrieve. + """ + @dataclass(kw_only=True) class GetAutomatedReasoningPolicyAnnotationsOutput(_SerdeShape): """Dataclass for GetAutomatedReasoningPolicyAnnotationsOutput structure.""" @@ -114,6 +140,17 @@ class GetAutomatedReasoningPolicyBuildWorkflowInput(_SerdeShape): build_workflow_id: str | None = ... """The unique identifier of the build workflow to retrieve.""" +class GetAutomatedReasoningPolicyBuildWorkflowInputDict(TypedDict, total=False): + """Dictionary form of `GetAutomatedReasoningPolicyBuildWorkflowInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy whose + build workflow you want to retrieve. + """ + build_workflow_id: Required[str] + """The unique identifier of the build workflow to retrieve.""" + @dataclass(kw_only=True) class GetAutomatedReasoningPolicyBuildWorkflowOutput(_SerdeShape): """Dataclass for GetAutomatedReasoningPolicyBuildWorkflowOutput structure.""" @@ -187,6 +224,35 @@ class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput(_SerdeShape): in the workflow. The asset ID can be obtained from the asset manifest. """ +class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict( + TypedDict, total=False +): + """Dictionary form of `GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy whose + build workflow assets you want to retrieve. + """ + build_workflow_id: Required[str] + """ + The unique identifier of the build workflow whose result assets you want + to retrieve. + """ + asset_type: Required[str] + """ + The type of asset to retrieve (e.g., BUILD_LOG, QUALITY_REPORT, + POLICY_DEFINITION, GENERATED_TEST_CASES, POLICY_SCENARIOS, + FIDELITY_REPORT, ASSET_MANIFEST, SOURCE_DOCUMENT). + """ + asset_id: str | None + """ + The unique identifier of the specific asset to retrieve when multiple + assets of the same type exist. This is required when retrieving + SOURCE_DOCUMENT assets, as multiple source documents may have been used + in the workflow. The asset ID can be obtained from the asset manifest. + """ + @dataclass(kw_only=True) class GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput(_SerdeShape): """ @@ -223,6 +289,16 @@ class GetAutomatedReasoningPolicyInput(_SerdeShape): ARN for a specific policy version. """ +class GetAutomatedReasoningPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetAutomatedReasoningPolicyInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy to + retrieve. Can be either the unversioned ARN for the draft policy or an + ARN for a specific policy version. + """ + @dataclass(kw_only=True) class GetAutomatedReasoningPolicyNextScenarioInput(_SerdeShape): """Dataclass for GetAutomatedReasoningPolicyNextScenarioInput structure.""" @@ -238,6 +314,20 @@ class GetAutomatedReasoningPolicyNextScenarioInput(_SerdeShape): scenarios. """ +class GetAutomatedReasoningPolicyNextScenarioInputDict(TypedDict, total=False): + """Dictionary form of `GetAutomatedReasoningPolicyNextScenarioInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy for + which you want to get the next test scenario. + """ + build_workflow_id: Required[str] + """ + The unique identifier of the build workflow associated with the test + scenarios. + """ + @dataclass(kw_only=True) class GetAutomatedReasoningPolicyNextScenarioOutput(_SerdeShape): """Dataclass for GetAutomatedReasoningPolicyNextScenarioOutput structure.""" @@ -305,6 +395,17 @@ class GetAutomatedReasoningPolicyTestCaseInput(_SerdeShape): test_case_id: str | None = ... """The unique identifier of the test to retrieve.""" +class GetAutomatedReasoningPolicyTestCaseInputDict(TypedDict, total=False): + """Dictionary form of `GetAutomatedReasoningPolicyTestCaseInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy that + contains the test. + """ + test_case_id: Required[str] + """The unique identifier of the test to retrieve.""" + @dataclass(kw_only=True) class GetAutomatedReasoningPolicyTestCaseOutput(_SerdeShape): """Dataclass for GetAutomatedReasoningPolicyTestCaseOutput structure.""" @@ -338,6 +439,19 @@ class GetAutomatedReasoningPolicyTestResultInput(_SerdeShape): test_case_id: str | None = ... """The unique identifier of the test for which to retrieve results.""" +class GetAutomatedReasoningPolicyTestResultInputDict(TypedDict, total=False): + """Dictionary form of `GetAutomatedReasoningPolicyTestResultInput`.""" + + policy_arn: Required[str] + """The Amazon Resource Name (ARN) of the Automated Reasoning policy.""" + build_workflow_id: Required[str] + """ + The build workflow identifier. The build workflow must display a + `COMPLETED` status to get results. + """ + test_case_id: Required[str] + """The unique identifier of the test for which to retrieve results.""" + @dataclass(kw_only=True) class GetAutomatedReasoningPolicyTestResultOutput(_SerdeShape): """Dataclass for GetAutomatedReasoningPolicyTestResultOutput structure.""" @@ -365,6 +479,15 @@ class GetCustomModelDeploymentInput(_SerdeShape): retrieve information about. """ +class GetCustomModelDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `GetCustomModelDeploymentInput`.""" + + custom_model_deployment_identifier: Required[str] + """ + The Amazon Resource Name (ARN) or name of the custom model deployment to + retrieve information about. + """ + @dataclass(kw_only=True) class GetCustomModelDeploymentOutput(_SerdeShape): """Dataclass for GetCustomModelDeploymentOutput structure.""" @@ -421,6 +544,12 @@ class GetCustomModelInput(_SerdeShape): model_identifier: str | None = ... """Name or Amazon Resource Name (ARN) of the custom model.""" +class GetCustomModelInputDict(TypedDict, total=False): + """Dictionary form of `GetCustomModelInput`.""" + + model_identifier: Required[str] + """Name or Amazon Resource Name (ARN) of the custom model.""" + @dataclass(kw_only=True) class GetCustomModelOutput(_SerdeShape): """Dataclass for GetCustomModelOutput structure.""" @@ -499,6 +628,15 @@ class GetEvaluationJobInput(_SerdeShape): information on. """ +class GetEvaluationJobInputDict(TypedDict, total=False): + """Dictionary form of `GetEvaluationJobInput`.""" + + job_identifier: Required[str] + """ + The Amazon Resource Name (ARN) of the evaluation job you want get + information on. + """ + @dataclass(kw_only=True) class GetEvaluationJobOutput(_SerdeShape): """Dataclass for GetEvaluationJobOutput structure.""" @@ -564,6 +702,12 @@ class GetFoundationModelAvailabilityInput(_SerdeShape): model_id: str | None = ... """The model Id of the foundation model.""" +class GetFoundationModelAvailabilityInputDict(TypedDict, total=False): + """Dictionary form of `GetFoundationModelAvailabilityInput`.""" + + model_id: Required[str] + """The model Id of the foundation model.""" + @dataclass(kw_only=True) class GetFoundationModelAvailabilityOutput(_SerdeShape): """Dataclass for GetFoundationModelAvailabilityOutput structure.""" @@ -593,6 +737,12 @@ class GetFoundationModelInput(_SerdeShape): model_identifier: str | None = ... """The model identifier.""" +class GetFoundationModelInputDict(TypedDict, total=False): + """Dictionary form of `GetFoundationModelInput`.""" + + model_identifier: Required[str] + """The model identifier.""" + @dataclass(kw_only=True) class GetFoundationModelOutput(_SerdeShape): """Dataclass for GetFoundationModelOutput structure.""" @@ -622,6 +772,20 @@ class GetGuardrailInput(_SerdeShape): specify a version, the response returns details for the `DRAFT` version. """ +class GetGuardrailInputDict(TypedDict, total=False): + """Dictionary form of `GetGuardrailInput`.""" + + guardrail_identifier: Required[str] + """ + The unique identifier of the guardrail for which to get details. This + can be an ID or the ARN. + """ + guardrail_version: str | None + """ + The version of the guardrail for which to get details. If you don't + specify a version, the response returns details for the `DRAFT` version. + """ + @dataclass(kw_only=True) class GetGuardrailOutput(_SerdeShape): """Dataclass for GetGuardrailOutput structure.""" @@ -694,6 +858,12 @@ class GetImportedModelInput(_SerdeShape): model_identifier: str | None = ... """Name or Amazon Resource Name (ARN) of the imported model.""" +class GetImportedModelInputDict(TypedDict, total=False): + """Dictionary form of `GetImportedModelInput`.""" + + model_identifier: Required[str] + """Name or Amazon Resource Name (ARN) of the imported model.""" + @dataclass(kw_only=True) class GetImportedModelOutput(_SerdeShape): """Dataclass for GetImportedModelOutput structure.""" @@ -736,6 +906,12 @@ class GetInferenceProfileInput(_SerdeShape): inference_profile_identifier: str | None = ... """The ID or Amazon Resource Name (ARN) of the inference profile.""" +class GetInferenceProfileInputDict(TypedDict, total=False): + """Dictionary form of `GetInferenceProfileInput`.""" + + inference_profile_identifier: Required[str] + """The ID or Amazon Resource Name (ARN) of the inference profile.""" + @dataclass(kw_only=True) class GetInferenceProfileOutput(_SerdeShape): """Dataclass for GetInferenceProfileOutput structure.""" @@ -790,6 +966,15 @@ class GetMarketplaceModelEndpointInput(_SerdeShape): information about. """ +class GetMarketplaceModelEndpointInputDict(TypedDict, total=False): + """Dictionary form of `GetMarketplaceModelEndpointInput`.""" + + endpoint_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the endpoint you want to get + information about. + """ + @dataclass(kw_only=True) class GetMarketplaceModelEndpointOutput(_SerdeShape): """Dataclass for GetMarketplaceModelEndpointOutput structure.""" @@ -811,6 +996,12 @@ class GetModelCopyJobInput(_SerdeShape): job_arn: str | None = ... """The Amazon Resource Name (ARN) of the model copy job.""" +class GetModelCopyJobInputDict(TypedDict, total=False): + """Dictionary form of `GetModelCopyJobInput`.""" + + job_arn: Required[str] + """The Amazon Resource Name (ARN) of the model copy job.""" + @dataclass(kw_only=True) class GetModelCopyJobOutput(_SerdeShape): """Dataclass for GetModelCopyJobOutput structure.""" @@ -858,6 +1049,12 @@ class GetModelCustomizationJobInput(_SerdeShape): job_identifier: str | None = ... """Identifier for the customization job.""" +class GetModelCustomizationJobInputDict(TypedDict, total=False): + """Dictionary form of `GetModelCustomizationJobInput`.""" + + job_identifier: Required[str] + """Identifier for the customization job.""" + @dataclass(kw_only=True) class GetModelCustomizationJobOutput(_SerdeShape): """Dataclass for GetModelCustomizationJobOutput structure.""" @@ -937,6 +1134,12 @@ class GetModelImportJobInput(_SerdeShape): job_identifier: str | None = ... """The identifier of the import job.""" +class GetModelImportJobInputDict(TypedDict, total=False): + """Dictionary form of `GetModelImportJobInput`.""" + + job_identifier: Required[str] + """The identifier of the import job.""" + @dataclass(kw_only=True) class GetModelImportJobOutput(_SerdeShape): """Dataclass for GetModelImportJobOutput structure.""" @@ -986,6 +1189,12 @@ class GetModelInvocationJobInput(_SerdeShape): job_identifier: str | None = ... """The Amazon Resource Name (ARN) of the batch inference job.""" +class GetModelInvocationJobInputDict(TypedDict, total=False): + """Dictionary form of `GetModelInvocationJobInput`.""" + + job_identifier: Required[str] + """The Amazon Resource Name (ARN) of the batch inference job.""" + @dataclass(kw_only=True) class GetModelInvocationJobOutput(_SerdeShape): """Dataclass for GetModelInvocationJobOutput structure.""" @@ -1115,6 +1324,9 @@ class GetModelInvocationJobOutput(_SerdeShape): class GetModelInvocationLoggingConfigurationInput(_SerdeShape): """Dataclass for GetModelInvocationLoggingConfigurationInput structure.""" +class GetModelInvocationLoggingConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetModelInvocationLoggingConfigurationInput`.""" + @dataclass(kw_only=True) class GetModelInvocationLoggingConfigurationOutput(_SerdeShape): """Dataclass for GetModelInvocationLoggingConfigurationOutput structure.""" @@ -1136,6 +1348,12 @@ class GetPromptRouterInput(_SerdeShape): prompt_router_arn: str | None = ... """The prompt router's ARN""" +class GetPromptRouterInputDict(TypedDict, total=False): + """Dictionary form of `GetPromptRouterInput`.""" + + prompt_router_arn: Required[str] + """The prompt router's ARN""" + @dataclass(kw_only=True) class GetPromptRouterOutput(_SerdeShape): """Dataclass for GetPromptRouterOutput structure.""" @@ -1175,6 +1393,12 @@ class GetProvisionedModelThroughputInput(_SerdeShape): provisioned_model_id: str | None = ... """The Amazon Resource Name (ARN) or name of the Provisioned Throughput.""" +class GetProvisionedModelThroughputInputDict(TypedDict, total=False): + """Dictionary form of `GetProvisionedModelThroughputInput`.""" + + provisioned_model_id: Required[str] + """The Amazon Resource Name (ARN) or name of the Provisioned Throughput.""" + @dataclass(kw_only=True) class GetProvisionedModelThroughputOutput(_SerdeShape): """Dataclass for GetProvisionedModelThroughputOutput structure.""" @@ -1243,6 +1467,12 @@ class GetResourcePolicyInput(_SerdeShape): resource_arn: str | None = ... """The ARN of the Bedrock resource to which this resource policy applies.""" +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + resource_arn: Required[str] + """The ARN of the Bedrock resource to which this resource policy applies.""" + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Dataclass for GetResourcePolicyOutput structure.""" @@ -1261,6 +1491,9 @@ class GetResourcePolicyOutput(_SerdeShape): class GetUseCaseForModelAccessInput(_SerdeShape): """Dataclass for GetUseCaseForModelAccessInput structure.""" +class GetUseCaseForModelAccessInputDict(TypedDict, total=False): + """Dictionary form of `GetUseCaseForModelAccessInput`.""" + @dataclass(kw_only=True) class GetUseCaseForModelAccessOutput(_SerdeShape): """Dataclass for GetUseCaseForModelAccessOutput structure.""" @@ -1304,6 +1537,17 @@ evaluate model responses and provide reward signals. class _GraderConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> GraderConfig: ... +class GraderConfigLambdaGraderDict(TypedDict): + lambda_grader: LambdaGraderConfig | LambdaGraderConfigDict + """ + Configuration for using an AWS Lambda function as the grader for + evaluating model responses and provide reward signals in reinforcement + fine-tuning. + """ + +GraderConfigDict = Union[GraderConfigLambdaGraderDict] +"""Dictionary form of `GraderConfig`, setting exactly one variant.""" + @dataclass(kw_only=True) class GuardrailAutomatedReasoningPolicy(_SerdeShape): """ @@ -1341,6 +1585,20 @@ class GuardrailAutomatedReasoningPolicyConfig(_SerdeShape): Automated Reasoning policy violations. """ +class GuardrailAutomatedReasoningPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailAutomatedReasoningPolicyConfig`.""" + + policies: Required[Sequence[str]] + """ + The list of Automated Reasoning policy ARNs to include in the guardrail + configuration. + """ + confidence_threshold: float | None + """ + The confidence threshold for triggering guardrail actions based on + Automated Reasoning policy violations. + """ + @dataclass(kw_only=True) class GuardrailConfiguration(_SerdeShape): """The configuration details for the guardrail.""" @@ -1350,6 +1608,14 @@ class GuardrailConfiguration(_SerdeShape): guardrail_version: str """The version of the guardrail.""" +class GuardrailConfigurationDict(TypedDict, total=False): + """Dictionary form of `GuardrailConfiguration`.""" + + guardrail_id: Required[str] + """The unique identifier for the guardrail.""" + guardrail_version: Required[str] + """The version of the guardrail.""" + @dataclass(kw_only=True) class GuardrailContentFilter(_SerdeShape): """ @@ -1551,6 +1817,68 @@ class GuardrailContentFilterConfig(_SerdeShape): doesn't appear in the response. """ +class GuardrailContentFilterConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailContentFilterConfig`.""" + + type: Required[str] + """The harmful category that the content filter is applied to.""" + input_strength: Required[str] + """ + The strength of the content filter to apply to prompts. As you increase + the filter strength, the likelihood of filtering harmful content + increases and the probability of seeing harmful content in your + application reduces. + """ + output_strength: Required[str] + """ + The strength of the content filter to apply to model responses. As you + increase the filter strength, the likelihood of filtering harmful + content increases and the probability of seeing harmful content in your + application reduces. + """ + input_modalities: Sequence[str] | None + """ + The input modalities selected for the guardrail content filter + configuration. + """ + output_modalities: Sequence[str] | None + """ + The output modalities selected for the guardrail content filter + configuration. + """ + input_action: str | None + """ + Specifies the action to take when harmful content is detected. Supported + values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + output_action: str | None + """ + Specifies the action to take when harmful content is detected in the + output. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + input_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the input. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + output_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the output. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + @dataclass(kw_only=True) class GuardrailContentFiltersTier(_SerdeShape): """The tier that your guardrail uses for content filters.""" @@ -1591,6 +1919,23 @@ class GuardrailContentFiltersTierConfig(_SerdeShape): inference](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html). """ +class GuardrailContentFiltersTierConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailContentFiltersTierConfig`.""" + + tier_name: Required[str] + """ + The tier that your guardrail uses for content filters. Valid values + include: + + - `CLASSIC` tier -- Provides established guardrails functionality + supporting English, French, and Spanish languages. + + - `STANDARD` tier -- Provides a more robust solution than the `CLASSIC` + tier and has more comprehensive language support. This tier requires + that your guardrail use [cross-Region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html). + """ + class GuardrailContentFiltersTierName(UnknownEnumMixin, StrEnum): CLASSIC = "CLASSIC" STANDARD = "STANDARD" @@ -1634,6 +1979,21 @@ class GuardrailContentPolicyConfig(_SerdeShape): tier_config: GuardrailContentFiltersTierConfig | None = ... """The tier that your guardrail uses for content filters.""" +class GuardrailContentPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailContentPolicyConfig`.""" + + filters_config: Required[ + Sequence[GuardrailContentFilterConfig | GuardrailContentFilterConfigDict] + ] + """ + Contains the type of the content filter and how strongly it should apply + to prompts and model responses. + """ + tier_config: ( + GuardrailContentFiltersTierConfig | GuardrailContentFiltersTierConfigDict | None + ) + """The tier that your guardrail uses for content filters.""" + class GuardrailContextualGroundingAction(UnknownEnumMixin, StrEnum): BLOCK = "BLOCK" NONE = "NONE" @@ -1691,6 +2051,30 @@ class GuardrailContextualGroundingFilterConfig(_SerdeShape): doesn't appear in the response. """ +class GuardrailContextualGroundingFilterConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailContextualGroundingFilterConfig`.""" + + type: Required[str] + """The filter details for the guardrails contextual grounding filter.""" + threshold: Required[float] + """The threshold details for the guardrails contextual grounding filter.""" + action: str | None + """ + Specifies the action to take when content fails the contextual grounding + evaluation. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + enabled: bool | None + """ + Specifies whether to enable contextual grounding evaluation. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + class GuardrailContextualGroundingFilterType(UnknownEnumMixin, StrEnum): GROUNDING = "GROUNDING" RELEVANCE = "RELEVANCE" @@ -1719,6 +2103,26 @@ class GuardrailContextualGroundingPolicyConfig(_SerdeShape): tier_config: GuardrailContextualGroundingTierConfig | None = ... """The tier that your guardrail uses for contextual grounding.""" +class GuardrailContextualGroundingPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailContextualGroundingPolicyConfig`.""" + + filters_config: Required[ + Sequence[ + GuardrailContextualGroundingFilterConfig + | GuardrailContextualGroundingFilterConfigDict + ] + ] + """ + The filter configuration details for the guardrails contextual grounding + policy. + """ + tier_config: ( + GuardrailContextualGroundingTierConfig + | GuardrailContextualGroundingTierConfigDict + | None + ) + """The tier that your guardrail uses for contextual grounding.""" + @dataclass(kw_only=True) class GuardrailContextualGroundingTier(_SerdeShape): """ @@ -1763,6 +2167,24 @@ class GuardrailContextualGroundingTierConfig(_SerdeShape): inference](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html). """ +class GuardrailContextualGroundingTierConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailContextualGroundingTierConfig`.""" + + tier_name: Required[str] + """ + The tier that your guardrail uses for contextual grounding. Valid values + include: + + - `CLASSIC` tier -- Provides established contextual grounding + functionality supporting English, French, and Spanish languages. + + - `STANDARD` tier -- Provides a more robust solution than the `CLASSIC` + tier, with support for reasoning, conversational content and more + comprehensive language support. This tier requires that your guardrail + use [cross-Region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html). + """ + class GuardrailContextualGroundingTierName(UnknownEnumMixin, StrEnum): CLASSIC = "CLASSIC" STANDARD = "STANDARD" @@ -1789,6 +2211,18 @@ class GuardrailCrossRegionConfig(_SerdeShape): Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html). """ +class GuardrailCrossRegionConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailCrossRegionConfig`.""" + + guardrail_profile_identifier: Required[str] + """ + The ID or Amazon Resource Name (ARN) of the guardrail profile that your + guardrail is using. Guardrail profile availability depends on your + current Amazon Web Services Region. For more information, see the + [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html). + """ + @dataclass(kw_only=True) class GuardrailCrossRegionDetails(_SerdeShape): """ @@ -1902,6 +2336,44 @@ class GuardrailManagedWordsConfig(_SerdeShape): doesn't appear in the response. """ +class GuardrailManagedWordsConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailManagedWordsConfig`.""" + + type: Required[str] + """The managed word type to configure for the guardrail.""" + input_action: str | None + """ + Specifies the action to take when harmful content is detected in the + input. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + output_action: str | None + """ + Specifies the action to take when harmful content is detected in the + output. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + input_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the input. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + output_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the output. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + class GuardrailManagedWordsType(UnknownEnumMixin, StrEnum): PROFANITY = "PROFANITY" @@ -1909,18 +2381,279 @@ class GuardrailModality(UnknownEnumMixin, StrEnum): TEXT = "TEXT" IMAGE = "IMAGE" -@dataclass(kw_only=True) -class GuardrailPiiEntity(_SerdeShape): - """The PII entity configured for the guardrail.""" +@dataclass(kw_only=True) +class GuardrailPiiEntity(_SerdeShape): + """The PII entity configured for the guardrail.""" + + type: str + """The type of PII entity. For example, Social Security Number.""" + action: str + """The configured guardrail action when PII entity is detected.""" + input_action: str | None = ... + """ + The action to take when harmful content is detected in the input. + Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `ANONYMIZE` -- Mask the content and replace it with identifier tags. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + output_action: str | None = ... + """ + The action to take when harmful content is detected in the output. + Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `ANONYMIZE` -- Mask the content and replace it with identifier tags. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + input_enabled: bool | None = ... + """ + Indicates whether guardrail evaluation is enabled on the input. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + output_enabled: bool | None = ... + """ + Indicates whether guardrail evaluation is enabled on the output. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + +@dataclass(kw_only=True) +class GuardrailPiiEntityConfig(_SerdeShape): + """The PII entity to configure for the guardrail.""" + + type: str + """ + Configure guardrail type when the PII entity is detected. + + The following PIIs are used to block or mask sensitive information: + + - **General** + + - **ADDRESS** + + A physical address, such as \"100 Main Street, Anytown, USA\" or + \"Suite #12, Building 123\". An address can include information such + as the street, building, location, city, state, country, county, zip + code, precinct, and neighborhood. + + - **AGE** + + An individual's age, including the quantity and unit of time. For + example, in the phrase \"I am 40 years old,\" Guardrails recognizes + \"40 years\" as an age. + + - **NAME** + + An individual's name. This entity type does not include titles, + such as Dr., Mr., Mrs., or Miss. guardrails doesn't apply this + entity type to names that are part of organizations or addresses. + For example, guardrails recognizes the \"John Doe Organization\" as + an organization, and it recognizes \"Jane Doe Street\" as an + address. + + - **EMAIL** + + An email address, such as *marymajor@email.com*. + + - **PHONE** + + A phone number. This entity type also includes fax and pager + numbers. + + - **USERNAME** + + A user name that identifies an account, such as a login name, screen + name, nick name, or handle. + + - **PASSWORD** + + An alphanumeric string that is used as a password, such as + \"**very20special#pass**\". + + - **DRIVER_ID** + + The number assigned to a driver's license, which is an official + document permitting an individual to operate one or more motorized + vehicles on a public road. A driver's license number consists of + alphanumeric characters. + + - **LICENSE_PLATE** + + A license plate for a vehicle is issued by the state or country + where the vehicle is registered. The format for passenger vehicles + is typically five to eight digits, consisting of upper-case letters + and numbers. The format varies depending on the location of the + issuing state or country. + + - **VEHICLE_IDENTIFICATION_NUMBER** + + A Vehicle Identification Number (VIN) uniquely identifies a vehicle. + VIN content and format are defined in the *ISO 3779* specification. + Each country has specific codes and formats for VINs. + + - **Finance** + + - **CREDIT_DEBIT_CARD_CVV** + + A three-digit card verification code (CVV) that is present on VISA, + MasterCard, and Discover credit and debit cards. For American + Express credit or debit cards, the CVV is a four-digit numeric code. + + - **CREDIT_DEBIT_CARD_EXPIRY** + + The expiration date for a credit or debit card. This number is + usually four digits long and is often formatted as *month/year* or + *MM/YY*. Guardrails recognizes expiration dates such as *01/21*, + *01/2021*, and *Jan 2021*. + + - **CREDIT_DEBIT_CARD_NUMBER** + + The number for a credit or debit card. These numbers can vary from + 13 to 16 digits in length. However, Amazon Comprehend also + recognizes credit or debit card numbers when only the last four + digits are present. + + - **PIN** + + A four-digit personal identification number (PIN) with which you can + access your bank account. + + - **INTERNATIONAL_BANK_ACCOUNT_NUMBER** + + An International Bank Account Number has specific formats in each + country. For more information, see + [www.iban.com/structure](https://www.iban.com/structure). + + - **SWIFT_CODE** + + A SWIFT code is a standard format of Bank Identifier Code (BIC) used + to specify a particular bank or branch. Banks use these codes for + money transfers such as international wire transfers. + + SWIFT codes consist of eight or 11 characters. The 11-digit codes + refer to specific branches, while eight-digit codes (or 11-digit + codes ending in 'XXX') refer to the head or primary office. + + - **IT** + + - **IP_ADDRESS** + + An IPv4 address, such as *198.51.100.0*. + + - **MAC_ADDRESS** + + A *media access control* (MAC) address is a unique identifier + assigned to a network interface controller (NIC). + + - **URL** + + A web address, such as *www.example.com*. + + - **AWS_ACCESS_KEY** + + A unique identifier that's associated with a secret access key; you + use the access key ID and secret access key to sign programmatic + Amazon Web Services requests cryptographically. + + - **AWS_SECRET_KEY** + + A unique identifier that's associated with an access key. You use + the access key ID and secret access key to sign programmatic Amazon + Web Services requests cryptographically. + + - **USA specific** + + - **US_BANK_ACCOUNT_NUMBER** + + A US bank account number, which is typically 10 to 12 digits long. + + - **US_BANK_ROUTING_NUMBER** + + A US bank account routing number. These are typically nine digits + long, + + - **US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER** + + A US Individual Taxpayer Identification Number (ITIN) is a + nine-digit number that starts with a \"9\" and contain a \"7\" or + \"8\" as the fourth digit. An ITIN can be formatted with a space or + a dash after the third and forth digits. + + - **US_PASSPORT_NUMBER** + + A US passport number. Passport numbers range from six to nine + alphanumeric characters. + + - **US_SOCIAL_SECURITY_NUMBER** + + A US Social Security Number (SSN) is a nine-digit number that is + issued to US citizens, permanent residents, and temporary working + residents. + + - **Canada specific** + + - **CA_HEALTH_NUMBER** + + A Canadian Health Service Number is a 10-digit unique identifier, + required for individuals to access healthcare benefits. + + - **CA_SOCIAL_INSURANCE_NUMBER** + + A Canadian Social Insurance Number (SIN) is a nine-digit unique + identifier, required for individuals to access government programs + and benefits. + + The SIN is formatted as three groups of three digits, such as + *123-456-789*. A SIN can be validated through a simple check-digit + process called the [Luhn + algorithm](https://www.wikipedia.org/wiki/Luhn_algorithm). + + - **UK Specific** + + - **UK_NATIONAL_HEALTH_SERVICE_NUMBER** + + A UK National Health Service Number is a 10-17 digit number, such as + *485 777 3456*. The current system formats the 10-digit number with + spaces after the third and sixth digits. The final digit is an + error-detecting checksum. + + - **UK_NATIONAL_INSURANCE_NUMBER** + + A UK National Insurance Number (NINO) provides individuals with + access to National Insurance (social security) benefits. It is also + used for some purposes in the UK tax system. + + The number is nine digits long and starts with two letters, followed + by six numbers and one letter. A NINO can be formatted with a space + or a dash after the two letters and after the second, forth, and + sixth digits. + + - **UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER** + + A UK Unique Taxpayer Reference (UTR) is a 10-digit number that + identifies a taxpayer or a business. + + - **Custom** - type: str - """The type of PII entity. For example, Social Security Number.""" + - **Regex filter** - You can use a regular expressions to define + patterns for a guardrail to recognize and act upon such as serial + number, booking ID etc.. + """ action: str - """The configured guardrail action when PII entity is detected.""" + """Configure guardrail action when the PII entity is detected.""" input_action: str | None = ... """ - The action to take when harmful content is detected in the input. - Supported values include: + Specifies the action to take when harmful content is detected in the + input. Supported values include: - `BLOCK` -- Block the content and replace it with blocked messaging. @@ -1931,8 +2664,8 @@ class GuardrailPiiEntity(_SerdeShape): """ output_action: str | None = ... """ - The action to take when harmful content is detected in the output. - Supported values include: + Specifies the action to take when harmful content is detected in the + output. Supported values include: - `BLOCK` -- Block the content and replace it with blocked messaging. @@ -1943,22 +2676,21 @@ class GuardrailPiiEntity(_SerdeShape): """ input_enabled: bool | None = ... """ - Indicates whether guardrail evaluation is enabled on the input. When + Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response. """ output_enabled: bool | None = ... """ - Indicates whether guardrail evaluation is enabled on the output. When + Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response. """ -@dataclass(kw_only=True) -class GuardrailPiiEntityConfig(_SerdeShape): - """The PII entity to configure for the guardrail.""" +class GuardrailPiiEntityConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailPiiEntityConfig`.""" - type: str + type: Required[str] """ Configure guardrail type when the PII entity is detected. @@ -2176,9 +2908,9 @@ class GuardrailPiiEntityConfig(_SerdeShape): patterns for a guardrail to recognize and act upon such as serial number, booking ID etc.. """ - action: str + action: Required[str] """Configure guardrail action when the PII entity is detected.""" - input_action: str | None = ... + input_action: str | None """ Specifies the action to take when harmful content is detected in the input. Supported values include: @@ -2190,7 +2922,7 @@ class GuardrailPiiEntityConfig(_SerdeShape): - `NONE` -- Take no action but return detection information in the trace response. """ - output_action: str | None = ... + output_action: str | None """ Specifies the action to take when harmful content is detected in the output. Supported values include: @@ -2202,13 +2934,13 @@ class GuardrailPiiEntityConfig(_SerdeShape): - `NONE` -- Take no action but return detection information in the trace response. """ - input_enabled: bool | None = ... + input_enabled: bool | None """ Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response. """ - output_enabled: bool | None = ... + output_enabled: bool | None """ Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation @@ -2344,6 +3076,56 @@ class GuardrailRegexConfig(_SerdeShape): doesn't appear in the response. """ +class GuardrailRegexConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailRegexConfig`.""" + + name: Required[str] + """The name of the regular expression to configure for the guardrail.""" + description: str | None + """ + The description of the regular expression to configure for the + guardrail. + """ + pattern: Required[str] + """The regular expression pattern to configure for the guardrail.""" + action: Required[str] + """ + The guardrail action to configure when matching regular expression is + detected. + """ + input_action: str | None + """ + Specifies the action to take when harmful content is detected in the + input. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + output_action: str | None + """ + Specifies the action to take when harmful content is detected in the + output. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + input_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the input. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + output_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the output. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + class GuardrailSensitiveInformationAction(UnknownEnumMixin, StrEnum): BLOCK = "BLOCK" ANONYMIZE = "ANONYMIZE" @@ -2373,6 +3155,16 @@ class GuardrailSensitiveInformationPolicyConfig(_SerdeShape): regexes_config: list[GuardrailRegexConfig] | None = ... """A list of regular expressions to configure to the guardrail.""" +class GuardrailSensitiveInformationPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailSensitiveInformationPolicyConfig`.""" + + pii_entities_config: ( + Sequence[GuardrailPiiEntityConfig | GuardrailPiiEntityConfigDict] | None + ) + """A list of PII entities to configure to the guardrail.""" + regexes_config: Sequence[GuardrailRegexConfig | GuardrailRegexConfigDict] | None + """A list of regular expressions to configure to the guardrail.""" + class GuardrailStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" UPDATING = "UPDATING" @@ -2522,6 +3314,53 @@ class GuardrailTopicConfig(_SerdeShape): doesn't appear in the response. """ +class GuardrailTopicConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailTopicConfig`.""" + + name: Required[str] + """The name of the topic to deny.""" + definition: Required[str] + """A definition of the topic to deny.""" + examples: Sequence[str] | None + """ + A list of prompts, each of which is an example of a prompt that can be + categorized as belonging to the topic. + """ + type: Required[str] + """Specifies to deny the topic.""" + input_action: str | None + """ + Specifies the action to take when harmful content is detected in the + input. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + output_action: str | None + """ + Specifies the action to take when harmful content is detected in the + output. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + input_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the input. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + output_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the output. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + @dataclass(kw_only=True) class GuardrailTopicPolicy(_SerdeShape): """ @@ -2551,6 +3390,14 @@ class GuardrailTopicPolicyConfig(_SerdeShape): tier_config: GuardrailTopicsTierConfig | None = ... """The tier that your guardrail uses for denied topic filters.""" +class GuardrailTopicPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailTopicPolicyConfig`.""" + + topics_config: Required[Sequence[GuardrailTopicConfig | GuardrailTopicConfigDict]] + """A list of policies related to topics that the guardrail should deny.""" + tier_config: GuardrailTopicsTierConfig | GuardrailTopicsTierConfigDict | None + """The tier that your guardrail uses for denied topic filters.""" + @dataclass(kw_only=True) class GuardrailTopicsTier(_SerdeShape): """The tier that your guardrail uses for denied topic filters.""" @@ -2591,6 +3438,23 @@ class GuardrailTopicsTierConfig(_SerdeShape): inference](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html). """ +class GuardrailTopicsTierConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailTopicsTierConfig`.""" + + tier_name: Required[str] + """ + The tier that your guardrail uses for denied topic filters. Valid values + include: + + - `CLASSIC` tier -- Provides established guardrails functionality + supporting English, French, and Spanish languages. + + - `STANDARD` tier -- Provides a more robust solution than the `CLASSIC` + tier and has more comprehensive language support. This tier requires + that your guardrail use [cross-Region + inference](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html). + """ + class GuardrailTopicsTierName(UnknownEnumMixin, StrEnum): CLASSIC = "CLASSIC" STANDARD = "STANDARD" @@ -2680,6 +3544,44 @@ class GuardrailWordConfig(_SerdeShape): doesn't appear in the response. """ +class GuardrailWordConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailWordConfig`.""" + + text: Required[str] + """Text of the word configured for the guardrail to block.""" + input_action: str | None + """ + Specifies the action to take when harmful content is detected in the + input. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + output_action: str | None + """ + Specifies the action to take when harmful content is detected in the + output. Supported values include: + + - `BLOCK` -- Block the content and replace it with blocked messaging. + + - `NONE` -- Take no action but return detection information in the trace + response. + """ + input_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the intput. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + output_enabled: bool | None + """ + Specifies whether to enable guardrail evaluation on the output. When + disabled, you aren't charged for the evaluation. The evaluation + doesn't appear in the response. + """ + @dataclass(kw_only=True) class GuardrailWordPolicy(_SerdeShape): """Contains details about the word policy configured for the guardrail.""" @@ -2698,6 +3600,16 @@ class GuardrailWordPolicyConfig(_SerdeShape): managed_word_lists_config: list[GuardrailManagedWordsConfig] | None = ... """A list of managed words to configure for the guardrail.""" +class GuardrailWordPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `GuardrailWordPolicyConfig`.""" + + words_config: Sequence[GuardrailWordConfig | GuardrailWordConfigDict] | None + """A list of words to configure for the guardrail.""" + managed_word_lists_config: ( + Sequence[GuardrailManagedWordsConfig | GuardrailManagedWordsConfigDict] | None + ) + """A list of managed words to configure for the guardrail.""" + @dataclass(kw_only=True) class HumanEvaluationConfig(_SerdeShape): """ @@ -2732,6 +3644,26 @@ class HumanEvaluationConfig(_SerdeShape): model evaluation job. """ +class HumanEvaluationConfigDict(TypedDict, total=False): + """Dictionary form of `HumanEvaluationConfig`.""" + + human_workflow_config: HumanWorkflowConfig | HumanWorkflowConfigDict | None + """The parameters of the human workflow.""" + custom_metrics: ( + Sequence[HumanEvaluationCustomMetric | HumanEvaluationCustomMetricDict] | None + ) + """ + A `HumanEvaluationCustomMetric` object. It contains the names the + metrics, how the metrics are to be evaluated, an optional description. + """ + dataset_metric_configs: Required[ + Sequence[EvaluationDatasetMetricConfig | EvaluationDatasetMetricConfigDict] + ] + """ + Use to specify the metrics, task, and prompt dataset to be used in your + model evaluation job. + """ + @dataclass(kw_only=True) class HumanEvaluationCustomMetric(_SerdeShape): """ @@ -2758,6 +3690,27 @@ class HumanEvaluationCustomMetric(_SerdeShape): `ComparisonRank` """ +class HumanEvaluationCustomMetricDict(TypedDict, total=False): + """Dictionary form of `HumanEvaluationCustomMetric`.""" + + name: Required[str] + """ + The name of the metric. Your human evaluators will see this name in the + evaluation UI. + """ + description: str | None + """ + An optional description of the metric. Use this parameter to provide + more details about the metric. + """ + rating_method: Required[str] + """ + Choose how you want your human workers to evaluation your model. Valid + values for rating methods are `ThumbsUpDown`, + `IndividualLikertScale`,`ComparisonLikertScale`, `ComparisonChoice`, and + `ComparisonRank` + """ + @dataclass(kw_only=True) class HumanWorkflowConfig(_SerdeShape): """ @@ -2770,6 +3723,14 @@ class HumanWorkflowConfig(_SerdeShape): instructions: str | None = ... """Instructions for the flow definition""" +class HumanWorkflowConfigDict(TypedDict, total=False): + """Dictionary form of `HumanWorkflowConfig`.""" + + flow_definition_arn: Required[str] + """The Amazon Resource Number (ARN) for the flow definition""" + instructions: str | None + """Instructions for the flow definition""" + @dataclass(kw_only=True) class ImplicitFilterConfiguration(_SerdeShape): """ @@ -2792,6 +3753,24 @@ class ImplicitFilterConfiguration(_SerdeShape): criteria. """ +class ImplicitFilterConfigurationDict(TypedDict, total=False): + """Dictionary form of `ImplicitFilterConfiguration`.""" + + metadata_attributes: Required[ + Sequence[MetadataAttributeSchema | MetadataAttributeSchemaDict] + ] + """ + A list of metadata attribute schemas that define the structure and + properties of metadata fields used for implicit filtering. Each + attribute defines a key, type, and optional description. + """ + model_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the foundation model used for implicit + filtering. This model processes the query to extract relevant filtering + criteria. + """ + @dataclass(kw_only=True) class ImportedModelSummary(_SerdeShape): """Information about the imported model.""" @@ -2841,6 +3820,35 @@ class InferenceConfiguration(_SerdeShape): that causes the model to stop generating the response. """ +class InferenceConfigurationDict(TypedDict, total=False): + """Dictionary form of `InferenceConfiguration`.""" + + max_tokens: int | None + """ + The maximum number of tokens to allow in the generated response. The + default value is the maximum allowed value for the model that you are + using. + """ + temperature: float | None + """ + The likelihood of the model selecting higher-probability options while + generating a response. A lower value makes the model more likely to + choose higher-probability options, while a higher value makes the model + more likely to choose lower-probability options. + """ + top_p: float | None + """ + The percentage of most-likely candidates that the model considers for + the next token. For example, if you choose a value of 0.8 for `topP`, + the model selects from the top 80% of the probability distribution of + tokens that could be next in the sequence. + """ + stop_sequences: Sequence[str] | None + """ + A list of stop sequences. A stop sequence is a sequence of characters + that causes the model to stop generating the response. + """ + @dataclass(kw_only=True) class InferenceProfileModel(_SerdeShape): """Contains information about a model.""" @@ -2880,6 +3888,19 @@ class _InferenceProfileModelSourceDeserializer: self, deserializer: ShapeDeserializer ) -> InferenceProfileModelSource: ... +class InferenceProfileModelSourceCopyFromDict(TypedDict): + copy_from: str + """ + The ARN of the model or system-defined inference profile that is the + source for the inference profile. + """ + +InferenceProfileModelSourceDict = Union[InferenceProfileModelSourceCopyFromDict] +""" +Dictionary form of `InferenceProfileModelSource`, setting exactly one +variant. +""" + class InferenceProfileStatus(UnknownEnumMixin, StrEnum): ACTIVE = "ACTIVE" @@ -2944,18 +3965,31 @@ class InternalServerException(ServiceError, _SerdeShape): optional. """ -@dataclass(kw_only=True) -class InvocationLogsConfig(_SerdeShape): - """Settings for using invocation logs to customize a model.""" +@dataclass(kw_only=True) +class InvocationLogsConfig(_SerdeShape): + """Settings for using invocation logs to customize a model.""" + + use_prompt_response: bool = ... + """ + Whether to use the model's response for training, or just the prompt. + The default value is `False`. + """ + invocation_log_source: InvocationLogSource + """The source of the invocation logs.""" + request_metadata_filters: RequestMetadataFilters | None = ... + """Rules for filtering invocation logs based on request metadata.""" + +class InvocationLogsConfigDict(TypedDict, total=False): + """Dictionary form of `InvocationLogsConfig`.""" - use_prompt_response: bool = ... + use_prompt_response: bool | None """ Whether to use the model's response for training, or just the prompt. The default value is `False`. """ - invocation_log_source: InvocationLogSource + invocation_log_source: Required[InvocationLogSource | InvocationLogSourceDict] """The source of the invocation logs.""" - request_metadata_filters: RequestMetadataFilters | None = ... + request_metadata_filters: RequestMetadataFilters | RequestMetadataFiltersDict | None """Rules for filtering invocation logs based on request metadata.""" @dataclass @@ -2980,6 +4014,13 @@ InvocationLogSource = Union[InvocationLogSourceS3Uri | InvocationLogSourceUnknow class _InvocationLogSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> InvocationLogSource: ... +class InvocationLogSourceS3UriDict(TypedDict): + s3_uri: str + """The URI of an invocation log in a bucket.""" + +InvocationLogSourceDict = Union[InvocationLogSourceS3UriDict] +"""Dictionary form of `InvocationLogSource`, setting exactly one variant.""" + class JobStatusDetails(UnknownEnumMixin, StrEnum): IN_PROGRESS = "InProgress" COMPLETED = "Completed" @@ -3001,6 +4042,15 @@ class KbInferenceConfig(_SerdeShape): model via the `RetrieveAndGenerate` function. """ +class KbInferenceConfigDict(TypedDict, total=False): + """Dictionary form of `KbInferenceConfig`.""" + + text_inference_config: TextInferenceConfig | TextInferenceConfigDict | None + """ + Contains configuration details for text generation using a language + model via the `RetrieveAndGenerate` function. + """ + @dataclass class KnowledgeBaseConfigRetrieveConfig(_SerdeShape): """ @@ -3042,6 +4092,28 @@ base and generating responses. class _KnowledgeBaseConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> KnowledgeBaseConfig: ... +class KnowledgeBaseConfigRetrieveConfigDict(TypedDict): + retrieve_config: RetrieveConfig | RetrieveConfigDict + """ + Contains configuration details for retrieving information from a + knowledge base. + """ + +class KnowledgeBaseConfigRetrieveAndGenerateConfigDict(TypedDict): + retrieve_and_generate_config: ( + RetrieveAndGenerateConfiguration | RetrieveAndGenerateConfigurationDict + ) + """ + Contains configuration details for retrieving information from a + knowledge base and generating responses. + """ + +KnowledgeBaseConfigDict = Union[ + KnowledgeBaseConfigRetrieveConfigDict + | KnowledgeBaseConfigRetrieveAndGenerateConfigDict +] +"""Dictionary form of `KnowledgeBaseConfig`, setting exactly one variant.""" + @dataclass(kw_only=True) class KnowledgeBaseRetrievalConfiguration(_SerdeShape): """ @@ -3055,6 +4127,18 @@ class KnowledgeBaseRetrievalConfiguration(_SerdeShape): search. """ +class KnowledgeBaseRetrievalConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseRetrievalConfiguration`.""" + + vector_search_configuration: Required[ + KnowledgeBaseVectorSearchConfiguration + | KnowledgeBaseVectorSearchConfigurationDict + ] + """ + Contains configuration details for returning the results from the vector + search. + """ + @dataclass(kw_only=True) class KnowledgeBaseRetrieveAndGenerateConfiguration(_SerdeShape): """ @@ -3083,6 +4167,38 @@ class KnowledgeBaseRetrieveAndGenerateConfiguration(_SerdeShape): to retrieval and response generation. """ +class KnowledgeBaseRetrieveAndGenerateConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseRetrieveAndGenerateConfiguration`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base.""" + model_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the foundation model or [inference + profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) + used to generate responses. + """ + retrieval_configuration: ( + KnowledgeBaseRetrievalConfiguration + | KnowledgeBaseRetrievalConfigurationDict + | None + ) + """Contains configuration details for retrieving text chunks.""" + generation_configuration: ( + GenerationConfiguration | GenerationConfigurationDict | None + ) + """ + Contains configurations details for response generation based on + retrieved text chunks. + """ + orchestration_configuration: ( + OrchestrationConfiguration | OrchestrationConfigurationDict | None + ) + """ + Contains configuration details for the model to process the prompt prior + to retrieval and response generation. + """ + @dataclass(kw_only=True) class KnowledgeBaseVectorSearchConfiguration(_SerdeShape): """ @@ -3119,6 +4235,44 @@ class KnowledgeBaseVectorSearchConfiguration(_SerdeShape): vector search results using more sophisticated relevance models. """ +class KnowledgeBaseVectorSearchConfigurationDict(TypedDict, total=False): + """Dictionary form of `KnowledgeBaseVectorSearchConfiguration`.""" + + number_of_results: int | None + """The number of text chunks to retrieve; the number of results to return.""" + override_search_type: str | None + """ + By default, Amazon Bedrock decides a search strategy for you. If you're + using an Amazon OpenSearch Serverless vector store that contains a + filterable text field, you can specify whether to query the knowledge + base with a `HYBRID` search using both vector embeddings and raw text, + or `SEMANTIC` search using only vector embeddings. For other vector + store configurations, only `SEMANTIC` search is available. + """ + filter: RetrievalFilter | RetrievalFilterDict | None + """ + Specifies the filters to use on the metadata fields in the knowledge + base data sources before returning results. + """ + implicit_filter_configuration: ( + ImplicitFilterConfiguration | ImplicitFilterConfigurationDict | None + ) + """ + Configuration for implicit filtering in Knowledge Base vector searches. + This allows the system to automatically apply filters based on the query + context without requiring explicit filter expressions. + """ + reranking_configuration: ( + VectorSearchRerankingConfiguration + | VectorSearchRerankingConfigurationDict + | None + ) + """ + Configuration for reranking search results in Knowledge Base vector + searches. Reranking improves search relevance by reordering initial + vector search results using more sophisticated relevance models. + """ + @dataclass(kw_only=True) class LambdaGraderConfig(_SerdeShape): """ @@ -3132,6 +4286,15 @@ class LambdaGraderConfig(_SerdeShape): return reward scores for RFT training. """ +class LambdaGraderConfigDict(TypedDict, total=False): + """Dictionary form of `LambdaGraderConfig`.""" + + lambda_arn: Required[str] + """ + ARN of the AWS Lambda function that will evaluate model responses and + return reward scores for RFT training. + """ + @dataclass(kw_only=True) class LegalTerm(_SerdeShape): """The legal term of the agreement.""" @@ -3156,6 +4319,22 @@ class ListAdvancedPromptOptimizationJobsInput(_SerdeShape): sort_order: str | None = ... """The sort order for the results.""" +class ListAdvancedPromptOptimizationJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListAdvancedPromptOptimizationJobsInput`.""" + + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, use this token in a subsequent request to get + the next set of results. + """ + sort_by: str | None + """The field to sort the results by.""" + sort_order: str | None + """The sort order for the results.""" + @dataclass(kw_only=True) class ListAdvancedPromptOptimizationJobsOutput(_SerdeShape): """List Advanced Prompt Optimization Jobs Response""" @@ -3194,6 +4373,23 @@ class ListAutomatedReasoningPoliciesInput(_SerdeShape): max_results: int = ... """The maximum number of policies to return in a single call.""" +class ListAutomatedReasoningPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListAutomatedReasoningPoliciesInput`.""" + + policy_arn: str | None + """ + Optional filter to list only the policy versions with the specified + Amazon Resource Name (ARN). If not provided, the DRAFT versions for all + policies are listed. + """ + next_token: str | None + """ + The pagination token from a previous request to retrieve the next page + of results. + """ + max_results: int | None + """The maximum number of policies to return in a single call.""" + @dataclass(kw_only=True) class ListAutomatedReasoningPoliciesOutput(_SerdeShape): """Dataclass for ListAutomatedReasoningPoliciesOutput structure.""" @@ -3233,6 +4429,25 @@ class ListAutomatedReasoningPolicyBuildWorkflowsInput(_SerdeShape): Valid range is 1-100. """ +class ListAutomatedReasoningPolicyBuildWorkflowsInputDict(TypedDict, total=False): + """Dictionary form of `ListAutomatedReasoningPolicyBuildWorkflowsInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy whose + build workflows you want to list. + """ + next_token: str | None + """ + A pagination token from a previous request to continue listing build + workflows from where the previous request left off. + """ + max_results: int | None + """ + The maximum number of build workflows to return in a single response. + Valid range is 1-100. + """ + @dataclass(kw_only=True) class ListAutomatedReasoningPolicyBuildWorkflowsOutput(_SerdeShape): """ @@ -3277,6 +4492,22 @@ class ListAutomatedReasoningPolicyTestCasesInput(_SerdeShape): max_results: int = ... """The maximum number of tests to return in a single call.""" +class ListAutomatedReasoningPolicyTestCasesInputDict(TypedDict, total=False): + """Dictionary form of `ListAutomatedReasoningPolicyTestCasesInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy for + which to list tests. + """ + next_token: str | None + """ + The pagination token from a previous request to retrieve the next page + of results. + """ + max_results: int | None + """The maximum number of tests to return in a single call.""" + @dataclass(kw_only=True) class ListAutomatedReasoningPolicyTestCasesOutput(_SerdeShape): """Dataclass for ListAutomatedReasoningPolicyTestCasesOutput structure.""" @@ -3321,6 +4552,30 @@ class ListAutomatedReasoningPolicyTestResultsInput(_SerdeShape): range is 1-100. """ +class ListAutomatedReasoningPolicyTestResultsInputDict(TypedDict, total=False): + """Dictionary form of `ListAutomatedReasoningPolicyTestResultsInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy whose + test results you want to list. + """ + build_workflow_id: Required[str] + """ + The unique identifier of the build workflow whose test results you want + to list. + """ + next_token: str | None + """ + A pagination token from a previous request to continue listing test + results from where the previous request left off. + """ + max_results: int | None + """ + The maximum number of test results to return in a single response. Valid + range is 1-100. + """ + @dataclass(kw_only=True) class ListAutomatedReasoningPolicyTestResultsOutput(_SerdeShape): """Dataclass for ListAutomatedReasoningPolicyTestResultsOutput structure.""" @@ -3381,6 +4636,43 @@ class ListCustomModelDeploymentsInput(_SerdeShape): custom model. """ +class ListCustomModelDeploymentsInputDict(TypedDict, total=False): + """Dictionary form of `ListCustomModelDeploymentsInput`.""" + + created_before: datetime | None + """Filters deployments created before the specified date and time.""" + created_after: datetime | None + """Filters deployments created after the specified date and time.""" + name_contains: str | None + """Filters deployments whose names contain the specified string.""" + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """ + The token for the next set of results. Use this token to retrieve + additional results when the response is truncated. + """ + sort_by: str | None + """ + The field to sort the results by. The only supported value is + `CreationTime`. + """ + sort_order: str | None + """ + The sort order for the results. Valid values are `Ascending` and + `Descending`. Default is `Descending`. + """ + status_equals: str | None + """ + Filters deployments by status. Valid values are `CREATING`, `ACTIVE`, + and `FAILED`. + """ + model_arn_equals: str | None + """ + Filters deployments by the Amazon Resource Name (ARN) of the associated + custom model. + """ + @dataclass(kw_only=True) class ListCustomModelDeploymentsOutput(_SerdeShape): """Dataclass for ListCustomModelDeploymentsOutput structure.""" @@ -3457,6 +4749,62 @@ class ListCustomModelsInput(_SerdeShape): If you don't specify a status, the API returns models in all states. """ +class ListCustomModelsInputDict(TypedDict, total=False): + """Dictionary form of `ListCustomModelsInput`.""" + + creation_time_before: datetime | None + """Return custom models created before the specified time.""" + creation_time_after: datetime | None + """Return custom models created after the specified time.""" + name_contains: str | None + """Return custom models only if the job name contains these characters.""" + base_model_arn_equals: str | None + """ + Return custom models only if the base model Amazon Resource Name (ARN) + matches this parameter. + """ + foundation_model_arn_equals: str | None + """ + Return custom models only if the foundation model Amazon Resource Name + (ARN) matches this parameter. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + sort_by: str | None + """The field to sort by in the returned list of models.""" + sort_order: str | None + """The sort order of the results.""" + is_owned: bool | None + """ + Return custom models depending on if the current account owns them + (`true`) or if they were shared with the current account (`false`). + """ + model_status: str | None + """ + The status of them model to filter results by. Possible values include: + + - `Creating` - Include only models that are currently being created and + validated. + + - `Active` - Include only models that have been successfully created and + are ready for use. + + - `Failed` - Include only models where the creation process failed. + + If you don't specify a status, the API returns models in all states. + """ + @dataclass(kw_only=True) class ListCustomModelsOutput(_SerdeShape): """Dataclass for ListCustomModelsOutput structure.""" @@ -3484,6 +4832,12 @@ class ListEnforcedGuardrailsConfigurationInput(_SerdeShape): next_token: str | None = ... """Opaque continuation token of previous paginated response.""" +class ListEnforcedGuardrailsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `ListEnforcedGuardrailsConfigurationInput`.""" + + next_token: str | None + """Opaque continuation token of previous paginated response.""" + @dataclass(kw_only=True) class ListEnforcedGuardrailsConfigurationOutput(_SerdeShape): """Dataclass for ListEnforcedGuardrailsConfigurationOutput structure.""" @@ -3504,35 +4858,72 @@ class ListEnforcedGuardrailsConfigurationOutput(_SerdeShape): class ListEvaluationJobsInput(_SerdeShape): """Dataclass for ListEvaluationJobsInput structure.""" - creation_time_after: datetime | None = ... + creation_time_after: datetime | None = ... + """A filter to only list evaluation jobs created after a specified time.""" + creation_time_before: datetime | None = ... + """A filter to only list evaluation jobs created before a specified time.""" + status_equals: str | None = ... + """A filter to only list evaluation jobs that are of a certain status.""" + application_type_equals: str | None = ... + """ + A filter to only list evaluation jobs that are either model evaluations + or knowledge base evaluations. + """ + name_contains: str | None = ... + """ + A filter to only list evaluation jobs that contain a specified string in + the job name. + """ + max_results: int | None = ... + """The maximum number of results to return.""" + next_token: str | None = ... + """ + Continuation token from the previous response, for Amazon Bedrock to + list the next set of results. + """ + sort_by: str | None = ... + """ + Specifies a creation time to sort the list of evaluation jobs by when + they were created. + """ + sort_order: str | None = ... + """ + Specifies whether to sort the list of evaluation jobs by either + ascending or descending order. + """ + +class ListEvaluationJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListEvaluationJobsInput`.""" + + creation_time_after: datetime | None """A filter to only list evaluation jobs created after a specified time.""" - creation_time_before: datetime | None = ... + creation_time_before: datetime | None """A filter to only list evaluation jobs created before a specified time.""" - status_equals: str | None = ... + status_equals: str | None """A filter to only list evaluation jobs that are of a certain status.""" - application_type_equals: str | None = ... + application_type_equals: str | None """ A filter to only list evaluation jobs that are either model evaluations or knowledge base evaluations. """ - name_contains: str | None = ... + name_contains: str | None """ A filter to only list evaluation jobs that contain a specified string in the job name. """ - max_results: int | None = ... + max_results: int | None """The maximum number of results to return.""" - next_token: str | None = ... + next_token: str | None """ Continuation token from the previous response, for Amazon Bedrock to list the next set of results. """ - sort_by: str | None = ... + sort_by: str | None """ Specifies a creation time to sort the list of evaluation jobs by when they were created. """ - sort_order: str | None = ... + sort_order: str | None """ Specifies whether to sort the list of evaluation jobs by either ascending or descending order. @@ -3566,6 +4957,14 @@ class ListFoundationModelAgreementOffersInput(_SerdeShape): offer_type: str | None = ... """Type of offer associated with the model.""" +class ListFoundationModelAgreementOffersInputDict(TypedDict, total=False): + """Dictionary form of `ListFoundationModelAgreementOffersInput`.""" + + model_id: Required[str] + """Model Id of the foundation model.""" + offer_type: str | None + """Type of offer associated with the model.""" + @dataclass(kw_only=True) class ListFoundationModelAgreementOffersOutput(_SerdeShape): """Dataclass for ListFoundationModelAgreementOffersOutput structure.""" @@ -3607,6 +5006,30 @@ class ListFoundationModelsInput(_SerdeShape): Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). """ +class ListFoundationModelsInputDict(TypedDict, total=False): + """Dictionary form of `ListFoundationModelsInput`.""" + + by_provider: str | None + """Return models belonging to the model provider that you specify.""" + by_customization_type: str | None + """ + Return models that support the customization type that you specify. For + more information, see [Custom + models](https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) + in the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). + """ + by_output_modality: str | None + """Return models that support the output modality that you specify.""" + by_inference_type: str | None + """ + Return models that support the inference type that you specify. For more + information, see [Provisioned + Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html) + in the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). + """ + @dataclass(kw_only=True) class ListFoundationModelsOutput(_SerdeShape): """Dataclass for ListFoundationModelsOutput structure.""" @@ -3636,6 +5059,20 @@ class ListGuardrailsInput(_SerdeShape): `ListGuardrails` request to see the next batch of results. """ +class ListGuardrailsInputDict(TypedDict, total=False): + """Dictionary form of `ListGuardrailsInput`.""" + + guardrail_identifier: str | None + """The unique identifier of the guardrail. This can be an ID or the ARN.""" + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """ + If there are more results than were returned in the response, the + response returns a `nextToken` that you can send in another + `ListGuardrails` request to see the next batch of results. + """ + @dataclass(kw_only=True) class ListGuardrailsOutput(_SerdeShape): """Dataclass for ListGuardrailsOutput structure.""" @@ -3684,6 +5121,33 @@ class ListImportedModelsInput(_SerdeShape): sort_order: str | None = ... """Specifies whetehr to sort the results in ascending or descending order.""" +class ListImportedModelsInputDict(TypedDict, total=False): + """Dictionary form of `ListImportedModelsInput`.""" + + creation_time_before: datetime | None + """Return imported models that created before the specified time.""" + creation_time_after: datetime | None + """Return imported models that were created after the specified time.""" + name_contains: str | None + """Return imported models only if the model name contains these characters.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + sort_by: str | None + """The field to sort by in the returned list of imported models.""" + sort_order: str | None + """Specifies whetehr to sort the results in ascending or descending order.""" + @dataclass(kw_only=True) class ListImportedModelsOutput(_SerdeShape): """Dataclass for ListImportedModelsOutput structure.""" @@ -3735,6 +5199,36 @@ class ListInferenceProfilesInput(_SerdeShape): multiple regions. """ +class ListInferenceProfilesInputDict(TypedDict, total=False): + """Dictionary form of `ListInferenceProfilesInput`.""" + + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + type_equals: str | None + """ + Filters for inference profiles that match the type you specify. + + - `SYSTEM_DEFINED` -- The inference profile is defined by Amazon + Bedrock. You can route inference requests across regions with these + inference profiles. + + - `APPLICATION` -- The inference profile was created by a user. This + type of inference profile can track metrics and costs when invoking + the model in it. The inference profile may route requests to one or + multiple regions. + """ + @dataclass(kw_only=True) class ListInferenceProfilesOutput(_SerdeShape): """Dataclass for ListInferenceProfilesOutput structure.""" @@ -3775,6 +5269,25 @@ class ListMarketplaceModelEndpointsInput(_SerdeShape): returned. """ +class ListMarketplaceModelEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `ListMarketplaceModelEndpointsInput`.""" + + max_results: int | None + """ + The maximum number of results to return in a single call. If more + results are available, the operation returns a `NextToken` value. + """ + next_token: str | None + """ + The token for the next set of results. You receive this token from a + previous `ListMarketplaceModelEndpoints` call. + """ + model_source_equals: str | None + """ + If specified, only endpoints for the given model source identifier are + returned. + """ + @dataclass(kw_only=True) class ListMarketplaceModelEndpointsOutput(_SerdeShape): """Dataclass for ListMarketplaceModelEndpointsOutput structure.""" @@ -3840,6 +5353,51 @@ class ListModelCopyJobsInput(_SerdeShape): sort_order: str | None = ... """Specifies whether to sort the results in ascending or descending order.""" +class ListModelCopyJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListModelCopyJobsInput`.""" + + creation_time_after: datetime | None + """Filters for model copy jobs created after the specified time.""" + creation_time_before: datetime | None + """Filters for model copy jobs created before the specified time.""" + status_equals: str | None + """ + Filters for model copy jobs whose status matches the value that you + specify. + """ + source_account_equals: str | None + """ + Filters for model copy jobs in which the account that the source model + belongs to is equal to the value that you specify. + """ + source_model_arn_equals: str | None + """ + Filters for model copy jobs in which the Amazon Resource Name (ARN) of + the source model to is equal to the value that you specify. + """ + target_model_name_contains: str | None + """ + Filters for model copy jobs in which the name of the copied model + contains the string that you specify. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + sort_by: str | None + """The field to sort by in the returned list of model copy jobs.""" + sort_order: str | None + """Specifies whether to sort the results in ascending or descending order.""" + @dataclass(kw_only=True) class ListModelCopyJobsOutput(_SerdeShape): """Dataclass for ListModelCopyJobsOutput structure.""" @@ -3893,6 +5451,38 @@ class ListModelCustomizationJobsInput(_SerdeShape): sort_order: str | None = ... """The sort order of the results.""" +class ListModelCustomizationJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListModelCustomizationJobsInput`.""" + + creation_time_after: datetime | None + """Return customization jobs created after the specified time.""" + creation_time_before: datetime | None + """Return customization jobs created before the specified time.""" + status_equals: str | None + """Return customization jobs with the specified status.""" + name_contains: str | None + """ + Return customization jobs only if the job name contains these + characters. + """ + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + sort_by: str | None + """The field to sort by in the returned list of jobs.""" + sort_order: str | None + """The sort order of the results.""" + @dataclass(kw_only=True) class ListModelCustomizationJobsOutput(_SerdeShape): """Dataclass for ListModelCustomizationJobsOutput structure.""" @@ -3943,6 +5533,35 @@ class ListModelImportJobsInput(_SerdeShape): sort_order: str | None = ... """Specifies whether to sort the results in ascending or descending order.""" +class ListModelImportJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListModelImportJobsInput`.""" + + creation_time_after: datetime | None + """Return import jobs that were created after the specified time.""" + creation_time_before: datetime | None + """Return import jobs that were created before the specified time.""" + status_equals: str | None + """Return imported jobs with the specified status.""" + name_contains: str | None + """Return imported jobs only if the job name contains these characters.""" + max_results: int | None + """ + The maximum number of results to return in the response. If the total + number of results is greater than this value, use the token returned in + the response in the `nextToken` field when making another request to + return the next batch of results. + """ + next_token: str | None + """ + If the total number of results is greater than the `maxResults` value + provided in the request, enter the token returned in the `nextToken` + field in the response in this field to return the next batch of results. + """ + sort_by: str | None + """The field to sort by in the returned list of imported jobs.""" + sort_order: str | None + """Specifies whether to sort the results in ascending or descending order.""" + @dataclass(kw_only=True) class ListModelImportJobsOutput(_SerdeShape): """Dataclass for ListModelImportJobsOutput structure.""" @@ -4050,6 +5669,92 @@ class ListModelInvocationJobsInput(_SerdeShape): sort_order: str | None = ... """Specifies whether to sort the results by ascending or descending order.""" +class ListModelInvocationJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListModelInvocationJobsInput`.""" + + submit_time_after: datetime | None + """ + Specify a time to filter for batch inference jobs that were submitted + after the time you specify. + """ + submit_time_before: datetime | None + """ + Specify a time to filter for batch inference jobs that were submitted + before the time you specify. + """ + status_equals: str | None + """ + Specify a status to filter for batch inference jobs whose statuses match + the string you specify. + + The following statuses are possible: + + - Submitted -- This job has been submitted to a queue for validation. + + - Validating -- This job is being validated for the requirements + described in [Format and upload your batch inference + data](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data.html). + The criteria include the following: + + - Your IAM service role has access to the Amazon S3 buckets containing + your files. + + - Your files are .jsonl files and each individual record is a JSON + object in the correct format. Note that validation doesn't check if + the `modelInput` value matches the request body for the model. + + - Your files fulfill the requirements for file size and number of + records. For more information, see [Quotas for Amazon + Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html). + + - Scheduled -- This job has been validated and is now in a queue. The + job will automatically start when it reaches its turn. + + - Expired -- This job timed out because it was scheduled but didn't + begin before the set timeout duration. Submit a new job request. + + - InProgress -- This job has begun. You can start viewing the results in + the output S3 location. + + - Completed -- This job has successfully completed. View the output + files in the output S3 location. + + - PartiallyCompleted -- This job has partially completed. Not all of + your records could be processed in time. View the output files in the + output S3 location. + + - Failed -- This job has failed. Check the failure message for any + further details. For further assistance, reach out to the [Amazon Web + Services Support + Center](https://console.aws.amazon.com/support/home/). + + - Stopped -- This job was stopped by a user. + + - Stopping -- This job is being stopped by a user. + """ + name_contains: str | None + """ + Specify a string to filter for batch inference jobs whose names contain + the string. + """ + max_results: int | None + """ + The maximum number of results to return. If there are more results than + the number that you specify, a `nextToken` value is returned. Use the + `nextToken` in a request to return the next batch of results. + """ + next_token: str | None + """ + If there were more results than the value you specified in the + `maxResults` field in a previous `ListModelInvocationJobs` request, the + response would have returned a `nextToken` value. To see the next batch + of results, send the `nextToken` value in another request. + """ + sort_by: str | None + """An attribute by which to sort the results.""" + sort_order: str | None + """Specifies whether to sort the results by ascending or descending order.""" + @dataclass(kw_only=True) class ListModelInvocationJobsOutput(_SerdeShape): """Dataclass for ListModelInvocationJobsOutput structure.""" @@ -4084,7 +5789,20 @@ class ListPromptRoutersInput(_SerdeShape): Specify the pagination token from a previous request to retrieve the next page of results. """ - type: str = ... + type: str = ... + """The type of the prompt routers, such as whether it's default or custom.""" + +class ListPromptRoutersInputDict(TypedDict, total=False): + """Dictionary form of `ListPromptRoutersInput`.""" + + max_results: int | None + """The maximum number of prompt routers to return in one page of results.""" + next_token: str | None + """ + Specify the pagination token from a previous request to retrieve the + next page of results. + """ + type: str | None """The type of the prompt routers, such as whether it's default or custom.""" @dataclass(kw_only=True) @@ -4153,6 +5871,52 @@ class ListProvisionedModelThroughputsInput(_SerdeShape): sort_order: str | None = ... """The sort order of the results.""" +class ListProvisionedModelThroughputsInputDict(TypedDict, total=False): + """Dictionary form of `ListProvisionedModelThroughputsInput`.""" + + creation_time_after: datetime | None + """ + A filter that returns Provisioned Throughputs created after the + specified time. + """ + creation_time_before: datetime | None + """ + A filter that returns Provisioned Throughputs created before the + specified time. + """ + status_equals: str | None + """ + A filter that returns Provisioned Throughputs if their statuses matches + the value that you specify. + """ + model_arn_equals: str | None + """ + A filter that returns Provisioned Throughputs whose model Amazon + Resource Name (ARN) is equal to the value that you specify. + """ + name_contains: str | None + """ + A filter that returns Provisioned Throughputs if their name contains the + expression that you specify. + """ + max_results: int | None + """ + THe maximum number of results to return in the response. If there are + more results than the number you specified, the response returns a + `nextToken` value. To see the next batch of results, send the + `nextToken` value in another list request. + """ + next_token: str | None + """ + If there are more results than the number you specified in the + `maxResults` field, the response returns a `nextToken` value. To see the + next batch of results, specify the `nextToken` value in this field. + """ + sort_by: str | None + """The field by which to sort the returned list of Provisioned Throughputs.""" + sort_order: str | None + """The sort order of the results.""" + @dataclass(kw_only=True) class ListProvisionedModelThroughputsOutput(_SerdeShape): """Dataclass for ListProvisionedModelThroughputsOutput structure.""" @@ -4184,6 +5948,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """The Amazon Resource Name (ARN) of the resource.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -4217,6 +5987,24 @@ class LoggingConfig(_SerdeShape): audio_data_delivery_enabled: bool | None = ... """Set to include audio data in the log delivery.""" +class LoggingConfigDict(TypedDict, total=False): + """Dictionary form of `LoggingConfig`.""" + + cloud_watch_config: CloudWatchConfig | CloudWatchConfigDict | None + """CloudWatch logging configuration.""" + s3_config: S3Config | S3ConfigDict | None + """S3 configuration for storing log data.""" + text_data_delivery_enabled: bool | None + """Set to include text data in the log delivery.""" + image_data_delivery_enabled: bool | None + """Set to include image data in the log delivery.""" + embedding_data_delivery_enabled: bool | None + """Set to include embeddings data in the log delivery.""" + video_data_delivery_enabled: bool | None + """Set to include video data in the log delivery.""" + audio_data_delivery_enabled: bool | None + """Set to include audio data in the log delivery.""" + @dataclass(kw_only=True) class MarketplaceModelEndpoint(_SerdeShape): """ @@ -4303,6 +6091,26 @@ class MetadataAttributeSchema(_SerdeShape): additional context about its purpose and usage. """ +class MetadataAttributeSchemaDict(TypedDict, total=False): + """Dictionary form of `MetadataAttributeSchema`.""" + + key: Required[str] + """ + The unique identifier for the metadata attribute. This key is used to + reference the attribute in filter expressions and reranking + configurations. + """ + type: Required[str] + """ + The data type of the metadata attribute. The type determines how the + attribute can be used in filter expressions and reranking. + """ + description: Required[str] + """ + An optional description of the metadata attribute that provides + additional context about its purpose and usage. + """ + @dataclass(kw_only=True) class MetadataConfigurationForReranking(_SerdeShape): """ @@ -4326,6 +6134,26 @@ class MetadataConfigurationForReranking(_SerdeShape): when selectionMode is set to SELECTIVE. """ +class MetadataConfigurationForRerankingDict(TypedDict, total=False): + """Dictionary form of `MetadataConfigurationForReranking`.""" + + selection_mode: Required[str] + """ + The mode for selecting which metadata fields to include in the reranking + process. Valid values are ALL (use all available metadata fields) or + SELECTIVE (use only specified fields). + """ + selective_mode_configuration: ( + RerankingMetadataSelectiveModeConfiguration + | RerankingMetadataSelectiveModeConfigurationDict + | None + ) + """ + Configuration for selective mode, which allows you to explicitly include + or exclude specific metadata fields during reranking. This is only used + when selectionMode is set to SELECTIVE. + """ + @dataclass(kw_only=True) class ModelConfiguration(_SerdeShape): """ @@ -4364,6 +6192,40 @@ class ModelConfiguration(_SerdeShape): configuration. """ +class ModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `ModelConfiguration`.""" + + model_id: Required[str] + """ + The model to use for optimization. The value depends on the resource + that you use: + + - If you use a base model, specify the model ID or its ARN. For a list + of model IDs, see [Models at a + glance](https://docs.aws.amazon.com/bedrock/latest/userguide/model-cards.html) + in the Amazon Bedrock User Guide. + + - If you use a cross-Region (system-defined) inference profile, specify + the inference profile ID or its ARN. For a list of inference profile + IDs, see [Supported Regions and models for inference + profiles](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) + in the Amazon Bedrock User Guide. + + - If you use an application inference profile, specify its full ARN, + including the account ID and Region. + """ + inference_config: InferenceConfiguration | InferenceConfigurationDict | None + """ + The inference configuration for the model, including parameters such as + maximum tokens, temperature, and top-p. + """ + additional_model_request_fields: Mapping[str, Document] | None + """ + Additional model request fields. Use this to pass model-specific + parameters that are not included in the standard inference + configuration. + """ + class ModelCopyJobStatus(UnknownEnumMixin, StrEnum): IN_PROGRESS = "InProgress" COMPLETED = "Completed" @@ -4477,6 +6339,13 @@ ModelDataSource = Union[ModelDataSourceS3DataSource | ModelDataSourceUnknown] class _ModelDataSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ModelDataSource: ... +class ModelDataSourceS3DataSourceDict(TypedDict): + s3_data_source: S3DataSource | S3DataSourceDict + """The Amazon S3 data source of the model to import.""" + +ModelDataSourceDict = Union[ModelDataSourceS3DataSourceDict] +"""Dictionary form of `ModelDataSource`, setting exactly one variant.""" + @dataclass(kw_only=True) class ModelEnforcement(_SerdeShape): """Model-specific information for the enforced guardrail configuration.""" @@ -4486,6 +6355,14 @@ class ModelEnforcement(_SerdeShape): excluded_models: list[str] """Models to exclude from enforcement of the guardrail.""" +class ModelEnforcementDict(TypedDict, total=False): + """Dictionary form of `ModelEnforcement`.""" + + included_models: Required[Sequence[str]] + """Models to enforce the guardrail on.""" + excluded_models: Required[Sequence[str]] + """Models to exclude from enforcement of the guardrail.""" + class ModelImportJobStatus(UnknownEnumMixin, StrEnum): IN_PROGRESS = "InProgress" COMPLETED = "Completed" @@ -4539,6 +6416,20 @@ class _ModelInvocationJobInputDataConfigDeserializer: self, deserializer: ShapeDeserializer ) -> ModelInvocationJobInputDataConfig: ... +class ModelInvocationJobInputDataConfigS3InputDataConfigDict(TypedDict): + s3_input_data_config: ( + ModelInvocationJobS3InputDataConfig | ModelInvocationJobS3InputDataConfigDict + ) + """Contains the configuration of the S3 location of the input data.""" + +ModelInvocationJobInputDataConfigDict = Union[ + ModelInvocationJobInputDataConfigS3InputDataConfigDict +] +""" +Dictionary form of `ModelInvocationJobInputDataConfig`, setting +exactly one variant. +""" + @dataclass class ModelInvocationJobOutputDataConfigS3OutputDataConfig(_SerdeShape): """Contains the configuration of the S3 location of the output data.""" @@ -4566,6 +6457,20 @@ class _ModelInvocationJobOutputDataConfigDeserializer: self, deserializer: ShapeDeserializer ) -> ModelInvocationJobOutputDataConfig: ... +class ModelInvocationJobOutputDataConfigS3OutputDataConfigDict(TypedDict): + s3_output_data_config: ( + ModelInvocationJobS3OutputDataConfig | ModelInvocationJobS3OutputDataConfigDict + ) + """Contains the configuration of the S3 location of the output data.""" + +ModelInvocationJobOutputDataConfigDict = Union[ + ModelInvocationJobOutputDataConfigS3OutputDataConfigDict +] +""" +Dictionary form of `ModelInvocationJobOutputDataConfig`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class ModelInvocationJobS3InputDataConfig(_SerdeShape): """Contains the configuration of the S3 location of the input data.""" @@ -4580,6 +6485,19 @@ class ModelInvocationJobS3InputDataConfig(_SerdeShape): containing the input data. """ +class ModelInvocationJobS3InputDataConfigDict(TypedDict, total=False): + """Dictionary form of `ModelInvocationJobS3InputDataConfig`.""" + + s3_input_format: str | None + """The format of the input data.""" + s3_uri: Required[str] + """The S3 location of the input data.""" + s3_bucket_owner: str | None + """ + The ID of the Amazon Web Services account that owns the S3 bucket + containing the input data. + """ + @dataclass(kw_only=True) class ModelInvocationJobS3OutputDataConfig(_SerdeShape): """Contains the configuration of the S3 location of the output data.""" @@ -4597,6 +6515,22 @@ class ModelInvocationJobS3OutputDataConfig(_SerdeShape): containing the output data. """ +class ModelInvocationJobS3OutputDataConfigDict(TypedDict, total=False): + """Dictionary form of `ModelInvocationJobS3OutputDataConfig`.""" + + s3_uri: Required[str] + """The S3 location of the output data.""" + s3_encryption_key_id: str | None + """ + The unique identifier of the key that encrypts the S3 location of the + output data. + """ + s3_bucket_owner: str | None + """ + The ID of the Amazon Web Services account that owns the S3 bucket + containing the output data. + """ + class ModelInvocationJobStatus(UnknownEnumMixin, StrEnum): SUBMITTED = "Submitted" IN_PROGRESS = "InProgress" @@ -4756,6 +6690,19 @@ class ModelPackageArnDataSource(_SerdeShape): permissions on the model package resource. """ +class ModelPackageArnDataSourceDict(TypedDict, total=False): + """Dictionary form of `ModelPackageArnDataSource`.""" + + model_package_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the SageMaker AI model package. The + ARN must be for a model package of `restricted` type. + + To use a model package ARN, you must have the + `sagemaker:DescribeModelPackage` and `sagemaker:AccessModelPackageData` + permissions on the model package resource. + """ + class ModelStatus(UnknownEnumMixin, StrEnum): ACTIVE = "Active" CREATING = "Creating" @@ -4786,6 +6733,14 @@ class OrchestrationConfiguration(_SerdeShape): query_transformation_configuration: QueryTransformationConfiguration """Contains configuration details for transforming the prompt.""" +class OrchestrationConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrchestrationConfiguration`.""" + + query_transformation_configuration: Required[ + QueryTransformationConfiguration | QueryTransformationConfigurationDict + ] + """Contains configuration details for transforming the prompt.""" + @dataclass(kw_only=True) class OutputDataConfig(_SerdeShape): """S3 Location of the output data.""" @@ -4793,6 +6748,12 @@ class OutputDataConfig(_SerdeShape): s3_uri: str """The S3 URI where the output data is stored.""" +class OutputDataConfigDict(TypedDict, total=False): + """Dictionary form of `OutputDataConfig`.""" + + s3_uri: Required[str] + """The S3 URI where the output data is stored.""" + class PerformanceConfigLatency(UnknownEnumMixin, StrEnum): STANDARD = "standard" OPTIMIZED = "optimized" @@ -4807,6 +6768,15 @@ class PerformanceConfiguration(_SerdeShape): model or inference profile. """ +class PerformanceConfigurationDict(TypedDict, total=False): + """Dictionary form of `PerformanceConfiguration`.""" + + latency: str | None + """ + Specifies whether to use the latency-optimized or standard version of a + model or inference profile. + """ + @dataclass(kw_only=True) class PricingTerm(_SerdeShape): """Describes the usage-based pricing term.""" @@ -4849,6 +6819,12 @@ class PromptRouterTargetModel(_SerdeShape): model_arn: str | None = ... """The target model's ARN.""" +class PromptRouterTargetModelDict(TypedDict, total=False): + """Dictionary form of `PromptRouterTargetModel`.""" + + model_arn: Required[str] + """The target model's ARN.""" + class PromptRouterType(UnknownEnumMixin, StrEnum): CUSTOM = "custom" DEFAULT = "default" @@ -4874,6 +6850,23 @@ class PromptTemplate(_SerdeShape): models](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags). """ +class PromptTemplateDict(TypedDict, total=False): + """Dictionary form of `PromptTemplate`.""" + + text_prompt_template: str | None + """ + The template for the prompt that's sent to the model for response + generation. You can include prompt placeholders, which become replaced + before the prompt is sent to the model to provide instructions and + context to the model. In addition, you can include XML tags to delineate + meaningful sections of the prompt template. + + For more information, see [Knowledge base prompt + template](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html) + and [Use XML tags with Anthropic Claude + models](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags). + """ + class ProvisionedModelStatus(UnknownEnumMixin, StrEnum): CREATING = "Creating" IN_SERVICE = "InService" @@ -4940,6 +6933,12 @@ class PutAccountDataRetentionInput(_SerdeShape): mode: str | None = ... """The data retention mode to set for the account.""" +class PutAccountDataRetentionInputDict(TypedDict, total=False): + """Dictionary form of `PutAccountDataRetentionInput`.""" + + mode: Required[str] + """The data retention mode to set for the account.""" + @dataclass(kw_only=True) class PutAccountDataRetentionOutput(_SerdeShape): """Dataclass for PutAccountDataRetentionOutput structure.""" @@ -4967,6 +6966,17 @@ class PutEnforcedGuardrailConfigurationInput(_SerdeShape): ) = ... """Account-level enforced guardrail input configuration.""" +class PutEnforcedGuardrailConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutEnforcedGuardrailConfigurationInput`.""" + + config_id: str | None + """Unique ID for the account enforced configuration.""" + guardrail_inference_config: Required[ + AccountEnforcedGuardrailInferenceInputConfiguration + | AccountEnforcedGuardrailInferenceInputConfigurationDict + ] + """Account-level enforced guardrail input configuration.""" + @dataclass(kw_only=True) class PutEnforcedGuardrailConfigurationOutput(_SerdeShape): """Dataclass for PutEnforcedGuardrailConfigurationOutput structure.""" @@ -4992,6 +7002,12 @@ class PutModelInvocationLoggingConfigurationInput(_SerdeShape): logging_config: LoggingConfig | None = ... """The logging configuration values to set.""" +class PutModelInvocationLoggingConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutModelInvocationLoggingConfigurationInput`.""" + + logging_config: Required[LoggingConfig | LoggingConfigDict] + """The logging configuration values to set.""" + @dataclass(kw_only=True) class PutModelInvocationLoggingConfigurationOutput(_SerdeShape): """Dataclass for PutModelInvocationLoggingConfigurationOutput structure.""" @@ -5013,6 +7029,14 @@ class PutResourcePolicyInput(_SerdeShape): resource_policy: str | None = ... """The JSON string representing the Bedrock resource policy.""" +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + resource_arn: Required[str] + """The ARN of the Bedrock resource to which this resource policy applies.""" + resource_policy: Required[str] + """The JSON string representing the Bedrock resource policy.""" + @dataclass(kw_only=True) class PutResourcePolicyOutput(_SerdeShape): """Dataclass for PutResourcePolicyOutput structure.""" @@ -5034,6 +7058,12 @@ class PutUseCaseForModelAccessInput(_SerdeShape): form_data: bytes | None = ... """Put customer profile Request.""" +class PutUseCaseForModelAccessInputDict(TypedDict, total=False): + """Dictionary form of `PutUseCaseForModelAccessInput`.""" + + form_data: Required[bytes] + """Put customer profile Request.""" + @dataclass(kw_only=True) class PutUseCaseForModelAccessOutput(_SerdeShape): """Dataclass for PutUseCaseForModelAccessOutput structure.""" @@ -5053,6 +7083,12 @@ class QueryTransformationConfiguration(_SerdeShape): type: str """The type of transformation to apply to the prompt.""" +class QueryTransformationConfigurationDict(TypedDict, total=False): + """Dictionary form of `QueryTransformationConfiguration`.""" + + type: Required[str] + """The type of transformation to apply to the prompt.""" + class QueryTransformationType(UnknownEnumMixin, StrEnum): QUERY_DECOMPOSITION = "QUERY_DECOMPOSITION" @@ -5097,6 +7133,27 @@ generation. class _RAGConfigDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RAGConfig: ... +class RAGConfigKnowledgeBaseConfigDict(TypedDict): + knowledge_base_config: KnowledgeBaseConfig | KnowledgeBaseConfigDict + """ + Contains configuration details for knowledge base retrieval and response + generation. + """ + +class RAGConfigPrecomputedRagSourceConfigDict(TypedDict): + precomputed_rag_source_config: ( + EvaluationPrecomputedRagSourceConfig | EvaluationPrecomputedRagSourceConfigDict + ) + """ + Contains configuration details about the RAG source used to generate + inference response data for a Knowledge Base evaluation job. + """ + +RAGConfigDict = Union[ + RAGConfigKnowledgeBaseConfigDict | RAGConfigPrecomputedRagSourceConfigDict +] +"""Dictionary form of `RAGConfig`, setting exactly one variant.""" + @dataclass(kw_only=True) class RatingScaleItem(_SerdeShape): """ @@ -5109,6 +7166,14 @@ class RatingScaleItem(_SerdeShape): value: RatingScaleItemValue """Defines the value for one rating in a custom metric rating scale.""" +class RatingScaleItemDict(TypedDict, total=False): + """Dictionary form of `RatingScaleItem`.""" + + definition: Required[str] + """Defines the definition for one rating in a custom metric rating scale.""" + value: Required[RatingScaleItemValue | RatingScaleItemValueDict] + """Defines the value for one rating in a custom metric rating scale.""" + @dataclass class RatingScaleItemValueStringValue(_SerdeShape): """ @@ -5147,6 +7212,28 @@ RatingScaleItemValue = Union[ class _RatingScaleItemValueDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RatingScaleItemValue: ... +class RatingScaleItemValueStringValueDict(TypedDict): + string_value: str + """ + A string representing the value for a rating in a custom metric rating + scale. + """ + +class RatingScaleItemValueFloatValueDict(TypedDict): + float_value: float + """ + A floating point number representing the value for a rating in a custom + metric rating scale. + """ + +RatingScaleItemValueDict = Union[ + RatingScaleItemValueStringValueDict | RatingScaleItemValueFloatValueDict +] +""" +Dictionary form of `RatingScaleItemValue`, setting exactly one +variant. +""" + class ReasoningEffort(UnknownEnumMixin, StrEnum): LOW = "low" MEDIUM = "medium" @@ -5171,6 +7258,20 @@ class RegisterMarketplaceModelEndpointInput(_SerdeShape): the endpoint. """ +class RegisterMarketplaceModelEndpointInputDict(TypedDict, total=False): + """Dictionary form of `RegisterMarketplaceModelEndpointInput`.""" + + endpoint_identifier: Required[str] + """ + The ARN of the Amazon SageMaker endpoint you want to register with + Amazon Bedrock Marketplace. + """ + model_source_identifier: Required[str] + """ + The ARN of the model from Amazon Bedrock Marketplace that is deployed on + the endpoint. + """ + @dataclass(kw_only=True) class RegisterMarketplaceModelEndpointOutput(_SerdeShape): """Dataclass for RegisterMarketplaceModelEndpointOutput structure.""" @@ -5197,6 +7298,14 @@ class RequestMetadataBaseFilters(_SerdeShape): not_equals: dict[str, str] | None = ... """Include results where the key does not equal the value.""" +class RequestMetadataBaseFiltersDict(TypedDict, total=False): + """Dictionary form of `RequestMetadataBaseFilters`.""" + + equals: Mapping[str, str] | None + """Include results where the key equals the value.""" + not_equals: Mapping[str, str] | None + """Include results where the key does not equal the value.""" + @dataclass class RequestMetadataFiltersEquals(_SerdeShape): """Include results where the key equals the value.""" @@ -5250,6 +7359,33 @@ class _RequestMetadataFiltersDeserializer: self, deserializer: ShapeDeserializer ) -> RequestMetadataFilters: ... +class RequestMetadataFiltersEqualsDict(TypedDict): + equals: Mapping[str, str] + """Include results where the key equals the value.""" + +class RequestMetadataFiltersNotEqualsDict(TypedDict): + not_equals: Mapping[str, str] + """Include results where the key does not equal the value.""" + +class RequestMetadataFiltersAndAllDict(TypedDict): + and_all: Sequence[RequestMetadataBaseFilters | RequestMetadataBaseFiltersDict] + """Include results where all of the based filters match.""" + +class RequestMetadataFiltersOrAllDict(TypedDict): + or_all: Sequence[RequestMetadataBaseFilters | RequestMetadataBaseFiltersDict] + """Include results where any of the base filters match.""" + +RequestMetadataFiltersDict = Union[ + RequestMetadataFiltersEqualsDict + | RequestMetadataFiltersNotEqualsDict + | RequestMetadataFiltersAndAllDict + | RequestMetadataFiltersOrAllDict +] +""" +Dictionary form of `RequestMetadataFilters`, setting exactly one +variant. +""" + class RerankingMetadataSelectionMode(UnknownEnumMixin, StrEnum): SELECTIVE = "SELECTIVE" ALL = "ALL" @@ -5301,6 +7437,32 @@ class _RerankingMetadataSelectiveModeConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> RerankingMetadataSelectiveModeConfiguration: ... +class RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict(TypedDict): + fields_to_include: Sequence[FieldForReranking | FieldForRerankingDict] + """ + A list of metadata field names to explicitly include in the reranking + process. Only these fields will be considered when reordering search + results. This parameter cannot be used together with fieldsToExclude. + """ + +class RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict(TypedDict): + fields_to_exclude: Sequence[FieldForReranking | FieldForRerankingDict] + """ + A list of metadata field names to explicitly exclude from the reranking + process. All metadata fields except these will be considered when + reordering search results. This parameter cannot be used together with + fieldsToInclude. + """ + +RerankingMetadataSelectiveModeConfigurationDict = Union[ + RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict + | RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict +] +""" +Dictionary form of `RerankingMetadataSelectiveModeConfiguration`, +setting exactly one variant. +""" + @dataclass(kw_only=True) class ResourceInUseException(ServiceError, _SerdeShape): """ @@ -5547,6 +7709,177 @@ knowledge base data sources before returning results. class _RetrievalFilterDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RetrievalFilter: ... +class RetrievalFilterEqualsDict(TypedDict): + equals: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value matches the value + in this object. + + The following example would return data sources with an animal attribute + whose value is 'cat': `"equals": { "key": "animal", "value": "cat" }` + """ + +class RetrievalFilterNotEqualsDict(TypedDict): + not_equals: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources that contain a metadata attribute whose name + matches the key and whose value doesn't match the value in this object + are returned. + + The following example would return data sources that don't contain an + animal attribute whose value is 'cat': + `"notEquals": { "key": "animal", "value": "cat" }` + """ + +class RetrievalFilterGreaterThanDict(TypedDict): + greater_than: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value is greater than the + value in this object. + + The following example would return data sources with an year attribute + whose value is greater than '1989': + `"greaterThan": { "key": "year", "value": 1989 }` + """ + +class RetrievalFilterGreaterThanOrEqualsDict(TypedDict): + greater_than_or_equals: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value is greater than or + equal to the value in this object. + + The following example would return data sources with an year attribute + whose value is greater than or equal to '1989': + `"greaterThanOrEquals": { "key": "year", "value": 1989 }` + """ + +class RetrievalFilterLessThanDict(TypedDict): + less_than: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value is less than the + value in this object. + + The following example would return data sources with an year attribute + whose value is less than to '1989': + `"lessThan": { "key": "year", "value": 1989 }` + """ + +class RetrievalFilterLessThanOrEqualsDict(TypedDict): + less_than_or_equals: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value is less than or + equal to the value in this object. + + The following example would return data sources with an year attribute + whose value is less than or equal to '1989': + `"lessThanOrEquals": { "key": "year", "value": 1989 }` + """ + +class RetrievalFilterInDict(TypedDict): + in_: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value is in the list + specified in the value in this object. + + The following example would return data sources with an animal attribute + that is either 'cat' or 'dog': + `"in": { "key": "animal", "value": ["cat", "dog"] }` + """ + +class RetrievalFilterNotInDict(TypedDict): + not_in: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value isn't in the list + specified in the value in this object. + + The following example would return data sources whose animal attribute + is neither 'cat' nor 'dog': + `"notIn": { "key": "animal", "value": ["cat", "dog"] }` + """ + +class RetrievalFilterStartsWithDict(TypedDict): + starts_with: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value starts with the + value in this object. This filter is currently only supported for Amazon + OpenSearch Serverless vector stores. + + The following example would return data sources with an animal attribute + starts with 'ca' (for example, 'cat' or 'camel'). + `"startsWith": { "key": "animal", "value": "ca" }` + """ + +class RetrievalFilterListContainsDict(TypedDict): + list_contains: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value is a list that + contains the value as one of its members. + + The following example would return data sources with an animals + attribute that is a list containing a cat member (for example, + `["dog", "cat"]`): + `"listContains": { "key": "animals", "value": "cat" }` + """ + +class RetrievalFilterStringContainsDict(TypedDict): + string_contains: FilterAttribute | FilterAttributeDict + """ + Knowledge base data sources are returned if they contain a metadata + attribute whose name matches the key and whose value is one of the + following: + + A string that contains the value as a substring. The following example + would return data sources with an animal attribute that contains the + substring at (for example, 'cat'): + `"stringContains": { "key": "animal", "value": "at" }` + + A list with a member that contains the value as a substring. The + following example would return data sources with an animals attribute + that is a list containing a member that contains the substring at (for + example, `["dog", "cat"]`): + `"stringContains": { "key": "animals", "value": "at" }` + """ + +class RetrievalFilterAndAllDict(TypedDict): + and_all: Sequence[RetrievalFilter | RetrievalFilterDict] + """ + Knowledge base data sources are returned if their metadata attributes + fulfill all the filter conditions inside this list. + """ + +class RetrievalFilterOrAllDict(TypedDict): + or_all: Sequence[RetrievalFilter | RetrievalFilterDict] + """ + Knowledge base data sources are returned if their metadata attributes + fulfill at least one of the filter conditions inside this list. + """ + +RetrievalFilterDict = Union[ + RetrievalFilterEqualsDict + | RetrievalFilterNotEqualsDict + | RetrievalFilterGreaterThanDict + | RetrievalFilterGreaterThanOrEqualsDict + | RetrievalFilterLessThanDict + | RetrievalFilterLessThanOrEqualsDict + | RetrievalFilterInDict + | RetrievalFilterNotInDict + | RetrievalFilterStartsWithDict + | RetrievalFilterListContainsDict + | RetrievalFilterStringContainsDict + | RetrievalFilterAndAllDict + | RetrievalFilterOrAllDict +] +"""Dictionary form of `RetrievalFilter`, setting exactly one variant.""" + @dataclass(kw_only=True) class RetrieveAndGenerateConfiguration(_SerdeShape): """ @@ -5577,6 +7910,36 @@ class RetrieveAndGenerateConfiguration(_SerdeShape): `retrieveAndGenerate` function. """ +class RetrieveAndGenerateConfigurationDict(TypedDict, total=False): + """Dictionary form of `RetrieveAndGenerateConfiguration`.""" + + type: Required[str] + """ + The type of resource that contains your data for retrieving information + and generating responses. + + If you choose to use `EXTERNAL_SOURCES`, then currently only Claude 3 + Sonnet models for knowledge bases are supported. + """ + knowledge_base_configuration: ( + KnowledgeBaseRetrieveAndGenerateConfiguration + | KnowledgeBaseRetrieveAndGenerateConfigurationDict + | None + ) + """ + Contains configuration details for the knowledge base retrieval and + response generation. + """ + external_sources_configuration: ( + ExternalSourcesRetrieveAndGenerateConfiguration + | ExternalSourcesRetrieveAndGenerateConfigurationDict + | None + ) + """ + The configuration for the external source wrapper object in the + `retrieveAndGenerate` function. + """ + class RetrieveAndGenerateType(UnknownEnumMixin, StrEnum): KNOWLEDGE_BASE = "KNOWLEDGE_BASE" EXTERNAL_SOURCES = "EXTERNAL_SOURCES" @@ -5593,6 +7956,16 @@ class RetrieveConfig(_SerdeShape): knowledge_base_retrieval_configuration: KnowledgeBaseRetrievalConfiguration """Contains configuration details for knowledge base retrieval.""" +class RetrieveConfigDict(TypedDict, total=False): + """Dictionary form of `RetrieveConfig`.""" + + knowledge_base_id: Required[str] + """The unique identifier of the knowledge base.""" + knowledge_base_retrieval_configuration: Required[ + KnowledgeBaseRetrievalConfiguration | KnowledgeBaseRetrievalConfigurationDict + ] + """Contains configuration details for knowledge base retrieval.""" + @dataclass(kw_only=True) class RFTConfig(_SerdeShape): """ @@ -5611,6 +7984,20 @@ class RFTConfig(_SerdeShape): process, including learning rate, batch size, and epoch count. """ +class RFTConfigDict(TypedDict, total=False): + """Dictionary form of `RFTConfig`.""" + + grader_config: GraderConfig | GraderConfigDict | None + """ + Configuration for the grader that evaluates model responses and provides + reward signals during RFT training. + """ + hyper_parameters: RFTHyperParameters | RFTHyperParametersDict | None + """ + Hyperparameters that control the reinforcement fine-tuning training + process, including learning rate, batch size, and epoch count. + """ + @dataclass(kw_only=True) class RFTHyperParameters(_SerdeShape): """ @@ -5661,6 +8048,52 @@ class RFTHyperParameters(_SerdeShape): training steps. More frequent evaluation provides better monitoring. """ +class RFTHyperParametersDict(TypedDict, total=False): + """Dictionary form of `RFTHyperParameters`.""" + + epoch_count: int | None + """ + Number of training epochs to run during reinforcement fine-tuning. + Higher values may improve performance but increase training time. + """ + batch_size: int | None + """ + Number of training samples processed in each batch during reinforcement + fine-tuning (RFT) training. Larger batches may improve training + stability. + """ + learning_rate: float | None + """ + Learning rate for the reinforcement fine-tuning. Controls how quickly + the model adapts to reward signals. + """ + max_prompt_length: int | None + """ + Maximum length of input prompts during RFT training, measured in tokens. + Longer prompts allow more context but increase memory usage and + training-time. + """ + training_sample_per_prompt: int | None + """ + Number of response samples generated per prompt during RFT training. + More samples provide better reward signal estimation. + """ + inference_max_tokens: int | None + """ + Maximum number of tokens the model can generate in response to each + prompt during RFT training. + """ + reasoning_effort: str | None + """ + Level of reasoning effort applied during RFT training. Higher values may + improve response quality but increase training time. + """ + eval_interval: int | None + """ + Interval between evaluation runs during RFT training, measured in + training steps. More frequent evaluation provides better monitoring. + """ + @dataclass(kw_only=True) class RoutingCriteria(_SerdeShape): """Routing criteria for a prompt router.""" @@ -5668,6 +8101,12 @@ class RoutingCriteria(_SerdeShape): response_quality_difference: float """The criteria's response quality difference.""" +class RoutingCriteriaDict(TypedDict, total=False): + """Dictionary form of `RoutingCriteria`.""" + + response_quality_difference: Required[float] + """The criteria's response quality difference.""" + @dataclass(kw_only=True) class S3Config(_SerdeShape): """S3 configuration for storing log data.""" @@ -5677,6 +8116,14 @@ class S3Config(_SerdeShape): key_prefix: str | None = ... """S3 prefix.""" +class S3ConfigDict(TypedDict, total=False): + """Dictionary form of `S3Config`.""" + + bucket_name: Required[str] + """S3 bucket name.""" + key_prefix: str | None + """S3 prefix.""" + @dataclass(kw_only=True) class S3DataSource(_SerdeShape): """The Amazon S3 data source of the model to import.""" @@ -5684,6 +8131,12 @@ class S3DataSource(_SerdeShape): s3_uri: str """The URI of the Amazon S3 data source.""" +class S3DataSourceDict(TypedDict, total=False): + """Dictionary form of `S3DataSource`.""" + + s3_uri: Required[str] + """The URI of the Amazon S3 data source.""" + class S3InputFormat(UnknownEnumMixin, StrEnum): JSONL = "JSONL" @@ -5694,6 +8147,12 @@ class S3ObjectDoc(_SerdeShape): uri: str """The S3 URI location for the wrapper object of the document.""" +class S3ObjectDocDict(TypedDict, total=False): + """Dictionary form of `S3ObjectDoc`.""" + + uri: Required[str] + """The S3 URI location for the wrapper object of the document.""" + @dataclass(kw_only=True) class SageMakerEndpoint(_SerdeShape): """Specifies the configuration for a Amazon SageMaker endpoint.""" @@ -5720,6 +8179,31 @@ class SageMakerEndpoint(_SerdeShape): vpc: VpcConfig | None = ... """The VPC configuration for the endpoint.""" +class SageMakerEndpointDict(TypedDict, total=False): + """Dictionary form of `SageMakerEndpoint`.""" + + initial_instance_count: Required[int] + """ + The number of Amazon EC2 compute instances to deploy for initial + endpoint creation. + """ + instance_type: Required[str] + """The Amazon EC2 compute instance type to deploy for hosting the model.""" + execution_role: Required[str] + """ + The ARN of the IAM role that Amazon SageMaker can assume to access model + artifacts and docker image for deployment on Amazon EC2 compute + instances or for batch transform jobs. + """ + kms_encryption_key: str | None + """ + The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt + data on the storage volume attached to the Amazon EC2 compute instance + that hosts the endpoint. + """ + vpc: VpcConfig | VpcConfigDict | None + """The VPC configuration for the endpoint.""" + class SearchType(UnknownEnumMixin, StrEnum): HYBRID = "HYBRID" SEMANTIC = "SEMANTIC" @@ -5733,6 +8217,14 @@ class SelectiveContentGuarding(_SerdeShape): messages: str | None = ... """Selective guarding mode for user messages.""" +class SelectiveContentGuardingDict(TypedDict, total=False): + """Dictionary form of `SelectiveContentGuarding`.""" + + system: str | None + """Selective guarding mode for system prompts.\"""" + messages: str | None + """Selective guarding mode for user messages.""" + class SelectiveGuardingMode(UnknownEnumMixin, StrEnum): SELECTIVE = "SELECTIVE" COMPREHENSIVE = "COMPREHENSIVE" diff --git a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_2.pyi b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_2.pyi index 5562be8bf..73af5e706 100644 --- a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_2.pyi +++ b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/models_2.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.documents import Document from smithy_core.response import ResponseMetadata @@ -10,21 +12,34 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( AutomatedReasoningPolicyAnnotation, + AutomatedReasoningPolicyAnnotationDict, AutomatedReasoningPolicyBuildWorkflowSource, + AutomatedReasoningPolicyBuildWorkflowSourceDict, AutomatedReasoningPolicyDefinition, + AutomatedReasoningPolicyDefinitionDict, DataProcessingDetails, EndpointConfig, + EndpointConfigDict, GuardrailAutomatedReasoningPolicyConfig, + GuardrailAutomatedReasoningPolicyConfigDict, GuardrailContentPolicyConfig, + GuardrailContentPolicyConfigDict, GuardrailContextualGroundingPolicyConfig, + GuardrailContextualGroundingPolicyConfigDict, GuardrailCrossRegionConfig, + GuardrailCrossRegionConfigDict, GuardrailSensitiveInformationPolicyConfig, + GuardrailSensitiveInformationPolicyConfigDict, GuardrailTopicPolicyConfig, + GuardrailTopicPolicyConfigDict, GuardrailWordPolicyConfig, + GuardrailWordPolicyConfigDict, InvocationLogsConfig, + InvocationLogsConfigDict, LegalTerm, MarketplaceModelEndpoint, MetadataConfigurationForReranking, + MetadataConfigurationForRerankingDict, PricingTerm, ServiceError, _SerdeShape, @@ -98,6 +113,36 @@ class StartAutomatedReasoningPolicyBuildWorkflowInput(_SerdeShape): or repair instructions for existing policies. """ +class StartAutomatedReasoningPolicyBuildWorkflowInputDict(TypedDict, total=False): + """Dictionary form of `StartAutomatedReasoningPolicyBuildWorkflowInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy for + which to start the build workflow. + """ + build_workflow_type: Required[str] + """ + The type of build workflow to start (e.g., DOCUMENT_INGESTION for + processing new documents, POLICY_REPAIR for fixing existing policies). + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than once. If this token matches a previous request, + Amazon Bedrock ignores the request but doesn't return an error. + + This field is autopopulated if not provided. + """ + source_content: Required[ + AutomatedReasoningPolicyBuildWorkflowSource + | AutomatedReasoningPolicyBuildWorkflowSourceDict + ] + """ + The source content for the build workflow, such as documents to analyze + or repair instructions for existing policies. + """ + @dataclass(kw_only=True) class StartAutomatedReasoningPolicyBuildWorkflowOutput(_SerdeShape): """ @@ -149,6 +194,34 @@ class StartAutomatedReasoningPolicyTestWorkflowInput(_SerdeShape): This field is autopopulated if not provided. """ +class StartAutomatedReasoningPolicyTestWorkflowInputDict(TypedDict, total=False): + """Dictionary form of `StartAutomatedReasoningPolicyTestWorkflowInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy to + test. + """ + build_workflow_id: Required[str] + """ + The build workflow identifier. The build workflow must show a + `COMPLETED` status before running tests. + """ + test_case_ids: Sequence[str] | None + """ + The list of test identifiers to run. If not provided, all tests for the + policy are run. + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request but doesn't return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StartAutomatedReasoningPolicyTestWorkflowOutput(_SerdeShape): """Dataclass for StartAutomatedReasoningPolicyTestWorkflowOutput structure.""" @@ -203,6 +276,12 @@ class StopAdvancedPromptOptimizationJobInput(_SerdeShape): job_identifier: str | None = ... """The ARN or ID of the advanced prompt optimization job to stop.""" +class StopAdvancedPromptOptimizationJobInputDict(TypedDict, total=False): + """Dictionary form of `StopAdvancedPromptOptimizationJobInput`.""" + + job_identifier: Required[str] + """The ARN or ID of the advanced prompt optimization job to stop.""" + @dataclass(kw_only=True) class StopAdvancedPromptOptimizationJobOutput(_SerdeShape): """Stop Advanced Prompt Optimization Job Response""" @@ -222,6 +301,12 @@ class StopEvaluationJobInput(_SerdeShape): job_identifier: str | None = ... """The Amazon Resource Name (ARN) of the evaluation job you want to stop.""" +class StopEvaluationJobInputDict(TypedDict, total=False): + """Dictionary form of `StopEvaluationJobInput`.""" + + job_identifier: Required[str] + """The Amazon Resource Name (ARN) of the evaluation job you want to stop.""" + @dataclass(kw_only=True) class StopEvaluationJobOutput(_SerdeShape): """Dataclass for StopEvaluationJobOutput structure.""" @@ -241,6 +326,12 @@ class StopModelCustomizationJobInput(_SerdeShape): job_identifier: str | None = ... """Job identifier of the job to stop.""" +class StopModelCustomizationJobInputDict(TypedDict, total=False): + """Dictionary form of `StopModelCustomizationJobInput`.""" + + job_identifier: Required[str] + """Job identifier of the job to stop.""" + @dataclass(kw_only=True) class StopModelCustomizationJobOutput(_SerdeShape): """Dataclass for StopModelCustomizationJobOutput structure.""" @@ -260,6 +351,12 @@ class StopModelInvocationJobInput(_SerdeShape): job_identifier: str | None = ... """The Amazon Resource Name (ARN) of the batch inference job to stop.""" +class StopModelInvocationJobInputDict(TypedDict, total=False): + """Dictionary form of `StopModelInvocationJobInput`.""" + + job_identifier: Required[str] + """The Amazon Resource Name (ARN) of the batch inference job to stop.""" + @dataclass(kw_only=True) class StopModelInvocationJobOutput(_SerdeShape): """Dataclass for StopModelInvocationJobOutput structure.""" @@ -288,6 +385,14 @@ class Tag(_SerdeShape): value: str """Value for the tag.""" +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """Key for the tag.""" + value: Required[str] + """Value for the tag.""" + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -297,6 +402,14 @@ class TagResourceInput(_SerdeShape): tags: list[Tag] | None = ... """Tags to associate with the resource.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource to tag.""" + tags: Required[Sequence[Tag | TagDict]] + """Tags to associate with the resource.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -321,6 +434,17 @@ class TeacherModelConfig(_SerdeShape): invokes the teacher model. """ +class TeacherModelConfigDict(TypedDict, total=False): + """Dictionary form of `TeacherModelConfig`.""" + + teacher_model_identifier: Required[str] + """The identifier of the teacher model.""" + max_response_length_for_inference: int | None + """ + The maximum number of tokens requested when the customization job + invokes the teacher model. + """ + @dataclass(kw_only=True) class TermDetails(_SerdeShape): """Describes the usage terms of an offer.""" @@ -373,6 +497,41 @@ class TextInferenceConfig(_SerdeShape): specific model. """ +class TextInferenceConfigDict(TypedDict, total=False): + """Dictionary form of `TextInferenceConfig`.""" + + temperature: float | None + """ + Controls the random-ness of text generated by the language model, + influencing how much the model sticks to the most predictable next words + versus exploring more surprising options. A lower temperature value + (e.g. 0.2 or 0.3) makes model outputs more deterministic or predictable, + while a higher temperature (e.g. 0.8 or 0.9) makes the outputs more + creative or unpredictable. + """ + top_p: float | None + """ + A probability distribution threshold which controls what the model + considers for the set of possible next tokens. The model will only + consider the top p% of the probability distribution when generating the + next token. + """ + max_tokens: int | None + """ + The maximum number of tokens to generate in the output text. Do not use + the minimum of 0 or the maximum of 65536. The limit values described + here are arbitrary values, for actual values consult the limits defined + by your specific model. + """ + stop_sequences: Sequence[str] | None + """ + A list of sequences of characters that, if generated, will cause the + model to stop generating further tokens. Do not use a minimum length of + 1 or a maximum length of 1000. The limit values described here are + arbitrary values, for actual values consult the limits defined by your + specific model. + """ + @dataclass(kw_only=True) class ThrottlingException(ServiceError, _SerdeShape): """The number of requests exceeds the limit. Resubmit your request later.""" @@ -412,6 +571,14 @@ class TrainingDataConfig(_SerdeShape): invocation_logs_config: InvocationLogsConfig | None = ... """Settings for using invocation logs to customize a model.""" +class TrainingDataConfigDict(TypedDict, total=False): + """Dictionary form of `TrainingDataConfig`.""" + + s3_uri: str | None + """The S3 URI where the training data is stored.""" + invocation_logs_config: InvocationLogsConfig | InvocationLogsConfigDict | None + """Settings for using invocation logs to customize a model.""" + @dataclass(kw_only=True) class TrainingDetails(_SerdeShape): """ @@ -442,6 +609,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """Tag keys of the tags to remove from the resource.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the resource to untag.""" + tag_keys: Required[Sequence[str]] + """Tag keys of the tags to remove from the resource.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -479,6 +654,34 @@ class UpdateAutomatedReasoningPolicyAnnotationsInput(_SerdeShape): for optimistic concurrency control to prevent conflicting updates. """ +class UpdateAutomatedReasoningPolicyAnnotationsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAutomatedReasoningPolicyAnnotationsInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy whose + annotations you want to update. + """ + build_workflow_id: Required[str] + """ + The unique identifier of the build workflow whose annotations you want + to update. + """ + annotations: Required[ + Sequence[ + AutomatedReasoningPolicyAnnotation | AutomatedReasoningPolicyAnnotationDict + ] + ] + """ + The updated annotations containing modified rules, variables, and types + for the policy. + """ + last_updated_annotation_set_hash: Required[str] + """ + The hash value of the annotation set that you're updating. This is used + for optimistic concurrency control to prevent conflicting updates. + """ + @dataclass(kw_only=True) class UpdateAutomatedReasoningPolicyAnnotationsOutput(_SerdeShape): """Dataclass for UpdateAutomatedReasoningPolicyAnnotationsOutput structure.""" @@ -518,6 +721,26 @@ class UpdateAutomatedReasoningPolicyInput(_SerdeShape): description: str | None = ... """The updated description for the Automated Reasoning policy.""" +class UpdateAutomatedReasoningPolicyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAutomatedReasoningPolicyInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy to + update. This must be the ARN of a draft policy. + """ + policy_definition: Required[ + AutomatedReasoningPolicyDefinition | AutomatedReasoningPolicyDefinitionDict + ] + """ + The updated policy definition containing the formal logic rules, + variables, and types. + """ + name: str | None + """The updated name for the Automated Reasoning policy.""" + description: str | None + """The updated description for the Automated Reasoning policy.""" + @dataclass(kw_only=True) class UpdateAutomatedReasoningPolicyOutput(_SerdeShape): """Dataclass for UpdateAutomatedReasoningPolicyOutput structure.""" @@ -575,6 +798,42 @@ class UpdateAutomatedReasoningPolicyTestCaseInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateAutomatedReasoningPolicyTestCaseInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAutomatedReasoningPolicyTestCaseInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Automated Reasoning policy that + contains the test. + """ + test_case_id: Required[str] + """The unique identifier of the test to update.""" + guard_content: Required[str] + """The updated content to be validated by the Automated Reasoning policy.""" + query_content: str | None + """The updated input query or prompt that generated the content.""" + last_updated_at: Required[datetime] + """ + The timestamp when the test was last updated. This is used as a + concurrency token to prevent conflicting modifications. + """ + expected_aggregated_findings_result: Required[str] + """The updated expected result of the Automated Reasoning check.""" + confidence_threshold: float | None + """ + The updated minimum confidence level for logic validation. If null is + provided, the threshold will be removed. + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, Amazon Bedrock ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateAutomatedReasoningPolicyTestCaseOutput(_SerdeShape): """Dataclass for UpdateAutomatedReasoningPolicyTestCaseOutput structure.""" @@ -609,6 +868,20 @@ class UpdateCustomModelDeploymentInput(_SerdeShape): model. """ +class UpdateCustomModelDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCustomModelDeploymentInput`.""" + + model_arn: Required[str] + """ + ARN of the new custom model to deploy. This replaces the currently + deployed model. + """ + custom_model_deployment_identifier: Required[str] + """ + Identifier of the custom model deployment to update with the new custom + model. + """ + @dataclass(kw_only=True) class UpdateCustomModelDeploymentOutput(_SerdeShape): """Dataclass for UpdateCustomModelDeploymentOutput structure.""" @@ -673,6 +946,67 @@ class UpdateGuardrailInput(_SerdeShape): kms_key_id: str | None = ... """The ARN of the KMS key with which to encrypt the guardrail.""" +class UpdateGuardrailInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGuardrailInput`.""" + + guardrail_identifier: Required[str] + """The unique identifier of the guardrail. This can be an ID or the ARN.""" + name: Required[str] + """A name for the guardrail.""" + description: str | None + """A description of the guardrail.""" + topic_policy_config: ( + GuardrailTopicPolicyConfig | GuardrailTopicPolicyConfigDict | None + ) + """The topic policy to configure for the guardrail.""" + content_policy_config: ( + GuardrailContentPolicyConfig | GuardrailContentPolicyConfigDict | None + ) + """The content policy to configure for the guardrail.""" + word_policy_config: GuardrailWordPolicyConfig | GuardrailWordPolicyConfigDict | None + """The word policy to configure for the guardrail.""" + sensitive_information_policy_config: ( + GuardrailSensitiveInformationPolicyConfig + | GuardrailSensitiveInformationPolicyConfigDict + | None + ) + """The sensitive information policy to configure for the guardrail.""" + contextual_grounding_policy_config: ( + GuardrailContextualGroundingPolicyConfig + | GuardrailContextualGroundingPolicyConfigDict + | None + ) + """ + The contextual grounding policy configuration used to update a + guardrail. + """ + automated_reasoning_policy_config: ( + GuardrailAutomatedReasoningPolicyConfig + | GuardrailAutomatedReasoningPolicyConfigDict + | None + ) + """ + Updated configuration for Automated Reasoning policies associated with + the guardrail. + """ + cross_region_config: ( + GuardrailCrossRegionConfig | GuardrailCrossRegionConfigDict | None + ) + """ + The system-defined guardrail profile that you're using with your + guardrail. Guardrail profiles define the destination Amazon Web Services + Regions where guardrail inference requests can be automatically routed. + + For more information, see the [Amazon Bedrock User + Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html). + """ + blocked_input_messaging: Required[str] + """The message to return when the guardrail blocks a prompt.""" + blocked_outputs_messaging: Required[str] + """The message to return when the guardrail blocks a model response.""" + kms_key_id: str | None + """The ARN of the KMS key with which to encrypt the guardrail.""" + @dataclass(kw_only=True) class UpdateGuardrailOutput(_SerdeShape): """Dataclass for UpdateGuardrailOutput structure.""" @@ -715,6 +1049,27 @@ class UpdateMarketplaceModelEndpointInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateMarketplaceModelEndpointInputDict(TypedDict, total=False): + """Dictionary form of `UpdateMarketplaceModelEndpointInput`.""" + + endpoint_arn: Required[str] + """The Amazon Resource Name (ARN) of the endpoint you want to update.""" + endpoint_config: Required[EndpointConfig | EndpointConfigDict] + """ + The new configuration for the endpoint, including the number and type of + instances to use. + """ + client_request_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. This token is listed as not required because + Amazon Web Services SDKs automatically generate it for you and set this + parameter. If you're not using the Amazon Web Services SDK or the CLI, + you must provide this token or the action will fail. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateMarketplaceModelEndpointOutput(_SerdeShape): """Dataclass for UpdateMarketplaceModelEndpointOutput structure.""" @@ -755,6 +1110,31 @@ class UpdateProvisionedModelThroughputInput(_SerdeShape): the custom model. """ +class UpdateProvisionedModelThroughputInputDict(TypedDict, total=False): + """Dictionary form of `UpdateProvisionedModelThroughputInput`.""" + + provisioned_model_id: Required[str] + """ + The Amazon Resource Name (ARN) or name of the Provisioned Throughput to + update. + """ + desired_provisioned_model_name: str | None + """The new name for this Provisioned Throughput.""" + desired_model_id: str | None + """ + The Amazon Resource Name (ARN) of the new model to associate with this + Provisioned Throughput. You can't specify this field if this + Provisioned Throughput is associated with a base model. + + If this Provisioned Throughput is associated with a custom model, you + can specify one of the following options: + + - The base model from which the custom model was customized. + + - Another custom model that was customized from the same base model as + the custom model. + """ + @dataclass(kw_only=True) class UpdateProvisionedModelThroughputOutput(_SerdeShape): """Dataclass for UpdateProvisionedModelThroughputOutput structure.""" @@ -774,6 +1154,12 @@ class ValidationDataConfig(_SerdeShape): validators: list[Validator] """Information about the validators.""" +class ValidationDataConfigDict(TypedDict, total=False): + """Dictionary form of `ValidationDataConfig`.""" + + validators: Required[Sequence[Validator | ValidatorDict]] + """Information about the validators.""" + @dataclass(kw_only=True) class ValidationDetails(_SerdeShape): """ @@ -810,6 +1196,12 @@ class Validator(_SerdeShape): s3_uri: str """The S3 URI where the validation data is stored.""" +class ValidatorDict(TypedDict, total=False): + """Dictionary form of `Validator`.""" + + s3_uri: Required[str] + """The S3 URI where the validation data is stored.""" + @dataclass(kw_only=True) class ValidatorMetric(_SerdeShape): """The metric for the validator.""" @@ -852,6 +1244,34 @@ class VectorSearchBedrockRerankingConfiguration(_SerdeShape): when reordering search results. """ +class VectorSearchBedrockRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchBedrockRerankingConfiguration`.""" + + model_configuration: Required[ + VectorSearchBedrockRerankingModelConfiguration + | VectorSearchBedrockRerankingModelConfigurationDict + ] + """ + Configuration for the Amazon Bedrock foundation model used for + reranking. This includes the model ARN and any additional request fields + required by the model. + """ + number_of_reranked_results: int | None + """ + The maximum number of results to rerank. This limits how many of the + initial vector search results will be processed by the reranking model. + A smaller number improves performance but may exclude potentially + relevant results. + """ + metadata_configuration: ( + MetadataConfigurationForReranking | MetadataConfigurationForRerankingDict | None + ) + """ + Configuration for how document metadata should be used during the + reranking process. This determines which metadata fields are included + when reordering search results. + """ + @dataclass(kw_only=True) class VectorSearchBedrockRerankingModelConfiguration(_SerdeShape): """ @@ -873,6 +1293,22 @@ class VectorSearchBedrockRerankingModelConfiguration(_SerdeShape): specific to the selected foundation model. """ +class VectorSearchBedrockRerankingModelConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchBedrockRerankingModelConfiguration`.""" + + model_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the foundation model to use for + reranking. This model processes the query and search results to + determine a more relevant ordering. + """ + additional_model_request_fields: Mapping[str, Document] | None + """ + A list of additional fields to include in the model request during + reranking. These fields provide extra context or configuration options + specific to the selected foundation model. + """ + @dataclass(kw_only=True) class VectorSearchRerankingConfiguration(_SerdeShape): """ @@ -896,6 +1332,26 @@ class VectorSearchRerankingConfiguration(_SerdeShape): BEDROCK. """ +class VectorSearchRerankingConfigurationDict(TypedDict, total=False): + """Dictionary form of `VectorSearchRerankingConfiguration`.""" + + type: Required[str] + """ + The type of reranking to apply to vector search results. Currently, the + only supported value is BEDROCK, which uses Amazon Bedrock foundation + models for reranking. + """ + bedrock_reranking_configuration: ( + VectorSearchBedrockRerankingConfiguration + | VectorSearchBedrockRerankingConfigurationDict + | None + ) + """ + Configuration for using Amazon Bedrock foundation models to rerank + search results. This is required when the reranking type is set to + BEDROCK. + """ + class VectorSearchRerankingConfigurationType(UnknownEnumMixin, StrEnum): BEDROCK_RERANKING_MODEL = "BEDROCK_RERANKING_MODEL" @@ -912,3 +1368,11 @@ class VpcConfig(_SerdeShape): """An array of IDs for each subnet in the VPC to use.""" security_group_ids: list[str] """An array of IDs for each security group in the VPC to use.""" + +class VpcConfigDict(TypedDict, total=False): + """Dictionary form of `VpcConfig`.""" + + subnet_ids: Required[Sequence[str]] + """An array of IDs for each subnet in the VPC to use.""" + security_group_ids: Required[Sequence[str]] + """An array of IDs for each security group in the VPC to use.""" diff --git a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/schemas.py b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/schemas.py index 6048fb0e8..0f7efb067 100644 --- a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/schemas.py +++ b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/_private/schemas.py @@ -1025,7 +1025,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/aio/client.py b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/aio/client.py index 546fa4451..fd77a2e56 100644 --- a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/aio/client.py +++ b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,221 +20,113 @@ if TYPE_CHECKING: from ..models import ( - BatchDeleteAdvancedPromptOptimizationJobInput, BatchDeleteAdvancedPromptOptimizationJobOutput, - BatchDeleteEvaluationJobInput, BatchDeleteEvaluationJobOutput, - CancelAutomatedReasoningPolicyBuildWorkflowInput, CancelAutomatedReasoningPolicyBuildWorkflowOutput, - CreateAdvancedPromptOptimizationJobInput, CreateAdvancedPromptOptimizationJobOutput, - CreateAutomatedReasoningPolicyInput, CreateAutomatedReasoningPolicyOutput, - CreateAutomatedReasoningPolicyTestCaseInput, CreateAutomatedReasoningPolicyTestCaseOutput, - CreateAutomatedReasoningPolicyVersionInput, CreateAutomatedReasoningPolicyVersionOutput, - CreateCustomModelDeploymentInput, CreateCustomModelDeploymentOutput, - CreateCustomModelInput, CreateCustomModelOutput, - CreateEvaluationJobInput, CreateEvaluationJobOutput, - CreateFoundationModelAgreementInput, CreateFoundationModelAgreementOutput, - CreateGuardrailInput, CreateGuardrailOutput, - CreateGuardrailVersionInput, CreateGuardrailVersionOutput, - CreateInferenceProfileInput, CreateInferenceProfileOutput, - CreateMarketplaceModelEndpointInput, CreateMarketplaceModelEndpointOutput, - CreateModelCopyJobInput, CreateModelCopyJobOutput, - CreateModelCustomizationJobInput, CreateModelCustomizationJobOutput, - CreateModelImportJobInput, CreateModelImportJobOutput, - CreateModelInvocationJobInput, CreateModelInvocationJobOutput, - CreatePromptRouterInput, CreatePromptRouterOutput, - CreateProvisionedModelThroughputInput, CreateProvisionedModelThroughputOutput, - DeleteAutomatedReasoningPolicyBuildWorkflowInput, DeleteAutomatedReasoningPolicyBuildWorkflowOutput, - DeleteAutomatedReasoningPolicyInput, DeleteAutomatedReasoningPolicyOutput, - DeleteAutomatedReasoningPolicyTestCaseInput, DeleteAutomatedReasoningPolicyTestCaseOutput, - DeleteCustomModelDeploymentInput, DeleteCustomModelDeploymentOutput, - DeleteCustomModelInput, DeleteCustomModelOutput, - DeleteEnforcedGuardrailConfigurationInput, DeleteEnforcedGuardrailConfigurationOutput, - DeleteFoundationModelAgreementInput, DeleteFoundationModelAgreementOutput, - DeleteGuardrailInput, DeleteGuardrailOutput, - DeleteImportedModelInput, DeleteImportedModelOutput, - DeleteInferenceProfileInput, DeleteInferenceProfileOutput, - DeleteMarketplaceModelEndpointInput, DeleteMarketplaceModelEndpointOutput, - DeleteModelInvocationLoggingConfigurationInput, DeleteModelInvocationLoggingConfigurationOutput, - DeletePromptRouterInput, DeletePromptRouterOutput, - DeleteProvisionedModelThroughputInput, DeleteProvisionedModelThroughputOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeregisterMarketplaceModelEndpointInput, DeregisterMarketplaceModelEndpointOutput, - ExportAutomatedReasoningPolicyVersionInput, ExportAutomatedReasoningPolicyVersionOutput, - GetAccountDataRetentionInput, GetAccountDataRetentionOutput, - GetAdvancedPromptOptimizationJobInput, GetAdvancedPromptOptimizationJobOutput, - GetAutomatedReasoningPolicyAnnotationsInput, GetAutomatedReasoningPolicyAnnotationsOutput, - GetAutomatedReasoningPolicyBuildWorkflowInput, GetAutomatedReasoningPolicyBuildWorkflowOutput, - GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput, - GetAutomatedReasoningPolicyInput, - GetAutomatedReasoningPolicyNextScenarioInput, GetAutomatedReasoningPolicyNextScenarioOutput, GetAutomatedReasoningPolicyOutput, - GetAutomatedReasoningPolicyTestCaseInput, GetAutomatedReasoningPolicyTestCaseOutput, - GetAutomatedReasoningPolicyTestResultInput, GetAutomatedReasoningPolicyTestResultOutput, - GetCustomModelDeploymentInput, GetCustomModelDeploymentOutput, - GetCustomModelInput, GetCustomModelOutput, - GetEvaluationJobInput, GetEvaluationJobOutput, - GetFoundationModelAvailabilityInput, GetFoundationModelAvailabilityOutput, - GetFoundationModelInput, GetFoundationModelOutput, - GetGuardrailInput, GetGuardrailOutput, - GetImportedModelInput, GetImportedModelOutput, - GetInferenceProfileInput, GetInferenceProfileOutput, - GetMarketplaceModelEndpointInput, GetMarketplaceModelEndpointOutput, - GetModelCopyJobInput, GetModelCopyJobOutput, - GetModelCustomizationJobInput, GetModelCustomizationJobOutput, - GetModelImportJobInput, GetModelImportJobOutput, - GetModelInvocationJobInput, GetModelInvocationJobOutput, - GetModelInvocationLoggingConfigurationInput, GetModelInvocationLoggingConfigurationOutput, - GetPromptRouterInput, GetPromptRouterOutput, - GetProvisionedModelThroughputInput, GetProvisionedModelThroughputOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetUseCaseForModelAccessInput, GetUseCaseForModelAccessOutput, - ListAdvancedPromptOptimizationJobsInput, ListAdvancedPromptOptimizationJobsOutput, - ListAutomatedReasoningPoliciesInput, ListAutomatedReasoningPoliciesOutput, - ListAutomatedReasoningPolicyBuildWorkflowsInput, ListAutomatedReasoningPolicyBuildWorkflowsOutput, - ListAutomatedReasoningPolicyTestCasesInput, ListAutomatedReasoningPolicyTestCasesOutput, - ListAutomatedReasoningPolicyTestResultsInput, ListAutomatedReasoningPolicyTestResultsOutput, - ListCustomModelDeploymentsInput, ListCustomModelDeploymentsOutput, - ListCustomModelsInput, ListCustomModelsOutput, - ListEnforcedGuardrailsConfigurationInput, ListEnforcedGuardrailsConfigurationOutput, - ListEvaluationJobsInput, ListEvaluationJobsOutput, - ListFoundationModelAgreementOffersInput, ListFoundationModelAgreementOffersOutput, - ListFoundationModelsInput, ListFoundationModelsOutput, - ListGuardrailsInput, ListGuardrailsOutput, - ListImportedModelsInput, ListImportedModelsOutput, - ListInferenceProfilesInput, ListInferenceProfilesOutput, - ListMarketplaceModelEndpointsInput, ListMarketplaceModelEndpointsOutput, - ListModelCopyJobsInput, ListModelCopyJobsOutput, - ListModelCustomizationJobsInput, ListModelCustomizationJobsOutput, - ListModelImportJobsInput, ListModelImportJobsOutput, - ListModelInvocationJobsInput, ListModelInvocationJobsOutput, - ListPromptRoutersInput, ListPromptRoutersOutput, - ListProvisionedModelThroughputsInput, ListProvisionedModelThroughputsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - PutAccountDataRetentionInput, PutAccountDataRetentionOutput, - PutEnforcedGuardrailConfigurationInput, PutEnforcedGuardrailConfigurationOutput, - PutModelInvocationLoggingConfigurationInput, PutModelInvocationLoggingConfigurationOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - PutUseCaseForModelAccessInput, PutUseCaseForModelAccessOutput, - RegisterMarketplaceModelEndpointInput, RegisterMarketplaceModelEndpointOutput, - StartAutomatedReasoningPolicyBuildWorkflowInput, StartAutomatedReasoningPolicyBuildWorkflowOutput, - StartAutomatedReasoningPolicyTestWorkflowInput, StartAutomatedReasoningPolicyTestWorkflowOutput, - StopAdvancedPromptOptimizationJobInput, StopAdvancedPromptOptimizationJobOutput, - StopEvaluationJobInput, StopEvaluationJobOutput, - StopModelCustomizationJobInput, StopModelCustomizationJobOutput, - StopModelInvocationJobInput, StopModelInvocationJobOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAutomatedReasoningPolicyAnnotationsInput, UpdateAutomatedReasoningPolicyAnnotationsOutput, - UpdateAutomatedReasoningPolicyInput, UpdateAutomatedReasoningPolicyOutput, - UpdateAutomatedReasoningPolicyTestCaseInput, UpdateAutomatedReasoningPolicyTestCaseOutput, - UpdateCustomModelDeploymentInput, UpdateCustomModelDeploymentOutput, - UpdateGuardrailInput, UpdateGuardrailOutput, - UpdateMarketplaceModelEndpointInput, UpdateMarketplaceModelEndpointOutput, - UpdateProvisionedModelThroughputInput, UpdateProvisionedModelThroughputOutput, ) @@ -248,19 +140,30 @@ class AsyncBedrockClient(AsyncClient[AsyncBedrockConfig]): evaluating Amazon Bedrock models. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def batch_delete_advanced_prompt_optimization_job( self, - input: BatchDeleteAdvancedPromptOptimizationJobInput, + request: _models.BatchDeleteAdvancedPromptOptimizationJobInput + | _models.BatchDeleteAdvancedPromptOptimizationJobInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> BatchDeleteAdvancedPromptOptimizationJobOutput: ... + + @_overload + async def batch_delete_advanced_prompt_optimization_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDeleteAdvancedPromptOptimizationJobInputDict], ) -> BatchDeleteAdvancedPromptOptimizationJobOutput: """ Deletes one or more advanced prompt optimization jobs. Args: - input: - An instance of `BatchDeleteAdvancedPromptOptimizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -270,12 +173,36 @@ async def batch_delete_advanced_prompt_optimization_job( Returns: An instance of `BatchDeleteAdvancedPromptOptimizationJobOutput`. """ + + async def batch_delete_advanced_prompt_optimization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDeleteAdvancedPromptOptimizationJobOutput: return await self._invoke( - input, _models.BATCH_DELETE_ADVANCED_PROMPT_OPTIMIZATION_JOB, [], plugins + self._select_input( + _models.BATCH_DELETE_ADVANCED_PROMPT_OPTIMIZATION_JOB, args, kwargs + ), + _models.BATCH_DELETE_ADVANCED_PROMPT_OPTIMIZATION_JOB, + [], + plugins, ) + @_overload + async def batch_delete_evaluation_job( + self, + request: _models.BatchDeleteEvaluationJobInput + | _models.BatchDeleteEvaluationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchDeleteEvaluationJobOutput: ... + + @_overload async def batch_delete_evaluation_job( - self, input: BatchDeleteEvaluationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDeleteEvaluationJobInputDict], ) -> BatchDeleteEvaluationJobOutput: """ Deletes a batch of evaluation jobs. An evaluation job can only be @@ -284,8 +211,6 @@ async def batch_delete_evaluation_job( request. Args: - input: - An instance of `BatchDeleteEvaluationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -295,14 +220,34 @@ async def batch_delete_evaluation_job( Returns: An instance of `BatchDeleteEvaluationJobOutput`. """ + + async def batch_delete_evaluation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDeleteEvaluationJobOutput: return await self._invoke( - input, _models.BATCH_DELETE_EVALUATION_JOB, [], plugins + self._select_input(_models.BATCH_DELETE_EVALUATION_JOB, args, kwargs), + _models.BATCH_DELETE_EVALUATION_JOB, + [], + plugins, ) + @_overload + async def cancel_automated_reasoning_policy_build_workflow( + self, + request: _models.CancelAutomatedReasoningPolicyBuildWorkflowInput + | _models.CancelAutomatedReasoningPolicyBuildWorkflowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelAutomatedReasoningPolicyBuildWorkflowOutput: ... + + @_overload async def cancel_automated_reasoning_policy_build_workflow( self, - input: CancelAutomatedReasoningPolicyBuildWorkflowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelAutomatedReasoningPolicyBuildWorkflowInputDict], ) -> CancelAutomatedReasoningPolicyBuildWorkflowOutput: """ Cancels a running Automated Reasoning policy build workflow. This stops @@ -310,8 +255,6 @@ async def cancel_automated_reasoning_policy_build_workflow( source documents. Args: - input: - An instance of `CancelAutomatedReasoningPolicyBuildWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -321,14 +264,36 @@ async def cancel_automated_reasoning_policy_build_workflow( Returns: An instance of `CancelAutomatedReasoningPolicyBuildWorkflowOutput`. """ + + async def cancel_automated_reasoning_policy_build_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelAutomatedReasoningPolicyBuildWorkflowOutput: return await self._invoke( - input, _models.CANCEL_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, [], plugins + self._select_input( + _models.CANCEL_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, args, kwargs + ), + _models.CANCEL_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, + [], + plugins, ) + @_overload + async def create_advanced_prompt_optimization_job( + self, + request: _models.CreateAdvancedPromptOptimizationJobInput + | _models.CreateAdvancedPromptOptimizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAdvancedPromptOptimizationJobOutput: ... + + @_overload async def create_advanced_prompt_optimization_job( self, - input: CreateAdvancedPromptOptimizationJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAdvancedPromptOptimizationJobInputDict], ) -> CreateAdvancedPromptOptimizationJobOutput: """ Creates an advanced prompt optimization job. The job optimizes your @@ -336,8 +301,6 @@ async def create_advanced_prompt_optimization_job( criteria. Args: - input: - An instance of `CreateAdvancedPromptOptimizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -347,14 +310,36 @@ async def create_advanced_prompt_optimization_job( Returns: An instance of `CreateAdvancedPromptOptimizationJobOutput`. """ + + async def create_advanced_prompt_optimization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAdvancedPromptOptimizationJobOutput: return await self._invoke( - input, _models.CREATE_ADVANCED_PROMPT_OPTIMIZATION_JOB, [], plugins + self._select_input( + _models.CREATE_ADVANCED_PROMPT_OPTIMIZATION_JOB, args, kwargs + ), + _models.CREATE_ADVANCED_PROMPT_OPTIMIZATION_JOB, + [], + plugins, ) + @_overload + async def create_automated_reasoning_policy( + self, + request: _models.CreateAutomatedReasoningPolicyInput + | _models.CreateAutomatedReasoningPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAutomatedReasoningPolicyOutput: ... + + @_overload async def create_automated_reasoning_policy( self, - input: CreateAutomatedReasoningPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAutomatedReasoningPolicyInputDict], ) -> CreateAutomatedReasoningPolicyOutput: """ Creates an Automated Reasoning policy for Amazon Bedrock Guardrails. @@ -368,8 +353,6 @@ async def create_automated_reasoning_policy( policy and infers policy rules. Args: - input: - An instance of `CreateAutomatedReasoningPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -379,14 +362,34 @@ async def create_automated_reasoning_policy( Returns: An instance of `CreateAutomatedReasoningPolicyOutput`. """ + + async def create_automated_reasoning_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAutomatedReasoningPolicyOutput: return await self._invoke( - input, _models.CREATE_AUTOMATED_REASONING_POLICY, [], plugins + self._select_input(_models.CREATE_AUTOMATED_REASONING_POLICY, args, kwargs), + _models.CREATE_AUTOMATED_REASONING_POLICY, + [], + plugins, ) + @_overload + async def create_automated_reasoning_policy_test_case( + self, + request: _models.CreateAutomatedReasoningPolicyTestCaseInput + | _models.CreateAutomatedReasoningPolicyTestCaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAutomatedReasoningPolicyTestCaseOutput: ... + + @_overload async def create_automated_reasoning_policy_test_case( self, - input: CreateAutomatedReasoningPolicyTestCaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAutomatedReasoningPolicyTestCaseInputDict], ) -> CreateAutomatedReasoningPolicyTestCaseOutput: """ Creates a test for an Automated Reasoning policy. Tests validate that @@ -395,8 +398,6 @@ async def create_automated_reasoning_policy_test_case( production. Args: - input: - An instance of `CreateAutomatedReasoningPolicyTestCaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -406,14 +407,36 @@ async def create_automated_reasoning_policy_test_case( Returns: An instance of `CreateAutomatedReasoningPolicyTestCaseOutput`. """ + + async def create_automated_reasoning_policy_test_case( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAutomatedReasoningPolicyTestCaseOutput: return await self._invoke( - input, _models.CREATE_AUTOMATED_REASONING_POLICY_TEST_CASE, [], plugins + self._select_input( + _models.CREATE_AUTOMATED_REASONING_POLICY_TEST_CASE, args, kwargs + ), + _models.CREATE_AUTOMATED_REASONING_POLICY_TEST_CASE, + [], + plugins, ) + @_overload async def create_automated_reasoning_policy_version( self, - input: CreateAutomatedReasoningPolicyVersionInput, + request: _models.CreateAutomatedReasoningPolicyVersionInput + | _models.CreateAutomatedReasoningPolicyVersionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateAutomatedReasoningPolicyVersionOutput: ... + + @_overload + async def create_automated_reasoning_policy_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAutomatedReasoningPolicyVersionInputDict], ) -> CreateAutomatedReasoningPolicyVersionOutput: """ Creates a new version of an existing Automated Reasoning policy. This @@ -421,8 +444,6 @@ async def create_automated_reasoning_policy_version( versions for rollback or comparison purposes. Args: - input: - An instance of `CreateAutomatedReasoningPolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -432,12 +453,35 @@ async def create_automated_reasoning_policy_version( Returns: An instance of `CreateAutomatedReasoningPolicyVersionOutput`. """ + + async def create_automated_reasoning_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAutomatedReasoningPolicyVersionOutput: return await self._invoke( - input, _models.CREATE_AUTOMATED_REASONING_POLICY_VERSION, [], plugins + self._select_input( + _models.CREATE_AUTOMATED_REASONING_POLICY_VERSION, args, kwargs + ), + _models.CREATE_AUTOMATED_REASONING_POLICY_VERSION, + [], + plugins, ) + @_overload + async def create_custom_model( + self, + request: _models.CreateCustomModelInput | _models.CreateCustomModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomModelOutput: ... + + @_overload async def create_custom_model( - self, input: CreateCustomModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomModelInputDict], ) -> CreateCustomModelOutput: """ Creates a new custom model in Amazon Bedrock. After the model is active, @@ -478,8 +522,6 @@ async def create_custom_model( - [DeleteCustomModel](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html) Args: - input: - An instance of `CreateCustomModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -489,12 +531,34 @@ async def create_custom_model( Returns: An instance of `CreateCustomModelOutput`. """ - return await self._invoke(input, _models.CREATE_CUSTOM_MODEL, [], plugins) + async def create_custom_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomModelOutput: + return await self._invoke( + self._select_input(_models.CREATE_CUSTOM_MODEL, args, kwargs), + _models.CREATE_CUSTOM_MODEL, + [], + plugins, + ) + + @_overload + async def create_custom_model_deployment( + self, + request: _models.CreateCustomModelDeploymentInput + | _models.CreateCustomModelDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomModelDeploymentOutput: ... + + @_overload async def create_custom_model_deployment( self, - input: CreateCustomModelDeploymentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomModelDeploymentInputDict], ) -> CreateCustomModelDeploymentOutput: """ Deploys a custom model for on-demand inference in Amazon Bedrock. After @@ -516,8 +580,6 @@ async def create_custom_model_deployment( - [DeleteCustomModelDeployment](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html) Args: - input: - An instance of `CreateCustomModelDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -527,19 +589,39 @@ async def create_custom_model_deployment( Returns: An instance of `CreateCustomModelDeploymentOutput`. """ + + async def create_custom_model_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomModelDeploymentOutput: return await self._invoke( - input, _models.CREATE_CUSTOM_MODEL_DEPLOYMENT, [], plugins + self._select_input(_models.CREATE_CUSTOM_MODEL_DEPLOYMENT, args, kwargs), + _models.CREATE_CUSTOM_MODEL_DEPLOYMENT, + [], + plugins, ) + @_overload + async def create_evaluation_job( + self, + request: _models.CreateEvaluationJobInput + | _models.CreateEvaluationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEvaluationJobOutput: ... + + @_overload async def create_evaluation_job( - self, input: CreateEvaluationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEvaluationJobInputDict], ) -> CreateEvaluationJobOutput: """ Creates an evaluation job. Args: - input: - An instance of `CreateEvaluationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -549,19 +631,39 @@ async def create_evaluation_job( Returns: An instance of `CreateEvaluationJobOutput`. """ - return await self._invoke(input, _models.CREATE_EVALUATION_JOB, [], plugins) + async def create_evaluation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEvaluationJobOutput: + return await self._invoke( + self._select_input(_models.CREATE_EVALUATION_JOB, args, kwargs), + _models.CREATE_EVALUATION_JOB, + [], + plugins, + ) + + @_overload + async def create_foundation_model_agreement( + self, + request: _models.CreateFoundationModelAgreementInput + | _models.CreateFoundationModelAgreementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFoundationModelAgreementOutput: ... + + @_overload async def create_foundation_model_agreement( self, - input: CreateFoundationModelAgreementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFoundationModelAgreementInputDict], ) -> CreateFoundationModelAgreementOutput: """ Request a model access agreement for the specified model. Args: - input: - An instance of `CreateFoundationModelAgreementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -571,12 +673,33 @@ async def create_foundation_model_agreement( Returns: An instance of `CreateFoundationModelAgreementOutput`. """ + + async def create_foundation_model_agreement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFoundationModelAgreementOutput: return await self._invoke( - input, _models.CREATE_FOUNDATION_MODEL_AGREEMENT, [], plugins + self._select_input(_models.CREATE_FOUNDATION_MODEL_AGREEMENT, args, kwargs), + _models.CREATE_FOUNDATION_MODEL_AGREEMENT, + [], + plugins, ) + @_overload + async def create_guardrail( + self, + request: _models.CreateGuardrailInput | _models.CreateGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGuardrailOutput: ... + + @_overload async def create_guardrail( - self, input: CreateGuardrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGuardrailInputDict], ) -> CreateGuardrailOutput: """ Creates a guardrail to block topics and to implement safeguards for your @@ -610,8 +733,6 @@ async def create_guardrail( in the *Amazon Bedrock User Guide*. Args: - input: - An instance of `CreateGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -621,10 +742,34 @@ async def create_guardrail( Returns: An instance of `CreateGuardrailOutput`. """ - return await self._invoke(input, _models.CREATE_GUARDRAIL, [], plugins) + async def create_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGuardrailOutput: + return await self._invoke( + self._select_input(_models.CREATE_GUARDRAIL, args, kwargs), + _models.CREATE_GUARDRAIL, + [], + plugins, + ) + + @_overload + async def create_guardrail_version( + self, + request: _models.CreateGuardrailVersionInput + | _models.CreateGuardrailVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGuardrailVersionOutput: ... + + @_overload async def create_guardrail_version( - self, input: CreateGuardrailVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGuardrailVersionInputDict], ) -> CreateGuardrailVersionOutput: """ Creates a version of the guardrail. Use this API to create a snapshot of @@ -632,8 +777,6 @@ async def create_guardrail_version( the configuration with another version. Args: - input: - An instance of `CreateGuardrailVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -643,10 +786,34 @@ async def create_guardrail_version( Returns: An instance of `CreateGuardrailVersionOutput`. """ - return await self._invoke(input, _models.CREATE_GUARDRAIL_VERSION, [], plugins) + async def create_guardrail_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGuardrailVersionOutput: + return await self._invoke( + self._select_input(_models.CREATE_GUARDRAIL_VERSION, args, kwargs), + _models.CREATE_GUARDRAIL_VERSION, + [], + plugins, + ) + + @_overload + async def create_inference_profile( + self, + request: _models.CreateInferenceProfileInput + | _models.CreateInferenceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInferenceProfileOutput: ... + + @_overload async def create_inference_profile( - self, input: CreateInferenceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInferenceProfileInputDict], ) -> CreateInferenceProfileOutput: """ Creates an application inference profile to track metrics and costs when @@ -661,8 +828,6 @@ async def create_inference_profile( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreateInferenceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -672,20 +837,40 @@ async def create_inference_profile( Returns: An instance of `CreateInferenceProfileOutput`. """ - return await self._invoke(input, _models.CREATE_INFERENCE_PROFILE, [], plugins) + async def create_inference_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInferenceProfileOutput: + return await self._invoke( + self._select_input(_models.CREATE_INFERENCE_PROFILE, args, kwargs), + _models.CREATE_INFERENCE_PROFILE, + [], + plugins, + ) + + @_overload + async def create_marketplace_model_endpoint( + self, + request: _models.CreateMarketplaceModelEndpointInput + | _models.CreateMarketplaceModelEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMarketplaceModelEndpointOutput: ... + + @_overload async def create_marketplace_model_endpoint( self, - input: CreateMarketplaceModelEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMarketplaceModelEndpointInputDict], ) -> CreateMarketplaceModelEndpointOutput: """ Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker. Args: - input: - An instance of `CreateMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -695,12 +880,33 @@ async def create_marketplace_model_endpoint( Returns: An instance of `CreateMarketplaceModelEndpointOutput`. """ + + async def create_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMarketplaceModelEndpointOutput: return await self._invoke( - input, _models.CREATE_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input(_models.CREATE_MARKETPLACE_MODEL_ENDPOINT, args, kwargs), + _models.CREATE_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + async def create_model_copy_job( + self, + request: _models.CreateModelCopyJobInput | _models.CreateModelCopyJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelCopyJobOutput: ... + + @_overload async def create_model_copy_job( - self, input: CreateModelCopyJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelCopyJobInputDict], ) -> CreateModelCopyJobOutput: """ Copies a model to another region so that it can be used there. For more @@ -710,8 +916,6 @@ async def create_model_copy_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `CreateModelCopyJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -721,12 +925,34 @@ async def create_model_copy_job( Returns: An instance of `CreateModelCopyJobOutput`. """ - return await self._invoke(input, _models.CREATE_MODEL_COPY_JOB, [], plugins) + async def create_model_copy_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelCopyJobOutput: + return await self._invoke( + self._select_input(_models.CREATE_MODEL_COPY_JOB, args, kwargs), + _models.CREATE_MODEL_COPY_JOB, + [], + plugins, + ) + + @_overload + async def create_model_customization_job( + self, + request: _models.CreateModelCustomizationJobInput + | _models.CreateModelCustomizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelCustomizationJobOutput: ... + + @_overload async def create_model_customization_job( self, - input: CreateModelCustomizationJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelCustomizationJobInputDict], ) -> CreateModelCustomizationJobOutput: """ Creates a fine-tuning job to customize a base model. @@ -751,8 +977,6 @@ async def create_model_customization_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `CreateModelCustomizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -762,12 +986,34 @@ async def create_model_customization_job( Returns: An instance of `CreateModelCustomizationJobOutput`. """ + + async def create_model_customization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelCustomizationJobOutput: return await self._invoke( - input, _models.CREATE_MODEL_CUSTOMIZATION_JOB, [], plugins + self._select_input(_models.CREATE_MODEL_CUSTOMIZATION_JOB, args, kwargs), + _models.CREATE_MODEL_CUSTOMIZATION_JOB, + [], + plugins, ) + @_overload + async def create_model_import_job( + self, + request: _models.CreateModelImportJobInput + | _models.CreateModelImportJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelImportJobOutput: ... + + @_overload async def create_model_import_job( - self, input: CreateModelImportJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelImportJobInputDict], ) -> CreateModelImportJobOutput: """ Creates a model import job to import model that you have customized in @@ -776,8 +1022,6 @@ async def create_model_import_job( model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html) Args: - input: - An instance of `CreateModelImportJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -787,10 +1031,34 @@ async def create_model_import_job( Returns: An instance of `CreateModelImportJobOutput`. """ - return await self._invoke(input, _models.CREATE_MODEL_IMPORT_JOB, [], plugins) + async def create_model_import_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelImportJobOutput: + return await self._invoke( + self._select_input(_models.CREATE_MODEL_IMPORT_JOB, args, kwargs), + _models.CREATE_MODEL_IMPORT_JOB, + [], + plugins, + ) + + @_overload async def create_model_invocation_job( - self, input: CreateModelInvocationJobInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateModelInvocationJobInput + | _models.CreateModelInvocationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelInvocationJobOutput: ... + + @_overload + async def create_model_invocation_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelInvocationJobInputDict], ) -> CreateModelInvocationJobOutput: """ Creates a batch inference job to invoke a model on multiple prompts. @@ -804,8 +1072,6 @@ async def create_model_invocation_job( about the job. Args: - input: - An instance of `CreateModelInvocationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -815,20 +1081,39 @@ async def create_model_invocation_job( Returns: An instance of `CreateModelInvocationJobOutput`. """ + + async def create_model_invocation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelInvocationJobOutput: return await self._invoke( - input, _models.CREATE_MODEL_INVOCATION_JOB, [], plugins + self._select_input(_models.CREATE_MODEL_INVOCATION_JOB, args, kwargs), + _models.CREATE_MODEL_INVOCATION_JOB, + [], + plugins, ) + @_overload + async def create_prompt_router( + self, + request: _models.CreatePromptRouterInput | _models.CreatePromptRouterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePromptRouterOutput: ... + + @_overload async def create_prompt_router( - self, input: CreatePromptRouterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePromptRouterInputDict], ) -> CreatePromptRouterOutput: """ Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria. Args: - input: - An instance of `CreatePromptRouterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -838,12 +1123,34 @@ async def create_prompt_router( Returns: An instance of `CreatePromptRouterOutput`. """ - return await self._invoke(input, _models.CREATE_PROMPT_ROUTER, [], plugins) + async def create_prompt_router( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePromptRouterOutput: + return await self._invoke( + self._select_input(_models.CREATE_PROMPT_ROUTER, args, kwargs), + _models.CREATE_PROMPT_ROUTER, + [], + plugins, + ) + + @_overload async def create_provisioned_model_throughput( self, - input: CreateProvisionedModelThroughputInput, + request: _models.CreateProvisionedModelThroughputInput + | _models.CreateProvisionedModelThroughputInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateProvisionedModelThroughputOutput: ... + + @_overload + async def create_provisioned_model_throughput( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateProvisionedModelThroughputInputDict], ) -> CreateProvisionedModelThroughputOutput: """ Creates dedicated throughput for a base or custom model with the model @@ -855,8 +1162,6 @@ async def create_provisioned_model_throughput( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `CreateProvisionedModelThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -866,14 +1171,36 @@ async def create_provisioned_model_throughput( Returns: An instance of `CreateProvisionedModelThroughputOutput`. """ + + async def create_provisioned_model_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateProvisionedModelThroughputOutput: return await self._invoke( - input, _models.CREATE_PROVISIONED_MODEL_THROUGHPUT, [], plugins + self._select_input( + _models.CREATE_PROVISIONED_MODEL_THROUGHPUT, args, kwargs + ), + _models.CREATE_PROVISIONED_MODEL_THROUGHPUT, + [], + plugins, ) + @_overload + async def delete_automated_reasoning_policy( + self, + request: _models.DeleteAutomatedReasoningPolicyInput + | _models.DeleteAutomatedReasoningPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAutomatedReasoningPolicyOutput: ... + + @_overload async def delete_automated_reasoning_policy( self, - input: DeleteAutomatedReasoningPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAutomatedReasoningPolicyInputDict], ) -> DeleteAutomatedReasoningPolicyOutput: """ Deletes an Automated Reasoning policy or policy version. This operation @@ -881,8 +1208,6 @@ async def delete_automated_reasoning_policy( succeeds. Deleting a policy removes it permanently and cannot be undone. Args: - input: - An instance of `DeleteAutomatedReasoningPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -892,14 +1217,34 @@ async def delete_automated_reasoning_policy( Returns: An instance of `DeleteAutomatedReasoningPolicyOutput`. """ + + async def delete_automated_reasoning_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAutomatedReasoningPolicyOutput: return await self._invoke( - input, _models.DELETE_AUTOMATED_REASONING_POLICY, [], plugins + self._select_input(_models.DELETE_AUTOMATED_REASONING_POLICY, args, kwargs), + _models.DELETE_AUTOMATED_REASONING_POLICY, + [], + plugins, ) + @_overload + async def delete_automated_reasoning_policy_build_workflow( + self, + request: _models.DeleteAutomatedReasoningPolicyBuildWorkflowInput + | _models.DeleteAutomatedReasoningPolicyBuildWorkflowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAutomatedReasoningPolicyBuildWorkflowOutput: ... + + @_overload async def delete_automated_reasoning_policy_build_workflow( self, - input: DeleteAutomatedReasoningPolicyBuildWorkflowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAutomatedReasoningPolicyBuildWorkflowInputDict], ) -> DeleteAutomatedReasoningPolicyBuildWorkflowOutput: """ Deletes an Automated Reasoning policy build workflow and its associated @@ -907,8 +1252,6 @@ async def delete_automated_reasoning_policy_build_workflow( generated assets. Args: - input: - An instance of `DeleteAutomatedReasoningPolicyBuildWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -918,22 +1261,42 @@ async def delete_automated_reasoning_policy_build_workflow( Returns: An instance of `DeleteAutomatedReasoningPolicyBuildWorkflowOutput`. """ + + async def delete_automated_reasoning_policy_build_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAutomatedReasoningPolicyBuildWorkflowOutput: return await self._invoke( - input, _models.DELETE_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, [], plugins + self._select_input( + _models.DELETE_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, args, kwargs + ), + _models.DELETE_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, + [], + plugins, ) + @_overload + async def delete_automated_reasoning_policy_test_case( + self, + request: _models.DeleteAutomatedReasoningPolicyTestCaseInput + | _models.DeleteAutomatedReasoningPolicyTestCaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAutomatedReasoningPolicyTestCaseOutput: ... + + @_overload async def delete_automated_reasoning_policy_test_case( self, - input: DeleteAutomatedReasoningPolicyTestCaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAutomatedReasoningPolicyTestCaseInputDict], ) -> DeleteAutomatedReasoningPolicyTestCaseOutput: """ Deletes an Automated Reasoning policy test. This operation is idempotent; if you delete a test more than once, each call succeeds. Args: - input: - An instance of `DeleteAutomatedReasoningPolicyTestCaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -943,23 +1306,44 @@ async def delete_automated_reasoning_policy_test_case( Returns: An instance of `DeleteAutomatedReasoningPolicyTestCaseOutput`. """ + + async def delete_automated_reasoning_policy_test_case( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAutomatedReasoningPolicyTestCaseOutput: return await self._invoke( - input, _models.DELETE_AUTOMATED_REASONING_POLICY_TEST_CASE, [], plugins + self._select_input( + _models.DELETE_AUTOMATED_REASONING_POLICY_TEST_CASE, args, kwargs + ), + _models.DELETE_AUTOMATED_REASONING_POLICY_TEST_CASE, + [], + plugins, ) + @_overload async def delete_custom_model( - self, input: DeleteCustomModelInput, plugins: list[Plugin] | None = None - ) -> DeleteCustomModelOutput: - """ - Deletes a custom model that you created earlier. For more information, - see [Custom + self, + request: _models.DeleteCustomModelInput | _models.DeleteCustomModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomModelOutput: ... + + @_overload + async def delete_custom_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomModelInputDict], + ) -> DeleteCustomModelOutput: + """ + Deletes a custom model that you created earlier. For more information, + see [Custom models](https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html) in the [Amazon Bedrock User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `DeleteCustomModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -969,12 +1353,34 @@ async def delete_custom_model( Returns: An instance of `DeleteCustomModelOutput`. """ - return await self._invoke(input, _models.DELETE_CUSTOM_MODEL, [], plugins) + async def delete_custom_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomModelOutput: + return await self._invoke( + self._select_input(_models.DELETE_CUSTOM_MODEL, args, kwargs), + _models.DELETE_CUSTOM_MODEL, + [], + plugins, + ) + + @_overload + async def delete_custom_model_deployment( + self, + request: _models.DeleteCustomModelDeploymentInput + | _models.DeleteCustomModelDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomModelDeploymentOutput: ... + + @_overload async def delete_custom_model_deployment( self, - input: DeleteCustomModelDeploymentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomModelDeploymentInputDict], ) -> DeleteCustomModelDeploymentOutput: """ Deletes a custom model deployment. This operation stops the deployment @@ -991,8 +1397,6 @@ async def delete_custom_model_deployment( - [ListCustomModelDeployments](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html) Args: - input: - An instance of `DeleteCustomModelDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1002,21 +1406,39 @@ async def delete_custom_model_deployment( Returns: An instance of `DeleteCustomModelDeploymentOutput`. """ + + async def delete_custom_model_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomModelDeploymentOutput: return await self._invoke( - input, _models.DELETE_CUSTOM_MODEL_DEPLOYMENT, [], plugins + self._select_input(_models.DELETE_CUSTOM_MODEL_DEPLOYMENT, args, kwargs), + _models.DELETE_CUSTOM_MODEL_DEPLOYMENT, + [], + plugins, ) + @_overload + async def delete_enforced_guardrail_configuration( + self, + request: _models.DeleteEnforcedGuardrailConfigurationInput + | _models.DeleteEnforcedGuardrailConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEnforcedGuardrailConfigurationOutput: ... + + @_overload async def delete_enforced_guardrail_configuration( self, - input: DeleteEnforcedGuardrailConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEnforcedGuardrailConfigurationInputDict], ) -> DeleteEnforcedGuardrailConfigurationOutput: """ Deletes the account-level enforced guardrail configuration. Args: - input: - An instance of `DeleteEnforcedGuardrailConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1026,21 +1448,41 @@ async def delete_enforced_guardrail_configuration( Returns: An instance of `DeleteEnforcedGuardrailConfigurationOutput`. """ + + async def delete_enforced_guardrail_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEnforcedGuardrailConfigurationOutput: return await self._invoke( - input, _models.DELETE_ENFORCED_GUARDRAIL_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_ENFORCED_GUARDRAIL_CONFIGURATION, args, kwargs + ), + _models.DELETE_ENFORCED_GUARDRAIL_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_foundation_model_agreement( + self, + request: _models.DeleteFoundationModelAgreementInput + | _models.DeleteFoundationModelAgreementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFoundationModelAgreementOutput: ... + + @_overload async def delete_foundation_model_agreement( self, - input: DeleteFoundationModelAgreementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFoundationModelAgreementInputDict], ) -> DeleteFoundationModelAgreementOutput: """ Delete the model access agreement for the specified model. Args: - input: - An instance of `DeleteFoundationModelAgreementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1050,12 +1492,33 @@ async def delete_foundation_model_agreement( Returns: An instance of `DeleteFoundationModelAgreementOutput`. """ + + async def delete_foundation_model_agreement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFoundationModelAgreementOutput: return await self._invoke( - input, _models.DELETE_FOUNDATION_MODEL_AGREEMENT, [], plugins + self._select_input(_models.DELETE_FOUNDATION_MODEL_AGREEMENT, args, kwargs), + _models.DELETE_FOUNDATION_MODEL_AGREEMENT, + [], + plugins, ) + @_overload + async def delete_guardrail( + self, + request: _models.DeleteGuardrailInput | _models.DeleteGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGuardrailOutput: ... + + @_overload async def delete_guardrail( - self, input: DeleteGuardrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGuardrailInputDict], ) -> DeleteGuardrailOutput: """ Deletes a guardrail. @@ -1069,8 +1532,6 @@ async def delete_guardrail( `guardrailVersion` field. Args: - input: - An instance of `DeleteGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1080,10 +1541,34 @@ async def delete_guardrail( Returns: An instance of `DeleteGuardrailOutput`. """ - return await self._invoke(input, _models.DELETE_GUARDRAIL, [], plugins) + async def delete_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGuardrailOutput: + return await self._invoke( + self._select_input(_models.DELETE_GUARDRAIL, args, kwargs), + _models.DELETE_GUARDRAIL, + [], + plugins, + ) + + @_overload + async def delete_imported_model( + self, + request: _models.DeleteImportedModelInput + | _models.DeleteImportedModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteImportedModelOutput: ... + + @_overload async def delete_imported_model( - self, input: DeleteImportedModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteImportedModelInputDict], ) -> DeleteImportedModelOutput: """ Deletes a custom model that you imported earlier. For more information, @@ -1093,8 +1578,6 @@ async def delete_imported_model( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `DeleteImportedModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1104,10 +1587,34 @@ async def delete_imported_model( Returns: An instance of `DeleteImportedModelOutput`. """ - return await self._invoke(input, _models.DELETE_IMPORTED_MODEL, [], plugins) + async def delete_imported_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteImportedModelOutput: + return await self._invoke( + self._select_input(_models.DELETE_IMPORTED_MODEL, args, kwargs), + _models.DELETE_IMPORTED_MODEL, + [], + plugins, + ) + + @_overload + async def delete_inference_profile( + self, + request: _models.DeleteInferenceProfileInput + | _models.DeleteInferenceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInferenceProfileOutput: ... + + @_overload async def delete_inference_profile( - self, input: DeleteInferenceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInferenceProfileInputDict], ) -> DeleteInferenceProfileOutput: """ Deletes an application inference profile. For more information, see @@ -1117,8 +1624,6 @@ async def delete_inference_profile( in the Amazon Bedrock User Guide. Args: - input: - An instance of `DeleteInferenceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1128,19 +1633,39 @@ async def delete_inference_profile( Returns: An instance of `DeleteInferenceProfileOutput`. """ - return await self._invoke(input, _models.DELETE_INFERENCE_PROFILE, [], plugins) + async def delete_inference_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInferenceProfileOutput: + return await self._invoke( + self._select_input(_models.DELETE_INFERENCE_PROFILE, args, kwargs), + _models.DELETE_INFERENCE_PROFILE, + [], + plugins, + ) + + @_overload + async def delete_marketplace_model_endpoint( + self, + request: _models.DeleteMarketplaceModelEndpointInput + | _models.DeleteMarketplaceModelEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMarketplaceModelEndpointOutput: ... + + @_overload async def delete_marketplace_model_endpoint( self, - input: DeleteMarketplaceModelEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMarketplaceModelEndpointInputDict], ) -> DeleteMarketplaceModelEndpointOutput: """ Deletes an endpoint for a model from Amazon Bedrock Marketplace. Args: - input: - An instance of `DeleteMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1150,21 +1675,39 @@ async def delete_marketplace_model_endpoint( Returns: An instance of `DeleteMarketplaceModelEndpointOutput`. """ + + async def delete_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMarketplaceModelEndpointOutput: return await self._invoke( - input, _models.DELETE_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input(_models.DELETE_MARKETPLACE_MODEL_ENDPOINT, args, kwargs), + _models.DELETE_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + async def delete_model_invocation_logging_configuration( + self, + request: _models.DeleteModelInvocationLoggingConfigurationInput + | _models.DeleteModelInvocationLoggingConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteModelInvocationLoggingConfigurationOutput: ... + + @_overload async def delete_model_invocation_logging_configuration( self, - input: DeleteModelInvocationLoggingConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteModelInvocationLoggingConfigurationInputDict], ) -> DeleteModelInvocationLoggingConfigurationOutput: """ Delete the invocation logging. Args: - input: - An instance of `DeleteModelInvocationLoggingConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1174,19 +1717,40 @@ async def delete_model_invocation_logging_configuration( Returns: An instance of `DeleteModelInvocationLoggingConfigurationOutput`. """ + + async def delete_model_invocation_logging_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteModelInvocationLoggingConfigurationOutput: return await self._invoke( - input, _models.DELETE_MODEL_INVOCATION_LOGGING_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_MODEL_INVOCATION_LOGGING_CONFIGURATION, args, kwargs + ), + _models.DELETE_MODEL_INVOCATION_LOGGING_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_prompt_router( + self, + request: _models.DeletePromptRouterInput | _models.DeletePromptRouterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePromptRouterOutput: ... + + @_overload async def delete_prompt_router( - self, input: DeletePromptRouterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePromptRouterInputDict], ) -> DeletePromptRouterOutput: """ Deletes a specified prompt router. This action cannot be undone. Args: - input: - An instance of `DeletePromptRouterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1196,12 +1760,34 @@ async def delete_prompt_router( Returns: An instance of `DeletePromptRouterOutput`. """ - return await self._invoke(input, _models.DELETE_PROMPT_ROUTER, [], plugins) + async def delete_prompt_router( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePromptRouterOutput: + return await self._invoke( + self._select_input(_models.DELETE_PROMPT_ROUTER, args, kwargs), + _models.DELETE_PROMPT_ROUTER, + [], + plugins, + ) + + @_overload + async def delete_provisioned_model_throughput( + self, + request: _models.DeleteProvisionedModelThroughputInput + | _models.DeleteProvisionedModelThroughputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteProvisionedModelThroughputOutput: ... + + @_overload async def delete_provisioned_model_throughput( self, - input: DeleteProvisionedModelThroughputInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteProvisionedModelThroughputInputDict], ) -> DeleteProvisionedModelThroughputOutput: """ Deletes a Provisioned Throughput. You can't delete a Provisioned @@ -1212,8 +1798,6 @@ async def delete_provisioned_model_throughput( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `DeleteProvisionedModelThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1223,19 +1807,41 @@ async def delete_provisioned_model_throughput( Returns: An instance of `DeleteProvisionedModelThroughputOutput`. """ + + async def delete_provisioned_model_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteProvisionedModelThroughputOutput: return await self._invoke( - input, _models.DELETE_PROVISIONED_MODEL_THROUGHPUT, [], plugins + self._select_input( + _models.DELETE_PROVISIONED_MODEL_THROUGHPUT, args, kwargs + ), + _models.DELETE_PROVISIONED_MODEL_THROUGHPUT, + [], + plugins, ) + @_overload + async def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes a previously created Bedrock resource policy. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1245,12 +1851,34 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload async def deregister_marketplace_model_endpoint( self, - input: DeregisterMarketplaceModelEndpointInput, + request: _models.DeregisterMarketplaceModelEndpointInput + | _models.DeregisterMarketplaceModelEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeregisterMarketplaceModelEndpointOutput: ... + + @_overload + async def deregister_marketplace_model_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterMarketplaceModelEndpointInputDict], ) -> DeregisterMarketplaceModelEndpointOutput: """ Deregisters an endpoint for a model from Amazon Bedrock Marketplace. @@ -1258,8 +1886,6 @@ async def deregister_marketplace_model_endpoint( but does not delete the underlying Amazon SageMaker endpoint. Args: - input: - An instance of `DeregisterMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1269,14 +1895,36 @@ async def deregister_marketplace_model_endpoint( Returns: An instance of `DeregisterMarketplaceModelEndpointOutput`. """ + + async def deregister_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterMarketplaceModelEndpointOutput: return await self._invoke( - input, _models.DEREGISTER_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input( + _models.DEREGISTER_MARKETPLACE_MODEL_ENDPOINT, args, kwargs + ), + _models.DEREGISTER_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + async def export_automated_reasoning_policy_version( + self, + request: _models.ExportAutomatedReasoningPolicyVersionInput + | _models.ExportAutomatedReasoningPolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportAutomatedReasoningPolicyVersionOutput: ... + + @_overload async def export_automated_reasoning_policy_version( self, - input: ExportAutomatedReasoningPolicyVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportAutomatedReasoningPolicyVersionInputDict], ) -> ExportAutomatedReasoningPolicyVersionOutput: """ Exports the policy definition for an Automated Reasoning policy version. @@ -1284,8 +1932,6 @@ async def export_automated_reasoning_policy_version( custom variable types in a structured format. Args: - input: - An instance of `ExportAutomatedReasoningPolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1295,19 +1941,41 @@ async def export_automated_reasoning_policy_version( Returns: An instance of `ExportAutomatedReasoningPolicyVersionOutput`. """ + + async def export_automated_reasoning_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportAutomatedReasoningPolicyVersionOutput: return await self._invoke( - input, _models.EXPORT_AUTOMATED_REASONING_POLICY_VERSION, [], plugins + self._select_input( + _models.EXPORT_AUTOMATED_REASONING_POLICY_VERSION, args, kwargs + ), + _models.EXPORT_AUTOMATED_REASONING_POLICY_VERSION, + [], + plugins, ) + @_overload + async def get_account_data_retention( + self, + request: _models.GetAccountDataRetentionInput + | _models.GetAccountDataRetentionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountDataRetentionOutput: ... + + @_overload async def get_account_data_retention( - self, input: GetAccountDataRetentionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountDataRetentionInputDict], ) -> GetAccountDataRetentionOutput: """ Returns the account-wide data retention mode for Amazon Bedrock. Args: - input: - An instance of `GetAccountDataRetentionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1317,21 +1985,39 @@ async def get_account_data_retention( Returns: An instance of `GetAccountDataRetentionOutput`. """ + + async def get_account_data_retention( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountDataRetentionOutput: return await self._invoke( - input, _models.GET_ACCOUNT_DATA_RETENTION, [], plugins + self._select_input(_models.GET_ACCOUNT_DATA_RETENTION, args, kwargs), + _models.GET_ACCOUNT_DATA_RETENTION, + [], + plugins, ) + @_overload + async def get_advanced_prompt_optimization_job( + self, + request: _models.GetAdvancedPromptOptimizationJobInput + | _models.GetAdvancedPromptOptimizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAdvancedPromptOptimizationJobOutput: ... + + @_overload async def get_advanced_prompt_optimization_job( self, - input: GetAdvancedPromptOptimizationJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAdvancedPromptOptimizationJobInputDict], ) -> GetAdvancedPromptOptimizationJobOutput: """ Gets information about an advanced prompt optimization job. Args: - input: - An instance of `GetAdvancedPromptOptimizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1341,14 +2027,36 @@ async def get_advanced_prompt_optimization_job( Returns: An instance of `GetAdvancedPromptOptimizationJobOutput`. """ + + async def get_advanced_prompt_optimization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAdvancedPromptOptimizationJobOutput: return await self._invoke( - input, _models.GET_ADVANCED_PROMPT_OPTIMIZATION_JOB, [], plugins + self._select_input( + _models.GET_ADVANCED_PROMPT_OPTIMIZATION_JOB, args, kwargs + ), + _models.GET_ADVANCED_PROMPT_OPTIMIZATION_JOB, + [], + plugins, ) + @_overload + async def get_automated_reasoning_policy( + self, + request: _models.GetAutomatedReasoningPolicyInput + | _models.GetAutomatedReasoningPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyOutput: ... + + @_overload async def get_automated_reasoning_policy( self, - input: GetAutomatedReasoningPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyInputDict], ) -> GetAutomatedReasoningPolicyOutput: """ Retrieves details about an Automated Reasoning policy or policy version. @@ -1356,8 +2064,6 @@ async def get_automated_reasoning_policy( timestamps. Args: - input: - An instance of `GetAutomatedReasoningPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1367,14 +2073,34 @@ async def get_automated_reasoning_policy( Returns: An instance of `GetAutomatedReasoningPolicyOutput`. """ + + async def get_automated_reasoning_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyOutput: return await self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY, [], plugins + self._select_input(_models.GET_AUTOMATED_REASONING_POLICY, args, kwargs), + _models.GET_AUTOMATED_REASONING_POLICY, + [], + plugins, ) + @_overload + async def get_automated_reasoning_policy_annotations( + self, + request: _models.GetAutomatedReasoningPolicyAnnotationsInput + | _models.GetAutomatedReasoningPolicyAnnotationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyAnnotationsOutput: ... + + @_overload async def get_automated_reasoning_policy_annotations( self, - input: GetAutomatedReasoningPolicyAnnotationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyAnnotationsInputDict], ) -> GetAutomatedReasoningPolicyAnnotationsOutput: """ Retrieves the current annotations for an Automated Reasoning policy @@ -1382,8 +2108,6 @@ async def get_automated_reasoning_policy_annotations( and types to be applied to the policy. Args: - input: - An instance of `GetAutomatedReasoningPolicyAnnotationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1393,22 +2117,42 @@ async def get_automated_reasoning_policy_annotations( Returns: An instance of `GetAutomatedReasoningPolicyAnnotationsOutput`. """ + + async def get_automated_reasoning_policy_annotations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyAnnotationsOutput: return await self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_ANNOTATIONS, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_ANNOTATIONS, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_ANNOTATIONS, + [], + plugins, ) + @_overload async def get_automated_reasoning_policy_build_workflow( self, - input: GetAutomatedReasoningPolicyBuildWorkflowInput, + request: _models.GetAutomatedReasoningPolicyBuildWorkflowInput + | _models.GetAutomatedReasoningPolicyBuildWorkflowInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyBuildWorkflowOutput: ... + + @_overload + async def get_automated_reasoning_policy_build_workflow( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyBuildWorkflowInputDict], ) -> GetAutomatedReasoningPolicyBuildWorkflowOutput: """ Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata. Args: - input: - An instance of `GetAutomatedReasoningPolicyBuildWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1418,14 +2162,38 @@ async def get_automated_reasoning_policy_build_workflow( Returns: An instance of `GetAutomatedReasoningPolicyBuildWorkflowOutput`. """ + + async def get_automated_reasoning_policy_build_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyBuildWorkflowOutput: return await self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, + [], + plugins, ) + @_overload + async def get_automated_reasoning_policy_build_workflow_result_assets( + self, + request: _models.GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput + | _models.GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput: ... + + @_overload async def get_automated_reasoning_policy_build_workflow_result_assets( self, - input: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict + ], ) -> GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput: """ Retrieves the resulting assets from a completed Automated Reasoning @@ -1433,8 +2201,6 @@ async def get_automated_reasoning_policy_build_workflow_result_assets( generated policy artifacts. Args: - input: - An instance of `GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1444,17 +2210,38 @@ async def get_automated_reasoning_policy_build_workflow_result_assets( Returns: An instance of `GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput`. """ + + async def get_automated_reasoning_policy_build_workflow_result_assets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput: return await self._invoke( - input, + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW_RESULT_ASSETS, + args, + kwargs, + ), _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW_RESULT_ASSETS, [], plugins, ) + @_overload async def get_automated_reasoning_policy_next_scenario( self, - input: GetAutomatedReasoningPolicyNextScenarioInput, + request: _models.GetAutomatedReasoningPolicyNextScenarioInput + | _models.GetAutomatedReasoningPolicyNextScenarioInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyNextScenarioOutput: ... + + @_overload + async def get_automated_reasoning_policy_next_scenario( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyNextScenarioInputDict], ) -> GetAutomatedReasoningPolicyNextScenarioOutput: """ Retrieves the next test scenario for validating an Automated Reasoning @@ -1462,8 +2249,6 @@ async def get_automated_reasoning_policy_next_scenario( test policy behavior. Args: - input: - An instance of `GetAutomatedReasoningPolicyNextScenarioInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1473,21 +2258,41 @@ async def get_automated_reasoning_policy_next_scenario( Returns: An instance of `GetAutomatedReasoningPolicyNextScenarioOutput`. """ + + async def get_automated_reasoning_policy_next_scenario( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyNextScenarioOutput: return await self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_NEXT_SCENARIO, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_NEXT_SCENARIO, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_NEXT_SCENARIO, + [], + plugins, ) + @_overload + async def get_automated_reasoning_policy_test_case( + self, + request: _models.GetAutomatedReasoningPolicyTestCaseInput + | _models.GetAutomatedReasoningPolicyTestCaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyTestCaseOutput: ... + + @_overload async def get_automated_reasoning_policy_test_case( self, - input: GetAutomatedReasoningPolicyTestCaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyTestCaseInputDict], ) -> GetAutomatedReasoningPolicyTestCaseOutput: """ Retrieves details about a specific Automated Reasoning policy test. Args: - input: - An instance of `GetAutomatedReasoningPolicyTestCaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1497,22 +2302,42 @@ async def get_automated_reasoning_policy_test_case( Returns: An instance of `GetAutomatedReasoningPolicyTestCaseOutput`. """ + + async def get_automated_reasoning_policy_test_case( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyTestCaseOutput: return await self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_TEST_CASE, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_TEST_CASE, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_TEST_CASE, + [], + plugins, ) + @_overload + async def get_automated_reasoning_policy_test_result( + self, + request: _models.GetAutomatedReasoningPolicyTestResultInput + | _models.GetAutomatedReasoningPolicyTestResultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyTestResultOutput: ... + + @_overload async def get_automated_reasoning_policy_test_result( self, - input: GetAutomatedReasoningPolicyTestResultInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyTestResultInputDict], ) -> GetAutomatedReasoningPolicyTestResultOutput: """ Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status. Args: - input: - An instance of `GetAutomatedReasoningPolicyTestResultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1522,12 +2347,35 @@ async def get_automated_reasoning_policy_test_result( Returns: An instance of `GetAutomatedReasoningPolicyTestResultOutput`. """ + + async def get_automated_reasoning_policy_test_result( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyTestResultOutput: return await self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_TEST_RESULT, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_TEST_RESULT, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_TEST_RESULT, + [], + plugins, ) + @_overload + async def get_custom_model( + self, + request: _models.GetCustomModelInput | _models.GetCustomModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomModelOutput: ... + + @_overload async def get_custom_model( - self, input: GetCustomModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomModelInputDict], ) -> GetCustomModelOutput: """ Get the properties associated with a Amazon Bedrock custom model that @@ -1537,8 +2385,6 @@ async def get_custom_model( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetCustomModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1548,10 +2394,34 @@ async def get_custom_model( Returns: An instance of `GetCustomModelOutput`. """ - return await self._invoke(input, _models.GET_CUSTOM_MODEL, [], plugins) + async def get_custom_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomModelOutput: + return await self._invoke( + self._select_input(_models.GET_CUSTOM_MODEL, args, kwargs), + _models.GET_CUSTOM_MODEL, + [], + plugins, + ) + + @_overload async def get_custom_model_deployment( - self, input: GetCustomModelDeploymentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCustomModelDeploymentInput + | _models.GetCustomModelDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomModelDeploymentOutput: ... + + @_overload + async def get_custom_model_deployment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomModelDeploymentInputDict], ) -> GetCustomModelDeploymentOutput: """ Retrieves information about a custom model deployment, including its @@ -1568,8 +2438,6 @@ async def get_custom_model_deployment( - [DeleteCustomModelDeployment](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html) Args: - input: - An instance of `GetCustomModelDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1579,19 +2447,38 @@ async def get_custom_model_deployment( Returns: An instance of `GetCustomModelDeploymentOutput`. """ - return await self._invoke( - input, _models.GET_CUSTOM_MODEL_DEPLOYMENT, [], plugins - ) + async def get_custom_model_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomModelDeploymentOutput: + return await self._invoke( + self._select_input(_models.GET_CUSTOM_MODEL_DEPLOYMENT, args, kwargs), + _models.GET_CUSTOM_MODEL_DEPLOYMENT, + [], + plugins, + ) + + @_overload async def get_evaluation_job( - self, input: GetEvaluationJobInput, plugins: list[Plugin] | None = None + self, + request: _models.GetEvaluationJobInput | _models.GetEvaluationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEvaluationJobOutput: ... + + @_overload + async def get_evaluation_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEvaluationJobInputDict], ) -> GetEvaluationJobOutput: """ Gets information about an evaluation job, such as the status of the job. Args: - input: - An instance of `GetEvaluationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1601,17 +2488,38 @@ async def get_evaluation_job( Returns: An instance of `GetEvaluationJobOutput`. """ - return await self._invoke(input, _models.GET_EVALUATION_JOB, [], plugins) + async def get_evaluation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEvaluationJobOutput: + return await self._invoke( + self._select_input(_models.GET_EVALUATION_JOB, args, kwargs), + _models.GET_EVALUATION_JOB, + [], + plugins, + ) + + @_overload + async def get_foundation_model( + self, + request: _models.GetFoundationModelInput | _models.GetFoundationModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFoundationModelOutput: ... + + @_overload async def get_foundation_model( - self, input: GetFoundationModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFoundationModelInputDict], ) -> GetFoundationModelOutput: """ Get details about a Amazon Bedrock foundation model. Args: - input: - An instance of `GetFoundationModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1621,19 +2529,39 @@ async def get_foundation_model( Returns: An instance of `GetFoundationModelOutput`. """ - return await self._invoke(input, _models.GET_FOUNDATION_MODEL, [], plugins) + async def get_foundation_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFoundationModelOutput: + return await self._invoke( + self._select_input(_models.GET_FOUNDATION_MODEL, args, kwargs), + _models.GET_FOUNDATION_MODEL, + [], + plugins, + ) + + @_overload + async def get_foundation_model_availability( + self, + request: _models.GetFoundationModelAvailabilityInput + | _models.GetFoundationModelAvailabilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFoundationModelAvailabilityOutput: ... + + @_overload async def get_foundation_model_availability( self, - input: GetFoundationModelAvailabilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFoundationModelAvailabilityInputDict], ) -> GetFoundationModelAvailabilityOutput: """ Get information about the Foundation model availability. Args: - input: - An instance of `GetFoundationModelAvailabilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1643,20 +2571,39 @@ async def get_foundation_model_availability( Returns: An instance of `GetFoundationModelAvailabilityOutput`. """ + + async def get_foundation_model_availability( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFoundationModelAvailabilityOutput: return await self._invoke( - input, _models.GET_FOUNDATION_MODEL_AVAILABILITY, [], plugins + self._select_input(_models.GET_FOUNDATION_MODEL_AVAILABILITY, args, kwargs), + _models.GET_FOUNDATION_MODEL_AVAILABILITY, + [], + plugins, ) + @_overload + async def get_guardrail( + self, + request: _models.GetGuardrailInput | _models.GetGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGuardrailOutput: ... + + @_overload async def get_guardrail( - self, input: GetGuardrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGuardrailInputDict], ) -> GetGuardrailOutput: """ Gets details about a guardrail. If you don't specify a version, the response returns details for the `DRAFT` version. Args: - input: - An instance of `GetGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1666,17 +2613,38 @@ async def get_guardrail( Returns: An instance of `GetGuardrailOutput`. """ - return await self._invoke(input, _models.GET_GUARDRAIL, [], plugins) + async def get_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGuardrailOutput: + return await self._invoke( + self._select_input(_models.GET_GUARDRAIL, args, kwargs), + _models.GET_GUARDRAIL, + [], + plugins, + ) + + @_overload async def get_imported_model( - self, input: GetImportedModelInput, plugins: list[Plugin] | None = None + self, + request: _models.GetImportedModelInput | _models.GetImportedModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImportedModelOutput: ... + + @_overload + async def get_imported_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImportedModelInputDict], ) -> GetImportedModelOutput: """ Gets properties associated with a customized model you imported. Args: - input: - An instance of `GetImportedModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1686,10 +2654,34 @@ async def get_imported_model( Returns: An instance of `GetImportedModelOutput`. """ - return await self._invoke(input, _models.GET_IMPORTED_MODEL, [], plugins) + async def get_imported_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImportedModelOutput: + return await self._invoke( + self._select_input(_models.GET_IMPORTED_MODEL, args, kwargs), + _models.GET_IMPORTED_MODEL, + [], + plugins, + ) + + @_overload + async def get_inference_profile( + self, + request: _models.GetInferenceProfileInput + | _models.GetInferenceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInferenceProfileOutput: ... + + @_overload async def get_inference_profile( - self, input: GetInferenceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInferenceProfileInputDict], ) -> GetInferenceProfileOutput: """ Gets information about an inference profile. For more information, see @@ -1699,8 +2691,6 @@ async def get_inference_profile( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetInferenceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1710,20 +2700,40 @@ async def get_inference_profile( Returns: An instance of `GetInferenceProfileOutput`. """ - return await self._invoke(input, _models.GET_INFERENCE_PROFILE, [], plugins) + async def get_inference_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInferenceProfileOutput: + return await self._invoke( + self._select_input(_models.GET_INFERENCE_PROFILE, args, kwargs), + _models.GET_INFERENCE_PROFILE, + [], + plugins, + ) + + @_overload async def get_marketplace_model_endpoint( self, - input: GetMarketplaceModelEndpointInput, + request: _models.GetMarketplaceModelEndpointInput + | _models.GetMarketplaceModelEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetMarketplaceModelEndpointOutput: ... + + @_overload + async def get_marketplace_model_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMarketplaceModelEndpointInputDict], ) -> GetMarketplaceModelEndpointOutput: """ Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace. Args: - input: - An instance of `GetMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1733,12 +2743,33 @@ async def get_marketplace_model_endpoint( Returns: An instance of `GetMarketplaceModelEndpointOutput`. """ + + async def get_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMarketplaceModelEndpointOutput: return await self._invoke( - input, _models.GET_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input(_models.GET_MARKETPLACE_MODEL_ENDPOINT, args, kwargs), + _models.GET_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + async def get_model_copy_job( + self, + request: _models.GetModelCopyJobInput | _models.GetModelCopyJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelCopyJobOutput: ... + + @_overload async def get_model_copy_job( - self, input: GetModelCopyJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelCopyJobInputDict], ) -> GetModelCopyJobOutput: """ Retrieves information about a model copy job. For more information, see @@ -1748,8 +2779,6 @@ async def get_model_copy_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetModelCopyJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1759,10 +2788,34 @@ async def get_model_copy_job( Returns: An instance of `GetModelCopyJobOutput`. """ - return await self._invoke(input, _models.GET_MODEL_COPY_JOB, [], plugins) + async def get_model_copy_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelCopyJobOutput: + return await self._invoke( + self._select_input(_models.GET_MODEL_COPY_JOB, args, kwargs), + _models.GET_MODEL_COPY_JOB, + [], + plugins, + ) + + @_overload + async def get_model_customization_job( + self, + request: _models.GetModelCustomizationJobInput + | _models.GetModelCustomizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelCustomizationJobOutput: ... + + @_overload async def get_model_customization_job( - self, input: GetModelCustomizationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelCustomizationJobInputDict], ) -> GetModelCustomizationJobOutput: """ Retrieves the properties associated with a model-customization job, @@ -1772,8 +2825,6 @@ async def get_model_customization_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetModelCustomizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1783,12 +2834,33 @@ async def get_model_customization_job( Returns: An instance of `GetModelCustomizationJobOutput`. """ + + async def get_model_customization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelCustomizationJobOutput: return await self._invoke( - input, _models.GET_MODEL_CUSTOMIZATION_JOB, [], plugins + self._select_input(_models.GET_MODEL_CUSTOMIZATION_JOB, args, kwargs), + _models.GET_MODEL_CUSTOMIZATION_JOB, + [], + plugins, ) + @_overload + async def get_model_import_job( + self, + request: _models.GetModelImportJobInput | _models.GetModelImportJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelImportJobOutput: ... + + @_overload async def get_model_import_job( - self, input: GetModelImportJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelImportJobInputDict], ) -> GetModelImportJobOutput: """ Retrieves the properties associated with import model job, including the @@ -1798,8 +2870,6 @@ async def get_model_import_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetModelImportJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1809,10 +2879,34 @@ async def get_model_import_job( Returns: An instance of `GetModelImportJobOutput`. """ - return await self._invoke(input, _models.GET_MODEL_IMPORT_JOB, [], plugins) + async def get_model_import_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelImportJobOutput: + return await self._invoke( + self._select_input(_models.GET_MODEL_IMPORT_JOB, args, kwargs), + _models.GET_MODEL_IMPORT_JOB, + [], + plugins, + ) + + @_overload async def get_model_invocation_job( - self, input: GetModelInvocationJobInput, plugins: list[Plugin] | None = None + self, + request: _models.GetModelInvocationJobInput + | _models.GetModelInvocationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelInvocationJobOutput: ... + + @_overload + async def get_model_invocation_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelInvocationJobInputDict], ) -> GetModelInvocationJobOutput: """ Gets details about a batch inference job. For more information, see @@ -1820,8 +2914,6 @@ async def get_model_invocation_job( jobs](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-monitor) Args: - input: - An instance of `GetModelInvocationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1831,19 +2923,39 @@ async def get_model_invocation_job( Returns: An instance of `GetModelInvocationJobOutput`. """ - return await self._invoke(input, _models.GET_MODEL_INVOCATION_JOB, [], plugins) + async def get_model_invocation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelInvocationJobOutput: + return await self._invoke( + self._select_input(_models.GET_MODEL_INVOCATION_JOB, args, kwargs), + _models.GET_MODEL_INVOCATION_JOB, + [], + plugins, + ) + + @_overload + async def get_model_invocation_logging_configuration( + self, + request: _models.GetModelInvocationLoggingConfigurationInput + | _models.GetModelInvocationLoggingConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelInvocationLoggingConfigurationOutput: ... + + @_overload async def get_model_invocation_logging_configuration( self, - input: GetModelInvocationLoggingConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelInvocationLoggingConfigurationInputDict], ) -> GetModelInvocationLoggingConfigurationOutput: """ Get the current configuration values for model invocation logging. Args: - input: - An instance of `GetModelInvocationLoggingConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1853,19 +2965,40 @@ async def get_model_invocation_logging_configuration( Returns: An instance of `GetModelInvocationLoggingConfigurationOutput`. """ + + async def get_model_invocation_logging_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelInvocationLoggingConfigurationOutput: return await self._invoke( - input, _models.GET_MODEL_INVOCATION_LOGGING_CONFIGURATION, [], plugins + self._select_input( + _models.GET_MODEL_INVOCATION_LOGGING_CONFIGURATION, args, kwargs + ), + _models.GET_MODEL_INVOCATION_LOGGING_CONFIGURATION, + [], + plugins, ) + @_overload async def get_prompt_router( - self, input: GetPromptRouterInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPromptRouterInput | _models.GetPromptRouterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPromptRouterOutput: ... + + @_overload + async def get_prompt_router( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPromptRouterInputDict], ) -> GetPromptRouterOutput: """ Retrieves details about a prompt router. Args: - input: - An instance of `GetPromptRouterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1875,12 +3008,34 @@ async def get_prompt_router( Returns: An instance of `GetPromptRouterOutput`. """ - return await self._invoke(input, _models.GET_PROMPT_ROUTER, [], plugins) + async def get_prompt_router( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPromptRouterOutput: + return await self._invoke( + self._select_input(_models.GET_PROMPT_ROUTER, args, kwargs), + _models.GET_PROMPT_ROUTER, + [], + plugins, + ) + + @_overload async def get_provisioned_model_throughput( self, - input: GetProvisionedModelThroughputInput, + request: _models.GetProvisionedModelThroughputInput + | _models.GetProvisionedModelThroughputInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetProvisionedModelThroughputOutput: ... + + @_overload + async def get_provisioned_model_throughput( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetProvisionedModelThroughputInputDict], ) -> GetProvisionedModelThroughputOutput: """ Returns details for a Provisioned Throughput. For more information, see @@ -1890,8 +3045,6 @@ async def get_provisioned_model_throughput( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetProvisionedModelThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1901,19 +3054,38 @@ async def get_provisioned_model_throughput( Returns: An instance of `GetProvisionedModelThroughputOutput`. """ + + async def get_provisioned_model_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetProvisionedModelThroughputOutput: return await self._invoke( - input, _models.GET_PROVISIONED_MODEL_THROUGHPUT, [], plugins + self._select_input(_models.GET_PROVISIONED_MODEL_THROUGHPUT, args, kwargs), + _models.GET_PROVISIONED_MODEL_THROUGHPUT, + [], + plugins, ) + @_overload + async def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Gets the resource policy document for a Bedrock resource Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1923,17 +3095,39 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def get_use_case_for_model_access( + self, + request: _models.GetUseCaseForModelAccessInput + | _models.GetUseCaseForModelAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUseCaseForModelAccessOutput: ... + + @_overload async def get_use_case_for_model_access( - self, input: GetUseCaseForModelAccessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUseCaseForModelAccessInputDict], ) -> GetUseCaseForModelAccessOutput: """ Get usecase for model access. Args: - input: - An instance of `GetUseCaseForModelAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1943,21 +3137,39 @@ async def get_use_case_for_model_access( Returns: An instance of `GetUseCaseForModelAccessOutput`. """ + + async def get_use_case_for_model_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUseCaseForModelAccessOutput: return await self._invoke( - input, _models.GET_USE_CASE_FOR_MODEL_ACCESS, [], plugins + self._select_input(_models.GET_USE_CASE_FOR_MODEL_ACCESS, args, kwargs), + _models.GET_USE_CASE_FOR_MODEL_ACCESS, + [], + plugins, ) + @_overload + async def list_advanced_prompt_optimization_jobs( + self, + request: _models.ListAdvancedPromptOptimizationJobsInput + | _models.ListAdvancedPromptOptimizationJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAdvancedPromptOptimizationJobsOutput: ... + + @_overload async def list_advanced_prompt_optimization_jobs( self, - input: ListAdvancedPromptOptimizationJobsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAdvancedPromptOptimizationJobsInputDict], ) -> ListAdvancedPromptOptimizationJobsOutput: """ Lists the advanced prompt optimization jobs in your account. Args: - input: - An instance of `ListAdvancedPromptOptimizationJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1967,14 +3179,36 @@ async def list_advanced_prompt_optimization_jobs( Returns: An instance of `ListAdvancedPromptOptimizationJobsOutput`. """ + + async def list_advanced_prompt_optimization_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAdvancedPromptOptimizationJobsOutput: return await self._invoke( - input, _models.LIST_ADVANCED_PROMPT_OPTIMIZATION_JOBS, [], plugins + self._select_input( + _models.LIST_ADVANCED_PROMPT_OPTIMIZATION_JOBS, args, kwargs + ), + _models.LIST_ADVANCED_PROMPT_OPTIMIZATION_JOBS, + [], + plugins, ) + @_overload async def list_automated_reasoning_policies( self, - input: ListAutomatedReasoningPoliciesInput, + request: _models.ListAutomatedReasoningPoliciesInput + | _models.ListAutomatedReasoningPoliciesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListAutomatedReasoningPoliciesOutput: ... + + @_overload + async def list_automated_reasoning_policies( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAutomatedReasoningPoliciesInputDict], ) -> ListAutomatedReasoningPoliciesOutput: """ Lists all Automated Reasoning policies in your account, with optional @@ -1982,8 +3216,6 @@ async def list_automated_reasoning_policies( policies. Args: - input: - An instance of `ListAutomatedReasoningPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1993,22 +3225,40 @@ async def list_automated_reasoning_policies( Returns: An instance of `ListAutomatedReasoningPoliciesOutput`. """ + + async def list_automated_reasoning_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAutomatedReasoningPoliciesOutput: return await self._invoke( - input, _models.LIST_AUTOMATED_REASONING_POLICIES, [], plugins + self._select_input(_models.LIST_AUTOMATED_REASONING_POLICIES, args, kwargs), + _models.LIST_AUTOMATED_REASONING_POLICIES, + [], + plugins, ) + @_overload + async def list_automated_reasoning_policy_build_workflows( + self, + request: _models.ListAutomatedReasoningPolicyBuildWorkflowsInput + | _models.ListAutomatedReasoningPolicyBuildWorkflowsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAutomatedReasoningPolicyBuildWorkflowsOutput: ... + + @_overload async def list_automated_reasoning_policy_build_workflows( self, - input: ListAutomatedReasoningPolicyBuildWorkflowsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAutomatedReasoningPolicyBuildWorkflowsInputDict], ) -> ListAutomatedReasoningPolicyBuildWorkflowsOutput: """ Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts. Args: - input: - An instance of `ListAutomatedReasoningPolicyBuildWorkflowsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2018,14 +3268,36 @@ async def list_automated_reasoning_policy_build_workflows( Returns: An instance of `ListAutomatedReasoningPolicyBuildWorkflowsOutput`. """ + + async def list_automated_reasoning_policy_build_workflows( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAutomatedReasoningPolicyBuildWorkflowsOutput: return await self._invoke( - input, _models.LIST_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOWS, [], plugins + self._select_input( + _models.LIST_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOWS, args, kwargs + ), + _models.LIST_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOWS, + [], + plugins, ) + @_overload + async def list_automated_reasoning_policy_test_cases( + self, + request: _models.ListAutomatedReasoningPolicyTestCasesInput + | _models.ListAutomatedReasoningPolicyTestCasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAutomatedReasoningPolicyTestCasesOutput: ... + + @_overload async def list_automated_reasoning_policy_test_cases( self, - input: ListAutomatedReasoningPolicyTestCasesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAutomatedReasoningPolicyTestCasesInputDict], ) -> ListAutomatedReasoningPolicyTestCasesOutput: """ Lists tests for an Automated Reasoning policy. We recommend using @@ -2033,8 +3305,6 @@ async def list_automated_reasoning_policy_test_cases( successfully. Args: - input: - An instance of `ListAutomatedReasoningPolicyTestCasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2044,22 +3314,42 @@ async def list_automated_reasoning_policy_test_cases( Returns: An instance of `ListAutomatedReasoningPolicyTestCasesOutput`. """ + + async def list_automated_reasoning_policy_test_cases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAutomatedReasoningPolicyTestCasesOutput: return await self._invoke( - input, _models.LIST_AUTOMATED_REASONING_POLICY_TEST_CASES, [], plugins + self._select_input( + _models.LIST_AUTOMATED_REASONING_POLICY_TEST_CASES, args, kwargs + ), + _models.LIST_AUTOMATED_REASONING_POLICY_TEST_CASES, + [], + plugins, ) + @_overload async def list_automated_reasoning_policy_test_results( self, - input: ListAutomatedReasoningPolicyTestResultsInput, + request: _models.ListAutomatedReasoningPolicyTestResultsInput + | _models.ListAutomatedReasoningPolicyTestResultsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListAutomatedReasoningPolicyTestResultsOutput: ... + + @_overload + async def list_automated_reasoning_policy_test_results( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAutomatedReasoningPolicyTestResultsInputDict], ) -> ListAutomatedReasoningPolicyTestResultsOutput: """ Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks. Args: - input: - An instance of `ListAutomatedReasoningPolicyTestResultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2069,14 +3359,36 @@ async def list_automated_reasoning_policy_test_results( Returns: An instance of `ListAutomatedReasoningPolicyTestResultsOutput`. """ + + async def list_automated_reasoning_policy_test_results( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAutomatedReasoningPolicyTestResultsOutput: return await self._invoke( - input, _models.LIST_AUTOMATED_REASONING_POLICY_TEST_RESULTS, [], plugins + self._select_input( + _models.LIST_AUTOMATED_REASONING_POLICY_TEST_RESULTS, args, kwargs + ), + _models.LIST_AUTOMATED_REASONING_POLICY_TEST_RESULTS, + [], + plugins, ) + @_overload + async def list_custom_model_deployments( + self, + request: _models.ListCustomModelDeploymentsInput + | _models.ListCustomModelDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCustomModelDeploymentsOutput: ... + + @_overload async def list_custom_model_deployments( self, - input: ListCustomModelDeploymentsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomModelDeploymentsInputDict], ) -> ListCustomModelDeploymentsOutput: """ Lists custom model deployments in your account. You can filter the @@ -2096,8 +3408,6 @@ async def list_custom_model_deployments( - [DeleteCustomModelDeployment](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html) Args: - input: - An instance of `ListCustomModelDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2107,12 +3417,33 @@ async def list_custom_model_deployments( Returns: An instance of `ListCustomModelDeploymentsOutput`. """ + + async def list_custom_model_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomModelDeploymentsOutput: return await self._invoke( - input, _models.LIST_CUSTOM_MODEL_DEPLOYMENTS, [], plugins + self._select_input(_models.LIST_CUSTOM_MODEL_DEPLOYMENTS, args, kwargs), + _models.LIST_CUSTOM_MODEL_DEPLOYMENTS, + [], + plugins, ) + @_overload async def list_custom_models( - self, input: ListCustomModelsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListCustomModelsInput | _models.ListCustomModelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCustomModelsOutput: ... + + @_overload + async def list_custom_models( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomModelsInputDict], ) -> ListCustomModelsOutput: """ Returns a list of the custom models that you have created with the @@ -2124,8 +3455,6 @@ async def list_custom_models( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListCustomModelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2135,19 +3464,39 @@ async def list_custom_models( Returns: An instance of `ListCustomModelsOutput`. """ - return await self._invoke(input, _models.LIST_CUSTOM_MODELS, [], plugins) + async def list_custom_models( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomModelsOutput: + return await self._invoke( + self._select_input(_models.LIST_CUSTOM_MODELS, args, kwargs), + _models.LIST_CUSTOM_MODELS, + [], + plugins, + ) + + @_overload async def list_enforced_guardrails_configuration( self, - input: ListEnforcedGuardrailsConfigurationInput, + request: _models.ListEnforcedGuardrailsConfigurationInput + | _models.ListEnforcedGuardrailsConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListEnforcedGuardrailsConfigurationOutput: ... + + @_overload + async def list_enforced_guardrails_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEnforcedGuardrailsConfigurationInputDict], ) -> ListEnforcedGuardrailsConfigurationOutput: """ Lists the account-level enforced guardrail configurations. Args: - input: - An instance of `ListEnforcedGuardrailsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2157,19 +3506,40 @@ async def list_enforced_guardrails_configuration( Returns: An instance of `ListEnforcedGuardrailsConfigurationOutput`. """ + + async def list_enforced_guardrails_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEnforcedGuardrailsConfigurationOutput: return await self._invoke( - input, _models.LIST_ENFORCED_GUARDRAILS_CONFIGURATION, [], plugins + self._select_input( + _models.LIST_ENFORCED_GUARDRAILS_CONFIGURATION, args, kwargs + ), + _models.LIST_ENFORCED_GUARDRAILS_CONFIGURATION, + [], + plugins, ) + @_overload + async def list_evaluation_jobs( + self, + request: _models.ListEvaluationJobsInput | _models.ListEvaluationJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEvaluationJobsOutput: ... + + @_overload async def list_evaluation_jobs( - self, input: ListEvaluationJobsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEvaluationJobsInputDict], ) -> ListEvaluationJobsOutput: """ Lists all existing evaluation jobs. Args: - input: - An instance of `ListEvaluationJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2179,19 +3549,39 @@ async def list_evaluation_jobs( Returns: An instance of `ListEvaluationJobsOutput`. """ - return await self._invoke(input, _models.LIST_EVALUATION_JOBS, [], plugins) + async def list_evaluation_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEvaluationJobsOutput: + return await self._invoke( + self._select_input(_models.LIST_EVALUATION_JOBS, args, kwargs), + _models.LIST_EVALUATION_JOBS, + [], + plugins, + ) + + @_overload async def list_foundation_model_agreement_offers( self, - input: ListFoundationModelAgreementOffersInput, + request: _models.ListFoundationModelAgreementOffersInput + | _models.ListFoundationModelAgreementOffersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListFoundationModelAgreementOffersOutput: ... + + @_overload + async def list_foundation_model_agreement_offers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFoundationModelAgreementOffersInputDict], ) -> ListFoundationModelAgreementOffersOutput: """ Get the offers associated with the specified model. Args: - input: - An instance of `ListFoundationModelAgreementOffersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2201,12 +3591,36 @@ async def list_foundation_model_agreement_offers( Returns: An instance of `ListFoundationModelAgreementOffersOutput`. """ + + async def list_foundation_model_agreement_offers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFoundationModelAgreementOffersOutput: return await self._invoke( - input, _models.LIST_FOUNDATION_MODEL_AGREEMENT_OFFERS, [], plugins + self._select_input( + _models.LIST_FOUNDATION_MODEL_AGREEMENT_OFFERS, args, kwargs + ), + _models.LIST_FOUNDATION_MODEL_AGREEMENT_OFFERS, + [], + plugins, ) + @_overload async def list_foundation_models( - self, input: ListFoundationModelsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListFoundationModelsInput + | _models.ListFoundationModelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFoundationModelsOutput: ... + + @_overload + async def list_foundation_models( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFoundationModelsInputDict], ) -> ListFoundationModelsOutput: """ Lists Amazon Bedrock foundation models that you can use. You can filter @@ -2217,8 +3631,6 @@ async def list_foundation_models( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListFoundationModelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2228,10 +3640,33 @@ async def list_foundation_models( Returns: An instance of `ListFoundationModelsOutput`. """ - return await self._invoke(input, _models.LIST_FOUNDATION_MODELS, [], plugins) + async def list_foundation_models( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFoundationModelsOutput: + return await self._invoke( + self._select_input(_models.LIST_FOUNDATION_MODELS, args, kwargs), + _models.LIST_FOUNDATION_MODELS, + [], + plugins, + ) + + @_overload async def list_guardrails( - self, input: ListGuardrailsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGuardrailsInput | _models.ListGuardrailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGuardrailsOutput: ... + + @_overload + async def list_guardrails( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGuardrailsInputDict], ) -> ListGuardrailsOutput: """ Lists details about all the guardrails in an account. To list the @@ -2245,8 +3680,6 @@ async def list_guardrails( `ListGuardrails` request to see the next batch of results. Args: - input: - An instance of `ListGuardrailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2256,10 +3689,33 @@ async def list_guardrails( Returns: An instance of `ListGuardrailsOutput`. """ - return await self._invoke(input, _models.LIST_GUARDRAILS, [], plugins) + async def list_guardrails( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGuardrailsOutput: + return await self._invoke( + self._select_input(_models.LIST_GUARDRAILS, args, kwargs), + _models.LIST_GUARDRAILS, + [], + plugins, + ) + + @_overload + async def list_imported_models( + self, + request: _models.ListImportedModelsInput | _models.ListImportedModelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportedModelsOutput: ... + + @_overload async def list_imported_models( - self, input: ListImportedModelsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportedModelsInputDict], ) -> ListImportedModelsOutput: """ Returns a list of models you've imported. You can filter the results to @@ -2270,8 +3726,6 @@ async def list_imported_models( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListImportedModelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2281,10 +3735,34 @@ async def list_imported_models( Returns: An instance of `ListImportedModelsOutput`. """ - return await self._invoke(input, _models.LIST_IMPORTED_MODELS, [], plugins) + async def list_imported_models( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportedModelsOutput: + return await self._invoke( + self._select_input(_models.LIST_IMPORTED_MODELS, args, kwargs), + _models.LIST_IMPORTED_MODELS, + [], + plugins, + ) + + @_overload + async def list_inference_profiles( + self, + request: _models.ListInferenceProfilesInput + | _models.ListInferenceProfilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInferenceProfilesOutput: ... + + @_overload async def list_inference_profiles( - self, input: ListInferenceProfilesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInferenceProfilesInputDict], ) -> ListInferenceProfilesOutput: """ Returns a list of inference profiles that you can use. For more @@ -2294,8 +3772,6 @@ async def list_inference_profiles( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListInferenceProfilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2305,20 +3781,40 @@ async def list_inference_profiles( Returns: An instance of `ListInferenceProfilesOutput`. """ - return await self._invoke(input, _models.LIST_INFERENCE_PROFILES, [], plugins) + async def list_inference_profiles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInferenceProfilesOutput: + return await self._invoke( + self._select_input(_models.LIST_INFERENCE_PROFILES, args, kwargs), + _models.LIST_INFERENCE_PROFILES, + [], + plugins, + ) + + @_overload + async def list_marketplace_model_endpoints( + self, + request: _models.ListMarketplaceModelEndpointsInput + | _models.ListMarketplaceModelEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMarketplaceModelEndpointsOutput: ... + + @_overload async def list_marketplace_model_endpoints( self, - input: ListMarketplaceModelEndpointsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMarketplaceModelEndpointsInputDict], ) -> ListMarketplaceModelEndpointsOutput: """ Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account. Args: - input: - An instance of `ListMarketplaceModelEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2328,12 +3824,33 @@ async def list_marketplace_model_endpoints( Returns: An instance of `ListMarketplaceModelEndpointsOutput`. """ + + async def list_marketplace_model_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMarketplaceModelEndpointsOutput: return await self._invoke( - input, _models.LIST_MARKETPLACE_MODEL_ENDPOINTS, [], plugins + self._select_input(_models.LIST_MARKETPLACE_MODEL_ENDPOINTS, args, kwargs), + _models.LIST_MARKETPLACE_MODEL_ENDPOINTS, + [], + plugins, ) + @_overload async def list_model_copy_jobs( - self, input: ListModelCopyJobsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListModelCopyJobsInput | _models.ListModelCopyJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListModelCopyJobsOutput: ... + + @_overload + async def list_model_copy_jobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListModelCopyJobsInputDict], ) -> ListModelCopyJobsOutput: """ Returns a list of model copy jobs that you have submitted. You can @@ -2344,8 +3861,6 @@ async def list_model_copy_jobs( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListModelCopyJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2355,12 +3870,34 @@ async def list_model_copy_jobs( Returns: An instance of `ListModelCopyJobsOutput`. """ - return await self._invoke(input, _models.LIST_MODEL_COPY_JOBS, [], plugins) + async def list_model_copy_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListModelCopyJobsOutput: + return await self._invoke( + self._select_input(_models.LIST_MODEL_COPY_JOBS, args, kwargs), + _models.LIST_MODEL_COPY_JOBS, + [], + plugins, + ) + + @_overload + async def list_model_customization_jobs( + self, + request: _models.ListModelCustomizationJobsInput + | _models.ListModelCustomizationJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListModelCustomizationJobsOutput: ... + + @_overload async def list_model_customization_jobs( self, - input: ListModelCustomizationJobsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListModelCustomizationJobsInputDict], ) -> ListModelCustomizationJobsOutput: """ Returns a list of model customization jobs that you have submitted. You @@ -2372,8 +3909,6 @@ async def list_model_customization_jobs( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListModelCustomizationJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2383,12 +3918,34 @@ async def list_model_customization_jobs( Returns: An instance of `ListModelCustomizationJobsOutput`. """ + + async def list_model_customization_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListModelCustomizationJobsOutput: return await self._invoke( - input, _models.LIST_MODEL_CUSTOMIZATION_JOBS, [], plugins + self._select_input(_models.LIST_MODEL_CUSTOMIZATION_JOBS, args, kwargs), + _models.LIST_MODEL_CUSTOMIZATION_JOBS, + [], + plugins, ) + @_overload + async def list_model_import_jobs( + self, + request: _models.ListModelImportJobsInput + | _models.ListModelImportJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListModelImportJobsOutput: ... + + @_overload async def list_model_import_jobs( - self, input: ListModelImportJobsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListModelImportJobsInputDict], ) -> ListModelImportJobsOutput: """ Returns a list of import jobs you've submitted. You can filter the @@ -2399,8 +3956,6 @@ async def list_model_import_jobs( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListModelImportJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2410,10 +3965,34 @@ async def list_model_import_jobs( Returns: An instance of `ListModelImportJobsOutput`. """ - return await self._invoke(input, _models.LIST_MODEL_IMPORT_JOBS, [], plugins) + async def list_model_import_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListModelImportJobsOutput: + return await self._invoke( + self._select_input(_models.LIST_MODEL_IMPORT_JOBS, args, kwargs), + _models.LIST_MODEL_IMPORT_JOBS, + [], + plugins, + ) + + @_overload + async def list_model_invocation_jobs( + self, + request: _models.ListModelInvocationJobsInput + | _models.ListModelInvocationJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListModelInvocationJobsOutput: ... + + @_overload async def list_model_invocation_jobs( - self, input: ListModelInvocationJobsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListModelInvocationJobsInputDict], ) -> ListModelInvocationJobsOutput: """ Lists all batch inference jobs in the account. For more information, see @@ -2421,8 +4000,6 @@ async def list_model_invocation_jobs( job](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-view.html). Args: - input: - An instance of `ListModelInvocationJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2432,19 +4009,38 @@ async def list_model_invocation_jobs( Returns: An instance of `ListModelInvocationJobsOutput`. """ + + async def list_model_invocation_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListModelInvocationJobsOutput: return await self._invoke( - input, _models.LIST_MODEL_INVOCATION_JOBS, [], plugins + self._select_input(_models.LIST_MODEL_INVOCATION_JOBS, args, kwargs), + _models.LIST_MODEL_INVOCATION_JOBS, + [], + plugins, ) + @_overload + async def list_prompt_routers( + self, + request: _models.ListPromptRoutersInput | _models.ListPromptRoutersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPromptRoutersOutput: ... + + @_overload async def list_prompt_routers( - self, input: ListPromptRoutersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPromptRoutersInputDict], ) -> ListPromptRoutersOutput: """ Retrieves a list of prompt routers. Args: - input: - An instance of `ListPromptRoutersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2454,12 +4050,34 @@ async def list_prompt_routers( Returns: An instance of `ListPromptRoutersOutput`. """ - return await self._invoke(input, _models.LIST_PROMPT_ROUTERS, [], plugins) + async def list_prompt_routers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPromptRoutersOutput: + return await self._invoke( + self._select_input(_models.LIST_PROMPT_ROUTERS, args, kwargs), + _models.LIST_PROMPT_ROUTERS, + [], + plugins, + ) + + @_overload + async def list_provisioned_model_throughputs( + self, + request: _models.ListProvisionedModelThroughputsInput + | _models.ListProvisionedModelThroughputsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListProvisionedModelThroughputsOutput: ... + + @_overload async def list_provisioned_model_throughputs( self, - input: ListProvisionedModelThroughputsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListProvisionedModelThroughputsInputDict], ) -> ListProvisionedModelThroughputsOutput: """ Lists the Provisioned Throughputs in the account. For more information, @@ -2469,8 +4087,6 @@ async def list_provisioned_model_throughputs( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListProvisionedModelThroughputsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2480,12 +4096,36 @@ async def list_provisioned_model_throughputs( Returns: An instance of `ListProvisionedModelThroughputsOutput`. """ + + async def list_provisioned_model_throughputs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListProvisionedModelThroughputsOutput: return await self._invoke( - input, _models.LIST_PROVISIONED_MODEL_THROUGHPUTS, [], plugins + self._select_input( + _models.LIST_PROVISIONED_MODEL_THROUGHPUTS, args, kwargs + ), + _models.LIST_PROVISIONED_MODEL_THROUGHPUTS, + [], + plugins, ) + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + async def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List the tags associated with the specified resource. @@ -2496,8 +4136,6 @@ async def list_tags_for_resource( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2507,17 +4145,39 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def put_account_data_retention( + self, + request: _models.PutAccountDataRetentionInput + | _models.PutAccountDataRetentionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountDataRetentionOutput: ... + + @_overload async def put_account_data_retention( - self, input: PutAccountDataRetentionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountDataRetentionInputDict], ) -> PutAccountDataRetentionOutput: """ Sets the account-wide data retention mode for Amazon Bedrock. Args: - input: - An instance of `PutAccountDataRetentionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2527,21 +4187,39 @@ async def put_account_data_retention( Returns: An instance of `PutAccountDataRetentionOutput`. """ + + async def put_account_data_retention( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountDataRetentionOutput: return await self._invoke( - input, _models.PUT_ACCOUNT_DATA_RETENTION, [], plugins + self._select_input(_models.PUT_ACCOUNT_DATA_RETENTION, args, kwargs), + _models.PUT_ACCOUNT_DATA_RETENTION, + [], + plugins, ) + @_overload async def put_enforced_guardrail_configuration( self, - input: PutEnforcedGuardrailConfigurationInput, + request: _models.PutEnforcedGuardrailConfigurationInput + | _models.PutEnforcedGuardrailConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> PutEnforcedGuardrailConfigurationOutput: ... + + @_overload + async def put_enforced_guardrail_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutEnforcedGuardrailConfigurationInputDict], ) -> PutEnforcedGuardrailConfigurationOutput: """ Sets the account-level enforced guardrail configuration. Args: - input: - An instance of `PutEnforcedGuardrailConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2551,21 +4229,41 @@ async def put_enforced_guardrail_configuration( Returns: An instance of `PutEnforcedGuardrailConfigurationOutput`. """ + + async def put_enforced_guardrail_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutEnforcedGuardrailConfigurationOutput: return await self._invoke( - input, _models.PUT_ENFORCED_GUARDRAIL_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_ENFORCED_GUARDRAIL_CONFIGURATION, args, kwargs + ), + _models.PUT_ENFORCED_GUARDRAIL_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_model_invocation_logging_configuration( + self, + request: _models.PutModelInvocationLoggingConfigurationInput + | _models.PutModelInvocationLoggingConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutModelInvocationLoggingConfigurationOutput: ... + + @_overload async def put_model_invocation_logging_configuration( self, - input: PutModelInvocationLoggingConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutModelInvocationLoggingConfigurationInputDict], ) -> PutModelInvocationLoggingConfigurationOutput: """ Set the configuration values for model invocation logging. Args: - input: - An instance of `PutModelInvocationLoggingConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2575,19 +4273,40 @@ async def put_model_invocation_logging_configuration( Returns: An instance of `PutModelInvocationLoggingConfigurationOutput`. """ + + async def put_model_invocation_logging_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutModelInvocationLoggingConfigurationOutput: return await self._invoke( - input, _models.PUT_MODEL_INVOCATION_LOGGING_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_MODEL_INVOCATION_LOGGING_CONFIGURATION, args, kwargs + ), + _models.PUT_MODEL_INVOCATION_LOGGING_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Adds a resource policy for a Bedrock resource. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2597,17 +4316,39 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def put_use_case_for_model_access( + self, + request: _models.PutUseCaseForModelAccessInput + | _models.PutUseCaseForModelAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutUseCaseForModelAccessOutput: ... + + @_overload async def put_use_case_for_model_access( - self, input: PutUseCaseForModelAccessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutUseCaseForModelAccessInputDict], ) -> PutUseCaseForModelAccessOutput: """ Put usecase for model access. Args: - input: - An instance of `PutUseCaseForModelAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2617,22 +4358,40 @@ async def put_use_case_for_model_access( Returns: An instance of `PutUseCaseForModelAccessOutput`. """ + + async def put_use_case_for_model_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutUseCaseForModelAccessOutput: return await self._invoke( - input, _models.PUT_USE_CASE_FOR_MODEL_ACCESS, [], plugins + self._select_input(_models.PUT_USE_CASE_FOR_MODEL_ACCESS, args, kwargs), + _models.PUT_USE_CASE_FOR_MODEL_ACCESS, + [], + plugins, ) + @_overload + async def register_marketplace_model_endpoint( + self, + request: _models.RegisterMarketplaceModelEndpointInput + | _models.RegisterMarketplaceModelEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterMarketplaceModelEndpointOutput: ... + + @_overload async def register_marketplace_model_endpoint( self, - input: RegisterMarketplaceModelEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterMarketplaceModelEndpointInputDict], ) -> RegisterMarketplaceModelEndpointOutput: """ Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs. Args: - input: - An instance of `RegisterMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2642,14 +4401,36 @@ async def register_marketplace_model_endpoint( Returns: An instance of `RegisterMarketplaceModelEndpointOutput`. """ + + async def register_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterMarketplaceModelEndpointOutput: return await self._invoke( - input, _models.REGISTER_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input( + _models.REGISTER_MARKETPLACE_MODEL_ENDPOINT, args, kwargs + ), + _models.REGISTER_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + async def start_automated_reasoning_policy_build_workflow( + self, + request: _models.StartAutomatedReasoningPolicyBuildWorkflowInput + | _models.StartAutomatedReasoningPolicyBuildWorkflowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartAutomatedReasoningPolicyBuildWorkflowOutput: ... + + @_overload async def start_automated_reasoning_policy_build_workflow( self, - input: StartAutomatedReasoningPolicyBuildWorkflowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartAutomatedReasoningPolicyBuildWorkflowInputDict], ) -> StartAutomatedReasoningPolicyBuildWorkflowOutput: """ Starts a new build workflow for an Automated Reasoning policy. This @@ -2657,8 +4438,6 @@ async def start_automated_reasoning_policy_build_workflow( policy rules, variables, and types. Args: - input: - An instance of `StartAutomatedReasoningPolicyBuildWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2668,14 +4447,36 @@ async def start_automated_reasoning_policy_build_workflow( Returns: An instance of `StartAutomatedReasoningPolicyBuildWorkflowOutput`. """ + + async def start_automated_reasoning_policy_build_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartAutomatedReasoningPolicyBuildWorkflowOutput: return await self._invoke( - input, _models.START_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, [], plugins + self._select_input( + _models.START_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, args, kwargs + ), + _models.START_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, + [], + plugins, ) + @_overload + async def start_automated_reasoning_policy_test_workflow( + self, + request: _models.StartAutomatedReasoningPolicyTestWorkflowInput + | _models.StartAutomatedReasoningPolicyTestWorkflowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartAutomatedReasoningPolicyTestWorkflowOutput: ... + + @_overload async def start_automated_reasoning_policy_test_workflow( self, - input: StartAutomatedReasoningPolicyTestWorkflowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartAutomatedReasoningPolicyTestWorkflowInputDict], ) -> StartAutomatedReasoningPolicyTestWorkflowOutput: """ Initiates a test workflow to validate Automated Reasoning policy tests. @@ -2683,8 +4484,6 @@ async def start_automated_reasoning_policy_test_workflow( generates validation results. Args: - input: - An instance of `StartAutomatedReasoningPolicyTestWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2694,21 +4493,41 @@ async def start_automated_reasoning_policy_test_workflow( Returns: An instance of `StartAutomatedReasoningPolicyTestWorkflowOutput`. """ + + async def start_automated_reasoning_policy_test_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartAutomatedReasoningPolicyTestWorkflowOutput: return await self._invoke( - input, _models.START_AUTOMATED_REASONING_POLICY_TEST_WORKFLOW, [], plugins + self._select_input( + _models.START_AUTOMATED_REASONING_POLICY_TEST_WORKFLOW, args, kwargs + ), + _models.START_AUTOMATED_REASONING_POLICY_TEST_WORKFLOW, + [], + plugins, ) + @_overload + async def stop_advanced_prompt_optimization_job( + self, + request: _models.StopAdvancedPromptOptimizationJobInput + | _models.StopAdvancedPromptOptimizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopAdvancedPromptOptimizationJobOutput: ... + + @_overload async def stop_advanced_prompt_optimization_job( self, - input: StopAdvancedPromptOptimizationJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopAdvancedPromptOptimizationJobInputDict], ) -> StopAdvancedPromptOptimizationJobOutput: """ Stops an advanced prompt optimization job that is in progress. Args: - input: - An instance of `StopAdvancedPromptOptimizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2718,19 +4537,40 @@ async def stop_advanced_prompt_optimization_job( Returns: An instance of `StopAdvancedPromptOptimizationJobOutput`. """ + + async def stop_advanced_prompt_optimization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopAdvancedPromptOptimizationJobOutput: return await self._invoke( - input, _models.STOP_ADVANCED_PROMPT_OPTIMIZATION_JOB, [], plugins + self._select_input( + _models.STOP_ADVANCED_PROMPT_OPTIMIZATION_JOB, args, kwargs + ), + _models.STOP_ADVANCED_PROMPT_OPTIMIZATION_JOB, + [], + plugins, ) + @_overload + async def stop_evaluation_job( + self, + request: _models.StopEvaluationJobInput | _models.StopEvaluationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopEvaluationJobOutput: ... + + @_overload async def stop_evaluation_job( - self, input: StopEvaluationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopEvaluationJobInputDict], ) -> StopEvaluationJobOutput: """ Stops an evaluation job that is current being created or running. Args: - input: - An instance of `StopEvaluationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2740,10 +4580,34 @@ async def stop_evaluation_job( Returns: An instance of `StopEvaluationJobOutput`. """ - return await self._invoke(input, _models.STOP_EVALUATION_JOB, [], plugins) + async def stop_evaluation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopEvaluationJobOutput: + return await self._invoke( + self._select_input(_models.STOP_EVALUATION_JOB, args, kwargs), + _models.STOP_EVALUATION_JOB, + [], + plugins, + ) + + @_overload + async def stop_model_customization_job( + self, + request: _models.StopModelCustomizationJobInput + | _models.StopModelCustomizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopModelCustomizationJobOutput: ... + + @_overload async def stop_model_customization_job( - self, input: StopModelCustomizationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopModelCustomizationJobInputDict], ) -> StopModelCustomizationJobOutput: """ Stops an active model customization job. For more information, see @@ -2753,8 +4617,6 @@ async def stop_model_customization_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `StopModelCustomizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2764,12 +4626,34 @@ async def stop_model_customization_job( Returns: An instance of `StopModelCustomizationJobOutput`. """ + + async def stop_model_customization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopModelCustomizationJobOutput: return await self._invoke( - input, _models.STOP_MODEL_CUSTOMIZATION_JOB, [], plugins + self._select_input(_models.STOP_MODEL_CUSTOMIZATION_JOB, args, kwargs), + _models.STOP_MODEL_CUSTOMIZATION_JOB, + [], + plugins, ) + @_overload + async def stop_model_invocation_job( + self, + request: _models.StopModelInvocationJobInput + | _models.StopModelInvocationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopModelInvocationJobOutput: ... + + @_overload async def stop_model_invocation_job( - self, input: StopModelInvocationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopModelInvocationJobInputDict], ) -> StopModelInvocationJobOutput: """ Stops a batch inference job. You're only charged for tokens that were @@ -2777,8 +4661,6 @@ async def stop_model_invocation_job( job](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-stop.html). Args: - input: - An instance of `StopModelInvocationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2788,10 +4670,33 @@ async def stop_model_invocation_job( Returns: An instance of `StopModelInvocationJobOutput`. """ - return await self._invoke(input, _models.STOP_MODEL_INVOCATION_JOB, [], plugins) + async def stop_model_invocation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopModelInvocationJobOutput: + return await self._invoke( + self._select_input(_models.STOP_MODEL_INVOCATION_JOB, args, kwargs), + _models.STOP_MODEL_INVOCATION_JOB, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associate tags with a resource. For more information, see [Tagging @@ -2800,8 +4705,6 @@ async def tag_resource( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2811,10 +4714,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove one or more tags from a resource. For more information, see @@ -2824,8 +4750,6 @@ async def untag_resource( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2835,12 +4759,34 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_automated_reasoning_policy( + self, + request: _models.UpdateAutomatedReasoningPolicyInput + | _models.UpdateAutomatedReasoningPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAutomatedReasoningPolicyOutput: ... + + @_overload async def update_automated_reasoning_policy( self, - input: UpdateAutomatedReasoningPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAutomatedReasoningPolicyInputDict], ) -> UpdateAutomatedReasoningPolicyOutput: """ Updates an existing Automated Reasoning policy with new rules, @@ -2848,8 +4794,6 @@ async def update_automated_reasoning_policy( while preserving the previous version. Args: - input: - An instance of `UpdateAutomatedReasoningPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2859,14 +4803,34 @@ async def update_automated_reasoning_policy( Returns: An instance of `UpdateAutomatedReasoningPolicyOutput`. """ + + async def update_automated_reasoning_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAutomatedReasoningPolicyOutput: return await self._invoke( - input, _models.UPDATE_AUTOMATED_REASONING_POLICY, [], plugins + self._select_input(_models.UPDATE_AUTOMATED_REASONING_POLICY, args, kwargs), + _models.UPDATE_AUTOMATED_REASONING_POLICY, + [], + plugins, ) + @_overload + async def update_automated_reasoning_policy_annotations( + self, + request: _models.UpdateAutomatedReasoningPolicyAnnotationsInput + | _models.UpdateAutomatedReasoningPolicyAnnotationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAutomatedReasoningPolicyAnnotationsOutput: ... + + @_overload async def update_automated_reasoning_policy_annotations( self, - input: UpdateAutomatedReasoningPolicyAnnotationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAutomatedReasoningPolicyAnnotationsInputDict], ) -> UpdateAutomatedReasoningPolicyAnnotationsOutput: """ Updates the annotations for an Automated Reasoning policy build @@ -2874,8 +4838,6 @@ async def update_automated_reasoning_policy_annotations( types before finalizing the policy. Args: - input: - An instance of `UpdateAutomatedReasoningPolicyAnnotationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2885,22 +4847,42 @@ async def update_automated_reasoning_policy_annotations( Returns: An instance of `UpdateAutomatedReasoningPolicyAnnotationsOutput`. """ + + async def update_automated_reasoning_policy_annotations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAutomatedReasoningPolicyAnnotationsOutput: return await self._invoke( - input, _models.UPDATE_AUTOMATED_REASONING_POLICY_ANNOTATIONS, [], plugins + self._select_input( + _models.UPDATE_AUTOMATED_REASONING_POLICY_ANNOTATIONS, args, kwargs + ), + _models.UPDATE_AUTOMATED_REASONING_POLICY_ANNOTATIONS, + [], + plugins, ) + @_overload + async def update_automated_reasoning_policy_test_case( + self, + request: _models.UpdateAutomatedReasoningPolicyTestCaseInput + | _models.UpdateAutomatedReasoningPolicyTestCaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAutomatedReasoningPolicyTestCaseOutput: ... + + @_overload async def update_automated_reasoning_policy_test_case( self, - input: UpdateAutomatedReasoningPolicyTestCaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAutomatedReasoningPolicyTestCaseInputDict], ) -> UpdateAutomatedReasoningPolicyTestCaseOutput: """ Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold. Args: - input: - An instance of `UpdateAutomatedReasoningPolicyTestCaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2910,22 +4892,42 @@ async def update_automated_reasoning_policy_test_case( Returns: An instance of `UpdateAutomatedReasoningPolicyTestCaseOutput`. """ + + async def update_automated_reasoning_policy_test_case( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAutomatedReasoningPolicyTestCaseOutput: return await self._invoke( - input, _models.UPDATE_AUTOMATED_REASONING_POLICY_TEST_CASE, [], plugins + self._select_input( + _models.UPDATE_AUTOMATED_REASONING_POLICY_TEST_CASE, args, kwargs + ), + _models.UPDATE_AUTOMATED_REASONING_POLICY_TEST_CASE, + [], + plugins, ) + @_overload async def update_custom_model_deployment( self, - input: UpdateCustomModelDeploymentInput, + request: _models.UpdateCustomModelDeploymentInput + | _models.UpdateCustomModelDeploymentInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateCustomModelDeploymentOutput: ... + + @_overload + async def update_custom_model_deployment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCustomModelDeploymentInputDict], ) -> UpdateCustomModelDeploymentOutput: """ Updates a custom model deployment with a new custom model. This allows you to deploy updated models without creating new deployment endpoints. Args: - input: - An instance of `UpdateCustomModelDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2935,12 +4937,33 @@ async def update_custom_model_deployment( Returns: An instance of `UpdateCustomModelDeploymentOutput`. """ + + async def update_custom_model_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCustomModelDeploymentOutput: return await self._invoke( - input, _models.UPDATE_CUSTOM_MODEL_DEPLOYMENT, [], plugins + self._select_input(_models.UPDATE_CUSTOM_MODEL_DEPLOYMENT, args, kwargs), + _models.UPDATE_CUSTOM_MODEL_DEPLOYMENT, + [], + plugins, ) + @_overload + async def update_guardrail( + self, + request: _models.UpdateGuardrailInput | _models.UpdateGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGuardrailOutput: ... + + @_overload async def update_guardrail( - self, input: UpdateGuardrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGuardrailInputDict], ) -> UpdateGuardrailOutput: """ Updates a guardrail with the values you specify. @@ -2984,8 +5007,6 @@ async def update_guardrail( `kmsKeyId` field. Args: - input: - An instance of `UpdateGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2995,20 +5016,40 @@ async def update_guardrail( Returns: An instance of `UpdateGuardrailOutput`. """ - return await self._invoke(input, _models.UPDATE_GUARDRAIL, [], plugins) + async def update_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGuardrailOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GUARDRAIL, args, kwargs), + _models.UPDATE_GUARDRAIL, + [], + plugins, + ) + + @_overload + async def update_marketplace_model_endpoint( + self, + request: _models.UpdateMarketplaceModelEndpointInput + | _models.UpdateMarketplaceModelEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMarketplaceModelEndpointOutput: ... + + @_overload async def update_marketplace_model_endpoint( self, - input: UpdateMarketplaceModelEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMarketplaceModelEndpointInputDict], ) -> UpdateMarketplaceModelEndpointOutput: """ Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace. Args: - input: - An instance of `UpdateMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3018,14 +5059,34 @@ async def update_marketplace_model_endpoint( Returns: An instance of `UpdateMarketplaceModelEndpointOutput`. """ + + async def update_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMarketplaceModelEndpointOutput: return await self._invoke( - input, _models.UPDATE_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input(_models.UPDATE_MARKETPLACE_MODEL_ENDPOINT, args, kwargs), + _models.UPDATE_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + async def update_provisioned_model_throughput( + self, + request: _models.UpdateProvisionedModelThroughputInput + | _models.UpdateProvisionedModelThroughputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateProvisionedModelThroughputOutput: ... + + @_overload async def update_provisioned_model_throughput( self, - input: UpdateProvisionedModelThroughputInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateProvisionedModelThroughputInputDict], ) -> UpdateProvisionedModelThroughputOutput: """ Updates the name or associated model for a Provisioned Throughput. For @@ -3035,8 +5096,6 @@ async def update_provisioned_model_throughput( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `UpdateProvisionedModelThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3046,8 +5105,17 @@ async def update_provisioned_model_throughput( Returns: An instance of `UpdateProvisionedModelThroughputOutput`. """ + + async def update_provisioned_model_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateProvisionedModelThroughputOutput: return await self._invoke( - input, _models.UPDATE_PROVISIONED_MODEL_THROUGHPUT, [], plugins + self._select_input( + _models.UPDATE_PROVISIONED_MODEL_THROUGHPUT, args, kwargs + ), + _models.UPDATE_PROVISIONED_MODEL_THROUGHPUT, + [], + plugins, ) async def _new_config(self) -> AsyncBedrockConfig: diff --git a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/client.py b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/client.py index 4cd612d67..0afedd211 100644 --- a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/client.py +++ b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,221 +20,113 @@ if TYPE_CHECKING: from .models import ( - BatchDeleteAdvancedPromptOptimizationJobInput, BatchDeleteAdvancedPromptOptimizationJobOutput, - BatchDeleteEvaluationJobInput, BatchDeleteEvaluationJobOutput, - CancelAutomatedReasoningPolicyBuildWorkflowInput, CancelAutomatedReasoningPolicyBuildWorkflowOutput, - CreateAdvancedPromptOptimizationJobInput, CreateAdvancedPromptOptimizationJobOutput, - CreateAutomatedReasoningPolicyInput, CreateAutomatedReasoningPolicyOutput, - CreateAutomatedReasoningPolicyTestCaseInput, CreateAutomatedReasoningPolicyTestCaseOutput, - CreateAutomatedReasoningPolicyVersionInput, CreateAutomatedReasoningPolicyVersionOutput, - CreateCustomModelDeploymentInput, CreateCustomModelDeploymentOutput, - CreateCustomModelInput, CreateCustomModelOutput, - CreateEvaluationJobInput, CreateEvaluationJobOutput, - CreateFoundationModelAgreementInput, CreateFoundationModelAgreementOutput, - CreateGuardrailInput, CreateGuardrailOutput, - CreateGuardrailVersionInput, CreateGuardrailVersionOutput, - CreateInferenceProfileInput, CreateInferenceProfileOutput, - CreateMarketplaceModelEndpointInput, CreateMarketplaceModelEndpointOutput, - CreateModelCopyJobInput, CreateModelCopyJobOutput, - CreateModelCustomizationJobInput, CreateModelCustomizationJobOutput, - CreateModelImportJobInput, CreateModelImportJobOutput, - CreateModelInvocationJobInput, CreateModelInvocationJobOutput, - CreatePromptRouterInput, CreatePromptRouterOutput, - CreateProvisionedModelThroughputInput, CreateProvisionedModelThroughputOutput, - DeleteAutomatedReasoningPolicyBuildWorkflowInput, DeleteAutomatedReasoningPolicyBuildWorkflowOutput, - DeleteAutomatedReasoningPolicyInput, DeleteAutomatedReasoningPolicyOutput, - DeleteAutomatedReasoningPolicyTestCaseInput, DeleteAutomatedReasoningPolicyTestCaseOutput, - DeleteCustomModelDeploymentInput, DeleteCustomModelDeploymentOutput, - DeleteCustomModelInput, DeleteCustomModelOutput, - DeleteEnforcedGuardrailConfigurationInput, DeleteEnforcedGuardrailConfigurationOutput, - DeleteFoundationModelAgreementInput, DeleteFoundationModelAgreementOutput, - DeleteGuardrailInput, DeleteGuardrailOutput, - DeleteImportedModelInput, DeleteImportedModelOutput, - DeleteInferenceProfileInput, DeleteInferenceProfileOutput, - DeleteMarketplaceModelEndpointInput, DeleteMarketplaceModelEndpointOutput, - DeleteModelInvocationLoggingConfigurationInput, DeleteModelInvocationLoggingConfigurationOutput, - DeletePromptRouterInput, DeletePromptRouterOutput, - DeleteProvisionedModelThroughputInput, DeleteProvisionedModelThroughputOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeregisterMarketplaceModelEndpointInput, DeregisterMarketplaceModelEndpointOutput, - ExportAutomatedReasoningPolicyVersionInput, ExportAutomatedReasoningPolicyVersionOutput, - GetAccountDataRetentionInput, GetAccountDataRetentionOutput, - GetAdvancedPromptOptimizationJobInput, GetAdvancedPromptOptimizationJobOutput, - GetAutomatedReasoningPolicyAnnotationsInput, GetAutomatedReasoningPolicyAnnotationsOutput, - GetAutomatedReasoningPolicyBuildWorkflowInput, GetAutomatedReasoningPolicyBuildWorkflowOutput, - GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput, - GetAutomatedReasoningPolicyInput, - GetAutomatedReasoningPolicyNextScenarioInput, GetAutomatedReasoningPolicyNextScenarioOutput, GetAutomatedReasoningPolicyOutput, - GetAutomatedReasoningPolicyTestCaseInput, GetAutomatedReasoningPolicyTestCaseOutput, - GetAutomatedReasoningPolicyTestResultInput, GetAutomatedReasoningPolicyTestResultOutput, - GetCustomModelDeploymentInput, GetCustomModelDeploymentOutput, - GetCustomModelInput, GetCustomModelOutput, - GetEvaluationJobInput, GetEvaluationJobOutput, - GetFoundationModelAvailabilityInput, GetFoundationModelAvailabilityOutput, - GetFoundationModelInput, GetFoundationModelOutput, - GetGuardrailInput, GetGuardrailOutput, - GetImportedModelInput, GetImportedModelOutput, - GetInferenceProfileInput, GetInferenceProfileOutput, - GetMarketplaceModelEndpointInput, GetMarketplaceModelEndpointOutput, - GetModelCopyJobInput, GetModelCopyJobOutput, - GetModelCustomizationJobInput, GetModelCustomizationJobOutput, - GetModelImportJobInput, GetModelImportJobOutput, - GetModelInvocationJobInput, GetModelInvocationJobOutput, - GetModelInvocationLoggingConfigurationInput, GetModelInvocationLoggingConfigurationOutput, - GetPromptRouterInput, GetPromptRouterOutput, - GetProvisionedModelThroughputInput, GetProvisionedModelThroughputOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetUseCaseForModelAccessInput, GetUseCaseForModelAccessOutput, - ListAdvancedPromptOptimizationJobsInput, ListAdvancedPromptOptimizationJobsOutput, - ListAutomatedReasoningPoliciesInput, ListAutomatedReasoningPoliciesOutput, - ListAutomatedReasoningPolicyBuildWorkflowsInput, ListAutomatedReasoningPolicyBuildWorkflowsOutput, - ListAutomatedReasoningPolicyTestCasesInput, ListAutomatedReasoningPolicyTestCasesOutput, - ListAutomatedReasoningPolicyTestResultsInput, ListAutomatedReasoningPolicyTestResultsOutput, - ListCustomModelDeploymentsInput, ListCustomModelDeploymentsOutput, - ListCustomModelsInput, ListCustomModelsOutput, - ListEnforcedGuardrailsConfigurationInput, ListEnforcedGuardrailsConfigurationOutput, - ListEvaluationJobsInput, ListEvaluationJobsOutput, - ListFoundationModelAgreementOffersInput, ListFoundationModelAgreementOffersOutput, - ListFoundationModelsInput, ListFoundationModelsOutput, - ListGuardrailsInput, ListGuardrailsOutput, - ListImportedModelsInput, ListImportedModelsOutput, - ListInferenceProfilesInput, ListInferenceProfilesOutput, - ListMarketplaceModelEndpointsInput, ListMarketplaceModelEndpointsOutput, - ListModelCopyJobsInput, ListModelCopyJobsOutput, - ListModelCustomizationJobsInput, ListModelCustomizationJobsOutput, - ListModelImportJobsInput, ListModelImportJobsOutput, - ListModelInvocationJobsInput, ListModelInvocationJobsOutput, - ListPromptRoutersInput, ListPromptRoutersOutput, - ListProvisionedModelThroughputsInput, ListProvisionedModelThroughputsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - PutAccountDataRetentionInput, PutAccountDataRetentionOutput, - PutEnforcedGuardrailConfigurationInput, PutEnforcedGuardrailConfigurationOutput, - PutModelInvocationLoggingConfigurationInput, PutModelInvocationLoggingConfigurationOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - PutUseCaseForModelAccessInput, PutUseCaseForModelAccessOutput, - RegisterMarketplaceModelEndpointInput, RegisterMarketplaceModelEndpointOutput, - StartAutomatedReasoningPolicyBuildWorkflowInput, StartAutomatedReasoningPolicyBuildWorkflowOutput, - StartAutomatedReasoningPolicyTestWorkflowInput, StartAutomatedReasoningPolicyTestWorkflowOutput, - StopAdvancedPromptOptimizationJobInput, StopAdvancedPromptOptimizationJobOutput, - StopEvaluationJobInput, StopEvaluationJobOutput, - StopModelCustomizationJobInput, StopModelCustomizationJobOutput, - StopModelInvocationJobInput, StopModelInvocationJobOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAutomatedReasoningPolicyAnnotationsInput, UpdateAutomatedReasoningPolicyAnnotationsOutput, - UpdateAutomatedReasoningPolicyInput, UpdateAutomatedReasoningPolicyOutput, - UpdateAutomatedReasoningPolicyTestCaseInput, UpdateAutomatedReasoningPolicyTestCaseOutput, - UpdateCustomModelDeploymentInput, UpdateCustomModelDeploymentOutput, - UpdateGuardrailInput, UpdateGuardrailOutput, - UpdateMarketplaceModelEndpointInput, UpdateMarketplaceModelEndpointOutput, - UpdateProvisionedModelThroughputInput, UpdateProvisionedModelThroughputOutput, ) @@ -248,19 +140,30 @@ class BedrockClient(Client[BedrockConfig]): evaluating Amazon Bedrock models. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def batch_delete_advanced_prompt_optimization_job( self, - input: BatchDeleteAdvancedPromptOptimizationJobInput, + request: _models.BatchDeleteAdvancedPromptOptimizationJobInput + | _models.BatchDeleteAdvancedPromptOptimizationJobInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> BatchDeleteAdvancedPromptOptimizationJobOutput: ... + + @_overload + def batch_delete_advanced_prompt_optimization_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDeleteAdvancedPromptOptimizationJobInputDict], ) -> BatchDeleteAdvancedPromptOptimizationJobOutput: """ Deletes one or more advanced prompt optimization jobs. Args: - input: - An instance of `BatchDeleteAdvancedPromptOptimizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -270,12 +173,36 @@ def batch_delete_advanced_prompt_optimization_job( Returns: An instance of `BatchDeleteAdvancedPromptOptimizationJobOutput`. """ + + def batch_delete_advanced_prompt_optimization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDeleteAdvancedPromptOptimizationJobOutput: return self._invoke( - input, _models.BATCH_DELETE_ADVANCED_PROMPT_OPTIMIZATION_JOB, [], plugins + self._select_input( + _models.BATCH_DELETE_ADVANCED_PROMPT_OPTIMIZATION_JOB, args, kwargs + ), + _models.BATCH_DELETE_ADVANCED_PROMPT_OPTIMIZATION_JOB, + [], + plugins, ) + @_overload + def batch_delete_evaluation_job( + self, + request: _models.BatchDeleteEvaluationJobInput + | _models.BatchDeleteEvaluationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchDeleteEvaluationJobOutput: ... + + @_overload def batch_delete_evaluation_job( - self, input: BatchDeleteEvaluationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDeleteEvaluationJobInputDict], ) -> BatchDeleteEvaluationJobOutput: """ Deletes a batch of evaluation jobs. An evaluation job can only be @@ -284,8 +211,6 @@ def batch_delete_evaluation_job( request. Args: - input: - An instance of `BatchDeleteEvaluationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -295,12 +220,34 @@ def batch_delete_evaluation_job( Returns: An instance of `BatchDeleteEvaluationJobOutput`. """ - return self._invoke(input, _models.BATCH_DELETE_EVALUATION_JOB, [], plugins) + def batch_delete_evaluation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDeleteEvaluationJobOutput: + return self._invoke( + self._select_input(_models.BATCH_DELETE_EVALUATION_JOB, args, kwargs), + _models.BATCH_DELETE_EVALUATION_JOB, + [], + plugins, + ) + + @_overload + def cancel_automated_reasoning_policy_build_workflow( + self, + request: _models.CancelAutomatedReasoningPolicyBuildWorkflowInput + | _models.CancelAutomatedReasoningPolicyBuildWorkflowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelAutomatedReasoningPolicyBuildWorkflowOutput: ... + + @_overload def cancel_automated_reasoning_policy_build_workflow( self, - input: CancelAutomatedReasoningPolicyBuildWorkflowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelAutomatedReasoningPolicyBuildWorkflowInputDict], ) -> CancelAutomatedReasoningPolicyBuildWorkflowOutput: """ Cancels a running Automated Reasoning policy build workflow. This stops @@ -308,8 +255,6 @@ def cancel_automated_reasoning_policy_build_workflow( source documents. Args: - input: - An instance of `CancelAutomatedReasoningPolicyBuildWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -319,14 +264,36 @@ def cancel_automated_reasoning_policy_build_workflow( Returns: An instance of `CancelAutomatedReasoningPolicyBuildWorkflowOutput`. """ + + def cancel_automated_reasoning_policy_build_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelAutomatedReasoningPolicyBuildWorkflowOutput: return self._invoke( - input, _models.CANCEL_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, [], plugins + self._select_input( + _models.CANCEL_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, args, kwargs + ), + _models.CANCEL_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, + [], + plugins, ) + @_overload + def create_advanced_prompt_optimization_job( + self, + request: _models.CreateAdvancedPromptOptimizationJobInput + | _models.CreateAdvancedPromptOptimizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAdvancedPromptOptimizationJobOutput: ... + + @_overload def create_advanced_prompt_optimization_job( self, - input: CreateAdvancedPromptOptimizationJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAdvancedPromptOptimizationJobInputDict], ) -> CreateAdvancedPromptOptimizationJobOutput: """ Creates an advanced prompt optimization job. The job optimizes your @@ -334,8 +301,6 @@ def create_advanced_prompt_optimization_job( criteria. Args: - input: - An instance of `CreateAdvancedPromptOptimizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -345,14 +310,36 @@ def create_advanced_prompt_optimization_job( Returns: An instance of `CreateAdvancedPromptOptimizationJobOutput`. """ + + def create_advanced_prompt_optimization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAdvancedPromptOptimizationJobOutput: return self._invoke( - input, _models.CREATE_ADVANCED_PROMPT_OPTIMIZATION_JOB, [], plugins + self._select_input( + _models.CREATE_ADVANCED_PROMPT_OPTIMIZATION_JOB, args, kwargs + ), + _models.CREATE_ADVANCED_PROMPT_OPTIMIZATION_JOB, + [], + plugins, ) + @_overload def create_automated_reasoning_policy( self, - input: CreateAutomatedReasoningPolicyInput, + request: _models.CreateAutomatedReasoningPolicyInput + | _models.CreateAutomatedReasoningPolicyInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateAutomatedReasoningPolicyOutput: ... + + @_overload + def create_automated_reasoning_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAutomatedReasoningPolicyInputDict], ) -> CreateAutomatedReasoningPolicyOutput: """ Creates an Automated Reasoning policy for Amazon Bedrock Guardrails. @@ -366,8 +353,6 @@ def create_automated_reasoning_policy( policy and infers policy rules. Args: - input: - An instance of `CreateAutomatedReasoningPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -377,14 +362,34 @@ def create_automated_reasoning_policy( Returns: An instance of `CreateAutomatedReasoningPolicyOutput`. """ + + def create_automated_reasoning_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAutomatedReasoningPolicyOutput: return self._invoke( - input, _models.CREATE_AUTOMATED_REASONING_POLICY, [], plugins + self._select_input(_models.CREATE_AUTOMATED_REASONING_POLICY, args, kwargs), + _models.CREATE_AUTOMATED_REASONING_POLICY, + [], + plugins, ) + @_overload + def create_automated_reasoning_policy_test_case( + self, + request: _models.CreateAutomatedReasoningPolicyTestCaseInput + | _models.CreateAutomatedReasoningPolicyTestCaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAutomatedReasoningPolicyTestCaseOutput: ... + + @_overload def create_automated_reasoning_policy_test_case( self, - input: CreateAutomatedReasoningPolicyTestCaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAutomatedReasoningPolicyTestCaseInputDict], ) -> CreateAutomatedReasoningPolicyTestCaseOutput: """ Creates a test for an Automated Reasoning policy. Tests validate that @@ -393,8 +398,6 @@ def create_automated_reasoning_policy_test_case( production. Args: - input: - An instance of `CreateAutomatedReasoningPolicyTestCaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -404,14 +407,36 @@ def create_automated_reasoning_policy_test_case( Returns: An instance of `CreateAutomatedReasoningPolicyTestCaseOutput`. """ + + def create_automated_reasoning_policy_test_case( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAutomatedReasoningPolicyTestCaseOutput: return self._invoke( - input, _models.CREATE_AUTOMATED_REASONING_POLICY_TEST_CASE, [], plugins + self._select_input( + _models.CREATE_AUTOMATED_REASONING_POLICY_TEST_CASE, args, kwargs + ), + _models.CREATE_AUTOMATED_REASONING_POLICY_TEST_CASE, + [], + plugins, ) + @_overload + def create_automated_reasoning_policy_version( + self, + request: _models.CreateAutomatedReasoningPolicyVersionInput + | _models.CreateAutomatedReasoningPolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAutomatedReasoningPolicyVersionOutput: ... + + @_overload def create_automated_reasoning_policy_version( self, - input: CreateAutomatedReasoningPolicyVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAutomatedReasoningPolicyVersionInputDict], ) -> CreateAutomatedReasoningPolicyVersionOutput: """ Creates a new version of an existing Automated Reasoning policy. This @@ -419,8 +444,6 @@ def create_automated_reasoning_policy_version( versions for rollback or comparison purposes. Args: - input: - An instance of `CreateAutomatedReasoningPolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -430,12 +453,35 @@ def create_automated_reasoning_policy_version( Returns: An instance of `CreateAutomatedReasoningPolicyVersionOutput`. """ + + def create_automated_reasoning_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAutomatedReasoningPolicyVersionOutput: return self._invoke( - input, _models.CREATE_AUTOMATED_REASONING_POLICY_VERSION, [], plugins + self._select_input( + _models.CREATE_AUTOMATED_REASONING_POLICY_VERSION, args, kwargs + ), + _models.CREATE_AUTOMATED_REASONING_POLICY_VERSION, + [], + plugins, ) + @_overload + def create_custom_model( + self, + request: _models.CreateCustomModelInput | _models.CreateCustomModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomModelOutput: ... + + @_overload def create_custom_model( - self, input: CreateCustomModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomModelInputDict], ) -> CreateCustomModelOutput: """ Creates a new custom model in Amazon Bedrock. After the model is active, @@ -476,8 +522,6 @@ def create_custom_model( - [DeleteCustomModel](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html) Args: - input: - An instance of `CreateCustomModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -487,12 +531,34 @@ def create_custom_model( Returns: An instance of `CreateCustomModelOutput`. """ - return self._invoke(input, _models.CREATE_CUSTOM_MODEL, [], plugins) + def create_custom_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomModelOutput: + return self._invoke( + self._select_input(_models.CREATE_CUSTOM_MODEL, args, kwargs), + _models.CREATE_CUSTOM_MODEL, + [], + plugins, + ) + + @_overload def create_custom_model_deployment( self, - input: CreateCustomModelDeploymentInput, + request: _models.CreateCustomModelDeploymentInput + | _models.CreateCustomModelDeploymentInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateCustomModelDeploymentOutput: ... + + @_overload + def create_custom_model_deployment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomModelDeploymentInputDict], ) -> CreateCustomModelDeploymentOutput: """ Deploys a custom model for on-demand inference in Amazon Bedrock. After @@ -514,8 +580,6 @@ def create_custom_model_deployment( - [DeleteCustomModelDeployment](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html) Args: - input: - An instance of `CreateCustomModelDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -525,17 +589,39 @@ def create_custom_model_deployment( Returns: An instance of `CreateCustomModelDeploymentOutput`. """ - return self._invoke(input, _models.CREATE_CUSTOM_MODEL_DEPLOYMENT, [], plugins) + def create_custom_model_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomModelDeploymentOutput: + return self._invoke( + self._select_input(_models.CREATE_CUSTOM_MODEL_DEPLOYMENT, args, kwargs), + _models.CREATE_CUSTOM_MODEL_DEPLOYMENT, + [], + plugins, + ) + + @_overload + def create_evaluation_job( + self, + request: _models.CreateEvaluationJobInput + | _models.CreateEvaluationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEvaluationJobOutput: ... + + @_overload def create_evaluation_job( - self, input: CreateEvaluationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEvaluationJobInputDict], ) -> CreateEvaluationJobOutput: """ Creates an evaluation job. Args: - input: - An instance of `CreateEvaluationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -545,19 +631,39 @@ def create_evaluation_job( Returns: An instance of `CreateEvaluationJobOutput`. """ - return self._invoke(input, _models.CREATE_EVALUATION_JOB, [], plugins) + def create_evaluation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEvaluationJobOutput: + return self._invoke( + self._select_input(_models.CREATE_EVALUATION_JOB, args, kwargs), + _models.CREATE_EVALUATION_JOB, + [], + plugins, + ) + + @_overload def create_foundation_model_agreement( self, - input: CreateFoundationModelAgreementInput, + request: _models.CreateFoundationModelAgreementInput + | _models.CreateFoundationModelAgreementInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateFoundationModelAgreementOutput: ... + + @_overload + def create_foundation_model_agreement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFoundationModelAgreementInputDict], ) -> CreateFoundationModelAgreementOutput: """ Request a model access agreement for the specified model. Args: - input: - An instance of `CreateFoundationModelAgreementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -567,12 +673,33 @@ def create_foundation_model_agreement( Returns: An instance of `CreateFoundationModelAgreementOutput`. """ + + def create_foundation_model_agreement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFoundationModelAgreementOutput: return self._invoke( - input, _models.CREATE_FOUNDATION_MODEL_AGREEMENT, [], plugins + self._select_input(_models.CREATE_FOUNDATION_MODEL_AGREEMENT, args, kwargs), + _models.CREATE_FOUNDATION_MODEL_AGREEMENT, + [], + plugins, ) + @_overload + def create_guardrail( + self, + request: _models.CreateGuardrailInput | _models.CreateGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGuardrailOutput: ... + + @_overload def create_guardrail( - self, input: CreateGuardrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGuardrailInputDict], ) -> CreateGuardrailOutput: """ Creates a guardrail to block topics and to implement safeguards for your @@ -606,8 +733,6 @@ def create_guardrail( in the *Amazon Bedrock User Guide*. Args: - input: - An instance of `CreateGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -617,10 +742,34 @@ def create_guardrail( Returns: An instance of `CreateGuardrailOutput`. """ - return self._invoke(input, _models.CREATE_GUARDRAIL, [], plugins) + def create_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGuardrailOutput: + return self._invoke( + self._select_input(_models.CREATE_GUARDRAIL, args, kwargs), + _models.CREATE_GUARDRAIL, + [], + plugins, + ) + + @_overload + def create_guardrail_version( + self, + request: _models.CreateGuardrailVersionInput + | _models.CreateGuardrailVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGuardrailVersionOutput: ... + + @_overload def create_guardrail_version( - self, input: CreateGuardrailVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGuardrailVersionInputDict], ) -> CreateGuardrailVersionOutput: """ Creates a version of the guardrail. Use this API to create a snapshot of @@ -628,8 +777,6 @@ def create_guardrail_version( the configuration with another version. Args: - input: - An instance of `CreateGuardrailVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -639,10 +786,34 @@ def create_guardrail_version( Returns: An instance of `CreateGuardrailVersionOutput`. """ - return self._invoke(input, _models.CREATE_GUARDRAIL_VERSION, [], plugins) + def create_guardrail_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGuardrailVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_GUARDRAIL_VERSION, args, kwargs), + _models.CREATE_GUARDRAIL_VERSION, + [], + plugins, + ) + + @_overload + def create_inference_profile( + self, + request: _models.CreateInferenceProfileInput + | _models.CreateInferenceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInferenceProfileOutput: ... + + @_overload def create_inference_profile( - self, input: CreateInferenceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInferenceProfileInputDict], ) -> CreateInferenceProfileOutput: """ Creates an application inference profile to track metrics and costs when @@ -657,8 +828,6 @@ def create_inference_profile( in the Amazon Bedrock User Guide. Args: - input: - An instance of `CreateInferenceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -668,20 +837,40 @@ def create_inference_profile( Returns: An instance of `CreateInferenceProfileOutput`. """ - return self._invoke(input, _models.CREATE_INFERENCE_PROFILE, [], plugins) + def create_inference_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInferenceProfileOutput: + return self._invoke( + self._select_input(_models.CREATE_INFERENCE_PROFILE, args, kwargs), + _models.CREATE_INFERENCE_PROFILE, + [], + plugins, + ) + + @_overload def create_marketplace_model_endpoint( self, - input: CreateMarketplaceModelEndpointInput, + request: _models.CreateMarketplaceModelEndpointInput + | _models.CreateMarketplaceModelEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateMarketplaceModelEndpointOutput: ... + + @_overload + def create_marketplace_model_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMarketplaceModelEndpointInputDict], ) -> CreateMarketplaceModelEndpointOutput: """ Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker. Args: - input: - An instance of `CreateMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -691,12 +880,33 @@ def create_marketplace_model_endpoint( Returns: An instance of `CreateMarketplaceModelEndpointOutput`. """ + + def create_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMarketplaceModelEndpointOutput: return self._invoke( - input, _models.CREATE_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input(_models.CREATE_MARKETPLACE_MODEL_ENDPOINT, args, kwargs), + _models.CREATE_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + def create_model_copy_job( + self, + request: _models.CreateModelCopyJobInput | _models.CreateModelCopyJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelCopyJobOutput: ... + + @_overload def create_model_copy_job( - self, input: CreateModelCopyJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelCopyJobInputDict], ) -> CreateModelCopyJobOutput: """ Copies a model to another region so that it can be used there. For more @@ -706,8 +916,6 @@ def create_model_copy_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `CreateModelCopyJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -717,12 +925,34 @@ def create_model_copy_job( Returns: An instance of `CreateModelCopyJobOutput`. """ - return self._invoke(input, _models.CREATE_MODEL_COPY_JOB, [], plugins) + def create_model_copy_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelCopyJobOutput: + return self._invoke( + self._select_input(_models.CREATE_MODEL_COPY_JOB, args, kwargs), + _models.CREATE_MODEL_COPY_JOB, + [], + plugins, + ) + + @_overload + def create_model_customization_job( + self, + request: _models.CreateModelCustomizationJobInput + | _models.CreateModelCustomizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelCustomizationJobOutput: ... + + @_overload def create_model_customization_job( self, - input: CreateModelCustomizationJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelCustomizationJobInputDict], ) -> CreateModelCustomizationJobOutput: """ Creates a fine-tuning job to customize a base model. @@ -747,8 +977,6 @@ def create_model_customization_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `CreateModelCustomizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -758,10 +986,34 @@ def create_model_customization_job( Returns: An instance of `CreateModelCustomizationJobOutput`. """ - return self._invoke(input, _models.CREATE_MODEL_CUSTOMIZATION_JOB, [], plugins) + def create_model_customization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelCustomizationJobOutput: + return self._invoke( + self._select_input(_models.CREATE_MODEL_CUSTOMIZATION_JOB, args, kwargs), + _models.CREATE_MODEL_CUSTOMIZATION_JOB, + [], + plugins, + ) + + @_overload + def create_model_import_job( + self, + request: _models.CreateModelImportJobInput + | _models.CreateModelImportJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelImportJobOutput: ... + + @_overload def create_model_import_job( - self, input: CreateModelImportJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelImportJobInputDict], ) -> CreateModelImportJobOutput: """ Creates a model import job to import model that you have customized in @@ -770,8 +1022,6 @@ def create_model_import_job( model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html) Args: - input: - An instance of `CreateModelImportJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -781,10 +1031,34 @@ def create_model_import_job( Returns: An instance of `CreateModelImportJobOutput`. """ - return self._invoke(input, _models.CREATE_MODEL_IMPORT_JOB, [], plugins) + def create_model_import_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelImportJobOutput: + return self._invoke( + self._select_input(_models.CREATE_MODEL_IMPORT_JOB, args, kwargs), + _models.CREATE_MODEL_IMPORT_JOB, + [], + plugins, + ) + + @_overload + def create_model_invocation_job( + self, + request: _models.CreateModelInvocationJobInput + | _models.CreateModelInvocationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateModelInvocationJobOutput: ... + + @_overload def create_model_invocation_job( - self, input: CreateModelInvocationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateModelInvocationJobInputDict], ) -> CreateModelInvocationJobOutput: """ Creates a batch inference job to invoke a model on multiple prompts. @@ -798,8 +1072,6 @@ def create_model_invocation_job( about the job. Args: - input: - An instance of `CreateModelInvocationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -809,18 +1081,39 @@ def create_model_invocation_job( Returns: An instance of `CreateModelInvocationJobOutput`. """ - return self._invoke(input, _models.CREATE_MODEL_INVOCATION_JOB, [], plugins) + def create_model_invocation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateModelInvocationJobOutput: + return self._invoke( + self._select_input(_models.CREATE_MODEL_INVOCATION_JOB, args, kwargs), + _models.CREATE_MODEL_INVOCATION_JOB, + [], + plugins, + ) + + @_overload + def create_prompt_router( + self, + request: _models.CreatePromptRouterInput | _models.CreatePromptRouterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePromptRouterOutput: ... + + @_overload def create_prompt_router( - self, input: CreatePromptRouterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePromptRouterInputDict], ) -> CreatePromptRouterOutput: """ Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria. Args: - input: - An instance of `CreatePromptRouterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -830,12 +1123,34 @@ def create_prompt_router( Returns: An instance of `CreatePromptRouterOutput`. """ - return self._invoke(input, _models.CREATE_PROMPT_ROUTER, [], plugins) + def create_prompt_router( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePromptRouterOutput: + return self._invoke( + self._select_input(_models.CREATE_PROMPT_ROUTER, args, kwargs), + _models.CREATE_PROMPT_ROUTER, + [], + plugins, + ) + + @_overload def create_provisioned_model_throughput( self, - input: CreateProvisionedModelThroughputInput, + request: _models.CreateProvisionedModelThroughputInput + | _models.CreateProvisionedModelThroughputInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateProvisionedModelThroughputOutput: ... + + @_overload + def create_provisioned_model_throughput( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateProvisionedModelThroughputInputDict], ) -> CreateProvisionedModelThroughputOutput: """ Creates dedicated throughput for a base or custom model with the model @@ -847,8 +1162,6 @@ def create_provisioned_model_throughput( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `CreateProvisionedModelThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -858,14 +1171,36 @@ def create_provisioned_model_throughput( Returns: An instance of `CreateProvisionedModelThroughputOutput`. """ + + def create_provisioned_model_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateProvisionedModelThroughputOutput: return self._invoke( - input, _models.CREATE_PROVISIONED_MODEL_THROUGHPUT, [], plugins + self._select_input( + _models.CREATE_PROVISIONED_MODEL_THROUGHPUT, args, kwargs + ), + _models.CREATE_PROVISIONED_MODEL_THROUGHPUT, + [], + plugins, ) + @_overload + def delete_automated_reasoning_policy( + self, + request: _models.DeleteAutomatedReasoningPolicyInput + | _models.DeleteAutomatedReasoningPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAutomatedReasoningPolicyOutput: ... + + @_overload def delete_automated_reasoning_policy( self, - input: DeleteAutomatedReasoningPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAutomatedReasoningPolicyInputDict], ) -> DeleteAutomatedReasoningPolicyOutput: """ Deletes an Automated Reasoning policy or policy version. This operation @@ -873,8 +1208,6 @@ def delete_automated_reasoning_policy( succeeds. Deleting a policy removes it permanently and cannot be undone. Args: - input: - An instance of `DeleteAutomatedReasoningPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -884,14 +1217,34 @@ def delete_automated_reasoning_policy( Returns: An instance of `DeleteAutomatedReasoningPolicyOutput`. """ + + def delete_automated_reasoning_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAutomatedReasoningPolicyOutput: return self._invoke( - input, _models.DELETE_AUTOMATED_REASONING_POLICY, [], plugins + self._select_input(_models.DELETE_AUTOMATED_REASONING_POLICY, args, kwargs), + _models.DELETE_AUTOMATED_REASONING_POLICY, + [], + plugins, ) + @_overload + def delete_automated_reasoning_policy_build_workflow( + self, + request: _models.DeleteAutomatedReasoningPolicyBuildWorkflowInput + | _models.DeleteAutomatedReasoningPolicyBuildWorkflowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAutomatedReasoningPolicyBuildWorkflowOutput: ... + + @_overload def delete_automated_reasoning_policy_build_workflow( self, - input: DeleteAutomatedReasoningPolicyBuildWorkflowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAutomatedReasoningPolicyBuildWorkflowInputDict], ) -> DeleteAutomatedReasoningPolicyBuildWorkflowOutput: """ Deletes an Automated Reasoning policy build workflow and its associated @@ -899,8 +1252,6 @@ def delete_automated_reasoning_policy_build_workflow( generated assets. Args: - input: - An instance of `DeleteAutomatedReasoningPolicyBuildWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -910,22 +1261,42 @@ def delete_automated_reasoning_policy_build_workflow( Returns: An instance of `DeleteAutomatedReasoningPolicyBuildWorkflowOutput`. """ + + def delete_automated_reasoning_policy_build_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAutomatedReasoningPolicyBuildWorkflowOutput: return self._invoke( - input, _models.DELETE_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, [], plugins + self._select_input( + _models.DELETE_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, args, kwargs + ), + _models.DELETE_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, + [], + plugins, ) + @_overload + def delete_automated_reasoning_policy_test_case( + self, + request: _models.DeleteAutomatedReasoningPolicyTestCaseInput + | _models.DeleteAutomatedReasoningPolicyTestCaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAutomatedReasoningPolicyTestCaseOutput: ... + + @_overload def delete_automated_reasoning_policy_test_case( self, - input: DeleteAutomatedReasoningPolicyTestCaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAutomatedReasoningPolicyTestCaseInputDict], ) -> DeleteAutomatedReasoningPolicyTestCaseOutput: """ Deletes an Automated Reasoning policy test. This operation is idempotent; if you delete a test more than once, each call succeeds. Args: - input: - An instance of `DeleteAutomatedReasoningPolicyTestCaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -935,12 +1306,35 @@ def delete_automated_reasoning_policy_test_case( Returns: An instance of `DeleteAutomatedReasoningPolicyTestCaseOutput`. """ - return self._invoke( - input, _models.DELETE_AUTOMATED_REASONING_POLICY_TEST_CASE, [], plugins + + def delete_automated_reasoning_policy_test_case( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAutomatedReasoningPolicyTestCaseOutput: + return self._invoke( + self._select_input( + _models.DELETE_AUTOMATED_REASONING_POLICY_TEST_CASE, args, kwargs + ), + _models.DELETE_AUTOMATED_REASONING_POLICY_TEST_CASE, + [], + plugins, ) + @_overload def delete_custom_model( - self, input: DeleteCustomModelInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteCustomModelInput | _models.DeleteCustomModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomModelOutput: ... + + @_overload + def delete_custom_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomModelInputDict], ) -> DeleteCustomModelOutput: """ Deletes a custom model that you created earlier. For more information, @@ -950,8 +1344,6 @@ def delete_custom_model( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `DeleteCustomModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -961,12 +1353,34 @@ def delete_custom_model( Returns: An instance of `DeleteCustomModelOutput`. """ - return self._invoke(input, _models.DELETE_CUSTOM_MODEL, [], plugins) + def delete_custom_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomModelOutput: + return self._invoke( + self._select_input(_models.DELETE_CUSTOM_MODEL, args, kwargs), + _models.DELETE_CUSTOM_MODEL, + [], + plugins, + ) + + @_overload def delete_custom_model_deployment( self, - input: DeleteCustomModelDeploymentInput, + request: _models.DeleteCustomModelDeploymentInput + | _models.DeleteCustomModelDeploymentInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteCustomModelDeploymentOutput: ... + + @_overload + def delete_custom_model_deployment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomModelDeploymentInputDict], ) -> DeleteCustomModelDeploymentOutput: """ Deletes a custom model deployment. This operation stops the deployment @@ -983,8 +1397,6 @@ def delete_custom_model_deployment( - [ListCustomModelDeployments](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html) Args: - input: - An instance of `DeleteCustomModelDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -994,19 +1406,39 @@ def delete_custom_model_deployment( Returns: An instance of `DeleteCustomModelDeploymentOutput`. """ - return self._invoke(input, _models.DELETE_CUSTOM_MODEL_DEPLOYMENT, [], plugins) + def delete_custom_model_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomModelDeploymentOutput: + return self._invoke( + self._select_input(_models.DELETE_CUSTOM_MODEL_DEPLOYMENT, args, kwargs), + _models.DELETE_CUSTOM_MODEL_DEPLOYMENT, + [], + plugins, + ) + + @_overload def delete_enforced_guardrail_configuration( self, - input: DeleteEnforcedGuardrailConfigurationInput, + request: _models.DeleteEnforcedGuardrailConfigurationInput + | _models.DeleteEnforcedGuardrailConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteEnforcedGuardrailConfigurationOutput: ... + + @_overload + def delete_enforced_guardrail_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEnforcedGuardrailConfigurationInputDict], ) -> DeleteEnforcedGuardrailConfigurationOutput: """ Deletes the account-level enforced guardrail configuration. Args: - input: - An instance of `DeleteEnforcedGuardrailConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1016,21 +1448,41 @@ def delete_enforced_guardrail_configuration( Returns: An instance of `DeleteEnforcedGuardrailConfigurationOutput`. """ + + def delete_enforced_guardrail_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEnforcedGuardrailConfigurationOutput: return self._invoke( - input, _models.DELETE_ENFORCED_GUARDRAIL_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_ENFORCED_GUARDRAIL_CONFIGURATION, args, kwargs + ), + _models.DELETE_ENFORCED_GUARDRAIL_CONFIGURATION, + [], + plugins, ) + @_overload def delete_foundation_model_agreement( self, - input: DeleteFoundationModelAgreementInput, + request: _models.DeleteFoundationModelAgreementInput + | _models.DeleteFoundationModelAgreementInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteFoundationModelAgreementOutput: ... + + @_overload + def delete_foundation_model_agreement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFoundationModelAgreementInputDict], ) -> DeleteFoundationModelAgreementOutput: """ Delete the model access agreement for the specified model. Args: - input: - An instance of `DeleteFoundationModelAgreementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1040,12 +1492,33 @@ def delete_foundation_model_agreement( Returns: An instance of `DeleteFoundationModelAgreementOutput`. """ + + def delete_foundation_model_agreement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFoundationModelAgreementOutput: return self._invoke( - input, _models.DELETE_FOUNDATION_MODEL_AGREEMENT, [], plugins + self._select_input(_models.DELETE_FOUNDATION_MODEL_AGREEMENT, args, kwargs), + _models.DELETE_FOUNDATION_MODEL_AGREEMENT, + [], + plugins, ) + @_overload + def delete_guardrail( + self, + request: _models.DeleteGuardrailInput | _models.DeleteGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGuardrailOutput: ... + + @_overload def delete_guardrail( - self, input: DeleteGuardrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGuardrailInputDict], ) -> DeleteGuardrailOutput: """ Deletes a guardrail. @@ -1059,8 +1532,6 @@ def delete_guardrail( `guardrailVersion` field. Args: - input: - An instance of `DeleteGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1070,10 +1541,34 @@ def delete_guardrail( Returns: An instance of `DeleteGuardrailOutput`. """ - return self._invoke(input, _models.DELETE_GUARDRAIL, [], plugins) + def delete_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGuardrailOutput: + return self._invoke( + self._select_input(_models.DELETE_GUARDRAIL, args, kwargs), + _models.DELETE_GUARDRAIL, + [], + plugins, + ) + + @_overload + def delete_imported_model( + self, + request: _models.DeleteImportedModelInput + | _models.DeleteImportedModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteImportedModelOutput: ... + + @_overload def delete_imported_model( - self, input: DeleteImportedModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteImportedModelInputDict], ) -> DeleteImportedModelOutput: """ Deletes a custom model that you imported earlier. For more information, @@ -1083,8 +1578,6 @@ def delete_imported_model( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `DeleteImportedModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1094,10 +1587,34 @@ def delete_imported_model( Returns: An instance of `DeleteImportedModelOutput`. """ - return self._invoke(input, _models.DELETE_IMPORTED_MODEL, [], plugins) + def delete_imported_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteImportedModelOutput: + return self._invoke( + self._select_input(_models.DELETE_IMPORTED_MODEL, args, kwargs), + _models.DELETE_IMPORTED_MODEL, + [], + plugins, + ) + + @_overload def delete_inference_profile( - self, input: DeleteInferenceProfileInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteInferenceProfileInput + | _models.DeleteInferenceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInferenceProfileOutput: ... + + @_overload + def delete_inference_profile( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInferenceProfileInputDict], ) -> DeleteInferenceProfileOutput: """ Deletes an application inference profile. For more information, see @@ -1107,8 +1624,6 @@ def delete_inference_profile( in the Amazon Bedrock User Guide. Args: - input: - An instance of `DeleteInferenceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1118,19 +1633,39 @@ def delete_inference_profile( Returns: An instance of `DeleteInferenceProfileOutput`. """ - return self._invoke(input, _models.DELETE_INFERENCE_PROFILE, [], plugins) + def delete_inference_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInferenceProfileOutput: + return self._invoke( + self._select_input(_models.DELETE_INFERENCE_PROFILE, args, kwargs), + _models.DELETE_INFERENCE_PROFILE, + [], + plugins, + ) + + @_overload def delete_marketplace_model_endpoint( self, - input: DeleteMarketplaceModelEndpointInput, + request: _models.DeleteMarketplaceModelEndpointInput + | _models.DeleteMarketplaceModelEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteMarketplaceModelEndpointOutput: ... + + @_overload + def delete_marketplace_model_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMarketplaceModelEndpointInputDict], ) -> DeleteMarketplaceModelEndpointOutput: """ Deletes an endpoint for a model from Amazon Bedrock Marketplace. Args: - input: - An instance of `DeleteMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1140,21 +1675,39 @@ def delete_marketplace_model_endpoint( Returns: An instance of `DeleteMarketplaceModelEndpointOutput`. """ + + def delete_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMarketplaceModelEndpointOutput: return self._invoke( - input, _models.DELETE_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input(_models.DELETE_MARKETPLACE_MODEL_ENDPOINT, args, kwargs), + _models.DELETE_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload def delete_model_invocation_logging_configuration( self, - input: DeleteModelInvocationLoggingConfigurationInput | None = None, + request: _models.DeleteModelInvocationLoggingConfigurationInput + | _models.DeleteModelInvocationLoggingConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteModelInvocationLoggingConfigurationOutput: ... + + @_overload + def delete_model_invocation_logging_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteModelInvocationLoggingConfigurationInputDict], ) -> DeleteModelInvocationLoggingConfigurationOutput: """ Delete the invocation logging. Args: - input: - An instance of `DeleteModelInvocationLoggingConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1164,19 +1717,40 @@ def delete_model_invocation_logging_configuration( Returns: An instance of `DeleteModelInvocationLoggingConfigurationOutput`. """ + + def delete_model_invocation_logging_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteModelInvocationLoggingConfigurationOutput: return self._invoke( - input, _models.DELETE_MODEL_INVOCATION_LOGGING_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_MODEL_INVOCATION_LOGGING_CONFIGURATION, args, kwargs + ), + _models.DELETE_MODEL_INVOCATION_LOGGING_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_prompt_router( + self, + request: _models.DeletePromptRouterInput | _models.DeletePromptRouterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePromptRouterOutput: ... + + @_overload def delete_prompt_router( - self, input: DeletePromptRouterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePromptRouterInputDict], ) -> DeletePromptRouterOutput: """ Deletes a specified prompt router. This action cannot be undone. Args: - input: - An instance of `DeletePromptRouterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1186,12 +1760,34 @@ def delete_prompt_router( Returns: An instance of `DeletePromptRouterOutput`. """ - return self._invoke(input, _models.DELETE_PROMPT_ROUTER, [], plugins) + def delete_prompt_router( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePromptRouterOutput: + return self._invoke( + self._select_input(_models.DELETE_PROMPT_ROUTER, args, kwargs), + _models.DELETE_PROMPT_ROUTER, + [], + plugins, + ) + + @_overload + def delete_provisioned_model_throughput( + self, + request: _models.DeleteProvisionedModelThroughputInput + | _models.DeleteProvisionedModelThroughputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteProvisionedModelThroughputOutput: ... + + @_overload def delete_provisioned_model_throughput( self, - input: DeleteProvisionedModelThroughputInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteProvisionedModelThroughputInputDict], ) -> DeleteProvisionedModelThroughputOutput: """ Deletes a Provisioned Throughput. You can't delete a Provisioned @@ -1202,8 +1798,6 @@ def delete_provisioned_model_throughput( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `DeleteProvisionedModelThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1213,19 +1807,41 @@ def delete_provisioned_model_throughput( Returns: An instance of `DeleteProvisionedModelThroughputOutput`. """ + + def delete_provisioned_model_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteProvisionedModelThroughputOutput: return self._invoke( - input, _models.DELETE_PROVISIONED_MODEL_THROUGHPUT, [], plugins + self._select_input( + _models.DELETE_PROVISIONED_MODEL_THROUGHPUT, args, kwargs + ), + _models.DELETE_PROVISIONED_MODEL_THROUGHPUT, + [], + plugins, ) + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload + def delete_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes a previously created Bedrock resource policy. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1235,12 +1851,34 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def deregister_marketplace_model_endpoint( self, - input: DeregisterMarketplaceModelEndpointInput, + request: _models.DeregisterMarketplaceModelEndpointInput + | _models.DeregisterMarketplaceModelEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeregisterMarketplaceModelEndpointOutput: ... + + @_overload + def deregister_marketplace_model_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterMarketplaceModelEndpointInputDict], ) -> DeregisterMarketplaceModelEndpointOutput: """ Deregisters an endpoint for a model from Amazon Bedrock Marketplace. @@ -1248,8 +1886,6 @@ def deregister_marketplace_model_endpoint( but does not delete the underlying Amazon SageMaker endpoint. Args: - input: - An instance of `DeregisterMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1259,14 +1895,36 @@ def deregister_marketplace_model_endpoint( Returns: An instance of `DeregisterMarketplaceModelEndpointOutput`. """ + + def deregister_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterMarketplaceModelEndpointOutput: return self._invoke( - input, _models.DEREGISTER_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input( + _models.DEREGISTER_MARKETPLACE_MODEL_ENDPOINT, args, kwargs + ), + _models.DEREGISTER_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + def export_automated_reasoning_policy_version( + self, + request: _models.ExportAutomatedReasoningPolicyVersionInput + | _models.ExportAutomatedReasoningPolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportAutomatedReasoningPolicyVersionOutput: ... + + @_overload def export_automated_reasoning_policy_version( self, - input: ExportAutomatedReasoningPolicyVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportAutomatedReasoningPolicyVersionInputDict], ) -> ExportAutomatedReasoningPolicyVersionOutput: """ Exports the policy definition for an Automated Reasoning policy version. @@ -1274,8 +1932,6 @@ def export_automated_reasoning_policy_version( custom variable types in a structured format. Args: - input: - An instance of `ExportAutomatedReasoningPolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1285,21 +1941,41 @@ def export_automated_reasoning_policy_version( Returns: An instance of `ExportAutomatedReasoningPolicyVersionOutput`. """ + + def export_automated_reasoning_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportAutomatedReasoningPolicyVersionOutput: return self._invoke( - input, _models.EXPORT_AUTOMATED_REASONING_POLICY_VERSION, [], plugins + self._select_input( + _models.EXPORT_AUTOMATED_REASONING_POLICY_VERSION, args, kwargs + ), + _models.EXPORT_AUTOMATED_REASONING_POLICY_VERSION, + [], + plugins, ) + @_overload def get_account_data_retention( self, - input: GetAccountDataRetentionInput | None = None, + request: _models.GetAccountDataRetentionInput + | _models.GetAccountDataRetentionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAccountDataRetentionOutput: ... + + @_overload + def get_account_data_retention( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountDataRetentionInputDict], ) -> GetAccountDataRetentionOutput: """ Returns the account-wide data retention mode for Amazon Bedrock. Args: - input: - An instance of `GetAccountDataRetentionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1309,19 +1985,39 @@ def get_account_data_retention( Returns: An instance of `GetAccountDataRetentionOutput`. """ - return self._invoke(input, _models.GET_ACCOUNT_DATA_RETENTION, [], plugins) + def get_account_data_retention( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountDataRetentionOutput: + return self._invoke( + self._select_input(_models.GET_ACCOUNT_DATA_RETENTION, args, kwargs), + _models.GET_ACCOUNT_DATA_RETENTION, + [], + plugins, + ) + + @_overload + def get_advanced_prompt_optimization_job( + self, + request: _models.GetAdvancedPromptOptimizationJobInput + | _models.GetAdvancedPromptOptimizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAdvancedPromptOptimizationJobOutput: ... + + @_overload def get_advanced_prompt_optimization_job( self, - input: GetAdvancedPromptOptimizationJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAdvancedPromptOptimizationJobInputDict], ) -> GetAdvancedPromptOptimizationJobOutput: """ Gets information about an advanced prompt optimization job. Args: - input: - An instance of `GetAdvancedPromptOptimizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1331,14 +2027,36 @@ def get_advanced_prompt_optimization_job( Returns: An instance of `GetAdvancedPromptOptimizationJobOutput`. """ + + def get_advanced_prompt_optimization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAdvancedPromptOptimizationJobOutput: return self._invoke( - input, _models.GET_ADVANCED_PROMPT_OPTIMIZATION_JOB, [], plugins + self._select_input( + _models.GET_ADVANCED_PROMPT_OPTIMIZATION_JOB, args, kwargs + ), + _models.GET_ADVANCED_PROMPT_OPTIMIZATION_JOB, + [], + plugins, ) + @_overload def get_automated_reasoning_policy( self, - input: GetAutomatedReasoningPolicyInput, + request: _models.GetAutomatedReasoningPolicyInput + | _models.GetAutomatedReasoningPolicyInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyOutput: ... + + @_overload + def get_automated_reasoning_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyInputDict], ) -> GetAutomatedReasoningPolicyOutput: """ Retrieves details about an Automated Reasoning policy or policy version. @@ -1346,8 +2064,6 @@ def get_automated_reasoning_policy( timestamps. Args: - input: - An instance of `GetAutomatedReasoningPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1357,12 +2073,34 @@ def get_automated_reasoning_policy( Returns: An instance of `GetAutomatedReasoningPolicyOutput`. """ - return self._invoke(input, _models.GET_AUTOMATED_REASONING_POLICY, [], plugins) + def get_automated_reasoning_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyOutput: + return self._invoke( + self._select_input(_models.GET_AUTOMATED_REASONING_POLICY, args, kwargs), + _models.GET_AUTOMATED_REASONING_POLICY, + [], + plugins, + ) + + @_overload def get_automated_reasoning_policy_annotations( self, - input: GetAutomatedReasoningPolicyAnnotationsInput, + request: _models.GetAutomatedReasoningPolicyAnnotationsInput + | _models.GetAutomatedReasoningPolicyAnnotationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyAnnotationsOutput: ... + + @_overload + def get_automated_reasoning_policy_annotations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyAnnotationsInputDict], ) -> GetAutomatedReasoningPolicyAnnotationsOutput: """ Retrieves the current annotations for an Automated Reasoning policy @@ -1370,8 +2108,6 @@ def get_automated_reasoning_policy_annotations( and types to be applied to the policy. Args: - input: - An instance of `GetAutomatedReasoningPolicyAnnotationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1381,22 +2117,42 @@ def get_automated_reasoning_policy_annotations( Returns: An instance of `GetAutomatedReasoningPolicyAnnotationsOutput`. """ + + def get_automated_reasoning_policy_annotations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyAnnotationsOutput: return self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_ANNOTATIONS, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_ANNOTATIONS, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_ANNOTATIONS, + [], + plugins, ) + @_overload + def get_automated_reasoning_policy_build_workflow( + self, + request: _models.GetAutomatedReasoningPolicyBuildWorkflowInput + | _models.GetAutomatedReasoningPolicyBuildWorkflowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyBuildWorkflowOutput: ... + + @_overload def get_automated_reasoning_policy_build_workflow( self, - input: GetAutomatedReasoningPolicyBuildWorkflowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyBuildWorkflowInputDict], ) -> GetAutomatedReasoningPolicyBuildWorkflowOutput: """ Retrieves detailed information about an Automated Reasoning policy build workflow, including its status, configuration, and metadata. Args: - input: - An instance of `GetAutomatedReasoningPolicyBuildWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1406,14 +2162,38 @@ def get_automated_reasoning_policy_build_workflow( Returns: An instance of `GetAutomatedReasoningPolicyBuildWorkflowOutput`. """ + + def get_automated_reasoning_policy_build_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyBuildWorkflowOutput: return self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, + [], + plugins, ) + @_overload def get_automated_reasoning_policy_build_workflow_result_assets( self, - input: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput, + request: _models.GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput + | _models.GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput: ... + + @_overload + def get_automated_reasoning_policy_build_workflow_result_assets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict + ], ) -> GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput: """ Retrieves the resulting assets from a completed Automated Reasoning @@ -1421,8 +2201,6 @@ def get_automated_reasoning_policy_build_workflow_result_assets( generated policy artifacts. Args: - input: - An instance of `GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1432,17 +2210,38 @@ def get_automated_reasoning_policy_build_workflow_result_assets( Returns: An instance of `GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput`. """ + + def get_automated_reasoning_policy_build_workflow_result_assets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput: return self._invoke( - input, + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW_RESULT_ASSETS, + args, + kwargs, + ), _models.GET_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW_RESULT_ASSETS, [], plugins, ) + @_overload + def get_automated_reasoning_policy_next_scenario( + self, + request: _models.GetAutomatedReasoningPolicyNextScenarioInput + | _models.GetAutomatedReasoningPolicyNextScenarioInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyNextScenarioOutput: ... + + @_overload def get_automated_reasoning_policy_next_scenario( self, - input: GetAutomatedReasoningPolicyNextScenarioInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyNextScenarioInputDict], ) -> GetAutomatedReasoningPolicyNextScenarioOutput: """ Retrieves the next test scenario for validating an Automated Reasoning @@ -1450,8 +2249,6 @@ def get_automated_reasoning_policy_next_scenario( test policy behavior. Args: - input: - An instance of `GetAutomatedReasoningPolicyNextScenarioInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1461,21 +2258,41 @@ def get_automated_reasoning_policy_next_scenario( Returns: An instance of `GetAutomatedReasoningPolicyNextScenarioOutput`. """ + + def get_automated_reasoning_policy_next_scenario( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyNextScenarioOutput: return self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_NEXT_SCENARIO, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_NEXT_SCENARIO, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_NEXT_SCENARIO, + [], + plugins, ) + @_overload def get_automated_reasoning_policy_test_case( self, - input: GetAutomatedReasoningPolicyTestCaseInput, + request: _models.GetAutomatedReasoningPolicyTestCaseInput + | _models.GetAutomatedReasoningPolicyTestCaseInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyTestCaseOutput: ... + + @_overload + def get_automated_reasoning_policy_test_case( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyTestCaseInputDict], ) -> GetAutomatedReasoningPolicyTestCaseOutput: """ Retrieves details about a specific Automated Reasoning policy test. Args: - input: - An instance of `GetAutomatedReasoningPolicyTestCaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1485,22 +2302,42 @@ def get_automated_reasoning_policy_test_case( Returns: An instance of `GetAutomatedReasoningPolicyTestCaseOutput`. """ + + def get_automated_reasoning_policy_test_case( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyTestCaseOutput: return self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_TEST_CASE, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_TEST_CASE, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_TEST_CASE, + [], + plugins, ) + @_overload + def get_automated_reasoning_policy_test_result( + self, + request: _models.GetAutomatedReasoningPolicyTestResultInput + | _models.GetAutomatedReasoningPolicyTestResultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAutomatedReasoningPolicyTestResultOutput: ... + + @_overload def get_automated_reasoning_policy_test_result( self, - input: GetAutomatedReasoningPolicyTestResultInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAutomatedReasoningPolicyTestResultInputDict], ) -> GetAutomatedReasoningPolicyTestResultOutput: """ Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status. Args: - input: - An instance of `GetAutomatedReasoningPolicyTestResultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1510,12 +2347,35 @@ def get_automated_reasoning_policy_test_result( Returns: An instance of `GetAutomatedReasoningPolicyTestResultOutput`. """ + + def get_automated_reasoning_policy_test_result( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAutomatedReasoningPolicyTestResultOutput: return self._invoke( - input, _models.GET_AUTOMATED_REASONING_POLICY_TEST_RESULT, [], plugins + self._select_input( + _models.GET_AUTOMATED_REASONING_POLICY_TEST_RESULT, args, kwargs + ), + _models.GET_AUTOMATED_REASONING_POLICY_TEST_RESULT, + [], + plugins, ) + @_overload def get_custom_model( - self, input: GetCustomModelInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCustomModelInput | _models.GetCustomModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomModelOutput: ... + + @_overload + def get_custom_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomModelInputDict], ) -> GetCustomModelOutput: """ Get the properties associated with a Amazon Bedrock custom model that @@ -1525,8 +2385,6 @@ def get_custom_model( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetCustomModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1536,10 +2394,34 @@ def get_custom_model( Returns: An instance of `GetCustomModelOutput`. """ - return self._invoke(input, _models.GET_CUSTOM_MODEL, [], plugins) + def get_custom_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomModelOutput: + return self._invoke( + self._select_input(_models.GET_CUSTOM_MODEL, args, kwargs), + _models.GET_CUSTOM_MODEL, + [], + plugins, + ) + + @_overload def get_custom_model_deployment( - self, input: GetCustomModelDeploymentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCustomModelDeploymentInput + | _models.GetCustomModelDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomModelDeploymentOutput: ... + + @_overload + def get_custom_model_deployment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomModelDeploymentInputDict], ) -> GetCustomModelDeploymentOutput: """ Retrieves information about a custom model deployment, including its @@ -1556,8 +2438,6 @@ def get_custom_model_deployment( - [DeleteCustomModelDeployment](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html) Args: - input: - An instance of `GetCustomModelDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1567,17 +2447,38 @@ def get_custom_model_deployment( Returns: An instance of `GetCustomModelDeploymentOutput`. """ - return self._invoke(input, _models.GET_CUSTOM_MODEL_DEPLOYMENT, [], plugins) + def get_custom_model_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomModelDeploymentOutput: + return self._invoke( + self._select_input(_models.GET_CUSTOM_MODEL_DEPLOYMENT, args, kwargs), + _models.GET_CUSTOM_MODEL_DEPLOYMENT, + [], + plugins, + ) + + @_overload def get_evaluation_job( - self, input: GetEvaluationJobInput, plugins: list[Plugin] | None = None + self, + request: _models.GetEvaluationJobInput | _models.GetEvaluationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEvaluationJobOutput: ... + + @_overload + def get_evaluation_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEvaluationJobInputDict], ) -> GetEvaluationJobOutput: """ Gets information about an evaluation job, such as the status of the job. Args: - input: - An instance of `GetEvaluationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1587,17 +2488,38 @@ def get_evaluation_job( Returns: An instance of `GetEvaluationJobOutput`. """ - return self._invoke(input, _models.GET_EVALUATION_JOB, [], plugins) + def get_evaluation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEvaluationJobOutput: + return self._invoke( + self._select_input(_models.GET_EVALUATION_JOB, args, kwargs), + _models.GET_EVALUATION_JOB, + [], + plugins, + ) + + @_overload def get_foundation_model( - self, input: GetFoundationModelInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFoundationModelInput | _models.GetFoundationModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFoundationModelOutput: ... + + @_overload + def get_foundation_model( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFoundationModelInputDict], ) -> GetFoundationModelOutput: """ Get details about a Amazon Bedrock foundation model. Args: - input: - An instance of `GetFoundationModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1607,19 +2529,39 @@ def get_foundation_model( Returns: An instance of `GetFoundationModelOutput`. """ - return self._invoke(input, _models.GET_FOUNDATION_MODEL, [], plugins) + def get_foundation_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFoundationModelOutput: + return self._invoke( + self._select_input(_models.GET_FOUNDATION_MODEL, args, kwargs), + _models.GET_FOUNDATION_MODEL, + [], + plugins, + ) + + @_overload def get_foundation_model_availability( self, - input: GetFoundationModelAvailabilityInput, + request: _models.GetFoundationModelAvailabilityInput + | _models.GetFoundationModelAvailabilityInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetFoundationModelAvailabilityOutput: ... + + @_overload + def get_foundation_model_availability( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFoundationModelAvailabilityInputDict], ) -> GetFoundationModelAvailabilityOutput: """ Get information about the Foundation model availability. Args: - input: - An instance of `GetFoundationModelAvailabilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1629,20 +2571,39 @@ def get_foundation_model_availability( Returns: An instance of `GetFoundationModelAvailabilityOutput`. """ + + def get_foundation_model_availability( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFoundationModelAvailabilityOutput: return self._invoke( - input, _models.GET_FOUNDATION_MODEL_AVAILABILITY, [], plugins + self._select_input(_models.GET_FOUNDATION_MODEL_AVAILABILITY, args, kwargs), + _models.GET_FOUNDATION_MODEL_AVAILABILITY, + [], + plugins, ) + @_overload def get_guardrail( - self, input: GetGuardrailInput, plugins: list[Plugin] | None = None + self, + request: _models.GetGuardrailInput | _models.GetGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGuardrailOutput: ... + + @_overload + def get_guardrail( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGuardrailInputDict], ) -> GetGuardrailOutput: """ Gets details about a guardrail. If you don't specify a version, the response returns details for the `DRAFT` version. Args: - input: - An instance of `GetGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1652,17 +2613,38 @@ def get_guardrail( Returns: An instance of `GetGuardrailOutput`. """ - return self._invoke(input, _models.GET_GUARDRAIL, [], plugins) + def get_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGuardrailOutput: + return self._invoke( + self._select_input(_models.GET_GUARDRAIL, args, kwargs), + _models.GET_GUARDRAIL, + [], + plugins, + ) + + @_overload + def get_imported_model( + self, + request: _models.GetImportedModelInput | _models.GetImportedModelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImportedModelOutput: ... + + @_overload def get_imported_model( - self, input: GetImportedModelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImportedModelInputDict], ) -> GetImportedModelOutput: """ Gets properties associated with a customized model you imported. Args: - input: - An instance of `GetImportedModelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1672,10 +2654,34 @@ def get_imported_model( Returns: An instance of `GetImportedModelOutput`. """ - return self._invoke(input, _models.GET_IMPORTED_MODEL, [], plugins) + def get_imported_model( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImportedModelOutput: + return self._invoke( + self._select_input(_models.GET_IMPORTED_MODEL, args, kwargs), + _models.GET_IMPORTED_MODEL, + [], + plugins, + ) + + @_overload def get_inference_profile( - self, input: GetInferenceProfileInput, plugins: list[Plugin] | None = None + self, + request: _models.GetInferenceProfileInput + | _models.GetInferenceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInferenceProfileOutput: ... + + @_overload + def get_inference_profile( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInferenceProfileInputDict], ) -> GetInferenceProfileOutput: """ Gets information about an inference profile. For more information, see @@ -1685,8 +2691,6 @@ def get_inference_profile( in the Amazon Bedrock User Guide. Args: - input: - An instance of `GetInferenceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1696,20 +2700,40 @@ def get_inference_profile( Returns: An instance of `GetInferenceProfileOutput`. """ - return self._invoke(input, _models.GET_INFERENCE_PROFILE, [], plugins) + def get_inference_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInferenceProfileOutput: + return self._invoke( + self._select_input(_models.GET_INFERENCE_PROFILE, args, kwargs), + _models.GET_INFERENCE_PROFILE, + [], + plugins, + ) + + @_overload def get_marketplace_model_endpoint( self, - input: GetMarketplaceModelEndpointInput, + request: _models.GetMarketplaceModelEndpointInput + | _models.GetMarketplaceModelEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetMarketplaceModelEndpointOutput: ... + + @_overload + def get_marketplace_model_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMarketplaceModelEndpointInputDict], ) -> GetMarketplaceModelEndpointOutput: """ Retrieves details about a specific endpoint for a model from Amazon Bedrock Marketplace. Args: - input: - An instance of `GetMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1719,10 +2743,33 @@ def get_marketplace_model_endpoint( Returns: An instance of `GetMarketplaceModelEndpointOutput`. """ - return self._invoke(input, _models.GET_MARKETPLACE_MODEL_ENDPOINT, [], plugins) + def get_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMarketplaceModelEndpointOutput: + return self._invoke( + self._select_input(_models.GET_MARKETPLACE_MODEL_ENDPOINT, args, kwargs), + _models.GET_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, + ) + + @_overload + def get_model_copy_job( + self, + request: _models.GetModelCopyJobInput | _models.GetModelCopyJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelCopyJobOutput: ... + + @_overload def get_model_copy_job( - self, input: GetModelCopyJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelCopyJobInputDict], ) -> GetModelCopyJobOutput: """ Retrieves information about a model copy job. For more information, see @@ -1732,8 +2779,6 @@ def get_model_copy_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetModelCopyJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1743,10 +2788,34 @@ def get_model_copy_job( Returns: An instance of `GetModelCopyJobOutput`. """ - return self._invoke(input, _models.GET_MODEL_COPY_JOB, [], plugins) + def get_model_copy_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelCopyJobOutput: + return self._invoke( + self._select_input(_models.GET_MODEL_COPY_JOB, args, kwargs), + _models.GET_MODEL_COPY_JOB, + [], + plugins, + ) + + @_overload + def get_model_customization_job( + self, + request: _models.GetModelCustomizationJobInput + | _models.GetModelCustomizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelCustomizationJobOutput: ... + + @_overload def get_model_customization_job( - self, input: GetModelCustomizationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelCustomizationJobInputDict], ) -> GetModelCustomizationJobOutput: """ Retrieves the properties associated with a model-customization job, @@ -1756,8 +2825,6 @@ def get_model_customization_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetModelCustomizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1767,10 +2834,33 @@ def get_model_customization_job( Returns: An instance of `GetModelCustomizationJobOutput`. """ - return self._invoke(input, _models.GET_MODEL_CUSTOMIZATION_JOB, [], plugins) + def get_model_customization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelCustomizationJobOutput: + return self._invoke( + self._select_input(_models.GET_MODEL_CUSTOMIZATION_JOB, args, kwargs), + _models.GET_MODEL_CUSTOMIZATION_JOB, + [], + plugins, + ) + + @_overload + def get_model_import_job( + self, + request: _models.GetModelImportJobInput | _models.GetModelImportJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelImportJobOutput: ... + + @_overload def get_model_import_job( - self, input: GetModelImportJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelImportJobInputDict], ) -> GetModelImportJobOutput: """ Retrieves the properties associated with import model job, including the @@ -1780,8 +2870,6 @@ def get_model_import_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetModelImportJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1791,10 +2879,34 @@ def get_model_import_job( Returns: An instance of `GetModelImportJobOutput`. """ - return self._invoke(input, _models.GET_MODEL_IMPORT_JOB, [], plugins) + def get_model_import_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelImportJobOutput: + return self._invoke( + self._select_input(_models.GET_MODEL_IMPORT_JOB, args, kwargs), + _models.GET_MODEL_IMPORT_JOB, + [], + plugins, + ) + + @_overload def get_model_invocation_job( - self, input: GetModelInvocationJobInput, plugins: list[Plugin] | None = None + self, + request: _models.GetModelInvocationJobInput + | _models.GetModelInvocationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelInvocationJobOutput: ... + + @_overload + def get_model_invocation_job( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelInvocationJobInputDict], ) -> GetModelInvocationJobOutput: """ Gets details about a batch inference job. For more information, see @@ -1802,30 +2914,48 @@ def get_model_invocation_job( jobs](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-monitor) Args: - input: - An instance of `GetModelInvocationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `GetModelInvocationJobOutput`. - """ - return self._invoke(input, _models.GET_MODEL_INVOCATION_JOB, [], plugins) + Returns: + An instance of `GetModelInvocationJobOutput`. + """ + + def get_model_invocation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelInvocationJobOutput: + return self._invoke( + self._select_input(_models.GET_MODEL_INVOCATION_JOB, args, kwargs), + _models.GET_MODEL_INVOCATION_JOB, + [], + plugins, + ) + + @_overload + def get_model_invocation_logging_configuration( + self, + request: _models.GetModelInvocationLoggingConfigurationInput + | _models.GetModelInvocationLoggingConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetModelInvocationLoggingConfigurationOutput: ... + @_overload def get_model_invocation_logging_configuration( self, - input: GetModelInvocationLoggingConfigurationInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetModelInvocationLoggingConfigurationInputDict], ) -> GetModelInvocationLoggingConfigurationOutput: """ Get the current configuration values for model invocation logging. Args: - input: - An instance of `GetModelInvocationLoggingConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1835,19 +2965,40 @@ def get_model_invocation_logging_configuration( Returns: An instance of `GetModelInvocationLoggingConfigurationOutput`. """ + + def get_model_invocation_logging_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetModelInvocationLoggingConfigurationOutput: return self._invoke( - input, _models.GET_MODEL_INVOCATION_LOGGING_CONFIGURATION, [], plugins + self._select_input( + _models.GET_MODEL_INVOCATION_LOGGING_CONFIGURATION, args, kwargs + ), + _models.GET_MODEL_INVOCATION_LOGGING_CONFIGURATION, + [], + plugins, ) + @_overload + def get_prompt_router( + self, + request: _models.GetPromptRouterInput | _models.GetPromptRouterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPromptRouterOutput: ... + + @_overload def get_prompt_router( - self, input: GetPromptRouterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPromptRouterInputDict], ) -> GetPromptRouterOutput: """ Retrieves details about a prompt router. Args: - input: - An instance of `GetPromptRouterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1857,12 +3008,34 @@ def get_prompt_router( Returns: An instance of `GetPromptRouterOutput`. """ - return self._invoke(input, _models.GET_PROMPT_ROUTER, [], plugins) + def get_prompt_router( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPromptRouterOutput: + return self._invoke( + self._select_input(_models.GET_PROMPT_ROUTER, args, kwargs), + _models.GET_PROMPT_ROUTER, + [], + plugins, + ) + + @_overload + def get_provisioned_model_throughput( + self, + request: _models.GetProvisionedModelThroughputInput + | _models.GetProvisionedModelThroughputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetProvisionedModelThroughputOutput: ... + + @_overload def get_provisioned_model_throughput( self, - input: GetProvisionedModelThroughputInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetProvisionedModelThroughputInputDict], ) -> GetProvisionedModelThroughputOutput: """ Returns details for a Provisioned Throughput. For more information, see @@ -1872,8 +3045,6 @@ def get_provisioned_model_throughput( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `GetProvisionedModelThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1883,19 +3054,38 @@ def get_provisioned_model_throughput( Returns: An instance of `GetProvisionedModelThroughputOutput`. """ + + def get_provisioned_model_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetProvisionedModelThroughputOutput: return self._invoke( - input, _models.GET_PROVISIONED_MODEL_THROUGHPUT, [], plugins + self._select_input(_models.GET_PROVISIONED_MODEL_THROUGHPUT, args, kwargs), + _models.GET_PROVISIONED_MODEL_THROUGHPUT, + [], + plugins, ) + @_overload + def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Gets the resource policy document for a Bedrock resource Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1905,19 +3095,39 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def get_use_case_for_model_access( self, - input: GetUseCaseForModelAccessInput | None = None, + request: _models.GetUseCaseForModelAccessInput + | _models.GetUseCaseForModelAccessInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetUseCaseForModelAccessOutput: ... + + @_overload + def get_use_case_for_model_access( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUseCaseForModelAccessInputDict], ) -> GetUseCaseForModelAccessOutput: """ Get usecase for model access. Args: - input: - An instance of `GetUseCaseForModelAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1927,19 +3137,39 @@ def get_use_case_for_model_access( Returns: An instance of `GetUseCaseForModelAccessOutput`. """ - return self._invoke(input, _models.GET_USE_CASE_FOR_MODEL_ACCESS, [], plugins) + def get_use_case_for_model_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUseCaseForModelAccessOutput: + return self._invoke( + self._select_input(_models.GET_USE_CASE_FOR_MODEL_ACCESS, args, kwargs), + _models.GET_USE_CASE_FOR_MODEL_ACCESS, + [], + plugins, + ) + + @_overload + def list_advanced_prompt_optimization_jobs( + self, + request: _models.ListAdvancedPromptOptimizationJobsInput + | _models.ListAdvancedPromptOptimizationJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAdvancedPromptOptimizationJobsOutput: ... + + @_overload def list_advanced_prompt_optimization_jobs( self, - input: ListAdvancedPromptOptimizationJobsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAdvancedPromptOptimizationJobsInputDict], ) -> ListAdvancedPromptOptimizationJobsOutput: """ Lists the advanced prompt optimization jobs in your account. Args: - input: - An instance of `ListAdvancedPromptOptimizationJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1949,14 +3179,36 @@ def list_advanced_prompt_optimization_jobs( Returns: An instance of `ListAdvancedPromptOptimizationJobsOutput`. """ + + def list_advanced_prompt_optimization_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAdvancedPromptOptimizationJobsOutput: return self._invoke( - input, _models.LIST_ADVANCED_PROMPT_OPTIMIZATION_JOBS, [], plugins + self._select_input( + _models.LIST_ADVANCED_PROMPT_OPTIMIZATION_JOBS, args, kwargs + ), + _models.LIST_ADVANCED_PROMPT_OPTIMIZATION_JOBS, + [], + plugins, ) + @_overload + def list_automated_reasoning_policies( + self, + request: _models.ListAutomatedReasoningPoliciesInput + | _models.ListAutomatedReasoningPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAutomatedReasoningPoliciesOutput: ... + + @_overload def list_automated_reasoning_policies( self, - input: ListAutomatedReasoningPoliciesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAutomatedReasoningPoliciesInputDict], ) -> ListAutomatedReasoningPoliciesOutput: """ Lists all Automated Reasoning policies in your account, with optional @@ -1964,8 +3216,6 @@ def list_automated_reasoning_policies( policies. Args: - input: - An instance of `ListAutomatedReasoningPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1975,22 +3225,40 @@ def list_automated_reasoning_policies( Returns: An instance of `ListAutomatedReasoningPoliciesOutput`. """ + + def list_automated_reasoning_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAutomatedReasoningPoliciesOutput: return self._invoke( - input, _models.LIST_AUTOMATED_REASONING_POLICIES, [], plugins + self._select_input(_models.LIST_AUTOMATED_REASONING_POLICIES, args, kwargs), + _models.LIST_AUTOMATED_REASONING_POLICIES, + [], + plugins, ) + @_overload + def list_automated_reasoning_policy_build_workflows( + self, + request: _models.ListAutomatedReasoningPolicyBuildWorkflowsInput + | _models.ListAutomatedReasoningPolicyBuildWorkflowsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAutomatedReasoningPolicyBuildWorkflowsOutput: ... + + @_overload def list_automated_reasoning_policy_build_workflows( self, - input: ListAutomatedReasoningPolicyBuildWorkflowsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAutomatedReasoningPolicyBuildWorkflowsInputDict], ) -> ListAutomatedReasoningPolicyBuildWorkflowsOutput: """ Lists all build workflows for an Automated Reasoning policy, showing the history of policy creation and modification attempts. Args: - input: - An instance of `ListAutomatedReasoningPolicyBuildWorkflowsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2000,14 +3268,36 @@ def list_automated_reasoning_policy_build_workflows( Returns: An instance of `ListAutomatedReasoningPolicyBuildWorkflowsOutput`. """ + + def list_automated_reasoning_policy_build_workflows( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAutomatedReasoningPolicyBuildWorkflowsOutput: return self._invoke( - input, _models.LIST_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOWS, [], plugins + self._select_input( + _models.LIST_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOWS, args, kwargs + ), + _models.LIST_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOWS, + [], + plugins, ) + @_overload + def list_automated_reasoning_policy_test_cases( + self, + request: _models.ListAutomatedReasoningPolicyTestCasesInput + | _models.ListAutomatedReasoningPolicyTestCasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAutomatedReasoningPolicyTestCasesOutput: ... + + @_overload def list_automated_reasoning_policy_test_cases( self, - input: ListAutomatedReasoningPolicyTestCasesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAutomatedReasoningPolicyTestCasesInputDict], ) -> ListAutomatedReasoningPolicyTestCasesOutput: """ Lists tests for an Automated Reasoning policy. We recommend using @@ -2015,8 +3305,6 @@ def list_automated_reasoning_policy_test_cases( successfully. Args: - input: - An instance of `ListAutomatedReasoningPolicyTestCasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2026,22 +3314,42 @@ def list_automated_reasoning_policy_test_cases( Returns: An instance of `ListAutomatedReasoningPolicyTestCasesOutput`. """ + + def list_automated_reasoning_policy_test_cases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAutomatedReasoningPolicyTestCasesOutput: return self._invoke( - input, _models.LIST_AUTOMATED_REASONING_POLICY_TEST_CASES, [], plugins + self._select_input( + _models.LIST_AUTOMATED_REASONING_POLICY_TEST_CASES, args, kwargs + ), + _models.LIST_AUTOMATED_REASONING_POLICY_TEST_CASES, + [], + plugins, ) + @_overload + def list_automated_reasoning_policy_test_results( + self, + request: _models.ListAutomatedReasoningPolicyTestResultsInput + | _models.ListAutomatedReasoningPolicyTestResultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAutomatedReasoningPolicyTestResultsOutput: ... + + @_overload def list_automated_reasoning_policy_test_results( self, - input: ListAutomatedReasoningPolicyTestResultsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAutomatedReasoningPolicyTestResultsInputDict], ) -> ListAutomatedReasoningPolicyTestResultsOutput: """ Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks. Args: - input: - An instance of `ListAutomatedReasoningPolicyTestResultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2051,14 +3359,36 @@ def list_automated_reasoning_policy_test_results( Returns: An instance of `ListAutomatedReasoningPolicyTestResultsOutput`. """ + + def list_automated_reasoning_policy_test_results( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAutomatedReasoningPolicyTestResultsOutput: return self._invoke( - input, _models.LIST_AUTOMATED_REASONING_POLICY_TEST_RESULTS, [], plugins + self._select_input( + _models.LIST_AUTOMATED_REASONING_POLICY_TEST_RESULTS, args, kwargs + ), + _models.LIST_AUTOMATED_REASONING_POLICY_TEST_RESULTS, + [], + plugins, ) + @_overload def list_custom_model_deployments( self, - input: ListCustomModelDeploymentsInput | None = None, + request: _models.ListCustomModelDeploymentsInput + | _models.ListCustomModelDeploymentsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListCustomModelDeploymentsOutput: ... + + @_overload + def list_custom_model_deployments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomModelDeploymentsInputDict], ) -> ListCustomModelDeploymentsOutput: """ Lists custom model deployments in your account. You can filter the @@ -2078,8 +3408,6 @@ def list_custom_model_deployments( - [DeleteCustomModelDeployment](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html) Args: - input: - An instance of `ListCustomModelDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2089,12 +3417,33 @@ def list_custom_model_deployments( Returns: An instance of `ListCustomModelDeploymentsOutput`. """ - return self._invoke(input, _models.LIST_CUSTOM_MODEL_DEPLOYMENTS, [], plugins) + def list_custom_model_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomModelDeploymentsOutput: + return self._invoke( + self._select_input(_models.LIST_CUSTOM_MODEL_DEPLOYMENTS, args, kwargs), + _models.LIST_CUSTOM_MODEL_DEPLOYMENTS, + [], + plugins, + ) + + @_overload + def list_custom_models( + self, + request: _models.ListCustomModelsInput | _models.ListCustomModelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCustomModelsOutput: ... + + @_overload def list_custom_models( self, - input: ListCustomModelsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomModelsInputDict], ) -> ListCustomModelsOutput: """ Returns a list of the custom models that you have created with the @@ -2106,8 +3455,6 @@ def list_custom_models( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListCustomModelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2117,19 +3464,39 @@ def list_custom_models( Returns: An instance of `ListCustomModelsOutput`. """ - return self._invoke(input, _models.LIST_CUSTOM_MODELS, [], plugins) + def list_custom_models( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomModelsOutput: + return self._invoke( + self._select_input(_models.LIST_CUSTOM_MODELS, args, kwargs), + _models.LIST_CUSTOM_MODELS, + [], + plugins, + ) + + @_overload + def list_enforced_guardrails_configuration( + self, + request: _models.ListEnforcedGuardrailsConfigurationInput + | _models.ListEnforcedGuardrailsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEnforcedGuardrailsConfigurationOutput: ... + + @_overload def list_enforced_guardrails_configuration( self, - input: ListEnforcedGuardrailsConfigurationInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEnforcedGuardrailsConfigurationInputDict], ) -> ListEnforcedGuardrailsConfigurationOutput: """ Lists the account-level enforced guardrail configurations. Args: - input: - An instance of `ListEnforcedGuardrailsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2139,21 +3506,40 @@ def list_enforced_guardrails_configuration( Returns: An instance of `ListEnforcedGuardrailsConfigurationOutput`. """ + + def list_enforced_guardrails_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEnforcedGuardrailsConfigurationOutput: return self._invoke( - input, _models.LIST_ENFORCED_GUARDRAILS_CONFIGURATION, [], plugins + self._select_input( + _models.LIST_ENFORCED_GUARDRAILS_CONFIGURATION, args, kwargs + ), + _models.LIST_ENFORCED_GUARDRAILS_CONFIGURATION, + [], + plugins, ) + @_overload + def list_evaluation_jobs( + self, + request: _models.ListEvaluationJobsInput | _models.ListEvaluationJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEvaluationJobsOutput: ... + + @_overload def list_evaluation_jobs( self, - input: ListEvaluationJobsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEvaluationJobsInputDict], ) -> ListEvaluationJobsOutput: """ Lists all existing evaluation jobs. Args: - input: - An instance of `ListEvaluationJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2163,19 +3549,39 @@ def list_evaluation_jobs( Returns: An instance of `ListEvaluationJobsOutput`. """ - return self._invoke(input, _models.LIST_EVALUATION_JOBS, [], plugins) + def list_evaluation_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEvaluationJobsOutput: + return self._invoke( + self._select_input(_models.LIST_EVALUATION_JOBS, args, kwargs), + _models.LIST_EVALUATION_JOBS, + [], + plugins, + ) + + @_overload + def list_foundation_model_agreement_offers( + self, + request: _models.ListFoundationModelAgreementOffersInput + | _models.ListFoundationModelAgreementOffersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFoundationModelAgreementOffersOutput: ... + + @_overload def list_foundation_model_agreement_offers( self, - input: ListFoundationModelAgreementOffersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFoundationModelAgreementOffersInputDict], ) -> ListFoundationModelAgreementOffersOutput: """ Get the offers associated with the specified model. Args: - input: - An instance of `ListFoundationModelAgreementOffersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2185,14 +3591,36 @@ def list_foundation_model_agreement_offers( Returns: An instance of `ListFoundationModelAgreementOffersOutput`. """ + + def list_foundation_model_agreement_offers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFoundationModelAgreementOffersOutput: return self._invoke( - input, _models.LIST_FOUNDATION_MODEL_AGREEMENT_OFFERS, [], plugins + self._select_input( + _models.LIST_FOUNDATION_MODEL_AGREEMENT_OFFERS, args, kwargs + ), + _models.LIST_FOUNDATION_MODEL_AGREEMENT_OFFERS, + [], + plugins, ) + @_overload + def list_foundation_models( + self, + request: _models.ListFoundationModelsInput + | _models.ListFoundationModelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFoundationModelsOutput: ... + + @_overload def list_foundation_models( self, - input: ListFoundationModelsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFoundationModelsInputDict], ) -> ListFoundationModelsOutput: """ Lists Amazon Bedrock foundation models that you can use. You can filter @@ -2203,8 +3631,6 @@ def list_foundation_models( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListFoundationModelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2214,12 +3640,33 @@ def list_foundation_models( Returns: An instance of `ListFoundationModelsOutput`. """ - return self._invoke(input, _models.LIST_FOUNDATION_MODELS, [], plugins) + def list_foundation_models( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFoundationModelsOutput: + return self._invoke( + self._select_input(_models.LIST_FOUNDATION_MODELS, args, kwargs), + _models.LIST_FOUNDATION_MODELS, + [], + plugins, + ) + + @_overload + def list_guardrails( + self, + request: _models.ListGuardrailsInput | _models.ListGuardrailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGuardrailsOutput: ... + + @_overload def list_guardrails( self, - input: ListGuardrailsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGuardrailsInputDict], ) -> ListGuardrailsOutput: """ Lists details about all the guardrails in an account. To list the @@ -2233,8 +3680,6 @@ def list_guardrails( `ListGuardrails` request to see the next batch of results. Args: - input: - An instance of `ListGuardrailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2244,12 +3689,33 @@ def list_guardrails( Returns: An instance of `ListGuardrailsOutput`. """ - return self._invoke(input, _models.LIST_GUARDRAILS, [], plugins) + def list_guardrails( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGuardrailsOutput: + return self._invoke( + self._select_input(_models.LIST_GUARDRAILS, args, kwargs), + _models.LIST_GUARDRAILS, + [], + plugins, + ) + + @_overload + def list_imported_models( + self, + request: _models.ListImportedModelsInput | _models.ListImportedModelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportedModelsOutput: ... + + @_overload def list_imported_models( self, - input: ListImportedModelsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportedModelsInputDict], ) -> ListImportedModelsOutput: """ Returns a list of models you've imported. You can filter the results to @@ -2260,8 +3726,6 @@ def list_imported_models( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListImportedModelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2271,12 +3735,34 @@ def list_imported_models( Returns: An instance of `ListImportedModelsOutput`. """ - return self._invoke(input, _models.LIST_IMPORTED_MODELS, [], plugins) + def list_imported_models( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportedModelsOutput: + return self._invoke( + self._select_input(_models.LIST_IMPORTED_MODELS, args, kwargs), + _models.LIST_IMPORTED_MODELS, + [], + plugins, + ) + + @_overload + def list_inference_profiles( + self, + request: _models.ListInferenceProfilesInput + | _models.ListInferenceProfilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInferenceProfilesOutput: ... + + @_overload def list_inference_profiles( self, - input: ListInferenceProfilesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInferenceProfilesInputDict], ) -> ListInferenceProfilesOutput: """ Returns a list of inference profiles that you can use. For more @@ -2286,8 +3772,6 @@ def list_inference_profiles( in the Amazon Bedrock User Guide. Args: - input: - An instance of `ListInferenceProfilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2297,20 +3781,40 @@ def list_inference_profiles( Returns: An instance of `ListInferenceProfilesOutput`. """ - return self._invoke(input, _models.LIST_INFERENCE_PROFILES, [], plugins) + def list_inference_profiles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInferenceProfilesOutput: + return self._invoke( + self._select_input(_models.LIST_INFERENCE_PROFILES, args, kwargs), + _models.LIST_INFERENCE_PROFILES, + [], + plugins, + ) + + @_overload + def list_marketplace_model_endpoints( + self, + request: _models.ListMarketplaceModelEndpointsInput + | _models.ListMarketplaceModelEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMarketplaceModelEndpointsOutput: ... + + @_overload def list_marketplace_model_endpoints( self, - input: ListMarketplaceModelEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMarketplaceModelEndpointsInputDict], ) -> ListMarketplaceModelEndpointsOutput: """ Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account. Args: - input: - An instance of `ListMarketplaceModelEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2320,14 +3824,33 @@ def list_marketplace_model_endpoints( Returns: An instance of `ListMarketplaceModelEndpointsOutput`. """ + + def list_marketplace_model_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMarketplaceModelEndpointsOutput: return self._invoke( - input, _models.LIST_MARKETPLACE_MODEL_ENDPOINTS, [], plugins + self._select_input(_models.LIST_MARKETPLACE_MODEL_ENDPOINTS, args, kwargs), + _models.LIST_MARKETPLACE_MODEL_ENDPOINTS, + [], + plugins, ) + @_overload def list_model_copy_jobs( self, - input: ListModelCopyJobsInput | None = None, + request: _models.ListModelCopyJobsInput | _models.ListModelCopyJobsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListModelCopyJobsOutput: ... + + @_overload + def list_model_copy_jobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListModelCopyJobsInputDict], ) -> ListModelCopyJobsOutput: """ Returns a list of model copy jobs that you have submitted. You can @@ -2338,8 +3861,6 @@ def list_model_copy_jobs( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListModelCopyJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2349,12 +3870,34 @@ def list_model_copy_jobs( Returns: An instance of `ListModelCopyJobsOutput`. """ - return self._invoke(input, _models.LIST_MODEL_COPY_JOBS, [], plugins) + def list_model_copy_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListModelCopyJobsOutput: + return self._invoke( + self._select_input(_models.LIST_MODEL_COPY_JOBS, args, kwargs), + _models.LIST_MODEL_COPY_JOBS, + [], + plugins, + ) + + @_overload + def list_model_customization_jobs( + self, + request: _models.ListModelCustomizationJobsInput + | _models.ListModelCustomizationJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListModelCustomizationJobsOutput: ... + + @_overload def list_model_customization_jobs( self, - input: ListModelCustomizationJobsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListModelCustomizationJobsInputDict], ) -> ListModelCustomizationJobsOutput: """ Returns a list of model customization jobs that you have submitted. You @@ -2366,8 +3909,6 @@ def list_model_customization_jobs( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListModelCustomizationJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2377,12 +3918,34 @@ def list_model_customization_jobs( Returns: An instance of `ListModelCustomizationJobsOutput`. """ - return self._invoke(input, _models.LIST_MODEL_CUSTOMIZATION_JOBS, [], plugins) + def list_model_customization_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListModelCustomizationJobsOutput: + return self._invoke( + self._select_input(_models.LIST_MODEL_CUSTOMIZATION_JOBS, args, kwargs), + _models.LIST_MODEL_CUSTOMIZATION_JOBS, + [], + plugins, + ) + + @_overload + def list_model_import_jobs( + self, + request: _models.ListModelImportJobsInput + | _models.ListModelImportJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListModelImportJobsOutput: ... + + @_overload def list_model_import_jobs( self, - input: ListModelImportJobsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListModelImportJobsInputDict], ) -> ListModelImportJobsOutput: """ Returns a list of import jobs you've submitted. You can filter the @@ -2393,8 +3956,6 @@ def list_model_import_jobs( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListModelImportJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2404,12 +3965,34 @@ def list_model_import_jobs( Returns: An instance of `ListModelImportJobsOutput`. """ - return self._invoke(input, _models.LIST_MODEL_IMPORT_JOBS, [], plugins) + def list_model_import_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListModelImportJobsOutput: + return self._invoke( + self._select_input(_models.LIST_MODEL_IMPORT_JOBS, args, kwargs), + _models.LIST_MODEL_IMPORT_JOBS, + [], + plugins, + ) + + @_overload + def list_model_invocation_jobs( + self, + request: _models.ListModelInvocationJobsInput + | _models.ListModelInvocationJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListModelInvocationJobsOutput: ... + + @_overload def list_model_invocation_jobs( self, - input: ListModelInvocationJobsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListModelInvocationJobsInputDict], ) -> ListModelInvocationJobsOutput: """ Lists all batch inference jobs in the account. For more information, see @@ -2417,8 +4000,6 @@ def list_model_invocation_jobs( job](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-view.html). Args: - input: - An instance of `ListModelInvocationJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2428,19 +4009,38 @@ def list_model_invocation_jobs( Returns: An instance of `ListModelInvocationJobsOutput`. """ - return self._invoke(input, _models.LIST_MODEL_INVOCATION_JOBS, [], plugins) + def list_model_invocation_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListModelInvocationJobsOutput: + return self._invoke( + self._select_input(_models.LIST_MODEL_INVOCATION_JOBS, args, kwargs), + _models.LIST_MODEL_INVOCATION_JOBS, + [], + plugins, + ) + + @_overload + def list_prompt_routers( + self, + request: _models.ListPromptRoutersInput | _models.ListPromptRoutersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPromptRoutersOutput: ... + + @_overload def list_prompt_routers( self, - input: ListPromptRoutersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPromptRoutersInputDict], ) -> ListPromptRoutersOutput: """ Retrieves a list of prompt routers. Args: - input: - An instance of `ListPromptRoutersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2450,12 +4050,34 @@ def list_prompt_routers( Returns: An instance of `ListPromptRoutersOutput`. """ - return self._invoke(input, _models.LIST_PROMPT_ROUTERS, [], plugins) + def list_prompt_routers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPromptRoutersOutput: + return self._invoke( + self._select_input(_models.LIST_PROMPT_ROUTERS, args, kwargs), + _models.LIST_PROMPT_ROUTERS, + [], + plugins, + ) + + @_overload + def list_provisioned_model_throughputs( + self, + request: _models.ListProvisionedModelThroughputsInput + | _models.ListProvisionedModelThroughputsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListProvisionedModelThroughputsOutput: ... + + @_overload def list_provisioned_model_throughputs( self, - input: ListProvisionedModelThroughputsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListProvisionedModelThroughputsInputDict], ) -> ListProvisionedModelThroughputsOutput: """ Lists the Provisioned Throughputs in the account. For more information, @@ -2465,8 +4087,6 @@ def list_provisioned_model_throughputs( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListProvisionedModelThroughputsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2476,12 +4096,36 @@ def list_provisioned_model_throughputs( Returns: An instance of `ListProvisionedModelThroughputsOutput`. """ + + def list_provisioned_model_throughputs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListProvisionedModelThroughputsOutput: return self._invoke( - input, _models.LIST_PROVISIONED_MODEL_THROUGHPUTS, [], plugins + self._select_input( + _models.LIST_PROVISIONED_MODEL_THROUGHPUTS, args, kwargs + ), + _models.LIST_PROVISIONED_MODEL_THROUGHPUTS, + [], + plugins, ) + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List the tags associated with the specified resource. @@ -2492,8 +4136,6 @@ def list_tags_for_resource( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2503,17 +4145,39 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def put_account_data_retention( + self, + request: _models.PutAccountDataRetentionInput + | _models.PutAccountDataRetentionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountDataRetentionOutput: ... + + @_overload def put_account_data_retention( - self, input: PutAccountDataRetentionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountDataRetentionInputDict], ) -> PutAccountDataRetentionOutput: """ Sets the account-wide data retention mode for Amazon Bedrock. Args: - input: - An instance of `PutAccountDataRetentionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2523,19 +4187,39 @@ def put_account_data_retention( Returns: An instance of `PutAccountDataRetentionOutput`. """ - return self._invoke(input, _models.PUT_ACCOUNT_DATA_RETENTION, [], plugins) + def put_account_data_retention( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountDataRetentionOutput: + return self._invoke( + self._select_input(_models.PUT_ACCOUNT_DATA_RETENTION, args, kwargs), + _models.PUT_ACCOUNT_DATA_RETENTION, + [], + plugins, + ) + + @_overload + def put_enforced_guardrail_configuration( + self, + request: _models.PutEnforcedGuardrailConfigurationInput + | _models.PutEnforcedGuardrailConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutEnforcedGuardrailConfigurationOutput: ... + + @_overload def put_enforced_guardrail_configuration( self, - input: PutEnforcedGuardrailConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutEnforcedGuardrailConfigurationInputDict], ) -> PutEnforcedGuardrailConfigurationOutput: """ Sets the account-level enforced guardrail configuration. Args: - input: - An instance of `PutEnforcedGuardrailConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2545,21 +4229,41 @@ def put_enforced_guardrail_configuration( Returns: An instance of `PutEnforcedGuardrailConfigurationOutput`. """ + + def put_enforced_guardrail_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutEnforcedGuardrailConfigurationOutput: return self._invoke( - input, _models.PUT_ENFORCED_GUARDRAIL_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_ENFORCED_GUARDRAIL_CONFIGURATION, args, kwargs + ), + _models.PUT_ENFORCED_GUARDRAIL_CONFIGURATION, + [], + plugins, ) + @_overload + def put_model_invocation_logging_configuration( + self, + request: _models.PutModelInvocationLoggingConfigurationInput + | _models.PutModelInvocationLoggingConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutModelInvocationLoggingConfigurationOutput: ... + + @_overload def put_model_invocation_logging_configuration( self, - input: PutModelInvocationLoggingConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutModelInvocationLoggingConfigurationInputDict], ) -> PutModelInvocationLoggingConfigurationOutput: """ Set the configuration values for model invocation logging. Args: - input: - An instance of `PutModelInvocationLoggingConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2569,19 +4273,40 @@ def put_model_invocation_logging_configuration( Returns: An instance of `PutModelInvocationLoggingConfigurationOutput`. """ + + def put_model_invocation_logging_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutModelInvocationLoggingConfigurationOutput: return self._invoke( - input, _models.PUT_MODEL_INVOCATION_LOGGING_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_MODEL_INVOCATION_LOGGING_CONFIGURATION, args, kwargs + ), + _models.PUT_MODEL_INVOCATION_LOGGING_CONFIGURATION, + [], + plugins, ) + @_overload + def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Adds a resource policy for a Bedrock resource. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2591,17 +4316,39 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def put_use_case_for_model_access( + self, + request: _models.PutUseCaseForModelAccessInput + | _models.PutUseCaseForModelAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutUseCaseForModelAccessOutput: ... + + @_overload def put_use_case_for_model_access( - self, input: PutUseCaseForModelAccessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutUseCaseForModelAccessInputDict], ) -> PutUseCaseForModelAccessOutput: """ Put usecase for model access. Args: - input: - An instance of `PutUseCaseForModelAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2611,20 +4358,40 @@ def put_use_case_for_model_access( Returns: An instance of `PutUseCaseForModelAccessOutput`. """ - return self._invoke(input, _models.PUT_USE_CASE_FOR_MODEL_ACCESS, [], plugins) + def put_use_case_for_model_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutUseCaseForModelAccessOutput: + return self._invoke( + self._select_input(_models.PUT_USE_CASE_FOR_MODEL_ACCESS, args, kwargs), + _models.PUT_USE_CASE_FOR_MODEL_ACCESS, + [], + plugins, + ) + + @_overload + def register_marketplace_model_endpoint( + self, + request: _models.RegisterMarketplaceModelEndpointInput + | _models.RegisterMarketplaceModelEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterMarketplaceModelEndpointOutput: ... + + @_overload def register_marketplace_model_endpoint( self, - input: RegisterMarketplaceModelEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterMarketplaceModelEndpointInputDict], ) -> RegisterMarketplaceModelEndpointOutput: """ Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs. Args: - input: - An instance of `RegisterMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2634,14 +4401,36 @@ def register_marketplace_model_endpoint( Returns: An instance of `RegisterMarketplaceModelEndpointOutput`. """ + + def register_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterMarketplaceModelEndpointOutput: return self._invoke( - input, _models.REGISTER_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input( + _models.REGISTER_MARKETPLACE_MODEL_ENDPOINT, args, kwargs + ), + _models.REGISTER_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + def start_automated_reasoning_policy_build_workflow( + self, + request: _models.StartAutomatedReasoningPolicyBuildWorkflowInput + | _models.StartAutomatedReasoningPolicyBuildWorkflowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartAutomatedReasoningPolicyBuildWorkflowOutput: ... + + @_overload def start_automated_reasoning_policy_build_workflow( self, - input: StartAutomatedReasoningPolicyBuildWorkflowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartAutomatedReasoningPolicyBuildWorkflowInputDict], ) -> StartAutomatedReasoningPolicyBuildWorkflowOutput: """ Starts a new build workflow for an Automated Reasoning policy. This @@ -2649,8 +4438,6 @@ def start_automated_reasoning_policy_build_workflow( policy rules, variables, and types. Args: - input: - An instance of `StartAutomatedReasoningPolicyBuildWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2660,14 +4447,36 @@ def start_automated_reasoning_policy_build_workflow( Returns: An instance of `StartAutomatedReasoningPolicyBuildWorkflowOutput`. """ + + def start_automated_reasoning_policy_build_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartAutomatedReasoningPolicyBuildWorkflowOutput: return self._invoke( - input, _models.START_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, [], plugins + self._select_input( + _models.START_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, args, kwargs + ), + _models.START_AUTOMATED_REASONING_POLICY_BUILD_WORKFLOW, + [], + plugins, ) + @_overload def start_automated_reasoning_policy_test_workflow( self, - input: StartAutomatedReasoningPolicyTestWorkflowInput, + request: _models.StartAutomatedReasoningPolicyTestWorkflowInput + | _models.StartAutomatedReasoningPolicyTestWorkflowInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> StartAutomatedReasoningPolicyTestWorkflowOutput: ... + + @_overload + def start_automated_reasoning_policy_test_workflow( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartAutomatedReasoningPolicyTestWorkflowInputDict], ) -> StartAutomatedReasoningPolicyTestWorkflowOutput: """ Initiates a test workflow to validate Automated Reasoning policy tests. @@ -2675,8 +4484,6 @@ def start_automated_reasoning_policy_test_workflow( generates validation results. Args: - input: - An instance of `StartAutomatedReasoningPolicyTestWorkflowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2686,21 +4493,41 @@ def start_automated_reasoning_policy_test_workflow( Returns: An instance of `StartAutomatedReasoningPolicyTestWorkflowOutput`. """ + + def start_automated_reasoning_policy_test_workflow( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartAutomatedReasoningPolicyTestWorkflowOutput: return self._invoke( - input, _models.START_AUTOMATED_REASONING_POLICY_TEST_WORKFLOW, [], plugins + self._select_input( + _models.START_AUTOMATED_REASONING_POLICY_TEST_WORKFLOW, args, kwargs + ), + _models.START_AUTOMATED_REASONING_POLICY_TEST_WORKFLOW, + [], + plugins, ) + @_overload + def stop_advanced_prompt_optimization_job( + self, + request: _models.StopAdvancedPromptOptimizationJobInput + | _models.StopAdvancedPromptOptimizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopAdvancedPromptOptimizationJobOutput: ... + + @_overload def stop_advanced_prompt_optimization_job( self, - input: StopAdvancedPromptOptimizationJobInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopAdvancedPromptOptimizationJobInputDict], ) -> StopAdvancedPromptOptimizationJobOutput: """ Stops an advanced prompt optimization job that is in progress. Args: - input: - An instance of `StopAdvancedPromptOptimizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2710,19 +4537,40 @@ def stop_advanced_prompt_optimization_job( Returns: An instance of `StopAdvancedPromptOptimizationJobOutput`. """ + + def stop_advanced_prompt_optimization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopAdvancedPromptOptimizationJobOutput: return self._invoke( - input, _models.STOP_ADVANCED_PROMPT_OPTIMIZATION_JOB, [], plugins + self._select_input( + _models.STOP_ADVANCED_PROMPT_OPTIMIZATION_JOB, args, kwargs + ), + _models.STOP_ADVANCED_PROMPT_OPTIMIZATION_JOB, + [], + plugins, ) + @_overload + def stop_evaluation_job( + self, + request: _models.StopEvaluationJobInput | _models.StopEvaluationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopEvaluationJobOutput: ... + + @_overload def stop_evaluation_job( - self, input: StopEvaluationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopEvaluationJobInputDict], ) -> StopEvaluationJobOutput: """ Stops an evaluation job that is current being created or running. Args: - input: - An instance of `StopEvaluationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2732,10 +4580,34 @@ def stop_evaluation_job( Returns: An instance of `StopEvaluationJobOutput`. """ - return self._invoke(input, _models.STOP_EVALUATION_JOB, [], plugins) + def stop_evaluation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopEvaluationJobOutput: + return self._invoke( + self._select_input(_models.STOP_EVALUATION_JOB, args, kwargs), + _models.STOP_EVALUATION_JOB, + [], + plugins, + ) + + @_overload + def stop_model_customization_job( + self, + request: _models.StopModelCustomizationJobInput + | _models.StopModelCustomizationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopModelCustomizationJobOutput: ... + + @_overload def stop_model_customization_job( - self, input: StopModelCustomizationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopModelCustomizationJobInputDict], ) -> StopModelCustomizationJobOutput: """ Stops an active model customization job. For more information, see @@ -2745,8 +4617,6 @@ def stop_model_customization_job( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `StopModelCustomizationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2756,10 +4626,34 @@ def stop_model_customization_job( Returns: An instance of `StopModelCustomizationJobOutput`. """ - return self._invoke(input, _models.STOP_MODEL_CUSTOMIZATION_JOB, [], plugins) + def stop_model_customization_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopModelCustomizationJobOutput: + return self._invoke( + self._select_input(_models.STOP_MODEL_CUSTOMIZATION_JOB, args, kwargs), + _models.STOP_MODEL_CUSTOMIZATION_JOB, + [], + plugins, + ) + + @_overload + def stop_model_invocation_job( + self, + request: _models.StopModelInvocationJobInput + | _models.StopModelInvocationJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopModelInvocationJobOutput: ... + + @_overload def stop_model_invocation_job( - self, input: StopModelInvocationJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopModelInvocationJobInputDict], ) -> StopModelInvocationJobOutput: """ Stops a batch inference job. You're only charged for tokens that were @@ -2767,8 +4661,6 @@ def stop_model_invocation_job( job](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-stop.html). Args: - input: - An instance of `StopModelInvocationJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2778,10 +4670,33 @@ def stop_model_invocation_job( Returns: An instance of `StopModelInvocationJobOutput`. """ - return self._invoke(input, _models.STOP_MODEL_INVOCATION_JOB, [], plugins) + def stop_model_invocation_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopModelInvocationJobOutput: + return self._invoke( + self._select_input(_models.STOP_MODEL_INVOCATION_JOB, args, kwargs), + _models.STOP_MODEL_INVOCATION_JOB, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associate tags with a resource. For more information, see [Tagging @@ -2790,8 +4705,6 @@ def tag_resource( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2801,10 +4714,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove one or more tags from a resource. For more information, see @@ -2814,8 +4750,6 @@ def untag_resource( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2825,12 +4759,34 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_automated_reasoning_policy( + self, + request: _models.UpdateAutomatedReasoningPolicyInput + | _models.UpdateAutomatedReasoningPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAutomatedReasoningPolicyOutput: ... + + @_overload def update_automated_reasoning_policy( self, - input: UpdateAutomatedReasoningPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAutomatedReasoningPolicyInputDict], ) -> UpdateAutomatedReasoningPolicyOutput: """ Updates an existing Automated Reasoning policy with new rules, @@ -2838,8 +4794,6 @@ def update_automated_reasoning_policy( while preserving the previous version. Args: - input: - An instance of `UpdateAutomatedReasoningPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2849,14 +4803,34 @@ def update_automated_reasoning_policy( Returns: An instance of `UpdateAutomatedReasoningPolicyOutput`. """ + + def update_automated_reasoning_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAutomatedReasoningPolicyOutput: return self._invoke( - input, _models.UPDATE_AUTOMATED_REASONING_POLICY, [], plugins + self._select_input(_models.UPDATE_AUTOMATED_REASONING_POLICY, args, kwargs), + _models.UPDATE_AUTOMATED_REASONING_POLICY, + [], + plugins, ) + @_overload + def update_automated_reasoning_policy_annotations( + self, + request: _models.UpdateAutomatedReasoningPolicyAnnotationsInput + | _models.UpdateAutomatedReasoningPolicyAnnotationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAutomatedReasoningPolicyAnnotationsOutput: ... + + @_overload def update_automated_reasoning_policy_annotations( self, - input: UpdateAutomatedReasoningPolicyAnnotationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAutomatedReasoningPolicyAnnotationsInputDict], ) -> UpdateAutomatedReasoningPolicyAnnotationsOutput: """ Updates the annotations for an Automated Reasoning policy build @@ -2864,8 +4838,6 @@ def update_automated_reasoning_policy_annotations( types before finalizing the policy. Args: - input: - An instance of `UpdateAutomatedReasoningPolicyAnnotationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2875,22 +4847,42 @@ def update_automated_reasoning_policy_annotations( Returns: An instance of `UpdateAutomatedReasoningPolicyAnnotationsOutput`. """ + + def update_automated_reasoning_policy_annotations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAutomatedReasoningPolicyAnnotationsOutput: return self._invoke( - input, _models.UPDATE_AUTOMATED_REASONING_POLICY_ANNOTATIONS, [], plugins + self._select_input( + _models.UPDATE_AUTOMATED_REASONING_POLICY_ANNOTATIONS, args, kwargs + ), + _models.UPDATE_AUTOMATED_REASONING_POLICY_ANNOTATIONS, + [], + plugins, ) + @_overload + def update_automated_reasoning_policy_test_case( + self, + request: _models.UpdateAutomatedReasoningPolicyTestCaseInput + | _models.UpdateAutomatedReasoningPolicyTestCaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAutomatedReasoningPolicyTestCaseOutput: ... + + @_overload def update_automated_reasoning_policy_test_case( self, - input: UpdateAutomatedReasoningPolicyTestCaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAutomatedReasoningPolicyTestCaseInputDict], ) -> UpdateAutomatedReasoningPolicyTestCaseOutput: """ Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold. Args: - input: - An instance of `UpdateAutomatedReasoningPolicyTestCaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2900,22 +4892,42 @@ def update_automated_reasoning_policy_test_case( Returns: An instance of `UpdateAutomatedReasoningPolicyTestCaseOutput`. """ + + def update_automated_reasoning_policy_test_case( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAutomatedReasoningPolicyTestCaseOutput: return self._invoke( - input, _models.UPDATE_AUTOMATED_REASONING_POLICY_TEST_CASE, [], plugins + self._select_input( + _models.UPDATE_AUTOMATED_REASONING_POLICY_TEST_CASE, args, kwargs + ), + _models.UPDATE_AUTOMATED_REASONING_POLICY_TEST_CASE, + [], + plugins, ) + @_overload + def update_custom_model_deployment( + self, + request: _models.UpdateCustomModelDeploymentInput + | _models.UpdateCustomModelDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCustomModelDeploymentOutput: ... + + @_overload def update_custom_model_deployment( self, - input: UpdateCustomModelDeploymentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCustomModelDeploymentInputDict], ) -> UpdateCustomModelDeploymentOutput: """ Updates a custom model deployment with a new custom model. This allows you to deploy updated models without creating new deployment endpoints. Args: - input: - An instance of `UpdateCustomModelDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2925,10 +4937,33 @@ def update_custom_model_deployment( Returns: An instance of `UpdateCustomModelDeploymentOutput`. """ - return self._invoke(input, _models.UPDATE_CUSTOM_MODEL_DEPLOYMENT, [], plugins) + def update_custom_model_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCustomModelDeploymentOutput: + return self._invoke( + self._select_input(_models.UPDATE_CUSTOM_MODEL_DEPLOYMENT, args, kwargs), + _models.UPDATE_CUSTOM_MODEL_DEPLOYMENT, + [], + plugins, + ) + + @_overload + def update_guardrail( + self, + request: _models.UpdateGuardrailInput | _models.UpdateGuardrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGuardrailOutput: ... + + @_overload def update_guardrail( - self, input: UpdateGuardrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGuardrailInputDict], ) -> UpdateGuardrailOutput: """ Updates a guardrail with the values you specify. @@ -2972,8 +5007,6 @@ def update_guardrail( `kmsKeyId` field. Args: - input: - An instance of `UpdateGuardrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2983,20 +5016,40 @@ def update_guardrail( Returns: An instance of `UpdateGuardrailOutput`. """ - return self._invoke(input, _models.UPDATE_GUARDRAIL, [], plugins) + def update_guardrail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGuardrailOutput: + return self._invoke( + self._select_input(_models.UPDATE_GUARDRAIL, args, kwargs), + _models.UPDATE_GUARDRAIL, + [], + plugins, + ) + + @_overload + def update_marketplace_model_endpoint( + self, + request: _models.UpdateMarketplaceModelEndpointInput + | _models.UpdateMarketplaceModelEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMarketplaceModelEndpointOutput: ... + + @_overload def update_marketplace_model_endpoint( self, - input: UpdateMarketplaceModelEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMarketplaceModelEndpointInputDict], ) -> UpdateMarketplaceModelEndpointOutput: """ Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace. Args: - input: - An instance of `UpdateMarketplaceModelEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3006,14 +5059,34 @@ def update_marketplace_model_endpoint( Returns: An instance of `UpdateMarketplaceModelEndpointOutput`. """ + + def update_marketplace_model_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMarketplaceModelEndpointOutput: return self._invoke( - input, _models.UPDATE_MARKETPLACE_MODEL_ENDPOINT, [], plugins + self._select_input(_models.UPDATE_MARKETPLACE_MODEL_ENDPOINT, args, kwargs), + _models.UPDATE_MARKETPLACE_MODEL_ENDPOINT, + [], + plugins, ) + @_overload + def update_provisioned_model_throughput( + self, + request: _models.UpdateProvisionedModelThroughputInput + | _models.UpdateProvisionedModelThroughputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateProvisionedModelThroughputOutput: ... + + @_overload def update_provisioned_model_throughput( self, - input: UpdateProvisionedModelThroughputInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateProvisionedModelThroughputInputDict], ) -> UpdateProvisionedModelThroughputOutput: """ Updates the name or associated model for a Provisioned Throughput. For @@ -3023,8 +5096,6 @@ def update_provisioned_model_throughput( Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html). Args: - input: - An instance of `UpdateProvisionedModelThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3034,8 +5105,17 @@ def update_provisioned_model_throughput( Returns: An instance of `UpdateProvisionedModelThroughputOutput`. """ + + def update_provisioned_model_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateProvisionedModelThroughputOutput: return self._invoke( - input, _models.UPDATE_PROVISIONED_MODEL_THROUGHPUT, [], plugins + self._select_input( + _models.UPDATE_PROVISIONED_MODEL_THROUGHPUT, args, kwargs + ), + _models.UPDATE_PROVISIONED_MODEL_THROUGHPUT, + [], + plugins, ) def _new_config(self) -> BedrockConfig: diff --git a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/models.pyi b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/models.pyi index c3e94eaf1..a36946224 100644 --- a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/models.pyi +++ b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/models.pyi @@ -10,22 +10,29 @@ from smithy_core.serializers import ShapeSerializer from ._private.models_0 import ( AccessDeniedException as AccessDeniedException, AccountEnforcedGuardrailInferenceInputConfiguration as AccountEnforcedGuardrailInferenceInputConfiguration, + AccountEnforcedGuardrailInferenceInputConfigurationDict as AccountEnforcedGuardrailInferenceInputConfigurationDict, AccountEnforcedGuardrailOutputConfiguration as AccountEnforcedGuardrailOutputConfiguration, AdvancedPromptOptimizationInputConfig as AdvancedPromptOptimizationInputConfig, + AdvancedPromptOptimizationInputConfigDict as AdvancedPromptOptimizationInputConfigDict, AdvancedPromptOptimizationJobStatus as AdvancedPromptOptimizationJobStatus, AdvancedPromptOptimizationJobSummary as AdvancedPromptOptimizationJobSummary, AdvancedPromptOptimizationOutputConfig as AdvancedPromptOptimizationOutputConfig, + AdvancedPromptOptimizationOutputConfigDict as AdvancedPromptOptimizationOutputConfigDict, AgreementAvailability as AgreementAvailability, AgreementStatus as AgreementStatus, ApplicationType as ApplicationType, AttributeType as AttributeType, AuthorizationStatus as AuthorizationStatus, AutomatedEvaluationConfig as AutomatedEvaluationConfig, + AutomatedEvaluationConfigDict as AutomatedEvaluationConfigDict, AutomatedEvaluationCustomMetricConfig as AutomatedEvaluationCustomMetricConfig, + AutomatedEvaluationCustomMetricConfigDict as AutomatedEvaluationCustomMetricConfigDict, AutomatedEvaluationCustomMetricSourceCustomMetricDefinition as AutomatedEvaluationCustomMetricSourceCustomMetricDefinition, AutomatedEvaluationCustomMetricSourceUnknown as AutomatedEvaluationCustomMetricSourceUnknown, AutomatedEvaluationCustomMetricSource as AutomatedEvaluationCustomMetricSource, _AutomatedEvaluationCustomMetricSourceDeserializer as _AutomatedEvaluationCustomMetricSourceDeserializer, + AutomatedEvaluationCustomMetricSourceCustomMetricDefinitionDict as AutomatedEvaluationCustomMetricSourceCustomMetricDefinitionDict, + AutomatedEvaluationCustomMetricSourceDict as AutomatedEvaluationCustomMetricSourceDict, AutomatedReasoningCheckFindingValid as AutomatedReasoningCheckFindingValid, AutomatedReasoningCheckFindingInvalid as AutomatedReasoningCheckFindingInvalid, AutomatedReasoningCheckFindingSatisfiable as AutomatedReasoningCheckFindingSatisfiable, @@ -53,12 +60,17 @@ from ._private.models_0 import ( AutomatedReasoningCheckValidFinding as AutomatedReasoningCheckValidFinding, AutomatedReasoningLogicStatement as AutomatedReasoningLogicStatement, AutomatedReasoningPolicyAddRuleAnnotation as AutomatedReasoningPolicyAddRuleAnnotation, + AutomatedReasoningPolicyAddRuleAnnotationDict as AutomatedReasoningPolicyAddRuleAnnotationDict, AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation as AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation, + AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotationDict as AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotationDict, AutomatedReasoningPolicyAddRuleMutation as AutomatedReasoningPolicyAddRuleMutation, AutomatedReasoningPolicyAddTypeAnnotation as AutomatedReasoningPolicyAddTypeAnnotation, + AutomatedReasoningPolicyAddTypeAnnotationDict as AutomatedReasoningPolicyAddTypeAnnotationDict, AutomatedReasoningPolicyAddTypeMutation as AutomatedReasoningPolicyAddTypeMutation, AutomatedReasoningPolicyAddTypeValue as AutomatedReasoningPolicyAddTypeValue, + AutomatedReasoningPolicyAddTypeValueDict as AutomatedReasoningPolicyAddTypeValueDict, AutomatedReasoningPolicyAddVariableAnnotation as AutomatedReasoningPolicyAddVariableAnnotation, + AutomatedReasoningPolicyAddVariableAnnotationDict as AutomatedReasoningPolicyAddVariableAnnotationDict, AutomatedReasoningPolicyAddVariableMutation as AutomatedReasoningPolicyAddVariableMutation, AutomatedReasoningPolicyAnnotatedChunk as AutomatedReasoningPolicyAnnotatedChunk, AutomatedReasoningPolicyAnnotatedContentLine as AutomatedReasoningPolicyAnnotatedContentLine, @@ -82,6 +94,20 @@ from ._private.models_0 import ( AutomatedReasoningPolicyAnnotationUnknown as AutomatedReasoningPolicyAnnotationUnknown, AutomatedReasoningPolicyAnnotation as AutomatedReasoningPolicyAnnotation, _AutomatedReasoningPolicyAnnotationDeserializer as _AutomatedReasoningPolicyAnnotationDeserializer, + AutomatedReasoningPolicyAnnotationAddTypeDict as AutomatedReasoningPolicyAnnotationAddTypeDict, + AutomatedReasoningPolicyAnnotationUpdateTypeDict as AutomatedReasoningPolicyAnnotationUpdateTypeDict, + AutomatedReasoningPolicyAnnotationDeleteTypeDict as AutomatedReasoningPolicyAnnotationDeleteTypeDict, + AutomatedReasoningPolicyAnnotationAddVariableDict as AutomatedReasoningPolicyAnnotationAddVariableDict, + AutomatedReasoningPolicyAnnotationUpdateVariableDict as AutomatedReasoningPolicyAnnotationUpdateVariableDict, + AutomatedReasoningPolicyAnnotationDeleteVariableDict as AutomatedReasoningPolicyAnnotationDeleteVariableDict, + AutomatedReasoningPolicyAnnotationAddRuleDict as AutomatedReasoningPolicyAnnotationAddRuleDict, + AutomatedReasoningPolicyAnnotationUpdateRuleDict as AutomatedReasoningPolicyAnnotationUpdateRuleDict, + AutomatedReasoningPolicyAnnotationDeleteRuleDict as AutomatedReasoningPolicyAnnotationDeleteRuleDict, + AutomatedReasoningPolicyAnnotationAddRuleFromNaturalLanguageDict as AutomatedReasoningPolicyAnnotationAddRuleFromNaturalLanguageDict, + AutomatedReasoningPolicyAnnotationUpdateFromRulesFeedbackDict as AutomatedReasoningPolicyAnnotationUpdateFromRulesFeedbackDict, + AutomatedReasoningPolicyAnnotationUpdateFromScenarioFeedbackDict as AutomatedReasoningPolicyAnnotationUpdateFromScenarioFeedbackDict, + AutomatedReasoningPolicyAnnotationIngestContentDict as AutomatedReasoningPolicyAnnotationIngestContentDict, + AutomatedReasoningPolicyAnnotationDict as AutomatedReasoningPolicyAnnotationDict, AutomatedReasoningPolicyAnnotationStatus as AutomatedReasoningPolicyAnnotationStatus, AutomatedReasoningPolicyAtomicStatement as AutomatedReasoningPolicyAtomicStatement, AutomatedReasoningPolicyBuildDocumentContentType as AutomatedReasoningPolicyBuildDocumentContentType, @@ -110,12 +136,16 @@ from ._private.models_0 import ( _AutomatedReasoningPolicyBuildStepContextDeserializer as _AutomatedReasoningPolicyBuildStepContextDeserializer, AutomatedReasoningPolicyBuildStepMessage as AutomatedReasoningPolicyBuildStepMessage, AutomatedReasoningPolicyBuildWorkflowDocument as AutomatedReasoningPolicyBuildWorkflowDocument, + AutomatedReasoningPolicyBuildWorkflowDocumentDict as AutomatedReasoningPolicyBuildWorkflowDocumentDict, AutomatedReasoningPolicyBuildWorkflowRepairContent as AutomatedReasoningPolicyBuildWorkflowRepairContent, + AutomatedReasoningPolicyBuildWorkflowRepairContentDict as AutomatedReasoningPolicyBuildWorkflowRepairContentDict, AutomatedReasoningPolicyBuildWorkflowSource as AutomatedReasoningPolicyBuildWorkflowSource, + AutomatedReasoningPolicyBuildWorkflowSourceDict as AutomatedReasoningPolicyBuildWorkflowSourceDict, AutomatedReasoningPolicyBuildWorkflowStatus as AutomatedReasoningPolicyBuildWorkflowStatus, AutomatedReasoningPolicyBuildWorkflowSummary as AutomatedReasoningPolicyBuildWorkflowSummary, AutomatedReasoningPolicyBuildWorkflowType as AutomatedReasoningPolicyBuildWorkflowType, AutomatedReasoningPolicyDefinition as AutomatedReasoningPolicyDefinition, + AutomatedReasoningPolicyDefinitionDict as AutomatedReasoningPolicyDefinitionDict, AutomatedReasoningPolicyDefinitionElementPolicyDefinitionVariable as AutomatedReasoningPolicyDefinitionElementPolicyDefinitionVariable, AutomatedReasoningPolicyDefinitionElementPolicyDefinitionType as AutomatedReasoningPolicyDefinitionElementPolicyDefinitionType, AutomatedReasoningPolicyDefinitionElementPolicyDefinitionRule as AutomatedReasoningPolicyDefinitionElementPolicyDefinitionRule, @@ -124,16 +154,24 @@ from ._private.models_0 import ( _AutomatedReasoningPolicyDefinitionElementDeserializer as _AutomatedReasoningPolicyDefinitionElementDeserializer, AutomatedReasoningPolicyDefinitionQualityReport as AutomatedReasoningPolicyDefinitionQualityReport, AutomatedReasoningPolicyDefinitionRule as AutomatedReasoningPolicyDefinitionRule, + AutomatedReasoningPolicyDefinitionRuleDict as AutomatedReasoningPolicyDefinitionRuleDict, AutomatedReasoningPolicyDefinitionType as AutomatedReasoningPolicyDefinitionType, + AutomatedReasoningPolicyDefinitionTypeDict as AutomatedReasoningPolicyDefinitionTypeDict, AutomatedReasoningPolicyDefinitionTypeValue as AutomatedReasoningPolicyDefinitionTypeValue, + AutomatedReasoningPolicyDefinitionTypeValueDict as AutomatedReasoningPolicyDefinitionTypeValueDict, AutomatedReasoningPolicyDefinitionTypeValuePair as AutomatedReasoningPolicyDefinitionTypeValuePair, AutomatedReasoningPolicyDefinitionVariable as AutomatedReasoningPolicyDefinitionVariable, + AutomatedReasoningPolicyDefinitionVariableDict as AutomatedReasoningPolicyDefinitionVariableDict, AutomatedReasoningPolicyDeleteRuleAnnotation as AutomatedReasoningPolicyDeleteRuleAnnotation, + AutomatedReasoningPolicyDeleteRuleAnnotationDict as AutomatedReasoningPolicyDeleteRuleAnnotationDict, AutomatedReasoningPolicyDeleteRuleMutation as AutomatedReasoningPolicyDeleteRuleMutation, AutomatedReasoningPolicyDeleteTypeAnnotation as AutomatedReasoningPolicyDeleteTypeAnnotation, + AutomatedReasoningPolicyDeleteTypeAnnotationDict as AutomatedReasoningPolicyDeleteTypeAnnotationDict, AutomatedReasoningPolicyDeleteTypeMutation as AutomatedReasoningPolicyDeleteTypeMutation, AutomatedReasoningPolicyDeleteTypeValue as AutomatedReasoningPolicyDeleteTypeValue, + AutomatedReasoningPolicyDeleteTypeValueDict as AutomatedReasoningPolicyDeleteTypeValueDict, AutomatedReasoningPolicyDeleteVariableAnnotation as AutomatedReasoningPolicyDeleteVariableAnnotation, + AutomatedReasoningPolicyDeleteVariableAnnotationDict as AutomatedReasoningPolicyDeleteVariableAnnotationDict, AutomatedReasoningPolicyDeleteVariableMutation as AutomatedReasoningPolicyDeleteVariableMutation, AutomatedReasoningPolicyDisjointRuleSet as AutomatedReasoningPolicyDisjointRuleSet, AutomatedReasoningPolicyFidelityReport as AutomatedReasoningPolicyFidelityReport, @@ -143,8 +181,12 @@ from ._private.models_0 import ( AutomatedReasoningPolicyGenerateFidelityReportContentUnknown as AutomatedReasoningPolicyGenerateFidelityReportContentUnknown, AutomatedReasoningPolicyGenerateFidelityReportContent as AutomatedReasoningPolicyGenerateFidelityReportContent, _AutomatedReasoningPolicyGenerateFidelityReportContentDeserializer as _AutomatedReasoningPolicyGenerateFidelityReportContentDeserializer, + AutomatedReasoningPolicyGenerateFidelityReportContentDocumentsDict as AutomatedReasoningPolicyGenerateFidelityReportContentDocumentsDict, + AutomatedReasoningPolicyGenerateFidelityReportContentDict as AutomatedReasoningPolicyGenerateFidelityReportContentDict, AutomatedReasoningPolicyIngestContentAnnotation as AutomatedReasoningPolicyIngestContentAnnotation, + AutomatedReasoningPolicyIngestContentAnnotationDict as AutomatedReasoningPolicyIngestContentAnnotationDict, AutomatedReasoningPolicyIterativeRefinementContent as AutomatedReasoningPolicyIterativeRefinementContent, + AutomatedReasoningPolicyIterativeRefinementContentDict as AutomatedReasoningPolicyIterativeRefinementContentDict, AutomatedReasoningPolicyMutationAddType as AutomatedReasoningPolicyMutationAddType, AutomatedReasoningPolicyMutationUpdateType as AutomatedReasoningPolicyMutationUpdateType, AutomatedReasoningPolicyMutationDeleteType as AutomatedReasoningPolicyMutationDeleteType, @@ -176,14 +218,24 @@ from ._private.models_0 import ( AutomatedReasoningPolicyTypeValueAnnotationUnknown as AutomatedReasoningPolicyTypeValueAnnotationUnknown, AutomatedReasoningPolicyTypeValueAnnotation as AutomatedReasoningPolicyTypeValueAnnotation, _AutomatedReasoningPolicyTypeValueAnnotationDeserializer as _AutomatedReasoningPolicyTypeValueAnnotationDeserializer, + AutomatedReasoningPolicyTypeValueAnnotationAddTypeValueDict as AutomatedReasoningPolicyTypeValueAnnotationAddTypeValueDict, + AutomatedReasoningPolicyTypeValueAnnotationUpdateTypeValueDict as AutomatedReasoningPolicyTypeValueAnnotationUpdateTypeValueDict, + AutomatedReasoningPolicyTypeValueAnnotationDeleteTypeValueDict as AutomatedReasoningPolicyTypeValueAnnotationDeleteTypeValueDict, + AutomatedReasoningPolicyTypeValueAnnotationDict as AutomatedReasoningPolicyTypeValueAnnotationDict, AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation as AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation, + AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotationDict as AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotationDict, AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation as AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation, + AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotationDict as AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotationDict, AutomatedReasoningPolicyUpdateRuleAnnotation as AutomatedReasoningPolicyUpdateRuleAnnotation, + AutomatedReasoningPolicyUpdateRuleAnnotationDict as AutomatedReasoningPolicyUpdateRuleAnnotationDict, AutomatedReasoningPolicyUpdateRuleMutation as AutomatedReasoningPolicyUpdateRuleMutation, AutomatedReasoningPolicyUpdateTypeAnnotation as AutomatedReasoningPolicyUpdateTypeAnnotation, + AutomatedReasoningPolicyUpdateTypeAnnotationDict as AutomatedReasoningPolicyUpdateTypeAnnotationDict, AutomatedReasoningPolicyUpdateTypeMutation as AutomatedReasoningPolicyUpdateTypeMutation, AutomatedReasoningPolicyUpdateTypeValue as AutomatedReasoningPolicyUpdateTypeValue, + AutomatedReasoningPolicyUpdateTypeValueDict as AutomatedReasoningPolicyUpdateTypeValueDict, AutomatedReasoningPolicyUpdateVariableAnnotation as AutomatedReasoningPolicyUpdateVariableAnnotation, + AutomatedReasoningPolicyUpdateVariableAnnotationDict as AutomatedReasoningPolicyUpdateVariableAnnotationDict, AutomatedReasoningPolicyUpdateVariableMutation as AutomatedReasoningPolicyUpdateVariableMutation, AutomatedReasoningPolicyVariableReport as AutomatedReasoningPolicyVariableReport, AutomatedReasoningPolicyWorkflowTypeContentDocuments as AutomatedReasoningPolicyWorkflowTypeContentDocuments, @@ -193,70 +245,107 @@ from ._private.models_0 import ( AutomatedReasoningPolicyWorkflowTypeContentUnknown as AutomatedReasoningPolicyWorkflowTypeContentUnknown, AutomatedReasoningPolicyWorkflowTypeContent as AutomatedReasoningPolicyWorkflowTypeContent, _AutomatedReasoningPolicyWorkflowTypeContentDeserializer as _AutomatedReasoningPolicyWorkflowTypeContentDeserializer, + AutomatedReasoningPolicyWorkflowTypeContentDocumentsDict as AutomatedReasoningPolicyWorkflowTypeContentDocumentsDict, + AutomatedReasoningPolicyWorkflowTypeContentPolicyRepairAssetsDict as AutomatedReasoningPolicyWorkflowTypeContentPolicyRepairAssetsDict, + AutomatedReasoningPolicyWorkflowTypeContentGenerateFidelityReportContentDict as AutomatedReasoningPolicyWorkflowTypeContentGenerateFidelityReportContentDict, + AutomatedReasoningPolicyWorkflowTypeContentIterativeRefinementContentDict as AutomatedReasoningPolicyWorkflowTypeContentIterativeRefinementContentDict, + AutomatedReasoningPolicyWorkflowTypeContentDict as AutomatedReasoningPolicyWorkflowTypeContentDict, BatchDeleteAdvancedPromptOptimizationJobError as BatchDeleteAdvancedPromptOptimizationJobError, BatchDeleteAdvancedPromptOptimizationJobInput as BatchDeleteAdvancedPromptOptimizationJobInput, + BatchDeleteAdvancedPromptOptimizationJobInputDict as BatchDeleteAdvancedPromptOptimizationJobInputDict, BatchDeleteAdvancedPromptOptimizationJobItem as BatchDeleteAdvancedPromptOptimizationJobItem, BatchDeleteAdvancedPromptOptimizationJobOutput as BatchDeleteAdvancedPromptOptimizationJobOutput, BatchDeleteEvaluationJobError as BatchDeleteEvaluationJobError, BatchDeleteEvaluationJobInput as BatchDeleteEvaluationJobInput, + BatchDeleteEvaluationJobInputDict as BatchDeleteEvaluationJobInputDict, BatchDeleteEvaluationJobItem as BatchDeleteEvaluationJobItem, BatchDeleteEvaluationJobOutput as BatchDeleteEvaluationJobOutput, BedrockEvaluatorModel as BedrockEvaluatorModel, + BedrockEvaluatorModelDict as BedrockEvaluatorModelDict, ByteContentDoc as ByteContentDoc, + ByteContentDocDict as ByteContentDocDict, CancelAutomatedReasoningPolicyBuildWorkflowInput as CancelAutomatedReasoningPolicyBuildWorkflowInput, + CancelAutomatedReasoningPolicyBuildWorkflowInputDict as CancelAutomatedReasoningPolicyBuildWorkflowInputDict, CancelAutomatedReasoningPolicyBuildWorkflowOutput as CancelAutomatedReasoningPolicyBuildWorkflowOutput, CloudWatchConfig as CloudWatchConfig, + CloudWatchConfigDict as CloudWatchConfigDict, CommitmentDuration as CommitmentDuration, ConflictException as ConflictException, CreateAdvancedPromptOptimizationJobInput as CreateAdvancedPromptOptimizationJobInput, + CreateAdvancedPromptOptimizationJobInputDict as CreateAdvancedPromptOptimizationJobInputDict, CreateAdvancedPromptOptimizationJobOutput as CreateAdvancedPromptOptimizationJobOutput, CreateAutomatedReasoningPolicyInput as CreateAutomatedReasoningPolicyInput, + CreateAutomatedReasoningPolicyInputDict as CreateAutomatedReasoningPolicyInputDict, CreateAutomatedReasoningPolicyOutput as CreateAutomatedReasoningPolicyOutput, CreateAutomatedReasoningPolicyTestCaseInput as CreateAutomatedReasoningPolicyTestCaseInput, + CreateAutomatedReasoningPolicyTestCaseInputDict as CreateAutomatedReasoningPolicyTestCaseInputDict, CreateAutomatedReasoningPolicyTestCaseOutput as CreateAutomatedReasoningPolicyTestCaseOutput, CreateAutomatedReasoningPolicyVersionInput as CreateAutomatedReasoningPolicyVersionInput, + CreateAutomatedReasoningPolicyVersionInputDict as CreateAutomatedReasoningPolicyVersionInputDict, CreateAutomatedReasoningPolicyVersionOutput as CreateAutomatedReasoningPolicyVersionOutput, CreateCustomModelDeploymentInput as CreateCustomModelDeploymentInput, + CreateCustomModelDeploymentInputDict as CreateCustomModelDeploymentInputDict, CreateCustomModelDeploymentOutput as CreateCustomModelDeploymentOutput, CreateCustomModelInput as CreateCustomModelInput, + CreateCustomModelInputDict as CreateCustomModelInputDict, CreateCustomModelOutput as CreateCustomModelOutput, CreateEvaluationJobInput as CreateEvaluationJobInput, + CreateEvaluationJobInputDict as CreateEvaluationJobInputDict, CreateEvaluationJobOutput as CreateEvaluationJobOutput, CreateFoundationModelAgreementInput as CreateFoundationModelAgreementInput, + CreateFoundationModelAgreementInputDict as CreateFoundationModelAgreementInputDict, CreateFoundationModelAgreementOutput as CreateFoundationModelAgreementOutput, CreateGuardrailInput as CreateGuardrailInput, + CreateGuardrailInputDict as CreateGuardrailInputDict, CreateGuardrailOutput as CreateGuardrailOutput, CreateGuardrailVersionInput as CreateGuardrailVersionInput, + CreateGuardrailVersionInputDict as CreateGuardrailVersionInputDict, CreateGuardrailVersionOutput as CreateGuardrailVersionOutput, CreateInferenceProfileInput as CreateInferenceProfileInput, + CreateInferenceProfileInputDict as CreateInferenceProfileInputDict, CreateInferenceProfileOutput as CreateInferenceProfileOutput, CreateMarketplaceModelEndpointInput as CreateMarketplaceModelEndpointInput, + CreateMarketplaceModelEndpointInputDict as CreateMarketplaceModelEndpointInputDict, CreateMarketplaceModelEndpointOutput as CreateMarketplaceModelEndpointOutput, CreateModelCopyJobInput as CreateModelCopyJobInput, + CreateModelCopyJobInputDict as CreateModelCopyJobInputDict, CreateModelCopyJobOutput as CreateModelCopyJobOutput, CreateModelCustomizationJobInput as CreateModelCustomizationJobInput, + CreateModelCustomizationJobInputDict as CreateModelCustomizationJobInputDict, CreateModelCustomizationJobOutput as CreateModelCustomizationJobOutput, CreateModelImportJobInput as CreateModelImportJobInput, + CreateModelImportJobInputDict as CreateModelImportJobInputDict, CreateModelImportJobOutput as CreateModelImportJobOutput, CreateModelInvocationJobInput as CreateModelInvocationJobInput, + CreateModelInvocationJobInputDict as CreateModelInvocationJobInputDict, CreateModelInvocationJobOutput as CreateModelInvocationJobOutput, CreatePromptRouterInput as CreatePromptRouterInput, + CreatePromptRouterInputDict as CreatePromptRouterInputDict, CreatePromptRouterOutput as CreatePromptRouterOutput, CreateProvisionedModelThroughputInput as CreateProvisionedModelThroughputInput, + CreateProvisionedModelThroughputInputDict as CreateProvisionedModelThroughputInputDict, CreateProvisionedModelThroughputOutput as CreateProvisionedModelThroughputOutput, CustomizationConfigDistillationConfig as CustomizationConfigDistillationConfig, CustomizationConfigRftConfig as CustomizationConfigRftConfig, CustomizationConfigUnknown as CustomizationConfigUnknown, CustomizationConfig as CustomizationConfig, _CustomizationConfigDeserializer as _CustomizationConfigDeserializer, + CustomizationConfigDistillationConfigDict as CustomizationConfigDistillationConfigDict, + CustomizationConfigRftConfigDict as CustomizationConfigRftConfigDict, + CustomizationConfigDict as CustomizationConfigDict, CustomizationType as CustomizationType, CustomMetricBedrockEvaluatorModel as CustomMetricBedrockEvaluatorModel, + CustomMetricBedrockEvaluatorModelDict as CustomMetricBedrockEvaluatorModelDict, CustomMetricDefinition as CustomMetricDefinition, + CustomMetricDefinitionDict as CustomMetricDefinitionDict, CustomMetricEvaluatorModelConfig as CustomMetricEvaluatorModelConfig, + CustomMetricEvaluatorModelConfigDict as CustomMetricEvaluatorModelConfigDict, CustomModelDataSourceModelPackageArnDataSource as CustomModelDataSourceModelPackageArnDataSource, CustomModelDataSourceUnknown as CustomModelDataSourceUnknown, CustomModelDataSource as CustomModelDataSource, _CustomModelDataSourceDeserializer as _CustomModelDataSourceDeserializer, + CustomModelDataSourceModelPackageArnDataSourceDict as CustomModelDataSourceModelPackageArnDataSourceDict, + CustomModelDataSourceDict as CustomModelDataSourceDict, CustomModelDeploymentStatus as CustomModelDeploymentStatus, CustomModelDeploymentSummary as CustomModelDeploymentSummary, CustomModelDeploymentUpdateDetails as CustomModelDeploymentUpdateDetails, @@ -266,61 +355,91 @@ from ._private.models_0 import ( DataProcessingDetails as DataProcessingDetails, DataRetentionMode as DataRetentionMode, DeleteAutomatedReasoningPolicyBuildWorkflowInput as DeleteAutomatedReasoningPolicyBuildWorkflowInput, + DeleteAutomatedReasoningPolicyBuildWorkflowInputDict as DeleteAutomatedReasoningPolicyBuildWorkflowInputDict, DeleteAutomatedReasoningPolicyBuildWorkflowOutput as DeleteAutomatedReasoningPolicyBuildWorkflowOutput, DeleteAutomatedReasoningPolicyInput as DeleteAutomatedReasoningPolicyInput, + DeleteAutomatedReasoningPolicyInputDict as DeleteAutomatedReasoningPolicyInputDict, DeleteAutomatedReasoningPolicyOutput as DeleteAutomatedReasoningPolicyOutput, DeleteAutomatedReasoningPolicyTestCaseInput as DeleteAutomatedReasoningPolicyTestCaseInput, + DeleteAutomatedReasoningPolicyTestCaseInputDict as DeleteAutomatedReasoningPolicyTestCaseInputDict, DeleteAutomatedReasoningPolicyTestCaseOutput as DeleteAutomatedReasoningPolicyTestCaseOutput, DeleteCustomModelDeploymentInput as DeleteCustomModelDeploymentInput, + DeleteCustomModelDeploymentInputDict as DeleteCustomModelDeploymentInputDict, DeleteCustomModelDeploymentOutput as DeleteCustomModelDeploymentOutput, DeleteCustomModelInput as DeleteCustomModelInput, + DeleteCustomModelInputDict as DeleteCustomModelInputDict, DeleteCustomModelOutput as DeleteCustomModelOutput, DeleteEnforcedGuardrailConfigurationInput as DeleteEnforcedGuardrailConfigurationInput, + DeleteEnforcedGuardrailConfigurationInputDict as DeleteEnforcedGuardrailConfigurationInputDict, DeleteEnforcedGuardrailConfigurationOutput as DeleteEnforcedGuardrailConfigurationOutput, DeleteFoundationModelAgreementInput as DeleteFoundationModelAgreementInput, + DeleteFoundationModelAgreementInputDict as DeleteFoundationModelAgreementInputDict, DeleteFoundationModelAgreementOutput as DeleteFoundationModelAgreementOutput, DeleteGuardrailInput as DeleteGuardrailInput, + DeleteGuardrailInputDict as DeleteGuardrailInputDict, DeleteGuardrailOutput as DeleteGuardrailOutput, DeleteImportedModelInput as DeleteImportedModelInput, + DeleteImportedModelInputDict as DeleteImportedModelInputDict, DeleteImportedModelOutput as DeleteImportedModelOutput, DeleteInferenceProfileInput as DeleteInferenceProfileInput, + DeleteInferenceProfileInputDict as DeleteInferenceProfileInputDict, DeleteInferenceProfileOutput as DeleteInferenceProfileOutput, DeleteMarketplaceModelEndpointInput as DeleteMarketplaceModelEndpointInput, + DeleteMarketplaceModelEndpointInputDict as DeleteMarketplaceModelEndpointInputDict, DeleteMarketplaceModelEndpointOutput as DeleteMarketplaceModelEndpointOutput, DeleteModelInvocationLoggingConfigurationInput as DeleteModelInvocationLoggingConfigurationInput, + DeleteModelInvocationLoggingConfigurationInputDict as DeleteModelInvocationLoggingConfigurationInputDict, DeleteModelInvocationLoggingConfigurationOutput as DeleteModelInvocationLoggingConfigurationOutput, DeletePromptRouterInput as DeletePromptRouterInput, + DeletePromptRouterInputDict as DeletePromptRouterInputDict, DeletePromptRouterOutput as DeletePromptRouterOutput, DeleteProvisionedModelThroughputInput as DeleteProvisionedModelThroughputInput, + DeleteProvisionedModelThroughputInputDict as DeleteProvisionedModelThroughputInputDict, DeleteProvisionedModelThroughputOutput as DeleteProvisionedModelThroughputOutput, DeleteResourcePolicyInput as DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict as DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput as DeleteResourcePolicyOutput, DeregisterMarketplaceModelEndpointInput as DeregisterMarketplaceModelEndpointInput, + DeregisterMarketplaceModelEndpointInputDict as DeregisterMarketplaceModelEndpointInputDict, DeregisterMarketplaceModelEndpointOutput as DeregisterMarketplaceModelEndpointOutput, DimensionalPriceRate as DimensionalPriceRate, DistillationConfig as DistillationConfig, + DistillationConfigDict as DistillationConfigDict, EndpointConfigSageMaker as EndpointConfigSageMaker, EndpointConfigUnknown as EndpointConfigUnknown, EndpointConfig as EndpointConfig, _EndpointConfigDeserializer as _EndpointConfigDeserializer, + EndpointConfigSageMakerDict as EndpointConfigSageMakerDict, + EndpointConfigDict as EndpointConfigDict, EntitlementAvailability as EntitlementAvailability, EvaluationBedrockModel as EvaluationBedrockModel, + EvaluationBedrockModelDict as EvaluationBedrockModelDict, EvaluationConfigAutomated as EvaluationConfigAutomated, EvaluationConfigHuman as EvaluationConfigHuman, EvaluationConfigUnknown as EvaluationConfigUnknown, EvaluationConfig as EvaluationConfig, _EvaluationConfigDeserializer as _EvaluationConfigDeserializer, + EvaluationConfigAutomatedDict as EvaluationConfigAutomatedDict, + EvaluationConfigHumanDict as EvaluationConfigHumanDict, + EvaluationConfigDict as EvaluationConfigDict, EvaluationDataset as EvaluationDataset, + EvaluationDatasetDict as EvaluationDatasetDict, EvaluationDatasetLocationS3Uri as EvaluationDatasetLocationS3Uri, EvaluationDatasetLocationUnknown as EvaluationDatasetLocationUnknown, EvaluationDatasetLocation as EvaluationDatasetLocation, _EvaluationDatasetLocationDeserializer as _EvaluationDatasetLocationDeserializer, + EvaluationDatasetLocationS3UriDict as EvaluationDatasetLocationS3UriDict, + EvaluationDatasetLocationDict as EvaluationDatasetLocationDict, EvaluationDatasetMetricConfig as EvaluationDatasetMetricConfig, + EvaluationDatasetMetricConfigDict as EvaluationDatasetMetricConfigDict, EvaluationInferenceConfigModels as EvaluationInferenceConfigModels, EvaluationInferenceConfigRagConfigs as EvaluationInferenceConfigRagConfigs, EvaluationInferenceConfigUnknown as EvaluationInferenceConfigUnknown, EvaluationInferenceConfig as EvaluationInferenceConfig, _EvaluationInferenceConfigDeserializer as _EvaluationInferenceConfigDeserializer, + EvaluationInferenceConfigModelsDict as EvaluationInferenceConfigModelsDict, + EvaluationInferenceConfigRagConfigsDict as EvaluationInferenceConfigRagConfigsDict, + EvaluationInferenceConfigDict as EvaluationInferenceConfigDict, EvaluationInferenceConfigSummary as EvaluationInferenceConfigSummary, EvaluationJobStatus as EvaluationJobStatus, EvaluationJobType as EvaluationJobType, @@ -329,16 +448,26 @@ from ._private.models_0 import ( EvaluationModelConfigUnknown as EvaluationModelConfigUnknown, EvaluationModelConfig as EvaluationModelConfig, _EvaluationModelConfigDeserializer as _EvaluationModelConfigDeserializer, + EvaluationModelConfigBedrockModelDict as EvaluationModelConfigBedrockModelDict, + EvaluationModelConfigPrecomputedInferenceSourceDict as EvaluationModelConfigPrecomputedInferenceSourceDict, + EvaluationModelConfigDict as EvaluationModelConfigDict, EvaluationModelConfigSummary as EvaluationModelConfigSummary, EvaluationOutputDataConfig as EvaluationOutputDataConfig, + EvaluationOutputDataConfigDict as EvaluationOutputDataConfigDict, EvaluationPrecomputedInferenceSource as EvaluationPrecomputedInferenceSource, + EvaluationPrecomputedInferenceSourceDict as EvaluationPrecomputedInferenceSourceDict, EvaluationPrecomputedRagSourceConfigRetrieveSourceConfig as EvaluationPrecomputedRagSourceConfigRetrieveSourceConfig, EvaluationPrecomputedRagSourceConfigRetrieveAndGenerateSourceConfig as EvaluationPrecomputedRagSourceConfigRetrieveAndGenerateSourceConfig, EvaluationPrecomputedRagSourceConfigUnknown as EvaluationPrecomputedRagSourceConfigUnknown, EvaluationPrecomputedRagSourceConfig as EvaluationPrecomputedRagSourceConfig, _EvaluationPrecomputedRagSourceConfigDeserializer as _EvaluationPrecomputedRagSourceConfigDeserializer, + EvaluationPrecomputedRagSourceConfigRetrieveSourceConfigDict as EvaluationPrecomputedRagSourceConfigRetrieveSourceConfigDict, + EvaluationPrecomputedRagSourceConfigRetrieveAndGenerateSourceConfigDict as EvaluationPrecomputedRagSourceConfigRetrieveAndGenerateSourceConfigDict, + EvaluationPrecomputedRagSourceConfigDict as EvaluationPrecomputedRagSourceConfigDict, EvaluationPrecomputedRetrieveAndGenerateSourceConfig as EvaluationPrecomputedRetrieveAndGenerateSourceConfig, + EvaluationPrecomputedRetrieveAndGenerateSourceConfigDict as EvaluationPrecomputedRetrieveAndGenerateSourceConfigDict, EvaluationPrecomputedRetrieveSourceConfig as EvaluationPrecomputedRetrieveSourceConfig, + EvaluationPrecomputedRetrieveSourceConfigDict as EvaluationPrecomputedRetrieveSourceConfigDict, EvaluationRagConfigSummary as EvaluationRagConfigSummary, EvaluationSummary as EvaluationSummary, EvaluationTaskType as EvaluationTaskType, @@ -346,144 +475,207 @@ from ._private.models_0 import ( EvaluatorModelConfigUnknown as EvaluatorModelConfigUnknown, EvaluatorModelConfig as EvaluatorModelConfig, _EvaluatorModelConfigDeserializer as _EvaluatorModelConfigDeserializer, + EvaluatorModelConfigBedrockEvaluatorModelsDict as EvaluatorModelConfigBedrockEvaluatorModelsDict, + EvaluatorModelConfigDict as EvaluatorModelConfigDict, ExportAutomatedReasoningPolicyVersionInput as ExportAutomatedReasoningPolicyVersionInput, + ExportAutomatedReasoningPolicyVersionInputDict as ExportAutomatedReasoningPolicyVersionInputDict, ExportAutomatedReasoningPolicyVersionOutput as ExportAutomatedReasoningPolicyVersionOutput, ExternalSource as ExternalSource, + ExternalSourceDict as ExternalSourceDict, ExternalSourcesGenerationConfiguration as ExternalSourcesGenerationConfiguration, + ExternalSourcesGenerationConfigurationDict as ExternalSourcesGenerationConfigurationDict, ExternalSourcesRetrieveAndGenerateConfiguration as ExternalSourcesRetrieveAndGenerateConfiguration, + ExternalSourcesRetrieveAndGenerateConfigurationDict as ExternalSourcesRetrieveAndGenerateConfigurationDict, ExternalSourceType as ExternalSourceType, FieldForReranking as FieldForReranking, + FieldForRerankingDict as FieldForRerankingDict, FilterAttribute as FilterAttribute, + FilterAttributeDict as FilterAttributeDict, FineTuningJobStatus as FineTuningJobStatus, FoundationModelDetails as FoundationModelDetails, FoundationModelLifecycle as FoundationModelLifecycle, FoundationModelLifecycleStatus as FoundationModelLifecycleStatus, FoundationModelSummary as FoundationModelSummary, GenerationConfiguration as GenerationConfiguration, + GenerationConfigurationDict as GenerationConfigurationDict, GetAccountDataRetentionInput as GetAccountDataRetentionInput, + GetAccountDataRetentionInputDict as GetAccountDataRetentionInputDict, GetAccountDataRetentionOutput as GetAccountDataRetentionOutput, GetAdvancedPromptOptimizationJobInput as GetAdvancedPromptOptimizationJobInput, + GetAdvancedPromptOptimizationJobInputDict as GetAdvancedPromptOptimizationJobInputDict, GetAdvancedPromptOptimizationJobOutput as GetAdvancedPromptOptimizationJobOutput, ) from ._private.models_1 import ( GetAutomatedReasoningPolicyAnnotationsInput as GetAutomatedReasoningPolicyAnnotationsInput, + GetAutomatedReasoningPolicyAnnotationsInputDict as GetAutomatedReasoningPolicyAnnotationsInputDict, GetAutomatedReasoningPolicyAnnotationsOutput as GetAutomatedReasoningPolicyAnnotationsOutput, GetAutomatedReasoningPolicyBuildWorkflowInput as GetAutomatedReasoningPolicyBuildWorkflowInput, + GetAutomatedReasoningPolicyBuildWorkflowInputDict as GetAutomatedReasoningPolicyBuildWorkflowInputDict, GetAutomatedReasoningPolicyBuildWorkflowOutput as GetAutomatedReasoningPolicyBuildWorkflowOutput, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput as GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput, + GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict as GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput as GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput, GetAutomatedReasoningPolicyInput as GetAutomatedReasoningPolicyInput, + GetAutomatedReasoningPolicyInputDict as GetAutomatedReasoningPolicyInputDict, GetAutomatedReasoningPolicyNextScenarioInput as GetAutomatedReasoningPolicyNextScenarioInput, + GetAutomatedReasoningPolicyNextScenarioInputDict as GetAutomatedReasoningPolicyNextScenarioInputDict, GetAutomatedReasoningPolicyNextScenarioOutput as GetAutomatedReasoningPolicyNextScenarioOutput, GetAutomatedReasoningPolicyOutput as GetAutomatedReasoningPolicyOutput, GetAutomatedReasoningPolicyTestCaseInput as GetAutomatedReasoningPolicyTestCaseInput, + GetAutomatedReasoningPolicyTestCaseInputDict as GetAutomatedReasoningPolicyTestCaseInputDict, GetAutomatedReasoningPolicyTestCaseOutput as GetAutomatedReasoningPolicyTestCaseOutput, GetAutomatedReasoningPolicyTestResultInput as GetAutomatedReasoningPolicyTestResultInput, + GetAutomatedReasoningPolicyTestResultInputDict as GetAutomatedReasoningPolicyTestResultInputDict, GetAutomatedReasoningPolicyTestResultOutput as GetAutomatedReasoningPolicyTestResultOutput, GetCustomModelDeploymentInput as GetCustomModelDeploymentInput, + GetCustomModelDeploymentInputDict as GetCustomModelDeploymentInputDict, GetCustomModelDeploymentOutput as GetCustomModelDeploymentOutput, GetCustomModelInput as GetCustomModelInput, + GetCustomModelInputDict as GetCustomModelInputDict, GetCustomModelOutput as GetCustomModelOutput, GetEvaluationJobInput as GetEvaluationJobInput, + GetEvaluationJobInputDict as GetEvaluationJobInputDict, GetEvaluationJobOutput as GetEvaluationJobOutput, GetFoundationModelAvailabilityInput as GetFoundationModelAvailabilityInput, + GetFoundationModelAvailabilityInputDict as GetFoundationModelAvailabilityInputDict, GetFoundationModelAvailabilityOutput as GetFoundationModelAvailabilityOutput, GetFoundationModelInput as GetFoundationModelInput, + GetFoundationModelInputDict as GetFoundationModelInputDict, GetFoundationModelOutput as GetFoundationModelOutput, GetGuardrailInput as GetGuardrailInput, + GetGuardrailInputDict as GetGuardrailInputDict, GetGuardrailOutput as GetGuardrailOutput, GetImportedModelInput as GetImportedModelInput, + GetImportedModelInputDict as GetImportedModelInputDict, GetImportedModelOutput as GetImportedModelOutput, GetInferenceProfileInput as GetInferenceProfileInput, + GetInferenceProfileInputDict as GetInferenceProfileInputDict, GetInferenceProfileOutput as GetInferenceProfileOutput, GetMarketplaceModelEndpointInput as GetMarketplaceModelEndpointInput, + GetMarketplaceModelEndpointInputDict as GetMarketplaceModelEndpointInputDict, GetMarketplaceModelEndpointOutput as GetMarketplaceModelEndpointOutput, GetModelCopyJobInput as GetModelCopyJobInput, + GetModelCopyJobInputDict as GetModelCopyJobInputDict, GetModelCopyJobOutput as GetModelCopyJobOutput, GetModelCustomizationJobInput as GetModelCustomizationJobInput, + GetModelCustomizationJobInputDict as GetModelCustomizationJobInputDict, GetModelCustomizationJobOutput as GetModelCustomizationJobOutput, GetModelImportJobInput as GetModelImportJobInput, + GetModelImportJobInputDict as GetModelImportJobInputDict, GetModelImportJobOutput as GetModelImportJobOutput, GetModelInvocationJobInput as GetModelInvocationJobInput, + GetModelInvocationJobInputDict as GetModelInvocationJobInputDict, GetModelInvocationJobOutput as GetModelInvocationJobOutput, GetModelInvocationLoggingConfigurationInput as GetModelInvocationLoggingConfigurationInput, + GetModelInvocationLoggingConfigurationInputDict as GetModelInvocationLoggingConfigurationInputDict, GetModelInvocationLoggingConfigurationOutput as GetModelInvocationLoggingConfigurationOutput, GetPromptRouterInput as GetPromptRouterInput, + GetPromptRouterInputDict as GetPromptRouterInputDict, GetPromptRouterOutput as GetPromptRouterOutput, GetProvisionedModelThroughputInput as GetProvisionedModelThroughputInput, + GetProvisionedModelThroughputInputDict as GetProvisionedModelThroughputInputDict, GetProvisionedModelThroughputOutput as GetProvisionedModelThroughputOutput, GetResourcePolicyInput as GetResourcePolicyInput, + GetResourcePolicyInputDict as GetResourcePolicyInputDict, GetResourcePolicyOutput as GetResourcePolicyOutput, GetUseCaseForModelAccessInput as GetUseCaseForModelAccessInput, + GetUseCaseForModelAccessInputDict as GetUseCaseForModelAccessInputDict, GetUseCaseForModelAccessOutput as GetUseCaseForModelAccessOutput, GraderConfigLambdaGrader as GraderConfigLambdaGrader, GraderConfigUnknown as GraderConfigUnknown, GraderConfig as GraderConfig, _GraderConfigDeserializer as _GraderConfigDeserializer, + GraderConfigLambdaGraderDict as GraderConfigLambdaGraderDict, + GraderConfigDict as GraderConfigDict, GuardrailAutomatedReasoningPolicy as GuardrailAutomatedReasoningPolicy, GuardrailAutomatedReasoningPolicyConfig as GuardrailAutomatedReasoningPolicyConfig, + GuardrailAutomatedReasoningPolicyConfigDict as GuardrailAutomatedReasoningPolicyConfigDict, GuardrailConfiguration as GuardrailConfiguration, + GuardrailConfigurationDict as GuardrailConfigurationDict, GuardrailContentFilter as GuardrailContentFilter, GuardrailContentFilterAction as GuardrailContentFilterAction, GuardrailContentFilterConfig as GuardrailContentFilterConfig, + GuardrailContentFilterConfigDict as GuardrailContentFilterConfigDict, GuardrailContentFiltersTier as GuardrailContentFiltersTier, GuardrailContentFiltersTierConfig as GuardrailContentFiltersTierConfig, + GuardrailContentFiltersTierConfigDict as GuardrailContentFiltersTierConfigDict, GuardrailContentFiltersTierName as GuardrailContentFiltersTierName, GuardrailContentFilterType as GuardrailContentFilterType, GuardrailContentPolicy as GuardrailContentPolicy, GuardrailContentPolicyConfig as GuardrailContentPolicyConfig, + GuardrailContentPolicyConfigDict as GuardrailContentPolicyConfigDict, GuardrailContextualGroundingAction as GuardrailContextualGroundingAction, GuardrailContextualGroundingFilter as GuardrailContextualGroundingFilter, GuardrailContextualGroundingFilterConfig as GuardrailContextualGroundingFilterConfig, + GuardrailContextualGroundingFilterConfigDict as GuardrailContextualGroundingFilterConfigDict, GuardrailContextualGroundingFilterType as GuardrailContextualGroundingFilterType, GuardrailContextualGroundingPolicy as GuardrailContextualGroundingPolicy, GuardrailContextualGroundingPolicyConfig as GuardrailContextualGroundingPolicyConfig, + GuardrailContextualGroundingPolicyConfigDict as GuardrailContextualGroundingPolicyConfigDict, GuardrailContextualGroundingTier as GuardrailContextualGroundingTier, GuardrailContextualGroundingTierConfig as GuardrailContextualGroundingTierConfig, + GuardrailContextualGroundingTierConfigDict as GuardrailContextualGroundingTierConfigDict, GuardrailContextualGroundingTierName as GuardrailContextualGroundingTierName, GuardrailCrossRegionConfig as GuardrailCrossRegionConfig, + GuardrailCrossRegionConfigDict as GuardrailCrossRegionConfigDict, GuardrailCrossRegionDetails as GuardrailCrossRegionDetails, GuardrailFilterStrength as GuardrailFilterStrength, GuardrailManagedWords as GuardrailManagedWords, GuardrailManagedWordsConfig as GuardrailManagedWordsConfig, + GuardrailManagedWordsConfigDict as GuardrailManagedWordsConfigDict, GuardrailManagedWordsType as GuardrailManagedWordsType, GuardrailModality as GuardrailModality, GuardrailPiiEntity as GuardrailPiiEntity, GuardrailPiiEntityConfig as GuardrailPiiEntityConfig, + GuardrailPiiEntityConfigDict as GuardrailPiiEntityConfigDict, GuardrailPiiEntityType as GuardrailPiiEntityType, GuardrailRegex as GuardrailRegex, GuardrailRegexConfig as GuardrailRegexConfig, + GuardrailRegexConfigDict as GuardrailRegexConfigDict, GuardrailSensitiveInformationAction as GuardrailSensitiveInformationAction, GuardrailSensitiveInformationPolicy as GuardrailSensitiveInformationPolicy, GuardrailSensitiveInformationPolicyConfig as GuardrailSensitiveInformationPolicyConfig, + GuardrailSensitiveInformationPolicyConfigDict as GuardrailSensitiveInformationPolicyConfigDict, GuardrailStatus as GuardrailStatus, GuardrailSummary as GuardrailSummary, GuardrailTopic as GuardrailTopic, GuardrailTopicAction as GuardrailTopicAction, GuardrailTopicConfig as GuardrailTopicConfig, + GuardrailTopicConfigDict as GuardrailTopicConfigDict, GuardrailTopicPolicy as GuardrailTopicPolicy, GuardrailTopicPolicyConfig as GuardrailTopicPolicyConfig, + GuardrailTopicPolicyConfigDict as GuardrailTopicPolicyConfigDict, GuardrailTopicsTier as GuardrailTopicsTier, GuardrailTopicsTierConfig as GuardrailTopicsTierConfig, + GuardrailTopicsTierConfigDict as GuardrailTopicsTierConfigDict, GuardrailTopicsTierName as GuardrailTopicsTierName, GuardrailTopicType as GuardrailTopicType, GuardrailWord as GuardrailWord, GuardrailWordAction as GuardrailWordAction, GuardrailWordConfig as GuardrailWordConfig, + GuardrailWordConfigDict as GuardrailWordConfigDict, GuardrailWordPolicy as GuardrailWordPolicy, GuardrailWordPolicyConfig as GuardrailWordPolicyConfig, + GuardrailWordPolicyConfigDict as GuardrailWordPolicyConfigDict, HumanEvaluationConfig as HumanEvaluationConfig, + HumanEvaluationConfigDict as HumanEvaluationConfigDict, HumanEvaluationCustomMetric as HumanEvaluationCustomMetric, + HumanEvaluationCustomMetricDict as HumanEvaluationCustomMetricDict, HumanWorkflowConfig as HumanWorkflowConfig, + HumanWorkflowConfigDict as HumanWorkflowConfigDict, ImplicitFilterConfiguration as ImplicitFilterConfiguration, + ImplicitFilterConfigurationDict as ImplicitFilterConfigurationDict, ImportedModelSummary as ImportedModelSummary, InferenceConfiguration as InferenceConfiguration, + InferenceConfigurationDict as InferenceConfigurationDict, InferenceProfileModel as InferenceProfileModel, InferenceProfileModelSourceCopyFrom as InferenceProfileModelSourceCopyFrom, InferenceProfileModelSourceUnknown as InferenceProfileModelSourceUnknown, InferenceProfileModelSource as InferenceProfileModelSource, _InferenceProfileModelSourceDeserializer as _InferenceProfileModelSourceDeserializer, + InferenceProfileModelSourceCopyFromDict as InferenceProfileModelSourceCopyFromDict, + InferenceProfileModelSourceDict as InferenceProfileModelSourceDict, InferenceProfileStatus as InferenceProfileStatus, InferenceProfileSummary as InferenceProfileSummary, InferenceProfileType as InferenceProfileType, @@ -491,72 +683,109 @@ from ._private.models_1 import ( InputTags as InputTags, InternalServerException as InternalServerException, InvocationLogsConfig as InvocationLogsConfig, + InvocationLogsConfigDict as InvocationLogsConfigDict, InvocationLogSourceS3Uri as InvocationLogSourceS3Uri, InvocationLogSourceUnknown as InvocationLogSourceUnknown, InvocationLogSource as InvocationLogSource, _InvocationLogSourceDeserializer as _InvocationLogSourceDeserializer, + InvocationLogSourceS3UriDict as InvocationLogSourceS3UriDict, + InvocationLogSourceDict as InvocationLogSourceDict, JobStatusDetails as JobStatusDetails, KbInferenceConfig as KbInferenceConfig, + KbInferenceConfigDict as KbInferenceConfigDict, KnowledgeBaseConfigRetrieveConfig as KnowledgeBaseConfigRetrieveConfig, KnowledgeBaseConfigRetrieveAndGenerateConfig as KnowledgeBaseConfigRetrieveAndGenerateConfig, KnowledgeBaseConfigUnknown as KnowledgeBaseConfigUnknown, KnowledgeBaseConfig as KnowledgeBaseConfig, _KnowledgeBaseConfigDeserializer as _KnowledgeBaseConfigDeserializer, + KnowledgeBaseConfigRetrieveConfigDict as KnowledgeBaseConfigRetrieveConfigDict, + KnowledgeBaseConfigRetrieveAndGenerateConfigDict as KnowledgeBaseConfigRetrieveAndGenerateConfigDict, + KnowledgeBaseConfigDict as KnowledgeBaseConfigDict, KnowledgeBaseRetrievalConfiguration as KnowledgeBaseRetrievalConfiguration, + KnowledgeBaseRetrievalConfigurationDict as KnowledgeBaseRetrievalConfigurationDict, KnowledgeBaseRetrieveAndGenerateConfiguration as KnowledgeBaseRetrieveAndGenerateConfiguration, + KnowledgeBaseRetrieveAndGenerateConfigurationDict as KnowledgeBaseRetrieveAndGenerateConfigurationDict, KnowledgeBaseVectorSearchConfiguration as KnowledgeBaseVectorSearchConfiguration, + KnowledgeBaseVectorSearchConfigurationDict as KnowledgeBaseVectorSearchConfigurationDict, LambdaGraderConfig as LambdaGraderConfig, + LambdaGraderConfigDict as LambdaGraderConfigDict, LegalTerm as LegalTerm, ListAdvancedPromptOptimizationJobsInput as ListAdvancedPromptOptimizationJobsInput, + ListAdvancedPromptOptimizationJobsInputDict as ListAdvancedPromptOptimizationJobsInputDict, ListAdvancedPromptOptimizationJobsOutput as ListAdvancedPromptOptimizationJobsOutput, ListAutomatedReasoningPoliciesInput as ListAutomatedReasoningPoliciesInput, + ListAutomatedReasoningPoliciesInputDict as ListAutomatedReasoningPoliciesInputDict, ListAutomatedReasoningPoliciesOutput as ListAutomatedReasoningPoliciesOutput, ListAutomatedReasoningPolicyBuildWorkflowsInput as ListAutomatedReasoningPolicyBuildWorkflowsInput, + ListAutomatedReasoningPolicyBuildWorkflowsInputDict as ListAutomatedReasoningPolicyBuildWorkflowsInputDict, ListAutomatedReasoningPolicyBuildWorkflowsOutput as ListAutomatedReasoningPolicyBuildWorkflowsOutput, ListAutomatedReasoningPolicyTestCasesInput as ListAutomatedReasoningPolicyTestCasesInput, + ListAutomatedReasoningPolicyTestCasesInputDict as ListAutomatedReasoningPolicyTestCasesInputDict, ListAutomatedReasoningPolicyTestCasesOutput as ListAutomatedReasoningPolicyTestCasesOutput, ListAutomatedReasoningPolicyTestResultsInput as ListAutomatedReasoningPolicyTestResultsInput, + ListAutomatedReasoningPolicyTestResultsInputDict as ListAutomatedReasoningPolicyTestResultsInputDict, ListAutomatedReasoningPolicyTestResultsOutput as ListAutomatedReasoningPolicyTestResultsOutput, ListCustomModelDeploymentsInput as ListCustomModelDeploymentsInput, + ListCustomModelDeploymentsInputDict as ListCustomModelDeploymentsInputDict, ListCustomModelDeploymentsOutput as ListCustomModelDeploymentsOutput, ListCustomModelsInput as ListCustomModelsInput, + ListCustomModelsInputDict as ListCustomModelsInputDict, ListCustomModelsOutput as ListCustomModelsOutput, ListEnforcedGuardrailsConfigurationInput as ListEnforcedGuardrailsConfigurationInput, + ListEnforcedGuardrailsConfigurationInputDict as ListEnforcedGuardrailsConfigurationInputDict, ListEnforcedGuardrailsConfigurationOutput as ListEnforcedGuardrailsConfigurationOutput, ListEvaluationJobsInput as ListEvaluationJobsInput, + ListEvaluationJobsInputDict as ListEvaluationJobsInputDict, ListEvaluationJobsOutput as ListEvaluationJobsOutput, ListFoundationModelAgreementOffersInput as ListFoundationModelAgreementOffersInput, + ListFoundationModelAgreementOffersInputDict as ListFoundationModelAgreementOffersInputDict, ListFoundationModelAgreementOffersOutput as ListFoundationModelAgreementOffersOutput, ListFoundationModelsInput as ListFoundationModelsInput, + ListFoundationModelsInputDict as ListFoundationModelsInputDict, ListFoundationModelsOutput as ListFoundationModelsOutput, ListGuardrailsInput as ListGuardrailsInput, + ListGuardrailsInputDict as ListGuardrailsInputDict, ListGuardrailsOutput as ListGuardrailsOutput, ListImportedModelsInput as ListImportedModelsInput, + ListImportedModelsInputDict as ListImportedModelsInputDict, ListImportedModelsOutput as ListImportedModelsOutput, ListInferenceProfilesInput as ListInferenceProfilesInput, + ListInferenceProfilesInputDict as ListInferenceProfilesInputDict, ListInferenceProfilesOutput as ListInferenceProfilesOutput, ListMarketplaceModelEndpointsInput as ListMarketplaceModelEndpointsInput, + ListMarketplaceModelEndpointsInputDict as ListMarketplaceModelEndpointsInputDict, ListMarketplaceModelEndpointsOutput as ListMarketplaceModelEndpointsOutput, ListModelCopyJobsInput as ListModelCopyJobsInput, + ListModelCopyJobsInputDict as ListModelCopyJobsInputDict, ListModelCopyJobsOutput as ListModelCopyJobsOutput, ListModelCustomizationJobsInput as ListModelCustomizationJobsInput, + ListModelCustomizationJobsInputDict as ListModelCustomizationJobsInputDict, ListModelCustomizationJobsOutput as ListModelCustomizationJobsOutput, ListModelImportJobsInput as ListModelImportJobsInput, + ListModelImportJobsInputDict as ListModelImportJobsInputDict, ListModelImportJobsOutput as ListModelImportJobsOutput, ListModelInvocationJobsInput as ListModelInvocationJobsInput, + ListModelInvocationJobsInputDict as ListModelInvocationJobsInputDict, ListModelInvocationJobsOutput as ListModelInvocationJobsOutput, ListPromptRoutersInput as ListPromptRoutersInput, + ListPromptRoutersInputDict as ListPromptRoutersInputDict, ListPromptRoutersOutput as ListPromptRoutersOutput, ListProvisionedModelThroughputsInput as ListProvisionedModelThroughputsInput, + ListProvisionedModelThroughputsInputDict as ListProvisionedModelThroughputsInputDict, ListProvisionedModelThroughputsOutput as ListProvisionedModelThroughputsOutput, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, LoggingConfig as LoggingConfig, + LoggingConfigDict as LoggingConfigDict, MarketplaceModelEndpoint as MarketplaceModelEndpoint, MarketplaceModelEndpointSummary as MarketplaceModelEndpointSummary, MetadataAttributeSchema as MetadataAttributeSchema, + MetadataAttributeSchemaDict as MetadataAttributeSchemaDict, MetadataConfigurationForReranking as MetadataConfigurationForReranking, + MetadataConfigurationForRerankingDict as MetadataConfigurationForRerankingDict, ModelConfiguration as ModelConfiguration, + ModelConfigurationDict as ModelConfigurationDict, ModelCopyJobStatus as ModelCopyJobStatus, ModelCopyJobSummary as ModelCopyJobSummary, ModelCustomization as ModelCustomization, @@ -566,67 +795,97 @@ from ._private.models_1 import ( ModelDataSourceUnknown as ModelDataSourceUnknown, ModelDataSource as ModelDataSource, _ModelDataSourceDeserializer as _ModelDataSourceDeserializer, + ModelDataSourceS3DataSourceDict as ModelDataSourceS3DataSourceDict, + ModelDataSourceDict as ModelDataSourceDict, ModelEnforcement as ModelEnforcement, + ModelEnforcementDict as ModelEnforcementDict, ModelImportJobStatus as ModelImportJobStatus, ModelImportJobSummary as ModelImportJobSummary, ModelInvocationJobInputDataConfigS3InputDataConfig as ModelInvocationJobInputDataConfigS3InputDataConfig, ModelInvocationJobInputDataConfigUnknown as ModelInvocationJobInputDataConfigUnknown, ModelInvocationJobInputDataConfig as ModelInvocationJobInputDataConfig, _ModelInvocationJobInputDataConfigDeserializer as _ModelInvocationJobInputDataConfigDeserializer, + ModelInvocationJobInputDataConfigS3InputDataConfigDict as ModelInvocationJobInputDataConfigS3InputDataConfigDict, + ModelInvocationJobInputDataConfigDict as ModelInvocationJobInputDataConfigDict, ModelInvocationJobOutputDataConfigS3OutputDataConfig as ModelInvocationJobOutputDataConfigS3OutputDataConfig, ModelInvocationJobOutputDataConfigUnknown as ModelInvocationJobOutputDataConfigUnknown, ModelInvocationJobOutputDataConfig as ModelInvocationJobOutputDataConfig, _ModelInvocationJobOutputDataConfigDeserializer as _ModelInvocationJobOutputDataConfigDeserializer, + ModelInvocationJobOutputDataConfigS3OutputDataConfigDict as ModelInvocationJobOutputDataConfigS3OutputDataConfigDict, + ModelInvocationJobOutputDataConfigDict as ModelInvocationJobOutputDataConfigDict, ModelInvocationJobS3InputDataConfig as ModelInvocationJobS3InputDataConfig, + ModelInvocationJobS3InputDataConfigDict as ModelInvocationJobS3InputDataConfigDict, ModelInvocationJobS3OutputDataConfig as ModelInvocationJobS3OutputDataConfig, + ModelInvocationJobS3OutputDataConfigDict as ModelInvocationJobS3OutputDataConfigDict, ModelInvocationJobStatus as ModelInvocationJobStatus, ModelInvocationJobSummary as ModelInvocationJobSummary, ModelInvocationType as ModelInvocationType, ModelModality as ModelModality, ModelPackageArnDataSource as ModelPackageArnDataSource, + ModelPackageArnDataSourceDict as ModelPackageArnDataSourceDict, ModelStatus as ModelStatus, Offer as Offer, OfferType as OfferType, OrchestrationConfiguration as OrchestrationConfiguration, + OrchestrationConfigurationDict as OrchestrationConfigurationDict, OutputDataConfig as OutputDataConfig, + OutputDataConfigDict as OutputDataConfigDict, PerformanceConfigLatency as PerformanceConfigLatency, PerformanceConfiguration as PerformanceConfiguration, + PerformanceConfigurationDict as PerformanceConfigurationDict, PricingTerm as PricingTerm, PromptRouterStatus as PromptRouterStatus, PromptRouterSummary as PromptRouterSummary, PromptRouterTargetModel as PromptRouterTargetModel, + PromptRouterTargetModelDict as PromptRouterTargetModelDict, PromptRouterType as PromptRouterType, PromptTemplate as PromptTemplate, + PromptTemplateDict as PromptTemplateDict, ProvisionedModelStatus as ProvisionedModelStatus, ProvisionedModelSummary as ProvisionedModelSummary, PutAccountDataRetentionInput as PutAccountDataRetentionInput, + PutAccountDataRetentionInputDict as PutAccountDataRetentionInputDict, PutAccountDataRetentionOutput as PutAccountDataRetentionOutput, PutEnforcedGuardrailConfigurationInput as PutEnforcedGuardrailConfigurationInput, + PutEnforcedGuardrailConfigurationInputDict as PutEnforcedGuardrailConfigurationInputDict, PutEnforcedGuardrailConfigurationOutput as PutEnforcedGuardrailConfigurationOutput, PutModelInvocationLoggingConfigurationInput as PutModelInvocationLoggingConfigurationInput, + PutModelInvocationLoggingConfigurationInputDict as PutModelInvocationLoggingConfigurationInputDict, PutModelInvocationLoggingConfigurationOutput as PutModelInvocationLoggingConfigurationOutput, PutResourcePolicyInput as PutResourcePolicyInput, + PutResourcePolicyInputDict as PutResourcePolicyInputDict, PutResourcePolicyOutput as PutResourcePolicyOutput, PutUseCaseForModelAccessInput as PutUseCaseForModelAccessInput, + PutUseCaseForModelAccessInputDict as PutUseCaseForModelAccessInputDict, PutUseCaseForModelAccessOutput as PutUseCaseForModelAccessOutput, QueryTransformationConfiguration as QueryTransformationConfiguration, + QueryTransformationConfigurationDict as QueryTransformationConfigurationDict, QueryTransformationType as QueryTransformationType, RAGConfigKnowledgeBaseConfig as RAGConfigKnowledgeBaseConfig, RAGConfigPrecomputedRagSourceConfig as RAGConfigPrecomputedRagSourceConfig, RAGConfigUnknown as RAGConfigUnknown, RAGConfig as RAGConfig, _RAGConfigDeserializer as _RAGConfigDeserializer, + RAGConfigKnowledgeBaseConfigDict as RAGConfigKnowledgeBaseConfigDict, + RAGConfigPrecomputedRagSourceConfigDict as RAGConfigPrecomputedRagSourceConfigDict, + RAGConfigDict as RAGConfigDict, RatingScaleItem as RatingScaleItem, + RatingScaleItemDict as RatingScaleItemDict, RatingScaleItemValueStringValue as RatingScaleItemValueStringValue, RatingScaleItemValueFloatValue as RatingScaleItemValueFloatValue, RatingScaleItemValueUnknown as RatingScaleItemValueUnknown, RatingScaleItemValue as RatingScaleItemValue, _RatingScaleItemValueDeserializer as _RatingScaleItemValueDeserializer, + RatingScaleItemValueStringValueDict as RatingScaleItemValueStringValueDict, + RatingScaleItemValueFloatValueDict as RatingScaleItemValueFloatValueDict, + RatingScaleItemValueDict as RatingScaleItemValueDict, ReasoningEffort as ReasoningEffort, RegionAvailability as RegionAvailability, RegisterMarketplaceModelEndpointInput as RegisterMarketplaceModelEndpointInput, + RegisterMarketplaceModelEndpointInputDict as RegisterMarketplaceModelEndpointInputDict, RegisterMarketplaceModelEndpointOutput as RegisterMarketplaceModelEndpointOutput, RequestMetadataBaseFilters as RequestMetadataBaseFilters, + RequestMetadataBaseFiltersDict as RequestMetadataBaseFiltersDict, RequestMetadataFiltersEquals as RequestMetadataFiltersEquals, RequestMetadataFiltersNotEquals as RequestMetadataFiltersNotEquals, RequestMetadataFiltersAndAll as RequestMetadataFiltersAndAll, @@ -634,12 +893,20 @@ from ._private.models_1 import ( RequestMetadataFiltersUnknown as RequestMetadataFiltersUnknown, RequestMetadataFilters as RequestMetadataFilters, _RequestMetadataFiltersDeserializer as _RequestMetadataFiltersDeserializer, + RequestMetadataFiltersEqualsDict as RequestMetadataFiltersEqualsDict, + RequestMetadataFiltersNotEqualsDict as RequestMetadataFiltersNotEqualsDict, + RequestMetadataFiltersAndAllDict as RequestMetadataFiltersAndAllDict, + RequestMetadataFiltersOrAllDict as RequestMetadataFiltersOrAllDict, + RequestMetadataFiltersDict as RequestMetadataFiltersDict, RerankingMetadataSelectionMode as RerankingMetadataSelectionMode, RerankingMetadataSelectiveModeConfigurationFieldsToInclude as RerankingMetadataSelectiveModeConfigurationFieldsToInclude, RerankingMetadataSelectiveModeConfigurationFieldsToExclude as RerankingMetadataSelectiveModeConfigurationFieldsToExclude, RerankingMetadataSelectiveModeConfigurationUnknown as RerankingMetadataSelectiveModeConfigurationUnknown, RerankingMetadataSelectiveModeConfiguration as RerankingMetadataSelectiveModeConfiguration, _RerankingMetadataSelectiveModeConfigurationDeserializer as _RerankingMetadataSelectiveModeConfigurationDeserializer, + RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict as RerankingMetadataSelectiveModeConfigurationFieldsToIncludeDict, + RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict as RerankingMetadataSelectiveModeConfigurationFieldsToExcludeDict, + RerankingMetadataSelectiveModeConfigurationDict as RerankingMetadataSelectiveModeConfigurationDict, ResourceInUseException as ResourceInUseException, ResourceNotFoundException as ResourceNotFoundException, RetrievalFilterEquals as RetrievalFilterEquals, @@ -658,19 +925,43 @@ from ._private.models_1 import ( RetrievalFilterUnknown as RetrievalFilterUnknown, RetrievalFilter as RetrievalFilter, _RetrievalFilterDeserializer as _RetrievalFilterDeserializer, + RetrievalFilterEqualsDict as RetrievalFilterEqualsDict, + RetrievalFilterNotEqualsDict as RetrievalFilterNotEqualsDict, + RetrievalFilterGreaterThanDict as RetrievalFilterGreaterThanDict, + RetrievalFilterGreaterThanOrEqualsDict as RetrievalFilterGreaterThanOrEqualsDict, + RetrievalFilterLessThanDict as RetrievalFilterLessThanDict, + RetrievalFilterLessThanOrEqualsDict as RetrievalFilterLessThanOrEqualsDict, + RetrievalFilterInDict as RetrievalFilterInDict, + RetrievalFilterNotInDict as RetrievalFilterNotInDict, + RetrievalFilterStartsWithDict as RetrievalFilterStartsWithDict, + RetrievalFilterListContainsDict as RetrievalFilterListContainsDict, + RetrievalFilterStringContainsDict as RetrievalFilterStringContainsDict, + RetrievalFilterAndAllDict as RetrievalFilterAndAllDict, + RetrievalFilterOrAllDict as RetrievalFilterOrAllDict, + RetrievalFilterDict as RetrievalFilterDict, RetrieveAndGenerateConfiguration as RetrieveAndGenerateConfiguration, + RetrieveAndGenerateConfigurationDict as RetrieveAndGenerateConfigurationDict, RetrieveAndGenerateType as RetrieveAndGenerateType, RetrieveConfig as RetrieveConfig, + RetrieveConfigDict as RetrieveConfigDict, RFTConfig as RFTConfig, + RFTConfigDict as RFTConfigDict, RFTHyperParameters as RFTHyperParameters, + RFTHyperParametersDict as RFTHyperParametersDict, RoutingCriteria as RoutingCriteria, + RoutingCriteriaDict as RoutingCriteriaDict, S3Config as S3Config, + S3ConfigDict as S3ConfigDict, S3DataSource as S3DataSource, + S3DataSourceDict as S3DataSourceDict, S3InputFormat as S3InputFormat, S3ObjectDoc as S3ObjectDoc, + S3ObjectDocDict as S3ObjectDocDict, SageMakerEndpoint as SageMakerEndpoint, + SageMakerEndpointDict as SageMakerEndpointDict, SearchType as SearchType, SelectiveContentGuarding as SelectiveContentGuarding, + SelectiveContentGuardingDict as SelectiveContentGuardingDict, SelectiveGuardingMode as SelectiveGuardingMode, ) @@ -682,58 +973,83 @@ from ._private.models_2 import ( SortModelsBy as SortModelsBy, SortOrder as SortOrder, StartAutomatedReasoningPolicyBuildWorkflowInput as StartAutomatedReasoningPolicyBuildWorkflowInput, + StartAutomatedReasoningPolicyBuildWorkflowInputDict as StartAutomatedReasoningPolicyBuildWorkflowInputDict, StartAutomatedReasoningPolicyBuildWorkflowOutput as StartAutomatedReasoningPolicyBuildWorkflowOutput, StartAutomatedReasoningPolicyTestWorkflowInput as StartAutomatedReasoningPolicyTestWorkflowInput, + StartAutomatedReasoningPolicyTestWorkflowInputDict as StartAutomatedReasoningPolicyTestWorkflowInputDict, StartAutomatedReasoningPolicyTestWorkflowOutput as StartAutomatedReasoningPolicyTestWorkflowOutput, Status as Status, StatusDetails as StatusDetails, StopAdvancedPromptOptimizationJobInput as StopAdvancedPromptOptimizationJobInput, + StopAdvancedPromptOptimizationJobInputDict as StopAdvancedPromptOptimizationJobInputDict, StopAdvancedPromptOptimizationJobOutput as StopAdvancedPromptOptimizationJobOutput, StopEvaluationJobInput as StopEvaluationJobInput, + StopEvaluationJobInputDict as StopEvaluationJobInputDict, StopEvaluationJobOutput as StopEvaluationJobOutput, StopModelCustomizationJobInput as StopModelCustomizationJobInput, + StopModelCustomizationJobInputDict as StopModelCustomizationJobInputDict, StopModelCustomizationJobOutput as StopModelCustomizationJobOutput, StopModelInvocationJobInput as StopModelInvocationJobInput, + StopModelInvocationJobInputDict as StopModelInvocationJobInputDict, StopModelInvocationJobOutput as StopModelInvocationJobOutput, SupportTerm as SupportTerm, Tag as Tag, + TagDict as TagDict, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, TeacherModelConfig as TeacherModelConfig, + TeacherModelConfigDict as TeacherModelConfigDict, TermDetails as TermDetails, TextInferenceConfig as TextInferenceConfig, + TextInferenceConfigDict as TextInferenceConfigDict, ThrottlingException as ThrottlingException, TooManyTagsException as TooManyTagsException, TrainingDataConfig as TrainingDataConfig, + TrainingDataConfigDict as TrainingDataConfigDict, TrainingDetails as TrainingDetails, TrainingMetrics as TrainingMetrics, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateAutomatedReasoningPolicyAnnotationsInput as UpdateAutomatedReasoningPolicyAnnotationsInput, + UpdateAutomatedReasoningPolicyAnnotationsInputDict as UpdateAutomatedReasoningPolicyAnnotationsInputDict, UpdateAutomatedReasoningPolicyAnnotationsOutput as UpdateAutomatedReasoningPolicyAnnotationsOutput, UpdateAutomatedReasoningPolicyInput as UpdateAutomatedReasoningPolicyInput, + UpdateAutomatedReasoningPolicyInputDict as UpdateAutomatedReasoningPolicyInputDict, UpdateAutomatedReasoningPolicyOutput as UpdateAutomatedReasoningPolicyOutput, UpdateAutomatedReasoningPolicyTestCaseInput as UpdateAutomatedReasoningPolicyTestCaseInput, + UpdateAutomatedReasoningPolicyTestCaseInputDict as UpdateAutomatedReasoningPolicyTestCaseInputDict, UpdateAutomatedReasoningPolicyTestCaseOutput as UpdateAutomatedReasoningPolicyTestCaseOutput, UpdateCustomModelDeploymentInput as UpdateCustomModelDeploymentInput, + UpdateCustomModelDeploymentInputDict as UpdateCustomModelDeploymentInputDict, UpdateCustomModelDeploymentOutput as UpdateCustomModelDeploymentOutput, UpdateGuardrailInput as UpdateGuardrailInput, + UpdateGuardrailInputDict as UpdateGuardrailInputDict, UpdateGuardrailOutput as UpdateGuardrailOutput, UpdateMarketplaceModelEndpointInput as UpdateMarketplaceModelEndpointInput, + UpdateMarketplaceModelEndpointInputDict as UpdateMarketplaceModelEndpointInputDict, UpdateMarketplaceModelEndpointOutput as UpdateMarketplaceModelEndpointOutput, UpdateProvisionedModelThroughputInput as UpdateProvisionedModelThroughputInput, + UpdateProvisionedModelThroughputInputDict as UpdateProvisionedModelThroughputInputDict, UpdateProvisionedModelThroughputOutput as UpdateProvisionedModelThroughputOutput, ValidationDataConfig as ValidationDataConfig, + ValidationDataConfigDict as ValidationDataConfigDict, ValidationDetails as ValidationDetails, ValidationException as ValidationException, Validator as Validator, + ValidatorDict as ValidatorDict, ValidatorMetric as ValidatorMetric, ValidityTerm as ValidityTerm, VectorSearchBedrockRerankingConfiguration as VectorSearchBedrockRerankingConfiguration, + VectorSearchBedrockRerankingConfigurationDict as VectorSearchBedrockRerankingConfigurationDict, VectorSearchBedrockRerankingModelConfiguration as VectorSearchBedrockRerankingModelConfiguration, + VectorSearchBedrockRerankingModelConfigurationDict as VectorSearchBedrockRerankingModelConfigurationDict, VectorSearchRerankingConfiguration as VectorSearchRerankingConfiguration, + VectorSearchRerankingConfigurationDict as VectorSearchRerankingConfigurationDict, VectorSearchRerankingConfigurationType as VectorSearchRerankingConfigurationType, VpcConfig as VpcConfig, + VpcConfigDict as VpcConfigDict, ) class _SerdeShape: diff --git a/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/py.typed b/clients/aws-sdk-bedrock/src/aws_sdk_bedrock/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-bedrock/tests/_typecheck.py b/clients/aws-sdk-bedrock/tests/_typecheck.py index 3c12e14eb..a383690a6 100644 --- a/clients/aws-sdk-bedrock/tests/_typecheck.py +++ b/clients/aws-sdk-bedrock/tests/_typecheck.py @@ -2,15 +2,23 @@ from typing import Any +from aws_sdk_bedrock.aio.client import AsyncBedrockClient +from aws_sdk_bedrock.client import BedrockClient from aws_sdk_bedrock.models import ( AccountEnforcedGuardrailInferenceInputConfiguration, + AccountEnforcedGuardrailInferenceInputConfigurationDict, AccountEnforcedGuardrailOutputConfiguration, AdvancedPromptOptimizationInputConfig, + AdvancedPromptOptimizationInputConfigDict, AdvancedPromptOptimizationJobSummary, AdvancedPromptOptimizationOutputConfig, + AdvancedPromptOptimizationOutputConfigDict, AgreementAvailability, AutomatedEvaluationConfig, + AutomatedEvaluationConfigDict, AutomatedEvaluationCustomMetricConfig, + AutomatedEvaluationCustomMetricConfigDict, + AutomatedEvaluationCustomMetricSourceDict, AutomatedReasoningCheckImpossibleFinding, AutomatedReasoningCheckInputTextReference, AutomatedReasoningCheckInvalidFinding, @@ -26,15 +34,21 @@ AutomatedReasoningCheckValidFinding, AutomatedReasoningLogicStatement, AutomatedReasoningPolicyAddRuleAnnotation, + AutomatedReasoningPolicyAddRuleAnnotationDict, AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation, + AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotationDict, AutomatedReasoningPolicyAddRuleMutation, AutomatedReasoningPolicyAddTypeAnnotation, + AutomatedReasoningPolicyAddTypeAnnotationDict, AutomatedReasoningPolicyAddTypeMutation, AutomatedReasoningPolicyAddTypeValue, + AutomatedReasoningPolicyAddTypeValueDict, AutomatedReasoningPolicyAddVariableAnnotation, + AutomatedReasoningPolicyAddVariableAnnotationDict, AutomatedReasoningPolicyAddVariableMutation, AutomatedReasoningPolicyAnnotatedChunk, AutomatedReasoningPolicyAnnotatedLine, + AutomatedReasoningPolicyAnnotationDict, AutomatedReasoningPolicyAtomicStatement, AutomatedReasoningPolicyBuildLog, AutomatedReasoningPolicyBuildLogEntry, @@ -43,29 +57,44 @@ AutomatedReasoningPolicyBuildStep, AutomatedReasoningPolicyBuildStepMessage, AutomatedReasoningPolicyBuildWorkflowDocument, + AutomatedReasoningPolicyBuildWorkflowDocumentDict, AutomatedReasoningPolicyBuildWorkflowRepairContent, + AutomatedReasoningPolicyBuildWorkflowRepairContentDict, AutomatedReasoningPolicyBuildWorkflowSource, + AutomatedReasoningPolicyBuildWorkflowSourceDict, AutomatedReasoningPolicyBuildWorkflowSummary, AutomatedReasoningPolicyDefinition, + AutomatedReasoningPolicyDefinitionDict, AutomatedReasoningPolicyDefinitionQualityReport, AutomatedReasoningPolicyDefinitionRule, + AutomatedReasoningPolicyDefinitionRuleDict, AutomatedReasoningPolicyDefinitionType, + AutomatedReasoningPolicyDefinitionTypeDict, AutomatedReasoningPolicyDefinitionTypeValue, + AutomatedReasoningPolicyDefinitionTypeValueDict, AutomatedReasoningPolicyDefinitionTypeValuePair, AutomatedReasoningPolicyDefinitionVariable, + AutomatedReasoningPolicyDefinitionVariableDict, AutomatedReasoningPolicyDeleteRuleAnnotation, + AutomatedReasoningPolicyDeleteRuleAnnotationDict, AutomatedReasoningPolicyDeleteRuleMutation, AutomatedReasoningPolicyDeleteTypeAnnotation, + AutomatedReasoningPolicyDeleteTypeAnnotationDict, AutomatedReasoningPolicyDeleteTypeMutation, AutomatedReasoningPolicyDeleteTypeValue, + AutomatedReasoningPolicyDeleteTypeValueDict, AutomatedReasoningPolicyDeleteVariableAnnotation, + AutomatedReasoningPolicyDeleteVariableAnnotationDict, AutomatedReasoningPolicyDeleteVariableMutation, AutomatedReasoningPolicyDisjointRuleSet, AutomatedReasoningPolicyFidelityReport, + AutomatedReasoningPolicyGenerateFidelityReportContentDict, AutomatedReasoningPolicyGeneratedTestCase, AutomatedReasoningPolicyGeneratedTestCases, AutomatedReasoningPolicyIngestContentAnnotation, + AutomatedReasoningPolicyIngestContentAnnotationDict, AutomatedReasoningPolicyIterativeRefinementContent, + AutomatedReasoningPolicyIterativeRefinementContentDict, AutomatedReasoningPolicyPlanning, AutomatedReasoningPolicyReportSourceDocument, AutomatedReasoningPolicyRuleReport, @@ -77,379 +106,602 @@ AutomatedReasoningPolicySummary, AutomatedReasoningPolicyTestCase, AutomatedReasoningPolicyTestResult, + AutomatedReasoningPolicyTypeValueAnnotationDict, AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation, + AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotationDict, AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation, + AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotationDict, AutomatedReasoningPolicyUpdateRuleAnnotation, + AutomatedReasoningPolicyUpdateRuleAnnotationDict, AutomatedReasoningPolicyUpdateRuleMutation, AutomatedReasoningPolicyUpdateTypeAnnotation, + AutomatedReasoningPolicyUpdateTypeAnnotationDict, AutomatedReasoningPolicyUpdateTypeMutation, AutomatedReasoningPolicyUpdateTypeValue, + AutomatedReasoningPolicyUpdateTypeValueDict, AutomatedReasoningPolicyUpdateVariableAnnotation, + AutomatedReasoningPolicyUpdateVariableAnnotationDict, AutomatedReasoningPolicyUpdateVariableMutation, AutomatedReasoningPolicyVariableReport, + AutomatedReasoningPolicyWorkflowTypeContentDict, BatchDeleteAdvancedPromptOptimizationJobError, BatchDeleteAdvancedPromptOptimizationJobInput, + BatchDeleteAdvancedPromptOptimizationJobInputDict, BatchDeleteAdvancedPromptOptimizationJobItem, BatchDeleteAdvancedPromptOptimizationJobOutput, BatchDeleteEvaluationJobError, BatchDeleteEvaluationJobInput, + BatchDeleteEvaluationJobInputDict, BatchDeleteEvaluationJobItem, BatchDeleteEvaluationJobOutput, BedrockEvaluatorModel, + BedrockEvaluatorModelDict, ByteContentDoc, + ByteContentDocDict, CancelAutomatedReasoningPolicyBuildWorkflowInput, + CancelAutomatedReasoningPolicyBuildWorkflowInputDict, CancelAutomatedReasoningPolicyBuildWorkflowOutput, CloudWatchConfig, + CloudWatchConfigDict, CreateAdvancedPromptOptimizationJobInput, + CreateAdvancedPromptOptimizationJobInputDict, CreateAdvancedPromptOptimizationJobOutput, CreateAutomatedReasoningPolicyInput, + CreateAutomatedReasoningPolicyInputDict, CreateAutomatedReasoningPolicyOutput, CreateAutomatedReasoningPolicyTestCaseInput, + CreateAutomatedReasoningPolicyTestCaseInputDict, CreateAutomatedReasoningPolicyTestCaseOutput, CreateAutomatedReasoningPolicyVersionInput, + CreateAutomatedReasoningPolicyVersionInputDict, CreateAutomatedReasoningPolicyVersionOutput, CreateCustomModelDeploymentInput, + CreateCustomModelDeploymentInputDict, CreateCustomModelDeploymentOutput, CreateCustomModelInput, + CreateCustomModelInputDict, CreateCustomModelOutput, CreateEvaluationJobInput, + CreateEvaluationJobInputDict, CreateEvaluationJobOutput, CreateFoundationModelAgreementInput, + CreateFoundationModelAgreementInputDict, CreateFoundationModelAgreementOutput, CreateGuardrailInput, + CreateGuardrailInputDict, CreateGuardrailOutput, CreateGuardrailVersionInput, + CreateGuardrailVersionInputDict, CreateGuardrailVersionOutput, CreateInferenceProfileInput, + CreateInferenceProfileInputDict, CreateInferenceProfileOutput, CreateMarketplaceModelEndpointInput, + CreateMarketplaceModelEndpointInputDict, CreateMarketplaceModelEndpointOutput, CreateModelCopyJobInput, + CreateModelCopyJobInputDict, CreateModelCopyJobOutput, CreateModelCustomizationJobInput, + CreateModelCustomizationJobInputDict, CreateModelCustomizationJobOutput, CreateModelImportJobInput, + CreateModelImportJobInputDict, CreateModelImportJobOutput, CreateModelInvocationJobInput, + CreateModelInvocationJobInputDict, CreateModelInvocationJobOutput, CreatePromptRouterInput, + CreatePromptRouterInputDict, CreatePromptRouterOutput, CreateProvisionedModelThroughputInput, + CreateProvisionedModelThroughputInputDict, CreateProvisionedModelThroughputOutput, CustomMetricBedrockEvaluatorModel, + CustomMetricBedrockEvaluatorModelDict, CustomMetricDefinition, + CustomMetricDefinitionDict, CustomMetricEvaluatorModelConfig, + CustomMetricEvaluatorModelConfigDict, + CustomModelDataSourceDict, CustomModelDeploymentSummary, CustomModelDeploymentUpdateDetails, CustomModelSummary, CustomModelUnits, + CustomizationConfigDict, DataProcessingDetails, DeleteAutomatedReasoningPolicyBuildWorkflowInput, + DeleteAutomatedReasoningPolicyBuildWorkflowInputDict, DeleteAutomatedReasoningPolicyBuildWorkflowOutput, DeleteAutomatedReasoningPolicyInput, + DeleteAutomatedReasoningPolicyInputDict, DeleteAutomatedReasoningPolicyOutput, DeleteAutomatedReasoningPolicyTestCaseInput, + DeleteAutomatedReasoningPolicyTestCaseInputDict, DeleteAutomatedReasoningPolicyTestCaseOutput, DeleteCustomModelDeploymentInput, + DeleteCustomModelDeploymentInputDict, DeleteCustomModelDeploymentOutput, DeleteCustomModelInput, + DeleteCustomModelInputDict, DeleteCustomModelOutput, DeleteEnforcedGuardrailConfigurationInput, + DeleteEnforcedGuardrailConfigurationInputDict, DeleteEnforcedGuardrailConfigurationOutput, DeleteFoundationModelAgreementInput, + DeleteFoundationModelAgreementInputDict, DeleteFoundationModelAgreementOutput, DeleteGuardrailInput, + DeleteGuardrailInputDict, DeleteGuardrailOutput, DeleteImportedModelInput, + DeleteImportedModelInputDict, DeleteImportedModelOutput, DeleteInferenceProfileInput, + DeleteInferenceProfileInputDict, DeleteInferenceProfileOutput, DeleteMarketplaceModelEndpointInput, + DeleteMarketplaceModelEndpointInputDict, DeleteMarketplaceModelEndpointOutput, DeleteModelInvocationLoggingConfigurationInput, + DeleteModelInvocationLoggingConfigurationInputDict, DeleteModelInvocationLoggingConfigurationOutput, DeletePromptRouterInput, + DeletePromptRouterInputDict, DeletePromptRouterOutput, DeleteProvisionedModelThroughputInput, + DeleteProvisionedModelThroughputInputDict, DeleteProvisionedModelThroughputOutput, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DeregisterMarketplaceModelEndpointInput, + DeregisterMarketplaceModelEndpointInputDict, DeregisterMarketplaceModelEndpointOutput, DimensionalPriceRate, DistillationConfig, + DistillationConfigDict, + EndpointConfigDict, EvaluationBedrockModel, + EvaluationBedrockModelDict, + EvaluationConfigDict, EvaluationDataset, + EvaluationDatasetDict, + EvaluationDatasetLocationDict, EvaluationDatasetMetricConfig, + EvaluationDatasetMetricConfigDict, + EvaluationInferenceConfigDict, EvaluationInferenceConfigSummary, + EvaluationModelConfigDict, EvaluationModelConfigSummary, EvaluationOutputDataConfig, + EvaluationOutputDataConfigDict, EvaluationPrecomputedInferenceSource, + EvaluationPrecomputedInferenceSourceDict, + EvaluationPrecomputedRagSourceConfigDict, EvaluationPrecomputedRetrieveAndGenerateSourceConfig, + EvaluationPrecomputedRetrieveAndGenerateSourceConfigDict, EvaluationPrecomputedRetrieveSourceConfig, + EvaluationPrecomputedRetrieveSourceConfigDict, EvaluationRagConfigSummary, EvaluationSummary, + EvaluatorModelConfigDict, ExportAutomatedReasoningPolicyVersionInput, + ExportAutomatedReasoningPolicyVersionInputDict, ExportAutomatedReasoningPolicyVersionOutput, ExternalSource, + ExternalSourceDict, ExternalSourcesGenerationConfiguration, + ExternalSourcesGenerationConfigurationDict, ExternalSourcesRetrieveAndGenerateConfiguration, + ExternalSourcesRetrieveAndGenerateConfigurationDict, FieldForReranking, + FieldForRerankingDict, FilterAttribute, + FilterAttributeDict, FoundationModelDetails, FoundationModelLifecycle, FoundationModelSummary, GenerationConfiguration, + GenerationConfigurationDict, GetAccountDataRetentionInput, + GetAccountDataRetentionInputDict, GetAccountDataRetentionOutput, GetAdvancedPromptOptimizationJobInput, + GetAdvancedPromptOptimizationJobInputDict, GetAdvancedPromptOptimizationJobOutput, GetAutomatedReasoningPolicyAnnotationsInput, + GetAutomatedReasoningPolicyAnnotationsInputDict, GetAutomatedReasoningPolicyAnnotationsOutput, GetAutomatedReasoningPolicyBuildWorkflowInput, + GetAutomatedReasoningPolicyBuildWorkflowInputDict, GetAutomatedReasoningPolicyBuildWorkflowOutput, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput, + GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsOutput, GetAutomatedReasoningPolicyInput, + GetAutomatedReasoningPolicyInputDict, GetAutomatedReasoningPolicyNextScenarioInput, + GetAutomatedReasoningPolicyNextScenarioInputDict, GetAutomatedReasoningPolicyNextScenarioOutput, GetAutomatedReasoningPolicyOutput, GetAutomatedReasoningPolicyTestCaseInput, + GetAutomatedReasoningPolicyTestCaseInputDict, GetAutomatedReasoningPolicyTestCaseOutput, GetAutomatedReasoningPolicyTestResultInput, + GetAutomatedReasoningPolicyTestResultInputDict, GetAutomatedReasoningPolicyTestResultOutput, GetCustomModelDeploymentInput, + GetCustomModelDeploymentInputDict, GetCustomModelDeploymentOutput, GetCustomModelInput, + GetCustomModelInputDict, GetCustomModelOutput, GetEvaluationJobInput, + GetEvaluationJobInputDict, GetEvaluationJobOutput, GetFoundationModelAvailabilityInput, + GetFoundationModelAvailabilityInputDict, GetFoundationModelAvailabilityOutput, GetFoundationModelInput, + GetFoundationModelInputDict, GetFoundationModelOutput, GetGuardrailInput, + GetGuardrailInputDict, GetGuardrailOutput, GetImportedModelInput, + GetImportedModelInputDict, GetImportedModelOutput, GetInferenceProfileInput, + GetInferenceProfileInputDict, GetInferenceProfileOutput, GetMarketplaceModelEndpointInput, + GetMarketplaceModelEndpointInputDict, GetMarketplaceModelEndpointOutput, GetModelCopyJobInput, + GetModelCopyJobInputDict, GetModelCopyJobOutput, GetModelCustomizationJobInput, + GetModelCustomizationJobInputDict, GetModelCustomizationJobOutput, GetModelImportJobInput, + GetModelImportJobInputDict, GetModelImportJobOutput, GetModelInvocationJobInput, + GetModelInvocationJobInputDict, GetModelInvocationJobOutput, GetModelInvocationLoggingConfigurationInput, + GetModelInvocationLoggingConfigurationInputDict, GetModelInvocationLoggingConfigurationOutput, GetPromptRouterInput, + GetPromptRouterInputDict, GetPromptRouterOutput, GetProvisionedModelThroughputInput, + GetProvisionedModelThroughputInputDict, GetProvisionedModelThroughputOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GetUseCaseForModelAccessInput, + GetUseCaseForModelAccessInputDict, GetUseCaseForModelAccessOutput, + GraderConfigDict, GuardrailAutomatedReasoningPolicy, GuardrailAutomatedReasoningPolicyConfig, + GuardrailAutomatedReasoningPolicyConfigDict, GuardrailConfiguration, + GuardrailConfigurationDict, GuardrailContentFilter, GuardrailContentFilterConfig, + GuardrailContentFilterConfigDict, GuardrailContentFiltersTier, GuardrailContentFiltersTierConfig, + GuardrailContentFiltersTierConfigDict, GuardrailContentPolicy, GuardrailContentPolicyConfig, + GuardrailContentPolicyConfigDict, GuardrailContextualGroundingFilter, GuardrailContextualGroundingFilterConfig, + GuardrailContextualGroundingFilterConfigDict, GuardrailContextualGroundingPolicy, GuardrailContextualGroundingPolicyConfig, + GuardrailContextualGroundingPolicyConfigDict, GuardrailContextualGroundingTier, GuardrailContextualGroundingTierConfig, + GuardrailContextualGroundingTierConfigDict, GuardrailCrossRegionConfig, + GuardrailCrossRegionConfigDict, GuardrailCrossRegionDetails, GuardrailManagedWords, GuardrailManagedWordsConfig, + GuardrailManagedWordsConfigDict, GuardrailPiiEntity, GuardrailPiiEntityConfig, + GuardrailPiiEntityConfigDict, GuardrailRegex, GuardrailRegexConfig, + GuardrailRegexConfigDict, GuardrailSensitiveInformationPolicy, GuardrailSensitiveInformationPolicyConfig, + GuardrailSensitiveInformationPolicyConfigDict, GuardrailSummary, GuardrailTopic, GuardrailTopicConfig, + GuardrailTopicConfigDict, GuardrailTopicPolicy, GuardrailTopicPolicyConfig, + GuardrailTopicPolicyConfigDict, GuardrailTopicsTier, GuardrailTopicsTierConfig, + GuardrailTopicsTierConfigDict, GuardrailWord, GuardrailWordConfig, + GuardrailWordConfigDict, GuardrailWordPolicy, GuardrailWordPolicyConfig, + GuardrailWordPolicyConfigDict, HumanEvaluationConfig, + HumanEvaluationConfigDict, HumanEvaluationCustomMetric, + HumanEvaluationCustomMetricDict, HumanWorkflowConfig, + HumanWorkflowConfigDict, ImplicitFilterConfiguration, + ImplicitFilterConfigurationDict, ImportedModelSummary, InferenceConfiguration, + InferenceConfigurationDict, InferenceProfileModel, + InferenceProfileModelSourceDict, InferenceProfileSummary, + InvocationLogSourceDict, InvocationLogsConfig, + InvocationLogsConfigDict, KbInferenceConfig, + KbInferenceConfigDict, + KnowledgeBaseConfigDict, KnowledgeBaseRetrievalConfiguration, + KnowledgeBaseRetrievalConfigurationDict, KnowledgeBaseRetrieveAndGenerateConfiguration, + KnowledgeBaseRetrieveAndGenerateConfigurationDict, KnowledgeBaseVectorSearchConfiguration, + KnowledgeBaseVectorSearchConfigurationDict, LambdaGraderConfig, + LambdaGraderConfigDict, LegalTerm, ListAdvancedPromptOptimizationJobsInput, + ListAdvancedPromptOptimizationJobsInputDict, ListAdvancedPromptOptimizationJobsOutput, ListAutomatedReasoningPoliciesInput, + ListAutomatedReasoningPoliciesInputDict, ListAutomatedReasoningPoliciesOutput, ListAutomatedReasoningPolicyBuildWorkflowsInput, + ListAutomatedReasoningPolicyBuildWorkflowsInputDict, ListAutomatedReasoningPolicyBuildWorkflowsOutput, ListAutomatedReasoningPolicyTestCasesInput, + ListAutomatedReasoningPolicyTestCasesInputDict, ListAutomatedReasoningPolicyTestCasesOutput, ListAutomatedReasoningPolicyTestResultsInput, + ListAutomatedReasoningPolicyTestResultsInputDict, ListAutomatedReasoningPolicyTestResultsOutput, ListCustomModelDeploymentsInput, + ListCustomModelDeploymentsInputDict, ListCustomModelDeploymentsOutput, ListCustomModelsInput, + ListCustomModelsInputDict, ListCustomModelsOutput, ListEnforcedGuardrailsConfigurationInput, + ListEnforcedGuardrailsConfigurationInputDict, ListEnforcedGuardrailsConfigurationOutput, ListEvaluationJobsInput, + ListEvaluationJobsInputDict, ListEvaluationJobsOutput, ListFoundationModelAgreementOffersInput, + ListFoundationModelAgreementOffersInputDict, ListFoundationModelAgreementOffersOutput, ListFoundationModelsInput, + ListFoundationModelsInputDict, ListFoundationModelsOutput, ListGuardrailsInput, + ListGuardrailsInputDict, ListGuardrailsOutput, ListImportedModelsInput, + ListImportedModelsInputDict, ListImportedModelsOutput, ListInferenceProfilesInput, + ListInferenceProfilesInputDict, ListInferenceProfilesOutput, ListMarketplaceModelEndpointsInput, + ListMarketplaceModelEndpointsInputDict, ListMarketplaceModelEndpointsOutput, ListModelCopyJobsInput, + ListModelCopyJobsInputDict, ListModelCopyJobsOutput, ListModelCustomizationJobsInput, + ListModelCustomizationJobsInputDict, ListModelCustomizationJobsOutput, ListModelImportJobsInput, + ListModelImportJobsInputDict, ListModelImportJobsOutput, ListModelInvocationJobsInput, + ListModelInvocationJobsInputDict, ListModelInvocationJobsOutput, ListPromptRoutersInput, + ListPromptRoutersInputDict, ListPromptRoutersOutput, ListProvisionedModelThroughputsInput, + ListProvisionedModelThroughputsInputDict, ListProvisionedModelThroughputsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, LoggingConfig, + LoggingConfigDict, MarketplaceModelEndpoint, MarketplaceModelEndpointSummary, MetadataAttributeSchema, + MetadataAttributeSchemaDict, MetadataConfigurationForReranking, + MetadataConfigurationForRerankingDict, ModelConfiguration, + ModelConfigurationDict, ModelCopyJobSummary, ModelCustomizationJobSummary, + ModelDataSourceDict, ModelEnforcement, + ModelEnforcementDict, ModelImportJobSummary, + ModelInvocationJobInputDataConfigDict, + ModelInvocationJobOutputDataConfigDict, ModelInvocationJobS3InputDataConfig, + ModelInvocationJobS3InputDataConfigDict, ModelInvocationJobS3OutputDataConfig, + ModelInvocationJobS3OutputDataConfigDict, ModelInvocationJobSummary, ModelPackageArnDataSource, + ModelPackageArnDataSourceDict, Offer, OrchestrationConfiguration, + OrchestrationConfigurationDict, OutputDataConfig, + OutputDataConfigDict, PerformanceConfiguration, + PerformanceConfigurationDict, PricingTerm, PromptRouterSummary, PromptRouterTargetModel, + PromptRouterTargetModelDict, PromptTemplate, + PromptTemplateDict, ProvisionedModelSummary, PutAccountDataRetentionInput, + PutAccountDataRetentionInputDict, PutAccountDataRetentionOutput, PutEnforcedGuardrailConfigurationInput, + PutEnforcedGuardrailConfigurationInputDict, PutEnforcedGuardrailConfigurationOutput, PutModelInvocationLoggingConfigurationInput, + PutModelInvocationLoggingConfigurationInputDict, PutModelInvocationLoggingConfigurationOutput, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, PutUseCaseForModelAccessInput, + PutUseCaseForModelAccessInputDict, PutUseCaseForModelAccessOutput, QueryTransformationConfiguration, + QueryTransformationConfigurationDict, + RAGConfigDict, RFTConfig, + RFTConfigDict, RFTHyperParameters, + RFTHyperParametersDict, RatingScaleItem, + RatingScaleItemDict, + RatingScaleItemValueDict, RegisterMarketplaceModelEndpointInput, + RegisterMarketplaceModelEndpointInputDict, RegisterMarketplaceModelEndpointOutput, RequestMetadataBaseFilters, + RequestMetadataBaseFiltersDict, + RequestMetadataFiltersDict, + RerankingMetadataSelectiveModeConfigurationDict, + RetrievalFilterDict, RetrieveAndGenerateConfiguration, + RetrieveAndGenerateConfigurationDict, RetrieveConfig, + RetrieveConfigDict, RoutingCriteria, + RoutingCriteriaDict, S3Config, + S3ConfigDict, S3DataSource, + S3DataSourceDict, S3ObjectDoc, + S3ObjectDocDict, SageMakerEndpoint, + SageMakerEndpointDict, SelectiveContentGuarding, + SelectiveContentGuardingDict, StartAutomatedReasoningPolicyBuildWorkflowInput, + StartAutomatedReasoningPolicyBuildWorkflowInputDict, StartAutomatedReasoningPolicyBuildWorkflowOutput, StartAutomatedReasoningPolicyTestWorkflowInput, + StartAutomatedReasoningPolicyTestWorkflowInputDict, StartAutomatedReasoningPolicyTestWorkflowOutput, StatusDetails, StopAdvancedPromptOptimizationJobInput, + StopAdvancedPromptOptimizationJobInputDict, StopAdvancedPromptOptimizationJobOutput, StopEvaluationJobInput, + StopEvaluationJobInputDict, StopEvaluationJobOutput, StopModelCustomizationJobInput, + StopModelCustomizationJobInputDict, StopModelCustomizationJobOutput, StopModelInvocationJobInput, + StopModelInvocationJobInputDict, StopModelInvocationJobOutput, SupportTerm, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TeacherModelConfig, + TeacherModelConfigDict, TermDetails, TextInferenceConfig, + TextInferenceConfigDict, TrainingDataConfig, + TrainingDataConfigDict, TrainingDetails, TrainingMetrics, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAutomatedReasoningPolicyAnnotationsInput, + UpdateAutomatedReasoningPolicyAnnotationsInputDict, UpdateAutomatedReasoningPolicyAnnotationsOutput, UpdateAutomatedReasoningPolicyInput, + UpdateAutomatedReasoningPolicyInputDict, UpdateAutomatedReasoningPolicyOutput, UpdateAutomatedReasoningPolicyTestCaseInput, + UpdateAutomatedReasoningPolicyTestCaseInputDict, UpdateAutomatedReasoningPolicyTestCaseOutput, UpdateCustomModelDeploymentInput, + UpdateCustomModelDeploymentInputDict, UpdateCustomModelDeploymentOutput, UpdateGuardrailInput, + UpdateGuardrailInputDict, UpdateGuardrailOutput, UpdateMarketplaceModelEndpointInput, + UpdateMarketplaceModelEndpointInputDict, UpdateMarketplaceModelEndpointOutput, UpdateProvisionedModelThroughputInput, + UpdateProvisionedModelThroughputInputDict, UpdateProvisionedModelThroughputOutput, ValidationDataConfig, + ValidationDataConfigDict, ValidationDetails, Validator, + ValidatorDict, ValidatorMetric, ValidityTerm, VectorSearchBedrockRerankingConfiguration, + VectorSearchBedrockRerankingConfigurationDict, VectorSearchBedrockRerankingModelConfiguration, + VectorSearchBedrockRerankingModelConfigurationDict, VectorSearchRerankingConfiguration, + VectorSearchRerankingConfigurationDict, VpcConfig, + VpcConfigDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -1128,3 +1380,2168 @@ VectorSearchBedrockRerankingModelConfiguration(model_arn=_) VectorSearchRerankingConfiguration(type=_) VpcConfig(subnet_ids=_, security_group_ids=_) +_params_0: AccountEnforcedGuardrailInferenceInputConfigurationDict = { + "guardrail_identifier": _, + "guardrail_version": _, +} +_params_1: AdvancedPromptOptimizationInputConfigDict = {"s3_uri": _} +_params_2: AdvancedPromptOptimizationOutputConfigDict = {"s3_uri": _} +_params_3: AutomatedEvaluationConfigDict = {"dataset_metric_configs": _} +_params_4: AutomatedEvaluationCustomMetricConfigDict = { + "custom_metrics": _, + "evaluator_model_config": _, +} +_params_5: AutomatedEvaluationCustomMetricSourceDict = {"custom_metric_definition": _} +_params_6: AutomatedReasoningPolicyAddRuleAnnotationDict = {"expression": _} +_params_7: AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotationDict = { + "natural_language": _ +} +_params_8: AutomatedReasoningPolicyAddTypeAnnotationDict = { + "name": _, + "description": _, + "values": _, +} +_params_9: AutomatedReasoningPolicyAddTypeValueDict = {"value": _} +_params_10: AutomatedReasoningPolicyAddVariableAnnotationDict = { + "name": _, + "type": _, + "description": _, +} +_params_11: AutomatedReasoningPolicyAnnotationDict = {"add_type": _} +_params_12: AutomatedReasoningPolicyBuildWorkflowDocumentDict = { + "document": _, + "document_content_type": _, + "document_name": _, +} +_params_13: AutomatedReasoningPolicyBuildWorkflowRepairContentDict = {"annotations": _} +_params_14: AutomatedReasoningPolicyBuildWorkflowSourceDict = {} +_params_15: AutomatedReasoningPolicyDefinitionDict = {} +_params_16: AutomatedReasoningPolicyDefinitionRuleDict = {"id": _, "expression": _} +_params_17: AutomatedReasoningPolicyDefinitionTypeDict = {"name": _, "values": _} +_params_18: AutomatedReasoningPolicyDefinitionTypeValueDict = {"value": _} +_params_19: AutomatedReasoningPolicyDefinitionVariableDict = { + "name": _, + "type": _, + "description": _, +} +_params_20: AutomatedReasoningPolicyDeleteRuleAnnotationDict = {"rule_id": _} +_params_21: AutomatedReasoningPolicyDeleteTypeAnnotationDict = {"name": _} +_params_22: AutomatedReasoningPolicyDeleteTypeValueDict = {"value": _} +_params_23: AutomatedReasoningPolicyDeleteVariableAnnotationDict = {"name": _} +_params_24: AutomatedReasoningPolicyGenerateFidelityReportContentDict = {"documents": _} +_params_25: AutomatedReasoningPolicyIngestContentAnnotationDict = {"content": _} +_params_26: AutomatedReasoningPolicyIterativeRefinementContentDict = {"documents": _} +_params_27: AutomatedReasoningPolicyTypeValueAnnotationDict = {"add_type_value": _} +_params_28: AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotationDict = { + "feedback": _ +} +_params_29: AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotationDict = { + "scenario_expression": _ +} +_params_30: AutomatedReasoningPolicyUpdateRuleAnnotationDict = { + "rule_id": _, + "expression": _, +} +_params_31: AutomatedReasoningPolicyUpdateTypeAnnotationDict = {"name": _, "values": _} +_params_32: AutomatedReasoningPolicyUpdateTypeValueDict = {"value": _} +_params_33: AutomatedReasoningPolicyUpdateVariableAnnotationDict = {"name": _} +_params_34: AutomatedReasoningPolicyWorkflowTypeContentDict = {"documents": _} +_params_35: BatchDeleteAdvancedPromptOptimizationJobInputDict = {"job_identifiers": _} +_params_36: BatchDeleteEvaluationJobInputDict = {"job_identifiers": _} +_params_37: BedrockEvaluatorModelDict = {"model_identifier": _} +_params_38: ByteContentDocDict = {"identifier": _, "content_type": _, "data": _} +_params_39: CancelAutomatedReasoningPolicyBuildWorkflowInputDict = { + "policy_arn": _, + "build_workflow_id": _, +} +_params_40: CloudWatchConfigDict = {"log_group_name": _, "role_arn": _} +_params_41: CreateAdvancedPromptOptimizationJobInputDict = { + "job_name": _, + "input_config": _, + "output_config": _, + "model_configurations": _, +} +_params_42: CreateAutomatedReasoningPolicyInputDict = {"name": _} +_params_43: CreateAutomatedReasoningPolicyTestCaseInputDict = { + "policy_arn": _, + "guard_content": _, + "expected_aggregated_findings_result": _, +} +_params_44: CreateAutomatedReasoningPolicyVersionInputDict = { + "policy_arn": _, + "last_updated_definition_hash": _, +} +_params_45: CreateCustomModelDeploymentInputDict = { + "model_deployment_name": _, + "model_arn": _, +} +_params_46: CreateCustomModelInputDict = {"model_name": _} +_params_47: CreateEvaluationJobInputDict = { + "job_name": _, + "role_arn": _, + "evaluation_config": _, + "inference_config": _, + "output_data_config": _, +} +_params_48: CreateFoundationModelAgreementInputDict = {"offer_token": _, "model_id": _} +_params_49: CreateGuardrailInputDict = { + "name": _, + "blocked_input_messaging": _, + "blocked_outputs_messaging": _, +} +_params_50: CreateGuardrailVersionInputDict = {"guardrail_identifier": _} +_params_51: CreateInferenceProfileInputDict = { + "inference_profile_name": _, + "model_source": _, +} +_params_52: CreateMarketplaceModelEndpointInputDict = { + "model_source_identifier": _, + "endpoint_config": _, + "endpoint_name": _, +} +_params_53: CreateModelCopyJobInputDict = { + "source_model_arn": _, + "target_model_name": _, +} +_params_54: CreateModelCustomizationJobInputDict = { + "job_name": _, + "custom_model_name": _, + "role_arn": _, + "base_model_identifier": _, + "training_data_config": _, + "output_data_config": _, +} +_params_55: CreateModelImportJobInputDict = { + "job_name": _, + "imported_model_name": _, + "role_arn": _, + "model_data_source": _, +} +_params_56: CreateModelInvocationJobInputDict = { + "job_name": _, + "role_arn": _, + "model_id": _, + "input_data_config": _, + "output_data_config": _, +} +_params_57: CreatePromptRouterInputDict = { + "prompt_router_name": _, + "models": _, + "routing_criteria": _, + "fallback_model": _, +} +_params_58: CreateProvisionedModelThroughputInputDict = { + "model_units": _, + "provisioned_model_name": _, + "model_id": _, +} +_params_59: CustomizationConfigDict = {"distillation_config": _} +_params_60: CustomMetricBedrockEvaluatorModelDict = {"model_identifier": _} +_params_61: CustomMetricDefinitionDict = {"name": _, "instructions": _} +_params_62: CustomMetricEvaluatorModelConfigDict = {"bedrock_evaluator_models": _} +_params_63: CustomModelDataSourceDict = {"model_package_arn_data_source": _} +_params_64: DeleteAutomatedReasoningPolicyBuildWorkflowInputDict = { + "policy_arn": _, + "build_workflow_id": _, + "last_updated_at": _, +} +_params_65: DeleteAutomatedReasoningPolicyInputDict = {"policy_arn": _} +_params_66: DeleteAutomatedReasoningPolicyTestCaseInputDict = { + "policy_arn": _, + "test_case_id": _, + "last_updated_at": _, +} +_params_67: DeleteCustomModelDeploymentInputDict = { + "custom_model_deployment_identifier": _ +} +_params_68: DeleteCustomModelInputDict = {"model_identifier": _} +_params_69: DeleteEnforcedGuardrailConfigurationInputDict = {"config_id": _} +_params_70: DeleteFoundationModelAgreementInputDict = {"model_id": _} +_params_71: DeleteGuardrailInputDict = {"guardrail_identifier": _} +_params_72: DeleteImportedModelInputDict = {"model_identifier": _} +_params_73: DeleteInferenceProfileInputDict = {"inference_profile_identifier": _} +_params_74: DeleteMarketplaceModelEndpointInputDict = {"endpoint_arn": _} +_params_75: DeleteModelInvocationLoggingConfigurationInputDict = {} +_params_76: DeletePromptRouterInputDict = {"prompt_router_arn": _} +_params_77: DeleteProvisionedModelThroughputInputDict = {"provisioned_model_id": _} +_params_78: DeleteResourcePolicyInputDict = {"resource_arn": _} +_params_79: DeregisterMarketplaceModelEndpointInputDict = {"endpoint_arn": _} +_params_80: DistillationConfigDict = {"teacher_model_config": _} +_params_81: EndpointConfigDict = {"sage_maker": _} +_params_82: EvaluationBedrockModelDict = {"model_identifier": _} +_params_83: EvaluationConfigDict = {"automated": _} +_params_84: EvaluationDatasetDict = {"name": _} +_params_85: EvaluationDatasetLocationDict = {"s3_uri": _} +_params_86: EvaluationDatasetMetricConfigDict = { + "task_type": _, + "dataset": _, + "metric_names": _, +} +_params_87: EvaluationInferenceConfigDict = {"models": _} +_params_88: EvaluationModelConfigDict = {"bedrock_model": _} +_params_89: EvaluationOutputDataConfigDict = {"s3_uri": _} +_params_90: EvaluationPrecomputedInferenceSourceDict = { + "inference_source_identifier": _ +} +_params_91: EvaluationPrecomputedRagSourceConfigDict = {"retrieve_source_config": _} +_params_92: EvaluationPrecomputedRetrieveAndGenerateSourceConfigDict = { + "rag_source_identifier": _ +} +_params_93: EvaluationPrecomputedRetrieveSourceConfigDict = {"rag_source_identifier": _} +_params_94: EvaluatorModelConfigDict = {"bedrock_evaluator_models": _} +_params_95: ExportAutomatedReasoningPolicyVersionInputDict = {"policy_arn": _} +_params_96: ExternalSourceDict = {"source_type": _} +_params_97: ExternalSourcesGenerationConfigurationDict = {} +_params_98: ExternalSourcesRetrieveAndGenerateConfigurationDict = { + "model_arn": _, + "sources": _, +} +_params_99: FieldForRerankingDict = {"field_name": _} +_params_100: FilterAttributeDict = {"key": _, "value": _} +_params_101: GenerationConfigurationDict = {} +_params_102: GetAccountDataRetentionInputDict = {} +_params_103: GetAdvancedPromptOptimizationJobInputDict = {"job_identifier": _} +_params_104: GetAutomatedReasoningPolicyAnnotationsInputDict = { + "policy_arn": _, + "build_workflow_id": _, +} +_params_105: GetAutomatedReasoningPolicyBuildWorkflowInputDict = { + "policy_arn": _, + "build_workflow_id": _, +} +_params_106: GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict = { + "policy_arn": _, + "build_workflow_id": _, + "asset_type": _, +} +_params_107: GetAutomatedReasoningPolicyInputDict = {"policy_arn": _} +_params_108: GetAutomatedReasoningPolicyNextScenarioInputDict = { + "policy_arn": _, + "build_workflow_id": _, +} +_params_109: GetAutomatedReasoningPolicyTestCaseInputDict = { + "policy_arn": _, + "test_case_id": _, +} +_params_110: GetAutomatedReasoningPolicyTestResultInputDict = { + "policy_arn": _, + "build_workflow_id": _, + "test_case_id": _, +} +_params_111: GetCustomModelDeploymentInputDict = { + "custom_model_deployment_identifier": _ +} +_params_112: GetCustomModelInputDict = {"model_identifier": _} +_params_113: GetEvaluationJobInputDict = {"job_identifier": _} +_params_114: GetFoundationModelAvailabilityInputDict = {"model_id": _} +_params_115: GetFoundationModelInputDict = {"model_identifier": _} +_params_116: GetGuardrailInputDict = {"guardrail_identifier": _} +_params_117: GetImportedModelInputDict = {"model_identifier": _} +_params_118: GetInferenceProfileInputDict = {"inference_profile_identifier": _} +_params_119: GetMarketplaceModelEndpointInputDict = {"endpoint_arn": _} +_params_120: GetModelCopyJobInputDict = {"job_arn": _} +_params_121: GetModelCustomizationJobInputDict = {"job_identifier": _} +_params_122: GetModelImportJobInputDict = {"job_identifier": _} +_params_123: GetModelInvocationJobInputDict = {"job_identifier": _} +_params_124: GetModelInvocationLoggingConfigurationInputDict = {} +_params_125: GetPromptRouterInputDict = {"prompt_router_arn": _} +_params_126: GetProvisionedModelThroughputInputDict = {"provisioned_model_id": _} +_params_127: GetResourcePolicyInputDict = {"resource_arn": _} +_params_128: GetUseCaseForModelAccessInputDict = {} +_params_129: GraderConfigDict = {"lambda_grader": _} +_params_130: GuardrailAutomatedReasoningPolicyConfigDict = {"policies": _} +_params_131: GuardrailConfigurationDict = {"guardrail_id": _, "guardrail_version": _} +_params_132: GuardrailContentFilterConfigDict = { + "type": _, + "input_strength": _, + "output_strength": _, +} +_params_133: GuardrailContentFiltersTierConfigDict = {"tier_name": _} +_params_134: GuardrailContentPolicyConfigDict = {"filters_config": _} +_params_135: GuardrailContextualGroundingFilterConfigDict = {"type": _, "threshold": _} +_params_136: GuardrailContextualGroundingPolicyConfigDict = {"filters_config": _} +_params_137: GuardrailContextualGroundingTierConfigDict = {"tier_name": _} +_params_138: GuardrailCrossRegionConfigDict = {"guardrail_profile_identifier": _} +_params_139: GuardrailManagedWordsConfigDict = {"type": _} +_params_140: GuardrailPiiEntityConfigDict = {"type": _, "action": _} +_params_141: GuardrailRegexConfigDict = {"name": _, "pattern": _, "action": _} +_params_142: GuardrailSensitiveInformationPolicyConfigDict = {} +_params_143: GuardrailTopicConfigDict = {"name": _, "definition": _, "type": _} +_params_144: GuardrailTopicPolicyConfigDict = {"topics_config": _} +_params_145: GuardrailTopicsTierConfigDict = {"tier_name": _} +_params_146: GuardrailWordConfigDict = {"text": _} +_params_147: GuardrailWordPolicyConfigDict = {} +_params_148: HumanEvaluationConfigDict = {"dataset_metric_configs": _} +_params_149: HumanEvaluationCustomMetricDict = {"name": _, "rating_method": _} +_params_150: HumanWorkflowConfigDict = {"flow_definition_arn": _} +_params_151: ImplicitFilterConfigurationDict = { + "metadata_attributes": _, + "model_arn": _, +} +_params_152: InferenceConfigurationDict = {} +_params_153: InferenceProfileModelSourceDict = {"copy_from": _} +_params_154: InvocationLogsConfigDict = {"invocation_log_source": _} +_params_155: InvocationLogSourceDict = {"s3_uri": _} +_params_156: KbInferenceConfigDict = {} +_params_157: KnowledgeBaseConfigDict = {"retrieve_config": _} +_params_158: KnowledgeBaseRetrievalConfigurationDict = { + "vector_search_configuration": _ +} +_params_159: KnowledgeBaseRetrieveAndGenerateConfigurationDict = { + "knowledge_base_id": _, + "model_arn": _, +} +_params_160: KnowledgeBaseVectorSearchConfigurationDict = {} +_params_161: LambdaGraderConfigDict = {"lambda_arn": _} +_params_162: ListAdvancedPromptOptimizationJobsInputDict = {} +_params_163: ListAutomatedReasoningPoliciesInputDict = {} +_params_164: ListAutomatedReasoningPolicyBuildWorkflowsInputDict = {"policy_arn": _} +_params_165: ListAutomatedReasoningPolicyTestCasesInputDict = {"policy_arn": _} +_params_166: ListAutomatedReasoningPolicyTestResultsInputDict = { + "policy_arn": _, + "build_workflow_id": _, +} +_params_167: ListCustomModelDeploymentsInputDict = {} +_params_168: ListCustomModelsInputDict = {} +_params_169: ListEnforcedGuardrailsConfigurationInputDict = {} +_params_170: ListEvaluationJobsInputDict = {} +_params_171: ListFoundationModelAgreementOffersInputDict = {"model_id": _} +_params_172: ListFoundationModelsInputDict = {} +_params_173: ListGuardrailsInputDict = {} +_params_174: ListImportedModelsInputDict = {} +_params_175: ListInferenceProfilesInputDict = {} +_params_176: ListMarketplaceModelEndpointsInputDict = {} +_params_177: ListModelCopyJobsInputDict = {} +_params_178: ListModelCustomizationJobsInputDict = {} +_params_179: ListModelImportJobsInputDict = {} +_params_180: ListModelInvocationJobsInputDict = {} +_params_181: ListPromptRoutersInputDict = {} +_params_182: ListProvisionedModelThroughputsInputDict = {} +_params_183: ListTagsForResourceInputDict = {"resource_arn": _} +_params_184: LoggingConfigDict = {} +_params_185: MetadataAttributeSchemaDict = {"key": _, "type": _, "description": _} +_params_186: MetadataConfigurationForRerankingDict = {"selection_mode": _} +_params_187: ModelConfigurationDict = {"model_id": _} +_params_188: ModelDataSourceDict = {"s3_data_source": _} +_params_189: ModelEnforcementDict = {"included_models": _, "excluded_models": _} +_params_190: ModelInvocationJobInputDataConfigDict = {"s3_input_data_config": _} +_params_191: ModelInvocationJobOutputDataConfigDict = {"s3_output_data_config": _} +_params_192: ModelInvocationJobS3InputDataConfigDict = {"s3_uri": _} +_params_193: ModelInvocationJobS3OutputDataConfigDict = {"s3_uri": _} +_params_194: ModelPackageArnDataSourceDict = {"model_package_arn": _} +_params_195: OrchestrationConfigurationDict = {"query_transformation_configuration": _} +_params_196: OutputDataConfigDict = {"s3_uri": _} +_params_197: PerformanceConfigurationDict = {} +_params_198: PromptRouterTargetModelDict = {"model_arn": _} +_params_199: PromptTemplateDict = {} +_params_200: PutAccountDataRetentionInputDict = {"mode": _} +_params_201: PutEnforcedGuardrailConfigurationInputDict = { + "guardrail_inference_config": _ +} +_params_202: PutModelInvocationLoggingConfigurationInputDict = {"logging_config": _} +_params_203: PutResourcePolicyInputDict = {"resource_arn": _, "resource_policy": _} +_params_204: PutUseCaseForModelAccessInputDict = {"form_data": _} +_params_205: QueryTransformationConfigurationDict = {"type": _} +_params_206: RAGConfigDict = {"knowledge_base_config": _} +_params_207: RatingScaleItemDict = {"definition": _, "value": _} +_params_208: RatingScaleItemValueDict = {"string_value": _} +_params_209: RegisterMarketplaceModelEndpointInputDict = { + "endpoint_identifier": _, + "model_source_identifier": _, +} +_params_210: RequestMetadataBaseFiltersDict = {} +_params_211: RequestMetadataFiltersDict = {"equals": _} +_params_212: RerankingMetadataSelectiveModeConfigurationDict = {"fields_to_include": _} +_params_213: RetrievalFilterDict = {"equals": _} +_params_214: RetrieveAndGenerateConfigurationDict = {"type": _} +_params_215: RetrieveConfigDict = { + "knowledge_base_id": _, + "knowledge_base_retrieval_configuration": _, +} +_params_216: RFTConfigDict = {} +_params_217: RFTHyperParametersDict = {} +_params_218: RoutingCriteriaDict = {"response_quality_difference": _} +_params_219: S3ConfigDict = {"bucket_name": _} +_params_220: S3DataSourceDict = {"s3_uri": _} +_params_221: S3ObjectDocDict = {"uri": _} +_params_222: SageMakerEndpointDict = { + "initial_instance_count": _, + "instance_type": _, + "execution_role": _, +} +_params_223: SelectiveContentGuardingDict = {} +_params_224: StartAutomatedReasoningPolicyBuildWorkflowInputDict = { + "policy_arn": _, + "build_workflow_type": _, + "source_content": _, +} +_params_225: StartAutomatedReasoningPolicyTestWorkflowInputDict = { + "policy_arn": _, + "build_workflow_id": _, +} +_params_226: StopAdvancedPromptOptimizationJobInputDict = {"job_identifier": _} +_params_227: StopEvaluationJobInputDict = {"job_identifier": _} +_params_228: StopModelCustomizationJobInputDict = {"job_identifier": _} +_params_229: StopModelInvocationJobInputDict = {"job_identifier": _} +_params_230: TagDict = {"key": _, "value": _} +_params_231: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_232: TeacherModelConfigDict = {"teacher_model_identifier": _} +_params_233: TextInferenceConfigDict = {} +_params_234: TrainingDataConfigDict = {} +_params_235: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_236: UpdateAutomatedReasoningPolicyAnnotationsInputDict = { + "policy_arn": _, + "build_workflow_id": _, + "annotations": _, + "last_updated_annotation_set_hash": _, +} +_params_237: UpdateAutomatedReasoningPolicyInputDict = { + "policy_arn": _, + "policy_definition": _, +} +_params_238: UpdateAutomatedReasoningPolicyTestCaseInputDict = { + "policy_arn": _, + "test_case_id": _, + "guard_content": _, + "last_updated_at": _, + "expected_aggregated_findings_result": _, +} +_params_239: UpdateCustomModelDeploymentInputDict = { + "model_arn": _, + "custom_model_deployment_identifier": _, +} +_params_240: UpdateGuardrailInputDict = { + "guardrail_identifier": _, + "name": _, + "blocked_input_messaging": _, + "blocked_outputs_messaging": _, +} +_params_241: UpdateMarketplaceModelEndpointInputDict = { + "endpoint_arn": _, + "endpoint_config": _, +} +_params_242: UpdateProvisionedModelThroughputInputDict = {"provisioned_model_id": _} +_params_243: ValidationDataConfigDict = {"validators": _} +_params_244: ValidatorDict = {"s3_uri": _} +_params_245: VectorSearchBedrockRerankingConfigurationDict = {"model_configuration": _} +_params_246: VectorSearchBedrockRerankingModelConfigurationDict = {"model_arn": _} +_params_247: VectorSearchRerankingConfigurationDict = {"type": _} +_params_248: VpcConfigDict = {"subnet_ids": _, "security_group_ids": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncBedrockClient) -> None: + pass + await client.batch_delete_advanced_prompt_optimization_job(job_identifiers=_) + await client.batch_delete_advanced_prompt_optimization_job( + **_request(BatchDeleteAdvancedPromptOptimizationJobInputDict) + ) + await client.batch_delete_advanced_prompt_optimization_job( + _request(BatchDeleteAdvancedPromptOptimizationJobInput) + ) + await client.batch_delete_advanced_prompt_optimization_job( + _request(BatchDeleteAdvancedPromptOptimizationJobInputDict) + ) + await client.batch_delete_evaluation_job(job_identifiers=_) + await client.batch_delete_evaluation_job( + **_request(BatchDeleteEvaluationJobInputDict) + ) + await client.batch_delete_evaluation_job(_request(BatchDeleteEvaluationJobInput)) + await client.batch_delete_evaluation_job( + _request(BatchDeleteEvaluationJobInputDict) + ) + await client.cancel_automated_reasoning_policy_build_workflow( + policy_arn=_, build_workflow_id=_ + ) + await client.cancel_automated_reasoning_policy_build_workflow( + **_request(CancelAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + await client.cancel_automated_reasoning_policy_build_workflow( + _request(CancelAutomatedReasoningPolicyBuildWorkflowInput) + ) + await client.cancel_automated_reasoning_policy_build_workflow( + _request(CancelAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + await client.create_advanced_prompt_optimization_job( + job_name=_, input_config=_, output_config=_, model_configurations=_ + ) + await client.create_advanced_prompt_optimization_job( + **_request(CreateAdvancedPromptOptimizationJobInputDict) + ) + await client.create_advanced_prompt_optimization_job( + _request(CreateAdvancedPromptOptimizationJobInput) + ) + await client.create_advanced_prompt_optimization_job( + _request(CreateAdvancedPromptOptimizationJobInputDict) + ) + await client.create_automated_reasoning_policy(name=_) + await client.create_automated_reasoning_policy( + **_request(CreateAutomatedReasoningPolicyInputDict) + ) + await client.create_automated_reasoning_policy( + _request(CreateAutomatedReasoningPolicyInput) + ) + await client.create_automated_reasoning_policy( + _request(CreateAutomatedReasoningPolicyInputDict) + ) + await client.create_automated_reasoning_policy_test_case( + policy_arn=_, guard_content=_, expected_aggregated_findings_result=_ + ) + await client.create_automated_reasoning_policy_test_case( + **_request(CreateAutomatedReasoningPolicyTestCaseInputDict) + ) + await client.create_automated_reasoning_policy_test_case( + _request(CreateAutomatedReasoningPolicyTestCaseInput) + ) + await client.create_automated_reasoning_policy_test_case( + _request(CreateAutomatedReasoningPolicyTestCaseInputDict) + ) + await client.create_automated_reasoning_policy_version( + policy_arn=_, last_updated_definition_hash=_ + ) + await client.create_automated_reasoning_policy_version( + **_request(CreateAutomatedReasoningPolicyVersionInputDict) + ) + await client.create_automated_reasoning_policy_version( + _request(CreateAutomatedReasoningPolicyVersionInput) + ) + await client.create_automated_reasoning_policy_version( + _request(CreateAutomatedReasoningPolicyVersionInputDict) + ) + await client.create_custom_model(model_name=_) + await client.create_custom_model(**_request(CreateCustomModelInputDict)) + await client.create_custom_model(_request(CreateCustomModelInput)) + await client.create_custom_model(_request(CreateCustomModelInputDict)) + await client.create_custom_model_deployment(model_deployment_name=_, model_arn=_) + await client.create_custom_model_deployment( + **_request(CreateCustomModelDeploymentInputDict) + ) + await client.create_custom_model_deployment( + _request(CreateCustomModelDeploymentInput) + ) + await client.create_custom_model_deployment( + _request(CreateCustomModelDeploymentInputDict) + ) + await client.create_evaluation_job( + job_name=_, + role_arn=_, + evaluation_config=_, + inference_config=_, + output_data_config=_, + ) + await client.create_evaluation_job(**_request(CreateEvaluationJobInputDict)) + await client.create_evaluation_job(_request(CreateEvaluationJobInput)) + await client.create_evaluation_job(_request(CreateEvaluationJobInputDict)) + await client.create_foundation_model_agreement(offer_token=_, model_id=_) + await client.create_foundation_model_agreement( + **_request(CreateFoundationModelAgreementInputDict) + ) + await client.create_foundation_model_agreement( + _request(CreateFoundationModelAgreementInput) + ) + await client.create_foundation_model_agreement( + _request(CreateFoundationModelAgreementInputDict) + ) + await client.create_guardrail( + name=_, blocked_input_messaging=_, blocked_outputs_messaging=_ + ) + await client.create_guardrail(**_request(CreateGuardrailInputDict)) + await client.create_guardrail(_request(CreateGuardrailInput)) + await client.create_guardrail(_request(CreateGuardrailInputDict)) + await client.create_guardrail_version(guardrail_identifier=_) + await client.create_guardrail_version(**_request(CreateGuardrailVersionInputDict)) + await client.create_guardrail_version(_request(CreateGuardrailVersionInput)) + await client.create_guardrail_version(_request(CreateGuardrailVersionInputDict)) + await client.create_inference_profile(inference_profile_name=_, model_source=_) + await client.create_inference_profile(**_request(CreateInferenceProfileInputDict)) + await client.create_inference_profile(_request(CreateInferenceProfileInput)) + await client.create_inference_profile(_request(CreateInferenceProfileInputDict)) + await client.create_marketplace_model_endpoint( + model_source_identifier=_, endpoint_config=_, endpoint_name=_ + ) + await client.create_marketplace_model_endpoint( + **_request(CreateMarketplaceModelEndpointInputDict) + ) + await client.create_marketplace_model_endpoint( + _request(CreateMarketplaceModelEndpointInput) + ) + await client.create_marketplace_model_endpoint( + _request(CreateMarketplaceModelEndpointInputDict) + ) + await client.create_model_copy_job(source_model_arn=_, target_model_name=_) + await client.create_model_copy_job(**_request(CreateModelCopyJobInputDict)) + await client.create_model_copy_job(_request(CreateModelCopyJobInput)) + await client.create_model_copy_job(_request(CreateModelCopyJobInputDict)) + await client.create_model_customization_job( + job_name=_, + custom_model_name=_, + role_arn=_, + base_model_identifier=_, + training_data_config=_, + output_data_config=_, + ) + await client.create_model_customization_job( + **_request(CreateModelCustomizationJobInputDict) + ) + await client.create_model_customization_job( + _request(CreateModelCustomizationJobInput) + ) + await client.create_model_customization_job( + _request(CreateModelCustomizationJobInputDict) + ) + await client.create_model_import_job( + job_name=_, imported_model_name=_, role_arn=_, model_data_source=_ + ) + await client.create_model_import_job(**_request(CreateModelImportJobInputDict)) + await client.create_model_import_job(_request(CreateModelImportJobInput)) + await client.create_model_import_job(_request(CreateModelImportJobInputDict)) + await client.create_model_invocation_job( + job_name=_, role_arn=_, model_id=_, input_data_config=_, output_data_config=_ + ) + await client.create_model_invocation_job( + **_request(CreateModelInvocationJobInputDict) + ) + await client.create_model_invocation_job(_request(CreateModelInvocationJobInput)) + await client.create_model_invocation_job( + _request(CreateModelInvocationJobInputDict) + ) + await client.create_prompt_router( + prompt_router_name=_, models=_, routing_criteria=_, fallback_model=_ + ) + await client.create_prompt_router(**_request(CreatePromptRouterInputDict)) + await client.create_prompt_router(_request(CreatePromptRouterInput)) + await client.create_prompt_router(_request(CreatePromptRouterInputDict)) + await client.create_provisioned_model_throughput( + model_units=_, provisioned_model_name=_, model_id=_ + ) + await client.create_provisioned_model_throughput( + **_request(CreateProvisionedModelThroughputInputDict) + ) + await client.create_provisioned_model_throughput( + _request(CreateProvisionedModelThroughputInput) + ) + await client.create_provisioned_model_throughput( + _request(CreateProvisionedModelThroughputInputDict) + ) + await client.delete_automated_reasoning_policy(policy_arn=_) + await client.delete_automated_reasoning_policy( + **_request(DeleteAutomatedReasoningPolicyInputDict) + ) + await client.delete_automated_reasoning_policy( + _request(DeleteAutomatedReasoningPolicyInput) + ) + await client.delete_automated_reasoning_policy( + _request(DeleteAutomatedReasoningPolicyInputDict) + ) + await client.delete_automated_reasoning_policy_build_workflow( + policy_arn=_, build_workflow_id=_, last_updated_at=_ + ) + await client.delete_automated_reasoning_policy_build_workflow( + **_request(DeleteAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + await client.delete_automated_reasoning_policy_build_workflow( + _request(DeleteAutomatedReasoningPolicyBuildWorkflowInput) + ) + await client.delete_automated_reasoning_policy_build_workflow( + _request(DeleteAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + await client.delete_automated_reasoning_policy_test_case( + policy_arn=_, test_case_id=_, last_updated_at=_ + ) + await client.delete_automated_reasoning_policy_test_case( + **_request(DeleteAutomatedReasoningPolicyTestCaseInputDict) + ) + await client.delete_automated_reasoning_policy_test_case( + _request(DeleteAutomatedReasoningPolicyTestCaseInput) + ) + await client.delete_automated_reasoning_policy_test_case( + _request(DeleteAutomatedReasoningPolicyTestCaseInputDict) + ) + await client.delete_custom_model(model_identifier=_) + await client.delete_custom_model(**_request(DeleteCustomModelInputDict)) + await client.delete_custom_model(_request(DeleteCustomModelInput)) + await client.delete_custom_model(_request(DeleteCustomModelInputDict)) + await client.delete_custom_model_deployment(custom_model_deployment_identifier=_) + await client.delete_custom_model_deployment( + **_request(DeleteCustomModelDeploymentInputDict) + ) + await client.delete_custom_model_deployment( + _request(DeleteCustomModelDeploymentInput) + ) + await client.delete_custom_model_deployment( + _request(DeleteCustomModelDeploymentInputDict) + ) + await client.delete_enforced_guardrail_configuration(config_id=_) + await client.delete_enforced_guardrail_configuration( + **_request(DeleteEnforcedGuardrailConfigurationInputDict) + ) + await client.delete_enforced_guardrail_configuration( + _request(DeleteEnforcedGuardrailConfigurationInput) + ) + await client.delete_enforced_guardrail_configuration( + _request(DeleteEnforcedGuardrailConfigurationInputDict) + ) + await client.delete_foundation_model_agreement(model_id=_) + await client.delete_foundation_model_agreement( + **_request(DeleteFoundationModelAgreementInputDict) + ) + await client.delete_foundation_model_agreement( + _request(DeleteFoundationModelAgreementInput) + ) + await client.delete_foundation_model_agreement( + _request(DeleteFoundationModelAgreementInputDict) + ) + await client.delete_guardrail(guardrail_identifier=_) + await client.delete_guardrail(**_request(DeleteGuardrailInputDict)) + await client.delete_guardrail(_request(DeleteGuardrailInput)) + await client.delete_guardrail(_request(DeleteGuardrailInputDict)) + await client.delete_imported_model(model_identifier=_) + await client.delete_imported_model(**_request(DeleteImportedModelInputDict)) + await client.delete_imported_model(_request(DeleteImportedModelInput)) + await client.delete_imported_model(_request(DeleteImportedModelInputDict)) + await client.delete_inference_profile(inference_profile_identifier=_) + await client.delete_inference_profile(**_request(DeleteInferenceProfileInputDict)) + await client.delete_inference_profile(_request(DeleteInferenceProfileInput)) + await client.delete_inference_profile(_request(DeleteInferenceProfileInputDict)) + await client.delete_marketplace_model_endpoint(endpoint_arn=_) + await client.delete_marketplace_model_endpoint( + **_request(DeleteMarketplaceModelEndpointInputDict) + ) + await client.delete_marketplace_model_endpoint( + _request(DeleteMarketplaceModelEndpointInput) + ) + await client.delete_marketplace_model_endpoint( + _request(DeleteMarketplaceModelEndpointInputDict) + ) + await client.delete_model_invocation_logging_configuration() + await client.delete_model_invocation_logging_configuration( + **_request(DeleteModelInvocationLoggingConfigurationInputDict) + ) + await client.delete_model_invocation_logging_configuration( + _request(DeleteModelInvocationLoggingConfigurationInput) + ) + await client.delete_model_invocation_logging_configuration( + _request(DeleteModelInvocationLoggingConfigurationInputDict) + ) + await client.delete_prompt_router(prompt_router_arn=_) + await client.delete_prompt_router(**_request(DeletePromptRouterInputDict)) + await client.delete_prompt_router(_request(DeletePromptRouterInput)) + await client.delete_prompt_router(_request(DeletePromptRouterInputDict)) + await client.delete_provisioned_model_throughput(provisioned_model_id=_) + await client.delete_provisioned_model_throughput( + **_request(DeleteProvisionedModelThroughputInputDict) + ) + await client.delete_provisioned_model_throughput( + _request(DeleteProvisionedModelThroughputInput) + ) + await client.delete_provisioned_model_throughput( + _request(DeleteProvisionedModelThroughputInputDict) + ) + await client.delete_resource_policy(resource_arn=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.deregister_marketplace_model_endpoint(endpoint_arn=_) + await client.deregister_marketplace_model_endpoint( + **_request(DeregisterMarketplaceModelEndpointInputDict) + ) + await client.deregister_marketplace_model_endpoint( + _request(DeregisterMarketplaceModelEndpointInput) + ) + await client.deregister_marketplace_model_endpoint( + _request(DeregisterMarketplaceModelEndpointInputDict) + ) + await client.export_automated_reasoning_policy_version(policy_arn=_) + await client.export_automated_reasoning_policy_version( + **_request(ExportAutomatedReasoningPolicyVersionInputDict) + ) + await client.export_automated_reasoning_policy_version( + _request(ExportAutomatedReasoningPolicyVersionInput) + ) + await client.export_automated_reasoning_policy_version( + _request(ExportAutomatedReasoningPolicyVersionInputDict) + ) + await client.get_account_data_retention() + await client.get_account_data_retention( + **_request(GetAccountDataRetentionInputDict) + ) + await client.get_account_data_retention(_request(GetAccountDataRetentionInput)) + await client.get_account_data_retention(_request(GetAccountDataRetentionInputDict)) + await client.get_advanced_prompt_optimization_job(job_identifier=_) + await client.get_advanced_prompt_optimization_job( + **_request(GetAdvancedPromptOptimizationJobInputDict) + ) + await client.get_advanced_prompt_optimization_job( + _request(GetAdvancedPromptOptimizationJobInput) + ) + await client.get_advanced_prompt_optimization_job( + _request(GetAdvancedPromptOptimizationJobInputDict) + ) + await client.get_automated_reasoning_policy(policy_arn=_) + await client.get_automated_reasoning_policy( + **_request(GetAutomatedReasoningPolicyInputDict) + ) + await client.get_automated_reasoning_policy( + _request(GetAutomatedReasoningPolicyInput) + ) + await client.get_automated_reasoning_policy( + _request(GetAutomatedReasoningPolicyInputDict) + ) + await client.get_automated_reasoning_policy_annotations( + policy_arn=_, build_workflow_id=_ + ) + await client.get_automated_reasoning_policy_annotations( + **_request(GetAutomatedReasoningPolicyAnnotationsInputDict) + ) + await client.get_automated_reasoning_policy_annotations( + _request(GetAutomatedReasoningPolicyAnnotationsInput) + ) + await client.get_automated_reasoning_policy_annotations( + _request(GetAutomatedReasoningPolicyAnnotationsInputDict) + ) + await client.get_automated_reasoning_policy_build_workflow( + policy_arn=_, build_workflow_id=_ + ) + await client.get_automated_reasoning_policy_build_workflow( + **_request(GetAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + await client.get_automated_reasoning_policy_build_workflow( + _request(GetAutomatedReasoningPolicyBuildWorkflowInput) + ) + await client.get_automated_reasoning_policy_build_workflow( + _request(GetAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + await client.get_automated_reasoning_policy_build_workflow_result_assets( + policy_arn=_, build_workflow_id=_, asset_type=_ + ) + await client.get_automated_reasoning_policy_build_workflow_result_assets( + **_request(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict) + ) + await client.get_automated_reasoning_policy_build_workflow_result_assets( + _request(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput) + ) + await client.get_automated_reasoning_policy_build_workflow_result_assets( + _request(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict) + ) + await client.get_automated_reasoning_policy_next_scenario( + policy_arn=_, build_workflow_id=_ + ) + await client.get_automated_reasoning_policy_next_scenario( + **_request(GetAutomatedReasoningPolicyNextScenarioInputDict) + ) + await client.get_automated_reasoning_policy_next_scenario( + _request(GetAutomatedReasoningPolicyNextScenarioInput) + ) + await client.get_automated_reasoning_policy_next_scenario( + _request(GetAutomatedReasoningPolicyNextScenarioInputDict) + ) + await client.get_automated_reasoning_policy_test_case(policy_arn=_, test_case_id=_) + await client.get_automated_reasoning_policy_test_case( + **_request(GetAutomatedReasoningPolicyTestCaseInputDict) + ) + await client.get_automated_reasoning_policy_test_case( + _request(GetAutomatedReasoningPolicyTestCaseInput) + ) + await client.get_automated_reasoning_policy_test_case( + _request(GetAutomatedReasoningPolicyTestCaseInputDict) + ) + await client.get_automated_reasoning_policy_test_result( + policy_arn=_, build_workflow_id=_, test_case_id=_ + ) + await client.get_automated_reasoning_policy_test_result( + **_request(GetAutomatedReasoningPolicyTestResultInputDict) + ) + await client.get_automated_reasoning_policy_test_result( + _request(GetAutomatedReasoningPolicyTestResultInput) + ) + await client.get_automated_reasoning_policy_test_result( + _request(GetAutomatedReasoningPolicyTestResultInputDict) + ) + await client.get_custom_model(model_identifier=_) + await client.get_custom_model(**_request(GetCustomModelInputDict)) + await client.get_custom_model(_request(GetCustomModelInput)) + await client.get_custom_model(_request(GetCustomModelInputDict)) + await client.get_custom_model_deployment(custom_model_deployment_identifier=_) + await client.get_custom_model_deployment( + **_request(GetCustomModelDeploymentInputDict) + ) + await client.get_custom_model_deployment(_request(GetCustomModelDeploymentInput)) + await client.get_custom_model_deployment( + _request(GetCustomModelDeploymentInputDict) + ) + await client.get_evaluation_job(job_identifier=_) + await client.get_evaluation_job(**_request(GetEvaluationJobInputDict)) + await client.get_evaluation_job(_request(GetEvaluationJobInput)) + await client.get_evaluation_job(_request(GetEvaluationJobInputDict)) + await client.get_foundation_model(model_identifier=_) + await client.get_foundation_model(**_request(GetFoundationModelInputDict)) + await client.get_foundation_model(_request(GetFoundationModelInput)) + await client.get_foundation_model(_request(GetFoundationModelInputDict)) + await client.get_foundation_model_availability(model_id=_) + await client.get_foundation_model_availability( + **_request(GetFoundationModelAvailabilityInputDict) + ) + await client.get_foundation_model_availability( + _request(GetFoundationModelAvailabilityInput) + ) + await client.get_foundation_model_availability( + _request(GetFoundationModelAvailabilityInputDict) + ) + await client.get_guardrail(guardrail_identifier=_) + await client.get_guardrail(**_request(GetGuardrailInputDict)) + await client.get_guardrail(_request(GetGuardrailInput)) + await client.get_guardrail(_request(GetGuardrailInputDict)) + await client.get_imported_model(model_identifier=_) + await client.get_imported_model(**_request(GetImportedModelInputDict)) + await client.get_imported_model(_request(GetImportedModelInput)) + await client.get_imported_model(_request(GetImportedModelInputDict)) + await client.get_inference_profile(inference_profile_identifier=_) + await client.get_inference_profile(**_request(GetInferenceProfileInputDict)) + await client.get_inference_profile(_request(GetInferenceProfileInput)) + await client.get_inference_profile(_request(GetInferenceProfileInputDict)) + await client.get_marketplace_model_endpoint(endpoint_arn=_) + await client.get_marketplace_model_endpoint( + **_request(GetMarketplaceModelEndpointInputDict) + ) + await client.get_marketplace_model_endpoint( + _request(GetMarketplaceModelEndpointInput) + ) + await client.get_marketplace_model_endpoint( + _request(GetMarketplaceModelEndpointInputDict) + ) + await client.get_model_copy_job(job_arn=_) + await client.get_model_copy_job(**_request(GetModelCopyJobInputDict)) + await client.get_model_copy_job(_request(GetModelCopyJobInput)) + await client.get_model_copy_job(_request(GetModelCopyJobInputDict)) + await client.get_model_customization_job(job_identifier=_) + await client.get_model_customization_job( + **_request(GetModelCustomizationJobInputDict) + ) + await client.get_model_customization_job(_request(GetModelCustomizationJobInput)) + await client.get_model_customization_job( + _request(GetModelCustomizationJobInputDict) + ) + await client.get_model_import_job(job_identifier=_) + await client.get_model_import_job(**_request(GetModelImportJobInputDict)) + await client.get_model_import_job(_request(GetModelImportJobInput)) + await client.get_model_import_job(_request(GetModelImportJobInputDict)) + await client.get_model_invocation_job(job_identifier=_) + await client.get_model_invocation_job(**_request(GetModelInvocationJobInputDict)) + await client.get_model_invocation_job(_request(GetModelInvocationJobInput)) + await client.get_model_invocation_job(_request(GetModelInvocationJobInputDict)) + await client.get_model_invocation_logging_configuration() + await client.get_model_invocation_logging_configuration( + **_request(GetModelInvocationLoggingConfigurationInputDict) + ) + await client.get_model_invocation_logging_configuration( + _request(GetModelInvocationLoggingConfigurationInput) + ) + await client.get_model_invocation_logging_configuration( + _request(GetModelInvocationLoggingConfigurationInputDict) + ) + await client.get_prompt_router(prompt_router_arn=_) + await client.get_prompt_router(**_request(GetPromptRouterInputDict)) + await client.get_prompt_router(_request(GetPromptRouterInput)) + await client.get_prompt_router(_request(GetPromptRouterInputDict)) + await client.get_provisioned_model_throughput(provisioned_model_id=_) + await client.get_provisioned_model_throughput( + **_request(GetProvisionedModelThroughputInputDict) + ) + await client.get_provisioned_model_throughput( + _request(GetProvisionedModelThroughputInput) + ) + await client.get_provisioned_model_throughput( + _request(GetProvisionedModelThroughputInputDict) + ) + await client.get_resource_policy(resource_arn=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.get_use_case_for_model_access() + await client.get_use_case_for_model_access( + **_request(GetUseCaseForModelAccessInputDict) + ) + await client.get_use_case_for_model_access(_request(GetUseCaseForModelAccessInput)) + await client.get_use_case_for_model_access( + _request(GetUseCaseForModelAccessInputDict) + ) + await client.list_advanced_prompt_optimization_jobs() + await client.list_advanced_prompt_optimization_jobs( + **_request(ListAdvancedPromptOptimizationJobsInputDict) + ) + await client.list_advanced_prompt_optimization_jobs( + _request(ListAdvancedPromptOptimizationJobsInput) + ) + await client.list_advanced_prompt_optimization_jobs( + _request(ListAdvancedPromptOptimizationJobsInputDict) + ) + await client.list_automated_reasoning_policies() + await client.list_automated_reasoning_policies( + **_request(ListAutomatedReasoningPoliciesInputDict) + ) + await client.list_automated_reasoning_policies( + _request(ListAutomatedReasoningPoliciesInput) + ) + await client.list_automated_reasoning_policies( + _request(ListAutomatedReasoningPoliciesInputDict) + ) + await client.list_automated_reasoning_policy_build_workflows(policy_arn=_) + await client.list_automated_reasoning_policy_build_workflows( + **_request(ListAutomatedReasoningPolicyBuildWorkflowsInputDict) + ) + await client.list_automated_reasoning_policy_build_workflows( + _request(ListAutomatedReasoningPolicyBuildWorkflowsInput) + ) + await client.list_automated_reasoning_policy_build_workflows( + _request(ListAutomatedReasoningPolicyBuildWorkflowsInputDict) + ) + await client.list_automated_reasoning_policy_test_cases(policy_arn=_) + await client.list_automated_reasoning_policy_test_cases( + **_request(ListAutomatedReasoningPolicyTestCasesInputDict) + ) + await client.list_automated_reasoning_policy_test_cases( + _request(ListAutomatedReasoningPolicyTestCasesInput) + ) + await client.list_automated_reasoning_policy_test_cases( + _request(ListAutomatedReasoningPolicyTestCasesInputDict) + ) + await client.list_automated_reasoning_policy_test_results( + policy_arn=_, build_workflow_id=_ + ) + await client.list_automated_reasoning_policy_test_results( + **_request(ListAutomatedReasoningPolicyTestResultsInputDict) + ) + await client.list_automated_reasoning_policy_test_results( + _request(ListAutomatedReasoningPolicyTestResultsInput) + ) + await client.list_automated_reasoning_policy_test_results( + _request(ListAutomatedReasoningPolicyTestResultsInputDict) + ) + await client.list_custom_model_deployments() + await client.list_custom_model_deployments( + **_request(ListCustomModelDeploymentsInputDict) + ) + await client.list_custom_model_deployments( + _request(ListCustomModelDeploymentsInput) + ) + await client.list_custom_model_deployments( + _request(ListCustomModelDeploymentsInputDict) + ) + await client.list_custom_models() + await client.list_custom_models(**_request(ListCustomModelsInputDict)) + await client.list_custom_models(_request(ListCustomModelsInput)) + await client.list_custom_models(_request(ListCustomModelsInputDict)) + await client.list_enforced_guardrails_configuration() + await client.list_enforced_guardrails_configuration( + **_request(ListEnforcedGuardrailsConfigurationInputDict) + ) + await client.list_enforced_guardrails_configuration( + _request(ListEnforcedGuardrailsConfigurationInput) + ) + await client.list_enforced_guardrails_configuration( + _request(ListEnforcedGuardrailsConfigurationInputDict) + ) + await client.list_evaluation_jobs() + await client.list_evaluation_jobs(**_request(ListEvaluationJobsInputDict)) + await client.list_evaluation_jobs(_request(ListEvaluationJobsInput)) + await client.list_evaluation_jobs(_request(ListEvaluationJobsInputDict)) + await client.list_foundation_model_agreement_offers(model_id=_) + await client.list_foundation_model_agreement_offers( + **_request(ListFoundationModelAgreementOffersInputDict) + ) + await client.list_foundation_model_agreement_offers( + _request(ListFoundationModelAgreementOffersInput) + ) + await client.list_foundation_model_agreement_offers( + _request(ListFoundationModelAgreementOffersInputDict) + ) + await client.list_foundation_models() + await client.list_foundation_models(**_request(ListFoundationModelsInputDict)) + await client.list_foundation_models(_request(ListFoundationModelsInput)) + await client.list_foundation_models(_request(ListFoundationModelsInputDict)) + await client.list_guardrails() + await client.list_guardrails(**_request(ListGuardrailsInputDict)) + await client.list_guardrails(_request(ListGuardrailsInput)) + await client.list_guardrails(_request(ListGuardrailsInputDict)) + await client.list_imported_models() + await client.list_imported_models(**_request(ListImportedModelsInputDict)) + await client.list_imported_models(_request(ListImportedModelsInput)) + await client.list_imported_models(_request(ListImportedModelsInputDict)) + await client.list_inference_profiles() + await client.list_inference_profiles(**_request(ListInferenceProfilesInputDict)) + await client.list_inference_profiles(_request(ListInferenceProfilesInput)) + await client.list_inference_profiles(_request(ListInferenceProfilesInputDict)) + await client.list_marketplace_model_endpoints() + await client.list_marketplace_model_endpoints( + **_request(ListMarketplaceModelEndpointsInputDict) + ) + await client.list_marketplace_model_endpoints( + _request(ListMarketplaceModelEndpointsInput) + ) + await client.list_marketplace_model_endpoints( + _request(ListMarketplaceModelEndpointsInputDict) + ) + await client.list_model_copy_jobs() + await client.list_model_copy_jobs(**_request(ListModelCopyJobsInputDict)) + await client.list_model_copy_jobs(_request(ListModelCopyJobsInput)) + await client.list_model_copy_jobs(_request(ListModelCopyJobsInputDict)) + await client.list_model_customization_jobs() + await client.list_model_customization_jobs( + **_request(ListModelCustomizationJobsInputDict) + ) + await client.list_model_customization_jobs( + _request(ListModelCustomizationJobsInput) + ) + await client.list_model_customization_jobs( + _request(ListModelCustomizationJobsInputDict) + ) + await client.list_model_import_jobs() + await client.list_model_import_jobs(**_request(ListModelImportJobsInputDict)) + await client.list_model_import_jobs(_request(ListModelImportJobsInput)) + await client.list_model_import_jobs(_request(ListModelImportJobsInputDict)) + await client.list_model_invocation_jobs() + await client.list_model_invocation_jobs( + **_request(ListModelInvocationJobsInputDict) + ) + await client.list_model_invocation_jobs(_request(ListModelInvocationJobsInput)) + await client.list_model_invocation_jobs(_request(ListModelInvocationJobsInputDict)) + await client.list_prompt_routers() + await client.list_prompt_routers(**_request(ListPromptRoutersInputDict)) + await client.list_prompt_routers(_request(ListPromptRoutersInput)) + await client.list_prompt_routers(_request(ListPromptRoutersInputDict)) + await client.list_provisioned_model_throughputs() + await client.list_provisioned_model_throughputs( + **_request(ListProvisionedModelThroughputsInputDict) + ) + await client.list_provisioned_model_throughputs( + _request(ListProvisionedModelThroughputsInput) + ) + await client.list_provisioned_model_throughputs( + _request(ListProvisionedModelThroughputsInputDict) + ) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.put_account_data_retention(mode=_) + await client.put_account_data_retention( + **_request(PutAccountDataRetentionInputDict) + ) + await client.put_account_data_retention(_request(PutAccountDataRetentionInput)) + await client.put_account_data_retention(_request(PutAccountDataRetentionInputDict)) + await client.put_enforced_guardrail_configuration(guardrail_inference_config=_) + await client.put_enforced_guardrail_configuration( + **_request(PutEnforcedGuardrailConfigurationInputDict) + ) + await client.put_enforced_guardrail_configuration( + _request(PutEnforcedGuardrailConfigurationInput) + ) + await client.put_enforced_guardrail_configuration( + _request(PutEnforcedGuardrailConfigurationInputDict) + ) + await client.put_model_invocation_logging_configuration(logging_config=_) + await client.put_model_invocation_logging_configuration( + **_request(PutModelInvocationLoggingConfigurationInputDict) + ) + await client.put_model_invocation_logging_configuration( + _request(PutModelInvocationLoggingConfigurationInput) + ) + await client.put_model_invocation_logging_configuration( + _request(PutModelInvocationLoggingConfigurationInputDict) + ) + await client.put_resource_policy(resource_arn=_, resource_policy=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.put_use_case_for_model_access(form_data=_) + await client.put_use_case_for_model_access( + **_request(PutUseCaseForModelAccessInputDict) + ) + await client.put_use_case_for_model_access(_request(PutUseCaseForModelAccessInput)) + await client.put_use_case_for_model_access( + _request(PutUseCaseForModelAccessInputDict) + ) + await client.register_marketplace_model_endpoint( + endpoint_identifier=_, model_source_identifier=_ + ) + await client.register_marketplace_model_endpoint( + **_request(RegisterMarketplaceModelEndpointInputDict) + ) + await client.register_marketplace_model_endpoint( + _request(RegisterMarketplaceModelEndpointInput) + ) + await client.register_marketplace_model_endpoint( + _request(RegisterMarketplaceModelEndpointInputDict) + ) + await client.start_automated_reasoning_policy_build_workflow( + policy_arn=_, build_workflow_type=_, source_content=_ + ) + await client.start_automated_reasoning_policy_build_workflow( + **_request(StartAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + await client.start_automated_reasoning_policy_build_workflow( + _request(StartAutomatedReasoningPolicyBuildWorkflowInput) + ) + await client.start_automated_reasoning_policy_build_workflow( + _request(StartAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + await client.start_automated_reasoning_policy_test_workflow( + policy_arn=_, build_workflow_id=_ + ) + await client.start_automated_reasoning_policy_test_workflow( + **_request(StartAutomatedReasoningPolicyTestWorkflowInputDict) + ) + await client.start_automated_reasoning_policy_test_workflow( + _request(StartAutomatedReasoningPolicyTestWorkflowInput) + ) + await client.start_automated_reasoning_policy_test_workflow( + _request(StartAutomatedReasoningPolicyTestWorkflowInputDict) + ) + await client.stop_advanced_prompt_optimization_job(job_identifier=_) + await client.stop_advanced_prompt_optimization_job( + **_request(StopAdvancedPromptOptimizationJobInputDict) + ) + await client.stop_advanced_prompt_optimization_job( + _request(StopAdvancedPromptOptimizationJobInput) + ) + await client.stop_advanced_prompt_optimization_job( + _request(StopAdvancedPromptOptimizationJobInputDict) + ) + await client.stop_evaluation_job(job_identifier=_) + await client.stop_evaluation_job(**_request(StopEvaluationJobInputDict)) + await client.stop_evaluation_job(_request(StopEvaluationJobInput)) + await client.stop_evaluation_job(_request(StopEvaluationJobInputDict)) + await client.stop_model_customization_job(job_identifier=_) + await client.stop_model_customization_job( + **_request(StopModelCustomizationJobInputDict) + ) + await client.stop_model_customization_job(_request(StopModelCustomizationJobInput)) + await client.stop_model_customization_job( + _request(StopModelCustomizationJobInputDict) + ) + await client.stop_model_invocation_job(job_identifier=_) + await client.stop_model_invocation_job(**_request(StopModelInvocationJobInputDict)) + await client.stop_model_invocation_job(_request(StopModelInvocationJobInput)) + await client.stop_model_invocation_job(_request(StopModelInvocationJobInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_automated_reasoning_policy(policy_arn=_, policy_definition=_) + await client.update_automated_reasoning_policy( + **_request(UpdateAutomatedReasoningPolicyInputDict) + ) + await client.update_automated_reasoning_policy( + _request(UpdateAutomatedReasoningPolicyInput) + ) + await client.update_automated_reasoning_policy( + _request(UpdateAutomatedReasoningPolicyInputDict) + ) + await client.update_automated_reasoning_policy_annotations( + policy_arn=_, + build_workflow_id=_, + annotations=_, + last_updated_annotation_set_hash=_, + ) + await client.update_automated_reasoning_policy_annotations( + **_request(UpdateAutomatedReasoningPolicyAnnotationsInputDict) + ) + await client.update_automated_reasoning_policy_annotations( + _request(UpdateAutomatedReasoningPolicyAnnotationsInput) + ) + await client.update_automated_reasoning_policy_annotations( + _request(UpdateAutomatedReasoningPolicyAnnotationsInputDict) + ) + await client.update_automated_reasoning_policy_test_case( + policy_arn=_, + test_case_id=_, + guard_content=_, + last_updated_at=_, + expected_aggregated_findings_result=_, + ) + await client.update_automated_reasoning_policy_test_case( + **_request(UpdateAutomatedReasoningPolicyTestCaseInputDict) + ) + await client.update_automated_reasoning_policy_test_case( + _request(UpdateAutomatedReasoningPolicyTestCaseInput) + ) + await client.update_automated_reasoning_policy_test_case( + _request(UpdateAutomatedReasoningPolicyTestCaseInputDict) + ) + await client.update_custom_model_deployment( + model_arn=_, custom_model_deployment_identifier=_ + ) + await client.update_custom_model_deployment( + **_request(UpdateCustomModelDeploymentInputDict) + ) + await client.update_custom_model_deployment( + _request(UpdateCustomModelDeploymentInput) + ) + await client.update_custom_model_deployment( + _request(UpdateCustomModelDeploymentInputDict) + ) + await client.update_guardrail( + guardrail_identifier=_, + name=_, + blocked_input_messaging=_, + blocked_outputs_messaging=_, + ) + await client.update_guardrail(**_request(UpdateGuardrailInputDict)) + await client.update_guardrail(_request(UpdateGuardrailInput)) + await client.update_guardrail(_request(UpdateGuardrailInputDict)) + await client.update_marketplace_model_endpoint(endpoint_arn=_, endpoint_config=_) + await client.update_marketplace_model_endpoint( + **_request(UpdateMarketplaceModelEndpointInputDict) + ) + await client.update_marketplace_model_endpoint( + _request(UpdateMarketplaceModelEndpointInput) + ) + await client.update_marketplace_model_endpoint( + _request(UpdateMarketplaceModelEndpointInputDict) + ) + await client.update_provisioned_model_throughput(provisioned_model_id=_) + await client.update_provisioned_model_throughput( + **_request(UpdateProvisionedModelThroughputInputDict) + ) + await client.update_provisioned_model_throughput( + _request(UpdateProvisionedModelThroughputInput) + ) + await client.update_provisioned_model_throughput( + _request(UpdateProvisionedModelThroughputInputDict) + ) + + +def check_sync_calls(client: BedrockClient) -> None: + pass + client.batch_delete_advanced_prompt_optimization_job(job_identifiers=_) + client.batch_delete_advanced_prompt_optimization_job( + **_request(BatchDeleteAdvancedPromptOptimizationJobInputDict) + ) + client.batch_delete_advanced_prompt_optimization_job( + _request(BatchDeleteAdvancedPromptOptimizationJobInput) + ) + client.batch_delete_advanced_prompt_optimization_job( + _request(BatchDeleteAdvancedPromptOptimizationJobInputDict) + ) + client.batch_delete_evaluation_job(job_identifiers=_) + client.batch_delete_evaluation_job(**_request(BatchDeleteEvaluationJobInputDict)) + client.batch_delete_evaluation_job(_request(BatchDeleteEvaluationJobInput)) + client.batch_delete_evaluation_job(_request(BatchDeleteEvaluationJobInputDict)) + client.cancel_automated_reasoning_policy_build_workflow( + policy_arn=_, build_workflow_id=_ + ) + client.cancel_automated_reasoning_policy_build_workflow( + **_request(CancelAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + client.cancel_automated_reasoning_policy_build_workflow( + _request(CancelAutomatedReasoningPolicyBuildWorkflowInput) + ) + client.cancel_automated_reasoning_policy_build_workflow( + _request(CancelAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + client.create_advanced_prompt_optimization_job( + job_name=_, input_config=_, output_config=_, model_configurations=_ + ) + client.create_advanced_prompt_optimization_job( + **_request(CreateAdvancedPromptOptimizationJobInputDict) + ) + client.create_advanced_prompt_optimization_job( + _request(CreateAdvancedPromptOptimizationJobInput) + ) + client.create_advanced_prompt_optimization_job( + _request(CreateAdvancedPromptOptimizationJobInputDict) + ) + client.create_automated_reasoning_policy(name=_) + client.create_automated_reasoning_policy( + **_request(CreateAutomatedReasoningPolicyInputDict) + ) + client.create_automated_reasoning_policy( + _request(CreateAutomatedReasoningPolicyInput) + ) + client.create_automated_reasoning_policy( + _request(CreateAutomatedReasoningPolicyInputDict) + ) + client.create_automated_reasoning_policy_test_case( + policy_arn=_, guard_content=_, expected_aggregated_findings_result=_ + ) + client.create_automated_reasoning_policy_test_case( + **_request(CreateAutomatedReasoningPolicyTestCaseInputDict) + ) + client.create_automated_reasoning_policy_test_case( + _request(CreateAutomatedReasoningPolicyTestCaseInput) + ) + client.create_automated_reasoning_policy_test_case( + _request(CreateAutomatedReasoningPolicyTestCaseInputDict) + ) + client.create_automated_reasoning_policy_version( + policy_arn=_, last_updated_definition_hash=_ + ) + client.create_automated_reasoning_policy_version( + **_request(CreateAutomatedReasoningPolicyVersionInputDict) + ) + client.create_automated_reasoning_policy_version( + _request(CreateAutomatedReasoningPolicyVersionInput) + ) + client.create_automated_reasoning_policy_version( + _request(CreateAutomatedReasoningPolicyVersionInputDict) + ) + client.create_custom_model(model_name=_) + client.create_custom_model(**_request(CreateCustomModelInputDict)) + client.create_custom_model(_request(CreateCustomModelInput)) + client.create_custom_model(_request(CreateCustomModelInputDict)) + client.create_custom_model_deployment(model_deployment_name=_, model_arn=_) + client.create_custom_model_deployment( + **_request(CreateCustomModelDeploymentInputDict) + ) + client.create_custom_model_deployment(_request(CreateCustomModelDeploymentInput)) + client.create_custom_model_deployment( + _request(CreateCustomModelDeploymentInputDict) + ) + client.create_evaluation_job( + job_name=_, + role_arn=_, + evaluation_config=_, + inference_config=_, + output_data_config=_, + ) + client.create_evaluation_job(**_request(CreateEvaluationJobInputDict)) + client.create_evaluation_job(_request(CreateEvaluationJobInput)) + client.create_evaluation_job(_request(CreateEvaluationJobInputDict)) + client.create_foundation_model_agreement(offer_token=_, model_id=_) + client.create_foundation_model_agreement( + **_request(CreateFoundationModelAgreementInputDict) + ) + client.create_foundation_model_agreement( + _request(CreateFoundationModelAgreementInput) + ) + client.create_foundation_model_agreement( + _request(CreateFoundationModelAgreementInputDict) + ) + client.create_guardrail( + name=_, blocked_input_messaging=_, blocked_outputs_messaging=_ + ) + client.create_guardrail(**_request(CreateGuardrailInputDict)) + client.create_guardrail(_request(CreateGuardrailInput)) + client.create_guardrail(_request(CreateGuardrailInputDict)) + client.create_guardrail_version(guardrail_identifier=_) + client.create_guardrail_version(**_request(CreateGuardrailVersionInputDict)) + client.create_guardrail_version(_request(CreateGuardrailVersionInput)) + client.create_guardrail_version(_request(CreateGuardrailVersionInputDict)) + client.create_inference_profile(inference_profile_name=_, model_source=_) + client.create_inference_profile(**_request(CreateInferenceProfileInputDict)) + client.create_inference_profile(_request(CreateInferenceProfileInput)) + client.create_inference_profile(_request(CreateInferenceProfileInputDict)) + client.create_marketplace_model_endpoint( + model_source_identifier=_, endpoint_config=_, endpoint_name=_ + ) + client.create_marketplace_model_endpoint( + **_request(CreateMarketplaceModelEndpointInputDict) + ) + client.create_marketplace_model_endpoint( + _request(CreateMarketplaceModelEndpointInput) + ) + client.create_marketplace_model_endpoint( + _request(CreateMarketplaceModelEndpointInputDict) + ) + client.create_model_copy_job(source_model_arn=_, target_model_name=_) + client.create_model_copy_job(**_request(CreateModelCopyJobInputDict)) + client.create_model_copy_job(_request(CreateModelCopyJobInput)) + client.create_model_copy_job(_request(CreateModelCopyJobInputDict)) + client.create_model_customization_job( + job_name=_, + custom_model_name=_, + role_arn=_, + base_model_identifier=_, + training_data_config=_, + output_data_config=_, + ) + client.create_model_customization_job( + **_request(CreateModelCustomizationJobInputDict) + ) + client.create_model_customization_job(_request(CreateModelCustomizationJobInput)) + client.create_model_customization_job( + _request(CreateModelCustomizationJobInputDict) + ) + client.create_model_import_job( + job_name=_, imported_model_name=_, role_arn=_, model_data_source=_ + ) + client.create_model_import_job(**_request(CreateModelImportJobInputDict)) + client.create_model_import_job(_request(CreateModelImportJobInput)) + client.create_model_import_job(_request(CreateModelImportJobInputDict)) + client.create_model_invocation_job( + job_name=_, role_arn=_, model_id=_, input_data_config=_, output_data_config=_ + ) + client.create_model_invocation_job(**_request(CreateModelInvocationJobInputDict)) + client.create_model_invocation_job(_request(CreateModelInvocationJobInput)) + client.create_model_invocation_job(_request(CreateModelInvocationJobInputDict)) + client.create_prompt_router( + prompt_router_name=_, models=_, routing_criteria=_, fallback_model=_ + ) + client.create_prompt_router(**_request(CreatePromptRouterInputDict)) + client.create_prompt_router(_request(CreatePromptRouterInput)) + client.create_prompt_router(_request(CreatePromptRouterInputDict)) + client.create_provisioned_model_throughput( + model_units=_, provisioned_model_name=_, model_id=_ + ) + client.create_provisioned_model_throughput( + **_request(CreateProvisionedModelThroughputInputDict) + ) + client.create_provisioned_model_throughput( + _request(CreateProvisionedModelThroughputInput) + ) + client.create_provisioned_model_throughput( + _request(CreateProvisionedModelThroughputInputDict) + ) + client.delete_automated_reasoning_policy(policy_arn=_) + client.delete_automated_reasoning_policy( + **_request(DeleteAutomatedReasoningPolicyInputDict) + ) + client.delete_automated_reasoning_policy( + _request(DeleteAutomatedReasoningPolicyInput) + ) + client.delete_automated_reasoning_policy( + _request(DeleteAutomatedReasoningPolicyInputDict) + ) + client.delete_automated_reasoning_policy_build_workflow( + policy_arn=_, build_workflow_id=_, last_updated_at=_ + ) + client.delete_automated_reasoning_policy_build_workflow( + **_request(DeleteAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + client.delete_automated_reasoning_policy_build_workflow( + _request(DeleteAutomatedReasoningPolicyBuildWorkflowInput) + ) + client.delete_automated_reasoning_policy_build_workflow( + _request(DeleteAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + client.delete_automated_reasoning_policy_test_case( + policy_arn=_, test_case_id=_, last_updated_at=_ + ) + client.delete_automated_reasoning_policy_test_case( + **_request(DeleteAutomatedReasoningPolicyTestCaseInputDict) + ) + client.delete_automated_reasoning_policy_test_case( + _request(DeleteAutomatedReasoningPolicyTestCaseInput) + ) + client.delete_automated_reasoning_policy_test_case( + _request(DeleteAutomatedReasoningPolicyTestCaseInputDict) + ) + client.delete_custom_model(model_identifier=_) + client.delete_custom_model(**_request(DeleteCustomModelInputDict)) + client.delete_custom_model(_request(DeleteCustomModelInput)) + client.delete_custom_model(_request(DeleteCustomModelInputDict)) + client.delete_custom_model_deployment(custom_model_deployment_identifier=_) + client.delete_custom_model_deployment( + **_request(DeleteCustomModelDeploymentInputDict) + ) + client.delete_custom_model_deployment(_request(DeleteCustomModelDeploymentInput)) + client.delete_custom_model_deployment( + _request(DeleteCustomModelDeploymentInputDict) + ) + client.delete_enforced_guardrail_configuration(config_id=_) + client.delete_enforced_guardrail_configuration( + **_request(DeleteEnforcedGuardrailConfigurationInputDict) + ) + client.delete_enforced_guardrail_configuration( + _request(DeleteEnforcedGuardrailConfigurationInput) + ) + client.delete_enforced_guardrail_configuration( + _request(DeleteEnforcedGuardrailConfigurationInputDict) + ) + client.delete_foundation_model_agreement(model_id=_) + client.delete_foundation_model_agreement( + **_request(DeleteFoundationModelAgreementInputDict) + ) + client.delete_foundation_model_agreement( + _request(DeleteFoundationModelAgreementInput) + ) + client.delete_foundation_model_agreement( + _request(DeleteFoundationModelAgreementInputDict) + ) + client.delete_guardrail(guardrail_identifier=_) + client.delete_guardrail(**_request(DeleteGuardrailInputDict)) + client.delete_guardrail(_request(DeleteGuardrailInput)) + client.delete_guardrail(_request(DeleteGuardrailInputDict)) + client.delete_imported_model(model_identifier=_) + client.delete_imported_model(**_request(DeleteImportedModelInputDict)) + client.delete_imported_model(_request(DeleteImportedModelInput)) + client.delete_imported_model(_request(DeleteImportedModelInputDict)) + client.delete_inference_profile(inference_profile_identifier=_) + client.delete_inference_profile(**_request(DeleteInferenceProfileInputDict)) + client.delete_inference_profile(_request(DeleteInferenceProfileInput)) + client.delete_inference_profile(_request(DeleteInferenceProfileInputDict)) + client.delete_marketplace_model_endpoint(endpoint_arn=_) + client.delete_marketplace_model_endpoint( + **_request(DeleteMarketplaceModelEndpointInputDict) + ) + client.delete_marketplace_model_endpoint( + _request(DeleteMarketplaceModelEndpointInput) + ) + client.delete_marketplace_model_endpoint( + _request(DeleteMarketplaceModelEndpointInputDict) + ) + client.delete_model_invocation_logging_configuration() + client.delete_model_invocation_logging_configuration( + **_request(DeleteModelInvocationLoggingConfigurationInputDict) + ) + client.delete_model_invocation_logging_configuration( + _request(DeleteModelInvocationLoggingConfigurationInput) + ) + client.delete_model_invocation_logging_configuration( + _request(DeleteModelInvocationLoggingConfigurationInputDict) + ) + client.delete_prompt_router(prompt_router_arn=_) + client.delete_prompt_router(**_request(DeletePromptRouterInputDict)) + client.delete_prompt_router(_request(DeletePromptRouterInput)) + client.delete_prompt_router(_request(DeletePromptRouterInputDict)) + client.delete_provisioned_model_throughput(provisioned_model_id=_) + client.delete_provisioned_model_throughput( + **_request(DeleteProvisionedModelThroughputInputDict) + ) + client.delete_provisioned_model_throughput( + _request(DeleteProvisionedModelThroughputInput) + ) + client.delete_provisioned_model_throughput( + _request(DeleteProvisionedModelThroughputInputDict) + ) + client.delete_resource_policy(resource_arn=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.deregister_marketplace_model_endpoint(endpoint_arn=_) + client.deregister_marketplace_model_endpoint( + **_request(DeregisterMarketplaceModelEndpointInputDict) + ) + client.deregister_marketplace_model_endpoint( + _request(DeregisterMarketplaceModelEndpointInput) + ) + client.deregister_marketplace_model_endpoint( + _request(DeregisterMarketplaceModelEndpointInputDict) + ) + client.export_automated_reasoning_policy_version(policy_arn=_) + client.export_automated_reasoning_policy_version( + **_request(ExportAutomatedReasoningPolicyVersionInputDict) + ) + client.export_automated_reasoning_policy_version( + _request(ExportAutomatedReasoningPolicyVersionInput) + ) + client.export_automated_reasoning_policy_version( + _request(ExportAutomatedReasoningPolicyVersionInputDict) + ) + client.get_account_data_retention() + client.get_account_data_retention(**_request(GetAccountDataRetentionInputDict)) + client.get_account_data_retention(_request(GetAccountDataRetentionInput)) + client.get_account_data_retention(_request(GetAccountDataRetentionInputDict)) + client.get_advanced_prompt_optimization_job(job_identifier=_) + client.get_advanced_prompt_optimization_job( + **_request(GetAdvancedPromptOptimizationJobInputDict) + ) + client.get_advanced_prompt_optimization_job( + _request(GetAdvancedPromptOptimizationJobInput) + ) + client.get_advanced_prompt_optimization_job( + _request(GetAdvancedPromptOptimizationJobInputDict) + ) + client.get_automated_reasoning_policy(policy_arn=_) + client.get_automated_reasoning_policy( + **_request(GetAutomatedReasoningPolicyInputDict) + ) + client.get_automated_reasoning_policy(_request(GetAutomatedReasoningPolicyInput)) + client.get_automated_reasoning_policy( + _request(GetAutomatedReasoningPolicyInputDict) + ) + client.get_automated_reasoning_policy_annotations(policy_arn=_, build_workflow_id=_) + client.get_automated_reasoning_policy_annotations( + **_request(GetAutomatedReasoningPolicyAnnotationsInputDict) + ) + client.get_automated_reasoning_policy_annotations( + _request(GetAutomatedReasoningPolicyAnnotationsInput) + ) + client.get_automated_reasoning_policy_annotations( + _request(GetAutomatedReasoningPolicyAnnotationsInputDict) + ) + client.get_automated_reasoning_policy_build_workflow( + policy_arn=_, build_workflow_id=_ + ) + client.get_automated_reasoning_policy_build_workflow( + **_request(GetAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + client.get_automated_reasoning_policy_build_workflow( + _request(GetAutomatedReasoningPolicyBuildWorkflowInput) + ) + client.get_automated_reasoning_policy_build_workflow( + _request(GetAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + client.get_automated_reasoning_policy_build_workflow_result_assets( + policy_arn=_, build_workflow_id=_, asset_type=_ + ) + client.get_automated_reasoning_policy_build_workflow_result_assets( + **_request(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict) + ) + client.get_automated_reasoning_policy_build_workflow_result_assets( + _request(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInput) + ) + client.get_automated_reasoning_policy_build_workflow_result_assets( + _request(GetAutomatedReasoningPolicyBuildWorkflowResultAssetsInputDict) + ) + client.get_automated_reasoning_policy_next_scenario( + policy_arn=_, build_workflow_id=_ + ) + client.get_automated_reasoning_policy_next_scenario( + **_request(GetAutomatedReasoningPolicyNextScenarioInputDict) + ) + client.get_automated_reasoning_policy_next_scenario( + _request(GetAutomatedReasoningPolicyNextScenarioInput) + ) + client.get_automated_reasoning_policy_next_scenario( + _request(GetAutomatedReasoningPolicyNextScenarioInputDict) + ) + client.get_automated_reasoning_policy_test_case(policy_arn=_, test_case_id=_) + client.get_automated_reasoning_policy_test_case( + **_request(GetAutomatedReasoningPolicyTestCaseInputDict) + ) + client.get_automated_reasoning_policy_test_case( + _request(GetAutomatedReasoningPolicyTestCaseInput) + ) + client.get_automated_reasoning_policy_test_case( + _request(GetAutomatedReasoningPolicyTestCaseInputDict) + ) + client.get_automated_reasoning_policy_test_result( + policy_arn=_, build_workflow_id=_, test_case_id=_ + ) + client.get_automated_reasoning_policy_test_result( + **_request(GetAutomatedReasoningPolicyTestResultInputDict) + ) + client.get_automated_reasoning_policy_test_result( + _request(GetAutomatedReasoningPolicyTestResultInput) + ) + client.get_automated_reasoning_policy_test_result( + _request(GetAutomatedReasoningPolicyTestResultInputDict) + ) + client.get_custom_model(model_identifier=_) + client.get_custom_model(**_request(GetCustomModelInputDict)) + client.get_custom_model(_request(GetCustomModelInput)) + client.get_custom_model(_request(GetCustomModelInputDict)) + client.get_custom_model_deployment(custom_model_deployment_identifier=_) + client.get_custom_model_deployment(**_request(GetCustomModelDeploymentInputDict)) + client.get_custom_model_deployment(_request(GetCustomModelDeploymentInput)) + client.get_custom_model_deployment(_request(GetCustomModelDeploymentInputDict)) + client.get_evaluation_job(job_identifier=_) + client.get_evaluation_job(**_request(GetEvaluationJobInputDict)) + client.get_evaluation_job(_request(GetEvaluationJobInput)) + client.get_evaluation_job(_request(GetEvaluationJobInputDict)) + client.get_foundation_model(model_identifier=_) + client.get_foundation_model(**_request(GetFoundationModelInputDict)) + client.get_foundation_model(_request(GetFoundationModelInput)) + client.get_foundation_model(_request(GetFoundationModelInputDict)) + client.get_foundation_model_availability(model_id=_) + client.get_foundation_model_availability( + **_request(GetFoundationModelAvailabilityInputDict) + ) + client.get_foundation_model_availability( + _request(GetFoundationModelAvailabilityInput) + ) + client.get_foundation_model_availability( + _request(GetFoundationModelAvailabilityInputDict) + ) + client.get_guardrail(guardrail_identifier=_) + client.get_guardrail(**_request(GetGuardrailInputDict)) + client.get_guardrail(_request(GetGuardrailInput)) + client.get_guardrail(_request(GetGuardrailInputDict)) + client.get_imported_model(model_identifier=_) + client.get_imported_model(**_request(GetImportedModelInputDict)) + client.get_imported_model(_request(GetImportedModelInput)) + client.get_imported_model(_request(GetImportedModelInputDict)) + client.get_inference_profile(inference_profile_identifier=_) + client.get_inference_profile(**_request(GetInferenceProfileInputDict)) + client.get_inference_profile(_request(GetInferenceProfileInput)) + client.get_inference_profile(_request(GetInferenceProfileInputDict)) + client.get_marketplace_model_endpoint(endpoint_arn=_) + client.get_marketplace_model_endpoint( + **_request(GetMarketplaceModelEndpointInputDict) + ) + client.get_marketplace_model_endpoint(_request(GetMarketplaceModelEndpointInput)) + client.get_marketplace_model_endpoint( + _request(GetMarketplaceModelEndpointInputDict) + ) + client.get_model_copy_job(job_arn=_) + client.get_model_copy_job(**_request(GetModelCopyJobInputDict)) + client.get_model_copy_job(_request(GetModelCopyJobInput)) + client.get_model_copy_job(_request(GetModelCopyJobInputDict)) + client.get_model_customization_job(job_identifier=_) + client.get_model_customization_job(**_request(GetModelCustomizationJobInputDict)) + client.get_model_customization_job(_request(GetModelCustomizationJobInput)) + client.get_model_customization_job(_request(GetModelCustomizationJobInputDict)) + client.get_model_import_job(job_identifier=_) + client.get_model_import_job(**_request(GetModelImportJobInputDict)) + client.get_model_import_job(_request(GetModelImportJobInput)) + client.get_model_import_job(_request(GetModelImportJobInputDict)) + client.get_model_invocation_job(job_identifier=_) + client.get_model_invocation_job(**_request(GetModelInvocationJobInputDict)) + client.get_model_invocation_job(_request(GetModelInvocationJobInput)) + client.get_model_invocation_job(_request(GetModelInvocationJobInputDict)) + client.get_model_invocation_logging_configuration() + client.get_model_invocation_logging_configuration( + **_request(GetModelInvocationLoggingConfigurationInputDict) + ) + client.get_model_invocation_logging_configuration( + _request(GetModelInvocationLoggingConfigurationInput) + ) + client.get_model_invocation_logging_configuration( + _request(GetModelInvocationLoggingConfigurationInputDict) + ) + client.get_prompt_router(prompt_router_arn=_) + client.get_prompt_router(**_request(GetPromptRouterInputDict)) + client.get_prompt_router(_request(GetPromptRouterInput)) + client.get_prompt_router(_request(GetPromptRouterInputDict)) + client.get_provisioned_model_throughput(provisioned_model_id=_) + client.get_provisioned_model_throughput( + **_request(GetProvisionedModelThroughputInputDict) + ) + client.get_provisioned_model_throughput( + _request(GetProvisionedModelThroughputInput) + ) + client.get_provisioned_model_throughput( + _request(GetProvisionedModelThroughputInputDict) + ) + client.get_resource_policy(resource_arn=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.get_use_case_for_model_access() + client.get_use_case_for_model_access(**_request(GetUseCaseForModelAccessInputDict)) + client.get_use_case_for_model_access(_request(GetUseCaseForModelAccessInput)) + client.get_use_case_for_model_access(_request(GetUseCaseForModelAccessInputDict)) + client.list_advanced_prompt_optimization_jobs() + client.list_advanced_prompt_optimization_jobs( + **_request(ListAdvancedPromptOptimizationJobsInputDict) + ) + client.list_advanced_prompt_optimization_jobs( + _request(ListAdvancedPromptOptimizationJobsInput) + ) + client.list_advanced_prompt_optimization_jobs( + _request(ListAdvancedPromptOptimizationJobsInputDict) + ) + client.list_automated_reasoning_policies() + client.list_automated_reasoning_policies( + **_request(ListAutomatedReasoningPoliciesInputDict) + ) + client.list_automated_reasoning_policies( + _request(ListAutomatedReasoningPoliciesInput) + ) + client.list_automated_reasoning_policies( + _request(ListAutomatedReasoningPoliciesInputDict) + ) + client.list_automated_reasoning_policy_build_workflows(policy_arn=_) + client.list_automated_reasoning_policy_build_workflows( + **_request(ListAutomatedReasoningPolicyBuildWorkflowsInputDict) + ) + client.list_automated_reasoning_policy_build_workflows( + _request(ListAutomatedReasoningPolicyBuildWorkflowsInput) + ) + client.list_automated_reasoning_policy_build_workflows( + _request(ListAutomatedReasoningPolicyBuildWorkflowsInputDict) + ) + client.list_automated_reasoning_policy_test_cases(policy_arn=_) + client.list_automated_reasoning_policy_test_cases( + **_request(ListAutomatedReasoningPolicyTestCasesInputDict) + ) + client.list_automated_reasoning_policy_test_cases( + _request(ListAutomatedReasoningPolicyTestCasesInput) + ) + client.list_automated_reasoning_policy_test_cases( + _request(ListAutomatedReasoningPolicyTestCasesInputDict) + ) + client.list_automated_reasoning_policy_test_results( + policy_arn=_, build_workflow_id=_ + ) + client.list_automated_reasoning_policy_test_results( + **_request(ListAutomatedReasoningPolicyTestResultsInputDict) + ) + client.list_automated_reasoning_policy_test_results( + _request(ListAutomatedReasoningPolicyTestResultsInput) + ) + client.list_automated_reasoning_policy_test_results( + _request(ListAutomatedReasoningPolicyTestResultsInputDict) + ) + client.list_custom_model_deployments() + client.list_custom_model_deployments( + **_request(ListCustomModelDeploymentsInputDict) + ) + client.list_custom_model_deployments(_request(ListCustomModelDeploymentsInput)) + client.list_custom_model_deployments(_request(ListCustomModelDeploymentsInputDict)) + client.list_custom_models() + client.list_custom_models(**_request(ListCustomModelsInputDict)) + client.list_custom_models(_request(ListCustomModelsInput)) + client.list_custom_models(_request(ListCustomModelsInputDict)) + client.list_enforced_guardrails_configuration() + client.list_enforced_guardrails_configuration( + **_request(ListEnforcedGuardrailsConfigurationInputDict) + ) + client.list_enforced_guardrails_configuration( + _request(ListEnforcedGuardrailsConfigurationInput) + ) + client.list_enforced_guardrails_configuration( + _request(ListEnforcedGuardrailsConfigurationInputDict) + ) + client.list_evaluation_jobs() + client.list_evaluation_jobs(**_request(ListEvaluationJobsInputDict)) + client.list_evaluation_jobs(_request(ListEvaluationJobsInput)) + client.list_evaluation_jobs(_request(ListEvaluationJobsInputDict)) + client.list_foundation_model_agreement_offers(model_id=_) + client.list_foundation_model_agreement_offers( + **_request(ListFoundationModelAgreementOffersInputDict) + ) + client.list_foundation_model_agreement_offers( + _request(ListFoundationModelAgreementOffersInput) + ) + client.list_foundation_model_agreement_offers( + _request(ListFoundationModelAgreementOffersInputDict) + ) + client.list_foundation_models() + client.list_foundation_models(**_request(ListFoundationModelsInputDict)) + client.list_foundation_models(_request(ListFoundationModelsInput)) + client.list_foundation_models(_request(ListFoundationModelsInputDict)) + client.list_guardrails() + client.list_guardrails(**_request(ListGuardrailsInputDict)) + client.list_guardrails(_request(ListGuardrailsInput)) + client.list_guardrails(_request(ListGuardrailsInputDict)) + client.list_imported_models() + client.list_imported_models(**_request(ListImportedModelsInputDict)) + client.list_imported_models(_request(ListImportedModelsInput)) + client.list_imported_models(_request(ListImportedModelsInputDict)) + client.list_inference_profiles() + client.list_inference_profiles(**_request(ListInferenceProfilesInputDict)) + client.list_inference_profiles(_request(ListInferenceProfilesInput)) + client.list_inference_profiles(_request(ListInferenceProfilesInputDict)) + client.list_marketplace_model_endpoints() + client.list_marketplace_model_endpoints( + **_request(ListMarketplaceModelEndpointsInputDict) + ) + client.list_marketplace_model_endpoints( + _request(ListMarketplaceModelEndpointsInput) + ) + client.list_marketplace_model_endpoints( + _request(ListMarketplaceModelEndpointsInputDict) + ) + client.list_model_copy_jobs() + client.list_model_copy_jobs(**_request(ListModelCopyJobsInputDict)) + client.list_model_copy_jobs(_request(ListModelCopyJobsInput)) + client.list_model_copy_jobs(_request(ListModelCopyJobsInputDict)) + client.list_model_customization_jobs() + client.list_model_customization_jobs( + **_request(ListModelCustomizationJobsInputDict) + ) + client.list_model_customization_jobs(_request(ListModelCustomizationJobsInput)) + client.list_model_customization_jobs(_request(ListModelCustomizationJobsInputDict)) + client.list_model_import_jobs() + client.list_model_import_jobs(**_request(ListModelImportJobsInputDict)) + client.list_model_import_jobs(_request(ListModelImportJobsInput)) + client.list_model_import_jobs(_request(ListModelImportJobsInputDict)) + client.list_model_invocation_jobs() + client.list_model_invocation_jobs(**_request(ListModelInvocationJobsInputDict)) + client.list_model_invocation_jobs(_request(ListModelInvocationJobsInput)) + client.list_model_invocation_jobs(_request(ListModelInvocationJobsInputDict)) + client.list_prompt_routers() + client.list_prompt_routers(**_request(ListPromptRoutersInputDict)) + client.list_prompt_routers(_request(ListPromptRoutersInput)) + client.list_prompt_routers(_request(ListPromptRoutersInputDict)) + client.list_provisioned_model_throughputs() + client.list_provisioned_model_throughputs( + **_request(ListProvisionedModelThroughputsInputDict) + ) + client.list_provisioned_model_throughputs( + _request(ListProvisionedModelThroughputsInput) + ) + client.list_provisioned_model_throughputs( + _request(ListProvisionedModelThroughputsInputDict) + ) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.put_account_data_retention(mode=_) + client.put_account_data_retention(**_request(PutAccountDataRetentionInputDict)) + client.put_account_data_retention(_request(PutAccountDataRetentionInput)) + client.put_account_data_retention(_request(PutAccountDataRetentionInputDict)) + client.put_enforced_guardrail_configuration(guardrail_inference_config=_) + client.put_enforced_guardrail_configuration( + **_request(PutEnforcedGuardrailConfigurationInputDict) + ) + client.put_enforced_guardrail_configuration( + _request(PutEnforcedGuardrailConfigurationInput) + ) + client.put_enforced_guardrail_configuration( + _request(PutEnforcedGuardrailConfigurationInputDict) + ) + client.put_model_invocation_logging_configuration(logging_config=_) + client.put_model_invocation_logging_configuration( + **_request(PutModelInvocationLoggingConfigurationInputDict) + ) + client.put_model_invocation_logging_configuration( + _request(PutModelInvocationLoggingConfigurationInput) + ) + client.put_model_invocation_logging_configuration( + _request(PutModelInvocationLoggingConfigurationInputDict) + ) + client.put_resource_policy(resource_arn=_, resource_policy=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.put_use_case_for_model_access(form_data=_) + client.put_use_case_for_model_access(**_request(PutUseCaseForModelAccessInputDict)) + client.put_use_case_for_model_access(_request(PutUseCaseForModelAccessInput)) + client.put_use_case_for_model_access(_request(PutUseCaseForModelAccessInputDict)) + client.register_marketplace_model_endpoint( + endpoint_identifier=_, model_source_identifier=_ + ) + client.register_marketplace_model_endpoint( + **_request(RegisterMarketplaceModelEndpointInputDict) + ) + client.register_marketplace_model_endpoint( + _request(RegisterMarketplaceModelEndpointInput) + ) + client.register_marketplace_model_endpoint( + _request(RegisterMarketplaceModelEndpointInputDict) + ) + client.start_automated_reasoning_policy_build_workflow( + policy_arn=_, build_workflow_type=_, source_content=_ + ) + client.start_automated_reasoning_policy_build_workflow( + **_request(StartAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + client.start_automated_reasoning_policy_build_workflow( + _request(StartAutomatedReasoningPolicyBuildWorkflowInput) + ) + client.start_automated_reasoning_policy_build_workflow( + _request(StartAutomatedReasoningPolicyBuildWorkflowInputDict) + ) + client.start_automated_reasoning_policy_test_workflow( + policy_arn=_, build_workflow_id=_ + ) + client.start_automated_reasoning_policy_test_workflow( + **_request(StartAutomatedReasoningPolicyTestWorkflowInputDict) + ) + client.start_automated_reasoning_policy_test_workflow( + _request(StartAutomatedReasoningPolicyTestWorkflowInput) + ) + client.start_automated_reasoning_policy_test_workflow( + _request(StartAutomatedReasoningPolicyTestWorkflowInputDict) + ) + client.stop_advanced_prompt_optimization_job(job_identifier=_) + client.stop_advanced_prompt_optimization_job( + **_request(StopAdvancedPromptOptimizationJobInputDict) + ) + client.stop_advanced_prompt_optimization_job( + _request(StopAdvancedPromptOptimizationJobInput) + ) + client.stop_advanced_prompt_optimization_job( + _request(StopAdvancedPromptOptimizationJobInputDict) + ) + client.stop_evaluation_job(job_identifier=_) + client.stop_evaluation_job(**_request(StopEvaluationJobInputDict)) + client.stop_evaluation_job(_request(StopEvaluationJobInput)) + client.stop_evaluation_job(_request(StopEvaluationJobInputDict)) + client.stop_model_customization_job(job_identifier=_) + client.stop_model_customization_job(**_request(StopModelCustomizationJobInputDict)) + client.stop_model_customization_job(_request(StopModelCustomizationJobInput)) + client.stop_model_customization_job(_request(StopModelCustomizationJobInputDict)) + client.stop_model_invocation_job(job_identifier=_) + client.stop_model_invocation_job(**_request(StopModelInvocationJobInputDict)) + client.stop_model_invocation_job(_request(StopModelInvocationJobInput)) + client.stop_model_invocation_job(_request(StopModelInvocationJobInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_automated_reasoning_policy(policy_arn=_, policy_definition=_) + client.update_automated_reasoning_policy( + **_request(UpdateAutomatedReasoningPolicyInputDict) + ) + client.update_automated_reasoning_policy( + _request(UpdateAutomatedReasoningPolicyInput) + ) + client.update_automated_reasoning_policy( + _request(UpdateAutomatedReasoningPolicyInputDict) + ) + client.update_automated_reasoning_policy_annotations( + policy_arn=_, + build_workflow_id=_, + annotations=_, + last_updated_annotation_set_hash=_, + ) + client.update_automated_reasoning_policy_annotations( + **_request(UpdateAutomatedReasoningPolicyAnnotationsInputDict) + ) + client.update_automated_reasoning_policy_annotations( + _request(UpdateAutomatedReasoningPolicyAnnotationsInput) + ) + client.update_automated_reasoning_policy_annotations( + _request(UpdateAutomatedReasoningPolicyAnnotationsInputDict) + ) + client.update_automated_reasoning_policy_test_case( + policy_arn=_, + test_case_id=_, + guard_content=_, + last_updated_at=_, + expected_aggregated_findings_result=_, + ) + client.update_automated_reasoning_policy_test_case( + **_request(UpdateAutomatedReasoningPolicyTestCaseInputDict) + ) + client.update_automated_reasoning_policy_test_case( + _request(UpdateAutomatedReasoningPolicyTestCaseInput) + ) + client.update_automated_reasoning_policy_test_case( + _request(UpdateAutomatedReasoningPolicyTestCaseInputDict) + ) + client.update_custom_model_deployment( + model_arn=_, custom_model_deployment_identifier=_ + ) + client.update_custom_model_deployment( + **_request(UpdateCustomModelDeploymentInputDict) + ) + client.update_custom_model_deployment(_request(UpdateCustomModelDeploymentInput)) + client.update_custom_model_deployment( + _request(UpdateCustomModelDeploymentInputDict) + ) + client.update_guardrail( + guardrail_identifier=_, + name=_, + blocked_input_messaging=_, + blocked_outputs_messaging=_, + ) + client.update_guardrail(**_request(UpdateGuardrailInputDict)) + client.update_guardrail(_request(UpdateGuardrailInput)) + client.update_guardrail(_request(UpdateGuardrailInputDict)) + client.update_marketplace_model_endpoint(endpoint_arn=_, endpoint_config=_) + client.update_marketplace_model_endpoint( + **_request(UpdateMarketplaceModelEndpointInputDict) + ) + client.update_marketplace_model_endpoint( + _request(UpdateMarketplaceModelEndpointInput) + ) + client.update_marketplace_model_endpoint( + _request(UpdateMarketplaceModelEndpointInputDict) + ) + client.update_provisioned_model_throughput(provisioned_model_id=_) + client.update_provisioned_model_throughput( + **_request(UpdateProvisionedModelThroughputInputDict) + ) + client.update_provisioned_model_throughput( + _request(UpdateProvisionedModelThroughputInput) + ) + client.update_provisioned_model_throughput( + _request(UpdateProvisionedModelThroughputInputDict) + ) diff --git a/clients/aws-sdk-cloudformation/pyproject.toml b/clients/aws-sdk-cloudformation/pyproject.toml index 6590a5f76..8acebbb23 100644 --- a/clients/aws-sdk-cloudformation/pyproject.toml +++ b/clients/aws-sdk-cloudformation/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[xml]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[xml]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/models_0.pyi b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/models_0.pyi index ac8b8d873..d54f45fc3 100644 --- a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/models_0.pyi +++ b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/models_0.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -11,21 +13,28 @@ from ..models import ( RequiredActivatedType, ResourceChange, ResourceDefinition, + ResourceDefinitionDict, ResourceDetail, ResourceIdentifierSummary, ResourceMapping, + ResourceMappingDict, ResourceScanSummary, ResourceToImport, + ResourceToImportDict, RollbackConfiguration, + RollbackConfigurationDict, ScanFilter, ScannedResource, ScannedResourceIdentifier, + ScannedResourceIdentifierDict, ServiceError, Stack, StackDefinition, + StackDefinitionDict, StackEvent, StackInstance, StackInstanceFilter, + StackInstanceFilterDict, StackInstanceResourceDriftsSummary, StackInstanceSummary, StackRefactorAction, @@ -38,18 +47,24 @@ from ..models import ( StackSetAutoDeploymentTargetSummary, StackSetOperation, StackSetOperationPreferences, + StackSetOperationPreferencesDict, StackSetOperationResultSummary, StackSetOperationSummary, StackSetSummary, StackSummary, Tag, + TagDict, TemplateConfiguration, + TemplateConfigurationDict, TemplateProgress, TemplateSummary, TemplateSummaryConfig, + TemplateSummaryConfigDict, TypeConfigurationDetails, TypeConfigurationIdentifier, + TypeConfigurationIdentifierDict, TypeFilters, + TypeFiltersDict, TypeSummary, TypeVersionSummary, Warnings, @@ -158,6 +173,9 @@ class AccountLimit(_SerdeShape): class ActivateOrganizationsAccessInput(_SerdeShape): """Dataclass for ActivateOrganizationsAccessInput structure.""" +class ActivateOrganizationsAccessInputDict(TypedDict, total=False): + """Dictionary form of `ActivateOrganizationsAccessInput`.""" + @dataclass(kw_only=True) class ActivateOrganizationsAccessOutput(_SerdeShape): """Dataclass for ActivateOrganizationsAccessOutput structure.""" @@ -248,6 +266,83 @@ class ActivateTypeInput(_SerdeShape): You can specify `MajorVersion` or `VersionBump`, but not both. """ +class ActivateTypeInputDict(TypedDict, total=False): + """Dictionary form of `ActivateTypeInput`.""" + + type: str | None + """ + The extension type. + + Conditional: You must specify `PublicTypeArn`, or `TypeName`, `Type`, + and `PublisherId`. + """ + public_type_arn: str | None + """ + The Amazon Resource Name (ARN) of the public extension. + + Conditional: You must specify `PublicTypeArn`, or `TypeName`, `Type`, + and `PublisherId`. + """ + publisher_id: str | None + """ + The ID of the extension publisher. + + Conditional: You must specify `PublicTypeArn`, or `TypeName`, `Type`, + and `PublisherId`. + """ + type_name: str | None + """ + The name of the extension. + + Conditional: You must specify `PublicTypeArn`, or `TypeName`, `Type`, + and `PublisherId`. + """ + type_name_alias: str | None + """ + An alias to assign to the public extension in this account and Region. + If you specify an alias for the extension, CloudFormation treats the + alias as the extension type name within this account and Region. You + must use the alias to refer to the extension in your templates, API + calls, and CloudFormation console. + + An extension alias must be unique within a given account and Region. You + can activate the same public resource multiple times in the same account + and Region, using different type name aliases. + """ + auto_update: bool | None + """ + Whether to automatically update the extension in this account and Region + when a new *minor* version is published by the extension publisher. + Major versions released by the publisher must be manually updated. + + The default is `true`. + """ + logging_config: LoggingConfig | LoggingConfigDict | None + """Contains logging configuration information for an extension.""" + execution_role_arn: str | None + """The name of the IAM execution role to use to activate the extension.""" + version_bump: str | None + """ + Manually updates a previously-activated type to a new major or minor + version, if available. You can also use this parameter to update the + value of `AutoUpdate`. + + - `MAJOR`: CloudFormation updates the extension to the newest major + version, if one is available. + + - `MINOR`: CloudFormation updates the extension to the newest minor + version, if one is available. + """ + major_version: int | None + """ + The major version of this extension you want to activate, if multiple + major versions are available. The default is the latest major version. + CloudFormation uses the latest available *minor* version of the major + version selected. + + You can specify `MajorVersion` or `VersionBump`, but not both. + """ + @dataclass(kw_only=True) class ActivateTypeOutput(_SerdeShape): """Dataclass for ActivateTypeOutput structure.""" @@ -364,6 +459,31 @@ class AutoDeployment(_SerdeShape): successfully before this StackSet's operation begins. """ +class AutoDeploymentDict(TypedDict, total=False): + """Dictionary form of `AutoDeployment`.""" + + enabled: bool | None + """ + If set to `true`, StackSets automatically deploys additional stack + instances to Organizations accounts that are added to a target + organization or organizational unit (OU) in the specified Regions. If an + account is removed from a target organization or OU, StackSets deletes + stack instances from the account in the specified Regions. + """ + retain_stacks_on_account_removal: bool | None + """ + If set to `true`, stack resources are retained when an account is + removed from a target organization or OU. If set to `false`, stack + resources are deleted. Specify only if `Enabled` is set to `True`. + """ + depends_on: Sequence[str] | None + """ + A list of StackSet ARNs that this StackSet depends on for + auto-deployment operations. When auto-deployment is triggered, + operations will be sequenced to ensure all dependencies complete + successfully before this StackSet's operation begins. + """ + @dataclass(kw_only=True) class BatchDescribeTypeConfigurationsError(_SerdeShape): """ @@ -388,6 +508,14 @@ class BatchDescribeTypeConfigurationsInput(_SerdeShape): type_configuration_identifiers: list[TypeConfigurationIdentifier] | None = ... """The list of identifiers for the desired extension configurations.""" +class BatchDescribeTypeConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `BatchDescribeTypeConfigurationsInput`.""" + + type_configuration_identifiers: Required[ + Sequence[TypeConfigurationIdentifier | TypeConfigurationIdentifierDict] + ] + """The list of identifiers for the desired extension configurations.""" + @dataclass(kw_only=True) class BatchDescribeTypeConfigurationsOutput(_SerdeShape): """Dataclass for BatchDescribeTypeConfigurationsOutput structure.""" @@ -455,6 +583,32 @@ class CancelUpdateStackInput(_SerdeShape): CloudFormation successfully received them. """ +class CancelUpdateStackInputDict(TypedDict, total=False): + """Dictionary form of `CancelUpdateStackInput`.""" + + stack_name: Required[str] + """ + Note: + If you don't pass a parameter to `StackName`, the API returns a + response that describes all resources in the account. + + The IAM policy below can be added to IAM policies when you want to limit + resource-level permissions and avoid returning a response when no + parameter is sent in the request: + + `{ "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }` + + The name or the unique stack ID that's associated with the stack. + """ + client_request_token: str | None + """ + A unique identifier for this `CancelUpdateStack` request. Specify this + token if you plan to retry requests so that CloudFormation knows that + you're not attempting to cancel an update on a stack with the same + name. You might retry `CancelUpdateStack` requests to ensure that + CloudFormation successfully received them. + """ + @dataclass(kw_only=True) class CancelUpdateStackOutput(_SerdeShape): """Dataclass for CancelUpdateStackOutput structure.""" @@ -816,6 +970,115 @@ class ContinueUpdateRollbackInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class ContinueUpdateRollbackInputDict(TypedDict, total=False): + """Dictionary form of `ContinueUpdateRollbackInput`.""" + + stack_name: Required[str] + """ + The name or the unique ID of the stack that you want to continue rolling + back. + + Note: + Don't specify the name of a nested stack (a stack that was created by + using the `AWS::CloudFormation::Stack` resource). Instead, use this + operation on the parent stack (the stack that contains the + `AWS::CloudFormation::Stack` resource). + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role that CloudFormation + assumes to roll back the stack. CloudFormation uses the role's + credentials to make calls on your behalf. CloudFormation always uses + this role for all future operations on the stack. Provided that users + have permission to operate on the stack, CloudFormation uses this role + even if the users don't have permission to pass it. Ensure that the + role grants least permission. + + If you don't specify a value, CloudFormation uses the role that was + previously associated with the stack. If no role is available, + CloudFormation uses a temporary session that's generated from your user + credentials. + """ + resources_to_skip: Sequence[str] | None + """ + A list of the logical IDs of the resources that CloudFormation skips + during the continue update rollback operation. You can specify only + resources that are in the `UPDATE_FAILED` state because a rollback + failed. You can't specify resources that are in the `UPDATE_FAILED` + state for other reasons, for example, because an update was canceled. To + check why a resource update failed, use the DescribeStackResources + action, and view the resource status reason. + + Warning: + Specify this property to skip rolling back resources that CloudFormation + can't successfully roll back. We recommend that you + [troubleshoot](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) + resources before skipping them. CloudFormation sets the status of the + specified resources to `UPDATE_COMPLETE` and continues to roll back the + stack. After the rollback is complete, the state of the skipped + resources will be inconsistent with the state of the resources in the + stack template. Before performing another stack update, you must update + the stack or resources to be consistent with each other. If you don't, + subsequent stack updates might fail, and the stack will become + unrecoverable. + + Specify the minimum number of resources required to successfully roll + back your stack. For example, a failed resource update might cause + dependent resources to fail. In this case, it might not be necessary to + skip the dependent resources. + + To skip resources that are part of nested stacks, use the following + format: `NestedStackName.ResourceLogicalID`. If you want to specify the + logical ID of a stack resource (`Type: AWS::CloudFormation::Stack`) in + the `ResourcesToSkip` list, then its corresponding embedded stack must + be in one of the following states: `DELETE_IN_PROGRESS`, + `DELETE_COMPLETE`, or `DELETE_FAILED`. + + Note: + Don't confuse a child stack's name with its corresponding logical ID + defined in the parent stack. For an example of a continue update + rollback operation with nested stacks, see [Continue rolling back from + failed nested stack + updates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html#nested-stacks). + """ + client_request_token: str | None + """ + A unique identifier for this `ContinueUpdateRollback` request. Specify + this token if you plan to retry requests so that CloudFormation knows + that you're not attempting to continue the rollback to a stack with the + same name. You might retry `ContinueUpdateRollback` requests to ensure + that CloudFormation successfully received them. + """ + force_rollback: bool | None + """ + Specifies whether CloudFormation forces the rollback to continue by + skipping resources currently in the `UPDATE_FAILED` state. Use this + instead of listing each resource individually in `ResourcesToSkip`. Only + resources that entered the `UPDATE_FAILED` state because a rollback + failed are skipped. If you don't specify a value, the default is + `false` and CloudFormation doesn't skip any resources. + + `ForceRollback` and `ResourcesToSkip` are mutually exclusive. Specifying + both in the same request returns a validation error. + + Warning: + We recommend that you + [troubleshoot](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) + resources before skipping them. CloudFormation sets the status of the + skipped resources to `UPDATE_COMPLETE` and continues to roll back the + stack, including resources in nested stacks. After the rollback + completes, the skipped resources no longer match the resources in the + stack template. Before performing another stack update, you must update + the stack or resources to be consistent with each other. If you don't, + subsequent stack updates might fail, and the stack will become + unrecoverable. + + Drift detection reports skipped resources as `NOT_CHECKED`. For + guidance, see [Continue rolling back an + update](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class ContinueUpdateRollbackOutput(_SerdeShape): """The output for a ContinueUpdateRollback operation.""" @@ -1130,78 +1393,680 @@ class CreateChangeSetInput(_SerdeShape): Default: `false` """ -@dataclass(kw_only=True) -class CreateChangeSetOutput(_SerdeShape): - """The output for the CreateChangeSet action.""" +class CreateChangeSetInputDict(TypedDict, total=False): + """Dictionary form of `CreateChangeSetInput`.""" - id: str | None = ... - """The Amazon Resource Name (ARN) of the change set.""" - stack_id: str | None = ... - """The unique ID of the stack.""" - response_metadata: ResponseMetadata = ... + stack_name: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The name or the unique ID of the stack for which you are creating a + change set. CloudFormation generates the change set by comparing this + stack's information with the information that you submit, such as a + modified template or different parameter input values. """ + template_body: str | None + """ + A structure that contains the body of the revised template, with a + minimum length of 1 byte and a maximum length of 51,200 bytes. + CloudFormation generates the change set by comparing this template with + the template of the stack that you specified. -@dataclass(kw_only=True) -class CreatedButModifiedException(ServiceError, _SerdeShape): - """The specified resource exists, but has been changed.""" - - response_metadata: ResponseMetadata = ... + Conditional: You must specify only one of the following parameters: + `TemplateBody`, `TemplateURL`, or set the `UsePreviousTemplate` to + `true`. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + template_url: str | None """ + The URL of the file that contains the revised template. The URL must + point to a template (max size: 1 MB) that's located in an Amazon S3 + bucket or a Systems Manager document. CloudFormation generates the + change set by comparing this template with the stack that you specified. + The location for an Amazon S3 bucket must start with `https://`. URLs + from S3 static websites are not supported. + + Conditional: You must specify only one of the following parameters: + `TemplateBody`, `TemplateURL`, or set the `UsePreviousTemplate` to + `true`. + """ + use_previous_template: bool | None + """ + Whether to reuse the template that's associated with the stack to + create the change set. + + When using templates with the `AWS::LanguageExtensions` transform, + provide the template instead of using `UsePreviousTemplate` to ensure + new parameter values and Systems Manager parameter updates are applied + correctly. For more information, see [AWS::LanguageExtensions + transform](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/transform-aws-languageextensions.html). + + Conditional: You must specify only one of the following parameters: + `TemplateBody`, `TemplateURL`, or set the `UsePreviousTemplate` to + `true`. + """ + parameters: Sequence[Parameter | ParameterDict] | None + """ + A list of `Parameter` structures that specify input parameters for the + change set. For more information, see the Parameter data type. + """ + capabilities: Sequence[str] | None + """ + In some cases, you must explicitly acknowledge that your stack template + contains certain capabilities in order for CloudFormation to create the + stack. + + - `CAPABILITY_IAM` and `CAPABILITY_NAMED_IAM` + + Some stack templates might include resources that can affect + permissions in your Amazon Web Services account, for example, by + creating new IAM users. For those stacks, you must explicitly + acknowledge this by specifying one of these capabilities. + + The following IAM resources require you to specify either the + `CAPABILITY_IAM` or `CAPABILITY_NAMED_IAM` capability. + + - If you have IAM resources, you can specify either capability. + + - If you have IAM resources with custom names, you *must* specify + `CAPABILITY_NAMED_IAM`. + + - If you don't specify either of these capabilities, CloudFormation + returns an `InsufficientCapabilities` error. + + If your stack template contains these resources, we suggest that you + review all permissions associated with them and edit their permissions + if necessary. + + - [AWS::IAM::AccessKey](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-accesskey.html) + + - [AWS::IAM::Group](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-group.html) + + - [AWS::IAM::InstanceProfile](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-instanceprofile.html) + + - [AWS::IAM::ManagedPolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-managedpolicy.html) + + - [AWS::IAM::Policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-policy.html) + + - [AWS::IAM::Role](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-role.html) + + - [AWS::IAM::User](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-user.html) + + - [AWS::IAM::UserToGroupAddition](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-usertogroupaddition.html) + + For more information, see [Acknowledging IAM resources in + CloudFormation + templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html#using-iam-capabilities). + + - `CAPABILITY_AUTO_EXPAND` + + Some template contain macros. Macros perform custom processing on + templates; this can include simple actions like find-and-replace + operations, all the way to extensive transformations of entire + templates. Because of this, users typically create a change set from + the processed template, so that they can review the changes resulting + from the macros before actually creating the stack. If your stack + template contains one or more macros, and you choose to create a stack + directly from the processed template, without first reviewing the + resulting changes in a change set, you must acknowledge this + capability. This includes the + [AWS::Include](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-include.html) + and + [AWS::Serverless](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) + transforms, which are macros hosted by CloudFormation. + + Note: + This capacity doesn't apply to creating change sets, and specifying + it when creating change sets has no effect. + + If you want to create a stack from a stack template that contains + macros *and* nested stacks, you must create or update the stack + directly from the template using the CreateStack or UpdateStack + action, and specifying this capability. + + For more information about macros, see [Perform custom processing on + CloudFormation templates with template + macros](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). + + Note: + Only one of the `Capabilities` and `ResourceType` parameters can be + specified. + """ + resource_types: Sequence[str] | None + """ + Specifies which resource types you can work with, such as + `AWS::EC2::Instance` or `Custom::MyCustomInstance`. + + If the list of resource types doesn't include a resource type that + you're updating, the stack update fails. By default, CloudFormation + grants permissions to all resource types. IAM uses this parameter for + condition keys in IAM policies for CloudFormation. For more information, + see [Control CloudFormation access with Identity and Access + Management](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html) + in the *CloudFormation User Guide*. + + Note: + Only one of the `Capabilities` and `ResourceType` parameters can be + specified. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role that CloudFormation + assumes when executing the change set. CloudFormation uses the role's + credentials to make calls on your behalf. CloudFormation uses this role + for all future operations on the stack. Provided that users have + permission to operate on the stack, CloudFormation uses this role even + if the users don't have permission to pass it. Ensure that the role + grants least permission. + + If you don't specify a value, CloudFormation uses the role that was + previously associated with the stack. If no role is available, + CloudFormation uses a temporary session that is generated from your user + credentials. + """ + rollback_configuration: RollbackConfiguration | RollbackConfigurationDict | None + """ + The rollback triggers for CloudFormation to monitor during stack + creation and updating operations, and for the specified monitoring + period afterwards. + """ + notification_ar_ns: Sequence[str] | None + """ + The Amazon Resource Names (ARNs) of Amazon SNS topics that + CloudFormation associates with the stack. To remove all associated + notification topics, specify an empty list. + """ + tags: Sequence[Tag | TagDict] | None + """ + Key-value pairs to associate with this stack. CloudFormation also + propagates these tags to resources in the stack. You can specify a + maximum of 50 tags. + """ + change_set_name: Required[str] + """ + The name of the change set. The name must be unique among all change + sets that are associated with the specified stack. + + A change set name can contain only alphanumeric, case sensitive + characters, and hyphens. It must start with an alphabetical character + and can't exceed 128 characters. + """ + client_token: str | None + """ + A unique identifier for this `CreateChangeSet` request. Specify this + token if you plan to retry requests so that CloudFormation knows that + you're not attempting to create another change set with the same name. + You might retry `CreateChangeSet` requests to ensure that CloudFormation + successfully received them. + """ + description: str | None + """A description to help you identify this change set.""" + change_set_type: str | None + """ + The type of change set operation. To create a change set for a new + stack, specify `CREATE`. To create a change set for an existing stack, + specify `UPDATE`. To create a change set for an import operation, + specify `IMPORT`. + + If you create a change set for a new stack, CloudFormation creates a + stack with a unique stack ID, but no template or resources. The stack + will be in the `REVIEW_IN_PROGRESS` state until you execute the change + set. + + By default, CloudFormation specifies `UPDATE`. You can't use the + `UPDATE` type to create a change set for a new stack or the `CREATE` + type to create a change set for an existing stack. + """ + resources_to_import: Sequence[ResourceToImport | ResourceToImportDict] | None + """The resources to import into your stack.""" + include_nested_stacks: bool | None + """ + Creates a change set for the all nested stacks specified in the + template. The default behavior of this action is set to `False`. To + include nested sets in a change set, specify `True`. + """ + on_stack_failure: str | None + """ + Determines what action will be taken if stack creation fails. If this + parameter is specified, the `DisableRollback` parameter to the + [ExecuteChangeSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html) + API operation must not be specified. This must be one of these values: + + - `DELETE` - Deletes the change set if the stack creation fails. This is + only valid when the `ChangeSetType` parameter is set to `CREATE`. If + the deletion of the stack fails, the status of the stack is + `DELETE_FAILED`. + + - `DO_NOTHING` - if the stack creation fails, do nothing. This is + equivalent to specifying `true` for the `DisableRollback` parameter to + the + [ExecuteChangeSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html) + API operation. + + - `ROLLBACK` - if the stack creation fails, roll back the stack. This is + equivalent to specifying `false` for the `DisableRollback` parameter + to the + [ExecuteChangeSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html) + API operation. + + For nested stacks, when the `OnStackFailure` parameter is set to + `DELETE` for the change set for the parent stack, any failure in a child + stack will cause the parent stack creation to fail and all stacks to be + deleted. + """ + import_existing_resources: bool | None + """ + Indicates if the change set auto-imports resources that already exist. + For more information, see [Import Amazon Web Services resources into a + CloudFormation stack + automatically](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/import-resources-automatically.html) + in the *CloudFormation User Guide*. + + Note: + This parameter can only import resources that have custom names in + templates. For more information, see [name + type](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-name.html) + in the *CloudFormation User Guide*. To import resources that do not + accept custom names, such as EC2 instances, use the `ResourcesToImport` + parameter instead. + """ + deployment_mode: str | None + """ + Determines how CloudFormation handles configuration drift during + deployment. + + - `REVERT_DRIFT` -- Creates a drift-aware change set that brings actual + resource states in line with template definitions. Provides a + three-way comparison between actual state, previous deployment state, + and desired state. + + For more information, see [Using drift-aware change + sets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/drift-aware-change-sets.html) + in the *CloudFormation User Guide*. + """ + deployment_config: DeploymentConfig | DeploymentConfigDict | None + """ + The deployment configuration for this stack operation, including the + deployment mode. + """ + disable_validation: bool | None + """ + Set to `true` to disable pre-deployment validations in changeset or + stack operations. + + Default: `false` + """ + +@dataclass(kw_only=True) +class CreateChangeSetOutput(_SerdeShape): + """The output for the CreateChangeSet action.""" + + id: str | None = ... + """The Amazon Resource Name (ARN) of the change set.""" + stack_id: str | None = ... + """The unique ID of the stack.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreatedButModifiedException(ServiceError, _SerdeShape): + """The specified resource exists, but has been changed.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateGeneratedTemplateInput(_SerdeShape): + """Dataclass for CreateGeneratedTemplateInput structure.""" -@dataclass(kw_only=True) -class CreateGeneratedTemplateInput(_SerdeShape): - """Dataclass for CreateGeneratedTemplateInput structure.""" - resources: list[ResourceDefinition] | None = ... """ - An optional list of resources to be included in the generated template. + An optional list of resources to be included in the generated template. + + If no resources are specified,the template will be created without any + resources. Resources can be added to the template using the + `UpdateGeneratedTemplate` API action. + """ + generated_template_name: str | None = ... + """The name assigned to the generated template.""" + stack_name: str | None = ... + """ + An optional name or ARN of a stack to use as the base stack for the + generated template. + """ + template_configuration: TemplateConfiguration | None = ... + """ + The configuration details of the generated template, including the + `DeletionPolicy` and `UpdateReplacePolicy`. + """ + +class CreateGeneratedTemplateInputDict(TypedDict, total=False): + """Dictionary form of `CreateGeneratedTemplateInput`.""" + + resources: Sequence[ResourceDefinition | ResourceDefinitionDict] | None + """ + An optional list of resources to be included in the generated template. + + If no resources are specified,the template will be created without any + resources. Resources can be added to the template using the + `UpdateGeneratedTemplate` API action. + """ + generated_template_name: Required[str] + """The name assigned to the generated template.""" + stack_name: str | None + """ + An optional name or ARN of a stack to use as the base stack for the + generated template. + """ + template_configuration: TemplateConfiguration | TemplateConfigurationDict | None + """ + The configuration details of the generated template, including the + `DeletionPolicy` and `UpdateReplacePolicy`. + """ + +@dataclass(kw_only=True) +class CreateGeneratedTemplateOutput(_SerdeShape): + """Dataclass for CreateGeneratedTemplateOutput structure.""" + + generated_template_id: str | None = ... + """The ID of the generated template.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateStackInput(_SerdeShape): + """The input for CreateStack action.""" + + stack_name: str | None = ... + """ + The name that's associated with the stack. The name must be unique in + the Region in which you are creating the stack. + + Note: + A stack name can contain only alphanumeric characters (case sensitive) + and hyphens. It must start with an alphabetical character and can't be + longer than 128 characters. + """ + template_body: str | None = ... + """ + Structure that contains the template body with a minimum length of 1 + byte and a maximum length of 51,200 bytes. + + Conditional: You must specify either `TemplateBody` or `TemplateURL`, + but not both. + """ + template_url: str | None = ... + """ + The URL of a file that contains the template body. The URL must point to + a template (max size: 1 MB) that's located in an Amazon S3 bucket or a + Systems Manager document. The location for an Amazon S3 bucket must + start with `https://`. URLs from S3 static websites are not supported. + + Conditional: You must specify either the `TemplateBody` or the + `TemplateURL` parameter, but not both. + """ + parameters: list[Parameter] | None = ... + """ + A list of `Parameter` structures that specify input parameters for the + stack. For more information, see the + [Parameter](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) + data type. + """ + disable_rollback: bool | None = ... + """ + Set to `true` to disable rollback of the stack if stack creation failed. + You can specify either `DisableRollback` or `OnFailure`, but not both. + + Default: `false` + """ + rollback_configuration: RollbackConfiguration | None = ... + """ + The rollback triggers for CloudFormation to monitor during stack + creation and updating operations, and for the specified monitoring + period afterwards. + """ + timeout_in_minutes: int | None = ... + """ + The amount of time that can pass before the stack status becomes + `CREATE_FAILED`; if `DisableRollback` is not set or is set to `false`, + the stack will be rolled back. + """ + notification_ar_ns: list[str] | None = ... + """ + The Amazon SNS topic ARNs to publish stack related events. You can find + your Amazon SNS topic ARNs using the Amazon SNS console or your Command + Line Interface (CLI). + """ + capabilities: list[str] | None = ... + """ + In some cases, you must explicitly acknowledge that your stack template + contains certain capabilities in order for CloudFormation to create the + stack. + + - `CAPABILITY_IAM` and `CAPABILITY_NAMED_IAM` + + Some stack templates might include resources that can affect + permissions in your Amazon Web Services account; for example, by + creating new IAM users. For those stacks, you must explicitly + acknowledge this by specifying one of these capabilities. + + The following IAM resources require you to specify either the + `CAPABILITY_IAM` or `CAPABILITY_NAMED_IAM` capability. + + - If you have IAM resources, you can specify either capability. + + - If you have IAM resources with custom names, you *must* specify + `CAPABILITY_NAMED_IAM`. + + - If you don't specify either of these capabilities, CloudFormation + returns an `InsufficientCapabilities` error. + + If your stack template contains these resources, we recommend that you + review all permissions associated with them and edit their permissions + if necessary. + + - [AWS::IAM::AccessKey](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-accesskey.html) + + - [AWS::IAM::Group](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-group.html) + + - [AWS::IAM::InstanceProfile](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-instanceprofile.html) + + - [AWS::IAM::ManagedPolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-managedpolicy.html) + + - [AWS::IAM::Policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-policy.html) + + - [AWS::IAM::Role](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-role.html) + + - [AWS::IAM::User](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-user.html) + + - [AWS::IAM::UserToGroupAddition](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-usertogroupaddition.html) + + For more information, see [Acknowledging IAM resources in + CloudFormation + templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html#using-iam-capabilities). + + - `CAPABILITY_AUTO_EXPAND` + + Some template contain macros. Macros perform custom processing on + templates; this can include simple actions like find-and-replace + operations, all the way to extensive transformations of entire + templates. Because of this, users typically create a change set from + the processed template, so that they can review the changes resulting + from the macros before actually creating the stack. If your stack + template contains one or more macros, and you choose to create a stack + directly from the processed template, without first reviewing the + resulting changes in a change set, you must acknowledge this + capability. This includes the + [AWS::Include](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-include.html) + and + [AWS::Serverless](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) + transforms, which are macros hosted by CloudFormation. + + If you want to create a stack from a stack template that contains + macros *and* nested stacks, you must create the stack directly from + the template using this capability. + + Warning: + You should only create stacks directly from a stack template that + contains macros if you know what processing the macro performs. + + Each macro relies on an underlying Lambda service function for + processing stack templates. Be aware that the Lambda function owner + can update the function operation without CloudFormation being + notified. + + For more information, see [Perform custom processing on CloudFormation + templates with template + macros](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). + + Note: + Only one of the `Capabilities` and `ResourceType` parameters can be + specified. + """ + resource_types: list[str] | None = ... + """ + Specifies which resource types you can work with, such as + `AWS::EC2::Instance` or `Custom::MyCustomInstance`. - If no resources are specified,the template will be created without any - resources. Resources can be added to the template using the - `UpdateGeneratedTemplate` API action. + If the list of resource types doesn't include a resource that you're + creating, the stack creation fails. By default, CloudFormation grants + permissions to all resource types. IAM uses this parameter for + CloudFormation-specific condition keys in IAM policies. For more + information, see [Control CloudFormation access with Identity and Access + Management](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html). + + Note: + Only one of the `Capabilities` and `ResourceType` parameters can be + specified. """ - generated_template_name: str | None = ... - """The name assigned to the generated template.""" - stack_name: str | None = ... + role_arn: str | None = ... """ - An optional name or ARN of a stack to use as the base stack for the - generated template. + The Amazon Resource Name (ARN) of an IAM role that CloudFormation + assumes to create the stack. CloudFormation uses the role's credentials + to make calls on your behalf. CloudFormation always uses this role for + all future operations on the stack. Provided that users have permission + to operate on the stack, CloudFormation uses this role even if the users + don't have permission to pass it. Ensure that the role grants least + privilege. + + If you don't specify a value, CloudFormation uses the role that was + previously associated with the stack. If no role is available, + CloudFormation uses a temporary session that's generated from your user + credentials. """ - template_configuration: TemplateConfiguration | None = ... + on_failure: str | None = ... """ - The configuration details of the generated template, including the - `DeletionPolicy` and `UpdateReplacePolicy`. + Determines what action will be taken if stack creation fails. This must + be one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`. You can specify either + `OnFailure` or `DisableRollback`, but not both. + + Note: + Although the default setting is `ROLLBACK`, there is one exception. This + exception occurs when a StackSet attempts to deploy a stack instance and + the stack instance fails to create successfully. In this case, the + `CreateStack` call overrides the default setting and sets the value of + `OnFailure` to `DELETE`. + + Default: `ROLLBACK` + """ + stack_policy_body: str | None = ... + """ + Structure that contains the stack policy body. For more information, see + [Prevent updates to stack + resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) + in the *CloudFormation User Guide*. You can specify either the + `StackPolicyBody` or the `StackPolicyURL` parameter, but not both. + """ + stack_policy_url: str | None = ... """ + Location of a file that contains the stack policy. The URL must point to + a policy (maximum size: 16 KB) located in an S3 bucket in the same + Region as the stack. The location for an Amazon S3 bucket must start + with `https://`. URLs from S3 static websites are not supported. -@dataclass(kw_only=True) -class CreateGeneratedTemplateOutput(_SerdeShape): - """Dataclass for CreateGeneratedTemplateOutput structure.""" + You can specify either the `StackPolicyBody` or the `StackPolicyURL` + parameter, but not both. + """ + tags: list[Tag] | None = ... + """ + Key-value pairs to associate with this stack. CloudFormation also + propagates these tags to the resources created in the stack. A maximum + number of 50 tags can be specified. + """ + client_request_token: str | None = ... + """ + A unique identifier for this `CreateStack` request. Specify this token + if you plan to retry requests so that CloudFormation knows that you're + not attempting to create a stack with the same name. You might retry + `CreateStack` requests to ensure that CloudFormation successfully + received them. - generated_template_id: str | None = ... - """The ID of the generated template.""" - response_metadata: ResponseMetadata = ... + All events initiated by a given stack operation are assigned the same + client request token, which you can use to track operations. For + example, if you execute a `CreateStack` operation with the token + `token1`, then all the `StackEvents` generated by that operation will + have `ClientRequestToken` set as `token1`. + + In the console, stack operations display the client request token on the + Events tab. Stack operations that are initiated from the console use the + token format *Console-StackOperation-ID*, which helps you easily + identify the stack operation . For example, if you create a stack using + the console, each stack event would be assigned the same token in the + following format: + `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002`. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + enable_termination_protection: bool | None = ... """ + Whether to enable termination protection on the specified stack. If a + user attempts to delete a stack with termination protection enabled, the + operation fails and the stack remains unchanged. For more information, + see [Protect CloudFormation stacks from being + deleted](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) + in the *CloudFormation User Guide*. Termination protection is + deactivated on stacks by default. -@dataclass(kw_only=True) -class CreateStackInput(_SerdeShape): - """The input for CreateStack action.""" + For [nested + stacks](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html), + termination protection is set on the root stack and can't be changed + directly on the nested stack. + """ + retain_except_on_create: bool | None = ... + """ + When set to `true`, newly created resources are deleted when the + operation rolls back. This includes newly created resources marked with + a deletion policy of `Retain`. - stack_name: str | None = ... + Default: `false` + """ + deployment_config: DeploymentConfig | None = ... + """ + The deployment configuration for this stack operation, including the + deployment mode. + """ + disable_validation: bool | None = ... + """ + Set to `true` to disable pre-deployment validations in changeset or + stack operations. + + Default: `false` + """ + +class CreateStackInputDict(TypedDict, total=False): + """Dictionary form of `CreateStackInput`.""" + + stack_name: Required[str] """ The name that's associated with the stack. The name must be unique in the Region in which you are creating the stack. @@ -1211,7 +2076,7 @@ class CreateStackInput(_SerdeShape): and hyphens. It must start with an alphabetical character and can't be longer than 128 characters. """ - template_body: str | None = ... + template_body: str | None """ Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. @@ -1219,7 +2084,7 @@ class CreateStackInput(_SerdeShape): Conditional: You must specify either `TemplateBody` or `TemplateURL`, but not both. """ - template_url: str | None = ... + template_url: str | None """ The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket or a @@ -1229,39 +2094,39 @@ class CreateStackInput(_SerdeShape): Conditional: You must specify either the `TemplateBody` or the `TemplateURL` parameter, but not both. """ - parameters: list[Parameter] | None = ... + parameters: Sequence[Parameter | ParameterDict] | None """ A list of `Parameter` structures that specify input parameters for the stack. For more information, see the [Parameter](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) data type. """ - disable_rollback: bool | None = ... + disable_rollback: bool | None """ Set to `true` to disable rollback of the stack if stack creation failed. You can specify either `DisableRollback` or `OnFailure`, but not both. Default: `false` """ - rollback_configuration: RollbackConfiguration | None = ... + rollback_configuration: RollbackConfiguration | RollbackConfigurationDict | None """ The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards. """ - timeout_in_minutes: int | None = ... + timeout_in_minutes: int | None """ The amount of time that can pass before the stack status becomes `CREATE_FAILED`; if `DisableRollback` is not set or is set to `false`, the stack will be rolled back. """ - notification_ar_ns: list[str] | None = ... + notification_ar_ns: Sequence[str] | None """ The Amazon SNS topic ARNs to publish stack related events. You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line Interface (CLI). """ - capabilities: list[str] | None = ... + capabilities: Sequence[str] | None """ In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the @@ -1347,7 +2212,7 @@ class CreateStackInput(_SerdeShape): Only one of the `Capabilities` and `ResourceType` parameters can be specified. """ - resource_types: list[str] | None = ... + resource_types: Sequence[str] | None """ Specifies which resource types you can work with, such as `AWS::EC2::Instance` or `Custom::MyCustomInstance`. @@ -1363,7 +2228,7 @@ class CreateStackInput(_SerdeShape): Only one of the `Capabilities` and `ResourceType` parameters can be specified. """ - role_arn: str | None = ... + role_arn: str | None """ The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to create the stack. CloudFormation uses the role's credentials @@ -1378,7 +2243,7 @@ class CreateStackInput(_SerdeShape): CloudFormation uses a temporary session that's generated from your user credentials. """ - on_failure: str | None = ... + on_failure: str | None """ Determines what action will be taken if stack creation fails. This must be one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`. You can specify either @@ -1393,7 +2258,7 @@ class CreateStackInput(_SerdeShape): Default: `ROLLBACK` """ - stack_policy_body: str | None = ... + stack_policy_body: str | None """ Structure that contains the stack policy body. For more information, see [Prevent updates to stack @@ -1401,7 +2266,7 @@ class CreateStackInput(_SerdeShape): in the *CloudFormation User Guide*. You can specify either the `StackPolicyBody` or the `StackPolicyURL` parameter, but not both. """ - stack_policy_url: str | None = ... + stack_policy_url: str | None """ Location of a file that contains the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same @@ -1411,13 +2276,13 @@ class CreateStackInput(_SerdeShape): You can specify either the `StackPolicyBody` or the `StackPolicyURL` parameter, but not both. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ Key-value pairs to associate with this stack. CloudFormation also propagates these tags to the resources created in the stack. A maximum number of 50 tags can be specified. """ - client_request_token: str | None = ... + client_request_token: str | None """ A unique identifier for this `CreateStack` request. Specify this token if you plan to retry requests so that CloudFormation knows that you're @@ -1439,7 +2304,7 @@ class CreateStackInput(_SerdeShape): following format: `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002`. """ - enable_termination_protection: bool | None = ... + enable_termination_protection: bool | None """ Whether to enable termination protection on the specified stack. If a user attempts to delete a stack with termination protection enabled, the @@ -1454,37 +2319,137 @@ class CreateStackInput(_SerdeShape): termination protection is set on the root stack and can't be changed directly on the nested stack. """ - retain_except_on_create: bool | None = ... + retain_except_on_create: bool | None """ When set to `true`, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of `Retain`. - Default: `false` - """ - deployment_config: DeploymentConfig | None = ... - """ - The deployment configuration for this stack operation, including the - deployment mode. + Default: `false` + """ + deployment_config: DeploymentConfig | DeploymentConfigDict | None + """ + The deployment configuration for this stack operation, including the + deployment mode. + """ + disable_validation: bool | None + """ + Set to `true` to disable pre-deployment validations in changeset or + stack operations. + + Default: `false` + """ + +@dataclass(kw_only=True) +class CreateStackInstancesInput(_SerdeShape): + """Dataclass for CreateStackInstancesInput structure.""" + + stack_set_name: str | None = ... + """ + The name or unique ID of the StackSet that you want to create stack + instances from. + """ + accounts: list[str] | None = ... + """ + [Self-managed permissions] The account IDs of one or more Amazon Web + Services accounts that you want to create stack instances in the + specified Region(s) for. + + You can specify `Accounts` or `DeploymentTargets`, but not both. + """ + deployment_targets: DeploymentTargets | None = ... + """ + [Service-managed permissions] The Organizations accounts in which to + create stack instances in the specified Amazon Web Services Regions. + + You can specify `Accounts` or `DeploymentTargets`, but not both. + """ + regions: list[str] | None = ... + """ + The names of one or more Amazon Web Services Regions where you want to + create stack instances using the specified Amazon Web Services accounts. + """ + parameter_overrides: list[Parameter] | None = ... + """ + A list of StackSet parameters whose values you want to override in the + selected stack instances. + + Any overridden parameter values will be applied to all stack instances + in the specified accounts and Amazon Web Services Regions. When + specifying parameters and their values, be aware of how CloudFormation + sets parameter values during stack instance operations: + + - To override the current value for a parameter, include the parameter + and specify its value. + + - To leave an overridden parameter set to its present value, include the + parameter and specify `UsePreviousValue` as `true`. (You can't + specify both a value and set `UsePreviousValue` to `true`.) + + - To set an overridden parameter back to the value specified in the + StackSet, specify a parameter list but don't include the parameter in + the list. + + - To leave all parameters set to their present values, don't specify + this property at all. + + During StackSet updates, any parameter values overridden for a stack + instance aren't updated, but retain their overridden value. + + You can only override the parameter *values* that are specified in the + StackSet; to add or delete a parameter itself, use + [UpdateStackSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html) + to update the StackSet template. + """ + operation_preferences: StackSetOperationPreferences | None = ... + """Preferences for how CloudFormation performs this StackSet operation.""" + operation_id: str | None = ... + """ + The unique identifier for this StackSet operation. + + The operation ID also functions as an idempotency token, to ensure that + CloudFormation performs the StackSet operation only once, even if you + retry the request multiple times. You might retry StackSet operation + requests to ensure that CloudFormation successfully received them. + + If you don't specify an operation ID, the SDK generates one + automatically. + + Repeating this StackSet operation with a new operation ID retries all + stack instances whose status is `OUTDATED`. + + This field is autopopulated if not provided. """ - disable_validation: bool | None = ... + call_as: str | None = ... """ - Set to `true` to disable pre-deployment validations in changeset or - stack operations. + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. - Default: `false` + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. """ -@dataclass(kw_only=True) -class CreateStackInstancesInput(_SerdeShape): - """Dataclass for CreateStackInstancesInput structure.""" +class CreateStackInstancesInputDict(TypedDict, total=False): + """Dictionary form of `CreateStackInstancesInput`.""" - stack_set_name: str | None = ... + stack_set_name: Required[str] """ The name or unique ID of the StackSet that you want to create stack instances from. """ - accounts: list[str] | None = ... + accounts: Sequence[str] | None """ [Self-managed permissions] The account IDs of one or more Amazon Web Services accounts that you want to create stack instances in the @@ -1492,19 +2457,19 @@ class CreateStackInstancesInput(_SerdeShape): You can specify `Accounts` or `DeploymentTargets`, but not both. """ - deployment_targets: DeploymentTargets | None = ... + deployment_targets: DeploymentTargets | DeploymentTargetsDict | None """ [Service-managed permissions] The Organizations accounts in which to create stack instances in the specified Amazon Web Services Regions. You can specify `Accounts` or `DeploymentTargets`, but not both. """ - regions: list[str] | None = ... + regions: Required[Sequence[str]] """ The names of one or more Amazon Web Services Regions where you want to create stack instances using the specified Amazon Web Services accounts. """ - parameter_overrides: list[Parameter] | None = ... + parameter_overrides: Sequence[Parameter | ParameterDict] | None """ A list of StackSet parameters whose values you want to override in the selected stack instances. @@ -1536,9 +2501,11 @@ class CreateStackInstancesInput(_SerdeShape): [UpdateStackSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html) to update the StackSet template. """ - operation_preferences: StackSetOperationPreferences | None = ... + operation_preferences: ( + StackSetOperationPreferences | StackSetOperationPreferencesDict | None + ) """Preferences for how CloudFormation performs this StackSet operation.""" - operation_id: str | None = ... + operation_id: str | None """ The unique identifier for this StackSet operation. @@ -1555,7 +2522,7 @@ class CreateStackInstancesInput(_SerdeShape): This field is autopopulated if not provided. """ - call_as: str | None = ... + call_as: str | None """ [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a @@ -1625,6 +2592,21 @@ class CreateStackRefactorInput(_SerdeShape): stack_definitions: list[StackDefinition] | None = ... """The stacks being refactored.""" +class CreateStackRefactorInputDict(TypedDict, total=False): + """Dictionary form of `CreateStackRefactorInput`.""" + + description: str | None + """A description to help you identify the stack refactor.""" + enable_stack_creation: bool | None + """Determines if a new stack is created with the refactor.""" + resource_mappings: Sequence[ResourceMapping | ResourceMappingDict] | None + """ + The mappings for the stack resource `Source` and stack resource + `Destination`. + """ + stack_definitions: Required[Sequence[StackDefinition | StackDefinitionDict]] + """The stacks being refactored.""" + @dataclass(kw_only=True) class CreateStackRefactorOutput(_SerdeShape): """Dataclass for CreateStackRefactorOutput structure.""" @@ -1819,7 +2801,229 @@ class CreateStackSetInput(_SerdeShape): Required if the permissions model is `SERVICE_MANAGED`. (Not used with self-managed permissions.) """ - call_as: str | None = ... + call_as: str | None = ... + """ + Specifies whether you are acting as an account administrator in the + organization's management account or as a delegated administrator in a + member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - To create a StackSet with service-managed permissions while signed in + to the management account, specify `SELF`. + + - To create a StackSet with service-managed permissions while signed in + to a delegated administrator account, specify `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + admin in the management account. For more information, see [Register a + delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + + StackSets with service-managed permissions are created in the management + account, including StackSets that are created by delegated + administrators. + + Valid only if the permissions model is `SERVICE_MANAGED`. + """ + client_request_token: str | None = ... + """ + A unique identifier for this `CreateStackSet` request. Specify this + token if you plan to retry requests so that CloudFormation knows that + you're not attempting to create another StackSet with the same name. + You might retry `CreateStackSet` requests to ensure that CloudFormation + successfully received them. + + If you don't specify an operation ID, the SDK generates one + automatically. + + This field is autopopulated if not provided. + """ + managed_execution: ManagedExecution | None = ... + """ + Describes whether CloudFormation performs non-conflicting operations + concurrently and queues conflicting operations. + """ + +class CreateStackSetInputDict(TypedDict, total=False): + """Dictionary form of `CreateStackSetInput`.""" + + stack_set_name: Required[str] + """ + The name to associate with the StackSet. The name must be unique in the + Region where you create your StackSet. + + Note: + A stack name can contain only alphanumeric characters (case-sensitive) + and hyphens. It must start with an alphabetic character and can't be + longer than 128 characters. + """ + description: str | None + """ + A description of the StackSet. You can use the description to identify + the StackSet's purpose or other important information. + """ + template_body: str | None + """ + The structure that contains the template body, with a minimum length of + 1 byte and a maximum length of 51,200 bytes. + + Conditional: You must specify either the `TemplateBody` or the + `TemplateURL` parameter, but not both. + """ + template_url: str | None + """ + The URL of a file that contains the template body. The URL must point to + a template (maximum size: 1 MB) that's located in an Amazon S3 bucket + or a Systems Manager document. The location for an Amazon S3 bucket must + start with `https://`. S3 static website URLs are not supported. + + Conditional: You must specify either the `TemplateBody` or the + `TemplateURL` parameter, but not both. + """ + stack_id: str | None + """ + The stack ID you are importing into a new StackSet. Specify the Amazon + Resource Name (ARN) of the stack. + """ + parameters: Sequence[Parameter | ParameterDict] | None + """The input parameters for the StackSet template.""" + capabilities: Sequence[str] | None + """ + In some cases, you must explicitly acknowledge that your StackSet + template contains certain capabilities in order for CloudFormation to + create the StackSet and related stack instances. + + - `CAPABILITY_IAM` and `CAPABILITY_NAMED_IAM` + + Some stack templates might include resources that can affect + permissions in your Amazon Web Services account; for example, by + creating new IAM users. For those StackSets, you must explicitly + acknowledge this by specifying one of these capabilities. + + The following IAM resources require you to specify either the + `CAPABILITY_IAM` or `CAPABILITY_NAMED_IAM` capability. + + - If you have IAM resources, you can specify either capability. + + - If you have IAM resources with custom names, you *must* specify + `CAPABILITY_NAMED_IAM`. + + - If you don't specify either of these capabilities, CloudFormation + returns an `InsufficientCapabilities` error. + + If your stack template contains these resources, we recommend that you + review all permissions associated with them and edit their permissions + if necessary. + + - [AWS::IAM::AccessKey](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-accesskey.html) + + - [AWS::IAM::Group](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-group.html) + + - [AWS::IAM::InstanceProfile](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-instanceprofile.html) + + - [AWS::IAM::Policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-policy.html) + + - [AWS::IAM::Role](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-role.html) + + - [AWS::IAM::User](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-user.html) + + - [AWS::IAM::UserToGroupAddition](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-usertogroupaddition.html) + + For more information, see [Acknowledging IAM resources in + CloudFormation + templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html#using-iam-capabilities). + + - `CAPABILITY_AUTO_EXPAND` + + Some templates reference macros. If your StackSet template references + one or more macros, you must create the StackSet directly from the + processed template, without first reviewing the resulting changes in a + change set. To create the StackSet directly, you must acknowledge this + capability. For more information, see [Perform custom processing on + CloudFormation templates with template + macros](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). + + Warning: + StackSets with service-managed permissions don't currently support + the use of macros in templates. (This includes the + [AWS::Include](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-include.html) + and + [AWS::Serverless](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) + transforms, which are macros hosted by CloudFormation.) Even if you + specify this capability for a StackSet with service-managed + permissions, if you reference a macro in your template the StackSet + operation will fail. + """ + tags: Sequence[Tag | TagDict] | None + """ + The key-value pairs to associate with this StackSet and the stacks + created from it. CloudFormation also propagates these tags to supported + resources that are created in the stacks. A maximum number of 50 tags + can be specified. + + If you specify tags as part of a `CreateStackSet` action, CloudFormation + checks to see if you have the required IAM permission to tag resources. + If you don't, the entire `CreateStackSet` action fails with an + `access denied` error, and the StackSet is not created. + """ + administration_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role to use to create this + StackSet. + + Specify an IAM role only if you are using customized administrator roles + to control which users or groups can manage specific StackSets within + the same administrator account. For more information, see [Grant + self-managed + permissions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html) + in the *CloudFormation User Guide*. + + Valid only if the permissions model is `SELF_MANAGED`. + """ + execution_role_name: str | None + """ + The name of the IAM execution role to use to create the StackSet. If you + do not specify an execution role, CloudFormation uses the + `AWSCloudFormationStackSetExecutionRole` role for the StackSet + operation. + + Specify an IAM role only if you are using customized execution roles to + control which stack resources users and groups can include in their + StackSets. + + Valid only if the permissions model is `SELF_MANAGED`. + """ + permission_model: str | None + """ + Describes how the IAM roles required for StackSet operations are + created. By default, `SELF-MANAGED` is specified. + + - With `self-managed` permissions, you must create the administrator and + execution roles required to deploy to target accounts. For more + information, see [Grant self-managed + permissions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html). + + - With `service-managed` permissions, StackSets automatically creates + the IAM roles required to deploy to accounts managed by Organizations. + For more information, see [Activate trusted access for StackSets with + Organizations](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-activate-trusted-access.html). + """ + auto_deployment: AutoDeployment | AutoDeploymentDict | None + """ + Describes whether StackSets automatically deploys to Organizations + accounts that are added to the target organization or organizational + unit (OU). For more information, see [Enable or disable automatic + deployments for StackSets in + Organizations](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-manage-auto-deployment.html) + in the *CloudFormation User Guide*. + + Required if the permissions model is `SERVICE_MANAGED`. (Not used with + self-managed permissions.) + """ + call_as: str | None """ Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a @@ -1846,7 +3050,7 @@ class CreateStackSetInput(_SerdeShape): Valid only if the permissions model is `SERVICE_MANAGED`. """ - client_request_token: str | None = ... + client_request_token: str | None """ A unique identifier for this `CreateStackSet` request. Specify this token if you plan to retry requests so that CloudFormation knows that @@ -1859,7 +3063,7 @@ class CreateStackSetInput(_SerdeShape): This field is autopopulated if not provided. """ - managed_execution: ManagedExecution | None = ... + managed_execution: ManagedExecution | ManagedExecutionDict | None """ Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations. @@ -1883,6 +3087,9 @@ class CreateStackSetOutput(_SerdeShape): class DeactivateOrganizationsAccessInput(_SerdeShape): """Dataclass for DeactivateOrganizationsAccessInput structure.""" +class DeactivateOrganizationsAccessInputDict(TypedDict, total=False): + """Dictionary form of `DeactivateOrganizationsAccessInput`.""" + @dataclass(kw_only=True) class DeactivateOrganizationsAccessOutput(_SerdeShape): """Dataclass for DeactivateOrganizationsAccessOutput structure.""" @@ -1921,6 +3128,31 @@ class DeactivateTypeInput(_SerdeShape): Conditional: You must specify either `Arn`, or `TypeName` and `Type`. """ +class DeactivateTypeInputDict(TypedDict, total=False): + """Dictionary form of `DeactivateTypeInput`.""" + + type_name: str | None + """ + The type name of the extension in this account and Region. If you + specified a type name alias when enabling the extension, use the type + name alias. + + Conditional: You must specify either `Arn`, or `TypeName` and `Type`. + """ + type: str | None + """ + The extension type. + + Conditional: You must specify either `Arn`, or `TypeName` and `Type`. + """ + arn: str | None + """ + The Amazon Resource Name (ARN) for the extension in this account and + Region. + + Conditional: You must specify either `Arn`, or `TypeName` and `Type`. + """ + @dataclass(kw_only=True) class DeactivateTypeOutput(_SerdeShape): """Dataclass for DeactivateTypeOutput structure.""" @@ -1948,6 +3180,20 @@ class DeleteChangeSetInput(_SerdeShape): name or Amazon Resource Name (ARN) that's associated with it. """ +class DeleteChangeSetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteChangeSetInput`.""" + + change_set_name: Required[str] + """ + The name or Amazon Resource Name (ARN) of the change set that you want + to delete. + """ + stack_name: str | None + """ + If you specified the name of a change set to delete, specify the stack + name or Amazon Resource Name (ARN) that's associated with it. + """ + @dataclass(kw_only=True) class DeleteChangeSetOutput(_SerdeShape): """The output for the DeleteChangeSet action.""" @@ -1967,6 +3213,12 @@ class DeleteGeneratedTemplateInput(_SerdeShape): generated_template_name: str | None = ... """The name or Amazon Resource Name (ARN) of a generated template.""" +class DeleteGeneratedTemplateInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGeneratedTemplateInput`.""" + + generated_template_name: Required[str] + """The name or Amazon Resource Name (ARN) of a generated template.""" + @dataclass(kw_only=True) class DeleteGeneratedTemplateOutput(_SerdeShape): """Dataclass for DeleteGeneratedTemplateOutput structure.""" @@ -2044,6 +3296,70 @@ class DeleteStackInput(_SerdeShape): deployment mode. """ +class DeleteStackInputDict(TypedDict, total=False): + """Dictionary form of `DeleteStackInput`.""" + + stack_name: Required[str] + """The name or the unique stack ID that's associated with the stack.""" + retain_resources: Sequence[str] | None + """ + For stacks in the `DELETE_FAILED` state, a list of resource logical IDs + that are associated with the resources you want to retain. During + deletion, CloudFormation deletes the stack but doesn't delete the + retained resources. + + Retaining resources is useful when you can't delete a resource, such as + a non-empty S3 bucket, but you want to delete the stack. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role that CloudFormation + assumes to delete the stack. CloudFormation uses the role's credentials + to make calls on your behalf. + + If you don't specify a value, CloudFormation uses the role that was + previously associated with the stack. If no role is available, + CloudFormation uses a temporary session that's generated from your user + credentials. + """ + client_request_token: str | None + """ + A unique identifier for this `DeleteStack` request. Specify this token + if you plan to retry requests so that CloudFormation knows that you're + not attempting to delete a stack with the same name. You might retry + `DeleteStack` requests to ensure that CloudFormation successfully + received them. + + All events initiated by a given stack operation are assigned the same + client request token, which you can use to track operations. For + example, if you execute a `CreateStack` operation with the token + `token1`, then all the `StackEvents` generated by that operation will + have `ClientRequestToken` set as `token1`. + + In the console, stack operations display the client request token on the + Events tab. Stack operations that are initiated from the console use the + token format *Console-StackOperation-ID*, which helps you easily + identify the stack operation . For example, if you create a stack using + the console, each stack event would be assigned the same token in the + following format: + `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002`. + """ + deletion_mode: str | None + """ + Specifies the deletion mode for the stack. Possible values are: + + - `STANDARD` - Use the standard behavior. Specifying this value is the + same as not specifying this parameter. + + - `FORCE_DELETE_STACK` - Delete the stack if it's stuck in a + `DELETE_FAILED` state due to resource deletion failure. + """ + deployment_config: DeploymentConfig | DeploymentConfigDict | None + """ + The deployment configuration for this stack operation, including the + deployment mode. + """ + @dataclass(kw_only=True) class DeleteStackInstancesInput(_SerdeShape): """Dataclass for DeleteStackInstancesInput structure.""" @@ -2121,6 +3437,84 @@ class DeleteStackInstancesInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class DeleteStackInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DeleteStackInstancesInput`.""" + + stack_set_name: Required[str] + """ + The name or unique ID of the StackSet that you want to delete stack + instances for. + """ + accounts: Sequence[str] | None + """ + [Self-managed permissions] The account IDs of the Amazon Web Services + accounts that you want to delete stack instances for. + + You can specify `Accounts` or `DeploymentTargets`, but not both. + """ + deployment_targets: DeploymentTargets | DeploymentTargetsDict | None + """ + [Service-managed permissions] The Organizations accounts from which to + delete stack instances. + + You can specify `Accounts` or `DeploymentTargets`, but not both. + """ + regions: Required[Sequence[str]] + """ + The Amazon Web Services Regions where you want to delete StackSet + instances. + """ + operation_preferences: ( + StackSetOperationPreferences | StackSetOperationPreferencesDict | None + ) + """Preferences for how CloudFormation performs this StackSet operation.""" + retain_stacks: Required[bool] + """ + Removes the stack instances from the specified StackSet, but doesn't + delete the stacks. You can't reassociate a retained stack or add an + existing, saved stack to a new stack set. + + For more information, see [StackSet operation + options](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). + """ + operation_id: str | None + """ + The unique identifier for this StackSet operation. + + If you don't specify an operation ID, the SDK generates one + automatically. + + The operation ID also functions as an idempotency token, to ensure that + CloudFormation performs the StackSet operation only once, even if you + retry the request multiple times. You can retry StackSet operation + requests to ensure that CloudFormation successfully received them. + + Repeating this StackSet operation with a new operation ID retries all + stack instances whose status is `OUTDATED`. + + This field is autopopulated if not provided. + """ + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class DeleteStackInstancesOutput(_SerdeShape): """Dataclass for DeleteStackInstancesOutput structure.""" @@ -2177,6 +3571,35 @@ class DeleteStackSetInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class DeleteStackSetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteStackSetInput`.""" + + stack_set_name: Required[str] + """ + The name or unique ID of the StackSet that you're deleting. You can + obtain this value by running ListStackSets. + """ + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class DeleteStackSetOutput(_SerdeShape): """Dataclass for DeleteStackSetOutput structure.""" @@ -2221,6 +3644,30 @@ class DeploymentConfig(_SerdeShape): Default: `false` """ +class DeploymentConfigDict(TypedDict, total=False): + """Dictionary form of `DeploymentConfig`.""" + + mode: str | None + """ + Specifies the deployment mode for the stack operation. Possible values + are: + + - `STANDARD` - Use the standard deployment behavior, ensuring resources + are ready to serve traffic before completing the operation. This is + the default. You do not need to specify this value explicitly. + + - `EXPRESS` - Complete the stack operation when resource configuration + is applied, without waiting for resources to become ready to serve + traffic. Resources continue becoming ready in the background. + """ + disable_rollback: bool | None + """ + Specifies whether to disable rollback of the stack if the stack + operation fails. + + Default: `false` + """ + class DeploymentConfigMode(UnknownEnumMixin, StrEnum): STANDARD = "STANDARD" EXPRESS = "EXPRESS" @@ -2245,7 +3692,65 @@ class DeploymentTargets(_SerdeShape): `AccountFilterType` property. """ - accounts: list[str] | None = ... + accounts: list[str] | None = ... + """ + The Amazon Web Services account IDs where you want to perform stack + operations. How these accounts are used depends on the + `AccountFilterType` property. + + If you have many account numbers, you can provide those accounts using + the `AccountsUrl` property instead. + """ + accounts_url: str | None = ... + """ + The Amazon S3 URL path to a file that contains a list of Amazon Web + Services account IDs. The file format must be either `.csv` or `.txt`, + and the data can be comma-separated or new-line-separated. There is + currently a 10MB limit for the data (approximately 800,000 accounts). + + This property serves the same purpose as `Accounts` but allows you to + specify a large number of accounts. + """ + organizational_unit_ids: list[str] | None = ... + """ + The organization root ID or organizational unit (OU) IDs where you want + to perform stack operations. CloudFormation will perform operations on + accounts within these OUs and their child OUs. + """ + account_filter_type: str | None = ... + """ + Refines which accounts will have stack operations performed on them by + specifying how to use the `Accounts` and `OrganizationalUnitIds` + properties together. + + The following values determine how CloudFormation selects target + accounts: + + - `INTERSECTION`: Performs stack operations only on specific individual + accounts within the selected OUs. Only accounts that are both + specified in the `Accounts` property and belong to the specified OUs + will be targeted. + + - `DIFFERENCE`: Performs stack operations on all accounts in the + selected OUs except for specific accounts listed in the `Accounts` + property. This enables you to exclude certain accounts within an OU, + such as suspended accounts. + + - `UNION`: Performs stack operations on the specified OUs plus + additional individual accounts listed in the `Accounts` property. This + is the default value if `AccountFilterType` is not provided. This lets + you target an entire OU and individual accounts from a different OU in + one request. Note that `UNION` is not supported for + `CreateStackInstances` operations. + + - `NONE`: Performs stack operations on all accounts in the specified + organizational units (OUs). + """ + +class DeploymentTargetsDict(TypedDict, total=False): + """Dictionary form of `DeploymentTargets`.""" + + accounts: Sequence[str] | None """ The Amazon Web Services account IDs where you want to perform stack operations. How these accounts are used depends on the @@ -2254,7 +3759,7 @@ class DeploymentTargets(_SerdeShape): If you have many account numbers, you can provide those accounts using the `AccountsUrl` property instead. """ - accounts_url: str | None = ... + accounts_url: str | None """ The Amazon S3 URL path to a file that contains a list of Amazon Web Services account IDs. The file format must be either `.csv` or `.txt`, @@ -2264,13 +3769,13 @@ class DeploymentTargets(_SerdeShape): This property serves the same purpose as `Accounts` but allows you to specify a large number of accounts. """ - organizational_unit_ids: list[str] | None = ... + organizational_unit_ids: Sequence[str] | None """ The organization root ID or organizational unit (OU) IDs where you want to perform stack operations. CloudFormation will perform operations on accounts within these OUs and their child OUs. """ - account_filter_type: str | None = ... + account_filter_type: str | None """ Refines which accounts will have stack operations performed on them by specifying how to use the `Accounts` and `OrganizationalUnitIds` @@ -2333,6 +3838,34 @@ class DeregisterTypeInput(_SerdeShape): extension version when it is registered. """ +class DeregisterTypeInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterTypeInput`.""" + + arn: str | None + """ + The Amazon Resource Name (ARN) of the extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + type: str | None + """ + The kind of extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + type_name: str | None + """ + The name of the extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + version_id: str | None + """ + The ID of a specific version of the extension. The version ID is the + value at the end of the Amazon Resource Name (ARN) assigned to the + extension version when it is registered. + """ + @dataclass(kw_only=True) class DeregisterTypeOutput(_SerdeShape): """Dataclass for DeregisterTypeOutput structure.""" @@ -2355,6 +3888,15 @@ class DescribeAccountLimitsInput(_SerdeShape): from a previous call.) """ +class DescribeAccountLimitsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAccountLimitsInput`.""" + + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class DescribeAccountLimitsOutput(_SerdeShape): """The output for the DescribeAccountLimits action.""" @@ -2402,6 +3944,30 @@ class DescribeChangeSetHooksInput(_SerdeShape): `LogicalResourceId`. """ +class DescribeChangeSetHooksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeChangeSetHooksInput`.""" + + change_set_name: Required[str] + """ + The name or Amazon Resource Name (ARN) of the change set that you want + to describe. + """ + stack_name: str | None + """ + If you specified the name of a change set, specify the stack name or + stack ID (ARN) of the change set you want to describe. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + logical_resource_id: str | None + """ + If specified, lists only the Hooks related to the specified + `LogicalResourceId`. + """ + @dataclass(kw_only=True) class DescribeChangeSetHooksOutput(_SerdeShape): """Dataclass for DescribeChangeSetHooksOutput structure.""" @@ -2453,6 +4019,30 @@ class DescribeChangeSetInput(_SerdeShape): values. """ +class DescribeChangeSetInputDict(TypedDict, total=False): + """Dictionary form of `DescribeChangeSetInput`.""" + + change_set_name: Required[str] + """ + The name or Amazon Resource Name (ARN) of the change set that you want + to describe. + """ + stack_name: str | None + """ + If you specified the name of a change set, specify the stack name or ID + (ARN) of the change set you want to describe. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + include_property_values: bool | None + """ + If `true`, the returned changes include detailed changes in the property + values. + """ + @dataclass(kw_only=True) class DescribeChangeSetOutput(_SerdeShape): """The output for the DescribeChangeSet action.""" @@ -2635,6 +4225,33 @@ class DescribeEventsInput(_SerdeShape): from a previous call.) """ +class DescribeEventsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeEventsInput`.""" + + stack_name: str | None + """ + The name or unique stack ID for which you want to retrieve events. If + you specified the name of a change set, specify the stack name or ID + (ARN) of the change set you want to describe. + """ + change_set_name: str | None + """ + The name or Amazon Resource Name (ARN) of the change set for which you + want to retrieve events. + """ + operation_id: str | None + """ + The unique identifier of the operation for which you want to retrieve + events. + """ + filters: EventFilter | EventFilterDict | None + """Filters to apply when retrieving events.""" + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class DescribeEventsOutput(_SerdeShape): """Dataclass for DescribeEventsOutput structure.""" @@ -2664,6 +4281,12 @@ class DescribeGeneratedTemplateInput(_SerdeShape): generated_template_name: str | None = ... """The name or Amazon Resource Name (ARN) of a generated template.""" +class DescribeGeneratedTemplateInputDict(TypedDict, total=False): + """Dictionary form of `DescribeGeneratedTemplateInput`.""" + + generated_template_name: Required[str] + """The name or Amazon Resource Name (ARN) of a generated template.""" + @dataclass(kw_only=True) class DescribeGeneratedTemplateOutput(_SerdeShape): """Dataclass for DescribeGeneratedTemplateOutput structure.""" @@ -2760,6 +4383,29 @@ class DescribeOrganizationsAccessInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class DescribeOrganizationsAccessInputDict(TypedDict, total=False): + """Dictionary form of `DescribeOrganizationsAccessInput`.""" + + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class DescribeOrganizationsAccessOutput(_SerdeShape): """Dataclass for DescribeOrganizationsAccessOutput structure.""" @@ -2787,6 +4433,18 @@ class DescribePublisherInput(_SerdeShape): own publisher account. """ +class DescribePublisherInputDict(TypedDict, total=False): + """Dictionary form of `DescribePublisherInput`.""" + + publisher_id: str | None + """ + The ID of the extension publisher. + + If you don't supply a `PublisherId`, and you have registered as an + extension publisher, `DescribePublisher` returns information about your + own publisher account. + """ + @dataclass(kw_only=True) class DescribePublisherOutput(_SerdeShape): """Dataclass for DescribePublisherOutput structure.""" @@ -2820,6 +4478,12 @@ class DescribeResourceScanInput(_SerdeShape): resource_scan_id: str | None = ... """The Amazon Resource Name (ARN) of the resource scan.""" +class DescribeResourceScanInputDict(TypedDict, total=False): + """Dictionary form of `DescribeResourceScanInput`.""" + + resource_scan_id: Required[str] + """The Amazon Resource Name (ARN) of the resource scan.""" + @dataclass(kw_only=True) class DescribeResourceScanOutput(_SerdeShape): """Dataclass for DescribeResourceScanOutput structure.""" @@ -2837,19 +4501,19 @@ class DescribeResourceScanOutput(_SerdeShape): IN_PROGRESS - : The resource scan is still in progress. + : The resource scan is still in progress. COMPLETE - : The resource scan is complete. + : The resource scan is complete. EXPIRED - : The resource scan has expired. + : The resource scan has expired. FAILED - : The resource scan has failed. + : The resource scan has failed. """ status_reason: str | None = ... """ @@ -2904,6 +4568,18 @@ class DescribeStackDriftDetectionStatusInput(_SerdeShape): CloudFormation retains for any given stack, and for how long, may vary. """ +class DescribeStackDriftDetectionStatusInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackDriftDetectionStatusInput`.""" + + stack_drift_detection_id: Required[str] + """ + The ID of the drift detection results of this operation. + + CloudFormation generates new results, with a new drift detection ID, + each time this operation is run. However, the number of drift results + CloudFormation retains for any given stack, and for how long, may vary. + """ + @dataclass(kw_only=True) class DescribeStackDriftDetectionStatusOutput(_SerdeShape): """Dataclass for DescribeStackDriftDetectionStatusOutput structure.""" @@ -2995,6 +4671,25 @@ class DescribeStackEventsInput(_SerdeShape): from a previous call.) """ +class DescribeStackEventsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackEventsInput`.""" + + stack_name: Required[str] + """ + The name or the unique stack ID that's associated with the stack, which + aren't always interchangeable: + + - Running stacks: You can specify either the stack's name or its unique + stack ID. + + - Deleted stacks: You must specify the unique stack ID. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class DescribeStackEventsOutput(_SerdeShape): """The output for a DescribeStackEvents action.""" @@ -3051,6 +4746,42 @@ class DescribeStackInstanceInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class DescribeStackInstanceInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackInstanceInput`.""" + + stack_set_name: Required[str] + """ + The name or the unique stack ID of the StackSet that you want to get + stack instance information for. + """ + stack_instance_account: Required[str] + """ + The ID of an Amazon Web Services account that's associated with this + stack instance. + """ + stack_instance_region: Required[str] + """The name of a Region that's associated with this stack instance.""" + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class DescribeStackInstanceOutput(_SerdeShape): """Dataclass for DescribeStackInstanceOutput structure.""" @@ -3075,6 +4806,15 @@ class DescribeStackRefactorInput(_SerdeShape): CreateStackRefactor action. """ +class DescribeStackRefactorInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackRefactorInput`.""" + + stack_refactor_id: Required[str] + """ + The ID associated with the stack refactor created from the + CreateStackRefactor action. + """ + @dataclass(kw_only=True) class DescribeStackRefactorOutput(_SerdeShape): """Dataclass for DescribeStackRefactorOutput structure.""" @@ -3148,6 +4888,43 @@ class DescribeStackResourceDriftsInput(_SerdeShape): parameter to get the next set of results. """ +class DescribeStackResourceDriftsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackResourceDriftsInput`.""" + + stack_name: Required[str] + """The name of the stack for which you want drift information.""" + stack_resource_drift_status_filters: Sequence[str] | None + """ + The resource drift status values to use as filters for the resource + drift results returned. + + - `DELETED`: The resource differs from its expected template + configuration in that the resource has been deleted. + + - `MODIFIED`: One or more resource properties differ from their expected + template values. + + - `IN_SYNC`: The resource's actual configuration matches its expected + template configuration. + + - `NOT_CHECKED`: CloudFormation doesn't currently return this value. + + - `UNKNOWN`: CloudFormation could not run drift detection for the + resource. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + @dataclass(kw_only=True) class DescribeStackResourceDriftsOutput(_SerdeShape): """Dataclass for DescribeStackResourceDriftsOutput structure.""" @@ -3199,6 +4976,22 @@ class DescribeStackResourceInput(_SerdeShape): logical_resource_id: str | None = ... """The logical name of the resource as specified in the template.""" +class DescribeStackResourceInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackResourceInput`.""" + + stack_name: Required[str] + """ + The name or the unique stack ID that's associated with the stack, which + aren't always interchangeable: + + - Running stacks: You can specify either the stack's name or its unique + stack ID. + + - Deleted stacks: You must specify the unique stack ID. + """ + logical_resource_id: Required[str] + """The logical name of the resource as specified in the template.""" + @dataclass(kw_only=True) class DescribeStackResourceOutput(_SerdeShape): """The output for a DescribeStackResource action.""" @@ -3210,17 +5003,49 @@ class DescribeStackResourceOutput(_SerdeShape): """ response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeStackResourcesInput(_SerdeShape): + """The input for DescribeStackResources action.""" + + stack_name: str | None = ... + """ + The name or the unique stack ID that is associated with the stack, which + aren't always interchangeable: + + - Running stacks: You can specify either the stack's name or its unique + stack ID. + + - Deleted stacks: You must specify the unique stack ID. + + Required: Conditional. If you don't specify `StackName`, you must + specify `PhysicalResourceId`. + """ + logical_resource_id: str | None = ... + """The logical name of the resource as specified in the template.""" + physical_resource_id: str | None = ... + """ + The name or unique identifier that corresponds to a physical instance ID + of a resource supported by CloudFormation. + + For example, for an Amazon Elastic Compute Cloud (EC2) instance, + `PhysicalResourceId` corresponds to the `InstanceId`. You can pass the + EC2 `InstanceId` to `DescribeStackResources` to find which stack the + instance belongs to and what other resources are part of the stack. + + Required: Conditional. If you don't specify `PhysicalResourceId`, you + must specify `StackName`. """ -@dataclass(kw_only=True) -class DescribeStackResourcesInput(_SerdeShape): - """The input for DescribeStackResources action.""" +class DescribeStackResourcesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackResourcesInput`.""" - stack_name: str | None = ... + stack_name: str | None """ The name or the unique stack ID that is associated with the stack, which aren't always interchangeable: @@ -3233,9 +5058,9 @@ class DescribeStackResourcesInput(_SerdeShape): Required: Conditional. If you don't specify `StackName`, you must specify `PhysicalResourceId`. """ - logical_resource_id: str | None = ... + logical_resource_id: str | None """The logical name of the resource as specified in the template.""" - physical_resource_id: str | None = ... + physical_resource_id: str | None """ The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation. @@ -3290,6 +5115,32 @@ class DescribeStackSetInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class DescribeStackSetInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackSetInput`.""" + + stack_set_name: Required[str] + """The name or unique ID of the StackSet whose description you want.""" + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class DescribeStackSetOperationInput(_SerdeShape): """Dataclass for DescribeStackSetOperationInput structure.""" @@ -3319,6 +5170,34 @@ class DescribeStackSetOperationInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class DescribeStackSetOperationInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStackSetOperationInput`.""" + + stack_set_name: Required[str] + """The name or the unique stack ID of the StackSet for the stack operation.""" + operation_id: Required[str] + """The unique ID of the StackSet operation.""" + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class DescribeStackSetOperationOutput(_SerdeShape): """Dataclass for DescribeStackSetOperationOutput structure.""" @@ -3384,6 +5263,42 @@ class DescribeStacksInput(_SerdeShape): from a previous call.) """ +class DescribeStacksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStacksInput`.""" + + stack_name: str | None + """ + Note: + If you don't pass a parameter to `StackName`, the API returns a + response that describes all resources in the account, which can impact + performance. This requires `ListStacks` and `DescribeStacks` + permissions. + + Consider using the ListStacks API if you're not passing a parameter to + `StackName`. + + The IAM policy below can be added to IAM policies when you want to limit + resource-level permissions and avoid returning a response when no + parameter is sent in the request: + + { \"Version\": \"2012-10-17\", \"Statement\": [{ \"Effect\": \"Deny\", + \"Action\": \"cloudformation:DescribeStacks\", \"NotResource\": + \"arn:aws:cloudformation:*:*:stack/*/*\" }] } + + The name or the unique stack ID that's associated with the stack, which + aren't always interchangeable: + + - Running stacks: You can specify either the stack's name or its unique + stack ID. + + - Deleted stacks: You must specify the unique stack ID. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class DescribeStacksOutput(_SerdeShape): """The output for a DescribeStacks action.""" @@ -3445,6 +5360,47 @@ class DescribeTypeInput(_SerdeShape): public_version_number: str | None = ... """The version number of a public third-party extension.""" +class DescribeTypeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTypeInput`.""" + + type: str | None + """ + The kind of extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + type_name: str | None + """ + The name of the extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + arn: str | None + """ + The Amazon Resource Name (ARN) of the extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + version_id: str | None + """ + The ID of a specific version of the extension. The version ID is the + value at the end of the Amazon Resource Name (ARN) assigned to the + extension version when it is registered. + + If you specify a `VersionId`, `DescribeType` returns information about + that specific extension version. Otherwise, it returns information about + the default extension version. + """ + publisher_id: str | None + """ + The publisher ID of the extension publisher. + + Extensions provided by Amazon Web Services are not assigned a publisher + ID. + """ + public_version_number: str | None + """The version number of a public third-party extension.""" + @dataclass(kw_only=True) class DescribeTypeOutput(_SerdeShape): """Dataclass for DescribeTypeOutput structure.""" @@ -3722,6 +5678,17 @@ class DescribeTypeRegistrationInput(_SerdeShape): a registration request using RegisterType. """ +class DescribeTypeRegistrationInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTypeRegistrationInput`.""" + + registration_token: Required[str] + """ + The identifier for this registration request. + + This registration token is generated by CloudFormation when you initiate + a registration request using RegisterType. + """ + @dataclass(kw_only=True) class DescribeTypeRegistrationOutput(_SerdeShape): """Dataclass for DescribeTypeRegistrationOutput structure.""" @@ -3766,6 +5733,14 @@ class DetectStackDriftInput(_SerdeShape): logical_resource_ids: list[str] | None = ... """The logical names of any resources you want to use as filters.""" +class DetectStackDriftInputDict(TypedDict, total=False): + """Dictionary form of `DetectStackDriftInput`.""" + + stack_name: Required[str] + """The name of the stack for which you want to detect drift.""" + logical_resource_ids: Sequence[str] | None + """The logical names of any resources you want to use as filters.""" + @dataclass(kw_only=True) class DetectStackDriftOutput(_SerdeShape): """Dataclass for DetectStackDriftOutput structure.""" @@ -3795,6 +5770,14 @@ class DetectStackResourceDriftInput(_SerdeShape): logical_resource_id: str | None = ... """The logical name of the resource for which to return drift information.""" +class DetectStackResourceDriftInputDict(TypedDict, total=False): + """Dictionary form of `DetectStackResourceDriftInput`.""" + + stack_name: Required[str] + """The name of the stack to which the resource belongs.""" + logical_resource_id: Required[str] + """The logical name of the resource for which to return drift information.""" + @dataclass(kw_only=True) class DetectStackResourceDriftOutput(_SerdeShape): """Dataclass for DetectStackResourceDriftOutput structure.""" @@ -3858,6 +5841,52 @@ class DetectStackSetDriftInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class DetectStackSetDriftInputDict(TypedDict, total=False): + """Dictionary form of `DetectStackSetDriftInput`.""" + + stack_set_name: Required[str] + """ + The name of the StackSet on which to perform the drift detection + operation. + """ + operation_preferences: ( + StackSetOperationPreferences | StackSetOperationPreferencesDict | None + ) + """ + The user-specified preferences for how CloudFormation performs a + StackSet operation. + + For more information about maximum concurrent accounts and failure + tolerance, see [StackSet operation + options](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). + """ + operation_id: str | None + """ + *The ID of the StackSet operation.* + + This field is autopopulated if not provided. + """ + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class DetectStackSetDriftOutput(_SerdeShape): """Dataclass for DetectStackSetDriftOutput structure.""" @@ -3912,6 +5941,30 @@ class EstimateTemplateCostInput(_SerdeShape): parameters: list[Parameter] | None = ... """A list of `Parameter` structures that specify input parameters.""" +class EstimateTemplateCostInputDict(TypedDict, total=False): + """Dictionary form of `EstimateTemplateCostInput`.""" + + template_body: str | None + """ + Structure that contains the template body with a minimum length of 1 + byte and a maximum length of 51,200 bytes. + + Conditional: You must pass `TemplateBody` or `TemplateURL`. If both are + passed, only `TemplateBody` is used. + """ + template_url: str | None + """ + The URL of a file that contains the template body. The URL must point to + a template that's located in an Amazon S3 bucket or a Systems Manager + document. The location for an Amazon S3 bucket must start with + `https://`. URLs from S3 static websites are not supported. + + Conditional: You must pass `TemplateURL` or `TemplateBody`. If both are + passed, only `TemplateBody` is used. + """ + parameters: Sequence[Parameter | ParameterDict] | None + """A list of `Parameter` structures that specify input parameters.""" + @dataclass(kw_only=True) class EstimateTemplateCostOutput(_SerdeShape): """The output for a EstimateTemplateCost action.""" @@ -3943,6 +5996,15 @@ class EventFilter(_SerdeShape): helps quickly identify root causes for a failed operation. """ +class EventFilterDict(TypedDict, total=False): + """Dictionary form of `EventFilter`.""" + + failed_events: bool | None + """ + When set to true, only returns failed events within the operation. This + helps quickly identify root causes for a failed operation. + """ + class EventType(UnknownEnumMixin, StrEnum): STACK_EVENT = "STACK_EVENT" PROGRESS_EVENT = "PROGRESS_EVENT" @@ -3994,7 +6056,59 @@ class ExecuteChangeSetInput(_SerdeShape): Default: `True` """ - retain_except_on_create: bool | None = ... + retain_except_on_create: bool | None = ... + """ + When set to `true`, newly created resources are deleted when the + operation rolls back. This includes newly created resources marked with + a deletion policy of `Retain`. + + Default: `false` + """ + +class ExecuteChangeSetInputDict(TypedDict, total=False): + """Dictionary form of `ExecuteChangeSetInput`.""" + + change_set_name: Required[str] + """ + The name or Amazon Resource Name (ARN) of the change set that you want + use to update the specified stack. + """ + stack_name: str | None + """ + If you specified the name of a change set, specify the stack name or + Amazon Resource Name (ARN) that's associated with the change set you + want to execute. + """ + client_request_token: str | None + """ + A unique identifier for this `ExecuteChangeSet` request. Specify this + token if you plan to retry requests so that CloudFormation knows that + you're not attempting to execute a change set to update a stack with + the same name. You might retry `ExecuteChangeSet` requests to ensure + that CloudFormation successfully received them. + """ + disable_rollback: bool | None + """ + Preserves the state of previously provisioned resources when an + operation fails. This parameter can't be specified when the + `OnStackFailure` parameter to the + [CreateChangeSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateChangeSet.html) + API operation was specified. + + - `True` - if the stack creation fails, do nothing. This is equivalent + to specifying `DO_NOTHING` for the `OnStackFailure` parameter to the + [CreateChangeSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateChangeSet.html) + API operation. + + - `False` - if the stack creation fails, roll back the stack. This is + equivalent to specifying `ROLLBACK` for the `OnStackFailure` parameter + to the + [CreateChangeSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateChangeSet.html) + API operation. + + Default: `True` + """ + retain_except_on_create: bool | None """ When set to `true`, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with @@ -4025,6 +6139,15 @@ class ExecuteStackRefactorInput(_SerdeShape): CreateStackRefactor action. """ +class ExecuteStackRefactorInputDict(TypedDict, total=False): + """Dictionary form of `ExecuteStackRefactorInput`.""" + + stack_refactor_id: Required[str] + """ + The ID associated with the stack refactor created from the + CreateStackRefactor action. + """ + @dataclass(kw_only=True) class ExecuteStackRefactorOutput(_SerdeShape): """Dataclass for ExecuteStackRefactorOutput structure.""" @@ -4129,6 +6252,27 @@ class GetGeneratedTemplateInput(_SerdeShape): `arn:aws:cloudformation:`*`us-east-1`*`:`*`123456789012`*`:generatedtemplate/`*`2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc`*` `. """ +class GetGeneratedTemplateInputDict(TypedDict, total=False): + """Dictionary form of `GetGeneratedTemplateInput`.""" + + format: str | None + """ + The language to use to retrieve for the generated template. Supported + values are: + + - `JSON` + + - `YAML` + """ + generated_template_name: Required[str] + """ + The name or Amazon Resource Name (ARN) of the generated template. The + format is + `arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}`. + For example, + `arn:aws:cloudformation:`*`us-east-1`*`:`*`123456789012`*`:generatedtemplate/`*`2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc`*` `. + """ + @dataclass(kw_only=True) class GetGeneratedTemplateOutput(_SerdeShape): """Dataclass for GetGeneratedTemplateOutput structure.""" @@ -4178,6 +6322,17 @@ class GetHookResultInput(_SerdeShape): operation. """ +class GetHookResultInputDict(TypedDict, total=False): + """Dictionary form of `GetHookResultInput`.""" + + hook_result_id: str | None + """ + The unique identifier (ID) of the Hook invocation result that you want + details about. You can get the ID from the + [ListHookResults](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListHookResults.html) + operation. + """ + @dataclass(kw_only=True) class GetHookResultOutput(_SerdeShape): """Dataclass for GetHookResultOutput structure.""" @@ -4255,6 +6410,15 @@ class GetStackPolicyInput(_SerdeShape): policy you want to get. """ +class GetStackPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetStackPolicyInput`.""" + + stack_name: Required[str] + """ + The name or unique stack ID that's associated with the stack whose + policy you want to get. + """ + @dataclass(kw_only=True) class GetStackPolicyOutput(_SerdeShape): """The output for the GetStackPolicy action.""" @@ -4306,6 +6470,37 @@ class GetTemplateInput(_SerdeShape): `Processed`. """ +class GetTemplateInputDict(TypedDict, total=False): + """Dictionary form of `GetTemplateInput`.""" + + stack_name: str | None + """ + The name or the unique stack ID that's associated with the stack, which + aren't always interchangeable: + + - Running stacks: You can specify either the stack's name or its unique + stack ID. + + - Deleted stacks: You must specify the unique stack ID. + """ + change_set_name: str | None + """ + The name or Amazon Resource Name (ARN) of a change set for which + CloudFormation returns the associated template. If you specify a name, + you must also specify the `StackName`. + """ + template_stage: str | None + """ + For templates that include transforms, the stage of the template that + CloudFormation returns. To get the user-submitted template, specify + `Original`. To get the template after CloudFormation has processed all + transforms, specify `Processed`. + + If the template doesn't include transforms, `Original` and `Processed` + return the same template. By default, CloudFormation specifies + `Processed`. + """ + @dataclass(kw_only=True) class GetTemplateOutput(_SerdeShape): """The output for GetTemplate action.""" @@ -4395,6 +6590,67 @@ class GetTemplateSummaryInput(_SerdeShape): template_summary_config: TemplateSummaryConfig | None = ... """Specifies options for the `GetTemplateSummary` API action.""" +class GetTemplateSummaryInputDict(TypedDict, total=False): + """Dictionary form of `GetTemplateSummaryInput`.""" + + template_body: str | None + """ + Structure that contains the template body with a minimum length of 1 + byte and a maximum length of 51,200 bytes. + + Conditional: You must specify only one of the following parameters: + `StackName`, `StackSetName`, `TemplateBody`, or `TemplateURL`. + """ + template_url: str | None + """ + The URL of a file that contains the template body. The URL must point to + a template (max size: 1 MB) that's located in an Amazon S3 bucket or a + Systems Manager document. The location for an Amazon S3 bucket must + start with `https://`. + + Conditional: You must specify only one of the following parameters: + `StackName`, `StackSetName`, `TemplateBody`, or `TemplateURL`. + """ + stack_name: str | None + """ + The name or the stack ID that's associated with the stack, which + aren't always interchangeable. For running stacks, you can specify + either the stack's name or its unique stack ID. For deleted stack, you + must specify the unique stack ID. + + Conditional: You must specify only one of the following parameters: + `StackName`, `StackSetName`, `TemplateBody`, or `TemplateURL`. + """ + stack_set_name: str | None + """ + The name or unique ID of the StackSet from which the stack was created. + + Conditional: You must specify only one of the following parameters: + `StackName`, `StackSetName`, `TemplateBody`, or `TemplateURL`. + """ + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + template_summary_config: TemplateSummaryConfig | TemplateSummaryConfigDict | None + """Specifies options for the `GetTemplateSummary` API action.""" + @dataclass(kw_only=True) class GetTemplateSummaryOutput(_SerdeShape): """The output for the GetTemplateSummary action.""" @@ -4639,6 +6895,59 @@ class ImportStacksToStackSetInput(_SerdeShape): - For service managed StackSets, specify `DELEGATED_ADMIN`. """ +class ImportStacksToStackSetInputDict(TypedDict, total=False): + """Dictionary form of `ImportStacksToStackSetInput`.""" + + stack_set_name: Required[str] + """ + The name of the StackSet. The name must be unique in the Region where + you create your StackSet. + """ + stack_ids: Sequence[str] | None + """ + The IDs of the stacks you are importing into a StackSet. You import up + to 10 stacks per StackSet at a time. + + Specify either `StackIds` or `StackIdsUrl`. + """ + stack_ids_url: str | None + """ + The Amazon S3 URL which contains list of stack ids to be inputted. + + Specify either `StackIds` or `StackIdsUrl`. + """ + organizational_unit_ids: Sequence[str] | None + """ + The list of OU ID's to which the imported stacks must be mapped as + deployment targets. + """ + operation_preferences: ( + StackSetOperationPreferences | StackSetOperationPreferencesDict | None + ) + """ + The user-specified preferences for how CloudFormation performs a + StackSet operation. + + For more information about maximum concurrent accounts and failure + tolerance, see [StackSet operation + options](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options). + """ + operation_id: str | None + """ + A unique, user defined, identifier for the StackSet operation. + + This field is autopopulated if not provided. + """ + call_as: str | None + """ + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - For service managed StackSets, specify `DELEGATED_ADMIN`. + """ + @dataclass(kw_only=True) class ImportStacksToStackSetOutput(_SerdeShape): """Dataclass for ImportStacksToStackSetOutput structure.""" @@ -4746,6 +7055,20 @@ class ListChangeSetsInput(_SerdeShape): from a previous call.) """ +class ListChangeSetsInputDict(TypedDict, total=False): + """Dictionary form of `ListChangeSetsInput`.""" + + stack_name: Required[str] + """ + The name or the Amazon Resource Name (ARN) of the stack for which you + want to list change sets. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class ListChangeSetsOutput(_SerdeShape): """The output for the ListChangeSets action.""" @@ -4778,6 +7101,15 @@ class ListExportsInput(_SerdeShape): from a previous call.) """ +class ListExportsInputDict(TypedDict, total=False): + """Dictionary form of `ListExportsInput`.""" + + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class ListExportsOutput(_SerdeShape): """Dataclass for ListExportsOutput structure.""" @@ -4816,6 +7148,23 @@ class ListGeneratedTemplatesInput(_SerdeShape): each response. The maximum value is 100. """ +class ListGeneratedTemplatesInputDict(TypedDict, total=False): + """Dictionary form of `ListGeneratedTemplatesInput`.""" + + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + If the number of available results exceeds this maximum, the response + includes a `NextToken` value that you can use for the `NextToken` + parameter to get the next set of results. By default the + `ListGeneratedTemplates` API action will return at most 50 results in + each response. The maximum value is 100. + """ + @dataclass(kw_only=True) class ListGeneratedTemplatesOutput(_SerdeShape): """Dataclass for ListGeneratedTemplatesOutput structure.""" @@ -4886,6 +7235,53 @@ class ListHookResultsInput(_SerdeShape): from a previous call.) """ +class ListHookResultsInputDict(TypedDict, total=False): + """Dictionary form of `ListHookResultsInput`.""" + + target_type: str | None + """ + Filters results by target type. Currently, only `CHANGE_SET` and + `CLOUD_CONTROL` are supported filter options. + + Required when `TargetId` is specified and cannot be used otherwise. + """ + target_id: str | None + """ + Filters results by the unique identifier of the target the Hook was + invoked against. + + For change sets, this is the change set ARN. When the target is a Cloud + Control API operation, this value must be the `HookRequestToken` + returned by the Cloud Control API request. For more information on the + `HookRequestToken`, see + [ProgressEvent](https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_ProgressEvent.html). + + Required when `TargetType` is specified and cannot be used otherwise. + """ + type_arn: str | None + """ + Filters results by the ARN of the Hook. Can be used alone or in + combination with `Status`. + """ + status: str | None + """ + Filters results by the status of Hook invocations. Can only be used in + combination with `TypeArn`. Valid values are: + + - `HOOK_IN_PROGRESS`: The Hook is currently running. + + - `HOOK_COMPLETE_SUCCEEDED`: The Hook completed successfully. + + - `HOOK_COMPLETE_FAILED`: The Hook completed but failed validation. + + - `HOOK_FAILED`: The Hook encountered an error during execution. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class ListHookResultsOutput(_SerdeShape): """Dataclass for ListHookResultsOutput structure.""" @@ -4930,6 +7326,20 @@ class ListImportsInput(_SerdeShape): from a previous call.) """ +class ListImportsInputDict(TypedDict, total=False): + """Dictionary form of `ListImportsInput`.""" + + export_name: Required[str] + """ + The name of the exported output value. CloudFormation returns the stack + names that are importing this value. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class ListImportsOutput(_SerdeShape): """Dataclass for ListImportsOutput structure.""" @@ -4977,6 +7387,32 @@ class ListResourceScanRelatedResourcesInput(_SerdeShape): results in each response. The maximum value is 100. """ +class ListResourceScanRelatedResourcesInputDict(TypedDict, total=False): + """Dictionary form of `ListResourceScanRelatedResourcesInput`.""" + + resource_scan_id: Required[str] + """The Amazon Resource Name (ARN) of the resource scan.""" + resources: Required[ + Sequence[ScannedResourceIdentifier | ScannedResourceIdentifierDict] + ] + """ + The list of resources for which you want to get the related resources. + Up to 100 resources can be provided. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + If the number of available results exceeds this maximum, the response + includes a `NextToken` value that you can use for the `NextToken` + parameter to get the next set of results. By default the + `ListResourceScanRelatedResources` API action will return up to 100 + results in each response. The maximum value is 100. + """ + @dataclass(kw_only=True) class ListResourceScanRelatedResourcesOutput(_SerdeShape): """Dataclass for ListResourceScanRelatedResourcesOutput structure.""" @@ -5037,6 +7473,40 @@ class ListResourceScanResourcesInput(_SerdeShape): in each response. The maximum value is 100. """ +class ListResourceScanResourcesInputDict(TypedDict, total=False): + """Dictionary form of `ListResourceScanResourcesInput`.""" + + resource_scan_id: Required[str] + """The Amazon Resource Name (ARN) of the resource scan.""" + resource_identifier: str | None + """ + If specified, the returned resources will have the specified resource + identifier (or one of them in the case where the resource has multiple + identifiers). + """ + resource_type_prefix: str | None + """ + If specified, the returned resources will be of any of the resource + types with the specified prefix. + """ + tag_key: str | None + """If specified, the returned resources will have a matching tag key.""" + tag_value: str | None + """If specified, the returned resources will have a matching tag value.""" + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + If the number of available results exceeds this maximum, the response + includes a `NextToken` value that you can use for the `NextToken` + parameter to get the next set of results. By default the + `ListResourceScanResources` API action will return at most 100 results + in each response. The maximum value is 100. + """ + @dataclass(kw_only=True) class ListResourceScanResourcesOutput(_SerdeShape): """Dataclass for ListResourceScanResourcesOutput structure.""" @@ -5084,6 +7554,27 @@ class ListResourceScansInput(_SerdeShape): default is `FULL`. """ +class ListResourceScansInputDict(TypedDict, total=False): + """Dictionary form of `ListResourceScansInput`.""" + + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + If the number of available results exceeds this maximum, the response + includes a `NextToken` value that you can use for the `NextToken` + parameter to get the next set of results. The default value is 10. The + maximum value is 100. + """ + scan_type_filter: str | None + """ + The scan type that you want to get summary information about. The + default is `FULL`. + """ + @dataclass(kw_only=True) class ListResourceScansOutput(_SerdeShape): """Dataclass for ListResourceScansOutput structure.""" @@ -5172,6 +7663,71 @@ class ListStackInstanceResourceDriftsInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class ListStackInstanceResourceDriftsInputDict(TypedDict, total=False): + """Dictionary form of `ListStackInstanceResourceDriftsInput`.""" + + stack_set_name: Required[str] + """ + The name or unique ID of the StackSet that you want to list drifted + resources for. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + stack_instance_resource_drift_statuses: Sequence[str] | None + """ + The resource drift status of the stack instance. + + - `DELETED`: The resource differs from its expected template + configuration in that the resource has been deleted. + + - `MODIFIED`: One or more resource properties differ from their expected + template values. + + - `IN_SYNC`: The resource's actual configuration matches its expected + template configuration. + + - `NOT_CHECKED`: CloudFormation doesn't currently return this value. + """ + stack_instance_account: Required[str] + """ + The name of the Amazon Web Services account that you want to list + resource drifts for. + """ + stack_instance_region: Required[str] + """The name of the Region where you want to list resource drifts.""" + operation_id: Required[str] + """The unique ID of the drift operation.""" + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class ListStackInstanceResourceDriftsOutput(_SerdeShape): """Dataclass for ListStackInstanceResourceDriftsOutput structure.""" @@ -5249,6 +7805,56 @@ class ListStackInstancesInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class ListStackInstancesInputDict(TypedDict, total=False): + """Dictionary form of `ListStackInstancesInput`.""" + + stack_set_name: Required[str] + """ + The name or unique ID of the StackSet that you want to list stack + instances for. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + filters: Sequence[StackInstanceFilter | StackInstanceFilterDict] | None + """The filter to apply to stack instances""" + stack_instance_account: str | None + """ + The name of the Amazon Web Services account that you want to list stack + instances for. + """ + stack_instance_region: str | None + """The name of the Region where you want to list stack instances.""" + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class ListStackInstancesOutput(_SerdeShape): """Dataclass for ListStackInstancesOutput structure.""" @@ -5296,6 +7902,27 @@ class ListStackRefactorActionsInput(_SerdeShape): parameter to get the next set of results. """ +class ListStackRefactorActionsInputDict(TypedDict, total=False): + """Dictionary form of `ListStackRefactorActionsInput`.""" + + stack_refactor_id: Required[str] + """ + The ID associated with the stack refactor created from the + CreateStackRefactor action. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + @dataclass(kw_only=True) class ListStackRefactorActionsOutput(_SerdeShape): """Dataclass for ListStackRefactorActionsOutput structure.""" @@ -5341,6 +7968,28 @@ class ListStackRefactorsInput(_SerdeShape): parameter to get the next set of results. """ +class ListStackRefactorsInputDict(TypedDict, total=False): + """Dictionary form of `ListStackRefactorsInput`.""" + + execution_status_filter: Sequence[str] | None + """ + Execution status to use as a filter. Specify one or more execution + status codes to list only stack refactors with the specified execution + status codes. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + @dataclass(kw_only=True) class ListStackRefactorsOutput(_SerdeShape): """Dataclass for ListStackRefactorsOutput structure.""" @@ -5397,6 +8046,25 @@ class ListStackResourcesInput(_SerdeShape): from a previous call.) """ +class ListStackResourcesInputDict(TypedDict, total=False): + """Dictionary form of `ListStackResourcesInput`.""" + + stack_name: Required[str] + """ + The name or the unique stack ID that is associated with the stack, which + aren't always interchangeable: + + - Running stacks: You can specify either the stack's name or its unique + stack ID. + + - Deleted stacks: You must specify the unique stack ID. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class ListStackResourcesOutput(_SerdeShape): """The output for a ListStackResources action.""" @@ -5458,6 +8126,47 @@ class ListStackSetAutoDeploymentTargetsInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class ListStackSetAutoDeploymentTargetsInputDict(TypedDict, total=False): + """Dictionary form of `ListStackSetAutoDeploymentTargetsInput`.""" + + stack_set_name: Required[str] + """ + The name or unique ID of the StackSet that you want to get automatic + deployment targets for. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + call_as: str | None + """ + Specifies whether you are acting as an account administrator in the + organization's management account or as a delegated administrator in a + member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class ListStackSetAutoDeploymentTargetsOutput(_SerdeShape): """Dataclass for ListStackSetAutoDeploymentTargetsOutput structure.""" @@ -5480,30 +8189,75 @@ class ListStackSetAutoDeploymentTargetsOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class ListStackSetOperationResultsInput(_SerdeShape): - """Dataclass for ListStackSetOperationResultsInput structure.""" +@dataclass(kw_only=True) +class ListStackSetOperationResultsInput(_SerdeShape): + """Dataclass for ListStackSetOperationResultsInput structure.""" + + stack_set_name: str | None = ... + """ + The name or unique ID of the StackSet that you want to get operation + results for. + """ + operation_id: str | None = ... + """The ID of the StackSet operation.""" + next_token: str | None = ... + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None = ... + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + call_as: str | None = ... + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + filters: list[OperationResultFilter] | None = ... + """The filter to apply to operation results.""" + +class ListStackSetOperationResultsInputDict(TypedDict, total=False): + """Dictionary form of `ListStackSetOperationResultsInput`.""" - stack_set_name: str | None = ... + stack_set_name: Required[str] """ The name or unique ID of the StackSet that you want to get operation results for. """ - operation_id: str | None = ... + operation_id: Required[str] """The ID of the StackSet operation.""" - next_token: str | None = ... + next_token: str | None """ The token for the next set of items to return. (You received this token from a previous call.) """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a `NextToken` value that you can assign to the `NextToken` request parameter to get the next set of results. """ - call_as: str | None = ... + call_as: str | None """ [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a @@ -5523,7 +8277,7 @@ class ListStackSetOperationResultsInput(_SerdeShape): administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) in the *CloudFormation User Guide*. """ - filters: list[OperationResultFilter] | None = ... + filters: Sequence[OperationResultFilter | OperationResultFilterDict] | None """The filter to apply to operation results.""" @dataclass(kw_only=True) @@ -5594,6 +8348,47 @@ class ListStackSetOperationsInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class ListStackSetOperationsInputDict(TypedDict, total=False): + """Dictionary form of `ListStackSetOperationsInput`.""" + + stack_set_name: Required[str] + """ + The name or unique ID of the StackSet that you want to get operation + summaries for. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class ListStackSetOperationsOutput(_SerdeShape): """Dataclass for ListStackSetOperationsOutput structure.""" @@ -5661,6 +8456,47 @@ class ListStackSetsInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class ListStackSetsInputDict(TypedDict, total=False): + """Dictionary form of `ListStackSetsInput`.""" + + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + status: str | None + """ + The status of the StackSets that you want to get summary information + about. + """ + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the management account or as a delegated + administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class ListStackSetsOutput(_SerdeShape): """Dataclass for ListStackSetsOutput structure.""" @@ -5703,6 +8539,22 @@ class ListStacksInput(_SerdeShape): type. """ +class ListStacksInputDict(TypedDict, total=False): + """Dictionary form of `ListStacksInput`.""" + + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + stack_status_filter: Sequence[str] | None + """ + Stack status to use as a filter. Specify one or more stack status codes + to list only stacks with the specified status codes. For a complete list + of stack status codes, see the `StackStatus` parameter of the Stack data + type. + """ + @dataclass(kw_only=True) class ListStacksOutput(_SerdeShape): """The output for ListStacks action.""" @@ -5766,6 +8618,46 @@ class ListTypeRegistrationsInput(_SerdeShape): from a previous call.) """ +class ListTypeRegistrationsInputDict(TypedDict, total=False): + """Dictionary form of `ListTypeRegistrationsInput`.""" + + type: str | None + """ + The kind of extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + type_name: str | None + """ + The name of the extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + type_arn: str | None + """ + The Amazon Resource Name (ARN) of the extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + registration_status_filter: str | None + """ + The current status of the extension registration request. + + The default is `IN_PROGRESS`. + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class ListTypeRegistrationsOutput(_SerdeShape): """Dataclass for ListTypeRegistrationsOutput structure.""" @@ -5875,6 +8767,87 @@ class ListTypesInput(_SerdeShape): from a previous call.) """ +class ListTypesInputDict(TypedDict, total=False): + """Dictionary form of `ListTypesInput`.""" + + visibility: str | None + """ + The scope at which the extensions are visible and usable in + CloudFormation operations. + + Valid values include: + + - `PRIVATE`: Extensions that are visible and usable within this account + and Region. This includes: + + - Private extensions you have registered in this account and Region. + + - Public extensions that you have activated in this account and + Region. + + - `PUBLIC`: Extensions that are publicly visible and available to be + activated within any Amazon Web Services account. This includes + extensions from Amazon Web Services and third-party publishers. + + The default is `PRIVATE`. + """ + provisioning_type: str | None + """ + For resource types, the provisioning behavior of the resource type. + CloudFormation determines the provisioning type during registration, + based on the types of handlers in the schema handler package submitted. + + Valid values include: + + - `FULLY_MUTABLE`: The resource type includes an update handler to + process updates to the type during stack update operations. + + - `IMMUTABLE`: The resource type doesn't include an update handler, so + the type can't be updated and must instead be replaced during stack + update operations. + + - `NON_PROVISIONABLE`: The resource type doesn't include create, read, + and delete handlers, and therefore can't actually be provisioned. + + The default is `FULLY_MUTABLE`. + """ + deprecated_status: str | None + """ + The deprecation status of the extension that you want to get summary + information about. + + Valid values include: + + - `LIVE`: The extension is registered for use in CloudFormation + operations. + + - `DEPRECATED`: The extension has been deregistered and can no longer be + used in CloudFormation operations. + """ + type: str | None + """The type of extension.""" + filters: TypeFilters | TypeFiltersDict | None + """ + Filter criteria to use in determining which extensions to return. + + Filters must be compatible with `Visibility` to return valid results. + For example, specifying `AWS_TYPES` for `Category` and `PRIVATE` for + `Visibility` returns an empty list of types, but specifying `PUBLIC` for + `Visibility` returns the desired list. + """ + max_results: int | None + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + @dataclass(kw_only=True) class ListTypesOutput(_SerdeShape): """Dataclass for ListTypesOutput structure.""" @@ -5884,59 +8857,117 @@ class ListTypesOutput(_SerdeShape): A list of `TypeSummary` structures that contain information about the specified extensions. """ - next_token: str | None = ... + next_token: str | None = ... + """ + If the request doesn't return all the remaining results, `NextToken` is + set to a token. To retrieve the next set of results, call this action + again and assign that token to the request object's `NextToken` + parameter. If the request returns all results, `NextToken` is set to + `null`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListTypeVersionsInput(_SerdeShape): + """Dataclass for ListTypeVersionsInput structure.""" + + type: str | None = ... + """ + The kind of the extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + type_name: str | None = ... + """ + The name of the extension for which you want version summary + information. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the extension for which you want + version summary information. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + max_results: int | None = ... + """ + The maximum number of results to be returned with a single call. If the + number of available results exceeds this maximum, the response includes + a `NextToken` value that you can assign to the `NextToken` request + parameter to get the next set of results. + """ + next_token: str | None = ... + """ + The token for the next set of items to return. (You received this token + from a previous call.) + """ + deprecated_status: str | None = ... """ - If the request doesn't return all the remaining results, `NextToken` is - set to a token. To retrieve the next set of results, call this action - again and assign that token to the request object's `NextToken` - parameter. If the request returns all results, `NextToken` is set to - `null`. + The deprecation status of the extension versions that you want to get + summary information about. + + Valid values include: + + - `LIVE`: The extension version is registered and can be used in + CloudFormation operations, dependent on its provisioning behavior and + visibility scope. + + - `DEPRECATED`: The extension version has been deregistered and can no + longer be used in CloudFormation operations. + + The default is `LIVE`. """ - response_metadata: ResponseMetadata = ... + publisher_id: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The publisher ID of the extension publisher. + + Extensions published by Amazon aren't assigned a publisher ID. """ -@dataclass(kw_only=True) -class ListTypeVersionsInput(_SerdeShape): - """Dataclass for ListTypeVersionsInput structure.""" +class ListTypeVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListTypeVersionsInput`.""" - type: str | None = ... + type: str | None """ The kind of the extension. Conditional: You must specify either `TypeName` and `Type`, or `Arn`. """ - type_name: str | None = ... + type_name: str | None """ The name of the extension for which you want version summary information. Conditional: You must specify either `TypeName` and `Type`, or `Arn`. """ - arn: str | None = ... + arn: str | None """ The Amazon Resource Name (ARN) of the extension for which you want version summary information. Conditional: You must specify either `TypeName` and `Type`, or `Arn`. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a `NextToken` value that you can assign to the `NextToken` request parameter to get the next set of results. """ - next_token: str | None = ... + next_token: str | None """ The token for the next set of items to return. (You received this token from a previous call.) """ - deprecated_status: str | None = ... + deprecated_status: str | None """ The deprecation status of the extension versions that you want to get summary information about. @@ -5952,7 +8983,7 @@ class ListTypeVersionsInput(_SerdeShape): The default is `LIVE`. """ - publisher_id: str | None = ... + publisher_id: str | None """ The publisher ID of the extension publisher. @@ -6013,6 +9044,20 @@ class LoggingConfig(_SerdeShape): logging information when invoking the extension's handlers. """ +class LoggingConfigDict(TypedDict, total=False): + """Dictionary form of `LoggingConfig`.""" + + log_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the role that CloudFormation should + assume when sending log entries to CloudWatch Logs. + """ + log_group_name: Required[str] + """ + The Amazon CloudWatch Logs group to which CloudFormation sends error + logging information when invoking the extension's handlers. + """ + @dataclass(kw_only=True) class ManagedExecution(_SerdeShape): """ @@ -6038,6 +9083,27 @@ class ManagedExecution(_SerdeShape): request order. """ +class ManagedExecutionDict(TypedDict, total=False): + """Dictionary form of `ManagedExecution`.""" + + active: bool | None + """ + When `true`, CloudFormation performs non-conflicting operations + concurrently and queues conflicting operations. After conflicting + operations finish, CloudFormation starts queued operations in request + order. + + Note: + If there are already running or queued operations, CloudFormation queues + all incoming operations even if they are non-conflicting. + + You can't modify your StackSet's execution configuration while there + are running or queued operations for that StackSet. + + When `false` (default), StackSets performs one operation at a time in + request order. + """ + @dataclass(kw_only=True) class ModuleInfo(_SerdeShape): """ @@ -6223,6 +9289,14 @@ class OperationResultFilter(_SerdeShape): values: str | None = ... """The value to filter by.""" +class OperationResultFilterDict(TypedDict, total=False): + """Dictionary form of `OperationResultFilter`.""" + + name: str | None + """The type of filter to apply.""" + values: str | None + """The value to filter by.""" + class OperationResultFilterName(UnknownEnumMixin, StrEnum): OPERATION_RESULT_STATUS = "OPERATION_RESULT_STATUS" @@ -6302,6 +9376,33 @@ class Parameter(_SerdeShape): in the *CloudFormation User Guide*. """ +class ParameterDict(TypedDict, total=False): + """Dictionary form of `Parameter`.""" + + parameter_key: str | None + """ + The key associated with the parameter. If you don't specify a key and + value for a particular parameter, CloudFormation uses the default value + that's specified in your template. + """ + parameter_value: str | None + """The input value associated with the parameter.""" + use_previous_value: bool | None + """ + During a stack update, use the existing parameter value that the stack + is using for a given parameter key. If you specify `true`, do not + specify a parameter value. + """ + resolved_value: str | None + """ + Read-only. The value that corresponds to a Systems Manager parameter + key. This field is returned only for Systems Manager parameter types in + the template. For more information, see [Specify existing resources at + runtime with CloudFormation-supplied parameter + types](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-supplied-parameter-types.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class ParameterConstraints(_SerdeShape): """ @@ -6447,6 +9548,47 @@ class PublishTypeInput(_SerdeShape): `1.0.0`. """ +class PublishTypeInputDict(TypedDict, total=False): + """Dictionary form of `PublishTypeInput`.""" + + type: str | None + """ + The type of the extension. + + Conditional: You must specify `Arn`, or `TypeName` and `Type`. + """ + arn: str | None + """ + The Amazon Resource Name (ARN) of the extension. + + Conditional: You must specify `Arn`, or `TypeName` and `Type`. + """ + type_name: str | None + """ + The name of the extension. + + Conditional: You must specify `Arn`, or `TypeName` and `Type`. + """ + public_version_number: str | None + """ + The version number to assign to this version of the extension. + + Use the following format, and adhere to semantic versioning when + assigning a version number to your extension: + + `MAJOR.MINOR.PATCH` + + For more information, see [Semantic Versioning + 2.0.0](https://semver.org/). + + If you don't specify a version number, CloudFormation increments the + version number by one minor version release. + + You cannot specify a version number the first time you publish a type. + CloudFormation automatically sets the first version number to be + `1.0.0`. + """ + @dataclass(kw_only=True) class PublishTypeOutput(_SerdeShape): """Dataclass for PublishTypeOutput structure.""" @@ -6504,6 +9646,45 @@ class RecordHandlerProgressInput(_SerdeShape): CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). """ +class RecordHandlerProgressInputDict(TypedDict, total=False): + """Dictionary form of `RecordHandlerProgressInput`.""" + + bearer_token: Required[str] + """ + Reserved for use by the [CloudFormation + CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). + """ + operation_status: Required[str] + """ + Reserved for use by the [CloudFormation + CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). + """ + current_operation_status: str | None + """ + Reserved for use by the [CloudFormation + CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). + """ + status_message: str | None + """ + Reserved for use by the [CloudFormation + CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). + """ + error_code: str | None + """ + Reserved for use by the [CloudFormation + CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). + """ + resource_model: str | None + """ + Reserved for use by the [CloudFormation + CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). + """ + client_request_token: str | None + """ + Reserved for use by the [CloudFormation + CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html). + """ + @dataclass(kw_only=True) class RecordHandlerProgressOutput(_SerdeShape): """Dataclass for RecordHandlerProgressOutput structure.""" @@ -6546,6 +9727,31 @@ class RegisterPublisherInput(_SerdeShape): in the *CloudFormation Command Line Interface (CLI) User Guide*. """ +class RegisterPublisherInputDict(TypedDict, total=False): + """Dictionary form of `RegisterPublisherInput`.""" + + accept_terms_and_conditions: bool | None + """ + Whether you accept the [Terms and + Conditions](https://cloudformation-registry-documents.s3.amazonaws.com/Terms_and_Conditions_for_AWS_CloudFormation_Registry_Publishers.pdf) + for publishing extensions in the CloudFormation registry. You must + accept the terms and conditions in order to register to publish public + extensions to the CloudFormation registry. + + The default is `false`. + """ + connection_arn: str | None + """ + If you are using a Bitbucket or GitHub account for identity + verification, the Amazon Resource Name (ARN) for your connection to that + account. + + For more information, see [Prerequisite: Registering your account to + publish CloudFormation + extensions](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs) + in the *CloudFormation Command Line Interface (CLI) User Guide*. + """ + @dataclass(kw_only=True) class RegisterPublisherOutput(_SerdeShape): """Dataclass for RegisterPublisherOutput structure.""" @@ -6649,6 +9855,91 @@ class RegisterTypeInput(_SerdeShape): multiple times. """ +class RegisterTypeInputDict(TypedDict, total=False): + """Dictionary form of `RegisterTypeInput`.""" + + type: str | None + """The kind of extension.""" + type_name: Required[str] + """ + The name of the extension being registered. + + We suggest that extension names adhere to the following patterns: + + - For resource types, `company_or_organization::service::type`. + + - For modules, `company_or_organization::service::type::MODULE`. + + - For Hooks, `MyCompany::Testing::MyTestHook`. + + Note: + The following organization namespaces are reserved and can't be used in + your extension names: + + - `Alexa` + + - `AMZN` + + - `Amazon` + + - `AWS` + + - `Custom` + + - `Dev` + """ + schema_handler_package: Required[str] + """ + A URL to the S3 bucket that contains the extension project package that + contains the necessary files for the extension you want to register. + + For information about generating a schema handler package for the + extension you want to register, see + [submit](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-cli-submit.html) + in the *CloudFormation Command Line Interface (CLI) User Guide*. + + Note: + The user registering the extension must be able to access the package in + the S3 bucket. That's, the user needs to have + [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) + permissions for the schema handler package. For more information, see + [Actions, Resources, and Condition Keys for Amazon + S3](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html) + in the *Identity and Access Management User Guide*. + """ + logging_config: LoggingConfig | LoggingConfigDict | None + """Specifies logging configuration information for an extension.""" + execution_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role for CloudFormation to + assume when invoking the extension. + + For CloudFormation to assume the specified execution role, the role must + contain a trust relationship with the CloudFormation service principal + (`resources.cloudformation.amazonaws.com`). For more information about + adding trust relationships, see [Modifying a role trust + policy](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-managingrole-editing-console.html#roles-managingrole_edit-trust-policy) + in the *Identity and Access Management User Guide*. + + If your extension calls Amazon Web Services APIs in any of its handlers, + you must create an *[IAM execution + role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html)* + that includes the necessary permissions to call those Amazon Web + Services APIs, and provision that execution role in your account. When + CloudFormation needs to invoke the resource type handler, CloudFormation + assumes this execution role to create a temporary session token, which + it then passes to the resource type handler, thereby supplying your + resource type with the appropriate credentials. + """ + client_request_token: str | None + """ + A unique identifier that acts as an idempotency key for this + registration request. Specifying a client request token prevents + CloudFormation from generating more than one version of an extension + from the same registration request, even if the request is submitted + multiple times. + """ + @dataclass(kw_only=True) class RegisterTypeOutput(_SerdeShape): """Dataclass for RegisterTypeOutput structure.""" diff --git a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/models_1.pyi b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/models_1.pyi index ebf95b4b7..684bf65c2 100644 --- a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/models_1.pyi +++ b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/models_1.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -10,14 +12,19 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( AccountGateResult, AutoDeployment, + AutoDeploymentDict, DeploymentConfig, + DeploymentConfigDict, DeploymentTargets, + DeploymentTargetsDict, LiveResourceDrift, ManagedExecution, + ManagedExecutionDict, ModuleInfo, OperationEntry, Output, Parameter, + ParameterDict, PhysicalResourceIdContextKeyValuePair, PropertyDifference, ServiceError, @@ -307,6 +314,31 @@ class ResourceDefinition(_SerdeShape): in the *CloudFormation Command Line Interface (CLI) User Guide*. """ +class ResourceDefinitionDict(TypedDict, total=False): + """Dictionary form of `ResourceDefinition`.""" + + resource_type: Required[str] + """ + The type of the resource, such as `AWS::DynamoDB::Table`. For the list + of supported resources, see [Resource type support for imports and drift + detection](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html) + in the *CloudFormation User Guide* + """ + logical_resource_id: str | None + """The logical resource id for this resource in the generated template.""" + resource_identifier: Required[Mapping[str, str]] + """ + A list of up to 256 key-value pairs that identifies the scanned + resource. The key is the name of one of the primary identifiers for the + resource. (Primary identifiers are specified in the `primaryIdentifier` + list in the resource schema.) The value is the value of that primary + identifier. For example, for a `AWS::DynamoDB::Table` resource, the + primary identifiers is `TableName` so the key-value pair could be + `"TableName": "MyDDBTable"`. For more information, see + [primaryIdentifier](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-primaryidentifier) + in the *CloudFormation Command Line Interface (CLI) User Guide*. + """ + @dataclass(kw_only=True) class ResourceDetail(_SerdeShape): """Details about a resource in a generated template""" @@ -338,19 +370,19 @@ class ResourceDetail(_SerdeShape): InProgress - : The resource processing is still in progress. + : The resource processing is still in progress. Complete - : The resource processing is complete. + : The resource processing is complete. Pending - : The resource processing is pending. + : The resource processing is pending. Failed - : The resource processing has failed. + : The resource processing has failed. """ resource_status_reason: str | None = ... """ @@ -416,6 +448,14 @@ class ResourceLocation(_SerdeShape): logical_resource_id: str | None = ... """The logical name of the resource specified in the template.""" +class ResourceLocationDict(TypedDict, total=False): + """Dictionary form of `ResourceLocation`.""" + + stack_name: Required[str] + """The name associated with the stack.""" + logical_resource_id: Required[str] + """The logical name of the resource specified in the template.""" + @dataclass(kw_only=True) class ResourceMapping(_SerdeShape): """ @@ -434,6 +474,20 @@ class ResourceMapping(_SerdeShape): resource being refactored. """ +class ResourceMappingDict(TypedDict, total=False): + """Dictionary form of `ResourceMapping`.""" + + source: Required[ResourceLocation | ResourceLocationDict] + """ + The source stack `StackName` and `LogicalResourceId` for the resource + being refactored. + """ + destination: Required[ResourceLocation | ResourceLocationDict] + """ + The destination stack `StackName` and `LogicalResourceId` for the + resource being refactored. + """ + @dataclass(kw_only=True) class ResourceScanInProgressException(ServiceError, _SerdeShape): """ @@ -505,19 +559,19 @@ class ResourceScanSummary(_SerdeShape): IN_PROGRESS - : The resource scan is still in progress. + : The resource scan is still in progress. COMPLETE - : The resource scan is complete. + : The resource scan is complete. EXPIRED - : The resource scan has expired. + : The resource scan has expired. FAILED - : The resource scan has failed. + : The resource scan has failed. """ status_reason: str | None = ... """ @@ -666,6 +720,27 @@ class ResourceToImport(_SerdeShape): `MyS3Bucket`). """ +class ResourceToImportDict(TypedDict, total=False): + """Dictionary form of `ResourceToImport`.""" + + resource_type: Required[str] + """ + The type of resource to import into your stack, such as + `AWS::S3::Bucket`. For a list of supported resource types, see [Resource + type support for imports and drift + detection](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html) + in the *CloudFormation User Guide*. + """ + logical_resource_id: Required[str] + """The logical ID of the target resource as specified in the template.""" + resource_identifier: Required[Mapping[str, str]] + """ + A key-value pair that identifies the target resource. The key is an + identifier property (for example, `BucketName` for `AWS::S3::Bucket` + resources) and the value is the actual property value (for example, + `MyS3Bucket`). + """ + @dataclass(kw_only=True) class RollbackConfiguration(_SerdeShape): """ @@ -728,6 +803,56 @@ class RollbackConfiguration(_SerdeShape): immediately once the operation completes. """ +class RollbackConfigurationDict(TypedDict, total=False): + """Dictionary form of `RollbackConfiguration`.""" + + rollback_triggers: Sequence[RollbackTrigger | RollbackTriggerDict] | None + """ + The triggers to monitor during stack creation or update actions. + + By default, CloudFormation saves the rollback triggers specified for a + stack and applies them to any subsequent update operations for the + stack, unless you specify otherwise. If you do specify rollback triggers + for this parameter, those triggers replace any list of triggers + previously specified for the stack. This means: + + - To use the rollback triggers previously specified for this stack, if + any, don't specify this parameter. + + - To specify new or updated rollback triggers, you must specify *all* + the triggers that you want used for this stack, even triggers you've + specified before (for example, when creating the stack or during a + previous stack update). Any triggers that you don't include in the + updated list of triggers are no longer applied to the stack. + + - To remove all currently specified triggers, specify an empty list for + this parameter. + + If a specified trigger is missing, the entire stack operation fails and + is rolled back. + """ + monitoring_time_in_minutes: int | None + """ + The amount of time, in minutes, during which CloudFormation should + monitor all the rollback triggers after the stack creation or update + operation deploys all necessary resources. + + The default is 0 minutes. + + If you specify a monitoring period but don't specify any rollback + triggers, CloudFormation still waits the specified period of time before + cleaning up old resources after update operations. You can use this + monitoring period to perform any manual stack validation desired, and + manually cancel the stack creation or update (using + [CancelUpdateStack](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CancelUpdateStack.html), + for example) as necessary. + + If you specify 0 for this parameter, CloudFormation still monitors the + specified rollback triggers during stack creation and update operations. + Then, for update operations, it begins disposing of old resources + immediately once the operation completes. + """ + @dataclass(kw_only=True) class RollbackStackInput(_SerdeShape): """Dataclass for RollbackStackInput structure.""" @@ -755,6 +880,32 @@ class RollbackStackInput(_SerdeShape): deployment mode. """ +class RollbackStackInputDict(TypedDict, total=False): + """Dictionary form of `RollbackStackInput`.""" + + stack_name: Required[str] + """The name that's associated with the stack.""" + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role that CloudFormation + assumes to rollback the stack. + """ + client_request_token: str | None + """A unique identifier for this `RollbackStack` request.""" + retain_except_on_create: bool | None + """ + When set to `true`, newly created resources are deleted when the + operation rolls back. This includes newly created resources marked with + a deletion policy of `Retain`. + + Default: `false` + """ + deployment_config: DeploymentConfig | DeploymentConfigDict | None + """ + The deployment configuration for this stack operation, including the + deployment mode. + """ + @dataclass(kw_only=True) class RollbackStackOutput(_SerdeShape): """Dataclass for RollbackStackOutput structure.""" @@ -799,6 +950,25 @@ class RollbackTrigger(_SerdeShape): resource types. """ +class RollbackTriggerDict(TypedDict, total=False): + """Dictionary form of `RollbackTrigger`.""" + + arn: Required[str] + """ + The Amazon Resource Name (ARN) of the rollback trigger. + + If a specified trigger is missing, the entire stack operation fails and + is rolled back. + """ + type: Required[str] + """ + The resource type of the rollback trigger. Specify either + [AWS::CloudWatch::Alarm](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-cloudwatch-alarm.html) + or + [AWS::CloudWatch::CompositeAlarm](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-cloudwatch-compositealarm.html) + resource types. + """ + @dataclass(kw_only=True) class ScanFilter(_SerdeShape): """A filter that is used to specify which resource types to scan.""" @@ -818,6 +988,24 @@ class ScanFilter(_SerdeShape): end of the string, for example, `AWS::S3::*`. """ +class ScanFilterDict(TypedDict, total=False): + """Dictionary form of `ScanFilter`.""" + + types: Sequence[str] | None + """ + An array of strings where each string represents an Amazon Web Services + resource type you want to scan. Each string defines the resource type + using the format `AWS::ServiceName::ResourceType`, for example, + `AWS::DynamoDB::Table`. For the full list of supported resource types, + see the [Resource type + support](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html) + table in the *CloudFormation User Guide*. + + To scan all resource types within a service, you can use a wildcard, + represented by an asterisk (`*`). You can place an asterisk at only the + end of the string, for example, `AWS::S3::*`. + """ + @dataclass(kw_only=True) class ScannedResource(_SerdeShape): """ @@ -874,6 +1062,29 @@ class ScannedResourceIdentifier(_SerdeShape): in the *CloudFormation Command Line Interface (CLI) User Guide*. """ +class ScannedResourceIdentifierDict(TypedDict, total=False): + """Dictionary form of `ScannedResourceIdentifier`.""" + + resource_type: Required[str] + """ + The type of the resource, such as `AWS::DynamoDB::Table`. For the list + of supported resources, see [Resource type support for imports and drift + detection](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html) + In the *CloudFormation User Guide*. + """ + resource_identifier: Required[Mapping[str, str]] + """ + A list of up to 256 key-value pairs that identifies the scanned + resource. The key is the name of one of the primary identifiers for the + resource. (Primary identifiers are specified in the `primaryIdentifier` + list in the resource schema.) The value is the value of that primary + identifier. For example, for a `AWS::DynamoDB::Table` resource, the + primary identifiers is `TableName` so the key-value pair could be + `"TableName": "MyDDBTable"`. For more information, see + [primaryIdentifier](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-primaryidentifier) + in the *CloudFormation Command Line Interface (CLI) User Guide*. + """ + class ScanType(UnknownEnumMixin, StrEnum): FULL = "FULL" PARTIAL = "PARTIAL" @@ -904,6 +1115,31 @@ class SetStackPolicyInput(_SerdeShape): parameter, but not both. """ +class SetStackPolicyInputDict(TypedDict, total=False): + """Dictionary form of `SetStackPolicyInput`.""" + + stack_name: Required[str] + """The name or unique stack ID that you want to associate a policy with.""" + stack_policy_body: str | None + """ + Structure that contains the stack policy body. For more information, see + [Prevent updates to stack + resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html) + in the *CloudFormation User Guide*. You can specify either the + `StackPolicyBody` or the `StackPolicyURL` parameter, but not both. + """ + stack_policy_url: str | None + """ + Location of a file that contains the stack policy. The URL must point to + a policy (maximum size: 16 KB) located in an Amazon S3 bucket in the + same Amazon Web Services Region as the stack. The location for an Amazon + S3 bucket must start with `https://`. URLs from S3 static websites are + not supported. + + You can specify either the `StackPolicyBody` or the `StackPolicyURL` + parameter, but not both. + """ + @dataclass(kw_only=True) class SetStackPolicyOutput(_SerdeShape): """Dataclass for SetStackPolicyOutput structure.""" @@ -966,6 +1202,55 @@ class SetTypeConfigurationInput(_SerdeShape): `TypeName`. """ +class SetTypeConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `SetTypeConfigurationInput`.""" + + type_arn: str | None + """ + The Amazon Resource Name (ARN) for the extension in this account and + Region. + + For public extensions, this will be the ARN assigned when you call the + [ActivateType](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ActivateType.html) + API operation in this account and Region. For private extensions, this + will be the ARN assigned when you call the + [RegisterType](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html) + API operation in this account and Region. + + Do not include the extension versions suffix at the end of the ARN. You + can set the configuration for an extension, but not for a specific + extension version. + """ + configuration: Required[str] + """ + The configuration data for the extension in this account and Region. + + The configuration data must be formatted as JSON and validate against + the extension's schema returned in the `Schema` response element of + [DescribeType](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html). + """ + configuration_alias: str | None + """ + An alias by which to refer to this extension configuration data. + + Conditional: Specifying a configuration alias is required when setting a + configuration for a resource type extension. + """ + type_name: str | None + """ + The name of the extension. + + Conditional: You must specify `ConfigurationArn`, or `Type` and + `TypeName`. + """ + type: str | None + """ + The type of extension. + + Conditional: You must specify `ConfigurationArn`, or `Type` and + `TypeName`. + """ + @dataclass(kw_only=True) class SetTypeConfigurationOutput(_SerdeShape): """Dataclass for SetTypeConfigurationOutput structure.""" @@ -1016,6 +1301,35 @@ class SetTypeDefaultVersionInput(_SerdeShape): extension version when it is registered. """ +class SetTypeDefaultVersionInputDict(TypedDict, total=False): + """Dictionary form of `SetTypeDefaultVersionInput`.""" + + arn: str | None + """ + The Amazon Resource Name (ARN) of the extension for which you want + version summary information. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + type: str | None + """ + The kind of extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + type_name: str | None + """ + The name of the extension. + + Conditional: You must specify either `TypeName` and `Type`, or `Arn`. + """ + version_id: str | None + """ + The ID of a specific version of the extension. The version ID is the + value at the end of the Amazon Resource Name (ARN) assigned to the + extension version when it is registered. + """ + @dataclass(kw_only=True) class SetTypeDefaultVersionOutput(_SerdeShape): """Dataclass for SetTypeDefaultVersionOutput structure.""" @@ -1056,15 +1370,42 @@ class SignalResourceInput(_SerdeShape): update. """ -@dataclass(kw_only=True) -class SignalResourceOutput(_SerdeShape): - """Dataclass for SignalResourceOutput structure.""" +class SignalResourceInputDict(TypedDict, total=False): + """Dictionary form of `SignalResourceInput`.""" - response_metadata: ResponseMetadata = ... + stack_name: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually + The stack name or unique stack ID that includes the resource that you + want to signal. + """ + logical_resource_id: Required[str] + """ + The logical ID of the resource that you want to signal. The logical ID + is the name of the resource that given in the template. + """ + unique_id: Required[str] + """ + A unique ID of the signal. When you signal Amazon EC2 instances or Auto + Scaling groups, specify the instance ID that you are signaling as the + unique ID. If you send multiple signals to a single resource (such as + signaling a wait condition), each signal requires a different unique ID. + """ + status: Required[str] + """ + The status of the signal, which is either success or failure. A failure + signal causes CloudFormation to immediately fail the stack creation or + update. + """ + +@dataclass(kw_only=True) +class SignalResourceOutput(_SerdeShape): + """Dataclass for SignalResourceOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually optional. """ @@ -1216,6 +1557,16 @@ class StackDefinition(_SerdeShape): template_url: str | None = ... """The desired final state of the stack template.""" +class StackDefinitionDict(TypedDict, total=False): + """Dictionary form of `StackDefinition`.""" + + stack_name: str | None + """The name associated with the stack.""" + template_body: str | None + """The file path for the stack template file.""" + template_url: str | None + """The desired final state of the stack template.""" + class StackDriftDetectionStatus(UnknownEnumMixin, StrEnum): DETECTION_IN_PROGRESS = "DETECTION_IN_PROGRESS" DETECTION_FAILED = "DETECTION_FAILED" @@ -1556,6 +1907,14 @@ class StackInstanceFilter(_SerdeShape): values: str | None = ... """The status to filter by.""" +class StackInstanceFilterDict(TypedDict, total=False): + """Dictionary form of `StackInstanceFilter`.""" + + name: str | None + """The type of filter to apply.""" + values: str | None + """The status to filter by.""" + class StackInstanceFilterName(UnknownEnumMixin, StrEnum): DETAILED_STATUS = "DETAILED_STATUS" LAST_OPERATION_ID = "LAST_OPERATION_ID" @@ -2674,6 +3033,101 @@ class StackSetOperationPreferences(_SerdeShape): of the number of failures. """ +class StackSetOperationPreferencesDict(TypedDict, total=False): + """Dictionary form of `StackSetOperationPreferences`.""" + + region_concurrency_type: str | None + """ + The concurrency type of deploying StackSets operations in Regions, could + be in parallel or one Region at a time. + """ + region_order: Sequence[str] | None + """The order of the Regions where you want to perform the stack operation.""" + failure_tolerance_count: int | None + """ + The number of accounts per Region this operation can fail in before + CloudFormation stops the operation in that Region. If the operation is + stopped in a Region, CloudFormation doesn't attempt the operation in + any subsequent Regions. + + You can specify either `FailureToleranceCount` or + `FailureTolerancePercentage`, but not both. + + By default, `0` is specified. + """ + failure_tolerance_percentage: int | None + """ + The percentage of accounts per Region this stack operation can fail in + before CloudFormation stops the operation in that Region. If the + operation is stopped in a Region, CloudFormation doesn't attempt the + operation in any subsequent Regions. + + When calculating the number of accounts based on the specified + percentage, CloudFormation rounds *down* to the next whole number. + + You can specify either `FailureToleranceCount` or + `FailureTolerancePercentage`, but not both. + + By default, `0` is specified. + """ + max_concurrent_count: int | None + """ + The maximum number of accounts in which to perform this operation at one + time. This can depend on the value of `FailureToleranceCount` depending + on your `ConcurrencyMode`. `MaxConcurrentCount` is at most one more than + the `FailureToleranceCount` if you're using `STRICT_FAILURE_TOLERANCE`. + + Note that this setting lets you specify the *maximum* for operations. + For large deployments, under certain circumstances the actual number of + accounts acted upon concurrently may be lower due to service throttling. + + You can specify either `MaxConcurrentCount` or + `MaxConcurrentPercentage`, but not both. + + By default, `1` is specified. + """ + max_concurrent_percentage: int | None + """ + The maximum percentage of accounts in which to perform this operation at + one time. + + When calculating the number of accounts based on the specified + percentage, CloudFormation rounds down to the next whole number. This is + true except in cases where rounding down would result is zero. In this + case, CloudFormation sets the number as one instead. + + Note that this setting lets you specify the *maximum* for operations. + For large deployments, under certain circumstances the actual number of + accounts acted upon concurrently may be lower due to service throttling. + + You can specify either `MaxConcurrentCount` or + `MaxConcurrentPercentage`, but not both. + + By default, `1` is specified. + """ + concurrency_mode: str | None + """ + Specifies how the concurrency level behaves during the operation + execution. + + - `STRICT_FAILURE_TOLERANCE`: This option dynamically lowers the + concurrency level to ensure the number of failed accounts never + exceeds the value of `FailureToleranceCount` +1. The initial actual + concurrency is set to the lower of either the value of the + `MaxConcurrentCount`, or the value of `FailureToleranceCount` +1. The + actual concurrency is then reduced proportionally by the number of + failures. This is the default behavior. + + If failure tolerance or Maximum concurrent accounts are set to + percentages, the behavior is similar. + + - `SOFT_FAILURE_TOLERANCE`: This option decouples + `FailureToleranceCount` from the actual concurrency. This allows + StackSet operations to run at the concurrency level set by the + `MaxConcurrentCount` value, or `MaxConcurrentPercentage`, regardless + of the number of failures. + """ + class StackSetOperationResultStatus(UnknownEnumMixin, StrEnum): PENDING = "PENDING" RUNNING = "RUNNING" @@ -3005,6 +3459,18 @@ class StartResourceScanInput(_SerdeShape): scan_filters: list[ScanFilter] | None = ... """The scan filters to use.""" +class StartResourceScanInputDict(TypedDict, total=False): + """Dictionary form of `StartResourceScanInput`.""" + + client_request_token: str | None + """ + A unique identifier for this `StartResourceScan` request. Specify this + token if you plan to retry requests so that CloudFormation knows that + you're not attempting to start a new resource scan. + """ + scan_filters: Sequence[ScanFilter | ScanFilterDict] | None + """The scan filters to use.""" + @dataclass(kw_only=True) class StartResourceScanOutput(_SerdeShape): """Dataclass for StartResourceScanOutput structure.""" @@ -3057,6 +3523,38 @@ class StopStackSetOperationInput(_SerdeShape): in the *CloudFormation User Guide*. """ +class StopStackSetOperationInputDict(TypedDict, total=False): + """Dictionary form of `StopStackSetOperationInput`.""" + + stack_set_name: Required[str] + """ + The name or unique ID of the StackSet that you want to stop the + operation for. + """ + operation_id: Required[str] + """The ID of the stack operation.""" + call_as: str | None + """ + Specifies whether you are acting as an account administrator in the + organization's management account or as a delegated administrator in a + member account. Valid only if the StackSet uses service-managed + permissions. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + @dataclass(kw_only=True) class StopStackSetOperationOutput(_SerdeShape): """Dataclass for StopStackSetOperationOutput structure.""" @@ -3088,6 +3586,21 @@ class Tag(_SerdeShape): of 256 characters for a tag value. """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """ + A string used to identify this tag. You can specify a maximum of 128 + characters for a tag key. Tags owned by Amazon Web Services have the + reserved prefix: `aws:`. + """ + value: Required[str] + """ + A string that contains the value for this tag. You can specify a maximum + of 256 characters for a tag value. + """ + @dataclass(kw_only=True) class TemplateConfiguration(_SerdeShape): """The configuration details of a generated template.""" @@ -3121,6 +3634,38 @@ class TemplateConfiguration(_SerdeShape): in the *CloudFormation User Guide*. """ +class TemplateConfigurationDict(TypedDict, total=False): + """Dictionary form of `TemplateConfiguration`.""" + + deletion_policy: str | None + """ + The `DeletionPolicy` assigned to resources in the generated template. + Supported values are: + + - `DELETE` - delete all resources when the stack is deleted. + + - `RETAIN` - retain all resources when the stack is deleted. + + For more information, see [DeletionPolicy + attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html) + in the *CloudFormation User Guide*. + """ + update_replace_policy: str | None + """ + The `UpdateReplacePolicy` assigned to resources in the generated + template. Supported values are: + + - `DELETE` - delete all resources when the resource is replaced during + an update operation. + + - `RETAIN` - retain all resources when the resource is replaced during + an update operation. + + For more information, see [UpdateReplacePolicy + attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html) + in the *CloudFormation User Guide*. + """ + class TemplateFormat(UnknownEnumMixin, StrEnum): JSON = "JSON" YAML = "YAML" @@ -3217,6 +3762,16 @@ class TemplateSummaryConfig(_SerdeShape): `Warnings` output parameter. """ +class TemplateSummaryConfigDict(TypedDict, total=False): + """Dictionary form of `TemplateSummaryConfig`.""" + + treat_unrecognized_resource_types_as_warnings: bool | None + """ + If set to `True`, any unrecognized resource types generate warnings and + not an error. Any unrecognized resource types are returned in the + `Warnings` output parameter. + """ + @dataclass(kw_only=True) class TestTypeInput(_SerdeShape): """Dataclass for TestTypeInput structure.""" @@ -3272,6 +3827,60 @@ class TestTypeInput(_SerdeShape): in the *Identity and Access Management User Guide*. """ +class TestTypeInputDict(TypedDict, total=False): + """Dictionary form of `TestTypeInput`.""" + + arn: str | None + """ + The Amazon Resource Name (ARN) of the extension. + + Conditional: You must specify `Arn`, or `TypeName` and `Type`. + """ + type: str | None + """ + The type of the extension to test. + + Conditional: You must specify `Arn`, or `TypeName` and `Type`. + """ + type_name: str | None + """ + The name of the extension to test. + + Conditional: You must specify `Arn`, or `TypeName` and `Type`. + """ + version_id: str | None + """ + The version of the extension to test. + + You can specify the version id with either `Arn`, or with `TypeName` and + `Type`. + + If you don't specify a version, CloudFormation uses the default version + of the extension in this account and Region for testing. + """ + log_delivery_bucket: str | None + """ + The S3 bucket to which CloudFormation delivers the contract test + execution logs. + + CloudFormation delivers the logs by the time contract testing has + completed and the extension has been assigned a test type status of + `PASSED` or `FAILED`. + + The user calling `TestType` must be able to access items in the + specified S3 bucket. Specifically, the user needs the following + permissions: + + - `GetObject` + + - `PutObject` + + For more information, see [Actions, Resources, and Condition Keys for + Amazon + S3](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html) + in the *Identity and Access Management User Guide*. + """ + @dataclass(kw_only=True) class TestTypeOutput(_SerdeShape): """Dataclass for TestTypeOutput structure.""" @@ -3386,13 +3995,39 @@ class TypeConfigurationIdentifier(_SerdeShape): type_name: str | None = ... """The name of the extension type to which this configuration applies.""" -@dataclass(kw_only=True) -class TypeConfigurationNotFoundException(ServiceError, _SerdeShape): - """The specified extension configuration can't be found.""" +class TypeConfigurationIdentifierDict(TypedDict, total=False): + """Dictionary form of `TypeConfigurationIdentifier`.""" - response_metadata: ResponseMetadata = ... + type_arn: str | None """ - Metadata about the response that produced this output. Use this to + The ARN for the extension, in this account and Region. + + For public extensions, this will be the ARN assigned when you call the + [ActivateType](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ActivateType.html) + API operation in this account and Region. For private extensions, this + will be the ARN assigned when you call the + [RegisterType](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html) + API operation in this account and Region. + """ + type_configuration_alias: str | None + """ + The alias specified for this configuration, if one was specified when + the configuration was set. + """ + type_configuration_arn: str | None + """The ARN for the configuration, in this account and Region.""" + type: str | None + """The type of extension.""" + type_name: str | None + """The name of the extension type to which this configuration applies.""" + +@dataclass(kw_only=True) +class TypeConfigurationNotFoundException(ServiceError, _SerdeShape): + """The specified extension configuration can't be found.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. @@ -3432,6 +4067,39 @@ class TypeFilters(_SerdeShape): type_name_prefix: str | None = ... """A prefix to use as a filter for results.""" +class TypeFiltersDict(TypedDict, total=False): + """Dictionary form of `TypeFilters`.""" + + category: str | None + """ + The category of extensions to return. + + - `REGISTERED`: Private extensions that have been registered for this + account and Region. + + - `ACTIVATED`: Public extensions that have been activated for this + account and Region. + + - `THIRD_PARTY`: Extensions available for use from publishers other than + Amazon. This includes: + + - Private extensions registered in the account. + + - Public extensions from publishers other than Amazon, whether + activated or not. + + - `AWS_TYPES`: Extensions available for use from Amazon. + """ + publisher_id: str | None + """ + The id of the publisher of the extension. + + Extensions published by Amazon aren't assigned a publisher ID. Use the + `AWS_TYPES` category to specify a list of types published by Amazon. + """ + type_name_prefix: str | None + """A prefix to use as a filter for results.""" + @dataclass(kw_only=True) class TypeNotFoundException(ServiceError, _SerdeShape): """The specified extension doesn't exist in the CloudFormation registry.""" @@ -3643,6 +4311,34 @@ class UpdateGeneratedTemplateInput(_SerdeShape): `DeletionPolicy` and `UpdateReplacePolicy`. """ +class UpdateGeneratedTemplateInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGeneratedTemplateInput`.""" + + generated_template_name: Required[str] + """The name or Amazon Resource Name (ARN) of a generated template.""" + new_generated_template_name: str | None + """An optional new name to assign to the generated template.""" + add_resources: Sequence[ResourceDefinition | ResourceDefinitionDict] | None + """An optional list of resources to be added to the generated template.""" + remove_resources: Sequence[str] | None + """ + A list of logical ids for resources to remove from the generated + template. + """ + refresh_all_resources: bool | None + """ + If `true`, update the resource properties in the generated template with + their current live state. This feature is useful when the resource + properties in your generated a template does not reflect the live state + of the resource properties. This happens when a user update the resource + properties after generating a template. + """ + template_configuration: TemplateConfiguration | TemplateConfigurationDict | None + """ + The configuration details of the generated template, including the + `DeletionPolicy` and `UpdateReplacePolicy`. + """ + @dataclass(kw_only=True) class UpdateGeneratedTemplateOutput(_SerdeShape): """Dataclass for UpdateGeneratedTemplateOutput structure.""" @@ -3951,159 +4647,854 @@ class UpdateStackInput(_SerdeShape): Default: `false` """ -@dataclass(kw_only=True) -class UpdateStackInstancesInput(_SerdeShape): - """Dataclass for UpdateStackInstancesInput structure.""" +class UpdateStackInputDict(TypedDict, total=False): + """Dictionary form of `UpdateStackInput`.""" - stack_set_name: str | None = ... + stack_name: Required[str] + """The name or unique stack ID of the stack to update.""" + template_body: str | None """ - The name or unique ID of the StackSet associated with the stack - instances. + Structure that contains the template body with a minimum length of 1 + byte and a maximum length of 51,200 bytes. + + Conditional: You must specify only one of the following parameters: + `TemplateBody`, `TemplateURL`, or set the `UsePreviousTemplate` to + `true`. """ - accounts: list[str] | None = ... + template_url: str | None """ - [Self-managed permissions] The account IDs of one or more Amazon Web - Services accounts in which you want to update parameter values for stack - instances. The overridden parameter values will be applied to all stack - instances in the specified accounts and Amazon Web Services Regions. + The URL of a file that contains the template body. The URL must point to + a template that's located in an Amazon S3 bucket or a Systems Manager + document. The location for an Amazon S3 bucket must start with + `https://`. - You can specify `Accounts` or `DeploymentTargets`, but not both. + Conditional: You must specify only one of the following parameters: + `TemplateBody`, `TemplateURL`, or set the `UsePreviousTemplate` to + `true`. """ - deployment_targets: DeploymentTargets | None = ... + use_previous_template: bool | None """ - [Service-managed permissions] The Organizations accounts in which you - want to update parameter values for stack instances. If your update - targets OUs, the overridden parameter values only apply to the accounts - that are currently in the target OUs and their child OUs. Accounts added - to the target OUs and their child OUs in the future won't use the - overridden values. + Reuse the existing template that is associated with the stack that you + are updating. - You can specify `Accounts` or `DeploymentTargets`, but not both. + When using templates with the `AWS::LanguageExtensions` transform, + provide the template instead of using `UsePreviousTemplate` to ensure + new parameter values and Systems Manager parameter updates are applied + correctly. For more information, see [AWS::LanguageExtensions + transform](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/transform-aws-languageextensions.html). + + Conditional: You must specify only one of the following parameters: + `TemplateBody`, `TemplateURL`, or set the `UsePreviousTemplate` to + `true`. """ - regions: list[str] | None = ... + stack_policy_during_update_body: str | None """ - The names of one or more Amazon Web Services Regions in which you want - to update parameter values for stack instances. The overridden parameter - values will be applied to all stack instances in the specified accounts - and Amazon Web Services Regions. + Structure that contains the temporary overriding stack policy body. You + can specify either the `StackPolicyDuringUpdateBody` or the + `StackPolicyDuringUpdateURL` parameter, but not both. + + If you want to update protected resources, specify a temporary + overriding stack policy during this update. If you don't specify a + stack policy, the current policy that is associated with the stack will + be used. """ - parameter_overrides: list[Parameter] | None = ... + stack_policy_during_update_url: str | None """ - A list of input parameters whose values you want to update for the - specified stack instances. + Location of a file that contains the temporary overriding stack policy. + The URL must point to a policy (max size: 16KB) located in an S3 bucket + in the same Region as the stack. The location for an Amazon S3 bucket + must start with `https://`. URLs from S3 static websites are not + supported. - Any overridden parameter values will be applied to all stack instances - in the specified accounts and Amazon Web Services Regions. When - specifying parameters and their values, be aware of how CloudFormation - sets parameter values during stack instance update operations: + You can specify either the `StackPolicyDuringUpdateBody` or the + `StackPolicyDuringUpdateURL` parameter, but not both. - - To override the current value for a parameter, include the parameter - and specify its value. + If you want to update protected resources, specify a temporary + overriding stack policy during this update. If you don't specify a + stack policy, the current policy that is associated with the stack will + be used. + """ + parameters: Sequence[Parameter | ParameterDict] | None + """ + A list of `Parameter` structures that specify input parameters for the + stack. For more information, see the + [Parameter](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) + data type. + """ + capabilities: Sequence[str] | None + """ + In some cases, you must explicitly acknowledge that your stack template + contains certain capabilities in order for CloudFormation to update the + stack. - - To leave an overridden parameter set to its present value, include the - parameter and specify `UsePreviousValue` as `true`. (You can't - specify both a value and set `UsePreviousValue` to `true`.) + - `CAPABILITY_IAM` and `CAPABILITY_NAMED_IAM` - - To set an overridden parameter back to the value specified in the - StackSet, specify a parameter list but don't include the parameter in - the list. + Some stack templates might include resources that can affect + permissions in your Amazon Web Services account, for example, by + creating new IAM users. For those stacks, you must explicitly + acknowledge this by specifying one of these capabilities. - - To leave all parameters set to their present values, don't specify - this property at all. + The following IAM resources require you to specify either the + `CAPABILITY_IAM` or `CAPABILITY_NAMED_IAM` capability. - During StackSet updates, any parameter values overridden for a stack - instance aren't updated, but retain their overridden value. + - If you have IAM resources, you can specify either capability. - You can only override the parameter *values* that are specified in the - StackSet. To add or delete a parameter itself, use `UpdateStackSet` to - update the StackSet template. If you add a parameter to a template, - before you can override the parameter value specified in the StackSet - you must first use - [UpdateStackSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html) - to update all stack instances with the updated template and parameter - value specified in the StackSet. Once a stack instance has been updated - with the new parameter, you can then override the parameter value using - `UpdateStackInstances`. - """ - operation_preferences: StackSetOperationPreferences | None = ... - """Preferences for how CloudFormation performs this StackSet operation.""" - operation_id: str | None = ... - """ - The unique identifier for this StackSet operation. + - If you have IAM resources with custom names, you *must* specify + `CAPABILITY_NAMED_IAM`. - The operation ID also functions as an idempotency token, to ensure that - CloudFormation performs the StackSet operation only once, even if you - retry the request multiple times. You might retry StackSet operation - requests to ensure that CloudFormation successfully received them. + - If you don't specify either of these capabilities, CloudFormation + returns an `InsufficientCapabilities` error. - If you don't specify an operation ID, the SDK generates one - automatically. + If your stack template contains these resources, we suggest that you + review all permissions associated with them and edit their permissions + if necessary. - This field is autopopulated if not provided. - """ - call_as: str | None = ... - """ - [Service-managed permissions] Specifies whether you are acting as an - account administrator in the organization's management account or as a - delegated administrator in a member account. + - [AWS::IAM::AccessKey](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-accesskey.html) - By default, `SELF` is specified. Use `SELF` for StackSets with - self-managed permissions. + - [AWS::IAM::Group](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-group.html) - - If you are signed in to the management account, specify `SELF`. + - [AWS::IAM::InstanceProfile](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-instanceprofile.html) - - If you are signed in to a delegated administrator account, specify - `DELEGATED_ADMIN`. + - [AWS::IAM::ManagedPolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-managedpolicy.html) - Your Amazon Web Services account must be registered as a delegated - administrator in the management account. For more information, see - [Register a delegated - administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) - in the *CloudFormation User Guide*. - """ + - [AWS::IAM::Policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-policy.html) -@dataclass(kw_only=True) -class UpdateStackInstancesOutput(_SerdeShape): - """Dataclass for UpdateStackInstancesOutput structure.""" + - [AWS::IAM::Role](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-role.html) - operation_id: str | None = ... - """The unique identifier for this StackSet operation.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - [AWS::IAM::User](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-user.html) -@dataclass(kw_only=True) -class UpdateStackOutput(_SerdeShape): - """The output for an UpdateStack action.""" + - [AWS::IAM::UserToGroupAddition](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-usertogroupaddition.html) - stack_id: str | None = ... - """Unique identifier of the stack.""" - operation_id: str | None = ... - """ - A unique identifier for this update operation that can be used to track - the operation's progress and events. - """ + For more information, see [Acknowledging IAM resources in + CloudFormation + templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html#using-iam-capabilities). + + - `CAPABILITY_AUTO_EXPAND` + + Some template contain macros. Macros perform custom processing on + templates; this can include simple actions like find-and-replace + operations, all the way to extensive transformations of entire + templates. Because of this, users typically create a change set from + the processed template, so that they can review the changes resulting + from the macros before actually updating the stack. If your stack + template contains one or more macros, and you choose to update a stack + directly from the processed template, without first reviewing the + resulting changes in a change set, you must acknowledge this + capability. This includes the + [AWS::Include](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-include.html) + and + [AWS::Serverless](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) + transforms, which are macros hosted by CloudFormation. + + If you want to update a stack from a stack template that contains + macros *and* nested stacks, you must update the stack directly from + the template using this capability. + + Warning: + You should only update stacks directly from a stack template that + contains macros if you know what processing the macro performs. + + Each macro relies on an underlying Lambda service function for + processing stack templates. Be aware that the Lambda function owner + can update the function operation without CloudFormation being + notified. + + For more information, see [Perform custom processing on CloudFormation + templates with template + macros](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). + + Note: + Only one of the `Capabilities` and `ResourceType` parameters can be + specified. + """ + resource_types: Sequence[str] | None + """ + Specifies which resource types you can work with, such as + `AWS::EC2::Instance` or `Custom::MyCustomInstance`. + + If the list of resource types doesn't include a resource that you're + updating, the stack update fails. By default, CloudFormation grants + permissions to all resource types. IAM uses this parameter for + CloudFormation-specific condition keys in IAM policies. For more + information, see [Control CloudFormation access with Identity and Access + Management](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html). + + Note: + Only one of the `Capabilities` and `ResourceType` parameters can be + specified. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role that CloudFormation + assumes to update the stack. CloudFormation uses the role's credentials + to make calls on your behalf. CloudFormation always uses this role for + all future operations on the stack. Provided that users have permission + to operate on the stack, CloudFormation uses this role even if the users + don't have permission to pass it. Ensure that the role grants least + privilege. + + If you don't specify a value, CloudFormation uses the role that was + previously associated with the stack. If no role is available, + CloudFormation uses a temporary session that is generated from your user + credentials. + """ + rollback_configuration: RollbackConfiguration | RollbackConfigurationDict | None + """ + The rollback triggers for CloudFormation to monitor during stack + creation and updating operations, and for the specified monitoring + period afterwards. + """ + stack_policy_body: str | None + """ + Structure that contains a new stack policy body. You can specify either + the `StackPolicyBody` or the `StackPolicyURL` parameter, but not both. + + You might update the stack policy, for example, in order to protect a + new resource that you created during a stack update. If you don't + specify a stack policy, the current policy that is associated with the + stack is unchanged. + """ + stack_policy_url: str | None + """ + Location of a file that contains the updated stack policy. The URL must + point to a policy (max size: 16KB) located in an S3 bucket in the same + Region as the stack. The location for an Amazon S3 bucket must start + with `https://`. URLs from S3 static websites are not supported. + + You can specify either the `StackPolicyBody` or the `StackPolicyURL` + parameter, but not both. + + You might update the stack policy, for example, in order to protect a + new resource that you created during a stack update. If you don't + specify a stack policy, the current policy that is associated with the + stack is unchanged. + """ + notification_ar_ns: Sequence[str] | None + """ + Amazon Simple Notification Service topic Amazon Resource Names (ARNs) + that CloudFormation associates with the stack. Specify an empty list to + remove all notification topics. + """ + tags: Sequence[Tag | TagDict] | None + """ + Key-value pairs to associate with this stack. CloudFormation also + propagates these tags to supported resources in the stack. You can + specify a maximum number of 50 tags. + + If you don't specify this parameter, CloudFormation doesn't modify the + stack's tags. If you specify an empty value, CloudFormation removes all + associated tags. + """ + disable_rollback: bool | None + """ + Preserve the state of previously provisioned resources when an operation + fails. + + Default: `False` + """ + client_request_token: str | None + """ + A unique identifier for this `UpdateStack` request. Specify this token + if you plan to retry requests so that CloudFormation knows that you're + not attempting to update a stack with the same name. You might retry + `UpdateStack` requests to ensure that CloudFormation successfully + received them. + + All events triggered by a given stack operation are assigned the same + client request token, which you can use to track operations. For + example, if you execute a `CreateStack` operation with the token + `token1`, then all the `StackEvents` generated by that operation will + have `ClientRequestToken` set as `token1`. + + In the console, stack operations display the client request token on the + Events tab. Stack operations that are initiated from the console use the + token format *Console-StackOperation-ID*, which helps you easily + identify the stack operation . For example, if you create a stack using + the console, each stack event would be assigned the same token in the + following format: + `Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002`. + """ + retain_except_on_create: bool | None + """ + When set to `true`, newly created resources are deleted when the + operation rolls back. This includes newly created resources marked with + a deletion policy of `Retain`. + + Default: `false` + """ + deployment_config: DeploymentConfig | DeploymentConfigDict | None + """ + The deployment configuration for this stack operation, including the + deployment mode. + """ + disable_validation: bool | None + """ + Set to `true` to disable pre-deployment validations in changeset or + stack operations. + + Default: `false` + """ + +@dataclass(kw_only=True) +class UpdateStackInstancesInput(_SerdeShape): + """Dataclass for UpdateStackInstancesInput structure.""" + + stack_set_name: str | None = ... + """ + The name or unique ID of the StackSet associated with the stack + instances. + """ + accounts: list[str] | None = ... + """ + [Self-managed permissions] The account IDs of one or more Amazon Web + Services accounts in which you want to update parameter values for stack + instances. The overridden parameter values will be applied to all stack + instances in the specified accounts and Amazon Web Services Regions. + + You can specify `Accounts` or `DeploymentTargets`, but not both. + """ + deployment_targets: DeploymentTargets | None = ... + """ + [Service-managed permissions] The Organizations accounts in which you + want to update parameter values for stack instances. If your update + targets OUs, the overridden parameter values only apply to the accounts + that are currently in the target OUs and their child OUs. Accounts added + to the target OUs and their child OUs in the future won't use the + overridden values. + + You can specify `Accounts` or `DeploymentTargets`, but not both. + """ + regions: list[str] | None = ... + """ + The names of one or more Amazon Web Services Regions in which you want + to update parameter values for stack instances. The overridden parameter + values will be applied to all stack instances in the specified accounts + and Amazon Web Services Regions. + """ + parameter_overrides: list[Parameter] | None = ... + """ + A list of input parameters whose values you want to update for the + specified stack instances. + + Any overridden parameter values will be applied to all stack instances + in the specified accounts and Amazon Web Services Regions. When + specifying parameters and their values, be aware of how CloudFormation + sets parameter values during stack instance update operations: + + - To override the current value for a parameter, include the parameter + and specify its value. + + - To leave an overridden parameter set to its present value, include the + parameter and specify `UsePreviousValue` as `true`. (You can't + specify both a value and set `UsePreviousValue` to `true`.) + + - To set an overridden parameter back to the value specified in the + StackSet, specify a parameter list but don't include the parameter in + the list. + + - To leave all parameters set to their present values, don't specify + this property at all. + + During StackSet updates, any parameter values overridden for a stack + instance aren't updated, but retain their overridden value. + + You can only override the parameter *values* that are specified in the + StackSet. To add or delete a parameter itself, use `UpdateStackSet` to + update the StackSet template. If you add a parameter to a template, + before you can override the parameter value specified in the StackSet + you must first use + [UpdateStackSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html) + to update all stack instances with the updated template and parameter + value specified in the StackSet. Once a stack instance has been updated + with the new parameter, you can then override the parameter value using + `UpdateStackInstances`. + """ + operation_preferences: StackSetOperationPreferences | None = ... + """Preferences for how CloudFormation performs this StackSet operation.""" + operation_id: str | None = ... + """ + The unique identifier for this StackSet operation. + + The operation ID also functions as an idempotency token, to ensure that + CloudFormation performs the StackSet operation only once, even if you + retry the request multiple times. You might retry StackSet operation + requests to ensure that CloudFormation successfully received them. + + If you don't specify an operation ID, the SDK generates one + automatically. + + This field is autopopulated if not provided. + """ + call_as: str | None = ... + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + +class UpdateStackInstancesInputDict(TypedDict, total=False): + """Dictionary form of `UpdateStackInstancesInput`.""" + + stack_set_name: Required[str] + """ + The name or unique ID of the StackSet associated with the stack + instances. + """ + accounts: Sequence[str] | None + """ + [Self-managed permissions] The account IDs of one or more Amazon Web + Services accounts in which you want to update parameter values for stack + instances. The overridden parameter values will be applied to all stack + instances in the specified accounts and Amazon Web Services Regions. + + You can specify `Accounts` or `DeploymentTargets`, but not both. + """ + deployment_targets: DeploymentTargets | DeploymentTargetsDict | None + """ + [Service-managed permissions] The Organizations accounts in which you + want to update parameter values for stack instances. If your update + targets OUs, the overridden parameter values only apply to the accounts + that are currently in the target OUs and their child OUs. Accounts added + to the target OUs and their child OUs in the future won't use the + overridden values. + + You can specify `Accounts` or `DeploymentTargets`, but not both. + """ + regions: Required[Sequence[str]] + """ + The names of one or more Amazon Web Services Regions in which you want + to update parameter values for stack instances. The overridden parameter + values will be applied to all stack instances in the specified accounts + and Amazon Web Services Regions. + """ + parameter_overrides: Sequence[Parameter | ParameterDict] | None + """ + A list of input parameters whose values you want to update for the + specified stack instances. + + Any overridden parameter values will be applied to all stack instances + in the specified accounts and Amazon Web Services Regions. When + specifying parameters and their values, be aware of how CloudFormation + sets parameter values during stack instance update operations: + + - To override the current value for a parameter, include the parameter + and specify its value. + + - To leave an overridden parameter set to its present value, include the + parameter and specify `UsePreviousValue` as `true`. (You can't + specify both a value and set `UsePreviousValue` to `true`.) + + - To set an overridden parameter back to the value specified in the + StackSet, specify a parameter list but don't include the parameter in + the list. + + - To leave all parameters set to their present values, don't specify + this property at all. + + During StackSet updates, any parameter values overridden for a stack + instance aren't updated, but retain their overridden value. + + You can only override the parameter *values* that are specified in the + StackSet. To add or delete a parameter itself, use `UpdateStackSet` to + update the StackSet template. If you add a parameter to a template, + before you can override the parameter value specified in the StackSet + you must first use + [UpdateStackSet](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStackSet.html) + to update all stack instances with the updated template and parameter + value specified in the StackSet. Once a stack instance has been updated + with the new parameter, you can then override the parameter value using + `UpdateStackInstances`. + """ + operation_preferences: ( + StackSetOperationPreferences | StackSetOperationPreferencesDict | None + ) + """Preferences for how CloudFormation performs this StackSet operation.""" + operation_id: str | None + """ + The unique identifier for this StackSet operation. + + The operation ID also functions as an idempotency token, to ensure that + CloudFormation performs the StackSet operation only once, even if you + retry the request multiple times. You might retry StackSet operation + requests to ensure that CloudFormation successfully received them. + + If you don't specify an operation ID, the SDK generates one + automatically. + + This field is autopopulated if not provided. + """ + call_as: str | None + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + +@dataclass(kw_only=True) +class UpdateStackInstancesOutput(_SerdeShape): + """Dataclass for UpdateStackInstancesOutput structure.""" + + operation_id: str | None = ... + """The unique identifier for this StackSet operation.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class UpdateStackOutput(_SerdeShape): + """The output for an UpdateStack action.""" + + stack_id: str | None = ... + """Unique identifier of the stack.""" + operation_id: str | None = ... + """ + A unique identifier for this update operation that can be used to track + the operation's progress and events. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class UpdateStackSetInput(_SerdeShape): + """Dataclass for UpdateStackSetInput structure.""" + + stack_set_name: str | None = ... + """The name or unique ID of the StackSet that you want to update.""" + description: str | None = ... + """A brief description of updates that you are making.""" + template_body: str | None = ... + """ + The structure that contains the template body, with a minimum length of + 1 byte and a maximum length of 51,200 bytes. + + Conditional: You must specify only one of the following parameters: + `TemplateBody` or `TemplateURL`---or set `UsePreviousTemplate` to true. + """ + template_url: str | None = ... + """ + The URL of a file that contains the template body. The URL must point to + a template (maximum size: 1 MB) that is located in an Amazon S3 bucket + or a Systems Manager document. The location for an Amazon S3 bucket must + start with `https://`. S3 static website URLs are not supported. + + Conditional: You must specify only one of the following parameters: + `TemplateBody` or `TemplateURL`---or set `UsePreviousTemplate` to true. + """ + use_previous_template: bool | None = ... + """ + Use the existing template that's associated with the StackSet that + you're updating. + + Conditional: You must specify only one of the following parameters: + `TemplateBody` or `TemplateURL`---or set `UsePreviousTemplate` to true. + """ + parameters: list[Parameter] | None = ... + """A list of input parameters for the StackSet template.""" + capabilities: list[str] | None = ... + """ + In some cases, you must explicitly acknowledge that your stack template + contains certain capabilities in order for CloudFormation to update the + StackSet and its associated stack instances. + + - `CAPABILITY_IAM` and `CAPABILITY_NAMED_IAM` + + Some stack templates might include resources that can affect + permissions in your Amazon Web Services account, for example, by + creating new IAM users. For those stacks sets, you must explicitly + acknowledge this by specifying one of these capabilities. + + The following IAM resources require you to specify either the + `CAPABILITY_IAM` or `CAPABILITY_NAMED_IAM` capability. + + - If you have IAM resources, you can specify either capability. + + - If you have IAM resources with custom names, you *must* specify + `CAPABILITY_NAMED_IAM`. + + - If you don't specify either of these capabilities, CloudFormation + returns an `InsufficientCapabilities` error. + + If your stack template contains these resources, we recommend that you + review all permissions associated with them and edit their permissions + if necessary. + + - [AWS::IAM::AccessKey](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-accesskey.html) + + - [AWS::IAM::Group](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-group.html) + + - [AWS::IAM::InstanceProfile](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-instanceprofile.html) + + - [AWS::IAM::Policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-policy.html) + + - [AWS::IAM::Role](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-role.html) + + - [AWS::IAM::User](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-user.html) + + - [AWS::IAM::UserToGroupAddition](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-iam-usertogroupaddition.html) + + For more information, see [Acknowledging IAM resources in + CloudFormation + templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html#using-iam-capabilities). + + - `CAPABILITY_AUTO_EXPAND` + + Some templates reference macros. If your StackSet template references + one or more macros, you must update the StackSet directly from the + processed template, without first reviewing the resulting changes in a + change set. To update the StackSet directly, you must acknowledge this + capability. For more information, see [Perform custom processing on + CloudFormation templates with template + macros](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). + + Warning: + StackSets with service-managed permissions do not currently support + the use of macros in templates. (This includes the + [AWS::Include](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-include.html) + and + [AWS::Serverless](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) + transforms, which are macros hosted by CloudFormation.) Even if you + specify this capability for a StackSet with service-managed + permissions, if you reference a macro in your template the StackSet + operation will fail. + """ + tags: list[Tag] | None = ... """ + The key-value pairs to associate with this StackSet and the stacks + created from it. CloudFormation also propagates these tags to supported + resources that are created in the stacks. You can specify a maximum + number of 50 tags. -@dataclass(kw_only=True) -class UpdateStackSetInput(_SerdeShape): - """Dataclass for UpdateStackSetInput structure.""" + If you specify tags for this parameter, those tags replace any list of + tags that are currently associated with this StackSet. This means: - stack_set_name: str | None = ... + - If you don't specify this parameter, CloudFormation doesn't modify + the stack's tags. + + - If you specify *any* tags using this parameter, you must specify *all* + the tags that you want associated with this StackSet, even tags + you've specified before (for example, when creating the StackSet or + during a previous update of the StackSet.). Any tags that you don't + include in the updated list of tags are removed from the StackSet, and + therefore from the stacks and resources as well. + + - If you specify an empty value, CloudFormation removes all currently + associated tags. + + If you specify new tags as part of an `UpdateStackSet` action, + CloudFormation checks to see if you have the required IAM permission to + tag resources. If you omit tags that are currently associated with the + StackSet from the list of tags you specify, CloudFormation assumes that + you want to remove those tags from the StackSet, and checks to see if + you have permission to untag resources. If you don't have the necessary + permission(s), the entire `UpdateStackSet` action fails with an + `access denied` error, and the StackSet is not updated. + """ + operation_preferences: StackSetOperationPreferences | None = ... + """Preferences for how CloudFormation performs this StackSet operation.""" + administration_role_arn: str | None = ... + """ + [Self-managed permissions] The Amazon Resource Name (ARN) of the IAM + role to use to update this StackSet. + + Specify an IAM role only if you are using customized administrator roles + to control which users or groups can manage specific StackSets within + the same administrator account. For more information, see [Grant + self-managed + permissions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html) + in the *CloudFormation User Guide*. + + If you specified a customized administrator role when you created the + StackSet, you must specify a customized administrator role, even if it + is the same customized administrator role used with this StackSet + previously. + """ + execution_role_name: str | None = ... + """ + [Self-managed permissions] The name of the IAM execution role to use + to update the stack set. If you do not specify an execution role, + CloudFormation uses the `AWSCloudFormationStackSetExecutionRole` role + for the StackSet operation. + + Specify an IAM role only if you are using customized execution roles to + control which stack resources users and groups can include in their + StackSets. + + If you specify a customized execution role, CloudFormation uses that + role to update the stack. If you do not specify a customized execution + role, CloudFormation performs the update using the role previously + associated with the StackSet, so long as you have permissions to perform + operations on the StackSet. + """ + deployment_targets: DeploymentTargets | None = ... + """ + [Service-managed permissions] The Organizations accounts in which to + update associated stack instances. + + To update all the stack instances associated with this StackSet, do not + specify `DeploymentTargets` or `Regions`. + + If the StackSet update includes changes to the template (that is, if + `TemplateBody` or `TemplateURL` is specified), or the `Parameters`, + CloudFormation marks all stack instances with a status of `OUTDATED` + prior to updating the stack instances in the specified accounts and + Amazon Web Services Regions. If the StackSet update doesn't include + changes to the template or parameters, CloudFormation updates the stack + instances in the specified accounts and Regions, while leaving all other + stack instances with their existing stack instance status. + """ + permission_model: str | None = ... + """ + Describes how the IAM roles required for StackSet operations are + created. You cannot modify `PermissionModel` if there are stack + instances associated with your stack set. + + - With `self-managed` permissions, you must create the administrator and + execution roles required to deploy to target accounts. For more + information, see [Grant self-managed + permissions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html). + + - With `service-managed` permissions, StackSets automatically creates + the IAM roles required to deploy to accounts managed by Organizations. + For more information, see [Activate trusted access for StackSets with + Organizations](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-activate-trusted-access.html). + """ + auto_deployment: AutoDeployment | None = ... + """ + [Service-managed permissions] Describes whether StackSets + automatically deploys to Organizations accounts that are added to a + target organization or organizational unit (OU). For more information, + see [Enable or disable automatic deployments for StackSets in + Organizations](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-manage-auto-deployment.html) + in the *CloudFormation User Guide*. + + If you specify `AutoDeployment`, don't specify `DeploymentTargets` or + `Regions`. + """ + operation_id: str | None = ... + """ + The unique ID for this StackSet operation. + + The operation ID also functions as an idempotency token, to ensure that + CloudFormation performs the StackSet operation only once, even if you + retry the request multiple times. You might retry StackSet operation + requests to ensure that CloudFormation successfully received them. + + If you don't specify an operation ID, CloudFormation generates one + automatically. + + Repeating this StackSet operation with a new operation ID retries all + stack instances whose status is `OUTDATED`. + + This field is autopopulated if not provided. + """ + accounts: list[str] | None = ... + """ + [Self-managed permissions] The accounts in which to update associated + stack instances. If you specify accounts, you must also specify the + Amazon Web Services Regions in which to update StackSet instances. + + To update *all* the stack instances associated with this StackSet, + don't specify the `Accounts` or `Regions` properties. + + If the StackSet update includes changes to the template (that is, if the + `TemplateBody` or `TemplateURL` properties are specified), or the + `Parameters` property, CloudFormation marks all stack instances with a + status of `OUTDATED` prior to updating the stack instances in the + specified accounts and Amazon Web Services Regions. If the StackSet + update does not include changes to the template or parameters, + CloudFormation updates the stack instances in the specified accounts and + Amazon Web Services Regions, while leaving all other stack instances + with their existing stack instance status. + """ + regions: list[str] | None = ... + """ + The Amazon Web Services Regions in which to update associated stack + instances. If you specify Regions, you must also specify accounts in + which to update StackSet instances. + + To update *all* the stack instances associated with this StackSet, do + not specify the `Accounts` or `Regions` properties. + + If the StackSet update includes changes to the template (that is, if the + `TemplateBody` or `TemplateURL` properties are specified), or the + `Parameters` property, CloudFormation marks all stack instances with a + status of `OUTDATED` prior to updating the stack instances in the + specified accounts and Regions. If the StackSet update does not include + changes to the template or parameters, CloudFormation updates the stack + instances in the specified accounts and Regions, while leaving all other + stack instances with their existing stack instance status. + """ + call_as: str | None = ... + """ + [Service-managed permissions] Specifies whether you are acting as an + account administrator in the organization's management account or as a + delegated administrator in a member account. + + By default, `SELF` is specified. Use `SELF` for StackSets with + self-managed permissions. + + - If you are signed in to the management account, specify `SELF`. + + - If you are signed in to a delegated administrator account, specify + `DELEGATED_ADMIN`. + + Your Amazon Web Services account must be registered as a delegated + administrator in the management account. For more information, see + [Register a delegated + administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) + in the *CloudFormation User Guide*. + """ + managed_execution: ManagedExecution | None = ... + """ + Describes whether CloudFormation performs non-conflicting operations + concurrently and queues conflicting operations. + """ + +class UpdateStackSetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateStackSetInput`.""" + + stack_set_name: Required[str] """The name or unique ID of the StackSet that you want to update.""" - description: str | None = ... + description: str | None """A brief description of updates that you are making.""" - template_body: str | None = ... + template_body: str | None """ The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes. @@ -4111,7 +5502,7 @@ class UpdateStackSetInput(_SerdeShape): Conditional: You must specify only one of the following parameters: `TemplateBody` or `TemplateURL`---or set `UsePreviousTemplate` to true. """ - template_url: str | None = ... + template_url: str | None """ The URL of a file that contains the template body. The URL must point to a template (maximum size: 1 MB) that is located in an Amazon S3 bucket @@ -4121,7 +5512,7 @@ class UpdateStackSetInput(_SerdeShape): Conditional: You must specify only one of the following parameters: `TemplateBody` or `TemplateURL`---or set `UsePreviousTemplate` to true. """ - use_previous_template: bool | None = ... + use_previous_template: bool | None """ Use the existing template that's associated with the StackSet that you're updating. @@ -4129,9 +5520,9 @@ class UpdateStackSetInput(_SerdeShape): Conditional: You must specify only one of the following parameters: `TemplateBody` or `TemplateURL`---or set `UsePreviousTemplate` to true. """ - parameters: list[Parameter] | None = ... + parameters: Sequence[Parameter | ParameterDict] | None """A list of input parameters for the StackSet template.""" - capabilities: list[str] | None = ... + capabilities: Sequence[str] | None """ In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the @@ -4198,7 +5589,7 @@ class UpdateStackSetInput(_SerdeShape): permissions, if you reference a macro in your template the StackSet operation will fail. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ The key-value pairs to associate with this StackSet and the stacks created from it. CloudFormation also propagates these tags to supported @@ -4230,9 +5621,11 @@ class UpdateStackSetInput(_SerdeShape): permission(s), the entire `UpdateStackSet` action fails with an `access denied` error, and the StackSet is not updated. """ - operation_preferences: StackSetOperationPreferences | None = ... + operation_preferences: ( + StackSetOperationPreferences | StackSetOperationPreferencesDict | None + ) """Preferences for how CloudFormation performs this StackSet operation.""" - administration_role_arn: str | None = ... + administration_role_arn: str | None """ [Self-managed permissions] The Amazon Resource Name (ARN) of the IAM role to use to update this StackSet. @@ -4249,7 +5642,7 @@ class UpdateStackSetInput(_SerdeShape): is the same customized administrator role used with this StackSet previously. """ - execution_role_name: str | None = ... + execution_role_name: str | None """ [Self-managed permissions] The name of the IAM execution role to use to update the stack set. If you do not specify an execution role, @@ -4266,7 +5659,7 @@ class UpdateStackSetInput(_SerdeShape): associated with the StackSet, so long as you have permissions to perform operations on the StackSet. """ - deployment_targets: DeploymentTargets | None = ... + deployment_targets: DeploymentTargets | DeploymentTargetsDict | None """ [Service-managed permissions] The Organizations accounts in which to update associated stack instances. @@ -4283,7 +5676,7 @@ class UpdateStackSetInput(_SerdeShape): instances in the specified accounts and Regions, while leaving all other stack instances with their existing stack instance status. """ - permission_model: str | None = ... + permission_model: str | None """ Describes how the IAM roles required for StackSet operations are created. You cannot modify `PermissionModel` if there are stack @@ -4299,7 +5692,7 @@ class UpdateStackSetInput(_SerdeShape): For more information, see [Activate trusted access for StackSets with Organizations](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-activate-trusted-access.html). """ - auto_deployment: AutoDeployment | None = ... + auto_deployment: AutoDeployment | AutoDeploymentDict | None """ [Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a @@ -4311,7 +5704,7 @@ class UpdateStackSetInput(_SerdeShape): If you specify `AutoDeployment`, don't specify `DeploymentTargets` or `Regions`. """ - operation_id: str | None = ... + operation_id: str | None """ The unique ID for this StackSet operation. @@ -4328,7 +5721,7 @@ class UpdateStackSetInput(_SerdeShape): This field is autopopulated if not provided. """ - accounts: list[str] | None = ... + accounts: Sequence[str] | None """ [Self-managed permissions] The accounts in which to update associated stack instances. If you specify accounts, you must also specify the @@ -4347,7 +5740,7 @@ class UpdateStackSetInput(_SerdeShape): Amazon Web Services Regions, while leaving all other stack instances with their existing stack instance status. """ - regions: list[str] | None = ... + regions: Sequence[str] | None """ The Amazon Web Services Regions in which to update associated stack instances. If you specify Regions, you must also specify accounts in @@ -4365,7 +5758,7 @@ class UpdateStackSetInput(_SerdeShape): instances in the specified accounts and Regions, while leaving all other stack instances with their existing stack instance status. """ - call_as: str | None = ... + call_as: str | None """ [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a @@ -4385,7 +5778,7 @@ class UpdateStackSetInput(_SerdeShape): administrator](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html) in the *CloudFormation User Guide*. """ - managed_execution: ManagedExecution | None = ... + managed_execution: ManagedExecution | ManagedExecutionDict | None """ Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations. @@ -4417,6 +5810,17 @@ class UpdateTerminationProtectionInput(_SerdeShape): protection. """ +class UpdateTerminationProtectionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTerminationProtectionInput`.""" + + enable_termination_protection: Required[bool] + """Whether to enable termination protection on the specified stack.""" + stack_name: Required[str] + """ + The name or unique ID of the stack for which you want to set termination + protection. + """ + @dataclass(kw_only=True) class UpdateTerminationProtectionOutput(_SerdeShape): """Dataclass for UpdateTerminationProtectionOutput structure.""" @@ -4454,6 +5858,28 @@ class ValidateTemplateInput(_SerdeShape): passed, only `TemplateBody` is used. """ +class ValidateTemplateInputDict(TypedDict, total=False): + """Dictionary form of `ValidateTemplateInput`.""" + + template_body: str | None + """ + Structure that contains the template body with a minimum length of 1 + byte and a maximum length of 51,200 bytes. + + Conditional: You must pass `TemplateURL` or `TemplateBody`. If both are + passed, only `TemplateBody` is used. + """ + template_url: str | None + """ + The URL of a file that contains the template body. The URL must point to + a template (max size: 1 MB) that is located in an Amazon S3 bucket or a + Systems Manager document. The location for an Amazon S3 bucket must + start with `https://`. + + Conditional: You must pass `TemplateURL` or `TemplateBody`. If both are + passed, only `TemplateBody` is used. + """ + @dataclass(kw_only=True) class ValidateTemplateOutput(_SerdeShape): """The output for ValidateTemplate action.""" diff --git a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/schemas.py b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/schemas.py index 7c3723acd..ae245fac8 100644 --- a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/schemas.py +++ b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/_private/schemas.py @@ -797,7 +797,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/aio/client.py b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/aio/client.py index db4f73f33..e76462b6a 100644 --- a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/aio/client.py +++ b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,185 +20,95 @@ if TYPE_CHECKING: from ..models import ( - ActivateOrganizationsAccessInput, ActivateOrganizationsAccessOutput, - ActivateTypeInput, ActivateTypeOutput, - BatchDescribeTypeConfigurationsInput, BatchDescribeTypeConfigurationsOutput, - CancelUpdateStackInput, CancelUpdateStackOutput, - ContinueUpdateRollbackInput, ContinueUpdateRollbackOutput, - CreateChangeSetInput, CreateChangeSetOutput, - CreateGeneratedTemplateInput, CreateGeneratedTemplateOutput, - CreateStackInput, - CreateStackInstancesInput, CreateStackInstancesOutput, CreateStackOutput, - CreateStackRefactorInput, CreateStackRefactorOutput, - CreateStackSetInput, CreateStackSetOutput, - DeactivateOrganizationsAccessInput, DeactivateOrganizationsAccessOutput, - DeactivateTypeInput, DeactivateTypeOutput, - DeleteChangeSetInput, DeleteChangeSetOutput, - DeleteGeneratedTemplateInput, DeleteGeneratedTemplateOutput, - DeleteStackInput, - DeleteStackInstancesInput, DeleteStackInstancesOutput, DeleteStackOutput, - DeleteStackSetInput, DeleteStackSetOutput, - DeregisterTypeInput, DeregisterTypeOutput, - DescribeAccountLimitsInput, DescribeAccountLimitsOutput, - DescribeChangeSetHooksInput, DescribeChangeSetHooksOutput, - DescribeChangeSetInput, DescribeChangeSetOutput, - DescribeEventsInput, DescribeEventsOutput, - DescribeGeneratedTemplateInput, DescribeGeneratedTemplateOutput, - DescribeOrganizationsAccessInput, DescribeOrganizationsAccessOutput, - DescribePublisherInput, DescribePublisherOutput, - DescribeResourceScanInput, DescribeResourceScanOutput, - DescribeStackDriftDetectionStatusInput, DescribeStackDriftDetectionStatusOutput, - DescribeStackEventsInput, DescribeStackEventsOutput, - DescribeStackInstanceInput, DescribeStackInstanceOutput, - DescribeStackRefactorInput, DescribeStackRefactorOutput, - DescribeStackResourceDriftsInput, DescribeStackResourceDriftsOutput, - DescribeStackResourceInput, DescribeStackResourceOutput, - DescribeStackResourcesInput, DescribeStackResourcesOutput, - DescribeStackSetInput, - DescribeStackSetOperationInput, DescribeStackSetOperationOutput, DescribeStackSetOutput, - DescribeStacksInput, DescribeStacksOutput, - DescribeTypeInput, DescribeTypeOutput, - DescribeTypeRegistrationInput, DescribeTypeRegistrationOutput, - DetectStackDriftInput, DetectStackDriftOutput, - DetectStackResourceDriftInput, DetectStackResourceDriftOutput, - DetectStackSetDriftInput, DetectStackSetDriftOutput, - EstimateTemplateCostInput, EstimateTemplateCostOutput, - ExecuteChangeSetInput, ExecuteChangeSetOutput, - ExecuteStackRefactorInput, ExecuteStackRefactorOutput, - GetGeneratedTemplateInput, GetGeneratedTemplateOutput, - GetHookResultInput, GetHookResultOutput, - GetStackPolicyInput, GetStackPolicyOutput, - GetTemplateInput, GetTemplateOutput, - GetTemplateSummaryInput, GetTemplateSummaryOutput, - ImportStacksToStackSetInput, ImportStacksToStackSetOutput, - ListChangeSetsInput, ListChangeSetsOutput, - ListExportsInput, ListExportsOutput, - ListGeneratedTemplatesInput, ListGeneratedTemplatesOutput, - ListHookResultsInput, ListHookResultsOutput, - ListImportsInput, ListImportsOutput, - ListResourceScanRelatedResourcesInput, ListResourceScanRelatedResourcesOutput, - ListResourceScanResourcesInput, ListResourceScanResourcesOutput, - ListResourceScansInput, ListResourceScansOutput, - ListStackInstanceResourceDriftsInput, ListStackInstanceResourceDriftsOutput, - ListStackInstancesInput, ListStackInstancesOutput, - ListStackRefactorActionsInput, ListStackRefactorActionsOutput, - ListStackRefactorsInput, ListStackRefactorsOutput, - ListStackResourcesInput, ListStackResourcesOutput, - ListStackSetAutoDeploymentTargetsInput, ListStackSetAutoDeploymentTargetsOutput, - ListStackSetOperationResultsInput, ListStackSetOperationResultsOutput, - ListStackSetOperationsInput, ListStackSetOperationsOutput, - ListStackSetsInput, ListStackSetsOutput, - ListStacksInput, ListStacksOutput, - ListTypeRegistrationsInput, ListTypeRegistrationsOutput, - ListTypeVersionsInput, ListTypeVersionsOutput, - ListTypesInput, ListTypesOutput, - PublishTypeInput, PublishTypeOutput, - RecordHandlerProgressInput, RecordHandlerProgressOutput, - RegisterPublisherInput, RegisterPublisherOutput, - RegisterTypeInput, RegisterTypeOutput, - RollbackStackInput, RollbackStackOutput, - SetStackPolicyInput, SetStackPolicyOutput, - SetTypeConfigurationInput, SetTypeConfigurationOutput, - SetTypeDefaultVersionInput, SetTypeDefaultVersionOutput, - SignalResourceInput, SignalResourceOutput, - StartResourceScanInput, StartResourceScanOutput, - StopStackSetOperationInput, StopStackSetOperationOutput, - TestTypeInput, TestTypeOutput, - UpdateGeneratedTemplateInput, UpdateGeneratedTemplateOutput, - UpdateStackInput, - UpdateStackInstancesInput, UpdateStackInstancesOutput, UpdateStackOutput, - UpdateStackSetInput, UpdateStackSetOutput, - UpdateTerminationProtectionInput, UpdateTerminationProtectionOutput, - ValidateTemplateInput, ValidateTemplateOutput, ) @@ -232,12 +142,25 @@ class AsyncCloudFormationClient(AsyncClient[AsyncCloudFormationConfig]): [docs.aws.amazon.com](https://docs.aws.amazon.com/). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def activate_organizations_access( self, - input: ActivateOrganizationsAccessInput, + request: _models.ActivateOrganizationsAccessInput + | _models.ActivateOrganizationsAccessInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ActivateOrganizationsAccessOutput: ... + + @_overload + async def activate_organizations_access( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ActivateOrganizationsAccessInputDict], ) -> ActivateOrganizationsAccessOutput: """ Activate trusted access with Organizations. With trusted access between @@ -245,8 +168,6 @@ async def activate_organizations_access( permissions to create and manage StackSets for your organization. Args: - input: - An instance of `ActivateOrganizationsAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -256,12 +177,33 @@ async def activate_organizations_access( Returns: An instance of `ActivateOrganizationsAccessOutput`. """ + + async def activate_organizations_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ActivateOrganizationsAccessOutput: return await self._invoke( - input, _models.ACTIVATE_ORGANIZATIONS_ACCESS, [], plugins + self._select_input(_models.ACTIVATE_ORGANIZATIONS_ACCESS, args, kwargs), + _models.ACTIVATE_ORGANIZATIONS_ACCESS, + [], + plugins, ) + @_overload + async def activate_type( + self, + request: _models.ActivateTypeInput | _models.ActivateTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ActivateTypeOutput: ... + + @_overload async def activate_type( - self, input: ActivateTypeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ActivateTypeInputDict], ) -> ActivateTypeOutput: """ Activates a public third-party extension, such as a resource or module, @@ -288,8 +230,6 @@ async def activate_type( Guide](https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/what-is-cloudformation-hooks.html). Args: - input: - An instance of `ActivateTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -299,12 +239,34 @@ async def activate_type( Returns: An instance of `ActivateTypeOutput`. """ - return await self._invoke(input, _models.ACTIVATE_TYPE, [], plugins) + async def activate_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ActivateTypeOutput: + return await self._invoke( + self._select_input(_models.ACTIVATE_TYPE, args, kwargs), + _models.ACTIVATE_TYPE, + [], + plugins, + ) + + @_overload + async def batch_describe_type_configurations( + self, + request: _models.BatchDescribeTypeConfigurationsInput + | _models.BatchDescribeTypeConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchDescribeTypeConfigurationsOutput: ... + + @_overload async def batch_describe_type_configurations( self, - input: BatchDescribeTypeConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDescribeTypeConfigurationsInputDict], ) -> BatchDescribeTypeConfigurationsOutput: """ Returns configuration data for the specified CloudFormation extensions, @@ -316,8 +278,6 @@ async def batch_describe_type_configurations( in the *CloudFormation User Guide*. Args: - input: - An instance of `BatchDescribeTypeConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -327,12 +287,35 @@ async def batch_describe_type_configurations( Returns: An instance of `BatchDescribeTypeConfigurationsOutput`. """ + + async def batch_describe_type_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDescribeTypeConfigurationsOutput: return await self._invoke( - input, _models.BATCH_DESCRIBE_TYPE_CONFIGURATIONS, [], plugins + self._select_input( + _models.BATCH_DESCRIBE_TYPE_CONFIGURATIONS, args, kwargs + ), + _models.BATCH_DESCRIBE_TYPE_CONFIGURATIONS, + [], + plugins, ) + @_overload + async def cancel_update_stack( + self, + request: _models.CancelUpdateStackInput | _models.CancelUpdateStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelUpdateStackOutput: ... + + @_overload async def cancel_update_stack( - self, input: CancelUpdateStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelUpdateStackInputDict], ) -> CancelUpdateStackOutput: """ Cancels an update on the specified stack. If the call completes @@ -343,8 +326,6 @@ async def cancel_update_stack( You can cancel only stacks that are in the `UPDATE_IN_PROGRESS` state. Args: - input: - An instance of `CancelUpdateStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -354,10 +335,34 @@ async def cancel_update_stack( Returns: An instance of `CancelUpdateStackOutput`. """ - return await self._invoke(input, _models.CANCEL_UPDATE_STACK, [], plugins) + async def cancel_update_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelUpdateStackOutput: + return await self._invoke( + self._select_input(_models.CANCEL_UPDATE_STACK, args, kwargs), + _models.CANCEL_UPDATE_STACK, + [], + plugins, + ) + + @_overload + async def continue_update_rollback( + self, + request: _models.ContinueUpdateRollbackInput + | _models.ContinueUpdateRollbackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ContinueUpdateRollbackOutput: ... + + @_overload async def continue_update_rollback( - self, input: ContinueUpdateRollbackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ContinueUpdateRollbackInputDict], ) -> ContinueUpdateRollbackOutput: """ Continues rolling back a stack from `UPDATE_ROLLBACK_FAILED` to @@ -382,11 +387,9 @@ async def continue_update_rollback( failed](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed). `ForceRollback` and `ResourcesToSkip` are mutually exclusive. For - details, see ContinueUpdateRollbackInput$$ForceRollback. + details, see ContinueUpdateRollbackInput$ForceRollback. Args: - input: - An instance of `ContinueUpdateRollbackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -396,10 +399,33 @@ async def continue_update_rollback( Returns: An instance of `ContinueUpdateRollbackOutput`. """ - return await self._invoke(input, _models.CONTINUE_UPDATE_ROLLBACK, [], plugins) + async def continue_update_rollback( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ContinueUpdateRollbackOutput: + return await self._invoke( + self._select_input(_models.CONTINUE_UPDATE_ROLLBACK, args, kwargs), + _models.CONTINUE_UPDATE_ROLLBACK, + [], + plugins, + ) + + @_overload + async def create_change_set( + self, + request: _models.CreateChangeSetInput | _models.CreateChangeSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateChangeSetOutput: ... + + @_overload async def create_change_set( - self, input: CreateChangeSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateChangeSetInputDict], ) -> CreateChangeSetOutput: """ Creates a list of changes that will be applied to a stack so that you @@ -430,8 +456,6 @@ async def create_change_set( `IncludeNestedStacks` to `True`. Args: - input: - An instance of `CreateChangeSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -441,10 +465,34 @@ async def create_change_set( Returns: An instance of `CreateChangeSetOutput`. """ - return await self._invoke(input, _models.CREATE_CHANGE_SET, [], plugins) + async def create_change_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateChangeSetOutput: + return await self._invoke( + self._select_input(_models.CREATE_CHANGE_SET, args, kwargs), + _models.CREATE_CHANGE_SET, + [], + plugins, + ) + + @_overload + async def create_generated_template( + self, + request: _models.CreateGeneratedTemplateInput + | _models.CreateGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGeneratedTemplateOutput: ... + + @_overload async def create_generated_template( - self, input: CreateGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGeneratedTemplateInputDict], ) -> CreateGeneratedTemplateOutput: """ Creates a template from existing resources that are not already managed @@ -452,8 +500,6 @@ async def create_generated_template( using the `DescribeGeneratedTemplate` API action. Args: - input: - An instance of `CreateGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -463,10 +509,33 @@ async def create_generated_template( Returns: An instance of `CreateGeneratedTemplateOutput`. """ - return await self._invoke(input, _models.CREATE_GENERATED_TEMPLATE, [], plugins) + async def create_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGeneratedTemplateOutput: + return await self._invoke( + self._select_input(_models.CREATE_GENERATED_TEMPLATE, args, kwargs), + _models.CREATE_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + async def create_stack( + self, + request: _models.CreateStackInput | _models.CreateStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStackOutput: ... + + @_overload async def create_stack( - self, input: CreateStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStackInputDict], ) -> CreateStackOutput: """ Creates a stack as specified in the template. After the call completes @@ -480,8 +549,6 @@ async def create_stack( in the *CloudFormation User Guide*. Args: - input: - An instance of `CreateStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -491,10 +558,34 @@ async def create_stack( Returns: An instance of `CreateStackOutput`. """ - return await self._invoke(input, _models.CREATE_STACK, [], plugins) + async def create_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStackOutput: + return await self._invoke( + self._select_input(_models.CREATE_STACK, args, kwargs), + _models.CREATE_STACK, + [], + plugins, + ) + + @_overload async def create_stack_instances( - self, input: CreateStackInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateStackInstancesInput + | _models.CreateStackInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStackInstancesOutput: ... + + @_overload + async def create_stack_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStackInstancesInputDict], ) -> CreateStackInstancesOutput: """ Creates stack instances for the specified accounts, within the specified @@ -517,8 +608,6 @@ async def create_stack_instances( target a parent OU that contains all desired child OUs. Args: - input: - An instance of `CreateStackInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -528,18 +617,40 @@ async def create_stack_instances( Returns: An instance of `CreateStackInstancesOutput`. """ - return await self._invoke(input, _models.CREATE_STACK_INSTANCES, [], plugins) + async def create_stack_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStackInstancesOutput: + return await self._invoke( + self._select_input(_models.CREATE_STACK_INSTANCES, args, kwargs), + _models.CREATE_STACK_INSTANCES, + [], + plugins, + ) + + @_overload + async def create_stack_refactor( + self, + request: _models.CreateStackRefactorInput + | _models.CreateStackRefactorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStackRefactorOutput: ... + + @_overload async def create_stack_refactor( - self, input: CreateStackRefactorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStackRefactorInputDict], ) -> CreateStackRefactorOutput: """ Creates a refactor across multiple stacks, with the list of stacks and resources that are affected. Args: - input: - An instance of `CreateStackRefactorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -549,17 +660,38 @@ async def create_stack_refactor( Returns: An instance of `CreateStackRefactorOutput`. """ - return await self._invoke(input, _models.CREATE_STACK_REFACTOR, [], plugins) + async def create_stack_refactor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStackRefactorOutput: + return await self._invoke( + self._select_input(_models.CREATE_STACK_REFACTOR, args, kwargs), + _models.CREATE_STACK_REFACTOR, + [], + plugins, + ) + + @_overload + async def create_stack_set( + self, + request: _models.CreateStackSetInput | _models.CreateStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStackSetOutput: ... + + @_overload async def create_stack_set( - self, input: CreateStackSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStackSetInputDict], ) -> CreateStackSetOutput: """ Creates a StackSet. Args: - input: - An instance of `CreateStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -569,12 +701,34 @@ async def create_stack_set( Returns: An instance of `CreateStackSetOutput`. """ - return await self._invoke(input, _models.CREATE_STACK_SET, [], plugins) + async def create_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStackSetOutput: + return await self._invoke( + self._select_input(_models.CREATE_STACK_SET, args, kwargs), + _models.CREATE_STACK_SET, + [], + plugins, + ) + + @_overload + async def deactivate_organizations_access( + self, + request: _models.DeactivateOrganizationsAccessInput + | _models.DeactivateOrganizationsAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeactivateOrganizationsAccessOutput: ... + + @_overload async def deactivate_organizations_access( self, - input: DeactivateOrganizationsAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeactivateOrganizationsAccessInputDict], ) -> DeactivateOrganizationsAccessOutput: """ Deactivates trusted access with Organizations. If trusted access is @@ -582,8 +736,6 @@ async def deactivate_organizations_access( and manage service-managed StackSets for your organization. Args: - input: - An instance of `DeactivateOrganizationsAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -593,12 +745,33 @@ async def deactivate_organizations_access( Returns: An instance of `DeactivateOrganizationsAccessOutput`. """ + + async def deactivate_organizations_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeactivateOrganizationsAccessOutput: return await self._invoke( - input, _models.DEACTIVATE_ORGANIZATIONS_ACCESS, [], plugins + self._select_input(_models.DEACTIVATE_ORGANIZATIONS_ACCESS, args, kwargs), + _models.DEACTIVATE_ORGANIZATIONS_ACCESS, + [], + plugins, ) + @_overload async def deactivate_type( - self, input: DeactivateTypeInput, plugins: list[Plugin] | None = None + self, + request: _models.DeactivateTypeInput | _models.DeactivateTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeactivateTypeOutput: ... + + @_overload + async def deactivate_type( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeactivateTypeInputDict], ) -> DeactivateTypeOutput: """ Deactivates a public third-party extension, such as a resource or @@ -619,8 +792,6 @@ async def deactivate_type( [ListTypes](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListTypes.html). Args: - input: - An instance of `DeactivateTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -630,10 +801,33 @@ async def deactivate_type( Returns: An instance of `DeactivateTypeOutput`. """ - return await self._invoke(input, _models.DEACTIVATE_TYPE, [], plugins) + async def deactivate_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeactivateTypeOutput: + return await self._invoke( + self._select_input(_models.DEACTIVATE_TYPE, args, kwargs), + _models.DEACTIVATE_TYPE, + [], + plugins, + ) + + @_overload + async def delete_change_set( + self, + request: _models.DeleteChangeSetInput | _models.DeleteChangeSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChangeSetOutput: ... + + @_overload async def delete_change_set( - self, input: DeleteChangeSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChangeSetInputDict], ) -> DeleteChangeSetOutput: """ Deletes the specified change set. Deleting change sets ensures that no @@ -648,8 +842,6 @@ async def delete_change_set( for nested stacks with the status of `REVIEW_IN_PROGRESS`. Args: - input: - An instance of `DeleteChangeSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -659,17 +851,39 @@ async def delete_change_set( Returns: An instance of `DeleteChangeSetOutput`. """ - return await self._invoke(input, _models.DELETE_CHANGE_SET, [], plugins) + async def delete_change_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChangeSetOutput: + return await self._invoke( + self._select_input(_models.DELETE_CHANGE_SET, args, kwargs), + _models.DELETE_CHANGE_SET, + [], + plugins, + ) + + @_overload + async def delete_generated_template( + self, + request: _models.DeleteGeneratedTemplateInput + | _models.DeleteGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGeneratedTemplateOutput: ... + + @_overload async def delete_generated_template( - self, input: DeleteGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGeneratedTemplateInputDict], ) -> DeleteGeneratedTemplateOutput: """ Deleted a generated template. Args: - input: - An instance of `DeleteGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -679,10 +893,33 @@ async def delete_generated_template( Returns: An instance of `DeleteGeneratedTemplateOutput`. """ - return await self._invoke(input, _models.DELETE_GENERATED_TEMPLATE, [], plugins) + async def delete_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGeneratedTemplateOutput: + return await self._invoke( + self._select_input(_models.DELETE_GENERATED_TEMPLATE, args, kwargs), + _models.DELETE_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + async def delete_stack( + self, + request: _models.DeleteStackInput | _models.DeleteStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStackOutput: ... + + @_overload async def delete_stack( - self, input: DeleteStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStackInputDict], ) -> DeleteStackOutput: """ Deletes a specified stack. Once the call completes successfully, stack @@ -695,8 +932,6 @@ async def delete_stack( in the *CloudFormation User Guide*. Args: - input: - An instance of `DeleteStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -706,10 +941,34 @@ async def delete_stack( Returns: An instance of `DeleteStackOutput`. """ - return await self._invoke(input, _models.DELETE_STACK, [], plugins) + async def delete_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStackOutput: + return await self._invoke( + self._select_input(_models.DELETE_STACK, args, kwargs), + _models.DELETE_STACK, + [], + plugins, + ) + + @_overload + async def delete_stack_instances( + self, + request: _models.DeleteStackInstancesInput + | _models.DeleteStackInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStackInstancesOutput: ... + + @_overload async def delete_stack_instances( - self, input: DeleteStackInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStackInstancesInputDict], ) -> DeleteStackInstancesOutput: """ Deletes stack instances for the specified accounts, in the specified @@ -729,8 +988,6 @@ async def delete_stack_instances( target a parent OU that contains all desired child OUs. Args: - input: - An instance of `DeleteStackInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -740,10 +997,33 @@ async def delete_stack_instances( Returns: An instance of `DeleteStackInstancesOutput`. """ - return await self._invoke(input, _models.DELETE_STACK_INSTANCES, [], plugins) + async def delete_stack_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStackInstancesOutput: + return await self._invoke( + self._select_input(_models.DELETE_STACK_INSTANCES, args, kwargs), + _models.DELETE_STACK_INSTANCES, + [], + plugins, + ) + + @_overload + async def delete_stack_set( + self, + request: _models.DeleteStackSetInput | _models.DeleteStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStackSetOutput: ... + + @_overload async def delete_stack_set( - self, input: DeleteStackSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStackSetInputDict], ) -> DeleteStackSetOutput: """ Deletes a StackSet. Before you can delete a StackSet, all its member @@ -751,8 +1031,6 @@ async def delete_stack_set( complete this, see DeleteStackInstances. Args: - input: - An instance of `DeleteStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -762,10 +1040,33 @@ async def delete_stack_set( Returns: An instance of `DeleteStackSetOutput`. """ - return await self._invoke(input, _models.DELETE_STACK_SET, [], plugins) + async def delete_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStackSetOutput: + return await self._invoke( + self._select_input(_models.DELETE_STACK_SET, args, kwargs), + _models.DELETE_STACK_SET, + [], + plugins, + ) + + @_overload + async def deregister_type( + self, + request: _models.DeregisterTypeInput | _models.DeregisterTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterTypeOutput: ... + + @_overload async def deregister_type( - self, input: DeregisterTypeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterTypeInputDict], ) -> DeregisterTypeOutput: """ Marks an extension or extension version as `DEPRECATED` in the @@ -792,8 +1093,6 @@ async def deregister_type( in the *CloudFormation User Guide*. Args: - input: - An instance of `DeregisterTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -803,10 +1102,34 @@ async def deregister_type( Returns: An instance of `DeregisterTypeOutput`. """ - return await self._invoke(input, _models.DEREGISTER_TYPE, [], plugins) + async def deregister_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterTypeOutput: + return await self._invoke( + self._select_input(_models.DEREGISTER_TYPE, args, kwargs), + _models.DEREGISTER_TYPE, + [], + plugins, + ) + + @_overload + async def describe_account_limits( + self, + request: _models.DescribeAccountLimitsInput + | _models.DescribeAccountLimitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountLimitsOutput: ... + + @_overload async def describe_account_limits( - self, input: DescribeAccountLimitsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountLimitsInputDict], ) -> DescribeAccountLimitsOutput: """ Retrieves your account's CloudFormation limits, such as the maximum @@ -816,8 +1139,6 @@ async def describe_account_limits( in the *CloudFormation User Guide*. Args: - input: - An instance of `DescribeAccountLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -827,10 +1148,33 @@ async def describe_account_limits( Returns: An instance of `DescribeAccountLimitsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ACCOUNT_LIMITS, [], plugins) + async def describe_account_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountLimitsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ACCOUNT_LIMITS, args, kwargs), + _models.DESCRIBE_ACCOUNT_LIMITS, + [], + plugins, + ) + + @_overload async def describe_change_set( - self, input: DescribeChangeSetInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeChangeSetInput | _models.DescribeChangeSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeChangeSetOutput: ... + + @_overload + async def describe_change_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeChangeSetInputDict], ) -> DescribeChangeSetOutput: """ Returns the inputs for the change set and a list of changes that @@ -840,8 +1184,6 @@ async def describe_change_set( in the *CloudFormation User Guide*. Args: - input: - An instance of `DescribeChangeSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -851,18 +1193,40 @@ async def describe_change_set( Returns: An instance of `DescribeChangeSetOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CHANGE_SET, [], plugins) + async def describe_change_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeChangeSetOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CHANGE_SET, args, kwargs), + _models.DESCRIBE_CHANGE_SET, + [], + plugins, + ) + + @_overload + async def describe_change_set_hooks( + self, + request: _models.DescribeChangeSetHooksInput + | _models.DescribeChangeSetHooksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeChangeSetHooksOutput: ... + + @_overload async def describe_change_set_hooks( - self, input: DescribeChangeSetHooksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeChangeSetHooksInputDict], ) -> DescribeChangeSetHooksOutput: """ Returns Hook-related information for the change set and a list of changes that CloudFormation makes when you run the change set. Args: - input: - An instance of `DescribeChangeSetHooksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -872,10 +1236,33 @@ async def describe_change_set_hooks( Returns: An instance of `DescribeChangeSetHooksOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CHANGE_SET_HOOKS, [], plugins) + async def describe_change_set_hooks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeChangeSetHooksOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CHANGE_SET_HOOKS, args, kwargs), + _models.DESCRIBE_CHANGE_SET_HOOKS, + [], + plugins, + ) + + @_overload + async def describe_events( + self, + request: _models.DescribeEventsInput | _models.DescribeEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEventsOutput: ... + + @_overload async def describe_events( - self, input: DescribeEventsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEventsInputDict], ) -> DescribeEventsOutput: """ Returns CloudFormation events based on flexible query criteria. Groups @@ -905,8 +1292,6 @@ async def describe_events( as input. Args: - input: - An instance of `DescribeEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -916,10 +1301,34 @@ async def describe_events( Returns: An instance of `DescribeEventsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_EVENTS, [], plugins) + async def describe_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEventsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_EVENTS, args, kwargs), + _models.DESCRIBE_EVENTS, + [], + plugins, + ) + + @_overload + async def describe_generated_template( + self, + request: _models.DescribeGeneratedTemplateInput + | _models.DescribeGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGeneratedTemplateOutput: ... + + @_overload async def describe_generated_template( - self, input: DescribeGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGeneratedTemplateInputDict], ) -> DescribeGeneratedTemplateOutput: """ Describes a generated template. The output includes details about the @@ -928,8 +1337,6 @@ async def describe_generated_template( template started with an `UpdateGeneratedTemplate` API action. Args: - input: - An instance of `DescribeGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -939,14 +1346,34 @@ async def describe_generated_template( Returns: An instance of `DescribeGeneratedTemplateOutput`. """ + + async def describe_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGeneratedTemplateOutput: return await self._invoke( - input, _models.DESCRIBE_GENERATED_TEMPLATE, [], plugins + self._select_input(_models.DESCRIBE_GENERATED_TEMPLATE, args, kwargs), + _models.DESCRIBE_GENERATED_TEMPLATE, + [], + plugins, ) + @_overload + async def describe_organizations_access( + self, + request: _models.DescribeOrganizationsAccessInput + | _models.DescribeOrganizationsAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOrganizationsAccessOutput: ... + + @_overload async def describe_organizations_access( self, - input: DescribeOrganizationsAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOrganizationsAccessInputDict], ) -> DescribeOrganizationsAccessOutput: """ Retrieves information about the account's `OrganizationAccess` status. @@ -955,8 +1382,6 @@ async def describe_organizations_access( called without the `CallAs` parameter by the management account. Args: - input: - An instance of `DescribeOrganizationsAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -966,12 +1391,33 @@ async def describe_organizations_access( Returns: An instance of `DescribeOrganizationsAccessOutput`. """ - return await self._invoke( - input, _models.DESCRIBE_ORGANIZATIONS_ACCESS, [], plugins - ) + async def describe_organizations_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOrganizationsAccessOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ORGANIZATIONS_ACCESS, args, kwargs), + _models.DESCRIBE_ORGANIZATIONS_ACCESS, + [], + plugins, + ) + + @_overload + async def describe_publisher( + self, + request: _models.DescribePublisherInput | _models.DescribePublisherInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePublisherOutput: ... + + @_overload async def describe_publisher( - self, input: DescribePublisherInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePublisherInputDict], ) -> DescribePublisherOutput: """ Returns information about a CloudFormation extension publisher. @@ -989,8 +1435,6 @@ async def describe_publisher( in the *CloudFormation Command Line Interface (CLI) User Guide* Args: - input: - An instance of `DescribePublisherInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1000,17 +1444,39 @@ async def describe_publisher( Returns: An instance of `DescribePublisherOutput`. """ - return await self._invoke(input, _models.DESCRIBE_PUBLISHER, [], plugins) + async def describe_publisher( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePublisherOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_PUBLISHER, args, kwargs), + _models.DESCRIBE_PUBLISHER, + [], + plugins, + ) + + @_overload async def describe_resource_scan( - self, input: DescribeResourceScanInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeResourceScanInput + | _models.DescribeResourceScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeResourceScanOutput: ... + + @_overload + async def describe_resource_scan( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeResourceScanInputDict], ) -> DescribeResourceScanOutput: """ Describes details of a resource scan. Args: - input: - An instance of `DescribeResourceScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1020,12 +1486,34 @@ async def describe_resource_scan( Returns: An instance of `DescribeResourceScanOutput`. """ - return await self._invoke(input, _models.DESCRIBE_RESOURCE_SCAN, [], plugins) + async def describe_resource_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeResourceScanOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_RESOURCE_SCAN, args, kwargs), + _models.DESCRIBE_RESOURCE_SCAN, + [], + plugins, + ) + + @_overload async def describe_stack_drift_detection_status( self, - input: DescribeStackDriftDetectionStatusInput, + request: _models.DescribeStackDriftDetectionStatusInput + | _models.DescribeStackDriftDetectionStatusInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeStackDriftDetectionStatusOutput: ... + + @_overload + async def describe_stack_drift_detection_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackDriftDetectionStatusInputDict], ) -> DescribeStackDriftDetectionStatusOutput: """ Returns information about a stack drift detection operation. A stack @@ -1046,8 +1534,6 @@ async def describe_stack_drift_detection_status( information about the stack and its resources. Args: - input: - An instance of `DescribeStackDriftDetectionStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1057,12 +1543,36 @@ async def describe_stack_drift_detection_status( Returns: An instance of `DescribeStackDriftDetectionStatusOutput`. """ + + async def describe_stack_drift_detection_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackDriftDetectionStatusOutput: return await self._invoke( - input, _models.DESCRIBE_STACK_DRIFT_DETECTION_STATUS, [], plugins + self._select_input( + _models.DESCRIBE_STACK_DRIFT_DETECTION_STATUS, args, kwargs + ), + _models.DESCRIBE_STACK_DRIFT_DETECTION_STATUS, + [], + plugins, ) + @_overload async def describe_stack_events( - self, input: DescribeStackEventsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackEventsInput + | _models.DescribeStackEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackEventsOutput: ... + + @_overload + async def describe_stack_events( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackEventsInputDict], ) -> DescribeStackEventsOutput: """ Returns all stack related events for a specified stack in reverse @@ -1076,8 +1586,6 @@ async def describe_stack_events( deleted by specifying the unique stack identifier (stack ID). Args: - input: - An instance of `DescribeStackEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1087,10 +1595,34 @@ async def describe_stack_events( Returns: An instance of `DescribeStackEventsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STACK_EVENTS, [], plugins) + async def describe_stack_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackEventsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STACK_EVENTS, args, kwargs), + _models.DESCRIBE_STACK_EVENTS, + [], + plugins, + ) + + @_overload async def describe_stack_instance( - self, input: DescribeStackInstanceInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackInstanceInput + | _models.DescribeStackInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackInstanceOutput: ... + + @_overload + async def describe_stack_instance( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackInstanceInputDict], ) -> DescribeStackInstanceOutput: """ Returns the stack instance that's associated with the specified @@ -1100,8 +1632,6 @@ async def describe_stack_instance( StackSet, use ListStackInstances. Args: - input: - An instance of `DescribeStackInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1111,17 +1641,39 @@ async def describe_stack_instance( Returns: An instance of `DescribeStackInstanceOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STACK_INSTANCE, [], plugins) + async def describe_stack_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackInstanceOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STACK_INSTANCE, args, kwargs), + _models.DESCRIBE_STACK_INSTANCE, + [], + plugins, + ) + + @_overload + async def describe_stack_refactor( + self, + request: _models.DescribeStackRefactorInput + | _models.DescribeStackRefactorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackRefactorOutput: ... + + @_overload async def describe_stack_refactor( - self, input: DescribeStackRefactorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackRefactorInputDict], ) -> DescribeStackRefactorOutput: """ Describes the stack refactor status. Args: - input: - An instance of `DescribeStackRefactorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1131,10 +1683,34 @@ async def describe_stack_refactor( Returns: An instance of `DescribeStackRefactorOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STACK_REFACTOR, [], plugins) + async def describe_stack_refactor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackRefactorOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STACK_REFACTOR, args, kwargs), + _models.DESCRIBE_STACK_REFACTOR, + [], + plugins, + ) + + @_overload async def describe_stack_resource( - self, input: DescribeStackResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackResourceInput + | _models.DescribeStackResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackResourceOutput: ... + + @_overload + async def describe_stack_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackResourceInputDict], ) -> DescribeStackResourceOutput: """ Returns a description of the specified resource in the specified stack. @@ -1143,8 +1719,6 @@ async def describe_stack_resource( for up to 90 days after the stack has been deleted. Args: - input: - An instance of `DescribeStackResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1154,12 +1728,34 @@ async def describe_stack_resource( Returns: An instance of `DescribeStackResourceOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STACK_RESOURCE, [], plugins) + async def describe_stack_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackResourceOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STACK_RESOURCE, args, kwargs), + _models.DESCRIBE_STACK_RESOURCE, + [], + plugins, + ) + + @_overload async def describe_stack_resource_drifts( self, - input: DescribeStackResourceDriftsInput, + request: _models.DescribeStackResourceDriftsInput + | _models.DescribeStackResourceDriftsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeStackResourceDriftsOutput: ... + + @_overload + async def describe_stack_resource_drifts( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackResourceDriftsInputDict], ) -> DescribeStackResourceDriftsOutput: """ Returns drift information for the resources that have been checked for @@ -1180,8 +1776,6 @@ async def describe_stack_resource_drifts( stack. Args: - input: - An instance of `DescribeStackResourceDriftsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1191,12 +1785,34 @@ async def describe_stack_resource_drifts( Returns: An instance of `DescribeStackResourceDriftsOutput`. """ + + async def describe_stack_resource_drifts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackResourceDriftsOutput: return await self._invoke( - input, _models.DESCRIBE_STACK_RESOURCE_DRIFTS, [], plugins + self._select_input(_models.DESCRIBE_STACK_RESOURCE_DRIFTS, args, kwargs), + _models.DESCRIBE_STACK_RESOURCE_DRIFTS, + [], + plugins, ) + @_overload async def describe_stack_resources( - self, input: DescribeStackResourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackResourcesInput + | _models.DescribeStackResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackResourcesOutput: ... + + @_overload + async def describe_stack_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackResourcesInputDict], ) -> DescribeStackResourcesOutput: """ Returns Amazon Web Services resource descriptions for running and @@ -1224,8 +1840,6 @@ async def describe_stack_resources( `PhysicalResourceId` in the same request. Args: - input: - An instance of `DescribeStackResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1235,10 +1849,33 @@ async def describe_stack_resources( Returns: An instance of `DescribeStackResourcesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STACK_RESOURCES, [], plugins) + async def describe_stack_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackResourcesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STACK_RESOURCES, args, kwargs), + _models.DESCRIBE_STACK_RESOURCES, + [], + plugins, + ) + + @_overload + async def describe_stacks( + self, + request: _models.DescribeStacksInput | _models.DescribeStacksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStacksOutput: ... + + @_overload async def describe_stacks( - self, input: DescribeStacksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStacksInputDict], ) -> DescribeStacksOutput: """ Returns the description for the specified stack; if no stack name was @@ -1252,8 +1889,6 @@ async def describe_stacks( If the stack doesn't exist, a `ValidationError` is returned. Args: - input: - An instance of `DescribeStacksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1263,10 +1898,33 @@ async def describe_stacks( Returns: An instance of `DescribeStacksOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STACKS, [], plugins) + async def describe_stacks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStacksOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STACKS, args, kwargs), + _models.DESCRIBE_STACKS, + [], + plugins, + ) + + @_overload async def describe_stack_set( - self, input: DescribeStackSetInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackSetInput | _models.DescribeStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackSetOutput: ... + + @_overload + async def describe_stack_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackSetInputDict], ) -> DescribeStackSetOutput: """ Returns the description of the specified StackSet. @@ -1276,8 +1934,6 @@ async def describe_stack_set( return the most up-to-date data. Args: - input: - An instance of `DescribeStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1287,10 +1943,34 @@ async def describe_stack_set( Returns: An instance of `DescribeStackSetOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STACK_SET, [], plugins) + async def describe_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackSetOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STACK_SET, args, kwargs), + _models.DESCRIBE_STACK_SET, + [], + plugins, + ) + + @_overload async def describe_stack_set_operation( - self, input: DescribeStackSetOperationInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackSetOperationInput + | _models.DescribeStackSetOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackSetOperationOutput: ... + + @_overload + async def describe_stack_set_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackSetOperationInputDict], ) -> DescribeStackSetOperationOutput: """ Returns the description of the specified StackSet operation. @@ -1300,8 +1980,6 @@ async def describe_stack_set_operation( return the most up-to-date data. Args: - input: - An instance of `DescribeStackSetOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1311,12 +1989,33 @@ async def describe_stack_set_operation( Returns: An instance of `DescribeStackSetOperationOutput`. """ + + async def describe_stack_set_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackSetOperationOutput: return await self._invoke( - input, _models.DESCRIBE_STACK_SET_OPERATION, [], plugins + self._select_input(_models.DESCRIBE_STACK_SET_OPERATION, args, kwargs), + _models.DESCRIBE_STACK_SET_OPERATION, + [], + plugins, ) + @_overload async def describe_type( - self, input: DescribeTypeInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeTypeInput | _models.DescribeTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTypeOutput: ... + + @_overload + async def describe_type( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTypeInputDict], ) -> DescribeTypeOutput: """ Returns detailed information about an extension from the CloudFormation @@ -1332,8 +2031,6 @@ async def describe_type( in the *CloudFormation User Guide*. Args: - input: - An instance of `DescribeTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1343,10 +2040,34 @@ async def describe_type( Returns: An instance of `DescribeTypeOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TYPE, [], plugins) + async def describe_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTypeOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TYPE, args, kwargs), + _models.DESCRIBE_TYPE, + [], + plugins, + ) + + @_overload async def describe_type_registration( - self, input: DescribeTypeRegistrationInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeTypeRegistrationInput + | _models.DescribeTypeRegistrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTypeRegistrationOutput: ... + + @_overload + async def describe_type_registration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTypeRegistrationInputDict], ) -> DescribeTypeRegistrationOutput: """ Returns information about an extension's registration, including its @@ -1360,8 +2081,6 @@ async def describe_type_registration( detailed information about an extension. Args: - input: - An instance of `DescribeTypeRegistrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1371,12 +2090,33 @@ async def describe_type_registration( Returns: An instance of `DescribeTypeRegistrationOutput`. """ + + async def describe_type_registration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTypeRegistrationOutput: return await self._invoke( - input, _models.DESCRIBE_TYPE_REGISTRATION, [], plugins + self._select_input(_models.DESCRIBE_TYPE_REGISTRATION, args, kwargs), + _models.DESCRIBE_TYPE_REGISTRATION, + [], + plugins, ) + @_overload async def detect_stack_drift( - self, input: DetectStackDriftInput, plugins: list[Plugin] | None = None + self, + request: _models.DetectStackDriftInput | _models.DetectStackDriftInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetectStackDriftOutput: ... + + @_overload + async def detect_stack_drift( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetectStackDriftInputDict], ) -> DetectStackDriftOutput: """ Detects whether a stack's actual configuration differs, or has @@ -1411,8 +2151,6 @@ async def detect_stack_drift( directly on the nested stack itself. Args: - input: - An instance of `DetectStackDriftInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1422,10 +2160,34 @@ async def detect_stack_drift( Returns: An instance of `DetectStackDriftOutput`. """ - return await self._invoke(input, _models.DETECT_STACK_DRIFT, [], plugins) + async def detect_stack_drift( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetectStackDriftOutput: + return await self._invoke( + self._select_input(_models.DETECT_STACK_DRIFT, args, kwargs), + _models.DETECT_STACK_DRIFT, + [], + plugins, + ) + + @_overload + async def detect_stack_resource_drift( + self, + request: _models.DetectStackResourceDriftInput + | _models.DetectStackResourceDriftInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetectStackResourceDriftOutput: ... + + @_overload async def detect_stack_resource_drift( - self, input: DetectStackResourceDriftInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetectStackResourceDriftInputDict], ) -> DetectStackResourceDriftOutput: """ Returns information about whether a resource's actual configuration @@ -1448,8 +2210,6 @@ async def detect_stack_resource_drift( detection](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html). Args: - input: - An instance of `DetectStackResourceDriftInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1459,12 +2219,34 @@ async def detect_stack_resource_drift( Returns: An instance of `DetectStackResourceDriftOutput`. """ + + async def detect_stack_resource_drift( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetectStackResourceDriftOutput: return await self._invoke( - input, _models.DETECT_STACK_RESOURCE_DRIFT, [], plugins + self._select_input(_models.DETECT_STACK_RESOURCE_DRIFT, args, kwargs), + _models.DETECT_STACK_RESOURCE_DRIFT, + [], + plugins, ) + @_overload async def detect_stack_set_drift( - self, input: DetectStackSetDriftInput, plugins: list[Plugin] | None = None + self, + request: _models.DetectStackSetDriftInput + | _models.DetectStackSetDriftInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetectStackSetDriftOutput: ... + + @_overload + async def detect_stack_set_drift( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetectStackSetDriftInputDict], ) -> DetectStackSetDriftOutput: """ Detect drift on a StackSet. When CloudFormation performs drift detection @@ -1502,8 +2284,6 @@ async def detect_stack_set_drift( To stop a drift detection StackSet operation, use StopStackSetOperation. Args: - input: - An instance of `DetectStackSetDriftInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1513,10 +2293,34 @@ async def detect_stack_set_drift( Returns: An instance of `DetectStackSetDriftOutput`. """ - return await self._invoke(input, _models.DETECT_STACK_SET_DRIFT, [], plugins) + async def detect_stack_set_drift( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetectStackSetDriftOutput: + return await self._invoke( + self._select_input(_models.DETECT_STACK_SET_DRIFT, args, kwargs), + _models.DETECT_STACK_SET_DRIFT, + [], + plugins, + ) + + @_overload async def estimate_template_cost( - self, input: EstimateTemplateCostInput, plugins: list[Plugin] | None = None + self, + request: _models.EstimateTemplateCostInput + | _models.EstimateTemplateCostInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EstimateTemplateCostOutput: ... + + @_overload + async def estimate_template_cost( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EstimateTemplateCostInputDict], ) -> EstimateTemplateCostOutput: """ Returns the estimated monthly cost of a template. The return value is an @@ -1524,8 +2328,6 @@ async def estimate_template_cost( that describes the resources required to run the template. Args: - input: - An instance of `EstimateTemplateCostInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1535,10 +2337,33 @@ async def estimate_template_cost( Returns: An instance of `EstimateTemplateCostOutput`. """ - return await self._invoke(input, _models.ESTIMATE_TEMPLATE_COST, [], plugins) + async def estimate_template_cost( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EstimateTemplateCostOutput: + return await self._invoke( + self._select_input(_models.ESTIMATE_TEMPLATE_COST, args, kwargs), + _models.ESTIMATE_TEMPLATE_COST, + [], + plugins, + ) + + @_overload + async def execute_change_set( + self, + request: _models.ExecuteChangeSetInput | _models.ExecuteChangeSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteChangeSetOutput: ... + + @_overload async def execute_change_set( - self, input: ExecuteChangeSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteChangeSetInputDict], ) -> ExecuteChangeSetOutput: """ Updates a stack using the input information that was provided when the @@ -1558,8 +2383,6 @@ async def execute_change_set( `IncludeNestedStacks` must have been set to `True`. Args: - input: - An instance of `ExecuteChangeSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1569,17 +2392,39 @@ async def execute_change_set( Returns: An instance of `ExecuteChangeSetOutput`. """ - return await self._invoke(input, _models.EXECUTE_CHANGE_SET, [], plugins) + async def execute_change_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteChangeSetOutput: + return await self._invoke( + self._select_input(_models.EXECUTE_CHANGE_SET, args, kwargs), + _models.EXECUTE_CHANGE_SET, + [], + plugins, + ) + + @_overload async def execute_stack_refactor( - self, input: ExecuteStackRefactorInput, plugins: list[Plugin] | None = None + self, + request: _models.ExecuteStackRefactorInput + | _models.ExecuteStackRefactorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteStackRefactorOutput: ... + + @_overload + async def execute_stack_refactor( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteStackRefactorInputDict], ) -> ExecuteStackRefactorOutput: """ Executes the stack refactor operation. Args: - input: - An instance of `ExecuteStackRefactorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1589,10 +2434,34 @@ async def execute_stack_refactor( Returns: An instance of `ExecuteStackRefactorOutput`. """ - return await self._invoke(input, _models.EXECUTE_STACK_REFACTOR, [], plugins) + async def execute_stack_refactor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteStackRefactorOutput: + return await self._invoke( + self._select_input(_models.EXECUTE_STACK_REFACTOR, args, kwargs), + _models.EXECUTE_STACK_REFACTOR, + [], + plugins, + ) + + @_overload + async def get_generated_template( + self, + request: _models.GetGeneratedTemplateInput + | _models.GetGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGeneratedTemplateOutput: ... + + @_overload async def get_generated_template( - self, input: GetGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGeneratedTemplateInputDict], ) -> GetGeneratedTemplateOutput: """ Retrieves a generated template. If the template is in an `InProgress` or @@ -1601,8 +2470,6 @@ async def get_generated_template( yet been in a `Complete` status then an empty template will be returned. Args: - input: - An instance of `GetGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1612,10 +2479,33 @@ async def get_generated_template( Returns: An instance of `GetGeneratedTemplateOutput`. """ - return await self._invoke(input, _models.GET_GENERATED_TEMPLATE, [], plugins) + async def get_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGeneratedTemplateOutput: + return await self._invoke( + self._select_input(_models.GET_GENERATED_TEMPLATE, args, kwargs), + _models.GET_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + async def get_hook_result( + self, + request: _models.GetHookResultInput | _models.GetHookResultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHookResultOutput: ... + + @_overload async def get_hook_result( - self, input: GetHookResultInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHookResultInputDict], ) -> GetHookResultOutput: """ Retrieves detailed information and remediation guidance for a Hook @@ -1629,8 +2519,6 @@ async def get_hook_result( in the *CloudFormation Hooks User Guide*. Args: - input: - An instance of `GetHookResultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1640,18 +2528,39 @@ async def get_hook_result( Returns: An instance of `GetHookResultOutput`. """ - return await self._invoke(input, _models.GET_HOOK_RESULT, [], plugins) + async def get_hook_result( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHookResultOutput: + return await self._invoke( + self._select_input(_models.GET_HOOK_RESULT, args, kwargs), + _models.GET_HOOK_RESULT, + [], + plugins, + ) + + @_overload async def get_stack_policy( - self, input: GetStackPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetStackPolicyInput | _models.GetStackPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStackPolicyOutput: ... + + @_overload + async def get_stack_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStackPolicyInputDict], ) -> GetStackPolicyOutput: """ Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned. Args: - input: - An instance of `GetStackPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1661,10 +2570,33 @@ async def get_stack_policy( Returns: An instance of `GetStackPolicyOutput`. """ - return await self._invoke(input, _models.GET_STACK_POLICY, [], plugins) + async def get_stack_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStackPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_STACK_POLICY, args, kwargs), + _models.GET_STACK_POLICY, + [], + plugins, + ) + + @_overload async def get_template( - self, input: GetTemplateInput, plugins: list[Plugin] | None = None + self, + request: _models.GetTemplateInput | _models.GetTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTemplateOutput: ... + + @_overload + async def get_template( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTemplateInputDict], ) -> GetTemplateOutput: """ Returns the template body for a specified stack. You can get the @@ -1677,8 +2609,6 @@ async def get_template( If the template doesn't exist, a `ValidationError` is returned. Args: - input: - An instance of `GetTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1688,10 +2618,33 @@ async def get_template( Returns: An instance of `GetTemplateOutput`. """ - return await self._invoke(input, _models.GET_TEMPLATE, [], plugins) + async def get_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTemplateOutput: + return await self._invoke( + self._select_input(_models.GET_TEMPLATE, args, kwargs), + _models.GET_TEMPLATE, + [], + plugins, + ) + + @_overload + async def get_template_summary( + self, + request: _models.GetTemplateSummaryInput | _models.GetTemplateSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTemplateSummaryOutput: ... + + @_overload async def get_template_summary( - self, input: GetTemplateSummaryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTemplateSummaryInputDict], ) -> GetTemplateSummaryOutput: """ Returns information about a new or existing template. The @@ -1708,8 +2661,6 @@ async def get_template_summary( template doesn't exist, a `ValidationError` is returned. Args: - input: - An instance of `GetTemplateSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1719,10 +2670,34 @@ async def get_template_summary( Returns: An instance of `GetTemplateSummaryOutput`. """ - return await self._invoke(input, _models.GET_TEMPLATE_SUMMARY, [], plugins) + async def get_template_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTemplateSummaryOutput: + return await self._invoke( + self._select_input(_models.GET_TEMPLATE_SUMMARY, args, kwargs), + _models.GET_TEMPLATE_SUMMARY, + [], + plugins, + ) + + @_overload async def import_stacks_to_stack_set( - self, input: ImportStacksToStackSetInput, plugins: list[Plugin] | None = None + self, + request: _models.ImportStacksToStackSetInput + | _models.ImportStacksToStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportStacksToStackSetOutput: ... + + @_overload + async def import_stacks_to_stack_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportStacksToStackSetInputDict], ) -> ImportStacksToStackSetOutput: """ Import existing stacks into a new StackSets. Use the stack import @@ -1731,8 +2706,6 @@ async def import_stacks_to_stack_set( Region, by specifying the stack ID of the stack you intend to import. Args: - input: - An instance of `ImportStacksToStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1742,12 +2715,33 @@ async def import_stacks_to_stack_set( Returns: An instance of `ImportStacksToStackSetOutput`. """ + + async def import_stacks_to_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportStacksToStackSetOutput: return await self._invoke( - input, _models.IMPORT_STACKS_TO_STACK_SET, [], plugins + self._select_input(_models.IMPORT_STACKS_TO_STACK_SET, args, kwargs), + _models.IMPORT_STACKS_TO_STACK_SET, + [], + plugins, ) + @_overload + async def list_change_sets( + self, + request: _models.ListChangeSetsInput | _models.ListChangeSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListChangeSetsOutput: ... + + @_overload async def list_change_sets( - self, input: ListChangeSetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListChangeSetsInputDict], ) -> ListChangeSetsOutput: """ Returns the ID and status of each active change set for a stack. For @@ -1755,8 +2749,6 @@ async def list_change_sets( `CREATE_IN_PROGRESS` or `CREATE_PENDING` state. Args: - input: - An instance of `ListChangeSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1766,10 +2758,33 @@ async def list_change_sets( Returns: An instance of `ListChangeSetsOutput`. """ - return await self._invoke(input, _models.LIST_CHANGE_SETS, [], plugins) + async def list_change_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListChangeSetsOutput: + return await self._invoke( + self._select_input(_models.LIST_CHANGE_SETS, args, kwargs), + _models.LIST_CHANGE_SETS, + [], + plugins, + ) + + @_overload async def list_exports( - self, input: ListExportsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListExportsInput | _models.ListExportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListExportsOutput: ... + + @_overload + async def list_exports( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListExportsInputDict], ) -> ListExportsOutput: """ Lists all exported output values in the account and Region in which you @@ -1783,8 +2798,6 @@ async def list_exports( stack](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html). Args: - input: - An instance of `ListExportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1794,17 +2807,39 @@ async def list_exports( Returns: An instance of `ListExportsOutput`. """ - return await self._invoke(input, _models.LIST_EXPORTS, [], plugins) + async def list_exports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListExportsOutput: + return await self._invoke( + self._select_input(_models.LIST_EXPORTS, args, kwargs), + _models.LIST_EXPORTS, + [], + plugins, + ) + + @_overload async def list_generated_templates( - self, input: ListGeneratedTemplatesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGeneratedTemplatesInput + | _models.ListGeneratedTemplatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGeneratedTemplatesOutput: ... + + @_overload + async def list_generated_templates( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGeneratedTemplatesInputDict], ) -> ListGeneratedTemplatesOutput: """ Lists your generated templates in this Region. Args: - input: - An instance of `ListGeneratedTemplatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1814,10 +2849,33 @@ async def list_generated_templates( Returns: An instance of `ListGeneratedTemplatesOutput`. """ - return await self._invoke(input, _models.LIST_GENERATED_TEMPLATES, [], plugins) + async def list_generated_templates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGeneratedTemplatesOutput: + return await self._invoke( + self._select_input(_models.LIST_GENERATED_TEMPLATES, args, kwargs), + _models.LIST_GENERATED_TEMPLATES, + [], + plugins, + ) + + @_overload + async def list_hook_results( + self, + request: _models.ListHookResultsInput | _models.ListHookResultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListHookResultsOutput: ... + + @_overload async def list_hook_results( - self, input: ListHookResultsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListHookResultsInputDict], ) -> ListHookResultsOutput: """ Returns summaries of invoked Hooks. For more information, see [View @@ -1838,8 +2896,6 @@ async def list_hook_results( invocation target. Args: - input: - An instance of `ListHookResultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1849,10 +2905,33 @@ async def list_hook_results( Returns: An instance of `ListHookResultsOutput`. """ - return await self._invoke(input, _models.LIST_HOOK_RESULTS, [], plugins) + async def list_hook_results( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListHookResultsOutput: + return await self._invoke( + self._select_input(_models.LIST_HOOK_RESULTS, args, kwargs), + _models.LIST_HOOK_RESULTS, + [], + plugins, + ) + + @_overload async def list_imports( - self, input: ListImportsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListImportsInput | _models.ListImportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportsOutput: ... + + @_overload + async def list_imports( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportsInputDict], ) -> ListImportsOutput: """ Lists all stacks that are importing an exported output value. To modify @@ -1865,8 +2944,6 @@ async def list_imports( function. Args: - input: - An instance of `ListImportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1876,12 +2953,34 @@ async def list_imports( Returns: An instance of `ListImportsOutput`. """ - return await self._invoke(input, _models.LIST_IMPORTS, [], plugins) + async def list_imports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportsOutput: + return await self._invoke( + self._select_input(_models.LIST_IMPORTS, args, kwargs), + _models.LIST_IMPORTS, + [], + plugins, + ) + + @_overload async def list_resource_scan_related_resources( self, - input: ListResourceScanRelatedResourcesInput, + request: _models.ListResourceScanRelatedResourcesInput + | _models.ListResourceScanRelatedResourcesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListResourceScanRelatedResourcesOutput: ... + + @_overload + async def list_resource_scan_related_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourceScanRelatedResourcesInputDict], ) -> ListResourceScanRelatedResourcesOutput: """ Lists the related resources for a list of resources from a resource @@ -1889,8 +2988,6 @@ async def list_resource_scan_related_resources( managed by CloudFormation. Args: - input: - An instance of `ListResourceScanRelatedResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1900,12 +2997,36 @@ async def list_resource_scan_related_resources( Returns: An instance of `ListResourceScanRelatedResourcesOutput`. """ + + async def list_resource_scan_related_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourceScanRelatedResourcesOutput: return await self._invoke( - input, _models.LIST_RESOURCE_SCAN_RELATED_RESOURCES, [], plugins + self._select_input( + _models.LIST_RESOURCE_SCAN_RELATED_RESOURCES, args, kwargs + ), + _models.LIST_RESOURCE_SCAN_RELATED_RESOURCES, + [], + plugins, ) + @_overload async def list_resource_scan_resources( - self, input: ListResourceScanResourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListResourceScanResourcesInput + | _models.ListResourceScanResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResourceScanResourcesOutput: ... + + @_overload + async def list_resource_scan_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourceScanResourcesInputDict], ) -> ListResourceScanResourcesOutput: """ Lists the resources from a resource scan. The results can be filtered by @@ -1915,8 +3036,6 @@ async def list_resource_scan_resources( CloudFormation. Args: - input: - An instance of `ListResourceScanResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1926,20 +3045,39 @@ async def list_resource_scan_resources( Returns: An instance of `ListResourceScanResourcesOutput`. """ + + async def list_resource_scan_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourceScanResourcesOutput: return await self._invoke( - input, _models.LIST_RESOURCE_SCAN_RESOURCES, [], plugins + self._select_input(_models.LIST_RESOURCE_SCAN_RESOURCES, args, kwargs), + _models.LIST_RESOURCE_SCAN_RESOURCES, + [], + plugins, ) + @_overload async def list_resource_scans( - self, input: ListResourceScansInput, plugins: list[Plugin] | None = None + self, + request: _models.ListResourceScansInput | _models.ListResourceScansInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResourceScansOutput: ... + + @_overload + async def list_resource_scans( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourceScansInputDict], ) -> ListResourceScansOutput: """ List the resource scans from newest to oldest. By default it will return up to 10 resource scans. Args: - input: - An instance of `ListResourceScansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1949,12 +3087,34 @@ async def list_resource_scans( Returns: An instance of `ListResourceScansOutput`. """ - return await self._invoke(input, _models.LIST_RESOURCE_SCANS, [], plugins) + async def list_resource_scans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourceScansOutput: + return await self._invoke( + self._select_input(_models.LIST_RESOURCE_SCANS, args, kwargs), + _models.LIST_RESOURCE_SCANS, + [], + plugins, + ) + + @_overload + async def list_stack_instance_resource_drifts( + self, + request: _models.ListStackInstanceResourceDriftsInput + | _models.ListStackInstanceResourceDriftsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackInstanceResourceDriftsOutput: ... + + @_overload async def list_stack_instance_resource_drifts( self, - input: ListStackInstanceResourceDriftsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackInstanceResourceDriftsInputDict], ) -> ListStackInstanceResourceDriftsOutput: """ Returns drift information for resources in a stack instance. @@ -1965,8 +3125,6 @@ async def list_stack_instance_resource_drifts( only return partial results. Args: - input: - An instance of `ListStackInstanceResourceDriftsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1976,12 +3134,35 @@ async def list_stack_instance_resource_drifts( Returns: An instance of `ListStackInstanceResourceDriftsOutput`. """ + + async def list_stack_instance_resource_drifts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackInstanceResourceDriftsOutput: return await self._invoke( - input, _models.LIST_STACK_INSTANCE_RESOURCE_DRIFTS, [], plugins + self._select_input( + _models.LIST_STACK_INSTANCE_RESOURCE_DRIFTS, args, kwargs + ), + _models.LIST_STACK_INSTANCE_RESOURCE_DRIFTS, + [], + plugins, ) + @_overload async def list_stack_instances( - self, input: ListStackInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListStackInstancesInput | _models.ListStackInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackInstancesOutput: ... + + @_overload + async def list_stack_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackInstancesInputDict], ) -> ListStackInstancesOutput: """ Returns summary information about stack instances that are associated @@ -1990,8 +3171,6 @@ async def list_stack_instances( or that have a specific status. Args: - input: - An instance of `ListStackInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2001,18 +3180,40 @@ async def list_stack_instances( Returns: An instance of `ListStackInstancesOutput`. """ - return await self._invoke(input, _models.LIST_STACK_INSTANCES, [], plugins) + async def list_stack_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackInstancesOutput: + return await self._invoke( + self._select_input(_models.LIST_STACK_INSTANCES, args, kwargs), + _models.LIST_STACK_INSTANCES, + [], + plugins, + ) + + @_overload + async def list_stack_refactor_actions( + self, + request: _models.ListStackRefactorActionsInput + | _models.ListStackRefactorActionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackRefactorActionsOutput: ... + + @_overload async def list_stack_refactor_actions( - self, input: ListStackRefactorActionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackRefactorActionsInputDict], ) -> ListStackRefactorActionsOutput: """ Lists the stack refactor actions that will be taken after calling the ExecuteStackRefactor action. Args: - input: - An instance of `ListStackRefactorActionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2022,19 +3223,38 @@ async def list_stack_refactor_actions( Returns: An instance of `ListStackRefactorActionsOutput`. """ + + async def list_stack_refactor_actions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackRefactorActionsOutput: return await self._invoke( - input, _models.LIST_STACK_REFACTOR_ACTIONS, [], plugins + self._select_input(_models.LIST_STACK_REFACTOR_ACTIONS, args, kwargs), + _models.LIST_STACK_REFACTOR_ACTIONS, + [], + plugins, ) + @_overload async def list_stack_refactors( - self, input: ListStackRefactorsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListStackRefactorsInput | _models.ListStackRefactorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackRefactorsOutput: ... + + @_overload + async def list_stack_refactors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackRefactorsInputDict], ) -> ListStackRefactorsOutput: """ Lists all account stack refactor operations and their statuses. Args: - input: - An instance of `ListStackRefactorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2044,10 +3264,33 @@ async def list_stack_refactors( Returns: An instance of `ListStackRefactorsOutput`. """ - return await self._invoke(input, _models.LIST_STACK_REFACTORS, [], plugins) + async def list_stack_refactors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackRefactorsOutput: + return await self._invoke( + self._select_input(_models.LIST_STACK_REFACTORS, args, kwargs), + _models.LIST_STACK_REFACTORS, + [], + plugins, + ) + + @_overload async def list_stack_resources( - self, input: ListStackResourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListStackResourcesInput | _models.ListStackResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackResourcesOutput: ... + + @_overload + async def list_stack_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackResourcesInputDict], ) -> ListStackResourcesOutput: """ Returns descriptions of all resources of the specified stack. @@ -2056,8 +3299,6 @@ async def list_stack_resources( up to 90 days after the stack has been deleted. Args: - input: - An instance of `ListStackResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2067,10 +3308,33 @@ async def list_stack_resources( Returns: An instance of `ListStackResourcesOutput`. """ - return await self._invoke(input, _models.LIST_STACK_RESOURCES, [], plugins) + async def list_stack_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackResourcesOutput: + return await self._invoke( + self._select_input(_models.LIST_STACK_RESOURCES, args, kwargs), + _models.LIST_STACK_RESOURCES, + [], + plugins, + ) + + @_overload + async def list_stacks( + self, + request: _models.ListStacksInput | _models.ListStacksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStacksOutput: ... + + @_overload async def list_stacks( - self, input: ListStacksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStacksInputDict], ) -> ListStacksOutput: """ Returns the summary information for stacks whose status matches the @@ -2080,8 +3344,6 @@ async def list_stacks( returned (including existing stacks and stacks that have been deleted). Args: - input: - An instance of `ListStacksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2091,19 +3353,39 @@ async def list_stacks( Returns: An instance of `ListStacksOutput`. """ - return await self._invoke(input, _models.LIST_STACKS, [], plugins) + async def list_stacks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStacksOutput: + return await self._invoke( + self._select_input(_models.LIST_STACKS, args, kwargs), + _models.LIST_STACKS, + [], + plugins, + ) + + @_overload async def list_stack_set_auto_deployment_targets( self, - input: ListStackSetAutoDeploymentTargetsInput, + request: _models.ListStackSetAutoDeploymentTargetsInput + | _models.ListStackSetAutoDeploymentTargetsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListStackSetAutoDeploymentTargetsOutput: ... + + @_overload + async def list_stack_set_auto_deployment_targets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackSetAutoDeploymentTargetsInputDict], ) -> ListStackSetAutoDeploymentTargetsOutput: """ Returns summary information about deployment targets for a StackSet. Args: - input: - An instance of `ListStackSetAutoDeploymentTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2113,14 +3395,36 @@ async def list_stack_set_auto_deployment_targets( Returns: An instance of `ListStackSetAutoDeploymentTargetsOutput`. """ + + async def list_stack_set_auto_deployment_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackSetAutoDeploymentTargetsOutput: return await self._invoke( - input, _models.LIST_STACK_SET_AUTO_DEPLOYMENT_TARGETS, [], plugins + self._select_input( + _models.LIST_STACK_SET_AUTO_DEPLOYMENT_TARGETS, args, kwargs + ), + _models.LIST_STACK_SET_AUTO_DEPLOYMENT_TARGETS, + [], + plugins, ) + @_overload async def list_stack_set_operation_results( self, - input: ListStackSetOperationResultsInput, + request: _models.ListStackSetOperationResultsInput + | _models.ListStackSetOperationResultsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListStackSetOperationResultsOutput: ... + + @_overload + async def list_stack_set_operation_results( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackSetOperationResultsInputDict], ) -> ListStackSetOperationResultsOutput: """ Returns summary information about the results of a StackSet operation. @@ -2130,8 +3434,6 @@ async def list_stack_set_operation_results( time but will eventually return the most up-to-date data. Args: - input: - An instance of `ListStackSetOperationResultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2141,12 +3443,34 @@ async def list_stack_set_operation_results( Returns: An instance of `ListStackSetOperationResultsOutput`. """ + + async def list_stack_set_operation_results( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackSetOperationResultsOutput: return await self._invoke( - input, _models.LIST_STACK_SET_OPERATION_RESULTS, [], plugins + self._select_input(_models.LIST_STACK_SET_OPERATION_RESULTS, args, kwargs), + _models.LIST_STACK_SET_OPERATION_RESULTS, + [], + plugins, ) + @_overload + async def list_stack_set_operations( + self, + request: _models.ListStackSetOperationsInput + | _models.ListStackSetOperationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackSetOperationsOutput: ... + + @_overload async def list_stack_set_operations( - self, input: ListStackSetOperationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackSetOperationsInputDict], ) -> ListStackSetOperationsOutput: """ Returns summary information about operations performed on a StackSet. @@ -2156,8 +3480,6 @@ async def list_stack_set_operations( time but will eventually return the most up-to-date data. Args: - input: - An instance of `ListStackSetOperationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2167,10 +3489,33 @@ async def list_stack_set_operations( Returns: An instance of `ListStackSetOperationsOutput`. """ - return await self._invoke(input, _models.LIST_STACK_SET_OPERATIONS, [], plugins) + async def list_stack_set_operations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackSetOperationsOutput: + return await self._invoke( + self._select_input(_models.LIST_STACK_SET_OPERATIONS, args, kwargs), + _models.LIST_STACK_SET_OPERATIONS, + [], + plugins, + ) + + @_overload + async def list_stack_sets( + self, + request: _models.ListStackSetsInput | _models.ListStackSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackSetsOutput: ... + + @_overload async def list_stack_sets( - self, input: ListStackSetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackSetsInputDict], ) -> ListStackSetsOutput: """ Returns summary information about StackSets that are associated with the @@ -2195,8 +3540,6 @@ async def list_stack_sets( in the management account. Args: - input: - An instance of `ListStackSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2206,17 +3549,39 @@ async def list_stack_sets( Returns: An instance of `ListStackSetsOutput`. """ - return await self._invoke(input, _models.LIST_STACK_SETS, [], plugins) + async def list_stack_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackSetsOutput: + return await self._invoke( + self._select_input(_models.LIST_STACK_SETS, args, kwargs), + _models.LIST_STACK_SETS, + [], + plugins, + ) + + @_overload + async def list_type_registrations( + self, + request: _models.ListTypeRegistrationsInput + | _models.ListTypeRegistrationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTypeRegistrationsOutput: ... + + @_overload async def list_type_registrations( - self, input: ListTypeRegistrationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTypeRegistrationsInputDict], ) -> ListTypeRegistrationsOutput: """ Returns a list of registration tokens for the specified extension(s). Args: - input: - An instance of `ListTypeRegistrationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2226,10 +3591,33 @@ async def list_type_registrations( Returns: An instance of `ListTypeRegistrationsOutput`. """ - return await self._invoke(input, _models.LIST_TYPE_REGISTRATIONS, [], plugins) + async def list_type_registrations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTypeRegistrationsOutput: + return await self._invoke( + self._select_input(_models.LIST_TYPE_REGISTRATIONS, args, kwargs), + _models.LIST_TYPE_REGISTRATIONS, + [], + plugins, + ) + + @_overload async def list_types( - self, input: ListTypesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTypesInput | _models.ListTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTypesOutput: ... + + @_overload + async def list_types( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTypesInputDict], ) -> ListTypesOutput: """ Returns summary information about all extensions, including your private @@ -2237,8 +3625,6 @@ async def list_types( Amazon Web Services and third-party publishers. Args: - input: - An instance of `ListTypesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2248,17 +3634,38 @@ async def list_types( Returns: An instance of `ListTypesOutput`. """ - return await self._invoke(input, _models.LIST_TYPES, [], plugins) + async def list_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTypesOutput: + return await self._invoke( + self._select_input(_models.LIST_TYPES, args, kwargs), + _models.LIST_TYPES, + [], + plugins, + ) + + @_overload + async def list_type_versions( + self, + request: _models.ListTypeVersionsInput | _models.ListTypeVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTypeVersionsOutput: ... + + @_overload async def list_type_versions( - self, input: ListTypeVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTypeVersionsInputDict], ) -> ListTypeVersionsOutput: """ Returns summary information about the versions of an extension. Args: - input: - An instance of `ListTypeVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2268,10 +3675,33 @@ async def list_type_versions( Returns: An instance of `ListTypeVersionsOutput`. """ - return await self._invoke(input, _models.LIST_TYPE_VERSIONS, [], plugins) + async def list_type_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTypeVersionsOutput: + return await self._invoke( + self._select_input(_models.LIST_TYPE_VERSIONS, args, kwargs), + _models.LIST_TYPE_VERSIONS, + [], + plugins, + ) + + @_overload + async def publish_type( + self, + request: _models.PublishTypeInput | _models.PublishTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishTypeOutput: ... + + @_overload async def publish_type( - self, input: PublishTypeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishTypeInputDict], ) -> PublishTypeOutput: """ Publishes the specified extension to the CloudFormation registry as a @@ -2286,8 +3716,6 @@ async def publish_type( [RegisterPublisher](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html). Args: - input: - An instance of `PublishTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2297,10 +3725,34 @@ async def publish_type( Returns: An instance of `PublishTypeOutput`. """ - return await self._invoke(input, _models.PUBLISH_TYPE, [], plugins) + async def publish_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishTypeOutput: + return await self._invoke( + self._select_input(_models.PUBLISH_TYPE, args, kwargs), + _models.PUBLISH_TYPE, + [], + plugins, + ) + + @_overload + async def record_handler_progress( + self, + request: _models.RecordHandlerProgressInput + | _models.RecordHandlerProgressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RecordHandlerProgressOutput: ... + + @_overload async def record_handler_progress( - self, input: RecordHandlerProgressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RecordHandlerProgressInputDict], ) -> RecordHandlerProgressOutput: """ Reports progress of a resource handler to CloudFormation. @@ -2310,8 +3762,6 @@ async def record_handler_progress( Don't use this API in your code. Args: - input: - An instance of `RecordHandlerProgressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2321,10 +3771,33 @@ async def record_handler_progress( Returns: An instance of `RecordHandlerProgressOutput`. """ - return await self._invoke(input, _models.RECORD_HANDLER_PROGRESS, [], plugins) + async def record_handler_progress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RecordHandlerProgressOutput: + return await self._invoke( + self._select_input(_models.RECORD_HANDLER_PROGRESS, args, kwargs), + _models.RECORD_HANDLER_PROGRESS, + [], + plugins, + ) + + @_overload + async def register_publisher( + self, + request: _models.RegisterPublisherInput | _models.RegisterPublisherInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterPublisherOutput: ... + + @_overload async def register_publisher( - self, input: RegisterPublisherInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterPublisherInputDict], ) -> RegisterPublisherOutput: """ Registers your account as a publisher of public extensions in the @@ -2339,8 +3812,6 @@ async def register_publisher( in the *CloudFormation Command Line Interface (CLI) User Guide*. Args: - input: - An instance of `RegisterPublisherInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2350,10 +3821,33 @@ async def register_publisher( Returns: An instance of `RegisterPublisherOutput`. """ - return await self._invoke(input, _models.REGISTER_PUBLISHER, [], plugins) + async def register_publisher( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterPublisherOutput: + return await self._invoke( + self._select_input(_models.REGISTER_PUBLISHER, args, kwargs), + _models.REGISTER_PUBLISHER, + [], + plugins, + ) + + @_overload + async def register_type( + self, + request: _models.RegisterTypeInput | _models.RegisterTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterTypeOutput: ... + + @_overload async def register_type( - self, input: RegisterTypeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterTypeInputDict], ) -> RegisterTypeOutput: """ Registers an extension with the CloudFormation service. Registering an @@ -2390,8 +3884,6 @@ async def register_type( in the *CloudFormation User Guide*. Args: - input: - An instance of `RegisterTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2401,10 +3893,33 @@ async def register_type( Returns: An instance of `RegisterTypeOutput`. """ - return await self._invoke(input, _models.REGISTER_TYPE, [], plugins) + async def register_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterTypeOutput: + return await self._invoke( + self._select_input(_models.REGISTER_TYPE, args, kwargs), + _models.REGISTER_TYPE, + [], + plugins, + ) + + @_overload + async def rollback_stack( + self, + request: _models.RollbackStackInput | _models.RollbackStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RollbackStackOutput: ... + + @_overload async def rollback_stack( - self, input: RollbackStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RollbackStackInputDict], ) -> RollbackStackOutput: """ When specifying `RollbackStack`, you preserve the state of previously @@ -2429,8 +3944,6 @@ async def rollback_stack( - `IMPORT_ROLLBACK_COMPLETE` Args: - input: - An instance of `RollbackStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2440,17 +3953,38 @@ async def rollback_stack( Returns: An instance of `RollbackStackOutput`. """ - return await self._invoke(input, _models.ROLLBACK_STACK, [], plugins) + async def rollback_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RollbackStackOutput: + return await self._invoke( + self._select_input(_models.ROLLBACK_STACK, args, kwargs), + _models.ROLLBACK_STACK, + [], + plugins, + ) + + @_overload + async def set_stack_policy( + self, + request: _models.SetStackPolicyInput | _models.SetStackPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetStackPolicyOutput: ... + + @_overload async def set_stack_policy( - self, input: SetStackPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetStackPolicyInputDict], ) -> SetStackPolicyOutput: """ Sets a stack policy for a specified stack. Args: - input: - An instance of `SetStackPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2460,10 +3994,34 @@ async def set_stack_policy( Returns: An instance of `SetStackPolicyOutput`. """ - return await self._invoke(input, _models.SET_STACK_POLICY, [], plugins) + async def set_stack_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetStackPolicyOutput: + return await self._invoke( + self._select_input(_models.SET_STACK_POLICY, args, kwargs), + _models.SET_STACK_POLICY, + [], + plugins, + ) + + @_overload async def set_type_configuration( - self, input: SetTypeConfigurationInput, plugins: list[Plugin] | None = None + self, + request: _models.SetTypeConfigurationInput + | _models.SetTypeConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetTypeConfigurationOutput: ... + + @_overload + async def set_type_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetTypeConfigurationInputDict], ) -> SetTypeConfigurationOutput: """ Specifies the configuration data for a CloudFormation extension, such as @@ -2495,8 +4053,6 @@ async def set_type_configuration( Guide](https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/what-is-cloudformation-hooks.html). Args: - input: - An instance of `SetTypeConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2506,18 +4062,40 @@ async def set_type_configuration( Returns: An instance of `SetTypeConfigurationOutput`. """ - return await self._invoke(input, _models.SET_TYPE_CONFIGURATION, [], plugins) + async def set_type_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetTypeConfigurationOutput: + return await self._invoke( + self._select_input(_models.SET_TYPE_CONFIGURATION, args, kwargs), + _models.SET_TYPE_CONFIGURATION, + [], + plugins, + ) + + @_overload + async def set_type_default_version( + self, + request: _models.SetTypeDefaultVersionInput + | _models.SetTypeDefaultVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetTypeDefaultVersionOutput: ... + + @_overload async def set_type_default_version( - self, input: SetTypeDefaultVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetTypeDefaultVersionInputDict], ) -> SetTypeDefaultVersionOutput: """ Specify the default version of an extension. The default version of an extension will be used in CloudFormation operations. Args: - input: - An instance of `SetTypeDefaultVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2527,10 +4105,33 @@ async def set_type_default_version( Returns: An instance of `SetTypeDefaultVersionOutput`. """ - return await self._invoke(input, _models.SET_TYPE_DEFAULT_VERSION, [], plugins) + async def set_type_default_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetTypeDefaultVersionOutput: + return await self._invoke( + self._select_input(_models.SET_TYPE_DEFAULT_VERSION, args, kwargs), + _models.SET_TYPE_DEFAULT_VERSION, + [], + plugins, + ) + + @_overload + async def signal_resource( + self, + request: _models.SignalResourceInput | _models.SignalResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SignalResourceOutput: ... + + @_overload async def signal_resource( - self, input: SignalResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SignalResourceInputDict], ) -> SignalResourceOutput: """ Sends a signal to the specified resource with a success or failure @@ -2542,8 +4143,6 @@ async def signal_resource( anywhere other than an Amazon EC2 instance. Args: - input: - An instance of `SignalResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2553,18 +4152,39 @@ async def signal_resource( Returns: An instance of `SignalResourceOutput`. """ - return await self._invoke(input, _models.SIGNAL_RESOURCE, [], plugins) + async def signal_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SignalResourceOutput: + return await self._invoke( + self._select_input(_models.SIGNAL_RESOURCE, args, kwargs), + _models.SIGNAL_RESOURCE, + [], + plugins, + ) + + @_overload + async def start_resource_scan( + self, + request: _models.StartResourceScanInput | _models.StartResourceScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartResourceScanOutput: ... + + @_overload async def start_resource_scan( - self, input: StartResourceScanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartResourceScanInputDict], ) -> StartResourceScanOutput: """ Starts a scan of the resources in this account in this Region. You can the status of a scan using the `ListResourceScans` API action. Args: - input: - An instance of `StartResourceScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2574,10 +4194,34 @@ async def start_resource_scan( Returns: An instance of `StartResourceScanOutput`. """ - return await self._invoke(input, _models.START_RESOURCE_SCAN, [], plugins) + async def start_resource_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartResourceScanOutput: + return await self._invoke( + self._select_input(_models.START_RESOURCE_SCAN, args, kwargs), + _models.START_RESOURCE_SCAN, + [], + plugins, + ) + + @_overload + async def stop_stack_set_operation( + self, + request: _models.StopStackSetOperationInput + | _models.StopStackSetOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopStackSetOperationOutput: ... + + @_overload async def stop_stack_set_operation( - self, input: StopStackSetOperationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopStackSetOperationInputDict], ) -> StopStackSetOperationOutput: """ Stops an in-progress operation on a StackSet and its associated stack @@ -2585,8 +4229,6 @@ async def stop_stack_set_operation( deployments and wait for those are in-progress to complete. Args: - input: - An instance of `StopStackSetOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2596,10 +4238,33 @@ async def stop_stack_set_operation( Returns: An instance of `StopStackSetOperationOutput`. """ - return await self._invoke(input, _models.STOP_STACK_SET_OPERATION, [], plugins) + async def stop_stack_set_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopStackSetOperationOutput: + return await self._invoke( + self._select_input(_models.STOP_STACK_SET_OPERATION, args, kwargs), + _models.STOP_STACK_SET_OPERATION, + [], + plugins, + ) + + @_overload + async def test_type( + self, + request: _models.TestTypeInput | _models.TestTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestTypeOutput: ... + + @_overload async def test_type( - self, input: TestTypeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestTypeInputDict], ) -> TestTypeOutput: """ Tests a registered extension to make sure it meets all necessary @@ -2635,8 +4300,6 @@ async def test_type( in the *CloudFormation Command Line Interface (CLI) User Guide*. Args: - input: - An instance of `TestTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2646,10 +4309,34 @@ async def test_type( Returns: An instance of `TestTypeOutput`. """ - return await self._invoke(input, _models.TEST_TYPE, [], plugins) + async def test_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestTypeOutput: + return await self._invoke( + self._select_input(_models.TEST_TYPE, args, kwargs), + _models.TEST_TYPE, + [], + plugins, + ) + + @_overload + async def update_generated_template( + self, + request: _models.UpdateGeneratedTemplateInput + | _models.UpdateGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGeneratedTemplateOutput: ... + + @_overload async def update_generated_template( - self, input: UpdateGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGeneratedTemplateInputDict], ) -> UpdateGeneratedTemplateOutput: """ Updates a generated template. This can be used to change the name, add @@ -2659,8 +4346,6 @@ async def update_generated_template( API action. Args: - input: - An instance of `UpdateGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2670,10 +4355,33 @@ async def update_generated_template( Returns: An instance of `UpdateGeneratedTemplateOutput`. """ - return await self._invoke(input, _models.UPDATE_GENERATED_TEMPLATE, [], plugins) + async def update_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGeneratedTemplateOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GENERATED_TEMPLATE, args, kwargs), + _models.UPDATE_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + async def update_stack( + self, + request: _models.UpdateStackInput | _models.UpdateStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStackOutput: ... + + @_overload async def update_stack( - self, input: UpdateStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStackInputDict], ) -> UpdateStackOutput: """ Updates a stack as specified in the template. After the call completes @@ -2690,8 +4398,6 @@ async def update_stack( in the *CloudFormation User Guide*. Args: - input: - An instance of `UpdateStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2701,10 +4407,34 @@ async def update_stack( Returns: An instance of `UpdateStackOutput`. """ - return await self._invoke(input, _models.UPDATE_STACK, [], plugins) + async def update_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStackOutput: + return await self._invoke( + self._select_input(_models.UPDATE_STACK, args, kwargs), + _models.UPDATE_STACK, + [], + plugins, + ) + + @_overload async def update_stack_instances( - self, input: UpdateStackInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateStackInstancesInput + | _models.UpdateStackInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStackInstancesOutput: ... + + @_overload + async def update_stack_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStackInstancesInputDict], ) -> UpdateStackInstancesOutput: """ Updates the parameter values for stack instances for the specified @@ -2745,8 +4475,6 @@ async def update_stack_instances( target a parent OU that contains all desired child OUs. Args: - input: - An instance of `UpdateStackInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2756,10 +4484,33 @@ async def update_stack_instances( Returns: An instance of `UpdateStackInstancesOutput`. """ - return await self._invoke(input, _models.UPDATE_STACK_INSTANCES, [], plugins) + async def update_stack_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStackInstancesOutput: + return await self._invoke( + self._select_input(_models.UPDATE_STACK_INSTANCES, args, kwargs), + _models.UPDATE_STACK_INSTANCES, + [], + plugins, + ) + + @_overload + async def update_stack_set( + self, + request: _models.UpdateStackSetInput | _models.UpdateStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStackSetOutput: ... + + @_overload async def update_stack_set( - self, input: UpdateStackSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStackSetInputDict], ) -> UpdateStackSetOutput: """ Updates the StackSet and associated stack instances in the specified @@ -2785,8 +4536,6 @@ async def update_stack_set( target a parent OU that contains all desired child OUs. Args: - input: - An instance of `UpdateStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2796,12 +4545,34 @@ async def update_stack_set( Returns: An instance of `UpdateStackSetOutput`. """ - return await self._invoke(input, _models.UPDATE_STACK_SET, [], plugins) + async def update_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStackSetOutput: + return await self._invoke( + self._select_input(_models.UPDATE_STACK_SET, args, kwargs), + _models.UPDATE_STACK_SET, + [], + plugins, + ) + + @_overload + async def update_termination_protection( + self, + request: _models.UpdateTerminationProtectionInput + | _models.UpdateTerminationProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTerminationProtectionOutput: ... + + @_overload async def update_termination_protection( self, - input: UpdateTerminationProtectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTerminationProtectionInputDict], ) -> UpdateTerminationProtectionOutput: """ Updates termination protection for the specified stack. If a user @@ -2817,8 +4588,6 @@ async def update_termination_protection( directly on the nested stack. Args: - input: - An instance of `UpdateTerminationProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2828,12 +4597,33 @@ async def update_termination_protection( Returns: An instance of `UpdateTerminationProtectionOutput`. """ + + async def update_termination_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTerminationProtectionOutput: return await self._invoke( - input, _models.UPDATE_TERMINATION_PROTECTION, [], plugins + self._select_input(_models.UPDATE_TERMINATION_PROTECTION, args, kwargs), + _models.UPDATE_TERMINATION_PROTECTION, + [], + plugins, ) + @_overload + async def validate_template( + self, + request: _models.ValidateTemplateInput | _models.ValidateTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ValidateTemplateOutput: ... + + @_overload async def validate_template( - self, input: ValidateTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ValidateTemplateInputDict], ) -> ValidateTemplateOutput: """ Validates a specified template. CloudFormation first checks if the @@ -2842,8 +4632,6 @@ async def validate_template( returns a template validation error. Args: - input: - An instance of `ValidateTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2853,7 +4641,16 @@ async def validate_template( Returns: An instance of `ValidateTemplateOutput`. """ - return await self._invoke(input, _models.VALIDATE_TEMPLATE, [], plugins) + + async def validate_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ValidateTemplateOutput: + return await self._invoke( + self._select_input(_models.VALIDATE_TEMPLATE, args, kwargs), + _models.VALIDATE_TEMPLATE, + [], + plugins, + ) async def _new_config(self) -> AsyncCloudFormationConfig: return await AsyncCloudFormationConfig.resolve() diff --git a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/client.py b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/client.py index 17265c0ee..09ebbed0a 100644 --- a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/client.py +++ b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,185 +20,95 @@ if TYPE_CHECKING: from .models import ( - ActivateOrganizationsAccessInput, ActivateOrganizationsAccessOutput, - ActivateTypeInput, ActivateTypeOutput, - BatchDescribeTypeConfigurationsInput, BatchDescribeTypeConfigurationsOutput, - CancelUpdateStackInput, CancelUpdateStackOutput, - ContinueUpdateRollbackInput, ContinueUpdateRollbackOutput, - CreateChangeSetInput, CreateChangeSetOutput, - CreateGeneratedTemplateInput, CreateGeneratedTemplateOutput, - CreateStackInput, - CreateStackInstancesInput, CreateStackInstancesOutput, CreateStackOutput, - CreateStackRefactorInput, CreateStackRefactorOutput, - CreateStackSetInput, CreateStackSetOutput, - DeactivateOrganizationsAccessInput, DeactivateOrganizationsAccessOutput, - DeactivateTypeInput, DeactivateTypeOutput, - DeleteChangeSetInput, DeleteChangeSetOutput, - DeleteGeneratedTemplateInput, DeleteGeneratedTemplateOutput, - DeleteStackInput, - DeleteStackInstancesInput, DeleteStackInstancesOutput, DeleteStackOutput, - DeleteStackSetInput, DeleteStackSetOutput, - DeregisterTypeInput, DeregisterTypeOutput, - DescribeAccountLimitsInput, DescribeAccountLimitsOutput, - DescribeChangeSetHooksInput, DescribeChangeSetHooksOutput, - DescribeChangeSetInput, DescribeChangeSetOutput, - DescribeEventsInput, DescribeEventsOutput, - DescribeGeneratedTemplateInput, DescribeGeneratedTemplateOutput, - DescribeOrganizationsAccessInput, DescribeOrganizationsAccessOutput, - DescribePublisherInput, DescribePublisherOutput, - DescribeResourceScanInput, DescribeResourceScanOutput, - DescribeStackDriftDetectionStatusInput, DescribeStackDriftDetectionStatusOutput, - DescribeStackEventsInput, DescribeStackEventsOutput, - DescribeStackInstanceInput, DescribeStackInstanceOutput, - DescribeStackRefactorInput, DescribeStackRefactorOutput, - DescribeStackResourceDriftsInput, DescribeStackResourceDriftsOutput, - DescribeStackResourceInput, DescribeStackResourceOutput, - DescribeStackResourcesInput, DescribeStackResourcesOutput, - DescribeStackSetInput, - DescribeStackSetOperationInput, DescribeStackSetOperationOutput, DescribeStackSetOutput, - DescribeStacksInput, DescribeStacksOutput, - DescribeTypeInput, DescribeTypeOutput, - DescribeTypeRegistrationInput, DescribeTypeRegistrationOutput, - DetectStackDriftInput, DetectStackDriftOutput, - DetectStackResourceDriftInput, DetectStackResourceDriftOutput, - DetectStackSetDriftInput, DetectStackSetDriftOutput, - EstimateTemplateCostInput, EstimateTemplateCostOutput, - ExecuteChangeSetInput, ExecuteChangeSetOutput, - ExecuteStackRefactorInput, ExecuteStackRefactorOutput, - GetGeneratedTemplateInput, GetGeneratedTemplateOutput, - GetHookResultInput, GetHookResultOutput, - GetStackPolicyInput, GetStackPolicyOutput, - GetTemplateInput, GetTemplateOutput, - GetTemplateSummaryInput, GetTemplateSummaryOutput, - ImportStacksToStackSetInput, ImportStacksToStackSetOutput, - ListChangeSetsInput, ListChangeSetsOutput, - ListExportsInput, ListExportsOutput, - ListGeneratedTemplatesInput, ListGeneratedTemplatesOutput, - ListHookResultsInput, ListHookResultsOutput, - ListImportsInput, ListImportsOutput, - ListResourceScanRelatedResourcesInput, ListResourceScanRelatedResourcesOutput, - ListResourceScanResourcesInput, ListResourceScanResourcesOutput, - ListResourceScansInput, ListResourceScansOutput, - ListStackInstanceResourceDriftsInput, ListStackInstanceResourceDriftsOutput, - ListStackInstancesInput, ListStackInstancesOutput, - ListStackRefactorActionsInput, ListStackRefactorActionsOutput, - ListStackRefactorsInput, ListStackRefactorsOutput, - ListStackResourcesInput, ListStackResourcesOutput, - ListStackSetAutoDeploymentTargetsInput, ListStackSetAutoDeploymentTargetsOutput, - ListStackSetOperationResultsInput, ListStackSetOperationResultsOutput, - ListStackSetOperationsInput, ListStackSetOperationsOutput, - ListStackSetsInput, ListStackSetsOutput, - ListStacksInput, ListStacksOutput, - ListTypeRegistrationsInput, ListTypeRegistrationsOutput, - ListTypeVersionsInput, ListTypeVersionsOutput, - ListTypesInput, ListTypesOutput, - PublishTypeInput, PublishTypeOutput, - RecordHandlerProgressInput, RecordHandlerProgressOutput, - RegisterPublisherInput, RegisterPublisherOutput, - RegisterTypeInput, RegisterTypeOutput, - RollbackStackInput, RollbackStackOutput, - SetStackPolicyInput, SetStackPolicyOutput, - SetTypeConfigurationInput, SetTypeConfigurationOutput, - SetTypeDefaultVersionInput, SetTypeDefaultVersionOutput, - SignalResourceInput, SignalResourceOutput, - StartResourceScanInput, StartResourceScanOutput, - StopStackSetOperationInput, StopStackSetOperationOutput, - TestTypeInput, TestTypeOutput, - UpdateGeneratedTemplateInput, UpdateGeneratedTemplateOutput, - UpdateStackInput, - UpdateStackInstancesInput, UpdateStackInstancesOutput, UpdateStackOutput, - UpdateStackSetInput, UpdateStackSetOutput, - UpdateTerminationProtectionInput, UpdateTerminationProtectionOutput, - ValidateTemplateInput, ValidateTemplateOutput, ) @@ -232,12 +142,25 @@ class CloudFormationClient(Client[CloudFormationConfig]): [docs.aws.amazon.com](https://docs.aws.amazon.com/). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def activate_organizations_access( self, - input: ActivateOrganizationsAccessInput | None = None, + request: _models.ActivateOrganizationsAccessInput + | _models.ActivateOrganizationsAccessInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ActivateOrganizationsAccessOutput: ... + + @_overload + def activate_organizations_access( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ActivateOrganizationsAccessInputDict], ) -> ActivateOrganizationsAccessOutput: """ Activate trusted access with Organizations. With trusted access between @@ -245,8 +168,6 @@ def activate_organizations_access( permissions to create and manage StackSets for your organization. Args: - input: - An instance of `ActivateOrganizationsAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -256,12 +177,33 @@ def activate_organizations_access( Returns: An instance of `ActivateOrganizationsAccessOutput`. """ - return self._invoke(input, _models.ACTIVATE_ORGANIZATIONS_ACCESS, [], plugins) + def activate_organizations_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ActivateOrganizationsAccessOutput: + return self._invoke( + self._select_input(_models.ACTIVATE_ORGANIZATIONS_ACCESS, args, kwargs), + _models.ACTIVATE_ORGANIZATIONS_ACCESS, + [], + plugins, + ) + + @_overload + def activate_type( + self, + request: _models.ActivateTypeInput | _models.ActivateTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ActivateTypeOutput: ... + + @_overload def activate_type( self, - input: ActivateTypeInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ActivateTypeInputDict], ) -> ActivateTypeOutput: """ Activates a public third-party extension, such as a resource or module, @@ -288,8 +230,6 @@ def activate_type( Guide](https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/what-is-cloudformation-hooks.html). Args: - input: - An instance of `ActivateTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -299,12 +239,34 @@ def activate_type( Returns: An instance of `ActivateTypeOutput`. """ - return self._invoke(input, _models.ACTIVATE_TYPE, [], plugins) + def activate_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ActivateTypeOutput: + return self._invoke( + self._select_input(_models.ACTIVATE_TYPE, args, kwargs), + _models.ACTIVATE_TYPE, + [], + plugins, + ) + + @_overload + def batch_describe_type_configurations( + self, + request: _models.BatchDescribeTypeConfigurationsInput + | _models.BatchDescribeTypeConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchDescribeTypeConfigurationsOutput: ... + + @_overload def batch_describe_type_configurations( self, - input: BatchDescribeTypeConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDescribeTypeConfigurationsInputDict], ) -> BatchDescribeTypeConfigurationsOutput: """ Returns configuration data for the specified CloudFormation extensions, @@ -316,8 +278,6 @@ def batch_describe_type_configurations( in the *CloudFormation User Guide*. Args: - input: - An instance of `BatchDescribeTypeConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -327,12 +287,35 @@ def batch_describe_type_configurations( Returns: An instance of `BatchDescribeTypeConfigurationsOutput`. """ + + def batch_describe_type_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDescribeTypeConfigurationsOutput: return self._invoke( - input, _models.BATCH_DESCRIBE_TYPE_CONFIGURATIONS, [], plugins + self._select_input( + _models.BATCH_DESCRIBE_TYPE_CONFIGURATIONS, args, kwargs + ), + _models.BATCH_DESCRIBE_TYPE_CONFIGURATIONS, + [], + plugins, ) + @_overload + def cancel_update_stack( + self, + request: _models.CancelUpdateStackInput | _models.CancelUpdateStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelUpdateStackOutput: ... + + @_overload def cancel_update_stack( - self, input: CancelUpdateStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelUpdateStackInputDict], ) -> CancelUpdateStackOutput: """ Cancels an update on the specified stack. If the call completes @@ -343,8 +326,6 @@ def cancel_update_stack( You can cancel only stacks that are in the `UPDATE_IN_PROGRESS` state. Args: - input: - An instance of `CancelUpdateStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -354,10 +335,34 @@ def cancel_update_stack( Returns: An instance of `CancelUpdateStackOutput`. """ - return self._invoke(input, _models.CANCEL_UPDATE_STACK, [], plugins) + def cancel_update_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelUpdateStackOutput: + return self._invoke( + self._select_input(_models.CANCEL_UPDATE_STACK, args, kwargs), + _models.CANCEL_UPDATE_STACK, + [], + plugins, + ) + + @_overload + def continue_update_rollback( + self, + request: _models.ContinueUpdateRollbackInput + | _models.ContinueUpdateRollbackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ContinueUpdateRollbackOutput: ... + + @_overload def continue_update_rollback( - self, input: ContinueUpdateRollbackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ContinueUpdateRollbackInputDict], ) -> ContinueUpdateRollbackOutput: """ Continues rolling back a stack from `UPDATE_ROLLBACK_FAILED` to @@ -382,11 +387,9 @@ def continue_update_rollback( failed](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed). `ForceRollback` and `ResourcesToSkip` are mutually exclusive. For - details, see ContinueUpdateRollbackInput$$ForceRollback. + details, see ContinueUpdateRollbackInput$ForceRollback. Args: - input: - An instance of `ContinueUpdateRollbackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -396,10 +399,33 @@ def continue_update_rollback( Returns: An instance of `ContinueUpdateRollbackOutput`. """ - return self._invoke(input, _models.CONTINUE_UPDATE_ROLLBACK, [], plugins) + def continue_update_rollback( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ContinueUpdateRollbackOutput: + return self._invoke( + self._select_input(_models.CONTINUE_UPDATE_ROLLBACK, args, kwargs), + _models.CONTINUE_UPDATE_ROLLBACK, + [], + plugins, + ) + + @_overload + def create_change_set( + self, + request: _models.CreateChangeSetInput | _models.CreateChangeSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateChangeSetOutput: ... + + @_overload def create_change_set( - self, input: CreateChangeSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateChangeSetInputDict], ) -> CreateChangeSetOutput: """ Creates a list of changes that will be applied to a stack so that you @@ -430,8 +456,6 @@ def create_change_set( `IncludeNestedStacks` to `True`. Args: - input: - An instance of `CreateChangeSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -441,10 +465,34 @@ def create_change_set( Returns: An instance of `CreateChangeSetOutput`. """ - return self._invoke(input, _models.CREATE_CHANGE_SET, [], plugins) + def create_change_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateChangeSetOutput: + return self._invoke( + self._select_input(_models.CREATE_CHANGE_SET, args, kwargs), + _models.CREATE_CHANGE_SET, + [], + plugins, + ) + + @_overload + def create_generated_template( + self, + request: _models.CreateGeneratedTemplateInput + | _models.CreateGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGeneratedTemplateOutput: ... + + @_overload def create_generated_template( - self, input: CreateGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGeneratedTemplateInputDict], ) -> CreateGeneratedTemplateOutput: """ Creates a template from existing resources that are not already managed @@ -452,8 +500,6 @@ def create_generated_template( using the `DescribeGeneratedTemplate` API action. Args: - input: - An instance of `CreateGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -463,10 +509,33 @@ def create_generated_template( Returns: An instance of `CreateGeneratedTemplateOutput`. """ - return self._invoke(input, _models.CREATE_GENERATED_TEMPLATE, [], plugins) + def create_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGeneratedTemplateOutput: + return self._invoke( + self._select_input(_models.CREATE_GENERATED_TEMPLATE, args, kwargs), + _models.CREATE_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + def create_stack( + self, + request: _models.CreateStackInput | _models.CreateStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStackOutput: ... + + @_overload def create_stack( - self, input: CreateStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStackInputDict], ) -> CreateStackOutput: """ Creates a stack as specified in the template. After the call completes @@ -480,8 +549,6 @@ def create_stack( in the *CloudFormation User Guide*. Args: - input: - An instance of `CreateStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -491,10 +558,34 @@ def create_stack( Returns: An instance of `CreateStackOutput`. """ - return self._invoke(input, _models.CREATE_STACK, [], plugins) + def create_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStackOutput: + return self._invoke( + self._select_input(_models.CREATE_STACK, args, kwargs), + _models.CREATE_STACK, + [], + plugins, + ) + + @_overload def create_stack_instances( - self, input: CreateStackInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateStackInstancesInput + | _models.CreateStackInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStackInstancesOutput: ... + + @_overload + def create_stack_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStackInstancesInputDict], ) -> CreateStackInstancesOutput: """ Creates stack instances for the specified accounts, within the specified @@ -517,8 +608,6 @@ def create_stack_instances( target a parent OU that contains all desired child OUs. Args: - input: - An instance of `CreateStackInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -528,18 +617,40 @@ def create_stack_instances( Returns: An instance of `CreateStackInstancesOutput`. """ - return self._invoke(input, _models.CREATE_STACK_INSTANCES, [], plugins) + def create_stack_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStackInstancesOutput: + return self._invoke( + self._select_input(_models.CREATE_STACK_INSTANCES, args, kwargs), + _models.CREATE_STACK_INSTANCES, + [], + plugins, + ) + + @_overload + def create_stack_refactor( + self, + request: _models.CreateStackRefactorInput + | _models.CreateStackRefactorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStackRefactorOutput: ... + + @_overload def create_stack_refactor( - self, input: CreateStackRefactorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStackRefactorInputDict], ) -> CreateStackRefactorOutput: """ Creates a refactor across multiple stacks, with the list of stacks and resources that are affected. Args: - input: - An instance of `CreateStackRefactorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -549,17 +660,38 @@ def create_stack_refactor( Returns: An instance of `CreateStackRefactorOutput`. """ - return self._invoke(input, _models.CREATE_STACK_REFACTOR, [], plugins) + def create_stack_refactor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStackRefactorOutput: + return self._invoke( + self._select_input(_models.CREATE_STACK_REFACTOR, args, kwargs), + _models.CREATE_STACK_REFACTOR, + [], + plugins, + ) + + @_overload + def create_stack_set( + self, + request: _models.CreateStackSetInput | _models.CreateStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStackSetOutput: ... + + @_overload def create_stack_set( - self, input: CreateStackSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStackSetInputDict], ) -> CreateStackSetOutput: """ Creates a StackSet. Args: - input: - An instance of `CreateStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -569,12 +701,34 @@ def create_stack_set( Returns: An instance of `CreateStackSetOutput`. """ - return self._invoke(input, _models.CREATE_STACK_SET, [], plugins) + def create_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStackSetOutput: + return self._invoke( + self._select_input(_models.CREATE_STACK_SET, args, kwargs), + _models.CREATE_STACK_SET, + [], + plugins, + ) + + @_overload + def deactivate_organizations_access( + self, + request: _models.DeactivateOrganizationsAccessInput + | _models.DeactivateOrganizationsAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeactivateOrganizationsAccessOutput: ... + + @_overload def deactivate_organizations_access( self, - input: DeactivateOrganizationsAccessInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeactivateOrganizationsAccessInputDict], ) -> DeactivateOrganizationsAccessOutput: """ Deactivates trusted access with Organizations. If trusted access is @@ -582,8 +736,6 @@ def deactivate_organizations_access( and manage service-managed StackSets for your organization. Args: - input: - An instance of `DeactivateOrganizationsAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -593,12 +745,33 @@ def deactivate_organizations_access( Returns: An instance of `DeactivateOrganizationsAccessOutput`. """ - return self._invoke(input, _models.DEACTIVATE_ORGANIZATIONS_ACCESS, [], plugins) + def deactivate_organizations_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeactivateOrganizationsAccessOutput: + return self._invoke( + self._select_input(_models.DEACTIVATE_ORGANIZATIONS_ACCESS, args, kwargs), + _models.DEACTIVATE_ORGANIZATIONS_ACCESS, + [], + plugins, + ) + + @_overload + def deactivate_type( + self, + request: _models.DeactivateTypeInput | _models.DeactivateTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeactivateTypeOutput: ... + + @_overload def deactivate_type( self, - input: DeactivateTypeInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeactivateTypeInputDict], ) -> DeactivateTypeOutput: """ Deactivates a public third-party extension, such as a resource or @@ -619,8 +792,6 @@ def deactivate_type( [ListTypes](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListTypes.html). Args: - input: - An instance of `DeactivateTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -630,10 +801,33 @@ def deactivate_type( Returns: An instance of `DeactivateTypeOutput`. """ - return self._invoke(input, _models.DEACTIVATE_TYPE, [], plugins) + def deactivate_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeactivateTypeOutput: + return self._invoke( + self._select_input(_models.DEACTIVATE_TYPE, args, kwargs), + _models.DEACTIVATE_TYPE, + [], + plugins, + ) + + @_overload + def delete_change_set( + self, + request: _models.DeleteChangeSetInput | _models.DeleteChangeSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChangeSetOutput: ... + + @_overload def delete_change_set( - self, input: DeleteChangeSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChangeSetInputDict], ) -> DeleteChangeSetOutput: """ Deletes the specified change set. Deleting change sets ensures that no @@ -648,8 +842,6 @@ def delete_change_set( for nested stacks with the status of `REVIEW_IN_PROGRESS`. Args: - input: - An instance of `DeleteChangeSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -659,17 +851,39 @@ def delete_change_set( Returns: An instance of `DeleteChangeSetOutput`. """ - return self._invoke(input, _models.DELETE_CHANGE_SET, [], plugins) + def delete_change_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChangeSetOutput: + return self._invoke( + self._select_input(_models.DELETE_CHANGE_SET, args, kwargs), + _models.DELETE_CHANGE_SET, + [], + plugins, + ) + + @_overload + def delete_generated_template( + self, + request: _models.DeleteGeneratedTemplateInput + | _models.DeleteGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGeneratedTemplateOutput: ... + + @_overload def delete_generated_template( - self, input: DeleteGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGeneratedTemplateInputDict], ) -> DeleteGeneratedTemplateOutput: """ Deleted a generated template. Args: - input: - An instance of `DeleteGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -679,10 +893,33 @@ def delete_generated_template( Returns: An instance of `DeleteGeneratedTemplateOutput`. """ - return self._invoke(input, _models.DELETE_GENERATED_TEMPLATE, [], plugins) + def delete_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGeneratedTemplateOutput: + return self._invoke( + self._select_input(_models.DELETE_GENERATED_TEMPLATE, args, kwargs), + _models.DELETE_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + def delete_stack( + self, + request: _models.DeleteStackInput | _models.DeleteStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStackOutput: ... + + @_overload def delete_stack( - self, input: DeleteStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStackInputDict], ) -> DeleteStackOutput: """ Deletes a specified stack. Once the call completes successfully, stack @@ -695,8 +932,6 @@ def delete_stack( in the *CloudFormation User Guide*. Args: - input: - An instance of `DeleteStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -706,10 +941,34 @@ def delete_stack( Returns: An instance of `DeleteStackOutput`. """ - return self._invoke(input, _models.DELETE_STACK, [], plugins) + def delete_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStackOutput: + return self._invoke( + self._select_input(_models.DELETE_STACK, args, kwargs), + _models.DELETE_STACK, + [], + plugins, + ) + + @_overload + def delete_stack_instances( + self, + request: _models.DeleteStackInstancesInput + | _models.DeleteStackInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStackInstancesOutput: ... + + @_overload def delete_stack_instances( - self, input: DeleteStackInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStackInstancesInputDict], ) -> DeleteStackInstancesOutput: """ Deletes stack instances for the specified accounts, in the specified @@ -729,8 +988,6 @@ def delete_stack_instances( target a parent OU that contains all desired child OUs. Args: - input: - An instance of `DeleteStackInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -740,10 +997,33 @@ def delete_stack_instances( Returns: An instance of `DeleteStackInstancesOutput`. """ - return self._invoke(input, _models.DELETE_STACK_INSTANCES, [], plugins) + def delete_stack_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStackInstancesOutput: + return self._invoke( + self._select_input(_models.DELETE_STACK_INSTANCES, args, kwargs), + _models.DELETE_STACK_INSTANCES, + [], + plugins, + ) + + @_overload + def delete_stack_set( + self, + request: _models.DeleteStackSetInput | _models.DeleteStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStackSetOutput: ... + + @_overload def delete_stack_set( - self, input: DeleteStackSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStackSetInputDict], ) -> DeleteStackSetOutput: """ Deletes a StackSet. Before you can delete a StackSet, all its member @@ -751,8 +1031,6 @@ def delete_stack_set( complete this, see DeleteStackInstances. Args: - input: - An instance of `DeleteStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -762,12 +1040,33 @@ def delete_stack_set( Returns: An instance of `DeleteStackSetOutput`. """ - return self._invoke(input, _models.DELETE_STACK_SET, [], plugins) + def delete_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStackSetOutput: + return self._invoke( + self._select_input(_models.DELETE_STACK_SET, args, kwargs), + _models.DELETE_STACK_SET, + [], + plugins, + ) + + @_overload + def deregister_type( + self, + request: _models.DeregisterTypeInput | _models.DeregisterTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterTypeOutput: ... + + @_overload def deregister_type( self, - input: DeregisterTypeInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterTypeInputDict], ) -> DeregisterTypeOutput: """ Marks an extension or extension version as `DEPRECATED` in the @@ -794,8 +1093,6 @@ def deregister_type( in the *CloudFormation User Guide*. Args: - input: - An instance of `DeregisterTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -805,12 +1102,34 @@ def deregister_type( Returns: An instance of `DeregisterTypeOutput`. """ - return self._invoke(input, _models.DEREGISTER_TYPE, [], plugins) + def deregister_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterTypeOutput: + return self._invoke( + self._select_input(_models.DEREGISTER_TYPE, args, kwargs), + _models.DEREGISTER_TYPE, + [], + plugins, + ) + + @_overload + def describe_account_limits( + self, + request: _models.DescribeAccountLimitsInput + | _models.DescribeAccountLimitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountLimitsOutput: ... + + @_overload def describe_account_limits( self, - input: DescribeAccountLimitsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountLimitsInputDict], ) -> DescribeAccountLimitsOutput: """ Retrieves your account's CloudFormation limits, such as the maximum @@ -820,8 +1139,6 @@ def describe_account_limits( in the *CloudFormation User Guide*. Args: - input: - An instance of `DescribeAccountLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -831,10 +1148,33 @@ def describe_account_limits( Returns: An instance of `DescribeAccountLimitsOutput`. """ - return self._invoke(input, _models.DESCRIBE_ACCOUNT_LIMITS, [], plugins) + def describe_account_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountLimitsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ACCOUNT_LIMITS, args, kwargs), + _models.DESCRIBE_ACCOUNT_LIMITS, + [], + plugins, + ) + + @_overload + def describe_change_set( + self, + request: _models.DescribeChangeSetInput | _models.DescribeChangeSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeChangeSetOutput: ... + + @_overload def describe_change_set( - self, input: DescribeChangeSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeChangeSetInputDict], ) -> DescribeChangeSetOutput: """ Returns the inputs for the change set and a list of changes that @@ -844,8 +1184,6 @@ def describe_change_set( in the *CloudFormation User Guide*. Args: - input: - An instance of `DescribeChangeSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -855,18 +1193,40 @@ def describe_change_set( Returns: An instance of `DescribeChangeSetOutput`. """ - return self._invoke(input, _models.DESCRIBE_CHANGE_SET, [], plugins) + def describe_change_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeChangeSetOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CHANGE_SET, args, kwargs), + _models.DESCRIBE_CHANGE_SET, + [], + plugins, + ) + + @_overload + def describe_change_set_hooks( + self, + request: _models.DescribeChangeSetHooksInput + | _models.DescribeChangeSetHooksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeChangeSetHooksOutput: ... + + @_overload def describe_change_set_hooks( - self, input: DescribeChangeSetHooksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeChangeSetHooksInputDict], ) -> DescribeChangeSetHooksOutput: """ Returns Hook-related information for the change set and a list of changes that CloudFormation makes when you run the change set. Args: - input: - An instance of `DescribeChangeSetHooksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -876,12 +1236,33 @@ def describe_change_set_hooks( Returns: An instance of `DescribeChangeSetHooksOutput`. """ - return self._invoke(input, _models.DESCRIBE_CHANGE_SET_HOOKS, [], plugins) + def describe_change_set_hooks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeChangeSetHooksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CHANGE_SET_HOOKS, args, kwargs), + _models.DESCRIBE_CHANGE_SET_HOOKS, + [], + plugins, + ) + + @_overload + def describe_events( + self, + request: _models.DescribeEventsInput | _models.DescribeEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEventsOutput: ... + + @_overload def describe_events( self, - input: DescribeEventsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEventsInputDict], ) -> DescribeEventsOutput: """ Returns CloudFormation events based on flexible query criteria. Groups @@ -911,8 +1292,6 @@ def describe_events( as input. Args: - input: - An instance of `DescribeEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -922,10 +1301,34 @@ def describe_events( Returns: An instance of `DescribeEventsOutput`. """ - return self._invoke(input, _models.DESCRIBE_EVENTS, [], plugins) + def describe_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEventsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_EVENTS, args, kwargs), + _models.DESCRIBE_EVENTS, + [], + plugins, + ) + + @_overload + def describe_generated_template( + self, + request: _models.DescribeGeneratedTemplateInput + | _models.DescribeGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGeneratedTemplateOutput: ... + + @_overload def describe_generated_template( - self, input: DescribeGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGeneratedTemplateInputDict], ) -> DescribeGeneratedTemplateOutput: """ Describes a generated template. The output includes details about the @@ -934,8 +1337,6 @@ def describe_generated_template( template started with an `UpdateGeneratedTemplate` API action. Args: - input: - An instance of `DescribeGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -945,12 +1346,34 @@ def describe_generated_template( Returns: An instance of `DescribeGeneratedTemplateOutput`. """ - return self._invoke(input, _models.DESCRIBE_GENERATED_TEMPLATE, [], plugins) + def describe_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGeneratedTemplateOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_GENERATED_TEMPLATE, args, kwargs), + _models.DESCRIBE_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + def describe_organizations_access( + self, + request: _models.DescribeOrganizationsAccessInput + | _models.DescribeOrganizationsAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOrganizationsAccessOutput: ... + + @_overload def describe_organizations_access( self, - input: DescribeOrganizationsAccessInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOrganizationsAccessInputDict], ) -> DescribeOrganizationsAccessOutput: """ Retrieves information about the account's `OrganizationAccess` status. @@ -959,8 +1382,6 @@ def describe_organizations_access( called without the `CallAs` parameter by the management account. Args: - input: - An instance of `DescribeOrganizationsAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -970,13 +1391,34 @@ def describe_organizations_access( Returns: An instance of `DescribeOrganizationsAccessOutput`. """ - return self._invoke(input, _models.DESCRIBE_ORGANIZATIONS_ACCESS, [], plugins) + def describe_organizations_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOrganizationsAccessOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ORGANIZATIONS_ACCESS, args, kwargs), + _models.DESCRIBE_ORGANIZATIONS_ACCESS, + [], + plugins, + ) + + @_overload def describe_publisher( self, - input: DescribePublisherInput | None = None, + request: _models.DescribePublisherInput | _models.DescribePublisherInputDict, + /, + *, plugins: list[Plugin] | None = None, - ) -> DescribePublisherOutput: + ) -> DescribePublisherOutput: ... + + @_overload + def describe_publisher( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePublisherInputDict], + ) -> DescribePublisherOutput: """ Returns information about a CloudFormation extension publisher. @@ -993,8 +1435,6 @@ def describe_publisher( in the *CloudFormation Command Line Interface (CLI) User Guide* Args: - input: - An instance of `DescribePublisherInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1004,17 +1444,39 @@ def describe_publisher( Returns: An instance of `DescribePublisherOutput`. """ - return self._invoke(input, _models.DESCRIBE_PUBLISHER, [], plugins) + def describe_publisher( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePublisherOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_PUBLISHER, args, kwargs), + _models.DESCRIBE_PUBLISHER, + [], + plugins, + ) + + @_overload def describe_resource_scan( - self, input: DescribeResourceScanInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeResourceScanInput + | _models.DescribeResourceScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeResourceScanOutput: ... + + @_overload + def describe_resource_scan( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeResourceScanInputDict], ) -> DescribeResourceScanOutput: """ Describes details of a resource scan. Args: - input: - An instance of `DescribeResourceScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1024,12 +1486,34 @@ def describe_resource_scan( Returns: An instance of `DescribeResourceScanOutput`. """ - return self._invoke(input, _models.DESCRIBE_RESOURCE_SCAN, [], plugins) + def describe_resource_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeResourceScanOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_RESOURCE_SCAN, args, kwargs), + _models.DESCRIBE_RESOURCE_SCAN, + [], + plugins, + ) + + @_overload + def describe_stack_drift_detection_status( + self, + request: _models.DescribeStackDriftDetectionStatusInput + | _models.DescribeStackDriftDetectionStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackDriftDetectionStatusOutput: ... + + @_overload def describe_stack_drift_detection_status( self, - input: DescribeStackDriftDetectionStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackDriftDetectionStatusInputDict], ) -> DescribeStackDriftDetectionStatusOutput: """ Returns information about a stack drift detection operation. A stack @@ -1050,8 +1534,6 @@ def describe_stack_drift_detection_status( information about the stack and its resources. Args: - input: - An instance of `DescribeStackDriftDetectionStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1061,12 +1543,36 @@ def describe_stack_drift_detection_status( Returns: An instance of `DescribeStackDriftDetectionStatusOutput`. """ + + def describe_stack_drift_detection_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackDriftDetectionStatusOutput: return self._invoke( - input, _models.DESCRIBE_STACK_DRIFT_DETECTION_STATUS, [], plugins + self._select_input( + _models.DESCRIBE_STACK_DRIFT_DETECTION_STATUS, args, kwargs + ), + _models.DESCRIBE_STACK_DRIFT_DETECTION_STATUS, + [], + plugins, ) + @_overload + def describe_stack_events( + self, + request: _models.DescribeStackEventsInput + | _models.DescribeStackEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackEventsOutput: ... + + @_overload def describe_stack_events( - self, input: DescribeStackEventsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackEventsInputDict], ) -> DescribeStackEventsOutput: """ Returns all stack related events for a specified stack in reverse @@ -1080,8 +1586,6 @@ def describe_stack_events( deleted by specifying the unique stack identifier (stack ID). Args: - input: - An instance of `DescribeStackEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1091,10 +1595,34 @@ def describe_stack_events( Returns: An instance of `DescribeStackEventsOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACK_EVENTS, [], plugins) + def describe_stack_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackEventsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACK_EVENTS, args, kwargs), + _models.DESCRIBE_STACK_EVENTS, + [], + plugins, + ) + + @_overload + def describe_stack_instance( + self, + request: _models.DescribeStackInstanceInput + | _models.DescribeStackInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackInstanceOutput: ... + + @_overload def describe_stack_instance( - self, input: DescribeStackInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackInstanceInputDict], ) -> DescribeStackInstanceOutput: """ Returns the stack instance that's associated with the specified @@ -1104,8 +1632,6 @@ def describe_stack_instance( StackSet, use ListStackInstances. Args: - input: - An instance of `DescribeStackInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1115,17 +1641,39 @@ def describe_stack_instance( Returns: An instance of `DescribeStackInstanceOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACK_INSTANCE, [], plugins) + def describe_stack_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackInstanceOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACK_INSTANCE, args, kwargs), + _models.DESCRIBE_STACK_INSTANCE, + [], + plugins, + ) + + @_overload def describe_stack_refactor( - self, input: DescribeStackRefactorInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackRefactorInput + | _models.DescribeStackRefactorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackRefactorOutput: ... + + @_overload + def describe_stack_refactor( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackRefactorInputDict], ) -> DescribeStackRefactorOutput: """ Describes the stack refactor status. Args: - input: - An instance of `DescribeStackRefactorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1135,10 +1683,34 @@ def describe_stack_refactor( Returns: An instance of `DescribeStackRefactorOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACK_REFACTOR, [], plugins) + def describe_stack_refactor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackRefactorOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACK_REFACTOR, args, kwargs), + _models.DESCRIBE_STACK_REFACTOR, + [], + plugins, + ) + + @_overload def describe_stack_resource( - self, input: DescribeStackResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackResourceInput + | _models.DescribeStackResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackResourceOutput: ... + + @_overload + def describe_stack_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackResourceInputDict], ) -> DescribeStackResourceOutput: """ Returns a description of the specified resource in the specified stack. @@ -1147,8 +1719,6 @@ def describe_stack_resource( for up to 90 days after the stack has been deleted. Args: - input: - An instance of `DescribeStackResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1158,12 +1728,34 @@ def describe_stack_resource( Returns: An instance of `DescribeStackResourceOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACK_RESOURCE, [], plugins) + def describe_stack_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackResourceOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACK_RESOURCE, args, kwargs), + _models.DESCRIBE_STACK_RESOURCE, + [], + plugins, + ) + + @_overload + def describe_stack_resource_drifts( + self, + request: _models.DescribeStackResourceDriftsInput + | _models.DescribeStackResourceDriftsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackResourceDriftsOutput: ... + + @_overload def describe_stack_resource_drifts( self, - input: DescribeStackResourceDriftsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackResourceDriftsInputDict], ) -> DescribeStackResourceDriftsOutput: """ Returns drift information for the resources that have been checked for @@ -1184,8 +1776,6 @@ def describe_stack_resource_drifts( stack. Args: - input: - An instance of `DescribeStackResourceDriftsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1195,12 +1785,34 @@ def describe_stack_resource_drifts( Returns: An instance of `DescribeStackResourceDriftsOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACK_RESOURCE_DRIFTS, [], plugins) + def describe_stack_resource_drifts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackResourceDriftsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACK_RESOURCE_DRIFTS, args, kwargs), + _models.DESCRIBE_STACK_RESOURCE_DRIFTS, + [], + plugins, + ) + + @_overload def describe_stack_resources( self, - input: DescribeStackResourcesInput | None = None, + request: _models.DescribeStackResourcesInput + | _models.DescribeStackResourcesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeStackResourcesOutput: ... + + @_overload + def describe_stack_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackResourcesInputDict], ) -> DescribeStackResourcesOutput: """ Returns Amazon Web Services resource descriptions for running and @@ -1228,8 +1840,6 @@ def describe_stack_resources( `PhysicalResourceId` in the same request. Args: - input: - An instance of `DescribeStackResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1239,12 +1849,33 @@ def describe_stack_resources( Returns: An instance of `DescribeStackResourcesOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACK_RESOURCES, [], plugins) + def describe_stack_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackResourcesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACK_RESOURCES, args, kwargs), + _models.DESCRIBE_STACK_RESOURCES, + [], + plugins, + ) + + @_overload + def describe_stacks( + self, + request: _models.DescribeStacksInput | _models.DescribeStacksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStacksOutput: ... + + @_overload def describe_stacks( self, - input: DescribeStacksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStacksInputDict], ) -> DescribeStacksOutput: """ Returns the description for the specified stack; if no stack name was @@ -1258,8 +1889,6 @@ def describe_stacks( If the stack doesn't exist, a `ValidationError` is returned. Args: - input: - An instance of `DescribeStacksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1269,10 +1898,33 @@ def describe_stacks( Returns: An instance of `DescribeStacksOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACKS, [], plugins) + def describe_stacks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStacksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACKS, args, kwargs), + _models.DESCRIBE_STACKS, + [], + plugins, + ) + + @_overload + def describe_stack_set( + self, + request: _models.DescribeStackSetInput | _models.DescribeStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackSetOutput: ... + + @_overload def describe_stack_set( - self, input: DescribeStackSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackSetInputDict], ) -> DescribeStackSetOutput: """ Returns the description of the specified StackSet. @@ -1282,8 +1934,6 @@ def describe_stack_set( return the most up-to-date data. Args: - input: - An instance of `DescribeStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1293,10 +1943,34 @@ def describe_stack_set( Returns: An instance of `DescribeStackSetOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACK_SET, [], plugins) + def describe_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackSetOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACK_SET, args, kwargs), + _models.DESCRIBE_STACK_SET, + [], + plugins, + ) + + @_overload def describe_stack_set_operation( - self, input: DescribeStackSetOperationInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStackSetOperationInput + | _models.DescribeStackSetOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStackSetOperationOutput: ... + + @_overload + def describe_stack_set_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStackSetOperationInputDict], ) -> DescribeStackSetOperationOutput: """ Returns the description of the specified StackSet operation. @@ -1306,8 +1980,6 @@ def describe_stack_set_operation( return the most up-to-date data. Args: - input: - An instance of `DescribeStackSetOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1317,12 +1989,33 @@ def describe_stack_set_operation( Returns: An instance of `DescribeStackSetOperationOutput`. """ - return self._invoke(input, _models.DESCRIBE_STACK_SET_OPERATION, [], plugins) + def describe_stack_set_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStackSetOperationOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STACK_SET_OPERATION, args, kwargs), + _models.DESCRIBE_STACK_SET_OPERATION, + [], + plugins, + ) + + @_overload + def describe_type( + self, + request: _models.DescribeTypeInput | _models.DescribeTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTypeOutput: ... + + @_overload def describe_type( self, - input: DescribeTypeInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTypeInputDict], ) -> DescribeTypeOutput: """ Returns detailed information about an extension from the CloudFormation @@ -1338,8 +2031,6 @@ def describe_type( in the *CloudFormation User Guide*. Args: - input: - An instance of `DescribeTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1349,10 +2040,34 @@ def describe_type( Returns: An instance of `DescribeTypeOutput`. """ - return self._invoke(input, _models.DESCRIBE_TYPE, [], plugins) + def describe_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTypeOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TYPE, args, kwargs), + _models.DESCRIBE_TYPE, + [], + plugins, + ) + + @_overload def describe_type_registration( - self, input: DescribeTypeRegistrationInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeTypeRegistrationInput + | _models.DescribeTypeRegistrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTypeRegistrationOutput: ... + + @_overload + def describe_type_registration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTypeRegistrationInputDict], ) -> DescribeTypeRegistrationOutput: """ Returns information about an extension's registration, including its @@ -1366,8 +2081,6 @@ def describe_type_registration( detailed information about an extension. Args: - input: - An instance of `DescribeTypeRegistrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1377,10 +2090,33 @@ def describe_type_registration( Returns: An instance of `DescribeTypeRegistrationOutput`. """ - return self._invoke(input, _models.DESCRIBE_TYPE_REGISTRATION, [], plugins) + def describe_type_registration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTypeRegistrationOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TYPE_REGISTRATION, args, kwargs), + _models.DESCRIBE_TYPE_REGISTRATION, + [], + plugins, + ) + + @_overload + def detect_stack_drift( + self, + request: _models.DetectStackDriftInput | _models.DetectStackDriftInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetectStackDriftOutput: ... + + @_overload def detect_stack_drift( - self, input: DetectStackDriftInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetectStackDriftInputDict], ) -> DetectStackDriftOutput: """ Detects whether a stack's actual configuration differs, or has @@ -1415,8 +2151,6 @@ def detect_stack_drift( directly on the nested stack itself. Args: - input: - An instance of `DetectStackDriftInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1426,10 +2160,34 @@ def detect_stack_drift( Returns: An instance of `DetectStackDriftOutput`. """ - return self._invoke(input, _models.DETECT_STACK_DRIFT, [], plugins) + def detect_stack_drift( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetectStackDriftOutput: + return self._invoke( + self._select_input(_models.DETECT_STACK_DRIFT, args, kwargs), + _models.DETECT_STACK_DRIFT, + [], + plugins, + ) + + @_overload def detect_stack_resource_drift( - self, input: DetectStackResourceDriftInput, plugins: list[Plugin] | None = None + self, + request: _models.DetectStackResourceDriftInput + | _models.DetectStackResourceDriftInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetectStackResourceDriftOutput: ... + + @_overload + def detect_stack_resource_drift( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetectStackResourceDriftInputDict], ) -> DetectStackResourceDriftOutput: """ Returns information about whether a resource's actual configuration @@ -1452,8 +2210,6 @@ def detect_stack_resource_drift( detection](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html). Args: - input: - An instance of `DetectStackResourceDriftInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1463,10 +2219,34 @@ def detect_stack_resource_drift( Returns: An instance of `DetectStackResourceDriftOutput`. """ - return self._invoke(input, _models.DETECT_STACK_RESOURCE_DRIFT, [], plugins) + def detect_stack_resource_drift( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetectStackResourceDriftOutput: + return self._invoke( + self._select_input(_models.DETECT_STACK_RESOURCE_DRIFT, args, kwargs), + _models.DETECT_STACK_RESOURCE_DRIFT, + [], + plugins, + ) + + @_overload def detect_stack_set_drift( - self, input: DetectStackSetDriftInput, plugins: list[Plugin] | None = None + self, + request: _models.DetectStackSetDriftInput + | _models.DetectStackSetDriftInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetectStackSetDriftOutput: ... + + @_overload + def detect_stack_set_drift( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetectStackSetDriftInputDict], ) -> DetectStackSetDriftOutput: """ Detect drift on a StackSet. When CloudFormation performs drift detection @@ -1504,8 +2284,6 @@ def detect_stack_set_drift( To stop a drift detection StackSet operation, use StopStackSetOperation. Args: - input: - An instance of `DetectStackSetDriftInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1515,12 +2293,34 @@ def detect_stack_set_drift( Returns: An instance of `DetectStackSetDriftOutput`. """ - return self._invoke(input, _models.DETECT_STACK_SET_DRIFT, [], plugins) + def detect_stack_set_drift( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetectStackSetDriftOutput: + return self._invoke( + self._select_input(_models.DETECT_STACK_SET_DRIFT, args, kwargs), + _models.DETECT_STACK_SET_DRIFT, + [], + plugins, + ) + + @_overload + def estimate_template_cost( + self, + request: _models.EstimateTemplateCostInput + | _models.EstimateTemplateCostInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EstimateTemplateCostOutput: ... + + @_overload def estimate_template_cost( self, - input: EstimateTemplateCostInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EstimateTemplateCostInputDict], ) -> EstimateTemplateCostOutput: """ Returns the estimated monthly cost of a template. The return value is an @@ -1528,8 +2328,6 @@ def estimate_template_cost( that describes the resources required to run the template. Args: - input: - An instance of `EstimateTemplateCostInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1539,10 +2337,33 @@ def estimate_template_cost( Returns: An instance of `EstimateTemplateCostOutput`. """ - return self._invoke(input, _models.ESTIMATE_TEMPLATE_COST, [], plugins) + def estimate_template_cost( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EstimateTemplateCostOutput: + return self._invoke( + self._select_input(_models.ESTIMATE_TEMPLATE_COST, args, kwargs), + _models.ESTIMATE_TEMPLATE_COST, + [], + plugins, + ) + + @_overload + def execute_change_set( + self, + request: _models.ExecuteChangeSetInput | _models.ExecuteChangeSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteChangeSetOutput: ... + + @_overload def execute_change_set( - self, input: ExecuteChangeSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteChangeSetInputDict], ) -> ExecuteChangeSetOutput: """ Updates a stack using the input information that was provided when the @@ -1562,8 +2383,6 @@ def execute_change_set( `IncludeNestedStacks` must have been set to `True`. Args: - input: - An instance of `ExecuteChangeSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1573,17 +2392,39 @@ def execute_change_set( Returns: An instance of `ExecuteChangeSetOutput`. """ - return self._invoke(input, _models.EXECUTE_CHANGE_SET, [], plugins) + def execute_change_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteChangeSetOutput: + return self._invoke( + self._select_input(_models.EXECUTE_CHANGE_SET, args, kwargs), + _models.EXECUTE_CHANGE_SET, + [], + plugins, + ) + + @_overload def execute_stack_refactor( - self, input: ExecuteStackRefactorInput, plugins: list[Plugin] | None = None + self, + request: _models.ExecuteStackRefactorInput + | _models.ExecuteStackRefactorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteStackRefactorOutput: ... + + @_overload + def execute_stack_refactor( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteStackRefactorInputDict], ) -> ExecuteStackRefactorOutput: """ Executes the stack refactor operation. Args: - input: - An instance of `ExecuteStackRefactorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1593,10 +2434,34 @@ def execute_stack_refactor( Returns: An instance of `ExecuteStackRefactorOutput`. """ - return self._invoke(input, _models.EXECUTE_STACK_REFACTOR, [], plugins) + def execute_stack_refactor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteStackRefactorOutput: + return self._invoke( + self._select_input(_models.EXECUTE_STACK_REFACTOR, args, kwargs), + _models.EXECUTE_STACK_REFACTOR, + [], + plugins, + ) + + @_overload def get_generated_template( - self, input: GetGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + request: _models.GetGeneratedTemplateInput + | _models.GetGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGeneratedTemplateOutput: ... + + @_overload + def get_generated_template( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGeneratedTemplateInputDict], ) -> GetGeneratedTemplateOutput: """ Retrieves a generated template. If the template is in an `InProgress` or @@ -1605,8 +2470,6 @@ def get_generated_template( yet been in a `Complete` status then an empty template will be returned. Args: - input: - An instance of `GetGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1616,12 +2479,33 @@ def get_generated_template( Returns: An instance of `GetGeneratedTemplateOutput`. """ - return self._invoke(input, _models.GET_GENERATED_TEMPLATE, [], plugins) + def get_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGeneratedTemplateOutput: + return self._invoke( + self._select_input(_models.GET_GENERATED_TEMPLATE, args, kwargs), + _models.GET_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + def get_hook_result( + self, + request: _models.GetHookResultInput | _models.GetHookResultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHookResultOutput: ... + + @_overload def get_hook_result( self, - input: GetHookResultInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHookResultInputDict], ) -> GetHookResultOutput: """ Retrieves detailed information and remediation guidance for a Hook @@ -1635,8 +2519,6 @@ def get_hook_result( in the *CloudFormation Hooks User Guide*. Args: - input: - An instance of `GetHookResultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1646,18 +2528,39 @@ def get_hook_result( Returns: An instance of `GetHookResultOutput`. """ - return self._invoke(input, _models.GET_HOOK_RESULT, [], plugins) + def get_hook_result( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHookResultOutput: + return self._invoke( + self._select_input(_models.GET_HOOK_RESULT, args, kwargs), + _models.GET_HOOK_RESULT, + [], + plugins, + ) + + @_overload def get_stack_policy( - self, input: GetStackPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetStackPolicyInput | _models.GetStackPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStackPolicyOutput: ... + + @_overload + def get_stack_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStackPolicyInputDict], ) -> GetStackPolicyOutput: """ Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned. Args: - input: - An instance of `GetStackPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1667,10 +2570,33 @@ def get_stack_policy( Returns: An instance of `GetStackPolicyOutput`. """ - return self._invoke(input, _models.GET_STACK_POLICY, [], plugins) + def get_stack_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStackPolicyOutput: + return self._invoke( + self._select_input(_models.GET_STACK_POLICY, args, kwargs), + _models.GET_STACK_POLICY, + [], + plugins, + ) + + @_overload def get_template( - self, input: GetTemplateInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.GetTemplateInput | _models.GetTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTemplateOutput: ... + + @_overload + def get_template( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTemplateInputDict], ) -> GetTemplateOutput: """ Returns the template body for a specified stack. You can get the @@ -1683,8 +2609,6 @@ def get_template( If the template doesn't exist, a `ValidationError` is returned. Args: - input: - An instance of `GetTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1694,12 +2618,33 @@ def get_template( Returns: An instance of `GetTemplateOutput`. """ - return self._invoke(input, _models.GET_TEMPLATE, [], plugins) + def get_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTemplateOutput: + return self._invoke( + self._select_input(_models.GET_TEMPLATE, args, kwargs), + _models.GET_TEMPLATE, + [], + plugins, + ) + + @_overload + def get_template_summary( + self, + request: _models.GetTemplateSummaryInput | _models.GetTemplateSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTemplateSummaryOutput: ... + + @_overload def get_template_summary( self, - input: GetTemplateSummaryInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTemplateSummaryInputDict], ) -> GetTemplateSummaryOutput: """ Returns information about a new or existing template. The @@ -1716,8 +2661,6 @@ def get_template_summary( template doesn't exist, a `ValidationError` is returned. Args: - input: - An instance of `GetTemplateSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1727,10 +2670,34 @@ def get_template_summary( Returns: An instance of `GetTemplateSummaryOutput`. """ - return self._invoke(input, _models.GET_TEMPLATE_SUMMARY, [], plugins) + def get_template_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTemplateSummaryOutput: + return self._invoke( + self._select_input(_models.GET_TEMPLATE_SUMMARY, args, kwargs), + _models.GET_TEMPLATE_SUMMARY, + [], + plugins, + ) + + @_overload def import_stacks_to_stack_set( - self, input: ImportStacksToStackSetInput, plugins: list[Plugin] | None = None + self, + request: _models.ImportStacksToStackSetInput + | _models.ImportStacksToStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportStacksToStackSetOutput: ... + + @_overload + def import_stacks_to_stack_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportStacksToStackSetInputDict], ) -> ImportStacksToStackSetOutput: """ Import existing stacks into a new StackSets. Use the stack import @@ -1739,8 +2706,6 @@ def import_stacks_to_stack_set( Region, by specifying the stack ID of the stack you intend to import. Args: - input: - An instance of `ImportStacksToStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1750,10 +2715,33 @@ def import_stacks_to_stack_set( Returns: An instance of `ImportStacksToStackSetOutput`. """ - return self._invoke(input, _models.IMPORT_STACKS_TO_STACK_SET, [], plugins) + def import_stacks_to_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportStacksToStackSetOutput: + return self._invoke( + self._select_input(_models.IMPORT_STACKS_TO_STACK_SET, args, kwargs), + _models.IMPORT_STACKS_TO_STACK_SET, + [], + plugins, + ) + + @_overload + def list_change_sets( + self, + request: _models.ListChangeSetsInput | _models.ListChangeSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListChangeSetsOutput: ... + + @_overload def list_change_sets( - self, input: ListChangeSetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListChangeSetsInputDict], ) -> ListChangeSetsOutput: """ Returns the ID and status of each active change set for a stack. For @@ -1761,8 +2749,6 @@ def list_change_sets( `CREATE_IN_PROGRESS` or `CREATE_PENDING` state. Args: - input: - An instance of `ListChangeSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1772,10 +2758,33 @@ def list_change_sets( Returns: An instance of `ListChangeSetsOutput`. """ - return self._invoke(input, _models.LIST_CHANGE_SETS, [], plugins) + def list_change_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListChangeSetsOutput: + return self._invoke( + self._select_input(_models.LIST_CHANGE_SETS, args, kwargs), + _models.LIST_CHANGE_SETS, + [], + plugins, + ) + + @_overload + def list_exports( + self, + request: _models.ListExportsInput | _models.ListExportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListExportsOutput: ... + + @_overload def list_exports( - self, input: ListExportsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListExportsInputDict], ) -> ListExportsOutput: """ Lists all exported output values in the account and Region in which you @@ -1789,8 +2798,6 @@ def list_exports( stack](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html). Args: - input: - An instance of `ListExportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1800,19 +2807,39 @@ def list_exports( Returns: An instance of `ListExportsOutput`. """ - return self._invoke(input, _models.LIST_EXPORTS, [], plugins) + def list_exports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListExportsOutput: + return self._invoke( + self._select_input(_models.LIST_EXPORTS, args, kwargs), + _models.LIST_EXPORTS, + [], + plugins, + ) + + @_overload + def list_generated_templates( + self, + request: _models.ListGeneratedTemplatesInput + | _models.ListGeneratedTemplatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGeneratedTemplatesOutput: ... + + @_overload def list_generated_templates( self, - input: ListGeneratedTemplatesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGeneratedTemplatesInputDict], ) -> ListGeneratedTemplatesOutput: """ Lists your generated templates in this Region. Args: - input: - An instance of `ListGeneratedTemplatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1822,12 +2849,33 @@ def list_generated_templates( Returns: An instance of `ListGeneratedTemplatesOutput`. """ - return self._invoke(input, _models.LIST_GENERATED_TEMPLATES, [], plugins) + def list_generated_templates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGeneratedTemplatesOutput: + return self._invoke( + self._select_input(_models.LIST_GENERATED_TEMPLATES, args, kwargs), + _models.LIST_GENERATED_TEMPLATES, + [], + plugins, + ) + + @_overload + def list_hook_results( + self, + request: _models.ListHookResultsInput | _models.ListHookResultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListHookResultsOutput: ... + + @_overload def list_hook_results( self, - input: ListHookResultsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListHookResultsInputDict], ) -> ListHookResultsOutput: """ Returns summaries of invoked Hooks. For more information, see [View @@ -1848,8 +2896,6 @@ def list_hook_results( invocation target. Args: - input: - An instance of `ListHookResultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1859,10 +2905,33 @@ def list_hook_results( Returns: An instance of `ListHookResultsOutput`. """ - return self._invoke(input, _models.LIST_HOOK_RESULTS, [], plugins) + def list_hook_results( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListHookResultsOutput: + return self._invoke( + self._select_input(_models.LIST_HOOK_RESULTS, args, kwargs), + _models.LIST_HOOK_RESULTS, + [], + plugins, + ) + + @_overload def list_imports( - self, input: ListImportsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListImportsInput | _models.ListImportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportsOutput: ... + + @_overload + def list_imports( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportsInputDict], ) -> ListImportsOutput: """ Lists all stacks that are importing an exported output value. To modify @@ -1875,8 +2944,6 @@ def list_imports( function. Args: - input: - An instance of `ListImportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1886,12 +2953,34 @@ def list_imports( Returns: An instance of `ListImportsOutput`. """ - return self._invoke(input, _models.LIST_IMPORTS, [], plugins) + def list_imports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportsOutput: + return self._invoke( + self._select_input(_models.LIST_IMPORTS, args, kwargs), + _models.LIST_IMPORTS, + [], + plugins, + ) + + @_overload + def list_resource_scan_related_resources( + self, + request: _models.ListResourceScanRelatedResourcesInput + | _models.ListResourceScanRelatedResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResourceScanRelatedResourcesOutput: ... + + @_overload def list_resource_scan_related_resources( self, - input: ListResourceScanRelatedResourcesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourceScanRelatedResourcesInputDict], ) -> ListResourceScanRelatedResourcesOutput: """ Lists the related resources for a list of resources from a resource @@ -1899,8 +2988,6 @@ def list_resource_scan_related_resources( managed by CloudFormation. Args: - input: - An instance of `ListResourceScanRelatedResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1910,12 +2997,36 @@ def list_resource_scan_related_resources( Returns: An instance of `ListResourceScanRelatedResourcesOutput`. """ + + def list_resource_scan_related_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourceScanRelatedResourcesOutput: return self._invoke( - input, _models.LIST_RESOURCE_SCAN_RELATED_RESOURCES, [], plugins + self._select_input( + _models.LIST_RESOURCE_SCAN_RELATED_RESOURCES, args, kwargs + ), + _models.LIST_RESOURCE_SCAN_RELATED_RESOURCES, + [], + plugins, ) + @_overload def list_resource_scan_resources( - self, input: ListResourceScanResourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListResourceScanResourcesInput + | _models.ListResourceScanResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResourceScanResourcesOutput: ... + + @_overload + def list_resource_scan_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourceScanResourcesInputDict], ) -> ListResourceScanResourcesOutput: """ Lists the resources from a resource scan. The results can be filtered by @@ -1925,8 +3036,6 @@ def list_resource_scan_resources( CloudFormation. Args: - input: - An instance of `ListResourceScanResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1936,20 +3045,39 @@ def list_resource_scan_resources( Returns: An instance of `ListResourceScanResourcesOutput`. """ - return self._invoke(input, _models.LIST_RESOURCE_SCAN_RESOURCES, [], plugins) + def list_resource_scan_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourceScanResourcesOutput: + return self._invoke( + self._select_input(_models.LIST_RESOURCE_SCAN_RESOURCES, args, kwargs), + _models.LIST_RESOURCE_SCAN_RESOURCES, + [], + plugins, + ) + + @_overload def list_resource_scans( self, - input: ListResourceScansInput | None = None, + request: _models.ListResourceScansInput | _models.ListResourceScansInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListResourceScansOutput: ... + + @_overload + def list_resource_scans( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourceScansInputDict], ) -> ListResourceScansOutput: """ List the resource scans from newest to oldest. By default it will return up to 10 resource scans. Args: - input: - An instance of `ListResourceScansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1959,12 +3087,34 @@ def list_resource_scans( Returns: An instance of `ListResourceScansOutput`. """ - return self._invoke(input, _models.LIST_RESOURCE_SCANS, [], plugins) + def list_resource_scans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourceScansOutput: + return self._invoke( + self._select_input(_models.LIST_RESOURCE_SCANS, args, kwargs), + _models.LIST_RESOURCE_SCANS, + [], + plugins, + ) + + @_overload + def list_stack_instance_resource_drifts( + self, + request: _models.ListStackInstanceResourceDriftsInput + | _models.ListStackInstanceResourceDriftsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackInstanceResourceDriftsOutput: ... + + @_overload def list_stack_instance_resource_drifts( self, - input: ListStackInstanceResourceDriftsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackInstanceResourceDriftsInputDict], ) -> ListStackInstanceResourceDriftsOutput: """ Returns drift information for resources in a stack instance. @@ -1975,8 +3125,6 @@ def list_stack_instance_resource_drifts( only return partial results. Args: - input: - An instance of `ListStackInstanceResourceDriftsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1986,12 +3134,35 @@ def list_stack_instance_resource_drifts( Returns: An instance of `ListStackInstanceResourceDriftsOutput`. """ + + def list_stack_instance_resource_drifts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackInstanceResourceDriftsOutput: return self._invoke( - input, _models.LIST_STACK_INSTANCE_RESOURCE_DRIFTS, [], plugins + self._select_input( + _models.LIST_STACK_INSTANCE_RESOURCE_DRIFTS, args, kwargs + ), + _models.LIST_STACK_INSTANCE_RESOURCE_DRIFTS, + [], + plugins, ) + @_overload def list_stack_instances( - self, input: ListStackInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListStackInstancesInput | _models.ListStackInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackInstancesOutput: ... + + @_overload + def list_stack_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackInstancesInputDict], ) -> ListStackInstancesOutput: """ Returns summary information about stack instances that are associated @@ -2000,8 +3171,6 @@ def list_stack_instances( or that have a specific status. Args: - input: - An instance of `ListStackInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2011,18 +3180,40 @@ def list_stack_instances( Returns: An instance of `ListStackInstancesOutput`. """ - return self._invoke(input, _models.LIST_STACK_INSTANCES, [], plugins) + def list_stack_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackInstancesOutput: + return self._invoke( + self._select_input(_models.LIST_STACK_INSTANCES, args, kwargs), + _models.LIST_STACK_INSTANCES, + [], + plugins, + ) + + @_overload def list_stack_refactor_actions( - self, input: ListStackRefactorActionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListStackRefactorActionsInput + | _models.ListStackRefactorActionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackRefactorActionsOutput: ... + + @_overload + def list_stack_refactor_actions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackRefactorActionsInputDict], ) -> ListStackRefactorActionsOutput: """ Lists the stack refactor actions that will be taken after calling the ExecuteStackRefactor action. Args: - input: - An instance of `ListStackRefactorActionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2032,19 +3223,38 @@ def list_stack_refactor_actions( Returns: An instance of `ListStackRefactorActionsOutput`. """ - return self._invoke(input, _models.LIST_STACK_REFACTOR_ACTIONS, [], plugins) + def list_stack_refactor_actions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackRefactorActionsOutput: + return self._invoke( + self._select_input(_models.LIST_STACK_REFACTOR_ACTIONS, args, kwargs), + _models.LIST_STACK_REFACTOR_ACTIONS, + [], + plugins, + ) + + @_overload + def list_stack_refactors( + self, + request: _models.ListStackRefactorsInput | _models.ListStackRefactorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackRefactorsOutput: ... + + @_overload def list_stack_refactors( self, - input: ListStackRefactorsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackRefactorsInputDict], ) -> ListStackRefactorsOutput: """ Lists all account stack refactor operations and their statuses. Args: - input: - An instance of `ListStackRefactorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2054,10 +3264,33 @@ def list_stack_refactors( Returns: An instance of `ListStackRefactorsOutput`. """ - return self._invoke(input, _models.LIST_STACK_REFACTORS, [], plugins) + def list_stack_refactors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackRefactorsOutput: + return self._invoke( + self._select_input(_models.LIST_STACK_REFACTORS, args, kwargs), + _models.LIST_STACK_REFACTORS, + [], + plugins, + ) + + @_overload + def list_stack_resources( + self, + request: _models.ListStackResourcesInput | _models.ListStackResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackResourcesOutput: ... + + @_overload def list_stack_resources( - self, input: ListStackResourcesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackResourcesInputDict], ) -> ListStackResourcesOutput: """ Returns descriptions of all resources of the specified stack. @@ -2066,8 +3299,6 @@ def list_stack_resources( up to 90 days after the stack has been deleted. Args: - input: - An instance of `ListStackResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2077,10 +3308,33 @@ def list_stack_resources( Returns: An instance of `ListStackResourcesOutput`. """ - return self._invoke(input, _models.LIST_STACK_RESOURCES, [], plugins) + def list_stack_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackResourcesOutput: + return self._invoke( + self._select_input(_models.LIST_STACK_RESOURCES, args, kwargs), + _models.LIST_STACK_RESOURCES, + [], + plugins, + ) + + @_overload def list_stacks( - self, input: ListStacksInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListStacksInput | _models.ListStacksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStacksOutput: ... + + @_overload + def list_stacks( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStacksInputDict], ) -> ListStacksOutput: """ Returns the summary information for stacks whose status matches the @@ -2090,8 +3344,6 @@ def list_stacks( returned (including existing stacks and stacks that have been deleted). Args: - input: - An instance of `ListStacksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2101,19 +3353,39 @@ def list_stacks( Returns: An instance of `ListStacksOutput`. """ - return self._invoke(input, _models.LIST_STACKS, [], plugins) + def list_stacks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStacksOutput: + return self._invoke( + self._select_input(_models.LIST_STACKS, args, kwargs), + _models.LIST_STACKS, + [], + plugins, + ) + + @_overload + def list_stack_set_auto_deployment_targets( + self, + request: _models.ListStackSetAutoDeploymentTargetsInput + | _models.ListStackSetAutoDeploymentTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackSetAutoDeploymentTargetsOutput: ... + + @_overload def list_stack_set_auto_deployment_targets( self, - input: ListStackSetAutoDeploymentTargetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackSetAutoDeploymentTargetsInputDict], ) -> ListStackSetAutoDeploymentTargetsOutput: """ Returns summary information about deployment targets for a StackSet. Args: - input: - An instance of `ListStackSetAutoDeploymentTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2123,14 +3395,36 @@ def list_stack_set_auto_deployment_targets( Returns: An instance of `ListStackSetAutoDeploymentTargetsOutput`. """ + + def list_stack_set_auto_deployment_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackSetAutoDeploymentTargetsOutput: return self._invoke( - input, _models.LIST_STACK_SET_AUTO_DEPLOYMENT_TARGETS, [], plugins + self._select_input( + _models.LIST_STACK_SET_AUTO_DEPLOYMENT_TARGETS, args, kwargs + ), + _models.LIST_STACK_SET_AUTO_DEPLOYMENT_TARGETS, + [], + plugins, ) + @_overload + def list_stack_set_operation_results( + self, + request: _models.ListStackSetOperationResultsInput + | _models.ListStackSetOperationResultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackSetOperationResultsOutput: ... + + @_overload def list_stack_set_operation_results( self, - input: ListStackSetOperationResultsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackSetOperationResultsInputDict], ) -> ListStackSetOperationResultsOutput: """ Returns summary information about the results of a StackSet operation. @@ -2140,8 +3434,6 @@ def list_stack_set_operation_results( time but will eventually return the most up-to-date data. Args: - input: - An instance of `ListStackSetOperationResultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2151,12 +3443,34 @@ def list_stack_set_operation_results( Returns: An instance of `ListStackSetOperationResultsOutput`. """ + + def list_stack_set_operation_results( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackSetOperationResultsOutput: return self._invoke( - input, _models.LIST_STACK_SET_OPERATION_RESULTS, [], plugins + self._select_input(_models.LIST_STACK_SET_OPERATION_RESULTS, args, kwargs), + _models.LIST_STACK_SET_OPERATION_RESULTS, + [], + plugins, ) + @_overload + def list_stack_set_operations( + self, + request: _models.ListStackSetOperationsInput + | _models.ListStackSetOperationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackSetOperationsOutput: ... + + @_overload def list_stack_set_operations( - self, input: ListStackSetOperationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackSetOperationsInputDict], ) -> ListStackSetOperationsOutput: """ Returns summary information about operations performed on a StackSet. @@ -2166,8 +3480,6 @@ def list_stack_set_operations( time but will eventually return the most up-to-date data. Args: - input: - An instance of `ListStackSetOperationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2177,12 +3489,33 @@ def list_stack_set_operations( Returns: An instance of `ListStackSetOperationsOutput`. """ - return self._invoke(input, _models.LIST_STACK_SET_OPERATIONS, [], plugins) + def list_stack_set_operations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackSetOperationsOutput: + return self._invoke( + self._select_input(_models.LIST_STACK_SET_OPERATIONS, args, kwargs), + _models.LIST_STACK_SET_OPERATIONS, + [], + plugins, + ) + + @_overload + def list_stack_sets( + self, + request: _models.ListStackSetsInput | _models.ListStackSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStackSetsOutput: ... + + @_overload def list_stack_sets( self, - input: ListStackSetsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStackSetsInputDict], ) -> ListStackSetsOutput: """ Returns summary information about StackSets that are associated with the @@ -2207,8 +3540,6 @@ def list_stack_sets( in the management account. Args: - input: - An instance of `ListStackSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2218,19 +3549,39 @@ def list_stack_sets( Returns: An instance of `ListStackSetsOutput`. """ - return self._invoke(input, _models.LIST_STACK_SETS, [], plugins) + def list_stack_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStackSetsOutput: + return self._invoke( + self._select_input(_models.LIST_STACK_SETS, args, kwargs), + _models.LIST_STACK_SETS, + [], + plugins, + ) + + @_overload + def list_type_registrations( + self, + request: _models.ListTypeRegistrationsInput + | _models.ListTypeRegistrationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTypeRegistrationsOutput: ... + + @_overload def list_type_registrations( self, - input: ListTypeRegistrationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTypeRegistrationsInputDict], ) -> ListTypeRegistrationsOutput: """ Returns a list of registration tokens for the specified extension(s). Args: - input: - An instance of `ListTypeRegistrationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2240,10 +3591,33 @@ def list_type_registrations( Returns: An instance of `ListTypeRegistrationsOutput`. """ - return self._invoke(input, _models.LIST_TYPE_REGISTRATIONS, [], plugins) + def list_type_registrations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTypeRegistrationsOutput: + return self._invoke( + self._select_input(_models.LIST_TYPE_REGISTRATIONS, args, kwargs), + _models.LIST_TYPE_REGISTRATIONS, + [], + plugins, + ) + + @_overload def list_types( - self, input: ListTypesInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListTypesInput | _models.ListTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTypesOutput: ... + + @_overload + def list_types( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTypesInputDict], ) -> ListTypesOutput: """ Returns summary information about all extensions, including your private @@ -2251,8 +3625,6 @@ def list_types( Amazon Web Services and third-party publishers. Args: - input: - An instance of `ListTypesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2262,19 +3634,38 @@ def list_types( Returns: An instance of `ListTypesOutput`. """ - return self._invoke(input, _models.LIST_TYPES, [], plugins) + def list_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTypesOutput: + return self._invoke( + self._select_input(_models.LIST_TYPES, args, kwargs), + _models.LIST_TYPES, + [], + plugins, + ) + + @_overload + def list_type_versions( + self, + request: _models.ListTypeVersionsInput | _models.ListTypeVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTypeVersionsOutput: ... + + @_overload def list_type_versions( self, - input: ListTypeVersionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTypeVersionsInputDict], ) -> ListTypeVersionsOutput: """ Returns summary information about the versions of an extension. Args: - input: - An instance of `ListTypeVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2284,10 +3675,33 @@ def list_type_versions( Returns: An instance of `ListTypeVersionsOutput`. """ - return self._invoke(input, _models.LIST_TYPE_VERSIONS, [], plugins) + def list_type_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTypeVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_TYPE_VERSIONS, args, kwargs), + _models.LIST_TYPE_VERSIONS, + [], + plugins, + ) + + @_overload + def publish_type( + self, + request: _models.PublishTypeInput | _models.PublishTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishTypeOutput: ... + + @_overload def publish_type( - self, input: PublishTypeInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishTypeInputDict], ) -> PublishTypeOutput: """ Publishes the specified extension to the CloudFormation registry as a @@ -2302,8 +3716,6 @@ def publish_type( [RegisterPublisher](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html). Args: - input: - An instance of `PublishTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2313,10 +3725,34 @@ def publish_type( Returns: An instance of `PublishTypeOutput`. """ - return self._invoke(input, _models.PUBLISH_TYPE, [], plugins) + def publish_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishTypeOutput: + return self._invoke( + self._select_input(_models.PUBLISH_TYPE, args, kwargs), + _models.PUBLISH_TYPE, + [], + plugins, + ) + + @_overload + def record_handler_progress( + self, + request: _models.RecordHandlerProgressInput + | _models.RecordHandlerProgressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RecordHandlerProgressOutput: ... + + @_overload def record_handler_progress( - self, input: RecordHandlerProgressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RecordHandlerProgressInputDict], ) -> RecordHandlerProgressOutput: """ Reports progress of a resource handler to CloudFormation. @@ -2326,8 +3762,6 @@ def record_handler_progress( Don't use this API in your code. Args: - input: - An instance of `RecordHandlerProgressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2337,12 +3771,33 @@ def record_handler_progress( Returns: An instance of `RecordHandlerProgressOutput`. """ - return self._invoke(input, _models.RECORD_HANDLER_PROGRESS, [], plugins) + def record_handler_progress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RecordHandlerProgressOutput: + return self._invoke( + self._select_input(_models.RECORD_HANDLER_PROGRESS, args, kwargs), + _models.RECORD_HANDLER_PROGRESS, + [], + plugins, + ) + + @_overload + def register_publisher( + self, + request: _models.RegisterPublisherInput | _models.RegisterPublisherInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterPublisherOutput: ... + + @_overload def register_publisher( self, - input: RegisterPublisherInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterPublisherInputDict], ) -> RegisterPublisherOutput: """ Registers your account as a publisher of public extensions in the @@ -2357,8 +3812,6 @@ def register_publisher( in the *CloudFormation Command Line Interface (CLI) User Guide*. Args: - input: - An instance of `RegisterPublisherInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2368,10 +3821,33 @@ def register_publisher( Returns: An instance of `RegisterPublisherOutput`. """ - return self._invoke(input, _models.REGISTER_PUBLISHER, [], plugins) + def register_publisher( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterPublisherOutput: + return self._invoke( + self._select_input(_models.REGISTER_PUBLISHER, args, kwargs), + _models.REGISTER_PUBLISHER, + [], + plugins, + ) + + @_overload + def register_type( + self, + request: _models.RegisterTypeInput | _models.RegisterTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterTypeOutput: ... + + @_overload def register_type( - self, input: RegisterTypeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterTypeInputDict], ) -> RegisterTypeOutput: """ Registers an extension with the CloudFormation service. Registering an @@ -2408,8 +3884,6 @@ def register_type( in the *CloudFormation User Guide*. Args: - input: - An instance of `RegisterTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2419,10 +3893,33 @@ def register_type( Returns: An instance of `RegisterTypeOutput`. """ - return self._invoke(input, _models.REGISTER_TYPE, [], plugins) + def register_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterTypeOutput: + return self._invoke( + self._select_input(_models.REGISTER_TYPE, args, kwargs), + _models.REGISTER_TYPE, + [], + plugins, + ) + + @_overload + def rollback_stack( + self, + request: _models.RollbackStackInput | _models.RollbackStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RollbackStackOutput: ... + + @_overload def rollback_stack( - self, input: RollbackStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RollbackStackInputDict], ) -> RollbackStackOutput: """ When specifying `RollbackStack`, you preserve the state of previously @@ -2447,8 +3944,6 @@ def rollback_stack( - `IMPORT_ROLLBACK_COMPLETE` Args: - input: - An instance of `RollbackStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2458,17 +3953,38 @@ def rollback_stack( Returns: An instance of `RollbackStackOutput`. """ - return self._invoke(input, _models.ROLLBACK_STACK, [], plugins) + def rollback_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RollbackStackOutput: + return self._invoke( + self._select_input(_models.ROLLBACK_STACK, args, kwargs), + _models.ROLLBACK_STACK, + [], + plugins, + ) + + @_overload + def set_stack_policy( + self, + request: _models.SetStackPolicyInput | _models.SetStackPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetStackPolicyOutput: ... + + @_overload def set_stack_policy( - self, input: SetStackPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetStackPolicyInputDict], ) -> SetStackPolicyOutput: """ Sets a stack policy for a specified stack. Args: - input: - An instance of `SetStackPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2478,10 +3994,34 @@ def set_stack_policy( Returns: An instance of `SetStackPolicyOutput`. """ - return self._invoke(input, _models.SET_STACK_POLICY, [], plugins) + def set_stack_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetStackPolicyOutput: + return self._invoke( + self._select_input(_models.SET_STACK_POLICY, args, kwargs), + _models.SET_STACK_POLICY, + [], + plugins, + ) + + @_overload + def set_type_configuration( + self, + request: _models.SetTypeConfigurationInput + | _models.SetTypeConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetTypeConfigurationOutput: ... + + @_overload def set_type_configuration( - self, input: SetTypeConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetTypeConfigurationInputDict], ) -> SetTypeConfigurationOutput: """ Specifies the configuration data for a CloudFormation extension, such as @@ -2513,8 +4053,6 @@ def set_type_configuration( Guide](https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/what-is-cloudformation-hooks.html). Args: - input: - An instance of `SetTypeConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2524,20 +4062,40 @@ def set_type_configuration( Returns: An instance of `SetTypeConfigurationOutput`. """ - return self._invoke(input, _models.SET_TYPE_CONFIGURATION, [], plugins) + def set_type_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetTypeConfigurationOutput: + return self._invoke( + self._select_input(_models.SET_TYPE_CONFIGURATION, args, kwargs), + _models.SET_TYPE_CONFIGURATION, + [], + plugins, + ) + + @_overload + def set_type_default_version( + self, + request: _models.SetTypeDefaultVersionInput + | _models.SetTypeDefaultVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetTypeDefaultVersionOutput: ... + + @_overload def set_type_default_version( self, - input: SetTypeDefaultVersionInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetTypeDefaultVersionInputDict], ) -> SetTypeDefaultVersionOutput: """ Specify the default version of an extension. The default version of an extension will be used in CloudFormation operations. Args: - input: - An instance of `SetTypeDefaultVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2547,10 +4105,33 @@ def set_type_default_version( Returns: An instance of `SetTypeDefaultVersionOutput`. """ - return self._invoke(input, _models.SET_TYPE_DEFAULT_VERSION, [], plugins) + def set_type_default_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetTypeDefaultVersionOutput: + return self._invoke( + self._select_input(_models.SET_TYPE_DEFAULT_VERSION, args, kwargs), + _models.SET_TYPE_DEFAULT_VERSION, + [], + plugins, + ) + + @_overload def signal_resource( - self, input: SignalResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.SignalResourceInput | _models.SignalResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SignalResourceOutput: ... + + @_overload + def signal_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SignalResourceInputDict], ) -> SignalResourceOutput: """ Sends a signal to the specified resource with a success or failure @@ -2562,8 +4143,6 @@ def signal_resource( anywhere other than an Amazon EC2 instance. Args: - input: - An instance of `SignalResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2573,20 +4152,39 @@ def signal_resource( Returns: An instance of `SignalResourceOutput`. """ - return self._invoke(input, _models.SIGNAL_RESOURCE, [], plugins) + def signal_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SignalResourceOutput: + return self._invoke( + self._select_input(_models.SIGNAL_RESOURCE, args, kwargs), + _models.SIGNAL_RESOURCE, + [], + plugins, + ) + + @_overload + def start_resource_scan( + self, + request: _models.StartResourceScanInput | _models.StartResourceScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartResourceScanOutput: ... + + @_overload def start_resource_scan( self, - input: StartResourceScanInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartResourceScanInputDict], ) -> StartResourceScanOutput: """ Starts a scan of the resources in this account in this Region. You can the status of a scan using the `ListResourceScans` API action. Args: - input: - An instance of `StartResourceScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2596,10 +4194,34 @@ def start_resource_scan( Returns: An instance of `StartResourceScanOutput`. """ - return self._invoke(input, _models.START_RESOURCE_SCAN, [], plugins) + def start_resource_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartResourceScanOutput: + return self._invoke( + self._select_input(_models.START_RESOURCE_SCAN, args, kwargs), + _models.START_RESOURCE_SCAN, + [], + plugins, + ) + + @_overload + def stop_stack_set_operation( + self, + request: _models.StopStackSetOperationInput + | _models.StopStackSetOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopStackSetOperationOutput: ... + + @_overload def stop_stack_set_operation( - self, input: StopStackSetOperationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopStackSetOperationInputDict], ) -> StopStackSetOperationOutput: """ Stops an in-progress operation on a StackSet and its associated stack @@ -2607,8 +4229,6 @@ def stop_stack_set_operation( deployments and wait for those are in-progress to complete. Args: - input: - An instance of `StopStackSetOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2618,10 +4238,33 @@ def stop_stack_set_operation( Returns: An instance of `StopStackSetOperationOutput`. """ - return self._invoke(input, _models.STOP_STACK_SET_OPERATION, [], plugins) + def stop_stack_set_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopStackSetOperationOutput: + return self._invoke( + self._select_input(_models.STOP_STACK_SET_OPERATION, args, kwargs), + _models.STOP_STACK_SET_OPERATION, + [], + plugins, + ) + + @_overload + def test_type( + self, + request: _models.TestTypeInput | _models.TestTypeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestTypeOutput: ... + + @_overload def test_type( - self, input: TestTypeInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestTypeInputDict], ) -> TestTypeOutput: """ Tests a registered extension to make sure it meets all necessary @@ -2657,8 +4300,6 @@ def test_type( in the *CloudFormation Command Line Interface (CLI) User Guide*. Args: - input: - An instance of `TestTypeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2668,10 +4309,34 @@ def test_type( Returns: An instance of `TestTypeOutput`. """ - return self._invoke(input, _models.TEST_TYPE, [], plugins) + def test_type( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestTypeOutput: + return self._invoke( + self._select_input(_models.TEST_TYPE, args, kwargs), + _models.TEST_TYPE, + [], + plugins, + ) + + @_overload + def update_generated_template( + self, + request: _models.UpdateGeneratedTemplateInput + | _models.UpdateGeneratedTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGeneratedTemplateOutput: ... + + @_overload def update_generated_template( - self, input: UpdateGeneratedTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGeneratedTemplateInputDict], ) -> UpdateGeneratedTemplateOutput: """ Updates a generated template. This can be used to change the name, add @@ -2681,8 +4346,6 @@ def update_generated_template( API action. Args: - input: - An instance of `UpdateGeneratedTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2692,10 +4355,33 @@ def update_generated_template( Returns: An instance of `UpdateGeneratedTemplateOutput`. """ - return self._invoke(input, _models.UPDATE_GENERATED_TEMPLATE, [], plugins) + def update_generated_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGeneratedTemplateOutput: + return self._invoke( + self._select_input(_models.UPDATE_GENERATED_TEMPLATE, args, kwargs), + _models.UPDATE_GENERATED_TEMPLATE, + [], + plugins, + ) + + @_overload + def update_stack( + self, + request: _models.UpdateStackInput | _models.UpdateStackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStackOutput: ... + + @_overload def update_stack( - self, input: UpdateStackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStackInputDict], ) -> UpdateStackOutput: """ Updates a stack as specified in the template. After the call completes @@ -2712,8 +4398,6 @@ def update_stack( in the *CloudFormation User Guide*. Args: - input: - An instance of `UpdateStackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2723,10 +4407,34 @@ def update_stack( Returns: An instance of `UpdateStackOutput`. """ - return self._invoke(input, _models.UPDATE_STACK, [], plugins) + def update_stack( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStackOutput: + return self._invoke( + self._select_input(_models.UPDATE_STACK, args, kwargs), + _models.UPDATE_STACK, + [], + plugins, + ) + + @_overload def update_stack_instances( - self, input: UpdateStackInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateStackInstancesInput + | _models.UpdateStackInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStackInstancesOutput: ... + + @_overload + def update_stack_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStackInstancesInputDict], ) -> UpdateStackInstancesOutput: """ Updates the parameter values for stack instances for the specified @@ -2767,8 +4475,6 @@ def update_stack_instances( target a parent OU that contains all desired child OUs. Args: - input: - An instance of `UpdateStackInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2778,10 +4484,33 @@ def update_stack_instances( Returns: An instance of `UpdateStackInstancesOutput`. """ - return self._invoke(input, _models.UPDATE_STACK_INSTANCES, [], plugins) + def update_stack_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStackInstancesOutput: + return self._invoke( + self._select_input(_models.UPDATE_STACK_INSTANCES, args, kwargs), + _models.UPDATE_STACK_INSTANCES, + [], + plugins, + ) + + @_overload + def update_stack_set( + self, + request: _models.UpdateStackSetInput | _models.UpdateStackSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStackSetOutput: ... + + @_overload def update_stack_set( - self, input: UpdateStackSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStackSetInputDict], ) -> UpdateStackSetOutput: """ Updates the StackSet and associated stack instances in the specified @@ -2807,8 +4536,6 @@ def update_stack_set( target a parent OU that contains all desired child OUs. Args: - input: - An instance of `UpdateStackSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2818,12 +4545,34 @@ def update_stack_set( Returns: An instance of `UpdateStackSetOutput`. """ - return self._invoke(input, _models.UPDATE_STACK_SET, [], plugins) + def update_stack_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStackSetOutput: + return self._invoke( + self._select_input(_models.UPDATE_STACK_SET, args, kwargs), + _models.UPDATE_STACK_SET, + [], + plugins, + ) + + @_overload + def update_termination_protection( + self, + request: _models.UpdateTerminationProtectionInput + | _models.UpdateTerminationProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTerminationProtectionOutput: ... + + @_overload def update_termination_protection( self, - input: UpdateTerminationProtectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTerminationProtectionInputDict], ) -> UpdateTerminationProtectionOutput: """ Updates termination protection for the specified stack. If a user @@ -2839,8 +4588,6 @@ def update_termination_protection( directly on the nested stack. Args: - input: - An instance of `UpdateTerminationProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2850,12 +4597,33 @@ def update_termination_protection( Returns: An instance of `UpdateTerminationProtectionOutput`. """ - return self._invoke(input, _models.UPDATE_TERMINATION_PROTECTION, [], plugins) + def update_termination_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTerminationProtectionOutput: + return self._invoke( + self._select_input(_models.UPDATE_TERMINATION_PROTECTION, args, kwargs), + _models.UPDATE_TERMINATION_PROTECTION, + [], + plugins, + ) + + @_overload + def validate_template( + self, + request: _models.ValidateTemplateInput | _models.ValidateTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ValidateTemplateOutput: ... + + @_overload def validate_template( self, - input: ValidateTemplateInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ValidateTemplateInputDict], ) -> ValidateTemplateOutput: """ Validates a specified template. CloudFormation first checks if the @@ -2864,8 +4632,6 @@ def validate_template( returns a template validation error. Args: - input: - An instance of `ValidateTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2875,7 +4641,16 @@ def validate_template( Returns: An instance of `ValidateTemplateOutput`. """ - return self._invoke(input, _models.VALIDATE_TEMPLATE, [], plugins) + + def validate_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ValidateTemplateOutput: + return self._invoke( + self._select_input(_models.VALIDATE_TEMPLATE, args, kwargs), + _models.VALIDATE_TEMPLATE, + [], + plugins, + ) def _new_config(self) -> CloudFormationConfig: return CloudFormationConfig.resolve() diff --git a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/models.pyi b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/models.pyi index dca7fce27..470fca04f 100644 --- a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/models.pyi +++ b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/models.pyi @@ -13,8 +13,10 @@ from ._private.models_0 import ( AccountGateStatus as AccountGateStatus, AccountLimit as AccountLimit, ActivateOrganizationsAccessInput as ActivateOrganizationsAccessInput, + ActivateOrganizationsAccessInputDict as ActivateOrganizationsAccessInputDict, ActivateOrganizationsAccessOutput as ActivateOrganizationsAccessOutput, ActivateTypeInput as ActivateTypeInput, + ActivateTypeInputDict as ActivateTypeInputDict, ActivateTypeOutput as ActivateTypeOutput, AfterValueFrom as AfterValueFrom, AlreadyExistsException as AlreadyExistsException, @@ -23,13 +25,16 @@ from ._private.models_0 import ( AnnotationStatus as AnnotationStatus, AttributeChangeType as AttributeChangeType, AutoDeployment as AutoDeployment, + AutoDeploymentDict as AutoDeploymentDict, BatchDescribeTypeConfigurationsError as BatchDescribeTypeConfigurationsError, BatchDescribeTypeConfigurationsInput as BatchDescribeTypeConfigurationsInput, + BatchDescribeTypeConfigurationsInputDict as BatchDescribeTypeConfigurationsInputDict, BatchDescribeTypeConfigurationsOutput as BatchDescribeTypeConfigurationsOutput, BeaconStackOperationStatus as BeaconStackOperationStatus, BeforeValueFrom as BeforeValueFrom, CallAs as CallAs, CancelUpdateStackInput as CancelUpdateStackInput, + CancelUpdateStackInputDict as CancelUpdateStackInputDict, CancelUpdateStackOutput as CancelUpdateStackOutput, Capability as Capability, Category as Category, @@ -49,99 +54,143 @@ from ._private.models_0 import ( ConcurrencyMode as ConcurrencyMode, ConcurrentResourcesLimitExceededException as ConcurrentResourcesLimitExceededException, ContinueUpdateRollbackInput as ContinueUpdateRollbackInput, + ContinueUpdateRollbackInputDict as ContinueUpdateRollbackInputDict, ContinueUpdateRollbackOutput as ContinueUpdateRollbackOutput, CreateChangeSetInput as CreateChangeSetInput, + CreateChangeSetInputDict as CreateChangeSetInputDict, CreateChangeSetOutput as CreateChangeSetOutput, CreatedButModifiedException as CreatedButModifiedException, CreateGeneratedTemplateInput as CreateGeneratedTemplateInput, + CreateGeneratedTemplateInputDict as CreateGeneratedTemplateInputDict, CreateGeneratedTemplateOutput as CreateGeneratedTemplateOutput, CreateStackInput as CreateStackInput, + CreateStackInputDict as CreateStackInputDict, CreateStackInstancesInput as CreateStackInstancesInput, + CreateStackInstancesInputDict as CreateStackInstancesInputDict, CreateStackInstancesOutput as CreateStackInstancesOutput, CreateStackOutput as CreateStackOutput, CreateStackRefactorInput as CreateStackRefactorInput, + CreateStackRefactorInputDict as CreateStackRefactorInputDict, CreateStackRefactorOutput as CreateStackRefactorOutput, CreateStackSetInput as CreateStackSetInput, + CreateStackSetInputDict as CreateStackSetInputDict, CreateStackSetOutput as CreateStackSetOutput, DeactivateOrganizationsAccessInput as DeactivateOrganizationsAccessInput, + DeactivateOrganizationsAccessInputDict as DeactivateOrganizationsAccessInputDict, DeactivateOrganizationsAccessOutput as DeactivateOrganizationsAccessOutput, DeactivateTypeInput as DeactivateTypeInput, + DeactivateTypeInputDict as DeactivateTypeInputDict, DeactivateTypeOutput as DeactivateTypeOutput, DeleteChangeSetInput as DeleteChangeSetInput, + DeleteChangeSetInputDict as DeleteChangeSetInputDict, DeleteChangeSetOutput as DeleteChangeSetOutput, DeleteGeneratedTemplateInput as DeleteGeneratedTemplateInput, + DeleteGeneratedTemplateInputDict as DeleteGeneratedTemplateInputDict, DeleteGeneratedTemplateOutput as DeleteGeneratedTemplateOutput, DeleteStackInput as DeleteStackInput, + DeleteStackInputDict as DeleteStackInputDict, DeleteStackInstancesInput as DeleteStackInstancesInput, + DeleteStackInstancesInputDict as DeleteStackInstancesInputDict, DeleteStackInstancesOutput as DeleteStackInstancesOutput, DeleteStackOutput as DeleteStackOutput, DeleteStackSetInput as DeleteStackSetInput, + DeleteStackSetInputDict as DeleteStackSetInputDict, DeleteStackSetOutput as DeleteStackSetOutput, DeletionMode as DeletionMode, DeploymentConfig as DeploymentConfig, + DeploymentConfigDict as DeploymentConfigDict, DeploymentConfigMode as DeploymentConfigMode, DeploymentMode as DeploymentMode, DeploymentTargets as DeploymentTargets, + DeploymentTargetsDict as DeploymentTargetsDict, DeprecatedStatus as DeprecatedStatus, DeregisterTypeInput as DeregisterTypeInput, + DeregisterTypeInputDict as DeregisterTypeInputDict, DeregisterTypeOutput as DeregisterTypeOutput, DescribeAccountLimitsInput as DescribeAccountLimitsInput, + DescribeAccountLimitsInputDict as DescribeAccountLimitsInputDict, DescribeAccountLimitsOutput as DescribeAccountLimitsOutput, DescribeChangeSetHooksInput as DescribeChangeSetHooksInput, + DescribeChangeSetHooksInputDict as DescribeChangeSetHooksInputDict, DescribeChangeSetHooksOutput as DescribeChangeSetHooksOutput, DescribeChangeSetInput as DescribeChangeSetInput, + DescribeChangeSetInputDict as DescribeChangeSetInputDict, DescribeChangeSetOutput as DescribeChangeSetOutput, DescribeEventsInput as DescribeEventsInput, + DescribeEventsInputDict as DescribeEventsInputDict, DescribeEventsOutput as DescribeEventsOutput, DescribeGeneratedTemplateInput as DescribeGeneratedTemplateInput, + DescribeGeneratedTemplateInputDict as DescribeGeneratedTemplateInputDict, DescribeGeneratedTemplateOutput as DescribeGeneratedTemplateOutput, DescribeOrganizationsAccessInput as DescribeOrganizationsAccessInput, + DescribeOrganizationsAccessInputDict as DescribeOrganizationsAccessInputDict, DescribeOrganizationsAccessOutput as DescribeOrganizationsAccessOutput, DescribePublisherInput as DescribePublisherInput, + DescribePublisherInputDict as DescribePublisherInputDict, DescribePublisherOutput as DescribePublisherOutput, DescribeResourceScanInput as DescribeResourceScanInput, + DescribeResourceScanInputDict as DescribeResourceScanInputDict, DescribeResourceScanOutput as DescribeResourceScanOutput, DescribeStackDriftDetectionStatusInput as DescribeStackDriftDetectionStatusInput, + DescribeStackDriftDetectionStatusInputDict as DescribeStackDriftDetectionStatusInputDict, DescribeStackDriftDetectionStatusOutput as DescribeStackDriftDetectionStatusOutput, DescribeStackEventsInput as DescribeStackEventsInput, + DescribeStackEventsInputDict as DescribeStackEventsInputDict, DescribeStackEventsOutput as DescribeStackEventsOutput, DescribeStackInstanceInput as DescribeStackInstanceInput, + DescribeStackInstanceInputDict as DescribeStackInstanceInputDict, DescribeStackInstanceOutput as DescribeStackInstanceOutput, DescribeStackRefactorInput as DescribeStackRefactorInput, + DescribeStackRefactorInputDict as DescribeStackRefactorInputDict, DescribeStackRefactorOutput as DescribeStackRefactorOutput, DescribeStackResourceDriftsInput as DescribeStackResourceDriftsInput, + DescribeStackResourceDriftsInputDict as DescribeStackResourceDriftsInputDict, DescribeStackResourceDriftsOutput as DescribeStackResourceDriftsOutput, DescribeStackResourceInput as DescribeStackResourceInput, + DescribeStackResourceInputDict as DescribeStackResourceInputDict, DescribeStackResourceOutput as DescribeStackResourceOutput, DescribeStackResourcesInput as DescribeStackResourcesInput, + DescribeStackResourcesInputDict as DescribeStackResourcesInputDict, DescribeStackResourcesOutput as DescribeStackResourcesOutput, DescribeStackSetInput as DescribeStackSetInput, + DescribeStackSetInputDict as DescribeStackSetInputDict, DescribeStackSetOperationInput as DescribeStackSetOperationInput, + DescribeStackSetOperationInputDict as DescribeStackSetOperationInputDict, DescribeStackSetOperationOutput as DescribeStackSetOperationOutput, DescribeStackSetOutput as DescribeStackSetOutput, DescribeStacksInput as DescribeStacksInput, + DescribeStacksInputDict as DescribeStacksInputDict, DescribeStacksOutput as DescribeStacksOutput, DescribeTypeInput as DescribeTypeInput, + DescribeTypeInputDict as DescribeTypeInputDict, DescribeTypeOutput as DescribeTypeOutput, DescribeTypeRegistrationInput as DescribeTypeRegistrationInput, + DescribeTypeRegistrationInputDict as DescribeTypeRegistrationInputDict, DescribeTypeRegistrationOutput as DescribeTypeRegistrationOutput, DetailedStatus as DetailedStatus, DetectStackDriftInput as DetectStackDriftInput, + DetectStackDriftInputDict as DetectStackDriftInputDict, DetectStackDriftOutput as DetectStackDriftOutput, DetectStackResourceDriftInput as DetectStackResourceDriftInput, + DetectStackResourceDriftInputDict as DetectStackResourceDriftInputDict, DetectStackResourceDriftOutput as DetectStackResourceDriftOutput, DetectStackSetDriftInput as DetectStackSetDriftInput, + DetectStackSetDriftInputDict as DetectStackSetDriftInputDict, DetectStackSetDriftOutput as DetectStackSetDriftOutput, DifferenceType as DifferenceType, DriftIgnoredReason as DriftIgnoredReason, EstimateTemplateCostInput as EstimateTemplateCostInput, + EstimateTemplateCostInputDict as EstimateTemplateCostInputDict, EstimateTemplateCostOutput as EstimateTemplateCostOutput, EvaluationType as EvaluationType, EventFilter as EventFilter, + EventFilterDict as EventFilterDict, EventType as EventType, ExecuteChangeSetInput as ExecuteChangeSetInput, + ExecuteChangeSetInputDict as ExecuteChangeSetInputDict, ExecuteChangeSetOutput as ExecuteChangeSetOutput, ExecuteStackRefactorInput as ExecuteStackRefactorInput, + ExecuteStackRefactorInputDict as ExecuteStackRefactorInputDict, ExecuteStackRefactorOutput as ExecuteStackRefactorOutput, ExecutionStatus as ExecutionStatus, Export as Export, @@ -151,14 +200,19 @@ from ._private.models_0 import ( GeneratedTemplateStatus as GeneratedTemplateStatus, GeneratedTemplateUpdateReplacePolicy as GeneratedTemplateUpdateReplacePolicy, GetGeneratedTemplateInput as GetGeneratedTemplateInput, + GetGeneratedTemplateInputDict as GetGeneratedTemplateInputDict, GetGeneratedTemplateOutput as GetGeneratedTemplateOutput, GetHookResultInput as GetHookResultInput, + GetHookResultInputDict as GetHookResultInputDict, GetHookResultOutput as GetHookResultOutput, GetStackPolicyInput as GetStackPolicyInput, + GetStackPolicyInputDict as GetStackPolicyInputDict, GetStackPolicyOutput as GetStackPolicyOutput, GetTemplateInput as GetTemplateInput, + GetTemplateInputDict as GetTemplateInputDict, GetTemplateOutput as GetTemplateOutput, GetTemplateSummaryInput as GetTemplateSummaryInput, + GetTemplateSummaryInputDict as GetTemplateSummaryInputDict, GetTemplateSummaryOutput as GetTemplateSummaryOutput, HandlerErrorCode as HandlerErrorCode, HookFailureMode as HookFailureMode, @@ -171,6 +225,7 @@ from ._private.models_0 import ( HookTargetType as HookTargetType, IdentityProvider as IdentityProvider, ImportStacksToStackSetInput as ImportStacksToStackSetInput, + ImportStacksToStackSetInputDict as ImportStacksToStackSetInputDict, ImportStacksToStackSetOutput as ImportStacksToStackSetOutput, InsufficientCapabilitiesException as InsufficientCapabilitiesException, InvalidChangeSetStatusException as InvalidChangeSetStatusException, @@ -178,51 +233,74 @@ from ._private.models_0 import ( InvalidStateTransitionException as InvalidStateTransitionException, LimitExceededException as LimitExceededException, ListChangeSetsInput as ListChangeSetsInput, + ListChangeSetsInputDict as ListChangeSetsInputDict, ListChangeSetsOutput as ListChangeSetsOutput, ListExportsInput as ListExportsInput, + ListExportsInputDict as ListExportsInputDict, ListExportsOutput as ListExportsOutput, ListGeneratedTemplatesInput as ListGeneratedTemplatesInput, + ListGeneratedTemplatesInputDict as ListGeneratedTemplatesInputDict, ListGeneratedTemplatesOutput as ListGeneratedTemplatesOutput, ListHookResultsInput as ListHookResultsInput, + ListHookResultsInputDict as ListHookResultsInputDict, ListHookResultsOutput as ListHookResultsOutput, ListHookResultsTargetType as ListHookResultsTargetType, ListImportsInput as ListImportsInput, + ListImportsInputDict as ListImportsInputDict, ListImportsOutput as ListImportsOutput, ListResourceScanRelatedResourcesInput as ListResourceScanRelatedResourcesInput, + ListResourceScanRelatedResourcesInputDict as ListResourceScanRelatedResourcesInputDict, ListResourceScanRelatedResourcesOutput as ListResourceScanRelatedResourcesOutput, ListResourceScanResourcesInput as ListResourceScanResourcesInput, + ListResourceScanResourcesInputDict as ListResourceScanResourcesInputDict, ListResourceScanResourcesOutput as ListResourceScanResourcesOutput, ListResourceScansInput as ListResourceScansInput, + ListResourceScansInputDict as ListResourceScansInputDict, ListResourceScansOutput as ListResourceScansOutput, ListStackInstanceResourceDriftsInput as ListStackInstanceResourceDriftsInput, + ListStackInstanceResourceDriftsInputDict as ListStackInstanceResourceDriftsInputDict, ListStackInstanceResourceDriftsOutput as ListStackInstanceResourceDriftsOutput, ListStackInstancesInput as ListStackInstancesInput, + ListStackInstancesInputDict as ListStackInstancesInputDict, ListStackInstancesOutput as ListStackInstancesOutput, ListStackRefactorActionsInput as ListStackRefactorActionsInput, + ListStackRefactorActionsInputDict as ListStackRefactorActionsInputDict, ListStackRefactorActionsOutput as ListStackRefactorActionsOutput, ListStackRefactorsInput as ListStackRefactorsInput, + ListStackRefactorsInputDict as ListStackRefactorsInputDict, ListStackRefactorsOutput as ListStackRefactorsOutput, ListStackResourcesInput as ListStackResourcesInput, + ListStackResourcesInputDict as ListStackResourcesInputDict, ListStackResourcesOutput as ListStackResourcesOutput, ListStackSetAutoDeploymentTargetsInput as ListStackSetAutoDeploymentTargetsInput, + ListStackSetAutoDeploymentTargetsInputDict as ListStackSetAutoDeploymentTargetsInputDict, ListStackSetAutoDeploymentTargetsOutput as ListStackSetAutoDeploymentTargetsOutput, ListStackSetOperationResultsInput as ListStackSetOperationResultsInput, + ListStackSetOperationResultsInputDict as ListStackSetOperationResultsInputDict, ListStackSetOperationResultsOutput as ListStackSetOperationResultsOutput, ListStackSetOperationsInput as ListStackSetOperationsInput, + ListStackSetOperationsInputDict as ListStackSetOperationsInputDict, ListStackSetOperationsOutput as ListStackSetOperationsOutput, ListStackSetsInput as ListStackSetsInput, + ListStackSetsInputDict as ListStackSetsInputDict, ListStackSetsOutput as ListStackSetsOutput, ListStacksInput as ListStacksInput, + ListStacksInputDict as ListStacksInputDict, ListStacksOutput as ListStacksOutput, ListTypeRegistrationsInput as ListTypeRegistrationsInput, + ListTypeRegistrationsInputDict as ListTypeRegistrationsInputDict, ListTypeRegistrationsOutput as ListTypeRegistrationsOutput, ListTypesInput as ListTypesInput, + ListTypesInputDict as ListTypesInputDict, ListTypesOutput as ListTypesOutput, ListTypeVersionsInput as ListTypeVersionsInput, + ListTypeVersionsInputDict as ListTypeVersionsInputDict, ListTypeVersionsOutput as ListTypeVersionsOutput, LiveResourceDrift as LiveResourceDrift, LoggingConfig as LoggingConfig, + LoggingConfigDict as LoggingConfigDict, ManagedExecution as ManagedExecution, + ManagedExecutionDict as ManagedExecutionDict, ModuleInfo as ModuleInfo, NameAlreadyExistsException as NameAlreadyExistsException, OnFailure as OnFailure, @@ -233,6 +311,7 @@ from ._private.models_0 import ( OperationInProgressException as OperationInProgressException, OperationNotFoundException as OperationNotFoundException, OperationResultFilter as OperationResultFilter, + OperationResultFilterDict as OperationResultFilterDict, OperationResultFilterName as OperationResultFilterName, OperationStatus as OperationStatus, OperationStatusCheckFailedException as OperationStatusCheckFailedException, @@ -240,6 +319,7 @@ from ._private.models_0 import ( OrganizationStatus as OrganizationStatus, Output as Output, Parameter as Parameter, + ParameterDict as ParameterDict, ParameterConstraints as ParameterConstraints, ParameterDeclaration as ParameterDeclaration, PermissionModels as PermissionModels, @@ -249,13 +329,17 @@ from ._private.models_0 import ( ProvisioningType as ProvisioningType, PublisherStatus as PublisherStatus, PublishTypeInput as PublishTypeInput, + PublishTypeInputDict as PublishTypeInputDict, PublishTypeOutput as PublishTypeOutput, RecordHandlerProgressInput as RecordHandlerProgressInput, + RecordHandlerProgressInputDict as RecordHandlerProgressInputDict, RecordHandlerProgressOutput as RecordHandlerProgressOutput, RegionConcurrencyType as RegionConcurrencyType, RegisterPublisherInput as RegisterPublisherInput, + RegisterPublisherInputDict as RegisterPublisherInputDict, RegisterPublisherOutput as RegisterPublisherOutput, RegisterTypeInput as RegisterTypeInput, + RegisterTypeInputDict as RegisterTypeInputDict, RegisterTypeOutput as RegisterTypeOutput, RegistrationStatus as RegistrationStatus, ) @@ -269,11 +353,14 @@ from ._private.models_1 import ( ResourceChange as ResourceChange, ResourceChangeDetail as ResourceChangeDetail, ResourceDefinition as ResourceDefinition, + ResourceDefinitionDict as ResourceDefinitionDict, ResourceDetail as ResourceDetail, ResourceDriftIgnoredAttribute as ResourceDriftIgnoredAttribute, ResourceIdentifierSummary as ResourceIdentifierSummary, ResourceLocation as ResourceLocation, + ResourceLocationDict as ResourceLocationDict, ResourceMapping as ResourceMapping, + ResourceMappingDict as ResourceMappingDict, ResourceScanInProgressException as ResourceScanInProgressException, ResourceScanLimitExceededException as ResourceScanLimitExceededException, ResourceScanNotFoundException as ResourceScanNotFoundException, @@ -283,24 +370,35 @@ from ._private.models_1 import ( ResourceStatus as ResourceStatus, ResourceTargetDefinition as ResourceTargetDefinition, ResourceToImport as ResourceToImport, + ResourceToImportDict as ResourceToImportDict, RollbackConfiguration as RollbackConfiguration, + RollbackConfigurationDict as RollbackConfigurationDict, RollbackStackInput as RollbackStackInput, + RollbackStackInputDict as RollbackStackInputDict, RollbackStackOutput as RollbackStackOutput, RollbackTrigger as RollbackTrigger, + RollbackTriggerDict as RollbackTriggerDict, ScanFilter as ScanFilter, + ScanFilterDict as ScanFilterDict, ScannedResource as ScannedResource, ScannedResourceIdentifier as ScannedResourceIdentifier, + ScannedResourceIdentifierDict as ScannedResourceIdentifierDict, ScanType as ScanType, SetStackPolicyInput as SetStackPolicyInput, + SetStackPolicyInputDict as SetStackPolicyInputDict, SetStackPolicyOutput as SetStackPolicyOutput, SetTypeConfigurationInput as SetTypeConfigurationInput, + SetTypeConfigurationInputDict as SetTypeConfigurationInputDict, SetTypeConfigurationOutput as SetTypeConfigurationOutput, SetTypeDefaultVersionInput as SetTypeDefaultVersionInput, + SetTypeDefaultVersionInputDict as SetTypeDefaultVersionInputDict, SetTypeDefaultVersionOutput as SetTypeDefaultVersionOutput, SignalResourceInput as SignalResourceInput, + SignalResourceInputDict as SignalResourceInputDict, SignalResourceOutput as SignalResourceOutput, Stack as Stack, StackDefinition as StackDefinition, + StackDefinitionDict as StackDefinitionDict, StackDriftDetectionStatus as StackDriftDetectionStatus, StackDriftInformation as StackDriftInformation, StackDriftInformationSummary as StackDriftInformationSummary, @@ -310,6 +408,7 @@ from ._private.models_1 import ( StackInstanceComprehensiveStatus as StackInstanceComprehensiveStatus, StackInstanceDetailedStatus as StackInstanceDetailedStatus, StackInstanceFilter as StackInstanceFilter, + StackInstanceFilterDict as StackInstanceFilterDict, StackInstanceFilterName as StackInstanceFilterName, StackInstanceNotFoundException as StackInstanceNotFoundException, StackInstanceResourceDriftsSummary as StackInstanceResourceDriftsSummary, @@ -341,6 +440,7 @@ from ._private.models_1 import ( StackSetOperation as StackSetOperation, StackSetOperationAction as StackSetOperationAction, StackSetOperationPreferences as StackSetOperationPreferences, + StackSetOperationPreferencesDict as StackSetOperationPreferencesDict, StackSetOperationResultStatus as StackSetOperationResultStatus, StackSetOperationResultSummary as StackSetOperationResultSummary, StackSetOperationStatus as StackSetOperationStatus, @@ -352,40 +452,54 @@ from ._private.models_1 import ( StackSummary as StackSummary, StaleRequestException as StaleRequestException, StartResourceScanInput as StartResourceScanInput, + StartResourceScanInputDict as StartResourceScanInputDict, StartResourceScanOutput as StartResourceScanOutput, StopStackSetOperationInput as StopStackSetOperationInput, + StopStackSetOperationInputDict as StopStackSetOperationInputDict, StopStackSetOperationOutput as StopStackSetOperationOutput, Tag as Tag, + TagDict as TagDict, TemplateConfiguration as TemplateConfiguration, + TemplateConfigurationDict as TemplateConfigurationDict, TemplateFormat as TemplateFormat, TemplateParameter as TemplateParameter, TemplateProgress as TemplateProgress, TemplateStage as TemplateStage, TemplateSummary as TemplateSummary, TemplateSummaryConfig as TemplateSummaryConfig, + TemplateSummaryConfigDict as TemplateSummaryConfigDict, TestTypeInput as TestTypeInput, + TestTypeInputDict as TestTypeInputDict, TestTypeOutput as TestTypeOutput, ThirdPartyType as ThirdPartyType, TokenAlreadyExistsException as TokenAlreadyExistsException, TypeConfigurationDetails as TypeConfigurationDetails, TypeConfigurationIdentifier as TypeConfigurationIdentifier, + TypeConfigurationIdentifierDict as TypeConfigurationIdentifierDict, TypeConfigurationNotFoundException as TypeConfigurationNotFoundException, TypeFilters as TypeFilters, + TypeFiltersDict as TypeFiltersDict, TypeNotFoundException as TypeNotFoundException, TypeSummary as TypeSummary, TypeTestsStatus as TypeTestsStatus, TypeVersionSummary as TypeVersionSummary, UpdateGeneratedTemplateInput as UpdateGeneratedTemplateInput, + UpdateGeneratedTemplateInputDict as UpdateGeneratedTemplateInputDict, UpdateGeneratedTemplateOutput as UpdateGeneratedTemplateOutput, UpdateStackInput as UpdateStackInput, + UpdateStackInputDict as UpdateStackInputDict, UpdateStackInstancesInput as UpdateStackInstancesInput, + UpdateStackInstancesInputDict as UpdateStackInstancesInputDict, UpdateStackInstancesOutput as UpdateStackInstancesOutput, UpdateStackOutput as UpdateStackOutput, UpdateStackSetInput as UpdateStackSetInput, + UpdateStackSetInputDict as UpdateStackSetInputDict, UpdateStackSetOutput as UpdateStackSetOutput, UpdateTerminationProtectionInput as UpdateTerminationProtectionInput, + UpdateTerminationProtectionInputDict as UpdateTerminationProtectionInputDict, UpdateTerminationProtectionOutput as UpdateTerminationProtectionOutput, ValidateTemplateInput as ValidateTemplateInput, + ValidateTemplateInputDict as ValidateTemplateInputDict, ValidateTemplateOutput as ValidateTemplateOutput, ValidationStatus as ValidationStatus, VersionBump as VersionBump, diff --git a/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/py.typed b/clients/aws-sdk-cloudformation/src/aws_sdk_cloudformation/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-cloudformation/tests/_typecheck.py b/clients/aws-sdk-cloudformation/tests/_typecheck.py index 5c617d969..14654ff9b 100644 --- a/clients/aws-sdk-cloudformation/tests/_typecheck.py +++ b/clients/aws-sdk-cloudformation/tests/_typecheck.py @@ -2,19 +2,26 @@ from typing import Any +from aws_sdk_cloudformation.aio.client import AsyncCloudFormationClient +from aws_sdk_cloudformation.client import CloudFormationClient from aws_sdk_cloudformation.models import ( AccountGateResult, AccountLimit, ActivateOrganizationsAccessInput, + ActivateOrganizationsAccessInputDict, ActivateOrganizationsAccessOutput, ActivateTypeInput, + ActivateTypeInputDict, ActivateTypeOutput, Annotation, AutoDeployment, + AutoDeploymentDict, BatchDescribeTypeConfigurationsError, BatchDescribeTypeConfigurationsInput, + BatchDescribeTypeConfigurationsInputDict, BatchDescribeTypeConfigurationsOutput, CancelUpdateStackInput, + CancelUpdateStackInputDict, CancelUpdateStackOutput, Change, ChangeSetHook, @@ -22,203 +29,297 @@ ChangeSetHookTargetDetails, ChangeSetSummary, ContinueUpdateRollbackInput, + ContinueUpdateRollbackInputDict, ContinueUpdateRollbackOutput, CreateChangeSetInput, + CreateChangeSetInputDict, CreateChangeSetOutput, CreateGeneratedTemplateInput, + CreateGeneratedTemplateInputDict, CreateGeneratedTemplateOutput, CreateStackInput, + CreateStackInputDict, CreateStackInstancesInput, + CreateStackInstancesInputDict, CreateStackInstancesOutput, CreateStackOutput, CreateStackRefactorInput, + CreateStackRefactorInputDict, CreateStackRefactorOutput, CreateStackSetInput, + CreateStackSetInputDict, CreateStackSetOutput, DeactivateOrganizationsAccessInput, + DeactivateOrganizationsAccessInputDict, DeactivateOrganizationsAccessOutput, DeactivateTypeInput, + DeactivateTypeInputDict, DeactivateTypeOutput, DeleteChangeSetInput, + DeleteChangeSetInputDict, DeleteChangeSetOutput, DeleteGeneratedTemplateInput, + DeleteGeneratedTemplateInputDict, DeleteGeneratedTemplateOutput, DeleteStackInput, + DeleteStackInputDict, DeleteStackInstancesInput, + DeleteStackInstancesInputDict, DeleteStackInstancesOutput, DeleteStackOutput, DeleteStackSetInput, + DeleteStackSetInputDict, DeleteStackSetOutput, DeploymentConfig, + DeploymentConfigDict, DeploymentTargets, + DeploymentTargetsDict, DeregisterTypeInput, + DeregisterTypeInputDict, DeregisterTypeOutput, DescribeAccountLimitsInput, + DescribeAccountLimitsInputDict, DescribeAccountLimitsOutput, DescribeChangeSetHooksInput, + DescribeChangeSetHooksInputDict, DescribeChangeSetHooksOutput, DescribeChangeSetInput, + DescribeChangeSetInputDict, DescribeChangeSetOutput, DescribeEventsInput, + DescribeEventsInputDict, DescribeEventsOutput, DescribeGeneratedTemplateInput, + DescribeGeneratedTemplateInputDict, DescribeGeneratedTemplateOutput, DescribeOrganizationsAccessInput, + DescribeOrganizationsAccessInputDict, DescribeOrganizationsAccessOutput, DescribePublisherInput, + DescribePublisherInputDict, DescribePublisherOutput, DescribeResourceScanInput, + DescribeResourceScanInputDict, DescribeResourceScanOutput, DescribeStackDriftDetectionStatusInput, + DescribeStackDriftDetectionStatusInputDict, DescribeStackDriftDetectionStatusOutput, DescribeStackEventsInput, + DescribeStackEventsInputDict, DescribeStackEventsOutput, DescribeStackInstanceInput, + DescribeStackInstanceInputDict, DescribeStackInstanceOutput, DescribeStackRefactorInput, + DescribeStackRefactorInputDict, DescribeStackRefactorOutput, DescribeStackResourceDriftsInput, + DescribeStackResourceDriftsInputDict, DescribeStackResourceDriftsOutput, DescribeStackResourceInput, + DescribeStackResourceInputDict, DescribeStackResourceOutput, DescribeStackResourcesInput, + DescribeStackResourcesInputDict, DescribeStackResourcesOutput, DescribeStackSetInput, + DescribeStackSetInputDict, DescribeStackSetOperationInput, + DescribeStackSetOperationInputDict, DescribeStackSetOperationOutput, DescribeStackSetOutput, DescribeStacksInput, + DescribeStacksInputDict, DescribeStacksOutput, DescribeTypeInput, + DescribeTypeInputDict, DescribeTypeOutput, DescribeTypeRegistrationInput, + DescribeTypeRegistrationInputDict, DescribeTypeRegistrationOutput, DetectStackDriftInput, + DetectStackDriftInputDict, DetectStackDriftOutput, DetectStackResourceDriftInput, + DetectStackResourceDriftInputDict, DetectStackResourceDriftOutput, DetectStackSetDriftInput, + DetectStackSetDriftInputDict, DetectStackSetDriftOutput, EstimateTemplateCostInput, + EstimateTemplateCostInputDict, EstimateTemplateCostOutput, EventFilter, + EventFilterDict, ExecuteChangeSetInput, + ExecuteChangeSetInputDict, ExecuteChangeSetOutput, ExecuteStackRefactorInput, + ExecuteStackRefactorInputDict, ExecuteStackRefactorOutput, Export, GetGeneratedTemplateInput, + GetGeneratedTemplateInputDict, GetGeneratedTemplateOutput, GetHookResultInput, + GetHookResultInputDict, GetHookResultOutput, GetStackPolicyInput, + GetStackPolicyInputDict, GetStackPolicyOutput, GetTemplateInput, + GetTemplateInputDict, GetTemplateOutput, GetTemplateSummaryInput, + GetTemplateSummaryInputDict, GetTemplateSummaryOutput, HookResultSummary, HookTarget, ImportStacksToStackSetInput, + ImportStacksToStackSetInputDict, ImportStacksToStackSetOutput, ListChangeSetsInput, + ListChangeSetsInputDict, ListChangeSetsOutput, ListExportsInput, + ListExportsInputDict, ListExportsOutput, ListGeneratedTemplatesInput, + ListGeneratedTemplatesInputDict, ListGeneratedTemplatesOutput, ListHookResultsInput, + ListHookResultsInputDict, ListHookResultsOutput, ListImportsInput, + ListImportsInputDict, ListImportsOutput, ListResourceScanRelatedResourcesInput, + ListResourceScanRelatedResourcesInputDict, ListResourceScanRelatedResourcesOutput, ListResourceScanResourcesInput, + ListResourceScanResourcesInputDict, ListResourceScanResourcesOutput, ListResourceScansInput, + ListResourceScansInputDict, ListResourceScansOutput, ListStackInstanceResourceDriftsInput, + ListStackInstanceResourceDriftsInputDict, ListStackInstanceResourceDriftsOutput, ListStackInstancesInput, + ListStackInstancesInputDict, ListStackInstancesOutput, ListStackRefactorActionsInput, + ListStackRefactorActionsInputDict, ListStackRefactorActionsOutput, ListStackRefactorsInput, + ListStackRefactorsInputDict, ListStackRefactorsOutput, ListStackResourcesInput, + ListStackResourcesInputDict, ListStackResourcesOutput, ListStackSetAutoDeploymentTargetsInput, + ListStackSetAutoDeploymentTargetsInputDict, ListStackSetAutoDeploymentTargetsOutput, ListStackSetOperationResultsInput, + ListStackSetOperationResultsInputDict, ListStackSetOperationResultsOutput, ListStackSetOperationsInput, + ListStackSetOperationsInputDict, ListStackSetOperationsOutput, ListStackSetsInput, + ListStackSetsInputDict, ListStackSetsOutput, ListStacksInput, + ListStacksInputDict, ListStacksOutput, ListTypeRegistrationsInput, + ListTypeRegistrationsInputDict, ListTypeRegistrationsOutput, ListTypeVersionsInput, + ListTypeVersionsInputDict, ListTypeVersionsOutput, ListTypesInput, + ListTypesInputDict, ListTypesOutput, LiveResourceDrift, LoggingConfig, + LoggingConfigDict, ManagedExecution, + ManagedExecutionDict, ModuleInfo, OperationEntry, OperationEvent, OperationResultFilter, + OperationResultFilterDict, Output, Parameter, ParameterConstraints, ParameterDeclaration, + ParameterDict, PhysicalResourceIdContextKeyValuePair, PropertyDifference, PublishTypeInput, + PublishTypeInputDict, PublishTypeOutput, RecordHandlerProgressInput, + RecordHandlerProgressInputDict, RecordHandlerProgressOutput, RegisterPublisherInput, + RegisterPublisherInputDict, RegisterPublisherOutput, RegisterTypeInput, + RegisterTypeInputDict, RegisterTypeOutput, RequiredActivatedType, ResourceChange, ResourceChangeDetail, ResourceDefinition, + ResourceDefinitionDict, ResourceDetail, ResourceDriftIgnoredAttribute, ResourceIdentifierSummary, ResourceLocation, + ResourceLocationDict, ResourceMapping, + ResourceMappingDict, ResourceScanSummary, ResourceTargetDefinition, ResourceToImport, + ResourceToImportDict, RollbackConfiguration, + RollbackConfigurationDict, RollbackStackInput, + RollbackStackInputDict, RollbackStackOutput, RollbackTrigger, + RollbackTriggerDict, ScanFilter, + ScanFilterDict, ScannedResource, ScannedResourceIdentifier, + ScannedResourceIdentifierDict, SetStackPolicyInput, + SetStackPolicyInputDict, SetStackPolicyOutput, SetTypeConfigurationInput, + SetTypeConfigurationInputDict, SetTypeConfigurationOutput, SetTypeDefaultVersionInput, + SetTypeDefaultVersionInputDict, SetTypeDefaultVersionOutput, SignalResourceInput, + SignalResourceInputDict, SignalResourceOutput, Stack, StackDefinition, + StackDefinitionDict, StackDriftInformation, StackDriftInformationSummary, StackEvent, StackInstance, StackInstanceComprehensiveStatus, StackInstanceFilter, + StackInstanceFilterDict, StackInstanceResourceDriftsSummary, StackInstanceSummary, StackRefactorAction, @@ -234,39 +335,54 @@ StackSetDriftDetectionDetails, StackSetOperation, StackSetOperationPreferences, + StackSetOperationPreferencesDict, StackSetOperationResultSummary, StackSetOperationStatusDetails, StackSetOperationSummary, StackSetSummary, StackSummary, StartResourceScanInput, + StartResourceScanInputDict, StartResourceScanOutput, StopStackSetOperationInput, + StopStackSetOperationInputDict, StopStackSetOperationOutput, Tag, + TagDict, TemplateConfiguration, + TemplateConfigurationDict, TemplateParameter, TemplateProgress, TemplateSummary, TemplateSummaryConfig, + TemplateSummaryConfigDict, TestTypeInput, + TestTypeInputDict, TestTypeOutput, TypeConfigurationDetails, TypeConfigurationIdentifier, + TypeConfigurationIdentifierDict, TypeFilters, + TypeFiltersDict, TypeSummary, TypeVersionSummary, UpdateGeneratedTemplateInput, + UpdateGeneratedTemplateInputDict, UpdateGeneratedTemplateOutput, UpdateStackInput, + UpdateStackInputDict, UpdateStackInstancesInput, + UpdateStackInstancesInputDict, UpdateStackInstancesOutput, UpdateStackOutput, UpdateStackSetInput, + UpdateStackSetInputDict, UpdateStackSetOutput, UpdateTerminationProtectionInput, + UpdateTerminationProtectionInputDict, UpdateTerminationProtectionOutput, ValidateTemplateInput, + ValidateTemplateInputDict, ValidateTemplateOutput, WarningDetail, WarningProperty, @@ -274,8 +390,9 @@ ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -547,3 +664,1045 @@ WarningDetail() WarningProperty() Warnings() +_params_0: ActivateOrganizationsAccessInputDict = {} +_params_1: ActivateTypeInputDict = {} +_params_2: AutoDeploymentDict = {} +_params_3: BatchDescribeTypeConfigurationsInputDict = { + "type_configuration_identifiers": _ +} +_params_4: CancelUpdateStackInputDict = {"stack_name": _} +_params_5: ContinueUpdateRollbackInputDict = {"stack_name": _} +_params_6: CreateChangeSetInputDict = {"stack_name": _, "change_set_name": _} +_params_7: CreateGeneratedTemplateInputDict = {"generated_template_name": _} +_params_8: CreateStackInputDict = {"stack_name": _} +_params_9: CreateStackInstancesInputDict = {"stack_set_name": _, "regions": _} +_params_10: CreateStackRefactorInputDict = {"stack_definitions": _} +_params_11: CreateStackSetInputDict = {"stack_set_name": _} +_params_12: DeactivateOrganizationsAccessInputDict = {} +_params_13: DeactivateTypeInputDict = {} +_params_14: DeleteChangeSetInputDict = {"change_set_name": _} +_params_15: DeleteGeneratedTemplateInputDict = {"generated_template_name": _} +_params_16: DeleteStackInputDict = {"stack_name": _} +_params_17: DeleteStackInstancesInputDict = { + "stack_set_name": _, + "regions": _, + "retain_stacks": _, +} +_params_18: DeleteStackSetInputDict = {"stack_set_name": _} +_params_19: DeploymentConfigDict = {} +_params_20: DeploymentTargetsDict = {} +_params_21: DeregisterTypeInputDict = {} +_params_22: DescribeAccountLimitsInputDict = {} +_params_23: DescribeChangeSetHooksInputDict = {"change_set_name": _} +_params_24: DescribeChangeSetInputDict = {"change_set_name": _} +_params_25: DescribeEventsInputDict = {} +_params_26: DescribeGeneratedTemplateInputDict = {"generated_template_name": _} +_params_27: DescribeOrganizationsAccessInputDict = {} +_params_28: DescribePublisherInputDict = {} +_params_29: DescribeResourceScanInputDict = {"resource_scan_id": _} +_params_30: DescribeStackDriftDetectionStatusInputDict = {"stack_drift_detection_id": _} +_params_31: DescribeStackEventsInputDict = {"stack_name": _} +_params_32: DescribeStackInstanceInputDict = { + "stack_set_name": _, + "stack_instance_account": _, + "stack_instance_region": _, +} +_params_33: DescribeStackRefactorInputDict = {"stack_refactor_id": _} +_params_34: DescribeStackResourceDriftsInputDict = {"stack_name": _} +_params_35: DescribeStackResourceInputDict = {"stack_name": _, "logical_resource_id": _} +_params_36: DescribeStackResourcesInputDict = {} +_params_37: DescribeStackSetInputDict = {"stack_set_name": _} +_params_38: DescribeStackSetOperationInputDict = { + "stack_set_name": _, + "operation_id": _, +} +_params_39: DescribeStacksInputDict = {} +_params_40: DescribeTypeInputDict = {} +_params_41: DescribeTypeRegistrationInputDict = {"registration_token": _} +_params_42: DetectStackDriftInputDict = {"stack_name": _} +_params_43: DetectStackResourceDriftInputDict = { + "stack_name": _, + "logical_resource_id": _, +} +_params_44: DetectStackSetDriftInputDict = {"stack_set_name": _} +_params_45: EstimateTemplateCostInputDict = {} +_params_46: EventFilterDict = {} +_params_47: ExecuteChangeSetInputDict = {"change_set_name": _} +_params_48: ExecuteStackRefactorInputDict = {"stack_refactor_id": _} +_params_49: GetGeneratedTemplateInputDict = {"generated_template_name": _} +_params_50: GetHookResultInputDict = {} +_params_51: GetStackPolicyInputDict = {"stack_name": _} +_params_52: GetTemplateInputDict = {} +_params_53: GetTemplateSummaryInputDict = {} +_params_54: ImportStacksToStackSetInputDict = {"stack_set_name": _} +_params_55: ListChangeSetsInputDict = {"stack_name": _} +_params_56: ListExportsInputDict = {} +_params_57: ListGeneratedTemplatesInputDict = {} +_params_58: ListHookResultsInputDict = {} +_params_59: ListImportsInputDict = {"export_name": _} +_params_60: ListResourceScanRelatedResourcesInputDict = { + "resource_scan_id": _, + "resources": _, +} +_params_61: ListResourceScanResourcesInputDict = {"resource_scan_id": _} +_params_62: ListResourceScansInputDict = {} +_params_63: ListStackInstanceResourceDriftsInputDict = { + "stack_set_name": _, + "stack_instance_account": _, + "stack_instance_region": _, + "operation_id": _, +} +_params_64: ListStackInstancesInputDict = {"stack_set_name": _} +_params_65: ListStackRefactorActionsInputDict = {"stack_refactor_id": _} +_params_66: ListStackRefactorsInputDict = {} +_params_67: ListStackResourcesInputDict = {"stack_name": _} +_params_68: ListStackSetAutoDeploymentTargetsInputDict = {"stack_set_name": _} +_params_69: ListStackSetOperationResultsInputDict = { + "stack_set_name": _, + "operation_id": _, +} +_params_70: ListStackSetOperationsInputDict = {"stack_set_name": _} +_params_71: ListStackSetsInputDict = {} +_params_72: ListStacksInputDict = {} +_params_73: ListTypeRegistrationsInputDict = {} +_params_74: ListTypesInputDict = {} +_params_75: ListTypeVersionsInputDict = {} +_params_76: LoggingConfigDict = {"log_role_arn": _, "log_group_name": _} +_params_77: ManagedExecutionDict = {} +_params_78: OperationResultFilterDict = {} +_params_79: ParameterDict = {} +_params_80: PublishTypeInputDict = {} +_params_81: RecordHandlerProgressInputDict = {"bearer_token": _, "operation_status": _} +_params_82: RegisterPublisherInputDict = {} +_params_83: RegisterTypeInputDict = {"type_name": _, "schema_handler_package": _} +_params_84: ResourceDefinitionDict = {"resource_type": _, "resource_identifier": _} +_params_85: ResourceLocationDict = {"stack_name": _, "logical_resource_id": _} +_params_86: ResourceMappingDict = {"source": _, "destination": _} +_params_87: ResourceToImportDict = { + "resource_type": _, + "logical_resource_id": _, + "resource_identifier": _, +} +_params_88: RollbackConfigurationDict = {} +_params_89: RollbackStackInputDict = {"stack_name": _} +_params_90: RollbackTriggerDict = {"arn": _, "type": _} +_params_91: ScanFilterDict = {} +_params_92: ScannedResourceIdentifierDict = { + "resource_type": _, + "resource_identifier": _, +} +_params_93: SetStackPolicyInputDict = {"stack_name": _} +_params_94: SetTypeConfigurationInputDict = {"configuration": _} +_params_95: SetTypeDefaultVersionInputDict = {} +_params_96: SignalResourceInputDict = { + "stack_name": _, + "logical_resource_id": _, + "unique_id": _, + "status": _, +} +_params_97: StackDefinitionDict = {} +_params_98: StackInstanceFilterDict = {} +_params_99: StackSetOperationPreferencesDict = {} +_params_100: StartResourceScanInputDict = {} +_params_101: StopStackSetOperationInputDict = {"stack_set_name": _, "operation_id": _} +_params_102: TagDict = {"key": _, "value": _} +_params_103: TemplateConfigurationDict = {} +_params_104: TemplateSummaryConfigDict = {} +_params_105: TestTypeInputDict = {} +_params_106: TypeConfigurationIdentifierDict = {} +_params_107: TypeFiltersDict = {} +_params_108: UpdateGeneratedTemplateInputDict = {"generated_template_name": _} +_params_109: UpdateStackInputDict = {"stack_name": _} +_params_110: UpdateStackInstancesInputDict = {"stack_set_name": _, "regions": _} +_params_111: UpdateStackSetInputDict = {"stack_set_name": _} +_params_112: UpdateTerminationProtectionInputDict = { + "enable_termination_protection": _, + "stack_name": _, +} +_params_113: ValidateTemplateInputDict = {} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncCloudFormationClient) -> None: + pass + await client.activate_organizations_access() + await client.activate_organizations_access( + **_request(ActivateOrganizationsAccessInputDict) + ) + await client.activate_organizations_access( + _request(ActivateOrganizationsAccessInput) + ) + await client.activate_organizations_access( + _request(ActivateOrganizationsAccessInputDict) + ) + await client.activate_type() + await client.activate_type(**_request(ActivateTypeInputDict)) + await client.activate_type(_request(ActivateTypeInput)) + await client.activate_type(_request(ActivateTypeInputDict)) + await client.batch_describe_type_configurations(type_configuration_identifiers=_) + await client.batch_describe_type_configurations( + **_request(BatchDescribeTypeConfigurationsInputDict) + ) + await client.batch_describe_type_configurations( + _request(BatchDescribeTypeConfigurationsInput) + ) + await client.batch_describe_type_configurations( + _request(BatchDescribeTypeConfigurationsInputDict) + ) + await client.cancel_update_stack(stack_name=_) + await client.cancel_update_stack(**_request(CancelUpdateStackInputDict)) + await client.cancel_update_stack(_request(CancelUpdateStackInput)) + await client.cancel_update_stack(_request(CancelUpdateStackInputDict)) + await client.continue_update_rollback(stack_name=_) + await client.continue_update_rollback(**_request(ContinueUpdateRollbackInputDict)) + await client.continue_update_rollback(_request(ContinueUpdateRollbackInput)) + await client.continue_update_rollback(_request(ContinueUpdateRollbackInputDict)) + await client.create_change_set(stack_name=_, change_set_name=_) + await client.create_change_set(**_request(CreateChangeSetInputDict)) + await client.create_change_set(_request(CreateChangeSetInput)) + await client.create_change_set(_request(CreateChangeSetInputDict)) + await client.create_generated_template(generated_template_name=_) + await client.create_generated_template(**_request(CreateGeneratedTemplateInputDict)) + await client.create_generated_template(_request(CreateGeneratedTemplateInput)) + await client.create_generated_template(_request(CreateGeneratedTemplateInputDict)) + await client.create_stack(stack_name=_) + await client.create_stack(**_request(CreateStackInputDict)) + await client.create_stack(_request(CreateStackInput)) + await client.create_stack(_request(CreateStackInputDict)) + await client.create_stack_instances(stack_set_name=_, regions=_) + await client.create_stack_instances(**_request(CreateStackInstancesInputDict)) + await client.create_stack_instances(_request(CreateStackInstancesInput)) + await client.create_stack_instances(_request(CreateStackInstancesInputDict)) + await client.create_stack_refactor(stack_definitions=_) + await client.create_stack_refactor(**_request(CreateStackRefactorInputDict)) + await client.create_stack_refactor(_request(CreateStackRefactorInput)) + await client.create_stack_refactor(_request(CreateStackRefactorInputDict)) + await client.create_stack_set(stack_set_name=_) + await client.create_stack_set(**_request(CreateStackSetInputDict)) + await client.create_stack_set(_request(CreateStackSetInput)) + await client.create_stack_set(_request(CreateStackSetInputDict)) + await client.deactivate_organizations_access() + await client.deactivate_organizations_access( + **_request(DeactivateOrganizationsAccessInputDict) + ) + await client.deactivate_organizations_access( + _request(DeactivateOrganizationsAccessInput) + ) + await client.deactivate_organizations_access( + _request(DeactivateOrganizationsAccessInputDict) + ) + await client.deactivate_type() + await client.deactivate_type(**_request(DeactivateTypeInputDict)) + await client.deactivate_type(_request(DeactivateTypeInput)) + await client.deactivate_type(_request(DeactivateTypeInputDict)) + await client.delete_change_set(change_set_name=_) + await client.delete_change_set(**_request(DeleteChangeSetInputDict)) + await client.delete_change_set(_request(DeleteChangeSetInput)) + await client.delete_change_set(_request(DeleteChangeSetInputDict)) + await client.delete_generated_template(generated_template_name=_) + await client.delete_generated_template(**_request(DeleteGeneratedTemplateInputDict)) + await client.delete_generated_template(_request(DeleteGeneratedTemplateInput)) + await client.delete_generated_template(_request(DeleteGeneratedTemplateInputDict)) + await client.delete_stack(stack_name=_) + await client.delete_stack(**_request(DeleteStackInputDict)) + await client.delete_stack(_request(DeleteStackInput)) + await client.delete_stack(_request(DeleteStackInputDict)) + await client.delete_stack_instances(stack_set_name=_, regions=_, retain_stacks=_) + await client.delete_stack_instances(**_request(DeleteStackInstancesInputDict)) + await client.delete_stack_instances(_request(DeleteStackInstancesInput)) + await client.delete_stack_instances(_request(DeleteStackInstancesInputDict)) + await client.delete_stack_set(stack_set_name=_) + await client.delete_stack_set(**_request(DeleteStackSetInputDict)) + await client.delete_stack_set(_request(DeleteStackSetInput)) + await client.delete_stack_set(_request(DeleteStackSetInputDict)) + await client.deregister_type() + await client.deregister_type(**_request(DeregisterTypeInputDict)) + await client.deregister_type(_request(DeregisterTypeInput)) + await client.deregister_type(_request(DeregisterTypeInputDict)) + await client.describe_account_limits() + await client.describe_account_limits(**_request(DescribeAccountLimitsInputDict)) + await client.describe_account_limits(_request(DescribeAccountLimitsInput)) + await client.describe_account_limits(_request(DescribeAccountLimitsInputDict)) + await client.describe_change_set(change_set_name=_) + await client.describe_change_set(**_request(DescribeChangeSetInputDict)) + await client.describe_change_set(_request(DescribeChangeSetInput)) + await client.describe_change_set(_request(DescribeChangeSetInputDict)) + await client.describe_change_set_hooks(change_set_name=_) + await client.describe_change_set_hooks(**_request(DescribeChangeSetHooksInputDict)) + await client.describe_change_set_hooks(_request(DescribeChangeSetHooksInput)) + await client.describe_change_set_hooks(_request(DescribeChangeSetHooksInputDict)) + await client.describe_events() + await client.describe_events(**_request(DescribeEventsInputDict)) + await client.describe_events(_request(DescribeEventsInput)) + await client.describe_events(_request(DescribeEventsInputDict)) + await client.describe_generated_template(generated_template_name=_) + await client.describe_generated_template( + **_request(DescribeGeneratedTemplateInputDict) + ) + await client.describe_generated_template(_request(DescribeGeneratedTemplateInput)) + await client.describe_generated_template( + _request(DescribeGeneratedTemplateInputDict) + ) + await client.describe_organizations_access() + await client.describe_organizations_access( + **_request(DescribeOrganizationsAccessInputDict) + ) + await client.describe_organizations_access( + _request(DescribeOrganizationsAccessInput) + ) + await client.describe_organizations_access( + _request(DescribeOrganizationsAccessInputDict) + ) + await client.describe_publisher() + await client.describe_publisher(**_request(DescribePublisherInputDict)) + await client.describe_publisher(_request(DescribePublisherInput)) + await client.describe_publisher(_request(DescribePublisherInputDict)) + await client.describe_resource_scan(resource_scan_id=_) + await client.describe_resource_scan(**_request(DescribeResourceScanInputDict)) + await client.describe_resource_scan(_request(DescribeResourceScanInput)) + await client.describe_resource_scan(_request(DescribeResourceScanInputDict)) + await client.describe_stack_drift_detection_status(stack_drift_detection_id=_) + await client.describe_stack_drift_detection_status( + **_request(DescribeStackDriftDetectionStatusInputDict) + ) + await client.describe_stack_drift_detection_status( + _request(DescribeStackDriftDetectionStatusInput) + ) + await client.describe_stack_drift_detection_status( + _request(DescribeStackDriftDetectionStatusInputDict) + ) + await client.describe_stack_events(stack_name=_) + await client.describe_stack_events(**_request(DescribeStackEventsInputDict)) + await client.describe_stack_events(_request(DescribeStackEventsInput)) + await client.describe_stack_events(_request(DescribeStackEventsInputDict)) + await client.describe_stack_instance( + stack_set_name=_, stack_instance_account=_, stack_instance_region=_ + ) + await client.describe_stack_instance(**_request(DescribeStackInstanceInputDict)) + await client.describe_stack_instance(_request(DescribeStackInstanceInput)) + await client.describe_stack_instance(_request(DescribeStackInstanceInputDict)) + await client.describe_stack_refactor(stack_refactor_id=_) + await client.describe_stack_refactor(**_request(DescribeStackRefactorInputDict)) + await client.describe_stack_refactor(_request(DescribeStackRefactorInput)) + await client.describe_stack_refactor(_request(DescribeStackRefactorInputDict)) + await client.describe_stack_resource(stack_name=_, logical_resource_id=_) + await client.describe_stack_resource(**_request(DescribeStackResourceInputDict)) + await client.describe_stack_resource(_request(DescribeStackResourceInput)) + await client.describe_stack_resource(_request(DescribeStackResourceInputDict)) + await client.describe_stack_resource_drifts(stack_name=_) + await client.describe_stack_resource_drifts( + **_request(DescribeStackResourceDriftsInputDict) + ) + await client.describe_stack_resource_drifts( + _request(DescribeStackResourceDriftsInput) + ) + await client.describe_stack_resource_drifts( + _request(DescribeStackResourceDriftsInputDict) + ) + await client.describe_stack_resources() + await client.describe_stack_resources(**_request(DescribeStackResourcesInputDict)) + await client.describe_stack_resources(_request(DescribeStackResourcesInput)) + await client.describe_stack_resources(_request(DescribeStackResourcesInputDict)) + await client.describe_stacks() + await client.describe_stacks(**_request(DescribeStacksInputDict)) + await client.describe_stacks(_request(DescribeStacksInput)) + await client.describe_stacks(_request(DescribeStacksInputDict)) + await client.describe_stack_set(stack_set_name=_) + await client.describe_stack_set(**_request(DescribeStackSetInputDict)) + await client.describe_stack_set(_request(DescribeStackSetInput)) + await client.describe_stack_set(_request(DescribeStackSetInputDict)) + await client.describe_stack_set_operation(stack_set_name=_, operation_id=_) + await client.describe_stack_set_operation( + **_request(DescribeStackSetOperationInputDict) + ) + await client.describe_stack_set_operation(_request(DescribeStackSetOperationInput)) + await client.describe_stack_set_operation( + _request(DescribeStackSetOperationInputDict) + ) + await client.describe_type() + await client.describe_type(**_request(DescribeTypeInputDict)) + await client.describe_type(_request(DescribeTypeInput)) + await client.describe_type(_request(DescribeTypeInputDict)) + await client.describe_type_registration(registration_token=_) + await client.describe_type_registration( + **_request(DescribeTypeRegistrationInputDict) + ) + await client.describe_type_registration(_request(DescribeTypeRegistrationInput)) + await client.describe_type_registration(_request(DescribeTypeRegistrationInputDict)) + await client.detect_stack_drift(stack_name=_) + await client.detect_stack_drift(**_request(DetectStackDriftInputDict)) + await client.detect_stack_drift(_request(DetectStackDriftInput)) + await client.detect_stack_drift(_request(DetectStackDriftInputDict)) + await client.detect_stack_resource_drift(stack_name=_, logical_resource_id=_) + await client.detect_stack_resource_drift( + **_request(DetectStackResourceDriftInputDict) + ) + await client.detect_stack_resource_drift(_request(DetectStackResourceDriftInput)) + await client.detect_stack_resource_drift( + _request(DetectStackResourceDriftInputDict) + ) + await client.detect_stack_set_drift(stack_set_name=_) + await client.detect_stack_set_drift(**_request(DetectStackSetDriftInputDict)) + await client.detect_stack_set_drift(_request(DetectStackSetDriftInput)) + await client.detect_stack_set_drift(_request(DetectStackSetDriftInputDict)) + await client.estimate_template_cost() + await client.estimate_template_cost(**_request(EstimateTemplateCostInputDict)) + await client.estimate_template_cost(_request(EstimateTemplateCostInput)) + await client.estimate_template_cost(_request(EstimateTemplateCostInputDict)) + await client.execute_change_set(change_set_name=_) + await client.execute_change_set(**_request(ExecuteChangeSetInputDict)) + await client.execute_change_set(_request(ExecuteChangeSetInput)) + await client.execute_change_set(_request(ExecuteChangeSetInputDict)) + await client.execute_stack_refactor(stack_refactor_id=_) + await client.execute_stack_refactor(**_request(ExecuteStackRefactorInputDict)) + await client.execute_stack_refactor(_request(ExecuteStackRefactorInput)) + await client.execute_stack_refactor(_request(ExecuteStackRefactorInputDict)) + await client.get_generated_template(generated_template_name=_) + await client.get_generated_template(**_request(GetGeneratedTemplateInputDict)) + await client.get_generated_template(_request(GetGeneratedTemplateInput)) + await client.get_generated_template(_request(GetGeneratedTemplateInputDict)) + await client.get_hook_result() + await client.get_hook_result(**_request(GetHookResultInputDict)) + await client.get_hook_result(_request(GetHookResultInput)) + await client.get_hook_result(_request(GetHookResultInputDict)) + await client.get_stack_policy(stack_name=_) + await client.get_stack_policy(**_request(GetStackPolicyInputDict)) + await client.get_stack_policy(_request(GetStackPolicyInput)) + await client.get_stack_policy(_request(GetStackPolicyInputDict)) + await client.get_template() + await client.get_template(**_request(GetTemplateInputDict)) + await client.get_template(_request(GetTemplateInput)) + await client.get_template(_request(GetTemplateInputDict)) + await client.get_template_summary() + await client.get_template_summary(**_request(GetTemplateSummaryInputDict)) + await client.get_template_summary(_request(GetTemplateSummaryInput)) + await client.get_template_summary(_request(GetTemplateSummaryInputDict)) + await client.import_stacks_to_stack_set(stack_set_name=_) + await client.import_stacks_to_stack_set(**_request(ImportStacksToStackSetInputDict)) + await client.import_stacks_to_stack_set(_request(ImportStacksToStackSetInput)) + await client.import_stacks_to_stack_set(_request(ImportStacksToStackSetInputDict)) + await client.list_change_sets(stack_name=_) + await client.list_change_sets(**_request(ListChangeSetsInputDict)) + await client.list_change_sets(_request(ListChangeSetsInput)) + await client.list_change_sets(_request(ListChangeSetsInputDict)) + await client.list_exports() + await client.list_exports(**_request(ListExportsInputDict)) + await client.list_exports(_request(ListExportsInput)) + await client.list_exports(_request(ListExportsInputDict)) + await client.list_generated_templates() + await client.list_generated_templates(**_request(ListGeneratedTemplatesInputDict)) + await client.list_generated_templates(_request(ListGeneratedTemplatesInput)) + await client.list_generated_templates(_request(ListGeneratedTemplatesInputDict)) + await client.list_hook_results() + await client.list_hook_results(**_request(ListHookResultsInputDict)) + await client.list_hook_results(_request(ListHookResultsInput)) + await client.list_hook_results(_request(ListHookResultsInputDict)) + await client.list_imports(export_name=_) + await client.list_imports(**_request(ListImportsInputDict)) + await client.list_imports(_request(ListImportsInput)) + await client.list_imports(_request(ListImportsInputDict)) + await client.list_resource_scan_related_resources(resource_scan_id=_, resources=_) + await client.list_resource_scan_related_resources( + **_request(ListResourceScanRelatedResourcesInputDict) + ) + await client.list_resource_scan_related_resources( + _request(ListResourceScanRelatedResourcesInput) + ) + await client.list_resource_scan_related_resources( + _request(ListResourceScanRelatedResourcesInputDict) + ) + await client.list_resource_scan_resources(resource_scan_id=_) + await client.list_resource_scan_resources( + **_request(ListResourceScanResourcesInputDict) + ) + await client.list_resource_scan_resources(_request(ListResourceScanResourcesInput)) + await client.list_resource_scan_resources( + _request(ListResourceScanResourcesInputDict) + ) + await client.list_resource_scans() + await client.list_resource_scans(**_request(ListResourceScansInputDict)) + await client.list_resource_scans(_request(ListResourceScansInput)) + await client.list_resource_scans(_request(ListResourceScansInputDict)) + await client.list_stack_instance_resource_drifts( + stack_set_name=_, + stack_instance_account=_, + stack_instance_region=_, + operation_id=_, + ) + await client.list_stack_instance_resource_drifts( + **_request(ListStackInstanceResourceDriftsInputDict) + ) + await client.list_stack_instance_resource_drifts( + _request(ListStackInstanceResourceDriftsInput) + ) + await client.list_stack_instance_resource_drifts( + _request(ListStackInstanceResourceDriftsInputDict) + ) + await client.list_stack_instances(stack_set_name=_) + await client.list_stack_instances(**_request(ListStackInstancesInputDict)) + await client.list_stack_instances(_request(ListStackInstancesInput)) + await client.list_stack_instances(_request(ListStackInstancesInputDict)) + await client.list_stack_refactor_actions(stack_refactor_id=_) + await client.list_stack_refactor_actions( + **_request(ListStackRefactorActionsInputDict) + ) + await client.list_stack_refactor_actions(_request(ListStackRefactorActionsInput)) + await client.list_stack_refactor_actions( + _request(ListStackRefactorActionsInputDict) + ) + await client.list_stack_refactors() + await client.list_stack_refactors(**_request(ListStackRefactorsInputDict)) + await client.list_stack_refactors(_request(ListStackRefactorsInput)) + await client.list_stack_refactors(_request(ListStackRefactorsInputDict)) + await client.list_stack_resources(stack_name=_) + await client.list_stack_resources(**_request(ListStackResourcesInputDict)) + await client.list_stack_resources(_request(ListStackResourcesInput)) + await client.list_stack_resources(_request(ListStackResourcesInputDict)) + await client.list_stacks() + await client.list_stacks(**_request(ListStacksInputDict)) + await client.list_stacks(_request(ListStacksInput)) + await client.list_stacks(_request(ListStacksInputDict)) + await client.list_stack_set_auto_deployment_targets(stack_set_name=_) + await client.list_stack_set_auto_deployment_targets( + **_request(ListStackSetAutoDeploymentTargetsInputDict) + ) + await client.list_stack_set_auto_deployment_targets( + _request(ListStackSetAutoDeploymentTargetsInput) + ) + await client.list_stack_set_auto_deployment_targets( + _request(ListStackSetAutoDeploymentTargetsInputDict) + ) + await client.list_stack_set_operation_results(stack_set_name=_, operation_id=_) + await client.list_stack_set_operation_results( + **_request(ListStackSetOperationResultsInputDict) + ) + await client.list_stack_set_operation_results( + _request(ListStackSetOperationResultsInput) + ) + await client.list_stack_set_operation_results( + _request(ListStackSetOperationResultsInputDict) + ) + await client.list_stack_set_operations(stack_set_name=_) + await client.list_stack_set_operations(**_request(ListStackSetOperationsInputDict)) + await client.list_stack_set_operations(_request(ListStackSetOperationsInput)) + await client.list_stack_set_operations(_request(ListStackSetOperationsInputDict)) + await client.list_stack_sets() + await client.list_stack_sets(**_request(ListStackSetsInputDict)) + await client.list_stack_sets(_request(ListStackSetsInput)) + await client.list_stack_sets(_request(ListStackSetsInputDict)) + await client.list_type_registrations() + await client.list_type_registrations(**_request(ListTypeRegistrationsInputDict)) + await client.list_type_registrations(_request(ListTypeRegistrationsInput)) + await client.list_type_registrations(_request(ListTypeRegistrationsInputDict)) + await client.list_types() + await client.list_types(**_request(ListTypesInputDict)) + await client.list_types(_request(ListTypesInput)) + await client.list_types(_request(ListTypesInputDict)) + await client.list_type_versions() + await client.list_type_versions(**_request(ListTypeVersionsInputDict)) + await client.list_type_versions(_request(ListTypeVersionsInput)) + await client.list_type_versions(_request(ListTypeVersionsInputDict)) + await client.publish_type() + await client.publish_type(**_request(PublishTypeInputDict)) + await client.publish_type(_request(PublishTypeInput)) + await client.publish_type(_request(PublishTypeInputDict)) + await client.record_handler_progress(bearer_token=_, operation_status=_) + await client.record_handler_progress(**_request(RecordHandlerProgressInputDict)) + await client.record_handler_progress(_request(RecordHandlerProgressInput)) + await client.record_handler_progress(_request(RecordHandlerProgressInputDict)) + await client.register_publisher() + await client.register_publisher(**_request(RegisterPublisherInputDict)) + await client.register_publisher(_request(RegisterPublisherInput)) + await client.register_publisher(_request(RegisterPublisherInputDict)) + await client.register_type(type_name=_, schema_handler_package=_) + await client.register_type(**_request(RegisterTypeInputDict)) + await client.register_type(_request(RegisterTypeInput)) + await client.register_type(_request(RegisterTypeInputDict)) + await client.rollback_stack(stack_name=_) + await client.rollback_stack(**_request(RollbackStackInputDict)) + await client.rollback_stack(_request(RollbackStackInput)) + await client.rollback_stack(_request(RollbackStackInputDict)) + await client.set_stack_policy(stack_name=_) + await client.set_stack_policy(**_request(SetStackPolicyInputDict)) + await client.set_stack_policy(_request(SetStackPolicyInput)) + await client.set_stack_policy(_request(SetStackPolicyInputDict)) + await client.set_type_configuration(configuration=_) + await client.set_type_configuration(**_request(SetTypeConfigurationInputDict)) + await client.set_type_configuration(_request(SetTypeConfigurationInput)) + await client.set_type_configuration(_request(SetTypeConfigurationInputDict)) + await client.set_type_default_version() + await client.set_type_default_version(**_request(SetTypeDefaultVersionInputDict)) + await client.set_type_default_version(_request(SetTypeDefaultVersionInput)) + await client.set_type_default_version(_request(SetTypeDefaultVersionInputDict)) + await client.signal_resource( + stack_name=_, logical_resource_id=_, unique_id=_, status=_ + ) + await client.signal_resource(**_request(SignalResourceInputDict)) + await client.signal_resource(_request(SignalResourceInput)) + await client.signal_resource(_request(SignalResourceInputDict)) + await client.start_resource_scan() + await client.start_resource_scan(**_request(StartResourceScanInputDict)) + await client.start_resource_scan(_request(StartResourceScanInput)) + await client.start_resource_scan(_request(StartResourceScanInputDict)) + await client.stop_stack_set_operation(stack_set_name=_, operation_id=_) + await client.stop_stack_set_operation(**_request(StopStackSetOperationInputDict)) + await client.stop_stack_set_operation(_request(StopStackSetOperationInput)) + await client.stop_stack_set_operation(_request(StopStackSetOperationInputDict)) + await client.test_type() + await client.test_type(**_request(TestTypeInputDict)) + await client.test_type(_request(TestTypeInput)) + await client.test_type(_request(TestTypeInputDict)) + await client.update_generated_template(generated_template_name=_) + await client.update_generated_template(**_request(UpdateGeneratedTemplateInputDict)) + await client.update_generated_template(_request(UpdateGeneratedTemplateInput)) + await client.update_generated_template(_request(UpdateGeneratedTemplateInputDict)) + await client.update_stack(stack_name=_) + await client.update_stack(**_request(UpdateStackInputDict)) + await client.update_stack(_request(UpdateStackInput)) + await client.update_stack(_request(UpdateStackInputDict)) + await client.update_stack_instances(stack_set_name=_, regions=_) + await client.update_stack_instances(**_request(UpdateStackInstancesInputDict)) + await client.update_stack_instances(_request(UpdateStackInstancesInput)) + await client.update_stack_instances(_request(UpdateStackInstancesInputDict)) + await client.update_stack_set(stack_set_name=_) + await client.update_stack_set(**_request(UpdateStackSetInputDict)) + await client.update_stack_set(_request(UpdateStackSetInput)) + await client.update_stack_set(_request(UpdateStackSetInputDict)) + await client.update_termination_protection( + enable_termination_protection=_, stack_name=_ + ) + await client.update_termination_protection( + **_request(UpdateTerminationProtectionInputDict) + ) + await client.update_termination_protection( + _request(UpdateTerminationProtectionInput) + ) + await client.update_termination_protection( + _request(UpdateTerminationProtectionInputDict) + ) + await client.validate_template() + await client.validate_template(**_request(ValidateTemplateInputDict)) + await client.validate_template(_request(ValidateTemplateInput)) + await client.validate_template(_request(ValidateTemplateInputDict)) + + +def check_sync_calls(client: CloudFormationClient) -> None: + pass + client.activate_organizations_access() + client.activate_organizations_access( + **_request(ActivateOrganizationsAccessInputDict) + ) + client.activate_organizations_access(_request(ActivateOrganizationsAccessInput)) + client.activate_organizations_access(_request(ActivateOrganizationsAccessInputDict)) + client.activate_type() + client.activate_type(**_request(ActivateTypeInputDict)) + client.activate_type(_request(ActivateTypeInput)) + client.activate_type(_request(ActivateTypeInputDict)) + client.batch_describe_type_configurations(type_configuration_identifiers=_) + client.batch_describe_type_configurations( + **_request(BatchDescribeTypeConfigurationsInputDict) + ) + client.batch_describe_type_configurations( + _request(BatchDescribeTypeConfigurationsInput) + ) + client.batch_describe_type_configurations( + _request(BatchDescribeTypeConfigurationsInputDict) + ) + client.cancel_update_stack(stack_name=_) + client.cancel_update_stack(**_request(CancelUpdateStackInputDict)) + client.cancel_update_stack(_request(CancelUpdateStackInput)) + client.cancel_update_stack(_request(CancelUpdateStackInputDict)) + client.continue_update_rollback(stack_name=_) + client.continue_update_rollback(**_request(ContinueUpdateRollbackInputDict)) + client.continue_update_rollback(_request(ContinueUpdateRollbackInput)) + client.continue_update_rollback(_request(ContinueUpdateRollbackInputDict)) + client.create_change_set(stack_name=_, change_set_name=_) + client.create_change_set(**_request(CreateChangeSetInputDict)) + client.create_change_set(_request(CreateChangeSetInput)) + client.create_change_set(_request(CreateChangeSetInputDict)) + client.create_generated_template(generated_template_name=_) + client.create_generated_template(**_request(CreateGeneratedTemplateInputDict)) + client.create_generated_template(_request(CreateGeneratedTemplateInput)) + client.create_generated_template(_request(CreateGeneratedTemplateInputDict)) + client.create_stack(stack_name=_) + client.create_stack(**_request(CreateStackInputDict)) + client.create_stack(_request(CreateStackInput)) + client.create_stack(_request(CreateStackInputDict)) + client.create_stack_instances(stack_set_name=_, regions=_) + client.create_stack_instances(**_request(CreateStackInstancesInputDict)) + client.create_stack_instances(_request(CreateStackInstancesInput)) + client.create_stack_instances(_request(CreateStackInstancesInputDict)) + client.create_stack_refactor(stack_definitions=_) + client.create_stack_refactor(**_request(CreateStackRefactorInputDict)) + client.create_stack_refactor(_request(CreateStackRefactorInput)) + client.create_stack_refactor(_request(CreateStackRefactorInputDict)) + client.create_stack_set(stack_set_name=_) + client.create_stack_set(**_request(CreateStackSetInputDict)) + client.create_stack_set(_request(CreateStackSetInput)) + client.create_stack_set(_request(CreateStackSetInputDict)) + client.deactivate_organizations_access() + client.deactivate_organizations_access( + **_request(DeactivateOrganizationsAccessInputDict) + ) + client.deactivate_organizations_access(_request(DeactivateOrganizationsAccessInput)) + client.deactivate_organizations_access( + _request(DeactivateOrganizationsAccessInputDict) + ) + client.deactivate_type() + client.deactivate_type(**_request(DeactivateTypeInputDict)) + client.deactivate_type(_request(DeactivateTypeInput)) + client.deactivate_type(_request(DeactivateTypeInputDict)) + client.delete_change_set(change_set_name=_) + client.delete_change_set(**_request(DeleteChangeSetInputDict)) + client.delete_change_set(_request(DeleteChangeSetInput)) + client.delete_change_set(_request(DeleteChangeSetInputDict)) + client.delete_generated_template(generated_template_name=_) + client.delete_generated_template(**_request(DeleteGeneratedTemplateInputDict)) + client.delete_generated_template(_request(DeleteGeneratedTemplateInput)) + client.delete_generated_template(_request(DeleteGeneratedTemplateInputDict)) + client.delete_stack(stack_name=_) + client.delete_stack(**_request(DeleteStackInputDict)) + client.delete_stack(_request(DeleteStackInput)) + client.delete_stack(_request(DeleteStackInputDict)) + client.delete_stack_instances(stack_set_name=_, regions=_, retain_stacks=_) + client.delete_stack_instances(**_request(DeleteStackInstancesInputDict)) + client.delete_stack_instances(_request(DeleteStackInstancesInput)) + client.delete_stack_instances(_request(DeleteStackInstancesInputDict)) + client.delete_stack_set(stack_set_name=_) + client.delete_stack_set(**_request(DeleteStackSetInputDict)) + client.delete_stack_set(_request(DeleteStackSetInput)) + client.delete_stack_set(_request(DeleteStackSetInputDict)) + client.deregister_type() + client.deregister_type(**_request(DeregisterTypeInputDict)) + client.deregister_type(_request(DeregisterTypeInput)) + client.deregister_type(_request(DeregisterTypeInputDict)) + client.describe_account_limits() + client.describe_account_limits(**_request(DescribeAccountLimitsInputDict)) + client.describe_account_limits(_request(DescribeAccountLimitsInput)) + client.describe_account_limits(_request(DescribeAccountLimitsInputDict)) + client.describe_change_set(change_set_name=_) + client.describe_change_set(**_request(DescribeChangeSetInputDict)) + client.describe_change_set(_request(DescribeChangeSetInput)) + client.describe_change_set(_request(DescribeChangeSetInputDict)) + client.describe_change_set_hooks(change_set_name=_) + client.describe_change_set_hooks(**_request(DescribeChangeSetHooksInputDict)) + client.describe_change_set_hooks(_request(DescribeChangeSetHooksInput)) + client.describe_change_set_hooks(_request(DescribeChangeSetHooksInputDict)) + client.describe_events() + client.describe_events(**_request(DescribeEventsInputDict)) + client.describe_events(_request(DescribeEventsInput)) + client.describe_events(_request(DescribeEventsInputDict)) + client.describe_generated_template(generated_template_name=_) + client.describe_generated_template(**_request(DescribeGeneratedTemplateInputDict)) + client.describe_generated_template(_request(DescribeGeneratedTemplateInput)) + client.describe_generated_template(_request(DescribeGeneratedTemplateInputDict)) + client.describe_organizations_access() + client.describe_organizations_access( + **_request(DescribeOrganizationsAccessInputDict) + ) + client.describe_organizations_access(_request(DescribeOrganizationsAccessInput)) + client.describe_organizations_access(_request(DescribeOrganizationsAccessInputDict)) + client.describe_publisher() + client.describe_publisher(**_request(DescribePublisherInputDict)) + client.describe_publisher(_request(DescribePublisherInput)) + client.describe_publisher(_request(DescribePublisherInputDict)) + client.describe_resource_scan(resource_scan_id=_) + client.describe_resource_scan(**_request(DescribeResourceScanInputDict)) + client.describe_resource_scan(_request(DescribeResourceScanInput)) + client.describe_resource_scan(_request(DescribeResourceScanInputDict)) + client.describe_stack_drift_detection_status(stack_drift_detection_id=_) + client.describe_stack_drift_detection_status( + **_request(DescribeStackDriftDetectionStatusInputDict) + ) + client.describe_stack_drift_detection_status( + _request(DescribeStackDriftDetectionStatusInput) + ) + client.describe_stack_drift_detection_status( + _request(DescribeStackDriftDetectionStatusInputDict) + ) + client.describe_stack_events(stack_name=_) + client.describe_stack_events(**_request(DescribeStackEventsInputDict)) + client.describe_stack_events(_request(DescribeStackEventsInput)) + client.describe_stack_events(_request(DescribeStackEventsInputDict)) + client.describe_stack_instance( + stack_set_name=_, stack_instance_account=_, stack_instance_region=_ + ) + client.describe_stack_instance(**_request(DescribeStackInstanceInputDict)) + client.describe_stack_instance(_request(DescribeStackInstanceInput)) + client.describe_stack_instance(_request(DescribeStackInstanceInputDict)) + client.describe_stack_refactor(stack_refactor_id=_) + client.describe_stack_refactor(**_request(DescribeStackRefactorInputDict)) + client.describe_stack_refactor(_request(DescribeStackRefactorInput)) + client.describe_stack_refactor(_request(DescribeStackRefactorInputDict)) + client.describe_stack_resource(stack_name=_, logical_resource_id=_) + client.describe_stack_resource(**_request(DescribeStackResourceInputDict)) + client.describe_stack_resource(_request(DescribeStackResourceInput)) + client.describe_stack_resource(_request(DescribeStackResourceInputDict)) + client.describe_stack_resource_drifts(stack_name=_) + client.describe_stack_resource_drifts( + **_request(DescribeStackResourceDriftsInputDict) + ) + client.describe_stack_resource_drifts(_request(DescribeStackResourceDriftsInput)) + client.describe_stack_resource_drifts( + _request(DescribeStackResourceDriftsInputDict) + ) + client.describe_stack_resources() + client.describe_stack_resources(**_request(DescribeStackResourcesInputDict)) + client.describe_stack_resources(_request(DescribeStackResourcesInput)) + client.describe_stack_resources(_request(DescribeStackResourcesInputDict)) + client.describe_stacks() + client.describe_stacks(**_request(DescribeStacksInputDict)) + client.describe_stacks(_request(DescribeStacksInput)) + client.describe_stacks(_request(DescribeStacksInputDict)) + client.describe_stack_set(stack_set_name=_) + client.describe_stack_set(**_request(DescribeStackSetInputDict)) + client.describe_stack_set(_request(DescribeStackSetInput)) + client.describe_stack_set(_request(DescribeStackSetInputDict)) + client.describe_stack_set_operation(stack_set_name=_, operation_id=_) + client.describe_stack_set_operation(**_request(DescribeStackSetOperationInputDict)) + client.describe_stack_set_operation(_request(DescribeStackSetOperationInput)) + client.describe_stack_set_operation(_request(DescribeStackSetOperationInputDict)) + client.describe_type() + client.describe_type(**_request(DescribeTypeInputDict)) + client.describe_type(_request(DescribeTypeInput)) + client.describe_type(_request(DescribeTypeInputDict)) + client.describe_type_registration(registration_token=_) + client.describe_type_registration(**_request(DescribeTypeRegistrationInputDict)) + client.describe_type_registration(_request(DescribeTypeRegistrationInput)) + client.describe_type_registration(_request(DescribeTypeRegistrationInputDict)) + client.detect_stack_drift(stack_name=_) + client.detect_stack_drift(**_request(DetectStackDriftInputDict)) + client.detect_stack_drift(_request(DetectStackDriftInput)) + client.detect_stack_drift(_request(DetectStackDriftInputDict)) + client.detect_stack_resource_drift(stack_name=_, logical_resource_id=_) + client.detect_stack_resource_drift(**_request(DetectStackResourceDriftInputDict)) + client.detect_stack_resource_drift(_request(DetectStackResourceDriftInput)) + client.detect_stack_resource_drift(_request(DetectStackResourceDriftInputDict)) + client.detect_stack_set_drift(stack_set_name=_) + client.detect_stack_set_drift(**_request(DetectStackSetDriftInputDict)) + client.detect_stack_set_drift(_request(DetectStackSetDriftInput)) + client.detect_stack_set_drift(_request(DetectStackSetDriftInputDict)) + client.estimate_template_cost() + client.estimate_template_cost(**_request(EstimateTemplateCostInputDict)) + client.estimate_template_cost(_request(EstimateTemplateCostInput)) + client.estimate_template_cost(_request(EstimateTemplateCostInputDict)) + client.execute_change_set(change_set_name=_) + client.execute_change_set(**_request(ExecuteChangeSetInputDict)) + client.execute_change_set(_request(ExecuteChangeSetInput)) + client.execute_change_set(_request(ExecuteChangeSetInputDict)) + client.execute_stack_refactor(stack_refactor_id=_) + client.execute_stack_refactor(**_request(ExecuteStackRefactorInputDict)) + client.execute_stack_refactor(_request(ExecuteStackRefactorInput)) + client.execute_stack_refactor(_request(ExecuteStackRefactorInputDict)) + client.get_generated_template(generated_template_name=_) + client.get_generated_template(**_request(GetGeneratedTemplateInputDict)) + client.get_generated_template(_request(GetGeneratedTemplateInput)) + client.get_generated_template(_request(GetGeneratedTemplateInputDict)) + client.get_hook_result() + client.get_hook_result(**_request(GetHookResultInputDict)) + client.get_hook_result(_request(GetHookResultInput)) + client.get_hook_result(_request(GetHookResultInputDict)) + client.get_stack_policy(stack_name=_) + client.get_stack_policy(**_request(GetStackPolicyInputDict)) + client.get_stack_policy(_request(GetStackPolicyInput)) + client.get_stack_policy(_request(GetStackPolicyInputDict)) + client.get_template() + client.get_template(**_request(GetTemplateInputDict)) + client.get_template(_request(GetTemplateInput)) + client.get_template(_request(GetTemplateInputDict)) + client.get_template_summary() + client.get_template_summary(**_request(GetTemplateSummaryInputDict)) + client.get_template_summary(_request(GetTemplateSummaryInput)) + client.get_template_summary(_request(GetTemplateSummaryInputDict)) + client.import_stacks_to_stack_set(stack_set_name=_) + client.import_stacks_to_stack_set(**_request(ImportStacksToStackSetInputDict)) + client.import_stacks_to_stack_set(_request(ImportStacksToStackSetInput)) + client.import_stacks_to_stack_set(_request(ImportStacksToStackSetInputDict)) + client.list_change_sets(stack_name=_) + client.list_change_sets(**_request(ListChangeSetsInputDict)) + client.list_change_sets(_request(ListChangeSetsInput)) + client.list_change_sets(_request(ListChangeSetsInputDict)) + client.list_exports() + client.list_exports(**_request(ListExportsInputDict)) + client.list_exports(_request(ListExportsInput)) + client.list_exports(_request(ListExportsInputDict)) + client.list_generated_templates() + client.list_generated_templates(**_request(ListGeneratedTemplatesInputDict)) + client.list_generated_templates(_request(ListGeneratedTemplatesInput)) + client.list_generated_templates(_request(ListGeneratedTemplatesInputDict)) + client.list_hook_results() + client.list_hook_results(**_request(ListHookResultsInputDict)) + client.list_hook_results(_request(ListHookResultsInput)) + client.list_hook_results(_request(ListHookResultsInputDict)) + client.list_imports(export_name=_) + client.list_imports(**_request(ListImportsInputDict)) + client.list_imports(_request(ListImportsInput)) + client.list_imports(_request(ListImportsInputDict)) + client.list_resource_scan_related_resources(resource_scan_id=_, resources=_) + client.list_resource_scan_related_resources( + **_request(ListResourceScanRelatedResourcesInputDict) + ) + client.list_resource_scan_related_resources( + _request(ListResourceScanRelatedResourcesInput) + ) + client.list_resource_scan_related_resources( + _request(ListResourceScanRelatedResourcesInputDict) + ) + client.list_resource_scan_resources(resource_scan_id=_) + client.list_resource_scan_resources(**_request(ListResourceScanResourcesInputDict)) + client.list_resource_scan_resources(_request(ListResourceScanResourcesInput)) + client.list_resource_scan_resources(_request(ListResourceScanResourcesInputDict)) + client.list_resource_scans() + client.list_resource_scans(**_request(ListResourceScansInputDict)) + client.list_resource_scans(_request(ListResourceScansInput)) + client.list_resource_scans(_request(ListResourceScansInputDict)) + client.list_stack_instance_resource_drifts( + stack_set_name=_, + stack_instance_account=_, + stack_instance_region=_, + operation_id=_, + ) + client.list_stack_instance_resource_drifts( + **_request(ListStackInstanceResourceDriftsInputDict) + ) + client.list_stack_instance_resource_drifts( + _request(ListStackInstanceResourceDriftsInput) + ) + client.list_stack_instance_resource_drifts( + _request(ListStackInstanceResourceDriftsInputDict) + ) + client.list_stack_instances(stack_set_name=_) + client.list_stack_instances(**_request(ListStackInstancesInputDict)) + client.list_stack_instances(_request(ListStackInstancesInput)) + client.list_stack_instances(_request(ListStackInstancesInputDict)) + client.list_stack_refactor_actions(stack_refactor_id=_) + client.list_stack_refactor_actions(**_request(ListStackRefactorActionsInputDict)) + client.list_stack_refactor_actions(_request(ListStackRefactorActionsInput)) + client.list_stack_refactor_actions(_request(ListStackRefactorActionsInputDict)) + client.list_stack_refactors() + client.list_stack_refactors(**_request(ListStackRefactorsInputDict)) + client.list_stack_refactors(_request(ListStackRefactorsInput)) + client.list_stack_refactors(_request(ListStackRefactorsInputDict)) + client.list_stack_resources(stack_name=_) + client.list_stack_resources(**_request(ListStackResourcesInputDict)) + client.list_stack_resources(_request(ListStackResourcesInput)) + client.list_stack_resources(_request(ListStackResourcesInputDict)) + client.list_stacks() + client.list_stacks(**_request(ListStacksInputDict)) + client.list_stacks(_request(ListStacksInput)) + client.list_stacks(_request(ListStacksInputDict)) + client.list_stack_set_auto_deployment_targets(stack_set_name=_) + client.list_stack_set_auto_deployment_targets( + **_request(ListStackSetAutoDeploymentTargetsInputDict) + ) + client.list_stack_set_auto_deployment_targets( + _request(ListStackSetAutoDeploymentTargetsInput) + ) + client.list_stack_set_auto_deployment_targets( + _request(ListStackSetAutoDeploymentTargetsInputDict) + ) + client.list_stack_set_operation_results(stack_set_name=_, operation_id=_) + client.list_stack_set_operation_results( + **_request(ListStackSetOperationResultsInputDict) + ) + client.list_stack_set_operation_results(_request(ListStackSetOperationResultsInput)) + client.list_stack_set_operation_results( + _request(ListStackSetOperationResultsInputDict) + ) + client.list_stack_set_operations(stack_set_name=_) + client.list_stack_set_operations(**_request(ListStackSetOperationsInputDict)) + client.list_stack_set_operations(_request(ListStackSetOperationsInput)) + client.list_stack_set_operations(_request(ListStackSetOperationsInputDict)) + client.list_stack_sets() + client.list_stack_sets(**_request(ListStackSetsInputDict)) + client.list_stack_sets(_request(ListStackSetsInput)) + client.list_stack_sets(_request(ListStackSetsInputDict)) + client.list_type_registrations() + client.list_type_registrations(**_request(ListTypeRegistrationsInputDict)) + client.list_type_registrations(_request(ListTypeRegistrationsInput)) + client.list_type_registrations(_request(ListTypeRegistrationsInputDict)) + client.list_types() + client.list_types(**_request(ListTypesInputDict)) + client.list_types(_request(ListTypesInput)) + client.list_types(_request(ListTypesInputDict)) + client.list_type_versions() + client.list_type_versions(**_request(ListTypeVersionsInputDict)) + client.list_type_versions(_request(ListTypeVersionsInput)) + client.list_type_versions(_request(ListTypeVersionsInputDict)) + client.publish_type() + client.publish_type(**_request(PublishTypeInputDict)) + client.publish_type(_request(PublishTypeInput)) + client.publish_type(_request(PublishTypeInputDict)) + client.record_handler_progress(bearer_token=_, operation_status=_) + client.record_handler_progress(**_request(RecordHandlerProgressInputDict)) + client.record_handler_progress(_request(RecordHandlerProgressInput)) + client.record_handler_progress(_request(RecordHandlerProgressInputDict)) + client.register_publisher() + client.register_publisher(**_request(RegisterPublisherInputDict)) + client.register_publisher(_request(RegisterPublisherInput)) + client.register_publisher(_request(RegisterPublisherInputDict)) + client.register_type(type_name=_, schema_handler_package=_) + client.register_type(**_request(RegisterTypeInputDict)) + client.register_type(_request(RegisterTypeInput)) + client.register_type(_request(RegisterTypeInputDict)) + client.rollback_stack(stack_name=_) + client.rollback_stack(**_request(RollbackStackInputDict)) + client.rollback_stack(_request(RollbackStackInput)) + client.rollback_stack(_request(RollbackStackInputDict)) + client.set_stack_policy(stack_name=_) + client.set_stack_policy(**_request(SetStackPolicyInputDict)) + client.set_stack_policy(_request(SetStackPolicyInput)) + client.set_stack_policy(_request(SetStackPolicyInputDict)) + client.set_type_configuration(configuration=_) + client.set_type_configuration(**_request(SetTypeConfigurationInputDict)) + client.set_type_configuration(_request(SetTypeConfigurationInput)) + client.set_type_configuration(_request(SetTypeConfigurationInputDict)) + client.set_type_default_version() + client.set_type_default_version(**_request(SetTypeDefaultVersionInputDict)) + client.set_type_default_version(_request(SetTypeDefaultVersionInput)) + client.set_type_default_version(_request(SetTypeDefaultVersionInputDict)) + client.signal_resource(stack_name=_, logical_resource_id=_, unique_id=_, status=_) + client.signal_resource(**_request(SignalResourceInputDict)) + client.signal_resource(_request(SignalResourceInput)) + client.signal_resource(_request(SignalResourceInputDict)) + client.start_resource_scan() + client.start_resource_scan(**_request(StartResourceScanInputDict)) + client.start_resource_scan(_request(StartResourceScanInput)) + client.start_resource_scan(_request(StartResourceScanInputDict)) + client.stop_stack_set_operation(stack_set_name=_, operation_id=_) + client.stop_stack_set_operation(**_request(StopStackSetOperationInputDict)) + client.stop_stack_set_operation(_request(StopStackSetOperationInput)) + client.stop_stack_set_operation(_request(StopStackSetOperationInputDict)) + client.test_type() + client.test_type(**_request(TestTypeInputDict)) + client.test_type(_request(TestTypeInput)) + client.test_type(_request(TestTypeInputDict)) + client.update_generated_template(generated_template_name=_) + client.update_generated_template(**_request(UpdateGeneratedTemplateInputDict)) + client.update_generated_template(_request(UpdateGeneratedTemplateInput)) + client.update_generated_template(_request(UpdateGeneratedTemplateInputDict)) + client.update_stack(stack_name=_) + client.update_stack(**_request(UpdateStackInputDict)) + client.update_stack(_request(UpdateStackInput)) + client.update_stack(_request(UpdateStackInputDict)) + client.update_stack_instances(stack_set_name=_, regions=_) + client.update_stack_instances(**_request(UpdateStackInstancesInputDict)) + client.update_stack_instances(_request(UpdateStackInstancesInput)) + client.update_stack_instances(_request(UpdateStackInstancesInputDict)) + client.update_stack_set(stack_set_name=_) + client.update_stack_set(**_request(UpdateStackSetInputDict)) + client.update_stack_set(_request(UpdateStackSetInput)) + client.update_stack_set(_request(UpdateStackSetInputDict)) + client.update_termination_protection(enable_termination_protection=_, stack_name=_) + client.update_termination_protection( + **_request(UpdateTerminationProtectionInputDict) + ) + client.update_termination_protection(_request(UpdateTerminationProtectionInput)) + client.update_termination_protection(_request(UpdateTerminationProtectionInputDict)) + client.validate_template() + client.validate_template(**_request(ValidateTemplateInputDict)) + client.validate_template(_request(ValidateTemplateInput)) + client.validate_template(_request(ValidateTemplateInputDict)) diff --git a/clients/aws-sdk-cloudfront-keyvaluestore/pyproject.toml b/clients/aws-sdk-cloudfront-keyvaluestore/pyproject.toml index bce72f707..79800bd6d 100644 --- a/clients/aws-sdk-cloudfront-keyvaluestore/pyproject.toml +++ b/clients/aws-sdk-cloudfront-keyvaluestore/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/aio/client.py b/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/aio/client.py index da47e3aeb..86f91340f 100644 --- a/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/aio/client.py +++ b/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,17 +20,11 @@ if TYPE_CHECKING: from ..models import ( - DeleteKeyInput, DeleteKeyOutput, - DescribeKeyValueStoreInput, DescribeKeyValueStoreOutput, - GetKeyInput, GetKeyOutput, - ListKeysInput, ListKeysOutput, - PutKeyInput, PutKeyOutput, - UpdateKeysInput, UpdateKeysOutput, ) @@ -46,17 +40,29 @@ class AsyncCloudFrontKeyValueStoreClient( Resource """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def delete_key( - self, input: DeleteKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteKeyInput | _models.DeleteKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKeyOutput: ... + + @_overload + async def delete_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKeyInputDict], ) -> DeleteKeyOutput: """ Deletes the key value pair specified by the key. Args: - input: - An instance of `DeleteKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -66,17 +72,39 @@ async def delete_key( Returns: An instance of `DeleteKeyOutput`. """ - return await self._invoke(input, _models.DELETE_KEY, [], plugins) + async def delete_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKeyOutput: + return await self._invoke( + self._select_input(_models.DELETE_KEY, args, kwargs), + _models.DELETE_KEY, + [], + plugins, + ) + + @_overload + async def describe_key_value_store( + self, + request: _models.DescribeKeyValueStoreInput + | _models.DescribeKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKeyValueStoreOutput: ... + + @_overload async def describe_key_value_store( - self, input: DescribeKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKeyValueStoreInputDict], ) -> DescribeKeyValueStoreOutput: """ Returns metadata information about Key Value Store. Args: - input: - An instance of `DescribeKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -86,17 +114,38 @@ async def describe_key_value_store( Returns: An instance of `DescribeKeyValueStoreOutput`. """ - return await self._invoke(input, _models.DESCRIBE_KEY_VALUE_STORE, [], plugins) + async def describe_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKeyValueStoreOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_KEY_VALUE_STORE, args, kwargs), + _models.DESCRIBE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload + async def get_key( + self, + request: _models.GetKeyInput | _models.GetKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyOutput: ... + + @_overload async def get_key( - self, input: GetKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyInputDict], ) -> GetKeyOutput: """ Returns a key value pair. Args: - input: - An instance of `GetKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -106,17 +155,38 @@ async def get_key( Returns: An instance of `GetKeyOutput`. """ - return await self._invoke(input, _models.GET_KEY, [], plugins) + async def get_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyOutput: + return await self._invoke( + self._select_input(_models.GET_KEY, args, kwargs), + _models.GET_KEY, + [], + plugins, + ) + + @_overload async def list_keys( - self, input: ListKeysInput, plugins: list[Plugin] | None = None + self, + request: _models.ListKeysInput | _models.ListKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeysOutput: ... + + @_overload + async def list_keys( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeysInputDict], ) -> ListKeysOutput: """ Returns a list of key value pairs. Args: - input: - An instance of `ListKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -126,17 +196,38 @@ async def list_keys( Returns: An instance of `ListKeysOutput`. """ - return await self._invoke(input, _models.LIST_KEYS, [], plugins) + async def list_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeysOutput: + return await self._invoke( + self._select_input(_models.LIST_KEYS, args, kwargs), + _models.LIST_KEYS, + [], + plugins, + ) + + @_overload + async def put_key( + self, + request: _models.PutKeyInput | _models.PutKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutKeyOutput: ... + + @_overload async def put_key( - self, input: PutKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutKeyInputDict], ) -> PutKeyOutput: """ Creates a new key value pair or replaces the value of an existing key. Args: - input: - An instance of `PutKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -146,18 +237,39 @@ async def put_key( Returns: An instance of `PutKeyOutput`. """ - return await self._invoke(input, _models.PUT_KEY, [], plugins) + async def put_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutKeyOutput: + return await self._invoke( + self._select_input(_models.PUT_KEY, args, kwargs), + _models.PUT_KEY, + [], + plugins, + ) + + @_overload + async def update_keys( + self, + request: _models.UpdateKeysInput | _models.UpdateKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKeysOutput: ... + + @_overload async def update_keys( - self, input: UpdateKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKeysInputDict], ) -> UpdateKeysOutput: """ Puts or Deletes multiple key value pairs in a single, all-or-nothing operation. Args: - input: - An instance of `UpdateKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -167,7 +279,16 @@ async def update_keys( Returns: An instance of `UpdateKeysOutput`. """ - return await self._invoke(input, _models.UPDATE_KEYS, [], plugins) + + async def update_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKeysOutput: + return await self._invoke( + self._select_input(_models.UPDATE_KEYS, args, kwargs), + _models.UPDATE_KEYS, + [], + plugins, + ) async def _new_config(self) -> AsyncCloudFrontKeyValueStoreConfig: return await AsyncCloudFrontKeyValueStoreConfig.resolve() diff --git a/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/client.py b/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/client.py index 9f25cb8e0..b0351012e 100644 --- a/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/client.py +++ b/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,17 +20,11 @@ if TYPE_CHECKING: from .models import ( - DeleteKeyInput, DeleteKeyOutput, - DescribeKeyValueStoreInput, DescribeKeyValueStoreOutput, - GetKeyInput, GetKeyOutput, - ListKeysInput, ListKeysOutput, - PutKeyInput, PutKeyOutput, - UpdateKeysInput, UpdateKeysOutput, ) @@ -44,17 +38,29 @@ class CloudFrontKeyValueStoreClient(Client[CloudFrontKeyValueStoreConfig]): Resource """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def delete_key( - self, input: DeleteKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteKeyInput | _models.DeleteKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKeyOutput: ... + + @_overload + def delete_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKeyInputDict], ) -> DeleteKeyOutput: """ Deletes the key value pair specified by the key. Args: - input: - An instance of `DeleteKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -64,17 +70,39 @@ def delete_key( Returns: An instance of `DeleteKeyOutput`. """ - return self._invoke(input, _models.DELETE_KEY, [], plugins) + def delete_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKeyOutput: + return self._invoke( + self._select_input(_models.DELETE_KEY, args, kwargs), + _models.DELETE_KEY, + [], + plugins, + ) + + @_overload + def describe_key_value_store( + self, + request: _models.DescribeKeyValueStoreInput + | _models.DescribeKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKeyValueStoreOutput: ... + + @_overload def describe_key_value_store( - self, input: DescribeKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKeyValueStoreInputDict], ) -> DescribeKeyValueStoreOutput: """ Returns metadata information about Key Value Store. Args: - input: - An instance of `DescribeKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -84,17 +112,38 @@ def describe_key_value_store( Returns: An instance of `DescribeKeyValueStoreOutput`. """ - return self._invoke(input, _models.DESCRIBE_KEY_VALUE_STORE, [], plugins) + def describe_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKeyValueStoreOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_KEY_VALUE_STORE, args, kwargs), + _models.DESCRIBE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload + def get_key( + self, + request: _models.GetKeyInput | _models.GetKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyOutput: ... + + @_overload def get_key( - self, input: GetKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyInputDict], ) -> GetKeyOutput: """ Returns a key value pair. Args: - input: - An instance of `GetKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -104,17 +153,38 @@ def get_key( Returns: An instance of `GetKeyOutput`. """ - return self._invoke(input, _models.GET_KEY, [], plugins) + def get_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyOutput: + return self._invoke( + self._select_input(_models.GET_KEY, args, kwargs), + _models.GET_KEY, + [], + plugins, + ) + + @_overload def list_keys( - self, input: ListKeysInput, plugins: list[Plugin] | None = None + self, + request: _models.ListKeysInput | _models.ListKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeysOutput: ... + + @_overload + def list_keys( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeysInputDict], ) -> ListKeysOutput: """ Returns a list of key value pairs. Args: - input: - An instance of `ListKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -124,17 +194,38 @@ def list_keys( Returns: An instance of `ListKeysOutput`. """ - return self._invoke(input, _models.LIST_KEYS, [], plugins) + def list_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeysOutput: + return self._invoke( + self._select_input(_models.LIST_KEYS, args, kwargs), + _models.LIST_KEYS, + [], + plugins, + ) + + @_overload + def put_key( + self, + request: _models.PutKeyInput | _models.PutKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutKeyOutput: ... + + @_overload def put_key( - self, input: PutKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutKeyInputDict], ) -> PutKeyOutput: """ Creates a new key value pair or replaces the value of an existing key. Args: - input: - An instance of `PutKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -144,18 +235,39 @@ def put_key( Returns: An instance of `PutKeyOutput`. """ - return self._invoke(input, _models.PUT_KEY, [], plugins) + def put_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutKeyOutput: + return self._invoke( + self._select_input(_models.PUT_KEY, args, kwargs), + _models.PUT_KEY, + [], + plugins, + ) + + @_overload + def update_keys( + self, + request: _models.UpdateKeysInput | _models.UpdateKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKeysOutput: ... + + @_overload def update_keys( - self, input: UpdateKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKeysInputDict], ) -> UpdateKeysOutput: """ Puts or Deletes multiple key value pairs in a single, all-or-nothing operation. Args: - input: - An instance of `UpdateKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -165,7 +277,16 @@ def update_keys( Returns: An instance of `UpdateKeysOutput`. """ - return self._invoke(input, _models.UPDATE_KEYS, [], plugins) + + def update_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKeysOutput: + return self._invoke( + self._select_input(_models.UPDATE_KEYS, args, kwargs), + _models.UPDATE_KEYS, + [], + plugins, + ) def _new_config(self) -> CloudFrontKeyValueStoreConfig: return CloudFrontKeyValueStoreConfig.resolve() diff --git a/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/models.pyi b/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/models.pyi index 65637fcdf..058a339c2 100644 --- a/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/models.pyi +++ b/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/models.pyi @@ -1,8 +1,9 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime -from typing import Self +from typing import Required, Self, TypedDict from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -62,6 +63,19 @@ class DeleteKeyInput(_SerdeShape): keys from, which you can get using DescribeKeyValueStore. """ +class DeleteKeyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteKeyInput`.""" + + kvs_arn: Required[str] + """The Amazon Resource Name (ARN) of the Key Value Store.""" + key: Required[str] + """The key to delete.""" + if_match: Required[str] + """ + The current version (ETag) of the Key Value Store that you are deleting + keys from, which you can get using DescribeKeyValueStore. + """ + @dataclass(kw_only=True) class DeleteKeyOutput(_SerdeShape): """Metadata information about a Key Value Store.""" @@ -93,6 +107,12 @@ class DeleteKeyRequestListItem(_SerdeShape): key: str """The key of the key value pair to be deleted.""" +class DeleteKeyRequestListItemDict(TypedDict, total=False): + """Dictionary form of `DeleteKeyRequestListItem`.""" + + key: Required[str] + """The key of the key value pair to be deleted.""" + @dataclass(kw_only=True) class DescribeKeyValueStoreInput(_SerdeShape): """Dataclass for DescribeKeyValueStoreInput structure.""" @@ -100,6 +120,12 @@ class DescribeKeyValueStoreInput(_SerdeShape): kvs_arn: str | None = ... """The Amazon Resource Name (ARN) of the Key Value Store.""" +class DescribeKeyValueStoreInputDict(TypedDict, total=False): + """Dictionary form of `DescribeKeyValueStoreInput`.""" + + kvs_arn: Required[str] + """The Amazon Resource Name (ARN) of the Key Value Store.""" + @dataclass(kw_only=True) class DescribeKeyValueStoreOutput(_SerdeShape): """Metadata information about a Key Value Store.""" @@ -140,6 +166,14 @@ class GetKeyInput(_SerdeShape): key: str | None = ... """The key to get.""" +class GetKeyInputDict(TypedDict, total=False): + """Dictionary form of `GetKeyInput`.""" + + kvs_arn: Required[str] + """The Amazon Resource Name (ARN) of the Key Value Store.""" + key: Required[str] + """The key to get.""" + @dataclass(kw_only=True) class GetKeyOutput(_SerdeShape): """A key value pair.""" @@ -190,6 +224,23 @@ class ListKeysInput(_SerdeShape): and maximum allowed page is 50. """ +class ListKeysInputDict(TypedDict, total=False): + """Dictionary form of `ListKeysInput`.""" + + kvs_arn: Required[str] + """The Amazon Resource Name (ARN) of the Key Value Store.""" + next_token: str | None + """ + If nextToken is returned in the response, there are more results + available. Make the next call using the returned token to retrieve the + next page. + """ + max_results: int | None + """ + Maximum number of results that are returned per call. The default is 10 + and maximum allowed page is 50. + """ + @dataclass(kw_only=True) class ListKeysOutput(_SerdeShape): """Dataclass for ListKeysOutput structure.""" @@ -235,6 +286,21 @@ class PutKeyInput(_SerdeShape): keys into, which you can get using DescribeKeyValueStore. """ +class PutKeyInputDict(TypedDict, total=False): + """Dictionary form of `PutKeyInput`.""" + + key: Required[str] + """The key to put.""" + value: Required[str] + """The value to put.""" + kvs_arn: Required[str] + """The Amazon Resource Name (ARN) of the Key Value Store.""" + if_match: Required[str] + """ + The current version (ETag) of the Key Value Store that you are putting + keys into, which you can get using DescribeKeyValueStore. + """ + @dataclass(kw_only=True) class PutKeyOutput(_SerdeShape): """Metadata information about a Key Value Store.""" @@ -268,6 +334,14 @@ class PutKeyRequestListItem(_SerdeShape): value: str """The value for the key value pair to put.""" +class PutKeyRequestListItemDict(TypedDict, total=False): + """Dictionary form of `PutKeyRequestListItem`.""" + + key: Required[str] + """The key of the key value pair list item to put.""" + value: Required[str] + """The value for the key value pair to put.""" + @dataclass(kw_only=True) class ResourceNotFoundException(ServiceError, _SerdeShape): """Resource was not found.""" @@ -308,6 +382,21 @@ class UpdateKeysInput(_SerdeShape): deletes: list[DeleteKeyRequestListItem] | None = ... """List of keys to delete.""" +class UpdateKeysInputDict(TypedDict, total=False): + """Dictionary form of `UpdateKeysInput`.""" + + kvs_arn: Required[str] + """The Amazon Resource Name (ARN) of the Key Value Store.""" + if_match: Required[str] + """ + The current version (ETag) of the Key Value Store that you are updating + keys of, which you can get using DescribeKeyValueStore. + """ + puts: Sequence[PutKeyRequestListItem | PutKeyRequestListItemDict] | None + """List of key value pairs to put.""" + deletes: Sequence[DeleteKeyRequestListItem | DeleteKeyRequestListItemDict] | None + """List of keys to delete.""" + @dataclass(kw_only=True) class UpdateKeysOutput(_SerdeShape): """Metadata information about a Key Value Store.""" diff --git a/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/py.typed b/clients/aws-sdk-cloudfront-keyvaluestore/src/aws_sdk_cloudfront_keyvaluestore/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-cloudfront-keyvaluestore/tests/_typecheck.py b/clients/aws-sdk-cloudfront-keyvaluestore/tests/_typecheck.py index 7a34146a4..3c711dca0 100644 --- a/clients/aws-sdk-cloudfront-keyvaluestore/tests/_typecheck.py +++ b/clients/aws-sdk-cloudfront-keyvaluestore/tests/_typecheck.py @@ -2,27 +2,40 @@ from typing import Any +from aws_sdk_cloudfront_keyvaluestore.aio.client import ( + AsyncCloudFrontKeyValueStoreClient, +) +from aws_sdk_cloudfront_keyvaluestore.client import CloudFrontKeyValueStoreClient from aws_sdk_cloudfront_keyvaluestore.models import ( DeleteKeyInput, + DeleteKeyInputDict, DeleteKeyOutput, DeleteKeyRequestListItem, + DeleteKeyRequestListItemDict, DescribeKeyValueStoreInput, + DescribeKeyValueStoreInputDict, DescribeKeyValueStoreOutput, GetKeyInput, + GetKeyInputDict, GetKeyOutput, ListKeysInput, + ListKeysInputDict, ListKeysOutput, ListKeysResponseListItem, PutKeyInput, + PutKeyInputDict, PutKeyOutput, PutKeyRequestListItem, + PutKeyRequestListItemDict, UpdateKeysInput, + UpdateKeysInputDict, UpdateKeysOutput, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -43,3 +56,71 @@ PutKeyRequestListItem(key=_, value=_) UpdateKeysInput() UpdateKeysOutput(item_count=_, total_size_in_bytes=_, e_tag=_) +_params_0: DeleteKeyInputDict = {"kvs_arn": _, "key": _, "if_match": _} +_params_1: DeleteKeyRequestListItemDict = {"key": _} +_params_2: DescribeKeyValueStoreInputDict = {"kvs_arn": _} +_params_3: GetKeyInputDict = {"kvs_arn": _, "key": _} +_params_4: ListKeysInputDict = {"kvs_arn": _} +_params_5: PutKeyInputDict = {"key": _, "value": _, "kvs_arn": _, "if_match": _} +_params_6: PutKeyRequestListItemDict = {"key": _, "value": _} +_params_7: UpdateKeysInputDict = {"kvs_arn": _, "if_match": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncCloudFrontKeyValueStoreClient) -> None: + pass + await client.delete_key(kvs_arn=_, key=_, if_match=_) + await client.delete_key(**_request(DeleteKeyInputDict)) + await client.delete_key(_request(DeleteKeyInput)) + await client.delete_key(_request(DeleteKeyInputDict)) + await client.describe_key_value_store(kvs_arn=_) + await client.describe_key_value_store(**_request(DescribeKeyValueStoreInputDict)) + await client.describe_key_value_store(_request(DescribeKeyValueStoreInput)) + await client.describe_key_value_store(_request(DescribeKeyValueStoreInputDict)) + await client.get_key(kvs_arn=_, key=_) + await client.get_key(**_request(GetKeyInputDict)) + await client.get_key(_request(GetKeyInput)) + await client.get_key(_request(GetKeyInputDict)) + await client.list_keys(kvs_arn=_) + await client.list_keys(**_request(ListKeysInputDict)) + await client.list_keys(_request(ListKeysInput)) + await client.list_keys(_request(ListKeysInputDict)) + await client.put_key(key=_, value=_, kvs_arn=_, if_match=_) + await client.put_key(**_request(PutKeyInputDict)) + await client.put_key(_request(PutKeyInput)) + await client.put_key(_request(PutKeyInputDict)) + await client.update_keys(kvs_arn=_, if_match=_) + await client.update_keys(**_request(UpdateKeysInputDict)) + await client.update_keys(_request(UpdateKeysInput)) + await client.update_keys(_request(UpdateKeysInputDict)) + + +def check_sync_calls(client: CloudFrontKeyValueStoreClient) -> None: + pass + client.delete_key(kvs_arn=_, key=_, if_match=_) + client.delete_key(**_request(DeleteKeyInputDict)) + client.delete_key(_request(DeleteKeyInput)) + client.delete_key(_request(DeleteKeyInputDict)) + client.describe_key_value_store(kvs_arn=_) + client.describe_key_value_store(**_request(DescribeKeyValueStoreInputDict)) + client.describe_key_value_store(_request(DescribeKeyValueStoreInput)) + client.describe_key_value_store(_request(DescribeKeyValueStoreInputDict)) + client.get_key(kvs_arn=_, key=_) + client.get_key(**_request(GetKeyInputDict)) + client.get_key(_request(GetKeyInput)) + client.get_key(_request(GetKeyInputDict)) + client.list_keys(kvs_arn=_) + client.list_keys(**_request(ListKeysInputDict)) + client.list_keys(_request(ListKeysInput)) + client.list_keys(_request(ListKeysInputDict)) + client.put_key(key=_, value=_, kvs_arn=_, if_match=_) + client.put_key(**_request(PutKeyInputDict)) + client.put_key(_request(PutKeyInput)) + client.put_key(_request(PutKeyInputDict)) + client.update_keys(kvs_arn=_, if_match=_) + client.update_keys(**_request(UpdateKeysInputDict)) + client.update_keys(_request(UpdateKeysInput)) + client.update_keys(_request(UpdateKeysInputDict)) diff --git a/clients/aws-sdk-cloudfront/pyproject.toml b/clients/aws-sdk-cloudfront/pyproject.toml index 140f248db..80e013ed3 100644 --- a/clients/aws-sdk-cloudfront/pyproject.toml +++ b/clients/aws-sdk-cloudfront/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[xml]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[xml]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_0.pyi b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_0.pyi index 3a01590b7..c251d00a6 100644 --- a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_0.pyi +++ b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.response import ResponseMetadata @@ -11,60 +12,100 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( GrpcConfig, + GrpcConfigDict, Headers, + HeadersDict, ImportSource, + ImportSourceDict, Invalidation, InvalidationBatch, + InvalidationBatchDict, IpamCidrConfig, + IpamCidrConfigDict, IpamConfig, KGKeyPairIds, KeyGroup, KeyGroupConfig, + KeyGroupConfigDict, KeyValueStore, KeyValueStoreAssociations, + KeyValueStoreAssociationsDict, KinesisStreamConfig, + KinesisStreamConfigDict, LambdaFunctionAssociations, + LambdaFunctionAssociationsDict, LoggingConfig, + LoggingConfigDict, ManagedCertificateRequest, + ManagedCertificateRequestDict, MonitoringSubscription, + MonitoringSubscriptionDict, OriginAccessControl, OriginAccessControlConfig, + OriginAccessControlConfigDict, OriginCustomHeader, + OriginCustomHeaderDict, OriginGroups, + OriginGroupsDict, OriginMtlsConfig, + OriginMtlsConfigDict, OriginRequestPolicy, OriginRequestPolicyConfig, + OriginRequestPolicyConfigDict, OriginSslProtocols, + OriginSslProtocolsDict, Origins, + OriginsDict, Parameter, + ParameterDict, ParametersInCacheKeyAndForwardedToOrigin, + ParametersInCacheKeyAndForwardedToOriginDict, PublicKey, PublicKeyConfig, + PublicKeyConfigDict, QueryArgProfileConfig, + QueryArgProfileConfigDict, QueryStringCacheKeys, + QueryStringCacheKeysDict, QueryStringNames, + QueryStringNamesDict, RealtimeLogConfig, ResponseHeadersPolicy, ResponseHeadersPolicyConfig, + ResponseHeadersPolicyConfigDict, Restrictions, + RestrictionsDict, ServiceError, SessionStickinessConfig, + SessionStickinessConfigDict, Signer, StagingDistributionDnsNames, + StagingDistributionDnsNamesDict, StreamingDistribution, StreamingDistributionConfig, + StreamingDistributionConfigDict, StreamingDistributionConfigWithTags, + StreamingDistributionConfigWithTagsDict, Tags, + TagsDict, TenantConfig, + TenantConfigDict, TrafficConfig, + TrafficConfigDict, TrustStore, TrustedKeyGroups, + TrustedKeyGroupsDict, TrustedSigners, + TrustedSignersDict, ViewerCertificate, + ViewerCertificateDict, ViewerMtlsConfig, + ViewerMtlsConfigDict, VpcOrigin, VpcOriginEndpointConfig, + VpcOriginEndpointConfigDict, WebAclCustomization, + WebAclCustomizationDict, _SerdeShape, ) @@ -143,6 +184,20 @@ class Aliases(_SerdeShape): associate with this distribution. """ +class AliasesDict(TypedDict, total=False): + """Dictionary form of `Aliases`.""" + + quantity: Required[int] + """ + The number of CNAME aliases, if any, that you want to associate with + this distribution. + """ + items: Sequence[str] | None + """ + A complex type that contains the CNAME aliases, if any, that you want to + associate with this distribution. + """ + @dataclass(kw_only=True) class AliasICPRecordal(_SerdeShape): """ @@ -230,6 +285,35 @@ class AllowedMethods(_SerdeShape): and Origin headers for the responses to be cached correctly. """ +class AllowedMethodsDict(TypedDict, total=False): + """Dictionary form of `AllowedMethods`.""" + + quantity: Required[int] + """ + The number of HTTP methods that you want CloudFront to forward to your + origin. Valid values are 2 (for `GET` and `HEAD` requests), 3 (for + `GET`, `HEAD`, and `OPTIONS` requests) and 7 (for + `GET, HEAD, OPTIONS, PUT, PATCH, POST`, and `DELETE` requests). + """ + items: Required[Sequence[str]] + """ + A complex type that contains the HTTP methods that you want CloudFront + to process and forward to your origin. + """ + cached_methods: CachedMethods | CachedMethodsDict | None + """ + A complex type that controls whether CloudFront caches the response to + requests using the specified HTTP methods. There are two choices: + + - CloudFront caches responses to `GET` and `HEAD` requests. + + - CloudFront caches responses to `GET`, `HEAD`, and `OPTIONS` requests. + + If you pick the second choice for your Amazon S3 Origin, you may need to + forward Access-Control-Request-Method, Access-Control-Request-Headers, + and Origin headers for the responses to be cached correctly. + """ + @dataclass(kw_only=True) class AnycastIpList(_SerdeShape): """ @@ -349,6 +433,20 @@ class AssociateAliasInput(_SerdeShape): distribution. """ +class AssociateAliasInputDict(TypedDict, total=False): + """Dictionary form of `AssociateAliasInput`.""" + + target_distribution_id: Required[str] + """ + The ID of the standard distribution that you're associating the alias + with. + """ + alias: Required[str] + """ + The alias (also known as a CNAME) to add to the target standard + distribution. + """ + @dataclass(kw_only=True) class AssociateAliasOutput(_SerdeShape): """Dataclass for AssociateAliasOutput structure.""" @@ -375,6 +473,19 @@ class AssociateDistributionTenantWebACLInput(_SerdeShape): the response of the `GetDistributionTenant` API operation. """ +class AssociateDistributionTenantWebACLInputDict(TypedDict, total=False): + """Dictionary form of `AssociateDistributionTenantWebACLInput`.""" + + id: Required[str] + """The ID of the distribution tenant.""" + web_acl_arn: Required[str] + """The Amazon Resource Name (ARN) of the WAF web ACL to associate.""" + if_match: str | None + """ + The current `ETag` of the distribution tenant. This value is returned in + the response of the `GetDistributionTenant` API operation. + """ + @dataclass(kw_only=True) class AssociateDistributionTenantWebACLOutput(_SerdeShape): """Dataclass for AssociateDistributionTenantWebACLOutput structure.""" @@ -410,6 +521,19 @@ class AssociateDistributionWebACLInput(_SerdeShape): distribution that you're associating with the WAF web ACL. """ +class AssociateDistributionWebACLInputDict(TypedDict, total=False): + """Dictionary form of `AssociateDistributionWebACLInput`.""" + + id: Required[str] + """The ID of the distribution.""" + web_acl_arn: Required[str] + """The Amazon Resource Name (ARN) of the WAF web ACL to associate.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + distribution that you're associating with the WAF web ACL. + """ + @dataclass(kw_only=True) class AssociateDistributionWebACLOutput(_SerdeShape): """Dataclass for AssociateDistributionWebACLOutput structure.""" @@ -453,6 +577,18 @@ class CaCertificatesBundleS3Location(_SerdeShape): version: str | None = ... """The location's version.""" +class CaCertificatesBundleS3LocationDict(TypedDict, total=False): + """Dictionary form of `CaCertificatesBundleS3Location`.""" + + bucket: Required[str] + """The S3 bucket.""" + key: Required[str] + """The location's key.""" + region: Required[str] + """The location's Region.""" + version: str | None + """The location's version.""" + @dataclass class CaCertificatesBundleSourceCaCertificatesBundleS3Location(_SerdeShape): """The CA certificates bundle location in Amazon S3.""" @@ -480,6 +616,20 @@ class _CaCertificatesBundleSourceDeserializer: self, deserializer: ShapeDeserializer ) -> CaCertificatesBundleSource: ... +class CaCertificatesBundleSourceCaCertificatesBundleS3LocationDict(TypedDict): + ca_certificates_bundle_s3_location: ( + CaCertificatesBundleS3Location | CaCertificatesBundleS3LocationDict + ) + """The CA certificates bundle location in Amazon S3.""" + +CaCertificatesBundleSourceDict = Union[ + CaCertificatesBundleSourceCaCertificatesBundleS3LocationDict +] +""" +Dictionary form of `CaCertificatesBundleSource`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class CacheBehavior(_SerdeShape): """ @@ -823,391 +973,419 @@ class CacheBehavior(_SerdeShape): in the *Amazon CloudFront Developer Guide*. """ -@dataclass(kw_only=True) -class CacheBehaviors(_SerdeShape): - """A complex type that contains zero or more `CacheBehavior` elements.""" - - quantity: int - """The number of cache behaviors for this distribution.""" - items: list[CacheBehavior] | None = ... - """ - Optional: A complex type that contains cache behaviors for this - distribution. If `Quantity` is `0`, you can omit `Items`. - """ +class CacheBehaviorDict(TypedDict, total=False): + """Dictionary form of `CacheBehavior`.""" -@dataclass(kw_only=True) -class CachedMethods(_SerdeShape): + path_pattern: Required[str] """ - A complex type that controls whether CloudFront caches the response to - requests using the specified HTTP methods. There are two choices: - - - CloudFront caches responses to `GET` and `HEAD` requests. + The pattern (for example, `images/*.jpg`) that specifies which requests + to apply the behavior to. When CloudFront receives a viewer request, the + requested path is compared with path patterns in the order in which + cache behaviors are listed in the distribution. - - CloudFront caches responses to `GET`, `HEAD`, and `OPTIONS` requests. + Note: + You can optionally include a slash (`/`) at the beginning of the path + pattern. For example, `/images/*.jpg`. CloudFront behavior is the same + with or without the leading `/`. - If you pick the second choice for your Amazon S3 Origin, you may need to - forward Access-Control-Request-Method, Access-Control-Request-Headers, - and Origin headers for the responses to be cached correctly. - """ + The path pattern for the default cache behavior is `*` and cannot be + changed. If the request for an object does not match the path pattern + for any cache behaviors, CloudFront applies the behavior in the default + cache behavior. - quantity: int - """ - The number of HTTP methods for which you want CloudFront to cache - responses. Valid values are `2` (for caching responses to `GET` and - `HEAD` requests) and `3` (for caching responses to `GET`, `HEAD`, and - `OPTIONS` requests). - """ - items: list[str] + For more information, see [Path + Pattern](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern) + in the *Amazon CloudFront Developer Guide*. """ - A complex type that contains the HTTP methods that you want CloudFront - to cache responses to. Valid values for `CachedMethods` include `GET`, - `HEAD`, and `OPTIONS`, depending on which caching option you choose. For - more information, see the preceding section. + target_origin_id: Required[str] """ - -@dataclass(kw_only=True) -class CachePolicy(_SerdeShape): + The value of `ID` for the origin that you want CloudFront to route + requests to when they match this cache behavior. """ - A cache policy. - - When it's attached to a cache behavior, the cache policy determines the - following: - - - The values that CloudFront includes in the cache key. These values can - include HTTP headers, cookies, and URL query strings. CloudFront uses - the cache key to find an object in its cache that it can return to the - viewer. - - - The default, minimum, and maximum time to live (TTL) values that you - want objects to stay in the CloudFront cache. - - The headers, cookies, and query strings that are included in the cache - key are also included in requests that CloudFront sends to the origin. - CloudFront sends a request when it can't find a valid object in its - cache that matches the request's cache key. If you want to send values - to the origin but *not* include them in the cache key, use - `OriginRequestPolicy`. + trusted_signers: TrustedSigners | TrustedSignersDict | None """ + Warning: + We recommend using `TrustedKeyGroups` instead of `TrustedSigners`. + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - id: str - """The unique identifier for the cache policy.""" - last_modified_time: datetime - """The date and time when the cache policy was last modified.""" - cache_policy_config: CachePolicyConfig - """The cache policy configuration.""" + A list of Amazon Web Services account IDs whose public keys CloudFront + can use to validate signed URLs or signed cookies. -@dataclass(kw_only=True) -class CachePolicyAlreadyExists(ServiceError, _SerdeShape): + When a cache behavior contains trusted signers, CloudFront requires + signed URLs or signed cookies for all requests that match the cache + behavior. The URLs or cookies must be signed with the private key of a + CloudFront key pair in the trusted signer's Amazon Web Services + account. The signed URL or cookie contains information about which + public key CloudFront should use to verify the signature. For more + information, see [Serving private + content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + in the *Amazon CloudFront Developer Guide*. """ - A cache policy with this name already exists. You must provide a unique - name. To modify an existing cache policy, use `UpdateCachePolicy`. + trusted_key_groups: TrustedKeyGroups | TrustedKeyGroupsDict | None """ + A list of key groups that CloudFront can use to validate signed URLs or + signed cookies. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + When a cache behavior contains trusted key groups, CloudFront requires + signed URLs or signed cookies for all requests that match the cache + behavior. The URLs or cookies must be signed with a private key whose + corresponding public key is in the key group. The signed URL or cookie + contains information about which public key CloudFront should use to + verify the signature. For more information, see [Serving private + content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + in the *Amazon CloudFront Developer Guide*. """ - -@dataclass(kw_only=True) -class CachePolicyConfig(_SerdeShape): + viewer_protocol_policy: Required[str] """ - A cache policy configuration. + The protocol that viewers can use to access the files in the origin + specified by `TargetOriginId` when a request matches the path pattern in + `PathPattern`. You can specify the following options: - This configuration determines the following: + - `allow-all`: Viewers can use HTTP or HTTPS. - - The values that CloudFront includes in the cache key. These values can - include HTTP headers, cookies, and URL query strings. CloudFront uses - the cache key to find an object in its cache that it can return to the - viewer. + - `redirect-to-https`: If a viewer submits an HTTP request, CloudFront + returns an HTTP status code of 301 (Moved Permanently) to the viewer + along with the HTTPS URL. The viewer then resubmits the request using + the new URL. - - The default, minimum, and maximum time to live (TTL) values that you - want objects to stay in the CloudFront cache. + - `https-only`: If a viewer sends an HTTP request, CloudFront returns an + HTTP status code of 403 (Forbidden). - Warning: - If your minimum TTL is greater than 0, CloudFront will cache content - for at least the duration specified in the cache policy's minimum - TTL, even if the `Cache-Control: no-cache`, `no-store`, or `private` - directives are present in the origin headers. + For more information about requiring the HTTPS protocol, see [Requiring + HTTPS Between Viewers and + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) + in the *Amazon CloudFront Developer Guide*. - The headers, cookies, and query strings that are included in the cache - key are also included in requests that CloudFront sends to the origin. - CloudFront sends a request when it can't find a valid object in its - cache that matches the request's cache key. If you want to send values - to the origin but *not* include them in the cache key, use - `OriginRequestPolicy`. + Note: + The only way to guarantee that viewers retrieve an object that was + fetched from the origin using HTTPS is never to use any other protocol + to fetch the object. If you have recently changed from HTTP to HTTPS, we + recommend that you clear your objects' cache because cached objects are + protocol agnostic. That means that an edge location will return an + object from the cache regardless of whether the current request protocol + matches the protocol used previously. For more information, see + [Managing Cache + Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. + """ + allowed_methods: AllowedMethods | AllowedMethodsDict | None """ + A complex type that controls which HTTP methods CloudFront processes and + forwards to your Amazon S3 bucket or your custom origin. There are three + choices: - comment: str | None = ... + - CloudFront forwards only `GET` and `HEAD` requests. + + - CloudFront forwards only `GET`, `HEAD`, and `OPTIONS` requests. + + - CloudFront forwards `GET, HEAD, OPTIONS, PUT, PATCH, POST`, and + `DELETE` requests. + + If you pick the third choice, you may need to restrict access to your + Amazon S3 bucket or to your custom origin so users can't perform + operations that you don't want them to. For example, you might not want + users to have permissions to delete objects from your origin. """ - A comment to describe the cache policy. The comment cannot be longer - than 128 characters. + smooth_streaming: bool | None """ - name: str - """A unique name to identify the cache policy.""" - default_ttl: int | None = ... - """ - The default amount of time, in seconds, that you want objects to stay in - the CloudFront cache before CloudFront sends another request to the - origin to see if the object has been updated. CloudFront uses this value - as the object's time to live (TTL) only when the origin does *not* send - `Cache-Control` or `Expires` headers with the object. For more - information, see [Managing How Long Content Stays in an Edge Cache - (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) - in the *Amazon CloudFront Developer Guide*. + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - The default value for this field is 86400 seconds (one day). If the - value of `MinTTL` is more than 86400 seconds, then the default value for - this field is the same as the value of `MinTTL`. + Indicates whether you want to distribute media files in the Microsoft + Smooth Streaming format using the origin that is associated with this + cache behavior. If so, specify `true`; if not, specify `false`. If you + specify `true` for `SmoothStreaming`, you can still distribute other + content using this cache behavior if the content matches the value of + `PathPattern`. """ - max_ttl: int | None = ... + compress: bool | None """ - The maximum amount of time, in seconds, that objects stay in the - CloudFront cache before CloudFront sends another request to the origin - to see if the object has been updated. CloudFront uses this value only - when the origin sends `Cache-Control` or `Expires` headers with the - object. For more information, see [Managing How Long Content Stays in an - Edge Cache - (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + Whether you want CloudFront to automatically compress certain files for + this cache behavior. If so, specify true; if not, specify false. For + more information, see [Serving Compressed + Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) in the *Amazon CloudFront Developer Guide*. - - The default value for this field is 31536000 seconds (one year). If the - value of `MinTTL` or `DefaultTTL` is more than 31536000 seconds, then - the default value for this field is the same as the value of - `DefaultTTL`. """ - min_ttl: int + lambda_function_associations: ( + LambdaFunctionAssociations | LambdaFunctionAssociationsDict | None + ) """ - The minimum amount of time, in seconds, that you want objects to stay in - the CloudFront cache before CloudFront sends another request to the - origin to see if the object has been updated. For more information, see - [Managing How Long Content Stays in an Edge Cache - (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) - in the *Amazon CloudFront Developer Guide*. + A complex type that contains zero or more Lambda@Edge function + associations for a cache behavior. """ - parameters_in_cache_key_and_forwarded_to_origin: ( - ParametersInCacheKeyAndForwardedToOrigin | None - ) = ... + function_associations: FunctionAssociations | FunctionAssociationsDict | None """ - The HTTP headers, cookies, and URL query strings to include in the cache - key. The values included in the cache key are also included in requests - that CloudFront sends to the origin. + A list of CloudFront functions that are associated with this cache + behavior. CloudFront functions must be published to the `LIVE` stage to + associate them with a cache behavior. """ - -class CachePolicyCookieBehavior(UnknownEnumMixin, StrEnum): - NONE = "none" - WHITELIST = "whitelist" - ALL_EXCEPT = "allExcept" - ALL = "all" - -@dataclass(kw_only=True) -class CachePolicyCookiesConfig(_SerdeShape): + field_level_encryption_id: str | None """ - An object that determines whether any cookies in viewer requests (and if - so, which cookies) are included in the cache key and in requests that - CloudFront sends to the origin. + The value of `ID` for the field-level encryption configuration that you + want CloudFront to use for encrypting specific fields of data for this + cache behavior. + """ + realtime_log_config_arn: str | None + """ + The Amazon Resource Name (ARN) of the real-time log configuration that + is attached to this cache behavior. For more information, see [Real-time + logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) + in the *Amazon CloudFront Developer Guide*. """ + cache_policy_id: str | None + """ + The unique identifier of the cache policy that is attached to this cache + behavior. For more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. - cookie_behavior: str + A `CacheBehavior` must include either a `CachePolicyId` or + `ForwardedValues`. We recommend that you use a `CachePolicyId`. """ - Determines whether any cookies in viewer requests are included in the - cache key and in requests that CloudFront sends to the origin. Valid - values are: + origin_request_policy_id: str | None + """ + The unique identifier of the origin request policy that is attached to + this cache behavior. For more information, see [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + or [Using the managed origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) + in the *Amazon CloudFront Developer Guide*. + """ + response_headers_policy_id: str | None + """The identifier for a response headers policy.""" + grpc_config: GrpcConfig | GrpcConfigDict | None + """The gRPC configuration for your cache behavior.""" + forwarded_values: ForwardedValues | ForwardedValuesDict | None + """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. For more information, see + [Working with + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html) + in the *Amazon CloudFront Developer Guide*. - - `none` -- No cookies in viewer requests are included in the cache key - or in requests that CloudFront sends to the origin. Even when this - field is set to `none`, any cookies that are listed in an - `OriginRequestPolicy` *are* included in origin requests. + If you want to include values in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. - - `whitelist` -- Only the cookies in viewer requests that are listed in - the `CookieNames` type are included in the cache key and in requests - that CloudFront sends to the origin. + If you want to send values to the origin but not include them in the + cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + or [Using the managed origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) + in the *Amazon CloudFront Developer Guide*. - - `allExcept` -- All cookies in viewer requests are included in the - cache key and in requests that CloudFront sends to the origin, - ***except*** for those that are listed in the `CookieNames` type, - which are not included. + A `CacheBehavior` must include either a `CachePolicyId` or + `ForwardedValues`. We recommend that you use a `CachePolicyId`. - - `all` -- All cookies in viewer requests are included in the cache key - and in requests that CloudFront sends to the origin. + A complex type that specifies how CloudFront handles query strings, + cookies, and HTTP headers. """ - cookies: CookieNames | None = ... - """Contains a list of cookie names.""" + min_ttl: int | None + """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. -class CachePolicyHeaderBehavior(UnknownEnumMixin, StrEnum): - NONE = "none" - WHITELIST = "whitelist" + This field is deprecated. We recommend that you use the `MinTTL` field + in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. -@dataclass(kw_only=True) -class CachePolicyHeadersConfig(_SerdeShape): + The minimum amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. For more information, see + [Managing How Long Content Stays in an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. + + You must specify `0` for `MinTTL` if you configure CloudFront to forward + all headers to your origin (under `Headers`, if you specify `1` for + `Quantity` and `*` for `Name`). """ - An object that determines whether any HTTP headers (and if so, which - headers) are included in the cache key and in requests that CloudFront - sends to the origin. + default_ttl: int | None """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - header_behavior: str + This field is deprecated. We recommend that you use the `DefaultTTL` + field in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. + + The default amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. The value that you + specify applies only when your origin does not add HTTP headers such as + `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` to + objects. For more information, see [Managing How Long Content Stays in + an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. """ - Determines whether any HTTP headers are included in the cache key and in - requests that CloudFront sends to the origin. Valid values are: + max_ttl: int | None + """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - - `none` -- No HTTP headers are included in the cache key or in requests - that CloudFront sends to the origin. Even when this field is set to - `none`, any headers that are listed in an `OriginRequestPolicy` *are* - included in origin requests. + This field is deprecated. We recommend that you use the `MaxTTL` field + in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. - - `whitelist` -- Only the HTTP headers that are listed in the `Headers` - type are included in the cache key and in requests that CloudFront - sends to the origin. + The maximum amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. The value that you + specify applies only when your origin adds HTTP headers such as + `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` to + objects. For more information, see [Managing How Long Content Stays in + an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. """ - headers: Headers | None = ... - """Contains a list of HTTP header names.""" @dataclass(kw_only=True) -class CachePolicyInUse(ServiceError, _SerdeShape): +class CacheBehaviors(_SerdeShape): + """A complex type that contains zero or more `CacheBehavior` elements.""" + + quantity: int + """The number of cache behaviors for this distribution.""" + items: list[CacheBehavior] | None = ... """ - Cannot delete the cache policy because it is attached to one or more - cache behaviors. + Optional: A complex type that contains cache behaviors for this + distribution. If `Quantity` is `0`, you can omit `Items`. """ - response_metadata: ResponseMetadata = ... +class CacheBehaviorsDict(TypedDict, total=False): + """Dictionary form of `CacheBehaviors`.""" + + quantity: Required[int] + """The number of cache behaviors for this distribution.""" + items: Sequence[CacheBehavior | CacheBehaviorDict] | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Optional: A complex type that contains cache behaviors for this + distribution. If `Quantity` is `0`, you can omit `Items`. """ @dataclass(kw_only=True) -class CachePolicyList(_SerdeShape): - """A list of cache policies.""" - - next_marker: str | None = ... +class CachedMethods(_SerdeShape): """ - If there are more items in the list than are in this response, this - element is present. It contains the value that you should use in the - `Marker` field of a subsequent request to continue listing cache - policies where you left off. - """ - max_items: int - """The maximum number of cache policies requested.""" - quantity: int - """The total number of cache policies returned in the response.""" - items: list[CachePolicySummary] | None = ... - """Contains the cache policies in the list.""" + A complex type that controls whether CloudFront caches the response to + requests using the specified HTTP methods. There are two choices: -class CachePolicyQueryStringBehavior(UnknownEnumMixin, StrEnum): - NONE = "none" - WHITELIST = "whitelist" - ALL_EXCEPT = "allExcept" - ALL = "all" + - CloudFront caches responses to `GET` and `HEAD` requests. -@dataclass(kw_only=True) -class CachePolicyQueryStringsConfig(_SerdeShape): - """ - An object that determines whether any URL query strings in viewer - requests (and if so, which query strings) are included in the cache key - and in requests that CloudFront sends to the origin. - """ + - CloudFront caches responses to `GET`, `HEAD`, and `OPTIONS` requests. - query_string_behavior: str + If you pick the second choice for your Amazon S3 Origin, you may need to + forward Access-Control-Request-Method, Access-Control-Request-Headers, + and Origin headers for the responses to be cached correctly. """ - Determines whether any URL query strings in viewer requests are included - in the cache key and in requests that CloudFront sends to the origin. - Valid values are: - - - `none` -- No query strings in viewer requests are included in the - cache key or in requests that CloudFront sends to the origin. Even - when this field is set to `none`, any query strings that are listed in - an `OriginRequestPolicy` *are* included in origin requests. - - - `whitelist` -- Only the query strings in viewer requests that are - listed in the `QueryStringNames` type are included in the cache key - and in requests that CloudFront sends to the origin. - - - `allExcept` -- All query strings in viewer requests are included in - the cache key and in requests that CloudFront sends to the origin, - ***except*** those that are listed in the `QueryStringNames` type, - which are not included. - - `all` -- All query strings in viewer requests are included in the - cache key and in requests that CloudFront sends to the origin. - """ - query_strings: QueryStringNames | None = ... + quantity: int """ - Contains the specific query strings in viewer requests that either - ***are*** or ***are not*** included in the cache key and in requests - that CloudFront sends to the origin. The behavior depends on whether the - `QueryStringBehavior` field in the `CachePolicyQueryStringsConfig` type - is set to `whitelist` (the listed query strings ***are*** included) or - `allExcept` (the listed query strings ***are not*** included, but all - other query strings are). + The number of HTTP methods for which you want CloudFront to cache + responses. Valid values are `2` (for caching responses to `GET` and + `HEAD` requests) and `3` (for caching responses to `GET`, `HEAD`, and + `OPTIONS` requests). """ - -@dataclass(kw_only=True) -class CachePolicySummary(_SerdeShape): - """Contains a cache policy.""" - - type: str + items: list[str] """ - The type of cache policy, either `managed` (created by Amazon Web - Services) or `custom` (created in this Amazon Web Services account). + A complex type that contains the HTTP methods that you want CloudFront + to cache responses to. Valid values for `CachedMethods` include `GET`, + `HEAD`, and `OPTIONS`, depending on which caching option you choose. For + more information, see the preceding section. """ - cache_policy: CachePolicy - """The cache policy.""" -class CachePolicyType(UnknownEnumMixin, StrEnum): - MANAGED = "managed" - CUSTOM = "custom" +class CachedMethodsDict(TypedDict, total=False): + """Dictionary form of `CachedMethods`.""" -@dataclass(kw_only=True) -class CacheTagConfig(_SerdeShape): + quantity: Required[int] """ - A complex type that specifies the HTTP header name from which CloudFront - extracts cache tags from origin responses. When you add `CacheTagConfig` - to a distribution, CloudFront reads the specified header from origin - responses, parses the comma-separated tag values, and stores them with - the cached object. You can then invalidate cached objects by tag using - the `CreateInvalidation` API. + The number of HTTP methods for which you want CloudFront to cache + responses. Valid values are `2` (for caching responses to `GET` and + `HEAD` requests) and `3` (for caching responses to `GET`, `HEAD`, and + `OPTIONS` requests). """ - - header_name: str + items: Required[Sequence[str]] """ - The name of the HTTP header that your origin includes in responses. - CloudFront uses this header to extract cache tags. The header value must - contain comma-separated tag values (for example, - `product:electronics, category:tv, brand:example`). + A complex type that contains the HTTP methods that you want CloudFront + to cache responses to. Valid values for `CachedMethods` include `GET`, + `HEAD`, and `OPTIONS`, depending on which caching option you choose. For + more information, see the preceding section. """ @dataclass(kw_only=True) -class CannotChangeImmutablePublicKeyFields(ServiceError, _SerdeShape): - """You can't change the value of a public key.""" - - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. +class CachePolicy(_SerdeShape): """ + A cache policy. -@dataclass(kw_only=True) -class CannotDeleteEntityWhileInUse(ServiceError, _SerdeShape): - """The entity cannot be deleted while it is in use.""" + When it's attached to a cache behavior, the cache policy determines the + following: - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + - The values that CloudFront includes in the cache key. These values can + include HTTP headers, cookies, and URL query strings. CloudFront uses + the cache key to find an object in its cache that it can return to the + viewer. + + - The default, minimum, and maximum time to live (TTL) values that you + want objects to stay in the CloudFront cache. + + The headers, cookies, and query strings that are included in the cache + key are also included in requests that CloudFront sends to the origin. + CloudFront sends a request when it can't find a valid object in its + cache that matches the request's cache key. If you want to send values + to the origin but *not* include them in the cache key, use + `OriginRequestPolicy`. """ + id: str + """The unique identifier for the cache policy.""" + last_modified_time: datetime + """The date and time when the cache policy was last modified.""" + cache_policy_config: CachePolicyConfig + """The cache policy configuration.""" + @dataclass(kw_only=True) -class CannotUpdateEntityWhileInUse(ServiceError, _SerdeShape): - """The entity cannot be updated while it is in use.""" +class CachePolicyAlreadyExists(ServiceError, _SerdeShape): + """ + A cache policy with this name already exists. You must provide a unique + name. To modify an existing cache policy, use `UpdateCachePolicy`. + """ response_metadata: ResponseMetadata = ... """ @@ -1218,175 +1396,275 @@ class CannotUpdateEntityWhileInUse(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class Certificate(_SerdeShape): - """ - The Certificate Manager (ACM) certificate associated with your - distribution. +class CachePolicyConfig(_SerdeShape): """ + A cache policy configuration. - arn: str - """The Amazon Resource Name (ARN) of the ACM certificate.""" + This configuration determines the following: -class CertificateSource(UnknownEnumMixin, StrEnum): - CLOUDFRONT = "cloudfront" - IAM = "iam" - ACM = "acm" + - The values that CloudFront includes in the cache key. These values can + include HTTP headers, cookies, and URL query strings. CloudFront uses + the cache key to find an object in its cache that it can return to the + viewer. -class CertificateTransparencyLoggingPreference(UnknownEnumMixin, StrEnum): - ENABLED = "enabled" - DISABLED = "disabled" + - The default, minimum, and maximum time to live (TTL) values that you + want objects to stay in the CloudFront cache. -@dataclass(kw_only=True) -class CloudFrontOriginAccessIdentity(_SerdeShape): - """CloudFront origin access identity.""" + Warning: + If your minimum TTL is greater than 0, CloudFront will cache content + for at least the duration specified in the cache policy's minimum + TTL, even if the `Cache-Control: no-cache`, `no-store`, or `private` + directives are present in the origin headers. - id: str - """The ID for the origin access identity, for example, `E74FTE3AJFJ256A`.""" - s3_canonical_user_id: str - """ - The Amazon S3 canonical user ID for the origin access identity, used - when giving the origin access identity read permission to an object in - Amazon S3. + The headers, cookies, and query strings that are included in the cache + key are also included in requests that CloudFront sends to the origin. + CloudFront sends a request when it can't find a valid object in its + cache that matches the request's cache key. If you want to send values + to the origin but *not* include them in the cache key, use + `OriginRequestPolicy`. """ - cloud_front_origin_access_identity_config: ( - CloudFrontOriginAccessIdentityConfig | None - ) = ... - """The current configuration information for the identity.""" -@dataclass(kw_only=True) -class CloudFrontOriginAccessIdentityAlreadyExists(ServiceError, _SerdeShape): - """ - If the `CallerReference` is a value you already sent in a previous - request to create an identity but the content of the - `CloudFrontOriginAccessIdentityConfig` is different from the original - request, CloudFront returns a - `CloudFrontOriginAccessIdentityAlreadyExists` error. + comment: str | None = ... """ - - response_metadata: ResponseMetadata = ... + A comment to describe the cache policy. The comment cannot be longer + than 128 characters. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + name: str + """A unique name to identify the cache policy.""" + default_ttl: int | None = ... """ + The default amount of time, in seconds, that you want objects to stay in + the CloudFront cache before CloudFront sends another request to the + origin to see if the object has been updated. CloudFront uses this value + as the object's time to live (TTL) only when the origin does *not* send + `Cache-Control` or `Expires` headers with the object. For more + information, see [Managing How Long Content Stays in an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. -@dataclass(kw_only=True) -class CloudFrontOriginAccessIdentityConfig(_SerdeShape): + The default value for this field is 86400 seconds (one day). If the + value of `MinTTL` is more than 86400 seconds, then the default value for + this field is the same as the value of `MinTTL`. """ - Origin access identity configuration. Send a `GET` request to the - `/`*`CloudFront API version`*`/CloudFront/identity ID/config` resource. + max_ttl: int | None = ... """ + The maximum amount of time, in seconds, that objects stay in the + CloudFront cache before CloudFront sends another request to the origin + to see if the object has been updated. CloudFront uses this value only + when the origin sends `Cache-Control` or `Expires` headers with the + object. For more information, see [Managing How Long Content Stays in an + Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. - caller_reference: str + The default value for this field is 31536000 seconds (one year). If the + value of `MinTTL` or `DefaultTTL` is more than 31536000 seconds, then + the default value for this field is the same as the value of + `DefaultTTL`. """ - A unique value (for example, a date-time stamp) that ensures that the - request can't be replayed. - - If the value of `CallerReference` is new (regardless of the content of - the `CloudFrontOriginAccessIdentityConfig` object), a new origin access - identity is created. - - If the `CallerReference` is a value already sent in a previous identity - request, and the content of the `CloudFrontOriginAccessIdentityConfig` - is identical to the original request (ignoring white space), the - response includes the same information returned to the original request. - - If the `CallerReference` is a value you already sent in a previous - request to create an identity, but the content of the - `CloudFrontOriginAccessIdentityConfig` is different from the original - request, CloudFront returns a - `CloudFrontOriginAccessIdentityAlreadyExists` error. + min_ttl: int """ - comment: str + The minimum amount of time, in seconds, that you want objects to stay in + the CloudFront cache before CloudFront sends another request to the + origin to see if the object has been updated. For more information, see + [Managing How Long Content Stays in an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. """ - A comment to describe the origin access identity. The comment cannot be - longer than 128 characters. + parameters_in_cache_key_and_forwarded_to_origin: ( + ParametersInCacheKeyAndForwardedToOrigin | None + ) = ... + """ + The HTTP headers, cookies, and URL query strings to include in the cache + key. The values included in the cache key are also included in requests + that CloudFront sends to the origin. """ -@dataclass(kw_only=True) -class CloudFrontOriginAccessIdentityInUse(ServiceError, _SerdeShape): - """The Origin Access Identity specified is already in use.""" +class CachePolicyConfigDict(TypedDict, total=False): + """Dictionary form of `CachePolicyConfig`.""" - response_metadata: ResponseMetadata = ... + comment: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + A comment to describe the cache policy. The comment cannot be longer + than 128 characters. + """ + name: Required[str] + """A unique name to identify the cache policy.""" + default_ttl: int | None """ + The default amount of time, in seconds, that you want objects to stay in + the CloudFront cache before CloudFront sends another request to the + origin to see if the object has been updated. CloudFront uses this value + as the object's time to live (TTL) only when the origin does *not* send + `Cache-Control` or `Expires` headers with the object. For more + information, see [Managing How Long Content Stays in an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. -@dataclass(kw_only=True) -class CloudFrontOriginAccessIdentityList(_SerdeShape): + The default value for this field is 86400 seconds (one day). If the + value of `MinTTL` is more than 86400 seconds, then the default value for + this field is the same as the value of `MinTTL`. """ - Lists the origin access identities for CloudFront.Send a `GET` request - to the `/`*`CloudFront API version`*`/origin-access-identity/cloudfront` - resource. The response includes a `CloudFrontOriginAccessIdentityList` - element with zero or more `CloudFrontOriginAccessIdentitySummary` child - elements. By default, your entire list of origin access identities is - returned in one single page. If the list is long, you can paginate it - using the `MaxItems` and `Marker` parameters. + max_ttl: int | None """ + The maximum amount of time, in seconds, that objects stay in the + CloudFront cache before CloudFront sends another request to the origin + to see if the object has been updated. CloudFront uses this value only + when the origin sends `Cache-Control` or `Expires` headers with the + object. For more information, see [Managing How Long Content Stays in an + Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. - marker: str - """ - Use this when paginating results to indicate where to begin in your list - of origin access identities. The results include identities in the list - that occur after the marker. To get the next page of results, set the - `Marker` to the value of the `NextMarker` from the current page's - response (which is also the ID of the last identity on that page). + The default value for this field is 31536000 seconds (one year). If the + value of `MinTTL` or `DefaultTTL` is more than 31536000 seconds, then + the default value for this field is the same as the value of + `DefaultTTL`. """ - next_marker: str | None = ... + min_ttl: Required[int] """ - If `IsTruncated` is `true`, this element is present and contains the - value you can use for the `Marker` request parameter to continue listing - your origin access identities where they left off. + The minimum amount of time, in seconds, that you want objects to stay in + the CloudFront cache before CloudFront sends another request to the + origin to see if the object has been updated. For more information, see + [Managing How Long Content Stays in an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. """ - max_items: int + parameters_in_cache_key_and_forwarded_to_origin: ( + ParametersInCacheKeyAndForwardedToOrigin + | ParametersInCacheKeyAndForwardedToOriginDict + | None + ) """ - The maximum number of origin access identities you want in the response - body. + The HTTP headers, cookies, and URL query strings to include in the cache + key. The values included in the cache key are also included in requests + that CloudFront sends to the origin. """ - is_truncated: bool + +class CachePolicyCookieBehavior(UnknownEnumMixin, StrEnum): + NONE = "none" + WHITELIST = "whitelist" + ALL_EXCEPT = "allExcept" + ALL = "all" + +@dataclass(kw_only=True) +class CachePolicyCookiesConfig(_SerdeShape): """ - A flag that indicates whether more origin access identities remain to be - listed. If your results were truncated, you can make a follow-up - pagination request using the `Marker` request parameter to retrieve more - items in the list. + An object that determines whether any cookies in viewer requests (and if + so, which cookies) are included in the cache key and in requests that + CloudFront sends to the origin. """ - quantity: int + + cookie_behavior: str """ - The number of CloudFront origin access identities that were created by - the current Amazon Web Services account. + Determines whether any cookies in viewer requests are included in the + cache key and in requests that CloudFront sends to the origin. Valid + values are: + + - `none` -- No cookies in viewer requests are included in the cache key + or in requests that CloudFront sends to the origin. Even when this + field is set to `none`, any cookies that are listed in an + `OriginRequestPolicy` *are* included in origin requests. + + - `whitelist` -- Only the cookies in viewer requests that are listed in + the `CookieNames` type are included in the cache key and in requests + that CloudFront sends to the origin. + + - `allExcept` -- All cookies in viewer requests are included in the + cache key and in requests that CloudFront sends to the origin, + ***except*** for those that are listed in the `CookieNames` type, + which are not included. + + - `all` -- All cookies in viewer requests are included in the cache key + and in requests that CloudFront sends to the origin. """ - items: list[CloudFrontOriginAccessIdentitySummary] | None = ... + cookies: CookieNames | None = ... + """Contains a list of cookie names.""" + +class CachePolicyCookiesConfigDict(TypedDict, total=False): + """Dictionary form of `CachePolicyCookiesConfig`.""" + + cookie_behavior: Required[str] """ - A complex type that contains one `CloudFrontOriginAccessIdentitySummary` - element for each origin access identity that was created by the current - Amazon Web Services account. + Determines whether any cookies in viewer requests are included in the + cache key and in requests that CloudFront sends to the origin. Valid + values are: + + - `none` -- No cookies in viewer requests are included in the cache key + or in requests that CloudFront sends to the origin. Even when this + field is set to `none`, any cookies that are listed in an + `OriginRequestPolicy` *are* included in origin requests. + + - `whitelist` -- Only the cookies in viewer requests that are listed in + the `CookieNames` type are included in the cache key and in requests + that CloudFront sends to the origin. + + - `allExcept` -- All cookies in viewer requests are included in the + cache key and in requests that CloudFront sends to the origin, + ***except*** for those that are listed in the `CookieNames` type, + which are not included. + + - `all` -- All cookies in viewer requests are included in the cache key + and in requests that CloudFront sends to the origin. """ + cookies: CookieNames | CookieNamesDict | None + """Contains a list of cookie names.""" + +class CachePolicyHeaderBehavior(UnknownEnumMixin, StrEnum): + NONE = "none" + WHITELIST = "whitelist" @dataclass(kw_only=True) -class CloudFrontOriginAccessIdentitySummary(_SerdeShape): - """Summary of the information about a CloudFront origin access identity.""" +class CachePolicyHeadersConfig(_SerdeShape): + """ + An object that determines whether any HTTP headers (and if so, which + headers) are included in the cache key and in requests that CloudFront + sends to the origin. + """ - id: str - """The ID for the origin access identity. For example: `E74FTE3AJFJ256A`.""" - s3_canonical_user_id: str + header_behavior: str """ - The Amazon S3 canonical user ID for the origin access identity, which - you use when giving the origin access identity read permission to an - object in Amazon S3. + Determines whether any HTTP headers are included in the cache key and in + requests that CloudFront sends to the origin. Valid values are: + + - `none` -- No HTTP headers are included in the cache key or in requests + that CloudFront sends to the origin. Even when this field is set to + `none`, any headers that are listed in an `OriginRequestPolicy` *are* + included in origin requests. + + - `whitelist` -- Only the HTTP headers that are listed in the `Headers` + type are included in the cache key and in requests that CloudFront + sends to the origin. """ - comment: str + headers: Headers | None = ... + """Contains a list of HTTP header names.""" + +class CachePolicyHeadersConfigDict(TypedDict, total=False): + """Dictionary form of `CachePolicyHeadersConfig`.""" + + header_behavior: Required[str] """ - The comment for this origin access identity, as originally specified - when created. + Determines whether any HTTP headers are included in the cache key and in + requests that CloudFront sends to the origin. Valid values are: + + - `none` -- No HTTP headers are included in the cache key or in requests + that CloudFront sends to the origin. Even when this field is set to + `none`, any headers that are listed in an `OriginRequestPolicy` *are* + included in origin requests. + + - `whitelist` -- Only the HTTP headers that are listed in the `Headers` + type are included in the cache key and in requests that CloudFront + sends to the origin. """ + headers: Headers | HeadersDict | None + """Contains a list of HTTP header names.""" @dataclass(kw_only=True) -class CNAMEAlreadyExists(ServiceError, _SerdeShape): - """The CNAME specified is already defined for CloudFront.""" +class CachePolicyInUse(ServiceError, _SerdeShape): + """ + Cannot delete the cache policy because it is attached to one or more + cache behaviors. + """ response_metadata: ResponseMetadata = ... """ @@ -1397,243 +1675,241 @@ class CNAMEAlreadyExists(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ConflictingAlias(_SerdeShape): - """ - An alias (also called a CNAME) and the CloudFront standard distribution - and Amazon Web Services account ID that it's associated with. The - standard distribution and account IDs are partially hidden, which allows - you to identify the standard distributions and accounts that you own, - and helps to protect the information of ones that you don't own. - """ +class CachePolicyList(_SerdeShape): + """A list of cache policies.""" - alias: str | None = ... - """An alias (also called a CNAME).""" - distribution_id: str | None = ... - """ - The (partially hidden) ID of the CloudFront standard distribution - associated with the alias. - """ - account_id: str | None = ... + next_marker: str | None = ... """ - The (partially hidden) ID of the Amazon Web Services account that owns - the standard distribution that's associated with the alias. + If there are more items in the list than are in this response, this + element is present. It contains the value that you should use in the + `Marker` field of a subsequent request to continue listing cache + policies where you left off. """ + max_items: int + """The maximum number of cache policies requested.""" + quantity: int + """The total number of cache policies returned in the response.""" + items: list[CachePolicySummary] | None = ... + """Contains the cache policies in the list.""" -@dataclass(kw_only=True) -class ConflictingAliasesList(_SerdeShape): - """ - A list of aliases (also called CNAMEs) and the CloudFront standard - distributions and Amazon Web Services accounts that they are associated - with. In the list, the standard distribution and account IDs are - partially hidden, which allows you to identify the standard - distributions and accounts that you own, but helps to protect the - information of ones that you don't own. - """ +class CachePolicyQueryStringBehavior(UnknownEnumMixin, StrEnum): + NONE = "none" + WHITELIST = "whitelist" + ALL_EXCEPT = "allExcept" + ALL = "all" - next_marker: str | None = ... +@dataclass(kw_only=True) +class CachePolicyQueryStringsConfig(_SerdeShape): """ - If there are more items in the list than are in this response, this - element is present. It contains the value that you should use in the - `Marker` field of a subsequent request to continue listing conflicting - aliases where you left off. + An object that determines whether any URL query strings in viewer + requests (and if so, which query strings) are included in the cache key + and in requests that CloudFront sends to the origin. """ - max_items: int | None = ... - """The maximum number of conflicting aliases requested.""" - quantity: int | None = ... - """The number of conflicting aliases returned in the response.""" - items: list[ConflictingAlias] | None = ... - """Contains the conflicting aliases in the list.""" - -@dataclass(kw_only=True) -class ConnectionFunctionAssociation(_SerdeShape): - """A connection function association.""" - - id: str - """The association's ID.""" -@dataclass(kw_only=True) -class ConnectionFunctionSummary(_SerdeShape): - """A connection function summary.""" + query_string_behavior: str + """ + Determines whether any URL query strings in viewer requests are included + in the cache key and in requests that CloudFront sends to the origin. + Valid values are: - name: str - """The connection function name.""" - id: str - """The connection function ID.""" - connection_function_config: FunctionConfig - """Contains configuration information about a CloudFront function.""" - connection_function_arn: str - """The connection function Amazon Resource Name (ARN).""" - status: str - """The connection function status.""" - stage: str - """The connection function stage.""" - created_time: datetime - """The connection function created time.""" - last_modified_time: datetime - """The connection function last modified time.""" + - `none` -- No query strings in viewer requests are included in the + cache key or in requests that CloudFront sends to the origin. Even + when this field is set to `none`, any query strings that are listed in + an `OriginRequestPolicy` *are* included in origin requests. -@dataclass(kw_only=True) -class ConnectionFunctionTestResult(_SerdeShape): - """A connection function test result.""" + - `whitelist` -- Only the query strings in viewer requests that are + listed in the `QueryStringNames` type are included in the cache key + and in requests that CloudFront sends to the origin. - connection_function_summary: ConnectionFunctionSummary | None = ... - """The connection function summary.""" - compute_utilization: str | None = ... - """The connection function compute utilization.""" - connection_function_execution_logs: list[str] | None = ... - """The connection function execution logs.""" - connection_function_error_message: str | None = ... - """The connection function error message.""" - connection_function_output: str | None = ... - """The connection function output.""" + - `allExcept` -- All query strings in viewer requests are included in + the cache key and in requests that CloudFront sends to the origin, + ***except*** those that are listed in the `QueryStringNames` type, + which are not included. -@dataclass(kw_only=True) -class ConnectionGroup(_SerdeShape): + - `all` -- All query strings in viewer requests are included in the + cache key and in requests that CloudFront sends to the origin. """ - The connection group for your distribution tenants. When you first - create a distribution tenant and you don't specify a connection group, - CloudFront will automatically create a default connection group for you. - When you create a new distribution tenant and don't specify a - connection group, the default one will be associated with your - distribution tenant. + query_strings: QueryStringNames | None = ... + """ + Contains the specific query strings in viewer requests that either + ***are*** or ***are not*** included in the cache key and in requests + that CloudFront sends to the origin. The behavior depends on whether the + `QueryStringBehavior` field in the `CachePolicyQueryStringsConfig` type + is set to `whitelist` (the listed query strings ***are*** included) or + `allExcept` (the listed query strings ***are not*** included, but all + other query strings are). """ - id: str | None = ... - """The ID of the connection group.""" - name: str | None = ... - """The name of the connection group.""" - arn: str | None = ... - """The Amazon Resource Name (ARN) of the connection group.""" - created_time: datetime | None = ... - """The date and time when the connection group was created.""" - last_modified_time: datetime | None = ... - """The date and time when the connection group was updated.""" - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" - ipv6_enabled: bool | None = ... - """IPv6 is enabled for the connection group.""" - routing_endpoint: str | None = ... +class CachePolicyQueryStringsConfigDict(TypedDict, total=False): + """Dictionary form of `CachePolicyQueryStringsConfig`.""" + + query_string_behavior: Required[str] """ - The routing endpoint (also known as the DNS name) that is assigned to - the connection group, such as d111111abcdef8.cloudfront.net. + Determines whether any URL query strings in viewer requests are included + in the cache key and in requests that CloudFront sends to the origin. + Valid values are: + + - `none` -- No query strings in viewer requests are included in the + cache key or in requests that CloudFront sends to the origin. Even + when this field is set to `none`, any query strings that are listed in + an `OriginRequestPolicy` *are* included in origin requests. + + - `whitelist` -- Only the query strings in viewer requests that are + listed in the `QueryStringNames` type are included in the cache key + and in requests that CloudFront sends to the origin. + + - `allExcept` -- All query strings in viewer requests are included in + the cache key and in requests that CloudFront sends to the origin, + ***except*** those that are listed in the `QueryStringNames` type, + which are not included. + + - `all` -- All query strings in viewer requests are included in the + cache key and in requests that CloudFront sends to the origin. """ - anycast_ip_list_id: str | None = ... - """The ID of the Anycast static IP list.""" - status: str | None = ... - """The status of the connection group.""" - enabled: bool | None = ... - """Whether the connection group is enabled.""" - is_default: bool | None = ... + query_strings: QueryStringNames | QueryStringNamesDict | None """ - Whether the connection group is the default connection group for the - distribution tenants. + Contains the specific query strings in viewer requests that either + ***are*** or ***are not*** included in the cache key and in requests + that CloudFront sends to the origin. The behavior depends on whether the + `QueryStringBehavior` field in the `CachePolicyQueryStringsConfig` type + is set to `whitelist` (the listed query strings ***are*** included) or + `allExcept` (the listed query strings ***are not*** included, but all + other query strings are). """ @dataclass(kw_only=True) -class ConnectionGroupAssociationFilter(_SerdeShape): +class CachePolicySummary(_SerdeShape): + """Contains a cache policy.""" + + type: str """ - Contains information about what CloudFront resources your connection - groups are associated with. + The type of cache policy, either `managed` (created by Amazon Web + Services) or `custom` (created in this Amazon Web Services account). """ + cache_policy: CachePolicy + """The cache policy.""" - anycast_ip_list_id: str | None = ... - """The ID of the Anycast static IP list.""" +class CachePolicyType(UnknownEnumMixin, StrEnum): + MANAGED = "managed" + CUSTOM = "custom" @dataclass(kw_only=True) -class ConnectionGroupSummary(_SerdeShape): - """A summary that contains details about your connection groups.""" - - id: str - """The ID of the connection group.""" - name: str - """The name of the connection group.""" - arn: str - """The Amazon Resource Name (ARN) of the connection group.""" - routing_endpoint: str +class CacheTagConfig(_SerdeShape): """ - The routing endpoint (also known as the DNS name) that is assigned to - the connection group, such as d111111abcdef8.cloudfront.net. + A complex type that specifies the HTTP header name from which CloudFront + extracts cache tags from origin responses. When you add `CacheTagConfig` + to a distribution, CloudFront reads the specified header from origin + responses, parses the comma-separated tag values, and stores them with + the cached object. You can then invalidate cached objects by tag using + the `CreateInvalidation` API. """ - created_time: datetime - """The date and time when the connection group was created.""" - last_modified_time: datetime - """The date and time when the connection group was updated.""" - e_tag: str - """The current version of the connection group.""" - anycast_ip_list_id: str | None = ... - """The ID of the Anycast static IP list.""" - enabled: bool | None = ... - """Whether the connection group is enabled""" - status: str | None = ... - """The status of the connection group.""" - is_default: bool | None = ... + + header_name: str """ - Whether the connection group is the default connection group for the - distribution tenants. + The name of the HTTP header that your origin includes in responses. + CloudFront uses this header to extract cache tags. The header value must + contain comma-separated tag values (for example, + `product:electronics, category:tv, brand:example`). """ -class ConnectionMode(UnknownEnumMixin, StrEnum): - DIRECT = "direct" - TENANT_ONLY = "tenant-only" - -@dataclass(kw_only=True) -class ContentTypeProfile(_SerdeShape): - """A field-level encryption content type profile.""" +class CacheTagConfigDict(TypedDict, total=False): + """Dictionary form of `CacheTagConfig`.""" - format: str - """The format for a field-level encryption content type-profile mapping.""" - profile_id: str | None = ... - """ - The profile ID for a field-level encryption content type-profile - mapping. - """ - content_type: str + header_name: Required[str] """ - The content type for a field-level encryption content type-profile - mapping. + The name of the HTTP header that your origin includes in responses. + CloudFront uses this header to extract cache tags. The header value must + contain comma-separated tag values (for example, + `product:electronics, category:tv, brand:example`). """ @dataclass(kw_only=True) -class ContentTypeProfileConfig(_SerdeShape): - """ - The configuration for a field-level encryption content type-profile - mapping. - """ +class CannotChangeImmutablePublicKeyFields(ServiceError, _SerdeShape): + """You can't change the value of a public key.""" - forward_when_content_type_is_unknown: bool + response_metadata: ResponseMetadata = ... """ - The setting in a field-level encryption content type-profile mapping - that specifies what to do when an unknown content type is provided for - the profile. If true, content is forwarded without being encrypted when - the content type is unknown. If false (the default), an error is - returned when the content type is unknown. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - content_type_profiles: ContentTypeProfiles | None = ... - """The configuration for a field-level encryption content type-profile.""" @dataclass(kw_only=True) -class ContentTypeProfiles(_SerdeShape): - """Field-level encryption content type-profile.""" +class CannotDeleteEntityWhileInUse(ServiceError, _SerdeShape): + """The entity cannot be deleted while it is in use.""" - quantity: int - """The number of field-level encryption content type-profile mappings.""" - items: list[ContentTypeProfile] | None = ... - """Items in a field-level encryption content type-profile mapping.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ @dataclass(kw_only=True) -class ContinuousDeploymentPolicy(_SerdeShape): - """A continuous deployment policy.""" +class CannotUpdateEntityWhileInUse(ServiceError, _SerdeShape): + """The entity cannot be updated while it is in use.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class Certificate(_SerdeShape): + """ + The Certificate Manager (ACM) certificate associated with your + distribution. + """ + + arn: str + """The Amazon Resource Name (ARN) of the ACM certificate.""" + +class CertificateDict(TypedDict, total=False): + """Dictionary form of `Certificate`.""" + + arn: Required[str] + """The Amazon Resource Name (ARN) of the ACM certificate.""" + +class CertificateSource(UnknownEnumMixin, StrEnum): + CLOUDFRONT = "cloudfront" + IAM = "iam" + ACM = "acm" + +class CertificateTransparencyLoggingPreference(UnknownEnumMixin, StrEnum): + ENABLED = "enabled" + DISABLED = "disabled" + +@dataclass(kw_only=True) +class CloudFrontOriginAccessIdentity(_SerdeShape): + """CloudFront origin access identity.""" id: str - """The identifier of the continuous deployment policy.""" - last_modified_time: datetime - """The date and time the continuous deployment policy was last modified.""" - continuous_deployment_policy_config: ContinuousDeploymentPolicyConfig - """Contains the configuration for a continuous deployment policy.""" + """The ID for the origin access identity, for example, `E74FTE3AJFJ256A`.""" + s3_canonical_user_id: str + """ + The Amazon S3 canonical user ID for the origin access identity, used + when giving the origin access identity read permission to an object in + Amazon S3. + """ + cloud_front_origin_access_identity_config: ( + CloudFrontOriginAccessIdentityConfig | None + ) = ... + """The current configuration information for the identity.""" @dataclass(kw_only=True) -class ContinuousDeploymentPolicyAlreadyExists(ServiceError, _SerdeShape): - """A continuous deployment policy with this configuration already exists.""" +class CloudFrontOriginAccessIdentityAlreadyExists(ServiceError, _SerdeShape): + """ + If the `CallerReference` is a value you already sent in a previous + request to create an identity but the content of the + `CloudFrontOriginAccessIdentityConfig` is different from the original + request, CloudFront returns a + `CloudFrontOriginAccessIdentityAlreadyExists` error. + """ response_metadata: ResponseMetadata = ... """ @@ -1644,34 +1920,71 @@ class ContinuousDeploymentPolicyAlreadyExists(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ContinuousDeploymentPolicyConfig(_SerdeShape): - """Contains the configuration for a continuous deployment policy.""" - - staging_distribution_dns_names: StagingDistributionDnsNames +class CloudFrontOriginAccessIdentityConfig(_SerdeShape): """ - The CloudFront domain name of the staging distribution. For example: - `d111111abcdef8.cloudfront.net`. + Origin access identity configuration. Send a `GET` request to the + `/`*`CloudFront API version`*`/CloudFront/identity ID/config` resource. """ - enabled: bool + + caller_reference: str """ - A Boolean that indicates whether this continuous deployment policy is - enabled (in effect). When this value is `true`, this policy is enabled - and in effect. When this value is `false`, this policy is not enabled - and has no effect. + A unique value (for example, a date-time stamp) that ensures that the + request can't be replayed. + + If the value of `CallerReference` is new (regardless of the content of + the `CloudFrontOriginAccessIdentityConfig` object), a new origin access + identity is created. + + If the `CallerReference` is a value already sent in a previous identity + request, and the content of the `CloudFrontOriginAccessIdentityConfig` + is identical to the original request (ignoring white space), the + response includes the same information returned to the original request. + + If the `CallerReference` is a value you already sent in a previous + request to create an identity, but the content of the + `CloudFrontOriginAccessIdentityConfig` is different from the original + request, CloudFront returns a + `CloudFrontOriginAccessIdentityAlreadyExists` error. """ - traffic_config: TrafficConfig | None = ... + comment: str """ - Contains the parameters for routing production traffic from your primary - to staging distributions. + A comment to describe the origin access identity. The comment cannot be + longer than 128 characters. """ -@dataclass(kw_only=True) -class ContinuousDeploymentPolicyInUse(ServiceError, _SerdeShape): +class CloudFrontOriginAccessIdentityConfigDict(TypedDict, total=False): + """Dictionary form of `CloudFrontOriginAccessIdentityConfig`.""" + + caller_reference: Required[str] """ - You cannot delete a continuous deployment policy that is associated with - a primary distribution. + A unique value (for example, a date-time stamp) that ensures that the + request can't be replayed. + + If the value of `CallerReference` is new (regardless of the content of + the `CloudFrontOriginAccessIdentityConfig` object), a new origin access + identity is created. + + If the `CallerReference` is a value already sent in a previous identity + request, and the content of the `CloudFrontOriginAccessIdentityConfig` + is identical to the original request (ignoring white space), the + response includes the same information returned to the original request. + + If the `CallerReference` is a value you already sent in a previous + request to create an identity, but the content of the + `CloudFrontOriginAccessIdentityConfig` is different from the original + request, CloudFront returns a + `CloudFrontOriginAccessIdentityAlreadyExists` error. + """ + comment: Required[str] + """ + A comment to describe the origin access identity. The comment cannot be + longer than 128 characters. """ +@dataclass(kw_only=True) +class CloudFrontOriginAccessIdentityInUse(ServiceError, _SerdeShape): + """The Origin Access Identity specified is already in use.""" + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -1681,360 +1994,374 @@ class ContinuousDeploymentPolicyInUse(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ContinuousDeploymentPolicyList(_SerdeShape): - """Contains a list of continuous deployment policies.""" +class CloudFrontOriginAccessIdentityList(_SerdeShape): + """ + Lists the origin access identities for CloudFront.Send a `GET` request + to the `/`*`CloudFront API version`*`/origin-access-identity/cloudfront` + resource. The response includes a `CloudFrontOriginAccessIdentityList` + element with zero or more `CloudFrontOriginAccessIdentitySummary` child + elements. By default, your entire list of origin access identities is + returned in one single page. If the list is long, you can paginate it + using the `MaxItems` and `Marker` parameters. + """ + marker: str + """ + Use this when paginating results to indicate where to begin in your list + of origin access identities. The results include identities in the list + that occur after the marker. To get the next page of results, set the + `Marker` to the value of the `NextMarker` from the current page's + response (which is also the ID of the last identity on that page). + """ next_marker: str | None = ... """ - Indicates the next page of continuous deployment policies. To get the - next page of the list, use this value in the `Marker` field of your - request. + If `IsTruncated` is `true`, this element is present and contains the + value you can use for the `Marker` request parameter to continue listing + your origin access identities where they left off. """ max_items: int """ - The maximum number of continuous deployment policies that were specified - in your request. + The maximum number of origin access identities you want in the response + body. """ - quantity: int + is_truncated: bool """ - The total number of continuous deployment policies in your Amazon Web - Services account, regardless of the `MaxItems` value. + A flag that indicates whether more origin access identities remain to be + listed. If your results were truncated, you can make a follow-up + pagination request using the `Marker` request parameter to retrieve more + items in the list. """ - items: list[ContinuousDeploymentPolicySummary] | None = ... - """A list of continuous deployment policy items.""" - -@dataclass(kw_only=True) -class ContinuousDeploymentPolicySummary(_SerdeShape): - """A summary of the information about your continuous deployment policies.""" - - continuous_deployment_policy: ContinuousDeploymentPolicy - """The continuous deployment policy.""" - -class ContinuousDeploymentPolicyType(UnknownEnumMixin, StrEnum): - SINGLE_WEIGHT = "SingleWeight" - SINGLE_HEADER = "SingleHeader" - -@dataclass(kw_only=True) -class ContinuousDeploymentSingleHeaderConfig(_SerdeShape): + quantity: int """ - This configuration determines which HTTP requests are sent to the - staging distribution. If the HTTP request contains a header and value - that matches what you specify here, the request is sent to the staging - distribution. Otherwise the request is sent to the primary distribution. + The number of CloudFront origin access identities that were created by + the current Amazon Web Services account. """ - - header: str + items: list[CloudFrontOriginAccessIdentitySummary] | None = ... """ - The request header name that you want CloudFront to send to your staging - distribution. The header must contain the prefix `aws-cf-cd-`. + A complex type that contains one `CloudFrontOriginAccessIdentitySummary` + element for each origin access identity that was created by the current + Amazon Web Services account. """ - value: str - """The request header value.""" @dataclass(kw_only=True) -class ContinuousDeploymentSingleWeightConfig(_SerdeShape): - """Contains the percentage of traffic to send to a staging distribution.""" +class CloudFrontOriginAccessIdentitySummary(_SerdeShape): + """Summary of the information about a CloudFront origin access identity.""" - weight: float + id: str + """The ID for the origin access identity. For example: `E74FTE3AJFJ256A`.""" + s3_canonical_user_id: str """ - The percentage of traffic to send to a staging distribution, expressed - as a decimal number between 0 and 0.15. For example, a value of 0.10 - means 10% of traffic is sent to the staging distribution. + The Amazon S3 canonical user ID for the origin access identity, which + you use when giving the origin access identity read permission to an + object in Amazon S3. """ - session_stickiness_config: SessionStickinessConfig | None = ... + comment: str """ - Session stickiness provides the ability to define multiple requests from - a single viewer as a single session. This prevents the potentially - inconsistent experience of sending some of a given user's requests to - your staging distribution, while others are sent to your primary - distribution. Define the session duration using TTL values. + The comment for this origin access identity, as originally specified + when created. """ @dataclass(kw_only=True) -class CookieNames(_SerdeShape): - """Contains a list of cookie names.""" +class CNAMEAlreadyExists(ServiceError, _SerdeShape): + """The CNAME specified is already defined for CloudFront.""" - quantity: int - """The number of cookie names in the `Items` list.""" - items: list[str] | None = ... - """A list of cookie names.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ @dataclass(kw_only=True) -class CookiePreference(_SerdeShape): +class ConflictingAlias(_SerdeShape): """ - This field is deprecated. We recommend that you use a cache policy or an - origin request policy instead of this field. - - If you want to include cookies in the cache key, use `CookiesConfig` in - a cache policy. See `CachePolicy`. - - If you want to send cookies to the origin but not include them in the - cache key, use `CookiesConfig` in an origin request policy. See - `OriginRequestPolicy`. - - A complex type that specifies whether you want CloudFront to forward - cookies to the origin and, if so, which ones. For more information about - forwarding cookies to the origin, see [Caching Content Based on - Cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) - in the *Amazon CloudFront Developer Guide*. + An alias (also called a CNAME) and the CloudFront standard distribution + and Amazon Web Services account ID that it's associated with. The + standard distribution and account IDs are partially hidden, which allows + you to identify the standard distributions and accounts that you own, + and helps to protect the information of ones that you don't own. """ - forward: str + alias: str | None = ... + """An alias (also called a CNAME).""" + distribution_id: str | None = ... + """ + The (partially hidden) ID of the CloudFront standard distribution + associated with the alias. + """ + account_id: str | None = ... + """ + The (partially hidden) ID of the Amazon Web Services account that owns + the standard distribution that's associated with the alias. """ - This field is deprecated. We recommend that you use a cache policy or an - origin request policy instead of this field. - - If you want to include cookies in the cache key, use a cache policy. For - more information, see [Creating cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) - in the *Amazon CloudFront Developer Guide*. - - If you want to send cookies to the origin but not include them in the - cache key, use origin request policy. For more information, see - [Creating origin request - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) - in the *Amazon CloudFront Developer Guide*. - - Specifies which cookies to forward to the origin for this cache - behavior: all, none, or the list of cookies specified in the - `WhitelistedNames` complex type. - Amazon S3 doesn't process cookies. When the cache behavior is - forwarding requests to an Amazon S3 origin, specify none for the - `Forward` element. +@dataclass(kw_only=True) +class ConflictingAliasesList(_SerdeShape): """ - whitelisted_names: CookieNames | None = ... + A list of aliases (also called CNAMEs) and the CloudFront standard + distributions and Amazon Web Services accounts that they are associated + with. In the list, the standard distribution and account IDs are + partially hidden, which allows you to identify the standard + distributions and accounts that you own, but helps to protect the + information of ones that you don't own. """ - This field is deprecated. We recommend that you use a cache policy or an - origin request policy instead of this field. - If you want to include cookies in the cache key, use a cache policy. For - more information, see [Creating cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) - in the *Amazon CloudFront Developer Guide*. + next_marker: str | None = ... + """ + If there are more items in the list than are in this response, this + element is present. It contains the value that you should use in the + `Marker` field of a subsequent request to continue listing conflicting + aliases where you left off. + """ + max_items: int | None = ... + """The maximum number of conflicting aliases requested.""" + quantity: int | None = ... + """The number of conflicting aliases returned in the response.""" + items: list[ConflictingAlias] | None = ... + """Contains the conflicting aliases in the list.""" - If you want to send cookies to the origin but not include them in the - cache key, use an origin request policy. For more information, see - [Creating origin request - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) - in the *Amazon CloudFront Developer Guide*. +@dataclass(kw_only=True) +class ConnectionFunctionAssociation(_SerdeShape): + """A connection function association.""" - Required if you specify `whitelist` for the value of `Forward`. A - complex type that specifies how many different cookies you want - CloudFront to forward to the origin for this cache behavior and, if you - want to forward selected cookies, the names of those cookies. + id: str + """The association's ID.""" - If you specify `all` or `none` for the value of `Forward`, omit - `WhitelistedNames`. If you change the value of `Forward` from - `whitelist` to `all` or `none` and you don't delete the - `WhitelistedNames` element and its child elements, CloudFront deletes - them automatically. +class ConnectionFunctionAssociationDict(TypedDict, total=False): + """Dictionary form of `ConnectionFunctionAssociation`.""" - For the current limit on the number of cookie names that you can - whitelist for each cache behavior, see [CloudFront - Limits](https://docs.aws.amazon.com/general/latest/gr/xrefaws_service_limits.html#limits_cloudfront) - in the *Amazon Web Services General Reference*. - """ + id: Required[str] + """The association's ID.""" @dataclass(kw_only=True) -class CopyDistributionInput(_SerdeShape): - """Dataclass for CopyDistributionInput structure.""" - - primary_distribution_id: str | None = ... - """ - The identifier of the primary distribution whose configuration you are - copying. To get a distribution ID, use `ListDistributions`. - """ - staging: bool | None = ... - """ - The type of distribution that your primary distribution will be copied - to. The only valid value is `True`, indicating that you are copying to a - staging distribution. - """ - if_match: str | None = ... - """ - The version identifier of the primary distribution whose configuration - you are copying. This is the `ETag` value returned in the response to - `GetDistribution` and `GetDistributionConfig`. - """ - caller_reference: str | None = ... - """ - A value that uniquely identifies a request to create a resource. This - helps to prevent CloudFront from creating a duplicate resource if you - accidentally resubmit an identical request. - """ - enabled: bool | None = ... - """ - A Boolean flag to specify the state of the staging distribution when - it's created. When you set this value to `True`, the staging - distribution is enabled. When you set this value to `False`, the staging - distribution is disabled. +class ConnectionFunctionSummary(_SerdeShape): + """A connection function summary.""" - If you omit this field, the default value is `True`. - """ + name: str + """The connection function name.""" + id: str + """The connection function ID.""" + connection_function_config: FunctionConfig + """Contains configuration information about a CloudFront function.""" + connection_function_arn: str + """The connection function Amazon Resource Name (ARN).""" + status: str + """The connection function status.""" + stage: str + """The connection function stage.""" + created_time: datetime + """The connection function created time.""" + last_modified_time: datetime + """The connection function last modified time.""" @dataclass(kw_only=True) -class CopyDistributionOutput(_SerdeShape): - """Dataclass for CopyDistributionOutput structure.""" +class ConnectionFunctionTestResult(_SerdeShape): + """A connection function test result.""" - distribution: Distribution | None = ... + connection_function_summary: ConnectionFunctionSummary | None = ... + """The connection function summary.""" + compute_utilization: str | None = ... + """The connection function compute utilization.""" + connection_function_execution_logs: list[str] | None = ... + """The connection function execution logs.""" + connection_function_error_message: str | None = ... + """The connection function error message.""" + connection_function_output: str | None = ... + """The connection function output.""" + +@dataclass(kw_only=True) +class ConnectionGroup(_SerdeShape): """ - A distribution tells CloudFront where you want content to be delivered - from, and the details about how to track and manage content delivery. + The connection group for your distribution tenants. When you first + create a distribution tenant and you don't specify a connection group, + CloudFront will automatically create a default connection group for you. + When you create a new distribution tenant and don't specify a + connection group, the default one will be associated with your + distribution tenant. """ - location: str | None = ... - """The URL of the staging distribution.""" - e_tag: str | None = ... + + id: str | None = ... + """The ID of the connection group.""" + name: str | None = ... + """The name of the connection group.""" + arn: str | None = ... + """The Amazon Resource Name (ARN) of the connection group.""" + created_time: datetime | None = ... + """The date and time when the connection group was created.""" + last_modified_time: datetime | None = ... + """The date and time when the connection group was updated.""" + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + ipv6_enabled: bool | None = ... + """IPv6 is enabled for the connection group.""" + routing_endpoint: str | None = ... """ - The version identifier for the current version of the staging - distribution. + The routing endpoint (also known as the DNS name) that is assigned to + the connection group, such as d111111abcdef8.cloudfront.net. """ - response_metadata: ResponseMetadata = ... + anycast_ip_list_id: str | None = ... + """The ID of the Anycast static IP list.""" + status: str | None = ... + """The status of the connection group.""" + enabled: bool | None = ... + """Whether the connection group is enabled.""" + is_default: bool | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Whether the connection group is the default connection group for the + distribution tenants. """ @dataclass(kw_only=True) -class CreateAnycastIpListInput(_SerdeShape): - """Dataclass for CreateAnycastIpListInput structure.""" - - name: str | None = ... - """Name of the Anycast static IP list.""" - ip_count: int | None = ... - """ - The number of static IP addresses that are allocated to the Anycast - static IP list. Valid values: 21 or 3. +class ConnectionGroupAssociationFilter(_SerdeShape): """ - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" - ip_address_type: str | None = ... + Contains information about what CloudFront resources your connection + groups are associated with. """ - The IP address type for the Anycast static IP list. You can specify one - of the following options: - - `ipv4` only + anycast_ip_list_id: str | None = ... + """The ID of the Anycast static IP list.""" - - `ipv6` only +class ConnectionGroupAssociationFilterDict(TypedDict, total=False): + """Dictionary form of `ConnectionGroupAssociationFilter`.""" - - `dualstack` - Allocate a list of both IPv4 and IPv6 addresses - """ - ipam_cidr_configs: list[IpamCidrConfig] | None = ... - """ - A list of IPAM CIDR configurations that specify the IP address ranges - and IPAM pool settings for creating the Anycast static IP list. - """ + anycast_ip_list_id: str | None + """The ID of the Anycast static IP list.""" @dataclass(kw_only=True) -class CreateAnycastIpListOutput(_SerdeShape): - """Dataclass for CreateAnycastIpListOutput structure.""" +class ConnectionGroupSummary(_SerdeShape): + """A summary that contains details about your connection groups.""" - anycast_ip_list: AnycastIpList | None = ... - """ - A response structure that includes the version identifier (ETag) and the - created AnycastIpList structure. - """ - e_tag: str | None = ... + id: str + """The ID of the connection group.""" + name: str + """The name of the connection group.""" + arn: str + """The Amazon Resource Name (ARN) of the connection group.""" + routing_endpoint: str """ - The version identifier for the current version of the Anycast static IP - list. + The routing endpoint (also known as the DNS name) that is assigned to + the connection group, such as d111111abcdef8.cloudfront.net. """ - response_metadata: ResponseMetadata = ... + created_time: datetime + """The date and time when the connection group was created.""" + last_modified_time: datetime + """The date and time when the connection group was updated.""" + e_tag: str + """The current version of the connection group.""" + anycast_ip_list_id: str | None = ... + """The ID of the Anycast static IP list.""" + enabled: bool | None = ... + """Whether the connection group is enabled""" + status: str | None = ... + """The status of the connection group.""" + is_default: bool | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Whether the connection group is the default connection group for the + distribution tenants. """ +class ConnectionMode(UnknownEnumMixin, StrEnum): + DIRECT = "direct" + TENANT_ONLY = "tenant-only" + @dataclass(kw_only=True) -class CreateCachePolicyInput(_SerdeShape): - """Dataclass for CreateCachePolicyInput structure.""" +class ContentTypeProfile(_SerdeShape): + """A field-level encryption content type profile.""" - cache_policy_config: CachePolicyConfig | None = ... - """A cache policy configuration.""" + format: str + """The format for a field-level encryption content type-profile mapping.""" + profile_id: str | None = ... + """ + The profile ID for a field-level encryption content type-profile + mapping. + """ + content_type: str + """ + The content type for a field-level encryption content type-profile + mapping. + """ -@dataclass(kw_only=True) -class CreateCachePolicyOutput(_SerdeShape): - """Dataclass for CreateCachePolicyOutput structure.""" +class ContentTypeProfileDict(TypedDict, total=False): + """Dictionary form of `ContentTypeProfile`.""" - cache_policy: CachePolicy | None = ... - """A cache policy.""" - location: str | None = ... - """The fully qualified URI of the cache policy just created.""" - e_tag: str | None = ... - """The current version of the cache policy.""" - response_metadata: ResponseMetadata = ... + format: Required[str] + """The format for a field-level encryption content type-profile mapping.""" + profile_id: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The profile ID for a field-level encryption content type-profile + mapping. + """ + content_type: Required[str] + """ + The content type for a field-level encryption content type-profile + mapping. """ @dataclass(kw_only=True) -class CreateCloudFrontOriginAccessIdentityInput(_SerdeShape): +class ContentTypeProfileConfig(_SerdeShape): """ - The request to create a new origin access identity (OAI). An origin - access identity is a special CloudFront user that you can associate with - Amazon S3 origins, so that you can secure all or just some of your - Amazon S3 content. For more information, see [Restricting Access to - Amazon S3 Content by Using an Origin Access - Identity](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) - in the *Amazon CloudFront Developer Guide*. + The configuration for a field-level encryption content type-profile + mapping. """ - cloud_front_origin_access_identity_config: ( - CloudFrontOriginAccessIdentityConfig | None - ) = ... - """The current configuration information for the identity.""" + forward_when_content_type_is_unknown: bool + """ + The setting in a field-level encryption content type-profile mapping + that specifies what to do when an unknown content type is provided for + the profile. If true, content is forwarded without being encrypted when + the content type is unknown. If false (the default), an error is + returned when the content type is unknown. + """ + content_type_profiles: ContentTypeProfiles | None = ... + """The configuration for a field-level encryption content type-profile.""" -@dataclass(kw_only=True) -class CreateCloudFrontOriginAccessIdentityOutput(_SerdeShape): - """The returned result of the corresponding request.""" +class ContentTypeProfileConfigDict(TypedDict, total=False): + """Dictionary form of `ContentTypeProfileConfig`.""" - cloud_front_origin_access_identity: CloudFrontOriginAccessIdentity | None = ... - """The origin access identity's information.""" - location: str | None = ... - """The fully qualified URI of the new origin access identity just created.""" - e_tag: str | None = ... - """The current version of the origin access identity created.""" - response_metadata: ResponseMetadata = ... + forward_when_content_type_is_unknown: Required[bool] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The setting in a field-level encryption content type-profile mapping + that specifies what to do when an unknown content type is provided for + the profile. If true, content is forwarded without being encrypted when + the content type is unknown. If false (the default), an error is + returned when the content type is unknown. """ + content_type_profiles: ContentTypeProfiles | ContentTypeProfilesDict | None + """The configuration for a field-level encryption content type-profile.""" @dataclass(kw_only=True) -class CreateConnectionFunctionInput(_SerdeShape): - """Dataclass for CreateConnectionFunctionInput structure.""" +class ContentTypeProfiles(_SerdeShape): + """Field-level encryption content type-profile.""" - name: str | None = ... - """A name for the connection function.""" - connection_function_config: FunctionConfig | None = ... - """Contains configuration information about a CloudFront function.""" - connection_function_code: bytes | None = ... - """The code for the connection function.""" - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" + quantity: int + """The number of field-level encryption content type-profile mappings.""" + items: list[ContentTypeProfile] | None = ... + """Items in a field-level encryption content type-profile mapping.""" + +class ContentTypeProfilesDict(TypedDict, total=False): + """Dictionary form of `ContentTypeProfiles`.""" + + quantity: Required[int] + """The number of field-level encryption content type-profile mappings.""" + items: Sequence[ContentTypeProfile | ContentTypeProfileDict] | None + """Items in a field-level encryption content type-profile mapping.""" @dataclass(kw_only=True) -class CreateConnectionFunctionOutput(_SerdeShape): - """Dataclass for CreateConnectionFunctionOutput structure.""" +class ContinuousDeploymentPolicy(_SerdeShape): + """A continuous deployment policy.""" + + id: str + """The identifier of the continuous deployment policy.""" + last_modified_time: datetime + """The date and time the continuous deployment policy was last modified.""" + continuous_deployment_policy_config: ContinuousDeploymentPolicyConfig + """Contains the configuration for a continuous deployment policy.""" + +@dataclass(kw_only=True) +class ContinuousDeploymentPolicyAlreadyExists(ServiceError, _SerdeShape): + """A continuous deployment policy with this configuration already exists.""" - connection_function_summary: ConnectionFunctionSummary | None = ... - """The summary for the connection function.""" - location: str | None = ... - """The location of the connection function.""" - e_tag: str | None = ... - """ - The version identifier for the current version of the connection - function. - """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2044,65 +2371,57 @@ class CreateConnectionFunctionOutput(_SerdeShape): """ @dataclass(kw_only=True) -class CreateConnectionGroupInput(_SerdeShape): - """Dataclass for CreateConnectionGroupInput structure.""" +class ContinuousDeploymentPolicyConfig(_SerdeShape): + """Contains the configuration for a continuous deployment policy.""" - name: str | None = ... + staging_distribution_dns_names: StagingDistributionDnsNames """ - The name of the connection group. Enter a friendly identifier that is - unique within your Amazon Web Services account. This name can't be - updated after you create the connection group. + The CloudFront domain name of the staging distribution. For example: + `d111111abcdef8.cloudfront.net`. """ - ipv6_enabled: bool | None = ... + enabled: bool """ - Enable IPv6 for the connection group. The default is `true`. For more - information, see [Enable - IPv6](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesEnableIPv6) - in the *Amazon CloudFront Developer Guide*. + A Boolean that indicates whether this continuous deployment policy is + enabled (in effect). When this value is `true`, this policy is enabled + and in effect. When this value is `false`, this policy is not enabled + and has no effect. """ - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" - anycast_ip_list_id: str | None = ... - """The ID of the Anycast static IP list.""" - enabled: bool | None = ... - """Enable the connection group.""" - -@dataclass(kw_only=True) -class CreateConnectionGroupOutput(_SerdeShape): - """Dataclass for CreateConnectionGroupOutput structure.""" - - connection_group: ConnectionGroup | None = ... - """The connection group that you created.""" - e_tag: str | None = ... - """The current version of the connection group.""" - response_metadata: ResponseMetadata = ... + traffic_config: TrafficConfig | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Contains the parameters for routing production traffic from your primary + to staging distributions. """ -@dataclass(kw_only=True) -class CreateContinuousDeploymentPolicyInput(_SerdeShape): - """Dataclass for CreateContinuousDeploymentPolicyInput structure.""" +class ContinuousDeploymentPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `ContinuousDeploymentPolicyConfig`.""" - continuous_deployment_policy_config: ContinuousDeploymentPolicyConfig | None = ... - """Contains the configuration for a continuous deployment policy.""" + staging_distribution_dns_names: Required[ + StagingDistributionDnsNames | StagingDistributionDnsNamesDict + ] + """ + The CloudFront domain name of the staging distribution. For example: + `d111111abcdef8.cloudfront.net`. + """ + enabled: Required[bool] + """ + A Boolean that indicates whether this continuous deployment policy is + enabled (in effect). When this value is `true`, this policy is enabled + and in effect. When this value is `false`, this policy is not enabled + and has no effect. + """ + traffic_config: TrafficConfig | TrafficConfigDict | None + """ + Contains the parameters for routing production traffic from your primary + to staging distributions. + """ @dataclass(kw_only=True) -class CreateContinuousDeploymentPolicyOutput(_SerdeShape): - """Dataclass for CreateContinuousDeploymentPolicyOutput structure.""" - - continuous_deployment_policy: ContinuousDeploymentPolicy | None = ... - """A continuous deployment policy.""" - location: str | None = ... - """The location of the continuous deployment policy.""" - e_tag: str | None = ... +class ContinuousDeploymentPolicyInUse(ServiceError, _SerdeShape): """ - The version identifier for the current version of the continuous - deployment policy. + You cannot delete a continuous deployment policy that is associated with + a primary distribution. """ + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2112,419 +2431,349 @@ class CreateContinuousDeploymentPolicyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class CreateDistributionInput(_SerdeShape): - """The request to create a new distribution.""" - - distribution_config: DistributionConfig | None = ... - """The distribution's configuration information.""" - -@dataclass(kw_only=True) -class CreateDistributionOutput(_SerdeShape): - """The returned result of the corresponding request.""" +class ContinuousDeploymentPolicyList(_SerdeShape): + """Contains a list of continuous deployment policies.""" - distribution: Distribution | None = ... - """The distribution's information.""" - location: str | None = ... - """The fully qualified URI of the new distribution resource just created.""" - e_tag: str | None = ... - """The current version of the distribution created.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class CreateDistributionTenantInput(_SerdeShape): - """Dataclass for CreateDistributionTenantInput structure.""" - - distribution_id: str | None = ... - """ - The ID of the multi-tenant distribution to use for creating the - distribution tenant. - """ - name: str | None = ... - """ - The name of the distribution tenant. Enter a friendly identifier that is - unique within your Amazon Web Services account. This name can't be - updated after you create the distribution tenant. - """ - domains: list[DomainItem] | None = ... - """ - The domains associated with the distribution tenant. You must specify at - least one domain in the request. - """ - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" - customizations: Customizations | None = ... - """ - Customizations for the distribution tenant. For each distribution - tenant, you can specify the geographic restrictions, and the Amazon - Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are - specific values that you can override or disable from the multi-tenant - distribution that was used to create the distribution tenant. - """ - parameters: list[Parameter] | None = ... + next_marker: str | None = ... """ - A list of parameter values to add to the resource. A parameter is - specified as a key-value pair. A valid parameter value must exist for - any parameter that is marked as required in the multi-tenant - distribution. + Indicates the next page of continuous deployment policies. To get the + next page of the list, use this value in the `Marker` field of your + request. """ - connection_group_id: str | None = ... + max_items: int """ - The ID of the connection group to associate with the distribution - tenant. + The maximum number of continuous deployment policies that were specified + in your request. """ - managed_certificate_request: ManagedCertificateRequest | None = ... - """The configuration for the CloudFront managed ACM certificate request.""" - enabled: bool | None = ... + quantity: int """ - Indicates whether the distribution tenant should be enabled when - created. If the distribution tenant is disabled, the distribution tenant - won't serve traffic. + The total number of continuous deployment policies in your Amazon Web + Services account, regardless of the `MaxItems` value. """ + items: list[ContinuousDeploymentPolicySummary] | None = ... + """A list of continuous deployment policy items.""" @dataclass(kw_only=True) -class CreateDistributionTenantOutput(_SerdeShape): - """Dataclass for CreateDistributionTenantOutput structure.""" - - distribution_tenant: DistributionTenant | None = ... - """The distribution tenant that you created.""" - e_tag: str | None = ... - """The current version of the distribution tenant.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ +class ContinuousDeploymentPolicySummary(_SerdeShape): + """A summary of the information about your continuous deployment policies.""" -@dataclass(kw_only=True) -class CreateDistributionWithTagsInput(_SerdeShape): - """The request to create a new distribution with tags.""" + continuous_deployment_policy: ContinuousDeploymentPolicy + """The continuous deployment policy.""" - distribution_config_with_tags: DistributionConfigWithTags | None = ... - """The distribution's configuration information.""" +class ContinuousDeploymentPolicyType(UnknownEnumMixin, StrEnum): + SINGLE_WEIGHT = "SingleWeight" + SINGLE_HEADER = "SingleHeader" @dataclass(kw_only=True) -class CreateDistributionWithTagsOutput(_SerdeShape): - """The returned result of the corresponding request.""" - - distribution: Distribution | None = ... - """The distribution's information.""" - location: str | None = ... - """The fully qualified URI of the new distribution resource just created.""" - e_tag: str | None = ... - """The current version of the distribution created.""" - response_metadata: ResponseMetadata = ... +class ContinuousDeploymentSingleHeaderConfig(_SerdeShape): """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + This configuration determines which HTTP requests are sent to the + staging distribution. If the HTTP request contains a header and value + that matches what you specify here, the request is sent to the staging + distribution. Otherwise the request is sent to the primary distribution. """ -@dataclass(kw_only=True) -class CreateFieldLevelEncryptionConfigInput(_SerdeShape): - """Dataclass for CreateFieldLevelEncryptionConfigInput structure.""" - - field_level_encryption_config: FieldLevelEncryptionConfig | None = ... - """The request to create a new field-level encryption configuration.""" - -@dataclass(kw_only=True) -class CreateFieldLevelEncryptionConfigOutput(_SerdeShape): - """Dataclass for CreateFieldLevelEncryptionConfigOutput structure.""" - - field_level_encryption: FieldLevelEncryption | None = ... - """Returned when you create a new field-level encryption configuration.""" - location: str | None = ... - """The fully qualified URI of the new configuration resource just created.""" - e_tag: str | None = ... - """ - The current version of the field level encryption configuration. For - example: `E2QWRUHAPOMQZL`. - """ - response_metadata: ResponseMetadata = ... + header: str """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The request header name that you want CloudFront to send to your staging + distribution. The header must contain the prefix `aws-cf-cd-`. """ + value: str + """The request header value.""" -@dataclass(kw_only=True) -class CreateFieldLevelEncryptionProfileInput(_SerdeShape): - """Dataclass for CreateFieldLevelEncryptionProfileInput structure.""" - - field_level_encryption_profile_config: ( - FieldLevelEncryptionProfileConfig | None - ) = ... - """The request to create a field-level encryption profile.""" - -@dataclass(kw_only=True) -class CreateFieldLevelEncryptionProfileOutput(_SerdeShape): - """Dataclass for CreateFieldLevelEncryptionProfileOutput structure.""" +class ContinuousDeploymentSingleHeaderConfigDict(TypedDict, total=False): + """Dictionary form of `ContinuousDeploymentSingleHeaderConfig`.""" - field_level_encryption_profile: FieldLevelEncryptionProfile | None = ... - """Returned when you create a new field-level encryption profile.""" - location: str | None = ... - """The fully qualified URI of the new profile resource just created.""" - e_tag: str | None = ... - """ - The current version of the field level encryption profile. For example: - `E2QWRUHAPOMQZL`. + header: Required[str] """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The request header name that you want CloudFront to send to your staging + distribution. The header must contain the prefix `aws-cf-cd-`. """ + value: Required[str] + """The request header value.""" @dataclass(kw_only=True) -class CreateFunctionInput(_SerdeShape): - """Dataclass for CreateFunctionInput structure.""" +class ContinuousDeploymentSingleWeightConfig(_SerdeShape): + """Contains the percentage of traffic to send to a staging distribution.""" - name: str | None = ... - """A name to identify the function.""" - function_config: FunctionConfig | None = ... + weight: float """ - Configuration information about the function, including an optional - comment and the function's runtime. + The percentage of traffic to send to a staging distribution, expressed + as a decimal number between 0 and 0.15. For example, a value of 0.10 + means 10% of traffic is sent to the staging distribution. """ - function_code: bytes | None = ... + session_stickiness_config: SessionStickinessConfig | None = ... """ - The function code. For more information about writing a CloudFront - function, see [Writing function code for CloudFront - Functions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html) - in the *Amazon CloudFront Developer Guide*. + Session stickiness provides the ability to define multiple requests from + a single viewer as a single session. This prevents the potentially + inconsistent experience of sending some of a given user's requests to + your staging distribution, while others are sent to your primary + distribution. Define the session duration using TTL values. """ - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" -@dataclass(kw_only=True) -class CreateFunctionOutput(_SerdeShape): - """Dataclass for CreateFunctionOutput structure.""" +class ContinuousDeploymentSingleWeightConfigDict(TypedDict, total=False): + """Dictionary form of `ContinuousDeploymentSingleWeightConfig`.""" - function_summary: FunctionSummary | None = ... - """ - Contains configuration information and metadata about a CloudFront - function. - """ - location: str | None = ... + weight: Required[float] """ - The URL of the CloudFront function. Use the URL to manage the function - with the CloudFront API. - """ - e_tag: str | None = ... - """ - The version identifier for the current version of the CloudFront - function. + The percentage of traffic to send to a staging distribution, expressed + as a decimal number between 0 and 0.15. For example, a value of 0.10 + means 10% of traffic is sent to the staging distribution. """ - response_metadata: ResponseMetadata = ... + session_stickiness_config: ( + SessionStickinessConfig | SessionStickinessConfigDict | None + ) """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Session stickiness provides the ability to define multiple requests from + a single viewer as a single session. This prevents the potentially + inconsistent experience of sending some of a given user's requests to + your staging distribution, while others are sent to your primary + distribution. Define the session duration using TTL values. """ @dataclass(kw_only=True) -class CreateInvalidationForDistributionTenantInput(_SerdeShape): - """Dataclass for CreateInvalidationForDistributionTenantInput structure.""" +class CookieNames(_SerdeShape): + """Contains a list of cookie names.""" - id: str | None = ... - """The ID of the distribution tenant.""" - invalidation_batch: InvalidationBatch | None = ... - """An invalidation batch.""" + quantity: int + """The number of cookie names in the `Items` list.""" + items: list[str] | None = ... + """A list of cookie names.""" -@dataclass(kw_only=True) -class CreateInvalidationForDistributionTenantOutput(_SerdeShape): - """Dataclass for CreateInvalidationForDistributionTenantOutput structure.""" +class CookieNamesDict(TypedDict, total=False): + """Dictionary form of `CookieNames`.""" - location: str | None = ... - """The location for the invalidation.""" - invalidation: Invalidation | None = ... - """An invalidation.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + quantity: Required[int] + """The number of cookie names in the `Items` list.""" + items: Sequence[str] | None + """A list of cookie names.""" @dataclass(kw_only=True) -class CreateInvalidationInput(_SerdeShape): - """The request to create an invalidation.""" +class CookiePreference(_SerdeShape): + """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. - distribution_id: str | None = ... - """The distribution's id.""" - invalidation_batch: InvalidationBatch | None = ... - """The batch information for the invalidation.""" + If you want to include cookies in the cache key, use `CookiesConfig` in + a cache policy. See `CachePolicy`. -@dataclass(kw_only=True) -class CreateInvalidationOutput(_SerdeShape): - """The returned result of the corresponding request.""" + If you want to send cookies to the origin but not include them in the + cache key, use `CookiesConfig` in an origin request policy. See + `OriginRequestPolicy`. - location: str | None = ... - """ - The fully qualified URI of the distribution and invalidation batch - request, including the `Invalidation ID`. - """ - invalidation: Invalidation | None = ... - """The invalidation's information.""" - response_metadata: ResponseMetadata = ... + A complex type that specifies whether you want CloudFront to forward + cookies to the origin and, if so, which ones. For more information about + forwarding cookies to the origin, see [Caching Content Based on + Cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) + in the *Amazon CloudFront Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + + forward: str """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. -@dataclass(kw_only=True) -class CreateKeyGroupInput(_SerdeShape): - """Dataclass for CreateKeyGroupInput structure.""" + If you want to include cookies in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + in the *Amazon CloudFront Developer Guide*. - key_group_config: KeyGroupConfig | None = ... - """A key group configuration.""" + If you want to send cookies to the origin but not include them in the + cache key, use origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + in the *Amazon CloudFront Developer Guide*. -@dataclass(kw_only=True) -class CreateKeyGroupOutput(_SerdeShape): - """Dataclass for CreateKeyGroupOutput structure.""" + Specifies which cookies to forward to the origin for this cache + behavior: all, none, or the list of cookies specified in the + `WhitelistedNames` complex type. - key_group: KeyGroup | None = ... - """The key group that was just created.""" - location: str | None = ... - """The URL of the key group.""" - e_tag: str | None = ... - """The identifier for this version of the key group.""" - response_metadata: ResponseMetadata = ... + Amazon S3 doesn't process cookies. When the cache behavior is + forwarding requests to an Amazon S3 origin, specify none for the + `Forward` element. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + whitelisted_names: CookieNames | None = ... """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. -@dataclass(kw_only=True) -class CreateKeyValueStoreInput(_SerdeShape): - """Dataclass for CreateKeyValueStoreInput structure.""" + If you want to include cookies in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + in the *Amazon CloudFront Developer Guide*. - name: str | None = ... - """ - The name of the key value store. The minimum length is 1 character and - the maximum length is 64 characters. - """ - comment: str | None = ... - """The comment of the key value store.""" - import_source: ImportSource | None = ... + If you want to send cookies to the origin but not include them in the + cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + in the *Amazon CloudFront Developer Guide*. + + Required if you specify `whitelist` for the value of `Forward`. A + complex type that specifies how many different cookies you want + CloudFront to forward to the origin for this cache behavior and, if you + want to forward selected cookies, the names of those cookies. + + If you specify `all` or `none` for the value of `Forward`, omit + `WhitelistedNames`. If you change the value of `Forward` from + `whitelist` to `all` or `none` and you don't delete the + `WhitelistedNames` element and its child elements, CloudFront deletes + them automatically. + + For the current limit on the number of cookie names that you can + whitelist for each cache behavior, see [CloudFront + Limits](https://docs.aws.amazon.com/general/latest/gr/xrefaws_service_limits.html#limits_cloudfront) + in the *Amazon Web Services General Reference*. """ - The S3 bucket that provides the source for the import. The source must - be in a valid JSON format. + +class CookiePreferenceDict(TypedDict, total=False): + """Dictionary form of `CookiePreference`.""" + + forward: Required[str] """ - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. -@dataclass(kw_only=True) -class CreateKeyValueStoreOutput(_SerdeShape): - """Dataclass for CreateKeyValueStoreOutput structure.""" + If you want to include cookies in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + in the *Amazon CloudFront Developer Guide*. - key_value_store: KeyValueStore | None = ... - """The resulting key value store.""" - e_tag: str | None = ... - """The `ETag` in the resulting key value store.""" - location: str | None = ... - """The location of the resulting key value store.""" - response_metadata: ResponseMetadata = ... + If you want to send cookies to the origin but not include them in the + cache key, use origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + in the *Amazon CloudFront Developer Guide*. + + Specifies which cookies to forward to the origin for this cache + behavior: all, none, or the list of cookies specified in the + `WhitelistedNames` complex type. + + Amazon S3 doesn't process cookies. When the cache behavior is + forwarding requests to an Amazon S3 origin, specify none for the + `Forward` element. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + whitelisted_names: CookieNames | CookieNamesDict | None """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. -@dataclass(kw_only=True) -class CreateMonitoringSubscriptionInput(_SerdeShape): - """Dataclass for CreateMonitoringSubscriptionInput structure.""" + If you want to include cookies in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + in the *Amazon CloudFront Developer Guide*. - distribution_id: str | None = ... - """The ID of the distribution that you are enabling metrics for.""" - monitoring_subscription: MonitoringSubscription | None = ... - """ - A monitoring subscription. This structure contains information about - whether additional CloudWatch metrics are enabled for a given CloudFront - distribution. + If you want to send cookies to the origin but not include them in the + cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + in the *Amazon CloudFront Developer Guide*. + + Required if you specify `whitelist` for the value of `Forward`. A + complex type that specifies how many different cookies you want + CloudFront to forward to the origin for this cache behavior and, if you + want to forward selected cookies, the names of those cookies. + + If you specify `all` or `none` for the value of `Forward`, omit + `WhitelistedNames`. If you change the value of `Forward` from + `whitelist` to `all` or `none` and you don't delete the + `WhitelistedNames` element and its child elements, CloudFront deletes + them automatically. + + For the current limit on the number of cookie names that you can + whitelist for each cache behavior, see [CloudFront + Limits](https://docs.aws.amazon.com/general/latest/gr/xrefaws_service_limits.html#limits_cloudfront) + in the *Amazon Web Services General Reference*. """ @dataclass(kw_only=True) -class CreateMonitoringSubscriptionOutput(_SerdeShape): - """Dataclass for CreateMonitoringSubscriptionOutput structure.""" +class CopyDistributionInput(_SerdeShape): + """Dataclass for CopyDistributionInput structure.""" - monitoring_subscription: MonitoringSubscription | None = ... + primary_distribution_id: str | None = ... """ - A monitoring subscription. This structure contains information about - whether additional CloudWatch metrics are enabled for a given CloudFront - distribution. + The identifier of the primary distribution whose configuration you are + copying. To get a distribution ID, use `ListDistributions`. """ - response_metadata: ResponseMetadata = ... + staging: bool | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The type of distribution that your primary distribution will be copied + to. The only valid value is `True`, indicating that you are copying to a + staging distribution. """ - -@dataclass(kw_only=True) -class CreateOriginAccessControlInput(_SerdeShape): - """Dataclass for CreateOriginAccessControlInput structure.""" - - origin_access_control_config: OriginAccessControlConfig | None = ... - """Contains the origin access control.""" - -@dataclass(kw_only=True) -class CreateOriginAccessControlOutput(_SerdeShape): - """Dataclass for CreateOriginAccessControlOutput structure.""" - - origin_access_control: OriginAccessControl | None = ... - """Contains an origin access control.""" - location: str | None = ... - """The URL of the origin access control.""" - e_tag: str | None = ... + if_match: str | None = ... """ - The version identifier for the current version of the origin access - control. + The version identifier of the primary distribution whose configuration + you are copying. This is the `ETag` value returned in the response to + `GetDistribution` and `GetDistributionConfig`. """ - response_metadata: ResponseMetadata = ... + caller_reference: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + A value that uniquely identifies a request to create a resource. This + helps to prevent CloudFront from creating a duplicate resource if you + accidentally resubmit an identical request. """ + enabled: bool | None = ... + """ + A Boolean flag to specify the state of the staging distribution when + it's created. When you set this value to `True`, the staging + distribution is enabled. When you set this value to `False`, the staging + distribution is disabled. -@dataclass(kw_only=True) -class CreateOriginRequestPolicyInput(_SerdeShape): - """Dataclass for CreateOriginRequestPolicyInput structure.""" + If you omit this field, the default value is `True`. + """ - origin_request_policy_config: OriginRequestPolicyConfig | None = ... - """An origin request policy configuration.""" +class CopyDistributionInputDict(TypedDict, total=False): + """Dictionary form of `CopyDistributionInput`.""" -@dataclass(kw_only=True) -class CreateOriginRequestPolicyOutput(_SerdeShape): - """Dataclass for CreateOriginRequestPolicyOutput structure.""" + primary_distribution_id: Required[str] + """ + The identifier of the primary distribution whose configuration you are + copying. To get a distribution ID, use `ListDistributions`. + """ + staging: bool | None + """ + The type of distribution that your primary distribution will be copied + to. The only valid value is `True`, indicating that you are copying to a + staging distribution. + """ + if_match: str | None + """ + The version identifier of the primary distribution whose configuration + you are copying. This is the `ETag` value returned in the response to + `GetDistribution` and `GetDistributionConfig`. + """ + caller_reference: Required[str] + """ + A value that uniquely identifies a request to create a resource. This + helps to prevent CloudFront from creating a duplicate resource if you + accidentally resubmit an identical request. + """ + enabled: bool | None + """ + A Boolean flag to specify the state of the staging distribution when + it's created. When you set this value to `True`, the staging + distribution is enabled. When you set this value to `False`, the staging + distribution is disabled. - origin_request_policy: OriginRequestPolicy | None = ... - """An origin request policy.""" + If you omit this field, the default value is `True`. + """ + +@dataclass(kw_only=True) +class CopyDistributionOutput(_SerdeShape): + """Dataclass for CopyDistributionOutput structure.""" + + distribution: Distribution | None = ... + """ + A distribution tells CloudFront where you want content to be delivered + from, and the details about how to track and manage content delivery. + """ location: str | None = ... - """The fully qualified URI of the origin request policy just created.""" + """The URL of the staging distribution.""" e_tag: str | None = ... - """The current version of the origin request policy.""" + """ + The version identifier for the current version of the staging + distribution. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2534,22 +2783,78 @@ class CreateOriginRequestPolicyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class CreatePublicKeyInput(_SerdeShape): - """Dataclass for CreatePublicKeyInput structure.""" +class CreateAnycastIpListInput(_SerdeShape): + """Dataclass for CreateAnycastIpListInput structure.""" - public_key_config: PublicKeyConfig | None = ... - """A CloudFront public key configuration.""" + name: str | None = ... + """Name of the Anycast static IP list.""" + ip_count: int | None = ... + """ + The number of static IP addresses that are allocated to the Anycast + static IP list. Valid values: 21 or 3. + """ + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + ip_address_type: str | None = ... + """ + The IP address type for the Anycast static IP list. You can specify one + of the following options: + + - `ipv4` only + + - `ipv6` only + + - `dualstack` - Allocate a list of both IPv4 and IPv6 addresses + """ + ipam_cidr_configs: list[IpamCidrConfig] | None = ... + """ + A list of IPAM CIDR configurations that specify the IP address ranges + and IPAM pool settings for creating the Anycast static IP list. + """ + +class CreateAnycastIpListInputDict(TypedDict, total=False): + """Dictionary form of `CreateAnycastIpListInput`.""" + + name: Required[str] + """Name of the Anycast static IP list.""" + ip_count: Required[int] + """ + The number of static IP addresses that are allocated to the Anycast + static IP list. Valid values: 21 or 3. + """ + tags: Tags | TagsDict | None + """A complex type that contains zero or more `Tag` elements.""" + ip_address_type: str | None + """ + The IP address type for the Anycast static IP list. You can specify one + of the following options: + + - `ipv4` only + + - `ipv6` only + + - `dualstack` - Allocate a list of both IPv4 and IPv6 addresses + """ + ipam_cidr_configs: Sequence[IpamCidrConfig | IpamCidrConfigDict] | None + """ + A list of IPAM CIDR configurations that specify the IP address ranges + and IPAM pool settings for creating the Anycast static IP list. + """ @dataclass(kw_only=True) -class CreatePublicKeyOutput(_SerdeShape): - """Dataclass for CreatePublicKeyOutput structure.""" +class CreateAnycastIpListOutput(_SerdeShape): + """Dataclass for CreateAnycastIpListOutput structure.""" - public_key: PublicKey | None = ... - """The public key.""" - location: str | None = ... - """The URL of the public key.""" + anycast_ip_list: AnycastIpList | None = ... + """ + A response structure that includes the version identifier (ETag) and the + created AnycastIpList structure. + """ e_tag: str | None = ... - """The identifier for this version of the public key.""" + """ + The version identifier for the current version of the Anycast static IP + list. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2559,37 +2864,117 @@ class CreatePublicKeyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class CreateRealtimeLogConfigInput(_SerdeShape): - """Dataclass for CreateRealtimeLogConfigInput structure.""" +class CreateCachePolicyInput(_SerdeShape): + """Dataclass for CreateCachePolicyInput structure.""" - end_points: list[EndPoint] | None = ... - """ - Contains information about the Amazon Kinesis data stream where you are - sending real-time log data. + cache_policy_config: CachePolicyConfig | None = ... + """A cache policy configuration.""" + +class CreateCachePolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreateCachePolicyInput`.""" + + cache_policy_config: Required[CachePolicyConfig | CachePolicyConfigDict] + """A cache policy configuration.""" + +@dataclass(kw_only=True) +class CreateCachePolicyOutput(_SerdeShape): + """Dataclass for CreateCachePolicyOutput structure.""" + + cache_policy: CachePolicy | None = ... + """A cache policy.""" + location: str | None = ... + """The fully qualified URI of the cache policy just created.""" + e_tag: str | None = ... + """The current version of the cache policy.""" + response_metadata: ResponseMetadata = ... """ - fields: list[str] | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - A list of fields to include in each real-time log record. - For more information about fields, see [Real-time log configuration - fields](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) +@dataclass(kw_only=True) +class CreateCloudFrontOriginAccessIdentityInput(_SerdeShape): + """ + The request to create a new origin access identity (OAI). An origin + access identity is a special CloudFront user that you can associate with + Amazon S3 origins, so that you can secure all or just some of your + Amazon S3 content. For more information, see [Restricting Access to + Amazon S3 Content by Using an Origin Access + Identity](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) in the *Amazon CloudFront Developer Guide*. """ - name: str | None = ... - """A unique name to identify this real-time log configuration.""" - sampling_rate: int | None = ... + + cloud_front_origin_access_identity_config: ( + CloudFrontOriginAccessIdentityConfig | None + ) = ... + """The current configuration information for the identity.""" + +class CreateCloudFrontOriginAccessIdentityInputDict(TypedDict, total=False): + """Dictionary form of `CreateCloudFrontOriginAccessIdentityInput`.""" + + cloud_front_origin_access_identity_config: Required[ + CloudFrontOriginAccessIdentityConfig | CloudFrontOriginAccessIdentityConfigDict + ] + """The current configuration information for the identity.""" + +@dataclass(kw_only=True) +class CreateCloudFrontOriginAccessIdentityOutput(_SerdeShape): + """The returned result of the corresponding request.""" + + cloud_front_origin_access_identity: CloudFrontOriginAccessIdentity | None = ... + """The origin access identity's information.""" + location: str | None = ... + """The fully qualified URI of the new origin access identity just created.""" + e_tag: str | None = ... + """The current version of the origin access identity created.""" + response_metadata: ResponseMetadata = ... """ - The sampling rate for this real-time log configuration. You can specify - a whole number between 1 and 100 (inclusive) to determine the percentage - of viewer requests that are represented in the real-time log data. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) -class CreateRealtimeLogConfigOutput(_SerdeShape): - """Dataclass for CreateRealtimeLogConfigOutput structure.""" +class CreateConnectionFunctionInput(_SerdeShape): + """Dataclass for CreateConnectionFunctionInput structure.""" - realtime_log_config: RealtimeLogConfig | None = ... - """A real-time log configuration.""" + name: str | None = ... + """A name for the connection function.""" + connection_function_config: FunctionConfig | None = ... + """Contains configuration information about a CloudFront function.""" + connection_function_code: bytes | None = ... + """The code for the connection function.""" + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + +class CreateConnectionFunctionInputDict(TypedDict, total=False): + """Dictionary form of `CreateConnectionFunctionInput`.""" + + name: Required[str] + """A name for the connection function.""" + connection_function_config: Required[FunctionConfig | FunctionConfigDict] + """Contains configuration information about a CloudFront function.""" + connection_function_code: Required[bytes] + """The code for the connection function.""" + tags: Tags | TagsDict | None + """A complex type that contains zero or more `Tag` elements.""" + +@dataclass(kw_only=True) +class CreateConnectionFunctionOutput(_SerdeShape): + """Dataclass for CreateConnectionFunctionOutput structure.""" + + connection_function_summary: ConnectionFunctionSummary | None = ... + """The summary for the connection function.""" + location: str | None = ... + """The location of the connection function.""" + e_tag: str | None = ... + """ + The version identifier for the current version of the connection + function. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2599,684 +2984,2303 @@ class CreateRealtimeLogConfigOutput(_SerdeShape): """ @dataclass(kw_only=True) -class CreateResponseHeadersPolicyInput(_SerdeShape): - """Dataclass for CreateResponseHeadersPolicyInput structure.""" +class CreateConnectionGroupInput(_SerdeShape): + """Dataclass for CreateConnectionGroupInput structure.""" + + name: str | None = ... + """ + The name of the connection group. Enter a friendly identifier that is + unique within your Amazon Web Services account. This name can't be + updated after you create the connection group. + """ + ipv6_enabled: bool | None = ... + """ + Enable IPv6 for the connection group. The default is `true`. For more + information, see [Enable + IPv6](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesEnableIPv6) + in the *Amazon CloudFront Developer Guide*. + """ + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + anycast_ip_list_id: str | None = ... + """The ID of the Anycast static IP list.""" + enabled: bool | None = ... + """Enable the connection group.""" + +class CreateConnectionGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateConnectionGroupInput`.""" + + name: Required[str] + """ + The name of the connection group. Enter a friendly identifier that is + unique within your Amazon Web Services account. This name can't be + updated after you create the connection group. + """ + ipv6_enabled: bool | None + """ + Enable IPv6 for the connection group. The default is `true`. For more + information, see [Enable + IPv6](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesEnableIPv6) + in the *Amazon CloudFront Developer Guide*. + """ + tags: Tags | TagsDict | None + """A complex type that contains zero or more `Tag` elements.""" + anycast_ip_list_id: str | None + """The ID of the Anycast static IP list.""" + enabled: bool | None + """Enable the connection group.""" + +@dataclass(kw_only=True) +class CreateConnectionGroupOutput(_SerdeShape): + """Dataclass for CreateConnectionGroupOutput structure.""" + + connection_group: ConnectionGroup | None = ... + """The connection group that you created.""" + e_tag: str | None = ... + """The current version of the connection group.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateContinuousDeploymentPolicyInput(_SerdeShape): + """Dataclass for CreateContinuousDeploymentPolicyInput structure.""" + + continuous_deployment_policy_config: ContinuousDeploymentPolicyConfig | None = ... + """Contains the configuration for a continuous deployment policy.""" + +class CreateContinuousDeploymentPolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreateContinuousDeploymentPolicyInput`.""" + + continuous_deployment_policy_config: Required[ + ContinuousDeploymentPolicyConfig | ContinuousDeploymentPolicyConfigDict + ] + """Contains the configuration for a continuous deployment policy.""" + +@dataclass(kw_only=True) +class CreateContinuousDeploymentPolicyOutput(_SerdeShape): + """Dataclass for CreateContinuousDeploymentPolicyOutput structure.""" + + continuous_deployment_policy: ContinuousDeploymentPolicy | None = ... + """A continuous deployment policy.""" + location: str | None = ... + """The location of the continuous deployment policy.""" + e_tag: str | None = ... + """ + The version identifier for the current version of the continuous + deployment policy. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateDistributionInput(_SerdeShape): + """The request to create a new distribution.""" + + distribution_config: DistributionConfig | None = ... + """The distribution's configuration information.""" + +class CreateDistributionInputDict(TypedDict, total=False): + """Dictionary form of `CreateDistributionInput`.""" + + distribution_config: Required[DistributionConfig | DistributionConfigDict] + """The distribution's configuration information.""" + +@dataclass(kw_only=True) +class CreateDistributionOutput(_SerdeShape): + """The returned result of the corresponding request.""" + + distribution: Distribution | None = ... + """The distribution's information.""" + location: str | None = ... + """The fully qualified URI of the new distribution resource just created.""" + e_tag: str | None = ... + """The current version of the distribution created.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateDistributionTenantInput(_SerdeShape): + """Dataclass for CreateDistributionTenantInput structure.""" + + distribution_id: str | None = ... + """ + The ID of the multi-tenant distribution to use for creating the + distribution tenant. + """ + name: str | None = ... + """ + The name of the distribution tenant. Enter a friendly identifier that is + unique within your Amazon Web Services account. This name can't be + updated after you create the distribution tenant. + """ + domains: list[DomainItem] | None = ... + """ + The domains associated with the distribution tenant. You must specify at + least one domain in the request. + """ + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + customizations: Customizations | None = ... + """ + Customizations for the distribution tenant. For each distribution + tenant, you can specify the geographic restrictions, and the Amazon + Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are + specific values that you can override or disable from the multi-tenant + distribution that was used to create the distribution tenant. + """ + parameters: list[Parameter] | None = ... + """ + A list of parameter values to add to the resource. A parameter is + specified as a key-value pair. A valid parameter value must exist for + any parameter that is marked as required in the multi-tenant + distribution. + """ + connection_group_id: str | None = ... + """ + The ID of the connection group to associate with the distribution + tenant. + """ + managed_certificate_request: ManagedCertificateRequest | None = ... + """The configuration for the CloudFront managed ACM certificate request.""" + enabled: bool | None = ... + """ + Indicates whether the distribution tenant should be enabled when + created. If the distribution tenant is disabled, the distribution tenant + won't serve traffic. + """ + +class CreateDistributionTenantInputDict(TypedDict, total=False): + """Dictionary form of `CreateDistributionTenantInput`.""" + + distribution_id: Required[str] + """ + The ID of the multi-tenant distribution to use for creating the + distribution tenant. + """ + name: Required[str] + """ + The name of the distribution tenant. Enter a friendly identifier that is + unique within your Amazon Web Services account. This name can't be + updated after you create the distribution tenant. + """ + domains: Required[Sequence[DomainItem | DomainItemDict]] + """ + The domains associated with the distribution tenant. You must specify at + least one domain in the request. + """ + tags: Tags | TagsDict | None + """A complex type that contains zero or more `Tag` elements.""" + customizations: Customizations | CustomizationsDict | None + """ + Customizations for the distribution tenant. For each distribution + tenant, you can specify the geographic restrictions, and the Amazon + Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are + specific values that you can override or disable from the multi-tenant + distribution that was used to create the distribution tenant. + """ + parameters: Sequence[Parameter | ParameterDict] | None + """ + A list of parameter values to add to the resource. A parameter is + specified as a key-value pair. A valid parameter value must exist for + any parameter that is marked as required in the multi-tenant + distribution. + """ + connection_group_id: str | None + """ + The ID of the connection group to associate with the distribution + tenant. + """ + managed_certificate_request: ( + ManagedCertificateRequest | ManagedCertificateRequestDict | None + ) + """The configuration for the CloudFront managed ACM certificate request.""" + enabled: bool | None + """ + Indicates whether the distribution tenant should be enabled when + created. If the distribution tenant is disabled, the distribution tenant + won't serve traffic. + """ + +@dataclass(kw_only=True) +class CreateDistributionTenantOutput(_SerdeShape): + """Dataclass for CreateDistributionTenantOutput structure.""" + + distribution_tenant: DistributionTenant | None = ... + """The distribution tenant that you created.""" + e_tag: str | None = ... + """The current version of the distribution tenant.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateDistributionWithTagsInput(_SerdeShape): + """The request to create a new distribution with tags.""" + + distribution_config_with_tags: DistributionConfigWithTags | None = ... + """The distribution's configuration information.""" + +class CreateDistributionWithTagsInputDict(TypedDict, total=False): + """Dictionary form of `CreateDistributionWithTagsInput`.""" + + distribution_config_with_tags: Required[ + DistributionConfigWithTags | DistributionConfigWithTagsDict + ] + """The distribution's configuration information.""" + +@dataclass(kw_only=True) +class CreateDistributionWithTagsOutput(_SerdeShape): + """The returned result of the corresponding request.""" + + distribution: Distribution | None = ... + """The distribution's information.""" + location: str | None = ... + """The fully qualified URI of the new distribution resource just created.""" + e_tag: str | None = ... + """The current version of the distribution created.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateFieldLevelEncryptionConfigInput(_SerdeShape): + """Dataclass for CreateFieldLevelEncryptionConfigInput structure.""" + + field_level_encryption_config: FieldLevelEncryptionConfig | None = ... + """The request to create a new field-level encryption configuration.""" + +class CreateFieldLevelEncryptionConfigInputDict(TypedDict, total=False): + """Dictionary form of `CreateFieldLevelEncryptionConfigInput`.""" + + field_level_encryption_config: Required[ + FieldLevelEncryptionConfig | FieldLevelEncryptionConfigDict + ] + """The request to create a new field-level encryption configuration.""" + +@dataclass(kw_only=True) +class CreateFieldLevelEncryptionConfigOutput(_SerdeShape): + """Dataclass for CreateFieldLevelEncryptionConfigOutput structure.""" + + field_level_encryption: FieldLevelEncryption | None = ... + """Returned when you create a new field-level encryption configuration.""" + location: str | None = ... + """The fully qualified URI of the new configuration resource just created.""" + e_tag: str | None = ... + """ + The current version of the field level encryption configuration. For + example: `E2QWRUHAPOMQZL`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateFieldLevelEncryptionProfileInput(_SerdeShape): + """Dataclass for CreateFieldLevelEncryptionProfileInput structure.""" + + field_level_encryption_profile_config: ( + FieldLevelEncryptionProfileConfig | None + ) = ... + """The request to create a field-level encryption profile.""" + +class CreateFieldLevelEncryptionProfileInputDict(TypedDict, total=False): + """Dictionary form of `CreateFieldLevelEncryptionProfileInput`.""" + + field_level_encryption_profile_config: Required[ + FieldLevelEncryptionProfileConfig | FieldLevelEncryptionProfileConfigDict + ] + """The request to create a field-level encryption profile.""" + +@dataclass(kw_only=True) +class CreateFieldLevelEncryptionProfileOutput(_SerdeShape): + """Dataclass for CreateFieldLevelEncryptionProfileOutput structure.""" + + field_level_encryption_profile: FieldLevelEncryptionProfile | None = ... + """Returned when you create a new field-level encryption profile.""" + location: str | None = ... + """The fully qualified URI of the new profile resource just created.""" + e_tag: str | None = ... + """ + The current version of the field level encryption profile. For example: + `E2QWRUHAPOMQZL`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateFunctionInput(_SerdeShape): + """Dataclass for CreateFunctionInput structure.""" + + name: str | None = ... + """A name to identify the function.""" + function_config: FunctionConfig | None = ... + """ + Configuration information about the function, including an optional + comment and the function's runtime. + """ + function_code: bytes | None = ... + """ + The function code. For more information about writing a CloudFront + function, see [Writing function code for CloudFront + Functions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html) + in the *Amazon CloudFront Developer Guide*. + """ + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + +class CreateFunctionInputDict(TypedDict, total=False): + """Dictionary form of `CreateFunctionInput`.""" + + name: Required[str] + """A name to identify the function.""" + function_config: Required[FunctionConfig | FunctionConfigDict] + """ + Configuration information about the function, including an optional + comment and the function's runtime. + """ + function_code: Required[bytes] + """ + The function code. For more information about writing a CloudFront + function, see [Writing function code for CloudFront + Functions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html) + in the *Amazon CloudFront Developer Guide*. + """ + tags: Tags | TagsDict | None + """A complex type that contains zero or more `Tag` elements.""" + +@dataclass(kw_only=True) +class CreateFunctionOutput(_SerdeShape): + """Dataclass for CreateFunctionOutput structure.""" + + function_summary: FunctionSummary | None = ... + """ + Contains configuration information and metadata about a CloudFront + function. + """ + location: str | None = ... + """ + The URL of the CloudFront function. Use the URL to manage the function + with the CloudFront API. + """ + e_tag: str | None = ... + """ + The version identifier for the current version of the CloudFront + function. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateInvalidationForDistributionTenantInput(_SerdeShape): + """Dataclass for CreateInvalidationForDistributionTenantInput structure.""" + + id: str | None = ... + """The ID of the distribution tenant.""" + invalidation_batch: InvalidationBatch | None = ... + """An invalidation batch.""" + +class CreateInvalidationForDistributionTenantInputDict(TypedDict, total=False): + """Dictionary form of `CreateInvalidationForDistributionTenantInput`.""" + + id: Required[str] + """The ID of the distribution tenant.""" + invalidation_batch: Required[InvalidationBatch | InvalidationBatchDict] + """An invalidation batch.""" + +@dataclass(kw_only=True) +class CreateInvalidationForDistributionTenantOutput(_SerdeShape): + """Dataclass for CreateInvalidationForDistributionTenantOutput structure.""" + + location: str | None = ... + """The location for the invalidation.""" + invalidation: Invalidation | None = ... + """An invalidation.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateInvalidationInput(_SerdeShape): + """The request to create an invalidation.""" + + distribution_id: str | None = ... + """The distribution's id.""" + invalidation_batch: InvalidationBatch | None = ... + """The batch information for the invalidation.""" + +class CreateInvalidationInputDict(TypedDict, total=False): + """Dictionary form of `CreateInvalidationInput`.""" + + distribution_id: Required[str] + """The distribution's id.""" + invalidation_batch: Required[InvalidationBatch | InvalidationBatchDict] + """The batch information for the invalidation.""" + +@dataclass(kw_only=True) +class CreateInvalidationOutput(_SerdeShape): + """The returned result of the corresponding request.""" + + location: str | None = ... + """ + The fully qualified URI of the distribution and invalidation batch + request, including the `Invalidation ID`. + """ + invalidation: Invalidation | None = ... + """The invalidation's information.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateKeyGroupInput(_SerdeShape): + """Dataclass for CreateKeyGroupInput structure.""" + + key_group_config: KeyGroupConfig | None = ... + """A key group configuration.""" + +class CreateKeyGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateKeyGroupInput`.""" + + key_group_config: Required[KeyGroupConfig | KeyGroupConfigDict] + """A key group configuration.""" + +@dataclass(kw_only=True) +class CreateKeyGroupOutput(_SerdeShape): + """Dataclass for CreateKeyGroupOutput structure.""" + + key_group: KeyGroup | None = ... + """The key group that was just created.""" + location: str | None = ... + """The URL of the key group.""" + e_tag: str | None = ... + """The identifier for this version of the key group.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateKeyValueStoreInput(_SerdeShape): + """Dataclass for CreateKeyValueStoreInput structure.""" + + name: str | None = ... + """ + The name of the key value store. The minimum length is 1 character and + the maximum length is 64 characters. + """ + comment: str | None = ... + """The comment of the key value store.""" + import_source: ImportSource | None = ... + """ + The S3 bucket that provides the source for the import. The source must + be in a valid JSON format. + """ + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + +class CreateKeyValueStoreInputDict(TypedDict, total=False): + """Dictionary form of `CreateKeyValueStoreInput`.""" + + name: Required[str] + """ + The name of the key value store. The minimum length is 1 character and + the maximum length is 64 characters. + """ + comment: str | None + """The comment of the key value store.""" + import_source: ImportSource | ImportSourceDict | None + """ + The S3 bucket that provides the source for the import. The source must + be in a valid JSON format. + """ + tags: Tags | TagsDict | None + """A complex type that contains zero or more `Tag` elements.""" + +@dataclass(kw_only=True) +class CreateKeyValueStoreOutput(_SerdeShape): + """Dataclass for CreateKeyValueStoreOutput structure.""" + + key_value_store: KeyValueStore | None = ... + """The resulting key value store.""" + e_tag: str | None = ... + """The `ETag` in the resulting key value store.""" + location: str | None = ... + """The location of the resulting key value store.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateMonitoringSubscriptionInput(_SerdeShape): + """Dataclass for CreateMonitoringSubscriptionInput structure.""" + + distribution_id: str | None = ... + """The ID of the distribution that you are enabling metrics for.""" + monitoring_subscription: MonitoringSubscription | None = ... + """ + A monitoring subscription. This structure contains information about + whether additional CloudWatch metrics are enabled for a given CloudFront + distribution. + """ + +class CreateMonitoringSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `CreateMonitoringSubscriptionInput`.""" + + distribution_id: Required[str] + """The ID of the distribution that you are enabling metrics for.""" + monitoring_subscription: Required[ + MonitoringSubscription | MonitoringSubscriptionDict + ] + """ + A monitoring subscription. This structure contains information about + whether additional CloudWatch metrics are enabled for a given CloudFront + distribution. + """ + +@dataclass(kw_only=True) +class CreateMonitoringSubscriptionOutput(_SerdeShape): + """Dataclass for CreateMonitoringSubscriptionOutput structure.""" + + monitoring_subscription: MonitoringSubscription | None = ... + """ + A monitoring subscription. This structure contains information about + whether additional CloudWatch metrics are enabled for a given CloudFront + distribution. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateOriginAccessControlInput(_SerdeShape): + """Dataclass for CreateOriginAccessControlInput structure.""" + + origin_access_control_config: OriginAccessControlConfig | None = ... + """Contains the origin access control.""" + +class CreateOriginAccessControlInputDict(TypedDict, total=False): + """Dictionary form of `CreateOriginAccessControlInput`.""" + + origin_access_control_config: Required[ + OriginAccessControlConfig | OriginAccessControlConfigDict + ] + """Contains the origin access control.""" + +@dataclass(kw_only=True) +class CreateOriginAccessControlOutput(_SerdeShape): + """Dataclass for CreateOriginAccessControlOutput structure.""" + + origin_access_control: OriginAccessControl | None = ... + """Contains an origin access control.""" + location: str | None = ... + """The URL of the origin access control.""" + e_tag: str | None = ... + """ + The version identifier for the current version of the origin access + control. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateOriginRequestPolicyInput(_SerdeShape): + """Dataclass for CreateOriginRequestPolicyInput structure.""" + + origin_request_policy_config: OriginRequestPolicyConfig | None = ... + """An origin request policy configuration.""" + +class CreateOriginRequestPolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreateOriginRequestPolicyInput`.""" + + origin_request_policy_config: Required[ + OriginRequestPolicyConfig | OriginRequestPolicyConfigDict + ] + """An origin request policy configuration.""" + +@dataclass(kw_only=True) +class CreateOriginRequestPolicyOutput(_SerdeShape): + """Dataclass for CreateOriginRequestPolicyOutput structure.""" + + origin_request_policy: OriginRequestPolicy | None = ... + """An origin request policy.""" + location: str | None = ... + """The fully qualified URI of the origin request policy just created.""" + e_tag: str | None = ... + """The current version of the origin request policy.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreatePublicKeyInput(_SerdeShape): + """Dataclass for CreatePublicKeyInput structure.""" + + public_key_config: PublicKeyConfig | None = ... + """A CloudFront public key configuration.""" + +class CreatePublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `CreatePublicKeyInput`.""" + + public_key_config: Required[PublicKeyConfig | PublicKeyConfigDict] + """A CloudFront public key configuration.""" + +@dataclass(kw_only=True) +class CreatePublicKeyOutput(_SerdeShape): + """Dataclass for CreatePublicKeyOutput structure.""" + + public_key: PublicKey | None = ... + """The public key.""" + location: str | None = ... + """The URL of the public key.""" + e_tag: str | None = ... + """The identifier for this version of the public key.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateRealtimeLogConfigInput(_SerdeShape): + """Dataclass for CreateRealtimeLogConfigInput structure.""" + + end_points: list[EndPoint] | None = ... + """ + Contains information about the Amazon Kinesis data stream where you are + sending real-time log data. + """ + fields: list[str] | None = ... + """ + A list of fields to include in each real-time log record. + + For more information about fields, see [Real-time log configuration + fields](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) + in the *Amazon CloudFront Developer Guide*. + """ + name: str | None = ... + """A unique name to identify this real-time log configuration.""" + sampling_rate: int | None = ... + """ + The sampling rate for this real-time log configuration. You can specify + a whole number between 1 and 100 (inclusive) to determine the percentage + of viewer requests that are represented in the real-time log data. + """ + +class CreateRealtimeLogConfigInputDict(TypedDict, total=False): + """Dictionary form of `CreateRealtimeLogConfigInput`.""" + + end_points: Required[Sequence[EndPoint | EndPointDict]] + """ + Contains information about the Amazon Kinesis data stream where you are + sending real-time log data. + """ + fields: Required[Sequence[str]] + """ + A list of fields to include in each real-time log record. + + For more information about fields, see [Real-time log configuration + fields](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) + in the *Amazon CloudFront Developer Guide*. + """ + name: Required[str] + """A unique name to identify this real-time log configuration.""" + sampling_rate: Required[int] + """ + The sampling rate for this real-time log configuration. You can specify + a whole number between 1 and 100 (inclusive) to determine the percentage + of viewer requests that are represented in the real-time log data. + """ + +@dataclass(kw_only=True) +class CreateRealtimeLogConfigOutput(_SerdeShape): + """Dataclass for CreateRealtimeLogConfigOutput structure.""" + + realtime_log_config: RealtimeLogConfig | None = ... + """A real-time log configuration.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateResponseHeadersPolicyInput(_SerdeShape): + """Dataclass for CreateResponseHeadersPolicyInput structure.""" + + response_headers_policy_config: ResponseHeadersPolicyConfig | None = ... + """ + Contains metadata about the response headers policy, and a set of + configurations that specify the HTTP headers. + """ + +class CreateResponseHeadersPolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreateResponseHeadersPolicyInput`.""" + + response_headers_policy_config: Required[ + ResponseHeadersPolicyConfig | ResponseHeadersPolicyConfigDict + ] + """ + Contains metadata about the response headers policy, and a set of + configurations that specify the HTTP headers. + """ + +@dataclass(kw_only=True) +class CreateResponseHeadersPolicyOutput(_SerdeShape): + """Dataclass for CreateResponseHeadersPolicyOutput structure.""" + + response_headers_policy: ResponseHeadersPolicy | None = ... + """Contains a response headers policy.""" + location: str | None = ... + """The URL of the response headers policy.""" + e_tag: str | None = ... + """ + The version identifier for the current version of the response headers + policy. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateStreamingDistributionInput(_SerdeShape): + """The request to create a new streaming distribution.""" + + streaming_distribution_config: StreamingDistributionConfig | None = ... + """The streaming distribution's configuration information.""" + +class CreateStreamingDistributionInputDict(TypedDict, total=False): + """Dictionary form of `CreateStreamingDistributionInput`.""" + + streaming_distribution_config: Required[ + StreamingDistributionConfig | StreamingDistributionConfigDict + ] + """The streaming distribution's configuration information.""" + +@dataclass(kw_only=True) +class CreateStreamingDistributionOutput(_SerdeShape): + """The returned result of the corresponding request.""" + + streaming_distribution: StreamingDistribution | None = ... + """The streaming distribution's information.""" + location: str | None = ... + """ + The fully qualified URI of the new streaming distribution resource just + created. + """ + e_tag: str | None = ... + """The current version of the streaming distribution created.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateStreamingDistributionWithTagsInput(_SerdeShape): + """The request to create a new streaming distribution with tags.""" + + streaming_distribution_config_with_tags: ( + StreamingDistributionConfigWithTags | None + ) = ... + """The streaming distribution's configuration information.""" + +class CreateStreamingDistributionWithTagsInputDict(TypedDict, total=False): + """Dictionary form of `CreateStreamingDistributionWithTagsInput`.""" + + streaming_distribution_config_with_tags: Required[ + StreamingDistributionConfigWithTags | StreamingDistributionConfigWithTagsDict + ] + """The streaming distribution's configuration information.""" + +@dataclass(kw_only=True) +class CreateStreamingDistributionWithTagsOutput(_SerdeShape): + """The returned result of the corresponding request.""" + + streaming_distribution: StreamingDistribution | None = ... + """The streaming distribution's information.""" + location: str | None = ... + """ + The fully qualified URI of the new streaming distribution resource just + created. + """ + e_tag: str | None = ... + """The current version of the distribution created.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateTrustStoreInput(_SerdeShape): + """Dataclass for CreateTrustStoreInput structure.""" + + name: str | None = ... + """A name for the trust store.""" + ca_certificates_bundle_source: CaCertificatesBundleSource | None = ... + """The CA certificates bundle source for the trust store.""" + use_client_certificate_ocsp_endpoint: bool | None = ... + """ + A Boolean that determines whether to use the CA certificate's OCSP + endpoint to check certificate revocation status. + """ + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + +class CreateTrustStoreInputDict(TypedDict, total=False): + """Dictionary form of `CreateTrustStoreInput`.""" + + name: Required[str] + """A name for the trust store.""" + ca_certificates_bundle_source: Required[ + CaCertificatesBundleSource | CaCertificatesBundleSourceDict + ] + """The CA certificates bundle source for the trust store.""" + use_client_certificate_ocsp_endpoint: bool | None + """ + A Boolean that determines whether to use the CA certificate's OCSP + endpoint to check certificate revocation status. + """ + tags: Tags | TagsDict | None + """A complex type that contains zero or more `Tag` elements.""" + +@dataclass(kw_only=True) +class CreateTrustStoreOutput(_SerdeShape): + """Dataclass for CreateTrustStoreOutput structure.""" + + trust_store: TrustStore | None = ... + """The trust store.""" + e_tag: str | None = ... + """The version identifier for the current version of the trust store.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateVpcOriginInput(_SerdeShape): + """Dataclass for CreateVpcOriginInput structure.""" + + vpc_origin_endpoint_config: VpcOriginEndpointConfig | None = ... + """The VPC origin endpoint configuration.""" + tags: Tags | None = ... + """A complex type that contains zero or more `Tag` elements.""" + +class CreateVpcOriginInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcOriginInput`.""" + + vpc_origin_endpoint_config: Required[ + VpcOriginEndpointConfig | VpcOriginEndpointConfigDict + ] + """The VPC origin endpoint configuration.""" + tags: Tags | TagsDict | None + """A complex type that contains zero or more `Tag` elements.""" + +@dataclass(kw_only=True) +class CreateVpcOriginOutput(_SerdeShape): + """Dataclass for CreateVpcOriginOutput structure.""" + + vpc_origin: VpcOrigin | None = ... + """The VPC origin.""" + location: str | None = ... + """The VPC origin location.""" + e_tag: str | None = ... + """The VPC origin ETag.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CustomErrorResponse(_SerdeShape): + """ + A complex type that controls: + + - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range + with custom error messages before returning the response to the + viewer. + + - How long CloudFront caches HTTP status codes in the 4xx and 5xx range. + + For more information about custom error pages, see [Customizing Error + Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + in the *Amazon CloudFront Developer Guide*. + """ + + error_code: int + """ + The HTTP status code for which you want to specify a custom error page + and/or a caching duration. + """ + response_page_path: str | None = ... + """ + The path to the custom error page that you want CloudFront to return to + a viewer when your origin returns the HTTP status code specified by + `ErrorCode`, for example, `/4xx-errors/403-forbidden.html`. If you want + to store your objects and your custom error pages in different + locations, your distribution must include a cache behavior for which the + following is true: + + - The value of `PathPattern` matches the path to your custom error + messages. For example, suppose you saved custom error pages for 4xx + errors in an Amazon S3 bucket in a directory named `/4xx-errors`. Your + distribution must include a cache behavior for which the path pattern + routes requests for your custom error pages to that location, for + example, `/4xx-errors/*`. + + - The value of `TargetOriginId` specifies the value of the `ID` element + for the origin that contains your custom error pages. + + If you specify a value for `ResponsePagePath`, you must also specify a + value for `ResponseCode`. + + We recommend that you store custom error pages in an Amazon S3 bucket. + If you store custom error pages on an HTTP server and the server starts + to return 5xx errors, CloudFront can't get the files that you want to + return to viewers because the origin server is unavailable. + """ + response_code: str | None = ... + """ + The HTTP status code that you want CloudFront to return to the viewer + along with the custom error page. There are a variety of reasons that + you might want CloudFront to return a status code different from the + status code that your origin returned to CloudFront, for example: + + - Some Internet devices (some firewalls and corporate proxies, for + example) intercept HTTP 4xx and 5xx and prevent the response from + being returned to the viewer. If you substitute `200`, the response + typically won't be intercepted. + + - If you don't care about distinguishing among different client errors + or server errors, you can specify `400` or `500` as the `ResponseCode` + for all 4xx or 5xx errors. + + - You might want to return a `200` status code (OK) and static website + so your customers don't know that your website is down. + + If you specify a value for `ResponseCode`, you must also specify a value + for `ResponsePagePath`. + """ + error_caching_min_ttl: int | None = ... + """ + The minimum amount of time, in seconds, that you want CloudFront to + cache the HTTP status code specified in `ErrorCode`. When this time + period has elapsed, CloudFront queries your origin to see whether the + problem that caused the error has been resolved and the requested object + is now available. + + For more information, see [Customizing Error + Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + in the *Amazon CloudFront Developer Guide*. + """ + +class CustomErrorResponseDict(TypedDict, total=False): + """Dictionary form of `CustomErrorResponse`.""" + + error_code: Required[int] + """ + The HTTP status code for which you want to specify a custom error page + and/or a caching duration. + """ + response_page_path: str | None + """ + The path to the custom error page that you want CloudFront to return to + a viewer when your origin returns the HTTP status code specified by + `ErrorCode`, for example, `/4xx-errors/403-forbidden.html`. If you want + to store your objects and your custom error pages in different + locations, your distribution must include a cache behavior for which the + following is true: + + - The value of `PathPattern` matches the path to your custom error + messages. For example, suppose you saved custom error pages for 4xx + errors in an Amazon S3 bucket in a directory named `/4xx-errors`. Your + distribution must include a cache behavior for which the path pattern + routes requests for your custom error pages to that location, for + example, `/4xx-errors/*`. + + - The value of `TargetOriginId` specifies the value of the `ID` element + for the origin that contains your custom error pages. + + If you specify a value for `ResponsePagePath`, you must also specify a + value for `ResponseCode`. + + We recommend that you store custom error pages in an Amazon S3 bucket. + If you store custom error pages on an HTTP server and the server starts + to return 5xx errors, CloudFront can't get the files that you want to + return to viewers because the origin server is unavailable. + """ + response_code: str | None + """ + The HTTP status code that you want CloudFront to return to the viewer + along with the custom error page. There are a variety of reasons that + you might want CloudFront to return a status code different from the + status code that your origin returned to CloudFront, for example: + + - Some Internet devices (some firewalls and corporate proxies, for + example) intercept HTTP 4xx and 5xx and prevent the response from + being returned to the viewer. If you substitute `200`, the response + typically won't be intercepted. + + - If you don't care about distinguishing among different client errors + or server errors, you can specify `400` or `500` as the `ResponseCode` + for all 4xx or 5xx errors. + + - You might want to return a `200` status code (OK) and static website + so your customers don't know that your website is down. + + If you specify a value for `ResponseCode`, you must also specify a value + for `ResponsePagePath`. + """ + error_caching_min_ttl: int | None + """ + The minimum amount of time, in seconds, that you want CloudFront to + cache the HTTP status code specified in `ErrorCode`. When this time + period has elapsed, CloudFront queries your origin to see whether the + problem that caused the error has been resolved and the requested object + is now available. + + For more information, see [Customizing Error + Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + in the *Amazon CloudFront Developer Guide*. + """ + +@dataclass(kw_only=True) +class CustomErrorResponses(_SerdeShape): + """ + A complex type that controls: + + - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range + with custom error messages before returning the response to the + viewer. + + - How long CloudFront caches HTTP status codes in the 4xx and 5xx range. + + For more information about custom error pages, see [Customizing Error + Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + in the *Amazon CloudFront Developer Guide*. + """ + + quantity: int + """ + The number of HTTP status codes for which you want to specify a custom + error page and/or a caching duration. If `Quantity` is `0`, you can omit + `Items`. + """ + items: list[CustomErrorResponse] | None = ... + """ + A complex type that contains a `CustomErrorResponse` element for each + HTTP status code for which you want to specify a custom error page + and/or a caching duration. + """ + +class CustomErrorResponsesDict(TypedDict, total=False): + """Dictionary form of `CustomErrorResponses`.""" + + quantity: Required[int] + """ + The number of HTTP status codes for which you want to specify a custom + error page and/or a caching duration. If `Quantity` is `0`, you can omit + `Items`. + """ + items: Sequence[CustomErrorResponse | CustomErrorResponseDict] | None + """ + A complex type that contains a `CustomErrorResponse` element for each + HTTP status code for which you want to specify a custom error page + and/or a caching duration. + """ + +@dataclass(kw_only=True) +class CustomHeaders(_SerdeShape): + """A complex type that contains the list of Custom Headers for each origin.""" + + quantity: int + """The number of custom headers, if any, for this distribution.""" + items: list[OriginCustomHeader] | None = ... + """ + **Optional**: A list that contains one `OriginCustomHeader` element for + each custom header that you want CloudFront to forward to the origin. If + Quantity is `0`, omit `Items`. + """ + +class CustomHeadersDict(TypedDict, total=False): + """Dictionary form of `CustomHeaders`.""" + + quantity: Required[int] + """The number of custom headers, if any, for this distribution.""" + items: Sequence[OriginCustomHeader | OriginCustomHeaderDict] | None + """ + **Optional**: A list that contains one `OriginCustomHeader` element for + each custom header that you want CloudFront to forward to the origin. If + Quantity is `0`, omit `Items`. + """ + +class CustomizationActionType(UnknownEnumMixin, StrEnum): + OVERRIDE = "override" + DISABLE = "disable" + +@dataclass(kw_only=True) +class Customizations(_SerdeShape): + """ + Customizations for the distribution tenant. For each distribution + tenant, you can specify the geographic restrictions, and the Amazon + Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are + specific values that you can override or disable from the multi-tenant + distribution that was used to create the distribution tenant. + """ + + web_acl: WebAclCustomization | None = ... + """The WAF web ACL.""" + certificate: Certificate | None = ... + """The Certificate Manager (ACM) certificate.""" + geo_restrictions: GeoRestrictionCustomization | None = ... + """The geographic restrictions.""" + +class CustomizationsDict(TypedDict, total=False): + """Dictionary form of `Customizations`.""" + + web_acl: WebAclCustomization | WebAclCustomizationDict | None + """The WAF web ACL.""" + certificate: Certificate | CertificateDict | None + """The Certificate Manager (ACM) certificate.""" + geo_restrictions: ( + GeoRestrictionCustomization | GeoRestrictionCustomizationDict | None + ) + """The geographic restrictions.""" + +@dataclass(kw_only=True) +class CustomOriginConfig(_SerdeShape): + """ + A custom origin. A custom origin is any origin that is *not* an Amazon + S3 bucket, with one exception. An Amazon S3 bucket that is [configured + with static website + hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) + *is* a custom origin. + """ + + http_port: int + """ + The HTTP port that CloudFront uses to connect to the origin. Specify the + HTTP port that the origin listens on. + """ + https_port: int + """ + The HTTPS port that CloudFront uses to connect to the origin. Specify + the HTTPS port that the origin listens on. + """ + origin_protocol_policy: str + """ + Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect + to the origin. Valid values are: + + - `http-only` -- CloudFront always uses HTTP to connect to the origin. + + - `match-viewer` -- CloudFront connects to the origin using the same + protocol that the viewer used to connect to CloudFront. + + - `https-only` -- CloudFront always uses HTTPS to connect to the origin. + """ + origin_ssl_protocols: OriginSslProtocols | None = ... + """ + Specifies the minimum SSL/TLS protocol that CloudFront uses when + connecting to your origin over HTTPS. Valid values include `SSLv3`, + `TLSv1`, `TLSv1.1`, and `TLSv1.2`. + + For more information, see [Minimum Origin SSL + Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginSSLProtocols) + in the *Amazon CloudFront Developer Guide*. + """ + origin_read_timeout: int | None = ... + """ + Specifies how long, in seconds, CloudFront waits for a response from the + origin. This is also known as the *origin response timeout*. The minimum + timeout is 1 second, the maximum is 120 seconds, and the default (if you + don't specify otherwise) is 30 seconds. + + For more information, see [Response + timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) + in the *Amazon CloudFront Developer Guide*. + """ + origin_keepalive_timeout: int | None = ... + """ + Specifies how long, in seconds, CloudFront persists its connection to + the origin. The minimum timeout is 1 second, the maximum is 120 seconds, + and the default (if you don't specify otherwise) is 5 seconds. + + For more information, see [Keep-alive timeout (custom origins + only)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout) + in the *Amazon CloudFront Developer Guide*. + """ + ip_address_type: str | None = ... + """ + Specifies which IP protocol CloudFront uses when connecting to your + origin. If your origin uses both IPv4 and IPv6 protocols, you can choose + `dualstack` to help optimize reliability. + """ + origin_mtls_config: OriginMtlsConfig | None = ... + """ + Configures mutual TLS authentication between CloudFront and your origin + server. + """ + +class CustomOriginConfigDict(TypedDict, total=False): + """Dictionary form of `CustomOriginConfig`.""" + + http_port: Required[int] + """ + The HTTP port that CloudFront uses to connect to the origin. Specify the + HTTP port that the origin listens on. + """ + https_port: Required[int] + """ + The HTTPS port that CloudFront uses to connect to the origin. Specify + the HTTPS port that the origin listens on. + """ + origin_protocol_policy: Required[str] + """ + Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect + to the origin. Valid values are: + + - `http-only` -- CloudFront always uses HTTP to connect to the origin. + + - `match-viewer` -- CloudFront connects to the origin using the same + protocol that the viewer used to connect to CloudFront. + + - `https-only` -- CloudFront always uses HTTPS to connect to the origin. + """ + origin_ssl_protocols: OriginSslProtocols | OriginSslProtocolsDict | None + """ + Specifies the minimum SSL/TLS protocol that CloudFront uses when + connecting to your origin over HTTPS. Valid values include `SSLv3`, + `TLSv1`, `TLSv1.1`, and `TLSv1.2`. + + For more information, see [Minimum Origin SSL + Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginSSLProtocols) + in the *Amazon CloudFront Developer Guide*. + """ + origin_read_timeout: int | None + """ + Specifies how long, in seconds, CloudFront waits for a response from the + origin. This is also known as the *origin response timeout*. The minimum + timeout is 1 second, the maximum is 120 seconds, and the default (if you + don't specify otherwise) is 30 seconds. + + For more information, see [Response + timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) + in the *Amazon CloudFront Developer Guide*. + """ + origin_keepalive_timeout: int | None + """ + Specifies how long, in seconds, CloudFront persists its connection to + the origin. The minimum timeout is 1 second, the maximum is 120 seconds, + and the default (if you don't specify otherwise) is 5 seconds. + + For more information, see [Keep-alive timeout (custom origins + only)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout) + in the *Amazon CloudFront Developer Guide*. + """ + ip_address_type: str | None + """ + Specifies which IP protocol CloudFront uses when connecting to your + origin. If your origin uses both IPv4 and IPv6 protocols, you can choose + `dualstack` to help optimize reliability. + """ + origin_mtls_config: OriginMtlsConfig | OriginMtlsConfigDict | None + """ + Configures mutual TLS authentication between CloudFront and your origin + server. + """ + +@dataclass(kw_only=True) +class DefaultCacheBehavior(_SerdeShape): + """ + A complex type that describes the default cache behavior if you don't + specify a `CacheBehavior` element or if request URLs don't match any of + the values of `PathPattern` in `CacheBehavior` elements. You must create + exactly one default cache behavior. + + Warning: + If your minimum TTL is greater than 0, CloudFront will cache content for + at least the duration specified in the cache policy's minimum TTL, even + if the `Cache-Control: no-cache`, `no-store`, or `private` directives + are present in the origin headers. + """ + + target_origin_id: str + """ + The value of `ID` for the origin that you want CloudFront to route + requests to when they use the default cache behavior. + """ + trusted_signers: TrustedSigners | None = ... + """ + Warning: + We recommend using `TrustedKeyGroups` instead of `TrustedSigners`. + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. + + A list of Amazon Web Services account IDs whose public keys CloudFront + can use to validate signed URLs or signed cookies. + + When a cache behavior contains trusted signers, CloudFront requires + signed URLs or signed cookies for all requests that match the cache + behavior. The URLs or cookies must be signed with the private key of a + CloudFront key pair in a trusted signer's Amazon Web Services account. + The signed URL or cookie contains information about which public key + CloudFront should use to verify the signature. For more information, see + [Serving private + content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + in the *Amazon CloudFront Developer Guide*. + """ + trusted_key_groups: TrustedKeyGroups | None = ... + """ + A list of key groups that CloudFront can use to validate signed URLs or + signed cookies. + + When a cache behavior contains trusted key groups, CloudFront requires + signed URLs or signed cookies for all requests that match the cache + behavior. The URLs or cookies must be signed with a private key whose + corresponding public key is in the key group. The signed URL or cookie + contains information about which public key CloudFront should use to + verify the signature. For more information, see [Serving private + content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + in the *Amazon CloudFront Developer Guide*. + """ + viewer_protocol_policy: str + """ + The protocol that viewers can use to access the files in the origin + specified by `TargetOriginId` when a request matches the path pattern in + `PathPattern`. You can specify the following options: + + - `allow-all`: Viewers can use HTTP or HTTPS. + + - `redirect-to-https`: If a viewer submits an HTTP request, CloudFront + returns an HTTP status code of 301 (Moved Permanently) to the viewer + along with the HTTPS URL. The viewer then resubmits the request using + the new URL. + + - `https-only`: If a viewer sends an HTTP request, CloudFront returns an + HTTP status code of 403 (Forbidden). + + For more information about requiring the HTTPS protocol, see [Requiring + HTTPS Between Viewers and + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) + in the *Amazon CloudFront Developer Guide*. + + Note: + The only way to guarantee that viewers retrieve an object that was + fetched from the origin using HTTPS is never to use any other protocol + to fetch the object. If you have recently changed from HTTP to HTTPS, we + recommend that you clear your objects' cache because cached objects are + protocol agnostic. That means that an edge location will return an + object from the cache regardless of whether the current request protocol + matches the protocol used previously. For more information, see + [Managing Cache + Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. + """ + allowed_methods: AllowedMethods | None = ... + """ + A complex type that controls which HTTP methods CloudFront processes and + forwards to your Amazon S3 bucket or your custom origin. There are three + choices: + + - CloudFront forwards only `GET` and `HEAD` requests. + + - CloudFront forwards only `GET`, `HEAD`, and `OPTIONS` requests. + + - CloudFront forwards `GET, HEAD, OPTIONS, PUT, PATCH, POST`, and + `DELETE` requests. + + If you pick the third choice, you may need to restrict access to your + Amazon S3 bucket or to your custom origin so users can't perform + operations that you don't want them to. For example, you might not want + users to have permissions to delete objects from your origin. + """ + smooth_streaming: bool | None = ... + """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. + + Indicates whether you want to distribute media files in the Microsoft + Smooth Streaming format using the origin that is associated with this + cache behavior. If so, specify `true`; if not, specify `false`. If you + specify `true` for `SmoothStreaming`, you can still distribute other + content using this cache behavior if the content matches the value of + `PathPattern`. + """ + compress: bool | None = ... + """ + Whether you want CloudFront to automatically compress certain files for + this cache behavior. If so, specify `true`; if not, specify `false`. For + more information, see [Serving Compressed + Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) + in the *Amazon CloudFront Developer Guide*. + """ + lambda_function_associations: LambdaFunctionAssociations | None = ... + """ + A complex type that contains zero or more Lambda@Edge function + associations for a cache behavior. + """ + function_associations: FunctionAssociations | None = ... + """ + A list of CloudFront functions that are associated with this cache + behavior. Your functions must be published to the `LIVE` stage to + associate them with a cache behavior. + """ + field_level_encryption_id: str | None = ... + """ + The value of `ID` for the field-level encryption configuration that you + want CloudFront to use for encrypting specific fields of data for the + default cache behavior. + """ + realtime_log_config_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the real-time log configuration that + is attached to this cache behavior. For more information, see [Real-time + logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) + in the *Amazon CloudFront Developer Guide*. + """ + cache_policy_id: str | None = ... + """ + The unique identifier of the cache policy that is attached to the + default cache behavior. For more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. + + A `DefaultCacheBehavior` must include either a `CachePolicyId` or + `ForwardedValues`. We recommend that you use a `CachePolicyId`. + """ + origin_request_policy_id: str | None = ... + """ + The unique identifier of the origin request policy that is attached to + the default cache behavior. For more information, see [Creating origin + request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + or [Using the managed origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) + in the *Amazon CloudFront Developer Guide*. + """ + response_headers_policy_id: str | None = ... + """The identifier for a response headers policy.""" + grpc_config: GrpcConfig | None = ... + """The gRPC configuration for your cache behavior.""" + forwarded_values: ForwardedValues | None = ... + """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. For more information, see + [Working with + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html) + in the *Amazon CloudFront Developer Guide*. + + If you want to include values in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. + + If you want to send values to the origin but not include them in the + cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + or [Using the managed origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) + in the *Amazon CloudFront Developer Guide*. + + A `DefaultCacheBehavior` must include either a `CachePolicyId` or + `ForwardedValues`. We recommend that you use a `CachePolicyId`. + + A complex type that specifies how CloudFront handles query strings, + cookies, and HTTP headers. + """ + min_ttl: int | None = ... + """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. + + This field is deprecated. We recommend that you use the `MinTTL` field + in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. + + The minimum amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. For more information, see + [Managing How Long Content Stays in an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. + + You must specify `0` for `MinTTL` if you configure CloudFront to forward + all headers to your origin (under `Headers`, if you specify `1` for + `Quantity` and `*` for `Name`). + """ + default_ttl: int | None = ... + """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. + + This field is deprecated. We recommend that you use the `DefaultTTL` + field in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. + + The default amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. The value that you + specify applies only when your origin does not add HTTP headers such as + `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` to + objects. For more information, see [Managing How Long Content Stays in + an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. + """ + max_ttl: int | None = ... + """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. + + This field is deprecated. We recommend that you use the `MaxTTL` field + in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. + + The maximum amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. The value that you + specify applies only when your origin adds HTTP headers such as + `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` to + objects. For more information, see [Managing How Long Content Stays in + an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. + """ - response_headers_policy_config: ResponseHeadersPolicyConfig | None = ... +class DefaultCacheBehaviorDict(TypedDict, total=False): + """Dictionary form of `DefaultCacheBehavior`.""" + + target_origin_id: Required[str] """ - Contains metadata about the response headers policy, and a set of - configurations that specify the HTTP headers. + The value of `ID` for the origin that you want CloudFront to route + requests to when they use the default cache behavior. """ + trusted_signers: TrustedSigners | TrustedSignersDict | None + """ + Warning: + We recommend using `TrustedKeyGroups` instead of `TrustedSigners`. + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. -@dataclass(kw_only=True) -class CreateResponseHeadersPolicyOutput(_SerdeShape): - """Dataclass for CreateResponseHeadersPolicyOutput structure.""" + A list of Amazon Web Services account IDs whose public keys CloudFront + can use to validate signed URLs or signed cookies. - response_headers_policy: ResponseHeadersPolicy | None = ... - """Contains a response headers policy.""" - location: str | None = ... - """The URL of the response headers policy.""" - e_tag: str | None = ... + When a cache behavior contains trusted signers, CloudFront requires + signed URLs or signed cookies for all requests that match the cache + behavior. The URLs or cookies must be signed with the private key of a + CloudFront key pair in a trusted signer's Amazon Web Services account. + The signed URL or cookie contains information about which public key + CloudFront should use to verify the signature. For more information, see + [Serving private + content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + in the *Amazon CloudFront Developer Guide*. """ - The version identifier for the current version of the response headers - policy. + trusted_key_groups: TrustedKeyGroups | TrustedKeyGroupsDict | None """ - response_metadata: ResponseMetadata = ... + A list of key groups that CloudFront can use to validate signed URLs or + signed cookies. + + When a cache behavior contains trusted key groups, CloudFront requires + signed URLs or signed cookies for all requests that match the cache + behavior. The URLs or cookies must be signed with a private key whose + corresponding public key is in the key group. The signed URL or cookie + contains information about which public key CloudFront should use to + verify the signature. For more information, see [Serving private + content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + in the *Amazon CloudFront Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + viewer_protocol_policy: Required[str] """ + The protocol that viewers can use to access the files in the origin + specified by `TargetOriginId` when a request matches the path pattern in + `PathPattern`. You can specify the following options: -@dataclass(kw_only=True) -class CreateStreamingDistributionInput(_SerdeShape): - """The request to create a new streaming distribution.""" + - `allow-all`: Viewers can use HTTP or HTTPS. - streaming_distribution_config: StreamingDistributionConfig | None = ... - """The streaming distribution's configuration information.""" + - `redirect-to-https`: If a viewer submits an HTTP request, CloudFront + returns an HTTP status code of 301 (Moved Permanently) to the viewer + along with the HTTPS URL. The viewer then resubmits the request using + the new URL. -@dataclass(kw_only=True) -class CreateStreamingDistributionOutput(_SerdeShape): - """The returned result of the corresponding request.""" + - `https-only`: If a viewer sends an HTTP request, CloudFront returns an + HTTP status code of 403 (Forbidden). - streaming_distribution: StreamingDistribution | None = ... - """The streaming distribution's information.""" - location: str | None = ... - """ - The fully qualified URI of the new streaming distribution resource just - created. - """ - e_tag: str | None = ... - """The current version of the streaming distribution created.""" - response_metadata: ResponseMetadata = ... + For more information about requiring the HTTPS protocol, see [Requiring + HTTPS Between Viewers and + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) + in the *Amazon CloudFront Developer Guide*. + + Note: + The only way to guarantee that viewers retrieve an object that was + fetched from the origin using HTTPS is never to use any other protocol + to fetch the object. If you have recently changed from HTTP to HTTPS, we + recommend that you clear your objects' cache because cached objects are + protocol agnostic. That means that an edge location will return an + object from the cache regardless of whether the current request protocol + matches the protocol used previously. For more information, see + [Managing Cache + Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + allowed_methods: AllowedMethods | AllowedMethodsDict | None """ + A complex type that controls which HTTP methods CloudFront processes and + forwards to your Amazon S3 bucket or your custom origin. There are three + choices: -@dataclass(kw_only=True) -class CreateStreamingDistributionWithTagsInput(_SerdeShape): - """The request to create a new streaming distribution with tags.""" + - CloudFront forwards only `GET` and `HEAD` requests. - streaming_distribution_config_with_tags: ( - StreamingDistributionConfigWithTags | None - ) = ... - """The streaming distribution's configuration information.""" + - CloudFront forwards only `GET`, `HEAD`, and `OPTIONS` requests. -@dataclass(kw_only=True) -class CreateStreamingDistributionWithTagsOutput(_SerdeShape): - """The returned result of the corresponding request.""" + - CloudFront forwards `GET, HEAD, OPTIONS, PUT, PATCH, POST`, and + `DELETE` requests. - streaming_distribution: StreamingDistribution | None = ... - """The streaming distribution's information.""" - location: str | None = ... + If you pick the third choice, you may need to restrict access to your + Amazon S3 bucket or to your custom origin so users can't perform + operations that you don't want them to. For example, you might not want + users to have permissions to delete objects from your origin. """ - The fully qualified URI of the new streaming distribution resource just - created. + smooth_streaming: bool | None """ - e_tag: str | None = ... - """The current version of the distribution created.""" - response_metadata: ResponseMetadata = ... + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. + + Indicates whether you want to distribute media files in the Microsoft + Smooth Streaming format using the origin that is associated with this + cache behavior. If so, specify `true`; if not, specify `false`. If you + specify `true` for `SmoothStreaming`, you can still distribute other + content using this cache behavior if the content matches the value of + `PathPattern`. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + compress: bool | None """ - -@dataclass(kw_only=True) -class CreateTrustStoreInput(_SerdeShape): - """Dataclass for CreateTrustStoreInput structure.""" - - name: str | None = ... - """A name for the trust store.""" - ca_certificates_bundle_source: CaCertificatesBundleSource | None = ... - """The CA certificates bundle source for the trust store.""" - use_client_certificate_ocsp_endpoint: bool | None = ... + Whether you want CloudFront to automatically compress certain files for + this cache behavior. If so, specify `true`; if not, specify `false`. For + more information, see [Serving Compressed + Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) + in the *Amazon CloudFront Developer Guide*. """ - A Boolean that determines whether to use the CA certificate's OCSP - endpoint to check certificate revocation status. + lambda_function_associations: ( + LambdaFunctionAssociations | LambdaFunctionAssociationsDict | None + ) """ - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" - -@dataclass(kw_only=True) -class CreateTrustStoreOutput(_SerdeShape): - """Dataclass for CreateTrustStoreOutput structure.""" - - trust_store: TrustStore | None = ... - """The trust store.""" - e_tag: str | None = ... - """The version identifier for the current version of the trust store.""" - response_metadata: ResponseMetadata = ... + A complex type that contains zero or more Lambda@Edge function + associations for a cache behavior. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + function_associations: FunctionAssociations | FunctionAssociationsDict | None """ - -@dataclass(kw_only=True) -class CreateVpcOriginInput(_SerdeShape): - """Dataclass for CreateVpcOriginInput structure.""" - - vpc_origin_endpoint_config: VpcOriginEndpointConfig | None = ... - """The VPC origin endpoint configuration.""" - tags: Tags | None = ... - """A complex type that contains zero or more `Tag` elements.""" - -@dataclass(kw_only=True) -class CreateVpcOriginOutput(_SerdeShape): - """Dataclass for CreateVpcOriginOutput structure.""" - - vpc_origin: VpcOrigin | None = ... - """The VPC origin.""" - location: str | None = ... - """The VPC origin location.""" - e_tag: str | None = ... - """The VPC origin ETag.""" - response_metadata: ResponseMetadata = ... + A list of CloudFront functions that are associated with this cache + behavior. Your functions must be published to the `LIVE` stage to + associate them with a cache behavior. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + field_level_encryption_id: str | None """ - -@dataclass(kw_only=True) -class CustomErrorResponse(_SerdeShape): + The value of `ID` for the field-level encryption configuration that you + want CloudFront to use for encrypting specific fields of data for the + default cache behavior. """ - A complex type that controls: - - - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range - with custom error messages before returning the response to the - viewer. - - - How long CloudFront caches HTTP status codes in the 4xx and 5xx range. - - For more information about custom error pages, see [Customizing Error - Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + realtime_log_config_arn: str | None + """ + The Amazon Resource Name (ARN) of the real-time log configuration that + is attached to this cache behavior. For more information, see [Real-time + logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) in the *Amazon CloudFront Developer Guide*. """ + cache_policy_id: str | None + """ + The unique identifier of the cache policy that is attached to the + default cache behavior. For more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. - error_code: int + A `DefaultCacheBehavior` must include either a `CachePolicyId` or + `ForwardedValues`. We recommend that you use a `CachePolicyId`. """ - The HTTP status code for which you want to specify a custom error page - and/or a caching duration. + origin_request_policy_id: str | None """ - response_page_path: str | None = ... + The unique identifier of the origin request policy that is attached to + the default cache behavior. For more information, see [Creating origin + request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + or [Using the managed origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) + in the *Amazon CloudFront Developer Guide*. """ - The path to the custom error page that you want CloudFront to return to - a viewer when your origin returns the HTTP status code specified by - `ErrorCode`, for example, `/4xx-errors/403-forbidden.html`. If you want - to store your objects and your custom error pages in different - locations, your distribution must include a cache behavior for which the - following is true: + response_headers_policy_id: str | None + """The identifier for a response headers policy.""" + grpc_config: GrpcConfig | GrpcConfigDict | None + """The gRPC configuration for your cache behavior.""" + forwarded_values: ForwardedValues | ForwardedValuesDict | None + """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. For more information, see + [Working with + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html) + in the *Amazon CloudFront Developer Guide*. - - The value of `PathPattern` matches the path to your custom error - messages. For example, suppose you saved custom error pages for 4xx - errors in an Amazon S3 bucket in a directory named `/4xx-errors`. Your - distribution must include a cache behavior for which the path pattern - routes requests for your custom error pages to that location, for - example, `/4xx-errors/*`. + If you want to include values in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. - - The value of `TargetOriginId` specifies the value of the `ID` element - for the origin that contains your custom error pages. + If you want to send values to the origin but not include them in the + cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + or [Using the managed origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) + in the *Amazon CloudFront Developer Guide*. - If you specify a value for `ResponsePagePath`, you must also specify a - value for `ResponseCode`. + A `DefaultCacheBehavior` must include either a `CachePolicyId` or + `ForwardedValues`. We recommend that you use a `CachePolicyId`. - We recommend that you store custom error pages in an Amazon S3 bucket. - If you store custom error pages on an HTTP server and the server starts - to return 5xx errors, CloudFront can't get the files that you want to - return to viewers because the origin server is unavailable. + A complex type that specifies how CloudFront handles query strings, + cookies, and HTTP headers. """ - response_code: str | None = ... + min_ttl: int | None """ - The HTTP status code that you want CloudFront to return to the viewer - along with the custom error page. There are a variety of reasons that - you might want CloudFront to return a status code different from the - status code that your origin returned to CloudFront, for example: - - - Some Internet devices (some firewalls and corporate proxies, for - example) intercept HTTP 4xx and 5xx and prevent the response from - being returned to the viewer. If you substitute `200`, the response - typically won't be intercepted. + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - - If you don't care about distinguishing among different client errors - or server errors, you can specify `400` or `500` as the `ResponseCode` - for all 4xx or 5xx errors. + This field is deprecated. We recommend that you use the `MinTTL` field + in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) + in the *Amazon CloudFront Developer Guide*. - - You might want to return a `200` status code (OK) and static website - so your customers don't know that your website is down. + The minimum amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. For more information, see + [Managing How Long Content Stays in an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. - If you specify a value for `ResponseCode`, you must also specify a value - for `ResponsePagePath`. + You must specify `0` for `MinTTL` if you configure CloudFront to forward + all headers to your origin (under `Headers`, if you specify `1` for + `Quantity` and `*` for `Name`). """ - error_caching_min_ttl: int | None = ... + default_ttl: int | None """ - The minimum amount of time, in seconds, that you want CloudFront to - cache the HTTP status code specified in `ErrorCode`. When this time - period has elapsed, CloudFront queries your origin to see whether the - problem that caused the error has been resolved and the requested object - is now available. + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - For more information, see [Customizing Error - Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + This field is deprecated. We recommend that you use the `DefaultTTL` + field in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*. - """ -@dataclass(kw_only=True) -class CustomErrorResponses(_SerdeShape): + The default amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. The value that you + specify applies only when your origin does not add HTTP headers such as + `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` to + objects. For more information, see [Managing How Long Content Stays in + an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. """ - A complex type that controls: - - - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range - with custom error messages before returning the response to the - viewer. - - - How long CloudFront caches HTTP status codes in the 4xx and 5xx range. + max_ttl: int | None + """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - For more information about custom error pages, see [Customizing Error - Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + This field is deprecated. We recommend that you use the `MaxTTL` field + in a cache policy instead of this field. For more information, see + [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + or [Using the managed cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*. - """ - quantity: int - """ - The number of HTTP status codes for which you want to specify a custom - error page and/or a caching duration. If `Quantity` is `0`, you can omit - `Items`. - """ - items: list[CustomErrorResponse] | None = ... - """ - A complex type that contains a `CustomErrorResponse` element for each - HTTP status code for which you want to specify a custom error page - and/or a caching duration. + The maximum amount of time that you want objects to stay in CloudFront + caches before CloudFront forwards another request to your origin to + determine whether the object has been updated. The value that you + specify applies only when your origin adds HTTP headers such as + `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` to + objects. For more information, see [Managing How Long Content Stays in + an Edge Cache + (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + in the *Amazon CloudFront Developer Guide*. """ @dataclass(kw_only=True) -class CustomHeaders(_SerdeShape): - """A complex type that contains the list of Custom Headers for each origin.""" +class DeleteAnycastIpListInput(_SerdeShape): + """Dataclass for DeleteAnycastIpListInput structure.""" - quantity: int - """The number of custom headers, if any, for this distribution.""" - items: list[OriginCustomHeader] | None = ... + id: str | None = ... + """The ID of the Anycast static IP list.""" + if_match: str | None = ... """ - **Optional**: A list that contains one `OriginCustomHeader` element for - each custom header that you want CloudFront to forward to the origin. If - Quantity is `0`, omit `Items`. + The current version (`ETag` value) of the Anycast static IP list that + you are deleting. """ -class CustomizationActionType(UnknownEnumMixin, StrEnum): - OVERRIDE = "override" - DISABLE = "disable" +class DeleteAnycastIpListInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAnycastIpListInput`.""" -@dataclass(kw_only=True) -class Customizations(_SerdeShape): + id: Required[str] + """The ID of the Anycast static IP list.""" + if_match: Required[str] """ - Customizations for the distribution tenant. For each distribution - tenant, you can specify the geographic restrictions, and the Amazon - Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are - specific values that you can override or disable from the multi-tenant - distribution that was used to create the distribution tenant. + The current version (`ETag` value) of the Anycast static IP list that + you are deleting. """ - web_acl: WebAclCustomization | None = ... - """The WAF web ACL.""" - certificate: Certificate | None = ... - """The Certificate Manager (ACM) certificate.""" - geo_restrictions: GeoRestrictionCustomization | None = ... - """The geographic restrictions.""" - @dataclass(kw_only=True) -class CustomOriginConfig(_SerdeShape): - """ - A custom origin. A custom origin is any origin that is *not* an Amazon - S3 bucket, with one exception. An Amazon S3 bucket that is [configured - with static website - hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) - *is* a custom origin. - """ +class DeleteAnycastIpListOutput(_SerdeShape): + """Dataclass for DeleteAnycastIpListOutput structure.""" - http_port: int - """ - The HTTP port that CloudFront uses to connect to the origin. Specify the - HTTP port that the origin listens on. - """ - https_port: int - """ - The HTTPS port that CloudFront uses to connect to the origin. Specify - the HTTPS port that the origin listens on. + response_metadata: ResponseMetadata = ... """ - origin_protocol_policy: str + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect - to the origin. Valid values are: - - - `http-only` -- CloudFront always uses HTTP to connect to the origin. - - `match-viewer` -- CloudFront connects to the origin using the same - protocol that the viewer used to connect to CloudFront. +@dataclass(kw_only=True) +class DeleteCachePolicyInput(_SerdeShape): + """Dataclass for DeleteCachePolicyInput structure.""" - - `https-only` -- CloudFront always uses HTTPS to connect to the origin. + id: str | None = ... """ - origin_ssl_protocols: OriginSslProtocols | None = ... + The unique identifier for the cache policy that you are deleting. To get + the identifier, you can use `ListCachePolicies`. """ - Specifies the minimum SSL/TLS protocol that CloudFront uses when - connecting to your origin over HTTPS. Valid values include `SSLv3`, - `TLSv1`, `TLSv1.1`, and `TLSv1.2`. - - For more information, see [Minimum Origin SSL - Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginSSLProtocols) - in the *Amazon CloudFront Developer Guide*. + if_match: str | None = ... """ - origin_read_timeout: int | None = ... + The version of the cache policy that you are deleting. The version is + the cache policy's `ETag` value, which you can get using + `ListCachePolicies`, `GetCachePolicy`, or `GetCachePolicyConfig`. """ - Specifies how long, in seconds, CloudFront waits for a response from the - origin. This is also known as the *origin response timeout*. The minimum - timeout is 1 second, the maximum is 120 seconds, and the default (if you - don't specify otherwise) is 30 seconds. - For more information, see [Response - timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) - in the *Amazon CloudFront Developer Guide*. - """ - origin_keepalive_timeout: int | None = ... - """ - Specifies how long, in seconds, CloudFront persists its connection to - the origin. The minimum timeout is 1 second, the maximum is 120 seconds, - and the default (if you don't specify otherwise) is 5 seconds. +class DeleteCachePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCachePolicyInput`.""" - For more information, see [Keep-alive timeout (custom origins - only)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout) - in the *Amazon CloudFront Developer Guide*. - """ - ip_address_type: str | None = ... + id: Required[str] """ - Specifies which IP protocol CloudFront uses when connecting to your - origin. If your origin uses both IPv4 and IPv6 protocols, you can choose - `dualstack` to help optimize reliability. + The unique identifier for the cache policy that you are deleting. To get + the identifier, you can use `ListCachePolicies`. """ - origin_mtls_config: OriginMtlsConfig | None = ... + if_match: str | None """ - Configures mutual TLS authentication between CloudFront and your origin - server. + The version of the cache policy that you are deleting. The version is + the cache policy's `ETag` value, which you can get using + `ListCachePolicies`, `GetCachePolicy`, or `GetCachePolicyConfig`. """ @dataclass(kw_only=True) -class DefaultCacheBehavior(_SerdeShape): - """ - A complex type that describes the default cache behavior if you don't - specify a `CacheBehavior` element or if request URLs don't match any of - the values of `PathPattern` in `CacheBehavior` elements. You must create - exactly one default cache behavior. +class DeleteCachePolicyOutput(_SerdeShape): + """Dataclass for DeleteCachePolicyOutput structure.""" - Warning: - If your minimum TTL is greater than 0, CloudFront will cache content for - at least the duration specified in the cache policy's minimum TTL, even - if the `Cache-Control: no-cache`, `no-store`, or `private` directives - are present in the origin headers. + response_metadata: ResponseMetadata = ... """ - - target_origin_id: str + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - The value of `ID` for the origin that you want CloudFront to route - requests to when they use the default cache behavior. + +@dataclass(kw_only=True) +class DeleteCloudFrontOriginAccessIdentityInput(_SerdeShape): + """Deletes a origin access identity.""" + + id: str | None = ... + """The origin access identity's ID.""" + if_match: str | None = ... """ - trusted_signers: TrustedSigners | None = ... + The value of the `ETag` header you received from a previous `GET` or + `PUT` request. For example: `E2QWRUHAPOMQZL`. """ - Warning: - We recommend using `TrustedKeyGroups` instead of `TrustedSigners`. - Note: - This field only supports standard distributions. You can't specify this - field for multi-tenant distributions. For more information, see - [Unsupported features for SaaS Manager for Amazon - CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) - in the *Amazon CloudFront Developer Guide*. - A list of Amazon Web Services account IDs whose public keys CloudFront - can use to validate signed URLs or signed cookies. +class DeleteCloudFrontOriginAccessIdentityInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCloudFrontOriginAccessIdentityInput`.""" - When a cache behavior contains trusted signers, CloudFront requires - signed URLs or signed cookies for all requests that match the cache - behavior. The URLs or cookies must be signed with the private key of a - CloudFront key pair in a trusted signer's Amazon Web Services account. - The signed URL or cookie contains information about which public key - CloudFront should use to verify the signature. For more information, see - [Serving private - content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) - in the *Amazon CloudFront Developer Guide*. + id: Required[str] + """The origin access identity's ID.""" + if_match: str | None """ - trusted_key_groups: TrustedKeyGroups | None = ... + The value of the `ETag` header you received from a previous `GET` or + `PUT` request. For example: `E2QWRUHAPOMQZL`. """ - A list of key groups that CloudFront can use to validate signed URLs or - signed cookies. - When a cache behavior contains trusted key groups, CloudFront requires - signed URLs or signed cookies for all requests that match the cache - behavior. The URLs or cookies must be signed with a private key whose - corresponding public key is in the key group. The signed URL or cookie - contains information about which public key CloudFront should use to - verify the signature. For more information, see [Serving private - content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) - in the *Amazon CloudFront Developer Guide*. +@dataclass(kw_only=True) +class DeleteCloudFrontOriginAccessIdentityOutput(_SerdeShape): + """Dataclass for DeleteCloudFrontOriginAccessIdentityOutput structure.""" + + response_metadata: ResponseMetadata = ... """ - viewer_protocol_policy: str + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - The protocol that viewers can use to access the files in the origin - specified by `TargetOriginId` when a request matches the path pattern in - `PathPattern`. You can specify the following options: - - - `allow-all`: Viewers can use HTTP or HTTPS. - - `redirect-to-https`: If a viewer submits an HTTP request, CloudFront - returns an HTTP status code of 301 (Moved Permanently) to the viewer - along with the HTTPS URL. The viewer then resubmits the request using - the new URL. +@dataclass(kw_only=True) +class DeleteConnectionFunctionInput(_SerdeShape): + """Dataclass for DeleteConnectionFunctionInput structure.""" - - `https-only`: If a viewer sends an HTTP request, CloudFront returns an - HTTP status code of 403 (Forbidden). + id: str | None = ... + """The connection function's ID.""" + if_match: str | None = ... + """ + The current version (`ETag` value) of the connection function you are + deleting. + """ - For more information about requiring the HTTPS protocol, see [Requiring - HTTPS Between Viewers and - CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) - in the *Amazon CloudFront Developer Guide*. +class DeleteConnectionFunctionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteConnectionFunctionInput`.""" - Note: - The only way to guarantee that viewers retrieve an object that was - fetched from the origin using HTTPS is never to use any other protocol - to fetch the object. If you have recently changed from HTTP to HTTPS, we - recommend that you clear your objects' cache because cached objects are - protocol agnostic. That means that an edge location will return an - object from the cache regardless of whether the current request protocol - matches the protocol used previously. For more information, see - [Managing Cache - Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) - in the *Amazon CloudFront Developer Guide*. + id: Required[str] + """The connection function's ID.""" + if_match: Required[str] """ - allowed_methods: AllowedMethods | None = ... + The current version (`ETag` value) of the connection function you are + deleting. """ - A complex type that controls which HTTP methods CloudFront processes and - forwards to your Amazon S3 bucket or your custom origin. There are three - choices: - - CloudFront forwards only `GET` and `HEAD` requests. +@dataclass(kw_only=True) +class DeleteConnectionFunctionOutput(_SerdeShape): + """Dataclass for DeleteConnectionFunctionOutput structure.""" - - CloudFront forwards only `GET`, `HEAD`, and `OPTIONS` requests. + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - - CloudFront forwards `GET, HEAD, OPTIONS, PUT, PATCH, POST`, and - `DELETE` requests. +@dataclass(kw_only=True) +class DeleteConnectionGroupInput(_SerdeShape): + """Dataclass for DeleteConnectionGroupInput structure.""" - If you pick the third choice, you may need to restrict access to your - Amazon S3 bucket or to your custom origin so users can't perform - operations that you don't want them to. For example, you might not want - users to have permissions to delete objects from your origin. + id: str | None = ... + """The ID of the connection group to delete.""" + if_match: str | None = ... """ - smooth_streaming: bool | None = ... + The value of the `ETag` header that you received when retrieving the + connection group to delete. """ - Note: - This field only supports standard distributions. You can't specify this - field for multi-tenant distributions. For more information, see - [Unsupported features for SaaS Manager for Amazon - CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) - in the *Amazon CloudFront Developer Guide*. - Indicates whether you want to distribute media files in the Microsoft - Smooth Streaming format using the origin that is associated with this - cache behavior. If so, specify `true`; if not, specify `false`. If you - specify `true` for `SmoothStreaming`, you can still distribute other - content using this cache behavior if the content matches the value of - `PathPattern`. +class DeleteConnectionGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteConnectionGroupInput`.""" + + id: Required[str] + """The ID of the connection group to delete.""" + if_match: Required[str] """ - compress: bool | None = ... + The value of the `ETag` header that you received when retrieving the + connection group to delete. """ - Whether you want CloudFront to automatically compress certain files for - this cache behavior. If so, specify `true`; if not, specify `false`. For - more information, see [Serving Compressed - Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) - in the *Amazon CloudFront Developer Guide*. + +@dataclass(kw_only=True) +class DeleteConnectionGroupOutput(_SerdeShape): + """Dataclass for DeleteConnectionGroupOutput structure.""" + + response_metadata: ResponseMetadata = ... """ - lambda_function_associations: LambdaFunctionAssociations | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - A complex type that contains zero or more Lambda@Edge function - associations for a cache behavior. + +@dataclass(kw_only=True) +class DeleteContinuousDeploymentPolicyInput(_SerdeShape): + """Dataclass for DeleteContinuousDeploymentPolicyInput structure.""" + + id: str | None = ... """ - function_associations: FunctionAssociations | None = ... + The identifier of the continuous deployment policy that you are + deleting. """ - A list of CloudFront functions that are associated with this cache - behavior. Your functions must be published to the `LIVE` stage to - associate them with a cache behavior. + if_match: str | None = ... """ - field_level_encryption_id: str | None = ... + The current version (`ETag` value) of the continuous deployment policy + that you are deleting. """ - The value of `ID` for the field-level encryption configuration that you - want CloudFront to use for encrypting specific fields of data for the - default cache behavior. + +class DeleteContinuousDeploymentPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteContinuousDeploymentPolicyInput`.""" + + id: Required[str] """ - realtime_log_config_arn: str | None = ... + The identifier of the continuous deployment policy that you are + deleting. """ - The Amazon Resource Name (ARN) of the real-time log configuration that - is attached to this cache behavior. For more information, see [Real-time - logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) - in the *Amazon CloudFront Developer Guide*. + if_match: str | None """ - cache_policy_id: str | None = ... + The current version (`ETag` value) of the continuous deployment policy + that you are deleting. """ - The unique identifier of the cache policy that is attached to the - default cache behavior. For more information, see [Creating cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) - or [Using the managed cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) - in the *Amazon CloudFront Developer Guide*. - A `DefaultCacheBehavior` must include either a `CachePolicyId` or - `ForwardedValues`. We recommend that you use a `CachePolicyId`. - """ - origin_request_policy_id: str | None = ... +@dataclass(kw_only=True) +class DeleteContinuousDeploymentPolicyOutput(_SerdeShape): + """Dataclass for DeleteContinuousDeploymentPolicyOutput structure.""" + + response_metadata: ResponseMetadata = ... """ - The unique identifier of the origin request policy that is attached to - the default cache behavior. For more information, see [Creating origin - request - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) - or [Using the managed origin request - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) - in the *Amazon CloudFront Developer Guide*. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - response_headers_policy_id: str | None = ... - """The identifier for a response headers policy.""" - grpc_config: GrpcConfig | None = ... - """The gRPC configuration for your cache behavior.""" - forwarded_values: ForwardedValues | None = ... + +@dataclass(kw_only=True) +class DeleteDistributionInput(_SerdeShape): """ - This field is deprecated. We recommend that you use a cache policy or an - origin request policy instead of this field. For more information, see - [Working with - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/working-with-policies.html) - in the *Amazon CloudFront Developer Guide*. + This action deletes a web distribution. To delete a web distribution + using the CloudFront API, perform the following steps. - If you want to include values in the cache key, use a cache policy. For - more information, see [Creating cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) - or [Using the managed cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) - in the *Amazon CloudFront Developer Guide*. + **To delete a web distribution using the CloudFront API:** - If you want to send values to the origin but not include them in the - cache key, use an origin request policy. For more information, see - [Creating origin request - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) - or [Using the managed origin request - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) - in the *Amazon CloudFront Developer Guide*. + 1. Disable the web distribution - A `DefaultCacheBehavior` must include either a `CachePolicyId` or - `ForwardedValues`. We recommend that you use a `CachePolicyId`. + 2. Submit a `GET Distribution Config` request to get the current + configuration and the `Etag` header for the distribution. - A complex type that specifies how CloudFront handles query strings, - cookies, and HTTP headers. - """ - min_ttl: int | None = ... - """ - Note: - This field only supports standard distributions. You can't specify this - field for multi-tenant distributions. For more information, see - [Unsupported features for SaaS Manager for Amazon - CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) - in the *Amazon CloudFront Developer Guide*. + 3. Update the XML document that was returned in the response to your + `GET Distribution Config` request to change the value of `Enabled` + to `false`. - This field is deprecated. We recommend that you use the `MinTTL` field - in a cache policy instead of this field. For more information, see - [Creating cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) - or [Using the managed cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) - in the *Amazon CloudFront Developer Guide*. + 4. Submit a `PUT Distribution Config` request to update the + configuration for your distribution. In the request body, include + the XML document that you updated in Step 3. Set the value of the + HTTP `If-Match` header to the value of the `ETag` header that + CloudFront returned when you submitted the `GET Distribution Config` + request in Step 2. - The minimum amount of time that you want objects to stay in CloudFront - caches before CloudFront forwards another request to your origin to - determine whether the object has been updated. For more information, see - [Managing How Long Content Stays in an Edge Cache - (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) + 5. Review the response to the `PUT Distribution Config` request to + confirm that the distribution was successfully disabled. + + 6. Submit a `GET Distribution` request to confirm that your changes + have propagated. When propagation is complete, the value of `Status` + is `Deployed`. + + 7. Submit a `DELETE Distribution` request. Set the value of the HTTP + `If-Match` header to the value of the `ETag` header that CloudFront + returned when you submitted the `GET Distribution Config` request in + Step 6. + + 8. Review the response to your `DELETE Distribution` request to confirm + that the distribution was successfully deleted. + + For information about deleting a distribution using the CloudFront + console, see [Deleting a + Distribution](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html) in the *Amazon CloudFront Developer Guide*. + """ - You must specify `0` for `MinTTL` if you configure CloudFront to forward - all headers to your origin (under `Headers`, if you specify `1` for - `Quantity` and `*` for `Name`). + id: str | None = ... + """The distribution ID.""" + if_match: str | None = ... """ - default_ttl: int | None = ... + The value of the `ETag` header that you received when you disabled the + distribution. For example: `E2QWRUHAPOMQZL`. """ - Note: - This field only supports standard distributions. You can't specify this - field for multi-tenant distributions. For more information, see - [Unsupported features for SaaS Manager for Amazon - CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) - in the *Amazon CloudFront Developer Guide*. - This field is deprecated. We recommend that you use the `DefaultTTL` - field in a cache policy instead of this field. For more information, see - [Creating cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) - or [Using the managed cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) - in the *Amazon CloudFront Developer Guide*. +class DeleteDistributionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDistributionInput`.""" - The default amount of time that you want objects to stay in CloudFront - caches before CloudFront forwards another request to your origin to - determine whether the object has been updated. The value that you - specify applies only when your origin does not add HTTP headers such as - `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` to - objects. For more information, see [Managing How Long Content Stays in - an Edge Cache - (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) - in the *Amazon CloudFront Developer Guide*. + id: Required[str] + """The distribution ID.""" + if_match: str | None """ - max_ttl: int | None = ... + The value of the `ETag` header that you received when you disabled the + distribution. For example: `E2QWRUHAPOMQZL`. """ - Note: - This field only supports standard distributions. You can't specify this - field for multi-tenant distributions. For more information, see - [Unsupported features for SaaS Manager for Amazon - CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) - in the *Amazon CloudFront Developer Guide*. - This field is deprecated. We recommend that you use the `MaxTTL` field - in a cache policy instead of this field. For more information, see - [Creating cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) - or [Using the managed cache - policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) - in the *Amazon CloudFront Developer Guide*. +@dataclass(kw_only=True) +class DeleteDistributionOutput(_SerdeShape): + """Dataclass for DeleteDistributionOutput structure.""" - The maximum amount of time that you want objects to stay in CloudFront - caches before CloudFront forwards another request to your origin to - determine whether the object has been updated. The value that you - specify applies only when your origin adds HTTP headers such as - `Cache-Control max-age`, `Cache-Control s-maxage`, and `Expires` to - objects. For more information, see [Managing How Long Content Stays in - an Edge Cache - (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) - in the *Amazon CloudFront Developer Guide*. + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) -class DeleteAnycastIpListInput(_SerdeShape): - """Dataclass for DeleteAnycastIpListInput structure.""" +class DeleteDistributionTenantInput(_SerdeShape): + """Dataclass for DeleteDistributionTenantInput structure.""" id: str | None = ... - """The ID of the Anycast static IP list.""" + """The ID of the distribution tenant to delete.""" if_match: str | None = ... """ - The current version (`ETag` value) of the Anycast static IP list that - you are deleting. + The value of the `ETag` header that you received when retrieving the + distribution tenant. This value is returned in the response of the + `GetDistributionTenant` API operation. + """ + +class DeleteDistributionTenantInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDistributionTenantInput`.""" + + id: Required[str] + """The ID of the distribution tenant to delete.""" + if_match: Required[str] + """ + The value of the `ETag` header that you received when retrieving the + distribution tenant. This value is returned in the response of the + `GetDistributionTenant` API operation. """ @dataclass(kw_only=True) -class DeleteAnycastIpListOutput(_SerdeShape): - """Dataclass for DeleteAnycastIpListOutput structure.""" +class DeleteDistributionTenantOutput(_SerdeShape): + """Dataclass for DeleteDistributionTenantOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3287,24 +5291,31 @@ class DeleteAnycastIpListOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteCachePolicyInput(_SerdeShape): - """Dataclass for DeleteCachePolicyInput structure.""" +class DeleteFieldLevelEncryptionConfigInput(_SerdeShape): + """Dataclass for DeleteFieldLevelEncryptionConfigInput structure.""" id: str | None = ... + """The ID of the configuration you want to delete from CloudFront.""" + if_match: str | None = ... """ - The unique identifier for the cache policy that you are deleting. To get - the identifier, you can use `ListCachePolicies`. + The value of the `ETag` header that you received when retrieving the + configuration identity to delete. For example: `E2QWRUHAPOMQZL`. """ - if_match: str | None = ... + +class DeleteFieldLevelEncryptionConfigInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFieldLevelEncryptionConfigInput`.""" + + id: Required[str] + """The ID of the configuration you want to delete from CloudFront.""" + if_match: str | None """ - The version of the cache policy that you are deleting. The version is - the cache policy's `ETag` value, which you can get using - `ListCachePolicies`, `GetCachePolicy`, or `GetCachePolicyConfig`. + The value of the `ETag` header that you received when retrieving the + configuration identity to delete. For example: `E2QWRUHAPOMQZL`. """ @dataclass(kw_only=True) -class DeleteCachePolicyOutput(_SerdeShape): - """Dataclass for DeleteCachePolicyOutput structure.""" +class DeleteFieldLevelEncryptionConfigOutput(_SerdeShape): + """Dataclass for DeleteFieldLevelEncryptionConfigOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3315,20 +5326,31 @@ class DeleteCachePolicyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteCloudFrontOriginAccessIdentityInput(_SerdeShape): - """Deletes a origin access identity.""" +class DeleteFieldLevelEncryptionProfileInput(_SerdeShape): + """Dataclass for DeleteFieldLevelEncryptionProfileInput structure.""" id: str | None = ... - """The origin access identity's ID.""" + """Request the ID of the profile you want to delete from CloudFront.""" if_match: str | None = ... """ - The value of the `ETag` header you received from a previous `GET` or - `PUT` request. For example: `E2QWRUHAPOMQZL`. + The value of the `ETag` header that you received when retrieving the + profile to delete. For example: `E2QWRUHAPOMQZL`. + """ + +class DeleteFieldLevelEncryptionProfileInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFieldLevelEncryptionProfileInput`.""" + + id: Required[str] + """Request the ID of the profile you want to delete from CloudFront.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + profile to delete. For example: `E2QWRUHAPOMQZL`. """ @dataclass(kw_only=True) -class DeleteCloudFrontOriginAccessIdentityOutput(_SerdeShape): - """Dataclass for DeleteCloudFrontOriginAccessIdentityOutput structure.""" +class DeleteFieldLevelEncryptionProfileOutput(_SerdeShape): + """Dataclass for DeleteFieldLevelEncryptionProfileOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3339,20 +5361,31 @@ class DeleteCloudFrontOriginAccessIdentityOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteConnectionFunctionInput(_SerdeShape): - """Dataclass for DeleteConnectionFunctionInput structure.""" +class DeleteFunctionInput(_SerdeShape): + """Dataclass for DeleteFunctionInput structure.""" - id: str | None = ... - """The connection function's ID.""" + name: str | None = ... + """The name of the function that you are deleting.""" if_match: str | None = ... """ - The current version (`ETag` value) of the connection function you are - deleting. + The current version (`ETag` value) of the function that you are + deleting, which you can get using `DescribeFunction`. + """ + +class DeleteFunctionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFunctionInput`.""" + + name: Required[str] + """The name of the function that you are deleting.""" + if_match: Required[str] + """ + The current version (`ETag` value) of the function that you are + deleting, which you can get using `DescribeFunction`. """ @dataclass(kw_only=True) -class DeleteConnectionFunctionOutput(_SerdeShape): - """Dataclass for DeleteConnectionFunctionOutput structure.""" +class DeleteFunctionOutput(_SerdeShape): + """Dataclass for DeleteFunctionOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3363,20 +5396,39 @@ class DeleteConnectionFunctionOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteConnectionGroupInput(_SerdeShape): - """Dataclass for DeleteConnectionGroupInput structure.""" +class DeleteKeyGroupInput(_SerdeShape): + """Dataclass for DeleteKeyGroupInput structure.""" id: str | None = ... - """The ID of the connection group to delete.""" + """ + The identifier of the key group that you are deleting. To get the + identifier, use `ListKeyGroups`. + """ if_match: str | None = ... """ - The value of the `ETag` header that you received when retrieving the - connection group to delete. + The version of the key group that you are deleting. The version is the + key group's `ETag` value. To get the `ETag`, use `GetKeyGroup` or + `GetKeyGroupConfig`. + """ + +class DeleteKeyGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteKeyGroupInput`.""" + + id: Required[str] + """ + The identifier of the key group that you are deleting. To get the + identifier, use `ListKeyGroups`. + """ + if_match: str | None + """ + The version of the key group that you are deleting. The version is the + key group's `ETag` value. To get the `ETag`, use `GetKeyGroup` or + `GetKeyGroupConfig`. """ @dataclass(kw_only=True) -class DeleteConnectionGroupOutput(_SerdeShape): - """Dataclass for DeleteConnectionGroupOutput structure.""" +class DeleteKeyGroupOutput(_SerdeShape): + """Dataclass for DeleteKeyGroupOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3387,23 +5439,25 @@ class DeleteConnectionGroupOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteContinuousDeploymentPolicyInput(_SerdeShape): - """Dataclass for DeleteContinuousDeploymentPolicyInput structure.""" +class DeleteKeyValueStoreInput(_SerdeShape): + """Dataclass for DeleteKeyValueStoreInput structure.""" - id: str | None = ... - """ - The identifier of the continuous deployment policy that you are - deleting. - """ + name: str | None = ... + """The name of the key value store.""" if_match: str | None = ... - """ - The current version (`ETag` value) of the continuous deployment policy - that you are deleting. - """ + """The key value store to delete, if a match occurs.""" + +class DeleteKeyValueStoreInputDict(TypedDict, total=False): + """Dictionary form of `DeleteKeyValueStoreInput`.""" + + name: Required[str] + """The name of the key value store.""" + if_match: Required[str] + """The key value store to delete, if a match occurs.""" @dataclass(kw_only=True) -class DeleteContinuousDeploymentPolicyOutput(_SerdeShape): - """Dataclass for DeleteContinuousDeploymentPolicyOutput structure.""" +class DeleteKeyValueStoreOutput(_SerdeShape): + """Dataclass for DeleteKeyValueStoreOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3414,61 +5468,62 @@ class DeleteContinuousDeploymentPolicyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteDistributionInput(_SerdeShape): - """ - This action deletes a web distribution. To delete a web distribution - using the CloudFront API, perform the following steps. - - **To delete a web distribution using the CloudFront API:** +class DeleteMonitoringSubscriptionInput(_SerdeShape): + """Dataclass for DeleteMonitoringSubscriptionInput structure.""" - 1. Disable the web distribution + distribution_id: str | None = ... + """The ID of the distribution that you are disabling metrics for.""" - 2. Submit a `GET Distribution Config` request to get the current - configuration and the `Etag` header for the distribution. +class DeleteMonitoringSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMonitoringSubscriptionInput`.""" - 3. Update the XML document that was returned in the response to your - `GET Distribution Config` request to change the value of `Enabled` - to `false`. + distribution_id: Required[str] + """The ID of the distribution that you are disabling metrics for.""" - 4. Submit a `PUT Distribution Config` request to update the - configuration for your distribution. In the request body, include - the XML document that you updated in Step 3. Set the value of the - HTTP `If-Match` header to the value of the `ETag` header that - CloudFront returned when you submitted the `GET Distribution Config` - request in Step 2. +@dataclass(kw_only=True) +class DeleteMonitoringSubscriptionOutput(_SerdeShape): + """Dataclass for DeleteMonitoringSubscriptionOutput structure.""" - 5. Review the response to the `PUT Distribution Config` request to - confirm that the distribution was successfully disabled. + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - 6. Submit a `GET Distribution` request to confirm that your changes - have propagated. When propagation is complete, the value of `Status` - is `Deployed`. +@dataclass(kw_only=True) +class DeleteOriginAccessControlInput(_SerdeShape): + """Dataclass for DeleteOriginAccessControlInput structure.""" - 7. Submit a `DELETE Distribution` request. Set the value of the HTTP - `If-Match` header to the value of the `ETag` header that CloudFront - returned when you submitted the `GET Distribution Config` request in - Step 6. + id: str | None = ... + """ + The unique identifier of the origin access control that you are + deleting. + """ + if_match: str | None = ... + """ + The current version (`ETag` value) of the origin access control that you + are deleting. + """ - 8. Review the response to your `DELETE Distribution` request to confirm - that the distribution was successfully deleted. +class DeleteOriginAccessControlInputDict(TypedDict, total=False): + """Dictionary form of `DeleteOriginAccessControlInput`.""" - For information about deleting a distribution using the CloudFront - console, see [Deleting a - Distribution](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowToDeleteDistribution.html) - in the *Amazon CloudFront Developer Guide*. + id: Required[str] """ - - id: str | None = ... - """The distribution ID.""" - if_match: str | None = ... + The unique identifier of the origin access control that you are + deleting. """ - The value of the `ETag` header that you received when you disabled the - distribution. For example: `E2QWRUHAPOMQZL`. + if_match: str | None + """ + The current version (`ETag` value) of the origin access control that you + are deleting. """ @dataclass(kw_only=True) -class DeleteDistributionOutput(_SerdeShape): - """Dataclass for DeleteDistributionOutput structure.""" +class DeleteOriginAccessControlOutput(_SerdeShape): + """Dataclass for DeleteOriginAccessControlOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3479,21 +5534,43 @@ class DeleteDistributionOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteDistributionTenantInput(_SerdeShape): - """Dataclass for DeleteDistributionTenantInput structure.""" +class DeleteOriginRequestPolicyInput(_SerdeShape): + """Dataclass for DeleteOriginRequestPolicyInput structure.""" id: str | None = ... - """The ID of the distribution tenant to delete.""" + """ + The unique identifier for the origin request policy that you are + deleting. To get the identifier, you can use + `ListOriginRequestPolicies`. + """ if_match: str | None = ... """ - The value of the `ETag` header that you received when retrieving the - distribution tenant. This value is returned in the response of the - `GetDistributionTenant` API operation. + The version of the origin request policy that you are deleting. The + version is the origin request policy's `ETag` value, which you can get + using `ListOriginRequestPolicies`, `GetOriginRequestPolicy`, or + `GetOriginRequestPolicyConfig`. + """ + +class DeleteOriginRequestPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteOriginRequestPolicyInput`.""" + + id: Required[str] + """ + The unique identifier for the origin request policy that you are + deleting. To get the identifier, you can use + `ListOriginRequestPolicies`. + """ + if_match: str | None + """ + The version of the origin request policy that you are deleting. The + version is the origin request policy's `ETag` value, which you can get + using `ListOriginRequestPolicies`, `GetOriginRequestPolicy`, or + `GetOriginRequestPolicyConfig`. """ @dataclass(kw_only=True) -class DeleteDistributionTenantOutput(_SerdeShape): - """Dataclass for DeleteDistributionTenantOutput structure.""" +class DeleteOriginRequestPolicyOutput(_SerdeShape): + """Dataclass for DeleteOriginRequestPolicyOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3504,20 +5581,31 @@ class DeleteDistributionTenantOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteFieldLevelEncryptionConfigInput(_SerdeShape): - """Dataclass for DeleteFieldLevelEncryptionConfigInput structure.""" +class DeletePublicKeyInput(_SerdeShape): + """Dataclass for DeletePublicKeyInput structure.""" id: str | None = ... - """The ID of the configuration you want to delete from CloudFront.""" + """The ID of the public key you want to remove from CloudFront.""" if_match: str | None = ... """ The value of the `ETag` header that you received when retrieving the - configuration identity to delete. For example: `E2QWRUHAPOMQZL`. + public key identity to delete. For example: `E2QWRUHAPOMQZL`. + """ + +class DeletePublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `DeletePublicKeyInput`.""" + + id: Required[str] + """The ID of the public key you want to remove from CloudFront.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + public key identity to delete. For example: `E2QWRUHAPOMQZL`. """ @dataclass(kw_only=True) -class DeleteFieldLevelEncryptionConfigOutput(_SerdeShape): - """Dataclass for DeleteFieldLevelEncryptionConfigOutput structure.""" +class DeletePublicKeyOutput(_SerdeShape): + """Dataclass for DeletePublicKeyOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3528,20 +5616,31 @@ class DeleteFieldLevelEncryptionConfigOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteFieldLevelEncryptionProfileInput(_SerdeShape): - """Dataclass for DeleteFieldLevelEncryptionProfileInput structure.""" +class DeleteRealtimeLogConfigInput(_SerdeShape): + """Dataclass for DeleteRealtimeLogConfigInput structure.""" - id: str | None = ... - """Request the ID of the profile you want to delete from CloudFront.""" - if_match: str | None = ... + name: str | None = ... + """The name of the real-time log configuration to delete.""" + arn: str | None = ... """ - The value of the `ETag` header that you received when retrieving the - profile to delete. For example: `E2QWRUHAPOMQZL`. + The Amazon Resource Name (ARN) of the real-time log configuration to + delete. + """ + +class DeleteRealtimeLogConfigInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRealtimeLogConfigInput`.""" + + name: str | None + """The name of the real-time log configuration to delete.""" + arn: str | None + """ + The Amazon Resource Name (ARN) of the real-time log configuration to + delete. """ @dataclass(kw_only=True) -class DeleteFieldLevelEncryptionProfileOutput(_SerdeShape): - """Dataclass for DeleteFieldLevelEncryptionProfileOutput structure.""" +class DeleteRealtimeLogConfigOutput(_SerdeShape): + """Dataclass for DeleteRealtimeLogConfigOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3552,20 +5651,27 @@ class DeleteFieldLevelEncryptionProfileOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteFunctionInput(_SerdeShape): - """Dataclass for DeleteFunctionInput structure.""" +class DeleteResourcePolicyInput(_SerdeShape): + """Dataclass for DeleteResourcePolicyInput structure.""" - name: str | None = ... - """The name of the function that you are deleting.""" - if_match: str | None = ... + resource_arn: str | None = ... """ - The current version (`ETag` value) of the function that you are - deleting, which you can get using `DescribeFunction`. + The Amazon Resource Name (ARN) of the CloudFront resource for which the + resource policy should be deleted. + """ + +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the CloudFront resource for which the + resource policy should be deleted. """ @dataclass(kw_only=True) -class DeleteFunctionOutput(_SerdeShape): - """Dataclass for DeleteFunctionOutput structure.""" +class DeleteResourcePolicyOutput(_SerdeShape): + """Dataclass for DeleteResourcePolicyOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3576,24 +5682,45 @@ class DeleteFunctionOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteKeyGroupInput(_SerdeShape): - """Dataclass for DeleteKeyGroupInput structure.""" +class DeleteResponseHeadersPolicyInput(_SerdeShape): + """Dataclass for DeleteResponseHeadersPolicyInput structure.""" id: str | None = ... """ - The identifier of the key group that you are deleting. To get the - identifier, use `ListKeyGroups`. + The identifier for the response headers policy that you are deleting. + + To get the identifier, you can use `ListResponseHeadersPolicies`. """ if_match: str | None = ... """ - The version of the key group that you are deleting. The version is the - key group's `ETag` value. To get the `ETag`, use `GetKeyGroup` or - `GetKeyGroupConfig`. + The version of the response headers policy that you are deleting. + + The version is the response headers policy's `ETag` value, which you + can get using `ListResponseHeadersPolicies`, `GetResponseHeadersPolicy`, + or `GetResponseHeadersPolicyConfig`. + """ + +class DeleteResponseHeadersPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResponseHeadersPolicyInput`.""" + + id: Required[str] + """ + The identifier for the response headers policy that you are deleting. + + To get the identifier, you can use `ListResponseHeadersPolicies`. + """ + if_match: str | None + """ + The version of the response headers policy that you are deleting. + + The version is the response headers policy's `ETag` value, which you + can get using `ListResponseHeadersPolicies`, `GetResponseHeadersPolicy`, + or `GetResponseHeadersPolicyConfig`. """ @dataclass(kw_only=True) -class DeleteKeyGroupOutput(_SerdeShape): - """Dataclass for DeleteKeyGroupOutput structure.""" +class DeleteResponseHeadersPolicyOutput(_SerdeShape): + """Dataclass for DeleteResponseHeadersPolicyOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3604,17 +5731,31 @@ class DeleteKeyGroupOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteKeyValueStoreInput(_SerdeShape): - """Dataclass for DeleteKeyValueStoreInput structure.""" +class DeleteStreamingDistributionInput(_SerdeShape): + """The request to delete a streaming distribution.""" - name: str | None = ... - """The name of the key value store.""" + id: str | None = ... + """The distribution ID.""" if_match: str | None = ... - """The key value store to delete, if a match occurs.""" + """ + The value of the `ETag` header that you received when you disabled the + streaming distribution. For example: `E2QWRUHAPOMQZL`. + """ + +class DeleteStreamingDistributionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteStreamingDistributionInput`.""" + + id: Required[str] + """The distribution ID.""" + if_match: str | None + """ + The value of the `ETag` header that you received when you disabled the + streaming distribution. For example: `E2QWRUHAPOMQZL`. + """ @dataclass(kw_only=True) -class DeleteKeyValueStoreOutput(_SerdeShape): - """Dataclass for DeleteKeyValueStoreOutput structure.""" +class DeleteStreamingDistributionOutput(_SerdeShape): + """Dataclass for DeleteStreamingDistributionOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3625,15 +5766,25 @@ class DeleteKeyValueStoreOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteMonitoringSubscriptionInput(_SerdeShape): - """Dataclass for DeleteMonitoringSubscriptionInput structure.""" +class DeleteTrustStoreInput(_SerdeShape): + """Dataclass for DeleteTrustStoreInput structure.""" - distribution_id: str | None = ... - """The ID of the distribution that you are disabling metrics for.""" + id: str | None = ... + """The trust store's ID.""" + if_match: str | None = ... + """The current version (`ETag` value) of the trust store you are deleting.""" + +class DeleteTrustStoreInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTrustStoreInput`.""" + + id: Required[str] + """The trust store's ID.""" + if_match: Required[str] + """The current version (`ETag` value) of the trust store you are deleting.""" @dataclass(kw_only=True) -class DeleteMonitoringSubscriptionOutput(_SerdeShape): - """Dataclass for DeleteMonitoringSubscriptionOutput structure.""" +class DeleteTrustStoreOutput(_SerdeShape): + """Dataclass for DeleteTrustStoreOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -3644,24 +5795,36 @@ class DeleteMonitoringSubscriptionOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteOriginAccessControlInput(_SerdeShape): - """Dataclass for DeleteOriginAccessControlInput structure.""" +class DeleteVpcOriginInput(_SerdeShape): + """Dataclass for DeleteVpcOriginInput structure.""" id: str | None = ... + """The VPC origin ID.""" + if_match: str | None = ... """ - The unique identifier of the origin access control that you are - deleting. + The version identifier of the VPC origin to delete. This is the `ETag` + value returned in the response to GetVpcOrigin. """ - if_match: str | None = ... + +class DeleteVpcOriginInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcOriginInput`.""" + + id: Required[str] + """The VPC origin ID.""" + if_match: Required[str] """ - The current version (`ETag` value) of the origin access control that you - are deleting. + The version identifier of the VPC origin to delete. This is the `ETag` + value returned in the response to GetVpcOrigin. """ @dataclass(kw_only=True) -class DeleteOriginAccessControlOutput(_SerdeShape): - """Dataclass for DeleteOriginAccessControlOutput structure.""" +class DeleteVpcOriginOutput(_SerdeShape): + """Dataclass for DeleteVpcOriginOutput structure.""" + vpc_origin: VpcOrigin | None = ... + """The VPC origin.""" + e_tag: str | None = ... + """The VPC origin ETag.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3671,27 +5834,33 @@ class DeleteOriginAccessControlOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteOriginRequestPolicyInput(_SerdeShape): - """Dataclass for DeleteOriginRequestPolicyInput structure.""" +class DescribeConnectionFunctionInput(_SerdeShape): + """Dataclass for DescribeConnectionFunctionInput structure.""" - id: str | None = ... - """ - The unique identifier for the origin request policy that you are - deleting. To get the identifier, you can use - `ListOriginRequestPolicies`. - """ - if_match: str | None = ... - """ - The version of the origin request policy that you are deleting. The - version is the origin request policy's `ETag` value, which you can get - using `ListOriginRequestPolicies`, `GetOriginRequestPolicy`, or - `GetOriginRequestPolicyConfig`. - """ + identifier: str | None = ... + """The connection function's identifier.""" + stage: str | None = ... + """The connection function's stage.""" + +class DescribeConnectionFunctionInputDict(TypedDict, total=False): + """Dictionary form of `DescribeConnectionFunctionInput`.""" + + identifier: Required[str] + """The connection function's identifier.""" + stage: str | None + """The connection function's stage.""" @dataclass(kw_only=True) -class DeleteOriginRequestPolicyOutput(_SerdeShape): - """Dataclass for DeleteOriginRequestPolicyOutput structure.""" +class DescribeConnectionFunctionOutput(_SerdeShape): + """Dataclass for DescribeConnectionFunctionOutput structure.""" + connection_function_summary: ConnectionFunctionSummary | None = ... + """The connection function's summary.""" + e_tag: str | None = ... + """ + The version identifier for the current version of the connection + function. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3701,21 +5870,36 @@ class DeleteOriginRequestPolicyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeletePublicKeyInput(_SerdeShape): - """Dataclass for DeletePublicKeyInput structure.""" +class DescribeFunctionInput(_SerdeShape): + """Dataclass for DescribeFunctionInput structure.""" - id: str | None = ... - """The ID of the public key you want to remove from CloudFront.""" - if_match: str | None = ... - """ - The value of the `ETag` header that you received when retrieving the - public key identity to delete. For example: `E2QWRUHAPOMQZL`. - """ + name: str | None = ... + """The name of the function that you are getting information about.""" + stage: str | None = ... + """The function's stage, either `DEVELOPMENT` or `LIVE`.""" + +class DescribeFunctionInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFunctionInput`.""" + + name: Required[str] + """The name of the function that you are getting information about.""" + stage: str | None + """The function's stage, either `DEVELOPMENT` or `LIVE`.""" @dataclass(kw_only=True) -class DeletePublicKeyOutput(_SerdeShape): - """Dataclass for DeletePublicKeyOutput structure.""" +class DescribeFunctionOutput(_SerdeShape): + """Dataclass for DescribeFunctionOutput structure.""" + function_summary: FunctionSummary | None = ... + """ + Contains configuration information and metadata about a CloudFront + function. + """ + e_tag: str | None = ... + """ + The version identifier for the current version of the CloudFront + function. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3725,21 +5909,26 @@ class DeletePublicKeyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteRealtimeLogConfigInput(_SerdeShape): - """Dataclass for DeleteRealtimeLogConfigInput structure.""" +class DescribeKeyValueStoreInput(_SerdeShape): + """Dataclass for DescribeKeyValueStoreInput structure.""" name: str | None = ... - """The name of the real-time log configuration to delete.""" - arn: str | None = ... - """ - The Amazon Resource Name (ARN) of the real-time log configuration to - delete. - """ + """The name of the key value store.""" + +class DescribeKeyValueStoreInputDict(TypedDict, total=False): + """Dictionary form of `DescribeKeyValueStoreInput`.""" + + name: Required[str] + """The name of the key value store.""" @dataclass(kw_only=True) -class DeleteRealtimeLogConfigOutput(_SerdeShape): - """Dataclass for DeleteRealtimeLogConfigOutput structure.""" +class DescribeKeyValueStoreOutput(_SerdeShape): + """Dataclass for DescribeKeyValueStoreOutput structure.""" + key_value_store: KeyValueStore | None = ... + """The resulting key value store.""" + e_tag: str | None = ... + """The `ETag` of the resulting key value store.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3749,19 +5938,38 @@ class DeleteRealtimeLogConfigOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteResourcePolicyInput(_SerdeShape): - """Dataclass for DeleteResourcePolicyInput structure.""" +class DisassociateDistributionTenantWebACLInput(_SerdeShape): + """Dataclass for DisassociateDistributionTenantWebACLInput structure.""" - resource_arn: str | None = ... + id: str | None = ... + """The ID of the distribution tenant.""" + if_match: str | None = ... """ - The Amazon Resource Name (ARN) of the CloudFront resource for which the - resource policy should be deleted. + The current version of the distribution tenant that you're + disassociating from the WAF web ACL. This is the `ETag` value returned + in the response to the `GetDistributionTenant` API operation. + """ + +class DisassociateDistributionTenantWebACLInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateDistributionTenantWebACLInput`.""" + + id: Required[str] + """The ID of the distribution tenant.""" + if_match: str | None + """ + The current version of the distribution tenant that you're + disassociating from the WAF web ACL. This is the `ETag` value returned + in the response to the `GetDistributionTenant` API operation. """ @dataclass(kw_only=True) -class DeleteResourcePolicyOutput(_SerdeShape): - """Dataclass for DeleteResourcePolicyOutput structure.""" +class DisassociateDistributionTenantWebACLOutput(_SerdeShape): + """Dataclass for DisassociateDistributionTenantWebACLOutput structure.""" + id: str | None = ... + """The ID of the distribution tenant.""" + e_tag: str | None = ... + """The current version of the distribution tenant.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3771,28 +5979,36 @@ class DeleteResourcePolicyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteResponseHeadersPolicyInput(_SerdeShape): - """Dataclass for DeleteResponseHeadersPolicyInput structure.""" +class DisassociateDistributionWebACLInput(_SerdeShape): + """Dataclass for DisassociateDistributionWebACLInput structure.""" id: str | None = ... - """ - The identifier for the response headers policy that you are deleting. - - To get the identifier, you can use `ListResponseHeadersPolicies`. - """ + """The ID of the distribution.""" if_match: str | None = ... """ - The version of the response headers policy that you are deleting. + The value of the `ETag` header that you received when retrieving the + distribution that you're disassociating from the WAF web ACL. + """ - The version is the response headers policy's `ETag` value, which you - can get using `ListResponseHeadersPolicies`, `GetResponseHeadersPolicy`, - or `GetResponseHeadersPolicyConfig`. +class DisassociateDistributionWebACLInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateDistributionWebACLInput`.""" + + id: Required[str] + """The ID of the distribution.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + distribution that you're disassociating from the WAF web ACL. """ @dataclass(kw_only=True) -class DeleteResponseHeadersPolicyOutput(_SerdeShape): - """Dataclass for DeleteResponseHeadersPolicyOutput structure.""" +class DisassociateDistributionWebACLOutput(_SerdeShape): + """Dataclass for DisassociateDistributionWebACLOutput structure.""" + id: str | None = ... + """The ID of the distribution.""" + e_tag: str | None = ... + """The current version of the distribution.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3802,20 +6018,67 @@ class DeleteResponseHeadersPolicyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteStreamingDistributionInput(_SerdeShape): - """The request to delete a streaming distribution.""" +class Distribution(_SerdeShape): + """ + A distribution tells CloudFront where you want content to be delivered + from, and the details about how to track and manage content delivery. + """ - id: str | None = ... - """The distribution ID.""" - if_match: str | None = ... + id: str + """The distribution's identifier. For example: `E1U5RQF7T870K0`.""" + arn: str + """The distribution's Amazon Resource Name (ARN).""" + status: str """ - The value of the `ETag` header that you received when you disabled the - streaming distribution. For example: `E2QWRUHAPOMQZL`. + The distribution's status. When the status is `Deployed`, the + distribution's information is fully propagated to all CloudFront edge + locations. + """ + last_modified_time: datetime + """The date and time when the distribution was last modified.""" + in_progress_invalidation_batches: int + """The number of invalidation batches currently in progress.""" + domain_name: str + """ + The distribution's CloudFront domain name. For example: + `d111111abcdef8.cloudfront.net`. + """ + active_trusted_signers: ActiveTrustedSigners | None = ... + """ + Warning: + We recommend using `TrustedKeyGroups` instead of `TrustedSigners`. + + This field contains a list of Amazon Web Services account IDs and the + active CloudFront key pairs in each account that CloudFront can use to + verify the signatures of signed URLs or signed cookies. + """ + active_trusted_key_groups: ActiveTrustedKeyGroups | None = ... + """ + This field contains a list of key groups and the public keys in each key + group that CloudFront can use to verify the signatures of signed URLs or + signed cookies. + """ + distribution_config: DistributionConfig + """The distribution's configuration.""" + alias_icp_recordals: list[AliasICPRecordal] | None = ... + """ + Amazon Web Services services in China customers must file for an + Internet Content Provider (ICP) recordal if they want to serve content + publicly on an alternate domain name, also known as a CNAME, that + they've added to CloudFront. AliasICPRecordal provides the ICP recordal + status for CNAMEs associated with distributions. + + For more information about ICP recordals, see [Signup, Accounts, and + Credentials](https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html) + in *Getting Started with Amazon Web Services services in China*. """ @dataclass(kw_only=True) -class DeleteStreamingDistributionOutput(_SerdeShape): - """Dataclass for DeleteStreamingDistributionOutput structure.""" +class DistributionAlreadyExists(ServiceError, _SerdeShape): + """ + The caller reference you attempted to create the distribution with is + associated with another distribution. + """ response_metadata: ResponseMetadata = ... """ @@ -3826,269 +6089,317 @@ class DeleteStreamingDistributionOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DeleteTrustStoreInput(_SerdeShape): - """Dataclass for DeleteTrustStoreInput structure.""" - - id: str | None = ... - """The trust store's ID.""" - if_match: str | None = ... - """The current version (`ETag` value) of the trust store you are deleting.""" - -@dataclass(kw_only=True) -class DeleteTrustStoreOutput(_SerdeShape): - """Dataclass for DeleteTrustStoreOutput structure.""" +class DistributionConfig(_SerdeShape): + """A distribution configuration.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + caller_reference: str """ + A unique value (for example, a date-time stamp) that ensures that the + request can't be replayed. -@dataclass(kw_only=True) -class DeleteVpcOriginInput(_SerdeShape): - """Dataclass for DeleteVpcOriginInput structure.""" + If the value of `CallerReference` is new (regardless of the content of + the `DistributionConfig` object), CloudFront creates a new distribution. - id: str | None = ... - """The VPC origin ID.""" - if_match: str | None = ... + If `CallerReference` is a value that you already sent in a previous + request to create a distribution, CloudFront returns a + `DistributionAlreadyExists` error. """ - The version identifier of the VPC origin to delete. This is the `ETag` - value returned in the response to GetVpcOrigin. + aliases: Aliases | None = ... """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. -@dataclass(kw_only=True) -class DeleteVpcOriginOutput(_SerdeShape): - """Dataclass for DeleteVpcOriginOutput structure.""" - - vpc_origin: VpcOrigin | None = ... - """The VPC origin.""" - e_tag: str | None = ... - """The VPC origin ETag.""" - response_metadata: ResponseMetadata = ... + A complex type that contains information about CNAMEs (alternate domain + names), if any, for this distribution. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + default_root_object: str | None = ... """ + When a viewer requests the root URL for your distribution, the default + root object is the object that you want CloudFront to request from your + origin. For example, if your root URL is `https://www.example.com`, you + can specify CloudFront to return the `index.html` file as the default + root object. You can specify a default root object so that viewers see a + specific file or object, instead of another object in your distribution + (for example, `https://www.example.com/product-description.html`). A + default root object avoids exposing the contents of your distribution. -@dataclass(kw_only=True) -class DescribeConnectionFunctionInput(_SerdeShape): - """Dataclass for DescribeConnectionFunctionInput structure.""" + You can specify the object name or a path to the object name (for + example, `index.html` or `exampleFolderName/index.html`). Your string + can't begin with a forward slash (`/`). Only specify the object name or + the path to the object. - identifier: str | None = ... - """The connection function's identifier.""" - stage: str | None = ... - """The connection function's stage.""" + If you don't want to specify a default root object when you create a + distribution, include an empty `DefaultRootObject` element. -@dataclass(kw_only=True) -class DescribeConnectionFunctionOutput(_SerdeShape): - """Dataclass for DescribeConnectionFunctionOutput structure.""" + To delete the default root object from an existing distribution, update + the distribution configuration and include an empty `DefaultRootObject` + element. - connection_function_summary: ConnectionFunctionSummary | None = ... - """The connection function's summary.""" - e_tag: str | None = ... + To replace the default root object, update the distribution + configuration and specify the new object. + + For more information about the default root object, see [Specify a + default root + object](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html) + in the *Amazon CloudFront Developer Guide*. """ - The version identifier for the current version of the connection - function. + origins: Origins """ - response_metadata: ResponseMetadata = ... + A complex type that contains information about origins for this + distribution. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + origin_groups: OriginGroups | None = ... """ + A complex type that contains information about origin groups for this + distribution. + """ + default_cache_behavior: DefaultCacheBehavior + """ + A complex type that describes the default cache behavior if you don't + specify a `CacheBehavior` element or if files don't match any of the + values of `PathPattern` in `CacheBehavior` elements. You must create + exactly one default cache behavior. + """ + cache_behaviors: CacheBehaviors | None = ... + """A complex type that contains zero or more `CacheBehavior` elements.""" + custom_error_responses: CustomErrorResponses | None = ... + """ + A complex type that controls the following: -@dataclass(kw_only=True) -class DescribeFunctionInput(_SerdeShape): - """Dataclass for DescribeFunctionInput structure.""" - - name: str | None = ... - """The name of the function that you are getting information about.""" - stage: str | None = ... - """The function's stage, either `DEVELOPMENT` or `LIVE`.""" + - Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range + with custom error messages before returning the response to the + viewer. -@dataclass(kw_only=True) -class DescribeFunctionOutput(_SerdeShape): - """Dataclass for DescribeFunctionOutput structure.""" + - How long CloudFront caches HTTP status codes in the 4xx and 5xx range. - function_summary: FunctionSummary | None = ... + For more information about custom error pages, see [Customizing Error + Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) + in the *Amazon CloudFront Developer Guide*. """ - Contains configuration information and metadata about a CloudFront - function. + comment: str """ - e_tag: str | None = ... + A comment to describe the distribution. The comment cannot be longer + than 128 characters. """ - The version identifier for the current version of the CloudFront - function. + logging: LoggingConfig | None = ... """ - response_metadata: ResponseMetadata = ... + A complex type that controls whether access logs are written for the + distribution. + + For more information about logging, see [Access + Logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html) + in the *Amazon CloudFront Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + price_class: str | None = ... """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. -@dataclass(kw_only=True) -class DescribeKeyValueStoreInput(_SerdeShape): - """Dataclass for DescribeKeyValueStoreInput structure.""" - - name: str | None = ... - """The name of the key value store.""" + The price class that corresponds with the maximum price that you want to + pay for CloudFront service. If you specify `PriceClass_All`, CloudFront + responds to requests for your objects from all CloudFront edge + locations. -@dataclass(kw_only=True) -class DescribeKeyValueStoreOutput(_SerdeShape): - """Dataclass for DescribeKeyValueStoreOutput structure.""" + If you specify a price class other than `PriceClass_All`, CloudFront + serves your objects from the CloudFront edge location that has the + lowest latency among the edge locations in your price class. Viewers who + are in or near regions that are excluded from your specified price class + may encounter slower performance. - key_value_store: KeyValueStore | None = ... - """The resulting key value store.""" - e_tag: str | None = ... - """The `ETag` of the resulting key value store.""" - response_metadata: ResponseMetadata = ... + For more information about price classes, see [Choosing the Price Class + for a CloudFront + Distribution](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html) + in the *Amazon CloudFront Developer Guide*. For information about + CloudFront pricing, including how price classes (such as Price Class + 100) map to CloudFront regions, see [Amazon CloudFront + Pricing](http://aws.amazon.com/cloudfront/pricing/). """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + enabled: bool + """From this field, you can enable or disable the selected distribution.""" + viewer_certificate: ViewerCertificate | None = ... """ - -@dataclass(kw_only=True) -class DisassociateDistributionTenantWebACLInput(_SerdeShape): - """Dataclass for DisassociateDistributionTenantWebACLInput structure.""" - - id: str | None = ... - """The ID of the distribution tenant.""" - if_match: str | None = ... + A complex type that determines the distribution's SSL/TLS configuration + for communicating with viewers. """ - The current version of the distribution tenant that you're - disassociating from the WAF web ACL. This is the `ETag` value returned - in the response to the `GetDistributionTenant` API operation. + restrictions: Restrictions | None = ... + """ + A complex type that identifies ways in which you want to restrict + distribution of your content. + """ + web_acl_id: str | None = ... """ + Note: + Multi-tenant distributions only support WAF V2 web ACLs. -@dataclass(kw_only=True) -class DisassociateDistributionTenantWebACLOutput(_SerdeShape): - """Dataclass for DisassociateDistributionTenantWebACLOutput structure.""" + A unique identifier that specifies the WAF web ACL, if any, to associate + with this distribution. To specify a web ACL created using the latest + version of WAF, use the ACL ARN, for example + `arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`. + To specify a web ACL created using WAF Classic, use the ACL ID, for + example `a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`. - id: str | None = ... - """The ID of the distribution tenant.""" - e_tag: str | None = ... - """The current version of the distribution tenant.""" - response_metadata: ResponseMetadata = ... + WAF is a web application firewall that lets you monitor the HTTP and + HTTPS requests that are forwarded to CloudFront, and lets you control + access to your content. Based on conditions that you specify, such as + the IP addresses that requests originate from or the values of query + strings, CloudFront responds to requests either with the requested + content or with an HTTP 403 status code (Forbidden). You can also + configure CloudFront to return a custom error page when a request is + blocked. For more information about WAF, see the [WAF Developer + Guide](https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html). """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + http_version: str | None = ... """ + (Optional) Specify the HTTP version(s) that you want viewers to use to + communicate with CloudFront. The default value for new web distributions + is `http2`. Viewers that don't support HTTP/2 automatically use an + earlier HTTP version. -@dataclass(kw_only=True) -class DisassociateDistributionWebACLInput(_SerdeShape): - """Dataclass for DisassociateDistributionWebACLInput structure.""" + For viewers and CloudFront to use HTTP/2, viewers must support TLSv1.2 + or later, and must support Server Name Indication (SNI). - id: str | None = ... - """The ID of the distribution.""" - if_match: str | None = ... + For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 + and Server Name Indication (SNI). CloudFront supports HTTP/3 connection + migration to allow the viewer to switch networks without losing + connection. For more information about connection migration, see + [Connection + Migration](https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration) + at RFC 9000. For more information about supported TLSv1.3 ciphers, see + [Supported protocols and ciphers between viewers and + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html). """ - The value of the `ETag` header that you received when retrieving the - distribution that you're disassociating from the WAF web ACL. + is_ipv6_enabled: bool | None = ... """ + Note: + To use this field for a multi-tenant distribution, use a connection + group instead. For more information, see + [ConnectionGroup](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ConnectionGroup.html). -@dataclass(kw_only=True) -class DisassociateDistributionWebACLOutput(_SerdeShape): - """Dataclass for DisassociateDistributionWebACLOutput structure.""" + If you want CloudFront to respond to IPv6 DNS requests with an IPv6 + address for your distribution, specify `true`. If you specify `false`, + CloudFront responds to IPv6 DNS requests with the DNS response code + `NOERROR` and with no IP addresses. This allows viewers to submit a + second request, for an IPv4 address for your distribution. - id: str | None = ... - """The ID of the distribution.""" - e_tag: str | None = ... - """The current version of the distribution.""" - response_metadata: ResponseMetadata = ... + In general, you should enable IPv6 if you have users on IPv6 networks + who want to access your content. However, if you're using signed URLs + or signed cookies to restrict access to your content, and if you're + using a custom policy that includes the `IpAddress` parameter to + restrict the IP addresses that can access your content, don't enable + IPv6. If you want to restrict access to some content by IP address and + not restrict access to other content (or restrict access but not by IP + address), you can create two distributions. For more information, see + [Creating a Signed URL Using a Custom + Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html) + in the *Amazon CloudFront Developer Guide*. + + If you're using an Route 53 Amazon Web Services Integration alias + resource record set to route traffic to your CloudFront distribution, + you need to create a second alias resource record set when both of the + following are true: + + - You enable IPv6 for the distribution + + - You're using alternate domain names in the URLs for your objects + + For more information, see [Routing Traffic to an Amazon CloudFront Web + Distribution by Using Your Domain + Name](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html) + in the *Route 53 Amazon Web Services Integration Developer Guide*. + + If you created a CNAME resource record set, either with Route 53 Amazon + Web Services Integration or with another DNS service, you don't need to + make any changes. A CNAME record will route traffic to your distribution + regardless of the IP address format of the viewer request. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + continuous_deployment_policy_id: str | None = ... """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. -@dataclass(kw_only=True) -class Distribution(_SerdeShape): + The identifier of a continuous deployment policy. For more information, + see `CreateContinuousDeploymentPolicy`. """ - A distribution tells CloudFront where you want content to be delivered - from, and the details about how to track and manage content delivery. + staging: bool | None = ... """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - id: str - """The distribution's identifier. For example: `E1U5RQF7T870K0`.""" - arn: str - """The distribution's Amazon Resource Name (ARN).""" - status: str - """ - The distribution's status. When the status is `Deployed`, the - distribution's information is fully propagated to all CloudFront edge - locations. + A Boolean that indicates whether this is a staging distribution. When + this value is `true`, this is a staging distribution. When this value is + `false`, this is not a staging distribution. """ - last_modified_time: datetime - """The date and time when the distribution was last modified.""" - in_progress_invalidation_batches: int - """The number of invalidation batches currently in progress.""" - domain_name: str + anycast_ip_list_id: str | None = ... """ - The distribution's CloudFront domain name. For example: - `d111111abcdef8.cloudfront.net`. + Note: + To use this field for a multi-tenant distribution, use a connection + group instead. For more information, see + [ConnectionGroup](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ConnectionGroup.html). + + ID of the Anycast static IP list that is associated with the + distribution. """ - active_trusted_signers: ActiveTrustedSigners | None = ... + tenant_config: TenantConfig | None = ... """ - Warning: - We recommend using `TrustedKeyGroups` instead of `TrustedSigners`. + Note: + This field only supports multi-tenant distributions. You can't specify + this field for standard distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. - This field contains a list of Amazon Web Services account IDs and the - active CloudFront key pairs in each account that CloudFront can use to - verify the signatures of signed URLs or signed cookies. - """ - active_trusted_key_groups: ActiveTrustedKeyGroups | None = ... + A distribution tenant configuration. """ - This field contains a list of key groups and the public keys in each key - group that CloudFront can use to verify the signatures of signed URLs or - signed cookies. + connection_mode: str | None = ... """ - distribution_config: DistributionConfig - """The distribution's configuration.""" - alias_icp_recordals: list[AliasICPRecordal] | None = ... + This field specifies whether the connection mode is through a standard + distribution (direct) or a multi-tenant distribution with distribution + tenants (tenant-only). """ - Amazon Web Services services in China customers must file for an - Internet Content Provider (ICP) recordal if they want to serve content - publicly on an alternate domain name, also known as a CNAME, that - they've added to CloudFront. AliasICPRecordal provides the ICP recordal - status for CNAMEs associated with distributions. - - For more information about ICP recordals, see [Signup, Accounts, and - Credentials](https://docs.amazonaws.cn/en_us/aws/latest/userguide/accounts-and-credentials.html) - in *Getting Started with Amazon Web Services services in China*. + viewer_mtls_config: ViewerMtlsConfig | None = ... + """The distribution's viewer mTLS configuration.""" + connection_function_association: ConnectionFunctionAssociation | None = ... + """The distribution's connection function association.""" + cache_tag_config: CacheTagConfig | None = ... """ + Configuration for cache tag extraction from origin responses. When + specified, CloudFront reads the header named in `HeaderName` from origin + responses and stores the comma-separated values as cache tags on the + object. -@dataclass(kw_only=True) -class DistributionAlreadyExists(ServiceError, _SerdeShape): - """ - The caller reference you attempted to create the distribution with is - associated with another distribution. - """ + Distributions without `CacheTagConfig` do not extract tags. When + `CacheTagConfig` is removed from a distribution via + `UpdateDistribution`, CloudFront stops extracting tags from origin + responses. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Note: + Changing the `HeaderName` on an existing distribution does not + retroactively affect previously cached objects. Tag-based invalidations + will not apply to objects already cached using a previous header. To + ensure tag invalidations function after updating the header name, use + path-based invalidations to recache all objects that use cache tags. """ -@dataclass(kw_only=True) -class DistributionConfig(_SerdeShape): - """A distribution configuration.""" +class DistributionConfigDict(TypedDict, total=False): + """Dictionary form of `DistributionConfig`.""" - caller_reference: str + caller_reference: Required[str] """ A unique value (for example, a date-time stamp) that ensures that the request can't be replayed. @@ -4100,7 +6411,7 @@ class DistributionConfig(_SerdeShape): request to create a distribution, CloudFront returns a `DistributionAlreadyExists` error. """ - aliases: Aliases | None = ... + aliases: Aliases | AliasesDict | None """ Note: This field only supports standard distributions. You can't specify this @@ -4112,7 +6423,7 @@ class DistributionConfig(_SerdeShape): A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution. """ - default_root_object: str | None = ... + default_root_object: str | None """ When a viewer requests the root URL for your distribution, the default root object is the object that you want CloudFront to request from your @@ -4143,26 +6454,26 @@ class DistributionConfig(_SerdeShape): object](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html) in the *Amazon CloudFront Developer Guide*. """ - origins: Origins + origins: Required[Origins | OriginsDict] """ A complex type that contains information about origins for this distribution. """ - origin_groups: OriginGroups | None = ... + origin_groups: OriginGroups | OriginGroupsDict | None """ A complex type that contains information about origin groups for this distribution. """ - default_cache_behavior: DefaultCacheBehavior + default_cache_behavior: Required[DefaultCacheBehavior | DefaultCacheBehaviorDict] """ A complex type that describes the default cache behavior if you don't specify a `CacheBehavior` element or if files don't match any of the values of `PathPattern` in `CacheBehavior` elements. You must create exactly one default cache behavior. """ - cache_behaviors: CacheBehaviors | None = ... + cache_behaviors: CacheBehaviors | CacheBehaviorsDict | None """A complex type that contains zero or more `CacheBehavior` elements.""" - custom_error_responses: CustomErrorResponses | None = ... + custom_error_responses: CustomErrorResponses | CustomErrorResponsesDict | None """ A complex type that controls the following: @@ -4176,12 +6487,12 @@ class DistributionConfig(_SerdeShape): Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the *Amazon CloudFront Developer Guide*. """ - comment: str + comment: Required[str] """ A comment to describe the distribution. The comment cannot be longer than 128 characters. """ - logging: LoggingConfig | None = ... + logging: LoggingConfig | LoggingConfigDict | None """ A complex type that controls whether access logs are written for the distribution. @@ -4190,7 +6501,7 @@ class DistributionConfig(_SerdeShape): Logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html) in the *Amazon CloudFront Developer Guide*. """ - price_class: str | None = ... + price_class: str | None """ Note: This field only supports standard distributions. You can't specify this @@ -4218,19 +6529,19 @@ class DistributionConfig(_SerdeShape): 100) map to CloudFront regions, see [Amazon CloudFront Pricing](http://aws.amazon.com/cloudfront/pricing/). """ - enabled: bool + enabled: Required[bool] """From this field, you can enable or disable the selected distribution.""" - viewer_certificate: ViewerCertificate | None = ... + viewer_certificate: ViewerCertificate | ViewerCertificateDict | None """ A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers. """ - restrictions: Restrictions | None = ... + restrictions: Restrictions | RestrictionsDict | None """ A complex type that identifies ways in which you want to restrict distribution of your content. """ - web_acl_id: str | None = ... + web_acl_id: str | None """ Note: Multi-tenant distributions only support WAF V2 web ACLs. @@ -4252,7 +6563,7 @@ class DistributionConfig(_SerdeShape): blocked. For more information about WAF, see the [WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html). """ - http_version: str | None = ... + http_version: str | None """ (Optional) Specify the HTTP version(s) that you want viewers to use to communicate with CloudFront. The default value for new web distributions @@ -4272,7 +6583,7 @@ class DistributionConfig(_SerdeShape): [Supported protocols and ciphers between viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html). """ - is_ipv6_enabled: bool | None = ... + is_ipv6_enabled: bool | None """ Note: To use this field for a multi-tenant distribution, use a connection @@ -4316,7 +6627,7 @@ class DistributionConfig(_SerdeShape): make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request. """ - continuous_deployment_policy_id: str | None = ... + continuous_deployment_policy_id: str | None """ Note: This field only supports standard distributions. You can't specify this @@ -4328,7 +6639,7 @@ class DistributionConfig(_SerdeShape): The identifier of a continuous deployment policy. For more information, see `CreateContinuousDeploymentPolicy`. """ - staging: bool | None = ... + staging: bool | None """ Note: This field only supports standard distributions. You can't specify this @@ -4341,7 +6652,7 @@ class DistributionConfig(_SerdeShape): this value is `true`, this is a staging distribution. When this value is `false`, this is not a staging distribution. """ - anycast_ip_list_id: str | None = ... + anycast_ip_list_id: str | None """ Note: To use this field for a multi-tenant distribution, use a connection @@ -4351,7 +6662,7 @@ class DistributionConfig(_SerdeShape): ID of the Anycast static IP list that is associated with the distribution. """ - tenant_config: TenantConfig | None = ... + tenant_config: TenantConfig | TenantConfigDict | None """ Note: This field only supports multi-tenant distributions. You can't specify @@ -4362,17 +6673,19 @@ class DistributionConfig(_SerdeShape): A distribution tenant configuration. """ - connection_mode: str | None = ... + connection_mode: str | None """ This field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants (tenant-only). """ - viewer_mtls_config: ViewerMtlsConfig | None = ... + viewer_mtls_config: ViewerMtlsConfig | ViewerMtlsConfigDict | None """The distribution's viewer mTLS configuration.""" - connection_function_association: ConnectionFunctionAssociation | None = ... + connection_function_association: ( + ConnectionFunctionAssociation | ConnectionFunctionAssociationDict | None + ) """The distribution's connection function association.""" - cache_tag_config: CacheTagConfig | None = ... + cache_tag_config: CacheTagConfig | CacheTagConfigDict | None """ Configuration for cache tag extraction from origin responses. When specified, CloudFront reads the header named in `HeaderName` from origin @@ -4404,6 +6717,14 @@ class DistributionConfigWithTags(_SerdeShape): tags: Tags """A complex type that contains zero or more `Tag` elements.""" +class DistributionConfigWithTagsDict(TypedDict, total=False): + """Dictionary form of `DistributionConfigWithTags`.""" + + distribution_config: Required[DistributionConfig | DistributionConfigDict] + """A distribution configuration.""" + tags: Required[Tags | TagsDict] + """A complex type that contains zero or more `Tag` elements.""" + @dataclass(kw_only=True) class DistributionIdList(_SerdeShape): """A list of distribution IDs.""" @@ -4537,6 +6858,14 @@ class DistributionResourceId(_SerdeShape): distribution_tenant_id: str | None = ... """The ID of the distribution tenant.""" +class DistributionResourceIdDict(TypedDict, total=False): + """Dictionary form of `DistributionResourceId`.""" + + distribution_id: str | None + """The ID of the multi-tenant distribution.""" + distribution_tenant_id: str | None + """The ID of the distribution tenant.""" + class DistributionResourceType(UnknownEnumMixin, StrEnum): DISTRIBUTION = "distribution" DISTRIBUTION_TENANT = "distribution-tenant" @@ -4735,6 +7064,20 @@ class DistributionTenantAssociationFilter(_SerdeShape): tenants associated with a specific connection group. """ +class DistributionTenantAssociationFilterDict(TypedDict, total=False): + """Dictionary form of `DistributionTenantAssociationFilter`.""" + + distribution_id: str | None + """ + The distribution ID to filter by. You can find distribution tenants + associated with a specific distribution. + """ + connection_group_id: str | None + """ + The ID of the connection group to filter by. You can find distribution + tenants associated with a specific connection group. + """ + @dataclass(kw_only=True) class DistributionTenantSummary(_SerdeShape): """A summary of the information about a distribution tenant.""" @@ -4833,6 +7176,12 @@ class DomainItem(_SerdeShape): domain: str """The domain name.""" +class DomainItemDict(TypedDict, total=False): + """Dictionary form of `DomainItem`.""" + + domain: Required[str] + """The domain name.""" + @dataclass(kw_only=True) class DomainResult(_SerdeShape): """The details about the domain result.""" @@ -4849,16 +7198,30 @@ class DomainStatus(UnknownEnumMixin, StrEnum): @dataclass(kw_only=True) class EncryptionEntities(_SerdeShape): """ - Complex data type for field-level encryption profiles that includes all - of the encryption entities. + Complex data type for field-level encryption profiles that includes all + of the encryption entities. + """ + + quantity: int + """ + Number of field pattern items in a field-level encryption content + type-profile mapping. + """ + items: list[EncryptionEntity] | None = ... + """ + An array of field patterns in a field-level encryption content + type-profile mapping. """ - quantity: int +class EncryptionEntitiesDict(TypedDict, total=False): + """Dictionary form of `EncryptionEntities`.""" + + quantity: Required[int] """ Number of field pattern items in a field-level encryption content type-profile mapping. """ - items: list[EncryptionEntity] | None = ... + items: Sequence[EncryptionEntity | EncryptionEntityDict] | None """ An array of field patterns in a field-level encryption content type-profile mapping. @@ -4891,6 +7254,29 @@ class EncryptionEntity(_SerdeShape): and AB*. Note that field patterns are case-sensitive. """ +class EncryptionEntityDict(TypedDict, total=False): + """Dictionary form of `EncryptionEntity`.""" + + public_key_id: Required[str] + """ + The public key associated with a set of field-level encryption patterns, + to be used when encrypting the fields that match the patterns. + """ + provider_id: Required[str] + """ + The provider associated with the public key being used for encryption. + This value must also be provided with the private key for applications + to be able to decrypt data. + """ + field_patterns: Required[FieldPatterns | FieldPatternsDict] + """ + Field patterns in a field-level encryption content type profile specify + the fields that you want to be encrypted. You can provide the full field + name, or any beginning characters followed by a wildcard (*). You + can't overlap field patterns. For example, you can't have both ABC* + and AB*. Note that field patterns are case-sensitive. + """ + @dataclass(kw_only=True) class EndPoint(_SerdeShape): """ @@ -4909,6 +7295,20 @@ class EndPoint(_SerdeShape): sending real-time log data in a real-time log configuration. """ +class EndPointDict(TypedDict, total=False): + """Dictionary form of `EndPoint`.""" + + stream_type: Required[str] + """ + The type of data stream where you are sending real-time log data. The + only valid value is `Kinesis`. + """ + kinesis_stream_config: KinesisStreamConfig | KinesisStreamConfigDict | None + """ + Contains information about the Amazon Kinesis data stream where you are + sending real-time log data in a real-time log configuration. + """ + @dataclass(kw_only=True) class EntityAlreadyExists(ServiceError, _SerdeShape): """The entity already exists. You must provide a unique entity.""" @@ -5011,6 +7411,31 @@ class FieldLevelEncryptionConfig(_SerdeShape): a query argument doesn't specify a profile to use. """ +class FieldLevelEncryptionConfigDict(TypedDict, total=False): + """Dictionary form of `FieldLevelEncryptionConfig`.""" + + caller_reference: Required[str] + """A unique number that ensures the request can't be replayed.""" + comment: str | None + """ + An optional comment about the configuration. The comment cannot be + longer than 128 characters. + """ + query_arg_profile_config: QueryArgProfileConfig | QueryArgProfileConfigDict | None + """ + A complex data type that specifies when to forward content if a profile + isn't found and the profile that can be provided as a query argument in + a request. + """ + content_type_profile_config: ( + ContentTypeProfileConfig | ContentTypeProfileConfigDict | None + ) + """ + A complex data type that specifies when to forward content if a content + type isn't recognized and profiles to use as by default in a request if + a query argument doesn't specify a profile to use. + """ + @dataclass(kw_only=True) class FieldLevelEncryptionConfigAlreadyExists(ServiceError, _SerdeShape): """The specified configuration for field-level encryption already exists.""" @@ -5102,6 +7527,25 @@ class FieldLevelEncryptionProfileConfig(_SerdeShape): patterns for specifying which fields to encrypt with this key. """ +class FieldLevelEncryptionProfileConfigDict(TypedDict, total=False): + """Dictionary form of `FieldLevelEncryptionProfileConfig`.""" + + name: Required[str] + """Profile name for the field-level encryption profile.""" + caller_reference: Required[str] + """A unique number that ensures that the request can't be replayed.""" + comment: str | None + """ + An optional comment for the field-level encryption profile. The comment + cannot be longer than 128 characters. + """ + encryption_entities: Required[EncryptionEntities | EncryptionEntitiesDict] + """ + A complex data type of encryption entities for the field-level + encryption profile that include the public key ID, provider, and field + patterns for specifying which fields to encrypt with this key. + """ + @dataclass(kw_only=True) class FieldLevelEncryptionProfileInUse(ServiceError, _SerdeShape): """The specified profile for field-level encryption is in use.""" @@ -5204,6 +7648,14 @@ class FieldPatterns(_SerdeShape): items: list[str] | None = ... """An array of the field-level encryption field patterns.""" +class FieldPatternsDict(TypedDict, total=False): + """Dictionary form of `FieldPatterns`.""" + + quantity: Required[int] + """The number of field-level encryption field patterns.""" + items: Sequence[str] | None + """An array of the field-level encryption field patterns.""" + class Format(UnknownEnumMixin, StrEnum): URL_ENCODED = "URLEncoded" @@ -5348,6 +7800,122 @@ class ForwardedValues(_SerdeShape): behavior. """ +class ForwardedValuesDict(TypedDict, total=False): + """Dictionary form of `ForwardedValues`.""" + + query_string: Required[bool] + """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. + + If you want to include query strings in the cache key, use a cache + policy. For more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + in the *Amazon CloudFront Developer Guide*. + + If you want to send query strings to the origin but not include them in + the cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + in the *Amazon CloudFront Developer Guide*. + + Indicates whether you want CloudFront to forward query strings to the + origin that is associated with this cache behavior and cache based on + the query string parameters. CloudFront behavior depends on the value of + `QueryString` and on the values that you specify for + `QueryStringCacheKeys`, if any: + + If you specify true for `QueryString` and you don't specify any values + for `QueryStringCacheKeys`, CloudFront forwards all query string + parameters to the origin and caches based on all query string + parameters. Depending on how many query string parameters and values you + have, this can adversely affect performance because CloudFront must + forward more requests to the origin. + + If you specify true for `QueryString` and you specify one or more values + for `QueryStringCacheKeys`, CloudFront forwards all query string + parameters to the origin, but it only caches based on the query string + parameters that you specify. + + If you specify false for `QueryString`, CloudFront doesn't forward any + query string parameters to the origin, and doesn't cache based on query + string parameters. + + For more information, see [Configuring CloudFront to Cache Based on + Query String + Parameters](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html) + in the *Amazon CloudFront Developer Guide*. + """ + cookies: Required[CookiePreference | CookiePreferenceDict] + """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. + + If you want to include cookies in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + in the *Amazon CloudFront Developer Guide*. + + If you want to send cookies to the origin but not include them in the + cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + in the *Amazon CloudFront Developer Guide*. + + A complex type that specifies whether you want CloudFront to forward + cookies to the origin and, if so, which ones. For more information about + forwarding cookies to the origin, see [How CloudFront Forwards, Caches, + and Logs + Cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) + in the *Amazon CloudFront Developer Guide*. + """ + headers: Headers | HeadersDict | None + """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. + + If you want to include headers in the cache key, use a cache policy. For + more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + in the *Amazon CloudFront Developer Guide*. + + If you want to send headers to the origin but not include them in the + cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + in the *Amazon CloudFront Developer Guide*. + + A complex type that specifies the `Headers`, if any, that you want + CloudFront to forward to the origin for this cache behavior (whitelisted + headers). For the headers that you specify, CloudFront also caches + separate versions of a specified object that is based on the header + values in viewer requests. + + For more information, see [Caching Content Based on Request + Headers](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html) + in the *Amazon CloudFront Developer Guide*. + """ + query_string_cache_keys: QueryStringCacheKeys | QueryStringCacheKeysDict | None + """ + This field is deprecated. We recommend that you use a cache policy or an + origin request policy instead of this field. + + If you want to include query strings in the cache key, use a cache + policy. For more information, see [Creating cache + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) + in the *Amazon CloudFront Developer Guide*. + + If you want to send query strings to the origin but not include them in + the cache key, use an origin request policy. For more information, see + [Creating origin request + policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) + in the *Amazon CloudFront Developer Guide*. + + A complex type that contains information about the query string + parameters that you want CloudFront to use for caching for this cache + behavior. + """ + class FrameOptionsList(UnknownEnumMixin, StrEnum): DENY = "DENY" SAMEORIGIN = "SAMEORIGIN" @@ -5384,6 +7952,18 @@ class FunctionAssociation(_SerdeShape): (`origin-request` and `origin-response`) with a CloudFront function. """ +class FunctionAssociationDict(TypedDict, total=False): + """Dictionary form of `FunctionAssociation`.""" + + function_arn: Required[str] + """The Amazon Resource Name (ARN) of the function.""" + event_type: Required[str] + """ + The event type of the function, either `viewer-request` or + `viewer-response`. You cannot use origin-facing event types + (`origin-request` and `origin-response`) with a CloudFront function. + """ + @dataclass(kw_only=True) class FunctionAssociations(_SerdeShape): """ @@ -5401,6 +7981,18 @@ class FunctionAssociations(_SerdeShape): stage to associate them with a cache behavior. """ +class FunctionAssociationsDict(TypedDict, total=False): + """Dictionary form of `FunctionAssociations`.""" + + quantity: Required[int] + """The number of CloudFront functions in the list.""" + items: Sequence[FunctionAssociation | FunctionAssociationDict] | None + """ + The CloudFront functions that are associated with a cache behavior in a + CloudFront distribution. Your functions must be published to the `LIVE` + stage to associate them with a cache behavior. + """ + @dataclass(kw_only=True) class FunctionConfig(_SerdeShape): """Contains configuration information about a CloudFront function.""" @@ -5412,6 +8004,18 @@ class FunctionConfig(_SerdeShape): key_value_store_associations: KeyValueStoreAssociations | None = ... """The configuration for the key value store associations.""" +class FunctionConfigDict(TypedDict, total=False): + """Dictionary form of `FunctionConfig`.""" + + comment: Required[str] + """A comment to describe the function.""" + runtime: Required[str] + """The function's runtime environment version.""" + key_value_store_associations: ( + KeyValueStoreAssociations | KeyValueStoreAssociationsDict | None + ) + """The configuration for the key value store associations.""" + @dataclass(kw_only=True) class FunctionInUse(ServiceError, _SerdeShape): """ @@ -5554,6 +8158,46 @@ class GeoRestriction(_SerdeShape): CloudFront console, which includes both country names and codes. """ +class GeoRestrictionDict(TypedDict, total=False): + """Dictionary form of `GeoRestriction`.""" + + restriction_type: Required[str] + """ + The method that you want to use to restrict distribution of your content + by country: + + - `none`: No geo restriction is enabled, meaning access to content is + not restricted by client geo location. + + - `blacklist`: The `Location` elements specify the countries in which + you don't want CloudFront to distribute your content. + + - `whitelist`: The `Location` elements specify the countries in which + you want CloudFront to distribute your content. + """ + quantity: Required[int] + """ + When geo restriction is `enabled`, this is the number of countries in + your `whitelist` or `blacklist`. Otherwise, when it is not enabled, + `Quantity` is `0`, and you can omit `Items`. + """ + items: Sequence[str] | None + """ + A complex type that contains a `Location` element for each country in + which you want CloudFront either to distribute your content + (`whitelist`) or not distribute your content (`blacklist`). + + The `Location` element is a two-letter, uppercase country code for a + country that you want to include in your `blacklist` or `whitelist`. + Include one `Location` element for each country. + + CloudFront and `MaxMind` both use `ISO 3166` country codes. For the + current list of countries and the corresponding codes, see + `ISO 3166-1-alpha-2` code on the *International Organization for + Standardization* website. You can also refer to the country list on the + CloudFront console, which includes both country names and codes. + """ + @dataclass(kw_only=True) class GeoRestrictionCustomization(_SerdeShape): """ @@ -5578,6 +8222,26 @@ class GeoRestrictionCustomization(_SerdeShape): locations: list[str] | None = ... """The locations for geographic restrictions.""" +class GeoRestrictionCustomizationDict(TypedDict, total=False): + """Dictionary form of `GeoRestrictionCustomization`.""" + + restriction_type: Required[str] + """ + The method that you want to use to restrict distribution of your content + by country: + + - `none`: No geographic restriction is enabled, meaning access to + content is not restricted by client geo location. + + - `blacklist`: The `Location` elements specify the countries in which + you don't want CloudFront to distribute your content. + + - `whitelist`: The `Location` elements specify the countries in which + you want CloudFront to distribute your content. + """ + locations: Sequence[str] | None + """The locations for geographic restrictions.""" + class GeoRestrictionType(UnknownEnumMixin, StrEnum): BLACKLIST = "blacklist" WHITELIST = "whitelist" @@ -5590,6 +8254,12 @@ class GetAnycastIpListInput(_SerdeShape): id: str | None = ... """The ID of the Anycast static IP list.""" +class GetAnycastIpListInputDict(TypedDict, total=False): + """Dictionary form of `GetAnycastIpListInput`.""" + + id: Required[str] + """The ID of the Anycast static IP list.""" + @dataclass(kw_only=True) class GetAnycastIpListOutput(_SerdeShape): """Dataclass for GetAnycastIpListOutput structure.""" diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_1.pyi b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_1.pyi index 948b2c848..733b56edc 100644 --- a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_1.pyi +++ b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_1.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -19,20 +21,25 @@ from ..models import ( ConnectionFunctionSummary, ConnectionGroup, ConnectionGroupAssociationFilter, + ConnectionGroupAssociationFilterDict, ConnectionGroupSummary, ContinuousDeploymentPolicy, ContinuousDeploymentPolicyConfig, ContinuousDeploymentPolicyList, CustomHeaders, + CustomHeadersDict, CustomOriginConfig, + CustomOriginConfigDict, Distribution, DistributionConfig, DistributionIdList, DistributionIdOwnerList, DistributionList, DistributionResourceId, + DistributionResourceIdDict, DistributionTenant, DistributionTenantAssociationFilter, + DistributionTenantAssociationFilterDict, DistributionTenantSummary, DomainConflict, FieldLevelEncryption, @@ -47,17 +54,21 @@ from ..models import ( OriginRequestPolicyConfig, OriginRequestPolicyList, OriginShield, + OriginShieldDict, Paths, + PathsDict, PublicKey, PublicKeyConfig, PublicKeyList, RealtimeLogConfig, RealtimeLogConfigs, RealtimeMetricsSubscriptionConfig, + RealtimeMetricsSubscriptionConfigDict, ResponseHeadersPolicy, ResponseHeadersPolicyConfig, ResponseHeadersPolicyList, S3OriginConfig, + S3OriginConfigDict, ServiceError, StreamingDistribution, StreamingDistributionConfig, @@ -68,6 +79,7 @@ from ..models import ( ValidationTokenDetail, VpcOrigin, VpcOriginConfig, + VpcOriginConfigDict, VpcOriginList, _SerdeShape, ) @@ -85,6 +97,18 @@ class GetCachePolicyConfigInput(_SerdeShape): using `ListCachePolicies`. """ +class GetCachePolicyConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetCachePolicyConfigInput`.""" + + id: Required[str] + """ + The unique identifier for the cache policy. If the cache policy is + attached to a distribution's cache behavior, you can get the policy's + identifier using `ListDistributions` or `GetDistribution`. If the cache + policy is not attached to a cache behavior, you can get the identifier + using `ListCachePolicies`. + """ + @dataclass(kw_only=True) class GetCachePolicyConfigOutput(_SerdeShape): """Dataclass for GetCachePolicyConfigOutput structure.""" @@ -114,6 +138,18 @@ class GetCachePolicyInput(_SerdeShape): using `ListCachePolicies`. """ +class GetCachePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetCachePolicyInput`.""" + + id: Required[str] + """ + The unique identifier for the cache policy. If the cache policy is + attached to a distribution's cache behavior, you can get the policy's + identifier using `ListDistributions` or `GetDistribution`. If the cache + policy is not attached to a cache behavior, you can get the identifier + using `ListCachePolicies`. + """ + @dataclass(kw_only=True) class GetCachePolicyOutput(_SerdeShape): """Dataclass for GetCachePolicyOutput structure.""" @@ -141,6 +177,12 @@ class GetCloudFrontOriginAccessIdentityConfigInput(_SerdeShape): id: str | None = ... """The identity's ID.""" +class GetCloudFrontOriginAccessIdentityConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetCloudFrontOriginAccessIdentityConfigInput`.""" + + id: Required[str] + """The identity's ID.""" + @dataclass(kw_only=True) class GetCloudFrontOriginAccessIdentityConfigOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -166,6 +208,12 @@ class GetCloudFrontOriginAccessIdentityInput(_SerdeShape): id: str | None = ... """The identity's ID.""" +class GetCloudFrontOriginAccessIdentityInputDict(TypedDict, total=False): + """Dictionary form of `GetCloudFrontOriginAccessIdentityInput`.""" + + id: Required[str] + """The identity's ID.""" + @dataclass(kw_only=True) class GetCloudFrontOriginAccessIdentityOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -194,6 +242,14 @@ class GetConnectionFunctionInput(_SerdeShape): stage: str | None = ... """The connection function's stage.""" +class GetConnectionFunctionInputDict(TypedDict, total=False): + """Dictionary form of `GetConnectionFunctionInput`.""" + + identifier: Required[str] + """The connection function's identifier.""" + stage: str | None + """The connection function's stage.""" + @dataclass(kw_only=True) class GetConnectionFunctionOutput(_SerdeShape): """Dataclass for GetConnectionFunctionOutput structure.""" @@ -225,6 +281,15 @@ class GetConnectionGroupByRoutingEndpointInput(_SerdeShape): d111111abcdef8.cloudfront.net. """ +class GetConnectionGroupByRoutingEndpointInputDict(TypedDict, total=False): + """Dictionary form of `GetConnectionGroupByRoutingEndpointInput`.""" + + routing_endpoint: Required[str] + """ + The routing endpoint for the target connection group, such as + d111111abcdef8.cloudfront.net. + """ + @dataclass(kw_only=True) class GetConnectionGroupByRoutingEndpointOutput(_SerdeShape): """Dataclass for GetConnectionGroupByRoutingEndpointOutput structure.""" @@ -255,6 +320,12 @@ class GetConnectionGroupInput(_SerdeShape): identifier: str | None = ... """The ID, name, or Amazon Resource Name (ARN) of the connection group.""" +class GetConnectionGroupInputDict(TypedDict, total=False): + """Dictionary form of `GetConnectionGroupInput`.""" + + identifier: Required[str] + """The ID, name, or Amazon Resource Name (ARN) of the connection group.""" + @dataclass(kw_only=True) class GetConnectionGroupOutput(_SerdeShape): """Dataclass for GetConnectionGroupOutput structure.""" @@ -281,6 +352,15 @@ class GetContinuousDeploymentPolicyConfigInput(_SerdeShape): you are getting. """ +class GetContinuousDeploymentPolicyConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetContinuousDeploymentPolicyConfigInput`.""" + + id: Required[str] + """ + The identifier of the continuous deployment policy whose configuration + you are getting. + """ + @dataclass(kw_only=True) class GetContinuousDeploymentPolicyConfigOutput(_SerdeShape): """Dataclass for GetContinuousDeploymentPolicyConfigOutput structure.""" @@ -307,6 +387,12 @@ class GetContinuousDeploymentPolicyInput(_SerdeShape): id: str | None = ... """The identifier of the continuous deployment policy that you are getting.""" +class GetContinuousDeploymentPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetContinuousDeploymentPolicyInput`.""" + + id: Required[str] + """The identifier of the continuous deployment policy that you are getting.""" + @dataclass(kw_only=True) class GetContinuousDeploymentPolicyOutput(_SerdeShape): """Dataclass for GetContinuousDeploymentPolicyOutput structure.""" @@ -336,6 +422,15 @@ class GetDistributionConfigInput(_SerdeShape): configuration is returned. """ +class GetDistributionConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetDistributionConfigInput`.""" + + id: Required[str] + """ + The distribution's ID. If the ID is empty, an empty distribution + configuration is returned. + """ + @dataclass(kw_only=True) class GetDistributionConfigOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -362,6 +457,15 @@ class GetDistributionInput(_SerdeShape): configuration is returned. """ +class GetDistributionInputDict(TypedDict, total=False): + """Dictionary form of `GetDistributionInput`.""" + + id: Required[str] + """ + The distribution's ID. If the ID is empty, an empty distribution + configuration is returned. + """ + @dataclass(kw_only=True) class GetDistributionOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -388,6 +492,12 @@ class GetDistributionTenantByDomainInput(_SerdeShape): domain: str | None = ... """A domain name associated with the target distribution tenant.""" +class GetDistributionTenantByDomainInputDict(TypedDict, total=False): + """Dictionary form of `GetDistributionTenantByDomainInput`.""" + + domain: Required[str] + """A domain name associated with the target distribution tenant.""" + @dataclass(kw_only=True) class GetDistributionTenantByDomainOutput(_SerdeShape): """Dataclass for GetDistributionTenantByDomainOutput structure.""" @@ -414,6 +524,15 @@ class GetDistributionTenantInput(_SerdeShape): or name of the distribution tenant. """ +class GetDistributionTenantInputDict(TypedDict, total=False): + """Dictionary form of `GetDistributionTenantInput`.""" + + identifier: Required[str] + """ + The identifier of the distribution tenant. You can specify the ARN, ID, + or name of the distribution tenant. + """ + @dataclass(kw_only=True) class GetDistributionTenantOutput(_SerdeShape): """Dataclass for GetDistributionTenantOutput structure.""" @@ -437,6 +556,12 @@ class GetFieldLevelEncryptionConfigInput(_SerdeShape): id: str | None = ... """Request the ID for the field-level encryption configuration information.""" +class GetFieldLevelEncryptionConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetFieldLevelEncryptionConfigInput`.""" + + id: Required[str] + """Request the ID for the field-level encryption configuration information.""" + @dataclass(kw_only=True) class GetFieldLevelEncryptionConfigOutput(_SerdeShape): """Dataclass for GetFieldLevelEncryptionConfigOutput structure.""" @@ -463,6 +588,12 @@ class GetFieldLevelEncryptionInput(_SerdeShape): id: str | None = ... """Request the ID for the field-level encryption configuration information.""" +class GetFieldLevelEncryptionInputDict(TypedDict, total=False): + """Dictionary form of `GetFieldLevelEncryptionInput`.""" + + id: Required[str] + """Request the ID for the field-level encryption configuration information.""" + @dataclass(kw_only=True) class GetFieldLevelEncryptionOutput(_SerdeShape): """Dataclass for GetFieldLevelEncryptionOutput structure.""" @@ -492,6 +623,15 @@ class GetFieldLevelEncryptionProfileConfigInput(_SerdeShape): information. """ +class GetFieldLevelEncryptionProfileConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetFieldLevelEncryptionProfileConfigInput`.""" + + id: Required[str] + """ + Get the ID for the field-level encryption profile configuration + information. + """ + @dataclass(kw_only=True) class GetFieldLevelEncryptionProfileConfigOutput(_SerdeShape): """Dataclass for GetFieldLevelEncryptionProfileConfigOutput structure.""" @@ -520,6 +660,12 @@ class GetFieldLevelEncryptionProfileInput(_SerdeShape): id: str | None = ... """Get the ID for the field-level encryption profile information.""" +class GetFieldLevelEncryptionProfileInputDict(TypedDict, total=False): + """Dictionary form of `GetFieldLevelEncryptionProfileInput`.""" + + id: Required[str] + """Get the ID for the field-level encryption profile information.""" + @dataclass(kw_only=True) class GetFieldLevelEncryptionProfileOutput(_SerdeShape): """Dataclass for GetFieldLevelEncryptionProfileOutput structure.""" @@ -548,6 +694,14 @@ class GetFunctionInput(_SerdeShape): stage: str | None = ... """The function's stage, either `DEVELOPMENT` or `LIVE`.""" +class GetFunctionInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionInput`.""" + + name: Required[str] + """The name of the function whose code you are getting.""" + stage: str | None + """The function's stage, either `DEVELOPMENT` or `LIVE`.""" + @dataclass(kw_only=True) class GetFunctionOutput(_SerdeShape): """Dataclass for GetFunctionOutput structure.""" @@ -578,6 +732,14 @@ class GetInvalidationForDistributionTenantInput(_SerdeShape): id: str | None = ... """The ID of the invalidation to retrieve.""" +class GetInvalidationForDistributionTenantInputDict(TypedDict, total=False): + """Dictionary form of `GetInvalidationForDistributionTenantInput`.""" + + distribution_tenant_id: Required[str] + """The ID of the distribution tenant.""" + id: Required[str] + """The ID of the invalidation to retrieve.""" + @dataclass(kw_only=True) class GetInvalidationForDistributionTenantOutput(_SerdeShape): """Dataclass for GetInvalidationForDistributionTenantOutput structure.""" @@ -604,6 +766,17 @@ class GetInvalidationInput(_SerdeShape): `IDFDVBD632BHDS5`. """ +class GetInvalidationInputDict(TypedDict, total=False): + """Dictionary form of `GetInvalidationInput`.""" + + distribution_id: Required[str] + """The distribution's ID.""" + id: Required[str] + """ + The identifier for the invalidation request, for example, + `IDFDVBD632BHDS5`. + """ + @dataclass(kw_only=True) class GetInvalidationOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -632,6 +805,15 @@ class GetKeyGroupConfigInput(_SerdeShape): get the identifier, use `ListKeyGroups`. """ +class GetKeyGroupConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetKeyGroupConfigInput`.""" + + id: Required[str] + """ + The identifier of the key group whose configuration you are getting. To + get the identifier, use `ListKeyGroups`. + """ + @dataclass(kw_only=True) class GetKeyGroupConfigOutput(_SerdeShape): """Dataclass for GetKeyGroupConfigOutput structure.""" @@ -658,6 +840,15 @@ class GetKeyGroupInput(_SerdeShape): identifier, use `ListKeyGroups`. """ +class GetKeyGroupInputDict(TypedDict, total=False): + """Dictionary form of `GetKeyGroupInput`.""" + + id: Required[str] + """ + The identifier of the key group that you are getting. To get the + identifier, use `ListKeyGroups`. + """ + @dataclass(kw_only=True) class GetKeyGroupOutput(_SerdeShape): """Dataclass for GetKeyGroupOutput structure.""" @@ -684,6 +875,15 @@ class GetManagedCertificateDetailsInput(_SerdeShape): or name of the distribution tenant. """ +class GetManagedCertificateDetailsInputDict(TypedDict, total=False): + """Dictionary form of `GetManagedCertificateDetailsInput`.""" + + identifier: Required[str] + """ + The identifier of the distribution tenant. You can specify the ARN, ID, + or name of the distribution tenant. + """ + @dataclass(kw_only=True) class GetManagedCertificateDetailsOutput(_SerdeShape): """Dataclass for GetManagedCertificateDetailsOutput structure.""" @@ -705,6 +905,12 @@ class GetMonitoringSubscriptionInput(_SerdeShape): distribution_id: str | None = ... """The ID of the distribution that you are getting metrics information for.""" +class GetMonitoringSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `GetMonitoringSubscriptionInput`.""" + + distribution_id: Required[str] + """The ID of the distribution that you are getting metrics information for.""" + @dataclass(kw_only=True) class GetMonitoringSubscriptionOutput(_SerdeShape): """Dataclass for GetMonitoringSubscriptionOutput structure.""" @@ -730,6 +936,12 @@ class GetOriginAccessControlConfigInput(_SerdeShape): id: str | None = ... """The unique identifier of the origin access control.""" +class GetOriginAccessControlConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetOriginAccessControlConfigInput`.""" + + id: Required[str] + """The unique identifier of the origin access control.""" + @dataclass(kw_only=True) class GetOriginAccessControlConfigOutput(_SerdeShape): """Dataclass for GetOriginAccessControlConfigOutput structure.""" @@ -756,6 +968,12 @@ class GetOriginAccessControlInput(_SerdeShape): id: str | None = ... """The unique identifier of the origin access control.""" +class GetOriginAccessControlInputDict(TypedDict, total=False): + """Dictionary form of `GetOriginAccessControlInput`.""" + + id: Required[str] + """The unique identifier of the origin access control.""" + @dataclass(kw_only=True) class GetOriginAccessControlOutput(_SerdeShape): """Dataclass for GetOriginAccessControlOutput structure.""" @@ -789,6 +1007,19 @@ class GetOriginRequestPolicyConfigInput(_SerdeShape): `ListOriginRequestPolicies`. """ +class GetOriginRequestPolicyConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetOriginRequestPolicyConfigInput`.""" + + id: Required[str] + """ + The unique identifier for the origin request policy. If the origin + request policy is attached to a distribution's cache behavior, you can + get the policy's identifier using `ListDistributions` or + `GetDistribution`. If the origin request policy is not attached to a + cache behavior, you can get the identifier using + `ListOriginRequestPolicies`. + """ + @dataclass(kw_only=True) class GetOriginRequestPolicyConfigOutput(_SerdeShape): """Dataclass for GetOriginRequestPolicyConfigOutput structure.""" @@ -819,6 +1050,19 @@ class GetOriginRequestPolicyInput(_SerdeShape): `ListOriginRequestPolicies`. """ +class GetOriginRequestPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetOriginRequestPolicyInput`.""" + + id: Required[str] + """ + The unique identifier for the origin request policy. If the origin + request policy is attached to a distribution's cache behavior, you can + get the policy's identifier using `ListDistributions` or + `GetDistribution`. If the origin request policy is not attached to a + cache behavior, you can get the identifier using + `ListOriginRequestPolicies`. + """ + @dataclass(kw_only=True) class GetOriginRequestPolicyOutput(_SerdeShape): """Dataclass for GetOriginRequestPolicyOutput structure.""" @@ -842,6 +1086,12 @@ class GetPublicKeyConfigInput(_SerdeShape): id: str | None = ... """The identifier of the public key whose configuration you are getting.""" +class GetPublicKeyConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetPublicKeyConfigInput`.""" + + id: Required[str] + """The identifier of the public key whose configuration you are getting.""" + @dataclass(kw_only=True) class GetPublicKeyConfigOutput(_SerdeShape): """Dataclass for GetPublicKeyConfigOutput structure.""" @@ -865,6 +1115,12 @@ class GetPublicKeyInput(_SerdeShape): id: str | None = ... """The identifier of the public key you are getting.""" +class GetPublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `GetPublicKeyInput`.""" + + id: Required[str] + """The identifier of the public key you are getting.""" + @dataclass(kw_only=True) class GetPublicKeyOutput(_SerdeShape): """Dataclass for GetPublicKeyOutput structure.""" @@ -893,6 +1149,17 @@ class GetRealtimeLogConfigInput(_SerdeShape): get. """ +class GetRealtimeLogConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetRealtimeLogConfigInput`.""" + + name: str | None + """The name of the real-time log configuration to get.""" + arn: str | None + """ + The Amazon Resource Name (ARN) of the real-time log configuration to + get. + """ + @dataclass(kw_only=True) class GetRealtimeLogConfigOutput(_SerdeShape): """Dataclass for GetRealtimeLogConfigOutput structure.""" @@ -917,6 +1184,15 @@ class GetResourcePolicyInput(_SerdeShape): associated with the resource policy. """ +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the CloudFront resource that is + associated with the resource policy. + """ + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Dataclass for GetResourcePolicyOutput structure.""" @@ -951,6 +1227,20 @@ class GetResponseHeadersPolicyConfigInput(_SerdeShape): `ListResponseHeadersPolicies`. """ +class GetResponseHeadersPolicyConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetResponseHeadersPolicyConfigInput`.""" + + id: Required[str] + """ + The identifier for the response headers policy. + + If the response headers policy is attached to a distribution's cache + behavior, you can get the policy's identifier using `ListDistributions` + or `GetDistribution`. If the response headers policy is not attached to + a cache behavior, you can get the identifier using + `ListResponseHeadersPolicies`. + """ + @dataclass(kw_only=True) class GetResponseHeadersPolicyConfigOutput(_SerdeShape): """Dataclass for GetResponseHeadersPolicyConfigOutput structure.""" @@ -985,6 +1275,20 @@ class GetResponseHeadersPolicyInput(_SerdeShape): `ListResponseHeadersPolicies`. """ +class GetResponseHeadersPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResponseHeadersPolicyInput`.""" + + id: Required[str] + """ + The identifier for the response headers policy. + + If the response headers policy is attached to a distribution's cache + behavior, you can get the policy's identifier using `ListDistributions` + or `GetDistribution`. If the response headers policy is not attached to + a cache behavior, you can get the identifier using + `ListResponseHeadersPolicies`. + """ + @dataclass(kw_only=True) class GetResponseHeadersPolicyOutput(_SerdeShape): """Dataclass for GetResponseHeadersPolicyOutput structure.""" @@ -1011,6 +1315,12 @@ class GetStreamingDistributionConfigInput(_SerdeShape): id: str | None = ... """The streaming distribution's ID.""" +class GetStreamingDistributionConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetStreamingDistributionConfigInput`.""" + + id: Required[str] + """The streaming distribution's ID.""" + @dataclass(kw_only=True) class GetStreamingDistributionConfigOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -1034,6 +1344,12 @@ class GetStreamingDistributionInput(_SerdeShape): id: str | None = ... """The streaming distribution's ID.""" +class GetStreamingDistributionInputDict(TypedDict, total=False): + """Dictionary form of `GetStreamingDistributionInput`.""" + + id: Required[str] + """The streaming distribution's ID.""" + @dataclass(kw_only=True) class GetStreamingDistributionOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -1060,6 +1376,12 @@ class GetTrustStoreInput(_SerdeShape): identifier: str | None = ... """The trust store's identifier.""" +class GetTrustStoreInputDict(TypedDict, total=False): + """Dictionary form of `GetTrustStoreInput`.""" + + identifier: Required[str] + """The trust store's identifier.""" + @dataclass(kw_only=True) class GetTrustStoreOutput(_SerdeShape): """Dataclass for GetTrustStoreOutput structure.""" @@ -1083,6 +1405,12 @@ class GetVpcOriginInput(_SerdeShape): id: str | None = ... """The VPC origin ID.""" +class GetVpcOriginInputDict(TypedDict, total=False): + """Dictionary form of `GetVpcOriginInput`.""" + + id: Required[str] + """The VPC origin ID.""" + @dataclass(kw_only=True) class GetVpcOriginOutput(_SerdeShape): """Dataclass for GetVpcOriginOutput structure.""" @@ -1122,6 +1450,15 @@ class GrpcConfig(_SerdeShape): proxy them directly to your origins. """ +class GrpcConfigDict(TypedDict, total=False): + """Dictionary form of `GrpcConfig`.""" + + enabled: Required[bool] + """ + Enables your CloudFront distribution to receive gRPC requests and to + proxy them directly to your origins. + """ + @dataclass(kw_only=True) class Headers(_SerdeShape): """Contains a list of HTTP header names.""" @@ -1131,6 +1468,14 @@ class Headers(_SerdeShape): items: list[str] | None = ... """A list of HTTP header names.""" +class HeadersDict(TypedDict, total=False): + """Dictionary form of `Headers`.""" + + quantity: Required[int] + """The number of header names in the `Items` list.""" + items: Sequence[str] | None + """A list of HTTP header names.""" + class HttpVersion(UnknownEnumMixin, StrEnum): HTTP1_1 = "http1.1" HTTP2 = "http2" @@ -1210,6 +1555,17 @@ class ImportSource(_SerdeShape): store. """ +class ImportSourceDict(TypedDict, total=False): + """Dictionary form of `ImportSource`.""" + + source_type: Required[str] + """The source type of the import source for the key value store.""" + source_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the import source for the key value + store. + """ + class ImportSourceType(UnknownEnumMixin, StrEnum): S3 = "S3" @@ -1301,6 +1657,38 @@ class InvalidationBatch(_SerdeShape): `InvalidationBatchAlreadyExists` error. """ +class InvalidationBatchDict(TypedDict, total=False): + """Dictionary form of `InvalidationBatch`.""" + + paths: Required[Paths | PathsDict] + """ + A complex type that contains information about the objects that you want + to invalidate. For more information, see [Specifying the Objects to + Invalidate](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects) + in the *Amazon CloudFront Developer Guide*. + """ + caller_reference: Required[str] + """ + A value that you specify to uniquely identify an invalidation request. + CloudFront uses the value to prevent you from accidentally resubmitting + an identical request. Whenever you create a new invalidation request, + you must specify a new value for `CallerReference` and change other + values in the request as applicable. One way to ensure that the value of + `CallerReference` is unique is to use a `timestamp`, for example, + `20120301090000`. + + If you make a second invalidation request with the same value for + `CallerReference`, and if the rest of the request is the same, + CloudFront doesn't create a new invalidation request. Instead, + CloudFront returns information about the invalidation request that you + previously created with the same `CallerReference`. + + If `CallerReference` is a value you already sent in a previous + invalidation batch request but the content of any `Path` is different + from the original request, CloudFront returns an + `InvalidationBatchAlreadyExists` error. + """ + @dataclass(kw_only=True) class InvalidationList(_SerdeShape): """ @@ -1710,21 +2098,42 @@ class IpamCidrConfig(_SerdeShape): status: str | None = ... """The current status of the IPAM CIDR configuration.""" -class IpamCidrStatus(UnknownEnumMixin, StrEnum): - PROVISIONED = "provisioned" - FAILED_PROVISION = "failed-provision" - PROVISIONING = "provisioning" - DEPROVISIONED = "deprovisioned" - FAILED_DEPROVISION = "failed-deprovision" - DEPROVISIONING = "deprovisioning" - ADVERTISED = "advertised" - FAILED_ADVERTISE = "failed-advertise" - ADVERTISING = "advertising" - WITHDRAWN = "withdrawn" - FAILED_WITHDRAW = "failed-withdraw" - WITHDRAWING = "withdrawing" +class IpamCidrConfigDict(TypedDict, total=False): + """Dictionary form of `IpamCidrConfig`.""" -@dataclass(kw_only=True) + cidr: Required[str] + """ + The CIDR that specifies the IP address range for this IPAM + configuration. + """ + ipam_pool_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IPAM pool that the CIDR block is + assigned to. + """ + anycast_ip: str | None + """ + The specified Anycast IP address allocated from the IPAM pool for this + CIDR configuration. + """ + status: str | None + """The current status of the IPAM CIDR configuration.""" + +class IpamCidrStatus(UnknownEnumMixin, StrEnum): + PROVISIONED = "provisioned" + FAILED_PROVISION = "failed-provision" + PROVISIONING = "provisioning" + DEPROVISIONED = "deprovisioned" + FAILED_DEPROVISION = "failed-deprovision" + DEPROVISIONING = "deprovisioning" + ADVERTISED = "advertised" + FAILED_ADVERTISE = "failed-advertise" + ADVERTISING = "advertising" + WITHDRAWN = "withdrawn" + FAILED_WITHDRAW = "failed-withdraw" + WITHDRAWING = "withdrawing" + +@dataclass(kw_only=True) class IpamConfig(_SerdeShape): """ The configuration IPAM settings that includes the quantity of CIDR @@ -1796,6 +2205,19 @@ class KeyGroupConfig(_SerdeShape): 128 characters. """ +class KeyGroupConfigDict(TypedDict, total=False): + """Dictionary form of `KeyGroupConfig`.""" + + name: Required[str] + """A name to identify the key group.""" + items: Required[Sequence[str]] + """A list of the identifiers of the public keys in the key group.""" + comment: str | None + """ + A comment to describe the key group. The comment cannot be longer than + 128 characters. + """ + @dataclass(kw_only=True) class KeyGroupList(_SerdeShape): """A list of key groups.""" @@ -1857,6 +2279,12 @@ class KeyValueStoreAssociation(_SerdeShape): key_value_store_arn: str """The Amazon Resource Name (ARN) of the key value store association.""" +class KeyValueStoreAssociationDict(TypedDict, total=False): + """Dictionary form of `KeyValueStoreAssociation`.""" + + key_value_store_arn: Required[str] + """The Amazon Resource Name (ARN) of the key value store association.""" + @dataclass(kw_only=True) class KeyValueStoreAssociations(_SerdeShape): """The key value store associations.""" @@ -1866,6 +2294,14 @@ class KeyValueStoreAssociations(_SerdeShape): items: list[KeyValueStoreAssociation] | None = ... """The items of the key value store association.""" +class KeyValueStoreAssociationsDict(TypedDict, total=False): + """Dictionary form of `KeyValueStoreAssociations`.""" + + quantity: Required[int] + """The quantity of key value store associations.""" + items: Sequence[KeyValueStoreAssociation | KeyValueStoreAssociationDict] | None + """The items of the key value store association.""" + @dataclass(kw_only=True) class KeyValueStoreList(_SerdeShape): """The key value store list.""" @@ -1914,6 +2350,25 @@ class KinesisStreamConfig(_SerdeShape): sending real-time log data. """ +class KinesisStreamConfigDict(TypedDict, total=False): + """Dictionary form of `KinesisStreamConfig`.""" + + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of an Identity and Access Management + (IAM) role that CloudFront can use to send real-time log data to your + Kinesis data stream. + + For more information the IAM role, see [Real-time log configuration IAM + role](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-iam-role) + in the *Amazon CloudFront Developer Guide*. + """ + stream_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Kinesis data stream where you are + sending real-time log data. + """ + @dataclass(kw_only=True) class LambdaFunctionAssociation(_SerdeShape): """A complex type that contains a Lambda@Edge function association.""" @@ -1957,6 +2412,48 @@ class LambdaFunctionAssociation(_SerdeShape): in the Amazon CloudFront Developer Guide. """ +class LambdaFunctionAssociationDict(TypedDict, total=False): + """Dictionary form of `LambdaFunctionAssociation`.""" + + lambda_function_arn: Required[str] + """ + The ARN of the Lambda@Edge function. You must specify the ARN of a + function version; you can't specify an alias or $LATEST. + """ + event_type: Required[str] + """ + Specifies the event type that triggers a Lambda@Edge function + invocation. You can specify the following values: + + - `viewer-request`: The function executes when CloudFront receives a + request from a viewer and before it checks to see whether the + requested object is in the edge cache. + + - `origin-request`: The function executes only when CloudFront sends a + request to your origin. When the requested object is in the edge + cache, the function doesn't execute. + + - `origin-response`: The function executes after CloudFront receives a + response from the origin and before it caches the object in the + response. When the requested object is in the edge cache, the function + doesn't execute. + + - `viewer-response`: The function executes before CloudFront returns the + requested object to the viewer. The function executes regardless of + whether the object was already in the edge cache. + + If the origin returns an HTTP status code other than HTTP 200 (OK), + the function doesn't execute. + """ + include_body: bool | None + """ + A flag that allows a Lambda@Edge function to have read access to the + body content. For more information, see [Accessing the Request Body by + Choosing the Include Body + Option](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) + in the Amazon CloudFront Developer Guide. + """ + @dataclass(kw_only=True) class LambdaFunctionAssociations(_SerdeShape): """ @@ -1983,6 +2480,18 @@ class LambdaFunctionAssociations(_SerdeShape): `Items`. """ +class LambdaFunctionAssociationsDict(TypedDict, total=False): + """Dictionary form of `LambdaFunctionAssociations`.""" + + quantity: Required[int] + """The number of Lambda@Edge function associations for this cache behavior.""" + items: Sequence[LambdaFunctionAssociation | LambdaFunctionAssociationDict] | None + """ + **Optional**: A complex type that contains `LambdaFunctionAssociation` + items for this cache behavior. If `Quantity` is `0`, you can omit + `Items`. + """ + @dataclass(kw_only=True) class ListAnycastIpListsInput(_SerdeShape): """Dataclass for ListAnycastIpListsInput structure.""" @@ -2000,6 +2509,22 @@ class ListAnycastIpListsInput(_SerdeShape): the response. """ +class ListAnycastIpListsInputDict(TypedDict, total=False): + """Dictionary form of `ListAnycastIpListsInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list. The response includes items in the list that occur after the + marker. To get the next page of the list, set this field's value to the + value of `NextMarker` from the current page's response. + """ + max_items: int | None + """ + The maximum number of Anycast static IP lists that you want returned in + the response. + """ + @dataclass(kw_only=True) class ListAnycastIpListsOutput(_SerdeShape): """Dataclass for ListAnycastIpListsOutput structure.""" @@ -2040,6 +2565,31 @@ class ListCachePoliciesInput(_SerdeShape): max_items: int | None = ... """The maximum number of cache policies that you want in the response.""" +class ListCachePoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListCachePoliciesInput`.""" + + type: str | None + """ + A filter to return only the specified kinds of cache policies. Valid + values are: + + - `managed` -- Returns only the managed policies created by Amazon Web + Services. + + - `custom` -- Returns only the custom policies created in your Amazon + Web Services account. + """ + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of cache policies. The response includes cache policies in the + list that occur after the marker. To get the next page of the list, set + this field's value to the value of `NextMarker` from the current + page's response. + """ + max_items: int | None + """The maximum number of cache policies that you want in the response.""" + @dataclass(kw_only=True) class ListCachePoliciesOutput(_SerdeShape): """Dataclass for ListCachePoliciesOutput structure.""" @@ -2072,6 +2622,23 @@ class ListCloudFrontOriginAccessIdentitiesInput(_SerdeShape): body. """ +class ListCloudFrontOriginAccessIdentitiesInputDict(TypedDict, total=False): + """Dictionary form of `ListCloudFrontOriginAccessIdentitiesInput`.""" + + marker: str | None + """ + Use this when paginating results to indicate where to begin in your list + of origin access identities. The results include identities in the list + that occur after the marker. To get the next page of results, set the + `Marker` to the value of the `NextMarker` from the current page's + response (which is also the ID of the last identity on that page). + """ + max_items: int | None + """ + The maximum number of origin access identities you want in the response + body. + """ + @dataclass(kw_only=True) class ListCloudFrontOriginAccessIdentitiesOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -2110,6 +2677,27 @@ class ListConflictingAliasesInput(_SerdeShape): max_items: int | None = ... """The maximum number of conflicting aliases that you want in the response.""" +class ListConflictingAliasesInputDict(TypedDict, total=False): + """Dictionary form of `ListConflictingAliasesInput`.""" + + distribution_id: Required[str] + """ + The ID of a standard distribution in your account that has an attached + TLS certificate that includes the provided alias. + """ + alias: Required[str] + """The alias (also called a CNAME) to search for conflicting aliases.""" + marker: str | None + """ + Use this field when paginating results to indicate where to begin in the + list of conflicting aliases. The response includes conflicting aliases + in the list that occur after the marker. To get the next page of the + list, set this field's value to the value of `NextMarker` from the + current page's response. + """ + max_items: int | None + """The maximum number of conflicting aliases that you want in the response.""" + @dataclass(kw_only=True) class ListConflictingAliasesOutput(_SerdeShape): """Dataclass for ListConflictingAliasesOutput structure.""" @@ -2143,6 +2731,24 @@ class ListConnectionFunctionsInput(_SerdeShape): stage: str | None = ... """The connection function's stage.""" +class ListConnectionFunctionsInputDict(TypedDict, total=False): + """Dictionary form of `ListConnectionFunctionsInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list. The response includes items in the list that occur after the + marker. To get the next page of the list, set this field's value to the + value of `NextMarker` from the current page's response. + """ + max_items: int | None + """ + The maximum number of connection functions that you want returned in the + response. + """ + stage: str | None + """The connection function's stage.""" + @dataclass(kw_only=True) class ListConnectionFunctionsOutput(_SerdeShape): """Dataclass for ListConnectionFunctionsOutput structure.""" @@ -2173,6 +2779,18 @@ class ListConnectionGroupsInput(_SerdeShape): max_items: int | None = ... """The maximum number of connection groups to return.""" +class ListConnectionGroupsInputDict(TypedDict, total=False): + """Dictionary form of `ListConnectionGroupsInput`.""" + + association_filter: ( + ConnectionGroupAssociationFilter | ConnectionGroupAssociationFilterDict | None + ) + """Filter by associated Anycast IP list ID.""" + marker: str | None + """The marker for the next set of connection groups to retrieve.""" + max_items: int | None + """The maximum number of connection groups to return.""" + @dataclass(kw_only=True) class ListConnectionGroupsOutput(_SerdeShape): """Dataclass for ListConnectionGroupsOutput structure.""" @@ -2211,6 +2829,23 @@ class ListContinuousDeploymentPoliciesInput(_SerdeShape): returned in the response. """ +class ListContinuousDeploymentPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListContinuousDeploymentPoliciesInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of continuous deployment policies. The response includes + policies in the list that occur after the marker. To get the next page + of the list, set this field's value to the value of `NextMarker` from + the current page's response. + """ + max_items: int | None + """ + The maximum number of continuous deployment policies that you want + returned in the response. + """ + @dataclass(kw_only=True) class ListContinuousDeploymentPoliciesOutput(_SerdeShape): """Dataclass for ListContinuousDeploymentPoliciesOutput structure.""" @@ -2244,6 +2879,24 @@ class ListDistributionsByAnycastIpListIdInput(_SerdeShape): anycast_ip_list_id: str | None = ... """The ID of the Anycast static IP list.""" +class ListDistributionsByAnycastIpListIdInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByAnycastIpListIdInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list. The response includes items in the list that occur after the + marker. To get the next page of the list, set this field's value to the + value of `NextMarker` from the current page's response. + """ + max_items: int | None + """ + The maximum number of distributions that you want returned in the + response. + """ + anycast_ip_list_id: Required[str] + """The ID of the Anycast static IP list.""" + @dataclass(kw_only=True) class ListDistributionsByAnycastIpListIdOutput(_SerdeShape): """Dataclass for ListDistributionsByAnycastIpListIdOutput structure.""" @@ -2278,6 +2931,25 @@ class ListDistributionsByCachePolicyIdInput(_SerdeShape): list. """ +class ListDistributionsByCachePolicyIdInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByCachePolicyIdInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of distribution IDs. The response includes distribution IDs in + the list that occur after the marker. To get the next page of the list, + set this field's value to the value of `NextMarker` from the current + page's response. + """ + max_items: int | None + """The maximum number of distribution IDs that you want in the response.""" + cache_policy_id: Required[str] + """ + The ID of the cache policy whose associated distribution IDs you want to + list. + """ + @dataclass(kw_only=True) class ListDistributionsByCachePolicyIdOutput(_SerdeShape): """Dataclass for ListDistributionsByCachePolicyIdOutput structure.""" @@ -2311,6 +2983,24 @@ class ListDistributionsByConnectionFunctionInput(_SerdeShape): connection_function_identifier: str | None = ... """The distributions by connection function identifier.""" +class ListDistributionsByConnectionFunctionInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByConnectionFunctionInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list. The response includes items in the list that occur after the + marker. To get the next page of the list, set this field's value to the + value of `NextMarker` from the current page's response. + """ + max_items: int | None + """ + The maximum number of distributions that you want returned in the + response. + """ + connection_function_identifier: Required[str] + """The distributions by connection function identifier.""" + @dataclass(kw_only=True) class ListDistributionsByConnectionFunctionOutput(_SerdeShape): """Dataclass for ListDistributionsByConnectionFunctionOutput structure.""" @@ -2340,6 +3030,20 @@ class ListDistributionsByConnectionModeInput(_SerdeShape): tenants (tenant-only). """ +class ListDistributionsByConnectionModeInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByConnectionModeInput`.""" + + marker: str | None + """The marker for the next set of distributions to retrieve.""" + max_items: int | None + """The maximum number of distributions to return.""" + connection_mode: Required[str] + """ + This field specifies whether the connection mode is through a standard + distribution (direct) or a multi-tenant distribution with distribution + tenants (tenant-only). + """ + @dataclass(kw_only=True) class ListDistributionsByConnectionModeOutput(_SerdeShape): """Dataclass for ListDistributionsByConnectionModeOutput structure.""" @@ -2374,6 +3078,25 @@ class ListDistributionsByKeyGroupInput(_SerdeShape): listing. """ +class ListDistributionsByKeyGroupInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByKeyGroupInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of distribution IDs. The response includes distribution IDs in + the list that occur after the marker. To get the next page of the list, + set this field's value to the value of `NextMarker` from the current + page's response. + """ + max_items: int | None + """The maximum number of distribution IDs that you want in the response.""" + key_group_id: Required[str] + """ + The ID of the key group whose associated distribution IDs you are + listing. + """ + @dataclass(kw_only=True) class ListDistributionsByKeyGroupOutput(_SerdeShape): """Dataclass for ListDistributionsByKeyGroupOutput structure.""" @@ -2408,6 +3131,25 @@ class ListDistributionsByOriginRequestPolicyIdInput(_SerdeShape): you want to list. """ +class ListDistributionsByOriginRequestPolicyIdInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByOriginRequestPolicyIdInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of distribution IDs. The response includes distribution IDs in + the list that occur after the marker. To get the next page of the list, + set this field's value to the value of `NextMarker` from the current + page's response. + """ + max_items: int | None + """The maximum number of distribution IDs that you want in the response.""" + origin_request_policy_id: Required[str] + """ + The ID of the origin request policy whose associated distribution IDs + you want to list. + """ + @dataclass(kw_only=True) class ListDistributionsByOriginRequestPolicyIdOutput(_SerdeShape): """Dataclass for ListDistributionsByOriginRequestPolicyIdOutput structure.""" @@ -2442,6 +3184,25 @@ class ListDistributionsByOwnedResourceInput(_SerdeShape): max_items: int | None = ... """The maximum number of distributions to return.""" +class ListDistributionsByOwnedResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByOwnedResourceInput`.""" + + resource_arn: Required[str] + """ + The ARN of the CloudFront resource that you've shared with other Amazon + Web Services accounts. + """ + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of distributions. The response includes distributions in the + list that occur after the marker. To get the next page of the list, set + this field's value to the value of `NextMarker` from the current + page's response. + """ + max_items: int | None + """The maximum number of distributions to return.""" + @dataclass(kw_only=True) class ListDistributionsByOwnedResourceOutput(_SerdeShape): """Dataclass for ListDistributionsByOwnedResourceOutput structure.""" @@ -2450,17 +3211,41 @@ class ListDistributionsByOwnedResourceOutput(_SerdeShape): """The list of distributions that are using the shared resource.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListDistributionsByRealtimeLogConfigInput(_SerdeShape): + """Dataclass for ListDistributionsByRealtimeLogConfigInput structure.""" + + marker: str | None = ... + """ + Use this field when paginating results to indicate where to begin in + your list of distributions. The response includes distributions in the + list that occur after the marker. To get the next page of the list, set + this field's value to the value of `NextMarker` from the current + page's response. + """ + max_items: int | None = ... + """The maximum number of distributions that you want in the response.""" + realtime_log_config_name: str | None = ... + """ + The name of the real-time log configuration whose associated + distributions you want to list. + """ + realtime_log_config_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the real-time log configuration whose + associated distributions you want to list. """ -@dataclass(kw_only=True) -class ListDistributionsByRealtimeLogConfigInput(_SerdeShape): - """Dataclass for ListDistributionsByRealtimeLogConfigInput structure.""" +class ListDistributionsByRealtimeLogConfigInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByRealtimeLogConfigInput`.""" - marker: str | None = ... + marker: str | None """ Use this field when paginating results to indicate where to begin in your list of distributions. The response includes distributions in the @@ -2468,14 +3253,14 @@ class ListDistributionsByRealtimeLogConfigInput(_SerdeShape): this field's value to the value of `NextMarker` from the current page's response. """ - max_items: int | None = ... + max_items: int | None """The maximum number of distributions that you want in the response.""" - realtime_log_config_name: str | None = ... + realtime_log_config_name: str | None """ The name of the real-time log configuration whose associated distributions you want to list. """ - realtime_log_config_arn: str | None = ... + realtime_log_config_arn: str | None """ The Amazon Resource Name (ARN) of the real-time log configuration whose associated distributions you want to list. @@ -2518,6 +3303,28 @@ class ListDistributionsByResponseHeadersPolicyIdInput(_SerdeShape): you want to list. """ +class ListDistributionsByResponseHeadersPolicyIdInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByResponseHeadersPolicyIdInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of distribution IDs. The response includes distribution IDs in + the list that occur after the marker. To get the next page of the list, + set this field's value to the value of `NextMarker` from the current + page's response. + """ + max_items: int | None + """ + The maximum number of distribution IDs that you want to get in the + response. + """ + response_headers_policy_id: Required[str] + """ + The ID of the response headers policy whose associated distribution IDs + you want to list. + """ + @dataclass(kw_only=True) class ListDistributionsByResponseHeadersPolicyIdOutput(_SerdeShape): """ @@ -2554,6 +3361,24 @@ class ListDistributionsByTrustStoreInput(_SerdeShape): response. """ +class ListDistributionsByTrustStoreInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByTrustStoreInput`.""" + + trust_store_identifier: Required[str] + """The distributions by trust store identifier.""" + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list. The response includes items in the list that occur after the + marker. To get the next page of the list, set this field's value to the + value of `NextMarker` from the current page's response. + """ + max_items: int | None + """ + The maximum number of distributions that you want returned in the + response. + """ + @dataclass(kw_only=True) class ListDistributionsByTrustStoreOutput(_SerdeShape): """Dataclass for ListDistributionsByTrustStoreOutput structure.""" @@ -2579,6 +3404,16 @@ class ListDistributionsByVpcOriginIdInput(_SerdeShape): vpc_origin_id: str | None = ... """The VPC origin ID.""" +class ListDistributionsByVpcOriginIdInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByVpcOriginIdInput`.""" + + marker: str | None + """The marker associated with the VPC origin distributions list.""" + max_items: int | None + """The maximum number of items included in the list.""" + vpc_origin_id: Required[str] + """The VPC origin ID.""" + @dataclass(kw_only=True) class ListDistributionsByVpcOriginIdOutput(_SerdeShape): """Dataclass for ListDistributionsByVpcOriginIdOutput structure.""" @@ -2627,6 +3462,36 @@ class ListDistributionsByWebACLIdInput(_SerdeShape): `a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`. """ +class ListDistributionsByWebACLIdInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsByWebACLIdInput`.""" + + marker: str | None + """ + Use `Marker` and `MaxItems` to control pagination of results. If you + have more than `MaxItems` distributions that satisfy the request, the + response includes a `NextMarker` element. To get the next page of + results, submit another request. For the value of `Marker`, specify the + value of `NextMarker` from the last response. (For the first request, + omit `Marker`.) + """ + max_items: int | None + """ + The maximum number of distributions that you want CloudFront to return + in the response body. The maximum and default values are both 100. + """ + web_acl_id: Required[str] + """ + The ID of the WAF web ACL that you want to list the associated + distributions. If you specify \"null\" for the ID, the request returns a + list of the distributions that aren't associated with a web ACL. + + For WAFV2, this is the ARN of the web ACL, such as + `arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`. + + For WAF Classic, this is the ID of the web ACL, such as + `a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`. + """ + @dataclass(kw_only=True) class ListDistributionsByWebACLIdOutput(_SerdeShape): """ @@ -2659,6 +3524,20 @@ class ListDistributionsInput(_SerdeShape): max_items: int | None = ... """The maximum number of distributions you want in the response body.""" +class ListDistributionsInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionsInput`.""" + + marker: str | None + """ + Use this when paginating results to indicate where to begin in your list + of distributions. The results include distributions in the list that + occur after the marker. To get the next page of results, set the + `Marker` to the value of the `NextMarker` from the current page's + response (which is also the ID of the last distribution on that page). + """ + max_items: int | None + """The maximum number of distributions you want in the response body.""" + @dataclass(kw_only=True) class ListDistributionsOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -2689,6 +3568,21 @@ class ListDistributionTenantsByCustomizationInput(_SerdeShape): customization. """ +class ListDistributionTenantsByCustomizationInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionTenantsByCustomizationInput`.""" + + web_acl_arn: str | None + """Filter by the ARN of the associated WAF web ACL.""" + certificate_arn: str | None + """Filter by the ARN of the associated ACM certificate.""" + marker: str | None + """The marker for the next set of results.""" + max_items: int | None + """ + The maximum number of distribution tenants to return by the specified + customization. + """ + @dataclass(kw_only=True) class ListDistributionTenantsByCustomizationOutput(_SerdeShape): """Dataclass for ListDistributionTenantsByCustomizationOutput structure.""" @@ -2720,6 +3614,20 @@ class ListDistributionTenantsInput(_SerdeShape): max_items: int | None = ... """The maximum number of distribution tenants to return.""" +class ListDistributionTenantsInputDict(TypedDict, total=False): + """Dictionary form of `ListDistributionTenantsInput`.""" + + association_filter: ( + DistributionTenantAssociationFilter + | DistributionTenantAssociationFilterDict + | None + ) + """Filter by the associated distribution ID or connection group ID.""" + marker: str | None + """The marker for the next set of results.""" + max_items: int | None + """The maximum number of distribution tenants to return.""" + @dataclass(kw_only=True) class ListDistributionTenantsOutput(_SerdeShape): """Dataclass for ListDistributionTenantsOutput structure.""" @@ -2757,6 +3665,24 @@ class ListDomainConflictsInput(_SerdeShape): marker: str | None = ... """The marker for the next set of domain conflicts.""" +class ListDomainConflictsInputDict(TypedDict, total=False): + """Dictionary form of `ListDomainConflictsInput`.""" + + domain: Required[str] + """The domain to check for conflicts.""" + domain_control_validation_resource: Required[ + DistributionResourceId | DistributionResourceIdDict + ] + """ + The distribution resource identifier. This can be the standard + distribution or distribution tenant that has a valid certificate, which + covers the domain that you specify. + """ + max_items: int | None + """The maximum number of domain conflicts to return.""" + marker: str | None + """The marker for the next set of domain conflicts.""" + @dataclass(kw_only=True) class ListDomainConflictsOutput(_SerdeShape): """Dataclass for ListDomainConflictsOutput structure.""" @@ -2795,6 +3721,23 @@ class ListFieldLevelEncryptionConfigsInput(_SerdeShape): the response body. """ +class ListFieldLevelEncryptionConfigsInputDict(TypedDict, total=False): + """Dictionary form of `ListFieldLevelEncryptionConfigsInput`.""" + + marker: str | None + """ + Use this when paginating results to indicate where to begin in your list + of configurations. The results include configurations in the list that + occur after the marker. To get the next page of results, set the + `Marker` to the value of the `NextMarker` from the current page's + response (which is also the ID of the last configuration on that page). + """ + max_items: int | None + """ + The maximum number of field-level encryption configurations you want in + the response body. + """ + @dataclass(kw_only=True) class ListFieldLevelEncryptionConfigsOutput(_SerdeShape): """Dataclass for ListFieldLevelEncryptionConfigsOutput structure.""" @@ -2830,6 +3773,23 @@ class ListFieldLevelEncryptionProfilesInput(_SerdeShape): response body. """ +class ListFieldLevelEncryptionProfilesInputDict(TypedDict, total=False): + """Dictionary form of `ListFieldLevelEncryptionProfilesInput`.""" + + marker: str | None + """ + Use this when paginating results to indicate where to begin in your list + of profiles. The results include profiles in the list that occur after + the marker. To get the next page of results, set the `Marker` to the + value of the `NextMarker` from the current page's response (which is + also the ID of the last profile on that page). + """ + max_items: int | None + """ + The maximum number of field-level encryption profiles you want in the + response body. + """ + @dataclass(kw_only=True) class ListFieldLevelEncryptionProfilesOutput(_SerdeShape): """Dataclass for ListFieldLevelEncryptionProfilesOutput structure.""" @@ -2867,6 +3827,25 @@ class ListFunctionsInput(_SerdeShape): specified stage, either `DEVELOPMENT` or `LIVE`. """ +class ListFunctionsInputDict(TypedDict, total=False): + """Dictionary form of `ListFunctionsInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of functions. The response includes functions in the list that + occur after the marker. To get the next page of the list, set this + field's value to the value of `NextMarker` from the current page's + response. + """ + max_items: int | None + """The maximum number of functions that you want in the response.""" + stage: str | None + """ + An optional filter to return only the functions that are in the + specified stage, either `DEVELOPMENT` or `LIVE`. + """ + @dataclass(kw_only=True) class ListFunctionsOutput(_SerdeShape): """Dataclass for ListFunctionsOutput structure.""" @@ -2903,6 +3882,27 @@ class ListInvalidationsForDistributionTenantInput(_SerdeShape): tenant. """ +class ListInvalidationsForDistributionTenantInputDict(TypedDict, total=False): + """Dictionary form of `ListInvalidationsForDistributionTenantInput`.""" + + id: Required[str] + """The ID of the distribution tenant.""" + marker: str | None + """ + Use this parameter when paginating results to indicate where to begin in + your list of invalidation batches. Because the results are returned in + decreasing order from most recent to oldest, the most recent results are + on the first page, the second page will contain earlier results, and so + on. To get the next page of results, set `Marker` to the value of the + `NextMarker` from the current page's response. This value is the same + as the ID of the last invalidation batch on that page. + """ + max_items: int | None + """ + The maximum number of invalidations to return for the distribution + tenant. + """ + @dataclass(kw_only=True) class ListInvalidationsForDistributionTenantOutput(_SerdeShape): """Dataclass for ListInvalidationsForDistributionTenantOutput structure.""" @@ -2945,6 +3945,27 @@ class ListInvalidationsInput(_SerdeShape): body. """ +class ListInvalidationsInputDict(TypedDict, total=False): + """Dictionary form of `ListInvalidationsInput`.""" + + distribution_id: Required[str] + """The distribution's ID.""" + marker: str | None + """ + Use this parameter when paginating results to indicate where to begin in + your list of invalidation batches. Because the results are returned in + decreasing order from most recent to oldest, the most recent results are + on the first page, the second page will contain earlier results, and so + on. To get the next page of results, set `Marker` to the value of the + `NextMarker` from the current page's response. This value is the same + as the ID of the last invalidation batch on that page. + """ + max_items: int | None + """ + The maximum number of invalidation batches that you want in the response + body. + """ + @dataclass(kw_only=True) class ListInvalidationsOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -2974,6 +3995,20 @@ class ListKeyGroupsInput(_SerdeShape): max_items: int | None = ... """The maximum number of key groups that you want in the response.""" +class ListKeyGroupsInputDict(TypedDict, total=False): + """Dictionary form of `ListKeyGroupsInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of key groups. The response includes key groups in the list + that occur after the marker. To get the next page of the list, set this + field's value to the value of `NextMarker` from the current page's + response. + """ + max_items: int | None + """The maximum number of key groups that you want in the response.""" + @dataclass(kw_only=True) class ListKeyGroupsOutput(_SerdeShape): """Dataclass for ListKeyGroupsOutput structure.""" @@ -2999,6 +4034,16 @@ class ListKeyValueStoresInput(_SerdeShape): status: str | None = ... """The status of the request for the key value stores list.""" +class ListKeyValueStoresInputDict(TypedDict, total=False): + """Dictionary form of `ListKeyValueStoresInput`.""" + + marker: str | None + """The marker associated with the key value stores list.""" + max_items: int | None + """The maximum number of items in the key value stores list.""" + status: str | None + """The status of the request for the key value stores list.""" + @dataclass(kw_only=True) class ListKeyValueStoresOutput(_SerdeShape): """Dataclass for ListKeyValueStoresOutput structure.""" @@ -3031,6 +4076,23 @@ class ListOriginAccessControlsInput(_SerdeShape): response. """ +class ListOriginAccessControlsInputDict(TypedDict, total=False): + """Dictionary form of `ListOriginAccessControlsInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of origin access controls. The response includes the items in + the list that occur after the marker. To get the next page of the list, + set this field's value to the value of `NextMarker` from the current + page's response. + """ + max_items: int | None + """ + The maximum number of origin access controls that you want in the + response. + """ + @dataclass(kw_only=True) class ListOriginAccessControlsOutput(_SerdeShape): """Dataclass for ListOriginAccessControlsOutput structure.""" @@ -3074,6 +4136,34 @@ class ListOriginRequestPoliciesInput(_SerdeShape): response. """ +class ListOriginRequestPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListOriginRequestPoliciesInput`.""" + + type: str | None + """ + A filter to return only the specified kinds of origin request policies. + Valid values are: + + - `managed` -- Returns only the managed policies created by Amazon Web + Services. + + - `custom` -- Returns only the custom policies created in your Amazon + Web Services account. + """ + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of origin request policies. The response includes origin + request policies in the list that occur after the marker. To get the + next page of the list, set this field's value to the value of + `NextMarker` from the current page's response. + """ + max_items: int | None + """ + The maximum number of origin request policies that you want in the + response. + """ + @dataclass(kw_only=True) class ListOriginRequestPoliciesOutput(_SerdeShape): """Dataclass for ListOriginRequestPoliciesOutput structure.""" @@ -3103,6 +4193,20 @@ class ListPublicKeysInput(_SerdeShape): max_items: int | None = ... """The maximum number of public keys you want in the response body.""" +class ListPublicKeysInputDict(TypedDict, total=False): + """Dictionary form of `ListPublicKeysInput`.""" + + marker: str | None + """ + Use this when paginating results to indicate where to begin in your list + of public keys. The results include public keys in the list that occur + after the marker. To get the next page of results, set the `Marker` to + the value of the `NextMarker` from the current page's response (which + is also the ID of the last public key on that page). + """ + max_items: int | None + """The maximum number of public keys you want in the response body.""" + @dataclass(kw_only=True) class ListPublicKeysOutput(_SerdeShape): """Dataclass for ListPublicKeysOutput structure.""" @@ -3138,6 +4242,23 @@ class ListRealtimeLogConfigsInput(_SerdeShape): `NextMarker` from the current page's response. """ +class ListRealtimeLogConfigsInputDict(TypedDict, total=False): + """Dictionary form of `ListRealtimeLogConfigsInput`.""" + + max_items: int | None + """ + The maximum number of real-time log configurations that you want in the + response. + """ + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of real-time log configurations. The response includes + real-time log configurations in the list that occur after the marker. To + get the next page of the list, set this field's value to the value of + `NextMarker` from the current page's response. + """ + @dataclass(kw_only=True) class ListRealtimeLogConfigsOutput(_SerdeShape): """Dataclass for ListRealtimeLogConfigsOutput structure.""" @@ -3181,6 +4302,34 @@ class ListResponseHeadersPoliciesInput(_SerdeShape): the response. """ +class ListResponseHeadersPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListResponseHeadersPoliciesInput`.""" + + type: str | None + """ + A filter to get only the specified kind of response headers policies. + Valid values are: + + - `managed` -- Gets only the managed policies created by Amazon Web + Services. + + - `custom` -- Gets only the custom policies created in your Amazon Web + Services account. + """ + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list of response headers policies. The response includes response + headers policies in the list that occur after the marker. To get the + next page of the list, set this field's value to the value of + `NextMarker` from the current page's response. + """ + max_items: int | None + """ + The maximum number of response headers policies that you want to get in + the response. + """ + @dataclass(kw_only=True) class ListResponseHeadersPoliciesOutput(_SerdeShape): """Dataclass for ListResponseHeadersPoliciesOutput structure.""" @@ -3204,6 +4353,14 @@ class ListStreamingDistributionsInput(_SerdeShape): max_items: int | None = ... """The value that you provided for the `MaxItems` request parameter.""" +class ListStreamingDistributionsInputDict(TypedDict, total=False): + """Dictionary form of `ListStreamingDistributionsInput`.""" + + marker: str | None + """The value that you provided for the `Marker` request parameter.""" + max_items: int | None + """The value that you provided for the `MaxItems` request parameter.""" + @dataclass(kw_only=True) class ListStreamingDistributionsOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -3225,6 +4382,12 @@ class ListTagsForResourceInput(_SerdeShape): resource: str | None = ... """An ARN of a CloudFront resource.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource: Required[str] + """An ARN of a CloudFront resource.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -3256,6 +4419,22 @@ class ListTrustStoresInput(_SerdeShape): response. """ +class ListTrustStoresInputDict(TypedDict, total=False): + """Dictionary form of `ListTrustStoresInput`.""" + + marker: str | None + """ + Use this field when paginating results to indicate where to begin in + your list. The response includes items in the list that occur after the + marker. To get the next page of the list, set this field's value to the + value of `NextMarker` from the current page's response. + """ + max_items: int | None + """ + The maximum number of trust stores that you want returned in the + response. + """ + @dataclass(kw_only=True) class ListTrustStoresOutput(_SerdeShape): """Dataclass for ListTrustStoresOutput structure.""" @@ -3284,6 +4463,14 @@ class ListVpcOriginsInput(_SerdeShape): max_items: int | None = ... """The maximum number of items included in the list.""" +class ListVpcOriginsInputDict(TypedDict, total=False): + """Dictionary form of `ListVpcOriginsInput`.""" + + marker: str | None + """The marker associated with the VPC origins list.""" + max_items: int | None + """The maximum number of items included in the list.""" + @dataclass(kw_only=True) class ListVpcOriginsOutput(_SerdeShape): """Dataclass for ListVpcOriginsOutput structure.""" @@ -3350,6 +4537,42 @@ class LoggingConfig(_SerdeShape): must include an empty `Prefix` element in the `Logging` element. """ +class LoggingConfigDict(TypedDict, total=False): + """Dictionary form of `LoggingConfig`.""" + + enabled: bool | None + """ + Specifies whether you want CloudFront to save access logs to an Amazon + S3 bucket. If you don't want to enable logging when you create a + distribution or if you want to disable logging for an existing + distribution, specify `false` for `Enabled`, and specify empty `Bucket` + and `Prefix` elements. If you specify `false` for `Enabled` but you + specify values for `Bucket` and `prefix`, the values are automatically + deleted. + """ + include_cookies: bool | None + """ + Specifies whether you want CloudFront to include cookies in access logs, + specify `true` for `IncludeCookies`. If you choose to include cookies in + logs, CloudFront logs all cookies regardless of how you configure the + cache behaviors for this distribution. If you don't want to include + cookies when you create a distribution or if you want to disable include + cookies for an existing distribution, specify `false` for + `IncludeCookies`. + """ + bucket: str | None + """ + The Amazon S3 bucket to store the access logs in, for example, + `amzn-s3-demo-bucket.s3.amazonaws.com`. + """ + prefix: str | None + """ + An optional string that you want CloudFront to prefix to the access log + `filenames` for this distribution, for example, `myprefix/`. If you want + to enable logging, but you don't want to specify a prefix, you still + must include an empty `Prefix` element in the `Logging` element. + """ + @dataclass(kw_only=True) class ManagedCertificateDetails(_SerdeShape): """Contains details about the CloudFront managed ACM certificate.""" @@ -3430,6 +4653,39 @@ class ManagedCertificateRequest(_SerdeShape): in the *Certificate Manager User Guide*. """ +class ManagedCertificateRequestDict(TypedDict, total=False): + """Dictionary form of `ManagedCertificateRequest`.""" + + validation_token_host: Required[str] + """ + Specify how the HTTP validation token will be served when requesting the + CloudFront managed ACM certificate. + + - For `cloudfront`, CloudFront will automatically serve the validation + token. Choose this mode if you can point the domain's DNS to + CloudFront immediately. + + - For `self-hosted`, you serve the validation token from your existing + infrastructure. Choose this mode when you need to maintain current + traffic flow while your certificate is being issued. You can place the + validation token at the well-known path on your existing web server, + wait for ACM to validate and issue the certificate, and then update + your DNS to point to CloudFront. + """ + primary_domain_name: str | None + """ + The primary domain name associated with the CloudFront managed ACM + certificate. + """ + certificate_transparency_logging_preference: str | None + """ + You can opt out of certificate transparency logging by specifying the + `disabled` option. Opt in by specifying `enabled`. For more information, + see [Certificate Transparency + Logging](https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency) + in the *Certificate Manager User Guide*. + """ + class ManagedCertificateStatus(UnknownEnumMixin, StrEnum): PENDING_VALIDATION = "pending-validation" ISSUED = "issued" @@ -3485,6 +4741,14 @@ class MonitoringSubscription(_SerdeShape): realtime_metrics_subscription_config: RealtimeMetricsSubscriptionConfig | None = ... """A subscription configuration for additional CloudWatch metrics.""" +class MonitoringSubscriptionDict(TypedDict, total=False): + """Dictionary form of `MonitoringSubscription`.""" + + realtime_metrics_subscription_config: ( + RealtimeMetricsSubscriptionConfig | RealtimeMetricsSubscriptionConfigDict | None + ) + """A subscription configuration for additional CloudWatch metrics.""" + @dataclass(kw_only=True) class MonitoringSubscriptionAlreadyExists(ServiceError, _SerdeShape): """A monitoring subscription already exists for the specified distribution.""" @@ -3845,6 +5109,119 @@ class Origin(_SerdeShape): in the *Amazon CloudFront Developer Guide*. """ +class OriginDict(TypedDict, total=False): + """Dictionary form of `Origin`.""" + + id: Required[str] + """ + A unique identifier for the origin. This value must be unique within the + distribution. + + Use this value to specify the `TargetOriginId` in a `CacheBehavior` or + `DefaultCacheBehavior`. + """ + domain_name: Required[str] + """ + The domain name for the origin. + + For more information, see [Origin Domain + Name](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName) + in the *Amazon CloudFront Developer Guide*. + """ + origin_path: str | None + """ + An optional path that CloudFront appends to the origin domain name when + CloudFront requests content from the origin. + + For more information, see [Origin + Path](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath) + in the *Amazon CloudFront Developer Guide*. + """ + custom_headers: CustomHeaders | CustomHeadersDict | None + """ + A list of HTTP header names and values that CloudFront adds to the + requests that it sends to the origin. + + For more information, see [Adding Custom Headers to Origin + Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html) + in the *Amazon CloudFront Developer Guide*. + """ + s3_origin_config: S3OriginConfig | S3OriginConfigDict | None + """ + Use this type to specify an origin that is an Amazon S3 bucket that is + not configured with static website hosting. To specify any other type of + origin, including an Amazon S3 bucket that is configured with static + website hosting, use the `CustomOriginConfig` type instead. + """ + custom_origin_config: CustomOriginConfig | CustomOriginConfigDict | None + """ + Use this type to specify an origin that is not an Amazon S3 bucket, with + one exception. If the Amazon S3 bucket is configured with static website + hosting, use this type. If the Amazon S3 bucket is not configured with + static website hosting, use the `S3OriginConfig` type instead. + """ + vpc_origin_config: VpcOriginConfig | VpcOriginConfigDict | None + """The VPC origin configuration.""" + connection_attempts: int | None + """ + The number of times that CloudFront attempts to connect to the origin. + The minimum number is 1, the maximum is 3, and the default (if you + don't specify otherwise) is 3. + + For a custom origin (including an Amazon S3 bucket that's configured + with static website hosting), this value also specifies the number of + times that CloudFront attempts to get a response from the origin, in the + case of an [Origin Response + Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout). + + For more information, see [Origin Connection + Attempts](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-attempts) + in the *Amazon CloudFront Developer Guide*. + """ + connection_timeout: int | None + """ + The number of seconds that CloudFront waits when trying to establish a + connection to the origin. The minimum timeout is 1 second, the maximum + is 10 seconds, and the default (if you don't specify otherwise) is 10 + seconds. + + For more information, see [Origin Connection + Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-timeout) + in the *Amazon CloudFront Developer Guide*. + """ + response_completion_timeout: int | None + """ + The time (in seconds) that a request from CloudFront to the origin can + stay open and wait for a response. If the complete response isn't + received from the origin by this time, CloudFront ends the connection. + + The value for `ResponseCompletionTimeout` must be equal to or greater + than the value for `OriginReadTimeout`. If you don't set a value for + `ResponseCompletionTimeout`, CloudFront doesn't enforce a maximum + value. + + For more information, see [Response completion + timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#response-completion-timeout) + in the *Amazon CloudFront Developer Guide*. + """ + origin_shield: OriginShield | OriginShieldDict | None + """ + CloudFront Origin Shield. Using Origin Shield can help reduce the load + on your origin. + + For more information, see [Using Origin + Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) + in the *Amazon CloudFront Developer Guide*. + """ + origin_access_control_id: str | None + """ + The unique identifier of an origin access control for this origin. + + For more information, see [Restricting access to an Amazon S3 + origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) + in the *Amazon CloudFront Developer Guide*. + """ + @dataclass(kw_only=True) class OriginAccessControl(_SerdeShape): """A CloudFront origin access control, including its unique identifier.""" @@ -3924,6 +5301,63 @@ class OriginAccessControlConfig(_SerdeShape): origin_access_control_origin_type: str """The type of origin that this origin access control is for.""" +class OriginAccessControlConfigDict(TypedDict, total=False): + """Dictionary form of `OriginAccessControlConfig`.""" + + name: Required[str] + """ + A name to identify the origin access control. You can specify up to 64 + characters. + """ + description: str | None + """A description of the origin access control.""" + signing_protocol: Required[str] + """ + The signing protocol of the origin access control, which determines how + CloudFront signs (authenticates) requests. The only valid values are + `sigv4` and `sigv4a`. + """ + signing_behavior: Required[str] + """ + Specifies which requests CloudFront signs (adds authentication + information to). Specify `always` for the most common use case. For more + information, see [origin access control advanced + settings](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html#oac-advanced-settings) + in the *Amazon CloudFront Developer Guide*. + + This field can have one of the following values: + + - `always` -- CloudFront signs all origin requests, overwriting the + `Authorization` header from the viewer request if one exists. + + - `never` -- CloudFront doesn't sign any origin requests. This value + turns off origin access control for all origins in all distributions + that use this origin access control. + + - `no-override` -- If the viewer request doesn't contain the + `Authorization` header, then CloudFront signs the origin request. If + the viewer request contains the `Authorization` header, then + CloudFront doesn't sign the origin request and instead passes along + the `Authorization` header from the viewer request. **WARNING: To pass + along the `Authorization` header from the viewer request, you *must* + add the `Authorization` header to a [cache + policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html) + for all cache behaviors that use origins associated with this origin + access control.** + + - `always-amz-auth` -- CloudFront signs all origin requests with Amazon + authentication headers. If the viewer request contains the + `Authorization` header, then CloudFront also forwards that header to + the origin. This value is only valid with Lambda-Web origins. + **WARNING: To forward the `Authorization` header from the viewer + request, you *must* add the `Authorization` header to a [cache + policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html) + for all cache behaviors that use origins associated with this origin + access control.** + """ + origin_access_control_origin_type: Required[str] + """The type of origin that this origin access control is for.""" + @dataclass(kw_only=True) class OriginAccessControlInUse(ServiceError, _SerdeShape): """ diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_2.pyi b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_2.pyi index b04e54fc8..d7f692bb2 100644 --- a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_2.pyi +++ b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/models_2.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -10,48 +12,74 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( ActiveTrustedSigners, Aliases, + AliasesDict, AnycastIpList, CaCertificatesBundleSource, + CaCertificatesBundleSourceDict, CachePolicy, CachePolicyConfig, + CachePolicyConfigDict, CachePolicyCookiesConfig, + CachePolicyCookiesConfigDict, CachePolicyHeadersConfig, + CachePolicyHeadersConfigDict, CachePolicyQueryStringsConfig, + CachePolicyQueryStringsConfigDict, CloudFrontOriginAccessIdentity, CloudFrontOriginAccessIdentityConfig, + CloudFrontOriginAccessIdentityConfigDict, ConnectionFunctionSummary, ConnectionFunctionTestResult, ConnectionGroup, ContinuousDeploymentPolicy, ContinuousDeploymentPolicyConfig, + ContinuousDeploymentPolicyConfigDict, ContinuousDeploymentSingleHeaderConfig, + ContinuousDeploymentSingleHeaderConfigDict, ContinuousDeploymentSingleWeightConfig, + ContinuousDeploymentSingleWeightConfigDict, CookieNames, + CookieNamesDict, Customizations, + CustomizationsDict, Distribution, DistributionConfig, + DistributionConfigDict, DistributionResourceId, + DistributionResourceIdDict, DistributionTenant, DnsConfiguration, DomainItem, + DomainItemDict, EndPoint, + EndPointDict, FieldLevelEncryption, FieldLevelEncryptionConfig, + FieldLevelEncryptionConfigDict, FieldLevelEncryptionProfile, FieldLevelEncryptionProfileConfig, + FieldLevelEncryptionProfileConfigDict, FunctionConfig, + FunctionConfigDict, FunctionSummary, GeoRestriction, + GeoRestrictionDict, Headers, + HeadersDict, IpamCidrConfig, + IpamCidrConfigDict, KeyGroup, KeyGroupConfig, + KeyGroupConfigDict, KeyPairIds, KeyValueStore, ManagedCertificateRequest, + ManagedCertificateRequestDict, Origin, OriginAccessControl, OriginAccessControlConfig, + OriginAccessControlConfigDict, + OriginDict, ServiceError, _SerdeShape, ) @@ -114,6 +142,19 @@ class OriginCustomHeader(_SerdeShape): header_value: str """The value for the header that you specified in the `HeaderName` field.""" +class OriginCustomHeaderDict(TypedDict, total=False): + """Dictionary form of `OriginCustomHeader`.""" + + header_name: Required[str] + """ + The name of a header that you want CloudFront to send to your origin. + For more information, see [Adding Custom Headers to Origin + Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) + in the *Amazon CloudFront Developer Guide*. + """ + header_value: Required[str] + """The value for the header that you specified in the `HeaderName` field.""" + @dataclass(kw_only=True) class OriginGroup(_SerdeShape): """ @@ -150,6 +191,31 @@ class OriginGroup(_SerdeShape): in the *Amazon CloudFront Developer Guide*. """ +class OriginGroupDict(TypedDict, total=False): + """Dictionary form of `OriginGroup`.""" + + id: Required[str] + """The origin group's ID.""" + failover_criteria: Required[ + OriginGroupFailoverCriteria | OriginGroupFailoverCriteriaDict + ] + """ + A complex type that contains information about the failover criteria for + an origin group. + """ + members: Required[OriginGroupMembers | OriginGroupMembersDict] + """ + A complex type that contains information about the origins in an origin + group. + """ + selection_criteria: str | None + """ + The selection criteria for the origin group. For more information, see + [Create an origin + group](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html#concept_origin_groups.creating) + in the *Amazon CloudFront Developer Guide*. + """ + @dataclass(kw_only=True) class OriginGroupFailoverCriteria(_SerdeShape): """ @@ -164,6 +230,15 @@ class OriginGroupFailoverCriteria(_SerdeShape): trigger CloudFront to failover to the second origin. """ +class OriginGroupFailoverCriteriaDict(TypedDict, total=False): + """Dictionary form of `OriginGroupFailoverCriteria`.""" + + status_codes: Required[StatusCodes | StatusCodesDict] + """ + The status codes that, when returned from the primary origin, will + trigger CloudFront to failover to the second origin. + """ + @dataclass(kw_only=True) class OriginGroupMember(_SerdeShape): """An origin in an origin group.""" @@ -171,6 +246,12 @@ class OriginGroupMember(_SerdeShape): origin_id: str """The ID for an origin in an origin group.""" +class OriginGroupMemberDict(TypedDict, total=False): + """Dictionary form of `OriginGroupMember`.""" + + origin_id: Required[str] + """The ID for an origin in an origin group.""" + @dataclass(kw_only=True) class OriginGroupMembers(_SerdeShape): """A complex data type for the origins included in an origin group.""" @@ -180,6 +261,14 @@ class OriginGroupMembers(_SerdeShape): items: list[OriginGroupMember] """Items (origins) in an origin group.""" +class OriginGroupMembersDict(TypedDict, total=False): + """Dictionary form of `OriginGroupMembers`.""" + + quantity: Required[int] + """The number of origins in an origin group.""" + items: Required[Sequence[OriginGroupMember | OriginGroupMemberDict]] + """Items (origins) in an origin group.""" + @dataclass(kw_only=True) class OriginGroups(_SerdeShape): """A complex data type for the origin groups specified for a distribution.""" @@ -189,6 +278,14 @@ class OriginGroups(_SerdeShape): items: list[OriginGroup] | None = ... """The items (origin groups) in a distribution.""" +class OriginGroupsDict(TypedDict, total=False): + """Dictionary form of `OriginGroups`.""" + + quantity: Required[int] + """The number of origin groups.""" + items: Sequence[OriginGroup | OriginGroupDict] | None + """The items (origin groups) in a distribution.""" + class OriginGroupSelectionCriteria(UnknownEnumMixin, StrEnum): DEFAULT = "default" MEDIA_QUALITY_BASED = "media-quality-based" @@ -207,6 +304,16 @@ class OriginMtlsConfig(_SerdeShape): authenticate with your origin using Mutual TLS. """ +class OriginMtlsConfigDict(TypedDict, total=False): + """Dictionary form of `OriginMtlsConfig`.""" + + client_certificate_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the client certificate stored in + Amazon Web Services Certificate Manager (ACM) that CloudFront uses to + authenticate with your origin using Mutual TLS. + """ + class OriginProtocolPolicy(UnknownEnumMixin, StrEnum): HTTP_ONLY = "http-only" MATCH_VIEWER = "match-viewer" @@ -306,6 +413,36 @@ class OriginRequestPolicyConfig(_SerdeShape): requests. """ +class OriginRequestPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `OriginRequestPolicyConfig`.""" + + comment: str | None + """ + A comment to describe the origin request policy. The comment cannot be + longer than 128 characters. + """ + name: Required[str] + """A unique name to identify the origin request policy.""" + headers_config: Required[ + OriginRequestPolicyHeadersConfig | OriginRequestPolicyHeadersConfigDict + ] + """ + The HTTP headers to include in origin requests. These can include + headers from viewer requests and additional headers added by CloudFront. + """ + cookies_config: Required[ + OriginRequestPolicyCookiesConfig | OriginRequestPolicyCookiesConfigDict + ] + """The cookies from viewer requests to include in origin requests.""" + query_strings_config: Required[ + OriginRequestPolicyQueryStringsConfig + | OriginRequestPolicyQueryStringsConfigDict + ] + """ + The URL query strings from viewer requests to include in origin + requests. + """ + class OriginRequestPolicyCookieBehavior(UnknownEnumMixin, StrEnum): NONE = "none" WHITELIST = "whitelist" @@ -344,6 +481,33 @@ class OriginRequestPolicyCookiesConfig(_SerdeShape): cookies: CookieNames | None = ... """Contains a list of cookie names.""" +class OriginRequestPolicyCookiesConfigDict(TypedDict, total=False): + """Dictionary form of `OriginRequestPolicyCookiesConfig`.""" + + cookie_behavior: Required[str] + """ + Determines whether cookies in viewer requests are included in requests + that CloudFront sends to the origin. Valid values are: + + - `none` -- No cookies in viewer requests are included in requests that + CloudFront sends to the origin. Even when this field is set to `none`, + any cookies that are listed in a `CachePolicy` *are* included in + origin requests. + + - `whitelist` -- Only the cookies in viewer requests that are listed in + the `CookieNames` type are included in requests that CloudFront sends + to the origin. + + - `all` -- All cookies in viewer requests are included in requests that + CloudFront sends to the origin. + + - `allExcept` -- All cookies in viewer requests are included in requests + that CloudFront sends to the origin, ***except*** for those listed in + the `CookieNames` type, which are not included. + """ + cookies: CookieNames | CookieNamesDict | None + """Contains a list of cookie names.""" + class OriginRequestPolicyHeaderBehavior(UnknownEnumMixin, StrEnum): NONE = "none" WHITELIST = "whitelist" @@ -386,6 +550,37 @@ class OriginRequestPolicyHeadersConfig(_SerdeShape): headers: Headers | None = ... """Contains a list of HTTP header names.""" +class OriginRequestPolicyHeadersConfigDict(TypedDict, total=False): + """Dictionary form of `OriginRequestPolicyHeadersConfig`.""" + + header_behavior: Required[str] + """ + Determines whether any HTTP headers are included in requests that + CloudFront sends to the origin. Valid values are: + + - `none` -- No HTTP headers in viewer requests are included in requests + that CloudFront sends to the origin. Even when this field is set to + `none`, any headers that are listed in a `CachePolicy` *are* included + in origin requests. + + - `whitelist` -- Only the HTTP headers that are listed in the `Headers` + type are included in requests that CloudFront sends to the origin. + + - `allViewer` -- All HTTP headers in viewer requests are included in + requests that CloudFront sends to the origin. + + - `allViewerAndWhitelistCloudFront` -- All HTTP headers in viewer + requests and the additional CloudFront headers that are listed in the + `Headers` type are included in requests that CloudFront sends to the + origin. The additional headers are added by CloudFront. + + - `allExcept` -- All HTTP headers in viewer requests are included in + requests that CloudFront sends to the origin, ***except*** for those + listed in the `Headers` type, which are not included. + """ + headers: Headers | HeadersDict | None + """Contains a list of HTTP header names.""" + @dataclass(kw_only=True) class OriginRequestPolicyInUse(ServiceError, _SerdeShape): """ @@ -465,6 +660,41 @@ class OriginRequestPolicyQueryStringsConfig(_SerdeShape): strings are). """ +class OriginRequestPolicyQueryStringsConfigDict(TypedDict, total=False): + """Dictionary form of `OriginRequestPolicyQueryStringsConfig`.""" + + query_string_behavior: Required[str] + """ + Determines whether any URL query strings in viewer requests are included + in requests that CloudFront sends to the origin. Valid values are: + + - `none` -- No query strings in viewer requests are included in requests + that CloudFront sends to the origin. Even when this field is set to + `none`, any query strings that are listed in a `CachePolicy` *are* + included in origin requests. + + - `whitelist` -- Only the query strings in viewer requests that are + listed in the `QueryStringNames` type are included in requests that + CloudFront sends to the origin. + + - `all` -- All query strings in viewer requests are included in requests + that CloudFront sends to the origin. + + - `allExcept` -- All query strings in viewer requests are included in + requests that CloudFront sends to the origin, ***except*** for those + listed in the `QueryStringNames` type, which are not included. + """ + query_strings: QueryStringNames | QueryStringNamesDict | None + """ + Contains the specific query strings in viewer requests that either + ***are*** or ***are not*** included in requests that CloudFront sends to + the origin. The behavior depends on whether the `QueryStringBehavior` + field in the `OriginRequestPolicyQueryStringsConfig` type is set to + `whitelist` (the listed query strings ***are*** included) or `allExcept` + (the listed query strings ***are not*** included, but all other query + strings are). + """ + @dataclass(kw_only=True) class OriginRequestPolicySummary(_SerdeShape): """Contains an origin request policy.""" @@ -490,6 +720,14 @@ class Origins(_SerdeShape): items: list[Origin] """A list of origins.""" +class OriginsDict(TypedDict, total=False): + """Dictionary form of `Origins`.""" + + quantity: Required[int] + """The number of origins for this distribution.""" + items: Required[Sequence[Origin | OriginDict]] + """A list of origins.""" + @dataclass(kw_only=True) class OriginShield(_SerdeShape): """ @@ -527,6 +765,35 @@ class OriginShield(_SerdeShape): in the *Amazon CloudFront Developer Guide*. """ +class OriginShieldDict(TypedDict, total=False): + """Dictionary form of `OriginShield`.""" + + enabled: Required[bool] + """ + A flag that specifies whether Origin Shield is enabled. + + When it's enabled, CloudFront routes all requests through Origin + Shield, which can help protect your origin. When it's disabled, + CloudFront might send requests directly to your origin from multiple + edge locations or regional edge caches. + """ + origin_shield_region: str | None + """ + The Amazon Web Services Region for Origin Shield. + + Specify the Amazon Web Services Region that has the lowest latency to + your origin. To specify a region, use the region code, not the region + name. For example, specify the US East (Ohio) region as `us-east-2`. + + When you enable CloudFront Origin Shield, you must specify the Amazon + Web Services Region for Origin Shield. For the list of Amazon Web + Services Regions that you can specify, and for help choosing the best + Region for your origin, see [Choosing the Amazon Web Services Region for + Origin + Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region) + in the *Amazon CloudFront Developer Guide*. + """ + @dataclass(kw_only=True) class OriginSslProtocols(_SerdeShape): """ @@ -543,6 +810,17 @@ class OriginSslProtocols(_SerdeShape): items: list[str] """A list that contains allowed SSL/TLS protocols for this distribution.""" +class OriginSslProtocolsDict(TypedDict, total=False): + """Dictionary form of `OriginSslProtocols`.""" + + quantity: Required[int] + """ + The number of SSL/TLS protocols that you want to allow CloudFront to use + when establishing an HTTPS connection with this origin. + """ + items: Required[Sequence[str]] + """A list that contains allowed SSL/TLS protocols for this distribution.""" + @dataclass(kw_only=True) class Parameter(_SerdeShape): """ @@ -557,6 +835,14 @@ class Parameter(_SerdeShape): value: str """The parameter value.""" +class ParameterDict(TypedDict, total=False): + """Dictionary form of `Parameter`.""" + + name: Required[str] + """The parameter name.""" + value: Required[str] + """The parameter value.""" + @dataclass(kw_only=True) class ParameterDefinition(_SerdeShape): """ @@ -571,6 +857,14 @@ class ParameterDefinition(_SerdeShape): definition: ParameterDefinitionSchema """The value that you assigned to the parameter.""" +class ParameterDefinitionDict(TypedDict, total=False): + """Dictionary form of `ParameterDefinition`.""" + + name: Required[str] + """The name of the parameter.""" + definition: Required[ParameterDefinitionSchema | ParameterDefinitionSchemaDict] + """The value that you assigned to the parameter.""" + @dataclass(kw_only=True) class ParameterDefinitionSchema(_SerdeShape): """An object that contains information about the parameter definition.""" @@ -578,6 +872,12 @@ class ParameterDefinitionSchema(_SerdeShape): string_schema: StringSchemaConfig | None = ... """An object that contains information about the string schema.""" +class ParameterDefinitionSchemaDict(TypedDict, total=False): + """Dictionary form of `ParameterDefinitionSchema`.""" + + string_schema: StringSchemaConfig | StringSchemaConfigDict | None + """An object that contains information about the string schema.""" + @dataclass(kw_only=True) class ParametersInCacheKeyAndForwardedToOrigin(_SerdeShape): """ @@ -681,63 +981,169 @@ class ParametersInCacheKeyAndForwardedToOrigin(_SerdeShape): and in requests that CloudFront sends to the origin. """ -@dataclass(kw_only=True) -class Paths(_SerdeShape): - """ - A complex type that contains information about the objects that you want - to invalidate. For more information, see [Specifying the Objects to - Invalidate](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects) - in the *Amazon CloudFront Developer Guide*. - """ +class ParametersInCacheKeyAndForwardedToOriginDict(TypedDict, total=False): + """Dictionary form of `ParametersInCacheKeyAndForwardedToOrigin`.""" - quantity: int - """ - The number of invalidation paths specified for the objects that you want - to invalidate. - """ - items: list[str] | None = ... - """ - A complex type that contains a list of the paths that you want to - invalidate. + enable_accept_encoding_gzip: Required[bool] """ + A flag that can affect whether the `Accept-Encoding` HTTP header is + included in the cache key and included in requests that CloudFront sends + to the origin. -@dataclass(kw_only=True) -class PreconditionFailed(ServiceError, _SerdeShape): - """ - The precondition in one or more of the request fields evaluated to - `false`. - """ + This field is related to the `EnableAcceptEncodingBrotli` field. If one + or both of these fields is `true` *and* the viewer request includes the + `Accept-Encoding` header, then CloudFront does the following: - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - Normalizes the value of the viewer's `Accept-Encoding` header -class PriceClass(UnknownEnumMixin, StrEnum): - PRICE_CLASS_100 = "PriceClass_100" - PRICE_CLASS_200 = "PriceClass_200" - PRICE_CLASS_ALL = "PriceClass_All" - NONE = "None" + - Includes the normalized header in the cache key -@dataclass(kw_only=True) -class PublicKey(_SerdeShape): - """ - A public key that you can use with [signed URLs and signed - cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html), - or with [field-level - encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html). + - Includes the normalized header in the request to the origin, if a + request is necessary - CloudFront supports signed URLs and signed cookies with RSA 2048 or - ECDSA 256 key signatures. Field-level encryption is only compatible with - RSA 2048 key signatures. - """ + For more information, see [Compression + support](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects) + in the *Amazon CloudFront Developer Guide*. - id: str - """The identifier of the public key.""" - created_time: datetime + If you set this value to `true`, and this cache behavior also has an + origin request policy attached, do not include the `Accept-Encoding` + header in the origin request policy. CloudFront always includes the + `Accept-Encoding` header in origin requests when the value of this field + is `true`, so including this header in an origin request policy has no + effect. + + If both of these fields are `false`, then CloudFront treats the + `Accept-Encoding` header the same as any other HTTP header in the viewer + request. By default, it's not included in the cache key and it's not + included in origin requests. In this case, you can manually add + `Accept-Encoding` to the headers whitelist like any other HTTP header. + """ + enable_accept_encoding_brotli: bool | None + """ + A flag that can affect whether the `Accept-Encoding` HTTP header is + included in the cache key and included in requests that CloudFront sends + to the origin. + + This field is related to the `EnableAcceptEncodingGzip` field. If one or + both of these fields is `true` *and* the viewer request includes the + `Accept-Encoding` header, then CloudFront does the following: + + - Normalizes the value of the viewer's `Accept-Encoding` header + + - Includes the normalized header in the cache key + + - Includes the normalized header in the request to the origin, if a + request is necessary + + For more information, see [Compression + support](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-policy-compressed-objects) + in the *Amazon CloudFront Developer Guide*. + + If you set this value to `true`, and this cache behavior also has an + origin request policy attached, do not include the `Accept-Encoding` + header in the origin request policy. CloudFront always includes the + `Accept-Encoding` header in origin requests when the value of this field + is `true`, so including this header in an origin request policy has no + effect. + + If both of these fields are `false`, then CloudFront treats the + `Accept-Encoding` header the same as any other HTTP header in the viewer + request. By default, it's not included in the cache key and it's not + included in origin requests. In this case, you can manually add + `Accept-Encoding` to the headers whitelist like any other HTTP header. + """ + headers_config: Required[CachePolicyHeadersConfig | CachePolicyHeadersConfigDict] + """ + An object that determines whether any HTTP headers (and if so, which + headers) are included in the cache key and in requests that CloudFront + sends to the origin. + """ + cookies_config: Required[CachePolicyCookiesConfig | CachePolicyCookiesConfigDict] + """ + An object that determines whether any cookies in viewer requests (and if + so, which cookies) are included in the cache key and in requests that + CloudFront sends to the origin. + """ + query_strings_config: Required[ + CachePolicyQueryStringsConfig | CachePolicyQueryStringsConfigDict + ] + """ + An object that determines whether any URL query strings in viewer + requests (and if so, which query strings) are included in the cache key + and in requests that CloudFront sends to the origin. + """ + +@dataclass(kw_only=True) +class Paths(_SerdeShape): + """ + A complex type that contains information about the objects that you want + to invalidate. For more information, see [Specifying the Objects to + Invalidate](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects) + in the *Amazon CloudFront Developer Guide*. + """ + + quantity: int + """ + The number of invalidation paths specified for the objects that you want + to invalidate. + """ + items: list[str] | None = ... + """ + A complex type that contains a list of the paths that you want to + invalidate. + """ + +class PathsDict(TypedDict, total=False): + """Dictionary form of `Paths`.""" + + quantity: Required[int] + """ + The number of invalidation paths specified for the objects that you want + to invalidate. + """ + items: Sequence[str] | None + """ + A complex type that contains a list of the paths that you want to + invalidate. + """ + +@dataclass(kw_only=True) +class PreconditionFailed(ServiceError, _SerdeShape): + """ + The precondition in one or more of the request fields evaluated to + `false`. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class PriceClass(UnknownEnumMixin, StrEnum): + PRICE_CLASS_100 = "PriceClass_100" + PRICE_CLASS_200 = "PriceClass_200" + PRICE_CLASS_ALL = "PriceClass_All" + NONE = "None" + +@dataclass(kw_only=True) +class PublicKey(_SerdeShape): + """ + A public key that you can use with [signed URLs and signed + cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html), + or with [field-level + encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html). + + CloudFront supports signed URLs and signed cookies with RSA 2048 or + ECDSA 256 key signatures. Field-level encryption is only compatible with + RSA 2048 key signatures. + """ + + id: str + """The identifier of the public key.""" + created_time: datetime """The date and time when the public key was uploaded.""" public_key_config: PublicKeyConfig """ @@ -794,6 +1200,29 @@ class PublicKeyConfig(_SerdeShape): 128 characters. """ +class PublicKeyConfigDict(TypedDict, total=False): + """Dictionary form of `PublicKeyConfig`.""" + + caller_reference: Required[str] + """ + A string included in the request to help make sure that the request + can't be replayed. + """ + name: Required[str] + """A name to help identify the public key.""" + encoded_key: Required[str] + """ + The public key that you can use with [signed URLs and signed + cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html), + or with [field-level + encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html). + """ + comment: str | None + """ + A comment to describe the public key. The comment cannot be longer than + 128 characters. + """ + @dataclass(kw_only=True) class PublicKeyInUse(ServiceError, _SerdeShape): """The specified public key is in use.""" @@ -855,6 +1284,14 @@ class PublishConnectionFunctionInput(_SerdeShape): if_match: str | None = ... """The current version (`ETag` value) of the connection function.""" +class PublishConnectionFunctionInputDict(TypedDict, total=False): + """Dictionary form of `PublishConnectionFunctionInput`.""" + + id: Required[str] + """The connection function ID.""" + if_match: Required[str] + """The current version (`ETag` value) of the connection function.""" + @dataclass(kw_only=True) class PublishConnectionFunctionOutput(_SerdeShape): """Dataclass for PublishConnectionFunctionOutput structure.""" @@ -881,6 +1318,17 @@ class PublishFunctionInput(_SerdeShape): publishing, which you can get using `DescribeFunction`. """ +class PublishFunctionInputDict(TypedDict, total=False): + """Dictionary form of `PublishFunctionInput`.""" + + name: Required[str] + """The name of the function that you are publishing.""" + if_match: Required[str] + """ + The current version (`ETag` value) of the function that you are + publishing, which you can get using `DescribeFunction`. + """ + @dataclass(kw_only=True) class PublishFunctionOutput(_SerdeShape): """Dataclass for PublishFunctionOutput structure.""" @@ -910,6 +1358,17 @@ class PutResourcePolicyInput(_SerdeShape): policy_document: str | None = ... """The JSON-formatted resource policy to create.""" +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the CloudFront resource for which the + policy is being created. + """ + policy_document: Required[str] + """The JSON-formatted resource policy to create.""" + @dataclass(kw_only=True) class PutResourcePolicyOutput(_SerdeShape): """Dataclass for PutResourcePolicyOutput structure.""" @@ -942,6 +1401,20 @@ class QueryArgProfile(_SerdeShape): mapping """ +class QueryArgProfileDict(TypedDict, total=False): + """Dictionary form of `QueryArgProfile`.""" + + query_arg: Required[str] + """ + Query argument for field-level encryption query argument-profile + mapping. + """ + profile_id: Required[str] + """ + ID of profile to use for field-level encryption query argument-profile + mapping + """ + @dataclass(kw_only=True) class QueryArgProfileConfig(_SerdeShape): """ @@ -961,6 +1434,21 @@ class QueryArgProfileConfig(_SerdeShape): encryption. """ +class QueryArgProfileConfigDict(TypedDict, total=False): + """Dictionary form of `QueryArgProfileConfig`.""" + + forward_when_query_arg_profile_is_unknown: Required[bool] + """ + Flag to set if you want a request to be forwarded to the origin even if + the profile specified by the field-level encryption query argument, + fle-profile, is unknown. + """ + query_arg_profiles: QueryArgProfiles | QueryArgProfilesDict | None + """ + Profiles specified for query argument-profile mapping for field-level + encryption. + """ + @dataclass(kw_only=True) class QueryArgProfileEmpty(ServiceError, _SerdeShape): """No profile specified for the field-level encryption query argument.""" @@ -988,6 +1476,20 @@ class QueryArgProfiles(_SerdeShape): encryption. """ +class QueryArgProfilesDict(TypedDict, total=False): + """Dictionary form of `QueryArgProfiles`.""" + + quantity: Required[int] + """ + Number of profiles for query argument-profile mapping for field-level + encryption. + """ + items: Sequence[QueryArgProfile | QueryArgProfileDict] | None + """ + Number of items for query argument-profile mapping for field-level + encryption. + """ + @dataclass(kw_only=True) class QueryStringCacheKeys(_SerdeShape): """ @@ -1018,6 +1520,21 @@ class QueryStringCacheKeys(_SerdeShape): `Quantity` is 0, you can omit `Items`. """ +class QueryStringCacheKeysDict(TypedDict, total=False): + """Dictionary form of `QueryStringCacheKeys`.""" + + quantity: Required[int] + """ + The number of `whitelisted` query string parameters for a cache + behavior. + """ + items: Sequence[str] | None + """ + A list that contains the query string parameters that you want + CloudFront to use as a basis for caching for a cache behavior. If + `Quantity` is 0, you can omit `Items`. + """ + @dataclass(kw_only=True) class QueryStringNames(_SerdeShape): """Contains a list of query string names.""" @@ -1027,6 +1544,14 @@ class QueryStringNames(_SerdeShape): items: list[str] | None = ... """A list of query string names.""" +class QueryStringNamesDict(TypedDict, total=False): + """Dictionary form of `QueryStringNames`.""" + + quantity: Required[int] + """The number of query string names in the `Items` list.""" + items: Sequence[str] | None + """A list of query string names.""" + @dataclass(kw_only=True) class RealtimeLogConfig(_SerdeShape): """A real-time log configuration.""" @@ -1141,6 +1666,15 @@ class RealtimeMetricsSubscriptionConfig(_SerdeShape): for a given CloudFront distribution. """ +class RealtimeMetricsSubscriptionConfigDict(TypedDict, total=False): + """Dictionary form of `RealtimeMetricsSubscriptionConfig`.""" + + realtime_metrics_subscription_status: Required[str] + """ + A flag that indicates whether additional CloudWatch metrics are enabled + for a given CloudFront distribution. + """ + class RealtimeMetricsSubscriptionStatus(UnknownEnumMixin, StrEnum): ENABLED = "Enabled" DISABLED = "Disabled" @@ -1223,6 +1757,14 @@ class ResponseHeadersPolicyAccessControlAllowHeaders(_SerdeShape): items: list[str] """The list of HTTP header names. You can specify `*` to allow all headers.""" +class ResponseHeadersPolicyAccessControlAllowHeadersDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyAccessControlAllowHeaders`.""" + + quantity: Required[int] + """The number of HTTP header names in the list.""" + items: Required[Sequence[str]] + """The list of HTTP header names. You can specify `*` to allow all headers.""" + @dataclass(kw_only=True) class ResponseHeadersPolicyAccessControlAllowMethods(_SerdeShape): """ @@ -1260,6 +1802,34 @@ class ResponseHeadersPolicyAccessControlAllowMethods(_SerdeShape): `ALL` is a special value that includes all of the listed HTTP methods. """ +class ResponseHeadersPolicyAccessControlAllowMethodsDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyAccessControlAllowMethods`.""" + + quantity: Required[int] + """The number of HTTP methods in the list.""" + items: Required[Sequence[str]] + """ + The list of HTTP methods. Valid values are: + + - `GET` + + - `DELETE` + + - `HEAD` + + - `OPTIONS` + + - `PATCH` + + - `POST` + + - `PUT` + + - `ALL` + + `ALL` is a special value that includes all of the listed HTTP methods. + """ + class ResponseHeadersPolicyAccessControlAllowMethodsValues(UnknownEnumMixin, StrEnum): GET = "GET" POST = "POST" @@ -1290,6 +1860,17 @@ class ResponseHeadersPolicyAccessControlAllowOrigins(_SerdeShape): origins. """ +class ResponseHeadersPolicyAccessControlAllowOriginsDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyAccessControlAllowOrigins`.""" + + quantity: Required[int] + """The number of origins in the list.""" + items: Required[Sequence[str]] + """ + The list of origins (domain names). You can specify `*` to allow all + origins. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyAccessControlExposeHeaders(_SerdeShape): """ @@ -1307,6 +1888,14 @@ class ResponseHeadersPolicyAccessControlExposeHeaders(_SerdeShape): items: list[str] | None = ... """The list of HTTP headers. You can specify `*` to expose all headers.""" +class ResponseHeadersPolicyAccessControlExposeHeadersDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyAccessControlExposeHeaders`.""" + + quantity: Required[int] + """The number of HTTP headers in the list.""" + items: Sequence[str] | None + """The list of HTTP headers. You can specify `*` to expose all headers.""" + @dataclass(kw_only=True) class ResponseHeadersPolicyAlreadyExists(ServiceError, _SerdeShape): """ @@ -1368,7 +1957,61 @@ class ResponseHeadersPolicyConfig(_SerdeShape): response. """ -@dataclass(kw_only=True) +class ResponseHeadersPolicyConfigDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyConfig`.""" + + comment: str | None + """ + A comment to describe the response headers policy. + + The comment cannot be longer than 128 characters. + """ + name: Required[str] + """ + A name to identify the response headers policy. + + The name must be unique for response headers policies in this Amazon Web + Services account. + """ + cors_config: ( + ResponseHeadersPolicyCorsConfig | ResponseHeadersPolicyCorsConfigDict | None + ) + """ + A configuration for a set of HTTP response headers that are used for + cross-origin resource sharing (CORS). + """ + security_headers_config: ( + ResponseHeadersPolicySecurityHeadersConfig + | ResponseHeadersPolicySecurityHeadersConfigDict + | None + ) + """A configuration for a set of security-related HTTP response headers.""" + server_timing_headers_config: ( + ResponseHeadersPolicyServerTimingHeadersConfig + | ResponseHeadersPolicyServerTimingHeadersConfigDict + | None + ) + """ + A configuration for enabling the `Server-Timing` header in HTTP + responses sent from CloudFront. + """ + custom_headers_config: ( + ResponseHeadersPolicyCustomHeadersConfig + | ResponseHeadersPolicyCustomHeadersConfigDict + | None + ) + """A configuration for a set of custom HTTP response headers.""" + remove_headers_config: ( + ResponseHeadersPolicyRemoveHeadersConfig + | ResponseHeadersPolicyRemoveHeadersConfigDict + | None + ) + """ + A configuration for a set of HTTP headers to remove from the HTTP + response. + """ + +@dataclass(kw_only=True) class ResponseHeadersPolicyContentSecurityPolicy(_SerdeShape): """ The policy directives and their values that CloudFront includes as @@ -1392,6 +2035,21 @@ class ResponseHeadersPolicyContentSecurityPolicy(_SerdeShape): values for the `Content-Security-Policy` HTTP response header. """ +class ResponseHeadersPolicyContentSecurityPolicyDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyContentSecurityPolicy`.""" + + override: Required[bool] + """ + A Boolean that determines whether CloudFront overrides the + `Content-Security-Policy` HTTP response header received from the origin + with the one specified in this response headers policy. + """ + content_security_policy: Required[str] + """ + The policy directives and their values that CloudFront includes as + values for the `Content-Security-Policy` HTTP response header. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyContentTypeOptions(_SerdeShape): """ @@ -1411,6 +2069,16 @@ class ResponseHeadersPolicyContentTypeOptions(_SerdeShape): with the one specified in this response headers policy. """ +class ResponseHeadersPolicyContentTypeOptionsDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyContentTypeOptions`.""" + + override: Required[bool] + """ + A Boolean that determines whether CloudFront overrides the + `X-Content-Type-Options` HTTP response header received from the origin + with the one specified in this response headers policy. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyCorsConfig(_SerdeShape): """ @@ -1493,6 +2161,89 @@ class ResponseHeadersPolicyCorsConfig(_SerdeShape): response headers policy. """ +class ResponseHeadersPolicyCorsConfigDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyCorsConfig`.""" + + access_control_allow_origins: Required[ + ResponseHeadersPolicyAccessControlAllowOrigins + | ResponseHeadersPolicyAccessControlAllowOriginsDict + ] + """ + A list of origins (domain names) that CloudFront can use as the value + for the `Access-Control-Allow-Origin` HTTP response header. + + For more information about the `Access-Control-Allow-Origin` HTTP + response header, see + [Access-Control-Allow-Origin](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin) + in the MDN Web Docs. + """ + access_control_allow_headers: Required[ + ResponseHeadersPolicyAccessControlAllowHeaders + | ResponseHeadersPolicyAccessControlAllowHeadersDict + ] + """ + A list of HTTP header names that CloudFront includes as values for the + `Access-Control-Allow-Headers` HTTP response header. + + For more information about the `Access-Control-Allow-Headers` HTTP + response header, see + [Access-Control-Allow-Headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers) + in the MDN Web Docs. + """ + access_control_allow_methods: Required[ + ResponseHeadersPolicyAccessControlAllowMethods + | ResponseHeadersPolicyAccessControlAllowMethodsDict + ] + """ + A list of HTTP methods that CloudFront includes as values for the + `Access-Control-Allow-Methods` HTTP response header. + + For more information about the `Access-Control-Allow-Methods` HTTP + response header, see + [Access-Control-Allow-Methods](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods) + in the MDN Web Docs. + """ + access_control_allow_credentials: Required[bool] + """ + A Boolean that CloudFront uses as the value for the + `Access-Control-Allow-Credentials` HTTP response header. + + For more information about the `Access-Control-Allow-Credentials` HTTP + response header, see + [Access-Control-Allow-Credentials](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials) + in the MDN Web Docs. + """ + access_control_expose_headers: ( + ResponseHeadersPolicyAccessControlExposeHeaders + | ResponseHeadersPolicyAccessControlExposeHeadersDict + | None + ) + """ + A list of HTTP headers that CloudFront includes as values for the + `Access-Control-Expose-Headers` HTTP response header. + + For more information about the `Access-Control-Expose-Headers` HTTP + response header, see + [Access-Control-Expose-Headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers) + in the MDN Web Docs. + """ + access_control_max_age_sec: int | None + """ + A number that CloudFront uses as the value for the + `Access-Control-Max-Age` HTTP response header. + + For more information about the `Access-Control-Max-Age` HTTP response + header, see + [Access-Control-Max-Age](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age) + in the MDN Web Docs. + """ + origin_override: Required[bool] + """ + A Boolean that determines whether CloudFront overrides HTTP response + headers received from the origin with the ones specified in this + response headers policy. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyCustomHeader(_SerdeShape): """ @@ -1512,6 +2263,20 @@ class ResponseHeadersPolicyCustomHeader(_SerdeShape): here. """ +class ResponseHeadersPolicyCustomHeaderDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyCustomHeader`.""" + + header: Required[str] + """The HTTP response header name.""" + value: Required[str] + """The value for the HTTP response header.""" + override: Required[bool] + """ + A Boolean that determines whether CloudFront overrides a response header + with the same name received from the origin with the header specified + here. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyCustomHeadersConfig(_SerdeShape): """ @@ -1526,6 +2291,19 @@ class ResponseHeadersPolicyCustomHeadersConfig(_SerdeShape): items: list[ResponseHeadersPolicyCustomHeader] | None = ... """The list of HTTP response headers and their values.""" +class ResponseHeadersPolicyCustomHeadersConfigDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyCustomHeadersConfig`.""" + + quantity: Required[int] + """The number of HTTP response headers in the list.""" + items: ( + Sequence[ + ResponseHeadersPolicyCustomHeader | ResponseHeadersPolicyCustomHeaderDict + ] + | None + ) + """The list of HTTP response headers and their values.""" + @dataclass(kw_only=True) class ResponseHeadersPolicyFrameOptions(_SerdeShape): """ @@ -1554,6 +2332,25 @@ class ResponseHeadersPolicyFrameOptions(_SerdeShape): in the MDN Web Docs. """ +class ResponseHeadersPolicyFrameOptionsDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyFrameOptions`.""" + + override: Required[bool] + """ + A Boolean that determines whether CloudFront overrides the + `X-Frame-Options` HTTP response header received from the origin with the + one specified in this response headers policy. + """ + frame_option: Required[str] + """ + The value of the `X-Frame-Options` HTTP response header. Valid values + are `DENY` and `SAMEORIGIN`. + + For more information about these values, see + [X-Frame-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) + in the MDN Web Docs. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyInUse(ServiceError, _SerdeShape): """ @@ -1631,6 +2428,41 @@ class ResponseHeadersPolicyReferrerPolicy(_SerdeShape): in the MDN Web Docs. """ +class ResponseHeadersPolicyReferrerPolicyDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyReferrerPolicy`.""" + + override: Required[bool] + """ + A Boolean that determines whether CloudFront overrides the + `Referrer-Policy` HTTP response header received from the origin with the + one specified in this response headers policy. + """ + referrer_policy: Required[str] + """ + The value of the `Referrer-Policy` HTTP response header. Valid values + are: + + - `no-referrer` + + - `no-referrer-when-downgrade` + + - `origin` + + - `origin-when-cross-origin` + + - `same-origin` + + - `strict-origin` + + - `strict-origin-when-cross-origin` + + - `unsafe-url` + + For more information about these values, see + [Referrer-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) + in the MDN Web Docs. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyRemoveHeader(_SerdeShape): """ @@ -1642,6 +2474,12 @@ class ResponseHeadersPolicyRemoveHeader(_SerdeShape): header: str """The HTTP header name.""" +class ResponseHeadersPolicyRemoveHeaderDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyRemoveHeader`.""" + + header: Required[str] + """The HTTP header name.""" + @dataclass(kw_only=True) class ResponseHeadersPolicyRemoveHeadersConfig(_SerdeShape): """ @@ -1655,6 +2493,19 @@ class ResponseHeadersPolicyRemoveHeadersConfig(_SerdeShape): items: list[ResponseHeadersPolicyRemoveHeader] | None = ... """The list of HTTP header names.""" +class ResponseHeadersPolicyRemoveHeadersConfigDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyRemoveHeadersConfig`.""" + + quantity: Required[int] + """The number of HTTP header names in the list.""" + items: ( + Sequence[ + ResponseHeadersPolicyRemoveHeader | ResponseHeadersPolicyRemoveHeaderDict + ] + | None + ) + """The list of HTTP header names.""" + @dataclass(kw_only=True) class ResponseHeadersPolicySecurityHeadersConfig(_SerdeShape): """ @@ -1727,6 +2578,94 @@ class ResponseHeadersPolicySecurityHeadersConfig(_SerdeShape): in the MDN Web Docs. """ +class ResponseHeadersPolicySecurityHeadersConfigDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicySecurityHeadersConfig`.""" + + xss_protection: ( + ResponseHeadersPolicyXSSProtection + | ResponseHeadersPolicyXSSProtectionDict + | None + ) + """ + Determines whether CloudFront includes the `X-XSS-Protection` HTTP + response header and the header's value. + + For more information about the `X-XSS-Protection` HTTP response header, + see + [X-XSS-Protection](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) + in the MDN Web Docs. + """ + frame_options: ( + ResponseHeadersPolicyFrameOptions | ResponseHeadersPolicyFrameOptionsDict | None + ) + """ + Determines whether CloudFront includes the `X-Frame-Options` HTTP + response header and the header's value. + + For more information about the `X-Frame-Options` HTTP response header, + see + [X-Frame-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) + in the MDN Web Docs. + """ + referrer_policy: ( + ResponseHeadersPolicyReferrerPolicy + | ResponseHeadersPolicyReferrerPolicyDict + | None + ) + """ + Determines whether CloudFront includes the `Referrer-Policy` HTTP + response header and the header's value. + + For more information about the `Referrer-Policy` HTTP response header, + see + [Referrer-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) + in the MDN Web Docs. + """ + content_security_policy: ( + ResponseHeadersPolicyContentSecurityPolicy + | ResponseHeadersPolicyContentSecurityPolicyDict + | None + ) + """ + The policy directives and their values that CloudFront includes as + values for the `Content-Security-Policy` HTTP response header. + + For more information about the `Content-Security-Policy` HTTP response + header, see + [Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) + in the MDN Web Docs. + """ + content_type_options: ( + ResponseHeadersPolicyContentTypeOptions + | ResponseHeadersPolicyContentTypeOptionsDict + | None + ) + """ + Determines whether CloudFront includes the `X-Content-Type-Options` HTTP + response header with its value set to `nosniff`. + + For more information about the `X-Content-Type-Options` HTTP response + header, see + [X-Content-Type-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options) + in the MDN Web Docs. + """ + strict_transport_security: ( + ResponseHeadersPolicyStrictTransportSecurity + | ResponseHeadersPolicyStrictTransportSecurityDict + | None + ) + """ + Determines whether CloudFront includes the `Strict-Transport-Security` + HTTP response header and the header's value. + + For more information about the `Strict-Transport-Security` HTTP response + header, see [Security + headers](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html#understanding-response-headers-policies-security) + in the *Amazon CloudFront Developer Guide* and + [Strict-Transport-Security](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security) + in the MDN Web Docs. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyServerTimingHeadersConfig(_SerdeShape): """ @@ -1765,6 +2704,28 @@ class ResponseHeadersPolicyServerTimingHeadersConfig(_SerdeShape): 0--100 with up to four decimal places. """ +class ResponseHeadersPolicyServerTimingHeadersConfigDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyServerTimingHeadersConfig`.""" + + enabled: Required[bool] + """ + A Boolean that determines whether CloudFront adds the `Server-Timing` + header to HTTP responses that it sends in response to requests that + match a cache behavior that's associated with this response headers + policy. + """ + sampling_rate: float | None + """ + A number 0--100 (inclusive) that specifies the percentage of responses + that you want CloudFront to add the `Server-Timing` header to. When you + set the sampling rate to 100, CloudFront adds the `Server-Timing` header + to the HTTP response for every request that matches the cache behavior + that this response headers policy is attached to. When you set it to 50, + CloudFront adds the header to 50% of the responses for requests that + match the cache behavior. You can set the sampling rate to any number + 0--100 with up to four decimal places. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicyStrictTransportSecurity(_SerdeShape): """ @@ -1800,6 +2761,32 @@ class ResponseHeadersPolicyStrictTransportSecurity(_SerdeShape): in the `Strict-Transport-Security` HTTP response header. """ +class ResponseHeadersPolicyStrictTransportSecurityDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyStrictTransportSecurity`.""" + + override: Required[bool] + """ + A Boolean that determines whether CloudFront overrides the + `Strict-Transport-Security` HTTP response header received from the + origin with the one specified in this response headers policy. + """ + include_subdomains: bool | None + """ + A Boolean that determines whether CloudFront includes the + `includeSubDomains` directive in the `Strict-Transport-Security` HTTP + response header. + """ + preload: bool | None + """ + A Boolean that determines whether CloudFront includes the `preload` + directive in the `Strict-Transport-Security` HTTP response header. + """ + access_control_max_age_sec: Required[int] + """ + A number that CloudFront uses as the value for the `max-age` directive + in the `Strict-Transport-Security` HTTP response header. + """ + @dataclass(kw_only=True) class ResponseHeadersPolicySummary(_SerdeShape): """Contains a response headers policy.""" @@ -1816,25 +2803,66 @@ class ResponseHeadersPolicyType(UnknownEnumMixin, StrEnum): MANAGED = "managed" CUSTOM = "custom" -@dataclass(kw_only=True) -class ResponseHeadersPolicyXSSProtection(_SerdeShape): +@dataclass(kw_only=True) +class ResponseHeadersPolicyXSSProtection(_SerdeShape): + """ + Determines whether CloudFront includes the `X-XSS-Protection` HTTP + response header and the header's value. + + For more information about the `X-XSS-Protection` HTTP response header, + see + [X-XSS-Protection](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) + in the MDN Web Docs. + """ + + override: bool + """ + A Boolean that determines whether CloudFront overrides the + `X-XSS-Protection` HTTP response header received from the origin with + the one specified in this response headers policy. + """ + protection: bool + """ + A Boolean that determines the value of the `X-XSS-Protection` HTTP + response header. When this setting is `true`, the value of the + `X-XSS-Protection` header is `1`. When this setting is `false`, the + value of the `X-XSS-Protection` header is `0`. + + For more information about these settings, see + [X-XSS-Protection](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) + in the MDN Web Docs. + """ + mode_block: bool | None = ... + """ + A Boolean that determines whether CloudFront includes the `mode=block` + directive in the `X-XSS-Protection` header. + + For more information about this directive, see + [X-XSS-Protection](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) + in the MDN Web Docs. """ - Determines whether CloudFront includes the `X-XSS-Protection` HTTP - response header and the header's value. + report_uri: str | None = ... + """ + A reporting URI, which CloudFront uses as the value of the `report` + directive in the `X-XSS-Protection` header. - For more information about the `X-XSS-Protection` HTTP response header, - see + You cannot specify a `ReportUri` when `ModeBlock` is `true`. + + For more information about using a reporting URL, see [X-XSS-Protection](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) in the MDN Web Docs. """ - override: bool +class ResponseHeadersPolicyXSSProtectionDict(TypedDict, total=False): + """Dictionary form of `ResponseHeadersPolicyXSSProtection`.""" + + override: Required[bool] """ A Boolean that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. """ - protection: bool + protection: Required[bool] """ A Boolean that determines the value of the `X-XSS-Protection` HTTP response header. When this setting is `true`, the value of the @@ -1845,7 +2873,7 @@ class ResponseHeadersPolicyXSSProtection(_SerdeShape): [X-XSS-Protection](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) in the MDN Web Docs. """ - mode_block: bool | None = ... + mode_block: bool | None """ A Boolean that determines whether CloudFront includes the `mode=block` directive in the `X-XSS-Protection` header. @@ -1854,7 +2882,7 @@ class ResponseHeadersPolicyXSSProtection(_SerdeShape): [X-XSS-Protection](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection) in the MDN Web Docs. """ - report_uri: str | None = ... + report_uri: str | None """ A reporting URI, which CloudFront uses as the value of the `report` directive in the `X-XSS-Protection` header. @@ -1880,6 +2908,16 @@ class Restrictions(_SerdeShape): `MaxMind` GeoIP databases. """ +class RestrictionsDict(TypedDict, total=False): + """Dictionary form of `Restrictions`.""" + + geo_restriction: Required[GeoRestriction | GeoRestrictionDict] + """ + A complex type that controls the countries in which your content is + distributed. CloudFront determines the location of your users using + `MaxMind` GeoIP databases. + """ + @dataclass(kw_only=True) class S3Origin(_SerdeShape): """ @@ -1913,6 +2951,35 @@ class S3Origin(_SerdeShape): in the *Amazon CloudFront Developer Guide*. """ +class S3OriginDict(TypedDict, total=False): + """Dictionary form of `S3Origin`.""" + + domain_name: Required[str] + """The DNS name of the Amazon S3 origin.""" + origin_access_identity: Required[str] + """ + The CloudFront origin access identity to associate with the + distribution. Use an origin access identity to configure the + distribution so that end users can only access objects in an Amazon S3 + bucket through CloudFront. + + If you want end users to be able to access objects using either the + CloudFront URL or the Amazon S3 URL, specify an empty + `OriginAccessIdentity` element. + + To delete the origin access identity from an existing distribution, + update the distribution configuration and include an empty + `OriginAccessIdentity` element. + + To replace the origin access identity, update the distribution + configuration and specify the new origin access identity. + + For more information, see [Using an Origin Access Identity to Restrict + Access to Your Amazon S3 + Content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) + in the *Amazon CloudFront Developer Guide*. + """ + @dataclass(kw_only=True) class S3OriginConfig(_SerdeShape): """ @@ -1969,6 +3036,57 @@ class S3OriginConfig(_SerdeShape): in the *Amazon CloudFront Developer Guide*. """ +class S3OriginConfigDict(TypedDict, total=False): + """Dictionary form of `S3OriginConfig`.""" + + origin_access_identity: str | None + """ + Note: + If you're using origin access control (OAC) instead of origin access + identity, specify an empty `OriginAccessIdentity` element. For more + information, see [Restricting access to an Amazon Web + Services](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html) + in the *Amazon CloudFront Developer Guide*. + + The CloudFront origin access identity to associate with the origin. Use + an origin access identity to configure the origin so that viewers can + *only* access objects in an Amazon S3 bucket through CloudFront. The + format of the value is: + + `origin-access-identity/cloudfront/ID-of-origin-access-identity` + + The ` `*`ID-of-origin-access-identity`*` ` is the value that CloudFront + returned in the `ID` element when you created the origin access + identity. + + If you want viewers to be able to access objects using either the + CloudFront URL or the Amazon S3 URL, specify an empty + `OriginAccessIdentity` element. + + To delete the origin access identity from an existing distribution, + update the distribution configuration and include an empty + `OriginAccessIdentity` element. + + To replace the origin access identity, update the distribution + configuration and specify the new origin access identity. + + For more information about the origin access identity, see [Serving + Private Content through + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + in the *Amazon CloudFront Developer Guide*. + """ + origin_read_timeout: int | None + """ + Specifies how long, in seconds, CloudFront waits for a response from the + origin. This is also known as the *origin response timeout*. The minimum + timeout is 1 second, the maximum is 120 seconds, and the default (if you + don't specify otherwise) is 30 seconds. + + For more information, see [Response + timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) + in the *Amazon CloudFront Developer Guide*. + """ + @dataclass(kw_only=True) class SessionStickinessConfig(_SerdeShape): """ @@ -1995,6 +3113,25 @@ class SessionStickinessConfig(_SerdeShape): The value must be greater than or equal to `IdleTTL`. """ +class SessionStickinessConfigDict(TypedDict, total=False): + """Dictionary form of `SessionStickinessConfig`.""" + + idle_ttl: Required[int] + """ + The amount of time after which you want sessions to cease if no requests + are received. Allowed values are 300--3600 seconds (5--60 minutes). + + The value must be less than or equal to `MaximumTTL`. + """ + maximum_ttl: Required[int] + """ + The maximum amount of time to consider requests from the viewer as being + part of the same session. Allowed values are 300--3600 seconds (5--60 + minutes). + + The value must be greater than or equal to `IdleTTL`. + """ + @dataclass(kw_only=True) class Signer(_SerdeShape): """ @@ -2034,6 +3171,14 @@ class StagingDistributionDnsNames(_SerdeShape): items: list[str] | None = ... """The CloudFront domain name of the staging distribution.""" +class StagingDistributionDnsNamesDict(TypedDict, total=False): + """Dictionary form of `StagingDistributionDnsNames`.""" + + quantity: Required[int] + """The number of CloudFront domain names in your staging distribution.""" + items: Sequence[str] | None + """The CloudFront domain name of the staging distribution.""" + @dataclass(kw_only=True) class StagingDistributionInUse(ServiceError, _SerdeShape): """ @@ -2062,6 +3207,14 @@ class StatusCodes(_SerdeShape): items: list[int] """The items (status codes) for an origin group.""" +class StatusCodesDict(TypedDict, total=False): + """Dictionary form of `StatusCodes`.""" + + quantity: Required[int] + """The number of status codes.""" + items: Required[Sequence[int]] + """The items (status codes) for an origin group.""" + @dataclass(kw_only=True) class StreamingDistribution(_SerdeShape): """ @@ -2186,6 +3339,60 @@ class StreamingDistributionConfig(_SerdeShape): for content. """ +class StreamingDistributionConfigDict(TypedDict, total=False): + """Dictionary form of `StreamingDistributionConfig`.""" + + caller_reference: Required[str] + """ + A unique value (for example, a date-time stamp) that ensures that the + request can't be replayed. + + If the value of `CallerReference` is new (regardless of the content of + the `StreamingDistributionConfig` object), CloudFront creates a new + distribution. + + If `CallerReference` is a value that you already sent in a previous + request to create a distribution, CloudFront returns a + `DistributionAlreadyExists` error. + """ + s3_origin: Required[S3Origin | S3OriginDict] + """ + A complex type that contains information about the Amazon S3 bucket from + which you want CloudFront to get your media files for distribution. + """ + aliases: Aliases | AliasesDict | None + """ + A complex type that contains information about CNAMEs (alternate domain + names), if any, for this streaming distribution. + """ + comment: Required[str] + """Any comments you want to include about the streaming distribution.""" + logging: StreamingLoggingConfig | StreamingLoggingConfigDict | None + """ + A complex type that controls whether access logs are written for the + streaming distribution. + """ + trusted_signers: Required[TrustedSigners | TrustedSignersDict] + """ + A complex type that specifies any Amazon Web Services accounts that you + want to permit to create signed URLs for private content. If you want + the distribution to use signed URLs, include this element; if you want + the distribution to use public URLs, remove this element. For more + information, see [Serving Private Content through + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) + in the *Amazon CloudFront Developer Guide*. + """ + price_class: str | None + """ + A complex type that contains information about price class for this + streaming distribution. + """ + enabled: Required[bool] + """ + Whether the streaming distribution is enabled to accept user requests + for content. + """ + @dataclass(kw_only=True) class StreamingDistributionConfigWithTags(_SerdeShape): """ @@ -2198,6 +3405,16 @@ class StreamingDistributionConfigWithTags(_SerdeShape): tags: Tags """A complex type that contains zero or more `Tag` elements.""" +class StreamingDistributionConfigWithTagsDict(TypedDict, total=False): + """Dictionary form of `StreamingDistributionConfigWithTags`.""" + + streaming_distribution_config: Required[ + StreamingDistributionConfig | StreamingDistributionConfigDict + ] + """A streaming distribution Configuration.""" + tags: Required[Tags | TagsDict] + """A complex type that contains zero or more `Tag` elements.""" + @dataclass(kw_only=True) class StreamingDistributionList(_SerdeShape): """A streaming distribution list.""" @@ -2343,6 +3560,32 @@ class StreamingLoggingConfig(_SerdeShape): still must include an empty `Prefix` element in the `Logging` element. """ +class StreamingLoggingConfigDict(TypedDict, total=False): + """Dictionary form of `StreamingLoggingConfig`.""" + + enabled: Required[bool] + """ + Specifies whether you want CloudFront to save access logs to an Amazon + S3 bucket. If you don't want to enable logging when you create a + streaming distribution or if you want to disable logging for an existing + streaming distribution, specify `false` for `Enabled`, and specify + `empty Bucket` and `Prefix` elements. If you specify `false` for + `Enabled` but you specify values for `Bucket` and `Prefix`, the values + are automatically deleted. + """ + bucket: Required[str] + """ + The Amazon S3 bucket to store the access logs in, for example, + `amzn-s3-demo-bucket.s3.amazonaws.com`. + """ + prefix: Required[str] + """ + An optional string that you want CloudFront to prefix to the access log + filenames for this streaming distribution, for example, `myprefix/`. If + you want to enable logging, but you don't want to specify a prefix, you + still must include an empty `Prefix` element in the `Logging` element. + """ + @dataclass(kw_only=True) class StringSchemaConfig(_SerdeShape): """The configuration for a string schema.""" @@ -2354,6 +3597,16 @@ class StringSchemaConfig(_SerdeShape): required: bool """Whether the defined parameter is required.""" +class StringSchemaConfigDict(TypedDict, total=False): + """Dictionary form of `StringSchemaConfig`.""" + + comment: str | None + """A comment to describe the parameter.""" + default_value: str | None + """The default value of the parameter.""" + required: Required[bool] + """Whether the defined parameter is required.""" + @dataclass(kw_only=True) class Tag(_SerdeShape): """A complex type that contains `Tag` key and `Tag` value.""" @@ -2375,6 +3628,26 @@ class Tag(_SerdeShape): characters `_ - . : / = + @`. """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """ + A string that contains `Tag` key. + + The string length should be between 1 and 128 characters. Valid + characters include `a-z`, `A-Z`, `0-9`, space, and the special + characters `_ - . : / = + @`. + """ + value: str | None + """ + A string that contains an optional `Tag` value. + + The string length should be between 0 and 256 characters. Valid + characters include `a-z`, `A-Z`, `0-9`, space, and the special + characters `_ - . : / = + @`. + """ + @dataclass(kw_only=True) class TagKeys(_SerdeShape): """A complex type that contains zero or more `Tag` elements.""" @@ -2382,6 +3655,12 @@ class TagKeys(_SerdeShape): items: list[str] | None = ... """A complex type that contains `Tag` key elements.""" +class TagKeysDict(TypedDict, total=False): + """Dictionary form of `TagKeys`.""" + + items: Sequence[str] | None + """A complex type that contains `Tag` key elements.""" + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """The request to add tags to a CloudFront resource.""" @@ -2391,6 +3670,14 @@ class TagResourceInput(_SerdeShape): tags: Tags | None = ... """A complex type that contains zero or more `Tag` elements.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource: Required[str] + """An ARN of a CloudFront resource.""" + tags: Required[Tags | TagsDict] + """A complex type that contains zero or more `Tag` elements.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -2410,6 +3697,12 @@ class Tags(_SerdeShape): items: list[Tag] | None = ... """A complex type that contains `Tag` elements.""" +class TagsDict(TypedDict, total=False): + """Dictionary form of `Tags`.""" + + items: Sequence[Tag | TagDict] | None + """A complex type that contains `Tag` elements.""" + @dataclass(kw_only=True) class TenantConfig(_SerdeShape): """ @@ -2426,6 +3719,14 @@ class TenantConfig(_SerdeShape): parameter_definitions: list[ParameterDefinition] | None = ... """The parameters that you specify for a distribution tenant.""" +class TenantConfigDict(TypedDict, total=False): + """Dictionary form of `TenantConfig`.""" + + parameter_definitions: ( + Sequence[ParameterDefinition | ParameterDefinitionDict] | None + ) + """The parameters that you specify for a distribution tenant.""" + @dataclass(kw_only=True) class TestConnectionFunctionInput(_SerdeShape): """Dataclass for TestConnectionFunctionInput structure.""" @@ -2439,6 +3740,18 @@ class TestConnectionFunctionInput(_SerdeShape): connection_object: bytes | None = ... """The connection object.""" +class TestConnectionFunctionInputDict(TypedDict, total=False): + """Dictionary form of `TestConnectionFunctionInput`.""" + + id: Required[str] + """The connection function ID.""" + if_match: Required[str] + """The current version (`ETag` value) of the connection function.""" + stage: str | None + """The connection function stage.""" + connection_object: Required[bytes] + """The connection object.""" + @dataclass(kw_only=True) class TestConnectionFunctionOutput(_SerdeShape): """Dataclass for TestConnectionFunctionOutput structure.""" @@ -2465,23 +3778,46 @@ class TestFunctionFailed(ServiceError, _SerdeShape): optional. """ -@dataclass(kw_only=True) -class TestFunctionInput(_SerdeShape): - """Dataclass for TestFunctionInput structure.""" +@dataclass(kw_only=True) +class TestFunctionInput(_SerdeShape): + """Dataclass for TestFunctionInput structure.""" + + name: str | None = ... + """The name of the function that you are testing.""" + if_match: str | None = ... + """ + The current version (`ETag` value) of the function that you are testing, + which you can get using `DescribeFunction`. + """ + stage: str | None = ... + """ + The stage of the function that you are testing, either `DEVELOPMENT` or + `LIVE`. + """ + event_object: bytes | None = ... + """ + The event object to test the function with. For more information about + the structure of the event object, see [Testing + functions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function) + in the *Amazon CloudFront Developer Guide*. + """ + +class TestFunctionInputDict(TypedDict, total=False): + """Dictionary form of `TestFunctionInput`.""" - name: str | None = ... + name: Required[str] """The name of the function that you are testing.""" - if_match: str | None = ... + if_match: Required[str] """ The current version (`ETag` value) of the function that you are testing, which you can get using `DescribeFunction`. """ - stage: str | None = ... + stage: str | None """ The stage of the function that you are testing, either `DEVELOPMENT` or `LIVE`. """ - event_object: bytes | None = ... + event_object: Required[bytes] """ The event object to test the function with. For more information about the structure of the event object, see [Testing @@ -3375,6 +4711,24 @@ class TrafficConfig(_SerdeShape): type: str """The type of traffic configuration.""" +class TrafficConfigDict(TypedDict, total=False): + """Dictionary form of `TrafficConfig`.""" + + single_weight_config: ( + ContinuousDeploymentSingleWeightConfig + | ContinuousDeploymentSingleWeightConfigDict + | None + ) + """Contains the percentage of traffic to send to the staging distribution.""" + single_header_config: ( + ContinuousDeploymentSingleHeaderConfig + | ContinuousDeploymentSingleHeaderConfigDict + | None + ) + """Determines which HTTP requests are sent to the staging distribution.""" + type: Required[str] + """The type of traffic configuration.""" + @dataclass(kw_only=True) class TrustedKeyGroupDoesNotExist(ServiceError, _SerdeShape): """The specified key group does not exist.""" @@ -3405,6 +4759,20 @@ class TrustedKeyGroups(_SerdeShape): items: list[str] | None = ... """A list of key groups identifiers.""" +class TrustedKeyGroupsDict(TypedDict, total=False): + """Dictionary form of `TrustedKeyGroups`.""" + + enabled: Required[bool] + """ + This field is `true` if any of the key groups in the list have public + keys that CloudFront can use to verify the signatures of signed URLs and + signed cookies. If not, this field is `false`. + """ + quantity: Required[int] + """The number of key groups in the list.""" + items: Sequence[str] | None + """A list of key groups identifiers.""" + @dataclass(kw_only=True) class TrustedSignerDoesNotExist(ServiceError, _SerdeShape): """One or more of your trusted signers don't exist.""" @@ -3434,6 +4802,19 @@ class TrustedSigners(_SerdeShape): items: list[str] | None = ... """A list of Amazon Web Services account identifiers.""" +class TrustedSignersDict(TypedDict, total=False): + """Dictionary form of `TrustedSigners`.""" + + enabled: Required[bool] + """ + This field is `true` if any of the Amazon Web Services accounts in the + list are configured as trusted signers. If not, this field is `false`. + """ + quantity: Required[int] + """The number of Amazon Web Services accounts in the list.""" + items: Sequence[str] | None + """A list of Amazon Web Services account identifiers.""" + @dataclass(kw_only=True) class TrustStore(_SerdeShape): """A trust store.""" @@ -3469,6 +4850,16 @@ class TrustStoreConfig(_SerdeShape): ignore_certificate_expiry: bool | None = ... """The configuration to use to ignore certificate expiration.""" +class TrustStoreConfigDict(TypedDict, total=False): + """Dictionary form of `TrustStoreConfig`.""" + + trust_store_id: Required[str] + """The trust store ID.""" + advertise_trust_store_ca_names: bool | None + """The configuration to use to advertise trust store CA names.""" + ignore_certificate_expiry: bool | None + """The configuration to use to ignore certificate expiration.""" + class TrustStoreStatus(UnknownEnumMixin, StrEnum): PENDING = "pending" ACTIVE = "active" @@ -3516,6 +4907,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: TagKeys | None = ... """A complex type that contains zero or more `Tag` key elements.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource: Required[str] + """An ARN of a CloudFront resource.""" + tag_keys: Required[TagKeys | TagKeysDict] + """A complex type that contains zero or more `Tag` key elements.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -3556,6 +4955,33 @@ class UpdateAnycastIpListInput(_SerdeShape): are updating. """ +class UpdateAnycastIpListInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAnycastIpListInput`.""" + + id: Required[str] + """The ID of the Anycast static IP list.""" + ip_address_type: str | None + """ + The IP address type for the Anycast static IP list. You can specify one + of the following options: + + - `ipv4` only + + - `ipv6` only + + - `dualstack` - Allocate a list of both IPv4 and IPv6 addresses + """ + ipam_cidr_configs: Sequence[IpamCidrConfig | IpamCidrConfigDict] | None + """ + A list of IPAM CIDR configurations that specify the IP address ranges + and IPAM pool settings for updating the Anycast static IP list. + """ + if_match: Required[str] + """ + The current version (ETag value) of the Anycast static IP list that you + are updating. + """ + @dataclass(kw_only=True) class UpdateAnycastIpListOutput(_SerdeShape): """Dataclass for UpdateAnycastIpListOutput structure.""" @@ -3596,6 +5022,24 @@ class UpdateCachePolicyInput(_SerdeShape): `GetCachePolicyConfig`. """ +class UpdateCachePolicyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCachePolicyInput`.""" + + cache_policy_config: Required[CachePolicyConfig | CachePolicyConfigDict] + """A cache policy configuration.""" + id: Required[str] + """ + The unique identifier for the cache policy that you are updating. The + identifier is returned in a cache behavior's `CachePolicyId` field in + the response to `GetDistributionConfig`. + """ + if_match: str | None + """ + The version of the cache policy that you are updating. The version is + returned in the cache policy's `ETag` field in the response to + `GetCachePolicyConfig`. + """ + @dataclass(kw_only=True) class UpdateCachePolicyOutput(_SerdeShape): """Dataclass for UpdateCachePolicyOutput structure.""" @@ -3628,6 +5072,21 @@ class UpdateCloudFrontOriginAccessIdentityInput(_SerdeShape): identity's configuration. For example: `E2QWRUHAPOMQZL`. """ +class UpdateCloudFrontOriginAccessIdentityInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCloudFrontOriginAccessIdentityInput`.""" + + cloud_front_origin_access_identity_config: Required[ + CloudFrontOriginAccessIdentityConfig | CloudFrontOriginAccessIdentityConfigDict + ] + """The identity's configuration information.""" + id: Required[str] + """The identity's id.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + identity's configuration. For example: `E2QWRUHAPOMQZL`. + """ + @dataclass(kw_only=True) class UpdateCloudFrontOriginAccessIdentityOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -3660,6 +5119,21 @@ class UpdateConnectionFunctionInput(_SerdeShape): connection_function_code: bytes | None = ... """The connection function code.""" +class UpdateConnectionFunctionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateConnectionFunctionInput`.""" + + id: Required[str] + """The connection function ID.""" + if_match: Required[str] + """ + The current version (`ETag` value) of the connection function you are + updating. + """ + connection_function_config: Required[FunctionConfig | FunctionConfigDict] + """Contains configuration information about a CloudFront function.""" + connection_function_code: Required[bytes] + """The connection function code.""" + @dataclass(kw_only=True) class UpdateConnectionFunctionOutput(_SerdeShape): """Dataclass for UpdateConnectionFunctionOutput structure.""" @@ -3701,6 +5175,27 @@ class UpdateConnectionGroupInput(_SerdeShape): enabled: bool | None = ... """Whether the connection group is enabled.""" +class UpdateConnectionGroupInputDict(TypedDict, total=False): + """Dictionary form of `UpdateConnectionGroupInput`.""" + + id: Required[str] + """The ID of the connection group.""" + ipv6_enabled: bool | None + """ + Enable IPv6 for the connection group. For more information, see [Enable + IPv6](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesEnableIPv6) + in the *Amazon CloudFront Developer Guide*. + """ + if_match: Required[str] + """ + The value of the `ETag` header that you received when retrieving the + connection group that you're updating. + """ + anycast_ip_list_id: str | None + """The ID of the Anycast static IP list.""" + enabled: bool | None + """Whether the connection group is enabled.""" + @dataclass(kw_only=True) class UpdateConnectionGroupOutput(_SerdeShape): """Dataclass for UpdateConnectionGroupOutput structure.""" @@ -3734,6 +5229,24 @@ class UpdateContinuousDeploymentPolicyInput(_SerdeShape): that you are updating. """ +class UpdateContinuousDeploymentPolicyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateContinuousDeploymentPolicyInput`.""" + + continuous_deployment_policy_config: Required[ + ContinuousDeploymentPolicyConfig | ContinuousDeploymentPolicyConfigDict + ] + """The continuous deployment policy configuration.""" + id: Required[str] + """ + The identifier of the continuous deployment policy that you are + updating. + """ + if_match: str | None + """ + The current version (`ETag` value) of the continuous deployment policy + that you are updating. + """ + @dataclass(kw_only=True) class UpdateContinuousDeploymentPolicyOutput(_SerdeShape): """Dataclass for UpdateContinuousDeploymentPolicyOutput structure.""" @@ -3767,6 +5280,19 @@ class UpdateDistributionInput(_SerdeShape): distribution's configuration. For example: `E2QWRUHAPOMQZL`. """ +class UpdateDistributionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDistributionInput`.""" + + distribution_config: Required[DistributionConfig | DistributionConfigDict] + """The distribution's configuration information.""" + id: Required[str] + """The distribution's id.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + distribution's configuration. For example: `E2QWRUHAPOMQZL`. + """ + @dataclass(kw_only=True) class UpdateDistributionOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -3829,6 +5355,53 @@ class UpdateDistributionTenantInput(_SerdeShape): enabled, the distribution tenant won't serve traffic. """ +class UpdateDistributionTenantInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDistributionTenantInput`.""" + + id: Required[str] + """The ID of the distribution tenant.""" + distribution_id: str | None + """The ID for the multi-tenant distribution.""" + domains: Sequence[DomainItem | DomainItemDict] | None + """ + The domains to update for the distribution tenant. A domain object can + contain only a domain property. You must specify at least one domain. + Each distribution tenant can have up to 5 domains. + """ + customizations: Customizations | CustomizationsDict | None + """ + Customizations for the distribution tenant. For each distribution + tenant, you can specify the geographic restrictions, and the Amazon + Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are + specific values that you can override or disable from the multi-tenant + distribution that was used to create the distribution tenant. + """ + parameters: Sequence[Parameter | ParameterDict] | None + """ + A list of parameter values to add to the resource. A parameter is + specified as a key-value pair. A valid parameter value must exist for + any parameter that is marked as required in the multi-tenant + distribution. + """ + connection_group_id: str | None + """The ID of the target connection group.""" + if_match: Required[str] + """ + The value of the `ETag` header that you received when retrieving the + distribution tenant to update. This value is returned in the response of + the `GetDistributionTenant` API operation. + """ + managed_certificate_request: ( + ManagedCertificateRequest | ManagedCertificateRequestDict | None + ) + """An object that contains the CloudFront managed ACM certificate request.""" + enabled: bool | None + """ + Indicates whether the distribution tenant should be updated to an + enabled state. If you update the distribution tenant and it's not + enabled, the distribution tenant won't serve traffic. + """ + @dataclass(kw_only=True) class UpdateDistributionTenantOutput(_SerdeShape): """Dataclass for UpdateDistributionTenantOutput structure.""" @@ -3867,6 +5440,27 @@ class UpdateDistributionWithStagingConfigInput(_SerdeShape): `, ` """ +class UpdateDistributionWithStagingConfigInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDistributionWithStagingConfigInput`.""" + + id: Required[str] + """ + The identifier of the primary distribution to which you are copying a + staging distribution's configuration. + """ + staging_distribution_id: str | None + """ + The identifier of the staging distribution whose configuration you are + copying to the primary distribution. + """ + if_match: str | None + """ + The current versions (`ETag` values) of both primary and staging + distributions. Provide these in the following format: + + `, ` + """ + @dataclass(kw_only=True) class UpdateDistributionWithStagingConfigOutput(_SerdeShape): """Dataclass for UpdateDistributionWithStagingConfigOutput structure.""" @@ -3904,6 +5498,23 @@ class UpdateDomainAssociationInput(_SerdeShape): distribution tenant that will be associated with the domain. """ +class UpdateDomainAssociationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDomainAssociationInput`.""" + + domain: Required[str] + """The domain to update.""" + target_resource: Required[DistributionResourceId | DistributionResourceIdDict] + """ + The target standard distribution or distribution tenant resource for the + domain. You can specify either `DistributionId` or + `DistributionTenantId`, but not both. + """ + if_match: str | None + """ + The value of the `ETag` identifier for the standard distribution or + distribution tenant that will be associated with the domain. + """ + @dataclass(kw_only=True) class UpdateDomainAssociationOutput(_SerdeShape): """Dataclass for UpdateDomainAssociationOutput structure.""" @@ -3939,6 +5550,21 @@ class UpdateFieldLevelEncryptionConfigInput(_SerdeShape): configuration identity to update. For example: `E2QWRUHAPOMQZL`. """ +class UpdateFieldLevelEncryptionConfigInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFieldLevelEncryptionConfigInput`.""" + + field_level_encryption_config: Required[ + FieldLevelEncryptionConfig | FieldLevelEncryptionConfigDict + ] + """Request to update a field-level encryption configuration.""" + id: Required[str] + """The ID of the configuration you want to update.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + configuration identity to update. For example: `E2QWRUHAPOMQZL`. + """ + @dataclass(kw_only=True) class UpdateFieldLevelEncryptionConfigOutput(_SerdeShape): """Dataclass for UpdateFieldLevelEncryptionConfigOutput structure.""" @@ -3974,6 +5600,21 @@ class UpdateFieldLevelEncryptionProfileInput(_SerdeShape): profile identity to update. For example: `E2QWRUHAPOMQZL`. """ +class UpdateFieldLevelEncryptionProfileInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFieldLevelEncryptionProfileInput`.""" + + field_level_encryption_profile_config: Required[ + FieldLevelEncryptionProfileConfig | FieldLevelEncryptionProfileConfigDict + ] + """Request to update a field-level encryption profile.""" + id: Required[str] + """The ID of the field-level encryption profile request.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + profile identity to update. For example: `E2QWRUHAPOMQZL`. + """ + @dataclass(kw_only=True) class UpdateFieldLevelEncryptionProfileOutput(_SerdeShape): """Dataclass for UpdateFieldLevelEncryptionProfileOutput structure.""" @@ -4011,6 +5652,26 @@ class UpdateFunctionInput(_SerdeShape): in the *Amazon CloudFront Developer Guide*. """ +class UpdateFunctionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFunctionInput`.""" + + name: Required[str] + """The name of the function that you are updating.""" + if_match: Required[str] + """ + The current version (`ETag` value) of the function that you are + updating, which you can get using `DescribeFunction`. + """ + function_config: Required[FunctionConfig | FunctionConfigDict] + """Configuration information about the function.""" + function_code: Required[bytes] + """ + The function code. For more information about writing a CloudFront + function, see [Writing function code for CloudFront + Functions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html) + in the *Amazon CloudFront Developer Guide*. + """ + @dataclass(kw_only=True) class UpdateFunctionOutput(_SerdeShape): """Dataclass for UpdateFunctionOutput structure.""" @@ -4047,6 +5708,19 @@ class UpdateKeyGroupInput(_SerdeShape): key group's `ETag` value. """ +class UpdateKeyGroupInputDict(TypedDict, total=False): + """Dictionary form of `UpdateKeyGroupInput`.""" + + key_group_config: Required[KeyGroupConfig | KeyGroupConfigDict] + """The key group configuration.""" + id: Required[str] + """The identifier of the key group that you are updating.""" + if_match: str | None + """ + The version of the key group that you are updating. The version is the + key group's `ETag` value. + """ + @dataclass(kw_only=True) class UpdateKeyGroupOutput(_SerdeShape): """Dataclass for UpdateKeyGroupOutput structure.""" @@ -4074,6 +5748,16 @@ class UpdateKeyValueStoreInput(_SerdeShape): if_match: str | None = ... """The key value store to update, if a match occurs.""" +class UpdateKeyValueStoreInputDict(TypedDict, total=False): + """Dictionary form of `UpdateKeyValueStoreInput`.""" + + name: Required[str] + """The name of the key value store to update.""" + comment: Required[str] + """The comment of the key value store to update.""" + if_match: Required[str] + """The key value store to update, if a match occurs.""" + @dataclass(kw_only=True) class UpdateKeyValueStoreOutput(_SerdeShape): """Dataclass for UpdateKeyValueStoreOutput structure.""" @@ -4107,6 +5791,24 @@ class UpdateOriginAccessControlInput(_SerdeShape): are updating. """ +class UpdateOriginAccessControlInputDict(TypedDict, total=False): + """Dictionary form of `UpdateOriginAccessControlInput`.""" + + origin_access_control_config: Required[ + OriginAccessControlConfig | OriginAccessControlConfigDict + ] + """An origin access control.""" + id: Required[str] + """ + The unique identifier of the origin access control that you are + updating. + """ + if_match: str | None + """ + The current version (`ETag` value) of the origin access control that you + are updating. + """ + @dataclass(kw_only=True) class UpdateOriginAccessControlOutput(_SerdeShape): """Dataclass for UpdateOriginAccessControlOutput structure.""" @@ -4123,20 +5825,41 @@ class UpdateOriginAccessControlOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class UpdateOriginRequestPolicyInput(_SerdeShape): - """Dataclass for UpdateOriginRequestPolicyInput structure.""" +@dataclass(kw_only=True) +class UpdateOriginRequestPolicyInput(_SerdeShape): + """Dataclass for UpdateOriginRequestPolicyInput structure.""" + + origin_request_policy_config: OriginRequestPolicyConfig | None = ... + """An origin request policy configuration.""" + id: str | None = ... + """ + The unique identifier for the origin request policy that you are + updating. The identifier is returned in a cache behavior's + `OriginRequestPolicyId` field in the response to + `GetDistributionConfig`. + """ + if_match: str | None = ... + """ + The version of the origin request policy that you are updating. The + version is returned in the origin request policy's `ETag` field in the + response to `GetOriginRequestPolicyConfig`. + """ + +class UpdateOriginRequestPolicyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateOriginRequestPolicyInput`.""" - origin_request_policy_config: OriginRequestPolicyConfig | None = ... + origin_request_policy_config: Required[ + OriginRequestPolicyConfig | OriginRequestPolicyConfigDict + ] """An origin request policy configuration.""" - id: str | None = ... + id: Required[str] """ The unique identifier for the origin request policy that you are updating. The identifier is returned in a cache behavior's `OriginRequestPolicyId` field in the response to `GetDistributionConfig`. """ - if_match: str | None = ... + if_match: str | None """ The version of the origin request policy that you are updating. The version is returned in the origin request policy's `ETag` field in the @@ -4173,6 +5896,19 @@ class UpdatePublicKeyInput(_SerdeShape): public key to update. For example: `E2QWRUHAPOMQZL`. """ +class UpdatePublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePublicKeyInput`.""" + + public_key_config: Required[PublicKeyConfig | PublicKeyConfigDict] + """A public key configuration.""" + id: Required[str] + """The identifier of the public key that you are updating.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + public key to update. For example: `E2QWRUHAPOMQZL`. + """ + @dataclass(kw_only=True) class UpdatePublicKeyOutput(_SerdeShape): """Dataclass for UpdatePublicKeyOutput structure.""" @@ -4218,6 +5954,34 @@ class UpdateRealtimeLogConfigInput(_SerdeShape): 100, inclusive. """ +class UpdateRealtimeLogConfigInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRealtimeLogConfigInput`.""" + + end_points: Sequence[EndPoint | EndPointDict] | None + """ + Contains information about the Amazon Kinesis data stream where you are + sending real-time log data. + """ + fields: Sequence[str] | None + """ + A list of fields to include in each real-time log record. + + For more information about fields, see [Real-time log configuration + fields](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) + in the *Amazon CloudFront Developer Guide*. + """ + name: str | None + """The name for this real-time log configuration.""" + arn: str | None + """The Amazon Resource Name (ARN) for this real-time log configuration.""" + sampling_rate: int | None + """ + The sampling rate for this real-time log configuration. The sampling + rate determines the percentage of viewer requests that are represented + in the real-time log data. You must provide an integer between 1 and + 100, inclusive. + """ + @dataclass(kw_only=True) class UpdateRealtimeLogConfigOutput(_SerdeShape): """Dataclass for UpdateRealtimeLogConfigOutput structure.""" @@ -4248,6 +6012,23 @@ class UpdateResponseHeadersPolicyInput(_SerdeShape): response to `GetResponseHeadersPolicyConfig`. """ +class UpdateResponseHeadersPolicyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateResponseHeadersPolicyInput`.""" + + response_headers_policy_config: Required[ + ResponseHeadersPolicyConfig | ResponseHeadersPolicyConfigDict + ] + """A response headers policy configuration.""" + id: Required[str] + """The identifier for the response headers policy that you are updating.""" + if_match: str | None + """ + The version of the response headers policy that you are updating. + + The version is returned in the cache policy's `ETag` field in the + response to `GetResponseHeadersPolicyConfig`. + """ + @dataclass(kw_only=True) class UpdateResponseHeadersPolicyOutput(_SerdeShape): """Dataclass for UpdateResponseHeadersPolicyOutput structure.""" @@ -4278,6 +6059,21 @@ class UpdateStreamingDistributionInput(_SerdeShape): streaming distribution's configuration. For example: `E2QWRUHAPOMQZL`. """ +class UpdateStreamingDistributionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateStreamingDistributionInput`.""" + + streaming_distribution_config: Required[ + StreamingDistributionConfig | StreamingDistributionConfigDict + ] + """The streaming distribution's configuration information.""" + id: Required[str] + """The streaming distribution's id.""" + if_match: str | None + """ + The value of the `ETag` header that you received when retrieving the + streaming distribution's configuration. For example: `E2QWRUHAPOMQZL`. + """ + @dataclass(kw_only=True) class UpdateStreamingDistributionOutput(_SerdeShape): """The returned result of the corresponding request.""" @@ -4310,6 +6106,23 @@ class UpdateTrustStoreInput(_SerdeShape): if_match: str | None = ... """The current version (`ETag` value) of the trust store you are updating.""" +class UpdateTrustStoreInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTrustStoreInput`.""" + + id: Required[str] + """The trust store ID.""" + ca_certificates_bundle_source: ( + CaCertificatesBundleSource | CaCertificatesBundleSourceDict | None + ) + """The CA certificates bundle source.""" + use_client_certificate_ocsp_endpoint: bool | None + """ + A Boolean that determines whether to use the CA certificate's OCSP + endpoint to check certificate revocation status. + """ + if_match: Required[str] + """The current version (`ETag` value) of the trust store you are updating.""" + @dataclass(kw_only=True) class UpdateTrustStoreOutput(_SerdeShape): """Dataclass for UpdateTrustStoreOutput structure.""" @@ -4337,6 +6150,18 @@ class UpdateVpcOriginInput(_SerdeShape): if_match: str | None = ... """The VPC origin to update, if a match occurs.""" +class UpdateVpcOriginInputDict(TypedDict, total=False): + """Dictionary form of `UpdateVpcOriginInput`.""" + + vpc_origin_endpoint_config: Required[ + VpcOriginEndpointConfig | VpcOriginEndpointConfigDict + ] + """The VPC origin endpoint configuration.""" + id: Required[str] + """The VPC origin ID.""" + if_match: Required[str] + """The VPC origin to update, if a match occurs.""" + @dataclass(kw_only=True) class UpdateVpcOriginOutput(_SerdeShape): """Dataclass for UpdateVpcOriginOutput structure.""" @@ -4380,6 +6205,17 @@ class VerifyDnsConfigurationInput(_SerdeShape): or name of the distribution tenant. """ +class VerifyDnsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `VerifyDnsConfigurationInput`.""" + + domain: str | None + """The domain name that you're verifying.""" + identifier: Required[str] + """ + The identifier of the distribution tenant. You can specify the ARN, ID, + or name of the distribution tenant. + """ + @dataclass(kw_only=True) class VerifyDnsConfigurationOutput(_SerdeShape): """Dataclass for VerifyDnsConfigurationOutput structure.""" @@ -4573,6 +6409,126 @@ class ViewerCertificate(_SerdeShape): - `CloudFrontDefaultCertificate` """ +class ViewerCertificateDict(TypedDict, total=False): + """Dictionary form of `ViewerCertificate`.""" + + cloud_front_default_certificate: bool | None + """ + If the distribution uses the CloudFront domain name such as + `d111111abcdef8.cloudfront.net`, set this field to `true`. + + If the distribution uses `Aliases` (alternate domain names or CNAMEs), + set this field to `false` and specify values for the following fields: + + - `ACMCertificateArn` or `IAMCertificateId` (specify a value for one, + not both) + + - `MinimumProtocolVersion` + + - `SSLSupportMethod` + """ + iam_certificate_id: str | None + """ + Note: + This field only supports standard distributions. You can't specify this + field for multi-tenant distributions. For more information, see + [Unsupported features for SaaS Manager for Amazon + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) + in the *Amazon CloudFront Developer Guide*. + + If the distribution uses `Aliases` (alternate domain names or CNAMEs) + and the SSL/TLS certificate is stored in [Identity and Access Management + (IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html), + provide the ID of the IAM certificate. + + If you specify an IAM certificate ID, you must also specify values for + `MinimumProtocolVersion` and `SSLSupportMethod`. + """ + acm_certificate_arn: str | None + """ + If the distribution uses `Aliases` (alternate domain names or CNAMEs) + and the SSL/TLS certificate is stored in [Certificate Manager + (ACM)](https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html), + provide the Amazon Resource Name (ARN) of the ACM certificate. + CloudFront only supports ACM certificates in the US East (N. Virginia) + Region (`us-east-1`). + + If you specify an ACM certificate ARN, you must also specify values for + `MinimumProtocolVersion` and `SSLSupportMethod`. + """ + ssl_support_method: str | None + """ + If the distribution uses `Aliases` (alternate domain names or CNAMEs), + specify which viewers the distribution accepts HTTPS connections from. + + - `sni-only` -- The distribution accepts HTTPS connections from only + viewers that support [server name indication + (SNI)](https://en.wikipedia.org/wiki/Server_Name_Indication). This is + recommended. Most browsers and clients support SNI. + + - `vip` -- The distribution accepts HTTPS connections from all viewers + including those that don't support SNI. This is not recommended, and + results in additional monthly charges from CloudFront. + + - `static-ip` - Do not specify this value unless your distribution has + been enabled for this feature by the CloudFront team. If you have a + use case that requires static IP addresses for a distribution, contact + CloudFront through the [Amazon Web ServicesSupport + Center](https://console.aws.amazon.com/support/home). + + If the distribution uses the CloudFront domain name such as + `d111111abcdef8.cloudfront.net`, don't set a value for this field. + """ + minimum_protocol_version: str | None + """ + If the distribution uses `Aliases` (alternate domain names or CNAMEs), + specify the security policy that you want CloudFront to use for HTTPS + connections with viewers. The security policy determines two settings: + + - The minimum SSL/TLS protocol that CloudFront can use to communicate + with viewers. + + - The ciphers that CloudFront can use to encrypt the content that it + returns to viewers. + + For more information, see [Security + Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy) + and [Supported Protocols and Ciphers Between Viewers and + CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html#secure-connections-supported-ciphers) + in the *Amazon CloudFront Developer Guide*. + + Note: + On the CloudFront console, this setting is called **Security Policy**. + + When you're using SNI only (you set `SSLSupportMethod` to `sni-only`), + you must specify `TLSv1` or higher. + + If the distribution uses the CloudFront domain name such as + `d111111abcdef8.cloudfront.net` (you set `CloudFrontDefaultCertificate` + to `true`), CloudFront automatically sets the security policy to `TLSv1` + regardless of the value that you set here. + """ + certificate: str | None + """ + This field is deprecated. Use one of the following fields instead: + + - `ACMCertificateArn` + + - `IAMCertificateId` + + - `CloudFrontDefaultCertificate` + """ + certificate_source: str | None + """ + This field is deprecated. Use one of the following fields instead: + + - `ACMCertificateArn` + + - `IAMCertificateId` + + - `CloudFrontDefaultCertificate` + """ + @dataclass(kw_only=True) class ViewerMtlsConfig(_SerdeShape): """A viewer mTLS configuration.""" @@ -4585,6 +6541,17 @@ class ViewerMtlsConfig(_SerdeShape): configuration. """ +class ViewerMtlsConfigDict(TypedDict, total=False): + """Dictionary form of `ViewerMtlsConfig`.""" + + mode: str | None + """The viewer mTLS mode.""" + trust_store_config: TrustStoreConfig | TrustStoreConfigDict | None + """ + The trust store configuration associated with the viewer mTLS + configuration. + """ + class ViewerMtlsMode(UnknownEnumMixin, StrEnum): REQUIRED = "required" OPTIONAL = "optional" @@ -4659,6 +6626,38 @@ class VpcOriginConfig(_SerdeShape): in the *Amazon CloudFront Developer Guide*. """ +class VpcOriginConfigDict(TypedDict, total=False): + """Dictionary form of `VpcOriginConfig`.""" + + vpc_origin_id: Required[str] + """The VPC origin ID.""" + owner_account_id: str | None + """ + The account ID of the Amazon Web Services account that owns the VPC + origin. + """ + origin_read_timeout: int | None + """ + Specifies how long, in seconds, CloudFront waits for a response from the + origin. This is also known as the *origin response timeout*. The minimum + timeout is 1 second, the maximum is 120 seconds, and the default (if you + don't specify otherwise) is 30 seconds. + + For more information, see [Response + timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) + in the *Amazon CloudFront Developer Guide*. + """ + origin_keepalive_timeout: int | None + """ + Specifies how long, in seconds, CloudFront persists its connection to + the origin. The minimum timeout is 1 second, the maximum is 120 seconds, + and the default (if you don't specify otherwise) is 5 seconds. + + For more information, see [Keep-alive timeout (custom origins + only)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout) + in the *Amazon CloudFront Developer Guide*. + """ + @dataclass(kw_only=True) class VpcOriginEndpointConfig(_SerdeShape): """An Amazon CloudFront VPC origin endpoint configuration.""" @@ -4695,6 +6694,41 @@ class VpcOriginEndpointConfig(_SerdeShape): VPC origins. """ +class VpcOriginEndpointConfigDict(TypedDict, total=False): + """Dictionary form of `VpcOriginEndpointConfig`.""" + + name: Required[str] + """The name of the CloudFront VPC origin endpoint configuration.""" + arn: Required[str] + """The ARN of the CloudFront VPC origin endpoint configuration.""" + http_port: Required[int] + """ + The HTTP port for the CloudFront VPC origin endpoint configuration. The + default value is `80`. + """ + https_port: Required[int] + """ + The HTTPS port of the CloudFront VPC origin endpoint configuration. The + default value is `443`. + """ + origin_protocol_policy: Required[str] + """ + The origin protocol policy for the CloudFront VPC origin endpoint + configuration. + """ + origin_ssl_protocols: OriginSslProtocols | OriginSslProtocolsDict | None + """ + A complex type that contains information about the SSL/TLS protocols + that CloudFront can use when establishing an HTTPS connection with your + origin. + """ + ip_address_type: str | None + """ + The IP address type of the CloudFront VPC origin endpoint configuration. + Valid values are `ipv4` and `dualstack`. IPv6-only is not supported for + VPC origins. + """ + @dataclass(kw_only=True) class VpcOriginList(_SerdeShape): """A list of CloudFront VPC origins.""" @@ -4759,3 +6793,16 @@ class WebAclCustomization(_SerdeShape): """ arn: str | None = ... """The Amazon Resource Name (ARN) of the WAF web ACL.""" + +class WebAclCustomizationDict(TypedDict, total=False): + """Dictionary form of `WebAclCustomization`.""" + + action: Required[str] + """ + The action for the WAF web ACL customization. You can specify `override` + to specify a separate WAF web ACL for the distribution tenant. If you + specify `disable`, the distribution tenant won't have WAF web ACL + protections and won't inherit from the multi-tenant distribution. + """ + arn: str | None + """The Amazon Resource Name (ARN) of the WAF web ACL.""" diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas.py index 2d2656170..b49b3bd4d 100644 --- a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas.py +++ b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas.py @@ -1054,7 +1054,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:02d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_0.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_00.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_0.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_00.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_1.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_01.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_1.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_01.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_2.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_02.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_2.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_02.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_3.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_03.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_3.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_03.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_4.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_04.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_4.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_04.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_5.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_05.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_5.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_05.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_6.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_06.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_6.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_06.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_7.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_07.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_7.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_07.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_8.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_08.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_8.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_08.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_9.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_09.py similarity index 100% rename from clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_9.py rename to clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/_private/schemas_09.py diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/aio/client.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/aio/client.py index 89c92c6e0..1b6630793 100644 --- a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/aio/client.py +++ b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,339 +20,172 @@ if TYPE_CHECKING: from ..models import ( - AssociateAliasInput, AssociateAliasOutput, - AssociateDistributionTenantWebACLInput, AssociateDistributionTenantWebACLOutput, - AssociateDistributionWebACLInput, AssociateDistributionWebACLOutput, - CopyDistributionInput, CopyDistributionOutput, - CreateAnycastIpListInput, CreateAnycastIpListOutput, - CreateCachePolicyInput, CreateCachePolicyOutput, - CreateCloudFrontOriginAccessIdentityInput, CreateCloudFrontOriginAccessIdentityOutput, - CreateConnectionFunctionInput, CreateConnectionFunctionOutput, - CreateConnectionGroupInput, CreateConnectionGroupOutput, - CreateContinuousDeploymentPolicyInput, CreateContinuousDeploymentPolicyOutput, - CreateDistributionInput, CreateDistributionOutput, - CreateDistributionTenantInput, CreateDistributionTenantOutput, - CreateDistributionWithTagsInput, CreateDistributionWithTagsOutput, - CreateFieldLevelEncryptionConfigInput, CreateFieldLevelEncryptionConfigOutput, - CreateFieldLevelEncryptionProfileInput, CreateFieldLevelEncryptionProfileOutput, - CreateFunctionInput, CreateFunctionOutput, - CreateInvalidationForDistributionTenantInput, CreateInvalidationForDistributionTenantOutput, - CreateInvalidationInput, CreateInvalidationOutput, - CreateKeyGroupInput, CreateKeyGroupOutput, - CreateKeyValueStoreInput, CreateKeyValueStoreOutput, - CreateMonitoringSubscriptionInput, CreateMonitoringSubscriptionOutput, - CreateOriginAccessControlInput, CreateOriginAccessControlOutput, - CreateOriginRequestPolicyInput, CreateOriginRequestPolicyOutput, - CreatePublicKeyInput, CreatePublicKeyOutput, - CreateRealtimeLogConfigInput, CreateRealtimeLogConfigOutput, - CreateResponseHeadersPolicyInput, CreateResponseHeadersPolicyOutput, - CreateStreamingDistributionInput, CreateStreamingDistributionOutput, - CreateStreamingDistributionWithTagsInput, CreateStreamingDistributionWithTagsOutput, - CreateTrustStoreInput, CreateTrustStoreOutput, - CreateVpcOriginInput, CreateVpcOriginOutput, - DeleteAnycastIpListInput, DeleteAnycastIpListOutput, - DeleteCachePolicyInput, DeleteCachePolicyOutput, - DeleteCloudFrontOriginAccessIdentityInput, DeleteCloudFrontOriginAccessIdentityOutput, - DeleteConnectionFunctionInput, DeleteConnectionFunctionOutput, - DeleteConnectionGroupInput, DeleteConnectionGroupOutput, - DeleteContinuousDeploymentPolicyInput, DeleteContinuousDeploymentPolicyOutput, - DeleteDistributionInput, DeleteDistributionOutput, - DeleteDistributionTenantInput, DeleteDistributionTenantOutput, - DeleteFieldLevelEncryptionConfigInput, DeleteFieldLevelEncryptionConfigOutput, - DeleteFieldLevelEncryptionProfileInput, DeleteFieldLevelEncryptionProfileOutput, - DeleteFunctionInput, DeleteFunctionOutput, - DeleteKeyGroupInput, DeleteKeyGroupOutput, - DeleteKeyValueStoreInput, DeleteKeyValueStoreOutput, - DeleteMonitoringSubscriptionInput, DeleteMonitoringSubscriptionOutput, - DeleteOriginAccessControlInput, DeleteOriginAccessControlOutput, - DeleteOriginRequestPolicyInput, DeleteOriginRequestPolicyOutput, - DeletePublicKeyInput, DeletePublicKeyOutput, - DeleteRealtimeLogConfigInput, DeleteRealtimeLogConfigOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteResponseHeadersPolicyInput, DeleteResponseHeadersPolicyOutput, - DeleteStreamingDistributionInput, DeleteStreamingDistributionOutput, - DeleteTrustStoreInput, DeleteTrustStoreOutput, - DeleteVpcOriginInput, DeleteVpcOriginOutput, - DescribeConnectionFunctionInput, DescribeConnectionFunctionOutput, - DescribeFunctionInput, DescribeFunctionOutput, - DescribeKeyValueStoreInput, DescribeKeyValueStoreOutput, - DisassociateDistributionTenantWebACLInput, DisassociateDistributionTenantWebACLOutput, - DisassociateDistributionWebACLInput, DisassociateDistributionWebACLOutput, - GetAnycastIpListInput, GetAnycastIpListOutput, - GetCachePolicyConfigInput, GetCachePolicyConfigOutput, - GetCachePolicyInput, GetCachePolicyOutput, - GetCloudFrontOriginAccessIdentityConfigInput, GetCloudFrontOriginAccessIdentityConfigOutput, - GetCloudFrontOriginAccessIdentityInput, GetCloudFrontOriginAccessIdentityOutput, - GetConnectionFunctionInput, GetConnectionFunctionOutput, - GetConnectionGroupByRoutingEndpointInput, GetConnectionGroupByRoutingEndpointOutput, - GetConnectionGroupInput, GetConnectionGroupOutput, - GetContinuousDeploymentPolicyConfigInput, GetContinuousDeploymentPolicyConfigOutput, - GetContinuousDeploymentPolicyInput, GetContinuousDeploymentPolicyOutput, - GetDistributionConfigInput, GetDistributionConfigOutput, - GetDistributionInput, GetDistributionOutput, - GetDistributionTenantByDomainInput, GetDistributionTenantByDomainOutput, - GetDistributionTenantInput, GetDistributionTenantOutput, - GetFieldLevelEncryptionConfigInput, GetFieldLevelEncryptionConfigOutput, - GetFieldLevelEncryptionInput, GetFieldLevelEncryptionOutput, - GetFieldLevelEncryptionProfileConfigInput, GetFieldLevelEncryptionProfileConfigOutput, - GetFieldLevelEncryptionProfileInput, GetFieldLevelEncryptionProfileOutput, - GetFunctionInput, GetFunctionOutput, - GetInvalidationForDistributionTenantInput, GetInvalidationForDistributionTenantOutput, - GetInvalidationInput, GetInvalidationOutput, - GetKeyGroupConfigInput, GetKeyGroupConfigOutput, - GetKeyGroupInput, GetKeyGroupOutput, - GetManagedCertificateDetailsInput, GetManagedCertificateDetailsOutput, - GetMonitoringSubscriptionInput, GetMonitoringSubscriptionOutput, - GetOriginAccessControlConfigInput, GetOriginAccessControlConfigOutput, - GetOriginAccessControlInput, GetOriginAccessControlOutput, - GetOriginRequestPolicyConfigInput, GetOriginRequestPolicyConfigOutput, - GetOriginRequestPolicyInput, GetOriginRequestPolicyOutput, - GetPublicKeyConfigInput, GetPublicKeyConfigOutput, - GetPublicKeyInput, GetPublicKeyOutput, - GetRealtimeLogConfigInput, GetRealtimeLogConfigOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetResponseHeadersPolicyConfigInput, GetResponseHeadersPolicyConfigOutput, - GetResponseHeadersPolicyInput, GetResponseHeadersPolicyOutput, - GetStreamingDistributionConfigInput, GetStreamingDistributionConfigOutput, - GetStreamingDistributionInput, GetStreamingDistributionOutput, - GetTrustStoreInput, GetTrustStoreOutput, - GetVpcOriginInput, GetVpcOriginOutput, - ListAnycastIpListsInput, ListAnycastIpListsOutput, - ListCachePoliciesInput, ListCachePoliciesOutput, - ListCloudFrontOriginAccessIdentitiesInput, ListCloudFrontOriginAccessIdentitiesOutput, - ListConflictingAliasesInput, ListConflictingAliasesOutput, - ListConnectionFunctionsInput, ListConnectionFunctionsOutput, - ListConnectionGroupsInput, ListConnectionGroupsOutput, - ListContinuousDeploymentPoliciesInput, ListContinuousDeploymentPoliciesOutput, - ListDistributionTenantsByCustomizationInput, ListDistributionTenantsByCustomizationOutput, - ListDistributionTenantsInput, ListDistributionTenantsOutput, - ListDistributionsByAnycastIpListIdInput, ListDistributionsByAnycastIpListIdOutput, - ListDistributionsByCachePolicyIdInput, ListDistributionsByCachePolicyIdOutput, - ListDistributionsByConnectionFunctionInput, ListDistributionsByConnectionFunctionOutput, - ListDistributionsByConnectionModeInput, ListDistributionsByConnectionModeOutput, - ListDistributionsByKeyGroupInput, ListDistributionsByKeyGroupOutput, - ListDistributionsByOriginRequestPolicyIdInput, ListDistributionsByOriginRequestPolicyIdOutput, - ListDistributionsByOwnedResourceInput, ListDistributionsByOwnedResourceOutput, - ListDistributionsByRealtimeLogConfigInput, ListDistributionsByRealtimeLogConfigOutput, - ListDistributionsByResponseHeadersPolicyIdInput, ListDistributionsByResponseHeadersPolicyIdOutput, - ListDistributionsByTrustStoreInput, ListDistributionsByTrustStoreOutput, - ListDistributionsByVpcOriginIdInput, ListDistributionsByVpcOriginIdOutput, - ListDistributionsByWebACLIdInput, ListDistributionsByWebACLIdOutput, - ListDistributionsInput, ListDistributionsOutput, - ListDomainConflictsInput, ListDomainConflictsOutput, - ListFieldLevelEncryptionConfigsInput, ListFieldLevelEncryptionConfigsOutput, - ListFieldLevelEncryptionProfilesInput, ListFieldLevelEncryptionProfilesOutput, - ListFunctionsInput, ListFunctionsOutput, - ListInvalidationsForDistributionTenantInput, ListInvalidationsForDistributionTenantOutput, - ListInvalidationsInput, ListInvalidationsOutput, - ListKeyGroupsInput, ListKeyGroupsOutput, - ListKeyValueStoresInput, ListKeyValueStoresOutput, - ListOriginAccessControlsInput, ListOriginAccessControlsOutput, - ListOriginRequestPoliciesInput, ListOriginRequestPoliciesOutput, - ListPublicKeysInput, ListPublicKeysOutput, - ListRealtimeLogConfigsInput, ListRealtimeLogConfigsOutput, - ListResponseHeadersPoliciesInput, ListResponseHeadersPoliciesOutput, - ListStreamingDistributionsInput, ListStreamingDistributionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListTrustStoresInput, ListTrustStoresOutput, - ListVpcOriginsInput, ListVpcOriginsOutput, - PublishConnectionFunctionInput, PublishConnectionFunctionOutput, - PublishFunctionInput, PublishFunctionOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - TagResourceInput, TagResourceOutput, - TestConnectionFunctionInput, TestConnectionFunctionOutput, - TestFunctionInput, TestFunctionOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAnycastIpListInput, UpdateAnycastIpListOutput, - UpdateCachePolicyInput, UpdateCachePolicyOutput, - UpdateCloudFrontOriginAccessIdentityInput, UpdateCloudFrontOriginAccessIdentityOutput, - UpdateConnectionFunctionInput, UpdateConnectionFunctionOutput, - UpdateConnectionGroupInput, UpdateConnectionGroupOutput, - UpdateContinuousDeploymentPolicyInput, UpdateContinuousDeploymentPolicyOutput, - UpdateDistributionInput, UpdateDistributionOutput, - UpdateDistributionTenantInput, UpdateDistributionTenantOutput, - UpdateDistributionWithStagingConfigInput, UpdateDistributionWithStagingConfigOutput, - UpdateDomainAssociationInput, UpdateDomainAssociationOutput, - UpdateFieldLevelEncryptionConfigInput, UpdateFieldLevelEncryptionConfigOutput, - UpdateFieldLevelEncryptionProfileInput, UpdateFieldLevelEncryptionProfileOutput, - UpdateFunctionInput, UpdateFunctionOutput, - UpdateKeyGroupInput, UpdateKeyGroupOutput, - UpdateKeyValueStoreInput, UpdateKeyValueStoreOutput, - UpdateOriginAccessControlInput, UpdateOriginAccessControlOutput, - UpdateOriginRequestPolicyInput, UpdateOriginRequestPolicyOutput, - UpdatePublicKeyInput, UpdatePublicKeyOutput, - UpdateRealtimeLogConfigInput, UpdateRealtimeLogConfigOutput, - UpdateResponseHeadersPolicyInput, UpdateResponseHeadersPolicyOutput, - UpdateStreamingDistributionInput, UpdateStreamingDistributionOutput, - UpdateTrustStoreInput, UpdateTrustStoreOutput, - UpdateVpcOriginInput, UpdateVpcOriginOutput, - VerifyDnsConfigurationInput, VerifyDnsConfigurationOutput, ) @@ -369,10 +202,24 @@ class AsyncCloudFrontClient(AsyncClient[AsyncCloudFrontConfig]): Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def associate_alias( - self, input: AssociateAliasInput, plugins: list[Plugin] | None = None + self, + request: _models.AssociateAliasInput | _models.AssociateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateAliasOutput: ... + + @_overload + async def associate_alias( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateAliasInputDict], ) -> AssociateAliasOutput: """ Note: @@ -403,8 +250,6 @@ async def associate_alias( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `AssociateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -414,19 +259,39 @@ async def associate_alias( Returns: An instance of `AssociateAliasOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_ALIAS, [], plugins) + async def associate_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateAliasOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_ALIAS, args, kwargs), + _models.ASSOCIATE_ALIAS, + [], + plugins, + ) + + @_overload + async def associate_distribution_tenant_web_acl( + self, + request: _models.AssociateDistributionTenantWebACLInput + | _models.AssociateDistributionTenantWebACLInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateDistributionTenantWebACLOutput: ... + + @_overload async def associate_distribution_tenant_web_acl( self, - input: AssociateDistributionTenantWebACLInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateDistributionTenantWebACLInputDict], ) -> AssociateDistributionTenantWebACLOutput: """ Associates the WAF web ACL with a distribution tenant. Args: - input: - An instance of `AssociateDistributionTenantWebACLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -436,21 +301,41 @@ async def associate_distribution_tenant_web_acl( Returns: An instance of `AssociateDistributionTenantWebACLOutput`. """ + + async def associate_distribution_tenant_web_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateDistributionTenantWebACLOutput: return await self._invoke( - input, _models.ASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, [], plugins + self._select_input( + _models.ASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, args, kwargs + ), + _models.ASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, + [], + plugins, ) + @_overload + async def associate_distribution_web_acl( + self, + request: _models.AssociateDistributionWebACLInput + | _models.AssociateDistributionWebACLInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateDistributionWebACLOutput: ... + + @_overload async def associate_distribution_web_acl( self, - input: AssociateDistributionWebACLInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateDistributionWebACLInputDict], ) -> AssociateDistributionWebACLOutput: """ Associates the WAF web ACL with a distribution. Args: - input: - An instance of `AssociateDistributionWebACLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -460,12 +345,33 @@ async def associate_distribution_web_acl( Returns: An instance of `AssociateDistributionWebACLOutput`. """ + + async def associate_distribution_web_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateDistributionWebACLOutput: return await self._invoke( - input, _models.ASSOCIATE_DISTRIBUTION_WEB_ACL, [], plugins + self._select_input(_models.ASSOCIATE_DISTRIBUTION_WEB_ACL, args, kwargs), + _models.ASSOCIATE_DISTRIBUTION_WEB_ACL, + [], + plugins, ) + @_overload + async def copy_distribution( + self, + request: _models.CopyDistributionInput | _models.CopyDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDistributionOutput: ... + + @_overload async def copy_distribution( - self, input: CopyDistributionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDistributionInputDict], ) -> CopyDistributionOutput: """ Creates a staging distribution using the configuration of the provided @@ -487,8 +393,6 @@ async def copy_distribution( - [CopyDistribution](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CopyDistribution.html) Args: - input: - An instance of `CopyDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -498,17 +402,39 @@ async def copy_distribution( Returns: An instance of `CopyDistributionOutput`. """ - return await self._invoke(input, _models.COPY_DISTRIBUTION, [], plugins) + async def copy_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDistributionOutput: + return await self._invoke( + self._select_input(_models.COPY_DISTRIBUTION, args, kwargs), + _models.COPY_DISTRIBUTION, + [], + plugins, + ) + + @_overload + async def create_anycast_ip_list( + self, + request: _models.CreateAnycastIpListInput + | _models.CreateAnycastIpListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAnycastIpListOutput: ... + + @_overload async def create_anycast_ip_list( - self, input: CreateAnycastIpListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAnycastIpListInputDict], ) -> CreateAnycastIpListOutput: """ Creates an Anycast static IP list. Args: - input: - An instance of `CreateAnycastIpListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -518,10 +444,33 @@ async def create_anycast_ip_list( Returns: An instance of `CreateAnycastIpListOutput`. """ - return await self._invoke(input, _models.CREATE_ANYCAST_IP_LIST, [], plugins) + async def create_anycast_ip_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAnycastIpListOutput: + return await self._invoke( + self._select_input(_models.CREATE_ANYCAST_IP_LIST, args, kwargs), + _models.CREATE_ANYCAST_IP_LIST, + [], + plugins, + ) + + @_overload + async def create_cache_policy( + self, + request: _models.CreateCachePolicyInput | _models.CreateCachePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCachePolicyOutput: ... + + @_overload async def create_cache_policy( - self, input: CreateCachePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCachePolicyInputDict], ) -> CreateCachePolicyOutput: """ Creates a cache policy. @@ -556,8 +505,6 @@ async def create_cache_policy( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateCachePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -567,12 +514,34 @@ async def create_cache_policy( Returns: An instance of `CreateCachePolicyOutput`. """ - return await self._invoke(input, _models.CREATE_CACHE_POLICY, [], plugins) + async def create_cache_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCachePolicyOutput: + return await self._invoke( + self._select_input(_models.CREATE_CACHE_POLICY, args, kwargs), + _models.CREATE_CACHE_POLICY, + [], + plugins, + ) + + @_overload + async def create_cloud_front_origin_access_identity( + self, + request: _models.CreateCloudFrontOriginAccessIdentityInput + | _models.CreateCloudFrontOriginAccessIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCloudFrontOriginAccessIdentityOutput: ... + + @_overload async def create_cloud_front_origin_access_identity( self, - input: CreateCloudFrontOriginAccessIdentityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCloudFrontOriginAccessIdentityInputDict], ) -> CreateCloudFrontOriginAccessIdentityOutput: """ Creates a new origin access identity. If you're using Amazon S3 for @@ -584,8 +553,6 @@ async def create_cloud_front_origin_access_identity( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateCloudFrontOriginAccessIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -595,19 +562,41 @@ async def create_cloud_front_origin_access_identity( Returns: An instance of `CreateCloudFrontOriginAccessIdentityOutput`. """ + + async def create_cloud_front_origin_access_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCloudFrontOriginAccessIdentityOutput: return await self._invoke( - input, _models.CREATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, [], plugins + self._select_input( + _models.CREATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, args, kwargs + ), + _models.CREATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, + [], + plugins, ) + @_overload + async def create_connection_function( + self, + request: _models.CreateConnectionFunctionInput + | _models.CreateConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateConnectionFunctionOutput: ... + + @_overload async def create_connection_function( - self, input: CreateConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateConnectionFunctionInputDict], ) -> CreateConnectionFunctionOutput: """ Creates a connection function. Args: - input: - An instance of `CreateConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -617,19 +606,39 @@ async def create_connection_function( Returns: An instance of `CreateConnectionFunctionOutput`. """ + + async def create_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateConnectionFunctionOutput: return await self._invoke( - input, _models.CREATE_CONNECTION_FUNCTION, [], plugins + self._select_input(_models.CREATE_CONNECTION_FUNCTION, args, kwargs), + _models.CREATE_CONNECTION_FUNCTION, + [], + plugins, ) + @_overload + async def create_connection_group( + self, + request: _models.CreateConnectionGroupInput + | _models.CreateConnectionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateConnectionGroupOutput: ... + + @_overload async def create_connection_group( - self, input: CreateConnectionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateConnectionGroupInputDict], ) -> CreateConnectionGroupOutput: """ Creates a connection group. Args: - input: - An instance of `CreateConnectionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -639,12 +648,34 @@ async def create_connection_group( Returns: An instance of `CreateConnectionGroupOutput`. """ - return await self._invoke(input, _models.CREATE_CONNECTION_GROUP, [], plugins) + async def create_connection_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateConnectionGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_CONNECTION_GROUP, args, kwargs), + _models.CREATE_CONNECTION_GROUP, + [], + plugins, + ) + + @_overload + async def create_continuous_deployment_policy( + self, + request: _models.CreateContinuousDeploymentPolicyInput + | _models.CreateContinuousDeploymentPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateContinuousDeploymentPolicyOutput: ... + + @_overload async def create_continuous_deployment_policy( self, - input: CreateContinuousDeploymentPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateContinuousDeploymentPolicyInputDict], ) -> CreateContinuousDeploymentPolicyOutput: """ Creates a continuous deployment policy that distributes traffic for a @@ -661,8 +692,6 @@ async def create_continuous_deployment_policy( production traffic to the new configuration. Args: - input: - An instance of `CreateContinuousDeploymentPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -672,19 +701,40 @@ async def create_continuous_deployment_policy( Returns: An instance of `CreateContinuousDeploymentPolicyOutput`. """ + + async def create_continuous_deployment_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateContinuousDeploymentPolicyOutput: return await self._invoke( - input, _models.CREATE_CONTINUOUS_DEPLOYMENT_POLICY, [], plugins + self._select_input( + _models.CREATE_CONTINUOUS_DEPLOYMENT_POLICY, args, kwargs + ), + _models.CREATE_CONTINUOUS_DEPLOYMENT_POLICY, + [], + plugins, ) + @_overload + async def create_distribution( + self, + request: _models.CreateDistributionInput | _models.CreateDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDistributionOutput: ... + + @_overload async def create_distribution( - self, input: CreateDistributionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDistributionInputDict], ) -> CreateDistributionOutput: """ Creates a CloudFront distribution. Args: - input: - An instance of `CreateDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -694,17 +744,39 @@ async def create_distribution( Returns: An instance of `CreateDistributionOutput`. """ - return await self._invoke(input, _models.CREATE_DISTRIBUTION, [], plugins) + async def create_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDistributionOutput: + return await self._invoke( + self._select_input(_models.CREATE_DISTRIBUTION, args, kwargs), + _models.CREATE_DISTRIBUTION, + [], + plugins, + ) + + @_overload + async def create_distribution_tenant( + self, + request: _models.CreateDistributionTenantInput + | _models.CreateDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDistributionTenantOutput: ... + + @_overload async def create_distribution_tenant( - self, input: CreateDistributionTenantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDistributionTenantInputDict], ) -> CreateDistributionTenantOutput: """ Creates a distribution tenant. Args: - input: - An instance of `CreateDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -714,14 +786,34 @@ async def create_distribution_tenant( Returns: An instance of `CreateDistributionTenantOutput`. """ + + async def create_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDistributionTenantOutput: return await self._invoke( - input, _models.CREATE_DISTRIBUTION_TENANT, [], plugins + self._select_input(_models.CREATE_DISTRIBUTION_TENANT, args, kwargs), + _models.CREATE_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload async def create_distribution_with_tags( self, - input: CreateDistributionWithTagsInput, + request: _models.CreateDistributionWithTagsInput + | _models.CreateDistributionWithTagsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateDistributionWithTagsOutput: ... + + @_overload + async def create_distribution_with_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDistributionWithTagsInputDict], ) -> CreateDistributionWithTagsOutput: """ Create a new distribution with tags. This API operation requires the @@ -732,8 +824,6 @@ async def create_distribution_with_tags( - [TagResource](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_TagResource.html) Args: - input: - An instance of `CreateDistributionWithTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -743,21 +833,39 @@ async def create_distribution_with_tags( Returns: An instance of `CreateDistributionWithTagsOutput`. """ + + async def create_distribution_with_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDistributionWithTagsOutput: return await self._invoke( - input, _models.CREATE_DISTRIBUTION_WITH_TAGS, [], plugins + self._select_input(_models.CREATE_DISTRIBUTION_WITH_TAGS, args, kwargs), + _models.CREATE_DISTRIBUTION_WITH_TAGS, + [], + plugins, ) + @_overload + async def create_field_level_encryption_config( + self, + request: _models.CreateFieldLevelEncryptionConfigInput + | _models.CreateFieldLevelEncryptionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFieldLevelEncryptionConfigOutput: ... + + @_overload async def create_field_level_encryption_config( self, - input: CreateFieldLevelEncryptionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFieldLevelEncryptionConfigInputDict], ) -> CreateFieldLevelEncryptionConfigOutput: """ Create a new field-level encryption configuration. Args: - input: - An instance of `CreateFieldLevelEncryptionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -767,21 +875,41 @@ async def create_field_level_encryption_config( Returns: An instance of `CreateFieldLevelEncryptionConfigOutput`. """ + + async def create_field_level_encryption_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFieldLevelEncryptionConfigOutput: return await self._invoke( - input, _models.CREATE_FIELD_LEVEL_ENCRYPTION_CONFIG, [], plugins + self._select_input( + _models.CREATE_FIELD_LEVEL_ENCRYPTION_CONFIG, args, kwargs + ), + _models.CREATE_FIELD_LEVEL_ENCRYPTION_CONFIG, + [], + plugins, ) + @_overload + async def create_field_level_encryption_profile( + self, + request: _models.CreateFieldLevelEncryptionProfileInput + | _models.CreateFieldLevelEncryptionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFieldLevelEncryptionProfileOutput: ... + + @_overload async def create_field_level_encryption_profile( self, - input: CreateFieldLevelEncryptionProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFieldLevelEncryptionProfileInputDict], ) -> CreateFieldLevelEncryptionProfileOutput: """ Create a field-level encryption profile. Args: - input: - An instance of `CreateFieldLevelEncryptionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -791,12 +919,35 @@ async def create_field_level_encryption_profile( Returns: An instance of `CreateFieldLevelEncryptionProfileOutput`. """ + + async def create_field_level_encryption_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFieldLevelEncryptionProfileOutput: return await self._invoke( - input, _models.CREATE_FIELD_LEVEL_ENCRYPTION_PROFILE, [], plugins + self._select_input( + _models.CREATE_FIELD_LEVEL_ENCRYPTION_PROFILE, args, kwargs + ), + _models.CREATE_FIELD_LEVEL_ENCRYPTION_PROFILE, + [], + plugins, ) + @_overload + async def create_function( + self, + request: _models.CreateFunctionInput | _models.CreateFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFunctionOutput: ... + + @_overload async def create_function( - self, input: CreateFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFunctionInputDict], ) -> CreateFunctionOutput: """ Creates a CloudFront function. @@ -815,8 +966,6 @@ async def create_function( distribution's cache behavior, using the function's ARN. Args: - input: - An instance of `CreateFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -826,10 +975,33 @@ async def create_function( Returns: An instance of `CreateFunctionOutput`. """ - return await self._invoke(input, _models.CREATE_FUNCTION, [], plugins) + async def create_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFunctionOutput: + return await self._invoke( + self._select_input(_models.CREATE_FUNCTION, args, kwargs), + _models.CREATE_FUNCTION, + [], + plugins, + ) + + @_overload async def create_invalidation( - self, input: CreateInvalidationInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateInvalidationInput | _models.CreateInvalidationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInvalidationOutput: ... + + @_overload + async def create_invalidation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInvalidationInputDict], ) -> CreateInvalidationOutput: """ Create a new invalidation. For more information, see [Invalidating @@ -837,8 +1009,6 @@ async def create_invalidation( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateInvalidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -848,12 +1018,34 @@ async def create_invalidation( Returns: An instance of `CreateInvalidationOutput`. """ - return await self._invoke(input, _models.CREATE_INVALIDATION, [], plugins) + async def create_invalidation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInvalidationOutput: + return await self._invoke( + self._select_input(_models.CREATE_INVALIDATION, args, kwargs), + _models.CREATE_INVALIDATION, + [], + plugins, + ) + + @_overload + async def create_invalidation_for_distribution_tenant( + self, + request: _models.CreateInvalidationForDistributionTenantInput + | _models.CreateInvalidationForDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInvalidationForDistributionTenantOutput: ... + + @_overload async def create_invalidation_for_distribution_tenant( self, - input: CreateInvalidationForDistributionTenantInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInvalidationForDistributionTenantInputDict], ) -> CreateInvalidationForDistributionTenantOutput: """ Creates an invalidation for a distribution tenant. For more information, @@ -862,8 +1054,6 @@ async def create_invalidation_for_distribution_tenant( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateInvalidationForDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -873,12 +1063,35 @@ async def create_invalidation_for_distribution_tenant( Returns: An instance of `CreateInvalidationForDistributionTenantOutput`. """ + + async def create_invalidation_for_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInvalidationForDistributionTenantOutput: return await self._invoke( - input, _models.CREATE_INVALIDATION_FOR_DISTRIBUTION_TENANT, [], plugins + self._select_input( + _models.CREATE_INVALIDATION_FOR_DISTRIBUTION_TENANT, args, kwargs + ), + _models.CREATE_INVALIDATION_FOR_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload + async def create_key_group( + self, + request: _models.CreateKeyGroupInput | _models.CreateKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKeyGroupOutput: ... + + @_overload async def create_key_group( - self, input: CreateKeyGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKeyGroupInputDict], ) -> CreateKeyGroupOutput: """ Creates a key group that you can use with [CloudFront signed URLs and @@ -898,8 +1111,6 @@ async def create_key_group( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -909,10 +1120,34 @@ async def create_key_group( Returns: An instance of `CreateKeyGroupOutput`. """ - return await self._invoke(input, _models.CREATE_KEY_GROUP, [], plugins) + async def create_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKeyGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_KEY_GROUP, args, kwargs), + _models.CREATE_KEY_GROUP, + [], + plugins, + ) + + @_overload + async def create_key_value_store( + self, + request: _models.CreateKeyValueStoreInput + | _models.CreateKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKeyValueStoreOutput: ... + + @_overload async def create_key_value_store( - self, input: CreateKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKeyValueStoreInputDict], ) -> CreateKeyValueStoreOutput: """ Specifies the key value store resource to add to your account. In your @@ -921,8 +1156,6 @@ async def create_key_value_store( valid `ImportSource` that you own. Args: - input: - An instance of `CreateKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -932,12 +1165,34 @@ async def create_key_value_store( Returns: An instance of `CreateKeyValueStoreOutput`. """ - return await self._invoke(input, _models.CREATE_KEY_VALUE_STORE, [], plugins) + async def create_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKeyValueStoreOutput: + return await self._invoke( + self._select_input(_models.CREATE_KEY_VALUE_STORE, args, kwargs), + _models.CREATE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload async def create_monitoring_subscription( self, - input: CreateMonitoringSubscriptionInput, + request: _models.CreateMonitoringSubscriptionInput + | _models.CreateMonitoringSubscriptionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateMonitoringSubscriptionOutput: ... + + @_overload + async def create_monitoring_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMonitoringSubscriptionInputDict], ) -> CreateMonitoringSubscriptionOutput: """ Enables or disables additional Amazon CloudWatch metrics for the @@ -949,8 +1204,6 @@ async def create_monitoring_subscription( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateMonitoringSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -960,12 +1213,34 @@ async def create_monitoring_subscription( Returns: An instance of `CreateMonitoringSubscriptionOutput`. """ + + async def create_monitoring_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMonitoringSubscriptionOutput: return await self._invoke( - input, _models.CREATE_MONITORING_SUBSCRIPTION, [], plugins + self._select_input(_models.CREATE_MONITORING_SUBSCRIPTION, args, kwargs), + _models.CREATE_MONITORING_SUBSCRIPTION, + [], + plugins, ) + @_overload + async def create_origin_access_control( + self, + request: _models.CreateOriginAccessControlInput + | _models.CreateOriginAccessControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOriginAccessControlOutput: ... + + @_overload async def create_origin_access_control( - self, input: CreateOriginAccessControlInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOriginAccessControlInputDict], ) -> CreateOriginAccessControlOutput: """ Creates a new origin access control in CloudFront. After you create an @@ -982,8 +1257,6 @@ async def create_origin_access_control( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateOriginAccessControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -993,12 +1266,34 @@ async def create_origin_access_control( Returns: An instance of `CreateOriginAccessControlOutput`. """ + + async def create_origin_access_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOriginAccessControlOutput: return await self._invoke( - input, _models.CREATE_ORIGIN_ACCESS_CONTROL, [], plugins + self._select_input(_models.CREATE_ORIGIN_ACCESS_CONTROL, args, kwargs), + _models.CREATE_ORIGIN_ACCESS_CONTROL, + [], + plugins, ) + @_overload async def create_origin_request_policy( - self, input: CreateOriginRequestPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateOriginRequestPolicyInput + | _models.CreateOriginRequestPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOriginRequestPolicyOutput: ... + + @_overload + async def create_origin_request_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOriginRequestPolicyInputDict], ) -> CreateOriginRequestPolicyOutput: """ Creates an origin request policy. @@ -1030,8 +1325,6 @@ async def create_origin_request_policy( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateOriginRequestPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1041,12 +1334,33 @@ async def create_origin_request_policy( Returns: An instance of `CreateOriginRequestPolicyOutput`. """ + + async def create_origin_request_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOriginRequestPolicyOutput: return await self._invoke( - input, _models.CREATE_ORIGIN_REQUEST_POLICY, [], plugins + self._select_input(_models.CREATE_ORIGIN_REQUEST_POLICY, args, kwargs), + _models.CREATE_ORIGIN_REQUEST_POLICY, + [], + plugins, ) + @_overload + async def create_public_key( + self, + request: _models.CreatePublicKeyInput | _models.CreatePublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePublicKeyOutput: ... + + @_overload async def create_public_key( - self, input: CreatePublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePublicKeyInputDict], ) -> CreatePublicKeyOutput: """ Uploads a public key to CloudFront that you can use with [signed URLs @@ -1056,8 +1370,6 @@ async def create_public_key( encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html). Args: - input: - An instance of `CreatePublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1067,10 +1379,34 @@ async def create_public_key( Returns: An instance of `CreatePublicKeyOutput`. """ - return await self._invoke(input, _models.CREATE_PUBLIC_KEY, [], plugins) + async def create_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePublicKeyOutput: + return await self._invoke( + self._select_input(_models.CREATE_PUBLIC_KEY, args, kwargs), + _models.CREATE_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + async def create_realtime_log_config( + self, + request: _models.CreateRealtimeLogConfigInput + | _models.CreateRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRealtimeLogConfigOutput: ... + + @_overload async def create_realtime_log_config( - self, input: CreateRealtimeLogConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRealtimeLogConfigInputDict], ) -> CreateRealtimeLogConfigOutput: """ Creates a real-time log configuration. @@ -1084,8 +1420,6 @@ async def create_realtime_log_config( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1095,14 +1429,34 @@ async def create_realtime_log_config( Returns: An instance of `CreateRealtimeLogConfigOutput`. """ + + async def create_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRealtimeLogConfigOutput: return await self._invoke( - input, _models.CREATE_REALTIME_LOG_CONFIG, [], plugins + self._select_input(_models.CREATE_REALTIME_LOG_CONFIG, args, kwargs), + _models.CREATE_REALTIME_LOG_CONFIG, + [], + plugins, ) + @_overload + async def create_response_headers_policy( + self, + request: _models.CreateResponseHeadersPolicyInput + | _models.CreateResponseHeadersPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateResponseHeadersPolicyOutput: ... + + @_overload async def create_response_headers_policy( self, - input: CreateResponseHeadersPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateResponseHeadersPolicyInputDict], ) -> CreateResponseHeadersPolicyOutput: """ Creates a response headers policy. @@ -1123,8 +1477,6 @@ async def create_response_headers_policy( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateResponseHeadersPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1134,14 +1486,34 @@ async def create_response_headers_policy( Returns: An instance of `CreateResponseHeadersPolicyOutput`. """ + + async def create_response_headers_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateResponseHeadersPolicyOutput: return await self._invoke( - input, _models.CREATE_RESPONSE_HEADERS_POLICY, [], plugins + self._select_input(_models.CREATE_RESPONSE_HEADERS_POLICY, args, kwargs), + _models.CREATE_RESPONSE_HEADERS_POLICY, + [], + plugins, ) + @_overload + async def create_streaming_distribution( + self, + request: _models.CreateStreamingDistributionInput + | _models.CreateStreamingDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStreamingDistributionOutput: ... + + @_overload async def create_streaming_distribution( self, - input: CreateStreamingDistributionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStreamingDistributionInputDict], ) -> CreateStreamingDistributionOutput: """ This API is deprecated. Amazon CloudFront is deprecating real-time @@ -1151,8 +1523,6 @@ async def create_streaming_distribution( Amazon CloudFront discussion forum. Args: - input: - An instance of `CreateStreamingDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1162,14 +1532,34 @@ async def create_streaming_distribution( Returns: An instance of `CreateStreamingDistributionOutput`. """ + + async def create_streaming_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStreamingDistributionOutput: return await self._invoke( - input, _models.CREATE_STREAMING_DISTRIBUTION, [], plugins + self._select_input(_models.CREATE_STREAMING_DISTRIBUTION, args, kwargs), + _models.CREATE_STREAMING_DISTRIBUTION, + [], + plugins, ) + @_overload + async def create_streaming_distribution_with_tags( + self, + request: _models.CreateStreamingDistributionWithTagsInput + | _models.CreateStreamingDistributionWithTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStreamingDistributionWithTagsOutput: ... + + @_overload async def create_streaming_distribution_with_tags( self, - input: CreateStreamingDistributionWithTagsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStreamingDistributionWithTagsInputDict], ) -> CreateStreamingDistributionWithTagsOutput: """ This API is deprecated. Amazon CloudFront is deprecating real-time @@ -1179,8 +1569,6 @@ async def create_streaming_distribution_with_tags( Amazon CloudFront discussion forum. Args: - input: - An instance of `CreateStreamingDistributionWithTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1190,19 +1578,40 @@ async def create_streaming_distribution_with_tags( Returns: An instance of `CreateStreamingDistributionWithTagsOutput`. """ + + async def create_streaming_distribution_with_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStreamingDistributionWithTagsOutput: return await self._invoke( - input, _models.CREATE_STREAMING_DISTRIBUTION_WITH_TAGS, [], plugins + self._select_input( + _models.CREATE_STREAMING_DISTRIBUTION_WITH_TAGS, args, kwargs + ), + _models.CREATE_STREAMING_DISTRIBUTION_WITH_TAGS, + [], + plugins, ) + @_overload + async def create_trust_store( + self, + request: _models.CreateTrustStoreInput | _models.CreateTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrustStoreOutput: ... + + @_overload async def create_trust_store( - self, input: CreateTrustStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrustStoreInputDict], ) -> CreateTrustStoreOutput: """ Creates a trust store. Args: - input: - An instance of `CreateTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1212,17 +1621,38 @@ async def create_trust_store( Returns: An instance of `CreateTrustStoreOutput`. """ - return await self._invoke(input, _models.CREATE_TRUST_STORE, [], plugins) + async def create_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrustStoreOutput: + return await self._invoke( + self._select_input(_models.CREATE_TRUST_STORE, args, kwargs), + _models.CREATE_TRUST_STORE, + [], + plugins, + ) + + @_overload + async def create_vpc_origin( + self, + request: _models.CreateVpcOriginInput | _models.CreateVpcOriginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcOriginOutput: ... + + @_overload async def create_vpc_origin( - self, input: CreateVpcOriginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcOriginInputDict], ) -> CreateVpcOriginOutput: """ Create an Amazon CloudFront VPC origin. Args: - input: - An instance of `CreateVpcOriginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1232,17 +1662,39 @@ async def create_vpc_origin( Returns: An instance of `CreateVpcOriginOutput`. """ - return await self._invoke(input, _models.CREATE_VPC_ORIGIN, [], plugins) + async def create_vpc_origin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcOriginOutput: + return await self._invoke( + self._select_input(_models.CREATE_VPC_ORIGIN, args, kwargs), + _models.CREATE_VPC_ORIGIN, + [], + plugins, + ) + + @_overload async def delete_anycast_ip_list( - self, input: DeleteAnycastIpListInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteAnycastIpListInput + | _models.DeleteAnycastIpListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAnycastIpListOutput: ... + + @_overload + async def delete_anycast_ip_list( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAnycastIpListInputDict], ) -> DeleteAnycastIpListOutput: """ Deletes an Anycast static IP list. Args: - input: - An instance of `DeleteAnycastIpListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1252,10 +1704,33 @@ async def delete_anycast_ip_list( Returns: An instance of `DeleteAnycastIpListOutput`. """ - return await self._invoke(input, _models.DELETE_ANYCAST_IP_LIST, [], plugins) + async def delete_anycast_ip_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAnycastIpListOutput: + return await self._invoke( + self._select_input(_models.DELETE_ANYCAST_IP_LIST, args, kwargs), + _models.DELETE_ANYCAST_IP_LIST, + [], + plugins, + ) + + @_overload + async def delete_cache_policy( + self, + request: _models.DeleteCachePolicyInput | _models.DeleteCachePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCachePolicyOutput: ... + + @_overload async def delete_cache_policy( - self, input: DeleteCachePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCachePolicyInputDict], ) -> DeleteCachePolicyOutput: """ Deletes a cache policy. @@ -1269,8 +1744,6 @@ async def delete_cache_policy( `GetCachePolicy`. Args: - input: - An instance of `DeleteCachePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1280,19 +1753,39 @@ async def delete_cache_policy( Returns: An instance of `DeleteCachePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_CACHE_POLICY, [], plugins) + async def delete_cache_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCachePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_CACHE_POLICY, args, kwargs), + _models.DELETE_CACHE_POLICY, + [], + plugins, + ) + + @_overload + async def delete_cloud_front_origin_access_identity( + self, + request: _models.DeleteCloudFrontOriginAccessIdentityInput + | _models.DeleteCloudFrontOriginAccessIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCloudFrontOriginAccessIdentityOutput: ... + + @_overload async def delete_cloud_front_origin_access_identity( self, - input: DeleteCloudFrontOriginAccessIdentityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCloudFrontOriginAccessIdentityInputDict], ) -> DeleteCloudFrontOriginAccessIdentityOutput: """ Delete an origin access identity. Args: - input: - An instance of `DeleteCloudFrontOriginAccessIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1302,19 +1795,41 @@ async def delete_cloud_front_origin_access_identity( Returns: An instance of `DeleteCloudFrontOriginAccessIdentityOutput`. """ + + async def delete_cloud_front_origin_access_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCloudFrontOriginAccessIdentityOutput: return await self._invoke( - input, _models.DELETE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, [], plugins + self._select_input( + _models.DELETE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, args, kwargs + ), + _models.DELETE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, + [], + plugins, ) + @_overload + async def delete_connection_function( + self, + request: _models.DeleteConnectionFunctionInput + | _models.DeleteConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConnectionFunctionOutput: ... + + @_overload async def delete_connection_function( - self, input: DeleteConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConnectionFunctionInputDict], ) -> DeleteConnectionFunctionOutput: """ Deletes a connection function. Args: - input: - An instance of `DeleteConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1324,19 +1839,39 @@ async def delete_connection_function( Returns: An instance of `DeleteConnectionFunctionOutput`. """ + + async def delete_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConnectionFunctionOutput: return await self._invoke( - input, _models.DELETE_CONNECTION_FUNCTION, [], plugins + self._select_input(_models.DELETE_CONNECTION_FUNCTION, args, kwargs), + _models.DELETE_CONNECTION_FUNCTION, + [], + plugins, ) + @_overload + async def delete_connection_group( + self, + request: _models.DeleteConnectionGroupInput + | _models.DeleteConnectionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConnectionGroupOutput: ... + + @_overload async def delete_connection_group( - self, input: DeleteConnectionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConnectionGroupInputDict], ) -> DeleteConnectionGroupOutput: """ Deletes a connection group. Args: - input: - An instance of `DeleteConnectionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1346,12 +1881,34 @@ async def delete_connection_group( Returns: An instance of `DeleteConnectionGroupOutput`. """ - return await self._invoke(input, _models.DELETE_CONNECTION_GROUP, [], plugins) + async def delete_connection_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConnectionGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_CONNECTION_GROUP, args, kwargs), + _models.DELETE_CONNECTION_GROUP, + [], + plugins, + ) + + @_overload + async def delete_continuous_deployment_policy( + self, + request: _models.DeleteContinuousDeploymentPolicyInput + | _models.DeleteContinuousDeploymentPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteContinuousDeploymentPolicyOutput: ... + + @_overload async def delete_continuous_deployment_policy( self, - input: DeleteContinuousDeploymentPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteContinuousDeploymentPolicyInputDict], ) -> DeleteContinuousDeploymentPolicyOutput: """ Deletes a continuous deployment policy. @@ -1361,8 +1918,6 @@ async def delete_continuous_deployment_policy( continuous deployment policy, then you can delete the policy. Args: - input: - An instance of `DeleteContinuousDeploymentPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1372,12 +1927,35 @@ async def delete_continuous_deployment_policy( Returns: An instance of `DeleteContinuousDeploymentPolicyOutput`. """ + + async def delete_continuous_deployment_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteContinuousDeploymentPolicyOutput: return await self._invoke( - input, _models.DELETE_CONTINUOUS_DEPLOYMENT_POLICY, [], plugins + self._select_input( + _models.DELETE_CONTINUOUS_DEPLOYMENT_POLICY, args, kwargs + ), + _models.DELETE_CONTINUOUS_DEPLOYMENT_POLICY, + [], + plugins, ) + @_overload async def delete_distribution( - self, input: DeleteDistributionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteDistributionInput | _models.DeleteDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDistributionOutput: ... + + @_overload + async def delete_distribution( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDistributionInputDict], ) -> DeleteDistributionOutput: """ Delete a distribution. @@ -1388,8 +1966,6 @@ async def delete_distribution( distribution cannot be recovered. Args: - input: - An instance of `DeleteDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1399,10 +1975,34 @@ async def delete_distribution( Returns: An instance of `DeleteDistributionOutput`. """ - return await self._invoke(input, _models.DELETE_DISTRIBUTION, [], plugins) + async def delete_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDistributionOutput: + return await self._invoke( + self._select_input(_models.DELETE_DISTRIBUTION, args, kwargs), + _models.DELETE_DISTRIBUTION, + [], + plugins, + ) + + @_overload + async def delete_distribution_tenant( + self, + request: _models.DeleteDistributionTenantInput + | _models.DeleteDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDistributionTenantOutput: ... + + @_overload async def delete_distribution_tenant( - self, input: DeleteDistributionTenantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDistributionTenantInputDict], ) -> DeleteDistributionTenantOutput: """ Deletes a distribution tenant. If you use this API operation to delete a @@ -1412,8 +2012,6 @@ async def delete_distribution_tenant( tenant by using the `UpdateDistributionTenant` API operation. Args: - input: - An instance of `DeleteDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1423,21 +2021,39 @@ async def delete_distribution_tenant( Returns: An instance of `DeleteDistributionTenantOutput`. """ + + async def delete_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDistributionTenantOutput: return await self._invoke( - input, _models.DELETE_DISTRIBUTION_TENANT, [], plugins + self._select_input(_models.DELETE_DISTRIBUTION_TENANT, args, kwargs), + _models.DELETE_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload + async def delete_field_level_encryption_config( + self, + request: _models.DeleteFieldLevelEncryptionConfigInput + | _models.DeleteFieldLevelEncryptionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFieldLevelEncryptionConfigOutput: ... + + @_overload async def delete_field_level_encryption_config( self, - input: DeleteFieldLevelEncryptionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFieldLevelEncryptionConfigInputDict], ) -> DeleteFieldLevelEncryptionConfigOutput: """ Remove a field-level encryption configuration. Args: - input: - An instance of `DeleteFieldLevelEncryptionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1447,21 +2063,41 @@ async def delete_field_level_encryption_config( Returns: An instance of `DeleteFieldLevelEncryptionConfigOutput`. """ + + async def delete_field_level_encryption_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFieldLevelEncryptionConfigOutput: return await self._invoke( - input, _models.DELETE_FIELD_LEVEL_ENCRYPTION_CONFIG, [], plugins + self._select_input( + _models.DELETE_FIELD_LEVEL_ENCRYPTION_CONFIG, args, kwargs + ), + _models.DELETE_FIELD_LEVEL_ENCRYPTION_CONFIG, + [], + plugins, ) + @_overload + async def delete_field_level_encryption_profile( + self, + request: _models.DeleteFieldLevelEncryptionProfileInput + | _models.DeleteFieldLevelEncryptionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFieldLevelEncryptionProfileOutput: ... + + @_overload async def delete_field_level_encryption_profile( self, - input: DeleteFieldLevelEncryptionProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFieldLevelEncryptionProfileInputDict], ) -> DeleteFieldLevelEncryptionProfileOutput: """ Remove a field-level encryption profile. Args: - input: - An instance of `DeleteFieldLevelEncryptionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1471,12 +2107,35 @@ async def delete_field_level_encryption_profile( Returns: An instance of `DeleteFieldLevelEncryptionProfileOutput`. """ + + async def delete_field_level_encryption_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFieldLevelEncryptionProfileOutput: return await self._invoke( - input, _models.DELETE_FIELD_LEVEL_ENCRYPTION_PROFILE, [], plugins + self._select_input( + _models.DELETE_FIELD_LEVEL_ENCRYPTION_PROFILE, args, kwargs + ), + _models.DELETE_FIELD_LEVEL_ENCRYPTION_PROFILE, + [], + plugins, ) + @_overload + async def delete_function( + self, + request: _models.DeleteFunctionInput | _models.DeleteFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionOutput: ... + + @_overload async def delete_function( - self, input: DeleteFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionInputDict], ) -> DeleteFunctionOutput: """ Deletes a CloudFront function. @@ -1490,8 +2149,6 @@ async def delete_function( `DescribeFunction`. Args: - input: - An instance of `DeleteFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1501,10 +2158,33 @@ async def delete_function( Returns: An instance of `DeleteFunctionOutput`. """ - return await self._invoke(input, _models.DELETE_FUNCTION, [], plugins) + async def delete_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionOutput: + return await self._invoke( + self._select_input(_models.DELETE_FUNCTION, args, kwargs), + _models.DELETE_FUNCTION, + [], + plugins, + ) + + @_overload + async def delete_key_group( + self, + request: _models.DeleteKeyGroupInput | _models.DeleteKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKeyGroupOutput: ... + + @_overload async def delete_key_group( - self, input: DeleteKeyGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKeyGroupInputDict], ) -> DeleteKeyGroupOutput: """ Deletes a key group. @@ -1518,8 +2198,6 @@ async def delete_key_group( `GetKeyGroup` or `GetKeyGroupConfig`. Args: - input: - An instance of `DeleteKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1529,17 +2207,39 @@ async def delete_key_group( Returns: An instance of `DeleteKeyGroupOutput`. """ - return await self._invoke(input, _models.DELETE_KEY_GROUP, [], plugins) + async def delete_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKeyGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_KEY_GROUP, args, kwargs), + _models.DELETE_KEY_GROUP, + [], + plugins, + ) + + @_overload async def delete_key_value_store( - self, input: DeleteKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteKeyValueStoreInput + | _models.DeleteKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKeyValueStoreOutput: ... + + @_overload + async def delete_key_value_store( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKeyValueStoreInputDict], ) -> DeleteKeyValueStoreOutput: """ Specifies the key value store to delete. Args: - input: - An instance of `DeleteKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1549,20 +2249,40 @@ async def delete_key_value_store( Returns: An instance of `DeleteKeyValueStoreOutput`. """ - return await self._invoke(input, _models.DELETE_KEY_VALUE_STORE, [], plugins) + async def delete_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKeyValueStoreOutput: + return await self._invoke( + self._select_input(_models.DELETE_KEY_VALUE_STORE, args, kwargs), + _models.DELETE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload + async def delete_monitoring_subscription( + self, + request: _models.DeleteMonitoringSubscriptionInput + | _models.DeleteMonitoringSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMonitoringSubscriptionOutput: ... + + @_overload async def delete_monitoring_subscription( self, - input: DeleteMonitoringSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMonitoringSubscriptionInputDict], ) -> DeleteMonitoringSubscriptionOutput: """ Disables additional CloudWatch metrics for the specified CloudFront distribution. Args: - input: - An instance of `DeleteMonitoringSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1572,12 +2292,34 @@ async def delete_monitoring_subscription( Returns: An instance of `DeleteMonitoringSubscriptionOutput`. """ + + async def delete_monitoring_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMonitoringSubscriptionOutput: return await self._invoke( - input, _models.DELETE_MONITORING_SUBSCRIPTION, [], plugins + self._select_input(_models.DELETE_MONITORING_SUBSCRIPTION, args, kwargs), + _models.DELETE_MONITORING_SUBSCRIPTION, + [], + plugins, ) + @_overload + async def delete_origin_access_control( + self, + request: _models.DeleteOriginAccessControlInput + | _models.DeleteOriginAccessControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOriginAccessControlOutput: ... + + @_overload async def delete_origin_access_control( - self, input: DeleteOriginAccessControlInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOriginAccessControlInputDict], ) -> DeleteOriginAccessControlOutput: """ Deletes a CloudFront origin access control. @@ -1587,8 +2329,6 @@ async def delete_origin_access_control( origins, then delete the origin access control. Args: - input: - An instance of `DeleteOriginAccessControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1598,12 +2338,34 @@ async def delete_origin_access_control( Returns: An instance of `DeleteOriginAccessControlOutput`. """ + + async def delete_origin_access_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOriginAccessControlOutput: return await self._invoke( - input, _models.DELETE_ORIGIN_ACCESS_CONTROL, [], plugins + self._select_input(_models.DELETE_ORIGIN_ACCESS_CONTROL, args, kwargs), + _models.DELETE_ORIGIN_ACCESS_CONTROL, + [], + plugins, ) + @_overload + async def delete_origin_request_policy( + self, + request: _models.DeleteOriginRequestPolicyInput + | _models.DeleteOriginRequestPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOriginRequestPolicyOutput: ... + + @_overload async def delete_origin_request_policy( - self, input: DeleteOriginRequestPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOriginRequestPolicyInputDict], ) -> DeleteOriginRequestPolicyOutput: """ Deletes an origin request policy. @@ -1618,8 +2380,6 @@ async def delete_origin_request_policy( `ListOriginRequestPolicies` or `GetOriginRequestPolicy`. Args: - input: - An instance of `DeleteOriginRequestPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1629,19 +2389,38 @@ async def delete_origin_request_policy( Returns: An instance of `DeleteOriginRequestPolicyOutput`. """ + + async def delete_origin_request_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOriginRequestPolicyOutput: return await self._invoke( - input, _models.DELETE_ORIGIN_REQUEST_POLICY, [], plugins + self._select_input(_models.DELETE_ORIGIN_REQUEST_POLICY, args, kwargs), + _models.DELETE_ORIGIN_REQUEST_POLICY, + [], + plugins, ) + @_overload + async def delete_public_key( + self, + request: _models.DeletePublicKeyInput | _models.DeletePublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePublicKeyOutput: ... + + @_overload async def delete_public_key( - self, input: DeletePublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePublicKeyInputDict], ) -> DeletePublicKeyOutput: """ Remove a public key you previously added to CloudFront. Args: - input: - An instance of `DeletePublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1651,10 +2430,34 @@ async def delete_public_key( Returns: An instance of `DeletePublicKeyOutput`. """ - return await self._invoke(input, _models.DELETE_PUBLIC_KEY, [], plugins) + async def delete_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePublicKeyOutput: + return await self._invoke( + self._select_input(_models.DELETE_PUBLIC_KEY, args, kwargs), + _models.DELETE_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + async def delete_realtime_log_config( + self, + request: _models.DeleteRealtimeLogConfigInput + | _models.DeleteRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRealtimeLogConfigOutput: ... + + @_overload async def delete_realtime_log_config( - self, input: DeleteRealtimeLogConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRealtimeLogConfigInputDict], ) -> DeleteRealtimeLogConfigOutput: """ Deletes a real-time log configuration. @@ -1670,8 +2473,6 @@ async def delete_realtime_log_config( identify the real-time log configuration to delete. Args: - input: - An instance of `DeleteRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1681,19 +2482,39 @@ async def delete_realtime_log_config( Returns: An instance of `DeleteRealtimeLogConfigOutput`. """ + + async def delete_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRealtimeLogConfigOutput: return await self._invoke( - input, _models.DELETE_REALTIME_LOG_CONFIG, [], plugins + self._select_input(_models.DELETE_REALTIME_LOG_CONFIG, args, kwargs), + _models.DELETE_REALTIME_LOG_CONFIG, + [], + plugins, ) + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload + async def delete_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource policy attached to the CloudFront resource. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1703,12 +2524,34 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def delete_response_headers_policy( + self, + request: _models.DeleteResponseHeadersPolicyInput + | _models.DeleteResponseHeadersPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResponseHeadersPolicyOutput: ... + + @_overload async def delete_response_headers_policy( self, - input: DeleteResponseHeadersPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResponseHeadersPolicyInputDict], ) -> DeleteResponseHeadersPolicyOutput: """ Deletes a response headers policy. @@ -1723,8 +2566,6 @@ async def delete_response_headers_policy( `ListResponseHeadersPolicies` or `GetResponseHeadersPolicy`. Args: - input: - An instance of `DeleteResponseHeadersPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1734,14 +2575,34 @@ async def delete_response_headers_policy( Returns: An instance of `DeleteResponseHeadersPolicyOutput`. """ + + async def delete_response_headers_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResponseHeadersPolicyOutput: return await self._invoke( - input, _models.DELETE_RESPONSE_HEADERS_POLICY, [], plugins + self._select_input(_models.DELETE_RESPONSE_HEADERS_POLICY, args, kwargs), + _models.DELETE_RESPONSE_HEADERS_POLICY, + [], + plugins, ) + @_overload + async def delete_streaming_distribution( + self, + request: _models.DeleteStreamingDistributionInput + | _models.DeleteStreamingDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStreamingDistributionOutput: ... + + @_overload async def delete_streaming_distribution( self, - input: DeleteStreamingDistributionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStreamingDistributionInputDict], ) -> DeleteStreamingDistributionOutput: """ Delete a streaming distribution. To delete an RTMP distribution using @@ -1786,8 +2647,6 @@ async def delete_streaming_distribution( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `DeleteStreamingDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1797,19 +2656,38 @@ async def delete_streaming_distribution( Returns: An instance of `DeleteStreamingDistributionOutput`. """ + + async def delete_streaming_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStreamingDistributionOutput: return await self._invoke( - input, _models.DELETE_STREAMING_DISTRIBUTION, [], plugins + self._select_input(_models.DELETE_STREAMING_DISTRIBUTION, args, kwargs), + _models.DELETE_STREAMING_DISTRIBUTION, + [], + plugins, ) + @_overload + async def delete_trust_store( + self, + request: _models.DeleteTrustStoreInput | _models.DeleteTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrustStoreOutput: ... + + @_overload async def delete_trust_store( - self, input: DeleteTrustStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrustStoreInputDict], ) -> DeleteTrustStoreOutput: """ Deletes a trust store. Args: - input: - An instance of `DeleteTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1819,17 +2697,38 @@ async def delete_trust_store( Returns: An instance of `DeleteTrustStoreOutput`. """ - return await self._invoke(input, _models.DELETE_TRUST_STORE, [], plugins) + async def delete_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrustStoreOutput: + return await self._invoke( + self._select_input(_models.DELETE_TRUST_STORE, args, kwargs), + _models.DELETE_TRUST_STORE, + [], + plugins, + ) + + @_overload + async def delete_vpc_origin( + self, + request: _models.DeleteVpcOriginInput | _models.DeleteVpcOriginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcOriginOutput: ... + + @_overload async def delete_vpc_origin( - self, input: DeleteVpcOriginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcOriginInputDict], ) -> DeleteVpcOriginOutput: """ Delete an Amazon CloudFront VPC origin. Args: - input: - An instance of `DeleteVpcOriginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1839,19 +2738,39 @@ async def delete_vpc_origin( Returns: An instance of `DeleteVpcOriginOutput`. """ - return await self._invoke(input, _models.DELETE_VPC_ORIGIN, [], plugins) + async def delete_vpc_origin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcOriginOutput: + return await self._invoke( + self._select_input(_models.DELETE_VPC_ORIGIN, args, kwargs), + _models.DELETE_VPC_ORIGIN, + [], + plugins, + ) + + @_overload + async def describe_connection_function( + self, + request: _models.DescribeConnectionFunctionInput + | _models.DescribeConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeConnectionFunctionOutput: ... + + @_overload async def describe_connection_function( self, - input: DescribeConnectionFunctionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeConnectionFunctionInputDict], ) -> DescribeConnectionFunctionOutput: """ Describes a connection function. Args: - input: - An instance of `DescribeConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1861,12 +2780,33 @@ async def describe_connection_function( Returns: An instance of `DescribeConnectionFunctionOutput`. """ + + async def describe_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeConnectionFunctionOutput: return await self._invoke( - input, _models.DESCRIBE_CONNECTION_FUNCTION, [], plugins + self._select_input(_models.DESCRIBE_CONNECTION_FUNCTION, args, kwargs), + _models.DESCRIBE_CONNECTION_FUNCTION, + [], + plugins, ) + @_overload + async def describe_function( + self, + request: _models.DescribeFunctionInput | _models.DescribeFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFunctionOutput: ... + + @_overload async def describe_function( - self, input: DescribeFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFunctionInputDict], ) -> DescribeFunctionOutput: """ Gets configuration information and metadata about a CloudFront function, @@ -1878,8 +2818,6 @@ async def describe_function( `ListFunctions`. Args: - input: - An instance of `DescribeFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1889,17 +2827,39 @@ async def describe_function( Returns: An instance of `DescribeFunctionOutput`. """ - return await self._invoke(input, _models.DESCRIBE_FUNCTION, [], plugins) + async def describe_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFunctionOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_FUNCTION, args, kwargs), + _models.DESCRIBE_FUNCTION, + [], + plugins, + ) + + @_overload + async def describe_key_value_store( + self, + request: _models.DescribeKeyValueStoreInput + | _models.DescribeKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKeyValueStoreOutput: ... + + @_overload async def describe_key_value_store( - self, input: DescribeKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKeyValueStoreInputDict], ) -> DescribeKeyValueStoreOutput: """ Specifies the key value store and its configuration. Args: - input: - An instance of `DescribeKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1909,19 +2869,39 @@ async def describe_key_value_store( Returns: An instance of `DescribeKeyValueStoreOutput`. """ - return await self._invoke(input, _models.DESCRIBE_KEY_VALUE_STORE, [], plugins) - async def disassociate_distribution_tenant_web_acl( + async def describe_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKeyValueStoreOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_KEY_VALUE_STORE, args, kwargs), + _models.DESCRIBE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload + async def disassociate_distribution_tenant_web_acl( self, - input: DisassociateDistributionTenantWebACLInput, + request: _models.DisassociateDistributionTenantWebACLInput + | _models.DisassociateDistributionTenantWebACLInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateDistributionTenantWebACLOutput: ... + + @_overload + async def disassociate_distribution_tenant_web_acl( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateDistributionTenantWebACLInputDict], ) -> DisassociateDistributionTenantWebACLOutput: """ Disassociates a distribution tenant from the WAF web ACL. Args: - input: - An instance of `DisassociateDistributionTenantWebACLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1931,21 +2911,41 @@ async def disassociate_distribution_tenant_web_acl( Returns: An instance of `DisassociateDistributionTenantWebACLOutput`. """ + + async def disassociate_distribution_tenant_web_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateDistributionTenantWebACLOutput: return await self._invoke( - input, _models.DISASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, [], plugins + self._select_input( + _models.DISASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, args, kwargs + ), + _models.DISASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, + [], + plugins, ) + @_overload + async def disassociate_distribution_web_acl( + self, + request: _models.DisassociateDistributionWebACLInput + | _models.DisassociateDistributionWebACLInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateDistributionWebACLOutput: ... + + @_overload async def disassociate_distribution_web_acl( self, - input: DisassociateDistributionWebACLInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateDistributionWebACLInputDict], ) -> DisassociateDistributionWebACLOutput: """ Disassociates a distribution from the WAF web ACL. Args: - input: - An instance of `DisassociateDistributionWebACLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1955,19 +2955,38 @@ async def disassociate_distribution_web_acl( Returns: An instance of `DisassociateDistributionWebACLOutput`. """ + + async def disassociate_distribution_web_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateDistributionWebACLOutput: return await self._invoke( - input, _models.DISASSOCIATE_DISTRIBUTION_WEB_ACL, [], plugins + self._select_input(_models.DISASSOCIATE_DISTRIBUTION_WEB_ACL, args, kwargs), + _models.DISASSOCIATE_DISTRIBUTION_WEB_ACL, + [], + plugins, ) + @_overload + async def get_anycast_ip_list( + self, + request: _models.GetAnycastIpListInput | _models.GetAnycastIpListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAnycastIpListOutput: ... + + @_overload async def get_anycast_ip_list( - self, input: GetAnycastIpListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAnycastIpListInputDict], ) -> GetAnycastIpListOutput: """ Gets an Anycast static IP list. Args: - input: - An instance of `GetAnycastIpListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1977,10 +2996,33 @@ async def get_anycast_ip_list( Returns: An instance of `GetAnycastIpListOutput`. """ - return await self._invoke(input, _models.GET_ANYCAST_IP_LIST, [], plugins) + async def get_anycast_ip_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAnycastIpListOutput: + return await self._invoke( + self._select_input(_models.GET_ANYCAST_IP_LIST, args, kwargs), + _models.GET_ANYCAST_IP_LIST, + [], + plugins, + ) + + @_overload async def get_cache_policy( - self, input: GetCachePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCachePolicyInput | _models.GetCachePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCachePolicyOutput: ... + + @_overload + async def get_cache_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCachePolicyInputDict], ) -> GetCachePolicyOutput: """ Gets a cache policy, including the following metadata: @@ -1996,8 +3038,6 @@ async def get_cache_policy( behavior, you can get the identifier using `ListCachePolicies`. Args: - input: - An instance of `GetCachePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2007,10 +3047,34 @@ async def get_cache_policy( Returns: An instance of `GetCachePolicyOutput`. """ - return await self._invoke(input, _models.GET_CACHE_POLICY, [], plugins) + async def get_cache_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCachePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_CACHE_POLICY, args, kwargs), + _models.GET_CACHE_POLICY, + [], + plugins, + ) + + @_overload + async def get_cache_policy_config( + self, + request: _models.GetCachePolicyConfigInput + | _models.GetCachePolicyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCachePolicyConfigOutput: ... + + @_overload async def get_cache_policy_config( - self, input: GetCachePolicyConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCachePolicyConfigInputDict], ) -> GetCachePolicyConfigOutput: """ Gets a cache policy configuration. @@ -2022,8 +3086,6 @@ async def get_cache_policy_config( behavior, you can get the identifier using `ListCachePolicies`. Args: - input: - An instance of `GetCachePolicyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2033,19 +3095,39 @@ async def get_cache_policy_config( Returns: An instance of `GetCachePolicyConfigOutput`. """ - return await self._invoke(input, _models.GET_CACHE_POLICY_CONFIG, [], plugins) + async def get_cache_policy_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCachePolicyConfigOutput: + return await self._invoke( + self._select_input(_models.GET_CACHE_POLICY_CONFIG, args, kwargs), + _models.GET_CACHE_POLICY_CONFIG, + [], + plugins, + ) + + @_overload + async def get_cloud_front_origin_access_identity( + self, + request: _models.GetCloudFrontOriginAccessIdentityInput + | _models.GetCloudFrontOriginAccessIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCloudFrontOriginAccessIdentityOutput: ... + + @_overload async def get_cloud_front_origin_access_identity( self, - input: GetCloudFrontOriginAccessIdentityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCloudFrontOriginAccessIdentityInputDict], ) -> GetCloudFrontOriginAccessIdentityOutput: """ Get the information about an origin access identity. Args: - input: - An instance of `GetCloudFrontOriginAccessIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2055,21 +3137,41 @@ async def get_cloud_front_origin_access_identity( Returns: An instance of `GetCloudFrontOriginAccessIdentityOutput`. """ + + async def get_cloud_front_origin_access_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCloudFrontOriginAccessIdentityOutput: return await self._invoke( - input, _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, [], plugins + self._select_input( + _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, args, kwargs + ), + _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, + [], + plugins, ) + @_overload + async def get_cloud_front_origin_access_identity_config( + self, + request: _models.GetCloudFrontOriginAccessIdentityConfigInput + | _models.GetCloudFrontOriginAccessIdentityConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCloudFrontOriginAccessIdentityConfigOutput: ... + + @_overload async def get_cloud_front_origin_access_identity_config( self, - input: GetCloudFrontOriginAccessIdentityConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCloudFrontOriginAccessIdentityConfigInputDict], ) -> GetCloudFrontOriginAccessIdentityConfigOutput: """ Get the configuration information about an origin access identity. Args: - input: - An instance of `GetCloudFrontOriginAccessIdentityConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2079,19 +3181,41 @@ async def get_cloud_front_origin_access_identity_config( Returns: An instance of `GetCloudFrontOriginAccessIdentityConfigOutput`. """ + + async def get_cloud_front_origin_access_identity_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCloudFrontOriginAccessIdentityConfigOutput: return await self._invoke( - input, _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_CONFIG, [], plugins + self._select_input( + _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_CONFIG, args, kwargs + ), + _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_CONFIG, + [], + plugins, ) + @_overload async def get_connection_function( - self, input: GetConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetConnectionFunctionInput + | _models.GetConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConnectionFunctionOutput: ... + + @_overload + async def get_connection_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConnectionFunctionInputDict], ) -> GetConnectionFunctionOutput: """ Gets a connection function. Args: - input: - An instance of `GetConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2101,17 +3225,38 @@ async def get_connection_function( Returns: An instance of `GetConnectionFunctionOutput`. """ - return await self._invoke(input, _models.GET_CONNECTION_FUNCTION, [], plugins) + async def get_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConnectionFunctionOutput: + return await self._invoke( + self._select_input(_models.GET_CONNECTION_FUNCTION, args, kwargs), + _models.GET_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload + async def get_connection_group( + self, + request: _models.GetConnectionGroupInput | _models.GetConnectionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConnectionGroupOutput: ... + + @_overload async def get_connection_group( - self, input: GetConnectionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConnectionGroupInputDict], ) -> GetConnectionGroupOutput: """ Gets information about a connection group. Args: - input: - An instance of `GetConnectionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2121,20 +3266,40 @@ async def get_connection_group( Returns: An instance of `GetConnectionGroupOutput`. """ - return await self._invoke(input, _models.GET_CONNECTION_GROUP, [], plugins) + async def get_connection_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConnectionGroupOutput: + return await self._invoke( + self._select_input(_models.GET_CONNECTION_GROUP, args, kwargs), + _models.GET_CONNECTION_GROUP, + [], + plugins, + ) + + @_overload + async def get_connection_group_by_routing_endpoint( + self, + request: _models.GetConnectionGroupByRoutingEndpointInput + | _models.GetConnectionGroupByRoutingEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConnectionGroupByRoutingEndpointOutput: ... + + @_overload async def get_connection_group_by_routing_endpoint( self, - input: GetConnectionGroupByRoutingEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConnectionGroupByRoutingEndpointInputDict], ) -> GetConnectionGroupByRoutingEndpointOutput: """ Gets information about a connection group by using the endpoint that you specify. Args: - input: - An instance of `GetConnectionGroupByRoutingEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2144,22 +3309,42 @@ async def get_connection_group_by_routing_endpoint( Returns: An instance of `GetConnectionGroupByRoutingEndpointOutput`. """ + + async def get_connection_group_by_routing_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConnectionGroupByRoutingEndpointOutput: return await self._invoke( - input, _models.GET_CONNECTION_GROUP_BY_ROUTING_ENDPOINT, [], plugins + self._select_input( + _models.GET_CONNECTION_GROUP_BY_ROUTING_ENDPOINT, args, kwargs + ), + _models.GET_CONNECTION_GROUP_BY_ROUTING_ENDPOINT, + [], + plugins, ) + @_overload async def get_continuous_deployment_policy( self, - input: GetContinuousDeploymentPolicyInput, + request: _models.GetContinuousDeploymentPolicyInput + | _models.GetContinuousDeploymentPolicyInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetContinuousDeploymentPolicyOutput: ... + + @_overload + async def get_continuous_deployment_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetContinuousDeploymentPolicyInputDict], ) -> GetContinuousDeploymentPolicyOutput: """ Gets a continuous deployment policy, including metadata (the policy's identifier and the date and time when the policy was last modified). Args: - input: - An instance of `GetContinuousDeploymentPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2169,21 +3354,39 @@ async def get_continuous_deployment_policy( Returns: An instance of `GetContinuousDeploymentPolicyOutput`. """ + + async def get_continuous_deployment_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetContinuousDeploymentPolicyOutput: return await self._invoke( - input, _models.GET_CONTINUOUS_DEPLOYMENT_POLICY, [], plugins + self._select_input(_models.GET_CONTINUOUS_DEPLOYMENT_POLICY, args, kwargs), + _models.GET_CONTINUOUS_DEPLOYMENT_POLICY, + [], + plugins, ) + @_overload + async def get_continuous_deployment_policy_config( + self, + request: _models.GetContinuousDeploymentPolicyConfigInput + | _models.GetContinuousDeploymentPolicyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetContinuousDeploymentPolicyConfigOutput: ... + + @_overload async def get_continuous_deployment_policy_config( self, - input: GetContinuousDeploymentPolicyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetContinuousDeploymentPolicyConfigInputDict], ) -> GetContinuousDeploymentPolicyConfigOutput: """ Gets configuration information about a continuous deployment policy. Args: - input: - An instance of `GetContinuousDeploymentPolicyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2193,19 +3396,40 @@ async def get_continuous_deployment_policy_config( Returns: An instance of `GetContinuousDeploymentPolicyConfigOutput`. """ + + async def get_continuous_deployment_policy_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetContinuousDeploymentPolicyConfigOutput: return await self._invoke( - input, _models.GET_CONTINUOUS_DEPLOYMENT_POLICY_CONFIG, [], plugins + self._select_input( + _models.GET_CONTINUOUS_DEPLOYMENT_POLICY_CONFIG, args, kwargs + ), + _models.GET_CONTINUOUS_DEPLOYMENT_POLICY_CONFIG, + [], + plugins, ) + @_overload + async def get_distribution( + self, + request: _models.GetDistributionInput | _models.GetDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDistributionOutput: ... + + @_overload async def get_distribution( - self, input: GetDistributionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDistributionInputDict], ) -> GetDistributionOutput: """ Get the information about a distribution. Args: - input: - An instance of `GetDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2215,17 +3439,39 @@ async def get_distribution( Returns: An instance of `GetDistributionOutput`. """ - return await self._invoke(input, _models.GET_DISTRIBUTION, [], plugins) + async def get_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDistributionOutput: + return await self._invoke( + self._select_input(_models.GET_DISTRIBUTION, args, kwargs), + _models.GET_DISTRIBUTION, + [], + plugins, + ) + + @_overload + async def get_distribution_config( + self, + request: _models.GetDistributionConfigInput + | _models.GetDistributionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDistributionConfigOutput: ... + + @_overload async def get_distribution_config( - self, input: GetDistributionConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDistributionConfigInputDict], ) -> GetDistributionConfigOutput: """ Get the configuration information about a distribution. Args: - input: - An instance of `GetDistributionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2235,17 +3481,39 @@ async def get_distribution_config( Returns: An instance of `GetDistributionConfigOutput`. """ - return await self._invoke(input, _models.GET_DISTRIBUTION_CONFIG, [], plugins) + async def get_distribution_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDistributionConfigOutput: + return await self._invoke( + self._select_input(_models.GET_DISTRIBUTION_CONFIG, args, kwargs), + _models.GET_DISTRIBUTION_CONFIG, + [], + plugins, + ) + + @_overload async def get_distribution_tenant( - self, input: GetDistributionTenantInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDistributionTenantInput + | _models.GetDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDistributionTenantOutput: ... + + @_overload + async def get_distribution_tenant( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDistributionTenantInputDict], ) -> GetDistributionTenantOutput: """ Gets information about a distribution tenant. Args: - input: - An instance of `GetDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2255,19 +3523,39 @@ async def get_distribution_tenant( Returns: An instance of `GetDistributionTenantOutput`. """ - return await self._invoke(input, _models.GET_DISTRIBUTION_TENANT, [], plugins) + async def get_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDistributionTenantOutput: + return await self._invoke( + self._select_input(_models.GET_DISTRIBUTION_TENANT, args, kwargs), + _models.GET_DISTRIBUTION_TENANT, + [], + plugins, + ) + + @_overload + async def get_distribution_tenant_by_domain( + self, + request: _models.GetDistributionTenantByDomainInput + | _models.GetDistributionTenantByDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDistributionTenantByDomainOutput: ... + + @_overload async def get_distribution_tenant_by_domain( self, - input: GetDistributionTenantByDomainInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDistributionTenantByDomainInputDict], ) -> GetDistributionTenantByDomainOutput: """ Gets information about a distribution tenant by the associated domain. Args: - input: - An instance of `GetDistributionTenantByDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2277,19 +3565,39 @@ async def get_distribution_tenant_by_domain( Returns: An instance of `GetDistributionTenantByDomainOutput`. """ + + async def get_distribution_tenant_by_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDistributionTenantByDomainOutput: return await self._invoke( - input, _models.GET_DISTRIBUTION_TENANT_BY_DOMAIN, [], plugins + self._select_input(_models.GET_DISTRIBUTION_TENANT_BY_DOMAIN, args, kwargs), + _models.GET_DISTRIBUTION_TENANT_BY_DOMAIN, + [], + plugins, ) + @_overload + async def get_field_level_encryption( + self, + request: _models.GetFieldLevelEncryptionInput + | _models.GetFieldLevelEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFieldLevelEncryptionOutput: ... + + @_overload async def get_field_level_encryption( - self, input: GetFieldLevelEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFieldLevelEncryptionInputDict], ) -> GetFieldLevelEncryptionOutput: """ Get the field-level encryption configuration information. Args: - input: - An instance of `GetFieldLevelEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2299,21 +3607,39 @@ async def get_field_level_encryption( Returns: An instance of `GetFieldLevelEncryptionOutput`. """ + + async def get_field_level_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFieldLevelEncryptionOutput: return await self._invoke( - input, _models.GET_FIELD_LEVEL_ENCRYPTION, [], plugins + self._select_input(_models.GET_FIELD_LEVEL_ENCRYPTION, args, kwargs), + _models.GET_FIELD_LEVEL_ENCRYPTION, + [], + plugins, ) + @_overload + async def get_field_level_encryption_config( + self, + request: _models.GetFieldLevelEncryptionConfigInput + | _models.GetFieldLevelEncryptionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFieldLevelEncryptionConfigOutput: ... + + @_overload async def get_field_level_encryption_config( self, - input: GetFieldLevelEncryptionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFieldLevelEncryptionConfigInputDict], ) -> GetFieldLevelEncryptionConfigOutput: """ Get the field-level encryption configuration information. Args: - input: - An instance of `GetFieldLevelEncryptionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2323,21 +3649,39 @@ async def get_field_level_encryption_config( Returns: An instance of `GetFieldLevelEncryptionConfigOutput`. """ + + async def get_field_level_encryption_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFieldLevelEncryptionConfigOutput: return await self._invoke( - input, _models.GET_FIELD_LEVEL_ENCRYPTION_CONFIG, [], plugins + self._select_input(_models.GET_FIELD_LEVEL_ENCRYPTION_CONFIG, args, kwargs), + _models.GET_FIELD_LEVEL_ENCRYPTION_CONFIG, + [], + plugins, ) + @_overload + async def get_field_level_encryption_profile( + self, + request: _models.GetFieldLevelEncryptionProfileInput + | _models.GetFieldLevelEncryptionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFieldLevelEncryptionProfileOutput: ... + + @_overload async def get_field_level_encryption_profile( self, - input: GetFieldLevelEncryptionProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFieldLevelEncryptionProfileInputDict], ) -> GetFieldLevelEncryptionProfileOutput: """ Get the field-level encryption profile information. Args: - input: - An instance of `GetFieldLevelEncryptionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2347,21 +3691,41 @@ async def get_field_level_encryption_profile( Returns: An instance of `GetFieldLevelEncryptionProfileOutput`. """ + + async def get_field_level_encryption_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFieldLevelEncryptionProfileOutput: return await self._invoke( - input, _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE, [], plugins + self._select_input( + _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE, args, kwargs + ), + _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE, + [], + plugins, ) + @_overload + async def get_field_level_encryption_profile_config( + self, + request: _models.GetFieldLevelEncryptionProfileConfigInput + | _models.GetFieldLevelEncryptionProfileConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFieldLevelEncryptionProfileConfigOutput: ... + + @_overload async def get_field_level_encryption_profile_config( self, - input: GetFieldLevelEncryptionProfileConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFieldLevelEncryptionProfileConfigInputDict], ) -> GetFieldLevelEncryptionProfileConfigOutput: """ Get the field-level encryption profile configuration information. Args: - input: - An instance of `GetFieldLevelEncryptionProfileConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2371,12 +3735,35 @@ async def get_field_level_encryption_profile_config( Returns: An instance of `GetFieldLevelEncryptionProfileConfigOutput`. """ + + async def get_field_level_encryption_profile_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFieldLevelEncryptionProfileConfigOutput: return await self._invoke( - input, _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE_CONFIG, [], plugins + self._select_input( + _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE_CONFIG, args, kwargs + ), + _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE_CONFIG, + [], + plugins, ) + @_overload + async def get_function( + self, + request: _models.GetFunctionInput | _models.GetFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionOutput: ... + + @_overload async def get_function( - self, input: GetFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionInputDict], ) -> GetFunctionOutput: """ Gets the code of a CloudFront function. To get configuration information @@ -2386,8 +3773,6 @@ async def get_function( stage. To get these values, you can use `ListFunctions`. Args: - input: - An instance of `GetFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2397,17 +3782,38 @@ async def get_function( Returns: An instance of `GetFunctionOutput`. """ - return await self._invoke(input, _models.GET_FUNCTION, [], plugins) + async def get_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionOutput: + return await self._invoke( + self._select_input(_models.GET_FUNCTION, args, kwargs), + _models.GET_FUNCTION, + [], + plugins, + ) + + @_overload + async def get_invalidation( + self, + request: _models.GetInvalidationInput | _models.GetInvalidationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvalidationOutput: ... + + @_overload async def get_invalidation( - self, input: GetInvalidationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvalidationInputDict], ) -> GetInvalidationOutput: """ Get the information about an invalidation. Args: - input: - An instance of `GetInvalidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2417,20 +3823,40 @@ async def get_invalidation( Returns: An instance of `GetInvalidationOutput`. """ - return await self._invoke(input, _models.GET_INVALIDATION, [], plugins) + async def get_invalidation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvalidationOutput: + return await self._invoke( + self._select_input(_models.GET_INVALIDATION, args, kwargs), + _models.GET_INVALIDATION, + [], + plugins, + ) + + @_overload + async def get_invalidation_for_distribution_tenant( + self, + request: _models.GetInvalidationForDistributionTenantInput + | _models.GetInvalidationForDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvalidationForDistributionTenantOutput: ... + + @_overload async def get_invalidation_for_distribution_tenant( self, - input: GetInvalidationForDistributionTenantInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvalidationForDistributionTenantInputDict], ) -> GetInvalidationForDistributionTenantOutput: """ Gets information about a specific invalidation for a distribution tenant. Args: - input: - An instance of `GetInvalidationForDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2440,12 +3866,35 @@ async def get_invalidation_for_distribution_tenant( Returns: An instance of `GetInvalidationForDistributionTenantOutput`. """ + + async def get_invalidation_for_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvalidationForDistributionTenantOutput: return await self._invoke( - input, _models.GET_INVALIDATION_FOR_DISTRIBUTION_TENANT, [], plugins + self._select_input( + _models.GET_INVALIDATION_FOR_DISTRIBUTION_TENANT, args, kwargs + ), + _models.GET_INVALIDATION_FOR_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload + async def get_key_group( + self, + request: _models.GetKeyGroupInput | _models.GetKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyGroupOutput: ... + + @_overload async def get_key_group( - self, input: GetKeyGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyGroupInputDict], ) -> GetKeyGroupOutput: """ Gets a key group, including the date and time when the key group was @@ -2458,8 +3907,6 @@ async def get_key_group( behavior, you can get the identifier using `ListKeyGroups`. Args: - input: - An instance of `GetKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2469,10 +3916,33 @@ async def get_key_group( Returns: An instance of `GetKeyGroupOutput`. """ - return await self._invoke(input, _models.GET_KEY_GROUP, [], plugins) + async def get_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyGroupOutput: + return await self._invoke( + self._select_input(_models.GET_KEY_GROUP, args, kwargs), + _models.GET_KEY_GROUP, + [], + plugins, + ) + + @_overload + async def get_key_group_config( + self, + request: _models.GetKeyGroupConfigInput | _models.GetKeyGroupConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyGroupConfigOutput: ... + + @_overload async def get_key_group_config( - self, input: GetKeyGroupConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyGroupConfigInputDict], ) -> GetKeyGroupConfigOutput: """ Gets a key group configuration. @@ -2485,8 +3955,6 @@ async def get_key_group_config( `ListKeyGroups`. Args: - input: - An instance of `GetKeyGroupConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2496,19 +3964,39 @@ async def get_key_group_config( Returns: An instance of `GetKeyGroupConfigOutput`. """ - return await self._invoke(input, _models.GET_KEY_GROUP_CONFIG, [], plugins) + async def get_key_group_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyGroupConfigOutput: + return await self._invoke( + self._select_input(_models.GET_KEY_GROUP_CONFIG, args, kwargs), + _models.GET_KEY_GROUP_CONFIG, + [], + plugins, + ) + + @_overload + async def get_managed_certificate_details( + self, + request: _models.GetManagedCertificateDetailsInput + | _models.GetManagedCertificateDetailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetManagedCertificateDetailsOutput: ... + + @_overload async def get_managed_certificate_details( self, - input: GetManagedCertificateDetailsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetManagedCertificateDetailsInputDict], ) -> GetManagedCertificateDetailsOutput: """ Gets details about the CloudFront managed ACM certificate. Args: - input: - An instance of `GetManagedCertificateDetailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2518,20 +4006,40 @@ async def get_managed_certificate_details( Returns: An instance of `GetManagedCertificateDetailsOutput`. """ + + async def get_managed_certificate_details( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetManagedCertificateDetailsOutput: return await self._invoke( - input, _models.GET_MANAGED_CERTIFICATE_DETAILS, [], plugins + self._select_input(_models.GET_MANAGED_CERTIFICATE_DETAILS, args, kwargs), + _models.GET_MANAGED_CERTIFICATE_DETAILS, + [], + plugins, ) + @_overload + async def get_monitoring_subscription( + self, + request: _models.GetMonitoringSubscriptionInput + | _models.GetMonitoringSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMonitoringSubscriptionOutput: ... + + @_overload async def get_monitoring_subscription( - self, input: GetMonitoringSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMonitoringSubscriptionInputDict], ) -> GetMonitoringSubscriptionOutput: """ Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution. Args: - input: - An instance of `GetMonitoringSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2541,20 +4049,40 @@ async def get_monitoring_subscription( Returns: An instance of `GetMonitoringSubscriptionOutput`. """ + + async def get_monitoring_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMonitoringSubscriptionOutput: return await self._invoke( - input, _models.GET_MONITORING_SUBSCRIPTION, [], plugins + self._select_input(_models.GET_MONITORING_SUBSCRIPTION, args, kwargs), + _models.GET_MONITORING_SUBSCRIPTION, + [], + plugins, ) + @_overload + async def get_origin_access_control( + self, + request: _models.GetOriginAccessControlInput + | _models.GetOriginAccessControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOriginAccessControlOutput: ... + + @_overload async def get_origin_access_control( - self, input: GetOriginAccessControlInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOriginAccessControlInputDict], ) -> GetOriginAccessControlOutput: """ Gets a CloudFront origin access control, including its unique identifier. Args: - input: - An instance of `GetOriginAccessControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2564,19 +4092,39 @@ async def get_origin_access_control( Returns: An instance of `GetOriginAccessControlOutput`. """ - return await self._invoke(input, _models.GET_ORIGIN_ACCESS_CONTROL, [], plugins) + async def get_origin_access_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOriginAccessControlOutput: + return await self._invoke( + self._select_input(_models.GET_ORIGIN_ACCESS_CONTROL, args, kwargs), + _models.GET_ORIGIN_ACCESS_CONTROL, + [], + plugins, + ) + + @_overload + async def get_origin_access_control_config( + self, + request: _models.GetOriginAccessControlConfigInput + | _models.GetOriginAccessControlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOriginAccessControlConfigOutput: ... + + @_overload async def get_origin_access_control_config( self, - input: GetOriginAccessControlConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOriginAccessControlConfigInputDict], ) -> GetOriginAccessControlConfigOutput: """ Gets a CloudFront origin access control configuration. Args: - input: - An instance of `GetOriginAccessControlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2586,12 +4134,34 @@ async def get_origin_access_control_config( Returns: An instance of `GetOriginAccessControlConfigOutput`. """ + + async def get_origin_access_control_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOriginAccessControlConfigOutput: return await self._invoke( - input, _models.GET_ORIGIN_ACCESS_CONTROL_CONFIG, [], plugins + self._select_input(_models.GET_ORIGIN_ACCESS_CONTROL_CONFIG, args, kwargs), + _models.GET_ORIGIN_ACCESS_CONTROL_CONFIG, + [], + plugins, ) + @_overload + async def get_origin_request_policy( + self, + request: _models.GetOriginRequestPolicyInput + | _models.GetOriginRequestPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOriginRequestPolicyOutput: ... + + @_overload async def get_origin_request_policy( - self, input: GetOriginRequestPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOriginRequestPolicyInputDict], ) -> GetOriginRequestPolicyOutput: """ Gets an origin request policy, including the following metadata: @@ -2608,8 +4178,6 @@ async def get_origin_request_policy( using `ListOriginRequestPolicies`. Args: - input: - An instance of `GetOriginRequestPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2619,12 +4187,34 @@ async def get_origin_request_policy( Returns: An instance of `GetOriginRequestPolicyOutput`. """ - return await self._invoke(input, _models.GET_ORIGIN_REQUEST_POLICY, [], plugins) + async def get_origin_request_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOriginRequestPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_ORIGIN_REQUEST_POLICY, args, kwargs), + _models.GET_ORIGIN_REQUEST_POLICY, + [], + plugins, + ) + + @_overload + async def get_origin_request_policy_config( + self, + request: _models.GetOriginRequestPolicyConfigInput + | _models.GetOriginRequestPolicyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOriginRequestPolicyConfigOutput: ... + + @_overload async def get_origin_request_policy_config( self, - input: GetOriginRequestPolicyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOriginRequestPolicyConfigInputDict], ) -> GetOriginRequestPolicyConfigOutput: """ Gets an origin request policy configuration. @@ -2637,8 +4227,6 @@ async def get_origin_request_policy_config( using `ListOriginRequestPolicies`. Args: - input: - An instance of `GetOriginRequestPolicyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2648,19 +4236,38 @@ async def get_origin_request_policy_config( Returns: An instance of `GetOriginRequestPolicyConfigOutput`. """ + + async def get_origin_request_policy_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOriginRequestPolicyConfigOutput: return await self._invoke( - input, _models.GET_ORIGIN_REQUEST_POLICY_CONFIG, [], plugins + self._select_input(_models.GET_ORIGIN_REQUEST_POLICY_CONFIG, args, kwargs), + _models.GET_ORIGIN_REQUEST_POLICY_CONFIG, + [], + plugins, ) + @_overload async def get_public_key( - self, input: GetPublicKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPublicKeyInput | _models.GetPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPublicKeyOutput: ... + + @_overload + async def get_public_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPublicKeyInputDict], ) -> GetPublicKeyOutput: """ Gets a public key. Args: - input: - An instance of `GetPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2670,17 +4277,38 @@ async def get_public_key( Returns: An instance of `GetPublicKeyOutput`. """ - return await self._invoke(input, _models.GET_PUBLIC_KEY, [], plugins) + async def get_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPublicKeyOutput: + return await self._invoke( + self._select_input(_models.GET_PUBLIC_KEY, args, kwargs), + _models.GET_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + async def get_public_key_config( + self, + request: _models.GetPublicKeyConfigInput | _models.GetPublicKeyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPublicKeyConfigOutput: ... + + @_overload async def get_public_key_config( - self, input: GetPublicKeyConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPublicKeyConfigInputDict], ) -> GetPublicKeyConfigOutput: """ Gets a public key configuration. Args: - input: - An instance of `GetPublicKeyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2690,10 +4318,34 @@ async def get_public_key_config( Returns: An instance of `GetPublicKeyConfigOutput`. """ - return await self._invoke(input, _models.GET_PUBLIC_KEY_CONFIG, [], plugins) + async def get_public_key_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPublicKeyConfigOutput: + return await self._invoke( + self._select_input(_models.GET_PUBLIC_KEY_CONFIG, args, kwargs), + _models.GET_PUBLIC_KEY_CONFIG, + [], + plugins, + ) + + @_overload + async def get_realtime_log_config( + self, + request: _models.GetRealtimeLogConfigInput + | _models.GetRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRealtimeLogConfigOutput: ... + + @_overload async def get_realtime_log_config( - self, input: GetRealtimeLogConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRealtimeLogConfigInputDict], ) -> GetRealtimeLogConfigOutput: """ Gets a real-time log configuration. @@ -2704,8 +4356,6 @@ async def get_realtime_log_config( identify the real-time log configuration to get. Args: - input: - An instance of `GetRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2715,18 +4365,39 @@ async def get_realtime_log_config( Returns: An instance of `GetRealtimeLogConfigOutput`. """ - return await self._invoke(input, _models.GET_REALTIME_LOG_CONFIG, [], plugins) + async def get_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRealtimeLogConfigOutput: + return await self._invoke( + self._select_input(_models.GET_REALTIME_LOG_CONFIG, args, kwargs), + _models.GET_REALTIME_LOG_CONFIG, + [], + plugins, + ) + + @_overload + async def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the resource policy for the specified CloudFront resource that you own and have shared. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2736,10 +4407,34 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def get_response_headers_policy( + self, + request: _models.GetResponseHeadersPolicyInput + | _models.GetResponseHeadersPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResponseHeadersPolicyOutput: ... + + @_overload async def get_response_headers_policy( - self, input: GetResponseHeadersPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResponseHeadersPolicyInputDict], ) -> GetResponseHeadersPolicyOutput: """ Gets a response headers policy, including metadata (the policy's @@ -2753,8 +4448,6 @@ async def get_response_headers_policy( using `ListResponseHeadersPolicies`. Args: - input: - An instance of `GetResponseHeadersPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2764,14 +4457,34 @@ async def get_response_headers_policy( Returns: An instance of `GetResponseHeadersPolicyOutput`. """ + + async def get_response_headers_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResponseHeadersPolicyOutput: return await self._invoke( - input, _models.GET_RESPONSE_HEADERS_POLICY, [], plugins + self._select_input(_models.GET_RESPONSE_HEADERS_POLICY, args, kwargs), + _models.GET_RESPONSE_HEADERS_POLICY, + [], + plugins, ) + @_overload + async def get_response_headers_policy_config( + self, + request: _models.GetResponseHeadersPolicyConfigInput + | _models.GetResponseHeadersPolicyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResponseHeadersPolicyConfigOutput: ... + + @_overload async def get_response_headers_policy_config( self, - input: GetResponseHeadersPolicyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResponseHeadersPolicyConfigInputDict], ) -> GetResponseHeadersPolicyConfigOutput: """ Gets a response headers policy configuration. @@ -2784,8 +4497,6 @@ async def get_response_headers_policy_config( using `ListResponseHeadersPolicies`. Args: - input: - An instance of `GetResponseHeadersPolicyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2795,20 +4506,42 @@ async def get_response_headers_policy_config( Returns: An instance of `GetResponseHeadersPolicyConfigOutput`. """ + + async def get_response_headers_policy_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResponseHeadersPolicyConfigOutput: return await self._invoke( - input, _models.GET_RESPONSE_HEADERS_POLICY_CONFIG, [], plugins + self._select_input( + _models.GET_RESPONSE_HEADERS_POLICY_CONFIG, args, kwargs + ), + _models.GET_RESPONSE_HEADERS_POLICY_CONFIG, + [], + plugins, ) + @_overload + async def get_streaming_distribution( + self, + request: _models.GetStreamingDistributionInput + | _models.GetStreamingDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStreamingDistributionOutput: ... + + @_overload async def get_streaming_distribution( - self, input: GetStreamingDistributionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStreamingDistributionInputDict], ) -> GetStreamingDistributionOutput: """ Gets information about a specified RTMP distribution, including the distribution configuration. Args: - input: - An instance of `GetStreamingDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2818,21 +4551,39 @@ async def get_streaming_distribution( Returns: An instance of `GetStreamingDistributionOutput`. """ + + async def get_streaming_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStreamingDistributionOutput: return await self._invoke( - input, _models.GET_STREAMING_DISTRIBUTION, [], plugins + self._select_input(_models.GET_STREAMING_DISTRIBUTION, args, kwargs), + _models.GET_STREAMING_DISTRIBUTION, + [], + plugins, ) + @_overload + async def get_streaming_distribution_config( + self, + request: _models.GetStreamingDistributionConfigInput + | _models.GetStreamingDistributionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStreamingDistributionConfigOutput: ... + + @_overload async def get_streaming_distribution_config( self, - input: GetStreamingDistributionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStreamingDistributionConfigInputDict], ) -> GetStreamingDistributionConfigOutput: """ Get the configuration information about a streaming distribution. Args: - input: - An instance of `GetStreamingDistributionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2842,19 +4593,38 @@ async def get_streaming_distribution_config( Returns: An instance of `GetStreamingDistributionConfigOutput`. """ + + async def get_streaming_distribution_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStreamingDistributionConfigOutput: return await self._invoke( - input, _models.GET_STREAMING_DISTRIBUTION_CONFIG, [], plugins + self._select_input(_models.GET_STREAMING_DISTRIBUTION_CONFIG, args, kwargs), + _models.GET_STREAMING_DISTRIBUTION_CONFIG, + [], + plugins, ) + @_overload + async def get_trust_store( + self, + request: _models.GetTrustStoreInput | _models.GetTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTrustStoreOutput: ... + + @_overload async def get_trust_store( - self, input: GetTrustStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTrustStoreInputDict], ) -> GetTrustStoreOutput: """ Gets a trust store. Args: - input: - An instance of `GetTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2864,17 +4634,38 @@ async def get_trust_store( Returns: An instance of `GetTrustStoreOutput`. """ - return await self._invoke(input, _models.GET_TRUST_STORE, [], plugins) + async def get_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTrustStoreOutput: + return await self._invoke( + self._select_input(_models.GET_TRUST_STORE, args, kwargs), + _models.GET_TRUST_STORE, + [], + plugins, + ) + + @_overload + async def get_vpc_origin( + self, + request: _models.GetVpcOriginInput | _models.GetVpcOriginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcOriginOutput: ... + + @_overload async def get_vpc_origin( - self, input: GetVpcOriginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpcOriginInputDict], ) -> GetVpcOriginOutput: """ Get the details of an Amazon CloudFront VPC origin. Args: - input: - An instance of `GetVpcOriginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2884,17 +4675,38 @@ async def get_vpc_origin( Returns: An instance of `GetVpcOriginOutput`. """ - return await self._invoke(input, _models.GET_VPC_ORIGIN, [], plugins) + async def get_vpc_origin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcOriginOutput: + return await self._invoke( + self._select_input(_models.GET_VPC_ORIGIN, args, kwargs), + _models.GET_VPC_ORIGIN, + [], + plugins, + ) + + @_overload + async def list_anycast_ip_lists( + self, + request: _models.ListAnycastIpListsInput | _models.ListAnycastIpListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAnycastIpListsOutput: ... + + @_overload async def list_anycast_ip_lists( - self, input: ListAnycastIpListsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAnycastIpListsInputDict], ) -> ListAnycastIpListsOutput: """ Lists your Anycast static IP lists. Args: - input: - An instance of `ListAnycastIpListsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2904,10 +4716,33 @@ async def list_anycast_ip_lists( Returns: An instance of `ListAnycastIpListsOutput`. """ - return await self._invoke(input, _models.LIST_ANYCAST_IP_LISTS, [], plugins) + async def list_anycast_ip_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAnycastIpListsOutput: + return await self._invoke( + self._select_input(_models.LIST_ANYCAST_IP_LISTS, args, kwargs), + _models.LIST_ANYCAST_IP_LISTS, + [], + plugins, + ) + + @_overload + async def list_cache_policies( + self, + request: _models.ListCachePoliciesInput | _models.ListCachePoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCachePoliciesOutput: ... + + @_overload async def list_cache_policies( - self, input: ListCachePoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCachePoliciesInputDict], ) -> ListCachePoliciesOutput: """ Gets a list of cache policies. @@ -2924,8 +4759,6 @@ async def list_cache_policies( the subsequent request. Args: - input: - An instance of `ListCachePoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2935,19 +4768,39 @@ async def list_cache_policies( Returns: An instance of `ListCachePoliciesOutput`. """ - return await self._invoke(input, _models.LIST_CACHE_POLICIES, [], plugins) + async def list_cache_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCachePoliciesOutput: + return await self._invoke( + self._select_input(_models.LIST_CACHE_POLICIES, args, kwargs), + _models.LIST_CACHE_POLICIES, + [], + plugins, + ) + + @_overload async def list_cloud_front_origin_access_identities( self, - input: ListCloudFrontOriginAccessIdentitiesInput, + request: _models.ListCloudFrontOriginAccessIdentitiesInput + | _models.ListCloudFrontOriginAccessIdentitiesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListCloudFrontOriginAccessIdentitiesOutput: ... + + @_overload + async def list_cloud_front_origin_access_identities( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCloudFrontOriginAccessIdentitiesInputDict], ) -> ListCloudFrontOriginAccessIdentitiesOutput: """ Lists origin access identities. Args: - input: - An instance of `ListCloudFrontOriginAccessIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2957,12 +4810,36 @@ async def list_cloud_front_origin_access_identities( Returns: An instance of `ListCloudFrontOriginAccessIdentitiesOutput`. """ + + async def list_cloud_front_origin_access_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCloudFrontOriginAccessIdentitiesOutput: return await self._invoke( - input, _models.LIST_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES, [], plugins + self._select_input( + _models.LIST_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES, args, kwargs + ), + _models.LIST_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES, + [], + plugins, ) + @_overload + async def list_conflicting_aliases( + self, + request: _models.ListConflictingAliasesInput + | _models.ListConflictingAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConflictingAliasesOutput: ... + + @_overload async def list_conflicting_aliases( - self, input: ListConflictingAliasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConflictingAliasesInputDict], ) -> ListConflictingAliasesOutput: """ Note: @@ -3009,8 +4886,6 @@ async def list_conflicting_aliases( the subsequent request. Args: - input: - An instance of `ListConflictingAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3020,17 +4895,39 @@ async def list_conflicting_aliases( Returns: An instance of `ListConflictingAliasesOutput`. """ - return await self._invoke(input, _models.LIST_CONFLICTING_ALIASES, [], plugins) + async def list_conflicting_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConflictingAliasesOutput: + return await self._invoke( + self._select_input(_models.LIST_CONFLICTING_ALIASES, args, kwargs), + _models.LIST_CONFLICTING_ALIASES, + [], + plugins, + ) + + @_overload + async def list_connection_functions( + self, + request: _models.ListConnectionFunctionsInput + | _models.ListConnectionFunctionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConnectionFunctionsOutput: ... + + @_overload async def list_connection_functions( - self, input: ListConnectionFunctionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConnectionFunctionsInputDict], ) -> ListConnectionFunctionsOutput: """ Lists connection functions. Args: - input: - An instance of `ListConnectionFunctionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3040,17 +4937,39 @@ async def list_connection_functions( Returns: An instance of `ListConnectionFunctionsOutput`. """ - return await self._invoke(input, _models.LIST_CONNECTION_FUNCTIONS, [], plugins) + async def list_connection_functions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConnectionFunctionsOutput: + return await self._invoke( + self._select_input(_models.LIST_CONNECTION_FUNCTIONS, args, kwargs), + _models.LIST_CONNECTION_FUNCTIONS, + [], + plugins, + ) + + @_overload + async def list_connection_groups( + self, + request: _models.ListConnectionGroupsInput + | _models.ListConnectionGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConnectionGroupsOutput: ... + + @_overload async def list_connection_groups( - self, input: ListConnectionGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConnectionGroupsInputDict], ) -> ListConnectionGroupsOutput: """ Lists the connection groups in your Amazon Web Services account. Args: - input: - An instance of `ListConnectionGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3060,12 +4979,34 @@ async def list_connection_groups( Returns: An instance of `ListConnectionGroupsOutput`. """ - return await self._invoke(input, _models.LIST_CONNECTION_GROUPS, [], plugins) + async def list_connection_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConnectionGroupsOutput: + return await self._invoke( + self._select_input(_models.LIST_CONNECTION_GROUPS, args, kwargs), + _models.LIST_CONNECTION_GROUPS, + [], + plugins, + ) + + @_overload async def list_continuous_deployment_policies( self, - input: ListContinuousDeploymentPoliciesInput, + request: _models.ListContinuousDeploymentPoliciesInput + | _models.ListContinuousDeploymentPoliciesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListContinuousDeploymentPoliciesOutput: ... + + @_overload + async def list_continuous_deployment_policies( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListContinuousDeploymentPoliciesInputDict], ) -> ListContinuousDeploymentPoliciesOutput: """ Gets a list of the continuous deployment policies in your Amazon Web @@ -3079,8 +5020,6 @@ async def list_continuous_deployment_policies( the subsequent request. Args: - input: - An instance of `ListContinuousDeploymentPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3090,19 +5029,40 @@ async def list_continuous_deployment_policies( Returns: An instance of `ListContinuousDeploymentPoliciesOutput`. """ + + async def list_continuous_deployment_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListContinuousDeploymentPoliciesOutput: return await self._invoke( - input, _models.LIST_CONTINUOUS_DEPLOYMENT_POLICIES, [], plugins + self._select_input( + _models.LIST_CONTINUOUS_DEPLOYMENT_POLICIES, args, kwargs + ), + _models.LIST_CONTINUOUS_DEPLOYMENT_POLICIES, + [], + plugins, ) + @_overload + async def list_distributions( + self, + request: _models.ListDistributionsInput | _models.ListDistributionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsOutput: ... + + @_overload async def list_distributions( - self, input: ListDistributionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsInputDict], ) -> ListDistributionsOutput: """ List CloudFront distributions. Args: - input: - An instance of `ListDistributionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3112,20 +5072,40 @@ async def list_distributions( Returns: An instance of `ListDistributionsOutput`. """ - return await self._invoke(input, _models.LIST_DISTRIBUTIONS, [], plugins) + async def list_distributions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsOutput: + return await self._invoke( + self._select_input(_models.LIST_DISTRIBUTIONS, args, kwargs), + _models.LIST_DISTRIBUTIONS, + [], + plugins, + ) + + @_overload + async def list_distributions_by_anycast_ip_list_id( + self, + request: _models.ListDistributionsByAnycastIpListIdInput + | _models.ListDistributionsByAnycastIpListIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByAnycastIpListIdOutput: ... + + @_overload async def list_distributions_by_anycast_ip_list_id( self, - input: ListDistributionsByAnycastIpListIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByAnycastIpListIdInputDict], ) -> ListDistributionsByAnycastIpListIdOutput: """ Lists the distributions in your account that are associated with the specified `AnycastIpListId`. Args: - input: - An instance of `ListDistributionsByAnycastIpListIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3135,14 +5115,36 @@ async def list_distributions_by_anycast_ip_list_id( Returns: An instance of `ListDistributionsByAnycastIpListIdOutput`. """ + + async def list_distributions_by_anycast_ip_list_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByAnycastIpListIdOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_ANYCAST_IP_LIST_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_ANYCAST_IP_LIST_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_ANYCAST_IP_LIST_ID, + [], + plugins, ) + @_overload + async def list_distributions_by_cache_policy_id( + self, + request: _models.ListDistributionsByCachePolicyIdInput + | _models.ListDistributionsByCachePolicyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByCachePolicyIdOutput: ... + + @_overload async def list_distributions_by_cache_policy_id( self, - input: ListDistributionsByCachePolicyIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByCachePolicyIdInputDict], ) -> ListDistributionsByCachePolicyIdOutput: """ Gets a list of distribution IDs for distributions that have a cache @@ -3156,8 +5158,6 @@ async def list_distributions_by_cache_policy_id( the subsequent request. Args: - input: - An instance of `ListDistributionsByCachePolicyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3167,21 +5167,41 @@ async def list_distributions_by_cache_policy_id( Returns: An instance of `ListDistributionsByCachePolicyIdOutput`. """ + + async def list_distributions_by_cache_policy_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByCachePolicyIdOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_CACHE_POLICY_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_CACHE_POLICY_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_CACHE_POLICY_ID, + [], + plugins, ) + @_overload async def list_distributions_by_connection_function( self, - input: ListDistributionsByConnectionFunctionInput, + request: _models.ListDistributionsByConnectionFunctionInput + | _models.ListDistributionsByConnectionFunctionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDistributionsByConnectionFunctionOutput: ... + + @_overload + async def list_distributions_by_connection_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByConnectionFunctionInputDict], ) -> ListDistributionsByConnectionFunctionOutput: """ Lists distributions by connection function. Args: - input: - An instance of `ListDistributionsByConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3191,21 +5211,41 @@ async def list_distributions_by_connection_function( Returns: An instance of `ListDistributionsByConnectionFunctionOutput`. """ + + async def list_distributions_by_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByConnectionFunctionOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_CONNECTION_FUNCTION, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_CONNECTION_FUNCTION, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_CONNECTION_FUNCTION, + [], + plugins, ) + @_overload + async def list_distributions_by_connection_mode( + self, + request: _models.ListDistributionsByConnectionModeInput + | _models.ListDistributionsByConnectionModeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByConnectionModeOutput: ... + + @_overload async def list_distributions_by_connection_mode( self, - input: ListDistributionsByConnectionModeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByConnectionModeInputDict], ) -> ListDistributionsByConnectionModeOutput: """ Lists the distributions by the connection mode that you specify. Args: - input: - An instance of `ListDistributionsByConnectionModeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3215,14 +5255,36 @@ async def list_distributions_by_connection_mode( Returns: An instance of `ListDistributionsByConnectionModeOutput`. """ + + async def list_distributions_by_connection_mode( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByConnectionModeOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_CONNECTION_MODE, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_CONNECTION_MODE, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_CONNECTION_MODE, + [], + plugins, ) + @_overload + async def list_distributions_by_key_group( + self, + request: _models.ListDistributionsByKeyGroupInput + | _models.ListDistributionsByKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByKeyGroupOutput: ... + + @_overload async def list_distributions_by_key_group( self, - input: ListDistributionsByKeyGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByKeyGroupInputDict], ) -> ListDistributionsByKeyGroupOutput: """ Gets a list of distribution IDs for distributions that have a cache @@ -3236,8 +5298,6 @@ async def list_distributions_by_key_group( the subsequent request. Args: - input: - An instance of `ListDistributionsByKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3247,14 +5307,34 @@ async def list_distributions_by_key_group( Returns: An instance of `ListDistributionsByKeyGroupOutput`. """ + + async def list_distributions_by_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByKeyGroupOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_KEY_GROUP, [], plugins + self._select_input(_models.LIST_DISTRIBUTIONS_BY_KEY_GROUP, args, kwargs), + _models.LIST_DISTRIBUTIONS_BY_KEY_GROUP, + [], + plugins, ) + @_overload + async def list_distributions_by_origin_request_policy_id( + self, + request: _models.ListDistributionsByOriginRequestPolicyIdInput + | _models.ListDistributionsByOriginRequestPolicyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByOriginRequestPolicyIdOutput: ... + + @_overload async def list_distributions_by_origin_request_policy_id( self, - input: ListDistributionsByOriginRequestPolicyIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByOriginRequestPolicyIdInputDict], ) -> ListDistributionsByOriginRequestPolicyIdOutput: """ Gets a list of distribution IDs for distributions that have a cache @@ -3268,8 +5348,6 @@ async def list_distributions_by_origin_request_policy_id( the subsequent request. Args: - input: - An instance of `ListDistributionsByOriginRequestPolicyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3279,22 +5357,42 @@ async def list_distributions_by_origin_request_policy_id( Returns: An instance of `ListDistributionsByOriginRequestPolicyIdOutput`. """ + + async def list_distributions_by_origin_request_policy_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByOriginRequestPolicyIdOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_ORIGIN_REQUEST_POLICY_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_ORIGIN_REQUEST_POLICY_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_ORIGIN_REQUEST_POLICY_ID, + [], + plugins, ) + @_overload + async def list_distributions_by_owned_resource( + self, + request: _models.ListDistributionsByOwnedResourceInput + | _models.ListDistributionsByOwnedResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByOwnedResourceOutput: ... + + @_overload async def list_distributions_by_owned_resource( self, - input: ListDistributionsByOwnedResourceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByOwnedResourceInputDict], ) -> ListDistributionsByOwnedResourceOutput: """ Lists the CloudFront distributions that are associated with the specified resource that you own. Args: - input: - An instance of `ListDistributionsByOwnedResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3304,14 +5402,36 @@ async def list_distributions_by_owned_resource( Returns: An instance of `ListDistributionsByOwnedResourceOutput`. """ + + async def list_distributions_by_owned_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByOwnedResourceOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_OWNED_RESOURCE, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_OWNED_RESOURCE, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_OWNED_RESOURCE, + [], + plugins, ) + @_overload + async def list_distributions_by_realtime_log_config( + self, + request: _models.ListDistributionsByRealtimeLogConfigInput + | _models.ListDistributionsByRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByRealtimeLogConfigOutput: ... + + @_overload async def list_distributions_by_realtime_log_config( self, - input: ListDistributionsByRealtimeLogConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByRealtimeLogConfigInputDict], ) -> ListDistributionsByRealtimeLogConfigOutput: """ Gets a list of distributions that have a cache behavior that's @@ -3330,8 +5450,6 @@ async def list_distributions_by_realtime_log_config( the subsequent request. Args: - input: - An instance of `ListDistributionsByRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3341,14 +5459,36 @@ async def list_distributions_by_realtime_log_config( Returns: An instance of `ListDistributionsByRealtimeLogConfigOutput`. """ + + async def list_distributions_by_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByRealtimeLogConfigOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_REALTIME_LOG_CONFIG, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_REALTIME_LOG_CONFIG, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_REALTIME_LOG_CONFIG, + [], + plugins, ) + @_overload + async def list_distributions_by_response_headers_policy_id( + self, + request: _models.ListDistributionsByResponseHeadersPolicyIdInput + | _models.ListDistributionsByResponseHeadersPolicyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByResponseHeadersPolicyIdOutput: ... + + @_overload async def list_distributions_by_response_headers_policy_id( self, - input: ListDistributionsByResponseHeadersPolicyIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByResponseHeadersPolicyIdInputDict], ) -> ListDistributionsByResponseHeadersPolicyIdOutput: """ Gets a list of distribution IDs for distributions that have a cache @@ -3362,8 +5502,6 @@ async def list_distributions_by_response_headers_policy_id( the subsequent request. Args: - input: - An instance of `ListDistributionsByResponseHeadersPolicyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3373,21 +5511,41 @@ async def list_distributions_by_response_headers_policy_id( Returns: An instance of `ListDistributionsByResponseHeadersPolicyIdOutput`. """ + + async def list_distributions_by_response_headers_policy_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByResponseHeadersPolicyIdOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_RESPONSE_HEADERS_POLICY_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_RESPONSE_HEADERS_POLICY_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_RESPONSE_HEADERS_POLICY_ID, + [], + plugins, ) + @_overload + async def list_distributions_by_trust_store( + self, + request: _models.ListDistributionsByTrustStoreInput + | _models.ListDistributionsByTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByTrustStoreOutput: ... + + @_overload async def list_distributions_by_trust_store( self, - input: ListDistributionsByTrustStoreInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByTrustStoreInputDict], ) -> ListDistributionsByTrustStoreOutput: """ Lists distributions by trust store. Args: - input: - An instance of `ListDistributionsByTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3397,21 +5555,39 @@ async def list_distributions_by_trust_store( Returns: An instance of `ListDistributionsByTrustStoreOutput`. """ + + async def list_distributions_by_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByTrustStoreOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_TRUST_STORE, [], plugins + self._select_input(_models.LIST_DISTRIBUTIONS_BY_TRUST_STORE, args, kwargs), + _models.LIST_DISTRIBUTIONS_BY_TRUST_STORE, + [], + plugins, ) + @_overload async def list_distributions_by_vpc_origin_id( self, - input: ListDistributionsByVpcOriginIdInput, + request: _models.ListDistributionsByVpcOriginIdInput + | _models.ListDistributionsByVpcOriginIdInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDistributionsByVpcOriginIdOutput: ... + + @_overload + async def list_distributions_by_vpc_origin_id( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByVpcOriginIdInputDict], ) -> ListDistributionsByVpcOriginIdOutput: """ List CloudFront distributions by their VPC origin ID. Args: - input: - An instance of `ListDistributionsByVpcOriginIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3421,21 +5597,41 @@ async def list_distributions_by_vpc_origin_id( Returns: An instance of `ListDistributionsByVpcOriginIdOutput`. """ + + async def list_distributions_by_vpc_origin_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByVpcOriginIdOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_VPC_ORIGIN_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_VPC_ORIGIN_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_VPC_ORIGIN_ID, + [], + plugins, ) + @_overload + async def list_distributions_by_web_acl_id( + self, + request: _models.ListDistributionsByWebACLIdInput + | _models.ListDistributionsByWebACLIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByWebACLIdOutput: ... + + @_overload async def list_distributions_by_web_acl_id( self, - input: ListDistributionsByWebACLIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByWebACLIdInputDict], ) -> ListDistributionsByWebACLIdOutput: """ List the distributions that are associated with a specified WAF web ACL. Args: - input: - An instance of `ListDistributionsByWebACLIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3445,19 +5641,39 @@ async def list_distributions_by_web_acl_id( Returns: An instance of `ListDistributionsByWebACLIdOutput`. """ + + async def list_distributions_by_web_acl_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByWebACLIdOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_WEB_ACL_ID, [], plugins + self._select_input(_models.LIST_DISTRIBUTIONS_BY_WEB_ACL_ID, args, kwargs), + _models.LIST_DISTRIBUTIONS_BY_WEB_ACL_ID, + [], + plugins, ) + @_overload + async def list_distribution_tenants( + self, + request: _models.ListDistributionTenantsInput + | _models.ListDistributionTenantsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionTenantsOutput: ... + + @_overload async def list_distribution_tenants( - self, input: ListDistributionTenantsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionTenantsInputDict], ) -> ListDistributionTenantsOutput: """ Lists the distribution tenants in your Amazon Web Services account. Args: - input: - An instance of `ListDistributionTenantsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3467,12 +5683,34 @@ async def list_distribution_tenants( Returns: An instance of `ListDistributionTenantsOutput`. """ - return await self._invoke(input, _models.LIST_DISTRIBUTION_TENANTS, [], plugins) + async def list_distribution_tenants( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionTenantsOutput: + return await self._invoke( + self._select_input(_models.LIST_DISTRIBUTION_TENANTS, args, kwargs), + _models.LIST_DISTRIBUTION_TENANTS, + [], + plugins, + ) + + @_overload + async def list_distribution_tenants_by_customization( + self, + request: _models.ListDistributionTenantsByCustomizationInput + | _models.ListDistributionTenantsByCustomizationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionTenantsByCustomizationOutput: ... + + @_overload async def list_distribution_tenants_by_customization( self, - input: ListDistributionTenantsByCustomizationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionTenantsByCustomizationInputDict], ) -> ListDistributionTenantsByCustomizationOutput: """ Lists distribution tenants by the customization that you specify. @@ -3481,8 +5719,6 @@ async def list_distribution_tenants_by_customization( parameter, but not both in the same request. Args: - input: - An instance of `ListDistributionTenantsByCustomizationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3492,12 +5728,36 @@ async def list_distribution_tenants_by_customization( Returns: An instance of `ListDistributionTenantsByCustomizationOutput`. """ + + async def list_distribution_tenants_by_customization( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionTenantsByCustomizationOutput: return await self._invoke( - input, _models.LIST_DISTRIBUTION_TENANTS_BY_CUSTOMIZATION, [], plugins + self._select_input( + _models.LIST_DISTRIBUTION_TENANTS_BY_CUSTOMIZATION, args, kwargs + ), + _models.LIST_DISTRIBUTION_TENANTS_BY_CUSTOMIZATION, + [], + plugins, ) + @_overload async def list_domain_conflicts( - self, input: ListDomainConflictsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDomainConflictsInput + | _models.ListDomainConflictsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDomainConflictsOutput: ... + + @_overload + async def list_domain_conflicts( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDomainConflictsInputDict], ) -> ListDomainConflictsOutput: """ Note: @@ -3545,8 +5805,6 @@ async def list_domain_conflicts( the subsequent request. Args: - input: - An instance of `ListDomainConflictsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3556,20 +5814,40 @@ async def list_domain_conflicts( Returns: An instance of `ListDomainConflictsOutput`. """ - return await self._invoke(input, _models.LIST_DOMAIN_CONFLICTS, [], plugins) + async def list_domain_conflicts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDomainConflictsOutput: + return await self._invoke( + self._select_input(_models.LIST_DOMAIN_CONFLICTS, args, kwargs), + _models.LIST_DOMAIN_CONFLICTS, + [], + plugins, + ) + + @_overload + async def list_field_level_encryption_configs( + self, + request: _models.ListFieldLevelEncryptionConfigsInput + | _models.ListFieldLevelEncryptionConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFieldLevelEncryptionConfigsOutput: ... + + @_overload async def list_field_level_encryption_configs( self, - input: ListFieldLevelEncryptionConfigsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFieldLevelEncryptionConfigsInputDict], ) -> ListFieldLevelEncryptionConfigsOutput: """ List all field-level encryption configurations that have been created in CloudFront for this account. Args: - input: - An instance of `ListFieldLevelEncryptionConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3579,22 +5857,42 @@ async def list_field_level_encryption_configs( Returns: An instance of `ListFieldLevelEncryptionConfigsOutput`. """ + + async def list_field_level_encryption_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFieldLevelEncryptionConfigsOutput: return await self._invoke( - input, _models.LIST_FIELD_LEVEL_ENCRYPTION_CONFIGS, [], plugins + self._select_input( + _models.LIST_FIELD_LEVEL_ENCRYPTION_CONFIGS, args, kwargs + ), + _models.LIST_FIELD_LEVEL_ENCRYPTION_CONFIGS, + [], + plugins, ) + @_overload + async def list_field_level_encryption_profiles( + self, + request: _models.ListFieldLevelEncryptionProfilesInput + | _models.ListFieldLevelEncryptionProfilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFieldLevelEncryptionProfilesOutput: ... + + @_overload async def list_field_level_encryption_profiles( self, - input: ListFieldLevelEncryptionProfilesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFieldLevelEncryptionProfilesInputDict], ) -> ListFieldLevelEncryptionProfilesOutput: """ Request a list of field-level encryption profiles that have been created in CloudFront for this account. Args: - input: - An instance of `ListFieldLevelEncryptionProfilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3604,12 +5902,35 @@ async def list_field_level_encryption_profiles( Returns: An instance of `ListFieldLevelEncryptionProfilesOutput`. """ + + async def list_field_level_encryption_profiles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFieldLevelEncryptionProfilesOutput: return await self._invoke( - input, _models.LIST_FIELD_LEVEL_ENCRYPTION_PROFILES, [], plugins + self._select_input( + _models.LIST_FIELD_LEVEL_ENCRYPTION_PROFILES, args, kwargs + ), + _models.LIST_FIELD_LEVEL_ENCRYPTION_PROFILES, + [], + plugins, ) + @_overload + async def list_functions( + self, + request: _models.ListFunctionsInput | _models.ListFunctionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionsOutput: ... + + @_overload async def list_functions( - self, input: ListFunctionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionsInputDict], ) -> ListFunctionsOutput: """ Gets a list of all CloudFront functions in your Amazon Web Services @@ -3626,8 +5947,6 @@ async def list_functions( the subsequent request. Args: - input: - An instance of `ListFunctionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3637,17 +5956,38 @@ async def list_functions( Returns: An instance of `ListFunctionsOutput`. """ - return await self._invoke(input, _models.LIST_FUNCTIONS, [], plugins) + async def list_functions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionsOutput: + return await self._invoke( + self._select_input(_models.LIST_FUNCTIONS, args, kwargs), + _models.LIST_FUNCTIONS, + [], + plugins, + ) + + @_overload + async def list_invalidations( + self, + request: _models.ListInvalidationsInput | _models.ListInvalidationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvalidationsOutput: ... + + @_overload async def list_invalidations( - self, input: ListInvalidationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvalidationsInputDict], ) -> ListInvalidationsOutput: """ Lists invalidation batches. Args: - input: - An instance of `ListInvalidationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3657,19 +5997,39 @@ async def list_invalidations( Returns: An instance of `ListInvalidationsOutput`. """ - return await self._invoke(input, _models.LIST_INVALIDATIONS, [], plugins) + async def list_invalidations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvalidationsOutput: + return await self._invoke( + self._select_input(_models.LIST_INVALIDATIONS, args, kwargs), + _models.LIST_INVALIDATIONS, + [], + plugins, + ) + + @_overload + async def list_invalidations_for_distribution_tenant( + self, + request: _models.ListInvalidationsForDistributionTenantInput + | _models.ListInvalidationsForDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvalidationsForDistributionTenantOutput: ... + + @_overload async def list_invalidations_for_distribution_tenant( self, - input: ListInvalidationsForDistributionTenantInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvalidationsForDistributionTenantInputDict], ) -> ListInvalidationsForDistributionTenantOutput: """ Lists the invalidations for a distribution tenant. Args: - input: - An instance of `ListInvalidationsForDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3679,12 +6039,35 @@ async def list_invalidations_for_distribution_tenant( Returns: An instance of `ListInvalidationsForDistributionTenantOutput`. """ + + async def list_invalidations_for_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvalidationsForDistributionTenantOutput: return await self._invoke( - input, _models.LIST_INVALIDATIONS_FOR_DISTRIBUTION_TENANT, [], plugins + self._select_input( + _models.LIST_INVALIDATIONS_FOR_DISTRIBUTION_TENANT, args, kwargs + ), + _models.LIST_INVALIDATIONS_FOR_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload + async def list_key_groups( + self, + request: _models.ListKeyGroupsInput | _models.ListKeyGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeyGroupsOutput: ... + + @_overload async def list_key_groups( - self, input: ListKeyGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeyGroupsInputDict], ) -> ListKeyGroupsOutput: """ Gets a list of key groups. @@ -3697,8 +6080,6 @@ async def list_key_groups( the subsequent request. Args: - input: - An instance of `ListKeyGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3708,17 +6089,38 @@ async def list_key_groups( Returns: An instance of `ListKeyGroupsOutput`. """ - return await self._invoke(input, _models.LIST_KEY_GROUPS, [], plugins) + async def list_key_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeyGroupsOutput: + return await self._invoke( + self._select_input(_models.LIST_KEY_GROUPS, args, kwargs), + _models.LIST_KEY_GROUPS, + [], + plugins, + ) + + @_overload + async def list_key_value_stores( + self, + request: _models.ListKeyValueStoresInput | _models.ListKeyValueStoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeyValueStoresOutput: ... + + @_overload async def list_key_value_stores( - self, input: ListKeyValueStoresInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeyValueStoresInputDict], ) -> ListKeyValueStoresOutput: """ Specifies the key value stores to list. Args: - input: - An instance of `ListKeyValueStoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3728,10 +6130,34 @@ async def list_key_value_stores( Returns: An instance of `ListKeyValueStoresOutput`. """ - return await self._invoke(input, _models.LIST_KEY_VALUE_STORES, [], plugins) + async def list_key_value_stores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeyValueStoresOutput: + return await self._invoke( + self._select_input(_models.LIST_KEY_VALUE_STORES, args, kwargs), + _models.LIST_KEY_VALUE_STORES, + [], + plugins, + ) + + @_overload + async def list_origin_access_controls( + self, + request: _models.ListOriginAccessControlsInput + | _models.ListOriginAccessControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOriginAccessControlsOutput: ... + + @_overload async def list_origin_access_controls( - self, input: ListOriginAccessControlsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOriginAccessControlsInputDict], ) -> ListOriginAccessControlsOutput: """ Gets the list of CloudFront origin access controls (OACs) in this Amazon @@ -3750,8 +6176,6 @@ async def list_origin_access_controls( `Items` element in the response. Args: - input: - An instance of `ListOriginAccessControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3761,12 +6185,34 @@ async def list_origin_access_controls( Returns: An instance of `ListOriginAccessControlsOutput`. """ + + async def list_origin_access_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOriginAccessControlsOutput: return await self._invoke( - input, _models.LIST_ORIGIN_ACCESS_CONTROLS, [], plugins + self._select_input(_models.LIST_ORIGIN_ACCESS_CONTROLS, args, kwargs), + _models.LIST_ORIGIN_ACCESS_CONTROLS, + [], + plugins, ) + @_overload + async def list_origin_request_policies( + self, + request: _models.ListOriginRequestPoliciesInput + | _models.ListOriginRequestPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOriginRequestPoliciesOutput: ... + + @_overload async def list_origin_request_policies( - self, input: ListOriginRequestPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOriginRequestPoliciesInputDict], ) -> ListOriginRequestPoliciesOutput: """ Gets a list of origin request policies. @@ -3783,8 +6229,6 @@ async def list_origin_request_policies( the subsequent request. Args: - input: - An instance of `ListOriginRequestPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3794,20 +6238,39 @@ async def list_origin_request_policies( Returns: An instance of `ListOriginRequestPoliciesOutput`. """ + + async def list_origin_request_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOriginRequestPoliciesOutput: return await self._invoke( - input, _models.LIST_ORIGIN_REQUEST_POLICIES, [], plugins + self._select_input(_models.LIST_ORIGIN_REQUEST_POLICIES, args, kwargs), + _models.LIST_ORIGIN_REQUEST_POLICIES, + [], + plugins, ) + @_overload + async def list_public_keys( + self, + request: _models.ListPublicKeysInput | _models.ListPublicKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPublicKeysOutput: ... + + @_overload async def list_public_keys( - self, input: ListPublicKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPublicKeysInputDict], ) -> ListPublicKeysOutput: """ List all public keys that have been added to CloudFront for this account. Args: - input: - An instance of `ListPublicKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3817,10 +6280,34 @@ async def list_public_keys( Returns: An instance of `ListPublicKeysOutput`. """ - return await self._invoke(input, _models.LIST_PUBLIC_KEYS, [], plugins) + async def list_public_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPublicKeysOutput: + return await self._invoke( + self._select_input(_models.LIST_PUBLIC_KEYS, args, kwargs), + _models.LIST_PUBLIC_KEYS, + [], + plugins, + ) + + @_overload + async def list_realtime_log_configs( + self, + request: _models.ListRealtimeLogConfigsInput + | _models.ListRealtimeLogConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRealtimeLogConfigsOutput: ... + + @_overload async def list_realtime_log_configs( - self, input: ListRealtimeLogConfigsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRealtimeLogConfigsInputDict], ) -> ListRealtimeLogConfigsOutput: """ Gets a list of real-time log configurations. @@ -3833,8 +6320,6 @@ async def list_realtime_log_configs( the subsequent request. Args: - input: - An instance of `ListRealtimeLogConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3844,12 +6329,34 @@ async def list_realtime_log_configs( Returns: An instance of `ListRealtimeLogConfigsOutput`. """ - return await self._invoke(input, _models.LIST_REALTIME_LOG_CONFIGS, [], plugins) + async def list_realtime_log_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRealtimeLogConfigsOutput: + return await self._invoke( + self._select_input(_models.LIST_REALTIME_LOG_CONFIGS, args, kwargs), + _models.LIST_REALTIME_LOG_CONFIGS, + [], + plugins, + ) + + @_overload + async def list_response_headers_policies( + self, + request: _models.ListResponseHeadersPoliciesInput + | _models.ListResponseHeadersPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResponseHeadersPoliciesOutput: ... + + @_overload async def list_response_headers_policies( self, - input: ListResponseHeadersPoliciesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResponseHeadersPoliciesInputDict], ) -> ListResponseHeadersPoliciesOutput: """ Gets a list of response headers policies. @@ -3866,8 +6373,6 @@ async def list_response_headers_policies( the subsequent request. Args: - input: - An instance of `ListResponseHeadersPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3877,21 +6382,39 @@ async def list_response_headers_policies( Returns: An instance of `ListResponseHeadersPoliciesOutput`. """ + + async def list_response_headers_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResponseHeadersPoliciesOutput: return await self._invoke( - input, _models.LIST_RESPONSE_HEADERS_POLICIES, [], plugins + self._select_input(_models.LIST_RESPONSE_HEADERS_POLICIES, args, kwargs), + _models.LIST_RESPONSE_HEADERS_POLICIES, + [], + plugins, ) + @_overload + async def list_streaming_distributions( + self, + request: _models.ListStreamingDistributionsInput + | _models.ListStreamingDistributionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStreamingDistributionsOutput: ... + + @_overload async def list_streaming_distributions( self, - input: ListStreamingDistributionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStreamingDistributionsInputDict], ) -> ListStreamingDistributionsOutput: """ List streaming distributions. Args: - input: - An instance of `ListStreamingDistributionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3901,12 +6424,34 @@ async def list_streaming_distributions( Returns: An instance of `ListStreamingDistributionsOutput`. """ + + async def list_streaming_distributions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStreamingDistributionsOutput: return await self._invoke( - input, _models.LIST_STREAMING_DISTRIBUTIONS, [], plugins + self._select_input(_models.LIST_STREAMING_DISTRIBUTIONS, args, kwargs), + _models.LIST_STREAMING_DISTRIBUTIONS, + [], + plugins, ) + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List tags for a CloudFront resource. For more information, see [Tagging @@ -3915,8 +6460,6 @@ async def list_tags_for_resource( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3926,17 +6469,38 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def list_trust_stores( + self, + request: _models.ListTrustStoresInput | _models.ListTrustStoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTrustStoresOutput: ... + + @_overload async def list_trust_stores( - self, input: ListTrustStoresInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTrustStoresInputDict], ) -> ListTrustStoresOutput: """ Lists trust stores. Args: - input: - An instance of `ListTrustStoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3946,17 +6510,38 @@ async def list_trust_stores( Returns: An instance of `ListTrustStoresOutput`. """ - return await self._invoke(input, _models.LIST_TRUST_STORES, [], plugins) + async def list_trust_stores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTrustStoresOutput: + return await self._invoke( + self._select_input(_models.LIST_TRUST_STORES, args, kwargs), + _models.LIST_TRUST_STORES, + [], + plugins, + ) + + @_overload async def list_vpc_origins( - self, input: ListVpcOriginsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListVpcOriginsInput | _models.ListVpcOriginsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVpcOriginsOutput: ... + + @_overload + async def list_vpc_origins( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVpcOriginsInputDict], ) -> ListVpcOriginsOutput: """ List the CloudFront VPC origins in your account. Args: - input: - An instance of `ListVpcOriginsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3966,17 +6551,39 @@ async def list_vpc_origins( Returns: An instance of `ListVpcOriginsOutput`. """ - return await self._invoke(input, _models.LIST_VPC_ORIGINS, [], plugins) + async def list_vpc_origins( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVpcOriginsOutput: + return await self._invoke( + self._select_input(_models.LIST_VPC_ORIGINS, args, kwargs), + _models.LIST_VPC_ORIGINS, + [], + plugins, + ) + + @_overload + async def publish_connection_function( + self, + request: _models.PublishConnectionFunctionInput + | _models.PublishConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishConnectionFunctionOutput: ... + + @_overload async def publish_connection_function( - self, input: PublishConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishConnectionFunctionInputDict], ) -> PublishConnectionFunctionOutput: """ Publishes a connection function. Args: - input: - An instance of `PublishConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3986,12 +6593,33 @@ async def publish_connection_function( Returns: An instance of `PublishConnectionFunctionOutput`. """ + + async def publish_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishConnectionFunctionOutput: return await self._invoke( - input, _models.PUBLISH_CONNECTION_FUNCTION, [], plugins + self._select_input(_models.PUBLISH_CONNECTION_FUNCTION, args, kwargs), + _models.PUBLISH_CONNECTION_FUNCTION, + [], + plugins, ) + @_overload + async def publish_function( + self, + request: _models.PublishFunctionInput | _models.PublishFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishFunctionOutput: ... + + @_overload async def publish_function( - self, input: PublishFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishFunctionInputDict], ) -> PublishFunctionOutput: """ Publishes a CloudFront function by copying the function code from the @@ -4008,8 +6636,6 @@ async def publish_function( `DescribeFunction`. Args: - input: - An instance of `PublishFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4019,17 +6645,38 @@ async def publish_function( Returns: An instance of `PublishFunctionOutput`. """ - return await self._invoke(input, _models.PUBLISH_FUNCTION, [], plugins) + async def publish_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishFunctionOutput: + return await self._invoke( + self._select_input(_models.PUBLISH_FUNCTION, args, kwargs), + _models.PUBLISH_FUNCTION, + [], + plugins, + ) + + @_overload + async def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Creates a resource control policy for a given CloudFront resource. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4039,10 +6686,33 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Add tags to a CloudFront resource. For more information, see [Tagging a @@ -4050,8 +6720,6 @@ async def tag_resource( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4061,17 +6729,39 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def test_connection_function( + self, + request: _models.TestConnectionFunctionInput + | _models.TestConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestConnectionFunctionOutput: ... + + @_overload async def test_connection_function( - self, input: TestConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestConnectionFunctionInputDict], ) -> TestConnectionFunctionOutput: """ Tests a connection function. Args: - input: - An instance of `TestConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4081,10 +6771,33 @@ async def test_connection_function( Returns: An instance of `TestConnectionFunctionOutput`. """ - return await self._invoke(input, _models.TEST_CONNECTION_FUNCTION, [], plugins) + async def test_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestConnectionFunctionOutput: + return await self._invoke( + self._select_input(_models.TEST_CONNECTION_FUNCTION, args, kwargs), + _models.TEST_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload async def test_function( - self, input: TestFunctionInput, plugins: list[Plugin] | None = None + self, + request: _models.TestFunctionInput | _models.TestFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestFunctionOutput: ... + + @_overload + async def test_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestFunctionInputDict], ) -> TestFunctionOutput: """ Tests a CloudFront function. @@ -4104,8 +6817,6 @@ async def test_function( version, you can use `ListFunctions` and `DescribeFunction`. Args: - input: - An instance of `TestFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4115,10 +6826,33 @@ async def test_function( Returns: An instance of `TestFunctionOutput`. """ - return await self._invoke(input, _models.TEST_FUNCTION, [], plugins) + async def test_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestFunctionOutput: + return await self._invoke( + self._select_input(_models.TEST_FUNCTION, args, kwargs), + _models.TEST_FUNCTION, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove tags from a CloudFront resource. For more information, see @@ -4127,8 +6861,6 @@ async def untag_resource( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4138,17 +6870,39 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_anycast_ip_list( + self, + request: _models.UpdateAnycastIpListInput + | _models.UpdateAnycastIpListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAnycastIpListOutput: ... + + @_overload async def update_anycast_ip_list( - self, input: UpdateAnycastIpListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAnycastIpListInputDict], ) -> UpdateAnycastIpListOutput: """ Updates an Anycast static IP list. Args: - input: - An instance of `UpdateAnycastIpListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4158,10 +6912,33 @@ async def update_anycast_ip_list( Returns: An instance of `UpdateAnycastIpListOutput`. """ - return await self._invoke(input, _models.UPDATE_ANYCAST_IP_LIST, [], plugins) + async def update_anycast_ip_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAnycastIpListOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ANYCAST_IP_LIST, args, kwargs), + _models.UPDATE_ANYCAST_IP_LIST, + [], + plugins, + ) + + @_overload + async def update_cache_policy( + self, + request: _models.UpdateCachePolicyInput | _models.UpdateCachePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCachePolicyOutput: ... + + @_overload async def update_cache_policy( - self, input: UpdateCachePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCachePolicyInputDict], ) -> UpdateCachePolicyOutput: """ Updates a cache policy configuration. @@ -4186,8 +6963,6 @@ async def update_cache_policy( are present in the origin headers. Args: - input: - An instance of `UpdateCachePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4197,19 +6972,39 @@ async def update_cache_policy( Returns: An instance of `UpdateCachePolicyOutput`. """ - return await self._invoke(input, _models.UPDATE_CACHE_POLICY, [], plugins) + async def update_cache_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCachePolicyOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CACHE_POLICY, args, kwargs), + _models.UPDATE_CACHE_POLICY, + [], + plugins, + ) + + @_overload + async def update_cloud_front_origin_access_identity( + self, + request: _models.UpdateCloudFrontOriginAccessIdentityInput + | _models.UpdateCloudFrontOriginAccessIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCloudFrontOriginAccessIdentityOutput: ... + + @_overload async def update_cloud_front_origin_access_identity( self, - input: UpdateCloudFrontOriginAccessIdentityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCloudFrontOriginAccessIdentityInputDict], ) -> UpdateCloudFrontOriginAccessIdentityOutput: """ Update an origin access identity. Args: - input: - An instance of `UpdateCloudFrontOriginAccessIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4219,19 +7014,41 @@ async def update_cloud_front_origin_access_identity( Returns: An instance of `UpdateCloudFrontOriginAccessIdentityOutput`. """ + + async def update_cloud_front_origin_access_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCloudFrontOriginAccessIdentityOutput: return await self._invoke( - input, _models.UPDATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, [], plugins + self._select_input( + _models.UPDATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, args, kwargs + ), + _models.UPDATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, + [], + plugins, ) + @_overload + async def update_connection_function( + self, + request: _models.UpdateConnectionFunctionInput + | _models.UpdateConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateConnectionFunctionOutput: ... + + @_overload async def update_connection_function( - self, input: UpdateConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateConnectionFunctionInputDict], ) -> UpdateConnectionFunctionOutput: """ Updates a connection function. Args: - input: - An instance of `UpdateConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4241,19 +7058,39 @@ async def update_connection_function( Returns: An instance of `UpdateConnectionFunctionOutput`. """ + + async def update_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateConnectionFunctionOutput: return await self._invoke( - input, _models.UPDATE_CONNECTION_FUNCTION, [], plugins + self._select_input(_models.UPDATE_CONNECTION_FUNCTION, args, kwargs), + _models.UPDATE_CONNECTION_FUNCTION, + [], + plugins, ) + @_overload + async def update_connection_group( + self, + request: _models.UpdateConnectionGroupInput + | _models.UpdateConnectionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateConnectionGroupOutput: ... + + @_overload async def update_connection_group( - self, input: UpdateConnectionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateConnectionGroupInputDict], ) -> UpdateConnectionGroupOutput: """ Updates a connection group. Args: - input: - An instance of `UpdateConnectionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4263,12 +7100,34 @@ async def update_connection_group( Returns: An instance of `UpdateConnectionGroupOutput`. """ - return await self._invoke(input, _models.UPDATE_CONNECTION_GROUP, [], plugins) + async def update_connection_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateConnectionGroupOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CONNECTION_GROUP, args, kwargs), + _models.UPDATE_CONNECTION_GROUP, + [], + plugins, + ) + + @_overload + async def update_continuous_deployment_policy( + self, + request: _models.UpdateContinuousDeploymentPolicyInput + | _models.UpdateContinuousDeploymentPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContinuousDeploymentPolicyOutput: ... + + @_overload async def update_continuous_deployment_policy( self, - input: UpdateContinuousDeploymentPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContinuousDeploymentPolicyInputDict], ) -> UpdateContinuousDeploymentPolicyOutput: """ Updates a continuous deployment policy. You can update a continuous @@ -4292,8 +7151,6 @@ async def update_continuous_deployment_policy( that you modified and those that you didn't. Args: - input: - An instance of `UpdateContinuousDeploymentPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4303,12 +7160,35 @@ async def update_continuous_deployment_policy( Returns: An instance of `UpdateContinuousDeploymentPolicyOutput`. """ + + async def update_continuous_deployment_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContinuousDeploymentPolicyOutput: return await self._invoke( - input, _models.UPDATE_CONTINUOUS_DEPLOYMENT_POLICY, [], plugins + self._select_input( + _models.UPDATE_CONTINUOUS_DEPLOYMENT_POLICY, args, kwargs + ), + _models.UPDATE_CONTINUOUS_DEPLOYMENT_POLICY, + [], + plugins, ) + @_overload + async def update_distribution( + self, + request: _models.UpdateDistributionInput | _models.UpdateDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDistributionOutput: ... + + @_overload async def update_distribution( - self, input: UpdateDistributionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDistributionInputDict], ) -> UpdateDistributionOutput: """ Updates the configuration for a CloudFront distribution. @@ -4340,8 +7220,6 @@ async def update_distribution( modified and also the ones that you didn't. Args: - input: - An instance of `UpdateDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4351,17 +7229,39 @@ async def update_distribution( Returns: An instance of `UpdateDistributionOutput`. """ - return await self._invoke(input, _models.UPDATE_DISTRIBUTION, [], plugins) + async def update_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDistributionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DISTRIBUTION, args, kwargs), + _models.UPDATE_DISTRIBUTION, + [], + plugins, + ) + + @_overload + async def update_distribution_tenant( + self, + request: _models.UpdateDistributionTenantInput + | _models.UpdateDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDistributionTenantOutput: ... + + @_overload async def update_distribution_tenant( - self, input: UpdateDistributionTenantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDistributionTenantInputDict], ) -> UpdateDistributionTenantOutput: """ Updates a distribution tenant. Args: - input: - An instance of `UpdateDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4371,14 +7271,34 @@ async def update_distribution_tenant( Returns: An instance of `UpdateDistributionTenantOutput`. """ + + async def update_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDistributionTenantOutput: return await self._invoke( - input, _models.UPDATE_DISTRIBUTION_TENANT, [], plugins + self._select_input(_models.UPDATE_DISTRIBUTION_TENANT, args, kwargs), + _models.UPDATE_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload + async def update_distribution_with_staging_config( + self, + request: _models.UpdateDistributionWithStagingConfigInput + | _models.UpdateDistributionWithStagingConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDistributionWithStagingConfigOutput: ... + + @_overload async def update_distribution_with_staging_config( self, - input: UpdateDistributionWithStagingConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDistributionWithStagingConfigInputDict], ) -> UpdateDistributionWithStagingConfigOutput: """ Copies the staging distribution's configuration to its corresponding @@ -4403,8 +7323,6 @@ async def update_distribution_with_staging_config( - [UpdateDistribution](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html) Args: - input: - An instance of `UpdateDistributionWithStagingConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4414,12 +7332,36 @@ async def update_distribution_with_staging_config( Returns: An instance of `UpdateDistributionWithStagingConfigOutput`. """ + + async def update_distribution_with_staging_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDistributionWithStagingConfigOutput: return await self._invoke( - input, _models.UPDATE_DISTRIBUTION_WITH_STAGING_CONFIG, [], plugins + self._select_input( + _models.UPDATE_DISTRIBUTION_WITH_STAGING_CONFIG, args, kwargs + ), + _models.UPDATE_DISTRIBUTION_WITH_STAGING_CONFIG, + [], + plugins, ) + @_overload + async def update_domain_association( + self, + request: _models.UpdateDomainAssociationInput + | _models.UpdateDomainAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDomainAssociationOutput: ... + + @_overload async def update_domain_association( - self, input: UpdateDomainAssociationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDomainAssociationInputDict], ) -> UpdateDomainAssociationOutput: """ Note: @@ -4446,8 +7388,6 @@ async def update_domain_association( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `UpdateDomainAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4457,19 +7397,39 @@ async def update_domain_association( Returns: An instance of `UpdateDomainAssociationOutput`. """ - return await self._invoke(input, _models.UPDATE_DOMAIN_ASSOCIATION, [], plugins) + async def update_domain_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDomainAssociationOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DOMAIN_ASSOCIATION, args, kwargs), + _models.UPDATE_DOMAIN_ASSOCIATION, + [], + plugins, + ) + + @_overload + async def update_field_level_encryption_config( + self, + request: _models.UpdateFieldLevelEncryptionConfigInput + | _models.UpdateFieldLevelEncryptionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFieldLevelEncryptionConfigOutput: ... + + @_overload async def update_field_level_encryption_config( self, - input: UpdateFieldLevelEncryptionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFieldLevelEncryptionConfigInputDict], ) -> UpdateFieldLevelEncryptionConfigOutput: """ Update a field-level encryption configuration. Args: - input: - An instance of `UpdateFieldLevelEncryptionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4479,21 +7439,41 @@ async def update_field_level_encryption_config( Returns: An instance of `UpdateFieldLevelEncryptionConfigOutput`. """ + + async def update_field_level_encryption_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFieldLevelEncryptionConfigOutput: return await self._invoke( - input, _models.UPDATE_FIELD_LEVEL_ENCRYPTION_CONFIG, [], plugins + self._select_input( + _models.UPDATE_FIELD_LEVEL_ENCRYPTION_CONFIG, args, kwargs + ), + _models.UPDATE_FIELD_LEVEL_ENCRYPTION_CONFIG, + [], + plugins, ) + @_overload + async def update_field_level_encryption_profile( + self, + request: _models.UpdateFieldLevelEncryptionProfileInput + | _models.UpdateFieldLevelEncryptionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFieldLevelEncryptionProfileOutput: ... + + @_overload async def update_field_level_encryption_profile( self, - input: UpdateFieldLevelEncryptionProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFieldLevelEncryptionProfileInputDict], ) -> UpdateFieldLevelEncryptionProfileOutput: """ Update a field-level encryption profile. Args: - input: - An instance of `UpdateFieldLevelEncryptionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4503,12 +7483,35 @@ async def update_field_level_encryption_profile( Returns: An instance of `UpdateFieldLevelEncryptionProfileOutput`. """ + + async def update_field_level_encryption_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFieldLevelEncryptionProfileOutput: return await self._invoke( - input, _models.UPDATE_FIELD_LEVEL_ENCRYPTION_PROFILE, [], plugins + self._select_input( + _models.UPDATE_FIELD_LEVEL_ENCRYPTION_PROFILE, args, kwargs + ), + _models.UPDATE_FIELD_LEVEL_ENCRYPTION_PROFILE, + [], + plugins, ) + @_overload + async def update_function( + self, + request: _models.UpdateFunctionInput | _models.UpdateFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionOutput: ... + + @_overload async def update_function( - self, input: UpdateFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionInputDict], ) -> UpdateFunctionOutput: """ Updates a CloudFront function. @@ -4521,8 +7524,6 @@ async def update_function( version, you can use `ListFunctions` and `DescribeFunction`. Args: - input: - An instance of `UpdateFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4532,10 +7533,33 @@ async def update_function( Returns: An instance of `UpdateFunctionOutput`. """ - return await self._invoke(input, _models.UPDATE_FUNCTION, [], plugins) + async def update_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_FUNCTION, args, kwargs), + _models.UPDATE_FUNCTION, + [], + plugins, + ) + + @_overload + async def update_key_group( + self, + request: _models.UpdateKeyGroupInput | _models.UpdateKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKeyGroupOutput: ... + + @_overload async def update_key_group( - self, input: UpdateKeyGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKeyGroupInputDict], ) -> UpdateKeyGroupOutput: """ Updates a key group. @@ -4553,8 +7577,6 @@ async def update_key_group( the fields that you modified and those that you didn't. Args: - input: - An instance of `UpdateKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4564,17 +7586,39 @@ async def update_key_group( Returns: An instance of `UpdateKeyGroupOutput`. """ - return await self._invoke(input, _models.UPDATE_KEY_GROUP, [], plugins) + async def update_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKeyGroupOutput: + return await self._invoke( + self._select_input(_models.UPDATE_KEY_GROUP, args, kwargs), + _models.UPDATE_KEY_GROUP, + [], + plugins, + ) + + @_overload async def update_key_value_store( - self, input: UpdateKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateKeyValueStoreInput + | _models.UpdateKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKeyValueStoreOutput: ... + + @_overload + async def update_key_value_store( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKeyValueStoreInputDict], ) -> UpdateKeyValueStoreOutput: """ Specifies the key value store to update. Args: - input: - An instance of `UpdateKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4584,17 +7628,39 @@ async def update_key_value_store( Returns: An instance of `UpdateKeyValueStoreOutput`. """ - return await self._invoke(input, _models.UPDATE_KEY_VALUE_STORE, [], plugins) + async def update_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKeyValueStoreOutput: + return await self._invoke( + self._select_input(_models.UPDATE_KEY_VALUE_STORE, args, kwargs), + _models.UPDATE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload + async def update_origin_access_control( + self, + request: _models.UpdateOriginAccessControlInput + | _models.UpdateOriginAccessControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOriginAccessControlOutput: ... + + @_overload async def update_origin_access_control( - self, input: UpdateOriginAccessControlInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOriginAccessControlInputDict], ) -> UpdateOriginAccessControlOutput: """ Updates a CloudFront origin access control. Args: - input: - An instance of `UpdateOriginAccessControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4604,12 +7670,34 @@ async def update_origin_access_control( Returns: An instance of `UpdateOriginAccessControlOutput`. """ + + async def update_origin_access_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOriginAccessControlOutput: return await self._invoke( - input, _models.UPDATE_ORIGIN_ACCESS_CONTROL, [], plugins + self._select_input(_models.UPDATE_ORIGIN_ACCESS_CONTROL, args, kwargs), + _models.UPDATE_ORIGIN_ACCESS_CONTROL, + [], + plugins, ) + @_overload + async def update_origin_request_policy( + self, + request: _models.UpdateOriginRequestPolicyInput + | _models.UpdateOriginRequestPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOriginRequestPolicyOutput: ... + + @_overload async def update_origin_request_policy( - self, input: UpdateOriginRequestPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOriginRequestPolicyInputDict], ) -> UpdateOriginRequestPolicyOutput: """ Updates an origin request policy configuration. @@ -4629,8 +7717,6 @@ async def update_origin_request_policy( and those that you didn't. Args: - input: - An instance of `UpdateOriginRequestPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4640,20 +7726,39 @@ async def update_origin_request_policy( Returns: An instance of `UpdateOriginRequestPolicyOutput`. """ + + async def update_origin_request_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOriginRequestPolicyOutput: return await self._invoke( - input, _models.UPDATE_ORIGIN_REQUEST_POLICY, [], plugins + self._select_input(_models.UPDATE_ORIGIN_REQUEST_POLICY, args, kwargs), + _models.UPDATE_ORIGIN_REQUEST_POLICY, + [], + plugins, ) + @_overload + async def update_public_key( + self, + request: _models.UpdatePublicKeyInput | _models.UpdatePublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePublicKeyOutput: ... + + @_overload async def update_public_key( - self, input: UpdatePublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePublicKeyInputDict], ) -> UpdatePublicKeyOutput: """ Update public key information. Note that the only value you can change is the comment. Args: - input: - An instance of `UpdatePublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4663,10 +7768,34 @@ async def update_public_key( Returns: An instance of `UpdatePublicKeyOutput`. """ - return await self._invoke(input, _models.UPDATE_PUBLIC_KEY, [], plugins) + async def update_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePublicKeyOutput: + return await self._invoke( + self._select_input(_models.UPDATE_PUBLIC_KEY, args, kwargs), + _models.UPDATE_PUBLIC_KEY, + [], + plugins, + ) + + @_overload async def update_realtime_log_config( - self, input: UpdateRealtimeLogConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateRealtimeLogConfigInput + | _models.UpdateRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRealtimeLogConfigOutput: ... + + @_overload + async def update_realtime_log_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRealtimeLogConfigInputDict], ) -> UpdateRealtimeLogConfigOutput: """ Updates a real-time log configuration. @@ -4689,8 +7818,6 @@ async def update_realtime_log_config( You cannot update a real-time log configuration's `Name` or `ARN`. Args: - input: - An instance of `UpdateRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4700,14 +7827,34 @@ async def update_realtime_log_config( Returns: An instance of `UpdateRealtimeLogConfigOutput`. """ + + async def update_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRealtimeLogConfigOutput: return await self._invoke( - input, _models.UPDATE_REALTIME_LOG_CONFIG, [], plugins + self._select_input(_models.UPDATE_REALTIME_LOG_CONFIG, args, kwargs), + _models.UPDATE_REALTIME_LOG_CONFIG, + [], + plugins, ) + @_overload + async def update_response_headers_policy( + self, + request: _models.UpdateResponseHeadersPolicyInput + | _models.UpdateResponseHeadersPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateResponseHeadersPolicyOutput: ... + + @_overload async def update_response_headers_policy( self, - input: UpdateResponseHeadersPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateResponseHeadersPolicyInputDict], ) -> UpdateResponseHeadersPolicyOutput: """ Updates a response headers policy. @@ -4727,8 +7874,6 @@ async def update_response_headers_policy( and those that you didn't. Args: - input: - An instance of `UpdateResponseHeadersPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4738,21 +7883,39 @@ async def update_response_headers_policy( Returns: An instance of `UpdateResponseHeadersPolicyOutput`. """ + + async def update_response_headers_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateResponseHeadersPolicyOutput: return await self._invoke( - input, _models.UPDATE_RESPONSE_HEADERS_POLICY, [], plugins + self._select_input(_models.UPDATE_RESPONSE_HEADERS_POLICY, args, kwargs), + _models.UPDATE_RESPONSE_HEADERS_POLICY, + [], + plugins, ) + @_overload async def update_streaming_distribution( self, - input: UpdateStreamingDistributionInput, + request: _models.UpdateStreamingDistributionInput + | _models.UpdateStreamingDistributionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateStreamingDistributionOutput: ... + + @_overload + async def update_streaming_distribution( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStreamingDistributionInputDict], ) -> UpdateStreamingDistributionOutput: """ Update a streaming distribution. Args: - input: - An instance of `UpdateStreamingDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4762,19 +7925,38 @@ async def update_streaming_distribution( Returns: An instance of `UpdateStreamingDistributionOutput`. """ + + async def update_streaming_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStreamingDistributionOutput: return await self._invoke( - input, _models.UPDATE_STREAMING_DISTRIBUTION, [], plugins + self._select_input(_models.UPDATE_STREAMING_DISTRIBUTION, args, kwargs), + _models.UPDATE_STREAMING_DISTRIBUTION, + [], + plugins, ) + @_overload + async def update_trust_store( + self, + request: _models.UpdateTrustStoreInput | _models.UpdateTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTrustStoreOutput: ... + + @_overload async def update_trust_store( - self, input: UpdateTrustStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTrustStoreInputDict], ) -> UpdateTrustStoreOutput: """ Updates a trust store. Args: - input: - An instance of `UpdateTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4784,17 +7966,38 @@ async def update_trust_store( Returns: An instance of `UpdateTrustStoreOutput`. """ - return await self._invoke(input, _models.UPDATE_TRUST_STORE, [], plugins) + async def update_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTrustStoreOutput: + return await self._invoke( + self._select_input(_models.UPDATE_TRUST_STORE, args, kwargs), + _models.UPDATE_TRUST_STORE, + [], + plugins, + ) + + @_overload + async def update_vpc_origin( + self, + request: _models.UpdateVpcOriginInput | _models.UpdateVpcOriginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateVpcOriginOutput: ... + + @_overload async def update_vpc_origin( - self, input: UpdateVpcOriginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateVpcOriginInputDict], ) -> UpdateVpcOriginOutput: """ Update an Amazon CloudFront VPC origin in your account. Args: - input: - An instance of `UpdateVpcOriginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4804,10 +8007,34 @@ async def update_vpc_origin( Returns: An instance of `UpdateVpcOriginOutput`. """ - return await self._invoke(input, _models.UPDATE_VPC_ORIGIN, [], plugins) + async def update_vpc_origin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateVpcOriginOutput: + return await self._invoke( + self._select_input(_models.UPDATE_VPC_ORIGIN, args, kwargs), + _models.UPDATE_VPC_ORIGIN, + [], + plugins, + ) + + @_overload + async def verify_dns_configuration( + self, + request: _models.VerifyDnsConfigurationInput + | _models.VerifyDnsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> VerifyDnsConfigurationOutput: ... + + @_overload async def verify_dns_configuration( - self, input: VerifyDnsConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.VerifyDnsConfigurationInputDict], ) -> VerifyDnsConfigurationOutput: """ Verify the DNS configuration for your domain names. This API operation @@ -4817,8 +8044,6 @@ async def verify_dns_configuration( issues. Args: - input: - An instance of `VerifyDnsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4828,7 +8053,16 @@ async def verify_dns_configuration( Returns: An instance of `VerifyDnsConfigurationOutput`. """ - return await self._invoke(input, _models.VERIFY_DNS_CONFIGURATION, [], plugins) + + async def verify_dns_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> VerifyDnsConfigurationOutput: + return await self._invoke( + self._select_input(_models.VERIFY_DNS_CONFIGURATION, args, kwargs), + _models.VERIFY_DNS_CONFIGURATION, + [], + plugins, + ) async def _new_config(self) -> AsyncCloudFrontConfig: return await AsyncCloudFrontConfig.resolve() diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/client.py b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/client.py index d86bc888e..885dc9da4 100644 --- a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/client.py +++ b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,339 +20,172 @@ if TYPE_CHECKING: from .models import ( - AssociateAliasInput, AssociateAliasOutput, - AssociateDistributionTenantWebACLInput, AssociateDistributionTenantWebACLOutput, - AssociateDistributionWebACLInput, AssociateDistributionWebACLOutput, - CopyDistributionInput, CopyDistributionOutput, - CreateAnycastIpListInput, CreateAnycastIpListOutput, - CreateCachePolicyInput, CreateCachePolicyOutput, - CreateCloudFrontOriginAccessIdentityInput, CreateCloudFrontOriginAccessIdentityOutput, - CreateConnectionFunctionInput, CreateConnectionFunctionOutput, - CreateConnectionGroupInput, CreateConnectionGroupOutput, - CreateContinuousDeploymentPolicyInput, CreateContinuousDeploymentPolicyOutput, - CreateDistributionInput, CreateDistributionOutput, - CreateDistributionTenantInput, CreateDistributionTenantOutput, - CreateDistributionWithTagsInput, CreateDistributionWithTagsOutput, - CreateFieldLevelEncryptionConfigInput, CreateFieldLevelEncryptionConfigOutput, - CreateFieldLevelEncryptionProfileInput, CreateFieldLevelEncryptionProfileOutput, - CreateFunctionInput, CreateFunctionOutput, - CreateInvalidationForDistributionTenantInput, CreateInvalidationForDistributionTenantOutput, - CreateInvalidationInput, CreateInvalidationOutput, - CreateKeyGroupInput, CreateKeyGroupOutput, - CreateKeyValueStoreInput, CreateKeyValueStoreOutput, - CreateMonitoringSubscriptionInput, CreateMonitoringSubscriptionOutput, - CreateOriginAccessControlInput, CreateOriginAccessControlOutput, - CreateOriginRequestPolicyInput, CreateOriginRequestPolicyOutput, - CreatePublicKeyInput, CreatePublicKeyOutput, - CreateRealtimeLogConfigInput, CreateRealtimeLogConfigOutput, - CreateResponseHeadersPolicyInput, CreateResponseHeadersPolicyOutput, - CreateStreamingDistributionInput, CreateStreamingDistributionOutput, - CreateStreamingDistributionWithTagsInput, CreateStreamingDistributionWithTagsOutput, - CreateTrustStoreInput, CreateTrustStoreOutput, - CreateVpcOriginInput, CreateVpcOriginOutput, - DeleteAnycastIpListInput, DeleteAnycastIpListOutput, - DeleteCachePolicyInput, DeleteCachePolicyOutput, - DeleteCloudFrontOriginAccessIdentityInput, DeleteCloudFrontOriginAccessIdentityOutput, - DeleteConnectionFunctionInput, DeleteConnectionFunctionOutput, - DeleteConnectionGroupInput, DeleteConnectionGroupOutput, - DeleteContinuousDeploymentPolicyInput, DeleteContinuousDeploymentPolicyOutput, - DeleteDistributionInput, DeleteDistributionOutput, - DeleteDistributionTenantInput, DeleteDistributionTenantOutput, - DeleteFieldLevelEncryptionConfigInput, DeleteFieldLevelEncryptionConfigOutput, - DeleteFieldLevelEncryptionProfileInput, DeleteFieldLevelEncryptionProfileOutput, - DeleteFunctionInput, DeleteFunctionOutput, - DeleteKeyGroupInput, DeleteKeyGroupOutput, - DeleteKeyValueStoreInput, DeleteKeyValueStoreOutput, - DeleteMonitoringSubscriptionInput, DeleteMonitoringSubscriptionOutput, - DeleteOriginAccessControlInput, DeleteOriginAccessControlOutput, - DeleteOriginRequestPolicyInput, DeleteOriginRequestPolicyOutput, - DeletePublicKeyInput, DeletePublicKeyOutput, - DeleteRealtimeLogConfigInput, DeleteRealtimeLogConfigOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteResponseHeadersPolicyInput, DeleteResponseHeadersPolicyOutput, - DeleteStreamingDistributionInput, DeleteStreamingDistributionOutput, - DeleteTrustStoreInput, DeleteTrustStoreOutput, - DeleteVpcOriginInput, DeleteVpcOriginOutput, - DescribeConnectionFunctionInput, DescribeConnectionFunctionOutput, - DescribeFunctionInput, DescribeFunctionOutput, - DescribeKeyValueStoreInput, DescribeKeyValueStoreOutput, - DisassociateDistributionTenantWebACLInput, DisassociateDistributionTenantWebACLOutput, - DisassociateDistributionWebACLInput, DisassociateDistributionWebACLOutput, - GetAnycastIpListInput, GetAnycastIpListOutput, - GetCachePolicyConfigInput, GetCachePolicyConfigOutput, - GetCachePolicyInput, GetCachePolicyOutput, - GetCloudFrontOriginAccessIdentityConfigInput, GetCloudFrontOriginAccessIdentityConfigOutput, - GetCloudFrontOriginAccessIdentityInput, GetCloudFrontOriginAccessIdentityOutput, - GetConnectionFunctionInput, GetConnectionFunctionOutput, - GetConnectionGroupByRoutingEndpointInput, GetConnectionGroupByRoutingEndpointOutput, - GetConnectionGroupInput, GetConnectionGroupOutput, - GetContinuousDeploymentPolicyConfigInput, GetContinuousDeploymentPolicyConfigOutput, - GetContinuousDeploymentPolicyInput, GetContinuousDeploymentPolicyOutput, - GetDistributionConfigInput, GetDistributionConfigOutput, - GetDistributionInput, GetDistributionOutput, - GetDistributionTenantByDomainInput, GetDistributionTenantByDomainOutput, - GetDistributionTenantInput, GetDistributionTenantOutput, - GetFieldLevelEncryptionConfigInput, GetFieldLevelEncryptionConfigOutput, - GetFieldLevelEncryptionInput, GetFieldLevelEncryptionOutput, - GetFieldLevelEncryptionProfileConfigInput, GetFieldLevelEncryptionProfileConfigOutput, - GetFieldLevelEncryptionProfileInput, GetFieldLevelEncryptionProfileOutput, - GetFunctionInput, GetFunctionOutput, - GetInvalidationForDistributionTenantInput, GetInvalidationForDistributionTenantOutput, - GetInvalidationInput, GetInvalidationOutput, - GetKeyGroupConfigInput, GetKeyGroupConfigOutput, - GetKeyGroupInput, GetKeyGroupOutput, - GetManagedCertificateDetailsInput, GetManagedCertificateDetailsOutput, - GetMonitoringSubscriptionInput, GetMonitoringSubscriptionOutput, - GetOriginAccessControlConfigInput, GetOriginAccessControlConfigOutput, - GetOriginAccessControlInput, GetOriginAccessControlOutput, - GetOriginRequestPolicyConfigInput, GetOriginRequestPolicyConfigOutput, - GetOriginRequestPolicyInput, GetOriginRequestPolicyOutput, - GetPublicKeyConfigInput, GetPublicKeyConfigOutput, - GetPublicKeyInput, GetPublicKeyOutput, - GetRealtimeLogConfigInput, GetRealtimeLogConfigOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetResponseHeadersPolicyConfigInput, GetResponseHeadersPolicyConfigOutput, - GetResponseHeadersPolicyInput, GetResponseHeadersPolicyOutput, - GetStreamingDistributionConfigInput, GetStreamingDistributionConfigOutput, - GetStreamingDistributionInput, GetStreamingDistributionOutput, - GetTrustStoreInput, GetTrustStoreOutput, - GetVpcOriginInput, GetVpcOriginOutput, - ListAnycastIpListsInput, ListAnycastIpListsOutput, - ListCachePoliciesInput, ListCachePoliciesOutput, - ListCloudFrontOriginAccessIdentitiesInput, ListCloudFrontOriginAccessIdentitiesOutput, - ListConflictingAliasesInput, ListConflictingAliasesOutput, - ListConnectionFunctionsInput, ListConnectionFunctionsOutput, - ListConnectionGroupsInput, ListConnectionGroupsOutput, - ListContinuousDeploymentPoliciesInput, ListContinuousDeploymentPoliciesOutput, - ListDistributionTenantsByCustomizationInput, ListDistributionTenantsByCustomizationOutput, - ListDistributionTenantsInput, ListDistributionTenantsOutput, - ListDistributionsByAnycastIpListIdInput, ListDistributionsByAnycastIpListIdOutput, - ListDistributionsByCachePolicyIdInput, ListDistributionsByCachePolicyIdOutput, - ListDistributionsByConnectionFunctionInput, ListDistributionsByConnectionFunctionOutput, - ListDistributionsByConnectionModeInput, ListDistributionsByConnectionModeOutput, - ListDistributionsByKeyGroupInput, ListDistributionsByKeyGroupOutput, - ListDistributionsByOriginRequestPolicyIdInput, ListDistributionsByOriginRequestPolicyIdOutput, - ListDistributionsByOwnedResourceInput, ListDistributionsByOwnedResourceOutput, - ListDistributionsByRealtimeLogConfigInput, ListDistributionsByRealtimeLogConfigOutput, - ListDistributionsByResponseHeadersPolicyIdInput, ListDistributionsByResponseHeadersPolicyIdOutput, - ListDistributionsByTrustStoreInput, ListDistributionsByTrustStoreOutput, - ListDistributionsByVpcOriginIdInput, ListDistributionsByVpcOriginIdOutput, - ListDistributionsByWebACLIdInput, ListDistributionsByWebACLIdOutput, - ListDistributionsInput, ListDistributionsOutput, - ListDomainConflictsInput, ListDomainConflictsOutput, - ListFieldLevelEncryptionConfigsInput, ListFieldLevelEncryptionConfigsOutput, - ListFieldLevelEncryptionProfilesInput, ListFieldLevelEncryptionProfilesOutput, - ListFunctionsInput, ListFunctionsOutput, - ListInvalidationsForDistributionTenantInput, ListInvalidationsForDistributionTenantOutput, - ListInvalidationsInput, ListInvalidationsOutput, - ListKeyGroupsInput, ListKeyGroupsOutput, - ListKeyValueStoresInput, ListKeyValueStoresOutput, - ListOriginAccessControlsInput, ListOriginAccessControlsOutput, - ListOriginRequestPoliciesInput, ListOriginRequestPoliciesOutput, - ListPublicKeysInput, ListPublicKeysOutput, - ListRealtimeLogConfigsInput, ListRealtimeLogConfigsOutput, - ListResponseHeadersPoliciesInput, ListResponseHeadersPoliciesOutput, - ListStreamingDistributionsInput, ListStreamingDistributionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListTrustStoresInput, ListTrustStoresOutput, - ListVpcOriginsInput, ListVpcOriginsOutput, - PublishConnectionFunctionInput, PublishConnectionFunctionOutput, - PublishFunctionInput, PublishFunctionOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - TagResourceInput, TagResourceOutput, - TestConnectionFunctionInput, TestConnectionFunctionOutput, - TestFunctionInput, TestFunctionOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAnycastIpListInput, UpdateAnycastIpListOutput, - UpdateCachePolicyInput, UpdateCachePolicyOutput, - UpdateCloudFrontOriginAccessIdentityInput, UpdateCloudFrontOriginAccessIdentityOutput, - UpdateConnectionFunctionInput, UpdateConnectionFunctionOutput, - UpdateConnectionGroupInput, UpdateConnectionGroupOutput, - UpdateContinuousDeploymentPolicyInput, UpdateContinuousDeploymentPolicyOutput, - UpdateDistributionInput, UpdateDistributionOutput, - UpdateDistributionTenantInput, UpdateDistributionTenantOutput, - UpdateDistributionWithStagingConfigInput, UpdateDistributionWithStagingConfigOutput, - UpdateDomainAssociationInput, UpdateDomainAssociationOutput, - UpdateFieldLevelEncryptionConfigInput, UpdateFieldLevelEncryptionConfigOutput, - UpdateFieldLevelEncryptionProfileInput, UpdateFieldLevelEncryptionProfileOutput, - UpdateFunctionInput, UpdateFunctionOutput, - UpdateKeyGroupInput, UpdateKeyGroupOutput, - UpdateKeyValueStoreInput, UpdateKeyValueStoreOutput, - UpdateOriginAccessControlInput, UpdateOriginAccessControlOutput, - UpdateOriginRequestPolicyInput, UpdateOriginRequestPolicyOutput, - UpdatePublicKeyInput, UpdatePublicKeyOutput, - UpdateRealtimeLogConfigInput, UpdateRealtimeLogConfigOutput, - UpdateResponseHeadersPolicyInput, UpdateResponseHeadersPolicyOutput, - UpdateStreamingDistributionInput, UpdateStreamingDistributionOutput, - UpdateTrustStoreInput, UpdateTrustStoreOutput, - UpdateVpcOriginInput, UpdateVpcOriginOutput, - VerifyDnsConfigurationInput, VerifyDnsConfigurationOutput, ) @@ -369,10 +202,24 @@ class CloudFrontClient(Client[CloudFrontConfig]): Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def associate_alias( - self, input: AssociateAliasInput, plugins: list[Plugin] | None = None + self, + request: _models.AssociateAliasInput | _models.AssociateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateAliasOutput: ... + + @_overload + def associate_alias( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateAliasInputDict], ) -> AssociateAliasOutput: """ Note: @@ -403,8 +250,6 @@ def associate_alias( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `AssociateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -414,19 +259,39 @@ def associate_alias( Returns: An instance of `AssociateAliasOutput`. """ - return self._invoke(input, _models.ASSOCIATE_ALIAS, [], plugins) + def associate_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateAliasOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_ALIAS, args, kwargs), + _models.ASSOCIATE_ALIAS, + [], + plugins, + ) + + @_overload + def associate_distribution_tenant_web_acl( + self, + request: _models.AssociateDistributionTenantWebACLInput + | _models.AssociateDistributionTenantWebACLInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateDistributionTenantWebACLOutput: ... + + @_overload def associate_distribution_tenant_web_acl( self, - input: AssociateDistributionTenantWebACLInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateDistributionTenantWebACLInputDict], ) -> AssociateDistributionTenantWebACLOutput: """ Associates the WAF web ACL with a distribution tenant. Args: - input: - An instance of `AssociateDistributionTenantWebACLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -436,21 +301,41 @@ def associate_distribution_tenant_web_acl( Returns: An instance of `AssociateDistributionTenantWebACLOutput`. """ + + def associate_distribution_tenant_web_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateDistributionTenantWebACLOutput: return self._invoke( - input, _models.ASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, [], plugins + self._select_input( + _models.ASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, args, kwargs + ), + _models.ASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, + [], + plugins, ) + @_overload + def associate_distribution_web_acl( + self, + request: _models.AssociateDistributionWebACLInput + | _models.AssociateDistributionWebACLInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateDistributionWebACLOutput: ... + + @_overload def associate_distribution_web_acl( self, - input: AssociateDistributionWebACLInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateDistributionWebACLInputDict], ) -> AssociateDistributionWebACLOutput: """ Associates the WAF web ACL with a distribution. Args: - input: - An instance of `AssociateDistributionWebACLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -460,10 +345,33 @@ def associate_distribution_web_acl( Returns: An instance of `AssociateDistributionWebACLOutput`. """ - return self._invoke(input, _models.ASSOCIATE_DISTRIBUTION_WEB_ACL, [], plugins) + def associate_distribution_web_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateDistributionWebACLOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_DISTRIBUTION_WEB_ACL, args, kwargs), + _models.ASSOCIATE_DISTRIBUTION_WEB_ACL, + [], + plugins, + ) + + @_overload + def copy_distribution( + self, + request: _models.CopyDistributionInput | _models.CopyDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDistributionOutput: ... + + @_overload def copy_distribution( - self, input: CopyDistributionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDistributionInputDict], ) -> CopyDistributionOutput: """ Creates a staging distribution using the configuration of the provided @@ -485,8 +393,6 @@ def copy_distribution( - [CopyDistribution](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CopyDistribution.html) Args: - input: - An instance of `CopyDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -496,17 +402,39 @@ def copy_distribution( Returns: An instance of `CopyDistributionOutput`. """ - return self._invoke(input, _models.COPY_DISTRIBUTION, [], plugins) + def copy_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDistributionOutput: + return self._invoke( + self._select_input(_models.COPY_DISTRIBUTION, args, kwargs), + _models.COPY_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def create_anycast_ip_list( + self, + request: _models.CreateAnycastIpListInput + | _models.CreateAnycastIpListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAnycastIpListOutput: ... + + @_overload def create_anycast_ip_list( - self, input: CreateAnycastIpListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAnycastIpListInputDict], ) -> CreateAnycastIpListOutput: """ Creates an Anycast static IP list. Args: - input: - An instance of `CreateAnycastIpListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -516,10 +444,33 @@ def create_anycast_ip_list( Returns: An instance of `CreateAnycastIpListOutput`. """ - return self._invoke(input, _models.CREATE_ANYCAST_IP_LIST, [], plugins) + def create_anycast_ip_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAnycastIpListOutput: + return self._invoke( + self._select_input(_models.CREATE_ANYCAST_IP_LIST, args, kwargs), + _models.CREATE_ANYCAST_IP_LIST, + [], + plugins, + ) + + @_overload + def create_cache_policy( + self, + request: _models.CreateCachePolicyInput | _models.CreateCachePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCachePolicyOutput: ... + + @_overload def create_cache_policy( - self, input: CreateCachePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCachePolicyInputDict], ) -> CreateCachePolicyOutput: """ Creates a cache policy. @@ -554,8 +505,6 @@ def create_cache_policy( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateCachePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -565,12 +514,34 @@ def create_cache_policy( Returns: An instance of `CreateCachePolicyOutput`. """ - return self._invoke(input, _models.CREATE_CACHE_POLICY, [], plugins) + def create_cache_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCachePolicyOutput: + return self._invoke( + self._select_input(_models.CREATE_CACHE_POLICY, args, kwargs), + _models.CREATE_CACHE_POLICY, + [], + plugins, + ) + + @_overload + def create_cloud_front_origin_access_identity( + self, + request: _models.CreateCloudFrontOriginAccessIdentityInput + | _models.CreateCloudFrontOriginAccessIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCloudFrontOriginAccessIdentityOutput: ... + + @_overload def create_cloud_front_origin_access_identity( self, - input: CreateCloudFrontOriginAccessIdentityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCloudFrontOriginAccessIdentityInputDict], ) -> CreateCloudFrontOriginAccessIdentityOutput: """ Creates a new origin access identity. If you're using Amazon S3 for @@ -582,8 +553,6 @@ def create_cloud_front_origin_access_identity( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateCloudFrontOriginAccessIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -593,19 +562,41 @@ def create_cloud_front_origin_access_identity( Returns: An instance of `CreateCloudFrontOriginAccessIdentityOutput`. """ + + def create_cloud_front_origin_access_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCloudFrontOriginAccessIdentityOutput: return self._invoke( - input, _models.CREATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, [], plugins + self._select_input( + _models.CREATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, args, kwargs + ), + _models.CREATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, + [], + plugins, ) + @_overload + def create_connection_function( + self, + request: _models.CreateConnectionFunctionInput + | _models.CreateConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateConnectionFunctionOutput: ... + + @_overload def create_connection_function( - self, input: CreateConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateConnectionFunctionInputDict], ) -> CreateConnectionFunctionOutput: """ Creates a connection function. Args: - input: - An instance of `CreateConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -615,17 +606,39 @@ def create_connection_function( Returns: An instance of `CreateConnectionFunctionOutput`. """ - return self._invoke(input, _models.CREATE_CONNECTION_FUNCTION, [], plugins) + def create_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateConnectionFunctionOutput: + return self._invoke( + self._select_input(_models.CREATE_CONNECTION_FUNCTION, args, kwargs), + _models.CREATE_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload + def create_connection_group( + self, + request: _models.CreateConnectionGroupInput + | _models.CreateConnectionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateConnectionGroupOutput: ... + + @_overload def create_connection_group( - self, input: CreateConnectionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateConnectionGroupInputDict], ) -> CreateConnectionGroupOutput: """ Creates a connection group. Args: - input: - An instance of `CreateConnectionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -635,12 +648,34 @@ def create_connection_group( Returns: An instance of `CreateConnectionGroupOutput`. """ - return self._invoke(input, _models.CREATE_CONNECTION_GROUP, [], plugins) + def create_connection_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateConnectionGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_CONNECTION_GROUP, args, kwargs), + _models.CREATE_CONNECTION_GROUP, + [], + plugins, + ) + + @_overload + def create_continuous_deployment_policy( + self, + request: _models.CreateContinuousDeploymentPolicyInput + | _models.CreateContinuousDeploymentPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateContinuousDeploymentPolicyOutput: ... + + @_overload def create_continuous_deployment_policy( self, - input: CreateContinuousDeploymentPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateContinuousDeploymentPolicyInputDict], ) -> CreateContinuousDeploymentPolicyOutput: """ Creates a continuous deployment policy that distributes traffic for a @@ -657,8 +692,6 @@ def create_continuous_deployment_policy( production traffic to the new configuration. Args: - input: - An instance of `CreateContinuousDeploymentPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -668,19 +701,40 @@ def create_continuous_deployment_policy( Returns: An instance of `CreateContinuousDeploymentPolicyOutput`. """ + + def create_continuous_deployment_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateContinuousDeploymentPolicyOutput: return self._invoke( - input, _models.CREATE_CONTINUOUS_DEPLOYMENT_POLICY, [], plugins + self._select_input( + _models.CREATE_CONTINUOUS_DEPLOYMENT_POLICY, args, kwargs + ), + _models.CREATE_CONTINUOUS_DEPLOYMENT_POLICY, + [], + plugins, ) + @_overload def create_distribution( - self, input: CreateDistributionInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDistributionInput | _models.CreateDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDistributionOutput: ... + + @_overload + def create_distribution( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDistributionInputDict], ) -> CreateDistributionOutput: """ Creates a CloudFront distribution. Args: - input: - An instance of `CreateDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -690,17 +744,39 @@ def create_distribution( Returns: An instance of `CreateDistributionOutput`. """ - return self._invoke(input, _models.CREATE_DISTRIBUTION, [], plugins) + def create_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDistributionOutput: + return self._invoke( + self._select_input(_models.CREATE_DISTRIBUTION, args, kwargs), + _models.CREATE_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def create_distribution_tenant( + self, + request: _models.CreateDistributionTenantInput + | _models.CreateDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDistributionTenantOutput: ... + + @_overload def create_distribution_tenant( - self, input: CreateDistributionTenantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDistributionTenantInputDict], ) -> CreateDistributionTenantOutput: """ Creates a distribution tenant. Args: - input: - An instance of `CreateDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -710,12 +786,34 @@ def create_distribution_tenant( Returns: An instance of `CreateDistributionTenantOutput`. """ - return self._invoke(input, _models.CREATE_DISTRIBUTION_TENANT, [], plugins) + def create_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDistributionTenantOutput: + return self._invoke( + self._select_input(_models.CREATE_DISTRIBUTION_TENANT, args, kwargs), + _models.CREATE_DISTRIBUTION_TENANT, + [], + plugins, + ) + + @_overload + def create_distribution_with_tags( + self, + request: _models.CreateDistributionWithTagsInput + | _models.CreateDistributionWithTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDistributionWithTagsOutput: ... + + @_overload def create_distribution_with_tags( self, - input: CreateDistributionWithTagsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDistributionWithTagsInputDict], ) -> CreateDistributionWithTagsOutput: """ Create a new distribution with tags. This API operation requires the @@ -726,8 +824,6 @@ def create_distribution_with_tags( - [TagResource](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_TagResource.html) Args: - input: - An instance of `CreateDistributionWithTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -737,19 +833,39 @@ def create_distribution_with_tags( Returns: An instance of `CreateDistributionWithTagsOutput`. """ - return self._invoke(input, _models.CREATE_DISTRIBUTION_WITH_TAGS, [], plugins) + def create_distribution_with_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDistributionWithTagsOutput: + return self._invoke( + self._select_input(_models.CREATE_DISTRIBUTION_WITH_TAGS, args, kwargs), + _models.CREATE_DISTRIBUTION_WITH_TAGS, + [], + plugins, + ) + + @_overload + def create_field_level_encryption_config( + self, + request: _models.CreateFieldLevelEncryptionConfigInput + | _models.CreateFieldLevelEncryptionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFieldLevelEncryptionConfigOutput: ... + + @_overload def create_field_level_encryption_config( self, - input: CreateFieldLevelEncryptionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFieldLevelEncryptionConfigInputDict], ) -> CreateFieldLevelEncryptionConfigOutput: """ Create a new field-level encryption configuration. Args: - input: - An instance of `CreateFieldLevelEncryptionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -759,21 +875,41 @@ def create_field_level_encryption_config( Returns: An instance of `CreateFieldLevelEncryptionConfigOutput`. """ + + def create_field_level_encryption_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFieldLevelEncryptionConfigOutput: return self._invoke( - input, _models.CREATE_FIELD_LEVEL_ENCRYPTION_CONFIG, [], plugins + self._select_input( + _models.CREATE_FIELD_LEVEL_ENCRYPTION_CONFIG, args, kwargs + ), + _models.CREATE_FIELD_LEVEL_ENCRYPTION_CONFIG, + [], + plugins, ) + @_overload + def create_field_level_encryption_profile( + self, + request: _models.CreateFieldLevelEncryptionProfileInput + | _models.CreateFieldLevelEncryptionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFieldLevelEncryptionProfileOutput: ... + + @_overload def create_field_level_encryption_profile( self, - input: CreateFieldLevelEncryptionProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFieldLevelEncryptionProfileInputDict], ) -> CreateFieldLevelEncryptionProfileOutput: """ Create a field-level encryption profile. Args: - input: - An instance of `CreateFieldLevelEncryptionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -783,12 +919,35 @@ def create_field_level_encryption_profile( Returns: An instance of `CreateFieldLevelEncryptionProfileOutput`. """ + + def create_field_level_encryption_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFieldLevelEncryptionProfileOutput: return self._invoke( - input, _models.CREATE_FIELD_LEVEL_ENCRYPTION_PROFILE, [], plugins + self._select_input( + _models.CREATE_FIELD_LEVEL_ENCRYPTION_PROFILE, args, kwargs + ), + _models.CREATE_FIELD_LEVEL_ENCRYPTION_PROFILE, + [], + plugins, ) + @_overload + def create_function( + self, + request: _models.CreateFunctionInput | _models.CreateFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFunctionOutput: ... + + @_overload def create_function( - self, input: CreateFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFunctionInputDict], ) -> CreateFunctionOutput: """ Creates a CloudFront function. @@ -807,8 +966,6 @@ def create_function( distribution's cache behavior, using the function's ARN. Args: - input: - An instance of `CreateFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -818,10 +975,33 @@ def create_function( Returns: An instance of `CreateFunctionOutput`. """ - return self._invoke(input, _models.CREATE_FUNCTION, [], plugins) + def create_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFunctionOutput: + return self._invoke( + self._select_input(_models.CREATE_FUNCTION, args, kwargs), + _models.CREATE_FUNCTION, + [], + plugins, + ) + + @_overload def create_invalidation( - self, input: CreateInvalidationInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateInvalidationInput | _models.CreateInvalidationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInvalidationOutput: ... + + @_overload + def create_invalidation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInvalidationInputDict], ) -> CreateInvalidationOutput: """ Create a new invalidation. For more information, see [Invalidating @@ -829,8 +1009,6 @@ def create_invalidation( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateInvalidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -840,12 +1018,34 @@ def create_invalidation( Returns: An instance of `CreateInvalidationOutput`. """ - return self._invoke(input, _models.CREATE_INVALIDATION, [], plugins) + def create_invalidation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInvalidationOutput: + return self._invoke( + self._select_input(_models.CREATE_INVALIDATION, args, kwargs), + _models.CREATE_INVALIDATION, + [], + plugins, + ) + + @_overload + def create_invalidation_for_distribution_tenant( + self, + request: _models.CreateInvalidationForDistributionTenantInput + | _models.CreateInvalidationForDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInvalidationForDistributionTenantOutput: ... + + @_overload def create_invalidation_for_distribution_tenant( self, - input: CreateInvalidationForDistributionTenantInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInvalidationForDistributionTenantInputDict], ) -> CreateInvalidationForDistributionTenantOutput: """ Creates an invalidation for a distribution tenant. For more information, @@ -854,8 +1054,6 @@ def create_invalidation_for_distribution_tenant( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateInvalidationForDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -865,12 +1063,35 @@ def create_invalidation_for_distribution_tenant( Returns: An instance of `CreateInvalidationForDistributionTenantOutput`. """ + + def create_invalidation_for_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInvalidationForDistributionTenantOutput: return self._invoke( - input, _models.CREATE_INVALIDATION_FOR_DISTRIBUTION_TENANT, [], plugins + self._select_input( + _models.CREATE_INVALIDATION_FOR_DISTRIBUTION_TENANT, args, kwargs + ), + _models.CREATE_INVALIDATION_FOR_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload + def create_key_group( + self, + request: _models.CreateKeyGroupInput | _models.CreateKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKeyGroupOutput: ... + + @_overload def create_key_group( - self, input: CreateKeyGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKeyGroupInputDict], ) -> CreateKeyGroupOutput: """ Creates a key group that you can use with [CloudFront signed URLs and @@ -890,8 +1111,6 @@ def create_key_group( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -901,10 +1120,34 @@ def create_key_group( Returns: An instance of `CreateKeyGroupOutput`. """ - return self._invoke(input, _models.CREATE_KEY_GROUP, [], plugins) + def create_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKeyGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_KEY_GROUP, args, kwargs), + _models.CREATE_KEY_GROUP, + [], + plugins, + ) + + @_overload + def create_key_value_store( + self, + request: _models.CreateKeyValueStoreInput + | _models.CreateKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKeyValueStoreOutput: ... + + @_overload def create_key_value_store( - self, input: CreateKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKeyValueStoreInputDict], ) -> CreateKeyValueStoreOutput: """ Specifies the key value store resource to add to your account. In your @@ -913,8 +1156,6 @@ def create_key_value_store( valid `ImportSource` that you own. Args: - input: - An instance of `CreateKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -924,12 +1165,34 @@ def create_key_value_store( Returns: An instance of `CreateKeyValueStoreOutput`. """ - return self._invoke(input, _models.CREATE_KEY_VALUE_STORE, [], plugins) + def create_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKeyValueStoreOutput: + return self._invoke( + self._select_input(_models.CREATE_KEY_VALUE_STORE, args, kwargs), + _models.CREATE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload def create_monitoring_subscription( self, - input: CreateMonitoringSubscriptionInput, + request: _models.CreateMonitoringSubscriptionInput + | _models.CreateMonitoringSubscriptionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateMonitoringSubscriptionOutput: ... + + @_overload + def create_monitoring_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMonitoringSubscriptionInputDict], ) -> CreateMonitoringSubscriptionOutput: """ Enables or disables additional Amazon CloudWatch metrics for the @@ -941,8 +1204,6 @@ def create_monitoring_subscription( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateMonitoringSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -952,10 +1213,34 @@ def create_monitoring_subscription( Returns: An instance of `CreateMonitoringSubscriptionOutput`. """ - return self._invoke(input, _models.CREATE_MONITORING_SUBSCRIPTION, [], plugins) + def create_monitoring_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMonitoringSubscriptionOutput: + return self._invoke( + self._select_input(_models.CREATE_MONITORING_SUBSCRIPTION, args, kwargs), + _models.CREATE_MONITORING_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def create_origin_access_control( + self, + request: _models.CreateOriginAccessControlInput + | _models.CreateOriginAccessControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOriginAccessControlOutput: ... + + @_overload def create_origin_access_control( - self, input: CreateOriginAccessControlInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOriginAccessControlInputDict], ) -> CreateOriginAccessControlOutput: """ Creates a new origin access control in CloudFront. After you create an @@ -972,8 +1257,6 @@ def create_origin_access_control( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateOriginAccessControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -983,10 +1266,34 @@ def create_origin_access_control( Returns: An instance of `CreateOriginAccessControlOutput`. """ - return self._invoke(input, _models.CREATE_ORIGIN_ACCESS_CONTROL, [], plugins) + def create_origin_access_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOriginAccessControlOutput: + return self._invoke( + self._select_input(_models.CREATE_ORIGIN_ACCESS_CONTROL, args, kwargs), + _models.CREATE_ORIGIN_ACCESS_CONTROL, + [], + plugins, + ) + + @_overload + def create_origin_request_policy( + self, + request: _models.CreateOriginRequestPolicyInput + | _models.CreateOriginRequestPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOriginRequestPolicyOutput: ... + + @_overload def create_origin_request_policy( - self, input: CreateOriginRequestPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOriginRequestPolicyInputDict], ) -> CreateOriginRequestPolicyOutput: """ Creates an origin request policy. @@ -1018,8 +1325,6 @@ def create_origin_request_policy( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateOriginRequestPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1029,10 +1334,33 @@ def create_origin_request_policy( Returns: An instance of `CreateOriginRequestPolicyOutput`. """ - return self._invoke(input, _models.CREATE_ORIGIN_REQUEST_POLICY, [], plugins) + def create_origin_request_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOriginRequestPolicyOutput: + return self._invoke( + self._select_input(_models.CREATE_ORIGIN_REQUEST_POLICY, args, kwargs), + _models.CREATE_ORIGIN_REQUEST_POLICY, + [], + plugins, + ) + + @_overload + def create_public_key( + self, + request: _models.CreatePublicKeyInput | _models.CreatePublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePublicKeyOutput: ... + + @_overload def create_public_key( - self, input: CreatePublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePublicKeyInputDict], ) -> CreatePublicKeyOutput: """ Uploads a public key to CloudFront that you can use with [signed URLs @@ -1042,8 +1370,6 @@ def create_public_key( encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html). Args: - input: - An instance of `CreatePublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1053,10 +1379,34 @@ def create_public_key( Returns: An instance of `CreatePublicKeyOutput`. """ - return self._invoke(input, _models.CREATE_PUBLIC_KEY, [], plugins) + def create_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePublicKeyOutput: + return self._invoke( + self._select_input(_models.CREATE_PUBLIC_KEY, args, kwargs), + _models.CREATE_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + def create_realtime_log_config( + self, + request: _models.CreateRealtimeLogConfigInput + | _models.CreateRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRealtimeLogConfigOutput: ... + + @_overload def create_realtime_log_config( - self, input: CreateRealtimeLogConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRealtimeLogConfigInputDict], ) -> CreateRealtimeLogConfigOutput: """ Creates a real-time log configuration. @@ -1070,8 +1420,6 @@ def create_realtime_log_config( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1081,12 +1429,34 @@ def create_realtime_log_config( Returns: An instance of `CreateRealtimeLogConfigOutput`. """ - return self._invoke(input, _models.CREATE_REALTIME_LOG_CONFIG, [], plugins) + def create_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRealtimeLogConfigOutput: + return self._invoke( + self._select_input(_models.CREATE_REALTIME_LOG_CONFIG, args, kwargs), + _models.CREATE_REALTIME_LOG_CONFIG, + [], + plugins, + ) + + @_overload + def create_response_headers_policy( + self, + request: _models.CreateResponseHeadersPolicyInput + | _models.CreateResponseHeadersPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateResponseHeadersPolicyOutput: ... + + @_overload def create_response_headers_policy( self, - input: CreateResponseHeadersPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateResponseHeadersPolicyInputDict], ) -> CreateResponseHeadersPolicyOutput: """ Creates a response headers policy. @@ -1107,8 +1477,6 @@ def create_response_headers_policy( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `CreateResponseHeadersPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1118,14 +1486,36 @@ def create_response_headers_policy( Returns: An instance of `CreateResponseHeadersPolicyOutput`. """ - return self._invoke(input, _models.CREATE_RESPONSE_HEADERS_POLICY, [], plugins) + def create_response_headers_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateResponseHeadersPolicyOutput: + return self._invoke( + self._select_input(_models.CREATE_RESPONSE_HEADERS_POLICY, args, kwargs), + _models.CREATE_RESPONSE_HEADERS_POLICY, + [], + plugins, + ) + + @_overload def create_streaming_distribution( self, - input: CreateStreamingDistributionInput, + request: _models.CreateStreamingDistributionInput + | _models.CreateStreamingDistributionInputDict, + /, + *, plugins: list[Plugin] | None = None, - ) -> CreateStreamingDistributionOutput: - """ + ) -> CreateStreamingDistributionOutput: ... + + @_overload + def create_streaming_distribution( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStreamingDistributionInputDict], + ) -> CreateStreamingDistributionOutput: + """ This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, [read the @@ -1133,8 +1523,6 @@ def create_streaming_distribution( Amazon CloudFront discussion forum. Args: - input: - An instance of `CreateStreamingDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1144,12 +1532,34 @@ def create_streaming_distribution( Returns: An instance of `CreateStreamingDistributionOutput`. """ - return self._invoke(input, _models.CREATE_STREAMING_DISTRIBUTION, [], plugins) + def create_streaming_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStreamingDistributionOutput: + return self._invoke( + self._select_input(_models.CREATE_STREAMING_DISTRIBUTION, args, kwargs), + _models.CREATE_STREAMING_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def create_streaming_distribution_with_tags( + self, + request: _models.CreateStreamingDistributionWithTagsInput + | _models.CreateStreamingDistributionWithTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStreamingDistributionWithTagsOutput: ... + + @_overload def create_streaming_distribution_with_tags( self, - input: CreateStreamingDistributionWithTagsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStreamingDistributionWithTagsInputDict], ) -> CreateStreamingDistributionWithTagsOutput: """ This API is deprecated. Amazon CloudFront is deprecating real-time @@ -1159,8 +1569,6 @@ def create_streaming_distribution_with_tags( Amazon CloudFront discussion forum. Args: - input: - An instance of `CreateStreamingDistributionWithTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1170,19 +1578,40 @@ def create_streaming_distribution_with_tags( Returns: An instance of `CreateStreamingDistributionWithTagsOutput`. """ + + def create_streaming_distribution_with_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStreamingDistributionWithTagsOutput: return self._invoke( - input, _models.CREATE_STREAMING_DISTRIBUTION_WITH_TAGS, [], plugins + self._select_input( + _models.CREATE_STREAMING_DISTRIBUTION_WITH_TAGS, args, kwargs + ), + _models.CREATE_STREAMING_DISTRIBUTION_WITH_TAGS, + [], + plugins, ) + @_overload + def create_trust_store( + self, + request: _models.CreateTrustStoreInput | _models.CreateTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrustStoreOutput: ... + + @_overload def create_trust_store( - self, input: CreateTrustStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrustStoreInputDict], ) -> CreateTrustStoreOutput: """ Creates a trust store. Args: - input: - An instance of `CreateTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1192,17 +1621,38 @@ def create_trust_store( Returns: An instance of `CreateTrustStoreOutput`. """ - return self._invoke(input, _models.CREATE_TRUST_STORE, [], plugins) + def create_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrustStoreOutput: + return self._invoke( + self._select_input(_models.CREATE_TRUST_STORE, args, kwargs), + _models.CREATE_TRUST_STORE, + [], + plugins, + ) + + @_overload + def create_vpc_origin( + self, + request: _models.CreateVpcOriginInput | _models.CreateVpcOriginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcOriginOutput: ... + + @_overload def create_vpc_origin( - self, input: CreateVpcOriginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcOriginInputDict], ) -> CreateVpcOriginOutput: """ Create an Amazon CloudFront VPC origin. Args: - input: - An instance of `CreateVpcOriginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1212,17 +1662,39 @@ def create_vpc_origin( Returns: An instance of `CreateVpcOriginOutput`. """ - return self._invoke(input, _models.CREATE_VPC_ORIGIN, [], plugins) + def create_vpc_origin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcOriginOutput: + return self._invoke( + self._select_input(_models.CREATE_VPC_ORIGIN, args, kwargs), + _models.CREATE_VPC_ORIGIN, + [], + plugins, + ) + + @_overload def delete_anycast_ip_list( - self, input: DeleteAnycastIpListInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteAnycastIpListInput + | _models.DeleteAnycastIpListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAnycastIpListOutput: ... + + @_overload + def delete_anycast_ip_list( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAnycastIpListInputDict], ) -> DeleteAnycastIpListOutput: """ Deletes an Anycast static IP list. Args: - input: - An instance of `DeleteAnycastIpListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1232,10 +1704,33 @@ def delete_anycast_ip_list( Returns: An instance of `DeleteAnycastIpListOutput`. """ - return self._invoke(input, _models.DELETE_ANYCAST_IP_LIST, [], plugins) + def delete_anycast_ip_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAnycastIpListOutput: + return self._invoke( + self._select_input(_models.DELETE_ANYCAST_IP_LIST, args, kwargs), + _models.DELETE_ANYCAST_IP_LIST, + [], + plugins, + ) + + @_overload + def delete_cache_policy( + self, + request: _models.DeleteCachePolicyInput | _models.DeleteCachePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCachePolicyOutput: ... + + @_overload def delete_cache_policy( - self, input: DeleteCachePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCachePolicyInputDict], ) -> DeleteCachePolicyOutput: """ Deletes a cache policy. @@ -1249,8 +1744,6 @@ def delete_cache_policy( `GetCachePolicy`. Args: - input: - An instance of `DeleteCachePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1260,19 +1753,39 @@ def delete_cache_policy( Returns: An instance of `DeleteCachePolicyOutput`. """ - return self._invoke(input, _models.DELETE_CACHE_POLICY, [], plugins) + def delete_cache_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCachePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_CACHE_POLICY, args, kwargs), + _models.DELETE_CACHE_POLICY, + [], + plugins, + ) + + @_overload + def delete_cloud_front_origin_access_identity( + self, + request: _models.DeleteCloudFrontOriginAccessIdentityInput + | _models.DeleteCloudFrontOriginAccessIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCloudFrontOriginAccessIdentityOutput: ... + + @_overload def delete_cloud_front_origin_access_identity( self, - input: DeleteCloudFrontOriginAccessIdentityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCloudFrontOriginAccessIdentityInputDict], ) -> DeleteCloudFrontOriginAccessIdentityOutput: """ Delete an origin access identity. Args: - input: - An instance of `DeleteCloudFrontOriginAccessIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1282,19 +1795,41 @@ def delete_cloud_front_origin_access_identity( Returns: An instance of `DeleteCloudFrontOriginAccessIdentityOutput`. """ + + def delete_cloud_front_origin_access_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCloudFrontOriginAccessIdentityOutput: return self._invoke( - input, _models.DELETE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, [], plugins + self._select_input( + _models.DELETE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, args, kwargs + ), + _models.DELETE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, + [], + plugins, ) + @_overload + def delete_connection_function( + self, + request: _models.DeleteConnectionFunctionInput + | _models.DeleteConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConnectionFunctionOutput: ... + + @_overload def delete_connection_function( - self, input: DeleteConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConnectionFunctionInputDict], ) -> DeleteConnectionFunctionOutput: """ Deletes a connection function. Args: - input: - An instance of `DeleteConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1304,17 +1839,39 @@ def delete_connection_function( Returns: An instance of `DeleteConnectionFunctionOutput`. """ - return self._invoke(input, _models.DELETE_CONNECTION_FUNCTION, [], plugins) + def delete_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConnectionFunctionOutput: + return self._invoke( + self._select_input(_models.DELETE_CONNECTION_FUNCTION, args, kwargs), + _models.DELETE_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload def delete_connection_group( - self, input: DeleteConnectionGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteConnectionGroupInput + | _models.DeleteConnectionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConnectionGroupOutput: ... + + @_overload + def delete_connection_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConnectionGroupInputDict], ) -> DeleteConnectionGroupOutput: """ Deletes a connection group. Args: - input: - An instance of `DeleteConnectionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1324,12 +1881,34 @@ def delete_connection_group( Returns: An instance of `DeleteConnectionGroupOutput`. """ - return self._invoke(input, _models.DELETE_CONNECTION_GROUP, [], plugins) + def delete_connection_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConnectionGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_CONNECTION_GROUP, args, kwargs), + _models.DELETE_CONNECTION_GROUP, + [], + plugins, + ) + + @_overload + def delete_continuous_deployment_policy( + self, + request: _models.DeleteContinuousDeploymentPolicyInput + | _models.DeleteContinuousDeploymentPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteContinuousDeploymentPolicyOutput: ... + + @_overload def delete_continuous_deployment_policy( self, - input: DeleteContinuousDeploymentPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteContinuousDeploymentPolicyInputDict], ) -> DeleteContinuousDeploymentPolicyOutput: """ Deletes a continuous deployment policy. @@ -1339,8 +1918,6 @@ def delete_continuous_deployment_policy( continuous deployment policy, then you can delete the policy. Args: - input: - An instance of `DeleteContinuousDeploymentPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1350,12 +1927,35 @@ def delete_continuous_deployment_policy( Returns: An instance of `DeleteContinuousDeploymentPolicyOutput`. """ + + def delete_continuous_deployment_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteContinuousDeploymentPolicyOutput: return self._invoke( - input, _models.DELETE_CONTINUOUS_DEPLOYMENT_POLICY, [], plugins + self._select_input( + _models.DELETE_CONTINUOUS_DEPLOYMENT_POLICY, args, kwargs + ), + _models.DELETE_CONTINUOUS_DEPLOYMENT_POLICY, + [], + plugins, ) + @_overload + def delete_distribution( + self, + request: _models.DeleteDistributionInput | _models.DeleteDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDistributionOutput: ... + + @_overload def delete_distribution( - self, input: DeleteDistributionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDistributionInputDict], ) -> DeleteDistributionOutput: """ Delete a distribution. @@ -1366,8 +1966,6 @@ def delete_distribution( distribution cannot be recovered. Args: - input: - An instance of `DeleteDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1377,10 +1975,34 @@ def delete_distribution( Returns: An instance of `DeleteDistributionOutput`. """ - return self._invoke(input, _models.DELETE_DISTRIBUTION, [], plugins) + def delete_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDistributionOutput: + return self._invoke( + self._select_input(_models.DELETE_DISTRIBUTION, args, kwargs), + _models.DELETE_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def delete_distribution_tenant( + self, + request: _models.DeleteDistributionTenantInput + | _models.DeleteDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDistributionTenantOutput: ... + + @_overload def delete_distribution_tenant( - self, input: DeleteDistributionTenantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDistributionTenantInputDict], ) -> DeleteDistributionTenantOutput: """ Deletes a distribution tenant. If you use this API operation to delete a @@ -1390,8 +2012,6 @@ def delete_distribution_tenant( tenant by using the `UpdateDistributionTenant` API operation. Args: - input: - An instance of `DeleteDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1401,19 +2021,39 @@ def delete_distribution_tenant( Returns: An instance of `DeleteDistributionTenantOutput`. """ - return self._invoke(input, _models.DELETE_DISTRIBUTION_TENANT, [], plugins) + def delete_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDistributionTenantOutput: + return self._invoke( + self._select_input(_models.DELETE_DISTRIBUTION_TENANT, args, kwargs), + _models.DELETE_DISTRIBUTION_TENANT, + [], + plugins, + ) + + @_overload def delete_field_level_encryption_config( self, - input: DeleteFieldLevelEncryptionConfigInput, + request: _models.DeleteFieldLevelEncryptionConfigInput + | _models.DeleteFieldLevelEncryptionConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteFieldLevelEncryptionConfigOutput: ... + + @_overload + def delete_field_level_encryption_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFieldLevelEncryptionConfigInputDict], ) -> DeleteFieldLevelEncryptionConfigOutput: """ Remove a field-level encryption configuration. Args: - input: - An instance of `DeleteFieldLevelEncryptionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1423,21 +2063,41 @@ def delete_field_level_encryption_config( Returns: An instance of `DeleteFieldLevelEncryptionConfigOutput`. """ + + def delete_field_level_encryption_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFieldLevelEncryptionConfigOutput: return self._invoke( - input, _models.DELETE_FIELD_LEVEL_ENCRYPTION_CONFIG, [], plugins + self._select_input( + _models.DELETE_FIELD_LEVEL_ENCRYPTION_CONFIG, args, kwargs + ), + _models.DELETE_FIELD_LEVEL_ENCRYPTION_CONFIG, + [], + plugins, ) + @_overload + def delete_field_level_encryption_profile( + self, + request: _models.DeleteFieldLevelEncryptionProfileInput + | _models.DeleteFieldLevelEncryptionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFieldLevelEncryptionProfileOutput: ... + + @_overload def delete_field_level_encryption_profile( self, - input: DeleteFieldLevelEncryptionProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFieldLevelEncryptionProfileInputDict], ) -> DeleteFieldLevelEncryptionProfileOutput: """ Remove a field-level encryption profile. Args: - input: - An instance of `DeleteFieldLevelEncryptionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1447,12 +2107,35 @@ def delete_field_level_encryption_profile( Returns: An instance of `DeleteFieldLevelEncryptionProfileOutput`. """ + + def delete_field_level_encryption_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFieldLevelEncryptionProfileOutput: return self._invoke( - input, _models.DELETE_FIELD_LEVEL_ENCRYPTION_PROFILE, [], plugins + self._select_input( + _models.DELETE_FIELD_LEVEL_ENCRYPTION_PROFILE, args, kwargs + ), + _models.DELETE_FIELD_LEVEL_ENCRYPTION_PROFILE, + [], + plugins, ) + @_overload + def delete_function( + self, + request: _models.DeleteFunctionInput | _models.DeleteFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionOutput: ... + + @_overload def delete_function( - self, input: DeleteFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionInputDict], ) -> DeleteFunctionOutput: """ Deletes a CloudFront function. @@ -1466,8 +2149,6 @@ def delete_function( `DescribeFunction`. Args: - input: - An instance of `DeleteFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1477,10 +2158,33 @@ def delete_function( Returns: An instance of `DeleteFunctionOutput`. """ - return self._invoke(input, _models.DELETE_FUNCTION, [], plugins) + def delete_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionOutput: + return self._invoke( + self._select_input(_models.DELETE_FUNCTION, args, kwargs), + _models.DELETE_FUNCTION, + [], + plugins, + ) + + @_overload + def delete_key_group( + self, + request: _models.DeleteKeyGroupInput | _models.DeleteKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKeyGroupOutput: ... + + @_overload def delete_key_group( - self, input: DeleteKeyGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKeyGroupInputDict], ) -> DeleteKeyGroupOutput: """ Deletes a key group. @@ -1494,8 +2198,6 @@ def delete_key_group( `GetKeyGroup` or `GetKeyGroupConfig`. Args: - input: - An instance of `DeleteKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1505,17 +2207,39 @@ def delete_key_group( Returns: An instance of `DeleteKeyGroupOutput`. """ - return self._invoke(input, _models.DELETE_KEY_GROUP, [], plugins) + def delete_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKeyGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_KEY_GROUP, args, kwargs), + _models.DELETE_KEY_GROUP, + [], + plugins, + ) + + @_overload + def delete_key_value_store( + self, + request: _models.DeleteKeyValueStoreInput + | _models.DeleteKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKeyValueStoreOutput: ... + + @_overload def delete_key_value_store( - self, input: DeleteKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKeyValueStoreInputDict], ) -> DeleteKeyValueStoreOutput: """ Specifies the key value store to delete. Args: - input: - An instance of `DeleteKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1525,20 +2249,40 @@ def delete_key_value_store( Returns: An instance of `DeleteKeyValueStoreOutput`. """ - return self._invoke(input, _models.DELETE_KEY_VALUE_STORE, [], plugins) + def delete_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKeyValueStoreOutput: + return self._invoke( + self._select_input(_models.DELETE_KEY_VALUE_STORE, args, kwargs), + _models.DELETE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload + def delete_monitoring_subscription( + self, + request: _models.DeleteMonitoringSubscriptionInput + | _models.DeleteMonitoringSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMonitoringSubscriptionOutput: ... + + @_overload def delete_monitoring_subscription( self, - input: DeleteMonitoringSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMonitoringSubscriptionInputDict], ) -> DeleteMonitoringSubscriptionOutput: """ Disables additional CloudWatch metrics for the specified CloudFront distribution. Args: - input: - An instance of `DeleteMonitoringSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1548,10 +2292,34 @@ def delete_monitoring_subscription( Returns: An instance of `DeleteMonitoringSubscriptionOutput`. """ - return self._invoke(input, _models.DELETE_MONITORING_SUBSCRIPTION, [], plugins) + def delete_monitoring_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMonitoringSubscriptionOutput: + return self._invoke( + self._select_input(_models.DELETE_MONITORING_SUBSCRIPTION, args, kwargs), + _models.DELETE_MONITORING_SUBSCRIPTION, + [], + plugins, + ) + + @_overload def delete_origin_access_control( - self, input: DeleteOriginAccessControlInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteOriginAccessControlInput + | _models.DeleteOriginAccessControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOriginAccessControlOutput: ... + + @_overload + def delete_origin_access_control( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOriginAccessControlInputDict], ) -> DeleteOriginAccessControlOutput: """ Deletes a CloudFront origin access control. @@ -1561,8 +2329,6 @@ def delete_origin_access_control( origins, then delete the origin access control. Args: - input: - An instance of `DeleteOriginAccessControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1572,10 +2338,34 @@ def delete_origin_access_control( Returns: An instance of `DeleteOriginAccessControlOutput`. """ - return self._invoke(input, _models.DELETE_ORIGIN_ACCESS_CONTROL, [], plugins) + def delete_origin_access_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOriginAccessControlOutput: + return self._invoke( + self._select_input(_models.DELETE_ORIGIN_ACCESS_CONTROL, args, kwargs), + _models.DELETE_ORIGIN_ACCESS_CONTROL, + [], + plugins, + ) + + @_overload + def delete_origin_request_policy( + self, + request: _models.DeleteOriginRequestPolicyInput + | _models.DeleteOriginRequestPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOriginRequestPolicyOutput: ... + + @_overload def delete_origin_request_policy( - self, input: DeleteOriginRequestPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOriginRequestPolicyInputDict], ) -> DeleteOriginRequestPolicyOutput: """ Deletes an origin request policy. @@ -1590,8 +2380,6 @@ def delete_origin_request_policy( `ListOriginRequestPolicies` or `GetOriginRequestPolicy`. Args: - input: - An instance of `DeleteOriginRequestPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1601,17 +2389,38 @@ def delete_origin_request_policy( Returns: An instance of `DeleteOriginRequestPolicyOutput`. """ - return self._invoke(input, _models.DELETE_ORIGIN_REQUEST_POLICY, [], plugins) + def delete_origin_request_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOriginRequestPolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_ORIGIN_REQUEST_POLICY, args, kwargs), + _models.DELETE_ORIGIN_REQUEST_POLICY, + [], + plugins, + ) + + @_overload + def delete_public_key( + self, + request: _models.DeletePublicKeyInput | _models.DeletePublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePublicKeyOutput: ... + + @_overload def delete_public_key( - self, input: DeletePublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePublicKeyInputDict], ) -> DeletePublicKeyOutput: """ Remove a public key you previously added to CloudFront. Args: - input: - An instance of `DeletePublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1621,12 +2430,34 @@ def delete_public_key( Returns: An instance of `DeletePublicKeyOutput`. """ - return self._invoke(input, _models.DELETE_PUBLIC_KEY, [], plugins) + def delete_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePublicKeyOutput: + return self._invoke( + self._select_input(_models.DELETE_PUBLIC_KEY, args, kwargs), + _models.DELETE_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + def delete_realtime_log_config( + self, + request: _models.DeleteRealtimeLogConfigInput + | _models.DeleteRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRealtimeLogConfigOutput: ... + + @_overload def delete_realtime_log_config( self, - input: DeleteRealtimeLogConfigInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRealtimeLogConfigInputDict], ) -> DeleteRealtimeLogConfigOutput: """ Deletes a real-time log configuration. @@ -1642,8 +2473,6 @@ def delete_realtime_log_config( identify the real-time log configuration to delete. Args: - input: - An instance of `DeleteRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1653,17 +2482,39 @@ def delete_realtime_log_config( Returns: An instance of `DeleteRealtimeLogConfigOutput`. """ - return self._invoke(input, _models.DELETE_REALTIME_LOG_CONFIG, [], plugins) + def delete_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRealtimeLogConfigOutput: + return self._invoke( + self._select_input(_models.DELETE_REALTIME_LOG_CONFIG, args, kwargs), + _models.DELETE_REALTIME_LOG_CONFIG, + [], + plugins, + ) + + @_overload + def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource policy attached to the CloudFront resource. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1673,12 +2524,34 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def delete_response_headers_policy( + self, + request: _models.DeleteResponseHeadersPolicyInput + | _models.DeleteResponseHeadersPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResponseHeadersPolicyOutput: ... + + @_overload def delete_response_headers_policy( self, - input: DeleteResponseHeadersPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResponseHeadersPolicyInputDict], ) -> DeleteResponseHeadersPolicyOutput: """ Deletes a response headers policy. @@ -1693,8 +2566,6 @@ def delete_response_headers_policy( `ListResponseHeadersPolicies` or `GetResponseHeadersPolicy`. Args: - input: - An instance of `DeleteResponseHeadersPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1704,12 +2575,34 @@ def delete_response_headers_policy( Returns: An instance of `DeleteResponseHeadersPolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESPONSE_HEADERS_POLICY, [], plugins) + def delete_response_headers_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResponseHeadersPolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESPONSE_HEADERS_POLICY, args, kwargs), + _models.DELETE_RESPONSE_HEADERS_POLICY, + [], + plugins, + ) + + @_overload + def delete_streaming_distribution( + self, + request: _models.DeleteStreamingDistributionInput + | _models.DeleteStreamingDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStreamingDistributionOutput: ... + + @_overload def delete_streaming_distribution( self, - input: DeleteStreamingDistributionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStreamingDistributionInputDict], ) -> DeleteStreamingDistributionOutput: """ Delete a streaming distribution. To delete an RTMP distribution using @@ -1754,8 +2647,6 @@ def delete_streaming_distribution( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `DeleteStreamingDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1765,17 +2656,38 @@ def delete_streaming_distribution( Returns: An instance of `DeleteStreamingDistributionOutput`. """ - return self._invoke(input, _models.DELETE_STREAMING_DISTRIBUTION, [], plugins) + def delete_streaming_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStreamingDistributionOutput: + return self._invoke( + self._select_input(_models.DELETE_STREAMING_DISTRIBUTION, args, kwargs), + _models.DELETE_STREAMING_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def delete_trust_store( + self, + request: _models.DeleteTrustStoreInput | _models.DeleteTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrustStoreOutput: ... + + @_overload def delete_trust_store( - self, input: DeleteTrustStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrustStoreInputDict], ) -> DeleteTrustStoreOutput: """ Deletes a trust store. Args: - input: - An instance of `DeleteTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1785,17 +2697,38 @@ def delete_trust_store( Returns: An instance of `DeleteTrustStoreOutput`. """ - return self._invoke(input, _models.DELETE_TRUST_STORE, [], plugins) - def delete_vpc_origin( - self, input: DeleteVpcOriginInput, plugins: list[Plugin] | None = None - ) -> DeleteVpcOriginOutput: - """ + def delete_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrustStoreOutput: + return self._invoke( + self._select_input(_models.DELETE_TRUST_STORE, args, kwargs), + _models.DELETE_TRUST_STORE, + [], + plugins, + ) + + @_overload + def delete_vpc_origin( + self, + request: _models.DeleteVpcOriginInput | _models.DeleteVpcOriginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcOriginOutput: ... + + @_overload + def delete_vpc_origin( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcOriginInputDict], + ) -> DeleteVpcOriginOutput: + """ Delete an Amazon CloudFront VPC origin. Args: - input: - An instance of `DeleteVpcOriginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1805,19 +2738,39 @@ def delete_vpc_origin( Returns: An instance of `DeleteVpcOriginOutput`. """ - return self._invoke(input, _models.DELETE_VPC_ORIGIN, [], plugins) + def delete_vpc_origin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcOriginOutput: + return self._invoke( + self._select_input(_models.DELETE_VPC_ORIGIN, args, kwargs), + _models.DELETE_VPC_ORIGIN, + [], + plugins, + ) + + @_overload def describe_connection_function( self, - input: DescribeConnectionFunctionInput, + request: _models.DescribeConnectionFunctionInput + | _models.DescribeConnectionFunctionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeConnectionFunctionOutput: ... + + @_overload + def describe_connection_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeConnectionFunctionInputDict], ) -> DescribeConnectionFunctionOutput: """ Describes a connection function. Args: - input: - An instance of `DescribeConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1827,10 +2780,33 @@ def describe_connection_function( Returns: An instance of `DescribeConnectionFunctionOutput`. """ - return self._invoke(input, _models.DESCRIBE_CONNECTION_FUNCTION, [], plugins) + def describe_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeConnectionFunctionOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CONNECTION_FUNCTION, args, kwargs), + _models.DESCRIBE_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload def describe_function( - self, input: DescribeFunctionInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeFunctionInput | _models.DescribeFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFunctionOutput: ... + + @_overload + def describe_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFunctionInputDict], ) -> DescribeFunctionOutput: """ Gets configuration information and metadata about a CloudFront function, @@ -1842,8 +2818,6 @@ def describe_function( `ListFunctions`. Args: - input: - An instance of `DescribeFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1853,17 +2827,39 @@ def describe_function( Returns: An instance of `DescribeFunctionOutput`. """ - return self._invoke(input, _models.DESCRIBE_FUNCTION, [], plugins) + def describe_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFunctionOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FUNCTION, args, kwargs), + _models.DESCRIBE_FUNCTION, + [], + plugins, + ) + + @_overload def describe_key_value_store( - self, input: DescribeKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeKeyValueStoreInput + | _models.DescribeKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKeyValueStoreOutput: ... + + @_overload + def describe_key_value_store( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKeyValueStoreInputDict], ) -> DescribeKeyValueStoreOutput: """ Specifies the key value store and its configuration. Args: - input: - An instance of `DescribeKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1873,19 +2869,39 @@ def describe_key_value_store( Returns: An instance of `DescribeKeyValueStoreOutput`. """ - return self._invoke(input, _models.DESCRIBE_KEY_VALUE_STORE, [], plugins) + def describe_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKeyValueStoreOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_KEY_VALUE_STORE, args, kwargs), + _models.DESCRIBE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload + def disassociate_distribution_tenant_web_acl( + self, + request: _models.DisassociateDistributionTenantWebACLInput + | _models.DisassociateDistributionTenantWebACLInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateDistributionTenantWebACLOutput: ... + + @_overload def disassociate_distribution_tenant_web_acl( self, - input: DisassociateDistributionTenantWebACLInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateDistributionTenantWebACLInputDict], ) -> DisassociateDistributionTenantWebACLOutput: """ Disassociates a distribution tenant from the WAF web ACL. Args: - input: - An instance of `DisassociateDistributionTenantWebACLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1895,21 +2911,41 @@ def disassociate_distribution_tenant_web_acl( Returns: An instance of `DisassociateDistributionTenantWebACLOutput`. """ + + def disassociate_distribution_tenant_web_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateDistributionTenantWebACLOutput: return self._invoke( - input, _models.DISASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, [], plugins + self._select_input( + _models.DISASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, args, kwargs + ), + _models.DISASSOCIATE_DISTRIBUTION_TENANT_WEB_ACL, + [], + plugins, ) + @_overload def disassociate_distribution_web_acl( self, - input: DisassociateDistributionWebACLInput, + request: _models.DisassociateDistributionWebACLInput + | _models.DisassociateDistributionWebACLInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateDistributionWebACLOutput: ... + + @_overload + def disassociate_distribution_web_acl( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateDistributionWebACLInputDict], ) -> DisassociateDistributionWebACLOutput: """ Disassociates a distribution from the WAF web ACL. Args: - input: - An instance of `DisassociateDistributionWebACLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1919,19 +2955,38 @@ def disassociate_distribution_web_acl( Returns: An instance of `DisassociateDistributionWebACLOutput`. """ + + def disassociate_distribution_web_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateDistributionWebACLOutput: return self._invoke( - input, _models.DISASSOCIATE_DISTRIBUTION_WEB_ACL, [], plugins + self._select_input(_models.DISASSOCIATE_DISTRIBUTION_WEB_ACL, args, kwargs), + _models.DISASSOCIATE_DISTRIBUTION_WEB_ACL, + [], + plugins, ) + @_overload def get_anycast_ip_list( - self, input: GetAnycastIpListInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAnycastIpListInput | _models.GetAnycastIpListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAnycastIpListOutput: ... + + @_overload + def get_anycast_ip_list( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAnycastIpListInputDict], ) -> GetAnycastIpListOutput: """ Gets an Anycast static IP list. Args: - input: - An instance of `GetAnycastIpListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1941,10 +2996,33 @@ def get_anycast_ip_list( Returns: An instance of `GetAnycastIpListOutput`. """ - return self._invoke(input, _models.GET_ANYCAST_IP_LIST, [], plugins) + def get_anycast_ip_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAnycastIpListOutput: + return self._invoke( + self._select_input(_models.GET_ANYCAST_IP_LIST, args, kwargs), + _models.GET_ANYCAST_IP_LIST, + [], + plugins, + ) + + @_overload + def get_cache_policy( + self, + request: _models.GetCachePolicyInput | _models.GetCachePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCachePolicyOutput: ... + + @_overload def get_cache_policy( - self, input: GetCachePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCachePolicyInputDict], ) -> GetCachePolicyOutput: """ Gets a cache policy, including the following metadata: @@ -1960,8 +3038,6 @@ def get_cache_policy( behavior, you can get the identifier using `ListCachePolicies`. Args: - input: - An instance of `GetCachePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1971,10 +3047,34 @@ def get_cache_policy( Returns: An instance of `GetCachePolicyOutput`. """ - return self._invoke(input, _models.GET_CACHE_POLICY, [], plugins) + def get_cache_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCachePolicyOutput: + return self._invoke( + self._select_input(_models.GET_CACHE_POLICY, args, kwargs), + _models.GET_CACHE_POLICY, + [], + plugins, + ) + + @_overload + def get_cache_policy_config( + self, + request: _models.GetCachePolicyConfigInput + | _models.GetCachePolicyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCachePolicyConfigOutput: ... + + @_overload def get_cache_policy_config( - self, input: GetCachePolicyConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCachePolicyConfigInputDict], ) -> GetCachePolicyConfigOutput: """ Gets a cache policy configuration. @@ -1986,8 +3086,6 @@ def get_cache_policy_config( behavior, you can get the identifier using `ListCachePolicies`. Args: - input: - An instance of `GetCachePolicyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1997,19 +3095,39 @@ def get_cache_policy_config( Returns: An instance of `GetCachePolicyConfigOutput`. """ - return self._invoke(input, _models.GET_CACHE_POLICY_CONFIG, [], plugins) + def get_cache_policy_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCachePolicyConfigOutput: + return self._invoke( + self._select_input(_models.GET_CACHE_POLICY_CONFIG, args, kwargs), + _models.GET_CACHE_POLICY_CONFIG, + [], + plugins, + ) + + @_overload def get_cloud_front_origin_access_identity( self, - input: GetCloudFrontOriginAccessIdentityInput, + request: _models.GetCloudFrontOriginAccessIdentityInput + | _models.GetCloudFrontOriginAccessIdentityInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetCloudFrontOriginAccessIdentityOutput: ... + + @_overload + def get_cloud_front_origin_access_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCloudFrontOriginAccessIdentityInputDict], ) -> GetCloudFrontOriginAccessIdentityOutput: """ Get the information about an origin access identity. Args: - input: - An instance of `GetCloudFrontOriginAccessIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2019,21 +3137,41 @@ def get_cloud_front_origin_access_identity( Returns: An instance of `GetCloudFrontOriginAccessIdentityOutput`. """ + + def get_cloud_front_origin_access_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCloudFrontOriginAccessIdentityOutput: return self._invoke( - input, _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, [], plugins + self._select_input( + _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, args, kwargs + ), + _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, + [], + plugins, ) + @_overload + def get_cloud_front_origin_access_identity_config( + self, + request: _models.GetCloudFrontOriginAccessIdentityConfigInput + | _models.GetCloudFrontOriginAccessIdentityConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCloudFrontOriginAccessIdentityConfigOutput: ... + + @_overload def get_cloud_front_origin_access_identity_config( self, - input: GetCloudFrontOriginAccessIdentityConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCloudFrontOriginAccessIdentityConfigInputDict], ) -> GetCloudFrontOriginAccessIdentityConfigOutput: """ Get the configuration information about an origin access identity. Args: - input: - An instance of `GetCloudFrontOriginAccessIdentityConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2043,19 +3181,41 @@ def get_cloud_front_origin_access_identity_config( Returns: An instance of `GetCloudFrontOriginAccessIdentityConfigOutput`. """ + + def get_cloud_front_origin_access_identity_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCloudFrontOriginAccessIdentityConfigOutput: return self._invoke( - input, _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_CONFIG, [], plugins + self._select_input( + _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_CONFIG, args, kwargs + ), + _models.GET_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY_CONFIG, + [], + plugins, ) + @_overload def get_connection_function( - self, input: GetConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetConnectionFunctionInput + | _models.GetConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConnectionFunctionOutput: ... + + @_overload + def get_connection_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConnectionFunctionInputDict], ) -> GetConnectionFunctionOutput: """ Gets a connection function. Args: - input: - An instance of `GetConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2065,17 +3225,38 @@ def get_connection_function( Returns: An instance of `GetConnectionFunctionOutput`. """ - return self._invoke(input, _models.GET_CONNECTION_FUNCTION, [], plugins) + def get_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConnectionFunctionOutput: + return self._invoke( + self._select_input(_models.GET_CONNECTION_FUNCTION, args, kwargs), + _models.GET_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload def get_connection_group( - self, input: GetConnectionGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.GetConnectionGroupInput | _models.GetConnectionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConnectionGroupOutput: ... + + @_overload + def get_connection_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConnectionGroupInputDict], ) -> GetConnectionGroupOutput: """ Gets information about a connection group. Args: - input: - An instance of `GetConnectionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2085,20 +3266,40 @@ def get_connection_group( Returns: An instance of `GetConnectionGroupOutput`. """ - return self._invoke(input, _models.GET_CONNECTION_GROUP, [], plugins) + def get_connection_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConnectionGroupOutput: + return self._invoke( + self._select_input(_models.GET_CONNECTION_GROUP, args, kwargs), + _models.GET_CONNECTION_GROUP, + [], + plugins, + ) + + @_overload + def get_connection_group_by_routing_endpoint( + self, + request: _models.GetConnectionGroupByRoutingEndpointInput + | _models.GetConnectionGroupByRoutingEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConnectionGroupByRoutingEndpointOutput: ... + + @_overload def get_connection_group_by_routing_endpoint( self, - input: GetConnectionGroupByRoutingEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConnectionGroupByRoutingEndpointInputDict], ) -> GetConnectionGroupByRoutingEndpointOutput: """ Gets information about a connection group by using the endpoint that you specify. Args: - input: - An instance of `GetConnectionGroupByRoutingEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2108,22 +3309,42 @@ def get_connection_group_by_routing_endpoint( Returns: An instance of `GetConnectionGroupByRoutingEndpointOutput`. """ + + def get_connection_group_by_routing_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConnectionGroupByRoutingEndpointOutput: return self._invoke( - input, _models.GET_CONNECTION_GROUP_BY_ROUTING_ENDPOINT, [], plugins + self._select_input( + _models.GET_CONNECTION_GROUP_BY_ROUTING_ENDPOINT, args, kwargs + ), + _models.GET_CONNECTION_GROUP_BY_ROUTING_ENDPOINT, + [], + plugins, ) + @_overload + def get_continuous_deployment_policy( + self, + request: _models.GetContinuousDeploymentPolicyInput + | _models.GetContinuousDeploymentPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetContinuousDeploymentPolicyOutput: ... + + @_overload def get_continuous_deployment_policy( self, - input: GetContinuousDeploymentPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetContinuousDeploymentPolicyInputDict], ) -> GetContinuousDeploymentPolicyOutput: """ Gets a continuous deployment policy, including metadata (the policy's identifier and the date and time when the policy was last modified). Args: - input: - An instance of `GetContinuousDeploymentPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2133,21 +3354,39 @@ def get_continuous_deployment_policy( Returns: An instance of `GetContinuousDeploymentPolicyOutput`. """ + + def get_continuous_deployment_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetContinuousDeploymentPolicyOutput: return self._invoke( - input, _models.GET_CONTINUOUS_DEPLOYMENT_POLICY, [], plugins + self._select_input(_models.GET_CONTINUOUS_DEPLOYMENT_POLICY, args, kwargs), + _models.GET_CONTINUOUS_DEPLOYMENT_POLICY, + [], + plugins, ) + @_overload def get_continuous_deployment_policy_config( self, - input: GetContinuousDeploymentPolicyConfigInput, + request: _models.GetContinuousDeploymentPolicyConfigInput + | _models.GetContinuousDeploymentPolicyConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetContinuousDeploymentPolicyConfigOutput: ... + + @_overload + def get_continuous_deployment_policy_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetContinuousDeploymentPolicyConfigInputDict], ) -> GetContinuousDeploymentPolicyConfigOutput: """ Gets configuration information about a continuous deployment policy. Args: - input: - An instance of `GetContinuousDeploymentPolicyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2157,19 +3396,40 @@ def get_continuous_deployment_policy_config( Returns: An instance of `GetContinuousDeploymentPolicyConfigOutput`. """ + + def get_continuous_deployment_policy_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetContinuousDeploymentPolicyConfigOutput: return self._invoke( - input, _models.GET_CONTINUOUS_DEPLOYMENT_POLICY_CONFIG, [], plugins + self._select_input( + _models.GET_CONTINUOUS_DEPLOYMENT_POLICY_CONFIG, args, kwargs + ), + _models.GET_CONTINUOUS_DEPLOYMENT_POLICY_CONFIG, + [], + plugins, ) + @_overload def get_distribution( - self, input: GetDistributionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDistributionInput | _models.GetDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDistributionOutput: ... + + @_overload + def get_distribution( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDistributionInputDict], ) -> GetDistributionOutput: """ Get the information about a distribution. Args: - input: - An instance of `GetDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2179,17 +3439,39 @@ def get_distribution( Returns: An instance of `GetDistributionOutput`. """ - return self._invoke(input, _models.GET_DISTRIBUTION, [], plugins) + def get_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDistributionOutput: + return self._invoke( + self._select_input(_models.GET_DISTRIBUTION, args, kwargs), + _models.GET_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def get_distribution_config( + self, + request: _models.GetDistributionConfigInput + | _models.GetDistributionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDistributionConfigOutput: ... + + @_overload def get_distribution_config( - self, input: GetDistributionConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDistributionConfigInputDict], ) -> GetDistributionConfigOutput: """ Get the configuration information about a distribution. Args: - input: - An instance of `GetDistributionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2199,17 +3481,39 @@ def get_distribution_config( Returns: An instance of `GetDistributionConfigOutput`. """ - return self._invoke(input, _models.GET_DISTRIBUTION_CONFIG, [], plugins) + def get_distribution_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDistributionConfigOutput: + return self._invoke( + self._select_input(_models.GET_DISTRIBUTION_CONFIG, args, kwargs), + _models.GET_DISTRIBUTION_CONFIG, + [], + plugins, + ) + + @_overload def get_distribution_tenant( - self, input: GetDistributionTenantInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDistributionTenantInput + | _models.GetDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDistributionTenantOutput: ... + + @_overload + def get_distribution_tenant( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDistributionTenantInputDict], ) -> GetDistributionTenantOutput: """ Gets information about a distribution tenant. Args: - input: - An instance of `GetDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2219,19 +3523,39 @@ def get_distribution_tenant( Returns: An instance of `GetDistributionTenantOutput`. """ - return self._invoke(input, _models.GET_DISTRIBUTION_TENANT, [], plugins) + def get_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDistributionTenantOutput: + return self._invoke( + self._select_input(_models.GET_DISTRIBUTION_TENANT, args, kwargs), + _models.GET_DISTRIBUTION_TENANT, + [], + plugins, + ) + + @_overload + def get_distribution_tenant_by_domain( + self, + request: _models.GetDistributionTenantByDomainInput + | _models.GetDistributionTenantByDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDistributionTenantByDomainOutput: ... + + @_overload def get_distribution_tenant_by_domain( self, - input: GetDistributionTenantByDomainInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDistributionTenantByDomainInputDict], ) -> GetDistributionTenantByDomainOutput: """ Gets information about a distribution tenant by the associated domain. Args: - input: - An instance of `GetDistributionTenantByDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2241,19 +3565,39 @@ def get_distribution_tenant_by_domain( Returns: An instance of `GetDistributionTenantByDomainOutput`. """ + + def get_distribution_tenant_by_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDistributionTenantByDomainOutput: return self._invoke( - input, _models.GET_DISTRIBUTION_TENANT_BY_DOMAIN, [], plugins + self._select_input(_models.GET_DISTRIBUTION_TENANT_BY_DOMAIN, args, kwargs), + _models.GET_DISTRIBUTION_TENANT_BY_DOMAIN, + [], + plugins, ) + @_overload + def get_field_level_encryption( + self, + request: _models.GetFieldLevelEncryptionInput + | _models.GetFieldLevelEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFieldLevelEncryptionOutput: ... + + @_overload def get_field_level_encryption( - self, input: GetFieldLevelEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFieldLevelEncryptionInputDict], ) -> GetFieldLevelEncryptionOutput: """ Get the field-level encryption configuration information. Args: - input: - An instance of `GetFieldLevelEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2263,19 +3607,39 @@ def get_field_level_encryption( Returns: An instance of `GetFieldLevelEncryptionOutput`. """ - return self._invoke(input, _models.GET_FIELD_LEVEL_ENCRYPTION, [], plugins) + def get_field_level_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFieldLevelEncryptionOutput: + return self._invoke( + self._select_input(_models.GET_FIELD_LEVEL_ENCRYPTION, args, kwargs), + _models.GET_FIELD_LEVEL_ENCRYPTION, + [], + plugins, + ) + + @_overload def get_field_level_encryption_config( self, - input: GetFieldLevelEncryptionConfigInput, + request: _models.GetFieldLevelEncryptionConfigInput + | _models.GetFieldLevelEncryptionConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetFieldLevelEncryptionConfigOutput: ... + + @_overload + def get_field_level_encryption_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFieldLevelEncryptionConfigInputDict], ) -> GetFieldLevelEncryptionConfigOutput: """ Get the field-level encryption configuration information. Args: - input: - An instance of `GetFieldLevelEncryptionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2285,21 +3649,39 @@ def get_field_level_encryption_config( Returns: An instance of `GetFieldLevelEncryptionConfigOutput`. """ + + def get_field_level_encryption_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFieldLevelEncryptionConfigOutput: return self._invoke( - input, _models.GET_FIELD_LEVEL_ENCRYPTION_CONFIG, [], plugins + self._select_input(_models.GET_FIELD_LEVEL_ENCRYPTION_CONFIG, args, kwargs), + _models.GET_FIELD_LEVEL_ENCRYPTION_CONFIG, + [], + plugins, ) + @_overload def get_field_level_encryption_profile( self, - input: GetFieldLevelEncryptionProfileInput, + request: _models.GetFieldLevelEncryptionProfileInput + | _models.GetFieldLevelEncryptionProfileInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetFieldLevelEncryptionProfileOutput: ... + + @_overload + def get_field_level_encryption_profile( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFieldLevelEncryptionProfileInputDict], ) -> GetFieldLevelEncryptionProfileOutput: """ Get the field-level encryption profile information. Args: - input: - An instance of `GetFieldLevelEncryptionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2309,21 +3691,41 @@ def get_field_level_encryption_profile( Returns: An instance of `GetFieldLevelEncryptionProfileOutput`. """ + + def get_field_level_encryption_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFieldLevelEncryptionProfileOutput: return self._invoke( - input, _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE, [], plugins + self._select_input( + _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE, args, kwargs + ), + _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE, + [], + plugins, ) + @_overload + def get_field_level_encryption_profile_config( + self, + request: _models.GetFieldLevelEncryptionProfileConfigInput + | _models.GetFieldLevelEncryptionProfileConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFieldLevelEncryptionProfileConfigOutput: ... + + @_overload def get_field_level_encryption_profile_config( self, - input: GetFieldLevelEncryptionProfileConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFieldLevelEncryptionProfileConfigInputDict], ) -> GetFieldLevelEncryptionProfileConfigOutput: """ Get the field-level encryption profile configuration information. Args: - input: - An instance of `GetFieldLevelEncryptionProfileConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2333,12 +3735,35 @@ def get_field_level_encryption_profile_config( Returns: An instance of `GetFieldLevelEncryptionProfileConfigOutput`. """ + + def get_field_level_encryption_profile_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFieldLevelEncryptionProfileConfigOutput: return self._invoke( - input, _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE_CONFIG, [], plugins + self._select_input( + _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE_CONFIG, args, kwargs + ), + _models.GET_FIELD_LEVEL_ENCRYPTION_PROFILE_CONFIG, + [], + plugins, ) + @_overload + def get_function( + self, + request: _models.GetFunctionInput | _models.GetFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionOutput: ... + + @_overload def get_function( - self, input: GetFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionInputDict], ) -> GetFunctionOutput: """ Gets the code of a CloudFront function. To get configuration information @@ -2348,8 +3773,6 @@ def get_function( stage. To get these values, you can use `ListFunctions`. Args: - input: - An instance of `GetFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2359,17 +3782,38 @@ def get_function( Returns: An instance of `GetFunctionOutput`. """ - return self._invoke(input, _models.GET_FUNCTION, [], plugins) + def get_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionOutput: + return self._invoke( + self._select_input(_models.GET_FUNCTION, args, kwargs), + _models.GET_FUNCTION, + [], + plugins, + ) + + @_overload + def get_invalidation( + self, + request: _models.GetInvalidationInput | _models.GetInvalidationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvalidationOutput: ... + + @_overload def get_invalidation( - self, input: GetInvalidationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvalidationInputDict], ) -> GetInvalidationOutput: """ Get the information about an invalidation. Args: - input: - An instance of `GetInvalidationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2379,20 +3823,40 @@ def get_invalidation( Returns: An instance of `GetInvalidationOutput`. """ - return self._invoke(input, _models.GET_INVALIDATION, [], plugins) + def get_invalidation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvalidationOutput: + return self._invoke( + self._select_input(_models.GET_INVALIDATION, args, kwargs), + _models.GET_INVALIDATION, + [], + plugins, + ) + + @_overload + def get_invalidation_for_distribution_tenant( + self, + request: _models.GetInvalidationForDistributionTenantInput + | _models.GetInvalidationForDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvalidationForDistributionTenantOutput: ... + + @_overload def get_invalidation_for_distribution_tenant( self, - input: GetInvalidationForDistributionTenantInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvalidationForDistributionTenantInputDict], ) -> GetInvalidationForDistributionTenantOutput: """ Gets information about a specific invalidation for a distribution tenant. Args: - input: - An instance of `GetInvalidationForDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2402,12 +3866,35 @@ def get_invalidation_for_distribution_tenant( Returns: An instance of `GetInvalidationForDistributionTenantOutput`. """ + + def get_invalidation_for_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvalidationForDistributionTenantOutput: return self._invoke( - input, _models.GET_INVALIDATION_FOR_DISTRIBUTION_TENANT, [], plugins + self._select_input( + _models.GET_INVALIDATION_FOR_DISTRIBUTION_TENANT, args, kwargs + ), + _models.GET_INVALIDATION_FOR_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload + def get_key_group( + self, + request: _models.GetKeyGroupInput | _models.GetKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyGroupOutput: ... + + @_overload def get_key_group( - self, input: GetKeyGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyGroupInputDict], ) -> GetKeyGroupOutput: """ Gets a key group, including the date and time when the key group was @@ -2420,8 +3907,6 @@ def get_key_group( behavior, you can get the identifier using `ListKeyGroups`. Args: - input: - An instance of `GetKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2431,10 +3916,33 @@ def get_key_group( Returns: An instance of `GetKeyGroupOutput`. """ - return self._invoke(input, _models.GET_KEY_GROUP, [], plugins) + def get_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyGroupOutput: + return self._invoke( + self._select_input(_models.GET_KEY_GROUP, args, kwargs), + _models.GET_KEY_GROUP, + [], + plugins, + ) + + @_overload def get_key_group_config( - self, input: GetKeyGroupConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.GetKeyGroupConfigInput | _models.GetKeyGroupConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyGroupConfigOutput: ... + + @_overload + def get_key_group_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyGroupConfigInputDict], ) -> GetKeyGroupConfigOutput: """ Gets a key group configuration. @@ -2447,8 +3955,6 @@ def get_key_group_config( `ListKeyGroups`. Args: - input: - An instance of `GetKeyGroupConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2458,19 +3964,39 @@ def get_key_group_config( Returns: An instance of `GetKeyGroupConfigOutput`. """ - return self._invoke(input, _models.GET_KEY_GROUP_CONFIG, [], plugins) + def get_key_group_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyGroupConfigOutput: + return self._invoke( + self._select_input(_models.GET_KEY_GROUP_CONFIG, args, kwargs), + _models.GET_KEY_GROUP_CONFIG, + [], + plugins, + ) + + @_overload + def get_managed_certificate_details( + self, + request: _models.GetManagedCertificateDetailsInput + | _models.GetManagedCertificateDetailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetManagedCertificateDetailsOutput: ... + + @_overload def get_managed_certificate_details( self, - input: GetManagedCertificateDetailsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetManagedCertificateDetailsInputDict], ) -> GetManagedCertificateDetailsOutput: """ Gets details about the CloudFront managed ACM certificate. Args: - input: - An instance of `GetManagedCertificateDetailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2480,18 +4006,40 @@ def get_managed_certificate_details( Returns: An instance of `GetManagedCertificateDetailsOutput`. """ - return self._invoke(input, _models.GET_MANAGED_CERTIFICATE_DETAILS, [], plugins) + def get_managed_certificate_details( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetManagedCertificateDetailsOutput: + return self._invoke( + self._select_input(_models.GET_MANAGED_CERTIFICATE_DETAILS, args, kwargs), + _models.GET_MANAGED_CERTIFICATE_DETAILS, + [], + plugins, + ) + + @_overload def get_monitoring_subscription( - self, input: GetMonitoringSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMonitoringSubscriptionInput + | _models.GetMonitoringSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMonitoringSubscriptionOutput: ... + + @_overload + def get_monitoring_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMonitoringSubscriptionInputDict], ) -> GetMonitoringSubscriptionOutput: """ Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution. Args: - input: - An instance of `GetMonitoringSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2501,40 +4049,82 @@ def get_monitoring_subscription( Returns: An instance of `GetMonitoringSubscriptionOutput`. """ - return self._invoke(input, _models.GET_MONITORING_SUBSCRIPTION, [], plugins) + def get_monitoring_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMonitoringSubscriptionOutput: + return self._invoke( + self._select_input(_models.GET_MONITORING_SUBSCRIPTION, args, kwargs), + _models.GET_MONITORING_SUBSCRIPTION, + [], + plugins, + ) + + @_overload def get_origin_access_control( - self, input: GetOriginAccessControlInput, plugins: list[Plugin] | None = None + self, + request: _models.GetOriginAccessControlInput + | _models.GetOriginAccessControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOriginAccessControlOutput: ... + + @_overload + def get_origin_access_control( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOriginAccessControlInputDict], ) -> GetOriginAccessControlOutput: """ Gets a CloudFront origin access control, including its unique identifier. Args: - input: - An instance of `GetOriginAccessControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `GetOriginAccessControlOutput`. - """ - return self._invoke(input, _models.GET_ORIGIN_ACCESS_CONTROL, [], plugins) + Returns: + An instance of `GetOriginAccessControlOutput`. + """ + + def get_origin_access_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOriginAccessControlOutput: + return self._invoke( + self._select_input(_models.GET_ORIGIN_ACCESS_CONTROL, args, kwargs), + _models.GET_ORIGIN_ACCESS_CONTROL, + [], + plugins, + ) + + @_overload + def get_origin_access_control_config( + self, + request: _models.GetOriginAccessControlConfigInput + | _models.GetOriginAccessControlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOriginAccessControlConfigOutput: ... + @_overload def get_origin_access_control_config( self, - input: GetOriginAccessControlConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOriginAccessControlConfigInputDict], ) -> GetOriginAccessControlConfigOutput: """ Gets a CloudFront origin access control configuration. Args: - input: - An instance of `GetOriginAccessControlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2544,12 +4134,34 @@ def get_origin_access_control_config( Returns: An instance of `GetOriginAccessControlConfigOutput`. """ + + def get_origin_access_control_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOriginAccessControlConfigOutput: return self._invoke( - input, _models.GET_ORIGIN_ACCESS_CONTROL_CONFIG, [], plugins + self._select_input(_models.GET_ORIGIN_ACCESS_CONTROL_CONFIG, args, kwargs), + _models.GET_ORIGIN_ACCESS_CONTROL_CONFIG, + [], + plugins, ) + @_overload + def get_origin_request_policy( + self, + request: _models.GetOriginRequestPolicyInput + | _models.GetOriginRequestPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOriginRequestPolicyOutput: ... + + @_overload def get_origin_request_policy( - self, input: GetOriginRequestPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOriginRequestPolicyInputDict], ) -> GetOriginRequestPolicyOutput: """ Gets an origin request policy, including the following metadata: @@ -2566,8 +4178,6 @@ def get_origin_request_policy( using `ListOriginRequestPolicies`. Args: - input: - An instance of `GetOriginRequestPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2577,12 +4187,34 @@ def get_origin_request_policy( Returns: An instance of `GetOriginRequestPolicyOutput`. """ - return self._invoke(input, _models.GET_ORIGIN_REQUEST_POLICY, [], plugins) + def get_origin_request_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOriginRequestPolicyOutput: + return self._invoke( + self._select_input(_models.GET_ORIGIN_REQUEST_POLICY, args, kwargs), + _models.GET_ORIGIN_REQUEST_POLICY, + [], + plugins, + ) + + @_overload + def get_origin_request_policy_config( + self, + request: _models.GetOriginRequestPolicyConfigInput + | _models.GetOriginRequestPolicyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOriginRequestPolicyConfigOutput: ... + + @_overload def get_origin_request_policy_config( self, - input: GetOriginRequestPolicyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOriginRequestPolicyConfigInputDict], ) -> GetOriginRequestPolicyConfigOutput: """ Gets an origin request policy configuration. @@ -2595,8 +4227,6 @@ def get_origin_request_policy_config( using `ListOriginRequestPolicies`. Args: - input: - An instance of `GetOriginRequestPolicyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2606,19 +4236,38 @@ def get_origin_request_policy_config( Returns: An instance of `GetOriginRequestPolicyConfigOutput`. """ + + def get_origin_request_policy_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOriginRequestPolicyConfigOutput: return self._invoke( - input, _models.GET_ORIGIN_REQUEST_POLICY_CONFIG, [], plugins + self._select_input(_models.GET_ORIGIN_REQUEST_POLICY_CONFIG, args, kwargs), + _models.GET_ORIGIN_REQUEST_POLICY_CONFIG, + [], + plugins, ) + @_overload + def get_public_key( + self, + request: _models.GetPublicKeyInput | _models.GetPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPublicKeyOutput: ... + + @_overload def get_public_key( - self, input: GetPublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPublicKeyInputDict], ) -> GetPublicKeyOutput: """ Gets a public key. Args: - input: - An instance of `GetPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2628,17 +4277,38 @@ def get_public_key( Returns: An instance of `GetPublicKeyOutput`. """ - return self._invoke(input, _models.GET_PUBLIC_KEY, [], plugins) + def get_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPublicKeyOutput: + return self._invoke( + self._select_input(_models.GET_PUBLIC_KEY, args, kwargs), + _models.GET_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + def get_public_key_config( + self, + request: _models.GetPublicKeyConfigInput | _models.GetPublicKeyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPublicKeyConfigOutput: ... + + @_overload def get_public_key_config( - self, input: GetPublicKeyConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPublicKeyConfigInputDict], ) -> GetPublicKeyConfigOutput: """ Gets a public key configuration. Args: - input: - An instance of `GetPublicKeyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2648,12 +4318,34 @@ def get_public_key_config( Returns: An instance of `GetPublicKeyConfigOutput`. """ - return self._invoke(input, _models.GET_PUBLIC_KEY_CONFIG, [], plugins) + def get_public_key_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPublicKeyConfigOutput: + return self._invoke( + self._select_input(_models.GET_PUBLIC_KEY_CONFIG, args, kwargs), + _models.GET_PUBLIC_KEY_CONFIG, + [], + plugins, + ) + + @_overload + def get_realtime_log_config( + self, + request: _models.GetRealtimeLogConfigInput + | _models.GetRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRealtimeLogConfigOutput: ... + + @_overload def get_realtime_log_config( self, - input: GetRealtimeLogConfigInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRealtimeLogConfigInputDict], ) -> GetRealtimeLogConfigOutput: """ Gets a real-time log configuration. @@ -2664,8 +4356,6 @@ def get_realtime_log_config( identify the real-time log configuration to get. Args: - input: - An instance of `GetRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2675,18 +4365,39 @@ def get_realtime_log_config( Returns: An instance of `GetRealtimeLogConfigOutput`. """ - return self._invoke(input, _models.GET_REALTIME_LOG_CONFIG, [], plugins) + def get_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRealtimeLogConfigOutput: + return self._invoke( + self._select_input(_models.GET_REALTIME_LOG_CONFIG, args, kwargs), + _models.GET_REALTIME_LOG_CONFIG, + [], + plugins, + ) + + @_overload + def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the resource policy for the specified CloudFront resource that you own and have shared. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2696,10 +4407,34 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def get_response_headers_policy( + self, + request: _models.GetResponseHeadersPolicyInput + | _models.GetResponseHeadersPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResponseHeadersPolicyOutput: ... + + @_overload def get_response_headers_policy( - self, input: GetResponseHeadersPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResponseHeadersPolicyInputDict], ) -> GetResponseHeadersPolicyOutput: """ Gets a response headers policy, including metadata (the policy's @@ -2713,8 +4448,6 @@ def get_response_headers_policy( using `ListResponseHeadersPolicies`. Args: - input: - An instance of `GetResponseHeadersPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2724,12 +4457,34 @@ def get_response_headers_policy( Returns: An instance of `GetResponseHeadersPolicyOutput`. """ - return self._invoke(input, _models.GET_RESPONSE_HEADERS_POLICY, [], plugins) + def get_response_headers_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResponseHeadersPolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESPONSE_HEADERS_POLICY, args, kwargs), + _models.GET_RESPONSE_HEADERS_POLICY, + [], + plugins, + ) + + @_overload + def get_response_headers_policy_config( + self, + request: _models.GetResponseHeadersPolicyConfigInput + | _models.GetResponseHeadersPolicyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResponseHeadersPolicyConfigOutput: ... + + @_overload def get_response_headers_policy_config( self, - input: GetResponseHeadersPolicyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResponseHeadersPolicyConfigInputDict], ) -> GetResponseHeadersPolicyConfigOutput: """ Gets a response headers policy configuration. @@ -2742,8 +4497,6 @@ def get_response_headers_policy_config( using `ListResponseHeadersPolicies`. Args: - input: - An instance of `GetResponseHeadersPolicyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2753,20 +4506,42 @@ def get_response_headers_policy_config( Returns: An instance of `GetResponseHeadersPolicyConfigOutput`. """ + + def get_response_headers_policy_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResponseHeadersPolicyConfigOutput: return self._invoke( - input, _models.GET_RESPONSE_HEADERS_POLICY_CONFIG, [], plugins + self._select_input( + _models.GET_RESPONSE_HEADERS_POLICY_CONFIG, args, kwargs + ), + _models.GET_RESPONSE_HEADERS_POLICY_CONFIG, + [], + plugins, ) + @_overload def get_streaming_distribution( - self, input: GetStreamingDistributionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetStreamingDistributionInput + | _models.GetStreamingDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStreamingDistributionOutput: ... + + @_overload + def get_streaming_distribution( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStreamingDistributionInputDict], ) -> GetStreamingDistributionOutput: """ Gets information about a specified RTMP distribution, including the distribution configuration. Args: - input: - An instance of `GetStreamingDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2776,19 +4551,39 @@ def get_streaming_distribution( Returns: An instance of `GetStreamingDistributionOutput`. """ - return self._invoke(input, _models.GET_STREAMING_DISTRIBUTION, [], plugins) + def get_streaming_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStreamingDistributionOutput: + return self._invoke( + self._select_input(_models.GET_STREAMING_DISTRIBUTION, args, kwargs), + _models.GET_STREAMING_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def get_streaming_distribution_config( + self, + request: _models.GetStreamingDistributionConfigInput + | _models.GetStreamingDistributionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetStreamingDistributionConfigOutput: ... + + @_overload def get_streaming_distribution_config( self, - input: GetStreamingDistributionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetStreamingDistributionConfigInputDict], ) -> GetStreamingDistributionConfigOutput: """ Get the configuration information about a streaming distribution. Args: - input: - An instance of `GetStreamingDistributionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2798,19 +4593,38 @@ def get_streaming_distribution_config( Returns: An instance of `GetStreamingDistributionConfigOutput`. """ + + def get_streaming_distribution_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetStreamingDistributionConfigOutput: return self._invoke( - input, _models.GET_STREAMING_DISTRIBUTION_CONFIG, [], plugins + self._select_input(_models.GET_STREAMING_DISTRIBUTION_CONFIG, args, kwargs), + _models.GET_STREAMING_DISTRIBUTION_CONFIG, + [], + plugins, ) + @_overload + def get_trust_store( + self, + request: _models.GetTrustStoreInput | _models.GetTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTrustStoreOutput: ... + + @_overload def get_trust_store( - self, input: GetTrustStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTrustStoreInputDict], ) -> GetTrustStoreOutput: """ Gets a trust store. Args: - input: - An instance of `GetTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2820,17 +4634,38 @@ def get_trust_store( Returns: An instance of `GetTrustStoreOutput`. """ - return self._invoke(input, _models.GET_TRUST_STORE, [], plugins) + def get_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTrustStoreOutput: + return self._invoke( + self._select_input(_models.GET_TRUST_STORE, args, kwargs), + _models.GET_TRUST_STORE, + [], + plugins, + ) + + @_overload + def get_vpc_origin( + self, + request: _models.GetVpcOriginInput | _models.GetVpcOriginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcOriginOutput: ... + + @_overload def get_vpc_origin( - self, input: GetVpcOriginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpcOriginInputDict], ) -> GetVpcOriginOutput: """ Get the details of an Amazon CloudFront VPC origin. Args: - input: - An instance of `GetVpcOriginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2840,19 +4675,38 @@ def get_vpc_origin( Returns: An instance of `GetVpcOriginOutput`. """ - return self._invoke(input, _models.GET_VPC_ORIGIN, [], plugins) + def get_vpc_origin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcOriginOutput: + return self._invoke( + self._select_input(_models.GET_VPC_ORIGIN, args, kwargs), + _models.GET_VPC_ORIGIN, + [], + plugins, + ) + + @_overload def list_anycast_ip_lists( self, - input: ListAnycastIpListsInput | None = None, + request: _models.ListAnycastIpListsInput | _models.ListAnycastIpListsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListAnycastIpListsOutput: ... + + @_overload + def list_anycast_ip_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAnycastIpListsInputDict], ) -> ListAnycastIpListsOutput: """ Lists your Anycast static IP lists. Args: - input: - An instance of `ListAnycastIpListsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2862,12 +4716,33 @@ def list_anycast_ip_lists( Returns: An instance of `ListAnycastIpListsOutput`. """ - return self._invoke(input, _models.LIST_ANYCAST_IP_LISTS, [], plugins) + def list_anycast_ip_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAnycastIpListsOutput: + return self._invoke( + self._select_input(_models.LIST_ANYCAST_IP_LISTS, args, kwargs), + _models.LIST_ANYCAST_IP_LISTS, + [], + plugins, + ) + + @_overload + def list_cache_policies( + self, + request: _models.ListCachePoliciesInput | _models.ListCachePoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCachePoliciesOutput: ... + + @_overload def list_cache_policies( self, - input: ListCachePoliciesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCachePoliciesInputDict], ) -> ListCachePoliciesOutput: """ Gets a list of cache policies. @@ -2884,8 +4759,6 @@ def list_cache_policies( the subsequent request. Args: - input: - An instance of `ListCachePoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2895,19 +4768,39 @@ def list_cache_policies( Returns: An instance of `ListCachePoliciesOutput`. """ - return self._invoke(input, _models.LIST_CACHE_POLICIES, [], plugins) + def list_cache_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCachePoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_CACHE_POLICIES, args, kwargs), + _models.LIST_CACHE_POLICIES, + [], + plugins, + ) + + @_overload + def list_cloud_front_origin_access_identities( + self, + request: _models.ListCloudFrontOriginAccessIdentitiesInput + | _models.ListCloudFrontOriginAccessIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCloudFrontOriginAccessIdentitiesOutput: ... + + @_overload def list_cloud_front_origin_access_identities( self, - input: ListCloudFrontOriginAccessIdentitiesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCloudFrontOriginAccessIdentitiesInputDict], ) -> ListCloudFrontOriginAccessIdentitiesOutput: """ Lists origin access identities. Args: - input: - An instance of `ListCloudFrontOriginAccessIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2917,12 +4810,36 @@ def list_cloud_front_origin_access_identities( Returns: An instance of `ListCloudFrontOriginAccessIdentitiesOutput`. """ + + def list_cloud_front_origin_access_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCloudFrontOriginAccessIdentitiesOutput: return self._invoke( - input, _models.LIST_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES, [], plugins + self._select_input( + _models.LIST_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES, args, kwargs + ), + _models.LIST_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES, + [], + plugins, ) + @_overload + def list_conflicting_aliases( + self, + request: _models.ListConflictingAliasesInput + | _models.ListConflictingAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConflictingAliasesOutput: ... + + @_overload def list_conflicting_aliases( - self, input: ListConflictingAliasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConflictingAliasesInputDict], ) -> ListConflictingAliasesOutput: """ Note: @@ -2969,8 +4886,6 @@ def list_conflicting_aliases( the subsequent request. Args: - input: - An instance of `ListConflictingAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2980,19 +4895,39 @@ def list_conflicting_aliases( Returns: An instance of `ListConflictingAliasesOutput`. """ - return self._invoke(input, _models.LIST_CONFLICTING_ALIASES, [], plugins) + def list_conflicting_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConflictingAliasesOutput: + return self._invoke( + self._select_input(_models.LIST_CONFLICTING_ALIASES, args, kwargs), + _models.LIST_CONFLICTING_ALIASES, + [], + plugins, + ) + + @_overload + def list_connection_functions( + self, + request: _models.ListConnectionFunctionsInput + | _models.ListConnectionFunctionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConnectionFunctionsOutput: ... + + @_overload def list_connection_functions( self, - input: ListConnectionFunctionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConnectionFunctionsInputDict], ) -> ListConnectionFunctionsOutput: """ Lists connection functions. Args: - input: - An instance of `ListConnectionFunctionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3002,19 +4937,39 @@ def list_connection_functions( Returns: An instance of `ListConnectionFunctionsOutput`. """ - return self._invoke(input, _models.LIST_CONNECTION_FUNCTIONS, [], plugins) + def list_connection_functions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConnectionFunctionsOutput: + return self._invoke( + self._select_input(_models.LIST_CONNECTION_FUNCTIONS, args, kwargs), + _models.LIST_CONNECTION_FUNCTIONS, + [], + plugins, + ) + + @_overload + def list_connection_groups( + self, + request: _models.ListConnectionGroupsInput + | _models.ListConnectionGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConnectionGroupsOutput: ... + + @_overload def list_connection_groups( self, - input: ListConnectionGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConnectionGroupsInputDict], ) -> ListConnectionGroupsOutput: """ Lists the connection groups in your Amazon Web Services account. Args: - input: - An instance of `ListConnectionGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3024,12 +4979,34 @@ def list_connection_groups( Returns: An instance of `ListConnectionGroupsOutput`. """ - return self._invoke(input, _models.LIST_CONNECTION_GROUPS, [], plugins) + def list_connection_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConnectionGroupsOutput: + return self._invoke( + self._select_input(_models.LIST_CONNECTION_GROUPS, args, kwargs), + _models.LIST_CONNECTION_GROUPS, + [], + plugins, + ) + + @_overload + def list_continuous_deployment_policies( + self, + request: _models.ListContinuousDeploymentPoliciesInput + | _models.ListContinuousDeploymentPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListContinuousDeploymentPoliciesOutput: ... + + @_overload def list_continuous_deployment_policies( self, - input: ListContinuousDeploymentPoliciesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListContinuousDeploymentPoliciesInputDict], ) -> ListContinuousDeploymentPoliciesOutput: """ Gets a list of the continuous deployment policies in your Amazon Web @@ -3043,8 +5020,6 @@ def list_continuous_deployment_policies( the subsequent request. Args: - input: - An instance of `ListContinuousDeploymentPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3054,21 +5029,40 @@ def list_continuous_deployment_policies( Returns: An instance of `ListContinuousDeploymentPoliciesOutput`. """ + + def list_continuous_deployment_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListContinuousDeploymentPoliciesOutput: return self._invoke( - input, _models.LIST_CONTINUOUS_DEPLOYMENT_POLICIES, [], plugins + self._select_input( + _models.LIST_CONTINUOUS_DEPLOYMENT_POLICIES, args, kwargs + ), + _models.LIST_CONTINUOUS_DEPLOYMENT_POLICIES, + [], + plugins, ) + @_overload + def list_distributions( + self, + request: _models.ListDistributionsInput | _models.ListDistributionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsOutput: ... + + @_overload def list_distributions( self, - input: ListDistributionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsInputDict], ) -> ListDistributionsOutput: """ List CloudFront distributions. Args: - input: - An instance of `ListDistributionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3078,20 +5072,40 @@ def list_distributions( Returns: An instance of `ListDistributionsOutput`. """ - return self._invoke(input, _models.LIST_DISTRIBUTIONS, [], plugins) + def list_distributions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsOutput: + return self._invoke( + self._select_input(_models.LIST_DISTRIBUTIONS, args, kwargs), + _models.LIST_DISTRIBUTIONS, + [], + plugins, + ) + + @_overload + def list_distributions_by_anycast_ip_list_id( + self, + request: _models.ListDistributionsByAnycastIpListIdInput + | _models.ListDistributionsByAnycastIpListIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByAnycastIpListIdOutput: ... + + @_overload def list_distributions_by_anycast_ip_list_id( self, - input: ListDistributionsByAnycastIpListIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByAnycastIpListIdInputDict], ) -> ListDistributionsByAnycastIpListIdOutput: """ Lists the distributions in your account that are associated with the specified `AnycastIpListId`. Args: - input: - An instance of `ListDistributionsByAnycastIpListIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3101,14 +5115,36 @@ def list_distributions_by_anycast_ip_list_id( Returns: An instance of `ListDistributionsByAnycastIpListIdOutput`. """ + + def list_distributions_by_anycast_ip_list_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByAnycastIpListIdOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_ANYCAST_IP_LIST_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_ANYCAST_IP_LIST_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_ANYCAST_IP_LIST_ID, + [], + plugins, ) + @_overload + def list_distributions_by_cache_policy_id( + self, + request: _models.ListDistributionsByCachePolicyIdInput + | _models.ListDistributionsByCachePolicyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByCachePolicyIdOutput: ... + + @_overload def list_distributions_by_cache_policy_id( self, - input: ListDistributionsByCachePolicyIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByCachePolicyIdInputDict], ) -> ListDistributionsByCachePolicyIdOutput: """ Gets a list of distribution IDs for distributions that have a cache @@ -3122,8 +5158,6 @@ def list_distributions_by_cache_policy_id( the subsequent request. Args: - input: - An instance of `ListDistributionsByCachePolicyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3133,21 +5167,41 @@ def list_distributions_by_cache_policy_id( Returns: An instance of `ListDistributionsByCachePolicyIdOutput`. """ + + def list_distributions_by_cache_policy_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByCachePolicyIdOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_CACHE_POLICY_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_CACHE_POLICY_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_CACHE_POLICY_ID, + [], + plugins, ) + @_overload + def list_distributions_by_connection_function( + self, + request: _models.ListDistributionsByConnectionFunctionInput + | _models.ListDistributionsByConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByConnectionFunctionOutput: ... + + @_overload def list_distributions_by_connection_function( self, - input: ListDistributionsByConnectionFunctionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByConnectionFunctionInputDict], ) -> ListDistributionsByConnectionFunctionOutput: """ Lists distributions by connection function. Args: - input: - An instance of `ListDistributionsByConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3157,21 +5211,41 @@ def list_distributions_by_connection_function( Returns: An instance of `ListDistributionsByConnectionFunctionOutput`. """ + + def list_distributions_by_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByConnectionFunctionOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_CONNECTION_FUNCTION, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_CONNECTION_FUNCTION, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_CONNECTION_FUNCTION, + [], + plugins, ) + @_overload + def list_distributions_by_connection_mode( + self, + request: _models.ListDistributionsByConnectionModeInput + | _models.ListDistributionsByConnectionModeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByConnectionModeOutput: ... + + @_overload def list_distributions_by_connection_mode( self, - input: ListDistributionsByConnectionModeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByConnectionModeInputDict], ) -> ListDistributionsByConnectionModeOutput: """ Lists the distributions by the connection mode that you specify. Args: - input: - An instance of `ListDistributionsByConnectionModeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3181,14 +5255,36 @@ def list_distributions_by_connection_mode( Returns: An instance of `ListDistributionsByConnectionModeOutput`. """ + + def list_distributions_by_connection_mode( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByConnectionModeOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_CONNECTION_MODE, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_CONNECTION_MODE, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_CONNECTION_MODE, + [], + plugins, ) + @_overload + def list_distributions_by_key_group( + self, + request: _models.ListDistributionsByKeyGroupInput + | _models.ListDistributionsByKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByKeyGroupOutput: ... + + @_overload def list_distributions_by_key_group( self, - input: ListDistributionsByKeyGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByKeyGroupInputDict], ) -> ListDistributionsByKeyGroupOutput: """ Gets a list of distribution IDs for distributions that have a cache @@ -3202,8 +5298,6 @@ def list_distributions_by_key_group( the subsequent request. Args: - input: - An instance of `ListDistributionsByKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3213,12 +5307,34 @@ def list_distributions_by_key_group( Returns: An instance of `ListDistributionsByKeyGroupOutput`. """ - return self._invoke(input, _models.LIST_DISTRIBUTIONS_BY_KEY_GROUP, [], plugins) + def list_distributions_by_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByKeyGroupOutput: + return self._invoke( + self._select_input(_models.LIST_DISTRIBUTIONS_BY_KEY_GROUP, args, kwargs), + _models.LIST_DISTRIBUTIONS_BY_KEY_GROUP, + [], + plugins, + ) + + @_overload + def list_distributions_by_origin_request_policy_id( + self, + request: _models.ListDistributionsByOriginRequestPolicyIdInput + | _models.ListDistributionsByOriginRequestPolicyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByOriginRequestPolicyIdOutput: ... + + @_overload def list_distributions_by_origin_request_policy_id( self, - input: ListDistributionsByOriginRequestPolicyIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByOriginRequestPolicyIdInputDict], ) -> ListDistributionsByOriginRequestPolicyIdOutput: """ Gets a list of distribution IDs for distributions that have a cache @@ -3232,8 +5348,6 @@ def list_distributions_by_origin_request_policy_id( the subsequent request. Args: - input: - An instance of `ListDistributionsByOriginRequestPolicyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3243,22 +5357,42 @@ def list_distributions_by_origin_request_policy_id( Returns: An instance of `ListDistributionsByOriginRequestPolicyIdOutput`. """ + + def list_distributions_by_origin_request_policy_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByOriginRequestPolicyIdOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_ORIGIN_REQUEST_POLICY_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_ORIGIN_REQUEST_POLICY_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_ORIGIN_REQUEST_POLICY_ID, + [], + plugins, ) + @_overload + def list_distributions_by_owned_resource( + self, + request: _models.ListDistributionsByOwnedResourceInput + | _models.ListDistributionsByOwnedResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByOwnedResourceOutput: ... + + @_overload def list_distributions_by_owned_resource( self, - input: ListDistributionsByOwnedResourceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByOwnedResourceInputDict], ) -> ListDistributionsByOwnedResourceOutput: """ Lists the CloudFront distributions that are associated with the specified resource that you own. Args: - input: - An instance of `ListDistributionsByOwnedResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3268,14 +5402,36 @@ def list_distributions_by_owned_resource( Returns: An instance of `ListDistributionsByOwnedResourceOutput`. """ + + def list_distributions_by_owned_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByOwnedResourceOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_OWNED_RESOURCE, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_OWNED_RESOURCE, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_OWNED_RESOURCE, + [], + plugins, ) + @_overload + def list_distributions_by_realtime_log_config( + self, + request: _models.ListDistributionsByRealtimeLogConfigInput + | _models.ListDistributionsByRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByRealtimeLogConfigOutput: ... + + @_overload def list_distributions_by_realtime_log_config( self, - input: ListDistributionsByRealtimeLogConfigInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByRealtimeLogConfigInputDict], ) -> ListDistributionsByRealtimeLogConfigOutput: """ Gets a list of distributions that have a cache behavior that's @@ -3294,8 +5450,6 @@ def list_distributions_by_realtime_log_config( the subsequent request. Args: - input: - An instance of `ListDistributionsByRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3305,14 +5459,36 @@ def list_distributions_by_realtime_log_config( Returns: An instance of `ListDistributionsByRealtimeLogConfigOutput`. """ + + def list_distributions_by_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByRealtimeLogConfigOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_REALTIME_LOG_CONFIG, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_REALTIME_LOG_CONFIG, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_REALTIME_LOG_CONFIG, + [], + plugins, ) + @_overload def list_distributions_by_response_headers_policy_id( self, - input: ListDistributionsByResponseHeadersPolicyIdInput, + request: _models.ListDistributionsByResponseHeadersPolicyIdInput + | _models.ListDistributionsByResponseHeadersPolicyIdInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDistributionsByResponseHeadersPolicyIdOutput: ... + + @_overload + def list_distributions_by_response_headers_policy_id( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByResponseHeadersPolicyIdInputDict], ) -> ListDistributionsByResponseHeadersPolicyIdOutput: """ Gets a list of distribution IDs for distributions that have a cache @@ -3326,8 +5502,6 @@ def list_distributions_by_response_headers_policy_id( the subsequent request. Args: - input: - An instance of `ListDistributionsByResponseHeadersPolicyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3337,21 +5511,41 @@ def list_distributions_by_response_headers_policy_id( Returns: An instance of `ListDistributionsByResponseHeadersPolicyIdOutput`. """ + + def list_distributions_by_response_headers_policy_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByResponseHeadersPolicyIdOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_RESPONSE_HEADERS_POLICY_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_RESPONSE_HEADERS_POLICY_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_RESPONSE_HEADERS_POLICY_ID, + [], + plugins, ) + @_overload + def list_distributions_by_trust_store( + self, + request: _models.ListDistributionsByTrustStoreInput + | _models.ListDistributionsByTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByTrustStoreOutput: ... + + @_overload def list_distributions_by_trust_store( self, - input: ListDistributionsByTrustStoreInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByTrustStoreInputDict], ) -> ListDistributionsByTrustStoreOutput: """ Lists distributions by trust store. Args: - input: - An instance of `ListDistributionsByTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3361,21 +5555,39 @@ def list_distributions_by_trust_store( Returns: An instance of `ListDistributionsByTrustStoreOutput`. """ + + def list_distributions_by_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByTrustStoreOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_TRUST_STORE, [], plugins + self._select_input(_models.LIST_DISTRIBUTIONS_BY_TRUST_STORE, args, kwargs), + _models.LIST_DISTRIBUTIONS_BY_TRUST_STORE, + [], + plugins, ) + @_overload + def list_distributions_by_vpc_origin_id( + self, + request: _models.ListDistributionsByVpcOriginIdInput + | _models.ListDistributionsByVpcOriginIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByVpcOriginIdOutput: ... + + @_overload def list_distributions_by_vpc_origin_id( self, - input: ListDistributionsByVpcOriginIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByVpcOriginIdInputDict], ) -> ListDistributionsByVpcOriginIdOutput: """ List CloudFront distributions by their VPC origin ID. Args: - input: - An instance of `ListDistributionsByVpcOriginIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3385,21 +5597,41 @@ def list_distributions_by_vpc_origin_id( Returns: An instance of `ListDistributionsByVpcOriginIdOutput`. """ + + def list_distributions_by_vpc_origin_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByVpcOriginIdOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_VPC_ORIGIN_ID, [], plugins + self._select_input( + _models.LIST_DISTRIBUTIONS_BY_VPC_ORIGIN_ID, args, kwargs + ), + _models.LIST_DISTRIBUTIONS_BY_VPC_ORIGIN_ID, + [], + plugins, ) + @_overload + def list_distributions_by_web_acl_id( + self, + request: _models.ListDistributionsByWebACLIdInput + | _models.ListDistributionsByWebACLIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionsByWebACLIdOutput: ... + + @_overload def list_distributions_by_web_acl_id( self, - input: ListDistributionsByWebACLIdInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionsByWebACLIdInputDict], ) -> ListDistributionsByWebACLIdOutput: """ List the distributions that are associated with a specified WAF web ACL. Args: - input: - An instance of `ListDistributionsByWebACLIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3409,21 +5641,39 @@ def list_distributions_by_web_acl_id( Returns: An instance of `ListDistributionsByWebACLIdOutput`. """ + + def list_distributions_by_web_acl_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionsByWebACLIdOutput: return self._invoke( - input, _models.LIST_DISTRIBUTIONS_BY_WEB_ACL_ID, [], plugins + self._select_input(_models.LIST_DISTRIBUTIONS_BY_WEB_ACL_ID, args, kwargs), + _models.LIST_DISTRIBUTIONS_BY_WEB_ACL_ID, + [], + plugins, ) + @_overload + def list_distribution_tenants( + self, + request: _models.ListDistributionTenantsInput + | _models.ListDistributionTenantsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionTenantsOutput: ... + + @_overload def list_distribution_tenants( self, - input: ListDistributionTenantsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionTenantsInputDict], ) -> ListDistributionTenantsOutput: """ Lists the distribution tenants in your Amazon Web Services account. Args: - input: - An instance of `ListDistributionTenantsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3433,12 +5683,34 @@ def list_distribution_tenants( Returns: An instance of `ListDistributionTenantsOutput`. """ - return self._invoke(input, _models.LIST_DISTRIBUTION_TENANTS, [], plugins) + def list_distribution_tenants( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionTenantsOutput: + return self._invoke( + self._select_input(_models.LIST_DISTRIBUTION_TENANTS, args, kwargs), + _models.LIST_DISTRIBUTION_TENANTS, + [], + plugins, + ) + + @_overload + def list_distribution_tenants_by_customization( + self, + request: _models.ListDistributionTenantsByCustomizationInput + | _models.ListDistributionTenantsByCustomizationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDistributionTenantsByCustomizationOutput: ... + + @_overload def list_distribution_tenants_by_customization( self, - input: ListDistributionTenantsByCustomizationInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDistributionTenantsByCustomizationInputDict], ) -> ListDistributionTenantsByCustomizationOutput: """ Lists distribution tenants by the customization that you specify. @@ -3447,8 +5719,6 @@ def list_distribution_tenants_by_customization( parameter, but not both in the same request. Args: - input: - An instance of `ListDistributionTenantsByCustomizationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3458,12 +5728,36 @@ def list_distribution_tenants_by_customization( Returns: An instance of `ListDistributionTenantsByCustomizationOutput`. """ + + def list_distribution_tenants_by_customization( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDistributionTenantsByCustomizationOutput: return self._invoke( - input, _models.LIST_DISTRIBUTION_TENANTS_BY_CUSTOMIZATION, [], plugins + self._select_input( + _models.LIST_DISTRIBUTION_TENANTS_BY_CUSTOMIZATION, args, kwargs + ), + _models.LIST_DISTRIBUTION_TENANTS_BY_CUSTOMIZATION, + [], + plugins, ) + @_overload + def list_domain_conflicts( + self, + request: _models.ListDomainConflictsInput + | _models.ListDomainConflictsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDomainConflictsOutput: ... + + @_overload def list_domain_conflicts( - self, input: ListDomainConflictsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDomainConflictsInputDict], ) -> ListDomainConflictsOutput: """ Note: @@ -3511,8 +5805,6 @@ def list_domain_conflicts( the subsequent request. Args: - input: - An instance of `ListDomainConflictsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3522,20 +5814,40 @@ def list_domain_conflicts( Returns: An instance of `ListDomainConflictsOutput`. """ - return self._invoke(input, _models.LIST_DOMAIN_CONFLICTS, [], plugins) + def list_domain_conflicts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDomainConflictsOutput: + return self._invoke( + self._select_input(_models.LIST_DOMAIN_CONFLICTS, args, kwargs), + _models.LIST_DOMAIN_CONFLICTS, + [], + plugins, + ) + + @_overload + def list_field_level_encryption_configs( + self, + request: _models.ListFieldLevelEncryptionConfigsInput + | _models.ListFieldLevelEncryptionConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFieldLevelEncryptionConfigsOutput: ... + + @_overload def list_field_level_encryption_configs( self, - input: ListFieldLevelEncryptionConfigsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFieldLevelEncryptionConfigsInputDict], ) -> ListFieldLevelEncryptionConfigsOutput: """ List all field-level encryption configurations that have been created in CloudFront for this account. Args: - input: - An instance of `ListFieldLevelEncryptionConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3545,22 +5857,42 @@ def list_field_level_encryption_configs( Returns: An instance of `ListFieldLevelEncryptionConfigsOutput`. """ + + def list_field_level_encryption_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFieldLevelEncryptionConfigsOutput: return self._invoke( - input, _models.LIST_FIELD_LEVEL_ENCRYPTION_CONFIGS, [], plugins + self._select_input( + _models.LIST_FIELD_LEVEL_ENCRYPTION_CONFIGS, args, kwargs + ), + _models.LIST_FIELD_LEVEL_ENCRYPTION_CONFIGS, + [], + plugins, ) + @_overload + def list_field_level_encryption_profiles( + self, + request: _models.ListFieldLevelEncryptionProfilesInput + | _models.ListFieldLevelEncryptionProfilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFieldLevelEncryptionProfilesOutput: ... + + @_overload def list_field_level_encryption_profiles( self, - input: ListFieldLevelEncryptionProfilesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFieldLevelEncryptionProfilesInputDict], ) -> ListFieldLevelEncryptionProfilesOutput: """ Request a list of field-level encryption profiles that have been created in CloudFront for this account. Args: - input: - An instance of `ListFieldLevelEncryptionProfilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3570,14 +5902,35 @@ def list_field_level_encryption_profiles( Returns: An instance of `ListFieldLevelEncryptionProfilesOutput`. """ + + def list_field_level_encryption_profiles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFieldLevelEncryptionProfilesOutput: return self._invoke( - input, _models.LIST_FIELD_LEVEL_ENCRYPTION_PROFILES, [], plugins + self._select_input( + _models.LIST_FIELD_LEVEL_ENCRYPTION_PROFILES, args, kwargs + ), + _models.LIST_FIELD_LEVEL_ENCRYPTION_PROFILES, + [], + plugins, ) + @_overload + def list_functions( + self, + request: _models.ListFunctionsInput | _models.ListFunctionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionsOutput: ... + + @_overload def list_functions( self, - input: ListFunctionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionsInputDict], ) -> ListFunctionsOutput: """ Gets a list of all CloudFront functions in your Amazon Web Services @@ -3594,8 +5947,6 @@ def list_functions( the subsequent request. Args: - input: - An instance of `ListFunctionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3605,17 +5956,38 @@ def list_functions( Returns: An instance of `ListFunctionsOutput`. """ - return self._invoke(input, _models.LIST_FUNCTIONS, [], plugins) + def list_functions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionsOutput: + return self._invoke( + self._select_input(_models.LIST_FUNCTIONS, args, kwargs), + _models.LIST_FUNCTIONS, + [], + plugins, + ) + + @_overload + def list_invalidations( + self, + request: _models.ListInvalidationsInput | _models.ListInvalidationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvalidationsOutput: ... + + @_overload def list_invalidations( - self, input: ListInvalidationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvalidationsInputDict], ) -> ListInvalidationsOutput: """ Lists invalidation batches. Args: - input: - An instance of `ListInvalidationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3625,19 +5997,39 @@ def list_invalidations( Returns: An instance of `ListInvalidationsOutput`. """ - return self._invoke(input, _models.LIST_INVALIDATIONS, [], plugins) + def list_invalidations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvalidationsOutput: + return self._invoke( + self._select_input(_models.LIST_INVALIDATIONS, args, kwargs), + _models.LIST_INVALIDATIONS, + [], + plugins, + ) + + @_overload + def list_invalidations_for_distribution_tenant( + self, + request: _models.ListInvalidationsForDistributionTenantInput + | _models.ListInvalidationsForDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvalidationsForDistributionTenantOutput: ... + + @_overload def list_invalidations_for_distribution_tenant( self, - input: ListInvalidationsForDistributionTenantInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvalidationsForDistributionTenantInputDict], ) -> ListInvalidationsForDistributionTenantOutput: """ Lists the invalidations for a distribution tenant. Args: - input: - An instance of `ListInvalidationsForDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3647,14 +6039,35 @@ def list_invalidations_for_distribution_tenant( Returns: An instance of `ListInvalidationsForDistributionTenantOutput`. """ + + def list_invalidations_for_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvalidationsForDistributionTenantOutput: return self._invoke( - input, _models.LIST_INVALIDATIONS_FOR_DISTRIBUTION_TENANT, [], plugins + self._select_input( + _models.LIST_INVALIDATIONS_FOR_DISTRIBUTION_TENANT, args, kwargs + ), + _models.LIST_INVALIDATIONS_FOR_DISTRIBUTION_TENANT, + [], + plugins, ) + @_overload def list_key_groups( self, - input: ListKeyGroupsInput | None = None, + request: _models.ListKeyGroupsInput | _models.ListKeyGroupsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListKeyGroupsOutput: ... + + @_overload + def list_key_groups( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeyGroupsInputDict], ) -> ListKeyGroupsOutput: """ Gets a list of key groups. @@ -3667,8 +6080,6 @@ def list_key_groups( the subsequent request. Args: - input: - An instance of `ListKeyGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3678,19 +6089,38 @@ def list_key_groups( Returns: An instance of `ListKeyGroupsOutput`. """ - return self._invoke(input, _models.LIST_KEY_GROUPS, [], plugins) + def list_key_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeyGroupsOutput: + return self._invoke( + self._select_input(_models.LIST_KEY_GROUPS, args, kwargs), + _models.LIST_KEY_GROUPS, + [], + plugins, + ) + + @_overload + def list_key_value_stores( + self, + request: _models.ListKeyValueStoresInput | _models.ListKeyValueStoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeyValueStoresOutput: ... + + @_overload def list_key_value_stores( self, - input: ListKeyValueStoresInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeyValueStoresInputDict], ) -> ListKeyValueStoresOutput: """ Specifies the key value stores to list. Args: - input: - An instance of `ListKeyValueStoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3700,12 +6130,34 @@ def list_key_value_stores( Returns: An instance of `ListKeyValueStoresOutput`. """ - return self._invoke(input, _models.LIST_KEY_VALUE_STORES, [], plugins) + def list_key_value_stores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeyValueStoresOutput: + return self._invoke( + self._select_input(_models.LIST_KEY_VALUE_STORES, args, kwargs), + _models.LIST_KEY_VALUE_STORES, + [], + plugins, + ) + + @_overload + def list_origin_access_controls( + self, + request: _models.ListOriginAccessControlsInput + | _models.ListOriginAccessControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOriginAccessControlsOutput: ... + + @_overload def list_origin_access_controls( self, - input: ListOriginAccessControlsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOriginAccessControlsInputDict], ) -> ListOriginAccessControlsOutput: """ Gets the list of CloudFront origin access controls (OACs) in this Amazon @@ -3724,8 +6176,6 @@ def list_origin_access_controls( `Items` element in the response. Args: - input: - An instance of `ListOriginAccessControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3735,12 +6185,34 @@ def list_origin_access_controls( Returns: An instance of `ListOriginAccessControlsOutput`. """ - return self._invoke(input, _models.LIST_ORIGIN_ACCESS_CONTROLS, [], plugins) + def list_origin_access_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOriginAccessControlsOutput: + return self._invoke( + self._select_input(_models.LIST_ORIGIN_ACCESS_CONTROLS, args, kwargs), + _models.LIST_ORIGIN_ACCESS_CONTROLS, + [], + plugins, + ) + + @_overload + def list_origin_request_policies( + self, + request: _models.ListOriginRequestPoliciesInput + | _models.ListOriginRequestPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOriginRequestPoliciesOutput: ... + + @_overload def list_origin_request_policies( self, - input: ListOriginRequestPoliciesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOriginRequestPoliciesInputDict], ) -> ListOriginRequestPoliciesOutput: """ Gets a list of origin request policies. @@ -3757,8 +6229,6 @@ def list_origin_request_policies( the subsequent request. Args: - input: - An instance of `ListOriginRequestPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3768,20 +6238,39 @@ def list_origin_request_policies( Returns: An instance of `ListOriginRequestPoliciesOutput`. """ - return self._invoke(input, _models.LIST_ORIGIN_REQUEST_POLICIES, [], plugins) + def list_origin_request_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOriginRequestPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_ORIGIN_REQUEST_POLICIES, args, kwargs), + _models.LIST_ORIGIN_REQUEST_POLICIES, + [], + plugins, + ) + + @_overload + def list_public_keys( + self, + request: _models.ListPublicKeysInput | _models.ListPublicKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPublicKeysOutput: ... + + @_overload def list_public_keys( self, - input: ListPublicKeysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPublicKeysInputDict], ) -> ListPublicKeysOutput: """ List all public keys that have been added to CloudFront for this account. Args: - input: - An instance of `ListPublicKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3791,12 +6280,34 @@ def list_public_keys( Returns: An instance of `ListPublicKeysOutput`. """ - return self._invoke(input, _models.LIST_PUBLIC_KEYS, [], plugins) + def list_public_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPublicKeysOutput: + return self._invoke( + self._select_input(_models.LIST_PUBLIC_KEYS, args, kwargs), + _models.LIST_PUBLIC_KEYS, + [], + plugins, + ) + + @_overload + def list_realtime_log_configs( + self, + request: _models.ListRealtimeLogConfigsInput + | _models.ListRealtimeLogConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRealtimeLogConfigsOutput: ... + + @_overload def list_realtime_log_configs( self, - input: ListRealtimeLogConfigsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRealtimeLogConfigsInputDict], ) -> ListRealtimeLogConfigsOutput: """ Gets a list of real-time log configurations. @@ -3809,8 +6320,6 @@ def list_realtime_log_configs( the subsequent request. Args: - input: - An instance of `ListRealtimeLogConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3820,12 +6329,34 @@ def list_realtime_log_configs( Returns: An instance of `ListRealtimeLogConfigsOutput`. """ - return self._invoke(input, _models.LIST_REALTIME_LOG_CONFIGS, [], plugins) + def list_realtime_log_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRealtimeLogConfigsOutput: + return self._invoke( + self._select_input(_models.LIST_REALTIME_LOG_CONFIGS, args, kwargs), + _models.LIST_REALTIME_LOG_CONFIGS, + [], + plugins, + ) + + @_overload + def list_response_headers_policies( + self, + request: _models.ListResponseHeadersPoliciesInput + | _models.ListResponseHeadersPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResponseHeadersPoliciesOutput: ... + + @_overload def list_response_headers_policies( self, - input: ListResponseHeadersPoliciesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResponseHeadersPoliciesInputDict], ) -> ListResponseHeadersPoliciesOutput: """ Gets a list of response headers policies. @@ -3842,8 +6373,6 @@ def list_response_headers_policies( the subsequent request. Args: - input: - An instance of `ListResponseHeadersPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3853,19 +6382,39 @@ def list_response_headers_policies( Returns: An instance of `ListResponseHeadersPoliciesOutput`. """ - return self._invoke(input, _models.LIST_RESPONSE_HEADERS_POLICIES, [], plugins) + def list_response_headers_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResponseHeadersPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_RESPONSE_HEADERS_POLICIES, args, kwargs), + _models.LIST_RESPONSE_HEADERS_POLICIES, + [], + plugins, + ) + + @_overload + def list_streaming_distributions( + self, + request: _models.ListStreamingDistributionsInput + | _models.ListStreamingDistributionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStreamingDistributionsOutput: ... + + @_overload def list_streaming_distributions( self, - input: ListStreamingDistributionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStreamingDistributionsInputDict], ) -> ListStreamingDistributionsOutput: """ List streaming distributions. Args: - input: - An instance of `ListStreamingDistributionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3875,10 +6424,34 @@ def list_streaming_distributions( Returns: An instance of `ListStreamingDistributionsOutput`. """ - return self._invoke(input, _models.LIST_STREAMING_DISTRIBUTIONS, [], plugins) + def list_streaming_distributions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStreamingDistributionsOutput: + return self._invoke( + self._select_input(_models.LIST_STREAMING_DISTRIBUTIONS, args, kwargs), + _models.LIST_STREAMING_DISTRIBUTIONS, + [], + plugins, + ) + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List tags for a CloudFront resource. For more information, see [Tagging @@ -3887,8 +6460,6 @@ def list_tags_for_resource( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3898,19 +6469,38 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def list_trust_stores( + self, + request: _models.ListTrustStoresInput | _models.ListTrustStoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTrustStoresOutput: ... + + @_overload def list_trust_stores( self, - input: ListTrustStoresInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTrustStoresInputDict], ) -> ListTrustStoresOutput: """ Lists trust stores. Args: - input: - An instance of `ListTrustStoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3920,19 +6510,38 @@ def list_trust_stores( Returns: An instance of `ListTrustStoresOutput`. """ - return self._invoke(input, _models.LIST_TRUST_STORES, [], plugins) + def list_trust_stores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTrustStoresOutput: + return self._invoke( + self._select_input(_models.LIST_TRUST_STORES, args, kwargs), + _models.LIST_TRUST_STORES, + [], + plugins, + ) + + @_overload + def list_vpc_origins( + self, + request: _models.ListVpcOriginsInput | _models.ListVpcOriginsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVpcOriginsOutput: ... + + @_overload def list_vpc_origins( self, - input: ListVpcOriginsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVpcOriginsInputDict], ) -> ListVpcOriginsOutput: """ List the CloudFront VPC origins in your account. Args: - input: - An instance of `ListVpcOriginsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3942,17 +6551,39 @@ def list_vpc_origins( Returns: An instance of `ListVpcOriginsOutput`. """ - return self._invoke(input, _models.LIST_VPC_ORIGINS, [], plugins) + def list_vpc_origins( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVpcOriginsOutput: + return self._invoke( + self._select_input(_models.LIST_VPC_ORIGINS, args, kwargs), + _models.LIST_VPC_ORIGINS, + [], + plugins, + ) + + @_overload + def publish_connection_function( + self, + request: _models.PublishConnectionFunctionInput + | _models.PublishConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishConnectionFunctionOutput: ... + + @_overload def publish_connection_function( - self, input: PublishConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishConnectionFunctionInputDict], ) -> PublishConnectionFunctionOutput: """ Publishes a connection function. Args: - input: - An instance of `PublishConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3962,10 +6593,33 @@ def publish_connection_function( Returns: An instance of `PublishConnectionFunctionOutput`. """ - return self._invoke(input, _models.PUBLISH_CONNECTION_FUNCTION, [], plugins) + def publish_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishConnectionFunctionOutput: + return self._invoke( + self._select_input(_models.PUBLISH_CONNECTION_FUNCTION, args, kwargs), + _models.PUBLISH_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload def publish_function( - self, input: PublishFunctionInput, plugins: list[Plugin] | None = None + self, + request: _models.PublishFunctionInput | _models.PublishFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishFunctionOutput: ... + + @_overload + def publish_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishFunctionInputDict], ) -> PublishFunctionOutput: """ Publishes a CloudFront function by copying the function code from the @@ -3982,8 +6636,6 @@ def publish_function( `DescribeFunction`. Args: - input: - An instance of `PublishFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3993,17 +6645,38 @@ def publish_function( Returns: An instance of `PublishFunctionOutput`. """ - return self._invoke(input, _models.PUBLISH_FUNCTION, [], plugins) + def publish_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishFunctionOutput: + return self._invoke( + self._select_input(_models.PUBLISH_FUNCTION, args, kwargs), + _models.PUBLISH_FUNCTION, + [], + plugins, + ) + + @_overload + def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Creates a resource control policy for a given CloudFront resource. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4013,10 +6686,33 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Add tags to a CloudFront resource. For more information, see [Tagging a @@ -4024,8 +6720,6 @@ def tag_resource( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4035,17 +6729,39 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def test_connection_function( + self, + request: _models.TestConnectionFunctionInput + | _models.TestConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestConnectionFunctionOutput: ... + + @_overload def test_connection_function( - self, input: TestConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestConnectionFunctionInputDict], ) -> TestConnectionFunctionOutput: """ Tests a connection function. Args: - input: - An instance of `TestConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4055,10 +6771,33 @@ def test_connection_function( Returns: An instance of `TestConnectionFunctionOutput`. """ - return self._invoke(input, _models.TEST_CONNECTION_FUNCTION, [], plugins) + def test_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestConnectionFunctionOutput: + return self._invoke( + self._select_input(_models.TEST_CONNECTION_FUNCTION, args, kwargs), + _models.TEST_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload + def test_function( + self, + request: _models.TestFunctionInput | _models.TestFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TestFunctionOutput: ... + + @_overload def test_function( - self, input: TestFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TestFunctionInputDict], ) -> TestFunctionOutput: """ Tests a CloudFront function. @@ -4078,8 +6817,6 @@ def test_function( version, you can use `ListFunctions` and `DescribeFunction`. Args: - input: - An instance of `TestFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4089,10 +6826,33 @@ def test_function( Returns: An instance of `TestFunctionOutput`. """ - return self._invoke(input, _models.TEST_FUNCTION, [], plugins) + def test_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TestFunctionOutput: + return self._invoke( + self._select_input(_models.TEST_FUNCTION, args, kwargs), + _models.TEST_FUNCTION, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove tags from a CloudFront resource. For more information, see @@ -4101,8 +6861,6 @@ def untag_resource( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4112,17 +6870,39 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_anycast_ip_list( + self, + request: _models.UpdateAnycastIpListInput + | _models.UpdateAnycastIpListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAnycastIpListOutput: ... + + @_overload def update_anycast_ip_list( - self, input: UpdateAnycastIpListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAnycastIpListInputDict], ) -> UpdateAnycastIpListOutput: """ Updates an Anycast static IP list. Args: - input: - An instance of `UpdateAnycastIpListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4132,10 +6912,33 @@ def update_anycast_ip_list( Returns: An instance of `UpdateAnycastIpListOutput`. """ - return self._invoke(input, _models.UPDATE_ANYCAST_IP_LIST, [], plugins) + def update_anycast_ip_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAnycastIpListOutput: + return self._invoke( + self._select_input(_models.UPDATE_ANYCAST_IP_LIST, args, kwargs), + _models.UPDATE_ANYCAST_IP_LIST, + [], + plugins, + ) + + @_overload + def update_cache_policy( + self, + request: _models.UpdateCachePolicyInput | _models.UpdateCachePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCachePolicyOutput: ... + + @_overload def update_cache_policy( - self, input: UpdateCachePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCachePolicyInputDict], ) -> UpdateCachePolicyOutput: """ Updates a cache policy configuration. @@ -4160,8 +6963,6 @@ def update_cache_policy( are present in the origin headers. Args: - input: - An instance of `UpdateCachePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4171,19 +6972,39 @@ def update_cache_policy( Returns: An instance of `UpdateCachePolicyOutput`. """ - return self._invoke(input, _models.UPDATE_CACHE_POLICY, [], plugins) + def update_cache_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCachePolicyOutput: + return self._invoke( + self._select_input(_models.UPDATE_CACHE_POLICY, args, kwargs), + _models.UPDATE_CACHE_POLICY, + [], + plugins, + ) + + @_overload def update_cloud_front_origin_access_identity( self, - input: UpdateCloudFrontOriginAccessIdentityInput, + request: _models.UpdateCloudFrontOriginAccessIdentityInput + | _models.UpdateCloudFrontOriginAccessIdentityInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateCloudFrontOriginAccessIdentityOutput: ... + + @_overload + def update_cloud_front_origin_access_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCloudFrontOriginAccessIdentityInputDict], ) -> UpdateCloudFrontOriginAccessIdentityOutput: """ Update an origin access identity. Args: - input: - An instance of `UpdateCloudFrontOriginAccessIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4193,19 +7014,41 @@ def update_cloud_front_origin_access_identity( Returns: An instance of `UpdateCloudFrontOriginAccessIdentityOutput`. """ + + def update_cloud_front_origin_access_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCloudFrontOriginAccessIdentityOutput: return self._invoke( - input, _models.UPDATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, [], plugins + self._select_input( + _models.UPDATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, args, kwargs + ), + _models.UPDATE_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITY, + [], + plugins, ) + @_overload + def update_connection_function( + self, + request: _models.UpdateConnectionFunctionInput + | _models.UpdateConnectionFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateConnectionFunctionOutput: ... + + @_overload def update_connection_function( - self, input: UpdateConnectionFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateConnectionFunctionInputDict], ) -> UpdateConnectionFunctionOutput: """ Updates a connection function. Args: - input: - An instance of `UpdateConnectionFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4215,17 +7058,39 @@ def update_connection_function( Returns: An instance of `UpdateConnectionFunctionOutput`. """ - return self._invoke(input, _models.UPDATE_CONNECTION_FUNCTION, [], plugins) + def update_connection_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateConnectionFunctionOutput: + return self._invoke( + self._select_input(_models.UPDATE_CONNECTION_FUNCTION, args, kwargs), + _models.UPDATE_CONNECTION_FUNCTION, + [], + plugins, + ) + + @_overload + def update_connection_group( + self, + request: _models.UpdateConnectionGroupInput + | _models.UpdateConnectionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateConnectionGroupOutput: ... + + @_overload def update_connection_group( - self, input: UpdateConnectionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateConnectionGroupInputDict], ) -> UpdateConnectionGroupOutput: """ Updates a connection group. Args: - input: - An instance of `UpdateConnectionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4235,12 +7100,34 @@ def update_connection_group( Returns: An instance of `UpdateConnectionGroupOutput`. """ - return self._invoke(input, _models.UPDATE_CONNECTION_GROUP, [], plugins) + def update_connection_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateConnectionGroupOutput: + return self._invoke( + self._select_input(_models.UPDATE_CONNECTION_GROUP, args, kwargs), + _models.UPDATE_CONNECTION_GROUP, + [], + plugins, + ) + + @_overload + def update_continuous_deployment_policy( + self, + request: _models.UpdateContinuousDeploymentPolicyInput + | _models.UpdateContinuousDeploymentPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContinuousDeploymentPolicyOutput: ... + + @_overload def update_continuous_deployment_policy( self, - input: UpdateContinuousDeploymentPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContinuousDeploymentPolicyInputDict], ) -> UpdateContinuousDeploymentPolicyOutput: """ Updates a continuous deployment policy. You can update a continuous @@ -4264,8 +7151,6 @@ def update_continuous_deployment_policy( that you modified and those that you didn't. Args: - input: - An instance of `UpdateContinuousDeploymentPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4275,12 +7160,35 @@ def update_continuous_deployment_policy( Returns: An instance of `UpdateContinuousDeploymentPolicyOutput`. """ + + def update_continuous_deployment_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContinuousDeploymentPolicyOutput: return self._invoke( - input, _models.UPDATE_CONTINUOUS_DEPLOYMENT_POLICY, [], plugins + self._select_input( + _models.UPDATE_CONTINUOUS_DEPLOYMENT_POLICY, args, kwargs + ), + _models.UPDATE_CONTINUOUS_DEPLOYMENT_POLICY, + [], + plugins, ) + @_overload + def update_distribution( + self, + request: _models.UpdateDistributionInput | _models.UpdateDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDistributionOutput: ... + + @_overload def update_distribution( - self, input: UpdateDistributionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDistributionInputDict], ) -> UpdateDistributionOutput: """ Updates the configuration for a CloudFront distribution. @@ -4312,8 +7220,6 @@ def update_distribution( modified and also the ones that you didn't. Args: - input: - An instance of `UpdateDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4323,17 +7229,39 @@ def update_distribution( Returns: An instance of `UpdateDistributionOutput`. """ - return self._invoke(input, _models.UPDATE_DISTRIBUTION, [], plugins) + def update_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDistributionOutput: + return self._invoke( + self._select_input(_models.UPDATE_DISTRIBUTION, args, kwargs), + _models.UPDATE_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def update_distribution_tenant( + self, + request: _models.UpdateDistributionTenantInput + | _models.UpdateDistributionTenantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDistributionTenantOutput: ... + + @_overload def update_distribution_tenant( - self, input: UpdateDistributionTenantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDistributionTenantInputDict], ) -> UpdateDistributionTenantOutput: """ Updates a distribution tenant. Args: - input: - An instance of `UpdateDistributionTenantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4343,12 +7271,34 @@ def update_distribution_tenant( Returns: An instance of `UpdateDistributionTenantOutput`. """ - return self._invoke(input, _models.UPDATE_DISTRIBUTION_TENANT, [], plugins) + def update_distribution_tenant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDistributionTenantOutput: + return self._invoke( + self._select_input(_models.UPDATE_DISTRIBUTION_TENANT, args, kwargs), + _models.UPDATE_DISTRIBUTION_TENANT, + [], + plugins, + ) + + @_overload + def update_distribution_with_staging_config( + self, + request: _models.UpdateDistributionWithStagingConfigInput + | _models.UpdateDistributionWithStagingConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDistributionWithStagingConfigOutput: ... + + @_overload def update_distribution_with_staging_config( self, - input: UpdateDistributionWithStagingConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDistributionWithStagingConfigInputDict], ) -> UpdateDistributionWithStagingConfigOutput: """ Copies the staging distribution's configuration to its corresponding @@ -4373,8 +7323,6 @@ def update_distribution_with_staging_config( - [UpdateDistribution](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html) Args: - input: - An instance of `UpdateDistributionWithStagingConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4384,12 +7332,36 @@ def update_distribution_with_staging_config( Returns: An instance of `UpdateDistributionWithStagingConfigOutput`. """ + + def update_distribution_with_staging_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDistributionWithStagingConfigOutput: return self._invoke( - input, _models.UPDATE_DISTRIBUTION_WITH_STAGING_CONFIG, [], plugins + self._select_input( + _models.UPDATE_DISTRIBUTION_WITH_STAGING_CONFIG, args, kwargs + ), + _models.UPDATE_DISTRIBUTION_WITH_STAGING_CONFIG, + [], + plugins, ) + @_overload + def update_domain_association( + self, + request: _models.UpdateDomainAssociationInput + | _models.UpdateDomainAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDomainAssociationOutput: ... + + @_overload def update_domain_association( - self, input: UpdateDomainAssociationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDomainAssociationInputDict], ) -> UpdateDomainAssociationOutput: """ Note: @@ -4416,8 +7388,6 @@ def update_domain_association( in the *Amazon CloudFront Developer Guide*. Args: - input: - An instance of `UpdateDomainAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4427,19 +7397,39 @@ def update_domain_association( Returns: An instance of `UpdateDomainAssociationOutput`. """ - return self._invoke(input, _models.UPDATE_DOMAIN_ASSOCIATION, [], plugins) + def update_domain_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDomainAssociationOutput: + return self._invoke( + self._select_input(_models.UPDATE_DOMAIN_ASSOCIATION, args, kwargs), + _models.UPDATE_DOMAIN_ASSOCIATION, + [], + plugins, + ) + + @_overload + def update_field_level_encryption_config( + self, + request: _models.UpdateFieldLevelEncryptionConfigInput + | _models.UpdateFieldLevelEncryptionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFieldLevelEncryptionConfigOutput: ... + + @_overload def update_field_level_encryption_config( self, - input: UpdateFieldLevelEncryptionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFieldLevelEncryptionConfigInputDict], ) -> UpdateFieldLevelEncryptionConfigOutput: """ Update a field-level encryption configuration. Args: - input: - An instance of `UpdateFieldLevelEncryptionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4449,21 +7439,41 @@ def update_field_level_encryption_config( Returns: An instance of `UpdateFieldLevelEncryptionConfigOutput`. """ + + def update_field_level_encryption_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFieldLevelEncryptionConfigOutput: return self._invoke( - input, _models.UPDATE_FIELD_LEVEL_ENCRYPTION_CONFIG, [], plugins + self._select_input( + _models.UPDATE_FIELD_LEVEL_ENCRYPTION_CONFIG, args, kwargs + ), + _models.UPDATE_FIELD_LEVEL_ENCRYPTION_CONFIG, + [], + plugins, ) + @_overload + def update_field_level_encryption_profile( + self, + request: _models.UpdateFieldLevelEncryptionProfileInput + | _models.UpdateFieldLevelEncryptionProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFieldLevelEncryptionProfileOutput: ... + + @_overload def update_field_level_encryption_profile( self, - input: UpdateFieldLevelEncryptionProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFieldLevelEncryptionProfileInputDict], ) -> UpdateFieldLevelEncryptionProfileOutput: """ Update a field-level encryption profile. Args: - input: - An instance of `UpdateFieldLevelEncryptionProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4473,12 +7483,35 @@ def update_field_level_encryption_profile( Returns: An instance of `UpdateFieldLevelEncryptionProfileOutput`. """ + + def update_field_level_encryption_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFieldLevelEncryptionProfileOutput: return self._invoke( - input, _models.UPDATE_FIELD_LEVEL_ENCRYPTION_PROFILE, [], plugins + self._select_input( + _models.UPDATE_FIELD_LEVEL_ENCRYPTION_PROFILE, args, kwargs + ), + _models.UPDATE_FIELD_LEVEL_ENCRYPTION_PROFILE, + [], + plugins, ) + @_overload + def update_function( + self, + request: _models.UpdateFunctionInput | _models.UpdateFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionOutput: ... + + @_overload def update_function( - self, input: UpdateFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionInputDict], ) -> UpdateFunctionOutput: """ Updates a CloudFront function. @@ -4491,8 +7524,6 @@ def update_function( version, you can use `ListFunctions` and `DescribeFunction`. Args: - input: - An instance of `UpdateFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4502,10 +7533,33 @@ def update_function( Returns: An instance of `UpdateFunctionOutput`. """ - return self._invoke(input, _models.UPDATE_FUNCTION, [], plugins) + def update_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionOutput: + return self._invoke( + self._select_input(_models.UPDATE_FUNCTION, args, kwargs), + _models.UPDATE_FUNCTION, + [], + plugins, + ) + + @_overload + def update_key_group( + self, + request: _models.UpdateKeyGroupInput | _models.UpdateKeyGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKeyGroupOutput: ... + + @_overload def update_key_group( - self, input: UpdateKeyGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKeyGroupInputDict], ) -> UpdateKeyGroupOutput: """ Updates a key group. @@ -4523,8 +7577,6 @@ def update_key_group( the fields that you modified and those that you didn't. Args: - input: - An instance of `UpdateKeyGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4534,17 +7586,39 @@ def update_key_group( Returns: An instance of `UpdateKeyGroupOutput`. """ - return self._invoke(input, _models.UPDATE_KEY_GROUP, [], plugins) + def update_key_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKeyGroupOutput: + return self._invoke( + self._select_input(_models.UPDATE_KEY_GROUP, args, kwargs), + _models.UPDATE_KEY_GROUP, + [], + plugins, + ) + + @_overload def update_key_value_store( - self, input: UpdateKeyValueStoreInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateKeyValueStoreInput + | _models.UpdateKeyValueStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKeyValueStoreOutput: ... + + @_overload + def update_key_value_store( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKeyValueStoreInputDict], ) -> UpdateKeyValueStoreOutput: """ Specifies the key value store to update. Args: - input: - An instance of `UpdateKeyValueStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4554,17 +7628,39 @@ def update_key_value_store( Returns: An instance of `UpdateKeyValueStoreOutput`. """ - return self._invoke(input, _models.UPDATE_KEY_VALUE_STORE, [], plugins) + def update_key_value_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKeyValueStoreOutput: + return self._invoke( + self._select_input(_models.UPDATE_KEY_VALUE_STORE, args, kwargs), + _models.UPDATE_KEY_VALUE_STORE, + [], + plugins, + ) + + @_overload + def update_origin_access_control( + self, + request: _models.UpdateOriginAccessControlInput + | _models.UpdateOriginAccessControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOriginAccessControlOutput: ... + + @_overload def update_origin_access_control( - self, input: UpdateOriginAccessControlInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOriginAccessControlInputDict], ) -> UpdateOriginAccessControlOutput: """ Updates a CloudFront origin access control. Args: - input: - An instance of `UpdateOriginAccessControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4574,10 +7670,34 @@ def update_origin_access_control( Returns: An instance of `UpdateOriginAccessControlOutput`. """ - return self._invoke(input, _models.UPDATE_ORIGIN_ACCESS_CONTROL, [], plugins) + def update_origin_access_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOriginAccessControlOutput: + return self._invoke( + self._select_input(_models.UPDATE_ORIGIN_ACCESS_CONTROL, args, kwargs), + _models.UPDATE_ORIGIN_ACCESS_CONTROL, + [], + plugins, + ) + + @_overload + def update_origin_request_policy( + self, + request: _models.UpdateOriginRequestPolicyInput + | _models.UpdateOriginRequestPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOriginRequestPolicyOutput: ... + + @_overload def update_origin_request_policy( - self, input: UpdateOriginRequestPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOriginRequestPolicyInputDict], ) -> UpdateOriginRequestPolicyOutput: """ Updates an origin request policy configuration. @@ -4597,8 +7717,6 @@ def update_origin_request_policy( and those that you didn't. Args: - input: - An instance of `UpdateOriginRequestPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4608,18 +7726,39 @@ def update_origin_request_policy( Returns: An instance of `UpdateOriginRequestPolicyOutput`. """ - return self._invoke(input, _models.UPDATE_ORIGIN_REQUEST_POLICY, [], plugins) + def update_origin_request_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOriginRequestPolicyOutput: + return self._invoke( + self._select_input(_models.UPDATE_ORIGIN_REQUEST_POLICY, args, kwargs), + _models.UPDATE_ORIGIN_REQUEST_POLICY, + [], + plugins, + ) + + @_overload + def update_public_key( + self, + request: _models.UpdatePublicKeyInput | _models.UpdatePublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePublicKeyOutput: ... + + @_overload def update_public_key( - self, input: UpdatePublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePublicKeyInputDict], ) -> UpdatePublicKeyOutput: """ Update public key information. Note that the only value you can change is the comment. Args: - input: - An instance of `UpdatePublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4629,12 +7768,34 @@ def update_public_key( Returns: An instance of `UpdatePublicKeyOutput`. """ - return self._invoke(input, _models.UPDATE_PUBLIC_KEY, [], plugins) + def update_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePublicKeyOutput: + return self._invoke( + self._select_input(_models.UPDATE_PUBLIC_KEY, args, kwargs), + _models.UPDATE_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + def update_realtime_log_config( + self, + request: _models.UpdateRealtimeLogConfigInput + | _models.UpdateRealtimeLogConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRealtimeLogConfigOutput: ... + + @_overload def update_realtime_log_config( self, - input: UpdateRealtimeLogConfigInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRealtimeLogConfigInputDict], ) -> UpdateRealtimeLogConfigOutput: """ Updates a real-time log configuration. @@ -4657,8 +7818,6 @@ def update_realtime_log_config( You cannot update a real-time log configuration's `Name` or `ARN`. Args: - input: - An instance of `UpdateRealtimeLogConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4668,12 +7827,34 @@ def update_realtime_log_config( Returns: An instance of `UpdateRealtimeLogConfigOutput`. """ - return self._invoke(input, _models.UPDATE_REALTIME_LOG_CONFIG, [], plugins) + def update_realtime_log_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRealtimeLogConfigOutput: + return self._invoke( + self._select_input(_models.UPDATE_REALTIME_LOG_CONFIG, args, kwargs), + _models.UPDATE_REALTIME_LOG_CONFIG, + [], + plugins, + ) + + @_overload + def update_response_headers_policy( + self, + request: _models.UpdateResponseHeadersPolicyInput + | _models.UpdateResponseHeadersPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateResponseHeadersPolicyOutput: ... + + @_overload def update_response_headers_policy( self, - input: UpdateResponseHeadersPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateResponseHeadersPolicyInputDict], ) -> UpdateResponseHeadersPolicyOutput: """ Updates a response headers policy. @@ -4693,8 +7874,6 @@ def update_response_headers_policy( and those that you didn't. Args: - input: - An instance of `UpdateResponseHeadersPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4704,19 +7883,39 @@ def update_response_headers_policy( Returns: An instance of `UpdateResponseHeadersPolicyOutput`. """ - return self._invoke(input, _models.UPDATE_RESPONSE_HEADERS_POLICY, [], plugins) + def update_response_headers_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateResponseHeadersPolicyOutput: + return self._invoke( + self._select_input(_models.UPDATE_RESPONSE_HEADERS_POLICY, args, kwargs), + _models.UPDATE_RESPONSE_HEADERS_POLICY, + [], + plugins, + ) + + @_overload + def update_streaming_distribution( + self, + request: _models.UpdateStreamingDistributionInput + | _models.UpdateStreamingDistributionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStreamingDistributionOutput: ... + + @_overload def update_streaming_distribution( self, - input: UpdateStreamingDistributionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStreamingDistributionInputDict], ) -> UpdateStreamingDistributionOutput: """ Update a streaming distribution. Args: - input: - An instance of `UpdateStreamingDistributionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4726,17 +7925,38 @@ def update_streaming_distribution( Returns: An instance of `UpdateStreamingDistributionOutput`. """ - return self._invoke(input, _models.UPDATE_STREAMING_DISTRIBUTION, [], plugins) + def update_streaming_distribution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStreamingDistributionOutput: + return self._invoke( + self._select_input(_models.UPDATE_STREAMING_DISTRIBUTION, args, kwargs), + _models.UPDATE_STREAMING_DISTRIBUTION, + [], + plugins, + ) + + @_overload + def update_trust_store( + self, + request: _models.UpdateTrustStoreInput | _models.UpdateTrustStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTrustStoreOutput: ... + + @_overload def update_trust_store( - self, input: UpdateTrustStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTrustStoreInputDict], ) -> UpdateTrustStoreOutput: """ Updates a trust store. Args: - input: - An instance of `UpdateTrustStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4746,17 +7966,38 @@ def update_trust_store( Returns: An instance of `UpdateTrustStoreOutput`. """ - return self._invoke(input, _models.UPDATE_TRUST_STORE, [], plugins) + def update_trust_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTrustStoreOutput: + return self._invoke( + self._select_input(_models.UPDATE_TRUST_STORE, args, kwargs), + _models.UPDATE_TRUST_STORE, + [], + plugins, + ) + + @_overload + def update_vpc_origin( + self, + request: _models.UpdateVpcOriginInput | _models.UpdateVpcOriginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateVpcOriginOutput: ... + + @_overload def update_vpc_origin( - self, input: UpdateVpcOriginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateVpcOriginInputDict], ) -> UpdateVpcOriginOutput: """ Update an Amazon CloudFront VPC origin in your account. Args: - input: - An instance of `UpdateVpcOriginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4766,10 +8007,34 @@ def update_vpc_origin( Returns: An instance of `UpdateVpcOriginOutput`. """ - return self._invoke(input, _models.UPDATE_VPC_ORIGIN, [], plugins) + def update_vpc_origin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateVpcOriginOutput: + return self._invoke( + self._select_input(_models.UPDATE_VPC_ORIGIN, args, kwargs), + _models.UPDATE_VPC_ORIGIN, + [], + plugins, + ) + + @_overload + def verify_dns_configuration( + self, + request: _models.VerifyDnsConfigurationInput + | _models.VerifyDnsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> VerifyDnsConfigurationOutput: ... + + @_overload def verify_dns_configuration( - self, input: VerifyDnsConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.VerifyDnsConfigurationInputDict], ) -> VerifyDnsConfigurationOutput: """ Verify the DNS configuration for your domain names. This API operation @@ -4779,8 +8044,6 @@ def verify_dns_configuration( issues. Args: - input: - An instance of `VerifyDnsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4790,7 +8053,16 @@ def verify_dns_configuration( Returns: An instance of `VerifyDnsConfigurationOutput`. """ - return self._invoke(input, _models.VERIFY_DNS_CONFIGURATION, [], plugins) + + def verify_dns_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> VerifyDnsConfigurationOutput: + return self._invoke( + self._select_input(_models.VERIFY_DNS_CONFIGURATION, args, kwargs), + _models.VERIFY_DNS_CONFIGURATION, + [], + plugins, + ) def _new_config(self) -> CloudFrontConfig: return CloudFrontConfig.resolve() diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/models.pyi b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/models.pyi index 7ef92c262..06db03107 100644 --- a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/models.pyi +++ b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/models.pyi @@ -12,49 +12,67 @@ from ._private.models_0 import ( ActiveTrustedKeyGroups as ActiveTrustedKeyGroups, ActiveTrustedSigners as ActiveTrustedSigners, Aliases as Aliases, + AliasesDict as AliasesDict, AliasICPRecordal as AliasICPRecordal, AllowedMethods as AllowedMethods, + AllowedMethodsDict as AllowedMethodsDict, AnycastIpList as AnycastIpList, AnycastIpListCollection as AnycastIpListCollection, AnycastIpListSummary as AnycastIpListSummary, AssociateAliasInput as AssociateAliasInput, + AssociateAliasInputDict as AssociateAliasInputDict, AssociateAliasOutput as AssociateAliasOutput, AssociateDistributionTenantWebACLInput as AssociateDistributionTenantWebACLInput, + AssociateDistributionTenantWebACLInputDict as AssociateDistributionTenantWebACLInputDict, AssociateDistributionTenantWebACLOutput as AssociateDistributionTenantWebACLOutput, AssociateDistributionWebACLInput as AssociateDistributionWebACLInput, + AssociateDistributionWebACLInputDict as AssociateDistributionWebACLInputDict, AssociateDistributionWebACLOutput as AssociateDistributionWebACLOutput, BatchTooLarge as BatchTooLarge, CaCertificatesBundleS3Location as CaCertificatesBundleS3Location, + CaCertificatesBundleS3LocationDict as CaCertificatesBundleS3LocationDict, CaCertificatesBundleSourceCaCertificatesBundleS3Location as CaCertificatesBundleSourceCaCertificatesBundleS3Location, CaCertificatesBundleSourceUnknown as CaCertificatesBundleSourceUnknown, CaCertificatesBundleSource as CaCertificatesBundleSource, _CaCertificatesBundleSourceDeserializer as _CaCertificatesBundleSourceDeserializer, + CaCertificatesBundleSourceCaCertificatesBundleS3LocationDict as CaCertificatesBundleSourceCaCertificatesBundleS3LocationDict, + CaCertificatesBundleSourceDict as CaCertificatesBundleSourceDict, CacheBehavior as CacheBehavior, + CacheBehaviorDict as CacheBehaviorDict, CacheBehaviors as CacheBehaviors, + CacheBehaviorsDict as CacheBehaviorsDict, CachedMethods as CachedMethods, + CachedMethodsDict as CachedMethodsDict, CachePolicy as CachePolicy, CachePolicyAlreadyExists as CachePolicyAlreadyExists, CachePolicyConfig as CachePolicyConfig, + CachePolicyConfigDict as CachePolicyConfigDict, CachePolicyCookieBehavior as CachePolicyCookieBehavior, CachePolicyCookiesConfig as CachePolicyCookiesConfig, + CachePolicyCookiesConfigDict as CachePolicyCookiesConfigDict, CachePolicyHeaderBehavior as CachePolicyHeaderBehavior, CachePolicyHeadersConfig as CachePolicyHeadersConfig, + CachePolicyHeadersConfigDict as CachePolicyHeadersConfigDict, CachePolicyInUse as CachePolicyInUse, CachePolicyList as CachePolicyList, CachePolicyQueryStringBehavior as CachePolicyQueryStringBehavior, CachePolicyQueryStringsConfig as CachePolicyQueryStringsConfig, + CachePolicyQueryStringsConfigDict as CachePolicyQueryStringsConfigDict, CachePolicySummary as CachePolicySummary, CachePolicyType as CachePolicyType, CacheTagConfig as CacheTagConfig, + CacheTagConfigDict as CacheTagConfigDict, CannotChangeImmutablePublicKeyFields as CannotChangeImmutablePublicKeyFields, CannotDeleteEntityWhileInUse as CannotDeleteEntityWhileInUse, CannotUpdateEntityWhileInUse as CannotUpdateEntityWhileInUse, Certificate as Certificate, + CertificateDict as CertificateDict, CertificateSource as CertificateSource, CertificateTransparencyLoggingPreference as CertificateTransparencyLoggingPreference, CloudFrontOriginAccessIdentity as CloudFrontOriginAccessIdentity, CloudFrontOriginAccessIdentityAlreadyExists as CloudFrontOriginAccessIdentityAlreadyExists, CloudFrontOriginAccessIdentityConfig as CloudFrontOriginAccessIdentityConfig, + CloudFrontOriginAccessIdentityConfigDict as CloudFrontOriginAccessIdentityConfigDict, CloudFrontOriginAccessIdentityInUse as CloudFrontOriginAccessIdentityInUse, CloudFrontOriginAccessIdentityList as CloudFrontOriginAccessIdentityList, CloudFrontOriginAccessIdentitySummary as CloudFrontOriginAccessIdentitySummary, @@ -62,167 +80,246 @@ from ._private.models_0 import ( ConflictingAlias as ConflictingAlias, ConflictingAliasesList as ConflictingAliasesList, ConnectionFunctionAssociation as ConnectionFunctionAssociation, + ConnectionFunctionAssociationDict as ConnectionFunctionAssociationDict, ConnectionFunctionSummary as ConnectionFunctionSummary, ConnectionFunctionTestResult as ConnectionFunctionTestResult, ConnectionGroup as ConnectionGroup, ConnectionGroupAssociationFilter as ConnectionGroupAssociationFilter, + ConnectionGroupAssociationFilterDict as ConnectionGroupAssociationFilterDict, ConnectionGroupSummary as ConnectionGroupSummary, ConnectionMode as ConnectionMode, ContentTypeProfile as ContentTypeProfile, + ContentTypeProfileDict as ContentTypeProfileDict, ContentTypeProfileConfig as ContentTypeProfileConfig, + ContentTypeProfileConfigDict as ContentTypeProfileConfigDict, ContentTypeProfiles as ContentTypeProfiles, + ContentTypeProfilesDict as ContentTypeProfilesDict, ContinuousDeploymentPolicy as ContinuousDeploymentPolicy, ContinuousDeploymentPolicyAlreadyExists as ContinuousDeploymentPolicyAlreadyExists, ContinuousDeploymentPolicyConfig as ContinuousDeploymentPolicyConfig, + ContinuousDeploymentPolicyConfigDict as ContinuousDeploymentPolicyConfigDict, ContinuousDeploymentPolicyInUse as ContinuousDeploymentPolicyInUse, ContinuousDeploymentPolicyList as ContinuousDeploymentPolicyList, ContinuousDeploymentPolicySummary as ContinuousDeploymentPolicySummary, ContinuousDeploymentPolicyType as ContinuousDeploymentPolicyType, ContinuousDeploymentSingleHeaderConfig as ContinuousDeploymentSingleHeaderConfig, + ContinuousDeploymentSingleHeaderConfigDict as ContinuousDeploymentSingleHeaderConfigDict, ContinuousDeploymentSingleWeightConfig as ContinuousDeploymentSingleWeightConfig, + ContinuousDeploymentSingleWeightConfigDict as ContinuousDeploymentSingleWeightConfigDict, CookieNames as CookieNames, + CookieNamesDict as CookieNamesDict, CookiePreference as CookiePreference, + CookiePreferenceDict as CookiePreferenceDict, CopyDistributionInput as CopyDistributionInput, + CopyDistributionInputDict as CopyDistributionInputDict, CopyDistributionOutput as CopyDistributionOutput, CreateAnycastIpListInput as CreateAnycastIpListInput, + CreateAnycastIpListInputDict as CreateAnycastIpListInputDict, CreateAnycastIpListOutput as CreateAnycastIpListOutput, CreateCachePolicyInput as CreateCachePolicyInput, + CreateCachePolicyInputDict as CreateCachePolicyInputDict, CreateCachePolicyOutput as CreateCachePolicyOutput, CreateCloudFrontOriginAccessIdentityInput as CreateCloudFrontOriginAccessIdentityInput, + CreateCloudFrontOriginAccessIdentityInputDict as CreateCloudFrontOriginAccessIdentityInputDict, CreateCloudFrontOriginAccessIdentityOutput as CreateCloudFrontOriginAccessIdentityOutput, CreateConnectionFunctionInput as CreateConnectionFunctionInput, + CreateConnectionFunctionInputDict as CreateConnectionFunctionInputDict, CreateConnectionFunctionOutput as CreateConnectionFunctionOutput, CreateConnectionGroupInput as CreateConnectionGroupInput, + CreateConnectionGroupInputDict as CreateConnectionGroupInputDict, CreateConnectionGroupOutput as CreateConnectionGroupOutput, CreateContinuousDeploymentPolicyInput as CreateContinuousDeploymentPolicyInput, + CreateContinuousDeploymentPolicyInputDict as CreateContinuousDeploymentPolicyInputDict, CreateContinuousDeploymentPolicyOutput as CreateContinuousDeploymentPolicyOutput, CreateDistributionInput as CreateDistributionInput, + CreateDistributionInputDict as CreateDistributionInputDict, CreateDistributionOutput as CreateDistributionOutput, CreateDistributionTenantInput as CreateDistributionTenantInput, + CreateDistributionTenantInputDict as CreateDistributionTenantInputDict, CreateDistributionTenantOutput as CreateDistributionTenantOutput, CreateDistributionWithTagsInput as CreateDistributionWithTagsInput, + CreateDistributionWithTagsInputDict as CreateDistributionWithTagsInputDict, CreateDistributionWithTagsOutput as CreateDistributionWithTagsOutput, CreateFieldLevelEncryptionConfigInput as CreateFieldLevelEncryptionConfigInput, + CreateFieldLevelEncryptionConfigInputDict as CreateFieldLevelEncryptionConfigInputDict, CreateFieldLevelEncryptionConfigOutput as CreateFieldLevelEncryptionConfigOutput, CreateFieldLevelEncryptionProfileInput as CreateFieldLevelEncryptionProfileInput, + CreateFieldLevelEncryptionProfileInputDict as CreateFieldLevelEncryptionProfileInputDict, CreateFieldLevelEncryptionProfileOutput as CreateFieldLevelEncryptionProfileOutput, CreateFunctionInput as CreateFunctionInput, + CreateFunctionInputDict as CreateFunctionInputDict, CreateFunctionOutput as CreateFunctionOutput, CreateInvalidationForDistributionTenantInput as CreateInvalidationForDistributionTenantInput, + CreateInvalidationForDistributionTenantInputDict as CreateInvalidationForDistributionTenantInputDict, CreateInvalidationForDistributionTenantOutput as CreateInvalidationForDistributionTenantOutput, CreateInvalidationInput as CreateInvalidationInput, + CreateInvalidationInputDict as CreateInvalidationInputDict, CreateInvalidationOutput as CreateInvalidationOutput, CreateKeyGroupInput as CreateKeyGroupInput, + CreateKeyGroupInputDict as CreateKeyGroupInputDict, CreateKeyGroupOutput as CreateKeyGroupOutput, CreateKeyValueStoreInput as CreateKeyValueStoreInput, + CreateKeyValueStoreInputDict as CreateKeyValueStoreInputDict, CreateKeyValueStoreOutput as CreateKeyValueStoreOutput, CreateMonitoringSubscriptionInput as CreateMonitoringSubscriptionInput, + CreateMonitoringSubscriptionInputDict as CreateMonitoringSubscriptionInputDict, CreateMonitoringSubscriptionOutput as CreateMonitoringSubscriptionOutput, CreateOriginAccessControlInput as CreateOriginAccessControlInput, + CreateOriginAccessControlInputDict as CreateOriginAccessControlInputDict, CreateOriginAccessControlOutput as CreateOriginAccessControlOutput, CreateOriginRequestPolicyInput as CreateOriginRequestPolicyInput, + CreateOriginRequestPolicyInputDict as CreateOriginRequestPolicyInputDict, CreateOriginRequestPolicyOutput as CreateOriginRequestPolicyOutput, CreatePublicKeyInput as CreatePublicKeyInput, + CreatePublicKeyInputDict as CreatePublicKeyInputDict, CreatePublicKeyOutput as CreatePublicKeyOutput, CreateRealtimeLogConfigInput as CreateRealtimeLogConfigInput, + CreateRealtimeLogConfigInputDict as CreateRealtimeLogConfigInputDict, CreateRealtimeLogConfigOutput as CreateRealtimeLogConfigOutput, CreateResponseHeadersPolicyInput as CreateResponseHeadersPolicyInput, + CreateResponseHeadersPolicyInputDict as CreateResponseHeadersPolicyInputDict, CreateResponseHeadersPolicyOutput as CreateResponseHeadersPolicyOutput, CreateStreamingDistributionInput as CreateStreamingDistributionInput, + CreateStreamingDistributionInputDict as CreateStreamingDistributionInputDict, CreateStreamingDistributionOutput as CreateStreamingDistributionOutput, CreateStreamingDistributionWithTagsInput as CreateStreamingDistributionWithTagsInput, + CreateStreamingDistributionWithTagsInputDict as CreateStreamingDistributionWithTagsInputDict, CreateStreamingDistributionWithTagsOutput as CreateStreamingDistributionWithTagsOutput, CreateTrustStoreInput as CreateTrustStoreInput, + CreateTrustStoreInputDict as CreateTrustStoreInputDict, CreateTrustStoreOutput as CreateTrustStoreOutput, CreateVpcOriginInput as CreateVpcOriginInput, + CreateVpcOriginInputDict as CreateVpcOriginInputDict, CreateVpcOriginOutput as CreateVpcOriginOutput, CustomErrorResponse as CustomErrorResponse, + CustomErrorResponseDict as CustomErrorResponseDict, CustomErrorResponses as CustomErrorResponses, + CustomErrorResponsesDict as CustomErrorResponsesDict, CustomHeaders as CustomHeaders, + CustomHeadersDict as CustomHeadersDict, CustomizationActionType as CustomizationActionType, Customizations as Customizations, + CustomizationsDict as CustomizationsDict, CustomOriginConfig as CustomOriginConfig, + CustomOriginConfigDict as CustomOriginConfigDict, DefaultCacheBehavior as DefaultCacheBehavior, + DefaultCacheBehaviorDict as DefaultCacheBehaviorDict, DeleteAnycastIpListInput as DeleteAnycastIpListInput, + DeleteAnycastIpListInputDict as DeleteAnycastIpListInputDict, DeleteAnycastIpListOutput as DeleteAnycastIpListOutput, DeleteCachePolicyInput as DeleteCachePolicyInput, + DeleteCachePolicyInputDict as DeleteCachePolicyInputDict, DeleteCachePolicyOutput as DeleteCachePolicyOutput, DeleteCloudFrontOriginAccessIdentityInput as DeleteCloudFrontOriginAccessIdentityInput, + DeleteCloudFrontOriginAccessIdentityInputDict as DeleteCloudFrontOriginAccessIdentityInputDict, DeleteCloudFrontOriginAccessIdentityOutput as DeleteCloudFrontOriginAccessIdentityOutput, DeleteConnectionFunctionInput as DeleteConnectionFunctionInput, + DeleteConnectionFunctionInputDict as DeleteConnectionFunctionInputDict, DeleteConnectionFunctionOutput as DeleteConnectionFunctionOutput, DeleteConnectionGroupInput as DeleteConnectionGroupInput, + DeleteConnectionGroupInputDict as DeleteConnectionGroupInputDict, DeleteConnectionGroupOutput as DeleteConnectionGroupOutput, DeleteContinuousDeploymentPolicyInput as DeleteContinuousDeploymentPolicyInput, + DeleteContinuousDeploymentPolicyInputDict as DeleteContinuousDeploymentPolicyInputDict, DeleteContinuousDeploymentPolicyOutput as DeleteContinuousDeploymentPolicyOutput, DeleteDistributionInput as DeleteDistributionInput, + DeleteDistributionInputDict as DeleteDistributionInputDict, DeleteDistributionOutput as DeleteDistributionOutput, DeleteDistributionTenantInput as DeleteDistributionTenantInput, + DeleteDistributionTenantInputDict as DeleteDistributionTenantInputDict, DeleteDistributionTenantOutput as DeleteDistributionTenantOutput, DeleteFieldLevelEncryptionConfigInput as DeleteFieldLevelEncryptionConfigInput, + DeleteFieldLevelEncryptionConfigInputDict as DeleteFieldLevelEncryptionConfigInputDict, DeleteFieldLevelEncryptionConfigOutput as DeleteFieldLevelEncryptionConfigOutput, DeleteFieldLevelEncryptionProfileInput as DeleteFieldLevelEncryptionProfileInput, + DeleteFieldLevelEncryptionProfileInputDict as DeleteFieldLevelEncryptionProfileInputDict, DeleteFieldLevelEncryptionProfileOutput as DeleteFieldLevelEncryptionProfileOutput, DeleteFunctionInput as DeleteFunctionInput, + DeleteFunctionInputDict as DeleteFunctionInputDict, DeleteFunctionOutput as DeleteFunctionOutput, DeleteKeyGroupInput as DeleteKeyGroupInput, + DeleteKeyGroupInputDict as DeleteKeyGroupInputDict, DeleteKeyGroupOutput as DeleteKeyGroupOutput, DeleteKeyValueStoreInput as DeleteKeyValueStoreInput, + DeleteKeyValueStoreInputDict as DeleteKeyValueStoreInputDict, DeleteKeyValueStoreOutput as DeleteKeyValueStoreOutput, DeleteMonitoringSubscriptionInput as DeleteMonitoringSubscriptionInput, + DeleteMonitoringSubscriptionInputDict as DeleteMonitoringSubscriptionInputDict, DeleteMonitoringSubscriptionOutput as DeleteMonitoringSubscriptionOutput, DeleteOriginAccessControlInput as DeleteOriginAccessControlInput, + DeleteOriginAccessControlInputDict as DeleteOriginAccessControlInputDict, DeleteOriginAccessControlOutput as DeleteOriginAccessControlOutput, DeleteOriginRequestPolicyInput as DeleteOriginRequestPolicyInput, + DeleteOriginRequestPolicyInputDict as DeleteOriginRequestPolicyInputDict, DeleteOriginRequestPolicyOutput as DeleteOriginRequestPolicyOutput, DeletePublicKeyInput as DeletePublicKeyInput, + DeletePublicKeyInputDict as DeletePublicKeyInputDict, DeletePublicKeyOutput as DeletePublicKeyOutput, DeleteRealtimeLogConfigInput as DeleteRealtimeLogConfigInput, + DeleteRealtimeLogConfigInputDict as DeleteRealtimeLogConfigInputDict, DeleteRealtimeLogConfigOutput as DeleteRealtimeLogConfigOutput, DeleteResourcePolicyInput as DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict as DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput as DeleteResourcePolicyOutput, DeleteResponseHeadersPolicyInput as DeleteResponseHeadersPolicyInput, + DeleteResponseHeadersPolicyInputDict as DeleteResponseHeadersPolicyInputDict, DeleteResponseHeadersPolicyOutput as DeleteResponseHeadersPolicyOutput, DeleteStreamingDistributionInput as DeleteStreamingDistributionInput, + DeleteStreamingDistributionInputDict as DeleteStreamingDistributionInputDict, DeleteStreamingDistributionOutput as DeleteStreamingDistributionOutput, DeleteTrustStoreInput as DeleteTrustStoreInput, + DeleteTrustStoreInputDict as DeleteTrustStoreInputDict, DeleteTrustStoreOutput as DeleteTrustStoreOutput, DeleteVpcOriginInput as DeleteVpcOriginInput, + DeleteVpcOriginInputDict as DeleteVpcOriginInputDict, DeleteVpcOriginOutput as DeleteVpcOriginOutput, DescribeConnectionFunctionInput as DescribeConnectionFunctionInput, + DescribeConnectionFunctionInputDict as DescribeConnectionFunctionInputDict, DescribeConnectionFunctionOutput as DescribeConnectionFunctionOutput, DescribeFunctionInput as DescribeFunctionInput, + DescribeFunctionInputDict as DescribeFunctionInputDict, DescribeFunctionOutput as DescribeFunctionOutput, DescribeKeyValueStoreInput as DescribeKeyValueStoreInput, + DescribeKeyValueStoreInputDict as DescribeKeyValueStoreInputDict, DescribeKeyValueStoreOutput as DescribeKeyValueStoreOutput, DisassociateDistributionTenantWebACLInput as DisassociateDistributionTenantWebACLInput, + DisassociateDistributionTenantWebACLInputDict as DisassociateDistributionTenantWebACLInputDict, DisassociateDistributionTenantWebACLOutput as DisassociateDistributionTenantWebACLOutput, DisassociateDistributionWebACLInput as DisassociateDistributionWebACLInput, + DisassociateDistributionWebACLInputDict as DisassociateDistributionWebACLInputDict, DisassociateDistributionWebACLOutput as DisassociateDistributionWebACLOutput, Distribution as Distribution, DistributionAlreadyExists as DistributionAlreadyExists, DistributionConfig as DistributionConfig, + DistributionConfigDict as DistributionConfigDict, DistributionConfigWithTags as DistributionConfigWithTags, + DistributionConfigWithTagsDict as DistributionConfigWithTagsDict, DistributionIdList as DistributionIdList, DistributionIdOwner as DistributionIdOwner, DistributionIdOwnerList as DistributionIdOwnerList, DistributionList as DistributionList, DistributionNotDisabled as DistributionNotDisabled, DistributionResourceId as DistributionResourceId, + DistributionResourceIdDict as DistributionResourceIdDict, DistributionResourceType as DistributionResourceType, DistributionSummary as DistributionSummary, DistributionTenant as DistributionTenant, DistributionTenantAssociationFilter as DistributionTenantAssociationFilter, + DistributionTenantAssociationFilterDict as DistributionTenantAssociationFilterDict, DistributionTenantSummary as DistributionTenantSummary, DnsConfiguration as DnsConfiguration, DnsConfigurationStatus as DnsConfigurationStatus, DomainConflict as DomainConflict, DomainItem as DomainItem, + DomainItemDict as DomainItemDict, DomainResult as DomainResult, DomainStatus as DomainStatus, EncryptionEntities as EncryptionEntities, + EncryptionEntitiesDict as EncryptionEntitiesDict, EncryptionEntity as EncryptionEntity, + EncryptionEntityDict as EncryptionEntityDict, EndPoint as EndPoint, + EndPointDict as EndPointDict, EntityAlreadyExists as EntityAlreadyExists, EntityLimitExceeded as EntityLimitExceeded, EntityNotFound as EntityNotFound, @@ -230,25 +327,32 @@ from ._private.models_0 import ( EventType as EventType, FieldLevelEncryption as FieldLevelEncryption, FieldLevelEncryptionConfig as FieldLevelEncryptionConfig, + FieldLevelEncryptionConfigDict as FieldLevelEncryptionConfigDict, FieldLevelEncryptionConfigAlreadyExists as FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionConfigInUse as FieldLevelEncryptionConfigInUse, FieldLevelEncryptionList as FieldLevelEncryptionList, FieldLevelEncryptionProfile as FieldLevelEncryptionProfile, FieldLevelEncryptionProfileAlreadyExists as FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileConfig as FieldLevelEncryptionProfileConfig, + FieldLevelEncryptionProfileConfigDict as FieldLevelEncryptionProfileConfigDict, FieldLevelEncryptionProfileInUse as FieldLevelEncryptionProfileInUse, FieldLevelEncryptionProfileList as FieldLevelEncryptionProfileList, FieldLevelEncryptionProfileSizeExceeded as FieldLevelEncryptionProfileSizeExceeded, FieldLevelEncryptionProfileSummary as FieldLevelEncryptionProfileSummary, FieldLevelEncryptionSummary as FieldLevelEncryptionSummary, FieldPatterns as FieldPatterns, + FieldPatternsDict as FieldPatternsDict, Format as Format, ForwardedValues as ForwardedValues, + ForwardedValuesDict as ForwardedValuesDict, FrameOptionsList as FrameOptionsList, FunctionAlreadyExists as FunctionAlreadyExists, FunctionAssociation as FunctionAssociation, + FunctionAssociationDict as FunctionAssociationDict, FunctionAssociations as FunctionAssociations, + FunctionAssociationsDict as FunctionAssociationsDict, FunctionConfig as FunctionConfig, + FunctionConfigDict as FunctionConfigDict, FunctionInUse as FunctionInUse, FunctionList as FunctionList, FunctionMetadata as FunctionMetadata, @@ -257,91 +361,134 @@ from ._private.models_0 import ( FunctionStage as FunctionStage, FunctionSummary as FunctionSummary, GeoRestriction as GeoRestriction, + GeoRestrictionDict as GeoRestrictionDict, GeoRestrictionCustomization as GeoRestrictionCustomization, + GeoRestrictionCustomizationDict as GeoRestrictionCustomizationDict, GeoRestrictionType as GeoRestrictionType, GetAnycastIpListInput as GetAnycastIpListInput, + GetAnycastIpListInputDict as GetAnycastIpListInputDict, GetAnycastIpListOutput as GetAnycastIpListOutput, ) from ._private.models_1 import ( GetCachePolicyConfigInput as GetCachePolicyConfigInput, + GetCachePolicyConfigInputDict as GetCachePolicyConfigInputDict, GetCachePolicyConfigOutput as GetCachePolicyConfigOutput, GetCachePolicyInput as GetCachePolicyInput, + GetCachePolicyInputDict as GetCachePolicyInputDict, GetCachePolicyOutput as GetCachePolicyOutput, GetCloudFrontOriginAccessIdentityConfigInput as GetCloudFrontOriginAccessIdentityConfigInput, + GetCloudFrontOriginAccessIdentityConfigInputDict as GetCloudFrontOriginAccessIdentityConfigInputDict, GetCloudFrontOriginAccessIdentityConfigOutput as GetCloudFrontOriginAccessIdentityConfigOutput, GetCloudFrontOriginAccessIdentityInput as GetCloudFrontOriginAccessIdentityInput, + GetCloudFrontOriginAccessIdentityInputDict as GetCloudFrontOriginAccessIdentityInputDict, GetCloudFrontOriginAccessIdentityOutput as GetCloudFrontOriginAccessIdentityOutput, GetConnectionFunctionInput as GetConnectionFunctionInput, + GetConnectionFunctionInputDict as GetConnectionFunctionInputDict, GetConnectionFunctionOutput as GetConnectionFunctionOutput, GetConnectionGroupByRoutingEndpointInput as GetConnectionGroupByRoutingEndpointInput, + GetConnectionGroupByRoutingEndpointInputDict as GetConnectionGroupByRoutingEndpointInputDict, GetConnectionGroupByRoutingEndpointOutput as GetConnectionGroupByRoutingEndpointOutput, GetConnectionGroupInput as GetConnectionGroupInput, + GetConnectionGroupInputDict as GetConnectionGroupInputDict, GetConnectionGroupOutput as GetConnectionGroupOutput, GetContinuousDeploymentPolicyConfigInput as GetContinuousDeploymentPolicyConfigInput, + GetContinuousDeploymentPolicyConfigInputDict as GetContinuousDeploymentPolicyConfigInputDict, GetContinuousDeploymentPolicyConfigOutput as GetContinuousDeploymentPolicyConfigOutput, GetContinuousDeploymentPolicyInput as GetContinuousDeploymentPolicyInput, + GetContinuousDeploymentPolicyInputDict as GetContinuousDeploymentPolicyInputDict, GetContinuousDeploymentPolicyOutput as GetContinuousDeploymentPolicyOutput, GetDistributionConfigInput as GetDistributionConfigInput, + GetDistributionConfigInputDict as GetDistributionConfigInputDict, GetDistributionConfigOutput as GetDistributionConfigOutput, GetDistributionInput as GetDistributionInput, + GetDistributionInputDict as GetDistributionInputDict, GetDistributionOutput as GetDistributionOutput, GetDistributionTenantByDomainInput as GetDistributionTenantByDomainInput, + GetDistributionTenantByDomainInputDict as GetDistributionTenantByDomainInputDict, GetDistributionTenantByDomainOutput as GetDistributionTenantByDomainOutput, GetDistributionTenantInput as GetDistributionTenantInput, + GetDistributionTenantInputDict as GetDistributionTenantInputDict, GetDistributionTenantOutput as GetDistributionTenantOutput, GetFieldLevelEncryptionConfigInput as GetFieldLevelEncryptionConfigInput, + GetFieldLevelEncryptionConfigInputDict as GetFieldLevelEncryptionConfigInputDict, GetFieldLevelEncryptionConfigOutput as GetFieldLevelEncryptionConfigOutput, GetFieldLevelEncryptionInput as GetFieldLevelEncryptionInput, + GetFieldLevelEncryptionInputDict as GetFieldLevelEncryptionInputDict, GetFieldLevelEncryptionOutput as GetFieldLevelEncryptionOutput, GetFieldLevelEncryptionProfileConfigInput as GetFieldLevelEncryptionProfileConfigInput, + GetFieldLevelEncryptionProfileConfigInputDict as GetFieldLevelEncryptionProfileConfigInputDict, GetFieldLevelEncryptionProfileConfigOutput as GetFieldLevelEncryptionProfileConfigOutput, GetFieldLevelEncryptionProfileInput as GetFieldLevelEncryptionProfileInput, + GetFieldLevelEncryptionProfileInputDict as GetFieldLevelEncryptionProfileInputDict, GetFieldLevelEncryptionProfileOutput as GetFieldLevelEncryptionProfileOutput, GetFunctionInput as GetFunctionInput, + GetFunctionInputDict as GetFunctionInputDict, GetFunctionOutput as GetFunctionOutput, GetInvalidationForDistributionTenantInput as GetInvalidationForDistributionTenantInput, + GetInvalidationForDistributionTenantInputDict as GetInvalidationForDistributionTenantInputDict, GetInvalidationForDistributionTenantOutput as GetInvalidationForDistributionTenantOutput, GetInvalidationInput as GetInvalidationInput, + GetInvalidationInputDict as GetInvalidationInputDict, GetInvalidationOutput as GetInvalidationOutput, GetKeyGroupConfigInput as GetKeyGroupConfigInput, + GetKeyGroupConfigInputDict as GetKeyGroupConfigInputDict, GetKeyGroupConfigOutput as GetKeyGroupConfigOutput, GetKeyGroupInput as GetKeyGroupInput, + GetKeyGroupInputDict as GetKeyGroupInputDict, GetKeyGroupOutput as GetKeyGroupOutput, GetManagedCertificateDetailsInput as GetManagedCertificateDetailsInput, + GetManagedCertificateDetailsInputDict as GetManagedCertificateDetailsInputDict, GetManagedCertificateDetailsOutput as GetManagedCertificateDetailsOutput, GetMonitoringSubscriptionInput as GetMonitoringSubscriptionInput, + GetMonitoringSubscriptionInputDict as GetMonitoringSubscriptionInputDict, GetMonitoringSubscriptionOutput as GetMonitoringSubscriptionOutput, GetOriginAccessControlConfigInput as GetOriginAccessControlConfigInput, + GetOriginAccessControlConfigInputDict as GetOriginAccessControlConfigInputDict, GetOriginAccessControlConfigOutput as GetOriginAccessControlConfigOutput, GetOriginAccessControlInput as GetOriginAccessControlInput, + GetOriginAccessControlInputDict as GetOriginAccessControlInputDict, GetOriginAccessControlOutput as GetOriginAccessControlOutput, GetOriginRequestPolicyConfigInput as GetOriginRequestPolicyConfigInput, + GetOriginRequestPolicyConfigInputDict as GetOriginRequestPolicyConfigInputDict, GetOriginRequestPolicyConfigOutput as GetOriginRequestPolicyConfigOutput, GetOriginRequestPolicyInput as GetOriginRequestPolicyInput, + GetOriginRequestPolicyInputDict as GetOriginRequestPolicyInputDict, GetOriginRequestPolicyOutput as GetOriginRequestPolicyOutput, GetPublicKeyConfigInput as GetPublicKeyConfigInput, + GetPublicKeyConfigInputDict as GetPublicKeyConfigInputDict, GetPublicKeyConfigOutput as GetPublicKeyConfigOutput, GetPublicKeyInput as GetPublicKeyInput, + GetPublicKeyInputDict as GetPublicKeyInputDict, GetPublicKeyOutput as GetPublicKeyOutput, GetRealtimeLogConfigInput as GetRealtimeLogConfigInput, + GetRealtimeLogConfigInputDict as GetRealtimeLogConfigInputDict, GetRealtimeLogConfigOutput as GetRealtimeLogConfigOutput, GetResourcePolicyInput as GetResourcePolicyInput, + GetResourcePolicyInputDict as GetResourcePolicyInputDict, GetResourcePolicyOutput as GetResourcePolicyOutput, GetResponseHeadersPolicyConfigInput as GetResponseHeadersPolicyConfigInput, + GetResponseHeadersPolicyConfigInputDict as GetResponseHeadersPolicyConfigInputDict, GetResponseHeadersPolicyConfigOutput as GetResponseHeadersPolicyConfigOutput, GetResponseHeadersPolicyInput as GetResponseHeadersPolicyInput, + GetResponseHeadersPolicyInputDict as GetResponseHeadersPolicyInputDict, GetResponseHeadersPolicyOutput as GetResponseHeadersPolicyOutput, GetStreamingDistributionConfigInput as GetStreamingDistributionConfigInput, + GetStreamingDistributionConfigInputDict as GetStreamingDistributionConfigInputDict, GetStreamingDistributionConfigOutput as GetStreamingDistributionConfigOutput, GetStreamingDistributionInput as GetStreamingDistributionInput, + GetStreamingDistributionInputDict as GetStreamingDistributionInputDict, GetStreamingDistributionOutput as GetStreamingDistributionOutput, GetTrustStoreInput as GetTrustStoreInput, + GetTrustStoreInputDict as GetTrustStoreInputDict, GetTrustStoreOutput as GetTrustStoreOutput, GetVpcOriginInput as GetVpcOriginInput, + GetVpcOriginInputDict as GetVpcOriginInputDict, GetVpcOriginOutput as GetVpcOriginOutput, GrpcConfig as GrpcConfig, + GrpcConfigDict as GrpcConfigDict, Headers as Headers, + HeadersDict as HeadersDict, HttpVersion as HttpVersion, ICPRecordalStatus as ICPRecordalStatus, IllegalDelete as IllegalDelete, @@ -349,12 +496,14 @@ from ._private.models_1 import ( IllegalOriginAccessConfiguration as IllegalOriginAccessConfiguration, IllegalUpdate as IllegalUpdate, ImportSource as ImportSource, + ImportSourceDict as ImportSourceDict, ImportSourceType as ImportSourceType, InconsistentQuantities as InconsistentQuantities, InvalidArgument as InvalidArgument, InvalidAssociation as InvalidAssociation, Invalidation as Invalidation, InvalidationBatch as InvalidationBatch, + InvalidationBatchDict as InvalidationBatchDict, InvalidationList as InvalidationList, InvalidationSummary as InvalidationSummary, InvalidDefaultRootObject as InvalidDefaultRootObject, @@ -384,109 +533,158 @@ from ._private.models_1 import ( InvalidWebACLId as InvalidWebACLId, IpAddressType as IpAddressType, IpamCidrConfig as IpamCidrConfig, + IpamCidrConfigDict as IpamCidrConfigDict, IpamCidrStatus as IpamCidrStatus, IpamConfig as IpamConfig, ItemSelection as ItemSelection, KeyGroup as KeyGroup, KeyGroupAlreadyExists as KeyGroupAlreadyExists, KeyGroupConfig as KeyGroupConfig, + KeyGroupConfigDict as KeyGroupConfigDict, KeyGroupList as KeyGroupList, KeyGroupSummary as KeyGroupSummary, KeyPairIds as KeyPairIds, KeyValueStore as KeyValueStore, KeyValueStoreAssociation as KeyValueStoreAssociation, + KeyValueStoreAssociationDict as KeyValueStoreAssociationDict, KeyValueStoreAssociations as KeyValueStoreAssociations, + KeyValueStoreAssociationsDict as KeyValueStoreAssociationsDict, KeyValueStoreList as KeyValueStoreList, KGKeyPairIds as KGKeyPairIds, KinesisStreamConfig as KinesisStreamConfig, + KinesisStreamConfigDict as KinesisStreamConfigDict, LambdaFunctionAssociation as LambdaFunctionAssociation, + LambdaFunctionAssociationDict as LambdaFunctionAssociationDict, LambdaFunctionAssociations as LambdaFunctionAssociations, + LambdaFunctionAssociationsDict as LambdaFunctionAssociationsDict, ListAnycastIpListsInput as ListAnycastIpListsInput, + ListAnycastIpListsInputDict as ListAnycastIpListsInputDict, ListAnycastIpListsOutput as ListAnycastIpListsOutput, ListCachePoliciesInput as ListCachePoliciesInput, + ListCachePoliciesInputDict as ListCachePoliciesInputDict, ListCachePoliciesOutput as ListCachePoliciesOutput, ListCloudFrontOriginAccessIdentitiesInput as ListCloudFrontOriginAccessIdentitiesInput, + ListCloudFrontOriginAccessIdentitiesInputDict as ListCloudFrontOriginAccessIdentitiesInputDict, ListCloudFrontOriginAccessIdentitiesOutput as ListCloudFrontOriginAccessIdentitiesOutput, ListConflictingAliasesInput as ListConflictingAliasesInput, + ListConflictingAliasesInputDict as ListConflictingAliasesInputDict, ListConflictingAliasesOutput as ListConflictingAliasesOutput, ListConnectionFunctionsInput as ListConnectionFunctionsInput, + ListConnectionFunctionsInputDict as ListConnectionFunctionsInputDict, ListConnectionFunctionsOutput as ListConnectionFunctionsOutput, ListConnectionGroupsInput as ListConnectionGroupsInput, + ListConnectionGroupsInputDict as ListConnectionGroupsInputDict, ListConnectionGroupsOutput as ListConnectionGroupsOutput, ListContinuousDeploymentPoliciesInput as ListContinuousDeploymentPoliciesInput, + ListContinuousDeploymentPoliciesInputDict as ListContinuousDeploymentPoliciesInputDict, ListContinuousDeploymentPoliciesOutput as ListContinuousDeploymentPoliciesOutput, ListDistributionsByAnycastIpListIdInput as ListDistributionsByAnycastIpListIdInput, + ListDistributionsByAnycastIpListIdInputDict as ListDistributionsByAnycastIpListIdInputDict, ListDistributionsByAnycastIpListIdOutput as ListDistributionsByAnycastIpListIdOutput, ListDistributionsByCachePolicyIdInput as ListDistributionsByCachePolicyIdInput, + ListDistributionsByCachePolicyIdInputDict as ListDistributionsByCachePolicyIdInputDict, ListDistributionsByCachePolicyIdOutput as ListDistributionsByCachePolicyIdOutput, ListDistributionsByConnectionFunctionInput as ListDistributionsByConnectionFunctionInput, + ListDistributionsByConnectionFunctionInputDict as ListDistributionsByConnectionFunctionInputDict, ListDistributionsByConnectionFunctionOutput as ListDistributionsByConnectionFunctionOutput, ListDistributionsByConnectionModeInput as ListDistributionsByConnectionModeInput, + ListDistributionsByConnectionModeInputDict as ListDistributionsByConnectionModeInputDict, ListDistributionsByConnectionModeOutput as ListDistributionsByConnectionModeOutput, ListDistributionsByKeyGroupInput as ListDistributionsByKeyGroupInput, + ListDistributionsByKeyGroupInputDict as ListDistributionsByKeyGroupInputDict, ListDistributionsByKeyGroupOutput as ListDistributionsByKeyGroupOutput, ListDistributionsByOriginRequestPolicyIdInput as ListDistributionsByOriginRequestPolicyIdInput, + ListDistributionsByOriginRequestPolicyIdInputDict as ListDistributionsByOriginRequestPolicyIdInputDict, ListDistributionsByOriginRequestPolicyIdOutput as ListDistributionsByOriginRequestPolicyIdOutput, ListDistributionsByOwnedResourceInput as ListDistributionsByOwnedResourceInput, + ListDistributionsByOwnedResourceInputDict as ListDistributionsByOwnedResourceInputDict, ListDistributionsByOwnedResourceOutput as ListDistributionsByOwnedResourceOutput, ListDistributionsByRealtimeLogConfigInput as ListDistributionsByRealtimeLogConfigInput, + ListDistributionsByRealtimeLogConfigInputDict as ListDistributionsByRealtimeLogConfigInputDict, ListDistributionsByRealtimeLogConfigOutput as ListDistributionsByRealtimeLogConfigOutput, ListDistributionsByResponseHeadersPolicyIdInput as ListDistributionsByResponseHeadersPolicyIdInput, + ListDistributionsByResponseHeadersPolicyIdInputDict as ListDistributionsByResponseHeadersPolicyIdInputDict, ListDistributionsByResponseHeadersPolicyIdOutput as ListDistributionsByResponseHeadersPolicyIdOutput, ListDistributionsByTrustStoreInput as ListDistributionsByTrustStoreInput, + ListDistributionsByTrustStoreInputDict as ListDistributionsByTrustStoreInputDict, ListDistributionsByTrustStoreOutput as ListDistributionsByTrustStoreOutput, ListDistributionsByVpcOriginIdInput as ListDistributionsByVpcOriginIdInput, + ListDistributionsByVpcOriginIdInputDict as ListDistributionsByVpcOriginIdInputDict, ListDistributionsByVpcOriginIdOutput as ListDistributionsByVpcOriginIdOutput, ListDistributionsByWebACLIdInput as ListDistributionsByWebACLIdInput, + ListDistributionsByWebACLIdInputDict as ListDistributionsByWebACLIdInputDict, ListDistributionsByWebACLIdOutput as ListDistributionsByWebACLIdOutput, ListDistributionsInput as ListDistributionsInput, + ListDistributionsInputDict as ListDistributionsInputDict, ListDistributionsOutput as ListDistributionsOutput, ListDistributionTenantsByCustomizationInput as ListDistributionTenantsByCustomizationInput, + ListDistributionTenantsByCustomizationInputDict as ListDistributionTenantsByCustomizationInputDict, ListDistributionTenantsByCustomizationOutput as ListDistributionTenantsByCustomizationOutput, ListDistributionTenantsInput as ListDistributionTenantsInput, + ListDistributionTenantsInputDict as ListDistributionTenantsInputDict, ListDistributionTenantsOutput as ListDistributionTenantsOutput, ListDomainConflictsInput as ListDomainConflictsInput, + ListDomainConflictsInputDict as ListDomainConflictsInputDict, ListDomainConflictsOutput as ListDomainConflictsOutput, ListFieldLevelEncryptionConfigsInput as ListFieldLevelEncryptionConfigsInput, + ListFieldLevelEncryptionConfigsInputDict as ListFieldLevelEncryptionConfigsInputDict, ListFieldLevelEncryptionConfigsOutput as ListFieldLevelEncryptionConfigsOutput, ListFieldLevelEncryptionProfilesInput as ListFieldLevelEncryptionProfilesInput, + ListFieldLevelEncryptionProfilesInputDict as ListFieldLevelEncryptionProfilesInputDict, ListFieldLevelEncryptionProfilesOutput as ListFieldLevelEncryptionProfilesOutput, ListFunctionsInput as ListFunctionsInput, + ListFunctionsInputDict as ListFunctionsInputDict, ListFunctionsOutput as ListFunctionsOutput, ListInvalidationsForDistributionTenantInput as ListInvalidationsForDistributionTenantInput, + ListInvalidationsForDistributionTenantInputDict as ListInvalidationsForDistributionTenantInputDict, ListInvalidationsForDistributionTenantOutput as ListInvalidationsForDistributionTenantOutput, ListInvalidationsInput as ListInvalidationsInput, + ListInvalidationsInputDict as ListInvalidationsInputDict, ListInvalidationsOutput as ListInvalidationsOutput, ListKeyGroupsInput as ListKeyGroupsInput, + ListKeyGroupsInputDict as ListKeyGroupsInputDict, ListKeyGroupsOutput as ListKeyGroupsOutput, ListKeyValueStoresInput as ListKeyValueStoresInput, + ListKeyValueStoresInputDict as ListKeyValueStoresInputDict, ListKeyValueStoresOutput as ListKeyValueStoresOutput, ListOriginAccessControlsInput as ListOriginAccessControlsInput, + ListOriginAccessControlsInputDict as ListOriginAccessControlsInputDict, ListOriginAccessControlsOutput as ListOriginAccessControlsOutput, ListOriginRequestPoliciesInput as ListOriginRequestPoliciesInput, + ListOriginRequestPoliciesInputDict as ListOriginRequestPoliciesInputDict, ListOriginRequestPoliciesOutput as ListOriginRequestPoliciesOutput, ListPublicKeysInput as ListPublicKeysInput, + ListPublicKeysInputDict as ListPublicKeysInputDict, ListPublicKeysOutput as ListPublicKeysOutput, ListRealtimeLogConfigsInput as ListRealtimeLogConfigsInput, + ListRealtimeLogConfigsInputDict as ListRealtimeLogConfigsInputDict, ListRealtimeLogConfigsOutput as ListRealtimeLogConfigsOutput, ListResponseHeadersPoliciesInput as ListResponseHeadersPoliciesInput, + ListResponseHeadersPoliciesInputDict as ListResponseHeadersPoliciesInputDict, ListResponseHeadersPoliciesOutput as ListResponseHeadersPoliciesOutput, ListStreamingDistributionsInput as ListStreamingDistributionsInput, + ListStreamingDistributionsInputDict as ListStreamingDistributionsInputDict, ListStreamingDistributionsOutput as ListStreamingDistributionsOutput, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, ListTrustStoresInput as ListTrustStoresInput, + ListTrustStoresInputDict as ListTrustStoresInputDict, ListTrustStoresOutput as ListTrustStoresOutput, ListVpcOriginsInput as ListVpcOriginsInput, + ListVpcOriginsInputDict as ListVpcOriginsInputDict, ListVpcOriginsOutput as ListVpcOriginsOutput, LoggingConfig as LoggingConfig, + LoggingConfigDict as LoggingConfigDict, ManagedCertificateDetails as ManagedCertificateDetails, ManagedCertificateRequest as ManagedCertificateRequest, + ManagedCertificateRequestDict as ManagedCertificateRequestDict, ManagedCertificateStatus as ManagedCertificateStatus, Method as Method, MinimumProtocolVersion as MinimumProtocolVersion, MissingBody as MissingBody, MonitoringSubscription as MonitoringSubscription, + MonitoringSubscriptionDict as MonitoringSubscriptionDict, MonitoringSubscriptionAlreadyExists as MonitoringSubscriptionAlreadyExists, NoSuchCachePolicy as NoSuchCachePolicy, NoSuchCloudFrontOriginAccessIdentity as NoSuchCloudFrontOriginAccessIdentity, @@ -506,9 +704,11 @@ from ._private.models_1 import ( NoSuchResponseHeadersPolicy as NoSuchResponseHeadersPolicy, NoSuchStreamingDistribution as NoSuchStreamingDistribution, Origin as Origin, + OriginDict as OriginDict, OriginAccessControl as OriginAccessControl, OriginAccessControlAlreadyExists as OriginAccessControlAlreadyExists, OriginAccessControlConfig as OriginAccessControlConfig, + OriginAccessControlConfigDict as OriginAccessControlConfigDict, OriginAccessControlInUse as OriginAccessControlInUse, OriginAccessControlList as OriginAccessControlList, OriginAccessControlOriginTypes as OriginAccessControlOriginTypes, @@ -519,119 +719,183 @@ from ._private.models_1 import ( from ._private.models_2 import ( OriginAccessControlSummary as OriginAccessControlSummary, OriginCustomHeader as OriginCustomHeader, + OriginCustomHeaderDict as OriginCustomHeaderDict, OriginGroup as OriginGroup, + OriginGroupDict as OriginGroupDict, OriginGroupFailoverCriteria as OriginGroupFailoverCriteria, + OriginGroupFailoverCriteriaDict as OriginGroupFailoverCriteriaDict, OriginGroupMember as OriginGroupMember, + OriginGroupMemberDict as OriginGroupMemberDict, OriginGroupMembers as OriginGroupMembers, + OriginGroupMembersDict as OriginGroupMembersDict, OriginGroups as OriginGroups, + OriginGroupsDict as OriginGroupsDict, OriginGroupSelectionCriteria as OriginGroupSelectionCriteria, OriginMtlsConfig as OriginMtlsConfig, + OriginMtlsConfigDict as OriginMtlsConfigDict, OriginProtocolPolicy as OriginProtocolPolicy, OriginRequestPolicy as OriginRequestPolicy, OriginRequestPolicyAlreadyExists as OriginRequestPolicyAlreadyExists, OriginRequestPolicyConfig as OriginRequestPolicyConfig, + OriginRequestPolicyConfigDict as OriginRequestPolicyConfigDict, OriginRequestPolicyCookieBehavior as OriginRequestPolicyCookieBehavior, OriginRequestPolicyCookiesConfig as OriginRequestPolicyCookiesConfig, + OriginRequestPolicyCookiesConfigDict as OriginRequestPolicyCookiesConfigDict, OriginRequestPolicyHeaderBehavior as OriginRequestPolicyHeaderBehavior, OriginRequestPolicyHeadersConfig as OriginRequestPolicyHeadersConfig, + OriginRequestPolicyHeadersConfigDict as OriginRequestPolicyHeadersConfigDict, OriginRequestPolicyInUse as OriginRequestPolicyInUse, OriginRequestPolicyList as OriginRequestPolicyList, OriginRequestPolicyQueryStringBehavior as OriginRequestPolicyQueryStringBehavior, OriginRequestPolicyQueryStringsConfig as OriginRequestPolicyQueryStringsConfig, + OriginRequestPolicyQueryStringsConfigDict as OriginRequestPolicyQueryStringsConfigDict, OriginRequestPolicySummary as OriginRequestPolicySummary, OriginRequestPolicyType as OriginRequestPolicyType, Origins as Origins, + OriginsDict as OriginsDict, OriginShield as OriginShield, + OriginShieldDict as OriginShieldDict, OriginSslProtocols as OriginSslProtocols, + OriginSslProtocolsDict as OriginSslProtocolsDict, Parameter as Parameter, + ParameterDict as ParameterDict, ParameterDefinition as ParameterDefinition, + ParameterDefinitionDict as ParameterDefinitionDict, ParameterDefinitionSchema as ParameterDefinitionSchema, + ParameterDefinitionSchemaDict as ParameterDefinitionSchemaDict, ParametersInCacheKeyAndForwardedToOrigin as ParametersInCacheKeyAndForwardedToOrigin, + ParametersInCacheKeyAndForwardedToOriginDict as ParametersInCacheKeyAndForwardedToOriginDict, Paths as Paths, + PathsDict as PathsDict, PreconditionFailed as PreconditionFailed, PriceClass as PriceClass, PublicKey as PublicKey, PublicKeyAlreadyExists as PublicKeyAlreadyExists, PublicKeyConfig as PublicKeyConfig, + PublicKeyConfigDict as PublicKeyConfigDict, PublicKeyInUse as PublicKeyInUse, PublicKeyList as PublicKeyList, PublicKeySummary as PublicKeySummary, PublishConnectionFunctionInput as PublishConnectionFunctionInput, + PublishConnectionFunctionInputDict as PublishConnectionFunctionInputDict, PublishConnectionFunctionOutput as PublishConnectionFunctionOutput, PublishFunctionInput as PublishFunctionInput, + PublishFunctionInputDict as PublishFunctionInputDict, PublishFunctionOutput as PublishFunctionOutput, PutResourcePolicyInput as PutResourcePolicyInput, + PutResourcePolicyInputDict as PutResourcePolicyInputDict, PutResourcePolicyOutput as PutResourcePolicyOutput, QueryArgProfile as QueryArgProfile, + QueryArgProfileDict as QueryArgProfileDict, QueryArgProfileConfig as QueryArgProfileConfig, + QueryArgProfileConfigDict as QueryArgProfileConfigDict, QueryArgProfileEmpty as QueryArgProfileEmpty, QueryArgProfiles as QueryArgProfiles, + QueryArgProfilesDict as QueryArgProfilesDict, QueryStringCacheKeys as QueryStringCacheKeys, + QueryStringCacheKeysDict as QueryStringCacheKeysDict, QueryStringNames as QueryStringNames, + QueryStringNamesDict as QueryStringNamesDict, RealtimeLogConfig as RealtimeLogConfig, RealtimeLogConfigAlreadyExists as RealtimeLogConfigAlreadyExists, RealtimeLogConfigInUse as RealtimeLogConfigInUse, RealtimeLogConfigOwnerMismatch as RealtimeLogConfigOwnerMismatch, RealtimeLogConfigs as RealtimeLogConfigs, RealtimeMetricsSubscriptionConfig as RealtimeMetricsSubscriptionConfig, + RealtimeMetricsSubscriptionConfigDict as RealtimeMetricsSubscriptionConfigDict, RealtimeMetricsSubscriptionStatus as RealtimeMetricsSubscriptionStatus, ReferrerPolicyList as ReferrerPolicyList, ResourceInUse as ResourceInUse, ResourceNotDisabled as ResourceNotDisabled, ResponseHeadersPolicy as ResponseHeadersPolicy, ResponseHeadersPolicyAccessControlAllowHeaders as ResponseHeadersPolicyAccessControlAllowHeaders, + ResponseHeadersPolicyAccessControlAllowHeadersDict as ResponseHeadersPolicyAccessControlAllowHeadersDict, ResponseHeadersPolicyAccessControlAllowMethods as ResponseHeadersPolicyAccessControlAllowMethods, + ResponseHeadersPolicyAccessControlAllowMethodsDict as ResponseHeadersPolicyAccessControlAllowMethodsDict, ResponseHeadersPolicyAccessControlAllowMethodsValues as ResponseHeadersPolicyAccessControlAllowMethodsValues, ResponseHeadersPolicyAccessControlAllowOrigins as ResponseHeadersPolicyAccessControlAllowOrigins, + ResponseHeadersPolicyAccessControlAllowOriginsDict as ResponseHeadersPolicyAccessControlAllowOriginsDict, ResponseHeadersPolicyAccessControlExposeHeaders as ResponseHeadersPolicyAccessControlExposeHeaders, + ResponseHeadersPolicyAccessControlExposeHeadersDict as ResponseHeadersPolicyAccessControlExposeHeadersDict, ResponseHeadersPolicyAlreadyExists as ResponseHeadersPolicyAlreadyExists, ResponseHeadersPolicyConfig as ResponseHeadersPolicyConfig, + ResponseHeadersPolicyConfigDict as ResponseHeadersPolicyConfigDict, ResponseHeadersPolicyContentSecurityPolicy as ResponseHeadersPolicyContentSecurityPolicy, + ResponseHeadersPolicyContentSecurityPolicyDict as ResponseHeadersPolicyContentSecurityPolicyDict, ResponseHeadersPolicyContentTypeOptions as ResponseHeadersPolicyContentTypeOptions, + ResponseHeadersPolicyContentTypeOptionsDict as ResponseHeadersPolicyContentTypeOptionsDict, ResponseHeadersPolicyCorsConfig as ResponseHeadersPolicyCorsConfig, + ResponseHeadersPolicyCorsConfigDict as ResponseHeadersPolicyCorsConfigDict, ResponseHeadersPolicyCustomHeader as ResponseHeadersPolicyCustomHeader, + ResponseHeadersPolicyCustomHeaderDict as ResponseHeadersPolicyCustomHeaderDict, ResponseHeadersPolicyCustomHeadersConfig as ResponseHeadersPolicyCustomHeadersConfig, + ResponseHeadersPolicyCustomHeadersConfigDict as ResponseHeadersPolicyCustomHeadersConfigDict, ResponseHeadersPolicyFrameOptions as ResponseHeadersPolicyFrameOptions, + ResponseHeadersPolicyFrameOptionsDict as ResponseHeadersPolicyFrameOptionsDict, ResponseHeadersPolicyInUse as ResponseHeadersPolicyInUse, ResponseHeadersPolicyList as ResponseHeadersPolicyList, ResponseHeadersPolicyReferrerPolicy as ResponseHeadersPolicyReferrerPolicy, + ResponseHeadersPolicyReferrerPolicyDict as ResponseHeadersPolicyReferrerPolicyDict, ResponseHeadersPolicyRemoveHeader as ResponseHeadersPolicyRemoveHeader, + ResponseHeadersPolicyRemoveHeaderDict as ResponseHeadersPolicyRemoveHeaderDict, ResponseHeadersPolicyRemoveHeadersConfig as ResponseHeadersPolicyRemoveHeadersConfig, + ResponseHeadersPolicyRemoveHeadersConfigDict as ResponseHeadersPolicyRemoveHeadersConfigDict, ResponseHeadersPolicySecurityHeadersConfig as ResponseHeadersPolicySecurityHeadersConfig, + ResponseHeadersPolicySecurityHeadersConfigDict as ResponseHeadersPolicySecurityHeadersConfigDict, ResponseHeadersPolicyServerTimingHeadersConfig as ResponseHeadersPolicyServerTimingHeadersConfig, + ResponseHeadersPolicyServerTimingHeadersConfigDict as ResponseHeadersPolicyServerTimingHeadersConfigDict, ResponseHeadersPolicyStrictTransportSecurity as ResponseHeadersPolicyStrictTransportSecurity, + ResponseHeadersPolicyStrictTransportSecurityDict as ResponseHeadersPolicyStrictTransportSecurityDict, ResponseHeadersPolicySummary as ResponseHeadersPolicySummary, ResponseHeadersPolicyType as ResponseHeadersPolicyType, ResponseHeadersPolicyXSSProtection as ResponseHeadersPolicyXSSProtection, + ResponseHeadersPolicyXSSProtectionDict as ResponseHeadersPolicyXSSProtectionDict, Restrictions as Restrictions, + RestrictionsDict as RestrictionsDict, S3Origin as S3Origin, + S3OriginDict as S3OriginDict, S3OriginConfig as S3OriginConfig, + S3OriginConfigDict as S3OriginConfigDict, SessionStickinessConfig as SessionStickinessConfig, + SessionStickinessConfigDict as SessionStickinessConfigDict, Signer as Signer, SslProtocol as SslProtocol, SSLSupportMethod as SSLSupportMethod, StagingDistributionDnsNames as StagingDistributionDnsNames, + StagingDistributionDnsNamesDict as StagingDistributionDnsNamesDict, StagingDistributionInUse as StagingDistributionInUse, StatusCodes as StatusCodes, + StatusCodesDict as StatusCodesDict, StreamingDistribution as StreamingDistribution, StreamingDistributionAlreadyExists as StreamingDistributionAlreadyExists, StreamingDistributionConfig as StreamingDistributionConfig, + StreamingDistributionConfigDict as StreamingDistributionConfigDict, StreamingDistributionConfigWithTags as StreamingDistributionConfigWithTags, + StreamingDistributionConfigWithTagsDict as StreamingDistributionConfigWithTagsDict, StreamingDistributionList as StreamingDistributionList, StreamingDistributionNotDisabled as StreamingDistributionNotDisabled, StreamingDistributionSummary as StreamingDistributionSummary, StreamingLoggingConfig as StreamingLoggingConfig, + StreamingLoggingConfigDict as StreamingLoggingConfigDict, StringSchemaConfig as StringSchemaConfig, + StringSchemaConfigDict as StringSchemaConfigDict, Tag as Tag, + TagDict as TagDict, TagKeys as TagKeys, + TagKeysDict as TagKeysDict, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, Tags as Tags, + TagsDict as TagsDict, TenantConfig as TenantConfig, + TenantConfigDict as TenantConfigDict, TestConnectionFunctionInput as TestConnectionFunctionInput, + TestConnectionFunctionInputDict as TestConnectionFunctionInputDict, TestConnectionFunctionOutput as TestConnectionFunctionOutput, TestFunctionFailed as TestFunctionFailed, TestFunctionInput as TestFunctionInput, + TestFunctionInputDict as TestFunctionInputDict, TestFunctionOutput as TestFunctionOutput, TestResult as TestResult, TooLongCSPInResponseHeadersPolicy as TooLongCSPInResponseHeadersPolicy, @@ -687,78 +951,112 @@ from ._private.models_2 import ( TooManyStreamingDistributions as TooManyStreamingDistributions, TooManyTrustedSigners as TooManyTrustedSigners, TrafficConfig as TrafficConfig, + TrafficConfigDict as TrafficConfigDict, TrustedKeyGroupDoesNotExist as TrustedKeyGroupDoesNotExist, TrustedKeyGroups as TrustedKeyGroups, + TrustedKeyGroupsDict as TrustedKeyGroupsDict, TrustedSignerDoesNotExist as TrustedSignerDoesNotExist, TrustedSigners as TrustedSigners, + TrustedSignersDict as TrustedSignersDict, TrustStore as TrustStore, TrustStoreConfig as TrustStoreConfig, + TrustStoreConfigDict as TrustStoreConfigDict, TrustStoreStatus as TrustStoreStatus, TrustStoreSummary as TrustStoreSummary, UnsupportedOperation as UnsupportedOperation, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateAnycastIpListInput as UpdateAnycastIpListInput, + UpdateAnycastIpListInputDict as UpdateAnycastIpListInputDict, UpdateAnycastIpListOutput as UpdateAnycastIpListOutput, UpdateCachePolicyInput as UpdateCachePolicyInput, + UpdateCachePolicyInputDict as UpdateCachePolicyInputDict, UpdateCachePolicyOutput as UpdateCachePolicyOutput, UpdateCloudFrontOriginAccessIdentityInput as UpdateCloudFrontOriginAccessIdentityInput, + UpdateCloudFrontOriginAccessIdentityInputDict as UpdateCloudFrontOriginAccessIdentityInputDict, UpdateCloudFrontOriginAccessIdentityOutput as UpdateCloudFrontOriginAccessIdentityOutput, UpdateConnectionFunctionInput as UpdateConnectionFunctionInput, + UpdateConnectionFunctionInputDict as UpdateConnectionFunctionInputDict, UpdateConnectionFunctionOutput as UpdateConnectionFunctionOutput, UpdateConnectionGroupInput as UpdateConnectionGroupInput, + UpdateConnectionGroupInputDict as UpdateConnectionGroupInputDict, UpdateConnectionGroupOutput as UpdateConnectionGroupOutput, UpdateContinuousDeploymentPolicyInput as UpdateContinuousDeploymentPolicyInput, + UpdateContinuousDeploymentPolicyInputDict as UpdateContinuousDeploymentPolicyInputDict, UpdateContinuousDeploymentPolicyOutput as UpdateContinuousDeploymentPolicyOutput, UpdateDistributionInput as UpdateDistributionInput, + UpdateDistributionInputDict as UpdateDistributionInputDict, UpdateDistributionOutput as UpdateDistributionOutput, UpdateDistributionTenantInput as UpdateDistributionTenantInput, + UpdateDistributionTenantInputDict as UpdateDistributionTenantInputDict, UpdateDistributionTenantOutput as UpdateDistributionTenantOutput, UpdateDistributionWithStagingConfigInput as UpdateDistributionWithStagingConfigInput, + UpdateDistributionWithStagingConfigInputDict as UpdateDistributionWithStagingConfigInputDict, UpdateDistributionWithStagingConfigOutput as UpdateDistributionWithStagingConfigOutput, UpdateDomainAssociationInput as UpdateDomainAssociationInput, + UpdateDomainAssociationInputDict as UpdateDomainAssociationInputDict, UpdateDomainAssociationOutput as UpdateDomainAssociationOutput, UpdateFieldLevelEncryptionConfigInput as UpdateFieldLevelEncryptionConfigInput, + UpdateFieldLevelEncryptionConfigInputDict as UpdateFieldLevelEncryptionConfigInputDict, UpdateFieldLevelEncryptionConfigOutput as UpdateFieldLevelEncryptionConfigOutput, UpdateFieldLevelEncryptionProfileInput as UpdateFieldLevelEncryptionProfileInput, + UpdateFieldLevelEncryptionProfileInputDict as UpdateFieldLevelEncryptionProfileInputDict, UpdateFieldLevelEncryptionProfileOutput as UpdateFieldLevelEncryptionProfileOutput, UpdateFunctionInput as UpdateFunctionInput, + UpdateFunctionInputDict as UpdateFunctionInputDict, UpdateFunctionOutput as UpdateFunctionOutput, UpdateKeyGroupInput as UpdateKeyGroupInput, + UpdateKeyGroupInputDict as UpdateKeyGroupInputDict, UpdateKeyGroupOutput as UpdateKeyGroupOutput, UpdateKeyValueStoreInput as UpdateKeyValueStoreInput, + UpdateKeyValueStoreInputDict as UpdateKeyValueStoreInputDict, UpdateKeyValueStoreOutput as UpdateKeyValueStoreOutput, UpdateOriginAccessControlInput as UpdateOriginAccessControlInput, + UpdateOriginAccessControlInputDict as UpdateOriginAccessControlInputDict, UpdateOriginAccessControlOutput as UpdateOriginAccessControlOutput, UpdateOriginRequestPolicyInput as UpdateOriginRequestPolicyInput, + UpdateOriginRequestPolicyInputDict as UpdateOriginRequestPolicyInputDict, UpdateOriginRequestPolicyOutput as UpdateOriginRequestPolicyOutput, UpdatePublicKeyInput as UpdatePublicKeyInput, + UpdatePublicKeyInputDict as UpdatePublicKeyInputDict, UpdatePublicKeyOutput as UpdatePublicKeyOutput, UpdateRealtimeLogConfigInput as UpdateRealtimeLogConfigInput, + UpdateRealtimeLogConfigInputDict as UpdateRealtimeLogConfigInputDict, UpdateRealtimeLogConfigOutput as UpdateRealtimeLogConfigOutput, UpdateResponseHeadersPolicyInput as UpdateResponseHeadersPolicyInput, + UpdateResponseHeadersPolicyInputDict as UpdateResponseHeadersPolicyInputDict, UpdateResponseHeadersPolicyOutput as UpdateResponseHeadersPolicyOutput, UpdateStreamingDistributionInput as UpdateStreamingDistributionInput, + UpdateStreamingDistributionInputDict as UpdateStreamingDistributionInputDict, UpdateStreamingDistributionOutput as UpdateStreamingDistributionOutput, UpdateTrustStoreInput as UpdateTrustStoreInput, + UpdateTrustStoreInputDict as UpdateTrustStoreInputDict, UpdateTrustStoreOutput as UpdateTrustStoreOutput, UpdateVpcOriginInput as UpdateVpcOriginInput, + UpdateVpcOriginInputDict as UpdateVpcOriginInputDict, UpdateVpcOriginOutput as UpdateVpcOriginOutput, ValidationTokenDetail as ValidationTokenDetail, ValidationTokenHost as ValidationTokenHost, VerifyDnsConfigurationInput as VerifyDnsConfigurationInput, + VerifyDnsConfigurationInputDict as VerifyDnsConfigurationInputDict, VerifyDnsConfigurationOutput as VerifyDnsConfigurationOutput, ViewerCertificate as ViewerCertificate, + ViewerCertificateDict as ViewerCertificateDict, ViewerMtlsConfig as ViewerMtlsConfig, + ViewerMtlsConfigDict as ViewerMtlsConfigDict, ViewerMtlsMode as ViewerMtlsMode, ViewerProtocolPolicy as ViewerProtocolPolicy, VpcIpAddressType as VpcIpAddressType, VpcOrigin as VpcOrigin, VpcOriginConfig as VpcOriginConfig, + VpcOriginConfigDict as VpcOriginConfigDict, VpcOriginEndpointConfig as VpcOriginEndpointConfig, + VpcOriginEndpointConfigDict as VpcOriginEndpointConfigDict, VpcOriginList as VpcOriginList, VpcOriginSummary as VpcOriginSummary, WebAclCustomization as WebAclCustomization, + WebAclCustomizationDict as WebAclCustomizationDict, ) class _SerdeShape: diff --git a/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/py.typed b/clients/aws-sdk-cloudfront/src/aws_sdk_cloudfront/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-cloudfront/tests/_typecheck.py b/clients/aws-sdk-cloudfront/tests/_typecheck.py index ce6bf2f42..75af5fc7b 100644 --- a/clients/aws-sdk-cloudfront/tests/_typecheck.py +++ b/clients/aws-sdk-cloudfront/tests/_typecheck.py @@ -2,553 +2,853 @@ from typing import Any +from aws_sdk_cloudfront.aio.client import AsyncCloudFrontClient +from aws_sdk_cloudfront.client import CloudFrontClient from aws_sdk_cloudfront.models import ( ActiveTrustedKeyGroups, ActiveTrustedSigners, AliasICPRecordal, Aliases, + AliasesDict, AllowedMethods, + AllowedMethodsDict, AnycastIpList, AnycastIpListCollection, AnycastIpListSummary, AssociateAliasInput, + AssociateAliasInputDict, AssociateAliasOutput, AssociateDistributionTenantWebACLInput, + AssociateDistributionTenantWebACLInputDict, AssociateDistributionTenantWebACLOutput, AssociateDistributionWebACLInput, + AssociateDistributionWebACLInputDict, AssociateDistributionWebACLOutput, CaCertificatesBundleS3Location, + CaCertificatesBundleS3LocationDict, + CaCertificatesBundleSourceDict, CacheBehavior, + CacheBehaviorDict, CacheBehaviors, + CacheBehaviorsDict, CachePolicy, CachePolicyConfig, + CachePolicyConfigDict, CachePolicyCookiesConfig, + CachePolicyCookiesConfigDict, CachePolicyHeadersConfig, + CachePolicyHeadersConfigDict, CachePolicyList, CachePolicyQueryStringsConfig, + CachePolicyQueryStringsConfigDict, CachePolicySummary, CacheTagConfig, + CacheTagConfigDict, CachedMethods, + CachedMethodsDict, Certificate, + CertificateDict, CloudFrontOriginAccessIdentity, CloudFrontOriginAccessIdentityConfig, + CloudFrontOriginAccessIdentityConfigDict, CloudFrontOriginAccessIdentityList, CloudFrontOriginAccessIdentitySummary, ConflictingAlias, ConflictingAliasesList, ConnectionFunctionAssociation, + ConnectionFunctionAssociationDict, ConnectionFunctionSummary, ConnectionFunctionTestResult, ConnectionGroup, ConnectionGroupAssociationFilter, + ConnectionGroupAssociationFilterDict, ConnectionGroupSummary, ContentTypeProfile, ContentTypeProfileConfig, + ContentTypeProfileConfigDict, + ContentTypeProfileDict, ContentTypeProfiles, + ContentTypeProfilesDict, ContinuousDeploymentPolicy, ContinuousDeploymentPolicyConfig, + ContinuousDeploymentPolicyConfigDict, ContinuousDeploymentPolicyList, ContinuousDeploymentPolicySummary, ContinuousDeploymentSingleHeaderConfig, + ContinuousDeploymentSingleHeaderConfigDict, ContinuousDeploymentSingleWeightConfig, + ContinuousDeploymentSingleWeightConfigDict, CookieNames, + CookieNamesDict, CookiePreference, + CookiePreferenceDict, CopyDistributionInput, + CopyDistributionInputDict, CopyDistributionOutput, CreateAnycastIpListInput, + CreateAnycastIpListInputDict, CreateAnycastIpListOutput, CreateCachePolicyInput, + CreateCachePolicyInputDict, CreateCachePolicyOutput, CreateCloudFrontOriginAccessIdentityInput, + CreateCloudFrontOriginAccessIdentityInputDict, CreateCloudFrontOriginAccessIdentityOutput, CreateConnectionFunctionInput, + CreateConnectionFunctionInputDict, CreateConnectionFunctionOutput, CreateConnectionGroupInput, + CreateConnectionGroupInputDict, CreateConnectionGroupOutput, CreateContinuousDeploymentPolicyInput, + CreateContinuousDeploymentPolicyInputDict, CreateContinuousDeploymentPolicyOutput, CreateDistributionInput, + CreateDistributionInputDict, CreateDistributionOutput, CreateDistributionTenantInput, + CreateDistributionTenantInputDict, CreateDistributionTenantOutput, CreateDistributionWithTagsInput, + CreateDistributionWithTagsInputDict, CreateDistributionWithTagsOutput, CreateFieldLevelEncryptionConfigInput, + CreateFieldLevelEncryptionConfigInputDict, CreateFieldLevelEncryptionConfigOutput, CreateFieldLevelEncryptionProfileInput, + CreateFieldLevelEncryptionProfileInputDict, CreateFieldLevelEncryptionProfileOutput, CreateFunctionInput, + CreateFunctionInputDict, CreateFunctionOutput, CreateInvalidationForDistributionTenantInput, + CreateInvalidationForDistributionTenantInputDict, CreateInvalidationForDistributionTenantOutput, CreateInvalidationInput, + CreateInvalidationInputDict, CreateInvalidationOutput, CreateKeyGroupInput, + CreateKeyGroupInputDict, CreateKeyGroupOutput, CreateKeyValueStoreInput, + CreateKeyValueStoreInputDict, CreateKeyValueStoreOutput, CreateMonitoringSubscriptionInput, + CreateMonitoringSubscriptionInputDict, CreateMonitoringSubscriptionOutput, CreateOriginAccessControlInput, + CreateOriginAccessControlInputDict, CreateOriginAccessControlOutput, CreateOriginRequestPolicyInput, + CreateOriginRequestPolicyInputDict, CreateOriginRequestPolicyOutput, CreatePublicKeyInput, + CreatePublicKeyInputDict, CreatePublicKeyOutput, CreateRealtimeLogConfigInput, + CreateRealtimeLogConfigInputDict, CreateRealtimeLogConfigOutput, CreateResponseHeadersPolicyInput, + CreateResponseHeadersPolicyInputDict, CreateResponseHeadersPolicyOutput, CreateStreamingDistributionInput, + CreateStreamingDistributionInputDict, CreateStreamingDistributionOutput, CreateStreamingDistributionWithTagsInput, + CreateStreamingDistributionWithTagsInputDict, CreateStreamingDistributionWithTagsOutput, CreateTrustStoreInput, + CreateTrustStoreInputDict, CreateTrustStoreOutput, CreateVpcOriginInput, + CreateVpcOriginInputDict, CreateVpcOriginOutput, CustomErrorResponse, + CustomErrorResponseDict, CustomErrorResponses, + CustomErrorResponsesDict, CustomHeaders, + CustomHeadersDict, CustomOriginConfig, + CustomOriginConfigDict, Customizations, + CustomizationsDict, DefaultCacheBehavior, + DefaultCacheBehaviorDict, DeleteAnycastIpListInput, + DeleteAnycastIpListInputDict, DeleteAnycastIpListOutput, DeleteCachePolicyInput, + DeleteCachePolicyInputDict, DeleteCachePolicyOutput, DeleteCloudFrontOriginAccessIdentityInput, + DeleteCloudFrontOriginAccessIdentityInputDict, DeleteCloudFrontOriginAccessIdentityOutput, DeleteConnectionFunctionInput, + DeleteConnectionFunctionInputDict, DeleteConnectionFunctionOutput, DeleteConnectionGroupInput, + DeleteConnectionGroupInputDict, DeleteConnectionGroupOutput, DeleteContinuousDeploymentPolicyInput, + DeleteContinuousDeploymentPolicyInputDict, DeleteContinuousDeploymentPolicyOutput, DeleteDistributionInput, + DeleteDistributionInputDict, DeleteDistributionOutput, DeleteDistributionTenantInput, + DeleteDistributionTenantInputDict, DeleteDistributionTenantOutput, DeleteFieldLevelEncryptionConfigInput, + DeleteFieldLevelEncryptionConfigInputDict, DeleteFieldLevelEncryptionConfigOutput, DeleteFieldLevelEncryptionProfileInput, + DeleteFieldLevelEncryptionProfileInputDict, DeleteFieldLevelEncryptionProfileOutput, DeleteFunctionInput, + DeleteFunctionInputDict, DeleteFunctionOutput, DeleteKeyGroupInput, + DeleteKeyGroupInputDict, DeleteKeyGroupOutput, DeleteKeyValueStoreInput, + DeleteKeyValueStoreInputDict, DeleteKeyValueStoreOutput, DeleteMonitoringSubscriptionInput, + DeleteMonitoringSubscriptionInputDict, DeleteMonitoringSubscriptionOutput, DeleteOriginAccessControlInput, + DeleteOriginAccessControlInputDict, DeleteOriginAccessControlOutput, DeleteOriginRequestPolicyInput, + DeleteOriginRequestPolicyInputDict, DeleteOriginRequestPolicyOutput, DeletePublicKeyInput, + DeletePublicKeyInputDict, DeletePublicKeyOutput, DeleteRealtimeLogConfigInput, + DeleteRealtimeLogConfigInputDict, DeleteRealtimeLogConfigOutput, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DeleteResponseHeadersPolicyInput, + DeleteResponseHeadersPolicyInputDict, DeleteResponseHeadersPolicyOutput, DeleteStreamingDistributionInput, + DeleteStreamingDistributionInputDict, DeleteStreamingDistributionOutput, DeleteTrustStoreInput, + DeleteTrustStoreInputDict, DeleteTrustStoreOutput, DeleteVpcOriginInput, + DeleteVpcOriginInputDict, DeleteVpcOriginOutput, DescribeConnectionFunctionInput, + DescribeConnectionFunctionInputDict, DescribeConnectionFunctionOutput, DescribeFunctionInput, + DescribeFunctionInputDict, DescribeFunctionOutput, DescribeKeyValueStoreInput, + DescribeKeyValueStoreInputDict, DescribeKeyValueStoreOutput, DisassociateDistributionTenantWebACLInput, + DisassociateDistributionTenantWebACLInputDict, DisassociateDistributionTenantWebACLOutput, DisassociateDistributionWebACLInput, + DisassociateDistributionWebACLInputDict, DisassociateDistributionWebACLOutput, Distribution, DistributionConfig, + DistributionConfigDict, DistributionConfigWithTags, + DistributionConfigWithTagsDict, DistributionIdList, DistributionIdOwner, DistributionIdOwnerList, DistributionList, DistributionResourceId, + DistributionResourceIdDict, DistributionSummary, DistributionTenant, DistributionTenantAssociationFilter, + DistributionTenantAssociationFilterDict, DistributionTenantSummary, DnsConfiguration, DomainConflict, DomainItem, + DomainItemDict, DomainResult, EncryptionEntities, + EncryptionEntitiesDict, EncryptionEntity, + EncryptionEntityDict, EndPoint, + EndPointDict, FieldLevelEncryption, FieldLevelEncryptionConfig, + FieldLevelEncryptionConfigDict, FieldLevelEncryptionList, FieldLevelEncryptionProfile, FieldLevelEncryptionProfileConfig, + FieldLevelEncryptionProfileConfigDict, FieldLevelEncryptionProfileList, FieldLevelEncryptionProfileSummary, FieldLevelEncryptionSummary, FieldPatterns, + FieldPatternsDict, ForwardedValues, + ForwardedValuesDict, FunctionAssociation, + FunctionAssociationDict, FunctionAssociations, + FunctionAssociationsDict, FunctionConfig, + FunctionConfigDict, FunctionList, FunctionMetadata, FunctionSummary, GeoRestriction, GeoRestrictionCustomization, + GeoRestrictionCustomizationDict, + GeoRestrictionDict, GetAnycastIpListInput, + GetAnycastIpListInputDict, GetAnycastIpListOutput, GetCachePolicyConfigInput, + GetCachePolicyConfigInputDict, GetCachePolicyConfigOutput, GetCachePolicyInput, + GetCachePolicyInputDict, GetCachePolicyOutput, GetCloudFrontOriginAccessIdentityConfigInput, + GetCloudFrontOriginAccessIdentityConfigInputDict, GetCloudFrontOriginAccessIdentityConfigOutput, GetCloudFrontOriginAccessIdentityInput, + GetCloudFrontOriginAccessIdentityInputDict, GetCloudFrontOriginAccessIdentityOutput, GetConnectionFunctionInput, + GetConnectionFunctionInputDict, GetConnectionFunctionOutput, GetConnectionGroupByRoutingEndpointInput, + GetConnectionGroupByRoutingEndpointInputDict, GetConnectionGroupByRoutingEndpointOutput, GetConnectionGroupInput, + GetConnectionGroupInputDict, GetConnectionGroupOutput, GetContinuousDeploymentPolicyConfigInput, + GetContinuousDeploymentPolicyConfigInputDict, GetContinuousDeploymentPolicyConfigOutput, GetContinuousDeploymentPolicyInput, + GetContinuousDeploymentPolicyInputDict, GetContinuousDeploymentPolicyOutput, GetDistributionConfigInput, + GetDistributionConfigInputDict, GetDistributionConfigOutput, GetDistributionInput, + GetDistributionInputDict, GetDistributionOutput, GetDistributionTenantByDomainInput, + GetDistributionTenantByDomainInputDict, GetDistributionTenantByDomainOutput, GetDistributionTenantInput, + GetDistributionTenantInputDict, GetDistributionTenantOutput, GetFieldLevelEncryptionConfigInput, + GetFieldLevelEncryptionConfigInputDict, GetFieldLevelEncryptionConfigOutput, GetFieldLevelEncryptionInput, + GetFieldLevelEncryptionInputDict, GetFieldLevelEncryptionOutput, GetFieldLevelEncryptionProfileConfigInput, + GetFieldLevelEncryptionProfileConfigInputDict, GetFieldLevelEncryptionProfileConfigOutput, GetFieldLevelEncryptionProfileInput, + GetFieldLevelEncryptionProfileInputDict, GetFieldLevelEncryptionProfileOutput, GetFunctionInput, + GetFunctionInputDict, GetFunctionOutput, GetInvalidationForDistributionTenantInput, + GetInvalidationForDistributionTenantInputDict, GetInvalidationForDistributionTenantOutput, GetInvalidationInput, + GetInvalidationInputDict, GetInvalidationOutput, GetKeyGroupConfigInput, + GetKeyGroupConfigInputDict, GetKeyGroupConfigOutput, GetKeyGroupInput, + GetKeyGroupInputDict, GetKeyGroupOutput, GetManagedCertificateDetailsInput, + GetManagedCertificateDetailsInputDict, GetManagedCertificateDetailsOutput, GetMonitoringSubscriptionInput, + GetMonitoringSubscriptionInputDict, GetMonitoringSubscriptionOutput, GetOriginAccessControlConfigInput, + GetOriginAccessControlConfigInputDict, GetOriginAccessControlConfigOutput, GetOriginAccessControlInput, + GetOriginAccessControlInputDict, GetOriginAccessControlOutput, GetOriginRequestPolicyConfigInput, + GetOriginRequestPolicyConfigInputDict, GetOriginRequestPolicyConfigOutput, GetOriginRequestPolicyInput, + GetOriginRequestPolicyInputDict, GetOriginRequestPolicyOutput, GetPublicKeyConfigInput, + GetPublicKeyConfigInputDict, GetPublicKeyConfigOutput, GetPublicKeyInput, + GetPublicKeyInputDict, GetPublicKeyOutput, GetRealtimeLogConfigInput, + GetRealtimeLogConfigInputDict, GetRealtimeLogConfigOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GetResponseHeadersPolicyConfigInput, + GetResponseHeadersPolicyConfigInputDict, GetResponseHeadersPolicyConfigOutput, GetResponseHeadersPolicyInput, + GetResponseHeadersPolicyInputDict, GetResponseHeadersPolicyOutput, GetStreamingDistributionConfigInput, + GetStreamingDistributionConfigInputDict, GetStreamingDistributionConfigOutput, GetStreamingDistributionInput, + GetStreamingDistributionInputDict, GetStreamingDistributionOutput, GetTrustStoreInput, + GetTrustStoreInputDict, GetTrustStoreOutput, GetVpcOriginInput, + GetVpcOriginInputDict, GetVpcOriginOutput, GrpcConfig, + GrpcConfigDict, Headers, + HeadersDict, ImportSource, + ImportSourceDict, Invalidation, InvalidationBatch, + InvalidationBatchDict, InvalidationList, InvalidationSummary, IpamCidrConfig, + IpamCidrConfigDict, IpamConfig, KGKeyPairIds, KeyGroup, KeyGroupConfig, + KeyGroupConfigDict, KeyGroupList, KeyGroupSummary, KeyPairIds, KeyValueStore, KeyValueStoreAssociation, + KeyValueStoreAssociationDict, KeyValueStoreAssociations, + KeyValueStoreAssociationsDict, KeyValueStoreList, KinesisStreamConfig, + KinesisStreamConfigDict, LambdaFunctionAssociation, + LambdaFunctionAssociationDict, LambdaFunctionAssociations, + LambdaFunctionAssociationsDict, ListAnycastIpListsInput, + ListAnycastIpListsInputDict, ListAnycastIpListsOutput, ListCachePoliciesInput, + ListCachePoliciesInputDict, ListCachePoliciesOutput, ListCloudFrontOriginAccessIdentitiesInput, + ListCloudFrontOriginAccessIdentitiesInputDict, ListCloudFrontOriginAccessIdentitiesOutput, ListConflictingAliasesInput, + ListConflictingAliasesInputDict, ListConflictingAliasesOutput, ListConnectionFunctionsInput, + ListConnectionFunctionsInputDict, ListConnectionFunctionsOutput, ListConnectionGroupsInput, + ListConnectionGroupsInputDict, ListConnectionGroupsOutput, ListContinuousDeploymentPoliciesInput, + ListContinuousDeploymentPoliciesInputDict, ListContinuousDeploymentPoliciesOutput, ListDistributionTenantsByCustomizationInput, + ListDistributionTenantsByCustomizationInputDict, ListDistributionTenantsByCustomizationOutput, ListDistributionTenantsInput, + ListDistributionTenantsInputDict, ListDistributionTenantsOutput, ListDistributionsByAnycastIpListIdInput, + ListDistributionsByAnycastIpListIdInputDict, ListDistributionsByAnycastIpListIdOutput, ListDistributionsByCachePolicyIdInput, + ListDistributionsByCachePolicyIdInputDict, ListDistributionsByCachePolicyIdOutput, ListDistributionsByConnectionFunctionInput, + ListDistributionsByConnectionFunctionInputDict, ListDistributionsByConnectionFunctionOutput, ListDistributionsByConnectionModeInput, + ListDistributionsByConnectionModeInputDict, ListDistributionsByConnectionModeOutput, ListDistributionsByKeyGroupInput, + ListDistributionsByKeyGroupInputDict, ListDistributionsByKeyGroupOutput, ListDistributionsByOriginRequestPolicyIdInput, + ListDistributionsByOriginRequestPolicyIdInputDict, ListDistributionsByOriginRequestPolicyIdOutput, ListDistributionsByOwnedResourceInput, + ListDistributionsByOwnedResourceInputDict, ListDistributionsByOwnedResourceOutput, ListDistributionsByRealtimeLogConfigInput, + ListDistributionsByRealtimeLogConfigInputDict, ListDistributionsByRealtimeLogConfigOutput, ListDistributionsByResponseHeadersPolicyIdInput, + ListDistributionsByResponseHeadersPolicyIdInputDict, ListDistributionsByResponseHeadersPolicyIdOutput, ListDistributionsByTrustStoreInput, + ListDistributionsByTrustStoreInputDict, ListDistributionsByTrustStoreOutput, ListDistributionsByVpcOriginIdInput, + ListDistributionsByVpcOriginIdInputDict, ListDistributionsByVpcOriginIdOutput, ListDistributionsByWebACLIdInput, + ListDistributionsByWebACLIdInputDict, ListDistributionsByWebACLIdOutput, ListDistributionsInput, + ListDistributionsInputDict, ListDistributionsOutput, ListDomainConflictsInput, + ListDomainConflictsInputDict, ListDomainConflictsOutput, ListFieldLevelEncryptionConfigsInput, + ListFieldLevelEncryptionConfigsInputDict, ListFieldLevelEncryptionConfigsOutput, ListFieldLevelEncryptionProfilesInput, + ListFieldLevelEncryptionProfilesInputDict, ListFieldLevelEncryptionProfilesOutput, ListFunctionsInput, + ListFunctionsInputDict, ListFunctionsOutput, ListInvalidationsForDistributionTenantInput, + ListInvalidationsForDistributionTenantInputDict, ListInvalidationsForDistributionTenantOutput, ListInvalidationsInput, + ListInvalidationsInputDict, ListInvalidationsOutput, ListKeyGroupsInput, + ListKeyGroupsInputDict, ListKeyGroupsOutput, ListKeyValueStoresInput, + ListKeyValueStoresInputDict, ListKeyValueStoresOutput, ListOriginAccessControlsInput, + ListOriginAccessControlsInputDict, ListOriginAccessControlsOutput, ListOriginRequestPoliciesInput, + ListOriginRequestPoliciesInputDict, ListOriginRequestPoliciesOutput, ListPublicKeysInput, + ListPublicKeysInputDict, ListPublicKeysOutput, ListRealtimeLogConfigsInput, + ListRealtimeLogConfigsInputDict, ListRealtimeLogConfigsOutput, ListResponseHeadersPoliciesInput, + ListResponseHeadersPoliciesInputDict, ListResponseHeadersPoliciesOutput, ListStreamingDistributionsInput, + ListStreamingDistributionsInputDict, ListStreamingDistributionsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ListTrustStoresInput, + ListTrustStoresInputDict, ListTrustStoresOutput, ListVpcOriginsInput, + ListVpcOriginsInputDict, ListVpcOriginsOutput, LoggingConfig, + LoggingConfigDict, ManagedCertificateDetails, ManagedCertificateRequest, + ManagedCertificateRequestDict, MonitoringSubscription, + MonitoringSubscriptionDict, Origin, OriginAccessControl, OriginAccessControlConfig, + OriginAccessControlConfigDict, OriginAccessControlList, OriginAccessControlSummary, OriginCustomHeader, + OriginCustomHeaderDict, + OriginDict, OriginGroup, + OriginGroupDict, OriginGroupFailoverCriteria, + OriginGroupFailoverCriteriaDict, OriginGroupMember, + OriginGroupMemberDict, OriginGroupMembers, + OriginGroupMembersDict, OriginGroups, + OriginGroupsDict, OriginMtlsConfig, + OriginMtlsConfigDict, OriginRequestPolicy, OriginRequestPolicyConfig, + OriginRequestPolicyConfigDict, OriginRequestPolicyCookiesConfig, + OriginRequestPolicyCookiesConfigDict, OriginRequestPolicyHeadersConfig, + OriginRequestPolicyHeadersConfigDict, OriginRequestPolicyList, OriginRequestPolicyQueryStringsConfig, + OriginRequestPolicyQueryStringsConfigDict, OriginRequestPolicySummary, OriginShield, + OriginShieldDict, OriginSslProtocols, + OriginSslProtocolsDict, Origins, + OriginsDict, Parameter, ParameterDefinition, + ParameterDefinitionDict, ParameterDefinitionSchema, + ParameterDefinitionSchemaDict, + ParameterDict, ParametersInCacheKeyAndForwardedToOrigin, + ParametersInCacheKeyAndForwardedToOriginDict, Paths, + PathsDict, PublicKey, PublicKeyConfig, + PublicKeyConfigDict, PublicKeyList, PublicKeySummary, PublishConnectionFunctionInput, + PublishConnectionFunctionInputDict, PublishConnectionFunctionOutput, PublishFunctionInput, + PublishFunctionInputDict, PublishFunctionOutput, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, QueryArgProfile, QueryArgProfileConfig, + QueryArgProfileConfigDict, + QueryArgProfileDict, QueryArgProfiles, + QueryArgProfilesDict, QueryStringCacheKeys, + QueryStringCacheKeysDict, QueryStringNames, + QueryStringNamesDict, RealtimeLogConfig, RealtimeLogConfigs, RealtimeMetricsSubscriptionConfig, + RealtimeMetricsSubscriptionConfigDict, ResponseHeadersPolicy, ResponseHeadersPolicyAccessControlAllowHeaders, + ResponseHeadersPolicyAccessControlAllowHeadersDict, ResponseHeadersPolicyAccessControlAllowMethods, + ResponseHeadersPolicyAccessControlAllowMethodsDict, ResponseHeadersPolicyAccessControlAllowOrigins, + ResponseHeadersPolicyAccessControlAllowOriginsDict, ResponseHeadersPolicyAccessControlExposeHeaders, + ResponseHeadersPolicyAccessControlExposeHeadersDict, ResponseHeadersPolicyConfig, + ResponseHeadersPolicyConfigDict, ResponseHeadersPolicyContentSecurityPolicy, + ResponseHeadersPolicyContentSecurityPolicyDict, ResponseHeadersPolicyContentTypeOptions, + ResponseHeadersPolicyContentTypeOptionsDict, ResponseHeadersPolicyCorsConfig, + ResponseHeadersPolicyCorsConfigDict, ResponseHeadersPolicyCustomHeader, + ResponseHeadersPolicyCustomHeaderDict, ResponseHeadersPolicyCustomHeadersConfig, + ResponseHeadersPolicyCustomHeadersConfigDict, ResponseHeadersPolicyFrameOptions, + ResponseHeadersPolicyFrameOptionsDict, ResponseHeadersPolicyList, ResponseHeadersPolicyReferrerPolicy, + ResponseHeadersPolicyReferrerPolicyDict, ResponseHeadersPolicyRemoveHeader, + ResponseHeadersPolicyRemoveHeaderDict, ResponseHeadersPolicyRemoveHeadersConfig, + ResponseHeadersPolicyRemoveHeadersConfigDict, ResponseHeadersPolicySecurityHeadersConfig, + ResponseHeadersPolicySecurityHeadersConfigDict, ResponseHeadersPolicyServerTimingHeadersConfig, + ResponseHeadersPolicyServerTimingHeadersConfigDict, ResponseHeadersPolicyStrictTransportSecurity, + ResponseHeadersPolicyStrictTransportSecurityDict, ResponseHeadersPolicySummary, ResponseHeadersPolicyXSSProtection, + ResponseHeadersPolicyXSSProtectionDict, Restrictions, + RestrictionsDict, S3Origin, S3OriginConfig, + S3OriginConfigDict, + S3OriginDict, SessionStickinessConfig, + SessionStickinessConfigDict, Signer, StagingDistributionDnsNames, + StagingDistributionDnsNamesDict, StatusCodes, + StatusCodesDict, StreamingDistribution, StreamingDistributionConfig, + StreamingDistributionConfigDict, StreamingDistributionConfigWithTags, + StreamingDistributionConfigWithTagsDict, StreamingDistributionList, StreamingDistributionSummary, StreamingLoggingConfig, + StreamingLoggingConfigDict, StringSchemaConfig, + StringSchemaConfigDict, Tag, + TagDict, TagKeys, + TagKeysDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, Tags, + TagsDict, TenantConfig, + TenantConfigDict, TestConnectionFunctionInput, + TestConnectionFunctionInputDict, TestConnectionFunctionOutput, TestFunctionInput, + TestFunctionInputDict, TestFunctionOutput, TestResult, TrafficConfig, + TrafficConfigDict, TrustStore, TrustStoreConfig, + TrustStoreConfigDict, TrustStoreSummary, TrustedKeyGroups, + TrustedKeyGroupsDict, TrustedSigners, + TrustedSignersDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAnycastIpListInput, + UpdateAnycastIpListInputDict, UpdateAnycastIpListOutput, UpdateCachePolicyInput, + UpdateCachePolicyInputDict, UpdateCachePolicyOutput, UpdateCloudFrontOriginAccessIdentityInput, + UpdateCloudFrontOriginAccessIdentityInputDict, UpdateCloudFrontOriginAccessIdentityOutput, UpdateConnectionFunctionInput, + UpdateConnectionFunctionInputDict, UpdateConnectionFunctionOutput, UpdateConnectionGroupInput, + UpdateConnectionGroupInputDict, UpdateConnectionGroupOutput, UpdateContinuousDeploymentPolicyInput, + UpdateContinuousDeploymentPolicyInputDict, UpdateContinuousDeploymentPolicyOutput, UpdateDistributionInput, + UpdateDistributionInputDict, UpdateDistributionOutput, UpdateDistributionTenantInput, + UpdateDistributionTenantInputDict, UpdateDistributionTenantOutput, UpdateDistributionWithStagingConfigInput, + UpdateDistributionWithStagingConfigInputDict, UpdateDistributionWithStagingConfigOutput, UpdateDomainAssociationInput, + UpdateDomainAssociationInputDict, UpdateDomainAssociationOutput, UpdateFieldLevelEncryptionConfigInput, + UpdateFieldLevelEncryptionConfigInputDict, UpdateFieldLevelEncryptionConfigOutput, UpdateFieldLevelEncryptionProfileInput, + UpdateFieldLevelEncryptionProfileInputDict, UpdateFieldLevelEncryptionProfileOutput, UpdateFunctionInput, + UpdateFunctionInputDict, UpdateFunctionOutput, UpdateKeyGroupInput, + UpdateKeyGroupInputDict, UpdateKeyGroupOutput, UpdateKeyValueStoreInput, + UpdateKeyValueStoreInputDict, UpdateKeyValueStoreOutput, UpdateOriginAccessControlInput, + UpdateOriginAccessControlInputDict, UpdateOriginAccessControlOutput, UpdateOriginRequestPolicyInput, + UpdateOriginRequestPolicyInputDict, UpdateOriginRequestPolicyOutput, UpdatePublicKeyInput, + UpdatePublicKeyInputDict, UpdatePublicKeyOutput, UpdateRealtimeLogConfigInput, + UpdateRealtimeLogConfigInputDict, UpdateRealtimeLogConfigOutput, UpdateResponseHeadersPolicyInput, + UpdateResponseHeadersPolicyInputDict, UpdateResponseHeadersPolicyOutput, UpdateStreamingDistributionInput, + UpdateStreamingDistributionInputDict, UpdateStreamingDistributionOutput, UpdateTrustStoreInput, + UpdateTrustStoreInputDict, UpdateTrustStoreOutput, UpdateVpcOriginInput, + UpdateVpcOriginInputDict, UpdateVpcOriginOutput, ValidationTokenDetail, VerifyDnsConfigurationInput, + VerifyDnsConfigurationInputDict, VerifyDnsConfigurationOutput, ViewerCertificate, + ViewerCertificateDict, ViewerMtlsConfig, + ViewerMtlsConfigDict, VpcOrigin, VpcOriginConfig, + VpcOriginConfigDict, VpcOriginEndpointConfig, + VpcOriginEndpointConfigDict, VpcOriginList, VpcOriginSummary, WebAclCustomization, + WebAclCustomizationDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -1225,3 +1525,2662 @@ origin_endpoint_arn=_, ) WebAclCustomization(action=_) +_params_0: AliasesDict = {"quantity": _} +_params_1: AllowedMethodsDict = {"quantity": _, "items": _} +_params_2: AssociateAliasInputDict = {"target_distribution_id": _, "alias": _} +_params_3: AssociateDistributionTenantWebACLInputDict = {"id": _, "web_acl_arn": _} +_params_4: AssociateDistributionWebACLInputDict = {"id": _, "web_acl_arn": _} +_params_5: CaCertificatesBundleS3LocationDict = {"bucket": _, "key": _, "region": _} +_params_6: CaCertificatesBundleSourceDict = {"ca_certificates_bundle_s3_location": _} +_params_7: CacheBehaviorDict = { + "path_pattern": _, + "target_origin_id": _, + "viewer_protocol_policy": _, +} +_params_8: CacheBehaviorsDict = {"quantity": _} +_params_9: CachedMethodsDict = {"quantity": _, "items": _} +_params_10: CachePolicyConfigDict = {"name": _, "min_ttl": _} +_params_11: CachePolicyCookiesConfigDict = {"cookie_behavior": _} +_params_12: CachePolicyHeadersConfigDict = {"header_behavior": _} +_params_13: CachePolicyQueryStringsConfigDict = {"query_string_behavior": _} +_params_14: CacheTagConfigDict = {"header_name": _} +_params_15: CertificateDict = {"arn": _} +_params_16: CloudFrontOriginAccessIdentityConfigDict = { + "caller_reference": _, + "comment": _, +} +_params_17: ConnectionFunctionAssociationDict = {"id": _} +_params_18: ConnectionGroupAssociationFilterDict = {} +_params_19: ContentTypeProfileDict = {"format": _, "content_type": _} +_params_20: ContentTypeProfileConfigDict = {"forward_when_content_type_is_unknown": _} +_params_21: ContentTypeProfilesDict = {"quantity": _} +_params_22: ContinuousDeploymentPolicyConfigDict = { + "staging_distribution_dns_names": _, + "enabled": _, +} +_params_23: ContinuousDeploymentSingleHeaderConfigDict = {"header": _, "value": _} +_params_24: ContinuousDeploymentSingleWeightConfigDict = {"weight": _} +_params_25: CookieNamesDict = {"quantity": _} +_params_26: CookiePreferenceDict = {"forward": _} +_params_27: CopyDistributionInputDict = { + "primary_distribution_id": _, + "caller_reference": _, +} +_params_28: CreateAnycastIpListInputDict = {"name": _, "ip_count": _} +_params_29: CreateCachePolicyInputDict = {"cache_policy_config": _} +_params_30: CreateCloudFrontOriginAccessIdentityInputDict = { + "cloud_front_origin_access_identity_config": _ +} +_params_31: CreateConnectionFunctionInputDict = { + "name": _, + "connection_function_config": _, + "connection_function_code": _, +} +_params_32: CreateConnectionGroupInputDict = {"name": _} +_params_33: CreateContinuousDeploymentPolicyInputDict = { + "continuous_deployment_policy_config": _ +} +_params_34: CreateDistributionInputDict = {"distribution_config": _} +_params_35: CreateDistributionTenantInputDict = { + "distribution_id": _, + "name": _, + "domains": _, +} +_params_36: CreateDistributionWithTagsInputDict = {"distribution_config_with_tags": _} +_params_37: CreateFieldLevelEncryptionConfigInputDict = { + "field_level_encryption_config": _ +} +_params_38: CreateFieldLevelEncryptionProfileInputDict = { + "field_level_encryption_profile_config": _ +} +_params_39: CreateFunctionInputDict = { + "name": _, + "function_config": _, + "function_code": _, +} +_params_40: CreateInvalidationForDistributionTenantInputDict = { + "id": _, + "invalidation_batch": _, +} +_params_41: CreateInvalidationInputDict = { + "distribution_id": _, + "invalidation_batch": _, +} +_params_42: CreateKeyGroupInputDict = {"key_group_config": _} +_params_43: CreateKeyValueStoreInputDict = {"name": _} +_params_44: CreateMonitoringSubscriptionInputDict = { + "distribution_id": _, + "monitoring_subscription": _, +} +_params_45: CreateOriginAccessControlInputDict = {"origin_access_control_config": _} +_params_46: CreateOriginRequestPolicyInputDict = {"origin_request_policy_config": _} +_params_47: CreatePublicKeyInputDict = {"public_key_config": _} +_params_48: CreateRealtimeLogConfigInputDict = { + "end_points": _, + "fields": _, + "name": _, + "sampling_rate": _, +} +_params_49: CreateResponseHeadersPolicyInputDict = {"response_headers_policy_config": _} +_params_50: CreateStreamingDistributionInputDict = {"streaming_distribution_config": _} +_params_51: CreateStreamingDistributionWithTagsInputDict = { + "streaming_distribution_config_with_tags": _ +} +_params_52: CreateTrustStoreInputDict = {"name": _, "ca_certificates_bundle_source": _} +_params_53: CreateVpcOriginInputDict = {"vpc_origin_endpoint_config": _} +_params_54: CustomErrorResponseDict = {"error_code": _} +_params_55: CustomErrorResponsesDict = {"quantity": _} +_params_56: CustomHeadersDict = {"quantity": _} +_params_57: CustomizationsDict = {} +_params_58: CustomOriginConfigDict = { + "http_port": _, + "https_port": _, + "origin_protocol_policy": _, +} +_params_59: DefaultCacheBehaviorDict = { + "target_origin_id": _, + "viewer_protocol_policy": _, +} +_params_60: DeleteAnycastIpListInputDict = {"id": _, "if_match": _} +_params_61: DeleteCachePolicyInputDict = {"id": _} +_params_62: DeleteCloudFrontOriginAccessIdentityInputDict = {"id": _} +_params_63: DeleteConnectionFunctionInputDict = {"id": _, "if_match": _} +_params_64: DeleteConnectionGroupInputDict = {"id": _, "if_match": _} +_params_65: DeleteContinuousDeploymentPolicyInputDict = {"id": _} +_params_66: DeleteDistributionInputDict = {"id": _} +_params_67: DeleteDistributionTenantInputDict = {"id": _, "if_match": _} +_params_68: DeleteFieldLevelEncryptionConfigInputDict = {"id": _} +_params_69: DeleteFieldLevelEncryptionProfileInputDict = {"id": _} +_params_70: DeleteFunctionInputDict = {"name": _, "if_match": _} +_params_71: DeleteKeyGroupInputDict = {"id": _} +_params_72: DeleteKeyValueStoreInputDict = {"name": _, "if_match": _} +_params_73: DeleteMonitoringSubscriptionInputDict = {"distribution_id": _} +_params_74: DeleteOriginAccessControlInputDict = {"id": _} +_params_75: DeleteOriginRequestPolicyInputDict = {"id": _} +_params_76: DeletePublicKeyInputDict = {"id": _} +_params_77: DeleteRealtimeLogConfigInputDict = {} +_params_78: DeleteResourcePolicyInputDict = {"resource_arn": _} +_params_79: DeleteResponseHeadersPolicyInputDict = {"id": _} +_params_80: DeleteStreamingDistributionInputDict = {"id": _} +_params_81: DeleteTrustStoreInputDict = {"id": _, "if_match": _} +_params_82: DeleteVpcOriginInputDict = {"id": _, "if_match": _} +_params_83: DescribeConnectionFunctionInputDict = {"identifier": _} +_params_84: DescribeFunctionInputDict = {"name": _} +_params_85: DescribeKeyValueStoreInputDict = {"name": _} +_params_86: DisassociateDistributionTenantWebACLInputDict = {"id": _} +_params_87: DisassociateDistributionWebACLInputDict = {"id": _} +_params_88: DistributionConfigDict = { + "caller_reference": _, + "origins": _, + "default_cache_behavior": _, + "comment": _, + "enabled": _, +} +_params_89: DistributionConfigWithTagsDict = {"distribution_config": _, "tags": _} +_params_90: DistributionResourceIdDict = {} +_params_91: DistributionTenantAssociationFilterDict = {} +_params_92: DomainItemDict = {"domain": _} +_params_93: EncryptionEntitiesDict = {"quantity": _} +_params_94: EncryptionEntityDict = { + "public_key_id": _, + "provider_id": _, + "field_patterns": _, +} +_params_95: EndPointDict = {"stream_type": _} +_params_96: FieldLevelEncryptionConfigDict = {"caller_reference": _} +_params_97: FieldLevelEncryptionProfileConfigDict = { + "name": _, + "caller_reference": _, + "encryption_entities": _, +} +_params_98: FieldPatternsDict = {"quantity": _} +_params_99: ForwardedValuesDict = {"query_string": _, "cookies": _} +_params_100: FunctionAssociationDict = {"function_arn": _, "event_type": _} +_params_101: FunctionAssociationsDict = {"quantity": _} +_params_102: FunctionConfigDict = {"comment": _, "runtime": _} +_params_103: GeoRestrictionDict = {"restriction_type": _, "quantity": _} +_params_104: GeoRestrictionCustomizationDict = {"restriction_type": _} +_params_105: GetAnycastIpListInputDict = {"id": _} +_params_106: GetCachePolicyConfigInputDict = {"id": _} +_params_107: GetCachePolicyInputDict = {"id": _} +_params_108: GetCloudFrontOriginAccessIdentityConfigInputDict = {"id": _} +_params_109: GetCloudFrontOriginAccessIdentityInputDict = {"id": _} +_params_110: GetConnectionFunctionInputDict = {"identifier": _} +_params_111: GetConnectionGroupByRoutingEndpointInputDict = {"routing_endpoint": _} +_params_112: GetConnectionGroupInputDict = {"identifier": _} +_params_113: GetContinuousDeploymentPolicyConfigInputDict = {"id": _} +_params_114: GetContinuousDeploymentPolicyInputDict = {"id": _} +_params_115: GetDistributionConfigInputDict = {"id": _} +_params_116: GetDistributionInputDict = {"id": _} +_params_117: GetDistributionTenantByDomainInputDict = {"domain": _} +_params_118: GetDistributionTenantInputDict = {"identifier": _} +_params_119: GetFieldLevelEncryptionConfigInputDict = {"id": _} +_params_120: GetFieldLevelEncryptionInputDict = {"id": _} +_params_121: GetFieldLevelEncryptionProfileConfigInputDict = {"id": _} +_params_122: GetFieldLevelEncryptionProfileInputDict = {"id": _} +_params_123: GetFunctionInputDict = {"name": _} +_params_124: GetInvalidationForDistributionTenantInputDict = { + "distribution_tenant_id": _, + "id": _, +} +_params_125: GetInvalidationInputDict = {"distribution_id": _, "id": _} +_params_126: GetKeyGroupConfigInputDict = {"id": _} +_params_127: GetKeyGroupInputDict = {"id": _} +_params_128: GetManagedCertificateDetailsInputDict = {"identifier": _} +_params_129: GetMonitoringSubscriptionInputDict = {"distribution_id": _} +_params_130: GetOriginAccessControlConfigInputDict = {"id": _} +_params_131: GetOriginAccessControlInputDict = {"id": _} +_params_132: GetOriginRequestPolicyConfigInputDict = {"id": _} +_params_133: GetOriginRequestPolicyInputDict = {"id": _} +_params_134: GetPublicKeyConfigInputDict = {"id": _} +_params_135: GetPublicKeyInputDict = {"id": _} +_params_136: GetRealtimeLogConfigInputDict = {} +_params_137: GetResourcePolicyInputDict = {"resource_arn": _} +_params_138: GetResponseHeadersPolicyConfigInputDict = {"id": _} +_params_139: GetResponseHeadersPolicyInputDict = {"id": _} +_params_140: GetStreamingDistributionConfigInputDict = {"id": _} +_params_141: GetStreamingDistributionInputDict = {"id": _} +_params_142: GetTrustStoreInputDict = {"identifier": _} +_params_143: GetVpcOriginInputDict = {"id": _} +_params_144: GrpcConfigDict = {"enabled": _} +_params_145: HeadersDict = {"quantity": _} +_params_146: ImportSourceDict = {"source_type": _, "source_arn": _} +_params_147: InvalidationBatchDict = {"paths": _, "caller_reference": _} +_params_148: IpamCidrConfigDict = {"cidr": _, "ipam_pool_arn": _} +_params_149: KeyGroupConfigDict = {"name": _, "items": _} +_params_150: KeyValueStoreAssociationDict = {"key_value_store_arn": _} +_params_151: KeyValueStoreAssociationsDict = {"quantity": _} +_params_152: KinesisStreamConfigDict = {"role_arn": _, "stream_arn": _} +_params_153: LambdaFunctionAssociationDict = {"lambda_function_arn": _, "event_type": _} +_params_154: LambdaFunctionAssociationsDict = {"quantity": _} +_params_155: ListAnycastIpListsInputDict = {} +_params_156: ListCachePoliciesInputDict = {} +_params_157: ListCloudFrontOriginAccessIdentitiesInputDict = {} +_params_158: ListConflictingAliasesInputDict = {"distribution_id": _, "alias": _} +_params_159: ListConnectionFunctionsInputDict = {} +_params_160: ListConnectionGroupsInputDict = {} +_params_161: ListContinuousDeploymentPoliciesInputDict = {} +_params_162: ListDistributionsByAnycastIpListIdInputDict = {"anycast_ip_list_id": _} +_params_163: ListDistributionsByCachePolicyIdInputDict = {"cache_policy_id": _} +_params_164: ListDistributionsByConnectionFunctionInputDict = { + "connection_function_identifier": _ +} +_params_165: ListDistributionsByConnectionModeInputDict = {"connection_mode": _} +_params_166: ListDistributionsByKeyGroupInputDict = {"key_group_id": _} +_params_167: ListDistributionsByOriginRequestPolicyIdInputDict = { + "origin_request_policy_id": _ +} +_params_168: ListDistributionsByOwnedResourceInputDict = {"resource_arn": _} +_params_169: ListDistributionsByRealtimeLogConfigInputDict = {} +_params_170: ListDistributionsByResponseHeadersPolicyIdInputDict = { + "response_headers_policy_id": _ +} +_params_171: ListDistributionsByTrustStoreInputDict = {"trust_store_identifier": _} +_params_172: ListDistributionsByVpcOriginIdInputDict = {"vpc_origin_id": _} +_params_173: ListDistributionsByWebACLIdInputDict = {"web_acl_id": _} +_params_174: ListDistributionsInputDict = {} +_params_175: ListDistributionTenantsByCustomizationInputDict = {} +_params_176: ListDistributionTenantsInputDict = {} +_params_177: ListDomainConflictsInputDict = { + "domain": _, + "domain_control_validation_resource": _, +} +_params_178: ListFieldLevelEncryptionConfigsInputDict = {} +_params_179: ListFieldLevelEncryptionProfilesInputDict = {} +_params_180: ListFunctionsInputDict = {} +_params_181: ListInvalidationsForDistributionTenantInputDict = {"id": _} +_params_182: ListInvalidationsInputDict = {"distribution_id": _} +_params_183: ListKeyGroupsInputDict = {} +_params_184: ListKeyValueStoresInputDict = {} +_params_185: ListOriginAccessControlsInputDict = {} +_params_186: ListOriginRequestPoliciesInputDict = {} +_params_187: ListPublicKeysInputDict = {} +_params_188: ListRealtimeLogConfigsInputDict = {} +_params_189: ListResponseHeadersPoliciesInputDict = {} +_params_190: ListStreamingDistributionsInputDict = {} +_params_191: ListTagsForResourceInputDict = {"resource": _} +_params_192: ListTrustStoresInputDict = {} +_params_193: ListVpcOriginsInputDict = {} +_params_194: LoggingConfigDict = {} +_params_195: ManagedCertificateRequestDict = {"validation_token_host": _} +_params_196: MonitoringSubscriptionDict = {} +_params_197: OriginDict = {"id": _, "domain_name": _} +_params_198: OriginAccessControlConfigDict = { + "name": _, + "signing_protocol": _, + "signing_behavior": _, + "origin_access_control_origin_type": _, +} +_params_199: OriginCustomHeaderDict = {"header_name": _, "header_value": _} +_params_200: OriginGroupDict = {"id": _, "failover_criteria": _, "members": _} +_params_201: OriginGroupFailoverCriteriaDict = {"status_codes": _} +_params_202: OriginGroupMemberDict = {"origin_id": _} +_params_203: OriginGroupMembersDict = {"quantity": _, "items": _} +_params_204: OriginGroupsDict = {"quantity": _} +_params_205: OriginMtlsConfigDict = {"client_certificate_arn": _} +_params_206: OriginRequestPolicyConfigDict = { + "name": _, + "headers_config": _, + "cookies_config": _, + "query_strings_config": _, +} +_params_207: OriginRequestPolicyCookiesConfigDict = {"cookie_behavior": _} +_params_208: OriginRequestPolicyHeadersConfigDict = {"header_behavior": _} +_params_209: OriginRequestPolicyQueryStringsConfigDict = {"query_string_behavior": _} +_params_210: OriginsDict = {"quantity": _, "items": _} +_params_211: OriginShieldDict = {"enabled": _} +_params_212: OriginSslProtocolsDict = {"quantity": _, "items": _} +_params_213: ParameterDict = {"name": _, "value": _} +_params_214: ParameterDefinitionDict = {"name": _, "definition": _} +_params_215: ParameterDefinitionSchemaDict = {} +_params_216: ParametersInCacheKeyAndForwardedToOriginDict = { + "enable_accept_encoding_gzip": _, + "headers_config": _, + "cookies_config": _, + "query_strings_config": _, +} +_params_217: PathsDict = {"quantity": _} +_params_218: PublicKeyConfigDict = {"caller_reference": _, "name": _, "encoded_key": _} +_params_219: PublishConnectionFunctionInputDict = {"id": _, "if_match": _} +_params_220: PublishFunctionInputDict = {"name": _, "if_match": _} +_params_221: PutResourcePolicyInputDict = {"resource_arn": _, "policy_document": _} +_params_222: QueryArgProfileDict = {"query_arg": _, "profile_id": _} +_params_223: QueryArgProfileConfigDict = { + "forward_when_query_arg_profile_is_unknown": _ +} +_params_224: QueryArgProfilesDict = {"quantity": _} +_params_225: QueryStringCacheKeysDict = {"quantity": _} +_params_226: QueryStringNamesDict = {"quantity": _} +_params_227: RealtimeMetricsSubscriptionConfigDict = { + "realtime_metrics_subscription_status": _ +} +_params_228: ResponseHeadersPolicyAccessControlAllowHeadersDict = { + "quantity": _, + "items": _, +} +_params_229: ResponseHeadersPolicyAccessControlAllowMethodsDict = { + "quantity": _, + "items": _, +} +_params_230: ResponseHeadersPolicyAccessControlAllowOriginsDict = { + "quantity": _, + "items": _, +} +_params_231: ResponseHeadersPolicyAccessControlExposeHeadersDict = {"quantity": _} +_params_232: ResponseHeadersPolicyConfigDict = {"name": _} +_params_233: ResponseHeadersPolicyContentSecurityPolicyDict = { + "override": _, + "content_security_policy": _, +} +_params_234: ResponseHeadersPolicyContentTypeOptionsDict = {"override": _} +_params_235: ResponseHeadersPolicyCorsConfigDict = { + "access_control_allow_origins": _, + "access_control_allow_headers": _, + "access_control_allow_methods": _, + "access_control_allow_credentials": _, + "origin_override": _, +} +_params_236: ResponseHeadersPolicyCustomHeaderDict = { + "header": _, + "value": _, + "override": _, +} +_params_237: ResponseHeadersPolicyCustomHeadersConfigDict = {"quantity": _} +_params_238: ResponseHeadersPolicyFrameOptionsDict = {"override": _, "frame_option": _} +_params_239: ResponseHeadersPolicyReferrerPolicyDict = { + "override": _, + "referrer_policy": _, +} +_params_240: ResponseHeadersPolicyRemoveHeaderDict = {"header": _} +_params_241: ResponseHeadersPolicyRemoveHeadersConfigDict = {"quantity": _} +_params_242: ResponseHeadersPolicySecurityHeadersConfigDict = {} +_params_243: ResponseHeadersPolicyServerTimingHeadersConfigDict = {"enabled": _} +_params_244: ResponseHeadersPolicyStrictTransportSecurityDict = { + "override": _, + "access_control_max_age_sec": _, +} +_params_245: ResponseHeadersPolicyXSSProtectionDict = {"override": _, "protection": _} +_params_246: RestrictionsDict = {"geo_restriction": _} +_params_247: S3OriginDict = {"domain_name": _, "origin_access_identity": _} +_params_248: S3OriginConfigDict = {} +_params_249: SessionStickinessConfigDict = {"idle_ttl": _, "maximum_ttl": _} +_params_250: StagingDistributionDnsNamesDict = {"quantity": _} +_params_251: StatusCodesDict = {"quantity": _, "items": _} +_params_252: StreamingDistributionConfigDict = { + "caller_reference": _, + "s3_origin": _, + "comment": _, + "trusted_signers": _, + "enabled": _, +} +_params_253: StreamingDistributionConfigWithTagsDict = { + "streaming_distribution_config": _, + "tags": _, +} +_params_254: StreamingLoggingConfigDict = {"enabled": _, "bucket": _, "prefix": _} +_params_255: StringSchemaConfigDict = {"required": _} +_params_256: TagDict = {"key": _} +_params_257: TagKeysDict = {} +_params_258: TagResourceInputDict = {"resource": _, "tags": _} +_params_259: TagsDict = {} +_params_260: TenantConfigDict = {} +_params_261: TestConnectionFunctionInputDict = { + "id": _, + "if_match": _, + "connection_object": _, +} +_params_262: TestFunctionInputDict = {"name": _, "if_match": _, "event_object": _} +_params_263: TrafficConfigDict = {"type": _} +_params_264: TrustedKeyGroupsDict = {"enabled": _, "quantity": _} +_params_265: TrustedSignersDict = {"enabled": _, "quantity": _} +_params_266: TrustStoreConfigDict = {"trust_store_id": _} +_params_267: UntagResourceInputDict = {"resource": _, "tag_keys": _} +_params_268: UpdateAnycastIpListInputDict = {"id": _, "if_match": _} +_params_269: UpdateCachePolicyInputDict = {"cache_policy_config": _, "id": _} +_params_270: UpdateCloudFrontOriginAccessIdentityInputDict = { + "cloud_front_origin_access_identity_config": _, + "id": _, +} +_params_271: UpdateConnectionFunctionInputDict = { + "id": _, + "if_match": _, + "connection_function_config": _, + "connection_function_code": _, +} +_params_272: UpdateConnectionGroupInputDict = {"id": _, "if_match": _} +_params_273: UpdateContinuousDeploymentPolicyInputDict = { + "continuous_deployment_policy_config": _, + "id": _, +} +_params_274: UpdateDistributionInputDict = {"distribution_config": _, "id": _} +_params_275: UpdateDistributionTenantInputDict = {"id": _, "if_match": _} +_params_276: UpdateDistributionWithStagingConfigInputDict = {"id": _} +_params_277: UpdateDomainAssociationInputDict = {"domain": _, "target_resource": _} +_params_278: UpdateFieldLevelEncryptionConfigInputDict = { + "field_level_encryption_config": _, + "id": _, +} +_params_279: UpdateFieldLevelEncryptionProfileInputDict = { + "field_level_encryption_profile_config": _, + "id": _, +} +_params_280: UpdateFunctionInputDict = { + "name": _, + "if_match": _, + "function_config": _, + "function_code": _, +} +_params_281: UpdateKeyGroupInputDict = {"key_group_config": _, "id": _} +_params_282: UpdateKeyValueStoreInputDict = {"name": _, "comment": _, "if_match": _} +_params_283: UpdateOriginAccessControlInputDict = { + "origin_access_control_config": _, + "id": _, +} +_params_284: UpdateOriginRequestPolicyInputDict = { + "origin_request_policy_config": _, + "id": _, +} +_params_285: UpdatePublicKeyInputDict = {"public_key_config": _, "id": _} +_params_286: UpdateRealtimeLogConfigInputDict = {} +_params_287: UpdateResponseHeadersPolicyInputDict = { + "response_headers_policy_config": _, + "id": _, +} +_params_288: UpdateStreamingDistributionInputDict = { + "streaming_distribution_config": _, + "id": _, +} +_params_289: UpdateTrustStoreInputDict = {"id": _, "if_match": _} +_params_290: UpdateVpcOriginInputDict = { + "vpc_origin_endpoint_config": _, + "id": _, + "if_match": _, +} +_params_291: VerifyDnsConfigurationInputDict = {"identifier": _} +_params_292: ViewerCertificateDict = {} +_params_293: ViewerMtlsConfigDict = {} +_params_294: VpcOriginConfigDict = {"vpc_origin_id": _} +_params_295: VpcOriginEndpointConfigDict = { + "name": _, + "arn": _, + "http_port": _, + "https_port": _, + "origin_protocol_policy": _, +} +_params_296: WebAclCustomizationDict = {"action": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncCloudFrontClient) -> None: + pass + await client.associate_alias(target_distribution_id=_, alias=_) + await client.associate_alias(**_request(AssociateAliasInputDict)) + await client.associate_alias(_request(AssociateAliasInput)) + await client.associate_alias(_request(AssociateAliasInputDict)) + await client.associate_distribution_tenant_web_acl(id=_, web_acl_arn=_) + await client.associate_distribution_tenant_web_acl( + **_request(AssociateDistributionTenantWebACLInputDict) + ) + await client.associate_distribution_tenant_web_acl( + _request(AssociateDistributionTenantWebACLInput) + ) + await client.associate_distribution_tenant_web_acl( + _request(AssociateDistributionTenantWebACLInputDict) + ) + await client.associate_distribution_web_acl(id=_, web_acl_arn=_) + await client.associate_distribution_web_acl( + **_request(AssociateDistributionWebACLInputDict) + ) + await client.associate_distribution_web_acl( + _request(AssociateDistributionWebACLInput) + ) + await client.associate_distribution_web_acl( + _request(AssociateDistributionWebACLInputDict) + ) + await client.copy_distribution(primary_distribution_id=_, caller_reference=_) + await client.copy_distribution(**_request(CopyDistributionInputDict)) + await client.copy_distribution(_request(CopyDistributionInput)) + await client.copy_distribution(_request(CopyDistributionInputDict)) + await client.create_anycast_ip_list(name=_, ip_count=_) + await client.create_anycast_ip_list(**_request(CreateAnycastIpListInputDict)) + await client.create_anycast_ip_list(_request(CreateAnycastIpListInput)) + await client.create_anycast_ip_list(_request(CreateAnycastIpListInputDict)) + await client.create_cache_policy(cache_policy_config=_) + await client.create_cache_policy(**_request(CreateCachePolicyInputDict)) + await client.create_cache_policy(_request(CreateCachePolicyInput)) + await client.create_cache_policy(_request(CreateCachePolicyInputDict)) + await client.create_cloud_front_origin_access_identity( + cloud_front_origin_access_identity_config=_ + ) + await client.create_cloud_front_origin_access_identity( + **_request(CreateCloudFrontOriginAccessIdentityInputDict) + ) + await client.create_cloud_front_origin_access_identity( + _request(CreateCloudFrontOriginAccessIdentityInput) + ) + await client.create_cloud_front_origin_access_identity( + _request(CreateCloudFrontOriginAccessIdentityInputDict) + ) + await client.create_connection_function( + name=_, connection_function_config=_, connection_function_code=_ + ) + await client.create_connection_function( + **_request(CreateConnectionFunctionInputDict) + ) + await client.create_connection_function(_request(CreateConnectionFunctionInput)) + await client.create_connection_function(_request(CreateConnectionFunctionInputDict)) + await client.create_connection_group(name=_) + await client.create_connection_group(**_request(CreateConnectionGroupInputDict)) + await client.create_connection_group(_request(CreateConnectionGroupInput)) + await client.create_connection_group(_request(CreateConnectionGroupInputDict)) + await client.create_continuous_deployment_policy( + continuous_deployment_policy_config=_ + ) + await client.create_continuous_deployment_policy( + **_request(CreateContinuousDeploymentPolicyInputDict) + ) + await client.create_continuous_deployment_policy( + _request(CreateContinuousDeploymentPolicyInput) + ) + await client.create_continuous_deployment_policy( + _request(CreateContinuousDeploymentPolicyInputDict) + ) + await client.create_distribution(distribution_config=_) + await client.create_distribution(**_request(CreateDistributionInputDict)) + await client.create_distribution(_request(CreateDistributionInput)) + await client.create_distribution(_request(CreateDistributionInputDict)) + await client.create_distribution_tenant(distribution_id=_, name=_, domains=_) + await client.create_distribution_tenant( + **_request(CreateDistributionTenantInputDict) + ) + await client.create_distribution_tenant(_request(CreateDistributionTenantInput)) + await client.create_distribution_tenant(_request(CreateDistributionTenantInputDict)) + await client.create_distribution_with_tags(distribution_config_with_tags=_) + await client.create_distribution_with_tags( + **_request(CreateDistributionWithTagsInputDict) + ) + await client.create_distribution_with_tags( + _request(CreateDistributionWithTagsInput) + ) + await client.create_distribution_with_tags( + _request(CreateDistributionWithTagsInputDict) + ) + await client.create_field_level_encryption_config(field_level_encryption_config=_) + await client.create_field_level_encryption_config( + **_request(CreateFieldLevelEncryptionConfigInputDict) + ) + await client.create_field_level_encryption_config( + _request(CreateFieldLevelEncryptionConfigInput) + ) + await client.create_field_level_encryption_config( + _request(CreateFieldLevelEncryptionConfigInputDict) + ) + await client.create_field_level_encryption_profile( + field_level_encryption_profile_config=_ + ) + await client.create_field_level_encryption_profile( + **_request(CreateFieldLevelEncryptionProfileInputDict) + ) + await client.create_field_level_encryption_profile( + _request(CreateFieldLevelEncryptionProfileInput) + ) + await client.create_field_level_encryption_profile( + _request(CreateFieldLevelEncryptionProfileInputDict) + ) + await client.create_function(name=_, function_config=_, function_code=_) + await client.create_function(**_request(CreateFunctionInputDict)) + await client.create_function(_request(CreateFunctionInput)) + await client.create_function(_request(CreateFunctionInputDict)) + await client.create_invalidation(distribution_id=_, invalidation_batch=_) + await client.create_invalidation(**_request(CreateInvalidationInputDict)) + await client.create_invalidation(_request(CreateInvalidationInput)) + await client.create_invalidation(_request(CreateInvalidationInputDict)) + await client.create_invalidation_for_distribution_tenant(id=_, invalidation_batch=_) + await client.create_invalidation_for_distribution_tenant( + **_request(CreateInvalidationForDistributionTenantInputDict) + ) + await client.create_invalidation_for_distribution_tenant( + _request(CreateInvalidationForDistributionTenantInput) + ) + await client.create_invalidation_for_distribution_tenant( + _request(CreateInvalidationForDistributionTenantInputDict) + ) + await client.create_key_group(key_group_config=_) + await client.create_key_group(**_request(CreateKeyGroupInputDict)) + await client.create_key_group(_request(CreateKeyGroupInput)) + await client.create_key_group(_request(CreateKeyGroupInputDict)) + await client.create_key_value_store(name=_) + await client.create_key_value_store(**_request(CreateKeyValueStoreInputDict)) + await client.create_key_value_store(_request(CreateKeyValueStoreInput)) + await client.create_key_value_store(_request(CreateKeyValueStoreInputDict)) + await client.create_monitoring_subscription( + distribution_id=_, monitoring_subscription=_ + ) + await client.create_monitoring_subscription( + **_request(CreateMonitoringSubscriptionInputDict) + ) + await client.create_monitoring_subscription( + _request(CreateMonitoringSubscriptionInput) + ) + await client.create_monitoring_subscription( + _request(CreateMonitoringSubscriptionInputDict) + ) + await client.create_origin_access_control(origin_access_control_config=_) + await client.create_origin_access_control( + **_request(CreateOriginAccessControlInputDict) + ) + await client.create_origin_access_control(_request(CreateOriginAccessControlInput)) + await client.create_origin_access_control( + _request(CreateOriginAccessControlInputDict) + ) + await client.create_origin_request_policy(origin_request_policy_config=_) + await client.create_origin_request_policy( + **_request(CreateOriginRequestPolicyInputDict) + ) + await client.create_origin_request_policy(_request(CreateOriginRequestPolicyInput)) + await client.create_origin_request_policy( + _request(CreateOriginRequestPolicyInputDict) + ) + await client.create_public_key(public_key_config=_) + await client.create_public_key(**_request(CreatePublicKeyInputDict)) + await client.create_public_key(_request(CreatePublicKeyInput)) + await client.create_public_key(_request(CreatePublicKeyInputDict)) + await client.create_realtime_log_config( + end_points=_, fields=_, name=_, sampling_rate=_ + ) + await client.create_realtime_log_config( + **_request(CreateRealtimeLogConfigInputDict) + ) + await client.create_realtime_log_config(_request(CreateRealtimeLogConfigInput)) + await client.create_realtime_log_config(_request(CreateRealtimeLogConfigInputDict)) + await client.create_response_headers_policy(response_headers_policy_config=_) + await client.create_response_headers_policy( + **_request(CreateResponseHeadersPolicyInputDict) + ) + await client.create_response_headers_policy( + _request(CreateResponseHeadersPolicyInput) + ) + await client.create_response_headers_policy( + _request(CreateResponseHeadersPolicyInputDict) + ) + await client.create_streaming_distribution(streaming_distribution_config=_) + await client.create_streaming_distribution( + **_request(CreateStreamingDistributionInputDict) + ) + await client.create_streaming_distribution( + _request(CreateStreamingDistributionInput) + ) + await client.create_streaming_distribution( + _request(CreateStreamingDistributionInputDict) + ) + await client.create_streaming_distribution_with_tags( + streaming_distribution_config_with_tags=_ + ) + await client.create_streaming_distribution_with_tags( + **_request(CreateStreamingDistributionWithTagsInputDict) + ) + await client.create_streaming_distribution_with_tags( + _request(CreateStreamingDistributionWithTagsInput) + ) + await client.create_streaming_distribution_with_tags( + _request(CreateStreamingDistributionWithTagsInputDict) + ) + await client.create_trust_store(name=_, ca_certificates_bundle_source=_) + await client.create_trust_store(**_request(CreateTrustStoreInputDict)) + await client.create_trust_store(_request(CreateTrustStoreInput)) + await client.create_trust_store(_request(CreateTrustStoreInputDict)) + await client.create_vpc_origin(vpc_origin_endpoint_config=_) + await client.create_vpc_origin(**_request(CreateVpcOriginInputDict)) + await client.create_vpc_origin(_request(CreateVpcOriginInput)) + await client.create_vpc_origin(_request(CreateVpcOriginInputDict)) + await client.delete_anycast_ip_list(id=_, if_match=_) + await client.delete_anycast_ip_list(**_request(DeleteAnycastIpListInputDict)) + await client.delete_anycast_ip_list(_request(DeleteAnycastIpListInput)) + await client.delete_anycast_ip_list(_request(DeleteAnycastIpListInputDict)) + await client.delete_cache_policy(id=_) + await client.delete_cache_policy(**_request(DeleteCachePolicyInputDict)) + await client.delete_cache_policy(_request(DeleteCachePolicyInput)) + await client.delete_cache_policy(_request(DeleteCachePolicyInputDict)) + await client.delete_cloud_front_origin_access_identity(id=_) + await client.delete_cloud_front_origin_access_identity( + **_request(DeleteCloudFrontOriginAccessIdentityInputDict) + ) + await client.delete_cloud_front_origin_access_identity( + _request(DeleteCloudFrontOriginAccessIdentityInput) + ) + await client.delete_cloud_front_origin_access_identity( + _request(DeleteCloudFrontOriginAccessIdentityInputDict) + ) + await client.delete_connection_function(id=_, if_match=_) + await client.delete_connection_function( + **_request(DeleteConnectionFunctionInputDict) + ) + await client.delete_connection_function(_request(DeleteConnectionFunctionInput)) + await client.delete_connection_function(_request(DeleteConnectionFunctionInputDict)) + await client.delete_connection_group(id=_, if_match=_) + await client.delete_connection_group(**_request(DeleteConnectionGroupInputDict)) + await client.delete_connection_group(_request(DeleteConnectionGroupInput)) + await client.delete_connection_group(_request(DeleteConnectionGroupInputDict)) + await client.delete_continuous_deployment_policy(id=_) + await client.delete_continuous_deployment_policy( + **_request(DeleteContinuousDeploymentPolicyInputDict) + ) + await client.delete_continuous_deployment_policy( + _request(DeleteContinuousDeploymentPolicyInput) + ) + await client.delete_continuous_deployment_policy( + _request(DeleteContinuousDeploymentPolicyInputDict) + ) + await client.delete_distribution(id=_) + await client.delete_distribution(**_request(DeleteDistributionInputDict)) + await client.delete_distribution(_request(DeleteDistributionInput)) + await client.delete_distribution(_request(DeleteDistributionInputDict)) + await client.delete_distribution_tenant(id=_, if_match=_) + await client.delete_distribution_tenant( + **_request(DeleteDistributionTenantInputDict) + ) + await client.delete_distribution_tenant(_request(DeleteDistributionTenantInput)) + await client.delete_distribution_tenant(_request(DeleteDistributionTenantInputDict)) + await client.delete_field_level_encryption_config(id=_) + await client.delete_field_level_encryption_config( + **_request(DeleteFieldLevelEncryptionConfigInputDict) + ) + await client.delete_field_level_encryption_config( + _request(DeleteFieldLevelEncryptionConfigInput) + ) + await client.delete_field_level_encryption_config( + _request(DeleteFieldLevelEncryptionConfigInputDict) + ) + await client.delete_field_level_encryption_profile(id=_) + await client.delete_field_level_encryption_profile( + **_request(DeleteFieldLevelEncryptionProfileInputDict) + ) + await client.delete_field_level_encryption_profile( + _request(DeleteFieldLevelEncryptionProfileInput) + ) + await client.delete_field_level_encryption_profile( + _request(DeleteFieldLevelEncryptionProfileInputDict) + ) + await client.delete_function(name=_, if_match=_) + await client.delete_function(**_request(DeleteFunctionInputDict)) + await client.delete_function(_request(DeleteFunctionInput)) + await client.delete_function(_request(DeleteFunctionInputDict)) + await client.delete_key_group(id=_) + await client.delete_key_group(**_request(DeleteKeyGroupInputDict)) + await client.delete_key_group(_request(DeleteKeyGroupInput)) + await client.delete_key_group(_request(DeleteKeyGroupInputDict)) + await client.delete_key_value_store(name=_, if_match=_) + await client.delete_key_value_store(**_request(DeleteKeyValueStoreInputDict)) + await client.delete_key_value_store(_request(DeleteKeyValueStoreInput)) + await client.delete_key_value_store(_request(DeleteKeyValueStoreInputDict)) + await client.delete_monitoring_subscription(distribution_id=_) + await client.delete_monitoring_subscription( + **_request(DeleteMonitoringSubscriptionInputDict) + ) + await client.delete_monitoring_subscription( + _request(DeleteMonitoringSubscriptionInput) + ) + await client.delete_monitoring_subscription( + _request(DeleteMonitoringSubscriptionInputDict) + ) + await client.delete_origin_access_control(id=_) + await client.delete_origin_access_control( + **_request(DeleteOriginAccessControlInputDict) + ) + await client.delete_origin_access_control(_request(DeleteOriginAccessControlInput)) + await client.delete_origin_access_control( + _request(DeleteOriginAccessControlInputDict) + ) + await client.delete_origin_request_policy(id=_) + await client.delete_origin_request_policy( + **_request(DeleteOriginRequestPolicyInputDict) + ) + await client.delete_origin_request_policy(_request(DeleteOriginRequestPolicyInput)) + await client.delete_origin_request_policy( + _request(DeleteOriginRequestPolicyInputDict) + ) + await client.delete_public_key(id=_) + await client.delete_public_key(**_request(DeletePublicKeyInputDict)) + await client.delete_public_key(_request(DeletePublicKeyInput)) + await client.delete_public_key(_request(DeletePublicKeyInputDict)) + await client.delete_realtime_log_config() + await client.delete_realtime_log_config( + **_request(DeleteRealtimeLogConfigInputDict) + ) + await client.delete_realtime_log_config(_request(DeleteRealtimeLogConfigInput)) + await client.delete_realtime_log_config(_request(DeleteRealtimeLogConfigInputDict)) + await client.delete_resource_policy(resource_arn=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.delete_response_headers_policy(id=_) + await client.delete_response_headers_policy( + **_request(DeleteResponseHeadersPolicyInputDict) + ) + await client.delete_response_headers_policy( + _request(DeleteResponseHeadersPolicyInput) + ) + await client.delete_response_headers_policy( + _request(DeleteResponseHeadersPolicyInputDict) + ) + await client.delete_streaming_distribution(id=_) + await client.delete_streaming_distribution( + **_request(DeleteStreamingDistributionInputDict) + ) + await client.delete_streaming_distribution( + _request(DeleteStreamingDistributionInput) + ) + await client.delete_streaming_distribution( + _request(DeleteStreamingDistributionInputDict) + ) + await client.delete_trust_store(id=_, if_match=_) + await client.delete_trust_store(**_request(DeleteTrustStoreInputDict)) + await client.delete_trust_store(_request(DeleteTrustStoreInput)) + await client.delete_trust_store(_request(DeleteTrustStoreInputDict)) + await client.delete_vpc_origin(id=_, if_match=_) + await client.delete_vpc_origin(**_request(DeleteVpcOriginInputDict)) + await client.delete_vpc_origin(_request(DeleteVpcOriginInput)) + await client.delete_vpc_origin(_request(DeleteVpcOriginInputDict)) + await client.describe_connection_function(identifier=_) + await client.describe_connection_function( + **_request(DescribeConnectionFunctionInputDict) + ) + await client.describe_connection_function(_request(DescribeConnectionFunctionInput)) + await client.describe_connection_function( + _request(DescribeConnectionFunctionInputDict) + ) + await client.describe_function(name=_) + await client.describe_function(**_request(DescribeFunctionInputDict)) + await client.describe_function(_request(DescribeFunctionInput)) + await client.describe_function(_request(DescribeFunctionInputDict)) + await client.describe_key_value_store(name=_) + await client.describe_key_value_store(**_request(DescribeKeyValueStoreInputDict)) + await client.describe_key_value_store(_request(DescribeKeyValueStoreInput)) + await client.describe_key_value_store(_request(DescribeKeyValueStoreInputDict)) + await client.disassociate_distribution_tenant_web_acl(id=_) + await client.disassociate_distribution_tenant_web_acl( + **_request(DisassociateDistributionTenantWebACLInputDict) + ) + await client.disassociate_distribution_tenant_web_acl( + _request(DisassociateDistributionTenantWebACLInput) + ) + await client.disassociate_distribution_tenant_web_acl( + _request(DisassociateDistributionTenantWebACLInputDict) + ) + await client.disassociate_distribution_web_acl(id=_) + await client.disassociate_distribution_web_acl( + **_request(DisassociateDistributionWebACLInputDict) + ) + await client.disassociate_distribution_web_acl( + _request(DisassociateDistributionWebACLInput) + ) + await client.disassociate_distribution_web_acl( + _request(DisassociateDistributionWebACLInputDict) + ) + await client.get_anycast_ip_list(id=_) + await client.get_anycast_ip_list(**_request(GetAnycastIpListInputDict)) + await client.get_anycast_ip_list(_request(GetAnycastIpListInput)) + await client.get_anycast_ip_list(_request(GetAnycastIpListInputDict)) + await client.get_cache_policy(id=_) + await client.get_cache_policy(**_request(GetCachePolicyInputDict)) + await client.get_cache_policy(_request(GetCachePolicyInput)) + await client.get_cache_policy(_request(GetCachePolicyInputDict)) + await client.get_cache_policy_config(id=_) + await client.get_cache_policy_config(**_request(GetCachePolicyConfigInputDict)) + await client.get_cache_policy_config(_request(GetCachePolicyConfigInput)) + await client.get_cache_policy_config(_request(GetCachePolicyConfigInputDict)) + await client.get_cloud_front_origin_access_identity(id=_) + await client.get_cloud_front_origin_access_identity( + **_request(GetCloudFrontOriginAccessIdentityInputDict) + ) + await client.get_cloud_front_origin_access_identity( + _request(GetCloudFrontOriginAccessIdentityInput) + ) + await client.get_cloud_front_origin_access_identity( + _request(GetCloudFrontOriginAccessIdentityInputDict) + ) + await client.get_cloud_front_origin_access_identity_config(id=_) + await client.get_cloud_front_origin_access_identity_config( + **_request(GetCloudFrontOriginAccessIdentityConfigInputDict) + ) + await client.get_cloud_front_origin_access_identity_config( + _request(GetCloudFrontOriginAccessIdentityConfigInput) + ) + await client.get_cloud_front_origin_access_identity_config( + _request(GetCloudFrontOriginAccessIdentityConfigInputDict) + ) + await client.get_connection_function(identifier=_) + await client.get_connection_function(**_request(GetConnectionFunctionInputDict)) + await client.get_connection_function(_request(GetConnectionFunctionInput)) + await client.get_connection_function(_request(GetConnectionFunctionInputDict)) + await client.get_connection_group(identifier=_) + await client.get_connection_group(**_request(GetConnectionGroupInputDict)) + await client.get_connection_group(_request(GetConnectionGroupInput)) + await client.get_connection_group(_request(GetConnectionGroupInputDict)) + await client.get_connection_group_by_routing_endpoint(routing_endpoint=_) + await client.get_connection_group_by_routing_endpoint( + **_request(GetConnectionGroupByRoutingEndpointInputDict) + ) + await client.get_connection_group_by_routing_endpoint( + _request(GetConnectionGroupByRoutingEndpointInput) + ) + await client.get_connection_group_by_routing_endpoint( + _request(GetConnectionGroupByRoutingEndpointInputDict) + ) + await client.get_continuous_deployment_policy(id=_) + await client.get_continuous_deployment_policy( + **_request(GetContinuousDeploymentPolicyInputDict) + ) + await client.get_continuous_deployment_policy( + _request(GetContinuousDeploymentPolicyInput) + ) + await client.get_continuous_deployment_policy( + _request(GetContinuousDeploymentPolicyInputDict) + ) + await client.get_continuous_deployment_policy_config(id=_) + await client.get_continuous_deployment_policy_config( + **_request(GetContinuousDeploymentPolicyConfigInputDict) + ) + await client.get_continuous_deployment_policy_config( + _request(GetContinuousDeploymentPolicyConfigInput) + ) + await client.get_continuous_deployment_policy_config( + _request(GetContinuousDeploymentPolicyConfigInputDict) + ) + await client.get_distribution(id=_) + await client.get_distribution(**_request(GetDistributionInputDict)) + await client.get_distribution(_request(GetDistributionInput)) + await client.get_distribution(_request(GetDistributionInputDict)) + await client.get_distribution_config(id=_) + await client.get_distribution_config(**_request(GetDistributionConfigInputDict)) + await client.get_distribution_config(_request(GetDistributionConfigInput)) + await client.get_distribution_config(_request(GetDistributionConfigInputDict)) + await client.get_distribution_tenant(identifier=_) + await client.get_distribution_tenant(**_request(GetDistributionTenantInputDict)) + await client.get_distribution_tenant(_request(GetDistributionTenantInput)) + await client.get_distribution_tenant(_request(GetDistributionTenantInputDict)) + await client.get_distribution_tenant_by_domain(domain=_) + await client.get_distribution_tenant_by_domain( + **_request(GetDistributionTenantByDomainInputDict) + ) + await client.get_distribution_tenant_by_domain( + _request(GetDistributionTenantByDomainInput) + ) + await client.get_distribution_tenant_by_domain( + _request(GetDistributionTenantByDomainInputDict) + ) + await client.get_field_level_encryption(id=_) + await client.get_field_level_encryption( + **_request(GetFieldLevelEncryptionInputDict) + ) + await client.get_field_level_encryption(_request(GetFieldLevelEncryptionInput)) + await client.get_field_level_encryption(_request(GetFieldLevelEncryptionInputDict)) + await client.get_field_level_encryption_config(id=_) + await client.get_field_level_encryption_config( + **_request(GetFieldLevelEncryptionConfigInputDict) + ) + await client.get_field_level_encryption_config( + _request(GetFieldLevelEncryptionConfigInput) + ) + await client.get_field_level_encryption_config( + _request(GetFieldLevelEncryptionConfigInputDict) + ) + await client.get_field_level_encryption_profile(id=_) + await client.get_field_level_encryption_profile( + **_request(GetFieldLevelEncryptionProfileInputDict) + ) + await client.get_field_level_encryption_profile( + _request(GetFieldLevelEncryptionProfileInput) + ) + await client.get_field_level_encryption_profile( + _request(GetFieldLevelEncryptionProfileInputDict) + ) + await client.get_field_level_encryption_profile_config(id=_) + await client.get_field_level_encryption_profile_config( + **_request(GetFieldLevelEncryptionProfileConfigInputDict) + ) + await client.get_field_level_encryption_profile_config( + _request(GetFieldLevelEncryptionProfileConfigInput) + ) + await client.get_field_level_encryption_profile_config( + _request(GetFieldLevelEncryptionProfileConfigInputDict) + ) + await client.get_function(name=_) + await client.get_function(**_request(GetFunctionInputDict)) + await client.get_function(_request(GetFunctionInput)) + await client.get_function(_request(GetFunctionInputDict)) + await client.get_invalidation(distribution_id=_, id=_) + await client.get_invalidation(**_request(GetInvalidationInputDict)) + await client.get_invalidation(_request(GetInvalidationInput)) + await client.get_invalidation(_request(GetInvalidationInputDict)) + await client.get_invalidation_for_distribution_tenant( + distribution_tenant_id=_, id=_ + ) + await client.get_invalidation_for_distribution_tenant( + **_request(GetInvalidationForDistributionTenantInputDict) + ) + await client.get_invalidation_for_distribution_tenant( + _request(GetInvalidationForDistributionTenantInput) + ) + await client.get_invalidation_for_distribution_tenant( + _request(GetInvalidationForDistributionTenantInputDict) + ) + await client.get_key_group(id=_) + await client.get_key_group(**_request(GetKeyGroupInputDict)) + await client.get_key_group(_request(GetKeyGroupInput)) + await client.get_key_group(_request(GetKeyGroupInputDict)) + await client.get_key_group_config(id=_) + await client.get_key_group_config(**_request(GetKeyGroupConfigInputDict)) + await client.get_key_group_config(_request(GetKeyGroupConfigInput)) + await client.get_key_group_config(_request(GetKeyGroupConfigInputDict)) + await client.get_managed_certificate_details(identifier=_) + await client.get_managed_certificate_details( + **_request(GetManagedCertificateDetailsInputDict) + ) + await client.get_managed_certificate_details( + _request(GetManagedCertificateDetailsInput) + ) + await client.get_managed_certificate_details( + _request(GetManagedCertificateDetailsInputDict) + ) + await client.get_monitoring_subscription(distribution_id=_) + await client.get_monitoring_subscription( + **_request(GetMonitoringSubscriptionInputDict) + ) + await client.get_monitoring_subscription(_request(GetMonitoringSubscriptionInput)) + await client.get_monitoring_subscription( + _request(GetMonitoringSubscriptionInputDict) + ) + await client.get_origin_access_control(id=_) + await client.get_origin_access_control(**_request(GetOriginAccessControlInputDict)) + await client.get_origin_access_control(_request(GetOriginAccessControlInput)) + await client.get_origin_access_control(_request(GetOriginAccessControlInputDict)) + await client.get_origin_access_control_config(id=_) + await client.get_origin_access_control_config( + **_request(GetOriginAccessControlConfigInputDict) + ) + await client.get_origin_access_control_config( + _request(GetOriginAccessControlConfigInput) + ) + await client.get_origin_access_control_config( + _request(GetOriginAccessControlConfigInputDict) + ) + await client.get_origin_request_policy(id=_) + await client.get_origin_request_policy(**_request(GetOriginRequestPolicyInputDict)) + await client.get_origin_request_policy(_request(GetOriginRequestPolicyInput)) + await client.get_origin_request_policy(_request(GetOriginRequestPolicyInputDict)) + await client.get_origin_request_policy_config(id=_) + await client.get_origin_request_policy_config( + **_request(GetOriginRequestPolicyConfigInputDict) + ) + await client.get_origin_request_policy_config( + _request(GetOriginRequestPolicyConfigInput) + ) + await client.get_origin_request_policy_config( + _request(GetOriginRequestPolicyConfigInputDict) + ) + await client.get_public_key(id=_) + await client.get_public_key(**_request(GetPublicKeyInputDict)) + await client.get_public_key(_request(GetPublicKeyInput)) + await client.get_public_key(_request(GetPublicKeyInputDict)) + await client.get_public_key_config(id=_) + await client.get_public_key_config(**_request(GetPublicKeyConfigInputDict)) + await client.get_public_key_config(_request(GetPublicKeyConfigInput)) + await client.get_public_key_config(_request(GetPublicKeyConfigInputDict)) + await client.get_realtime_log_config() + await client.get_realtime_log_config(**_request(GetRealtimeLogConfigInputDict)) + await client.get_realtime_log_config(_request(GetRealtimeLogConfigInput)) + await client.get_realtime_log_config(_request(GetRealtimeLogConfigInputDict)) + await client.get_resource_policy(resource_arn=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.get_response_headers_policy(id=_) + await client.get_response_headers_policy( + **_request(GetResponseHeadersPolicyInputDict) + ) + await client.get_response_headers_policy(_request(GetResponseHeadersPolicyInput)) + await client.get_response_headers_policy( + _request(GetResponseHeadersPolicyInputDict) + ) + await client.get_response_headers_policy_config(id=_) + await client.get_response_headers_policy_config( + **_request(GetResponseHeadersPolicyConfigInputDict) + ) + await client.get_response_headers_policy_config( + _request(GetResponseHeadersPolicyConfigInput) + ) + await client.get_response_headers_policy_config( + _request(GetResponseHeadersPolicyConfigInputDict) + ) + await client.get_streaming_distribution(id=_) + await client.get_streaming_distribution( + **_request(GetStreamingDistributionInputDict) + ) + await client.get_streaming_distribution(_request(GetStreamingDistributionInput)) + await client.get_streaming_distribution(_request(GetStreamingDistributionInputDict)) + await client.get_streaming_distribution_config(id=_) + await client.get_streaming_distribution_config( + **_request(GetStreamingDistributionConfigInputDict) + ) + await client.get_streaming_distribution_config( + _request(GetStreamingDistributionConfigInput) + ) + await client.get_streaming_distribution_config( + _request(GetStreamingDistributionConfigInputDict) + ) + await client.get_trust_store(identifier=_) + await client.get_trust_store(**_request(GetTrustStoreInputDict)) + await client.get_trust_store(_request(GetTrustStoreInput)) + await client.get_trust_store(_request(GetTrustStoreInputDict)) + await client.get_vpc_origin(id=_) + await client.get_vpc_origin(**_request(GetVpcOriginInputDict)) + await client.get_vpc_origin(_request(GetVpcOriginInput)) + await client.get_vpc_origin(_request(GetVpcOriginInputDict)) + await client.list_anycast_ip_lists() + await client.list_anycast_ip_lists(**_request(ListAnycastIpListsInputDict)) + await client.list_anycast_ip_lists(_request(ListAnycastIpListsInput)) + await client.list_anycast_ip_lists(_request(ListAnycastIpListsInputDict)) + await client.list_cache_policies() + await client.list_cache_policies(**_request(ListCachePoliciesInputDict)) + await client.list_cache_policies(_request(ListCachePoliciesInput)) + await client.list_cache_policies(_request(ListCachePoliciesInputDict)) + await client.list_cloud_front_origin_access_identities() + await client.list_cloud_front_origin_access_identities( + **_request(ListCloudFrontOriginAccessIdentitiesInputDict) + ) + await client.list_cloud_front_origin_access_identities( + _request(ListCloudFrontOriginAccessIdentitiesInput) + ) + await client.list_cloud_front_origin_access_identities( + _request(ListCloudFrontOriginAccessIdentitiesInputDict) + ) + await client.list_conflicting_aliases(distribution_id=_, alias=_) + await client.list_conflicting_aliases(**_request(ListConflictingAliasesInputDict)) + await client.list_conflicting_aliases(_request(ListConflictingAliasesInput)) + await client.list_conflicting_aliases(_request(ListConflictingAliasesInputDict)) + await client.list_connection_functions() + await client.list_connection_functions(**_request(ListConnectionFunctionsInputDict)) + await client.list_connection_functions(_request(ListConnectionFunctionsInput)) + await client.list_connection_functions(_request(ListConnectionFunctionsInputDict)) + await client.list_connection_groups() + await client.list_connection_groups(**_request(ListConnectionGroupsInputDict)) + await client.list_connection_groups(_request(ListConnectionGroupsInput)) + await client.list_connection_groups(_request(ListConnectionGroupsInputDict)) + await client.list_continuous_deployment_policies() + await client.list_continuous_deployment_policies( + **_request(ListContinuousDeploymentPoliciesInputDict) + ) + await client.list_continuous_deployment_policies( + _request(ListContinuousDeploymentPoliciesInput) + ) + await client.list_continuous_deployment_policies( + _request(ListContinuousDeploymentPoliciesInputDict) + ) + await client.list_distributions() + await client.list_distributions(**_request(ListDistributionsInputDict)) + await client.list_distributions(_request(ListDistributionsInput)) + await client.list_distributions(_request(ListDistributionsInputDict)) + await client.list_distributions_by_anycast_ip_list_id(anycast_ip_list_id=_) + await client.list_distributions_by_anycast_ip_list_id( + **_request(ListDistributionsByAnycastIpListIdInputDict) + ) + await client.list_distributions_by_anycast_ip_list_id( + _request(ListDistributionsByAnycastIpListIdInput) + ) + await client.list_distributions_by_anycast_ip_list_id( + _request(ListDistributionsByAnycastIpListIdInputDict) + ) + await client.list_distributions_by_cache_policy_id(cache_policy_id=_) + await client.list_distributions_by_cache_policy_id( + **_request(ListDistributionsByCachePolicyIdInputDict) + ) + await client.list_distributions_by_cache_policy_id( + _request(ListDistributionsByCachePolicyIdInput) + ) + await client.list_distributions_by_cache_policy_id( + _request(ListDistributionsByCachePolicyIdInputDict) + ) + await client.list_distributions_by_connection_function( + connection_function_identifier=_ + ) + await client.list_distributions_by_connection_function( + **_request(ListDistributionsByConnectionFunctionInputDict) + ) + await client.list_distributions_by_connection_function( + _request(ListDistributionsByConnectionFunctionInput) + ) + await client.list_distributions_by_connection_function( + _request(ListDistributionsByConnectionFunctionInputDict) + ) + await client.list_distributions_by_connection_mode(connection_mode=_) + await client.list_distributions_by_connection_mode( + **_request(ListDistributionsByConnectionModeInputDict) + ) + await client.list_distributions_by_connection_mode( + _request(ListDistributionsByConnectionModeInput) + ) + await client.list_distributions_by_connection_mode( + _request(ListDistributionsByConnectionModeInputDict) + ) + await client.list_distributions_by_key_group(key_group_id=_) + await client.list_distributions_by_key_group( + **_request(ListDistributionsByKeyGroupInputDict) + ) + await client.list_distributions_by_key_group( + _request(ListDistributionsByKeyGroupInput) + ) + await client.list_distributions_by_key_group( + _request(ListDistributionsByKeyGroupInputDict) + ) + await client.list_distributions_by_origin_request_policy_id( + origin_request_policy_id=_ + ) + await client.list_distributions_by_origin_request_policy_id( + **_request(ListDistributionsByOriginRequestPolicyIdInputDict) + ) + await client.list_distributions_by_origin_request_policy_id( + _request(ListDistributionsByOriginRequestPolicyIdInput) + ) + await client.list_distributions_by_origin_request_policy_id( + _request(ListDistributionsByOriginRequestPolicyIdInputDict) + ) + await client.list_distributions_by_owned_resource(resource_arn=_) + await client.list_distributions_by_owned_resource( + **_request(ListDistributionsByOwnedResourceInputDict) + ) + await client.list_distributions_by_owned_resource( + _request(ListDistributionsByOwnedResourceInput) + ) + await client.list_distributions_by_owned_resource( + _request(ListDistributionsByOwnedResourceInputDict) + ) + await client.list_distributions_by_realtime_log_config() + await client.list_distributions_by_realtime_log_config( + **_request(ListDistributionsByRealtimeLogConfigInputDict) + ) + await client.list_distributions_by_realtime_log_config( + _request(ListDistributionsByRealtimeLogConfigInput) + ) + await client.list_distributions_by_realtime_log_config( + _request(ListDistributionsByRealtimeLogConfigInputDict) + ) + await client.list_distributions_by_response_headers_policy_id( + response_headers_policy_id=_ + ) + await client.list_distributions_by_response_headers_policy_id( + **_request(ListDistributionsByResponseHeadersPolicyIdInputDict) + ) + await client.list_distributions_by_response_headers_policy_id( + _request(ListDistributionsByResponseHeadersPolicyIdInput) + ) + await client.list_distributions_by_response_headers_policy_id( + _request(ListDistributionsByResponseHeadersPolicyIdInputDict) + ) + await client.list_distributions_by_trust_store(trust_store_identifier=_) + await client.list_distributions_by_trust_store( + **_request(ListDistributionsByTrustStoreInputDict) + ) + await client.list_distributions_by_trust_store( + _request(ListDistributionsByTrustStoreInput) + ) + await client.list_distributions_by_trust_store( + _request(ListDistributionsByTrustStoreInputDict) + ) + await client.list_distributions_by_vpc_origin_id(vpc_origin_id=_) + await client.list_distributions_by_vpc_origin_id( + **_request(ListDistributionsByVpcOriginIdInputDict) + ) + await client.list_distributions_by_vpc_origin_id( + _request(ListDistributionsByVpcOriginIdInput) + ) + await client.list_distributions_by_vpc_origin_id( + _request(ListDistributionsByVpcOriginIdInputDict) + ) + await client.list_distributions_by_web_acl_id(web_acl_id=_) + await client.list_distributions_by_web_acl_id( + **_request(ListDistributionsByWebACLIdInputDict) + ) + await client.list_distributions_by_web_acl_id( + _request(ListDistributionsByWebACLIdInput) + ) + await client.list_distributions_by_web_acl_id( + _request(ListDistributionsByWebACLIdInputDict) + ) + await client.list_distribution_tenants() + await client.list_distribution_tenants(**_request(ListDistributionTenantsInputDict)) + await client.list_distribution_tenants(_request(ListDistributionTenantsInput)) + await client.list_distribution_tenants(_request(ListDistributionTenantsInputDict)) + await client.list_distribution_tenants_by_customization() + await client.list_distribution_tenants_by_customization( + **_request(ListDistributionTenantsByCustomizationInputDict) + ) + await client.list_distribution_tenants_by_customization( + _request(ListDistributionTenantsByCustomizationInput) + ) + await client.list_distribution_tenants_by_customization( + _request(ListDistributionTenantsByCustomizationInputDict) + ) + await client.list_domain_conflicts(domain=_, domain_control_validation_resource=_) + await client.list_domain_conflicts(**_request(ListDomainConflictsInputDict)) + await client.list_domain_conflicts(_request(ListDomainConflictsInput)) + await client.list_domain_conflicts(_request(ListDomainConflictsInputDict)) + await client.list_field_level_encryption_configs() + await client.list_field_level_encryption_configs( + **_request(ListFieldLevelEncryptionConfigsInputDict) + ) + await client.list_field_level_encryption_configs( + _request(ListFieldLevelEncryptionConfigsInput) + ) + await client.list_field_level_encryption_configs( + _request(ListFieldLevelEncryptionConfigsInputDict) + ) + await client.list_field_level_encryption_profiles() + await client.list_field_level_encryption_profiles( + **_request(ListFieldLevelEncryptionProfilesInputDict) + ) + await client.list_field_level_encryption_profiles( + _request(ListFieldLevelEncryptionProfilesInput) + ) + await client.list_field_level_encryption_profiles( + _request(ListFieldLevelEncryptionProfilesInputDict) + ) + await client.list_functions() + await client.list_functions(**_request(ListFunctionsInputDict)) + await client.list_functions(_request(ListFunctionsInput)) + await client.list_functions(_request(ListFunctionsInputDict)) + await client.list_invalidations(distribution_id=_) + await client.list_invalidations(**_request(ListInvalidationsInputDict)) + await client.list_invalidations(_request(ListInvalidationsInput)) + await client.list_invalidations(_request(ListInvalidationsInputDict)) + await client.list_invalidations_for_distribution_tenant(id=_) + await client.list_invalidations_for_distribution_tenant( + **_request(ListInvalidationsForDistributionTenantInputDict) + ) + await client.list_invalidations_for_distribution_tenant( + _request(ListInvalidationsForDistributionTenantInput) + ) + await client.list_invalidations_for_distribution_tenant( + _request(ListInvalidationsForDistributionTenantInputDict) + ) + await client.list_key_groups() + await client.list_key_groups(**_request(ListKeyGroupsInputDict)) + await client.list_key_groups(_request(ListKeyGroupsInput)) + await client.list_key_groups(_request(ListKeyGroupsInputDict)) + await client.list_key_value_stores() + await client.list_key_value_stores(**_request(ListKeyValueStoresInputDict)) + await client.list_key_value_stores(_request(ListKeyValueStoresInput)) + await client.list_key_value_stores(_request(ListKeyValueStoresInputDict)) + await client.list_origin_access_controls() + await client.list_origin_access_controls( + **_request(ListOriginAccessControlsInputDict) + ) + await client.list_origin_access_controls(_request(ListOriginAccessControlsInput)) + await client.list_origin_access_controls( + _request(ListOriginAccessControlsInputDict) + ) + await client.list_origin_request_policies() + await client.list_origin_request_policies( + **_request(ListOriginRequestPoliciesInputDict) + ) + await client.list_origin_request_policies(_request(ListOriginRequestPoliciesInput)) + await client.list_origin_request_policies( + _request(ListOriginRequestPoliciesInputDict) + ) + await client.list_public_keys() + await client.list_public_keys(**_request(ListPublicKeysInputDict)) + await client.list_public_keys(_request(ListPublicKeysInput)) + await client.list_public_keys(_request(ListPublicKeysInputDict)) + await client.list_realtime_log_configs() + await client.list_realtime_log_configs(**_request(ListRealtimeLogConfigsInputDict)) + await client.list_realtime_log_configs(_request(ListRealtimeLogConfigsInput)) + await client.list_realtime_log_configs(_request(ListRealtimeLogConfigsInputDict)) + await client.list_response_headers_policies() + await client.list_response_headers_policies( + **_request(ListResponseHeadersPoliciesInputDict) + ) + await client.list_response_headers_policies( + _request(ListResponseHeadersPoliciesInput) + ) + await client.list_response_headers_policies( + _request(ListResponseHeadersPoliciesInputDict) + ) + await client.list_streaming_distributions() + await client.list_streaming_distributions( + **_request(ListStreamingDistributionsInputDict) + ) + await client.list_streaming_distributions(_request(ListStreamingDistributionsInput)) + await client.list_streaming_distributions( + _request(ListStreamingDistributionsInputDict) + ) + await client.list_tags_for_resource(resource=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.list_trust_stores() + await client.list_trust_stores(**_request(ListTrustStoresInputDict)) + await client.list_trust_stores(_request(ListTrustStoresInput)) + await client.list_trust_stores(_request(ListTrustStoresInputDict)) + await client.list_vpc_origins() + await client.list_vpc_origins(**_request(ListVpcOriginsInputDict)) + await client.list_vpc_origins(_request(ListVpcOriginsInput)) + await client.list_vpc_origins(_request(ListVpcOriginsInputDict)) + await client.publish_connection_function(id=_, if_match=_) + await client.publish_connection_function( + **_request(PublishConnectionFunctionInputDict) + ) + await client.publish_connection_function(_request(PublishConnectionFunctionInput)) + await client.publish_connection_function( + _request(PublishConnectionFunctionInputDict) + ) + await client.publish_function(name=_, if_match=_) + await client.publish_function(**_request(PublishFunctionInputDict)) + await client.publish_function(_request(PublishFunctionInput)) + await client.publish_function(_request(PublishFunctionInputDict)) + await client.put_resource_policy(resource_arn=_, policy_document=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.tag_resource(resource=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.test_connection_function(id=_, if_match=_, connection_object=_) + await client.test_connection_function(**_request(TestConnectionFunctionInputDict)) + await client.test_connection_function(_request(TestConnectionFunctionInput)) + await client.test_connection_function(_request(TestConnectionFunctionInputDict)) + await client.test_function(name=_, if_match=_, event_object=_) + await client.test_function(**_request(TestFunctionInputDict)) + await client.test_function(_request(TestFunctionInput)) + await client.test_function(_request(TestFunctionInputDict)) + await client.untag_resource(resource=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_anycast_ip_list(id=_, if_match=_) + await client.update_anycast_ip_list(**_request(UpdateAnycastIpListInputDict)) + await client.update_anycast_ip_list(_request(UpdateAnycastIpListInput)) + await client.update_anycast_ip_list(_request(UpdateAnycastIpListInputDict)) + await client.update_cache_policy(cache_policy_config=_, id=_) + await client.update_cache_policy(**_request(UpdateCachePolicyInputDict)) + await client.update_cache_policy(_request(UpdateCachePolicyInput)) + await client.update_cache_policy(_request(UpdateCachePolicyInputDict)) + await client.update_cloud_front_origin_access_identity( + cloud_front_origin_access_identity_config=_, id=_ + ) + await client.update_cloud_front_origin_access_identity( + **_request(UpdateCloudFrontOriginAccessIdentityInputDict) + ) + await client.update_cloud_front_origin_access_identity( + _request(UpdateCloudFrontOriginAccessIdentityInput) + ) + await client.update_cloud_front_origin_access_identity( + _request(UpdateCloudFrontOriginAccessIdentityInputDict) + ) + await client.update_connection_function( + id=_, if_match=_, connection_function_config=_, connection_function_code=_ + ) + await client.update_connection_function( + **_request(UpdateConnectionFunctionInputDict) + ) + await client.update_connection_function(_request(UpdateConnectionFunctionInput)) + await client.update_connection_function(_request(UpdateConnectionFunctionInputDict)) + await client.update_connection_group(id=_, if_match=_) + await client.update_connection_group(**_request(UpdateConnectionGroupInputDict)) + await client.update_connection_group(_request(UpdateConnectionGroupInput)) + await client.update_connection_group(_request(UpdateConnectionGroupInputDict)) + await client.update_continuous_deployment_policy( + continuous_deployment_policy_config=_, id=_ + ) + await client.update_continuous_deployment_policy( + **_request(UpdateContinuousDeploymentPolicyInputDict) + ) + await client.update_continuous_deployment_policy( + _request(UpdateContinuousDeploymentPolicyInput) + ) + await client.update_continuous_deployment_policy( + _request(UpdateContinuousDeploymentPolicyInputDict) + ) + await client.update_distribution(distribution_config=_, id=_) + await client.update_distribution(**_request(UpdateDistributionInputDict)) + await client.update_distribution(_request(UpdateDistributionInput)) + await client.update_distribution(_request(UpdateDistributionInputDict)) + await client.update_distribution_tenant(id=_, if_match=_) + await client.update_distribution_tenant( + **_request(UpdateDistributionTenantInputDict) + ) + await client.update_distribution_tenant(_request(UpdateDistributionTenantInput)) + await client.update_distribution_tenant(_request(UpdateDistributionTenantInputDict)) + await client.update_distribution_with_staging_config(id=_) + await client.update_distribution_with_staging_config( + **_request(UpdateDistributionWithStagingConfigInputDict) + ) + await client.update_distribution_with_staging_config( + _request(UpdateDistributionWithStagingConfigInput) + ) + await client.update_distribution_with_staging_config( + _request(UpdateDistributionWithStagingConfigInputDict) + ) + await client.update_domain_association(domain=_, target_resource=_) + await client.update_domain_association(**_request(UpdateDomainAssociationInputDict)) + await client.update_domain_association(_request(UpdateDomainAssociationInput)) + await client.update_domain_association(_request(UpdateDomainAssociationInputDict)) + await client.update_field_level_encryption_config( + field_level_encryption_config=_, id=_ + ) + await client.update_field_level_encryption_config( + **_request(UpdateFieldLevelEncryptionConfigInputDict) + ) + await client.update_field_level_encryption_config( + _request(UpdateFieldLevelEncryptionConfigInput) + ) + await client.update_field_level_encryption_config( + _request(UpdateFieldLevelEncryptionConfigInputDict) + ) + await client.update_field_level_encryption_profile( + field_level_encryption_profile_config=_, id=_ + ) + await client.update_field_level_encryption_profile( + **_request(UpdateFieldLevelEncryptionProfileInputDict) + ) + await client.update_field_level_encryption_profile( + _request(UpdateFieldLevelEncryptionProfileInput) + ) + await client.update_field_level_encryption_profile( + _request(UpdateFieldLevelEncryptionProfileInputDict) + ) + await client.update_function(name=_, if_match=_, function_config=_, function_code=_) + await client.update_function(**_request(UpdateFunctionInputDict)) + await client.update_function(_request(UpdateFunctionInput)) + await client.update_function(_request(UpdateFunctionInputDict)) + await client.update_key_group(key_group_config=_, id=_) + await client.update_key_group(**_request(UpdateKeyGroupInputDict)) + await client.update_key_group(_request(UpdateKeyGroupInput)) + await client.update_key_group(_request(UpdateKeyGroupInputDict)) + await client.update_key_value_store(name=_, comment=_, if_match=_) + await client.update_key_value_store(**_request(UpdateKeyValueStoreInputDict)) + await client.update_key_value_store(_request(UpdateKeyValueStoreInput)) + await client.update_key_value_store(_request(UpdateKeyValueStoreInputDict)) + await client.update_origin_access_control(origin_access_control_config=_, id=_) + await client.update_origin_access_control( + **_request(UpdateOriginAccessControlInputDict) + ) + await client.update_origin_access_control(_request(UpdateOriginAccessControlInput)) + await client.update_origin_access_control( + _request(UpdateOriginAccessControlInputDict) + ) + await client.update_origin_request_policy(origin_request_policy_config=_, id=_) + await client.update_origin_request_policy( + **_request(UpdateOriginRequestPolicyInputDict) + ) + await client.update_origin_request_policy(_request(UpdateOriginRequestPolicyInput)) + await client.update_origin_request_policy( + _request(UpdateOriginRequestPolicyInputDict) + ) + await client.update_public_key(public_key_config=_, id=_) + await client.update_public_key(**_request(UpdatePublicKeyInputDict)) + await client.update_public_key(_request(UpdatePublicKeyInput)) + await client.update_public_key(_request(UpdatePublicKeyInputDict)) + await client.update_realtime_log_config() + await client.update_realtime_log_config( + **_request(UpdateRealtimeLogConfigInputDict) + ) + await client.update_realtime_log_config(_request(UpdateRealtimeLogConfigInput)) + await client.update_realtime_log_config(_request(UpdateRealtimeLogConfigInputDict)) + await client.update_response_headers_policy(response_headers_policy_config=_, id=_) + await client.update_response_headers_policy( + **_request(UpdateResponseHeadersPolicyInputDict) + ) + await client.update_response_headers_policy( + _request(UpdateResponseHeadersPolicyInput) + ) + await client.update_response_headers_policy( + _request(UpdateResponseHeadersPolicyInputDict) + ) + await client.update_streaming_distribution(streaming_distribution_config=_, id=_) + await client.update_streaming_distribution( + **_request(UpdateStreamingDistributionInputDict) + ) + await client.update_streaming_distribution( + _request(UpdateStreamingDistributionInput) + ) + await client.update_streaming_distribution( + _request(UpdateStreamingDistributionInputDict) + ) + await client.update_trust_store(id=_, if_match=_) + await client.update_trust_store(**_request(UpdateTrustStoreInputDict)) + await client.update_trust_store(_request(UpdateTrustStoreInput)) + await client.update_trust_store(_request(UpdateTrustStoreInputDict)) + await client.update_vpc_origin(vpc_origin_endpoint_config=_, id=_, if_match=_) + await client.update_vpc_origin(**_request(UpdateVpcOriginInputDict)) + await client.update_vpc_origin(_request(UpdateVpcOriginInput)) + await client.update_vpc_origin(_request(UpdateVpcOriginInputDict)) + await client.verify_dns_configuration(identifier=_) + await client.verify_dns_configuration(**_request(VerifyDnsConfigurationInputDict)) + await client.verify_dns_configuration(_request(VerifyDnsConfigurationInput)) + await client.verify_dns_configuration(_request(VerifyDnsConfigurationInputDict)) + + +def check_sync_calls(client: CloudFrontClient) -> None: + pass + client.associate_alias(target_distribution_id=_, alias=_) + client.associate_alias(**_request(AssociateAliasInputDict)) + client.associate_alias(_request(AssociateAliasInput)) + client.associate_alias(_request(AssociateAliasInputDict)) + client.associate_distribution_tenant_web_acl(id=_, web_acl_arn=_) + client.associate_distribution_tenant_web_acl( + **_request(AssociateDistributionTenantWebACLInputDict) + ) + client.associate_distribution_tenant_web_acl( + _request(AssociateDistributionTenantWebACLInput) + ) + client.associate_distribution_tenant_web_acl( + _request(AssociateDistributionTenantWebACLInputDict) + ) + client.associate_distribution_web_acl(id=_, web_acl_arn=_) + client.associate_distribution_web_acl( + **_request(AssociateDistributionWebACLInputDict) + ) + client.associate_distribution_web_acl(_request(AssociateDistributionWebACLInput)) + client.associate_distribution_web_acl( + _request(AssociateDistributionWebACLInputDict) + ) + client.copy_distribution(primary_distribution_id=_, caller_reference=_) + client.copy_distribution(**_request(CopyDistributionInputDict)) + client.copy_distribution(_request(CopyDistributionInput)) + client.copy_distribution(_request(CopyDistributionInputDict)) + client.create_anycast_ip_list(name=_, ip_count=_) + client.create_anycast_ip_list(**_request(CreateAnycastIpListInputDict)) + client.create_anycast_ip_list(_request(CreateAnycastIpListInput)) + client.create_anycast_ip_list(_request(CreateAnycastIpListInputDict)) + client.create_cache_policy(cache_policy_config=_) + client.create_cache_policy(**_request(CreateCachePolicyInputDict)) + client.create_cache_policy(_request(CreateCachePolicyInput)) + client.create_cache_policy(_request(CreateCachePolicyInputDict)) + client.create_cloud_front_origin_access_identity( + cloud_front_origin_access_identity_config=_ + ) + client.create_cloud_front_origin_access_identity( + **_request(CreateCloudFrontOriginAccessIdentityInputDict) + ) + client.create_cloud_front_origin_access_identity( + _request(CreateCloudFrontOriginAccessIdentityInput) + ) + client.create_cloud_front_origin_access_identity( + _request(CreateCloudFrontOriginAccessIdentityInputDict) + ) + client.create_connection_function( + name=_, connection_function_config=_, connection_function_code=_ + ) + client.create_connection_function(**_request(CreateConnectionFunctionInputDict)) + client.create_connection_function(_request(CreateConnectionFunctionInput)) + client.create_connection_function(_request(CreateConnectionFunctionInputDict)) + client.create_connection_group(name=_) + client.create_connection_group(**_request(CreateConnectionGroupInputDict)) + client.create_connection_group(_request(CreateConnectionGroupInput)) + client.create_connection_group(_request(CreateConnectionGroupInputDict)) + client.create_continuous_deployment_policy(continuous_deployment_policy_config=_) + client.create_continuous_deployment_policy( + **_request(CreateContinuousDeploymentPolicyInputDict) + ) + client.create_continuous_deployment_policy( + _request(CreateContinuousDeploymentPolicyInput) + ) + client.create_continuous_deployment_policy( + _request(CreateContinuousDeploymentPolicyInputDict) + ) + client.create_distribution(distribution_config=_) + client.create_distribution(**_request(CreateDistributionInputDict)) + client.create_distribution(_request(CreateDistributionInput)) + client.create_distribution(_request(CreateDistributionInputDict)) + client.create_distribution_tenant(distribution_id=_, name=_, domains=_) + client.create_distribution_tenant(**_request(CreateDistributionTenantInputDict)) + client.create_distribution_tenant(_request(CreateDistributionTenantInput)) + client.create_distribution_tenant(_request(CreateDistributionTenantInputDict)) + client.create_distribution_with_tags(distribution_config_with_tags=_) + client.create_distribution_with_tags( + **_request(CreateDistributionWithTagsInputDict) + ) + client.create_distribution_with_tags(_request(CreateDistributionWithTagsInput)) + client.create_distribution_with_tags(_request(CreateDistributionWithTagsInputDict)) + client.create_field_level_encryption_config(field_level_encryption_config=_) + client.create_field_level_encryption_config( + **_request(CreateFieldLevelEncryptionConfigInputDict) + ) + client.create_field_level_encryption_config( + _request(CreateFieldLevelEncryptionConfigInput) + ) + client.create_field_level_encryption_config( + _request(CreateFieldLevelEncryptionConfigInputDict) + ) + client.create_field_level_encryption_profile( + field_level_encryption_profile_config=_ + ) + client.create_field_level_encryption_profile( + **_request(CreateFieldLevelEncryptionProfileInputDict) + ) + client.create_field_level_encryption_profile( + _request(CreateFieldLevelEncryptionProfileInput) + ) + client.create_field_level_encryption_profile( + _request(CreateFieldLevelEncryptionProfileInputDict) + ) + client.create_function(name=_, function_config=_, function_code=_) + client.create_function(**_request(CreateFunctionInputDict)) + client.create_function(_request(CreateFunctionInput)) + client.create_function(_request(CreateFunctionInputDict)) + client.create_invalidation(distribution_id=_, invalidation_batch=_) + client.create_invalidation(**_request(CreateInvalidationInputDict)) + client.create_invalidation(_request(CreateInvalidationInput)) + client.create_invalidation(_request(CreateInvalidationInputDict)) + client.create_invalidation_for_distribution_tenant(id=_, invalidation_batch=_) + client.create_invalidation_for_distribution_tenant( + **_request(CreateInvalidationForDistributionTenantInputDict) + ) + client.create_invalidation_for_distribution_tenant( + _request(CreateInvalidationForDistributionTenantInput) + ) + client.create_invalidation_for_distribution_tenant( + _request(CreateInvalidationForDistributionTenantInputDict) + ) + client.create_key_group(key_group_config=_) + client.create_key_group(**_request(CreateKeyGroupInputDict)) + client.create_key_group(_request(CreateKeyGroupInput)) + client.create_key_group(_request(CreateKeyGroupInputDict)) + client.create_key_value_store(name=_) + client.create_key_value_store(**_request(CreateKeyValueStoreInputDict)) + client.create_key_value_store(_request(CreateKeyValueStoreInput)) + client.create_key_value_store(_request(CreateKeyValueStoreInputDict)) + client.create_monitoring_subscription(distribution_id=_, monitoring_subscription=_) + client.create_monitoring_subscription( + **_request(CreateMonitoringSubscriptionInputDict) + ) + client.create_monitoring_subscription(_request(CreateMonitoringSubscriptionInput)) + client.create_monitoring_subscription( + _request(CreateMonitoringSubscriptionInputDict) + ) + client.create_origin_access_control(origin_access_control_config=_) + client.create_origin_access_control(**_request(CreateOriginAccessControlInputDict)) + client.create_origin_access_control(_request(CreateOriginAccessControlInput)) + client.create_origin_access_control(_request(CreateOriginAccessControlInputDict)) + client.create_origin_request_policy(origin_request_policy_config=_) + client.create_origin_request_policy(**_request(CreateOriginRequestPolicyInputDict)) + client.create_origin_request_policy(_request(CreateOriginRequestPolicyInput)) + client.create_origin_request_policy(_request(CreateOriginRequestPolicyInputDict)) + client.create_public_key(public_key_config=_) + client.create_public_key(**_request(CreatePublicKeyInputDict)) + client.create_public_key(_request(CreatePublicKeyInput)) + client.create_public_key(_request(CreatePublicKeyInputDict)) + client.create_realtime_log_config(end_points=_, fields=_, name=_, sampling_rate=_) + client.create_realtime_log_config(**_request(CreateRealtimeLogConfigInputDict)) + client.create_realtime_log_config(_request(CreateRealtimeLogConfigInput)) + client.create_realtime_log_config(_request(CreateRealtimeLogConfigInputDict)) + client.create_response_headers_policy(response_headers_policy_config=_) + client.create_response_headers_policy( + **_request(CreateResponseHeadersPolicyInputDict) + ) + client.create_response_headers_policy(_request(CreateResponseHeadersPolicyInput)) + client.create_response_headers_policy( + _request(CreateResponseHeadersPolicyInputDict) + ) + client.create_streaming_distribution(streaming_distribution_config=_) + client.create_streaming_distribution( + **_request(CreateStreamingDistributionInputDict) + ) + client.create_streaming_distribution(_request(CreateStreamingDistributionInput)) + client.create_streaming_distribution(_request(CreateStreamingDistributionInputDict)) + client.create_streaming_distribution_with_tags( + streaming_distribution_config_with_tags=_ + ) + client.create_streaming_distribution_with_tags( + **_request(CreateStreamingDistributionWithTagsInputDict) + ) + client.create_streaming_distribution_with_tags( + _request(CreateStreamingDistributionWithTagsInput) + ) + client.create_streaming_distribution_with_tags( + _request(CreateStreamingDistributionWithTagsInputDict) + ) + client.create_trust_store(name=_, ca_certificates_bundle_source=_) + client.create_trust_store(**_request(CreateTrustStoreInputDict)) + client.create_trust_store(_request(CreateTrustStoreInput)) + client.create_trust_store(_request(CreateTrustStoreInputDict)) + client.create_vpc_origin(vpc_origin_endpoint_config=_) + client.create_vpc_origin(**_request(CreateVpcOriginInputDict)) + client.create_vpc_origin(_request(CreateVpcOriginInput)) + client.create_vpc_origin(_request(CreateVpcOriginInputDict)) + client.delete_anycast_ip_list(id=_, if_match=_) + client.delete_anycast_ip_list(**_request(DeleteAnycastIpListInputDict)) + client.delete_anycast_ip_list(_request(DeleteAnycastIpListInput)) + client.delete_anycast_ip_list(_request(DeleteAnycastIpListInputDict)) + client.delete_cache_policy(id=_) + client.delete_cache_policy(**_request(DeleteCachePolicyInputDict)) + client.delete_cache_policy(_request(DeleteCachePolicyInput)) + client.delete_cache_policy(_request(DeleteCachePolicyInputDict)) + client.delete_cloud_front_origin_access_identity(id=_) + client.delete_cloud_front_origin_access_identity( + **_request(DeleteCloudFrontOriginAccessIdentityInputDict) + ) + client.delete_cloud_front_origin_access_identity( + _request(DeleteCloudFrontOriginAccessIdentityInput) + ) + client.delete_cloud_front_origin_access_identity( + _request(DeleteCloudFrontOriginAccessIdentityInputDict) + ) + client.delete_connection_function(id=_, if_match=_) + client.delete_connection_function(**_request(DeleteConnectionFunctionInputDict)) + client.delete_connection_function(_request(DeleteConnectionFunctionInput)) + client.delete_connection_function(_request(DeleteConnectionFunctionInputDict)) + client.delete_connection_group(id=_, if_match=_) + client.delete_connection_group(**_request(DeleteConnectionGroupInputDict)) + client.delete_connection_group(_request(DeleteConnectionGroupInput)) + client.delete_connection_group(_request(DeleteConnectionGroupInputDict)) + client.delete_continuous_deployment_policy(id=_) + client.delete_continuous_deployment_policy( + **_request(DeleteContinuousDeploymentPolicyInputDict) + ) + client.delete_continuous_deployment_policy( + _request(DeleteContinuousDeploymentPolicyInput) + ) + client.delete_continuous_deployment_policy( + _request(DeleteContinuousDeploymentPolicyInputDict) + ) + client.delete_distribution(id=_) + client.delete_distribution(**_request(DeleteDistributionInputDict)) + client.delete_distribution(_request(DeleteDistributionInput)) + client.delete_distribution(_request(DeleteDistributionInputDict)) + client.delete_distribution_tenant(id=_, if_match=_) + client.delete_distribution_tenant(**_request(DeleteDistributionTenantInputDict)) + client.delete_distribution_tenant(_request(DeleteDistributionTenantInput)) + client.delete_distribution_tenant(_request(DeleteDistributionTenantInputDict)) + client.delete_field_level_encryption_config(id=_) + client.delete_field_level_encryption_config( + **_request(DeleteFieldLevelEncryptionConfigInputDict) + ) + client.delete_field_level_encryption_config( + _request(DeleteFieldLevelEncryptionConfigInput) + ) + client.delete_field_level_encryption_config( + _request(DeleteFieldLevelEncryptionConfigInputDict) + ) + client.delete_field_level_encryption_profile(id=_) + client.delete_field_level_encryption_profile( + **_request(DeleteFieldLevelEncryptionProfileInputDict) + ) + client.delete_field_level_encryption_profile( + _request(DeleteFieldLevelEncryptionProfileInput) + ) + client.delete_field_level_encryption_profile( + _request(DeleteFieldLevelEncryptionProfileInputDict) + ) + client.delete_function(name=_, if_match=_) + client.delete_function(**_request(DeleteFunctionInputDict)) + client.delete_function(_request(DeleteFunctionInput)) + client.delete_function(_request(DeleteFunctionInputDict)) + client.delete_key_group(id=_) + client.delete_key_group(**_request(DeleteKeyGroupInputDict)) + client.delete_key_group(_request(DeleteKeyGroupInput)) + client.delete_key_group(_request(DeleteKeyGroupInputDict)) + client.delete_key_value_store(name=_, if_match=_) + client.delete_key_value_store(**_request(DeleteKeyValueStoreInputDict)) + client.delete_key_value_store(_request(DeleteKeyValueStoreInput)) + client.delete_key_value_store(_request(DeleteKeyValueStoreInputDict)) + client.delete_monitoring_subscription(distribution_id=_) + client.delete_monitoring_subscription( + **_request(DeleteMonitoringSubscriptionInputDict) + ) + client.delete_monitoring_subscription(_request(DeleteMonitoringSubscriptionInput)) + client.delete_monitoring_subscription( + _request(DeleteMonitoringSubscriptionInputDict) + ) + client.delete_origin_access_control(id=_) + client.delete_origin_access_control(**_request(DeleteOriginAccessControlInputDict)) + client.delete_origin_access_control(_request(DeleteOriginAccessControlInput)) + client.delete_origin_access_control(_request(DeleteOriginAccessControlInputDict)) + client.delete_origin_request_policy(id=_) + client.delete_origin_request_policy(**_request(DeleteOriginRequestPolicyInputDict)) + client.delete_origin_request_policy(_request(DeleteOriginRequestPolicyInput)) + client.delete_origin_request_policy(_request(DeleteOriginRequestPolicyInputDict)) + client.delete_public_key(id=_) + client.delete_public_key(**_request(DeletePublicKeyInputDict)) + client.delete_public_key(_request(DeletePublicKeyInput)) + client.delete_public_key(_request(DeletePublicKeyInputDict)) + client.delete_realtime_log_config() + client.delete_realtime_log_config(**_request(DeleteRealtimeLogConfigInputDict)) + client.delete_realtime_log_config(_request(DeleteRealtimeLogConfigInput)) + client.delete_realtime_log_config(_request(DeleteRealtimeLogConfigInputDict)) + client.delete_resource_policy(resource_arn=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.delete_response_headers_policy(id=_) + client.delete_response_headers_policy( + **_request(DeleteResponseHeadersPolicyInputDict) + ) + client.delete_response_headers_policy(_request(DeleteResponseHeadersPolicyInput)) + client.delete_response_headers_policy( + _request(DeleteResponseHeadersPolicyInputDict) + ) + client.delete_streaming_distribution(id=_) + client.delete_streaming_distribution( + **_request(DeleteStreamingDistributionInputDict) + ) + client.delete_streaming_distribution(_request(DeleteStreamingDistributionInput)) + client.delete_streaming_distribution(_request(DeleteStreamingDistributionInputDict)) + client.delete_trust_store(id=_, if_match=_) + client.delete_trust_store(**_request(DeleteTrustStoreInputDict)) + client.delete_trust_store(_request(DeleteTrustStoreInput)) + client.delete_trust_store(_request(DeleteTrustStoreInputDict)) + client.delete_vpc_origin(id=_, if_match=_) + client.delete_vpc_origin(**_request(DeleteVpcOriginInputDict)) + client.delete_vpc_origin(_request(DeleteVpcOriginInput)) + client.delete_vpc_origin(_request(DeleteVpcOriginInputDict)) + client.describe_connection_function(identifier=_) + client.describe_connection_function(**_request(DescribeConnectionFunctionInputDict)) + client.describe_connection_function(_request(DescribeConnectionFunctionInput)) + client.describe_connection_function(_request(DescribeConnectionFunctionInputDict)) + client.describe_function(name=_) + client.describe_function(**_request(DescribeFunctionInputDict)) + client.describe_function(_request(DescribeFunctionInput)) + client.describe_function(_request(DescribeFunctionInputDict)) + client.describe_key_value_store(name=_) + client.describe_key_value_store(**_request(DescribeKeyValueStoreInputDict)) + client.describe_key_value_store(_request(DescribeKeyValueStoreInput)) + client.describe_key_value_store(_request(DescribeKeyValueStoreInputDict)) + client.disassociate_distribution_tenant_web_acl(id=_) + client.disassociate_distribution_tenant_web_acl( + **_request(DisassociateDistributionTenantWebACLInputDict) + ) + client.disassociate_distribution_tenant_web_acl( + _request(DisassociateDistributionTenantWebACLInput) + ) + client.disassociate_distribution_tenant_web_acl( + _request(DisassociateDistributionTenantWebACLInputDict) + ) + client.disassociate_distribution_web_acl(id=_) + client.disassociate_distribution_web_acl( + **_request(DisassociateDistributionWebACLInputDict) + ) + client.disassociate_distribution_web_acl( + _request(DisassociateDistributionWebACLInput) + ) + client.disassociate_distribution_web_acl( + _request(DisassociateDistributionWebACLInputDict) + ) + client.get_anycast_ip_list(id=_) + client.get_anycast_ip_list(**_request(GetAnycastIpListInputDict)) + client.get_anycast_ip_list(_request(GetAnycastIpListInput)) + client.get_anycast_ip_list(_request(GetAnycastIpListInputDict)) + client.get_cache_policy(id=_) + client.get_cache_policy(**_request(GetCachePolicyInputDict)) + client.get_cache_policy(_request(GetCachePolicyInput)) + client.get_cache_policy(_request(GetCachePolicyInputDict)) + client.get_cache_policy_config(id=_) + client.get_cache_policy_config(**_request(GetCachePolicyConfigInputDict)) + client.get_cache_policy_config(_request(GetCachePolicyConfigInput)) + client.get_cache_policy_config(_request(GetCachePolicyConfigInputDict)) + client.get_cloud_front_origin_access_identity(id=_) + client.get_cloud_front_origin_access_identity( + **_request(GetCloudFrontOriginAccessIdentityInputDict) + ) + client.get_cloud_front_origin_access_identity( + _request(GetCloudFrontOriginAccessIdentityInput) + ) + client.get_cloud_front_origin_access_identity( + _request(GetCloudFrontOriginAccessIdentityInputDict) + ) + client.get_cloud_front_origin_access_identity_config(id=_) + client.get_cloud_front_origin_access_identity_config( + **_request(GetCloudFrontOriginAccessIdentityConfigInputDict) + ) + client.get_cloud_front_origin_access_identity_config( + _request(GetCloudFrontOriginAccessIdentityConfigInput) + ) + client.get_cloud_front_origin_access_identity_config( + _request(GetCloudFrontOriginAccessIdentityConfigInputDict) + ) + client.get_connection_function(identifier=_) + client.get_connection_function(**_request(GetConnectionFunctionInputDict)) + client.get_connection_function(_request(GetConnectionFunctionInput)) + client.get_connection_function(_request(GetConnectionFunctionInputDict)) + client.get_connection_group(identifier=_) + client.get_connection_group(**_request(GetConnectionGroupInputDict)) + client.get_connection_group(_request(GetConnectionGroupInput)) + client.get_connection_group(_request(GetConnectionGroupInputDict)) + client.get_connection_group_by_routing_endpoint(routing_endpoint=_) + client.get_connection_group_by_routing_endpoint( + **_request(GetConnectionGroupByRoutingEndpointInputDict) + ) + client.get_connection_group_by_routing_endpoint( + _request(GetConnectionGroupByRoutingEndpointInput) + ) + client.get_connection_group_by_routing_endpoint( + _request(GetConnectionGroupByRoutingEndpointInputDict) + ) + client.get_continuous_deployment_policy(id=_) + client.get_continuous_deployment_policy( + **_request(GetContinuousDeploymentPolicyInputDict) + ) + client.get_continuous_deployment_policy( + _request(GetContinuousDeploymentPolicyInput) + ) + client.get_continuous_deployment_policy( + _request(GetContinuousDeploymentPolicyInputDict) + ) + client.get_continuous_deployment_policy_config(id=_) + client.get_continuous_deployment_policy_config( + **_request(GetContinuousDeploymentPolicyConfigInputDict) + ) + client.get_continuous_deployment_policy_config( + _request(GetContinuousDeploymentPolicyConfigInput) + ) + client.get_continuous_deployment_policy_config( + _request(GetContinuousDeploymentPolicyConfigInputDict) + ) + client.get_distribution(id=_) + client.get_distribution(**_request(GetDistributionInputDict)) + client.get_distribution(_request(GetDistributionInput)) + client.get_distribution(_request(GetDistributionInputDict)) + client.get_distribution_config(id=_) + client.get_distribution_config(**_request(GetDistributionConfigInputDict)) + client.get_distribution_config(_request(GetDistributionConfigInput)) + client.get_distribution_config(_request(GetDistributionConfigInputDict)) + client.get_distribution_tenant(identifier=_) + client.get_distribution_tenant(**_request(GetDistributionTenantInputDict)) + client.get_distribution_tenant(_request(GetDistributionTenantInput)) + client.get_distribution_tenant(_request(GetDistributionTenantInputDict)) + client.get_distribution_tenant_by_domain(domain=_) + client.get_distribution_tenant_by_domain( + **_request(GetDistributionTenantByDomainInputDict) + ) + client.get_distribution_tenant_by_domain( + _request(GetDistributionTenantByDomainInput) + ) + client.get_distribution_tenant_by_domain( + _request(GetDistributionTenantByDomainInputDict) + ) + client.get_field_level_encryption(id=_) + client.get_field_level_encryption(**_request(GetFieldLevelEncryptionInputDict)) + client.get_field_level_encryption(_request(GetFieldLevelEncryptionInput)) + client.get_field_level_encryption(_request(GetFieldLevelEncryptionInputDict)) + client.get_field_level_encryption_config(id=_) + client.get_field_level_encryption_config( + **_request(GetFieldLevelEncryptionConfigInputDict) + ) + client.get_field_level_encryption_config( + _request(GetFieldLevelEncryptionConfigInput) + ) + client.get_field_level_encryption_config( + _request(GetFieldLevelEncryptionConfigInputDict) + ) + client.get_field_level_encryption_profile(id=_) + client.get_field_level_encryption_profile( + **_request(GetFieldLevelEncryptionProfileInputDict) + ) + client.get_field_level_encryption_profile( + _request(GetFieldLevelEncryptionProfileInput) + ) + client.get_field_level_encryption_profile( + _request(GetFieldLevelEncryptionProfileInputDict) + ) + client.get_field_level_encryption_profile_config(id=_) + client.get_field_level_encryption_profile_config( + **_request(GetFieldLevelEncryptionProfileConfigInputDict) + ) + client.get_field_level_encryption_profile_config( + _request(GetFieldLevelEncryptionProfileConfigInput) + ) + client.get_field_level_encryption_profile_config( + _request(GetFieldLevelEncryptionProfileConfigInputDict) + ) + client.get_function(name=_) + client.get_function(**_request(GetFunctionInputDict)) + client.get_function(_request(GetFunctionInput)) + client.get_function(_request(GetFunctionInputDict)) + client.get_invalidation(distribution_id=_, id=_) + client.get_invalidation(**_request(GetInvalidationInputDict)) + client.get_invalidation(_request(GetInvalidationInput)) + client.get_invalidation(_request(GetInvalidationInputDict)) + client.get_invalidation_for_distribution_tenant(distribution_tenant_id=_, id=_) + client.get_invalidation_for_distribution_tenant( + **_request(GetInvalidationForDistributionTenantInputDict) + ) + client.get_invalidation_for_distribution_tenant( + _request(GetInvalidationForDistributionTenantInput) + ) + client.get_invalidation_for_distribution_tenant( + _request(GetInvalidationForDistributionTenantInputDict) + ) + client.get_key_group(id=_) + client.get_key_group(**_request(GetKeyGroupInputDict)) + client.get_key_group(_request(GetKeyGroupInput)) + client.get_key_group(_request(GetKeyGroupInputDict)) + client.get_key_group_config(id=_) + client.get_key_group_config(**_request(GetKeyGroupConfigInputDict)) + client.get_key_group_config(_request(GetKeyGroupConfigInput)) + client.get_key_group_config(_request(GetKeyGroupConfigInputDict)) + client.get_managed_certificate_details(identifier=_) + client.get_managed_certificate_details( + **_request(GetManagedCertificateDetailsInputDict) + ) + client.get_managed_certificate_details(_request(GetManagedCertificateDetailsInput)) + client.get_managed_certificate_details( + _request(GetManagedCertificateDetailsInputDict) + ) + client.get_monitoring_subscription(distribution_id=_) + client.get_monitoring_subscription(**_request(GetMonitoringSubscriptionInputDict)) + client.get_monitoring_subscription(_request(GetMonitoringSubscriptionInput)) + client.get_monitoring_subscription(_request(GetMonitoringSubscriptionInputDict)) + client.get_origin_access_control(id=_) + client.get_origin_access_control(**_request(GetOriginAccessControlInputDict)) + client.get_origin_access_control(_request(GetOriginAccessControlInput)) + client.get_origin_access_control(_request(GetOriginAccessControlInputDict)) + client.get_origin_access_control_config(id=_) + client.get_origin_access_control_config( + **_request(GetOriginAccessControlConfigInputDict) + ) + client.get_origin_access_control_config(_request(GetOriginAccessControlConfigInput)) + client.get_origin_access_control_config( + _request(GetOriginAccessControlConfigInputDict) + ) + client.get_origin_request_policy(id=_) + client.get_origin_request_policy(**_request(GetOriginRequestPolicyInputDict)) + client.get_origin_request_policy(_request(GetOriginRequestPolicyInput)) + client.get_origin_request_policy(_request(GetOriginRequestPolicyInputDict)) + client.get_origin_request_policy_config(id=_) + client.get_origin_request_policy_config( + **_request(GetOriginRequestPolicyConfigInputDict) + ) + client.get_origin_request_policy_config(_request(GetOriginRequestPolicyConfigInput)) + client.get_origin_request_policy_config( + _request(GetOriginRequestPolicyConfigInputDict) + ) + client.get_public_key(id=_) + client.get_public_key(**_request(GetPublicKeyInputDict)) + client.get_public_key(_request(GetPublicKeyInput)) + client.get_public_key(_request(GetPublicKeyInputDict)) + client.get_public_key_config(id=_) + client.get_public_key_config(**_request(GetPublicKeyConfigInputDict)) + client.get_public_key_config(_request(GetPublicKeyConfigInput)) + client.get_public_key_config(_request(GetPublicKeyConfigInputDict)) + client.get_realtime_log_config() + client.get_realtime_log_config(**_request(GetRealtimeLogConfigInputDict)) + client.get_realtime_log_config(_request(GetRealtimeLogConfigInput)) + client.get_realtime_log_config(_request(GetRealtimeLogConfigInputDict)) + client.get_resource_policy(resource_arn=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.get_response_headers_policy(id=_) + client.get_response_headers_policy(**_request(GetResponseHeadersPolicyInputDict)) + client.get_response_headers_policy(_request(GetResponseHeadersPolicyInput)) + client.get_response_headers_policy(_request(GetResponseHeadersPolicyInputDict)) + client.get_response_headers_policy_config(id=_) + client.get_response_headers_policy_config( + **_request(GetResponseHeadersPolicyConfigInputDict) + ) + client.get_response_headers_policy_config( + _request(GetResponseHeadersPolicyConfigInput) + ) + client.get_response_headers_policy_config( + _request(GetResponseHeadersPolicyConfigInputDict) + ) + client.get_streaming_distribution(id=_) + client.get_streaming_distribution(**_request(GetStreamingDistributionInputDict)) + client.get_streaming_distribution(_request(GetStreamingDistributionInput)) + client.get_streaming_distribution(_request(GetStreamingDistributionInputDict)) + client.get_streaming_distribution_config(id=_) + client.get_streaming_distribution_config( + **_request(GetStreamingDistributionConfigInputDict) + ) + client.get_streaming_distribution_config( + _request(GetStreamingDistributionConfigInput) + ) + client.get_streaming_distribution_config( + _request(GetStreamingDistributionConfigInputDict) + ) + client.get_trust_store(identifier=_) + client.get_trust_store(**_request(GetTrustStoreInputDict)) + client.get_trust_store(_request(GetTrustStoreInput)) + client.get_trust_store(_request(GetTrustStoreInputDict)) + client.get_vpc_origin(id=_) + client.get_vpc_origin(**_request(GetVpcOriginInputDict)) + client.get_vpc_origin(_request(GetVpcOriginInput)) + client.get_vpc_origin(_request(GetVpcOriginInputDict)) + client.list_anycast_ip_lists() + client.list_anycast_ip_lists(**_request(ListAnycastIpListsInputDict)) + client.list_anycast_ip_lists(_request(ListAnycastIpListsInput)) + client.list_anycast_ip_lists(_request(ListAnycastIpListsInputDict)) + client.list_cache_policies() + client.list_cache_policies(**_request(ListCachePoliciesInputDict)) + client.list_cache_policies(_request(ListCachePoliciesInput)) + client.list_cache_policies(_request(ListCachePoliciesInputDict)) + client.list_cloud_front_origin_access_identities() + client.list_cloud_front_origin_access_identities( + **_request(ListCloudFrontOriginAccessIdentitiesInputDict) + ) + client.list_cloud_front_origin_access_identities( + _request(ListCloudFrontOriginAccessIdentitiesInput) + ) + client.list_cloud_front_origin_access_identities( + _request(ListCloudFrontOriginAccessIdentitiesInputDict) + ) + client.list_conflicting_aliases(distribution_id=_, alias=_) + client.list_conflicting_aliases(**_request(ListConflictingAliasesInputDict)) + client.list_conflicting_aliases(_request(ListConflictingAliasesInput)) + client.list_conflicting_aliases(_request(ListConflictingAliasesInputDict)) + client.list_connection_functions() + client.list_connection_functions(**_request(ListConnectionFunctionsInputDict)) + client.list_connection_functions(_request(ListConnectionFunctionsInput)) + client.list_connection_functions(_request(ListConnectionFunctionsInputDict)) + client.list_connection_groups() + client.list_connection_groups(**_request(ListConnectionGroupsInputDict)) + client.list_connection_groups(_request(ListConnectionGroupsInput)) + client.list_connection_groups(_request(ListConnectionGroupsInputDict)) + client.list_continuous_deployment_policies() + client.list_continuous_deployment_policies( + **_request(ListContinuousDeploymentPoliciesInputDict) + ) + client.list_continuous_deployment_policies( + _request(ListContinuousDeploymentPoliciesInput) + ) + client.list_continuous_deployment_policies( + _request(ListContinuousDeploymentPoliciesInputDict) + ) + client.list_distributions() + client.list_distributions(**_request(ListDistributionsInputDict)) + client.list_distributions(_request(ListDistributionsInput)) + client.list_distributions(_request(ListDistributionsInputDict)) + client.list_distributions_by_anycast_ip_list_id(anycast_ip_list_id=_) + client.list_distributions_by_anycast_ip_list_id( + **_request(ListDistributionsByAnycastIpListIdInputDict) + ) + client.list_distributions_by_anycast_ip_list_id( + _request(ListDistributionsByAnycastIpListIdInput) + ) + client.list_distributions_by_anycast_ip_list_id( + _request(ListDistributionsByAnycastIpListIdInputDict) + ) + client.list_distributions_by_cache_policy_id(cache_policy_id=_) + client.list_distributions_by_cache_policy_id( + **_request(ListDistributionsByCachePolicyIdInputDict) + ) + client.list_distributions_by_cache_policy_id( + _request(ListDistributionsByCachePolicyIdInput) + ) + client.list_distributions_by_cache_policy_id( + _request(ListDistributionsByCachePolicyIdInputDict) + ) + client.list_distributions_by_connection_function(connection_function_identifier=_) + client.list_distributions_by_connection_function( + **_request(ListDistributionsByConnectionFunctionInputDict) + ) + client.list_distributions_by_connection_function( + _request(ListDistributionsByConnectionFunctionInput) + ) + client.list_distributions_by_connection_function( + _request(ListDistributionsByConnectionFunctionInputDict) + ) + client.list_distributions_by_connection_mode(connection_mode=_) + client.list_distributions_by_connection_mode( + **_request(ListDistributionsByConnectionModeInputDict) + ) + client.list_distributions_by_connection_mode( + _request(ListDistributionsByConnectionModeInput) + ) + client.list_distributions_by_connection_mode( + _request(ListDistributionsByConnectionModeInputDict) + ) + client.list_distributions_by_key_group(key_group_id=_) + client.list_distributions_by_key_group( + **_request(ListDistributionsByKeyGroupInputDict) + ) + client.list_distributions_by_key_group(_request(ListDistributionsByKeyGroupInput)) + client.list_distributions_by_key_group( + _request(ListDistributionsByKeyGroupInputDict) + ) + client.list_distributions_by_origin_request_policy_id(origin_request_policy_id=_) + client.list_distributions_by_origin_request_policy_id( + **_request(ListDistributionsByOriginRequestPolicyIdInputDict) + ) + client.list_distributions_by_origin_request_policy_id( + _request(ListDistributionsByOriginRequestPolicyIdInput) + ) + client.list_distributions_by_origin_request_policy_id( + _request(ListDistributionsByOriginRequestPolicyIdInputDict) + ) + client.list_distributions_by_owned_resource(resource_arn=_) + client.list_distributions_by_owned_resource( + **_request(ListDistributionsByOwnedResourceInputDict) + ) + client.list_distributions_by_owned_resource( + _request(ListDistributionsByOwnedResourceInput) + ) + client.list_distributions_by_owned_resource( + _request(ListDistributionsByOwnedResourceInputDict) + ) + client.list_distributions_by_realtime_log_config() + client.list_distributions_by_realtime_log_config( + **_request(ListDistributionsByRealtimeLogConfigInputDict) + ) + client.list_distributions_by_realtime_log_config( + _request(ListDistributionsByRealtimeLogConfigInput) + ) + client.list_distributions_by_realtime_log_config( + _request(ListDistributionsByRealtimeLogConfigInputDict) + ) + client.list_distributions_by_response_headers_policy_id( + response_headers_policy_id=_ + ) + client.list_distributions_by_response_headers_policy_id( + **_request(ListDistributionsByResponseHeadersPolicyIdInputDict) + ) + client.list_distributions_by_response_headers_policy_id( + _request(ListDistributionsByResponseHeadersPolicyIdInput) + ) + client.list_distributions_by_response_headers_policy_id( + _request(ListDistributionsByResponseHeadersPolicyIdInputDict) + ) + client.list_distributions_by_trust_store(trust_store_identifier=_) + client.list_distributions_by_trust_store( + **_request(ListDistributionsByTrustStoreInputDict) + ) + client.list_distributions_by_trust_store( + _request(ListDistributionsByTrustStoreInput) + ) + client.list_distributions_by_trust_store( + _request(ListDistributionsByTrustStoreInputDict) + ) + client.list_distributions_by_vpc_origin_id(vpc_origin_id=_) + client.list_distributions_by_vpc_origin_id( + **_request(ListDistributionsByVpcOriginIdInputDict) + ) + client.list_distributions_by_vpc_origin_id( + _request(ListDistributionsByVpcOriginIdInput) + ) + client.list_distributions_by_vpc_origin_id( + _request(ListDistributionsByVpcOriginIdInputDict) + ) + client.list_distributions_by_web_acl_id(web_acl_id=_) + client.list_distributions_by_web_acl_id( + **_request(ListDistributionsByWebACLIdInputDict) + ) + client.list_distributions_by_web_acl_id(_request(ListDistributionsByWebACLIdInput)) + client.list_distributions_by_web_acl_id( + _request(ListDistributionsByWebACLIdInputDict) + ) + client.list_distribution_tenants() + client.list_distribution_tenants(**_request(ListDistributionTenantsInputDict)) + client.list_distribution_tenants(_request(ListDistributionTenantsInput)) + client.list_distribution_tenants(_request(ListDistributionTenantsInputDict)) + client.list_distribution_tenants_by_customization() + client.list_distribution_tenants_by_customization( + **_request(ListDistributionTenantsByCustomizationInputDict) + ) + client.list_distribution_tenants_by_customization( + _request(ListDistributionTenantsByCustomizationInput) + ) + client.list_distribution_tenants_by_customization( + _request(ListDistributionTenantsByCustomizationInputDict) + ) + client.list_domain_conflicts(domain=_, domain_control_validation_resource=_) + client.list_domain_conflicts(**_request(ListDomainConflictsInputDict)) + client.list_domain_conflicts(_request(ListDomainConflictsInput)) + client.list_domain_conflicts(_request(ListDomainConflictsInputDict)) + client.list_field_level_encryption_configs() + client.list_field_level_encryption_configs( + **_request(ListFieldLevelEncryptionConfigsInputDict) + ) + client.list_field_level_encryption_configs( + _request(ListFieldLevelEncryptionConfigsInput) + ) + client.list_field_level_encryption_configs( + _request(ListFieldLevelEncryptionConfigsInputDict) + ) + client.list_field_level_encryption_profiles() + client.list_field_level_encryption_profiles( + **_request(ListFieldLevelEncryptionProfilesInputDict) + ) + client.list_field_level_encryption_profiles( + _request(ListFieldLevelEncryptionProfilesInput) + ) + client.list_field_level_encryption_profiles( + _request(ListFieldLevelEncryptionProfilesInputDict) + ) + client.list_functions() + client.list_functions(**_request(ListFunctionsInputDict)) + client.list_functions(_request(ListFunctionsInput)) + client.list_functions(_request(ListFunctionsInputDict)) + client.list_invalidations(distribution_id=_) + client.list_invalidations(**_request(ListInvalidationsInputDict)) + client.list_invalidations(_request(ListInvalidationsInput)) + client.list_invalidations(_request(ListInvalidationsInputDict)) + client.list_invalidations_for_distribution_tenant(id=_) + client.list_invalidations_for_distribution_tenant( + **_request(ListInvalidationsForDistributionTenantInputDict) + ) + client.list_invalidations_for_distribution_tenant( + _request(ListInvalidationsForDistributionTenantInput) + ) + client.list_invalidations_for_distribution_tenant( + _request(ListInvalidationsForDistributionTenantInputDict) + ) + client.list_key_groups() + client.list_key_groups(**_request(ListKeyGroupsInputDict)) + client.list_key_groups(_request(ListKeyGroupsInput)) + client.list_key_groups(_request(ListKeyGroupsInputDict)) + client.list_key_value_stores() + client.list_key_value_stores(**_request(ListKeyValueStoresInputDict)) + client.list_key_value_stores(_request(ListKeyValueStoresInput)) + client.list_key_value_stores(_request(ListKeyValueStoresInputDict)) + client.list_origin_access_controls() + client.list_origin_access_controls(**_request(ListOriginAccessControlsInputDict)) + client.list_origin_access_controls(_request(ListOriginAccessControlsInput)) + client.list_origin_access_controls(_request(ListOriginAccessControlsInputDict)) + client.list_origin_request_policies() + client.list_origin_request_policies(**_request(ListOriginRequestPoliciesInputDict)) + client.list_origin_request_policies(_request(ListOriginRequestPoliciesInput)) + client.list_origin_request_policies(_request(ListOriginRequestPoliciesInputDict)) + client.list_public_keys() + client.list_public_keys(**_request(ListPublicKeysInputDict)) + client.list_public_keys(_request(ListPublicKeysInput)) + client.list_public_keys(_request(ListPublicKeysInputDict)) + client.list_realtime_log_configs() + client.list_realtime_log_configs(**_request(ListRealtimeLogConfigsInputDict)) + client.list_realtime_log_configs(_request(ListRealtimeLogConfigsInput)) + client.list_realtime_log_configs(_request(ListRealtimeLogConfigsInputDict)) + client.list_response_headers_policies() + client.list_response_headers_policies( + **_request(ListResponseHeadersPoliciesInputDict) + ) + client.list_response_headers_policies(_request(ListResponseHeadersPoliciesInput)) + client.list_response_headers_policies( + _request(ListResponseHeadersPoliciesInputDict) + ) + client.list_streaming_distributions() + client.list_streaming_distributions(**_request(ListStreamingDistributionsInputDict)) + client.list_streaming_distributions(_request(ListStreamingDistributionsInput)) + client.list_streaming_distributions(_request(ListStreamingDistributionsInputDict)) + client.list_tags_for_resource(resource=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.list_trust_stores() + client.list_trust_stores(**_request(ListTrustStoresInputDict)) + client.list_trust_stores(_request(ListTrustStoresInput)) + client.list_trust_stores(_request(ListTrustStoresInputDict)) + client.list_vpc_origins() + client.list_vpc_origins(**_request(ListVpcOriginsInputDict)) + client.list_vpc_origins(_request(ListVpcOriginsInput)) + client.list_vpc_origins(_request(ListVpcOriginsInputDict)) + client.publish_connection_function(id=_, if_match=_) + client.publish_connection_function(**_request(PublishConnectionFunctionInputDict)) + client.publish_connection_function(_request(PublishConnectionFunctionInput)) + client.publish_connection_function(_request(PublishConnectionFunctionInputDict)) + client.publish_function(name=_, if_match=_) + client.publish_function(**_request(PublishFunctionInputDict)) + client.publish_function(_request(PublishFunctionInput)) + client.publish_function(_request(PublishFunctionInputDict)) + client.put_resource_policy(resource_arn=_, policy_document=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.tag_resource(resource=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.test_connection_function(id=_, if_match=_, connection_object=_) + client.test_connection_function(**_request(TestConnectionFunctionInputDict)) + client.test_connection_function(_request(TestConnectionFunctionInput)) + client.test_connection_function(_request(TestConnectionFunctionInputDict)) + client.test_function(name=_, if_match=_, event_object=_) + client.test_function(**_request(TestFunctionInputDict)) + client.test_function(_request(TestFunctionInput)) + client.test_function(_request(TestFunctionInputDict)) + client.untag_resource(resource=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_anycast_ip_list(id=_, if_match=_) + client.update_anycast_ip_list(**_request(UpdateAnycastIpListInputDict)) + client.update_anycast_ip_list(_request(UpdateAnycastIpListInput)) + client.update_anycast_ip_list(_request(UpdateAnycastIpListInputDict)) + client.update_cache_policy(cache_policy_config=_, id=_) + client.update_cache_policy(**_request(UpdateCachePolicyInputDict)) + client.update_cache_policy(_request(UpdateCachePolicyInput)) + client.update_cache_policy(_request(UpdateCachePolicyInputDict)) + client.update_cloud_front_origin_access_identity( + cloud_front_origin_access_identity_config=_, id=_ + ) + client.update_cloud_front_origin_access_identity( + **_request(UpdateCloudFrontOriginAccessIdentityInputDict) + ) + client.update_cloud_front_origin_access_identity( + _request(UpdateCloudFrontOriginAccessIdentityInput) + ) + client.update_cloud_front_origin_access_identity( + _request(UpdateCloudFrontOriginAccessIdentityInputDict) + ) + client.update_connection_function( + id=_, if_match=_, connection_function_config=_, connection_function_code=_ + ) + client.update_connection_function(**_request(UpdateConnectionFunctionInputDict)) + client.update_connection_function(_request(UpdateConnectionFunctionInput)) + client.update_connection_function(_request(UpdateConnectionFunctionInputDict)) + client.update_connection_group(id=_, if_match=_) + client.update_connection_group(**_request(UpdateConnectionGroupInputDict)) + client.update_connection_group(_request(UpdateConnectionGroupInput)) + client.update_connection_group(_request(UpdateConnectionGroupInputDict)) + client.update_continuous_deployment_policy( + continuous_deployment_policy_config=_, id=_ + ) + client.update_continuous_deployment_policy( + **_request(UpdateContinuousDeploymentPolicyInputDict) + ) + client.update_continuous_deployment_policy( + _request(UpdateContinuousDeploymentPolicyInput) + ) + client.update_continuous_deployment_policy( + _request(UpdateContinuousDeploymentPolicyInputDict) + ) + client.update_distribution(distribution_config=_, id=_) + client.update_distribution(**_request(UpdateDistributionInputDict)) + client.update_distribution(_request(UpdateDistributionInput)) + client.update_distribution(_request(UpdateDistributionInputDict)) + client.update_distribution_tenant(id=_, if_match=_) + client.update_distribution_tenant(**_request(UpdateDistributionTenantInputDict)) + client.update_distribution_tenant(_request(UpdateDistributionTenantInput)) + client.update_distribution_tenant(_request(UpdateDistributionTenantInputDict)) + client.update_distribution_with_staging_config(id=_) + client.update_distribution_with_staging_config( + **_request(UpdateDistributionWithStagingConfigInputDict) + ) + client.update_distribution_with_staging_config( + _request(UpdateDistributionWithStagingConfigInput) + ) + client.update_distribution_with_staging_config( + _request(UpdateDistributionWithStagingConfigInputDict) + ) + client.update_domain_association(domain=_, target_resource=_) + client.update_domain_association(**_request(UpdateDomainAssociationInputDict)) + client.update_domain_association(_request(UpdateDomainAssociationInput)) + client.update_domain_association(_request(UpdateDomainAssociationInputDict)) + client.update_field_level_encryption_config(field_level_encryption_config=_, id=_) + client.update_field_level_encryption_config( + **_request(UpdateFieldLevelEncryptionConfigInputDict) + ) + client.update_field_level_encryption_config( + _request(UpdateFieldLevelEncryptionConfigInput) + ) + client.update_field_level_encryption_config( + _request(UpdateFieldLevelEncryptionConfigInputDict) + ) + client.update_field_level_encryption_profile( + field_level_encryption_profile_config=_, id=_ + ) + client.update_field_level_encryption_profile( + **_request(UpdateFieldLevelEncryptionProfileInputDict) + ) + client.update_field_level_encryption_profile( + _request(UpdateFieldLevelEncryptionProfileInput) + ) + client.update_field_level_encryption_profile( + _request(UpdateFieldLevelEncryptionProfileInputDict) + ) + client.update_function(name=_, if_match=_, function_config=_, function_code=_) + client.update_function(**_request(UpdateFunctionInputDict)) + client.update_function(_request(UpdateFunctionInput)) + client.update_function(_request(UpdateFunctionInputDict)) + client.update_key_group(key_group_config=_, id=_) + client.update_key_group(**_request(UpdateKeyGroupInputDict)) + client.update_key_group(_request(UpdateKeyGroupInput)) + client.update_key_group(_request(UpdateKeyGroupInputDict)) + client.update_key_value_store(name=_, comment=_, if_match=_) + client.update_key_value_store(**_request(UpdateKeyValueStoreInputDict)) + client.update_key_value_store(_request(UpdateKeyValueStoreInput)) + client.update_key_value_store(_request(UpdateKeyValueStoreInputDict)) + client.update_origin_access_control(origin_access_control_config=_, id=_) + client.update_origin_access_control(**_request(UpdateOriginAccessControlInputDict)) + client.update_origin_access_control(_request(UpdateOriginAccessControlInput)) + client.update_origin_access_control(_request(UpdateOriginAccessControlInputDict)) + client.update_origin_request_policy(origin_request_policy_config=_, id=_) + client.update_origin_request_policy(**_request(UpdateOriginRequestPolicyInputDict)) + client.update_origin_request_policy(_request(UpdateOriginRequestPolicyInput)) + client.update_origin_request_policy(_request(UpdateOriginRequestPolicyInputDict)) + client.update_public_key(public_key_config=_, id=_) + client.update_public_key(**_request(UpdatePublicKeyInputDict)) + client.update_public_key(_request(UpdatePublicKeyInput)) + client.update_public_key(_request(UpdatePublicKeyInputDict)) + client.update_realtime_log_config() + client.update_realtime_log_config(**_request(UpdateRealtimeLogConfigInputDict)) + client.update_realtime_log_config(_request(UpdateRealtimeLogConfigInput)) + client.update_realtime_log_config(_request(UpdateRealtimeLogConfigInputDict)) + client.update_response_headers_policy(response_headers_policy_config=_, id=_) + client.update_response_headers_policy( + **_request(UpdateResponseHeadersPolicyInputDict) + ) + client.update_response_headers_policy(_request(UpdateResponseHeadersPolicyInput)) + client.update_response_headers_policy( + _request(UpdateResponseHeadersPolicyInputDict) + ) + client.update_streaming_distribution(streaming_distribution_config=_, id=_) + client.update_streaming_distribution( + **_request(UpdateStreamingDistributionInputDict) + ) + client.update_streaming_distribution(_request(UpdateStreamingDistributionInput)) + client.update_streaming_distribution(_request(UpdateStreamingDistributionInputDict)) + client.update_trust_store(id=_, if_match=_) + client.update_trust_store(**_request(UpdateTrustStoreInputDict)) + client.update_trust_store(_request(UpdateTrustStoreInput)) + client.update_trust_store(_request(UpdateTrustStoreInputDict)) + client.update_vpc_origin(vpc_origin_endpoint_config=_, id=_, if_match=_) + client.update_vpc_origin(**_request(UpdateVpcOriginInputDict)) + client.update_vpc_origin(_request(UpdateVpcOriginInput)) + client.update_vpc_origin(_request(UpdateVpcOriginInputDict)) + client.verify_dns_configuration(identifier=_) + client.verify_dns_configuration(**_request(VerifyDnsConfigurationInputDict)) + client.verify_dns_configuration(_request(VerifyDnsConfigurationInput)) + client.verify_dns_configuration(_request(VerifyDnsConfigurationInputDict)) diff --git a/clients/aws-sdk-cloudtrail/pyproject.toml b/clients/aws-sdk-cloudtrail/pyproject.toml index 2ea77a1b6..9ba1b3b81 100644 --- a/clients/aws-sdk-cloudtrail/pyproject.toml +++ b/clients/aws-sdk-cloudtrail/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/models_0.pyi b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/models_0.pyi index 173deca80..51c904f38 100644 --- a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/models_0.pyi +++ b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/models_0.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -108,6 +110,29 @@ class AddTagsInput(_SerdeShape): tags_list: list[Tag] | None = ... """Contains a list of tags, up to a limit of 50""" +class AddTagsInputDict(TypedDict, total=False): + """Dictionary form of `AddTagsInput`.""" + + resource_id: Required[str] + """ + Specifies the ARN of the trail, event data store, dashboard, or channel + to which one or more tags will be added. + + The format of a trail ARN is: + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + + The format of an event data store ARN is: + `arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE` + + The format of a dashboard ARN is: + `arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash` + + The format of a channel ARN is: + `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` + """ + tags_list: Required[Sequence[Tag | TagDict]] + """Contains a list of tags, up to a limit of 50""" + @dataclass(kw_only=True) class AddTagsOutput(_SerdeShape): """Returns the objects or data if successful. Otherwise, returns an error.""" @@ -151,6 +176,19 @@ class AdvancedEventSelector(_SerdeShape): field_selectors: list[AdvancedFieldSelector] """Contains all selector statements in an advanced event selector.""" +class AdvancedEventSelectorDict(TypedDict, total=False): + """Dictionary form of `AdvancedEventSelector`.""" + + name: str | None + """ + An optional, descriptive name for an advanced event selector, such as + \"Log data events for only two S3 buckets\". + """ + field_selectors: Required[ + Sequence[AdvancedFieldSelector | AdvancedFieldSelectorDict] + ] + """Contains all selector statements in an advanced event selector.""" + @dataclass(kw_only=True) class AdvancedFieldSelector(_SerdeShape): """A single selector statement in an advanced event selector.""" @@ -206,6 +244,60 @@ class AdvancedFieldSelector(_SerdeShape): the event record field specified as the value of `Field`. """ +class AdvancedFieldSelectorDict(TypedDict, total=False): + """Dictionary form of `AdvancedFieldSelector`.""" + + field: Required[str] + """ + A field in a CloudTrail event record on which to filter events to be + logged. For event data stores for CloudTrail Insights events, Config + configuration items, Audit Manager evidence, or events outside of Amazon + Web Services, the field is used only for selecting events as filtering + is not supported. + + For more information, see + [AdvancedFieldSelector](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedFieldSelector.html) + in the *CloudTrail API Reference*. + + Note: + Selectors don't support the use of wildcards like `*` . To match + multiple values with a single condition, you may use `StartsWith`, + `EndsWith`, `NotStartsWith`, or `NotEndsWith` to explicitly match the + beginning or end of the event field. + """ + equals: Sequence[str] | None + """ + An operator that includes events that match the exact value of the event + record field specified as the value of `Field`. This is the only valid + operator that you can use with the `readOnly`, `eventCategory`, and + `resources.type` fields. + """ + starts_with: Sequence[str] | None + """ + An operator that includes events that match the first few characters of + the event record field specified as the value of `Field`. + """ + ends_with: Sequence[str] | None + """ + An operator that includes events that match the last few characters of + the event record field specified as the value of `Field`. + """ + not_equals: Sequence[str] | None + """ + An operator that excludes events that match the exact value of the event + record field specified as the value of `Field`. + """ + not_starts_with: Sequence[str] | None + """ + An operator that excludes events that match the first few characters of + the event record field specified as the value of `Field`. + """ + not_ends_with: Sequence[str] | None + """ + An operator that excludes events that match the last few characters of + the event record field specified as the value of `Field`. + """ + @dataclass(kw_only=True) class AggregationConfiguration(_SerdeShape): """An object that contains configuration settings for aggregating events.""" @@ -218,6 +310,17 @@ class AggregationConfiguration(_SerdeShape): event_category: str """Specifies the event category for which aggregation should be performed.""" +class AggregationConfigurationDict(TypedDict, total=False): + """Dictionary form of `AggregationConfiguration`.""" + + templates: Required[Sequence[str]] + """ + A list of aggregation templates that can be used to configure event + aggregation. + """ + event_category: Required[str] + """Specifies the event category for which aggregation should be performed.""" + class BillingMode(UnknownEnumMixin, StrEnum): EXTENDABLE_RETENTION_PRICING = "EXTENDABLE_RETENTION_PRICING" FIXED_RETENTION_PRICING = "FIXED_RETENTION_PRICING" @@ -239,6 +342,22 @@ class CancelQueryInput(_SerdeShape): event_data_store_owner_account_id: str | None = ... """The account ID of the event data store owner.""" +class CancelQueryInputDict(TypedDict, total=False): + """Dictionary form of `CancelQueryInput`.""" + + event_data_store: str | None + """ + The ARN (or the ID suffix of the ARN) of an event data store on which + the specified query is running. + """ + query_id: Required[str] + """ + The ID of the query that you want to cancel. The `QueryId` comes from + the response of a `StartQuery` operation. + """ + event_data_store_owner_account_id: str | None + """The account ID of the event data store owner.""" + @dataclass(kw_only=True) class CancelQueryOutput(_SerdeShape): """Dataclass for CancelQueryOutput structure.""" @@ -491,6 +610,20 @@ class ContextKeySelector(_SerdeShape): events. """ +class ContextKeySelectorDict(TypedDict, total=False): + """Dictionary form of `ContextKeySelector`.""" + + type: Required[str] + """ + Specifies the type of the event record field in ContextKeySelector. + Valid values include RequestContext, TagContext. + """ + equals: Required[Sequence[str]] + """ + A list of keys defined by Type to be included in CloudTrail enriched + events. + """ + @dataclass(kw_only=True) class CreateChannelInput(_SerdeShape): """Dataclass for CreateChannelInput structure.""" @@ -518,6 +651,32 @@ class CreateChannelInput(_SerdeShape): tags: list[Tag] | None = ... """A list of tags.""" +class CreateChannelInputDict(TypedDict, total=False): + """Dictionary form of `CreateChannelInput`.""" + + name: Required[str] + """The name of the channel.""" + source: Required[str] + """ + The name of the partner or external event source. You cannot change this + name after you create the channel. A maximum of one channel is allowed + per source. + + A source can be either `Custom` for all valid non-Amazon Web Services + events, or the name of a partner event source. For information about the + source names for available partners, see [Additional information about + integration + partners](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-integration.html#cloudtrail-lake-partner-information) + in the CloudTrail User Guide. + """ + destinations: Required[Sequence[Destination | DestinationDict]] + """ + One or more event data stores to which events arriving through a channel + will be logged. + """ + tags: Sequence[Tag | TagDict] | None + """A list of tags.""" + @dataclass(kw_only=True) class CreateChannelOutput(_SerdeShape): """Dataclass for CreateChannelOutput structure.""" @@ -575,6 +734,40 @@ class CreateDashboardInput(_SerdeShape): You do not need to specify widgets for the Highlights dashboard. """ +class CreateDashboardInputDict(TypedDict, total=False): + """Dictionary form of `CreateDashboardInput`.""" + + name: Required[str] + """ + The name of the dashboard. The name must be unique to your account. + + To create the Highlights dashboard, the name must be + `AWSCloudTrail-Highlights`. + """ + refresh_schedule: RefreshSchedule | RefreshScheduleDict | None + """ + The refresh schedule configuration for the dashboard. + + To create the Highlights dashboard, you must set a refresh schedule and + set the `Status` to `ENABLED`. The `Unit` for the refresh schedule must + be `HOURS` and the `Value` must be `6`. + """ + tags_list: Sequence[Tag | TagDict] | None + """A list of tags.""" + termination_protection_enabled: bool | None + """ + Specifies whether termination protection is enabled for the dashboard. + If termination protection is enabled, you cannot delete the dashboard + until termination protection is disabled. + """ + widgets: Sequence[RequestWidget | RequestWidgetDict] | None + """ + An array of widgets for a custom dashboard. A custom dashboard can have + a maximum of ten widgets. + + You do not need to specify widgets for the Highlights dashboard. + """ + @dataclass(kw_only=True) class CreateDashboardOutput(_SerdeShape): """Dataclass for CreateDashboardOutput structure.""" @@ -731,6 +924,137 @@ class CreateEventDataStoreInput(_SerdeShape): costs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html). """ +class CreateEventDataStoreInputDict(TypedDict, total=False): + """Dictionary form of `CreateEventDataStoreInput`.""" + + name: Required[str] + """The name of the event data store.""" + advanced_event_selectors: ( + Sequence[AdvancedEventSelector | AdvancedEventSelectorDict] | None + ) + """ + The advanced event selectors to use to select the events for the data + store. You can configure up to five advanced event selectors for each + event data store. + + For more information about how to use advanced event selectors to log + CloudTrail events, see [Log events by using advanced event + selectors](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced) + in the CloudTrail User Guide. + + For more information about how to use advanced event selectors to + include Config configuration items in your event data store, see [Create + an event data store for Config configuration + items](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-eds-cli.html#lake-cli-create-eds-config) + in the CloudTrail User Guide. + + For more information about how to use advanced event selectors to + include events outside of Amazon Web Services events in your event data + store, see [Create an integration to log events from outside Amazon Web + Services](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-integrations-cli.html#lake-cli-create-integration) + in the CloudTrail User Guide. + """ + multi_region_enabled: bool | None + """ + Specifies whether the event data store includes events from all Regions, + or only from the Region in which the event data store is created. + """ + organization_enabled: bool | None + """ + Specifies whether an event data store collects events logged for an + organization in Organizations. + """ + retention_period: int | None + """ + The retention period of the event data store, in days. If `BillingMode` + is set to `EXTENDABLE_RETENTION_PRICING`, you can set a retention period + of up to 3653 days, the equivalent of 10 years. If `BillingMode` is set + to `FIXED_RETENTION_PRICING`, you can set a retention period of up to + 2557 days, the equivalent of seven years. + + CloudTrail Lake determines whether to retain an event by checking if the + `eventTime` of the event is within the specified retention period. For + example, if you set a retention period of 90 days, CloudTrail will + remove events when the `eventTime` is older than 90 days. + + Note: + If you plan to copy trail events to this event data store, we recommend + that you consider both the age of the events that you want to copy as + well as how long you want to keep the copied events in your event data + store. For example, if you copy trail events that are 5 years old and + specify a retention period of 7 years, the event data store will retain + those events for two years. + """ + termination_protection_enabled: bool | None + """ + Specifies whether termination protection is enabled for the event data + store. If termination protection is enabled, you cannot delete the event + data store until termination protection is disabled. + """ + tags_list: Sequence[Tag | TagDict] | None + """A list of tags.""" + kms_key_id: str | None + """ + Specifies the KMS key ID to use to encrypt the events delivered by + CloudTrail. The value can be an alias name prefixed by `alias/`, a fully + specified ARN to an alias, a fully specified ARN to a key, or a globally + unique identifier. + + Warning: + Disabling or deleting the KMS key, or removing CloudTrail permissions on + the key, prevents CloudTrail from logging events to the event data + store, and prevents users from querying the data in the event data store + that was encrypted with the key. After you associate an event data store + with a KMS key, the KMS key cannot be removed or changed. Before you + disable or delete a KMS key that you are using with an event data store, + delete or back up your event data store. + + CloudTrail also supports KMS multi-Region keys. For more information + about multi-Region keys, see [Using multi-Region + keys](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. + + Examples: + + - `alias/MyAliasName` + + - `arn:aws:kms:us-east-2:123456789012:alias/MyAliasName` + + - `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012` + + - `12345678-1234-1234-1234-123456789012` + """ + start_ingestion: bool | None + """ + Specifies whether the event data store should start ingesting live + events. The default is true. + """ + billing_mode: str | None + """ + The billing mode for the event data store determines the cost for + ingesting events and the default and maximum retention period for the + event data store. + + The following are the possible values: + + - `EXTENDABLE_RETENTION_PRICING` - This billing mode is generally + recommended if you want a flexible retention period of up to 3653 days + (about 10 years). The default retention period for this billing mode + is 366 days. + + - `FIXED_RETENTION_PRICING` - This billing mode is recommended if you + expect to ingest more than 25 TB of event data per month and need a + retention period of up to 2557 days (about 7 years). The default + retention period for this billing mode is 2557 days. + + The default value is `EXTENDABLE_RETENTION_PRICING`. + + For more information about CloudTrail pricing, see [CloudTrail + Pricing](http://aws.amazon.com/cloudtrail/pricing/) and [Managing + CloudTrail Lake + costs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html). + """ + @dataclass(kw_only=True) class CreateEventDataStoreOutput(_SerdeShape): """Dataclass for CreateEventDataStoreOutput structure.""" @@ -917,6 +1241,131 @@ class CreateTrailInput(_SerdeShape): including Amazon S3 and CloudWatch Logs. The default value is `true`. """ +class CreateTrailInputDict(TypedDict, total=False): + """Dictionary form of `CreateTrailInput`.""" + + name: Required[str] + """ + Specifies the name of the trail. The name must meet the following + requirements: + + - Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), + underscores (_), or dashes (-) + + - Start with a letter or number, and end with a letter or number + + - Be between 3 and 128 characters + + - Have no adjacent periods, underscores or dashes. Names like + `my-_namespace` and `my--namespace` are not valid. + + - Not be in IP address format (for example, 192.168.5.4) + """ + s3_bucket_name: Required[str] + """ + Specifies the name of the Amazon S3 bucket designated for publishing log + files. For information about bucket naming rules, see [Bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) + in the *Amazon Simple Storage Service User Guide*. + """ + s3_key_prefix: str | None + """ + Specifies the Amazon S3 key prefix that comes after the name of the + bucket you have designated for log file delivery. For more information, + see [Finding Your CloudTrail Log + Files](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/get-and-view-cloudtrail-log-files.html#cloudtrail-find-log-files). + The maximum length is 200 characters. + """ + sns_topic_name: str | None + """ + Specifies the name or ARN of the Amazon SNS topic defined for + notification of log file delivery. The maximum length is 256 characters. + """ + include_global_service_events: bool | None + """ + Specifies whether the trail is publishing events from global services + such as IAM to the log files. Setting this value to `true` only delivers + global service events to the trail if the trail is multi-Region or if + the trail's home Region is the partition leader Region (for example, + us-east-1). + """ + is_multi_region_trail: bool | None + """ + Specifies whether the trail is created in the current Region or in all + Regions. The default is false, which creates a trail only in the Region + where you are signed in. As a best practice, consider creating trails + that log events in all Regions. + """ + enable_log_file_validation: bool | None + """ + Specifies whether log file integrity validation is enabled. The default + is false. + + Note: + When you disable log file integrity validation, the chain of digest + files is broken after one hour. CloudTrail does not create digest files + for log files that were delivered during a period in which log file + integrity validation was disabled. For example, if you enable log file + integrity validation at noon on January 1, disable it at noon on January + 2, and re-enable it at noon on January 10, digest files will not be + created for the log files delivered from noon on January 2 to noon on + January 10. The same applies whenever you stop CloudTrail logging or + delete a trail. + """ + cloud_watch_logs_log_group_arn: str | None + """ + Specifies a log group name using an Amazon Resource Name (ARN), a unique + identifier that represents the log group to which CloudTrail logs will + be delivered. You must use a log group that exists in your account. + + Not required unless you specify `CloudWatchLogsRoleArn`. + """ + cloud_watch_logs_role_arn: str | None + """ + Specifies the role for the CloudWatch Logs endpoint to assume to write + to a user's log group. You must use a role that exists in your account. + """ + kms_key_id: str | None + """ + Specifies the KMS key ID to use to encrypt the logs and digest files + delivered by CloudTrail. The value can be an alias name prefixed by + `alias/`, a fully specified ARN to an alias, a fully specified ARN to a + key, or a globally unique identifier. + + CloudTrail also supports KMS multi-Region keys. For more information + about multi-Region keys, see [Using multi-Region + keys](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. + + Examples: + + - `alias/MyAliasName` + + - `arn:aws:kms:us-east-2:123456789012:alias/MyAliasName` + + - `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012` + + - `12345678-1234-1234-1234-123456789012` + """ + is_organization_trail: bool | None + """ + Specifies whether the trail is created for all accounts in an + organization in Organizations, or only for the current Amazon Web + Services account. The default is false, and cannot be true unless the + call is made on behalf of an Amazon Web Services account that is the + management account or delegated administrator account for an + organization in Organizations. + """ + tags_list: Sequence[Tag | TagDict] | None + """A list of tags.""" + recursive_logging: bool | None + """ + Specifies whether recursive logging is enabled for the trail. If you set + `RecursiveLogging` to `false`, CloudTrail suppresses events generated by + CloudTrail when it delivers log files to your trail's destinations, + including Amazon S3 and CloudWatch Logs. The default value is `true`. + """ + @dataclass(kw_only=True) class CreateTrailOutput(_SerdeShape): """ @@ -1070,23 +1519,89 @@ class DataResource(_SerdeShape): logging of Lambda data events for a Lambda function named *MyLambdaFunction*, but not for all Lambda functions. - 1. A user runs a script that includes a call to the *MyLambdaFunction* - function and the *MyOtherLambdaFunction* function. + 1. A user runs a script that includes a call to the *MyLambdaFunction* + function and the *MyOtherLambdaFunction* function. + + 2. The `Invoke` API operation on *MyLambdaFunction* is an Lambda API. + It is recorded as a data event in CloudTrail. Because the CloudTrail + user specified logging data events for *MyLambdaFunction*, any + invocations of that function are logged. The trail processes and + logs the event. + + 3. The `Invoke` API operation on *MyOtherLambdaFunction* is an Lambda + API. Because the CloudTrail user did not specify logging data events + for all Lambda functions, the `Invoke` operation for + *MyOtherLambdaFunction* does not match the function specified for + the trail. The trail doesn't log the event. + """ + + type: str | None = ... + """ + The resource type in which you want to log data events. You can specify + the following *basic* event selector resource types: + + - `AWS::DynamoDB::Table` + + - `AWS::Lambda::Function` + + - `AWS::S3::Object` + + Additional resource types are available through *advanced* event + selectors. For more information, see + [AdvancedEventSelector](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html). + """ + values: list[str] | None = ... + """ + An array of Amazon Resource Name (ARN) strings or partial ARN strings + for the specified resource type. + + - To log data events for all objects in all S3 buckets in your Amazon + Web Services account, specify the prefix as `arn:aws:s3`. + + Note: + This also enables logging of data event activity performed by any user + or role in your Amazon Web Services account, even if that activity is + performed on a bucket that belongs to another Amazon Web Services + account. + + - To log data events for all objects in an S3 bucket, specify the bucket + and an empty object prefix such as + `arn:aws:s3:::amzn-s3-demo-bucket1/`. The trail logs data events for + all objects in this S3 bucket. + + - To log data events for specific objects, specify the S3 bucket and + object prefix such as + `arn:aws:s3:::amzn-s3-demo-bucket1/example-images`. The trail logs + data events for objects in this S3 bucket that match the prefix. + + - To log data events for all Lambda functions in your Amazon Web + Services account, specify the prefix as `arn:aws:lambda`. + + Note: + This also enables logging of `Invoke` activity performed by any user + or role in your Amazon Web Services account, even if that activity is + performed on a function that belongs to another Amazon Web Services + account. + + - To log data events for a specific Lambda function, specify the + function ARN. - 2. The `Invoke` API operation on *MyLambdaFunction* is an Lambda API. - It is recorded as a data event in CloudTrail. Because the CloudTrail - user specified logging data events for *MyLambdaFunction*, any - invocations of that function are logged. The trail processes and - logs the event. + Note: + Lambda function ARNs are exact. For example, if you specify a function + ARN *arn:aws:lambda:us-west-2:111111111111:function:helloworld*, data + events will only be logged for + *arn:aws:lambda:us-west-2:111111111111:function:helloworld*. They will + not be logged for + *arn:aws:lambda:us-west-2:111111111111:function:helloworld2*. - 3. The `Invoke` API operation on *MyOtherLambdaFunction* is an Lambda - API. Because the CloudTrail user did not specify logging data events - for all Lambda functions, the `Invoke` operation for - *MyOtherLambdaFunction* does not match the function specified for - the trail. The trail doesn't log the event. + - To log data events for all DynamoDB tables in your Amazon Web Services + account, specify the prefix as `arn:aws:dynamodb`. """ - type: str | None = ... +class DataResourceDict(TypedDict, total=False): + """Dictionary form of `DataResource`.""" + + type: str | None """ The resource type in which you want to log data events. You can specify the following *basic* event selector resource types: @@ -1101,7 +1616,7 @@ class DataResource(_SerdeShape): selectors. For more information, see [AdvancedEventSelector](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html). """ - values: list[str] | None = ... + values: Sequence[str] | None """ An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified resource type. @@ -1171,6 +1686,12 @@ class DeleteChannelInput(_SerdeShape): channel: str | None = ... """The ARN or the `UUID` value of the channel that you want to delete.""" +class DeleteChannelInputDict(TypedDict, total=False): + """Dictionary form of `DeleteChannelInput`.""" + + channel: Required[str] + """The ARN or the `UUID` value of the channel that you want to delete.""" + @dataclass(kw_only=True) class DeleteChannelOutput(_SerdeShape): """Dataclass for DeleteChannelOutput structure.""" @@ -1190,6 +1711,12 @@ class DeleteDashboardInput(_SerdeShape): dashboard_id: str | None = ... """The name or ARN for the dashboard.""" +class DeleteDashboardInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDashboardInput`.""" + + dashboard_id: Required[str] + """The name or ARN for the dashboard.""" + @dataclass(kw_only=True) class DeleteDashboardOutput(_SerdeShape): """Dataclass for DeleteDashboardOutput structure.""" @@ -1209,6 +1736,12 @@ class DeleteEventDataStoreInput(_SerdeShape): event_data_store: str | None = ... """The ARN (or the ID suffix of the ARN) of the event data store to delete.""" +class DeleteEventDataStoreInputDict(TypedDict, total=False): + """Dictionary form of `DeleteEventDataStoreInput`.""" + + event_data_store: Required[str] + """The ARN (or the ID suffix of the ARN) of the event data store to delete.""" + @dataclass(kw_only=True) class DeleteEventDataStoreOutput(_SerdeShape): """Dataclass for DeleteEventDataStoreOutput structure.""" @@ -1240,6 +1773,24 @@ class DeleteResourcePolicyInput(_SerdeShape): `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` """ +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the CloudTrail event data store, + dashboard, or channel you're deleting the resource-based policy from. + + Example event data store ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE` + + Example dashboard ARN format: + `arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash` + + Example channel ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` + """ + @dataclass(kw_only=True) class DeleteResourcePolicyOutput(_SerdeShape): """Dataclass for DeleteResourcePolicyOutput structure.""" @@ -1263,6 +1814,16 @@ class DeleteTrailInput(_SerdeShape): `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` """ +class DeleteTrailInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTrailInput`.""" + + name: Required[str] + """ + Specifies the name or the CloudTrail ARN of the trail to be deleted. The + following is the format of a trail ARN. + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + """ + @dataclass(kw_only=True) class DeleteTrailOutput(_SerdeShape): """ @@ -1303,6 +1864,15 @@ class DeregisterOrganizationDelegatedAdminInput(_SerdeShape): organization that is currently designated as a delegated administrator. """ +class DeregisterOrganizationDelegatedAdminInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterOrganizationDelegatedAdminInput`.""" + + delegated_admin_account_id: Required[str] + """ + A delegated administrator account ID. This is a member account in an + organization that is currently designated as a delegated administrator. + """ + @dataclass(kw_only=True) class DeregisterOrganizationDelegatedAdminOutput(_SerdeShape): """ @@ -1336,6 +1906,23 @@ class DescribeQueryInput(_SerdeShape): event_data_store_owner_account_id: str | None = ... """The account ID of the event data store owner.""" +class DescribeQueryInputDict(TypedDict, total=False): + """Dictionary form of `DescribeQueryInput`.""" + + event_data_store: str | None + """ + The ARN (or the ID suffix of the ARN) of an event data store on which + the specified query was run. + """ + query_id: str | None + """The query ID.""" + query_alias: str | None + """The alias that identifies a query template.""" + refresh_id: str | None + """The ID of the dashboard refresh.""" + event_data_store_owner_account_id: str | None + """The account ID of the event data store owner.""" + @dataclass(kw_only=True) class DescribeQueryOutput(_SerdeShape): """Dataclass for DescribeQueryOutput structure.""" @@ -1418,6 +2005,42 @@ class DescribeTrailsInput(_SerdeShape): Region replication trails will not be returned. The default is true. """ +class DescribeTrailsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTrailsInput`.""" + + trail_name_list: Sequence[str] | None + """ + Specifies a list of trail names, trail ARNs, or both, of the trails to + describe. The format of a trail ARN is: + + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + + If an empty list is specified, information for the trail in the current + Region is returned. + + - If an empty list is specified and `IncludeShadowTrails` is false, then + information for all trails in the current Region is returned. + + - If an empty list is specified and IncludeShadowTrails is null or true, + then information for all trails in the current Region and any + associated shadow trails in other Regions is returned. + + Note: + If one or more trail names are specified, information is returned only + if the names match the names of trails belonging only to the current + Region and current account. To return information about a trail in + another Region, you must specify its trail ARN. + """ + include_shadow_trails: bool | None + """ + Specifies whether to include shadow trails in the response. A shadow + trail is the replication in a Region of a trail that was created in a + different Region, or in the case of an organization trail, the + replication of an organization trail in member accounts. If you do not + include shadow trails, organization trails in a member account and + Region replication trails will not be returned. The default is true. + """ + @dataclass(kw_only=True) class DescribeTrailsOutput(_SerdeShape): """ @@ -1460,6 +2083,23 @@ class Destination(_SerdeShape): Services service. """ +class DestinationDict(TypedDict, total=False): + """Dictionary form of `Destination`.""" + + type: Required[str] + """ + The type of destination for events arriving from a channel. For channels + used for a CloudTrail Lake integration, the value is `EVENT_DATA_STORE`. + For service-linked channels, the value is `AWS_SERVICE`. + """ + location: Required[str] + """ + For channels used for a CloudTrail Lake integration, the location is the + ARN of an event data store that receives events from a channel. For + service-linked channels, the location is the name of the Amazon Web + Services service. + """ + class DestinationType(UnknownEnumMixin, StrEnum): EVENT_DATA_STORE = "EVENT_DATA_STORE" AWS_SERVICE = "AWS_SERVICE" @@ -1474,6 +2114,15 @@ class DisableFederationInput(_SerdeShape): want to disable Lake query federation. """ +class DisableFederationInputDict(TypedDict, total=False): + """Dictionary form of `DisableFederationInput`.""" + + event_data_store: Required[str] + """ + The ARN (or ID suffix of the ARN) of the event data store for which you + want to disable Lake query federation. + """ + @dataclass(kw_only=True) class DisableFederationOutput(_SerdeShape): """Dataclass for DisableFederationOutput structure.""" @@ -1511,6 +2160,23 @@ class EnableFederationInput(_SerdeShape): permissions](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html#query-federation-permissions-role). """ +class EnableFederationInputDict(TypedDict, total=False): + """Dictionary form of `EnableFederationInput`.""" + + event_data_store: Required[str] + """ + The ARN (or ID suffix of the ARN) of the event data store for which you + want to enable Lake query federation. + """ + federation_role_arn: Required[str] + """ + The ARN of the federation role to use for the event data store. Amazon + Web Services services like Lake Formation use this federation role to + access data for the federated event data store. The federation role must + exist in your account and provide the [required minimum + permissions](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html#query-federation-permissions-role). + """ + @dataclass(kw_only=True) class EnableFederationOutput(_SerdeShape): """Dataclass for EnableFederationOutput structure.""" @@ -1804,6 +2470,70 @@ class EventSelector(_SerdeShape): support the event source. """ +class EventSelectorDict(TypedDict, total=False): + """Dictionary form of `EventSelector`.""" + + read_write_type: str | None + """ + Specify if you want your trail to log read-only events, write-only + events, or all. For example, the EC2 `GetConsoleOutput` is a read-only + API operation and `RunInstances` is a write-only API operation. + + By default, the value is `All`. + """ + include_management_events: bool | None + """ + Specify if you want your event selector to include management events for + your trail. + + For more information, see [Management + Events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html) + in the *CloudTrail User Guide*. + + By default, the value is `true`. + + The first copy of management events is free. You are charged for + additional copies of management events that you are logging on any + subsequent trail in the same Region. For more information about + CloudTrail pricing, see [CloudTrail + Pricing](http://aws.amazon.com/cloudtrail/pricing/). + """ + data_resources: Sequence[DataResource | DataResourceDict] | None + """ + CloudTrail supports data event logging for Amazon S3 objects in standard + S3 buckets, Lambda functions, and Amazon DynamoDB tables with basic + event selectors. You can specify up to 250 resources for an individual + event selector, but the total number of data resources cannot exceed 250 + across all event selectors in a trail. This limit does not apply if you + configure resource logging for all data events. + + For more information, see [Data + Events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html) + and [Limits in + CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) + in the *CloudTrail User Guide*. + + Note: + To log data events for all other resource types including objects stored + in [directory + buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html), + you must use + [AdvancedEventSelectors](https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html). + You must also use `AdvancedEventSelectors` if you want to filter on the + `eventName` field. + """ + exclude_management_event_sources: Sequence[str] | None + """ + An optional list of service event sources from which you do not want + management events to be logged on your trail. In this release, the list + can be empty (disables the filter), or it can filter out Key Management + Service or Amazon RDS Data API events by containing `kms.amazonaws.com` + or `rdsdata.amazonaws.com`. By default, `ExcludeManagementEventSources` + is empty, and KMS and Amazon RDS Data API events are logged to your + trail. You can exclude management event sources only in Regions that + support the event source. + """ + class FederationStatus(UnknownEnumMixin, StrEnum): ENABLING = "ENABLING" ENABLED = "ENABLED" @@ -1827,6 +2557,22 @@ class GenerateQueryInput(_SerdeShape): in the *CloudTrail* user guide. """ +class GenerateQueryInputDict(TypedDict, total=False): + """Dictionary form of `GenerateQueryInput`.""" + + event_data_stores: Required[Sequence[str]] + """ + The ARN (or ID suffix of the ARN) of the event data store that you want + to query. You can only specify one event data store. + """ + prompt: Required[str] + """ + The prompt that you want to use to generate the query. The prompt must + be in English. For example prompts, see [Example + prompts](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-query-generator.html#lake-query-generator-examples) + in the *CloudTrail* user guide. + """ + @dataclass(kw_only=True) class GenerateQueryOutput(_SerdeShape): """Dataclass for GenerateQueryOutput structure.""" @@ -1871,6 +2617,12 @@ class GetChannelInput(_SerdeShape): channel: str | None = ... """The ARN or `UUID` of a channel.""" +class GetChannelInputDict(TypedDict, total=False): + """Dictionary form of `GetChannelInput`.""" + + channel: Required[str] + """The ARN or `UUID` of a channel.""" + @dataclass(kw_only=True) class GetChannelOutput(_SerdeShape): """Dataclass for GetChannelOutput structure.""" @@ -1921,6 +2673,12 @@ class GetDashboardInput(_SerdeShape): dashboard_id: str | None = ... """The name or ARN for the dashboard.""" +class GetDashboardInputDict(TypedDict, total=False): + """Dictionary form of `GetDashboardInput`.""" + + dashboard_id: Required[str] + """The name or ARN for the dashboard.""" + @dataclass(kw_only=True) class GetDashboardOutput(_SerdeShape): """Dataclass for GetDashboardOutput structure.""" @@ -1968,6 +2726,20 @@ class GetEventConfigurationInput(_SerdeShape): store for which you want to retrieve event configuration settings. """ +class GetEventConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetEventConfigurationInput`.""" + + trail_name: str | None + """ + The name of the trail for which you want to retrieve event configuration + settings. + """ + event_data_store: str | None + """ + The Amazon Resource Name (ARN) or ID suffix of the ARN of the event data + store for which you want to retrieve event configuration settings. + """ + @dataclass(kw_only=True) class GetEventConfigurationOutput(_SerdeShape): """Dataclass for GetEventConfigurationOutput structure.""" @@ -2015,6 +2787,15 @@ class GetEventDataStoreInput(_SerdeShape): you want information. """ +class GetEventDataStoreInputDict(TypedDict, total=False): + """Dictionary form of `GetEventDataStoreInput`.""" + + event_data_store: Required[str] + """ + The ARN (or ID suffix of the ARN) of the event data store about which + you want information. + """ + @dataclass(kw_only=True) class GetEventDataStoreOutput(_SerdeShape): """Dataclass for GetEventDataStoreOutput structure.""" @@ -2086,11 +2867,36 @@ class GetEventDataStoreOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetEventSelectorsInput(_SerdeShape): - """Dataclass for GetEventSelectorsInput structure.""" +@dataclass(kw_only=True) +class GetEventSelectorsInput(_SerdeShape): + """Dataclass for GetEventSelectorsInput structure.""" + + trail_name: str | None = ... + """ + Specifies the name of the trail or trail ARN. If you specify a trail + name, the string must meet the following requirements: + + - Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), + underscores (_), or dashes (-) + + - Start with a letter or number, and end with a letter or number + + - Be between 3 and 128 characters + + - Have no adjacent periods, underscores or dashes. Names like + `my-_namespace` and `my--namespace` are not valid. + + - Not be in IP address format (for example, 192.168.5.4) + + If you specify a trail ARN, it must be in the format: + + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + """ + +class GetEventSelectorsInputDict(TypedDict, total=False): + """Dictionary form of `GetEventSelectorsInput`.""" - trail_name: str | None = ... + trail_name: Required[str] """ Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements: @@ -2137,6 +2943,12 @@ class GetImportInput(_SerdeShape): import_id: str | None = ... """The ID for the import.""" +class GetImportInputDict(TypedDict, total=False): + """Dictionary form of `GetImportInput`.""" + + import_id: Required[str] + """The ID for the import.""" + @dataclass(kw_only=True) class GetImportOutput(_SerdeShape): """Dataclass for GetImportOutput structure.""" @@ -2215,6 +3027,40 @@ class GetInsightSelectorsInput(_SerdeShape): You cannot use this parameter with the `TrailName` parameter. """ +class GetInsightSelectorsInputDict(TypedDict, total=False): + """Dictionary form of `GetInsightSelectorsInput`.""" + + trail_name: str | None + """ + Specifies the name of the trail or trail ARN. If you specify a trail + name, the string must meet the following requirements: + + - Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), + underscores (_), or dashes (-) + + - Start with a letter or number, and end with a letter or number + + - Be between 3 and 128 characters + + - Have no adjacent periods, underscores or dashes. Names like + `my-_namespace` and `my--namespace` are not valid. + + - Not be in IP address format (for example, 192.168.5.4) + + If you specify a trail ARN, it must be in the format: + + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + + You cannot use this parameter with the `EventDataStore` parameter. + """ + event_data_store: str | None + """ + Specifies the ARN (or ID suffix of the ARN) of the event data store for + which you want to get Insights selectors. + + You cannot use this parameter with the `TrailName` parameter. + """ + @dataclass(kw_only=True) class GetInsightSelectorsOutput(_SerdeShape): """Dataclass for GetInsightSelectorsOutput structure.""" @@ -2263,6 +3109,23 @@ class GetQueryResultsInput(_SerdeShape): event_data_store_owner_account_id: str | None = ... """The account ID of the event data store owner.""" +class GetQueryResultsInputDict(TypedDict, total=False): + """Dictionary form of `GetQueryResultsInput`.""" + + event_data_store: str | None + """ + The ARN (or ID suffix of the ARN) of the event data store against which + the query was run. + """ + query_id: Required[str] + """The ID of the query for which you want to get results.""" + next_token: str | None + """A token you can use to get the next page of query results.""" + max_query_results: int | None + """The maximum number of query results to display on a single page.""" + event_data_store_owner_account_id: str | None + """The account ID of the event data store owner.""" + @dataclass(kw_only=True) class GetQueryResultsOutput(_SerdeShape): """Dataclass for GetQueryResultsOutput structure.""" @@ -2307,6 +3170,24 @@ class GetResourcePolicyInput(_SerdeShape): `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` """ +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the CloudTrail event data store, + dashboard, or channel attached to the resource-based policy. + + Example event data store ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE` + + Example dashboard ARN format: + `arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash` + + Example channel ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` + """ + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Dataclass for GetResourcePolicyOutput structure.""" @@ -2357,6 +3238,15 @@ class GetTrailInput(_SerdeShape): want to retrieve settings information. """ +class GetTrailInputDict(TypedDict, total=False): + """Dictionary form of `GetTrailInput`.""" + + name: Required[str] + """ + The name or the Amazon Resource Name (ARN) of the trail for which you + want to retrieve settings information. + """ + @dataclass(kw_only=True) class GetTrailOutput(_SerdeShape): """Dataclass for GetTrailOutput structure.""" @@ -2390,6 +3280,24 @@ class GetTrailStatusInput(_SerdeShape): trail, and not just the name. """ +class GetTrailStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetTrailStatusInput`.""" + + name: Required[str] + """ + Specifies the name or the CloudTrail ARN of the trail for which you are + requesting status. To get the status of a shadow trail (a replication of + the trail in another Region), you must specify its ARN. + + The following is the format of a trail ARN: + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + + Note: + If the trail is an organization trail and you are a member account in + the organization in Organizations, you must provide the full ARN of that + trail, and not just the name. + """ + @dataclass(kw_only=True) class GetTrailStatusOutput(_SerdeShape): """ @@ -2554,6 +3462,12 @@ class ImportSource(_SerdeShape): s3: S3ImportSource """The source S3 bucket.""" +class ImportSourceDict(TypedDict, total=False): + """Dictionary form of `ImportSource`.""" + + s3: Required[S3ImportSource | S3ImportSourceDict] + """The source S3 bucket.""" + @dataclass(kw_only=True) class ImportStatistics(_SerdeShape): """ @@ -2683,6 +3597,36 @@ class InsightSelector(_SerdeShape): Insights on management events will be disabled. """ +class InsightSelectorDict(TypedDict, total=False): + """Dictionary form of `InsightSelector`.""" + + insight_type: str | None + """ + The type of Insights events to log on a trail or event data store. + `ApiCallRateInsight` and `ApiErrorRateInsight` are valid Insight types. + + The `ApiCallRateInsight` Insights type analyzes write-only management + API calls or read and write data API calls that are aggregated per + minute against a baseline API call volume. + + The `ApiErrorRateInsight` Insights type analyzes management and data API + calls that result in error codes. The error is shown if the API call is + unsuccessful. + """ + event_categories: Sequence[str] | None + """ + Select the event category on which Insights should be enabled. + + - If EventCategories is not provided, the specified Insights types are + enabled on management API calls by default. + + - If EventCategories is provided, the given event categories will + overwrite the existing ones. For example, if a trail already has + Insights enabled on management events, and then a PutInsightSelectors + request is made with only data events specified in EventCategories, + Insights on management events will be disabled. + """ + class InsightsMetricDataType(UnknownEnumMixin, StrEnum): FILL_WITH_ZEROS = "FillWithZeros" NON_ZERO_DATA = "NonZeroData" @@ -3247,6 +4191,20 @@ class ListChannelsInput(_SerdeShape): call with NextToken should include those same parameters. """ +class ListChannelsInputDict(TypedDict, total=False): + """Dictionary form of `ListChannelsInput`.""" + + max_results: int | None + """The maximum number of CloudTrail channels to display on a single page.""" + next_token: str | None + """ + The token to use to get the next page of results after a previous API + call. This token must be passed in with the same parameters that were + specified in the original call. For example, if the original call + specified an AttributeKey of 'Username' with a value of 'root', the + call with NextToken should include those same parameters. + """ + @dataclass(kw_only=True) class ListChannelsOutput(_SerdeShape): """Dataclass for ListChannelsOutput structure.""" @@ -3279,6 +4237,18 @@ class ListDashboardsInput(_SerdeShape): max_results: int | None = ... """The maximum number of dashboards to display on a single page.""" +class ListDashboardsInputDict(TypedDict, total=False): + """Dictionary form of `ListDashboardsInput`.""" + + name_prefix: str | None + """Specify a name prefix to filter on.""" + type: str | None + """Specify a dashboard type to filter on: `CUSTOM` or `MANAGED`.""" + next_token: str | None + """A token you can use to get the next page of dashboard results.""" + max_results: int | None + """The maximum number of dashboards to display on a single page.""" + @dataclass(kw_only=True) class ListDashboardsOutput(_SerdeShape): """Dataclass for ListDashboardsOutput structure.""" @@ -3307,6 +4277,14 @@ class ListEventDataStoresInput(_SerdeShape): max_results: int | None = ... """The maximum number of event data stores to display on a single page.""" +class ListEventDataStoresInputDict(TypedDict, total=False): + """Dictionary form of `ListEventDataStoresInput`.""" + + next_token: str | None + """A token you can use to get the next page of event data store results.""" + max_results: int | None + """The maximum number of event data stores to display on a single page.""" + @dataclass(kw_only=True) class ListEventDataStoresOutput(_SerdeShape): """Dataclass for ListEventDataStoresOutput structure.""" @@ -3337,6 +4315,16 @@ class ListImportFailuresInput(_SerdeShape): next_token: str | None = ... """A token you can use to get the next page of import failures.""" +class ListImportFailuresInputDict(TypedDict, total=False): + """Dictionary form of `ListImportFailuresInput`.""" + + import_id: Required[str] + """The ID of the import.""" + max_results: int | None + """The maximum number of failures to display on a single page.""" + next_token: str | None + """A token you can use to get the next page of import failures.""" + @dataclass(kw_only=True) class ListImportFailuresOutput(_SerdeShape): """Dataclass for ListImportFailuresOutput structure.""" @@ -3366,6 +4354,18 @@ class ListImportsInput(_SerdeShape): next_token: str | None = ... """A token you can use to get the next page of import results.""" +class ListImportsInputDict(TypedDict, total=False): + """Dictionary form of `ListImportsInput`.""" + + max_results: int | None + """The maximum number of imports to display on a single page.""" + destination: str | None + """The ARN of the destination event data store.""" + import_status: str | None + """The status of the import.""" + next_token: str | None + """A token you can use to get the next page of import results.""" + @dataclass(kw_only=True) class ListImportsOutput(_SerdeShape): """Dataclass for ListImportsOutput structure.""" @@ -3432,6 +4432,50 @@ class ListInsightsDataInput(_SerdeShape): call with NextToken should include those same parameters. """ +class ListInsightsDataInputDict(TypedDict, total=False): + """Dictionary form of `ListInsightsDataInput`.""" + + insight_source: Required[str] + """ + The Amazon Resource Name(ARN) of the trail for which you want to + retrieve Insights events. + """ + data_type: Required[str] + """ + Specifies the category of events returned. To fetch Insights events, + specify `InsightsEvents` as the value of `DataType` + """ + dimensions: Mapping[str, str] | None + """ + Contains a map of dimensions. Currently the map can contain only one + item. + """ + start_time: datetime | None + """ + Specifies that only events that occur after or at the specified time are + returned. If the specified start time is after the specified end time, + an error is returned. + """ + end_time: datetime | None + """ + Specifies that only events that occur before or at the specified time + are returned. If the specified end time is before the specified start + time, an error is returned. + """ + max_results: int | None + """ + The number of events to return. Possible values are 1 through 50. The + default is 50. + """ + next_token: str | None + """ + The token to use to get the next page of results after a previous API + call. This token must be passed in with the same parameters that were + specified in the original call. For example, if the original call + specified a EventName as a dimension with `PutObject` as a value, the + call with NextToken should include those same parameters. + """ + @dataclass(kw_only=True) class ListInsightsDataOutput(_SerdeShape): """Dataclass for ListInsightsDataOutput structure.""" @@ -3451,22 +4495,101 @@ class ListInsightsDataOutput(_SerdeShape): dimension with `PutObject` as a value, the call with NextToken should include those same parameters. """ - response_metadata: ResponseMetadata = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class ListInsightsDataType(UnknownEnumMixin, StrEnum): + INSIGHTS_EVENTS = "InsightsEvents" + +@dataclass(kw_only=True) +class ListInsightsMetricDataInput(_SerdeShape): + """Dataclass for ListInsightsMetricDataInput structure.""" + + trail_name: str | None = ... + """ + The Amazon Resource Name(ARN) or name of the trail for which you want to + retrieve Insights metrics data. This parameter should only be provided + to fetch Insights metrics data generated on trails logging data events. + This parameter is not required for Insights metric data generated on + trails logging management events. + """ + event_source: str | None = ... + """ + The Amazon Web Services service to which the request was made, such as + `iam.amazonaws.com` or `s3.amazonaws.com`. + """ + event_name: str | None = ... + """ + The name of the event, typically the Amazon Web Services API on which + unusual levels of activity were recorded. + """ + insight_type: str | None = ... + """ + The type of CloudTrail Insights event, which is either + `ApiCallRateInsight` or `ApiErrorRateInsight`. The `ApiCallRateInsight` + Insights type analyzes write-only management API calls that are + aggregated per minute against a baseline API call volume. The + `ApiErrorRateInsight` Insights type analyzes management API calls that + result in error codes. + """ + error_code: str | None = ... + """ + Conditionally required if the `InsightType` parameter is set to + `ApiErrorRateInsight`. + + If returning metrics for the `ApiErrorRateInsight` Insights type, this + is the error to retrieve data for. For example, `AccessDenied`. + """ + start_time: datetime | None = ... + """ + Specifies, in UTC, the start time for time-series data. The value + specified is inclusive; results include data points with the specified + time stamp. + + The default is 90 days before the time of request. + """ + end_time: datetime | None = ... + """ + Specifies, in UTC, the end time for time-series data. The value + specified is exclusive; results include data points up to the specified + time stamp. + + The default is the time of request. + """ + period: int | None = ... + """ + Granularity of data to retrieve, in seconds. Valid values are `60`, + `300`, and `3600`. If you specify any other value, you will get an + error. The default is 3600 seconds. + """ + data_type: str | None = ... + """ + Type of data points to return. Valid values are `NonZeroData` and + `FillWithZeros`. The default is `NonZeroData`. + """ + max_results: int | None = ... + """ + The maximum number of data points to return. Valid values are integers + from 1 to 21600. The default value is 21600. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + next_token: str | None = ... """ + Returned if all datapoints can't be returned in a single call. For + example, due to reaching `MaxResults`. -class ListInsightsDataType(UnknownEnumMixin, StrEnum): - INSIGHTS_EVENTS = "InsightsEvents" + Add this parameter to the request to continue retrieving results + starting from the last evaluated point. + """ -@dataclass(kw_only=True) -class ListInsightsMetricDataInput(_SerdeShape): - """Dataclass for ListInsightsMetricDataInput structure.""" +class ListInsightsMetricDataInputDict(TypedDict, total=False): + """Dictionary form of `ListInsightsMetricDataInput`.""" - trail_name: str | None = ... + trail_name: str | None """ The Amazon Resource Name(ARN) or name of the trail for which you want to retrieve Insights metrics data. This parameter should only be provided @@ -3474,17 +4597,17 @@ class ListInsightsMetricDataInput(_SerdeShape): This parameter is not required for Insights metric data generated on trails logging management events. """ - event_source: str | None = ... + event_source: Required[str] """ The Amazon Web Services service to which the request was made, such as `iam.amazonaws.com` or `s3.amazonaws.com`. """ - event_name: str | None = ... + event_name: Required[str] """ The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded. """ - insight_type: str | None = ... + insight_type: Required[str] """ The type of CloudTrail Insights event, which is either `ApiCallRateInsight` or `ApiErrorRateInsight`. The `ApiCallRateInsight` @@ -3493,7 +4616,7 @@ class ListInsightsMetricDataInput(_SerdeShape): `ApiErrorRateInsight` Insights type analyzes management API calls that result in error codes. """ - error_code: str | None = ... + error_code: str | None """ Conditionally required if the `InsightType` parameter is set to `ApiErrorRateInsight`. @@ -3501,7 +4624,7 @@ class ListInsightsMetricDataInput(_SerdeShape): If returning metrics for the `ApiErrorRateInsight` Insights type, this is the error to retrieve data for. For example, `AccessDenied`. """ - start_time: datetime | None = ... + start_time: datetime | None """ Specifies, in UTC, the start time for time-series data. The value specified is inclusive; results include data points with the specified @@ -3509,7 +4632,7 @@ class ListInsightsMetricDataInput(_SerdeShape): The default is 90 days before the time of request. """ - end_time: datetime | None = ... + end_time: datetime | None """ Specifies, in UTC, the end time for time-series data. The value specified is exclusive; results include data points up to the specified @@ -3517,23 +4640,23 @@ class ListInsightsMetricDataInput(_SerdeShape): The default is the time of request. """ - period: int | None = ... + period: int | None """ Granularity of data to retrieve, in seconds. Valid values are `60`, `300`, and `3600`. If you specify any other value, you will get an error. The default is 3600 seconds. """ - data_type: str | None = ... + data_type: str | None """ Type of data points to return. Valid values are `NonZeroData` and `FillWithZeros`. The default is `NonZeroData`. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of data points to return. Valid values are integers from 1 to 21600. The default value is 21600. """ - next_token: str | None = ... + next_token: str | None """ Returned if all datapoints can't be returned in a single call. For example, due to reaching `MaxResults`. @@ -3621,6 +4744,24 @@ class ListPublicKeysInput(_SerdeShape): next_token: str | None = ... """Reserved for future use.""" +class ListPublicKeysInputDict(TypedDict, total=False): + """Dictionary form of `ListPublicKeysInput`.""" + + start_time: datetime | None + """ + Optionally specifies, in UTC, the start of the time range to look up + public keys for CloudTrail digest files. If not specified, the current + time is used, and the current public key is returned. + """ + end_time: datetime | None + """ + Optionally specifies, in UTC, the end of the time range to look up + public keys for CloudTrail digest files. If not specified, the current + time is used. + """ + next_token: str | None + """Reserved for future use.""" + @dataclass(kw_only=True) class ListPublicKeysOutput(_SerdeShape): """ @@ -3675,6 +4816,35 @@ class ListQueriesInput(_SerdeShape): `TIMED_OUT`, or `CANCELLED`. """ +class ListQueriesInputDict(TypedDict, total=False): + """Dictionary form of `ListQueriesInput`.""" + + event_data_store: Required[str] + """ + The ARN (or the ID suffix of the ARN) of an event data store on which + queries were run. + """ + next_token: str | None + """A token you can use to get the next page of results.""" + max_results: int | None + """The maximum number of queries to show on a page.""" + start_time: datetime | None + """ + Use with `EndTime` to bound a `ListQueries` request, and limit its + results to only those queries run within a specified time period. + """ + end_time: datetime | None + """ + Use with `StartTime` to bound a `ListQueries` request, and limit its + results to only those queries run within a specified time period. + """ + query_status: str | None + """ + The status of queries that you want to return in results. Valid values + for `QueryStatus` include `QUEUED`, `RUNNING`, `FINISHED`, `FAILED`, + `TIMED_OUT`, or `CANCELLED`. + """ + @dataclass(kw_only=True) class ListQueriesOutput(_SerdeShape): """Dataclass for ListQueriesOutput structure.""" @@ -3718,6 +4888,29 @@ class ListTagsInput(_SerdeShape): next_token: str | None = ... """Reserved for future use.""" +class ListTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsInput`.""" + + resource_id_list: Required[Sequence[str]] + """ + Specifies a list of trail, event data store, dashboard, or channel ARNs + whose tags will be listed. The list has a limit of 20 ARNs. + + Example trail ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + + Example event data store ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE` + + Example dashboard ARN format: + `arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash` + + Example channel ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` + """ + next_token: str | None + """Reserved for future use.""" + @dataclass(kw_only=True) class ListTagsOutput(_SerdeShape): """ @@ -3750,6 +4943,18 @@ class ListTrailsInput(_SerdeShape): call with NextToken should include those same parameters. """ +class ListTrailsInputDict(TypedDict, total=False): + """Dictionary form of `ListTrailsInput`.""" + + next_token: str | None + """ + The token to use to get the next page of results after a previous API + call. This token must be passed in with the same parameters that were + specified in the original call. For example, if the original call + specified an AttributeKey of 'Username' with a value of 'root', the + call with NextToken should include those same parameters. + """ + @dataclass(kw_only=True) class ListTrailsOutput(_SerdeShape): """Dataclass for ListTrailsOutput structure.""" @@ -3784,7 +4989,21 @@ class LookupAttribute(_SerdeShape): Specifies a value for the specified `AttributeKey`. The maximum length for the `AttributeValue` is 2000 characters. The - following characters ('`_`', '` `', '`,`', '`\\n`') count as two + following characters ('`_`', '` `', '`,`', '`\\\\n`') count as two + characters towards the 2000 character limit. + """ + +class LookupAttributeDict(TypedDict, total=False): + """Dictionary form of `LookupAttribute`.""" + + attribute_key: Required[str] + """Specifies an attribute on which to filter the events returned.""" + attribute_value: Required[str] + """ + Specifies a value for the specified `AttributeKey`. + + The maximum length for the `AttributeValue` is 2000 characters. The + following characters ('`_`', '` `', '`,`', '`\\\\n`') count as two characters towards the 2000 character limit. """ @@ -3840,6 +5059,47 @@ class LookupEventsInput(_SerdeShape): call with NextToken should include those same parameters. """ +class LookupEventsInputDict(TypedDict, total=False): + """Dictionary form of `LookupEventsInput`.""" + + lookup_attributes: Sequence[LookupAttribute | LookupAttributeDict] | None + """ + Contains a list of lookup attributes. Currently the list can contain + only one item. + """ + start_time: datetime | None + """ + Specifies that only events that occur after or at the specified time are + returned. If the specified start time is after the specified end time, + an error is returned. + """ + end_time: datetime | None + """ + Specifies that only events that occur before or at the specified time + are returned. If the specified end time is before the specified start + time, an error is returned. + """ + event_category: str | None + """ + Specifies the event category. If you do not specify an event category, + events of the category are not returned in the response. For example, if + you do not specify `insight` as the value of `EventCategory`, no + Insights events are returned. + """ + max_results: int | None + """ + The number of events to return. Possible values are 1 through 50. The + default is 50. + """ + next_token: str | None + """ + The token to use to get the next page of results after a previous API + call. This token must be passed in with the same parameters that were + specified in the original call. For example, if the original call + specified an AttributeKey of 'Username' with a value of 'root', the + call with NextToken should include those same parameters. + """ + @dataclass(kw_only=True) class LookupEventsOutput(_SerdeShape): """Contains a response to a LookupEvents action.""" @@ -4047,6 +5307,38 @@ class PutEventConfigurationInput(_SerdeShape): the trail. """ +class PutEventConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutEventConfigurationInput`.""" + + trail_name: str | None + """ + The name of the trail for which you want to update event configuration + settings. + """ + event_data_store: str | None + """ + The Amazon Resource Name (ARN) or ID suffix of the ARN of the event data + store for which event configuration settings are updated. + """ + max_event_size: str | None + """ + The maximum allowed size for events to be stored in the specified event + data store. If you are using context key selectors, MaxEventSize must be + set to Large. + """ + context_key_selectors: Sequence[ContextKeySelector | ContextKeySelectorDict] | None + """ + A list of context key selectors that will be included to provide + enriched event data. + """ + aggregation_configurations: ( + Sequence[AggregationConfiguration | AggregationConfigurationDict] | None + ) + """ + The list of aggregation configurations that you want to configure for + the trail. + """ + @dataclass(kw_only=True) class PutEventConfigurationOutput(_SerdeShape): """Dataclass for PutEventConfigurationOutput structure.""" @@ -4143,34 +5435,143 @@ class PutEventSelectorsInput(_SerdeShape): in the *CloudTrail User Guide*. """ +class PutEventSelectorsInputDict(TypedDict, total=False): + """Dictionary form of `PutEventSelectorsInput`.""" + + trail_name: Required[str] + """ + Specifies the name of the trail or trail ARN. If you specify a trail + name, the string must meet the following requirements: + + - Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), + underscores (_), or dashes (-) + + - Start with a letter or number, and end with a letter or number + + - Be between 3 and 128 characters + + - Have no adjacent periods, underscores or dashes. Names like + `my-_namespace` and `my--namespace` are not valid. + + - Not be in IP address format (for example, 192.168.5.4) + + If you specify a trail ARN, it must be in the following format. + + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + """ + event_selectors: Sequence[EventSelector | EventSelectorDict] | None + """ + Specifies the settings for your event selectors. You can use event + selectors to log management events and data events for the following + resource types: + + - `AWS::DynamoDB::Table` + + - `AWS::Lambda::Function` + + - `AWS::S3::Object` + + You can't use event selectors to log network activity events. + + You can configure up to five event selectors for a trail. You can use + either `EventSelectors` or `AdvancedEventSelectors` in a + `PutEventSelectors` request, but not both. If you apply `EventSelectors` + to a trail, any existing `AdvancedEventSelectors` are overwritten. + """ + advanced_event_selectors: ( + Sequence[AdvancedEventSelector | AdvancedEventSelectorDict] | None + ) + """ + Specifies the settings for advanced event selectors. You can use + advanced event selectors to log management events, data events for all + resource types, and network activity events. + + You can add advanced event selectors, and conditions for your advanced + event selectors, up to a maximum of 500 values for all conditions and + selectors on a trail. You can use either `AdvancedEventSelectors` or + `EventSelectors`, but not both. If you apply `AdvancedEventSelectors` to + a trail, any existing `EventSelectors` are overwritten. For more + information about advanced event selectors, see [Logging data + events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html) + and [Logging network activity + events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html) + in the *CloudTrail User Guide*. + """ + @dataclass(kw_only=True) class PutEventSelectorsOutput(_SerdeShape): """Dataclass for PutEventSelectorsOutput structure.""" trail_arn: str | None = ... """ - Specifies the ARN of the trail that was updated with event selectors. - The following is the format of a trail ARN. + Specifies the ARN of the trail that was updated with event selectors. + The following is the format of a trail ARN. + + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + """ + event_selectors: list[EventSelector] | None = ... + """Specifies the event selectors configured for your trail.""" + advanced_event_selectors: list[AdvancedEventSelector] | None = ... + """Specifies the advanced event selectors configured for your trail.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutInsightSelectorsInput(_SerdeShape): + """Dataclass for PutInsightSelectorsInput structure.""" + + trail_name: str | None = ... + """ + The name of the CloudTrail trail for which you want to change or add + Insights selectors. + + You cannot use this parameter with the `EventDataStore` and + `InsightsDestination` parameters. + """ + insight_selectors: list[InsightSelector] | None = ... + """ + Contains the Insights types you want to log on a specific category of + events on a trail or event data store. `ApiCallRateInsight` and + `ApiErrorRateInsight` are valid Insight types.The EventCategory field + can specify `Management` or `Data` events or both. For event data store, + you can log Insights for management events only. + + The `ApiCallRateInsight` Insights type analyzes write-only management + API calls or read and write data API calls that are aggregated per + minute against a baseline API call volume. + + The `ApiErrorRateInsight` Insights type analyzes management and data API + calls that result in error codes. The error is shown if the API call is + unsuccessful. + """ + event_data_store: str | None = ... + """ + The ARN (or ID suffix of the ARN) of the source event data store for + which you want to change or add Insights selectors. To enable Insights + on an event data store, you must provide both the `EventDataStore` and + `InsightsDestination` parameters. - `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + You cannot use this parameter with the `TrailName` parameter. """ - event_selectors: list[EventSelector] | None = ... - """Specifies the event selectors configured for your trail.""" - advanced_event_selectors: list[AdvancedEventSelector] | None = ... - """Specifies the advanced event selectors configured for your trail.""" - response_metadata: ResponseMetadata = ... + insights_destination: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The ARN (or ID suffix of the ARN) of the destination event data store + that logs Insights events. To enable Insights on an event data store, + you must provide both the `EventDataStore` and `InsightsDestination` + parameters. + + You cannot use this parameter with the `TrailName` parameter. """ -@dataclass(kw_only=True) -class PutInsightSelectorsInput(_SerdeShape): - """Dataclass for PutInsightSelectorsInput structure.""" +class PutInsightSelectorsInputDict(TypedDict, total=False): + """Dictionary form of `PutInsightSelectorsInput`.""" - trail_name: str | None = ... + trail_name: str | None """ The name of the CloudTrail trail for which you want to change or add Insights selectors. @@ -4178,7 +5579,7 @@ class PutInsightSelectorsInput(_SerdeShape): You cannot use this parameter with the `EventDataStore` and `InsightsDestination` parameters. """ - insight_selectors: list[InsightSelector] | None = ... + insight_selectors: Required[Sequence[InsightSelector | InsightSelectorDict]] """ Contains the Insights types you want to log on a specific category of events on a trail or event data store. `ApiCallRateInsight` and @@ -4194,7 +5595,7 @@ class PutInsightSelectorsInput(_SerdeShape): calls that result in error codes. The error is shown if the API call is unsuccessful. """ - event_data_store: str | None = ... + event_data_store: str | None """ The ARN (or ID suffix of the ARN) of the source event data store for which you want to change or add Insights selectors. To enable Insights @@ -4203,7 +5604,7 @@ class PutInsightSelectorsInput(_SerdeShape): You cannot use this parameter with the `TrailName` parameter. """ - insights_destination: str | None = ... + insights_destination: str | None """ The ARN (or ID suffix of the ARN) of the destination event data store that logs Insights events. To enable Insights on an event data store, @@ -4274,6 +5675,34 @@ class PutResourcePolicyInput(_SerdeShape): in the *CloudTrail User Guide*. """ +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the CloudTrail event data store, + dashboard, or channel attached to the resource-based policy. + + Example event data store ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE` + + Example dashboard ARN format: + `arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash` + + Example channel ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` + """ + resource_policy: Required[str] + """ + A JSON-formatted string for an Amazon Web Services resource-based + policy. + + For example resource-based policies, see [CloudTrail resource-based + policy + examples](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html) + in the *CloudTrail User Guide*. + """ + @dataclass(kw_only=True) class PutResourcePolicyOutput(_SerdeShape): """Dataclass for PutResourcePolicyOutput structure.""" @@ -4413,6 +5842,23 @@ class RefreshSchedule(_SerdeShape): minutes; default is 00:00. """ +class RefreshScheduleDict(TypedDict, total=False): + """Dictionary form of `RefreshSchedule`.""" + + frequency: RefreshScheduleFrequency | RefreshScheduleFrequencyDict | None + """The frequency at which you want the dashboard refreshed.""" + status: str | None + """ + Specifies whether the refresh schedule is enabled. Set the value to + `ENABLED` to enable the refresh schedule, or to `DISABLED` to turn off + the refresh schedule. + """ + time_of_day: str | None + """ + The time of day in UTC to run the schedule; for hourly only refer to + minutes; default is 00:00. + """ + @dataclass(kw_only=True) class RefreshScheduleFrequency(_SerdeShape): """ @@ -4443,6 +5889,30 @@ class RefreshScheduleFrequency(_SerdeShape): For the Highlights dashboard, the `Value` must be `6`. """ +class RefreshScheduleFrequencyDict(TypedDict, total=False): + """Dictionary form of `RefreshScheduleFrequency`.""" + + unit: str | None + """ + The unit to use for the refresh. + + For custom dashboards, the unit can be `HOURS` or `DAYS`. + + For the Highlights dashboard, the `Unit` must be `HOURS`. + """ + value: int | None + """ + The value for the refresh schedule. + + For custom dashboards, the following values are valid when the unit is + `HOURS`: `1`, `6`, `12`, `24` + + For custom dashboards, the only valid value when the unit is `DAYS` is + `1`. + + For the Highlights dashboard, the `Value` must be `6`. + """ + class RefreshScheduleFrequencyUnit(UnknownEnumMixin, StrEnum): HOURS = "HOURS" DAYS = "DAYS" @@ -4464,6 +5934,15 @@ class RegisterOrganizationDelegatedAdminInput(_SerdeShape): delegated administrator. """ +class RegisterOrganizationDelegatedAdminInputDict(TypedDict, total=False): + """Dictionary form of `RegisterOrganizationDelegatedAdminInput`.""" + + member_account_id: Required[str] + """ + An organization member account ID that you want to designate as a + delegated administrator. + """ + @dataclass(kw_only=True) class RegisterOrganizationDelegatedAdminOutput(_SerdeShape): """ @@ -4506,6 +5985,29 @@ class RemoveTagsInput(_SerdeShape): tags_list: list[Tag] | None = ... """Specifies a list of tags to be removed.""" +class RemoveTagsInputDict(TypedDict, total=False): + """Dictionary form of `RemoveTagsInput`.""" + + resource_id: Required[str] + """ + Specifies the ARN of the trail, event data store, dashboard, or channel + from which tags should be removed. + + Example trail ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + + Example event data store ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE` + + Example dashboard ARN format: + `arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash` + + Example channel ARN format: + `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890` + """ + tags_list: Required[Sequence[Tag | TagDict]] + """Specifies a list of tags to be removed.""" + @dataclass(kw_only=True) class RemoveTagsOutput(_SerdeShape): """ @@ -4548,6 +6050,32 @@ class RequestWidget(_SerdeShape): in the *CloudTrail User Guide*. """ +class RequestWidgetDict(TypedDict, total=False): + """Dictionary form of `RequestWidget`.""" + + query_statement: Required[str] + """ + The query statement for the widget. For custom dashboard widgets, you + can query across multiple event data stores as long as all event data + stores exist in your account. + + Note: + When a query uses `?` with `eventTime`, `?` must be surrounded by single + quotes as follows: `'?'`. + """ + query_parameters: Sequence[str] | None + """ + The optional query parameters. The following query parameters are valid: + `$StartTime$`, `$EndTime$`, and `$Period$`. + """ + view_properties: Required[Mapping[str, str]] + """ + The view properties for the widget. For more information about view + properties, see [View properties for + widgets](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-widget-properties.html) + in the *CloudTrail User Guide*. + """ + @dataclass(kw_only=True) class Resource(_SerdeShape): """Specifies the type and name of a resource referenced by an event.""" @@ -4670,6 +6198,15 @@ class RestoreEventDataStoreInput(_SerdeShape): want to restore. """ +class RestoreEventDataStoreInputDict(TypedDict, total=False): + """Dictionary form of `RestoreEventDataStoreInput`.""" + + event_data_store: Required[str] + """ + The ARN (or the ID suffix of the ARN) of the event data store that you + want to restore. + """ + @dataclass(kw_only=True) class RestoreEventDataStoreOutput(_SerdeShape): """Dataclass for RestoreEventDataStoreOutput structure.""" @@ -4749,6 +6286,16 @@ class S3ImportSource(_SerdeShape): s3_bucket_access_role_arn: str """The IAM ARN role used to access the source S3 bucket.""" +class S3ImportSourceDict(TypedDict, total=False): + """Dictionary form of `S3ImportSource`.""" + + s3_location_uri: Required[str] + """The URI for the source S3 bucket.""" + s3_bucket_region: Required[str] + """The Region associated with the source S3 bucket.""" + s3_bucket_access_role_arn: Required[str] + """The IAM ARN role used to access the source S3 bucket.""" + @dataclass(kw_only=True) class SearchSampleQueriesInput(_SerdeShape): """Dataclass for SearchSampleQueriesInput structure.""" @@ -4769,6 +6316,25 @@ class SearchSampleQueriesInput(_SerdeShape): constraint is in characters, not words. """ +class SearchSampleQueriesInputDict(TypedDict, total=False): + """Dictionary form of `SearchSampleQueriesInput`.""" + + search_phrase: Required[str] + """ + The natural language phrase to use for the semantic search. The phrase + must be in English. The length constraint is in characters, not words. + """ + max_results: int | None + """ + The maximum number of results to return on a single page. The default + value is 10. + """ + next_token: str | None + """ + A token you can use to get the next page of results. The length + constraint is in characters, not words. + """ + @dataclass(kw_only=True) class SearchSampleQueriesOutput(_SerdeShape): """Dataclass for SearchSampleQueriesOutput structure.""" @@ -4855,6 +6421,23 @@ class StartDashboardRefreshInput(_SerdeShape): `$EventDataStoreId$` query parameter is required. """ +class StartDashboardRefreshInputDict(TypedDict, total=False): + """Dictionary form of `StartDashboardRefreshInput`.""" + + dashboard_id: Required[str] + """The name or ARN of the dashboard.""" + query_parameter_values: Mapping[str, str] | None + """ + The query parameter values for the dashboard + + For custom dashboards, the following query parameters are valid: + `$StartTime$`, `$EndTime$`, and `$Period$`. + + For managed dashboards, the following query parameters are valid: + `$StartTime$`, `$EndTime$`, `$Period$`, and `$EventDataStoreId$`. The + `$EventDataStoreId$` query parameter is required. + """ + @dataclass(kw_only=True) class StartDashboardRefreshOutput(_SerdeShape): """Dataclass for StartDashboardRefreshOutput structure.""" @@ -4879,6 +6462,15 @@ class StartEventDataStoreIngestionInput(_SerdeShape): want to start ingestion. """ +class StartEventDataStoreIngestionInputDict(TypedDict, total=False): + """Dictionary form of `StartEventDataStoreIngestionInput`.""" + + event_data_store: Required[str] + """ + The ARN (or ID suffix of the ARN) of the event data store for which you + want to start ingestion. + """ + @dataclass(kw_only=True) class StartEventDataStoreIngestionOutput(_SerdeShape): """Dataclass for StartEventDataStoreIngestionOutput structure.""" @@ -4929,6 +6521,43 @@ class StartImportInput(_SerdeShape): import. """ +class StartImportInputDict(TypedDict, total=False): + """Dictionary form of `StartImportInput`.""" + + destinations: Sequence[str] | None + """ + The ARN of the destination event data store. Use this parameter for a + new import. + """ + import_source: ImportSource | ImportSourceDict | None + """ + The source S3 bucket for the import. Use this parameter for a new + import. + """ + start_event_time: datetime | None + """ + Use with `EndEventTime` to bound a `StartImport` request, and limit + imported trail events to only those events logged within a specified + time period. When you specify a time range, CloudTrail checks the prefix + and log file names to verify the names contain a date between the + specified `StartEventTime` and `EndEventTime` before attempting to + import events. + """ + end_event_time: datetime | None + """ + Use with `StartEventTime` to bound a `StartImport` request, and limit + imported trail events to only those events logged within a specified + time period. When you specify a time range, CloudTrail checks the prefix + and log file names to verify the names contain a date between the + specified `StartEventTime` and `EndEventTime` before attempting to + import events. + """ + import_id: str | None + """ + The ID of the import. Use this parameter when you are retrying an + import. + """ + @dataclass(kw_only=True) class StartImportOutput(_SerdeShape): """Dataclass for StartImportOutput structure.""" @@ -4985,6 +6614,18 @@ class StartLoggingInput(_SerdeShape): `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` """ +class StartLoggingInputDict(TypedDict, total=False): + """Dictionary form of `StartLoggingInput`.""" + + name: Required[str] + """ + Specifies the name or the CloudTrail ARN of the trail for which + CloudTrail logs Amazon Web Services API calls. The following is the + format of a trail ARN. + + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + """ + @dataclass(kw_only=True) class StartLoggingOutput(_SerdeShape): """ @@ -5015,6 +6656,20 @@ class StartQueryInput(_SerdeShape): event_data_store_owner_account_id: str | None = ... """The account ID of the event data store owner.""" +class StartQueryInputDict(TypedDict, total=False): + """Dictionary form of `StartQueryInput`.""" + + query_statement: str | None + """The SQL code of your query.""" + delivery_s3_uri: str | None + """The URI for the S3 bucket where CloudTrail delivers the query results.""" + query_alias: str | None + """The alias that identifies a query template.""" + query_parameters: Sequence[str] | None + """The query parameters for the specified `QueryAlias`.""" + event_data_store_owner_account_id: str | None + """The account ID of the event data store owner.""" + @dataclass(kw_only=True) class StartQueryOutput(_SerdeShape): """Dataclass for StartQueryOutput structure.""" @@ -5041,6 +6696,15 @@ class StopEventDataStoreIngestionInput(_SerdeShape): want to stop ingestion. """ +class StopEventDataStoreIngestionInputDict(TypedDict, total=False): + """Dictionary form of `StopEventDataStoreIngestionInput`.""" + + event_data_store: Required[str] + """ + The ARN (or ID suffix of the ARN) of the event data store for which you + want to stop ingestion. + """ + @dataclass(kw_only=True) class StopEventDataStoreIngestionOutput(_SerdeShape): """Dataclass for StopEventDataStoreIngestionOutput structure.""" @@ -5060,6 +6724,12 @@ class StopImportInput(_SerdeShape): import_id: str | None = ... """The ID of the import.""" +class StopImportInputDict(TypedDict, total=False): + """Dictionary form of `StopImportInput`.""" + + import_id: Required[str] + """The ID of the import.""" + @dataclass(kw_only=True) class StopImportOutput(_SerdeShape): """Dataclass for StopImportOutput structure.""" @@ -5114,6 +6784,18 @@ class StopLoggingInput(_SerdeShape): `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` """ +class StopLoggingInputDict(TypedDict, total=False): + """Dictionary form of `StopLoggingInput`.""" + + name: Required[str] + """ + Specifies the name or the CloudTrail ARN of the trail for which + CloudTrail will stop logging Amazon Web Services API calls. The + following is the format of a trail ARN. + + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + """ + @dataclass(kw_only=True) class StopLoggingOutput(_SerdeShape): """ @@ -5148,6 +6830,21 @@ class Tag(_SerdeShape): 256 Unicode characters. """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """ + The key in a key-value pair. The key must be must be no longer than 128 + Unicode characters. The key must be unique for the resource to which it + applies. + """ + value: str | None + """ + The value in a key-value pair of a tag. The value must be no longer than + 256 Unicode characters. + """ + @dataclass(kw_only=True) class TagsLimitExceededException(ServiceError, _SerdeShape): """ diff --git a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/models_1.pyi b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/models_1.pyi index 49aa72aa9..4362f1920 100644 --- a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/models_1.pyi +++ b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/models_1.pyi @@ -1,17 +1,23 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin from ..models import ( AdvancedEventSelector, + AdvancedEventSelectorDict, Destination, + DestinationDict, RefreshSchedule, + RefreshScheduleDict, RequestWidget, + RequestWidgetDict, ServiceError, _SerdeShape, ) @@ -99,6 +105,19 @@ class UpdateChannelInput(_SerdeShape): name: str | None = ... """Changes the name of the channel.""" +class UpdateChannelInputDict(TypedDict, total=False): + """Dictionary form of `UpdateChannelInput`.""" + + channel: Required[str] + """The ARN or ID (the ARN suffix) of the channel that you want to update.""" + destinations: Sequence[Destination | DestinationDict] | None + """ + The ARNs of event data stores that you want to log events arriving + through the channel. + """ + name: str | None + """Changes the name of the channel.""" + @dataclass(kw_only=True) class UpdateChannelOutput(_SerdeShape): """Dataclass for UpdateChannelOutput structure.""" @@ -146,6 +165,32 @@ class UpdateDashboardInput(_SerdeShape): until termination protection is disabled. """ +class UpdateDashboardInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDashboardInput`.""" + + dashboard_id: Required[str] + """The name or ARN of the dashboard.""" + widgets: Sequence[RequestWidget | RequestWidgetDict] | None + """ + An array of widgets for the dashboard. A custom dashboard can have a + maximum of 10 widgets. + + To add new widgets, pass in an array that includes the existing widgets + along with any new widgets. Run the `GetDashboard` operation to get the + list of widgets for the dashboard. + + To remove widgets, pass in an array that includes the existing widgets + minus the widgets you want removed. + """ + refresh_schedule: RefreshSchedule | RefreshScheduleDict | None + """The refresh schedule configuration for the dashboard.""" + termination_protection_enabled: bool | None + """ + Specifies whether termination protection is enabled for the dashboard. + If termination protection is enabled, you cannot delete the dashboard + until termination protection is disabled. + """ + @dataclass(kw_only=True) class UpdateDashboardOutput(_SerdeShape): """Dataclass for UpdateDashboardOutput structure.""" @@ -295,6 +340,128 @@ class UpdateEventDataStoreInput(_SerdeShape): costs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html). """ +class UpdateEventDataStoreInputDict(TypedDict, total=False): + """Dictionary form of `UpdateEventDataStoreInput`.""" + + event_data_store: Required[str] + """ + The ARN (or the ID suffix of the ARN) of the event data store that you + want to update. + """ + name: str | None + """The event data store name.""" + advanced_event_selectors: ( + Sequence[AdvancedEventSelector | AdvancedEventSelectorDict] | None + ) + """ + The advanced event selectors used to select events for the event data + store. You can configure up to five advanced event selectors for each + event data store. + """ + multi_region_enabled: bool | None + """ + Specifies whether an event data store collects events from all Regions, + or only from the Region in which it was created. + """ + organization_enabled: bool | None + """ + Specifies whether an event data store collects events logged for an + organization in Organizations. + + Note: + Only the management account for the organization can convert an + organization event data store to a non-organization event data store, or + convert a non-organization event data store to an organization event + data store. + """ + retention_period: int | None + """ + The retention period of the event data store, in days. If `BillingMode` + is set to `EXTENDABLE_RETENTION_PRICING`, you can set a retention period + of up to 3653 days, the equivalent of 10 years. If `BillingMode` is set + to `FIXED_RETENTION_PRICING`, you can set a retention period of up to + 2557 days, the equivalent of seven years. + + CloudTrail Lake determines whether to retain an event by checking if the + `eventTime` of the event is within the specified retention period. For + example, if you set a retention period of 90 days, CloudTrail will + remove events when the `eventTime` is older than 90 days. + + Note: + If you decrease the retention period of an event data store, CloudTrail + will remove any events with an `eventTime` older than the new retention + period. For example, if the previous retention period was 365 days and + you decrease it to 100 days, CloudTrail will remove events with an + `eventTime` older than 100 days. + """ + termination_protection_enabled: bool | None + """ + Indicates that termination protection is enabled and the event data + store cannot be automatically deleted. + """ + kms_key_id: str | None + """ + Specifies the KMS key ID to use to encrypt the events delivered by + CloudTrail. The value can be an alias name prefixed by `alias/`, a fully + specified ARN to an alias, a fully specified ARN to a key, or a globally + unique identifier. + + Warning: + Disabling or deleting the KMS key, or removing CloudTrail permissions on + the key, prevents CloudTrail from logging events to the event data + store, and prevents users from querying the data in the event data store + that was encrypted with the key. After you associate an event data store + with a KMS key, the KMS key cannot be removed or changed. Before you + disable or delete a KMS key that you are using with an event data store, + delete or back up your event data store. + + CloudTrail also supports KMS multi-Region keys. For more information + about multi-Region keys, see [Using multi-Region + keys](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. + + Examples: + + - `alias/MyAliasName` + + - `arn:aws:kms:us-east-2:123456789012:alias/MyAliasName` + + - `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012` + + - `12345678-1234-1234-1234-123456789012` + """ + billing_mode: str | None + """ + Note: + You can't change the billing mode from `EXTENDABLE_RETENTION_PRICING` + to `FIXED_RETENTION_PRICING`. If `BillingMode` is set to + `EXTENDABLE_RETENTION_PRICING` and you want to use + `FIXED_RETENTION_PRICING` instead, you'll need to stop ingestion on the + event data store and create a new event data store that uses + `FIXED_RETENTION_PRICING`. + + The billing mode for the event data store determines the cost for + ingesting events and the default and maximum retention period for the + event data store. + + The following are the possible values: + + - `EXTENDABLE_RETENTION_PRICING` - This billing mode is generally + recommended if you want a flexible retention period of up to 3653 days + (about 10 years). The default retention period for this billing mode + is 366 days. + + - `FIXED_RETENTION_PRICING` - This billing mode is recommended if you + expect to ingest more than 25 TB of event data per month and need a + retention period of up to 2557 days (about 7 years). The default + retention period for this billing mode is 2557 days. + + For more information about CloudTrail pricing, see [CloudTrail + Pricing](http://aws.amazon.com/cloudtrail/pricing/) and [Managing + CloudTrail Lake + costs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html). + """ + @dataclass(kw_only=True) class UpdateEventDataStoreOutput(_SerdeShape): """Dataclass for UpdateEventDataStoreOutput structure.""" @@ -502,6 +669,144 @@ class UpdateTrailInput(_SerdeShape): including Amazon S3 and CloudWatch Logs. The default value is `true`. """ +class UpdateTrailInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTrailInput`.""" + + name: Required[str] + """ + Specifies the name of the trail or trail ARN. If `Name` is a trail name, + the string must meet the following requirements: + + - Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), + underscores (_), or dashes (-) + + - Start with a letter or number, and end with a letter or number + + - Be between 3 and 128 characters + + - Have no adjacent periods, underscores or dashes. Names like + `my-_namespace` and `my--namespace` are not valid. + + - Not be in IP address format (for example, 192.168.5.4) + + If `Name` is a trail ARN, it must be in the following format. + + `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail` + """ + s3_bucket_name: str | None + """ + Specifies the name of the Amazon S3 bucket designated for publishing log + files. See [Amazon S3 Bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html). + """ + s3_key_prefix: str | None + """ + Specifies the Amazon S3 key prefix that comes after the name of the + bucket you have designated for log file delivery. For more information, + see [Finding Your CloudTrail Log + Files](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/get-and-view-cloudtrail-log-files.html#cloudtrail-find-log-files). + The maximum length is 200 characters. + """ + sns_topic_name: str | None + """ + Specifies the name or ARN of the Amazon SNS topic defined for + notification of log file delivery. The maximum length is 256 characters. + """ + include_global_service_events: bool | None + """ + Specifies whether the trail is publishing events from global services + such as IAM to the log files. Setting this value to `true` only delivers + global service events to the trail if the trail is multi-Region or if + the trail's home Region is the partition leader Region (for example, + us-east-1). + """ + is_multi_region_trail: bool | None + """ + Specifies whether the trail applies only to the current Region or to all + Regions. The default is false. If the trail exists only in the current + Region and this value is set to true, shadow trails (replications of the + trail) will be created in the other Regions. If the trail exists in all + Regions and this value is set to false, the trail will remain in the + Region where it was created, and its shadow trails in other Regions will + be deleted. As a best practice, consider using trails that log events in + all Regions. + """ + enable_log_file_validation: bool | None + """ + Specifies whether log file validation is enabled. The default is false. + + Note: + When you disable log file integrity validation, the chain of digest + files is broken after one hour. CloudTrail does not create digest files + for log files that were delivered during a period in which log file + integrity validation was disabled. For example, if you enable log file + integrity validation at noon on January 1, disable it at noon on January + 2, and re-enable it at noon on January 10, digest files will not be + created for the log files delivered from noon on January 2 to noon on + January 10. The same applies whenever you stop CloudTrail logging or + delete a trail. + """ + cloud_watch_logs_log_group_arn: str | None + """ + Specifies a log group name using an Amazon Resource Name (ARN), a unique + identifier that represents the log group to which CloudTrail logs are + delivered. You must use a log group that exists in your account. + + Not required unless you specify `CloudWatchLogsRoleArn`. + """ + cloud_watch_logs_role_arn: str | None + """ + Specifies the role for the CloudWatch Logs endpoint to assume to write + to a user's log group. You must use a role that exists in your account. + """ + kms_key_id: str | None + """ + Specifies the KMS key ID to use to encrypt the logs and digest files + delivered by CloudTrail. The value can be an alias name prefixed by + \"alias/\", a fully specified ARN to an alias, a fully specified ARN to + a key, or a globally unique identifier. + + CloudTrail also supports KMS multi-Region keys. For more information + about multi-Region keys, see [Using multi-Region + keys](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. + + Examples: + + - alias/MyAliasName + + - arn:aws:kms:us-east-2:123456789012:alias/MyAliasName + + - arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 + + - 12345678-1234-1234-1234-123456789012 + """ + is_organization_trail: bool | None + """ + Specifies whether the trail is applied to all accounts in an + organization in Organizations, or only for the current Amazon Web + Services account. The default is false, and cannot be true unless the + call is made on behalf of an Amazon Web Services account that is the + management account for an organization in Organizations. If the trail is + not an organization trail and this is set to `true`, the trail will be + created in all Amazon Web Services accounts that belong to the + organization. If the trail is an organization trail and this is set to + `false`, the trail will remain in the current Amazon Web Services + account but be deleted from all member accounts in the organization. + + Note: + Only the management account for the organization can convert an + organization trail to a non-organization trail, or convert a + non-organization trail to an organization trail. + """ + recursive_logging: bool | None + """ + Specifies whether recursive logging is enabled for the trail. If you set + `RecursiveLogging` to `false`, CloudTrail suppresses events generated by + CloudTrail when it delivers log files to your trail's destinations, + including Amazon S3 and CloudWatch Logs. The default value is `true`. + """ + @dataclass(kw_only=True) class UpdateTrailOutput(_SerdeShape): """ diff --git a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/schemas.py b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/schemas.py index 84fdac361..eb02d6850 100644 --- a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/schemas.py +++ b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/_private/schemas.py @@ -469,7 +469,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/aio/client.py b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/aio/client.py index 3eb6377da..f80e0ade3 100644 --- a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/aio/client.py +++ b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,125 +20,65 @@ if TYPE_CHECKING: from ..models import ( - AddTagsInput, AddTagsOutput, - CancelQueryInput, CancelQueryOutput, - CreateChannelInput, CreateChannelOutput, - CreateDashboardInput, CreateDashboardOutput, - CreateEventDataStoreInput, CreateEventDataStoreOutput, - CreateTrailInput, CreateTrailOutput, - DeleteChannelInput, DeleteChannelOutput, - DeleteDashboardInput, DeleteDashboardOutput, - DeleteEventDataStoreInput, DeleteEventDataStoreOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteTrailInput, DeleteTrailOutput, - DeregisterOrganizationDelegatedAdminInput, DeregisterOrganizationDelegatedAdminOutput, - DescribeQueryInput, DescribeQueryOutput, - DescribeTrailsInput, DescribeTrailsOutput, - DisableFederationInput, DisableFederationOutput, - EnableFederationInput, EnableFederationOutput, - GenerateQueryInput, GenerateQueryOutput, - GetChannelInput, GetChannelOutput, - GetDashboardInput, GetDashboardOutput, - GetEventConfigurationInput, GetEventConfigurationOutput, - GetEventDataStoreInput, GetEventDataStoreOutput, - GetEventSelectorsInput, GetEventSelectorsOutput, - GetImportInput, GetImportOutput, - GetInsightSelectorsInput, GetInsightSelectorsOutput, - GetQueryResultsInput, GetQueryResultsOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetTrailInput, GetTrailOutput, - GetTrailStatusInput, GetTrailStatusOutput, - ListChannelsInput, ListChannelsOutput, - ListDashboardsInput, ListDashboardsOutput, - ListEventDataStoresInput, ListEventDataStoresOutput, - ListImportFailuresInput, ListImportFailuresOutput, - ListImportsInput, ListImportsOutput, - ListInsightsDataInput, ListInsightsDataOutput, - ListInsightsMetricDataInput, ListInsightsMetricDataOutput, - ListPublicKeysInput, ListPublicKeysOutput, - ListQueriesInput, ListQueriesOutput, - ListTagsInput, ListTagsOutput, - ListTrailsInput, ListTrailsOutput, - LookupEventsInput, LookupEventsOutput, - PutEventConfigurationInput, PutEventConfigurationOutput, - PutEventSelectorsInput, PutEventSelectorsOutput, - PutInsightSelectorsInput, PutInsightSelectorsOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - RegisterOrganizationDelegatedAdminInput, RegisterOrganizationDelegatedAdminOutput, - RemoveTagsInput, RemoveTagsOutput, - RestoreEventDataStoreInput, RestoreEventDataStoreOutput, - SearchSampleQueriesInput, SearchSampleQueriesOutput, - StartDashboardRefreshInput, StartDashboardRefreshOutput, - StartEventDataStoreIngestionInput, StartEventDataStoreIngestionOutput, - StartImportInput, StartImportOutput, - StartLoggingInput, StartLoggingOutput, - StartQueryInput, StartQueryOutput, - StopEventDataStoreIngestionInput, StopEventDataStoreIngestionOutput, - StopImportInput, StopImportOutput, - StopLoggingInput, StopLoggingOutput, - UpdateChannelInput, UpdateChannelOutput, - UpdateDashboardInput, UpdateDashboardOutput, - UpdateEventDataStoreInput, UpdateEventDataStoreOutput, - UpdateTrailInput, UpdateTrailOutput, ) @@ -175,10 +115,24 @@ class AsyncCloudTrailClient(AsyncClient[AsyncCloudTrailConfig]): Services API call listed in the log files. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def add_tags( - self, input: AddTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.AddTagsInput | _models.AddTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddTagsOutput: ... + + @_overload + async def add_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddTagsInputDict], ) -> AddTagsOutput: """ Adds one or more tags to a trail, event data store, dashboard, or @@ -192,8 +146,6 @@ async def add_tags( its home Region). Args: - input: - An instance of `AddTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -203,10 +155,33 @@ async def add_tags( Returns: An instance of `AddTagsOutput`. """ - return await self._invoke(input, _models.ADD_TAGS, [], plugins) + async def add_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddTagsOutput: + return await self._invoke( + self._select_input(_models.ADD_TAGS, args, kwargs), + _models.ADD_TAGS, + [], + plugins, + ) + + @_overload async def cancel_query( - self, input: CancelQueryInput, plugins: list[Plugin] | None = None + self, + request: _models.CancelQueryInput | _models.CancelQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelQueryOutput: ... + + @_overload + async def cancel_query( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelQueryInputDict], ) -> CancelQueryOutput: """ Warning: @@ -223,8 +198,6 @@ async def cancel_query( might show as `CANCELLED` even if the operation is not yet finished. Args: - input: - An instance of `CancelQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -234,10 +207,33 @@ async def cancel_query( Returns: An instance of `CancelQueryOutput`. """ - return await self._invoke(input, _models.CANCEL_QUERY, [], plugins) + async def cancel_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelQueryOutput: + return await self._invoke( + self._select_input(_models.CANCEL_QUERY, args, kwargs), + _models.CANCEL_QUERY, + [], + plugins, + ) + + @_overload + async def create_channel( + self, + request: _models.CreateChannelInput | _models.CreateChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateChannelOutput: ... + + @_overload async def create_channel( - self, input: CreateChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateChannelInputDict], ) -> CreateChannelOutput: """ Warning: @@ -252,8 +248,6 @@ async def create_channel( data store can log events from the partner or source that you specify. Args: - input: - An instance of `CreateChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -263,10 +257,33 @@ async def create_channel( Returns: An instance of `CreateChannelOutput`. """ - return await self._invoke(input, _models.CREATE_CHANNEL, [], plugins) + async def create_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateChannelOutput: + return await self._invoke( + self._select_input(_models.CREATE_CHANNEL, args, kwargs), + _models.CREATE_CHANNEL, + [], + plugins, + ) + + @_overload + async def create_dashboard( + self, + request: _models.CreateDashboardInput | _models.CreateDashboardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDashboardOutput: ... + + @_overload async def create_dashboard( - self, input: CreateDashboardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDashboardInputDict], ) -> CreateDashboardOutput: """ Warning: @@ -311,8 +328,6 @@ async def create_dashboard( in the *CloudTrail User Guide*. Args: - input: - An instance of `CreateDashboardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -322,10 +337,34 @@ async def create_dashboard( Returns: An instance of `CreateDashboardOutput`. """ - return await self._invoke(input, _models.CREATE_DASHBOARD, [], plugins) + async def create_dashboard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDashboardOutput: + return await self._invoke( + self._select_input(_models.CREATE_DASHBOARD, args, kwargs), + _models.CREATE_DASHBOARD, + [], + plugins, + ) + + @_overload async def create_event_data_store( - self, input: CreateEventDataStoreInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateEventDataStoreInput + | _models.CreateEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEventDataStoreOutput: ... + + @_overload + async def create_event_data_store( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEventDataStoreInputDict], ) -> CreateEventDataStoreOutput: """ Warning: @@ -338,8 +377,6 @@ async def create_event_data_store( Creates a new event data store. Args: - input: - An instance of `CreateEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -349,18 +386,39 @@ async def create_event_data_store( Returns: An instance of `CreateEventDataStoreOutput`. """ - return await self._invoke(input, _models.CREATE_EVENT_DATA_STORE, [], plugins) + async def create_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEventDataStoreOutput: + return await self._invoke( + self._select_input(_models.CREATE_EVENT_DATA_STORE, args, kwargs), + _models.CREATE_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload async def create_trail( - self, input: CreateTrailInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateTrailInput | _models.CreateTrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrailOutput: ... + + @_overload + async def create_trail( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrailInputDict], ) -> CreateTrailOutput: """ Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. Args: - input: - An instance of `CreateTrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -370,10 +428,33 @@ async def create_trail( Returns: An instance of `CreateTrailOutput`. """ - return await self._invoke(input, _models.CREATE_TRAIL, [], plugins) + async def create_trail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrailOutput: + return await self._invoke( + self._select_input(_models.CREATE_TRAIL, args, kwargs), + _models.CREATE_TRAIL, + [], + plugins, + ) + + @_overload + async def delete_channel( + self, + request: _models.DeleteChannelInput | _models.DeleteChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChannelOutput: ... + + @_overload async def delete_channel( - self, input: DeleteChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChannelInputDict], ) -> DeleteChannelOutput: """ Warning: @@ -386,8 +467,6 @@ async def delete_channel( Deletes a channel. Args: - input: - An instance of `DeleteChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -397,10 +476,33 @@ async def delete_channel( Returns: An instance of `DeleteChannelOutput`. """ - return await self._invoke(input, _models.DELETE_CHANNEL, [], plugins) + async def delete_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChannelOutput: + return await self._invoke( + self._select_input(_models.DELETE_CHANNEL, args, kwargs), + _models.DELETE_CHANNEL, + [], + plugins, + ) + + @_overload + async def delete_dashboard( + self, + request: _models.DeleteDashboardInput | _models.DeleteDashboardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDashboardOutput: ... + + @_overload async def delete_dashboard( - self, input: DeleteDashboardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDashboardInputDict], ) -> DeleteDashboardOutput: """ Warning: @@ -414,8 +516,6 @@ async def delete_dashboard( termination protection enabled. Args: - input: - An instance of `DeleteDashboardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -425,10 +525,34 @@ async def delete_dashboard( Returns: An instance of `DeleteDashboardOutput`. """ - return await self._invoke(input, _models.DELETE_DASHBOARD, [], plugins) + async def delete_dashboard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDashboardOutput: + return await self._invoke( + self._select_input(_models.DELETE_DASHBOARD, args, kwargs), + _models.DELETE_DASHBOARD, + [], + plugins, + ) + + @_overload + async def delete_event_data_store( + self, + request: _models.DeleteEventDataStoreInput + | _models.DeleteEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEventDataStoreOutput: ... + + @_overload async def delete_event_data_store( - self, input: DeleteEventDataStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEventDataStoreInputDict], ) -> DeleteEventDataStoreOutput: """ Warning: @@ -453,8 +577,6 @@ async def delete_event_data_store( data store in the `PENDING_DELETION` state does not incur costs. Args: - input: - An instance of `DeleteEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -464,18 +586,40 @@ async def delete_event_data_store( Returns: An instance of `DeleteEventDataStoreOutput`. """ - return await self._invoke(input, _models.DELETE_EVENT_DATA_STORE, [], plugins) + async def delete_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEventDataStoreOutput: + return await self._invoke( + self._select_input(_models.DELETE_EVENT_DATA_STORE, args, kwargs), + _models.DELETE_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload + async def delete_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource-based policy attached to the CloudTrail event data store, dashboard, or channel. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -485,10 +629,33 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload async def delete_trail( - self, input: DeleteTrailInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteTrailInput | _models.DeleteTrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrailOutput: ... + + @_overload + async def delete_trail( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrailInputDict], ) -> DeleteTrailOutput: """ Deletes a trail. This operation must be called from the Region in which @@ -512,8 +679,6 @@ async def delete_trail( . Args: - input: - An instance of `DeleteTrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -523,20 +688,40 @@ async def delete_trail( Returns: An instance of `DeleteTrailOutput`. """ - return await self._invoke(input, _models.DELETE_TRAIL, [], plugins) + async def delete_trail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrailOutput: + return await self._invoke( + self._select_input(_models.DELETE_TRAIL, args, kwargs), + _models.DELETE_TRAIL, + [], + plugins, + ) + + @_overload async def deregister_organization_delegated_admin( self, - input: DeregisterOrganizationDelegatedAdminInput, + request: _models.DeregisterOrganizationDelegatedAdminInput + | _models.DeregisterOrganizationDelegatedAdminInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeregisterOrganizationDelegatedAdminOutput: ... + + @_overload + async def deregister_organization_delegated_admin( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterOrganizationDelegatedAdminInputDict], ) -> DeregisterOrganizationDelegatedAdminOutput: """ Removes CloudTrail delegated administrator permissions from a member account in an organization. Args: - input: - An instance of `DeregisterOrganizationDelegatedAdminInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -546,12 +731,35 @@ async def deregister_organization_delegated_admin( Returns: An instance of `DeregisterOrganizationDelegatedAdminOutput`. """ + + async def deregister_organization_delegated_admin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterOrganizationDelegatedAdminOutput: return await self._invoke( - input, _models.DEREGISTER_ORGANIZATION_DELEGATED_ADMIN, [], plugins + self._select_input( + _models.DEREGISTER_ORGANIZATION_DELEGATED_ADMIN, args, kwargs + ), + _models.DEREGISTER_ORGANIZATION_DELEGATED_ADMIN, + [], + plugins, ) + @_overload + async def describe_query( + self, + request: _models.DescribeQueryInput | _models.DescribeQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeQueryOutput: ... + + @_overload async def describe_query( - self, input: DescribeQueryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeQueryInputDict], ) -> DescribeQueryOutput: """ Warning: @@ -572,8 +780,6 @@ async def describe_query( the query results of a dashboard query for the specified `RefreshId`. Args: - input: - An instance of `DescribeQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -583,18 +789,39 @@ async def describe_query( Returns: An instance of `DescribeQueryOutput`. """ - return await self._invoke(input, _models.DESCRIBE_QUERY, [], plugins) + async def describe_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeQueryOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_QUERY, args, kwargs), + _models.DESCRIBE_QUERY, + [], + plugins, + ) + + @_overload + async def describe_trails( + self, + request: _models.DescribeTrailsInput | _models.DescribeTrailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrailsOutput: ... + + @_overload async def describe_trails( - self, input: DescribeTrailsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrailsInputDict], ) -> DescribeTrailsOutput: """ Retrieves settings for one or more trails associated with the current Region for your account. Args: - input: - An instance of `DescribeTrailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -604,10 +831,33 @@ async def describe_trails( Returns: An instance of `DescribeTrailsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TRAILS, [], plugins) + async def describe_trails( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrailsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TRAILS, args, kwargs), + _models.DESCRIBE_TRAILS, + [], + plugins, + ) + + @_overload async def disable_federation( - self, input: DisableFederationInput, plugins: list[Plugin] | None = None + self, + request: _models.DisableFederationInput | _models.DisableFederationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableFederationOutput: ... + + @_overload + async def disable_federation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableFederationInputDict], ) -> DisableFederationOutput: """ Warning: @@ -626,8 +876,6 @@ async def disable_federation( can continue to run queries in CloudTrail Lake. Args: - input: - An instance of `DisableFederationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -637,10 +885,33 @@ async def disable_federation( Returns: An instance of `DisableFederationOutput`. """ - return await self._invoke(input, _models.DISABLE_FEDERATION, [], plugins) + async def disable_federation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableFederationOutput: + return await self._invoke( + self._select_input(_models.DISABLE_FEDERATION, args, kwargs), + _models.DISABLE_FEDERATION, + [], + plugins, + ) + + @_overload async def enable_federation( - self, input: EnableFederationInput, plugins: list[Plugin] | None = None + self, + request: _models.EnableFederationInput | _models.EnableFederationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableFederationOutput: ... + + @_overload + async def enable_federation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableFederationInputDict], ) -> EnableFederationOutput: """ Warning: @@ -673,8 +944,6 @@ async def enable_federation( store](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html). Args: - input: - An instance of `EnableFederationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -684,10 +953,33 @@ async def enable_federation( Returns: An instance of `EnableFederationOutput`. """ - return await self._invoke(input, _models.ENABLE_FEDERATION, [], plugins) + async def enable_federation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableFederationOutput: + return await self._invoke( + self._select_input(_models.ENABLE_FEDERATION, args, kwargs), + _models.ENABLE_FEDERATION, + [], + plugins, + ) + + @_overload async def generate_query( - self, input: GenerateQueryInput, plugins: list[Plugin] | None = None + self, + request: _models.GenerateQueryInput | _models.GenerateQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateQueryOutput: ... + + @_overload + async def generate_query( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateQueryInputDict], ) -> GenerateQueryOutput: """ Warning: @@ -720,8 +1012,6 @@ async def generate_query( recommend double-checking the LLM response. Args: - input: - An instance of `GenerateQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -731,10 +1021,33 @@ async def generate_query( Returns: An instance of `GenerateQueryOutput`. """ - return await self._invoke(input, _models.GENERATE_QUERY, [], plugins) + async def generate_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateQueryOutput: + return await self._invoke( + self._select_input(_models.GENERATE_QUERY, args, kwargs), + _models.GENERATE_QUERY, + [], + plugins, + ) + + @_overload + async def get_channel( + self, + request: _models.GetChannelInput | _models.GetChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetChannelOutput: ... + + @_overload async def get_channel( - self, input: GetChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetChannelInputDict], ) -> GetChannelOutput: """ Warning: @@ -747,8 +1060,6 @@ async def get_channel( Returns information about a specific channel. Args: - input: - An instance of `GetChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -758,10 +1069,33 @@ async def get_channel( Returns: An instance of `GetChannelOutput`. """ - return await self._invoke(input, _models.GET_CHANNEL, [], plugins) + async def get_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetChannelOutput: + return await self._invoke( + self._select_input(_models.GET_CHANNEL, args, kwargs), + _models.GET_CHANNEL, + [], + plugins, + ) + + @_overload + async def get_dashboard( + self, + request: _models.GetDashboardInput | _models.GetDashboardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDashboardOutput: ... + + @_overload async def get_dashboard( - self, input: GetDashboardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDashboardInputDict], ) -> GetDashboardOutput: """ Warning: @@ -774,8 +1108,6 @@ async def get_dashboard( Returns the specified dashboard. Args: - input: - An instance of `GetDashboardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -785,10 +1117,34 @@ async def get_dashboard( Returns: An instance of `GetDashboardOutput`. """ - return await self._invoke(input, _models.GET_DASHBOARD, [], plugins) + async def get_dashboard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDashboardOutput: + return await self._invoke( + self._select_input(_models.GET_DASHBOARD, args, kwargs), + _models.GET_DASHBOARD, + [], + plugins, + ) + + @_overload + async def get_event_configuration( + self, + request: _models.GetEventConfigurationInput + | _models.GetEventConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventConfigurationOutput: ... + + @_overload async def get_event_configuration( - self, input: GetEventConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventConfigurationInputDict], ) -> GetEventConfigurationOutput: """ Retrieves the current event configuration settings for the specified @@ -797,8 +1153,6 @@ async def get_event_configuration( store, and any aggregation settings configured for the trail. Args: - input: - An instance of `GetEventConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -808,10 +1162,33 @@ async def get_event_configuration( Returns: An instance of `GetEventConfigurationOutput`. """ - return await self._invoke(input, _models.GET_EVENT_CONFIGURATION, [], plugins) + async def get_event_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventConfigurationOutput: + return await self._invoke( + self._select_input(_models.GET_EVENT_CONFIGURATION, args, kwargs), + _models.GET_EVENT_CONFIGURATION, + [], + plugins, + ) + + @_overload async def get_event_data_store( - self, input: GetEventDataStoreInput, plugins: list[Plugin] | None = None + self, + request: _models.GetEventDataStoreInput | _models.GetEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventDataStoreOutput: ... + + @_overload + async def get_event_data_store( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventDataStoreInputDict], ) -> GetEventDataStoreOutput: """ Warning: @@ -825,8 +1202,6 @@ async def get_event_data_store( or the ID portion of the ARN. Args: - input: - An instance of `GetEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -836,10 +1211,33 @@ async def get_event_data_store( Returns: An instance of `GetEventDataStoreOutput`. """ - return await self._invoke(input, _models.GET_EVENT_DATA_STORE, [], plugins) + async def get_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventDataStoreOutput: + return await self._invoke( + self._select_input(_models.GET_EVENT_DATA_STORE, args, kwargs), + _models.GET_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload async def get_event_selectors( - self, input: GetEventSelectorsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetEventSelectorsInput | _models.GetEventSelectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventSelectorsOutput: ... + + @_overload + async def get_event_selectors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventSelectorsInputDict], ) -> GetEventSelectorsOutput: """ Describes the settings for the event selectors that you configured for @@ -872,8 +1270,6 @@ async def get_event_selectors( events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html) Args: - input: - An instance of `GetEventSelectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -883,10 +1279,33 @@ async def get_event_selectors( Returns: An instance of `GetEventSelectorsOutput`. """ - return await self._invoke(input, _models.GET_EVENT_SELECTORS, [], plugins) + async def get_event_selectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventSelectorsOutput: + return await self._invoke( + self._select_input(_models.GET_EVENT_SELECTORS, args, kwargs), + _models.GET_EVENT_SELECTORS, + [], + plugins, + ) + + @_overload + async def get_import( + self, + request: _models.GetImportInput | _models.GetImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImportOutput: ... + + @_overload async def get_import( - self, input: GetImportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImportInputDict], ) -> GetImportOutput: """ Warning: @@ -899,8 +1318,6 @@ async def get_import( Returns information about a specific import. Args: - input: - An instance of `GetImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -910,10 +1327,34 @@ async def get_import( Returns: An instance of `GetImportOutput`. """ - return await self._invoke(input, _models.GET_IMPORT, [], plugins) + async def get_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImportOutput: + return await self._invoke( + self._select_input(_models.GET_IMPORT, args, kwargs), + _models.GET_IMPORT, + [], + plugins, + ) + + @_overload async def get_insight_selectors( - self, input: GetInsightSelectorsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetInsightSelectorsInput + | _models.GetInsightSelectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInsightSelectorsOutput: ... + + @_overload + async def get_insight_selectors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInsightSelectorsInputDict], ) -> GetInsightSelectorsOutput: """ Describes the settings for the Insights event selectors that you @@ -934,8 +1375,6 @@ async def get_insight_selectors( in the *CloudTrail User Guide*. Args: - input: - An instance of `GetInsightSelectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -945,10 +1384,33 @@ async def get_insight_selectors( Returns: An instance of `GetInsightSelectorsOutput`. """ - return await self._invoke(input, _models.GET_INSIGHT_SELECTORS, [], plugins) + async def get_insight_selectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInsightSelectorsOutput: + return await self._invoke( + self._select_input(_models.GET_INSIGHT_SELECTORS, args, kwargs), + _models.GET_INSIGHT_SELECTORS, + [], + plugins, + ) + + @_overload async def get_query_results( - self, input: GetQueryResultsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetQueryResultsInput | _models.GetQueryResultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetQueryResultsOutput: ... + + @_overload + async def get_query_results( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetQueryResultsInputDict], ) -> GetQueryResultsOutput: """ Warning: @@ -962,8 +1424,6 @@ async def get_query_results( returned by the `StartQuery` operation. Args: - input: - An instance of `GetQueryResultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -973,18 +1433,39 @@ async def get_query_results( Returns: An instance of `GetQueryResultsOutput`. """ - return await self._invoke(input, _models.GET_QUERY_RESULTS, [], plugins) + async def get_query_results( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetQueryResultsOutput: + return await self._invoke( + self._select_input(_models.GET_QUERY_RESULTS, args, kwargs), + _models.GET_QUERY_RESULTS, + [], + plugins, + ) + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload + async def get_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the JSON text of the resource-based policy document attached to the CloudTrail event data store, dashboard, or channel. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -994,17 +1475,38 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def get_trail( + self, + request: _models.GetTrailInput | _models.GetTrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTrailOutput: ... + + @_overload async def get_trail( - self, input: GetTrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTrailInputDict], ) -> GetTrailOutput: """ Returns settings information for a specified trail. Args: - input: - An instance of `GetTrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1014,10 +1516,33 @@ async def get_trail( Returns: An instance of `GetTrailOutput`. """ - return await self._invoke(input, _models.GET_TRAIL, [], plugins) + async def get_trail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTrailOutput: + return await self._invoke( + self._select_input(_models.GET_TRAIL, args, kwargs), + _models.GET_TRAIL, + [], + plugins, + ) + + @_overload async def get_trail_status( - self, input: GetTrailStatusInput, plugins: list[Plugin] | None = None + self, + request: _models.GetTrailStatusInput | _models.GetTrailStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTrailStatusOutput: ... + + @_overload + async def get_trail_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTrailStatusInputDict], ) -> GetTrailStatusOutput: """ Returns a JSON-formatted list of information about the specified trail. @@ -1027,8 +1552,6 @@ async def get_trail_status( all Regions, you must call the operation on each Region. Args: - input: - An instance of `GetTrailStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1038,10 +1561,33 @@ async def get_trail_status( Returns: An instance of `GetTrailStatusOutput`. """ - return await self._invoke(input, _models.GET_TRAIL_STATUS, [], plugins) + async def get_trail_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTrailStatusOutput: + return await self._invoke( + self._select_input(_models.GET_TRAIL_STATUS, args, kwargs), + _models.GET_TRAIL_STATUS, + [], + plugins, + ) + + @_overload + async def list_channels( + self, + request: _models.ListChannelsInput | _models.ListChannelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListChannelsOutput: ... + + @_overload async def list_channels( - self, input: ListChannelsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListChannelsInputDict], ) -> ListChannelsOutput: """ Warning: @@ -1054,8 +1600,6 @@ async def list_channels( Lists the channels in the current account, and their source names. Args: - input: - An instance of `ListChannelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1065,10 +1609,33 @@ async def list_channels( Returns: An instance of `ListChannelsOutput`. """ - return await self._invoke(input, _models.LIST_CHANNELS, [], plugins) + async def list_channels( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListChannelsOutput: + return await self._invoke( + self._select_input(_models.LIST_CHANNELS, args, kwargs), + _models.LIST_CHANNELS, + [], + plugins, + ) + + @_overload async def list_dashboards( - self, input: ListDashboardsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDashboardsInput | _models.ListDashboardsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDashboardsOutput: ... + + @_overload + async def list_dashboards( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDashboardsInputDict], ) -> ListDashboardsOutput: """ Warning: @@ -1082,8 +1649,6 @@ async def list_dashboards( Region. Args: - input: - An instance of `ListDashboardsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1093,10 +1658,34 @@ async def list_dashboards( Returns: An instance of `ListDashboardsOutput`. """ - return await self._invoke(input, _models.LIST_DASHBOARDS, [], plugins) + async def list_dashboards( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDashboardsOutput: + return await self._invoke( + self._select_input(_models.LIST_DASHBOARDS, args, kwargs), + _models.LIST_DASHBOARDS, + [], + plugins, + ) + + @_overload + async def list_event_data_stores( + self, + request: _models.ListEventDataStoresInput + | _models.ListEventDataStoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEventDataStoresOutput: ... + + @_overload async def list_event_data_stores( - self, input: ListEventDataStoresInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEventDataStoresInputDict], ) -> ListEventDataStoresOutput: """ Warning: @@ -1110,8 +1699,6 @@ async def list_event_data_stores( current Region. Args: - input: - An instance of `ListEventDataStoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1121,10 +1708,33 @@ async def list_event_data_stores( Returns: An instance of `ListEventDataStoresOutput`. """ - return await self._invoke(input, _models.LIST_EVENT_DATA_STORES, [], plugins) + async def list_event_data_stores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEventDataStoresOutput: + return await self._invoke( + self._select_input(_models.LIST_EVENT_DATA_STORES, args, kwargs), + _models.LIST_EVENT_DATA_STORES, + [], + plugins, + ) + + @_overload + async def list_import_failures( + self, + request: _models.ListImportFailuresInput | _models.ListImportFailuresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportFailuresOutput: ... + + @_overload async def list_import_failures( - self, input: ListImportFailuresInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportFailuresInputDict], ) -> ListImportFailuresOutput: """ Warning: @@ -1137,8 +1747,6 @@ async def list_import_failures( Returns a list of failures for the specified import. Args: - input: - An instance of `ListImportFailuresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1148,10 +1756,33 @@ async def list_import_failures( Returns: An instance of `ListImportFailuresOutput`. """ - return await self._invoke(input, _models.LIST_IMPORT_FAILURES, [], plugins) + async def list_import_failures( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportFailuresOutput: + return await self._invoke( + self._select_input(_models.LIST_IMPORT_FAILURES, args, kwargs), + _models.LIST_IMPORT_FAILURES, + [], + plugins, + ) + + @_overload + async def list_imports( + self, + request: _models.ListImportsInput | _models.ListImportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportsOutput: ... + + @_overload async def list_imports( - self, input: ListImportsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportsInputDict], ) -> ListImportsOutput: """ Warning: @@ -1165,8 +1796,6 @@ async def list_imports( `ImportStatus` or `Destination`. Args: - input: - An instance of `ListImportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1176,10 +1805,33 @@ async def list_imports( Returns: An instance of `ListImportsOutput`. """ - return await self._invoke(input, _models.LIST_IMPORTS, [], plugins) + async def list_imports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportsOutput: + return await self._invoke( + self._select_input(_models.LIST_IMPORTS, args, kwargs), + _models.LIST_IMPORTS, + [], + plugins, + ) + + @_overload + async def list_insights_data( + self, + request: _models.ListInsightsDataInput | _models.ListInsightsDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInsightsDataOutput: ... + + @_overload async def list_insights_data( - self, input: ListInsightsDataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInsightsDataInputDict], ) -> ListInsightsDataOutput: """ Returns Insights events generated on a trail that logs data events. You @@ -1210,8 +1862,6 @@ async def list_insights_data( on organization trails. Args: - input: - An instance of `ListInsightsDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1221,10 +1871,34 @@ async def list_insights_data( Returns: An instance of `ListInsightsDataOutput`. """ - return await self._invoke(input, _models.LIST_INSIGHTS_DATA, [], plugins) + async def list_insights_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInsightsDataOutput: + return await self._invoke( + self._select_input(_models.LIST_INSIGHTS_DATA, args, kwargs), + _models.LIST_INSIGHTS_DATA, + [], + plugins, + ) + + @_overload async def list_insights_metric_data( - self, input: ListInsightsMetricDataInput, plugins: list[Plugin] | None = None + self, + request: _models.ListInsightsMetricDataInput + | _models.ListInsightsMetricDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInsightsMetricDataOutput: ... + + @_overload + async def list_insights_metric_data( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInsightsMetricDataInputDict], ) -> ListInsightsMetricDataOutput: """ Returns Insights metrics data for trails that have enabled Insights. The @@ -1269,8 +1943,6 @@ async def list_insights_metric_data( this API on organization trails. Args: - input: - An instance of `ListInsightsMetricDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1280,10 +1952,33 @@ async def list_insights_metric_data( Returns: An instance of `ListInsightsMetricDataOutput`. """ - return await self._invoke(input, _models.LIST_INSIGHTS_METRIC_DATA, [], plugins) + async def list_insights_metric_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInsightsMetricDataOutput: + return await self._invoke( + self._select_input(_models.LIST_INSIGHTS_METRIC_DATA, args, kwargs), + _models.LIST_INSIGHTS_METRIC_DATA, + [], + plugins, + ) + + @_overload + async def list_public_keys( + self, + request: _models.ListPublicKeysInput | _models.ListPublicKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPublicKeysOutput: ... + + @_overload async def list_public_keys( - self, input: ListPublicKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPublicKeysInputDict], ) -> ListPublicKeysOutput: """ Returns all public keys whose private keys were used to sign the digest @@ -1298,21 +1993,42 @@ async def list_public_keys( Region for its corresponding public key. Args: - input: - An instance of `ListPublicKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ListPublicKeysOutput`. - """ - return await self._invoke(input, _models.LIST_PUBLIC_KEYS, [], plugins) + Returns: + An instance of `ListPublicKeysOutput`. + """ + + async def list_public_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPublicKeysOutput: + return await self._invoke( + self._select_input(_models.LIST_PUBLIC_KEYS, args, kwargs), + _models.LIST_PUBLIC_KEYS, + [], + plugins, + ) + + @_overload + async def list_queries( + self, + request: _models.ListQueriesInput | _models.ListQueriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListQueriesOutput: ... + @_overload async def list_queries( - self, input: ListQueriesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListQueriesInputDict], ) -> ListQueriesOutput: """ Warning: @@ -1330,8 +2046,6 @@ async def list_queries( `RUNNING`, `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`. Args: - input: - An instance of `ListQueriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1341,18 +2055,39 @@ async def list_queries( Returns: An instance of `ListQueriesOutput`. """ - return await self._invoke(input, _models.LIST_QUERIES, [], plugins) + async def list_queries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListQueriesOutput: + return await self._invoke( + self._select_input(_models.LIST_QUERIES, args, kwargs), + _models.LIST_QUERIES, + [], + plugins, + ) + + @_overload + async def list_tags( + self, + request: _models.ListTagsInput | _models.ListTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsOutput: ... + + @_overload async def list_tags( - self, input: ListTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsInputDict], ) -> ListTagsOutput: """ Lists the tags for the specified trails, event data stores, dashboards, or channels in the current Region. Args: - input: - An instance of `ListTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1362,17 +2097,38 @@ async def list_tags( Returns: An instance of `ListTagsOutput`. """ - return await self._invoke(input, _models.LIST_TAGS, [], plugins) + async def list_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS, args, kwargs), + _models.LIST_TAGS, + [], + plugins, + ) + + @_overload + async def list_trails( + self, + request: _models.ListTrailsInput | _models.ListTrailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTrailsOutput: ... + + @_overload async def list_trails( - self, input: ListTrailsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTrailsInputDict], ) -> ListTrailsOutput: """ Lists trails that are in the current account. Args: - input: - An instance of `ListTrailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1382,10 +2138,33 @@ async def list_trails( Returns: An instance of `ListTrailsOutput`. """ - return await self._invoke(input, _models.LIST_TRAILS, [], plugins) + async def list_trails( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTrailsOutput: + return await self._invoke( + self._select_input(_models.LIST_TRAILS, args, kwargs), + _models.LIST_TRAILS, + [], + plugins, + ) + + @_overload + async def lookup_events( + self, + request: _models.LookupEventsInput | _models.LookupEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> LookupEventsOutput: ... + + @_overload async def lookup_events( - self, input: LookupEventsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.LookupEventsInputDict], ) -> LookupEventsOutput: """ Looks up [management @@ -1436,8 +2215,6 @@ async def lookup_events( per Region. If this limit is exceeded, a throttling error occurs. Args: - input: - An instance of `LookupEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1447,10 +2224,34 @@ async def lookup_events( Returns: An instance of `LookupEventsOutput`. """ - return await self._invoke(input, _models.LOOKUP_EVENTS, [], plugins) + async def lookup_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> LookupEventsOutput: + return await self._invoke( + self._select_input(_models.LOOKUP_EVENTS, args, kwargs), + _models.LOOKUP_EVENTS, + [], + plugins, + ) + + @_overload async def put_event_configuration( - self, input: PutEventConfigurationInput, plugins: list[Plugin] | None = None + self, + request: _models.PutEventConfigurationInput + | _models.PutEventConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutEventConfigurationOutput: ... + + @_overload + async def put_event_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutEventConfigurationInputDict], ) -> PutEventConfigurationOutput: """ Updates the event configuration settings for the specified event data @@ -1459,8 +2260,6 @@ async def put_event_configuration( configuring aggregation settings for the trail. Args: - input: - An instance of `PutEventConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1470,10 +2269,33 @@ async def put_event_configuration( Returns: An instance of `PutEventConfigurationOutput`. """ - return await self._invoke(input, _models.PUT_EVENT_CONFIGURATION, [], plugins) + async def put_event_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutEventConfigurationOutput: + return await self._invoke( + self._select_input(_models.PUT_EVENT_CONFIGURATION, args, kwargs), + _models.PUT_EVENT_CONFIGURATION, + [], + plugins, + ) + + @_overload + async def put_event_selectors( + self, + request: _models.PutEventSelectorsInput | _models.PutEventSelectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutEventSelectorsOutput: ... + + @_overload async def put_event_selectors( - self, input: PutEventSelectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutEventSelectorsInputDict], ) -> PutEventSelectorsOutput: """ Configures event selectors (also referred to as *basic event selectors*) @@ -1546,8 +2368,6 @@ async def put_event_selectors( in the *CloudTrail User Guide*. Args: - input: - An instance of `PutEventSelectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1557,10 +2377,34 @@ async def put_event_selectors( Returns: An instance of `PutEventSelectorsOutput`. """ - return await self._invoke(input, _models.PUT_EVENT_SELECTORS, [], plugins) + async def put_event_selectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutEventSelectorsOutput: + return await self._invoke( + self._select_input(_models.PUT_EVENT_SELECTORS, args, kwargs), + _models.PUT_EVENT_SELECTORS, + [], + plugins, + ) + + @_overload + async def put_insight_selectors( + self, + request: _models.PutInsightSelectorsInput + | _models.PutInsightSelectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutInsightSelectorsOutput: ... + + @_overload async def put_insight_selectors( - self, input: PutInsightSelectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutInsightSelectorsInputDict], ) -> PutInsightSelectorsOutput: """ Lets you enable Insights event logging on specific event categories by @@ -1610,8 +2454,6 @@ async def put_insight_selectors( in the *CloudTrail User Guide*. Args: - input: - An instance of `PutInsightSelectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1621,10 +2463,33 @@ async def put_insight_selectors( Returns: An instance of `PutInsightSelectorsOutput`. """ - return await self._invoke(input, _models.PUT_INSIGHT_SELECTORS, [], plugins) + async def put_insight_selectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutInsightSelectorsOutput: + return await self._invoke( + self._select_input(_models.PUT_INSIGHT_SELECTORS, args, kwargs), + _models.PUT_INSIGHT_SELECTORS, + [], + plugins, + ) + + @_overload + async def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Attaches a resource-based permission policy to a CloudTrail event data @@ -1634,8 +2499,6 @@ async def put_resource_policy( in the *CloudTrail User Guide*. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1645,20 +2508,40 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def register_organization_delegated_admin( + self, + request: _models.RegisterOrganizationDelegatedAdminInput + | _models.RegisterOrganizationDelegatedAdminInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterOrganizationDelegatedAdminOutput: ... + + @_overload async def register_organization_delegated_admin( self, - input: RegisterOrganizationDelegatedAdminInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterOrganizationDelegatedAdminInputDict], ) -> RegisterOrganizationDelegatedAdminOutput: """ Registers an organization's member account as the CloudTrail [delegated administrator](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-delegated-administrator.html). Args: - input: - An instance of `RegisterOrganizationDelegatedAdminInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1668,20 +2551,41 @@ async def register_organization_delegated_admin( Returns: An instance of `RegisterOrganizationDelegatedAdminOutput`. """ + + async def register_organization_delegated_admin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterOrganizationDelegatedAdminOutput: return await self._invoke( - input, _models.REGISTER_ORGANIZATION_DELEGATED_ADMIN, [], plugins + self._select_input( + _models.REGISTER_ORGANIZATION_DELEGATED_ADMIN, args, kwargs + ), + _models.REGISTER_ORGANIZATION_DELEGATED_ADMIN, + [], + plugins, ) + @_overload + async def remove_tags( + self, + request: _models.RemoveTagsInput | _models.RemoveTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveTagsOutput: ... + + @_overload async def remove_tags( - self, input: RemoveTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveTagsInputDict], ) -> RemoveTagsOutput: """ Removes the specified tags from a trail, event data store, dashboard, or channel. Args: - input: - An instance of `RemoveTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1691,10 +2595,34 @@ async def remove_tags( Returns: An instance of `RemoveTagsOutput`. """ - return await self._invoke(input, _models.REMOVE_TAGS, [], plugins) + async def remove_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveTagsOutput: + return await self._invoke( + self._select_input(_models.REMOVE_TAGS, args, kwargs), + _models.REMOVE_TAGS, + [], + plugins, + ) + + @_overload + async def restore_event_data_store( + self, + request: _models.RestoreEventDataStoreInput + | _models.RestoreEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreEventDataStoreOutput: ... + + @_overload async def restore_event_data_store( - self, input: RestoreEventDataStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreEventDataStoreInputDict], ) -> RestoreEventDataStoreOutput: """ Warning: @@ -1711,8 +2639,6 @@ async def restore_event_data_store( event data store. Args: - input: - An instance of `RestoreEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1722,10 +2648,34 @@ async def restore_event_data_store( Returns: An instance of `RestoreEventDataStoreOutput`. """ - return await self._invoke(input, _models.RESTORE_EVENT_DATA_STORE, [], plugins) + async def restore_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreEventDataStoreOutput: + return await self._invoke( + self._select_input(_models.RESTORE_EVENT_DATA_STORE, args, kwargs), + _models.RESTORE_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload + async def search_sample_queries( + self, + request: _models.SearchSampleQueriesInput + | _models.SearchSampleQueriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchSampleQueriesOutput: ... + + @_overload async def search_sample_queries( - self, input: SearchSampleQueriesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchSampleQueriesInputDict], ) -> SearchSampleQueriesOutput: """ Warning: @@ -1740,8 +2690,6 @@ async def search_sample_queries( language `SearchPhrase` in English. Args: - input: - An instance of `SearchSampleQueriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1751,10 +2699,34 @@ async def search_sample_queries( Returns: An instance of `SearchSampleQueriesOutput`. """ - return await self._invoke(input, _models.SEARCH_SAMPLE_QUERIES, [], plugins) + async def search_sample_queries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchSampleQueriesOutput: + return await self._invoke( + self._select_input(_models.SEARCH_SAMPLE_QUERIES, args, kwargs), + _models.SEARCH_SAMPLE_QUERIES, + [], + plugins, + ) + + @_overload + async def start_dashboard_refresh( + self, + request: _models.StartDashboardRefreshInput + | _models.StartDashboardRefreshInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDashboardRefreshOutput: ... + + @_overload async def start_dashboard_refresh( - self, input: StartDashboardRefreshInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDashboardRefreshInputDict], ) -> StartDashboardRefreshOutput: """ Warning: @@ -1776,8 +2748,6 @@ async def start_dashboard_refresh( in the *CloudTrail User Guide*. Args: - input: - An instance of `StartDashboardRefreshInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1787,12 +2757,34 @@ async def start_dashboard_refresh( Returns: An instance of `StartDashboardRefreshOutput`. """ - return await self._invoke(input, _models.START_DASHBOARD_REFRESH, [], plugins) + async def start_dashboard_refresh( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDashboardRefreshOutput: + return await self._invoke( + self._select_input(_models.START_DASHBOARD_REFRESH, args, kwargs), + _models.START_DASHBOARD_REFRESH, + [], + plugins, + ) + + @_overload + async def start_event_data_store_ingestion( + self, + request: _models.StartEventDataStoreIngestionInput + | _models.StartEventDataStoreIngestionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartEventDataStoreIngestionOutput: ... + + @_overload async def start_event_data_store_ingestion( self, - input: StartEventDataStoreIngestionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartEventDataStoreIngestionInputDict], ) -> StartEventDataStoreIngestionOutput: """ Warning: @@ -1809,8 +2801,6 @@ async def start_event_data_store_ingestion( `ConfigurationItem`. Args: - input: - An instance of `StartEventDataStoreIngestionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1820,12 +2810,33 @@ async def start_event_data_store_ingestion( Returns: An instance of `StartEventDataStoreIngestionOutput`. """ + + async def start_event_data_store_ingestion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartEventDataStoreIngestionOutput: return await self._invoke( - input, _models.START_EVENT_DATA_STORE_INGESTION, [], plugins + self._select_input(_models.START_EVENT_DATA_STORE_INGESTION, args, kwargs), + _models.START_EVENT_DATA_STORE_INGESTION, + [], + plugins, ) + @_overload + async def start_import( + self, + request: _models.StartImportInput | _models.StartImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartImportOutput: ... + + @_overload async def start_import( - self, input: StartImportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartImportInputDict], ) -> StartImportOutput: """ Warning: @@ -1861,8 +2872,6 @@ async def start_import( delegated administrator account for the organization. Args: - input: - An instance of `StartImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1872,10 +2881,33 @@ async def start_import( Returns: An instance of `StartImportOutput`. """ - return await self._invoke(input, _models.START_IMPORT, [], plugins) + async def start_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartImportOutput: + return await self._invoke( + self._select_input(_models.START_IMPORT, args, kwargs), + _models.START_IMPORT, + [], + plugins, + ) + + @_overload + async def start_logging( + self, + request: _models.StartLoggingInput | _models.StartLoggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartLoggingOutput: ... + + @_overload async def start_logging( - self, input: StartLoggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartLoggingInputDict], ) -> StartLoggingOutput: """ Starts the recording of Amazon Web Services API calls and log file @@ -1885,8 +2917,6 @@ async def start_logging( in other Regions) of a trail that is enabled in all Regions. Args: - input: - An instance of `StartLoggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1896,10 +2926,33 @@ async def start_logging( Returns: An instance of `StartLoggingOutput`. """ - return await self._invoke(input, _models.START_LOGGING, [], plugins) + async def start_logging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartLoggingOutput: + return await self._invoke( + self._select_input(_models.START_LOGGING, args, kwargs), + _models.START_LOGGING, + [], + plugins, + ) + + @_overload + async def start_query( + self, + request: _models.StartQueryInput | _models.StartQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartQueryOutput: ... + + @_overload async def start_query( - self, input: StartQueryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartQueryInputDict], ) -> StartQueryOutput: """ Warning: @@ -1920,8 +2973,6 @@ async def start_query( queries that populate the CloudTrail Lake dashboards. Args: - input: - An instance of `StartQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1931,12 +2982,34 @@ async def start_query( Returns: An instance of `StartQueryOutput`. """ - return await self._invoke(input, _models.START_QUERY, [], plugins) + async def start_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartQueryOutput: + return await self._invoke( + self._select_input(_models.START_QUERY, args, kwargs), + _models.START_QUERY, + [], + plugins, + ) + + @_overload + async def stop_event_data_store_ingestion( + self, + request: _models.StopEventDataStoreIngestionInput + | _models.StopEventDataStoreIngestionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopEventDataStoreIngestionOutput: ... + + @_overload async def stop_event_data_store_ingestion( self, - input: StopEventDataStoreIngestionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopEventDataStoreIngestionInputDict], ) -> StopEventDataStoreIngestionOutput: """ Warning: @@ -1952,8 +3025,6 @@ async def stop_event_data_store_ingestion( `Management`, `Data`, `NetworkActivity`, or `ConfigurationItem`. Args: - input: - An instance of `StopEventDataStoreIngestionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1963,12 +3034,33 @@ async def stop_event_data_store_ingestion( Returns: An instance of `StopEventDataStoreIngestionOutput`. """ + + async def stop_event_data_store_ingestion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopEventDataStoreIngestionOutput: return await self._invoke( - input, _models.STOP_EVENT_DATA_STORE_INGESTION, [], plugins + self._select_input(_models.STOP_EVENT_DATA_STORE_INGESTION, args, kwargs), + _models.STOP_EVENT_DATA_STORE_INGESTION, + [], + plugins, ) + @_overload + async def stop_import( + self, + request: _models.StopImportInput | _models.StopImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopImportOutput: ... + + @_overload async def stop_import( - self, input: StopImportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopImportInputDict], ) -> StopImportOutput: """ Warning: @@ -1981,8 +3073,6 @@ async def stop_import( Stops a specified import. Args: - input: - An instance of `StopImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1992,10 +3082,33 @@ async def stop_import( Returns: An instance of `StopImportOutput`. """ - return await self._invoke(input, _models.STOP_IMPORT, [], plugins) + async def stop_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopImportOutput: + return await self._invoke( + self._select_input(_models.STOP_IMPORT, args, kwargs), + _models.STOP_IMPORT, + [], + plugins, + ) + + @_overload + async def stop_logging( + self, + request: _models.StopLoggingInput | _models.StopLoggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopLoggingOutput: ... + + @_overload async def stop_logging( - self, input: StopLoggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopLoggingInputDict], ) -> StopLoggingOutput: """ Suspends the recording of Amazon Web Services API calls and log file @@ -2008,8 +3121,6 @@ async def stop_logging( trails in other Regions) of a trail enabled in all Regions. Args: - input: - An instance of `StopLoggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2019,10 +3130,33 @@ async def stop_logging( Returns: An instance of `StopLoggingOutput`. """ - return await self._invoke(input, _models.STOP_LOGGING, [], plugins) + async def stop_logging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopLoggingOutput: + return await self._invoke( + self._select_input(_models.STOP_LOGGING, args, kwargs), + _models.STOP_LOGGING, + [], + plugins, + ) + + @_overload + async def update_channel( + self, + request: _models.UpdateChannelInput | _models.UpdateChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateChannelOutput: ... + + @_overload async def update_channel( - self, input: UpdateChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateChannelInputDict], ) -> UpdateChannelOutput: """ Warning: @@ -2035,8 +3169,6 @@ async def update_channel( Updates a channel specified by a required channel ARN or UUID. Args: - input: - An instance of `UpdateChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2046,10 +3178,33 @@ async def update_channel( Returns: An instance of `UpdateChannelOutput`. """ - return await self._invoke(input, _models.UPDATE_CHANNEL, [], plugins) + async def update_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateChannelOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CHANNEL, args, kwargs), + _models.UPDATE_CHANNEL, + [], + plugins, + ) + + @_overload + async def update_dashboard( + self, + request: _models.UpdateDashboardInput | _models.UpdateDashboardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDashboardOutput: ... + + @_overload async def update_dashboard( - self, input: UpdateDashboardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDashboardInputDict], ) -> UpdateDashboardOutput: """ Warning: @@ -2079,8 +3234,6 @@ async def update_dashboard( in the *CloudTrail User Guide*. Args: - input: - An instance of `UpdateDashboardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2090,10 +3243,34 @@ async def update_dashboard( Returns: An instance of `UpdateDashboardOutput`. """ - return await self._invoke(input, _models.UPDATE_DASHBOARD, [], plugins) + async def update_dashboard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDashboardOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DASHBOARD, args, kwargs), + _models.UPDATE_DASHBOARD, + [], + plugins, + ) + + @_overload + async def update_event_data_store( + self, + request: _models.UpdateEventDataStoreInput + | _models.UpdateEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateEventDataStoreOutput: ... + + @_overload async def update_event_data_store( - self, input: UpdateEventDataStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateEventDataStoreInputDict], ) -> UpdateEventDataStoreOutput: """ Warning: @@ -2124,8 +3301,6 @@ async def update_event_data_store( event data store. Args: - input: - An instance of `UpdateEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2135,10 +3310,33 @@ async def update_event_data_store( Returns: An instance of `UpdateEventDataStoreOutput`. """ - return await self._invoke(input, _models.UPDATE_EVENT_DATA_STORE, [], plugins) + async def update_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateEventDataStoreOutput: + return await self._invoke( + self._select_input(_models.UPDATE_EVENT_DATA_STORE, args, kwargs), + _models.UPDATE_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload + async def update_trail( + self, + request: _models.UpdateTrailInput | _models.UpdateTrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTrailOutput: ... + + @_overload async def update_trail( - self, input: UpdateTrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTrailInputDict], ) -> UpdateTrailOutput: """ Updates trail settings that control what events you are logging, and how @@ -2150,8 +3348,6 @@ async def update_trail( otherwise, an `InvalidHomeRegionException` is thrown. Args: - input: - An instance of `UpdateTrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2161,7 +3357,16 @@ async def update_trail( Returns: An instance of `UpdateTrailOutput`. """ - return await self._invoke(input, _models.UPDATE_TRAIL, [], plugins) + + async def update_trail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTrailOutput: + return await self._invoke( + self._select_input(_models.UPDATE_TRAIL, args, kwargs), + _models.UPDATE_TRAIL, + [], + plugins, + ) async def _new_config(self) -> AsyncCloudTrailConfig: return await AsyncCloudTrailConfig.resolve() diff --git a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/client.py b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/client.py index de21e143c..c7b2f1420 100644 --- a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/client.py +++ b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,125 +20,65 @@ if TYPE_CHECKING: from .models import ( - AddTagsInput, AddTagsOutput, - CancelQueryInput, CancelQueryOutput, - CreateChannelInput, CreateChannelOutput, - CreateDashboardInput, CreateDashboardOutput, - CreateEventDataStoreInput, CreateEventDataStoreOutput, - CreateTrailInput, CreateTrailOutput, - DeleteChannelInput, DeleteChannelOutput, - DeleteDashboardInput, DeleteDashboardOutput, - DeleteEventDataStoreInput, DeleteEventDataStoreOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteTrailInput, DeleteTrailOutput, - DeregisterOrganizationDelegatedAdminInput, DeregisterOrganizationDelegatedAdminOutput, - DescribeQueryInput, DescribeQueryOutput, - DescribeTrailsInput, DescribeTrailsOutput, - DisableFederationInput, DisableFederationOutput, - EnableFederationInput, EnableFederationOutput, - GenerateQueryInput, GenerateQueryOutput, - GetChannelInput, GetChannelOutput, - GetDashboardInput, GetDashboardOutput, - GetEventConfigurationInput, GetEventConfigurationOutput, - GetEventDataStoreInput, GetEventDataStoreOutput, - GetEventSelectorsInput, GetEventSelectorsOutput, - GetImportInput, GetImportOutput, - GetInsightSelectorsInput, GetInsightSelectorsOutput, - GetQueryResultsInput, GetQueryResultsOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetTrailInput, GetTrailOutput, - GetTrailStatusInput, GetTrailStatusOutput, - ListChannelsInput, ListChannelsOutput, - ListDashboardsInput, ListDashboardsOutput, - ListEventDataStoresInput, ListEventDataStoresOutput, - ListImportFailuresInput, ListImportFailuresOutput, - ListImportsInput, ListImportsOutput, - ListInsightsDataInput, ListInsightsDataOutput, - ListInsightsMetricDataInput, ListInsightsMetricDataOutput, - ListPublicKeysInput, ListPublicKeysOutput, - ListQueriesInput, ListQueriesOutput, - ListTagsInput, ListTagsOutput, - ListTrailsInput, ListTrailsOutput, - LookupEventsInput, LookupEventsOutput, - PutEventConfigurationInput, PutEventConfigurationOutput, - PutEventSelectorsInput, PutEventSelectorsOutput, - PutInsightSelectorsInput, PutInsightSelectorsOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - RegisterOrganizationDelegatedAdminInput, RegisterOrganizationDelegatedAdminOutput, - RemoveTagsInput, RemoveTagsOutput, - RestoreEventDataStoreInput, RestoreEventDataStoreOutput, - SearchSampleQueriesInput, SearchSampleQueriesOutput, - StartDashboardRefreshInput, StartDashboardRefreshOutput, - StartEventDataStoreIngestionInput, StartEventDataStoreIngestionOutput, - StartImportInput, StartImportOutput, - StartLoggingInput, StartLoggingOutput, - StartQueryInput, StartQueryOutput, - StopEventDataStoreIngestionInput, StopEventDataStoreIngestionOutput, - StopImportInput, StopImportOutput, - StopLoggingInput, StopLoggingOutput, - UpdateChannelInput, UpdateChannelOutput, - UpdateDashboardInput, UpdateDashboardOutput, - UpdateEventDataStoreInput, UpdateEventDataStoreOutput, - UpdateTrailInput, UpdateTrailOutput, ) @@ -175,10 +115,24 @@ class CloudTrailClient(Client[CloudTrailConfig]): Services API call listed in the log files. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def add_tags( - self, input: AddTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.AddTagsInput | _models.AddTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddTagsOutput: ... + + @_overload + def add_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddTagsInputDict], ) -> AddTagsOutput: """ Adds one or more tags to a trail, event data store, dashboard, or @@ -192,8 +146,6 @@ def add_tags( its home Region). Args: - input: - An instance of `AddTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -203,10 +155,33 @@ def add_tags( Returns: An instance of `AddTagsOutput`. """ - return self._invoke(input, _models.ADD_TAGS, [], plugins) + def add_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddTagsOutput: + return self._invoke( + self._select_input(_models.ADD_TAGS, args, kwargs), + _models.ADD_TAGS, + [], + plugins, + ) + + @_overload + def cancel_query( + self, + request: _models.CancelQueryInput | _models.CancelQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelQueryOutput: ... + + @_overload def cancel_query( - self, input: CancelQueryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelQueryInputDict], ) -> CancelQueryOutput: """ Warning: @@ -223,8 +198,6 @@ def cancel_query( might show as `CANCELLED` even if the operation is not yet finished. Args: - input: - An instance of `CancelQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -234,10 +207,33 @@ def cancel_query( Returns: An instance of `CancelQueryOutput`. """ - return self._invoke(input, _models.CANCEL_QUERY, [], plugins) + def cancel_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelQueryOutput: + return self._invoke( + self._select_input(_models.CANCEL_QUERY, args, kwargs), + _models.CANCEL_QUERY, + [], + plugins, + ) + + @_overload def create_channel( - self, input: CreateChannelInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateChannelInput | _models.CreateChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateChannelOutput: ... + + @_overload + def create_channel( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateChannelInputDict], ) -> CreateChannelOutput: """ Warning: @@ -252,8 +248,6 @@ def create_channel( data store can log events from the partner or source that you specify. Args: - input: - An instance of `CreateChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -263,10 +257,33 @@ def create_channel( Returns: An instance of `CreateChannelOutput`. """ - return self._invoke(input, _models.CREATE_CHANNEL, [], plugins) + def create_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateChannelOutput: + return self._invoke( + self._select_input(_models.CREATE_CHANNEL, args, kwargs), + _models.CREATE_CHANNEL, + [], + plugins, + ) + + @_overload def create_dashboard( - self, input: CreateDashboardInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDashboardInput | _models.CreateDashboardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDashboardOutput: ... + + @_overload + def create_dashboard( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDashboardInputDict], ) -> CreateDashboardOutput: """ Warning: @@ -311,8 +328,6 @@ def create_dashboard( in the *CloudTrail User Guide*. Args: - input: - An instance of `CreateDashboardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -322,10 +337,34 @@ def create_dashboard( Returns: An instance of `CreateDashboardOutput`. """ - return self._invoke(input, _models.CREATE_DASHBOARD, [], plugins) + def create_dashboard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDashboardOutput: + return self._invoke( + self._select_input(_models.CREATE_DASHBOARD, args, kwargs), + _models.CREATE_DASHBOARD, + [], + plugins, + ) + + @_overload def create_event_data_store( - self, input: CreateEventDataStoreInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateEventDataStoreInput + | _models.CreateEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEventDataStoreOutput: ... + + @_overload + def create_event_data_store( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEventDataStoreInputDict], ) -> CreateEventDataStoreOutput: """ Warning: @@ -338,8 +377,6 @@ def create_event_data_store( Creates a new event data store. Args: - input: - An instance of `CreateEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -349,18 +386,39 @@ def create_event_data_store( Returns: An instance of `CreateEventDataStoreOutput`. """ - return self._invoke(input, _models.CREATE_EVENT_DATA_STORE, [], plugins) + def create_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEventDataStoreOutput: + return self._invoke( + self._select_input(_models.CREATE_EVENT_DATA_STORE, args, kwargs), + _models.CREATE_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload + def create_trail( + self, + request: _models.CreateTrailInput | _models.CreateTrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrailOutput: ... + + @_overload def create_trail( - self, input: CreateTrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrailInputDict], ) -> CreateTrailOutput: """ Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. Args: - input: - An instance of `CreateTrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -370,10 +428,33 @@ def create_trail( Returns: An instance of `CreateTrailOutput`. """ - return self._invoke(input, _models.CREATE_TRAIL, [], plugins) + def create_trail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrailOutput: + return self._invoke( + self._select_input(_models.CREATE_TRAIL, args, kwargs), + _models.CREATE_TRAIL, + [], + plugins, + ) + + @_overload + def delete_channel( + self, + request: _models.DeleteChannelInput | _models.DeleteChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChannelOutput: ... + + @_overload def delete_channel( - self, input: DeleteChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChannelInputDict], ) -> DeleteChannelOutput: """ Warning: @@ -386,8 +467,6 @@ def delete_channel( Deletes a channel. Args: - input: - An instance of `DeleteChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -397,10 +476,33 @@ def delete_channel( Returns: An instance of `DeleteChannelOutput`. """ - return self._invoke(input, _models.DELETE_CHANNEL, [], plugins) + def delete_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChannelOutput: + return self._invoke( + self._select_input(_models.DELETE_CHANNEL, args, kwargs), + _models.DELETE_CHANNEL, + [], + plugins, + ) + + @_overload + def delete_dashboard( + self, + request: _models.DeleteDashboardInput | _models.DeleteDashboardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDashboardOutput: ... + + @_overload def delete_dashboard( - self, input: DeleteDashboardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDashboardInputDict], ) -> DeleteDashboardOutput: """ Warning: @@ -414,8 +516,6 @@ def delete_dashboard( termination protection enabled. Args: - input: - An instance of `DeleteDashboardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -425,10 +525,34 @@ def delete_dashboard( Returns: An instance of `DeleteDashboardOutput`. """ - return self._invoke(input, _models.DELETE_DASHBOARD, [], plugins) + def delete_dashboard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDashboardOutput: + return self._invoke( + self._select_input(_models.DELETE_DASHBOARD, args, kwargs), + _models.DELETE_DASHBOARD, + [], + plugins, + ) + + @_overload def delete_event_data_store( - self, input: DeleteEventDataStoreInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteEventDataStoreInput + | _models.DeleteEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEventDataStoreOutput: ... + + @_overload + def delete_event_data_store( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEventDataStoreInputDict], ) -> DeleteEventDataStoreOutput: """ Warning: @@ -453,8 +577,6 @@ def delete_event_data_store( data store in the `PENDING_DELETION` state does not incur costs. Args: - input: - An instance of `DeleteEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -464,18 +586,40 @@ def delete_event_data_store( Returns: An instance of `DeleteEventDataStoreOutput`. """ - return self._invoke(input, _models.DELETE_EVENT_DATA_STORE, [], plugins) + def delete_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEventDataStoreOutput: + return self._invoke( + self._select_input(_models.DELETE_EVENT_DATA_STORE, args, kwargs), + _models.DELETE_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload + def delete_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource-based policy attached to the CloudTrail event data store, dashboard, or channel. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -485,10 +629,33 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def delete_trail( - self, input: DeleteTrailInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteTrailInput | _models.DeleteTrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrailOutput: ... + + @_overload + def delete_trail( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrailInputDict], ) -> DeleteTrailOutput: """ Deletes a trail. This operation must be called from the Region in which @@ -512,8 +679,6 @@ def delete_trail( . Args: - input: - An instance of `DeleteTrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -523,20 +688,40 @@ def delete_trail( Returns: An instance of `DeleteTrailOutput`. """ - return self._invoke(input, _models.DELETE_TRAIL, [], plugins) + def delete_trail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrailOutput: + return self._invoke( + self._select_input(_models.DELETE_TRAIL, args, kwargs), + _models.DELETE_TRAIL, + [], + plugins, + ) + + @_overload + def deregister_organization_delegated_admin( + self, + request: _models.DeregisterOrganizationDelegatedAdminInput + | _models.DeregisterOrganizationDelegatedAdminInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterOrganizationDelegatedAdminOutput: ... + + @_overload def deregister_organization_delegated_admin( self, - input: DeregisterOrganizationDelegatedAdminInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterOrganizationDelegatedAdminInputDict], ) -> DeregisterOrganizationDelegatedAdminOutput: """ Removes CloudTrail delegated administrator permissions from a member account in an organization. Args: - input: - An instance of `DeregisterOrganizationDelegatedAdminInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -546,14 +731,35 @@ def deregister_organization_delegated_admin( Returns: An instance of `DeregisterOrganizationDelegatedAdminOutput`. """ + + def deregister_organization_delegated_admin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterOrganizationDelegatedAdminOutput: return self._invoke( - input, _models.DEREGISTER_ORGANIZATION_DELEGATED_ADMIN, [], plugins + self._select_input( + _models.DEREGISTER_ORGANIZATION_DELEGATED_ADMIN, args, kwargs + ), + _models.DEREGISTER_ORGANIZATION_DELEGATED_ADMIN, + [], + plugins, ) + @_overload def describe_query( self, - input: DescribeQueryInput | None = None, + request: _models.DescribeQueryInput | _models.DescribeQueryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeQueryOutput: ... + + @_overload + def describe_query( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeQueryInputDict], ) -> DescribeQueryOutput: """ Warning: @@ -574,8 +780,6 @@ def describe_query( the query results of a dashboard query for the specified `RefreshId`. Args: - input: - An instance of `DescribeQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -585,20 +789,39 @@ def describe_query( Returns: An instance of `DescribeQueryOutput`. """ - return self._invoke(input, _models.DESCRIBE_QUERY, [], plugins) + def describe_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeQueryOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_QUERY, args, kwargs), + _models.DESCRIBE_QUERY, + [], + plugins, + ) + + @_overload + def describe_trails( + self, + request: _models.DescribeTrailsInput | _models.DescribeTrailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrailsOutput: ... + + @_overload def describe_trails( self, - input: DescribeTrailsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrailsInputDict], ) -> DescribeTrailsOutput: """ Retrieves settings for one or more trails associated with the current Region for your account. Args: - input: - An instance of `DescribeTrailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -608,10 +831,33 @@ def describe_trails( Returns: An instance of `DescribeTrailsOutput`. """ - return self._invoke(input, _models.DESCRIBE_TRAILS, [], plugins) + def describe_trails( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrailsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TRAILS, args, kwargs), + _models.DESCRIBE_TRAILS, + [], + plugins, + ) + + @_overload + def disable_federation( + self, + request: _models.DisableFederationInput | _models.DisableFederationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableFederationOutput: ... + + @_overload def disable_federation( - self, input: DisableFederationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableFederationInputDict], ) -> DisableFederationOutput: """ Warning: @@ -630,8 +876,6 @@ def disable_federation( can continue to run queries in CloudTrail Lake. Args: - input: - An instance of `DisableFederationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -641,10 +885,33 @@ def disable_federation( Returns: An instance of `DisableFederationOutput`. """ - return self._invoke(input, _models.DISABLE_FEDERATION, [], plugins) + def disable_federation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableFederationOutput: + return self._invoke( + self._select_input(_models.DISABLE_FEDERATION, args, kwargs), + _models.DISABLE_FEDERATION, + [], + plugins, + ) + + @_overload def enable_federation( - self, input: EnableFederationInput, plugins: list[Plugin] | None = None + self, + request: _models.EnableFederationInput | _models.EnableFederationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableFederationOutput: ... + + @_overload + def enable_federation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableFederationInputDict], ) -> EnableFederationOutput: """ Warning: @@ -677,8 +944,6 @@ def enable_federation( store](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html). Args: - input: - An instance of `EnableFederationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -688,10 +953,33 @@ def enable_federation( Returns: An instance of `EnableFederationOutput`. """ - return self._invoke(input, _models.ENABLE_FEDERATION, [], plugins) + def enable_federation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableFederationOutput: + return self._invoke( + self._select_input(_models.ENABLE_FEDERATION, args, kwargs), + _models.ENABLE_FEDERATION, + [], + plugins, + ) + + @_overload def generate_query( - self, input: GenerateQueryInput, plugins: list[Plugin] | None = None + self, + request: _models.GenerateQueryInput | _models.GenerateQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateQueryOutput: ... + + @_overload + def generate_query( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateQueryInputDict], ) -> GenerateQueryOutput: """ Warning: @@ -724,8 +1012,6 @@ def generate_query( recommend double-checking the LLM response. Args: - input: - An instance of `GenerateQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -735,10 +1021,33 @@ def generate_query( Returns: An instance of `GenerateQueryOutput`. """ - return self._invoke(input, _models.GENERATE_QUERY, [], plugins) + def generate_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateQueryOutput: + return self._invoke( + self._select_input(_models.GENERATE_QUERY, args, kwargs), + _models.GENERATE_QUERY, + [], + plugins, + ) + + @_overload def get_channel( - self, input: GetChannelInput, plugins: list[Plugin] | None = None + self, + request: _models.GetChannelInput | _models.GetChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetChannelOutput: ... + + @_overload + def get_channel( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetChannelInputDict], ) -> GetChannelOutput: """ Warning: @@ -751,8 +1060,6 @@ def get_channel( Returns information about a specific channel. Args: - input: - An instance of `GetChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -762,10 +1069,33 @@ def get_channel( Returns: An instance of `GetChannelOutput`. """ - return self._invoke(input, _models.GET_CHANNEL, [], plugins) + def get_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetChannelOutput: + return self._invoke( + self._select_input(_models.GET_CHANNEL, args, kwargs), + _models.GET_CHANNEL, + [], + plugins, + ) + + @_overload + def get_dashboard( + self, + request: _models.GetDashboardInput | _models.GetDashboardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDashboardOutput: ... + + @_overload def get_dashboard( - self, input: GetDashboardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDashboardInputDict], ) -> GetDashboardOutput: """ Warning: @@ -778,8 +1108,6 @@ def get_dashboard( Returns the specified dashboard. Args: - input: - An instance of `GetDashboardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -789,12 +1117,34 @@ def get_dashboard( Returns: An instance of `GetDashboardOutput`. """ - return self._invoke(input, _models.GET_DASHBOARD, [], plugins) + def get_dashboard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDashboardOutput: + return self._invoke( + self._select_input(_models.GET_DASHBOARD, args, kwargs), + _models.GET_DASHBOARD, + [], + plugins, + ) + + @_overload + def get_event_configuration( + self, + request: _models.GetEventConfigurationInput + | _models.GetEventConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventConfigurationOutput: ... + + @_overload def get_event_configuration( self, - input: GetEventConfigurationInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventConfigurationInputDict], ) -> GetEventConfigurationOutput: """ Retrieves the current event configuration settings for the specified @@ -803,8 +1153,6 @@ def get_event_configuration( store, and any aggregation settings configured for the trail. Args: - input: - An instance of `GetEventConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -814,10 +1162,33 @@ def get_event_configuration( Returns: An instance of `GetEventConfigurationOutput`. """ - return self._invoke(input, _models.GET_EVENT_CONFIGURATION, [], plugins) + def get_event_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventConfigurationOutput: + return self._invoke( + self._select_input(_models.GET_EVENT_CONFIGURATION, args, kwargs), + _models.GET_EVENT_CONFIGURATION, + [], + plugins, + ) + + @_overload + def get_event_data_store( + self, + request: _models.GetEventDataStoreInput | _models.GetEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventDataStoreOutput: ... + + @_overload def get_event_data_store( - self, input: GetEventDataStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventDataStoreInputDict], ) -> GetEventDataStoreOutput: """ Warning: @@ -831,8 +1202,6 @@ def get_event_data_store( or the ID portion of the ARN. Args: - input: - An instance of `GetEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -842,10 +1211,33 @@ def get_event_data_store( Returns: An instance of `GetEventDataStoreOutput`. """ - return self._invoke(input, _models.GET_EVENT_DATA_STORE, [], plugins) + def get_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventDataStoreOutput: + return self._invoke( + self._select_input(_models.GET_EVENT_DATA_STORE, args, kwargs), + _models.GET_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload def get_event_selectors( - self, input: GetEventSelectorsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetEventSelectorsInput | _models.GetEventSelectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventSelectorsOutput: ... + + @_overload + def get_event_selectors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventSelectorsInputDict], ) -> GetEventSelectorsOutput: """ Describes the settings for the event selectors that you configured for @@ -878,8 +1270,6 @@ def get_event_selectors( events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html) Args: - input: - An instance of `GetEventSelectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -889,10 +1279,33 @@ def get_event_selectors( Returns: An instance of `GetEventSelectorsOutput`. """ - return self._invoke(input, _models.GET_EVENT_SELECTORS, [], plugins) + def get_event_selectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventSelectorsOutput: + return self._invoke( + self._select_input(_models.GET_EVENT_SELECTORS, args, kwargs), + _models.GET_EVENT_SELECTORS, + [], + plugins, + ) + + @_overload def get_import( - self, input: GetImportInput, plugins: list[Plugin] | None = None + self, + request: _models.GetImportInput | _models.GetImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImportOutput: ... + + @_overload + def get_import( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImportInputDict], ) -> GetImportOutput: """ Warning: @@ -905,8 +1318,6 @@ def get_import( Returns information about a specific import. Args: - input: - An instance of `GetImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -916,12 +1327,34 @@ def get_import( Returns: An instance of `GetImportOutput`. """ - return self._invoke(input, _models.GET_IMPORT, [], plugins) + def get_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImportOutput: + return self._invoke( + self._select_input(_models.GET_IMPORT, args, kwargs), + _models.GET_IMPORT, + [], + plugins, + ) + + @_overload def get_insight_selectors( self, - input: GetInsightSelectorsInput | None = None, + request: _models.GetInsightSelectorsInput + | _models.GetInsightSelectorsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetInsightSelectorsOutput: ... + + @_overload + def get_insight_selectors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInsightSelectorsInputDict], ) -> GetInsightSelectorsOutput: """ Describes the settings for the Insights event selectors that you @@ -942,8 +1375,6 @@ def get_insight_selectors( in the *CloudTrail User Guide*. Args: - input: - An instance of `GetInsightSelectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -953,10 +1384,33 @@ def get_insight_selectors( Returns: An instance of `GetInsightSelectorsOutput`. """ - return self._invoke(input, _models.GET_INSIGHT_SELECTORS, [], plugins) + def get_insight_selectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInsightSelectorsOutput: + return self._invoke( + self._select_input(_models.GET_INSIGHT_SELECTORS, args, kwargs), + _models.GET_INSIGHT_SELECTORS, + [], + plugins, + ) + + @_overload + def get_query_results( + self, + request: _models.GetQueryResultsInput | _models.GetQueryResultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetQueryResultsOutput: ... + + @_overload def get_query_results( - self, input: GetQueryResultsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetQueryResultsInputDict], ) -> GetQueryResultsOutput: """ Warning: @@ -970,8 +1424,6 @@ def get_query_results( returned by the `StartQuery` operation. Args: - input: - An instance of `GetQueryResultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -981,18 +1433,39 @@ def get_query_results( Returns: An instance of `GetQueryResultsOutput`. """ - return self._invoke(input, _models.GET_QUERY_RESULTS, [], plugins) + def get_query_results( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetQueryResultsOutput: + return self._invoke( + self._select_input(_models.GET_QUERY_RESULTS, args, kwargs), + _models.GET_QUERY_RESULTS, + [], + plugins, + ) + + @_overload + def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the JSON text of the resource-based policy document attached to the CloudTrail event data store, dashboard, or channel. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1002,17 +1475,38 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def get_trail( + self, + request: _models.GetTrailInput | _models.GetTrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTrailOutput: ... + + @_overload def get_trail( - self, input: GetTrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTrailInputDict], ) -> GetTrailOutput: """ Returns settings information for a specified trail. Args: - input: - An instance of `GetTrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1022,10 +1516,33 @@ def get_trail( Returns: An instance of `GetTrailOutput`. """ - return self._invoke(input, _models.GET_TRAIL, [], plugins) + def get_trail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTrailOutput: + return self._invoke( + self._select_input(_models.GET_TRAIL, args, kwargs), + _models.GET_TRAIL, + [], + plugins, + ) + + @_overload + def get_trail_status( + self, + request: _models.GetTrailStatusInput | _models.GetTrailStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTrailStatusOutput: ... + + @_overload def get_trail_status( - self, input: GetTrailStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTrailStatusInputDict], ) -> GetTrailStatusOutput: """ Returns a JSON-formatted list of information about the specified trail. @@ -1035,8 +1552,6 @@ def get_trail_status( all Regions, you must call the operation on each Region. Args: - input: - An instance of `GetTrailStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1046,12 +1561,33 @@ def get_trail_status( Returns: An instance of `GetTrailStatusOutput`. """ - return self._invoke(input, _models.GET_TRAIL_STATUS, [], plugins) + def get_trail_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTrailStatusOutput: + return self._invoke( + self._select_input(_models.GET_TRAIL_STATUS, args, kwargs), + _models.GET_TRAIL_STATUS, + [], + plugins, + ) + + @_overload def list_channels( self, - input: ListChannelsInput | None = None, + request: _models.ListChannelsInput | _models.ListChannelsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListChannelsOutput: ... + + @_overload + def list_channels( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListChannelsInputDict], ) -> ListChannelsOutput: """ Warning: @@ -1064,8 +1600,6 @@ def list_channels( Lists the channels in the current account, and their source names. Args: - input: - An instance of `ListChannelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1075,12 +1609,33 @@ def list_channels( Returns: An instance of `ListChannelsOutput`. """ - return self._invoke(input, _models.LIST_CHANNELS, [], plugins) + def list_channels( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListChannelsOutput: + return self._invoke( + self._select_input(_models.LIST_CHANNELS, args, kwargs), + _models.LIST_CHANNELS, + [], + plugins, + ) + + @_overload + def list_dashboards( + self, + request: _models.ListDashboardsInput | _models.ListDashboardsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDashboardsOutput: ... + + @_overload def list_dashboards( self, - input: ListDashboardsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDashboardsInputDict], ) -> ListDashboardsOutput: """ Warning: @@ -1094,8 +1649,6 @@ def list_dashboards( Region. Args: - input: - An instance of `ListDashboardsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1105,12 +1658,34 @@ def list_dashboards( Returns: An instance of `ListDashboardsOutput`. """ - return self._invoke(input, _models.LIST_DASHBOARDS, [], plugins) + def list_dashboards( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDashboardsOutput: + return self._invoke( + self._select_input(_models.LIST_DASHBOARDS, args, kwargs), + _models.LIST_DASHBOARDS, + [], + plugins, + ) + + @_overload + def list_event_data_stores( + self, + request: _models.ListEventDataStoresInput + | _models.ListEventDataStoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEventDataStoresOutput: ... + + @_overload def list_event_data_stores( self, - input: ListEventDataStoresInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEventDataStoresInputDict], ) -> ListEventDataStoresOutput: """ Warning: @@ -1124,8 +1699,6 @@ def list_event_data_stores( current Region. Args: - input: - An instance of `ListEventDataStoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1135,10 +1708,33 @@ def list_event_data_stores( Returns: An instance of `ListEventDataStoresOutput`. """ - return self._invoke(input, _models.LIST_EVENT_DATA_STORES, [], plugins) + def list_event_data_stores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEventDataStoresOutput: + return self._invoke( + self._select_input(_models.LIST_EVENT_DATA_STORES, args, kwargs), + _models.LIST_EVENT_DATA_STORES, + [], + plugins, + ) + + @_overload + def list_import_failures( + self, + request: _models.ListImportFailuresInput | _models.ListImportFailuresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportFailuresOutput: ... + + @_overload def list_import_failures( - self, input: ListImportFailuresInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportFailuresInputDict], ) -> ListImportFailuresOutput: """ Warning: @@ -1151,8 +1747,6 @@ def list_import_failures( Returns a list of failures for the specified import. Args: - input: - An instance of `ListImportFailuresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1162,10 +1756,33 @@ def list_import_failures( Returns: An instance of `ListImportFailuresOutput`. """ - return self._invoke(input, _models.LIST_IMPORT_FAILURES, [], plugins) + def list_import_failures( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportFailuresOutput: + return self._invoke( + self._select_input(_models.LIST_IMPORT_FAILURES, args, kwargs), + _models.LIST_IMPORT_FAILURES, + [], + plugins, + ) + + @_overload def list_imports( - self, input: ListImportsInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListImportsInput | _models.ListImportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportsOutput: ... + + @_overload + def list_imports( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportsInputDict], ) -> ListImportsOutput: """ Warning: @@ -1179,8 +1796,6 @@ def list_imports( `ImportStatus` or `Destination`. Args: - input: - An instance of `ListImportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1190,10 +1805,33 @@ def list_imports( Returns: An instance of `ListImportsOutput`. """ - return self._invoke(input, _models.LIST_IMPORTS, [], plugins) + def list_imports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportsOutput: + return self._invoke( + self._select_input(_models.LIST_IMPORTS, args, kwargs), + _models.LIST_IMPORTS, + [], + plugins, + ) + + @_overload + def list_insights_data( + self, + request: _models.ListInsightsDataInput | _models.ListInsightsDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInsightsDataOutput: ... + + @_overload def list_insights_data( - self, input: ListInsightsDataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInsightsDataInputDict], ) -> ListInsightsDataOutput: """ Returns Insights events generated on a trail that logs data events. You @@ -1224,8 +1862,6 @@ def list_insights_data( on organization trails. Args: - input: - An instance of `ListInsightsDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1235,10 +1871,34 @@ def list_insights_data( Returns: An instance of `ListInsightsDataOutput`. """ - return self._invoke(input, _models.LIST_INSIGHTS_DATA, [], plugins) + def list_insights_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInsightsDataOutput: + return self._invoke( + self._select_input(_models.LIST_INSIGHTS_DATA, args, kwargs), + _models.LIST_INSIGHTS_DATA, + [], + plugins, + ) + + @_overload def list_insights_metric_data( - self, input: ListInsightsMetricDataInput, plugins: list[Plugin] | None = None + self, + request: _models.ListInsightsMetricDataInput + | _models.ListInsightsMetricDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInsightsMetricDataOutput: ... + + @_overload + def list_insights_metric_data( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInsightsMetricDataInputDict], ) -> ListInsightsMetricDataOutput: """ Returns Insights metrics data for trails that have enabled Insights. The @@ -1283,8 +1943,6 @@ def list_insights_metric_data( this API on organization trails. Args: - input: - An instance of `ListInsightsMetricDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1294,12 +1952,33 @@ def list_insights_metric_data( Returns: An instance of `ListInsightsMetricDataOutput`. """ - return self._invoke(input, _models.LIST_INSIGHTS_METRIC_DATA, [], plugins) + def list_insights_metric_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInsightsMetricDataOutput: + return self._invoke( + self._select_input(_models.LIST_INSIGHTS_METRIC_DATA, args, kwargs), + _models.LIST_INSIGHTS_METRIC_DATA, + [], + plugins, + ) + + @_overload + def list_public_keys( + self, + request: _models.ListPublicKeysInput | _models.ListPublicKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPublicKeysOutput: ... + + @_overload def list_public_keys( self, - input: ListPublicKeysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPublicKeysInputDict], ) -> ListPublicKeysOutput: """ Returns all public keys whose private keys were used to sign the digest @@ -1314,8 +1993,6 @@ def list_public_keys( Region for its corresponding public key. Args: - input: - An instance of `ListPublicKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1325,10 +2002,33 @@ def list_public_keys( Returns: An instance of `ListPublicKeysOutput`. """ - return self._invoke(input, _models.LIST_PUBLIC_KEYS, [], plugins) + def list_public_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPublicKeysOutput: + return self._invoke( + self._select_input(_models.LIST_PUBLIC_KEYS, args, kwargs), + _models.LIST_PUBLIC_KEYS, + [], + plugins, + ) + + @_overload + def list_queries( + self, + request: _models.ListQueriesInput | _models.ListQueriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListQueriesOutput: ... + + @_overload def list_queries( - self, input: ListQueriesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListQueriesInputDict], ) -> ListQueriesOutput: """ Warning: @@ -1346,8 +2046,6 @@ def list_queries( `RUNNING`, `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`. Args: - input: - An instance of `ListQueriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1357,18 +2055,39 @@ def list_queries( Returns: An instance of `ListQueriesOutput`. """ - return self._invoke(input, _models.LIST_QUERIES, [], plugins) + def list_queries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListQueriesOutput: + return self._invoke( + self._select_input(_models.LIST_QUERIES, args, kwargs), + _models.LIST_QUERIES, + [], + plugins, + ) + + @_overload + def list_tags( + self, + request: _models.ListTagsInput | _models.ListTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsOutput: ... + + @_overload def list_tags( - self, input: ListTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsInputDict], ) -> ListTagsOutput: """ Lists the tags for the specified trails, event data stores, dashboards, or channels in the current Region. Args: - input: - An instance of `ListTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1378,17 +2097,38 @@ def list_tags( Returns: An instance of `ListTagsOutput`. """ - return self._invoke(input, _models.LIST_TAGS, [], plugins) + def list_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS, args, kwargs), + _models.LIST_TAGS, + [], + plugins, + ) + + @_overload + def list_trails( + self, + request: _models.ListTrailsInput | _models.ListTrailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTrailsOutput: ... + + @_overload def list_trails( - self, input: ListTrailsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTrailsInputDict], ) -> ListTrailsOutput: """ Lists trails that are in the current account. Args: - input: - An instance of `ListTrailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1398,12 +2138,33 @@ def list_trails( Returns: An instance of `ListTrailsOutput`. """ - return self._invoke(input, _models.LIST_TRAILS, [], plugins) + def list_trails( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTrailsOutput: + return self._invoke( + self._select_input(_models.LIST_TRAILS, args, kwargs), + _models.LIST_TRAILS, + [], + plugins, + ) + + @_overload + def lookup_events( + self, + request: _models.LookupEventsInput | _models.LookupEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> LookupEventsOutput: ... + + @_overload def lookup_events( self, - input: LookupEventsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.LookupEventsInputDict], ) -> LookupEventsOutput: """ Looks up [management @@ -1454,8 +2215,6 @@ def lookup_events( per Region. If this limit is exceeded, a throttling error occurs. Args: - input: - An instance of `LookupEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1465,12 +2224,34 @@ def lookup_events( Returns: An instance of `LookupEventsOutput`. """ - return self._invoke(input, _models.LOOKUP_EVENTS, [], plugins) + def lookup_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> LookupEventsOutput: + return self._invoke( + self._select_input(_models.LOOKUP_EVENTS, args, kwargs), + _models.LOOKUP_EVENTS, + [], + plugins, + ) + + @_overload def put_event_configuration( self, - input: PutEventConfigurationInput | None = None, + request: _models.PutEventConfigurationInput + | _models.PutEventConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> PutEventConfigurationOutput: ... + + @_overload + def put_event_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutEventConfigurationInputDict], ) -> PutEventConfigurationOutput: """ Updates the event configuration settings for the specified event data @@ -1479,8 +2260,6 @@ def put_event_configuration( configuring aggregation settings for the trail. Args: - input: - An instance of `PutEventConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1490,10 +2269,33 @@ def put_event_configuration( Returns: An instance of `PutEventConfigurationOutput`. """ - return self._invoke(input, _models.PUT_EVENT_CONFIGURATION, [], plugins) + def put_event_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutEventConfigurationOutput: + return self._invoke( + self._select_input(_models.PUT_EVENT_CONFIGURATION, args, kwargs), + _models.PUT_EVENT_CONFIGURATION, + [], + plugins, + ) + + @_overload + def put_event_selectors( + self, + request: _models.PutEventSelectorsInput | _models.PutEventSelectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutEventSelectorsOutput: ... + + @_overload def put_event_selectors( - self, input: PutEventSelectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutEventSelectorsInputDict], ) -> PutEventSelectorsOutput: """ Configures event selectors (also referred to as *basic event selectors*) @@ -1566,8 +2368,6 @@ def put_event_selectors( in the *CloudTrail User Guide*. Args: - input: - An instance of `PutEventSelectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1577,10 +2377,34 @@ def put_event_selectors( Returns: An instance of `PutEventSelectorsOutput`. """ - return self._invoke(input, _models.PUT_EVENT_SELECTORS, [], plugins) + def put_event_selectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutEventSelectorsOutput: + return self._invoke( + self._select_input(_models.PUT_EVENT_SELECTORS, args, kwargs), + _models.PUT_EVENT_SELECTORS, + [], + plugins, + ) + + @_overload + def put_insight_selectors( + self, + request: _models.PutInsightSelectorsInput + | _models.PutInsightSelectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutInsightSelectorsOutput: ... + + @_overload def put_insight_selectors( - self, input: PutInsightSelectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutInsightSelectorsInputDict], ) -> PutInsightSelectorsOutput: """ Lets you enable Insights event logging on specific event categories by @@ -1630,8 +2454,6 @@ def put_insight_selectors( in the *CloudTrail User Guide*. Args: - input: - An instance of `PutInsightSelectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1641,10 +2463,33 @@ def put_insight_selectors( Returns: An instance of `PutInsightSelectorsOutput`. """ - return self._invoke(input, _models.PUT_INSIGHT_SELECTORS, [], plugins) + def put_insight_selectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutInsightSelectorsOutput: + return self._invoke( + self._select_input(_models.PUT_INSIGHT_SELECTORS, args, kwargs), + _models.PUT_INSIGHT_SELECTORS, + [], + plugins, + ) + + @_overload + def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Attaches a resource-based permission policy to a CloudTrail event data @@ -1654,8 +2499,6 @@ def put_resource_policy( in the *CloudTrail User Guide*. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1665,20 +2508,40 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def register_organization_delegated_admin( + self, + request: _models.RegisterOrganizationDelegatedAdminInput + | _models.RegisterOrganizationDelegatedAdminInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterOrganizationDelegatedAdminOutput: ... + + @_overload def register_organization_delegated_admin( self, - input: RegisterOrganizationDelegatedAdminInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterOrganizationDelegatedAdminInputDict], ) -> RegisterOrganizationDelegatedAdminOutput: """ Registers an organization's member account as the CloudTrail [delegated administrator](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-delegated-administrator.html). Args: - input: - An instance of `RegisterOrganizationDelegatedAdminInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1688,20 +2551,41 @@ def register_organization_delegated_admin( Returns: An instance of `RegisterOrganizationDelegatedAdminOutput`. """ + + def register_organization_delegated_admin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterOrganizationDelegatedAdminOutput: return self._invoke( - input, _models.REGISTER_ORGANIZATION_DELEGATED_ADMIN, [], plugins + self._select_input( + _models.REGISTER_ORGANIZATION_DELEGATED_ADMIN, args, kwargs + ), + _models.REGISTER_ORGANIZATION_DELEGATED_ADMIN, + [], + plugins, ) + @_overload + def remove_tags( + self, + request: _models.RemoveTagsInput | _models.RemoveTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveTagsOutput: ... + + @_overload def remove_tags( - self, input: RemoveTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveTagsInputDict], ) -> RemoveTagsOutput: """ Removes the specified tags from a trail, event data store, dashboard, or channel. Args: - input: - An instance of `RemoveTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1711,10 +2595,34 @@ def remove_tags( Returns: An instance of `RemoveTagsOutput`. """ - return self._invoke(input, _models.REMOVE_TAGS, [], plugins) + def remove_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveTagsOutput: + return self._invoke( + self._select_input(_models.REMOVE_TAGS, args, kwargs), + _models.REMOVE_TAGS, + [], + plugins, + ) + + @_overload + def restore_event_data_store( + self, + request: _models.RestoreEventDataStoreInput + | _models.RestoreEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreEventDataStoreOutput: ... + + @_overload def restore_event_data_store( - self, input: RestoreEventDataStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreEventDataStoreInputDict], ) -> RestoreEventDataStoreOutput: """ Warning: @@ -1731,8 +2639,6 @@ def restore_event_data_store( event data store. Args: - input: - An instance of `RestoreEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1742,10 +2648,34 @@ def restore_event_data_store( Returns: An instance of `RestoreEventDataStoreOutput`. """ - return self._invoke(input, _models.RESTORE_EVENT_DATA_STORE, [], plugins) + def restore_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreEventDataStoreOutput: + return self._invoke( + self._select_input(_models.RESTORE_EVENT_DATA_STORE, args, kwargs), + _models.RESTORE_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload + def search_sample_queries( + self, + request: _models.SearchSampleQueriesInput + | _models.SearchSampleQueriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchSampleQueriesOutput: ... + + @_overload def search_sample_queries( - self, input: SearchSampleQueriesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchSampleQueriesInputDict], ) -> SearchSampleQueriesOutput: """ Warning: @@ -1760,8 +2690,6 @@ def search_sample_queries( language `SearchPhrase` in English. Args: - input: - An instance of `SearchSampleQueriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1771,10 +2699,34 @@ def search_sample_queries( Returns: An instance of `SearchSampleQueriesOutput`. """ - return self._invoke(input, _models.SEARCH_SAMPLE_QUERIES, [], plugins) + def search_sample_queries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchSampleQueriesOutput: + return self._invoke( + self._select_input(_models.SEARCH_SAMPLE_QUERIES, args, kwargs), + _models.SEARCH_SAMPLE_QUERIES, + [], + plugins, + ) + + @_overload + def start_dashboard_refresh( + self, + request: _models.StartDashboardRefreshInput + | _models.StartDashboardRefreshInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDashboardRefreshOutput: ... + + @_overload def start_dashboard_refresh( - self, input: StartDashboardRefreshInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDashboardRefreshInputDict], ) -> StartDashboardRefreshOutput: """ Warning: @@ -1796,8 +2748,6 @@ def start_dashboard_refresh( in the *CloudTrail User Guide*. Args: - input: - An instance of `StartDashboardRefreshInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1807,12 +2757,34 @@ def start_dashboard_refresh( Returns: An instance of `StartDashboardRefreshOutput`. """ - return self._invoke(input, _models.START_DASHBOARD_REFRESH, [], plugins) + def start_dashboard_refresh( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDashboardRefreshOutput: + return self._invoke( + self._select_input(_models.START_DASHBOARD_REFRESH, args, kwargs), + _models.START_DASHBOARD_REFRESH, + [], + plugins, + ) + + @_overload + def start_event_data_store_ingestion( + self, + request: _models.StartEventDataStoreIngestionInput + | _models.StartEventDataStoreIngestionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartEventDataStoreIngestionOutput: ... + + @_overload def start_event_data_store_ingestion( self, - input: StartEventDataStoreIngestionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartEventDataStoreIngestionInputDict], ) -> StartEventDataStoreIngestionOutput: """ Warning: @@ -1829,8 +2801,6 @@ def start_event_data_store_ingestion( `ConfigurationItem`. Args: - input: - An instance of `StartEventDataStoreIngestionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1840,12 +2810,33 @@ def start_event_data_store_ingestion( Returns: An instance of `StartEventDataStoreIngestionOutput`. """ + + def start_event_data_store_ingestion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartEventDataStoreIngestionOutput: return self._invoke( - input, _models.START_EVENT_DATA_STORE_INGESTION, [], plugins + self._select_input(_models.START_EVENT_DATA_STORE_INGESTION, args, kwargs), + _models.START_EVENT_DATA_STORE_INGESTION, + [], + plugins, ) + @_overload + def start_import( + self, + request: _models.StartImportInput | _models.StartImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartImportOutput: ... + + @_overload def start_import( - self, input: StartImportInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartImportInputDict], ) -> StartImportOutput: """ Warning: @@ -1881,8 +2872,6 @@ def start_import( delegated administrator account for the organization. Args: - input: - An instance of `StartImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1892,10 +2881,33 @@ def start_import( Returns: An instance of `StartImportOutput`. """ - return self._invoke(input, _models.START_IMPORT, [], plugins) + def start_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartImportOutput: + return self._invoke( + self._select_input(_models.START_IMPORT, args, kwargs), + _models.START_IMPORT, + [], + plugins, + ) + + @_overload + def start_logging( + self, + request: _models.StartLoggingInput | _models.StartLoggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartLoggingOutput: ... + + @_overload def start_logging( - self, input: StartLoggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartLoggingInputDict], ) -> StartLoggingOutput: """ Starts the recording of Amazon Web Services API calls and log file @@ -1905,8 +2917,6 @@ def start_logging( in other Regions) of a trail that is enabled in all Regions. Args: - input: - An instance of `StartLoggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1916,10 +2926,33 @@ def start_logging( Returns: An instance of `StartLoggingOutput`. """ - return self._invoke(input, _models.START_LOGGING, [], plugins) + def start_logging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartLoggingOutput: + return self._invoke( + self._select_input(_models.START_LOGGING, args, kwargs), + _models.START_LOGGING, + [], + plugins, + ) + + @_overload + def start_query( + self, + request: _models.StartQueryInput | _models.StartQueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartQueryOutput: ... + + @_overload def start_query( - self, input: StartQueryInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartQueryInputDict], ) -> StartQueryOutput: """ Warning: @@ -1940,8 +2973,6 @@ def start_query( queries that populate the CloudTrail Lake dashboards. Args: - input: - An instance of `StartQueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1951,12 +2982,34 @@ def start_query( Returns: An instance of `StartQueryOutput`. """ - return self._invoke(input, _models.START_QUERY, [], plugins) + def start_query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartQueryOutput: + return self._invoke( + self._select_input(_models.START_QUERY, args, kwargs), + _models.START_QUERY, + [], + plugins, + ) + + @_overload + def stop_event_data_store_ingestion( + self, + request: _models.StopEventDataStoreIngestionInput + | _models.StopEventDataStoreIngestionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopEventDataStoreIngestionOutput: ... + + @_overload def stop_event_data_store_ingestion( self, - input: StopEventDataStoreIngestionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopEventDataStoreIngestionInputDict], ) -> StopEventDataStoreIngestionOutput: """ Warning: @@ -1972,8 +3025,6 @@ def stop_event_data_store_ingestion( `Management`, `Data`, `NetworkActivity`, or `ConfigurationItem`. Args: - input: - An instance of `StopEventDataStoreIngestionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1983,10 +3034,33 @@ def stop_event_data_store_ingestion( Returns: An instance of `StopEventDataStoreIngestionOutput`. """ - return self._invoke(input, _models.STOP_EVENT_DATA_STORE_INGESTION, [], plugins) + def stop_event_data_store_ingestion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopEventDataStoreIngestionOutput: + return self._invoke( + self._select_input(_models.STOP_EVENT_DATA_STORE_INGESTION, args, kwargs), + _models.STOP_EVENT_DATA_STORE_INGESTION, + [], + plugins, + ) + + @_overload + def stop_import( + self, + request: _models.StopImportInput | _models.StopImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopImportOutput: ... + + @_overload def stop_import( - self, input: StopImportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopImportInputDict], ) -> StopImportOutput: """ Warning: @@ -1999,8 +3073,6 @@ def stop_import( Stops a specified import. Args: - input: - An instance of `StopImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2010,10 +3082,33 @@ def stop_import( Returns: An instance of `StopImportOutput`. """ - return self._invoke(input, _models.STOP_IMPORT, [], plugins) + def stop_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopImportOutput: + return self._invoke( + self._select_input(_models.STOP_IMPORT, args, kwargs), + _models.STOP_IMPORT, + [], + plugins, + ) + + @_overload + def stop_logging( + self, + request: _models.StopLoggingInput | _models.StopLoggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopLoggingOutput: ... + + @_overload def stop_logging( - self, input: StopLoggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopLoggingInputDict], ) -> StopLoggingOutput: """ Suspends the recording of Amazon Web Services API calls and log file @@ -2026,8 +3121,6 @@ def stop_logging( trails in other Regions) of a trail enabled in all Regions. Args: - input: - An instance of `StopLoggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2037,10 +3130,33 @@ def stop_logging( Returns: An instance of `StopLoggingOutput`. """ - return self._invoke(input, _models.STOP_LOGGING, [], plugins) + def stop_logging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopLoggingOutput: + return self._invoke( + self._select_input(_models.STOP_LOGGING, args, kwargs), + _models.STOP_LOGGING, + [], + plugins, + ) + + @_overload + def update_channel( + self, + request: _models.UpdateChannelInput | _models.UpdateChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateChannelOutput: ... + + @_overload def update_channel( - self, input: UpdateChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateChannelInputDict], ) -> UpdateChannelOutput: """ Warning: @@ -2053,8 +3169,6 @@ def update_channel( Updates a channel specified by a required channel ARN or UUID. Args: - input: - An instance of `UpdateChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2064,10 +3178,33 @@ def update_channel( Returns: An instance of `UpdateChannelOutput`. """ - return self._invoke(input, _models.UPDATE_CHANNEL, [], plugins) + def update_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateChannelOutput: + return self._invoke( + self._select_input(_models.UPDATE_CHANNEL, args, kwargs), + _models.UPDATE_CHANNEL, + [], + plugins, + ) + + @_overload + def update_dashboard( + self, + request: _models.UpdateDashboardInput | _models.UpdateDashboardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDashboardOutput: ... + + @_overload def update_dashboard( - self, input: UpdateDashboardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDashboardInputDict], ) -> UpdateDashboardOutput: """ Warning: @@ -2097,8 +3234,6 @@ def update_dashboard( in the *CloudTrail User Guide*. Args: - input: - An instance of `UpdateDashboardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2108,10 +3243,34 @@ def update_dashboard( Returns: An instance of `UpdateDashboardOutput`. """ - return self._invoke(input, _models.UPDATE_DASHBOARD, [], plugins) + def update_dashboard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDashboardOutput: + return self._invoke( + self._select_input(_models.UPDATE_DASHBOARD, args, kwargs), + _models.UPDATE_DASHBOARD, + [], + plugins, + ) + + @_overload + def update_event_data_store( + self, + request: _models.UpdateEventDataStoreInput + | _models.UpdateEventDataStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateEventDataStoreOutput: ... + + @_overload def update_event_data_store( - self, input: UpdateEventDataStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateEventDataStoreInputDict], ) -> UpdateEventDataStoreOutput: """ Warning: @@ -2142,8 +3301,6 @@ def update_event_data_store( event data store. Args: - input: - An instance of `UpdateEventDataStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2153,10 +3310,33 @@ def update_event_data_store( Returns: An instance of `UpdateEventDataStoreOutput`. """ - return self._invoke(input, _models.UPDATE_EVENT_DATA_STORE, [], plugins) + def update_event_data_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateEventDataStoreOutput: + return self._invoke( + self._select_input(_models.UPDATE_EVENT_DATA_STORE, args, kwargs), + _models.UPDATE_EVENT_DATA_STORE, + [], + plugins, + ) + + @_overload + def update_trail( + self, + request: _models.UpdateTrailInput | _models.UpdateTrailInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTrailOutput: ... + + @_overload def update_trail( - self, input: UpdateTrailInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTrailInputDict], ) -> UpdateTrailOutput: """ Updates trail settings that control what events you are logging, and how @@ -2168,8 +3348,6 @@ def update_trail( otherwise, an `InvalidHomeRegionException` is thrown. Args: - input: - An instance of `UpdateTrailInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2179,7 +3357,16 @@ def update_trail( Returns: An instance of `UpdateTrailOutput`. """ - return self._invoke(input, _models.UPDATE_TRAIL, [], plugins) + + def update_trail( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTrailOutput: + return self._invoke( + self._select_input(_models.UPDATE_TRAIL, args, kwargs), + _models.UPDATE_TRAIL, + [], + plugins, + ) def _new_config(self) -> CloudTrailConfig: return CloudTrailConfig.resolve() diff --git a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/models.pyi b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/models.pyi index 1f5514048..0368eb062 100644 --- a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/models.pyi +++ b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/models.pyi @@ -14,12 +14,17 @@ from ._private.models_0 import ( AccountNotRegisteredException as AccountNotRegisteredException, AccountRegisteredException as AccountRegisteredException, AddTagsInput as AddTagsInput, + AddTagsInputDict as AddTagsInputDict, AddTagsOutput as AddTagsOutput, AdvancedEventSelector as AdvancedEventSelector, + AdvancedEventSelectorDict as AdvancedEventSelectorDict, AdvancedFieldSelector as AdvancedFieldSelector, + AdvancedFieldSelectorDict as AdvancedFieldSelectorDict, AggregationConfiguration as AggregationConfiguration, + AggregationConfigurationDict as AggregationConfigurationDict, BillingMode as BillingMode, CancelQueryInput as CancelQueryInput, + CancelQueryInputDict as CancelQueryInputDict, CancelQueryOutput as CancelQueryOutput, CannotDelegateManagementAccountException as CannotDelegateManagementAccountException, Channel as Channel, @@ -35,41 +40,58 @@ from ._private.models_0 import ( ConcurrentModificationException as ConcurrentModificationException, ConflictException as ConflictException, ContextKeySelector as ContextKeySelector, + ContextKeySelectorDict as ContextKeySelectorDict, CreateChannelInput as CreateChannelInput, + CreateChannelInputDict as CreateChannelInputDict, CreateChannelOutput as CreateChannelOutput, CreateDashboardInput as CreateDashboardInput, + CreateDashboardInputDict as CreateDashboardInputDict, CreateDashboardOutput as CreateDashboardOutput, CreateEventDataStoreInput as CreateEventDataStoreInput, + CreateEventDataStoreInputDict as CreateEventDataStoreInputDict, CreateEventDataStoreOutput as CreateEventDataStoreOutput, CreateTrailInput as CreateTrailInput, + CreateTrailInputDict as CreateTrailInputDict, CreateTrailOutput as CreateTrailOutput, DashboardDetail as DashboardDetail, DashboardStatus as DashboardStatus, DashboardType as DashboardType, DataResource as DataResource, + DataResourceDict as DataResourceDict, DelegatedAdminAccountLimitExceededException as DelegatedAdminAccountLimitExceededException, DeleteChannelInput as DeleteChannelInput, + DeleteChannelInputDict as DeleteChannelInputDict, DeleteChannelOutput as DeleteChannelOutput, DeleteDashboardInput as DeleteDashboardInput, + DeleteDashboardInputDict as DeleteDashboardInputDict, DeleteDashboardOutput as DeleteDashboardOutput, DeleteEventDataStoreInput as DeleteEventDataStoreInput, + DeleteEventDataStoreInputDict as DeleteEventDataStoreInputDict, DeleteEventDataStoreOutput as DeleteEventDataStoreOutput, DeleteResourcePolicyInput as DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict as DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput as DeleteResourcePolicyOutput, DeleteTrailInput as DeleteTrailInput, + DeleteTrailInputDict as DeleteTrailInputDict, DeleteTrailOutput as DeleteTrailOutput, DeliveryStatus as DeliveryStatus, DeregisterOrganizationDelegatedAdminInput as DeregisterOrganizationDelegatedAdminInput, + DeregisterOrganizationDelegatedAdminInputDict as DeregisterOrganizationDelegatedAdminInputDict, DeregisterOrganizationDelegatedAdminOutput as DeregisterOrganizationDelegatedAdminOutput, DescribeQueryInput as DescribeQueryInput, + DescribeQueryInputDict as DescribeQueryInputDict, DescribeQueryOutput as DescribeQueryOutput, DescribeTrailsInput as DescribeTrailsInput, + DescribeTrailsInputDict as DescribeTrailsInputDict, DescribeTrailsOutput as DescribeTrailsOutput, Destination as Destination, + DestinationDict as DestinationDict, DestinationType as DestinationType, DisableFederationInput as DisableFederationInput, + DisableFederationInputDict as DisableFederationInputDict, DisableFederationOutput as DisableFederationOutput, EnableFederationInput as EnableFederationInput, + EnableFederationInputDict as EnableFederationInputDict, EnableFederationOutput as EnableFederationOutput, Event as Event, EventCategory as EventCategory, @@ -84,37 +106,51 @@ from ._private.models_0 import ( EventDataStoreStatus as EventDataStoreStatus, EventDataStoreTerminationProtectedException as EventDataStoreTerminationProtectedException, EventSelector as EventSelector, + EventSelectorDict as EventSelectorDict, FederationStatus as FederationStatus, GenerateQueryInput as GenerateQueryInput, + GenerateQueryInputDict as GenerateQueryInputDict, GenerateQueryOutput as GenerateQueryOutput, GenerateResponseException as GenerateResponseException, GetChannelInput as GetChannelInput, + GetChannelInputDict as GetChannelInputDict, GetChannelOutput as GetChannelOutput, GetDashboardInput as GetDashboardInput, + GetDashboardInputDict as GetDashboardInputDict, GetDashboardOutput as GetDashboardOutput, GetEventConfigurationInput as GetEventConfigurationInput, + GetEventConfigurationInputDict as GetEventConfigurationInputDict, GetEventConfigurationOutput as GetEventConfigurationOutput, GetEventDataStoreInput as GetEventDataStoreInput, + GetEventDataStoreInputDict as GetEventDataStoreInputDict, GetEventDataStoreOutput as GetEventDataStoreOutput, GetEventSelectorsInput as GetEventSelectorsInput, + GetEventSelectorsInputDict as GetEventSelectorsInputDict, GetEventSelectorsOutput as GetEventSelectorsOutput, GetImportInput as GetImportInput, + GetImportInputDict as GetImportInputDict, GetImportOutput as GetImportOutput, GetInsightSelectorsInput as GetInsightSelectorsInput, + GetInsightSelectorsInputDict as GetInsightSelectorsInputDict, GetInsightSelectorsOutput as GetInsightSelectorsOutput, GetQueryResultsInput as GetQueryResultsInput, + GetQueryResultsInputDict as GetQueryResultsInputDict, GetQueryResultsOutput as GetQueryResultsOutput, GetResourcePolicyInput as GetResourcePolicyInput, + GetResourcePolicyInputDict as GetResourcePolicyInputDict, GetResourcePolicyOutput as GetResourcePolicyOutput, GetTrailInput as GetTrailInput, + GetTrailInputDict as GetTrailInputDict, GetTrailOutput as GetTrailOutput, GetTrailStatusInput as GetTrailStatusInput, + GetTrailStatusInputDict as GetTrailStatusInputDict, GetTrailStatusOutput as GetTrailStatusOutput, ImportFailureListItem as ImportFailureListItem, ImportFailureStatus as ImportFailureStatus, ImportNotFoundException as ImportNotFoundException, ImportsListItem as ImportsListItem, ImportSource as ImportSource, + ImportSourceDict as ImportSourceDict, ImportStatistics as ImportStatistics, ImportStatus as ImportStatus, InactiveEventDataStoreException as InactiveEventDataStoreException, @@ -122,6 +158,7 @@ from ._private.models_0 import ( IngestionStatus as IngestionStatus, InsightNotEnabledException as InsightNotEnabledException, InsightSelector as InsightSelector, + InsightSelectorDict as InsightSelectorDict, InsightsMetricDataType as InsightsMetricDataType, InsightType as InsightType, InsufficientDependencyServiceAccessPermissionException as InsufficientDependencyServiceAccessPermissionException, @@ -159,32 +196,45 @@ from ._private.models_0 import ( KmsKeyDisabledException as KmsKeyDisabledException, KmsKeyNotFoundException as KmsKeyNotFoundException, ListChannelsInput as ListChannelsInput, + ListChannelsInputDict as ListChannelsInputDict, ListChannelsOutput as ListChannelsOutput, ListDashboardsInput as ListDashboardsInput, + ListDashboardsInputDict as ListDashboardsInputDict, ListDashboardsOutput as ListDashboardsOutput, ListEventDataStoresInput as ListEventDataStoresInput, + ListEventDataStoresInputDict as ListEventDataStoresInputDict, ListEventDataStoresOutput as ListEventDataStoresOutput, ListImportFailuresInput as ListImportFailuresInput, + ListImportFailuresInputDict as ListImportFailuresInputDict, ListImportFailuresOutput as ListImportFailuresOutput, ListImportsInput as ListImportsInput, + ListImportsInputDict as ListImportsInputDict, ListImportsOutput as ListImportsOutput, ListInsightsDataDimensionKey as ListInsightsDataDimensionKey, ListInsightsDataInput as ListInsightsDataInput, + ListInsightsDataInputDict as ListInsightsDataInputDict, ListInsightsDataOutput as ListInsightsDataOutput, ListInsightsDataType as ListInsightsDataType, ListInsightsMetricDataInput as ListInsightsMetricDataInput, + ListInsightsMetricDataInputDict as ListInsightsMetricDataInputDict, ListInsightsMetricDataOutput as ListInsightsMetricDataOutput, ListPublicKeysInput as ListPublicKeysInput, + ListPublicKeysInputDict as ListPublicKeysInputDict, ListPublicKeysOutput as ListPublicKeysOutput, ListQueriesInput as ListQueriesInput, + ListQueriesInputDict as ListQueriesInputDict, ListQueriesOutput as ListQueriesOutput, ListTagsInput as ListTagsInput, + ListTagsInputDict as ListTagsInputDict, ListTagsOutput as ListTagsOutput, ListTrailsInput as ListTrailsInput, + ListTrailsInputDict as ListTrailsInputDict, ListTrailsOutput as ListTrailsOutput, LookupAttribute as LookupAttribute, + LookupAttributeDict as LookupAttributeDict, LookupAttributeKey as LookupAttributeKey, LookupEventsInput as LookupEventsInput, + LookupEventsInputDict as LookupEventsInputDict, LookupEventsOutput as LookupEventsOutput, MaxConcurrentQueriesException as MaxConcurrentQueriesException, MaxEventSize as MaxEventSize, @@ -198,12 +248,16 @@ from ._private.models_0 import ( PartitionKey as PartitionKey, PublicKey as PublicKey, PutEventConfigurationInput as PutEventConfigurationInput, + PutEventConfigurationInputDict as PutEventConfigurationInputDict, PutEventConfigurationOutput as PutEventConfigurationOutput, PutEventSelectorsInput as PutEventSelectorsInput, + PutEventSelectorsInputDict as PutEventSelectorsInputDict, PutEventSelectorsOutput as PutEventSelectorsOutput, PutInsightSelectorsInput as PutInsightSelectorsInput, + PutInsightSelectorsInputDict as PutInsightSelectorsInputDict, PutInsightSelectorsOutput as PutInsightSelectorsOutput, PutResourcePolicyInput as PutResourcePolicyInput, + PutResourcePolicyInputDict as PutResourcePolicyInputDict, PutResourcePolicyOutput as PutResourcePolicyOutput, Query as Query, QueryIdNotFoundException as QueryIdNotFoundException, @@ -212,14 +266,19 @@ from ._private.models_0 import ( QueryStatus as QueryStatus, ReadWriteType as ReadWriteType, RefreshSchedule as RefreshSchedule, + RefreshScheduleDict as RefreshScheduleDict, RefreshScheduleFrequency as RefreshScheduleFrequency, + RefreshScheduleFrequencyDict as RefreshScheduleFrequencyDict, RefreshScheduleFrequencyUnit as RefreshScheduleFrequencyUnit, RefreshScheduleStatus as RefreshScheduleStatus, RegisterOrganizationDelegatedAdminInput as RegisterOrganizationDelegatedAdminInput, + RegisterOrganizationDelegatedAdminInputDict as RegisterOrganizationDelegatedAdminInputDict, RegisterOrganizationDelegatedAdminOutput as RegisterOrganizationDelegatedAdminOutput, RemoveTagsInput as RemoveTagsInput, + RemoveTagsInputDict as RemoveTagsInputDict, RemoveTagsOutput as RemoveTagsOutput, RequestWidget as RequestWidget, + RequestWidgetDict as RequestWidgetDict, Resource as Resource, ResourceARNNotValidException as ResourceARNNotValidException, ResourceNotFoundException as ResourceNotFoundException, @@ -228,32 +287,44 @@ from ._private.models_0 import ( ResourceTag as ResourceTag, ResourceTypeNotSupportedException as ResourceTypeNotSupportedException, RestoreEventDataStoreInput as RestoreEventDataStoreInput, + RestoreEventDataStoreInputDict as RestoreEventDataStoreInputDict, RestoreEventDataStoreOutput as RestoreEventDataStoreOutput, S3BucketDoesNotExistException as S3BucketDoesNotExistException, S3ImportSource as S3ImportSource, + S3ImportSourceDict as S3ImportSourceDict, SearchSampleQueriesInput as SearchSampleQueriesInput, + SearchSampleQueriesInputDict as SearchSampleQueriesInputDict, SearchSampleQueriesOutput as SearchSampleQueriesOutput, SearchSampleQueriesSearchResult as SearchSampleQueriesSearchResult, ServiceQuotaExceededException as ServiceQuotaExceededException, SourceConfig as SourceConfig, SourceEventCategory as SourceEventCategory, StartDashboardRefreshInput as StartDashboardRefreshInput, + StartDashboardRefreshInputDict as StartDashboardRefreshInputDict, StartDashboardRefreshOutput as StartDashboardRefreshOutput, StartEventDataStoreIngestionInput as StartEventDataStoreIngestionInput, + StartEventDataStoreIngestionInputDict as StartEventDataStoreIngestionInputDict, StartEventDataStoreIngestionOutput as StartEventDataStoreIngestionOutput, StartImportInput as StartImportInput, + StartImportInputDict as StartImportInputDict, StartImportOutput as StartImportOutput, StartLoggingInput as StartLoggingInput, + StartLoggingInputDict as StartLoggingInputDict, StartLoggingOutput as StartLoggingOutput, StartQueryInput as StartQueryInput, + StartQueryInputDict as StartQueryInputDict, StartQueryOutput as StartQueryOutput, StopEventDataStoreIngestionInput as StopEventDataStoreIngestionInput, + StopEventDataStoreIngestionInputDict as StopEventDataStoreIngestionInputDict, StopEventDataStoreIngestionOutput as StopEventDataStoreIngestionOutput, StopImportInput as StopImportInput, + StopImportInputDict as StopImportInputDict, StopImportOutput as StopImportOutput, StopLoggingInput as StopLoggingInput, + StopLoggingInputDict as StopLoggingInputDict, StopLoggingOutput as StopLoggingOutput, Tag as Tag, + TagDict as TagDict, TagsLimitExceededException as TagsLimitExceededException, Template as Template, ThrottlingException as ThrottlingException, @@ -268,12 +339,16 @@ from ._private.models_1 import ( Type as Type, UnsupportedOperationException as UnsupportedOperationException, UpdateChannelInput as UpdateChannelInput, + UpdateChannelInputDict as UpdateChannelInputDict, UpdateChannelOutput as UpdateChannelOutput, UpdateDashboardInput as UpdateDashboardInput, + UpdateDashboardInputDict as UpdateDashboardInputDict, UpdateDashboardOutput as UpdateDashboardOutput, UpdateEventDataStoreInput as UpdateEventDataStoreInput, + UpdateEventDataStoreInputDict as UpdateEventDataStoreInputDict, UpdateEventDataStoreOutput as UpdateEventDataStoreOutput, UpdateTrailInput as UpdateTrailInput, + UpdateTrailInputDict as UpdateTrailInputDict, UpdateTrailOutput as UpdateTrailOutput, Widget as Widget, ) diff --git a/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/py.typed b/clients/aws-sdk-cloudtrail/src/aws_sdk_cloudtrail/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-cloudtrail/tests/_typecheck.py b/clients/aws-sdk-cloudtrail/tests/_typecheck.py index 0ce532a06..2d10117db 100644 --- a/clients/aws-sdk-cloudtrail/tests/_typecheck.py +++ b/clients/aws-sdk-cloudtrail/tests/_typecheck.py @@ -2,167 +2,245 @@ from typing import Any +from aws_sdk_cloudtrail.aio.client import AsyncCloudTrailClient +from aws_sdk_cloudtrail.client import CloudTrailClient from aws_sdk_cloudtrail.models import ( AddTagsInput, + AddTagsInputDict, AddTagsOutput, AdvancedEventSelector, + AdvancedEventSelectorDict, AdvancedFieldSelector, + AdvancedFieldSelectorDict, AggregationConfiguration, + AggregationConfigurationDict, CancelQueryInput, + CancelQueryInputDict, CancelQueryOutput, Channel, ContextKeySelector, + ContextKeySelectorDict, CreateChannelInput, + CreateChannelInputDict, CreateChannelOutput, CreateDashboardInput, + CreateDashboardInputDict, CreateDashboardOutput, CreateEventDataStoreInput, + CreateEventDataStoreInputDict, CreateEventDataStoreOutput, CreateTrailInput, + CreateTrailInputDict, CreateTrailOutput, DashboardDetail, DataResource, + DataResourceDict, DeleteChannelInput, + DeleteChannelInputDict, DeleteChannelOutput, DeleteDashboardInput, + DeleteDashboardInputDict, DeleteDashboardOutput, DeleteEventDataStoreInput, + DeleteEventDataStoreInputDict, DeleteEventDataStoreOutput, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DeleteTrailInput, + DeleteTrailInputDict, DeleteTrailOutput, DeregisterOrganizationDelegatedAdminInput, + DeregisterOrganizationDelegatedAdminInputDict, DeregisterOrganizationDelegatedAdminOutput, DescribeQueryInput, + DescribeQueryInputDict, DescribeQueryOutput, DescribeTrailsInput, + DescribeTrailsInputDict, DescribeTrailsOutput, Destination, + DestinationDict, DisableFederationInput, + DisableFederationInputDict, DisableFederationOutput, EnableFederationInput, + EnableFederationInputDict, EnableFederationOutput, Event, EventDataStore, EventSelector, + EventSelectorDict, GenerateQueryInput, + GenerateQueryInputDict, GenerateQueryOutput, GetChannelInput, + GetChannelInputDict, GetChannelOutput, GetDashboardInput, + GetDashboardInputDict, GetDashboardOutput, GetEventConfigurationInput, + GetEventConfigurationInputDict, GetEventConfigurationOutput, GetEventDataStoreInput, + GetEventDataStoreInputDict, GetEventDataStoreOutput, GetEventSelectorsInput, + GetEventSelectorsInputDict, GetEventSelectorsOutput, GetImportInput, + GetImportInputDict, GetImportOutput, GetInsightSelectorsInput, + GetInsightSelectorsInputDict, GetInsightSelectorsOutput, GetQueryResultsInput, + GetQueryResultsInputDict, GetQueryResultsOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GetTrailInput, + GetTrailInputDict, GetTrailOutput, GetTrailStatusInput, + GetTrailStatusInputDict, GetTrailStatusOutput, ImportFailureListItem, ImportSource, + ImportSourceDict, ImportStatistics, ImportsListItem, IngestionStatus, InsightSelector, + InsightSelectorDict, ListChannelsInput, + ListChannelsInputDict, ListChannelsOutput, ListDashboardsInput, + ListDashboardsInputDict, ListDashboardsOutput, ListEventDataStoresInput, + ListEventDataStoresInputDict, ListEventDataStoresOutput, ListImportFailuresInput, + ListImportFailuresInputDict, ListImportFailuresOutput, ListImportsInput, + ListImportsInputDict, ListImportsOutput, ListInsightsDataInput, + ListInsightsDataInputDict, ListInsightsDataOutput, ListInsightsMetricDataInput, + ListInsightsMetricDataInputDict, ListInsightsMetricDataOutput, ListPublicKeysInput, + ListPublicKeysInputDict, ListPublicKeysOutput, ListQueriesInput, + ListQueriesInputDict, ListQueriesOutput, ListTagsInput, + ListTagsInputDict, ListTagsOutput, ListTrailsInput, + ListTrailsInputDict, ListTrailsOutput, LookupAttribute, + LookupAttributeDict, LookupEventsInput, + LookupEventsInputDict, LookupEventsOutput, PartitionKey, PublicKey, PutEventConfigurationInput, + PutEventConfigurationInputDict, PutEventConfigurationOutput, PutEventSelectorsInput, + PutEventSelectorsInputDict, PutEventSelectorsOutput, PutInsightSelectorsInput, + PutInsightSelectorsInputDict, PutInsightSelectorsOutput, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, Query, QueryStatistics, QueryStatisticsForDescribeQuery, RefreshSchedule, + RefreshScheduleDict, RefreshScheduleFrequency, + RefreshScheduleFrequencyDict, RegisterOrganizationDelegatedAdminInput, + RegisterOrganizationDelegatedAdminInputDict, RegisterOrganizationDelegatedAdminOutput, RemoveTagsInput, + RemoveTagsInputDict, RemoveTagsOutput, RequestWidget, + RequestWidgetDict, Resource, ResourceTag, RestoreEventDataStoreInput, + RestoreEventDataStoreInputDict, RestoreEventDataStoreOutput, S3ImportSource, + S3ImportSourceDict, SearchSampleQueriesInput, + SearchSampleQueriesInputDict, SearchSampleQueriesOutput, SearchSampleQueriesSearchResult, SourceConfig, StartDashboardRefreshInput, + StartDashboardRefreshInputDict, StartDashboardRefreshOutput, StartEventDataStoreIngestionInput, + StartEventDataStoreIngestionInputDict, StartEventDataStoreIngestionOutput, StartImportInput, + StartImportInputDict, StartImportOutput, StartLoggingInput, + StartLoggingInputDict, StartLoggingOutput, StartQueryInput, + StartQueryInputDict, StartQueryOutput, StopEventDataStoreIngestionInput, + StopEventDataStoreIngestionInputDict, StopEventDataStoreIngestionOutput, StopImportInput, + StopImportInputDict, StopImportOutput, StopLoggingInput, + StopLoggingInputDict, StopLoggingOutput, Tag, + TagDict, Trail, TrailInfo, UpdateChannelInput, + UpdateChannelInputDict, UpdateChannelOutput, UpdateDashboardInput, + UpdateDashboardInputDict, UpdateDashboardOutput, UpdateEventDataStoreInput, + UpdateEventDataStoreInputDict, UpdateEventDataStoreOutput, UpdateTrailInput, + UpdateTrailInputDict, UpdateTrailOutput, Widget, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -321,3 +399,627 @@ UpdateTrailInput() UpdateTrailOutput() Widget() +_params_0: AddTagsInputDict = {"resource_id": _, "tags_list": _} +_params_1: AdvancedEventSelectorDict = {"field_selectors": _} +_params_2: AdvancedFieldSelectorDict = {"field": _} +_params_3: AggregationConfigurationDict = {"templates": _, "event_category": _} +_params_4: CancelQueryInputDict = {"query_id": _} +_params_5: ContextKeySelectorDict = {"type": _, "equals": _} +_params_6: CreateChannelInputDict = {"name": _, "source": _, "destinations": _} +_params_7: CreateDashboardInputDict = {"name": _} +_params_8: CreateEventDataStoreInputDict = {"name": _} +_params_9: CreateTrailInputDict = {"name": _, "s3_bucket_name": _} +_params_10: DataResourceDict = {} +_params_11: DeleteChannelInputDict = {"channel": _} +_params_12: DeleteDashboardInputDict = {"dashboard_id": _} +_params_13: DeleteEventDataStoreInputDict = {"event_data_store": _} +_params_14: DeleteResourcePolicyInputDict = {"resource_arn": _} +_params_15: DeleteTrailInputDict = {"name": _} +_params_16: DeregisterOrganizationDelegatedAdminInputDict = { + "delegated_admin_account_id": _ +} +_params_17: DescribeQueryInputDict = {} +_params_18: DescribeTrailsInputDict = {} +_params_19: DestinationDict = {"type": _, "location": _} +_params_20: DisableFederationInputDict = {"event_data_store": _} +_params_21: EnableFederationInputDict = { + "event_data_store": _, + "federation_role_arn": _, +} +_params_22: EventSelectorDict = {} +_params_23: GenerateQueryInputDict = {"event_data_stores": _, "prompt": _} +_params_24: GetChannelInputDict = {"channel": _} +_params_25: GetDashboardInputDict = {"dashboard_id": _} +_params_26: GetEventConfigurationInputDict = {} +_params_27: GetEventDataStoreInputDict = {"event_data_store": _} +_params_28: GetEventSelectorsInputDict = {"trail_name": _} +_params_29: GetImportInputDict = {"import_id": _} +_params_30: GetInsightSelectorsInputDict = {} +_params_31: GetQueryResultsInputDict = {"query_id": _} +_params_32: GetResourcePolicyInputDict = {"resource_arn": _} +_params_33: GetTrailInputDict = {"name": _} +_params_34: GetTrailStatusInputDict = {"name": _} +_params_35: ImportSourceDict = {"s3": _} +_params_36: InsightSelectorDict = {} +_params_37: ListChannelsInputDict = {} +_params_38: ListDashboardsInputDict = {} +_params_39: ListEventDataStoresInputDict = {} +_params_40: ListImportFailuresInputDict = {"import_id": _} +_params_41: ListImportsInputDict = {} +_params_42: ListInsightsDataInputDict = {"insight_source": _, "data_type": _} +_params_43: ListInsightsMetricDataInputDict = { + "event_source": _, + "event_name": _, + "insight_type": _, +} +_params_44: ListPublicKeysInputDict = {} +_params_45: ListQueriesInputDict = {"event_data_store": _} +_params_46: ListTagsInputDict = {"resource_id_list": _} +_params_47: ListTrailsInputDict = {} +_params_48: LookupAttributeDict = {"attribute_key": _, "attribute_value": _} +_params_49: LookupEventsInputDict = {} +_params_50: PutEventConfigurationInputDict = {} +_params_51: PutEventSelectorsInputDict = {"trail_name": _} +_params_52: PutInsightSelectorsInputDict = {"insight_selectors": _} +_params_53: PutResourcePolicyInputDict = {"resource_arn": _, "resource_policy": _} +_params_54: RefreshScheduleDict = {} +_params_55: RefreshScheduleFrequencyDict = {} +_params_56: RegisterOrganizationDelegatedAdminInputDict = {"member_account_id": _} +_params_57: RemoveTagsInputDict = {"resource_id": _, "tags_list": _} +_params_58: RequestWidgetDict = {"query_statement": _, "view_properties": _} +_params_59: RestoreEventDataStoreInputDict = {"event_data_store": _} +_params_60: S3ImportSourceDict = { + "s3_location_uri": _, + "s3_bucket_region": _, + "s3_bucket_access_role_arn": _, +} +_params_61: SearchSampleQueriesInputDict = {"search_phrase": _} +_params_62: StartDashboardRefreshInputDict = {"dashboard_id": _} +_params_63: StartEventDataStoreIngestionInputDict = {"event_data_store": _} +_params_64: StartImportInputDict = {} +_params_65: StartLoggingInputDict = {"name": _} +_params_66: StartQueryInputDict = {} +_params_67: StopEventDataStoreIngestionInputDict = {"event_data_store": _} +_params_68: StopImportInputDict = {"import_id": _} +_params_69: StopLoggingInputDict = {"name": _} +_params_70: TagDict = {"key": _} +_params_71: UpdateChannelInputDict = {"channel": _} +_params_72: UpdateDashboardInputDict = {"dashboard_id": _} +_params_73: UpdateEventDataStoreInputDict = {"event_data_store": _} +_params_74: UpdateTrailInputDict = {"name": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncCloudTrailClient) -> None: + pass + await client.add_tags(resource_id=_, tags_list=_) + await client.add_tags(**_request(AddTagsInputDict)) + await client.add_tags(_request(AddTagsInput)) + await client.add_tags(_request(AddTagsInputDict)) + await client.cancel_query(query_id=_) + await client.cancel_query(**_request(CancelQueryInputDict)) + await client.cancel_query(_request(CancelQueryInput)) + await client.cancel_query(_request(CancelQueryInputDict)) + await client.create_channel(name=_, source=_, destinations=_) + await client.create_channel(**_request(CreateChannelInputDict)) + await client.create_channel(_request(CreateChannelInput)) + await client.create_channel(_request(CreateChannelInputDict)) + await client.create_dashboard(name=_) + await client.create_dashboard(**_request(CreateDashboardInputDict)) + await client.create_dashboard(_request(CreateDashboardInput)) + await client.create_dashboard(_request(CreateDashboardInputDict)) + await client.create_event_data_store(name=_) + await client.create_event_data_store(**_request(CreateEventDataStoreInputDict)) + await client.create_event_data_store(_request(CreateEventDataStoreInput)) + await client.create_event_data_store(_request(CreateEventDataStoreInputDict)) + await client.create_trail(name=_, s3_bucket_name=_) + await client.create_trail(**_request(CreateTrailInputDict)) + await client.create_trail(_request(CreateTrailInput)) + await client.create_trail(_request(CreateTrailInputDict)) + await client.delete_channel(channel=_) + await client.delete_channel(**_request(DeleteChannelInputDict)) + await client.delete_channel(_request(DeleteChannelInput)) + await client.delete_channel(_request(DeleteChannelInputDict)) + await client.delete_dashboard(dashboard_id=_) + await client.delete_dashboard(**_request(DeleteDashboardInputDict)) + await client.delete_dashboard(_request(DeleteDashboardInput)) + await client.delete_dashboard(_request(DeleteDashboardInputDict)) + await client.delete_event_data_store(event_data_store=_) + await client.delete_event_data_store(**_request(DeleteEventDataStoreInputDict)) + await client.delete_event_data_store(_request(DeleteEventDataStoreInput)) + await client.delete_event_data_store(_request(DeleteEventDataStoreInputDict)) + await client.delete_resource_policy(resource_arn=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.delete_trail(name=_) + await client.delete_trail(**_request(DeleteTrailInputDict)) + await client.delete_trail(_request(DeleteTrailInput)) + await client.delete_trail(_request(DeleteTrailInputDict)) + await client.deregister_organization_delegated_admin(delegated_admin_account_id=_) + await client.deregister_organization_delegated_admin( + **_request(DeregisterOrganizationDelegatedAdminInputDict) + ) + await client.deregister_organization_delegated_admin( + _request(DeregisterOrganizationDelegatedAdminInput) + ) + await client.deregister_organization_delegated_admin( + _request(DeregisterOrganizationDelegatedAdminInputDict) + ) + await client.describe_query() + await client.describe_query(**_request(DescribeQueryInputDict)) + await client.describe_query(_request(DescribeQueryInput)) + await client.describe_query(_request(DescribeQueryInputDict)) + await client.describe_trails() + await client.describe_trails(**_request(DescribeTrailsInputDict)) + await client.describe_trails(_request(DescribeTrailsInput)) + await client.describe_trails(_request(DescribeTrailsInputDict)) + await client.disable_federation(event_data_store=_) + await client.disable_federation(**_request(DisableFederationInputDict)) + await client.disable_federation(_request(DisableFederationInput)) + await client.disable_federation(_request(DisableFederationInputDict)) + await client.enable_federation(event_data_store=_, federation_role_arn=_) + await client.enable_federation(**_request(EnableFederationInputDict)) + await client.enable_federation(_request(EnableFederationInput)) + await client.enable_federation(_request(EnableFederationInputDict)) + await client.generate_query(event_data_stores=_, prompt=_) + await client.generate_query(**_request(GenerateQueryInputDict)) + await client.generate_query(_request(GenerateQueryInput)) + await client.generate_query(_request(GenerateQueryInputDict)) + await client.get_channel(channel=_) + await client.get_channel(**_request(GetChannelInputDict)) + await client.get_channel(_request(GetChannelInput)) + await client.get_channel(_request(GetChannelInputDict)) + await client.get_dashboard(dashboard_id=_) + await client.get_dashboard(**_request(GetDashboardInputDict)) + await client.get_dashboard(_request(GetDashboardInput)) + await client.get_dashboard(_request(GetDashboardInputDict)) + await client.get_event_configuration() + await client.get_event_configuration(**_request(GetEventConfigurationInputDict)) + await client.get_event_configuration(_request(GetEventConfigurationInput)) + await client.get_event_configuration(_request(GetEventConfigurationInputDict)) + await client.get_event_data_store(event_data_store=_) + await client.get_event_data_store(**_request(GetEventDataStoreInputDict)) + await client.get_event_data_store(_request(GetEventDataStoreInput)) + await client.get_event_data_store(_request(GetEventDataStoreInputDict)) + await client.get_event_selectors(trail_name=_) + await client.get_event_selectors(**_request(GetEventSelectorsInputDict)) + await client.get_event_selectors(_request(GetEventSelectorsInput)) + await client.get_event_selectors(_request(GetEventSelectorsInputDict)) + await client.get_import(import_id=_) + await client.get_import(**_request(GetImportInputDict)) + await client.get_import(_request(GetImportInput)) + await client.get_import(_request(GetImportInputDict)) + await client.get_insight_selectors() + await client.get_insight_selectors(**_request(GetInsightSelectorsInputDict)) + await client.get_insight_selectors(_request(GetInsightSelectorsInput)) + await client.get_insight_selectors(_request(GetInsightSelectorsInputDict)) + await client.get_query_results(query_id=_) + await client.get_query_results(**_request(GetQueryResultsInputDict)) + await client.get_query_results(_request(GetQueryResultsInput)) + await client.get_query_results(_request(GetQueryResultsInputDict)) + await client.get_resource_policy(resource_arn=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.get_trail(name=_) + await client.get_trail(**_request(GetTrailInputDict)) + await client.get_trail(_request(GetTrailInput)) + await client.get_trail(_request(GetTrailInputDict)) + await client.get_trail_status(name=_) + await client.get_trail_status(**_request(GetTrailStatusInputDict)) + await client.get_trail_status(_request(GetTrailStatusInput)) + await client.get_trail_status(_request(GetTrailStatusInputDict)) + await client.list_channels() + await client.list_channels(**_request(ListChannelsInputDict)) + await client.list_channels(_request(ListChannelsInput)) + await client.list_channels(_request(ListChannelsInputDict)) + await client.list_dashboards() + await client.list_dashboards(**_request(ListDashboardsInputDict)) + await client.list_dashboards(_request(ListDashboardsInput)) + await client.list_dashboards(_request(ListDashboardsInputDict)) + await client.list_event_data_stores() + await client.list_event_data_stores(**_request(ListEventDataStoresInputDict)) + await client.list_event_data_stores(_request(ListEventDataStoresInput)) + await client.list_event_data_stores(_request(ListEventDataStoresInputDict)) + await client.list_import_failures(import_id=_) + await client.list_import_failures(**_request(ListImportFailuresInputDict)) + await client.list_import_failures(_request(ListImportFailuresInput)) + await client.list_import_failures(_request(ListImportFailuresInputDict)) + await client.list_imports() + await client.list_imports(**_request(ListImportsInputDict)) + await client.list_imports(_request(ListImportsInput)) + await client.list_imports(_request(ListImportsInputDict)) + await client.list_insights_data(insight_source=_, data_type=_) + await client.list_insights_data(**_request(ListInsightsDataInputDict)) + await client.list_insights_data(_request(ListInsightsDataInput)) + await client.list_insights_data(_request(ListInsightsDataInputDict)) + await client.list_insights_metric_data(event_source=_, event_name=_, insight_type=_) + await client.list_insights_metric_data(**_request(ListInsightsMetricDataInputDict)) + await client.list_insights_metric_data(_request(ListInsightsMetricDataInput)) + await client.list_insights_metric_data(_request(ListInsightsMetricDataInputDict)) + await client.list_public_keys() + await client.list_public_keys(**_request(ListPublicKeysInputDict)) + await client.list_public_keys(_request(ListPublicKeysInput)) + await client.list_public_keys(_request(ListPublicKeysInputDict)) + await client.list_queries(event_data_store=_) + await client.list_queries(**_request(ListQueriesInputDict)) + await client.list_queries(_request(ListQueriesInput)) + await client.list_queries(_request(ListQueriesInputDict)) + await client.list_tags(resource_id_list=_) + await client.list_tags(**_request(ListTagsInputDict)) + await client.list_tags(_request(ListTagsInput)) + await client.list_tags(_request(ListTagsInputDict)) + await client.list_trails() + await client.list_trails(**_request(ListTrailsInputDict)) + await client.list_trails(_request(ListTrailsInput)) + await client.list_trails(_request(ListTrailsInputDict)) + await client.lookup_events() + await client.lookup_events(**_request(LookupEventsInputDict)) + await client.lookup_events(_request(LookupEventsInput)) + await client.lookup_events(_request(LookupEventsInputDict)) + await client.put_event_configuration() + await client.put_event_configuration(**_request(PutEventConfigurationInputDict)) + await client.put_event_configuration(_request(PutEventConfigurationInput)) + await client.put_event_configuration(_request(PutEventConfigurationInputDict)) + await client.put_event_selectors(trail_name=_) + await client.put_event_selectors(**_request(PutEventSelectorsInputDict)) + await client.put_event_selectors(_request(PutEventSelectorsInput)) + await client.put_event_selectors(_request(PutEventSelectorsInputDict)) + await client.put_insight_selectors(insight_selectors=_) + await client.put_insight_selectors(**_request(PutInsightSelectorsInputDict)) + await client.put_insight_selectors(_request(PutInsightSelectorsInput)) + await client.put_insight_selectors(_request(PutInsightSelectorsInputDict)) + await client.put_resource_policy(resource_arn=_, resource_policy=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.register_organization_delegated_admin(member_account_id=_) + await client.register_organization_delegated_admin( + **_request(RegisterOrganizationDelegatedAdminInputDict) + ) + await client.register_organization_delegated_admin( + _request(RegisterOrganizationDelegatedAdminInput) + ) + await client.register_organization_delegated_admin( + _request(RegisterOrganizationDelegatedAdminInputDict) + ) + await client.remove_tags(resource_id=_, tags_list=_) + await client.remove_tags(**_request(RemoveTagsInputDict)) + await client.remove_tags(_request(RemoveTagsInput)) + await client.remove_tags(_request(RemoveTagsInputDict)) + await client.restore_event_data_store(event_data_store=_) + await client.restore_event_data_store(**_request(RestoreEventDataStoreInputDict)) + await client.restore_event_data_store(_request(RestoreEventDataStoreInput)) + await client.restore_event_data_store(_request(RestoreEventDataStoreInputDict)) + await client.search_sample_queries(search_phrase=_) + await client.search_sample_queries(**_request(SearchSampleQueriesInputDict)) + await client.search_sample_queries(_request(SearchSampleQueriesInput)) + await client.search_sample_queries(_request(SearchSampleQueriesInputDict)) + await client.start_dashboard_refresh(dashboard_id=_) + await client.start_dashboard_refresh(**_request(StartDashboardRefreshInputDict)) + await client.start_dashboard_refresh(_request(StartDashboardRefreshInput)) + await client.start_dashboard_refresh(_request(StartDashboardRefreshInputDict)) + await client.start_event_data_store_ingestion(event_data_store=_) + await client.start_event_data_store_ingestion( + **_request(StartEventDataStoreIngestionInputDict) + ) + await client.start_event_data_store_ingestion( + _request(StartEventDataStoreIngestionInput) + ) + await client.start_event_data_store_ingestion( + _request(StartEventDataStoreIngestionInputDict) + ) + await client.start_import() + await client.start_import(**_request(StartImportInputDict)) + await client.start_import(_request(StartImportInput)) + await client.start_import(_request(StartImportInputDict)) + await client.start_logging(name=_) + await client.start_logging(**_request(StartLoggingInputDict)) + await client.start_logging(_request(StartLoggingInput)) + await client.start_logging(_request(StartLoggingInputDict)) + await client.start_query() + await client.start_query(**_request(StartQueryInputDict)) + await client.start_query(_request(StartQueryInput)) + await client.start_query(_request(StartQueryInputDict)) + await client.stop_event_data_store_ingestion(event_data_store=_) + await client.stop_event_data_store_ingestion( + **_request(StopEventDataStoreIngestionInputDict) + ) + await client.stop_event_data_store_ingestion( + _request(StopEventDataStoreIngestionInput) + ) + await client.stop_event_data_store_ingestion( + _request(StopEventDataStoreIngestionInputDict) + ) + await client.stop_import(import_id=_) + await client.stop_import(**_request(StopImportInputDict)) + await client.stop_import(_request(StopImportInput)) + await client.stop_import(_request(StopImportInputDict)) + await client.stop_logging(name=_) + await client.stop_logging(**_request(StopLoggingInputDict)) + await client.stop_logging(_request(StopLoggingInput)) + await client.stop_logging(_request(StopLoggingInputDict)) + await client.update_channel(channel=_) + await client.update_channel(**_request(UpdateChannelInputDict)) + await client.update_channel(_request(UpdateChannelInput)) + await client.update_channel(_request(UpdateChannelInputDict)) + await client.update_dashboard(dashboard_id=_) + await client.update_dashboard(**_request(UpdateDashboardInputDict)) + await client.update_dashboard(_request(UpdateDashboardInput)) + await client.update_dashboard(_request(UpdateDashboardInputDict)) + await client.update_event_data_store(event_data_store=_) + await client.update_event_data_store(**_request(UpdateEventDataStoreInputDict)) + await client.update_event_data_store(_request(UpdateEventDataStoreInput)) + await client.update_event_data_store(_request(UpdateEventDataStoreInputDict)) + await client.update_trail(name=_) + await client.update_trail(**_request(UpdateTrailInputDict)) + await client.update_trail(_request(UpdateTrailInput)) + await client.update_trail(_request(UpdateTrailInputDict)) + + +def check_sync_calls(client: CloudTrailClient) -> None: + pass + client.add_tags(resource_id=_, tags_list=_) + client.add_tags(**_request(AddTagsInputDict)) + client.add_tags(_request(AddTagsInput)) + client.add_tags(_request(AddTagsInputDict)) + client.cancel_query(query_id=_) + client.cancel_query(**_request(CancelQueryInputDict)) + client.cancel_query(_request(CancelQueryInput)) + client.cancel_query(_request(CancelQueryInputDict)) + client.create_channel(name=_, source=_, destinations=_) + client.create_channel(**_request(CreateChannelInputDict)) + client.create_channel(_request(CreateChannelInput)) + client.create_channel(_request(CreateChannelInputDict)) + client.create_dashboard(name=_) + client.create_dashboard(**_request(CreateDashboardInputDict)) + client.create_dashboard(_request(CreateDashboardInput)) + client.create_dashboard(_request(CreateDashboardInputDict)) + client.create_event_data_store(name=_) + client.create_event_data_store(**_request(CreateEventDataStoreInputDict)) + client.create_event_data_store(_request(CreateEventDataStoreInput)) + client.create_event_data_store(_request(CreateEventDataStoreInputDict)) + client.create_trail(name=_, s3_bucket_name=_) + client.create_trail(**_request(CreateTrailInputDict)) + client.create_trail(_request(CreateTrailInput)) + client.create_trail(_request(CreateTrailInputDict)) + client.delete_channel(channel=_) + client.delete_channel(**_request(DeleteChannelInputDict)) + client.delete_channel(_request(DeleteChannelInput)) + client.delete_channel(_request(DeleteChannelInputDict)) + client.delete_dashboard(dashboard_id=_) + client.delete_dashboard(**_request(DeleteDashboardInputDict)) + client.delete_dashboard(_request(DeleteDashboardInput)) + client.delete_dashboard(_request(DeleteDashboardInputDict)) + client.delete_event_data_store(event_data_store=_) + client.delete_event_data_store(**_request(DeleteEventDataStoreInputDict)) + client.delete_event_data_store(_request(DeleteEventDataStoreInput)) + client.delete_event_data_store(_request(DeleteEventDataStoreInputDict)) + client.delete_resource_policy(resource_arn=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.delete_trail(name=_) + client.delete_trail(**_request(DeleteTrailInputDict)) + client.delete_trail(_request(DeleteTrailInput)) + client.delete_trail(_request(DeleteTrailInputDict)) + client.deregister_organization_delegated_admin(delegated_admin_account_id=_) + client.deregister_organization_delegated_admin( + **_request(DeregisterOrganizationDelegatedAdminInputDict) + ) + client.deregister_organization_delegated_admin( + _request(DeregisterOrganizationDelegatedAdminInput) + ) + client.deregister_organization_delegated_admin( + _request(DeregisterOrganizationDelegatedAdminInputDict) + ) + client.describe_query() + client.describe_query(**_request(DescribeQueryInputDict)) + client.describe_query(_request(DescribeQueryInput)) + client.describe_query(_request(DescribeQueryInputDict)) + client.describe_trails() + client.describe_trails(**_request(DescribeTrailsInputDict)) + client.describe_trails(_request(DescribeTrailsInput)) + client.describe_trails(_request(DescribeTrailsInputDict)) + client.disable_federation(event_data_store=_) + client.disable_federation(**_request(DisableFederationInputDict)) + client.disable_federation(_request(DisableFederationInput)) + client.disable_federation(_request(DisableFederationInputDict)) + client.enable_federation(event_data_store=_, federation_role_arn=_) + client.enable_federation(**_request(EnableFederationInputDict)) + client.enable_federation(_request(EnableFederationInput)) + client.enable_federation(_request(EnableFederationInputDict)) + client.generate_query(event_data_stores=_, prompt=_) + client.generate_query(**_request(GenerateQueryInputDict)) + client.generate_query(_request(GenerateQueryInput)) + client.generate_query(_request(GenerateQueryInputDict)) + client.get_channel(channel=_) + client.get_channel(**_request(GetChannelInputDict)) + client.get_channel(_request(GetChannelInput)) + client.get_channel(_request(GetChannelInputDict)) + client.get_dashboard(dashboard_id=_) + client.get_dashboard(**_request(GetDashboardInputDict)) + client.get_dashboard(_request(GetDashboardInput)) + client.get_dashboard(_request(GetDashboardInputDict)) + client.get_event_configuration() + client.get_event_configuration(**_request(GetEventConfigurationInputDict)) + client.get_event_configuration(_request(GetEventConfigurationInput)) + client.get_event_configuration(_request(GetEventConfigurationInputDict)) + client.get_event_data_store(event_data_store=_) + client.get_event_data_store(**_request(GetEventDataStoreInputDict)) + client.get_event_data_store(_request(GetEventDataStoreInput)) + client.get_event_data_store(_request(GetEventDataStoreInputDict)) + client.get_event_selectors(trail_name=_) + client.get_event_selectors(**_request(GetEventSelectorsInputDict)) + client.get_event_selectors(_request(GetEventSelectorsInput)) + client.get_event_selectors(_request(GetEventSelectorsInputDict)) + client.get_import(import_id=_) + client.get_import(**_request(GetImportInputDict)) + client.get_import(_request(GetImportInput)) + client.get_import(_request(GetImportInputDict)) + client.get_insight_selectors() + client.get_insight_selectors(**_request(GetInsightSelectorsInputDict)) + client.get_insight_selectors(_request(GetInsightSelectorsInput)) + client.get_insight_selectors(_request(GetInsightSelectorsInputDict)) + client.get_query_results(query_id=_) + client.get_query_results(**_request(GetQueryResultsInputDict)) + client.get_query_results(_request(GetQueryResultsInput)) + client.get_query_results(_request(GetQueryResultsInputDict)) + client.get_resource_policy(resource_arn=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.get_trail(name=_) + client.get_trail(**_request(GetTrailInputDict)) + client.get_trail(_request(GetTrailInput)) + client.get_trail(_request(GetTrailInputDict)) + client.get_trail_status(name=_) + client.get_trail_status(**_request(GetTrailStatusInputDict)) + client.get_trail_status(_request(GetTrailStatusInput)) + client.get_trail_status(_request(GetTrailStatusInputDict)) + client.list_channels() + client.list_channels(**_request(ListChannelsInputDict)) + client.list_channels(_request(ListChannelsInput)) + client.list_channels(_request(ListChannelsInputDict)) + client.list_dashboards() + client.list_dashboards(**_request(ListDashboardsInputDict)) + client.list_dashboards(_request(ListDashboardsInput)) + client.list_dashboards(_request(ListDashboardsInputDict)) + client.list_event_data_stores() + client.list_event_data_stores(**_request(ListEventDataStoresInputDict)) + client.list_event_data_stores(_request(ListEventDataStoresInput)) + client.list_event_data_stores(_request(ListEventDataStoresInputDict)) + client.list_import_failures(import_id=_) + client.list_import_failures(**_request(ListImportFailuresInputDict)) + client.list_import_failures(_request(ListImportFailuresInput)) + client.list_import_failures(_request(ListImportFailuresInputDict)) + client.list_imports() + client.list_imports(**_request(ListImportsInputDict)) + client.list_imports(_request(ListImportsInput)) + client.list_imports(_request(ListImportsInputDict)) + client.list_insights_data(insight_source=_, data_type=_) + client.list_insights_data(**_request(ListInsightsDataInputDict)) + client.list_insights_data(_request(ListInsightsDataInput)) + client.list_insights_data(_request(ListInsightsDataInputDict)) + client.list_insights_metric_data(event_source=_, event_name=_, insight_type=_) + client.list_insights_metric_data(**_request(ListInsightsMetricDataInputDict)) + client.list_insights_metric_data(_request(ListInsightsMetricDataInput)) + client.list_insights_metric_data(_request(ListInsightsMetricDataInputDict)) + client.list_public_keys() + client.list_public_keys(**_request(ListPublicKeysInputDict)) + client.list_public_keys(_request(ListPublicKeysInput)) + client.list_public_keys(_request(ListPublicKeysInputDict)) + client.list_queries(event_data_store=_) + client.list_queries(**_request(ListQueriesInputDict)) + client.list_queries(_request(ListQueriesInput)) + client.list_queries(_request(ListQueriesInputDict)) + client.list_tags(resource_id_list=_) + client.list_tags(**_request(ListTagsInputDict)) + client.list_tags(_request(ListTagsInput)) + client.list_tags(_request(ListTagsInputDict)) + client.list_trails() + client.list_trails(**_request(ListTrailsInputDict)) + client.list_trails(_request(ListTrailsInput)) + client.list_trails(_request(ListTrailsInputDict)) + client.lookup_events() + client.lookup_events(**_request(LookupEventsInputDict)) + client.lookup_events(_request(LookupEventsInput)) + client.lookup_events(_request(LookupEventsInputDict)) + client.put_event_configuration() + client.put_event_configuration(**_request(PutEventConfigurationInputDict)) + client.put_event_configuration(_request(PutEventConfigurationInput)) + client.put_event_configuration(_request(PutEventConfigurationInputDict)) + client.put_event_selectors(trail_name=_) + client.put_event_selectors(**_request(PutEventSelectorsInputDict)) + client.put_event_selectors(_request(PutEventSelectorsInput)) + client.put_event_selectors(_request(PutEventSelectorsInputDict)) + client.put_insight_selectors(insight_selectors=_) + client.put_insight_selectors(**_request(PutInsightSelectorsInputDict)) + client.put_insight_selectors(_request(PutInsightSelectorsInput)) + client.put_insight_selectors(_request(PutInsightSelectorsInputDict)) + client.put_resource_policy(resource_arn=_, resource_policy=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.register_organization_delegated_admin(member_account_id=_) + client.register_organization_delegated_admin( + **_request(RegisterOrganizationDelegatedAdminInputDict) + ) + client.register_organization_delegated_admin( + _request(RegisterOrganizationDelegatedAdminInput) + ) + client.register_organization_delegated_admin( + _request(RegisterOrganizationDelegatedAdminInputDict) + ) + client.remove_tags(resource_id=_, tags_list=_) + client.remove_tags(**_request(RemoveTagsInputDict)) + client.remove_tags(_request(RemoveTagsInput)) + client.remove_tags(_request(RemoveTagsInputDict)) + client.restore_event_data_store(event_data_store=_) + client.restore_event_data_store(**_request(RestoreEventDataStoreInputDict)) + client.restore_event_data_store(_request(RestoreEventDataStoreInput)) + client.restore_event_data_store(_request(RestoreEventDataStoreInputDict)) + client.search_sample_queries(search_phrase=_) + client.search_sample_queries(**_request(SearchSampleQueriesInputDict)) + client.search_sample_queries(_request(SearchSampleQueriesInput)) + client.search_sample_queries(_request(SearchSampleQueriesInputDict)) + client.start_dashboard_refresh(dashboard_id=_) + client.start_dashboard_refresh(**_request(StartDashboardRefreshInputDict)) + client.start_dashboard_refresh(_request(StartDashboardRefreshInput)) + client.start_dashboard_refresh(_request(StartDashboardRefreshInputDict)) + client.start_event_data_store_ingestion(event_data_store=_) + client.start_event_data_store_ingestion( + **_request(StartEventDataStoreIngestionInputDict) + ) + client.start_event_data_store_ingestion(_request(StartEventDataStoreIngestionInput)) + client.start_event_data_store_ingestion( + _request(StartEventDataStoreIngestionInputDict) + ) + client.start_import() + client.start_import(**_request(StartImportInputDict)) + client.start_import(_request(StartImportInput)) + client.start_import(_request(StartImportInputDict)) + client.start_logging(name=_) + client.start_logging(**_request(StartLoggingInputDict)) + client.start_logging(_request(StartLoggingInput)) + client.start_logging(_request(StartLoggingInputDict)) + client.start_query() + client.start_query(**_request(StartQueryInputDict)) + client.start_query(_request(StartQueryInput)) + client.start_query(_request(StartQueryInputDict)) + client.stop_event_data_store_ingestion(event_data_store=_) + client.stop_event_data_store_ingestion( + **_request(StopEventDataStoreIngestionInputDict) + ) + client.stop_event_data_store_ingestion(_request(StopEventDataStoreIngestionInput)) + client.stop_event_data_store_ingestion( + _request(StopEventDataStoreIngestionInputDict) + ) + client.stop_import(import_id=_) + client.stop_import(**_request(StopImportInputDict)) + client.stop_import(_request(StopImportInput)) + client.stop_import(_request(StopImportInputDict)) + client.stop_logging(name=_) + client.stop_logging(**_request(StopLoggingInputDict)) + client.stop_logging(_request(StopLoggingInput)) + client.stop_logging(_request(StopLoggingInputDict)) + client.update_channel(channel=_) + client.update_channel(**_request(UpdateChannelInputDict)) + client.update_channel(_request(UpdateChannelInput)) + client.update_channel(_request(UpdateChannelInputDict)) + client.update_dashboard(dashboard_id=_) + client.update_dashboard(**_request(UpdateDashboardInputDict)) + client.update_dashboard(_request(UpdateDashboardInput)) + client.update_dashboard(_request(UpdateDashboardInputDict)) + client.update_event_data_store(event_data_store=_) + client.update_event_data_store(**_request(UpdateEventDataStoreInputDict)) + client.update_event_data_store(_request(UpdateEventDataStoreInput)) + client.update_event_data_store(_request(UpdateEventDataStoreInputDict)) + client.update_trail(name=_) + client.update_trail(**_request(UpdateTrailInputDict)) + client.update_trail(_request(UpdateTrailInput)) + client.update_trail(_request(UpdateTrailInputDict)) diff --git a/clients/aws-sdk-cognito-identity/pyproject.toml b/clients/aws-sdk-cognito-identity/pyproject.toml index 46a83e097..3479354f7 100644 --- a/clients/aws-sdk-cognito-identity/pyproject.toml +++ b/clients/aws-sdk-cognito-identity/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/_private/schemas.py b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/_private/schemas.py index e3c272df2..41ca2ee59 100644 --- a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/_private/schemas.py +++ b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/_private/schemas.py @@ -164,7 +164,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/aio/client.py b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/aio/client.py index 12efd9e13..780f06ae5 100644 --- a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/aio/client.py +++ b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,51 +20,28 @@ if TYPE_CHECKING: from ..models import ( - CreateIdentityPoolInput, CreateIdentityPoolOutput, - DeleteIdentitiesInput, DeleteIdentitiesOutput, - DeleteIdentityPoolInput, DeleteIdentityPoolOutput, - DescribeIdentityInput, DescribeIdentityOutput, - DescribeIdentityPoolInput, DescribeIdentityPoolOutput, - GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, - GetIdInput, GetIdOutput, - GetIdentityPoolRolesInput, GetIdentityPoolRolesOutput, - GetOpenIdTokenForDeveloperIdentityInput, GetOpenIdTokenForDeveloperIdentityOutput, - GetOpenIdTokenInput, GetOpenIdTokenOutput, - GetPrincipalTagAttributeMapInput, GetPrincipalTagAttributeMapOutput, - ListIdentitiesInput, ListIdentitiesOutput, - ListIdentityPoolsInput, ListIdentityPoolsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - LookupDeveloperIdentityInput, LookupDeveloperIdentityOutput, - MergeDeveloperIdentitiesInput, MergeDeveloperIdentitiesOutput, - SetIdentityPoolRolesInput, SetIdentityPoolRolesOutput, - SetPrincipalTagAttributeMapInput, SetPrincipalTagAttributeMapOutput, - TagResourceInput, TagResourceOutput, - UnlinkDeveloperIdentityInput, UnlinkDeveloperIdentityOutput, - UnlinkIdentityInput, UnlinkIdentityOutput, - UntagResourceInput, UntagResourceOutput, - UpdateIdentityPoolInput, UpdateIdentityPoolOutput, ) @@ -95,10 +72,24 @@ class AsyncCognitoIdentityClient(AsyncClient[AsyncCognitoIdentityConfig]): Identities](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def create_identity_pool( - self, input: CreateIdentityPoolInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateIdentityPoolInput | _models.CreateIdentityPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIdentityPoolOutput: ... + + @_overload + async def create_identity_pool( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIdentityPoolInputDict], ) -> CreateIdentityPoolOutput: """ Creates a new identity pool. The identity pool is a store of user @@ -125,8 +116,6 @@ async def create_identity_pool( operation. Args: - input: - An instance of `CreateIdentityPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -136,10 +125,33 @@ async def create_identity_pool( Returns: An instance of `CreateIdentityPoolOutput`. """ - return await self._invoke(input, _models.CREATE_IDENTITY_POOL, [], plugins) + async def create_identity_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIdentityPoolOutput: + return await self._invoke( + self._select_input(_models.CREATE_IDENTITY_POOL, args, kwargs), + _models.CREATE_IDENTITY_POOL, + [], + plugins, + ) + + @_overload + async def delete_identities( + self, + request: _models.DeleteIdentitiesInput | _models.DeleteIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIdentitiesOutput: ... + + @_overload async def delete_identities( - self, input: DeleteIdentitiesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIdentitiesInputDict], ) -> DeleteIdentitiesOutput: """ Deletes identities from an identity pool. You can specify a list of 1-60 @@ -149,8 +161,6 @@ async def delete_identities( operation. Args: - input: - An instance of `DeleteIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -160,10 +170,33 @@ async def delete_identities( Returns: An instance of `DeleteIdentitiesOutput`. """ - return await self._invoke(input, _models.DELETE_IDENTITIES, [], plugins) + async def delete_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIdentitiesOutput: + return await self._invoke( + self._select_input(_models.DELETE_IDENTITIES, args, kwargs), + _models.DELETE_IDENTITIES, + [], + plugins, + ) + + @_overload async def delete_identity_pool( - self, input: DeleteIdentityPoolInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteIdentityPoolInput | _models.DeleteIdentityPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIdentityPoolOutput: ... + + @_overload + async def delete_identity_pool( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIdentityPoolInputDict], ) -> DeleteIdentityPoolOutput: """ Deletes an identity pool. Once a pool is deleted, users will not be able @@ -173,8 +206,6 @@ async def delete_identity_pool( operation. Args: - input: - An instance of `DeleteIdentityPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -184,10 +215,33 @@ async def delete_identity_pool( Returns: An instance of `DeleteIdentityPoolOutput`. """ - return await self._invoke(input, _models.DELETE_IDENTITY_POOL, [], plugins) + async def delete_identity_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIdentityPoolOutput: + return await self._invoke( + self._select_input(_models.DELETE_IDENTITY_POOL, args, kwargs), + _models.DELETE_IDENTITY_POOL, + [], + plugins, + ) + + @_overload + async def describe_identity( + self, + request: _models.DescribeIdentityInput | _models.DescribeIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIdentityOutput: ... + + @_overload async def describe_identity( - self, input: DescribeIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIdentityInputDict], ) -> DescribeIdentityOutput: """ Returns metadata related to the given identity, including when the @@ -197,8 +251,6 @@ async def describe_identity( operation. Args: - input: - An instance of `DescribeIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -208,10 +260,34 @@ async def describe_identity( Returns: An instance of `DescribeIdentityOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IDENTITY, [], plugins) + async def describe_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIdentityOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IDENTITY, args, kwargs), + _models.DESCRIBE_IDENTITY, + [], + plugins, + ) + + @_overload + async def describe_identity_pool( + self, + request: _models.DescribeIdentityPoolInput + | _models.DescribeIdentityPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIdentityPoolOutput: ... + + @_overload async def describe_identity_pool( - self, input: DescribeIdentityPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIdentityPoolInputDict], ) -> DescribeIdentityPoolOutput: """ Gets details about a particular identity pool, including the pool name, @@ -221,8 +297,6 @@ async def describe_identity_pool( operation. Args: - input: - An instance of `DescribeIdentityPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -232,10 +306,34 @@ async def describe_identity_pool( Returns: An instance of `DescribeIdentityPoolOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IDENTITY_POOL, [], plugins) + async def describe_identity_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIdentityPoolOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IDENTITY_POOL, args, kwargs), + _models.DESCRIBE_IDENTITY_POOL, + [], + plugins, + ) + + @_overload async def get_credentials_for_identity( - self, input: GetCredentialsForIdentityInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCredentialsForIdentityInput + | _models.GetCredentialsForIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCredentialsForIdentityOutput: ... + + @_overload + async def get_credentials_for_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCredentialsForIdentityInputDict], ) -> GetCredentialsForIdentityOutput: """ Returns credentials for the provided identity ID. Any provided logins @@ -246,8 +344,6 @@ async def get_credentials_for_identity( This is a public API. You do not need any credentials to call this API. Args: - input: - An instance of `GetCredentialsForIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -257,12 +353,33 @@ async def get_credentials_for_identity( Returns: An instance of `GetCredentialsForIdentityOutput`. """ + + async def get_credentials_for_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCredentialsForIdentityOutput: return await self._invoke( - input, _models.GET_CREDENTIALS_FOR_IDENTITY, [], plugins + self._select_input(_models.GET_CREDENTIALS_FOR_IDENTITY, args, kwargs), + _models.GET_CREDENTIALS_FOR_IDENTITY, + [], + plugins, ) + @_overload + async def get_id( + self, + request: _models.GetIdInput | _models.GetIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIdOutput: ... + + @_overload async def get_id( - self, input: GetIdInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIdInputDict], ) -> GetIdOutput: """ Generates (or retrieves) IdentityID. Supplying multiple logins will @@ -271,8 +388,6 @@ async def get_id( This is a public API. You do not need any credentials to call this API. Args: - input: - An instance of `GetIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -282,10 +397,34 @@ async def get_id( Returns: An instance of `GetIdOutput`. """ - return await self._invoke(input, _models.GET_ID, [], plugins) + async def get_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIdOutput: + return await self._invoke( + self._select_input(_models.GET_ID, args, kwargs), + _models.GET_ID, + [], + plugins, + ) + + @_overload async def get_identity_pool_roles( - self, input: GetIdentityPoolRolesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIdentityPoolRolesInput + | _models.GetIdentityPoolRolesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIdentityPoolRolesOutput: ... + + @_overload + async def get_identity_pool_roles( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIdentityPoolRolesInputDict], ) -> GetIdentityPoolRolesOutput: """ Gets the roles for an identity pool. @@ -294,8 +433,6 @@ async def get_identity_pool_roles( operation. Args: - input: - An instance of `GetIdentityPoolRolesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -305,10 +442,33 @@ async def get_identity_pool_roles( Returns: An instance of `GetIdentityPoolRolesOutput`. """ - return await self._invoke(input, _models.GET_IDENTITY_POOL_ROLES, [], plugins) + async def get_identity_pool_roles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIdentityPoolRolesOutput: + return await self._invoke( + self._select_input(_models.GET_IDENTITY_POOL_ROLES, args, kwargs), + _models.GET_IDENTITY_POOL_ROLES, + [], + plugins, + ) + + @_overload + async def get_open_id_token( + self, + request: _models.GetOpenIdTokenInput | _models.GetOpenIdTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOpenIdTokenOutput: ... + + @_overload async def get_open_id_token( - self, input: GetOpenIdTokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOpenIdTokenInputDict], ) -> GetOpenIdTokenOutput: """ Gets an OpenID token, using a known Cognito ID. This known Cognito ID is @@ -320,8 +480,6 @@ async def get_open_id_token( This is a public API. You do not need any credentials to call this API. Args: - input: - An instance of `GetOpenIdTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -331,12 +489,34 @@ async def get_open_id_token( Returns: An instance of `GetOpenIdTokenOutput`. """ - return await self._invoke(input, _models.GET_OPEN_ID_TOKEN, [], plugins) + async def get_open_id_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOpenIdTokenOutput: + return await self._invoke( + self._select_input(_models.GET_OPEN_ID_TOKEN, args, kwargs), + _models.GET_OPEN_ID_TOKEN, + [], + plugins, + ) + + @_overload async def get_open_id_token_for_developer_identity( self, - input: GetOpenIdTokenForDeveloperIdentityInput, + request: _models.GetOpenIdTokenForDeveloperIdentityInput + | _models.GetOpenIdTokenForDeveloperIdentityInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetOpenIdTokenForDeveloperIdentityOutput: ... + + @_overload + async def get_open_id_token_for_developer_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOpenIdTokenForDeveloperIdentityInputDict], ) -> GetOpenIdTokenForDeveloperIdentityOutput: """ Registers (or retrieves) a Cognito `IdentityId` and an OpenID Connect @@ -359,8 +539,6 @@ async def get_open_id_token_for_developer_identity( operation. Args: - input: - An instance of `GetOpenIdTokenForDeveloperIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -370,22 +548,42 @@ async def get_open_id_token_for_developer_identity( Returns: An instance of `GetOpenIdTokenForDeveloperIdentityOutput`. """ + + async def get_open_id_token_for_developer_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOpenIdTokenForDeveloperIdentityOutput: return await self._invoke( - input, _models.GET_OPEN_ID_TOKEN_FOR_DEVELOPER_IDENTITY, [], plugins + self._select_input( + _models.GET_OPEN_ID_TOKEN_FOR_DEVELOPER_IDENTITY, args, kwargs + ), + _models.GET_OPEN_ID_TOKEN_FOR_DEVELOPER_IDENTITY, + [], + plugins, ) + @_overload async def get_principal_tag_attribute_map( self, - input: GetPrincipalTagAttributeMapInput, + request: _models.GetPrincipalTagAttributeMapInput + | _models.GetPrincipalTagAttributeMapInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetPrincipalTagAttributeMapOutput: ... + + @_overload + async def get_principal_tag_attribute_map( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPrincipalTagAttributeMapInputDict], ) -> GetPrincipalTagAttributeMapOutput: """ Use `GetPrincipalTagAttributeMap` to list all mappings between `PrincipalTags` and user attributes. Args: - input: - An instance of `GetPrincipalTagAttributeMapInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -395,12 +593,33 @@ async def get_principal_tag_attribute_map( Returns: An instance of `GetPrincipalTagAttributeMapOutput`. """ + + async def get_principal_tag_attribute_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPrincipalTagAttributeMapOutput: return await self._invoke( - input, _models.GET_PRINCIPAL_TAG_ATTRIBUTE_MAP, [], plugins + self._select_input(_models.GET_PRINCIPAL_TAG_ATTRIBUTE_MAP, args, kwargs), + _models.GET_PRINCIPAL_TAG_ATTRIBUTE_MAP, + [], + plugins, ) + @_overload + async def list_identities( + self, + request: _models.ListIdentitiesInput | _models.ListIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIdentitiesOutput: ... + + @_overload async def list_identities( - self, input: ListIdentitiesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIdentitiesInputDict], ) -> ListIdentitiesOutput: """ Lists the identities in an identity pool. @@ -409,8 +628,6 @@ async def list_identities( operation. Args: - input: - An instance of `ListIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -420,10 +637,33 @@ async def list_identities( Returns: An instance of `ListIdentitiesOutput`. """ - return await self._invoke(input, _models.LIST_IDENTITIES, [], plugins) + async def list_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIdentitiesOutput: + return await self._invoke( + self._select_input(_models.LIST_IDENTITIES, args, kwargs), + _models.LIST_IDENTITIES, + [], + plugins, + ) + + @_overload + async def list_identity_pools( + self, + request: _models.ListIdentityPoolsInput | _models.ListIdentityPoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIdentityPoolsOutput: ... + + @_overload async def list_identity_pools( - self, input: ListIdentityPoolsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIdentityPoolsInputDict], ) -> ListIdentityPoolsOutput: """ Lists all of the Cognito identity pools registered for your account. @@ -432,8 +672,6 @@ async def list_identity_pools( operation. Args: - input: - An instance of `ListIdentityPoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -443,10 +681,34 @@ async def list_identity_pools( Returns: An instance of `ListIdentityPoolsOutput`. """ - return await self._invoke(input, _models.LIST_IDENTITY_POOLS, [], plugins) + async def list_identity_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIdentityPoolsOutput: + return await self._invoke( + self._select_input(_models.LIST_IDENTITY_POOLS, args, kwargs), + _models.LIST_IDENTITY_POOLS, + [], + plugins, + ) + + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags that are assigned to an Amazon Cognito identity pool. @@ -458,8 +720,6 @@ async def list_tags_for_resource( You can use this action up to 10 times per second, per account. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -469,10 +729,34 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload async def lookup_developer_identity( - self, input: LookupDeveloperIdentityInput, plugins: list[Plugin] | None = None + self, + request: _models.LookupDeveloperIdentityInput + | _models.LookupDeveloperIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> LookupDeveloperIdentityOutput: ... + + @_overload + async def lookup_developer_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.LookupDeveloperIdentityInputDict], ) -> LookupDeveloperIdentityOutput: """ Retrieves the `IdentityID` associated with a `DeveloperUserIdentifier` @@ -497,8 +781,6 @@ async def lookup_developer_identity( operation. Args: - input: - An instance of `LookupDeveloperIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -508,10 +790,34 @@ async def lookup_developer_identity( Returns: An instance of `LookupDeveloperIdentityOutput`. """ - return await self._invoke(input, _models.LOOKUP_DEVELOPER_IDENTITY, [], plugins) + async def lookup_developer_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> LookupDeveloperIdentityOutput: + return await self._invoke( + self._select_input(_models.LOOKUP_DEVELOPER_IDENTITY, args, kwargs), + _models.LOOKUP_DEVELOPER_IDENTITY, + [], + plugins, + ) + + @_overload async def merge_developer_identities( - self, input: MergeDeveloperIdentitiesInput, plugins: list[Plugin] | None = None + self, + request: _models.MergeDeveloperIdentitiesInput + | _models.MergeDeveloperIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MergeDeveloperIdentitiesOutput: ... + + @_overload + async def merge_developer_identities( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MergeDeveloperIdentitiesInputDict], ) -> MergeDeveloperIdentitiesOutput: """ Merges two users having different `IdentityId`s, existing in the same @@ -532,8 +838,6 @@ async def merge_developer_identities( operation. Args: - input: - An instance of `MergeDeveloperIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -543,12 +847,34 @@ async def merge_developer_identities( Returns: An instance of `MergeDeveloperIdentitiesOutput`. """ + + async def merge_developer_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MergeDeveloperIdentitiesOutput: return await self._invoke( - input, _models.MERGE_DEVELOPER_IDENTITIES, [], plugins + self._select_input(_models.MERGE_DEVELOPER_IDENTITIES, args, kwargs), + _models.MERGE_DEVELOPER_IDENTITIES, + [], + plugins, ) + @_overload async def set_identity_pool_roles( - self, input: SetIdentityPoolRolesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetIdentityPoolRolesInput + | _models.SetIdentityPoolRolesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetIdentityPoolRolesOutput: ... + + @_overload + async def set_identity_pool_roles( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetIdentityPoolRolesInputDict], ) -> SetIdentityPoolRolesOutput: """ Sets the roles for an identity pool. These roles are used when making @@ -558,8 +884,6 @@ async def set_identity_pool_roles( operation. Args: - input: - An instance of `SetIdentityPoolRolesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -569,20 +893,40 @@ async def set_identity_pool_roles( Returns: An instance of `SetIdentityPoolRolesOutput`. """ - return await self._invoke(input, _models.SET_IDENTITY_POOL_ROLES, [], plugins) + async def set_identity_pool_roles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetIdentityPoolRolesOutput: + return await self._invoke( + self._select_input(_models.SET_IDENTITY_POOL_ROLES, args, kwargs), + _models.SET_IDENTITY_POOL_ROLES, + [], + plugins, + ) + + @_overload + async def set_principal_tag_attribute_map( + self, + request: _models.SetPrincipalTagAttributeMapInput + | _models.SetPrincipalTagAttributeMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetPrincipalTagAttributeMapOutput: ... + + @_overload async def set_principal_tag_attribute_map( self, - input: SetPrincipalTagAttributeMapInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetPrincipalTagAttributeMapInputDict], ) -> SetPrincipalTagAttributeMapOutput: """ You can use this operation to use default (username and clientID) attribute or custom attribute mappings. Args: - input: - An instance of `SetPrincipalTagAttributeMapInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -592,12 +936,33 @@ async def set_principal_tag_attribute_map( Returns: An instance of `SetPrincipalTagAttributeMapOutput`. """ + + async def set_principal_tag_attribute_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetPrincipalTagAttributeMapOutput: return await self._invoke( - input, _models.SET_PRINCIPAL_TAG_ATTRIBUTE_MAP, [], plugins + self._select_input(_models.SET_PRINCIPAL_TAG_ATTRIBUTE_MAP, args, kwargs), + _models.SET_PRINCIPAL_TAG_ATTRIBUTE_MAP, + [], + plugins, ) + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Assigns a set of tags to the specified Amazon Cognito identity pool. A @@ -622,8 +987,6 @@ async def tag_resource( identity pool can have as many as 50 tags. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -633,10 +996,34 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload async def unlink_developer_identity( - self, input: UnlinkDeveloperIdentityInput, plugins: list[Plugin] | None = None + self, + request: _models.UnlinkDeveloperIdentityInput + | _models.UnlinkDeveloperIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnlinkDeveloperIdentityOutput: ... + + @_overload + async def unlink_developer_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnlinkDeveloperIdentityInputDict], ) -> UnlinkDeveloperIdentityOutput: """ Unlinks a `DeveloperUserIdentifier` from an existing identity. Unlinked @@ -649,8 +1036,6 @@ async def unlink_developer_identity( operation. Args: - input: - An instance of `UnlinkDeveloperIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -660,10 +1045,33 @@ async def unlink_developer_identity( Returns: An instance of `UnlinkDeveloperIdentityOutput`. """ - return await self._invoke(input, _models.UNLINK_DEVELOPER_IDENTITY, [], plugins) + async def unlink_developer_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnlinkDeveloperIdentityOutput: + return await self._invoke( + self._select_input(_models.UNLINK_DEVELOPER_IDENTITY, args, kwargs), + _models.UNLINK_DEVELOPER_IDENTITY, + [], + plugins, + ) + + @_overload + async def unlink_identity( + self, + request: _models.UnlinkIdentityInput | _models.UnlinkIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnlinkIdentityOutput: ... + + @_overload async def unlink_identity( - self, input: UnlinkIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnlinkIdentityInputDict], ) -> UnlinkIdentityOutput: """ Unlinks a federated identity from an existing account. Unlinked logins @@ -673,8 +1081,6 @@ async def unlink_identity( This is a public API. You do not need any credentials to call this API. Args: - input: - An instance of `UnlinkIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -684,18 +1090,39 @@ async def unlink_identity( Returns: An instance of `UnlinkIdentityOutput`. """ - return await self._invoke(input, _models.UNLINK_IDENTITY, [], plugins) + async def unlink_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnlinkIdentityOutput: + return await self._invoke( + self._select_input(_models.UNLINK_IDENTITY, args, kwargs), + _models.UNLINK_IDENTITY, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes the specified tags from the specified Amazon Cognito identity pool. You can use this action up to 5 times per second, per account Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -705,10 +1132,33 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_identity_pool( + self, + request: _models.UpdateIdentityPoolInput | _models.UpdateIdentityPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIdentityPoolOutput: ... + + @_overload async def update_identity_pool( - self, input: UpdateIdentityPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIdentityPoolInputDict], ) -> UpdateIdentityPoolOutput: """ Updates the configuration of an identity pool. @@ -721,8 +1171,6 @@ async def update_identity_pool( operation. Args: - input: - An instance of `UpdateIdentityPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -732,7 +1180,16 @@ async def update_identity_pool( Returns: An instance of `UpdateIdentityPoolOutput`. """ - return await self._invoke(input, _models.UPDATE_IDENTITY_POOL, [], plugins) + + async def update_identity_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIdentityPoolOutput: + return await self._invoke( + self._select_input(_models.UPDATE_IDENTITY_POOL, args, kwargs), + _models.UPDATE_IDENTITY_POOL, + [], + plugins, + ) async def _new_config(self) -> AsyncCognitoIdentityConfig: return await AsyncCognitoIdentityConfig.resolve() diff --git a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/client.py b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/client.py index a72a6b196..12107b850 100644 --- a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/client.py +++ b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,51 +20,28 @@ if TYPE_CHECKING: from .models import ( - CreateIdentityPoolInput, CreateIdentityPoolOutput, - DeleteIdentitiesInput, DeleteIdentitiesOutput, - DeleteIdentityPoolInput, DeleteIdentityPoolOutput, - DescribeIdentityInput, DescribeIdentityOutput, - DescribeIdentityPoolInput, DescribeIdentityPoolOutput, - GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, - GetIdInput, GetIdOutput, - GetIdentityPoolRolesInput, GetIdentityPoolRolesOutput, - GetOpenIdTokenForDeveloperIdentityInput, GetOpenIdTokenForDeveloperIdentityOutput, - GetOpenIdTokenInput, GetOpenIdTokenOutput, - GetPrincipalTagAttributeMapInput, GetPrincipalTagAttributeMapOutput, - ListIdentitiesInput, ListIdentitiesOutput, - ListIdentityPoolsInput, ListIdentityPoolsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - LookupDeveloperIdentityInput, LookupDeveloperIdentityOutput, - MergeDeveloperIdentitiesInput, MergeDeveloperIdentitiesOutput, - SetIdentityPoolRolesInput, SetIdentityPoolRolesOutput, - SetPrincipalTagAttributeMapInput, SetPrincipalTagAttributeMapOutput, - TagResourceInput, TagResourceOutput, - UnlinkDeveloperIdentityInput, UnlinkDeveloperIdentityOutput, - UnlinkIdentityInput, UnlinkIdentityOutput, - UntagResourceInput, UntagResourceOutput, - UpdateIdentityPoolInput, UpdateIdentityPoolOutput, ) @@ -95,10 +72,24 @@ class CognitoIdentityClient(Client[CognitoIdentityConfig]): Identities](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def create_identity_pool( - self, input: CreateIdentityPoolInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateIdentityPoolInput | _models.CreateIdentityPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIdentityPoolOutput: ... + + @_overload + def create_identity_pool( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIdentityPoolInputDict], ) -> CreateIdentityPoolOutput: """ Creates a new identity pool. The identity pool is a store of user @@ -125,8 +116,6 @@ def create_identity_pool( operation. Args: - input: - An instance of `CreateIdentityPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -136,10 +125,33 @@ def create_identity_pool( Returns: An instance of `CreateIdentityPoolOutput`. """ - return self._invoke(input, _models.CREATE_IDENTITY_POOL, [], plugins) + def create_identity_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIdentityPoolOutput: + return self._invoke( + self._select_input(_models.CREATE_IDENTITY_POOL, args, kwargs), + _models.CREATE_IDENTITY_POOL, + [], + plugins, + ) + + @_overload + def delete_identities( + self, + request: _models.DeleteIdentitiesInput | _models.DeleteIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIdentitiesOutput: ... + + @_overload def delete_identities( - self, input: DeleteIdentitiesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIdentitiesInputDict], ) -> DeleteIdentitiesOutput: """ Deletes identities from an identity pool. You can specify a list of 1-60 @@ -149,8 +161,6 @@ def delete_identities( operation. Args: - input: - An instance of `DeleteIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -160,10 +170,33 @@ def delete_identities( Returns: An instance of `DeleteIdentitiesOutput`. """ - return self._invoke(input, _models.DELETE_IDENTITIES, [], plugins) + def delete_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIdentitiesOutput: + return self._invoke( + self._select_input(_models.DELETE_IDENTITIES, args, kwargs), + _models.DELETE_IDENTITIES, + [], + plugins, + ) + + @_overload def delete_identity_pool( - self, input: DeleteIdentityPoolInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteIdentityPoolInput | _models.DeleteIdentityPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIdentityPoolOutput: ... + + @_overload + def delete_identity_pool( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIdentityPoolInputDict], ) -> DeleteIdentityPoolOutput: """ Deletes an identity pool. Once a pool is deleted, users will not be able @@ -173,8 +206,6 @@ def delete_identity_pool( operation. Args: - input: - An instance of `DeleteIdentityPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -184,10 +215,33 @@ def delete_identity_pool( Returns: An instance of `DeleteIdentityPoolOutput`. """ - return self._invoke(input, _models.DELETE_IDENTITY_POOL, [], plugins) + def delete_identity_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIdentityPoolOutput: + return self._invoke( + self._select_input(_models.DELETE_IDENTITY_POOL, args, kwargs), + _models.DELETE_IDENTITY_POOL, + [], + plugins, + ) + + @_overload + def describe_identity( + self, + request: _models.DescribeIdentityInput | _models.DescribeIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIdentityOutput: ... + + @_overload def describe_identity( - self, input: DescribeIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIdentityInputDict], ) -> DescribeIdentityOutput: """ Returns metadata related to the given identity, including when the @@ -197,8 +251,6 @@ def describe_identity( operation. Args: - input: - An instance of `DescribeIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -208,10 +260,34 @@ def describe_identity( Returns: An instance of `DescribeIdentityOutput`. """ - return self._invoke(input, _models.DESCRIBE_IDENTITY, [], plugins) + def describe_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIdentityOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IDENTITY, args, kwargs), + _models.DESCRIBE_IDENTITY, + [], + plugins, + ) + + @_overload def describe_identity_pool( - self, input: DescribeIdentityPoolInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeIdentityPoolInput + | _models.DescribeIdentityPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIdentityPoolOutput: ... + + @_overload + def describe_identity_pool( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIdentityPoolInputDict], ) -> DescribeIdentityPoolOutput: """ Gets details about a particular identity pool, including the pool name, @@ -221,8 +297,6 @@ def describe_identity_pool( operation. Args: - input: - An instance of `DescribeIdentityPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -232,10 +306,34 @@ def describe_identity_pool( Returns: An instance of `DescribeIdentityPoolOutput`. """ - return self._invoke(input, _models.DESCRIBE_IDENTITY_POOL, [], plugins) + def describe_identity_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIdentityPoolOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IDENTITY_POOL, args, kwargs), + _models.DESCRIBE_IDENTITY_POOL, + [], + plugins, + ) + + @_overload def get_credentials_for_identity( - self, input: GetCredentialsForIdentityInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCredentialsForIdentityInput + | _models.GetCredentialsForIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCredentialsForIdentityOutput: ... + + @_overload + def get_credentials_for_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCredentialsForIdentityInputDict], ) -> GetCredentialsForIdentityOutput: """ Returns credentials for the provided identity ID. Any provided logins @@ -246,8 +344,6 @@ def get_credentials_for_identity( This is a public API. You do not need any credentials to call this API. Args: - input: - An instance of `GetCredentialsForIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -257,10 +353,33 @@ def get_credentials_for_identity( Returns: An instance of `GetCredentialsForIdentityOutput`. """ - return self._invoke(input, _models.GET_CREDENTIALS_FOR_IDENTITY, [], plugins) + def get_credentials_for_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCredentialsForIdentityOutput: + return self._invoke( + self._select_input(_models.GET_CREDENTIALS_FOR_IDENTITY, args, kwargs), + _models.GET_CREDENTIALS_FOR_IDENTITY, + [], + plugins, + ) + + @_overload + def get_id( + self, + request: _models.GetIdInput | _models.GetIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIdOutput: ... + + @_overload def get_id( - self, input: GetIdInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIdInputDict], ) -> GetIdOutput: """ Generates (or retrieves) IdentityID. Supplying multiple logins will @@ -269,8 +388,6 @@ def get_id( This is a public API. You do not need any credentials to call this API. Args: - input: - An instance of `GetIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -280,10 +397,34 @@ def get_id( Returns: An instance of `GetIdOutput`. """ - return self._invoke(input, _models.GET_ID, [], plugins) + def get_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIdOutput: + return self._invoke( + self._select_input(_models.GET_ID, args, kwargs), + _models.GET_ID, + [], + plugins, + ) + + @_overload def get_identity_pool_roles( - self, input: GetIdentityPoolRolesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIdentityPoolRolesInput + | _models.GetIdentityPoolRolesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIdentityPoolRolesOutput: ... + + @_overload + def get_identity_pool_roles( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIdentityPoolRolesInputDict], ) -> GetIdentityPoolRolesOutput: """ Gets the roles for an identity pool. @@ -292,8 +433,6 @@ def get_identity_pool_roles( operation. Args: - input: - An instance of `GetIdentityPoolRolesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -303,10 +442,33 @@ def get_identity_pool_roles( Returns: An instance of `GetIdentityPoolRolesOutput`. """ - return self._invoke(input, _models.GET_IDENTITY_POOL_ROLES, [], plugins) + def get_identity_pool_roles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIdentityPoolRolesOutput: + return self._invoke( + self._select_input(_models.GET_IDENTITY_POOL_ROLES, args, kwargs), + _models.GET_IDENTITY_POOL_ROLES, + [], + plugins, + ) + + @_overload def get_open_id_token( - self, input: GetOpenIdTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetOpenIdTokenInput | _models.GetOpenIdTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOpenIdTokenOutput: ... + + @_overload + def get_open_id_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOpenIdTokenInputDict], ) -> GetOpenIdTokenOutput: """ Gets an OpenID token, using a known Cognito ID. This known Cognito ID is @@ -318,8 +480,6 @@ def get_open_id_token( This is a public API. You do not need any credentials to call this API. Args: - input: - An instance of `GetOpenIdTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -329,12 +489,34 @@ def get_open_id_token( Returns: An instance of `GetOpenIdTokenOutput`. """ - return self._invoke(input, _models.GET_OPEN_ID_TOKEN, [], plugins) + def get_open_id_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOpenIdTokenOutput: + return self._invoke( + self._select_input(_models.GET_OPEN_ID_TOKEN, args, kwargs), + _models.GET_OPEN_ID_TOKEN, + [], + plugins, + ) + + @_overload def get_open_id_token_for_developer_identity( self, - input: GetOpenIdTokenForDeveloperIdentityInput, + request: _models.GetOpenIdTokenForDeveloperIdentityInput + | _models.GetOpenIdTokenForDeveloperIdentityInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetOpenIdTokenForDeveloperIdentityOutput: ... + + @_overload + def get_open_id_token_for_developer_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOpenIdTokenForDeveloperIdentityInputDict], ) -> GetOpenIdTokenForDeveloperIdentityOutput: """ Registers (or retrieves) a Cognito `IdentityId` and an OpenID Connect @@ -357,8 +539,6 @@ def get_open_id_token_for_developer_identity( operation. Args: - input: - An instance of `GetOpenIdTokenForDeveloperIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -368,22 +548,42 @@ def get_open_id_token_for_developer_identity( Returns: An instance of `GetOpenIdTokenForDeveloperIdentityOutput`. """ + + def get_open_id_token_for_developer_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOpenIdTokenForDeveloperIdentityOutput: return self._invoke( - input, _models.GET_OPEN_ID_TOKEN_FOR_DEVELOPER_IDENTITY, [], plugins + self._select_input( + _models.GET_OPEN_ID_TOKEN_FOR_DEVELOPER_IDENTITY, args, kwargs + ), + _models.GET_OPEN_ID_TOKEN_FOR_DEVELOPER_IDENTITY, + [], + plugins, ) + @_overload + def get_principal_tag_attribute_map( + self, + request: _models.GetPrincipalTagAttributeMapInput + | _models.GetPrincipalTagAttributeMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPrincipalTagAttributeMapOutput: ... + + @_overload def get_principal_tag_attribute_map( self, - input: GetPrincipalTagAttributeMapInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPrincipalTagAttributeMapInputDict], ) -> GetPrincipalTagAttributeMapOutput: """ Use `GetPrincipalTagAttributeMap` to list all mappings between `PrincipalTags` and user attributes. Args: - input: - An instance of `GetPrincipalTagAttributeMapInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -393,10 +593,33 @@ def get_principal_tag_attribute_map( Returns: An instance of `GetPrincipalTagAttributeMapOutput`. """ - return self._invoke(input, _models.GET_PRINCIPAL_TAG_ATTRIBUTE_MAP, [], plugins) + def get_principal_tag_attribute_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPrincipalTagAttributeMapOutput: + return self._invoke( + self._select_input(_models.GET_PRINCIPAL_TAG_ATTRIBUTE_MAP, args, kwargs), + _models.GET_PRINCIPAL_TAG_ATTRIBUTE_MAP, + [], + plugins, + ) + + @_overload def list_identities( - self, input: ListIdentitiesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListIdentitiesInput | _models.ListIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIdentitiesOutput: ... + + @_overload + def list_identities( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIdentitiesInputDict], ) -> ListIdentitiesOutput: """ Lists the identities in an identity pool. @@ -405,8 +628,6 @@ def list_identities( operation. Args: - input: - An instance of `ListIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -416,10 +637,33 @@ def list_identities( Returns: An instance of `ListIdentitiesOutput`. """ - return self._invoke(input, _models.LIST_IDENTITIES, [], plugins) + def list_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIdentitiesOutput: + return self._invoke( + self._select_input(_models.LIST_IDENTITIES, args, kwargs), + _models.LIST_IDENTITIES, + [], + plugins, + ) + + @_overload + def list_identity_pools( + self, + request: _models.ListIdentityPoolsInput | _models.ListIdentityPoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIdentityPoolsOutput: ... + + @_overload def list_identity_pools( - self, input: ListIdentityPoolsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIdentityPoolsInputDict], ) -> ListIdentityPoolsOutput: """ Lists all of the Cognito identity pools registered for your account. @@ -428,8 +672,6 @@ def list_identity_pools( operation. Args: - input: - An instance of `ListIdentityPoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -439,10 +681,34 @@ def list_identity_pools( Returns: An instance of `ListIdentityPoolsOutput`. """ - return self._invoke(input, _models.LIST_IDENTITY_POOLS, [], plugins) + def list_identity_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIdentityPoolsOutput: + return self._invoke( + self._select_input(_models.LIST_IDENTITY_POOLS, args, kwargs), + _models.LIST_IDENTITY_POOLS, + [], + plugins, + ) + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags that are assigned to an Amazon Cognito identity pool. @@ -454,8 +720,6 @@ def list_tags_for_resource( You can use this action up to 10 times per second, per account. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -465,10 +729,34 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload def lookup_developer_identity( - self, input: LookupDeveloperIdentityInput, plugins: list[Plugin] | None = None + self, + request: _models.LookupDeveloperIdentityInput + | _models.LookupDeveloperIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> LookupDeveloperIdentityOutput: ... + + @_overload + def lookup_developer_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.LookupDeveloperIdentityInputDict], ) -> LookupDeveloperIdentityOutput: """ Retrieves the `IdentityID` associated with a `DeveloperUserIdentifier` @@ -493,8 +781,6 @@ def lookup_developer_identity( operation. Args: - input: - An instance of `LookupDeveloperIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -504,10 +790,34 @@ def lookup_developer_identity( Returns: An instance of `LookupDeveloperIdentityOutput`. """ - return self._invoke(input, _models.LOOKUP_DEVELOPER_IDENTITY, [], plugins) + def lookup_developer_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> LookupDeveloperIdentityOutput: + return self._invoke( + self._select_input(_models.LOOKUP_DEVELOPER_IDENTITY, args, kwargs), + _models.LOOKUP_DEVELOPER_IDENTITY, + [], + plugins, + ) + + @_overload def merge_developer_identities( - self, input: MergeDeveloperIdentitiesInput, plugins: list[Plugin] | None = None + self, + request: _models.MergeDeveloperIdentitiesInput + | _models.MergeDeveloperIdentitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MergeDeveloperIdentitiesOutput: ... + + @_overload + def merge_developer_identities( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MergeDeveloperIdentitiesInputDict], ) -> MergeDeveloperIdentitiesOutput: """ Merges two users having different `IdentityId`s, existing in the same @@ -528,8 +838,6 @@ def merge_developer_identities( operation. Args: - input: - An instance of `MergeDeveloperIdentitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -539,10 +847,34 @@ def merge_developer_identities( Returns: An instance of `MergeDeveloperIdentitiesOutput`. """ - return self._invoke(input, _models.MERGE_DEVELOPER_IDENTITIES, [], plugins) + def merge_developer_identities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MergeDeveloperIdentitiesOutput: + return self._invoke( + self._select_input(_models.MERGE_DEVELOPER_IDENTITIES, args, kwargs), + _models.MERGE_DEVELOPER_IDENTITIES, + [], + plugins, + ) + + @_overload + def set_identity_pool_roles( + self, + request: _models.SetIdentityPoolRolesInput + | _models.SetIdentityPoolRolesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetIdentityPoolRolesOutput: ... + + @_overload def set_identity_pool_roles( - self, input: SetIdentityPoolRolesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetIdentityPoolRolesInputDict], ) -> SetIdentityPoolRolesOutput: """ Sets the roles for an identity pool. These roles are used when making @@ -552,8 +884,6 @@ def set_identity_pool_roles( operation. Args: - input: - An instance of `SetIdentityPoolRolesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -563,20 +893,40 @@ def set_identity_pool_roles( Returns: An instance of `SetIdentityPoolRolesOutput`. """ - return self._invoke(input, _models.SET_IDENTITY_POOL_ROLES, [], plugins) + def set_identity_pool_roles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetIdentityPoolRolesOutput: + return self._invoke( + self._select_input(_models.SET_IDENTITY_POOL_ROLES, args, kwargs), + _models.SET_IDENTITY_POOL_ROLES, + [], + plugins, + ) + + @_overload + def set_principal_tag_attribute_map( + self, + request: _models.SetPrincipalTagAttributeMapInput + | _models.SetPrincipalTagAttributeMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetPrincipalTagAttributeMapOutput: ... + + @_overload def set_principal_tag_attribute_map( self, - input: SetPrincipalTagAttributeMapInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetPrincipalTagAttributeMapInputDict], ) -> SetPrincipalTagAttributeMapOutput: """ You can use this operation to use default (username and clientID) attribute or custom attribute mappings. Args: - input: - An instance of `SetPrincipalTagAttributeMapInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -586,10 +936,33 @@ def set_principal_tag_attribute_map( Returns: An instance of `SetPrincipalTagAttributeMapOutput`. """ - return self._invoke(input, _models.SET_PRINCIPAL_TAG_ATTRIBUTE_MAP, [], plugins) + def set_principal_tag_attribute_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetPrincipalTagAttributeMapOutput: + return self._invoke( + self._select_input(_models.SET_PRINCIPAL_TAG_ATTRIBUTE_MAP, args, kwargs), + _models.SET_PRINCIPAL_TAG_ATTRIBUTE_MAP, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Assigns a set of tags to the specified Amazon Cognito identity pool. A @@ -614,8 +987,6 @@ def tag_resource( identity pool can have as many as 50 tags. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -625,10 +996,34 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def unlink_developer_identity( + self, + request: _models.UnlinkDeveloperIdentityInput + | _models.UnlinkDeveloperIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnlinkDeveloperIdentityOutput: ... + + @_overload def unlink_developer_identity( - self, input: UnlinkDeveloperIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnlinkDeveloperIdentityInputDict], ) -> UnlinkDeveloperIdentityOutput: """ Unlinks a `DeveloperUserIdentifier` from an existing identity. Unlinked @@ -641,8 +1036,6 @@ def unlink_developer_identity( operation. Args: - input: - An instance of `UnlinkDeveloperIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -652,10 +1045,33 @@ def unlink_developer_identity( Returns: An instance of `UnlinkDeveloperIdentityOutput`. """ - return self._invoke(input, _models.UNLINK_DEVELOPER_IDENTITY, [], plugins) + def unlink_developer_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnlinkDeveloperIdentityOutput: + return self._invoke( + self._select_input(_models.UNLINK_DEVELOPER_IDENTITY, args, kwargs), + _models.UNLINK_DEVELOPER_IDENTITY, + [], + plugins, + ) + + @_overload def unlink_identity( - self, input: UnlinkIdentityInput, plugins: list[Plugin] | None = None + self, + request: _models.UnlinkIdentityInput | _models.UnlinkIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnlinkIdentityOutput: ... + + @_overload + def unlink_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnlinkIdentityInputDict], ) -> UnlinkIdentityOutput: """ Unlinks a federated identity from an existing account. Unlinked logins @@ -665,8 +1081,6 @@ def unlink_identity( This is a public API. You do not need any credentials to call this API. Args: - input: - An instance of `UnlinkIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -676,18 +1090,39 @@ def unlink_identity( Returns: An instance of `UnlinkIdentityOutput`. """ - return self._invoke(input, _models.UNLINK_IDENTITY, [], plugins) + def unlink_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnlinkIdentityOutput: + return self._invoke( + self._select_input(_models.UNLINK_IDENTITY, args, kwargs), + _models.UNLINK_IDENTITY, + [], + plugins, + ) + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes the specified tags from the specified Amazon Cognito identity pool. You can use this action up to 5 times per second, per account Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -697,10 +1132,33 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_identity_pool( + self, + request: _models.UpdateIdentityPoolInput | _models.UpdateIdentityPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIdentityPoolOutput: ... + + @_overload def update_identity_pool( - self, input: UpdateIdentityPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIdentityPoolInputDict], ) -> UpdateIdentityPoolOutput: """ Updates the configuration of an identity pool. @@ -713,8 +1171,6 @@ def update_identity_pool( operation. Args: - input: - An instance of `UpdateIdentityPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -724,7 +1180,16 @@ def update_identity_pool( Returns: An instance of `UpdateIdentityPoolOutput`. """ - return self._invoke(input, _models.UPDATE_IDENTITY_POOL, [], plugins) + + def update_identity_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIdentityPoolOutput: + return self._invoke( + self._select_input(_models.UPDATE_IDENTITY_POOL, args, kwargs), + _models.UPDATE_IDENTITY_POOL, + [], + plugins, + ) def _new_config(self) -> CognitoIdentityConfig: return CognitoIdentityConfig.resolve() diff --git a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/models.pyi b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/models.pyi index 63fa28de5..db3caf872 100644 --- a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/models.pyi +++ b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self +from typing import Required, Self, TypedDict from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -56,6 +57,31 @@ class CognitoIdentityProvider(_SerdeShape): 400 Not Authorized error. """ +class CognitoIdentityProviderDict(TypedDict, total=False): + """Dictionary form of `CognitoIdentityProvider`.""" + + provider_name: str | None + """ + The provider name for an Amazon Cognito user pool. For example, + `cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789`. + """ + client_id: str | None + """The client ID for the Amazon Cognito user pool.""" + server_side_token_check: bool | None + """ + TRUE if server-side token validation is enabled for the identity + provider's token. + + Once you set `ServerSideTokenCheck` to TRUE for an identity pool, that + identity pool will check with the integrated user pools to make sure + that the user has not been globally signed out or deleted before the + identity pool provides an OIDC token or Amazon Web Services credentials + for the user. + + If the user is signed out or deleted, the identity pool will return a + 400 Not Authorized error. + """ + @dataclass(kw_only=True) class ConcurrentModificationException(ServiceError, _SerdeShape): """Thrown if there are parallel requests to modify a resource.""" @@ -112,6 +138,51 @@ class CreateIdentityPoolInput(_SerdeShape): as by purpose, owner, environment, or other criteria. """ +class CreateIdentityPoolInputDict(TypedDict, total=False): + """Dictionary form of `CreateIdentityPoolInput`.""" + + identity_pool_name: Required[str] + """A string that you provide.""" + allow_unauthenticated_identities: bool | None + """TRUE if the identity pool supports unauthenticated logins.""" + allow_classic_flow: bool | None + """ + Enables or disables the Basic (Classic) authentication flow. For more + information, see [Identity Pools (Federated Identities) Authentication + Flow](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html) + in the *Amazon Cognito Developer Guide*. + """ + supported_login_providers: Mapping[str, str] | None + """Optional key:value pairs mapping provider names to provider app IDs.""" + developer_provider_name: str | None + """ + The \"domain\" by which Cognito will refer to your users. This name acts + as a placeholder that allows your backend and the Cognito service to + communicate about the developer provider. For the + `DeveloperProviderName`, you can use letters as well as period (`.`), + underscore (`_`), and dash (`-`). + + Once you have set a developer provider name, you cannot change it. + Please take care in setting this parameter. + """ + open_id_connect_provider_ar_ns: Sequence[str] | None + """The Amazon Resource Names (ARN) of the OpenID Connect providers.""" + cognito_identity_providers: ( + Sequence[CognitoIdentityProvider | CognitoIdentityProviderDict] | None + ) + """An array of Amazon Cognito user pools and their client IDs.""" + saml_provider_ar_ns: Sequence[str] | None + """ + An array of Amazon Resource Names (ARNs) of the SAML provider for your + identity pool. + """ + identity_pool_tags: Mapping[str, str] | None + """ + Tags to assign to the identity pool. A tag is a label that you can apply + to identity pools to categorize and manage them in different ways, such + as by purpose, owner, environment, or other criteria. + """ + @dataclass(kw_only=True) class CreateIdentityPoolOutput(_SerdeShape): """An object representing an Amazon Cognito identity pool.""" @@ -177,6 +248,12 @@ class DeleteIdentitiesInput(_SerdeShape): identity_ids_to_delete: list[str] | None = ... """A list of 1-60 identities that you want to delete.""" +class DeleteIdentitiesInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIdentitiesInput`.""" + + identity_ids_to_delete: Required[Sequence[str]] + """A list of 1-60 identities that you want to delete.""" + @dataclass(kw_only=True) class DeleteIdentitiesOutput(_SerdeShape): """Returned in response to a successful `DeleteIdentities` operation.""" @@ -201,6 +278,12 @@ class DeleteIdentityPoolInput(_SerdeShape): identity_pool_id: str | None = ... """An identity pool ID in the format REGION:GUID.""" +class DeleteIdentityPoolInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIdentityPoolInput`.""" + + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + @dataclass(kw_only=True) class DeleteIdentityPoolOutput(_SerdeShape): """Dataclass for DeleteIdentityPoolOutput structure.""" @@ -220,6 +303,12 @@ class DescribeIdentityInput(_SerdeShape): identity_id: str | None = ... """A unique identifier in the format REGION:GUID.""" +class DescribeIdentityInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIdentityInput`.""" + + identity_id: Required[str] + """A unique identifier in the format REGION:GUID.""" + @dataclass(kw_only=True) class DescribeIdentityOutput(_SerdeShape): """A description of the identity.""" @@ -247,6 +336,12 @@ class DescribeIdentityPoolInput(_SerdeShape): identity_pool_id: str | None = ... """An identity pool ID in the format REGION:GUID.""" +class DescribeIdentityPoolInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIdentityPoolInput`.""" + + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + @dataclass(kw_only=True) class DescribeIdentityPoolOutput(_SerdeShape): """An object representing an Amazon Cognito identity pool.""" @@ -355,6 +450,34 @@ class GetCredentialsForIdentityInput(_SerdeShape): identity providers that do not support role customization. """ +class GetCredentialsForIdentityInputDict(TypedDict, total=False): + """Dictionary form of `GetCredentialsForIdentityInput`.""" + + identity_id: Required[str] + """A unique identifier in the format REGION:GUID.""" + logins: Mapping[str, str] | None + """ + A set of optional name-value pairs that map provider names to provider + tokens. The name-value pair will follow the syntax \"provider_name\": + \"provider_user_identifier\". + + Logins should not be specified when trying to get credentials for an + unauthenticated identity. + + The Logins parameter is required when using identities associated with + external identity providers such as Facebook. For examples of `Logins` + maps, see the code examples in the [External Identity + Providers](https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html) + section of the Amazon Cognito Developer Guide. + """ + custom_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the role to be assumed when multiple + roles were received in the token from the identity provider. For + example, a SAML-based identity provider. This parameter is optional for + identity providers that do not support role customization. + """ + @dataclass(kw_only=True) class GetCredentialsForIdentityOutput(_SerdeShape): """ @@ -381,6 +504,12 @@ class GetIdentityPoolRolesInput(_SerdeShape): identity_pool_id: str | None = ... """An identity pool ID in the format REGION:GUID.""" +class GetIdentityPoolRolesInputDict(TypedDict, total=False): + """Dictionary form of `GetIdentityPoolRolesInput`.""" + + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + @dataclass(kw_only=True) class GetIdentityPoolRolesOutput(_SerdeShape): """Returned in response to a successful `GetIdentityPoolRoles` operation.""" @@ -436,6 +565,34 @@ class GetIdInput(_SerdeShape): - Digits: `www.digits.com` """ +class GetIdInputDict(TypedDict, total=False): + """Dictionary form of `GetIdInput`.""" + + account_id: str | None + """A standard Amazon Web Services account ID (9+ digits).""" + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + logins: Mapping[str, str] | None + """ + A set of optional name-value pairs that map provider names to provider + tokens. The available provider names for `Logins` are as follows: + + - Facebook: `graph.facebook.com` + + - Amazon Cognito user pool: + `cognito-idp.```{=html}`.amazonaws.com/```{=html}, + for example, + `cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789`. + + - Google: `accounts.google.com` + + - Amazon: `www.amazon.com` + + - Twitter: `api.twitter.com` + + - Digits: `www.digits.com` + """ + @dataclass(kw_only=True) class GetIdOutput(_SerdeShape): """Returned in response to a GetId request.""" @@ -490,6 +647,45 @@ class GetOpenIdTokenForDeveloperIdentityInput(_SerdeShape): to account for clock skew. """ +class GetOpenIdTokenForDeveloperIdentityInputDict(TypedDict, total=False): + """Dictionary form of `GetOpenIdTokenForDeveloperIdentityInput`.""" + + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + identity_id: str | None + """A unique identifier in the format REGION:GUID.""" + logins: Required[Mapping[str, str]] + """ + A set of optional name-value pairs that map provider names to provider + tokens. Each name-value pair represents a user from a public provider or + developer provider. If the user is from a developer provider, the + name-value pair will follow the syntax + `"developer_provider_name": "developer_user_identifier"`. The developer + provider is the \"domain\" by which Cognito will refer to your users; + you provided this domain while creating/updating the identity pool. The + developer user identifier is an identifier from your backend that + uniquely identifies a user. When you create an identity pool, you can + specify the supported logins. + """ + principal_tags: Mapping[str, str] | None + """Use this operation to configure attribute mappings for custom providers.""" + token_duration: int | None + """ + The expiration time of the token, in seconds. You can specify a custom + expiration time for the token so that you can cache it. If you don't + provide an expiration time, the token is valid for 15 minutes. You can + exchange the token with Amazon STS for temporary Amazon Web Services + credentials, which are valid for a maximum of one hour. The maximum + token duration you can set is 24 hours. You should take care in setting + the expiration time for a token, as there are significant security + implications: an attacker could use a leaked token to access your Amazon + Web Services resources for the token's duration. + + Note: + Please provide for a small grace period, usually no more than 5 minutes, + to account for clock skew. + """ + @dataclass(kw_only=True) class GetOpenIdTokenForDeveloperIdentityOutput(_SerdeShape): """ @@ -524,6 +720,20 @@ class GetOpenIdTokenInput(_SerdeShape): OpenID Connect provider, always include the `id_token`. """ +class GetOpenIdTokenInputDict(TypedDict, total=False): + """Dictionary form of `GetOpenIdTokenInput`.""" + + identity_id: Required[str] + """A unique identifier in the format REGION:GUID.""" + logins: Mapping[str, str] | None + """ + A set of optional name-value pairs that map provider names to provider + tokens. When using graph.facebook.com and www.amazon.com, supply the + access_token returned from the provider's authflow. For + accounts.google.com, an Amazon Cognito user pool provider, or any other + OpenID Connect provider, always include the `id_token`. + """ + @dataclass(kw_only=True) class GetOpenIdTokenOutput(_SerdeShape): """Returned in response to a successful GetOpenIdToken request.""" @@ -555,6 +765,17 @@ class GetPrincipalTagAttributeMapInput(_SerdeShape): identity_provider_name: str | None = ... """You can use this operation to get the provider name.""" +class GetPrincipalTagAttributeMapInputDict(TypedDict, total=False): + """Dictionary form of `GetPrincipalTagAttributeMapInput`.""" + + identity_pool_id: Required[str] + """ + You can use this operation to get the ID of the Identity Pool you setup + attribute mappings for. + """ + identity_provider_name: Required[str] + """You can use this operation to get the provider name.""" + @dataclass(kw_only=True) class GetPrincipalTagAttributeMapOutput(_SerdeShape): """Dataclass for GetPrincipalTagAttributeMapOutput structure.""" @@ -683,6 +904,22 @@ class ListIdentitiesInput(_SerdeShape): identities in the response. """ +class ListIdentitiesInputDict(TypedDict, total=False): + """Dictionary form of `ListIdentitiesInput`.""" + + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + max_results: Required[int] + """The maximum number of identities to return.""" + next_token: str | None + """A pagination token.""" + hide_disabled: bool | None + """ + An optional boolean parameter that allows you to hide disabled + identities. If omitted, the ListIdentities API will include disabled + identities in the response. + """ + @dataclass(kw_only=True) class ListIdentitiesOutput(_SerdeShape): """The response to a ListIdentities request.""" @@ -710,6 +947,14 @@ class ListIdentityPoolsInput(_SerdeShape): next_token: str | None = ... """A pagination token.""" +class ListIdentityPoolsInputDict(TypedDict, total=False): + """Dictionary form of `ListIdentityPoolsInput`.""" + + max_results: Required[int] + """The maximum number of identities to return.""" + next_token: str | None + """A pagination token.""" + @dataclass(kw_only=True) class ListIdentityPoolsOutput(_SerdeShape): """The result of a successful ListIdentityPools action.""" @@ -736,6 +981,15 @@ class ListTagsForResourceInput(_SerdeShape): assigned to. """ +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the identity pool that the tags are + assigned to. + """ + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -776,6 +1030,31 @@ class LookupDeveloperIdentityInput(_SerdeShape): call the API again and get results starting from the 11th match. """ +class LookupDeveloperIdentityInputDict(TypedDict, total=False): + """Dictionary form of `LookupDeveloperIdentityInput`.""" + + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + identity_id: str | None + """A unique identifier in the format REGION:GUID.""" + developer_user_identifier: str | None + """ + A unique ID used by your backend authentication process to identify a + user. Typically, a developer identity provider would issue many + developer user identifiers, in keeping with the number of users. + """ + max_results: int | None + """The maximum number of identities to return.""" + next_token: str | None + """ + A pagination token. The first call you make will have `NextToken` set to + null. After that the service will return `NextToken` values as needed. + For example, let's say you make a request with `MaxResults` set to 10, + and there are 20 matches in the database. The service will return a + pagination token as a part of the response. This token can be used to + call the API again and get results starting from the 11th match. + """ + @dataclass(kw_only=True) class LookupDeveloperIdentityOutput(_SerdeShape): """Returned in response to a successful `LookupDeveloperIdentity` action.""" @@ -830,6 +1109,27 @@ class MappingRule(_SerdeShape): role_arn: str """The role ARN.""" +class MappingRuleDict(TypedDict, total=False): + """Dictionary form of `MappingRule`.""" + + claim: Required[str] + """ + The claim name that must be present in the token, for example, + \"isAdmin\" or \"paid\". + """ + match_type: Required[str] + """ + The match condition that specifies how closely the claim value in the + IdP token must match `Value`. + """ + value: Required[str] + """ + A brief string that the claim must match, for example, \"paid\" or + \"yes\". + """ + role_arn: Required[str] + """The role ARN.""" + class MappingRuleMatchType(UnknownEnumMixin, StrEnum): EQUALS = "Equals" CONTAINS = "Contains" @@ -862,6 +1162,31 @@ class MergeDeveloperIdentitiesInput(_SerdeShape): identity_pool_id: str | None = ... """An identity pool ID in the format REGION:GUID.""" +class MergeDeveloperIdentitiesInputDict(TypedDict, total=False): + """Dictionary form of `MergeDeveloperIdentitiesInput`.""" + + source_user_identifier: Required[str] + """ + User identifier for the source user. The value should be a + `DeveloperUserIdentifier`. + """ + destination_user_identifier: Required[str] + """ + User identifier for the destination user. The value should be a + `DeveloperUserIdentifier`. + """ + developer_provider_name: Required[str] + """ + The \"domain\" by which Cognito will refer to your users. This is a + (pseudo) domain name that you provide while creating an identity pool. + This name acts as a placeholder that allows your backend and the Cognito + service to communicate about the developer provider. For the + `DeveloperProviderName`, you can use letters as well as period (.), + underscore (_), and dash (-). + """ + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + @dataclass(kw_only=True) class MergeDeveloperIdentitiesOutput(_SerdeShape): """Returned in response to a successful `MergeDeveloperIdentities` action.""" @@ -947,6 +1272,34 @@ class RoleMapping(_SerdeShape): required. """ +class RoleMappingDict(TypedDict, total=False): + """Dictionary form of `RoleMapping`.""" + + type: Required[str] + """ + The role mapping type. Token will use `cognito:roles` and + `cognito:preferred_role` claims from the Cognito identity provider token + to map groups to roles. Rules will attempt to match claims from the + token to map to a role. + """ + ambiguous_role_resolution: str | None + """ + If you specify Token or Rules as the `Type`, `AmbiguousRoleResolution` + is required. + + Specifies the action to be taken if either no rules match the claim + value for the `Rules` type, or there is no `cognito:preferred_role` + claim and there are multiple `cognito:roles` matches for the `Token` + type. + """ + rules_configuration: RulesConfigurationType | RulesConfigurationTypeDict | None + """ + The rules to be used for mapping users to roles. + + If you specify Rules as the role mapping type, `RulesConfiguration` is + required. + """ + class RoleMappingType(UnknownEnumMixin, StrEnum): TOKEN = "Token" RULES = "Rules" @@ -962,6 +1315,16 @@ class RulesConfigurationType(_SerdeShape): Rules are evaluated in order. The first one to match specifies the role. """ +class RulesConfigurationTypeDict(TypedDict, total=False): + """Dictionary form of `RulesConfigurationType`.""" + + rules: Required[Sequence[MappingRule | MappingRuleDict]] + """ + An array of rules. You can specify up to 25 rules per identity provider. + + Rules are evaluated in order. The first one to match specifies the role. + """ + @dataclass(kw_only=True) class SetIdentityPoolRolesInput(_SerdeShape): """Input to the `SetIdentityPoolRoles` action.""" @@ -984,6 +1347,27 @@ class SetIdentityPoolRolesInput(_SerdeShape): Up to 25 rules can be specified per identity provider. """ +class SetIdentityPoolRolesInputDict(TypedDict, total=False): + """Dictionary form of `SetIdentityPoolRolesInput`.""" + + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + roles: Required[Mapping[str, str]] + """ + The map of roles associated with this pool. For a given role, the key + will be either \"authenticated\" or \"unauthenticated\" and the value + will be the Role ARN. + """ + role_mappings: Mapping[str, RoleMapping | RoleMappingDict] | None + """ + How users for a specific identity provider are to mapped to roles. This + is a string to RoleMapping object map. The string identifies the + identity provider, for example, `graph.facebook.com` or + `cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id`. + + Up to 25 rules can be specified per identity provider. + """ + @dataclass(kw_only=True) class SetIdentityPoolRolesOutput(_SerdeShape): """Dataclass for SetIdentityPoolRolesOutput structure.""" @@ -1012,6 +1396,21 @@ class SetPrincipalTagAttributeMapInput(_SerdeShape): principal_tags: dict[str, str] | None = ... """You can use this operation to add principal tags.""" +class SetPrincipalTagAttributeMapInputDict(TypedDict, total=False): + """Dictionary form of `SetPrincipalTagAttributeMapInput`.""" + + identity_pool_id: Required[str] + """The ID of the Identity Pool you want to set attribute mappings for.""" + identity_provider_name: Required[str] + """The provider name you want to use for attribute mappings.""" + use_defaults: bool | None + """ + You can use this operation to use default (username and clientID) + attribute mappings. + """ + principal_tags: Mapping[str, str] | None + """You can use this operation to add principal tags.""" + @dataclass(kw_only=True) class SetPrincipalTagAttributeMapOutput(_SerdeShape): """Dataclass for SetPrincipalTagAttributeMapOutput structure.""" @@ -1048,6 +1447,14 @@ class TagResourceInput(_SerdeShape): tags: dict[str, str] | None = ... """The tags to assign to the identity pool.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the identity pool.""" + tags: Required[Mapping[str, str]] + """The tags to assign to the identity pool.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -1088,6 +1495,21 @@ class UnlinkDeveloperIdentityInput(_SerdeShape): user. """ +class UnlinkDeveloperIdentityInputDict(TypedDict, total=False): + """Dictionary form of `UnlinkDeveloperIdentityInput`.""" + + identity_id: Required[str] + """A unique identifier in the format REGION:GUID.""" + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + developer_provider_name: Required[str] + """The \"domain\" by which Cognito will refer to your users.""" + developer_user_identifier: Required[str] + """ + A unique ID used by your backend authentication process to identify a + user. + """ + @dataclass(kw_only=True) class UnlinkDeveloperIdentityOutput(_SerdeShape): """Dataclass for UnlinkDeveloperIdentityOutput structure.""" @@ -1114,6 +1536,19 @@ class UnlinkIdentityInput(_SerdeShape): logins_to_remove: list[str] | None = ... """Provider names to unlink from this identity.""" +class UnlinkIdentityInputDict(TypedDict, total=False): + """Dictionary form of `UnlinkIdentityInput`.""" + + identity_id: Required[str] + """A unique identifier in the format REGION:GUID.""" + logins: Required[Mapping[str, str]] + """ + A set of optional name-value pairs that map provider names to provider + tokens. + """ + logins_to_remove: Required[Sequence[str]] + """Provider names to unlink from this identity.""" + @dataclass(kw_only=True) class UnlinkIdentityOutput(_SerdeShape): """Dataclass for UnlinkIdentityOutput structure.""" @@ -1147,6 +1582,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The keys of the tags to remove from the user pool.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the identity pool.""" + tag_keys: Required[Sequence[str]] + """The keys of the tags to remove from the user pool.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -1197,6 +1640,45 @@ class UpdateIdentityPoolInput(_SerdeShape): criteria. """ +class UpdateIdentityPoolInputDict(TypedDict, total=False): + """Dictionary form of `UpdateIdentityPoolInput`.""" + + identity_pool_id: Required[str] + """An identity pool ID in the format REGION:GUID.""" + identity_pool_name: Required[str] + """A string that you provide.""" + allow_unauthenticated_identities: bool | None + """TRUE if the identity pool supports unauthenticated logins.""" + allow_classic_flow: bool | None + """ + Enables or disables the Basic (Classic) authentication flow. For more + information, see [Identity Pools (Federated Identities) Authentication + Flow](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html) + in the *Amazon Cognito Developer Guide*. + """ + supported_login_providers: Mapping[str, str] | None + """Optional key:value pairs mapping provider names to provider app IDs.""" + developer_provider_name: str | None + """The \"domain\" by which Cognito will refer to your users.""" + open_id_connect_provider_ar_ns: Sequence[str] | None + """The ARNs of the OpenID Connect providers.""" + cognito_identity_providers: ( + Sequence[CognitoIdentityProvider | CognitoIdentityProviderDict] | None + ) + """A list representing an Amazon Cognito user pool and its client ID.""" + saml_provider_ar_ns: Sequence[str] | None + """ + An array of Amazon Resource Names (ARNs) of the SAML provider for your + identity pool. + """ + identity_pool_tags: Mapping[str, str] | None + """ + The tags that are assigned to the identity pool. A tag is a label that + you can apply to identity pools to categorize and manage them in + different ways, such as by purpose, owner, environment, or other + criteria. + """ + @dataclass(kw_only=True) class UpdateIdentityPoolOutput(_SerdeShape): """An object representing an Amazon Cognito identity pool.""" diff --git a/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/py.typed b/clients/aws-sdk-cognito-identity/src/aws_sdk_cognito_identity/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-cognito-identity/tests/_typecheck.py b/clients/aws-sdk-cognito-identity/tests/_typecheck.py index 5df94b92a..9d7157c58 100644 --- a/clients/aws-sdk-cognito-identity/tests/_typecheck.py +++ b/clients/aws-sdk-cognito-identity/tests/_typecheck.py @@ -2,66 +2,96 @@ from typing import Any +from aws_sdk_cognito_identity.aio.client import AsyncCognitoIdentityClient +from aws_sdk_cognito_identity.client import CognitoIdentityClient from aws_sdk_cognito_identity.models import ( CognitoIdentityProvider, + CognitoIdentityProviderDict, CreateIdentityPoolInput, + CreateIdentityPoolInputDict, CreateIdentityPoolOutput, Credentials, DeleteIdentitiesInput, + DeleteIdentitiesInputDict, DeleteIdentitiesOutput, DeleteIdentityPoolInput, + DeleteIdentityPoolInputDict, DeleteIdentityPoolOutput, DescribeIdentityInput, + DescribeIdentityInputDict, DescribeIdentityOutput, DescribeIdentityPoolInput, + DescribeIdentityPoolInputDict, DescribeIdentityPoolOutput, GetCredentialsForIdentityInput, + GetCredentialsForIdentityInputDict, GetCredentialsForIdentityOutput, GetIdInput, + GetIdInputDict, GetIdOutput, GetIdentityPoolRolesInput, + GetIdentityPoolRolesInputDict, GetIdentityPoolRolesOutput, GetOpenIdTokenForDeveloperIdentityInput, + GetOpenIdTokenForDeveloperIdentityInputDict, GetOpenIdTokenForDeveloperIdentityOutput, GetOpenIdTokenInput, + GetOpenIdTokenInputDict, GetOpenIdTokenOutput, GetPrincipalTagAttributeMapInput, + GetPrincipalTagAttributeMapInputDict, GetPrincipalTagAttributeMapOutput, IdentityDescription, IdentityPoolShortDescription, ListIdentitiesInput, + ListIdentitiesInputDict, ListIdentitiesOutput, ListIdentityPoolsInput, + ListIdentityPoolsInputDict, ListIdentityPoolsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, LookupDeveloperIdentityInput, + LookupDeveloperIdentityInputDict, LookupDeveloperIdentityOutput, MappingRule, + MappingRuleDict, MergeDeveloperIdentitiesInput, + MergeDeveloperIdentitiesInputDict, MergeDeveloperIdentitiesOutput, RoleMapping, + RoleMappingDict, RulesConfigurationType, + RulesConfigurationTypeDict, SetIdentityPoolRolesInput, + SetIdentityPoolRolesInputDict, SetIdentityPoolRolesOutput, SetPrincipalTagAttributeMapInput, + SetPrincipalTagAttributeMapInputDict, SetPrincipalTagAttributeMapOutput, TagResourceInput, + TagResourceInputDict, TagResourceOutput, UnlinkDeveloperIdentityInput, + UnlinkDeveloperIdentityInputDict, UnlinkDeveloperIdentityOutput, UnlinkIdentityInput, + UnlinkIdentityInputDict, UnlinkIdentityOutput, UnprocessedIdentityId, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateIdentityPoolInput, + UpdateIdentityPoolInputDict, UpdateIdentityPoolOutput, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -119,3 +149,314 @@ UntagResourceOutput() UpdateIdentityPoolInput() UpdateIdentityPoolOutput(identity_pool_id=_, identity_pool_name=_) +_params_0: CognitoIdentityProviderDict = {} +_params_1: CreateIdentityPoolInputDict = {"identity_pool_name": _} +_params_2: DeleteIdentitiesInputDict = {"identity_ids_to_delete": _} +_params_3: DeleteIdentityPoolInputDict = {"identity_pool_id": _} +_params_4: DescribeIdentityInputDict = {"identity_id": _} +_params_5: DescribeIdentityPoolInputDict = {"identity_pool_id": _} +_params_6: GetCredentialsForIdentityInputDict = {"identity_id": _} +_params_7: GetIdentityPoolRolesInputDict = {"identity_pool_id": _} +_params_8: GetIdInputDict = {"identity_pool_id": _} +_params_9: GetOpenIdTokenForDeveloperIdentityInputDict = { + "identity_pool_id": _, + "logins": _, +} +_params_10: GetOpenIdTokenInputDict = {"identity_id": _} +_params_11: GetPrincipalTagAttributeMapInputDict = { + "identity_pool_id": _, + "identity_provider_name": _, +} +_params_12: ListIdentitiesInputDict = {"identity_pool_id": _, "max_results": _} +_params_13: ListIdentityPoolsInputDict = {"max_results": _} +_params_14: ListTagsForResourceInputDict = {"resource_arn": _} +_params_15: LookupDeveloperIdentityInputDict = {"identity_pool_id": _} +_params_16: MappingRuleDict = {"claim": _, "match_type": _, "value": _, "role_arn": _} +_params_17: MergeDeveloperIdentitiesInputDict = { + "source_user_identifier": _, + "destination_user_identifier": _, + "developer_provider_name": _, + "identity_pool_id": _, +} +_params_18: RoleMappingDict = {"type": _} +_params_19: RulesConfigurationTypeDict = {"rules": _} +_params_20: SetIdentityPoolRolesInputDict = {"identity_pool_id": _, "roles": _} +_params_21: SetPrincipalTagAttributeMapInputDict = { + "identity_pool_id": _, + "identity_provider_name": _, +} +_params_22: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_23: UnlinkDeveloperIdentityInputDict = { + "identity_id": _, + "identity_pool_id": _, + "developer_provider_name": _, + "developer_user_identifier": _, +} +_params_24: UnlinkIdentityInputDict = { + "identity_id": _, + "logins": _, + "logins_to_remove": _, +} +_params_25: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_26: UpdateIdentityPoolInputDict = { + "identity_pool_id": _, + "identity_pool_name": _, +} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncCognitoIdentityClient) -> None: + pass + await client.create_identity_pool(identity_pool_name=_) + await client.create_identity_pool(**_request(CreateIdentityPoolInputDict)) + await client.create_identity_pool(_request(CreateIdentityPoolInput)) + await client.create_identity_pool(_request(CreateIdentityPoolInputDict)) + await client.delete_identities(identity_ids_to_delete=_) + await client.delete_identities(**_request(DeleteIdentitiesInputDict)) + await client.delete_identities(_request(DeleteIdentitiesInput)) + await client.delete_identities(_request(DeleteIdentitiesInputDict)) + await client.delete_identity_pool(identity_pool_id=_) + await client.delete_identity_pool(**_request(DeleteIdentityPoolInputDict)) + await client.delete_identity_pool(_request(DeleteIdentityPoolInput)) + await client.delete_identity_pool(_request(DeleteIdentityPoolInputDict)) + await client.describe_identity(identity_id=_) + await client.describe_identity(**_request(DescribeIdentityInputDict)) + await client.describe_identity(_request(DescribeIdentityInput)) + await client.describe_identity(_request(DescribeIdentityInputDict)) + await client.describe_identity_pool(identity_pool_id=_) + await client.describe_identity_pool(**_request(DescribeIdentityPoolInputDict)) + await client.describe_identity_pool(_request(DescribeIdentityPoolInput)) + await client.describe_identity_pool(_request(DescribeIdentityPoolInputDict)) + await client.get_credentials_for_identity(identity_id=_) + await client.get_credentials_for_identity( + **_request(GetCredentialsForIdentityInputDict) + ) + await client.get_credentials_for_identity(_request(GetCredentialsForIdentityInput)) + await client.get_credentials_for_identity( + _request(GetCredentialsForIdentityInputDict) + ) + await client.get_id(identity_pool_id=_) + await client.get_id(**_request(GetIdInputDict)) + await client.get_id(_request(GetIdInput)) + await client.get_id(_request(GetIdInputDict)) + await client.get_identity_pool_roles(identity_pool_id=_) + await client.get_identity_pool_roles(**_request(GetIdentityPoolRolesInputDict)) + await client.get_identity_pool_roles(_request(GetIdentityPoolRolesInput)) + await client.get_identity_pool_roles(_request(GetIdentityPoolRolesInputDict)) + await client.get_open_id_token(identity_id=_) + await client.get_open_id_token(**_request(GetOpenIdTokenInputDict)) + await client.get_open_id_token(_request(GetOpenIdTokenInput)) + await client.get_open_id_token(_request(GetOpenIdTokenInputDict)) + await client.get_open_id_token_for_developer_identity(identity_pool_id=_, logins=_) + await client.get_open_id_token_for_developer_identity( + **_request(GetOpenIdTokenForDeveloperIdentityInputDict) + ) + await client.get_open_id_token_for_developer_identity( + _request(GetOpenIdTokenForDeveloperIdentityInput) + ) + await client.get_open_id_token_for_developer_identity( + _request(GetOpenIdTokenForDeveloperIdentityInputDict) + ) + await client.get_principal_tag_attribute_map( + identity_pool_id=_, identity_provider_name=_ + ) + await client.get_principal_tag_attribute_map( + **_request(GetPrincipalTagAttributeMapInputDict) + ) + await client.get_principal_tag_attribute_map( + _request(GetPrincipalTagAttributeMapInput) + ) + await client.get_principal_tag_attribute_map( + _request(GetPrincipalTagAttributeMapInputDict) + ) + await client.list_identities(identity_pool_id=_, max_results=_) + await client.list_identities(**_request(ListIdentitiesInputDict)) + await client.list_identities(_request(ListIdentitiesInput)) + await client.list_identities(_request(ListIdentitiesInputDict)) + await client.list_identity_pools(max_results=_) + await client.list_identity_pools(**_request(ListIdentityPoolsInputDict)) + await client.list_identity_pools(_request(ListIdentityPoolsInput)) + await client.list_identity_pools(_request(ListIdentityPoolsInputDict)) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.lookup_developer_identity(identity_pool_id=_) + await client.lookup_developer_identity(**_request(LookupDeveloperIdentityInputDict)) + await client.lookup_developer_identity(_request(LookupDeveloperIdentityInput)) + await client.lookup_developer_identity(_request(LookupDeveloperIdentityInputDict)) + await client.merge_developer_identities( + source_user_identifier=_, + destination_user_identifier=_, + developer_provider_name=_, + identity_pool_id=_, + ) + await client.merge_developer_identities( + **_request(MergeDeveloperIdentitiesInputDict) + ) + await client.merge_developer_identities(_request(MergeDeveloperIdentitiesInput)) + await client.merge_developer_identities(_request(MergeDeveloperIdentitiesInputDict)) + await client.set_identity_pool_roles(identity_pool_id=_, roles=_) + await client.set_identity_pool_roles(**_request(SetIdentityPoolRolesInputDict)) + await client.set_identity_pool_roles(_request(SetIdentityPoolRolesInput)) + await client.set_identity_pool_roles(_request(SetIdentityPoolRolesInputDict)) + await client.set_principal_tag_attribute_map( + identity_pool_id=_, identity_provider_name=_ + ) + await client.set_principal_tag_attribute_map( + **_request(SetPrincipalTagAttributeMapInputDict) + ) + await client.set_principal_tag_attribute_map( + _request(SetPrincipalTagAttributeMapInput) + ) + await client.set_principal_tag_attribute_map( + _request(SetPrincipalTagAttributeMapInputDict) + ) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.unlink_developer_identity( + identity_id=_, + identity_pool_id=_, + developer_provider_name=_, + developer_user_identifier=_, + ) + await client.unlink_developer_identity(**_request(UnlinkDeveloperIdentityInputDict)) + await client.unlink_developer_identity(_request(UnlinkDeveloperIdentityInput)) + await client.unlink_developer_identity(_request(UnlinkDeveloperIdentityInputDict)) + await client.unlink_identity(identity_id=_, logins=_, logins_to_remove=_) + await client.unlink_identity(**_request(UnlinkIdentityInputDict)) + await client.unlink_identity(_request(UnlinkIdentityInput)) + await client.unlink_identity(_request(UnlinkIdentityInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_identity_pool(identity_pool_id=_, identity_pool_name=_) + await client.update_identity_pool(**_request(UpdateIdentityPoolInputDict)) + await client.update_identity_pool(_request(UpdateIdentityPoolInput)) + await client.update_identity_pool(_request(UpdateIdentityPoolInputDict)) + + +def check_sync_calls(client: CognitoIdentityClient) -> None: + pass + client.create_identity_pool(identity_pool_name=_) + client.create_identity_pool(**_request(CreateIdentityPoolInputDict)) + client.create_identity_pool(_request(CreateIdentityPoolInput)) + client.create_identity_pool(_request(CreateIdentityPoolInputDict)) + client.delete_identities(identity_ids_to_delete=_) + client.delete_identities(**_request(DeleteIdentitiesInputDict)) + client.delete_identities(_request(DeleteIdentitiesInput)) + client.delete_identities(_request(DeleteIdentitiesInputDict)) + client.delete_identity_pool(identity_pool_id=_) + client.delete_identity_pool(**_request(DeleteIdentityPoolInputDict)) + client.delete_identity_pool(_request(DeleteIdentityPoolInput)) + client.delete_identity_pool(_request(DeleteIdentityPoolInputDict)) + client.describe_identity(identity_id=_) + client.describe_identity(**_request(DescribeIdentityInputDict)) + client.describe_identity(_request(DescribeIdentityInput)) + client.describe_identity(_request(DescribeIdentityInputDict)) + client.describe_identity_pool(identity_pool_id=_) + client.describe_identity_pool(**_request(DescribeIdentityPoolInputDict)) + client.describe_identity_pool(_request(DescribeIdentityPoolInput)) + client.describe_identity_pool(_request(DescribeIdentityPoolInputDict)) + client.get_credentials_for_identity(identity_id=_) + client.get_credentials_for_identity(**_request(GetCredentialsForIdentityInputDict)) + client.get_credentials_for_identity(_request(GetCredentialsForIdentityInput)) + client.get_credentials_for_identity(_request(GetCredentialsForIdentityInputDict)) + client.get_id(identity_pool_id=_) + client.get_id(**_request(GetIdInputDict)) + client.get_id(_request(GetIdInput)) + client.get_id(_request(GetIdInputDict)) + client.get_identity_pool_roles(identity_pool_id=_) + client.get_identity_pool_roles(**_request(GetIdentityPoolRolesInputDict)) + client.get_identity_pool_roles(_request(GetIdentityPoolRolesInput)) + client.get_identity_pool_roles(_request(GetIdentityPoolRolesInputDict)) + client.get_open_id_token(identity_id=_) + client.get_open_id_token(**_request(GetOpenIdTokenInputDict)) + client.get_open_id_token(_request(GetOpenIdTokenInput)) + client.get_open_id_token(_request(GetOpenIdTokenInputDict)) + client.get_open_id_token_for_developer_identity(identity_pool_id=_, logins=_) + client.get_open_id_token_for_developer_identity( + **_request(GetOpenIdTokenForDeveloperIdentityInputDict) + ) + client.get_open_id_token_for_developer_identity( + _request(GetOpenIdTokenForDeveloperIdentityInput) + ) + client.get_open_id_token_for_developer_identity( + _request(GetOpenIdTokenForDeveloperIdentityInputDict) + ) + client.get_principal_tag_attribute_map(identity_pool_id=_, identity_provider_name=_) + client.get_principal_tag_attribute_map( + **_request(GetPrincipalTagAttributeMapInputDict) + ) + client.get_principal_tag_attribute_map(_request(GetPrincipalTagAttributeMapInput)) + client.get_principal_tag_attribute_map( + _request(GetPrincipalTagAttributeMapInputDict) + ) + client.list_identities(identity_pool_id=_, max_results=_) + client.list_identities(**_request(ListIdentitiesInputDict)) + client.list_identities(_request(ListIdentitiesInput)) + client.list_identities(_request(ListIdentitiesInputDict)) + client.list_identity_pools(max_results=_) + client.list_identity_pools(**_request(ListIdentityPoolsInputDict)) + client.list_identity_pools(_request(ListIdentityPoolsInput)) + client.list_identity_pools(_request(ListIdentityPoolsInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.lookup_developer_identity(identity_pool_id=_) + client.lookup_developer_identity(**_request(LookupDeveloperIdentityInputDict)) + client.lookup_developer_identity(_request(LookupDeveloperIdentityInput)) + client.lookup_developer_identity(_request(LookupDeveloperIdentityInputDict)) + client.merge_developer_identities( + source_user_identifier=_, + destination_user_identifier=_, + developer_provider_name=_, + identity_pool_id=_, + ) + client.merge_developer_identities(**_request(MergeDeveloperIdentitiesInputDict)) + client.merge_developer_identities(_request(MergeDeveloperIdentitiesInput)) + client.merge_developer_identities(_request(MergeDeveloperIdentitiesInputDict)) + client.set_identity_pool_roles(identity_pool_id=_, roles=_) + client.set_identity_pool_roles(**_request(SetIdentityPoolRolesInputDict)) + client.set_identity_pool_roles(_request(SetIdentityPoolRolesInput)) + client.set_identity_pool_roles(_request(SetIdentityPoolRolesInputDict)) + client.set_principal_tag_attribute_map(identity_pool_id=_, identity_provider_name=_) + client.set_principal_tag_attribute_map( + **_request(SetPrincipalTagAttributeMapInputDict) + ) + client.set_principal_tag_attribute_map(_request(SetPrincipalTagAttributeMapInput)) + client.set_principal_tag_attribute_map( + _request(SetPrincipalTagAttributeMapInputDict) + ) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.unlink_developer_identity( + identity_id=_, + identity_pool_id=_, + developer_provider_name=_, + developer_user_identifier=_, + ) + client.unlink_developer_identity(**_request(UnlinkDeveloperIdentityInputDict)) + client.unlink_developer_identity(_request(UnlinkDeveloperIdentityInput)) + client.unlink_developer_identity(_request(UnlinkDeveloperIdentityInputDict)) + client.unlink_identity(identity_id=_, logins=_, logins_to_remove=_) + client.unlink_identity(**_request(UnlinkIdentityInputDict)) + client.unlink_identity(_request(UnlinkIdentityInput)) + client.unlink_identity(_request(UnlinkIdentityInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_identity_pool(identity_pool_id=_, identity_pool_name=_) + client.update_identity_pool(**_request(UpdateIdentityPoolInputDict)) + client.update_identity_pool(_request(UpdateIdentityPoolInput)) + client.update_identity_pool(_request(UpdateIdentityPoolInputDict)) diff --git a/clients/aws-sdk-connecthealth/pyproject.toml b/clients/aws-sdk-connecthealth/pyproject.toml index 1b6a32c79..f8e3885c8 100644 --- a/clients/aws-sdk-connecthealth/pyproject.toml +++ b/clients/aws-sdk-connecthealth/pyproject.toml @@ -24,14 +24,14 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] @@ -39,7 +39,7 @@ test = [ "boto3", "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0", + "smithy_test~=0.4.0", "types-boto3-lite[s3]", ] diff --git a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/_private/schemas.py b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/_private/schemas.py index 007d3870b..28ecb1188 100644 --- a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/_private/schemas.py +++ b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/_private/schemas.py @@ -165,7 +165,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/aio/client.py b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/aio/client.py index ee9d2ab65..8c7d1582c 100644 --- a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/aio/client.py +++ b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -17,7 +17,6 @@ from ..models import ( MedicalScribeInputStream, MedicalScribeOutputStream, - StartMedicalScribeListeningSessionInput, StartMedicalScribeListeningSessionOutput, _MedicalScribeOutputStreamDeserializer, ) @@ -28,35 +27,20 @@ if TYPE_CHECKING: from ..models import ( - ActivateSubscriptionInput, ActivateSubscriptionOutput, - CreateDomainInput, CreateDomainOutput, - CreateSubscriptionInput, CreateSubscriptionOutput, - DeactivateSubscriptionInput, DeactivateSubscriptionOutput, - DeleteDomainInput, DeleteDomainOutput, - GetDomainInput, GetDomainOutput, - GetMedicalScribeListeningSessionInput, GetMedicalScribeListeningSessionOutput, - GetPatientInsightsJobInput, GetPatientInsightsJobOutput, - GetSubscriptionInput, GetSubscriptionOutput, - ListDomainsInput, ListDomainsOutput, - ListSubscriptionsInput, ListSubscriptionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - StartPatientInsightsJobInput, StartPatientInsightsJobOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, ) @@ -80,17 +64,30 @@ class AsyncConnectHealthClient(AsyncClient[AsyncConnectHealthConfig]): Amazon Connect Health. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def activate_subscription( - self, input: ActivateSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.ActivateSubscriptionInput + | _models.ActivateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ActivateSubscriptionOutput: ... + + @_overload + async def activate_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ActivateSubscriptionInputDict], ) -> ActivateSubscriptionOutput: """ Activates a Subscription to enable billing for a user. Args: - input: - An instance of `ActivateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -100,17 +97,38 @@ async def activate_subscription( Returns: An instance of `ActivateSubscriptionOutput`. """ - return await self._invoke(input, _models.ACTIVATE_SUBSCRIPTION, [], plugins) + async def activate_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ActivateSubscriptionOutput: + return await self._invoke( + self._select_input(_models.ACTIVATE_SUBSCRIPTION, args, kwargs), + _models.ACTIVATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload async def create_domain( - self, input: CreateDomainInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDomainInput | _models.CreateDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDomainOutput: ... + + @_overload + async def create_domain( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDomainInputDict], ) -> CreateDomainOutput: """ Creates a new Domain for managing HealthAgent resources. Args: - input: - An instance of `CreateDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -120,18 +138,39 @@ async def create_domain( Returns: An instance of `CreateDomainOutput`. """ - return await self._invoke(input, _models.CREATE_DOMAIN, [], plugins) + async def create_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDomainOutput: + return await self._invoke( + self._select_input(_models.CREATE_DOMAIN, args, kwargs), + _models.CREATE_DOMAIN, + [], + plugins, + ) + + @_overload async def create_subscription( - self, input: CreateSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateSubscriptionInput | _models.CreateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSubscriptionOutput: ... + + @_overload + async def create_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSubscriptionInputDict], ) -> CreateSubscriptionOutput: """ Creates a new Subscription within a Domain for billing and user management. Args: - input: - An instance of `CreateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -141,17 +180,39 @@ async def create_subscription( Returns: An instance of `CreateSubscriptionOutput`. """ - return await self._invoke(input, _models.CREATE_SUBSCRIPTION, [], plugins) + async def create_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSubscriptionOutput: + return await self._invoke( + self._select_input(_models.CREATE_SUBSCRIPTION, args, kwargs), + _models.CREATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload async def deactivate_subscription( - self, input: DeactivateSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeactivateSubscriptionInput + | _models.DeactivateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeactivateSubscriptionOutput: ... + + @_overload + async def deactivate_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeactivateSubscriptionInputDict], ) -> DeactivateSubscriptionOutput: """ Deactivates a Subscription to stop billing for a user. Args: - input: - An instance of `DeactivateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -161,17 +222,38 @@ async def deactivate_subscription( Returns: An instance of `DeactivateSubscriptionOutput`. """ - return await self._invoke(input, _models.DEACTIVATE_SUBSCRIPTION, [], plugins) + async def deactivate_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeactivateSubscriptionOutput: + return await self._invoke( + self._select_input(_models.DEACTIVATE_SUBSCRIPTION, args, kwargs), + _models.DEACTIVATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload async def delete_domain( - self, input: DeleteDomainInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteDomainInput | _models.DeleteDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDomainOutput: ... + + @_overload + async def delete_domain( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDomainInputDict], ) -> DeleteDomainOutput: """ Deletes a Domain and all associated resources. Args: - input: - An instance of `DeleteDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -181,17 +263,38 @@ async def delete_domain( Returns: An instance of `DeleteDomainOutput`. """ - return await self._invoke(input, _models.DELETE_DOMAIN, [], plugins) + async def delete_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDomainOutput: + return await self._invoke( + self._select_input(_models.DELETE_DOMAIN, args, kwargs), + _models.DELETE_DOMAIN, + [], + plugins, + ) + + @_overload async def get_domain( - self, input: GetDomainInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDomainInput | _models.GetDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDomainOutput: ... + + @_overload + async def get_domain( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDomainInputDict], ) -> GetDomainOutput: """ Retrieves information about a Domain. Args: - input: - An instance of `GetDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -201,19 +304,39 @@ async def get_domain( Returns: An instance of `GetDomainOutput`. """ - return await self._invoke(input, _models.GET_DOMAIN, [], plugins) + async def get_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDomainOutput: + return await self._invoke( + self._select_input(_models.GET_DOMAIN, args, kwargs), + _models.GET_DOMAIN, + [], + plugins, + ) + + @_overload async def get_medical_scribe_listening_session( self, - input: GetMedicalScribeListeningSessionInput, + request: _models.GetMedicalScribeListeningSessionInput + | _models.GetMedicalScribeListeningSessionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetMedicalScribeListeningSessionOutput: ... + + @_overload + async def get_medical_scribe_listening_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMedicalScribeListeningSessionInputDict], ) -> GetMedicalScribeListeningSessionOutput: """ Retrieves details about an existing Medical Scribe listening session Args: - input: - An instance of `GetMedicalScribeListeningSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -223,19 +346,41 @@ async def get_medical_scribe_listening_session( Returns: An instance of `GetMedicalScribeListeningSessionOutput`. """ + + async def get_medical_scribe_listening_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMedicalScribeListeningSessionOutput: return await self._invoke( - input, _models.GET_MEDICAL_SCRIBE_LISTENING_SESSION, [], plugins + self._select_input( + _models.GET_MEDICAL_SCRIBE_LISTENING_SESSION, args, kwargs + ), + _models.GET_MEDICAL_SCRIBE_LISTENING_SESSION, + [], + plugins, ) + @_overload + async def get_patient_insights_job( + self, + request: _models.GetPatientInsightsJobInput + | _models.GetPatientInsightsJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPatientInsightsJobOutput: ... + + @_overload async def get_patient_insights_job( - self, input: GetPatientInsightsJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPatientInsightsJobInputDict], ) -> GetPatientInsightsJobOutput: """ Get details of a started patient insights job. Args: - input: - An instance of `GetPatientInsightsJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -245,17 +390,38 @@ async def get_patient_insights_job( Returns: An instance of `GetPatientInsightsJobOutput`. """ - return await self._invoke(input, _models.GET_PATIENT_INSIGHTS_JOB, [], plugins) + async def get_patient_insights_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPatientInsightsJobOutput: + return await self._invoke( + self._select_input(_models.GET_PATIENT_INSIGHTS_JOB, args, kwargs), + _models.GET_PATIENT_INSIGHTS_JOB, + [], + plugins, + ) + + @_overload + async def get_subscription( + self, + request: _models.GetSubscriptionInput | _models.GetSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSubscriptionOutput: ... + + @_overload async def get_subscription( - self, input: GetSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSubscriptionInputDict], ) -> GetSubscriptionOutput: """ Retrieves information about a Subscription. Args: - input: - An instance of `GetSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -265,17 +431,38 @@ async def get_subscription( Returns: An instance of `GetSubscriptionOutput`. """ - return await self._invoke(input, _models.GET_SUBSCRIPTION, [], plugins) + async def get_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSubscriptionOutput: + return await self._invoke( + self._select_input(_models.GET_SUBSCRIPTION, args, kwargs), + _models.GET_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + async def list_domains( + self, + request: _models.ListDomainsInput | _models.ListDomainsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDomainsOutput: ... + + @_overload async def list_domains( - self, input: ListDomainsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDomainsInputDict], ) -> ListDomainsOutput: """ Lists Domains for a given account. Args: - input: - An instance of `ListDomainsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -285,17 +472,38 @@ async def list_domains( Returns: An instance of `ListDomainsOutput`. """ - return await self._invoke(input, _models.LIST_DOMAINS, [], plugins) + async def list_domains( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDomainsOutput: + return await self._invoke( + self._select_input(_models.LIST_DOMAINS, args, kwargs), + _models.LIST_DOMAINS, + [], + plugins, + ) + + @_overload + async def list_subscriptions( + self, + request: _models.ListSubscriptionsInput | _models.ListSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSubscriptionsOutput: ... + + @_overload async def list_subscriptions( - self, input: ListSubscriptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSubscriptionsInputDict], ) -> ListSubscriptionsOutput: """ Lists all Subscriptions within a Domain. Args: - input: - An instance of `ListSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -305,17 +513,39 @@ async def list_subscriptions( Returns: An instance of `ListSubscriptionsOutput`. """ - return await self._invoke(input, _models.LIST_SUBSCRIPTIONS, [], plugins) + async def list_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSubscriptionsOutput: + return await self._invoke( + self._select_input(_models.LIST_SUBSCRIPTIONS, args, kwargs), + _models.LIST_SUBSCRIPTIONS, + [], + plugins, + ) + + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags associated with the specified resource Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -325,24 +555,48 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload async def start_medical_scribe_listening_session( self, - input: StartMedicalScribeListeningSessionInput, + request: _models.StartMedicalScribeListeningSessionInput + | _models.StartMedicalScribeListeningSessionInputDict, + /, + *, plugins: list[Plugin] | None = None, ) -> AsyncDuplexEventStream[ MedicalScribeInputStream, MedicalScribeOutputStream, StartMedicalScribeListeningSessionOutput, + ]: ... + + @_overload + async def start_medical_scribe_listening_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMedicalScribeListeningSessionInputDict], + ) -> AsyncDuplexEventStream[ + MedicalScribeInputStream, + MedicalScribeOutputStream, + StartMedicalScribeListeningSessionOutput, ]: """ Starts a new Medical Scribe listening session for real-time audio transcription Args: - input: - An instance of `StartMedicalScribeListeningSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -352,8 +606,21 @@ async def start_medical_scribe_listening_session( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def start_medical_scribe_listening_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + MedicalScribeInputStream, + MedicalScribeOutputStream, + StartMedicalScribeListeningSessionOutput, + ]: pipeline, call = await self._prepare_call( - input, _models.START_MEDICAL_SCRIBE_LISTENING_SESSION, [], plugins + self._select_input( + _models.START_MEDICAL_SCRIBE_LISTENING_SESSION, args, kwargs + ), + _models.START_MEDICAL_SCRIBE_LISTENING_SESSION, + [], + plugins, ) return await pipeline.duplex_stream( call, @@ -362,15 +629,28 @@ async def start_medical_scribe_listening_session( _MedicalScribeOutputStreamDeserializer().deserialize, ) + @_overload + async def start_patient_insights_job( + self, + request: _models.StartPatientInsightsJobInput + | _models.StartPatientInsightsJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartPatientInsightsJobOutput: ... + + @_overload async def start_patient_insights_job( - self, input: StartPatientInsightsJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartPatientInsightsJobInputDict], ) -> StartPatientInsightsJobOutput: """ Starts a new patient insights job. Args: - input: - An instance of `StartPatientInsightsJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -380,19 +660,38 @@ async def start_patient_insights_job( Returns: An instance of `StartPatientInsightsJobOutput`. """ + + async def start_patient_insights_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartPatientInsightsJobOutput: return await self._invoke( - input, _models.START_PATIENT_INSIGHTS_JOB, [], plugins + self._select_input(_models.START_PATIENT_INSIGHTS_JOB, args, kwargs), + _models.START_PATIENT_INSIGHTS_JOB, + [], + plugins, ) + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + async def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associates the specified tags with the specified resource Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -402,17 +701,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes the specified tags from the specified resource Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -422,7 +742,16 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) async def _new_config(self) -> AsyncConnectHealthConfig: return await AsyncConnectHealthConfig.resolve() diff --git a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/aio/config.py b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/aio/config.py index ffb1cf8f1..c198b8570 100644 --- a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/aio/config.py +++ b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/aio/config.py @@ -177,6 +177,12 @@ class AsyncConnectHealthConfig(AsyncAwsConfig): dispatching the request will return an error. """ + disable_host_prefix_injection: bool | None = None + """ + Whether to skip prepending operations' modeled host prefixes to the + endpoint host. + """ + aws_credentials_identity_resolver: ( AsyncIdentityResolver[AWSCredentialsIdentity, AWSIdentityProperties] | None ) = None @@ -206,16 +212,11 @@ class AsyncConnectHealthConfig(AsyncAwsConfig): header. """ - disable_host_prefix_injection: bool | None = None - """ - Whether to skip prepending operations' modeled host prefixes to the - endpoint host. - """ - _FIELDS: ClassVar[dict[str, FieldSpec]] = { "use_fips_endpoint": FieldSpec( default=None, resolver=resolve_use_fips_endpoint_program ), + "disable_host_prefix_injection": FieldSpec(default=None), "aws_credentials_identity_resolver": FieldSpec(default=None), "region": FieldSpec(default=None), "aws_access_key_id": FieldSpec(default=None), @@ -223,7 +224,6 @@ class AsyncConnectHealthConfig(AsyncAwsConfig): "aws_session_token": FieldSpec(default=None), "user_agent_extra": FieldSpec(default=None), "sdk_ua_app_id": FieldSpec(default=None), - "disable_host_prefix_injection": FieldSpec(default=None), **AsyncAwsConfig._FIELDS, "endpoint_uri": FieldSpec( default=None, resolver=EndpointUriResolver("connecthealth").program diff --git a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/client.py b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/client.py index 8fa5acc9d..1e54558e8 100644 --- a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/client.py +++ b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,35 +20,20 @@ if TYPE_CHECKING: from .models import ( - ActivateSubscriptionInput, ActivateSubscriptionOutput, - CreateDomainInput, CreateDomainOutput, - CreateSubscriptionInput, CreateSubscriptionOutput, - DeactivateSubscriptionInput, DeactivateSubscriptionOutput, - DeleteDomainInput, DeleteDomainOutput, - GetDomainInput, GetDomainOutput, - GetMedicalScribeListeningSessionInput, GetMedicalScribeListeningSessionOutput, - GetPatientInsightsJobInput, GetPatientInsightsJobOutput, - GetSubscriptionInput, GetSubscriptionOutput, - ListDomainsInput, ListDomainsOutput, - ListSubscriptionsInput, ListSubscriptionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - StartPatientInsightsJobInput, StartPatientInsightsJobOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, ) @@ -72,17 +57,30 @@ class ConnectHealthClient(Client[ConnectHealthConfig]): Amazon Connect Health. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def activate_subscription( - self, input: ActivateSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.ActivateSubscriptionInput + | _models.ActivateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ActivateSubscriptionOutput: ... + + @_overload + def activate_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ActivateSubscriptionInputDict], ) -> ActivateSubscriptionOutput: """ Activates a Subscription to enable billing for a user. Args: - input: - An instance of `ActivateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -92,17 +90,38 @@ def activate_subscription( Returns: An instance of `ActivateSubscriptionOutput`. """ - return self._invoke(input, _models.ACTIVATE_SUBSCRIPTION, [], plugins) + def activate_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ActivateSubscriptionOutput: + return self._invoke( + self._select_input(_models.ACTIVATE_SUBSCRIPTION, args, kwargs), + _models.ACTIVATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload def create_domain( - self, input: CreateDomainInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDomainInput | _models.CreateDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDomainOutput: ... + + @_overload + def create_domain( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDomainInputDict], ) -> CreateDomainOutput: """ Creates a new Domain for managing HealthAgent resources. Args: - input: - An instance of `CreateDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -112,18 +131,39 @@ def create_domain( Returns: An instance of `CreateDomainOutput`. """ - return self._invoke(input, _models.CREATE_DOMAIN, [], plugins) + def create_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDomainOutput: + return self._invoke( + self._select_input(_models.CREATE_DOMAIN, args, kwargs), + _models.CREATE_DOMAIN, + [], + plugins, + ) + + @_overload + def create_subscription( + self, + request: _models.CreateSubscriptionInput | _models.CreateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSubscriptionOutput: ... + + @_overload def create_subscription( - self, input: CreateSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSubscriptionInputDict], ) -> CreateSubscriptionOutput: """ Creates a new Subscription within a Domain for billing and user management. Args: - input: - An instance of `CreateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -133,17 +173,39 @@ def create_subscription( Returns: An instance of `CreateSubscriptionOutput`. """ - return self._invoke(input, _models.CREATE_SUBSCRIPTION, [], plugins) + def create_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSubscriptionOutput: + return self._invoke( + self._select_input(_models.CREATE_SUBSCRIPTION, args, kwargs), + _models.CREATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def deactivate_subscription( + self, + request: _models.DeactivateSubscriptionInput + | _models.DeactivateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeactivateSubscriptionOutput: ... + + @_overload def deactivate_subscription( - self, input: DeactivateSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeactivateSubscriptionInputDict], ) -> DeactivateSubscriptionOutput: """ Deactivates a Subscription to stop billing for a user. Args: - input: - An instance of `DeactivateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -153,17 +215,38 @@ def deactivate_subscription( Returns: An instance of `DeactivateSubscriptionOutput`. """ - return self._invoke(input, _models.DEACTIVATE_SUBSCRIPTION, [], plugins) + def deactivate_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeactivateSubscriptionOutput: + return self._invoke( + self._select_input(_models.DEACTIVATE_SUBSCRIPTION, args, kwargs), + _models.DEACTIVATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def delete_domain( + self, + request: _models.DeleteDomainInput | _models.DeleteDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDomainOutput: ... + + @_overload def delete_domain( - self, input: DeleteDomainInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDomainInputDict], ) -> DeleteDomainOutput: """ Deletes a Domain and all associated resources. Args: - input: - An instance of `DeleteDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -173,17 +256,38 @@ def delete_domain( Returns: An instance of `DeleteDomainOutput`. """ - return self._invoke(input, _models.DELETE_DOMAIN, [], plugins) + def delete_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDomainOutput: + return self._invoke( + self._select_input(_models.DELETE_DOMAIN, args, kwargs), + _models.DELETE_DOMAIN, + [], + plugins, + ) + + @_overload + def get_domain( + self, + request: _models.GetDomainInput | _models.GetDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDomainOutput: ... + + @_overload def get_domain( - self, input: GetDomainInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDomainInputDict], ) -> GetDomainOutput: """ Retrieves information about a Domain. Args: - input: - An instance of `GetDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -193,19 +297,39 @@ def get_domain( Returns: An instance of `GetDomainOutput`. """ - return self._invoke(input, _models.GET_DOMAIN, [], plugins) + def get_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDomainOutput: + return self._invoke( + self._select_input(_models.GET_DOMAIN, args, kwargs), + _models.GET_DOMAIN, + [], + plugins, + ) + + @_overload def get_medical_scribe_listening_session( self, - input: GetMedicalScribeListeningSessionInput, + request: _models.GetMedicalScribeListeningSessionInput + | _models.GetMedicalScribeListeningSessionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetMedicalScribeListeningSessionOutput: ... + + @_overload + def get_medical_scribe_listening_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMedicalScribeListeningSessionInputDict], ) -> GetMedicalScribeListeningSessionOutput: """ Retrieves details about an existing Medical Scribe listening session Args: - input: - An instance of `GetMedicalScribeListeningSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -215,19 +339,41 @@ def get_medical_scribe_listening_session( Returns: An instance of `GetMedicalScribeListeningSessionOutput`. """ + + def get_medical_scribe_listening_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMedicalScribeListeningSessionOutput: return self._invoke( - input, _models.GET_MEDICAL_SCRIBE_LISTENING_SESSION, [], plugins + self._select_input( + _models.GET_MEDICAL_SCRIBE_LISTENING_SESSION, args, kwargs + ), + _models.GET_MEDICAL_SCRIBE_LISTENING_SESSION, + [], + plugins, ) + @_overload + def get_patient_insights_job( + self, + request: _models.GetPatientInsightsJobInput + | _models.GetPatientInsightsJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPatientInsightsJobOutput: ... + + @_overload def get_patient_insights_job( - self, input: GetPatientInsightsJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPatientInsightsJobInputDict], ) -> GetPatientInsightsJobOutput: """ Get details of a started patient insights job. Args: - input: - An instance of `GetPatientInsightsJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -237,17 +383,38 @@ def get_patient_insights_job( Returns: An instance of `GetPatientInsightsJobOutput`. """ - return self._invoke(input, _models.GET_PATIENT_INSIGHTS_JOB, [], plugins) + def get_patient_insights_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPatientInsightsJobOutput: + return self._invoke( + self._select_input(_models.GET_PATIENT_INSIGHTS_JOB, args, kwargs), + _models.GET_PATIENT_INSIGHTS_JOB, + [], + plugins, + ) + + @_overload + def get_subscription( + self, + request: _models.GetSubscriptionInput | _models.GetSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSubscriptionOutput: ... + + @_overload def get_subscription( - self, input: GetSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSubscriptionInputDict], ) -> GetSubscriptionOutput: """ Retrieves information about a Subscription. Args: - input: - An instance of `GetSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -257,17 +424,38 @@ def get_subscription( Returns: An instance of `GetSubscriptionOutput`. """ - return self._invoke(input, _models.GET_SUBSCRIPTION, [], plugins) + def get_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSubscriptionOutput: + return self._invoke( + self._select_input(_models.GET_SUBSCRIPTION, args, kwargs), + _models.GET_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def list_domains( + self, + request: _models.ListDomainsInput | _models.ListDomainsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDomainsOutput: ... + + @_overload def list_domains( - self, input: ListDomainsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDomainsInputDict], ) -> ListDomainsOutput: """ Lists Domains for a given account. Args: - input: - An instance of `ListDomainsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -277,17 +465,38 @@ def list_domains( Returns: An instance of `ListDomainsOutput`. """ - return self._invoke(input, _models.LIST_DOMAINS, [], plugins) + def list_domains( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDomainsOutput: + return self._invoke( + self._select_input(_models.LIST_DOMAINS, args, kwargs), + _models.LIST_DOMAINS, + [], + plugins, + ) + + @_overload def list_subscriptions( - self, input: ListSubscriptionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListSubscriptionsInput | _models.ListSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSubscriptionsOutput: ... + + @_overload + def list_subscriptions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSubscriptionsInputDict], ) -> ListSubscriptionsOutput: """ Lists all Subscriptions within a Domain. Args: - input: - An instance of `ListSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -297,17 +506,39 @@ def list_subscriptions( Returns: An instance of `ListSubscriptionsOutput`. """ - return self._invoke(input, _models.LIST_SUBSCRIPTIONS, [], plugins) + def list_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSubscriptionsOutput: + return self._invoke( + self._select_input(_models.LIST_SUBSCRIPTIONS, args, kwargs), + _models.LIST_SUBSCRIPTIONS, + [], + plugins, + ) + + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags associated with the specified resource Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -317,17 +548,39 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def start_patient_insights_job( + self, + request: _models.StartPatientInsightsJobInput + | _models.StartPatientInsightsJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartPatientInsightsJobOutput: ... + + @_overload def start_patient_insights_job( - self, input: StartPatientInsightsJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartPatientInsightsJobInputDict], ) -> StartPatientInsightsJobOutput: """ Starts a new patient insights job. Args: - input: - An instance of `StartPatientInsightsJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -337,17 +590,38 @@ def start_patient_insights_job( Returns: An instance of `StartPatientInsightsJobOutput`. """ - return self._invoke(input, _models.START_PATIENT_INSIGHTS_JOB, [], plugins) + def start_patient_insights_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartPatientInsightsJobOutput: + return self._invoke( + self._select_input(_models.START_PATIENT_INSIGHTS_JOB, args, kwargs), + _models.START_PATIENT_INSIGHTS_JOB, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associates the specified tags with the specified resource Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -357,17 +631,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes the specified tags from the specified resource Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -377,7 +672,16 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) def _new_config(self) -> ConnectHealthConfig: return ConnectHealthConfig.resolve() diff --git a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/config.py b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/config.py index 8662f9437..a9fb967a8 100644 --- a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/config.py +++ b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/config.py @@ -172,6 +172,12 @@ class ConnectHealthConfig(AwsConfig): dispatching the request will return an error. """ + disable_host_prefix_injection: bool | None = None + """ + Whether to skip prepending operations' modeled host prefixes to the + endpoint host. + """ + aws_credentials_identity_resolver: ( IdentityResolver[AWSCredentialsIdentity, AWSIdentityProperties] | None ) = None @@ -201,16 +207,11 @@ class ConnectHealthConfig(AwsConfig): header. """ - disable_host_prefix_injection: bool | None = None - """ - Whether to skip prepending operations' modeled host prefixes to the - endpoint host. - """ - _FIELDS: ClassVar[dict[str, FieldSpec]] = { "use_fips_endpoint": FieldSpec( default=None, resolver=resolve_use_fips_endpoint_program ), + "disable_host_prefix_injection": FieldSpec(default=None), "aws_credentials_identity_resolver": FieldSpec(default=None), "region": FieldSpec(default=None), "aws_access_key_id": FieldSpec(default=None), @@ -218,7 +219,6 @@ class ConnectHealthConfig(AwsConfig): "aws_session_token": FieldSpec(default=None), "user_agent_extra": FieldSpec(default=None), "sdk_ua_app_id": FieldSpec(default=None), - "disable_host_prefix_injection": FieldSpec(default=None), **AwsConfig._FIELDS, "endpoint_uri": FieldSpec( default=None, resolver=EndpointUriResolver("connecthealth").program diff --git a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/models.pyi b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/models.pyi index 8fee104bd..0503a5bef 100644 --- a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/models.pyi +++ b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -50,6 +51,14 @@ class ActivateSubscriptionInput(_SerdeShape): subscription_id: str | None = ... """The unique identifier of the Subscription.""" +class ActivateSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `ActivateSubscriptionInput`.""" + + domain_id: Required[str] + """The unique identifier of the parent Domain.""" + subscription_id: Required[str] + """The unique identifier of the Subscription.""" + @dataclass(kw_only=True) class ActivateSubscriptionOutput(_SerdeShape): """Dataclass for ActivateSubscriptionOutput structure.""" @@ -134,6 +143,23 @@ class CreateDomainInput(_SerdeShape): tags: dict[str, str] | None = ... """Tags to associate with the Domain.""" +class CreateDomainInputDict(TypedDict, total=False): + """Dictionary form of `CreateDomainInput`.""" + + name: Required[str] + """The name for the new Domain.""" + kms_key_arn: str | None + """The ARN of the KMS key to use for encrypting data in this Domain.""" + web_app_setup_configuration: ( + CreateWebAppConfiguration | CreateWebAppConfigurationDict | None + ) + """ + Configuration for the Domain web application. Optional, but if provided + all fields are required. + """ + tags: Mapping[str, str] | None + """Tags to associate with the Domain.""" + @dataclass(kw_only=True) class CreateDomainOutput(_SerdeShape): """Dataclass for CreateDomainOutput structure.""" @@ -171,6 +197,12 @@ class CreateSubscriptionInput(_SerdeShape): domain_id: str | None = ... """The unique identifier of the parent Domain.""" +class CreateSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `CreateSubscriptionInput`.""" + + domain_id: Required[str] + """The unique identifier of the parent Domain.""" + @dataclass(kw_only=True) class CreateSubscriptionOutput(_SerdeShape): """Dataclass for CreateSubscriptionOutput structure.""" @@ -213,6 +245,16 @@ class CreateWebAppConfiguration(_SerdeShape): idc_region: str """The AWS region where Identity Center is configured.""" +class CreateWebAppConfigurationDict(TypedDict, total=False): + """Dictionary form of `CreateWebAppConfiguration`.""" + + ehr_role: Required[str] + """ARN of the IAM role used for EHR operations.""" + idc_instance_id: Required[str] + """The Identity Center instance ID to use for creating the application.""" + idc_region: Required[str] + """The AWS region where Identity Center is configured.""" + @dataclass(kw_only=True) class CustomTemplate(_SerdeShape): """ @@ -249,6 +291,14 @@ class DeactivateSubscriptionInput(_SerdeShape): subscription_id: str | None = ... """The unique identifier of the Subscription.""" +class DeactivateSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `DeactivateSubscriptionInput`.""" + + domain_id: Required[str] + """The unique identifier of the parent Domain.""" + subscription_id: Required[str] + """The unique identifier of the Subscription.""" + @dataclass(kw_only=True) class DeactivateSubscriptionOutput(_SerdeShape): """Dataclass for DeactivateSubscriptionOutput structure.""" @@ -270,6 +320,12 @@ class DeleteDomainInput(_SerdeShape): domain_id: str | None = ... """The id of the Domain to delete""" +class DeleteDomainInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDomainInput`.""" + + domain_id: Required[str] + """The id of the Domain to delete""" + @dataclass(kw_only=True) class DeleteDomainOutput(_SerdeShape): """Dataclass for DeleteDomainOutput structure.""" @@ -340,6 +396,14 @@ class FHIRServer(_SerdeShape): oauth_token: str | None = ... """OAuth token for authenticating with the FHIR server.""" +class FHIRServerDict(TypedDict, total=False): + """Dictionary form of `FHIRServer`.""" + + fhir_endpoint: Required[str] + """FHIR server endpoint URL for accessing patient data.""" + oauth_token: str | None + """OAuth token for authenticating with the FHIR server.""" + @dataclass(kw_only=True) class GetDomainInput(_SerdeShape): """Dataclass for GetDomainInput structure.""" @@ -347,6 +411,12 @@ class GetDomainInput(_SerdeShape): domain_id: str | None = ... """The id of the Domain to get""" +class GetDomainInputDict(TypedDict, total=False): + """Dictionary form of `GetDomainInput`.""" + + domain_id: Required[str] + """The id of the Domain to get""" + @dataclass(kw_only=True) class GetDomainOutput(_SerdeShape): """Dataclass for GetDomainOutput structure.""" @@ -390,6 +460,16 @@ class GetMedicalScribeListeningSessionInput(_SerdeShape): subscription_id: str | None = ... """The Subscription identifier""" +class GetMedicalScribeListeningSessionInputDict(TypedDict, total=False): + """Dictionary form of `GetMedicalScribeListeningSessionInput`.""" + + session_id: Required[str] + """The Session identifier""" + domain_id: Required[str] + """The Domain identifier""" + subscription_id: Required[str] + """The Subscription identifier""" + @dataclass(kw_only=True) class GetMedicalScribeListeningSessionOutput(_SerdeShape): """Dataclass for GetMedicalScribeListeningSessionOutput structure.""" @@ -415,6 +495,14 @@ class GetPatientInsightsJobInput(_SerdeShape): job_id: str | None = ... """""" +class GetPatientInsightsJobInputDict(TypedDict, total=False): + """Dictionary form of `GetPatientInsightsJobInput`.""" + + domain_id: Required[str] + """""" + job_id: Required[str] + """""" + @dataclass(kw_only=True) class GetPatientInsightsJobOutput(_SerdeShape): """Dataclass for GetPatientInsightsJobOutput structure.""" @@ -462,6 +550,14 @@ class GetSubscriptionInput(_SerdeShape): subscription_id: str | None = ... """The unique identifier of the Subscription.""" +class GetSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `GetSubscriptionInput`.""" + + domain_id: Required[str] + """The unique identifier of the parent Domain.""" + subscription_id: Required[str] + """The unique identifier of the Subscription.""" + @dataclass(kw_only=True) class GetSubscriptionOutput(_SerdeShape): """Dataclass for GetSubscriptionOutput structure.""" @@ -485,6 +581,14 @@ class InputDataConfig(_SerdeShape): s3_sources: list[S3Source] | None = ... """List of S3 sources containing patient data.""" +class InputDataConfigDict(TypedDict, total=False): + """Dictionary form of `InputDataConfig`.""" + + fhir_server: FHIRServer | FHIRServerDict | None + """FHIR server configuration to retrieve patient data.""" + s3_sources: Sequence[S3Source | S3SourceDict] | None + """List of S3 sources containing patient data.""" + @dataclass(kw_only=True) class InsightsContext(_SerdeShape): """Details for insights that user wants to generate""" @@ -492,6 +596,12 @@ class InsightsContext(_SerdeShape): insights_type: str """""" +class InsightsContextDict(TypedDict, total=False): + """Dictionary form of `InsightsContext`.""" + + insights_type: Required[str] + """""" + @dataclass(kw_only=True) class InsightsOutput(_SerdeShape): """Output of patient insights job""" @@ -531,6 +641,16 @@ class ListDomainsInput(_SerdeShape): next_token: str | None = ... """Token for pagination.""" +class ListDomainsInputDict(TypedDict, total=False): + """Dictionary form of `ListDomainsInput`.""" + + status: str | None + """Filter by Domain status.""" + max_results: int | None + """Maximum number of results to return.""" + next_token: str | None + """Token for pagination.""" + @dataclass(kw_only=True) class ListDomainsOutput(_SerdeShape): """Dataclass for ListDomainsOutput structure.""" @@ -558,6 +678,16 @@ class ListSubscriptionsInput(_SerdeShape): next_token: str | None = ... """Token for pagination.""" +class ListSubscriptionsInputDict(TypedDict, total=False): + """Dictionary form of `ListSubscriptionsInput`.""" + + domain_id: Required[str] + """The unique identifier of the parent Domain.""" + max_results: int | None + """Maximum number of results to return.""" + next_token: str | None + """Token for pagination.""" + @dataclass(kw_only=True) class ListSubscriptionsOutput(_SerdeShape): """Dataclass for ListSubscriptionsOutput structure.""" @@ -581,6 +711,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """The ARN of the resource to list tags for""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the resource to list tags for""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -938,6 +1074,12 @@ class OutputDataConfig(_SerdeShape): s3_output_path: str """S3 URI where the insights output will be stored.""" +class OutputDataConfigDict(TypedDict, total=False): + """Dictionary form of `OutputDataConfig`.""" + + s3_output_path: Required[str] + """S3 URI where the insights output will be stored.""" + @dataclass(kw_only=True) class PatientInsightsEncounterContext(_SerdeShape): """Details for an encounter""" @@ -945,6 +1087,12 @@ class PatientInsightsEncounterContext(_SerdeShape): encounter_reason: str """Chief complaint for the visit""" +class PatientInsightsEncounterContextDict(TypedDict, total=False): + """Dictionary form of `PatientInsightsEncounterContext`.""" + + encounter_reason: Required[str] + """Chief complaint for the visit""" + @dataclass(kw_only=True) class PatientInsightsPatientContext(_SerdeShape): """Details for a patient""" @@ -956,6 +1104,16 @@ class PatientInsightsPatientContext(_SerdeShape): pronouns: str | None = ... """Pronouns preferred by the patient.""" +class PatientInsightsPatientContextDict(TypedDict, total=False): + """Dictionary form of `PatientInsightsPatientContext`.""" + + patient_id: Required[str] + """Unique identifier of the patient""" + date_of_birth: str | None + """Date of birth of the patient.""" + pronouns: str | None + """Pronouns preferred by the patient.""" + class PostStreamArtifactGenerationStatus(UnknownEnumMixin, StrEnum): IN_PROGRESS = "IN_PROGRESS" FAILED = "FAILED" @@ -988,6 +1146,12 @@ class S3Source(_SerdeShape): uri: str """The S3 URI.""" +class S3SourceDict(TypedDict, total=False): + """Dictionary form of `S3Source`.""" + + uri: Required[str] + """The S3 URI.""" + @dataclass(kw_only=True) class ServiceQuotaExceededException(ServiceError, _SerdeShape): """The request exceeds a service quota.""" @@ -1020,6 +1184,22 @@ class StartMedicalScribeListeningSessionInput(_SerdeShape): media_encoding: str | None = ... """The encoding for the input audio""" +class StartMedicalScribeListeningSessionInputDict(TypedDict, total=False): + """Dictionary form of `StartMedicalScribeListeningSessionInput`.""" + + session_id: Required[str] + """The Session identifier""" + domain_id: Required[str] + """The Domain identifier""" + subscription_id: Required[str] + """The Subscription identifier""" + language_code: Required[str] + """The Language Code for the audio in the session""" + media_sample_rate_hertz: Required[int] + """The sample rate of the input audio""" + media_encoding: Required[str] + """The encoding for the input audio""" + @dataclass(kw_only=True) class StartMedicalScribeListeningSessionOutput(_SerdeShape): """Dataclass for StartMedicalScribeListeningSessionOutput structure.""" @@ -1072,6 +1252,35 @@ class StartPatientInsightsJobInput(_SerdeShape): This field is autopopulated if not provided. """ +class StartPatientInsightsJobInputDict(TypedDict, total=False): + """Dictionary form of `StartPatientInsightsJobInput`.""" + + domain_id: Required[str] + """""" + patient_context: Required[ + PatientInsightsPatientContext | PatientInsightsPatientContextDict + ] + """""" + insights_context: Required[InsightsContext | InsightsContextDict] + """""" + encounter_context: Required[ + PatientInsightsEncounterContext | PatientInsightsEncounterContextDict + ] + """""" + user_context: Required[UserContext | UserContextDict] + """""" + input_data_config: Required[InputDataConfig | InputDataConfigDict] + """""" + output_data_config: Required[OutputDataConfig | OutputDataConfigDict] + """""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StartPatientInsightsJobOutput(_SerdeShape): """Dataclass for StartPatientInsightsJobOutput structure.""" @@ -1125,6 +1334,14 @@ class TagResourceInput(_SerdeShape): tags: dict[str, str] | None = ... """The tags to add to the resource""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the resource to tag""" + tags: Required[Mapping[str, str]] + """The tags to add to the resource""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -1167,6 +1384,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The tag keys to remove from the resource""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the resource to untag""" + tag_keys: Required[Sequence[str]] + """The tag keys to remove from the resource""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -1190,6 +1415,16 @@ class UserContext(_SerdeShape): specialty: str | None = ... """""" +class UserContextDict(TypedDict, total=False): + """Dictionary form of `UserContext`.""" + + role: Required[str] + """""" + user_id: Required[str] + """Unique identifier of the user""" + specialty: str | None + """""" + @dataclass(kw_only=True) class ValidationException(ServiceError, _SerdeShape): """This error is thrown when the client supplies invalid input to the API.""" diff --git a/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/py.typed b/clients/aws-sdk-connecthealth/src/aws_sdk_connecthealth/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-connecthealth/tests/_typecheck.py b/clients/aws-sdk-connecthealth/tests/_typecheck.py index b25617151..82ee2a097 100644 --- a/clients/aws-sdk-connecthealth/tests/_typecheck.py +++ b/clients/aws-sdk-connecthealth/tests/_typecheck.py @@ -2,44 +2,62 @@ from typing import Any +from aws_sdk_connecthealth.aio.client import AsyncConnectHealthClient +from aws_sdk_connecthealth.client import ConnectHealthClient from aws_sdk_connecthealth.models import ( ActivateSubscriptionInput, + ActivateSubscriptionInputDict, ActivateSubscriptionOutput, ArtifactDetails, ClinicalNoteGenerationResult, ClinicalNoteGenerationSettings, ClinicalNoteGenerationSettingsResponse, CreateDomainInput, + CreateDomainInputDict, CreateDomainOutput, CreateSubscriptionInput, + CreateSubscriptionInputDict, CreateSubscriptionOutput, CreateWebAppConfiguration, + CreateWebAppConfigurationDict, CustomTemplate, CustomTemplateResponse, DeactivateSubscriptionInput, + DeactivateSubscriptionInputDict, DeactivateSubscriptionOutput, DeleteDomainInput, + DeleteDomainInputDict, DeleteDomainOutput, DomainSummary, EncounterContext, EncryptionContext, FHIRServer, + FHIRServerDict, GetDomainInput, + GetDomainInputDict, GetDomainOutput, GetMedicalScribeListeningSessionInput, + GetMedicalScribeListeningSessionInputDict, GetMedicalScribeListeningSessionOutput, GetPatientInsightsJobInput, + GetPatientInsightsJobInputDict, GetPatientInsightsJobOutput, GetSubscriptionInput, + GetSubscriptionInputDict, GetSubscriptionOutput, InputDataConfig, + InputDataConfigDict, InsightsContext, + InsightsContextDict, InsightsOutput, ListDomainsInput, + ListDomainsInputDict, ListDomainsOutput, ListSubscriptionsInput, + ListSubscriptionsInputDict, ListSubscriptionsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ManagedTemplate, ManagedTemplateResponse, @@ -55,26 +73,36 @@ MedicalScribeTranscriptEvent, MedicalScribeTranscriptSegment, OutputDataConfig, + OutputDataConfigDict, PatientInsightsEncounterContext, + PatientInsightsEncounterContextDict, PatientInsightsPatientContext, + PatientInsightsPatientContextDict, S3Source, + S3SourceDict, StartMedicalScribeListeningSessionInput, + StartMedicalScribeListeningSessionInputDict, StartMedicalScribeListeningSessionOutput, StartPatientInsightsJobInput, + StartPatientInsightsJobInputDict, StartPatientInsightsJobOutput, SubscriptionDescription, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TemplateSectionInstruction, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UserContext, + UserContextDict, WebAppConfiguration, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -163,3 +191,234 @@ UntagResourceOutput() UserContext(role=_, user_id=_) WebAppConfiguration(ehr_role=_, idc_application_id=_, idc_region=_) +_params_0: ActivateSubscriptionInputDict = {"domain_id": _, "subscription_id": _} +_params_1: CreateDomainInputDict = {"name": _} +_params_2: CreateSubscriptionInputDict = {"domain_id": _} +_params_3: CreateWebAppConfigurationDict = { + "ehr_role": _, + "idc_instance_id": _, + "idc_region": _, +} +_params_4: DeactivateSubscriptionInputDict = {"domain_id": _, "subscription_id": _} +_params_5: DeleteDomainInputDict = {"domain_id": _} +_params_6: FHIRServerDict = {"fhir_endpoint": _} +_params_7: GetDomainInputDict = {"domain_id": _} +_params_8: GetMedicalScribeListeningSessionInputDict = { + "session_id": _, + "domain_id": _, + "subscription_id": _, +} +_params_9: GetPatientInsightsJobInputDict = {"domain_id": _, "job_id": _} +_params_10: GetSubscriptionInputDict = {"domain_id": _, "subscription_id": _} +_params_11: InputDataConfigDict = {} +_params_12: InsightsContextDict = {"insights_type": _} +_params_13: ListDomainsInputDict = {} +_params_14: ListSubscriptionsInputDict = {"domain_id": _} +_params_15: ListTagsForResourceInputDict = {"resource_arn": _} +_params_16: OutputDataConfigDict = {"s3_output_path": _} +_params_17: PatientInsightsEncounterContextDict = {"encounter_reason": _} +_params_18: PatientInsightsPatientContextDict = {"patient_id": _} +_params_19: S3SourceDict = {"uri": _} +_params_20: StartMedicalScribeListeningSessionInputDict = { + "session_id": _, + "domain_id": _, + "subscription_id": _, + "language_code": _, + "media_sample_rate_hertz": _, + "media_encoding": _, +} +_params_21: StartPatientInsightsJobInputDict = { + "domain_id": _, + "patient_context": _, + "insights_context": _, + "encounter_context": _, + "user_context": _, + "input_data_config": _, + "output_data_config": _, +} +_params_22: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_23: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_24: UserContextDict = {"role": _, "user_id": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncConnectHealthClient) -> None: + pass + await client.activate_subscription(domain_id=_, subscription_id=_) + await client.activate_subscription(**_request(ActivateSubscriptionInputDict)) + await client.activate_subscription(_request(ActivateSubscriptionInput)) + await client.activate_subscription(_request(ActivateSubscriptionInputDict)) + await client.create_domain(name=_) + await client.create_domain(**_request(CreateDomainInputDict)) + await client.create_domain(_request(CreateDomainInput)) + await client.create_domain(_request(CreateDomainInputDict)) + await client.create_subscription(domain_id=_) + await client.create_subscription(**_request(CreateSubscriptionInputDict)) + await client.create_subscription(_request(CreateSubscriptionInput)) + await client.create_subscription(_request(CreateSubscriptionInputDict)) + await client.deactivate_subscription(domain_id=_, subscription_id=_) + await client.deactivate_subscription(**_request(DeactivateSubscriptionInputDict)) + await client.deactivate_subscription(_request(DeactivateSubscriptionInput)) + await client.deactivate_subscription(_request(DeactivateSubscriptionInputDict)) + await client.delete_domain(domain_id=_) + await client.delete_domain(**_request(DeleteDomainInputDict)) + await client.delete_domain(_request(DeleteDomainInput)) + await client.delete_domain(_request(DeleteDomainInputDict)) + await client.get_domain(domain_id=_) + await client.get_domain(**_request(GetDomainInputDict)) + await client.get_domain(_request(GetDomainInput)) + await client.get_domain(_request(GetDomainInputDict)) + await client.get_medical_scribe_listening_session( + session_id=_, domain_id=_, subscription_id=_ + ) + await client.get_medical_scribe_listening_session( + **_request(GetMedicalScribeListeningSessionInputDict) + ) + await client.get_medical_scribe_listening_session( + _request(GetMedicalScribeListeningSessionInput) + ) + await client.get_medical_scribe_listening_session( + _request(GetMedicalScribeListeningSessionInputDict) + ) + await client.get_patient_insights_job(domain_id=_, job_id=_) + await client.get_patient_insights_job(**_request(GetPatientInsightsJobInputDict)) + await client.get_patient_insights_job(_request(GetPatientInsightsJobInput)) + await client.get_patient_insights_job(_request(GetPatientInsightsJobInputDict)) + await client.get_subscription(domain_id=_, subscription_id=_) + await client.get_subscription(**_request(GetSubscriptionInputDict)) + await client.get_subscription(_request(GetSubscriptionInput)) + await client.get_subscription(_request(GetSubscriptionInputDict)) + await client.list_domains() + await client.list_domains(**_request(ListDomainsInputDict)) + await client.list_domains(_request(ListDomainsInput)) + await client.list_domains(_request(ListDomainsInputDict)) + await client.list_subscriptions(domain_id=_) + await client.list_subscriptions(**_request(ListSubscriptionsInputDict)) + await client.list_subscriptions(_request(ListSubscriptionsInput)) + await client.list_subscriptions(_request(ListSubscriptionsInputDict)) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.start_medical_scribe_listening_session( + session_id=_, + domain_id=_, + subscription_id=_, + language_code=_, + media_sample_rate_hertz=_, + media_encoding=_, + ) + await client.start_medical_scribe_listening_session( + **_request(StartMedicalScribeListeningSessionInputDict) + ) + await client.start_medical_scribe_listening_session( + _request(StartMedicalScribeListeningSessionInput) + ) + await client.start_medical_scribe_listening_session( + _request(StartMedicalScribeListeningSessionInputDict) + ) + await client.start_patient_insights_job( + domain_id=_, + patient_context=_, + insights_context=_, + encounter_context=_, + user_context=_, + input_data_config=_, + output_data_config=_, + ) + await client.start_patient_insights_job( + **_request(StartPatientInsightsJobInputDict) + ) + await client.start_patient_insights_job(_request(StartPatientInsightsJobInput)) + await client.start_patient_insights_job(_request(StartPatientInsightsJobInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + + +def check_sync_calls(client: ConnectHealthClient) -> None: + pass + client.activate_subscription(domain_id=_, subscription_id=_) + client.activate_subscription(**_request(ActivateSubscriptionInputDict)) + client.activate_subscription(_request(ActivateSubscriptionInput)) + client.activate_subscription(_request(ActivateSubscriptionInputDict)) + client.create_domain(name=_) + client.create_domain(**_request(CreateDomainInputDict)) + client.create_domain(_request(CreateDomainInput)) + client.create_domain(_request(CreateDomainInputDict)) + client.create_subscription(domain_id=_) + client.create_subscription(**_request(CreateSubscriptionInputDict)) + client.create_subscription(_request(CreateSubscriptionInput)) + client.create_subscription(_request(CreateSubscriptionInputDict)) + client.deactivate_subscription(domain_id=_, subscription_id=_) + client.deactivate_subscription(**_request(DeactivateSubscriptionInputDict)) + client.deactivate_subscription(_request(DeactivateSubscriptionInput)) + client.deactivate_subscription(_request(DeactivateSubscriptionInputDict)) + client.delete_domain(domain_id=_) + client.delete_domain(**_request(DeleteDomainInputDict)) + client.delete_domain(_request(DeleteDomainInput)) + client.delete_domain(_request(DeleteDomainInputDict)) + client.get_domain(domain_id=_) + client.get_domain(**_request(GetDomainInputDict)) + client.get_domain(_request(GetDomainInput)) + client.get_domain(_request(GetDomainInputDict)) + client.get_medical_scribe_listening_session( + session_id=_, domain_id=_, subscription_id=_ + ) + client.get_medical_scribe_listening_session( + **_request(GetMedicalScribeListeningSessionInputDict) + ) + client.get_medical_scribe_listening_session( + _request(GetMedicalScribeListeningSessionInput) + ) + client.get_medical_scribe_listening_session( + _request(GetMedicalScribeListeningSessionInputDict) + ) + client.get_patient_insights_job(domain_id=_, job_id=_) + client.get_patient_insights_job(**_request(GetPatientInsightsJobInputDict)) + client.get_patient_insights_job(_request(GetPatientInsightsJobInput)) + client.get_patient_insights_job(_request(GetPatientInsightsJobInputDict)) + client.get_subscription(domain_id=_, subscription_id=_) + client.get_subscription(**_request(GetSubscriptionInputDict)) + client.get_subscription(_request(GetSubscriptionInput)) + client.get_subscription(_request(GetSubscriptionInputDict)) + client.list_domains() + client.list_domains(**_request(ListDomainsInputDict)) + client.list_domains(_request(ListDomainsInput)) + client.list_domains(_request(ListDomainsInputDict)) + client.list_subscriptions(domain_id=_) + client.list_subscriptions(**_request(ListSubscriptionsInputDict)) + client.list_subscriptions(_request(ListSubscriptionsInput)) + client.list_subscriptions(_request(ListSubscriptionsInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.start_patient_insights_job( + domain_id=_, + patient_context=_, + insights_context=_, + encounter_context=_, + user_context=_, + input_data_config=_, + output_data_config=_, + ) + client.start_patient_insights_job(**_request(StartPatientInsightsJobInputDict)) + client.start_patient_insights_job(_request(StartPatientInsightsJobInput)) + client.start_patient_insights_job(_request(StartPatientInsightsJobInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) diff --git a/clients/aws-sdk-connecthealth/tests/integration/conftest.py b/clients/aws-sdk-connecthealth/tests/integration/conftest.py index 6d42b37c4..6f7c0ef8c 100644 --- a/clients/aws-sdk-connecthealth/tests/integration/conftest.py +++ b/clients/aws-sdk-connecthealth/tests/integration/conftest.py @@ -22,14 +22,7 @@ from types_boto3_s3 import S3Client from aws_sdk_connecthealth.aio.client import AsyncConnectHealthClient -from aws_sdk_connecthealth.models import ( - CreateDomainInput, - CreateSubscriptionInput, - DeactivateSubscriptionInput, - DeleteDomainInput, - GetSubscriptionInput, - SubscriptionStatus, -) +from aws_sdk_connecthealth.models import SubscriptionStatus from . import REGION, ConnectHealthResources, create_connecthealth_client @@ -56,9 +49,7 @@ async def _wait_for_subscription_inactive( deadline = asyncio.get_running_loop().time() + _SUBSCRIPTION_POLL_TIMEOUT_SECONDS while asyncio.get_running_loop().time() < deadline: response = await client.get_subscription( - input=GetSubscriptionInput( - domain_id=domain_id, subscription_id=subscription_id - ) + domain_id=domain_id, subscription_id=subscription_id ) if ( response.subscription is not None @@ -81,14 +72,10 @@ async def _create_connecthealth_resources( Returns: Tuple of (domain_id, subscription_id). """ - domain_response = await client.create_domain( - input=CreateDomainInput(name=domain_name, tags=_TAGS) - ) + domain_response = await client.create_domain(name=domain_name, tags=_TAGS) domain_id = domain_response.domain_id - subscription_response = await client.create_subscription( - input=CreateSubscriptionInput(domain_id=domain_id) - ) + subscription_response = await client.create_subscription(domain_id=domain_id) return domain_id, subscription_response.subscription_id @@ -105,13 +92,11 @@ async def _delete_connecthealth_resources( """ if domain_id and subscription_id: await client.deactivate_subscription( - input=DeactivateSubscriptionInput( - domain_id=domain_id, subscription_id=subscription_id - ) + domain_id=domain_id, subscription_id=subscription_id ) await _wait_for_subscription_inactive(client, domain_id, subscription_id) if domain_id: - await client.delete_domain(input=DeleteDomainInput(domain_id=domain_id)) + await client.delete_domain(domain_id=domain_id) def _create_s3_bucket(s3_client: Any, bucket_name: str) -> None: diff --git a/clients/aws-sdk-connecthealth/tests/integration/test_bidirectional_streaming.py b/clients/aws-sdk-connecthealth/tests/integration/test_bidirectional_streaming.py index 5b353d8c0..f6c287a66 100644 --- a/clients/aws-sdk-connecthealth/tests/integration/test_bidirectional_streaming.py +++ b/clients/aws-sdk-connecthealth/tests/integration/test_bidirectional_streaming.py @@ -11,7 +11,6 @@ ClinicalNoteGenerationSettings, ClinicalNoteGenerationSettingsResponse, EncounterContext, - GetMedicalScribeListeningSessionInput, GetMedicalScribeListeningSessionOutput, ManagedNoteTemplate, ManagedTemplate, @@ -32,7 +31,6 @@ MedicalScribeStreamStatus, NoteTemplateSettingsManagedTemplate, NoteTemplateSettingsResponseManagedTemplate, - StartMedicalScribeListeningSessionInput, StartMedicalScribeListeningSessionOutput, ) from smithy_core.aio.eventstream import AsyncDuplexEventStream @@ -166,14 +164,12 @@ async def test_start_medical_scribe_listening_session( session_id = str(uuid.uuid4()) stream = await client.start_medical_scribe_listening_session( - input=StartMedicalScribeListeningSessionInput( - session_id=session_id, - domain_id=domain_id, - subscription_id=subscription_id, - language_code=MedicalScribeLanguageCode.EN_US, - media_sample_rate_hertz=SAMPLE_RATE, - media_encoding=MedicalScribeMediaEncoding.PCM, - ) + session_id=session_id, + domain_id=domain_id, + subscription_id=subscription_id, + language_code=MedicalScribeLanguageCode.EN_US, + media_sample_rate_hertz=SAMPLE_RATE, + media_encoding=MedicalScribeMediaEncoding.PCM, ) results = await asyncio.gather( @@ -186,11 +182,7 @@ async def test_start_medical_scribe_listening_session( ) response = await client.get_medical_scribe_listening_session( - input=GetMedicalScribeListeningSessionInput( - session_id=session_id, - domain_id=domain_id, - subscription_id=subscription_id, - ) + session_id=session_id, domain_id=domain_id, subscription_id=subscription_id ) assert isinstance(response, GetMedicalScribeListeningSessionOutput) details = response.medical_scribe_listening_session_details diff --git a/clients/aws-sdk-connecthealth/tests/integration/test_non_streaming.py b/clients/aws-sdk-connecthealth/tests/integration/test_non_streaming.py index 9c8d1f3a1..4eb872dd8 100644 --- a/clients/aws-sdk-connecthealth/tests/integration/test_non_streaming.py +++ b/clients/aws-sdk-connecthealth/tests/integration/test_non_streaming.py @@ -6,13 +6,9 @@ from aws_sdk_connecthealth.models import ( DomainStatus, EncryptionType, - GetDomainInput, GetDomainOutput, - GetSubscriptionInput, GetSubscriptionOutput, - ListDomainsInput, ListDomainsOutput, - ListSubscriptionsInput, ListSubscriptionsOutput, SubscriptionStatus, ) @@ -24,7 +20,7 @@ async def test_list_domains(connecthealth_resources: ConnectHealthResources) -> """Test non-streaming ListDomains operation.""" _ = connecthealth_resources async with await create_connecthealth_client(REGION) as client: - response = await client.list_domains(input=ListDomainsInput()) + response = await client.list_domains() assert isinstance(response, ListDomainsOutput) assert response.domains is not None @@ -35,7 +31,7 @@ async def test_get_domain(connecthealth_resources: ConnectHealthResources) -> No """Test non-streaming GetDomain operation.""" domain_id, _, _ = connecthealth_resources async with await create_connecthealth_client(REGION) as client: - response = await client.get_domain(input=GetDomainInput(domain_id=domain_id)) + response = await client.get_domain(domain_id=domain_id) assert isinstance(response, GetDomainOutput) assert response.domain_id == domain_id @@ -57,9 +53,7 @@ async def test_list_subscriptions( """Test non-streaming ListSubscriptions operation.""" domain_id, subscription_id, _ = connecthealth_resources async with await create_connecthealth_client(REGION) as client: - response = await client.list_subscriptions( - input=ListSubscriptionsInput(domain_id=domain_id) - ) + response = await client.list_subscriptions(domain_id=domain_id) assert isinstance(response, ListSubscriptionsOutput) assert response.subscriptions is not None @@ -77,9 +71,7 @@ async def test_get_subscription( domain_id, subscription_id, _ = connecthealth_resources async with await create_connecthealth_client(REGION) as client: response = await client.get_subscription( - input=GetSubscriptionInput( - domain_id=domain_id, subscription_id=subscription_id - ) + domain_id=domain_id, subscription_id=subscription_id ) assert isinstance(response, GetSubscriptionOutput) diff --git a/clients/aws-sdk-dynamodb/pyproject.toml b/clients/aws-sdk-dynamodb/pyproject.toml index 561033599..eb0312b07 100644 --- a/clients/aws-sdk-dynamodb/pyproject.toml +++ b/clients/aws-sdk-dynamodb/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/models_0.pyi b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/models_0.pyi index 11e595fc4..8439ac0b9 100644 --- a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/models_0.pyi +++ b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.response import ResponseMetadata @@ -11,27 +12,39 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( S3BucketSource, + S3BucketSourceDict, SSESpecification, + SSESpecificationDict, SearchSchemaElement, + SearchSchemaElementDict, ServiceError, SourceTableDetails, SourceTableFeatureDetails, StreamSpecification, + StreamSpecificationDict, TableAutoScalingDescription, TableClassSummary, TableCreationParameters, + TableCreationParametersDict, TableDescription, TableWarmThroughputDescription, Tag, + TagDict, ThrottlingReason, TimeToLiveDescription, UpdateGlobalSecondaryIndexAction, + UpdateGlobalSecondaryIndexActionDict, UpdateReplicationGroupMemberAction, + UpdateReplicationGroupMemberActionDict, VectorAttributeDefinition, + VectorAttributeDefinitionDict, VectorCapacity, VectorIndex, + VectorIndexDict, WarmThroughput, + WarmThroughputDict, WriteRequest, + WriteRequestDict, _SerdeShape, ) @@ -90,6 +103,22 @@ class AttributeDefinition(_SerdeShape): - `B` - the attribute is of type Binary """ +class AttributeDefinitionDict(TypedDict, total=False): + """Dictionary form of `AttributeDefinition`.""" + + attribute_name: Required[str] + """A name for the attribute.""" + attribute_type: Required[str] + """ + The data type for the attribute, where: + + - `S` - the attribute is of type String + + - `N` - the attribute is of type Number + + - `B` - the attribute is of type Binary + """ + @dataclass class AttributeValueS(_SerdeShape): """ @@ -235,6 +264,108 @@ in the *Amazon DynamoDB Developer Guide*. class _AttributeValueDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> AttributeValue: ... +class AttributeValueSDict(TypedDict): + s: str + """ + An attribute of type String. For example: + + `"S": "Hello"` + """ + +class AttributeValueNDict(TypedDict): + n: str + """ + An attribute of type Number. For example: + + `"N": "123.45"` + + Numbers are sent across the network to DynamoDB as strings, to maximize + compatibility across languages and libraries. However, DynamoDB treats + them as number type attributes for mathematical operations. + """ + +class AttributeValueBDict(TypedDict): + b: bytes + """ + An attribute of type Binary. For example: + + `"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"` + """ + +class AttributeValueSSDict(TypedDict): + ss: Sequence[str] + """ + An attribute of type String Set. For example: + + `"SS": ["Giraffe", "Hippo" ,"Zebra"]` + """ + +class AttributeValueNSDict(TypedDict): + ns: Sequence[str] + """ + An attribute of type Number Set. For example: + + `"NS": ["42.2", "-19", "7.5", "3.14"]` + + Numbers are sent across the network to DynamoDB as strings, to maximize + compatibility across languages and libraries. However, DynamoDB treats + them as number type attributes for mathematical operations. + """ + +class AttributeValueBSDict(TypedDict): + bs: Sequence[bytes] + """ + An attribute of type Binary Set. For example: + + `"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]` + """ + +class AttributeValueMDict(TypedDict): + m: Mapping[str, AttributeValue | AttributeValueDict] + """ + An attribute of type Map. For example: + + `"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}` + """ + +class AttributeValueLDict(TypedDict): + l: Sequence[AttributeValue | AttributeValueDict] + """ + An attribute of type List. For example: + + `"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]` + """ + +class AttributeValueNULLDict(TypedDict): + null: bool + """ + An attribute of type Null. For example: + + `"NULL": true` + """ + +class AttributeValueBOOLDict(TypedDict): + bool_: bool + """ + An attribute of type Boolean. For example: + + `"BOOL": true` + """ + +AttributeValueDict = Union[ + AttributeValueSDict + | AttributeValueNDict + | AttributeValueBDict + | AttributeValueSSDict + | AttributeValueNSDict + | AttributeValueBSDict + | AttributeValueMDict + | AttributeValueLDict + | AttributeValueNULLDict + | AttributeValueBOOLDict +] +"""Dictionary form of `AttributeValue`, setting exactly one variant.""" + @dataclass(kw_only=True) class AttributeValueUpdate(_SerdeShape): """ @@ -335,6 +466,92 @@ class AttributeValueUpdate(_SerdeShape): are number, number set, string set or binary set. """ +class AttributeValueUpdateDict(TypedDict, total=False): + """Dictionary form of `AttributeValueUpdate`.""" + + value: AttributeValue | AttributeValueDict | None + """ + Represents the data for an attribute. + + Each attribute value is described as a name-value pair. The name is the + data type, and the value is the data itself. + + For more information, see [Data + Types](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) + in the *Amazon DynamoDB Developer Guide*. + """ + action: str | None + """ + Specifies how to perform the update. Valid values are `PUT` (default), + `DELETE`, and `ADD`. The behavior depends on whether the specified + primary key already exists in the table. + + **If an item with the specified *Key* is found in the table:** + + - `PUT` - Adds the specified attribute to the item. If the attribute + already exists, it is replaced by the new value. + + - `DELETE` - If no value is specified, the attribute and its value are + removed from the item. The data type of the specified value must match + the existing value's data type. + + If a *set* of values is specified, then those values are subtracted + from the old set. For example, if the attribute value was the set + `[a,b,c]` and the `DELETE` action specified `[a,c]`, then the final + attribute value would be `[b]`. Specifying an empty set is an error. + + - `ADD` - If the attribute does not already exist, then the attribute + and its values are added to the item. If the attribute does exist, + then the behavior of `ADD` depends on the data type of the attribute: + + - If the existing attribute is a number, and if `Value` is also a + number, then the `Value` is mathematically added to the existing + attribute. If `Value` is a negative number, then it is subtracted + from the existing attribute. + + Note: + If you use `ADD` to increment or decrement a number value for an + item that doesn't exist before the update, DynamoDB uses 0 as the + initial value. + + In addition, if you use `ADD` to update an existing item, and intend + to increment or decrement an attribute value which does not yet + exist, DynamoDB uses `0` as the initial value. For example, suppose + that the item you want to update does not yet have an attribute + named *itemcount*, but you decide to `ADD` the number `3` to this + attribute anyway, even though it currently does not exist. DynamoDB + will create the *itemcount* attribute, set its initial value to `0`, + and finally add `3` to it. The result will be a new *itemcount* + attribute in the item, with a value of `3`. + + - If the existing data type is a set, and if the `Value` is also a + set, then the `Value` is added to the existing set. (This is a *set* + operation, not mathematical addition.) For example, if the attribute + value was the set `[1,2]`, and the `ADD` action specified `[3]`, + then the final attribute value would be `[1,2,3]`. An error occurs + if an Add action is specified for a set attribute and the attribute + type specified does not match the existing set type. + + Both sets must have the same primitive data type. For example, if + the existing data type is a set of strings, the `Value` must also be + a set of strings. The same holds true for number sets and binary + sets. + + This action is only valid for an existing attribute whose data type is + number or is a set. Do not use `ADD` for any other data types. + + **If no item with the specified *Key* is found:** + + - `PUT` - DynamoDB creates a new item with the specified primary key, + and then adds the attribute. + + - `DELETE` - Nothing happens; there is no attribute to delete. + + - `ADD` - DynamoDB creates a new item with the supplied primary key and + number (or set) for the attribute value. The only data types allowed + are number, number set, string set or binary set. + """ + @dataclass(kw_only=True) class AutoScalingPolicyDescription(_SerdeShape): """Represents the properties of the scaling policy.""" @@ -357,6 +574,17 @@ class AutoScalingPolicyUpdate(_SerdeShape): ) """Represents a target tracking scaling policy configuration.""" +class AutoScalingPolicyUpdateDict(TypedDict, total=False): + """Dictionary form of `AutoScalingPolicyUpdate`.""" + + policy_name: str | None + """The name of the scaling policy.""" + target_tracking_scaling_policy_configuration: Required[ + AutoScalingTargetTrackingScalingPolicyConfigurationUpdate + | AutoScalingTargetTrackingScalingPolicyConfigurationUpdateDict + ] + """Represents a target tracking scaling policy configuration.""" + @dataclass(kw_only=True) class AutoScalingSettingsDescription(_SerdeShape): """ @@ -408,6 +636,29 @@ class AutoScalingSettingsUpdate(_SerdeShape): secondary index capacity units. """ +class AutoScalingSettingsUpdateDict(TypedDict, total=False): + """Dictionary form of `AutoScalingSettingsUpdate`.""" + + minimum_units: int | None + """ + The minimum capacity units that a global table or global secondary index + should be scaled down to. + """ + maximum_units: int | None + """ + The maximum capacity units that a global table or global secondary index + should be scaled up to. + """ + auto_scaling_disabled: bool | None + """Disabled auto scaling for this global table or global secondary index.""" + auto_scaling_role_arn: str | None + """Role ARN used for configuring auto scaling policy.""" + scaling_policy_update: AutoScalingPolicyUpdate | AutoScalingPolicyUpdateDict | None + """ + The scaling policy to apply for scaling target global table or global + secondary index capacity units. + """ + @dataclass(kw_only=True) class AutoScalingTargetTrackingScalingPolicyConfigurationDescription(_SerdeShape): """Represents the properties of a target tracking scaling policy.""" @@ -485,6 +736,44 @@ class AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(_SerdeShape): 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). """ +class AutoScalingTargetTrackingScalingPolicyConfigurationUpdateDict( + TypedDict, total=False +): + """Dictionary form of `AutoScalingTargetTrackingScalingPolicyConfigurationUpdate`.""" + + disable_scale_in: bool | None + """ + Indicates whether scale in by the target tracking policy is disabled. If + the value is true, scale in is disabled and the target tracking policy + won't remove capacity from the scalable resource. Otherwise, scale in + is enabled and the target tracking policy can remove capacity from the + scalable resource. The default value is false. + """ + scale_in_cooldown: int | None + """ + The amount of time, in seconds, after a scale in activity completes + before another scale in activity can start. The cooldown period is used + to block subsequent scale in requests until it has expired. You should + scale in conservatively to protect your application's availability. + However, if another alarm triggers a scale out policy during the + cooldown period after a scale-in, application auto scaling scales out + your scalable target immediately. + """ + scale_out_cooldown: int | None + """ + The amount of time, in seconds, after a scale out activity completes + before another scale out activity can start. While the cooldown period + is in effect, the capacity that has been added by the previous scale out + event that initiated the cooldown is calculated as part of the desired + capacity for the next scale out. You should continuously (but not + excessively) scale out. + """ + target_value: Required[float] + """ + The target value for the metric. The range is 8.515920e-109 to + 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). + """ + @dataclass(kw_only=True) class BackupDescription(_SerdeShape): """Contains the description of the backup created for the table.""" @@ -652,6 +941,30 @@ class BatchExecuteStatementInput(_SerdeShape): - `NONE` - No `ConsumedCapacity` details are included in the response. """ +class BatchExecuteStatementInputDict(TypedDict, total=False): + """Dictionary form of `BatchExecuteStatementInput`.""" + + statements: Required[Sequence[BatchStatementRequest | BatchStatementRequestDict]] + """The list of PartiQL statements representing the batch to run.""" + return_consumed_capacity: str | None + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + @dataclass(kw_only=True) class BatchExecuteStatementOutput(_SerdeShape): """Dataclass for BatchExecuteStatementOutput structure.""" @@ -773,27 +1086,125 @@ class BatchGetItemInput(_SerdeShape): - `NONE` - No `ConsumedCapacity` details are included in the response. """ -@dataclass(kw_only=True) -class BatchGetItemOutput(_SerdeShape): - """Represents the output of a `BatchGetItem` operation.""" +class BatchGetItemInputDict(TypedDict, total=False): + """Dictionary form of `BatchGetItemInput`.""" - responses: dict[str, list[dict[str, AttributeValue]]] | None = ... - """ - A map of table name or table ARN to a list of items. Each object in - `Responses` consists of a table name or ARN, along with a map of - attribute data consisting of the data type and attribute value. - """ - unprocessed_keys: dict[str, KeysAndAttributes] | None = ... + request_items: Required[Mapping[str, KeysAndAttributes | KeysAndAttributesDict]] """ - A map of tables and their respective keys that were not processed with - the current response. The `UnprocessedKeys` value is in the same form as - `RequestItems`, so the value can be provided directly to a subsequent - `BatchGetItem` operation. For more information, see `RequestItems` in - the Request Parameters section. + A map of one or more table names or table ARNs and, for each table, a + map that describes one or more items to retrieve from that table. Each + table name or ARN can be used only once per `BatchGetItem` request. - Each element consists of: + Each element in the map of items to retrieve consists of the following: - - `Keys` - An array of primary key attribute values that define specific + - `ConsistentRead` - If `true`, a strongly consistent read is used; if + `false` (the default), an eventually consistent read is used. + + - `ExpressionAttributeNames` - One or more substitution tokens for + attribute names in the `ProjectionExpression` parameter. The following + are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute + name in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it + cannot be used directly in an expression. (For the complete list of + reserved words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information about expression attribute names, see [Accessing + Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + + - `Keys` - An array of primary key attribute values that define specific + items in the table. For each primary key, you must provide *all* of + the key attributes. For example, with a simple primary key, you only + need to provide the partition key value. For a composite key, you must + provide *both* the partition key value and the sort key value. + + - `ProjectionExpression` - A string that identifies one or more + attributes to retrieve from the table. These attributes can include + scalars, sets, or elements of a JSON document. The attributes in the + expression must be separated by commas. + + If no attribute names are specified, then all attributes are returned. + If any of the requested attributes are not found, they do not appear + in the result. + + For more information, see [Accessing Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + + - `AttributesToGet` - This is a legacy parameter. Use + `ProjectionExpression` instead. For more information, see + [AttributesToGet](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + in the *Amazon DynamoDB Developer Guide*. + """ + return_consumed_capacity: str | None + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + +@dataclass(kw_only=True) +class BatchGetItemOutput(_SerdeShape): + """Represents the output of a `BatchGetItem` operation.""" + + responses: dict[str, list[dict[str, AttributeValue]]] | None = ... + """ + A map of table name or table ARN to a list of items. Each object in + `Responses` consists of a table name or ARN, along with a map of + attribute data consisting of the data type and attribute value. + """ + unprocessed_keys: dict[str, KeysAndAttributes] | None = ... + """ + A map of tables and their respective keys that were not processed with + the current response. The `UnprocessedKeys` value is in the same form as + `RequestItems`, so the value can be provided directly to a subsequent + `BatchGetItem` operation. For more information, see `RequestItems` in + the Request Parameters section. + + Each element consists of: + + - `Keys` - An array of primary key attribute values that define specific items in the table. - `ProjectionExpression` - One or more attributes to be retrieved from @@ -872,6 +1283,25 @@ class BatchStatementRequest(_SerdeShape): larger response. No read capacity units are consumed. """ +class BatchStatementRequestDict(TypedDict, total=False): + """Dictionary form of `BatchStatementRequest`.""" + + statement: Required[str] + """A valid PartiQL statement.""" + parameters: Sequence[AttributeValue | AttributeValueDict] | None + """The parameters associated with a PartiQL statement in the batch request.""" + consistent_read: bool | None + """The read consistency of the PartiQL batch request.""" + return_values_on_condition_check_failure: str | None + """ + An optional parameter that returns the item attributes for a PartiQL + batch request operation that failed a condition check. + + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. + """ + @dataclass(kw_only=True) class BatchStatementResponse(_SerdeShape): """A PartiQL batch statement response..""" @@ -944,6 +1374,66 @@ class BatchWriteItemInput(_SerdeShape): set to `NONE` (the default), no statistics are returned. """ +class BatchWriteItemInputDict(TypedDict, total=False): + """Dictionary form of `BatchWriteItemInput`.""" + + request_items: Required[Mapping[str, Sequence[WriteRequest | WriteRequestDict]]] + """ + A map of one or more table names or table ARNs and, for each table, a + list of operations to be performed (`DeleteRequest` or `PutRequest`). + Each element in the map consists of the following: + + - `DeleteRequest` - Perform a `DeleteItem` operation on the specified + item. The item to be deleted is identified by a `Key` subelement: + + - `Key` - A map of primary key attribute values that uniquely identify + the item. Each entry in this map consists of an attribute name and + an attribute value. For each primary key, you must provide *all* of + the key attributes. For example, with a simple primary key, you only + need to provide a value for the partition key. For a composite + primary key, you must provide values for *both* the partition key + and the sort key. + + - `PutRequest` - Perform a `PutItem` operation on the specified item. + The item to be put is identified by an `Item` subelement: + + - `Item` - A map of attributes and their values. Each entry in this + map consists of an attribute name and an attribute value. Attribute + values must not be null; string and binary type attributes must have + lengths greater than zero; and set type attributes must not be + empty. Requests that contain empty values are rejected with a + `ValidationException` exception. + + If you specify any attributes that are part of an index key, then + the data types for those attributes must match those of the schema + in the table's attribute definition. + """ + return_consumed_capacity: str | None + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + return_item_collection_metrics: str | None + """ + Determines whether item collection metrics are returned. If set to + `SIZE`, the response includes statistics about item collections, if any, + that were modified during the operation are returned in the response. If + set to `NONE` (the default), no statistics are returned. + """ + @dataclass(kw_only=True) class BatchWriteItemOutput(_SerdeShape): """Represents the output of a `BatchWriteItem` operation.""" @@ -1082,38 +1572,38 @@ class BulkOperationDescription(_SerdeShape): IN_PROGRESS - : DynamoDB is processing the input. + : DynamoDB is processing the input. COMPLETED - : The bulk operation finished without parsing or validation errors. - Condition-check failures do not cause the operation to complete with - errors. + : The bulk operation finished without parsing or validation errors. + Condition-check failures do not cause the operation to complete with + errors. COMPLETED_WITH_ERRORS - : The bulk operation finished, but DynamoDB couldn't process at least - one input item because of a parsing or validation error. When you - enable `ERROR` output, DynamoDB writes the details to the configured - Amazon S3 output location. + : The bulk operation finished, but DynamoDB couldn't process at least + one input item because of a parsing or validation error. When you + enable `ERROR` output, DynamoDB writes the details to the configured + Amazon S3 output location. CANCELLING - : DynamoDB accepted a cancellation request and is stopping the - operation. + : DynamoDB accepted a cancellation request and is stopping the + operation. CANCELLED - : DynamoDB stopped the operation after a cancellation request. + : DynamoDB stopped the operation after a cancellation request. FAILED - : The bulk operation failed. DynamoDB might write some items before the - operation reaches this status. See - [FailureCode](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BulkOperationDescription.html#DDB-Type-BulkOperationDescription-FailureCode) - and - [FailureMessage](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BulkOperationDescription.html#DDB-Type-BulkOperationDescription-FailureMessage) - for details. + : The bulk operation failed. DynamoDB might write some items before + the operation reaches this status. See + [FailureCode](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BulkOperationDescription.html#DDB-Type-BulkOperationDescription-FailureCode) + and + [FailureMessage](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BulkOperationDescription.html#DDB-Type-BulkOperationDescription-FailureMessage) + for details. """ table_details: list[BulkOperationTableDetail] | None = ... """ @@ -1271,6 +1761,12 @@ class CancelBulkOperationInput(_SerdeShape): bulk_operation_arn: str | None = ... """The Amazon Resource Name (ARN) of the bulk operation to cancel.""" +class CancelBulkOperationInputDict(TypedDict, total=False): + """Dictionary form of `CancelBulkOperationInput`.""" + + bulk_operation_arn: Required[str] + """The Amazon Resource Name (ARN) of the bulk operation to cancel.""" + @dataclass(kw_only=True) class CancelBulkOperationOutput(_SerdeShape): """Dataclass for CancelBulkOperationOutput structure.""" @@ -1530,80 +2026,295 @@ class Condition(_SerdeShape): in the *Amazon DynamoDB Developer Guide*. """ -@dataclass(kw_only=True) -class ConditionalCheckFailedException(ServiceError, _SerdeShape): - """A condition specified in the operation failed to be evaluated.""" +class ConditionDict(TypedDict, total=False): + """Dictionary form of `Condition`.""" - item: dict[str, AttributeValue] | None = ... - """Item which caused the `ConditionalCheckFailedException`.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + attribute_value_list: Sequence[AttributeValue | AttributeValueDict] | None """ + One or more values to evaluate against the supplied attribute. The + number of values in the list depends on the `ComparisonOperator` being + used. -class ConditionalOperator(UnknownEnumMixin, StrEnum): - AND_ = "AND" - OR_ = "OR" + For type Number, value comparisons are numeric. -@dataclass(kw_only=True) -class ConditionCheck(_SerdeShape): - """ - Represents a request to perform a check that an item exists or to check - the condition of specific attributes of the item. - """ + String value comparisons for greater than, equals, or less than are + based on ASCII character code values. For example, `a` is greater than + `A`, and `a` is greater than `B`. For a list of code values, see + . - key: dict[str, AttributeValue] - """ - The primary key of the item to be checked. Each element consists of an - attribute name and a value for that attribute. - """ - table_name: str - """ - Name of the table for the check item request. You can also provide the - Amazon Resource Name (ARN) of the table in this parameter. - """ - condition_expression: str - """ - A condition that must be satisfied in order for a conditional update to - succeed. For more information, see [Condition - expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html) - in the *Amazon DynamoDB Developer Guide*. - """ - expression_attribute_names: dict[str, str] | None = ... - """ - One or more substitution tokens for attribute names in an expression. - For more information, see [Expression attribute - names](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeNames.html) - in the *Amazon DynamoDB Developer Guide*. - """ - expression_attribute_values: dict[str, AttributeValue] | None = ... - """ - One or more values that can be substituted in an expression. For more - information, see [Condition - expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html) - in the *Amazon DynamoDB Developer Guide*. - """ - return_values_on_condition_check_failure: str | None = ... + For Binary, DynamoDB treats each byte of the binary data as unsigned + when it compares binary values. """ - Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if - the `ConditionCheck` condition fails. For - `ReturnValuesOnConditionCheckFailure`, the valid values are: NONE and - ALL_OLD. + comparison_operator: Required[str] """ + A comparator for evaluating attributes. For example, equals, greater + than, less than, etc. -@dataclass(kw_only=True) -class ConsumedCapacity(_SerdeShape): - """ - The capacity units consumed by an operation. The data returned includes - the total provisioned throughput consumed, along with statistics for the - table and any indexes involved in the operation. `ConsumedCapacity` is - only returned if the request asked for it. For more information, see - [Provisioned capacity - mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html) - in the *Amazon DynamoDB Developer Guide*. + The following comparison operators are available: + + `EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN` + + The following are descriptions of each comparison operator. + + - `EQ` : Equal. `EQ` is supported for all data types, including lists + and maps. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, Binary, String Set, Number Set, or Binary Set. If + an item contains an `AttributeValue` element of a different type than + the one provided in the request, the value does not match. For + example, `{"S":"6"}` does not equal `{"N":"6"}`. Also, `{"N":"6"}` + does not equal `{"NS":["6", "2", "1"]}`. + + - `NE` : Not equal. `NE` is supported for all data types, including + lists and maps. + + `AttributeValueList` can contain only one `AttributeValue` of type + String, Number, Binary, String Set, Number Set, or Binary Set. If an + item contains an `AttributeValue` of a different type than the one + provided in the request, the value does not match. For example, + `{"S":"6"}` does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not + equal `{"NS":["6", "2", "1"]}`. + + - `LE` : Less than or equal. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `LT` : Less than. + + `AttributeValueList` can contain only one `AttributeValue` of type + String, Number, or Binary (not a set type). If an item contains an + `AttributeValue` element of a different type than the one provided in + the request, the value does not match. For example, `{"S":"6"}` does + not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `GE` : Greater than or equal. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `GT` : Greater than. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `NOT_NULL` : The attribute exists. `NOT_NULL` is supported for all + data types, including lists and maps. + + Note: + This operator tests for the existence of an attribute, not its data + type. If the data type of attribute \"`a`\" is null, and you evaluate + it using `NOT_NULL`, the result is a Boolean `true`. This result is + because the attribute \"`a`\" exists; its data type is not relevant to + the `NOT_NULL` comparison operator. + + - `NULL` : The attribute does not exist. `NULL` is supported for all + data types, including lists and maps. + + Note: + This operator tests for the nonexistence of an attribute, not its data + type. If the data type of attribute \"`a`\" is null, and you evaluate + it using `NULL`, the result is a Boolean `false`. This is because the + attribute \"`a`\" exists; its data type is not relevant to the `NULL` + comparison operator. + + - `CONTAINS` : Checks for a subsequence, or value in a set. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If the target + attribute of the comparison is of type String, then the operator + checks for a substring match. If the target attribute of the + comparison is of type Binary, then the operator looks for a + subsequence of the target that matches the input. If the target + attribute of the comparison is a set (\"`SS`\", \"`NS`\", or + \"`BS`\"), then the operator evaluates to true if it finds an exact + match with any member of the set. + + CONTAINS is supported for lists: When evaluating \"`a CONTAINS b`\", + \"`a`\" can be a list; however, \"`b`\" cannot be a set, a map, or a + list. + + - `NOT_CONTAINS` : Checks for absence of a subsequence, or absence of a + value in a set. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If the target + attribute of the comparison is a String, then the operator checks for + the absence of a substring match. If the target attribute of the + comparison is Binary, then the operator checks for the absence of a + subsequence of the target that matches the input. If the target + attribute of the comparison is a set (\"`SS`\", \"`NS`\", or + \"`BS`\"), then the operator evaluates to true if it *does not* find + an exact match with any member of the set. + + NOT_CONTAINS is supported for lists: When evaluating + \"`a NOT CONTAINS b`\", \"`a`\" can be a list; however, \"`b`\" cannot + be a set, a map, or a list. + + - `BEGINS_WITH` : Checks for a prefix. + + `AttributeValueList` can contain only one `AttributeValue` of type + String or Binary (not a Number or a set type). The target attribute of + the comparison must be of type String or Binary (not a Number or a set + type). + + - `IN` : Checks for matching elements in a list. + + `AttributeValueList` can contain one or more `AttributeValue` elements + of type String, Number, or Binary. These attributes are compared + against an existing attribute of an item. If any elements of the input + are equal to the item attribute, the expression evaluates to true. + + - `BETWEEN` : Greater than or equal to the first value, and less than or + equal to the second value. + + `AttributeValueList` must contain two `AttributeValue` elements of the + same type, either String, Number, or Binary (not a set type). A target + attribute matches if the target value is greater than, or equal to, + the first element and less than, or equal to, the second element. If + an item contains an `AttributeValue` element of a different type than + the one provided in the request, the value does not match. For + example, `{"S":"6"}` does not compare to `{"N":"6"}`. Also, + `{"N":"6"}` does not compare to `{"NS":["6", "2", "1"]}` + + For usage examples of `AttributeValueList` and `ComparisonOperator`, see + [Legacy Conditional + Parameters](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +@dataclass(kw_only=True) +class ConditionalCheckFailedException(ServiceError, _SerdeShape): + """A condition specified in the operation failed to be evaluated.""" + + item: dict[str, AttributeValue] | None = ... + """Item which caused the `ConditionalCheckFailedException`.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class ConditionalOperator(UnknownEnumMixin, StrEnum): + AND_ = "AND" + OR_ = "OR" + +@dataclass(kw_only=True) +class ConditionCheck(_SerdeShape): + """ + Represents a request to perform a check that an item exists or to check + the condition of specific attributes of the item. + """ + + key: dict[str, AttributeValue] + """ + The primary key of the item to be checked. Each element consists of an + attribute name and a value for that attribute. + """ + table_name: str + """ + Name of the table for the check item request. You can also provide the + Amazon Resource Name (ARN) of the table in this parameter. + """ + condition_expression: str + """ + A condition that must be satisfied in order for a conditional update to + succeed. For more information, see [Condition + expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_names: dict[str, str] | None = ... + """ + One or more substitution tokens for attribute names in an expression. + For more information, see [Expression attribute + names](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeNames.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_values: dict[str, AttributeValue] | None = ... + """ + One or more values that can be substituted in an expression. For more + information, see [Condition + expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html) + in the *Amazon DynamoDB Developer Guide*. + """ + return_values_on_condition_check_failure: str | None = ... + """ + Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if + the `ConditionCheck` condition fails. For + `ReturnValuesOnConditionCheckFailure`, the valid values are: NONE and + ALL_OLD. + """ + +class ConditionCheckDict(TypedDict, total=False): + """Dictionary form of `ConditionCheck`.""" + + key: Required[Mapping[str, AttributeValue | AttributeValueDict]] + """ + The primary key of the item to be checked. Each element consists of an + attribute name and a value for that attribute. + """ + table_name: Required[str] + """ + Name of the table for the check item request. You can also provide the + Amazon Resource Name (ARN) of the table in this parameter. + """ + condition_expression: Required[str] + """ + A condition that must be satisfied in order for a conditional update to + succeed. For more information, see [Condition + expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_names: Mapping[str, str] | None + """ + One or more substitution tokens for attribute names in an expression. + For more information, see [Expression attribute + names](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeNames.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) + """ + One or more values that can be substituted in an expression. For more + information, see [Condition + expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html) + in the *Amazon DynamoDB Developer Guide*. + """ + return_values_on_condition_check_failure: str | None + """ + Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if + the `ConditionCheck` condition fails. For + `ReturnValuesOnConditionCheckFailure`, the valid values are: NONE and + ALL_OLD. + """ + +@dataclass(kw_only=True) +class ConsumedCapacity(_SerdeShape): + """ + The capacity units consumed by an operation. The data returned includes + the total provisioned throughput consumed, along with statistics for the + table and any indexes involved in the operation. `ConsumedCapacity` is + only returned if the request asked for it. For more information, see + [Provisioned capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html) + in the *Amazon DynamoDB Developer Guide*. """ table_name: str | None = ... @@ -1721,6 +2432,17 @@ class CreateBackupInput(_SerdeShape): backup_name: str | None = ... """Specified name for the backup.""" +class CreateBackupInputDict(TypedDict, total=False): + """Dictionary form of `CreateBackupInput`.""" + + table_name: Required[str] + """ + The name of the table. You can also provide the Amazon Resource Name + (ARN) of the table in this parameter. + """ + backup_name: Required[str] + """Specified name for the backup.""" + @dataclass(kw_only=True) class CreateBackupOutput(_SerdeShape): """Dataclass for CreateBackupOutput structure.""" @@ -1779,6 +2501,46 @@ class CreateGlobalSecondaryIndexAction(_SerdeShape): units per second) when creating a secondary index. """ +class CreateGlobalSecondaryIndexActionDict(TypedDict, total=False): + """Dictionary form of `CreateGlobalSecondaryIndexAction`.""" + + index_name: Required[str] + """The name of the global secondary index to be created.""" + key_schema: Required[Sequence[KeySchemaElement | KeySchemaElementDict]] + """ + The key schema for the global secondary index. Global secondary index + supports up to 4 partition and up to 4 sort keys. + """ + projection: Required[Projection | ProjectionDict] + """ + Represents attributes that are copied (projected) from the table into an + index. These are in addition to the primary key attributes and index key + attributes, which are automatically projected. + """ + provisioned_throughput: ProvisionedThroughput | ProvisionedThroughputDict | None + """ + Represents the provisioned throughput settings for the specified global + secondary index. + + For current minimum and maximum provisioned throughput values, see + [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + in the *Amazon DynamoDB Developer Guide*. + """ + on_demand_throughput: OnDemandThroughput | OnDemandThroughputDict | None + """ + The maximum number of read and write units for the global secondary + index being created. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. You must use + either `OnDemand Throughput` or `ProvisionedThroughput` based on your + table's capacity mode. + """ + warm_throughput: WarmThroughput | WarmThroughputDict | None + """ + Represents the warm throughput value (in read units per second and write + units per second) when creating a secondary index. + """ + @dataclass(kw_only=True) class CreateGlobalTableInput(_SerdeShape): """Dataclass for CreateGlobalTableInput structure.""" @@ -1788,6 +2550,14 @@ class CreateGlobalTableInput(_SerdeShape): replication_group: list[Replica] | None = ... """The Regions where the global table needs to be created.""" +class CreateGlobalTableInputDict(TypedDict, total=False): + """Dictionary form of `CreateGlobalTableInput`.""" + + global_table_name: Required[str] + """The global table name.""" + replication_group: Required[Sequence[Replica | ReplicaDict]] + """The Regions where the global table needs to be created.""" + @dataclass(kw_only=True) class CreateGlobalTableOutput(_SerdeShape): """Dataclass for CreateGlobalTableOutput structure.""" @@ -1825,6 +2595,24 @@ class CreateGlobalTableWitnessGroupMemberAction(_SerdeShape): Pacific (Osaka) """ +class CreateGlobalTableWitnessGroupMemberActionDict(TypedDict, total=False): + """Dictionary form of `CreateGlobalTableWitnessGroupMemberAction`.""" + + region_name: Required[str] + """ + The Amazon Web Services Region name to be added as a witness Region for + the MRSC global table. The witness must be in a different Region than + the replicas and within the same Region set: + + - US Region set: US East (N. Virginia), US East (Ohio), US West (Oregon) + + - EU Region set: Europe (Ireland), Europe (London), Europe (Paris), + Europe (Frankfurt) + + - AP Region set: Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia + Pacific (Osaka) + """ + @dataclass(kw_only=True) class CreateReplicaAction(_SerdeShape): """Represents a replica to be added.""" @@ -1832,6 +2620,12 @@ class CreateReplicaAction(_SerdeShape): region_name: str """The Region of the replica to be added.""" +class CreateReplicaActionDict(TypedDict, total=False): + """Dictionary form of `CreateReplicaAction`.""" + + region_name: Required[str] + """The Region of the replica to be added.""" + @dataclass(kw_only=True) class CreateReplicationGroupMemberAction(_SerdeShape): """Represents a replica to be created.""" @@ -1865,6 +2659,44 @@ class CreateReplicationGroupMemberAction(_SerdeShape): table class. """ +class CreateReplicationGroupMemberActionDict(TypedDict, total=False): + """Dictionary form of `CreateReplicationGroupMemberAction`.""" + + region_name: Required[str] + """The Region where the new replica will be created.""" + kms_master_key_id: str | None + """ + The KMS key that should be used for KMS encryption in the new replica. + To specify a key, use its key ID, Amazon Resource Name (ARN), alias + name, or alias ARN. Note that you should only provide this parameter if + the key is different from the default DynamoDB KMS key + `alias/aws/dynamodb`. + """ + provisioned_throughput_override: ( + ProvisionedThroughputOverride | ProvisionedThroughputOverrideDict | None + ) + """ + Replica-specific provisioned throughput. If not specified, uses the + source table's provisioned throughput settings. + """ + on_demand_throughput_override: ( + OnDemandThroughputOverride | OnDemandThroughputOverrideDict | None + ) + """ + The maximum on-demand throughput settings for the specified replica + table being created. You can only modify `MaxReadRequestUnits`, because + you can't modify `MaxWriteRequestUnits` for individual replica tables. + """ + global_secondary_indexes: ( + Sequence[ReplicaGlobalSecondaryIndex | ReplicaGlobalSecondaryIndexDict] | None + ) + """Replica-specific global secondary index settings.""" + table_class_override: str | None + """ + Replica-specific table class. If not specified, uses the source table's + table class. + """ + @dataclass(kw_only=True) class CreateTableInput(_SerdeShape): """Represents the input of a `CreateTable` operation.""" @@ -2145,477 +2977,472 @@ class CreateTableInput(_SerdeShape): inline filter (`INLINE_FILTER`) attributes for the vector index. """ -@dataclass(kw_only=True) -class CreateTableOutput(_SerdeShape): - """Represents the output of a `CreateTable` operation.""" - - table_description: TableDescription | None = ... - """Represents the properties of the table.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class CreateVectorIndexAction(_SerdeShape): - """A new vector index to be added to a table.""" +class CreateTableInputDict(TypedDict, total=False): + """Dictionary form of `CreateTableInput`.""" - index_name: str - """The name of the vector index. Must be unique within the table.""" - vector_attribute: VectorAttributeDefinition - """ - The attribute that contains vector embeddings. If multiple vector - indexes reference the same attribute, they must all use the same number - of dimensions. - """ - search_schema: list[SearchSchemaElement] | None = ... - """ - The partition key and inline filter attribute definitions for the vector - index. + attribute_definitions: ( + Sequence[AttributeDefinition | AttributeDefinitionDict] | None + ) """ - projection: Projection + An array of attributes that describe the key schema for the table and + indexes. """ - Specifies attributes that are copied (projected) from the table into the - vector index. + table_name: Required[str] """ - dimensions: int - """The number of dimensions in each vector.""" - distance_function: str + The name of the table to create. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ - The distance function used to calculate similarity. Valid values: - `COSINE`, `EUCLIDEAN`, `DOT_PRODUCT`. + key_schema: Sequence[KeySchemaElement | KeySchemaElementDict] | None """ + Specifies the attributes that make up the primary key for a table or an + index. The attributes in `KeySchema` must also be defined in the + `AttributeDefinitions` array. For more information, see [Data + Model](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html) + in the *Amazon DynamoDB Developer Guide*. -@dataclass(kw_only=True) -class CsvOptions(_SerdeShape): - """Processing options for the CSV file being imported.""" + Each `KeySchemaElement` in the array is composed of: - delimiter: str | None = ... - """The delimiter used for separating items in the CSV file being imported.""" - header_list: list[str] | None = ... - """ - List of the headers used to specify a common header for all source CSV - files being imported. If this field is specified then the first line of - each CSV file is treated as data instead of the header. If this field is - not specified the the first line of each CSV file is treated as the - header. - """ + - `AttributeName` - The name of this key attribute. -@dataclass(kw_only=True) -class Delete(_SerdeShape): - """Represents a request to perform a `DeleteItem` operation.""" + - `KeyType` - The role that the key attribute will assume: - key: dict[str, AttributeValue] - """ - The primary key of the item to be deleted. Each element consists of an - attribute name and a value for that attribute. - """ - table_name: str - """ - Name of the table in which the item to be deleted resides. You can also - provide the Amazon Resource Name (ARN) of the table in this parameter. - """ - condition_expression: str | None = ... - """ - A condition that must be satisfied in order for a conditional delete to - succeed. - """ - expression_attribute_names: dict[str, str] | None = ... - """One or more substitution tokens for attribute names in an expression.""" - expression_attribute_values: dict[str, AttributeValue] | None = ... - """One or more values that can be substituted in an expression.""" - return_values_on_condition_check_failure: str | None = ... - """ - Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if - the `Delete` condition fails. For `ReturnValuesOnConditionCheckFailure`, - the valid values are: NONE and ALL_OLD. - """ + - `HASH` - partition key -@dataclass(kw_only=True) -class DeleteBackupInput(_SerdeShape): - """Dataclass for DeleteBackupInput structure.""" + - `RANGE` - sort key - backup_arn: str | None = ... - """The ARN associated with the backup.""" + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from the DynamoDB usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. -@dataclass(kw_only=True) -class DeleteBackupOutput(_SerdeShape): - """Dataclass for DeleteBackupOutput structure.""" + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. - backup_description: BackupDescription | None = ... - """Contains the description of the backup created for the table.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + For a simple primary key (partition key), you must provide exactly one + element with a `KeyType` of `HASH`. -@dataclass(kw_only=True) -class DeleteGlobalSecondaryIndexAction(_SerdeShape): + For a composite primary key (partition key and sort key), you must + provide exactly two elements, in this order: The first element must have + a `KeyType` of `HASH`, and the second element must have a `KeyType` of + `RANGE`. + + For more information, see [Working with + Tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key) + in the *Amazon DynamoDB Developer Guide*. """ - Represents a global secondary index to be deleted from an existing - table. + local_secondary_indexes: ( + Sequence[LocalSecondaryIndex | LocalSecondaryIndexDict] | None + ) """ + One or more local secondary indexes (the maximum is 5) to be created on + the table. Each index is scoped to a given partition key value. There is + a 10 GB size limit per partition key value; otherwise, the size of a + local secondary index is unconstrained. - index_name: str - """The name of the global secondary index to be deleted.""" + Each local secondary index in the array includes the following: -@dataclass(kw_only=True) -class DeleteGlobalTableWitnessGroupMemberAction(_SerdeShape): - """ - Specifies the action to remove a witness Region from a MRSC global - table. You cannot delete a single witness from a MRSC global table - you - must delete both a replica and the witness together. The deletion of - both a witness and replica converts the remaining replica to a - single-Region DynamoDB table. - """ + - `IndexName` - The name of the local secondary index. Must be unique + only for this table. - region_name: str - """The witness Region name to be removed from the MRSC global table.""" + - `KeySchema` - Specifies the key schema for the local secondary index. + The key schema must begin with the same partition key as the table. -@dataclass(kw_only=True) -class DeleteItemInput(_SerdeShape): - """Represents the input of a `DeleteItem` operation.""" + - `Projection` - Specifies attributes that are copied (projected) from + the table into the index. These are in addition to the primary key + attributes and index key attributes, which are automatically + projected. Each attribute specification is composed of: - table_name: str | None = ... - """ - The name of the table from which to delete the item. You can also - provide the Amazon Resource Name (ARN) of the table in this parameter. - """ - key: dict[str, AttributeValue] | None = ... - """ - A map of attribute names to `AttributeValue` objects, representing the - primary key of the item to delete. - - For the primary key, you must provide all of the key attributes. For - example, with a simple primary key, you only need to provide a value for - the partition key. For a composite primary key, you must provide values - for both the partition key and the sort key. - """ - expected: dict[str, ExpectedAttributeValue] | None = ... - """ - This is a legacy parameter. Use `ConditionExpression` instead. For more - information, see - [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) - in the *Amazon DynamoDB Developer Guide*. - """ - conditional_operator: str | None = ... - """ - This is a legacy parameter. Use `ConditionExpression` instead. For more - information, see - [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) - in the *Amazon DynamoDB Developer Guide*. - """ - return_values: str | None = ... - """ - Use `ReturnValues` if you want to get the item attributes as they - appeared before they were deleted. For `DeleteItem`, the valid values - are: + - `ProjectionType` - One of the following: - - `NONE` - If `ReturnValues` is not specified, or if its value is - `NONE`, then nothing is returned. (This setting is the default for - `ReturnValues`.) + - `KEYS_ONLY` - Only the index and primary keys are projected into + the index. - - `ALL_OLD` - The content of the old item is returned. + - `INCLUDE` - Only the specified table attributes are projected into + the index. The list of projected attributes is in + `NonKeyAttributes`. - There is no additional cost associated with requesting a return value - aside from the small network and processing overhead of receiving a - larger response. No read capacity units are consumed. + - `ALL` - All of the table attributes are projected into the index. - Note: - The `ReturnValues` parameter is used by several DynamoDB operations; - however, `DeleteItem` does not recognize any values other than `NONE` or - `ALL_OLD`. + - `NonKeyAttributes` - A list of one or more non-key attribute names + that are projected into the secondary index. The total count of + attributes provided in `NonKeyAttributes`, summed across all of the + secondary indexes, must not exceed 100. If you project the same + attribute into two different indexes, this counts as two distinct + attributes when determining the total. This limit only applies when + you specify the ProjectionType of `INCLUDE`. You still can specify + the ProjectionType of `ALL` to project all attributes from the + source table, even if the table has more than 100 attributes. """ - return_consumed_capacity: str | None = ... + global_secondary_indexes: ( + Sequence[GlobalSecondaryIndex | GlobalSecondaryIndexDict] | None + ) """ - Determines the level of detail about either provisioned or on-demand - throughput consumption that is returned in the response: - - - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for - the operation, together with `ConsumedCapacity` for each table and - secondary index that was accessed. + One or more global secondary indexes (the maximum is 20) to be created + on the table. Each global secondary index in the array includes the + following: - Note that some operations, such as `GetItem` and `BatchGetItem`, do - not access any indexes at all. In these cases, specifying `INDEXES` - will only return `ConsumedCapacity` information for table(s). + - `IndexName` - The name of the global secondary index. Must be unique + only for this table. - - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` - for the operation. + - `KeySchema` - Specifies the key schema for the global secondary index. + Each global secondary index supports up to 4 partition keys and up to + 4 sort keys. - - `NONE` - No `ConsumedCapacity` details are included in the response. - """ - return_item_collection_metrics: str | None = ... - """ - Determines whether item collection metrics are returned. If set to - `SIZE`, the response includes statistics about item collections, if any, - that were modified during the operation are returned in the response. If - set to `NONE` (the default), no statistics are returned. - """ - condition_expression: str | None = ... - """ - A condition that must be satisfied in order for a conditional - `DeleteItem` to succeed. + - `Projection` - Specifies attributes that are copied (projected) from + the table into the index. These are in addition to the primary key + attributes and index key attributes, which are automatically + projected. Each attribute specification is composed of: - An expression can contain any of the following: + - `ProjectionType` - One of the following: - - Functions: - `attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size` + - `KEYS_ONLY` - Only the index and primary keys are projected into + the index. - These function names are case-sensitive. + - `INCLUDE` - Only the specified table attributes are projected into + the index. The list of projected attributes is in + `NonKeyAttributes`. - - Comparison operators: `= | <> | < | > | <= | >= | BETWEEN | IN ` + - `ALL` - All of the table attributes are projected into the index. - - Logical operators: `AND | OR | NOT` + - `NonKeyAttributes` - A list of one or more non-key attribute names + that are projected into the secondary index. The total count of + attributes provided in `NonKeyAttributes`, summed across all of the + secondary indexes, must not exceed 100. If you project the same + attribute into two different indexes, this counts as two distinct + attributes when determining the total. This limit only applies when + you specify the ProjectionType of `INCLUDE`. You still can specify + the ProjectionType of `ALL` to project all attributes from the + source table, even if the table has more than 100 attributes. - For more information about condition expressions, see [Condition - Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) - in the *Amazon DynamoDB Developer Guide*. + - `ProvisionedThroughput` - The provisioned throughput settings for the + global secondary index, consisting of read and write capacity units. """ - expression_attribute_names: dict[str, str] | None = ... + billing_mode: str | None """ - One or more substitution tokens for attribute names in an expression. - The following are some use cases for using `ExpressionAttributeNames`: - - - To access an attribute whose name conflicts with a DynamoDB reserved - word. - - - To create a placeholder for repeating occurrences of an attribute name - in an expression. - - - To prevent special characters in an attribute name from being - misinterpreted in an expression. - - Use the **#** character in an expression to dereference an attribute - name. For example, consider the following attribute name: - - - `Percentile` - - The name of this attribute conflicts with a reserved word, so it cannot - be used directly in an expression. (For the complete list of reserved - words, see [Reserved - Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) - in the *Amazon DynamoDB Developer Guide*). To work around this, you - could specify the following for `ExpressionAttributeNames`: - - - `{"#P":"Percentile"}` + Controls how you are charged for read and write throughput and how you + manage capacity. This setting can be changed later. - You could then use this substitution in an expression, as in this - example: + - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for most + DynamoDB workloads. `PAY_PER_REQUEST` sets the billing mode to + [On-demand capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html). - - `#P = :val` + - `PROVISIONED` - We recommend using `PROVISIONED` for steady workloads + with predictable growth where capacity requirements can be reliably + forecasted. `PROVISIONED` sets the billing mode to [Provisioned + capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html). + """ + provisioned_throughput: ProvisionedThroughput | ProvisionedThroughputDict | None + """ + Represents the provisioned throughput settings for a specified table or + index. The settings can be modified using the `UpdateTable` operation. - Note: - Tokens that begin with the **:** character are *expression attribute - values*, which are placeholders for the actual value at runtime. + If you set BillingMode as `PROVISIONED`, you must specify this property. + If you set BillingMode as `PAY_PER_REQUEST`, you cannot specify this + property. - For more information on expression attribute names, see [Specifying Item - Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + For current minimum and maximum provisioned throughput values, see + [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the *Amazon DynamoDB Developer Guide*. """ - expression_attribute_values: dict[str, AttributeValue] | None = ... + stream_specification: StreamSpecification | StreamSpecificationDict | None """ - One or more values that can be substituted in an expression. - - Use the **:** (colon) character in an expression to dereference an - attribute value. For example, suppose that you wanted to check whether - the value of the *ProductStatus* attribute was one of the following: + The settings for DynamoDB Streams on the table. These settings consist + of: - `Available | Backordered | Discontinued` + - `StreamEnabled` - Indicates whether DynamoDB Streams is to be enabled + (true) or disabled (false). - You would first need to specify `ExpressionAttributeValues` as follows: + - `StreamViewType` - When an item in the table is modified, + `StreamViewType` determines what information is written to the + table's stream. Valid values for `StreamViewType` are: - `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` + - `KEYS_ONLY` - Only the key attributes of the modified item are + written to the stream. - You could then use these values in an expression, such as this: + - `NEW_IMAGE` - The entire item, as it appears after it was modified, + is written to the stream. - `ProductStatus IN (:avail, :back, :disc)` + - `OLD_IMAGE` - The entire item, as it appeared before it was + modified, is written to the stream. - For more information on expression attribute values, see [Condition - Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) - in the *Amazon DynamoDB Developer Guide*. + - `NEW_AND_OLD_IMAGES` - Both the new and the old item images of the + item are written to the stream. """ - return_values_on_condition_check_failure: str | None = ... + sse_specification: SSESpecification | SSESpecificationDict | None + """Represents the settings used to enable server-side encryption.""" + tags: Sequence[Tag | TagDict] | None """ - An optional parameter that returns the item attributes for a - `DeleteItem` operation that failed a condition check. - - There is no additional cost associated with requesting a return value - aside from the small network and processing overhead of receiving a - larger response. No read capacity units are consumed. + A list of key-value pairs to label the table. For more information, see + [Tagging for + DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html). """ - -@dataclass(kw_only=True) -class DeleteItemOutput(_SerdeShape): - """Represents the output of a `DeleteItem` operation.""" - - attributes: dict[str, AttributeValue] | None = ... + table_class: str | None """ - A map of attribute names to `AttributeValue` objects, representing the - item as it appeared before the `DeleteItem` operation. This map appears - in the response only if `ReturnValues` was specified as `ALL_OLD` in the - request. + The table class of the new table. Valid values are `STANDARD` and + `STANDARD_INFREQUENT_ACCESS`. """ - consumed_capacity: ConsumedCapacity | None = ... + deletion_protection_enabled: bool | None """ - The capacity units consumed by the `DeleteItem` operation. The data - returned includes the total provisioned throughput consumed, along with - statistics for the table and any indexes involved in the operation. - `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` - parameter was specified. For more information, see [Provisioned capacity - mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html) - in the *Amazon DynamoDB Developer Guide*. - - If the table has vector indexes, the response includes a `VectorIndexes` - field with `VectorWriteRequestBytes` consumed for each affected vector - index. + Indicates whether deletion protection is to be enabled (true) or + disabled (false) on the table. """ - item_collection_metrics: ItemCollectionMetrics | None = ... + warm_throughput: WarmThroughput | WarmThroughputDict | None """ - Information about item collections, if any, that were affected by the - `DeleteItem` operation. `ItemCollectionMetrics` is only returned if the - `ReturnItemCollectionMetrics` parameter was specified. If the table does - not have any local secondary indexes, this information is not returned - in the response. + Represents the warm throughput (in read units per second and write units + per second) for creating a table. + """ + resource_policy: str | None + """ + An Amazon Web Services resource-based policy document in JSON format + that will be attached to the table. - Each `ItemCollectionMetrics` element consists of: - - - `ItemCollectionKey` - The partition key value of the item collection. - This is the same as the partition key value of the item itself. + When you attach a resource-based policy while creating a table, the + policy application is *strongly consistent*. - - `SizeEstimateRangeGB` - An estimate of item collection size, in - gigabytes. This value is a two-element array containing a lower bound - and an upper bound for the estimate. The estimate includes the size of - all the items in the table, plus the size of all attributes projected - into all of the local secondary indexes on that table. Use this - estimate to measure whether a local secondary index is approaching its - size limit. + The maximum size supported for a resource-based policy document is 20 + KB. DynamoDB counts whitespaces when calculating the size of a policy + against this limit. For a full list of all considerations that apply for + resource-based policies, see [Resource-based policy + considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html). - The estimate is subject to change over time; therefore, do not rely on - the precision or accuracy of the estimate. + Note: + You need to specify the `CreateTable` and `PutResourcePolicy` IAM + actions for authorizing a user to create a table with a resource-based + policy. """ - response_metadata: ResponseMetadata = ... + on_demand_throughput: OnDemandThroughput | OnDemandThroughputDict | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Sets the maximum number of read and write units for the specified table + in on-demand capacity mode. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. """ + global_table_source_arn: str | None + """ + The Amazon Resource Name (ARN) of the source table used for the creation + of a multi-account global table. + """ + global_table_settings_replication_mode: str | None + """ + Controls the settings synchronization mode for the global table. For + multi-account global tables, this parameter is required and the only + supported value is ENABLED. For same-account global tables, this + parameter is set to ENABLED_WITH_OVERRIDES. + """ + vector_indexes: Sequence[VectorIndex | VectorIndexDict] | None + """ + One or more vector indexes to be created on the table. Each vector index + enables similarity search on a vector attribute. Each element in the + list consists of: -@dataclass(kw_only=True) -class DeleteReplicaAction(_SerdeShape): - """Represents a replica to be removed.""" + - `IndexName` - The name of the vector index. Must be unique within the + table. - region_name: str - """The Region of the replica to be removed.""" + - `VectorAttribute` - The attribute that contains vector embeddings. If + multiple vector indexes reference the same attribute, they must all + use the same number of dimensions. -@dataclass(kw_only=True) -class DeleteReplicationGroupMemberAction(_SerdeShape): - """Represents a replica to be deleted.""" + - `Dimensions` - The number of dimensions in each vector. - region_name: str - """The Region where the replica exists.""" + - `DistanceFunction` - The distance function used to calculate + similarity. Valid values: `COSINE`, `EUCLIDEAN`, `DOT_PRODUCT`. + + - `Projection` - Specifies attributes that are copied (projected) from + the table into the vector index. The total number of projected non-key + attributes is shared across the vector attribute (counts as 1) and + `INLINE_FILTER` search schema elements (each counts as 1). `HASH` + search schema elements do not count toward this limit. + + - `SearchSchema` - (Optional) Defines the partition key (`HASH`) and + inline filter (`INLINE_FILTER`) attributes for the vector index. + """ @dataclass(kw_only=True) -class DeleteRequest(_SerdeShape): - """Represents a request to perform a `DeleteItem` operation on an item.""" +class CreateTableOutput(_SerdeShape): + """Represents the output of a `CreateTable` operation.""" - key: dict[str, AttributeValue] + table_description: TableDescription | None = ... + """Represents the properties of the table.""" + response_metadata: ResponseMetadata = ... """ - A map of attribute name to attribute values, representing the primary - key of the item to delete. All of the table's primary key attributes - must be specified, and their data types must match those of the table's - key schema. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) -class DeleteResourcePolicyInput(_SerdeShape): - """Dataclass for DeleteResourcePolicyInput structure.""" +class CreateVectorIndexAction(_SerdeShape): + """A new vector index to be added to a table.""" - resource_arn: str | None = ... + index_name: str + """The name of the vector index. Must be unique within the table.""" + vector_attribute: VectorAttributeDefinition """ - The Amazon Resource Name (ARN) of the DynamoDB resource from which the - policy will be removed. The resources you can specify include tables and - streams. If you remove the policy of a table, it will also remove the - permissions for the table's indexes defined in that policy document. - This is because index permissions are defined in the table's policy. + The attribute that contains vector embeddings. If multiple vector + indexes reference the same attribute, they must all use the same number + of dimensions. """ - expected_revision_id: str | None = ... + search_schema: list[SearchSchemaElement] | None = ... """ - A string value that you can use to conditionally delete your policy. - When you provide an expected revision ID, if the revision ID of the - existing policy on the resource doesn't match or if there's no policy - attached to the resource, the request will fail and return a - `PolicyNotFoundException`. + The partition key and inline filter attribute definitions for the vector + index. + """ + projection: Projection + """ + Specifies attributes that are copied (projected) from the table into the + vector index. + """ + dimensions: int + """The number of dimensions in each vector.""" + distance_function: str + """ + The distance function used to calculate similarity. Valid values: + `COSINE`, `EUCLIDEAN`, `DOT_PRODUCT`. """ -@dataclass(kw_only=True) -class DeleteResourcePolicyOutput(_SerdeShape): - """Dataclass for DeleteResourcePolicyOutput structure.""" +class CreateVectorIndexActionDict(TypedDict, total=False): + """Dictionary form of `CreateVectorIndexAction`.""" - revision_id: str | None = ... + index_name: Required[str] + """The name of the vector index. Must be unique within the table.""" + vector_attribute: Required[ + VectorAttributeDefinition | VectorAttributeDefinitionDict + ] """ - A unique string that represents the revision ID of the policy. If - you're comparing revision IDs, make sure to always use string - comparison logic. - - This value will be empty if you make a request against a resource - without a policy. + The attribute that contains vector embeddings. If multiple vector + indexes reference the same attribute, they must all use the same number + of dimensions. """ - response_metadata: ResponseMetadata = ... + search_schema: Sequence[SearchSchemaElement | SearchSchemaElementDict] | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The partition key and inline filter attribute definitions for the vector + index. + """ + projection: Required[Projection | ProjectionDict] + """ + Specifies attributes that are copied (projected) from the table into the + vector index. + """ + dimensions: Required[int] + """The number of dimensions in each vector.""" + distance_function: Required[str] + """ + The distance function used to calculate similarity. Valid values: + `COSINE`, `EUCLIDEAN`, `DOT_PRODUCT`. """ @dataclass(kw_only=True) -class DeleteTableInput(_SerdeShape): - """Represents the input of a `DeleteTable` operation.""" +class CsvOptions(_SerdeShape): + """Processing options for the CSV file being imported.""" - table_name: str | None = ... + delimiter: str | None = ... + """The delimiter used for separating items in the CSV file being imported.""" + header_list: list[str] | None = ... """ - The name of the table to delete. You can also provide the Amazon - Resource Name (ARN) of the table in this parameter. + List of the headers used to specify a common header for all source CSV + files being imported. If this field is specified then the first line of + each CSV file is treated as data instead of the header. If this field is + not specified the the first line of each CSV file is treated as the + header. """ -@dataclass(kw_only=True) -class DeleteTableOutput(_SerdeShape): - """Represents the output of a `DeleteTable` operation.""" +class CsvOptionsDict(TypedDict, total=False): + """Dictionary form of `CsvOptions`.""" - table_description: TableDescription | None = ... - """Represents the properties of a table.""" - response_metadata: ResponseMetadata = ... + delimiter: str | None + """The delimiter used for separating items in the CSV file being imported.""" + header_list: Sequence[str] | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + List of the headers used to specify a common header for all source CSV + files being imported. If this field is specified then the first line of + each CSV file is treated as data instead of the header. If this field is + not specified the the first line of each CSV file is treated as the + header. """ @dataclass(kw_only=True) -class DeleteVectorIndexAction(_SerdeShape): - """A vector index to be removed from a table.""" +class Delete(_SerdeShape): + """Represents a request to perform a `DeleteItem` operation.""" - index_name: str - """The name of the vector index to delete.""" + key: dict[str, AttributeValue] + """ + The primary key of the item to be deleted. Each element consists of an + attribute name and a value for that attribute. + """ + table_name: str + """ + Name of the table in which the item to be deleted resides. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. + """ + condition_expression: str | None = ... + """ + A condition that must be satisfied in order for a conditional delete to + succeed. + """ + expression_attribute_names: dict[str, str] | None = ... + """One or more substitution tokens for attribute names in an expression.""" + expression_attribute_values: dict[str, AttributeValue] | None = ... + """One or more values that can be substituted in an expression.""" + return_values_on_condition_check_failure: str | None = ... + """ + Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if + the `Delete` condition fails. For `ReturnValuesOnConditionCheckFailure`, + the valid values are: NONE and ALL_OLD. + """ + +class DeleteDict(TypedDict, total=False): + """Dictionary form of `Delete`.""" + + key: Required[Mapping[str, AttributeValue | AttributeValueDict]] + """ + The primary key of the item to be deleted. Each element consists of an + attribute name and a value for that attribute. + """ + table_name: Required[str] + """ + Name of the table in which the item to be deleted resides. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. + """ + condition_expression: str | None + """ + A condition that must be satisfied in order for a conditional delete to + succeed. + """ + expression_attribute_names: Mapping[str, str] | None + """One or more substitution tokens for attribute names in an expression.""" + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) + """One or more values that can be substituted in an expression.""" + return_values_on_condition_check_failure: str | None + """ + Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if + the `Delete` condition fails. For `ReturnValuesOnConditionCheckFailure`, + the valid values are: NONE and ALL_OLD. + """ @dataclass(kw_only=True) -class DescribeBackupInput(_SerdeShape): - """Dataclass for DescribeBackupInput structure.""" +class DeleteBackupInput(_SerdeShape): + """Dataclass for DeleteBackupInput structure.""" backup_arn: str | None = ... - """The Amazon Resource Name (ARN) associated with the backup.""" + """The ARN associated with the backup.""" + +class DeleteBackupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBackupInput`.""" + + backup_arn: Required[str] + """The ARN associated with the backup.""" @dataclass(kw_only=True) -class DescribeBackupOutput(_SerdeShape): - """Dataclass for DescribeBackupOutput structure.""" +class DeleteBackupOutput(_SerdeShape): + """Dataclass for DeleteBackupOutput structure.""" backup_description: BackupDescription | None = ... """Contains the description of the backup created for the table.""" @@ -2628,461 +3455,434 @@ class DescribeBackupOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DescribeBulkOperationInput(_SerdeShape): - """Dataclass for DescribeBulkOperationInput structure.""" +class DeleteGlobalSecondaryIndexAction(_SerdeShape): + """ + Represents a global secondary index to be deleted from an existing + table. + """ - bulk_operation_arn: str | None = ... - """The Amazon Resource Name (ARN) of the bulk operation to describe.""" + index_name: str + """The name of the global secondary index to be deleted.""" -@dataclass(kw_only=True) -class DescribeBulkOperationOutput(_SerdeShape): - """Dataclass for DescribeBulkOperationOutput structure.""" +class DeleteGlobalSecondaryIndexActionDict(TypedDict, total=False): + """Dictionary form of `DeleteGlobalSecondaryIndexAction`.""" - bulk_operation_description: BulkOperationDescription - """Contains detailed information about the bulk operation.""" - response_metadata: ResponseMetadata = ... + index_name: Required[str] + """The name of the global secondary index to be deleted.""" + +@dataclass(kw_only=True) +class DeleteGlobalTableWitnessGroupMemberAction(_SerdeShape): """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Specifies the action to remove a witness Region from a MRSC global + table. You cannot delete a single witness from a MRSC global table - you + must delete both a replica and the witness together. The deletion of + both a witness and replica converts the remaining replica to a + single-Region DynamoDB table. """ + region_name: str + """The witness Region name to be removed from the MRSC global table.""" + +class DeleteGlobalTableWitnessGroupMemberActionDict(TypedDict, total=False): + """Dictionary form of `DeleteGlobalTableWitnessGroupMemberAction`.""" + + region_name: Required[str] + """The witness Region name to be removed from the MRSC global table.""" + @dataclass(kw_only=True) -class DescribeContinuousBackupsInput(_SerdeShape): - """Dataclass for DescribeContinuousBackupsInput structure.""" +class DeleteItemInput(_SerdeShape): + """Represents the input of a `DeleteItem` operation.""" table_name: str | None = ... """ - Name of the table for which the customer wants to check the continuous - backups and point in time recovery settings. - - You can also provide the Amazon Resource Name (ARN) of the table in this - parameter. + The name of the table from which to delete the item. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. """ + key: dict[str, AttributeValue] | None = ... + """ + A map of attribute names to `AttributeValue` objects, representing the + primary key of the item to delete. -@dataclass(kw_only=True) -class DescribeContinuousBackupsOutput(_SerdeShape): - """Dataclass for DescribeContinuousBackupsOutput structure.""" - - continuous_backups_description: ContinuousBackupsDescription | None = ... + For the primary key, you must provide all of the key attributes. For + example, with a simple primary key, you only need to provide a value for + the partition key. For a composite primary key, you must provide values + for both the partition key and the sort key. """ - Represents the continuous backups and point in time recovery settings on - the table. + expected: dict[str, ExpectedAttributeValue] | None = ... """ - response_metadata: ResponseMetadata = ... + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + in the *Amazon DynamoDB Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + conditional_operator: str | None = ... """ - -@dataclass(kw_only=True) -class DescribeContributorInsightsInput(_SerdeShape): - """Dataclass for DescribeContributorInsightsInput structure.""" - - table_name: str | None = ... + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + in the *Amazon DynamoDB Developer Guide*. """ - The name of the table to describe. You can also provide the Amazon - Resource Name (ARN) of the table in this parameter. + return_values: str | None = ... """ - index_name: str | None = ... - """The name of the global secondary index to describe, if applicable.""" + Use `ReturnValues` if you want to get the item attributes as they + appeared before they were deleted. For `DeleteItem`, the valid values + are: -@dataclass(kw_only=True) -class DescribeContributorInsightsOutput(_SerdeShape): - """Dataclass for DescribeContributorInsightsOutput structure.""" + - `NONE` - If `ReturnValues` is not specified, or if its value is + `NONE`, then nothing is returned. (This setting is the default for + `ReturnValues`.) - table_name: str | None = ... - """The name of the table being described.""" - index_name: str | None = ... - """The name of the global secondary index being described.""" - contributor_insights_rule_list: list[str] | None = ... - """List of names of the associated contributor insights rules.""" - contributor_insights_status: str | None = ... - """Current status of contributor insights.""" - last_update_date_time: datetime | None = ... - """Timestamp of the last time the status was changed.""" - failure_exception: FailureException | None = ... - """ - Returns information about the last failure that was encountered. + - `ALL_OLD` - The content of the old item is returned. - The most common exceptions for a FAILED status are: + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. - - LimitExceededException - Per-account Amazon CloudWatch Contributor - Insights rule limit reached. Please disable Contributor Insights for - other tables/indexes OR disable Contributor Insights rules before - retrying. + Note: + The `ReturnValues` parameter is used by several DynamoDB operations; + however, `DeleteItem` does not recognize any values other than `NONE` or + `ALL_OLD`. + """ + return_consumed_capacity: str | None = ... + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: - - AccessDeniedException - Amazon CloudWatch Contributor Insights rules - cannot be modified due to insufficient permissions. + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. - - AccessDeniedException - Failed to create service-linked role for - Contributor Insights due to insufficient permissions. + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). - - InternalServerError - Failed to create Amazon CloudWatch Contributor - Insights rules. Please retry request. - """ - contributor_insights_mode: str | None = ... + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. """ - The mode of CloudWatch Contributor Insights for DynamoDB that determines - which events are emitted. Can be set to track all access and throttled - events or throttled events only. + return_item_collection_metrics: str | None = ... """ - response_metadata: ResponseMetadata = ... + Determines whether item collection metrics are returned. If set to + `SIZE`, the response includes statistics about item collections, if any, + that were modified during the operation are returned in the response. If + set to `NONE` (the default), no statistics are returned. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + condition_expression: str | None = ... """ + A condition that must be satisfied in order for a conditional + `DeleteItem` to succeed. -@dataclass(kw_only=True) -class DescribeEndpointsInput(_SerdeShape): - """Dataclass for DescribeEndpointsInput structure.""" + An expression can contain any of the following: -@dataclass(kw_only=True) -class DescribeEndpointsOutput(_SerdeShape): - """Dataclass for DescribeEndpointsOutput structure.""" + - Functions: + `attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size` - endpoints: list[Endpoint] - """List of endpoints.""" - response_metadata: ResponseMetadata = ... + These function names are case-sensitive. + + - Comparison operators: `= | <> | < | > | <= | >= | BETWEEN | IN ` + + - Logical operators: `AND | OR | NOT` + + For more information about condition expressions, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + expression_attribute_names: dict[str, str] | None = ... """ + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: -@dataclass(kw_only=True) -class DescribeExportInput(_SerdeShape): - """Dataclass for DescribeExportInput structure.""" + - To access an attribute whose name conflicts with a DynamoDB reserved + word. - export_arn: str | None = ... - """The Amazon Resource Name (ARN) associated with the export.""" + - To create a placeholder for repeating occurrences of an attribute name + in an expression. -@dataclass(kw_only=True) -class DescribeExportOutput(_SerdeShape): - """Dataclass for DescribeExportOutput structure.""" + - To prevent special characters in an attribute name from being + misinterpreted in an expression. - export_description: ExportDescription | None = ... - """Represents the properties of the export.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: -@dataclass(kw_only=True) -class DescribeGlobalTableInput(_SerdeShape): - """Dataclass for DescribeGlobalTableInput structure.""" + - `Percentile` - global_table_name: str | None = ... - """The name of the global table.""" + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: -@dataclass(kw_only=True) -class DescribeGlobalTableOutput(_SerdeShape): - """Dataclass for DescribeGlobalTableOutput structure.""" + - `{"#P":"Percentile"}` - global_table_description: GlobalTableDescription | None = ... - """Contains the details of the global table.""" - response_metadata: ResponseMetadata = ... + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + expression_attribute_values: dict[str, AttributeValue] | None = ... """ + One or more values that can be substituted in an expression. -@dataclass(kw_only=True) -class DescribeGlobalTableSettingsInput(_SerdeShape): - """Dataclass for DescribeGlobalTableSettingsInput structure.""" + Use the **:** (colon) character in an expression to dereference an + attribute value. For example, suppose that you wanted to check whether + the value of the *ProductStatus* attribute was one of the following: - global_table_name: str | None = ... - """The name of the global table to describe.""" - -@dataclass(kw_only=True) -class DescribeGlobalTableSettingsOutput(_SerdeShape): - """Dataclass for DescribeGlobalTableSettingsOutput structure.""" - - global_table_name: str | None = ... - """The name of the global table.""" - replica_settings: list[ReplicaSettingsDescription] | None = ... - """The Region-specific settings for the global table.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class DescribeImportInput(_SerdeShape): - """Dataclass for DescribeImportInput structure.""" + `Available | Backordered | Discontinued` - import_arn: str | None = ... - """ - The Amazon Resource Name (ARN) associated with the table you're - importing to. - """ + You would first need to specify `ExpressionAttributeValues` as follows: -@dataclass(kw_only=True) -class DescribeImportOutput(_SerdeShape): - """Dataclass for DescribeImportOutput structure.""" + `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` - import_table_description: ImportTableDescription - """ - Represents the properties of the table created for the import, and - parameters of the import. The import parameters include import status, - how many items were processed, and how many errors were encountered. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + You could then use these values in an expression, such as this: -@dataclass(kw_only=True) -class DescribeKinesisStreamingDestinationInput(_SerdeShape): - """Dataclass for DescribeKinesisStreamingDestinationInput structure.""" + `ProductStatus IN (:avail, :back, :disc)` - table_name: str | None = ... + For more information on expression attribute values, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. """ - The name of the table being described. You can also provide the Amazon - Resource Name (ARN) of the table in this parameter. + return_values_on_condition_check_failure: str | None = ... """ + An optional parameter that returns the item attributes for a + `DeleteItem` operation that failed a condition check. -@dataclass(kw_only=True) -class DescribeKinesisStreamingDestinationOutput(_SerdeShape): - """Dataclass for DescribeKinesisStreamingDestinationOutput structure.""" - - table_name: str | None = ... - """The name of the table being described.""" - kinesis_data_stream_destinations: list[KinesisDataStreamDestination] | None = ... - """The list of replica structures for the table being described.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. """ -@dataclass(kw_only=True) -class DescribeLimitsInput(_SerdeShape): - """Represents the input of a `DescribeLimits` operation. Has no content.""" - -@dataclass(kw_only=True) -class DescribeLimitsOutput(_SerdeShape): - """Represents the output of a `DescribeLimits` operation.""" +class DeleteItemInputDict(TypedDict, total=False): + """Dictionary form of `DeleteItemInput`.""" - account_max_read_capacity_units: int | None = ... - """ - The maximum total read capacity units that your account allows you to - provision across all of your tables in this Region. + table_name: Required[str] """ - account_max_write_capacity_units: int | None = ... + The name of the table from which to delete the item. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. """ - The maximum total write capacity units that your account allows you to - provision across all of your tables in this Region. + key: Required[Mapping[str, AttributeValue | AttributeValueDict]] """ - table_max_read_capacity_units: int | None = ... + A map of attribute names to `AttributeValue` objects, representing the + primary key of the item to delete. + + For the primary key, you must provide all of the key attributes. For + example, with a simple primary key, you only need to provide a value for + the partition key. For a composite primary key, you must provide values + for both the partition key and the sort key. """ - The maximum read capacity units that your account allows you to - provision for a new table that you are creating in this Region, - including the read capacity units provisioned for its global secondary - indexes (GSIs). + expected: Mapping[str, ExpectedAttributeValue | ExpectedAttributeValueDict] | None """ - table_max_write_capacity_units: int | None = ... + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + in the *Amazon DynamoDB Developer Guide*. """ - The maximum write capacity units that your account allows you to - provision for a new table that you are creating in this Region, - including the write capacity units provisioned for its global secondary - indexes (GSIs). + conditional_operator: str | None """ - response_metadata: ResponseMetadata = ... + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + in the *Amazon DynamoDB Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + return_values: str | None """ + Use `ReturnValues` if you want to get the item attributes as they + appeared before they were deleted. For `DeleteItem`, the valid values + are: -@dataclass(kw_only=True) -class DescribeTableInput(_SerdeShape): - """Represents the input of a `DescribeTable` operation.""" + - `NONE` - If `ReturnValues` is not specified, or if its value is + `NONE`, then nothing is returned. (This setting is the default for + `ReturnValues`.) - table_name: str | None = ... - """ - The name of the table to describe. You can also provide the Amazon - Resource Name (ARN) of the table in this parameter. - """ + - `ALL_OLD` - The content of the old item is returned. -@dataclass(kw_only=True) -class DescribeTableOutput(_SerdeShape): - """Represents the output of a `DescribeTable` operation.""" + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. - table: TableDescription | None = ... - """The properties of the table.""" - response_metadata: ResponseMetadata = ... + Note: + The `ReturnValues` parameter is used by several DynamoDB operations; + however, `DeleteItem` does not recognize any values other than `NONE` or + `ALL_OLD`. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + return_consumed_capacity: str | None """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: -@dataclass(kw_only=True) -class DescribeTableReplicaAutoScalingInput(_SerdeShape): - """Dataclass for DescribeTableReplicaAutoScalingInput structure.""" + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. - table_name: str | None = ... - """ - The name of the table. You can also provide the Amazon Resource Name - (ARN) of the table in this parameter. - """ + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). -@dataclass(kw_only=True) -class DescribeTableReplicaAutoScalingOutput(_SerdeShape): - """Dataclass for DescribeTableReplicaAutoScalingOutput structure.""" + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. - table_auto_scaling_description: TableAutoScalingDescription | None = ... - """Represents the auto scaling properties of the table.""" - response_metadata: ResponseMetadata = ... + - `NONE` - No `ConsumedCapacity` details are included in the response. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + return_item_collection_metrics: str | None """ - -@dataclass(kw_only=True) -class DescribeTimeToLiveInput(_SerdeShape): - """Dataclass for DescribeTimeToLiveInput structure.""" - - table_name: str | None = ... + Determines whether item collection metrics are returned. If set to + `SIZE`, the response includes statistics about item collections, if any, + that were modified during the operation are returned in the response. If + set to `NONE` (the default), no statistics are returned. """ - The name of the table to be described. You can also provide the Amazon - Resource Name (ARN) of the table in this parameter. + condition_expression: str | None """ + A condition that must be satisfied in order for a conditional + `DeleteItem` to succeed. -@dataclass(kw_only=True) -class DescribeTimeToLiveOutput(_SerdeShape): - """Dataclass for DescribeTimeToLiveOutput structure.""" + An expression can contain any of the following: - time_to_live_description: TimeToLiveDescription | None = ... - """""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - Functions: + `attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size` -class DestinationStatus(UnknownEnumMixin, StrEnum): - ENABLING = "ENABLING" - ACTIVE = "ACTIVE" - DISABLING = "DISABLING" - DISABLED = "DISABLED" - ENABLE_FAILED = "ENABLE_FAILED" - UPDATING = "UPDATING" + These function names are case-sensitive. -@dataclass(kw_only=True) -class DisableKinesisStreamingDestinationInput(_SerdeShape): - """Dataclass for DisableKinesisStreamingDestinationInput structure.""" + - Comparison operators: `= | <> | < | > | <= | >= | BETWEEN | IN ` - table_name: str | None = ... + - Logical operators: `AND | OR | NOT` + + For more information about condition expressions, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. """ - The name of the DynamoDB table. You can also provide the Amazon Resource - Name (ARN) of the table in this parameter. + expression_attribute_names: Mapping[str, str] | None """ - stream_arn: str | None = ... - """The ARN for a Kinesis data stream.""" - enable_kinesis_streaming_configuration: ( - EnableKinesisStreamingConfiguration | None - ) = ... - """The source for the Kinesis streaming information that is being enabled.""" + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: -@dataclass(kw_only=True) -class DisableKinesisStreamingDestinationOutput(_SerdeShape): - """Dataclass for DisableKinesisStreamingDestinationOutput structure.""" + - To access an attribute whose name conflicts with a DynamoDB reserved + word. - table_name: str | None = ... - """The name of the table being modified.""" - stream_arn: str | None = ... - """The ARN for the specific Kinesis data stream.""" - destination_status: str | None = ... - """The current status of the replication.""" - enable_kinesis_streaming_configuration: ( - EnableKinesisStreamingConfiguration | None - ) = ... - """ - The destination for the Kinesis streaming information that is being - enabled. - """ - response_metadata: ResponseMetadata = ... + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) """ + One or more values that can be substituted in an expression. -@dataclass(kw_only=True) -class DisassociateReplicationGroupMemberAction(_SerdeShape): - """ - The parameters for disassociating the local replica from a global table - using Version 2019.11.21 with multi-Region eventual consistency (MREC). + Use the **:** (colon) character in an expression to dereference an + attribute value. For example, suppose that you wanted to check whether + the value of the *ProductStatus* attribute was one of the following: - After disassociation completes, the replica remains a standalone - regional table that keeps its data, indexes, and table settings. + `Available | Backordered | Discontinued` - For request requirements, see - [UpdateTable](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html). - For prerequisites, the protection update, and completion checks, see - [Disassociating a global table - replica](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-disassociate.html) + You would first need to specify `ExpressionAttributeValues` as follows: + + `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` + + You could then use these values in an expression, such as this: + + `ProductStatus IN (:avail, :back, :disc)` + + For more information on expression attribute values, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) in the *Amazon DynamoDB Developer Guide*. """ + return_values_on_condition_check_failure: str | None + """ + An optional parameter that returns the item attributes for a + `DeleteItem` operation that failed a condition check. - region_name: str + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. """ - The Region of the replica to disassociate. Set this value to the Region - where you send the `UpdateTable` request. You must use credentials for - the account that owns the replica. + +@dataclass(kw_only=True) +class DeleteItemOutput(_SerdeShape): + """Represents the output of a `DeleteItem` operation.""" + + attributes: dict[str, AttributeValue] | None = ... """ - disassociation_mode: str + A map of attribute names to `AttributeValue` objects, representing the + item as it appeared before the `DeleteItem` operation. This map appears + in the response only if `ReturnValues` was specified as `ALL_OLD` in the + request. """ - The mode for handling pending replication before disassociation - completes. You must specify `WAIT_FOR_REPLICATION`. For more - information, see [Disassociating a global table - replica](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-disassociate.html) - in the *Amazon DynamoDB Developer Guide*. + consumed_capacity: ConsumedCapacity | None = ... """ + The capacity units consumed by the `DeleteItem` operation. The data + returned includes the total provisioned throughput consumed, along with + statistics for the table and any indexes involved in the operation. + `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` + parameter was specified. For more information, see [Provisioned capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html) + in the *Amazon DynamoDB Developer Guide*. -class DisassociationMode(UnknownEnumMixin, StrEnum): + If the table has vector indexes, the response includes a `VectorIndexes` + field with `VectorWriteRequestBytes` consumed for each affected vector + index. """ - Specifies how pending replication is handled before a replica is - disassociated. `WAIT_FOR_REPLICATION` is the only supported value. + item_collection_metrics: ItemCollectionMetrics | None = ... """ + Information about item collections, if any, that were affected by the + `DeleteItem` operation. `ItemCollectionMetrics` is only returned if the + `ReturnItemCollectionMetrics` parameter was specified. If the table does + not have any local secondary indexes, this information is not returned + in the response. - WAIT_FOR_REPLICATION = "WAIT_FOR_REPLICATION" + Each `ItemCollectionMetrics` element consists of: -@dataclass(kw_only=True) -class DuplicateItemException(ServiceError, _SerdeShape): - """ - There was an attempt to insert an item with the same primary key as an - item that already exists in the DynamoDB table. - """ + - `ItemCollectionKey` - The partition key value of the item collection. + This is the same as the partition key value of the item itself. + + - `SizeEstimateRangeGB` - An estimate of item collection size, in + gigabytes. This value is a two-element array containing a lower bound + and an upper bound for the estimate. The estimate includes the size of + all the items in the table, plus the size of all attributes projected + into all of the local secondary indexes on that table. Use this + estimate to measure whether a local secondary index is approaching its + size limit. + The estimate is subject to change over time; therefore, do not rely on + the precision or accuracy of the estimate. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3092,47 +3892,107 @@ class DuplicateItemException(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class EnableKinesisStreamingConfiguration(_SerdeShape): - """Enables setting the configuration for Kinesis Streaming.""" +class DeleteReplicaAction(_SerdeShape): + """Represents a replica to be removed.""" - approximate_creation_date_time_precision: str | None = ... + region_name: str + """The Region of the replica to be removed.""" + +class DeleteReplicaActionDict(TypedDict, total=False): + """Dictionary form of `DeleteReplicaAction`.""" + + region_name: Required[str] + """The Region of the replica to be removed.""" + +@dataclass(kw_only=True) +class DeleteReplicationGroupMemberAction(_SerdeShape): + """Represents a replica to be deleted.""" + + region_name: str + """The Region where the replica exists.""" + +class DeleteReplicationGroupMemberActionDict(TypedDict, total=False): + """Dictionary form of `DeleteReplicationGroupMemberAction`.""" + + region_name: Required[str] + """The Region where the replica exists.""" + +@dataclass(kw_only=True) +class DeleteRequest(_SerdeShape): + """Represents a request to perform a `DeleteItem` operation on an item.""" + + key: dict[str, AttributeValue] """ - Toggle for the precision of Kinesis data stream timestamp. The values - are either `MILLISECOND` or `MICROSECOND`. + A map of attribute name to attribute values, representing the primary + key of the item to delete. All of the table's primary key attributes + must be specified, and their data types must match those of the table's + key schema. + """ + +class DeleteRequestDict(TypedDict, total=False): + """Dictionary form of `DeleteRequest`.""" + + key: Required[Mapping[str, AttributeValue | AttributeValueDict]] + """ + A map of attribute name to attribute values, representing the primary + key of the item to delete. All of the table's primary key attributes + must be specified, and their data types must match those of the table's + key schema. """ @dataclass(kw_only=True) -class EnableKinesisStreamingDestinationInput(_SerdeShape): - """Dataclass for EnableKinesisStreamingDestinationInput structure.""" +class DeleteResourcePolicyInput(_SerdeShape): + """Dataclass for DeleteResourcePolicyInput structure.""" - table_name: str | None = ... + resource_arn: str | None = ... """ - The name of the DynamoDB table. You can also provide the Amazon Resource - Name (ARN) of the table in this parameter. + The Amazon Resource Name (ARN) of the DynamoDB resource from which the + policy will be removed. The resources you can specify include tables and + streams. If you remove the policy of a table, it will also remove the + permissions for the table's indexes defined in that policy document. + This is because index permissions are defined in the table's policy. + """ + expected_revision_id: str | None = ... + """ + A string value that you can use to conditionally delete your policy. + When you provide an expected revision ID, if the revision ID of the + existing policy on the resource doesn't match or if there's no policy + attached to the resource, the request will fail and return a + `PolicyNotFoundException`. + """ + +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the DynamoDB resource from which the + policy will be removed. The resources you can specify include tables and + streams. If you remove the policy of a table, it will also remove the + permissions for the table's indexes defined in that policy document. + This is because index permissions are defined in the table's policy. + """ + expected_revision_id: str | None + """ + A string value that you can use to conditionally delete your policy. + When you provide an expected revision ID, if the revision ID of the + existing policy on the resource doesn't match or if there's no policy + attached to the resource, the request will fail and return a + `PolicyNotFoundException`. """ - stream_arn: str | None = ... - """The ARN for a Kinesis data stream.""" - enable_kinesis_streaming_configuration: ( - EnableKinesisStreamingConfiguration | None - ) = ... - """The source for the Kinesis streaming information that is being enabled.""" @dataclass(kw_only=True) -class EnableKinesisStreamingDestinationOutput(_SerdeShape): - """Dataclass for EnableKinesisStreamingDestinationOutput structure.""" +class DeleteResourcePolicyOutput(_SerdeShape): + """Dataclass for DeleteResourcePolicyOutput structure.""" - table_name: str | None = ... - """The name of the table being modified.""" - stream_arn: str | None = ... - """The ARN for the specific Kinesis data stream.""" - destination_status: str | None = ... - """The current status of the replication.""" - enable_kinesis_streaming_configuration: ( - EnableKinesisStreamingConfiguration | None - ) = ... + revision_id: str | None = ... """ - The destination for the Kinesis streaming information that is being - enabled. + A unique string that represents the revision ID of the policy. If + you're comparing revision IDs, make sure to always use string + comparison logic. + + This value will be empty if you make a request against a resource + without a policy. """ response_metadata: ResponseMetadata = ... """ @@ -3143,110 +4003,97 @@ class EnableKinesisStreamingDestinationOutput(_SerdeShape): """ @dataclass(kw_only=True) -class Endpoint(_SerdeShape): - """An endpoint information details.""" +class DeleteTableInput(_SerdeShape): + """Represents the input of a `DeleteTable` operation.""" - address: str - """IP address of the endpoint.""" - cache_period_in_minutes: int = ... - """Endpoint cache time to live (TTL) value.""" + table_name: str | None = ... + """ + The name of the table to delete. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. + """ -@dataclass(kw_only=True) -class ExecuteStatementInput(_SerdeShape): - """Dataclass for ExecuteStatementInput structure.""" +class DeleteTableInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTableInput`.""" - statement: str | None = ... - """The PartiQL statement representing the operation to run.""" - parameters: list[AttributeValue] | None = ... - """The parameters for the PartiQL statement, if any.""" - consistent_read: bool | None = ... - """ - The consistency of a read operation. If set to `true`, then a strongly - consistent read is used; otherwise, an eventually consistent read is - used. + table_name: Required[str] """ - next_token: str | None = ... + The name of the table to delete. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ - Set this value to get remaining results, if `NextToken` was returned in - the statement response. + +@dataclass(kw_only=True) +class DeleteTableOutput(_SerdeShape): + """Represents the output of a `DeleteTable` operation.""" + + table_description: TableDescription | None = ... + """Represents the properties of a table.""" + response_metadata: ResponseMetadata = ... """ - return_consumed_capacity: str | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Determines the level of detail about either provisioned or on-demand - throughput consumption that is returned in the response: - - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for - the operation, together with `ConsumedCapacity` for each table and - secondary index that was accessed. +@dataclass(kw_only=True) +class DeleteVectorIndexAction(_SerdeShape): + """A vector index to be removed from a table.""" - Note that some operations, such as `GetItem` and `BatchGetItem`, do - not access any indexes at all. In these cases, specifying `INDEXES` - will only return `ConsumedCapacity` information for table(s). + index_name: str + """The name of the vector index to delete.""" - - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` - for the operation. +class DeleteVectorIndexActionDict(TypedDict, total=False): + """Dictionary form of `DeleteVectorIndexAction`.""" - - `NONE` - No `ConsumedCapacity` details are included in the response. - """ - limit: int | None = ... - """ - The maximum number of items to evaluate (not necessarily the number of - matching items). If DynamoDB processes the number of items up to the - limit while processing the results, it stops the operation and returns - the matching values up to that point, along with a key in - `LastEvaluatedKey` to apply in a subsequent operation so you can pick up - where you left off. Also, if the processed dataset size exceeds 1 MB - before DynamoDB reaches this limit, it stops the operation and returns - the matching values up to the limit, and a key in `LastEvaluatedKey` to - apply in a subsequent operation to continue the operation. - """ - return_values_on_condition_check_failure: str | None = ... - """ - An optional parameter that returns the item attributes for an - `ExecuteStatement` operation that failed a condition check. + index_name: Required[str] + """The name of the vector index to delete.""" - There is no additional cost associated with requesting a return value - aside from the small network and processing overhead of receiving a - larger response. No read capacity units are consumed. - """ +@dataclass(kw_only=True) +class DescribeBackupInput(_SerdeShape): + """Dataclass for DescribeBackupInput structure.""" + + backup_arn: str | None = ... + """The Amazon Resource Name (ARN) associated with the backup.""" + +class DescribeBackupInputDict(TypedDict, total=False): + """Dictionary form of `DescribeBackupInput`.""" + + backup_arn: Required[str] + """The Amazon Resource Name (ARN) associated with the backup.""" @dataclass(kw_only=True) -class ExecuteStatementOutput(_SerdeShape): - """Dataclass for ExecuteStatementOutput structure.""" +class DescribeBackupOutput(_SerdeShape): + """Dataclass for DescribeBackupOutput structure.""" - items: list[dict[str, AttributeValue]] | None = ... - """ - If a read operation was used, this property will contain the result of - the read operation; a map of attribute names and their values. For the - write operations this value will be empty. - """ - next_token: str | None = ... - """ - If the response of a read request exceeds the response payload limit - DynamoDB will set this value in the response. If set, you can use that - this value in the subsequent request to get the remaining results. - """ - consumed_capacity: ConsumedCapacity | None = ... - """ - The capacity units consumed by an operation. The data returned includes - the total provisioned throughput consumed, along with statistics for the - table and any indexes involved in the operation. `ConsumedCapacity` is - only returned if the request asked for it. For more information, see - [Provisioned capacity - mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html) - in the *Amazon DynamoDB Developer Guide*. - """ - last_evaluated_key: dict[str, AttributeValue] | None = ... + backup_description: BackupDescription | None = ... + """Contains the description of the backup created for the table.""" + response_metadata: ResponseMetadata = ... """ - The primary key of the item where the operation stopped, inclusive of - the previous result set. Use this value to start a new operation, - excluding this value in the new request. If `LastEvaluatedKey` is empty, - then the \"last page\" of results has been processed and there is no - more data to be retrieved. If `LastEvaluatedKey` is not empty, it does - not necessarily mean that there is more data in the result set. The only - way to know when you have reached the end of the result set is when - `LastEvaluatedKey` is empty. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ + +@dataclass(kw_only=True) +class DescribeBulkOperationInput(_SerdeShape): + """Dataclass for DescribeBulkOperationInput structure.""" + + bulk_operation_arn: str | None = ... + """The Amazon Resource Name (ARN) of the bulk operation to describe.""" + +class DescribeBulkOperationInputDict(TypedDict, total=False): + """Dictionary form of `DescribeBulkOperationInput`.""" + + bulk_operation_arn: Required[str] + """The Amazon Resource Name (ARN) of the bulk operation to describe.""" + +@dataclass(kw_only=True) +class DescribeBulkOperationOutput(_SerdeShape): + """Dataclass for DescribeBulkOperationOutput structure.""" + + bulk_operation_description: BulkOperationDescription + """Contains detailed information about the bulk operation.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3256,38 +4103,38 @@ class ExecuteStatementOutput(_SerdeShape): """ @dataclass(kw_only=True) -class ExecuteTransactionInput(_SerdeShape): - """Dataclass for ExecuteTransactionInput structure.""" +class DescribeContinuousBackupsInput(_SerdeShape): + """Dataclass for DescribeContinuousBackupsInput structure.""" - transact_statements: list[ParameterizedStatement] | None = ... - """The list of PartiQL statements representing the transaction to run.""" - client_request_token: str | None = ... + table_name: str | None = ... """ - Set this value to get remaining results, if `NextToken` was returned in - the statement response. + Name of the table for which the customer wants to check the continuous + backups and point in time recovery settings. - This field is autopopulated if not provided. + You can also provide the Amazon Resource Name (ARN) of the table in this + parameter. """ - return_consumed_capacity: str | None = ... + +class DescribeContinuousBackupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeContinuousBackupsInput`.""" + + table_name: Required[str] """ - Determines the level of detail about either provisioned or on-demand - throughput consumption that is returned in the response. For more - information, see - [TransactGetItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html) - and - [TransactWriteItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html). + Name of the table for which the customer wants to check the continuous + backups and point in time recovery settings. + + You can also provide the Amazon Resource Name (ARN) of the table in this + parameter. """ @dataclass(kw_only=True) -class ExecuteTransactionOutput(_SerdeShape): - """Dataclass for ExecuteTransactionOutput structure.""" +class DescribeContinuousBackupsOutput(_SerdeShape): + """Dataclass for DescribeContinuousBackupsOutput structure.""" - responses: list[ItemResponse] | None = ... - """The response to a PartiQL transaction.""" - consumed_capacity: list[ConsumedCapacity] | None = ... + continuous_backups_description: ContinuousBackupsDescription | None = ... """ - The capacity units consumed by the entire operation. The values of the - list are ordered according to the ordering of the statements. + Represents the continuous backups and point in time recovery settings on + the table. """ response_metadata: ResponseMetadata = ... """ @@ -3298,242 +4145,209 @@ class ExecuteTransactionOutput(_SerdeShape): """ @dataclass(kw_only=True) -class ExpectedAttributeValue(_SerdeShape): - """ - Represents a condition to be compared with an attribute value. This - condition can be used with `DeleteItem`, `PutItem`, or `UpdateItem` - operations; if the comparison evaluates to true, the operation succeeds; - if not, the operation fails. You can use `ExpectedAttributeValue` in one - of two different ways: - - - Use `AttributeValueList` to specify one or more values to compare - against an attribute. Use `ComparisonOperator` to specify how you want - to perform the comparison. If the comparison evaluates to true, then - the conditional operation succeeds. - - - Use `Value` to specify a value that DynamoDB will compare against an - attribute. If the values match, then `ExpectedAttributeValue` - evaluates to true and the conditional operation succeeds. Optionally, - you can also set `Exists` to false, indicating that you *do not* - expect to find the attribute value in the table. In this case, the - conditional operation succeeds only if the comparison evaluates to - false. +class DescribeContributorInsightsInput(_SerdeShape): + """Dataclass for DescribeContributorInsightsInput structure.""" - `Value` and `Exists` are incompatible with `AttributeValueList` and - `ComparisonOperator`. Note that if you use both sets of parameters at - once, DynamoDB will return a `ValidationException` exception. + table_name: str | None = ... """ - - value: AttributeValue | None = ... + The name of the table to describe. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ - Represents the data for the expected attribute. + index_name: str | None = ... + """The name of the global secondary index to describe, if applicable.""" - Each attribute value is described as a name-value pair. The name is the - data type, and the value is the data itself. +class DescribeContributorInsightsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeContributorInsightsInput`.""" - For more information, see [Data - Types](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) - in the *Amazon DynamoDB Developer Guide*. + table_name: Required[str] """ - exists: bool | None = ... + The name of the table to describe. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ - Causes DynamoDB to evaluate the value before attempting a conditional - operation: + index_name: str | None + """The name of the global secondary index to describe, if applicable.""" - - If `Exists` is `true`, DynamoDB will check to see if that attribute - value already exists in the table. If it is found, then the operation - succeeds. If it is not found, the operation fails with a - `ConditionCheckFailedException`. +@dataclass(kw_only=True) +class DescribeContributorInsightsOutput(_SerdeShape): + """Dataclass for DescribeContributorInsightsOutput structure.""" - - If `Exists` is `false`, DynamoDB assumes that the attribute value does - not exist in the table. If in fact the value does not exist, then the - assumption is valid and the operation succeeds. If the value is found, - despite the assumption that it does not exist, the operation fails - with a `ConditionCheckFailedException`. + table_name: str | None = ... + """The name of the table being described.""" + index_name: str | None = ... + """The name of the global secondary index being described.""" + contributor_insights_rule_list: list[str] | None = ... + """List of names of the associated contributor insights rules.""" + contributor_insights_status: str | None = ... + """Current status of contributor insights.""" + last_update_date_time: datetime | None = ... + """Timestamp of the last time the status was changed.""" + failure_exception: FailureException | None = ... + """ + Returns information about the last failure that was encountered. - The default setting for `Exists` is `true`. If you supply a `Value` all - by itself, DynamoDB assumes the attribute exists: You don't have to set - `Exists` to `true`, because it is implied. + The most common exceptions for a FAILED status are: - DynamoDB returns a `ValidationException` if: + - LimitExceededException - Per-account Amazon CloudWatch Contributor + Insights rule limit reached. Please disable Contributor Insights for + other tables/indexes OR disable Contributor Insights rules before + retrying. - - `Exists` is `true` but there is no `Value` to check. (You expect a - value to exist, but don't specify what that value is.) + - AccessDeniedException - Amazon CloudWatch Contributor Insights rules + cannot be modified due to insufficient permissions. - - `Exists` is `false` but you also provide a `Value`. (You cannot expect - an attribute to have a value, while also expecting it not to exist.) + - AccessDeniedException - Failed to create service-linked role for + Contributor Insights due to insufficient permissions. + + - InternalServerError - Failed to create Amazon CloudWatch Contributor + Insights rules. Please retry request. """ - comparison_operator: str | None = ... + contributor_insights_mode: str | None = ... + """ + The mode of CloudWatch Contributor Insights for DynamoDB that determines + which events are emitted. Can be set to track all access and throttled + events or throttled events only. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - A comparator for evaluating attributes in the `AttributeValueList`. For - example, equals, greater than, less than, etc. - - The following comparison operators are available: - - `EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN` - - The following are descriptions of each comparison operator. - - - `EQ` : Equal. `EQ` is supported for all data types, including lists - and maps. - - `AttributeValueList` can contain only one `AttributeValue` element of - type String, Number, Binary, String Set, Number Set, or Binary Set. If - an item contains an `AttributeValue` element of a different type than - the one provided in the request, the value does not match. For - example, `{"S":"6"}` does not equal `{"N":"6"}`. Also, `{"N":"6"}` - does not equal `{"NS":["6", "2", "1"]}`. - - - `NE` : Not equal. `NE` is supported for all data types, including - lists and maps. - - `AttributeValueList` can contain only one `AttributeValue` of type - String, Number, Binary, String Set, Number Set, or Binary Set. If an - item contains an `AttributeValue` of a different type than the one - provided in the request, the value does not match. For example, - `{"S":"6"}` does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not - equal `{"NS":["6", "2", "1"]}`. - - - `LE` : Less than or equal. - - `AttributeValueList` can contain only one `AttributeValue` element of - type String, Number, or Binary (not a set type). If an item contains - an `AttributeValue` element of a different type than the one provided - in the request, the value does not match. For example, `{"S":"6"}` - does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to - `{"NS":["6", "2", "1"]}`. - - `LT` : Less than. +@dataclass(kw_only=True) +class DescribeEndpointsInput(_SerdeShape): + """Dataclass for DescribeEndpointsInput structure.""" - `AttributeValueList` can contain only one `AttributeValue` of type - String, Number, or Binary (not a set type). If an item contains an - `AttributeValue` element of a different type than the one provided in - the request, the value does not match. For example, `{"S":"6"}` does - not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to - `{"NS":["6", "2", "1"]}`. +class DescribeEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeEndpointsInput`.""" - - `GE` : Greater than or equal. +@dataclass(kw_only=True) +class DescribeEndpointsOutput(_SerdeShape): + """Dataclass for DescribeEndpointsOutput structure.""" - `AttributeValueList` can contain only one `AttributeValue` element of - type String, Number, or Binary (not a set type). If an item contains - an `AttributeValue` element of a different type than the one provided - in the request, the value does not match. For example, `{"S":"6"}` - does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to - `{"NS":["6", "2", "1"]}`. + endpoints: list[Endpoint] + """List of endpoints.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - - `GT` : Greater than. +@dataclass(kw_only=True) +class DescribeExportInput(_SerdeShape): + """Dataclass for DescribeExportInput structure.""" - `AttributeValueList` can contain only one `AttributeValue` element of - type String, Number, or Binary (not a set type). If an item contains - an `AttributeValue` element of a different type than the one provided - in the request, the value does not match. For example, `{"S":"6"}` - does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to - `{"NS":["6", "2", "1"]}`. + export_arn: str | None = ... + """The Amazon Resource Name (ARN) associated with the export.""" - - `NOT_NULL` : The attribute exists. `NOT_NULL` is supported for all - data types, including lists and maps. +class DescribeExportInputDict(TypedDict, total=False): + """Dictionary form of `DescribeExportInput`.""" - Note: - This operator tests for the existence of an attribute, not its data - type. If the data type of attribute \"`a`\" is null, and you evaluate - it using `NOT_NULL`, the result is a Boolean `true`. This result is - because the attribute \"`a`\" exists; its data type is not relevant to - the `NOT_NULL` comparison operator. + export_arn: Required[str] + """The Amazon Resource Name (ARN) associated with the export.""" - - `NULL` : The attribute does not exist. `NULL` is supported for all - data types, including lists and maps. +@dataclass(kw_only=True) +class DescribeExportOutput(_SerdeShape): + """Dataclass for DescribeExportOutput structure.""" - Note: - This operator tests for the nonexistence of an attribute, not its data - type. If the data type of attribute \"`a`\" is null, and you evaluate - it using `NULL`, the result is a Boolean `false`. This is because the - attribute \"`a`\" exists; its data type is not relevant to the `NULL` - comparison operator. + export_description: ExportDescription | None = ... + """Represents the properties of the export.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - - `CONTAINS` : Checks for a subsequence, or value in a set. +@dataclass(kw_only=True) +class DescribeGlobalTableInput(_SerdeShape): + """Dataclass for DescribeGlobalTableInput structure.""" - `AttributeValueList` can contain only one `AttributeValue` element of - type String, Number, or Binary (not a set type). If the target - attribute of the comparison is of type String, then the operator - checks for a substring match. If the target attribute of the - comparison is of type Binary, then the operator looks for a - subsequence of the target that matches the input. If the target - attribute of the comparison is a set (\"`SS`\", \"`NS`\", or - \"`BS`\"), then the operator evaluates to true if it finds an exact - match with any member of the set. + global_table_name: str | None = ... + """The name of the global table.""" - CONTAINS is supported for lists: When evaluating \"`a CONTAINS b`\", - \"`a`\" can be a list; however, \"`b`\" cannot be a set, a map, or a - list. +class DescribeGlobalTableInputDict(TypedDict, total=False): + """Dictionary form of `DescribeGlobalTableInput`.""" - - `NOT_CONTAINS` : Checks for absence of a subsequence, or absence of a - value in a set. + global_table_name: Required[str] + """The name of the global table.""" - `AttributeValueList` can contain only one `AttributeValue` element of - type String, Number, or Binary (not a set type). If the target - attribute of the comparison is a String, then the operator checks for - the absence of a substring match. If the target attribute of the - comparison is Binary, then the operator checks for the absence of a - subsequence of the target that matches the input. If the target - attribute of the comparison is a set (\"`SS`\", \"`NS`\", or - \"`BS`\"), then the operator evaluates to true if it *does not* find - an exact match with any member of the set. +@dataclass(kw_only=True) +class DescribeGlobalTableOutput(_SerdeShape): + """Dataclass for DescribeGlobalTableOutput structure.""" - NOT_CONTAINS is supported for lists: When evaluating - \"`a NOT CONTAINS b`\", \"`a`\" can be a list; however, \"`b`\" cannot - be a set, a map, or a list. + global_table_description: GlobalTableDescription | None = ... + """Contains the details of the global table.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - - `BEGINS_WITH` : Checks for a prefix. +@dataclass(kw_only=True) +class DescribeGlobalTableSettingsInput(_SerdeShape): + """Dataclass for DescribeGlobalTableSettingsInput structure.""" - `AttributeValueList` can contain only one `AttributeValue` of type - String or Binary (not a Number or a set type). The target attribute of - the comparison must be of type String or Binary (not a Number or a set - type). + global_table_name: str | None = ... + """The name of the global table to describe.""" - - `IN` : Checks for matching elements in a list. +class DescribeGlobalTableSettingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeGlobalTableSettingsInput`.""" - `AttributeValueList` can contain one or more `AttributeValue` elements - of type String, Number, or Binary. These attributes are compared - against an existing attribute of an item. If any elements of the input - are equal to the item attribute, the expression evaluates to true. + global_table_name: Required[str] + """The name of the global table to describe.""" - - `BETWEEN` : Greater than or equal to the first value, and less than or - equal to the second value. +@dataclass(kw_only=True) +class DescribeGlobalTableSettingsOutput(_SerdeShape): + """Dataclass for DescribeGlobalTableSettingsOutput structure.""" - `AttributeValueList` must contain two `AttributeValue` elements of the - same type, either String, Number, or Binary (not a set type). A target - attribute matches if the target value is greater than, or equal to, - the first element and less than, or equal to, the second element. If - an item contains an `AttributeValue` element of a different type than - the one provided in the request, the value does not match. For - example, `{"S":"6"}` does not compare to `{"N":"6"}`. Also, - `{"N":"6"}` does not compare to `{"NS":["6", "2", "1"]}` + global_table_name: str | None = ... + """The name of the global table.""" + replica_settings: list[ReplicaSettingsDescription] | None = ... + """The Region-specific settings for the global table.""" + response_metadata: ResponseMetadata = ... """ - attribute_value_list: list[AttributeValue] | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - One or more values to evaluate against the supplied attribute. The - number of values in the list depends on the `ComparisonOperator` being - used. - For type Number, value comparisons are numeric. +@dataclass(kw_only=True) +class DescribeImportInput(_SerdeShape): + """Dataclass for DescribeImportInput structure.""" - String value comparisons for greater than, equals, or less than are - based on ASCII character code values. For example, `a` is greater than - `A`, and `a` is greater than `B`. For a list of code values, see - . + import_arn: str | None = ... + """ + The Amazon Resource Name (ARN) associated with the table you're + importing to. + """ - For Binary, DynamoDB treats each byte of the binary data as unsigned - when it compares binary values. +class DescribeImportInputDict(TypedDict, total=False): + """Dictionary form of `DescribeImportInput`.""" - For information on specifying data types in JSON, see [JSON Data - Format](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) - in the *Amazon DynamoDB Developer Guide*. + import_arn: Required[str] + """ + The Amazon Resource Name (ARN) associated with the table you're + importing to. """ @dataclass(kw_only=True) -class ExportConflictException(ServiceError, _SerdeShape): - """There was a conflict when writing to the specified S3 bucket.""" +class DescribeImportOutput(_SerdeShape): + """Dataclass for DescribeImportOutput structure.""" + import_table_description: ImportTableDescription + """ + Represents the properties of the table created for the import, and + parameters of the import. The import parameters include import status, + how many items were processed, and how many errors were encountered. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3543,98 +4357,75 @@ class ExportConflictException(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ExportDescription(_SerdeShape): - """Represents the properties of the exported table.""" +class DescribeKinesisStreamingDestinationInput(_SerdeShape): + """Dataclass for DescribeKinesisStreamingDestinationInput structure.""" - export_arn: str | None = ... - """The Amazon Resource Name (ARN) of the table export.""" - export_status: str | None = ... - """ - Export can be in one of the following states: IN_PROGRESS, COMPLETED, or - FAILED. + table_name: str | None = ... """ - start_time: datetime | None = ... - """The time at which the export task began.""" - end_time: datetime | None = ... - """The time at which the export task completed.""" - export_manifest: str | None = ... - """The name of the manifest file for the export task.""" - table_arn: str | None = ... - """The Amazon Resource Name (ARN) of the table that was exported.""" - table_id: str | None = ... - """Unique ID of the table that was exported.""" - export_time: datetime | None = ... - """Point in time from which table data was exported.""" - client_token: str | None = ... - """ - The client token that was provided for the export task. A client token - makes calls to `ExportTableToPointInTimeInput` idempotent, meaning that - multiple identical calls have the same effect as one single call. - """ - s3_bucket: str | None = ... - """The name of the Amazon S3 bucket containing the export.""" - s3_bucket_owner: str | None = ... - """ - The ID of the Amazon Web Services account that owns the bucket - containing the export. - """ - s3_prefix: str | None = ... + The name of the table being described. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ - The Amazon S3 bucket prefix used as the file name and path of the - exported snapshot. + +class DescribeKinesisStreamingDestinationInputDict(TypedDict, total=False): + """Dictionary form of `DescribeKinesisStreamingDestinationInput`.""" + + table_name: Required[str] """ - s3_sse_algorithm: str | None = ... + The name of the table being described. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ - Type of encryption used on the bucket where export data is stored. Valid - values for `S3SseAlgorithm` are: - - `AES256` - server-side encryption with Amazon S3 managed keys +@dataclass(kw_only=True) +class DescribeKinesisStreamingDestinationOutput(_SerdeShape): + """Dataclass for DescribeKinesisStreamingDestinationOutput structure.""" - - `KMS` - server-side encryption with KMS managed keys - """ - s3_sse_kms_key_id: str | None = ... + table_name: str | None = ... + """The name of the table being described.""" + kinesis_data_stream_destinations: list[KinesisDataStreamDestination] | None = ... + """The list of replica structures for the table being described.""" + response_metadata: ResponseMetadata = ... """ - The ID of the KMS managed key used to encrypt the S3 bucket where export - data is stored (if applicable). + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - failure_code: str | None = ... - """Status code for the result of the failed export.""" - failure_message: str | None = ... - """Export failure reason description.""" - export_format: str | None = ... + +@dataclass(kw_only=True) +class DescribeLimitsInput(_SerdeShape): + """Represents the input of a `DescribeLimits` operation. Has no content.""" + +class DescribeLimitsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLimitsInput`.""" + +@dataclass(kw_only=True) +class DescribeLimitsOutput(_SerdeShape): + """Represents the output of a `DescribeLimits` operation.""" + + account_max_read_capacity_units: int | None = ... """ - The format of the exported data. Valid values for `ExportFormat` are - `DYNAMODB_JSON` or `ION`. + The maximum total read capacity units that your account allows you to + provision across all of your tables in this Region. """ - billed_size_bytes: int | None = ... - """The billable size of the table export.""" - item_count: int | None = ... - """The number of items exported.""" - export_type: str | None = ... + account_max_write_capacity_units: int | None = ... """ - The type of export that was performed. Valid values are `FULL_EXPORT` or - `INCREMENTAL_EXPORT`. + The maximum total write capacity units that your account allows you to + provision across all of your tables in this Region. """ - incremental_export_specification: IncrementalExportSpecification | None = ... + table_max_read_capacity_units: int | None = ... """ - Optional object containing the parameters specific to an incremental - export. + The maximum read capacity units that your account allows you to + provision for a new table that you are creating in this Region, + including the read capacity units provisioned for its global secondary + indexes (GSIs). """ - filter_specification: FilterSpecification | None = ... + table_max_write_capacity_units: int | None = ... """ - The filter criteria applied to the export. When present, only items that - match the specified key conditions and filter expressions are included - in the export output. + The maximum write capacity units that your account allows you to + provision for a new table that you are creating in this Region, + including the write capacity units provisioned for its global secondary + indexes (GSIs). """ - -class ExportFormat(UnknownEnumMixin, StrEnum): - DYNAMODB_JSON = "DYNAMODB_JSON" - ION = "ION" - -@dataclass(kw_only=True) -class ExportNotFoundException(ServiceError, _SerdeShape): - """The specified export was not found.""" - response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3643,118 +4434,97 @@ class ExportNotFoundException(ServiceError, _SerdeShape): optional. """ -class ExportStatus(UnknownEnumMixin, StrEnum): - IN_PROGRESS = "IN_PROGRESS" - COMPLETED = "COMPLETED" - FAILED = "FAILED" - @dataclass(kw_only=True) -class ExportSummary(_SerdeShape): - """Summary information about an export task.""" +class DescribeTableInput(_SerdeShape): + """Represents the input of a `DescribeTable` operation.""" - export_arn: str | None = ... - """The Amazon Resource Name (ARN) of the export.""" - export_status: str | None = ... + table_name: str | None = ... """ - Export can be in one of the following states: IN_PROGRESS, COMPLETED, or - FAILED. + The name of the table to describe. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ - export_type: str | None = ... + +class DescribeTableInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTableInput`.""" + + table_name: Required[str] """ - The type of export that was performed. Valid values are `FULL_EXPORT` or - `INCREMENTAL_EXPORT`. + The name of the table to describe. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ @dataclass(kw_only=True) -class ExportTableToPointInTimeInput(_SerdeShape): - """Dataclass for ExportTableToPointInTimeInput structure.""" +class DescribeTableOutput(_SerdeShape): + """Represents the output of a `DescribeTable` operation.""" - table_arn: str | None = ... - """The Amazon Resource Name (ARN) associated with the table to export.""" - export_time: datetime | None = ... - """ - Time in the past from which to export table data, counted in seconds - from the start of the Unix epoch. The table export will be a snapshot of - the table's state at this point in time. + table: TableDescription | None = ... + """The properties of the table.""" + response_metadata: ResponseMetadata = ... """ - client_token: str | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Providing a `ClientToken` makes the call to - `ExportTableToPointInTimeInput` idempotent, meaning that multiple - identical calls have the same effect as one single call. - - A client token is valid for 8 hours after the first request that uses it - is completed. After 8 hours, any request with the same client token is - treated as a new request. Do not resubmit the same request with the same - client token for more than 8 hours, or the result might not be - idempotent. - If you submit a request with the same client token but a change in other - parameters within the 8-hour idempotency window, DynamoDB returns an - `ExportConflictException`. +@dataclass(kw_only=True) +class DescribeTableReplicaAutoScalingInput(_SerdeShape): + """Dataclass for DescribeTableReplicaAutoScalingInput structure.""" - This field is autopopulated if not provided. + table_name: str | None = ... """ - s3_bucket: str | None = ... - """The name of the Amazon S3 bucket to export the snapshot to.""" - s3_bucket_owner: str | None = ... + The name of the table. You can also provide the Amazon Resource Name + (ARN) of the table in this parameter. """ - The ID of the Amazon Web Services account that owns the bucket the - export will be stored in. - Note: - S3BucketOwner is a required parameter when exporting to a S3 bucket in - another account. - """ - s3_prefix: str | None = ... - """ - The Amazon S3 bucket prefix to use as the file name and path of the - exported snapshot. +class DescribeTableReplicaAutoScalingInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTableReplicaAutoScalingInput`.""" + + table_name: Required[str] """ - s3_sse_algorithm: str | None = ... + The name of the table. You can also provide the Amazon Resource Name + (ARN) of the table in this parameter. """ - Type of encryption used on the bucket where export data will be stored. - Valid values for `S3SseAlgorithm` are: - - `AES256` - server-side encryption with Amazon S3 managed keys +@dataclass(kw_only=True) +class DescribeTableReplicaAutoScalingOutput(_SerdeShape): + """Dataclass for DescribeTableReplicaAutoScalingOutput structure.""" - - `KMS` - server-side encryption with KMS managed keys - """ - s3_sse_kms_key_id: str | None = ... - """ - The ID of the KMS managed key used to encrypt the S3 bucket where export - data will be stored (if applicable). - """ - export_format: str | None = ... - """ - The format for the exported data. Valid values for `ExportFormat` are - `DYNAMODB_JSON` or `ION`. - """ - export_type: str | None = ... + table_auto_scaling_description: TableAutoScalingDescription | None = ... + """Represents the auto scaling properties of the table.""" + response_metadata: ResponseMetadata = ... """ - Choice of whether to execute as a full export or incremental export. - Valid values are FULL_EXPORT or INCREMENTAL_EXPORT. The default value is - FULL_EXPORT. If INCREMENTAL_EXPORT is provided, the - IncrementalExportSpecification must also be used. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - incremental_export_specification: IncrementalExportSpecification | None = ... + +@dataclass(kw_only=True) +class DescribeTimeToLiveInput(_SerdeShape): + """Dataclass for DescribeTimeToLiveInput structure.""" + + table_name: str | None = ... """ - Optional object containing the parameters specific to an incremental - export. + The name of the table to be described. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ - filter_specification: FilterSpecification | None = ... + +class DescribeTimeToLiveInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTimeToLiveInput`.""" + + table_name: Required[str] """ - The criteria used to filter which items are included in the - point-in-time export. When you specify this parameter, only items that - match the key conditions and filter expressions are exported. + The name of the table to be described. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. """ @dataclass(kw_only=True) -class ExportTableToPointInTimeOutput(_SerdeShape): - """Dataclass for ExportTableToPointInTimeOutput structure.""" +class DescribeTimeToLiveOutput(_SerdeShape): + """Dataclass for DescribeTimeToLiveOutput structure.""" - export_description: ExportDescription | None = ... - """Contains a description of the table export.""" + time_to_live_description: TimeToLiveDescription | None = ... + """""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3763,226 +4533,213 @@ class ExportTableToPointInTimeOutput(_SerdeShape): optional. """ -class ExportType(UnknownEnumMixin, StrEnum): - FULL_EXPORT = "FULL_EXPORT" - INCREMENTAL_EXPORT = "INCREMENTAL_EXPORT" - -class ExportViewType(UnknownEnumMixin, StrEnum): - NEW_IMAGE = "NEW_IMAGE" - NEW_AND_OLD_IMAGES = "NEW_AND_OLD_IMAGES" - -@dataclass(kw_only=True) -class FailureException(_SerdeShape): - """Represents a failure a contributor insights operation.""" - - exception_name: str | None = ... - """Exception name.""" - exception_description: str | None = ... - """Description of the failure.""" +class DestinationStatus(UnknownEnumMixin, StrEnum): + ENABLING = "ENABLING" + ACTIVE = "ACTIVE" + DISABLING = "DISABLING" + DISABLED = "DISABLED" + ENABLE_FAILED = "ENABLE_FAILED" + UPDATING = "UPDATING" @dataclass(kw_only=True) -class FilterSpecification(_SerdeShape): - """ - Contains the filter criteria used to limit which items are included in - an export. If you don't include this parameter, all items and - attributes are exported. - """ +class DisableKinesisStreamingDestinationInput(_SerdeShape): + """Dataclass for DisableKinesisStreamingDestinationInput structure.""" - filter_expression: str | None = ... - """ - A condition that filters which items are included in the export. This - parameter uses the same syntax as `FilterExpression` in `Query` and - `Scan`. If you don't provide `KeyConditionExpression`, this expression - can also reference key attributes. If you don't specify this parameter, - all items are included in the export. - """ - projection_expression: str | None = ... + table_name: str | None = ... """ - The attributes you want to retrieve for items included in the export. - Separate attribute names in the expression with commas. If you don't - specify this parameter, all attributes are returned. + The name of the DynamoDB table. You can also provide the Amazon Resource + Name (ARN) of the table in this parameter. """ - key_condition_expression: str | None = ... + stream_arn: str | None = ... + """The ARN for a Kinesis data stream.""" + enable_kinesis_streaming_configuration: ( + EnableKinesisStreamingConfiguration | None + ) = ... + """The source for the Kinesis streaming information that is being enabled.""" + +class DisableKinesisStreamingDestinationInputDict(TypedDict, total=False): + """Dictionary form of `DisableKinesisStreamingDestinationInput`.""" + + table_name: Required[str] """ - A condition expression that filters items by key values. The expression - must test equality on a single partition key value and can optionally - compare a sort key value. This parameter uses the same syntax as - `KeyConditionExpression` in `Query`. When you provide this parameter, - `FilterExpression` can only reference non-key attributes. If you don't - specify this parameter, all items are eligible for export. + The name of the DynamoDB table. You can also provide the Amazon Resource + Name (ARN) of the table in this parameter. """ - expression_attribute_names: dict[str, str] | None = ... + stream_arn: Required[str] + """The ARN for a Kinesis data stream.""" + enable_kinesis_streaming_configuration: ( + EnableKinesisStreamingConfiguration + | EnableKinesisStreamingConfigurationDict + | None + ) + """The source for the Kinesis streaming information that is being enabled.""" + +@dataclass(kw_only=True) +class DisableKinesisStreamingDestinationOutput(_SerdeShape): + """Dataclass for DisableKinesisStreamingDestinationOutput structure.""" + + table_name: str | None = ... + """The name of the table being modified.""" + stream_arn: str | None = ... + """The ARN for the specific Kinesis data stream.""" + destination_status: str | None = ... + """The current status of the replication.""" + enable_kinesis_streaming_configuration: ( + EnableKinesisStreamingConfiguration | None + ) = ... """ - One or more substitution tokens for attribute names in an expression. - For more information, see [Expression Attribute - Names](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeNames.html) - in the Amazon DynamoDB Developer Guide. + The destination for the Kinesis streaming information that is being + enabled. """ - expression_attribute_values: dict[str, AttributeValue] | None = ... + response_metadata: ResponseMetadata = ... """ - One or more values that can be substituted in an expression. For more - information, see [Expression Attribute - Values](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeValues.html) - in the Amazon DynamoDB Developer Guide. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) -class Get(_SerdeShape): - """ - Specifies an item and related attribute values to retrieve in a - `TransactGetItem` object. +class DisassociateReplicationGroupMemberAction(_SerdeShape): """ + The parameters for disassociating the local replica from a global table + using Version 2019.11.21 with multi-Region eventual consistency (MREC). - key: dict[str, AttributeValue] - """ - A map of attribute names to `AttributeValue` objects that specifies the - primary key of the item to retrieve. - """ - table_name: str - """ - The name of the table from which to retrieve the specified item. You can - also provide the Amazon Resource Name (ARN) of the table in this - parameter. + After disassociation completes, the replica remains a standalone + regional table that keeps its data, indexes, and table settings. + + For request requirements, see + [UpdateTable](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html). + For prerequisites, the protection update, and completion checks, see + [Disassociating a global table + replica](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-disassociate.html) + in the *Amazon DynamoDB Developer Guide*. """ - projection_expression: str | None = ... + + region_name: str """ - A string that identifies one or more attributes of the specified item to - retrieve from the table. The attributes in the expression must be - separated by commas. If no attribute names are specified, then all - attributes of the specified item are returned. If any of the requested - attributes are not found, they do not appear in the result. + The Region of the replica to disassociate. Set this value to the Region + where you send the `UpdateTable` request. You must use credentials for + the account that owns the replica. """ - expression_attribute_names: dict[str, str] | None = ... + disassociation_mode: str """ - One or more substitution tokens for attribute names in the - ProjectionExpression parameter. + The mode for handling pending replication before disassociation + completes. You must specify `WAIT_FOR_REPLICATION`. For more + information, see [Disassociating a global table + replica](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-disassociate.html) + in the *Amazon DynamoDB Developer Guide*. """ -@dataclass(kw_only=True) -class GetItemInput(_SerdeShape): - """Represents the input of a `GetItem` operation.""" +class DisassociateReplicationGroupMemberActionDict(TypedDict, total=False): + """Dictionary form of `DisassociateReplicationGroupMemberAction`.""" - table_name: str | None = ... + region_name: Required[str] """ - The name of the table containing the requested item. You can also - provide the Amazon Resource Name (ARN) of the table in this parameter. + The Region of the replica to disassociate. Set this value to the Region + where you send the `UpdateTable` request. You must use credentials for + the account that owns the replica. """ - key: dict[str, AttributeValue] | None = ... + disassociation_mode: Required[str] + """ + The mode for handling pending replication before disassociation + completes. You must specify `WAIT_FOR_REPLICATION`. For more + information, see [Disassociating a global table + replica](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-disassociate.html) + in the *Amazon DynamoDB Developer Guide*. """ - A map of attribute names to `AttributeValue` objects, representing the - primary key of the item to retrieve. - For the primary key, you must provide all of the attributes. For - example, with a simple primary key, you only need to provide a value for - the partition key. For a composite primary key, you must provide values - for both the partition key and the sort key. +class DisassociationMode(UnknownEnumMixin, StrEnum): """ - attributes_to_get: list[str] | None = ... + Specifies how pending replication is handled before a replica is + disassociated. `WAIT_FOR_REPLICATION` is the only supported value. """ - This is a legacy parameter. Use `ProjectionExpression` instead. For more - information, see - [AttributesToGet](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) - in the *Amazon DynamoDB Developer Guide*. + + WAIT_FOR_REPLICATION = "WAIT_FOR_REPLICATION" + +@dataclass(kw_only=True) +class DuplicateItemException(ServiceError, _SerdeShape): """ - consistent_read: bool | None = ... + There was an attempt to insert an item with the same primary key as an + item that already exists in the DynamoDB table. """ - Determines the read consistency model: If set to `true`, then the - operation uses strongly consistent reads; otherwise, the operation uses - eventually consistent reads. + + response_metadata: ResponseMetadata = ... """ - return_consumed_capacity: str | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Determines the level of detail about either provisioned or on-demand - throughput consumption that is returned in the response: - - - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for - the operation, together with `ConsumedCapacity` for each table and - secondary index that was accessed. - - Note that some operations, such as `GetItem` and `BatchGetItem`, do - not access any indexes at all. In these cases, specifying `INDEXES` - will only return `ConsumedCapacity` information for table(s). - - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` - for the operation. +@dataclass(kw_only=True) +class EnableKinesisStreamingConfiguration(_SerdeShape): + """Enables setting the configuration for Kinesis Streaming.""" - - `NONE` - No `ConsumedCapacity` details are included in the response. + approximate_creation_date_time_precision: str | None = ... """ - projection_expression: str | None = ... + Toggle for the precision of Kinesis data stream timestamp. The values + are either `MILLISECOND` or `MICROSECOND`. """ - A string that identifies one or more attributes to retrieve from the - table. These attributes can include scalars, sets, or elements of a JSON - document. The attributes in the expression must be separated by commas. - If no attribute names are specified, then all attributes are returned. - If any of the requested attributes are not found, they do not appear in - the result. +class EnableKinesisStreamingConfigurationDict(TypedDict, total=False): + """Dictionary form of `EnableKinesisStreamingConfiguration`.""" - For more information, see [Specifying Item - Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - in the *Amazon DynamoDB Developer Guide*. + approximate_creation_date_time_precision: str | None """ - expression_attribute_names: dict[str, str] | None = ... + Toggle for the precision of Kinesis data stream timestamp. The values + are either `MILLISECOND` or `MICROSECOND`. """ - One or more substitution tokens for attribute names in an expression. - The following are some use cases for using `ExpressionAttributeNames`: - - To access an attribute whose name conflicts with a DynamoDB reserved - word. +@dataclass(kw_only=True) +class EnableKinesisStreamingDestinationInput(_SerdeShape): + """Dataclass for EnableKinesisStreamingDestinationInput structure.""" - - To create a placeholder for repeating occurrences of an attribute name - in an expression. + table_name: str | None = ... + """ + The name of the DynamoDB table. You can also provide the Amazon Resource + Name (ARN) of the table in this parameter. + """ + stream_arn: str | None = ... + """The ARN for a Kinesis data stream.""" + enable_kinesis_streaming_configuration: ( + EnableKinesisStreamingConfiguration | None + ) = ... + """The source for the Kinesis streaming information that is being enabled.""" - - To prevent special characters in an attribute name from being - misinterpreted in an expression. +class EnableKinesisStreamingDestinationInputDict(TypedDict, total=False): + """Dictionary form of `EnableKinesisStreamingDestinationInput`.""" - Use the **#** character in an expression to dereference an attribute - name. For example, consider the following attribute name: + table_name: Required[str] + """ + The name of the DynamoDB table. You can also provide the Amazon Resource + Name (ARN) of the table in this parameter. + """ + stream_arn: Required[str] + """The ARN for a Kinesis data stream.""" + enable_kinesis_streaming_configuration: ( + EnableKinesisStreamingConfiguration + | EnableKinesisStreamingConfigurationDict + | None + ) + """The source for the Kinesis streaming information that is being enabled.""" - - `Percentile` +@dataclass(kw_only=True) +class EnableKinesisStreamingDestinationOutput(_SerdeShape): + """Dataclass for EnableKinesisStreamingDestinationOutput structure.""" - The name of this attribute conflicts with a reserved word, so it cannot - be used directly in an expression. (For the complete list of reserved - words, see [Reserved - Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) - in the *Amazon DynamoDB Developer Guide*). To work around this, you - could specify the following for `ExpressionAttributeNames`: - - - `{"#P":"Percentile"}` - - You could then use this substitution in an expression, as in this - example: - - - `#P = :val` - - Note: - Tokens that begin with the **:** character are *expression attribute - values*, which are placeholders for the actual value at runtime. - - For more information on expression attribute names, see [Specifying Item - Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - in the *Amazon DynamoDB Developer Guide*. - """ - -@dataclass(kw_only=True) -class GetItemOutput(_SerdeShape): - """Represents the output of a `GetItem` operation.""" - - item: dict[str, AttributeValue] | None = ... - """ - A map of attribute names to `AttributeValue` objects, as specified by - `ProjectionExpression`. - """ - consumed_capacity: ConsumedCapacity | None = ... + table_name: str | None = ... + """The name of the table being modified.""" + stream_arn: str | None = ... + """The ARN for the specific Kinesis data stream.""" + destination_status: str | None = ... + """The current status of the replication.""" + enable_kinesis_streaming_configuration: ( + EnableKinesisStreamingConfiguration | None + ) = ... """ - The capacity units consumed by the `GetItem` operation. The data - returned includes the total provisioned throughput consumed, along with - statistics for the table and any indexes involved in the operation. - `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` - parameter was specified. For more information, see [Capacity unit - consumption for read - operations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/read-write-operations.html#read-operation-consumption) - in the *Amazon DynamoDB Developer Guide*. + The destination for the Kinesis streaming information that is being + enabled. """ response_metadata: ResponseMetadata = ... """ @@ -3993,336 +4750,234 @@ class GetItemOutput(_SerdeShape): """ @dataclass(kw_only=True) -class GetResourcePolicyInput(_SerdeShape): - """Dataclass for GetResourcePolicyInput structure.""" +class Endpoint(_SerdeShape): + """An endpoint information details.""" - resource_arn: str | None = ... - """ - The Amazon Resource Name (ARN) of the DynamoDB resource to which the - policy is attached. The resources you can specify include tables and - streams. - """ + address: str + """IP address of the endpoint.""" + cache_period_in_minutes: int = ... + """Endpoint cache time to live (TTL) value.""" @dataclass(kw_only=True) -class GetResourcePolicyOutput(_SerdeShape): - """Dataclass for GetResourcePolicyOutput structure.""" +class ExecuteStatementInput(_SerdeShape): + """Dataclass for ExecuteStatementInput structure.""" - policy: str | None = ... - """ - The resource-based policy document attached to the resource, which can - be a table or stream, in JSON format. - """ - revision_id: str | None = ... - """ - A unique string that represents the revision ID of the policy. If - you're comparing revision IDs, make sure to always use string - comparison logic. - """ - response_metadata: ResponseMetadata = ... + statement: str | None = ... + """The PartiQL statement representing the operation to run.""" + parameters: list[AttributeValue] | None = ... + """The parameters for the PartiQL statement, if any.""" + consistent_read: bool | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The consistency of a read operation. If set to `true`, then a strongly + consistent read is used; otherwise, an eventually consistent read is + used. """ - -@dataclass(kw_only=True) -class GlobalSecondaryIndex(_SerdeShape): - """Represents the properties of a global secondary index.""" - - index_name: str + next_token: str | None = ... """ - The name of the global secondary index. The name must be unique among - all other indexes on this table. + Set this value to get remaining results, if `NextToken` was returned in + the statement response. """ - key_schema: list[KeySchemaElement] + return_consumed_capacity: str | None = ... """ - The complete key schema for a global secondary index, which consists of - one or more pairs of attribute names and key types: + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: - - `HASH` - partition key + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. - - `RANGE` - sort key + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). - Note: - The partition key of an item is also known as its *hash attribute*. The - term \"hash attribute\" derives from DynamoDB's usage of an internal - hash function to evenly distribute data items across partitions, based - on their partition key values. + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. - The sort key of an item is also known as its *range attribute*. The term - \"range attribute\" derives from the way DynamoDB stores items with the - same partition key physically close together, in sorted order by the - sort key value. + - `NONE` - No `ConsumedCapacity` details are included in the response. """ - projection: Projection + limit: int | None = ... """ - Represents attributes that are copied (projected) from the table into - the global secondary index. These are in addition to the primary key - attributes and index key attributes, which are automatically projected. + The maximum number of items to evaluate (not necessarily the number of + matching items). If DynamoDB processes the number of items up to the + limit while processing the results, it stops the operation and returns + the matching values up to that point, along with a key in + `LastEvaluatedKey` to apply in a subsequent operation so you can pick up + where you left off. Also, if the processed dataset size exceeds 1 MB + before DynamoDB reaches this limit, it stops the operation and returns + the matching values up to the limit, and a key in `LastEvaluatedKey` to + apply in a subsequent operation to continue the operation. """ - provisioned_throughput: ProvisionedThroughput | None = ... + return_values_on_condition_check_failure: str | None = ... """ - Represents the provisioned throughput settings for the specified global - secondary index. You must use either `OnDemandThroughput` or - `ProvisionedThroughput` based on your table's capacity mode. + An optional parameter that returns the item attributes for an + `ExecuteStatement` operation that failed a condition check. - For current minimum and maximum provisioned throughput values, see - [Service, Account, and Table - Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) - in the *Amazon DynamoDB Developer Guide*. - """ - on_demand_throughput: OnDemandThroughput | None = ... - """ - The maximum number of read and write units for the specified global - secondary index. If you use this parameter, you must specify - `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. You must use - either `OnDemandThroughput` or `ProvisionedThroughput` based on your - table's capacity mode. - """ - warm_throughput: WarmThroughput | None = ... - """ - Represents the warm throughput value (in read units per second and write - units per second) for the specified secondary index. If you use this - parameter, you must specify `ReadUnitsPerSecond`, `WriteUnitsPerSecond`, - or both. + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. """ -@dataclass(kw_only=True) -class GlobalSecondaryIndexAutoScalingUpdate(_SerdeShape): +class ExecuteStatementInputDict(TypedDict, total=False): + """Dictionary form of `ExecuteStatementInput`.""" + + statement: Required[str] + """The PartiQL statement representing the operation to run.""" + parameters: Sequence[AttributeValue | AttributeValueDict] | None + """The parameters for the PartiQL statement, if any.""" + consistent_read: bool | None """ - Represents the auto scaling settings of a global secondary index for a - global table that will be modified. + The consistency of a read operation. If set to `true`, then a strongly + consistent read is used; otherwise, an eventually consistent read is + used. """ - - index_name: str | None = ... - """The name of the global secondary index.""" - provisioned_write_capacity_auto_scaling_update: ( - AutoScalingSettingsUpdate | None - ) = ... + next_token: str | None """ - Represents the auto scaling settings to be modified for a global table - or global secondary index. + Set this value to get remaining results, if `NextToken` was returned in + the statement response. """ - -@dataclass(kw_only=True) -class GlobalSecondaryIndexDescription(_SerdeShape): - """Represents the properties of a global secondary index.""" - - index_name: str | None = ... - """The name of the global secondary index.""" - key_schema: list[KeySchemaElement] | None = ... + return_consumed_capacity: str | None """ - The complete key schema for a global secondary index, which consists of - one or more pairs of attribute names and key types: + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: - - `HASH` - partition key + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. - - `RANGE` - sort key + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). - Note: - The partition key of an item is also known as its *hash attribute*. The - term \"hash attribute\" derives from DynamoDB's usage of an internal - hash function to evenly distribute data items across partitions, based - on their partition key values. + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. - The sort key of an item is also known as its *range attribute*. The term - \"range attribute\" derives from the way DynamoDB stores items with the - same partition key physically close together, in sorted order by the - sort key value. + - `NONE` - No `ConsumedCapacity` details are included in the response. """ - projection: Projection | None = ... + limit: int | None """ - Represents attributes that are copied (projected) from the table into - the global secondary index. These are in addition to the primary key - attributes and index key attributes, which are automatically projected. + The maximum number of items to evaluate (not necessarily the number of + matching items). If DynamoDB processes the number of items up to the + limit while processing the results, it stops the operation and returns + the matching values up to that point, along with a key in + `LastEvaluatedKey` to apply in a subsequent operation so you can pick up + where you left off. Also, if the processed dataset size exceeds 1 MB + before DynamoDB reaches this limit, it stops the operation and returns + the matching values up to the limit, and a key in `LastEvaluatedKey` to + apply in a subsequent operation to continue the operation. """ - index_status: str | None = ... + return_values_on_condition_check_failure: str | None """ - The current state of the global secondary index: - - - `CREATING` - The index is being created. + An optional parameter that returns the item attributes for an + `ExecuteStatement` operation that failed a condition check. - - `UPDATING` - The index is being updated. + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. + """ - - `DELETING` - The index is being deleted. +@dataclass(kw_only=True) +class ExecuteStatementOutput(_SerdeShape): + """Dataclass for ExecuteStatementOutput structure.""" - - `ACTIVE` - The index is ready for use. + items: list[dict[str, AttributeValue]] | None = ... """ - backfilling: bool | None = ... + If a read operation was used, this property will contain the result of + the read operation; a map of attribute names and their values. For the + write operations this value will be empty. """ - Indicates whether the index is currently backfilling. *Backfilling* is - the process of reading items from the table and determining whether they - can be added to the index. (Not all items will qualify: For example, a - partition key cannot have any duplicate values.) If an item can be added - to the index, DynamoDB will do so. After all items have been processed, - the backfilling operation is complete and `Backfilling` is false. - - You can delete an index that is being created during the `Backfilling` - phase when `IndexStatus` is set to CREATING and `Backfilling` is true. - You can't delete the index that is being created when `IndexStatus` is - set to CREATING and `Backfilling` is false. - - Note: - For indexes that were created during a `CreateTable` operation, the - `Backfilling` attribute does not appear in the `DescribeTable` output. - """ - provisioned_throughput: ProvisionedThroughputDescription | None = ... - """ - Represents the provisioned throughput settings for the specified global - secondary index. - - For current minimum and maximum provisioned throughput values, see - [Service, Account, and Table - Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) - in the *Amazon DynamoDB Developer Guide*. - """ - index_size_bytes: int | None = ... + next_token: str | None = ... """ - The total size of the specified index, in bytes. DynamoDB updates this - value approximately every six hours. Recent changes might not be - reflected in this value. + If the response of a read request exceeds the response payload limit + DynamoDB will set this value in the response. If set, you can use that + this value in the subsequent request to get the remaining results. """ - item_count: int | None = ... + consumed_capacity: ConsumedCapacity | None = ... """ - The number of items in the specified index. DynamoDB updates this value - approximately every six hours. Recent changes might not be reflected in - this value. + The capacity units consumed by an operation. The data returned includes + the total provisioned throughput consumed, along with statistics for the + table and any indexes involved in the operation. `ConsumedCapacity` is + only returned if the request asked for it. For more information, see + [Provisioned capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html) + in the *Amazon DynamoDB Developer Guide*. """ - index_arn: str | None = ... - """The Amazon Resource Name (ARN) that uniquely identifies the index.""" - on_demand_throughput: OnDemandThroughput | None = ... + last_evaluated_key: dict[str, AttributeValue] | None = ... """ - The maximum number of read and write units for the specified global - secondary index. If you use this parameter, you must specify - `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + The primary key of the item where the operation stopped, inclusive of + the previous result set. Use this value to start a new operation, + excluding this value in the new request. If `LastEvaluatedKey` is empty, + then the \"last page\" of results has been processed and there is no + more data to be retrieved. If `LastEvaluatedKey` is not empty, it does + not necessarily mean that there is more data in the result set. The only + way to know when you have reached the end of the result set is when + `LastEvaluatedKey` is empty. """ - warm_throughput: GlobalSecondaryIndexWarmThroughputDescription | None = ... + response_metadata: ResponseMetadata = ... """ - Represents the warm throughput value (in read units per second and write - units per second) for the specified secondary index. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) -class GlobalSecondaryIndexInfo(_SerdeShape): - """ - Represents the properties of a global secondary index for the table when - the backup was created. - """ +class ExecuteTransactionInput(_SerdeShape): + """Dataclass for ExecuteTransactionInput structure.""" - index_name: str | None = ... - """The name of the global secondary index.""" - key_schema: list[KeySchemaElement] | None = ... + transact_statements: list[ParameterizedStatement] | None = ... + """The list of PartiQL statements representing the transaction to run.""" + client_request_token: str | None = ... """ - The complete key schema for a global secondary index, which consists of - one or more pairs of attribute names and key types: - - - `HASH` - partition key - - - `RANGE` - sort key - - Note: - The partition key of an item is also known as its *hash attribute*. The - term \"hash attribute\" derives from DynamoDB's usage of an internal - hash function to evenly distribute data items across partitions, based - on their partition key values. + Set this value to get remaining results, if `NextToken` was returned in + the statement response. - The sort key of an item is also known as its *range attribute*. The term - \"range attribute\" derives from the way DynamoDB stores items with the - same partition key physically close together, in sorted order by the - sort key value. - """ - projection: Projection | None = ... - """ - Represents attributes that are copied (projected) from the table into - the global secondary index. These are in addition to the primary key - attributes and index key attributes, which are automatically projected. - """ - provisioned_throughput: ProvisionedThroughput | None = ... - """ - Represents the provisioned throughput settings for the specified global - secondary index. - """ - on_demand_throughput: OnDemandThroughput | None = ... + This field is autopopulated if not provided. """ - Sets the maximum number of read and write units for the specified - on-demand table. If you use this parameter, you must specify - `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + return_consumed_capacity: str | None = ... """ - -@dataclass(kw_only=True) -class GlobalSecondaryIndexUpdate(_SerdeShape): + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response. For more + information, see + [TransactGetItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html) + and + [TransactWriteItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html). """ - Represents one of the following: - - - A new global secondary index to be added to an existing table. - - New provisioned throughput parameters for an existing global secondary - index. +class ExecuteTransactionInputDict(TypedDict, total=False): + """Dictionary form of `ExecuteTransactionInput`.""" - - An existing global secondary index to be removed from an existing - table. + transact_statements: Required[ + Sequence[ParameterizedStatement | ParameterizedStatementDict] + ] + """The list of PartiQL statements representing the transaction to run.""" + client_request_token: str | None """ + Set this value to get remaining results, if `NextToken` was returned in + the statement response. - update: UpdateGlobalSecondaryIndexAction | None = ... - """ - The name of an existing global secondary index, along with new - provisioned throughput settings to be applied to that index. + This field is autopopulated if not provided. """ - create: CreateGlobalSecondaryIndexAction | None = ... + return_consumed_capacity: str | None """ - The parameters required for creating a global secondary index on an - existing table: - - - `IndexName ` - - - `KeySchema ` - - - `AttributeDefinitions ` - - - `Projection ` - - - `ProvisionedThroughput ` + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response. For more + information, see + [TransactGetItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html) + and + [TransactWriteItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html). """ - delete: DeleteGlobalSecondaryIndexAction | None = ... - """The name of an existing global secondary index to be removed.""" @dataclass(kw_only=True) -class GlobalSecondaryIndexWarmThroughputDescription(_SerdeShape): - """ - The description of the warm throughput value on a global secondary - index. - """ +class ExecuteTransactionOutput(_SerdeShape): + """Dataclass for ExecuteTransactionOutput structure.""" - read_units_per_second: int | None = ... - """ - Represents warm throughput read units per second value for a global - secondary index. - """ - write_units_per_second: int | None = ... - """ - Represents warm throughput write units per second value for a global - secondary index. - """ - status: str | None = ... + responses: list[ItemResponse] | None = ... + """The response to a PartiQL transaction.""" + consumed_capacity: list[ConsumedCapacity] | None = ... """ - Represents the warm throughput status being created or updated on a - global secondary index. The status can only be `UPDATING` or `ACTIVE`. + The capacity units consumed by the entire operation. The values of the + list are ordered according to the ordering of the statements. """ - -@dataclass(kw_only=True) -class GlobalTable(_SerdeShape): - """Represents the properties of a global table.""" - - global_table_name: str | None = ... - """The global table name.""" - replication_group: list[Replica] | None = ... - """The Regions where the global table has replicas.""" - -@dataclass(kw_only=True) -class GlobalTableAlreadyExistsException(ServiceError, _SerdeShape): - """The specified global table already exists.""" - response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -4332,59 +4987,2809 @@ class GlobalTableAlreadyExistsException(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class GlobalTableDescription(_SerdeShape): - """Contains details about the global table.""" - - replication_group: list[ReplicaDescription] | None = ... - """The Regions where the global table has replicas.""" - global_table_arn: str | None = ... - """The unique identifier of the global table.""" - creation_date_time: datetime | None = ... - """The creation time of the global table.""" - global_table_status: str | None = ... +class ExpectedAttributeValue(_SerdeShape): """ - The current state of the global table: - - - `CREATING` - The global table is being created. + Represents a condition to be compared with an attribute value. This + condition can be used with `DeleteItem`, `PutItem`, or `UpdateItem` + operations; if the comparison evaluates to true, the operation succeeds; + if not, the operation fails. You can use `ExpectedAttributeValue` in one + of two different ways: - - `UPDATING` - The global table is being updated. + - Use `AttributeValueList` to specify one or more values to compare + against an attribute. Use `ComparisonOperator` to specify how you want + to perform the comparison. If the comparison evaluates to true, then + the conditional operation succeeds. - - `DELETING` - The global table is being deleted. + - Use `Value` to specify a value that DynamoDB will compare against an + attribute. If the values match, then `ExpectedAttributeValue` + evaluates to true and the conditional operation succeeds. Optionally, + you can also set `Exists` to false, indicating that you *do not* + expect to find the attribute value in the table. In this case, the + conditional operation succeeds only if the comparison evaluates to + false. - - `ACTIVE` - The global table is ready for use. + `Value` and `Exists` are incompatible with `AttributeValueList` and + `ComparisonOperator`. Note that if you use both sets of parameters at + once, DynamoDB will return a `ValidationException` exception. """ - global_table_name: str | None = ... - """The global table name.""" -@dataclass(kw_only=True) -class GlobalTableGlobalSecondaryIndexSettingsUpdate(_SerdeShape): - """ - Represents the settings of a global secondary index for a global table - that will be modified. + value: AttributeValue | None = ... """ + Represents the data for the expected attribute. - index_name: str + Each attribute value is described as a name-value pair. The name is the + data type, and the value is the data itself. + + For more information, see [Data + Types](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) + in the *Amazon DynamoDB Developer Guide*. """ - The name of the global secondary index. The name must be unique among - all other indexes on this table. + exists: bool | None = ... + """ + Causes DynamoDB to evaluate the value before attempting a conditional + operation: + + - If `Exists` is `true`, DynamoDB will check to see if that attribute + value already exists in the table. If it is found, then the operation + succeeds. If it is not found, the operation fails with a + `ConditionCheckFailedException`. + + - If `Exists` is `false`, DynamoDB assumes that the attribute value does + not exist in the table. If in fact the value does not exist, then the + assumption is valid and the operation succeeds. If the value is found, + despite the assumption that it does not exist, the operation fails + with a `ConditionCheckFailedException`. + + The default setting for `Exists` is `true`. If you supply a `Value` all + by itself, DynamoDB assumes the attribute exists: You don't have to set + `Exists` to `true`, because it is implied. + + DynamoDB returns a `ValidationException` if: + + - `Exists` is `true` but there is no `Value` to check. (You expect a + value to exist, but don't specify what that value is.) + + - `Exists` is `false` but you also provide a `Value`. (You cannot expect + an attribute to have a value, while also expecting it not to exist.) + """ + comparison_operator: str | None = ... + """ + A comparator for evaluating attributes in the `AttributeValueList`. For + example, equals, greater than, less than, etc. + + The following comparison operators are available: + + `EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN` + + The following are descriptions of each comparison operator. + + - `EQ` : Equal. `EQ` is supported for all data types, including lists + and maps. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, Binary, String Set, Number Set, or Binary Set. If + an item contains an `AttributeValue` element of a different type than + the one provided in the request, the value does not match. For + example, `{"S":"6"}` does not equal `{"N":"6"}`. Also, `{"N":"6"}` + does not equal `{"NS":["6", "2", "1"]}`. + + - `NE` : Not equal. `NE` is supported for all data types, including + lists and maps. + + `AttributeValueList` can contain only one `AttributeValue` of type + String, Number, Binary, String Set, Number Set, or Binary Set. If an + item contains an `AttributeValue` of a different type than the one + provided in the request, the value does not match. For example, + `{"S":"6"}` does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not + equal `{"NS":["6", "2", "1"]}`. + + - `LE` : Less than or equal. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `LT` : Less than. + + `AttributeValueList` can contain only one `AttributeValue` of type + String, Number, or Binary (not a set type). If an item contains an + `AttributeValue` element of a different type than the one provided in + the request, the value does not match. For example, `{"S":"6"}` does + not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `GE` : Greater than or equal. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `GT` : Greater than. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `NOT_NULL` : The attribute exists. `NOT_NULL` is supported for all + data types, including lists and maps. + + Note: + This operator tests for the existence of an attribute, not its data + type. If the data type of attribute \"`a`\" is null, and you evaluate + it using `NOT_NULL`, the result is a Boolean `true`. This result is + because the attribute \"`a`\" exists; its data type is not relevant to + the `NOT_NULL` comparison operator. + + - `NULL` : The attribute does not exist. `NULL` is supported for all + data types, including lists and maps. + + Note: + This operator tests for the nonexistence of an attribute, not its data + type. If the data type of attribute \"`a`\" is null, and you evaluate + it using `NULL`, the result is a Boolean `false`. This is because the + attribute \"`a`\" exists; its data type is not relevant to the `NULL` + comparison operator. + + - `CONTAINS` : Checks for a subsequence, or value in a set. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If the target + attribute of the comparison is of type String, then the operator + checks for a substring match. If the target attribute of the + comparison is of type Binary, then the operator looks for a + subsequence of the target that matches the input. If the target + attribute of the comparison is a set (\"`SS`\", \"`NS`\", or + \"`BS`\"), then the operator evaluates to true if it finds an exact + match with any member of the set. + + CONTAINS is supported for lists: When evaluating \"`a CONTAINS b`\", + \"`a`\" can be a list; however, \"`b`\" cannot be a set, a map, or a + list. + + - `NOT_CONTAINS` : Checks for absence of a subsequence, or absence of a + value in a set. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If the target + attribute of the comparison is a String, then the operator checks for + the absence of a substring match. If the target attribute of the + comparison is Binary, then the operator checks for the absence of a + subsequence of the target that matches the input. If the target + attribute of the comparison is a set (\"`SS`\", \"`NS`\", or + \"`BS`\"), then the operator evaluates to true if it *does not* find + an exact match with any member of the set. + + NOT_CONTAINS is supported for lists: When evaluating + \"`a NOT CONTAINS b`\", \"`a`\" can be a list; however, \"`b`\" cannot + be a set, a map, or a list. + + - `BEGINS_WITH` : Checks for a prefix. + + `AttributeValueList` can contain only one `AttributeValue` of type + String or Binary (not a Number or a set type). The target attribute of + the comparison must be of type String or Binary (not a Number or a set + type). + + - `IN` : Checks for matching elements in a list. + + `AttributeValueList` can contain one or more `AttributeValue` elements + of type String, Number, or Binary. These attributes are compared + against an existing attribute of an item. If any elements of the input + are equal to the item attribute, the expression evaluates to true. + + - `BETWEEN` : Greater than or equal to the first value, and less than or + equal to the second value. + + `AttributeValueList` must contain two `AttributeValue` elements of the + same type, either String, Number, or Binary (not a set type). A target + attribute matches if the target value is greater than, or equal to, + the first element and less than, or equal to, the second element. If + an item contains an `AttributeValue` element of a different type than + the one provided in the request, the value does not match. For + example, `{"S":"6"}` does not compare to `{"N":"6"}`. Also, + `{"N":"6"}` does not compare to `{"NS":["6", "2", "1"]}` + """ + attribute_value_list: list[AttributeValue] | None = ... + """ + One or more values to evaluate against the supplied attribute. The + number of values in the list depends on the `ComparisonOperator` being + used. + + For type Number, value comparisons are numeric. + + String value comparisons for greater than, equals, or less than are + based on ASCII character code values. For example, `a` is greater than + `A`, and `a` is greater than `B`. For a list of code values, see + . + + For Binary, DynamoDB treats each byte of the binary data as unsigned + when it compares binary values. + + For information on specifying data types in JSON, see [JSON Data + Format](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +class ExpectedAttributeValueDict(TypedDict, total=False): + """Dictionary form of `ExpectedAttributeValue`.""" + + value: AttributeValue | AttributeValueDict | None + """ + Represents the data for the expected attribute. + + Each attribute value is described as a name-value pair. The name is the + data type, and the value is the data itself. + + For more information, see [Data + Types](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes) + in the *Amazon DynamoDB Developer Guide*. + """ + exists: bool | None + """ + Causes DynamoDB to evaluate the value before attempting a conditional + operation: + + - If `Exists` is `true`, DynamoDB will check to see if that attribute + value already exists in the table. If it is found, then the operation + succeeds. If it is not found, the operation fails with a + `ConditionCheckFailedException`. + + - If `Exists` is `false`, DynamoDB assumes that the attribute value does + not exist in the table. If in fact the value does not exist, then the + assumption is valid and the operation succeeds. If the value is found, + despite the assumption that it does not exist, the operation fails + with a `ConditionCheckFailedException`. + + The default setting for `Exists` is `true`. If you supply a `Value` all + by itself, DynamoDB assumes the attribute exists: You don't have to set + `Exists` to `true`, because it is implied. + + DynamoDB returns a `ValidationException` if: + + - `Exists` is `true` but there is no `Value` to check. (You expect a + value to exist, but don't specify what that value is.) + + - `Exists` is `false` but you also provide a `Value`. (You cannot expect + an attribute to have a value, while also expecting it not to exist.) + """ + comparison_operator: str | None + """ + A comparator for evaluating attributes in the `AttributeValueList`. For + example, equals, greater than, less than, etc. + + The following comparison operators are available: + + `EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN` + + The following are descriptions of each comparison operator. + + - `EQ` : Equal. `EQ` is supported for all data types, including lists + and maps. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, Binary, String Set, Number Set, or Binary Set. If + an item contains an `AttributeValue` element of a different type than + the one provided in the request, the value does not match. For + example, `{"S":"6"}` does not equal `{"N":"6"}`. Also, `{"N":"6"}` + does not equal `{"NS":["6", "2", "1"]}`. + + - `NE` : Not equal. `NE` is supported for all data types, including + lists and maps. + + `AttributeValueList` can contain only one `AttributeValue` of type + String, Number, Binary, String Set, Number Set, or Binary Set. If an + item contains an `AttributeValue` of a different type than the one + provided in the request, the value does not match. For example, + `{"S":"6"}` does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not + equal `{"NS":["6", "2", "1"]}`. + + - `LE` : Less than or equal. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `LT` : Less than. + + `AttributeValueList` can contain only one `AttributeValue` of type + String, Number, or Binary (not a set type). If an item contains an + `AttributeValue` element of a different type than the one provided in + the request, the value does not match. For example, `{"S":"6"}` does + not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `GE` : Greater than or equal. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `GT` : Greater than. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If an item contains + an `AttributeValue` element of a different type than the one provided + in the request, the value does not match. For example, `{"S":"6"}` + does not equal `{"N":"6"}`. Also, `{"N":"6"}` does not compare to + `{"NS":["6", "2", "1"]}`. + + - `NOT_NULL` : The attribute exists. `NOT_NULL` is supported for all + data types, including lists and maps. + + Note: + This operator tests for the existence of an attribute, not its data + type. If the data type of attribute \"`a`\" is null, and you evaluate + it using `NOT_NULL`, the result is a Boolean `true`. This result is + because the attribute \"`a`\" exists; its data type is not relevant to + the `NOT_NULL` comparison operator. + + - `NULL` : The attribute does not exist. `NULL` is supported for all + data types, including lists and maps. + + Note: + This operator tests for the nonexistence of an attribute, not its data + type. If the data type of attribute \"`a`\" is null, and you evaluate + it using `NULL`, the result is a Boolean `false`. This is because the + attribute \"`a`\" exists; its data type is not relevant to the `NULL` + comparison operator. + + - `CONTAINS` : Checks for a subsequence, or value in a set. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If the target + attribute of the comparison is of type String, then the operator + checks for a substring match. If the target attribute of the + comparison is of type Binary, then the operator looks for a + subsequence of the target that matches the input. If the target + attribute of the comparison is a set (\"`SS`\", \"`NS`\", or + \"`BS`\"), then the operator evaluates to true if it finds an exact + match with any member of the set. + + CONTAINS is supported for lists: When evaluating \"`a CONTAINS b`\", + \"`a`\" can be a list; however, \"`b`\" cannot be a set, a map, or a + list. + + - `NOT_CONTAINS` : Checks for absence of a subsequence, or absence of a + value in a set. + + `AttributeValueList` can contain only one `AttributeValue` element of + type String, Number, or Binary (not a set type). If the target + attribute of the comparison is a String, then the operator checks for + the absence of a substring match. If the target attribute of the + comparison is Binary, then the operator checks for the absence of a + subsequence of the target that matches the input. If the target + attribute of the comparison is a set (\"`SS`\", \"`NS`\", or + \"`BS`\"), then the operator evaluates to true if it *does not* find + an exact match with any member of the set. + + NOT_CONTAINS is supported for lists: When evaluating + \"`a NOT CONTAINS b`\", \"`a`\" can be a list; however, \"`b`\" cannot + be a set, a map, or a list. + + - `BEGINS_WITH` : Checks for a prefix. + + `AttributeValueList` can contain only one `AttributeValue` of type + String or Binary (not a Number or a set type). The target attribute of + the comparison must be of type String or Binary (not a Number or a set + type). + + - `IN` : Checks for matching elements in a list. + + `AttributeValueList` can contain one or more `AttributeValue` elements + of type String, Number, or Binary. These attributes are compared + against an existing attribute of an item. If any elements of the input + are equal to the item attribute, the expression evaluates to true. + + - `BETWEEN` : Greater than or equal to the first value, and less than or + equal to the second value. + + `AttributeValueList` must contain two `AttributeValue` elements of the + same type, either String, Number, or Binary (not a set type). A target + attribute matches if the target value is greater than, or equal to, + the first element and less than, or equal to, the second element. If + an item contains an `AttributeValue` element of a different type than + the one provided in the request, the value does not match. For + example, `{"S":"6"}` does not compare to `{"N":"6"}`. Also, + `{"N":"6"}` does not compare to `{"NS":["6", "2", "1"]}` + """ + attribute_value_list: Sequence[AttributeValue | AttributeValueDict] | None + """ + One or more values to evaluate against the supplied attribute. The + number of values in the list depends on the `ComparisonOperator` being + used. + + For type Number, value comparisons are numeric. + + String value comparisons for greater than, equals, or less than are + based on ASCII character code values. For example, `a` is greater than + `A`, and `a` is greater than `B`. For a list of code values, see + . + + For Binary, DynamoDB treats each byte of the binary data as unsigned + when it compares binary values. + + For information on specifying data types in JSON, see [JSON Data + Format](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +@dataclass(kw_only=True) +class ExportConflictException(ServiceError, _SerdeShape): + """There was a conflict when writing to the specified S3 bucket.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ExportDescription(_SerdeShape): + """Represents the properties of the exported table.""" + + export_arn: str | None = ... + """The Amazon Resource Name (ARN) of the table export.""" + export_status: str | None = ... + """ + Export can be in one of the following states: IN_PROGRESS, COMPLETED, or + FAILED. + """ + start_time: datetime | None = ... + """The time at which the export task began.""" + end_time: datetime | None = ... + """The time at which the export task completed.""" + export_manifest: str | None = ... + """The name of the manifest file for the export task.""" + table_arn: str | None = ... + """The Amazon Resource Name (ARN) of the table that was exported.""" + table_id: str | None = ... + """Unique ID of the table that was exported.""" + export_time: datetime | None = ... + """Point in time from which table data was exported.""" + client_token: str | None = ... + """ + The client token that was provided for the export task. A client token + makes calls to `ExportTableToPointInTimeInput` idempotent, meaning that + multiple identical calls have the same effect as one single call. + """ + s3_bucket: str | None = ... + """The name of the Amazon S3 bucket containing the export.""" + s3_bucket_owner: str | None = ... + """ + The ID of the Amazon Web Services account that owns the bucket + containing the export. + """ + s3_prefix: str | None = ... + """ + The Amazon S3 bucket prefix used as the file name and path of the + exported snapshot. + """ + s3_sse_algorithm: str | None = ... + """ + Type of encryption used on the bucket where export data is stored. Valid + values for `S3SseAlgorithm` are: + + - `AES256` - server-side encryption with Amazon S3 managed keys + + - `KMS` - server-side encryption with KMS managed keys + """ + s3_sse_kms_key_id: str | None = ... + """ + The ID of the KMS managed key used to encrypt the S3 bucket where export + data is stored (if applicable). + """ + failure_code: str | None = ... + """Status code for the result of the failed export.""" + failure_message: str | None = ... + """Export failure reason description.""" + export_format: str | None = ... + """ + The format of the exported data. Valid values for `ExportFormat` are + `DYNAMODB_JSON` or `ION`. + """ + billed_size_bytes: int | None = ... + """The billable size of the table export.""" + item_count: int | None = ... + """The number of items exported.""" + export_type: str | None = ... + """ + The type of export that was performed. Valid values are `FULL_EXPORT` or + `INCREMENTAL_EXPORT`. + """ + incremental_export_specification: IncrementalExportSpecification | None = ... + """ + Optional object containing the parameters specific to an incremental + export. + """ + filter_specification: FilterSpecification | None = ... + """ + The filter criteria applied to the export. When present, only items that + match the specified key conditions and filter expressions are included + in the export output. + """ + +class ExportFormat(UnknownEnumMixin, StrEnum): + DYNAMODB_JSON = "DYNAMODB_JSON" + ION = "ION" + +@dataclass(kw_only=True) +class ExportNotFoundException(ServiceError, _SerdeShape): + """The specified export was not found.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class ExportStatus(UnknownEnumMixin, StrEnum): + IN_PROGRESS = "IN_PROGRESS" + COMPLETED = "COMPLETED" + FAILED = "FAILED" + +@dataclass(kw_only=True) +class ExportSummary(_SerdeShape): + """Summary information about an export task.""" + + export_arn: str | None = ... + """The Amazon Resource Name (ARN) of the export.""" + export_status: str | None = ... + """ + Export can be in one of the following states: IN_PROGRESS, COMPLETED, or + FAILED. + """ + export_type: str | None = ... + """ + The type of export that was performed. Valid values are `FULL_EXPORT` or + `INCREMENTAL_EXPORT`. + """ + +@dataclass(kw_only=True) +class ExportTableToPointInTimeInput(_SerdeShape): + """Dataclass for ExportTableToPointInTimeInput structure.""" + + table_arn: str | None = ... + """The Amazon Resource Name (ARN) associated with the table to export.""" + export_time: datetime | None = ... + """ + Time in the past from which to export table data, counted in seconds + from the start of the Unix epoch. The table export will be a snapshot of + the table's state at this point in time. + """ + client_token: str | None = ... + """ + Providing a `ClientToken` makes the call to + `ExportTableToPointInTimeInput` idempotent, meaning that multiple + identical calls have the same effect as one single call. + + A client token is valid for 8 hours after the first request that uses it + is completed. After 8 hours, any request with the same client token is + treated as a new request. Do not resubmit the same request with the same + client token for more than 8 hours, or the result might not be + idempotent. + + If you submit a request with the same client token but a change in other + parameters within the 8-hour idempotency window, DynamoDB returns an + `ExportConflictException`. + + This field is autopopulated if not provided. + """ + s3_bucket: str | None = ... + """The name of the Amazon S3 bucket to export the snapshot to.""" + s3_bucket_owner: str | None = ... + """ + The ID of the Amazon Web Services account that owns the bucket the + export will be stored in. + + Note: + S3BucketOwner is a required parameter when exporting to a S3 bucket in + another account. + """ + s3_prefix: str | None = ... + """ + The Amazon S3 bucket prefix to use as the file name and path of the + exported snapshot. + """ + s3_sse_algorithm: str | None = ... + """ + Type of encryption used on the bucket where export data will be stored. + Valid values for `S3SseAlgorithm` are: + + - `AES256` - server-side encryption with Amazon S3 managed keys + + - `KMS` - server-side encryption with KMS managed keys + """ + s3_sse_kms_key_id: str | None = ... + """ + The ID of the KMS managed key used to encrypt the S3 bucket where export + data will be stored (if applicable). + """ + export_format: str | None = ... + """ + The format for the exported data. Valid values for `ExportFormat` are + `DYNAMODB_JSON` or `ION`. + """ + export_type: str | None = ... + """ + Choice of whether to execute as a full export or incremental export. + Valid values are FULL_EXPORT or INCREMENTAL_EXPORT. The default value is + FULL_EXPORT. If INCREMENTAL_EXPORT is provided, the + IncrementalExportSpecification must also be used. + """ + incremental_export_specification: IncrementalExportSpecification | None = ... + """ + Optional object containing the parameters specific to an incremental + export. + """ + filter_specification: FilterSpecification | None = ... + """ + The criteria used to filter which items are included in the + point-in-time export. When you specify this parameter, only items that + match the key conditions and filter expressions are exported. + """ + +class ExportTableToPointInTimeInputDict(TypedDict, total=False): + """Dictionary form of `ExportTableToPointInTimeInput`.""" + + table_arn: Required[str] + """The Amazon Resource Name (ARN) associated with the table to export.""" + export_time: datetime | None + """ + Time in the past from which to export table data, counted in seconds + from the start of the Unix epoch. The table export will be a snapshot of + the table's state at this point in time. + """ + client_token: str | None + """ + Providing a `ClientToken` makes the call to + `ExportTableToPointInTimeInput` idempotent, meaning that multiple + identical calls have the same effect as one single call. + + A client token is valid for 8 hours after the first request that uses it + is completed. After 8 hours, any request with the same client token is + treated as a new request. Do not resubmit the same request with the same + client token for more than 8 hours, or the result might not be + idempotent. + + If you submit a request with the same client token but a change in other + parameters within the 8-hour idempotency window, DynamoDB returns an + `ExportConflictException`. + + This field is autopopulated if not provided. + """ + s3_bucket: Required[str] + """The name of the Amazon S3 bucket to export the snapshot to.""" + s3_bucket_owner: str | None + """ + The ID of the Amazon Web Services account that owns the bucket the + export will be stored in. + + Note: + S3BucketOwner is a required parameter when exporting to a S3 bucket in + another account. + """ + s3_prefix: str | None + """ + The Amazon S3 bucket prefix to use as the file name and path of the + exported snapshot. + """ + s3_sse_algorithm: str | None + """ + Type of encryption used on the bucket where export data will be stored. + Valid values for `S3SseAlgorithm` are: + + - `AES256` - server-side encryption with Amazon S3 managed keys + + - `KMS` - server-side encryption with KMS managed keys + """ + s3_sse_kms_key_id: str | None + """ + The ID of the KMS managed key used to encrypt the S3 bucket where export + data will be stored (if applicable). + """ + export_format: str | None + """ + The format for the exported data. Valid values for `ExportFormat` are + `DYNAMODB_JSON` or `ION`. + """ + export_type: str | None + """ + Choice of whether to execute as a full export or incremental export. + Valid values are FULL_EXPORT or INCREMENTAL_EXPORT. The default value is + FULL_EXPORT. If INCREMENTAL_EXPORT is provided, the + IncrementalExportSpecification must also be used. + """ + incremental_export_specification: ( + IncrementalExportSpecification | IncrementalExportSpecificationDict | None + ) + """ + Optional object containing the parameters specific to an incremental + export. + """ + filter_specification: FilterSpecification | FilterSpecificationDict | None + """ + The criteria used to filter which items are included in the + point-in-time export. When you specify this parameter, only items that + match the key conditions and filter expressions are exported. + """ + +@dataclass(kw_only=True) +class ExportTableToPointInTimeOutput(_SerdeShape): + """Dataclass for ExportTableToPointInTimeOutput structure.""" + + export_description: ExportDescription | None = ... + """Contains a description of the table export.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class ExportType(UnknownEnumMixin, StrEnum): + FULL_EXPORT = "FULL_EXPORT" + INCREMENTAL_EXPORT = "INCREMENTAL_EXPORT" + +class ExportViewType(UnknownEnumMixin, StrEnum): + NEW_IMAGE = "NEW_IMAGE" + NEW_AND_OLD_IMAGES = "NEW_AND_OLD_IMAGES" + +@dataclass(kw_only=True) +class FailureException(_SerdeShape): + """Represents a failure a contributor insights operation.""" + + exception_name: str | None = ... + """Exception name.""" + exception_description: str | None = ... + """Description of the failure.""" + +@dataclass(kw_only=True) +class FilterSpecification(_SerdeShape): + """ + Contains the filter criteria used to limit which items are included in + an export. If you don't include this parameter, all items and + attributes are exported. + """ + + filter_expression: str | None = ... + """ + A condition that filters which items are included in the export. This + parameter uses the same syntax as `FilterExpression` in `Query` and + `Scan`. If you don't provide `KeyConditionExpression`, this expression + can also reference key attributes. If you don't specify this parameter, + all items are included in the export. + """ + projection_expression: str | None = ... + """ + The attributes you want to retrieve for items included in the export. + Separate attribute names in the expression with commas. If you don't + specify this parameter, all attributes are returned. + """ + key_condition_expression: str | None = ... + """ + A condition expression that filters items by key values. The expression + must test equality on a single partition key value and can optionally + compare a sort key value. This parameter uses the same syntax as + `KeyConditionExpression` in `Query`. When you provide this parameter, + `FilterExpression` can only reference non-key attributes. If you don't + specify this parameter, all items are eligible for export. + """ + expression_attribute_names: dict[str, str] | None = ... + """ + One or more substitution tokens for attribute names in an expression. + For more information, see [Expression Attribute + Names](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeNames.html) + in the Amazon DynamoDB Developer Guide. + """ + expression_attribute_values: dict[str, AttributeValue] | None = ... + """ + One or more values that can be substituted in an expression. For more + information, see [Expression Attribute + Values](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeValues.html) + in the Amazon DynamoDB Developer Guide. + """ + +class FilterSpecificationDict(TypedDict, total=False): + """Dictionary form of `FilterSpecification`.""" + + filter_expression: str | None + """ + A condition that filters which items are included in the export. This + parameter uses the same syntax as `FilterExpression` in `Query` and + `Scan`. If you don't provide `KeyConditionExpression`, this expression + can also reference key attributes. If you don't specify this parameter, + all items are included in the export. + """ + projection_expression: str | None + """ + The attributes you want to retrieve for items included in the export. + Separate attribute names in the expression with commas. If you don't + specify this parameter, all attributes are returned. + """ + key_condition_expression: str | None + """ + A condition expression that filters items by key values. The expression + must test equality on a single partition key value and can optionally + compare a sort key value. This parameter uses the same syntax as + `KeyConditionExpression` in `Query`. When you provide this parameter, + `FilterExpression` can only reference non-key attributes. If you don't + specify this parameter, all items are eligible for export. + """ + expression_attribute_names: Mapping[str, str] | None + """ + One or more substitution tokens for attribute names in an expression. + For more information, see [Expression Attribute + Names](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeNames.html) + in the Amazon DynamoDB Developer Guide. + """ + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) + """ + One or more values that can be substituted in an expression. For more + information, see [Expression Attribute + Values](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ExpressionAttributeValues.html) + in the Amazon DynamoDB Developer Guide. + """ + +@dataclass(kw_only=True) +class Get(_SerdeShape): + """ + Specifies an item and related attribute values to retrieve in a + `TransactGetItem` object. + """ + + key: dict[str, AttributeValue] + """ + A map of attribute names to `AttributeValue` objects that specifies the + primary key of the item to retrieve. + """ + table_name: str + """ + The name of the table from which to retrieve the specified item. You can + also provide the Amazon Resource Name (ARN) of the table in this + parameter. + """ + projection_expression: str | None = ... + """ + A string that identifies one or more attributes of the specified item to + retrieve from the table. The attributes in the expression must be + separated by commas. If no attribute names are specified, then all + attributes of the specified item are returned. If any of the requested + attributes are not found, they do not appear in the result. + """ + expression_attribute_names: dict[str, str] | None = ... + """ + One or more substitution tokens for attribute names in the + ProjectionExpression parameter. + """ + +class GetDict(TypedDict, total=False): + """Dictionary form of `Get`.""" + + key: Required[Mapping[str, AttributeValue | AttributeValueDict]] + """ + A map of attribute names to `AttributeValue` objects that specifies the + primary key of the item to retrieve. + """ + table_name: Required[str] + """ + The name of the table from which to retrieve the specified item. You can + also provide the Amazon Resource Name (ARN) of the table in this + parameter. + """ + projection_expression: str | None + """ + A string that identifies one or more attributes of the specified item to + retrieve from the table. The attributes in the expression must be + separated by commas. If no attribute names are specified, then all + attributes of the specified item are returned. If any of the requested + attributes are not found, they do not appear in the result. + """ + expression_attribute_names: Mapping[str, str] | None + """ + One or more substitution tokens for attribute names in the + ProjectionExpression parameter. + """ + +@dataclass(kw_only=True) +class GetItemInput(_SerdeShape): + """Represents the input of a `GetItem` operation.""" + + table_name: str | None = ... + """ + The name of the table containing the requested item. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. + """ + key: dict[str, AttributeValue] | None = ... + """ + A map of attribute names to `AttributeValue` objects, representing the + primary key of the item to retrieve. + + For the primary key, you must provide all of the attributes. For + example, with a simple primary key, you only need to provide a value for + the partition key. For a composite primary key, you must provide values + for both the partition key and the sort key. + """ + attributes_to_get: list[str] | None = ... + """ + This is a legacy parameter. Use `ProjectionExpression` instead. For more + information, see + [AttributesToGet](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + in the *Amazon DynamoDB Developer Guide*. + """ + consistent_read: bool | None = ... + """ + Determines the read consistency model: If set to `true`, then the + operation uses strongly consistent reads; otherwise, the operation uses + eventually consistent reads. + """ + return_consumed_capacity: str | None = ... + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + projection_expression: str | None = ... + """ + A string that identifies one or more attributes to retrieve from the + table. These attributes can include scalars, sets, or elements of a JSON + document. The attributes in the expression must be separated by commas. + + If no attribute names are specified, then all attributes are returned. + If any of the requested attributes are not found, they do not appear in + the result. + + For more information, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_names: dict[str, str] | None = ... + """ + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +class GetItemInputDict(TypedDict, total=False): + """Dictionary form of `GetItemInput`.""" + + table_name: Required[str] + """ + The name of the table containing the requested item. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. + """ + key: Required[Mapping[str, AttributeValue | AttributeValueDict]] + """ + A map of attribute names to `AttributeValue` objects, representing the + primary key of the item to retrieve. + + For the primary key, you must provide all of the attributes. For + example, with a simple primary key, you only need to provide a value for + the partition key. For a composite primary key, you must provide values + for both the partition key and the sort key. + """ + attributes_to_get: Sequence[str] | None + """ + This is a legacy parameter. Use `ProjectionExpression` instead. For more + information, see + [AttributesToGet](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + in the *Amazon DynamoDB Developer Guide*. + """ + consistent_read: bool | None + """ + Determines the read consistency model: If set to `true`, then the + operation uses strongly consistent reads; otherwise, the operation uses + eventually consistent reads. + """ + return_consumed_capacity: str | None + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + projection_expression: str | None + """ + A string that identifies one or more attributes to retrieve from the + table. These attributes can include scalars, sets, or elements of a JSON + document. The attributes in the expression must be separated by commas. + + If no attribute names are specified, then all attributes are returned. + If any of the requested attributes are not found, they do not appear in + the result. + + For more information, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_names: Mapping[str, str] | None + """ + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +@dataclass(kw_only=True) +class GetItemOutput(_SerdeShape): + """Represents the output of a `GetItem` operation.""" + + item: dict[str, AttributeValue] | None = ... + """ + A map of attribute names to `AttributeValue` objects, as specified by + `ProjectionExpression`. + """ + consumed_capacity: ConsumedCapacity | None = ... + """ + The capacity units consumed by the `GetItem` operation. The data + returned includes the total provisioned throughput consumed, along with + statistics for the table and any indexes involved in the operation. + `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` + parameter was specified. For more information, see [Capacity unit + consumption for read + operations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/read-write-operations.html#read-operation-consumption) + in the *Amazon DynamoDB Developer Guide*. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetResourcePolicyInput(_SerdeShape): + """Dataclass for GetResourcePolicyInput structure.""" + + resource_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the DynamoDB resource to which the + policy is attached. The resources you can specify include tables and + streams. + """ + +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the DynamoDB resource to which the + policy is attached. The resources you can specify include tables and + streams. + """ + +@dataclass(kw_only=True) +class GetResourcePolicyOutput(_SerdeShape): + """Dataclass for GetResourcePolicyOutput structure.""" + + policy: str | None = ... + """ + The resource-based policy document attached to the resource, which can + be a table or stream, in JSON format. + """ + revision_id: str | None = ... + """ + A unique string that represents the revision ID of the policy. If + you're comparing revision IDs, make sure to always use string + comparison logic. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GlobalSecondaryIndex(_SerdeShape): + """Represents the properties of a global secondary index.""" + + index_name: str + """ + The name of the global secondary index. The name must be unique among + all other indexes on this table. + """ + key_schema: list[KeySchemaElement] + """ + The complete key schema for a global secondary index, which consists of + one or more pairs of attribute names and key types: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. + """ + projection: Projection + """ + Represents attributes that are copied (projected) from the table into + the global secondary index. These are in addition to the primary key + attributes and index key attributes, which are automatically projected. + """ + provisioned_throughput: ProvisionedThroughput | None = ... + """ + Represents the provisioned throughput settings for the specified global + secondary index. You must use either `OnDemandThroughput` or + `ProvisionedThroughput` based on your table's capacity mode. + + For current minimum and maximum provisioned throughput values, see + [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + in the *Amazon DynamoDB Developer Guide*. + """ + on_demand_throughput: OnDemandThroughput | None = ... + """ + The maximum number of read and write units for the specified global + secondary index. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. You must use + either `OnDemandThroughput` or `ProvisionedThroughput` based on your + table's capacity mode. + """ + warm_throughput: WarmThroughput | None = ... + """ + Represents the warm throughput value (in read units per second and write + units per second) for the specified secondary index. If you use this + parameter, you must specify `ReadUnitsPerSecond`, `WriteUnitsPerSecond`, + or both. + """ + +class GlobalSecondaryIndexDict(TypedDict, total=False): + """Dictionary form of `GlobalSecondaryIndex`.""" + + index_name: Required[str] + """ + The name of the global secondary index. The name must be unique among + all other indexes on this table. + """ + key_schema: Required[Sequence[KeySchemaElement | KeySchemaElementDict]] + """ + The complete key schema for a global secondary index, which consists of + one or more pairs of attribute names and key types: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. + """ + projection: Required[Projection | ProjectionDict] + """ + Represents attributes that are copied (projected) from the table into + the global secondary index. These are in addition to the primary key + attributes and index key attributes, which are automatically projected. + """ + provisioned_throughput: ProvisionedThroughput | ProvisionedThroughputDict | None + """ + Represents the provisioned throughput settings for the specified global + secondary index. You must use either `OnDemandThroughput` or + `ProvisionedThroughput` based on your table's capacity mode. + + For current minimum and maximum provisioned throughput values, see + [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + in the *Amazon DynamoDB Developer Guide*. + """ + on_demand_throughput: OnDemandThroughput | OnDemandThroughputDict | None + """ + The maximum number of read and write units for the specified global + secondary index. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. You must use + either `OnDemandThroughput` or `ProvisionedThroughput` based on your + table's capacity mode. + """ + warm_throughput: WarmThroughput | WarmThroughputDict | None + """ + Represents the warm throughput value (in read units per second and write + units per second) for the specified secondary index. If you use this + parameter, you must specify `ReadUnitsPerSecond`, `WriteUnitsPerSecond`, + or both. + """ + +@dataclass(kw_only=True) +class GlobalSecondaryIndexAutoScalingUpdate(_SerdeShape): + """ + Represents the auto scaling settings of a global secondary index for a + global table that will be modified. + """ + + index_name: str | None = ... + """The name of the global secondary index.""" + provisioned_write_capacity_auto_scaling_update: ( + AutoScalingSettingsUpdate | None + ) = ... + """ + Represents the auto scaling settings to be modified for a global table + or global secondary index. + """ + +class GlobalSecondaryIndexAutoScalingUpdateDict(TypedDict, total=False): + """Dictionary form of `GlobalSecondaryIndexAutoScalingUpdate`.""" + + index_name: str | None + """The name of the global secondary index.""" + provisioned_write_capacity_auto_scaling_update: ( + AutoScalingSettingsUpdate | AutoScalingSettingsUpdateDict | None + ) + """ + Represents the auto scaling settings to be modified for a global table + or global secondary index. + """ + +@dataclass(kw_only=True) +class GlobalSecondaryIndexDescription(_SerdeShape): + """Represents the properties of a global secondary index.""" + + index_name: str | None = ... + """The name of the global secondary index.""" + key_schema: list[KeySchemaElement] | None = ... + """ + The complete key schema for a global secondary index, which consists of + one or more pairs of attribute names and key types: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. + """ + projection: Projection | None = ... + """ + Represents attributes that are copied (projected) from the table into + the global secondary index. These are in addition to the primary key + attributes and index key attributes, which are automatically projected. + """ + index_status: str | None = ... + """ + The current state of the global secondary index: + + - `CREATING` - The index is being created. + + - `UPDATING` - The index is being updated. + + - `DELETING` - The index is being deleted. + + - `ACTIVE` - The index is ready for use. + """ + backfilling: bool | None = ... + """ + Indicates whether the index is currently backfilling. *Backfilling* is + the process of reading items from the table and determining whether they + can be added to the index. (Not all items will qualify: For example, a + partition key cannot have any duplicate values.) If an item can be added + to the index, DynamoDB will do so. After all items have been processed, + the backfilling operation is complete and `Backfilling` is false. + + You can delete an index that is being created during the `Backfilling` + phase when `IndexStatus` is set to CREATING and `Backfilling` is true. + You can't delete the index that is being created when `IndexStatus` is + set to CREATING and `Backfilling` is false. + + Note: + For indexes that were created during a `CreateTable` operation, the + `Backfilling` attribute does not appear in the `DescribeTable` output. + """ + provisioned_throughput: ProvisionedThroughputDescription | None = ... + """ + Represents the provisioned throughput settings for the specified global + secondary index. + + For current minimum and maximum provisioned throughput values, see + [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + in the *Amazon DynamoDB Developer Guide*. + """ + index_size_bytes: int | None = ... + """ + The total size of the specified index, in bytes. DynamoDB updates this + value approximately every six hours. Recent changes might not be + reflected in this value. + """ + item_count: int | None = ... + """ + The number of items in the specified index. DynamoDB updates this value + approximately every six hours. Recent changes might not be reflected in + this value. + """ + index_arn: str | None = ... + """The Amazon Resource Name (ARN) that uniquely identifies the index.""" + on_demand_throughput: OnDemandThroughput | None = ... + """ + The maximum number of read and write units for the specified global + secondary index. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + """ + warm_throughput: GlobalSecondaryIndexWarmThroughputDescription | None = ... + """ + Represents the warm throughput value (in read units per second and write + units per second) for the specified secondary index. + """ + +@dataclass(kw_only=True) +class GlobalSecondaryIndexInfo(_SerdeShape): + """ + Represents the properties of a global secondary index for the table when + the backup was created. + """ + + index_name: str | None = ... + """The name of the global secondary index.""" + key_schema: list[KeySchemaElement] | None = ... + """ + The complete key schema for a global secondary index, which consists of + one or more pairs of attribute names and key types: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. + """ + projection: Projection | None = ... + """ + Represents attributes that are copied (projected) from the table into + the global secondary index. These are in addition to the primary key + attributes and index key attributes, which are automatically projected. + """ + provisioned_throughput: ProvisionedThroughput | None = ... + """ + Represents the provisioned throughput settings for the specified global + secondary index. + """ + on_demand_throughput: OnDemandThroughput | None = ... + """ + Sets the maximum number of read and write units for the specified + on-demand table. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + """ + +@dataclass(kw_only=True) +class GlobalSecondaryIndexUpdate(_SerdeShape): + """ + Represents one of the following: + + - A new global secondary index to be added to an existing table. + + - New provisioned throughput parameters for an existing global secondary + index. + + - An existing global secondary index to be removed from an existing + table. + """ + + update: UpdateGlobalSecondaryIndexAction | None = ... + """ + The name of an existing global secondary index, along with new + provisioned throughput settings to be applied to that index. + """ + create: CreateGlobalSecondaryIndexAction | None = ... + """ + The parameters required for creating a global secondary index on an + existing table: + + - `IndexName ` + + - `KeySchema ` + + - `AttributeDefinitions ` + + - `Projection ` + + - `ProvisionedThroughput ` + """ + delete: DeleteGlobalSecondaryIndexAction | None = ... + """The name of an existing global secondary index to be removed.""" + +class GlobalSecondaryIndexUpdateDict(TypedDict, total=False): + """Dictionary form of `GlobalSecondaryIndexUpdate`.""" + + update: ( + UpdateGlobalSecondaryIndexAction | UpdateGlobalSecondaryIndexActionDict | None + ) + """ + The name of an existing global secondary index, along with new + provisioned throughput settings to be applied to that index. + """ + create: ( + CreateGlobalSecondaryIndexAction | CreateGlobalSecondaryIndexActionDict | None + ) + """ + The parameters required for creating a global secondary index on an + existing table: + + - `IndexName ` + + - `KeySchema ` + + - `AttributeDefinitions ` + + - `Projection ` + + - `ProvisionedThroughput ` + """ + delete: ( + DeleteGlobalSecondaryIndexAction | DeleteGlobalSecondaryIndexActionDict | None + ) + """The name of an existing global secondary index to be removed.""" + +@dataclass(kw_only=True) +class GlobalSecondaryIndexWarmThroughputDescription(_SerdeShape): + """ + The description of the warm throughput value on a global secondary + index. + """ + + read_units_per_second: int | None = ... + """ + Represents warm throughput read units per second value for a global + secondary index. + """ + write_units_per_second: int | None = ... + """ + Represents warm throughput write units per second value for a global + secondary index. + """ + status: str | None = ... + """ + Represents the warm throughput status being created or updated on a + global secondary index. The status can only be `UPDATING` or `ACTIVE`. + """ + +@dataclass(kw_only=True) +class GlobalTable(_SerdeShape): + """Represents the properties of a global table.""" + + global_table_name: str | None = ... + """The global table name.""" + replication_group: list[Replica] | None = ... + """The Regions where the global table has replicas.""" + +@dataclass(kw_only=True) +class GlobalTableAlreadyExistsException(ServiceError, _SerdeShape): + """The specified global table already exists.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GlobalTableDescription(_SerdeShape): + """Contains details about the global table.""" + + replication_group: list[ReplicaDescription] | None = ... + """The Regions where the global table has replicas.""" + global_table_arn: str | None = ... + """The unique identifier of the global table.""" + creation_date_time: datetime | None = ... + """The creation time of the global table.""" + global_table_status: str | None = ... + """ + The current state of the global table: + + - `CREATING` - The global table is being created. + + - `UPDATING` - The global table is being updated. + + - `DELETING` - The global table is being deleted. + + - `ACTIVE` - The global table is ready for use. + """ + global_table_name: str | None = ... + """The global table name.""" + +@dataclass(kw_only=True) +class GlobalTableGlobalSecondaryIndexSettingsUpdate(_SerdeShape): + """ + Represents the settings of a global secondary index for a global table + that will be modified. + """ + + index_name: str + """ + The name of the global secondary index. The name must be unique among + all other indexes on this table. """ provisioned_write_capacity_units: int | None = ... """ - The maximum number of writes consumed per second before DynamoDB returns - a `ThrottlingException.` + The maximum number of writes consumed per second before DynamoDB returns + a `ThrottlingException.` + """ + provisioned_write_capacity_auto_scaling_settings_update: ( + AutoScalingSettingsUpdate | None + ) = ... + """ + Auto scaling settings for managing a global secondary index's write + capacity units. + """ + +class GlobalTableGlobalSecondaryIndexSettingsUpdateDict(TypedDict, total=False): + """Dictionary form of `GlobalTableGlobalSecondaryIndexSettingsUpdate`.""" + + index_name: Required[str] + """ + The name of the global secondary index. The name must be unique among + all other indexes on this table. + """ + provisioned_write_capacity_units: int | None + """ + The maximum number of writes consumed per second before DynamoDB returns + a `ThrottlingException.` + """ + provisioned_write_capacity_auto_scaling_settings_update: ( + AutoScalingSettingsUpdate | AutoScalingSettingsUpdateDict | None + ) + """ + Auto scaling settings for managing a global secondary index's write + capacity units. + """ + +@dataclass(kw_only=True) +class GlobalTableNotFoundException(ServiceError, _SerdeShape): + """The specified global table does not exist.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class GlobalTableSettingsReplicationMode(UnknownEnumMixin, StrEnum): + ENABLED = "ENABLED" + DISABLED = "DISABLED" + ENABLED_WITH_OVERRIDES = "ENABLED_WITH_OVERRIDES" + +class GlobalTableStatus(UnknownEnumMixin, StrEnum): + CREATING = "CREATING" + ACTIVE = "ACTIVE" + DELETING = "DELETING" + UPDATING = "UPDATING" + +@dataclass(kw_only=True) +class GlobalTableWitnessDescription(_SerdeShape): + """Represents the properties of a witness Region in a MRSC global table.""" + + region_name: str | None = ... + """ + The name of the Amazon Web Services Region that serves as a witness for + the MRSC global table. + """ + witness_status: str | None = ... + """The current status of the witness Region in the MRSC global table.""" + +@dataclass(kw_only=True) +class GlobalTableWitnessGroupUpdate(_SerdeShape): + """ + Represents one of the following: + + - A new witness to be added to a new global table. + + - An existing witness to be removed from an existing global table. + + You can configure one witness per MRSC global table. + """ + + create: CreateGlobalTableWitnessGroupMemberAction | None = ... + """ + Specifies a witness Region to be added to a new MRSC global table. The + witness must be added when creating the MRSC global table. + """ + delete: DeleteGlobalTableWitnessGroupMemberAction | None = ... + """ + Specifies a witness Region to be removed from an existing global table. + Must be done in conjunction with removing a replica. The deletion of + both a witness and replica converts the remaining replica to a + single-Region DynamoDB table. + """ + +class GlobalTableWitnessGroupUpdateDict(TypedDict, total=False): + """Dictionary form of `GlobalTableWitnessGroupUpdate`.""" + + create: ( + CreateGlobalTableWitnessGroupMemberAction + | CreateGlobalTableWitnessGroupMemberActionDict + | None + ) + """ + Specifies a witness Region to be added to a new MRSC global table. The + witness must be added when creating the MRSC global table. + """ + delete: ( + DeleteGlobalTableWitnessGroupMemberAction + | DeleteGlobalTableWitnessGroupMemberActionDict + | None + ) + """ + Specifies a witness Region to be removed from an existing global table. + Must be done in conjunction with removing a replica. The deletion of + both a witness and replica converts the remaining replica to a + single-Region DynamoDB table. + """ + +@dataclass(kw_only=True) +class IdempotentParameterMismatchException(ServiceError, _SerdeShape): + """ + DynamoDB rejected the request because you retried a request with a + different payload but with an idempotent token that was already used. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ImportConflictException(ServiceError, _SerdeShape): + """ + There was a conflict when importing from the specified S3 source. This + can occur when the current import conflicts with a previous import + request that had the same client token. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ImportNotFoundException(ServiceError, _SerdeShape): + """The specified import was not found.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class ImportStatus(UnknownEnumMixin, StrEnum): + IN_PROGRESS = "IN_PROGRESS" + COMPLETED = "COMPLETED" + CANCELLING = "CANCELLING" + CANCELLED = "CANCELLED" + FAILED = "FAILED" + +@dataclass(kw_only=True) +class ImportSummary(_SerdeShape): + """Summary information about the source file for the import.""" + + import_arn: str | None = ... + """The Amazon Resource Number (ARN) corresponding to the import request.""" + import_status: str | None = ... + """The status of the import operation.""" + table_arn: str | None = ... + """The Amazon Resource Number (ARN) of the table being imported into.""" + s3_bucket_source: S3BucketSource | None = ... + """ + The path and S3 bucket of the source file that is being imported. This + includes the S3Bucket (required), S3KeyPrefix (optional) and + S3BucketOwner (optional if the bucket is owned by the requester). + """ + cloud_watch_log_group_arn: str | None = ... + """ + The Amazon Resource Number (ARN) of the Cloudwatch Log Group associated + with this import task. + """ + input_format: str | None = ... + """ + The format of the source data. Valid values are `CSV`, `DYNAMODB_JSON` + or `ION`. + """ + start_time: datetime | None = ... + """The time at which this import task began.""" + end_time: datetime | None = ... + """The time at which this import task ended.""" + +@dataclass(kw_only=True) +class ImportTableDescription(_SerdeShape): + """Represents the properties of the table being imported into.""" + + import_arn: str | None = ... + """The Amazon Resource Number (ARN) corresponding to the import request.""" + import_status: str | None = ... + """The status of the import.""" + table_arn: str | None = ... + """The Amazon Resource Number (ARN) of the table being imported into.""" + table_id: str | None = ... + """The table id corresponding to the table created by import table process.""" + client_token: str | None = ... + """ + The client token that was provided for the import task. Reusing the + client token on retry makes a call to `ImportTable` idempotent. + """ + s3_bucket_source: S3BucketSource | None = ... + """ + Values for the S3 bucket the source file is imported from. Includes + bucket name (required), key prefix (optional) and bucket account owner + ID (optional). + """ + error_count: int = ... + """ + The number of errors occurred on importing the source file into the + target table. + """ + cloud_watch_log_group_arn: str | None = ... + """ + The Amazon Resource Number (ARN) of the Cloudwatch Log Group associated + with the target table. + """ + input_format: str | None = ... + """The format of the source data going into the target table.""" + input_format_options: InputFormatOptions | None = ... + """ + The format options for the data that was imported into the target table. + There is one value, CsvOption. + """ + input_compression_type: str | None = ... + """ + The compression options for the data that has been imported into the + target table. The values are NONE, GZIP, or ZSTD. + """ + table_creation_parameters: TableCreationParameters | None = ... + """The parameters for the new table that is being imported into.""" + start_time: datetime | None = ... + """The time when this import task started.""" + end_time: datetime | None = ... + """ + The time at which the creation of the table associated with this import + task completed. + """ + processed_size_bytes: int | None = ... + """The total size of data processed from the source file, in Bytes.""" + processed_item_count: int = ... + """The total number of items processed from the source file.""" + imported_item_count: int = ... + """The number of items successfully imported into the new table.""" + failure_code: str | None = ... + """ + The error code corresponding to the failure that the import job ran into + during execution. + """ + failure_message: str | None = ... + """ + The error message corresponding to the failure that the import job ran + into during execution. + """ + +@dataclass(kw_only=True) +class ImportTableInput(_SerdeShape): + """Dataclass for ImportTableInput structure.""" + + client_token: str | None = ... + """ + Providing a `ClientToken` makes the call to `ImportTableInput` + idempotent, meaning that multiple identical calls have the same effect + as one single call. + + A client token is valid for 8 hours after the first request that uses it + is completed. After 8 hours, any request with the same client token is + treated as a new request. Do not resubmit the same request with the same + client token for more than 8 hours, or the result might not be + idempotent. + + If you submit a request with the same client token but a change in other + parameters within the 8-hour idempotency window, DynamoDB returns an + `IdempotentParameterMismatch` exception. + + This field is autopopulated if not provided. + """ + s3_bucket_source: S3BucketSource | None = ... + """The S3 bucket that provides the source for the import.""" + input_format: str | None = ... + """ + The format of the source data. Valid values for `ImportFormat` are + `CSV`, `DYNAMODB_JSON` or `ION`. + """ + input_format_options: InputFormatOptions | None = ... + """Additional properties that specify how the input is formatted,""" + input_compression_type: str | None = ... + """ + Type of compression to be used on the input coming from the imported + table. + """ + table_creation_parameters: TableCreationParameters | None = ... + """Parameters for the table to import the data into.""" + +class ImportTableInputDict(TypedDict, total=False): + """Dictionary form of `ImportTableInput`.""" + + client_token: str | None + """ + Providing a `ClientToken` makes the call to `ImportTableInput` + idempotent, meaning that multiple identical calls have the same effect + as one single call. + + A client token is valid for 8 hours after the first request that uses it + is completed. After 8 hours, any request with the same client token is + treated as a new request. Do not resubmit the same request with the same + client token for more than 8 hours, or the result might not be + idempotent. + + If you submit a request with the same client token but a change in other + parameters within the 8-hour idempotency window, DynamoDB returns an + `IdempotentParameterMismatch` exception. + + This field is autopopulated if not provided. + """ + s3_bucket_source: Required[S3BucketSource | S3BucketSourceDict] + """The S3 bucket that provides the source for the import.""" + input_format: Required[str] + """ + The format of the source data. Valid values for `ImportFormat` are + `CSV`, `DYNAMODB_JSON` or `ION`. + """ + input_format_options: InputFormatOptions | InputFormatOptionsDict | None + """Additional properties that specify how the input is formatted,""" + input_compression_type: str | None + """ + Type of compression to be used on the input coming from the imported + table. + """ + table_creation_parameters: Required[ + TableCreationParameters | TableCreationParametersDict + ] + """Parameters for the table to import the data into.""" + +@dataclass(kw_only=True) +class ImportTableOutput(_SerdeShape): + """Dataclass for ImportTableOutput structure.""" + + import_table_description: ImportTableDescription + """ + Represents the properties of the table created for the import, and + parameters of the import. The import parameters include import status, + how many items were processed, and how many errors were encountered. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class IncrementalExportSpecification(_SerdeShape): + """ + Optional object containing the parameters specific to an incremental + export. + """ + + export_from_time: datetime | None = ... + """ + Time in the past which provides the inclusive start range for the export + table's data, counted in seconds from the start of the Unix epoch. The + incremental export will reflect the table's state including and after + this point in time. + """ + export_to_time: datetime | None = ... + """ + Time in the past which provides the exclusive end range for the export + table's data, counted in seconds from the start of the Unix epoch. The + incremental export will reflect the table's state just prior to this + point in time. If this is not provided, the latest time with data + available will be used. + """ + export_view_type: str | None = ... + """ + The view type that was chosen for the export. Valid values are + `NEW_AND_OLD_IMAGES` and `NEW_IMAGES`. The default value is + `NEW_AND_OLD_IMAGES`. + + `NEW_AND_OLD_IMAGES` exports both the new and old images of each changed + item, while `NEW_IMAGES` exports only the new (latest) image. The view + type you choose determines the structure of each item in the output for + `insert`, `update`, and `delete` operations. For details and examples of + how each view type shapes the export output, see [DynamoDB table export + output + format](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataExport.Output.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +class IncrementalExportSpecificationDict(TypedDict, total=False): + """Dictionary form of `IncrementalExportSpecification`.""" + + export_from_time: datetime | None + """ + Time in the past which provides the inclusive start range for the export + table's data, counted in seconds from the start of the Unix epoch. The + incremental export will reflect the table's state including and after + this point in time. + """ + export_to_time: datetime | None + """ + Time in the past which provides the exclusive end range for the export + table's data, counted in seconds from the start of the Unix epoch. The + incremental export will reflect the table's state just prior to this + point in time. If this is not provided, the latest time with data + available will be used. + """ + export_view_type: str | None + """ + The view type that was chosen for the export. Valid values are + `NEW_AND_OLD_IMAGES` and `NEW_IMAGES`. The default value is + `NEW_AND_OLD_IMAGES`. + + `NEW_AND_OLD_IMAGES` exports both the new and old images of each changed + item, while `NEW_IMAGES` exports only the new (latest) image. The view + type you choose determines the structure of each item in the output for + `insert`, `update`, and `delete` operations. For details and examples of + how each view type shapes the export output, see [DynamoDB table export + output + format](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataExport.Output.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +@dataclass(kw_only=True) +class IndexNotFoundException(ServiceError, _SerdeShape): + """The operation tried to access a nonexistent index.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class IndexStatus(UnknownEnumMixin, StrEnum): + CREATING = "CREATING" + UPDATING = "UPDATING" + DELETING = "DELETING" + ACTIVE = "ACTIVE" + +class InputCompressionType(UnknownEnumMixin, StrEnum): + GZIP = "GZIP" + ZSTD = "ZSTD" + NONE = "NONE" + +class InputFormat(UnknownEnumMixin, StrEnum): + DYNAMODB_JSON = "DYNAMODB_JSON" + ION = "ION" + CSV = "CSV" + +@dataclass(kw_only=True) +class InputFormatOptions(_SerdeShape): + """ + The format options for the data that was imported into the target table. + There is one value, CsvOption. + """ + + csv: CsvOptions | None = ... + """ + The options for imported source files in CSV format. The values are + Delimiter and HeaderList. + """ + +class InputFormatOptionsDict(TypedDict, total=False): + """Dictionary form of `InputFormatOptions`.""" + + csv: CsvOptions | CsvOptionsDict | None + """ + The options for imported source files in CSV format. The values are + Delimiter and HeaderList. + """ + +@dataclass(kw_only=True) +class InputS3Configuration(_SerdeShape): + """ + Contains the Amazon S3 location and format settings for bulk operation + input. The `S3Bucket` and `InputFormat` fields are required. + """ + + s3_bucket_owner: str | None = ... + """ + The Amazon Web Services account ID of the input bucket owner. If you + omit this value, DynamoDB uses the Amazon Web Services account ID of the + requester. + + Note: + `S3BucketOwner` is required when the bucket is owned by another Amazon + Web Services account. + """ + s3_bucket: str + """The name of the Amazon S3 bucket that contains the input objects.""" + s3_key_prefix: str | None = ... + """ + An optional key prefix that limits the input to matching objects in the + Amazon S3 bucket. + """ + input_format: str + """ + The format of the input objects. `DYNAMODB_JSON` uses JSON Lines, with + one JSON record per line. `ION` uses a sequence of Ion structs. + """ + input_compression_type: str | None = ... + """ + The compression type of the input objects. Valid values are `GZIP`, + `ZSTD`, and `NONE`. If you don't specify a value, DynamoDB uses `NONE`. + """ + +class InputS3ConfigurationDict(TypedDict, total=False): + """Dictionary form of `InputS3Configuration`.""" + + s3_bucket_owner: str | None + """ + The Amazon Web Services account ID of the input bucket owner. If you + omit this value, DynamoDB uses the Amazon Web Services account ID of the + requester. + + Note: + `S3BucketOwner` is required when the bucket is owned by another Amazon + Web Services account. + """ + s3_bucket: Required[str] + """The name of the Amazon S3 bucket that contains the input objects.""" + s3_key_prefix: str | None + """ + An optional key prefix that limits the input to matching objects in the + Amazon S3 bucket. + """ + input_format: Required[str] + """ + The format of the input objects. `DYNAMODB_JSON` uses JSON Lines, with + one JSON record per line. `ION` uses a sequence of Ion structs. + """ + input_compression_type: str | None + """ + The compression type of the input objects. Valid values are `GZIP`, + `ZSTD`, and `NONE`. If you don't specify a value, DynamoDB uses `NONE`. + """ + +@dataclass(kw_only=True) +class InternalServerError(ServiceError, _SerdeShape): + """An error occurred on the server side.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidEndpointException(ServiceError, _SerdeShape): + """Dataclass for InvalidEndpointException structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidExportTimeException(ServiceError, _SerdeShape): + """ + The specified `ExportTime` is outside of the point in time recovery + window. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidRestoreTimeException(ServiceError, _SerdeShape): + """ + An invalid restore time was specified. RestoreDateTime must be between + EarliestRestorableDateTime and LatestRestorableDateTime. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ItemCollectionMetrics(_SerdeShape): + """ + Information about item collections, if any, that were affected by the + operation. `ItemCollectionMetrics` is only returned if the request asked + for it. If the table does not have any local secondary indexes, this + information is not returned in the response. + """ + + item_collection_key: dict[str, AttributeValue] | None = ... + """ + The partition key value of the item collection. This value is the same + as the partition key value of the item. + """ + size_estimate_range_gb: list[float] | None = ... + """ + An estimate of item collection size, in gigabytes. This value is a + two-element array containing a lower bound and an upper bound for the + estimate. The estimate includes the size of all the items in the table, + plus the size of all attributes projected into all of the local + secondary indexes on that table. Use this estimate to measure whether a + local secondary index is approaching its size limit. + + The estimate is subject to change over time; therefore, do not rely on + the precision or accuracy of the estimate. + """ + +@dataclass(kw_only=True) +class ItemCollectionSizeLimitExceededException(ServiceError, _SerdeShape): + """ + An item collection is too large. This exception is only returned for + tables that have one or more local secondary indexes. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ItemResponse(_SerdeShape): + """Details for the requested item.""" + + item: dict[str, AttributeValue] | None = ... + """Map of attribute data consisting of the data type and attribute value.""" + +@dataclass(kw_only=True) +class KeysAndAttributes(_SerdeShape): + """ + Represents a set of primary keys and, for each key, the attributes to + retrieve from the table. + + For each primary key, you must provide *all* of the key attributes. For + example, with a simple primary key, you only need to provide the + partition key. For a composite primary key, you must provide *both* the + partition key and the sort key. + """ + + keys: list[dict[str, AttributeValue]] + """ + The primary key attribute values that define the items and the + attributes associated with the items. + """ + attributes_to_get: list[str] | None = ... + """ + This is a legacy parameter. Use `ProjectionExpression` instead. For more + information, see [Legacy Conditional + Parameters](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) + in the *Amazon DynamoDB Developer Guide*. + """ + consistent_read: bool | None = ... + """ + The consistency of a read operation. If set to `true`, then a strongly + consistent read is used; otherwise, an eventually consistent read is + used. + """ + projection_expression: str | None = ... + """ + A string that identifies one or more attributes to retrieve from the + table. These attributes can include scalars, sets, or elements of a JSON + document. The attributes in the `ProjectionExpression` must be separated + by commas. + + If no attribute names are specified, then all attributes will be + returned. If any of the requested attributes are not found, they will + not appear in the result. + + For more information, see [Accessing Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_names: dict[str, str] | None = ... + """ + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Accessing Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +class KeysAndAttributesDict(TypedDict, total=False): + """Dictionary form of `KeysAndAttributes`.""" + + keys: Required[Sequence[Mapping[str, AttributeValue | AttributeValueDict]]] + """ + The primary key attribute values that define the items and the + attributes associated with the items. + """ + attributes_to_get: Sequence[str] | None + """ + This is a legacy parameter. Use `ProjectionExpression` instead. For more + information, see [Legacy Conditional + Parameters](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) + in the *Amazon DynamoDB Developer Guide*. + """ + consistent_read: bool | None + """ + The consistency of a read operation. If set to `true`, then a strongly + consistent read is used; otherwise, an eventually consistent read is + used. + """ + projection_expression: str | None + """ + A string that identifies one or more attributes to retrieve from the + table. These attributes can include scalars, sets, or elements of a JSON + document. The attributes in the `ProjectionExpression` must be separated + by commas. + + If no attribute names are specified, then all attributes will be + returned. If any of the requested attributes are not found, they will + not appear in the result. + + For more information, see [Accessing Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_names: Mapping[str, str] | None + """ + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Accessing Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + +@dataclass(kw_only=True) +class KeySchemaElement(_SerdeShape): + """ + Represents *a single element* of a key schema. A key schema specifies + the attributes that make up the primary key of a table, or the key + attributes of an index. + + A `KeySchemaElement` represents exactly one attribute of the primary + key. For example, a simple primary key would be represented by one + `KeySchemaElement` (for the partition key). A composite primary key + would require one `KeySchemaElement` for the partition key, and another + `KeySchemaElement` for the sort key. + + A `KeySchemaElement` must be a scalar, top-level attribute (not a nested + attribute). The data type must be one of String, Number, or Binary. The + attribute cannot be nested within a List or a Map. + """ + + attribute_name: str + """The name of a key attribute.""" + key_type: str + """ + The role that this key attribute will assume: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. + """ + +class KeySchemaElementDict(TypedDict, total=False): + """Dictionary form of `KeySchemaElement`.""" + + attribute_name: Required[str] + """The name of a key attribute.""" + key_type: Required[str] """ - provisioned_write_capacity_auto_scaling_settings_update: ( - AutoScalingSettingsUpdate | None - ) = ... + The role that this key attribute will assume: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. + """ + +class KeyType(UnknownEnumMixin, StrEnum): + HASH = "HASH" + RANGE = "RANGE" + +@dataclass(kw_only=True) +class KinesisDataStreamDestination(_SerdeShape): + """Describes a Kinesis data stream destination.""" + + stream_arn: str | None = ... + """The ARN for a specific Kinesis data stream.""" + destination_status: str | None = ... + """The current status of replication.""" + destination_status_description: str | None = ... + """The human-readable string that corresponds to the replica status.""" + approximate_creation_date_time_precision: str | None = ... + """ + The precision of the Kinesis data stream timestamp. The values are + either `MILLISECOND` or `MICROSECOND`. + """ + +@dataclass(kw_only=True) +class LimitExceededException(ServiceError, _SerdeShape): + """ + There is no limit to the number of daily on-demand backups that can be + taken. + + For most purposes, up to 500 simultaneous table operations are allowed + per account. These operations include `CreateTable`, `UpdateTable`, + `DeleteTable`,`UpdateTimeToLive`, `RestoreTableFromBackup`, and + `RestoreTableToPointInTime`. + + When you are creating a table with one or more secondary indexes, you + can have up to 250 such requests running at a time. However, if the + table or index specifications are complex, then DynamoDB might + temporarily reduce the number of concurrent operations. + + When importing into DynamoDB, up to 50 simultaneous import table + operations are allowed per account. + + There is a soft account quota of 2,500 tables. + + GetRecords was called with a value of more than 1000 for the limit + request parameter. + + More than 2 processes are reading from the same streams shard at the + same time. Exceeding this limit may result in request throttling. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListBackupsInput(_SerdeShape): + """Dataclass for ListBackupsInput structure.""" + + table_name: str | None = ... + """ + Lists the backups from the table specified in `TableName`. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. + """ + limit: int | None = ... + """Maximum number of backups to return at once.""" + time_range_lower_bound: datetime | None = ... + """ + Only backups created after this time are listed. `TimeRangeLowerBound` + is inclusive. + """ + time_range_upper_bound: datetime | None = ... + """ + Only backups created before this time are listed. `TimeRangeUpperBound` + is exclusive. + """ + exclusive_start_backup_arn: str | None = ... + """ + `LastEvaluatedBackupArn` is the Amazon Resource Name (ARN) of the backup + last evaluated when the current page of results was returned, inclusive + of the current page of results. This value may be specified as the + `ExclusiveStartBackupArn` of a new `ListBackups` operation in order to + fetch the next page of results. + """ + backup_type: str | None = ... + """ + The backups from the table specified by `BackupType` are listed. + + Where `BackupType` can be: + + - `USER` - On-demand backup created by you. (The default setting if no + other backup types are specified.) + + - `SYSTEM` - On-demand backup automatically created by DynamoDB. + + - `ALL` - All types of on-demand backups (USER and SYSTEM). + """ + +class ListBackupsInputDict(TypedDict, total=False): + """Dictionary form of `ListBackupsInput`.""" + + table_name: str | None + """ + Lists the backups from the table specified in `TableName`. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. + """ + limit: int | None + """Maximum number of backups to return at once.""" + time_range_lower_bound: datetime | None + """ + Only backups created after this time are listed. `TimeRangeLowerBound` + is inclusive. + """ + time_range_upper_bound: datetime | None + """ + Only backups created before this time are listed. `TimeRangeUpperBound` + is exclusive. + """ + exclusive_start_backup_arn: str | None + """ + `LastEvaluatedBackupArn` is the Amazon Resource Name (ARN) of the backup + last evaluated when the current page of results was returned, inclusive + of the current page of results. This value may be specified as the + `ExclusiveStartBackupArn` of a new `ListBackups` operation in order to + fetch the next page of results. + """ + backup_type: str | None + """ + The backups from the table specified by `BackupType` are listed. + + Where `BackupType` can be: + + - `USER` - On-demand backup created by you. (The default setting if no + other backup types are specified.) + + - `SYSTEM` - On-demand backup automatically created by DynamoDB. + + - `ALL` - All types of on-demand backups (USER and SYSTEM). + """ + +@dataclass(kw_only=True) +class ListBackupsOutput(_SerdeShape): + """Dataclass for ListBackupsOutput structure.""" + + backup_summaries: list[BackupSummary] | None = ... + """List of `BackupSummary` objects.""" + last_evaluated_backup_arn: str | None = ... + """ + The ARN of the backup last evaluated when the current page of results + was returned, inclusive of the current page of results. This value may + be specified as the `ExclusiveStartBackupArn` of a new `ListBackups` + operation in order to fetch the next page of results. + + If `LastEvaluatedBackupArn` is empty, then the last page of results has + been processed and there are no more results to be retrieved. + + If `LastEvaluatedBackupArn` is not empty, this may or may not indicate + that there is more data to be returned. All results are guaranteed to + have been returned if and only if no value for `LastEvaluatedBackupArn` + is returned. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListBulkOperationsInput(_SerdeShape): + """Dataclass for ListBulkOperationsInput structure.""" + + max_results: int | None = ... + """ + The maximum number of bulk operation summaries to return in one page. If + you don't specify a value, DynamoDB uses 10. + """ + next_token: str | None = ... + """ + An optional string that, if supplied, must be copied from the output of + a previous call to `ListBulkOperations`. When provided in this manner, + the API fetches the next page of results. + """ + +class ListBulkOperationsInputDict(TypedDict, total=False): + """Dictionary form of `ListBulkOperationsInput`.""" + + max_results: int | None + """ + The maximum number of bulk operation summaries to return in one page. If + you don't specify a value, DynamoDB uses 10. + """ + next_token: str | None + """ + An optional string that, if supplied, must be copied from the output of + a previous call to `ListBulkOperations`. When provided in this manner, + the API fetches the next page of results. + """ + +@dataclass(kw_only=True) +class ListBulkOperationsOutput(_SerdeShape): + """Dataclass for ListBulkOperationsOutput structure.""" + + bulk_operations_summary_list: list[BulkOperationSummary] | None = ... + """ + A list of bulk operation summaries for the current Amazon Web Services + account and Amazon Web Services Region. + """ + next_token: str | None = ... + """ + If this value is returned, there are additional results to be displayed. + To retrieve them, call `ListBulkOperations` again, with `NextToken` set + to this value. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListContributorInsightsInput(_SerdeShape): + """Dataclass for ListContributorInsightsInput structure.""" + + table_name: str | None = ... + """ + The name of the table. You can also provide the Amazon Resource Name + (ARN) of the table in this parameter. + """ + next_token: str | None = ... + """A token to for the desired page, if there is one.""" + max_results: int = ... + """Maximum number of results to return per page.""" + +class ListContributorInsightsInputDict(TypedDict, total=False): + """Dictionary form of `ListContributorInsightsInput`.""" + + table_name: str | None """ - Auto scaling settings for managing a global secondary index's write - capacity units. + The name of the table. You can also provide the Amazon Resource Name + (ARN) of the table in this parameter. """ + next_token: str | None + """A token to for the desired page, if there is one.""" + max_results: int | None + """Maximum number of results to return per page.""" @dataclass(kw_only=True) -class GlobalTableNotFoundException(ServiceError, _SerdeShape): - """The specified global table does not exist.""" +class ListContributorInsightsOutput(_SerdeShape): + """Dataclass for ListContributorInsightsOutput structure.""" + contributor_insights_summaries: list[ContributorInsightsSummary] | None = ... + """A list of ContributorInsightsSummary.""" + next_token: str | None = ... + """A token to go to the next page if there is one.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -4393,61 +7798,102 @@ class GlobalTableNotFoundException(ServiceError, _SerdeShape): optional. """ -class GlobalTableSettingsReplicationMode(UnknownEnumMixin, StrEnum): - ENABLED = "ENABLED" - DISABLED = "DISABLED" - ENABLED_WITH_OVERRIDES = "ENABLED_WITH_OVERRIDES" +@dataclass(kw_only=True) +class ListExportsInput(_SerdeShape): + """Dataclass for ListExportsInput structure.""" -class GlobalTableStatus(UnknownEnumMixin, StrEnum): - CREATING = "CREATING" - ACTIVE = "ACTIVE" - DELETING = "DELETING" - UPDATING = "UPDATING" + table_arn: str | None = ... + """The Amazon Resource Name (ARN) associated with the exported table.""" + max_results: int | None = ... + """Maximum number of results to return per page.""" + next_token: str | None = ... + """ + An optional string that, if supplied, must be copied from the output of + a previous call to `ListExports`. When provided in this manner, the API + fetches the next page of results. + """ -@dataclass(kw_only=True) -class GlobalTableWitnessDescription(_SerdeShape): - """Represents the properties of a witness Region in a MRSC global table.""" +class ListExportsInputDict(TypedDict, total=False): + """Dictionary form of `ListExportsInput`.""" - region_name: str | None = ... + table_arn: str | None + """The Amazon Resource Name (ARN) associated with the exported table.""" + max_results: int | None + """Maximum number of results to return per page.""" + next_token: str | None """ - The name of the Amazon Web Services Region that serves as a witness for - the MRSC global table. + An optional string that, if supplied, must be copied from the output of + a previous call to `ListExports`. When provided in this manner, the API + fetches the next page of results. """ - witness_status: str | None = ... - """The current status of the witness Region in the MRSC global table.""" @dataclass(kw_only=True) -class GlobalTableWitnessGroupUpdate(_SerdeShape): - """ - Represents one of the following: +class ListExportsOutput(_SerdeShape): + """Dataclass for ListExportsOutput structure.""" - - A new witness to be added to a new global table. + export_summaries: list[ExportSummary] | None = ... + """A list of `ExportSummary` objects.""" + next_token: str | None = ... + """ + If this value is returned, there are additional results to be displayed. + To retrieve them, call `ListExports` again, with `NextToken` set to this + value. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - - An existing witness to be removed from an existing global table. +@dataclass(kw_only=True) +class ListGlobalTablesInput(_SerdeShape): + """Dataclass for ListGlobalTablesInput structure.""" - You can configure one witness per MRSC global table. + exclusive_start_global_table_name: str | None = ... + """The first global table name that this operation will evaluate.""" + limit: int | None = ... """ + The maximum number of table names to return, if the parameter is not + specified DynamoDB defaults to 100. - create: CreateGlobalTableWitnessGroupMemberAction | None = ... - """ - Specifies a witness Region to be added to a new MRSC global table. The - witness must be added when creating the MRSC global table. + If the number of global tables DynamoDB finds reaches this limit, it + stops the operation and returns the table names collected up to that + point, with a table name in the `LastEvaluatedGlobalTableName` to apply + in a subsequent operation to the `ExclusiveStartGlobalTableName` + parameter. """ - delete: DeleteGlobalTableWitnessGroupMemberAction | None = ... + region_name: str | None = ... + """Lists the global tables in a specific Region.""" + +class ListGlobalTablesInputDict(TypedDict, total=False): + """Dictionary form of `ListGlobalTablesInput`.""" + + exclusive_start_global_table_name: str | None + """The first global table name that this operation will evaluate.""" + limit: int | None """ - Specifies a witness Region to be removed from an existing global table. - Must be done in conjunction with removing a replica. The deletion of - both a witness and replica converts the remaining replica to a - single-Region DynamoDB table. + The maximum number of table names to return, if the parameter is not + specified DynamoDB defaults to 100. + + If the number of global tables DynamoDB finds reaches this limit, it + stops the operation and returns the table names collected up to that + point, with a table name in the `LastEvaluatedGlobalTableName` to apply + in a subsequent operation to the `ExclusiveStartGlobalTableName` + parameter. """ + region_name: str | None + """Lists the global tables in a specific Region.""" @dataclass(kw_only=True) -class IdempotentParameterMismatchException(ServiceError, _SerdeShape): - """ - DynamoDB rejected the request because you retried a request with a - different payload but with an idempotent token that was already used. - """ +class ListGlobalTablesOutput(_SerdeShape): + """Dataclass for ListGlobalTablesOutput structure.""" + global_tables: list[GlobalTable] | None = ... + """List of global table names.""" + last_evaluated_global_table_name: str | None = ... + """Last evaluated global table name.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -4457,13 +7903,52 @@ class IdempotentParameterMismatchException(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ImportConflictException(ServiceError, _SerdeShape): +class ListImportsInput(_SerdeShape): + """Dataclass for ListImportsInput structure.""" + + table_arn: str | None = ... """ - There was a conflict when importing from the specified S3 source. This - can occur when the current import conflicts with a previous import - request that had the same client token. + The Amazon Resource Name (ARN) associated with the table that was + imported to. + """ + page_size: int | None = ... + """The number of `ImportSummary `objects returned in a single page.""" + next_token: str | None = ... + """ + An optional string that, if supplied, must be copied from the output of + a previous call to `ListImports`. When provided in this manner, the API + fetches the next page of results. + """ + +class ListImportsInputDict(TypedDict, total=False): + """Dictionary form of `ListImportsInput`.""" + + table_arn: str | None + """ + The Amazon Resource Name (ARN) associated with the table that was + imported to. + """ + page_size: int | None + """The number of `ImportSummary `objects returned in a single page.""" + next_token: str | None + """ + An optional string that, if supplied, must be copied from the output of + a previous call to `ListImports`. When provided in this manner, the API + fetches the next page of results. """ +@dataclass(kw_only=True) +class ListImportsOutput(_SerdeShape): + """Dataclass for ListImportsOutput structure.""" + + import_summary_list: list[ImportSummary] | None = ... + """A list of `ImportSummary` objects.""" + next_token: str | None = ... + """ + If this value is returned, there are additional results to be displayed. + To retrieve them, call `ListImports` again, with `NextToken` set to this + value. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -4473,9 +7958,58 @@ class ImportConflictException(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ImportNotFoundException(ServiceError, _SerdeShape): - """The specified import was not found.""" +class ListTablesInput(_SerdeShape): + """Represents the input of a `ListTables` operation.""" + + exclusive_start_table_name: str | None = ... + """ + The first table name that this operation will evaluate. Use the value + that was returned for `LastEvaluatedTableName` in a previous operation, + so that you can obtain the next page of results. + """ + limit: int | None = ... + """ + A maximum number of table names to return. If this parameter is not + specified, the limit is 100. + """ + +class ListTablesInputDict(TypedDict, total=False): + """Dictionary form of `ListTablesInput`.""" + + exclusive_start_table_name: str | None + """ + The first table name that this operation will evaluate. Use the value + that was returned for `LastEvaluatedTableName` in a previous operation, + so that you can obtain the next page of results. + """ + limit: int | None + """ + A maximum number of table names to return. If this parameter is not + specified, the limit is 100. + """ + +@dataclass(kw_only=True) +class ListTablesOutput(_SerdeShape): + """Represents the output of a `ListTables` operation.""" + + table_names: list[str] | None = ... + """ + The names of the tables associated with the current account at the + current endpoint. The maximum size of this array is 100. + + If `LastEvaluatedTableName` also appears in the output, you can use this + value as the `ExclusiveStartTableName` parameter in a subsequent + `ListTables` request and obtain the next page of results. + """ + last_evaluated_table_name: str | None = ... + """ + The name of the last table in the current page of results. Use this + value as the `ExclusiveStartTableName` in a new request to obtain the + next page of results, until all the table names are returned. + If you do not receive a `LastEvaluatedTableName` value in the response, + this means that there are no more table names to be retrieved. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -4484,261 +8018,339 @@ class ImportNotFoundException(ServiceError, _SerdeShape): optional. """ -class ImportStatus(UnknownEnumMixin, StrEnum): - IN_PROGRESS = "IN_PROGRESS" - COMPLETED = "COMPLETED" - CANCELLING = "CANCELLING" - CANCELLED = "CANCELLED" - FAILED = "FAILED" - @dataclass(kw_only=True) -class ImportSummary(_SerdeShape): - """Summary information about the source file for the import.""" +class ListTagsOfResourceInput(_SerdeShape): + """Dataclass for ListTagsOfResourceInput structure.""" - import_arn: str | None = ... - """The Amazon Resource Number (ARN) corresponding to the import request.""" - import_status: str | None = ... - """The status of the import operation.""" - table_arn: str | None = ... - """The Amazon Resource Number (ARN) of the table being imported into.""" - s3_bucket_source: S3BucketSource | None = ... + resource_arn: str | None = ... """ - The path and S3 bucket of the source file that is being imported. This - includes the S3Bucket (required), S3KeyPrefix (optional) and - S3BucketOwner (optional if the bucket is owned by the requester). + The Amazon DynamoDB resource with tags to be listed. This value is an + Amazon Resource Name (ARN). """ - cloud_watch_log_group_arn: str | None = ... + next_token: str | None = ... """ - The Amazon Resource Number (ARN) of the Cloudwatch Log Group associated - with this import task. + An optional string that, if supplied, must be copied from the output of + a previous call to ListTagOfResource. When provided in this manner, this + API fetches the next page of results. """ - input_format: str | None = ... + +class ListTagsOfResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsOfResourceInput`.""" + + resource_arn: Required[str] """ - The format of the source data. Valid values are `CSV`, `DYNAMODB_JSON` - or `ION`. + The Amazon DynamoDB resource with tags to be listed. This value is an + Amazon Resource Name (ARN). + """ + next_token: str | None + """ + An optional string that, if supplied, must be copied from the output of + a previous call to ListTagOfResource. When provided in this manner, this + API fetches the next page of results. """ - start_time: datetime | None = ... - """The time at which this import task began.""" - end_time: datetime | None = ... - """The time at which this import task ended.""" @dataclass(kw_only=True) -class ImportTableDescription(_SerdeShape): - """Represents the properties of the table being imported into.""" +class ListTagsOfResourceOutput(_SerdeShape): + """Dataclass for ListTagsOfResourceOutput structure.""" - import_arn: str | None = ... - """The Amazon Resource Number (ARN) corresponding to the import request.""" - import_status: str | None = ... - """The status of the import.""" - table_arn: str | None = ... - """The Amazon Resource Number (ARN) of the table being imported into.""" - table_id: str | None = ... - """The table id corresponding to the table created by import table process.""" - client_token: str | None = ... - """ - The client token that was provided for the import task. Reusing the - client token on retry makes a call to `ImportTable` idempotent. - """ - s3_bucket_source: S3BucketSource | None = ... + tags: list[Tag] | None = ... + """The tags currently associated with the Amazon DynamoDB resource.""" + next_token: str | None = ... """ - Values for the S3 bucket the source file is imported from. Includes - bucket name (required), key prefix (optional) and bucket account owner - ID (optional). + If this value is returned, there are additional results to be displayed. + To retrieve them, call ListTagsOfResource again, with NextToken set to + this value. """ - error_count: int = ... + response_metadata: ResponseMetadata = ... """ - The number of errors occurred on importing the source file into the - target table. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - cloud_watch_log_group_arn: str | None = ... + +@dataclass(kw_only=True) +class LocalSecondaryIndex(_SerdeShape): + """Represents the properties of a local secondary index.""" + + index_name: str """ - The Amazon Resource Number (ARN) of the Cloudwatch Log Group associated - with the target table. + The name of the local secondary index. The name must be unique among all + other indexes on this table. """ - input_format: str | None = ... - """The format of the source data going into the target table.""" - input_format_options: InputFormatOptions | None = ... + key_schema: list[KeySchemaElement] """ - The format options for the data that was imported into the target table. - There is one value, CsvOption. + The complete key schema for the local secondary index, consisting of one + or more pairs of attribute names and key types: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. """ - input_compression_type: str | None = ... + projection: Projection """ - The compression options for the data that has been imported into the - target table. The values are NONE, GZIP, or ZSTD. + Represents attributes that are copied (projected) from the table into + the local secondary index. These are in addition to the primary key + attributes and index key attributes, which are automatically projected. """ - table_creation_parameters: TableCreationParameters | None = ... - """The parameters for the new table that is being imported into.""" - start_time: datetime | None = ... - """The time when this import task started.""" - end_time: datetime | None = ... + +class LocalSecondaryIndexDict(TypedDict, total=False): + """Dictionary form of `LocalSecondaryIndex`.""" + + index_name: Required[str] """ - The time at which the creation of the table associated with this import - task completed. + The name of the local secondary index. The name must be unique among all + other indexes on this table. """ - processed_size_bytes: int | None = ... - """The total size of data processed from the source file, in Bytes.""" - processed_item_count: int = ... - """The total number of items processed from the source file.""" - imported_item_count: int = ... - """The number of items successfully imported into the new table.""" - failure_code: str | None = ... + key_schema: Required[Sequence[KeySchemaElement | KeySchemaElementDict]] """ - The error code corresponding to the failure that the import job ran into - during execution. + The complete key schema for the local secondary index, consisting of one + or more pairs of attribute names and key types: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. """ - failure_message: str | None = ... + projection: Required[Projection | ProjectionDict] """ - The error message corresponding to the failure that the import job ran - into during execution. + Represents attributes that are copied (projected) from the table into + the local secondary index. These are in addition to the primary key + attributes and index key attributes, which are automatically projected. """ @dataclass(kw_only=True) -class ImportTableInput(_SerdeShape): - """Dataclass for ImportTableInput structure.""" +class LocalSecondaryIndexDescription(_SerdeShape): + """Represents the properties of a local secondary index.""" - client_token: str | None = ... + index_name: str | None = ... + """Represents the name of the local secondary index.""" + key_schema: list[KeySchemaElement] | None = ... """ - Providing a `ClientToken` makes the call to `ImportTableInput` - idempotent, meaning that multiple identical calls have the same effect - as one single call. + The complete key schema for the local secondary index, consisting of one + or more pairs of attribute names and key types: - A client token is valid for 8 hours after the first request that uses it - is completed. After 8 hours, any request with the same client token is - treated as a new request. Do not resubmit the same request with the same - client token for more than 8 hours, or the result might not be - idempotent. + - `HASH` - partition key - If you submit a request with the same client token but a change in other - parameters within the 8-hour idempotency window, DynamoDB returns an - `IdempotentParameterMismatch` exception. + - `RANGE` - sort key - This field is autopopulated if not provided. + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. """ - s3_bucket_source: S3BucketSource | None = ... - """The S3 bucket that provides the source for the import.""" - input_format: str | None = ... + projection: Projection | None = ... """ - The format of the source data. Valid values for `ImportFormat` are - `CSV`, `DYNAMODB_JSON` or `ION`. + Represents attributes that are copied (projected) from the table into + the global secondary index. These are in addition to the primary key + attributes and index key attributes, which are automatically projected. """ - input_format_options: InputFormatOptions | None = ... - """Additional properties that specify how the input is formatted,""" - input_compression_type: str | None = ... + index_size_bytes: int | None = ... """ - Type of compression to be used on the input coming from the imported - table. + The total size of the specified index, in bytes. DynamoDB updates this + value approximately every six hours. Recent changes might not be + reflected in this value. """ - table_creation_parameters: TableCreationParameters | None = ... - """Parameters for the table to import the data into.""" + item_count: int | None = ... + """ + The number of items in the specified index. DynamoDB updates this value + approximately every six hours. Recent changes might not be reflected in + this value. + """ + index_arn: str | None = ... + """The Amazon Resource Name (ARN) that uniquely identifies the index.""" @dataclass(kw_only=True) -class ImportTableOutput(_SerdeShape): - """Dataclass for ImportTableOutput structure.""" +class LocalSecondaryIndexInfo(_SerdeShape): + """ + Represents the properties of a local secondary index for the table when + the backup was created. + """ - import_table_description: ImportTableDescription + index_name: str | None = ... + """Represents the name of the local secondary index.""" + key_schema: list[KeySchemaElement] | None = ... """ - Represents the properties of the table created for the import, and - parameters of the import. The import parameters include import status, - how many items were processed, and how many errors were encountered. + The complete key schema for a local secondary index, which consists of + one or more pairs of attribute names and key types: + + - `HASH` - partition key + + - `RANGE` - sort key + + Note: + The partition key of an item is also known as its *hash attribute*. The + term \"hash attribute\" derives from DynamoDB's usage of an internal + hash function to evenly distribute data items across partitions, based + on their partition key values. + + The sort key of an item is also known as its *range attribute*. The term + \"range attribute\" derives from the way DynamoDB stores items with the + same partition key physically close together, in sorted order by the + sort key value. """ - response_metadata: ResponseMetadata = ... + projection: Projection | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Represents attributes that are copied (projected) from the table into + the global secondary index. These are in addition to the primary key + attributes and index key attributes, which are automatically projected. """ +class MultiRegionConsistency(UnknownEnumMixin, StrEnum): + EVENTUAL = "EVENTUAL" + STRONG = "STRONG" + @dataclass(kw_only=True) -class IncrementalExportSpecification(_SerdeShape): +class OnDemandThroughput(_SerdeShape): """ - Optional object containing the parameters specific to an incremental - export. + Sets the maximum number of read and write units for the specified + on-demand table. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. """ - export_from_time: datetime | None = ... + max_read_request_units: int | None = ... """ - Time in the past which provides the inclusive start range for the export - table's data, counted in seconds from the start of the Unix epoch. The - incremental export will reflect the table's state including and after - this point in time. + Maximum number of read request units for the specified table. + + To specify a maximum `OnDemandThroughput` on your table, set the value + of `MaxReadRequestUnits` as greater than or equal to 1. To remove the + maximum `OnDemandThroughput` that is currently set on your table, set + the value of `MaxReadRequestUnits` to -1. + """ + max_write_request_units: int | None = ... + """ + Maximum number of write request units for the specified table. + + To specify a maximum `OnDemandThroughput` on your table, set the value + of `MaxWriteRequestUnits` as greater than or equal to 1. To remove the + maximum `OnDemandThroughput` that is currently set on your table, set + the value of `MaxWriteRequestUnits` to -1. """ - export_to_time: datetime | None = ... + +class OnDemandThroughputDict(TypedDict, total=False): + """Dictionary form of `OnDemandThroughput`.""" + + max_read_request_units: int | None """ - Time in the past which provides the exclusive end range for the export - table's data, counted in seconds from the start of the Unix epoch. The - incremental export will reflect the table's state just prior to this - point in time. If this is not provided, the latest time with data - available will be used. + Maximum number of read request units for the specified table. + + To specify a maximum `OnDemandThroughput` on your table, set the value + of `MaxReadRequestUnits` as greater than or equal to 1. To remove the + maximum `OnDemandThroughput` that is currently set on your table, set + the value of `MaxReadRequestUnits` to -1. """ - export_view_type: str | None = ... + max_write_request_units: int | None """ - The view type that was chosen for the export. Valid values are - `NEW_AND_OLD_IMAGES` and `NEW_IMAGES`. The default value is - `NEW_AND_OLD_IMAGES`. + Maximum number of write request units for the specified table. - `NEW_AND_OLD_IMAGES` exports both the new and old images of each changed - item, while `NEW_IMAGES` exports only the new (latest) image. The view - type you choose determines the structure of each item in the output for - `insert`, `update`, and `delete` operations. For details and examples of - how each view type shapes the export output, see [DynamoDB table export - output - format](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataExport.Output.html) - in the *Amazon DynamoDB Developer Guide*. + To specify a maximum `OnDemandThroughput` on your table, set the value + of `MaxWriteRequestUnits` as greater than or equal to 1. To remove the + maximum `OnDemandThroughput` that is currently set on your table, set + the value of `MaxWriteRequestUnits` to -1. """ @dataclass(kw_only=True) -class IndexNotFoundException(ServiceError, _SerdeShape): - """The operation tried to access a nonexistent index.""" - - response_metadata: ResponseMetadata = ... +class OnDemandThroughputOverride(_SerdeShape): """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Overrides the on-demand throughput settings for this replica table. If + you don't specify a value for this parameter, it uses the source + table's on-demand throughput settings. """ -class IndexStatus(UnknownEnumMixin, StrEnum): - CREATING = "CREATING" - UPDATING = "UPDATING" - DELETING = "DELETING" - ACTIVE = "ACTIVE" + max_read_request_units: int | None = ... + """Maximum number of read request units for the specified replica table.""" -class InputCompressionType(UnknownEnumMixin, StrEnum): - GZIP = "GZIP" - ZSTD = "ZSTD" - NONE = "NONE" +class OnDemandThroughputOverrideDict(TypedDict, total=False): + """Dictionary form of `OnDemandThroughputOverride`.""" -class InputFormat(UnknownEnumMixin, StrEnum): - DYNAMODB_JSON = "DYNAMODB_JSON" - ION = "ION" - CSV = "CSV" + max_read_request_units: int | None + """Maximum number of read request units for the specified replica table.""" @dataclass(kw_only=True) -class InputFormatOptions(_SerdeShape): +class OutputS3Configuration(_SerdeShape): """ - The format options for the data that was imported into the target table. - There is one value, CsvOption. + Contains the Amazon S3 location, encryption settings, and output types + for a bulk operation. The `S3Bucket` and `OutputType` fields are + required. """ - csv: CsvOptions | None = ... - """ - The options for imported source files in CSV format. The values are - Delimiter and HeaderList. + s3_bucket_owner: str | None = ... """ + The Amazon Web Services account ID of the output bucket owner. If you + omit this value, DynamoDB uses the Amazon Web Services account ID of the + requester. -@dataclass(kw_only=True) -class InputS3Configuration(_SerdeShape): + Note: + `S3BucketOwner` is required when the bucket is owned by another Amazon + Web Services account. """ - Contains the Amazon S3 location and format settings for bulk operation - input. The `S3Bucket` and `InputFormat` fields are required. + s3_bucket: str | None = ... + """The name of the Amazon S3 bucket where DynamoDB writes output records.""" + s3_key_prefix: str | None = ... + """An optional key prefix under which DynamoDB writes the output records.""" + s3_sse_algorithm: str | None = ... + """ + The server-side encryption algorithm for the output objects. Valid + values are `AES256` and `KMS`. If you don't specify a value, Amazon S3 + applies the destination bucket's default encryption settings. + """ + s3_sse_kms_key_id: str | None = ... + """ + The identifier of the KMS key that encrypts the output objects. Specify + this value when `S3SseAlgorithm` is `KMS`. Don't specify it when the + algorithm is `AES256`. + """ + output_type: list[str] """ + The following values describe the types of output that DynamoDB writes + for individual input items. Include one or both values. - s3_bucket_owner: str | None = ... + ERROR + + : Reports input records or input objects that DynamoDB couldn't + process. This includes malformed input and item validation failures, + such as a missing or incorrectly typed primary key attribute or an + item that exceeds a DynamoDB limit. + + CONDITION_CHECK_FAILURE + + : Reports the attempted item and, when present, the existing item for + a write whose condition expression evaluates to false. """ - The Amazon Web Services account ID of the input bucket owner. If you + +class OutputS3ConfigurationDict(TypedDict, total=False): + """Dictionary form of `OutputS3Configuration`.""" + + s3_bucket_owner: str | None + """ + The Amazon Web Services account ID of the output bucket owner. If you omit this value, DynamoDB uses the Amazon Web Services account ID of the requester. @@ -4746,111 +8358,148 @@ class InputS3Configuration(_SerdeShape): `S3BucketOwner` is required when the bucket is owned by another Amazon Web Services account. """ - s3_bucket: str - """The name of the Amazon S3 bucket that contains the input objects.""" - s3_key_prefix: str | None = ... + s3_bucket: str | None + """The name of the Amazon S3 bucket where DynamoDB writes output records.""" + s3_key_prefix: str | None + """An optional key prefix under which DynamoDB writes the output records.""" + s3_sse_algorithm: str | None """ - An optional key prefix that limits the input to matching objects in the - Amazon S3 bucket. + The server-side encryption algorithm for the output objects. Valid + values are `AES256` and `KMS`. If you don't specify a value, Amazon S3 + applies the destination bucket's default encryption settings. """ - input_format: str + s3_sse_kms_key_id: str | None """ - The format of the input objects. `DYNAMODB_JSON` uses JSON Lines, with - one JSON record per line. `ION` uses a sequence of Ion structs. + The identifier of the KMS key that encrypts the output objects. Specify + this value when `S3SseAlgorithm` is `KMS`. Don't specify it when the + algorithm is `AES256`. """ - input_compression_type: str | None = ... + output_type: Required[Sequence[str]] """ - The compression type of the input objects. Valid values are `GZIP`, - `ZSTD`, and `NONE`. If you don't specify a value, DynamoDB uses `NONE`. + The following values describe the types of output that DynamoDB writes + for individual input items. Include one or both values. + + ERROR + + : Reports input records or input objects that DynamoDB couldn't + process. This includes malformed input and item validation failures, + such as a missing or incorrectly typed primary key attribute or an + item that exceeds a DynamoDB limit. + + CONDITION_CHECK_FAILURE + + : Reports the attempted item and, when present, the existing item for + a write whose condition expression evaluates to false. """ +class OutputTypeEnum(UnknownEnumMixin, StrEnum): + ERROR = "ERROR" + CONDITION_CHECK_FAILURE = "CONDITION_CHECK_FAILURE" + @dataclass(kw_only=True) -class InternalServerError(ServiceError, _SerdeShape): - """An error occurred on the server side.""" +class ParameterizedStatement(_SerdeShape): + """Represents a PartiQL statement that uses parameters.""" - response_metadata: ResponseMetadata = ... + statement: str + """A PartiQL statement that uses parameters.""" + parameters: list[AttributeValue] | None = ... + """The parameter values.""" + return_values_on_condition_check_failure: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + An optional parameter that returns the item attributes for a PartiQL + `ParameterizedStatement` operation that failed a condition check. + + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. """ -@dataclass(kw_only=True) -class InvalidEndpointException(ServiceError, _SerdeShape): - """Dataclass for InvalidEndpointException structure.""" +class ParameterizedStatementDict(TypedDict, total=False): + """Dictionary form of `ParameterizedStatement`.""" - response_metadata: ResponseMetadata = ... + statement: Required[str] + """A PartiQL statement that uses parameters.""" + parameters: Sequence[AttributeValue | AttributeValueDict] | None + """The parameter values.""" + return_values_on_condition_check_failure: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + An optional parameter that returns the item attributes for a PartiQL + `ParameterizedStatement` operation that failed a condition check. + + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. """ @dataclass(kw_only=True) -class InvalidExportTimeException(ServiceError, _SerdeShape): - """ - The specified `ExportTime` is outside of the point in time recovery - window. +class PointInTimeRecoveryDescription(_SerdeShape): + """The description of the point in time settings applied to the table.""" + + point_in_time_recovery_status: str | None = ... """ + The current state of point in time recovery: - response_metadata: ResponseMetadata = ... + - `ENABLED` - Point in time recovery is enabled. + + - `DISABLED` - Point in time recovery is disabled. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + recovery_period_in_days: int | None = ... """ - -@dataclass(kw_only=True) -class InvalidRestoreTimeException(ServiceError, _SerdeShape): + The number of preceding days for which continuous backups are taken and + maintained. Your table data is only recoverable to any point-in-time + from within the configured recovery period. This parameter is optional. """ - An invalid restore time was specified. RestoreDateTime must be between - EarliestRestorableDateTime and LatestRestorableDateTime. + earliest_restorable_date_time: datetime | None = ... """ - - response_metadata: ResponseMetadata = ... + Specifies the earliest point in time you can restore your table to. You + can restore your table to any point in time during the last 35 days. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + latest_restorable_date_time: datetime | None = ... + """ + `LatestRestorableDateTime` is typically 5 minutes before the current + time. """ @dataclass(kw_only=True) -class ItemCollectionMetrics(_SerdeShape): +class PointInTimeRecoverySpecification(_SerdeShape): + """Represents the settings used to enable point in time recovery.""" + + point_in_time_recovery_enabled: bool """ - Information about item collections, if any, that were affected by the - operation. `ItemCollectionMetrics` is only returned if the request asked - for it. If the table does not have any local secondary indexes, this - information is not returned in the response. + Indicates whether point in time recovery is enabled (true) or disabled + (false) on the table. + """ + recovery_period_in_days: int | None = ... + """ + The number of preceding days for which continuous backups are taken and + maintained. Your table data is only recoverable to any point-in-time + from within the configured recovery period. This parameter is optional. + If no value is provided, the value will default to 35. """ - item_collection_key: dict[str, AttributeValue] | None = ... +class PointInTimeRecoverySpecificationDict(TypedDict, total=False): + """Dictionary form of `PointInTimeRecoverySpecification`.""" + + point_in_time_recovery_enabled: Required[bool] """ - The partition key value of the item collection. This value is the same - as the partition key value of the item. + Indicates whether point in time recovery is enabled (true) or disabled + (false) on the table. """ - size_estimate_range_gb: list[float] | None = ... + recovery_period_in_days: int | None """ - An estimate of item collection size, in gigabytes. This value is a - two-element array containing a lower bound and an upper bound for the - estimate. The estimate includes the size of all the items in the table, - plus the size of all attributes projected into all of the local - secondary indexes on that table. Use this estimate to measure whether a - local secondary index is approaching its size limit. - - The estimate is subject to change over time; therefore, do not rely on - the precision or accuracy of the estimate. + The number of preceding days for which continuous backups are taken and + maintained. Your table data is only recoverable to any point-in-time + from within the configured recovery period. This parameter is optional. + If no value is provided, the value will default to 35. """ +class PointInTimeRecoveryStatus(UnknownEnumMixin, StrEnum): + ENABLED = "ENABLED" + DISABLED = "DISABLED" + @dataclass(kw_only=True) -class ItemCollectionSizeLimitExceededException(ServiceError, _SerdeShape): - """ - An item collection is too large. This exception is only returned for - tables that have one or more local secondary indexes. - """ +class PointInTimeRecoveryUnavailableException(ServiceError, _SerdeShape): + """Point in time recovery has not yet been enabled for this source table.""" response_metadata: ResponseMetadata = ... """ @@ -4861,258 +8510,227 @@ class ItemCollectionSizeLimitExceededException(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ItemResponse(_SerdeShape): - """Details for the requested item.""" - - item: dict[str, AttributeValue] | None = ... - """Map of attribute data consisting of the data type and attribute value.""" - -@dataclass(kw_only=True) -class KeysAndAttributes(_SerdeShape): +class PolicyNotFoundException(ServiceError, _SerdeShape): """ - Represents a set of primary keys and, for each key, the attributes to - retrieve from the table. + The operation tried to access a nonexistent resource-based policy. - For each primary key, you must provide *all* of the key attributes. For - example, with a simple primary key, you only need to provide the - partition key. For a composite primary key, you must provide *both* the - partition key and the sort key. + If you specified an `ExpectedRevisionId`, it's possible that a policy + is present for the resource but its revision ID didn't match the + expected value. """ - keys: list[dict[str, AttributeValue]] - """ - The primary key attribute values that define the items and the - attributes associated with the items. - """ - attributes_to_get: list[str] | None = ... - """ - This is a legacy parameter. Use `ProjectionExpression` instead. For more - information, see [Legacy Conditional - Parameters](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html) - in the *Amazon DynamoDB Developer Guide*. + response_metadata: ResponseMetadata = ... """ - consistent_read: bool | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - The consistency of a read operation. If set to `true`, then a strongly - consistent read is used; otherwise, an eventually consistent read is - used. + +@dataclass(kw_only=True) +class Projection(_SerdeShape): """ - projection_expression: str | None = ... + Represents attributes that are copied (projected) from the table into an + index. These are in addition to the primary key attributes and index key + attributes, which are automatically projected. """ - A string that identifies one or more attributes to retrieve from the - table. These attributes can include scalars, sets, or elements of a JSON - document. The attributes in the `ProjectionExpression` must be separated - by commas. - - If no attribute names are specified, then all attributes will be - returned. If any of the requested attributes are not found, they will - not appear in the result. - For more information, see [Accessing Item - Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - in the *Amazon DynamoDB Developer Guide*. - """ - expression_attribute_names: dict[str, str] | None = ... + projection_type: str | None = ... """ - One or more substitution tokens for attribute names in an expression. - The following are some use cases for using `ExpressionAttributeNames`: + The set of attributes that are projected into the index: - - To access an attribute whose name conflicts with a DynamoDB reserved - word. + - `KEYS_ONLY` - Only the index and primary keys are projected into the + index. - - To create a placeholder for repeating occurrences of an attribute name - in an expression. + - `INCLUDE` - In addition to the attributes described in `KEYS_ONLY`, + the secondary index will include other non-key attributes that you + specify. - - To prevent special characters in an attribute name from being - misinterpreted in an expression. + - `ALL` - All of the table attributes are projected into the index. - Use the **#** character in an expression to dereference an attribute - name. For example, consider the following attribute name: + When using the DynamoDB console, `ALL` is selected by default. + """ + non_key_attributes: list[str] | None = ... + """ + Represents the non-key attribute names which will be projected into the + index. - - `Percentile` + For global and local secondary indexes, the total count of + `NonKeyAttributes` summed across all of the secondary indexes, must not + exceed 100. If you project the same attribute into two different + indexes, this counts as two distinct attributes when determining the + total. This limit only applies when you specify the ProjectionType of + `INCLUDE`. You still can specify the ProjectionType of `ALL` to project + all attributes from the source table, even if the table has more than + 100 attributes. + """ - The name of this attribute conflicts with a reserved word, so it cannot - be used directly in an expression. (For the complete list of reserved - words, see [Reserved - Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) - in the *Amazon DynamoDB Developer Guide*). To work around this, you - could specify the following for `ExpressionAttributeNames`: +class ProjectionDict(TypedDict, total=False): + """Dictionary form of `Projection`.""" - - `{"#P":"Percentile"}` + projection_type: str | None + """ + The set of attributes that are projected into the index: - You could then use this substitution in an expression, as in this - example: + - `KEYS_ONLY` - Only the index and primary keys are projected into the + index. - - `#P = :val` + - `INCLUDE` - In addition to the attributes described in `KEYS_ONLY`, + the secondary index will include other non-key attributes that you + specify. - Note: - Tokens that begin with the **:** character are *expression attribute - values*, which are placeholders for the actual value at runtime. + - `ALL` - All of the table attributes are projected into the index. - For more information on expression attribute names, see [Accessing Item - Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - in the *Amazon DynamoDB Developer Guide*. + When using the DynamoDB console, `ALL` is selected by default. + """ + non_key_attributes: Sequence[str] | None """ + Represents the non-key attribute names which will be projected into the + index. -@dataclass(kw_only=True) -class KeySchemaElement(_SerdeShape): + For global and local secondary indexes, the total count of + `NonKeyAttributes` summed across all of the secondary indexes, must not + exceed 100. If you project the same attribute into two different + indexes, this counts as two distinct attributes when determining the + total. This limit only applies when you specify the ProjectionType of + `INCLUDE`. You still can specify the ProjectionType of `ALL` to project + all attributes from the source table, even if the table has more than + 100 attributes. """ - Represents *a single element* of a key schema. A key schema specifies - the attributes that make up the primary key of a table, or the key - attributes of an index. - A `KeySchemaElement` represents exactly one attribute of the primary - key. For example, a simple primary key would be represented by one - `KeySchemaElement` (for the partition key). A composite primary key - would require one `KeySchemaElement` for the partition key, and another - `KeySchemaElement` for the sort key. +class ProjectionType(UnknownEnumMixin, StrEnum): + ALL = "ALL" + KEYS_ONLY = "KEYS_ONLY" + INCLUDE = "INCLUDE" - A `KeySchemaElement` must be a scalar, top-level attribute (not a nested - attribute). The data type must be one of String, Number, or Binary. The - attribute cannot be nested within a List or a Map. +@dataclass(kw_only=True) +class ProvisionedThroughput(_SerdeShape): """ + Represents the provisioned throughput settings for the specified global + secondary index. You must use `ProvisionedThroughput` or + `OnDemandThroughput` based on your table's capacity mode. - attribute_name: str - """The name of a key attribute.""" - key_type: str + For current minimum and maximum provisioned throughput values, see + [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + in the *Amazon DynamoDB Developer Guide*. """ - The role that this key attribute will assume: - - - `HASH` - partition key - - - `RANGE` - sort key - Note: - The partition key of an item is also known as its *hash attribute*. The - term \"hash attribute\" derives from DynamoDB's usage of an internal - hash function to evenly distribute data items across partitions, based - on their partition key values. - - The sort key of an item is also known as its *range attribute*. The term - \"range attribute\" derives from the way DynamoDB stores items with the - same partition key physically close together, in sorted order by the - sort key value. + read_capacity_units: int """ + The maximum number of strongly consistent reads consumed per second + before DynamoDB returns a `ThrottlingException`. For more information, + see [Specifying Read and Write + Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) + in the *Amazon DynamoDB Developer Guide*. -class KeyType(UnknownEnumMixin, StrEnum): - HASH = "HASH" - RANGE = "RANGE" - -@dataclass(kw_only=True) -class KinesisDataStreamDestination(_SerdeShape): - """Describes a Kinesis data stream destination.""" - - stream_arn: str | None = ... - """The ARN for a specific Kinesis data stream.""" - destination_status: str | None = ... - """The current status of replication.""" - destination_status_description: str | None = ... - """The human-readable string that corresponds to the replica status.""" - approximate_creation_date_time_precision: str | None = ... + If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0. """ - The precision of the Kinesis data stream timestamp. The values are - either `MILLISECOND` or `MICROSECOND`. + write_capacity_units: int """ + The maximum number of writes consumed per second before DynamoDB returns + a `ThrottlingException`. For more information, see [Specifying Read and + Write + Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) + in the *Amazon DynamoDB Developer Guide*. -@dataclass(kw_only=True) -class LimitExceededException(ServiceError, _SerdeShape): + If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0. """ - There is no limit to the number of daily on-demand backups that can be - taken. - - For most purposes, up to 500 simultaneous table operations are allowed - per account. These operations include `CreateTable`, `UpdateTable`, - `DeleteTable`,`UpdateTimeToLive`, `RestoreTableFromBackup`, and - `RestoreTableToPointInTime`. - - When you are creating a table with one or more secondary indexes, you - can have up to 250 such requests running at a time. However, if the - table or index specifications are complex, then DynamoDB might - temporarily reduce the number of concurrent operations. - - When importing into DynamoDB, up to 50 simultaneous import table - operations are allowed per account. - - There is a soft account quota of 2,500 tables. - GetRecords was called with a value of more than 1000 for the limit - request parameter. +class ProvisionedThroughputDict(TypedDict, total=False): + """Dictionary form of `ProvisionedThroughput`.""" - More than 2 processes are reading from the same streams shard at the - same time. Exceeding this limit may result in request throttling. + read_capacity_units: Required[int] """ + The maximum number of strongly consistent reads consumed per second + before DynamoDB returns a `ThrottlingException`. For more information, + see [Specifying Read and Write + Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) + in the *Amazon DynamoDB Developer Guide*. - response_metadata: ResponseMetadata = ... + If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + write_capacity_units: Required[int] + """ + The maximum number of writes consumed per second before DynamoDB returns + a `ThrottlingException`. For more information, see [Specifying Read and + Write + Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) + in the *Amazon DynamoDB Developer Guide*. + + If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0. """ @dataclass(kw_only=True) -class ListBackupsInput(_SerdeShape): - """Dataclass for ListBackupsInput structure.""" - - table_name: str | None = ... +class ProvisionedThroughputDescription(_SerdeShape): """ - Lists the backups from the table specified in `TableName`. You can also - provide the Amazon Resource Name (ARN) of the table in this parameter. + Represents the provisioned throughput settings for the table, consisting + of read and write capacity units, along with data about increases and + decreases. """ - limit: int | None = ... - """Maximum number of backups to return at once.""" - time_range_lower_bound: datetime | None = ... + + last_increase_date_time: datetime | None = ... """ - Only backups created after this time are listed. `TimeRangeLowerBound` - is inclusive. + The date and time of the last provisioned throughput increase for this + table. """ - time_range_upper_bound: datetime | None = ... + last_decrease_date_time: datetime | None = ... """ - Only backups created before this time are listed. `TimeRangeUpperBound` - is exclusive. + The date and time of the last provisioned throughput decrease for this + table. """ - exclusive_start_backup_arn: str | None = ... + number_of_decreases_today: int | None = ... """ - `LastEvaluatedBackupArn` is the Amazon Resource Name (ARN) of the backup - last evaluated when the current page of results was returned, inclusive - of the current page of results. This value may be specified as the - `ExclusiveStartBackupArn` of a new `ListBackups` operation in order to - fetch the next page of results. + The number of provisioned throughput decreases for this table during + this UTC calendar day. For current maximums on provisioned throughput + decreases, see [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + in the *Amazon DynamoDB Developer Guide*. """ - backup_type: str | None = ... + read_capacity_units: int | None = ... """ - The backups from the table specified by `BackupType` are listed. - - Where `BackupType` can be: - - - `USER` - On-demand backup created by you. (The default setting if no - other backup types are specified.) + The maximum number of strongly consistent reads consumed per second + before DynamoDB returns a `ThrottlingException`. Eventually consistent + reads require less effort than strongly consistent reads, so a setting + of 50 `ReadCapacityUnits` per second provides 100 eventually consistent + `ReadCapacityUnits` per second. - - `SYSTEM` - On-demand backup automatically created by DynamoDB. + For a table or global secondary index that uses on-demand capacity mode + (`PAY_PER_REQUEST`), this value is `0`, because on-demand mode does not + use provisioned throughput. + """ + write_capacity_units: int | None = ... + """ + The maximum number of writes consumed per second before DynamoDB returns + a `ThrottlingException`. - - `ALL` - All types of on-demand backups (USER and SYSTEM). + For a table or global secondary index that uses on-demand capacity mode + (`PAY_PER_REQUEST`), this value is `0`, because on-demand mode does not + use provisioned throughput. """ @dataclass(kw_only=True) -class ListBackupsOutput(_SerdeShape): - """Dataclass for ListBackupsOutput structure.""" - - backup_summaries: list[BackupSummary] | None = ... - """List of `BackupSummary` objects.""" - last_evaluated_backup_arn: str | None = ... +class ProvisionedThroughputExceededException(ServiceError, _SerdeShape): + """ + The request was denied due to request throttling. For detailed + information about why the request was throttled and the ARN of the + impacted resource, find the + [ThrottlingReason](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html) + field in the returned exception. The Amazon Web Services SDKs for + DynamoDB automatically retry requests that receive this exception. Your + request is eventually successful, unless your retry queue is too large + to finish. Reduce the frequency of requests and use exponential backoff. + For more information, go to [Error Retries and Exponential + Backoff](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) + in the *Amazon DynamoDB Developer Guide*. """ - The ARN of the backup last evaluated when the current page of results - was returned, inclusive of the current page of results. This value may - be specified as the `ExclusiveStartBackupArn` of a new `ListBackups` - operation in order to fetch the next page of results. - - If `LastEvaluatedBackupArn` is empty, then the last page of results has - been processed and there are no more results to be retrieved. - If `LastEvaluatedBackupArn` is not empty, this may or may not indicate - that there is more data to be returned. All results are guaranteed to - have been returned if and only if no value for `LastEvaluatedBackupArn` - is returned. + throttling_reasons: list[ThrottlingReason] | None = ... + """ + A list of + [ThrottlingReason](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html) + that provide detailed diagnostic information about why the request was + throttled. """ response_metadata: ResponseMetadata = ... """ @@ -5123,494 +8741,495 @@ class ListBackupsOutput(_SerdeShape): """ @dataclass(kw_only=True) -class ListBulkOperationsInput(_SerdeShape): - """Dataclass for ListBulkOperationsInput structure.""" +class ProvisionedThroughputOverride(_SerdeShape): + """ + Replica-specific provisioned throughput settings. If not specified, uses + the source table's provisioned throughput settings. + """ - max_results: int | None = ... + read_capacity_units: int | None = ... """ - The maximum number of bulk operation summaries to return in one page. If - you don't specify a value, DynamoDB uses 10. + Replica-specific read capacity units. If not specified, uses the source + table's read capacity settings. """ - next_token: str | None = ... + +class ProvisionedThroughputOverrideDict(TypedDict, total=False): + """Dictionary form of `ProvisionedThroughputOverride`.""" + + read_capacity_units: int | None """ - An optional string that, if supplied, must be copied from the output of - a previous call to `ListBulkOperations`. When provided in this manner, - the API fetches the next page of results. + Replica-specific read capacity units. If not specified, uses the source + table's read capacity settings. """ @dataclass(kw_only=True) -class ListBulkOperationsOutput(_SerdeShape): - """Dataclass for ListBulkOperationsOutput structure.""" +class Put(_SerdeShape): + """Represents a request to perform a `PutItem` operation.""" - bulk_operations_summary_list: list[BulkOperationSummary] | None = ... + item: dict[str, AttributeValue] """ - A list of bulk operation summaries for the current Amazon Web Services - account and Amazon Web Services Region. + A map of attribute name to attribute values, representing the primary + key of the item to be written by `PutItem`. All of the table's primary + key attributes must be specified, and their data types must match those + of the table's key schema. If any attributes are present in the item + that are part of an index key schema for the table, their types must + match the index key schema. """ - next_token: str | None = ... + table_name: str """ - If this value is returned, there are additional results to be displayed. - To retrieve them, call `ListBulkOperations` again, with `NextToken` set - to this value. + Name of the table in which to write the item. You can also provide the + Amazon Resource Name (ARN) of the table in this parameter. """ - response_metadata: ResponseMetadata = ... + condition_expression: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + A condition that must be satisfied in order for a conditional update to + succeed. """ - -@dataclass(kw_only=True) -class ListContributorInsightsInput(_SerdeShape): - """Dataclass for ListContributorInsightsInput structure.""" - - table_name: str | None = ... + expression_attribute_names: dict[str, str] | None = ... + """One or more substitution tokens for attribute names in an expression.""" + expression_attribute_values: dict[str, AttributeValue] | None = ... + """One or more values that can be substituted in an expression.""" + return_values_on_condition_check_failure: str | None = ... """ - The name of the table. You can also provide the Amazon Resource Name - (ARN) of the table in this parameter. + Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if + the `Put` condition fails. For `ReturnValuesOnConditionCheckFailure`, + the valid values are: NONE and ALL_OLD. """ - next_token: str | None = ... - """A token to for the desired page, if there is one.""" - max_results: int = ... - """Maximum number of results to return per page.""" -@dataclass(kw_only=True) -class ListContributorInsightsOutput(_SerdeShape): - """Dataclass for ListContributorInsightsOutput structure.""" +class PutDict(TypedDict, total=False): + """Dictionary form of `Put`.""" - contributor_insights_summaries: list[ContributorInsightsSummary] | None = ... - """A list of ContributorInsightsSummary.""" - next_token: str | None = ... - """A token to go to the next page if there is one.""" - response_metadata: ResponseMetadata = ... + item: Required[Mapping[str, AttributeValue | AttributeValueDict]] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + A map of attribute name to attribute values, representing the primary + key of the item to be written by `PutItem`. All of the table's primary + key attributes must be specified, and their data types must match those + of the table's key schema. If any attributes are present in the item + that are part of an index key schema for the table, their types must + match the index key schema. + """ + table_name: Required[str] + """ + Name of the table in which to write the item. You can also provide the + Amazon Resource Name (ARN) of the table in this parameter. + """ + condition_expression: str | None + """ + A condition that must be satisfied in order for a conditional update to + succeed. + """ + expression_attribute_names: Mapping[str, str] | None + """One or more substitution tokens for attribute names in an expression.""" + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) + """One or more values that can be substituted in an expression.""" + return_values_on_condition_check_failure: str | None + """ + Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if + the `Put` condition fails. For `ReturnValuesOnConditionCheckFailure`, + the valid values are: NONE and ALL_OLD. """ @dataclass(kw_only=True) -class ListExportsInput(_SerdeShape): - """Dataclass for ListExportsInput structure.""" +class PutItemInput(_SerdeShape): + """Represents the input of a `PutItem` operation.""" - table_arn: str | None = ... - """The Amazon Resource Name (ARN) associated with the exported table.""" - max_results: int | None = ... - """Maximum number of results to return per page.""" - next_token: str | None = ... + table_name: str | None = ... """ - An optional string that, if supplied, must be copied from the output of - a previous call to `ListExports`. When provided in this manner, the API - fetches the next page of results. + The name of the table to contain the item. You can also provide the + Amazon Resource Name (ARN) of the table in this parameter. + """ + item: dict[str, AttributeValue] | None = ... """ + A map of attribute name/value pairs, one for each attribute. Only the + primary key attributes are required; you can optionally provide other + attribute name-value pairs for the item. -@dataclass(kw_only=True) -class ListExportsOutput(_SerdeShape): - """Dataclass for ListExportsOutput structure.""" + You must provide all of the attributes for the primary key. For example, + with a simple primary key, you only need to provide a value for the + partition key. For a composite primary key, you must provide both values + for both the partition key and the sort key. + + If you specify any attributes that are part of an index key, then the + data types for those attributes must match those of the schema in the + table's attribute definition. + + If the table has vector indexes, the following validations apply to + write operations. A violation of any of these constraints results in a + `ValidationException`: + + - The vector attribute must be a list of numbers with dimensions + matching the index configuration. + + - Vector values must fit in 32-bit IEEE-754 floating point format (f32). + + - Partition key and inline filter attributes defined in the search + schema must have data types matching the index schema definition. + + Empty String and Binary attribute values are allowed. Attribute values + of type String and Binary must have a length greater than zero if the + attribute is used as a key attribute for a table or index. + + For more information about primary keys, see [Primary + Key](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html#HowItWorks.CoreComponents.PrimaryKey) + in the *Amazon DynamoDB Developer Guide*. - export_summaries: list[ExportSummary] | None = ... - """A list of `ExportSummary` objects.""" - next_token: str | None = ... + Each element in the `Item` map is an `AttributeValue` object. """ - If this value is returned, there are additional results to be displayed. - To retrieve them, call `ListExports` again, with `NextToken` set to this - value. + expected: dict[str, ExpectedAttributeValue] | None = ... """ - response_metadata: ResponseMetadata = ... + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + in the *Amazon DynamoDB Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + return_values: str | None = ... """ + Use `ReturnValues` if you want to get the item attributes as they + appeared before they were updated with the `PutItem` request. For + `PutItem`, the valid values are: -@dataclass(kw_only=True) -class ListGlobalTablesInput(_SerdeShape): - """Dataclass for ListGlobalTablesInput structure.""" + - `NONE` - If `ReturnValues` is not specified, or if its value is + `NONE`, then nothing is returned. (This setting is the default for + `ReturnValues`.) - exclusive_start_global_table_name: str | None = ... - """The first global table name that this operation will evaluate.""" - limit: int | None = ... - """ - The maximum number of table names to return, if the parameter is not - specified DynamoDB defaults to 100. + - `ALL_OLD` - If `PutItem` overwrote an attribute name-value pair, then + the content of the old item is returned. - If the number of global tables DynamoDB finds reaches this limit, it - stops the operation and returns the table names collected up to that - point, with a table name in the `LastEvaluatedGlobalTableName` to apply - in a subsequent operation to the `ExclusiveStartGlobalTableName` - parameter. - """ - region_name: str | None = ... - """Lists the global tables in a specific Region.""" + The values returned are strongly consistent. -@dataclass(kw_only=True) -class ListGlobalTablesOutput(_SerdeShape): - """Dataclass for ListGlobalTablesOutput structure.""" + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. - global_tables: list[GlobalTable] | None = ... - """List of global table names.""" - last_evaluated_global_table_name: str | None = ... - """Last evaluated global table name.""" - response_metadata: ResponseMetadata = ... + Note: + The `ReturnValues` parameter is used by several DynamoDB operations; + however, `PutItem` does not recognize any values other than `NONE` or + `ALL_OLD`. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + return_consumed_capacity: str | None = ... """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: -@dataclass(kw_only=True) -class ListImportsInput(_SerdeShape): - """Dataclass for ListImportsInput structure.""" + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. - table_arn: str | None = ... - """ - The Amazon Resource Name (ARN) associated with the table that was - imported to. - """ - page_size: int | None = ... - """The number of `ImportSummary `objects returned in a single page.""" - next_token: str | None = ... - """ - An optional string that, if supplied, must be copied from the output of - a previous call to `ListImports`. When provided in this manner, the API - fetches the next page of results. - """ + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). -@dataclass(kw_only=True) -class ListImportsOutput(_SerdeShape): - """Dataclass for ListImportsOutput structure.""" + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. - import_summary_list: list[ImportSummary] | None = ... - """A list of `ImportSummary` objects.""" - next_token: str | None = ... - """ - If this value is returned, there are additional results to be displayed. - To retrieve them, call `ListImports` again, with `NextToken` set to this - value. - """ - response_metadata: ResponseMetadata = ... + - `NONE` - No `ConsumedCapacity` details are included in the response. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + return_item_collection_metrics: str | None = ... """ - -@dataclass(kw_only=True) -class ListTablesInput(_SerdeShape): - """Represents the input of a `ListTables` operation.""" - - exclusive_start_table_name: str | None = ... + Determines whether item collection metrics are returned. If set to + `SIZE`, the response includes statistics about item collections, if any, + that were modified during the operation are returned in the response. If + set to `NONE` (the default), no statistics are returned. """ - The first table name that this operation will evaluate. Use the value - that was returned for `LastEvaluatedTableName` in a previous operation, - so that you can obtain the next page of results. + conditional_operator: str | None = ... """ - limit: int | None = ... + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + in the *Amazon DynamoDB Developer Guide*. """ - A maximum number of table names to return. If this parameter is not - specified, the limit is 100. + condition_expression: str | None = ... """ + A condition that must be satisfied in order for a conditional `PutItem` + operation to succeed. -@dataclass(kw_only=True) -class ListTablesOutput(_SerdeShape): - """Represents the output of a `ListTables` operation.""" + An expression can contain any of the following: - table_names: list[str] | None = ... - """ - The names of the tables associated with the current account at the - current endpoint. The maximum size of this array is 100. + - Functions: + `attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size` - If `LastEvaluatedTableName` also appears in the output, you can use this - value as the `ExclusiveStartTableName` parameter in a subsequent - `ListTables` request and obtain the next page of results. - """ - last_evaluated_table_name: str | None = ... - """ - The name of the last table in the current page of results. Use this - value as the `ExclusiveStartTableName` in a new request to obtain the - next page of results, until all the table names are returned. + These function names are case-sensitive. - If you do not receive a `LastEvaluatedTableName` value in the response, - this means that there are no more table names to be retrieved. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - Comparison operators: `= | <> | < | > | <= | >= | BETWEEN | IN ` -@dataclass(kw_only=True) -class ListTagsOfResourceInput(_SerdeShape): - """Dataclass for ListTagsOfResourceInput structure.""" + - Logical operators: `AND | OR | NOT` - resource_arn: str | None = ... + For more information on condition expressions, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. """ - The Amazon DynamoDB resource with tags to be listed. This value is an - Amazon Resource Name (ARN). + expression_attribute_names: dict[str, str] | None = ... """ - next_token: str | None = ... + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. """ - An optional string that, if supplied, must be copied from the output of - a previous call to ListTagOfResource. When provided in this manner, this - API fetches the next page of results. + expression_attribute_values: dict[str, AttributeValue] | None = ... """ + One or more values that can be substituted in an expression. -@dataclass(kw_only=True) -class ListTagsOfResourceOutput(_SerdeShape): - """Dataclass for ListTagsOfResourceOutput structure.""" + Use the **:** (colon) character in an expression to dereference an + attribute value. For example, suppose that you wanted to check whether + the value of the *ProductStatus* attribute was one of the following: - tags: list[Tag] | None = ... - """The tags currently associated with the Amazon DynamoDB resource.""" - next_token: str | None = ... - """ - If this value is returned, there are additional results to be displayed. - To retrieve them, call ListTagsOfResource again, with NextToken set to - this value. + `Available | Backordered | Discontinued` + + You would first need to specify `ExpressionAttributeValues` as follows: + + `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` + + You could then use these values in an expression, such as this: + + `ProductStatus IN (:avail, :back, :disc)` + + For more information on expression attribute values, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. """ - response_metadata: ResponseMetadata = ... + return_values_on_condition_check_failure: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + An optional parameter that returns the item attributes for a `PutItem` + operation that failed a condition check. + + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. """ -@dataclass(kw_only=True) -class LocalSecondaryIndex(_SerdeShape): - """Represents the properties of a local secondary index.""" +class PutItemInputDict(TypedDict, total=False): + """Dictionary form of `PutItemInput`.""" - index_name: str + table_name: Required[str] """ - The name of the local secondary index. The name must be unique among all - other indexes on this table. + The name of the table to contain the item. You can also provide the + Amazon Resource Name (ARN) of the table in this parameter. """ - key_schema: list[KeySchemaElement] + item: Required[Mapping[str, AttributeValue | AttributeValueDict]] """ - The complete key schema for the local secondary index, consisting of one - or more pairs of attribute names and key types: - - - `HASH` - partition key + A map of attribute name/value pairs, one for each attribute. Only the + primary key attributes are required; you can optionally provide other + attribute name-value pairs for the item. - - `RANGE` - sort key + You must provide all of the attributes for the primary key. For example, + with a simple primary key, you only need to provide a value for the + partition key. For a composite primary key, you must provide both values + for both the partition key and the sort key. - Note: - The partition key of an item is also known as its *hash attribute*. The - term \"hash attribute\" derives from DynamoDB's usage of an internal - hash function to evenly distribute data items across partitions, based - on their partition key values. + If you specify any attributes that are part of an index key, then the + data types for those attributes must match those of the schema in the + table's attribute definition. - The sort key of an item is also known as its *range attribute*. The term - \"range attribute\" derives from the way DynamoDB stores items with the - same partition key physically close together, in sorted order by the - sort key value. - """ - projection: Projection - """ - Represents attributes that are copied (projected) from the table into - the local secondary index. These are in addition to the primary key - attributes and index key attributes, which are automatically projected. - """ + If the table has vector indexes, the following validations apply to + write operations. A violation of any of these constraints results in a + `ValidationException`: -@dataclass(kw_only=True) -class LocalSecondaryIndexDescription(_SerdeShape): - """Represents the properties of a local secondary index.""" + - The vector attribute must be a list of numbers with dimensions + matching the index configuration. - index_name: str | None = ... - """Represents the name of the local secondary index.""" - key_schema: list[KeySchemaElement] | None = ... - """ - The complete key schema for the local secondary index, consisting of one - or more pairs of attribute names and key types: + - Vector values must fit in 32-bit IEEE-754 floating point format (f32). - - `HASH` - partition key + - Partition key and inline filter attributes defined in the search + schema must have data types matching the index schema definition. - - `RANGE` - sort key + Empty String and Binary attribute values are allowed. Attribute values + of type String and Binary must have a length greater than zero if the + attribute is used as a key attribute for a table or index. - Note: - The partition key of an item is also known as its *hash attribute*. The - term \"hash attribute\" derives from DynamoDB's usage of an internal - hash function to evenly distribute data items across partitions, based - on their partition key values. + For more information about primary keys, see [Primary + Key](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html#HowItWorks.CoreComponents.PrimaryKey) + in the *Amazon DynamoDB Developer Guide*. - The sort key of an item is also known as its *range attribute*. The term - \"range attribute\" derives from the way DynamoDB stores items with the - same partition key physically close together, in sorted order by the - sort key value. - """ - projection: Projection | None = ... - """ - Represents attributes that are copied (projected) from the table into - the global secondary index. These are in addition to the primary key - attributes and index key attributes, which are automatically projected. - """ - index_size_bytes: int | None = ... + Each element in the `Item` map is an `AttributeValue` object. """ - The total size of the specified index, in bytes. DynamoDB updates this - value approximately every six hours. Recent changes might not be - reflected in this value. + expected: Mapping[str, ExpectedAttributeValue | ExpectedAttributeValueDict] | None """ - item_count: int | None = ... + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + in the *Amazon DynamoDB Developer Guide*. """ - The number of items in the specified index. DynamoDB updates this value - approximately every six hours. Recent changes might not be reflected in - this value. + return_values: str | None """ - index_arn: str | None = ... - """The Amazon Resource Name (ARN) that uniquely identifies the index.""" + Use `ReturnValues` if you want to get the item attributes as they + appeared before they were updated with the `PutItem` request. For + `PutItem`, the valid values are: -@dataclass(kw_only=True) -class LocalSecondaryIndexInfo(_SerdeShape): - """ - Represents the properties of a local secondary index for the table when - the backup was created. - """ + - `NONE` - If `ReturnValues` is not specified, or if its value is + `NONE`, then nothing is returned. (This setting is the default for + `ReturnValues`.) - index_name: str | None = ... - """Represents the name of the local secondary index.""" - key_schema: list[KeySchemaElement] | None = ... - """ - The complete key schema for a local secondary index, which consists of - one or more pairs of attribute names and key types: + - `ALL_OLD` - If `PutItem` overwrote an attribute name-value pair, then + the content of the old item is returned. - - `HASH` - partition key + The values returned are strongly consistent. - - `RANGE` - sort key + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. Note: - The partition key of an item is also known as its *hash attribute*. The - term \"hash attribute\" derives from DynamoDB's usage of an internal - hash function to evenly distribute data items across partitions, based - on their partition key values. - - The sort key of an item is also known as its *range attribute*. The term - \"range attribute\" derives from the way DynamoDB stores items with the - same partition key physically close together, in sorted order by the - sort key value. - """ - projection: Projection | None = ... + The `ReturnValues` parameter is used by several DynamoDB operations; + however, `PutItem` does not recognize any values other than `NONE` or + `ALL_OLD`. """ - Represents attributes that are copied (projected) from the table into - the global secondary index. These are in addition to the primary key - attributes and index key attributes, which are automatically projected. + return_consumed_capacity: str | None """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: -class MultiRegionConsistency(UnknownEnumMixin, StrEnum): - EVENTUAL = "EVENTUAL" - STRONG = "STRONG" + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. -@dataclass(kw_only=True) -class OnDemandThroughput(_SerdeShape): - """ - Sets the maximum number of read and write units for the specified - on-demand table. If you use this parameter, you must specify - `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. - """ + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). - max_read_request_units: int | None = ... - """ - Maximum number of read request units for the specified table. + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. - To specify a maximum `OnDemandThroughput` on your table, set the value - of `MaxReadRequestUnits` as greater than or equal to 1. To remove the - maximum `OnDemandThroughput` that is currently set on your table, set - the value of `MaxReadRequestUnits` to -1. + - `NONE` - No `ConsumedCapacity` details are included in the response. """ - max_write_request_units: int | None = ... + return_item_collection_metrics: str | None """ - Maximum number of write request units for the specified table. - - To specify a maximum `OnDemandThroughput` on your table, set the value - of `MaxWriteRequestUnits` as greater than or equal to 1. To remove the - maximum `OnDemandThroughput` that is currently set on your table, set - the value of `MaxWriteRequestUnits` to -1. + Determines whether item collection metrics are returned. If set to + `SIZE`, the response includes statistics about item collections, if any, + that were modified during the operation are returned in the response. If + set to `NONE` (the default), no statistics are returned. """ - -@dataclass(kw_only=True) -class OnDemandThroughputOverride(_SerdeShape): + conditional_operator: str | None """ - Overrides the on-demand throughput settings for this replica table. If - you don't specify a value for this parameter, it uses the source - table's on-demand throughput settings. + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + in the *Amazon DynamoDB Developer Guide*. + """ + condition_expression: str | None """ + A condition that must be satisfied in order for a conditional `PutItem` + operation to succeed. - max_read_request_units: int | None = ... - """Maximum number of read request units for the specified replica table.""" + An expression can contain any of the following: -@dataclass(kw_only=True) -class OutputS3Configuration(_SerdeShape): - """ - Contains the Amazon S3 location, encryption settings, and output types - for a bulk operation. The `S3Bucket` and `OutputType` fields are - required. - """ + - Functions: + `attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size` - s3_bucket_owner: str | None = ... - """ - The Amazon Web Services account ID of the output bucket owner. If you - omit this value, DynamoDB uses the Amazon Web Services account ID of the - requester. + These function names are case-sensitive. - Note: - `S3BucketOwner` is required when the bucket is owned by another Amazon - Web Services account. - """ - s3_bucket: str | None = ... - """The name of the Amazon S3 bucket where DynamoDB writes output records.""" - s3_key_prefix: str | None = ... - """An optional key prefix under which DynamoDB writes the output records.""" - s3_sse_algorithm: str | None = ... - """ - The server-side encryption algorithm for the output objects. Valid - values are `AES256` and `KMS`. If you don't specify a value, Amazon S3 - applies the destination bucket's default encryption settings. + - Comparison operators: `= | <> | < | > | <= | >= | BETWEEN | IN ` + + - Logical operators: `AND | OR | NOT` + + For more information on condition expressions, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. """ - s3_sse_kms_key_id: str | None = ... + expression_attribute_names: Mapping[str, str] | None """ - The identifier of the KMS key that encrypts the output objects. Specify - this value when `S3SseAlgorithm` is `KMS`. Don't specify it when the - algorithm is `AES256`. + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. """ - output_type: list[str] + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) """ - The following values describe the types of output that DynamoDB writes - for individual input items. Include one or both values. + One or more values that can be substituted in an expression. - ERROR + Use the **:** (colon) character in an expression to dereference an + attribute value. For example, suppose that you wanted to check whether + the value of the *ProductStatus* attribute was one of the following: - : Reports input records or input objects that DynamoDB couldn't - process. This includes malformed input and item validation failures, - such as a missing or incorrectly typed primary key attribute or an - item that exceeds a DynamoDB limit. + `Available | Backordered | Discontinued` - CONDITION_CHECK_FAILURE + You would first need to specify `ExpressionAttributeValues` as follows: - : Reports the attempted item and, when present, the existing item for a - write whose condition expression evaluates to false. - """ + `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` -class OutputTypeEnum(UnknownEnumMixin, StrEnum): - ERROR = "ERROR" - CONDITION_CHECK_FAILURE = "CONDITION_CHECK_FAILURE" + You could then use these values in an expression, such as this: -@dataclass(kw_only=True) -class ParameterizedStatement(_SerdeShape): - """Represents a PartiQL statement that uses parameters.""" + `ProductStatus IN (:avail, :back, :disc)` - statement: str - """A PartiQL statement that uses parameters.""" - parameters: list[AttributeValue] | None = ... - """The parameter values.""" - return_values_on_condition_check_failure: str | None = ... + For more information on expression attribute values, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. """ - An optional parameter that returns the item attributes for a PartiQL - `ParameterizedStatement` operation that failed a condition check. + return_values_on_condition_check_failure: str | None + """ + An optional parameter that returns the item attributes for a `PutItem` + operation that failed a condition check. There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a @@ -5618,59 +9237,54 @@ class ParameterizedStatement(_SerdeShape): """ @dataclass(kw_only=True) -class PointInTimeRecoveryDescription(_SerdeShape): - """The description of the point in time settings applied to the table.""" - - point_in_time_recovery_status: str | None = ... - """ - The current state of point in time recovery: - - - `ENABLED` - Point in time recovery is enabled. +class PutItemOutput(_SerdeShape): + """Represents the output of a `PutItem` operation.""" - - `DISABLED` - Point in time recovery is disabled. - """ - recovery_period_in_days: int | None = ... - """ - The number of preceding days for which continuous backups are taken and - maintained. Your table data is only recoverable to any point-in-time - from within the configured recovery period. This parameter is optional. - """ - earliest_restorable_date_time: datetime | None = ... - """ - Specifies the earliest point in time you can restore your table to. You - can restore your table to any point in time during the last 35 days. + attributes: dict[str, AttributeValue] | None = ... """ - latest_restorable_date_time: datetime | None = ... + The attribute values as they appeared before the `PutItem` operation, + but only if `ReturnValues` is specified as `ALL_OLD` in the request. + Each element consists of an attribute name and an attribute value. """ - `LatestRestorableDateTime` is typically 5 minutes before the current - time. + consumed_capacity: ConsumedCapacity | None = ... """ + The capacity units consumed by the `PutItem` operation. The data + returned includes the total provisioned throughput consumed, along with + statistics for the table and any indexes involved in the operation. + `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` + parameter was specified. For more information, see [Capacity unity + consumption for write + operations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/read-write-operations.html#write-operation-consumption) + in the *Amazon DynamoDB Developer Guide*. -@dataclass(kw_only=True) -class PointInTimeRecoverySpecification(_SerdeShape): - """Represents the settings used to enable point in time recovery.""" - - point_in_time_recovery_enabled: bool - """ - Indicates whether point in time recovery is enabled (true) or disabled - (false) on the table. - """ - recovery_period_in_days: int | None = ... + If the table has vector indexes, the response includes a `VectorIndexes` + field with `VectorWriteRequestBytes` consumed for each affected vector + index. """ - The number of preceding days for which continuous backups are taken and - maintained. Your table data is only recoverable to any point-in-time - from within the configured recovery period. This parameter is optional. - If no value is provided, the value will default to 35. + item_collection_metrics: ItemCollectionMetrics | None = ... """ + Information about item collections, if any, that were affected by the + `PutItem` operation. `ItemCollectionMetrics` is only returned if the + `ReturnItemCollectionMetrics` parameter was specified. If the table does + not have any local secondary indexes, this information is not returned + in the response. -class PointInTimeRecoveryStatus(UnknownEnumMixin, StrEnum): - ENABLED = "ENABLED" - DISABLED = "DISABLED" + Each `ItemCollectionMetrics` element consists of: -@dataclass(kw_only=True) -class PointInTimeRecoveryUnavailableException(ServiceError, _SerdeShape): - """Point in time recovery has not yet been enabled for this source table.""" + - `ItemCollectionKey` - The partition key value of the item collection. + This is the same as the partition key value of the item itself. + + - `SizeEstimateRangeGB` - An estimate of item collection size, in + gigabytes. This value is a two-element array containing a lower bound + and an upper bound for the estimate. The estimate includes the size of + all the items in the table, plus the size of all attributes projected + into all of the local secondary indexes on that table. Use this + estimate to measure whether a local secondary index is approaching its + size limit. + The estimate is subject to change over time; therefore, do not rely on + the precision or accuracy of the estimate. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -5680,170 +9294,150 @@ class PointInTimeRecoveryUnavailableException(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class PolicyNotFoundException(ServiceError, _SerdeShape): - """ - The operation tried to access a nonexistent resource-based policy. +class PutRequest(_SerdeShape): + """Represents a request to perform a `PutItem` operation on an item.""" - If you specified an `ExpectedRevisionId`, it's possible that a policy - is present for the resource but its revision ID didn't match the - expected value. + item: dict[str, AttributeValue] + """ + A map of attribute name to attribute values, representing the primary + key of an item to be processed by `PutItem`. All of the table's primary + key attributes must be specified, and their data types must match those + of the table's key schema. If any attributes are present in the item + that are part of an index key schema for the table, their types must + match the index key schema. """ - response_metadata: ResponseMetadata = ... +class PutRequestDict(TypedDict, total=False): + """Dictionary form of `PutRequest`.""" + + item: Required[Mapping[str, AttributeValue | AttributeValueDict]] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + A map of attribute name to attribute values, representing the primary + key of an item to be processed by `PutItem`. All of the table's primary + key attributes must be specified, and their data types must match those + of the table's key schema. If any attributes are present in the item + that are part of an index key schema for the table, their types must + match the index key schema. """ @dataclass(kw_only=True) -class Projection(_SerdeShape): - """ - Represents attributes that are copied (projected) from the table into an - index. These are in addition to the primary key attributes and index key - attributes, which are automatically projected. - """ +class PutResourcePolicyInput(_SerdeShape): + """Dataclass for PutResourcePolicyInput structure.""" - projection_type: str | None = ... + resource_arn: str | None = ... """ - The set of attributes that are projected into the index: - - - `KEYS_ONLY` - Only the index and primary keys are projected into the - index. - - - `INCLUDE` - In addition to the attributes described in `KEYS_ONLY`, - the secondary index will include other non-key attributes that you - specify. - - - `ALL` - All of the table attributes are projected into the index. + The Amazon Resource Name (ARN) of the DynamoDB resource to which the + policy will be attached. The resources you can specify include tables + and streams. - When using the DynamoDB console, `ALL` is selected by default. - """ - non_key_attributes: list[str] | None = ... + You can control index permissions using the base table's policy. To + specify the same permission level for your table and its indexes, you + can provide both the table and index Amazon Resource Name (ARN)s in the + `Resource` field of a given `Statement` in your policy document. + Alternatively, to specify different permissions for your table, indexes, + or both, you can define multiple `Statement` fields in your policy + document. """ - Represents the non-key attribute names which will be projected into the - index. - - For global and local secondary indexes, the total count of - `NonKeyAttributes` summed across all of the secondary indexes, must not - exceed 100. If you project the same attribute into two different - indexes, this counts as two distinct attributes when determining the - total. This limit only applies when you specify the ProjectionType of - `INCLUDE`. You still can specify the ProjectionType of `ALL` to project - all attributes from the source table, even if the table has more than - 100 attributes. + policy: str | None = ... """ + An Amazon Web Services resource-based policy document in JSON format. -class ProjectionType(UnknownEnumMixin, StrEnum): - ALL = "ALL" - KEYS_ONLY = "KEYS_ONLY" - INCLUDE = "INCLUDE" + - The maximum size supported for a resource-based policy document is 20 + KB. DynamoDB counts whitespaces when calculating the size of a policy + against this limit. -@dataclass(kw_only=True) -class ProvisionedThroughput(_SerdeShape): - """ - Represents the provisioned throughput settings for the specified global - secondary index. You must use `ProvisionedThroughput` or - `OnDemandThroughput` based on your table's capacity mode. + - Within a resource-based policy, if the action for a DynamoDB + service-linked role (SLR) to replicate data for a global table is + denied, adding or deleting a replica will fail with an error. - For current minimum and maximum provisioned throughput values, see - [Service, Account, and Table - Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) - in the *Amazon DynamoDB Developer Guide*. + For a full list of all considerations that apply while attaching a + resource-based policy, see [Resource-based policy + considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html). """ - - read_capacity_units: int + expected_revision_id: str | None = ... """ - The maximum number of strongly consistent reads consumed per second - before DynamoDB returns a `ThrottlingException`. For more information, - see [Specifying Read and Write - Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) - in the *Amazon DynamoDB Developer Guide*. + A string value that you can use to conditionally update your policy. You + can provide the revision ID of your existing policy to make mutating + requests against that policy. - If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0. - """ - write_capacity_units: int - """ - The maximum number of writes consumed per second before DynamoDB returns - a `ThrottlingException`. For more information, see [Specifying Read and - Write - Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) - in the *Amazon DynamoDB Developer Guide*. + Note: + When you provide an expected revision ID, if the revision ID of the + existing policy on the resource doesn't match or if there's no policy + attached to the resource, your request will be rejected with a + `PolicyNotFoundException`. - If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0. + To conditionally attach a policy when no policy exists for the resource, + specify `NO_POLICY` for the revision ID. """ - -@dataclass(kw_only=True) -class ProvisionedThroughputDescription(_SerdeShape): + confirm_remove_self_resource_access: bool = ... """ - Represents the provisioned throughput settings for the table, consisting - of read and write capacity units, along with data about increases and - decreases. + Set this parameter to `true` to confirm that you want to remove your + permissions to change the policy of this resource in the future. """ - last_increase_date_time: datetime | None = ... - """ - The date and time of the last provisioned throughput increase for this - table. - """ - last_decrease_date_time: datetime | None = ... +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + resource_arn: Required[str] """ - The date and time of the last provisioned throughput decrease for this - table. + The Amazon Resource Name (ARN) of the DynamoDB resource to which the + policy will be attached. The resources you can specify include tables + and streams. + + You can control index permissions using the base table's policy. To + specify the same permission level for your table and its indexes, you + can provide both the table and index Amazon Resource Name (ARN)s in the + `Resource` field of a given `Statement` in your policy document. + Alternatively, to specify different permissions for your table, indexes, + or both, you can define multiple `Statement` fields in your policy + document. """ - number_of_decreases_today: int | None = ... + policy: Required[str] """ - The number of provisioned throughput decreases for this table during - this UTC calendar day. For current maximums on provisioned throughput - decreases, see [Service, Account, and Table - Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) - in the *Amazon DynamoDB Developer Guide*. + An Amazon Web Services resource-based policy document in JSON format. + + - The maximum size supported for a resource-based policy document is 20 + KB. DynamoDB counts whitespaces when calculating the size of a policy + against this limit. + + - Within a resource-based policy, if the action for a DynamoDB + service-linked role (SLR) to replicate data for a global table is + denied, adding or deleting a replica will fail with an error. + + For a full list of all considerations that apply while attaching a + resource-based policy, see [Resource-based policy + considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html). """ - read_capacity_units: int | None = ... + expected_revision_id: str | None """ - The maximum number of strongly consistent reads consumed per second - before DynamoDB returns a `ThrottlingException`. Eventually consistent - reads require less effort than strongly consistent reads, so a setting - of 50 `ReadCapacityUnits` per second provides 100 eventually consistent - `ReadCapacityUnits` per second. + A string value that you can use to conditionally update your policy. You + can provide the revision ID of your existing policy to make mutating + requests against that policy. - For a table or global secondary index that uses on-demand capacity mode - (`PAY_PER_REQUEST`), this value is `0`, because on-demand mode does not - use provisioned throughput. + Note: + When you provide an expected revision ID, if the revision ID of the + existing policy on the resource doesn't match or if there's no policy + attached to the resource, your request will be rejected with a + `PolicyNotFoundException`. + + To conditionally attach a policy when no policy exists for the resource, + specify `NO_POLICY` for the revision ID. """ - write_capacity_units: int | None = ... + confirm_remove_self_resource_access: bool | None """ - The maximum number of writes consumed per second before DynamoDB returns - a `ThrottlingException`. - - For a table or global secondary index that uses on-demand capacity mode - (`PAY_PER_REQUEST`), this value is `0`, because on-demand mode does not - use provisioned throughput. + Set this parameter to `true` to confirm that you want to remove your + permissions to change the policy of this resource in the future. """ @dataclass(kw_only=True) -class ProvisionedThroughputExceededException(ServiceError, _SerdeShape): - """ - The request was denied due to request throttling. For detailed - information about why the request was throttled and the ARN of the - impacted resource, find the - [ThrottlingReason](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html) - field in the returned exception. The Amazon Web Services SDKs for - DynamoDB automatically retry requests that receive this exception. Your - request is eventually successful, unless your retry queue is too large - to finish. Reduce the frequency of requests and use exponential backoff. - For more information, go to [Error Retries and Exponential - Backoff](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) - in the *Amazon DynamoDB Developer Guide*. - """ +class PutResourcePolicyOutput(_SerdeShape): + """Dataclass for PutResourcePolicyOutput structure.""" - throttling_reasons: list[ThrottlingReason] | None = ... + revision_id: str | None = ... """ - A list of - [ThrottlingReason](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ThrottlingReason.html) - that provide detailed diagnostic information about why the request was - throttled. + A unique string that represents the revision ID of the policy. If + you're comparing revision IDs, make sure to always use string + comparison logic. """ response_metadata: ResponseMetadata = ... """ @@ -5854,128 +9448,151 @@ class ProvisionedThroughputExceededException(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ProvisionedThroughputOverride(_SerdeShape): - """ - Replica-specific provisioned throughput settings. If not specified, uses - the source table's provisioned throughput settings. - """ - - read_capacity_units: int | None = ... - """ - Replica-specific read capacity units. If not specified, uses the source - table's read capacity settings. - """ - -@dataclass(kw_only=True) -class Put(_SerdeShape): - """Represents a request to perform a `PutItem` operation.""" +class QueryInput(_SerdeShape): + """Represents the input of a `Query` operation.""" - item: dict[str, AttributeValue] - """ - A map of attribute name to attribute values, representing the primary - key of the item to be written by `PutItem`. All of the table's primary - key attributes must be specified, and their data types must match those - of the table's key schema. If any attributes are present in the item - that are part of an index key schema for the table, their types must - match the index key schema. - """ - table_name: str - """ - Name of the table in which to write the item. You can also provide the - Amazon Resource Name (ARN) of the table in this parameter. + table_name: str | None = ... """ - condition_expression: str | None = ... + The name of the table containing the requested items. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. """ - A condition that must be satisfied in order for a conditional update to - succeed. + index_name: str | None = ... """ - expression_attribute_names: dict[str, str] | None = ... - """One or more substitution tokens for attribute names in an expression.""" - expression_attribute_values: dict[str, AttributeValue] | None = ... - """One or more values that can be substituted in an expression.""" - return_values_on_condition_check_failure: str | None = ... + The name of an index to query. This index can be any local secondary + index or global secondary index on the table. Note that if you use the + `IndexName` parameter, you must also provide `TableName.` """ - Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if - the `Put` condition fails. For `ReturnValuesOnConditionCheckFailure`, - the valid values are: NONE and ALL_OLD. + select: str | None = ... """ + The attributes to be returned in the result. You can retrieve all item + attributes, specific item attributes, the count of matching items, or in + the case of an index, some or all of the attributes projected into the + index. -@dataclass(kw_only=True) -class PutItemInput(_SerdeShape): - """Represents the input of a `PutItem` operation.""" - - table_name: str | None = ... - """ - The name of the table to contain the item. You can also provide the - Amazon Resource Name (ARN) of the table in this parameter. - """ - item: dict[str, AttributeValue] | None = ... - """ - A map of attribute name/value pairs, one for each attribute. Only the - primary key attributes are required; you can optionally provide other - attribute name-value pairs for the item. + - `ALL_ATTRIBUTES` - Returns all of the item attributes from the + specified table or index. If you query a local secondary index, then + for each matching item in the index, DynamoDB fetches the entire item + from the parent table. If the index is configured to project all item + attributes, then all of the data can be obtained from the local + secondary index, and no fetching is required. - You must provide all of the attributes for the primary key. For example, - with a simple primary key, you only need to provide a value for the - partition key. For a composite primary key, you must provide both values - for both the partition key and the sort key. + - `ALL_PROJECTED_ATTRIBUTES` - Allowed only when querying an index. + Retrieves all attributes that have been projected into the index. If + the index is configured to project all attributes, this return value + is equivalent to specifying `ALL_ATTRIBUTES`. - If you specify any attributes that are part of an index key, then the - data types for those attributes must match those of the schema in the - table's attribute definition. + - `COUNT` - Returns the number of matching items, rather than the + matching items themselves. Note that this uses the same quantity of + read capacity units as getting the items, and is subject to the same + item size calculations. - If the table has vector indexes, the following validations apply to - write operations. A violation of any of these constraints results in a - `ValidationException`: + - `SPECIFIC_ATTRIBUTES` - Returns only the attributes listed in + `ProjectionExpression`. This return value is equivalent to specifying + `ProjectionExpression` without specifying any value for `Select`. - - The vector attribute must be a list of numbers with dimensions - matching the index configuration. + If you query or scan a local secondary index and request only + attributes that are projected into that index, the operation will read + only the index and not the table. If any of the requested attributes + are not projected into the local secondary index, DynamoDB fetches + each of these attributes from the parent table. This extra fetching + incurs additional throughput cost and latency. - - Vector values must fit in 32-bit IEEE-754 floating point format (f32). + If you query or scan a global secondary index, you can only request + attributes that are projected into the index. Global secondary index + queries cannot fetch attributes from the parent table. - - Partition key and inline filter attributes defined in the search - schema must have data types matching the index schema definition. + If neither `Select` nor `ProjectionExpression` are specified, DynamoDB + defaults to `ALL_ATTRIBUTES` when accessing a table, and + `ALL_PROJECTED_ATTRIBUTES` when accessing an index. You cannot use both + `Select` and `ProjectionExpression` together in a single request, unless + the value for `Select` is `SPECIFIC_ATTRIBUTES`. (This usage is + equivalent to specifying `ProjectionExpression` without any value for + `Select`.) - Empty String and Binary attribute values are allowed. Attribute values - of type String and Binary must have a length greater than zero if the - attribute is used as a key attribute for a table or index. + Note: + If you use the `ProjectionExpression` parameter, then the value for + `Select` can only be `SPECIFIC_ATTRIBUTES`. Any other value for `Select` + will return an error. + """ + attributes_to_get: list[str] | None = ... + """ + This is a legacy parameter. Use `ProjectionExpression` instead. For more + information, see + [AttributesToGet](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + in the *Amazon DynamoDB Developer Guide*. + """ + limit: int | None = ... + """ + The maximum number of items to evaluate (not necessarily the number of + matching items). If DynamoDB processes the number of items up to the + limit while processing the results, it stops the operation and returns + the matching values up to that point, and a key in `LastEvaluatedKey` to + apply in a subsequent operation, so that you can pick up where you left + off. Also, if the processed dataset size exceeds 1 MB before DynamoDB + reaches this limit, it stops the operation and returns the matching + values up to the limit, and a key in `LastEvaluatedKey` to apply in a + subsequent operation to continue the operation. For more information, + see [Query and + Scan](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) + in the *Amazon DynamoDB Developer Guide*. + """ + consistent_read: bool | None = ... + """ + Determines the read consistency model: If set to `true`, then the + operation uses strongly consistent reads; otherwise, the operation uses + eventually consistent reads. - For more information about primary keys, see [Primary - Key](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html#HowItWorks.CoreComponents.PrimaryKey) + Strongly consistent reads are not supported on global secondary indexes. + If you query a global secondary index with `ConsistentRead` set to + `true`, you will receive a `ValidationException`. + """ + key_conditions: dict[str, Condition] | None = ... + """ + This is a legacy parameter. Use `KeyConditionExpression` instead. For + more information, see + [KeyConditions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.KeyConditions.html) in the *Amazon DynamoDB Developer Guide*. - - Each element in the `Item` map is an `AttributeValue` object. """ - expected: dict[str, ExpectedAttributeValue] | None = ... + query_filter: dict[str, Condition] | None = ... """ - This is a legacy parameter. Use `ConditionExpression` instead. For more + This is a legacy parameter. Use `FilterExpression` instead. For more information, see - [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + [QueryFilter](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.QueryFilter.html) in the *Amazon DynamoDB Developer Guide*. """ - return_values: str | None = ... + conditional_operator: str | None = ... """ - Use `ReturnValues` if you want to get the item attributes as they - appeared before they were updated with the `PutItem` request. For - `PutItem`, the valid values are: - - - `NONE` - If `ReturnValues` is not specified, or if its value is - `NONE`, then nothing is returned. (This setting is the default for - `ReturnValues`.) - - - `ALL_OLD` - If `PutItem` overwrote an attribute name-value pair, then - the content of the old item is returned. + This is a legacy parameter. Use `FilterExpression` instead. For more + information, see + [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + in the *Amazon DynamoDB Developer Guide*. + """ + scan_index_forward: bool | None = ... + """ + Specifies the order for index traversal: If `true` (default), the + traversal is performed in ascending order; if `false`, the traversal is + performed in descending order. - The values returned are strongly consistent. + Items with the same partition key value are stored in sorted order by + sort key. If the sort key data type is Number, the results are stored in + numeric order. For type String, the results are stored in order of UTF-8 + bytes. For type Binary, DynamoDB treats each byte of the binary data as + unsigned. - There is no additional cost associated with requesting a return value - aside from the small network and processing overhead of receiving a - larger response. No read capacity units are consumed. + If `ScanIndexForward` is `true`, DynamoDB returns the results in the + order in which they are stored (by sort key value). This is the default + behavior. If `ScanIndexForward` is `false`, DynamoDB reads the results + in reverse order by sort key value, and then returns the results to the + client. + """ + exclusive_start_key: dict[str, AttributeValue] | None = ... + """ + The primary key of the first item that this operation will evaluate. Use + the value that was returned for `LastEvaluatedKey` in the previous + operation. - Note: - The `ReturnValues` parameter is used by several DynamoDB operations; - however, `PutItem` does not recognize any values other than `NONE` or - `ALL_OLD`. + The data type for `ExclusiveStartKey` must be String, Number, or Binary. + No set data types are allowed. """ return_consumed_capacity: str | None = ... """ @@ -5995,273 +9612,195 @@ class PutItemInput(_SerdeShape): - `NONE` - No `ConsumedCapacity` details are included in the response. """ - return_item_collection_metrics: str | None = ... - """ - Determines whether item collection metrics are returned. If set to - `SIZE`, the response includes statistics about item collections, if any, - that were modified during the operation are returned in the response. If - set to `NONE` (the default), no statistics are returned. - """ - conditional_operator: str | None = ... + projection_expression: str | None = ... """ - This is a legacy parameter. Use `ConditionExpression` instead. For more - information, see - [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + A string that identifies one or more attributes to retrieve from the + table. These attributes can include scalars, sets, or elements of a JSON + document. The attributes in the expression must be separated by commas. + + If no attribute names are specified, then all attributes will be + returned. If any of the requested attributes are not found, they will + not appear in the result. + + For more information, see [Accessing Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) in the *Amazon DynamoDB Developer Guide*. """ - condition_expression: str | None = ... + filter_expression: str | None = ... """ - A condition that must be satisfied in order for a conditional `PutItem` - operation to succeed. - - An expression can contain any of the following: - - - Functions: - `attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size` - - These function names are case-sensitive. + A string that contains conditions that DynamoDB applies after the + `Query` operation, but before the data is returned to you. Items that do + not satisfy the `FilterExpression` criteria are not returned. - - Comparison operators: `= | <> | < | > | <= | >= | BETWEEN | IN ` + A `FilterExpression` does not allow key attributes. You cannot define a + filter expression based on a partition key or a sort key. - - Logical operators: `AND | OR | NOT` + Note: + A `FilterExpression` is applied after the items have already been read; + the process of filtering does not consume any additional read capacity + units. - For more information on condition expressions, see [Condition - Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + For more information, see [Filter + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.FilterExpression.html) in the *Amazon DynamoDB Developer Guide*. """ - expression_attribute_names: dict[str, str] | None = ... + key_condition_expression: str | None = ... """ - One or more substitution tokens for attribute names in an expression. - The following are some use cases for using `ExpressionAttributeNames`: - - - To access an attribute whose name conflicts with a DynamoDB reserved - word. - - - To create a placeholder for repeating occurrences of an attribute name - in an expression. - - - To prevent special characters in an attribute name from being - misinterpreted in an expression. - - Use the **#** character in an expression to dereference an attribute - name. For example, consider the following attribute name: - - - `Percentile` + The condition that specifies the key values for items to be retrieved by + the `Query` action. - The name of this attribute conflicts with a reserved word, so it cannot - be used directly in an expression. (For the complete list of reserved - words, see [Reserved - Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) - in the *Amazon DynamoDB Developer Guide*). To work around this, you - could specify the following for `ExpressionAttributeNames`: + The condition must perform an equality test on a single partition key + value. - - `{"#P":"Percentile"}` + The condition can optionally perform one of several comparison tests on + a single sort key value. This allows `Query` to retrieve one item with a + given partition key value and sort key value, or several items that have + the same partition key value but different sort key values. - You could then use this substitution in an expression, as in this - example: + The partition key equality test is required, and must be specified in + the following format: - - `#P = :val` + `partitionKeyName` *=* `:partitionkeyval` - Note: - Tokens that begin with the **:** character are *expression attribute - values*, which are placeholders for the actual value at runtime. + If you also want to provide a condition for the sort key, it must be + combined using `AND` with the condition for the sort key. Following is + an example, using the **=** comparison operator for the sort key: - For more information on expression attribute names, see [Specifying Item - Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) - in the *Amazon DynamoDB Developer Guide*. - """ - expression_attribute_values: dict[str, AttributeValue] | None = ... - """ - One or more values that can be substituted in an expression. + `partitionKeyName` `=` `:partitionkeyval` `AND` `sortKeyName` `=` + `:sortkeyval` - Use the **:** (colon) character in an expression to dereference an - attribute value. For example, suppose that you wanted to check whether - the value of the *ProductStatus* attribute was one of the following: + Valid comparisons for the sort key condition are as follows: - `Available | Backordered | Discontinued` + - `sortKeyName` `=` `:sortkeyval` - true if the sort key value is equal + to `:sortkeyval`. - You would first need to specify `ExpressionAttributeValues` as follows: + - `sortKeyName` `<` `:sortkeyval` - true if the sort key value is less + than `:sortkeyval`. - `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` + - `sortKeyName` `<=` `:sortkeyval` - true if the sort key value is less + than or equal to `:sortkeyval`. - You could then use these values in an expression, such as this: + - `sortKeyName` `>` `:sortkeyval` - true if the sort key value is + greater than `:sortkeyval`. - `ProductStatus IN (:avail, :back, :disc)` + - `sortKeyName` `>= ` `:sortkeyval` - true if the sort key value is + greater than or equal to `:sortkeyval`. - For more information on expression attribute values, see [Condition - Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) - in the *Amazon DynamoDB Developer Guide*. - """ - return_values_on_condition_check_failure: str | None = ... - """ - An optional parameter that returns the item attributes for a `PutItem` - operation that failed a condition check. + - `sortKeyName` `BETWEEN` `:sortkeyval1` `AND` `:sortkeyval2` - true if + the sort key value is greater than or equal to `:sortkeyval1`, and + less than or equal to `:sortkeyval2`. - There is no additional cost associated with requesting a return value - aside from the small network and processing overhead of receiving a - larger response. No read capacity units are consumed. - """ + - `begins_with (` `sortKeyName`, `:sortkeyval` `)` - true if the sort + key value begins with a particular operand. (You cannot use this + function with a sort key that is of type Number.) Note that the + function name `begins_with` is case-sensitive. -@dataclass(kw_only=True) -class PutItemOutput(_SerdeShape): - """Represents the output of a `PutItem` operation.""" + Use the `ExpressionAttributeValues` parameter to replace tokens such as + `:partitionval` and `:sortval` with actual values at runtime. - attributes: dict[str, AttributeValue] | None = ... - """ - The attribute values as they appeared before the `PutItem` operation, - but only if `ReturnValues` is specified as `ALL_OLD` in the request. - Each element consists of an attribute name and an attribute value. - """ - consumed_capacity: ConsumedCapacity | None = ... - """ - The capacity units consumed by the `PutItem` operation. The data - returned includes the total provisioned throughput consumed, along with - statistics for the table and any indexes involved in the operation. - `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` - parameter was specified. For more information, see [Capacity unity - consumption for write - operations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/read-write-operations.html#write-operation-consumption) - in the *Amazon DynamoDB Developer Guide*. + You can optionally use the `ExpressionAttributeNames` parameter to + replace the names of the partition key and sort key with placeholder + tokens. This option might be necessary if an attribute name conflicts + with a DynamoDB reserved word. For example, the following + `KeyConditionExpression` parameter causes an error because *Size* is a + reserved word: - If the table has vector indexes, the response includes a `VectorIndexes` - field with `VectorWriteRequestBytes` consumed for each affected vector - index. - """ - item_collection_metrics: ItemCollectionMetrics | None = ... - """ - Information about item collections, if any, that were affected by the - `PutItem` operation. `ItemCollectionMetrics` is only returned if the - `ReturnItemCollectionMetrics` parameter was specified. If the table does - not have any local secondary indexes, this information is not returned - in the response. + - `Size = :myval` - Each `ItemCollectionMetrics` element consists of: + To work around this, define a placeholder (such a `#S`) to represent the + attribute name *Size*. `KeyConditionExpression` then is as follows: - - `ItemCollectionKey` - The partition key value of the item collection. - This is the same as the partition key value of the item itself. + - `#S = :myval` - - `SizeEstimateRangeGB` - An estimate of item collection size, in - gigabytes. This value is a two-element array containing a lower bound - and an upper bound for the estimate. The estimate includes the size of - all the items in the table, plus the size of all attributes projected - into all of the local secondary indexes on that table. Use this - estimate to measure whether a local secondary index is approaching its - size limit. + For a list of reserved words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*. - The estimate is subject to change over time; therefore, do not rely on - the precision or accuracy of the estimate. - """ - response_metadata: ResponseMetadata = ... + For more information on `ExpressionAttributeNames` and + `ExpressionAttributeValues`, see [Using Placeholders for Attribute Names + and + Values](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html) + in the *Amazon DynamoDB Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + expression_attribute_names: dict[str, str] | None = ... """ + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: -@dataclass(kw_only=True) -class PutRequest(_SerdeShape): - """Represents a request to perform a `PutItem` operation on an item.""" + - To access an attribute whose name conflicts with a DynamoDB reserved + word. - item: dict[str, AttributeValue] - """ - A map of attribute name to attribute values, representing the primary - key of an item to be processed by `PutItem`. All of the table's primary - key attributes must be specified, and their data types must match those - of the table's key schema. If any attributes are present in the item - that are part of an index key schema for the table, their types must - match the index key schema. - """ + - To create a placeholder for repeating occurrences of an attribute name + in an expression. -@dataclass(kw_only=True) -class PutResourcePolicyInput(_SerdeShape): - """Dataclass for PutResourcePolicyInput structure.""" + - To prevent special characters in an attribute name from being + misinterpreted in an expression. - resource_arn: str | None = ... - """ - The Amazon Resource Name (ARN) of the DynamoDB resource to which the - policy will be attached. The resources you can specify include tables - and streams. + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: - You can control index permissions using the base table's policy. To - specify the same permission level for your table and its indexes, you - can provide both the table and index Amazon Resource Name (ARN)s in the - `Resource` field of a given `Statement` in your policy document. - Alternatively, to specify different permissions for your table, indexes, - or both, you can define multiple `Statement` fields in your policy - document. - """ - policy: str | None = ... - """ - An Amazon Web Services resource-based policy document in JSON format. + - `Percentile` - - The maximum size supported for a resource-based policy document is 20 - KB. DynamoDB counts whitespaces when calculating the size of a policy - against this limit. + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: - - Within a resource-based policy, if the action for a DynamoDB - service-linked role (SLR) to replicate data for a global table is - denied, adding or deleting a replica will fail with an error. + - `{"#P":"Percentile"}` - For a full list of all considerations that apply while attaching a - resource-based policy, see [Resource-based policy - considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html). - """ - expected_revision_id: str | None = ... - """ - A string value that you can use to conditionally update your policy. You - can provide the revision ID of your existing policy to make mutating - requests against that policy. + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` Note: - When you provide an expected revision ID, if the revision ID of the - existing policy on the resource doesn't match or if there's no policy - attached to the resource, your request will be rejected with a - `PolicyNotFoundException`. + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. - To conditionally attach a policy when no policy exists for the resource, - specify `NO_POLICY` for the revision ID. - """ - confirm_remove_self_resource_access: bool = ... + For more information on expression attribute names, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. """ - Set this parameter to `true` to confirm that you want to remove your - permissions to change the policy of this resource in the future. + expression_attribute_values: dict[str, AttributeValue] | None = ... """ + One or more values that can be substituted in an expression. -@dataclass(kw_only=True) -class PutResourcePolicyOutput(_SerdeShape): - """Dataclass for PutResourcePolicyOutput structure.""" + Use the **:** (colon) character in an expression to dereference an + attribute value. For example, suppose that you wanted to check whether + the value of the *ProductStatus* attribute was one of the following: - revision_id: str | None = ... - """ - A unique string that represents the revision ID of the policy. If - you're comparing revision IDs, make sure to always use string - comparison logic. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + `Available | Backordered | Discontinued` + + You would first need to specify `ExpressionAttributeValues` as follows: + + `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` + + You could then use these values in an expression, such as this: + + `ProductStatus IN (:avail, :back, :disc)` + + For more information on expression attribute values, see [Specifying + Conditions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. """ -@dataclass(kw_only=True) -class QueryInput(_SerdeShape): - """Represents the input of a `Query` operation.""" +class QueryInputDict(TypedDict, total=False): + """Dictionary form of `QueryInput`.""" - table_name: str | None = ... + table_name: Required[str] """ The name of the table containing the requested items. You can also provide the Amazon Resource Name (ARN) of the table in this parameter. """ - index_name: str | None = ... + index_name: str | None """ The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the `IndexName` parameter, you must also provide `TableName.` """ - select: str | None = ... + select: str | None """ The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in @@ -6313,14 +9852,14 @@ class QueryInput(_SerdeShape): `Select` can only be `SPECIFIC_ATTRIBUTES`. Any other value for `Select` will return an error. """ - attributes_to_get: list[str] | None = ... + attributes_to_get: Sequence[str] | None """ This is a legacy parameter. Use `ProjectionExpression` instead. For more information, see [AttributesToGet](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) in the *Amazon DynamoDB Developer Guide*. """ - limit: int | None = ... + limit: int | None """ The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the @@ -6335,7 +9874,7 @@ class QueryInput(_SerdeShape): Scan](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) in the *Amazon DynamoDB Developer Guide*. """ - consistent_read: bool | None = ... + consistent_read: bool | None """ Determines the read consistency model: If set to `true`, then the operation uses strongly consistent reads; otherwise, the operation uses @@ -6345,28 +9884,28 @@ class QueryInput(_SerdeShape): If you query a global secondary index with `ConsistentRead` set to `true`, you will receive a `ValidationException`. """ - key_conditions: dict[str, Condition] | None = ... + key_conditions: Mapping[str, Condition | ConditionDict] | None """ This is a legacy parameter. Use `KeyConditionExpression` instead. For more information, see [KeyConditions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.KeyConditions.html) in the *Amazon DynamoDB Developer Guide*. """ - query_filter: dict[str, Condition] | None = ... + query_filter: Mapping[str, Condition | ConditionDict] | None """ This is a legacy parameter. Use `FilterExpression` instead. For more information, see [QueryFilter](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.QueryFilter.html) in the *Amazon DynamoDB Developer Guide*. """ - conditional_operator: str | None = ... + conditional_operator: str | None """ This is a legacy parameter. Use `FilterExpression` instead. For more information, see [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) in the *Amazon DynamoDB Developer Guide*. """ - scan_index_forward: bool | None = ... + scan_index_forward: bool | None """ Specifies the order for index traversal: If `true` (default), the traversal is performed in ascending order; if `false`, the traversal is @@ -6384,7 +9923,7 @@ class QueryInput(_SerdeShape): in reverse order by sort key value, and then returns the results to the client. """ - exclusive_start_key: dict[str, AttributeValue] | None = ... + exclusive_start_key: Mapping[str, AttributeValue | AttributeValueDict] | None """ The primary key of the first item that this operation will evaluate. Use the value that was returned for `LastEvaluatedKey` in the previous @@ -6393,7 +9932,7 @@ class QueryInput(_SerdeShape): The data type for `ExclusiveStartKey` must be String, Number, or Binary. No set data types are allowed. """ - return_consumed_capacity: str | None = ... + return_consumed_capacity: str | None """ Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response: @@ -6411,7 +9950,7 @@ class QueryInput(_SerdeShape): - `NONE` - No `ConsumedCapacity` details are included in the response. """ - projection_expression: str | None = ... + projection_expression: str | None """ A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON @@ -6425,7 +9964,7 @@ class QueryInput(_SerdeShape): Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) in the *Amazon DynamoDB Developer Guide*. """ - filter_expression: str | None = ... + filter_expression: str | None """ A string that contains conditions that DynamoDB applies after the `Query` operation, but before the data is returned to you. Items that do @@ -6443,7 +9982,7 @@ class QueryInput(_SerdeShape): Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.FilterExpression.html) in the *Amazon DynamoDB Developer Guide*. """ - key_condition_expression: str | None = ... + key_condition_expression: str | None """ The condition that specifies the key values for items to be retrieved by the `Query` action. @@ -6521,7 +10060,7 @@ class QueryInput(_SerdeShape): Values](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html) in the *Amazon DynamoDB Developer Guide*. """ - expression_attribute_names: dict[str, str] | None = ... + expression_attribute_names: Mapping[str, str] | None """ One or more substitution tokens for attribute names in an expression. The following are some use cases for using `ExpressionAttributeNames`: @@ -6562,7 +10101,9 @@ class QueryInput(_SerdeShape): Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) in the *Amazon DynamoDB Developer Guide*. """ - expression_attribute_values: dict[str, AttributeValue] | None = ... + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) """ One or more values that can be substituted in an expression. @@ -6656,6 +10197,12 @@ class Replica(_SerdeShape): region_name: str | None = ... """The Region where the replica needs to be created.""" +class ReplicaDict(TypedDict, total=False): + """Dictionary form of `Replica`.""" + + region_name: str | None + """The Region where the replica needs to be created.""" + @dataclass(kw_only=True) class ReplicaAlreadyExistsException(ServiceError, _SerdeShape): """The specified replica is already part of the global table.""" @@ -6726,6 +10273,30 @@ class ReplicaAutoScalingUpdate(_SerdeShape): or global secondary index. """ +class ReplicaAutoScalingUpdateDict(TypedDict, total=False): + """Dictionary form of `ReplicaAutoScalingUpdate`.""" + + region_name: Required[str] + """The Region where the replica exists.""" + replica_global_secondary_index_updates: ( + Sequence[ + ReplicaGlobalSecondaryIndexAutoScalingUpdate + | ReplicaGlobalSecondaryIndexAutoScalingUpdateDict + ] + | None + ) + """ + Represents the auto scaling settings of global secondary indexes that + will be modified. + """ + replica_provisioned_read_capacity_auto_scaling_update: ( + AutoScalingSettingsUpdate | AutoScalingSettingsUpdateDict | None + ) + """ + Represents the auto scaling settings to be modified for a global table + or global secondary index. + """ + @dataclass(kw_only=True) class ReplicaDescription(_SerdeShape): """Contains the details of the replica.""" @@ -6826,6 +10397,26 @@ class ReplicaGlobalSecondaryIndex(_SerdeShape): global secondary index in the specified replica table. """ +class ReplicaGlobalSecondaryIndexDict(TypedDict, total=False): + """Dictionary form of `ReplicaGlobalSecondaryIndex`.""" + + index_name: Required[str] + """The name of the global secondary index.""" + provisioned_throughput_override: ( + ProvisionedThroughputOverride | ProvisionedThroughputOverrideDict | None + ) + """ + Replica table GSI-specific provisioned throughput. If not specified, + uses the source table GSI's read capacity settings. + """ + on_demand_throughput_override: ( + OnDemandThroughputOverride | OnDemandThroughputOverrideDict | None + ) + """ + Overrides the maximum on-demand throughput settings for the specified + global secondary index in the specified replica table. + """ + @dataclass(kw_only=True) class ReplicaGlobalSecondaryIndexAutoScalingDescription(_SerdeShape): """ @@ -6880,6 +10471,19 @@ class ReplicaGlobalSecondaryIndexAutoScalingUpdate(_SerdeShape): or global secondary index. """ +class ReplicaGlobalSecondaryIndexAutoScalingUpdateDict(TypedDict, total=False): + """Dictionary form of `ReplicaGlobalSecondaryIndexAutoScalingUpdate`.""" + + index_name: str | None + """The name of the global secondary index.""" + provisioned_read_capacity_auto_scaling_update: ( + AutoScalingSettingsUpdate | AutoScalingSettingsUpdateDict | None + ) + """ + Represents the auto scaling settings to be modified for a global table + or global secondary index. + """ + @dataclass(kw_only=True) class ReplicaGlobalSecondaryIndexDescription(_SerdeShape): """Represents the properties of a replica global secondary index.""" @@ -6970,6 +10574,27 @@ class ReplicaGlobalSecondaryIndexSettingsUpdate(_SerdeShape): read capacity units. """ +class ReplicaGlobalSecondaryIndexSettingsUpdateDict(TypedDict, total=False): + """Dictionary form of `ReplicaGlobalSecondaryIndexSettingsUpdate`.""" + + index_name: Required[str] + """ + The name of the global secondary index. The name must be unique among + all other indexes on this table. + """ + provisioned_read_capacity_units: int | None + """ + The maximum number of strongly consistent reads consumed per second + before DynamoDB returns a `ThrottlingException`. + """ + provisioned_read_capacity_auto_scaling_settings_update: ( + AutoScalingSettingsUpdate | AutoScalingSettingsUpdateDict | None + ) + """ + Auto scaling settings for managing a global secondary index replica's + read capacity units. + """ + @dataclass(kw_only=True) class ReplicaNotFoundException(ServiceError, _SerdeShape): """The specified replica is no longer part of the global table.""" @@ -7073,6 +10698,43 @@ class ReplicaSettingsUpdate(_SerdeShape): table class. """ +class ReplicaSettingsUpdateDict(TypedDict, total=False): + """Dictionary form of `ReplicaSettingsUpdate`.""" + + region_name: Required[str] + """The Region of the replica to be added.""" + replica_provisioned_read_capacity_units: int | None + """ + The maximum number of strongly consistent reads consumed per second + before DynamoDB returns a `ThrottlingException`. For more information, + see [Specifying Read and Write + Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) + in the *Amazon DynamoDB Developer Guide*. + """ + replica_provisioned_read_capacity_auto_scaling_settings_update: ( + AutoScalingSettingsUpdate | AutoScalingSettingsUpdateDict | None + ) + """ + Auto scaling settings for managing a global table replica's read + capacity units. + """ + replica_global_secondary_index_settings_update: ( + Sequence[ + ReplicaGlobalSecondaryIndexSettingsUpdate + | ReplicaGlobalSecondaryIndexSettingsUpdateDict + ] + | None + ) + """ + Represents the settings of a global secondary index for a global table + that will be modified. + """ + replica_table_class: str | None + """ + Replica-specific table class. If not specified, uses the source table's + table class. + """ + class ReplicaStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" CREATION_FAILED = "CREATION_FAILED" @@ -7141,6 +10803,37 @@ class ReplicationGroupUpdate(_SerdeShape): table and retaining it as a standalone regional table. """ +class ReplicationGroupUpdateDict(TypedDict, total=False): + """Dictionary form of `ReplicationGroupUpdate`.""" + + create: ( + CreateReplicationGroupMemberAction + | CreateReplicationGroupMemberActionDict + | None + ) + """The parameters required for creating a replica for the table.""" + update: ( + UpdateReplicationGroupMemberAction + | UpdateReplicationGroupMemberActionDict + | None + ) + """The parameters required for updating a replica for the table.""" + delete: ( + DeleteReplicationGroupMemberAction + | DeleteReplicationGroupMemberActionDict + | None + ) + """The parameters required for deleting a replica for the table.""" + disassociate: ( + DisassociateReplicationGroupMemberAction + | DisassociateReplicationGroupMemberActionDict + | None + ) + """ + The parameters for disassociating the local replica from the global + table and retaining it as a standalone regional table. + """ + @dataclass(kw_only=True) class ReplicaUpdate(_SerdeShape): """ @@ -7161,6 +10854,17 @@ class ReplicaUpdate(_SerdeShape): delete: DeleteReplicaAction | None = ... """The name of the existing replica to be removed.""" +class ReplicaUpdateDict(TypedDict, total=False): + """Dictionary form of `ReplicaUpdate`.""" + + create: CreateReplicaAction | CreateReplicaActionDict | None + """ + The parameters required for creating a replica on an existing global + table. + """ + delete: DeleteReplicaAction | DeleteReplicaActionDict | None + """The name of the existing replica to be removed.""" + @dataclass(kw_only=True) class RequestLimitExceeded(ServiceError, _SerdeShape): """ diff --git a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/models_1.pyi b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/models_1.pyi index a29b8dd99..1db533da5 100644 --- a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/models_1.pyi +++ b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/models_1.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -10,56 +12,90 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( ArchivalSummary, AttributeDefinition, + AttributeDefinitionDict, AttributeValue, + AttributeValueDict, AttributeValueUpdate, + AttributeValueUpdateDict, AutoScalingSettingsUpdate, + AutoScalingSettingsUpdateDict, BillingModeSummary, BulkOperationDescription, CancellationReason, Condition, ConditionCheck, + ConditionCheckDict, + ConditionDict, ConsumedCapacity, ContinuousBackupsDescription, CreateVectorIndexAction, + CreateVectorIndexActionDict, Delete, + DeleteDict, DeleteRequest, + DeleteRequestDict, DeleteVectorIndexAction, + DeleteVectorIndexActionDict, ExpectedAttributeValue, + ExpectedAttributeValueDict, Get, + GetDict, GlobalSecondaryIndex, GlobalSecondaryIndexAutoScalingUpdate, + GlobalSecondaryIndexAutoScalingUpdateDict, GlobalSecondaryIndexDescription, + GlobalSecondaryIndexDict, GlobalSecondaryIndexInfo, GlobalSecondaryIndexUpdate, + GlobalSecondaryIndexUpdateDict, GlobalTableDescription, GlobalTableGlobalSecondaryIndexSettingsUpdate, + GlobalTableGlobalSecondaryIndexSettingsUpdateDict, GlobalTableWitnessDescription, GlobalTableWitnessGroupUpdate, + GlobalTableWitnessGroupUpdateDict, InputS3Configuration, + InputS3ConfigurationDict, ItemCollectionMetrics, ItemResponse, KeySchemaElement, + KeySchemaElementDict, LocalSecondaryIndex, LocalSecondaryIndexDescription, + LocalSecondaryIndexDict, LocalSecondaryIndexInfo, OnDemandThroughput, + OnDemandThroughputDict, OnDemandThroughputOverride, + OnDemandThroughputOverrideDict, OutputS3Configuration, + OutputS3ConfigurationDict, PointInTimeRecoverySpecification, + PointInTimeRecoverySpecificationDict, Projection, + ProjectionDict, ProvisionedThroughput, ProvisionedThroughputDescription, + ProvisionedThroughputDict, ProvisionedThroughputOverride, + ProvisionedThroughputOverrideDict, Put, + PutDict, PutRequest, + PutRequestDict, ReplicaAutoScalingDescription, ReplicaAutoScalingUpdate, + ReplicaAutoScalingUpdateDict, ReplicaDescription, ReplicaGlobalSecondaryIndex, + ReplicaGlobalSecondaryIndexDict, ReplicaSettingsDescription, ReplicaSettingsUpdate, + ReplicaSettingsUpdateDict, ReplicaUpdate, + ReplicaUpdateDict, ReplicationGroupUpdate, + ReplicationGroupUpdateDict, ServiceError, _SerdeShape, ) @@ -158,6 +194,51 @@ class RestoreTableFromBackupInput(_SerdeShape): or all of the vector indexes at the time of restore. """ +class RestoreTableFromBackupInputDict(TypedDict, total=False): + """Dictionary form of `RestoreTableFromBackupInput`.""" + + target_table_name: Required[str] + """The name of the new table to which the backup must be restored.""" + backup_arn: Required[str] + """The Amazon Resource Name (ARN) associated with the backup.""" + billing_mode_override: str | None + """The billing mode of the restored table.""" + global_secondary_index_override: ( + Sequence[GlobalSecondaryIndex | GlobalSecondaryIndexDict] | None + ) + """ + List of global secondary indexes for the restored table. The indexes + provided should match existing secondary indexes. You can choose to + exclude some or all of the indexes at the time of restore. + """ + local_secondary_index_override: ( + Sequence[LocalSecondaryIndex | LocalSecondaryIndexDict] | None + ) + """ + List of local secondary indexes for the restored table. The indexes + provided should match existing secondary indexes. You can choose to + exclude some or all of the indexes at the time of restore. + """ + provisioned_throughput_override: ( + ProvisionedThroughput | ProvisionedThroughputDict | None + ) + """Provisioned throughput settings for the restored table.""" + on_demand_throughput_override: OnDemandThroughput | OnDemandThroughputDict | None + """ + Sets the maximum number of read and write units for the specified + on-demand table. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + """ + sse_specification_override: SSESpecification | SSESpecificationDict | None + """The new server-side encryption settings for the restored table.""" + vector_index_override: Sequence[VectorIndex | VectorIndexDict] | None + """ + The vector indexes for the restored table. If not specified, all vector + indexes from the backup are restored. The indexes provided must match + existing vector indexes from the backup. You can choose to exclude some + or all of the vector indexes at the time of restore. + """ + @dataclass(kw_only=True) class RestoreTableFromBackupOutput(_SerdeShape): """Dataclass for RestoreTableFromBackupOutput structure.""" @@ -231,6 +312,70 @@ class RestoreTableToPointInTimeInput(_SerdeShape): exclude some or all of the vector indexes at the time of restore. """ +class RestoreTableToPointInTimeInputDict(TypedDict, total=False): + """Dictionary form of `RestoreTableToPointInTimeInput`.""" + + source_table_arn: str | None + """ + The DynamoDB table that will be restored. This value is an Amazon + Resource Name (ARN). + """ + source_table_name: str | None + """Name of the source table that is being restored.""" + target_table_name: Required[str] + """The name of the new table to which it must be restored to.""" + use_latest_restorable_time: bool | None + """ + Restore the table to the latest possible time. + `LatestRestorableDateTime` is typically 5 minutes before the current + time. + """ + restore_date_time: datetime | None + """Time in the past to restore the table to.""" + billing_mode_override: str | None + """The billing mode of the restored table.""" + global_secondary_index_override: ( + Sequence[GlobalSecondaryIndex | GlobalSecondaryIndexDict] | None + ) + """ + List of global secondary indexes for the restored table. The indexes + provided should match existing secondary indexes. You can choose to + exclude some or all of the indexes at the time of restore. + + The `WarmThroughput` setting is not supported on global secondary + indexes when you use `RestoreTableToPointInTime`. Although + `WarmThroughput` appears in the shared index definition, including it in + a `GlobalSecondaryIndexOverride` entry causes the request to fail with a + validation error. + """ + local_secondary_index_override: ( + Sequence[LocalSecondaryIndex | LocalSecondaryIndexDict] | None + ) + """ + List of local secondary indexes for the restored table. The indexes + provided should match existing secondary indexes. You can choose to + exclude some or all of the indexes at the time of restore. + """ + provisioned_throughput_override: ( + ProvisionedThroughput | ProvisionedThroughputDict | None + ) + """Provisioned throughput settings for the restored table.""" + on_demand_throughput_override: OnDemandThroughput | OnDemandThroughputDict | None + """ + Sets the maximum number of read and write units for the specified + on-demand table. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + """ + sse_specification_override: SSESpecification | SSESpecificationDict | None + """The new server-side encryption settings for the restored table.""" + vector_index_override: Sequence[VectorIndex | VectorIndexDict] | None + """ + The vector indexes for the restored table. If not specified, all vector + indexes from the source table are restored. The indexes provided must + match existing vector indexes from the source table. You can choose to + exclude some or all of the vector indexes at the time of restore. + """ + @dataclass(kw_only=True) class RestoreTableToPointInTimeOutput(_SerdeShape): """Dataclass for RestoreTableToPointInTimeOutput structure.""" @@ -297,6 +442,19 @@ class S3BucketSource(_SerdeShape): s3_key_prefix: str | None = ... """The key prefix shared by all S3 Objects that are being imported.""" +class S3BucketSourceDict(TypedDict, total=False): + """Dictionary form of `S3BucketSource`.""" + + s3_bucket_owner: str | None + """ + The account number of the S3 bucket that is being imported from. If the + bucket is owned by the requester this is optional. + """ + s3_bucket: Required[str] + """The S3 bucket that is being imported from.""" + s3_key_prefix: str | None + """The key prefix shared by all S3 Objects that are being imported.""" + class S3SseAlgorithm(UnknownEnumMixin, StrEnum): AES256 = "AES256" KMS = "KMS" @@ -590,131 +748,434 @@ class ScanInput(_SerdeShape): to true, you will receive a `ValidationException`. """ -@dataclass(kw_only=True) -class ScanOutput(_SerdeShape): - """Represents the output of a `Scan` operation.""" +class ScanInputDict(TypedDict, total=False): + """Dictionary form of `ScanInput`.""" - items: list[dict[str, AttributeValue]] | None = ... - """ - An array of item attributes that match the scan criteria. Each element - in this array consists of an attribute name and the value for that - attribute. + table_name: Required[str] """ - count: int = ... - """ - The number of items in the response. - - If you set `ScanFilter` in the request, then `Count` is the number of - items returned after the filter was applied, and `ScannedCount` is the - number of matching items before the filter was applied. + The name of the table containing the requested items or if you provide + `IndexName`, the name of the table to which that index belongs. - If you did not use a filter in the request, then `Count` is the same as - `ScannedCount`. + You can also provide the Amazon Resource Name (ARN) of the table in this + parameter. """ - scanned_count: int = ... + index_name: str | None """ - The number of items evaluated, before any `ScanFilter` is applied. A - high `ScannedCount` value with few, or no, `Count` results indicates an - inefficient `Scan` operation. For more information, see [Count and - ScannedCount](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count) - in the *Amazon DynamoDB Developer Guide*. - - If you did not use a filter in the request, then `ScannedCount` is the - same as `Count`. + The name of a secondary index to scan. This index can be any local + secondary index or global secondary index. Note that if you use the + `IndexName` parameter, you must also provide `TableName`. """ - last_evaluated_key: dict[str, AttributeValue] | None = ... + attributes_to_get: Sequence[str] | None """ - The primary key of the item where the operation stopped, inclusive of - the previous result set. Use this value to start a new operation, - excluding this value in the new request. - - If `LastEvaluatedKey` is empty, then the \"last page\" of results has - been processed and there is no more data to be retrieved. - - If `LastEvaluatedKey` is not empty, it does not necessarily mean that - there is more data in the result set. The only way to know when you have - reached the end of the result set is when `LastEvaluatedKey` is empty. + This is a legacy parameter. Use `ProjectionExpression` instead. For more + information, see + [AttributesToGet](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html) + in the *Amazon DynamoDB Developer Guide*. """ - consumed_capacity: ConsumedCapacity | None = ... + limit: int | None """ - The capacity units consumed by the `Scan` operation. The data returned - includes the total provisioned throughput consumed, along with - statistics for the table and any indexes involved in the operation. - `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` - parameter was specified. For more information, see [Capacity unit - consumption for read - operations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/read-write-operations.html#read-operation-consumption) + The maximum number of items to evaluate (not necessarily the number of + matching items). If DynamoDB processes the number of items up to the + limit while processing the results, it stops the operation and returns + the matching values up to that point, and a key in `LastEvaluatedKey` to + apply in a subsequent operation, so that you can pick up where you left + off. Also, if the processed dataset size exceeds 1 MB before DynamoDB + reaches this limit, it stops the operation and returns the matching + values up to the limit, and a key in `LastEvaluatedKey` to apply in a + subsequent operation to continue the operation. For more information, + see [Working with + Queries](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html) in the *Amazon DynamoDB Developer Guide*. """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + select: str | None """ + The attributes to be returned in the result. You can retrieve all item + attributes, specific item attributes, the count of matching items, or in + the case of an index, some or all of the attributes projected into the + index. -@dataclass(kw_only=True) -class SearchResultItem(_SerdeShape): - """A single result from a `SearchVectors` operation.""" - - item: dict[str, AttributeValue] | None = ... - """ - A map of attribute names to `AttributeValue` objects, representing the - projected attributes of the item returned by the vector search. - """ - score: float = ... - """ - The similarity score for this item relative to the search vector. The - interpretation depends on the distance function configured for the - vector index. - """ + - `ALL_ATTRIBUTES` - Returns all of the item attributes from the + specified table or index. If you query a local secondary index, then + for each matching item in the index, DynamoDB fetches the entire item + from the parent table. If the index is configured to project all item + attributes, then all of the data can be obtained from the local + secondary index, and no fetching is required. -@dataclass(kw_only=True) -class SearchSchemaElement(_SerdeShape): - """An element in the search schema of a vector index.""" + - `ALL_PROJECTED_ATTRIBUTES` - Allowed only when querying an index. + Retrieves all attributes that have been projected into the index. If + the index is configured to project all attributes, this return value + is equivalent to specifying `ALL_ATTRIBUTES`. - attribute_name: str - """The name of the attribute.""" - search_schema_element_type: str - """ - The role of the attribute in the search schema. Valid values: + - `COUNT` - Returns the number of matching items, rather than the + matching items themselves. Note that this uses the same quantity of + read capacity units as getting the items, and is subject to the same + item size calculations. - - `HASH` - A partition key that partitions the vector index for - independent scaling. When specified, you must provide this - attribute's value in the `SearchConditionExpression`. + - `SPECIFIC_ATTRIBUTES` - Returns only the attributes listed in + `ProjectionExpression`. This return value is equivalent to specifying + `ProjectionExpression` without specifying any value for `Select`. - - `INLINE_FILTER` - An attribute projected into the vector index for - filtering at the storage layer during search. Inline filters are - optional in the `SearchConditionExpression`. - """ + If you query or scan a local secondary index and request only + attributes that are projected into that index, the operation reads + only the index and not the table. If any of the requested attributes + are not projected into the local secondary index, DynamoDB fetches + each of these attributes from the parent table. This extra fetching + incurs additional throughput cost and latency. -class SearchSchemaElementType(UnknownEnumMixin, StrEnum): - HASH = "HASH" - INLINE_FILTER = "INLINE_FILTER" + If you query or scan a global secondary index, you can only request + attributes that are projected into the index. Global secondary index + queries cannot fetch attributes from the parent table. -@dataclass(kw_only=True) -class SearchVectorsInput(_SerdeShape): - """Dataclass for SearchVectorsInput structure.""" + If neither `Select` nor `ProjectionExpression` are specified, DynamoDB + defaults to `ALL_ATTRIBUTES` when accessing a table, and + `ALL_PROJECTED_ATTRIBUTES` when accessing an index. You cannot use both + `Select` and `ProjectionExpression` together in a single request, unless + the value for `Select` is `SPECIFIC_ATTRIBUTES`. (This usage is + equivalent to specifying `ProjectionExpression` without any value for + `Select`.) - table_name: str | None = ... + Note: + If you use the `ProjectionExpression` parameter, then the value for + `Select` can only be `SPECIFIC_ATTRIBUTES`. Any other value for `Select` + will return an error. """ - The name or Amazon Resource Name (ARN) of the table containing the - vector index. + scan_filter: Mapping[str, Condition | ConditionDict] | None """ - index_name: str | None = ... + This is a legacy parameter. Use `FilterExpression` instead. For more + information, see + [ScanFilter](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html) + in the *Amazon DynamoDB Developer Guide*. """ - The name of the vector index to search. The index must be in the - `ACTIVE` state. + conditional_operator: str | None """ - return_consumed_capacity: str | None = ... + This is a legacy parameter. Use `FilterExpression` instead. For more + information, see + [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + in the *Amazon DynamoDB Developer Guide*. """ - Determines the level of detail about either provisioned or on-demand - throughput consumption that is returned in the response: + exclusive_start_key: Mapping[str, AttributeValue | AttributeValueDict] | None + """ + The primary key of the first item that this operation will evaluate. Use + the value that was returned for `LastEvaluatedKey` in the previous + operation. - - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for - the operation, together with `ConsumedCapacity` for each table and - secondary index that was accessed. + The data type for `ExclusiveStartKey` must be String, Number or Binary. + No set data types are allowed. + + In a parallel scan, a `Scan` request that includes `ExclusiveStartKey` + must specify the same segment whose previous `Scan` returned the + corresponding value of `LastEvaluatedKey`. + """ + return_consumed_capacity: str | None + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + total_segments: int | None + """ + For a parallel `Scan` request, `TotalSegments` represents the total + number of segments into which the `Scan` operation will be divided. The + value of `TotalSegments` corresponds to the number of application + workers that will perform the parallel scan. For example, if you want to + use four application threads to scan a table or an index, specify a + `TotalSegments` value of 4. + + The value for `TotalSegments` must be greater than or equal to 1, and + less than or equal to 1000000. If you specify a `TotalSegments` value of + 1, the `Scan` operation will be sequential rather than parallel. + + If you specify `TotalSegments`, you must also specify `Segment`. + """ + segment: int | None + """ + For a parallel `Scan` request, `Segment` identifies an individual + segment to be scanned by an application worker. + + Segment IDs are zero-based, so the first segment is always 0. For + example, if you want to use four application threads to scan a table or + an index, then the first thread specifies a `Segment` value of 0, the + second thread specifies 1, and so on. + + The value of `LastEvaluatedKey` returned from a parallel `Scan` request + must be used as `ExclusiveStartKey` with the same segment ID in a + subsequent `Scan` operation. + + The value for `Segment` must be greater than or equal to 0, and less + than the value provided for `TotalSegments`. + + If you provide `Segment`, you must also provide `TotalSegments`. + """ + projection_expression: str | None + """ + A string that identifies one or more attributes to retrieve from the + specified table or index. These attributes can include scalars, sets, or + elements of a JSON document. The attributes in the expression must be + separated by commas. + + If no attribute names are specified, then all attributes will be + returned. If any of the requested attributes are not found, they will + not appear in the result. + + For more information, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + filter_expression: str | None + """ + A string that contains conditions that DynamoDB applies after the `Scan` + operation, but before the data is returned to you. Items that do not + satisfy the `FilterExpression` criteria are not returned. + + Note: + A `FilterExpression` is applied after the items have already been read; + the process of filtering does not consume any additional read capacity + units. + + For more information, see [Filter + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.FilterExpression) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_names: Mapping[str, str] | None + """ + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*). To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information on expression attribute names, see [Specifying Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) + """ + One or more values that can be substituted in an expression. + + Use the **:** (colon) character in an expression to dereference an + attribute value. For example, suppose that you wanted to check whether + the value of the `ProductStatus` attribute was one of the following: + + `Available | Backordered | Discontinued` + + You would first need to specify `ExpressionAttributeValues` as follows: + + `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` + + You could then use these values in an expression, such as this: + + `ProductStatus IN (:avail, :back, :disc)` + + For more information on expression attribute values, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. + """ + consistent_read: bool | None + """ + A Boolean value that determines the read consistency model during the + scan: + + - If `ConsistentRead` is `false`, then the data returned from `Scan` + might not contain the results from other recently completed write + operations (`PutItem`, `UpdateItem`, or `DeleteItem`). + + - If `ConsistentRead` is `true`, then all of the write operations that + completed before the `Scan` began are guaranteed to be contained in + the `Scan` response. + + The default setting for `ConsistentRead` is `false`. + + The `ConsistentRead` parameter is not supported on global secondary + indexes. If you scan a global secondary index with `ConsistentRead` set + to true, you will receive a `ValidationException`. + """ + +@dataclass(kw_only=True) +class ScanOutput(_SerdeShape): + """Represents the output of a `Scan` operation.""" + + items: list[dict[str, AttributeValue]] | None = ... + """ + An array of item attributes that match the scan criteria. Each element + in this array consists of an attribute name and the value for that + attribute. + """ + count: int = ... + """ + The number of items in the response. + + If you set `ScanFilter` in the request, then `Count` is the number of + items returned after the filter was applied, and `ScannedCount` is the + number of matching items before the filter was applied. + + If you did not use a filter in the request, then `Count` is the same as + `ScannedCount`. + """ + scanned_count: int = ... + """ + The number of items evaluated, before any `ScanFilter` is applied. A + high `ScannedCount` value with few, or no, `Count` results indicates an + inefficient `Scan` operation. For more information, see [Count and + ScannedCount](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count) + in the *Amazon DynamoDB Developer Guide*. + + If you did not use a filter in the request, then `ScannedCount` is the + same as `Count`. + """ + last_evaluated_key: dict[str, AttributeValue] | None = ... + """ + The primary key of the item where the operation stopped, inclusive of + the previous result set. Use this value to start a new operation, + excluding this value in the new request. + + If `LastEvaluatedKey` is empty, then the \"last page\" of results has + been processed and there is no more data to be retrieved. + + If `LastEvaluatedKey` is not empty, it does not necessarily mean that + there is more data in the result set. The only way to know when you have + reached the end of the result set is when `LastEvaluatedKey` is empty. + """ + consumed_capacity: ConsumedCapacity | None = ... + """ + The capacity units consumed by the `Scan` operation. The data returned + includes the total provisioned throughput consumed, along with + statistics for the table and any indexes involved in the operation. + `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` + parameter was specified. For more information, see [Capacity unit + consumption for read + operations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/read-write-operations.html#read-operation-consumption) + in the *Amazon DynamoDB Developer Guide*. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class SearchResultItem(_SerdeShape): + """A single result from a `SearchVectors` operation.""" + + item: dict[str, AttributeValue] | None = ... + """ + A map of attribute names to `AttributeValue` objects, representing the + projected attributes of the item returned by the vector search. + """ + score: float = ... + """ + The similarity score for this item relative to the search vector. The + interpretation depends on the distance function configured for the + vector index. + """ + +@dataclass(kw_only=True) +class SearchSchemaElement(_SerdeShape): + """An element in the search schema of a vector index.""" + + attribute_name: str + """The name of the attribute.""" + search_schema_element_type: str + """ + The role of the attribute in the search schema. Valid values: + + - `HASH` - A partition key that partitions the vector index for + independent scaling. When specified, you must provide this + attribute's value in the `SearchConditionExpression`. + + - `INLINE_FILTER` - An attribute projected into the vector index for + filtering at the storage layer during search. Inline filters are + optional in the `SearchConditionExpression`. + """ + +class SearchSchemaElementDict(TypedDict, total=False): + """Dictionary form of `SearchSchemaElement`.""" + + attribute_name: Required[str] + """The name of the attribute.""" + search_schema_element_type: Required[str] + """ + The role of the attribute in the search schema. Valid values: + + - `HASH` - A partition key that partitions the vector index for + independent scaling. When specified, you must provide this + attribute's value in the `SearchConditionExpression`. + + - `INLINE_FILTER` - An attribute projected into the vector index for + filtering at the storage layer during search. Inline filters are + optional in the `SearchConditionExpression`. + """ + +class SearchSchemaElementType(UnknownEnumMixin, StrEnum): + HASH = "HASH" + INLINE_FILTER = "INLINE_FILTER" + +@dataclass(kw_only=True) +class SearchVectorsInput(_SerdeShape): + """Dataclass for SearchVectorsInput structure.""" + + table_name: str | None = ... + """ + The name or Amazon Resource Name (ARN) of the table containing the + vector index. + """ + index_name: str | None = ... + """ + The name of the vector index to search. The index must be in the + `ACTIVE` state. + """ + return_consumed_capacity: str | None = ... + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. Note that some operations, such as `GetItem` and `BatchGetItem`, do not access any indexes at all. In these cases, specifying `INDEXES` @@ -765,6 +1226,79 @@ class SearchVectorsInput(_SerdeShape): top_k: int | None = ... """The number of most similar results to return.""" +class SearchVectorsInputDict(TypedDict, total=False): + """Dictionary form of `SearchVectorsInput`.""" + + table_name: Required[str] + """ + The name or Amazon Resource Name (ARN) of the table containing the + vector index. + """ + index_name: Required[str] + """ + The name of the vector index to search. The index must be in the + `ACTIVE` state. + """ + return_consumed_capacity: str | None + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + expression_attribute_names: Mapping[str, str] | None + """ + One or more substitution tokens for attribute names in an expression. + Use the `#` character in an expression to dereference an attribute name. + """ + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) + """ + One or more values that can be substituted in an expression. Use the `:` + character in an expression to dereference an attribute value. + """ + projection_expression: str | None + """ + A string that identifies one or more attributes to retrieve from the + index. Separate attribute names with commas. If not specified, the + operation returns all attributes projected into the vector index. + + Only attributes projected into the vector index can be retrieved. + """ + search_vector: Required[Sequence[AttributeValue | AttributeValueDict]] + """ + The search vector to compare against the indexed vectors. Each element + is a 32-bit IEEE-754 floating point number, provided in DynamoDB list + format. + + The number of dimensions must match the number of dimensions configured + for the vector index. + """ + search_condition_expression: str | None + """ + A condition expression used to filter the vector search results. The + expression can reference attributes defined in the vector index search + schema, including `HASH` and `INLINE_FILTER` key elements. + + The `HASH` and `INLINE_FILTER` attributes support only the equality + operator (`=`). You can reference only top-level attributes from the + search schema. + """ + top_k: Required[int] + """The number of most similar results to return.""" + @dataclass(kw_only=True) class SearchVectorsOutput(_SerdeShape): """Dataclass for SearchVectorsOutput structure.""" @@ -934,6 +1468,34 @@ class SSESpecification(_SerdeShape): different from the default DynamoDB key `alias/aws/dynamodb`. """ +class SSESpecificationDict(TypedDict, total=False): + """Dictionary form of `SSESpecification`.""" + + enabled: bool | None + """ + Indicates whether server-side encryption is done using an Amazon Web + Services managed key or an Amazon Web Services owned key. If enabled + (true), server-side encryption type is set to `KMS` and an Amazon Web + Services managed key is used (KMS charges apply). If disabled (false) or + not specified, server-side encryption is set to Amazon Web Services + owned key. + """ + sse_type: str | None + """ + Server-side encryption type. The only supported value is: + + - `KMS` - Server-side encryption that uses Key Management Service. The + key is stored in your account and is managed by KMS (KMS charges + apply). + """ + kms_master_key_id: str | None + """ + The KMS key that should be used for the KMS encryption. To specify a + key, use its key ID, Amazon Resource Name (ARN), alias name, or alias + ARN. Note that you should only provide this parameter if the key is + different from the default DynamoDB key `alias/aws/dynamodb`. + """ + class SSEStatus(UnknownEnumMixin, StrEnum): ENABLING = "ENABLING" ENABLED = "ENABLED" @@ -988,6 +1550,48 @@ class StartBulkPutItemsInput(_SerdeShape): `STANDARD`. """ +class StartBulkPutItemsInputDict(TypedDict, total=False): + """Dictionary form of `StartBulkPutItemsInput`.""" + + client_token: str | None + """ + A unique, case-sensitive identifier that ensures the bulk operation + starts no more than one time. During the 8 hours after the initial + request, repeated requests that use the same token and parameters return + the same bulk operation. If a request reuses the token with different + parameters, DynamoDB returns an `IdempotentParameterMismatchException`. + If you omit the token, an Amazon Web Services SDK automatically + generates one. + + This field is autopopulated if not provided. + """ + input_s3_configuration: Required[InputS3Configuration | InputS3ConfigurationDict] + """ + The Amazon S3 location, data format, and compression settings for the + input objects. + """ + output_s3_configuration: Required[OutputS3Configuration | OutputS3ConfigurationDict] + """ + The Amazon S3 location, encryption settings, and output types for the + bulk operation. + """ + table_name: Required[str] + """The name or ARN of the existing DynamoDB table that receives the items.""" + max_write_request_units: int | None + """ + The maximum rate, in write request units per second, at which the bulk + operation attempts to write. The value must be at least 1,024. With this + setting, you limit only the bulk operation; the table's provisioned or + on-demand capacity settings don't change. The actual write rate can be + lower. + """ + performance_tier: str | None + """ + The performance tier for the bulk operation. Valid values are `STANDARD` + and `ACCELERATED`. If you don't specify a value, the operation uses + `STANDARD`. + """ + @dataclass(kw_only=True) class StartBulkPutItemsOutput(_SerdeShape): """Dataclass for StartBulkPutItemsOutput structure.""" @@ -1030,6 +1634,33 @@ class StreamSpecification(_SerdeShape): item are written to the stream. """ +class StreamSpecificationDict(TypedDict, total=False): + """Dictionary form of `StreamSpecification`.""" + + stream_enabled: Required[bool] + """ + Indicates whether DynamoDB Streams is enabled (true) or disabled (false) + on the table. + """ + stream_view_type: str | None + """ + When an item in the table is modified, `StreamViewType` determines what + information is written to the stream for this table. Valid values for + `StreamViewType` are: + + - `KEYS_ONLY` - Only the key attributes of the modified item are written + to the stream. + + - `NEW_IMAGE` - The entire item, as it appears after it was modified, is + written to the stream. + + - `OLD_IMAGE` - The entire item, as it appeared before it was modified, + is written to the stream. + + - `NEW_AND_OLD_IMAGES` - Both the new and the old item images of the + item are written to the stream. + """ + class StreamViewType(UnknownEnumMixin, StrEnum): NEW_IMAGE = "NEW_IMAGE" OLD_IMAGE = "OLD_IMAGE" @@ -1066,44 +1697,93 @@ class TableAutoScalingDescription(_SerdeShape): - `ACTIVE` - The table is ready for use. """ - replicas: list[ReplicaAutoScalingDescription] | None = ... - """Represents replicas of the global table.""" - -class TableClass(UnknownEnumMixin, StrEnum): - STANDARD = "STANDARD" - STANDARD_INFREQUENT_ACCESS = "STANDARD_INFREQUENT_ACCESS" - -@dataclass(kw_only=True) -class TableClassSummary(_SerdeShape): - """Contains details of the table class.""" - - table_class: str | None = ... + replicas: list[ReplicaAutoScalingDescription] | None = ... + """Represents replicas of the global table.""" + +class TableClass(UnknownEnumMixin, StrEnum): + STANDARD = "STANDARD" + STANDARD_INFREQUENT_ACCESS = "STANDARD_INFREQUENT_ACCESS" + +@dataclass(kw_only=True) +class TableClassSummary(_SerdeShape): + """Contains details of the table class.""" + + table_class: str | None = ... + """ + The table class of the specified table. Valid values are `STANDARD` and + `STANDARD_INFREQUENT_ACCESS`. + """ + last_update_date_time: datetime | None = ... + """The date and time at which the table class was last updated.""" + +@dataclass(kw_only=True) +class TableCreationParameters(_SerdeShape): + """The parameters for the table created as part of the import operation.""" + + table_name: str + """The name of the table created as part of the import operation.""" + attribute_definitions: list[AttributeDefinition] + """The attributes of the table created as part of the import operation.""" + key_schema: list[KeySchemaElement] + """ + The primary key and option sort key of the table created as part of the + import operation. + """ + billing_mode: str | None = ... + """ + The billing mode for provisioning the table created as part of the + import operation. + """ + provisioned_throughput: ProvisionedThroughput | None = ... + """ + Represents the provisioned throughput settings for the specified global + secondary index. You must use `ProvisionedThroughput` or + `OnDemandThroughput` based on your table's capacity mode. + + For current minimum and maximum provisioned throughput values, see + [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + in the *Amazon DynamoDB Developer Guide*. + """ + on_demand_throughput: OnDemandThroughput | None = ... + """ + Sets the maximum number of read and write units for the specified + on-demand table. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + """ + sse_specification: SSESpecification | None = ... + """Represents the settings used to enable server-side encryption.""" + global_secondary_indexes: list[GlobalSecondaryIndex] | None = ... + """ + The Global Secondary Indexes (GSI) of the table to be created as part of + the import operation. """ - The table class of the specified table. Valid values are `STANDARD` and - `STANDARD_INFREQUENT_ACCESS`. + vector_indexes: list[VectorIndex] | None = ... + """ + The vector indexes of the table to be created as part of the import + operation. """ - last_update_date_time: datetime | None = ... - """The date and time at which the table class was last updated.""" -@dataclass(kw_only=True) -class TableCreationParameters(_SerdeShape): - """The parameters for the table created as part of the import operation.""" +class TableCreationParametersDict(TypedDict, total=False): + """Dictionary form of `TableCreationParameters`.""" - table_name: str + table_name: Required[str] """The name of the table created as part of the import operation.""" - attribute_definitions: list[AttributeDefinition] + attribute_definitions: Required[ + Sequence[AttributeDefinition | AttributeDefinitionDict] + ] """The attributes of the table created as part of the import operation.""" - key_schema: list[KeySchemaElement] + key_schema: Required[Sequence[KeySchemaElement | KeySchemaElementDict]] """ The primary key and option sort key of the table created as part of the import operation. """ - billing_mode: str | None = ... + billing_mode: str | None """ The billing mode for provisioning the table created as part of the import operation. """ - provisioned_throughput: ProvisionedThroughput | None = ... + provisioned_throughput: ProvisionedThroughput | ProvisionedThroughputDict | None """ Represents the provisioned throughput settings for the specified global secondary index. You must use `ProvisionedThroughput` or @@ -1114,20 +1794,22 @@ class TableCreationParameters(_SerdeShape): Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the *Amazon DynamoDB Developer Guide*. """ - on_demand_throughput: OnDemandThroughput | None = ... + on_demand_throughput: OnDemandThroughput | OnDemandThroughputDict | None """ Sets the maximum number of read and write units for the specified on-demand table. If you use this parameter, you must specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. """ - sse_specification: SSESpecification | None = ... + sse_specification: SSESpecification | SSESpecificationDict | None """Represents the settings used to enable server-side encryption.""" - global_secondary_indexes: list[GlobalSecondaryIndex] | None = ... + global_secondary_indexes: ( + Sequence[GlobalSecondaryIndex | GlobalSecondaryIndexDict] | None + ) """ The Global Secondary Indexes (GSI) of the table to be created as part of the import operation. """ - vector_indexes: list[VectorIndex] | None = ... + vector_indexes: Sequence[VectorIndex | VectorIndexDict] | None """ The vector indexes of the table to be created as part of the import operation. @@ -1590,6 +2272,18 @@ class Tag(_SerdeShape): value: str """The value of the tag. Tag values are case-sensitive and can be null.""" +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """ + The key of the tag. Tag keys are case sensitive. Each DynamoDB table can + only have up to one tag with the same key. If you try to add an existing + tag (same key), the existing tag value will be updated to the new value. + """ + value: Required[str] + """The value of the tag. Tag values are case-sensitive and can be null.""" + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -1602,6 +2296,17 @@ class TagResourceInput(_SerdeShape): tags: list[Tag] | None = ... """The tags to be assigned to the Amazon DynamoDB resource.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """ + Identifies the Amazon DynamoDB resource to which tags should be added. + This value is an Amazon Resource Name (ARN). + """ + tags: Required[Sequence[Tag | TagDict]] + """The tags to be assigned to the Amazon DynamoDB resource.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -1725,6 +2430,20 @@ class TimeToLiveSpecification(_SerdeShape): items in the table. """ +class TimeToLiveSpecificationDict(TypedDict, total=False): + """Dictionary form of `TimeToLiveSpecification`.""" + + enabled: Required[bool] + """ + Indicates whether TTL is to be enabled (true) or disabled (false) on the + table. + """ + attribute_name: Required[str] + """ + The name of the TTL attribute used to store the expiration time for + items in the table. + """ + class TimeToLiveStatus(UnknownEnumMixin, StrEnum): ENABLING = "ENABLING" DISABLING = "DISABLING" @@ -1742,6 +2461,16 @@ class TransactGetItem(_SerdeShape): specific attributes of the item to retrieve. """ +class TransactGetItemDict(TypedDict, total=False): + """Dictionary form of `TransactGetItem`.""" + + get: Required[Get | GetDict] + """ + Contains the primary key that identifies the item to get, together with + the name of the table that contains the item, and optionally the + specific attributes of the item to retrieve. + """ + @dataclass(kw_only=True) class TransactGetItemsInput(_SerdeShape): """Dataclass for TransactGetItemsInput structure.""" @@ -1758,6 +2487,21 @@ class TransactGetItemsInput(_SerdeShape): other value is valid. """ +class TransactGetItemsInputDict(TypedDict, total=False): + """Dictionary form of `TransactGetItemsInput`.""" + + transact_items: Required[Sequence[TransactGetItem | TransactGetItemDict]] + """ + An ordered array of up to 100 `TransactGetItem` objects, each of which + contains a `Get` structure. + """ + return_consumed_capacity: str | None + """ + A value of `TOTAL` causes consumed capacity information to be returned, + and a value of `NONE` prevents that information from being returned. No + other value is valid. + """ + @dataclass(kw_only=True) class TransactGetItemsOutput(_SerdeShape): """Dataclass for TransactGetItemsOutput structure.""" @@ -2049,6 +2793,18 @@ class TransactWriteItem(_SerdeShape): update: Update | None = ... """A request to perform an `UpdateItem` operation.""" +class TransactWriteItemDict(TypedDict, total=False): + """Dictionary form of `TransactWriteItem`.""" + + condition_check: ConditionCheck | ConditionCheckDict | None + """A request to perform a check item operation.""" + put: Put | PutDict | None + """A request to perform a `PutItem` operation.""" + delete: Delete | DeleteDict | None + """A request to perform a `DeleteItem` operation.""" + update: Update | UpdateDict | None + """A request to perform an `UpdateItem` operation.""" + @dataclass(kw_only=True) class TransactWriteItemsInput(_SerdeShape): """Dataclass for TransactWriteItemsInput structure.""" @@ -2113,6 +2869,69 @@ class TransactWriteItemsInput(_SerdeShape): This field is autopopulated if not provided. """ +class TransactWriteItemsInputDict(TypedDict, total=False): + """Dictionary form of `TransactWriteItemsInput`.""" + + transact_items: Required[Sequence[TransactWriteItem | TransactWriteItemDict]] + """ + An ordered array of up to 100 `TransactWriteItem` objects, each of which + contains a `ConditionCheck`, `Put`, `Update`, or `Delete` object. These + can operate on items in different tables, but the tables must reside in + the same Amazon Web Services account and Region, and no two of them can + operate on the same item. + """ + return_consumed_capacity: str | None + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + return_item_collection_metrics: str | None + """ + Determines whether item collection metrics are returned. If set to + `SIZE`, the response includes statistics about item collections (if + any), that were modified during the operation and are returned in the + response. If set to `NONE` (the default), no statistics are returned. + """ + client_request_token: str | None + """ + Providing a `ClientRequestToken` makes the call to `TransactWriteItems` + idempotent, meaning that multiple identical calls have the same effect + as one single call. + + Although multiple identical calls using the same client request token + produce the same result on the server (no side effects), the responses + to the calls might not be the same. If the `ReturnConsumedCapacity` + parameter is set, then the initial `TransactWriteItems` call returns the + amount of write capacity units consumed in making the changes. + Subsequent `TransactWriteItems` calls with the same client token return + the number of read capacity units consumed in reading the item. + + A client request token is valid for 10 minutes after the first request + that uses it is completed. After 10 minutes, any request with the same + client token is treated as a new request. Do not resubmit the same + request with the same client token for more than 10 minutes, or the + result might not be idempotent. + + If you submit a request with the same client token but a change in other + parameters within the 10-minute idempotency window, DynamoDB returns an + `IdempotentParameterMismatch` exception. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class TransactWriteItemsOutput(_SerdeShape): """Dataclass for TransactWriteItemsOutput structure.""" @@ -2156,6 +2975,20 @@ class UntagResourceInput(_SerdeShape): of this list will be removed from the DynamoDB resource. """ +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """ + The DynamoDB resource that the tags will be removed from. This value is + an Amazon Resource Name (ARN). + """ + tag_keys: Required[Sequence[str]] + """ + A list of tag keys. Existing tags of the resource whose keys are members + of this list will be removed from the DynamoDB resource. + """ + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -2203,6 +3036,42 @@ class Update(_SerdeShape): the valid values are: NONE and ALL_OLD. """ +class UpdateDict(TypedDict, total=False): + """Dictionary form of `Update`.""" + + key: Required[Mapping[str, AttributeValue | AttributeValueDict]] + """ + The primary key of the item to be updated. Each element consists of an + attribute name and a value for that attribute. + """ + update_expression: Required[str] + """ + An expression that defines one or more attributes to be updated, the + action to be performed on them, and new value(s) for them. + """ + table_name: Required[str] + """ + Name of the table for the `UpdateItem` request. You can also provide the + Amazon Resource Name (ARN) of the table in this parameter. + """ + condition_expression: str | None + """ + A condition that must be satisfied in order for a conditional update to + succeed. + """ + expression_attribute_names: Mapping[str, str] | None + """One or more substitution tokens for attribute names in an expression.""" + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) + """One or more values that can be substituted in an expression.""" + return_values_on_condition_check_failure: str | None + """ + Use `ReturnValuesOnConditionCheckFailure` to get the item attributes if + the `Update` condition fails. For `ReturnValuesOnConditionCheckFailure`, + the valid values are: NONE and ALL_OLD. + """ + @dataclass(kw_only=True) class UpdateContinuousBackupsInput(_SerdeShape): """Dataclass for UpdateContinuousBackupsInput structure.""" @@ -2215,6 +3084,19 @@ class UpdateContinuousBackupsInput(_SerdeShape): point_in_time_recovery_specification: PointInTimeRecoverySpecification | None = ... """Represents the settings used to enable point in time recovery.""" +class UpdateContinuousBackupsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateContinuousBackupsInput`.""" + + table_name: Required[str] + """ + The name of the table. You can also provide the Amazon Resource Name + (ARN) of the table in this parameter. + """ + point_in_time_recovery_specification: Required[ + PointInTimeRecoverySpecification | PointInTimeRecoverySpecificationDict + ] + """Represents the settings used to enable point in time recovery.""" + @dataclass(kw_only=True) class UpdateContinuousBackupsOutput(_SerdeShape): """Dataclass for UpdateContinuousBackupsOutput structure.""" @@ -2251,6 +3133,24 @@ class UpdateContributorInsightsInput(_SerdeShape): events only for the DynamoDB table or index. """ +class UpdateContributorInsightsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateContributorInsightsInput`.""" + + table_name: Required[str] + """ + The name of the table. You can also provide the Amazon Resource Name + (ARN) of the table in this parameter. + """ + index_name: str | None + """The global secondary index name, if applicable.""" + contributor_insights_action: Required[str] + """Represents the contributor insights action.""" + contributor_insights_mode: str | None + """ + Specifies whether to track all access and throttled events or throttled + events only for the DynamoDB table or index. + """ + @dataclass(kw_only=True) class UpdateContributorInsightsOutput(_SerdeShape): """Dataclass for UpdateContributorInsightsOutput structure.""" @@ -2306,6 +3206,33 @@ class UpdateGlobalSecondaryIndexAction(_SerdeShape): settings to be applied to a global secondary index. """ +class UpdateGlobalSecondaryIndexActionDict(TypedDict, total=False): + """Dictionary form of `UpdateGlobalSecondaryIndexAction`.""" + + index_name: Required[str] + """The name of the global secondary index to be updated.""" + provisioned_throughput: ProvisionedThroughput | ProvisionedThroughputDict | None + """ + Represents the provisioned throughput settings for the specified global + secondary index. + + For current minimum and maximum provisioned throughput values, see + [Service, Account, and Table + Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) + in the *Amazon DynamoDB Developer Guide*. + """ + on_demand_throughput: OnDemandThroughput | OnDemandThroughputDict | None + """ + Updates the maximum number of read and write units for the specified + global secondary index. If you use this parameter, you must specify + `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + """ + warm_throughput: WarmThroughput | WarmThroughputDict | None + """ + Represents the warm throughput value of the new provisioned throughput + settings to be applied to a global secondary index. + """ + @dataclass(kw_only=True) class UpdateGlobalTableInput(_SerdeShape): """Dataclass for UpdateGlobalTableInput structure.""" @@ -2315,6 +3242,14 @@ class UpdateGlobalTableInput(_SerdeShape): replica_updates: list[ReplicaUpdate] | None = ... """A list of Regions that should be added or removed from the global table.""" +class UpdateGlobalTableInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGlobalTableInput`.""" + + global_table_name: Required[str] + """The global table name.""" + replica_updates: Required[Sequence[ReplicaUpdate | ReplicaUpdateDict]] + """A list of Regions that should be added or removed from the global table.""" + @dataclass(kw_only=True) class UpdateGlobalTableOutput(_SerdeShape): """Dataclass for UpdateGlobalTableOutput structure.""" @@ -2376,6 +3311,58 @@ class UpdateGlobalTableSettingsInput(_SerdeShape): modified. """ +class UpdateGlobalTableSettingsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGlobalTableSettingsInput`.""" + + global_table_name: Required[str] + """The name of the global table""" + global_table_billing_mode: str | None + """ + The billing mode of the global table. If `GlobalTableBillingMode` is not + specified, the global table defaults to `PROVISIONED` capacity billing + mode. + + - `PROVISIONED` - We recommend using `PROVISIONED` for predictable + workloads. `PROVISIONED` sets the billing mode to [Provisioned + capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html). + + - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for + unpredictable workloads. `PAY_PER_REQUEST` sets the billing mode to + [On-demand capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html). + """ + global_table_provisioned_write_capacity_units: int | None + """ + The maximum number of writes consumed per second before DynamoDB returns + a `ThrottlingException.` + """ + global_table_provisioned_write_capacity_auto_scaling_settings_update: ( + AutoScalingSettingsUpdate | AutoScalingSettingsUpdateDict | None + ) + """ + Auto scaling settings for managing provisioned write capacity for the + global table. + """ + global_table_global_secondary_index_settings_update: ( + Sequence[ + GlobalTableGlobalSecondaryIndexSettingsUpdate + | GlobalTableGlobalSecondaryIndexSettingsUpdateDict + ] + | None + ) + """ + Represents the settings of a global secondary index for a global table + that will be modified. + """ + replica_settings_update: ( + Sequence[ReplicaSettingsUpdate | ReplicaSettingsUpdateDict] | None + ) + """ + Represents the settings for a global table in a Region that will be + modified. + """ + @dataclass(kw_only=True) class UpdateGlobalTableSettingsOutput(_SerdeShape): """Dataclass for UpdateGlobalTableSettingsOutput structure.""" @@ -2630,7 +3617,280 @@ class UpdateItemInput(_SerdeShape): Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) in the *Amazon DynamoDB Developer Guide*. """ - expression_attribute_values: dict[str, AttributeValue] | None = ... + expression_attribute_values: dict[str, AttributeValue] | None = ... + """ + One or more values that can be substituted in an expression. + + Use the **:** (colon) character in an expression to dereference an + attribute value. For example, suppose that you wanted to check whether + the value of the `ProductStatus` attribute was one of the following: + + `Available | Backordered | Discontinued` + + You would first need to specify `ExpressionAttributeValues` as follows: + + `{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }` + + You could then use these values in an expression, such as this: + + `ProductStatus IN (:avail, :back, :disc)` + + For more information on expression attribute values, see [Condition + Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. + """ + return_values_on_condition_check_failure: str | None = ... + """ + An optional parameter that returns the item attributes for an + `UpdateItem` operation that failed a condition check. + + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. + """ + +class UpdateItemInputDict(TypedDict, total=False): + """Dictionary form of `UpdateItemInput`.""" + + table_name: Required[str] + """ + The name of the table containing the item to update. You can also + provide the Amazon Resource Name (ARN) of the table in this parameter. + """ + key: Required[Mapping[str, AttributeValue | AttributeValueDict]] + """ + The primary key of the item to be updated. Each element consists of an + attribute name and a value for that attribute. + + For the primary key, you must provide all of the attributes. For + example, with a simple primary key, you only need to provide a value for + the partition key. For a composite primary key, you must provide values + for both the partition key and the sort key. + """ + attribute_updates: ( + Mapping[str, AttributeValueUpdate | AttributeValueUpdateDict] | None + ) + """ + This is a legacy parameter. Use `UpdateExpression` instead. For more + information, see + [AttributeUpdates](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expected: Mapping[str, ExpectedAttributeValue | ExpectedAttributeValueDict] | None + """ + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [Expected](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html) + in the *Amazon DynamoDB Developer Guide*. + """ + conditional_operator: str | None + """ + This is a legacy parameter. Use `ConditionExpression` instead. For more + information, see + [ConditionalOperator](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html) + in the *Amazon DynamoDB Developer Guide*. + """ + return_values: str | None + """ + Use `ReturnValues` if you want to get the item attributes as they appear + before or after they are successfully updated. For `UpdateItem`, the + valid values are: + + - `NONE` - If `ReturnValues` is not specified, or if its value is + `NONE`, then nothing is returned. (This setting is the default for + `ReturnValues`.) + + - `ALL_OLD` - Returns all of the attributes of the item, as they + appeared before the UpdateItem operation. + + - `UPDATED_OLD` - Returns only the updated attributes, as they appeared + before the UpdateItem operation. + + - `ALL_NEW` - Returns all of the attributes of the item, as they appear + after the UpdateItem operation. + + - `UPDATED_NEW` - Returns only the updated attributes, as they appear + after the UpdateItem operation. + + There is no additional cost associated with requesting a return value + aside from the small network and processing overhead of receiving a + larger response. No read capacity units are consumed. + + The values returned are strongly consistent. + """ + return_consumed_capacity: str | None + """ + Determines the level of detail about either provisioned or on-demand + throughput consumption that is returned in the response: + + - `INDEXES` - The response includes the aggregate `ConsumedCapacity` for + the operation, together with `ConsumedCapacity` for each table and + secondary index that was accessed. + + Note that some operations, such as `GetItem` and `BatchGetItem`, do + not access any indexes at all. In these cases, specifying `INDEXES` + will only return `ConsumedCapacity` information for table(s). + + - `TOTAL` - The response includes only the aggregate `ConsumedCapacity` + for the operation. + + - `NONE` - No `ConsumedCapacity` details are included in the response. + """ + return_item_collection_metrics: str | None + """ + Determines whether item collection metrics are returned. If set to + `SIZE`, the response includes statistics about item collections, if any, + that were modified during the operation are returned in the response. If + set to `NONE` (the default), no statistics are returned. + """ + update_expression: str | None + """ + An expression that defines one or more attributes to be updated, the + action to be performed on them, and new values for them. + + The following action values are available for `UpdateExpression`. + + - `SET` - Adds one or more attributes and values to an item. If any of + these attributes already exist, they are replaced by the new values. + You can also use `SET` to add or subtract from an attribute that is of + type Number. For example: `SET myNum = myNum + :val` + + `SET` supports the following functions: + + - `if_not_exists (path, operand)` - if the item does not contain an + attribute at the specified path, then `if_not_exists` evaluates to + operand; otherwise, it evaluates to path. You can use this function + to avoid overwriting an attribute that may already be present in the + item. + + - `list_append (operand, operand)` - evaluates to a list with a new + element added to it. You can append the new element to the start or + the end of the list by reversing the order of the operands. + + These function names are case-sensitive. + + - `REMOVE` - Removes one or more attributes from an item. + + - `ADD` - Adds the specified value to the item, if the attribute does + not already exist. If the attribute does exist, then the behavior of + `ADD` depends on the data type of the attribute: + + - If the existing attribute is a number, and if `Value` is also a + number, then `Value` is mathematically added to the existing + attribute. If `Value` is a negative number, then it is subtracted + from the existing attribute. + + Note: + If you use `ADD` to increment or decrement a number value for an + item that doesn't exist before the update, DynamoDB uses `0` as the + initial value. + + Similarly, if you use `ADD` for an existing item to increment or + decrement an attribute value that doesn't exist before the update, + DynamoDB uses `0` as the initial value. For example, suppose that + the item you want to update doesn't have an attribute named + `itemcount`, but you decide to `ADD` the number `3` to this + attribute anyway. DynamoDB will create the `itemcount` attribute, + set its initial value to `0`, and finally add `3` to it. The result + will be a new `itemcount` attribute in the item, with a value of + `3`. + + - If the existing data type is a set and if `Value` is also a set, + then `Value` is added to the existing set. For example, if the + attribute value is the set `[1,2]`, and the `ADD` action specified + `[3]`, then the final attribute value is `[1,2,3]`. An error occurs + if an `ADD` action is specified for a set attribute and the + attribute type specified does not match the existing set type. + + Both sets must have the same primitive data type. For example, if + the existing data type is a set of strings, the `Value` must also be + a set of strings. + + Warning: + The `ADD` action only supports Number and set data types. + + - `DELETE` - Deletes an element from a set. + + If a set of values is specified, then those values are subtracted from + the old set. For example, if the attribute value was the set `[a,b,c]` + and the `DELETE` action specifies `[a,c]`, then the final attribute + value is `[b]`. Specifying an empty set is an error. + + Warning: + The `DELETE` action only supports set data types. + + You can have many actions in a single expression, such as the following: + `SET a=:value1, b=:value2 DELETE :value3, :value4, :value5` + + For more information on update expressions, see [Modifying Items and + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Modifying.html) + in the *Amazon DynamoDB Developer Guide*. + """ + condition_expression: str | None + """ + A condition that must be satisfied in order for a conditional update to + succeed. + + An expression can contain any of the following: + + - Functions: + `attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size` + + These function names are case-sensitive. + + - Comparison operators: `= | <> | < | > | <= | >= | BETWEEN | IN ` + + - Logical operators: `AND | OR | NOT` + + For more information about condition expressions, see [Specifying + Conditions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_names: Mapping[str, str] | None + """ + One or more substitution tokens for attribute names in an expression. + The following are some use cases for using `ExpressionAttributeNames`: + + - To access an attribute whose name conflicts with a DynamoDB reserved + word. + + - To create a placeholder for repeating occurrences of an attribute name + in an expression. + + - To prevent special characters in an attribute name from being + misinterpreted in an expression. + + Use the **#** character in an expression to dereference an attribute + name. For example, consider the following attribute name: + + - `Percentile` + + The name of this attribute conflicts with a reserved word, so it cannot + be used directly in an expression. (For the complete list of reserved + words, see [Reserved + Words](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html) + in the *Amazon DynamoDB Developer Guide*.) To work around this, you + could specify the following for `ExpressionAttributeNames`: + + - `{"#P":"Percentile"}` + + You could then use this substitution in an expression, as in this + example: + + - `#P = :val` + + Note: + Tokens that begin with the **:** character are *expression attribute + values*, which are placeholders for the actual value at runtime. + + For more information about expression attribute names, see [Specifying + Item + Attributes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html) + in the *Amazon DynamoDB Developer Guide*. + """ + expression_attribute_values: ( + Mapping[str, AttributeValue | AttributeValueDict] | None + ) """ One or more values that can be substituted in an expression. @@ -2652,7 +3912,7 @@ class UpdateItemInput(_SerdeShape): Expressions](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html) in the *Amazon DynamoDB Developer Guide*. """ - return_values_on_condition_check_failure: str | None = ... + return_values_on_condition_check_failure: str | None """ An optional parameter that returns the item attributes for an `UpdateItem` operation that failed a condition check. @@ -2729,6 +3989,12 @@ class UpdateKinesisStreamingConfiguration(_SerdeShape): approximate_creation_date_time_precision: str | None = ... """Enables updating the precision of Kinesis data stream timestamp.""" +class UpdateKinesisStreamingConfigurationDict(TypedDict, total=False): + """Dictionary form of `UpdateKinesisStreamingConfiguration`.""" + + approximate_creation_date_time_precision: str | None + """Enables updating the precision of Kinesis data stream timestamp.""" + @dataclass(kw_only=True) class UpdateKinesisStreamingDestinationInput(_SerdeShape): """Dataclass for UpdateKinesisStreamingDestinationInput structure.""" @@ -2745,6 +4011,23 @@ class UpdateKinesisStreamingDestinationInput(_SerdeShape): ) = ... """The command to update the Kinesis stream configuration.""" +class UpdateKinesisStreamingDestinationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateKinesisStreamingDestinationInput`.""" + + table_name: Required[str] + """ + The table name for the Kinesis streaming destination input. You can also + provide the ARN of the table in this parameter. + """ + stream_arn: Required[str] + """The Amazon Resource Name (ARN) for the Kinesis stream input.""" + update_kinesis_streaming_configuration: ( + UpdateKinesisStreamingConfiguration + | UpdateKinesisStreamingConfigurationDict + | None + ) + """The command to update the Kinesis stream configuration.""" + @dataclass(kw_only=True) class UpdateKinesisStreamingDestinationOutput(_SerdeShape): """Dataclass for UpdateKinesisStreamingDestinationOutput structure.""" @@ -2798,6 +4081,39 @@ class UpdateReplicationGroupMemberAction(_SerdeShape): table class. """ +class UpdateReplicationGroupMemberActionDict(TypedDict, total=False): + """Dictionary form of `UpdateReplicationGroupMemberAction`.""" + + region_name: Required[str] + """The Region where the replica exists.""" + kms_master_key_id: str | None + """ + The KMS key of the replica that should be used for KMS encryption. To + specify a key, use its key ID, Amazon Resource Name (ARN), alias name, + or alias ARN. Note that you should only provide this parameter if the + key is different from the default DynamoDB KMS key `alias/aws/dynamodb`. + """ + provisioned_throughput_override: ( + ProvisionedThroughputOverride | ProvisionedThroughputOverrideDict | None + ) + """ + Replica-specific provisioned throughput. If not specified, uses the + source table's provisioned throughput settings. + """ + on_demand_throughput_override: ( + OnDemandThroughputOverride | OnDemandThroughputOverrideDict | None + ) + """Overrides the maximum on-demand throughput for the replica table.""" + global_secondary_indexes: ( + Sequence[ReplicaGlobalSecondaryIndex | ReplicaGlobalSecondaryIndexDict] | None + ) + """Replica-specific global secondary index settings.""" + table_class_override: str | None + """ + Replica-specific table class. If not specified, uses the source table's + table class. + """ + @dataclass(kw_only=True) class UpdateTableInput(_SerdeShape): """Represents the input of an `UpdateTable` operation.""" @@ -2972,6 +4288,188 @@ class UpdateTableInput(_SerdeShape): index, specify only the `IndexName`. """ +class UpdateTableInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTableInput`.""" + + attribute_definitions: ( + Sequence[AttributeDefinition | AttributeDefinitionDict] | None + ) + """ + An array of attributes that describe the key schema for the table and + indexes. If you are adding a new global secondary index to the table, + `AttributeDefinitions` must include the key element(s) of the new index. + """ + table_name: Required[str] + """ + The name of the table to be updated. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. + """ + billing_mode: str | None + """ + Controls how you are charged for read and write throughput and how you + manage capacity. When switching from pay-per-request to provisioned + capacity, initial provisioned capacity values must be set. The initial + provisioned capacity values are estimated based on the consumed read and + write capacity of your table and global secondary indexes over the past + 30 minutes. + + - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for most + DynamoDB workloads. `PAY_PER_REQUEST` sets the billing mode to + [On-demand capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html). + + - `PROVISIONED` - We recommend using `PROVISIONED` for steady workloads + with predictable growth where capacity requirements can be reliably + forecasted. `PROVISIONED` sets the billing mode to [Provisioned + capacity + mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html). + """ + provisioned_throughput: ProvisionedThroughput | ProvisionedThroughputDict | None + """ + The new provisioned throughput settings for the specified table or + index. + """ + global_secondary_index_updates: ( + Sequence[GlobalSecondaryIndexUpdate | GlobalSecondaryIndexUpdateDict] | None + ) + """ + An array of one or more global secondary indexes for the table. For each + index in the array, you can request one action: + + - `Create` - add a new global secondary index to the table. + + - `Update` - modify the provisioned throughput settings of an existing + global secondary index. + + - `Delete` - remove a global secondary index from the table. + + You can create or delete only one global secondary index per + `UpdateTable` operation. + + For more information, see [Managing Global Secondary + Indexes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) + in the *Amazon DynamoDB Developer Guide*. + """ + stream_specification: StreamSpecification | StreamSpecificationDict | None + """ + Represents the DynamoDB Streams configuration for the table. + + Note: + You receive a `ValidationException` if you try to enable a stream on a + table that already has a stream, or if you try to disable a stream on a + table that doesn't have a stream. + """ + sse_specification: SSESpecification | SSESpecificationDict | None + """The new server-side encryption settings for the specified table.""" + replica_updates: ( + Sequence[ReplicationGroupUpdate | ReplicationGroupUpdateDict] | None + ) + """ + A list of replica update actions (create, delete, update, or + disassociate) for the table. + """ + table_class: str | None + """ + The table class of the table to be updated. Valid values are `STANDARD` + and `STANDARD_INFREQUENT_ACCESS`. + """ + deletion_protection_enabled: bool | None + """ + Indicates whether deletion protection is to be enabled (true) or + disabled (false) on the table. + """ + multi_region_consistency: str | None + """ + Specifies the consistency mode for a new global table. This parameter is + only valid when you create a global table by specifying one or more + [Create](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create) + actions in the + [ReplicaUpdates](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates) + action list. + + You can specify one of the following consistency modes: + + - `EVENTUAL`: Configures a new global table for multi-Region eventual + consistency (MREC). This is the default consistency mode for global + tables. + + - `STRONG`: Configures a new global table for multi-Region strong + consistency (MRSC). + + If you don't specify this field, the global table consistency mode + defaults to `EVENTUAL`. For more information about global tables + consistency modes, see [Consistency + modes](https://docs.aws.amazon.com/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes) + in DynamoDB developer guide. + """ + global_table_witness_updates: ( + Sequence[GlobalTableWitnessGroupUpdate | GlobalTableWitnessGroupUpdateDict] + | None + ) + """ + A list of witness updates for a MRSC global table. A witness provides a + cost-effective alternative to a full replica in a MRSC global table by + maintaining replicated change data written to global table replicas. You + cannot perform read or write operations on a witness. For each witness, + you can request one action: + + - `Create` - add a new witness to the global table. + + - `Delete` - remove a witness from the global table. + + You can create or delete only one witness per `UpdateTable` operation. + + For more information, see [Multi-Region strong consistency + (MRSC)](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes) + in the Amazon DynamoDB Developer Guide + """ + on_demand_throughput: OnDemandThroughput | OnDemandThroughputDict | None + """ + Updates the maximum number of read and write units for the specified + table in on-demand capacity mode. If you use this parameter, you must + specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. + """ + warm_throughput: WarmThroughput | WarmThroughputDict | None + """ + Represents the warm throughput (in read units per second and write units + per second) for updating a table. + """ + global_table_settings_replication_mode: str | None + """ + Controls the settings replication mode for a global table replica. This + attribute can be defined using UpdateTable operation only on a regional + table with values: + + - `ENABLED`: Defines settings replication on a regional table to be used + as a source table for creating Multi-Account Global Table. + + - `DISABLED`: Remove settings replication on a regional table. Settings + replication needs to be defined to ENABLED again in order to create a + Multi-Account Global Table using this table. + """ + disassociation_protection_enabled: bool | None + """ + Specifies whether disassociation protection is enabled (`true`) or + disabled (`false`) for the local replica of a multi-Region eventual + consistency (MREC) global table using Version 2019.11.21. + + Disassociation protection is enabled by default. If you omit this + parameter, the existing setting is unchanged. This setting is + independent of `DeletionProtectionEnabled`. + + You can't combine this change with any other change in the same + `UpdateTable` request. + """ + vector_index_updates: Sequence[VectorIndexUpdate | VectorIndexUpdateDict] | None + """ + A list of vector indexes to be added to or removed from the table. You + can add or remove one vector index for each `UpdateTable` operation. + + To add a vector index, specify `IndexName`, `VectorAttribute`, + `Dimensions`, `DistanceFunction`, and `Projection`. To remove a vector + index, specify only the `IndexName`. + """ + @dataclass(kw_only=True) class UpdateTableOutput(_SerdeShape): """Represents the output of an `UpdateTable` operation.""" @@ -3015,6 +4513,40 @@ class UpdateTableReplicaAutoScalingInput(_SerdeShape): be modified. """ +class UpdateTableReplicaAutoScalingInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTableReplicaAutoScalingInput`.""" + + global_secondary_index_updates: ( + Sequence[ + GlobalSecondaryIndexAutoScalingUpdate + | GlobalSecondaryIndexAutoScalingUpdateDict + ] + | None + ) + """ + Represents the auto scaling settings of the global secondary indexes of + the replica to be updated. + """ + table_name: Required[str] + """ + The name of the global table to be updated. You can also provide the + Amazon Resource Name (ARN) of the table in this parameter. + """ + provisioned_write_capacity_auto_scaling_update: ( + AutoScalingSettingsUpdate | AutoScalingSettingsUpdateDict | None + ) + """ + Represents the auto scaling settings to be modified for a global table + or global secondary index. + """ + replica_updates: ( + Sequence[ReplicaAutoScalingUpdate | ReplicaAutoScalingUpdateDict] | None + ) + """ + Represents the auto scaling settings of replicas of the table that will + be modified. + """ + @dataclass(kw_only=True) class UpdateTableReplicaAutoScalingOutput(_SerdeShape): """Dataclass for UpdateTableReplicaAutoScalingOutput structure.""" @@ -3047,6 +4579,22 @@ class UpdateTimeToLiveInput(_SerdeShape): specified table. """ +class UpdateTimeToLiveInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTimeToLiveInput`.""" + + table_name: Required[str] + """ + The name of the table to be configured. You can also provide the Amazon + Resource Name (ARN) of the table in this parameter. + """ + time_to_live_specification: Required[ + TimeToLiveSpecification | TimeToLiveSpecificationDict + ] + """ + Represents the settings used to enable or disable Time to Live for the + specified table. + """ + @dataclass(kw_only=True) class UpdateTimeToLiveOutput(_SerdeShape): """Dataclass for UpdateTimeToLiveOutput structure.""" @@ -3068,6 +4616,12 @@ class VectorAttributeDefinition(_SerdeShape): attribute_name: str """The name of the vector attribute.""" +class VectorAttributeDefinitionDict(TypedDict, total=False): + """Dictionary form of `VectorAttributeDefinition`.""" + + attribute_name: Required[str] + """The name of the vector attribute.""" + @dataclass(kw_only=True) class VectorCapacity(_SerdeShape): """ @@ -3122,6 +4676,33 @@ class VectorIndex(_SerdeShape): Valid values: `COSINE`, `EUCLIDEAN`, `DOT_PRODUCT`. """ +class VectorIndexDict(TypedDict, total=False): + """Dictionary form of `VectorIndex`.""" + + index_name: Required[str] + """The name of the vector index.""" + vector_attribute: Required[ + VectorAttributeDefinition | VectorAttributeDefinitionDict + ] + """The vector attribute configuration for the index.""" + search_schema: Sequence[SearchSchemaElement | SearchSchemaElementDict] | None + """ + The search schema that defines partition key and inline filter + attributes for the vector index. + """ + projection: Required[Projection | ProjectionDict] + """ + Specifies attributes that are copied (projected) from the table into the + vector index. + """ + dimensions: Required[int] + """The number of dimensions in each vector.""" + distance_function: Required[str] + """ + The distance function used to calculate similarity between vectors. + Valid values: `COSINE`, `EUCLIDEAN`, `DOT_PRODUCT`. + """ + @dataclass(kw_only=True) class VectorIndexDescription(_SerdeShape): """ @@ -3216,6 +4797,14 @@ class VectorIndexUpdate(_SerdeShape): delete: DeleteVectorIndexAction | None = ... """The configuration for deleting an existing vector index from the table.""" +class VectorIndexUpdateDict(TypedDict, total=False): + """Dictionary form of `VectorIndexUpdate`.""" + + create: CreateVectorIndexAction | CreateVectorIndexActionDict | None + """The configuration for creating a new vector index on the table.""" + delete: DeleteVectorIndexAction | DeleteVectorIndexActionDict | None + """The configuration for deleting an existing vector index from the table.""" + @dataclass(kw_only=True) class WarmThroughput(_SerdeShape): """ @@ -3236,6 +4825,20 @@ class WarmThroughput(_SerdeShape): instantaneously support. """ +class WarmThroughputDict(TypedDict, total=False): + """Dictionary form of `WarmThroughput`.""" + + read_units_per_second: int | None + """ + Represents the number of read operations your base table can + instantaneously support. + """ + write_units_per_second: int | None + """ + Represents the number of write operations your base table can + instantaneously support. + """ + class WitnessStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" DELETING = "DELETING" @@ -3254,3 +4857,11 @@ class WriteRequest(_SerdeShape): """A request to perform a `PutItem` operation.""" delete_request: DeleteRequest | None = ... """A request to perform a `DeleteItem` operation.""" + +class WriteRequestDict(TypedDict, total=False): + """Dictionary form of `WriteRequest`.""" + + put_request: PutRequest | PutRequestDict | None + """A request to perform a `PutItem` operation.""" + delete_request: DeleteRequest | DeleteRequestDict | None + """A request to perform a `DeleteItem` operation.""" diff --git a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/schemas.py b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/schemas.py index e0c08e548..e6a28502e 100644 --- a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/schemas.py +++ b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/_private/schemas.py @@ -652,7 +652,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/aio/client.py b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/aio/client.py index 312101768..44ac96b8d 100644 --- a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/aio/client.py +++ b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -21,129 +21,67 @@ if TYPE_CHECKING: from ..models import ( - BatchExecuteStatementInput, BatchExecuteStatementOutput, - BatchGetItemInput, BatchGetItemOutput, - BatchWriteItemInput, BatchWriteItemOutput, - CancelBulkOperationInput, CancelBulkOperationOutput, - CreateBackupInput, CreateBackupOutput, - CreateGlobalTableInput, CreateGlobalTableOutput, - CreateTableInput, CreateTableOutput, - DeleteBackupInput, DeleteBackupOutput, - DeleteItemInput, DeleteItemOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteTableInput, DeleteTableOutput, - DescribeBackupInput, DescribeBackupOutput, - DescribeBulkOperationInput, DescribeBulkOperationOutput, - DescribeContinuousBackupsInput, DescribeContinuousBackupsOutput, - DescribeContributorInsightsInput, DescribeContributorInsightsOutput, - DescribeEndpointsInput, DescribeEndpointsOutput, - DescribeExportInput, DescribeExportOutput, - DescribeGlobalTableInput, DescribeGlobalTableOutput, - DescribeGlobalTableSettingsInput, DescribeGlobalTableSettingsOutput, - DescribeImportInput, DescribeImportOutput, - DescribeKinesisStreamingDestinationInput, DescribeKinesisStreamingDestinationOutput, - DescribeLimitsInput, DescribeLimitsOutput, - DescribeTableInput, DescribeTableOutput, - DescribeTableReplicaAutoScalingInput, DescribeTableReplicaAutoScalingOutput, - DescribeTimeToLiveInput, DescribeTimeToLiveOutput, - DisableKinesisStreamingDestinationInput, DisableKinesisStreamingDestinationOutput, - EnableKinesisStreamingDestinationInput, EnableKinesisStreamingDestinationOutput, - ExecuteStatementInput, ExecuteStatementOutput, - ExecuteTransactionInput, ExecuteTransactionOutput, - ExportTableToPointInTimeInput, ExportTableToPointInTimeOutput, - GetItemInput, GetItemOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - ImportTableInput, ImportTableOutput, - ListBackupsInput, ListBackupsOutput, - ListBulkOperationsInput, ListBulkOperationsOutput, - ListContributorInsightsInput, ListContributorInsightsOutput, - ListExportsInput, ListExportsOutput, - ListGlobalTablesInput, ListGlobalTablesOutput, - ListImportsInput, ListImportsOutput, - ListTablesInput, ListTablesOutput, - ListTagsOfResourceInput, ListTagsOfResourceOutput, - PutItemInput, PutItemOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - QueryInput, QueryOutput, - RestoreTableFromBackupInput, RestoreTableFromBackupOutput, - RestoreTableToPointInTimeInput, RestoreTableToPointInTimeOutput, - ScanInput, ScanOutput, - SearchVectorsInput, SearchVectorsOutput, - StartBulkPutItemsInput, StartBulkPutItemsOutput, - TagResourceInput, TagResourceOutput, - TransactGetItemsInput, TransactGetItemsOutput, - TransactWriteItemsInput, TransactWriteItemsOutput, - UntagResourceInput, UntagResourceOutput, - UpdateContinuousBackupsInput, UpdateContinuousBackupsOutput, - UpdateContributorInsightsInput, UpdateContributorInsightsOutput, - UpdateGlobalTableInput, UpdateGlobalTableOutput, - UpdateGlobalTableSettingsInput, UpdateGlobalTableSettingsOutput, - UpdateItemInput, UpdateItemOutput, - UpdateKinesisStreamingDestinationInput, UpdateKinesisStreamingDestinationOutput, - UpdateTableInput, UpdateTableOutput, - UpdateTableReplicaAutoScalingInput, UpdateTableReplicaAutoScalingOutput, - UpdateTimeToLiveInput, UpdateTimeToLiveOutput, ) @@ -175,10 +113,25 @@ class AsyncDynamoDBClient(AsyncClient[AsyncDynamoDBConfig]): Region, providing built-in high availability and data durability. """ - _client_plugins = (aws_user_agent_plugin, dynamodb_retry_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin, dynamodb_retry_plugin) + @_overload async def batch_execute_statement( - self, input: BatchExecuteStatementInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchExecuteStatementInput + | _models.BatchExecuteStatementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchExecuteStatementOutput: ... + + @_overload + async def batch_execute_statement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchExecuteStatementInputDict], ) -> BatchExecuteStatementOutput: """ This operation allows you to perform batch reads or writes on data @@ -201,8 +154,6 @@ async def batch_execute_statement( field of the `BatchStatementResponse` for each statement. Args: - input: - An instance of `BatchExecuteStatementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -212,10 +163,33 @@ async def batch_execute_statement( Returns: An instance of `BatchExecuteStatementOutput`. """ - return await self._invoke(input, _models.BATCH_EXECUTE_STATEMENT, [], plugins) + async def batch_execute_statement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchExecuteStatementOutput: + return await self._invoke( + self._select_input(_models.BATCH_EXECUTE_STATEMENT, args, kwargs), + _models.BATCH_EXECUTE_STATEMENT, + [], + plugins, + ) + + @_overload + async def batch_get_item( + self, + request: _models.BatchGetItemInput | _models.BatchGetItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchGetItemOutput: ... + + @_overload async def batch_get_item( - self, input: BatchGetItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchGetItemInputDict], ) -> BatchGetItemOutput: """ The `BatchGetItem` operation returns the attributes of one or more items @@ -283,8 +257,6 @@ async def batch_get_item( specified multiple times. Args: - input: - An instance of `BatchGetItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -294,10 +266,33 @@ async def batch_get_item( Returns: An instance of `BatchGetItemOutput`. """ - return await self._invoke(input, _models.BATCH_GET_ITEM, [], plugins) + async def batch_get_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchGetItemOutput: + return await self._invoke( + self._select_input(_models.BATCH_GET_ITEM, args, kwargs), + _models.BATCH_GET_ITEM, + [], + plugins, + ) + + @_overload + async def batch_write_item( + self, + request: _models.BatchWriteItemInput | _models.BatchWriteItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchWriteItemOutput: ... + + @_overload async def batch_write_item( - self, input: BatchWriteItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchWriteItemInputDict], ) -> BatchWriteItemOutput: """ The `BatchWriteItem` operation puts or deletes multiple items in one or @@ -395,8 +390,6 @@ async def batch_write_item( is 1024 bytes. Args: - input: - An instance of `BatchWriteItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -406,10 +399,34 @@ async def batch_write_item( Returns: An instance of `BatchWriteItemOutput`. """ - return await self._invoke(input, _models.BATCH_WRITE_ITEM, [], plugins) + async def batch_write_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchWriteItemOutput: + return await self._invoke( + self._select_input(_models.BATCH_WRITE_ITEM, args, kwargs), + _models.BATCH_WRITE_ITEM, + [], + plugins, + ) + + @_overload + async def cancel_bulk_operation( + self, + request: _models.CancelBulkOperationInput + | _models.CancelBulkOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelBulkOperationOutput: ... + + @_overload async def cancel_bulk_operation( - self, input: CancelBulkOperationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelBulkOperationInputDict], ) -> CancelBulkOperationOutput: """ Cancels an in-progress bulk operation asynchronously. Cancellation @@ -418,8 +435,6 @@ async def cancel_bulk_operation( terminal status. Args: - input: - An instance of `CancelBulkOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -429,10 +444,33 @@ async def cancel_bulk_operation( Returns: An instance of `CancelBulkOperationOutput`. """ - return await self._invoke(input, _models.CANCEL_BULK_OPERATION, [], plugins) + async def cancel_bulk_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelBulkOperationOutput: + return await self._invoke( + self._select_input(_models.CANCEL_BULK_OPERATION, args, kwargs), + _models.CANCEL_BULK_OPERATION, + [], + plugins, + ) + + @_overload + async def create_backup( + self, + request: _models.CreateBackupInput | _models.CreateBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBackupOutput: ... + + @_overload async def create_backup( - self, input: CreateBackupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBackupInputDict], ) -> CreateBackupOutput: """ Creates a backup for an existing table. @@ -469,8 +507,6 @@ async def create_backup( - Provisioned read and write capacity Args: - input: - An instance of `CreateBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -480,10 +516,33 @@ async def create_backup( Returns: An instance of `CreateBackupOutput`. """ - return await self._invoke(input, _models.CREATE_BACKUP, [], plugins) + async def create_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBackupOutput: + return await self._invoke( + self._select_input(_models.CREATE_BACKUP, args, kwargs), + _models.CREATE_BACKUP, + [], + plugins, + ) + + @_overload + async def create_global_table( + self, + request: _models.CreateGlobalTableInput | _models.CreateGlobalTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGlobalTableOutput: ... + + @_overload async def create_global_table( - self, input: CreateGlobalTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGlobalTableInputDict], ) -> CreateGlobalTableOutput: """ Creates a global table from an existing table. A global table creates a @@ -545,8 +604,6 @@ async def create_global_table( matching secondary indexes across your global table. Args: - input: - An instance of `CreateGlobalTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -556,10 +613,33 @@ async def create_global_table( Returns: An instance of `CreateGlobalTableOutput`. """ - return await self._invoke(input, _models.CREATE_GLOBAL_TABLE, [], plugins) + async def create_global_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGlobalTableOutput: + return await self._invoke( + self._select_input(_models.CREATE_GLOBAL_TABLE, args, kwargs), + _models.CREATE_GLOBAL_TABLE, + [], + plugins, + ) + + @_overload async def create_table( - self, input: CreateTableInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateTableInput | _models.CreateTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTableOutput: ... + + @_overload + async def create_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTableInputDict], ) -> CreateTableOutput: """ The `CreateTable` operation adds a new table to your account. In an @@ -582,8 +662,6 @@ async def create_table( You can use the `DescribeTable` action to check the table status. Args: - input: - An instance of `CreateTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -593,10 +671,33 @@ async def create_table( Returns: An instance of `CreateTableOutput`. """ - return await self._invoke(input, _models.CREATE_TABLE, [], plugins) + async def create_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTableOutput: + return await self._invoke( + self._select_input(_models.CREATE_TABLE, args, kwargs), + _models.CREATE_TABLE, + [], + plugins, + ) + + @_overload + async def delete_backup( + self, + request: _models.DeleteBackupInput | _models.DeleteBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBackupOutput: ... + + @_overload async def delete_backup( - self, input: DeleteBackupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBackupInputDict], ) -> DeleteBackupOutput: """ Deletes an existing backup of a table. @@ -604,8 +705,6 @@ async def delete_backup( You can call `DeleteBackup` at a maximum rate of 10 times per second. Args: - input: - An instance of `DeleteBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -615,10 +714,33 @@ async def delete_backup( Returns: An instance of `DeleteBackupOutput`. """ - return await self._invoke(input, _models.DELETE_BACKUP, [], plugins) + async def delete_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBackupOutput: + return await self._invoke( + self._select_input(_models.DELETE_BACKUP, args, kwargs), + _models.DELETE_BACKUP, + [], + plugins, + ) + + @_overload + async def delete_item( + self, + request: _models.DeleteItemInput | _models.DeleteItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteItemOutput: ... + + @_overload async def delete_item( - self, input: DeleteItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteItemInputDict], ) -> DeleteItemOutput: """ Deletes a single item in a table by primary key. You can perform a @@ -638,8 +760,6 @@ async def delete_item( delete. Otherwise, the item is not deleted. Args: - input: - An instance of `DeleteItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -649,10 +769,34 @@ async def delete_item( Returns: An instance of `DeleteItemOutput`. """ - return await self._invoke(input, _models.DELETE_ITEM, [], plugins) + async def delete_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteItemOutput: + return await self._invoke( + self._select_input(_models.DELETE_ITEM, args, kwargs), + _models.DELETE_ITEM, + [], + plugins, + ) + + @_overload + async def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource-based policy attached to the resource, which can be @@ -677,8 +821,6 @@ async def delete_resource_policy( `GetResourcePolicy` request again. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -688,10 +830,33 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def delete_table( + self, + request: _models.DeleteTableInput | _models.DeleteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTableOutput: ... + + @_overload async def delete_table( - self, input: DeleteTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTableInputDict], ) -> DeleteTableOutput: """ The `DeleteTable` operation deletes a table and all of its items. After @@ -718,8 +883,6 @@ async def delete_table( Use the `DescribeTable` action to check the status of the table. Args: - input: - An instance of `DeleteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -729,10 +892,33 @@ async def delete_table( Returns: An instance of `DeleteTableOutput`. """ - return await self._invoke(input, _models.DELETE_TABLE, [], plugins) + async def delete_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTableOutput: + return await self._invoke( + self._select_input(_models.DELETE_TABLE, args, kwargs), + _models.DELETE_TABLE, + [], + plugins, + ) + + @_overload + async def describe_backup( + self, + request: _models.DescribeBackupInput | _models.DescribeBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeBackupOutput: ... + + @_overload async def describe_backup( - self, input: DescribeBackupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeBackupInputDict], ) -> DescribeBackupOutput: """ Describes an existing backup of a table. @@ -740,8 +926,6 @@ async def describe_backup( You can call `DescribeBackup` at a maximum rate of 10 times per second. Args: - input: - An instance of `DescribeBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -751,17 +935,39 @@ async def describe_backup( Returns: An instance of `DescribeBackupOutput`. """ - return await self._invoke(input, _models.DESCRIBE_BACKUP, [], plugins) + async def describe_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeBackupOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_BACKUP, args, kwargs), + _models.DESCRIBE_BACKUP, + [], + plugins, + ) + + @_overload async def describe_bulk_operation( - self, input: DescribeBulkOperationInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeBulkOperationInput + | _models.DescribeBulkOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeBulkOperationOutput: ... + + @_overload + async def describe_bulk_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeBulkOperationInputDict], ) -> DescribeBulkOperationOutput: """ Describes the specified bulk operation. Args: - input: - An instance of `DescribeBulkOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -771,10 +977,34 @@ async def describe_bulk_operation( Returns: An instance of `DescribeBulkOperationOutput`. """ - return await self._invoke(input, _models.DESCRIBE_BULK_OPERATION, [], plugins) + async def describe_bulk_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeBulkOperationOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_BULK_OPERATION, args, kwargs), + _models.DESCRIBE_BULK_OPERATION, + [], + plugins, + ) + + @_overload + async def describe_continuous_backups( + self, + request: _models.DescribeContinuousBackupsInput + | _models.DescribeContinuousBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeContinuousBackupsOutput: ... + + @_overload async def describe_continuous_backups( - self, input: DescribeContinuousBackupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeContinuousBackupsInputDict], ) -> DescribeContinuousBackupsOutput: """ Checks the status of continuous backups and point in time recovery on @@ -795,8 +1025,6 @@ async def describe_continuous_backups( per second. Args: - input: - An instance of `DescribeContinuousBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -806,22 +1034,40 @@ async def describe_continuous_backups( Returns: An instance of `DescribeContinuousBackupsOutput`. """ + + async def describe_continuous_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeContinuousBackupsOutput: return await self._invoke( - input, _models.DESCRIBE_CONTINUOUS_BACKUPS, [], plugins + self._select_input(_models.DESCRIBE_CONTINUOUS_BACKUPS, args, kwargs), + _models.DESCRIBE_CONTINUOUS_BACKUPS, + [], + plugins, ) + @_overload + async def describe_contributor_insights( + self, + request: _models.DescribeContributorInsightsInput + | _models.DescribeContributorInsightsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeContributorInsightsOutput: ... + + @_overload async def describe_contributor_insights( self, - input: DescribeContributorInsightsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeContributorInsightsInputDict], ) -> DescribeContributorInsightsOutput: """ Returns information about contributor insights for a given table or global secondary index. Args: - input: - An instance of `DescribeContributorInsightsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -831,12 +1077,33 @@ async def describe_contributor_insights( Returns: An instance of `DescribeContributorInsightsOutput`. """ + + async def describe_contributor_insights( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeContributorInsightsOutput: return await self._invoke( - input, _models.DESCRIBE_CONTRIBUTOR_INSIGHTS, [], plugins + self._select_input(_models.DESCRIBE_CONTRIBUTOR_INSIGHTS, args, kwargs), + _models.DESCRIBE_CONTRIBUTOR_INSIGHTS, + [], + plugins, ) + @_overload + async def describe_endpoints( + self, + request: _models.DescribeEndpointsInput | _models.DescribeEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEndpointsOutput: ... + + @_overload async def describe_endpoints( - self, input: DescribeEndpointsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEndpointsInputDict], ) -> DescribeEndpointsOutput: """ Returns the regional endpoint information. For more information on @@ -844,8 +1111,6 @@ async def describe_endpoints( privacy](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/inter-network-traffic-privacy.html#inter-network-traffic-DescribeEndpoints). Args: - input: - An instance of `DescribeEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -855,17 +1120,38 @@ async def describe_endpoints( Returns: An instance of `DescribeEndpointsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ENDPOINTS, [], plugins) + async def describe_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEndpointsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ENDPOINTS, args, kwargs), + _models.DESCRIBE_ENDPOINTS, + [], + plugins, + ) + + @_overload + async def describe_export( + self, + request: _models.DescribeExportInput | _models.DescribeExportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeExportOutput: ... + + @_overload async def describe_export( - self, input: DescribeExportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExportInputDict], ) -> DescribeExportOutput: """ Describes an existing table export. Args: - input: - An instance of `DescribeExportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -875,10 +1161,34 @@ async def describe_export( Returns: An instance of `DescribeExportOutput`. """ - return await self._invoke(input, _models.DESCRIBE_EXPORT, [], plugins) + async def describe_export( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExportOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_EXPORT, args, kwargs), + _models.DESCRIBE_EXPORT, + [], + plugins, + ) + + @_overload + async def describe_global_table( + self, + request: _models.DescribeGlobalTableInput + | _models.DescribeGlobalTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGlobalTableOutput: ... + + @_overload async def describe_global_table( - self, input: DescribeGlobalTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGlobalTableInputDict], ) -> DescribeGlobalTableOutput: """ Returns information about the specified global table. @@ -899,8 +1209,6 @@ async def describe_global_table( tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html). Args: - input: - An instance of `DescribeGlobalTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -910,12 +1218,34 @@ async def describe_global_table( Returns: An instance of `DescribeGlobalTableOutput`. """ - return await self._invoke(input, _models.DESCRIBE_GLOBAL_TABLE, [], plugins) + async def describe_global_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGlobalTableOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_GLOBAL_TABLE, args, kwargs), + _models.DESCRIBE_GLOBAL_TABLE, + [], + plugins, + ) + + @_overload async def describe_global_table_settings( self, - input: DescribeGlobalTableSettingsInput, + request: _models.DescribeGlobalTableSettingsInput + | _models.DescribeGlobalTableSettingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeGlobalTableSettingsOutput: ... + + @_overload + async def describe_global_table_settings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGlobalTableSettingsInputDict], ) -> DescribeGlobalTableSettingsOutput: """ Describes Region-specific settings for a global table. @@ -936,8 +1266,6 @@ async def describe_global_table_settings( tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html). Args: - input: - An instance of `DescribeGlobalTableSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -947,19 +1275,38 @@ async def describe_global_table_settings( Returns: An instance of `DescribeGlobalTableSettingsOutput`. """ + + async def describe_global_table_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGlobalTableSettingsOutput: return await self._invoke( - input, _models.DESCRIBE_GLOBAL_TABLE_SETTINGS, [], plugins + self._select_input(_models.DESCRIBE_GLOBAL_TABLE_SETTINGS, args, kwargs), + _models.DESCRIBE_GLOBAL_TABLE_SETTINGS, + [], + plugins, ) + @_overload + async def describe_import( + self, + request: _models.DescribeImportInput | _models.DescribeImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImportOutput: ... + + @_overload async def describe_import( - self, input: DescribeImportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImportInputDict], ) -> DescribeImportOutput: """ Represents the properties of the import. Args: - input: - An instance of `DescribeImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -969,19 +1316,39 @@ async def describe_import( Returns: An instance of `DescribeImportOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IMPORT, [], plugins) + async def describe_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImportOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IMPORT, args, kwargs), + _models.DESCRIBE_IMPORT, + [], + plugins, + ) + + @_overload async def describe_kinesis_streaming_destination( self, - input: DescribeKinesisStreamingDestinationInput, + request: _models.DescribeKinesisStreamingDestinationInput + | _models.DescribeKinesisStreamingDestinationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeKinesisStreamingDestinationOutput: ... + + @_overload + async def describe_kinesis_streaming_destination( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKinesisStreamingDestinationInputDict], ) -> DescribeKinesisStreamingDestinationOutput: """ Returns information about the status of Kinesis streaming. Args: - input: - An instance of `DescribeKinesisStreamingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -991,12 +1358,35 @@ async def describe_kinesis_streaming_destination( Returns: An instance of `DescribeKinesisStreamingDestinationOutput`. """ + + async def describe_kinesis_streaming_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKinesisStreamingDestinationOutput: return await self._invoke( - input, _models.DESCRIBE_KINESIS_STREAMING_DESTINATION, [], plugins + self._select_input( + _models.DESCRIBE_KINESIS_STREAMING_DESTINATION, args, kwargs + ), + _models.DESCRIBE_KINESIS_STREAMING_DESTINATION, + [], + plugins, ) + @_overload + async def describe_limits( + self, + request: _models.DescribeLimitsInput | _models.DescribeLimitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLimitsOutput: ... + + @_overload async def describe_limits( - self, input: DescribeLimitsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLimitsInputDict], ) -> DescribeLimitsOutput: """ Returns the current provisioned-capacity quotas for your Amazon Web @@ -1066,8 +1456,6 @@ async def describe_limits( The `DescribeLimits` Request element has no content. Args: - input: - An instance of `DescribeLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1077,10 +1465,33 @@ async def describe_limits( Returns: An instance of `DescribeLimitsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_LIMITS, [], plugins) + async def describe_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLimitsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_LIMITS, args, kwargs), + _models.DESCRIBE_LIMITS, + [], + plugins, + ) + + @_overload async def describe_table( - self, input: DescribeTableInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeTableInput | _models.DescribeTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTableOutput: ... + + @_overload + async def describe_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTableInputDict], ) -> DescribeTableOutput: """ Returns information about the table, including the current status of the @@ -1095,8 +1506,6 @@ async def describe_table( a few seconds, and then try the `DescribeTable` request again. Args: - input: - An instance of `DescribeTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1106,20 +1515,40 @@ async def describe_table( Returns: An instance of `DescribeTableOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TABLE, [], plugins) + async def describe_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTableOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TABLE, args, kwargs), + _models.DESCRIBE_TABLE, + [], + plugins, + ) + + @_overload + async def describe_table_replica_auto_scaling( + self, + request: _models.DescribeTableReplicaAutoScalingInput + | _models.DescribeTableReplicaAutoScalingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTableReplicaAutoScalingOutput: ... + + @_overload async def describe_table_replica_auto_scaling( self, - input: DescribeTableReplicaAutoScalingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTableReplicaAutoScalingInputDict], ) -> DescribeTableReplicaAutoScalingOutput: """ Describes auto scaling settings across replicas of the global table at once. Args: - input: - An instance of `DescribeTableReplicaAutoScalingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1129,20 +1558,41 @@ async def describe_table_replica_auto_scaling( Returns: An instance of `DescribeTableReplicaAutoScalingOutput`. """ + + async def describe_table_replica_auto_scaling( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTableReplicaAutoScalingOutput: return await self._invoke( - input, _models.DESCRIBE_TABLE_REPLICA_AUTO_SCALING, [], plugins + self._select_input( + _models.DESCRIBE_TABLE_REPLICA_AUTO_SCALING, args, kwargs + ), + _models.DESCRIBE_TABLE_REPLICA_AUTO_SCALING, + [], + plugins, ) + @_overload async def describe_time_to_live( - self, input: DescribeTimeToLiveInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeTimeToLiveInput | _models.DescribeTimeToLiveInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTimeToLiveOutput: ... + + @_overload + async def describe_time_to_live( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTimeToLiveInputDict], ) -> DescribeTimeToLiveOutput: """ Gives a description of the Time to Live (TTL) status on the specified table. Args: - input: - An instance of `DescribeTimeToLiveInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1152,20 +1602,40 @@ async def describe_time_to_live( Returns: An instance of `DescribeTimeToLiveOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TIME_TO_LIVE, [], plugins) + async def describe_time_to_live( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTimeToLiveOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TIME_TO_LIVE, args, kwargs), + _models.DESCRIBE_TIME_TO_LIVE, + [], + plugins, + ) + + @_overload + async def disable_kinesis_streaming_destination( + self, + request: _models.DisableKinesisStreamingDestinationInput + | _models.DisableKinesisStreamingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableKinesisStreamingDestinationOutput: ... + + @_overload async def disable_kinesis_streaming_destination( self, - input: DisableKinesisStreamingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableKinesisStreamingDestinationInputDict], ) -> DisableKinesisStreamingDestinationOutput: """ Stops replication from the DynamoDB table to the Kinesis data stream. This is done without deleting either of the resources. Args: - input: - An instance of `DisableKinesisStreamingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1175,14 +1645,36 @@ async def disable_kinesis_streaming_destination( Returns: An instance of `DisableKinesisStreamingDestinationOutput`. """ + + async def disable_kinesis_streaming_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableKinesisStreamingDestinationOutput: return await self._invoke( - input, _models.DISABLE_KINESIS_STREAMING_DESTINATION, [], plugins + self._select_input( + _models.DISABLE_KINESIS_STREAMING_DESTINATION, args, kwargs + ), + _models.DISABLE_KINESIS_STREAMING_DESTINATION, + [], + plugins, ) + @_overload async def enable_kinesis_streaming_destination( self, - input: EnableKinesisStreamingDestinationInput, + request: _models.EnableKinesisStreamingDestinationInput + | _models.EnableKinesisStreamingDestinationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> EnableKinesisStreamingDestinationOutput: ... + + @_overload + async def enable_kinesis_streaming_destination( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableKinesisStreamingDestinationInputDict], ) -> EnableKinesisStreamingDestinationOutput: """ Starts table data replication to the specified Kinesis data stream at a @@ -1191,8 +1683,6 @@ async def enable_kinesis_streaming_destination( check if streaming to the Kinesis data stream is ACTIVE. Args: - input: - An instance of `EnableKinesisStreamingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1202,12 +1692,35 @@ async def enable_kinesis_streaming_destination( Returns: An instance of `EnableKinesisStreamingDestinationOutput`. """ + + async def enable_kinesis_streaming_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableKinesisStreamingDestinationOutput: return await self._invoke( - input, _models.ENABLE_KINESIS_STREAMING_DESTINATION, [], plugins + self._select_input( + _models.ENABLE_KINESIS_STREAMING_DESTINATION, args, kwargs + ), + _models.ENABLE_KINESIS_STREAMING_DESTINATION, + [], + plugins, ) + @_overload + async def execute_statement( + self, + request: _models.ExecuteStatementInput | _models.ExecuteStatementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteStatementOutput: ... + + @_overload async def execute_statement( - self, input: ExecuteStatementInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteStatementInputDict], ) -> ExecuteStatementOutput: """ This operation allows you to perform reads and singleton writes on data @@ -1228,8 +1741,6 @@ async def execute_statement( set and include `NextToken`. Args: - input: - An instance of `ExecuteStatementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1239,10 +1750,33 @@ async def execute_statement( Returns: An instance of `ExecuteStatementOutput`. """ - return await self._invoke(input, _models.EXECUTE_STATEMENT, [], plugins) + async def execute_statement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteStatementOutput: + return await self._invoke( + self._select_input(_models.EXECUTE_STATEMENT, args, kwargs), + _models.EXECUTE_STATEMENT, + [], + plugins, + ) + + @_overload async def execute_transaction( - self, input: ExecuteTransactionInput, plugins: list[Plugin] | None = None + self, + request: _models.ExecuteTransactionInput | _models.ExecuteTransactionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteTransactionOutput: ... + + @_overload + async def execute_transaction( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteTransactionInputDict], ) -> ExecuteTransactionOutput: """ This operation allows you to perform transactional reads or writes on @@ -1257,8 +1791,6 @@ async def execute_transaction( API. Args: - input: - An instance of `ExecuteTransactionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1268,10 +1800,34 @@ async def execute_transaction( Returns: An instance of `ExecuteTransactionOutput`. """ - return await self._invoke(input, _models.EXECUTE_TRANSACTION, [], plugins) + async def execute_transaction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteTransactionOutput: + return await self._invoke( + self._select_input(_models.EXECUTE_TRANSACTION, args, kwargs), + _models.EXECUTE_TRANSACTION, + [], + plugins, + ) + + @_overload + async def export_table_to_point_in_time( + self, + request: _models.ExportTableToPointInTimeInput + | _models.ExportTableToPointInTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportTableToPointInTimeOutput: ... + + @_overload async def export_table_to_point_in_time( - self, input: ExportTableToPointInTimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportTableToPointInTimeInputDict], ) -> ExportTableToPointInTimeOutput: """ Exports table data to an S3 bucket. The table must have point in time @@ -1279,8 +1835,6 @@ async def export_table_to_point_in_time( in time recovery window. Args: - input: - An instance of `ExportTableToPointInTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1290,12 +1844,33 @@ async def export_table_to_point_in_time( Returns: An instance of `ExportTableToPointInTimeOutput`. """ + + async def export_table_to_point_in_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportTableToPointInTimeOutput: return await self._invoke( - input, _models.EXPORT_TABLE_TO_POINT_IN_TIME, [], plugins + self._select_input(_models.EXPORT_TABLE_TO_POINT_IN_TIME, args, kwargs), + _models.EXPORT_TABLE_TO_POINT_IN_TIME, + [], + plugins, ) + @_overload + async def get_item( + self, + request: _models.GetItemInput | _models.GetItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetItemOutput: ... + + @_overload async def get_item( - self, input: GetItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetItemInputDict], ) -> GetItemOutput: """ The `GetItem` operation returns a set of attributes for the item with @@ -1308,8 +1883,6 @@ async def get_item( eventually consistent read, it always returns the last updated value. Args: - input: - An instance of `GetItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1319,10 +1892,33 @@ async def get_item( Returns: An instance of `GetItemOutput`. """ - return await self._invoke(input, _models.GET_ITEM, [], plugins) + async def get_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetItemOutput: + return await self._invoke( + self._select_input(_models.GET_ITEM, args, kwargs), + _models.GET_ITEM, + [], + plugins, + ) + + @_overload + async def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Returns the resource-based policy document attached to the resource, @@ -1359,8 +1955,6 @@ async def get_resource_policy( for that table. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1370,17 +1964,38 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload async def import_table( - self, input: ImportTableInput, plugins: list[Plugin] | None = None + self, + request: _models.ImportTableInput | _models.ImportTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportTableOutput: ... + + @_overload + async def import_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportTableInputDict], ) -> ImportTableOutput: """ Imports table data from an S3 bucket. Args: - input: - An instance of `ImportTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1390,10 +2005,33 @@ async def import_table( Returns: An instance of `ImportTableOutput`. """ - return await self._invoke(input, _models.IMPORT_TABLE, [], plugins) + async def import_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportTableOutput: + return await self._invoke( + self._select_input(_models.IMPORT_TABLE, args, kwargs), + _models.IMPORT_TABLE, + [], + plugins, + ) + + @_overload + async def list_backups( + self, + request: _models.ListBackupsInput | _models.ListBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBackupsOutput: ... + + @_overload async def list_backups( - self, input: ListBackupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBackupsInputDict], ) -> ListBackupsOutput: """ List DynamoDB backups that are associated with an Amazon Web Services @@ -1414,8 +2052,6 @@ async def list_backups( API.](https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListBackupJobs.html) Args: - input: - An instance of `ListBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1425,10 +2061,33 @@ async def list_backups( Returns: An instance of `ListBackupsOutput`. """ - return await self._invoke(input, _models.LIST_BACKUPS, [], plugins) + async def list_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBackupsOutput: + return await self._invoke( + self._select_input(_models.LIST_BACKUPS, args, kwargs), + _models.LIST_BACKUPS, + [], + plugins, + ) + + @_overload + async def list_bulk_operations( + self, + request: _models.ListBulkOperationsInput | _models.ListBulkOperationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBulkOperationsOutput: ... + + @_overload async def list_bulk_operations( - self, input: ListBulkOperationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBulkOperationsInputDict], ) -> ListBulkOperationsOutput: """ Lists bulk operations that started within the past 90 days for the @@ -1437,8 +2096,6 @@ async def list_bulk_operations( `NextToken` parameter to retrieve additional results. Args: - input: - An instance of `ListBulkOperationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1448,18 +2105,40 @@ async def list_bulk_operations( Returns: An instance of `ListBulkOperationsOutput`. """ - return await self._invoke(input, _models.LIST_BULK_OPERATIONS, [], plugins) + async def list_bulk_operations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBulkOperationsOutput: + return await self._invoke( + self._select_input(_models.LIST_BULK_OPERATIONS, args, kwargs), + _models.LIST_BULK_OPERATIONS, + [], + plugins, + ) + + @_overload + async def list_contributor_insights( + self, + request: _models.ListContributorInsightsInput + | _models.ListContributorInsightsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListContributorInsightsOutput: ... + + @_overload async def list_contributor_insights( - self, input: ListContributorInsightsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListContributorInsightsInputDict], ) -> ListContributorInsightsOutput: """ Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes. Args: - input: - An instance of `ListContributorInsightsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1469,18 +2148,39 @@ async def list_contributor_insights( Returns: An instance of `ListContributorInsightsOutput`. """ - return await self._invoke(input, _models.LIST_CONTRIBUTOR_INSIGHTS, [], plugins) + async def list_contributor_insights( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListContributorInsightsOutput: + return await self._invoke( + self._select_input(_models.LIST_CONTRIBUTOR_INSIGHTS, args, kwargs), + _models.LIST_CONTRIBUTOR_INSIGHTS, + [], + plugins, + ) + + @_overload + async def list_exports( + self, + request: _models.ListExportsInput | _models.ListExportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListExportsOutput: ... + + @_overload async def list_exports( - self, input: ListExportsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListExportsInputDict], ) -> ListExportsOutput: """ Lists completed exports within the past 90 days, in reverse alphanumeric order of `ExportArn`. Args: - input: - An instance of `ListExportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1490,10 +2190,33 @@ async def list_exports( Returns: An instance of `ListExportsOutput`. """ - return await self._invoke(input, _models.LIST_EXPORTS, [], plugins) + async def list_exports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListExportsOutput: + return await self._invoke( + self._select_input(_models.LIST_EXPORTS, args, kwargs), + _models.LIST_EXPORTS, + [], + plugins, + ) + + @_overload + async def list_global_tables( + self, + request: _models.ListGlobalTablesInput | _models.ListGlobalTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGlobalTablesOutput: ... + + @_overload async def list_global_tables( - self, input: ListGlobalTablesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGlobalTablesInputDict], ) -> ListGlobalTablesOutput: """ Lists all global tables that have a replica in the specified Region. @@ -1514,8 +2237,6 @@ async def list_global_tables( tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html). Args: - input: - An instance of `ListGlobalTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1525,17 +2246,38 @@ async def list_global_tables( Returns: An instance of `ListGlobalTablesOutput`. """ - return await self._invoke(input, _models.LIST_GLOBAL_TABLES, [], plugins) + async def list_global_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGlobalTablesOutput: + return await self._invoke( + self._select_input(_models.LIST_GLOBAL_TABLES, args, kwargs), + _models.LIST_GLOBAL_TABLES, + [], + plugins, + ) + + @_overload + async def list_imports( + self, + request: _models.ListImportsInput | _models.ListImportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportsOutput: ... + + @_overload async def list_imports( - self, input: ListImportsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportsInputDict], ) -> ListImportsOutput: """ Lists completed imports within the past 90 days. Args: - input: - An instance of `ListImportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1545,10 +2287,33 @@ async def list_imports( Returns: An instance of `ListImportsOutput`. """ - return await self._invoke(input, _models.LIST_IMPORTS, [], plugins) + async def list_imports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportsOutput: + return await self._invoke( + self._select_input(_models.LIST_IMPORTS, args, kwargs), + _models.LIST_IMPORTS, + [], + plugins, + ) + + @_overload + async def list_tables( + self, + request: _models.ListTablesInput | _models.ListTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTablesOutput: ... + + @_overload async def list_tables( - self, input: ListTablesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTablesInputDict], ) -> ListTablesOutput: """ Returns an array of table names associated with the current account and @@ -1556,8 +2321,6 @@ async def list_tables( returning a maximum of 100 table names. Args: - input: - An instance of `ListTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1567,10 +2330,33 @@ async def list_tables( Returns: An instance of `ListTablesOutput`. """ - return await self._invoke(input, _models.LIST_TABLES, [], plugins) + async def list_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTablesOutput: + return await self._invoke( + self._select_input(_models.LIST_TABLES, args, kwargs), + _models.LIST_TABLES, + [], + plugins, + ) + + @_overload + async def list_tags_of_resource( + self, + request: _models.ListTagsOfResourceInput | _models.ListTagsOfResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsOfResourceOutput: ... + + @_overload async def list_tags_of_resource( - self, input: ListTagsOfResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsOfResourceInputDict], ) -> ListTagsOfResourceOutput: """ List all tags on an Amazon DynamoDB resource. You can call @@ -1581,8 +2367,6 @@ async def list_tags_of_resource( in the *Amazon DynamoDB Developer Guide*. Args: - input: - An instance of `ListTagsOfResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1592,10 +2376,33 @@ async def list_tags_of_resource( Returns: An instance of `ListTagsOfResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_OF_RESOURCE, [], plugins) + async def list_tags_of_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsOfResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_OF_RESOURCE, args, kwargs), + _models.LIST_TAGS_OF_RESOURCE, + [], + plugins, + ) + + @_overload + async def put_item( + self, + request: _models.PutItemInput | _models.PutItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutItemOutput: ... + + @_overload async def put_item( - self, input: PutItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutItemInputDict], ) -> PutItemOutput: """ Creates a new item, or replaces an old item with a new item. If an item @@ -1634,8 +2441,6 @@ async def put_item( in the *Amazon DynamoDB Developer Guide*. Args: - input: - An instance of `PutItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1645,10 +2450,33 @@ async def put_item( Returns: An instance of `PutItemOutput`. """ - return await self._invoke(input, _models.PUT_ITEM, [], plugins) + async def put_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutItemOutput: + return await self._invoke( + self._select_input(_models.PUT_ITEM, args, kwargs), + _models.PUT_ITEM, + [], + plugins, + ) + + @_overload + async def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Attaches a resource-based policy document to the resource, which can be @@ -1674,8 +2502,6 @@ async def put_resource_policy( again. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1685,10 +2511,33 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def query( + self, + request: _models.QueryInput | _models.QueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> QueryOutput: ... + + @_overload async def query( - self, input: QueryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.QueryInputDict], ) -> QueryOutput: """ You must provide the name of the partition key attribute and a single @@ -1751,8 +2600,6 @@ async def query( a global secondary index. Args: - input: - An instance of `QueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1762,10 +2609,31 @@ async def query( Returns: An instance of `QueryOutput`. """ - return await self._invoke(input, _models.QUERY, [], plugins) + async def query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> QueryOutput: + return await self._invoke( + self._select_input(_models.QUERY, args, kwargs), _models.QUERY, [], plugins + ) + + @_overload async def restore_table_from_backup( - self, input: RestoreTableFromBackupInput, plugins: list[Plugin] | None = None + self, + request: _models.RestoreTableFromBackupInput + | _models.RestoreTableFromBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreTableFromBackupOutput: ... + + @_overload + async def restore_table_from_backup( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreTableFromBackupInputDict], ) -> RestoreTableFromBackupOutput: """ Creates a new table from an existing backup. Any number of users can @@ -1790,8 +2658,6 @@ async def restore_table_from_backup( - Time to Live (TTL) settings Args: - input: - An instance of `RestoreTableFromBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1801,10 +2667,34 @@ async def restore_table_from_backup( Returns: An instance of `RestoreTableFromBackupOutput`. """ - return await self._invoke(input, _models.RESTORE_TABLE_FROM_BACKUP, [], plugins) + async def restore_table_from_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreTableFromBackupOutput: + return await self._invoke( + self._select_input(_models.RESTORE_TABLE_FROM_BACKUP, args, kwargs), + _models.RESTORE_TABLE_FROM_BACKUP, + [], + plugins, + ) + + @_overload + async def restore_table_to_point_in_time( + self, + request: _models.RestoreTableToPointInTimeInput + | _models.RestoreTableToPointInTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreTableToPointInTimeOutput: ... + + @_overload async def restore_table_to_point_in_time( - self, input: RestoreTableToPointInTimeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreTableToPointInTimeInputDict], ) -> RestoreTableToPointInTimeOutput: """ Restores the specified table to the specified point in time within @@ -1850,8 +2740,6 @@ async def restore_table_to_point_in_time( - Point in time recovery settings Args: - input: - An instance of `RestoreTableToPointInTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1861,12 +2749,33 @@ async def restore_table_to_point_in_time( Returns: An instance of `RestoreTableToPointInTimeOutput`. """ + + async def restore_table_to_point_in_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreTableToPointInTimeOutput: return await self._invoke( - input, _models.RESTORE_TABLE_TO_POINT_IN_TIME, [], plugins + self._select_input(_models.RESTORE_TABLE_TO_POINT_IN_TIME, args, kwargs), + _models.RESTORE_TABLE_TO_POINT_IN_TIME, + [], + plugins, ) + @_overload + async def scan( + self, + request: _models.ScanInput | _models.ScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ScanOutput: ... + + @_overload async def scan( - self, input: ScanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ScanInputDict], ) -> ScanOutput: """ The `Scan` operation returns one or more items and item attributes by @@ -1920,8 +2829,6 @@ async def scan( snapshot of the table when the scan operation was requested. Args: - input: - An instance of `ScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1931,10 +2838,30 @@ async def scan( Returns: An instance of `ScanOutput`. """ - return await self._invoke(input, _models.SCAN, [], plugins) + async def scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ScanOutput: + return await self._invoke( + self._select_input(_models.SCAN, args, kwargs), _models.SCAN, [], plugins + ) + + @_overload + async def search_vectors( + self, + request: _models.SearchVectorsInput | _models.SearchVectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchVectorsOutput: ... + + @_overload async def search_vectors( - self, input: SearchVectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchVectorsInputDict], ) -> SearchVectorsOutput: """ Performs a vector similarity search on a vector index associated with an @@ -1956,8 +2883,6 @@ async def search_vectors( scores indicate higher similarity. Args: - input: - An instance of `SearchVectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1967,10 +2892,33 @@ async def search_vectors( Returns: An instance of `SearchVectorsOutput`. """ - return await self._invoke(input, _models.SEARCH_VECTORS, [], plugins) + async def search_vectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchVectorsOutput: + return await self._invoke( + self._select_input(_models.SEARCH_VECTORS, args, kwargs), + _models.SEARCH_VECTORS, + [], + plugins, + ) + + @_overload + async def start_bulk_put_items( + self, + request: _models.StartBulkPutItemsInput | _models.StartBulkPutItemsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartBulkPutItemsOutput: ... + + @_overload async def start_bulk_put_items( - self, input: StartBulkPutItemsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartBulkPutItemsInputDict], ) -> StartBulkPutItemsOutput: """ Starts an asynchronous bulk operation that reads items from Amazon S3 @@ -1978,8 +2926,6 @@ async def start_bulk_put_items( load or migrate large datasets. Args: - input: - An instance of `StartBulkPutItemsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1989,10 +2935,33 @@ async def start_bulk_put_items( Returns: An instance of `StartBulkPutItemsOutput`. """ - return await self._invoke(input, _models.START_BULK_PUT_ITEMS, [], plugins) + async def start_bulk_put_items( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartBulkPutItemsOutput: + return await self._invoke( + self._select_input(_models.START_BULK_PUT_ITEMS, args, kwargs), + _models.START_BULK_PUT_ITEMS, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associate a set of tags with an Amazon DynamoDB resource. You can then @@ -2017,8 +2986,6 @@ async def tag_resource( in the *Amazon DynamoDB Developer Guide*. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2028,10 +2995,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload async def transact_get_items( - self, input: TransactGetItemsInput, plugins: list[Plugin] | None = None + self, + request: _models.TransactGetItemsInput | _models.TransactGetItemsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TransactGetItemsOutput: ... + + @_overload + async def transact_get_items( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TransactGetItemsInputDict], ) -> TransactGetItemsOutput: """ `TransactGetItems` is a synchronous operation that atomically retrieves @@ -2057,8 +3047,6 @@ async def transact_get_items( - The aggregate size of the items in the transaction exceeded 4 MB. Args: - input: - An instance of `TransactGetItemsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2068,10 +3056,33 @@ async def transact_get_items( Returns: An instance of `TransactGetItemsOutput`. """ - return await self._invoke(input, _models.TRANSACT_GET_ITEMS, [], plugins) + async def transact_get_items( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TransactGetItemsOutput: + return await self._invoke( + self._select_input(_models.TRANSACT_GET_ITEMS, args, kwargs), + _models.TRANSACT_GET_ITEMS, + [], + plugins, + ) + + @_overload + async def transact_write_items( + self, + request: _models.TransactWriteItemsInput | _models.TransactWriteItemsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TransactWriteItemsOutput: ... + + @_overload async def transact_write_items( - self, input: TransactWriteItemsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TransactWriteItemsInputDict], ) -> TransactWriteItemsOutput: """ `TransactWriteItems` is a synchronous write operation that groups up to @@ -2132,8 +3143,6 @@ async def transact_write_items( - There is a user error, such as an invalid data format. Args: - input: - An instance of `TransactWriteItemsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2143,10 +3152,33 @@ async def transact_write_items( Returns: An instance of `TransactWriteItemsOutput`. """ - return await self._invoke(input, _models.TRANSACT_WRITE_ITEMS, [], plugins) + async def transact_write_items( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TransactWriteItemsOutput: + return await self._invoke( + self._select_input(_models.TRANSACT_WRITE_ITEMS, args, kwargs), + _models.TRANSACT_WRITE_ITEMS, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes the association of tags from an Amazon DynamoDB resource. You @@ -2169,8 +3201,6 @@ async def untag_resource( in the *Amazon DynamoDB Developer Guide*. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2180,10 +3210,34 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_continuous_backups( + self, + request: _models.UpdateContinuousBackupsInput + | _models.UpdateContinuousBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContinuousBackupsOutput: ... + + @_overload async def update_continuous_backups( - self, input: UpdateContinuousBackupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContinuousBackupsInputDict], ) -> UpdateContinuousBackupsOutput: """ `UpdateContinuousBackups` enables or disables point in time recovery for @@ -2202,8 +3256,6 @@ async def update_continuous_backups( 35 days. Args: - input: - An instance of `UpdateContinuousBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2213,10 +3265,34 @@ async def update_continuous_backups( Returns: An instance of `UpdateContinuousBackupsOutput`. """ - return await self._invoke(input, _models.UPDATE_CONTINUOUS_BACKUPS, [], plugins) + async def update_continuous_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContinuousBackupsOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CONTINUOUS_BACKUPS, args, kwargs), + _models.UPDATE_CONTINUOUS_BACKUPS, + [], + plugins, + ) + + @_overload + async def update_contributor_insights( + self, + request: _models.UpdateContributorInsightsInput + | _models.UpdateContributorInsightsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContributorInsightsOutput: ... + + @_overload async def update_contributor_insights( - self, input: UpdateContributorInsightsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContributorInsightsInputDict], ) -> UpdateContributorInsightsOutput: """ Updates the status for contributor insights for a specific table or @@ -2229,8 +3305,6 @@ async def update_contributor_insights( Insights for DynamoDB for this table. Args: - input: - An instance of `UpdateContributorInsightsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2240,12 +3314,33 @@ async def update_contributor_insights( Returns: An instance of `UpdateContributorInsightsOutput`. """ + + async def update_contributor_insights( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContributorInsightsOutput: return await self._invoke( - input, _models.UPDATE_CONTRIBUTOR_INSIGHTS, [], plugins + self._select_input(_models.UPDATE_CONTRIBUTOR_INSIGHTS, args, kwargs), + _models.UPDATE_CONTRIBUTOR_INSIGHTS, + [], + plugins, ) + @_overload + async def update_global_table( + self, + request: _models.UpdateGlobalTableInput | _models.UpdateGlobalTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGlobalTableOutput: ... + + @_overload async def update_global_table( - self, input: UpdateGlobalTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGlobalTableInputDict], ) -> UpdateGlobalTableOutput: """ Adds or removes replicas in the specified global table. The global table @@ -2291,8 +3386,6 @@ async def update_global_table( maximum write capacity units. Args: - input: - An instance of `UpdateGlobalTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2302,10 +3395,34 @@ async def update_global_table( Returns: An instance of `UpdateGlobalTableOutput`. """ - return await self._invoke(input, _models.UPDATE_GLOBAL_TABLE, [], plugins) + async def update_global_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGlobalTableOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GLOBAL_TABLE, args, kwargs), + _models.UPDATE_GLOBAL_TABLE, + [], + plugins, + ) + + @_overload async def update_global_table_settings( - self, input: UpdateGlobalTableSettingsInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateGlobalTableSettingsInput + | _models.UpdateGlobalTableSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGlobalTableSettingsOutput: ... + + @_overload + async def update_global_table_settings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGlobalTableSettingsInputDict], ) -> UpdateGlobalTableSettingsOutput: """ Updates settings for a global table. @@ -2326,8 +3443,6 @@ async def update_global_table_settings( tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html). Args: - input: - An instance of `UpdateGlobalTableSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2337,12 +3452,33 @@ async def update_global_table_settings( Returns: An instance of `UpdateGlobalTableSettingsOutput`. """ + + async def update_global_table_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGlobalTableSettingsOutput: return await self._invoke( - input, _models.UPDATE_GLOBAL_TABLE_SETTINGS, [], plugins + self._select_input(_models.UPDATE_GLOBAL_TABLE_SETTINGS, args, kwargs), + _models.UPDATE_GLOBAL_TABLE_SETTINGS, + [], + plugins, ) + @_overload + async def update_item( + self, + request: _models.UpdateItemInput | _models.UpdateItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateItemOutput: ... + + @_overload async def update_item( - self, input: UpdateItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateItemInputDict], ) -> UpdateItemOutput: """ Edits an existing item's attributes, or adds a new item to the table if @@ -2355,8 +3491,6 @@ async def update_item( `UpdateItem` operation using the `ReturnValues` parameter. Args: - input: - An instance of `UpdateItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2366,19 +3500,39 @@ async def update_item( Returns: An instance of `UpdateItemOutput`. """ - return await self._invoke(input, _models.UPDATE_ITEM, [], plugins) + async def update_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateItemOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ITEM, args, kwargs), + _models.UPDATE_ITEM, + [], + plugins, + ) + + @_overload + async def update_kinesis_streaming_destination( + self, + request: _models.UpdateKinesisStreamingDestinationInput + | _models.UpdateKinesisStreamingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKinesisStreamingDestinationOutput: ... + + @_overload async def update_kinesis_streaming_destination( self, - input: UpdateKinesisStreamingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKinesisStreamingDestinationInputDict], ) -> UpdateKinesisStreamingDestinationOutput: """ The command to update the Kinesis stream destination. Args: - input: - An instance of `UpdateKinesisStreamingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2388,12 +3542,35 @@ async def update_kinesis_streaming_destination( Returns: An instance of `UpdateKinesisStreamingDestinationOutput`. """ + + async def update_kinesis_streaming_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKinesisStreamingDestinationOutput: return await self._invoke( - input, _models.UPDATE_KINESIS_STREAMING_DESTINATION, [], plugins + self._select_input( + _models.UPDATE_KINESIS_STREAMING_DESTINATION, args, kwargs + ), + _models.UPDATE_KINESIS_STREAMING_DESTINATION, + [], + plugins, ) + @_overload + async def update_table( + self, + request: _models.UpdateTableInput | _models.UpdateTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTableOutput: ... + + @_overload async def update_table( - self, input: UpdateTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTableInputDict], ) -> UpdateTableOutput: """ Modifies the provisioned throughput settings, global secondary indexes, @@ -2441,8 +3618,6 @@ async def update_table( encryption-access problem, resolve it, and retry. Args: - input: - An instance of `UpdateTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2452,19 +3627,39 @@ async def update_table( Returns: An instance of `UpdateTableOutput`. """ - return await self._invoke(input, _models.UPDATE_TABLE, [], plugins) + async def update_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTableOutput: + return await self._invoke( + self._select_input(_models.UPDATE_TABLE, args, kwargs), + _models.UPDATE_TABLE, + [], + plugins, + ) + + @_overload + async def update_table_replica_auto_scaling( + self, + request: _models.UpdateTableReplicaAutoScalingInput + | _models.UpdateTableReplicaAutoScalingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTableReplicaAutoScalingOutput: ... + + @_overload async def update_table_replica_auto_scaling( self, - input: UpdateTableReplicaAutoScalingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTableReplicaAutoScalingInputDict], ) -> UpdateTableReplicaAutoScalingOutput: """ Updates auto scaling settings on your global tables at once. Args: - input: - An instance of `UpdateTableReplicaAutoScalingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2474,12 +3669,33 @@ async def update_table_replica_auto_scaling( Returns: An instance of `UpdateTableReplicaAutoScalingOutput`. """ + + async def update_table_replica_auto_scaling( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTableReplicaAutoScalingOutput: return await self._invoke( - input, _models.UPDATE_TABLE_REPLICA_AUTO_SCALING, [], plugins + self._select_input(_models.UPDATE_TABLE_REPLICA_AUTO_SCALING, args, kwargs), + _models.UPDATE_TABLE_REPLICA_AUTO_SCALING, + [], + plugins, ) + @_overload + async def update_time_to_live( + self, + request: _models.UpdateTimeToLiveInput | _models.UpdateTimeToLiveInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTimeToLiveOutput: ... + + @_overload async def update_time_to_live( - self, input: UpdateTimeToLiveInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTimeToLiveInputDict], ) -> UpdateTimeToLiveOutput: """ The `UpdateTimeToLive` method enables or disables Time to Live (TTL) for @@ -2516,8 +3732,6 @@ async def update_time_to_live( in the Amazon DynamoDB Developer Guide. Args: - input: - An instance of `UpdateTimeToLiveInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2527,7 +3741,16 @@ async def update_time_to_live( Returns: An instance of `UpdateTimeToLiveOutput`. """ - return await self._invoke(input, _models.UPDATE_TIME_TO_LIVE, [], plugins) + + async def update_time_to_live( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTimeToLiveOutput: + return await self._invoke( + self._select_input(_models.UPDATE_TIME_TO_LIVE, args, kwargs), + _models.UPDATE_TIME_TO_LIVE, + [], + plugins, + ) async def _new_config(self) -> AsyncDynamoDBConfig: return await AsyncDynamoDBConfig.resolve() diff --git a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/client.py b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/client.py index 96c8c1e4a..29d9b560d 100644 --- a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/client.py +++ b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -21,129 +21,67 @@ if TYPE_CHECKING: from .models import ( - BatchExecuteStatementInput, BatchExecuteStatementOutput, - BatchGetItemInput, BatchGetItemOutput, - BatchWriteItemInput, BatchWriteItemOutput, - CancelBulkOperationInput, CancelBulkOperationOutput, - CreateBackupInput, CreateBackupOutput, - CreateGlobalTableInput, CreateGlobalTableOutput, - CreateTableInput, CreateTableOutput, - DeleteBackupInput, DeleteBackupOutput, - DeleteItemInput, DeleteItemOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteTableInput, DeleteTableOutput, - DescribeBackupInput, DescribeBackupOutput, - DescribeBulkOperationInput, DescribeBulkOperationOutput, - DescribeContinuousBackupsInput, DescribeContinuousBackupsOutput, - DescribeContributorInsightsInput, DescribeContributorInsightsOutput, - DescribeEndpointsInput, DescribeEndpointsOutput, - DescribeExportInput, DescribeExportOutput, - DescribeGlobalTableInput, DescribeGlobalTableOutput, - DescribeGlobalTableSettingsInput, DescribeGlobalTableSettingsOutput, - DescribeImportInput, DescribeImportOutput, - DescribeKinesisStreamingDestinationInput, DescribeKinesisStreamingDestinationOutput, - DescribeLimitsInput, DescribeLimitsOutput, - DescribeTableInput, DescribeTableOutput, - DescribeTableReplicaAutoScalingInput, DescribeTableReplicaAutoScalingOutput, - DescribeTimeToLiveInput, DescribeTimeToLiveOutput, - DisableKinesisStreamingDestinationInput, DisableKinesisStreamingDestinationOutput, - EnableKinesisStreamingDestinationInput, EnableKinesisStreamingDestinationOutput, - ExecuteStatementInput, ExecuteStatementOutput, - ExecuteTransactionInput, ExecuteTransactionOutput, - ExportTableToPointInTimeInput, ExportTableToPointInTimeOutput, - GetItemInput, GetItemOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - ImportTableInput, ImportTableOutput, - ListBackupsInput, ListBackupsOutput, - ListBulkOperationsInput, ListBulkOperationsOutput, - ListContributorInsightsInput, ListContributorInsightsOutput, - ListExportsInput, ListExportsOutput, - ListGlobalTablesInput, ListGlobalTablesOutput, - ListImportsInput, ListImportsOutput, - ListTablesInput, ListTablesOutput, - ListTagsOfResourceInput, ListTagsOfResourceOutput, - PutItemInput, PutItemOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - QueryInput, QueryOutput, - RestoreTableFromBackupInput, RestoreTableFromBackupOutput, - RestoreTableToPointInTimeInput, RestoreTableToPointInTimeOutput, - ScanInput, ScanOutput, - SearchVectorsInput, SearchVectorsOutput, - StartBulkPutItemsInput, StartBulkPutItemsOutput, - TagResourceInput, TagResourceOutput, - TransactGetItemsInput, TransactGetItemsOutput, - TransactWriteItemsInput, TransactWriteItemsOutput, - UntagResourceInput, UntagResourceOutput, - UpdateContinuousBackupsInput, UpdateContinuousBackupsOutput, - UpdateContributorInsightsInput, UpdateContributorInsightsOutput, - UpdateGlobalTableInput, UpdateGlobalTableOutput, - UpdateGlobalTableSettingsInput, UpdateGlobalTableSettingsOutput, - UpdateItemInput, UpdateItemOutput, - UpdateKinesisStreamingDestinationInput, UpdateKinesisStreamingDestinationOutput, - UpdateTableInput, UpdateTableOutput, - UpdateTableReplicaAutoScalingInput, UpdateTableReplicaAutoScalingOutput, - UpdateTimeToLiveInput, UpdateTimeToLiveOutput, ) @@ -175,10 +113,25 @@ class DynamoDBClient(Client[DynamoDBConfig]): Region, providing built-in high availability and data durability. """ - _client_plugins = (aws_user_agent_plugin, dynamodb_retry_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin, dynamodb_retry_plugin) + @_overload def batch_execute_statement( - self, input: BatchExecuteStatementInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchExecuteStatementInput + | _models.BatchExecuteStatementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchExecuteStatementOutput: ... + + @_overload + def batch_execute_statement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchExecuteStatementInputDict], ) -> BatchExecuteStatementOutput: """ This operation allows you to perform batch reads or writes on data @@ -201,8 +154,6 @@ def batch_execute_statement( field of the `BatchStatementResponse` for each statement. Args: - input: - An instance of `BatchExecuteStatementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -212,10 +163,33 @@ def batch_execute_statement( Returns: An instance of `BatchExecuteStatementOutput`. """ - return self._invoke(input, _models.BATCH_EXECUTE_STATEMENT, [], plugins) + def batch_execute_statement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchExecuteStatementOutput: + return self._invoke( + self._select_input(_models.BATCH_EXECUTE_STATEMENT, args, kwargs), + _models.BATCH_EXECUTE_STATEMENT, + [], + plugins, + ) + + @_overload def batch_get_item( - self, input: BatchGetItemInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchGetItemInput | _models.BatchGetItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchGetItemOutput: ... + + @_overload + def batch_get_item( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchGetItemInputDict], ) -> BatchGetItemOutput: """ The `BatchGetItem` operation returns the attributes of one or more items @@ -283,8 +257,6 @@ def batch_get_item( specified multiple times. Args: - input: - An instance of `BatchGetItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -294,10 +266,33 @@ def batch_get_item( Returns: An instance of `BatchGetItemOutput`. """ - return self._invoke(input, _models.BATCH_GET_ITEM, [], plugins) + def batch_get_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchGetItemOutput: + return self._invoke( + self._select_input(_models.BATCH_GET_ITEM, args, kwargs), + _models.BATCH_GET_ITEM, + [], + plugins, + ) + + @_overload def batch_write_item( - self, input: BatchWriteItemInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchWriteItemInput | _models.BatchWriteItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchWriteItemOutput: ... + + @_overload + def batch_write_item( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchWriteItemInputDict], ) -> BatchWriteItemOutput: """ The `BatchWriteItem` operation puts or deletes multiple items in one or @@ -395,8 +390,6 @@ def batch_write_item( is 1024 bytes. Args: - input: - An instance of `BatchWriteItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -406,10 +399,34 @@ def batch_write_item( Returns: An instance of `BatchWriteItemOutput`. """ - return self._invoke(input, _models.BATCH_WRITE_ITEM, [], plugins) + def batch_write_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchWriteItemOutput: + return self._invoke( + self._select_input(_models.BATCH_WRITE_ITEM, args, kwargs), + _models.BATCH_WRITE_ITEM, + [], + plugins, + ) + + @_overload + def cancel_bulk_operation( + self, + request: _models.CancelBulkOperationInput + | _models.CancelBulkOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelBulkOperationOutput: ... + + @_overload def cancel_bulk_operation( - self, input: CancelBulkOperationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelBulkOperationInputDict], ) -> CancelBulkOperationOutput: """ Cancels an in-progress bulk operation asynchronously. Cancellation @@ -418,8 +435,6 @@ def cancel_bulk_operation( terminal status. Args: - input: - An instance of `CancelBulkOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -429,10 +444,33 @@ def cancel_bulk_operation( Returns: An instance of `CancelBulkOperationOutput`. """ - return self._invoke(input, _models.CANCEL_BULK_OPERATION, [], plugins) + def cancel_bulk_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelBulkOperationOutput: + return self._invoke( + self._select_input(_models.CANCEL_BULK_OPERATION, args, kwargs), + _models.CANCEL_BULK_OPERATION, + [], + plugins, + ) + + @_overload + def create_backup( + self, + request: _models.CreateBackupInput | _models.CreateBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBackupOutput: ... + + @_overload def create_backup( - self, input: CreateBackupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBackupInputDict], ) -> CreateBackupOutput: """ Creates a backup for an existing table. @@ -469,8 +507,6 @@ def create_backup( - Provisioned read and write capacity Args: - input: - An instance of `CreateBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -480,10 +516,33 @@ def create_backup( Returns: An instance of `CreateBackupOutput`. """ - return self._invoke(input, _models.CREATE_BACKUP, [], plugins) + def create_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBackupOutput: + return self._invoke( + self._select_input(_models.CREATE_BACKUP, args, kwargs), + _models.CREATE_BACKUP, + [], + plugins, + ) + + @_overload def create_global_table( - self, input: CreateGlobalTableInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateGlobalTableInput | _models.CreateGlobalTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGlobalTableOutput: ... + + @_overload + def create_global_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGlobalTableInputDict], ) -> CreateGlobalTableOutput: """ Creates a global table from an existing table. A global table creates a @@ -545,8 +604,6 @@ def create_global_table( matching secondary indexes across your global table. Args: - input: - An instance of `CreateGlobalTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -556,10 +613,33 @@ def create_global_table( Returns: An instance of `CreateGlobalTableOutput`. """ - return self._invoke(input, _models.CREATE_GLOBAL_TABLE, [], plugins) + def create_global_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGlobalTableOutput: + return self._invoke( + self._select_input(_models.CREATE_GLOBAL_TABLE, args, kwargs), + _models.CREATE_GLOBAL_TABLE, + [], + plugins, + ) + + @_overload + def create_table( + self, + request: _models.CreateTableInput | _models.CreateTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTableOutput: ... + + @_overload def create_table( - self, input: CreateTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTableInputDict], ) -> CreateTableOutput: """ The `CreateTable` operation adds a new table to your account. In an @@ -582,8 +662,6 @@ def create_table( You can use the `DescribeTable` action to check the table status. Args: - input: - An instance of `CreateTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -593,10 +671,33 @@ def create_table( Returns: An instance of `CreateTableOutput`. """ - return self._invoke(input, _models.CREATE_TABLE, [], plugins) + def create_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTableOutput: + return self._invoke( + self._select_input(_models.CREATE_TABLE, args, kwargs), + _models.CREATE_TABLE, + [], + plugins, + ) + + @_overload + def delete_backup( + self, + request: _models.DeleteBackupInput | _models.DeleteBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBackupOutput: ... + + @_overload def delete_backup( - self, input: DeleteBackupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBackupInputDict], ) -> DeleteBackupOutput: """ Deletes an existing backup of a table. @@ -604,8 +705,6 @@ def delete_backup( You can call `DeleteBackup` at a maximum rate of 10 times per second. Args: - input: - An instance of `DeleteBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -615,10 +714,33 @@ def delete_backup( Returns: An instance of `DeleteBackupOutput`. """ - return self._invoke(input, _models.DELETE_BACKUP, [], plugins) + def delete_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBackupOutput: + return self._invoke( + self._select_input(_models.DELETE_BACKUP, args, kwargs), + _models.DELETE_BACKUP, + [], + plugins, + ) + + @_overload + def delete_item( + self, + request: _models.DeleteItemInput | _models.DeleteItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteItemOutput: ... + + @_overload def delete_item( - self, input: DeleteItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteItemInputDict], ) -> DeleteItemOutput: """ Deletes a single item in a table by primary key. You can perform a @@ -638,8 +760,6 @@ def delete_item( delete. Otherwise, the item is not deleted. Args: - input: - An instance of `DeleteItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -649,10 +769,34 @@ def delete_item( Returns: An instance of `DeleteItemOutput`. """ - return self._invoke(input, _models.DELETE_ITEM, [], plugins) + def delete_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteItemOutput: + return self._invoke( + self._select_input(_models.DELETE_ITEM, args, kwargs), + _models.DELETE_ITEM, + [], + plugins, + ) + + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload + def delete_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource-based policy attached to the resource, which can be @@ -677,8 +821,6 @@ def delete_resource_policy( `GetResourcePolicy` request again. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -688,10 +830,33 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def delete_table( - self, input: DeleteTableInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteTableInput | _models.DeleteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTableOutput: ... + + @_overload + def delete_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTableInputDict], ) -> DeleteTableOutput: """ The `DeleteTable` operation deletes a table and all of its items. After @@ -718,8 +883,6 @@ def delete_table( Use the `DescribeTable` action to check the status of the table. Args: - input: - An instance of `DeleteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -729,10 +892,33 @@ def delete_table( Returns: An instance of `DeleteTableOutput`. """ - return self._invoke(input, _models.DELETE_TABLE, [], plugins) + def delete_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTableOutput: + return self._invoke( + self._select_input(_models.DELETE_TABLE, args, kwargs), + _models.DELETE_TABLE, + [], + plugins, + ) + + @_overload def describe_backup( - self, input: DescribeBackupInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeBackupInput | _models.DescribeBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeBackupOutput: ... + + @_overload + def describe_backup( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeBackupInputDict], ) -> DescribeBackupOutput: """ Describes an existing backup of a table. @@ -740,8 +926,6 @@ def describe_backup( You can call `DescribeBackup` at a maximum rate of 10 times per second. Args: - input: - An instance of `DescribeBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -751,17 +935,39 @@ def describe_backup( Returns: An instance of `DescribeBackupOutput`. """ - return self._invoke(input, _models.DESCRIBE_BACKUP, [], plugins) + def describe_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeBackupOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_BACKUP, args, kwargs), + _models.DESCRIBE_BACKUP, + [], + plugins, + ) + + @_overload + def describe_bulk_operation( + self, + request: _models.DescribeBulkOperationInput + | _models.DescribeBulkOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeBulkOperationOutput: ... + + @_overload def describe_bulk_operation( - self, input: DescribeBulkOperationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeBulkOperationInputDict], ) -> DescribeBulkOperationOutput: """ Describes the specified bulk operation. Args: - input: - An instance of `DescribeBulkOperationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -771,10 +977,34 @@ def describe_bulk_operation( Returns: An instance of `DescribeBulkOperationOutput`. """ - return self._invoke(input, _models.DESCRIBE_BULK_OPERATION, [], plugins) + def describe_bulk_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeBulkOperationOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_BULK_OPERATION, args, kwargs), + _models.DESCRIBE_BULK_OPERATION, + [], + plugins, + ) + + @_overload + def describe_continuous_backups( + self, + request: _models.DescribeContinuousBackupsInput + | _models.DescribeContinuousBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeContinuousBackupsOutput: ... + + @_overload def describe_continuous_backups( - self, input: DescribeContinuousBackupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeContinuousBackupsInputDict], ) -> DescribeContinuousBackupsOutput: """ Checks the status of continuous backups and point in time recovery on @@ -795,8 +1025,6 @@ def describe_continuous_backups( per second. Args: - input: - An instance of `DescribeContinuousBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -806,20 +1034,40 @@ def describe_continuous_backups( Returns: An instance of `DescribeContinuousBackupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_CONTINUOUS_BACKUPS, [], plugins) + def describe_continuous_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeContinuousBackupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CONTINUOUS_BACKUPS, args, kwargs), + _models.DESCRIBE_CONTINUOUS_BACKUPS, + [], + plugins, + ) + + @_overload def describe_contributor_insights( self, - input: DescribeContributorInsightsInput, + request: _models.DescribeContributorInsightsInput + | _models.DescribeContributorInsightsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeContributorInsightsOutput: ... + + @_overload + def describe_contributor_insights( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeContributorInsightsInputDict], ) -> DescribeContributorInsightsOutput: """ Returns information about contributor insights for a given table or global secondary index. Args: - input: - An instance of `DescribeContributorInsightsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -829,12 +1077,33 @@ def describe_contributor_insights( Returns: An instance of `DescribeContributorInsightsOutput`. """ - return self._invoke(input, _models.DESCRIBE_CONTRIBUTOR_INSIGHTS, [], plugins) + def describe_contributor_insights( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeContributorInsightsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CONTRIBUTOR_INSIGHTS, args, kwargs), + _models.DESCRIBE_CONTRIBUTOR_INSIGHTS, + [], + plugins, + ) + + @_overload + def describe_endpoints( + self, + request: _models.DescribeEndpointsInput | _models.DescribeEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEndpointsOutput: ... + + @_overload def describe_endpoints( self, - input: DescribeEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEndpointsInputDict], ) -> DescribeEndpointsOutput: """ Returns the regional endpoint information. For more information on @@ -842,8 +1111,6 @@ def describe_endpoints( privacy](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/inter-network-traffic-privacy.html#inter-network-traffic-DescribeEndpoints). Args: - input: - An instance of `DescribeEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -853,17 +1120,38 @@ def describe_endpoints( Returns: An instance of `DescribeEndpointsOutput`. """ - return self._invoke(input, _models.DESCRIBE_ENDPOINTS, [], plugins) + def describe_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEndpointsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ENDPOINTS, args, kwargs), + _models.DESCRIBE_ENDPOINTS, + [], + plugins, + ) + + @_overload def describe_export( - self, input: DescribeExportInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeExportInput | _models.DescribeExportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeExportOutput: ... + + @_overload + def describe_export( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExportInputDict], ) -> DescribeExportOutput: """ Describes an existing table export. Args: - input: - An instance of `DescribeExportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -873,10 +1161,34 @@ def describe_export( Returns: An instance of `DescribeExportOutput`. """ - return self._invoke(input, _models.DESCRIBE_EXPORT, [], plugins) + def describe_export( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExportOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_EXPORT, args, kwargs), + _models.DESCRIBE_EXPORT, + [], + plugins, + ) + + @_overload + def describe_global_table( + self, + request: _models.DescribeGlobalTableInput + | _models.DescribeGlobalTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGlobalTableOutput: ... + + @_overload def describe_global_table( - self, input: DescribeGlobalTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGlobalTableInputDict], ) -> DescribeGlobalTableOutput: """ Returns information about the specified global table. @@ -897,8 +1209,6 @@ def describe_global_table( tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html). Args: - input: - An instance of `DescribeGlobalTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -908,12 +1218,34 @@ def describe_global_table( Returns: An instance of `DescribeGlobalTableOutput`. """ - return self._invoke(input, _models.DESCRIBE_GLOBAL_TABLE, [], plugins) + def describe_global_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGlobalTableOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_GLOBAL_TABLE, args, kwargs), + _models.DESCRIBE_GLOBAL_TABLE, + [], + plugins, + ) + + @_overload def describe_global_table_settings( self, - input: DescribeGlobalTableSettingsInput, + request: _models.DescribeGlobalTableSettingsInput + | _models.DescribeGlobalTableSettingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeGlobalTableSettingsOutput: ... + + @_overload + def describe_global_table_settings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGlobalTableSettingsInputDict], ) -> DescribeGlobalTableSettingsOutput: """ Describes Region-specific settings for a global table. @@ -934,8 +1266,6 @@ def describe_global_table_settings( tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html). Args: - input: - An instance of `DescribeGlobalTableSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -945,17 +1275,38 @@ def describe_global_table_settings( Returns: An instance of `DescribeGlobalTableSettingsOutput`. """ - return self._invoke(input, _models.DESCRIBE_GLOBAL_TABLE_SETTINGS, [], plugins) + def describe_global_table_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGlobalTableSettingsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_GLOBAL_TABLE_SETTINGS, args, kwargs), + _models.DESCRIBE_GLOBAL_TABLE_SETTINGS, + [], + plugins, + ) + + @_overload def describe_import( - self, input: DescribeImportInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeImportInput | _models.DescribeImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImportOutput: ... + + @_overload + def describe_import( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImportInputDict], ) -> DescribeImportOutput: """ Represents the properties of the import. Args: - input: - An instance of `DescribeImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -965,19 +1316,39 @@ def describe_import( Returns: An instance of `DescribeImportOutput`. """ - return self._invoke(input, _models.DESCRIBE_IMPORT, [], plugins) + def describe_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImportOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IMPORT, args, kwargs), + _models.DESCRIBE_IMPORT, + [], + plugins, + ) + + @_overload + def describe_kinesis_streaming_destination( + self, + request: _models.DescribeKinesisStreamingDestinationInput + | _models.DescribeKinesisStreamingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKinesisStreamingDestinationOutput: ... + + @_overload def describe_kinesis_streaming_destination( self, - input: DescribeKinesisStreamingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKinesisStreamingDestinationInputDict], ) -> DescribeKinesisStreamingDestinationOutput: """ Returns information about the status of Kinesis streaming. Args: - input: - An instance of `DescribeKinesisStreamingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -987,14 +1358,35 @@ def describe_kinesis_streaming_destination( Returns: An instance of `DescribeKinesisStreamingDestinationOutput`. """ + + def describe_kinesis_streaming_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKinesisStreamingDestinationOutput: return self._invoke( - input, _models.DESCRIBE_KINESIS_STREAMING_DESTINATION, [], plugins + self._select_input( + _models.DESCRIBE_KINESIS_STREAMING_DESTINATION, args, kwargs + ), + _models.DESCRIBE_KINESIS_STREAMING_DESTINATION, + [], + plugins, ) + @_overload def describe_limits( self, - input: DescribeLimitsInput | None = None, + request: _models.DescribeLimitsInput | _models.DescribeLimitsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeLimitsOutput: ... + + @_overload + def describe_limits( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLimitsInputDict], ) -> DescribeLimitsOutput: """ Returns the current provisioned-capacity quotas for your Amazon Web @@ -1064,8 +1456,6 @@ def describe_limits( The `DescribeLimits` Request element has no content. Args: - input: - An instance of `DescribeLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1075,10 +1465,33 @@ def describe_limits( Returns: An instance of `DescribeLimitsOutput`. """ - return self._invoke(input, _models.DESCRIBE_LIMITS, [], plugins) + def describe_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLimitsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_LIMITS, args, kwargs), + _models.DESCRIBE_LIMITS, + [], + plugins, + ) + + @_overload + def describe_table( + self, + request: _models.DescribeTableInput | _models.DescribeTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTableOutput: ... + + @_overload def describe_table( - self, input: DescribeTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTableInputDict], ) -> DescribeTableOutput: """ Returns information about the table, including the current status of the @@ -1093,8 +1506,6 @@ def describe_table( a few seconds, and then try the `DescribeTable` request again. Args: - input: - An instance of `DescribeTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1104,20 +1515,40 @@ def describe_table( Returns: An instance of `DescribeTableOutput`. """ - return self._invoke(input, _models.DESCRIBE_TABLE, [], plugins) + def describe_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTableOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TABLE, args, kwargs), + _models.DESCRIBE_TABLE, + [], + plugins, + ) + + @_overload + def describe_table_replica_auto_scaling( + self, + request: _models.DescribeTableReplicaAutoScalingInput + | _models.DescribeTableReplicaAutoScalingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTableReplicaAutoScalingOutput: ... + + @_overload def describe_table_replica_auto_scaling( self, - input: DescribeTableReplicaAutoScalingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTableReplicaAutoScalingInputDict], ) -> DescribeTableReplicaAutoScalingOutput: """ Describes auto scaling settings across replicas of the global table at once. Args: - input: - An instance of `DescribeTableReplicaAutoScalingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1127,20 +1558,41 @@ def describe_table_replica_auto_scaling( Returns: An instance of `DescribeTableReplicaAutoScalingOutput`. """ + + def describe_table_replica_auto_scaling( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTableReplicaAutoScalingOutput: return self._invoke( - input, _models.DESCRIBE_TABLE_REPLICA_AUTO_SCALING, [], plugins + self._select_input( + _models.DESCRIBE_TABLE_REPLICA_AUTO_SCALING, args, kwargs + ), + _models.DESCRIBE_TABLE_REPLICA_AUTO_SCALING, + [], + plugins, ) + @_overload + def describe_time_to_live( + self, + request: _models.DescribeTimeToLiveInput | _models.DescribeTimeToLiveInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTimeToLiveOutput: ... + + @_overload def describe_time_to_live( - self, input: DescribeTimeToLiveInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTimeToLiveInputDict], ) -> DescribeTimeToLiveOutput: """ Gives a description of the Time to Live (TTL) status on the specified table. Args: - input: - An instance of `DescribeTimeToLiveInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1150,20 +1602,40 @@ def describe_time_to_live( Returns: An instance of `DescribeTimeToLiveOutput`. """ - return self._invoke(input, _models.DESCRIBE_TIME_TO_LIVE, [], plugins) + def describe_time_to_live( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTimeToLiveOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TIME_TO_LIVE, args, kwargs), + _models.DESCRIBE_TIME_TO_LIVE, + [], + plugins, + ) + + @_overload + def disable_kinesis_streaming_destination( + self, + request: _models.DisableKinesisStreamingDestinationInput + | _models.DisableKinesisStreamingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableKinesisStreamingDestinationOutput: ... + + @_overload def disable_kinesis_streaming_destination( self, - input: DisableKinesisStreamingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableKinesisStreamingDestinationInputDict], ) -> DisableKinesisStreamingDestinationOutput: """ Stops replication from the DynamoDB table to the Kinesis data stream. This is done without deleting either of the resources. Args: - input: - An instance of `DisableKinesisStreamingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1173,14 +1645,36 @@ def disable_kinesis_streaming_destination( Returns: An instance of `DisableKinesisStreamingDestinationOutput`. """ + + def disable_kinesis_streaming_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableKinesisStreamingDestinationOutput: return self._invoke( - input, _models.DISABLE_KINESIS_STREAMING_DESTINATION, [], plugins + self._select_input( + _models.DISABLE_KINESIS_STREAMING_DESTINATION, args, kwargs + ), + _models.DISABLE_KINESIS_STREAMING_DESTINATION, + [], + plugins, ) + @_overload + def enable_kinesis_streaming_destination( + self, + request: _models.EnableKinesisStreamingDestinationInput + | _models.EnableKinesisStreamingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableKinesisStreamingDestinationOutput: ... + + @_overload def enable_kinesis_streaming_destination( self, - input: EnableKinesisStreamingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableKinesisStreamingDestinationInputDict], ) -> EnableKinesisStreamingDestinationOutput: """ Starts table data replication to the specified Kinesis data stream at a @@ -1189,8 +1683,6 @@ def enable_kinesis_streaming_destination( check if streaming to the Kinesis data stream is ACTIVE. Args: - input: - An instance of `EnableKinesisStreamingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1200,12 +1692,35 @@ def enable_kinesis_streaming_destination( Returns: An instance of `EnableKinesisStreamingDestinationOutput`. """ + + def enable_kinesis_streaming_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableKinesisStreamingDestinationOutput: return self._invoke( - input, _models.ENABLE_KINESIS_STREAMING_DESTINATION, [], plugins + self._select_input( + _models.ENABLE_KINESIS_STREAMING_DESTINATION, args, kwargs + ), + _models.ENABLE_KINESIS_STREAMING_DESTINATION, + [], + plugins, ) + @_overload + def execute_statement( + self, + request: _models.ExecuteStatementInput | _models.ExecuteStatementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteStatementOutput: ... + + @_overload def execute_statement( - self, input: ExecuteStatementInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteStatementInputDict], ) -> ExecuteStatementOutput: """ This operation allows you to perform reads and singleton writes on data @@ -1226,8 +1741,6 @@ def execute_statement( set and include `NextToken`. Args: - input: - An instance of `ExecuteStatementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1237,10 +1750,33 @@ def execute_statement( Returns: An instance of `ExecuteStatementOutput`. """ - return self._invoke(input, _models.EXECUTE_STATEMENT, [], plugins) + def execute_statement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteStatementOutput: + return self._invoke( + self._select_input(_models.EXECUTE_STATEMENT, args, kwargs), + _models.EXECUTE_STATEMENT, + [], + plugins, + ) + + @_overload + def execute_transaction( + self, + request: _models.ExecuteTransactionInput | _models.ExecuteTransactionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteTransactionOutput: ... + + @_overload def execute_transaction( - self, input: ExecuteTransactionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteTransactionInputDict], ) -> ExecuteTransactionOutput: """ This operation allows you to perform transactional reads or writes on @@ -1255,8 +1791,6 @@ def execute_transaction( API. Args: - input: - An instance of `ExecuteTransactionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1266,10 +1800,34 @@ def execute_transaction( Returns: An instance of `ExecuteTransactionOutput`. """ - return self._invoke(input, _models.EXECUTE_TRANSACTION, [], plugins) + def execute_transaction( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteTransactionOutput: + return self._invoke( + self._select_input(_models.EXECUTE_TRANSACTION, args, kwargs), + _models.EXECUTE_TRANSACTION, + [], + plugins, + ) + + @_overload def export_table_to_point_in_time( - self, input: ExportTableToPointInTimeInput, plugins: list[Plugin] | None = None + self, + request: _models.ExportTableToPointInTimeInput + | _models.ExportTableToPointInTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportTableToPointInTimeOutput: ... + + @_overload + def export_table_to_point_in_time( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportTableToPointInTimeInputDict], ) -> ExportTableToPointInTimeOutput: """ Exports table data to an S3 bucket. The table must have point in time @@ -1277,8 +1835,6 @@ def export_table_to_point_in_time( in time recovery window. Args: - input: - An instance of `ExportTableToPointInTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1288,10 +1844,33 @@ def export_table_to_point_in_time( Returns: An instance of `ExportTableToPointInTimeOutput`. """ - return self._invoke(input, _models.EXPORT_TABLE_TO_POINT_IN_TIME, [], plugins) + def export_table_to_point_in_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportTableToPointInTimeOutput: + return self._invoke( + self._select_input(_models.EXPORT_TABLE_TO_POINT_IN_TIME, args, kwargs), + _models.EXPORT_TABLE_TO_POINT_IN_TIME, + [], + plugins, + ) + + @_overload def get_item( - self, input: GetItemInput, plugins: list[Plugin] | None = None + self, + request: _models.GetItemInput | _models.GetItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetItemOutput: ... + + @_overload + def get_item( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetItemInputDict], ) -> GetItemOutput: """ The `GetItem` operation returns a set of attributes for the item with @@ -1304,8 +1883,6 @@ def get_item( eventually consistent read, it always returns the last updated value. Args: - input: - An instance of `GetItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1315,10 +1892,33 @@ def get_item( Returns: An instance of `GetItemOutput`. """ - return self._invoke(input, _models.GET_ITEM, [], plugins) + def get_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetItemOutput: + return self._invoke( + self._select_input(_models.GET_ITEM, args, kwargs), + _models.GET_ITEM, + [], + plugins, + ) + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload + def get_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Returns the resource-based policy document attached to the resource, @@ -1355,8 +1955,6 @@ def get_resource_policy( for that table. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1366,17 +1964,38 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def import_table( + self, + request: _models.ImportTableInput | _models.ImportTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportTableOutput: ... + + @_overload def import_table( - self, input: ImportTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportTableInputDict], ) -> ImportTableOutput: """ Imports table data from an S3 bucket. Args: - input: - An instance of `ImportTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1386,10 +2005,33 @@ def import_table( Returns: An instance of `ImportTableOutput`. """ - return self._invoke(input, _models.IMPORT_TABLE, [], plugins) + def import_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportTableOutput: + return self._invoke( + self._select_input(_models.IMPORT_TABLE, args, kwargs), + _models.IMPORT_TABLE, + [], + plugins, + ) + + @_overload + def list_backups( + self, + request: _models.ListBackupsInput | _models.ListBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBackupsOutput: ... + + @_overload def list_backups( - self, input: ListBackupsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBackupsInputDict], ) -> ListBackupsOutput: """ List DynamoDB backups that are associated with an Amazon Web Services @@ -1410,8 +2052,6 @@ def list_backups( API.](https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListBackupJobs.html) Args: - input: - An instance of `ListBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1421,12 +2061,33 @@ def list_backups( Returns: An instance of `ListBackupsOutput`. """ - return self._invoke(input, _models.LIST_BACKUPS, [], plugins) + def list_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBackupsOutput: + return self._invoke( + self._select_input(_models.LIST_BACKUPS, args, kwargs), + _models.LIST_BACKUPS, + [], + plugins, + ) + + @_overload + def list_bulk_operations( + self, + request: _models.ListBulkOperationsInput | _models.ListBulkOperationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBulkOperationsOutput: ... + + @_overload def list_bulk_operations( self, - input: ListBulkOperationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBulkOperationsInputDict], ) -> ListBulkOperationsOutput: """ Lists bulk operations that started within the past 90 days for the @@ -1435,8 +2096,6 @@ def list_bulk_operations( `NextToken` parameter to retrieve additional results. Args: - input: - An instance of `ListBulkOperationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1446,20 +2105,40 @@ def list_bulk_operations( Returns: An instance of `ListBulkOperationsOutput`. """ - return self._invoke(input, _models.LIST_BULK_OPERATIONS, [], plugins) + def list_bulk_operations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBulkOperationsOutput: + return self._invoke( + self._select_input(_models.LIST_BULK_OPERATIONS, args, kwargs), + _models.LIST_BULK_OPERATIONS, + [], + plugins, + ) + + @_overload + def list_contributor_insights( + self, + request: _models.ListContributorInsightsInput + | _models.ListContributorInsightsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListContributorInsightsOutput: ... + + @_overload def list_contributor_insights( self, - input: ListContributorInsightsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListContributorInsightsInputDict], ) -> ListContributorInsightsOutput: """ Returns a list of ContributorInsightsSummary for a table and all its global secondary indexes. Args: - input: - An instance of `ListContributorInsightsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1469,18 +2148,39 @@ def list_contributor_insights( Returns: An instance of `ListContributorInsightsOutput`. """ - return self._invoke(input, _models.LIST_CONTRIBUTOR_INSIGHTS, [], plugins) + def list_contributor_insights( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListContributorInsightsOutput: + return self._invoke( + self._select_input(_models.LIST_CONTRIBUTOR_INSIGHTS, args, kwargs), + _models.LIST_CONTRIBUTOR_INSIGHTS, + [], + plugins, + ) + + @_overload + def list_exports( + self, + request: _models.ListExportsInput | _models.ListExportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListExportsOutput: ... + + @_overload def list_exports( - self, input: ListExportsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListExportsInputDict], ) -> ListExportsOutput: """ Lists completed exports within the past 90 days, in reverse alphanumeric order of `ExportArn`. Args: - input: - An instance of `ListExportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1490,12 +2190,33 @@ def list_exports( Returns: An instance of `ListExportsOutput`. """ - return self._invoke(input, _models.LIST_EXPORTS, [], plugins) + def list_exports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListExportsOutput: + return self._invoke( + self._select_input(_models.LIST_EXPORTS, args, kwargs), + _models.LIST_EXPORTS, + [], + plugins, + ) + + @_overload def list_global_tables( self, - input: ListGlobalTablesInput | None = None, + request: _models.ListGlobalTablesInput | _models.ListGlobalTablesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListGlobalTablesOutput: ... + + @_overload + def list_global_tables( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGlobalTablesInputDict], ) -> ListGlobalTablesOutput: """ Lists all global tables that have a replica in the specified Region. @@ -1516,28 +2237,47 @@ def list_global_tables( tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html). Args: - input: - An instance of `ListGlobalTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ListGlobalTablesOutput`. - """ - return self._invoke(input, _models.LIST_GLOBAL_TABLES, [], plugins) + Returns: + An instance of `ListGlobalTablesOutput`. + """ + + def list_global_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGlobalTablesOutput: + return self._invoke( + self._select_input(_models.LIST_GLOBAL_TABLES, args, kwargs), + _models.LIST_GLOBAL_TABLES, + [], + plugins, + ) + + @_overload + def list_imports( + self, + request: _models.ListImportsInput | _models.ListImportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImportsOutput: ... + @_overload def list_imports( - self, input: ListImportsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImportsInputDict], ) -> ListImportsOutput: """ Lists completed imports within the past 90 days. Args: - input: - An instance of `ListImportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1547,10 +2287,33 @@ def list_imports( Returns: An instance of `ListImportsOutput`. """ - return self._invoke(input, _models.LIST_IMPORTS, [], plugins) + def list_imports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImportsOutput: + return self._invoke( + self._select_input(_models.LIST_IMPORTS, args, kwargs), + _models.LIST_IMPORTS, + [], + plugins, + ) + + @_overload + def list_tables( + self, + request: _models.ListTablesInput | _models.ListTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTablesOutput: ... + + @_overload def list_tables( - self, input: ListTablesInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTablesInputDict], ) -> ListTablesOutput: """ Returns an array of table names associated with the current account and @@ -1558,8 +2321,6 @@ def list_tables( returning a maximum of 100 table names. Args: - input: - An instance of `ListTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1569,10 +2330,33 @@ def list_tables( Returns: An instance of `ListTablesOutput`. """ - return self._invoke(input, _models.LIST_TABLES, [], plugins) + def list_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTablesOutput: + return self._invoke( + self._select_input(_models.LIST_TABLES, args, kwargs), + _models.LIST_TABLES, + [], + plugins, + ) + + @_overload + def list_tags_of_resource( + self, + request: _models.ListTagsOfResourceInput | _models.ListTagsOfResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsOfResourceOutput: ... + + @_overload def list_tags_of_resource( - self, input: ListTagsOfResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsOfResourceInputDict], ) -> ListTagsOfResourceOutput: """ List all tags on an Amazon DynamoDB resource. You can call @@ -1583,8 +2367,6 @@ def list_tags_of_resource( in the *Amazon DynamoDB Developer Guide*. Args: - input: - An instance of `ListTagsOfResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1594,10 +2376,33 @@ def list_tags_of_resource( Returns: An instance of `ListTagsOfResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_OF_RESOURCE, [], plugins) + def list_tags_of_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsOfResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_OF_RESOURCE, args, kwargs), + _models.LIST_TAGS_OF_RESOURCE, + [], + plugins, + ) + + @_overload + def put_item( + self, + request: _models.PutItemInput | _models.PutItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutItemOutput: ... + + @_overload def put_item( - self, input: PutItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutItemInputDict], ) -> PutItemOutput: """ Creates a new item, or replaces an old item with a new item. If an item @@ -1636,8 +2441,6 @@ def put_item( in the *Amazon DynamoDB Developer Guide*. Args: - input: - An instance of `PutItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1647,10 +2450,33 @@ def put_item( Returns: An instance of `PutItemOutput`. """ - return self._invoke(input, _models.PUT_ITEM, [], plugins) + def put_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutItemOutput: + return self._invoke( + self._select_input(_models.PUT_ITEM, args, kwargs), + _models.PUT_ITEM, + [], + plugins, + ) + + @_overload + def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Attaches a resource-based policy document to the resource, which can be @@ -1676,8 +2502,6 @@ def put_resource_policy( again. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1687,10 +2511,33 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def query( + self, + request: _models.QueryInput | _models.QueryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> QueryOutput: ... + + @_overload def query( - self, input: QueryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.QueryInputDict], ) -> QueryOutput: """ You must provide the name of the partition key attribute and a single @@ -1753,8 +2600,6 @@ def query( a global secondary index. Args: - input: - An instance of `QueryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1764,10 +2609,31 @@ def query( Returns: An instance of `QueryOutput`. """ - return self._invoke(input, _models.QUERY, [], plugins) + def query( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> QueryOutput: + return self._invoke( + self._select_input(_models.QUERY, args, kwargs), _models.QUERY, [], plugins + ) + + @_overload + def restore_table_from_backup( + self, + request: _models.RestoreTableFromBackupInput + | _models.RestoreTableFromBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreTableFromBackupOutput: ... + + @_overload def restore_table_from_backup( - self, input: RestoreTableFromBackupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreTableFromBackupInputDict], ) -> RestoreTableFromBackupOutput: """ Creates a new table from an existing backup. Any number of users can @@ -1792,8 +2658,6 @@ def restore_table_from_backup( - Time to Live (TTL) settings Args: - input: - An instance of `RestoreTableFromBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1803,10 +2667,34 @@ def restore_table_from_backup( Returns: An instance of `RestoreTableFromBackupOutput`. """ - return self._invoke(input, _models.RESTORE_TABLE_FROM_BACKUP, [], plugins) + def restore_table_from_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreTableFromBackupOutput: + return self._invoke( + self._select_input(_models.RESTORE_TABLE_FROM_BACKUP, args, kwargs), + _models.RESTORE_TABLE_FROM_BACKUP, + [], + plugins, + ) + + @_overload def restore_table_to_point_in_time( - self, input: RestoreTableToPointInTimeInput, plugins: list[Plugin] | None = None + self, + request: _models.RestoreTableToPointInTimeInput + | _models.RestoreTableToPointInTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreTableToPointInTimeOutput: ... + + @_overload + def restore_table_to_point_in_time( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreTableToPointInTimeInputDict], ) -> RestoreTableToPointInTimeOutput: """ Restores the specified table to the specified point in time within @@ -1852,8 +2740,6 @@ def restore_table_to_point_in_time( - Point in time recovery settings Args: - input: - An instance of `RestoreTableToPointInTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1863,9 +2749,34 @@ def restore_table_to_point_in_time( Returns: An instance of `RestoreTableToPointInTimeOutput`. """ - return self._invoke(input, _models.RESTORE_TABLE_TO_POINT_IN_TIME, [], plugins) - def scan(self, input: ScanInput, plugins: list[Plugin] | None = None) -> ScanOutput: + def restore_table_to_point_in_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreTableToPointInTimeOutput: + return self._invoke( + self._select_input(_models.RESTORE_TABLE_TO_POINT_IN_TIME, args, kwargs), + _models.RESTORE_TABLE_TO_POINT_IN_TIME, + [], + plugins, + ) + + @_overload + def scan( + self, + request: _models.ScanInput | _models.ScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ScanOutput: ... + + @_overload + def scan( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ScanInputDict], + ) -> ScanOutput: """ The `Scan` operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB @@ -1918,8 +2829,6 @@ def scan(self, input: ScanInput, plugins: list[Plugin] | None = None) -> ScanOut snapshot of the table when the scan operation was requested. Args: - input: - An instance of `ScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1929,10 +2838,30 @@ def scan(self, input: ScanInput, plugins: list[Plugin] | None = None) -> ScanOut Returns: An instance of `ScanOutput`. """ - return self._invoke(input, _models.SCAN, [], plugins) + def scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ScanOutput: + return self._invoke( + self._select_input(_models.SCAN, args, kwargs), _models.SCAN, [], plugins + ) + + @_overload + def search_vectors( + self, + request: _models.SearchVectorsInput | _models.SearchVectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchVectorsOutput: ... + + @_overload def search_vectors( - self, input: SearchVectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchVectorsInputDict], ) -> SearchVectorsOutput: """ Performs a vector similarity search on a vector index associated with an @@ -1954,8 +2883,6 @@ def search_vectors( scores indicate higher similarity. Args: - input: - An instance of `SearchVectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1965,10 +2892,33 @@ def search_vectors( Returns: An instance of `SearchVectorsOutput`. """ - return self._invoke(input, _models.SEARCH_VECTORS, [], plugins) + def search_vectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchVectorsOutput: + return self._invoke( + self._select_input(_models.SEARCH_VECTORS, args, kwargs), + _models.SEARCH_VECTORS, + [], + plugins, + ) + + @_overload + def start_bulk_put_items( + self, + request: _models.StartBulkPutItemsInput | _models.StartBulkPutItemsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartBulkPutItemsOutput: ... + + @_overload def start_bulk_put_items( - self, input: StartBulkPutItemsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartBulkPutItemsInputDict], ) -> StartBulkPutItemsOutput: """ Starts an asynchronous bulk operation that reads items from Amazon S3 @@ -1976,8 +2926,6 @@ def start_bulk_put_items( load or migrate large datasets. Args: - input: - An instance of `StartBulkPutItemsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1987,10 +2935,33 @@ def start_bulk_put_items( Returns: An instance of `StartBulkPutItemsOutput`. """ - return self._invoke(input, _models.START_BULK_PUT_ITEMS, [], plugins) + def start_bulk_put_items( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartBulkPutItemsOutput: + return self._invoke( + self._select_input(_models.START_BULK_PUT_ITEMS, args, kwargs), + _models.START_BULK_PUT_ITEMS, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associate a set of tags with an Amazon DynamoDB resource. You can then @@ -2015,8 +2986,6 @@ def tag_resource( in the *Amazon DynamoDB Developer Guide*. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2026,10 +2995,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def transact_get_items( + self, + request: _models.TransactGetItemsInput | _models.TransactGetItemsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TransactGetItemsOutput: ... + + @_overload def transact_get_items( - self, input: TransactGetItemsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TransactGetItemsInputDict], ) -> TransactGetItemsOutput: """ `TransactGetItems` is a synchronous operation that atomically retrieves @@ -2055,8 +3047,6 @@ def transact_get_items( - The aggregate size of the items in the transaction exceeded 4 MB. Args: - input: - An instance of `TransactGetItemsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2066,10 +3056,33 @@ def transact_get_items( Returns: An instance of `TransactGetItemsOutput`. """ - return self._invoke(input, _models.TRANSACT_GET_ITEMS, [], plugins) + def transact_get_items( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TransactGetItemsOutput: + return self._invoke( + self._select_input(_models.TRANSACT_GET_ITEMS, args, kwargs), + _models.TRANSACT_GET_ITEMS, + [], + plugins, + ) + + @_overload + def transact_write_items( + self, + request: _models.TransactWriteItemsInput | _models.TransactWriteItemsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TransactWriteItemsOutput: ... + + @_overload def transact_write_items( - self, input: TransactWriteItemsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TransactWriteItemsInputDict], ) -> TransactWriteItemsOutput: """ `TransactWriteItems` is a synchronous write operation that groups up to @@ -2130,8 +3143,6 @@ def transact_write_items( - There is a user error, such as an invalid data format. Args: - input: - An instance of `TransactWriteItemsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2141,10 +3152,33 @@ def transact_write_items( Returns: An instance of `TransactWriteItemsOutput`. """ - return self._invoke(input, _models.TRANSACT_WRITE_ITEMS, [], plugins) + def transact_write_items( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TransactWriteItemsOutput: + return self._invoke( + self._select_input(_models.TRANSACT_WRITE_ITEMS, args, kwargs), + _models.TRANSACT_WRITE_ITEMS, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes the association of tags from an Amazon DynamoDB resource. You @@ -2167,8 +3201,6 @@ def untag_resource( in the *Amazon DynamoDB Developer Guide*. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2178,10 +3210,34 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_continuous_backups( + self, + request: _models.UpdateContinuousBackupsInput + | _models.UpdateContinuousBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContinuousBackupsOutput: ... + + @_overload def update_continuous_backups( - self, input: UpdateContinuousBackupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContinuousBackupsInputDict], ) -> UpdateContinuousBackupsOutput: """ `UpdateContinuousBackups` enables or disables point in time recovery for @@ -2200,8 +3256,6 @@ def update_continuous_backups( 35 days. Args: - input: - An instance of `UpdateContinuousBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2211,10 +3265,34 @@ def update_continuous_backups( Returns: An instance of `UpdateContinuousBackupsOutput`. """ - return self._invoke(input, _models.UPDATE_CONTINUOUS_BACKUPS, [], plugins) + def update_continuous_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContinuousBackupsOutput: + return self._invoke( + self._select_input(_models.UPDATE_CONTINUOUS_BACKUPS, args, kwargs), + _models.UPDATE_CONTINUOUS_BACKUPS, + [], + plugins, + ) + + @_overload def update_contributor_insights( - self, input: UpdateContributorInsightsInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateContributorInsightsInput + | _models.UpdateContributorInsightsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContributorInsightsOutput: ... + + @_overload + def update_contributor_insights( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContributorInsightsInputDict], ) -> UpdateContributorInsightsOutput: """ Updates the status for contributor insights for a specific table or @@ -2227,8 +3305,6 @@ def update_contributor_insights( Insights for DynamoDB for this table. Args: - input: - An instance of `UpdateContributorInsightsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2238,10 +3314,33 @@ def update_contributor_insights( Returns: An instance of `UpdateContributorInsightsOutput`. """ - return self._invoke(input, _models.UPDATE_CONTRIBUTOR_INSIGHTS, [], plugins) + def update_contributor_insights( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContributorInsightsOutput: + return self._invoke( + self._select_input(_models.UPDATE_CONTRIBUTOR_INSIGHTS, args, kwargs), + _models.UPDATE_CONTRIBUTOR_INSIGHTS, + [], + plugins, + ) + + @_overload + def update_global_table( + self, + request: _models.UpdateGlobalTableInput | _models.UpdateGlobalTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGlobalTableOutput: ... + + @_overload def update_global_table( - self, input: UpdateGlobalTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGlobalTableInputDict], ) -> UpdateGlobalTableOutput: """ Adds or removes replicas in the specified global table. The global table @@ -2287,8 +3386,6 @@ def update_global_table( maximum write capacity units. Args: - input: - An instance of `UpdateGlobalTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2298,10 +3395,34 @@ def update_global_table( Returns: An instance of `UpdateGlobalTableOutput`. """ - return self._invoke(input, _models.UPDATE_GLOBAL_TABLE, [], plugins) + def update_global_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGlobalTableOutput: + return self._invoke( + self._select_input(_models.UPDATE_GLOBAL_TABLE, args, kwargs), + _models.UPDATE_GLOBAL_TABLE, + [], + plugins, + ) + + @_overload + def update_global_table_settings( + self, + request: _models.UpdateGlobalTableSettingsInput + | _models.UpdateGlobalTableSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGlobalTableSettingsOutput: ... + + @_overload def update_global_table_settings( - self, input: UpdateGlobalTableSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGlobalTableSettingsInputDict], ) -> UpdateGlobalTableSettingsOutput: """ Updates settings for a global table. @@ -2322,8 +3443,6 @@ def update_global_table_settings( tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html). Args: - input: - An instance of `UpdateGlobalTableSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2333,10 +3452,33 @@ def update_global_table_settings( Returns: An instance of `UpdateGlobalTableSettingsOutput`. """ - return self._invoke(input, _models.UPDATE_GLOBAL_TABLE_SETTINGS, [], plugins) + def update_global_table_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGlobalTableSettingsOutput: + return self._invoke( + self._select_input(_models.UPDATE_GLOBAL_TABLE_SETTINGS, args, kwargs), + _models.UPDATE_GLOBAL_TABLE_SETTINGS, + [], + plugins, + ) + + @_overload + def update_item( + self, + request: _models.UpdateItemInput | _models.UpdateItemInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateItemOutput: ... + + @_overload def update_item( - self, input: UpdateItemInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateItemInputDict], ) -> UpdateItemOutput: """ Edits an existing item's attributes, or adds a new item to the table if @@ -2349,8 +3491,6 @@ def update_item( `UpdateItem` operation using the `ReturnValues` parameter. Args: - input: - An instance of `UpdateItemInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2360,19 +3500,39 @@ def update_item( Returns: An instance of `UpdateItemOutput`. """ - return self._invoke(input, _models.UPDATE_ITEM, [], plugins) + def update_item( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateItemOutput: + return self._invoke( + self._select_input(_models.UPDATE_ITEM, args, kwargs), + _models.UPDATE_ITEM, + [], + plugins, + ) + + @_overload + def update_kinesis_streaming_destination( + self, + request: _models.UpdateKinesisStreamingDestinationInput + | _models.UpdateKinesisStreamingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKinesisStreamingDestinationOutput: ... + + @_overload def update_kinesis_streaming_destination( self, - input: UpdateKinesisStreamingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKinesisStreamingDestinationInputDict], ) -> UpdateKinesisStreamingDestinationOutput: """ The command to update the Kinesis stream destination. Args: - input: - An instance of `UpdateKinesisStreamingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2382,12 +3542,35 @@ def update_kinesis_streaming_destination( Returns: An instance of `UpdateKinesisStreamingDestinationOutput`. """ + + def update_kinesis_streaming_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKinesisStreamingDestinationOutput: return self._invoke( - input, _models.UPDATE_KINESIS_STREAMING_DESTINATION, [], plugins + self._select_input( + _models.UPDATE_KINESIS_STREAMING_DESTINATION, args, kwargs + ), + _models.UPDATE_KINESIS_STREAMING_DESTINATION, + [], + plugins, ) + @_overload + def update_table( + self, + request: _models.UpdateTableInput | _models.UpdateTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTableOutput: ... + + @_overload def update_table( - self, input: UpdateTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTableInputDict], ) -> UpdateTableOutput: """ Modifies the provisioned throughput settings, global secondary indexes, @@ -2435,8 +3618,6 @@ def update_table( encryption-access problem, resolve it, and retry. Args: - input: - An instance of `UpdateTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2446,19 +3627,39 @@ def update_table( Returns: An instance of `UpdateTableOutput`. """ - return self._invoke(input, _models.UPDATE_TABLE, [], plugins) + def update_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTableOutput: + return self._invoke( + self._select_input(_models.UPDATE_TABLE, args, kwargs), + _models.UPDATE_TABLE, + [], + plugins, + ) + + @_overload + def update_table_replica_auto_scaling( + self, + request: _models.UpdateTableReplicaAutoScalingInput + | _models.UpdateTableReplicaAutoScalingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTableReplicaAutoScalingOutput: ... + + @_overload def update_table_replica_auto_scaling( self, - input: UpdateTableReplicaAutoScalingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTableReplicaAutoScalingInputDict], ) -> UpdateTableReplicaAutoScalingOutput: """ Updates auto scaling settings on your global tables at once. Args: - input: - An instance of `UpdateTableReplicaAutoScalingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2468,12 +3669,33 @@ def update_table_replica_auto_scaling( Returns: An instance of `UpdateTableReplicaAutoScalingOutput`. """ + + def update_table_replica_auto_scaling( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTableReplicaAutoScalingOutput: return self._invoke( - input, _models.UPDATE_TABLE_REPLICA_AUTO_SCALING, [], plugins + self._select_input(_models.UPDATE_TABLE_REPLICA_AUTO_SCALING, args, kwargs), + _models.UPDATE_TABLE_REPLICA_AUTO_SCALING, + [], + plugins, ) + @_overload + def update_time_to_live( + self, + request: _models.UpdateTimeToLiveInput | _models.UpdateTimeToLiveInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTimeToLiveOutput: ... + + @_overload def update_time_to_live( - self, input: UpdateTimeToLiveInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTimeToLiveInputDict], ) -> UpdateTimeToLiveOutput: """ The `UpdateTimeToLive` method enables or disables Time to Live (TTL) for @@ -2510,8 +3732,6 @@ def update_time_to_live( in the Amazon DynamoDB Developer Guide. Args: - input: - An instance of `UpdateTimeToLiveInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2521,7 +3741,16 @@ def update_time_to_live( Returns: An instance of `UpdateTimeToLiveOutput`. """ - return self._invoke(input, _models.UPDATE_TIME_TO_LIVE, [], plugins) + + def update_time_to_live( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTimeToLiveOutput: + return self._invoke( + self._select_input(_models.UPDATE_TIME_TO_LIVE, args, kwargs), + _models.UPDATE_TIME_TO_LIVE, + [], + plugins, + ) def _new_config(self) -> DynamoDBConfig: return DynamoDBConfig.resolve() diff --git a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/models.pyi b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/models.pyi index 54fdfc4d9..50f968671 100644 --- a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/models.pyi +++ b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/models.pyi @@ -12,6 +12,7 @@ from ._private.models_0 import ( ArchivalSummary as ArchivalSummary, AttributeAction as AttributeAction, AttributeDefinition as AttributeDefinition, + AttributeDefinitionDict as AttributeDefinitionDict, AttributeValueS as AttributeValueS, AttributeValueN as AttributeValueN, AttributeValueB as AttributeValueB, @@ -25,13 +26,28 @@ from ._private.models_0 import ( AttributeValueUnknown as AttributeValueUnknown, AttributeValue as AttributeValue, _AttributeValueDeserializer as _AttributeValueDeserializer, + AttributeValueSDict as AttributeValueSDict, + AttributeValueNDict as AttributeValueNDict, + AttributeValueBDict as AttributeValueBDict, + AttributeValueSSDict as AttributeValueSSDict, + AttributeValueNSDict as AttributeValueNSDict, + AttributeValueBSDict as AttributeValueBSDict, + AttributeValueMDict as AttributeValueMDict, + AttributeValueLDict as AttributeValueLDict, + AttributeValueNULLDict as AttributeValueNULLDict, + AttributeValueBOOLDict as AttributeValueBOOLDict, + AttributeValueDict as AttributeValueDict, AttributeValueUpdate as AttributeValueUpdate, + AttributeValueUpdateDict as AttributeValueUpdateDict, AutoScalingPolicyDescription as AutoScalingPolicyDescription, AutoScalingPolicyUpdate as AutoScalingPolicyUpdate, + AutoScalingPolicyUpdateDict as AutoScalingPolicyUpdateDict, AutoScalingSettingsDescription as AutoScalingSettingsDescription, AutoScalingSettingsUpdate as AutoScalingSettingsUpdate, + AutoScalingSettingsUpdateDict as AutoScalingSettingsUpdateDict, AutoScalingTargetTrackingScalingPolicyConfigurationDescription as AutoScalingTargetTrackingScalingPolicyConfigurationDescription, AutoScalingTargetTrackingScalingPolicyConfigurationUpdate as AutoScalingTargetTrackingScalingPolicyConfigurationUpdate, + AutoScalingTargetTrackingScalingPolicyConfigurationUpdateDict as AutoScalingTargetTrackingScalingPolicyConfigurationUpdateDict, BackupDescription as BackupDescription, BackupDetails as BackupDetails, BackupInUseException as BackupInUseException, @@ -41,14 +57,18 @@ from ._private.models_0 import ( BackupType as BackupType, BackupTypeFilter as BackupTypeFilter, BatchExecuteStatementInput as BatchExecuteStatementInput, + BatchExecuteStatementInputDict as BatchExecuteStatementInputDict, BatchExecuteStatementOutput as BatchExecuteStatementOutput, BatchGetItemInput as BatchGetItemInput, + BatchGetItemInputDict as BatchGetItemInputDict, BatchGetItemOutput as BatchGetItemOutput, BatchStatementError as BatchStatementError, BatchStatementErrorCodeEnum as BatchStatementErrorCodeEnum, BatchStatementRequest as BatchStatementRequest, + BatchStatementRequestDict as BatchStatementRequestDict, BatchStatementResponse as BatchStatementResponse, BatchWriteItemInput as BatchWriteItemInput, + BatchWriteItemInputDict as BatchWriteItemInputDict, BatchWriteItemOutput as BatchWriteItemOutput, BillingMode as BillingMode, BillingModeSummary as BillingModeSummary, @@ -62,14 +82,17 @@ from ._private.models_0 import ( BulkOperationUsage as BulkOperationUsage, BulkOperationVectorBytes as BulkOperationVectorBytes, CancelBulkOperationInput as CancelBulkOperationInput, + CancelBulkOperationInputDict as CancelBulkOperationInputDict, CancelBulkOperationOutput as CancelBulkOperationOutput, CancellationReason as CancellationReason, Capacity as Capacity, ComparisonOperator as ComparisonOperator, Condition as Condition, + ConditionDict as ConditionDict, ConditionalCheckFailedException as ConditionalCheckFailedException, ConditionalOperator as ConditionalOperator, ConditionCheck as ConditionCheck, + ConditionCheckDict as ConditionCheckDict, ConsumedCapacity as ConsumedCapacity, ContinuousBackupsDescription as ContinuousBackupsDescription, ContinuousBackupsStatus as ContinuousBackupsStatus, @@ -79,75 +102,116 @@ from ._private.models_0 import ( ContributorInsightsStatus as ContributorInsightsStatus, ContributorInsightsSummary as ContributorInsightsSummary, CreateBackupInput as CreateBackupInput, + CreateBackupInputDict as CreateBackupInputDict, CreateBackupOutput as CreateBackupOutput, CreateGlobalSecondaryIndexAction as CreateGlobalSecondaryIndexAction, + CreateGlobalSecondaryIndexActionDict as CreateGlobalSecondaryIndexActionDict, CreateGlobalTableInput as CreateGlobalTableInput, + CreateGlobalTableInputDict as CreateGlobalTableInputDict, CreateGlobalTableOutput as CreateGlobalTableOutput, CreateGlobalTableWitnessGroupMemberAction as CreateGlobalTableWitnessGroupMemberAction, + CreateGlobalTableWitnessGroupMemberActionDict as CreateGlobalTableWitnessGroupMemberActionDict, CreateReplicaAction as CreateReplicaAction, + CreateReplicaActionDict as CreateReplicaActionDict, CreateReplicationGroupMemberAction as CreateReplicationGroupMemberAction, + CreateReplicationGroupMemberActionDict as CreateReplicationGroupMemberActionDict, CreateTableInput as CreateTableInput, + CreateTableInputDict as CreateTableInputDict, CreateTableOutput as CreateTableOutput, CreateVectorIndexAction as CreateVectorIndexAction, + CreateVectorIndexActionDict as CreateVectorIndexActionDict, CsvOptions as CsvOptions, + CsvOptionsDict as CsvOptionsDict, Delete as Delete, + DeleteDict as DeleteDict, DeleteBackupInput as DeleteBackupInput, + DeleteBackupInputDict as DeleteBackupInputDict, DeleteBackupOutput as DeleteBackupOutput, DeleteGlobalSecondaryIndexAction as DeleteGlobalSecondaryIndexAction, + DeleteGlobalSecondaryIndexActionDict as DeleteGlobalSecondaryIndexActionDict, DeleteGlobalTableWitnessGroupMemberAction as DeleteGlobalTableWitnessGroupMemberAction, + DeleteGlobalTableWitnessGroupMemberActionDict as DeleteGlobalTableWitnessGroupMemberActionDict, DeleteItemInput as DeleteItemInput, + DeleteItemInputDict as DeleteItemInputDict, DeleteItemOutput as DeleteItemOutput, DeleteReplicaAction as DeleteReplicaAction, + DeleteReplicaActionDict as DeleteReplicaActionDict, DeleteReplicationGroupMemberAction as DeleteReplicationGroupMemberAction, + DeleteReplicationGroupMemberActionDict as DeleteReplicationGroupMemberActionDict, DeleteRequest as DeleteRequest, + DeleteRequestDict as DeleteRequestDict, DeleteResourcePolicyInput as DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict as DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput as DeleteResourcePolicyOutput, DeleteTableInput as DeleteTableInput, + DeleteTableInputDict as DeleteTableInputDict, DeleteTableOutput as DeleteTableOutput, DeleteVectorIndexAction as DeleteVectorIndexAction, + DeleteVectorIndexActionDict as DeleteVectorIndexActionDict, DescribeBackupInput as DescribeBackupInput, + DescribeBackupInputDict as DescribeBackupInputDict, DescribeBackupOutput as DescribeBackupOutput, DescribeBulkOperationInput as DescribeBulkOperationInput, + DescribeBulkOperationInputDict as DescribeBulkOperationInputDict, DescribeBulkOperationOutput as DescribeBulkOperationOutput, DescribeContinuousBackupsInput as DescribeContinuousBackupsInput, + DescribeContinuousBackupsInputDict as DescribeContinuousBackupsInputDict, DescribeContinuousBackupsOutput as DescribeContinuousBackupsOutput, DescribeContributorInsightsInput as DescribeContributorInsightsInput, + DescribeContributorInsightsInputDict as DescribeContributorInsightsInputDict, DescribeContributorInsightsOutput as DescribeContributorInsightsOutput, DescribeEndpointsInput as DescribeEndpointsInput, + DescribeEndpointsInputDict as DescribeEndpointsInputDict, DescribeEndpointsOutput as DescribeEndpointsOutput, DescribeExportInput as DescribeExportInput, + DescribeExportInputDict as DescribeExportInputDict, DescribeExportOutput as DescribeExportOutput, DescribeGlobalTableInput as DescribeGlobalTableInput, + DescribeGlobalTableInputDict as DescribeGlobalTableInputDict, DescribeGlobalTableOutput as DescribeGlobalTableOutput, DescribeGlobalTableSettingsInput as DescribeGlobalTableSettingsInput, + DescribeGlobalTableSettingsInputDict as DescribeGlobalTableSettingsInputDict, DescribeGlobalTableSettingsOutput as DescribeGlobalTableSettingsOutput, DescribeImportInput as DescribeImportInput, + DescribeImportInputDict as DescribeImportInputDict, DescribeImportOutput as DescribeImportOutput, DescribeKinesisStreamingDestinationInput as DescribeKinesisStreamingDestinationInput, + DescribeKinesisStreamingDestinationInputDict as DescribeKinesisStreamingDestinationInputDict, DescribeKinesisStreamingDestinationOutput as DescribeKinesisStreamingDestinationOutput, DescribeLimitsInput as DescribeLimitsInput, + DescribeLimitsInputDict as DescribeLimitsInputDict, DescribeLimitsOutput as DescribeLimitsOutput, DescribeTableInput as DescribeTableInput, + DescribeTableInputDict as DescribeTableInputDict, DescribeTableOutput as DescribeTableOutput, DescribeTableReplicaAutoScalingInput as DescribeTableReplicaAutoScalingInput, + DescribeTableReplicaAutoScalingInputDict as DescribeTableReplicaAutoScalingInputDict, DescribeTableReplicaAutoScalingOutput as DescribeTableReplicaAutoScalingOutput, DescribeTimeToLiveInput as DescribeTimeToLiveInput, + DescribeTimeToLiveInputDict as DescribeTimeToLiveInputDict, DescribeTimeToLiveOutput as DescribeTimeToLiveOutput, DestinationStatus as DestinationStatus, DisableKinesisStreamingDestinationInput as DisableKinesisStreamingDestinationInput, + DisableKinesisStreamingDestinationInputDict as DisableKinesisStreamingDestinationInputDict, DisableKinesisStreamingDestinationOutput as DisableKinesisStreamingDestinationOutput, DisassociateReplicationGroupMemberAction as DisassociateReplicationGroupMemberAction, + DisassociateReplicationGroupMemberActionDict as DisassociateReplicationGroupMemberActionDict, DisassociationMode as DisassociationMode, DuplicateItemException as DuplicateItemException, EnableKinesisStreamingConfiguration as EnableKinesisStreamingConfiguration, + EnableKinesisStreamingConfigurationDict as EnableKinesisStreamingConfigurationDict, EnableKinesisStreamingDestinationInput as EnableKinesisStreamingDestinationInput, + EnableKinesisStreamingDestinationInputDict as EnableKinesisStreamingDestinationInputDict, EnableKinesisStreamingDestinationOutput as EnableKinesisStreamingDestinationOutput, Endpoint as Endpoint, ExecuteStatementInput as ExecuteStatementInput, + ExecuteStatementInputDict as ExecuteStatementInputDict, ExecuteStatementOutput as ExecuteStatementOutput, ExecuteTransactionInput as ExecuteTransactionInput, + ExecuteTransactionInputDict as ExecuteTransactionInputDict, ExecuteTransactionOutput as ExecuteTransactionOutput, ExpectedAttributeValue as ExpectedAttributeValue, + ExpectedAttributeValueDict as ExpectedAttributeValueDict, ExportConflictException as ExportConflictException, ExportDescription as ExportDescription, ExportFormat as ExportFormat, @@ -155,31 +219,41 @@ from ._private.models_0 import ( ExportStatus as ExportStatus, ExportSummary as ExportSummary, ExportTableToPointInTimeInput as ExportTableToPointInTimeInput, + ExportTableToPointInTimeInputDict as ExportTableToPointInTimeInputDict, ExportTableToPointInTimeOutput as ExportTableToPointInTimeOutput, ExportType as ExportType, ExportViewType as ExportViewType, FailureException as FailureException, FilterSpecification as FilterSpecification, + FilterSpecificationDict as FilterSpecificationDict, Get as Get, + GetDict as GetDict, GetItemInput as GetItemInput, + GetItemInputDict as GetItemInputDict, GetItemOutput as GetItemOutput, GetResourcePolicyInput as GetResourcePolicyInput, + GetResourcePolicyInputDict as GetResourcePolicyInputDict, GetResourcePolicyOutput as GetResourcePolicyOutput, GlobalSecondaryIndex as GlobalSecondaryIndex, + GlobalSecondaryIndexDict as GlobalSecondaryIndexDict, GlobalSecondaryIndexAutoScalingUpdate as GlobalSecondaryIndexAutoScalingUpdate, + GlobalSecondaryIndexAutoScalingUpdateDict as GlobalSecondaryIndexAutoScalingUpdateDict, GlobalSecondaryIndexDescription as GlobalSecondaryIndexDescription, GlobalSecondaryIndexInfo as GlobalSecondaryIndexInfo, GlobalSecondaryIndexUpdate as GlobalSecondaryIndexUpdate, + GlobalSecondaryIndexUpdateDict as GlobalSecondaryIndexUpdateDict, GlobalSecondaryIndexWarmThroughputDescription as GlobalSecondaryIndexWarmThroughputDescription, GlobalTable as GlobalTable, GlobalTableAlreadyExistsException as GlobalTableAlreadyExistsException, GlobalTableDescription as GlobalTableDescription, GlobalTableGlobalSecondaryIndexSettingsUpdate as GlobalTableGlobalSecondaryIndexSettingsUpdate, + GlobalTableGlobalSecondaryIndexSettingsUpdateDict as GlobalTableGlobalSecondaryIndexSettingsUpdateDict, GlobalTableNotFoundException as GlobalTableNotFoundException, GlobalTableSettingsReplicationMode as GlobalTableSettingsReplicationMode, GlobalTableStatus as GlobalTableStatus, GlobalTableWitnessDescription as GlobalTableWitnessDescription, GlobalTableWitnessGroupUpdate as GlobalTableWitnessGroupUpdate, + GlobalTableWitnessGroupUpdateDict as GlobalTableWitnessGroupUpdateDict, IdempotentParameterMismatchException as IdempotentParameterMismatchException, ImportConflictException as ImportConflictException, ImportNotFoundException as ImportNotFoundException, @@ -187,14 +261,18 @@ from ._private.models_0 import ( ImportSummary as ImportSummary, ImportTableDescription as ImportTableDescription, ImportTableInput as ImportTableInput, + ImportTableInputDict as ImportTableInputDict, ImportTableOutput as ImportTableOutput, IncrementalExportSpecification as IncrementalExportSpecification, + IncrementalExportSpecificationDict as IncrementalExportSpecificationDict, IndexNotFoundException as IndexNotFoundException, IndexStatus as IndexStatus, InputCompressionType as InputCompressionType, InputFormat as InputFormat, InputFormatOptions as InputFormatOptions, + InputFormatOptionsDict as InputFormatOptionsDict, InputS3Configuration as InputS3Configuration, + InputS3ConfigurationDict as InputS3ConfigurationDict, InternalServerError as InternalServerError, InvalidEndpointException as InvalidEndpointException, InvalidExportTimeException as InvalidExportTimeException, @@ -203,72 +281,104 @@ from ._private.models_0 import ( ItemCollectionSizeLimitExceededException as ItemCollectionSizeLimitExceededException, ItemResponse as ItemResponse, KeysAndAttributes as KeysAndAttributes, + KeysAndAttributesDict as KeysAndAttributesDict, KeySchemaElement as KeySchemaElement, + KeySchemaElementDict as KeySchemaElementDict, KeyType as KeyType, KinesisDataStreamDestination as KinesisDataStreamDestination, LimitExceededException as LimitExceededException, ListBackupsInput as ListBackupsInput, + ListBackupsInputDict as ListBackupsInputDict, ListBackupsOutput as ListBackupsOutput, ListBulkOperationsInput as ListBulkOperationsInput, + ListBulkOperationsInputDict as ListBulkOperationsInputDict, ListBulkOperationsOutput as ListBulkOperationsOutput, ListContributorInsightsInput as ListContributorInsightsInput, + ListContributorInsightsInputDict as ListContributorInsightsInputDict, ListContributorInsightsOutput as ListContributorInsightsOutput, ListExportsInput as ListExportsInput, + ListExportsInputDict as ListExportsInputDict, ListExportsOutput as ListExportsOutput, ListGlobalTablesInput as ListGlobalTablesInput, + ListGlobalTablesInputDict as ListGlobalTablesInputDict, ListGlobalTablesOutput as ListGlobalTablesOutput, ListImportsInput as ListImportsInput, + ListImportsInputDict as ListImportsInputDict, ListImportsOutput as ListImportsOutput, ListTablesInput as ListTablesInput, + ListTablesInputDict as ListTablesInputDict, ListTablesOutput as ListTablesOutput, ListTagsOfResourceInput as ListTagsOfResourceInput, + ListTagsOfResourceInputDict as ListTagsOfResourceInputDict, ListTagsOfResourceOutput as ListTagsOfResourceOutput, LocalSecondaryIndex as LocalSecondaryIndex, + LocalSecondaryIndexDict as LocalSecondaryIndexDict, LocalSecondaryIndexDescription as LocalSecondaryIndexDescription, LocalSecondaryIndexInfo as LocalSecondaryIndexInfo, MultiRegionConsistency as MultiRegionConsistency, OnDemandThroughput as OnDemandThroughput, + OnDemandThroughputDict as OnDemandThroughputDict, OnDemandThroughputOverride as OnDemandThroughputOverride, + OnDemandThroughputOverrideDict as OnDemandThroughputOverrideDict, OutputS3Configuration as OutputS3Configuration, + OutputS3ConfigurationDict as OutputS3ConfigurationDict, OutputTypeEnum as OutputTypeEnum, ParameterizedStatement as ParameterizedStatement, + ParameterizedStatementDict as ParameterizedStatementDict, PointInTimeRecoveryDescription as PointInTimeRecoveryDescription, PointInTimeRecoverySpecification as PointInTimeRecoverySpecification, + PointInTimeRecoverySpecificationDict as PointInTimeRecoverySpecificationDict, PointInTimeRecoveryStatus as PointInTimeRecoveryStatus, PointInTimeRecoveryUnavailableException as PointInTimeRecoveryUnavailableException, PolicyNotFoundException as PolicyNotFoundException, Projection as Projection, + ProjectionDict as ProjectionDict, ProjectionType as ProjectionType, ProvisionedThroughput as ProvisionedThroughput, + ProvisionedThroughputDict as ProvisionedThroughputDict, ProvisionedThroughputDescription as ProvisionedThroughputDescription, ProvisionedThroughputExceededException as ProvisionedThroughputExceededException, ProvisionedThroughputOverride as ProvisionedThroughputOverride, + ProvisionedThroughputOverrideDict as ProvisionedThroughputOverrideDict, Put as Put, + PutDict as PutDict, PutItemInput as PutItemInput, + PutItemInputDict as PutItemInputDict, PutItemOutput as PutItemOutput, PutRequest as PutRequest, + PutRequestDict as PutRequestDict, PutResourcePolicyInput as PutResourcePolicyInput, + PutResourcePolicyInputDict as PutResourcePolicyInputDict, PutResourcePolicyOutput as PutResourcePolicyOutput, QueryInput as QueryInput, + QueryInputDict as QueryInputDict, QueryOutput as QueryOutput, Replica as Replica, + ReplicaDict as ReplicaDict, ReplicaAlreadyExistsException as ReplicaAlreadyExistsException, ReplicaAutoScalingDescription as ReplicaAutoScalingDescription, ReplicaAutoScalingUpdate as ReplicaAutoScalingUpdate, + ReplicaAutoScalingUpdateDict as ReplicaAutoScalingUpdateDict, ReplicaDescription as ReplicaDescription, ReplicaGlobalSecondaryIndex as ReplicaGlobalSecondaryIndex, + ReplicaGlobalSecondaryIndexDict as ReplicaGlobalSecondaryIndexDict, ReplicaGlobalSecondaryIndexAutoScalingDescription as ReplicaGlobalSecondaryIndexAutoScalingDescription, ReplicaGlobalSecondaryIndexAutoScalingUpdate as ReplicaGlobalSecondaryIndexAutoScalingUpdate, + ReplicaGlobalSecondaryIndexAutoScalingUpdateDict as ReplicaGlobalSecondaryIndexAutoScalingUpdateDict, ReplicaGlobalSecondaryIndexDescription as ReplicaGlobalSecondaryIndexDescription, ReplicaGlobalSecondaryIndexSettingsDescription as ReplicaGlobalSecondaryIndexSettingsDescription, ReplicaGlobalSecondaryIndexSettingsUpdate as ReplicaGlobalSecondaryIndexSettingsUpdate, + ReplicaGlobalSecondaryIndexSettingsUpdateDict as ReplicaGlobalSecondaryIndexSettingsUpdateDict, ReplicaNotFoundException as ReplicaNotFoundException, ReplicaSettingsDescription as ReplicaSettingsDescription, ReplicaSettingsUpdate as ReplicaSettingsUpdate, + ReplicaSettingsUpdateDict as ReplicaSettingsUpdateDict, ReplicaStatus as ReplicaStatus, ReplicatedWriteConflictException as ReplicatedWriteConflictException, ReplicationGroupUpdate as ReplicationGroupUpdate, + ReplicationGroupUpdateDict as ReplicationGroupUpdateDict, ReplicaUpdate as ReplicaUpdate, + ReplicaUpdateDict as ReplicaUpdateDict, RequestLimitExceeded as RequestLimitExceeded, ) @@ -277,95 +387,131 @@ from ._private.models_1 import ( ResourceNotFoundException as ResourceNotFoundException, RestoreSummary as RestoreSummary, RestoreTableFromBackupInput as RestoreTableFromBackupInput, + RestoreTableFromBackupInputDict as RestoreTableFromBackupInputDict, RestoreTableFromBackupOutput as RestoreTableFromBackupOutput, RestoreTableToPointInTimeInput as RestoreTableToPointInTimeInput, + RestoreTableToPointInTimeInputDict as RestoreTableToPointInTimeInputDict, RestoreTableToPointInTimeOutput as RestoreTableToPointInTimeOutput, ReturnConsumedCapacity as ReturnConsumedCapacity, ReturnItemCollectionMetrics as ReturnItemCollectionMetrics, ReturnValue as ReturnValue, ReturnValuesOnConditionCheckFailure as ReturnValuesOnConditionCheckFailure, S3BucketSource as S3BucketSource, + S3BucketSourceDict as S3BucketSourceDict, S3SseAlgorithm as S3SseAlgorithm, ScalarAttributeType as ScalarAttributeType, ScanInput as ScanInput, + ScanInputDict as ScanInputDict, ScanOutput as ScanOutput, SearchResultItem as SearchResultItem, SearchSchemaElement as SearchSchemaElement, + SearchSchemaElementDict as SearchSchemaElementDict, SearchSchemaElementType as SearchSchemaElementType, SearchVectorsInput as SearchVectorsInput, + SearchVectorsInputDict as SearchVectorsInputDict, SearchVectorsOutput as SearchVectorsOutput, Select as Select, SourceTableDetails as SourceTableDetails, SourceTableFeatureDetails as SourceTableFeatureDetails, SSEDescription as SSEDescription, SSESpecification as SSESpecification, + SSESpecificationDict as SSESpecificationDict, SSEStatus as SSEStatus, SSEType as SSEType, StartBulkPutItemsInput as StartBulkPutItemsInput, + StartBulkPutItemsInputDict as StartBulkPutItemsInputDict, StartBulkPutItemsOutput as StartBulkPutItemsOutput, StreamSpecification as StreamSpecification, + StreamSpecificationDict as StreamSpecificationDict, StreamViewType as StreamViewType, TableAlreadyExistsException as TableAlreadyExistsException, TableAutoScalingDescription as TableAutoScalingDescription, TableClass as TableClass, TableClassSummary as TableClassSummary, TableCreationParameters as TableCreationParameters, + TableCreationParametersDict as TableCreationParametersDict, TableDescription as TableDescription, TableInUseException as TableInUseException, TableNotFoundException as TableNotFoundException, TableStatus as TableStatus, TableWarmThroughputDescription as TableWarmThroughputDescription, Tag as Tag, + TagDict as TagDict, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, ThrottlingException as ThrottlingException, ThrottlingReason as ThrottlingReason, TimeToLiveDescription as TimeToLiveDescription, TimeToLiveSpecification as TimeToLiveSpecification, + TimeToLiveSpecificationDict as TimeToLiveSpecificationDict, TimeToLiveStatus as TimeToLiveStatus, TransactGetItem as TransactGetItem, + TransactGetItemDict as TransactGetItemDict, TransactGetItemsInput as TransactGetItemsInput, + TransactGetItemsInputDict as TransactGetItemsInputDict, TransactGetItemsOutput as TransactGetItemsOutput, TransactionCanceledException as TransactionCanceledException, TransactionConflictException as TransactionConflictException, TransactionInProgressException as TransactionInProgressException, TransactWriteItem as TransactWriteItem, + TransactWriteItemDict as TransactWriteItemDict, TransactWriteItemsInput as TransactWriteItemsInput, + TransactWriteItemsInputDict as TransactWriteItemsInputDict, TransactWriteItemsOutput as TransactWriteItemsOutput, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, Update as Update, + UpdateDict as UpdateDict, UpdateContinuousBackupsInput as UpdateContinuousBackupsInput, + UpdateContinuousBackupsInputDict as UpdateContinuousBackupsInputDict, UpdateContinuousBackupsOutput as UpdateContinuousBackupsOutput, UpdateContributorInsightsInput as UpdateContributorInsightsInput, + UpdateContributorInsightsInputDict as UpdateContributorInsightsInputDict, UpdateContributorInsightsOutput as UpdateContributorInsightsOutput, UpdateGlobalSecondaryIndexAction as UpdateGlobalSecondaryIndexAction, + UpdateGlobalSecondaryIndexActionDict as UpdateGlobalSecondaryIndexActionDict, UpdateGlobalTableInput as UpdateGlobalTableInput, + UpdateGlobalTableInputDict as UpdateGlobalTableInputDict, UpdateGlobalTableOutput as UpdateGlobalTableOutput, UpdateGlobalTableSettingsInput as UpdateGlobalTableSettingsInput, + UpdateGlobalTableSettingsInputDict as UpdateGlobalTableSettingsInputDict, UpdateGlobalTableSettingsOutput as UpdateGlobalTableSettingsOutput, UpdateItemInput as UpdateItemInput, + UpdateItemInputDict as UpdateItemInputDict, UpdateItemOutput as UpdateItemOutput, UpdateKinesisStreamingConfiguration as UpdateKinesisStreamingConfiguration, + UpdateKinesisStreamingConfigurationDict as UpdateKinesisStreamingConfigurationDict, UpdateKinesisStreamingDestinationInput as UpdateKinesisStreamingDestinationInput, + UpdateKinesisStreamingDestinationInputDict as UpdateKinesisStreamingDestinationInputDict, UpdateKinesisStreamingDestinationOutput as UpdateKinesisStreamingDestinationOutput, UpdateReplicationGroupMemberAction as UpdateReplicationGroupMemberAction, + UpdateReplicationGroupMemberActionDict as UpdateReplicationGroupMemberActionDict, UpdateTableInput as UpdateTableInput, + UpdateTableInputDict as UpdateTableInputDict, UpdateTableOutput as UpdateTableOutput, UpdateTableReplicaAutoScalingInput as UpdateTableReplicaAutoScalingInput, + UpdateTableReplicaAutoScalingInputDict as UpdateTableReplicaAutoScalingInputDict, UpdateTableReplicaAutoScalingOutput as UpdateTableReplicaAutoScalingOutput, UpdateTimeToLiveInput as UpdateTimeToLiveInput, + UpdateTimeToLiveInputDict as UpdateTimeToLiveInputDict, UpdateTimeToLiveOutput as UpdateTimeToLiveOutput, VectorAttributeDefinition as VectorAttributeDefinition, + VectorAttributeDefinitionDict as VectorAttributeDefinitionDict, VectorCapacity as VectorCapacity, VectorDistanceFunction as VectorDistanceFunction, VectorIndex as VectorIndex, + VectorIndexDict as VectorIndexDict, VectorIndexDescription as VectorIndexDescription, VectorIndexInfo as VectorIndexInfo, VectorIndexUpdate as VectorIndexUpdate, + VectorIndexUpdateDict as VectorIndexUpdateDict, WarmThroughput as WarmThroughput, + WarmThroughputDict as WarmThroughputDict, WitnessStatus as WitnessStatus, WriteRequest as WriteRequest, + WriteRequestDict as WriteRequestDict, ) class _SerdeShape: diff --git a/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/py.typed b/clients/aws-sdk-dynamodb/src/aws_sdk_dynamodb/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-dynamodb/tests/_typecheck.py b/clients/aws-sdk-dynamodb/tests/_typecheck.py index 0fef49a0a..2156b85b9 100644 --- a/clients/aws-sdk-dynamodb/tests/_typecheck.py +++ b/clients/aws-sdk-dynamodb/tests/_typecheck.py @@ -2,27 +2,39 @@ from typing import Any +from aws_sdk_dynamodb.aio.client import AsyncDynamoDBClient +from aws_sdk_dynamodb.client import DynamoDBClient from aws_sdk_dynamodb.models import ( ArchivalSummary, AttributeDefinition, + AttributeDefinitionDict, + AttributeValueDict, AttributeValueUpdate, + AttributeValueUpdateDict, AutoScalingPolicyDescription, AutoScalingPolicyUpdate, + AutoScalingPolicyUpdateDict, AutoScalingSettingsDescription, AutoScalingSettingsUpdate, + AutoScalingSettingsUpdateDict, AutoScalingTargetTrackingScalingPolicyConfigurationDescription, AutoScalingTargetTrackingScalingPolicyConfigurationUpdate, + AutoScalingTargetTrackingScalingPolicyConfigurationUpdateDict, BackupDescription, BackupDetails, BackupSummary, BatchExecuteStatementInput, + BatchExecuteStatementInputDict, BatchExecuteStatementOutput, BatchGetItemInput, + BatchGetItemInputDict, BatchGetItemOutput, BatchStatementError, BatchStatementRequest, + BatchStatementRequestDict, BatchStatementResponse, BatchWriteItemInput, + BatchWriteItemInputDict, BatchWriteItemOutput, BillingModeSummary, BulkOperationBytes, @@ -32,239 +44,366 @@ BulkOperationUsage, BulkOperationVectorBytes, CancelBulkOperationInput, + CancelBulkOperationInputDict, CancelBulkOperationOutput, CancellationReason, Capacity, Condition, ConditionCheck, + ConditionCheckDict, + ConditionDict, ConsumedCapacity, ContinuousBackupsDescription, ContributorInsightsSummary, CreateBackupInput, + CreateBackupInputDict, CreateBackupOutput, CreateGlobalSecondaryIndexAction, + CreateGlobalSecondaryIndexActionDict, CreateGlobalTableInput, + CreateGlobalTableInputDict, CreateGlobalTableOutput, CreateGlobalTableWitnessGroupMemberAction, + CreateGlobalTableWitnessGroupMemberActionDict, CreateReplicaAction, + CreateReplicaActionDict, CreateReplicationGroupMemberAction, + CreateReplicationGroupMemberActionDict, CreateTableInput, + CreateTableInputDict, CreateTableOutput, CreateVectorIndexAction, + CreateVectorIndexActionDict, CsvOptions, + CsvOptionsDict, Delete, DeleteBackupInput, + DeleteBackupInputDict, DeleteBackupOutput, + DeleteDict, DeleteGlobalSecondaryIndexAction, + DeleteGlobalSecondaryIndexActionDict, DeleteGlobalTableWitnessGroupMemberAction, + DeleteGlobalTableWitnessGroupMemberActionDict, DeleteItemInput, + DeleteItemInputDict, DeleteItemOutput, DeleteReplicaAction, + DeleteReplicaActionDict, DeleteReplicationGroupMemberAction, + DeleteReplicationGroupMemberActionDict, DeleteRequest, + DeleteRequestDict, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DeleteTableInput, + DeleteTableInputDict, DeleteTableOutput, DeleteVectorIndexAction, + DeleteVectorIndexActionDict, DescribeBackupInput, + DescribeBackupInputDict, DescribeBackupOutput, DescribeBulkOperationInput, + DescribeBulkOperationInputDict, DescribeBulkOperationOutput, DescribeContinuousBackupsInput, + DescribeContinuousBackupsInputDict, DescribeContinuousBackupsOutput, DescribeContributorInsightsInput, + DescribeContributorInsightsInputDict, DescribeContributorInsightsOutput, DescribeEndpointsInput, + DescribeEndpointsInputDict, DescribeEndpointsOutput, DescribeExportInput, + DescribeExportInputDict, DescribeExportOutput, DescribeGlobalTableInput, + DescribeGlobalTableInputDict, DescribeGlobalTableOutput, DescribeGlobalTableSettingsInput, + DescribeGlobalTableSettingsInputDict, DescribeGlobalTableSettingsOutput, DescribeImportInput, + DescribeImportInputDict, DescribeImportOutput, DescribeKinesisStreamingDestinationInput, + DescribeKinesisStreamingDestinationInputDict, DescribeKinesisStreamingDestinationOutput, DescribeLimitsInput, + DescribeLimitsInputDict, DescribeLimitsOutput, DescribeTableInput, + DescribeTableInputDict, DescribeTableOutput, DescribeTableReplicaAutoScalingInput, + DescribeTableReplicaAutoScalingInputDict, DescribeTableReplicaAutoScalingOutput, DescribeTimeToLiveInput, + DescribeTimeToLiveInputDict, DescribeTimeToLiveOutput, DisableKinesisStreamingDestinationInput, + DisableKinesisStreamingDestinationInputDict, DisableKinesisStreamingDestinationOutput, DisassociateReplicationGroupMemberAction, + DisassociateReplicationGroupMemberActionDict, EnableKinesisStreamingConfiguration, + EnableKinesisStreamingConfigurationDict, EnableKinesisStreamingDestinationInput, + EnableKinesisStreamingDestinationInputDict, EnableKinesisStreamingDestinationOutput, Endpoint, ExecuteStatementInput, + ExecuteStatementInputDict, ExecuteStatementOutput, ExecuteTransactionInput, + ExecuteTransactionInputDict, ExecuteTransactionOutput, ExpectedAttributeValue, + ExpectedAttributeValueDict, ExportDescription, ExportSummary, ExportTableToPointInTimeInput, + ExportTableToPointInTimeInputDict, ExportTableToPointInTimeOutput, FailureException, FilterSpecification, + FilterSpecificationDict, Get, + GetDict, GetItemInput, + GetItemInputDict, GetItemOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GlobalSecondaryIndex, GlobalSecondaryIndexAutoScalingUpdate, + GlobalSecondaryIndexAutoScalingUpdateDict, GlobalSecondaryIndexDescription, + GlobalSecondaryIndexDict, GlobalSecondaryIndexInfo, GlobalSecondaryIndexUpdate, + GlobalSecondaryIndexUpdateDict, GlobalSecondaryIndexWarmThroughputDescription, GlobalTable, GlobalTableDescription, GlobalTableGlobalSecondaryIndexSettingsUpdate, + GlobalTableGlobalSecondaryIndexSettingsUpdateDict, GlobalTableWitnessDescription, GlobalTableWitnessGroupUpdate, + GlobalTableWitnessGroupUpdateDict, ImportSummary, ImportTableDescription, ImportTableInput, + ImportTableInputDict, ImportTableOutput, IncrementalExportSpecification, + IncrementalExportSpecificationDict, InputFormatOptions, + InputFormatOptionsDict, InputS3Configuration, + InputS3ConfigurationDict, ItemCollectionMetrics, ItemResponse, KeySchemaElement, + KeySchemaElementDict, KeysAndAttributes, + KeysAndAttributesDict, KinesisDataStreamDestination, ListBackupsInput, + ListBackupsInputDict, ListBackupsOutput, ListBulkOperationsInput, + ListBulkOperationsInputDict, ListBulkOperationsOutput, ListContributorInsightsInput, + ListContributorInsightsInputDict, ListContributorInsightsOutput, ListExportsInput, + ListExportsInputDict, ListExportsOutput, ListGlobalTablesInput, + ListGlobalTablesInputDict, ListGlobalTablesOutput, ListImportsInput, + ListImportsInputDict, ListImportsOutput, ListTablesInput, + ListTablesInputDict, ListTablesOutput, ListTagsOfResourceInput, + ListTagsOfResourceInputDict, ListTagsOfResourceOutput, LocalSecondaryIndex, LocalSecondaryIndexDescription, + LocalSecondaryIndexDict, LocalSecondaryIndexInfo, OnDemandThroughput, + OnDemandThroughputDict, OnDemandThroughputOverride, + OnDemandThroughputOverrideDict, OutputS3Configuration, + OutputS3ConfigurationDict, ParameterizedStatement, + ParameterizedStatementDict, PointInTimeRecoveryDescription, PointInTimeRecoverySpecification, + PointInTimeRecoverySpecificationDict, Projection, + ProjectionDict, ProvisionedThroughput, ProvisionedThroughputDescription, + ProvisionedThroughputDict, ProvisionedThroughputOverride, + ProvisionedThroughputOverrideDict, Put, + PutDict, PutItemInput, + PutItemInputDict, PutItemOutput, PutRequest, + PutRequestDict, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, QueryInput, + QueryInputDict, QueryOutput, Replica, ReplicaAutoScalingDescription, ReplicaAutoScalingUpdate, + ReplicaAutoScalingUpdateDict, ReplicaDescription, + ReplicaDict, ReplicaGlobalSecondaryIndex, ReplicaGlobalSecondaryIndexAutoScalingDescription, ReplicaGlobalSecondaryIndexAutoScalingUpdate, + ReplicaGlobalSecondaryIndexAutoScalingUpdateDict, ReplicaGlobalSecondaryIndexDescription, + ReplicaGlobalSecondaryIndexDict, ReplicaGlobalSecondaryIndexSettingsDescription, ReplicaGlobalSecondaryIndexSettingsUpdate, + ReplicaGlobalSecondaryIndexSettingsUpdateDict, ReplicaSettingsDescription, ReplicaSettingsUpdate, + ReplicaSettingsUpdateDict, ReplicaUpdate, + ReplicaUpdateDict, ReplicationGroupUpdate, + ReplicationGroupUpdateDict, RestoreSummary, RestoreTableFromBackupInput, + RestoreTableFromBackupInputDict, RestoreTableFromBackupOutput, RestoreTableToPointInTimeInput, + RestoreTableToPointInTimeInputDict, RestoreTableToPointInTimeOutput, S3BucketSource, + S3BucketSourceDict, SSEDescription, SSESpecification, + SSESpecificationDict, ScanInput, + ScanInputDict, ScanOutput, SearchResultItem, SearchSchemaElement, + SearchSchemaElementDict, SearchVectorsInput, + SearchVectorsInputDict, SearchVectorsOutput, SourceTableDetails, SourceTableFeatureDetails, StartBulkPutItemsInput, + StartBulkPutItemsInputDict, StartBulkPutItemsOutput, StreamSpecification, + StreamSpecificationDict, TableAutoScalingDescription, TableClassSummary, TableCreationParameters, + TableCreationParametersDict, TableDescription, TableWarmThroughputDescription, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, ThrottlingReason, TimeToLiveDescription, TimeToLiveSpecification, + TimeToLiveSpecificationDict, TransactGetItem, + TransactGetItemDict, TransactGetItemsInput, + TransactGetItemsInputDict, TransactGetItemsOutput, TransactWriteItem, + TransactWriteItemDict, TransactWriteItemsInput, + TransactWriteItemsInputDict, TransactWriteItemsOutput, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, Update, UpdateContinuousBackupsInput, + UpdateContinuousBackupsInputDict, UpdateContinuousBackupsOutput, UpdateContributorInsightsInput, + UpdateContributorInsightsInputDict, UpdateContributorInsightsOutput, + UpdateDict, UpdateGlobalSecondaryIndexAction, + UpdateGlobalSecondaryIndexActionDict, UpdateGlobalTableInput, + UpdateGlobalTableInputDict, UpdateGlobalTableOutput, UpdateGlobalTableSettingsInput, + UpdateGlobalTableSettingsInputDict, UpdateGlobalTableSettingsOutput, UpdateItemInput, + UpdateItemInputDict, UpdateItemOutput, UpdateKinesisStreamingConfiguration, + UpdateKinesisStreamingConfigurationDict, UpdateKinesisStreamingDestinationInput, + UpdateKinesisStreamingDestinationInputDict, UpdateKinesisStreamingDestinationOutput, UpdateReplicationGroupMemberAction, + UpdateReplicationGroupMemberActionDict, UpdateTableInput, + UpdateTableInputDict, UpdateTableOutput, UpdateTableReplicaAutoScalingInput, + UpdateTableReplicaAutoScalingInputDict, UpdateTableReplicaAutoScalingOutput, UpdateTimeToLiveInput, + UpdateTimeToLiveInputDict, UpdateTimeToLiveOutput, VectorAttributeDefinition, + VectorAttributeDefinitionDict, VectorCapacity, VectorIndex, VectorIndexDescription, + VectorIndexDict, VectorIndexInfo, VectorIndexUpdate, + VectorIndexUpdateDict, WarmThroughput, + WarmThroughputDict, WriteRequest, + WriteRequestDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -541,3 +680,848 @@ VectorIndexUpdate() WarmThroughput() WriteRequest() +_params_0: AttributeDefinitionDict = {"attribute_name": _, "attribute_type": _} +_params_1: AttributeValueDict = {"s": _} +_params_2: AttributeValueUpdateDict = {} +_params_3: AutoScalingPolicyUpdateDict = { + "target_tracking_scaling_policy_configuration": _ +} +_params_4: AutoScalingSettingsUpdateDict = {} +_params_5: AutoScalingTargetTrackingScalingPolicyConfigurationUpdateDict = { + "target_value": _ +} +_params_6: BatchExecuteStatementInputDict = {"statements": _} +_params_7: BatchGetItemInputDict = {"request_items": _} +_params_8: BatchStatementRequestDict = {"statement": _} +_params_9: BatchWriteItemInputDict = {"request_items": _} +_params_10: CancelBulkOperationInputDict = {"bulk_operation_arn": _} +_params_11: ConditionDict = {"comparison_operator": _} +_params_12: ConditionCheckDict = {"key": _, "table_name": _, "condition_expression": _} +_params_13: CreateBackupInputDict = {"table_name": _, "backup_name": _} +_params_14: CreateGlobalSecondaryIndexActionDict = { + "index_name": _, + "key_schema": _, + "projection": _, +} +_params_15: CreateGlobalTableInputDict = { + "global_table_name": _, + "replication_group": _, +} +_params_16: CreateGlobalTableWitnessGroupMemberActionDict = {"region_name": _} +_params_17: CreateReplicaActionDict = {"region_name": _} +_params_18: CreateReplicationGroupMemberActionDict = {"region_name": _} +_params_19: CreateTableInputDict = {"table_name": _} +_params_20: CreateVectorIndexActionDict = { + "index_name": _, + "vector_attribute": _, + "projection": _, + "dimensions": _, + "distance_function": _, +} +_params_21: CsvOptionsDict = {} +_params_22: DeleteDict = {"key": _, "table_name": _} +_params_23: DeleteBackupInputDict = {"backup_arn": _} +_params_24: DeleteGlobalSecondaryIndexActionDict = {"index_name": _} +_params_25: DeleteGlobalTableWitnessGroupMemberActionDict = {"region_name": _} +_params_26: DeleteItemInputDict = {"table_name": _, "key": _} +_params_27: DeleteReplicaActionDict = {"region_name": _} +_params_28: DeleteReplicationGroupMemberActionDict = {"region_name": _} +_params_29: DeleteRequestDict = {"key": _} +_params_30: DeleteResourcePolicyInputDict = {"resource_arn": _} +_params_31: DeleteTableInputDict = {"table_name": _} +_params_32: DeleteVectorIndexActionDict = {"index_name": _} +_params_33: DescribeBackupInputDict = {"backup_arn": _} +_params_34: DescribeBulkOperationInputDict = {"bulk_operation_arn": _} +_params_35: DescribeContinuousBackupsInputDict = {"table_name": _} +_params_36: DescribeContributorInsightsInputDict = {"table_name": _} +_params_37: DescribeEndpointsInputDict = {} +_params_38: DescribeExportInputDict = {"export_arn": _} +_params_39: DescribeGlobalTableInputDict = {"global_table_name": _} +_params_40: DescribeGlobalTableSettingsInputDict = {"global_table_name": _} +_params_41: DescribeImportInputDict = {"import_arn": _} +_params_42: DescribeKinesisStreamingDestinationInputDict = {"table_name": _} +_params_43: DescribeLimitsInputDict = {} +_params_44: DescribeTableInputDict = {"table_name": _} +_params_45: DescribeTableReplicaAutoScalingInputDict = {"table_name": _} +_params_46: DescribeTimeToLiveInputDict = {"table_name": _} +_params_47: DisableKinesisStreamingDestinationInputDict = { + "table_name": _, + "stream_arn": _, +} +_params_48: DisassociateReplicationGroupMemberActionDict = { + "region_name": _, + "disassociation_mode": _, +} +_params_49: EnableKinesisStreamingConfigurationDict = {} +_params_50: EnableKinesisStreamingDestinationInputDict = { + "table_name": _, + "stream_arn": _, +} +_params_51: ExecuteStatementInputDict = {"statement": _} +_params_52: ExecuteTransactionInputDict = {"transact_statements": _} +_params_53: ExpectedAttributeValueDict = {} +_params_54: ExportTableToPointInTimeInputDict = {"table_arn": _, "s3_bucket": _} +_params_55: FilterSpecificationDict = {} +_params_56: GetDict = {"key": _, "table_name": _} +_params_57: GetItemInputDict = {"table_name": _, "key": _} +_params_58: GetResourcePolicyInputDict = {"resource_arn": _} +_params_59: GlobalSecondaryIndexDict = { + "index_name": _, + "key_schema": _, + "projection": _, +} +_params_60: GlobalSecondaryIndexAutoScalingUpdateDict = {} +_params_61: GlobalSecondaryIndexUpdateDict = {} +_params_62: GlobalTableGlobalSecondaryIndexSettingsUpdateDict = {"index_name": _} +_params_63: GlobalTableWitnessGroupUpdateDict = {} +_params_64: ImportTableInputDict = { + "s3_bucket_source": _, + "input_format": _, + "table_creation_parameters": _, +} +_params_65: IncrementalExportSpecificationDict = {} +_params_66: InputFormatOptionsDict = {} +_params_67: InputS3ConfigurationDict = {"s3_bucket": _, "input_format": _} +_params_68: KeysAndAttributesDict = {"keys": _} +_params_69: KeySchemaElementDict = {"attribute_name": _, "key_type": _} +_params_70: ListBackupsInputDict = {} +_params_71: ListBulkOperationsInputDict = {} +_params_72: ListContributorInsightsInputDict = {} +_params_73: ListExportsInputDict = {} +_params_74: ListGlobalTablesInputDict = {} +_params_75: ListImportsInputDict = {} +_params_76: ListTablesInputDict = {} +_params_77: ListTagsOfResourceInputDict = {"resource_arn": _} +_params_78: LocalSecondaryIndexDict = { + "index_name": _, + "key_schema": _, + "projection": _, +} +_params_79: OnDemandThroughputDict = {} +_params_80: OnDemandThroughputOverrideDict = {} +_params_81: OutputS3ConfigurationDict = {"output_type": _} +_params_82: ParameterizedStatementDict = {"statement": _} +_params_83: PointInTimeRecoverySpecificationDict = {"point_in_time_recovery_enabled": _} +_params_84: ProjectionDict = {} +_params_85: ProvisionedThroughputDict = { + "read_capacity_units": _, + "write_capacity_units": _, +} +_params_86: ProvisionedThroughputOverrideDict = {} +_params_87: PutDict = {"item": _, "table_name": _} +_params_88: PutItemInputDict = {"table_name": _, "item": _} +_params_89: PutRequestDict = {"item": _} +_params_90: PutResourcePolicyInputDict = {"resource_arn": _, "policy": _} +_params_91: QueryInputDict = {"table_name": _} +_params_92: ReplicaDict = {} +_params_93: ReplicaAutoScalingUpdateDict = {"region_name": _} +_params_94: ReplicaGlobalSecondaryIndexDict = {"index_name": _} +_params_95: ReplicaGlobalSecondaryIndexAutoScalingUpdateDict = {} +_params_96: ReplicaGlobalSecondaryIndexSettingsUpdateDict = {"index_name": _} +_params_97: ReplicaSettingsUpdateDict = {"region_name": _} +_params_98: ReplicationGroupUpdateDict = {} +_params_99: ReplicaUpdateDict = {} +_params_100: RestoreTableFromBackupInputDict = {"target_table_name": _, "backup_arn": _} +_params_101: RestoreTableToPointInTimeInputDict = {"target_table_name": _} +_params_102: S3BucketSourceDict = {"s3_bucket": _} +_params_103: ScanInputDict = {"table_name": _} +_params_104: SearchSchemaElementDict = { + "attribute_name": _, + "search_schema_element_type": _, +} +_params_105: SearchVectorsInputDict = { + "table_name": _, + "index_name": _, + "search_vector": _, + "top_k": _, +} +_params_106: SSESpecificationDict = {} +_params_107: StartBulkPutItemsInputDict = { + "input_s3_configuration": _, + "output_s3_configuration": _, + "table_name": _, +} +_params_108: StreamSpecificationDict = {"stream_enabled": _} +_params_109: TableCreationParametersDict = { + "table_name": _, + "attribute_definitions": _, + "key_schema": _, +} +_params_110: TagDict = {"key": _, "value": _} +_params_111: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_112: TimeToLiveSpecificationDict = {"enabled": _, "attribute_name": _} +_params_113: TransactGetItemDict = {"get": _} +_params_114: TransactGetItemsInputDict = {"transact_items": _} +_params_115: TransactWriteItemDict = {} +_params_116: TransactWriteItemsInputDict = {"transact_items": _} +_params_117: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_118: UpdateDict = {"key": _, "update_expression": _, "table_name": _} +_params_119: UpdateContinuousBackupsInputDict = { + "table_name": _, + "point_in_time_recovery_specification": _, +} +_params_120: UpdateContributorInsightsInputDict = { + "table_name": _, + "contributor_insights_action": _, +} +_params_121: UpdateGlobalSecondaryIndexActionDict = {"index_name": _} +_params_122: UpdateGlobalTableInputDict = {"global_table_name": _, "replica_updates": _} +_params_123: UpdateGlobalTableSettingsInputDict = {"global_table_name": _} +_params_124: UpdateItemInputDict = {"table_name": _, "key": _} +_params_125: UpdateKinesisStreamingConfigurationDict = {} +_params_126: UpdateKinesisStreamingDestinationInputDict = { + "table_name": _, + "stream_arn": _, +} +_params_127: UpdateReplicationGroupMemberActionDict = {"region_name": _} +_params_128: UpdateTableInputDict = {"table_name": _} +_params_129: UpdateTableReplicaAutoScalingInputDict = {"table_name": _} +_params_130: UpdateTimeToLiveInputDict = { + "table_name": _, + "time_to_live_specification": _, +} +_params_131: VectorAttributeDefinitionDict = {"attribute_name": _} +_params_132: VectorIndexDict = { + "index_name": _, + "vector_attribute": _, + "projection": _, + "dimensions": _, + "distance_function": _, +} +_params_133: VectorIndexUpdateDict = {} +_params_134: WarmThroughputDict = {} +_params_135: WriteRequestDict = {} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncDynamoDBClient) -> None: + pass + await client.batch_execute_statement(statements=_) + await client.batch_execute_statement(**_request(BatchExecuteStatementInputDict)) + await client.batch_execute_statement(_request(BatchExecuteStatementInput)) + await client.batch_execute_statement(_request(BatchExecuteStatementInputDict)) + await client.batch_get_item(request_items=_) + await client.batch_get_item(**_request(BatchGetItemInputDict)) + await client.batch_get_item(_request(BatchGetItemInput)) + await client.batch_get_item(_request(BatchGetItemInputDict)) + await client.batch_write_item(request_items=_) + await client.batch_write_item(**_request(BatchWriteItemInputDict)) + await client.batch_write_item(_request(BatchWriteItemInput)) + await client.batch_write_item(_request(BatchWriteItemInputDict)) + await client.cancel_bulk_operation(bulk_operation_arn=_) + await client.cancel_bulk_operation(**_request(CancelBulkOperationInputDict)) + await client.cancel_bulk_operation(_request(CancelBulkOperationInput)) + await client.cancel_bulk_operation(_request(CancelBulkOperationInputDict)) + await client.create_backup(table_name=_, backup_name=_) + await client.create_backup(**_request(CreateBackupInputDict)) + await client.create_backup(_request(CreateBackupInput)) + await client.create_backup(_request(CreateBackupInputDict)) + await client.create_global_table(global_table_name=_, replication_group=_) + await client.create_global_table(**_request(CreateGlobalTableInputDict)) + await client.create_global_table(_request(CreateGlobalTableInput)) + await client.create_global_table(_request(CreateGlobalTableInputDict)) + await client.create_table(table_name=_) + await client.create_table(**_request(CreateTableInputDict)) + await client.create_table(_request(CreateTableInput)) + await client.create_table(_request(CreateTableInputDict)) + await client.delete_backup(backup_arn=_) + await client.delete_backup(**_request(DeleteBackupInputDict)) + await client.delete_backup(_request(DeleteBackupInput)) + await client.delete_backup(_request(DeleteBackupInputDict)) + await client.delete_item(table_name=_, key=_) + await client.delete_item(**_request(DeleteItemInputDict)) + await client.delete_item(_request(DeleteItemInput)) + await client.delete_item(_request(DeleteItemInputDict)) + await client.delete_resource_policy(resource_arn=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.delete_table(table_name=_) + await client.delete_table(**_request(DeleteTableInputDict)) + await client.delete_table(_request(DeleteTableInput)) + await client.delete_table(_request(DeleteTableInputDict)) + await client.describe_backup(backup_arn=_) + await client.describe_backup(**_request(DescribeBackupInputDict)) + await client.describe_backup(_request(DescribeBackupInput)) + await client.describe_backup(_request(DescribeBackupInputDict)) + await client.describe_bulk_operation(bulk_operation_arn=_) + await client.describe_bulk_operation(**_request(DescribeBulkOperationInputDict)) + await client.describe_bulk_operation(_request(DescribeBulkOperationInput)) + await client.describe_bulk_operation(_request(DescribeBulkOperationInputDict)) + await client.describe_continuous_backups(table_name=_) + await client.describe_continuous_backups( + **_request(DescribeContinuousBackupsInputDict) + ) + await client.describe_continuous_backups(_request(DescribeContinuousBackupsInput)) + await client.describe_continuous_backups( + _request(DescribeContinuousBackupsInputDict) + ) + await client.describe_contributor_insights(table_name=_) + await client.describe_contributor_insights( + **_request(DescribeContributorInsightsInputDict) + ) + await client.describe_contributor_insights( + _request(DescribeContributorInsightsInput) + ) + await client.describe_contributor_insights( + _request(DescribeContributorInsightsInputDict) + ) + await client.describe_endpoints() + await client.describe_endpoints(**_request(DescribeEndpointsInputDict)) + await client.describe_endpoints(_request(DescribeEndpointsInput)) + await client.describe_endpoints(_request(DescribeEndpointsInputDict)) + await client.describe_export(export_arn=_) + await client.describe_export(**_request(DescribeExportInputDict)) + await client.describe_export(_request(DescribeExportInput)) + await client.describe_export(_request(DescribeExportInputDict)) + await client.describe_global_table(global_table_name=_) + await client.describe_global_table(**_request(DescribeGlobalTableInputDict)) + await client.describe_global_table(_request(DescribeGlobalTableInput)) + await client.describe_global_table(_request(DescribeGlobalTableInputDict)) + await client.describe_global_table_settings(global_table_name=_) + await client.describe_global_table_settings( + **_request(DescribeGlobalTableSettingsInputDict) + ) + await client.describe_global_table_settings( + _request(DescribeGlobalTableSettingsInput) + ) + await client.describe_global_table_settings( + _request(DescribeGlobalTableSettingsInputDict) + ) + await client.describe_import(import_arn=_) + await client.describe_import(**_request(DescribeImportInputDict)) + await client.describe_import(_request(DescribeImportInput)) + await client.describe_import(_request(DescribeImportInputDict)) + await client.describe_kinesis_streaming_destination(table_name=_) + await client.describe_kinesis_streaming_destination( + **_request(DescribeKinesisStreamingDestinationInputDict) + ) + await client.describe_kinesis_streaming_destination( + _request(DescribeKinesisStreamingDestinationInput) + ) + await client.describe_kinesis_streaming_destination( + _request(DescribeKinesisStreamingDestinationInputDict) + ) + await client.describe_limits() + await client.describe_limits(**_request(DescribeLimitsInputDict)) + await client.describe_limits(_request(DescribeLimitsInput)) + await client.describe_limits(_request(DescribeLimitsInputDict)) + await client.describe_table(table_name=_) + await client.describe_table(**_request(DescribeTableInputDict)) + await client.describe_table(_request(DescribeTableInput)) + await client.describe_table(_request(DescribeTableInputDict)) + await client.describe_table_replica_auto_scaling(table_name=_) + await client.describe_table_replica_auto_scaling( + **_request(DescribeTableReplicaAutoScalingInputDict) + ) + await client.describe_table_replica_auto_scaling( + _request(DescribeTableReplicaAutoScalingInput) + ) + await client.describe_table_replica_auto_scaling( + _request(DescribeTableReplicaAutoScalingInputDict) + ) + await client.describe_time_to_live(table_name=_) + await client.describe_time_to_live(**_request(DescribeTimeToLiveInputDict)) + await client.describe_time_to_live(_request(DescribeTimeToLiveInput)) + await client.describe_time_to_live(_request(DescribeTimeToLiveInputDict)) + await client.disable_kinesis_streaming_destination(table_name=_, stream_arn=_) + await client.disable_kinesis_streaming_destination( + **_request(DisableKinesisStreamingDestinationInputDict) + ) + await client.disable_kinesis_streaming_destination( + _request(DisableKinesisStreamingDestinationInput) + ) + await client.disable_kinesis_streaming_destination( + _request(DisableKinesisStreamingDestinationInputDict) + ) + await client.enable_kinesis_streaming_destination(table_name=_, stream_arn=_) + await client.enable_kinesis_streaming_destination( + **_request(EnableKinesisStreamingDestinationInputDict) + ) + await client.enable_kinesis_streaming_destination( + _request(EnableKinesisStreamingDestinationInput) + ) + await client.enable_kinesis_streaming_destination( + _request(EnableKinesisStreamingDestinationInputDict) + ) + await client.execute_statement(statement=_) + await client.execute_statement(**_request(ExecuteStatementInputDict)) + await client.execute_statement(_request(ExecuteStatementInput)) + await client.execute_statement(_request(ExecuteStatementInputDict)) + await client.execute_transaction(transact_statements=_) + await client.execute_transaction(**_request(ExecuteTransactionInputDict)) + await client.execute_transaction(_request(ExecuteTransactionInput)) + await client.execute_transaction(_request(ExecuteTransactionInputDict)) + await client.export_table_to_point_in_time(table_arn=_, s3_bucket=_) + await client.export_table_to_point_in_time( + **_request(ExportTableToPointInTimeInputDict) + ) + await client.export_table_to_point_in_time(_request(ExportTableToPointInTimeInput)) + await client.export_table_to_point_in_time( + _request(ExportTableToPointInTimeInputDict) + ) + await client.get_item(table_name=_, key=_) + await client.get_item(**_request(GetItemInputDict)) + await client.get_item(_request(GetItemInput)) + await client.get_item(_request(GetItemInputDict)) + await client.get_resource_policy(resource_arn=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.import_table( + s3_bucket_source=_, input_format=_, table_creation_parameters=_ + ) + await client.import_table(**_request(ImportTableInputDict)) + await client.import_table(_request(ImportTableInput)) + await client.import_table(_request(ImportTableInputDict)) + await client.list_backups() + await client.list_backups(**_request(ListBackupsInputDict)) + await client.list_backups(_request(ListBackupsInput)) + await client.list_backups(_request(ListBackupsInputDict)) + await client.list_bulk_operations() + await client.list_bulk_operations(**_request(ListBulkOperationsInputDict)) + await client.list_bulk_operations(_request(ListBulkOperationsInput)) + await client.list_bulk_operations(_request(ListBulkOperationsInputDict)) + await client.list_contributor_insights() + await client.list_contributor_insights(**_request(ListContributorInsightsInputDict)) + await client.list_contributor_insights(_request(ListContributorInsightsInput)) + await client.list_contributor_insights(_request(ListContributorInsightsInputDict)) + await client.list_exports() + await client.list_exports(**_request(ListExportsInputDict)) + await client.list_exports(_request(ListExportsInput)) + await client.list_exports(_request(ListExportsInputDict)) + await client.list_global_tables() + await client.list_global_tables(**_request(ListGlobalTablesInputDict)) + await client.list_global_tables(_request(ListGlobalTablesInput)) + await client.list_global_tables(_request(ListGlobalTablesInputDict)) + await client.list_imports() + await client.list_imports(**_request(ListImportsInputDict)) + await client.list_imports(_request(ListImportsInput)) + await client.list_imports(_request(ListImportsInputDict)) + await client.list_tables() + await client.list_tables(**_request(ListTablesInputDict)) + await client.list_tables(_request(ListTablesInput)) + await client.list_tables(_request(ListTablesInputDict)) + await client.list_tags_of_resource(resource_arn=_) + await client.list_tags_of_resource(**_request(ListTagsOfResourceInputDict)) + await client.list_tags_of_resource(_request(ListTagsOfResourceInput)) + await client.list_tags_of_resource(_request(ListTagsOfResourceInputDict)) + await client.put_item(table_name=_, item=_) + await client.put_item(**_request(PutItemInputDict)) + await client.put_item(_request(PutItemInput)) + await client.put_item(_request(PutItemInputDict)) + await client.put_resource_policy(resource_arn=_, policy=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.query(table_name=_) + await client.query(**_request(QueryInputDict)) + await client.query(_request(QueryInput)) + await client.query(_request(QueryInputDict)) + await client.restore_table_from_backup(target_table_name=_, backup_arn=_) + await client.restore_table_from_backup(**_request(RestoreTableFromBackupInputDict)) + await client.restore_table_from_backup(_request(RestoreTableFromBackupInput)) + await client.restore_table_from_backup(_request(RestoreTableFromBackupInputDict)) + await client.restore_table_to_point_in_time(target_table_name=_) + await client.restore_table_to_point_in_time( + **_request(RestoreTableToPointInTimeInputDict) + ) + await client.restore_table_to_point_in_time( + _request(RestoreTableToPointInTimeInput) + ) + await client.restore_table_to_point_in_time( + _request(RestoreTableToPointInTimeInputDict) + ) + await client.scan(table_name=_) + await client.scan(**_request(ScanInputDict)) + await client.scan(_request(ScanInput)) + await client.scan(_request(ScanInputDict)) + await client.search_vectors(table_name=_, index_name=_, search_vector=_, top_k=_) + await client.search_vectors(**_request(SearchVectorsInputDict)) + await client.search_vectors(_request(SearchVectorsInput)) + await client.search_vectors(_request(SearchVectorsInputDict)) + await client.start_bulk_put_items( + input_s3_configuration=_, output_s3_configuration=_, table_name=_ + ) + await client.start_bulk_put_items(**_request(StartBulkPutItemsInputDict)) + await client.start_bulk_put_items(_request(StartBulkPutItemsInput)) + await client.start_bulk_put_items(_request(StartBulkPutItemsInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.transact_get_items(transact_items=_) + await client.transact_get_items(**_request(TransactGetItemsInputDict)) + await client.transact_get_items(_request(TransactGetItemsInput)) + await client.transact_get_items(_request(TransactGetItemsInputDict)) + await client.transact_write_items(transact_items=_) + await client.transact_write_items(**_request(TransactWriteItemsInputDict)) + await client.transact_write_items(_request(TransactWriteItemsInput)) + await client.transact_write_items(_request(TransactWriteItemsInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_continuous_backups( + table_name=_, point_in_time_recovery_specification=_ + ) + await client.update_continuous_backups(**_request(UpdateContinuousBackupsInputDict)) + await client.update_continuous_backups(_request(UpdateContinuousBackupsInput)) + await client.update_continuous_backups(_request(UpdateContinuousBackupsInputDict)) + await client.update_contributor_insights( + table_name=_, contributor_insights_action=_ + ) + await client.update_contributor_insights( + **_request(UpdateContributorInsightsInputDict) + ) + await client.update_contributor_insights(_request(UpdateContributorInsightsInput)) + await client.update_contributor_insights( + _request(UpdateContributorInsightsInputDict) + ) + await client.update_global_table(global_table_name=_, replica_updates=_) + await client.update_global_table(**_request(UpdateGlobalTableInputDict)) + await client.update_global_table(_request(UpdateGlobalTableInput)) + await client.update_global_table(_request(UpdateGlobalTableInputDict)) + await client.update_global_table_settings(global_table_name=_) + await client.update_global_table_settings( + **_request(UpdateGlobalTableSettingsInputDict) + ) + await client.update_global_table_settings(_request(UpdateGlobalTableSettingsInput)) + await client.update_global_table_settings( + _request(UpdateGlobalTableSettingsInputDict) + ) + await client.update_item(table_name=_, key=_) + await client.update_item(**_request(UpdateItemInputDict)) + await client.update_item(_request(UpdateItemInput)) + await client.update_item(_request(UpdateItemInputDict)) + await client.update_kinesis_streaming_destination(table_name=_, stream_arn=_) + await client.update_kinesis_streaming_destination( + **_request(UpdateKinesisStreamingDestinationInputDict) + ) + await client.update_kinesis_streaming_destination( + _request(UpdateKinesisStreamingDestinationInput) + ) + await client.update_kinesis_streaming_destination( + _request(UpdateKinesisStreamingDestinationInputDict) + ) + await client.update_table(table_name=_) + await client.update_table(**_request(UpdateTableInputDict)) + await client.update_table(_request(UpdateTableInput)) + await client.update_table(_request(UpdateTableInputDict)) + await client.update_table_replica_auto_scaling(table_name=_) + await client.update_table_replica_auto_scaling( + **_request(UpdateTableReplicaAutoScalingInputDict) + ) + await client.update_table_replica_auto_scaling( + _request(UpdateTableReplicaAutoScalingInput) + ) + await client.update_table_replica_auto_scaling( + _request(UpdateTableReplicaAutoScalingInputDict) + ) + await client.update_time_to_live(table_name=_, time_to_live_specification=_) + await client.update_time_to_live(**_request(UpdateTimeToLiveInputDict)) + await client.update_time_to_live(_request(UpdateTimeToLiveInput)) + await client.update_time_to_live(_request(UpdateTimeToLiveInputDict)) + + +def check_sync_calls(client: DynamoDBClient) -> None: + pass + client.batch_execute_statement(statements=_) + client.batch_execute_statement(**_request(BatchExecuteStatementInputDict)) + client.batch_execute_statement(_request(BatchExecuteStatementInput)) + client.batch_execute_statement(_request(BatchExecuteStatementInputDict)) + client.batch_get_item(request_items=_) + client.batch_get_item(**_request(BatchGetItemInputDict)) + client.batch_get_item(_request(BatchGetItemInput)) + client.batch_get_item(_request(BatchGetItemInputDict)) + client.batch_write_item(request_items=_) + client.batch_write_item(**_request(BatchWriteItemInputDict)) + client.batch_write_item(_request(BatchWriteItemInput)) + client.batch_write_item(_request(BatchWriteItemInputDict)) + client.cancel_bulk_operation(bulk_operation_arn=_) + client.cancel_bulk_operation(**_request(CancelBulkOperationInputDict)) + client.cancel_bulk_operation(_request(CancelBulkOperationInput)) + client.cancel_bulk_operation(_request(CancelBulkOperationInputDict)) + client.create_backup(table_name=_, backup_name=_) + client.create_backup(**_request(CreateBackupInputDict)) + client.create_backup(_request(CreateBackupInput)) + client.create_backup(_request(CreateBackupInputDict)) + client.create_global_table(global_table_name=_, replication_group=_) + client.create_global_table(**_request(CreateGlobalTableInputDict)) + client.create_global_table(_request(CreateGlobalTableInput)) + client.create_global_table(_request(CreateGlobalTableInputDict)) + client.create_table(table_name=_) + client.create_table(**_request(CreateTableInputDict)) + client.create_table(_request(CreateTableInput)) + client.create_table(_request(CreateTableInputDict)) + client.delete_backup(backup_arn=_) + client.delete_backup(**_request(DeleteBackupInputDict)) + client.delete_backup(_request(DeleteBackupInput)) + client.delete_backup(_request(DeleteBackupInputDict)) + client.delete_item(table_name=_, key=_) + client.delete_item(**_request(DeleteItemInputDict)) + client.delete_item(_request(DeleteItemInput)) + client.delete_item(_request(DeleteItemInputDict)) + client.delete_resource_policy(resource_arn=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.delete_table(table_name=_) + client.delete_table(**_request(DeleteTableInputDict)) + client.delete_table(_request(DeleteTableInput)) + client.delete_table(_request(DeleteTableInputDict)) + client.describe_backup(backup_arn=_) + client.describe_backup(**_request(DescribeBackupInputDict)) + client.describe_backup(_request(DescribeBackupInput)) + client.describe_backup(_request(DescribeBackupInputDict)) + client.describe_bulk_operation(bulk_operation_arn=_) + client.describe_bulk_operation(**_request(DescribeBulkOperationInputDict)) + client.describe_bulk_operation(_request(DescribeBulkOperationInput)) + client.describe_bulk_operation(_request(DescribeBulkOperationInputDict)) + client.describe_continuous_backups(table_name=_) + client.describe_continuous_backups(**_request(DescribeContinuousBackupsInputDict)) + client.describe_continuous_backups(_request(DescribeContinuousBackupsInput)) + client.describe_continuous_backups(_request(DescribeContinuousBackupsInputDict)) + client.describe_contributor_insights(table_name=_) + client.describe_contributor_insights( + **_request(DescribeContributorInsightsInputDict) + ) + client.describe_contributor_insights(_request(DescribeContributorInsightsInput)) + client.describe_contributor_insights(_request(DescribeContributorInsightsInputDict)) + client.describe_endpoints() + client.describe_endpoints(**_request(DescribeEndpointsInputDict)) + client.describe_endpoints(_request(DescribeEndpointsInput)) + client.describe_endpoints(_request(DescribeEndpointsInputDict)) + client.describe_export(export_arn=_) + client.describe_export(**_request(DescribeExportInputDict)) + client.describe_export(_request(DescribeExportInput)) + client.describe_export(_request(DescribeExportInputDict)) + client.describe_global_table(global_table_name=_) + client.describe_global_table(**_request(DescribeGlobalTableInputDict)) + client.describe_global_table(_request(DescribeGlobalTableInput)) + client.describe_global_table(_request(DescribeGlobalTableInputDict)) + client.describe_global_table_settings(global_table_name=_) + client.describe_global_table_settings( + **_request(DescribeGlobalTableSettingsInputDict) + ) + client.describe_global_table_settings(_request(DescribeGlobalTableSettingsInput)) + client.describe_global_table_settings( + _request(DescribeGlobalTableSettingsInputDict) + ) + client.describe_import(import_arn=_) + client.describe_import(**_request(DescribeImportInputDict)) + client.describe_import(_request(DescribeImportInput)) + client.describe_import(_request(DescribeImportInputDict)) + client.describe_kinesis_streaming_destination(table_name=_) + client.describe_kinesis_streaming_destination( + **_request(DescribeKinesisStreamingDestinationInputDict) + ) + client.describe_kinesis_streaming_destination( + _request(DescribeKinesisStreamingDestinationInput) + ) + client.describe_kinesis_streaming_destination( + _request(DescribeKinesisStreamingDestinationInputDict) + ) + client.describe_limits() + client.describe_limits(**_request(DescribeLimitsInputDict)) + client.describe_limits(_request(DescribeLimitsInput)) + client.describe_limits(_request(DescribeLimitsInputDict)) + client.describe_table(table_name=_) + client.describe_table(**_request(DescribeTableInputDict)) + client.describe_table(_request(DescribeTableInput)) + client.describe_table(_request(DescribeTableInputDict)) + client.describe_table_replica_auto_scaling(table_name=_) + client.describe_table_replica_auto_scaling( + **_request(DescribeTableReplicaAutoScalingInputDict) + ) + client.describe_table_replica_auto_scaling( + _request(DescribeTableReplicaAutoScalingInput) + ) + client.describe_table_replica_auto_scaling( + _request(DescribeTableReplicaAutoScalingInputDict) + ) + client.describe_time_to_live(table_name=_) + client.describe_time_to_live(**_request(DescribeTimeToLiveInputDict)) + client.describe_time_to_live(_request(DescribeTimeToLiveInput)) + client.describe_time_to_live(_request(DescribeTimeToLiveInputDict)) + client.disable_kinesis_streaming_destination(table_name=_, stream_arn=_) + client.disable_kinesis_streaming_destination( + **_request(DisableKinesisStreamingDestinationInputDict) + ) + client.disable_kinesis_streaming_destination( + _request(DisableKinesisStreamingDestinationInput) + ) + client.disable_kinesis_streaming_destination( + _request(DisableKinesisStreamingDestinationInputDict) + ) + client.enable_kinesis_streaming_destination(table_name=_, stream_arn=_) + client.enable_kinesis_streaming_destination( + **_request(EnableKinesisStreamingDestinationInputDict) + ) + client.enable_kinesis_streaming_destination( + _request(EnableKinesisStreamingDestinationInput) + ) + client.enable_kinesis_streaming_destination( + _request(EnableKinesisStreamingDestinationInputDict) + ) + client.execute_statement(statement=_) + client.execute_statement(**_request(ExecuteStatementInputDict)) + client.execute_statement(_request(ExecuteStatementInput)) + client.execute_statement(_request(ExecuteStatementInputDict)) + client.execute_transaction(transact_statements=_) + client.execute_transaction(**_request(ExecuteTransactionInputDict)) + client.execute_transaction(_request(ExecuteTransactionInput)) + client.execute_transaction(_request(ExecuteTransactionInputDict)) + client.export_table_to_point_in_time(table_arn=_, s3_bucket=_) + client.export_table_to_point_in_time(**_request(ExportTableToPointInTimeInputDict)) + client.export_table_to_point_in_time(_request(ExportTableToPointInTimeInput)) + client.export_table_to_point_in_time(_request(ExportTableToPointInTimeInputDict)) + client.get_item(table_name=_, key=_) + client.get_item(**_request(GetItemInputDict)) + client.get_item(_request(GetItemInput)) + client.get_item(_request(GetItemInputDict)) + client.get_resource_policy(resource_arn=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.import_table(s3_bucket_source=_, input_format=_, table_creation_parameters=_) + client.import_table(**_request(ImportTableInputDict)) + client.import_table(_request(ImportTableInput)) + client.import_table(_request(ImportTableInputDict)) + client.list_backups() + client.list_backups(**_request(ListBackupsInputDict)) + client.list_backups(_request(ListBackupsInput)) + client.list_backups(_request(ListBackupsInputDict)) + client.list_bulk_operations() + client.list_bulk_operations(**_request(ListBulkOperationsInputDict)) + client.list_bulk_operations(_request(ListBulkOperationsInput)) + client.list_bulk_operations(_request(ListBulkOperationsInputDict)) + client.list_contributor_insights() + client.list_contributor_insights(**_request(ListContributorInsightsInputDict)) + client.list_contributor_insights(_request(ListContributorInsightsInput)) + client.list_contributor_insights(_request(ListContributorInsightsInputDict)) + client.list_exports() + client.list_exports(**_request(ListExportsInputDict)) + client.list_exports(_request(ListExportsInput)) + client.list_exports(_request(ListExportsInputDict)) + client.list_global_tables() + client.list_global_tables(**_request(ListGlobalTablesInputDict)) + client.list_global_tables(_request(ListGlobalTablesInput)) + client.list_global_tables(_request(ListGlobalTablesInputDict)) + client.list_imports() + client.list_imports(**_request(ListImportsInputDict)) + client.list_imports(_request(ListImportsInput)) + client.list_imports(_request(ListImportsInputDict)) + client.list_tables() + client.list_tables(**_request(ListTablesInputDict)) + client.list_tables(_request(ListTablesInput)) + client.list_tables(_request(ListTablesInputDict)) + client.list_tags_of_resource(resource_arn=_) + client.list_tags_of_resource(**_request(ListTagsOfResourceInputDict)) + client.list_tags_of_resource(_request(ListTagsOfResourceInput)) + client.list_tags_of_resource(_request(ListTagsOfResourceInputDict)) + client.put_item(table_name=_, item=_) + client.put_item(**_request(PutItemInputDict)) + client.put_item(_request(PutItemInput)) + client.put_item(_request(PutItemInputDict)) + client.put_resource_policy(resource_arn=_, policy=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.query(table_name=_) + client.query(**_request(QueryInputDict)) + client.query(_request(QueryInput)) + client.query(_request(QueryInputDict)) + client.restore_table_from_backup(target_table_name=_, backup_arn=_) + client.restore_table_from_backup(**_request(RestoreTableFromBackupInputDict)) + client.restore_table_from_backup(_request(RestoreTableFromBackupInput)) + client.restore_table_from_backup(_request(RestoreTableFromBackupInputDict)) + client.restore_table_to_point_in_time(target_table_name=_) + client.restore_table_to_point_in_time( + **_request(RestoreTableToPointInTimeInputDict) + ) + client.restore_table_to_point_in_time(_request(RestoreTableToPointInTimeInput)) + client.restore_table_to_point_in_time(_request(RestoreTableToPointInTimeInputDict)) + client.scan(table_name=_) + client.scan(**_request(ScanInputDict)) + client.scan(_request(ScanInput)) + client.scan(_request(ScanInputDict)) + client.search_vectors(table_name=_, index_name=_, search_vector=_, top_k=_) + client.search_vectors(**_request(SearchVectorsInputDict)) + client.search_vectors(_request(SearchVectorsInput)) + client.search_vectors(_request(SearchVectorsInputDict)) + client.start_bulk_put_items( + input_s3_configuration=_, output_s3_configuration=_, table_name=_ + ) + client.start_bulk_put_items(**_request(StartBulkPutItemsInputDict)) + client.start_bulk_put_items(_request(StartBulkPutItemsInput)) + client.start_bulk_put_items(_request(StartBulkPutItemsInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.transact_get_items(transact_items=_) + client.transact_get_items(**_request(TransactGetItemsInputDict)) + client.transact_get_items(_request(TransactGetItemsInput)) + client.transact_get_items(_request(TransactGetItemsInputDict)) + client.transact_write_items(transact_items=_) + client.transact_write_items(**_request(TransactWriteItemsInputDict)) + client.transact_write_items(_request(TransactWriteItemsInput)) + client.transact_write_items(_request(TransactWriteItemsInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_continuous_backups( + table_name=_, point_in_time_recovery_specification=_ + ) + client.update_continuous_backups(**_request(UpdateContinuousBackupsInputDict)) + client.update_continuous_backups(_request(UpdateContinuousBackupsInput)) + client.update_continuous_backups(_request(UpdateContinuousBackupsInputDict)) + client.update_contributor_insights(table_name=_, contributor_insights_action=_) + client.update_contributor_insights(**_request(UpdateContributorInsightsInputDict)) + client.update_contributor_insights(_request(UpdateContributorInsightsInput)) + client.update_contributor_insights(_request(UpdateContributorInsightsInputDict)) + client.update_global_table(global_table_name=_, replica_updates=_) + client.update_global_table(**_request(UpdateGlobalTableInputDict)) + client.update_global_table(_request(UpdateGlobalTableInput)) + client.update_global_table(_request(UpdateGlobalTableInputDict)) + client.update_global_table_settings(global_table_name=_) + client.update_global_table_settings(**_request(UpdateGlobalTableSettingsInputDict)) + client.update_global_table_settings(_request(UpdateGlobalTableSettingsInput)) + client.update_global_table_settings(_request(UpdateGlobalTableSettingsInputDict)) + client.update_item(table_name=_, key=_) + client.update_item(**_request(UpdateItemInputDict)) + client.update_item(_request(UpdateItemInput)) + client.update_item(_request(UpdateItemInputDict)) + client.update_kinesis_streaming_destination(table_name=_, stream_arn=_) + client.update_kinesis_streaming_destination( + **_request(UpdateKinesisStreamingDestinationInputDict) + ) + client.update_kinesis_streaming_destination( + _request(UpdateKinesisStreamingDestinationInput) + ) + client.update_kinesis_streaming_destination( + _request(UpdateKinesisStreamingDestinationInputDict) + ) + client.update_table(table_name=_) + client.update_table(**_request(UpdateTableInputDict)) + client.update_table(_request(UpdateTableInput)) + client.update_table(_request(UpdateTableInputDict)) + client.update_table_replica_auto_scaling(table_name=_) + client.update_table_replica_auto_scaling( + **_request(UpdateTableReplicaAutoScalingInputDict) + ) + client.update_table_replica_auto_scaling( + _request(UpdateTableReplicaAutoScalingInput) + ) + client.update_table_replica_auto_scaling( + _request(UpdateTableReplicaAutoScalingInputDict) + ) + client.update_time_to_live(table_name=_, time_to_live_specification=_) + client.update_time_to_live(**_request(UpdateTimeToLiveInputDict)) + client.update_time_to_live(_request(UpdateTimeToLiveInput)) + client.update_time_to_live(_request(UpdateTimeToLiveInputDict)) diff --git a/clients/aws-sdk-dynamodb/tests/test_endpoints.py b/clients/aws-sdk-dynamodb/tests/test_endpoints.py index 69d5ca3dc..7f2219f97 100644 --- a/clients/aws-sdk-dynamodb/tests/test_endpoints.py +++ b/clients/aws-sdk-dynamodb/tests/test_endpoints.py @@ -1,7 +1,7 @@ # Code generated by smithy-python-codegen DO NOT EDIT. from collections.abc import Awaitable, Callable, Mapping -from typing import Any +from typing import Any, Concatenate from pytest import mark, param from smithy_aws_core.aio.identity.static import AsyncStaticCredentialsResolver @@ -16,15 +16,7 @@ from aws_sdk_dynamodb.aio.client import AsyncDynamoDBClient from aws_sdk_dynamodb.aio.config import AsyncDynamoDBConfig -from aws_sdk_dynamodb.models import ( - AttributeValueN, - AttributeValueS, - BatchGetItemInput, - DescribeTableInput, - KeysAndAttributes, - ListTablesInput, - SearchVectorsInput, -) +from aws_sdk_dynamodb.models import AttributeValueN, AttributeValueS, KeysAndAttributes # Endpoint tests from the endpointTests trait of com.amazonaws.dynamodb#DynamoDB_20120810. @@ -5652,7 +5644,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://example.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, Endpoint=https://example.com}", ), @@ -5672,7 +5664,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, @@ -5694,7 +5686,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=false, Endpoint=https://example.com}", ), @@ -5714,7 +5706,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=true, Endpoint=https://example.com}", ), @@ -5734,7 +5726,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://example.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, Endpoint=https://example.com}", ), @@ -5754,7 +5746,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, @@ -5776,7 +5768,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=false, Endpoint=https://example.com}", ), @@ -5796,7 +5788,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=true, Endpoint=https://example.com}", ), @@ -5816,7 +5808,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://example.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=required, UseFIPS=false, UseDualStack=false, Endpoint=https://example.com}", ), @@ -5836,7 +5828,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, @@ -5858,7 +5850,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=required, UseFIPS=true, UseDualStack=false, Endpoint=https://example.com}", ), @@ -5878,7 +5870,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=required, UseFIPS=true, UseDualStack=true, Endpoint=https://example.com}", ), @@ -5897,7 +5889,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "http://localhost:8000", @@ -5929,7 +5921,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "http://localhost:8000", @@ -5961,7 +5953,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "http://localhost:8000", @@ -5993,7 +5985,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "https://111111111111.ddb.us-east-1.amazonaws.com", @@ -6017,7 +6009,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"error": "Credentials-sourced account ID parameter is invalid"}, id="{AccountId=, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false}", ), @@ -6029,9 +6021,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, { "endpoint": { "url": "https://222222222222.ddb.us-east-1.amazonaws.com", @@ -6048,9 +6038,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:af-south-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:af-south-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:af-south-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false}", ), @@ -6062,9 +6050,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:s3:us-east-1:222222222222:stream/testStream" - ), + {"table_name": "arn:aws:s3:us-east-1:222222222222:stream/testStream"}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:s3:us-east-1:222222222222:stream/testStream, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false}", ), @@ -6076,13 +6062,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.us-east-1.amazonaws.com", @@ -6106,13 +6092,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.us-east-1.amazonaws.com", @@ -6129,9 +6115,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:s3:af-south-1:222222222222:stream/testStream" - ), + {"table_name": "arn:aws:s3:af-south-1:222222222222:stream/testStream"}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:s3:af-south-1:222222222222:stream/testStream, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false}", ), @@ -6150,7 +6134,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "https://111111111111.ddb.us-east-1.api.aws", @@ -6167,9 +6151,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, { "endpoint": { "url": "https://222222222222.ddb.us-east-1.api.aws", @@ -6186,13 +6168,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.us-east-1.api.aws", @@ -6216,7 +6198,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.amazonaws.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=false}", ), @@ -6228,9 +6210,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=false}", ), @@ -6242,13 +6222,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.amazonaws.com"}}, id="{ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=false}", ), @@ -6267,7 +6247,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.api.aws"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=true}", ), @@ -6279,9 +6259,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.api.aws"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=true}", ), @@ -6293,13 +6271,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.api.aws"}}, id="{ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=true}", ), @@ -6318,7 +6296,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -6337,7 +6315,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{AccountId=, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -6349,9 +6327,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -6363,9 +6339,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:af-south-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:af-south-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:af-south-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -6377,9 +6351,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:s3:us-east-1:222222222222:stream/testStream" - ), + {"table_name": "arn:aws:s3:us-east-1:222222222222:stream/testStream"}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:s3:us-east-1:222222222222:stream/testStream, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -6391,13 +6363,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -6416,13 +6388,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{AccountId=111111111111, ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -6434,9 +6406,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:s3:af-south-1:222222222222:stream/testStream" - ), + {"table_name": "arn:aws:s3:af-south-1:222222222222:stream/testStream"}, {"endpoint": {"url": "https://dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:s3:af-south-1:222222222222:stream/testStream, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -6455,7 +6425,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb.us-east-1.api.aws"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=true}", ), @@ -6467,9 +6437,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb.us-east-1.api.aws"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=true}", ), @@ -6481,13 +6449,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb.us-east-1.api.aws"}}, id="{ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=true}", ), @@ -6506,7 +6474,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.amazonaws.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=false}", ), @@ -6518,9 +6486,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=false}", ), @@ -6532,13 +6498,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.amazonaws.com"}}, id="{ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=false}", ), @@ -6557,7 +6523,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.api.aws"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=true}", ), @@ -6569,9 +6535,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.api.aws"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=true}", ), @@ -6583,13 +6547,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb-fips.us-east-1.api.aws"}}, id="{ResourceArnList=[arn:aws:dynamodb:us-east-1:333333333333:table/table_name], Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=true}", ), @@ -6608,7 +6572,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "https://111111111111.ddb.us-east-1.amazonaws.com", @@ -6632,7 +6596,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"error": "Credentials-sourced account ID parameter is invalid"}, id="{AccountId=, Region=us-east-1, AccountIdEndpointMode=required, UseFIPS=false, UseDualStack=false}", ), @@ -6644,9 +6608,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, { "endpoint": { "url": "https://222222222222.ddb.us-east-1.amazonaws.com", @@ -6663,9 +6625,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:af-south-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:af-south-1:222222222222:table/table_name"}, { "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded" }, @@ -6679,9 +6639,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:s3:us-east-1:222222222222:stream/testStream" - ), + {"table_name": "arn:aws:s3:us-east-1:222222222222:stream/testStream"}, { "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded" }, @@ -6695,13 +6653,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.us-east-1.amazonaws.com", @@ -6725,13 +6683,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.us-east-1.amazonaws.com", @@ -6748,9 +6706,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:s3:af-south-1:222222222222:stream/testStream" - ), + {"table_name": "arn:aws:s3:af-south-1:222222222222:stream/testStream"}, { "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded" }, @@ -6771,7 +6727,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "https://111111111111.ddb.us-east-1.api.aws", @@ -6788,9 +6744,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, { "endpoint": { "url": "https://222222222222.ddb.us-east-1.api.aws", @@ -6807,13 +6761,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.us-east-1.api.aws", @@ -6837,7 +6791,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -6851,9 +6805,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -6867,13 +6819,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -6894,7 +6846,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -6908,9 +6860,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name"}, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -6924,13 +6874,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws:dynamodb:us-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -6951,7 +6901,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "https://111111111111.ddb.cn-north-1.amazonaws.com.cn", @@ -6968,9 +6918,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name"}, { "endpoint": { "url": "https://222222222222.ddb.cn-north-1.amazonaws.com.cn", @@ -6987,13 +6935,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-cn:dynamodb:cn-north-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.cn-north-1.amazonaws.com.cn", @@ -7017,7 +6965,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb.cn-north-1.amazonaws.com.cn"}}, id="{AccountId=111111111111, Region=cn-north-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7029,9 +6977,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name"}, {"endpoint": {"url": "https://dynamodb.cn-north-1.amazonaws.com.cn"}}, id="{ResourceArn=arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name, Region=cn-north-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7043,13 +6989,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-cn:dynamodb:cn-north-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb.cn-north-1.amazonaws.com.cn"}}, id="{ResourceArnList=[arn:aws-cn:dynamodb:cn-north-1:333333333333:table/table_name], Region=cn-north-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7068,7 +7014,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "https://111111111111.ddb.cn-north-1.amazonaws.com.cn", @@ -7085,9 +7031,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name" - ), + {"table_name": "arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name"}, { "endpoint": { "url": "https://222222222222.ddb.cn-north-1.amazonaws.com.cn", @@ -7104,13 +7048,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-cn:dynamodb:cn-north-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.cn-north-1.amazonaws.com.cn", @@ -7134,7 +7078,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "https://111111111111.ddb.us-gov-east-1.amazonaws.com", @@ -7151,9 +7095,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name" - ), + { + "table_name": "arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name" + }, { "endpoint": { "url": "https://222222222222.ddb.us-gov-east-1.amazonaws.com", @@ -7170,13 +7114,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-us-gov:dynamodb:us-gov-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.us-gov-east-1.amazonaws.com", @@ -7200,7 +7144,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb.us-gov-east-1.amazonaws.com"}}, id="{AccountId=111111111111, Region=us-gov-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7212,9 +7156,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name" - ), + { + "table_name": "arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name" + }, {"endpoint": {"url": "https://dynamodb.us-gov-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name, Region=us-gov-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7226,13 +7170,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-us-gov:dynamodb:us-gov-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb.us-gov-east-1.amazonaws.com"}}, id="{ResourceArnList=[arn:aws-us-gov:dynamodb:us-gov-east-1:333333333333:table/table_name], Region=us-gov-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7251,7 +7195,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "endpoint": { "url": "https://111111111111.ddb.us-gov-east-1.amazonaws.com", @@ -7268,9 +7212,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name" - ), + { + "table_name": "arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name" + }, { "endpoint": { "url": "https://222222222222.ddb.us-gov-east-1.amazonaws.com", @@ -7287,13 +7231,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-us-gov:dynamodb:us-gov-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "endpoint": { "url": "https://333333333333.ddb.us-gov-east-1.amazonaws.com", @@ -7317,7 +7261,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{AccountId=111111111111, Region=us-iso-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false}", ), @@ -7329,9 +7273,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name" - ), + { + "table_name": "arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name" + }, {"endpoint": {"url": "https://dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{ResourceArn=arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name, Region=us-iso-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false}", ), @@ -7343,13 +7287,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-iso:dynamodb:us-iso-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{ResourceArnList=[arn:aws-iso:dynamodb:us-iso-east-1:333333333333:table/table_name], Region=us-iso-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false}", ), @@ -7368,7 +7312,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, {"endpoint": {"url": "https://dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{AccountId=111111111111, Region=us-iso-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7380,9 +7324,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name" - ), + { + "table_name": "arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name" + }, {"endpoint": {"url": "https://dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{ResourceArn=arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name, Region=us-iso-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7394,13 +7338,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-iso:dynamodb:us-iso-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, {"endpoint": {"url": "https://dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{ResourceArnList=[arn:aws-iso:dynamodb:us-iso-east-1:333333333333:table/table_name], Region=us-iso-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false}", ), @@ -7419,7 +7363,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.list_tables, - ListTablesInput(), + {}, { "error": "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region" }, @@ -7433,9 +7377,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.describe_table, - DescribeTableInput( - table_name="arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name" - ), + { + "table_name": "arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name" + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region" }, @@ -7449,13 +7393,13 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.batch_get_item, - BatchGetItemInput( - request_items={ + { + "request_items": { "arn:aws-iso:dynamodb:us-iso-east-1:333333333333:table/table_name": KeysAndAttributes( keys=[{"pk": AttributeValueS(value="value")}] ) } - ), + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region" }, @@ -7477,16 +7421,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://example.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7506,16 +7450,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, @@ -7537,16 +7481,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=false, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7566,16 +7510,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=true, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7595,16 +7539,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://example.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7624,16 +7568,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, @@ -7655,16 +7599,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=false, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7684,16 +7628,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=true, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7713,16 +7657,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://example.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=required, UseFIPS=false, UseDualStack=false, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7742,16 +7686,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, @@ -7773,16 +7717,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=required, UseFIPS=true, UseDualStack=false, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7802,16 +7746,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"error": "Invalid Configuration: FIPS and custom endpoint are not supported"}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=required, UseFIPS=true, UseDualStack=true, Endpoint=https://example.com, IsSearchOperation=true}", ), @@ -7822,16 +7766,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html" }, @@ -7844,16 +7788,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html" }, @@ -7866,16 +7810,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html" }, @@ -7888,16 +7832,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://111111111111.ddb.us-east-1.api.aws"}}, id="{Endpoint=https://111111111111.ddb.us-east-1.api.aws, Region=us-east-1, AccountIdEndpointMode=preferred, IsSearchOperation=true}", ), @@ -7908,16 +7852,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://vpce-1a2b3c4d-5e6f.dynamodb.us-east-1.vpce.api.aws" @@ -7932,16 +7876,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html" }, @@ -7954,16 +7898,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html" }, @@ -7976,16 +7920,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html" }, @@ -8006,16 +7950,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "http://localhost:8000", @@ -8047,16 +7991,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "http://localhost:8000", @@ -8088,16 +8032,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "http://localhost:8000", @@ -8122,16 +8066,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:not_an_account:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:not_an_account:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, ResourceArn=arn:aws:dynamodb:us-east-1:not_an_account:table/table_name, IsSearchOperation=true}", ), @@ -8143,16 +8087,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8171,16 +8115,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.us-east-1.amazonaws.com", @@ -8204,16 +8148,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"error": "Credentials-sourced account ID parameter is invalid"}, id="{AccountId=, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8225,16 +8169,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://222222222222.search-ddb.us-east-1.amazonaws.com", @@ -8251,16 +8195,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:af-south-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:af-south-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:af-south-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8272,16 +8216,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:s3:us-east-1:222222222222:stream/testStream", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:s3:us-east-1:222222222222:stream/testStream", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:s3:us-east-1:222222222222:stream/testStream, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8293,16 +8237,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:s3:af-south-1:222222222222:stream/testStream", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:s3:af-south-1:222222222222:stream/testStream", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:s3:af-south-1:222222222222:stream/testStream, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8321,16 +8265,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.us-east-1.api.aws", @@ -8347,16 +8291,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://222222222222.search-ddb.us-east-1.api.aws", @@ -8380,16 +8324,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb-fips.us-east-1.amazonaws.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=false, IsSearchOperation=true}", ), @@ -8401,16 +8345,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb-fips.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=false, IsSearchOperation=true}", ), @@ -8429,16 +8373,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb-fips.us-east-1.api.aws"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=true, IsSearchOperation=true}", ), @@ -8450,16 +8394,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb-fips.us-east-1.api.aws"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=preferred, UseFIPS=true, UseDualStack=true, IsSearchOperation=true}", ), @@ -8471,16 +8415,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8499,16 +8443,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8527,16 +8471,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{AccountId=, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8548,16 +8492,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8569,16 +8513,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:af-south-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:af-south-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:af-south-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8590,16 +8534,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:s3:us-east-1:222222222222:stream/testStream", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:s3:us-east-1:222222222222:stream/testStream", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:s3:us-east-1:222222222222:stream/testStream, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8611,16 +8555,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:s3:af-south-1:222222222222:stream/testStream", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:s3:af-south-1:222222222222:stream/testStream", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:s3:af-south-1:222222222222:stream/testStream, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8639,16 +8583,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.api.aws"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=true, IsSearchOperation=true}", ), @@ -8660,16 +8604,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-east-1.api.aws"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=true, IsSearchOperation=true}", ), @@ -8688,16 +8632,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb-fips.us-east-1.amazonaws.com"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=false, IsSearchOperation=true}", ), @@ -8709,16 +8653,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb-fips.us-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=false, IsSearchOperation=true}", ), @@ -8737,16 +8681,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb-fips.us-east-1.api.aws"}}, id="{AccountId=111111111111, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=true, IsSearchOperation=true}", ), @@ -8758,16 +8702,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb-fips.us-east-1.api.aws"}}, id="{ResourceArn=arn:aws:dynamodb:us-east-1:222222222222:table/table_name, Region=us-east-1, AccountIdEndpointMode=disabled, UseFIPS=true, UseDualStack=true, IsSearchOperation=true}", ), @@ -8779,16 +8723,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded" }, @@ -8809,16 +8753,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.us-east-1.amazonaws.com", @@ -8842,16 +8786,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"error": "Credentials-sourced account ID parameter is invalid"}, id="{AccountId=, Region=us-east-1, AccountIdEndpointMode=required, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -8863,16 +8807,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://222222222222.search-ddb.us-east-1.amazonaws.com", @@ -8889,16 +8833,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:af-south-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:af-south-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded" }, @@ -8912,16 +8856,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:s3:us-east-1:222222222222:stream/testStream", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:s3:us-east-1:222222222222:stream/testStream", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded" }, @@ -8935,16 +8879,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:s3:af-south-1:222222222222:stream/testStream", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:s3:af-south-1:222222222222:stream/testStream", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded" }, @@ -8965,16 +8909,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.us-east-1.api.aws", @@ -8991,16 +8935,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://222222222222.search-ddb.us-east-1.api.aws", @@ -9024,16 +8968,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -9047,16 +8991,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -9077,16 +9021,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -9100,16 +9044,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws:dynamodb:us-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws:dynamodb:us-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported" }, @@ -9130,16 +9074,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.us-new-1.amazonaws.com", @@ -9163,16 +9107,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.cn-north-1.amazonaws.com.cn", @@ -9189,16 +9133,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://222222222222.search-ddb.cn-north-1.amazonaws.com.cn", @@ -9222,16 +9166,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.cn-north-1.amazonaws.com.cn"}}, id="{AccountId=111111111111, Region=cn-north-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9243,16 +9187,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.cn-north-1.amazonaws.com.cn"}}, id="{ResourceArn=arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name, Region=cn-north-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9271,16 +9215,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.cn-north-1.amazonaws.com.cn", @@ -9297,16 +9241,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-cn:dynamodb:cn-north-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://222222222222.search-ddb.cn-north-1.amazonaws.com.cn", @@ -9330,16 +9274,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.cn-new-1.amazonaws.com.cn"}}, id="{Region=cn-new-1, AccountIdEndpointMode=preferred, AccountId=111111111111, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9358,16 +9302,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.us-gov-east-1.amazonaws.com", @@ -9384,16 +9328,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://222222222222.search-ddb.us-gov-east-1.amazonaws.com", @@ -9417,16 +9361,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-gov-east-1.amazonaws.com"}}, id="{AccountId=111111111111, Region=us-gov-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9438,16 +9382,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-gov-east-1.amazonaws.com"}}, id="{ResourceArn=arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name, Region=us-gov-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9466,16 +9410,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://111111111111.search-ddb.us-gov-east-1.amazonaws.com", @@ -9492,16 +9436,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-us-gov:dynamodb:us-gov-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "endpoint": { "url": "https://222222222222.search-ddb.us-gov-east-1.amazonaws.com", @@ -9525,16 +9469,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-gov-new-1.amazonaws.com"}}, id="{Region=us-gov-new-1, AccountIdEndpointMode=preferred, AccountId=111111111111, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9553,16 +9497,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{AccountId=111111111111, Region=us-iso-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9574,16 +9518,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{ResourceArn=arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name, Region=us-iso-east-1, AccountIdEndpointMode=preferred, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9602,16 +9546,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{AccountId=111111111111, Region=us-iso-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9623,16 +9567,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-iso-east-1.c2s.ic.gov"}}, id="{ResourceArn=arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name, Region=us-iso-east-1, AccountIdEndpointMode=disabled, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9651,16 +9595,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region" }, @@ -9674,16 +9618,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "required", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name", - index_name="test-index", - search_vector=[ + { + "table_name": "arn:aws-iso:dynamodb:us-iso-east-1:222222222222:table/table_name", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, { "error": "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region" }, @@ -9704,16 +9648,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncDynamoDBClient.search_vectors, - SearchVectorsInput( - table_name="test-table", - index_name="test-index", - search_vector=[ + { + "table_name": "test-table", + "index_name": "test-index", + "search_vector": [ AttributeValueN(value="1.0"), AttributeValueN(value="2.0"), AttributeValueN(value="3.0"), ], - top_k=10, - ), + "top_k": 10, + }, {"endpoint": {"url": "https://search-dynamodb.us-iso-new-1.c2s.ic.gov"}}, id="{Region=us-iso-new-1, AccountIdEndpointMode=preferred, AccountId=111111111111, UseFIPS=false, UseDualStack=false, IsSearchOperation=true}", ), @@ -9723,8 +9667,8 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> @mark.parametrize(("config", "operation", "input", "expect"), CLIENT_CASES) async def test_endpoint_client( config: dict[str, Any], - operation: Callable[[AsyncDynamoDBClient, Any], Awaitable[Any]], - input: Any, + operation: Callable[Concatenate[AsyncDynamoDBClient, ...], Awaitable[Any]], + input: dict[str, Any], expect: dict[str, Any], ) -> None: await check_client_case_async( diff --git a/clients/aws-sdk-ec2/pyproject.toml b/clients/aws-sdk-ec2/pyproject.toml index 937163649..fccf51615 100644 --- a/clients/aws-sdk-ec2/pyproject.toml +++ b/clients/aws-sdk-ec2/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[xml]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[xml]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_0.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_00.pyi similarity index 70% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_0.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_00.pyi index e38a55196..0e91c7d8e 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_0.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_00.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -11,22 +13,31 @@ from ..models import ( CapacityReservationFleetCancellationState, ClientVpnAuthorizationRuleStatus, CpuPerformanceFactor, + CpuPerformanceFactorDict, CpuPerformanceFactorRequest, + CpuPerformanceFactorRequestDict, CustomTagKeyValueRequestPair, + CustomTagKeyValueRequestPairDict, CustomTagKeyValueResponsePair, EbsBlockDevice, + EbsBlockDeviceDict, EbsBlockDeviceResponse, EnaSrdSpecification, + EnaSrdSpecificationDict, FailedCapacityReservationFleetCancellationResult, HealthCheckPathResponseObject, HostCpuOptionsRequest, + HostCpuOptionsRequestDict, IamInstanceProfileAssociation, IamInstanceProfileSpecification, + IamInstanceProfileSpecificationDict, InstanceApplicationStatus, InstanceCapacity, InstanceEventWindow, InstanceEventWindowAssociationRequest, + InstanceEventWindowAssociationRequestDict, IpPermission, + IpPermissionDict, IpamPoolAllocation, IpamResourceDiscoveryAssociation, IpamRoutingPolicyRegistrationDelta, @@ -35,6 +46,7 @@ from ..models import ( PathComponent, PathStatement, PathStatementRequest, + PathStatementRequestDict, PortRange, PtrUpdateStatus, RegionalSummary, @@ -46,13 +58,17 @@ from ..models import ( RuleOption, SecurityGroupRule, Storage, + StorageDict, SubnetIpv6CidrBlockAssociation, SuccessfulAssociationResponseObject, Tag, TagSpecification, + TagSpecificationDict, TargetConfigurationRequest, + TargetConfigurationRequestDict, ThroughResourcesStatement, ThroughResourcesStatementRequest, + ThroughResourcesStatementRequestDict, TransitGatewayAssociation, TransitGatewayClientVpnAttachment, TransitGatewayMulticastDomainAssociations, @@ -89,6 +105,20 @@ class AcceleratorCount(_SerdeShape): there is no maximum limit. """ +class AcceleratorCountDict(TypedDict, total=False): + """Dictionary form of `AcceleratorCount`.""" + + min: int | None + """ + The minimum number of accelerators. If this parameter is not specified, + there is no minimum limit. + """ + max: int | None + """ + The maximum number of accelerators. If this parameter is not specified, + there is no maximum limit. + """ + @dataclass(kw_only=True) class AcceleratorCountRequest(_SerdeShape): """ @@ -109,6 +139,21 @@ class AcceleratorCountRequest(_SerdeShape): to `0`. """ +class AcceleratorCountRequestDict(TypedDict, total=False): + """Dictionary form of `AcceleratorCountRequest`.""" + + min: int | None + """ + The minimum number of accelerators. To specify no minimum limit, omit + this parameter. + """ + max: int | None + """ + The maximum number of accelerators. To specify no maximum limit, omit + this parameter. To exclude accelerator-enabled instance types, set `Max` + to `0`. + """ + class AcceleratorManufacturer(UnknownEnumMixin, StrEnum): AMAZON_WEB_SERVICES = "amazon-web-services" AMD = "amd" @@ -152,6 +197,20 @@ class AcceleratorTotalMemoryMiB(_SerdeShape): not specified, there is no maximum limit. """ +class AcceleratorTotalMemoryMiBDict(TypedDict, total=False): + """Dictionary form of `AcceleratorTotalMemoryMiB`.""" + + min: int | None + """ + The minimum amount of accelerator memory, in MiB. If this parameter is + not specified, there is no minimum limit. + """ + max: int | None + """ + The maximum amount of accelerator memory, in MiB. If this parameter is + not specified, there is no maximum limit. + """ + @dataclass(kw_only=True) class AcceleratorTotalMemoryMiBRequest(_SerdeShape): """The minimum and maximum amount of total accelerator memory, in MiB.""" @@ -167,6 +226,20 @@ class AcceleratorTotalMemoryMiBRequest(_SerdeShape): limit, omit this parameter. """ +class AcceleratorTotalMemoryMiBRequestDict(TypedDict, total=False): + """Dictionary form of `AcceleratorTotalMemoryMiBRequest`.""" + + min: int | None + """ + The minimum amount of accelerator memory, in MiB. To specify no minimum + limit, omit this parameter. + """ + max: int | None + """ + The maximum amount of accelerator memory, in MiB. To specify no maximum + limit, omit this parameter. + """ + class AcceleratorType(UnknownEnumMixin, StrEnum): GPU = "gpu" FPGA = "fpga" @@ -195,6 +268,27 @@ class AcceptAddressTransferInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AcceptAddressTransferInputDict(TypedDict, total=False): + """Dictionary form of `AcceptAddressTransferInput`.""" + + address: Required[str] + """The Elastic IP address you are accepting for transfer.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for the + filter name and `TeamA` for the filter value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AcceptAddressTransferOutput(_SerdeShape): """Dataclass for AcceptAddressTransferOutput structure.""" @@ -223,6 +317,19 @@ class AcceptCapacityReservationBillingOwnershipInput(_SerdeShape): capacity_reservation_id: str | None = ... """The ID of the Capacity Reservation for which to accept the request.""" +class AcceptCapacityReservationBillingOwnershipInputDict(TypedDict, total=False): + """Dictionary form of `AcceptCapacityReservationBillingOwnershipInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation for which to accept the request.""" + @dataclass(kw_only=True) class AcceptCapacityReservationBillingOwnershipOutput(_SerdeShape): """Dataclass for AcceptCapacityReservationBillingOwnershipOutput structure.""" @@ -259,6 +366,29 @@ class AcceptReservedInstancesExchangeQuoteInput(_SerdeShape): exchange for your current Convertible Reserved Instances. """ +class AcceptReservedInstancesExchangeQuoteInputDict(TypedDict, total=False): + """Dictionary form of `AcceptReservedInstancesExchangeQuoteInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + reserved_instance_ids: Required[Sequence[str]] + """ + The IDs of the Convertible Reserved Instances to exchange for another + Convertible Reserved Instance of the same or higher value. + """ + target_configurations: ( + Sequence[TargetConfigurationRequest | TargetConfigurationRequestDict] | None + ) + """ + The configuration of the target Convertible Reserved Instance to + exchange for your current Convertible Reserved Instances. + """ + @dataclass(kw_only=True) class AcceptReservedInstancesExchangeQuoteOutput(_SerdeShape): """The result of the exchange and whether it was `successful`.""" @@ -287,6 +417,19 @@ class AcceptTransitGatewayClientVpnAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AcceptTransitGatewayClientVpnAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `AcceptTransitGatewayClientVpnAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the Transit Gateway attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AcceptTransitGatewayClientVpnAttachmentOutput(_SerdeShape): """Dataclass for AcceptTransitGatewayClientVpnAttachmentOutput structure.""" @@ -327,6 +470,26 @@ class AcceptTransitGatewayMulticastDomainAssociationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AcceptTransitGatewayMulticastDomainAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `AcceptTransitGatewayMulticastDomainAssociationsInput`.""" + + transit_gateway_multicast_domain_id: str | None + """The ID of the transit gateway multicast domain.""" + transit_gateway_attachment_id: str | None + """The ID of the transit gateway attachment.""" + subnet_ids: Sequence[str] | None + """ + The IDs of the subnets to associate with the transit gateway multicast + domain. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AcceptTransitGatewayMulticastDomainAssociationsOutput(_SerdeShape): """ @@ -358,6 +521,19 @@ class AcceptTransitGatewayPeeringAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AcceptTransitGatewayPeeringAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `AcceptTransitGatewayPeeringAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the transit gateway attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AcceptTransitGatewayPeeringAttachmentOutput(_SerdeShape): """Dataclass for AcceptTransitGatewayPeeringAttachmentOutput structure.""" @@ -386,6 +562,19 @@ class AcceptTransitGatewayVpcAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AcceptTransitGatewayVpcAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `AcceptTransitGatewayVpcAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AcceptTransitGatewayVpcAttachmentOutput(_SerdeShape): """Dataclass for AcceptTransitGatewayVpcAttachmentOutput structure.""" @@ -416,6 +605,21 @@ class AcceptVpcEndpointConnectionsInput(_SerdeShape): vpc_endpoint_ids: list[str] | None = ... """The IDs of the interface VPC endpoints.""" +class AcceptVpcEndpointConnectionsInputDict(TypedDict, total=False): + """Dictionary form of `AcceptVpcEndpointConnectionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: Required[str] + """The ID of the VPC endpoint service.""" + vpc_endpoint_ids: Required[Sequence[str]] + """The IDs of the interface VPC endpoints.""" + @dataclass(kw_only=True) class AcceptVpcEndpointConnectionsOutput(_SerdeShape): """Dataclass for AcceptVpcEndpointConnectionsOutput structure.""" @@ -450,6 +654,22 @@ class AcceptVpcPeeringConnectionInput(_SerdeShape): the request. """ +class AcceptVpcPeeringConnectionInputDict(TypedDict, total=False): + """Dictionary form of `AcceptVpcPeeringConnectionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_peering_connection_id: Required[str] + """ + The ID of the VPC peering connection. You must specify this parameter in + the request. + """ + @dataclass(kw_only=True) class AcceptVpcPeeringConnectionOutput(_SerdeShape): """Dataclass for AcceptVpcPeeringConnectionOutput structure.""" @@ -499,6 +719,21 @@ class AccessScopePathRequest(_SerdeShape): through_resources: list[ThroughResourcesStatementRequest] | None = ... """The through resources.""" +class AccessScopePathRequestDict(TypedDict, total=False): + """Dictionary form of `AccessScopePathRequest`.""" + + source: PathStatementRequest | PathStatementRequestDict | None + """The source.""" + destination: PathStatementRequest | PathStatementRequestDict | None + """The destination.""" + through_resources: ( + Sequence[ + ThroughResourcesStatementRequest | ThroughResourcesStatementRequestDict + ] + | None + ) + """The through resources.""" + @dataclass(kw_only=True) class AccountAttribute(_SerdeShape): """Describes an account attribute.""" @@ -675,6 +910,12 @@ class AddIpamOperatingRegion(_SerdeShape): region_name: str | None = ... """The name of the operating Region.""" +class AddIpamOperatingRegionDict(TypedDict, total=False): + """Dictionary form of `AddIpamOperatingRegion`.""" + + region_name: str | None + """The name of the operating Region.""" + @dataclass(kw_only=True) class AddIpamOrganizationalUnitExclusion(_SerdeShape): """ @@ -720,6 +961,41 @@ class AddIpamOrganizationalUnitExclusion(_SerdeShape): in the *Amazon Web Services Identity and Access Management User Guide*. """ +class AddIpamOrganizationalUnitExclusionDict(TypedDict, total=False): + """Dictionary form of `AddIpamOrganizationalUnitExclusion`.""" + + organizations_entity_path: str | None + """ + An Amazon Web Services Organizations entity path. Build the path for the + OU(s) using Amazon Web Services Organizations IDs separated by a `/`. + Include all child OUs by ending the path with `/*`. + + - Example 1 + + - Path to a child OU: + `o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/ou-jkl0-awsddddd/` + + - In this example, `o-a1b2c3d4e5` is the organization ID, + `r-f6g7h8i9j0example` is the root ID , `ou-ghi0-awsccccc` is an OU + ID, and `ou-jkl0-awsddddd` is a child OU ID. + + - IPAM will not manage the IP addresses in accounts in the child OU. + + - Example 2 + + - Path where all child OUs will be part of the exclusion: + `o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/*` + + - In this example, IPAM will not manage the IP addresses in accounts + in the OU (`ou-ghi0-awsccccc`) or in accounts in any OUs that are + children of the OU. + + For more information on how to construct an entity path, see [Understand + the Amazon Web Services Organizations entity + path](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed-view-data-orgs.html#access_policies_access-advisor-viewing-orgs-entity-path) + in the *Amazon Web Services Identity and Access Management User Guide*. + """ + @dataclass(kw_only=True) class AdditionalDetail(_SerdeShape): """ @@ -758,6 +1034,18 @@ class AddPrefixListEntry(_SerdeShape): Constraints: Up to 255 characters in length. """ +class AddPrefixListEntryDict(TypedDict, total=False): + """Dictionary form of `AddPrefixListEntry`.""" + + cidr: Required[str] + """The CIDR block.""" + description: str | None + """ + A description for the entry. + + Constraints: Up to 255 characters in length. + """ + @dataclass(kw_only=True) class Address(_SerdeShape): """Describes an Elastic IP address, or a carrier IP address.""" @@ -907,6 +1195,47 @@ class AdvertiseByoipCidrInput(_SerdeShape): at this time. """ +class AdvertiseByoipCidrInputDict(TypedDict, total=False): + """Dictionary form of `AdvertiseByoipCidrInput`.""" + + cidr: Required[str] + """ + The address range, in CIDR notation. This must be the exact range that + you provisioned. You can't advertise only a portion of the provisioned + range. + """ + asn: str | None + """The public 2-byte or 4-byte ASN that you want to advertise.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_border_group: str | None + """ + If you have [Local + Zones](https://docs.aws.amazon.com/local-zones/latest/ug/how-local-zones-work.html) + enabled, you can choose a network border group for Local Zones when you + provision and advertise a BYOIPv4 CIDR. Choose the network border group + carefully as the EIP and the Amazon Web Services resource it is + associated with must reside in the same network border group. + + You can provision BYOIP address ranges to and advertise them in the + following Local Zone network border groups: + + - us-east-1-dfw-2 + + - us-west-2-lax-1 + + - us-west-2-phx-2 + + Note: + You cannot provision or advertise BYOIPv6 address ranges in Local Zones + at this time. + """ + @dataclass(kw_only=True) class AdvertiseByoipCidrOutput(_SerdeShape): """Dataclass for AdvertiseByoipCidrOutput structure.""" @@ -977,34 +1306,81 @@ class AllocateAddressInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class AllocateAddressOutput(_SerdeShape): - """Dataclass for AllocateAddressOutput structure.""" +class AllocateAddressInputDict(TypedDict, total=False): + """Dictionary form of `AllocateAddressInput`.""" - allocation_id: str | None = ... - """The ID that represents the allocation of the Elastic IP address.""" - public_ipv4_pool: str | None = ... - """The ID of an address pool that you own.""" - network_border_group: str | None = ... - """ - The set of Availability Zones, Local Zones, or Wavelength Zones from - which Amazon Web Services advertises IP addresses. - """ - domain: str | None = ... + domain: str | None """The network (`vpc`).""" - customer_owned_ip: str | None = ... - """The customer-owned IP address.""" - customer_owned_ipv4_pool: str | None = ... - """The ID of the customer-owned address pool.""" - carrier_ip: str | None = ... + address: str | None """ - The carrier IP address. Available only for network interfaces that - reside in a subnet in a Wavelength Zone. + The Elastic IP address to recover or an IPv4 address from an address + pool. """ - public_ip: str | None = ... + public_ipv4_pool: str | None """ - The Amazon-owned IP address. Not available when using an address pool - that you own. + The ID of an address pool that you own. Use this parameter to let Amazon + EC2 select an address from the address pool. To specify a specific + address from the address pool, use the `Address` parameter instead. + """ + network_border_group: str | None + """ + A unique set of Availability Zones, Local Zones, or Wavelength Zones + from which Amazon Web Services advertises IP addresses. Use this + parameter to limit the IP address to this location. IP addresses cannot + move between network border groups. + """ + customer_owned_ipv4_pool: str | None + """ + The ID of a customer-owned address pool. Use this parameter to let + Amazon EC2 select an address from the address pool. Alternatively, + specify a specific address from the address pool. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the Elastic IP address.""" + ipam_pool_id: str | None + """ + The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 + CIDR provisioned to it. For more information, see [Allocate sequential + Elastic IP addresses from an IPAM + pool](https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-eip-pool.html) + in the *Amazon VPC IPAM User Guide*. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class AllocateAddressOutput(_SerdeShape): + """Dataclass for AllocateAddressOutput structure.""" + + allocation_id: str | None = ... + """The ID that represents the allocation of the Elastic IP address.""" + public_ipv4_pool: str | None = ... + """The ID of an address pool that you own.""" + network_border_group: str | None = ... + """ + The set of Availability Zones, Local Zones, or Wavelength Zones from + which Amazon Web Services advertises IP addresses. + """ + domain: str | None = ... + """The network (`vpc`).""" + customer_owned_ip: str | None = ... + """The customer-owned IP address.""" + customer_owned_ipv4_pool: str | None = ... + """The ID of the customer-owned address pool.""" + carrier_ip: str | None = ... + """ + The carrier IP address. Available only for network interfaces that + reside in a subnet in a Wavelength Zone. + """ + public_ip: str | None = ... + """ + The Amazon-owned IP address. Not available when using an address pool + that you own. """ response_metadata: ResponseMetadata = ... """ @@ -1117,6 +1493,108 @@ class AllocateHostsInput(_SerdeShape): availability_zone: str | None = ... """The Availability Zone in which to allocate the Dedicated Host.""" +class AllocateHostsInputDict(TypedDict, total=False): + """Dictionary form of `AllocateHostsInput`.""" + + instance_family: str | None + """ + Specifies the instance family to be supported by the Dedicated Hosts. If + you specify an instance family, the Dedicated Hosts support multiple + instance types within that instance family. + + If you want the Dedicated Hosts to support a specific instance type + only, omit this parameter and specify **InstanceType** instead. You + cannot specify **InstanceFamily** and **InstanceType** in the same + request. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the Dedicated Host during creation.""" + host_recovery: str | None + """ + Indicates whether to enable or disable host recovery for the Dedicated + Host. Host recovery is disabled by default. For more information, see + [Host + recovery](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html) + in the *Amazon EC2 User Guide*. + + Default: `off` + """ + outpost_arn: str | None + """ + The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on + which to allocate the Dedicated Host. If you specify **OutpostArn**, you + can optionally specify **AssetIds**. + + If you are allocating the Dedicated Host in a Region, omit this + parameter. + """ + host_maintenance: str | None + """ + Indicates whether to enable or disable host maintenance for the + Dedicated Host. For more information, see [Host + maintenance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html) + in the *Amazon EC2 User Guide*. + """ + asset_ids: Sequence[str] | None + """ + The IDs of the Outpost hardware assets on which to allocate the + Dedicated Hosts. Targeting specific hardware assets on an Outpost can + help to minimize latency between your workloads. This parameter is + supported only if you specify **OutpostArn**. If you are allocating the + Dedicated Hosts in a Region, omit this parameter. + + - If you specify this parameter, you can omit **Quantity**. In this + case, Amazon EC2 allocates a Dedicated Host on each specified hardware + asset. + + - If you specify both **AssetIds** and **Quantity**, then the value for + **Quantity** must be equal to the number of asset IDs specified. + """ + availability_zone_id: str | None + """The ID of the Availability Zone.""" + cpu_options: HostCpuOptionsRequest | HostCpuOptionsRequestDict | None + """The CPU configuration options to apply to the Dedicated Host.""" + auto_placement: str | None + """ + Indicates whether the host accepts any untargeted instance launches that + match its instance type configuration, or if it only accepts Host + tenancy instance launches that specify its unique host ID. For more + information, see [Understanding auto-placement and + affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) + in the *Amazon EC2 User Guide*. + + Default: `off` + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + """ + instance_type: str | None + """ + Specifies the instance type to be supported by the Dedicated Hosts. If + you specify an instance type, the Dedicated Hosts support instances of + the specified instance type only. + + If you want the Dedicated Hosts to support multiple instance types in a + specific instance family, omit this parameter and specify + **InstanceFamily** instead. You cannot specify **InstanceType** and + **InstanceFamily** in the same request. + """ + quantity: int | None + """ + The number of Dedicated Hosts to allocate to your account with these + parameters. If you are allocating the Dedicated Hosts on an Outpost, and + you specify **AssetIds**, you can omit this parameter. In this case, + Amazon EC2 allocates a Dedicated Host on each specified hardware asset. + If you specify both **AssetIds** and **Quantity**, then the value that + you specify for **Quantity** must be equal to the number of asset IDs + specified. + """ + availability_zone: str | None + """The Availability Zone in which to allocate the Dedicated Host.""" + @dataclass(kw_only=True) class AllocateHostsOutput(_SerdeShape): """Contains the output of AllocateHosts.""" @@ -1211,6 +1689,82 @@ class AllocateIpamPoolCidrInput(_SerdeShape): resource in addition to the pool resource. """ +class AllocateIpamPoolCidrInputDict(TypedDict, total=False): + """Dictionary form of `AllocateIpamPoolCidrInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: Required[str] + """The ID of the IPAM pool from which you would like to allocate a CIDR.""" + cidr: str | None + """ + The CIDR you would like to allocate from the IPAM pool. Note the + following: + + - If there is no DefaultNetmaskLength allocation rule set on the pool, + you must specify either the NetmaskLength or the CIDR. + + - If the DefaultNetmaskLength allocation rule is set on the pool, you + can specify either the NetmaskLength or the CIDR and the + DefaultNetmaskLength allocation rule will be ignored. + + Possible values: Any available IPv4 or IPv6 CIDR. + """ + netmask_length: int | None + """ + The netmask length of the CIDR you would like to allocate from the IPAM + pool. Note the following: + + - If there is no DefaultNetmaskLength allocation rule set on the pool, + you must specify either the NetmaskLength or the CIDR. + + - If the DefaultNetmaskLength allocation rule is set on the pool, you + can specify either the NetmaskLength or the CIDR and the + DefaultNetmaskLength allocation rule will be ignored. + + Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask + lengths for IPv6 addresses are 0 - 128. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + description: str | None + """A description for the allocation.""" + preview_next_cidr: bool | None + """A preview of the next available CIDR in a pool.""" + allowed_cidrs: Sequence[str] | None + """ + Include a particular CIDR range that can be returned by the pool. + Allowed CIDRs are only allowed if using netmask length for allocation. + """ + disallowed_cidrs: Sequence[str] | None + """ + Exclude a particular CIDR range from being returned by the pool. + Disallowed CIDRs are only allowed if using netmask length for + allocation. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The key/value combination of a tag assigned to the resource. Use the tag + key in the filter name and the tag value as the filter value. For + example, to find all resources that have a tag with the key `Owner` and + the value `TeamA`, specify `tag:Owner` for the filter name and `TeamA` + for the filter value. + + If you specify tags, the request is authorized against the allocation + resource in addition to the pool resource. + """ + @dataclass(kw_only=True) class AllocateIpamPoolCidrOutput(_SerdeShape): """Dataclass for AllocateIpamPoolCidrOutput structure.""" @@ -1779,6 +2333,27 @@ class ApplySecurityGroupsToClientVpnTargetNetworkInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ApplySecurityGroupsToClientVpnTargetNetworkInputDict(TypedDict, total=False): + """Dictionary form of `ApplySecurityGroupsToClientVpnTargetNetworkInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + vpc_id: Required[str] + """The ID of the VPC in which the associated target network is located.""" + security_group_ids: Required[Sequence[str]] + """ + The IDs of the security groups to apply to the associated target + network. Up to 5 security groups can be applied to an associated target + network. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ApplySecurityGroupsToClientVpnTargetNetworkOutput(_SerdeShape): """ @@ -1847,6 +2422,14 @@ class AsnAuthorizationContext(_SerdeShape): signature: str | None = ... """The authorization context's signature.""" +class AsnAuthorizationContextDict(TypedDict, total=False): + """Dictionary form of `AsnAuthorizationContext`.""" + + message: Required[str] + """The authorization context's message.""" + signature: Required[str] + """The authorization context's signature.""" + class AsnState(UnknownEnumMixin, StrEnum): DEPROVISIONED = "deprovisioned" FAILED_DEPROVISION = "failed-deprovision" @@ -1894,6 +2477,37 @@ class AssignIpv6AddressesInput(_SerdeShape): IPv6 addresses. """ +class AssignIpv6AddressesInputDict(TypedDict, total=False): + """Dictionary form of `AssignIpv6AddressesInput`.""" + + ipv6_prefix_count: int | None + """ + The number of IPv6 prefixes that Amazon Web Services automatically + assigns to the network interface. You cannot use this option if you use + the `Ipv6Prefixes` option. + """ + ipv6_prefixes: Sequence[str] | None + """ + One or more IPv6 prefixes assigned to the network interface. You can't + use this option if you use the `Ipv6PrefixCount` option. + """ + network_interface_id: Required[str] + """The ID of the network interface.""" + ipv6_addresses: Sequence[str] | None + """ + The IPv6 addresses to be assigned to the network interface. You can't + use this option if you're specifying a number of IPv6 addresses. + """ + ipv6_address_count: int | None + """ + The number of additional IPv6 addresses to assign to the network + interface. The specified number of IPv6 addresses are assigned in + addition to the existing IPv6 addresses that are already assigned to the + network interface. Amazon EC2 automatically selects the IPv6 addresses + from the subnet range. You can't use this option if specifying specific + IPv6 addresses. + """ + @dataclass(kw_only=True) class AssignIpv6AddressesOutput(_SerdeShape): """Dataclass for AssignIpv6AddressesOutput structure.""" @@ -1955,14 +2569,52 @@ class AssignPrivateIpAddressesInput(_SerdeShape): network interface. """ -@dataclass(kw_only=True) -class AssignPrivateIpAddressesOutput(_SerdeShape): - """Dataclass for AssignPrivateIpAddressesOutput structure.""" +class AssignPrivateIpAddressesInputDict(TypedDict, total=False): + """Dictionary form of `AssignPrivateIpAddressesInput`.""" - network_interface_id: str | None = ... - """The ID of the network interface.""" - assigned_private_ip_addresses: list[AssignedPrivateIpAddress] | None = ... - """The private IP addresses assigned to the network interface.""" + ipv4_prefixes: Sequence[str] | None + """ + One or more IPv4 prefixes assigned to the network interface. You can't + use this option if you use the `Ipv4PrefixCount` option. + """ + ipv4_prefix_count: int | None + """ + The number of IPv4 prefixes that Amazon Web Services automatically + assigns to the network interface. You can't use this option if you use + the `Ipv4 Prefixes` option. + """ + network_interface_id: Required[str] + """The ID of the network interface.""" + private_ip_addresses: Sequence[str] | None + """ + The IP addresses to be assigned as a secondary private IP address to the + network interface. You can't specify this parameter when also + specifying a number of secondary IP addresses. + + If you don't specify an IP address, Amazon EC2 automatically selects an + IP address within the subnet range. + """ + secondary_private_ip_address_count: int | None + """ + The number of secondary IP addresses to assign to the network interface. + You can't specify this parameter when also specifying private IP + addresses. + """ + allow_reassignment: bool | None + """ + Indicates whether to allow an IP address that is already assigned to + another network interface or instance to be reassigned to the specified + network interface. + """ + +@dataclass(kw_only=True) +class AssignPrivateIpAddressesOutput(_SerdeShape): + """Dataclass for AssignPrivateIpAddressesOutput structure.""" + + network_interface_id: str | None = ... + """The ID of the network interface.""" + assigned_private_ip_addresses: list[AssignedPrivateIpAddress] | None = ... + """The private IP addresses assigned to the network interface.""" assigned_ipv4_prefixes: list[Ipv4PrefixSpecification] | None = ... """The IPv4 prefixes that are assigned to the network interface.""" response_metadata: ResponseMetadata = ... @@ -1997,6 +2649,29 @@ class AssignPrivateNatGatewayAddressInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AssignPrivateNatGatewayAddressInputDict(TypedDict, total=False): + """Dictionary form of `AssignPrivateNatGatewayAddressInput`.""" + + nat_gateway_id: Required[str] + """The ID of the NAT gateway.""" + private_ip_addresses: Sequence[str] | None + """ + The private IPv4 addresses you want to assign to the private NAT + gateway. + """ + private_ip_address_count: int | None + """ + The number of private IP addresses to assign to the NAT gateway. You + can't specify this parameter when also specifying private IP addresses. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssignPrivateNatGatewayAddressOutput(_SerdeShape): """Dataclass for AssignPrivateNatGatewayAddressOutput structure.""" @@ -2055,6 +2730,47 @@ class AssociateAddressInput(_SerdeShape): another resource. """ +class AssociateAddressInputDict(TypedDict, total=False): + """Dictionary form of `AssociateAddressInput`.""" + + allocation_id: str | None + """The allocation ID. This is required.""" + instance_id: str | None + """ + The ID of the instance. The instance must have exactly one attached + network interface. You can specify either the instance ID or the network + interface ID, but not both. + """ + public_ip: str | None + """Deprecated.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_id: str | None + """ + The ID of the network interface. If the instance has more than one + network interface, you must specify a network interface ID. + + You can specify either the instance ID or the network interface ID, but + not both. + """ + private_ip_address: str | None + """ + The primary or secondary private IP address to associate with the + Elastic IP address. If no private IP address is specified, the Elastic + IP address is associated with the primary private IP address. + """ + allow_reassociation: bool | None + """ + Reassociation is automatic, but you can specify false to ensure the + operation fails if the Elastic IP address is already associated with + another resource. + """ + @dataclass(kw_only=True) class AssociateAddressOutput(_SerdeShape): """Dataclass for AssociateAddressOutput structure.""" @@ -2106,6 +2822,41 @@ class AssociateApplicationStatusCheckInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class AssociateApplicationStatusCheckInputDict(TypedDict, total=False): + """Dictionary form of `AssociateApplicationStatusCheckInput`.""" + + application_status_check_id: Required[str] + """The ID of the application status check to associate.""" + target_tag_associations: ( + Sequence[CustomTagKeyValueRequestPair | CustomTagKeyValueRequestPairDict] | None + ) + """ + The + [tags](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) + to associate the application status check with. Each tag is a key-value + pair. When you associate tags, the application status check + automatically monitors all instances that have the specified tags. + """ + instance_ids: Sequence[str] | None + """The IDs of the instances to associate with the application status check.""" + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If you retry a request with + the same token, the service ignores the request but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssociateApplicationStatusCheckOutput(_SerdeShape): """Dataclass for AssociateApplicationStatusCheckOutput structure.""" @@ -2138,6 +2889,21 @@ class AssociateCapacityReservationBillingOwnerInput(_SerdeShape): unused_reservation_billing_owner_id: str | None = ... """The ID of the consumer account to which to assign billing.""" +class AssociateCapacityReservationBillingOwnerInputDict(TypedDict, total=False): + """Dictionary form of `AssociateCapacityReservationBillingOwnerInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation.""" + unused_reservation_billing_owner_id: Required[str] + """The ID of the consumer account to which to assign billing.""" + @dataclass(kw_only=True) class AssociateCapacityReservationBillingOwnerOutput(_SerdeShape): """Dataclass for AssociateCapacityReservationBillingOwnerOutput structure.""" @@ -2194,6 +2960,47 @@ class AssociateClientVpnTargetNetworkInput(_SerdeShape): `AvailabilityZoneId`. """ +class AssociateClientVpnTargetNetworkInputDict(TypedDict, total=False): + """Dictionary form of `AssociateClientVpnTargetNetworkInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + subnet_id: str | None + """ + The ID of the subnet to associate with the Client VPN endpoint. Required + for VPC-based endpoints. For Transit Gateway-based endpoints, use + `AvailabilityZone` or `AvailabilityZoneId` instead. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + availability_zone: str | None + """ + The Availability Zone name for the Transit Gateway association. Required + if when associating an Availability Zone with a Client VPN endpoint that + uses a Transit Gateway. You cannot specify both `SubnetId` and + `AvailabilityZone`. + """ + availability_zone_id: str | None + """ + The Availability Zone ID for the Transit Gateway association. Required + if when associating an Availability Zone with a Client VPN endpoint that + uses a Transit Gateway. You cannot specify both `AvailabilityZone` and + `AvailabilityZoneId`. + """ + @dataclass(kw_only=True) class AssociateClientVpnTargetNetworkOutput(_SerdeShape): """Dataclass for AssociateClientVpnTargetNetworkOutput structure.""" @@ -2229,6 +3036,24 @@ class AssociateDhcpOptionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AssociateDhcpOptionsInputDict(TypedDict, total=False): + """Dictionary form of `AssociateDhcpOptionsInput`.""" + + dhcp_options_id: Required[str] + """ + The ID of the DHCP options set, or `default` to associate no DHCP + options with the VPC. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssociateDhcpOptionsOutput(_SerdeShape): """Dataclass for AssociateDhcpOptionsOutput structure.""" @@ -2295,6 +3120,24 @@ class AssociateEnclaveCertificateIamRoleInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AssociateEnclaveCertificateIamRoleInputDict(TypedDict, total=False): + """Dictionary form of `AssociateEnclaveCertificateIamRoleInput`.""" + + certificate_arn: Required[str] + """The ARN of the ACM certificate with which to associate the IAM role.""" + role_arn: Required[str] + """ + The ARN of the IAM role to associate with the ACM certificate. You can + associate up to 16 IAM roles with an ACM certificate. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssociateEnclaveCertificateIamRoleOutput(_SerdeShape): """Dataclass for AssociateEnclaveCertificateIamRoleOutput structure.""" @@ -2329,6 +3172,16 @@ class AssociateIamInstanceProfileInput(_SerdeShape): instance_id: str | None = ... """The ID of the instance.""" +class AssociateIamInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `AssociateIamInstanceProfileInput`.""" + + iam_instance_profile: Required[ + IamInstanceProfileSpecification | IamInstanceProfileSpecificationDict + ] + """The IAM instance profile.""" + instance_id: Required[str] + """The ID of the instance.""" + @dataclass(kw_only=True) class AssociateIamInstanceProfileOutput(_SerdeShape): """Dataclass for AssociateIamInstanceProfileOutput structure.""" @@ -2359,6 +3212,24 @@ class AssociateInstanceEventWindowInput(_SerdeShape): association_target: InstanceEventWindowAssociationRequest | None = ... """One or more targets associated with the specified event window.""" +class AssociateInstanceEventWindowInputDict(TypedDict, total=False): + """Dictionary form of `AssociateInstanceEventWindowInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_event_window_id: Required[str] + """The ID of the event window.""" + association_target: Required[ + InstanceEventWindowAssociationRequest + | InstanceEventWindowAssociationRequestDict + ] + """One or more targets associated with the specified event window.""" + @dataclass(kw_only=True) class AssociateInstanceEventWindowOutput(_SerdeShape): """Dataclass for AssociateInstanceEventWindowOutput structure.""" @@ -2389,6 +3260,21 @@ class AssociateIpamByoasnInput(_SerdeShape): cidr: str | None = ... """The BYOIP CIDR you want to associate with an ASN.""" +class AssociateIpamByoasnInputDict(TypedDict, total=False): + """Dictionary form of `AssociateIpamByoasnInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + asn: Required[str] + """A public 2-byte or 4-byte ASN.""" + cidr: Required[str] + """The BYOIP CIDR you want to associate with an ASN.""" + @dataclass(kw_only=True) class AssociateIpamByoasnOutput(_SerdeShape): """Dataclass for AssociateIpamByoasnOutput structure.""" @@ -2427,6 +3313,29 @@ class AssociateIpamResourceDiscoveryInput(_SerdeShape): This field is autopopulated if not provided. """ +class AssociateIpamResourceDiscoveryInputDict(TypedDict, total=False): + """Dictionary form of `AssociateIpamResourceDiscoveryInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """An IPAM ID.""" + ipam_resource_discovery_id: Required[str] + """A resource discovery ID.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """Tag specifications.""" + client_token: str | None + """ + A client token. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class AssociateIpamResourceDiscoveryOutput(_SerdeShape): """Dataclass for AssociateIpamResourceDiscoveryOutput structure.""" @@ -2487,6 +3396,48 @@ class AssociateNatGatewayAddressInput(_SerdeShape): scalability and availability across all the AZs in a Region. """ +class AssociateNatGatewayAddressInputDict(TypedDict, total=False): + """Dictionary form of `AssociateNatGatewayAddressInput`.""" + + nat_gateway_id: Required[str] + """The ID of the NAT gateway.""" + allocation_ids: Required[Sequence[str]] + """ + The allocation IDs of EIPs that you want to associate with your NAT + gateway. + """ + private_ip_addresses: Sequence[str] | None + """The private IPv4 addresses that you want to assign to the NAT gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + availability_zone: str | None + """ + For regional NAT gateways only: The Availability Zone where you want to + associate an Elastic IP address (EIP). The regional NAT gateway uses a + separate EIP in each AZ to handle outbound NAT traffic from that AZ. + + A regional NAT gateway is a single NAT Gateway that works across + multiple availability zones (AZs) in your VPC, providing redundancy, + scalability and availability across all the AZs in a Region. + """ + availability_zone_id: str | None + """ + For regional NAT gateways only: The ID of the Availability Zone where + you want to associate an Elastic IP address (EIP). The regional NAT + gateway uses a separate EIP in each AZ to handle outbound NAT traffic + from that AZ. Use this instead of AvailabilityZone for consistent + identification of AZs across Amazon Web Services Regions. + + A regional NAT gateway is a single NAT Gateway that works across + multiple availability zones (AZs) in your VPC, providing redundancy, + scalability and availability across all the AZs in a Region. + """ + @dataclass(kw_only=True) class AssociateNatGatewayAddressOutput(_SerdeShape): """Dataclass for AssociateNatGatewayAddressOutput structure.""" @@ -2519,7 +3470,22 @@ class AssociateRouteServerInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) +class AssociateRouteServerInputDict(TypedDict, total=False): + """Dictionary form of `AssociateRouteServerInput`.""" + + route_server_id: Required[str] + """The unique identifier for the route server to be associated.""" + vpc_id: Required[str] + """The ID of the VPC to associate with the route server.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) class AssociateRouteServerOutput(_SerdeShape): """Dataclass for AssociateRouteServerOutput structure.""" @@ -2556,6 +3522,28 @@ class AssociateRouteTableInput(_SerdeShape): route_table_id: str | None = ... """The ID of the route table.""" +class AssociateRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `AssociateRouteTableInput`.""" + + gateway_id: str | None + """The ID of the internet gateway or virtual private gateway.""" + public_ipv4_pool: str | None + """ + The ID of a public IPv4 pool. A public IPv4 pool is a pool of IPv4 + addresses that you've brought to Amazon Web Services with BYOIP. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + subnet_id: str | None + """The ID of the subnet.""" + route_table_id: Required[str] + """The ID of the route table.""" + @dataclass(kw_only=True) class AssociateRouteTableOutput(_SerdeShape): """Dataclass for AssociateRouteTableOutput structure.""" @@ -2591,6 +3579,21 @@ class AssociateSecurityGroupVpcInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AssociateSecurityGroupVpcInputDict(TypedDict, total=False): + """Dictionary form of `AssociateSecurityGroupVpcInput`.""" + + group_id: Required[str] + """A security group ID.""" + vpc_id: Required[str] + """A VPC ID.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssociateSecurityGroupVpcOutput(_SerdeShape): """Dataclass for AssociateSecurityGroupVpcOutput structure.""" @@ -2618,6 +3621,18 @@ class AssociateSubnetCidrBlockInput(_SerdeShape): ipv6_cidr_block: str | None = ... """The IPv6 CIDR block for your subnet.""" +class AssociateSubnetCidrBlockInputDict(TypedDict, total=False): + """Dictionary form of `AssociateSubnetCidrBlockInput`.""" + + ipv6_ipam_pool_id: str | None + """An IPv6 IPAM pool ID.""" + ipv6_netmask_length: int | None + """An IPv6 netmask length.""" + subnet_id: Required[str] + """The ID of your subnet.""" + ipv6_cidr_block: str | None + """The IPv6 CIDR block for your subnet.""" + @dataclass(kw_only=True) class AssociateSubnetCidrBlockOutput(_SerdeShape): """Dataclass for AssociateSubnetCidrBlockOutput structure.""" @@ -2658,6 +3673,29 @@ class AssociateTransitGatewayMulticastDomainInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AssociateTransitGatewayMulticastDomainInputDict(TypedDict, total=False): + """Dictionary form of `AssociateTransitGatewayMulticastDomainInput`.""" + + transit_gateway_multicast_domain_id: Required[str] + """The ID of the transit gateway multicast domain.""" + transit_gateway_attachment_id: Required[str] + """ + The ID of the transit gateway attachment to associate with the transit + gateway multicast domain. + """ + subnet_ids: Required[Sequence[str]] + """ + The IDs of the subnets to associate with the transit gateway multicast + domain. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssociateTransitGatewayMulticastDomainOutput(_SerdeShape): """Dataclass for AssociateTransitGatewayMulticastDomainOutput structure.""" @@ -2694,6 +3732,27 @@ class AssociateTransitGatewayPolicyTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AssociateTransitGatewayPolicyTableInputDict(TypedDict, total=False): + """Dictionary form of `AssociateTransitGatewayPolicyTableInput`.""" + + transit_gateway_policy_table_id: Required[str] + """ + The ID of the transit gateway policy table to associate with the transit + gateway attachment. + """ + transit_gateway_attachment_id: Required[str] + """ + The ID of the transit gateway attachment to associate with the policy + table. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssociateTransitGatewayPolicyTableOutput(_SerdeShape): """Dataclass for AssociateTransitGatewayPolicyTableOutput structure.""" @@ -2727,6 +3786,21 @@ class AssociateTransitGatewayRouteTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AssociateTransitGatewayRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `AssociateTransitGatewayRouteTableInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + transit_gateway_attachment_id: Required[str] + """The ID of the attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssociateTransitGatewayRouteTableOutput(_SerdeShape): """Dataclass for AssociateTransitGatewayRouteTableOutput structure.""" @@ -2769,6 +3843,33 @@ class AssociateTrunkInterfaceInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AssociateTrunkInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `AssociateTrunkInterfaceInput`.""" + + branch_interface_id: Required[str] + """The ID of the branch network interface.""" + trunk_interface_id: Required[str] + """The ID of the trunk network interface.""" + vlan_id: int | None + """The ID of the VLAN. This applies to the VLAN protocol.""" + gre_key: int | None + """The application key. This applies to the GRE protocol.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AssociateTrunkInterfaceOutput(_SerdeShape): """Dataclass for AssociateTrunkInterfaceOutput structure.""" @@ -2859,6 +3960,72 @@ class AssociateVpcCidrBlockInput(_SerdeShape): the CIDR block. """ +class AssociateVpcCidrBlockInputDict(TypedDict, total=False): + """Dictionary form of `AssociateVpcCidrBlockInput`.""" + + cidr_block: str | None + """An IPv4 CIDR block to associate with the VPC.""" + ipv6_cidr_block_network_border_group: str | None + """ + The name of the location from which we advertise the IPV6 CIDR block. + Use this parameter to limit the CIDR block to this location. + + You must set `AmazonProvidedIpv6CidrBlock` to `true` to use this + parameter. + + You can have one IPv6 CIDR block association per network border group. + """ + ipv6_pool: str | None + """ + The ID of an IPv6 address pool from which to allocate the IPv6 CIDR + block. + """ + ipv6_cidr_block: str | None + """ + An IPv6 CIDR block from the IPv6 address pool. You must also specify + `Ipv6Pool` in the request. + + To let Amazon choose the IPv6 CIDR block for you, omit this parameter. + """ + ipv4_ipam_pool_id: str | None + """ + Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. For more + information about Amazon VPC IP Address Manager (IPAM), see [What is + IPAM?](https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html) + in the *Amazon VPC IPAM User Guide*. + """ + ipv4_netmask_length: int | None + """ + The netmask length of the IPv4 CIDR you would like to associate from an + Amazon VPC IP Address Manager (IPAM) pool. For more information about + IPAM, see [What is + IPAM?](https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html) + in the *Amazon VPC IPAM User Guide*. + """ + ipv6_ipam_pool_id: str | None + """ + Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. For more + information about Amazon VPC IP Address Manager (IPAM), see [What is + IPAM?](https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html) + in the *Amazon VPC IPAM User Guide*. + """ + ipv6_netmask_length: int | None + """ + The netmask length of the IPv6 CIDR you would like to associate from an + Amazon VPC IP Address Manager (IPAM) pool. For more information about + IPAM, see [What is + IPAM?](https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html) + in the *Amazon VPC IPAM User Guide*. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + amazon_provided_ipv6_cidr_block: bool | None + """ + Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for + the VPC. You cannot specify the range of IPv6 addresses or the size of + the CIDR block. + """ + @dataclass(kw_only=True) class AssociateVpcCidrBlockOutput(_SerdeShape): """Dataclass for AssociateVpcCidrBlockOutput structure.""" @@ -2916,6 +4083,21 @@ class AthenaIntegration(_SerdeShape): partition_end_date: datetime | None = ... """The end date for the partition.""" +class AthenaIntegrationDict(TypedDict, total=False): + """Dictionary form of `AthenaIntegration`.""" + + integration_result_s3_destination_arn: Required[str] + """ + The location in Amazon S3 to store the generated CloudFormation + template. + """ + partition_load_frequency: Required[str] + """The schedule for adding new partitions to the table.""" + partition_start_date: datetime | None + """The start date for the partition.""" + partition_end_date: datetime | None + """The end date for the partition.""" + @dataclass(kw_only=True) class AttachClassicLinkVpcInput(_SerdeShape): """Dataclass for AttachClassicLinkVpcInput structure.""" @@ -2937,6 +4119,26 @@ class AttachClassicLinkVpcInput(_SerdeShape): a different VPC. """ +class AttachClassicLinkVpcInputDict(TypedDict, total=False): + """Dictionary form of `AttachClassicLinkVpcInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the EC2-Classic instance.""" + vpc_id: Required[str] + """The ID of the ClassicLink-enabled VPC.""" + groups: Required[Sequence[str]] + """ + The IDs of the security groups. You cannot specify security groups from + a different VPC. + """ + @dataclass(kw_only=True) class AttachClassicLinkVpcOutput(_SerdeShape): """Dataclass for AttachClassicLinkVpcOutput structure.""" @@ -2974,6 +4176,28 @@ class AttachImageWatermarkInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AttachImageWatermarkInputDict(TypedDict, total=False): + """Dictionary form of `AttachImageWatermarkInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + watermark_name: Required[str] + """ + The name for the watermark. Combined with the caller's account ID to + form the `WatermarkKey` (`accountId:watermarkName`). + + Constraints: 3-128 alphanumeric characters, parentheses (()), square + brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), + single quotes ('), at-signs (@), or underscores(_) + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AttachImageWatermarkOutput(_SerdeShape): """Dataclass for AttachImageWatermarkOutput structure.""" @@ -3007,6 +4231,21 @@ class AttachInternetGatewayInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class AttachInternetGatewayInputDict(TypedDict, total=False): + """Dictionary form of `AttachInternetGatewayInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + internet_gateway_id: Required[str] + """The ID of the internet gateway.""" + vpc_id: Required[str] + """The ID of the VPC.""" + @dataclass(kw_only=True) class AttachInternetGatewayOutput(_SerdeShape): """Dataclass for AttachInternetGatewayOutput structure.""" @@ -3101,6 +4340,36 @@ class AttachNetworkInterfaceInput(_SerdeShape): device_index: int | None = ... """The index of the device for the network interface attachment.""" +class AttachNetworkInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `AttachNetworkInterfaceInput`.""" + + network_card_index: int | None + """ + The index of the network card. Some instance types support multiple + network cards. The primary network interface must be assigned to network + card index 0. The default is network card index 0. + """ + ena_srd_specification: EnaSrdSpecification | EnaSrdSpecificationDict | None + """ + Configures ENA Express for the network interface that this action + attaches to the instance. + """ + ena_queue_count: int | None + """The number of ENA queues to be created with the instance.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_id: Required[str] + """The ID of the network interface.""" + instance_id: Required[str] + """The ID of the instance.""" + device_index: Required[int] + """The index of the device for the network interface attachment.""" + @dataclass(kw_only=True) class AttachNetworkInterfaceOutput(_SerdeShape): """Contains the output of AttachNetworkInterface.""" @@ -3141,6 +4410,29 @@ class AttachVerifiedAccessTrustProviderInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AttachVerifiedAccessTrustProviderInputDict(TypedDict, total=False): + """Dictionary form of `AttachVerifiedAccessTrustProviderInput`.""" + + verified_access_instance_id: Required[str] + """The ID of the Verified Access instance.""" + verified_access_trust_provider_id: Required[str] + """The ID of the Verified Access trust provider.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AttachVerifiedAccessTrustProviderOutput(_SerdeShape): """Dataclass for AttachVerifiedAccessTrustProviderOutput structure.""" @@ -3183,6 +4475,31 @@ class AttachVolumeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AttachVolumeInputDict(TypedDict, total=False): + """Dictionary form of `AttachVolumeInput`.""" + + device: Required[str] + """The device name (for example, `/dev/sdh` or `xvdh`).""" + instance_id: Required[str] + """The ID of the instance.""" + volume_id: Required[str] + """ + The ID of the EBS volume. The volume and instance must be within the + same Availability Zone. + """ + ebs_card_index: int | None + """ + The index of the EBS card. Some instance types support multiple EBS + cards. The default EBS card index is 0. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AttachVolumeOutput(_SerdeShape): """Describes volume attachment details.""" @@ -3251,6 +4568,21 @@ class AttachVpnGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AttachVpnGatewayInputDict(TypedDict, total=False): + """Dictionary form of `AttachVpnGatewayInput`.""" + + vpc_id: Required[str] + """The ID of the VPC.""" + vpn_gateway_id: Required[str] + """The ID of the virtual private gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AttachVpnGatewayOutput(_SerdeShape): """Contains the output of AttachVpnGateway.""" @@ -3272,6 +4604,12 @@ class AttributeBooleanValue(_SerdeShape): value: bool | None = ... """The attribute value. The valid values are `true` or `false`.""" +class AttributeBooleanValueDict(TypedDict, total=False): + """Dictionary form of `AttributeBooleanValue`.""" + + value: bool | None + """The attribute value. The valid values are `true` or `false`.""" + @dataclass(kw_only=True) class AttributeSummary(_SerdeShape): """A summary report for the attribute across all Regions.""" @@ -3303,6 +4641,12 @@ class AttributeValue(_SerdeShape): value: str | None = ... """The attribute value. The value is case-sensitive.""" +class AttributeValueDict(TypedDict, total=False): + """Dictionary form of `AttributeValue`.""" + + value: str | None + """The attribute value. The value is case-sensitive.""" + @dataclass(kw_only=True) class AuthorizationRule(_SerdeShape): """Information about an authorization rule.""" @@ -3370,6 +4714,46 @@ class AuthorizeClientVpnIngressInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class AuthorizeClientVpnIngressInputDict(TypedDict, total=False): + """Dictionary form of `AuthorizeClientVpnIngressInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + target_network_cidr: Required[str] + """ + The IPv4 address range, in CIDR notation, of the network for which + access is being authorized. + """ + access_group_id: str | None + """ + The ID of the group to grant access to, for example, the Active + Directory group or identity provider (IdP) group. Required if + `AuthorizeAllGroups` is `false` or not specified. + """ + authorize_all_groups: bool | None + """ + Indicates whether to grant access to all clients. Specify `true` to + grant all clients who successfully establish a VPN connection access to + the network. Must be set to `true` if `AccessGroupId` is not specified. + """ + description: str | None + """A brief description of the authorization rule.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class AuthorizeClientVpnIngressOutput(_SerdeShape): """Dataclass for AuthorizeClientVpnIngressOutput structure.""" @@ -3414,6 +4798,35 @@ class AuthorizeSecurityGroupEgressInput(_SerdeShape): ip_permissions: list[IpPermission] | None = ... """The permissions for the security group rules.""" +class AuthorizeSecurityGroupEgressInputDict(TypedDict, total=False): + """Dictionary form of `AuthorizeSecurityGroupEgressInput`.""" + + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags applied to the security group rule.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + group_id: Required[str] + """The ID of the security group.""" + source_security_group_name: str | None + """Not supported. Use IP permissions instead.""" + source_security_group_owner_id: str | None + """Not supported. Use IP permissions instead.""" + ip_protocol: str | None + """Not supported. Use IP permissions instead.""" + from_port: int | None + """Not supported. Use IP permissions instead.""" + to_port: int | None + """Not supported. Use IP permissions instead.""" + cidr_ip: str | None + """Not supported. Use IP permissions instead.""" + ip_permissions: Sequence[IpPermission | IpPermissionDict] | None + """The permissions for the security group rules.""" + @dataclass(kw_only=True) class AuthorizeSecurityGroupEgressOutput(_SerdeShape): """Dataclass for AuthorizeSecurityGroupEgressOutput structure.""" @@ -3437,7 +4850,101 @@ class AuthorizeSecurityGroupEgressOutput(_SerdeShape): class AuthorizeSecurityGroupIngressInput(_SerdeShape): """Dataclass for AuthorizeSecurityGroupIngressInput structure.""" - cidr_ip: str | None = ... + cidr_ip: str | None = ... + """ + The IPv4 address range, in CIDR format. + + Note: + Amazon Web Services + [canonicalizes](https://en.wikipedia.org/wiki/Canonicalization) IPv4 and + IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR + block, Amazon Web Services canonicalizes the CIDR block to + 100.68.0.0/18. Any subsequent DescribeSecurityGroups and + DescribeSecurityGroupRules calls will return the canonicalized form of + the CIDR block. Additionally, if you attempt to add another rule with + the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is + already a rule for the canonicalized form of the CIDR block (such as + 100.68.0.0/18), the API throws an duplicate rule error. + + To specify an IPv6 address range, use IP permissions instead. + + To specify multiple rules and descriptions for the rules, use IP + permissions instead. + """ + from_port: int | None = ... + """ + If the protocol is TCP or UDP, this is the start of the port range. If + the protocol is ICMP, this is the ICMP type or -1 (all ICMP types). + + To specify multiple rules and descriptions for the rules, use IP + permissions instead. + """ + group_id: str | None = ... + """The ID of the security group.""" + group_name: str | None = ... + """ + [Default VPC] The name of the security group. For security groups for + a default VPC you can specify either the ID or the name of the security + group. For security groups for a nondefault VPC, you must specify the ID + of the security group. + """ + ip_permissions: list[IpPermission] | None = ... + """The permissions for the security group rules.""" + ip_protocol: str | None = ... + """ + The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol + Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + To specify all protocols, use `-1`. + + To specify `icmpv6`, use IP permissions instead. + + If you specify a protocol other than one of the supported values, + traffic is allowed on all ports, regardless of any ports that you + specify. + + To specify multiple rules and descriptions for the rules, use IP + permissions instead. + """ + source_security_group_name: str | None = ... + """ + [Default VPC] The name of the source security group. + + The rule grants full ICMP, UDP, and TCP access. To create a rule with a + specific protocol and port range, specify a set of IP permissions + instead. + """ + source_security_group_owner_id: str | None = ... + """ + The Amazon Web Services account ID for the source security group, if the + source security group is in a different account. + + The rule grants full ICMP, UDP, and TCP access. To create a rule with a + specific protocol and port range, use IP permissions instead. + """ + to_port: int | None = ... + """ + If the protocol is TCP or UDP, this is the end of the port range. If the + protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). If the + start port is -1 (all ICMP types), then the end port must be -1 (all + ICMP codes). + + To specify multiple rules and descriptions for the rules, use IP + permissions instead. + """ + tag_specifications: list[TagSpecification] | None = ... + """The tags applied to the security group rule.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class AuthorizeSecurityGroupIngressInputDict(TypedDict, total=False): + """Dictionary form of `AuthorizeSecurityGroupIngressInput`.""" + + cidr_ip: str | None """ The IPv4 address range, in CIDR format. @@ -3458,7 +4965,7 @@ class AuthorizeSecurityGroupIngressInput(_SerdeShape): To specify multiple rules and descriptions for the rules, use IP permissions instead. """ - from_port: int | None = ... + from_port: int | None """ If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types). @@ -3466,18 +4973,18 @@ class AuthorizeSecurityGroupIngressInput(_SerdeShape): To specify multiple rules and descriptions for the rules, use IP permissions instead. """ - group_id: str | None = ... + group_id: str | None """The ID of the security group.""" - group_name: str | None = ... + group_name: str | None """ [Default VPC] The name of the security group. For security groups for a default VPC you can specify either the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the ID of the security group. """ - ip_permissions: list[IpPermission] | None = ... + ip_permissions: Sequence[IpPermission | IpPermissionDict] | None """The permissions for the security group rules.""" - ip_protocol: str | None = ... + ip_protocol: str | None """ The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). @@ -3492,7 +4999,7 @@ class AuthorizeSecurityGroupIngressInput(_SerdeShape): To specify multiple rules and descriptions for the rules, use IP permissions instead. """ - source_security_group_name: str | None = ... + source_security_group_name: str | None """ [Default VPC] The name of the source security group. @@ -3500,7 +5007,7 @@ class AuthorizeSecurityGroupIngressInput(_SerdeShape): specific protocol and port range, specify a set of IP permissions instead. """ - source_security_group_owner_id: str | None = ... + source_security_group_owner_id: str | None """ The Amazon Web Services account ID for the source security group, if the source security group is in a different account. @@ -3508,7 +5015,7 @@ class AuthorizeSecurityGroupIngressInput(_SerdeShape): The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead. """ - to_port: int | None = ... + to_port: int | None """ If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). If the @@ -3518,9 +5025,9 @@ class AuthorizeSecurityGroupIngressInput(_SerdeShape): To specify multiple rules and descriptions for the rules, use IP permissions instead. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """The tags applied to the security group rule.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -3688,6 +5195,38 @@ class AvailabilityZoneAddress(_SerdeShape): handling outbound NAT traffic in this specific Availability Zone. """ +class AvailabilityZoneAddressDict(TypedDict, total=False): + """Dictionary form of `AvailabilityZoneAddress`.""" + + availability_zone: str | None + """ + For regional NAT gateways only: The Availability Zone where this + specific NAT gateway configuration will be active. Each AZ in a regional + NAT gateway has its own configuration to handle outbound NAT traffic + from that AZ. + + A regional NAT gateway is a single NAT Gateway that works across + multiple availability zones (AZs) in your VPC, providing redundancy, + scalability and availability across all the AZs in a Region. + """ + availability_zone_id: str | None + """ + For regional NAT gateways only: The ID of the Availability Zone where + this specific NAT gateway configuration will be active. Each AZ in a + regional NAT gateway has its own configuration to handle outbound NAT + traffic from that AZ. Use this instead of AvailabilityZone for + consistent identification of AZs across Amazon Web Services Regions. + + A regional NAT gateway is a single NAT Gateway that works across + multiple availability zones (AZs) in your VPC, providing redundancy, + scalability and availability across all the AZs in a Region. + """ + allocation_ids: Sequence[str] | None + """ + The allocation IDs of the Elastic IP addresses (EIPs) to be used for + handling outbound NAT traffic in this specific Availability Zone. + """ + @dataclass(kw_only=True) class AvailabilityZoneGeography(_SerdeShape): """ @@ -3780,6 +5319,20 @@ class BaselineEbsBandwidthMbps(_SerdeShape): specified, there is no maximum limit. """ +class BaselineEbsBandwidthMbpsDict(TypedDict, total=False): + """Dictionary form of `BaselineEbsBandwidthMbps`.""" + + min: int | None + """ + The minimum baseline bandwidth, in Mbps. If this parameter is not + specified, there is no minimum limit. + """ + max: int | None + """ + The maximum baseline bandwidth, in Mbps. If this parameter is not + specified, there is no maximum limit. + """ + @dataclass(kw_only=True) class BaselineEbsBandwidthMbpsRequest(_SerdeShape): """ @@ -3800,6 +5353,20 @@ class BaselineEbsBandwidthMbpsRequest(_SerdeShape): omit this parameter. """ +class BaselineEbsBandwidthMbpsRequestDict(TypedDict, total=False): + """Dictionary form of `BaselineEbsBandwidthMbpsRequest`.""" + + min: int | None + """ + The minimum baseline bandwidth, in Mbps. To specify no minimum limit, + omit this parameter. + """ + max: int | None + """ + The maximum baseline bandwidth, in Mbps. To specify no maximum limit, + omit this parameter. + """ + @dataclass(kw_only=True) class BaselinePerformanceFactors(_SerdeShape): """ @@ -3820,6 +5387,15 @@ class BaselinePerformanceFactors(_SerdeShape): baseline reference. """ +class BaselinePerformanceFactorsDict(TypedDict, total=False): + """Dictionary form of `BaselinePerformanceFactors`.""" + + cpu: CpuPerformanceFactor | CpuPerformanceFactorDict | None + """ + The CPU performance to consider, using an instance family as the + baseline reference. + """ + @dataclass(kw_only=True) class BaselinePerformanceFactorsRequest(_SerdeShape): """ @@ -3840,6 +5416,15 @@ class BaselinePerformanceFactorsRequest(_SerdeShape): baseline reference. """ +class BaselinePerformanceFactorsRequestDict(TypedDict, total=False): + """Dictionary form of `BaselinePerformanceFactorsRequest`.""" + + cpu: CpuPerformanceFactorRequest | CpuPerformanceFactorRequestDict | None + """ + The CPU performance to consider, using an instance family as the + baseline reference. + """ + @dataclass(kw_only=True) class BatchModifyIpamRoutingPolicyRegistrationsInput(_SerdeShape): """Dataclass for BatchModifyIpamRoutingPolicyRegistrationsInput structure.""" @@ -3870,6 +5455,35 @@ class BatchModifyIpamRoutingPolicyRegistrationsInput(_SerdeShape): This field is autopopulated if not provided. """ +class BatchModifyIpamRoutingPolicyRegistrationsInputDict(TypedDict, total=False): + """Dictionary form of `BatchModifyIpamRoutingPolicyRegistrationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + delta_json: Required[str] + """The batch modifications to apply, in JSON format.""" + force: bool | None + """ + Forces the batch modification even if individual changes conflict with + announced routes. Default: `false`. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, the operation ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class BatchModifyIpamRoutingPolicyRegistrationsOutput(_SerdeShape): """Dataclass for BatchModifyIpamRoutingPolicyRegistrationsOutput structure.""" @@ -3942,6 +5556,42 @@ class BlockDeviceMapping(_SerdeShape): device mapping for the AMI. """ +class BlockDeviceMappingDict(TypedDict, total=False): + """Dictionary form of `BlockDeviceMapping`.""" + + ebs: EbsBlockDevice | EbsBlockDeviceDict | None + """ + Parameters used to automatically set up EBS volumes when the instance is + launched. + """ + no_device: str | None + """ + To omit the device from the block device mapping, specify an empty + string. When this property is specified, the device is removed from the + block device mapping regardless of the assigned value. + """ + device_name: str | None + """ + The device name. For available device names, see [Device names for + volumes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html). + """ + virtual_name: str | None + """ + The virtual device name (`ephemeral`N). Instance store volumes are + numbered starting from 0. An instance type with 2 available instance + store volumes can specify mappings for `ephemeral0` and `ephemeral1`. + The number of available instance store volumes depends on the instance + type. After you connect to the instance, you must mount the volume. + + NVMe instance store volumes are automatically enumerated and assigned a + device name. Including them in your block device mapping has no effect. + + Constraints: For M3 instances, you must specify instance store volumes + in the block device mapping for the instance. When you launch an M3 + instance, we ignore any instance store volumes specified in the block + device mapping for the AMI. + """ + @dataclass(kw_only=True) class BlockDeviceMappingResponse(_SerdeShape): """ @@ -4024,6 +5674,30 @@ class BundleInstanceInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class BundleInstanceInputDict(TypedDict, total=False): + """Dictionary form of `BundleInstanceInput`.""" + + instance_id: Required[str] + """ + The ID of the instance to bundle. + + Default: None + """ + storage: Required[Storage | StorageDict] + """ + The bucket in which to store the AMI. You can specify a bucket that you + already own or a new bucket that Amazon EC2 creates on your behalf. If + you specify a bucket that belongs to someone else, Amazon EC2 returns an + error. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class BundleInstanceOutput(_SerdeShape): """Contains the output of BundleInstance.""" @@ -4219,6 +5893,19 @@ class CancelBundleTaskInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CancelBundleTaskInputDict(TypedDict, total=False): + """Dictionary form of `CancelBundleTaskInput`.""" + + bundle_id: Required[str] + """The ID of the bundle task.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CancelBundleTaskOutput(_SerdeShape): """Contains the output of CancelBundleTask.""" @@ -4256,6 +5943,19 @@ class CancelCapacityReservationFleetsInput(_SerdeShape): capacity_reservation_fleet_ids: list[str] | None = ... """The IDs of the Capacity Reservation Fleets to cancel.""" +class CancelCapacityReservationFleetsInputDict(TypedDict, total=False): + """Dictionary form of `CancelCapacityReservationFleetsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + capacity_reservation_fleet_ids: Required[Sequence[str]] + """The IDs of the Capacity Reservation Fleets to cancel.""" + @dataclass(kw_only=True) class CancelCapacityReservationFleetsOutput(_SerdeShape): """Dataclass for CancelCapacityReservationFleetsOutput structure.""" @@ -4310,6 +6010,33 @@ class CancelCapacityReservationInput(_SerdeShape): quote must be in an `active` state. """ +class CancelCapacityReservationInputDict(TypedDict, total=False): + """Dictionary form of `CancelCapacityReservationInput`.""" + + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation to be cancelled.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + apply_cancellation_charges: str | None + """ + Specifies the cancellation charge type to apply when cancelling a + future-dated Capacity Reservation during its commitment duration. + Possible values include `commitment-wind-down`, which continues billing + for the remaining commitment duration without delivering capacity. + """ + quote_id: str | None + """ + The ID of the cancellation quote to use for the cancellation. You can + generate a cancellation quote by using the + `CreateCapacityReservationCancellationQuote` action. The cancellation + quote must be in an `active` state. + """ + @dataclass(kw_only=True) class CancelCapacityReservationOutput(_SerdeShape): """Dataclass for CancelCapacityReservationOutput structure.""" @@ -4340,6 +6067,21 @@ class CancelConversionTaskInput(_SerdeShape): reason_message: str | None = ... """The reason for canceling the conversion task.""" +class CancelConversionTaskInputDict(TypedDict, total=False): + """Dictionary form of `CancelConversionTaskInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + conversion_task_id: Required[str] + """The ID of the conversion task.""" + reason_message: str | None + """The reason for canceling the conversion task.""" + @dataclass(kw_only=True) class CancelConversionTaskOutput(_SerdeShape): """Dataclass for CancelConversionTaskOutput structure.""" @@ -4366,6 +6108,19 @@ class CancelDeclarativePoliciesReportInput(_SerdeShape): report_id: str | None = ... """The ID of the report.""" +class CancelDeclarativePoliciesReportInputDict(TypedDict, total=False): + """Dictionary form of `CancelDeclarativePoliciesReportInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + report_id: Required[str] + """The ID of the report.""" + @dataclass(kw_only=True) class CancelDeclarativePoliciesReportOutput(_SerdeShape): """Dataclass for CancelDeclarativePoliciesReportOutput structure.""" @@ -4390,6 +6145,15 @@ class CancelExportTaskInput(_SerdeShape): `CreateInstanceExportTask` and `ExportImage` operations. """ +class CancelExportTaskInputDict(TypedDict, total=False): + """Dictionary form of `CancelExportTaskInput`.""" + + export_task_id: Required[str] + """ + The ID of the export task. This is the ID returned by the + `CreateInstanceExportTask` and `ExportImage` operations. + """ + @dataclass(kw_only=True) class CancelExportTaskOutput(_SerdeShape): """Dataclass for CancelExportTaskOutput structure.""" @@ -4416,6 +6180,19 @@ class CancelImageLaunchPermissionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CancelImageLaunchPermissionInputDict(TypedDict, total=False): + """Dictionary form of `CancelImageLaunchPermissionInput`.""" + + image_id: Required[str] + """The ID of the AMI that was shared with your Amazon Web Services account.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CancelImageLaunchPermissionOutput(_SerdeShape): """Dataclass for CancelImageLaunchPermissionOutput structure.""" @@ -4446,6 +6223,21 @@ class CancelImportTaskInput(_SerdeShape): import_task_id: str | None = ... """The ID of the import image or import snapshot task to be canceled.""" +class CancelImportTaskInputDict(TypedDict, total=False): + """Dictionary form of `CancelImportTaskInput`.""" + + cancel_reason: str | None + """The reason for canceling the task.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + import_task_id: str | None + """The ID of the import image or import snapshot task to be canceled.""" + @dataclass(kw_only=True) class CancelImportTaskOutput(_SerdeShape): """Dataclass for CancelImportTaskOutput structure.""" @@ -4504,6 +6296,12 @@ class CancelReservedInstancesListingInput(_SerdeShape): reserved_instances_listing_id: str | None = ... """The ID of the Reserved Instance listing.""" +class CancelReservedInstancesListingInputDict(TypedDict, total=False): + """Dictionary form of `CancelReservedInstancesListingInput`.""" + + reserved_instances_listing_id: Required[str] + """The ID of the Reserved Instance listing.""" + @dataclass(kw_only=True) class CancelReservedInstancesListingOutput(_SerdeShape): """Contains the output of CancelReservedInstancesListing.""" @@ -4562,6 +6360,31 @@ class CancelSpotFleetRequestsInput(_SerdeShape): canceled, specify `no-terminate-instances`. """ +class CancelSpotFleetRequestsInputDict(TypedDict, total=False): + """Dictionary form of `CancelSpotFleetRequestsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + spot_fleet_request_ids: Required[Sequence[str]] + """ + The IDs of the Spot Fleet requests. + + Constraint: You can specify up to 100 IDs in a single request. + """ + terminate_instances: Required[bool] + """ + Indicates whether to terminate the associated instances when the Spot + Fleet request is canceled. The default is to terminate the instances. + + To let the instances continue to run after the Spot Fleet request is + canceled, specify `no-terminate-instances`. + """ + @dataclass(kw_only=True) class CancelSpotFleetRequestsOutput(_SerdeShape): """Contains the output of CancelSpotFleetRequests.""" @@ -4609,6 +6432,19 @@ class CancelSpotInstanceRequestsInput(_SerdeShape): spot_instance_request_ids: list[str] | None = ... """The IDs of the Spot Instance requests.""" +class CancelSpotInstanceRequestsInputDict(TypedDict, total=False): + """Dictionary form of `CancelSpotInstanceRequestsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + spot_instance_request_ids: Required[Sequence[str]] + """The IDs of the Spot Instance requests.""" + @dataclass(kw_only=True) class CancelSpotInstanceRequestsOutput(_SerdeShape): """Contains the output of CancelSpotInstanceRequests.""" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_1.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_01.pyi similarity index 64% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_1.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_01.pyi index 6567380dc..9dffa31bf 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_1.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_01.pyi @@ -1,48 +1,69 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin from ..models import ( AccessScopePathRequest, + AccessScopePathRequestDict, AddIpamOperatingRegion, + AddIpamOperatingRegionDict, AddPrefixListEntry, + AddPrefixListEntryDict, ApplicationStatusCheckResponseObject, AssociatedTargetNetwork, AvailabilityZoneAddress, + AvailabilityZoneAddressDict, BlockDeviceMapping, + BlockDeviceMappingDict, CancellationTerms, CustomerGateway, DestinationOptionsRequest, + DestinationOptionsRequestDict, DevicePostureOptions, + DevicePostureOptionsDict, DevicePostureResponseOptions, DhcpOptions, DimensionCondition, + DimensionConditionDict, DirectoryServiceAuthentication, DirectoryServiceAuthenticationRequest, + DirectoryServiceAuthenticationRequestDict, Ec2InstanceConnectEndpoint, EgressOnlyInternetGateway, ExportTask, ExportToS3TaskSpecification, + ExportToS3TaskSpecificationDict, ExternalAuthorityConfiguration, + ExternalAuthorityConfigurationDict, FederatedAuthentication, FederatedAuthenticationRequest, + FederatedAuthenticationRequestDict, FleetCapacityReservation, FleetLaunchTemplateConfigRequest, + FleetLaunchTemplateConfigRequestDict, GroupIdentifier, HealthCheckPathRequestObject, + HealthCheckPathRequestObjectDict, IcmpTypeCode, + IcmpTypeCodeDict, ImageUsageResourceTypeRequest, + ImageUsageResourceTypeRequestDict, ImportInstanceTaskDetails, ImportVolumeTaskDetails, InstanceEventWindow, InstanceEventWindowTimeRangeRequest, + InstanceEventWindowTimeRangeRequestDict, InstanceIpv6Address, + InstanceIpv6AddressDict, InstanceRequirementsRequest, + InstanceRequirementsRequestDict, InternetGateway, InterruptibleCapacityAllocation, InterruptionInfo, @@ -52,14 +73,18 @@ from ..models import ( IpamPolicy, IpamPool, IpamPoolSourceResourceRequest, + IpamPoolSourceResourceRequestDict, IpamPrefixListResolver, IpamPrefixListResolverRuleRequest, + IpamPrefixListResolverRuleRequestDict, IpamPrefixListResolverTarget, IpamResourceDiscovery, IpamRoutingPolicyRegistrationDelta, IpamScope, Ipv4PrefixSpecificationRequest, + Ipv4PrefixSpecificationRequestDict, Ipv6PrefixSpecificationRequest, + Ipv6PrefixSpecificationRequestDict, LaunchTemplate, LaunchTemplateAndOverridesResponse, LaunchTemplateVersion, @@ -71,6 +96,7 @@ from ..models import ( LocalGatewayVirtualInterfaceGroup, MacModificationTask, MacSystemIntegrityProtectionConfigurationRequest, + MacSystemIntegrityProtectionConfigurationRequestDict, ManagedPrefixList, ModificationQuoteCurrentConfiguration, ModificationTerms, @@ -82,30 +108,49 @@ from ..models import ( NetworkInterface, NetworkInterfacePermission, NewDhcpConfiguration, + NewDhcpConfigurationDict, OnDemandOptionsRequest, + OnDemandOptionsRequestDict, OperatorRequest, + OperatorRequestDict, PathRequestFilter, + PathRequestFilterDict, PerformanceFactorReference, + PerformanceFactorReferenceDict, PerformanceFactorReferenceRequest, + PerformanceFactorReferenceRequestDict, PlacementGroup, PortRange, + PortRangeDict, PriceScheduleSpecification, + PriceScheduleSpecificationDict, PrivateIpAddressSpecification, + PrivateIpAddressSpecificationDict, ReplaceRootVolumeTask, RequestIpamResourceTag, + RequestIpamResourceTagDict, RequestLaunchTemplateData, + RequestLaunchTemplateDataDict, ReservationFleetInstanceSpecification, + ReservationFleetInstanceSpecificationDict, ReservedCapacityOptionsRequest, + ReservedCapacityOptionsRequestDict, ReservedInstancesListing, SpotOptionsRequest, + SpotOptionsRequestDict, StorageLocation, + StorageLocationDict, Subnet, Tag, TagFieldSpecificationRequest, + TagFieldSpecificationRequestDict, TagSpecification, + TagSpecificationDict, TargetCapacitySpecificationRequest, + TargetCapacitySpecificationRequestDict, TransitGatewayConfigurationDescribeEndpointStructure, TransitGatewayConfigurationInputStructure, + TransitGatewayConfigurationInputStructureDict, UnsuccessfulItem, ValidationWarning, Volume, @@ -408,6 +453,15 @@ class CapacityManagerCondition(_SerdeShape): based on dimension values. """ +class CapacityManagerConditionDict(TypedDict, total=False): + """Dictionary form of `CapacityManagerCondition`.""" + + dimension_condition: DimensionCondition | DimensionConditionDict | None + """ + The dimension-based condition that specifies how to filter the data + based on dimension values. + """ + @dataclass(kw_only=True) class CapacityManagerDataExportResponse(_SerdeShape): """ @@ -1317,6 +1371,27 @@ class CapacityReservationOptionsRequest(_SerdeShape): according to the chosen On-Demand allocation strategy. """ +class CapacityReservationOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `CapacityReservationOptionsRequest`.""" + + usage_strategy: str | None + """ + Indicates whether to use unused Capacity Reservations for fulfilling + On-Demand capacity. + + If you specify `use-capacity-reservations-first`, the fleet uses unused + Capacity Reservations to fulfill On-Demand capacity up to the target + On-Demand capacity. If multiple instance pools have unused Capacity + Reservations, the On-Demand allocation strategy (`lowest-price` or + `prioritized`) is applied. If the number of unused Capacity Reservations + is less than the On-Demand target capacity, the remaining On-Demand + target capacity is launched according to the On-Demand allocation + strategy (`lowest-price` or `prioritized`). + + If you do not specify a value, the fleet fulfils the On-Demand capacity + according to the chosen On-Demand allocation strategy. + """ + class CapacityReservationPreference(UnknownEnumMixin, StrEnum): CAPACITY_RESERVATIONS_ONLY = "capacity-reservations-only" OPEN = "open" @@ -1362,6 +1437,34 @@ class CapacityReservationSpecification(_SerdeShape): Reservation group. """ +class CapacityReservationSpecificationDict(TypedDict, total=False): + """Dictionary form of `CapacityReservationSpecification`.""" + + capacity_reservation_preference: str | None + """ + Indicates the instance's Capacity Reservation preferences. Possible + preferences include: + + - `capacity-reservations-only` - The instance will only run in a + Capacity Reservation or Capacity Reservation group. If capacity isn't + available, the instance will fail to launch. + + - `open` - The instance can run in any `open` Capacity Reservation that + has matching attributes (instance type, platform, Availability Zone, + and tenancy). If capacity isn't available, the instance runs as an + On-Demand Instance. + + - `none` - The instance doesn't run in a Capacity Reservation even if + one is available. The instance runs as an On-Demand Instance. + """ + capacity_reservation_target: ( + CapacityReservationTarget | CapacityReservationTargetDict | None + ) + """ + Information about the target Capacity Reservation or Capacity + Reservation group. + """ + @dataclass(kw_only=True) class CapacityReservationSpecificationResponse(_SerdeShape): """ @@ -1441,6 +1544,17 @@ class CapacityReservationTarget(_SerdeShape): instance. """ +class CapacityReservationTargetDict(TypedDict, total=False): + """Dictionary form of `CapacityReservationTarget`.""" + + capacity_reservation_id: str | None + """The ID of the Capacity Reservation in which to run the instance.""" + capacity_reservation_resource_group_arn: str | None + """ + The ARN of the Capacity Reservation resource group in which to run the + instance. + """ + @dataclass(kw_only=True) class CapacityReservationTargetResponse(_SerdeShape): """Describes a target Capacity Reservation or Capacity Reservation group.""" @@ -1551,6 +1665,16 @@ class CertificateAuthenticationRequest(_SerdeShape): Manager (ACM). """ +class CertificateAuthenticationRequestDict(TypedDict, total=False): + """Dictionary form of `CertificateAuthenticationRequest`.""" + + client_root_certificate_chain_arn: str | None + """ + The ARN of the client certificate. The certificate must be signed by a + certificate authority (CA) and it must be provisioned in Certificate + Manager (ACM). + """ + class ChronologicalOrder(UnknownEnumMixin, StrEnum): """The chronological order for returning results.""" @@ -1573,6 +1697,14 @@ class CidrAuthorizationContext(_SerdeShape): signature: str | None = ... """The signed authorization message for the prefix and account.""" +class CidrAuthorizationContextDict(TypedDict, total=False): + """Dictionary form of `CidrAuthorizationContext`.""" + + message: Required[str] + """The plain-text authorization message for the prefix and account.""" + signature: Required[str] + """The signed authorization message for the prefix and account.""" + @dataclass(kw_only=True) class CidrBlock(_SerdeShape): """Describes an IPv4 CIDR block.""" @@ -1619,6 +1751,12 @@ class ClassicLoadBalancer(_SerdeShape): name: str | None = ... """The name of the load balancer.""" +class ClassicLoadBalancerDict(TypedDict, total=False): + """Dictionary form of `ClassicLoadBalancer`.""" + + name: str | None + """The name of the load balancer.""" + @dataclass(kw_only=True) class ClassicLoadBalancersConfig(_SerdeShape): """ @@ -1630,6 +1768,14 @@ class ClassicLoadBalancersConfig(_SerdeShape): classic_load_balancers: list[ClassicLoadBalancer] | None = ... """One or more Classic Load Balancers.""" +class ClassicLoadBalancersConfigDict(TypedDict, total=False): + """Dictionary form of `ClassicLoadBalancersConfig`.""" + + classic_load_balancers: ( + Sequence[ClassicLoadBalancer | ClassicLoadBalancerDict] | None + ) + """One or more Classic Load Balancers.""" + @dataclass(kw_only=True) class ClientCertificateRevocationListStatus(_SerdeShape): """Describes the state of a client certificate revocation list.""" @@ -1664,6 +1810,20 @@ class ClientConnectOptions(_SerdeShape): connection authorization. """ +class ClientConnectOptionsDict(TypedDict, total=False): + """Dictionary form of `ClientConnectOptions`.""" + + enabled: bool | None + """ + Indicates whether client connect options are enabled. The default is + `false` (not enabled). + """ + lambda_function_arn: str | None + """ + The Amazon Resource Name (ARN) of the Lambda function used for + connection authorization. + """ + @dataclass(kw_only=True) class ClientConnectResponseOptions(_SerdeShape): """ @@ -1694,6 +1854,18 @@ class ClientData(_SerdeShape): upload_start: datetime | None = ... """The time that the disk upload starts.""" +class ClientDataDict(TypedDict, total=False): + """Dictionary form of `ClientData`.""" + + comment: str | None + """A user-defined comment about the disk upload.""" + upload_end: datetime | None + """The time that the disk upload ends.""" + upload_size: float | None + """The size of the uploaded disk image, in GiB.""" + upload_start: datetime | None + """The time that the disk upload starts.""" + @dataclass(kw_only=True) class ClientLoginBannerOptions(_SerdeShape): """ @@ -1718,6 +1890,25 @@ class ClientLoginBannerOptions(_SerdeShape): encoded characters only. Maximum of 1400 characters. """ +class ClientLoginBannerOptionsDict(TypedDict, total=False): + """Dictionary form of `ClientLoginBannerOptions`.""" + + enabled: bool | None + """ + Enable or disable a customizable text banner that will be displayed on + Amazon Web Services provided clients when a VPN session is established. + + Valid values: `true | false` + + Default value: `false` + """ + banner_text: str | None + """ + Customizable text that will be displayed in a banner on Amazon Web + Services provided clients when a VPN session is established. UTF-8 + encoded characters only. Maximum of 1400 characters. + """ + @dataclass(kw_only=True) class ClientLoginBannerResponseOptions(_SerdeShape): """ @@ -1765,6 +1956,19 @@ class ClientRouteEnforcementOptions(_SerdeShape): Default value: `false` """ +class ClientRouteEnforcementOptionsDict(TypedDict, total=False): + """Dictionary form of `ClientRouteEnforcementOptions`.""" + + enforced: bool | None + """ + Enable or disable Client Route Enforcement. The state can either be + `true` (enabled) or `false` (disabled). The default is `false`. + + Valid values: `true | false` + + Default value: `false` + """ + @dataclass(kw_only=True) class ClientRouteEnforcementResponseOptions(_SerdeShape): """The current status of Client Route Enforcement.""" @@ -1827,6 +2031,38 @@ class ClientVpnAuthenticationRequest(_SerdeShape): `federated-authentication`. """ +class ClientVpnAuthenticationRequestDict(TypedDict, total=False): + """Dictionary form of `ClientVpnAuthenticationRequest`.""" + + type: str | None + """The type of client authentication to be used.""" + active_directory: ( + DirectoryServiceAuthenticationRequest + | DirectoryServiceAuthenticationRequestDict + | None + ) + """ + Information about the Active Directory to be used, if applicable. You + must provide this information if **Type** is + `directory-service-authentication`. + """ + mutual_authentication: ( + CertificateAuthenticationRequest | CertificateAuthenticationRequestDict | None + ) + """ + Information about the authentication certificates to be used, if + applicable. You must provide this information if **Type** is + `certificate-authentication`. + """ + federated_authentication: ( + FederatedAuthenticationRequest | FederatedAuthenticationRequestDict | None + ) + """ + Information about the IAM SAML identity provider to be used, if + applicable. You must provide this information if **Type** is + `federated-authentication`. + """ + class ClientVpnAuthenticationType(UnknownEnumMixin, StrEnum): CERTIFICATE_AUTHENTICATION = "certificate-authentication" DIRECTORY_SERVICE_AUTHENTICATION = "directory-service-authentication" @@ -2236,6 +2472,27 @@ class ClientVpnTrustProviderRequest(_SerdeShape): token issued by the device trust provider. """ +class ClientVpnTrustProviderRequestDict(TypedDict, total=False): + """Dictionary form of `ClientVpnTrustProviderRequest`.""" + + trust_provider_type: str | None + """ + The type of the device trust provider. Possible values include: + + - `crowdstrike` - CrowdStrike device trust provider. + + - `jamf` - Jamf device trust provider. + + - `jumpcloud` - JumpCloud device trust provider. + """ + tenant_id: str | None + """The tenant ID associated with your device trust provider account.""" + public_signing_key_url: str | None + """ + The URL of the public signing key that is used to verify the identity + token issued by the device trust provider. + """ + @dataclass(kw_only=True) class CloudWatchLogOptions(_SerdeShape): """Options for sending VPN tunnel logs to CloudWatch.""" @@ -2315,6 +2572,46 @@ class CloudWatchLogOptionsSpecification(_SerdeShape): Valid values: `json` | `text` """ +class CloudWatchLogOptionsSpecificationDict(TypedDict, total=False): + """Dictionary form of `CloudWatchLogOptionsSpecification`.""" + + log_enabled: bool | None + """ + Enable or disable VPN tunnel logging feature. Default value is `False`. + + Valid values: `True` | `False` + """ + log_group_arn: str | None + """ + The Amazon Resource Name (ARN) of the CloudWatch log group to send logs + to. + """ + log_output_format: str | None + """ + Set log format. Default format is `json`. + + Valid values: `json` | `text` + """ + bgp_log_enabled: bool | None + """ + Specifies whether to enable BGP logging for the VPN connection. Default + value is `False`. + + Valid values: `True` | `False` + """ + bgp_log_group_arn: str | None + """ + The Amazon Resource Name (ARN) of the CloudWatch log group where BGP + logs will be sent. + """ + bgp_log_output_format: str | None + """ + The desired output format for BGP logs to be sent to CloudWatch. Default + format is `json`. + + Valid values: `json` | `text` + """ + @dataclass(kw_only=True) class CoipAddressUsage(_SerdeShape): """Describes address usage for a customer-owned address pool.""" @@ -2374,6 +2671,21 @@ class ConfirmProductInstanceInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class ConfirmProductInstanceInputDict(TypedDict, total=False): + """Dictionary form of `ConfirmProductInstanceInput`.""" + + instance_id: Required[str] + """The ID of the instance.""" + product_code: Required[str] + """The product code. This must be a product code that you own.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ConfirmProductInstanceOutput(_SerdeShape): """Dataclass for ConfirmProductInstanceOutput structure.""" @@ -2422,6 +2734,27 @@ class ConnectionLogOptions(_SerdeShape): in the connection logs for the Client VPN endpoint. """ +class ConnectionLogOptionsDict(TypedDict, total=False): + """Dictionary form of `ConnectionLogOptions`.""" + + enabled: bool | None + """Indicates whether connection logging is enabled.""" + cloudwatch_log_group: str | None + """ + The name of the CloudWatch Logs log group. Required if connection + logging is enabled. + """ + cloudwatch_log_stream: str | None + """ + The name of the CloudWatch Logs log stream to which the connection data + is published. + """ + include_authorization_policy_context: bool | None + """ + Specifies whether to include the authorization policy evaluation context + in the connection logs for the Client VPN endpoint. + """ + @dataclass(kw_only=True) class ConnectionLogResponseOptions(_SerdeShape): """ @@ -2577,6 +2910,30 @@ class ConnectionTrackingSpecificationRequest(_SerdeShape): seconds. Max: 60 seconds. Default: 30 seconds. """ +class ConnectionTrackingSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `ConnectionTrackingSpecificationRequest`.""" + + tcp_established_timeout: int | None + """ + Timeout (in seconds) for idle TCP connections in an established state. + Min: 60 seconds. Max: 432000 seconds (5 days). Default: 350 seconds for + Nitro v6 instance types (excluding P6e-GB200); 432000 seconds for all + other instance types (including P6e-GB200). Recommended: Less than + 432000 seconds. + """ + udp_stream_timeout: int | None + """ + Timeout (in seconds) for idle UDP flows classified as streams which have + seen more than one request-response transaction. Min: 60 seconds. Max: + 180 seconds (3 minutes). Default: 180 seconds. + """ + udp_timeout: int | None + """ + Timeout (in seconds) for idle UDP flows that have seen traffic only in a + single direction or a single request-response transaction. Min: 30 + seconds. Max: 60 seconds. Default: 30 seconds. + """ + @dataclass(kw_only=True) class ConnectionTrackingSpecificationResponse(_SerdeShape): """ @@ -2675,6 +3032,31 @@ class CopyFpgaImageInput(_SerdeShape): idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). """ +class CopyFpgaImageInputDict(TypedDict, total=False): + """Dictionary form of `CopyFpgaImageInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + source_fpga_image_id: Required[str] + """The ID of the source AFI.""" + description: str | None + """The description for the new AFI.""" + name: str | None + """The name for the new AFI. The default is the name of the source AFI.""" + source_region: Required[str] + """The Region that contains the source AFI.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + """ + @dataclass(kw_only=True) class CopyFpgaImageOutput(_SerdeShape): """Dataclass for CopyFpgaImageOutput structure.""" @@ -2844,22 +3226,176 @@ class CopyImageInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class CopyImageOutput(_SerdeShape): - """Contains the output of CopyImage.""" +class CopyImageInputDict(TypedDict, total=False): + """Dictionary form of `CopyImageInput`.""" - image_id: str | None = ... - """The ID of the new AMI.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + client_token: str | None """ + Unique, case-sensitive identifier you provide to ensure idempotency of + the request. For more information, see [Ensuring idempotency in Amazon + EC2 API + requests](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html) + in the *Amazon EC2 API Reference*. -@dataclass(kw_only=True) -class CopySnapshotInput(_SerdeShape): + This field is autopopulated if not provided. + """ + description: str | None + """A description for the new AMI.""" + encrypted: bool | None + """ + Specifies whether to encrypt the snapshots of the copied image. + + You can encrypt a copy of an unencrypted snapshot, but you cannot create + an unencrypted copy of an encrypted snapshot. The default KMS key for + Amazon EBS is used unless you specify a non-default Key Management + Service (KMS) KMS key using `KmsKeyId`. For more information, see [Use + encryption with EBS-backed + AMIs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html) + in the *Amazon EC2 User Guide*. + """ + kms_key_id: str | None + """ + The identifier of the symmetric Key Management Service (KMS) KMS key to + use when creating encrypted volumes. If this parameter is not specified, + your Amazon Web Services managed KMS key for Amazon EBS is used. If you + specify a KMS key, you must also set the encrypted state to `true`. + + You can specify a KMS key using any of the following: + + - Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab. + + - Key alias. For example, alias/ExampleAlias. + + - Key ARN. For example, + arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab. + + - Alias ARN. For example, + arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. + + Amazon Web Services authenticates the KMS key asynchronously. Therefore, + if you specify an identifier that is not valid, the action can appear to + complete, but eventually fails. + + The specified KMS key must exist in the destination Region. + + Amazon EBS does not support asymmetric KMS keys. + """ + name: Required[str] + """The name of the new AMI.""" + source_image_id: Required[str] + """The ID of the AMI to copy.""" + source_region: Required[str] + """The name of the Region that contains the AMI to copy.""" + destination_outpost_arn: str | None + """ + The Amazon Resource Name (ARN) of the Outpost for the new AMI. + + Only specify this parameter when copying an AMI from an Amazon Web + Services Region to an Outpost. The AMI must be in the Region of the + destination Outpost. You can't copy an AMI from an Outpost to a Region, + from one Outpost to another, or within the same Outpost. + + For more information, see [Copy AMIs from an Amazon Web Services Region + to an + Outpost](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#copy-amis) + in the *Amazon EBS User Guide*. + + Only one of `DestinationAvailabilityZone`, + `DestinationAvailabilityZoneId`, or `DestinationOutpostArn` can be + specified. + """ + copy_image_tags: bool | None + """ + Specifies whether to copy your user-defined AMI tags to the new AMI. + + The following tags are not be copied: + + - System tags (prefixed with `aws:`) + + - For public and shared AMIs, user-defined tags that are attached by + other Amazon Web Services accounts, except tags with the + `ec2:SharedTag/` prefix. For more information about tag sharing, see + [Sharing + tags](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#sharing-tags) + in the *Amazon EC2 User Guide*. + + Default: Your user-defined AMI tags are not copied. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the new AMI and new snapshots. You can tag the AMI, + the snapshots, or both. + + - To tag the new AMI, the value for `ResourceType` must be `image`. + + - To tag the new snapshots, the value for `ResourceType` must be + `snapshot`. The same tag is applied to all the new snapshots. + + If you specify other values for `ResourceType`, the request fails. + + To tag an AMI or snapshot after it has been created, see + [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). + """ + snapshot_copy_completion_duration_minutes: int | None + """ + Specify a completion duration, in 15 minute increments, to initiate a + time-based AMI copy. The specified completion duration applies to each + of the snapshots associated with the AMI. Each snapshot associated with + the AMI will be completed within the specified completion duration, with + copy throughput automatically adjusted for each snapshot based on its + size to meet the timing target. + + If you do not specify a value, the AMI copy operation is completed on a + best-effort basis. + + Note: + This parameter is not supported when copying an AMI to or from a Local + Zone, or to an Outpost. + + For more information, see [Time-based copies for Amazon EBS snapshots + and EBS-backed + AMIs](https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html). + """ + destination_availability_zone: str | None + """ + The Local Zone for the new AMI (for example, `cn-north-1-pkx-1a`). + + Only one of `DestinationAvailabilityZone`, + `DestinationAvailabilityZoneId`, or `DestinationOutpostArn` can be + specified. + """ + destination_availability_zone_id: str | None + """ + The ID of the Local Zone for the new AMI (for example, `cnn1-pkx1-az1`). + + Only one of `DestinationAvailabilityZone`, + `DestinationAvailabilityZoneId`, or `DestinationOutpostArn` can be + specified. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class CopyImageOutput(_SerdeShape): + """Contains the output of CopyImage.""" + + image_id: str | None = ... + """The ID of the new AMI.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CopySnapshotInput(_SerdeShape): """Dataclass for CopySnapshotInput structure.""" description: str | None = ... @@ -2975,6 +3511,122 @@ class CopySnapshotInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CopySnapshotInputDict(TypedDict, total=False): + """Dictionary form of `CopySnapshotInput`.""" + + description: str | None + """A description for the EBS snapshot.""" + destination_outpost_arn: str | None + """ + The Amazon Resource Name (ARN) of the Outpost to which to copy the + snapshot. + + Note: + Only supported when copying a snapshot to an Outpost. + + For more information, see [Copy snapshots from an Amazon Web Services + Region to an + Outpost](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#copy-snapshots) + in the *Amazon EBS User Guide*. + """ + destination_region: str | None + """ + The destination Region to use in the `PresignedUrl` parameter of a + snapshot copy operation. This parameter is only valid for specifying the + destination Region in a `PresignedUrl` parameter, where it is required. + + The snapshot copy is sent to the regional endpoint that you sent the + HTTP request to (for example, `ec2.us-east-1.amazonaws.com`). With the + CLI, this is specified using the `--region` parameter or the default + Region in your Amazon Web Services configuration file. + """ + encrypted: bool | None + """ + To encrypt a copy of an unencrypted snapshot if encryption by default is + not enabled, enable encryption using this parameter. Otherwise, omit + this parameter. Copies of encrypted snapshots are encrypted, even if you + omit this parameter and encryption by default is not enabled. You cannot + set this parameter to false. For more information, see [Amazon EBS + encryption](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html) + in the *Amazon EBS User Guide*. + """ + kms_key_id: str | None + """ + The identifier of the KMS key to use for Amazon EBS encryption. If this + parameter is not specified, your KMS key for Amazon EBS is used. If + `KmsKeyId` is specified, the encrypted state must be `true`. + + You can specify the KMS key using any of the following: + + - Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab. + + - Key alias. For example, alias/ExampleAlias. + + - Key ARN. For example, + arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab. + + - Alias ARN. For example, + arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. + + Amazon Web Services authenticates the KMS key asynchronously. Therefore, + if you specify an ID, alias, or ARN that is not valid, the action can + appear to complete, but eventually fails. + """ + presigned_url: str | None + """ + When you copy an encrypted source snapshot using the Amazon EC2 Query + API, you must supply a pre-signed URL. This parameter is optional for + unencrypted snapshots. For more information, see [Query + requests](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html). + + The `PresignedUrl` should use the snapshot source endpoint, the + `CopySnapshot` action, and include the `SourceRegion`, + `SourceSnapshotId`, and `DestinationRegion` parameters. The + `PresignedUrl` must be signed using Amazon Web Services Signature + Version 4. Because EBS snapshots are stored in Amazon S3, the signing + algorithm for this parameter uses the same logic that is described in + [Authenticating Requests: Using Query Parameters (Amazon Web Services + Signature Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + in the *Amazon S3 API Reference*. An invalid or improperly signed + `PresignedUrl` will cause the copy operation to fail asynchronously, and + the snapshot will move to an `error` state. + """ + source_region: Required[str] + """The ID of the Region that contains the snapshot to be copied.""" + source_snapshot_id: Required[str] + """The ID of the EBS snapshot to copy.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the new snapshot.""" + completion_duration_minutes: int | None + """ + Note: + Not supported when copying snapshots to or from Local Zones or Outposts. + + Specify a completion duration, in 15 minute increments, to initiate a + time-based snapshot copy. Time-based snapshot copy operations complete + within the specified duration. For more information, see [Time-based + copies](https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html). + + If you do not specify a value, the snapshot copy operation is completed + on a best-effort basis. + """ + destination_availability_zone: str | None + """ + The Local Zone, for example, `cn-north-1-pkx-1a` to which to copy the + snapshot. + + Note: + Only supported when copying a snapshot to a Local Zone. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CopySnapshotOutput(_SerdeShape): """Dataclass for CopySnapshotOutput structure.""" @@ -3100,15 +3752,120 @@ class CopyVolumesInput(_SerdeShape): copies, this must be a KMS key in the calling account. """ -@dataclass(kw_only=True) -class CopyVolumesOutput(_SerdeShape): - """Dataclass for CopyVolumesOutput structure.""" +class CopyVolumesInputDict(TypedDict, total=False): + """Dictionary form of `CopyVolumesInput`.""" - volumes: list[Volume] | None = ... - """Information about the volume copy.""" - response_metadata: ResponseMetadata = ... + source_volume_id: Required[str] + """The ID of the source EBS volume to copy.""" + iops: int | None """ - Metadata about the response that produced this output. Use this to + The number of I/O operations per second (IOPS) to provision for the + volume copy. Required for `io1` and `io2` volumes. Optional for `gp3` + volumes. Omit for all other volume types. Full provisioned IOPS + performance can be achieved only once the volume copy is fully + initialized. + + Valid ranges: + + - gp3: `3,000 `(*default*)` - 80,000` IOPS + + - io1: `100 - 64,000` IOPS + + - io2: `100 - 256,000` IOPS + + Note: + [Instances built on the Nitro + System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) + can support up to 256,000 IOPS. Other instances can support up to 32,000 + IOPS. + """ + size: int | None + """ + The size of the volume copy, in GiBs. The size must be equal to or + greater than the size of the source volume. If not specified, the size + defaults to the size of the source volume. + + Maximum supported sizes: + + - gp2: `16,384` GiB + + - gp3: `65,536` GiB + + - io1: `16,384` GiB + + - io2: `65,536` GiB + + - st1 and sc1: `16,384` GiB + + - standard: `1024` GiB + """ + volume_type: str | None + """ + The volume type for the volume copy. If not specified, the volume type + defaults to `gp2`. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the volume copy during creation.""" + multi_attach_enabled: bool | None + """ + Indicates whether to enable Amazon EBS Multi-Attach for the volume copy. + If you enable Multi-Attach, you can attach the volume to up to 16 Nitro + instances in the same Availability Zone simultaneously. Supported with + `io1` and `io2` volumes only. For more information, see [Amazon EBS + Multi-Attach](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html). + """ + throughput: int | None + """ + The throughput to provision for the volume copy, in MiB/s. Supported for + `gp3` volumes only. Omit for all other volume types. Full provisioned + throughput performance can be achieved only once the volume copy is + fully initialized. + + Valid Range: `125 - 2000` MiB/s + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + encrypted: bool | None + """ + Indicates whether to encrypt the volume copy. If the source volume is + encrypted, the service always encrypts the copy regardless of this + value. Set to `true` to encrypt a copy of an unencrypted source volume + during the copy operation. If you set `Encrypted` to `true` but do not + specify `KmsKeyId`, the service uses the default KMS key for EBS + encryption in your account. + """ + kms_key_id: str | None + """ + The identifier of the KMS key to use for encryption of the volume copy. + Specify a symmetric encryption KMS key. You can specify a KMS key using + the key ID, key ARN, alias name, or alias ARN. If you set `Encrypted` to + `true` but do not specify this parameter, the service uses the default + KMS key for EBS encryption in your account. For cross-account volume + copies, this must be a KMS key in the calling account. + """ + +@dataclass(kw_only=True) +class CopyVolumesOutput(_SerdeShape): + """Dataclass for CopyVolumesOutput structure.""" + + volumes: list[Volume] | None = ... + """Information about the volume copy.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. @@ -3168,6 +3925,33 @@ class CpuOptionsRequest(_SerdeShape): disabled for the instance. """ +class CpuOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `CpuOptionsRequest`.""" + + core_count: int | None + """The number of CPU cores for the instance.""" + threads_per_core: int | None + """ + The number of threads per CPU core. To disable multithreading for the + instance, specify a value of `1`. Otherwise, specify the default value + of `2`. + """ + amd_sev_snp: str | None + """ + Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is + supported with M6a, R6a, and C6a instance types only. For more + information, see [AMD + SEV-SNP](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html). + """ + nested_virtualization: str | None + """ + Indicates whether to enable the instance for nested virtualization. + Nested virtualization is supported only on 8th generation Intel-based + instance types (c8i, m8i, r8i, and their flex variants). When nested + virtualization is enabled, Virtual Secure Mode (VSM) is automatically + disabled for the instance. + """ + @dataclass(kw_only=True) class CpuPerformanceFactor(_SerdeShape): """ @@ -3186,6 +3970,22 @@ class CpuPerformanceFactor(_SerdeShape): Currently, only one instance family can be specified in the list. """ +class CpuPerformanceFactorDict(TypedDict, total=False): + """Dictionary form of `CpuPerformanceFactor`.""" + + references: ( + Sequence[PerformanceFactorReference | PerformanceFactorReferenceDict] | None + ) + """ + Specify an instance family to use as the baseline reference for CPU + performance. All instance types that match your specified attributes + will be compared against the CPU performance of the referenced instance + family, regardless of CPU manufacturer or architecture differences. + + Note: + Currently, only one instance family can be specified in the list. + """ + @dataclass(kw_only=True) class CpuPerformanceFactorRequest(_SerdeShape): """ @@ -3204,6 +4004,25 @@ class CpuPerformanceFactorRequest(_SerdeShape): Currently, only one instance family can be specified in the list. """ +class CpuPerformanceFactorRequestDict(TypedDict, total=False): + """Dictionary form of `CpuPerformanceFactorRequest`.""" + + references: ( + Sequence[ + PerformanceFactorReferenceRequest | PerformanceFactorReferenceRequestDict + ] + | None + ) + """ + Specify an instance family to use as the baseline reference for CPU + performance. All instance types that match your specified attributes + will be compared against the CPU performance of the referenced instance + family, regardless of CPU manufacturer or architecture differences. + + Note: + Currently, only one instance family can be specified in the list. + """ + @dataclass(kw_only=True) class CreateApplicationStatusCheckInput(_SerdeShape): """Dataclass for CreateApplicationStatusCheckInput structure.""" @@ -3299,6 +4118,102 @@ class CreateApplicationStatusCheckInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class CreateApplicationStatusCheckInputDict(TypedDict, total=False): + """Dictionary form of `CreateApplicationStatusCheckInput`.""" + + health_check_paths: ( + Sequence[HealthCheckPathRequestObject | HealthCheckPathRequestObjectDict] | None + ) + """ + The health check paths to use for the application status check. Health + check paths define the network path from a source subnet to one or more + destination subnets for cross-Availability Zone or Availability Zone to + Local Zone health checking. If omitted, health checks are performed in + the same subnet as the instance. + """ + aggregation: str | None + """ + The aggregation setting for the application status check. When set to + `included`, the result of this check contributes to the instance-level + application status reported by `DescribeApplicationStatus`. When set to + `excluded`, the check runs independently and does not affect the + instance-level status. Valid values: `included` | `excluded`. + """ + protocol: Required[str] + """ + The protocol to use for the health check. Valid values: `http` | + `https`. + """ + port: Required[int] + """The port to use for the health check. Valid values: 1 to 65535.""" + path: str | None + """ + The URL path to use for the health check HTTP request (for example, + `/health` or `/status`). + """ + device_index: int | None + """ + The index of the network device to use for the health check. The value + must be greater than or equal to 0. + """ + ip_version: str | None + """ + The IP version to use for the health check. Valid values: `ipv4` and + `ipv6`. + """ + ip_scope: str | None + """The IP scope to use for the health check. Valid value: `private`.""" + interval: int | None + """The interval, in seconds, between health checks. Valid value: 60.""" + timeout: int | None + """ + The amount of time, in seconds, to wait for a health check response + before considering it failed. Valid values: 1 to 30. The value must be + less than `Interval`. + """ + failure_threshold: int | None + """ + The number of consecutive failed health checks before the application + status is considered impaired. The value must be greater than 0. + """ + success_threshold: int | None + """ + The number of consecutive successful health checks before the + application status is considered healthy. The value must be greater than + 0. + """ + status_code_matcher: str | None + """ + The HTTP status codes that indicate a successful health check response. + Specify a comma-separated list of individual status codes or ranges, for + example, `200,202,300-399`. For a range, the first value must be less + than the second value. Maximum length: 64 characters. Default: `200`. + """ + initialization_grace_period_seconds: int | None + """ + The number of seconds to wait before starting health checks after an + instance is launched. Valid values: 1 to 600. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the application status check.""" + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If you retry a request with + the same token, the service ignores the request but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateApplicationStatusCheckOutput(_SerdeShape): """Dataclass for CreateApplicationStatusCheckOutput structure.""" @@ -3357,6 +4272,49 @@ class CreateCapacityManagerDataExportInput(_SerdeShape): export for organization and cost tracking purposes. """ +class CreateCapacityManagerDataExportInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityManagerDataExportInput`.""" + + s3_bucket_name: Required[str] + """ + The name of the S3 bucket where the capacity data export files will be + delivered. The bucket must exist and you must have write permissions to + it. + """ + s3_bucket_prefix: str | None + """ + The S3 key prefix for the exported data files. This allows you to + organize exports in a specific folder structure within your bucket. If + not specified, files are placed at the bucket root. + """ + schedule: Required[str] + """The frequency at which data exports are generated.""" + output_format: Required[str] + """ + The file format for the exported data. Parquet format is recommended for + large datasets and better compression. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see Ensure + Idempotency. + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the data export configuration. You can tag the + export for organization and cost tracking purposes. + """ + @dataclass(kw_only=True) class CreateCapacityManagerDataExportOutput(_SerdeShape): """Dataclass for CreateCapacityManagerDataExportOutput structure.""" @@ -3403,13 +4361,41 @@ class CreateCapacityReservationBySplittingInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the new Capacity Reservation.""" -@dataclass(kw_only=True) -class CreateCapacityReservationBySplittingOutput(_SerdeShape): - """Dataclass for CreateCapacityReservationBySplittingOutput structure.""" +class CreateCapacityReservationBySplittingInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityReservationBySplittingInput`.""" - source_capacity_reservation: CapacityReservation | None = ... - """Information about the source Capacity Reservation.""" - destination_capacity_reservation: CapacityReservation | None = ... + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + source_capacity_reservation_id: Required[str] + """ + The ID of the Capacity Reservation from which you want to split the + capacity. + """ + instance_count: Required[int] + """The number of instances to split from the source Capacity Reservation.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the new Capacity Reservation.""" + +@dataclass(kw_only=True) +class CreateCapacityReservationBySplittingOutput(_SerdeShape): + """Dataclass for CreateCapacityReservationBySplittingOutput structure.""" + + source_capacity_reservation: CapacityReservation | None = ... + """Information about the source Capacity Reservation.""" + destination_capacity_reservation: CapacityReservation | None = ... """Information about the destination Capacity Reservation.""" instance_count: int | None = ... """ @@ -3448,6 +4434,29 @@ class CreateCapacityReservationCancellationQuoteInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateCapacityReservationCancellationQuoteInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityReservationCancellationQuoteInput`.""" + + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the cancellation quote.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateCapacityReservationCancellationQuoteOutput(_SerdeShape): """ @@ -3498,6 +4507,36 @@ class CreateCapacityReservationDateChangeQuoteInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateCapacityReservationDateChangeQuoteInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityReservationDateChangeQuoteInput`.""" + + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation.""" + new_start_date: Required[datetime] + """ + The requested new start date for the Capacity Reservation, in the + ISO8601 format in the UTC time zone (`YYYY-MM-DDThh:mm:ss.sssZ`). The + new start date must be later than the current start date and within the + cumulative 30-day pushout limit. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the date change quote.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateCapacityReservationDateChangeQuoteOutput(_SerdeShape): """Dataclass for CreateCapacityReservationDateChangeQuoteOutput structure.""" @@ -3606,6 +4645,103 @@ class CreateCapacityReservationFleetInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateCapacityReservationFleetInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityReservationFleetInput`.""" + + allocation_strategy: str | None + """ + The strategy used by the Capacity Reservation Fleet to determine which + of the specified instance types to use. Currently, only the + `prioritized` allocation strategy is supported. For more information, + see [Allocation + strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) + in the *Amazon EC2 User Guide*. + + Valid values: `prioritized` + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + instance_type_specifications: ( + Sequence[ + ReservationFleetInstanceSpecification + | ReservationFleetInstanceSpecificationDict + ] + | None + ) + """Information about the instance types for which to reserve the capacity.""" + instance_requirements: ( + InstanceRequirementsRequest | InstanceRequirementsRequestDict | None + ) + """Reserved for internal use.""" + availability_zone: str | None + """Reserved for internal use.""" + availability_zone_id: str | None + """Reserved for internal use.""" + tenancy: str | None + """ + Indicates the tenancy of the Capacity Reservation Fleet. All Capacity + Reservations in the Fleet inherit this tenancy. The Capacity Reservation + Fleet can have one of the following tenancy settings: + + - `default` - The Capacity Reservation Fleet is created on hardware that + is shared with other Amazon Web Services accounts. + + - `dedicated` - The Capacity Reservations are created on single-tenant + hardware that is dedicated to a single Amazon Web Services account. + """ + total_target_capacity: Required[int] + """ + The total number of capacity units to be reserved by the Capacity + Reservation Fleet. This value, together with the instance type weights + that you assign to each instance type used by the Fleet determine the + number of instances for which the Fleet reserves capacity. Both values + are based on units that make sense for your workload. For more + information, see [Total target + capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) + in the *Amazon EC2 User Guide*. + """ + end_date: datetime | None + """ + The date and time at which the Capacity Reservation Fleet expires. When + the Capacity Reservation Fleet expires, its state changes to `expired` + and all of the Capacity Reservations in the Fleet expire. + + The Capacity Reservation Fleet expires within an hour after the + specified time. For example, if you specify `5/31/2019`, `13:30:55`, the + Capacity Reservation Fleet is guaranteed to expire between `13:30:55` + and `14:30:55` on `5/31/2019`. + """ + instance_match_criteria: str | None + """ + Indicates the type of instance launches that the Capacity Reservation + Fleet accepts. All Capacity Reservations in the Fleet inherit this + instance matching criteria. + + Currently, Capacity Reservation Fleets support `open` instance matching + criteria only. This means that instances that have matching attributes + (instance type, platform, and Availability Zone) run in the Capacity + Reservations automatically. Instances do not need to explicitly target a + Capacity Reservation Fleet to use its reserved capacity. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to assign to the Capacity Reservation Fleet. The tags are + automatically assigned to the Capacity Reservations in the Fleet. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateCapacityReservationFleetOutput(_SerdeShape): """Dataclass for CreateCapacityReservationFleetOutput structure.""" @@ -3650,13 +4786,199 @@ class CreateCapacityReservationFleetOutput(_SerdeShape): class CreateCapacityReservationInput(_SerdeShape): """Dataclass for CreateCapacityReservationInput structure.""" - client_token: str | None = ... + client_token: str | None = ... + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + """ + instance_type: str | None = ... + """ + The instance type for which to reserve capacity. + + Note: + You can request future-dated Capacity Reservations for instance types in + the C, M, R, I, T, and G instance families only. + + For more information, see [Instance + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + in the *Amazon EC2 User Guide*. + """ + instance_platform: str | None = ... + """The type of operating system for which to reserve capacity.""" + availability_zone: str | None = ... + """The Availability Zone in which to create the Capacity Reservation.""" + availability_zone_id: str | None = ... + """ + The ID of the Availability Zone in which to create the Capacity + Reservation. + """ + tenancy: str | None = ... + """ + Indicates the tenancy of the Capacity Reservation. A Capacity + Reservation can have one of the following tenancy settings: + + - `default` - The Capacity Reservation is created on hardware that is + shared with other Amazon Web Services accounts. + + - `dedicated` - The Capacity Reservation is created on single-tenant + hardware that is dedicated to a single Amazon Web Services account. + """ + instance_count: int | None = ... + """ + The number of instances for which to reserve capacity. + + Note: + You can request future-dated Capacity Reservations for an instance count + with a minimum of 32 vCPUs. For example, if you request a future-dated + Capacity Reservation for `m5.xlarge` instances, you must request at + least 8 instances (*8 * m5.xlarge = 32 vCPUs*). + + Valid range: 1 - 1000 + """ + ebs_optimized: bool | None = ... + """ + Indicates whether the Capacity Reservation supports EBS-optimized + instances. This optimization provides dedicated throughput to Amazon EBS + and an optimized configuration stack to provide optimal I/O performance. + This optimization isn't available with all instance types. Additional + usage charges apply when using an EBS- optimized instance. + """ + ephemeral_storage: bool | None = ... + """*Deprecated.*""" + end_date: datetime | None = ... + """ + The date and time at which the Capacity Reservation expires. When a + Capacity Reservation expires, the reserved capacity is released and you + can no longer launch instances into it. The Capacity Reservation's + state changes to `expired` when it reaches its end date and time. + + You must provide an `EndDate` value if `EndDateType` is `limited`. Omit + `EndDate` if `EndDateType` is `unlimited`. + + If the `EndDateType` is `limited`, the Capacity Reservation is cancelled + within an hour from the specified time. For example, if you specify + 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end + between 13:30:55 and 14:30:55 on 5/31/2019. + + If you are requesting a future-dated Capacity Reservation, you can't + specify an end date and time that is within the commitment duration. + """ + end_date_type: str | None = ... + """ + Indicates the way in which the Capacity Reservation ends. A Capacity + Reservation can have one of the following end types: + + - `unlimited` - The Capacity Reservation remains active until you + explicitly cancel it. Do not provide an `EndDate` if the `EndDateType` + is `unlimited`. + + - `limited` - The Capacity Reservation expires automatically at a + specified date and time. You must provide an `EndDate` value if the + `EndDateType` value is `limited`. + """ + instance_match_criteria: str | None = ... + """ + Indicates the type of instance launches that the Capacity Reservation + accepts. The options include: + + - `open` - The Capacity Reservation automatically matches all instances + that have matching attributes (instance type, platform, and + Availability Zone). Instances that have matching attributes run in the + Capacity Reservation automatically without specifying any additional + parameters. + + - `targeted` - The Capacity Reservation only accepts instances that have + matching attributes (instance type, platform, and Availability Zone), + and explicitly target the Capacity Reservation. This ensures that only + permitted instances can use the reserved capacity. + + Note: + If you are requesting a future-dated Capacity Reservation, you must + specify `targeted`. + + Default: `open` + """ + tag_specifications: list[TagSpecification] | None = ... + """The tags to apply to the Capacity Reservation during launch.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + outpost_arn: str | None = ... + """ + Note: + Not supported for future-dated Capacity Reservations. + + The Amazon Resource Name (ARN) of the Outpost on which to create the + Capacity Reservation. + """ + placement_group_arn: str | None = ... + """ + Note: + Not supported for future-dated Capacity Reservations. + + The Amazon Resource Name (ARN) of the cluster placement group in which + to create the Capacity Reservation. For more information, see [Capacity + Reservations for cluster placement + groups](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-cpg.html) + in the *Amazon EC2 User Guide*. + """ + start_date: datetime | None = ... + """ + Note: + Required for future-dated Capacity Reservations only. To create a + Capacity Reservation for immediate use, omit this parameter. + + The date and time at which the future-dated Capacity Reservation should + become available for use, in the ISO8601 format in the UTC time zone + (`YYYY-MM-DDThh:mm:ss.sssZ`). + + You can request a future-dated Capacity Reservation between 5 and 120 + days in advance. + """ + commitment_duration: int | None = ... + """ + Note: + Required for future-dated Capacity Reservations only. To create a + Capacity Reservation for immediate use, omit this parameter. + + Specify a commitment duration, in seconds, for the future-dated Capacity + Reservation. + + The commitment duration is a minimum duration for which you commit to + having the future-dated Capacity Reservation in the `active` state in + your account after it has been delivered. + + For more information, see [Commitment + duration](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-concepts.html#cr-commitment-duration). + """ + delivery_preference: str | None = ... + """ + Note: + Required for future-dated Capacity Reservations only. To create a + Capacity Reservation for immediate use, omit this parameter. + + Indicates that the requested capacity will be delivered in addition to + any running instances or reserved capacity that you have in your account + at the requested date and time. + + The only supported value is `incremental`. + """ + +class CreateCapacityReservationInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityReservationInput`.""" + + client_token: str | None """ Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see [Ensure Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). """ - instance_type: str | None = ... + instance_type: Required[str] """ The instance type for which to reserve capacity. @@ -3668,16 +4990,16 @@ class CreateCapacityReservationInput(_SerdeShape): types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide*. """ - instance_platform: str | None = ... + instance_platform: Required[str] """The type of operating system for which to reserve capacity.""" - availability_zone: str | None = ... + availability_zone: str | None """The Availability Zone in which to create the Capacity Reservation.""" - availability_zone_id: str | None = ... + availability_zone_id: str | None """ The ID of the Availability Zone in which to create the Capacity Reservation. """ - tenancy: str | None = ... + tenancy: str | None """ Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings: @@ -3688,7 +5010,7 @@ class CreateCapacityReservationInput(_SerdeShape): - `dedicated` - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account. """ - instance_count: int | None = ... + instance_count: Required[int] """ The number of instances for which to reserve capacity. @@ -3700,7 +5022,7 @@ class CreateCapacityReservationInput(_SerdeShape): Valid range: 1 - 1000 """ - ebs_optimized: bool | None = ... + ebs_optimized: bool | None """ Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS @@ -3708,9 +5030,9 @@ class CreateCapacityReservationInput(_SerdeShape): This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance. """ - ephemeral_storage: bool | None = ... + ephemeral_storage: bool | None """*Deprecated.*""" - end_date: datetime | None = ... + end_date: datetime | None """ The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you @@ -3728,7 +5050,7 @@ class CreateCapacityReservationInput(_SerdeShape): If you are requesting a future-dated Capacity Reservation, you can't specify an end date and time that is within the commitment duration. """ - end_date_type: str | None = ... + end_date_type: str | None """ Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types: @@ -3741,7 +5063,7 @@ class CreateCapacityReservationInput(_SerdeShape): specified date and time. You must provide an `EndDate` value if the `EndDateType` value is `limited`. """ - instance_match_criteria: str | None = ... + instance_match_criteria: str | None """ Indicates the type of instance launches that the Capacity Reservation accepts. The options include: @@ -3763,16 +5085,16 @@ class CreateCapacityReservationInput(_SerdeShape): Default: `open` """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """The tags to apply to the Capacity Reservation during launch.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - outpost_arn: str | None = ... + outpost_arn: str | None """ Note: Not supported for future-dated Capacity Reservations. @@ -3780,7 +5102,7 @@ class CreateCapacityReservationInput(_SerdeShape): The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. """ - placement_group_arn: str | None = ... + placement_group_arn: str | None """ Note: Not supported for future-dated Capacity Reservations. @@ -3791,7 +5113,7 @@ class CreateCapacityReservationInput(_SerdeShape): groups](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-cpg.html) in the *Amazon EC2 User Guide*. """ - start_date: datetime | None = ... + start_date: datetime | None """ Note: Required for future-dated Capacity Reservations only. To create a @@ -3804,7 +5126,7 @@ class CreateCapacityReservationInput(_SerdeShape): You can request a future-dated Capacity Reservation between 5 and 120 days in advance. """ - commitment_duration: int | None = ... + commitment_duration: int | None """ Note: Required for future-dated Capacity Reservations only. To create a @@ -3820,7 +5142,7 @@ class CreateCapacityReservationInput(_SerdeShape): For more information, see [Commitment duration](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-concepts.html#cr-commitment-duration). """ - delivery_preference: str | None = ... + delivery_preference: str | None """ Note: Required for future-dated Capacity Reservations only. To create a @@ -3871,6 +5193,29 @@ class CreateCarrierGatewayInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateCarrierGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateCarrierGatewayInput`.""" + + vpc_id: Required[str] + """The ID of the VPC to associate with the carrier gateway.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to associate with the carrier gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateCarrierGatewayOutput(_SerdeShape): """Dataclass for CreateCarrierGatewayOutput structure.""" @@ -4068,6 +5413,196 @@ class CreateClientVpnEndpointInput(_SerdeShape): to evaluate the security posture of connecting devices. """ +class CreateClientVpnEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateClientVpnEndpointInput`.""" + + client_cidr_block: str | None + """ + The IPv4 address range, in CIDR notation, from which to assign client IP + addresses. The address range cannot overlap with the local CIDR of the + VPC in which the associated subnet is located, or the routes that you + add manually. The address range cannot be changed after the Client VPN + endpoint has been created. Client CIDR range must have a size of at + least /22 and must not be greater than /12. + """ + server_certificate_arn: Required[str] + """ + The ARN of the server certificate. For more information, see the + [Certificate Manager User + Guide](https://docs.aws.amazon.com/acm/latest/userguide/). + """ + authentication_options: Required[ + Sequence[ClientVpnAuthenticationRequest | ClientVpnAuthenticationRequestDict] + ] + """ + Information about the authentication method to be used to authenticate + clients. + """ + connection_log_options: Required[ConnectionLogOptions | ConnectionLogOptionsDict] + """ + Information about the client connection logging options. + + If you enable client connection logging, data about client connections + is sent to a Cloudwatch Logs log stream. The following information is + logged: + + - Client connection requests + + - Client connection results (successful and unsuccessful) + + - Reasons for unsuccessful client connection requests + + - Client connection termination time + """ + dns_servers: Sequence[str] | None + """ + Information about the DNS servers to be used for DNS resolution. A + Client VPN endpoint can have up to two DNS servers. If no DNS server is + specified, the DNS address configured on the device is used for the DNS + server. + """ + transport_protocol: str | None + """ + The transport protocol to be used by the VPN session. + + Default value: `udp` + """ + vpn_port: int | None + """ + The port number to assign to the Client VPN endpoint for TCP and UDP + traffic. + + Valid Values: `443` | `1194` + + Default Value: `443` + """ + description: str | None + """A brief description of the Client VPN endpoint.""" + split_tunnel: bool | None + """ + Indicates whether split-tunnel is enabled on the Client VPN endpoint. + + By default, split-tunnel on a VPN endpoint is disabled. + + For information about split-tunnel VPN endpoints, see [Split-tunnel + Client VPN + endpoint](https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) + in the *Client VPN Administrator Guide*. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the Client VPN endpoint during creation.""" + security_group_ids: Sequence[str] | None + """ + The IDs of one or more security groups to apply to the target network. + You must also specify the ID of the VPC that contains the security + groups. + """ + vpc_id: str | None + """ + The ID of the VPC to associate with the Client VPN endpoint. If no + security group IDs are specified in the request, the default security + group for the VPC is applied. + """ + self_service_portal: str | None + """ + Specify whether to enable the self-service portal for the Client VPN + endpoint. + + Default Value: `enabled` + """ + client_connect_options: ClientConnectOptions | ClientConnectOptionsDict | None + """ + The options for managing connection authorization for new client + connections. + """ + session_timeout_hours: int | None + """ + The maximum VPN session duration time in hours. + + Valid values: `8 | 10 | 12 | 24` + + Default value: `24` + """ + client_login_banner_options: ( + ClientLoginBannerOptions | ClientLoginBannerOptionsDict | None + ) + """ + Options for enabling a customizable text banner that will be displayed + on Amazon Web Services provided clients when a VPN session is + established. + """ + client_route_enforcement_options: ( + ClientRouteEnforcementOptions | ClientRouteEnforcementOptionsDict | None + ) + """ + Client route enforcement is a feature of the Client VPN service that + helps enforce administrator defined routes on devices connected through + the VPN. T his feature helps improve your security posture by ensuring + that network traffic originating from a connected client is not + inadvertently sent outside the VPN tunnel. + + Client route enforcement works by monitoring the route table of a + connected device for routing policy changes to the VPN connection. If + the feature detects any VPN routing policy modifications, it will + automatically force an update to the route table, reverting it back to + the expected route configurations. + """ + disconnect_on_session_timeout: bool | None + """ + Indicates whether the client VPN session is disconnected after the + maximum timeout specified in `SessionTimeoutHours` is reached. If + `true`, users are prompted to reconnect client VPN. If `false`, client + VPN attempts to reconnect automatically. The default value is `true`. + """ + endpoint_ip_address_type: str | None + """ + The IP address type for the Client VPN endpoint. Valid values are `ipv4` + (default) for IPv4 addressing only, `ipv6` for IPv6 addressing only, or + `dual-stack` for both IPv4 and IPv6 addressing. When set to + `dual-stack,` clients can connect to the endpoint using either IPv4 or + IPv6 addresses.. + """ + traffic_ip_address_type: str | None + """ + The IP address type for traffic within the Client VPN tunnel. Valid + values are `ipv4` (default) for IPv4 traffic only, `ipv6` for IPv6 + addressing only, or `dual-stack` for both IPv4 and IPv6 traffic. When + set to `dual-stack`, clients can access both IPv4 and IPv6 resources + through the VPN . + """ + transit_gateway_configuration: ( + TransitGatewayConfigurationInputStructure + | TransitGatewayConfigurationInputStructureDict + | None + ) + """ + The Transit Gateway configuration for the Client VPN endpoint. Use this + parameter to associate the endpoint with a Transit Gateway instead of a + VPC. You cannot specify both `TransitGatewayConfiguration` and + `VpcId`/`SecurityGroupIds`. + """ + device_posture_options: DevicePostureOptions | DevicePostureOptionsDict | None + """ + The device posture options for the Client VPN endpoint. Use this + parameter to specify the device trust providers that the endpoint uses + to evaluate the security posture of connecting devices. + """ + @dataclass(kw_only=True) class CreateClientVpnEndpointOutput(_SerdeShape): """Dataclass for CreateClientVpnEndpointOutput structure.""" @@ -4137,6 +5672,56 @@ class CreateClientVpnRouteInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateClientVpnRouteInputDict(TypedDict, total=False): + """Dictionary form of `CreateClientVpnRouteInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint to which to add the route.""" + destination_cidr_block: Required[str] + """ + The IPv4 address range, in CIDR notation, of the route destination. For + example: + + - To add a route for Internet access, enter `0.0.0.0/0` + + - To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR + range + + - To add a route for an on-premises network, enter the Amazon Web + Services Site-to-Site VPN connection's IPv4 CIDR range + + - To add a route for the local network, enter the client CIDR range + """ + target_vpc_subnet_id: str | None + """ + The ID of the subnet through which you want to route traffic. The + specified subnet must be an existing target network of the Client VPN + endpoint. + + Alternatively, if you're adding a route for the local network, specify + `local`. + + This parameter is required for VPC-based Client VPN endpoints. For + Transit Gateway-based endpoints, this parameter is not required. + """ + description: str | None + """A brief description of the route.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateClientVpnRouteOutput(_SerdeShape): """Dataclass for CreateClientVpnRouteOutput structure.""" @@ -4167,6 +5752,21 @@ class CreateCoipCidrInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateCoipCidrInputDict(TypedDict, total=False): + """Dictionary form of `CreateCoipCidrInput`.""" + + cidr: Required[str] + """A customer-owned IP address range to create.""" + coip_pool_id: Required[str] + """The ID of the address pool.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateCoipCidrOutput(_SerdeShape): """Dataclass for CreateCoipCidrOutput structure.""" @@ -4189,7 +5789,22 @@ class CreateCoipPoolInput(_SerdeShape): """The ID of the local gateway route table.""" tag_specifications: list[TagSpecification] | None = ... """The tags to assign to the CoIP address pool.""" - dry_run: bool | None = ... + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class CreateCoipPoolInputDict(TypedDict, total=False): + """Dictionary form of `CreateCoipPoolInput`.""" + + local_gateway_route_table_id: Required[str] + """The ID of the local gateway route table.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the CoIP address pool.""" + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -4271,6 +5886,65 @@ class CreateCustomerGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateCustomerGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateCustomerGatewayInput`.""" + + bgp_asn: int | None + """ + For customer gateway devices that support BGP, specify the device's + ASN. You must specify either `BgpAsn` or `BgpAsnExtended` when creating + the customer gateway. If the ASN is larger than `2,147,483,647`, you + must use `BgpAsnExtended`. + + Default: 65000 + + Valid values: `1` to `2,147,483,647` + """ + public_ip: str | None + """ + *This member has been deprecated.* The Internet-routable IP address for + the customer gateway's outside interface. The address must be static. + """ + certificate_arn: str | None + """The Amazon Resource Name (ARN) for the customer gateway certificate.""" + type: Required[str] + """ + The type of VPN connection that this customer gateway supports + (`ipsec.1`). + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the customer gateway.""" + device_name: str | None + """ + A name for the customer gateway device. + + Length Constraints: Up to 255 characters. + """ + ip_address: str | None + """ + The IP address for the customer gateway device's outside interface. The + address must be static. If `OutsideIpAddressType` in your VPN connection + options is set to `PrivateIpv4`, you can use an RFC6598 or RFC1918 + private IPv4 address. If `OutsideIpAddressType` is set to `Ipv6`, you + can use an IPv6 address. + """ + bgp_asn_extended: int | None + """ + For customer gateway devices that support BGP, specify the device's + ASN. You must specify either `BgpAsn` or `BgpAsnExtended` when creating + the customer gateway. If the ASN is larger than `2,147,483,647`, you + must use `BgpAsnExtended`. + + Valid values: `2,147,483,648` to `4,294,967,295` + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateCustomerGatewayOutput(_SerdeShape): """Contains the output of CreateCustomerGateway.""" @@ -4317,6 +5991,37 @@ class CreateDefaultSubnetInput(_SerdeShape): not both. """ +class CreateDefaultSubnetInputDict(TypedDict, total=False): + """Dictionary form of `CreateDefaultSubnetInput`.""" + + availability_zone: str | None + """ + The Availability Zone in which to create the default subnet. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified, but + not both. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + ipv6_native: bool | None + """ + Indicates whether to create an IPv6 only subnet. If you already have a + default subnet for this Availability Zone, you must delete it before you + can create an IPv6 only subnet. + """ + availability_zone_id: str | None + """ + The ID of the Availability Zone. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified, but + not both. + """ + @dataclass(kw_only=True) class CreateDefaultSubnetOutput(_SerdeShape): """Dataclass for CreateDefaultSubnetOutput structure.""" @@ -4343,6 +6048,17 @@ class CreateDefaultVpcInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateDefaultVpcInputDict(TypedDict, total=False): + """Dictionary form of `CreateDefaultVpcInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateDefaultVpcOutput(_SerdeShape): """Dataclass for CreateDefaultVpcOutput structure.""" @@ -4407,6 +6123,55 @@ class CreateDelegateMacVolumeOwnershipTaskInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to assign to the volume ownership delegation task.""" +class CreateDelegateMacVolumeOwnershipTaskInputDict(TypedDict, total=False): + """Dictionary form of `CreateDelegateMacVolumeOwnershipTaskInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the Amazon EC2 Mac instance.""" + mac_credentials: Required[str] + """ + Specifies the following credentials: + + - **Internal disk administrative user** + + - **Username** - Only the default administrative user + (`aws-managed-user`) is supported and it is used by default. You + can't specify a different administrative user. + + - **Password** - If you did not change the default password for + `aws-managed-user`, specify the default password, which is *blank*. + Otherwise, specify your password. + + - **Amazon EBS root volume administrative user** + + - **Username** - If you did not change the default administrative + user, specify `ec2-user`. Otherwise, specify the username for your + administrative user. + + - **Password** - Specify the password for the administrative user. + + The credentials must be specified in the following JSON format: + + `{ "internalDiskPassword":"`*`internal-disk-admin_password`*`", "rootVolumeUsername":"`*`root-volume-admin_username`*`", "rootVolumepassword":"`*`root-volume-admin_password`*`" }` + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the volume ownership delegation task.""" + @dataclass(kw_only=True) class CreateDelegateMacVolumeOwnershipTaskOutput(_SerdeShape): """Dataclass for CreateDelegateMacVolumeOwnershipTaskOutput structure.""" @@ -4437,6 +6202,23 @@ class CreateDhcpOptionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateDhcpOptionsInputDict(TypedDict, total=False): + """Dictionary form of `CreateDhcpOptionsInput`.""" + + dhcp_configurations: Required[ + Sequence[NewDhcpConfiguration | NewDhcpConfigurationDict] + ] + """A DHCP configuration option.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the DHCP option.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateDhcpOptionsOutput(_SerdeShape): """Dataclass for CreateDhcpOptionsOutput structure.""" @@ -4473,6 +6255,27 @@ class CreateEgressOnlyInternetGatewayInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to assign to the egress-only internet gateway.""" +class CreateEgressOnlyInternetGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateEgressOnlyInternetGatewayInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_id: Required[str] + """The ID of the VPC for which to create the egress-only internet gateway.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the egress-only internet gateway.""" + @dataclass(kw_only=True) class CreateEgressOnlyInternetGatewayOutput(_SerdeShape): """Dataclass for CreateEgressOnlyInternetGatewayOutput structure.""" @@ -4545,18 +6348,131 @@ class CreateFleetInput(_SerdeShape): This field is autopopulated if not provided. """ - spot_options: SpotOptionsRequest | None = ... + spot_options: SpotOptionsRequest | None = ... + """Describes the configuration of Spot Instances in an EC2 Fleet.""" + on_demand_options: OnDemandOptionsRequest | None = ... + """Describes the configuration of On-Demand Instances in an EC2 Fleet.""" + reserved_capacity_options: ReservedCapacityOptionsRequest | None = ... + """ + Defines EC2 Fleet preferences for utilizing reserved capacity when + DefaultTargetCapacityType is set to `reserved-capacity`. + + Supported only for fleets of type `instant`. + """ + excess_capacity_termination_policy: str | None = ... + """ + Indicates whether running instances should be terminated if the total + target capacity of the EC2 Fleet is decreased below the current size of + the EC2 Fleet. + + Supported only for fleets of type `maintain`. + """ + launch_template_configs: list[FleetLaunchTemplateConfigRequest] | None = ... + """The configuration for the EC2 Fleet.""" + target_capacity_specification: TargetCapacitySpecificationRequest | None = ... + """The number of units to request.""" + terminate_instances_with_expiration: bool | None = ... + """ + Indicates whether running instances should be terminated when the EC2 + Fleet expires. + """ + type: str | None = ... + """ + The fleet type. The default value is `maintain`. + + - `maintain` - The EC2 Fleet places an asynchronous request for your + desired capacity, and continues to maintain your desired Spot capacity + by replenishing interrupted Spot Instances. + + - `request` - The EC2 Fleet places an asynchronous one-time request for + your desired capacity, but does submit Spot requests in alternative + capacity pools if Spot capacity is unavailable, and does not maintain + Spot capacity if Spot Instances are interrupted. + + - `instant` - The EC2 Fleet places a synchronous one-time request for + your desired capacity, and returns errors for any instances that could + not be launched. + + For more information, see [EC2 Fleet request + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-request-type.html) + in the *Amazon EC2 User Guide*. + """ + valid_from: datetime | None = ... + """ + The start date and time of the request, in UTC format (for example, + *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). The default is to start fulfilling + the request immediately. + """ + valid_until: datetime | None = ... + """ + The end date and time of the request, in UTC format (for example, + *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). At this point, no new EC2 Fleet + requests are placed or able to fulfill the request. If no value is + specified, the request remains until you cancel it. + """ + replace_unhealthy_instances: bool | None = ... + """ + Indicates whether EC2 Fleet should replace unhealthy Spot Instances. + Supported only for fleets of type `maintain`. For more information, see + [EC2 Fleet health + checks](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks) + in the *Amazon EC2 User Guide*. + """ + tag_specifications: list[TagSpecification] | None = ... + """ + The key-value pair for tagging the EC2 Fleet request on creation. For + more information, see [Tag your + resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources). + + If the fleet type is `instant`, specify a resource type of `fleet` to + tag the fleet, `instance` to tag the instances at launch, `volume` to + tag the volumes at launch, or `network-interface` to tag the network + interfaces at launch. + + If the fleet type is `maintain` or `request`, specify a resource type of + `fleet` to tag the fleet. You cannot specify a resource type of + `instance`, `volume`, or `network-interface`. To tag instances at + launch, specify the tags in a [launch + template](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template). + """ + context: str | None = ... + """Reserved.""" + +class CreateFleetInputDict(TypedDict, total=False): + """Dictionary form of `CreateFleetInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. If you do not specify a client token, a + randomly generated token is used for the request to ensure idempotency. + + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + spot_options: SpotOptionsRequest | SpotOptionsRequestDict | None """Describes the configuration of Spot Instances in an EC2 Fleet.""" - on_demand_options: OnDemandOptionsRequest | None = ... + on_demand_options: OnDemandOptionsRequest | OnDemandOptionsRequestDict | None """Describes the configuration of On-Demand Instances in an EC2 Fleet.""" - reserved_capacity_options: ReservedCapacityOptionsRequest | None = ... + reserved_capacity_options: ( + ReservedCapacityOptionsRequest | ReservedCapacityOptionsRequestDict | None + ) """ Defines EC2 Fleet preferences for utilizing reserved capacity when DefaultTargetCapacityType is set to `reserved-capacity`. Supported only for fleets of type `instant`. """ - excess_capacity_termination_policy: str | None = ... + excess_capacity_termination_policy: str | None """ Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of @@ -4564,16 +6480,22 @@ class CreateFleetInput(_SerdeShape): Supported only for fleets of type `maintain`. """ - launch_template_configs: list[FleetLaunchTemplateConfigRequest] | None = ... + launch_template_configs: Required[ + Sequence[ + FleetLaunchTemplateConfigRequest | FleetLaunchTemplateConfigRequestDict + ] + ] """The configuration for the EC2 Fleet.""" - target_capacity_specification: TargetCapacitySpecificationRequest | None = ... + target_capacity_specification: Required[ + TargetCapacitySpecificationRequest | TargetCapacitySpecificationRequestDict + ] """The number of units to request.""" - terminate_instances_with_expiration: bool | None = ... + terminate_instances_with_expiration: bool | None """ Indicates whether running instances should be terminated when the EC2 Fleet expires. """ - type: str | None = ... + type: str | None """ The fleet type. The default value is `maintain`. @@ -4594,20 +6516,20 @@ class CreateFleetInput(_SerdeShape): types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-request-type.html) in the *Amazon EC2 User Guide*. """ - valid_from: datetime | None = ... + valid_from: datetime | None """ The start date and time of the request, in UTC format (for example, *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). The default is to start fulfilling the request immediately. """ - valid_until: datetime | None = ... + valid_until: datetime | None """ The end date and time of the request, in UTC format (for example, *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it. """ - replace_unhealthy_instances: bool | None = ... + replace_unhealthy_instances: bool | None """ Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type `maintain`. For more information, see @@ -4615,7 +6537,7 @@ class CreateFleetInput(_SerdeShape): checks](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks) in the *Amazon EC2 User Guide*. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ The key-value pair for tagging the EC2 Fleet request on creation. For more information, see [Tag your @@ -4632,7 +6554,7 @@ class CreateFleetInput(_SerdeShape): launch, specify the tags in a [launch template](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template). """ - context: str | None = ... + context: str | None """Reserved.""" @dataclass(kw_only=True) @@ -4781,7 +6703,7 @@ class CreateFlowLogsInput(_SerdeShape): - If the destination type is `s3`, specify the ARN of an S3 bucket. For example: - arn:aws:s3\\:::*my_bucket*/*my_subfolder*/ + arn:aws:s3:::*my_bucket*/*my_subfolder*/ The subfolder is optional. Note that you can't use `AWSLogs` as a subfolder name. @@ -4832,6 +6754,137 @@ class CreateFlowLogsInput(_SerdeShape): feature fields in your custom log format. """ +class CreateFlowLogsInputDict(TypedDict, total=False): + """Dictionary form of `CreateFlowLogsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + """ + deliver_logs_permission_arn: str | None + """ + The ARN of the IAM role that allows Amazon EC2 to publish flow logs to + the log destination. + + This parameter is required if the destination type is + `cloud-watch-logs`, or if the destination type is + `kinesis-data-firehose` and the delivery stream and the resources to + monitor are in different accounts. + """ + deliver_cross_account_role: str | None + """ + The ARN of the IAM role that allows Amazon EC2 to publish flow logs + across accounts. + """ + log_group_name: str | None + """ + The name of a new or existing CloudWatch Logs log group where Amazon EC2 + publishes your flow logs. + + This parameter is valid only if the destination type is + `cloud-watch-logs`. + """ + resource_ids: Required[Sequence[str]] + """ + The IDs of the resources to monitor. For example, if the resource type + is `VPC`, specify the IDs of the VPCs. + + Constraints: Maximum of 25 for transit gateway resource types. Maximum + of 300 for the other resource types. + """ + resource_type: Required[str] + """The type of resource to monitor.""" + traffic_type: str | None + """ + The type of traffic to monitor (accepted traffic, rejected traffic, or + all traffic). This parameter is not supported for transit gateway or + Cloud WAN resource types. It is required for the other resource types. + """ + log_destination_type: str | None + """ + The type of destination for the flow log data. + + Default: `cloud-watch-logs` + """ + log_destination: str | None + """ + The destination for the flow log data. The meaning of this parameter + depends on the destination type. + + - If the destination type is `cloud-watch-logs`, specify the ARN of a + CloudWatch Logs log group. For example: + + arn:aws:logs:*region*:*account_id*:log-group:*my_group* + + Alternatively, use the `LogGroupName` parameter. + + - If the destination type is `s3`, specify the ARN of an S3 bucket. For + example: + + arn:aws:s3:::*my_bucket*/*my_subfolder*/ + + The subfolder is optional. Note that you can't use `AWSLogs` as a + subfolder name. + + - If the destination type is `kinesis-data-firehose`, specify the ARN of + a Kinesis Data Firehose delivery stream. For example: + + arn:aws:firehose:*region*:*account_id*:deliverystream:*my_stream* + """ + log_format: str | None + """ + The fields to include in the flow log record. List the fields in the + order in which they should appear. If you omit this parameter, the flow + log is created using the default format. If you specify this parameter, + you must include at least one field. For more information about the + available fields, see [Flow log + records](https://docs.aws.amazon.com/vpc/latest/userguide/flow-log-records.html) + in the *Amazon VPC User Guide*, [Transit Gateway Flow Log + records](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html#flow-log-records) + in the *Amazon Web Services Transit Gateway Guide*, or [Cloud WAN Flow + Log + records](https://docs.aws.amazon.com/network-manager/latest/cloudwan/cwan-flow-logs.html) + in the *Amazon Web Services Cloud WAN User Guide*. + + Specify the fields using the `${field-id}` format, separated by spaces. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the flow logs.""" + max_aggregation_interval: int | None + """ + The maximum interval of time during which a flow of packets is captured + and aggregated into a flow log record. The possible values are 60 + seconds (1 minute) or 600 seconds (10 minutes). This parameter must be + 60 seconds for transit gateway and Cloud WAN resource types. + + When a network interface is attached to a [Nitro-based + instance](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html), + the aggregation interval is always 60 seconds or less, regardless of the + value that you specify. + + Default: 600 + """ + destination_options: ( + DestinationOptionsRequest | DestinationOptionsRequestDict | None + ) + """The destination options.""" + tag_field_specifications: ( + Sequence[TagFieldSpecificationRequest | TagFieldSpecificationRequestDict] | None + ) + """ + The tag configuration associated with the Flow Logs Amazon EC2 Tags + feature fields in your custom log format. + """ + @dataclass(kw_only=True) class CreateFlowLogsOutput(_SerdeShape): """Dataclass for CreateFlowLogsOutput structure.""" @@ -4884,6 +6937,36 @@ class CreateFpgaImageInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the FPGA image during creation.""" +class CreateFpgaImageInputDict(TypedDict, total=False): + """Dictionary form of `CreateFpgaImageInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + input_storage_location: Required[StorageLocation | StorageLocationDict] + """ + The location of the encrypted design checkpoint in Amazon S3. The input + must be a tarball. + """ + logs_storage_location: StorageLocation | StorageLocationDict | None + """The location in Amazon S3 for the output logs.""" + description: str | None + """A description for the AFI.""" + name: str | None + """A name for the AFI.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the FPGA image during creation.""" + @dataclass(kw_only=True) class CreateFpgaImageOutput(_SerdeShape): """Dataclass for CreateFpgaImageOutput structure.""" @@ -4974,7 +7057,127 @@ class CreateImageInput(_SerdeShape): """ instance_id: str | None = ... """The ID of the instance.""" - name: str | None = ... + name: str | None = ... + """ + A name for the new image. + + Constraints: 3-128 alphanumeric characters, parentheses (()), square + brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), + single quotes ('), at-signs (@), or underscores(_) + """ + description: str | None = ... + """A description for the new image.""" + no_reboot: bool | None = ... + """ + Indicates whether or not the instance should be automatically rebooted + before creating the image. Specify one of the following values: + + - `true` - The instance is not rebooted before creating the image. This + creates crash-consistent snapshots that include only the data that has + been written to the volumes at the time the snapshots are created. + Buffered data and data in memory that has not yet been written to the + volumes is not included in the snapshots. + + - `false` - The instance is rebooted before creating the image. This + ensures that all buffered data and data in memory is written to the + volumes before the snapshots are created. + + Default: `false` + """ + block_device_mappings: list[BlockDeviceMapping] | None = ... + """ + The block device mappings. + + When using the CreateImage action: + + - You can't change the volume size using the VolumeSize parameter. If + you want a different volume size, you must first change the volume + size of the source instance. + + - You can't modify the encryption status of existing volumes or + snapshots. To create an AMI with volumes or snapshots that have a + different encryption status (for example, where the source volume and + snapshots are unencrypted, and you want to create an AMI with + encrypted volumes or snapshots), copy the image instead. + + - The only option that can be changed for existing mappings or snapshots + is `DeleteOnTermination`. + """ + +class CreateImageInputDict(TypedDict, total=False): + """Dictionary form of `CreateImageInput`.""" + + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the AMI and snapshots on creation. You can tag the + AMI, the snapshots, or both. + + - To tag the AMI, the value for `ResourceType` must be `image`. + + - To tag the snapshots that are created of the root volume and of other + Amazon EBS volumes that are attached to the instance, the value for + `ResourceType` must be `snapshot`. The same tag is applied to all of + the snapshots that are created. + + If you specify other values for `ResourceType`, the request fails. + + To tag an AMI or snapshot after it has been created, see + [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). + """ + snapshot_location: str | None + """ + Note: + Only supported for instances in Local Zones and for instances on + Outposts that support local snapshots. If the source instance is not in + one of these locations, omit this parameter. + + The Amazon S3 location where the snapshots will be stored. + + - To create local snapshots in the same Local Zone or on the same + Outpost as the source instance, specify `local`. + + - To create regional snapshots in the parent Region of the Local Zone or + Outpost, specify `regional`. + + If the source instance is in a Local Zone and you omit this parameter, + regional snapshots are created in the parent Region of the Local Zone. + + If the source instance is on an Outpost that supports local snapshots, + this parameter is required. If you omit it, the request fails with an + `InvalidParameterValue` error. + + Default: `regional` (for instances in Local Zones only) + """ + boot_mode_override: str | None + """ + The boot mode of the new image, which overrides the default boot mode. + By default, if you do not specify this parameter, the new image inherits + the `boot-mode` from the source instance. + + A value of `uefi` indicates that the image only supports UEFI boot mode. + You can specify this parameter only if the `current-instance-boot-mode` + of the source instance is `uefi`. To find the `boot-mode` or + `current-instance-boot-mode` of an instance, see + [DescribeInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html). + + Note: + The operating system contained in the AMI must be configured to support + the specified boot mode. + + For more information, see [Instance launch behavior with Amazon EC2 boot + modes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html) + in the *Amazon EC2 User Guide*. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the instance.""" + name: Required[str] """ A name for the new image. @@ -4982,9 +7185,9 @@ class CreateImageInput(_SerdeShape): brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_) """ - description: str | None = ... + description: str | None """A description for the new image.""" - no_reboot: bool | None = ... + no_reboot: bool | None """ Indicates whether or not the instance should be automatically rebooted before creating the image. Specify one of the following values: @@ -5001,7 +7204,7 @@ class CreateImageInput(_SerdeShape): Default: `false` """ - block_device_mappings: list[BlockDeviceMapping] | None = ... + block_device_mappings: Sequence[BlockDeviceMapping | BlockDeviceMappingDict] | None """ The block device mappings. @@ -5072,6 +7275,44 @@ class CreateImageUsageReportInput(_SerdeShape): [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). """ +class CreateImageUsageReportInputDict(TypedDict, total=False): + """Dictionary form of `CreateImageUsageReportInput`.""" + + image_id: Required[str] + """The ID of the image to report on.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + resource_types: Required[ + Sequence[ImageUsageResourceTypeRequest | ImageUsageResourceTypeRequestDict] + ] + """The resource types to include in the report.""" + account_ids: Sequence[str] | None + """ + The Amazon Web Services account IDs to include in the report. To include + all accounts, omit this parameter. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure + idempotency of the request. + + This field is autopopulated if not provided. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the report on creation. The `ResourceType` must be + set to `image-usage-report`; any other value will cause the report + creation to fail. + + To tag a report after it has been created, see + [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). + """ + @dataclass(kw_only=True) class CreateImageUsageReportOutput(_SerdeShape): """Dataclass for CreateImageUsageReportOutput structure.""" @@ -5152,6 +7393,71 @@ class CreateInstanceConnectEndpointInput(_SerdeShape): be `ipv4`. """ +class CreateInstanceConnectEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateInstanceConnectEndpointInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + subnet_id: Required[str] + """ + The ID of the subnet in which to create the EC2 Instance Connect + Endpoint. + """ + security_group_ids: Sequence[str] | None + """ + One or more security groups to associate with the endpoint. If you + don't specify a security group, the default security group for your VPC + will be associated with the endpoint. + """ + preserve_client_ip: bool | None + """ + Indicates whether the client IP address is preserved as the source. The + following are the possible values. + + - `true` - Use the client IP address as the source. + + - `false` - Use the network interface IP address as the source. + + Note: + `PreserveClientIp` is only supported on IPv4 EC2 Instance Connect + Endpoints. To use `PreserveClientIp`, the value for `IpAddressType` must + be `ipv4`. + + Default: `false` + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the EC2 Instance Connect Endpoint during creation.""" + ip_address_type: str | None + """ + The IP address type of the endpoint. + + If no value is specified, the default value is determined by the IP + address type of the subnet: + + - `dualstack` - If the subnet has both IPv4 and IPv6 CIDRs + + - `ipv4` - If the subnet has only IPv4 CIDRs + + - `ipv6` - If the subnet has only IPv6 CIDRs + + Note: + `PreserveClientIp` is only supported on IPv4 EC2 Instance Connect + Endpoints. To use `PreserveClientIp`, the value for `IpAddressType` must + be `ipv4`. + """ + @dataclass(kw_only=True) class CreateInstanceConnectEndpointOutput(_SerdeShape): """Dataclass for CreateInstanceConnectEndpointOutput structure.""" @@ -5218,6 +7524,58 @@ class CreateInstanceEventWindowInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the event window.""" +class CreateInstanceEventWindowInputDict(TypedDict, total=False): + """Dictionary form of `CreateInstanceEventWindowInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + name: str | None + """The name of the event window.""" + time_ranges: ( + Sequence[ + InstanceEventWindowTimeRangeRequest + | InstanceEventWindowTimeRangeRequestDict + ] + | None + ) + """ + The time range for the event window. If you specify a time range, you + can't specify a cron expression. + """ + cron_expression: str | None + """ + The cron expression for the event window, for example, + `* 0-4,20-23 * * 1,5`. If you specify a cron expression, you can't + specify a time range. + + Constraints: + + - Only hour and day of the week values are supported. + + - For day of the week values, you can specify either integers `0` + through `6`, or alternative single values `SUN` through `SAT`. + + - The minute, month, and year must be specified by `*`. + + - The hour value must be one or a multiple range, for example, `0-4` or + `0-4,20-23`. + + - Each hour range must be >= 2 hours, for example, `0-2` or `20-23`. + + - The event window must be >= 4 hours. The combined total time ranges + in the event window must be >= 4 hours. + + For more information about cron expressions, see + [cron](https://en.wikipedia.org/wiki/Cron) on the *Wikipedia website*. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the event window.""" + @dataclass(kw_only=True) class CreateInstanceEventWindowOutput(_SerdeShape): """Dataclass for CreateInstanceEventWindowOutput structure.""" @@ -5250,6 +7608,25 @@ class CreateInstanceExportTaskInput(_SerdeShape): export_to_s3_task: ExportToS3TaskSpecification | None = ... """The format and location for an export instance task.""" +class CreateInstanceExportTaskInputDict(TypedDict, total=False): + """Dictionary form of `CreateInstanceExportTaskInput`.""" + + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the export instance task during creation.""" + description: str | None + """ + A description for the conversion task or the resource being exported. + The maximum length is 255 characters. + """ + instance_id: Required[str] + """The ID of the instance.""" + target_environment: Required[str] + """The target virtualization environment.""" + export_to_s3_task: Required[ + ExportToS3TaskSpecification | ExportToS3TaskSpecificationDict + ] + """The format and location for an export instance task.""" + @dataclass(kw_only=True) class CreateInstanceExportTaskOutput(_SerdeShape): """Dataclass for CreateInstanceExportTaskOutput structure.""" @@ -5278,6 +7655,19 @@ class CreateInternetGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateInternetGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateInternetGatewayInput`.""" + + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the internet gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateInternetGatewayOutput(_SerdeShape): """Dataclass for CreateInternetGatewayOutput structure.""" @@ -5338,6 +7728,48 @@ class CreateInterruptibleCapacityReservationAllocationInput(_SerdeShape): your source Capacity Reservation. The default value is `default`. """ +class CreateInterruptibleCapacityReservationAllocationInputDict(TypedDict, total=False): + """Dictionary form of `CreateInterruptibleCapacityReservationAllocationInput`.""" + + capacity_reservation_id: Required[str] + """ + The ID of the source Capacity Reservation from which to create the + interruptible Capacity Reservation. Your Capacity Reservation must be in + active state with no end date set and have available capacity for + allocation. + """ + instance_count: Required[int] + """ + The number of instances to allocate from your source reservation. You + can only allocate available instances (also called unused capacity). + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the interruptible Capacity Reservation during + creation. + """ + zero_size_preference: str | None + """ + Specifies the behavior for the interruptible Capacity Reservation when + you reduce its allocation to zero instances. Specify `retain` to keep + the interruptible Capacity Reservation active at zero capacity so that + you can allocate instances to it again later. Specify `default` to + cancel the interruptible Capacity Reservation and return the capacity to + your source Capacity Reservation. The default value is `default`. + """ + @dataclass(kw_only=True) class CreateInterruptibleCapacityReservationAllocationOutput(_SerdeShape): """ @@ -5394,6 +7826,29 @@ class CreateIpamExternalResourceVerificationTokenInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateIpamExternalResourceVerificationTokenInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamExternalResourceVerificationTokenInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """The ID of the IPAM that will create the token.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """Token tags.""" + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateIpamExternalResourceVerificationTokenOutput(_SerdeShape): """ @@ -5465,7 +7920,77 @@ class CreateIpamInput(_SerdeShape): Enable this option to use your own GUA ranges as private IPv6 addresses. This option is disabled by default. """ - metered_account: str | None = ... + metered_account: str | None = ... + """ + A metered account is an Amazon Web Services account that is charged for + active IP addresses managed in IPAM. For more information, see [Enable + cost + distribution](https://docs.aws.amazon.com/vpc/latest/ipam/ipam-enable-cost-distro.html) + in the *Amazon VPC IPAM User Guide*. + + Possible values: + + - `ipam-owner` (default): The Amazon Web Services account which owns the + IPAM is charged for all active IP addresses managed in IPAM. + + - `resource-owner`: The Amazon Web Services account that owns the IP + address is charged for the active IP address. + """ + +class CreateIpamInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + description: str | None + """A description for the IPAM.""" + operating_regions: ( + Sequence[AddIpamOperatingRegion | AddIpamOperatingRegionDict] | None + ) + """ + The operating Regions for the IPAM. Operating Regions are Amazon Web + Services Regions where the IPAM is allowed to manage IP address CIDRs. + IPAM only discovers and monitors resources in the Amazon Web Services + Regions you select as operating Regions. + + For more information about operating Regions, see [Create an + IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/create-ipam.html) in + the *Amazon VPC IPAM User Guide*. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The key/value combination of a tag assigned to the resource. Use the tag + key in the filter name and the tag value as the filter value. For + example, to find all resources that have a tag with the key `Owner` and + the value `TeamA`, specify `tag:Owner` for the filter name and `TeamA` + for the filter value. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + tier: str | None + """ + IPAM is offered in a Free Tier and an Advanced Tier. For more + information about the features available in each tier and the costs + associated with the tiers, see [Amazon VPC pricing > IPAM + tab](http://aws.amazon.com/vpc/pricing/). + """ + enable_private_gua: bool | None + """ + Enable this option to use your own GUA ranges as private IPv6 addresses. + This option is disabled by default. + """ + metered_account: str | None """ A metered account is an Amazon Web Services account that is charged for active IP addresses managed in IPAM. For more information, see [Enable @@ -5526,6 +8051,49 @@ class CreateIpamInternetRegistryAssociationInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateIpamInternetRegistryAssociationInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamInternetRegistryAssociationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """The ID of the IPAM to associate with the internet registry.""" + rir: Required[str] + """ + The Regional Internet Registry to associate with. Possible values: + + - `ripe` - RIPE NCC (Europe, the Middle East, and Central Asia). + + - `apnic` - APNIC (Asia Pacific). + + - `arin` - ARIN (North America). + + - `lacnic` - LACNIC (Latin America and the Caribbean). + """ + organization_handle: Required[str] + """ + The organization handle at the internet registry (for example, a RIPE + NCC organization ID or ARIN Org ID). + """ + description: str | None + """A description for the internet registry association.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the internet registry association.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, the operation ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateIpamInternetRegistryAssociationOutput(_SerdeShape): """Dataclass for CreateIpamInternetRegistryAssociationOutput structure.""" @@ -5577,6 +8145,28 @@ class CreateIpamPolicyInput(_SerdeShape): ipam_id: str | None = ... """The ID of the IPAM for which you're creating the policy.""" +class CreateIpamPolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamPolicyInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the IPAM policy.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure the idempotency of the + request. + + This field is autopopulated if not provided. + """ + ipam_id: Required[str] + """The ID of the IPAM for which you're creating the policy.""" + @dataclass(kw_only=True) class CreateIpamPolicyOutput(_SerdeShape): """Dataclass for CreateIpamPolicyOutput structure.""" @@ -5731,6 +8321,138 @@ class CreateIpamPoolInput(_SerdeShape): source_resource: IpamPoolSourceResourceRequest | None = ... """The resource used to provision CIDRs to a resource planning pool.""" +class CreateIpamPoolInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamPoolInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_scope_id: Required[str] + """The ID of the scope in which you would like to create the IPAM pool.""" + locale: str | None + """ + The locale for the pool should be one of the following: + + - An Amazon Web Services Region where you want this IPAM pool to be + available for allocations. + + - The network border group for an Amazon Web Services Local Zone where + you want this IPAM pool to be available for allocations ([supported + Local + Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail)). + This option is only available for IPAM IPv4 pools in the public scope. + + Possible values: Any Amazon Web Services Region or supported Amazon Web + Services Local Zone. Default is `none` and means any locale. + """ + source_ipam_pool_id: str | None + """ + The ID of the source IPAM pool. Use this option to create a pool within + an existing pool. Note that the CIDR you provision for the pool within + the source pool must be available in the source pool's CIDR range. + """ + description: str | None + """A description for the IPAM pool.""" + address_family: Required[str] + """ + The IP protocol assigned to this IPAM pool. You must choose either IPv4 + or IPv6 protocol for a pool. + """ + auto_import: bool | None + """ + If selected, IPAM will continuously look for resources within the CIDR + range of this pool and automatically import them as allocations into + your IPAM. The CIDRs that will be allocated for these resources must not + already be allocated to other resources in order for the import to + succeed. IPAM will import a CIDR regardless of its compliance with the + pool's allocation rules, so a resource might be imported and + subsequently marked as noncompliant. If IPAM discovers multiple CIDRs + that overlap, IPAM will import the largest CIDR only. If IPAM discovers + multiple CIDRs with matching CIDRs, IPAM will randomly import one of + them only. + + A locale must be set on the pool for this feature to work. + """ + publicly_advertisable: bool | None + """ + Determines if the pool is publicly advertisable. The request can only + contain `PubliclyAdvertisable` if `AddressFamily` is `ipv6` and + `PublicIpSource` is `byoip`. + """ + allocation_min_netmask_length: int | None + """ + The minimum netmask length required for CIDR allocations in this IPAM + pool to be compliant. The minimum netmask length must be less than the + maximum netmask length. Possible netmask lengths for IPv4 addresses are + 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. + """ + allocation_max_netmask_length: int | None + """ + The maximum netmask length possible for CIDR allocations in this IPAM + pool to be compliant. The maximum netmask length must be greater than + the minimum netmask length. Possible netmask lengths for IPv4 addresses + are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. + """ + allocation_default_netmask_length: int | None + """ + The default netmask length for allocations added to this pool. If, for + example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 + here, new allocations will default to 10.0.0.0/16. + """ + allocation_resource_tags: ( + Sequence[RequestIpamResourceTag | RequestIpamResourceTagDict] | None + ) + """ + Tags that are required for resources that use CIDRs from this IPAM pool. + Resources that do not have these tags will not be allowed to allocate + space from the pool. If the resources have their tags changed after they + have allocated space or if the allocation tagging requirements are + changed on the pool, the resource may be marked as noncompliant. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The key/value combination of a tag assigned to the resource. Use the tag + key in the filter name and the tag value as the filter value. For + example, to find all resources that have a tag with the key `Owner` and + the value `TeamA`, specify `tag:Owner` for the filter name and `TeamA` + for the filter value. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + aws_service: str | None + """ + Limits which service in Amazon Web Services that the pool can be used + in. \"ec2\", for example, allows users to use space for Elastic IP + addresses and VPCs. + """ + public_ip_source: str | None + """ + The IP address source for pools in the public scope. Only used for + provisioning IP address CIDRs to pools in the public scope. Default is + `byoip`. For more information, see [Create IPv6 + pools](https://docs.aws.amazon.com/vpc/latest/ipam/intro-create-ipv6-pools.html) + in the *Amazon VPC IPAM User Guide*. By default, you can add only one + Amazon-provided IPv6 CIDR block to a top-level IPv6 pool if + PublicIpSource is `amazon`. For information on increasing the default + limit, see [Quotas for your + IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html) in + the *Amazon VPC IPAM User Guide*. + """ + source_resource: ( + IpamPoolSourceResourceRequest | IpamPoolSourceResourceRequestDict | None + ) + """The resource used to provision CIDRs to a resource planning pool.""" + @dataclass(kw_only=True) class CreateIpamPoolOutput(_SerdeShape): """Dataclass for CreateIpamPoolOutput structure.""" @@ -5798,6 +8520,63 @@ class CreateIpamPrefixListResolverInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateIpamPrefixListResolverInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamPrefixListResolverInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """ + The ID of the IPAM that will serve as the source of the IP address + database for CIDR selection. The IPAM must be in the Advanced tier to + use this feature. + """ + description: str | None + """ + A description for the IPAM prefix list resolver to help you identify its + purpose and configuration. + """ + address_family: Required[str] + """ + The address family for the IPAM prefix list resolver. Valid values are + `ipv4` and `ipv6`. You must create separate resolvers for IPv4 and IPv6 + CIDRs as they cannot be mixed in the same resolver. + """ + rules: ( + Sequence[ + IpamPrefixListResolverRuleRequest | IpamPrefixListResolverRuleRequestDict + ] + | None + ) + """ + The CIDR selection rules for the resolver. + + CIDR selection rules define the business logic for selecting CIDRs from + IPAM. If a CIDR matches any of the rules, it will be included. If a rule + has multiple conditions, the CIDR has to match every condition of that + rule. You can create a prefix list resolver without any CIDR selection + rules, but it will generate empty versions (containing no CIDRs) until + you add rules. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the IPAM prefix list resolver during creation. Tags + help you organize and manage your Amazon Web Services resources. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateIpamPrefixListResolverOutput(_SerdeShape): """Dataclass for CreateIpamPrefixListResolverOutput structure.""" @@ -5859,13 +8638,74 @@ class CreateIpamPrefixListResolverTargetInput(_SerdeShape): Choose this for automatic updates when you want your prefix lists to stay current with infrastructure changes without manual intervention. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: list[TagSpecification] | None = ... + """ + The tags to apply to the IPAM prefix list resolver target during + creation. Tags help you organize and manage your Amazon Web Services + resources. + """ + client_token: str | None = ... + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + +class CreateIpamPrefixListResolverTargetInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamPrefixListResolverTargetInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_prefix_list_resolver_id: Required[str] + """ + The ID of the IPAM prefix list resolver that will manage the + synchronization of CIDRs to the target prefix list. + """ + prefix_list_id: Required[str] + """ + The ID of the managed prefix list that will be synchronized with CIDRs + selected by the IPAM prefix list resolver. This prefix list becomes an + IPAM managed prefix list. + + An IPAM-managed prefix list is a customer-managed prefix list that has + been associated with an IPAM prefix list resolver target. When a prefix + list becomes IPAM managed, its CIDRs are automatically synchronized + based on the IPAM prefix list resolver's CIDR selection rules, and + direct CIDR modifications are restricted. + """ + prefix_list_region: Required[str] + """ + The Amazon Web Services Region where the prefix list is located. This is + required when referencing a prefix list in a different Region. + """ + desired_version: int | None + """ + The specific version of the prefix list to target. If not specified, the + resolver will target the latest version. + """ + track_latest_version: Required[bool] + """ + Indicates whether the resolver target should automatically track the + latest version of the prefix list. When enabled, the target will always + synchronize with the most current version of the prefix list. + + Choose this for automatic updates when you want your prefix lists to + stay current with infrastructure changes without manual intervention. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ The tags to apply to the IPAM prefix list resolver target during creation. Tags help you organize and manage your Amazon Web Services resources. """ - client_token: str | None = ... + client_token: str | None """ A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see [Ensuring @@ -5917,6 +8757,36 @@ class CreateIpamResourceDiscoveryInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateIpamResourceDiscoveryInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamResourceDiscoveryInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + description: str | None + """A description for the IPAM resource discovery.""" + operating_regions: ( + Sequence[AddIpamOperatingRegion | AddIpamOperatingRegionDict] | None + ) + """ + Operating Regions for the IPAM resource discovery. Operating Regions are + Amazon Web Services Regions where the IPAM is allowed to manage IP + address CIDRs. IPAM only discovers and monitors resources in the Amazon + Web Services Regions you select as operating Regions. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """Tag specifications for the IPAM resource discovery.""" + client_token: str | None + """ + A client token for the IPAM resource discovery. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateIpamResourceDiscoveryOutput(_SerdeShape): """Dataclass for CreateIpamResourceDiscoveryOutput structure.""" @@ -5977,6 +8847,51 @@ class CreateIpamRoutingPolicyRegistrationInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateIpamRoutingPolicyRegistrationInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamRoutingPolicyRegistrationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + cidr: Required[str] + """The IP address prefix in CIDR notation to authorize in the ROA.""" + asns: Required[Sequence[str]] + """The Autonomous System Numbers (ASNs) authorized to originate the prefix.""" + permit_more_specific_announcements: bool | None + """ + Specifies whether to permit more specific route announcements than the + CIDR prefix. When enabled, ASNs can announce sub-prefixes of the + authorized CIDR up to the specified maximum length. Default: `false`. + """ + max_length: int | None + """ + The maximum prefix length that the ASNs are authorized to announce. Must + be greater than or equal to the prefix length of the CIDR. If not + specified, defaults to the prefix length of the CIDR (exact match only). + """ + description: str | None + """A description for the routing policy registration.""" + force: bool | None + """ + Forces the creation of the routing policy registration even if it + conflicts with an announced route. Default: `false`. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, the operation ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateIpamRoutingPolicyRegistrationOutput(_SerdeShape): """Dataclass for CreateIpamRoutingPolicyRegistrationOutput structure.""" @@ -6042,6 +8957,53 @@ class CreateIpamScopeInput(_SerdeShape): ranges. """ +class CreateIpamScopeInputDict(TypedDict, total=False): + """Dictionary form of `CreateIpamScopeInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """The ID of the IPAM for which you're creating this scope.""" + description: str | None + """A description for the scope you're creating.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The key/value combination of a tag assigned to the resource. Use the tag + key in the filter name and the tag value as the filter value. For + example, to find all resources that have a tag with the key `Owner` and + the value `TeamA`, specify `tag:Owner` for the filter name and `TeamA` + for the filter value. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + external_authority_configuration: ( + ExternalAuthorityConfiguration | ExternalAuthorityConfigurationDict | None + ) + """ + The configuration that links an Amazon VPC IPAM scope to an external + authority system. It specifies the type of external system and the + external resource identifier that identifies your account or instance in + that system. + + In IPAM, an external authority is a third-party IP address management + system that provides CIDR blocks when you provision address space for + top-level IPAM pools. This allows you to use your existing IP management + system to control which address ranges are allocated to Amazon Web + Services while using Amazon VPC IPAM to manage subnets within those + ranges. + """ + @dataclass(kw_only=True) class CreateIpamScopeOutput(_SerdeShape): """Dataclass for CreateIpamScopeOutput structure.""" @@ -6089,6 +9051,38 @@ class CreateKeyPairInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateKeyPairInputDict(TypedDict, total=False): + """Dictionary form of `CreateKeyPairInput`.""" + + key_name: Required[str] + """ + A unique name for the key pair. + + Constraints: Up to 255 ASCII characters + """ + key_type: str | None + """ + The type of key pair. Note that ED25519 keys are not supported for + Windows instances. + + Default: `rsa` + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the new key pair.""" + key_format: str | None + """ + The format of the key pair. + + Default: `pem` + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateKeyPairOutput(_SerdeShape): """Describes a key pair.""" @@ -6162,6 +9156,51 @@ class CreateLaunchTemplateInput(_SerdeShape): structure. """ +class CreateLaunchTemplateInputDict(TypedDict, total=False): + """Dictionary form of `CreateLaunchTemplateInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier you provide to ensure the idempotency + of the request. If a client token isn't specified, a randomly generated + token is used in the request to ensure idempotency. + + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + Constraint: Maximum 128 ASCII characters. + + This field is autopopulated if not provided. + """ + launch_template_name: Required[str] + """A name for the launch template.""" + version_description: str | None + """A description for the first version of the launch template.""" + launch_template_data: Required[ + RequestLaunchTemplateData | RequestLaunchTemplateDataDict + ] + """The information for the launch template.""" + operator: OperatorRequest | OperatorRequestDict | None + """Reserved for internal use.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the launch template on creation. To tag the launch + template, the resource type must be `launch-template`. + + To specify the tags for the resources that are created when an instance + is launched, you must use the `TagSpecifications` parameter in the + [launch template + data](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestLaunchTemplateData.html) + structure. + """ + @dataclass(kw_only=True) class CreateLaunchTemplateOutput(_SerdeShape): """Dataclass for CreateLaunchTemplateOutput structure.""" @@ -6249,6 +9288,74 @@ class CreateLaunchTemplateVersionInput(_SerdeShape): Default: `false` """ +class CreateLaunchTemplateVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateLaunchTemplateVersionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier you provide to ensure the idempotency + of the request. If a client token isn't specified, a randomly generated + token is used in the request to ensure idempotency. + + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + Constraint: Maximum 128 ASCII characters. + + This field is autopopulated if not provided. + """ + launch_template_id: str | None + """ + The ID of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + launch_template_name: str | None + """ + The name of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + source_version: str | None + """ + The version of the launch template on which to base the new version. + Snapshots applied to the block device mapping are ignored when creating + a new version unless they are explicitly included. + + If you specify this parameter, the new version inherits the launch + parameters from the source version. If you specify additional launch + parameters for the new version, they overwrite any corresponding launch + parameters inherited from the source version. + + If you omit this parameter, the new version contains only the launch + parameters that you specify for the new version. + """ + version_description: str | None + """A description for the version of the launch template.""" + launch_template_data: Required[ + RequestLaunchTemplateData | RequestLaunchTemplateDataDict + ] + """The information for the launch template.""" + resolve_alias: bool | None + """ + If `true`, and if a Systems Manager parameter is specified for + `ImageId`, the AMI ID is displayed in the response for `imageID`. For + more information, see [Use a Systems Manager parameter instead of an AMI + ID](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id) + in the *Amazon EC2 User Guide*. + + Default: `false` + """ + @dataclass(kw_only=True) class CreateLaunchTemplateVersionOutput(_SerdeShape): """Dataclass for CreateLaunchTemplateVersionOutput structure.""" @@ -6298,6 +9405,34 @@ class CreateLocalGatewayRouteInput(_SerdeShape): `DestinationCidrBlock` in the same request. """ +class CreateLocalGatewayRouteInputDict(TypedDict, total=False): + """Dictionary form of `CreateLocalGatewayRouteInput`.""" + + destination_cidr_block: str | None + """ + The CIDR range used for destination matches. Routing decisions are based + on the most specific match. + """ + local_gateway_route_table_id: Required[str] + """The ID of the local gateway route table.""" + local_gateway_virtual_interface_group_id: str | None + """The ID of the virtual interface group.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_id: str | None + """The ID of the network interface.""" + destination_prefix_list_id: str | None + """ + The ID of the prefix list. Use a prefix list in place of + `DestinationCidrBlock`. You cannot use `DestinationPrefixListId` and + `DestinationCidrBlock` in the same request. + """ + @dataclass(kw_only=True) class CreateLocalGatewayRouteOutput(_SerdeShape): """Dataclass for CreateLocalGatewayRouteOutput structure.""" @@ -6330,6 +9465,23 @@ class CreateLocalGatewayRouteTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateLocalGatewayRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `CreateLocalGatewayRouteTableInput`.""" + + local_gateway_id: Required[str] + """The ID of the local gateway.""" + mode: str | None + """The mode of the local gateway route table.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags assigned to the local gateway route table.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateLocalGatewayRouteTableOutput(_SerdeShape): """Dataclass for CreateLocalGatewayRouteTableOutput structure.""" @@ -6347,24 +9499,49 @@ class CreateLocalGatewayRouteTableOutput(_SerdeShape): @dataclass(kw_only=True) class CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput(_SerdeShape): """ - Dataclass for - CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput - structure. + Dataclass for + CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput + structure. + """ + + local_gateway_route_table_id: str | None = ... + """The ID of the local gateway route table.""" + local_gateway_virtual_interface_group_id: str | None = ... + """ + The ID of the local gateway route table virtual interface group + association. + """ + tag_specifications: list[TagSpecification] | None = ... + """ + The tags assigned to the local gateway route table virtual interface + group association. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - local_gateway_route_table_id: str | None = ... +class CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict( + TypedDict, total=False +): + """Dictionary form of `CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput`.""" + + local_gateway_route_table_id: Required[str] """The ID of the local gateway route table.""" - local_gateway_virtual_interface_group_id: str | None = ... + local_gateway_virtual_interface_group_id: Required[str] """ The ID of the local gateway route table virtual interface group association. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ The tags assigned to the local gateway route table virtual interface group association. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -6413,6 +9590,23 @@ class CreateLocalGatewayRouteTableVpcAssociationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateLocalGatewayRouteTableVpcAssociationInputDict(TypedDict, total=False): + """Dictionary form of `CreateLocalGatewayRouteTableVpcAssociationInput`.""" + + local_gateway_route_table_id: Required[str] + """The ID of the local gateway route table.""" + vpc_id: Required[str] + """The ID of the VPC.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the local gateway route table VPC association.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateLocalGatewayRouteTableVpcAssociationOutput(_SerdeShape): """ @@ -6458,6 +9652,31 @@ class CreateLocalGatewayVirtualInterfaceGroupInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateLocalGatewayVirtualInterfaceGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateLocalGatewayVirtualInterfaceGroupInput`.""" + + local_gateway_id: Required[str] + """The ID of the local gateway.""" + local_bgp_asn: int | None + """ + The Autonomous System Number(ASN) for the local Border Gateway Protocol + (BGP). + """ + local_bgp_asn_extended: int | None + """The extended 32-bit ASN for the local BGP configuration.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the local gateway virtual interface group when the + resource is being created. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateLocalGatewayVirtualInterfaceGroupOutput(_SerdeShape): """Dataclass for CreateLocalGatewayVirtualInterfaceGroupOutput structure.""" @@ -6520,6 +9739,51 @@ class CreateLocalGatewayVirtualInterfaceInput(_SerdeShape): peer_bgp_asn_extended: int | None = ... """The extended 32-bit ASN of the BGP peer for use with larger ASN values.""" +class CreateLocalGatewayVirtualInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `CreateLocalGatewayVirtualInterfaceInput`.""" + + local_gateway_virtual_interface_group_id: Required[str] + """The ID of the local gateway virtual interface group.""" + outpost_lag_id: Required[str] + """ + References the Link Aggregation Group (LAG) that connects the Outpost to + on-premises network devices. + """ + vlan: Required[int] + """ + The virtual local area network (VLAN) used for the local gateway virtual + interface. + """ + local_address: Required[str] + """ + The IP address assigned to the local gateway virtual interface on the + Outpost side. Only IPv4 is supported. + """ + peer_address: Required[str] + """ + The peer IP address for the local gateway virtual interface. Only IPv4 + is supported. + """ + peer_bgp_asn: int | None + """ + The Autonomous System Number (ASN) of the Border Gateway Protocol (BGP) + peer. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to a resource when the local gateway virtual interface + is being created. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + peer_bgp_asn_extended: int | None + """The extended 32-bit ASN of the BGP peer for use with larger ASN values.""" + @dataclass(kw_only=True) class CreateLocalGatewayVirtualInterfaceOutput(_SerdeShape): """Dataclass for CreateLocalGatewayVirtualInterfaceOutput structure.""" @@ -6602,6 +9866,74 @@ class CreateMacSystemIntegrityProtectionModificationTaskInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """Specifies tags to apply to the SIP modification task.""" +class CreateMacSystemIntegrityProtectionModificationTaskInputDict( + TypedDict, total=False +): + """Dictionary form of `CreateMacSystemIntegrityProtectionModificationTaskInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the Amazon EC2 Mac instance.""" + mac_credentials: str | None + """ + **[Apple silicon Mac instances only]** Specifies the following + credentials: + + - **Internal disk administrative user** + + - **Username** - Only the default administrative user + (`aws-managed-user`) is supported and it is used by default. You + can't specify a different administrative user. + + - **Password** - If you did not change the default password for + `aws-managed-user`, specify the default password, which is *blank*. + Otherwise, specify your password. + + - **Amazon EBS root volume administrative user** + + - **Username** - If you did not change the default administrative + user, specify `ec2-user`. Otherwise, specify the username for your + administrative user. + + - **Password** - Specify the password for the administrative user. + + The credentials must be specified in the following JSON format: + + `{ "internalDiskPassword":"`*`internal-disk-admin_password`*`", "rootVolumeUsername":"`*`root-volume-admin_username`*`", "rootVolumepassword":"`*`root-volume-admin_password`*`" }` + """ + mac_system_integrity_protection_configuration: ( + MacSystemIntegrityProtectionConfigurationRequest + | MacSystemIntegrityProtectionConfigurationRequestDict + | None + ) + """ + Specifies the overrides to selectively enable or disable individual SIP + settings. The individual settings you specify here override the overall + SIP status you specify for **MacSystemIntegrityProtectionStatus**. + """ + mac_system_integrity_protection_status: Required[str] + """ + Specifies the overall SIP status for the instance. To enable all SIP + settings, specify `enabled`. To disable all SIP settings, specify + `disabled`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """Specifies tags to apply to the SIP modification task.""" + @dataclass(kw_only=True) class CreateMacSystemIntegrityProtectionModificationTaskOutput(_SerdeShape): """ @@ -6660,6 +9992,46 @@ class CreateManagedPrefixListInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateManagedPrefixListInputDict(TypedDict, total=False): + """Dictionary form of `CreateManagedPrefixListInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + prefix_list_name: Required[str] + """ + A name for the prefix list. + + Constraints: Up to 255 characters in length. The name cannot start with + `com.amazonaws`. + """ + entries: Sequence[AddPrefixListEntry | AddPrefixListEntryDict] | None + """One or more entries for the prefix list.""" + max_entries: Required[int] + """The maximum number of entries for the prefix list.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the prefix list during creation.""" + address_family: Required[str] + """ + The IP address type. + + Valid Values: `IPv4` | `IPv6` + """ + client_token: str | None + """ + Unique, case-sensitive identifier you provide to ensure the idempotency + of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + Constraints: Up to 255 UTF-8 characters in length. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateManagedPrefixListOutput(_SerdeShape): """Dataclass for CreateManagedPrefixListOutput structure.""" @@ -6719,9 +10091,111 @@ class CreateNatGatewayInput(_SerdeShape): """ subnet_id: str | None = ... """The ID of the subnet in which to create the NAT gateway.""" - vpc_id: str | None = ... + vpc_id: str | None = ... + """The ID of the VPC where you want to create a regional NAT gateway.""" + availability_zone_addresses: list[AvailabilityZoneAddress] | None = ... + """ + For regional NAT gateways only: Specifies which Availability Zones you + want the NAT gateway to support and the Elastic IP addresses (EIPs) to + use in each AZ. The regional NAT gateway uses these EIPs to handle + outbound NAT traffic from their respective AZs. If not specified, the + NAT gateway will automatically expand to new AZs and associate EIPs upon + detection of an elastic network interface. If you specify this + parameter, auto-expansion is disabled and you must manually manage AZ + coverage. + + A regional NAT gateway is a single NAT Gateway that works across + multiple availability zones (AZs) in your VPC, providing redundancy, + scalability and availability across all the AZs in a Region. + + For more information, see [Regional NAT gateways for automatic multi-AZ + expansion](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateways-regional.html) + in the *Amazon VPC User Guide*. + """ + tag_specifications: list[TagSpecification] | None = ... + """The tags to assign to the NAT gateway.""" + connectivity_type: str | None = ... + """ + Indicates whether the NAT gateway supports public or private + connectivity. The default is public connectivity. + """ + private_ip_address: str | None = ... + """ + The private IPv4 address to assign to the NAT gateway. If you don't + provide an address, a private IPv4 address will be automatically + assigned. + """ + secondary_allocation_ids: list[str] | None = ... + """ + Secondary EIP allocation IDs. For more information, see [Create a NAT + gateway](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html) + in the *Amazon VPC User Guide*. + """ + secondary_private_ip_addresses: list[str] | None = ... + """ + Secondary private IPv4 addresses. For more information about secondary + addresses, see [Create a NAT + gateway](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html) + in the *Amazon VPC User Guide*. + """ + secondary_private_ip_address_count: int | None = ... + """ + [Private NAT gateway only] The number of secondary private IPv4 + addresses you want to assign to the NAT gateway. For more information + about secondary addresses, see [Create a NAT + gateway](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html) + in the *Amazon VPC User Guide*. + """ + +class CreateNatGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateNatGatewayInput`.""" + + availability_mode: str | None + """ + Specifies whether to create a zonal (single-AZ) or regional (multi-AZ) + NAT gateway. Defaults to `zonal`. + + A zonal NAT gateway is a NAT Gateway that provides redundancy and + scalability within a single availability zone. A regional NAT gateway is + a single NAT Gateway that works across multiple availability zones (AZs) + in your VPC, providing redundancy, scalability and availability across + all the AZs in a Region. + + For more information, see [Regional NAT gateways for automatic multi-AZ + expansion](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateways-regional.html) + in the *Amazon VPC User Guide*. + """ + allocation_id: str | None + """ + [Public NAT gateways only] The allocation ID of an Elastic IP address + to associate with the NAT gateway. You cannot specify an Elastic IP + address with a private NAT gateway. If the Elastic IP address is + associated with another resource, you must first disassociate it. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + Constraint: Maximum 64 ASCII characters. + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + subnet_id: str | None + """The ID of the subnet in which to create the NAT gateway.""" + vpc_id: str | None """The ID of the VPC where you want to create a regional NAT gateway.""" - availability_zone_addresses: list[AvailabilityZoneAddress] | None = ... + availability_zone_addresses: ( + Sequence[AvailabilityZoneAddress | AvailabilityZoneAddressDict] | None + ) """ For regional NAT gateways only: Specifies which Availability Zones you want the NAT gateway to support and the Elastic IP addresses (EIPs) to @@ -6740,33 +10214,33 @@ class CreateNatGatewayInput(_SerdeShape): expansion](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateways-regional.html) in the *Amazon VPC User Guide*. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """The tags to assign to the NAT gateway.""" - connectivity_type: str | None = ... + connectivity_type: str | None """ Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity. """ - private_ip_address: str | None = ... + private_ip_address: str | None """ The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned. """ - secondary_allocation_ids: list[str] | None = ... + secondary_allocation_ids: Sequence[str] | None """ Secondary EIP allocation IDs. For more information, see [Create a NAT gateway](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html) in the *Amazon VPC User Guide*. """ - secondary_private_ip_addresses: list[str] | None = ... + secondary_private_ip_addresses: Sequence[str] | None """ Secondary private IPv4 addresses. For more information about secondary addresses, see [Create a NAT gateway](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html) in the *Amazon VPC User Guide*. """ - secondary_private_ip_address_count: int | None = ... + secondary_private_ip_address_count: int | None """ [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. For more information @@ -6856,6 +10330,67 @@ class CreateNetworkAclEntryInput(_SerdeShape): if specifying protocol 6 (TCP) or 17 (UDP). """ +class CreateNetworkAclEntryInputDict(TypedDict, total=False): + """Dictionary form of `CreateNetworkAclEntryInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_acl_id: Required[str] + """The ID of the network ACL.""" + rule_number: Required[int] + """ + The rule number for the entry (for example, 100). ACL entries are + processed in ascending order by rule number. + + Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 + is reserved for internal use. + """ + protocol: Required[str] + """ + The protocol number. A value of \"-1\" means all protocols. If you + specify \"-1\" or a protocol number other than \"6\" (TCP), \"17\" + (UDP), or \"1\" (ICMP), traffic on all ports is allowed, regardless of + any ports or ICMP types or codes that you specify. If you specify + protocol \"58\" (ICMPv6) and specify an IPv4 CIDR block, traffic for all + ICMP types and codes allowed, regardless of any that you specify. If you + specify protocol \"58\" (ICMPv6) and specify an IPv6 CIDR block, you + must specify an ICMP type and code. + """ + rule_action: Required[str] + """Indicates whether to allow or deny the traffic that matches the rule.""" + egress: Required[bool] + """ + Indicates whether this is an egress rule (rule is applied to traffic + leaving the subnet). + """ + cidr_block: str | None + """ + The IPv4 network range to allow or deny, in CIDR notation (for example + `172.16.0.0/24`). We modify the specified CIDR block to its canonical + form; for example, if you specify `100.68.0.18/18`, we modify it to + `100.68.0.0/18`. + """ + ipv6_cidr_block: str | None + """ + The IPv6 network range to allow or deny, in CIDR notation (for example + `2001:db8:1234:1a00::/64`). + """ + icmp_type_code: IcmpTypeCode | IcmpTypeCodeDict | None + """ + ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying + protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block. + """ + port_range: PortRange | PortRangeDict | None + """ + TCP or UDP protocols: The range of ports the rule applies to. Required + if specifying protocol 6 (TCP) or 17 (UDP). + """ + @dataclass(kw_only=True) class CreateNetworkAclEntryOutput(_SerdeShape): """Dataclass for CreateNetworkAclEntryOutput structure.""" @@ -6892,6 +10427,29 @@ class CreateNetworkAclInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class CreateNetworkAclInputDict(TypedDict, total=False): + """Dictionary form of `CreateNetworkAclInput`.""" + + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the network ACL.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + @dataclass(kw_only=True) class CreateNetworkAclOutput(_SerdeShape): """Dataclass for CreateNetworkAclOutput structure.""" @@ -6937,6 +10495,31 @@ class CreateNetworkInsightsAccessScopeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateNetworkInsightsAccessScopeInputDict(TypedDict, total=False): + """Dictionary form of `CreateNetworkInsightsAccessScopeInput`.""" + + match_paths: Sequence[AccessScopePathRequest | AccessScopePathRequestDict] | None + """The paths to match.""" + exclude_paths: Sequence[AccessScopePathRequest | AccessScopePathRequestDict] | None + """The paths to exclude.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateNetworkInsightsAccessScopeOutput(_SerdeShape): """Dataclass for CreateNetworkInsightsAccessScopeOutput structure.""" @@ -6986,46 +10569,243 @@ class CreateNetworkInsightsPathInput(_SerdeShape): the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - client_token: str | None = ... + client_token: str | None = ... + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + filter_at_source: PathRequestFilter | None = ... + """ + Scopes the analysis to network paths that match specific filters at the + source. If you specify this parameter, you can't specify the parameters + for the source IP address or the destination port. + """ + filter_at_destination: PathRequestFilter | None = ... + """ + Scopes the analysis to network paths that match specific filters at the + destination. If you specify this parameter, you can't specify the + parameter for the destination IP address. + """ + +class CreateNetworkInsightsPathInputDict(TypedDict, total=False): + """Dictionary form of `CreateNetworkInsightsPathInput`.""" + + source_ip: str | None + """The IP address of the source.""" + destination_ip: str | None + """The IP address of the destination.""" + source: Required[str] + """ + The ID or ARN of the source. If the resource is in another account, you + must specify an ARN. + """ + destination: str | None + """ + The ID or ARN of the destination. If the resource is in another account, + you must specify an ARN. + """ + protocol: Required[str] + """The protocol.""" + destination_port: int | None + """The destination port.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to add to the path.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + filter_at_source: PathRequestFilter | PathRequestFilterDict | None + """ + Scopes the analysis to network paths that match specific filters at the + source. If you specify this parameter, you can't specify the parameters + for the source IP address or the destination port. + """ + filter_at_destination: PathRequestFilter | PathRequestFilterDict | None + """ + Scopes the analysis to network paths that match specific filters at the + destination. If you specify this parameter, you can't specify the + parameter for the destination IP address. + """ + +@dataclass(kw_only=True) +class CreateNetworkInsightsPathOutput(_SerdeShape): + """Dataclass for CreateNetworkInsightsPathOutput structure.""" + + network_insights_path: NetworkInsightsPath | None = ... + """Information about the path.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateNetworkInterfaceInput(_SerdeShape): + """Dataclass for CreateNetworkInterfaceInput structure.""" + + ipv4_prefixes: list[Ipv4PrefixSpecificationRequest] | None = ... + """ + The IPv4 prefixes assigned to the network interface. + + You can't specify IPv4 prefixes if you've specified one of the + following: a count of IPv4 prefixes, specific private IPv4 addresses, or + a count of private IPv4 addresses. + """ + ipv4_prefix_count: int | None = ... + """ + The number of IPv4 prefixes that Amazon Web Services automatically + assigns to the network interface. + + You can't specify a count of IPv4 prefixes if you've specified one of + the following: specific IPv4 prefixes, specific private IPv4 addresses, + or a count of private IPv4 addresses. + """ + ipv6_prefixes: list[Ipv6PrefixSpecificationRequest] | None = ... + """ + The IPv6 prefixes assigned to the network interface. + + You can't specify IPv6 prefixes if you've specified one of the + following: a count of IPv6 prefixes, specific IPv6 addresses, or a count + of IPv6 addresses. + """ + ipv6_prefix_count: int | None = ... + """ + The number of IPv6 prefixes that Amazon Web Services automatically + assigns to the network interface. + + You can't specify a count of IPv6 prefixes if you've specified one of + the following: specific IPv6 prefixes, specific IPv6 addresses, or a + count of IPv6 addresses. + """ + interface_type: str | None = ... + """ + The type of network interface. The default is `interface`. + + If you specify `efa-only`, do not assign any IP addresses to the network + interface. EFA-only network interfaces do not support IP addresses. + + The only supported values are `interface`, `efa`, `efa-only`, and + `trunk`. + """ + tag_specifications: list[TagSpecification] | None = ... + """The tags to apply to the new network interface.""" + client_token: str | None = ... + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + enable_primary_ipv6: bool | None = ... + """ + If you're creating a network interface in a dual-stack or IPv6-only + subnet, you have the option to assign a primary IPv6 IP address. A + primary IPv6 address is an IPv6 GUA address associated with an ENI that + you have enabled to use a primary IPv6 address. Use this option if the + instance that this ENI will be attached to relies on its IPv6 address + not changing. Amazon Web Services will automatically assign an IPv6 + address associated with the ENI attached to your instance to be the + primary IPv6 address. Once you enable an IPv6 GUA address to be a + primary IPv6, you cannot disable it. When you enable an IPv6 GUA address + to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 + address until the instance is terminated or the network interface is + detached. If you have multiple IPv6 addresses associated with an ENI + attached to your instance and you enable a primary IPv6 address, the + first IPv6 GUA address associated with the ENI becomes the primary IPv6 + address. + """ + connection_tracking_specification: ( + ConnectionTrackingSpecificationRequest | None + ) = ... + """A connection tracking specification for the network interface.""" + operator: OperatorRequest | None = ... + """Reserved for internal use.""" + subnet_id: str | None = ... + """The ID of the subnet to associate with the network interface.""" + description: str | None = ... + """A description for the network interface.""" + private_ip_address: str | None = ... + """ + The primary private IPv4 address of the network interface. If you don't + specify an IPv4 address, Amazon EC2 selects one for you from the + subnet's IPv4 CIDR range. If you specify an IP address, you cannot + indicate any IP addresses specified in `privateIpAddresses` as primary + (only one IP address can be designated as primary). + """ + groups: list[str] | None = ... + """The IDs of the security groups.""" + private_ip_addresses: list[PrivateIpAddressSpecification] | None = ... """ - Unique, case-sensitive identifier that you provide to ensure the - idempotency of the request. For more information, see [How to ensure - idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + The private IPv4 addresses. - This field is autopopulated if not provided. + You can't specify private IPv4 addresses if you've specified one of + the following: a count of private IPv4 addresses, specific IPv4 + prefixes, or a count of IPv4 prefixes. """ - filter_at_source: PathRequestFilter | None = ... + secondary_private_ip_address_count: int | None = ... """ - Scopes the analysis to network paths that match specific filters at the - source. If you specify this parameter, you can't specify the parameters - for the source IP address or the destination port. + The number of secondary private IPv4 addresses to assign to a network + interface. When you specify a number of secondary IPv4 addresses, Amazon + EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You + can't specify this option and specify more than one private IP address + using `privateIpAddresses`. + + You can't specify a count of private IPv4 addresses if you've + specified one of the following: specific private IPv4 addresses, + specific IPv4 prefixes, or a count of IPv4 prefixes. """ - filter_at_destination: PathRequestFilter | None = ... + ipv6_addresses: list[InstanceIpv6Address] | None = ... """ - Scopes the analysis to network paths that match specific filters at the - destination. If you specify this parameter, you can't specify the - parameter for the destination IP address. + The IPv6 addresses from the IPv6 CIDR block range of your subnet. + + You can't specify IPv6 addresses using this parameter if you've + specified one of the following: a count of IPv6 addresses, specific IPv6 + prefixes, or a count of IPv6 prefixes. + """ + ipv6_address_count: int | None = ... """ + The number of IPv6 addresses to assign to a network interface. Amazon + EC2 automatically selects the IPv6 addresses from the subnet range. -@dataclass(kw_only=True) -class CreateNetworkInsightsPathOutput(_SerdeShape): - """Dataclass for CreateNetworkInsightsPathOutput structure.""" + You can't specify a count of IPv6 addresses using this parameter if + you've specified one of the following: specific IPv6 addresses, + specific IPv6 prefixes, or a count of IPv6 prefixes. - network_insights_path: NetworkInsightsPath | None = ... - """Information about the path.""" - response_metadata: ResponseMetadata = ... + If your subnet has the `AssignIpv6AddressOnCreation` attribute set, you + can override that setting by specifying 0 as the IPv6 address count. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class CreateNetworkInterfaceInput(_SerdeShape): - """Dataclass for CreateNetworkInterfaceInput structure.""" +class CreateNetworkInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `CreateNetworkInterfaceInput`.""" - ipv4_prefixes: list[Ipv4PrefixSpecificationRequest] | None = ... + ipv4_prefixes: ( + Sequence[Ipv4PrefixSpecificationRequest | Ipv4PrefixSpecificationRequestDict] + | None + ) """ The IPv4 prefixes assigned to the network interface. @@ -7033,7 +10813,7 @@ class CreateNetworkInterfaceInput(_SerdeShape): following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses. """ - ipv4_prefix_count: int | None = ... + ipv4_prefix_count: int | None """ The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. @@ -7042,7 +10822,10 @@ class CreateNetworkInterfaceInput(_SerdeShape): the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses. """ - ipv6_prefixes: list[Ipv6PrefixSpecificationRequest] | None = ... + ipv6_prefixes: ( + Sequence[Ipv6PrefixSpecificationRequest | Ipv6PrefixSpecificationRequestDict] + | None + ) """ The IPv6 prefixes assigned to the network interface. @@ -7050,7 +10833,7 @@ class CreateNetworkInterfaceInput(_SerdeShape): following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses. """ - ipv6_prefix_count: int | None = ... + ipv6_prefix_count: int | None """ The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface. @@ -7059,7 +10842,7 @@ class CreateNetworkInterfaceInput(_SerdeShape): the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses. """ - interface_type: str | None = ... + interface_type: str | None """ The type of network interface. The default is `interface`. @@ -7069,9 +10852,9 @@ class CreateNetworkInterfaceInput(_SerdeShape): The only supported values are `interface`, `efa`, `efa-only`, and `trunk`. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """The tags to apply to the new network interface.""" - client_token: str | None = ... + client_token: str | None """ Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see [Ensuring @@ -7079,7 +10862,7 @@ class CreateNetworkInterfaceInput(_SerdeShape): This field is autopopulated if not provided. """ - enable_primary_ipv6: bool | None = ... + enable_primary_ipv6: bool | None """ If you're creating a network interface in a dual-stack or IPv6-only subnet, you have the option to assign a primary IPv6 IP address. A @@ -7098,16 +10881,18 @@ class CreateNetworkInterfaceInput(_SerdeShape): address. """ connection_tracking_specification: ( - ConnectionTrackingSpecificationRequest | None - ) = ... + ConnectionTrackingSpecificationRequest + | ConnectionTrackingSpecificationRequestDict + | None + ) """A connection tracking specification for the network interface.""" - operator: OperatorRequest | None = ... + operator: OperatorRequest | OperatorRequestDict | None """Reserved for internal use.""" - subnet_id: str | None = ... + subnet_id: Required[str] """The ID of the subnet to associate with the network interface.""" - description: str | None = ... + description: str | None """A description for the network interface.""" - private_ip_address: str | None = ... + private_ip_address: str | None """ The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon EC2 selects one for you from the @@ -7115,9 +10900,12 @@ class CreateNetworkInterfaceInput(_SerdeShape): indicate any IP addresses specified in `privateIpAddresses` as primary (only one IP address can be designated as primary). """ - groups: list[str] | None = ... + groups: Sequence[str] | None """The IDs of the security groups.""" - private_ip_addresses: list[PrivateIpAddressSpecification] | None = ... + private_ip_addresses: ( + Sequence[PrivateIpAddressSpecification | PrivateIpAddressSpecificationDict] + | None + ) """ The private IPv4 addresses. @@ -7125,7 +10913,7 @@ class CreateNetworkInterfaceInput(_SerdeShape): the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes. """ - secondary_private_ip_address_count: int | None = ... + secondary_private_ip_address_count: int | None """ The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon @@ -7137,7 +10925,7 @@ class CreateNetworkInterfaceInput(_SerdeShape): specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes. """ - ipv6_addresses: list[InstanceIpv6Address] | None = ... + ipv6_addresses: Sequence[InstanceIpv6Address | InstanceIpv6AddressDict] | None """ The IPv6 addresses from the IPv6 CIDR block range of your subnet. @@ -7145,7 +10933,7 @@ class CreateNetworkInterfaceInput(_SerdeShape): specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes. """ - ipv6_address_count: int | None = ... + ipv6_address_count: int | None """ The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. @@ -7157,7 +10945,7 @@ class CreateNetworkInterfaceInput(_SerdeShape): If your subnet has the `AssignIpv6AddressOnCreation` attribute set, you can override that setting by specifying 0 as the IPv6 address count. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -7204,6 +10992,25 @@ class CreateNetworkInterfacePermissionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateNetworkInterfacePermissionInputDict(TypedDict, total=False): + """Dictionary form of `CreateNetworkInterfacePermissionInput`.""" + + network_interface_id: Required[str] + """The ID of the network interface.""" + aws_account_id: str | None + """The Amazon Web Services account ID.""" + aws_service: str | None + """The Amazon Web Services service. Currently not supported.""" + permission: Required[str] + """The type of permission to grant.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateNetworkInterfacePermissionOutput(_SerdeShape): """Contains the output of CreateNetworkInterfacePermission.""" @@ -7263,6 +11070,50 @@ class CreatePlacementGroupInput(_SerdeShape): strategy: str | None = ... """The placement strategy.""" +class CreatePlacementGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreatePlacementGroupInput`.""" + + partition_count: int | None + """ + The number of partitions. Valid only when **Strategy** is set to + `partition`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the new placement group.""" + spread_level: str | None + """ + Determines how placement groups spread instances. + + - Host -- You can use `host` only with Outpost placement groups. + + - Rack -- No usage restrictions. + """ + linked_group_id: str | None + """Reserved for future use.""" + operator: OperatorRequest | OperatorRequestDict | None + """Reserved for internal use.""" + parent_group_id: str | None + """ + The ID of a parent placement group. Valid only when **Strategy** is set + to `cluster`. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + group_name: str | None + """ + A name for the placement group. Must be unique within the scope of your + account for the Region. + + Constraints: Up to 255 ASCII characters + """ + strategy: str | None + """The placement strategy.""" + @dataclass(kw_only=True) class CreatePlacementGroupOutput(_SerdeShape): """Dataclass for CreatePlacementGroupOutput structure.""" @@ -7306,6 +11157,34 @@ class CreatePublicIpv4PoolInput(_SerdeShape): in the *Amazon EC2 User Guide*. """ +class CreatePublicIpv4PoolInputDict(TypedDict, total=False): + """Dictionary form of `CreatePublicIpv4PoolInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The key/value combination of a tag assigned to the resource. Use the tag + key in the filter name and the tag value as the filter value. For + example, to find all resources that have a tag with the key `Owner` and + the value `TeamA`, specify `tag:Owner` for the filter name and `TeamA` + for the filter value. + """ + network_border_group: str | None + """ + The Availability Zone (AZ) or Local Zone (LZ) network border group that + the resource that the IP address is assigned to is in. Defaults to an AZ + network border group. For more information on available Local Zones, see + [Local Zone + availability](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) + in the *Amazon EC2 User Guide*. + """ + @dataclass(kw_only=True) class CreatePublicIpv4PoolOutput(_SerdeShape): """Dataclass for CreatePublicIpv4PoolOutput structure.""" @@ -7414,6 +11293,99 @@ class CreateReplaceRootVolumeTaskInput(_SerdeShape): snapshot, an AMI, or to its launch state, omit this parameter. """ +class CreateReplaceRootVolumeTaskInputDict(TypedDict, total=False): + """Dictionary form of `CreateReplaceRootVolumeTaskInput`.""" + + instance_id: Required[str] + """The ID of the instance for which to replace the root volume.""" + snapshot_id: str | None + """ + The ID of the snapshot from which to restore the replacement root + volume. The specified snapshot must be a snapshot that you previously + created from the original root volume. + + If you want to restore the replacement root volume to the initial launch + state, if you want to restore the replacement root volume from an AMI, + or if you want to replace the root volume with a specified volume, omit + this parameter. + """ + client_token: str | None + """ + Unique, case-sensitive identifier you provide to ensure the idempotency + of the request. If you do not specify a client token, a randomly + generated token is used for the request to ensure idempotency. For more + information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the root volume replacement task.""" + image_id: str | None + """ + The ID of the AMI to use to restore the root volume. The specified AMI + must have the same product code, billing information, architecture type, + and virtualization type as that of the instance. + + If you want to restore the replacement volume from a specific snapshot, + if you want to restore it to its launch state, or if you want to replace + the root volume with a specified volume, omit this parameter. + """ + delete_replaced_root_volume: bool | None + """ + Indicates whether to automatically delete the original root volume after + the root volume replacement task completes. To delete the original root + volume, specify `true`. If you choose to keep the original root volume + after the replacement task completes, you must manually delete it when + you no longer need it. + """ + volume_initialization_rate: int | None + """ + Specifies the Amazon EBS Provisioned Rate for Volume Initialization + (volume initialization rate), in MiB/s, at which to download the + snapshot blocks from Amazon S3 to the replacement root volume. This is + also known as *volume initialization*. Specifying a volume + initialization rate ensures that the volume is initialized at a + predictable and consistent rate after creation. + + Omit this parameter if: + + - You want to create the volume using fast snapshot restore. You must + specify a snapshot that is enabled for fast snapshot restore. In this + case, the volume is fully initialized at creation. + + Note: + If you specify a snapshot that is enabled for fast snapshot restore + and a volume initialization rate, the volume will be initialized at + the specified rate instead of fast snapshot restore. + + - You want to create a volume that is initialized at the default rate. + + For more information, see [Initialize Amazon EBS + volumes](https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html) + in the *Amazon EC2 User Guide*. + + Valid range: 100 - 300 MiB/s + """ + volume_id: str | None + """ + The ID of the volume to use as the replacement root volume. The + specified volume must be in the same Availability Zone as the instance, + must be in the `available` state, and must not be attached to an + instance. If the original root volume is encrypted, the specified volume + must also be encrypted. + + If you want to restore the replacement root volume from a specific + snapshot, an AMI, or to its launch state, omit this parameter. + """ + @dataclass(kw_only=True) class CreateReplaceRootVolumeTaskOutput(_SerdeShape): """Dataclass for CreateReplaceRootVolumeTaskOutput structure.""" @@ -7454,6 +11426,33 @@ class CreateReservedInstancesListingInput(_SerdeShape): Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). """ +class CreateReservedInstancesListingInputDict(TypedDict, total=False): + """Dictionary form of `CreateReservedInstancesListingInput`.""" + + reserved_instances_id: Required[str] + """The ID of the active Standard Reserved Instance.""" + instance_count: Required[int] + """ + The number of instances that are a part of a Reserved Instance account + to be listed in the Reserved Instance Marketplace. This number should be + less than or equal to the instance count associated with the Reserved + Instance ID specified in this call. + """ + price_schedules: Required[ + Sequence[PriceScheduleSpecification | PriceScheduleSpecificationDict] + ] + """ + A list specifying the price of the Standard Reserved Instance for each + month remaining in the Reserved Instance term. + """ + client_token: Required[str] + """ + Unique, case-sensitive identifier you provide to ensure idempotency of + your listings. This helps avoid duplicate listings. For more + information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + """ + @dataclass(kw_only=True) class CreateReservedInstancesListingOutput(_SerdeShape): """Contains the output of CreateReservedInstancesListing.""" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_2.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_02.pyi similarity index 61% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_2.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_02.pyi index bc6c24407..5ad036032 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_2.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_02.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -16,10 +18,12 @@ from ..models import ( CoipPool, ConnectionNotification, DnsOptionsSpecification, + DnsOptionsSpecificationDict, Ec2InstanceConnectEndpoint, FailedQueuedPurchaseDeletion, InstanceEventWindowStateChange, InstanceSpecification, + InstanceSpecificationDict, Ipam, IpamExternalResourceVerificationToken, IpamInternetRegistryAssociation, @@ -40,14 +44,17 @@ from ..models import ( ManagedPrefixList, MetricPoint, OperatorRequest, + OperatorRequestDict, OperatorResponse, ResponseError, RouteServer, RouteServerBgpOptionsRequest, + RouteServerBgpOptionsRequestDict, RouteServerEndpoint, RouteServerPeer, RouteTable, S3ObjectTag, + S3ObjectTagDict, SecondaryNetwork, SecondarySubnet, ServiceConfiguration, @@ -56,18 +63,23 @@ from ..models import ( Subnet, SubnetCidrReservation, SubnetConfiguration, + SubnetConfigurationDict, SuccessfulQueuedPurchaseDeletion, Tag, + TagDict, TagSpecification, + TagSpecificationDict, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorPortRangeRequest, + TrafficMirrorPortRangeRequestDict, TrafficMirrorSession, TrafficMirrorTarget, TransitGateway, TransitGatewayConnect, TransitGatewayConnectPeer, TransitGatewayConnectRequestBgpOptions, + TransitGatewayConnectRequestBgpOptionsDict, TransitGatewayMeteringPolicy, TransitGatewayMeteringPolicyEntry, TransitGatewayMulticastDomain, @@ -76,7 +88,9 @@ from ..models import ( TransitGatewayPolicyTableEntry, TransitGatewayPrefixListReference, TransitGatewayRequestOptions, + TransitGatewayRequestOptionsDict, TransitGatewayRequestPolicyRule, + TransitGatewayRequestPolicyRuleDict, TransitGatewayRoute, TransitGatewayRouteTable, TransitGatewayRouteTableAnnouncement, @@ -86,17 +100,20 @@ from ..models import ( VerifiedAccessGroup, VerifiedAccessInstance, VerifiedAccessSseSpecificationRequest, + VerifiedAccessSseSpecificationRequestDict, VerifiedAccessTrustProvider, VolumeAttachment, Vpc, VpcBlockPublicAccessExclusion, VpcEncryptionControl, VpcEncryptionControlConfiguration, + VpcEncryptionControlConfigurationDict, VpcEndpoint, VpcPeeringConnection, VpnConcentrator, VpnConnection, VpnConnectionOptionsSpecification, + VpnConnectionOptionsSpecificationDict, VpnGateway, _SerdeShape, ) @@ -133,6 +150,37 @@ class CreateRestoreImageTaskInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateRestoreImageTaskInputDict(TypedDict, total=False): + """Dictionary form of `CreateRestoreImageTaskInput`.""" + + bucket: Required[str] + """The name of the Amazon S3 bucket that contains the stored AMI object.""" + object_key: Required[str] + """The name of the stored AMI object in the bucket.""" + name: str | None + """ + The name for the restored AMI. The name must be unique for AMIs in the + Region for this account. If you do not provide a name, the new AMI gets + the same name as the original AMI. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the AMI and snapshots on restoration. You can tag + the AMI, the snapshots, or both. + + - To tag the AMI, the value for `ResourceType` must be `image`. + + - To tag the snapshots, the value for `ResourceType` must be `snapshot`. + The same tag is applied to all of the snapshots that are created. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateRestoreImageTaskOutput(_SerdeShape): """Dataclass for CreateRestoreImageTaskOutput structure.""" @@ -213,6 +261,71 @@ class CreateRouteInput(_SerdeShape): nat_gateway_id: str | None = ... """[IPv4 traffic only] The ID of a NAT gateway.""" +class CreateRouteInputDict(TypedDict, total=False): + """Dictionary form of `CreateRouteInput`.""" + + destination_prefix_list_id: str | None + """The ID of a prefix list used for the destination match.""" + vpc_endpoint_id: str | None + """ + The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints + only. + """ + transit_gateway_id: str | None + """The ID of a transit gateway.""" + local_gateway_id: str | None + """The ID of the local gateway.""" + carrier_gateway_id: str | None + """ + The ID of the carrier gateway. + + You can only use this option when the VPC contains a subnet which is + associated with a Wavelength Zone. + """ + core_network_arn: str | None + """The Amazon Resource Name (ARN) of the core network.""" + odb_network_arn: str | None + """The Amazon Resource Name (ARN) of the ODB network.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + route_table_id: Required[str] + """The ID of the route table for the route.""" + destination_cidr_block: str | None + """ + The IPv4 CIDR address block used for the destination match. Routing + decisions are based on the most specific match. We modify the specified + CIDR block to its canonical form; for example, if you specify + `100.68.0.18/18`, we modify it to `100.68.0.0/18`. + """ + gateway_id: str | None + """ + The ID of an internet gateway or virtual private gateway attached to + your VPC. + """ + destination_ipv6_cidr_block: str | None + """ + The IPv6 CIDR block used for the destination match. Routing decisions + are based on the most specific match. + """ + egress_only_internet_gateway_id: str | None + """[IPv6 traffic only] The ID of an egress-only internet gateway.""" + instance_id: str | None + """ + The ID of a NAT instance in your VPC. The operation fails if you specify + an instance ID unless exactly one network interface is attached. + """ + network_interface_id: str | None + """The ID of a network interface.""" + vpc_peering_connection_id: str | None + """The ID of a VPC peering connection.""" + nat_gateway_id: str | None + """[IPv4 traffic only] The ID of a NAT gateway.""" + @dataclass(kw_only=True) class CreateRouteOutput(_SerdeShape): """Dataclass for CreateRouteOutput structure.""" @@ -251,6 +364,29 @@ class CreateRouteServerEndpointInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the route server endpoint during creation.""" +class CreateRouteServerEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateRouteServerEndpointInput`.""" + + route_server_id: Required[str] + """The ID of the route server for which to create an endpoint.""" + subnet_id: Required[str] + """The ID of the subnet in which to create the route server endpoint.""" + client_token: str | None + """ + Unique, case-sensitive identifier to ensure idempotency of the request. + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the route server endpoint during creation.""" + @dataclass(kw_only=True) class CreateRouteServerEndpointOutput(_SerdeShape): """Dataclass for CreateRouteServerEndpointOutput structure.""" @@ -317,6 +453,57 @@ class CreateRouteServerInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the route server during creation.""" +class CreateRouteServerInputDict(TypedDict, total=False): + """Dictionary form of `CreateRouteServerInput`.""" + + amazon_side_asn: Required[int] + """ + The private Autonomous System Number (ASN) for the Amazon side of the + BGP session. Valid values are from 1 to 4294967295. We recommend using a + private ASN in the 64512--65534 (16-bit ASN) or 4200000000--4294967294 + (32-bit ASN) range. + """ + client_token: str | None + """ + Unique, case-sensitive identifier to ensure idempotency of the request. + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + persist_routes: str | None + """ + Indicates whether routes should be persisted after all BGP sessions are + terminated. + """ + persist_routes_duration: int | None + """ + The number of minutes a route server will wait after BGP is + re-established to unpersist the routes in the FIB and RIB. Value must be + in the range of 1-5. Required if PersistRoutes is `enabled`. + + If you set the duration to 1 minute, then when your network appliance + re-establishes BGP with route server, it has 1 minute to relearn it's + adjacent network and advertise those routes to route server before route + server resumes normal functionality. In most cases, 1 minute is probably + sufficient. If, however, you have concerns that your BGP network may not + be capable of fully re-establishing and re-learning everything in 1 + minute, you can increase the duration up to 5 minutes. + """ + sns_notifications_enabled: bool | None + """ + Indicates whether SNS notifications should be enabled for route server + events. Enabling SNS notifications persists BGP status changes to an SNS + topic provisioned by Amazon Web Services. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the route server during creation.""" + @dataclass(kw_only=True) class CreateRouteServerOutput(_SerdeShape): """Dataclass for CreateRouteServerOutput structure.""" @@ -354,6 +541,30 @@ class CreateRouteServerPeerInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the route server peer during creation.""" +class CreateRouteServerPeerInputDict(TypedDict, total=False): + """Dictionary form of `CreateRouteServerPeerInput`.""" + + route_server_endpoint_id: Required[str] + """The ID of the route server endpoint for which to create a peer.""" + peer_address: Required[str] + """The IPv4 address of the peer device.""" + bgp_options: Required[ + RouteServerBgpOptionsRequest | RouteServerBgpOptionsRequestDict + ] + """ + The BGP options for the peer, including ASN (Autonomous System Number) + and BFD (Bidrectional Forwarding Detection) settings. + """ + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the route server peer during creation.""" + @dataclass(kw_only=True) class CreateRouteServerPeerOutput(_SerdeShape): """Dataclass for CreateRouteServerPeerOutput structure.""" @@ -392,6 +603,29 @@ class CreateRouteTableInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class CreateRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `CreateRouteTableInput`.""" + + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the route table.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + @dataclass(kw_only=True) class CreateRouteTableOutput(_SerdeShape): """Dataclass for CreateRouteTableOutput structure.""" @@ -440,6 +674,34 @@ class CreateSecondaryNetworkInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to assign to the secondary network.""" +class CreateSecondaryNetworkInputDict(TypedDict, total=False): + """Dictionary form of `CreateSecondaryNetworkInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + ipv4_cidr_block: Required[str] + """ + The IPv4 CIDR block for the secondary network. The CIDR block size must + be between /12 and /28. + """ + network_type: Required[str] + """The type of secondary network.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the secondary network.""" + @dataclass(kw_only=True) class CreateSecondaryNetworkOutput(_SerdeShape): """Dataclass for CreateSecondaryNetworkOutput structure.""" @@ -500,6 +762,46 @@ class CreateSecondarySubnetInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to assign to the secondary subnet.""" +class CreateSecondarySubnetInputDict(TypedDict, total=False): + """Dictionary form of `CreateSecondarySubnetInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + availability_zone: str | None + """ + The Availability Zone for the secondary subnet. You cannot specify both + `AvailabilityZone` and `AvailabilityZoneId` in the same request. + """ + availability_zone_id: str | None + """ + The ID of the Availability Zone for the secondary subnet. This option is + preferred over `AvailabilityZone` as it provides a consistent identifier + across Amazon Web Services accounts. You cannot specify both + `AvailabilityZone` and `AvailabilityZoneId` in the same request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + ipv4_cidr_block: Required[str] + """ + The IPv4 CIDR block for the secondary subnet. The CIDR block size must + be between /12 and /28. + """ + secondary_network_id: Required[str] + """The ID of the secondary network in which to create the secondary subnet.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the secondary subnet.""" + @dataclass(kw_only=True) class CreateSecondarySubnetOutput(_SerdeShape): """Dataclass for CreateSecondarySubnetOutput structure.""" @@ -552,6 +854,38 @@ class CreateSecurityGroupInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateSecurityGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateSecurityGroupInput`.""" + + description: Required[str] + """ + A description for the security group. + + Constraints: Up to 255 characters in length + + Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$* + """ + group_name: Required[str] + """ + The name of the security group. Names are case-insensitive and must be + unique within the VPC. + + Constraints: Up to 255 characters in length. Can't start with `sg-`. + + Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$* + """ + vpc_id: str | None + """The ID of the VPC. Required for a nondefault VPC.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the security group.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateSecurityGroupOutput(_SerdeShape): """Dataclass for CreateSecurityGroupOutput structure.""" @@ -619,26 +953,74 @@ class CreateSnapshotInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class CreateSnapshotOutput(_SerdeShape): - """Describes a snapshot.""" +class CreateSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `CreateSnapshotInput`.""" - owner_alias: str | None = ... - """ - The Amazon Web Services owner alias, from an Amazon-maintained list - (`amazon`). This is not the user-configured Amazon Web Services account - alias set using the IAM console. - """ - outpost_arn: str | None = ... - """ - The ARN of the Outpost on which the snapshot is stored. For more - information, see [Amazon EBS local snapshots on - Outposts](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html) - in the *Amazon EBS User Guide*. + description: str | None + """A description for the snapshot.""" + outpost_arn: str | None """ - tags: list[Tag] | None = ... - """Any tags assigned to the snapshot.""" - storage_tier: str | None = ... + Note: + Only supported for volumes on Outposts. If the source volume is not on + an Outpost, omit this parameter. + + - To create the snapshot on the same Outpost as the source volume, + specify the ARN of that Outpost. The snapshot must be created on the + same Outpost as the volume. + + - To create the snapshot in the parent Region of the Outpost, omit this + parameter. + + For more information, see [Create local snapshots from volumes on an + Outpost](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#create-snapshot) + in the *Amazon EBS User Guide*. + """ + volume_id: Required[str] + """The ID of the Amazon EBS volume.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the snapshot during creation.""" + location: str | None + """ + Note: + Only supported for volumes in Local Zones. If the source volume is not + in a Local Zone, omit this parameter. + + - To create a local snapshot in the same Local Zone as the source + volume, specify `local`. + + - To create a regional snapshot in the parent Region of the Local Zone, + specify `regional` or omit this parameter. + + Default value: `regional` + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class CreateSnapshotOutput(_SerdeShape): + """Describes a snapshot.""" + + owner_alias: str | None = ... + """ + The Amazon Web Services owner alias, from an Amazon-maintained list + (`amazon`). This is not the user-configured Amazon Web Services account + alias set using the IAM console. + """ + outpost_arn: str | None = ... + """ + The ARN of the Outpost on which the snapshot is stored. For more + information, see [Amazon EBS local snapshots on + Outposts](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html) + in the *Amazon EBS User Guide*. + """ + tags: list[Tag] | None = ... + """Any tags assigned to the snapshot.""" + storage_tier: str | None = ... """ The storage tier in which the snapshot is stored. `standard` indicates that the snapshot is stored in the standard snapshot storage tier and @@ -804,6 +1186,59 @@ class CreateSnapshotsInput(_SerdeShape): Default value: `regional` """ +class CreateSnapshotsInputDict(TypedDict, total=False): + """Dictionary form of `CreateSnapshotsInput`.""" + + description: str | None + """A description propagated to every snapshot specified by the instance.""" + instance_specification: Required[InstanceSpecification | InstanceSpecificationDict] + """ + The instance to specify which volumes should be included in the + snapshots. + """ + outpost_arn: str | None + """ + Note: + Only supported for instances on Outposts. If the source instance is not + on an Outpost, omit this parameter. + + - To create the snapshots on the same Outpost as the source instance, + specify the ARN of that Outpost. The snapshots must be created on the + same Outpost as the instance. + + - To create the snapshots in the parent Region of the Outpost, omit this + parameter. + + For more information, see [Create local snapshots from volumes on an + Outpost](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#create-snapshot) + in the *Amazon EBS User Guide*. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """Tags to apply to every snapshot specified by the instance.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + copy_tags_from_source: str | None + """Copies the tags from the specified volume to corresponding snapshot.""" + location: str | None + """ + Note: + Only supported for instances in Local Zones. If the source instance is + not in a Local Zone, omit this parameter. + + - To create local snapshots in the same Local Zone as the source + instance, specify `local`. + + - To create regional snapshots in the parent Region of the Local Zone, + specify `regional` or omit this parameter. + + Default value: `regional` + """ + @dataclass(kw_only=True) class CreateSnapshotsOutput(_SerdeShape): """Dataclass for CreateSnapshotsOutput structure.""" @@ -839,6 +1274,26 @@ class CreateSpotDatafeedSubscriptionInput(_SerdeShape): prefix: str | None = ... """The prefix for the data feed file names.""" +class CreateSpotDatafeedSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `CreateSpotDatafeedSubscriptionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + bucket: Required[str] + """ + The name of the Amazon S3 bucket in which to store the Spot Instance + data feed. For more information about bucket names, see [Bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) + in the *Amazon S3 User Guide*. + """ + prefix: str | None + """The prefix for the data feed file names.""" + @dataclass(kw_only=True) class CreateSpotDatafeedSubscriptionOutput(_SerdeShape): """Contains the output of CreateSpotDatafeedSubscription.""" @@ -879,6 +1334,31 @@ class CreateStoreImageTaskInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateStoreImageTaskInputDict(TypedDict, total=False): + """Dictionary form of `CreateStoreImageTaskInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + bucket: Required[str] + """ + The name of the Amazon S3 bucket in which the AMI object will be stored. + The bucket must be in the Region in which the request is being made. The + AMI object appears in the bucket only after the upload task has + completed. + """ + s3_object_tags: Sequence[S3ObjectTag | S3ObjectTagDict] | None + """ + The tags to apply to the AMI object that will be stored in the Amazon S3 + bucket. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateStoreImageTaskOutput(_SerdeShape): """Dataclass for CreateStoreImageTaskOutput structure.""" @@ -924,6 +1404,36 @@ class CreateSubnetCidrReservationInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to assign to the subnet CIDR reservation.""" +class CreateSubnetCidrReservationInputDict(TypedDict, total=False): + """Dictionary form of `CreateSubnetCidrReservationInput`.""" + + subnet_id: Required[str] + """The ID of the subnet.""" + cidr: Required[str] + """The IPv4 or IPV6 CIDR range to reserve.""" + reservation_type: Required[str] + """ + The type of reservation. The reservation type determines how the + reserved IP addresses are assigned to resources. + + - `prefix` - Amazon Web Services assigns the reserved IP addresses to + network interfaces. + + - `explicit` - You assign the reserved IP addresses to network + interfaces. + """ + description: str | None + """The description to assign to the subnet CIDR reservation.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the subnet CIDR reservation.""" + @dataclass(kw_only=True) class CreateSubnetCidrReservationOutput(_SerdeShape): """Dataclass for CreateSubnetCidrReservationOutput structure.""" @@ -1001,6 +1511,68 @@ class CreateSubnetInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateSubnetInputDict(TypedDict, total=False): + """Dictionary form of `CreateSubnetInput`.""" + + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the subnet.""" + availability_zone: str | None + """ + The Availability Zone or Local Zone for the subnet. + + Default: Amazon Web Services selects one for you. If you create more + than one subnet in your VPC, we do not necessarily select a different + zone for each subnet. + + To create a subnet in a Local Zone, set this value to the Local Zone ID, + for example `us-west-2-lax-1a`. For information about the Regions that + support Local Zones, see [Available Local + Zones](https://docs.aws.amazon.com/local-zones/latest/ug/available-local-zones.html). + + To create a subnet in an Outpost, set this value to the Availability + Zone for the Outpost and specify the Outpost ARN. + """ + availability_zone_id: str | None + """The AZ ID or the Local Zone ID of the subnet.""" + cidr_block: str | None + """ + The IPv4 network range for the subnet, in CIDR notation. For example, + `10.0.0.0/24`. We modify the specified CIDR block to its canonical form; + for example, if you specify `100.68.0.18/18`, we modify it to + `100.68.0.0/18`. + + This parameter is not supported for an IPv6 only subnet. + """ + ipv6_cidr_block: str | None + """ + The IPv6 network range for the subnet, in CIDR notation. This parameter + is required for an IPv6 only subnet. + """ + outpost_arn: str | None + """ + The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost + ARN, you must also specify the Availability Zone of the Outpost subnet. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + ipv6_native: bool | None + """Indicates whether to create an IPv6 only subnet.""" + ipv4_ipam_pool_id: str | None + """An IPv4 IPAM pool ID for the subnet.""" + ipv4_netmask_length: int | None + """An IPv4 netmask length for the subnet.""" + ipv6_ipam_pool_id: str | None + """An IPv6 IPAM pool ID for the subnet.""" + ipv6_netmask_length: int | None + """An IPv6 netmask length for the subnet.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateSubnetOutput(_SerdeShape): """Dataclass for CreateSubnetOutput structure.""" @@ -1040,6 +1612,30 @@ class CreateTagsInput(_SerdeShape): value to an empty string. """ +class CreateTagsInputDict(TypedDict, total=False): + """Dictionary form of `CreateTagsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + resources: Required[Sequence[str]] + """ + The IDs of the resources, separated by spaces. + + Constraints: Up to 1000 resource IDs. We recommend breaking up this + request into smaller batches. + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The tags. The `value` parameter is required, but if you don't want the + tag to have a value, specify the parameter with no value, and we set the + value to an empty string. + """ + @dataclass(kw_only=True) class CreateTagsOutput(_SerdeShape): """Dataclass for CreateTagsOutput structure.""" @@ -1076,6 +1672,29 @@ class CreateTrafficMirrorFilterInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateTrafficMirrorFilterInputDict(TypedDict, total=False): + """Dictionary form of `CreateTrafficMirrorFilterInput`.""" + + description: str | None + """The description of the Traffic Mirror filter.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to a Traffic Mirror filter.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateTrafficMirrorFilterOutput(_SerdeShape): """Dataclass for CreateTrafficMirrorFilterOutput structure.""" @@ -1148,19 +1767,74 @@ class CreateTrafficMirrorFilterRuleInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """Traffic Mirroring tags specifications.""" -@dataclass(kw_only=True) -class CreateTrafficMirrorFilterRuleOutput(_SerdeShape): - """Dataclass for CreateTrafficMirrorFilterRuleOutput structure.""" +class CreateTrafficMirrorFilterRuleInputDict(TypedDict, total=False): + """Dictionary form of `CreateTrafficMirrorFilterRuleInput`.""" - traffic_mirror_filter_rule: TrafficMirrorFilterRule | None = ... - """The Traffic Mirror rule.""" - client_token: str | None = ... - """ - Unique, case-sensitive identifier that you provide to ensure the - idempotency of the request. For more information, see [How to ensure - idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + traffic_mirror_filter_id: Required[str] + """The ID of the filter that this rule is associated with.""" + traffic_direction: Required[str] + """The type of traffic.""" + rule_number: Required[int] """ - response_metadata: ResponseMetadata = ... + The number of the Traffic Mirror rule. This number must be unique for + each Traffic Mirror rule in a given direction. The rules are processed + in ascending order by rule number. + """ + rule_action: Required[str] + """The action to take on the filtered traffic.""" + destination_port_range: ( + TrafficMirrorPortRangeRequest | TrafficMirrorPortRangeRequestDict | None + ) + """The destination port range.""" + source_port_range: ( + TrafficMirrorPortRangeRequest | TrafficMirrorPortRangeRequestDict | None + ) + """The source port range.""" + protocol: int | None + """ + The protocol, for example UDP, to assign to the Traffic Mirror rule. + + For information about the protocol value, see [Protocol + Numbers](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml) + on the Internet Assigned Numbers Authority (IANA) website. + """ + destination_cidr_block: Required[str] + """The destination CIDR block to assign to the Traffic Mirror rule.""" + source_cidr_block: Required[str] + """The source CIDR block to assign to the Traffic Mirror rule.""" + description: str | None + """The description of the Traffic Mirror rule.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """Traffic Mirroring tags specifications.""" + +@dataclass(kw_only=True) +class CreateTrafficMirrorFilterRuleOutput(_SerdeShape): + """Dataclass for CreateTrafficMirrorFilterRuleOutput structure.""" + + traffic_mirror_filter_rule: TrafficMirrorFilterRule | None = ... + """The Traffic Mirror rule.""" + client_token: str | None = ... + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + """ + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order @@ -1231,6 +1905,68 @@ class CreateTrafficMirrorSessionInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateTrafficMirrorSessionInputDict(TypedDict, total=False): + """Dictionary form of `CreateTrafficMirrorSessionInput`.""" + + network_interface_id: Required[str] + """The ID of the source network interface.""" + traffic_mirror_target_id: Required[str] + """The ID of the Traffic Mirror target.""" + traffic_mirror_filter_id: Required[str] + """The ID of the Traffic Mirror filter.""" + packet_length: int | None + """ + The number of bytes in each packet to mirror. These are bytes after the + VXLAN header. Do not specify this parameter when you want to mirror the + entire packet. To mirror a subset of the packet, set this to the length + (in bytes) that you want to mirror. For example, if you set this value + to 100, then the first 100 bytes that meet the filter criteria are + copied to the target. + + If you do not want to mirror the entire packet, use the `PacketLength` + parameter to specify the number of bytes in each packet to mirror. + + For sessions with Network Load Balancer (NLB) Traffic Mirror targets the + default `PacketLength` will be set to 8500. Valid values are 1-8500. + Setting a `PacketLength` greater than 8500 will result in an error + response. + """ + session_number: Required[int] + """ + The session number determines the order in which sessions are evaluated + when an interface is used by multiple sessions. The first session with a + matching filter is the one that mirrors the packets. + + Valid values are 1-32766. + """ + virtual_network_id: int | None + """ + The VXLAN ID for the Traffic Mirror session. For more information about + the VXLAN protocol, see [RFC + 7348](https://datatracker.ietf.org/doc/html/rfc7348). If you do not + specify a `VirtualNetworkId`, an account-wide unique ID is chosen at + random. + """ + description: str | None + """The description of the Traffic Mirror session.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to a Traffic Mirror session.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateTrafficMirrorSessionOutput(_SerdeShape): """Dataclass for CreateTrafficMirrorSessionOutput structure.""" @@ -1284,6 +2020,38 @@ class CreateTrafficMirrorTargetInput(_SerdeShape): gateway_load_balancer_endpoint_id: str | None = ... """The ID of the Gateway Load Balancer endpoint.""" +class CreateTrafficMirrorTargetInputDict(TypedDict, total=False): + """Dictionary form of `CreateTrafficMirrorTargetInput`.""" + + network_interface_id: str | None + """The network interface ID that is associated with the target.""" + network_load_balancer_arn: str | None + """ + The Amazon Resource Name (ARN) of the Network Load Balancer that is + associated with the target. + """ + description: str | None + """The description of the Traffic Mirror target.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the Traffic Mirror target.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + gateway_load_balancer_endpoint_id: str | None + """The ID of the Gateway Load Balancer endpoint.""" + @dataclass(kw_only=True) class CreateTrafficMirrorTargetOutput(_SerdeShape): """Dataclass for CreateTrafficMirrorTargetOutput structure.""" @@ -1325,6 +2093,29 @@ class CreateTransitGatewayConnectInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayConnectInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayConnectInput`.""" + + transport_transit_gateway_attachment_id: Required[str] + """ + The ID of the transit gateway attachment. You can specify a VPC + attachment or Amazon Web Services Direct Connect attachment. + """ + options: Required[ + CreateTransitGatewayConnectRequestOptions + | CreateTransitGatewayConnectRequestOptionsDict + ] + """The Connect attachment options.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the Connect attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayConnectOutput(_SerdeShape): """Dataclass for CreateTransitGatewayConnectOutput structure.""" @@ -1377,6 +2168,47 @@ class CreateTransitGatewayConnectPeerInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayConnectPeerInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayConnectPeerInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the Connect attachment.""" + transit_gateway_address: str | None + """ + The peer IP address (GRE outer IP address) on the transit gateway side + of the Connect peer, which must be specified from a transit gateway CIDR + block. If not specified, Amazon automatically assigns the first + available IP address from the transit gateway CIDR block. + """ + peer_address: Required[str] + """ + The peer IP address (GRE outer IP address) on the appliance side of the + Connect peer. + """ + bgp_options: ( + TransitGatewayConnectRequestBgpOptions + | TransitGatewayConnectRequestBgpOptionsDict + | None + ) + """The BGP options for the Connect peer.""" + inside_cidr_blocks: Required[Sequence[str]] + """ + The range of inside IP addresses that are used for BGP peering. You must + specify a size /29 IPv4 CIDR block from the `169.254.0.0/16` range. The + first address from the range must be configured on the appliance as the + BGP IP address. You can also optionally specify a size /125 IPv6 CIDR + block from the `fd00::/8` range. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the Connect peer.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayConnectPeerOutput(_SerdeShape): """Dataclass for CreateTransitGatewayConnectPeerOutput structure.""" @@ -1398,6 +2230,12 @@ class CreateTransitGatewayConnectRequestOptions(_SerdeShape): protocol: str | None = ... """The tunnel protocol.""" +class CreateTransitGatewayConnectRequestOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayConnectRequestOptions`.""" + + protocol: Required[str] + """The tunnel protocol.""" + @dataclass(kw_only=True) class CreateTransitGatewayInput(_SerdeShape): """Dataclass for CreateTransitGatewayInput structure.""" @@ -1416,6 +2254,23 @@ class CreateTransitGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayInput`.""" + + description: str | None + """A description of the transit gateway.""" + options: TransitGatewayRequestOptions | TransitGatewayRequestOptionsDict | None + """The transit gateway options.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the transit gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayMeteringPolicyEntryInput(_SerdeShape): """Dataclass for CreateTransitGatewayMeteringPolicyEntryInput structure.""" @@ -1471,6 +2326,60 @@ class CreateTransitGatewayMeteringPolicyEntryInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayMeteringPolicyEntryInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayMeteringPolicyEntryInput`.""" + + transit_gateway_metering_policy_id: Required[str] + """The ID of the transit gateway metering policy to add the entry to.""" + policy_rule_number: Required[int] + """ + The rule number for the metering policy entry. Rules are processed in + order from lowest to highest number. + """ + source_transit_gateway_attachment_id: str | None + """The ID of the source transit gateway attachment for traffic matching.""" + source_transit_gateway_attachment_type: str | None + """ + The type of the source transit gateway attachment for traffic matching. + Note that the `tgw-peering` resource type has been deprecated. To + configure metering policies for Connect, use the transport attachment + type. + """ + source_cidr_block: str | None + """The source CIDR block for traffic matching.""" + source_port_range: str | None + """The source port range for traffic matching.""" + destination_transit_gateway_attachment_id: str | None + """ + The ID of the destination transit gateway attachment for traffic + matching. + """ + destination_transit_gateway_attachment_type: str | None + """ + The type of the destination transit gateway attachment for traffic + matching. Note that the `tgw-peering` resource type has been deprecated. + To configure metering policies for Connect, use the transport attachment + type. + """ + destination_cidr_block: str | None + """The destination CIDR block for traffic matching.""" + destination_port_range: str | None + """The destination port range for traffic matching.""" + protocol: str | None + """The protocol for traffic matching (1, 6, 17, etc.).""" + metered_account: Required[str] + """ + The Amazon Web Services account ID to which the metered traffic should + be attributed. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayMeteringPolicyEntryOutput(_SerdeShape): """Dataclass for CreateTransitGatewayMeteringPolicyEntryOutput structure.""" @@ -1505,6 +2414,23 @@ class CreateTransitGatewayMeteringPolicyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayMeteringPolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayMeteringPolicyInput`.""" + + transit_gateway_id: Required[str] + """The ID of the transit gateway for which to create the metering policy.""" + middlebox_attachment_ids: Sequence[str] | None + """The IDs of the middlebox attachments to include in the metering policy.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the metering policy.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayMeteringPolicyOutput(_SerdeShape): """Dataclass for CreateTransitGatewayMeteringPolicyOutput structure.""" @@ -1537,6 +2463,27 @@ class CreateTransitGatewayMulticastDomainInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayMulticastDomainInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayMulticastDomainInput`.""" + + transit_gateway_id: Required[str] + """The ID of the transit gateway.""" + options: ( + CreateTransitGatewayMulticastDomainRequestOptions + | CreateTransitGatewayMulticastDomainRequestOptionsDict + | None + ) + """The options for the transit gateway multicast domain.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags for the transit gateway multicast domain.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayMulticastDomainOutput(_SerdeShape): """Dataclass for CreateTransitGatewayMulticastDomainOutput structure.""" @@ -1572,6 +2519,26 @@ class CreateTransitGatewayMulticastDomainRequestOptions(_SerdeShape): domain. """ +class CreateTransitGatewayMulticastDomainRequestOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayMulticastDomainRequestOptions`.""" + + igmpv2_support: str | None + """ + Specify whether to enable Internet Group Management Protocol (IGMP) + version 2 for the transit gateway multicast domain. + """ + static_sources_support: str | None + """ + Specify whether to enable support for statically configuring multicast + group sources for a domain. + """ + auto_accept_shared_associations: str | None + """ + Indicates whether to automatically accept cross-account subnet + associations that are associated with the transit gateway multicast + domain. + """ + @dataclass(kw_only=True) class CreateTransitGatewayOutput(_SerdeShape): """Dataclass for CreateTransitGatewayOutput structure.""" @@ -1616,16 +2583,49 @@ class CreateTransitGatewayPeeringAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class CreateTransitGatewayPeeringAttachmentOutput(_SerdeShape): - """Dataclass for CreateTransitGatewayPeeringAttachmentOutput structure.""" +class CreateTransitGatewayPeeringAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayPeeringAttachmentInput`.""" - transit_gateway_peering_attachment: TransitGatewayPeeringAttachment | None = ... - """The transit gateway peering attachment.""" - response_metadata: ResponseMetadata = ... + transit_gateway_id: Required[str] + """The ID of the transit gateway.""" + peer_transit_gateway_id: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order + The ID of the peer transit gateway with which to create the peering + attachment. + """ + peer_account_id: Required[str] + """ + The ID of the Amazon Web Services account that owns the peer transit + gateway. + """ + peer_region: Required[str] + """The Region where the peer transit gateway is located.""" + options: ( + CreateTransitGatewayPeeringAttachmentRequestOptions + | CreateTransitGatewayPeeringAttachmentRequestOptionsDict + | None + ) + """Requests a transit gateway peering attachment.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the transit gateway peering attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class CreateTransitGatewayPeeringAttachmentOutput(_SerdeShape): + """Dataclass for CreateTransitGatewayPeeringAttachmentOutput structure.""" + + transit_gateway_peering_attachment: TransitGatewayPeeringAttachment | None = ... + """The transit gateway peering attachment.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. """ @@ -1640,6 +2640,12 @@ class CreateTransitGatewayPeeringAttachmentRequestOptions(_SerdeShape): dynamic_routing: str | None = ... """Indicates whether dynamic routing is enabled or disabled.""" +class CreateTransitGatewayPeeringAttachmentRequestOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayPeeringAttachmentRequestOptions`.""" + + dynamic_routing: str | None + """Indicates whether dynamic routing is enabled or disabled.""" + @dataclass(kw_only=True) class CreateTransitGatewayPolicyTableEntryInput(_SerdeShape): """Dataclass for CreateTransitGatewayPolicyTableEntryInput structure.""" @@ -1666,6 +2672,33 @@ class CreateTransitGatewayPolicyTableEntryInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayPolicyTableEntryInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayPolicyTableEntryInput`.""" + + transit_gateway_policy_table_id: Required[str] + """The ID of the transit gateway policy table.""" + policy_rule_number: Required[str] + """ + The rule number for the policy table entry. Lower rule numbers are + evaluated first and take precedence. + """ + policy_rule: ( + TransitGatewayRequestPolicyRule | TransitGatewayRequestPolicyRuleDict | None + ) + """The matching criteria for the policy table entry.""" + target_route_table_id: Required[str] + """ + The ID of the transit gateway route table to use for traffic matching + this rule. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayPolicyTableEntryOutput(_SerdeShape): """Dataclass for CreateTransitGatewayPolicyTableEntryOutput structure.""" @@ -1699,6 +2732,24 @@ class CreateTransitGatewayPolicyTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayPolicyTableInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayPolicyTableInput`.""" + + transit_gateway_id: Required[str] + """The ID of the transit gateway used for the policy table.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags specification for the transit gateway policy table created + during the request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayPolicyTableOutput(_SerdeShape): """Dataclass for CreateTransitGatewayPolicyTableOutput structure.""" @@ -1733,6 +2784,25 @@ class CreateTransitGatewayPrefixListReferenceInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayPrefixListReferenceInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayPrefixListReferenceInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + prefix_list_id: Required[str] + """The ID of the prefix list that is used for destination matches.""" + transit_gateway_attachment_id: str | None + """The ID of the attachment to which traffic is routed.""" + blackhole: bool | None + """Indicates whether to drop traffic that matches this route.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayPrefixListReferenceOutput(_SerdeShape): """Dataclass for CreateTransitGatewayPrefixListReferenceOutput structure.""" @@ -1772,6 +2842,28 @@ class CreateTransitGatewayRouteInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayRouteInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayRouteInput`.""" + + destination_cidr_block: Required[str] + """ + The CIDR range used for destination matches. Routing decisions are based + on the most specific match. + """ + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + transit_gateway_attachment_id: str | None + """The ID of the attachment.""" + blackhole: bool | None + """Indicates whether to drop traffic that matches this route.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayRouteOutput(_SerdeShape): """Dataclass for CreateTransitGatewayRouteOutput structure.""" @@ -1807,6 +2899,26 @@ class CreateTransitGatewayRouteTableAnnouncementInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayRouteTableAnnouncementInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayRouteTableAnnouncementInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + peering_attachment_id: Required[str] + """The ID of the peering attachment.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags specifications applied to the transit gateway route table + announcement. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayRouteTableAnnouncementOutput(_SerdeShape): """ @@ -1842,6 +2954,21 @@ class CreateTransitGatewayRouteTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayRouteTableInput`.""" + + transit_gateway_id: Required[str] + """The ID of the transit gateway.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the transit gateway route table.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayRouteTableOutput(_SerdeShape): """Dataclass for CreateTransitGatewayRouteTableOutput structure.""" @@ -1883,6 +3010,36 @@ class CreateTransitGatewayVpcAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateTransitGatewayVpcAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayVpcAttachmentInput`.""" + + transit_gateway_id: Required[str] + """The ID of the transit gateway.""" + vpc_id: Required[str] + """The ID of the VPC.""" + subnet_ids: Required[Sequence[str]] + """ + The IDs of one or more subnets. You can specify only one subnet per + Availability Zone. You must specify at least one subnet, but we + recommend that you specify two subnets for better availability. The + transit gateway uses one IP address from each specified subnet. + """ + options: ( + CreateTransitGatewayVpcAttachmentRequestOptions + | CreateTransitGatewayVpcAttachmentRequestOptionsDict + | None + ) + """The VPC attachment options.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the VPC attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateTransitGatewayVpcAttachmentOutput(_SerdeShape): """Dataclass for CreateTransitGatewayVpcAttachmentOutput structure.""" @@ -1932,6 +3089,40 @@ class CreateTransitGatewayVpcAttachmentRequestOptions(_SerdeShape): VPC attachment for the lifetime of that flow. The default is `disable`. """ +class CreateTransitGatewayVpcAttachmentRequestOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateTransitGatewayVpcAttachmentRequestOptions`.""" + + dns_support: str | None + """Enable or disable DNS support. The default is `enable`.""" + security_group_referencing_support: str | None + """ + Enables you to reference a security group across VPCs attached to a + transit gateway to simplify security group management. + + This option is set to `enable` by default. However, at the transit + gateway level the default is set to `disable`. + + For more information about security group referencing, see [Security + group + referencing](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#vpc-attachment-security) + in the *Amazon Web Services Transit Gateways Guide*. + """ + ipv6_support: str | None + """ + Specifies whether IPv6 support is enabled for the attachment. When + enabled, the transit gateway network interface receives an IPv6 address. + When you enable route propagation, IPv6 VPC CIDRs propagate to the + transit gateway route tables. When disabled, the network interface does + not receive an IPv6 address, and IPv6 routes do not propagate. The + setting does not filter IPv6 traffic. The default is `disable`. + """ + appliance_mode_support: str | None + """ + Enable or disable support for appliance mode. If enabled, a traffic flow + between a source and destination uses the same Availability Zone for the + VPC attachment for the lifetime of that flow. The default is `disable`. + """ + @dataclass(kw_only=True) class CreateVerifiedAccessEndpointCidrOptions(_SerdeShape): """Describes the CIDR options for a Verified Access endpoint.""" @@ -1945,6 +3136,24 @@ class CreateVerifiedAccessEndpointCidrOptions(_SerdeShape): port_ranges: list[CreateVerifiedAccessEndpointPortRange] | None = ... """The port ranges.""" +class CreateVerifiedAccessEndpointCidrOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessEndpointCidrOptions`.""" + + protocol: str | None + """The protocol.""" + subnet_ids: Sequence[str] | None + """The IDs of the subnets.""" + cidr: str | None + """The CIDR.""" + port_ranges: ( + Sequence[ + CreateVerifiedAccessEndpointPortRange + | CreateVerifiedAccessEndpointPortRangeDict + ] + | None + ) + """The port ranges.""" + @dataclass(kw_only=True) class CreateVerifiedAccessEndpointEniOptions(_SerdeShape): """ @@ -1961,6 +3170,24 @@ class CreateVerifiedAccessEndpointEniOptions(_SerdeShape): port_ranges: list[CreateVerifiedAccessEndpointPortRange] | None = ... """The port ranges.""" +class CreateVerifiedAccessEndpointEniOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessEndpointEniOptions`.""" + + network_interface_id: str | None + """The ID of the network interface.""" + protocol: str | None + """The IP protocol.""" + port: int | None + """The IP port number.""" + port_ranges: ( + Sequence[ + CreateVerifiedAccessEndpointPortRange + | CreateVerifiedAccessEndpointPortRangeDict + ] + | None + ) + """The port ranges.""" + @dataclass(kw_only=True) class CreateVerifiedAccessEndpointInput(_SerdeShape): """Dataclass for CreateVerifiedAccessEndpointInput structure.""" @@ -2034,6 +3261,98 @@ class CreateVerifiedAccessEndpointInput(_SerdeShape): `cidr`. """ +class CreateVerifiedAccessEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessEndpointInput`.""" + + verified_access_group_id: Required[str] + """The ID of the Verified Access group to associate the endpoint with.""" + endpoint_type: Required[str] + """The type of Verified Access endpoint to create.""" + attachment_type: Required[str] + """The type of attachment.""" + domain_certificate_arn: str | None + """ + The ARN of the public TLS/SSL certificate in Amazon Web Services + Certificate Manager to associate with the endpoint. The CN in the + certificate must match the DNS name your end users will use to reach + your application. + """ + application_domain: str | None + """The DNS name for users to reach your application.""" + endpoint_domain_prefix: str | None + """ + A custom identifier that is prepended to the DNS name that is generated + for the endpoint. + """ + security_group_ids: Sequence[str] | None + """ + The IDs of the security groups to associate with the Verified Access + endpoint. Required if `AttachmentType` is set to `vpc`. + """ + load_balancer_options: ( + CreateVerifiedAccessEndpointLoadBalancerOptions + | CreateVerifiedAccessEndpointLoadBalancerOptionsDict + | None + ) + """ + The load balancer details. This parameter is required if the endpoint + type is `load-balancer`. + """ + network_interface_options: ( + CreateVerifiedAccessEndpointEniOptions + | CreateVerifiedAccessEndpointEniOptionsDict + | None + ) + """ + The network interface details. This parameter is required if the + endpoint type is `network-interface`. + """ + description: str | None + """A description for the Verified Access endpoint.""" + policy_document: str | None + """The Verified Access policy document.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the Verified Access endpoint.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + sse_specification: ( + VerifiedAccessSseSpecificationRequest + | VerifiedAccessSseSpecificationRequestDict + | None + ) + """The options for server side encryption.""" + rds_options: ( + CreateVerifiedAccessEndpointRdsOptions + | CreateVerifiedAccessEndpointRdsOptionsDict + | None + ) + """ + The RDS details. This parameter is required if the endpoint type is + `rds`. + """ + cidr_options: ( + CreateVerifiedAccessEndpointCidrOptions + | CreateVerifiedAccessEndpointCidrOptionsDict + | None + ) + """ + The CIDR options. This parameter is required if the endpoint type is + `cidr`. + """ + @dataclass(kw_only=True) class CreateVerifiedAccessEndpointLoadBalancerOptions(_SerdeShape): """ @@ -2055,6 +3374,29 @@ class CreateVerifiedAccessEndpointLoadBalancerOptions(_SerdeShape): port_ranges: list[CreateVerifiedAccessEndpointPortRange] | None = ... """The port ranges.""" +class CreateVerifiedAccessEndpointLoadBalancerOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessEndpointLoadBalancerOptions`.""" + + protocol: str | None + """The IP protocol.""" + port: int | None + """The IP port number.""" + load_balancer_arn: str | None + """The ARN of the load balancer.""" + subnet_ids: Sequence[str] | None + """ + The IDs of the subnets. You can specify only one subnet per Availability + Zone. + """ + port_ranges: ( + Sequence[ + CreateVerifiedAccessEndpointPortRange + | CreateVerifiedAccessEndpointPortRangeDict + ] + | None + ) + """The port ranges.""" + @dataclass(kw_only=True) class CreateVerifiedAccessEndpointOutput(_SerdeShape): """Dataclass for CreateVerifiedAccessEndpointOutput structure.""" @@ -2078,6 +3420,14 @@ class CreateVerifiedAccessEndpointPortRange(_SerdeShape): to_port: int | None = ... """The end of the port range.""" +class CreateVerifiedAccessEndpointPortRangeDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessEndpointPortRange`.""" + + from_port: int | None + """The start of the port range.""" + to_port: int | None + """The end of the port range.""" + @dataclass(kw_only=True) class CreateVerifiedAccessEndpointRdsOptions(_SerdeShape): """Describes the RDS options for a Verified Access endpoint.""" @@ -2100,6 +3450,27 @@ class CreateVerifiedAccessEndpointRdsOptions(_SerdeShape): Zone. """ +class CreateVerifiedAccessEndpointRdsOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessEndpointRdsOptions`.""" + + protocol: str | None + """The protocol.""" + port: int | None + """The port.""" + rds_db_instance_arn: str | None + """The ARN of the RDS instance.""" + rds_db_cluster_arn: str | None + """The ARN of the DB cluster.""" + rds_db_proxy_arn: str | None + """The ARN of the RDS proxy.""" + rds_endpoint: str | None + """The RDS endpoint.""" + subnet_ids: Sequence[str] | None + """ + The IDs of the subnets. You can specify only one subnet per Availability + Zone. + """ + @dataclass(kw_only=True) class CreateVerifiedAccessGroupInput(_SerdeShape): """Dataclass for CreateVerifiedAccessGroupInput structure.""" @@ -2130,14 +3501,47 @@ class CreateVerifiedAccessGroupInput(_SerdeShape): sse_specification: VerifiedAccessSseSpecificationRequest | None = ... """The options for server side encryption.""" -@dataclass(kw_only=True) -class CreateVerifiedAccessGroupOutput(_SerdeShape): - """Dataclass for CreateVerifiedAccessGroupOutput structure.""" +class CreateVerifiedAccessGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessGroupInput`.""" - verified_access_group: VerifiedAccessGroup | None = ... - """Details about the Verified Access group.""" - response_metadata: ResponseMetadata = ... - """ + verified_access_instance_id: Required[str] + """The ID of the Verified Access instance.""" + description: str | None + """A description for the Verified Access group.""" + policy_document: str | None + """The Verified Access policy document.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the Verified Access group.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + sse_specification: ( + VerifiedAccessSseSpecificationRequest + | VerifiedAccessSseSpecificationRequestDict + | None + ) + """The options for server side encryption.""" + +@dataclass(kw_only=True) +class CreateVerifiedAccessGroupOutput(_SerdeShape): + """Dataclass for CreateVerifiedAccessGroupOutput structure.""" + + verified_access_group: VerifiedAccessGroup | None = ... + """Details about the Verified Access group.""" + response_metadata: ResponseMetadata = ... + """ Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually @@ -2175,6 +3579,36 @@ class CreateVerifiedAccessInstanceInput(_SerdeShape): cidr_endpoints_custom_sub_domain: str | None = ... """The custom subdomain.""" +class CreateVerifiedAccessInstanceInputDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessInstanceInput`.""" + + description: str | None + """A description for the Verified Access instance.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the Verified Access instance.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + fips_enabled: bool | None + """ + Enable or disable support for Federal Information Processing Standards + (FIPS) on the instance. + """ + cidr_endpoints_custom_sub_domain: str | None + """The custom subdomain.""" + @dataclass(kw_only=True) class CreateVerifiedAccessInstanceOutput(_SerdeShape): """Dataclass for CreateVerifiedAccessInstanceOutput structure.""" @@ -2210,6 +3644,26 @@ class CreateVerifiedAccessNativeApplicationOidcOptions(_SerdeShape): scope: str | None = ... """The set of user claims to be requested from the IdP.""" +class CreateVerifiedAccessNativeApplicationOidcOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessNativeApplicationOidcOptions`.""" + + public_signing_key_endpoint: str | None + """The public signing key endpoint.""" + issuer: str | None + """The OIDC issuer identifier of the IdP.""" + authorization_endpoint: str | None + """The authorization endpoint of the IdP.""" + token_endpoint: str | None + """The token endpoint of the IdP.""" + user_info_endpoint: str | None + """The user info endpoint of the IdP.""" + client_id: str | None + """The OAuth 2.0 client identifier.""" + client_secret: str | None + """The OAuth 2.0 client secret.""" + scope: str | None + """The set of user claims to be requested from the IdP.""" + @dataclass(kw_only=True) class CreateVerifiedAccessTrustProviderDeviceOptions(_SerdeShape): """ @@ -2225,6 +3679,17 @@ class CreateVerifiedAccessTrustProviderDeviceOptions(_SerdeShape): authenticity of the device tokens. """ +class CreateVerifiedAccessTrustProviderDeviceOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessTrustProviderDeviceOptions`.""" + + tenant_id: str | None + """The ID of the tenant application with the device-identity provider.""" + public_signing_key_url: str | None + """ + The URL Amazon Web Services Verified Access will use to verify the + authenticity of the device tokens. + """ + @dataclass(kw_only=True) class CreateVerifiedAccessTrustProviderInput(_SerdeShape): """Dataclass for CreateVerifiedAccessTrustProviderInput structure.""" @@ -2279,6 +3744,73 @@ class CreateVerifiedAccessTrustProviderInput(_SerdeShape): ) = ... """The OpenID Connect (OIDC) options.""" +class CreateVerifiedAccessTrustProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessTrustProviderInput`.""" + + trust_provider_type: Required[str] + """The type of trust provider.""" + user_trust_provider_type: str | None + """ + The type of user-based trust provider. This parameter is required when + the provider type is `user`. + """ + device_trust_provider_type: str | None + """ + The type of device-based trust provider. This parameter is required when + the provider type is `device`. + """ + oidc_options: ( + CreateVerifiedAccessTrustProviderOidcOptions + | CreateVerifiedAccessTrustProviderOidcOptionsDict + | None + ) + """ + The options for a OpenID Connect-compatible user-identity trust + provider. This parameter is required when the provider type is `user`. + """ + device_options: ( + CreateVerifiedAccessTrustProviderDeviceOptions + | CreateVerifiedAccessTrustProviderDeviceOptionsDict + | None + ) + """ + The options for a device-based trust provider. This parameter is + required when the provider type is `device`. + """ + policy_reference_name: Required[str] + """The identifier to be used when working with policy rules.""" + description: str | None + """A description for the Verified Access trust provider.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the Verified Access trust provider.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + sse_specification: ( + VerifiedAccessSseSpecificationRequest + | VerifiedAccessSseSpecificationRequestDict + | None + ) + """The options for server side encryption.""" + native_application_oidc_options: ( + CreateVerifiedAccessNativeApplicationOidcOptions + | CreateVerifiedAccessNativeApplicationOidcOptionsDict + | None + ) + """The OpenID Connect (OIDC) options.""" + @dataclass(kw_only=True) class CreateVerifiedAccessTrustProviderOidcOptions(_SerdeShape): """ @@ -2305,6 +3837,28 @@ class CreateVerifiedAccessTrustProviderOidcOptions(_SerdeShape): returns a specific set of user attributes. """ +class CreateVerifiedAccessTrustProviderOidcOptionsDict(TypedDict, total=False): + """Dictionary form of `CreateVerifiedAccessTrustProviderOidcOptions`.""" + + issuer: str | None + """The OIDC issuer.""" + authorization_endpoint: str | None + """The OIDC authorization endpoint.""" + token_endpoint: str | None + """The OIDC token endpoint.""" + user_info_endpoint: str | None + """The OIDC user info endpoint.""" + client_id: str | None + """The client identifier.""" + client_secret: str | None + """The client secret.""" + scope: str | None + """ + OpenID Connect (OIDC) scopes are used by an application during + authentication to authorize access to a user's details. Each scope + returns a specific set of user attributes. + """ + @dataclass(kw_only=True) class CreateVerifiedAccessTrustProviderOutput(_SerdeShape): """Dataclass for CreateVerifiedAccessTrustProviderOutput structure.""" @@ -2522,129 +4076,350 @@ class CreateVolumeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class CreateVolumeOutput(_SerdeShape): - """Describes a volume.""" +class CreateVolumeInputDict(TypedDict, total=False): + """Dictionary form of `CreateVolumeInput`.""" - availability_zone_id: str | None = ... - """The ID of the Availability Zone for the volume.""" - outpost_arn: str | None = ... - """The Amazon Resource Name (ARN) of the Outpost.""" - source_volume_id: str | None = ... - """ - The ID of the source volume from which the volume copy was created. Only - for volume copies. + availability_zone: str | None """ - iops: int | None = ... - """ - The number of I/O operations per second (IOPS). For `gp3`, `io1`, and - `io2` volumes, this represents the number of IOPS that are provisioned - for the volume. For `gp2` volumes, this represents the baseline - performance of the volume and the rate at which the volume accumulates - I/O credits for bursting. - """ - tags: list[Tag] | None = ... - """Any tags assigned to the volume.""" - volume_type: str | None = ... - """The volume type.""" - fast_restored: bool | None = ... - """ - Note: - This parameter is not returned by CreateVolume. + The ID of the Availability Zone in which to create the volume. For + example, `us-east-1a`. - Indicates whether the volume was created using fast snapshot restore. + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified, but + not both. """ - multi_attach_enabled: bool | None = ... - """Indicates whether Amazon EBS Multi-Attach is enabled.""" - throughput: int | None = ... - """The throughput that the volume supports, in MiB/s.""" - sse_type: str | None = ... + availability_zone_id: str | None """ - Note: - This parameter is not returned by CreateVolume. + The ID of the Availability Zone in which to create the volume. For + example, `use1-az1`. - Reserved for future use. - """ - operator: OperatorResponse | None = ... - """The service provider that manages the volume.""" - volume_initialization_rate: int | None = ... - """ - The Amazon EBS Provisioned Rate for Volume Initialization (volume - initialization rate) specified for the volume during creation, in MiB/s. - If no volume initialization rate was specified, the value is `null`. + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified, but + not both. """ - volume_arn: str | None = ... - """The Amazon Resource Name (ARN) of the volume.""" - owner_id: str | None = ... - """The ID of the Amazon Web Services account that owns the volume.""" - volume_id: str | None = ... - """The ID of the volume.""" - size: int | None = ... - """The size of the volume, in GiBs.""" - snapshot_id: str | None = ... - """The snapshot from which the volume was created, if applicable.""" - availability_zone: str | None = ... - """The Availability Zone for the volume.""" - state: str | None = ... - """The volume state.""" - create_time: datetime | None = ... - """The time stamp when volume creation was initiated.""" - attachments: list[VolumeAttachment] | None = ... + encrypted: bool | None """ - Note: - This parameter is not returned by CreateVolume. + Indicates whether the volume should be encrypted. The effect of setting + the encryption state to `true` depends on the volume origin (new or from + a snapshot), starting encryption state, ownership, and whether + encryption by default is enabled. For more information, see [Encryption + by + default](https://docs.aws.amazon.com/ebs/latest/userguide/work-with-ebs-encr.html#encryption-by-default) + in the *Amazon EBS User Guide*. - Information about the volume attachments. - """ - encrypted: bool | None = ... - """Indicates whether the volume is encrypted.""" - kms_key_id: str | None = ... - """ - The Amazon Resource Name (ARN) of the KMS key that was used to protect - the volume encryption key for the volume. - """ - response_metadata: ResponseMetadata = ... + Encrypted Amazon EBS volumes must be attached to instances that support + Amazon EBS encryption. For more information, see [Supported instance + types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances). """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + iops: int | None """ + The number of I/O operations per second (IOPS) to provision for the + volume. Required for `io1` and `io2` volumes. Optional for `gp3` + volumes. Omit for all other volume types. -@dataclass(kw_only=True) -class CreateVolumePermission(_SerdeShape): - """ - Describes the user or group to be added or removed from the list of - create volume permissions for a volume. - """ + Valid ranges: - user_id: str | None = ... - """The ID of the Amazon Web Services account to be added or removed.""" - group: str | None = ... - """The group to be added or removed. The possible value is `all`.""" + - gp3: `3,000 `(*default*)` - 80,000` IOPS -@dataclass(kw_only=True) -class CreateVolumePermissionModifications(_SerdeShape): - """ - Describes modifications to the list of create volume permissions for a - volume. - """ + - io1: `100 - 64,000` IOPS - add: list[CreateVolumePermission] | None = ... - """Adds the specified Amazon Web Services account ID or group to the list.""" - remove: list[CreateVolumePermission] | None = ... + - io2: `100 - 256,000` IOPS + + Note: + [Instances built on the Nitro + System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) + can support up to 256,000 IOPS. Other instances can support up to 32,000 + IOPS. """ - Removes the specified Amazon Web Services account ID or group from the - list. + kms_key_id: str | None """ + The identifier of the KMS key to use for Amazon EBS encryption. If this + parameter is not specified, your KMS key for Amazon EBS is used. If + `KmsKeyId` is specified, the encrypted state must be `true`. -@dataclass(kw_only=True) -class CreateVpcBlockPublicAccessExclusionInput(_SerdeShape): - """Dataclass for CreateVpcBlockPublicAccessExclusionInput structure.""" + You can specify the KMS key using any of the following: - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without + - Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab. + + - Key alias. For example, alias/ExampleAlias. + + - Key ARN. For example, + arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab. + + - Alias ARN. For example, + arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. + + Amazon Web Services authenticates the KMS key asynchronously. Therefore, + if you specify an ID, alias, or ARN that is not valid, the action can + appear to complete, but eventually fails. + """ + outpost_arn: str | None + """ + The Amazon Resource Name (ARN) of the Outpost on which to create the + volume. + + If you intend to use a volume with an instance running on an outpost, + then you must create the volume on the same outpost as the instance. You + can't use a volume created in an Amazon Web Services Region with an + instance on an Amazon Web Services outpost, or the other way around. + """ + size: int | None + """ + The size of the volume, in GiBs. You must specify either a snapshot ID + or a volume size. If you specify a snapshot, the default is the snapshot + size, and you can specify a volume size that is equal to or larger than + the snapshot size. + + Valid sizes: + + - gp2: `1 - 16,384` GiB + + - gp3: `1 - 65,536` GiB + + - io1: `4 - 16,384` GiB + + - io2: `4 - 65,536` GiB + + - st1 and sc1: `125 - 16,384` GiB + + - standard: `1 - 1024` GiB + """ + snapshot_id: str | None + """ + The snapshot from which to create the volume. You must specify either a + snapshot ID or a volume size. + """ + volume_type: str | None + """ + The volume type. This parameter can be one of the following values: + + - General Purpose SSD: `gp2` | `gp3` + + - Provisioned IOPS SSD: `io1` | `io2` + + - Throughput Optimized HDD: `st1` + + - Cold HDD: `sc1` + + - Magnetic: `standard` + + Warning: + Throughput Optimized HDD (`st1`) and Cold HDD (`sc1`) volumes can't be + used as boot volumes. + + For more information, see [Amazon EBS volume + types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html) + in the *Amazon EBS User Guide*. + + Default: `gp2` + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the volume during creation.""" + multi_attach_enabled: bool | None + """ + Indicates whether to enable Amazon EBS Multi-Attach. If you enable + Multi-Attach, you can attach the volume to up to 16 [Instances built on + the Nitro + System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) + in the same Availability Zone. This parameter is supported with `io1` + and `io2` volumes only. For more information, see [Amazon EBS + Multi-Attach](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html) + in the *Amazon EBS User Guide*. + """ + throughput: int | None + """ + The throughput to provision for the volume, in MiB/s. Supported for + `gp3` volumes only. Omit for all other volume types. + + Valid Range: `125 - 2000` MiB/s + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + volume_initialization_rate: int | None + """ + Specifies the Amazon EBS Provisioned Rate for Volume Initialization + (volume initialization rate), in MiB/s, at which to download the + snapshot blocks from Amazon S3 to the volume. This is also known as + *volume initialization*. Specifying a volume initialization rate ensures + that the volume is initialized at a predictable and consistent rate + after creation. + + This parameter is supported only for volumes created from snapshots. + Omit this parameter if: + + - You want to create the volume using fast snapshot restore. You must + specify a snapshot that is enabled for fast snapshot restore. In this + case, the volume is fully initialized at creation. + + Note: + If you specify a snapshot that is enabled for fast snapshot restore + and a volume initialization rate, the volume will be initialized at + the specified rate instead of fast snapshot restore. + + - You want to create a volume that is initialized at the default rate. + + For more information, see [Initialize Amazon EBS + volumes](https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html) + in the *Amazon EC2 User Guide*. + + Valid range: 100 - 300 MiB/s + """ + operator: OperatorRequest | OperatorRequestDict | None + """Reserved for internal use.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class CreateVolumeOutput(_SerdeShape): + """Describes a volume.""" + + availability_zone_id: str | None = ... + """The ID of the Availability Zone for the volume.""" + outpost_arn: str | None = ... + """The Amazon Resource Name (ARN) of the Outpost.""" + source_volume_id: str | None = ... + """ + The ID of the source volume from which the volume copy was created. Only + for volume copies. + """ + iops: int | None = ... + """ + The number of I/O operations per second (IOPS). For `gp3`, `io1`, and + `io2` volumes, this represents the number of IOPS that are provisioned + for the volume. For `gp2` volumes, this represents the baseline + performance of the volume and the rate at which the volume accumulates + I/O credits for bursting. + """ + tags: list[Tag] | None = ... + """Any tags assigned to the volume.""" + volume_type: str | None = ... + """The volume type.""" + fast_restored: bool | None = ... + """ + Note: + This parameter is not returned by CreateVolume. + + Indicates whether the volume was created using fast snapshot restore. + """ + multi_attach_enabled: bool | None = ... + """Indicates whether Amazon EBS Multi-Attach is enabled.""" + throughput: int | None = ... + """The throughput that the volume supports, in MiB/s.""" + sse_type: str | None = ... + """ + Note: + This parameter is not returned by CreateVolume. + + Reserved for future use. + """ + operator: OperatorResponse | None = ... + """The service provider that manages the volume.""" + volume_initialization_rate: int | None = ... + """ + The Amazon EBS Provisioned Rate for Volume Initialization (volume + initialization rate) specified for the volume during creation, in MiB/s. + If no volume initialization rate was specified, the value is `null`. + """ + volume_arn: str | None = ... + """The Amazon Resource Name (ARN) of the volume.""" + owner_id: str | None = ... + """The ID of the Amazon Web Services account that owns the volume.""" + volume_id: str | None = ... + """The ID of the volume.""" + size: int | None = ... + """The size of the volume, in GiBs.""" + snapshot_id: str | None = ... + """The snapshot from which the volume was created, if applicable.""" + availability_zone: str | None = ... + """The Availability Zone for the volume.""" + state: str | None = ... + """The volume state.""" + create_time: datetime | None = ... + """The time stamp when volume creation was initiated.""" + attachments: list[VolumeAttachment] | None = ... + """ + Note: + This parameter is not returned by CreateVolume. + + Information about the volume attachments. + """ + encrypted: bool | None = ... + """Indicates whether the volume is encrypted.""" + kms_key_id: str | None = ... + """ + The Amazon Resource Name (ARN) of the KMS key that was used to protect + the volume encryption key for the volume. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateVolumePermission(_SerdeShape): + """ + Describes the user or group to be added or removed from the list of + create volume permissions for a volume. + """ + + user_id: str | None = ... + """The ID of the Amazon Web Services account to be added or removed.""" + group: str | None = ... + """The group to be added or removed. The possible value is `all`.""" + +class CreateVolumePermissionDict(TypedDict, total=False): + """Dictionary form of `CreateVolumePermission`.""" + + user_id: str | None + """The ID of the Amazon Web Services account to be added or removed.""" + group: str | None + """The group to be added or removed. The possible value is `all`.""" + +@dataclass(kw_only=True) +class CreateVolumePermissionModifications(_SerdeShape): + """ + Describes modifications to the list of create volume permissions for a + volume. + """ + + add: list[CreateVolumePermission] | None = ... + """Adds the specified Amazon Web Services account ID or group to the list.""" + remove: list[CreateVolumePermission] | None = ... + """ + Removes the specified Amazon Web Services account ID or group from the + list. + """ + +class CreateVolumePermissionModificationsDict(TypedDict, total=False): + """Dictionary form of `CreateVolumePermissionModifications`.""" + + add: Sequence[CreateVolumePermission | CreateVolumePermissionDict] | None + """Adds the specified Amazon Web Services account ID or group to the list.""" + remove: Sequence[CreateVolumePermission | CreateVolumePermissionDict] | None + """ + Removes the specified Amazon Web Services account ID or group from the + list. + """ + +@dataclass(kw_only=True) +class CreateVpcBlockPublicAccessExclusionInput(_SerdeShape): + """Dataclass for CreateVpcBlockPublicAccessExclusionInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. @@ -2674,6 +4449,41 @@ class CreateVpcBlockPublicAccessExclusionInput(_SerdeShape): `TeamA` for the filter value. """ +class CreateVpcBlockPublicAccessExclusionInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcBlockPublicAccessExclusionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + subnet_id: str | None + """A subnet ID.""" + vpc_id: str | None + """A VPC ID.""" + internet_gateway_exclusion_mode: Required[str] + """ + The exclusion mode for internet gateway traffic. + + - `allow-bidirectional`: Allow all internet traffic to and from the + excluded VPCs and subnets. + + - `allow-egress`: Allow outbound internet traffic from the excluded VPCs + and subnets. Block inbound internet traffic to the excluded VPCs and + subnets. Only applies when VPC Block Public Access is set to + Bidirectional. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + `tag` - The key/value combination of a tag assigned to the resource. Use + the tag key in the filter name and the tag value as the filter value. + For example, to find all resources that have a tag with the key `Owner` + and the value `TeamA`, specify `tag:Owner` for the filter name and + `TeamA` for the filter value. + """ + @dataclass(kw_only=True) class CreateVpcBlockPublicAccessExclusionOutput(_SerdeShape): """Dataclass for CreateVpcBlockPublicAccessExclusionOutput structure.""" @@ -2707,6 +4517,24 @@ class CreateVpcEncryptionControlInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the VPC Encryption Control resource.""" +class CreateVpcEncryptionControlInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcEncryptionControlInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_id: Required[str] + """ + The ID of the VPC for which to create the encryption control + configuration. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the VPC Encryption Control resource.""" + @dataclass(kw_only=True) class CreateVpcEncryptionControlOutput(_SerdeShape): """Dataclass for CreateVpcEncryptionControlOutput structure.""" @@ -2721,29 +4549,57 @@ class CreateVpcEncryptionControlOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class CreateVpcEndpointConnectionNotificationInput(_SerdeShape): - """Dataclass for CreateVpcEndpointConnectionNotificationInput structure.""" +@dataclass(kw_only=True) +class CreateVpcEndpointConnectionNotificationInput(_SerdeShape): + """Dataclass for CreateVpcEndpointConnectionNotificationInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: str | None = ... + """The ID of the endpoint service.""" + vpc_endpoint_id: str | None = ... + """The ID of the endpoint.""" + connection_notification_arn: str | None = ... + """The ARN of the SNS topic for the notifications.""" + connection_events: list[str] | None = ... + """ + The endpoint events for which to receive notifications. Valid values are + `Accept`, `Connect`, `Delete`, and `Reject`. + """ + client_token: str | None = ... + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + """ + +class CreateVpcEndpointConnectionNotificationInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcEndpointConnectionNotificationInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - service_id: str | None = ... + service_id: str | None """The ID of the endpoint service.""" - vpc_endpoint_id: str | None = ... + vpc_endpoint_id: str | None """The ID of the endpoint.""" - connection_notification_arn: str | None = ... + connection_notification_arn: Required[str] """The ARN of the SNS topic for the notifications.""" - connection_events: list[str] | None = ... + connection_events: Required[Sequence[str]] """ The endpoint events for which to receive notifications. Valid values are `Accept`, `Connect`, `Delete`, and `Reject`. """ - client_token: str | None = ... + client_token: str | None """ Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see [How to ensure @@ -2882,6 +4738,120 @@ class CreateVpcEndpointInput(_SerdeShape): Region. """ +class CreateVpcEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcEndpointInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_endpoint_type: str | None + """ + The type of endpoint. + + For more information about the types of VPC endpoints, see [VPC + endpoints](https://docs.aws.amazon.com/vpc/latest/privatelink/concepts.html#concepts-vpc-endpoints) + in the *Amazon Web Services PrivateLink User Guide*. + + Default: Gateway + """ + vpc_id: Required[str] + """The ID of the VPC.""" + service_name: str | None + """The name of the endpoint service.""" + policy_document: str | None + """ + (Interface and gateway endpoints) A policy to attach to the endpoint + that controls access to the service. The policy must be in valid JSON + format. If this parameter is not specified, we attach a default policy + that allows full access to the service. + """ + route_table_ids: Sequence[str] | None + """(Gateway endpoint) The route table IDs.""" + subnet_ids: Sequence[str] | None + """ + (Interface, Gateway Load Balancer endpoints, Resource, ServiceNetwork, + and Tunnel endpoints only) The IDs of the subnets in which to create + endpoint network interfaces. For a Gateway Load Balancer endpoint, you + can specify only one subnet. For a `Tunnel` endpoint, the subnets must + be in the Availability Zones of the resource gateway associated with the + shared resource configuration. An endpoint network interface is created + only in an Availability Zone that the resource gateway is also in. + """ + security_group_ids: Sequence[str] | None + """ + (Interface, Resource, ServiceNetwork, and Tunnel endpoints only) The IDs + of the security groups to associate with the endpoint network + interfaces. If this parameter is not specified, we use the default + security group for the VPC. + """ + ip_address_type: str | None + """The IP address type for the endpoint.""" + dns_options: DnsOptionsSpecification | DnsOptionsSpecificationDict | None + """The DNS options for the endpoint.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + """ + private_dns_enabled: bool | None + """ + (Interface endpoint) Indicates whether to associate a private hosted + zone with the specified VPC. The private hosted zone contains a record + set for the default public DNS name for the service for the Region (for + example, `kinesis.us-east-1.amazonaws.com`), which resolves to the + private IP addresses of the endpoint network interfaces in the VPC. This + enables you to make requests to the default public DNS name for the + service instead of the public DNS names that are automatically generated + by the VPC endpoint service. + + To use a private hosted zone, you must set the following VPC attributes + to `true`: `enableDnsHostnames` and `enableDnsSupport`. Use + ModifyVpcAttribute to set the VPC attributes. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to associate with the endpoint.""" + subnet_configurations: ( + Sequence[SubnetConfiguration | SubnetConfigurationDict] | None + ) + """The subnet configurations for the endpoint.""" + service_network_arn: str | None + """ + The Amazon Resource Name (ARN) of a service network that will be + associated with the VPC endpoint of type service-network. + """ + resource_configuration_arn: str | None + """ + (Resource and Tunnel endpoints only) The Amazon Resource Name (ARN) of a + resource configuration associated with the VPC endpoint. The type of + resource configuration depends on the endpoint type: + + - For a Resource endpoint, you can specify a resource configuration that + is of type `SINGLE`, `GROUP`, or `ARN`. To reach a resource that + belongs to a group, specify the parent `GROUP` resource configuration. + + - For a Tunnel endpoint, you can specify a resource configuration that + is of type `CIDR`. + + For more information about the types of resource configurations, see + [Types of resource + configurations](https://docs.aws.amazon.com/vpc/latest/privatelink/resource-configuration.html) + in the *Amazon Web Services PrivateLink User Guide*. + + This request fails if a VPC endpoint owned by a different Amazon Web + Services account already exists on a resource gateway that is enabled + for `ResourceGatewayCharges` payer responsibility. + """ + service_region: str | None + """ + The Region where the service is hosted. The default is the current + Region. + """ + @dataclass(kw_only=True) class CreateVpcEndpointOutput(_SerdeShape): """Dataclass for CreateVpcEndpointOutput structure.""" @@ -2942,6 +4912,46 @@ class CreateVpcEndpointServiceConfigurationInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to associate with the service.""" +class CreateVpcEndpointServiceConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcEndpointServiceConfigurationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + acceptance_required: bool | None + """ + Indicates whether requests from service consumers to create an endpoint + to your service must be accepted manually. + """ + private_dns_name: str | None + """ + (Interface endpoint configuration) The private DNS name to assign to the + VPC endpoint service. + """ + network_load_balancer_arns: Sequence[str] | None + """The Amazon Resource Names (ARNs) of the Network Load Balancers.""" + gateway_load_balancer_arns: Sequence[str] | None + """The Amazon Resource Names (ARNs) of the Gateway Load Balancers.""" + supported_ip_address_types: Sequence[str] | None + """ + The supported IP address types. The possible values are `ipv4` and + `ipv6`. + """ + supported_regions: Sequence[str] | None + """The Regions from which service consumers can access the service.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to associate with the service.""" + @dataclass(kw_only=True) class CreateVpcEndpointServiceConfigurationOutput(_SerdeShape): """Dataclass for CreateVpcEndpointServiceConfigurationOutput structure.""" @@ -3067,6 +5077,113 @@ class CreateVpcInput(_SerdeShape): the CIDR block. """ +class CreateVpcInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcInput`.""" + + cidr_block: str | None + """ + The IPv4 network range for the VPC, in CIDR notation. For example, + `10.0.0.0/16`. We modify the specified CIDR block to its canonical form; + for example, if you specify `100.68.0.18/18`, we modify it to + `100.68.0.0/18`. + """ + ipv6_pool: str | None + """ + The ID of an IPv6 address pool from which to allocate the IPv6 CIDR + block. + """ + ipv6_cidr_block: str | None + """ + The IPv6 CIDR block from the IPv6 address pool. You must also specify + `Ipv6Pool` in the request. + + To let Amazon choose the IPv6 CIDR block for you, omit this parameter. + """ + ipv4_ipam_pool_id: str | None + """ + The ID of an IPv4 IPAM pool you want to use for allocating this VPC's + CIDR. For more information, see [What is + IPAM?](https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html) + in the *Amazon VPC IPAM User Guide*. + """ + ipv4_netmask_length: int | None + """ + The netmask length of the IPv4 CIDR you want to allocate to this VPC + from an Amazon VPC IP Address Manager (IPAM) pool. For more information + about IPAM, see [What is + IPAM?](https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html) + in the *Amazon VPC IPAM User Guide*. + """ + ipv6_ipam_pool_id: str | None + """ + The ID of an IPv6 IPAM pool which will be used to allocate this VPC an + IPv6 CIDR. IPAM is a VPC feature that you can use to automate your IP + address management workflows including assigning, tracking, + troubleshooting, and auditing IP addresses across Amazon Web Services + Regions and accounts throughout your Amazon Web Services Organization. + For more information, see [What is + IPAM?](https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html) + in the *Amazon VPC IPAM User Guide*. + """ + ipv6_netmask_length: int | None + """ + The netmask length of the IPv6 CIDR you want to allocate to this VPC + from an Amazon VPC IP Address Manager (IPAM) pool. For more information + about IPAM, see [What is + IPAM?](https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html) + in the *Amazon VPC IPAM User Guide*. + """ + ipv6_cidr_block_network_border_group: str | None + """ + The name of the location from which we advertise the IPV6 CIDR block. + Use this parameter to limit the address to this location. + + You must set `AmazonProvidedIpv6CidrBlock` to `true` to use this + parameter. + """ + vpc_encryption_control: ( + VpcEncryptionControlConfiguration | VpcEncryptionControlConfigurationDict | None + ) + """ + Specifies the encryption control configuration to apply to the VPC + during creation. VPC Encryption Control enables you to enforce + encryption for all data in transit within and between VPCs to meet + compliance requirements. + + For more information, see [Enforce VPC encryption in + transit](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-encryption-controls.html) + in the *Amazon VPC User Guide*. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to assign to the VPC.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_tenancy: str | None + """ + The tenancy options for instances launched into the VPC. For `default`, + instances are launched with shared tenancy by default. You can launch + instances with any tenancy into a shared tenancy VPC. For `dedicated`, + instances are launched as dedicated tenancy instances by default. You + can only launch instances with a tenancy of `dedicated` or `host` into a + dedicated tenancy VPC. + + **Important:** The `host` value cannot be used with this parameter. Use + the `default` or `dedicated` values only. + + Default: `default` + """ + amazon_provided_ipv6_cidr_block: bool | None + """ + Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for + the VPC. You cannot specify the range of IP addresses, or the size of + the CIDR block. + """ + @dataclass(kw_only=True) class CreateVpcOutput(_SerdeShape): """Dataclass for CreateVpcOutput structure.""" @@ -3085,33 +5202,69 @@ class CreateVpcOutput(_SerdeShape): class CreateVpcPeeringConnectionInput(_SerdeShape): """Dataclass for CreateVpcPeeringConnectionInput structure.""" - peer_region: str | None = ... + peer_region: str | None = ... + """ + The Region code for the accepter VPC, if the accepter VPC is located in + a Region other than the Region in which you make the request. + + Default: The Region in which you make the request. + """ + tag_specifications: list[TagSpecification] | None = ... + """The tags to assign to the peering connection.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_id: str | None = ... + """ + The ID of the requester VPC. You must specify this parameter in the + request. + """ + peer_vpc_id: str | None = ... + """ + The ID of the VPC with which you are creating the VPC peering + connection. You must specify this parameter in the request. + """ + peer_owner_id: str | None = ... + """ + The Amazon Web Services account ID of the owner of the accepter VPC. + + Default: Your Amazon Web Services account ID + """ + +class CreateVpcPeeringConnectionInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpcPeeringConnectionInput`.""" + + peer_region: str | None """ The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request. Default: The Region in which you make the request. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """The tags to assign to the peering connection.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - vpc_id: str | None = ... + vpc_id: Required[str] """ The ID of the requester VPC. You must specify this parameter in the request. """ - peer_vpc_id: str | None = ... + peer_vpc_id: str | None """ The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request. """ - peer_owner_id: str | None = ... + peer_owner_id: str | None """ The Amazon Web Services account ID of the owner of the accepter VPC. @@ -3150,6 +5303,23 @@ class CreateVpnConcentratorInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateVpnConcentratorInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpnConcentratorInput`.""" + + type: Required[str] + """The type of VPN concentrator to create.""" + transit_gateway_id: str | None + """The ID of the transit gateway to attach the VPN concentrator to.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the VPN concentrator during creation.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateVpnConcentratorOutput(_SerdeShape): """Dataclass for CreateVpnConcentratorOutput structure.""" @@ -3202,6 +5372,45 @@ class CreateVpnConnectionInput(_SerdeShape): options: VpnConnectionOptionsSpecification | None = ... """The options for the VPN connection.""" +class CreateVpnConnectionInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpnConnectionInput`.""" + + customer_gateway_id: Required[str] + """The ID of the customer gateway.""" + type: Required[str] + """The type of VPN connection (`ipsec.1`).""" + vpn_gateway_id: str | None + """ + The ID of the virtual private gateway. If you specify a virtual private + gateway, you cannot specify a transit gateway. + """ + transit_gateway_id: str | None + """ + The ID of the transit gateway. If you specify a transit gateway, you + cannot specify a virtual private gateway. + """ + vpn_concentrator_id: str | None + """The ID of the VPN concentrator to associate with the VPN connection.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the VPN connection.""" + pre_shared_key_storage: str | None + """ + Specifies the storage mode for the pre-shared key (PSK). Valid values + are `Standard`\" (stored in the Site-to-Site VPN service) or + `SecretsManager` (stored in Amazon Web Services Secrets Manager). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + options: ( + VpnConnectionOptionsSpecification | VpnConnectionOptionsSpecificationDict | None + ) + """The options for the VPN connection.""" + @dataclass(kw_only=True) class CreateVpnConnectionOutput(_SerdeShape): """Contains the output of CreateVpnConnection.""" @@ -3225,6 +5434,14 @@ class CreateVpnConnectionRouteInput(_SerdeShape): vpn_connection_id: str | None = ... """The ID of the VPN connection.""" +class CreateVpnConnectionRouteInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpnConnectionRouteInput`.""" + + destination_cidr_block: Required[str] + """The CIDR block associated with the local subnet of the customer network.""" + vpn_connection_id: Required[str] + """The ID of the VPN connection.""" + @dataclass(kw_only=True) class CreateVpnConnectionRouteOutput(_SerdeShape): """Dataclass for CreateVpnConnectionRouteOutput structure.""" @@ -3264,6 +5481,32 @@ class CreateVpnGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class CreateVpnGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateVpnGatewayInput`.""" + + availability_zone: str | None + """The Availability Zone for the virtual private gateway.""" + type: Required[str] + """The type of VPN connection this virtual private gateway supports.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the virtual private gateway.""" + amazon_side_asn: int | None + """ + A private Autonomous System Number (ASN) for the Amazon side of a BGP + session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 + range. If you're using a 32-bit ASN, it must be in the 4200000000 to + 4294967294 range. + + Default: 64512 + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class CreateVpnGatewayOutput(_SerdeShape): """Contains the output of CreateVpnGateway.""" @@ -3300,6 +5543,16 @@ class CreationDateConditionRequest(_SerdeShape): within the last 300 days. """ +class CreationDateConditionRequestDict(TypedDict, total=False): + """Dictionary form of `CreationDateConditionRequest`.""" + + maximum_days_since_created: int | None + """ + The maximum number of days that have elapsed since the image was + created. For example, a value of `300` allows images that were created + within the last 300 days. + """ + @dataclass(kw_only=True) class CreditSpecification(_SerdeShape): """Describes the credit option for CPU usage of a T instance.""" @@ -3322,6 +5575,16 @@ class CreditSpecificationRequest(_SerdeShape): Valid values: `standard` | `unlimited` """ +class CreditSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `CreditSpecificationRequest`.""" + + cpu_credits: Required[str] + """ + The credit option for CPU usage of a T instance. + + Valid values: `standard` | `unlimited` + """ + class CurrencyCodeValues(UnknownEnumMixin, StrEnum): USD = "USD" @@ -3380,6 +5643,14 @@ class CustomTagKeyValueRequestPair(_SerdeShape): value: str | None = ... """The value of the tag.""" +class CustomTagKeyValueRequestPairDict(TypedDict, total=False): + """Dictionary form of `CustomTagKeyValueRequestPair`.""" + + key: str | None + """The key of the tag.""" + value: str | None + """The value of the tag.""" + @dataclass(kw_only=True) class CustomTagKeyValueResponsePair(_SerdeShape): """ @@ -3429,6 +5700,38 @@ class DataQuery(_SerdeShape): period: str | None = ... """The aggregation period used for the data query.""" +class DataQueryDict(TypedDict, total=False): + """Dictionary form of `DataQuery`.""" + + id: str | None + """ + A user-defined ID associated with a data query that's returned in the + `dataResponse` identifying the query. For example, if you set the Id to + `MyQuery01`in the query, the `dataResponse` identifies the query as + `MyQuery01`. + """ + source: str | None + """ + The Region or Availability Zone that's the source for the data query. + For example, `us-east-1`. + """ + destination: str | None + """ + The Region or Availability Zone that's the target for the data query. + For example, `eu-north-1`. + """ + metric: str | None + """The metric used for the network performance request.""" + statistic: str | None + """ + The metric data aggregation period, `p50`, between the specified + `startDate` and `endDate`. For example, a metric of `five_minutes` is + the median of all the data points gathered within those five minutes. + `p50` is the only supported metric. + """ + period: str | None + """The aggregation period used for the data query.""" + @dataclass(kw_only=True) class DataResponse(_SerdeShape): """The response to a `DataQuery`.""" @@ -3563,6 +5866,29 @@ class DeleteApplicationStatusCheckInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DeleteApplicationStatusCheckInputDict(TypedDict, total=False): + """Dictionary form of `DeleteApplicationStatusCheckInput`.""" + + application_status_check_id: Required[str] + """The ID of the application status check to delete.""" + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If you retry a request with + the same token, the service ignores the request but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteApplicationStatusCheckOutput(_SerdeShape): """Dataclass for DeleteApplicationStatusCheckOutput structure.""" @@ -3591,6 +5917,19 @@ class DeleteCapacityManagerDataExportInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteCapacityManagerDataExportInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCapacityManagerDataExportInput`.""" + + capacity_manager_data_export_id: Required[str] + """The unique identifier of the data export configuration to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteCapacityManagerDataExportOutput(_SerdeShape): """Dataclass for DeleteCapacityManagerDataExportOutput structure.""" @@ -3619,6 +5958,19 @@ class DeleteCarrierGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteCarrierGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCarrierGatewayInput`.""" + + carrier_gateway_id: Required[str] + """The ID of the carrier gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteCarrierGatewayOutput(_SerdeShape): """Dataclass for DeleteCarrierGatewayOutput structure.""" @@ -3647,6 +5999,19 @@ class DeleteClientVpnEndpointAuthorizationPolicyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteClientVpnEndpointAuthorizationPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteClientVpnEndpointAuthorizationPolicyInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteClientVpnEndpointAuthorizationPolicyOutput(_SerdeShape): """ @@ -3678,6 +6043,19 @@ class DeleteClientVpnEndpointInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteClientVpnEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteClientVpnEndpointInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN to be deleted.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteClientVpnEndpointOutput(_SerdeShape): """Dataclass for DeleteClientVpnEndpointOutput structure.""" @@ -3710,6 +6088,23 @@ class DeleteClientVpnRouteInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteClientVpnRouteInputDict(TypedDict, total=False): + """Dictionary form of `DeleteClientVpnRouteInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint from which the route is to be deleted.""" + target_vpc_subnet_id: str | None + """The ID of the target subnet used by the route.""" + destination_cidr_block: Required[str] + """The IPv4 address range, in CIDR notation, of the route to be deleted.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteClientVpnRouteOutput(_SerdeShape): """Dataclass for DeleteClientVpnRouteOutput structure.""" @@ -3740,6 +6135,21 @@ class DeleteCoipCidrInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteCoipCidrInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCoipCidrInput`.""" + + cidr: Required[str] + """A customer-owned IP address range that you want to delete.""" + coip_pool_id: Required[str] + """The ID of the customer-owned address pool.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteCoipCidrOutput(_SerdeShape): """Dataclass for DeleteCoipCidrOutput structure.""" @@ -3768,6 +6178,19 @@ class DeleteCoipPoolInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteCoipPoolInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCoipPoolInput`.""" + + coip_pool_id: Required[str] + """The ID of the CoIP pool that you want to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteCoipPoolOutput(_SerdeShape): """Dataclass for DeleteCoipPoolOutput structure.""" @@ -3796,6 +6219,19 @@ class DeleteCustomerGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteCustomerGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCustomerGatewayInput`.""" + + customer_gateway_id: Required[str] + """The ID of the customer gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteCustomerGatewayOutput(_SerdeShape): """Dataclass for DeleteCustomerGatewayOutput structure.""" @@ -3822,6 +6258,19 @@ class DeleteDhcpOptionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteDhcpOptionsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDhcpOptionsInput`.""" + + dhcp_options_id: Required[str] + """The ID of the DHCP options set.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteDhcpOptionsOutput(_SerdeShape): """Dataclass for DeleteDhcpOptionsOutput structure.""" @@ -3848,6 +6297,19 @@ class DeleteEgressOnlyInternetGatewayInput(_SerdeShape): egress_only_internet_gateway_id: str | None = ... """The ID of the egress-only internet gateway.""" +class DeleteEgressOnlyInternetGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteEgressOnlyInternetGatewayInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + egress_only_internet_gateway_id: Required[str] + """The ID of the egress-only internet gateway.""" + @dataclass(kw_only=True) class DeleteEgressOnlyInternetGatewayOutput(_SerdeShape): """Dataclass for DeleteEgressOnlyInternetGatewayOutput structure.""" @@ -3917,6 +6379,36 @@ class DeleteFleetsInput(_SerdeShape): deleted `instant` fleet with running instances is not supported. """ +class DeleteFleetsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFleetsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + fleet_ids: Required[Sequence[str]] + """ + The IDs of the EC2 Fleets. + + Constraints: In a single request, you can specify up to 25 `instant` + fleet IDs and up to 100 `maintain` or `request` fleet IDs. + """ + terminate_instances: Required[bool] + """ + Indicates whether to terminate the associated instances when the EC2 + Fleet is deleted. The default is to terminate the instances. + + To let the instances continue to run after the EC2 Fleet is deleted, + specify `no-terminate-instances`. Supported only for fleets of type + `maintain` and `request`. + + For `instant` fleets, you cannot specify `NoTerminateInstances`. A + deleted `instant` fleet with running instances is not supported. + """ + @dataclass(kw_only=True) class DeleteFleetsOutput(_SerdeShape): """Dataclass for DeleteFleetsOutput structure.""" @@ -3944,18 +6436,35 @@ class DeleteFleetSuccessItem(_SerdeShape): fleet_id: str | None = ... """The ID of the EC2 Fleet.""" -@dataclass(kw_only=True) -class DeleteFlowLogsInput(_SerdeShape): - """Dataclass for DeleteFlowLogsInput structure.""" +@dataclass(kw_only=True) +class DeleteFlowLogsInput(_SerdeShape): + """Dataclass for DeleteFlowLogsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + flow_log_ids: list[str] | None = ... + """ + One or more flow log IDs. + + Constraint: Maximum of 1000 flow log IDs. + """ - dry_run: bool | None = ... +class DeleteFlowLogsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFlowLogsInput`.""" + + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - flow_log_ids: list[str] | None = ... + flow_log_ids: Required[Sequence[str]] """ One or more flow log IDs. @@ -3990,6 +6499,19 @@ class DeleteFpgaImageInput(_SerdeShape): fpga_image_id: str | None = ... """The ID of the AFI.""" +class DeleteFpgaImageInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFpgaImageInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + fpga_image_id: Required[str] + """The ID of the AFI.""" + @dataclass(kw_only=True) class DeleteFpgaImageOutput(_SerdeShape): """Dataclass for DeleteFpgaImageOutput structure.""" @@ -4018,6 +6540,19 @@ class DeleteImageUsageReportInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteImageUsageReportInputDict(TypedDict, total=False): + """Dictionary form of `DeleteImageUsageReportInput`.""" + + report_id: Required[str] + """The ID of the report to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteImageUsageReportOutput(_SerdeShape): """Dataclass for DeleteImageUsageReportOutput structure.""" @@ -4046,6 +6581,19 @@ class DeleteInstanceConnectEndpointInput(_SerdeShape): instance_connect_endpoint_id: str | None = ... """The ID of the EC2 Instance Connect Endpoint to delete.""" +class DeleteInstanceConnectEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteInstanceConnectEndpointInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_connect_endpoint_id: Required[str] + """The ID of the EC2 Instance Connect Endpoint to delete.""" + @dataclass(kw_only=True) class DeleteInstanceConnectEndpointOutput(_SerdeShape): """Dataclass for DeleteInstanceConnectEndpointOutput structure.""" @@ -4079,6 +6627,24 @@ class DeleteInstanceEventWindowInput(_SerdeShape): instance_event_window_id: str | None = ... """The ID of the event window.""" +class DeleteInstanceEventWindowInputDict(TypedDict, total=False): + """Dictionary form of `DeleteInstanceEventWindowInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + force_delete: bool | None + """ + Specify `true` to force delete the event window. Use the force delete + parameter if the event window is currently associated with targets. + """ + instance_event_window_id: Required[str] + """The ID of the event window.""" + @dataclass(kw_only=True) class DeleteInstanceEventWindowOutput(_SerdeShape): """Dataclass for DeleteInstanceEventWindowOutput structure.""" @@ -4107,6 +6673,19 @@ class DeleteInternetGatewayInput(_SerdeShape): internet_gateway_id: str | None = ... """The ID of the internet gateway.""" +class DeleteInternetGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteInternetGatewayInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + internet_gateway_id: Required[str] + """The ID of the internet gateway.""" + @dataclass(kw_only=True) class DeleteInternetGatewayOutput(_SerdeShape): """Dataclass for DeleteInternetGatewayOutput structure.""" @@ -4136,6 +6715,19 @@ class DeleteIpamExternalResourceVerificationTokenInput(_SerdeShape): ipam_external_resource_verification_token_id: str | None = ... """The token ID.""" +class DeleteIpamExternalResourceVerificationTokenInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamExternalResourceVerificationTokenInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_external_resource_verification_token_id: Required[str] + """The token ID.""" + @dataclass(kw_only=True) class DeleteIpamExternalResourceVerificationTokenOutput(_SerdeShape): """ @@ -4193,6 +6785,43 @@ class DeleteIpamInput(_SerdeShape): - Deletes the default public and private scopes and the IPAM. """ +class DeleteIpamInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """The ID of the IPAM to delete.""" + cascade: bool | None + """ + Enables you to quickly delete an IPAM, private scopes, pools in private + scopes, and any allocations in the pools in private scopes. You cannot + delete the IPAM with this option if there is a pool in your public + scope. If you use this option, IPAM does the following: + + - Deallocates any CIDRs allocated to VPC resources (such as VPCs) in + pools in private scopes. + + Note: + No VPC resources are deleted as a result of enabling this option. The + CIDR associated with the resource will no longer be allocated from an + IPAM pool, but the CIDR itself will remain unchanged. + + - Deprovisions all IPv4 CIDRs provisioned to IPAM pools in private + scopes. + + - Deletes all IPAM pools in private scopes. + + - Deletes all non-default private scopes in the IPAM. + + - Deletes the default public and private scopes and the IPAM. + """ + @dataclass(kw_only=True) class DeleteIpamInternetRegistryAssociationInput(_SerdeShape): """Dataclass for DeleteIpamInternetRegistryAssociationInput structure.""" @@ -4207,6 +6836,19 @@ class DeleteIpamInternetRegistryAssociationInput(_SerdeShape): ipam_internet_registry_association_id: str | None = ... """The ID of the IPAM internet registry association to delete.""" +class DeleteIpamInternetRegistryAssociationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamInternetRegistryAssociationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association to delete.""" + @dataclass(kw_only=True) class DeleteIpamInternetRegistryAssociationOutput(_SerdeShape): """Dataclass for DeleteIpamInternetRegistryAssociationOutput structure.""" @@ -4249,6 +6891,19 @@ class DeleteIpamPolicyInput(_SerdeShape): ipam_policy_id: str | None = ... """The ID of the IPAM policy to delete.""" +class DeleteIpamPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamPolicyInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_policy_id: Required[str] + """The ID of the IPAM policy to delete.""" + @dataclass(kw_only=True) class DeleteIpamPolicyOutput(_SerdeShape): """Dataclass for DeleteIpamPolicyOutput structure.""" @@ -4298,6 +6953,29 @@ class DeleteIpamPoolInput(_SerdeShape): resource used to provision CIDRs to a resource planning pool. """ +class DeleteIpamPoolInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamPoolInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: Required[str] + """The ID of the pool to delete.""" + cascade: bool | None + """ + Enables you to quickly delete an IPAM pool and all resources within that + pool, including provisioned CIDRs, allocations, and other pools. + + Warning: + You can only use this option to delete pools in the private scope or + pools in the public scope with a source resource. A source resource is a + resource used to provision CIDRs to a resource planning pool. + """ + @dataclass(kw_only=True) class DeleteIpamPoolOutput(_SerdeShape): """Dataclass for DeleteIpamPoolOutput structure.""" @@ -4326,6 +7004,19 @@ class DeleteIpamPrefixListResolverInput(_SerdeShape): ipam_prefix_list_resolver_id: str | None = ... """The ID of the IPAM prefix list resolver to delete.""" +class DeleteIpamPrefixListResolverInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamPrefixListResolverInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_prefix_list_resolver_id: Required[str] + """The ID of the IPAM prefix list resolver to delete.""" + @dataclass(kw_only=True) class DeleteIpamPrefixListResolverOutput(_SerdeShape): """Dataclass for DeleteIpamPrefixListResolverOutput structure.""" @@ -4354,6 +7045,19 @@ class DeleteIpamPrefixListResolverTargetInput(_SerdeShape): ipam_prefix_list_resolver_target_id: str | None = ... """The ID of the IPAM prefix list resolver target to delete.""" +class DeleteIpamPrefixListResolverTargetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamPrefixListResolverTargetInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_prefix_list_resolver_target_id: Required[str] + """The ID of the IPAM prefix list resolver target to delete.""" + @dataclass(kw_only=True) class DeleteIpamPrefixListResolverTargetOutput(_SerdeShape): """Dataclass for DeleteIpamPrefixListResolverTargetOutput structure.""" @@ -4382,6 +7086,19 @@ class DeleteIpamResourceDiscoveryInput(_SerdeShape): ipam_resource_discovery_id: str | None = ... """The IPAM resource discovery ID.""" +class DeleteIpamResourceDiscoveryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamResourceDiscoveryInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_id: Required[str] + """The IPAM resource discovery ID.""" + @dataclass(kw_only=True) class DeleteIpamResourceDiscoveryOutput(_SerdeShape): """Dataclass for DeleteIpamResourceDiscoveryOutput structure.""" @@ -4429,6 +7146,38 @@ class DeleteIpamRoutingPolicyRegistrationInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteIpamRoutingPolicyRegistrationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamRoutingPolicyRegistrationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + cidr: Required[str] + """ + The IP address prefix in CIDR notation identifying the routing policy + registration to delete. + """ + force: bool | None + """ + Forces the deletion even if it conflicts with an announced route. + Default: `false`. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, the operation ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteIpamRoutingPolicyRegistrationOutput(_SerdeShape): """Dataclass for DeleteIpamRoutingPolicyRegistrationOutput structure.""" @@ -4462,6 +7211,19 @@ class DeleteIpamScopeInput(_SerdeShape): ipam_scope_id: str | None = ... """The ID of the scope to delete.""" +class DeleteIpamScopeInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIpamScopeInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_scope_id: Required[str] + """The ID of the scope to delete.""" + @dataclass(kw_only=True) class DeleteIpamScopeOutput(_SerdeShape): """Dataclass for DeleteIpamScopeOutput structure.""" @@ -4492,6 +7254,21 @@ class DeleteKeyPairInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteKeyPairInputDict(TypedDict, total=False): + """Dictionary form of `DeleteKeyPairInput`.""" + + key_name: str | None + """The name of the key pair.""" + key_pair_id: str | None + """The ID of the key pair.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteKeyPairOutput(_SerdeShape): """Dataclass for DeleteKeyPairOutput structure.""" @@ -4534,6 +7311,31 @@ class DeleteLaunchTemplateInput(_SerdeShape): name, but not both. """ +class DeleteLaunchTemplateInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLaunchTemplateInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + launch_template_id: str | None + """ + The ID of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + launch_template_name: str | None + """ + The name of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + @dataclass(kw_only=True) class DeleteLaunchTemplateOutput(_SerdeShape): """Dataclass for DeleteLaunchTemplateOutput structure.""" @@ -4552,28 +7354,58 @@ class DeleteLaunchTemplateOutput(_SerdeShape): class DeleteLaunchTemplateVersionsInput(_SerdeShape): """Dataclass for DeleteLaunchTemplateVersionsInput structure.""" - dry_run: bool | None = ... + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + launch_template_id: str | None = ... + """ + The ID of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + launch_template_name: str | None = ... + """ + The name of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + versions: list[str] | None = ... + """ + The version numbers of one or more launch template versions to delete. + You can specify up to 200 launch template version numbers. + """ + +class DeleteLaunchTemplateVersionsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLaunchTemplateVersionsInput`.""" + + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - launch_template_id: str | None = ... + launch_template_id: str | None """ The ID of the launch template. You must specify either the launch template ID or the launch template name, but not both. """ - launch_template_name: str | None = ... + launch_template_name: str | None """ The name of the launch template. You must specify either the launch template ID or the launch template name, but not both. """ - versions: list[str] | None = ... + versions: Required[Sequence[str]] """ The version numbers of one or more launch template versions to delete. You can specify up to 200 launch template version numbers. @@ -4654,6 +7486,30 @@ class DeleteLocalGatewayRouteInput(_SerdeShape): request. """ +class DeleteLocalGatewayRouteInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLocalGatewayRouteInput`.""" + + destination_cidr_block: str | None + """ + The CIDR range for the route. This must match the CIDR for the route + exactly. + """ + local_gateway_route_table_id: Required[str] + """The ID of the local gateway route table.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + destination_prefix_list_id: str | None + """ + Use a prefix list in place of `DestinationCidrBlock`. You cannot use + `DestinationPrefixListId` and `DestinationCidrBlock` in the same + request. + """ + @dataclass(kw_only=True) class DeleteLocalGatewayRouteOutput(_SerdeShape): """Dataclass for DeleteLocalGatewayRouteOutput structure.""" @@ -4682,6 +7538,19 @@ class DeleteLocalGatewayRouteTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteLocalGatewayRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLocalGatewayRouteTableInput`.""" + + local_gateway_route_table_id: Required[str] + """The ID of the local gateway route table.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteLocalGatewayRouteTableOutput(_SerdeShape): """Dataclass for DeleteLocalGatewayRouteTableOutput structure.""" @@ -4717,6 +7586,24 @@ class DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput(_SerdeSh Otherwise, it is `UnauthorizedOperation`. """ +class DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict( + TypedDict, total=False +): + """Dictionary form of `DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput`.""" + + local_gateway_route_table_virtual_interface_group_association_id: Required[str] + """ + The ID of the local gateway route table virtual interface group + association. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput(_SerdeShape): """ @@ -4751,6 +7638,19 @@ class DeleteLocalGatewayRouteTableVpcAssociationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteLocalGatewayRouteTableVpcAssociationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLocalGatewayRouteTableVpcAssociationInput`.""" + + local_gateway_route_table_vpc_association_id: Required[str] + """The ID of the association.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteLocalGatewayRouteTableVpcAssociationOutput(_SerdeShape): """ @@ -4784,6 +7684,19 @@ class DeleteLocalGatewayVirtualInterfaceGroupInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteLocalGatewayVirtualInterfaceGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLocalGatewayVirtualInterfaceGroupInput`.""" + + local_gateway_virtual_interface_group_id: Required[str] + """The ID of the local gateway virtual interface group to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteLocalGatewayVirtualInterfaceGroupOutput(_SerdeShape): """Dataclass for DeleteLocalGatewayVirtualInterfaceGroupOutput structure.""" @@ -4814,6 +7727,19 @@ class DeleteLocalGatewayVirtualInterfaceInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteLocalGatewayVirtualInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLocalGatewayVirtualInterfaceInput`.""" + + local_gateway_virtual_interface_id: Required[str] + """The ID of the local virtual interface to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteLocalGatewayVirtualInterfaceOutput(_SerdeShape): """Dataclass for DeleteLocalGatewayVirtualInterfaceOutput structure.""" @@ -4842,6 +7768,19 @@ class DeleteManagedPrefixListInput(_SerdeShape): prefix_list_id: str | None = ... """The ID of the prefix list.""" +class DeleteManagedPrefixListInputDict(TypedDict, total=False): + """Dictionary form of `DeleteManagedPrefixListInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + prefix_list_id: Required[str] + """The ID of the prefix list.""" + @dataclass(kw_only=True) class DeleteManagedPrefixListOutput(_SerdeShape): """Dataclass for DeleteManagedPrefixListOutput structure.""" @@ -4870,6 +7809,19 @@ class DeleteNatGatewayInput(_SerdeShape): nat_gateway_id: str | None = ... """The ID of the NAT gateway.""" +class DeleteNatGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNatGatewayInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + nat_gateway_id: Required[str] + """The ID of the NAT gateway.""" + @dataclass(kw_only=True) class DeleteNatGatewayOutput(_SerdeShape): """Dataclass for DeleteNatGatewayOutput structure.""" @@ -4902,6 +7854,23 @@ class DeleteNetworkAclEntryInput(_SerdeShape): egress: bool | None = ... """Indicates whether the rule is an egress rule.""" +class DeleteNetworkAclEntryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNetworkAclEntryInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_acl_id: Required[str] + """The ID of the network ACL.""" + rule_number: Required[int] + """The rule number of the entry to delete.""" + egress: Required[bool] + """Indicates whether the rule is an egress rule.""" + @dataclass(kw_only=True) class DeleteNetworkAclEntryOutput(_SerdeShape): """Dataclass for DeleteNetworkAclEntryOutput structure.""" @@ -4928,6 +7897,19 @@ class DeleteNetworkAclInput(_SerdeShape): network_acl_id: str | None = ... """The ID of the network ACL.""" +class DeleteNetworkAclInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNetworkAclInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_acl_id: Required[str] + """The ID of the network ACL.""" + @dataclass(kw_only=True) class DeleteNetworkAclOutput(_SerdeShape): """Dataclass for DeleteNetworkAclOutput structure.""" @@ -4954,6 +7936,19 @@ class DeleteNetworkInsightsAccessScopeAnalysisInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteNetworkInsightsAccessScopeAnalysisInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNetworkInsightsAccessScopeAnalysisInput`.""" + + network_insights_access_scope_analysis_id: Required[str] + """The ID of the Network Access Scope analysis.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteNetworkInsightsAccessScopeAnalysisOutput(_SerdeShape): """Dataclass for DeleteNetworkInsightsAccessScopeAnalysisOutput structure.""" @@ -4982,6 +7977,19 @@ class DeleteNetworkInsightsAccessScopeInput(_SerdeShape): network_insights_access_scope_id: str | None = ... """The ID of the Network Access Scope.""" +class DeleteNetworkInsightsAccessScopeInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNetworkInsightsAccessScopeInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_insights_access_scope_id: Required[str] + """The ID of the Network Access Scope.""" + @dataclass(kw_only=True) class DeleteNetworkInsightsAccessScopeOutput(_SerdeShape): """Dataclass for DeleteNetworkInsightsAccessScopeOutput structure.""" @@ -5010,6 +8018,19 @@ class DeleteNetworkInsightsAnalysisInput(_SerdeShape): network_insights_analysis_id: str | None = ... """The ID of the network insights analysis.""" +class DeleteNetworkInsightsAnalysisInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNetworkInsightsAnalysisInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_insights_analysis_id: Required[str] + """The ID of the network insights analysis.""" + @dataclass(kw_only=True) class DeleteNetworkInsightsAnalysisOutput(_SerdeShape): """Dataclass for DeleteNetworkInsightsAnalysisOutput structure.""" @@ -5038,6 +8059,19 @@ class DeleteNetworkInsightsPathInput(_SerdeShape): network_insights_path_id: str | None = ... """The ID of the path.""" +class DeleteNetworkInsightsPathInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNetworkInsightsPathInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_insights_path_id: Required[str] + """The ID of the path.""" + @dataclass(kw_only=True) class DeleteNetworkInsightsPathOutput(_SerdeShape): """Dataclass for DeleteNetworkInsightsPathOutput structure.""" @@ -5066,6 +8100,19 @@ class DeleteNetworkInterfaceInput(_SerdeShape): network_interface_id: str | None = ... """The ID of the network interface.""" +class DeleteNetworkInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNetworkInterfaceInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_id: Required[str] + """The ID of the network interface.""" + @dataclass(kw_only=True) class DeleteNetworkInterfaceOutput(_SerdeShape): """Dataclass for DeleteNetworkInterfaceOutput structure.""" @@ -5097,6 +8144,24 @@ class DeleteNetworkInterfacePermissionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteNetworkInterfacePermissionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteNetworkInterfacePermissionInput`.""" + + network_interface_permission_id: Required[str] + """The ID of the network interface permission.""" + force: bool | None + """ + Specify `true` to remove the permission even if the network interface is + attached to an instance. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteNetworkInterfacePermissionOutput(_SerdeShape): """Contains the output for DeleteNetworkInterfacePermission.""" @@ -5125,6 +8190,19 @@ class DeletePlacementGroupInput(_SerdeShape): group_name: str | None = ... """The name of the placement group.""" +class DeletePlacementGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeletePlacementGroupInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + group_name: Required[str] + """The name of the placement group.""" + @dataclass(kw_only=True) class DeletePlacementGroupOutput(_SerdeShape): """Dataclass for DeletePlacementGroupOutput structure.""" @@ -5160,6 +8238,28 @@ class DeletePublicIpv4PoolInput(_SerdeShape): in the *Amazon EC2 User Guide*. """ +class DeletePublicIpv4PoolInputDict(TypedDict, total=False): + """Dictionary form of `DeletePublicIpv4PoolInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + pool_id: Required[str] + """The ID of the public IPv4 pool you want to delete.""" + network_border_group: str | None + """ + The Availability Zone (AZ) or Local Zone (LZ) network border group that + the resource that the IP address is assigned to is in. Defaults to an AZ + network border group. For more information on available Local Zones, see + [Local Zone + availability](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) + in the *Amazon EC2 User Guide*. + """ + @dataclass(kw_only=True) class DeletePublicIpv4PoolOutput(_SerdeShape): """Dataclass for DeletePublicIpv4PoolOutput structure.""" @@ -5205,6 +8305,19 @@ class DeleteQueuedReservedInstancesInput(_SerdeShape): reserved_instances_ids: list[str] | None = ... """The IDs of the Reserved Instances.""" +class DeleteQueuedReservedInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DeleteQueuedReservedInstancesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + reserved_instances_ids: Required[Sequence[str]] + """The IDs of the Reserved Instances.""" + @dataclass(kw_only=True) class DeleteQueuedReservedInstancesOutput(_SerdeShape): """Dataclass for DeleteQueuedReservedInstancesOutput structure.""" @@ -5249,6 +8362,31 @@ class DeleteRouteInput(_SerdeShape): CIDR for the route exactly. """ +class DeleteRouteInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRouteInput`.""" + + destination_prefix_list_id: str | None + """The ID of the prefix list for the route.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + route_table_id: Required[str] + """The ID of the route table.""" + destination_cidr_block: str | None + """ + The IPv4 CIDR range for the route. The value you specify must match the + CIDR for the route exactly. + """ + destination_ipv6_cidr_block: str | None + """ + The IPv6 CIDR range for the route. The value you specify must match the + CIDR for the route exactly. + """ + @dataclass(kw_only=True) class DeleteRouteOutput(_SerdeShape): """Dataclass for DeleteRouteOutput structure.""" @@ -5275,6 +8413,19 @@ class DeleteRouteServerEndpointInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DeleteRouteServerEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRouteServerEndpointInput`.""" + + route_server_endpoint_id: Required[str] + """The ID of the route server endpoint to delete.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteRouteServerEndpointOutput(_SerdeShape): """Dataclass for DeleteRouteServerEndpointOutput structure.""" @@ -5303,6 +8454,19 @@ class DeleteRouteServerInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DeleteRouteServerInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRouteServerInput`.""" + + route_server_id: Required[str] + """The ID of the route server to delete.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteRouteServerOutput(_SerdeShape): """Dataclass for DeleteRouteServerOutput structure.""" @@ -5331,6 +8495,19 @@ class DeleteRouteServerPeerInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DeleteRouteServerPeerInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRouteServerPeerInput`.""" + + route_server_peer_id: Required[str] + """The ID of the route server peer to delete.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteRouteServerPeerOutput(_SerdeShape): """Dataclass for DeleteRouteServerPeerOutput structure.""" @@ -5358,3 +8535,16 @@ class DeleteRouteTableInput(_SerdeShape): """ route_table_id: str | None = ... """The ID of the route table.""" + +class DeleteRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRouteTableInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + route_table_id: Required[str] + """The ID of the route table.""" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_3.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_03.pyi similarity index 61% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_3.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_03.pyi index f213d4363..2046e0e53 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_3.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_03.pyi @@ -1,7 +1,9 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata @@ -54,6 +56,7 @@ from ..models import ( FastLaunchLaunchTemplateSpecificationResponse, FastLaunchSnapshotConfigurationResponse, Filter, + FilterDict, FleetData, FlowLog, FpgaImage, @@ -82,11 +85,13 @@ from ..models import ( ProductCode, Reservation, ResourceTypeRequest, + ResourceTypeRequestDict, SecondaryNetwork, SecondarySubnet, SubnetCidrReservation, Subscription, Tag, + TagDict, TargetNetwork, TransitGateway, TransitGatewayClientVpnAttachment, @@ -149,6 +154,27 @@ class DeleteSecondaryNetworkInput(_SerdeShape): secondary_network_id: str | None = ... """The ID of the secondary network.""" +class DeleteSecondaryNetworkInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSecondaryNetworkInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + secondary_network_id: Required[str] + """The ID of the secondary network.""" + @dataclass(kw_only=True) class DeleteSecondaryNetworkOutput(_SerdeShape): """Dataclass for DeleteSecondaryNetworkOutput structure.""" @@ -190,6 +216,27 @@ class DeleteSecondarySubnetInput(_SerdeShape): secondary_subnet_id: str | None = ... """The ID of the secondary subnet to delete.""" +class DeleteSecondarySubnetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSecondarySubnetInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + secondary_subnet_id: Required[str] + """The ID of the secondary subnet to delete.""" + @dataclass(kw_only=True) class DeleteSecondarySubnetOutput(_SerdeShape): """Dataclass for DeleteSecondarySubnetOutput structure.""" @@ -229,6 +276,25 @@ class DeleteSecurityGroupInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteSecurityGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSecurityGroupInput`.""" + + group_id: str | None + """The ID of the security group.""" + group_name: str | None + """ + [Default VPC] The name of the security group. You can specify either + the security group name or the security group ID. For security groups in + a nondefault VPC, you must specify the security group ID. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteSecurityGroupOutput(_SerdeShape): """Dataclass for DeleteSecurityGroupOutput structure.""" @@ -259,6 +325,19 @@ class DeleteSnapshotInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSnapshotInput`.""" + + snapshot_id: Required[str] + """The ID of the EBS snapshot.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteSnapshotOutput(_SerdeShape): """Dataclass for DeleteSnapshotOutput structure.""" @@ -314,6 +393,17 @@ class DeleteSpotDatafeedSubscriptionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteSpotDatafeedSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSpotDatafeedSubscriptionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteSpotDatafeedSubscriptionOutput(_SerdeShape): """Dataclass for DeleteSpotDatafeedSubscriptionOutput structure.""" @@ -340,6 +430,19 @@ class DeleteSubnetCidrReservationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteSubnetCidrReservationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSubnetCidrReservationInput`.""" + + subnet_cidr_reservation_id: Required[str] + """The ID of the subnet CIDR reservation.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteSubnetCidrReservationOutput(_SerdeShape): """Dataclass for DeleteSubnetCidrReservationOutput structure.""" @@ -368,6 +471,19 @@ class DeleteSubnetInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteSubnetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSubnetInput`.""" + + subnet_id: Required[str] + """The ID of the subnet.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteSubnetOutput(_SerdeShape): """Dataclass for DeleteSubnetOutput structure.""" @@ -413,6 +529,38 @@ class DeleteTagsInput(_SerdeShape): Constraints: Up to 1000 tags. """ +class DeleteTagsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTagsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + resources: Required[Sequence[str]] + """ + The IDs of the resources, separated by spaces. + + Constraints: Up to 1000 resource IDs. We recommend breaking up this + request into smaller batches. + """ + tags: Sequence[Tag | TagDict] | None + """ + The tags to delete. Specify a tag key and an optional tag value to + delete specific tags. If you specify a tag key without a tag value, we + delete any tag with this key regardless of its value. If you specify a + tag key with an empty string as the tag value, we delete the tag only if + its value is an empty string. + + If you omit this parameter, we delete all user-defined tags for the + specified resources. We do not delete Amazon Web Services-generated tags + (tags that have the `aws:` prefix). + + Constraints: Up to 1000 tags. + """ + @dataclass(kw_only=True) class DeleteTagsOutput(_SerdeShape): """Dataclass for DeleteTagsOutput structure.""" @@ -439,6 +587,19 @@ class DeleteTrafficMirrorFilterInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTrafficMirrorFilterInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTrafficMirrorFilterInput`.""" + + traffic_mirror_filter_id: Required[str] + """The ID of the Traffic Mirror filter.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTrafficMirrorFilterOutput(_SerdeShape): """Dataclass for DeleteTrafficMirrorFilterOutput structure.""" @@ -467,6 +628,19 @@ class DeleteTrafficMirrorFilterRuleInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTrafficMirrorFilterRuleInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTrafficMirrorFilterRuleInput`.""" + + traffic_mirror_filter_rule_id: Required[str] + """The ID of the Traffic Mirror rule.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTrafficMirrorFilterRuleOutput(_SerdeShape): """Dataclass for DeleteTrafficMirrorFilterRuleOutput structure.""" @@ -495,6 +669,19 @@ class DeleteTrafficMirrorSessionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTrafficMirrorSessionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTrafficMirrorSessionInput`.""" + + traffic_mirror_session_id: Required[str] + """The ID of the Traffic Mirror session.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTrafficMirrorSessionOutput(_SerdeShape): """Dataclass for DeleteTrafficMirrorSessionOutput structure.""" @@ -523,6 +710,19 @@ class DeleteTrafficMirrorTargetInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTrafficMirrorTargetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTrafficMirrorTargetInput`.""" + + traffic_mirror_target_id: Required[str] + """The ID of the Traffic Mirror target.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTrafficMirrorTargetOutput(_SerdeShape): """Dataclass for DeleteTrafficMirrorTargetOutput structure.""" @@ -551,6 +751,19 @@ class DeleteTransitGatewayClientVpnAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayClientVpnAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayClientVpnAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the Transit Gateway attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayClientVpnAttachmentOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayClientVpnAttachmentOutput structure.""" @@ -581,6 +794,19 @@ class DeleteTransitGatewayConnectInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayConnectInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayConnectInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the Connect attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayConnectOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayConnectOutput structure.""" @@ -609,6 +835,19 @@ class DeleteTransitGatewayConnectPeerInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayConnectPeerInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayConnectPeerInput`.""" + + transit_gateway_connect_peer_id: Required[str] + """The ID of the Connect peer.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayConnectPeerOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayConnectPeerOutput structure.""" @@ -637,6 +876,19 @@ class DeleteTransitGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayInput`.""" + + transit_gateway_id: Required[str] + """The ID of the transit gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayMeteringPolicyEntryInput(_SerdeShape): """Dataclass for DeleteTransitGatewayMeteringPolicyEntryInput structure.""" @@ -656,6 +908,24 @@ class DeleteTransitGatewayMeteringPolicyEntryInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayMeteringPolicyEntryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayMeteringPolicyEntryInput`.""" + + transit_gateway_metering_policy_id: Required[str] + """ + The ID of the transit gateway metering policy containing the entry to + delete. + """ + policy_rule_number: Required[int] + """The rule number of the metering policy entry to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayMeteringPolicyEntryOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayMeteringPolicyEntryOutput structure.""" @@ -686,6 +956,19 @@ class DeleteTransitGatewayMeteringPolicyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayMeteringPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayMeteringPolicyInput`.""" + + transit_gateway_metering_policy_id: Required[str] + """The ID of the transit gateway metering policy to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayMeteringPolicyOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayMeteringPolicyOutput structure.""" @@ -714,6 +997,19 @@ class DeleteTransitGatewayMulticastDomainInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayMulticastDomainInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayMulticastDomainInput`.""" + + transit_gateway_multicast_domain_id: Required[str] + """The ID of the transit gateway multicast domain.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayMulticastDomainOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayMulticastDomainOutput structure.""" @@ -756,6 +1052,19 @@ class DeleteTransitGatewayPeeringAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayPeeringAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayPeeringAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the transit gateway peering attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayPeeringAttachmentOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayPeeringAttachmentOutput structure.""" @@ -786,6 +1095,21 @@ class DeleteTransitGatewayPolicyTableEntryInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayPolicyTableEntryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayPolicyTableEntryInput`.""" + + transit_gateway_policy_table_id: Required[str] + """The ID of the transit gateway policy table.""" + policy_rule_number: Required[str] + """The rule number of the policy table entry to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayPolicyTableEntryOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayPolicyTableEntryOutput structure.""" @@ -814,6 +1138,19 @@ class DeleteTransitGatewayPolicyTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayPolicyTableInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayPolicyTableInput`.""" + + transit_gateway_policy_table_id: Required[str] + """The transit gateway policy table to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayPolicyTableOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayPolicyTableOutput structure.""" @@ -844,6 +1181,21 @@ class DeleteTransitGatewayPrefixListReferenceInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayPrefixListReferenceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayPrefixListReferenceInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the route table.""" + prefix_list_id: Required[str] + """The ID of the prefix list.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayPrefixListReferenceOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayPrefixListReferenceOutput structure.""" @@ -879,13 +1231,31 @@ class DeleteTransitGatewayRouteInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DeleteTransitGatewayRouteOutput(_SerdeShape): - """Dataclass for DeleteTransitGatewayRouteOutput structure.""" +class DeleteTransitGatewayRouteInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayRouteInput`.""" - route: TransitGatewayRoute | None = ... - """Information about the route.""" - response_metadata: ResponseMetadata = ... + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + destination_cidr_block: Required[str] + """ + The CIDR range for the route. This must match the CIDR for the route + exactly. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DeleteTransitGatewayRouteOutput(_SerdeShape): + """Dataclass for DeleteTransitGatewayRouteOutput structure.""" + + route: TransitGatewayRoute | None = ... + """Information about the route.""" + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order @@ -907,6 +1277,19 @@ class DeleteTransitGatewayRouteTableAnnouncementInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayRouteTableAnnouncementInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayRouteTableAnnouncementInput`.""" + + transit_gateway_route_table_announcement_id: Required[str] + """The transit gateway route table ID that's being deleted.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayRouteTableAnnouncementOutput(_SerdeShape): """ @@ -940,6 +1323,19 @@ class DeleteTransitGatewayRouteTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayRouteTableInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayRouteTableOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayRouteTableOutput structure.""" @@ -968,6 +1364,19 @@ class DeleteTransitGatewayVpcAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteTransitGatewayVpcAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTransitGatewayVpcAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteTransitGatewayVpcAttachmentOutput(_SerdeShape): """Dataclass for DeleteTransitGatewayVpcAttachmentOutput structure.""" @@ -1004,6 +1413,27 @@ class DeleteVerifiedAccessEndpointInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteVerifiedAccessEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVerifiedAccessEndpointInput`.""" + + verified_access_endpoint_id: Required[str] + """The ID of the Verified Access endpoint.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteVerifiedAccessEndpointOutput(_SerdeShape): """Dataclass for DeleteVerifiedAccessEndpointOutput structure.""" @@ -1040,6 +1470,27 @@ class DeleteVerifiedAccessGroupInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteVerifiedAccessGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVerifiedAccessGroupInput`.""" + + verified_access_group_id: Required[str] + """The ID of the Verified Access group.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteVerifiedAccessGroupOutput(_SerdeShape): """Dataclass for DeleteVerifiedAccessGroupOutput structure.""" @@ -1076,6 +1527,27 @@ class DeleteVerifiedAccessInstanceInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteVerifiedAccessInstanceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVerifiedAccessInstanceInput`.""" + + verified_access_instance_id: Required[str] + """The ID of the Verified Access instance.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteVerifiedAccessInstanceOutput(_SerdeShape): """Dataclass for DeleteVerifiedAccessInstanceOutput structure.""" @@ -1112,6 +1584,27 @@ class DeleteVerifiedAccessTrustProviderInput(_SerdeShape): This field is autopopulated if not provided. """ +class DeleteVerifiedAccessTrustProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVerifiedAccessTrustProviderInput`.""" + + verified_access_trust_provider_id: Required[str] + """The ID of the Verified Access trust provider.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DeleteVerifiedAccessTrustProviderOutput(_SerdeShape): """Dataclass for DeleteVerifiedAccessTrustProviderOutput structure.""" @@ -1140,6 +1633,19 @@ class DeleteVolumeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteVolumeInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVolumeInput`.""" + + volume_id: Required[str] + """The ID of the volume.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteVolumeOutput(_SerdeShape): """Dataclass for DeleteVolumeOutput structure.""" @@ -1166,6 +1672,19 @@ class DeleteVpcBlockPublicAccessExclusionInput(_SerdeShape): exclusion_id: str | None = ... """The ID of the exclusion.""" +class DeleteVpcBlockPublicAccessExclusionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcBlockPublicAccessExclusionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + exclusion_id: Required[str] + """The ID of the exclusion.""" + @dataclass(kw_only=True) class DeleteVpcBlockPublicAccessExclusionOutput(_SerdeShape): """Dataclass for DeleteVpcBlockPublicAccessExclusionOutput structure.""" @@ -1194,6 +1713,19 @@ class DeleteVpcEncryptionControlInput(_SerdeShape): vpc_encryption_control_id: str | None = ... """The ID of the VPC Encryption Control resource to delete.""" +class DeleteVpcEncryptionControlInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcEncryptionControlInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_encryption_control_id: Required[str] + """The ID of the VPC Encryption Control resource to delete.""" + @dataclass(kw_only=True) class DeleteVpcEncryptionControlOutput(_SerdeShape): """Dataclass for DeleteVpcEncryptionControlOutput structure.""" @@ -1222,6 +1754,19 @@ class DeleteVpcEndpointConnectionNotificationsInput(_SerdeShape): connection_notification_ids: list[str] | None = ... """The IDs of the notifications.""" +class DeleteVpcEndpointConnectionNotificationsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcEndpointConnectionNotificationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + connection_notification_ids: Required[Sequence[str]] + """The IDs of the notifications.""" + @dataclass(kw_only=True) class DeleteVpcEndpointConnectionNotificationsOutput(_SerdeShape): """Dataclass for DeleteVpcEndpointConnectionNotificationsOutput structure.""" @@ -1253,6 +1798,19 @@ class DeleteVpcEndpointServiceConfigurationsInput(_SerdeShape): service_ids: list[str] | None = ... """The IDs of the services.""" +class DeleteVpcEndpointServiceConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcEndpointServiceConfigurationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_ids: Required[Sequence[str]] + """The IDs of the services.""" + @dataclass(kw_only=True) class DeleteVpcEndpointServiceConfigurationsOutput(_SerdeShape): """Dataclass for DeleteVpcEndpointServiceConfigurationsOutput structure.""" @@ -1284,6 +1842,19 @@ class DeleteVpcEndpointsInput(_SerdeShape): vpc_endpoint_ids: list[str] | None = ... """The IDs of the VPC endpoints.""" +class DeleteVpcEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcEndpointsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_endpoint_ids: Required[Sequence[str]] + """The IDs of the VPC endpoints.""" + @dataclass(kw_only=True) class DeleteVpcEndpointsOutput(_SerdeShape): """Dataclass for DeleteVpcEndpointsOutput structure.""" @@ -1312,6 +1883,19 @@ class DeleteVpcInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteVpcInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcInput`.""" + + vpc_id: Required[str] + """The ID of the VPC.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteVpcOutput(_SerdeShape): """Dataclass for DeleteVpcOutput structure.""" @@ -1338,6 +1922,19 @@ class DeleteVpcPeeringConnectionInput(_SerdeShape): vpc_peering_connection_id: str | None = ... """The ID of the VPC peering connection.""" +class DeleteVpcPeeringConnectionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpcPeeringConnectionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_peering_connection_id: Required[str] + """The ID of the VPC peering connection.""" + @dataclass(kw_only=True) class DeleteVpcPeeringConnectionOutput(_SerdeShape): """Dataclass for DeleteVpcPeeringConnectionOutput structure.""" @@ -1366,6 +1963,19 @@ class DeleteVpnConcentratorInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteVpnConcentratorInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpnConcentratorInput`.""" + + vpn_concentrator_id: Required[str] + """The ID of the VPN concentrator to delete.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteVpnConcentratorOutput(_SerdeShape): """Dataclass for DeleteVpnConcentratorOutput structure.""" @@ -1394,6 +2004,19 @@ class DeleteVpnConnectionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteVpnConnectionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpnConnectionInput`.""" + + vpn_connection_id: Required[str] + """The ID of the VPN connection.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteVpnConnectionOutput(_SerdeShape): """Dataclass for DeleteVpnConnectionOutput structure.""" @@ -1415,6 +2038,14 @@ class DeleteVpnConnectionRouteInput(_SerdeShape): vpn_connection_id: str | None = ... """The ID of the VPN connection.""" +class DeleteVpnConnectionRouteInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpnConnectionRouteInput`.""" + + destination_cidr_block: Required[str] + """The CIDR block associated with the local subnet of the customer network.""" + vpn_connection_id: Required[str] + """The ID of the VPN connection.""" + @dataclass(kw_only=True) class DeleteVpnConnectionRouteOutput(_SerdeShape): """Dataclass for DeleteVpnConnectionRouteOutput structure.""" @@ -1441,6 +2072,19 @@ class DeleteVpnGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeleteVpnGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVpnGatewayInput`.""" + + vpn_gateway_id: Required[str] + """The ID of the virtual private gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeleteVpnGatewayOutput(_SerdeShape): """Dataclass for DeleteVpnGatewayOutput structure.""" @@ -1473,6 +2117,15 @@ class DeprecationTimeConditionRequest(_SerdeShape): deprecated. Set to `0` to exclude all deprecated images. """ +class DeprecationTimeConditionRequestDict(TypedDict, total=False): + """Dictionary form of `DeprecationTimeConditionRequest`.""" + + maximum_days_since_deprecated: int | None + """ + The maximum number of days that have elapsed since the image was + deprecated. Set to `0` to exclude all deprecated images. + """ + @dataclass(kw_only=True) class DeprovisionByoipCidrInput(_SerdeShape): """Dataclass for DeprovisionByoipCidrInput structure.""" @@ -1490,6 +2143,22 @@ class DeprovisionByoipCidrInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeprovisionByoipCidrInputDict(TypedDict, total=False): + """Dictionary form of `DeprovisionByoipCidrInput`.""" + + cidr: Required[str] + """ + The address range, in CIDR notation. The prefix must be the same prefix + that you specified when you provisioned the address range. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeprovisionByoipCidrOutput(_SerdeShape): """Dataclass for DeprovisionByoipCidrOutput structure.""" @@ -1520,6 +2189,21 @@ class DeprovisionIpamByoasnInput(_SerdeShape): asn: str | None = ... """An ASN.""" +class DeprovisionIpamByoasnInputDict(TypedDict, total=False): + """Dictionary form of `DeprovisionIpamByoasnInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """The IPAM ID.""" + asn: Required[str] + """An ASN.""" + @dataclass(kw_only=True) class DeprovisionIpamByoasnOutput(_SerdeShape): """Dataclass for DeprovisionIpamByoasnOutput structure.""" @@ -1550,6 +2234,21 @@ class DeprovisionIpamPoolCidrInput(_SerdeShape): cidr: str | None = ... """The CIDR which you want to deprovision from the pool.""" +class DeprovisionIpamPoolCidrInputDict(TypedDict, total=False): + """Dictionary form of `DeprovisionIpamPoolCidrInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: Required[str] + """The ID of the pool that has the CIDR you want to deprovision.""" + cidr: str | None + """The CIDR which you want to deprovision from the pool.""" + @dataclass(kw_only=True) class DeprovisionIpamPoolCidrOutput(_SerdeShape): """Dataclass for DeprovisionIpamPoolCidrOutput structure.""" @@ -1580,13 +2279,28 @@ class DeprovisionPublicIpv4PoolCidrInput(_SerdeShape): cidr: str | None = ... """The CIDR you want to deprovision from the pool.""" -@dataclass(kw_only=True) -class DeprovisionPublicIpv4PoolCidrOutput(_SerdeShape): - """Dataclass for DeprovisionPublicIpv4PoolCidrOutput structure.""" +class DeprovisionPublicIpv4PoolCidrInputDict(TypedDict, total=False): + """Dictionary form of `DeprovisionPublicIpv4PoolCidrInput`.""" - pool_id: str | None = ... - """The ID of the pool that you deprovisioned the CIDR from.""" - deprovisioned_addresses: list[str] | None = ... + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + pool_id: Required[str] + """The ID of the pool that you want to deprovision the CIDR from.""" + cidr: Required[str] + """The CIDR you want to deprovision from the pool.""" + +@dataclass(kw_only=True) +class DeprovisionPublicIpv4PoolCidrOutput(_SerdeShape): + """Dataclass for DeprovisionPublicIpv4PoolCidrOutput structure.""" + + pool_id: str | None = ... + """The ID of the pool that you deprovisioned the CIDR from.""" + deprovisioned_addresses: list[str] | None = ... """The deprovisioned CIDRs.""" response_metadata: ResponseMetadata = ... """ @@ -1621,6 +2335,30 @@ class DeregisterImageInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeregisterImageInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterImageInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + delete_associated_snapshots: bool | None + """ + Specifies whether to delete the snapshots associated with the AMI during + deregistration. + + Note: + If a snapshot is associated with multiple AMIs, it is not deleted, + regardless of this setting. + + Default: The snapshots are not deleted. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeregisterImageOutput(_SerdeShape): """Dataclass for DeregisterImageOutput structure.""" @@ -1657,6 +2395,22 @@ class DeregisterInstanceEventNotificationAttributesInput(_SerdeShape): instance_tag_attribute: DeregisterInstanceTagAttributeRequest | None = ... """Information about the tag keys to deregister.""" +class DeregisterInstanceEventNotificationAttributesInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterInstanceEventNotificationAttributesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_tag_attribute: Required[ + DeregisterInstanceTagAttributeRequest + | DeregisterInstanceTagAttributeRequestDict + ] + """Information about the tag keys to deregister.""" + @dataclass(kw_only=True) class DeregisterInstanceEventNotificationAttributesOutput(_SerdeShape): """ @@ -1691,6 +2445,17 @@ class DeregisterInstanceTagAttributeRequest(_SerdeShape): instance_tag_keys: list[str] | None = ... """Information about the tag keys to deregister.""" +class DeregisterInstanceTagAttributeRequestDict(TypedDict, total=False): + """Dictionary form of `DeregisterInstanceTagAttributeRequest`.""" + + include_all_tags_of_instance: bool | None + """ + Indicates whether to deregister all tag keys in the current Region. + Specify `false` to deregister all tag keys. + """ + instance_tag_keys: Sequence[str] | None + """Information about the tag keys to deregister.""" + @dataclass(kw_only=True) class DeregisterTransitGatewayMulticastGroupMembersInput(_SerdeShape): """ @@ -1712,6 +2477,23 @@ class DeregisterTransitGatewayMulticastGroupMembersInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeregisterTransitGatewayMulticastGroupMembersInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterTransitGatewayMulticastGroupMembersInput`.""" + + transit_gateway_multicast_domain_id: str | None + """The ID of the transit gateway multicast domain.""" + group_ip_address: str | None + """The IP address assigned to the transit gateway multicast group.""" + network_interface_ids: Sequence[str] | None + """The IDs of the group members' network interfaces.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeregisterTransitGatewayMulticastGroupMembersOutput(_SerdeShape): """ @@ -1752,6 +2534,23 @@ class DeregisterTransitGatewayMulticastGroupSourcesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DeregisterTransitGatewayMulticastGroupSourcesInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterTransitGatewayMulticastGroupSourcesInput`.""" + + transit_gateway_multicast_domain_id: str | None + """The ID of the transit gateway multicast domain.""" + group_ip_address: str | None + """The IP address assigned to the transit gateway multicast group.""" + network_interface_ids: Sequence[str] | None + """The IDs of the group sources' network interfaces.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DeregisterTransitGatewayMulticastGroupSourcesOutput(_SerdeShape): """ @@ -1785,6 +2584,19 @@ class DescribeAccountAttributesInput(_SerdeShape): attribute_names: list[str] | None = ... """The account attribute names.""" +class DescribeAccountAttributesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAccountAttributesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + attribute_names: Sequence[str] | None + """The account attribute names.""" + @dataclass(kw_only=True) class DescribeAccountAttributesOutput(_SerdeShape): """Dataclass for DescribeAccountAttributesOutput structure.""" @@ -1811,6 +2623,17 @@ class DescribeAccountVpcEncryptionControlInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeAccountVpcEncryptionControlInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAccountVpcEncryptionControlInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeAccountVpcEncryptionControlOutput(_SerdeShape): """Dataclass for DescribeAccountVpcEncryptionControlOutput structure.""" @@ -1852,6 +2675,29 @@ class DescribeAddressesAttributeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeAddressesAttributeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAddressesAttributeInput`.""" + + allocation_ids: Sequence[str] | None + """[EC2-VPC] The allocation IDs.""" + attribute: str | None + """The attribute of the IP address.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeAddressesAttributeOutput(_SerdeShape): """Dataclass for DescribeAddressesAttributeOutput structure.""" @@ -1927,6 +2773,61 @@ class DescribeAddressesInput(_SerdeShape): allocation_ids: list[str] | None = ... """Information about the allocation IDs.""" +class DescribeAddressesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAddressesInput`.""" + + public_ips: Sequence[str] | None + """ + One or more Elastic IP addresses. + + Default: Describes all your Elastic IP addresses. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. Filter names and values are case-sensitive. + + - `allocation-id` - The allocation ID for the address. + + - `association-id` - The association ID for the address. + + - `instance-id` - The ID of the instance the address is associated with, + if any. + + - `network-border-group` - A unique set of Availability Zones, Local + Zones, or Wavelength Zones from where Amazon Web Services advertises + IP addresses. + + - `network-interface-id` - The ID of the network interface that the + address is associated with, if any. + + - `network-interface-owner-id` - The Amazon Web Services account ID of + the owner. + + - `private-ip-address` - The private IP address associated with the + Elastic IP address. + + - `public-ip` - The Elastic IP address, or the carrier IP address. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + allocation_ids: Sequence[str] | None + """Information about the allocation IDs.""" + @dataclass(kw_only=True) class DescribeAddressesOutput(_SerdeShape): """Dataclass for DescribeAddressesOutput structure.""" @@ -1965,6 +2866,29 @@ class DescribeAddressTransfersInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeAddressTransfersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAddressTransfersInput`.""" + + allocation_ids: Sequence[str] | None + """The allocation IDs of Elastic IP addresses.""" + next_token: str | None + """ + Specify the pagination token from a previous request to retrieve the + next page of results. + """ + max_results: int | None + """ + The maximum number of address transfers to return in one page of + results. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeAddressTransfersOutput(_SerdeShape): """Dataclass for DescribeAddressTransfersOutput structure.""" @@ -1996,6 +2920,17 @@ class DescribeAggregateIdFormatInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeAggregateIdFormatInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAggregateIdFormatInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeAggregateIdFormatOutput(_SerdeShape): """Dataclass for DescribeAggregateIdFormatOutput structure.""" @@ -2052,6 +2987,41 @@ class DescribeApplicationStatusCheckAssociationsInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DescribeApplicationStatusCheckAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeApplicationStatusCheckAssociationsInput`.""" + + application_status_check_ids: Sequence[str] | None + """ + The IDs of the application status checks for which to describe + associations. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters to use to limit the results. + + - `association-type` -- The type of association. Valid values: `tag` and + `instance-id`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeApplicationStatusCheckAssociationsOutput(_SerdeShape): """ @@ -2116,6 +3086,45 @@ class DescribeApplicationStatusChecksInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DescribeApplicationStatusChecksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeApplicationStatusChecksInput`.""" + + application_status_check_ids: Sequence[str] | None + """The IDs of the application status checks to describe.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `aggregation` -- The aggregation setting. Valid values: `included` and + `excluded`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + include_all: bool | None + """ + Specifies whether to include recently deleted application status checks + that remain available during the deletion grace period. If you omit this + parameter or set it to `false`, the response includes only active + checks. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeApplicationStatusChecksOutput(_SerdeShape): """Dataclass for DescribeApplicationStatusChecksOutput structure.""" @@ -2170,20 +3179,54 @@ class DescribeApplicationStatusInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DescribeApplicationStatusOutput(_SerdeShape): - """Dataclass for DescribeApplicationStatusOutput structure.""" +class DescribeApplicationStatusInputDict(TypedDict, total=False): + """Dictionary form of `DescribeApplicationStatusInput`.""" - application_statuses: ApplicationStatusesResponseType | None = ... - """The application statuses for the specified instances.""" - next_token: str | None = ... + instance_ids: Sequence[str] | None + """The IDs of the instances for which to describe application status.""" + filters: Sequence[Filter | FilterDict] | None """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. + The filters. + + - `availability-zone-id` -- The ID of the Availability Zone. + + - `status` -- The instance-level application status. For valid values + and their meanings, see `ApplicationStatus`. """ - response_metadata: ResponseMetadata = ... + max_results: int | None """ - Metadata about the response that produced this output. Use this to + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeApplicationStatusOutput(_SerdeShape): + """Dataclass for DescribeApplicationStatusOutput structure.""" + + application_statuses: ApplicationStatusesResponseType | None = ... + """The application statuses for the specified instances.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. @@ -2256,6 +3299,72 @@ class DescribeAvailabilityZonesInput(_SerdeShape): `wavelength-zone`). """ +class DescribeAvailabilityZonesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAvailabilityZonesInput`.""" + + zone_names: Sequence[str] | None + """The names of the Availability Zones, Local Zones, and Wavelength Zones.""" + zone_ids: Sequence[str] | None + """The IDs of the Availability Zones, Local Zones, and Wavelength Zones.""" + all_availability_zones: bool | None + """ + Include all Availability Zones, Local Zones, and Wavelength Zones + regardless of your opt-in status. + + If you do not use this parameter, the results include only the zones for + the Regions where you have chosen the option to opt in. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `group-long-name` - The long name of the zone group for the + Availability Zone (for example, `US West (Oregon) 1`), the Local Zone + (for example, for Zone group `us-west-2-lax-1`, it is + `US West (Los Angeles)`, or the Wavelength Zone (for example, for Zone + group `us-east-1-wl1`, it is `US East (Verizon)`. + + - `group-name` - The name of the zone group for the Availability Zone + (for example, `us-east-1-zg-1`), the Local Zone (for example, + `us-west-2-lax-1`), or the Wavelength Zone (for example, + `us-east-1-wl1`). + + - `message` - The Zone message. + + - `opt-in-status` - The opt-in status (`opted-in` | `not-opted-in` | + `opt-in-not-required`). + + - `parent-zone-id` - The ID of the zone that handles some of the Local + Zone and Wavelength Zone control plane operations, such as API calls. + + - `parent-zone-name` - The ID of the zone that handles some of the Local + Zone and Wavelength Zone control plane operations, such as API calls. + + - `region-name` - The name of the Region for the Zone (for example, + `us-east-1`). + + - `state` - The state of the Availability Zone, the Local Zone, or the + Wavelength Zone (`available` | `unavailable` | `constrained`). + + - `zone-id` - The ID of the Availability Zone (for example, `use1-az1`), + the Local Zone (for example, `usw2-lax1-az1`), or the Wavelength Zone + (for example, `us-east-1-wl1-bos-wlz-1`). + + - `zone-name` - The name of the Availability Zone (for example, + `us-east-1a`), the Local Zone (for example, `us-west-2-lax-1a`), or + the Wavelength Zone (for example, `us-east-1-wl1-bos-wlz-1`). + + - `zone-type` - The type of zone (`availability-zone` | `local-zone` | + `wavelength-zone`). + """ + @dataclass(kw_only=True) class DescribeAvailabilityZonesOutput(_SerdeShape): """Dataclass for DescribeAvailabilityZonesOutput structure.""" @@ -2298,6 +3407,27 @@ class DescribeAwsNetworkPerformanceMetricSubscriptionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAwsNetworkPerformanceMetricSubscriptionsInput`.""" + + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeAwsNetworkPerformanceMetricSubscriptionsOutput(_SerdeShape): """ @@ -2365,6 +3495,50 @@ class DescribeBundleTasksInput(_SerdeShape): - `update-time` - The time of the most recent update for the task. """ +class DescribeBundleTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeBundleTasksInput`.""" + + bundle_ids: Sequence[str] | None + """ + The bundle task IDs. + + Default: Describes all your bundle tasks. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `bundle-id` - The ID of the bundle task. + + - `error-code` - If the task failed, the error code returned. + + - `error-message` - If the task failed, the error message returned. + + - `instance-id` - The ID of the instance. + + - `progress` - The level of task completion, as a percentage (for + example, 20%). + + - `s3-bucket` - The Amazon S3 bucket to store the AMI. + + - `s3-prefix` - The beginning of the AMI name. + + - `start-time` - The time the task started (for example, + 2013-09-15T17:15:20.000Z). + + - `state` - The state of the task (`pending` | `waiting-for-shutdown` + | `bundling` | `storing` | `cancelling` | `complete` | `failed`). + + - `update-time` - The time of the most recent update for the task. + """ + @dataclass(kw_only=True) class DescribeBundleTasksOutput(_SerdeShape): """Dataclass for DescribeBundleTasksOutput structure.""" @@ -2399,6 +3573,25 @@ class DescribeByoipCidrsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeByoipCidrsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeByoipCidrsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: Required[int] + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeByoipCidrsOutput(_SerdeShape): """Dataclass for DescribeByoipCidrsOutput structure.""" @@ -2462,6 +3655,49 @@ class DescribeCapacityBlockExtensionHistoryInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeCapacityBlockExtensionHistoryInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityBlockExtensionHistoryInput`.""" + + capacity_reservation_ids: Sequence[str] | None + """ + The IDs of Capacity Block reservations that you want to display the + history for. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters + + - `availability-zone` - The Availability Zone of the extension. + + - `availability-zone-id` - The Availability Zone ID of the extension. + + - `capacity-block-extension-offering-id` - The ID of the extension + offering. + + - `capacity-block-extension-status` - The status of the extension + (`payment-pending` | `payment-failed` | `payment-succeeded`). + + - `capacity-reservation-id` - The reservation ID of the extension. + + - `instance-type` - The instance type of the extension. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeCapacityBlockExtensionHistoryOutput(_SerdeShape): """Dataclass for DescribeCapacityBlockExtensionHistoryOutput structure.""" @@ -2510,6 +3746,30 @@ class DescribeCapacityBlockExtensionOfferingsInput(_SerdeShape): [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ +class DescribeCapacityBlockExtensionOfferingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityBlockExtensionOfferingsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + capacity_block_extension_duration_hours: Required[int] + """The duration of the Capacity Block extension offering in hours.""" + capacity_reservation_id: Required[str] + """The ID of the Capacity reservation to be extended.""" + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + @dataclass(kw_only=True) class DescribeCapacityBlockExtensionOfferingsOutput(_SerdeShape): """Dataclass for DescribeCapacityBlockExtensionOfferingsOutput structure.""" @@ -2587,6 +3847,58 @@ class DescribeCapacityBlockOfferingsInput(_SerdeShape): Services Region and Local Zones you are opted into. """ +class DescribeCapacityBlockOfferingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityBlockOfferingsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_type: str | None + """ + The type of instance for which the Capacity Block offering reserves + capacity. + """ + instance_count: int | None + """ + The number of instances for which to reserve capacity. Each Capacity + Block can have up to 64 instances, and you can have up to 256 instances + across Capacity Blocks. + """ + start_date_range: datetime | None + """The earliest start date for the Capacity Block offering.""" + end_date_range: datetime | None + """The latest end date for the Capacity Block offering.""" + capacity_duration_hours: Required[int] + """ + The reservation duration for the Capacity Block, in hours. You must + specify the duration in 1-day increments up 14 days, and in 7-day + increments up to 182 days. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + ultraserver_type: str | None + """The EC2 UltraServer type of the Capacity Block offerings.""" + ultraserver_count: int | None + """The number of EC2 UltraServers in the offerings.""" + all_availability_zones: bool | None + """ + Include all Availability Zones and Local Zones, regardless of your + opt-in status. If you do not use this parameter, the results include + available offerings from all Availability Zones in the Amazon Web + Services Region and Local Zones you are opted into. + """ + @dataclass(kw_only=True) class DescribeCapacityBlockOfferingsOutput(_SerdeShape): """Dataclass for DescribeCapacityBlockOfferingsOutput structure.""" @@ -2656,14 +3968,63 @@ class DescribeCapacityBlocksInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DescribeCapacityBlocksOutput(_SerdeShape): - """Dataclass for DescribeCapacityBlocksOutput structure.""" +class DescribeCapacityBlocksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityBlocksInput`.""" - capacity_blocks: list[CapacityBlock] | None = ... - """The Capacity Blocks.""" - next_token: str | None = ... - """ + capacity_block_ids: Sequence[str] | None + """The IDs of the Capacity Blocks.""" + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `capacity-block-id` - The ID of the Capacity Block. + + - `ultraserver-type` - The Capacity Block type. The type can be + `instances` or `ultraservers`. + + - `availability-zone` - The Availability Zone of the Capacity Block. + + - `start-date` - The date and time at which the Capacity Block was + started. + + - `end-date` - The date and time at which the Capacity Block expires. + When a Capacity Block expires, all instances in the Capacity Block are + terminated. + + - `create-date` - The date and time at which the Capacity Block was + created. + + - `state` - The state of the Capacity Block (`active` | `expired` | + `unavailable` | `cancelled` | `failed` | `scheduled` | + `payment-pending` | `payment-failed`). + + - `tags` - The tags assigned to the Capacity Block. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeCapacityBlocksOutput(_SerdeShape): + """Dataclass for DescribeCapacityBlocksOutput structure.""" + + capacity_blocks: list[CapacityBlock] | None = ... + """The Capacity Blocks.""" + next_token: str | None = ... + """ The token to use to retrieve the next page of results. This value is `null` when there are no more results to return. """ @@ -2705,6 +4066,35 @@ class DescribeCapacityBlockStatusInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeCapacityBlockStatusInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityBlockStatusInput`.""" + + capacity_block_ids: Sequence[str] | None + """The ID of the Capacity Block.""" + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `interconnect-status` - The status of the interconnect for the + Capacity Block (`ok` | `impaired` | `insufficient-data`). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeCapacityBlockStatusOutput(_SerdeShape): """Dataclass for DescribeCapacityBlockStatusOutput structure.""" @@ -2756,6 +4146,37 @@ class DescribeCapacityManagerDataExportsInput(_SerdeShape): export status, creation date, and S3 bucket name. """ +class DescribeCapacityManagerDataExportsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityManagerDataExportsInput`.""" + + capacity_manager_data_export_ids: Sequence[str] | None + """ + The IDs of the data export configurations to describe. If not specified, + all export configurations are returned. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. If not + specified, up to 1000 results are returned. + """ + next_token: str | None + """ + The token for the next page of results. Use this value in a subsequent + call to retrieve additional results. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters to narrow the results. Supported filters include + export status, creation date, and S3 bucket name. + """ + @dataclass(kw_only=True) class DescribeCapacityManagerDataExportsOutput(_SerdeShape): """Dataclass for DescribeCapacityManagerDataExportsOutput structure.""" @@ -2828,6 +4249,55 @@ class DescribeCapacityReservationBillingRequestsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeCapacityReservationBillingRequestsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityReservationBillingRequestsInput`.""" + + capacity_reservation_ids: Sequence[str] | None + """The ID of the Capacity Reservation.""" + role: Required[str] + """ + Specify one of the following: + + - `odcr-owner` - If you are the Capacity Reservation owner, specify this + value to view requests that you have initiated. Not supported with the + `requested-by` filter. + + - `unused-reservation-billing-owner` - If you are the consumer account, + specify this value to view requests that have been sent to you. Not + supported with the `unused-reservation-billing-owner` filter. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `status` - The state of the request (`pending` | `accepted` | + `rejected` | `cancelled` | `revoked` | `expired`). + + - `requested-by` - The account ID of the Capacity Reservation owner that + initiated the request. Not supported if you specify `requested-by` for + **Role**. + + - `unused-reservation-billing-owner` - The ID of the consumer account to + which the request was sent. Not supported if you specify + `unused-reservation-billing-owner` for **Role**. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeCapacityReservationBillingRequestsOutput(_SerdeShape): """ @@ -2880,6 +4350,30 @@ class DescribeCapacityReservationCancellationQuotesInput(_SerdeShape): filters: list[Filter] | None = ... """One or more filters. Filter names and values are case-sensitive.""" +class DescribeCapacityReservationCancellationQuotesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityReservationCancellationQuotesInput`.""" + + capacity_reservation_cancellation_quote_ids: Sequence[str] | None + """The IDs of the cancellation quotes to describe.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """One or more filters. Filter names and values are case-sensitive.""" + @dataclass(kw_only=True) class DescribeCapacityReservationCancellationQuotesOutput(_SerdeShape): """ @@ -2932,6 +4426,30 @@ class DescribeCapacityReservationDateChangeQuotesInput(_SerdeShape): filters: list[Filter] | None = ... """One or more filters. Filter names and values are case-sensitive.""" +class DescribeCapacityReservationDateChangeQuotesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityReservationDateChangeQuotesInput`.""" + + capacity_reservation_modification_quote_ids: Sequence[str] | None + """The IDs of the date change quotes to describe.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """One or more filters. Filter names and values are case-sensitive.""" + @dataclass(kw_only=True) class DescribeCapacityReservationDateChangeQuotesOutput(_SerdeShape): """ @@ -2995,6 +4513,44 @@ class DescribeCapacityReservationFleetsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeCapacityReservationFleetsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityReservationFleetsInput`.""" + + capacity_reservation_fleet_ids: Sequence[str] | None + """The IDs of the Capacity Reservation Fleets to describe.""" + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `state` - The state of the Fleet (`submitted` | `modifying` | + `active` | `partially_fulfilled` | `expiring` | `expired` | + `cancelling` | `cancelled` | `failed`). + + - `instance-match-criteria` - The instance matching criteria for the + Fleet. Only `open` is supported. + + - `tenancy` - The tenancy of the Fleet (`default` | `dedicated`). + + - `allocation-strategy` - The allocation strategy used by the Fleet. + Only `prioritized` is supported. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeCapacityReservationFleetsOutput(_SerdeShape): """Dataclass for DescribeCapacityReservationFleetsOutput structure.""" @@ -3121,64 +4677,219 @@ class DescribeCapacityReservationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DescribeCapacityReservationsOutput(_SerdeShape): - """Dataclass for DescribeCapacityReservationsOutput structure.""" - - next_token: str | None = ... - """ - The token to use to retrieve the next page of results. This value is - `null` when there are no more results to return. - """ - capacity_reservations: list[CapacityReservation] | None = ... - """Information about the Capacity Reservations.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class DescribeCapacityReservationTopologyInput(_SerdeShape): - """Dataclass for DescribeCapacityReservationTopologyInput structure.""" +class DescribeCapacityReservationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityReservationsInput`.""" - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the operation, - without actually making the request, and provides an error response. If - you have the required permissions, the error response is - `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. - """ - next_token: str | None = ... - """ - The token returned from a previous paginated request. Pagination - continues from the end of the items returned by the previous request. - """ - max_results: int | None = ... + capacity_reservation_ids: Sequence[str] | None + """The ID of the Capacity Reservation.""" + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). - - You can't specify this parameter and the Capacity Reservation IDs - parameter in the same request. - - Default: `10` """ - capacity_reservation_ids: list[str] | None = ... + filters: Sequence[Filter | FilterDict] | None """ - The Capacity Reservation IDs. + One or more filters. - Default: Describes all your Capacity Reservations. + - `instance-type` - The type of instance for which the Capacity + Reservation reserves capacity. - Constraints: Maximum 10 explicitly specified Capacity Reservation IDs. - """ - filters: list[Filter] | None = ... - """ - The filters. + - `owner-id` - The ID of the Amazon Web Services account that owns the + Capacity Reservation. + + - `instance-platform` - The type of operating system for which the + Capacity Reservation reserves capacity. + + - `availability-zone` - The Availability Zone of the Capacity + Reservation. + + - `tenancy` - Indicates the tenancy of the Capacity Reservation. A + Capacity Reservation can have one of the following tenancy settings: + + - `default` - The Capacity Reservation is created on hardware that is + shared with other Amazon Web Services accounts. + + - `dedicated` - The Capacity Reservation is created on single-tenant + hardware that is dedicated to a single Amazon Web Services account. + + - `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost on which + the Capacity Reservation was created. + + - `state` - The current state of the Capacity Reservation. A Capacity + Reservation can be in one of the following states: + + - `active`- The Capacity Reservation is active and the capacity is + available for your use. + + - `expired` - The Capacity Reservation expired automatically at the + date and time specified in your request. The reserved capacity is no + longer available for your use. + + - `cancelled` - The Capacity Reservation was cancelled. The reserved + capacity is no longer available for your use. + + - `pending` - The Capacity Reservation request was successful but the + capacity provisioning is still pending. + + - `failed` - The Capacity Reservation request has failed. A request + might fail due to invalid request parameters, capacity constraints, + or instance limit constraints. Failed requests are retained for 60 + minutes. + + - `start-date` - The date and time at which the Capacity Reservation was + started. + + - `end-date` - The date and time at which the Capacity Reservation + expires. When a Capacity Reservation expires, the reserved capacity is + released and you can no longer launch instances into it. The Capacity + Reservation's state changes to expired when it reaches its end date + and time. + + - `end-date-type` - Indicates the way in which the Capacity Reservation + ends. A Capacity Reservation can have one of the following end types: + + - `unlimited` - The Capacity Reservation remains active until you + explicitly cancel it. + + - `limited` - The Capacity Reservation expires automatically at a + specified date and time. + + - `instance-match-criteria` - Indicates the type of instance launches + that the Capacity Reservation accepts. The options include: + + - `open` - The Capacity Reservation accepts all instances that have + matching attributes (instance type, platform, and Availability + Zone). Instances that have matching attributes launch into the + Capacity Reservation automatically without specifying any additional + parameters. + + - `targeted` - The Capacity Reservation only accepts instances that + have matching attributes (instance type, platform, and Availability + Zone), and explicitly target the Capacity Reservation. This ensures + that only permitted instances can use the reserved capacity. + + - `placement-group-arn` - The ARN of the cluster placement group in + which the Capacity Reservation was created. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeCapacityReservationsOutput(_SerdeShape): + """Dataclass for DescribeCapacityReservationsOutput structure.""" + + next_token: str | None = ... + """ + The token to use to retrieve the next page of results. This value is + `null` when there are no more results to return. + """ + capacity_reservations: list[CapacityReservation] | None = ... + """Information about the Capacity Reservations.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeCapacityReservationTopologyInput(_SerdeShape): + """Dataclass for DescribeCapacityReservationTopologyInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + You can't specify this parameter and the Capacity Reservation IDs + parameter in the same request. + + Default: `10` + """ + capacity_reservation_ids: list[str] | None = ... + """ + The Capacity Reservation IDs. + + Default: Describes all your Capacity Reservations. + + Constraints: Maximum 10 explicitly specified Capacity Reservation IDs. + """ + filters: list[Filter] | None = ... + """ + The filters. + + - `availability-zone` - The name of the Availability Zone (for example, + `us-west-2a`) or Local Zone (for example, `us-west-2-lax-1b`) that the + Capacity Reservation is in. + + - `instance-type` - The instance type (for example, `p4d.24xlarge`) or + instance family (for example, `p4d*`). You can use the `*` wildcard to + match zero or more characters, or the `?` wildcard to match zero or + one character. + """ + +class DescribeCapacityReservationTopologyInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityReservationTopologyInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + You can't specify this parameter and the Capacity Reservation IDs + parameter in the same request. + + Default: `10` + """ + capacity_reservation_ids: Sequence[str] | None + """ + The Capacity Reservation IDs. + + Default: Describes all your Capacity Reservations. + + Constraints: Maximum 10 explicitly specified Capacity Reservation IDs. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. - `availability-zone` - The name of the Availability Zone (for example, `us-west-2a`) or Local Zone (for example, `us-west-2-lax-1b`) that the @@ -3255,6 +4966,51 @@ class DescribeCarrierGatewaysInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeCarrierGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCarrierGatewaysInput`.""" + + carrier_gateway_ids: Sequence[str] | None + """One or more carrier gateway IDs.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `carrier-gateway-id` - The ID of the carrier gateway. + + - `state` - The state of the carrier gateway (`pending` | `failed` | + `available` | `deleting` | `deleted`). + + - `owner-id` - The Amazon Web Services account ID of the owner of the + carrier gateway. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC associated with the carrier gateway. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeCarrierGatewaysOutput(_SerdeShape): """Dataclass for DescribeCarrierGatewaysOutput structure.""" @@ -3324,48 +5080,97 @@ class DescribeClassicLinkInstancesInput(_SerdeShape): items. """ -@dataclass(kw_only=True) -class DescribeClassicLinkInstancesOutput(_SerdeShape): - """Dataclass for DescribeClassicLinkInstancesOutput structure.""" - - instances: list[ClassicLinkInstance] | None = ... - """Information about one or more linked EC2-Classic instances.""" - next_token: str | None = ... - """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class DescribeClientVpnAuthorizationRulesInput(_SerdeShape): - """Dataclass for DescribeClientVpnAuthorizationRulesInput structure.""" +class DescribeClassicLinkInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeClassicLinkInstancesInput`.""" - client_vpn_endpoint_id: str | None = ... - """The ID of the Client VPN endpoint.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - next_token: str | None = ... - """The token to retrieve the next page of results.""" - filters: list[Filter] | None = ... + instance_ids: Sequence[str] | None + """The instance IDs. Must be instances linked to a VPC through ClassicLink.""" + filters: Sequence[Filter | FilterDict] | None """ - One or more filters. Filter names and values are case-sensitive. + The filters. - - `description` - The description of the authorization rule. + - `group-id` - The ID of a VPC security group that's associated with + the instance. - - `destination-cidr` - The CIDR of the network to which the - authorization rule applies. + - `instance-id` - The ID of the instance. + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC to which the instance is linked. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + Constraint: If the value is greater than 1000, we return only 1000 + items. + """ + +@dataclass(kw_only=True) +class DescribeClassicLinkInstancesOutput(_SerdeShape): + """Dataclass for DescribeClassicLinkInstancesOutput structure.""" + + instances: list[ClassicLinkInstance] | None = ... + """Information about one or more linked EC2-Classic instances.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeClientVpnAuthorizationRulesInput(_SerdeShape): + """Dataclass for DescribeClientVpnAuthorizationRulesInput structure.""" + + client_vpn_endpoint_id: str | None = ... + """The ID of the Client VPN endpoint.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None = ... + """The token to retrieve the next page of results.""" + filters: list[Filter] | None = ... + """ + One or more filters. Filter names and values are case-sensitive. + + - `description` - The description of the authorization rule. + + - `destination-cidr` - The CIDR of the network to which the + authorization rule applies. - `group-id` - The ID of the Active Directory group to which the authorization rule grants access. @@ -3377,6 +5182,39 @@ class DescribeClientVpnAuthorizationRulesInput(_SerdeShape): the nextToken value. """ +class DescribeClientVpnAuthorizationRulesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeClientVpnAuthorizationRulesInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """The token to retrieve the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. Filter names and values are case-sensitive. + + - `description` - The description of the authorization rule. + + - `destination-cidr` - The CIDR of the network to which the + authorization rule applies. + + - `group-id` - The ID of the Active Directory group to which the + authorization rule grants access. + """ + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the nextToken value. + """ + @dataclass(kw_only=True) class DescribeClientVpnAuthorizationRulesOutput(_SerdeShape): """Dataclass for DescribeClientVpnAuthorizationRulesOutput structure.""" @@ -3427,6 +5265,36 @@ class DescribeClientVpnConnectionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeClientVpnConnectionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeClientVpnConnectionsInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. Filter names and values are case-sensitive. + + - `connection-id` - The ID of the connection. + + - `username` - For Active Directory client authentication, the user name + of the client who established the client connection. + """ + next_token: str | None + """The token to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the nextToken value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeClientVpnConnectionsOutput(_SerdeShape): """Dataclass for DescribeClientVpnConnectionsOutput structure.""" @@ -3476,6 +5344,35 @@ class DescribeClientVpnEndpointsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeClientVpnEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeClientVpnEndpointsInput`.""" + + client_vpn_endpoint_ids: Sequence[str] | None + """The ID of the Client VPN endpoint.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the nextToken value. + """ + next_token: str | None + """The token to retrieve the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. Filter names and values are case-sensitive. + + - `endpoint-id` - The ID of the Client VPN endpoint. + + - `transport-protocol` - The transport protocol (`tcp` | `udp`). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeClientVpnEndpointsOutput(_SerdeShape): """Dataclass for DescribeClientVpnEndpointsOutput structure.""" @@ -3529,6 +5426,39 @@ class DescribeClientVpnRoutesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeClientVpnRoutesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeClientVpnRoutesInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. Filter names and values are case-sensitive. + + - `destination-cidr` - The CIDR of the route destination. + + - `origin` - How the route was associated with the Client VPN endpoint + (`associate` | `add-route`). + + - `target-subnet` - The ID of the subnet through which traffic is + routed. + """ + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the nextToken value. + """ + next_token: str | None + """The token to retrieve the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeClientVpnRoutesOutput(_SerdeShape): """Dataclass for DescribeClientVpnRoutesOutput structure.""" @@ -3583,6 +5513,40 @@ class DescribeClientVpnTargetNetworksInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeClientVpnTargetNetworksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeClientVpnTargetNetworksInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + association_ids: Sequence[str] | None + """The IDs of the target network associations.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the nextToken value. + """ + next_token: str | None + """The token to retrieve the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. Filter names and values are case-sensitive. + + - `association-id` - The ID of the association. + + - `target-network-id` - The ID of the subnet specified as the target + network. + + - `vpc-id` - The ID of the VPC in which the target network is located. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeClientVpnTargetNetworksOutput(_SerdeShape): """Dataclass for DescribeClientVpnTargetNetworksOutput structure.""" @@ -3633,6 +5597,36 @@ class DescribeCoipPoolsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeCoipPoolsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCoipPoolsInput`.""" + + pool_ids: Sequence[str] | None + """The IDs of the address pools.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `coip-pool.local-gateway-route-table-id` - The ID of the local gateway + route table. + + - `coip-pool.pool-id` - The ID of the address pool. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeCoipPoolsOutput(_SerdeShape): """Dataclass for DescribeCoipPoolsOutput structure.""" @@ -3666,6 +5660,19 @@ class DescribeConversionTasksInput(_SerdeShape): conversion_task_ids: list[str] | None = ... """The conversion task IDs.""" +class DescribeConversionTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeConversionTasksInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + conversion_task_ids: Sequence[str] | None + """The conversion task IDs.""" + @dataclass(kw_only=True) class DescribeConversionTasksOutput(_SerdeShape): """Dataclass for DescribeConversionTasksOutput structure.""" @@ -3726,46 +5733,116 @@ class DescribeCustomerGatewaysInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DescribeCustomerGatewaysOutput(_SerdeShape): - """Contains the output of DescribeCustomerGateways.""" +class DescribeCustomerGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCustomerGatewaysInput`.""" - customer_gateways: list[CustomerGateway] | None = ... - """Information about one or more customer gateways.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + customer_gateway_ids: Sequence[str] | None """ + One or more customer gateway IDs. -@dataclass(kw_only=True) -class DescribeDeclarativePoliciesReportsInput(_SerdeShape): - """Dataclass for DescribeDeclarativePoliciesReportsInput structure.""" - - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. - """ - next_token: str | None = ... - """ - The token returned from a previous paginated request. Pagination - continues from the end of the items returned by the previous request. + Default: Describes all your customer gateways. """ - max_results: int | None = ... + filters: Sequence[Filter | FilterDict] | None """ - The maximum number of items to return for this request. To get the next - page of items, make another request with the token returned in the + One or more filters. + + - `bgp-asn` - The customer gateway's Border Gateway Protocol (BGP) + Autonomous System Number (ASN). + + - `customer-gateway-id` - The ID of the customer gateway. + + - `ip-address` - The IP address of the customer gateway device's + external interface. + + - `state` - The state of the customer gateway (`pending` | `available` + | `deleting` | `deleted`). + + - `type` - The type of customer gateway. Currently, the only supported + type is `ipsec.1`. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeCustomerGatewaysOutput(_SerdeShape): + """Contains the output of DescribeCustomerGateways.""" + + customer_gateways: list[CustomerGateway] | None = ... + """Information about one or more customer gateways.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeDeclarativePoliciesReportsInput(_SerdeShape): + """Dataclass for DescribeDeclarativePoliciesReportsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ report_ids: list[str] | None = ... """One or more report IDs.""" +class DescribeDeclarativePoliciesReportsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDeclarativePoliciesReportsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + report_ids: Sequence[str] | None + """One or more report IDs.""" + @dataclass(kw_only=True) class DescribeDeclarativePoliciesReportsOutput(_SerdeShape): """Dataclass for DescribeDeclarativePoliciesReportsOutput structure.""" @@ -3834,6 +5911,54 @@ class DescribeDhcpOptionsInput(_SerdeShape): of the tag value. """ +class DescribeDhcpOptionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDhcpOptionsInput`.""" + + dhcp_options_ids: Sequence[str] | None + """The IDs of DHCP option sets.""" + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `dhcp-options-id` - The ID of a DHCP options set. + + - `key` - The key for one of the options (for example, `domain-name`). + + - `value` - The value for one of the options. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + DHCP options set. + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + @dataclass(kw_only=True) class DescribeDhcpOptionsOutput(_SerdeShape): """Dataclass for DescribeDhcpOptionsOutput structure.""" @@ -3893,6 +6018,45 @@ class DescribeEgressOnlyInternetGatewaysInput(_SerdeShape): of the tag value. """ +class DescribeEgressOnlyInternetGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `DescribeEgressOnlyInternetGatewaysInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + egress_only_internet_gateway_ids: Sequence[str] | None + """The IDs of the egress-only internet gateways.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + @dataclass(kw_only=True) class DescribeEgressOnlyInternetGatewaysOutput(_SerdeShape): """Dataclass for DescribeEgressOnlyInternetGatewaysOutput structure.""" @@ -3953,6 +6117,46 @@ class DescribeElasticGpusInput(_SerdeShape): next_token: str | None = ... """The token to request the next page of results.""" +class DescribeElasticGpusInputDict(TypedDict, total=False): + """Dictionary form of `DescribeElasticGpusInput`.""" + + elastic_gpu_ids: Sequence[str] | None + """The Elastic Graphics accelerator IDs.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone` - The Availability Zone in which the Elastic + Graphics accelerator resides. + + - `elastic-gpu-health` - The status of the Elastic Graphics accelerator + (`OK` | `IMPAIRED`). + + - `elastic-gpu-state` - The state of the Elastic Graphics accelerator + (`ATTACHED`). + + - `elastic-gpu-type` - The type of Elastic Graphics accelerator; for + example, `eg1.medium`. + + - `instance-id` - The ID of the instance to which the Elastic Graphics + accelerator is associated. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned `NextToken` + value. This value can be between 5 and 1000. + """ + next_token: str | None + """The token to request the next page of results.""" + @dataclass(kw_only=True) class DescribeElasticGpusOutput(_SerdeShape): """Dataclass for DescribeElasticGpusOutput structure.""" @@ -4002,6 +6206,28 @@ class DescribeExportImageTasksInput(_SerdeShape): next_token: str | None = ... """A token that indicates the next page of results.""" +class DescribeExportImageTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeExportImageTasksInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + Filter tasks using the `task-state` filter and one of the following + values: `active`, `completed`, `deleting`, or `deleted`. + """ + export_image_task_ids: Sequence[str] | None + """The IDs of the export image tasks.""" + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """A token that indicates the next page of results.""" + @dataclass(kw_only=True) class DescribeExportImageTasksOutput(_SerdeShape): """Dataclass for DescribeExportImageTasksOutput structure.""" @@ -4030,6 +6256,14 @@ class DescribeExportTasksInput(_SerdeShape): export_task_ids: list[str] | None = ... """The export task IDs.""" +class DescribeExportTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeExportTasksInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """the filters for the export tasks.""" + export_task_ids: Sequence[str] | None + """The export task IDs.""" + @dataclass(kw_only=True) class DescribeExportTasksOutput(_SerdeShape): """Dataclass for DescribeExportTasksOutput structure.""" @@ -4080,6 +6314,41 @@ class DescribeFastLaunchImagesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeFastLaunchImagesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFastLaunchImagesInput`.""" + + image_ids: Sequence[str] | None + """Specify one or more Windows AMI image IDs for the request.""" + filters: Sequence[Filter | FilterDict] | None + """ + Use the following filters to streamline results. + + - `resource-type` - The resource type for pre-provisioning. + + - `owner-id` - The owner ID for the pre-provisioning resource. + + - `state` - The current state of fast launching for the Windows AMI. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeFastLaunchImagesOutput(_SerdeShape): """Dataclass for DescribeFastLaunchImagesOutput structure.""" @@ -4190,23 +6459,65 @@ class DescribeFastSnapshotRestoresInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DescribeFastSnapshotRestoresOutput(_SerdeShape): - """Dataclass for DescribeFastSnapshotRestoresOutput structure.""" +class DescribeFastSnapshotRestoresInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFastSnapshotRestoresInput`.""" - fast_snapshot_restores: list[DescribeFastSnapshotRestoreSuccessItem] | None = ... - """Information about the state of fast snapshot restores.""" - next_token: str | None = ... - """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + filters: Sequence[Filter | FilterDict] | None + """ + The filters. The possible values are: + + - `availability-zone`: The Availability Zone of the snapshot. For + example, `us-east-2a`. + + - `availability-zone-id`: The ID of the Availability Zone of the + snapshot. For example, `use2-az1`. + + - `owner-id`: The ID of the Amazon Web Services account that enabled + fast snapshot restore on the snapshot. + + - `snapshot-id`: The ID of the snapshot. + + - `state`: The state of fast snapshot restores for the snapshot + (`enabling` | `optimizing` | `enabled` | `disabling` | + `disabled`). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeFastSnapshotRestoresOutput(_SerdeShape): + """Dataclass for DescribeFastSnapshotRestoresOutput structure.""" + + fast_snapshot_restores: list[DescribeFastSnapshotRestoreSuccessItem] | None = ... + """Information about the state of fast snapshot restores.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) @@ -4316,6 +6627,38 @@ class DescribeFleetHistoryInput(_SerdeShape): *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). """ +class DescribeFleetHistoryInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFleetHistoryInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + event_type: str | None + """The type of events to describe. By default, all events are described.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + fleet_id: Required[str] + """The ID of the EC2 Fleet.""" + start_time: Required[datetime] + """ + The start date and time for the events, in UTC format (for example, + *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). + """ + @dataclass(kw_only=True) class DescribeFleetHistoryOutput(_SerdeShape): """Dataclass for DescribeFleetHistoryOutput structure.""" @@ -4383,6 +6726,37 @@ class DescribeFleetInstancesInput(_SerdeShape): - `instance-type` - The instance type. """ +class DescribeFleetInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFleetInstancesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + fleet_id: Required[str] + """The ID of the EC2 Fleet.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `instance-type` - The instance type. + """ + @dataclass(kw_only=True) class DescribeFleetInstancesOutput(_SerdeShape): """Dataclass for DescribeFleetInstancesOutput structure.""" @@ -4459,6 +6833,57 @@ class DescribeFleetsInput(_SerdeShape): - `type` - The type of request (`instant` | `request` | `maintain`). """ +class DescribeFleetsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFleetsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + fleet_ids: Sequence[str] | None + """ + The IDs of the EC2 Fleets. + + Note: + If a fleet is of type `instant`, you must specify the fleet ID, + otherwise it does not appear in the response. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `activity-status` - The progress of the EC2 Fleet ( `error` | + `pending-fulfillment` | `pending-termination` | `fulfilled`). + + - `excess-capacity-termination-policy` - Indicates whether to terminate + running instances if the target capacity is decreased below the + current EC2 Fleet size (`true` | `false`). + + - `fleet-state` - The state of the EC2 Fleet (`submitted` | `active` | + `deleted` | `failed` | `deleted-running` | `deleted-terminating` | + `modifying`). + + - `replace-unhealthy-instances` - Indicates whether EC2 Fleet should + replace unhealthy instances (`true` | `false`). + + - `type` - The type of request (`instant` | `request` | `maintain`). + """ + @dataclass(kw_only=True) class DescribeFleetsInstances(_SerdeShape): """Describes the instances that were launched by the fleet.""" @@ -4561,6 +6986,63 @@ class DescribeFlowLogsInput(_SerdeShape): the end of the items returned by the previous request. """ +class DescribeFlowLogsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFlowLogsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filter: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `deliver-log-status` - The status of the logs delivery (`SUCCESS` | + `FAILED`). + + - `log-destination-type` - The type of destination for the flow log data + (`cloud-watch-logs` | `s3` | `kinesis-data-firehose`). + + - `flow-log-id` - The ID of the flow log. + + - `log-group-name` - The name of the log group. + + - `resource-id` - The ID of the VPC, subnet, or network interface. + + - `traffic-type` - The type of traffic (`ACCEPT` | `REJECT` | `ALL`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + flow_log_ids: Sequence[str] | None + """ + One or more flow log IDs. + + Constraint: Maximum of 1000 flow log IDs. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token to request the next page of items. Pagination continues from + the end of the items returned by the previous request. + """ + @dataclass(kw_only=True) class DescribeFlowLogsOutput(_SerdeShape): """Dataclass for DescribeFlowLogsOutput structure.""" @@ -4596,6 +7078,21 @@ class DescribeFpgaImageAttributeInput(_SerdeShape): attribute: str | None = ... """The AFI attribute.""" +class DescribeFpgaImageAttributeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFpgaImageAttributeInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + fpga_image_id: Required[str] + """The ID of the AFI.""" + attribute: Required[str] + """The AFI attribute.""" + @dataclass(kw_only=True) class DescribeFpgaImageAttributeOutput(_SerdeShape): """Dataclass for DescribeFpgaImageAttributeOutput structure.""" @@ -4668,6 +7165,63 @@ class DescribeFpgaImagesInput(_SerdeShape): max_results: int | None = ... """The maximum number of results to return in a single call.""" +class DescribeFpgaImagesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeFpgaImagesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + fpga_image_ids: Sequence[str] | None + """The AFI IDs.""" + owners: Sequence[str] | None + """ + Filters the AFI by owner. Specify an Amazon Web Services account ID, + `self` (owner is the sender of the request), or an Amazon Web Services + owner alias (valid values are `amazon` | `aws-marketplace`). + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `create-time` - The creation time of the AFI. + + - `fpga-image-id` - The FPGA image identifier (AFI ID). + + - `fpga-image-global-id` - The global FPGA image identifier (AGFI ID). + + - `name` - The name of the AFI. + + - `owner-id` - The Amazon Web Services account ID of the AFI owner. + + - `product-code` - The product code. + + - `shell-version` - The version of the Amazon Web Services Shell that + was used to create the bitstream. + + - `state` - The state of the AFI (`pending` | `failed` | `available` + | `unavailable`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `update-time` - The time of the most recent update. + """ + next_token: str | None + """The token to retrieve the next page of results.""" + max_results: int | None + """The maximum number of results to return in a single call.""" + @dataclass(kw_only=True) class DescribeFpgaImagesOutput(_SerdeShape): """Dataclass for DescribeFpgaImagesOutput structure.""" @@ -4729,11 +7283,52 @@ class DescribeHostReservationOfferingsInput(_SerdeShape): offering_id: str | None = ... """The ID of the reservation offering.""" -@dataclass(kw_only=True) -class DescribeHostReservationOfferingsOutput(_SerdeShape): - """Dataclass for DescribeHostReservationOfferingsOutput structure.""" +class DescribeHostReservationOfferingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeHostReservationOfferingsInput`.""" - next_token: str | None = ... + filter: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `instance-family` - The instance family of the offering (for example, + `m4`). + + - `payment-option` - The payment option (`NoUpfront` | `PartialUpfront` + | `AllUpfront`). + """ + max_duration: int | None + """ + This is the maximum duration of the reservation to purchase, specified + in seconds. Reservations are available in one-year and three-year terms. + The number of seconds specified must be the number of seconds in a year + (365x24x60x60) times one of the supported durations (1 or 3). For + example, specify 94608000 for three years. + """ + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the returned `nextToken` value. This value can be between 5 and 500. If + `maxResults` is given a larger value than 500, you receive an error. + """ + min_duration: int | None + """ + This is the minimum duration of the reservation you'd like to purchase, + specified in seconds. Reservations are available in one-year and + three-year terms. The number of seconds specified must be the number of + seconds in a year (365x24x60x60) times one of the supported durations (1 + or 3). For example, specify 31536000 for one year. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + offering_id: str | None + """The ID of the reservation offering.""" + +@dataclass(kw_only=True) +class DescribeHostReservationOfferingsOutput(_SerdeShape): + """Dataclass for DescribeHostReservationOfferingsOutput structure.""" + + next_token: str | None = ... """ The token to use to retrieve the next page of results. This value is `null` when there are no more results to return. @@ -4786,6 +7381,43 @@ class DescribeHostReservationsInput(_SerdeShape): next_token: str | None = ... """The token to use to retrieve the next page of results.""" +class DescribeHostReservationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeHostReservationsInput`.""" + + filter: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `instance-family` - The instance family (for example, `m4`). + + - `payment-option` - The payment option (`NoUpfront` | `PartialUpfront` + | `AllUpfront`). + + - `state` - The state of the reservation (`payment-pending` | + `payment-failed` | `active` | `retired`). + + - `tag:```{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + host_reservation_id_set: Sequence[str] | None + """The host reservation IDs.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the returned `nextToken` value. This value can be between 5 and 500. If + `maxResults` is given a larger value than 500, you receive an error. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + @dataclass(kw_only=True) class DescribeHostReservationsOutput(_SerdeShape): """Dataclass for DescribeHostReservationsOutput structure.""" @@ -4853,6 +7485,53 @@ class DescribeHostsInput(_SerdeShape): of the tag value. """ +class DescribeHostsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeHostsInput`.""" + + host_ids: Sequence[str] | None + """ + The IDs of the Dedicated Hosts. The IDs are used for targeted instance + launches. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the returned `nextToken` value. This value can be between 5 and 500. If + `maxResults` is given a larger value than 500, you receive an error. + + You cannot specify this parameter and the host IDs parameter in the same + request. + """ + filter: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `auto-placement` - Whether auto-placement is enabled or disabled (`on` + | `off`). + + - `availability-zone` - The Availability Zone of the host. + + - `client-token` - The idempotency token that you provided when you + allocated the host. + + - `host-reservation-id` - The ID of the reservation assigned to this + host. + + - `instance-type` - The instance type size that the Dedicated Host is + configured to support. + + - `state` - The allocation state of the Dedicated Host (`available` | + `under-assessment` | `permanent-failure` | `released` | + `released-permanent-failure`). + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + @dataclass(kw_only=True) class DescribeHostsOutput(_SerdeShape): """Dataclass for DescribeHostsOutput structure.""" @@ -4900,6 +7579,33 @@ class DescribeIamInstanceProfileAssociationsInput(_SerdeShape): continues from the end of the items returned by the previous request. """ +class DescribeIamInstanceProfileAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIamInstanceProfileAssociationsInput`.""" + + association_ids: Sequence[str] | None + """The IAM instance profile associations.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `instance-id` - The ID of the instance. + + - `state` - The state of the association (`associating` | `associated` + | `disassociating`). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + @dataclass(kw_only=True) class DescribeIamInstanceProfileAssociationsOutput(_SerdeShape): """Dataclass for DescribeIamInstanceProfileAssociationsOutput structure.""" @@ -4942,6 +7648,28 @@ class DescribeIdentityIdFormatInput(_SerdeShape): root user. """ +class DescribeIdentityIdFormatInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIdentityIdFormatInput`.""" + + resource: str | None + """ + The type of resource: `bundle` | `conversion-task` | + `customer-gateway` | `dhcp-options` | `elastic-ip-allocation` | + `elastic-ip-association` | `export-task` | `flow-log` | `image` | + `import-task` | `instance` | `internet-gateway` | `network-acl` | + `network-acl-association` | `network-interface` | + `network-interface-attachment` | `prefix-list` | `reservation` | + `route-table` | `route-table-association` | `security-group` | + `snapshot` | `subnet` | `subnet-cidr-block-association` | `volume` | + `vpc` | `vpc-cidr-block-association` | `vpc-endpoint` | + `vpc-peering-connection` | `vpn-connection` | `vpn-gateway` + """ + principal_arn: Required[str] + """ + The ARN of the principal, which can be an IAM role, IAM user, or the + root user. + """ + @dataclass(kw_only=True) class DescribeIdentityIdFormatOutput(_SerdeShape): """Dataclass for DescribeIdentityIdFormatOutput structure.""" @@ -4974,6 +7702,23 @@ class DescribeIdFormatInput(_SerdeShape): `vpc-peering-connection` | `vpn-connection` | `vpn-gateway` """ +class DescribeIdFormatInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIdFormatInput`.""" + + resource: str | None + """ + The type of resource: `bundle` | `conversion-task` | + `customer-gateway` | `dhcp-options` | `elastic-ip-allocation` | + `elastic-ip-association` | `export-task` | `flow-log` | `image` | + `import-task` | `instance` | `internet-gateway` | `network-acl` | + `network-acl-association` | `network-interface` | + `network-interface-attachment` | `prefix-list` | `reservation` | + `route-table` | `route-table-association` | `security-group` | + `snapshot` | `subnet` | `subnet-cidr-block-association` | `volume` | + `vpc` | `vpc-cidr-block-association` | `vpc-endpoint` | + `vpc-peering-connection` | `vpn-connection` | `vpn-gateway` + """ + @dataclass(kw_only=True) class DescribeIdFormatOutput(_SerdeShape): """Dataclass for DescribeIdFormatOutput structure.""" @@ -5010,6 +7755,27 @@ class DescribeImageAttributeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeImageAttributeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeImageAttributeInput`.""" + + attribute: Required[str] + """ + The AMI attribute. + + **Note**: The `blockDeviceMapping` attribute is deprecated. Using this + attribute returns the `Client.AuthFailure` error. To get information + about the block device mappings for an AMI, describe the image instead. + """ + image_id: Required[str] + """The ID of the AMI.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeImageAttributeOutput(_SerdeShape): """Describes an image attribute.""" @@ -5128,6 +7894,54 @@ class DescribeImageReferencesInput(_SerdeShape): [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ +class DescribeImageReferencesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeImageReferencesInput`.""" + + image_ids: Required[Sequence[str]] + """The IDs of the images to check for resource references.""" + include_all_resource_types: bool | None + """ + Specifies whether to check all supported Amazon Web Services resource + types for image references. When specified, default values are applied + for `ResourceTypeOptions`. For the default values, see [How AMI + reference checks + work](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ami-references.html#how-ami-references-works) + in the *Amazon EC2 User Guide*. If you also specify `ResourceTypes` with + `ResourceTypeOptions`, your specified values override the default + values. + + Supported resource types: `ec2:Instance` | `ec2:LaunchTemplate` | + `ssm:Parameter` | `imagebuilder:ImageRecipe` | + `imagebuilder:ContainerRecipe` + + Either `IncludeAllResourceTypes` or `ResourceTypes` must be specified. + """ + resource_types: Sequence[ResourceTypeRequest | ResourceTypeRequestDict] | None + """ + The Amazon Web Services resource types to check for image references. + + Either `IncludeAllResourceTypes` or `ResourceTypes` must be specified. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + @dataclass(kw_only=True) class DescribeImageReferencesOutput(_SerdeShape): """Dataclass for DescribeImageReferencesOutput structure.""" @@ -5422,370 +8236,267 @@ class DescribeImagesInput(_SerdeShape): `hvm`). """ -@dataclass(kw_only=True) -class DescribeImagesOutput(_SerdeShape): - """Dataclass for DescribeImagesOutput structure.""" +class DescribeImagesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeImagesInput`.""" - next_token: str | None = ... - """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. + executable_users: Sequence[str] | None """ - images: list[Image] | None = ... - """Information about the images.""" - response_metadata: ResponseMetadata = ... + Scopes the images by users with explicit launch permissions. Specify an + Amazon Web Services account ID, `self` (the sender of the request), or + `all` (public AMIs). + + - If you specify an Amazon Web Services account ID that is not your own, + only AMIs shared with that specific Amazon Web Services account ID are + returned. However, AMIs that are shared with the account's + organization or organizational unit (OU) are not returned. + + - If you specify `self` or your own Amazon Web Services account ID, AMIs + shared with your account are returned. In addition, AMIs that are + shared with the organization or OU of which you are member are also + returned. + + - If you specify `all`, all public AMIs are returned. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + image_ids: Sequence[str] | None """ + The image IDs. -@dataclass(kw_only=True) -class DescribeImageUsageReportEntriesInput(_SerdeShape): - """Dataclass for DescribeImageUsageReportEntriesInput structure.""" - - image_ids: list[str] | None = ... + Default: Describes all images available to you. """ - The IDs of the images for filtering the report entries. If specified, - only report entries containing these images are returned. + owners: Sequence[str] | None """ - report_ids: list[str] | None = ... - """The IDs of the usage reports.""" - next_token: str | None = ... - """ - The token returned from a previous paginated request. Pagination - continues from the end of the items returned by the previous request. + Scopes the results to images with the specified owners. You can specify + a combination of Amazon Web Services account IDs, `self`, `amazon`, + `aws-backup-vault`, and `aws-marketplace`. If you omit this parameter, + the results include all images for which you have launch permissions, + regardless of ownership. """ - filters: list[Filter] | None = ... + include_deprecated: bool | None """ - The filters. - - - `account-id` - A 12-digit Amazon Web Services account ID. + Specifies whether to include deprecated AMIs. - - `creation-time` - The time when the report was created, in the ISO - 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for - example, `2025-11-29T11:04:43.305Z`. You can use a wildcard (`*`), for - example, `2025-11-29T*`, which matches an entire day. + Default: No deprecated AMIs are included in the response. - - `resource-type` - The resource type (`ec2:Instance` | - `ec2:LaunchTemplate`). + Note: + If you are the AMI owner, all deprecated AMIs appear in the response + regardless of what you specify for this parameter. """ - dry_run: bool | None = ... + include_disabled: bool | None """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + Specifies whether to include disabled AMIs. + + Default: No disabled AMIs are included in the response. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - -@dataclass(kw_only=True) -class DescribeImageUsageReportEntriesOutput(_SerdeShape): - """Dataclass for DescribeImageUsageReportEntriesOutput structure.""" - - next_token: str | None = ... - """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. - """ - image_usage_report_entries: list[ImageUsageReportEntry] | None = ... - """The content of the usage reports.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class DescribeImageUsageReportsInput(_SerdeShape): - """Dataclass for DescribeImageUsageReportsInput structure.""" - - image_ids: list[str] | None = ... - """ - The IDs of the images for filtering the reports. If specified, only - reports containing these images are returned. - """ - report_ids: list[str] | None = ... - """The IDs of the image usage reports.""" - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - filters: list[Filter] | None = ... - """ - The filters. - - - `creation-time` - The time when the report was created, in the ISO - 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for - example, `2025-11-29T11:04:43.305Z`. You can use a wildcard (`*`), for - example, `2025-11-29T*`, which matches an entire day. - - - `state` - The state of the report (`available` | `pending` | - `error`). - - - `tag:```{=html} - The key/value combination of a tag assigned to - the resource. Use the tag key in the filter name and the tag value as - the filter value. For example, to find all resources that have a tag - with the key `Owner` and the value `TeamA`, specify `tag:Owner` for - the filter name and `TeamA` for the filter value. - - - `tag-key` - The key of a tag assigned to the resource. Use this filter - to find all resources assigned a tag with a specific key, regardless - of the tag value. - """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - max_results: int | None = ... - """ - The maximum number of items to return for this request. To get the next - page of items, make another request with the token returned in the - output. For more information, see - [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + filters: Sequence[Filter | FilterDict] | None """ + The filters. -@dataclass(kw_only=True) -class DescribeImageUsageReportsOutput(_SerdeShape): - """Dataclass for DescribeImageUsageReportsOutput structure.""" + - `architecture` - The image architecture (`i386` | `x86_64` | `arm64` + | `x86_64_mac` | `arm64_mac`). - next_token: str | None = ... - """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. - """ - image_usage_reports: list[ImageUsageReport] | None = ... - """The image usage reports.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `block-device-mapping.delete-on-termination` - A Boolean value that + indicates whether the Amazon EBS volume is deleted on instance + termination. -@dataclass(kw_only=True) -class DescribeImportImageTasksInput(_SerdeShape): - """Dataclass for DescribeImportImageTasksInput structure.""" + - `block-device-mapping.device-name` - The device name specified in the + block device mapping (for example, `/dev/sdh` or `xvdh`). - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. - """ - filters: list[Filter] | None = ... - """ - Filter tasks using the `task-state` filter and one of the following - values: `active`, `completed`, `deleting`, or `deleted`. - """ - import_task_ids: list[str] | None = ... - """The IDs of the import image tasks.""" - max_results: int | None = ... - """The maximum number of results to return in a single call.""" - next_token: str | None = ... - """A token that indicates the next page of results.""" + - `block-device-mapping.snapshot-id` - The ID of the snapshot used for + the Amazon EBS volume. -@dataclass(kw_only=True) -class DescribeImportImageTasksOutput(_SerdeShape): - """Dataclass for DescribeImportImageTasksOutput structure.""" + - `block-device-mapping.volume-size` - The volume size of the Amazon EBS + volume, in GiB. - import_image_tasks: list[ImportImageTask] | None = ... - """ - A list of zero or more import image tasks that are currently active or - were completed or canceled in the previous 7 days. - """ - next_token: str | None = ... - """ - The token to use to get the next page of results. This value is `null` - when there are no more results to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `block-device-mapping.volume-type` - The volume type of the Amazon EBS + volume (`io1` | `io2` | `gp2` | `gp3` | `sc1 `| `st1` | + `standard`). -@dataclass(kw_only=True) -class DescribeImportSnapshotTasksInput(_SerdeShape): - """Dataclass for DescribeImportSnapshotTasksInput structure.""" + - `block-device-mapping.encrypted` - A Boolean that indicates whether + the Amazon EBS volume is encrypted. - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. - """ - filters: list[Filter] | None = ... - """The filters.""" - import_task_ids: list[str] | None = ... - """A list of import snapshot task IDs.""" - max_results: int | None = ... - """ - The maximum number of results to return in a single call. To retrieve - the remaining results, make another call with the returned `NextToken` - value. - """ - next_token: str | None = ... - """A token that indicates the next page of results.""" + - `boot-mode` -- The boot mode of the image (`legacy-bios` | `uefi` | + `uefi-preferred`). -@dataclass(kw_only=True) -class DescribeImportSnapshotTasksOutput(_SerdeShape): - """Dataclass for DescribeImportSnapshotTasksOutput structure.""" + - `creation-date` - The time when the image was created, in the ISO 8601 + format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example, + `2021-09-29T11:04:43.305Z`. You can use a wildcard (`*`), for example, + `2021-09-29T*`, which matches an entire day. - import_snapshot_tasks: list[ImportSnapshotTask] | None = ... - """ - A list of zero or more import snapshot tasks that are currently active - or were completed or canceled in the previous 7 days. - """ - next_token: str | None = ... - """ - The token to use to get the next page of results. This value is `null` - when there are no more results to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `description` - The description of the image (provided during image + creation). -@dataclass(kw_only=True) -class DescribeInstanceAttributeInput(_SerdeShape): - """Dataclass for DescribeInstanceAttributeInput structure.""" + - `ena-support` - A Boolean that indicates whether enhanced networking + with ENA is enabled. - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the operation, - without actually making the request, and provides an error response. If - you have the required permissions, the error response is - `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. - """ - instance_id: str | None = ... - """The ID of the instance.""" - attribute: str | None = ... - """ - The instance attribute. + - `free-tier-eligible` - A Boolean that indicates whether this image can + be used under the Amazon Web Services Free Tier (`true` | `false`). - Note that the `enaSupport` attribute is not supported. - """ + - `hypervisor` - The hypervisor type (`ovm` | `xen`). -@dataclass(kw_only=True) -class DescribeInstanceAttributeOutput(_SerdeShape): - """Describes an instance attribute.""" + - `image-allowed` - A Boolean that indicates whether the image meets the + criteria specified for Allowed AMIs. - block_device_mappings: list[InstanceBlockDeviceMapping] | None = ... - """The block device mapping of the instance.""" - disable_api_termination: AttributeBooleanValue | None = ... - """ - Indicates whether termination protection is enabled. If the value is - `true`, you can't terminate the instance using the Amazon EC2 console, - command line tools, or API. - """ - ena_support: AttributeBooleanValue | None = ... - """Indicates whether enhanced networking with ENA is enabled.""" - enclave_options: EnclaveOptions | None = ... - """ - Indicates whether the instance is enabled for Amazon Web Services Nitro - Enclaves. - """ - ebs_optimized: AttributeBooleanValue | None = ... - """Indicates whether the instance is optimized for Amazon EBS I/O.""" - instance_id: str | None = ... - """The ID of the instance.""" - instance_initiated_shutdown_behavior: AttributeValue | None = ... - """ - Indicates whether an instance stops or terminates when you initiate - shutdown from the instance (using the operating system command for - system shutdown). - """ - instance_type: AttributeValue | None = ... - """The instance type.""" - kernel_id: AttributeValue | None = ... - """The kernel ID.""" - product_codes: list[ProductCode] | None = ... - """The product codes.""" - ramdisk_id: AttributeValue | None = ... - """The RAM disk ID.""" - root_device_name: AttributeValue | None = ... - """The device name of the root device volume (for example, `/dev/sda1`).""" - source_dest_check: AttributeBooleanValue | None = ... - """Indicates whether source/destination checks are enabled.""" - sriov_net_support: AttributeValue | None = ... - """ - Indicates whether enhanced networking with the Intel 82599 Virtual - Function interface is enabled. - """ - user_data: AttributeValue | None = ... - """The user data.""" - disable_api_stop: AttributeBooleanValue | None = ... - """Indicates whether stop protection is enabled for the instance.""" - groups: list[GroupIdentifier] | None = ... - """The security groups associated with the instance.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `image-id` - The ID of the image. -@dataclass(kw_only=True) -class DescribeInstanceConnectEndpointsInput(_SerdeShape): - """Dataclass for DescribeInstanceConnectEndpointsInput structure.""" + - `image-watermark.source-image-creation-time` - The creation date of + the source AMI, in the ISO 8601 format in the UTC time zone + (` `*`YYYY`*`-`*`MM`*`-`*`DD`*`T`*`HH`*`:`*`MM`*`:`*`SS`*`.`*`ssssss`*`+`*`HH`*`:`*`MM`*` `). + You can use a wildcard (`*`), for example, `2021-09-29T*`, which + matches an entire day. - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. - """ - max_results: int | None = ... - """ - The maximum number of items to return for this request. To get the next - page of items, make another request with the token returned in the - output. For more information, see - [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). - """ - next_token: str | None = ... - """ - The token returned from a previous paginated request. Pagination - continues from the end of the items returned by the previous request. - """ - filters: list[Filter] | None = ... - """ - One or more filters. + - `image-watermark.source-image-id` - The ID of the AMI to which the + watermark was originally attached. - - `instance-connect-endpoint-id` - The ID of the EC2 Instance Connect - Endpoint. + - `image-watermark.source-image-region` - The Region where the watermark + was originally attached. - - `state` - The state of the EC2 Instance Connect Endpoint - (`create-in-progress` | `create-complete` | `create-failed` | - `delete-in-progress` | `delete-complete` | `delete-failed`). + - `image-watermark.watermark-creation-time` - The date and time the + watermark was attached to the AMI, in the ISO 8601 format in the UTC + time zone + (` `*`YYYY`*`-`*`MM`*`-`*`DD`*`T`*`HH`*`:`*`MM`*`:`*`SS`*`.`*`ssssss`*`+`*`HH`*`:`*`MM`*` `). + You can use a wildcard (`*`), for example, `2021-09-29T*`, which + matches an entire day. - - `subnet-id` - The ID of the subnet in which the EC2 Instance Connect - Endpoint was created. + - `image-watermark.watermark-key` - The watermark identifier, in + `accountId:watermarkName` format (for example, + `123456789012:approvedAmi`). - - `tag`:``{=html} - The key/value combination of a tag assigned to + - `image-type` - The image type (`machine` | `kernel` | `ramdisk`). + + - `instance-type-specification.supported-instance-type` -- The instance + types that are compatible with the AMI, as specified by the AMI owner. + Values can be individual instance types (for example, `t3.micro`) or + wildcard patterns that match multiple instance types (for example, + `t3.*`). + + - `instance-type-specification.unsupported-instance-type` -- The + instance types that are not compatible with the AMI, as specified by + the AMI owner. Values can be individual instance types (for example, + `t3.micro`) or wildcard patterns that match multiple instance types + (for example, `t3.*`). + + - `is-public` - A Boolean that indicates whether the image is public. + + - `kernel-id` - The kernel ID. + + - `manifest-location` - The location of the image manifest. + + - `name` - The name of the AMI (provided during image creation). + + - `owner-alias` - The owner alias (`amazon` | `aws-backup-vault` | + `aws-marketplace`). The valid aliases are defined in an + Amazon-maintained list. This is not the Amazon Web Services account + alias that can be set using the IAM console. We recommend that you use + the **Owner** request parameter instead of this filter. + + - `owner-id` - The Amazon Web Services account ID of the owner. We + recommend that you use the **Owner** request parameter instead of this + filter. + + - `platform` - The platform. The only supported value is `windows`. + + - `product-code` - The product code. + + - `product-code.type` - The type of the product code (`marketplace`). + + - `public-ssm-parameter-name` - The name of a public Systems Manager + parameter associated with the AMI. The parameter must be in a trusted + Amazon Web Services namespace under `aws/service/`. Returns all AMIs + that have ever been associated with the parameter, including previous + versions. + + - `ramdisk-id` - The RAM disk ID. + + - `root-device-name` - The device name of the root device volume (for + example, `/dev/sda1`). + + - `root-device-type` - The type of the root device volume (`ebs` | + `instance-store`). + + - `scan-result.critical-fix-available-since` - The earliest date and + time, in the ISO 8601 format in the UTC time zone + (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix + as available for a `critical` severity finding on the AMI. + + - `scan-result.finding-scan-date` - The date and time, in the ISO 8601 + format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), of the most + recent Amazon Inspector scan of the AMI. + + - `scan-result.high-fix-available-since` - The earliest date and time, + in the ISO 8601 format in the UTC time zone + (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix + as available for a `high` severity finding on the AMI. + + - `scan-result.highest-finding-severity-label` - The highest severity + among the AMI's Amazon Inspector findings, whether or not a fix is + available. The valid values are the following Amazon Inspector + severity levels: + + - `informational` - CVSS score of 0. + + - `low` - CVSS score of 0.1 to 3.9. + + - `medium` - CVSS score of 4.0 to 6.9. + + - `high` - CVSS score of 7.0 to 8.9. + + - `critical` - CVSS score of 9.0 to 10.0. + + - `scan-result.informational-fix-available-since` - The earliest date + and time, in the ISO 8601 format in the UTC time zone + (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix + as available for an `informational` severity finding on the AMI. + + - `scan-result.low-fix-available-since` - The earliest date and time, in + the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), + at which Amazon Inspector reported a fix as available for a `low` + severity finding on the AMI. + + - `scan-result.medium-fix-available-since` - The earliest date and time, + in the ISO 8601 format in the UTC time zone + (YYYY-MM-DDThh:mm:ss.sssZ), at which Amazon Inspector reported a fix + as available for a `medium` severity finding on the AMI. + + - `source-image-id` - The ID of the source AMI from which the AMI was + created. + + - `source-image-region` - The Region of the source AMI. + + - `source-instance-id` - The ID of the instance that the AMI was created + from if the AMI was created using CreateImage. This filter is + applicable only if the AMI was created using + [CreateImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html). + + - `state` - The state of the image (`available` | `pending` | + `failed`). + + - `state-reason-code` - The reason code for the state change. + + - `state-reason-message` - The message for the state change. + + - `sriov-net-support` - A value of `simple` indicates that enhanced + networking with the Intel 82599 VF interface is enabled. + + - `tag:```{=html} - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key `Owner` and the value `TeamA`, specify `tag:Owner` for @@ -5795,27 +8506,21 @@ class DescribeInstanceConnectEndpointsInput(_SerdeShape): to find all resources assigned a tag with a specific key, regardless of the tag value. - - `tag-value` - The value of a tag assigned to the resource. Use this - filter to find all resources that have a tag with a specific value, - regardless of tag key. - - - `vpc-id` - The ID of the VPC in which the EC2 Instance Connect - Endpoint was created. + - `virtualization-type` - The virtualization type (`paravirtual` | + `hvm`). """ - instance_connect_endpoint_ids: list[str] | None = ... - """One or more EC2 Instance Connect Endpoint IDs.""" @dataclass(kw_only=True) -class DescribeInstanceConnectEndpointsOutput(_SerdeShape): - """Dataclass for DescribeInstanceConnectEndpointsOutput structure.""" +class DescribeImagesOutput(_SerdeShape): + """Dataclass for DescribeImagesOutput structure.""" - instance_connect_endpoints: list[Ec2InstanceConnectEndpoint] | None = ... - """Information about the EC2 Instance Connect Endpoints.""" next_token: str | None = ... """ The token to include in another request to get the next page of items. This value is `null` when there are no more items to return. """ + images: list[Image] | None = ... + """Information about the images.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -5825,29 +8530,41 @@ class DescribeInstanceConnectEndpointsOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DescribeInstanceCreditSpecificationsInput(_SerdeShape): - """Dataclass for DescribeInstanceCreditSpecificationsInput structure.""" +class DescribeImageUsageReportEntriesInput(_SerdeShape): + """Dataclass for DescribeImageUsageReportEntriesInput structure.""" - dry_run: bool | None = ... + image_ids: list[str] | None = ... """ - Checks whether you have the required permissions for the operation, - without actually making the request, and provides an error response. If - you have the required permissions, the error response is - `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + The IDs of the images for filtering the report entries. If specified, + only report entries containing these images are returned. + """ + report_ids: list[str] | None = ... + """The IDs of the usage reports.""" + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. """ filters: list[Filter] | None = ... """ The filters. - - `instance-id` - The ID of the instance. - """ - instance_ids: list[str] | None = ... - """ - The instance IDs. + - `account-id` - A 12-digit Amazon Web Services account ID. - Default: Describes all your instances. + - `creation-time` - The time when the report was created, in the ISO + 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for + example, `2025-11-29T11:04:43.305Z`. You can use a wildcard (`*`), for + example, `2025-11-29T*`, which matches an entire day. - Constraints: Maximum 1000 explicitly specified instance IDs. + - `resource-type` - The resource type (`ec2:Instance` | + `ec2:LaunchTemplate`). + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ max_results: int | None = ... """ @@ -5855,27 +8572,63 @@ class DescribeInstanceCreditSpecificationsInput(_SerdeShape): page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ - You cannot specify this parameter and the instance IDs parameter in the - same call. +class DescribeImageUsageReportEntriesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeImageUsageReportEntriesInput`.""" + + image_ids: Sequence[str] | None """ - next_token: str | None = ... + The IDs of the images for filtering the report entries. If specified, + only report entries containing these images are returned. + """ + report_ids: Sequence[str] | None + """The IDs of the usage reports.""" + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `account-id` - A 12-digit Amazon Web Services account ID. + + - `creation-time` - The time when the report was created, in the ISO + 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for + example, `2025-11-29T11:04:43.305Z`. You can use a wildcard (`*`), for + example, `2025-11-29T*`, which matches an entire day. + + - `resource-type` - The resource type (`ec2:Instance` | + `ec2:LaunchTemplate`). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ @dataclass(kw_only=True) -class DescribeInstanceCreditSpecificationsOutput(_SerdeShape): - """Dataclass for DescribeInstanceCreditSpecificationsOutput structure.""" +class DescribeImageUsageReportEntriesOutput(_SerdeShape): + """Dataclass for DescribeImageUsageReportEntriesOutput structure.""" - instance_credit_specifications: list[InstanceCreditSpecification] | None = ... - """Information about the credit option for CPU usage of an instance.""" next_token: str | None = ... """ The token to include in another request to get the next page of items. This value is `null` when there are no more items to return. """ + image_usage_report_entries: list[ImageUsageReportEntry] | None = ... + """The content of the usage reports.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -5885,12 +8638,43 @@ class DescribeInstanceCreditSpecificationsOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DescribeInstanceEventNotificationAttributesInput(_SerdeShape): +class DescribeImageUsageReportsInput(_SerdeShape): + """Dataclass for DescribeImageUsageReportsInput structure.""" + + image_ids: list[str] | None = ... """ - Dataclass for DescribeInstanceEventNotificationAttributesInput - structure. + The IDs of the images for filtering the reports. If specified, only + reports containing these images are returned. + """ + report_ids: list[str] | None = ... + """The IDs of the image usage reports.""" + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. """ + filters: list[Filter] | None = ... + """ + The filters. + + - `creation-time` - The time when the report was created, in the ISO + 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for + example, `2025-11-29T11:04:43.305Z`. You can use a wildcard (`*`), for + example, `2025-11-29T*`, which matches an entire day. + + - `state` - The state of the report (`available` | `pending` | + `error`). + + - `tag:```{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ dry_run: bool | None = ... """ Checks whether you have the required permissions for the action, without @@ -5898,16 +8682,144 @@ class DescribeInstanceEventNotificationAttributesInput(_SerdeShape): the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + +class DescribeImageUsageReportsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeImageUsageReportsInput`.""" + + image_ids: Sequence[str] | None + """ + The IDs of the images for filtering the reports. If specified, only + reports containing these images are returned. + """ + report_ids: Sequence[str] | None + """The IDs of the image usage reports.""" + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `creation-time` - The time when the report was created, in the ISO + 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for + example, `2025-11-29T11:04:43.305Z`. You can use a wildcard (`*`), for + example, `2025-11-29T*`, which matches an entire day. + + - `state` - The state of the report (`available` | `pending` | + `error`). + + - `tag:```{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ @dataclass(kw_only=True) -class DescribeInstanceEventNotificationAttributesOutput(_SerdeShape): +class DescribeImageUsageReportsOutput(_SerdeShape): + """Dataclass for DescribeImageUsageReportsOutput structure.""" + + next_token: str | None = ... """ - Dataclass for DescribeInstanceEventNotificationAttributesOutput - structure. + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + image_usage_reports: list[ImageUsageReport] | None = ... + """The image usage reports.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - instance_tag_attribute: InstanceTagNotificationAttribute | None = ... - """Information about the registered tag keys.""" +@dataclass(kw_only=True) +class DescribeImportImageTasksInput(_SerdeShape): + """Dataclass for DescribeImportImageTasksInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + Filter tasks using the `task-state` filter and one of the following + values: `active`, `completed`, `deleting`, or `deleted`. + """ + import_task_ids: list[str] | None = ... + """The IDs of the import image tasks.""" + max_results: int | None = ... + """The maximum number of results to return in a single call.""" + next_token: str | None = ... + """A token that indicates the next page of results.""" + +class DescribeImportImageTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeImportImageTasksInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + Filter tasks using the `task-state` filter and one of the following + values: `active`, `completed`, `deleting`, or `deleted`. + """ + import_task_ids: Sequence[str] | None + """The IDs of the import image tasks.""" + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """A token that indicates the next page of results.""" + +@dataclass(kw_only=True) +class DescribeImportImageTasksOutput(_SerdeShape): + """Dataclass for DescribeImportImageTasksOutput structure.""" + + import_image_tasks: list[ImportImageTask] | None = ... + """ + A list of zero or more import image tasks that are currently active or + were completed or canceled in the previous 7 days. + """ + next_token: str | None = ... + """ + The token to use to get the next page of results. This value is `null` + when there are no more results to return. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -5917,8 +8829,8 @@ class DescribeInstanceEventNotificationAttributesOutput(_SerdeShape): """ @dataclass(kw_only=True) -class DescribeInstanceEventWindowsInput(_SerdeShape): - """Describe instance event windows by InstanceEventWindow.""" +class DescribeImportSnapshotTasksInput(_SerdeShape): + """Dataclass for DescribeImportSnapshotTasksInput structure.""" dry_run: bool | None = ... """ @@ -5927,110 +8839,1184 @@ class DescribeInstanceEventWindowsInput(_SerdeShape): the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - instance_event_window_ids: list[str] | None = ... - """The IDs of the event windows.""" filters: list[Filter] | None = ... + """The filters.""" + import_task_ids: list[str] | None = ... + """A list of import snapshot task IDs.""" + max_results: int | None = ... """ - One or more filters. + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned `NextToken` + value. + """ + next_token: str | None = ... + """A token that indicates the next page of results.""" - - `dedicated-host-id` - The event windows associated with the specified - Dedicated Host ID. +class DescribeImportSnapshotTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeImportSnapshotTasksInput`.""" - - `event-window-name` - The event windows associated with the specified - names. + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """The filters.""" + import_task_ids: Sequence[str] | None + """A list of import snapshot task IDs.""" + max_results: int | None + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned `NextToken` + value. + """ + next_token: str | None + """A token that indicates the next page of results.""" - - `instance-id` - The event windows associated with the specified +@dataclass(kw_only=True) +class DescribeImportSnapshotTasksOutput(_SerdeShape): + """Dataclass for DescribeImportSnapshotTasksOutput structure.""" + + import_snapshot_tasks: list[ImportSnapshotTask] | None = ... + """ + A list of zero or more import snapshot tasks that are currently active + or were completed or canceled in the previous 7 days. + """ + next_token: str | None = ... + """ + The token to use to get the next page of results. This value is `null` + when there are no more results to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeInstanceAttributeInput(_SerdeShape): + """Dataclass for DescribeInstanceAttributeInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: str | None = ... + """The ID of the instance.""" + attribute: str | None = ... + """ + The instance attribute. + + Note that the `enaSupport` attribute is not supported. + """ + +class DescribeInstanceAttributeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceAttributeInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the instance.""" + attribute: Required[str] + """ + The instance attribute. + + Note that the `enaSupport` attribute is not supported. + """ + +@dataclass(kw_only=True) +class DescribeInstanceAttributeOutput(_SerdeShape): + """Describes an instance attribute.""" + + block_device_mappings: list[InstanceBlockDeviceMapping] | None = ... + """The block device mapping of the instance.""" + disable_api_termination: AttributeBooleanValue | None = ... + """ + Indicates whether termination protection is enabled. If the value is + `true`, you can't terminate the instance using the Amazon EC2 console, + command line tools, or API. + """ + ena_support: AttributeBooleanValue | None = ... + """Indicates whether enhanced networking with ENA is enabled.""" + enclave_options: EnclaveOptions | None = ... + """ + Indicates whether the instance is enabled for Amazon Web Services Nitro + Enclaves. + """ + ebs_optimized: AttributeBooleanValue | None = ... + """Indicates whether the instance is optimized for Amazon EBS I/O.""" + instance_id: str | None = ... + """The ID of the instance.""" + instance_initiated_shutdown_behavior: AttributeValue | None = ... + """ + Indicates whether an instance stops or terminates when you initiate + shutdown from the instance (using the operating system command for + system shutdown). + """ + instance_type: AttributeValue | None = ... + """The instance type.""" + kernel_id: AttributeValue | None = ... + """The kernel ID.""" + product_codes: list[ProductCode] | None = ... + """The product codes.""" + ramdisk_id: AttributeValue | None = ... + """The RAM disk ID.""" + root_device_name: AttributeValue | None = ... + """The device name of the root device volume (for example, `/dev/sda1`).""" + source_dest_check: AttributeBooleanValue | None = ... + """Indicates whether source/destination checks are enabled.""" + sriov_net_support: AttributeValue | None = ... + """ + Indicates whether enhanced networking with the Intel 82599 Virtual + Function interface is enabled. + """ + user_data: AttributeValue | None = ... + """The user data.""" + disable_api_stop: AttributeBooleanValue | None = ... + """Indicates whether stop protection is enabled for the instance.""" + groups: list[GroupIdentifier] | None = ... + """The security groups associated with the instance.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeInstanceConnectEndpointsInput(_SerdeShape): + """Dataclass for DescribeInstanceConnectEndpointsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + filters: list[Filter] | None = ... + """ + One or more filters. + + - `instance-connect-endpoint-id` - The ID of the EC2 Instance Connect + Endpoint. + + - `state` - The state of the EC2 Instance Connect Endpoint + (`create-in-progress` | `create-complete` | `create-failed` | + `delete-in-progress` | `delete-complete` | `delete-failed`). + + - `subnet-id` - The ID of the subnet in which the EC2 Instance Connect + Endpoint was created. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `tag-value` - The value of a tag assigned to the resource. Use this + filter to find all resources that have a tag with a specific value, + regardless of tag key. + + - `vpc-id` - The ID of the VPC in which the EC2 Instance Connect + Endpoint was created. + """ + instance_connect_endpoint_ids: list[str] | None = ... + """One or more EC2 Instance Connect Endpoint IDs.""" + +class DescribeInstanceConnectEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceConnectEndpointsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `instance-connect-endpoint-id` - The ID of the EC2 Instance Connect + Endpoint. + + - `state` - The state of the EC2 Instance Connect Endpoint + (`create-in-progress` | `create-complete` | `create-failed` | + `delete-in-progress` | `delete-complete` | `delete-failed`). + + - `subnet-id` - The ID of the subnet in which the EC2 Instance Connect + Endpoint was created. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `tag-value` - The value of a tag assigned to the resource. Use this + filter to find all resources that have a tag with a specific value, + regardless of tag key. + + - `vpc-id` - The ID of the VPC in which the EC2 Instance Connect + Endpoint was created. + """ + instance_connect_endpoint_ids: Sequence[str] | None + """One or more EC2 Instance Connect Endpoint IDs.""" + +@dataclass(kw_only=True) +class DescribeInstanceConnectEndpointsOutput(_SerdeShape): + """Dataclass for DescribeInstanceConnectEndpointsOutput structure.""" + + instance_connect_endpoints: list[Ec2InstanceConnectEndpoint] | None = ... + """Information about the EC2 Instance Connect Endpoints.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeInstanceCreditSpecificationsInput(_SerdeShape): + """Dataclass for DescribeInstanceCreditSpecificationsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + The filters. + + - `instance-id` - The ID of the instance. + """ + instance_ids: list[str] | None = ... + """ + The instance IDs. + + Default: Describes all your instances. + + Constraints: Maximum 1000 explicitly specified instance IDs. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + You cannot specify this parameter and the instance IDs parameter in the + same call. + """ + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + +class DescribeInstanceCreditSpecificationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceCreditSpecificationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `instance-id` - The ID of the instance. + """ + instance_ids: Sequence[str] | None + """ + The instance IDs. + + Default: Describes all your instances. + + Constraints: Maximum 1000 explicitly specified instance IDs. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + You cannot specify this parameter and the instance IDs parameter in the + same call. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + +@dataclass(kw_only=True) +class DescribeInstanceCreditSpecificationsOutput(_SerdeShape): + """Dataclass for DescribeInstanceCreditSpecificationsOutput structure.""" + + instance_credit_specifications: list[InstanceCreditSpecification] | None = ... + """Information about the credit option for CPU usage of an instance.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeInstanceEventNotificationAttributesInput(_SerdeShape): + """ + Dataclass for DescribeInstanceEventNotificationAttributesInput + structure. + """ + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class DescribeInstanceEventNotificationAttributesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceEventNotificationAttributesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeInstanceEventNotificationAttributesOutput(_SerdeShape): + """ + Dataclass for DescribeInstanceEventNotificationAttributesOutput + structure. + """ + + instance_tag_attribute: InstanceTagNotificationAttribute | None = ... + """Information about the registered tag keys.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeInstanceEventWindowsInput(_SerdeShape): + """Describe instance event windows by InstanceEventWindow.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_event_window_ids: list[str] | None = ... + """The IDs of the event windows.""" + filters: list[Filter] | None = ... + """ + One or more filters. + + - `dedicated-host-id` - The event windows associated with the specified + Dedicated Host ID. + + - `event-window-name` - The event windows associated with the specified + names. + + - `instance-id` - The event windows associated with the specified + instance ID. + + - `instance-tag` - The event windows associated with the specified tag + and value. + + - `instance-tag-key` - The event windows associated with the specified + tag key, regardless of the value. + + - `instance-tag-value` - The event windows associated with the specified + tag value, regardless of the key. + + - `tag:```{=html} - The key/value combination of a tag assigned to + the event window. Use the tag key in the filter name and the tag value + as the filter value. For example, to find all resources that have a + tag with the key `Owner` and the value `CMX`, specify `tag:Owner` for + the filter name and `CMX` for the filter value. + + - `tag-key` - The key of a tag assigned to the event window. Use this + filter to find all event windows that have a tag with a specific key, + regardless of the tag value. + + - `tag-value` - The value of a tag assigned to the event window. Use + this filter to find all event windows that have a tag with a specific + value, regardless of the tag key. + """ + max_results: int | None = ... + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned `NextToken` + value. This value can be between 20 and 500. You cannot specify this + parameter and the event window IDs parameter in the same call. + """ + next_token: str | None = ... + """The token to request the next page of results.""" + +class DescribeInstanceEventWindowsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceEventWindowsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_event_window_ids: Sequence[str] | None + """The IDs of the event windows.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `dedicated-host-id` - The event windows associated with the specified + Dedicated Host ID. + + - `event-window-name` - The event windows associated with the specified + names. + + - `instance-id` - The event windows associated with the specified instance ID. - - `instance-tag` - The event windows associated with the specified tag - and value. + - `instance-tag` - The event windows associated with the specified tag + and value. + + - `instance-tag-key` - The event windows associated with the specified + tag key, regardless of the value. + + - `instance-tag-value` - The event windows associated with the specified + tag value, regardless of the key. + + - `tag:```{=html} - The key/value combination of a tag assigned to + the event window. Use the tag key in the filter name and the tag value + as the filter value. For example, to find all resources that have a + tag with the key `Owner` and the value `CMX`, specify `tag:Owner` for + the filter name and `CMX` for the filter value. + + - `tag-key` - The key of a tag assigned to the event window. Use this + filter to find all event windows that have a tag with a specific key, + regardless of the tag value. + + - `tag-value` - The value of a tag assigned to the event window. Use + this filter to find all event windows that have a tag with a specific + value, regardless of the tag key. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned `NextToken` + value. This value can be between 20 and 500. You cannot specify this + parameter and the event window IDs parameter in the same call. + """ + next_token: str | None + """The token to request the next page of results.""" + +@dataclass(kw_only=True) +class DescribeInstanceEventWindowsOutput(_SerdeShape): + """Dataclass for DescribeInstanceEventWindowsOutput structure.""" + + instance_event_windows: list[InstanceEventWindow] | None = ... + """Information about the event windows.""" + next_token: str | None = ... + """ + The token to use to retrieve the next page of results. This value is + `null` when there are no more results to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeInstanceImageMetadataInput(_SerdeShape): + """Dataclass for DescribeInstanceImageMetadataInput structure.""" + + filters: list[Filter] | None = ... + """ + The filters. + + - `availability-zone` - The name of the Availability Zone (for example, + `us-west-2a`) or Local Zone (for example, `us-west-2-lax-1b`) of the + instance. + + - `instance-id` - The ID of the instance. + + - `image-allowed` - A Boolean that indicates whether the image meets the + criteria specified for Allowed AMIs. + + - `instance-state-name` - The state of the instance (`pending` | + `running` | `shutting-down` | `terminated` | `stopping` | + `stopped`). + + - `instance-type` - The type of instance (for example, `t3.micro`). + + - `launch-time` - The time when the instance was launched, in the ISO + 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for + example, `2023-09-29T11:04:43.305Z`. You can use a wildcard (`*`), for + example, `2023-09-29T*`, which matches an entire day. + + - `owner-alias` - The owner alias (`amazon` | `aws-marketplace` | + `aws-backup-vault`). The valid aliases are defined in an + Amazon-maintained list. This is not the Amazon Web Services account + alias that can be set using the IAM console. We recommend that you use + the `Owner` request parameter instead of this filter. + + - `owner-id` - The Amazon Web Services account ID of the owner. We + recommend that you use the `Owner` request parameter instead of this + filter. + + - `tag:```{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `zone-id` - The ID of the Availability Zone (for example, `usw2-az2`) + or Local Zone (for example, `usw2-lax1-az1`) of the instance. + """ + instance_ids: list[str] | None = ... + """ + The instance IDs. + + If you don't specify an instance ID or filters, the output includes + information for all instances. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + Default: 1000 + """ + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class DescribeInstanceImageMetadataInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceImageMetadataInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone` - The name of the Availability Zone (for example, + `us-west-2a`) or Local Zone (for example, `us-west-2-lax-1b`) of the + instance. + + - `instance-id` - The ID of the instance. + + - `image-allowed` - A Boolean that indicates whether the image meets the + criteria specified for Allowed AMIs. + + - `instance-state-name` - The state of the instance (`pending` | + `running` | `shutting-down` | `terminated` | `stopping` | + `stopped`). + + - `instance-type` - The type of instance (for example, `t3.micro`). + + - `launch-time` - The time when the instance was launched, in the ISO + 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for + example, `2023-09-29T11:04:43.305Z`. You can use a wildcard (`*`), for + example, `2023-09-29T*`, which matches an entire day. + + - `owner-alias` - The owner alias (`amazon` | `aws-marketplace` | + `aws-backup-vault`). The valid aliases are defined in an + Amazon-maintained list. This is not the Amazon Web Services account + alias that can be set using the IAM console. We recommend that you use + the `Owner` request parameter instead of this filter. + + - `owner-id` - The Amazon Web Services account ID of the owner. We + recommend that you use the `Owner` request parameter instead of this + filter. + + - `tag:```{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `zone-id` - The ID of the Availability Zone (for example, `usw2-az2`) + or Local Zone (for example, `usw2-lax1-az1`) of the instance. + """ + instance_ids: Sequence[str] | None + """ + The instance IDs. + + If you don't specify an instance ID or filters, the output includes + information for all instances. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + Default: 1000 + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeInstanceImageMetadataOutput(_SerdeShape): + """Dataclass for DescribeInstanceImageMetadataOutput structure.""" + + instance_image_metadata: list[InstanceImageMetadata] | None = ... + """Information about the instance and the AMI used to launch the instance.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeInstancesInput(_SerdeShape): + """Dataclass for DescribeInstancesInput structure.""" + + instance_ids: list[str] | None = ... + """ + The instance IDs. + + Default: Describes all your instances. + """ + include_managed_resources: bool | None = ... + """ + Indicates whether to include managed resources in the output. If this + parameter is set to `true`, the output includes resources that are + managed by Amazon Web Services services, even if managed resource + visibility is set to hidden. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + The filters. + + - `affinity` - The affinity setting for an instance running on a + Dedicated Host (`default` | `host`). + + - `architecture` - The instance architecture (`i386` | `x86_64` | + `arm64`). + + - `availability-zone` - The Availability Zone of the instance. + + - `availability-zone-id` - The ID of the Availability Zone of the + instance. + + - `block-device-mapping.attach-time` - The attach time for an EBS volume + mapped to the instance, for example, `2022-09-15T17:15:20.000Z`. + + - `block-device-mapping.delete-on-termination` - A Boolean that + indicates whether the EBS volume is deleted on instance termination. + + - `block-device-mapping.device-name` - The device name specified in the + block device mapping (for example, `/dev/sdh` or `xvdh`). + + - `block-device-mapping.status` - The status for the EBS volume + (`attaching` | `attached` | `detaching` | `detached`). + + - `block-device-mapping.volume-id` - The volume ID of the EBS volume. + + - `boot-mode` - The boot mode that was specified by the AMI + (`legacy-bios` | `uefi` | `uefi-preferred`). + + - `capacity-reservation-id` - The ID of the Capacity Reservation into + which the instance was launched. + + - `capacity-reservation-specification.capacity-reservation-preference` - + The instance's Capacity Reservation preference (`open` | `none`). + + - `capacity-reservation-specification.capacity-reservation-target.capacity-reservation-id` - + The ID of the targeted Capacity Reservation. + + - `capacity-reservation-specification.capacity-reservation-target.capacity-reservation-resource-group-arn` - + The ARN of the targeted Capacity Reservation group. + + - `client-token` - The idempotency token you provided when you launched + the instance. + + - `current-instance-boot-mode` - The boot mode that is used to launch + the instance at launch or start (`legacy-bios` | `uefi`). + + - `dns-name` - The public DNS name of the instance. + + - `ebs-optimized` - A Boolean that indicates whether the instance is + optimized for Amazon EBS I/O. + + - `ena-support` - A Boolean that indicates whether the instance is + enabled for enhanced networking with ENA. + + - `enclave-options.enabled` - A Boolean that indicates whether the + instance is enabled for Amazon Web Services Nitro Enclaves. + + - `hibernation-options.configured` - A Boolean that indicates whether + the instance is enabled for hibernation. A value of `true` means that + the instance is enabled for hibernation. + + - `host-id` - The ID of the Dedicated Host on which the instance is + running, if applicable. + + - `hypervisor` - The hypervisor type of the instance (`ovm` | `xen`). + The value `xen` is used for both Xen and Nitro hypervisors. + + - `iam-instance-profile.arn` - The instance profile associated with the + instance. Specified as an ARN. + + - `iam-instance-profile.id` - The instance profile associated with the + instance. Specified as an ID. + + - `image-id` - The ID of the image used to launch the instance. + + - `instance-id` - The ID of the instance. + + - `instance-lifecycle` - Indicates whether this is a Spot Instance, a + Scheduled Instance, or a Capacity Block (`spot` | `scheduled` | + `capacity-block`). + + - `instance-state-code` - The state of the instance, as a 16-bit + unsigned integer. The high byte is used for internal purposes and + should be ignored. The low byte is set based on the state represented. + The valid values are: 0 (pending), 16 (running), 32 (shutting-down), + 48 (terminated), 64 (stopping), and 80 (stopped). + + - `instance-state-name` - The state of the instance (`pending` | + `running` | `shutting-down` | `terminated` | `stopping` | + `stopped`). + + - `instance-type` - The type of instance (for example, `t2.micro`). + + - `instance.group-id` - The ID of the security group for the instance. + + - `instance.group-name` - The name of the security group for the + instance. + + - `ip-address` - The public IPv4 address of the instance. + + - `ipv6-address` - The IPv6 address of the instance. + + - `kernel-id` - The kernel ID. + + - `key-name` - The name of the key pair used when the instance was + launched. + + - `launch-index` - When launching multiple instances, this is the index + for the instance in the launch group (for example, 0, 1, 2, and so + on). + + - `launch-time` - The time when the instance was launched, in the ISO + 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for + example, `2021-09-29T11:04:43.305Z`. You can use a wildcard (`*`), for + example, `2021-09-29T*`, which matches an entire day. + + - `maintenance-options.auto-recovery` - The current automatic recovery + behavior of the instance (`disabled` | `default`). + + - `metadata-options.http-endpoint` - The status of access to the HTTP + metadata endpoint on your instance (`enabled` | `disabled`) + + - `metadata-options.http-protocol-ipv4` - Indicates whether the IPv4 + endpoint is enabled (`disabled` | `enabled`). + + - `metadata-options.http-protocol-ipv6` - Indicates whether the IPv6 + endpoint is enabled (`disabled` | `enabled`). + + - `metadata-options.http-put-response-hop-limit` - The HTTP metadata + request put response hop limit (integer, possible values `1` to `64`) + + - `metadata-options.http-tokens` - The metadata request authorization + state (`optional` | `required`) + + - `metadata-options.instance-metadata-tags` - The status of access to + instance tags from the instance metadata (`enabled` | `disabled`) + + - `metadata-options.state` - The state of the metadata option changes + (`pending` | `applied`). + + - `monitoring-state` - Indicates whether detailed monitoring is enabled + (`disabled` | `enabled`). + + - `network-interface.addresses.association.allocation-id` - The + allocation ID. + + - `network-interface.addresses.association.association-id` - The + association ID. + + - `network-interface.addresses.association.carrier-ip` - The carrier IP + address. + + - `network-interface.addresses.association.customer-owned-ip` - The + customer-owned IP address. + + - `network-interface.addresses.association.ip-owner-id` - The owner ID + of the private IPv4 address associated with the network interface. + + - `network-interface.addresses.association.public-dns-name` - The public + DNS name. + + - `network-interface.addresses.association.public-ip` - The ID of the + association of an Elastic IP address (IPv4) with a network interface. + + - `network-interface.addresses.primary` - Specifies whether the IPv4 + address of the network interface is the primary private IPv4 address. + + - `network-interface.addresses.private-dns-name` - The private DNS name. + + - `network-interface.addresses.private-ip-address` - The private IPv4 + address associated with the network interface. + + - `network-interface.association.allocation-id` - The allocation ID + returned when you allocated the Elastic IP address (IPv4) for your + network interface. + + - `network-interface.association.association-id` - The association ID + returned when the network interface was associated with an IPv4 + address. + + - `network-interface.association.carrier-ip` - The customer-owned IP + address. + + - `network-interface.association.customer-owned-ip` - The customer-owned + IP address. + + - `network-interface.association.ip-owner-id` - The owner of the Elastic + IP address (IPv4) associated with the network interface. + + - `network-interface.association.public-dns-name` - The public DNS name. + + - `network-interface.association.public-ip` - The address of the Elastic + IP address (IPv4) bound to the network interface. + + - `network-interface.attachment.attach-time` - The time that the network + interface was attached to an instance. + + - `network-interface.attachment.attachment-id` - The ID of the interface + attachment. + + - `network-interface.attachment.delete-on-termination` - Specifies + whether the attachment is deleted when an instance is terminated. + + - `network-interface.attachment.device-index` - The device index to + which the network interface is attached. + + - `network-interface.attachment.instance-id` - The ID of the instance to + which the network interface is attached. + + - `network-interface.attachment.instance-owner-id` - The owner ID of the + instance to which the network interface is attached. + + - `network-interface.attachment.network-card-index` - The index of the + network card. + + - `network-interface.attachment.status` - The status of the attachment + (`attaching` | `attached` | `detaching` | `detached`). + + - `network-interface.availability-zone` - The Availability Zone for the + network interface. + + - `network-interface.deny-all-igw-traffic` - A Boolean that indicates + whether a network interface with an IPv6 address is unreachable from + the public internet. + + - `network-interface.description` - The description of the network + interface. + + - `network-interface.group-id` - The ID of a security group associated + with the network interface. + + - `network-interface.group-name` - The name of a security group + associated with the network interface. + + - `network-interface.ipv4-prefixes.ipv4-prefix` - The IPv4 prefixes that + are assigned to the network interface. + + - `network-interface.ipv6-address` - The IPv6 address associated with + the network interface. + + - `network-interface.ipv6-addresses.ipv6-address` - The IPv6 address + associated with the network interface. + + - `network-interface.ipv6-addresses.is-primary-ipv6` - A Boolean that + indicates whether this is the primary IPv6 address. + + - `network-interface.ipv6-native` - A Boolean that indicates whether + this is an IPv6 only network interface. + + - `network-interface.ipv6-prefixes.ipv6-prefix` - The IPv6 prefix + assigned to the network interface. + + - `network-interface.mac-address` - The MAC address of the network + interface. + + - `network-interface.network-interface-id` - The ID of the network + interface. + + - `network-interface.operator.managed` - A Boolean that indicates + whether the instance has a managed network interface. + + - `network-interface.operator.principal` - The principal that manages + the network interface. Only valid for instances with managed network + interfaces, where `managed` is `true`. + + - `network-interface.outpost-arn` - The ARN of the Outpost. + + - `network-interface.owner-id` - The ID of the owner of the network + interface. + + - `network-interface.private-dns-name` - The private DNS name of the + network interface. + + - `network-interface.private-ip-address` - The private IPv4 address. + + - `network-interface.public-dns-name` - The public DNS name. + + - `network-interface.requester-id` - The requester ID for the network + interface. + + - `network-interface.requester-managed` - Indicates whether the network + interface is being managed by Amazon Web Services. + + - `network-interface.status` - The status of the network interface + (`available`) | `in-use`). + + - `network-interface.source-dest-check` - Whether the network interface + performs source/destination checking. A value of `true` means that + checking is enabled, and `false` means that checking is disabled. The + value must be `false` for the network interface to perform network + address translation (NAT) in your VPC. + + - `network-interface.subnet-id` - The ID of the subnet for the network + interface. + + - `network-interface.tag-key` - The key of a tag assigned to the network + interface. + + - `network-interface.tag-value` - The value of a tag assigned to the + network interface. + + - `network-interface.vpc-id` - The ID of the VPC for the network + interface. + + - `network-performance-options.bandwidth-weighting` - Where the + performance boost is applied, if applicable. Valid values: `default`, + `vpc-1`, `ebs-1`. + + - `operator.managed` - A Boolean that indicates whether this is a + managed instance. + + - `operator.principal` - The principal that manages the instance. Only + valid for managed instances, where `managed` is `true`. + + - `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost. + + - `owner-id` - The Amazon Web Services account ID of the instance owner. + + - `placement-group-name` - The name of the placement group for the + instance. + + - `placement-partition-number` - The partition in which the instance is + located. + + - `platform` - The platform. To list only Windows instances, use + `windows`. + + - `platform-details` - The platform (`Linux/UNIX` | + `Red Hat BYOL Linux` | ` Red Hat Enterprise Linux` | + `Red Hat Enterprise Linux with HA` | + `Red Hat Enterprise Linux with High Availability` | + `Red Hat Enterprise Linux with SQL Server Standard and HA` | + `Red Hat Enterprise Linux with SQL Server Enterprise and HA` | + `Red Hat Enterprise Linux with SQL Server Standard` | + `Red Hat Enterprise Linux with SQL Server Web` | + `Red Hat Enterprise Linux with SQL Server Enterprise` | + `SQL Server Enterprise` | `SQL Server Standard` | `SQL Server Web` + | `SUSE Linux` | `Ubuntu Pro` | `Windows` | `Windows BYOL` | + `Windows with SQL Server Enterprise` | + `Windows with SQL Server Standard` | `Windows with SQL Server Web`). + + - `private-dns-name` - The private IPv4 DNS name of the instance. - - `instance-tag-key` - The event windows associated with the specified - tag key, regardless of the value. + - `private-dns-name-options.enable-resource-name-dns-a-record` - A + Boolean that indicates whether to respond to DNS queries for instance + hostnames with DNS A records. - - `instance-tag-value` - The event windows associated with the specified - tag value, regardless of the key. + - `private-dns-name-options.enable-resource-name-dns-aaaa-record` - A + Boolean that indicates whether to respond to DNS queries for instance + hostnames with DNS AAAA records. - - `tag:```{=html} - The key/value combination of a tag assigned to - the event window. Use the tag key in the filter name and the tag value - as the filter value. For example, to find all resources that have a - tag with the key `Owner` and the value `CMX`, specify `tag:Owner` for - the filter name and `CMX` for the filter value. + - `private-dns-name-options.hostname-type` - The type of hostname + (`ip-name` | `resource-name`). - - `tag-key` - The key of a tag assigned to the event window. Use this - filter to find all event windows that have a tag with a specific key, - regardless of the tag value. + - `private-ip-address` - The private IPv4 address of the instance. This + can only be used to filter by the primary IP address of the network + interface attached to the instance. To filter by additional IP + addresses assigned to the network interface, use the filter + `network-interface.addresses.private-ip-address`. - - `tag-value` - The value of a tag assigned to the event window. Use - this filter to find all event windows that have a tag with a specific - value, regardless of the tag key. - """ - max_results: int | None = ... - """ - The maximum number of results to return in a single call. To retrieve - the remaining results, make another call with the returned `NextToken` - value. This value can be between 20 and 500. You cannot specify this - parameter and the event window IDs parameter in the same call. - """ - next_token: str | None = ... - """The token to request the next page of results.""" + - `product-code` - The product code associated with the AMI used to + launch the instance. -@dataclass(kw_only=True) -class DescribeInstanceEventWindowsOutput(_SerdeShape): - """Dataclass for DescribeInstanceEventWindowsOutput structure.""" + - `product-code.type` - The type of product code (`devpay` | + `marketplace`). - instance_event_windows: list[InstanceEventWindow] | None = ... - """Information about the event windows.""" - next_token: str | None = ... - """ - The token to use to retrieve the next page of results. This value is - `null` when there are no more results to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `ramdisk-id` - The RAM disk ID. -@dataclass(kw_only=True) -class DescribeInstanceImageMetadataInput(_SerdeShape): - """Dataclass for DescribeInstanceImageMetadataInput structure.""" + - `reason` - The reason for the current state of the instance (for + example, shows \"User Initiated [date]\" when you stop or terminate + the instance). Similar to the state-reason-code filter. - filters: list[Filter] | None = ... - """ - The filters. + - `requester-id` - The ID of the entity that launched the instance on + your behalf (for example, Amazon Web Services Management Console, Auto + Scaling, and so on). - - `availability-zone` - The name of the Availability Zone (for example, - `us-west-2a`) or Local Zone (for example, `us-west-2-lax-1b`) of the - instance. + - `reservation-id` - The ID of the instance's reservation. A + reservation ID is created any time you launch an instance. A + reservation ID has a one-to-one relationship with an instance launch + request, but can be associated with more than one instance if you + launch multiple instances using the same launch request. For example, + if you launch one instance, you get one reservation ID. If you launch + ten instances using the same launch request, you also get one + reservation ID. - - `instance-id` - The ID of the instance. + - `root-device-name` - The device name of the root device volume (for + example, `/dev/sda1`). - - `image-allowed` - A Boolean that indicates whether the image meets the - criteria specified for Allowed AMIs. + - `root-device-type` - The type of the root device volume (`ebs` | + `instance-store`). - - `instance-state-name` - The state of the instance (`pending` | - `running` | `shutting-down` | `terminated` | `stopping` | - `stopped`). + - `source-dest-check` - Indicates whether the instance performs + source/destination checking. A value of `true` means that checking is + enabled, and `false` means that checking is disabled. The value must + be `false` for the instance to perform network address translation + (NAT) in your VPC. - - `instance-type` - The type of instance (for example, `t3.micro`). + - `spot-instance-request-id` - The ID of the Spot Instance request. - - `launch-time` - The time when the instance was launched, in the ISO - 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for - example, `2023-09-29T11:04:43.305Z`. You can use a wildcard (`*`), for - example, `2023-09-29T*`, which matches an entire day. + - `state-reason-code` - The reason code for the state change. - - `owner-alias` - The owner alias (`amazon` | `aws-marketplace` | - `aws-backup-vault`). The valid aliases are defined in an - Amazon-maintained list. This is not the Amazon Web Services account - alias that can be set using the IAM console. We recommend that you use - the `Owner` request parameter instead of this filter. + - `state-reason-message` - A message that describes the state change. - - `owner-id` - The Amazon Web Services account ID of the owner. We - recommend that you use the `Owner` request parameter instead of this - filter. + - `subnet-id` - The ID of the subnet for the instance. - `tag:```{=html} - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as @@ -6039,85 +10025,72 @@ class DescribeInstanceImageMetadataInput(_SerdeShape): the filter name and `TeamA` for the filter value. - `tag-key` - The key of a tag assigned to the resource. Use this filter - to find all resources assigned a tag with a specific key, regardless + to find all resources that have a tag with a specific key, regardless of the tag value. - - `zone-id` - The ID of the Availability Zone (for example, `usw2-az2`) - or Local Zone (for example, `usw2-lax1-az1`) of the instance. - """ - instance_ids: list[str] | None = ... - """ - The instance IDs. + - `tenancy` - The tenancy of an instance (`dedicated` | `default` | + `host`). - If you don't specify an instance ID or filters, the output includes - information for all instances. - """ - max_results: int | None = ... - """ - The maximum number of items to return for this request. To get the next - page of items, make another request with the token returned in the - output. For more information, see - [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + - `tpm-support` - Indicates if the instance is configured for NitroTPM + support (`v2.0`). - Default: 1000 + - `usage-operation` - The usage operation value for the instance + (`RunInstances` | `RunInstances:00g0` | `RunInstances:0010` | + `RunInstances:1010` | `RunInstances:1014` | `RunInstances:1110` | + `RunInstances:0014` | `RunInstances:0210` | `RunInstances:0110` | + `RunInstances:0100` | `RunInstances:0004` | `RunInstances:0200` | + `RunInstances:000g` | `RunInstances:0g00` | `RunInstances:0002` | + `RunInstances:0800` | `RunInstances:0102` | `RunInstances:0006` | + `RunInstances:0202`). + + - `usage-operation-update-time` - The time that the usage operation was + last updated, for example, `2022-09-15T17:15:20.000Z`. + + - `virtualization-type` - The virtualization type of the instance + (`paravirtual` | `hvm`). + + - `vpc-id` - The ID of the VPC that the instance is running in. """ next_token: str | None = ... """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + max_results: int | None = ... """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). -@dataclass(kw_only=True) -class DescribeInstanceImageMetadataOutput(_SerdeShape): - """Dataclass for DescribeInstanceImageMetadataOutput structure.""" - - instance_image_metadata: list[InstanceImageMetadata] | None = ... - """Information about the instance and the AMI used to launch the instance.""" - next_token: str | None = ... - """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + You cannot specify this parameter and the instance IDs parameter in the + same request. """ -@dataclass(kw_only=True) -class DescribeInstancesInput(_SerdeShape): - """Dataclass for DescribeInstancesInput structure.""" +class DescribeInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstancesInput`.""" - instance_ids: list[str] | None = ... + instance_ids: Sequence[str] | None """ The instance IDs. Default: Describes all your instances. """ - include_managed_resources: bool | None = ... + include_managed_resources: bool | None """ Indicates whether to include managed resources in the output. If this parameter is set to `true`, the output includes resources that are managed by Amazon Web Services services, even if managed resource visibility is set to hidden. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. @@ -6559,12 +10532,12 @@ class DescribeInstancesInput(_SerdeShape): - `vpc-id` - The ID of the VPC that the instance is running in. """ - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the @@ -6657,3 +10630,66 @@ class DescribeInstanceSqlHaHistoryStatesInput(_SerdeShape): the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ + +class DescribeInstanceSqlHaHistoryStatesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceSqlHaHistoryStatesInput`.""" + + instance_ids: Sequence[str] | None + """ + The IDs of the SQL Server High Availability instances to describe. If + omitted, the API returns historical states for all SQL Server High + Availability instances. + """ + start_time: datetime | None + """ + The start data and time of the period for which to get the historical + SQL Server High Availability states. If omitted, the API returns all + available historical states. + + Timezone: UTC + + Format: `YYYY-MM-DDThh:mm:ss.sssZ` + """ + end_time: datetime | None + """ + The end data and time of the period for which to get historical SQL + Server High Availability states. If omitted, the API returns historical + states up to the current date and time. + + Timezone: UTC + + Format: `YYYY-MM-DDThh:mm:ss.sssZ` + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the returned `nextToken` value. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters to apply to the results. Supported filters include: + + - `tag:```{=html} - The tag key and value pair assigned to the + instance. For example, to find all instances tagged with + `Owner:TeamA`, specify `tag:Owner` for the filter name and `TeamA` for + the filter value. + + - `tag-key` - The tag key assigned to the instance. + + - `haStatus` - The SQL Server High Availability status of the SQL Server + High Availability instance (`processing` | `active` | `standby` | + `invalid`). + + - `sqlServerLicenseUsage` - The license type for the SQL Server license + (`full` | `waived`). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_4.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_04.pyi similarity index 59% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_4.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_04.pyi index 696e716b0..9556ed776 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_4.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_04.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -17,6 +19,7 @@ from ..models import ( ConnectionNotification, CreateVolumePermission, Filter, + FilterDict, GroupIdentifier, HistoryRecord, InstanceStatus, @@ -79,6 +82,7 @@ from ..models import ( ScheduledInstance, ScheduledInstanceAvailability, ScheduledInstanceRecurrenceRequest, + ScheduledInstanceRecurrenceRequestDict, SecondaryInterface, SecondaryNetwork, SecondarySubnet, @@ -90,7 +94,9 @@ from ..models import ( ServiceDetail, ServiceLinkVirtualInterface, SlotDateTimeRangeRequest, + SlotDateTimeRangeRequestDict, SlotStartTimeRangeRequest, + SlotStartTimeRangeRequestDict, Snapshot, SnapshotTierStatus, SpotDatafeedSubscription, @@ -206,6 +212,49 @@ class DescribeInstanceSqlHaStatesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeInstanceSqlHaStatesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceSqlHaStatesInput`.""" + + instance_ids: Sequence[str] | None + """ + The IDs of the SQL Server High Availability instances to describe. If + omitted, the API returns SQL Server High Availability states for all SQL + Server High Availability instances. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the returned `nextToken` value. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters to apply to the results. Supported filters include: + + - `tag:```{=html} - The tag key and value pair assigned to the + instance. For example, to find all instances tagged with + `Owner:TeamA`, specify `tag:Owner` for the filter name and `TeamA` for + the filter value. + + - `tag-key` - The tag key assigned to the instance. + + - `haStatus` - The SQL Server High Availability status of the SQL Server + High Availability instance (`processing` | `active` | `standby` | + `invalid`). + + - `sqlServerLicenseUsage` - The license type for the SQL Server license + (`full` | `waived`). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeInstanceSqlHaStatesOutput(_SerdeShape): """Dataclass for DescribeInstanceSqlHaStatesOutput structure.""" @@ -341,6 +390,121 @@ class DescribeInstanceStatusInput(_SerdeShape): Default: `false` """ +class DescribeInstanceStatusInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceStatusInput`.""" + + instance_ids: Sequence[str] | None + """ + The instance IDs. + + Default: Describes all your instances. + + Constraints: Maximum 100 explicitly specified instance IDs. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + You cannot specify this parameter and the instance IDs parameter in the + same request. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + include_managed_resources: bool | None + """ + Indicates whether to include managed resources in the output. If this + parameter is set to `true`, the output includes resources that are + managed by Amazon Web Services services, even if managed resource + visibility is set to hidden. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone` - The Availability Zone of the instance. + + - `availability-zone-id` - The ID of the Availability Zone of the + instance. + + - `event.code` - The code for the scheduled event (`instance-reboot` | + `system-reboot` | `system-maintenance` | `instance-retirement` | + `instance-stop`). + + - `event.description` - A description of the event. + + - `event.instance-event-id` - The ID of the event whose date and time + you are modifying. + + - `event.not-after` - The latest end time for the scheduled event (for + example, `2014-09-15T17:15:20.000Z`). + + - `event.not-before` - The earliest start time for the scheduled event + (for example, `2014-09-15T17:15:20.000Z`). + + - `event.not-before-deadline` - The deadline for starting the event (for + example, `2014-09-15T17:15:20.000Z`). + + - `instance-state-code` - The code for the instance state, as a 16-bit + unsigned integer. The high byte is used for internal purposes and + should be ignored. The low byte is set based on the state represented. + The valid values are 0 (pending), 16 (running), 32 (shutting-down), 48 + (terminated), 64 (stopping), and 80 (stopped). + + - `instance-state-name` - The state of the instance (`pending` | + `running` | `shutting-down` | `terminated` | `stopping` | + `stopped`). + + - `instance-status.reachability` - Filters on instance status where the + name is `reachability` (`passed` | `failed` | `initializing` | + `insufficient-data`). + + - `instance-status.status` - The status of the instance (`ok` | + `impaired` | `initializing` | `insufficient-data` | + `not-applicable`). + + - `operator.managed` - A Boolean that indicates whether this is a + managed instance. + + - `operator.principal` - The principal that manages the instance. Only + valid for managed instances, where `managed` is `true`. + + - `system-status.reachability` - Filters on system status where the name + is `reachability` (`passed` | `failed` | `initializing` | + `insufficient-data`). + + - `system-status.status` - The system status of the instance (`ok` | + `impaired` | `initializing` | `insufficient-data` | + `not-applicable`). + + - `attached-ebs-status.status` - The status of the attached EBS volume + for the instance (`ok` | `impaired` | `initializing` | + `insufficient-data` | `not-applicable`). + + - `application-status.status` - The application status of the instance + (`ok` | `impaired` | `initializing` | `insufficient-data` | + `not-applicable`). + """ + include_all_instances: bool | None + """ + When `true`, includes the health status for all instances. When `false`, + includes the health status for running instances only. + + Default: `false` + """ + @dataclass(kw_only=True) class DescribeInstanceStatusOutput(_SerdeShape): """Dataclass for DescribeInstanceStatusOutput structure.""" @@ -419,6 +583,64 @@ class DescribeInstanceTopologyInput(_SerdeShape): or Local Zone (for example, `usw2-lax1-az1`) that the instance is in. """ +class DescribeInstanceTopologyInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceTopologyInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + You can't specify this parameter and the instance IDs parameter in the + same request. + + Default: `20` + """ + instance_ids: Sequence[str] | None + """ + The instance IDs. + + Default: Describes all your instances. + + Constraints: Maximum 100 explicitly specified instance IDs. + """ + group_names: Sequence[str] | None + """ + The name of the placement group that each instance is in. + + Constraints: Maximum 100 explicitly specified placement group names. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone` - The name of the Availability Zone (for example, + `us-west-2a`) or Local Zone (for example, `us-west-2-lax-1b`) that the + instance is in. + + - `instance-type` - The instance type (for example, `p4d.24xlarge`) or + instance family (for example, `p4d*`). You can use the `*` wildcard to + match zero or more characters, or the `?` wildcard to match zero or + one character. + + - `zone-id` - The ID of the Availability Zone (for example, `usw2-az2`) + or Local Zone (for example, `usw2-lax1-az1`) that the instance is in. + """ + @dataclass(kw_only=True) class DescribeInstanceTopologyOutput(_SerdeShape): """Dataclass for DescribeInstanceTopologyOutput structure.""" @@ -491,6 +713,58 @@ class DescribeInstanceTypeOfferingsInput(_SerdeShape): continues from the end of the items returned by the previous request. """ +class DescribeInstanceTypeOfferingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceTypeOfferingsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + location_type: str | None + """ + The location type. + + - `availability-zone` - The Availability Zone. When you specify a + location filter, it must be an Availability Zone for the current + Region. + + - `availability-zone-id` - The AZ ID. When you specify a location + filter, it must be an AZ ID for the current Region. + + - `outpost` - The Outpost ARN. When you specify a location filter, it + must be an Outpost ARN for the current Region. + + - `region` - The current Region. If you specify a location filter, it + must match the current Region. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. Filter names and values are case-sensitive. + + - `instance-type` - The instance type. For a list of possible values, + see + [Instance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Instance.html). + + - `location` - The location. For a list of possible identifiers, see + [Regions and + Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + @dataclass(kw_only=True) class DescribeInstanceTypeOfferingsOutput(_SerdeShape): """Dataclass for DescribeInstanceTypeOfferingsOutput structure.""" @@ -721,23 +995,233 @@ class DescribeInstanceTypesInput(_SerdeShape): `false`. """ -@dataclass(kw_only=True) -class DescribeInstanceTypesOutput(_SerdeShape): - """Dataclass for DescribeInstanceTypesOutput structure.""" +class DescribeInstanceTypesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInstanceTypesInput`.""" - instance_types: list[InstanceTypeInfo] | None = ... - """The instance type.""" - next_token: str | None = ... - """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. + dry_run: bool | None """ - response_metadata: ResponseMetadata = ... + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + instance_types: Sequence[str] | None + """The instance types.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. Filter names and values are case-sensitive. + + - `auto-recovery-supported` - Indicates whether Amazon CloudWatch action + based recovery is supported (`true` | `false`). + + - `bare-metal` - Indicates whether it is a bare metal instance type + (`true` | `false`). + + - `burstable-performance-supported` - Indicates whether the instance + type is a burstable performance T instance type (`true` | `false`). + + - `current-generation` - Indicates whether this instance type is the + latest generation instance type of an instance family (`true` | + `false`). + + - `dedicated-hosts-supported` - Indicates whether the instance type + supports Dedicated Hosts. (`true` | `false`) + + - `ebs-info.attachment-limit-type` - The type of Amazon EBS volume + attachment limit (`shared` | `dedicated`). + + - `ebs-info.maximum-ebs-attachments` - The maximum number of Amazon EBS + volumes that can be attached to the instance type. + + - `ebs-info.ebs-optimized-info.baseline-bandwidth-in-mbps` - The + baseline bandwidth performance for an EBS-optimized instance type, in + Mbps. + + - `ebs-info.ebs-optimized-info.baseline-iops` - The baseline + input/output storage operations per second for an EBS-optimized + instance type. + + - `ebs-info.ebs-optimized-info.baseline-throughput-in-mbps` - The + baseline throughput performance for an EBS-optimized instance type, in + MB/s. + + - `ebs-info.ebs-optimized-info.maximum-bandwidth-in-mbps` - The maximum + bandwidth performance for an EBS-optimized instance type, in Mbps. + + - `ebs-info.ebs-optimized-info.maximum-iops` - The maximum input/output + storage operations per second for an EBS-optimized instance type. + + - `ebs-info.ebs-optimized-info.maximum-throughput-in-mbps` - The maximum + throughput performance for an EBS-optimized instance type, in MB/s. + + - `ebs-info.ebs-optimized-support` - Indicates whether the instance type + is EBS-optimized (`supported` | `unsupported` | `default`). + + - `ebs-info.encryption-support` - Indicates whether EBS encryption is + supported (`supported` | `unsupported`). + + - `ebs-info.nvme-support` - Indicates whether non-volatile memory + express (NVMe) is supported for EBS volumes (`required` | `supported` + | `unsupported`). + + - `free-tier-eligible` - A Boolean that indicates whether this instance + type can be used under the Amazon Web Services Free Tier (`true` | + `false`). + + - `hibernation-supported` - Indicates whether On-Demand hibernation is + supported (`true` | `false`). + + - `hypervisor` - The hypervisor (`nitro` | `xen`). + + - `instance-storage-info.disk.count` - The number of local disks. + + - `instance-storage-info.disk.size-in-gb` - The storage size of each + instance storage disk, in GB. + + - `instance-storage-info.disk.type` - The storage technology for the + local instance storage disks (`hdd` | `ssd`). + + - `instance-storage-info.encryption-support` - Indicates whether data is + encrypted at rest (`required` | `supported` | `unsupported`). + + - `instance-storage-info.nvme-support` - Indicates whether non-volatile + memory express (NVMe) is supported for instance store (`required` | + `supported` | `unsupported`). + + - `instance-storage-info.total-size-in-gb` - The total amount of storage + available from all local instance storage, in GB. + + - `instance-storage-supported` - Indicates whether the instance type has + local instance storage (`true` | `false`). + + - `instance-type` - The instance type (for example `c5.2xlarge` or + c5*). + + - `memory-info.size-in-mib` - The memory size. + + - `network-info.bandwidth-weightings` - For instances that support + bandwidth weighting to boost performance (`default`, `vpc-1`, + `ebs-1`). + + - `network-info.efa-info.maximum-efa-interfaces` - The maximum number of + Elastic Fabric Adapters (EFAs) per instance. + + - `network-info.efa-supported` - Indicates whether the instance type + supports Elastic Fabric Adapter (EFA) (`true` | `false`). + + - `network-info.ena-support` - Indicates whether Elastic Network Adapter + (ENA) is supported or required (`required` | `supported` | + `unsupported`). + + - `network-info.flexible-ena-queues-support` - Indicates whether an + instance supports flexible ENA queues (`supported` | `unsupported`). + + - `network-info.encryption-in-transit-supported` - Indicates whether the + instance type automatically encrypts in-transit traffic between + instances (`true` | `false`). + + - `network-info.ipv4-addresses-per-interface` - The maximum number of + private IPv4 addresses per network interface. + + - `network-info.ipv6-addresses-per-interface` - The maximum number of + private IPv6 addresses per network interface. + + - `network-info.ipv6-supported` - Indicates whether the instance type + supports IPv6 (`true` | `false`). + + - `network-info.maximum-network-cards` - The maximum number of network + cards per instance. + + - `network-info.maximum-network-interfaces` - The maximum number of + network interfaces per instance. + + - `network-info.network-performance` - The network performance (for + example, \"25 Gigabit\"). + + - `nitro-enclaves-support` - Indicates whether Nitro Enclaves is + supported (`supported` | `unsupported`). + + - `nitro-tpm-support` - Indicates whether NitroTPM is supported + (`supported` | `unsupported`). + + - `nitro-tpm-info.supported-versions` - The supported NitroTPM version + (`2.0`). + + - `processor-info.supported-architecture` - The CPU architecture + (`arm64` | `i386` | `x86_64`). + + - `processor-info.sustained-clock-speed-in-ghz` - The CPU clock speed, + in GHz. + + - `processor-info.supported-features` - The supported CPU features + (`amd-sev-snp`). + + - `reboot-migration-support` - Indicates whether enabling reboot + migration is supported (`supported` | `unsupported`). + + - `supported-boot-mode` - The boot mode (`legacy-bios` | `uefi`). + + - `supported-root-device-type` - The root device type (`ebs` | + `instance-store`). + + - `supported-usage-class` - The usage class (`on-demand` | `spot` | + `capacity-block`). + + - `supported-virtualization-type` - The virtualization type (`hvm` | + `paravirtual`). + + - `vcpu-info.default-cores` - The default number of cores for the + instance type. + + - `vcpu-info.default-threads-per-core` - The default number of threads + per core for the instance type. + + - `vcpu-info.default-vcpus` - The default number of vCPUs for the + instance type. + + - `vcpu-info.valid-cores` - The number of cores that can be configured + for the instance type. + + - `vcpu-info.valid-threads-per-core` - The number of threads per core + that can be configured for the instance type. For example, \"1\" or + \"1,2\". + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + include_unsupported_in_region: bool | None + """ + If `true`, the response includes instance types that are not supported + in the current Region, in addition to the supported types. Default: + `false`. + """ + +@dataclass(kw_only=True) +class DescribeInstanceTypesOutput(_SerdeShape): + """Dataclass for DescribeInstanceTypesOutput structure.""" + + instance_types: list[InstanceTypeInfo] | None = ... + """The instance type.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) @@ -794,6 +1278,59 @@ class DescribeInternetGatewaysInput(_SerdeShape): of the tag value. """ +class DescribeInternetGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `DescribeInternetGatewaysInput`.""" + + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + internet_gateway_ids: Sequence[str] | None + """ + The IDs of the internet gateways. + + Default: Describes all your internet gateways. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `attachment.state` - The current state of the attachment between the + gateway and the VPC (`available`). Present only if a VPC is attached. + + - `attachment.vpc-id` - The ID of an attached VPC. + + - `internet-gateway-id` - The ID of the Internet gateway. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + internet gateway. + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + @dataclass(kw_only=True) class DescribeInternetGatewaysOutput(_SerdeShape): """Dataclass for DescribeInternetGatewaysOutput structure.""" @@ -833,6 +1370,25 @@ class DescribeIpamByoasnInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeIpamByoasnInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamByoasnInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeIpamByoasnOutput(_SerdeShape): """Dataclass for DescribeIpamByoasnOutput structure.""" @@ -899,6 +1455,49 @@ class DescribeIpamExternalResourceVerificationTokensInput(_SerdeShape): ipam_external_resource_verification_token_ids: list[str] | None = ... """Verification token IDs.""" +class DescribeIpamExternalResourceVerificationTokensInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamExternalResourceVerificationTokensInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters for the request. For more information about + filtering, see [Filtering CLI + output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + + Available filters: + + - `ipam-arn` + + - `ipam-external-resource-verification-token-arn` + + - `ipam-external-resource-verification-token-id` + + - `ipam-id` + + - `ipam-region` + + - `state` + + - `status` + + - `token-name` + + - `token-value` + """ + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """The maximum number of tokens to return in one page of results.""" + ipam_external_resource_verification_token_ids: Sequence[str] | None + """Verification token IDs.""" + @dataclass(kw_only=True) class DescribeIpamExternalResourceVerificationTokensOutput(_SerdeShape): """ @@ -923,28 +1522,51 @@ class DescribeIpamExternalResourceVerificationTokensOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class DescribeIpamInternetRegistryAssociationsInput(_SerdeShape): - """Dataclass for DescribeIpamInternetRegistryAssociationsInput structure.""" +@dataclass(kw_only=True) +class DescribeIpamInternetRegistryAssociationsInput(_SerdeShape): + """Dataclass for DescribeIpamInternetRegistryAssociationsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_ids: list[str] | None = ... + """The IDs of the internet registry associations to describe.""" + max_results: int | None = ... + """ + The maximum number of results to return in a single call. If not + specified, all available results are returned. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + next_token: str | None = ... + """The token for the next page of results.""" + filters: list[Filter] | None = ... + """One or more filters to apply to the results.""" + +class DescribeIpamInternetRegistryAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamInternetRegistryAssociationsInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - ipam_internet_registry_association_ids: list[str] | None = ... + ipam_internet_registry_association_ids: Sequence[str] | None """The IDs of the internet registry associations to describe.""" - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return in a single call. If not specified, all available results are returned. To retrieve the remaining results, make another call with the returned `nextToken` value. """ - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """One or more filters to apply to the results.""" @dataclass(kw_only=True) @@ -985,6 +1607,25 @@ class DescribeIpamPoliciesInput(_SerdeShape): ipam_policy_ids: list[str] | None = ... """The IDs of the IPAM policies to describe.""" +class DescribeIpamPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamPoliciesInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """One or more filters for the IPAM policy description.""" + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """The token for the next page of results.""" + ipam_policy_ids: Sequence[str] | None + """The IDs of the IPAM policies to describe.""" + @dataclass(kw_only=True) class DescribeIpamPoliciesOutput(_SerdeShape): """Dataclass for DescribeIpamPoliciesOutput structure.""" @@ -1044,6 +1685,34 @@ class DescribeIpamPoolAllocationsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeIpamPoolAllocationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamPoolAllocationsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_allocation_ids: Sequence[str] | None + """The IDs of the IPAM pool allocations you want to describe.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters for the request. For more information about + filtering, see [Filtering CLI + output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeIpamPoolAllocationsOutput(_SerdeShape): """Dataclass for DescribeIpamPoolAllocationsOutput structure.""" @@ -1092,6 +1761,34 @@ class DescribeIpamPoolsInput(_SerdeShape): ipam_pool_ids: list[str] | None = ... """The IDs of the IPAM pools you would like information on.""" +class DescribeIpamPoolsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamPoolsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters for the request. For more information about + filtering, see [Filtering CLI + output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + ipam_pool_ids: Sequence[str] | None + """The IDs of the IPAM pools you would like information on.""" + @dataclass(kw_only=True) class DescribeIpamPoolsOutput(_SerdeShape): """Dataclass for DescribeIpamPoolsOutput structure.""" @@ -1139,6 +1836,33 @@ class DescribeIpamPrefixListResolversInput(_SerdeShape): all resolvers in your account are described. """ +class DescribeIpamPrefixListResolversInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamPrefixListResolversInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """One or more filters to limit the results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + ipam_prefix_list_resolver_ids: Sequence[str] | None + """ + The IDs of the IPAM prefix list resolvers to describe. If not specified, + all resolvers in your account are described. + """ + @dataclass(kw_only=True) class DescribeIpamPrefixListResolversOutput(_SerdeShape): """Dataclass for DescribeIpamPrefixListResolversOutput structure.""" @@ -1191,6 +1915,38 @@ class DescribeIpamPrefixListResolverTargetsInput(_SerdeShape): targets associated with this resolver will be returned. """ +class DescribeIpamPrefixListResolverTargetsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamPrefixListResolverTargetsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """One or more filters to limit the results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + ipam_prefix_list_resolver_target_ids: Sequence[str] | None + """ + The IDs of the IPAM prefix list resolver Targets to describe. If not + specified, all targets in your account are described. + """ + ipam_prefix_list_resolver_id: str | None + """ + The ID of the IPAM prefix list resolver to filter targets by. Only + targets associated with this resolver will be returned. + """ + @dataclass(kw_only=True) class DescribeIpamPrefixListResolverTargetsOutput(_SerdeShape): """Dataclass for DescribeIpamPrefixListResolverTargetsOutput structure.""" @@ -1233,6 +1989,28 @@ class DescribeIpamResourceDiscoveriesInput(_SerdeShape): filters: list[Filter] | None = ... """The resource discovery filters.""" +class DescribeIpamResourceDiscoveriesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamResourceDiscoveriesInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_ids: Sequence[str] | None + """The IPAM resource discovery IDs.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of resource discoveries to return in one page of + results. + """ + filters: Sequence[Filter | FilterDict] | None + """The resource discovery filters.""" + @dataclass(kw_only=True) class DescribeIpamResourceDiscoveriesOutput(_SerdeShape): """Dataclass for DescribeIpamResourceDiscoveriesOutput structure.""" @@ -1278,6 +2056,31 @@ class DescribeIpamResourceDiscoveryAssociationsInput(_SerdeShape): filters: list[Filter] | None = ... """The resource discovery association filters.""" +class DescribeIpamResourceDiscoveryAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamResourceDiscoveryAssociationsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_association_ids: Sequence[str] | None + """The resource discovery association IDs.""" + next_token: str | None + """ + Specify the pagination token from a previous request to retrieve the + next page of results. + """ + max_results: int | None + """ + The maximum number of resource discovery associations to return in one + page of results. + """ + filters: Sequence[Filter | FilterDict] | None + """The resource discovery association filters.""" + @dataclass(kw_only=True) class DescribeIpamResourceDiscoveryAssociationsOutput(_SerdeShape): """Dataclass for DescribeIpamResourceDiscoveryAssociationsOutput structure.""" @@ -1328,6 +2131,34 @@ class DescribeIpamScopesInput(_SerdeShape): ipam_scope_ids: list[str] | None = ... """The IDs of the scopes you want information on.""" +class DescribeIpamScopesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamScopesInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters for the request. For more information about + filtering, see [Filtering CLI + output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + ipam_scope_ids: Sequence[str] | None + """The IDs of the scopes you want information on.""" + @dataclass(kw_only=True) class DescribeIpamScopesOutput(_SerdeShape): """Dataclass for DescribeIpamScopesOutput structure.""" @@ -1376,6 +2207,34 @@ class DescribeIpamsInput(_SerdeShape): ipam_ids: list[str] | None = ... """The IDs of the IPAMs you want information on.""" +class DescribeIpamsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpamsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters for the request. For more information about + filtering, see [Filtering CLI + output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + ipam_ids: Sequence[str] | None + """The IDs of the IPAMs you want information on.""" + @dataclass(kw_only=True) class DescribeIpamsOutput(_SerdeShape): """Dataclass for DescribeIpamsOutput structure.""" @@ -1431,6 +2290,41 @@ class DescribeIpv6PoolsInput(_SerdeShape): of the tag value. """ +class DescribeIpv6PoolsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIpv6PoolsInput`.""" + + pool_ids: Sequence[str] | None + """The IDs of the IPv6 address pools.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + @dataclass(kw_only=True) class DescribeIpv6PoolsOutput(_SerdeShape): """Dataclass for DescribeIpv6PoolsOutput structure.""" @@ -1454,28 +2348,73 @@ class DescribeIpv6PoolsOutput(_SerdeShape): class DescribeKeyPairsInput(_SerdeShape): """Dataclass for DescribeKeyPairsInput structure.""" - key_names: list[str] | None = ... + key_names: list[str] | None = ... + """ + The key pair names. + + Default: Describes all of your key pairs. + """ + key_pair_ids: list[str] | None = ... + """The IDs of the key pairs.""" + include_public_key: bool | None = ... + """ + If `true`, the public key material is included in the response. + + Default: `false` + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + The filters. + + - `key-pair-id` - The ID of the key pair. + + - `fingerprint` - The fingerprint of the key pair. + + - `key-name` - The name of the key pair. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + """ + +class DescribeKeyPairsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeKeyPairsInput`.""" + + key_names: Sequence[str] | None """ The key pair names. Default: Describes all of your key pairs. """ - key_pair_ids: list[str] | None = ... + key_pair_ids: Sequence[str] | None """The IDs of the key pairs.""" - include_public_key: bool | None = ... + include_public_key: bool | None """ If `true`, the public key material is included in the response. Default: `false` """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. @@ -1559,6 +2498,54 @@ class DescribeLaunchTemplatesInput(_SerdeShape): visibility is set to hidden. """ +class DescribeLaunchTemplatesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLaunchTemplatesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + launch_template_ids: Sequence[str] | None + """One or more launch template IDs.""" + launch_template_names: Sequence[str] | None + """One or more launch template names.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `create-time` - The time the launch template was created. + + - `launch-template-name` - The name of the launch template. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + next_token: str | None + """The token to request the next page of results.""" + max_results: int | None + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned `NextToken` + value. This value can be between 1 and 200. + """ + include_managed_resources: bool | None + """ + Indicates whether to include managed resources in the output. If this + parameter is set to `true`, the output includes resources that are + managed by Amazon Web Services services, even if managed resource + visibility is set to hidden. + """ + @dataclass(kw_only=True) class DescribeLaunchTemplatesOutput(_SerdeShape): """Dataclass for DescribeLaunchTemplatesOutput structure.""" @@ -1699,6 +2686,126 @@ class DescribeLaunchTemplateVersionsInput(_SerdeShape): visibility is set to hidden. """ +class DescribeLaunchTemplateVersionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLaunchTemplateVersionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + launch_template_id: str | None + """ + The ID of the launch template. + + To describe one or more versions of a specified launch template, you + must specify either the launch template ID or the launch template name, + but not both. + + To describe all the latest or default launch template versions in your + account, you must omit this parameter. + """ + launch_template_name: str | None + """ + The name of the launch template. + + To describe one or more versions of a specified launch template, you + must specify either the launch template name or the launch template ID, + but not both. + + To describe all the latest or default launch template versions in your + account, you must omit this parameter. + """ + versions: Sequence[str] | None + """ + One or more versions of the launch template. Valid values depend on + whether you are describing a specified launch template (by ID or name) + or all launch templates in your account. + + To describe one or more versions of a specified launch template, valid + values are `$Latest`, `$Default`, and numbers. + + To describe all launch templates in your account that are defined as the + latest version, the valid value is `$Latest`. To describe all launch + templates in your account that are defined as the default version, the + valid value is `$Default`. You can specify `$Latest` and `$Default` in + the same request. You cannot specify numbers. + """ + min_version: str | None + """The version number after which to describe launch template versions.""" + max_version: str | None + """The version number up to which to describe launch template versions.""" + next_token: str | None + """The token to request the next page of results.""" + max_results: int | None + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned `NextToken` + value. This value can be between 1 and 200. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `create-time` - The time the launch template version was created. + + - `ebs-optimized` - A boolean that indicates whether the instance is + optimized for Amazon EBS I/O. + + - `http-endpoint` - Indicates whether the HTTP metadata endpoint on your + instances is enabled (`enabled` | `disabled`). + + - `http-protocol-ipv4` - Indicates whether the IPv4 endpoint for the + instance metadata service is enabled (`enabled` | `disabled`). + + - `host-resource-group-arn` - The ARN of the host resource group in + which to launch the instances. + + - `http-tokens` - The state of token usage for your instance metadata + requests (`optional` | `required`). + + - `iam-instance-profile` - The ARN of the IAM instance profile. + + - `image-id` - The ID of the AMI. + + - `instance-type` - The instance type. + + - `is-default-version` - A boolean that indicates whether the launch + template version is the default version. + + - `kernel-id` - The kernel ID. + + - `license-configuration-arn` - The ARN of the license configuration. + + - `network-card-index` - The index of the network card. + + - `ram-disk-id` - The RAM disk ID. + """ + resolve_alias: bool | None + """ + If `true`, and if a Systems Manager parameter is specified for + `ImageId`, the AMI ID is displayed in the response for `imageId`. + + If `false`, and if a Systems Manager parameter is specified for + `ImageId`, the parameter is displayed in the response for `imageId`. + + For more information, see [Use a Systems Manager parameter instead of an + AMI + ID](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id) + in the *Amazon EC2 User Guide*. + + Default: `false` + """ + include_managed_resources: bool | None + """ + Indicates whether to include managed resources in the output. If this + parameter is set to `true`, the output includes resources that are + managed by Amazon Web Services services, even if managed resource + visibility is set to hidden. + """ + @dataclass(kw_only=True) class DescribeLaunchTemplateVersionsOutput(_SerdeShape): """Dataclass for DescribeLaunchTemplateVersionsOutput structure.""" @@ -1759,6 +2866,46 @@ class DescribeLocalGatewayRouteTablesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeLocalGatewayRouteTablesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLocalGatewayRouteTablesInput`.""" + + local_gateway_route_table_ids: Sequence[str] | None + """The IDs of the local gateway route tables.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `local-gateway-id` - The ID of a local gateway. + + - `local-gateway-route-table-arn` - The Amazon Resource Name (ARN) of + the local gateway route table. + + - `local-gateway-route-table-id` - The ID of a local gateway route + table. + + - `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + local gateway route table. + + - `state` - The state of the local gateway route table. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeLocalGatewayRouteTablesOutput(_SerdeShape): """Dataclass for DescribeLocalGatewayRouteTablesOutput structure.""" @@ -1829,6 +2976,54 @@ class DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput(_Serd Otherwise, it is `UnauthorizedOperation`. """ +class DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict( + TypedDict, total=False +): + """Dictionary form of `DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput`.""" + + local_gateway_route_table_virtual_interface_group_association_ids: ( + Sequence[str] | None + ) + """The IDs of the associations.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `local-gateway-id` - The ID of a local gateway. + + - `local-gateway-route-table-arn` - The Amazon Resource Name (ARN) of + the local gateway route table for the virtual interface group. + + - `local-gateway-route-table-id` - The ID of the local gateway route + table. + + - `local-gateway-route-table-virtual-interface-group-association-id` - + The ID of the association. + + - `local-gateway-route-table-virtual-interface-group-id` - The ID of the + virtual interface group. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + local gateway virtual interface group association. + + - `state` - The state of the association. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput( _SerdeShape @@ -1848,24 +3043,67 @@ class DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput( The token to use to retrieve the next page of results. This value is `null` when there are no more results to return. """ - response_metadata: ResponseMetadata = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeLocalGatewayRouteTableVpcAssociationsInput(_SerdeShape): + """ + Dataclass for DescribeLocalGatewayRouteTableVpcAssociationsInput + structure. + """ + + local_gateway_route_table_vpc_association_ids: list[str] | None = ... + """The IDs of the associations.""" + filters: list[Filter] | None = ... + """ + One or more filters. + + - `local-gateway-id` - The ID of a local gateway. + + - `local-gateway-route-table-arn` - The Amazon Resource Name (ARN) of + the local gateway route table for the association. + + - `local-gateway-route-table-id` - The ID of the local gateway route + table. + + - `local-gateway-route-table-vpc-association-id` - The ID of the + association. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + local gateway route table for the association. + + - `state` - The state of the association. + + - `vpc-id` - The ID of the VPC. + """ + max_results: int | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. """ - -@dataclass(kw_only=True) -class DescribeLocalGatewayRouteTableVpcAssociationsInput(_SerdeShape): + next_token: str | None = ... + """The token for the next page of results.""" + dry_run: bool | None = ... """ - Dataclass for DescribeLocalGatewayRouteTableVpcAssociationsInput - structure. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - local_gateway_route_table_vpc_association_ids: list[str] | None = ... +class DescribeLocalGatewayRouteTableVpcAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLocalGatewayRouteTableVpcAssociationsInput`.""" + + local_gateway_route_table_vpc_association_ids: Sequence[str] | None """The IDs of the associations.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ One or more filters. @@ -1887,15 +3125,15 @@ class DescribeLocalGatewayRouteTableVpcAssociationsInput(_SerdeShape): - `vpc-id` - The ID of the VPC. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value. """ - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -1962,6 +3200,40 @@ class DescribeLocalGatewaysInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeLocalGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLocalGatewaysInput`.""" + + local_gateway_ids: Sequence[str] | None + """The IDs of the local gateways.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `local-gateway-id` - The ID of a local gateway. + + - `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + local gateway. + + - `state` - The state of the association. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeLocalGatewaysOutput(_SerdeShape): """Dataclass for DescribeLocalGatewaysOutput structure.""" @@ -2018,6 +3290,42 @@ class DescribeLocalGatewayVirtualInterfaceGroupsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeLocalGatewayVirtualInterfaceGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLocalGatewayVirtualInterfaceGroupsInput`.""" + + local_gateway_virtual_interface_group_ids: Sequence[str] | None + """The IDs of the virtual interface groups.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `local-gateway-id` - The ID of a local gateway. + + - `local-gateway-virtual-interface-group-id` - The ID of the virtual + interface group. + + - `local-gateway-virtual-interface-id` - The ID of the virtual + interface. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + local gateway virtual interface group. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeLocalGatewayVirtualInterfaceGroupsOutput(_SerdeShape): """ @@ -2087,6 +3395,50 @@ class DescribeLocalGatewayVirtualInterfacesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeLocalGatewayVirtualInterfacesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLocalGatewayVirtualInterfacesInput`.""" + + local_gateway_virtual_interface_ids: Sequence[str] | None + """The IDs of the virtual interfaces.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `local-address` - The local address. + + - `local-bgp-asn` - The Border Gateway Protocol (BGP) Autonomous System + Number (ASN) of the local gateway. + + - `local-gateway-id` - The ID of the local gateway. + + - `local-gateway-virtual-interface-id` - The ID of the virtual + interface. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + local gateway virtual interface. + + - `peer-address` - The peer address. + + - `peer-bgp-asn` - The peer BGP ASN. + + - `vlan` - The ID of the VLAN. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeLocalGatewayVirtualInterfacesOutput(_SerdeShape): """Dataclass for DescribeLocalGatewayVirtualInterfacesOutput structure.""" @@ -2139,6 +3491,38 @@ class DescribeLockedSnapshotsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeLockedSnapshotsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLockedSnapshotsInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `lock-state` - The state of the snapshot lock (`compliance-cooloff` | + `governance` | `compliance` | `expired`). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + snapshot_ids: Sequence[str] | None + """The IDs of the snapshots for which to view the lock status.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeLockedSnapshotsOutput(_SerdeShape): """Dataclass for DescribeLockedSnapshotsOutput structure.""" @@ -2184,6 +3568,31 @@ class DescribeMacHostsInput(_SerdeShape): next_token: str | None = ... """The token to use to retrieve the next page of results.""" +class DescribeMacHostsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeMacHostsInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone` - The Availability Zone of the EC2 Mac Dedicated + Host. + + - `instance-type` - The instance type size that the EC2 Mac Dedicated + Host is configured to support. + """ + host_ids: Sequence[str] | None + """The IDs of the EC2 Mac Dedicated Hosts.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the returned `nextToken` value. This value can be between 5 and 500. If + `maxResults` is given a larger value than 500, you receive an error. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + @dataclass(kw_only=True) class DescribeMacHostsOutput(_SerdeShape): """Dataclass for DescribeMacHostsOutput structure.""" @@ -2240,6 +3649,45 @@ class DescribeMacModificationTasksInput(_SerdeShape): next_token: str | None = ... """The token to use to retrieve the next page of results.""" +class DescribeMacModificationTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeMacModificationTasksInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + Specifies one or more filters for the request: + + - `instance-id` - The ID of the instance for which the task was created. + + - `task-state` - The state of the task (`successful` | `failed` | + `in-progress` | `pending`). + + - `mac-system-integrity-protection-configuration.sip-status` - The + overall SIP state requested in the task (`enabled` | `disabled`). + + - `start-time` - The date and time the task was created. + + - `task-type` - The type of task (`sip-modification` | + `volume-ownership-delegation`). + """ + mac_modification_task_ids: Sequence[str] | None + """The ID of task.""" + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results can be seen by sending another request with + the returned `nextToken` value. This value can be between 5 and 500. If + `maxResults` is given a larger value than 500, you receive an error. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + @dataclass(kw_only=True) class DescribeMacModificationTasksOutput(_SerdeShape): """Dataclass for DescribeMacModificationTasksOutput structure.""" @@ -2291,6 +3739,37 @@ class DescribeManagedPrefixListsInput(_SerdeShape): prefix_list_ids: list[str] | None = ... """One or more prefix list IDs.""" +class DescribeManagedPrefixListsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeManagedPrefixListsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `owner-id` - The ID of the prefix list owner. + + - `prefix-list-id` - The ID of the prefix list. + + - `prefix-list-name` - The name of the prefix list. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + prefix_list_ids: Sequence[str] | None + """One or more prefix list IDs.""" + @dataclass(kw_only=True) class DescribeManagedPrefixListsOutput(_SerdeShape): """Dataclass for DescribeManagedPrefixListsOutput structure.""" @@ -2314,25 +3793,57 @@ class DescribeManagedPrefixListsOutput(_SerdeShape): class DescribeMovingAddressesInput(_SerdeShape): """Dataclass for DescribeMovingAddressesInput structure.""" - dry_run: bool | None = ... + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + public_ips: list[str] | None = ... + """One or more Elastic IP addresses.""" + next_token: str | None = ... + """The token for the next page of results.""" + filters: list[Filter] | None = ... + """ + One or more filters. + + - `moving-status` - The status of the Elastic IP address (`MovingToVpc` + | `RestoringToClassic`). + """ + max_results: int | None = ... + """ + The maximum number of results to return for the request in a single + page. The remaining results of the initial request can be seen by + sending another request with the returned `NextToken` value. This value + can be between 5 and 1000; if `MaxResults` is given a value outside of + this range, an error is returned. + + Default: If no value is provided, the default is 1000. + """ + +class DescribeMovingAddressesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeMovingAddressesInput`.""" + + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - public_ips: list[str] | None = ... + public_ips: Sequence[str] | None """One or more Elastic IP addresses.""" - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ One or more filters. - `moving-status` - The status of the Elastic IP address (`MovingToVpc` | `RestoringToClassic`). """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by @@ -2411,6 +3922,54 @@ class DescribeNatGatewaysInput(_SerdeShape): continues from the end of the items returned by the previous request. """ +class DescribeNatGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNatGatewaysInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filter: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `nat-gateway-id` - The ID of the NAT gateway. + + - `state` - The state of the NAT gateway (`pending` | `failed` | + `available` | `deleting` | `deleted`). + + - `subnet-id` - The ID of the subnet in which the NAT gateway resides. + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC in which the NAT gateway resides. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + nat_gateway_ids: Sequence[str] | None + """The IDs of the NAT gateways.""" + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + @dataclass(kw_only=True) class DescribeNatGatewaysOutput(_SerdeShape): """Dataclass for DescribeNatGatewaysOutput structure.""" @@ -2515,6 +4074,90 @@ class DescribeNetworkAclsInput(_SerdeShape): - `vpc-id` - The ID of the VPC for the network ACL. """ +class DescribeNetworkAclsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNetworkAclsInput`.""" + + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_acl_ids: Sequence[str] | None + """The IDs of the network ACLs.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `association.association-id` - The ID of an association ID for the + ACL. + + - `association.network-acl-id` - The ID of the network ACL involved in + the association. + + - `association.subnet-id` - The ID of the subnet involved in the + association. + + - `default` - Indicates whether the ACL is the default network ACL for + the VPC. + + - `entry.cidr` - The IPv4 CIDR range specified in the entry. + + - `entry.icmp.code` - The ICMP code specified in the entry, if any. + + - `entry.icmp.type` - The ICMP type specified in the entry, if any. + + - `entry.ipv6-cidr` - The IPv6 CIDR range specified in the entry. + + - `entry.port-range.from` - The start of the port range specified in the + entry. + + - `entry.port-range.to` - The end of the port range specified in the + entry. + + - `entry.protocol` - The protocol specified in the entry (`tcp` | `udp` + | `icmp` or a protocol number). + + - `entry.rule-action` - Allows or denies the matching traffic (`allow` + | `deny`). + + - `entry.egress` - A Boolean that indicates the type of rule. Specify + `true` for egress rules, or `false` for ingress rules. + + - `entry.rule-number` - The number of an entry (in other words, rule) in + the set of ACL entries. + + - `network-acl-id` - The ID of the network ACL. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + network ACL. + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC for the network ACL. + """ + @dataclass(kw_only=True) class DescribeNetworkAclsOutput(_SerdeShape): """Dataclass for DescribeNetworkAclsOutput structure.""" @@ -2570,6 +4213,41 @@ class DescribeNetworkInsightsAccessScopeAnalysesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeNetworkInsightsAccessScopeAnalysesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNetworkInsightsAccessScopeAnalysesInput`.""" + + network_insights_access_scope_analysis_ids: Sequence[str] | None + """The IDs of the Network Access Scope analyses.""" + network_insights_access_scope_id: str | None + """The ID of the Network Access Scope.""" + analysis_start_time_begin: datetime | None + """ + Filters the results based on the start time. The analysis must have + started on or after this time. + """ + analysis_start_time_end: datetime | None + """ + Filters the results based on the start time. The analysis must have + started on or before this time. + """ + filters: Sequence[Filter | FilterDict] | None + """There are no supported filters.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeNetworkInsightsAccessScopeAnalysesOutput(_SerdeShape): """ @@ -2618,6 +4296,29 @@ class DescribeNetworkInsightsAccessScopesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeNetworkInsightsAccessScopesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNetworkInsightsAccessScopesInput`.""" + + network_insights_access_scope_ids: Sequence[str] | None + """The IDs of the Network Access Scopes.""" + filters: Sequence[Filter | FilterDict] | None + """There are no supported filters.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeNetworkInsightsAccessScopesOutput(_SerdeShape): """Dataclass for DescribeNetworkInsightsAccessScopesOutput structure.""" @@ -2656,10 +4357,124 @@ class DescribeNetworkInsightsAnalysesInput(_SerdeShape): """ The filters. The following are the possible values: - - path-found - A Boolean value that indicates whether a feasible path is - found. + - path-found - A Boolean value that indicates whether a feasible path is + found. + + - status - The status of the analysis (running | succeeded | failed). + """ + max_results: int | None = ... + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None = ... + """The token for the next page of results.""" + +class DescribeNetworkInsightsAnalysesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNetworkInsightsAnalysesInput`.""" + + network_insights_analysis_ids: Sequence[str] | None + """ + The ID of the network insights analyses. You must specify either + analysis IDs or a path ID. + """ + network_insights_path_id: str | None + """The ID of the path. You must specify either a path ID or analysis IDs.""" + analysis_start_time: datetime | None + """The time when the network insights analyses started.""" + analysis_end_time: datetime | None + """The time when the network insights analyses ended.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. The following are the possible values: + + - path-found - A Boolean value that indicates whether a feasible path is + found. + + - status - The status of the analysis (running | succeeded | failed). + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """The token for the next page of results.""" + +@dataclass(kw_only=True) +class DescribeNetworkInsightsAnalysesOutput(_SerdeShape): + """Dataclass for DescribeNetworkInsightsAnalysesOutput structure.""" + + network_insights_analyses: list[NetworkInsightsAnalysis] | None = ... + """Information about the network insights analyses.""" + next_token: str | None = ... + """ + The token to use to retrieve the next page of results. This value is + `null` when there are no more results to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeNetworkInsightsPathsInput(_SerdeShape): + """Dataclass for DescribeNetworkInsightsPathsInput structure.""" + + network_insights_path_ids: list[str] | None = ... + """The IDs of the paths.""" + filters: list[Filter] | None = ... + """ + The filters. The following are the possible values: + + - destination - The ID of the resource. + + - filter-at-source.source-address - The source IPv4 address at the + source. + + - filter-at-source.source-port-range - The source port range at the + source. + + - filter-at-source.destination-address - The destination IPv4 address at + the source. + + - filter-at-source.destination-port-range - The destination port range + at the source. + + - filter-at-destination.source-address - The source IPv4 address at the + destination. - - status - The status of the analysis (running | succeeded | failed). + - filter-at-destination.source-port-range - The source port range at the + destination. + + - filter-at-destination.destination-address - The destination IPv4 + address at the destination. + + - filter-at-destination.destination-port-range - The destination port + range at the destination. + + - protocol - The protocol. + + - source - The ID of the resource. """ max_results: int | None = ... """ @@ -2677,32 +4492,12 @@ class DescribeNetworkInsightsAnalysesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" -@dataclass(kw_only=True) -class DescribeNetworkInsightsAnalysesOutput(_SerdeShape): - """Dataclass for DescribeNetworkInsightsAnalysesOutput structure.""" - - network_insights_analyses: list[NetworkInsightsAnalysis] | None = ... - """Information about the network insights analyses.""" - next_token: str | None = ... - """ - The token to use to retrieve the next page of results. This value is - `null` when there are no more results to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class DescribeNetworkInsightsPathsInput(_SerdeShape): - """Dataclass for DescribeNetworkInsightsPathsInput structure.""" +class DescribeNetworkInsightsPathsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNetworkInsightsPathsInput`.""" - network_insights_path_ids: list[str] | None = ... + network_insights_path_ids: Sequence[str] | None """The IDs of the paths.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. The following are the possible values: @@ -2736,20 +4531,20 @@ class DescribeNetworkInsightsPathsInput(_SerdeShape): - source - The ID of the resource. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" @dataclass(kw_only=True) @@ -2787,6 +4582,21 @@ class DescribeNetworkInterfaceAttributeInput(_SerdeShape): attribute: str | None = ... """The attribute of the network interface. This parameter is required.""" +class DescribeNetworkInterfaceAttributeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNetworkInterfaceAttributeInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_id: Required[str] + """The ID of the network interface.""" + attribute: str | None + """The attribute of the network interface. This parameter is required.""" + @dataclass(kw_only=True) class DescribeNetworkInterfaceAttributeOutput(_SerdeShape): """Contains the output of DescribeNetworkInterfaceAttribute.""" @@ -2854,35 +4664,236 @@ class DescribeNetworkInterfacePermissionsInput(_SerdeShape): [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ -@dataclass(kw_only=True) -class DescribeNetworkInterfacePermissionsOutput(_SerdeShape): - """Contains the output for DescribeNetworkInterfacePermissions.""" +class DescribeNetworkInterfacePermissionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNetworkInterfacePermissionsInput`.""" + + network_interface_permission_ids: Sequence[str] | None + """The network interface permission IDs.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `network-interface-permission.network-interface-permission-id` - The + ID of the permission. + + - `network-interface-permission.network-interface-id` - The ID of the + network interface. + + - `network-interface-permission.aws-account-id` - The Amazon Web + Services account ID. + + - `network-interface-permission.aws-service` - The Amazon Web Services + service. + + - `network-interface-permission.permission` - The type of permission + (`INSTANCE-ATTACH` | `EIP-ASSOCIATE`). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. If this parameter is not specified, up to 50 results are + returned by default. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + +@dataclass(kw_only=True) +class DescribeNetworkInterfacePermissionsOutput(_SerdeShape): + """Contains the output for DescribeNetworkInterfacePermissions.""" + + network_interface_permissions: list[NetworkInterfacePermission] | None = ... + """The network interface permissions.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeNetworkInterfacesInput(_SerdeShape): + """Contains the parameters for DescribeNetworkInterfaces.""" + + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. You cannot specify this parameter and the network interface IDs + parameter in the same request. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + include_managed_resources: bool | None = ... + """ + Indicates whether to include managed resources in the output. If this + parameter is set to `true`, the output includes resources that are + managed by Amazon Web Services services, even if managed resource + visibility is set to hidden. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_ids: list[str] | None = ... + """ + The network interface IDs. + + Default: Describes all your network interfaces. + """ + filters: list[Filter] | None = ... + """ + One or more filters. + + - `association.allocation-id` - The allocation ID returned when you + allocated the Elastic IP address (IPv4) for your network interface. + + - `association.association-id` - The association ID returned when the + network interface was associated with an IPv4 address. + + - `addresses.association.owner-id` - The owner ID of the addresses + associated with the network interface. + + - `addresses.association.public-ip` - The association ID returned when + the network interface was associated with the Elastic IP address + (IPv4). + + - `addresses.primary` - Whether the private IPv4 address is the primary + IP address associated with the network interface. + + - `addresses.private-ip-address` - The private IPv4 addresses associated + with the network interface. + + - `association.ip-owner-id` - The owner of the Elastic IP address (IPv4) + associated with the network interface. + + - `association.public-ip` - The address of the Elastic IP address (IPv4) + bound to the network interface. + + - `association.public-dns-name` - The public DNS name for the network + interface (IPv4). + + - `attachment.attach-time` - The time that the network interface was + attached to an instance. + + - `attachment.attachment-id` - The ID of the interface attachment. + + - `attachment.delete-on-termination` - Indicates whether the attachment + is deleted when an instance is terminated. + + - `attachment.device-index` - The device index to which the network + interface is attached. + + - `attachment.instance-id` - The ID of the instance to which the network + interface is attached. + + - `attachment.instance-owner-id` - The owner ID of the instance to which + the network interface is attached. + + - `attachment.status` - The status of the attachment (`attaching` | + `attached` | `detaching` | `detached`). + + - `availability-zone` - The Availability Zone of the network interface. + + - `availability-zone-id` - The ID of the Availability Zone of the + network interface. + + - `description` - The description of the network interface. + + - `group-id` - The ID of a security group associated with the network + interface. + + - `ipv6-addresses.ipv6-address` - An IPv6 address associated with the + network interface. + + - `interface-type` - The type of network interface + (`api_gateway_managed` | `aws_codestar_connections_managed` | + `branch` | `ec2_instance_connect_endpoint` | `efa` | `efa-only` | + `efs` | `evs` | `gateway_load_balancer` | + `gateway_load_balancer_endpoint` | `global_accelerator_managed` | + `interface` | `iot_rules_managed` | `lambda` | `load_balancer` | + `nat_gateway` | `network_load_balancer` | `quicksight` | + `transit_gateway` | `trunk` | `vpc_endpoint`). + + - `mac-address` - The MAC address of the network interface. + + - `network-interface-id` - The ID of the network interface. + + - `operator.managed` - A Boolean that indicates whether this is a + managed network interface. + + - `operator.principal` - The principal that manages the network + interface. Only valid for managed network interfaces, where `managed` + is `true`. + + - `owner-id` - The Amazon Web Services account ID of the network + interface owner. + + - `private-dns-name` - The private DNS name of the network interface + (IPv4). + + - `private-ip-address` - The private IPv4 address or addresses of the + network interface. + + - `requester-id` - The alias or Amazon Web Services account ID of the + principal or service that created the network interface. + + - `requester-managed` - Indicates whether the network interface is being + managed by an Amazon Web Services service (for example, Amazon Web + Services Management Console, Auto Scaling, and so on). + + - `source-dest-check` - Indicates whether the network interface performs + source/destination checking. A value of `true` means checking is + enabled, and `false` means checking is disabled. The value must be + `false` for the network interface to perform network address + translation (NAT) in your VPC. + + - `status` - The status of the network interface. If the network + interface is not attached to an instance, the status is `available`; + if a network interface is attached to an instance the status is + `in-use`. + + - `subnet-id` - The ID of the subnet for the network interface. - network_interface_permissions: list[NetworkInterfacePermission] | None = ... - """The network interface permissions.""" - next_token: str | None = ... - """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC for the network interface. """ -@dataclass(kw_only=True) -class DescribeNetworkInterfacesInput(_SerdeShape): - """Contains the parameters for DescribeNetworkInterfaces.""" +class DescribeNetworkInterfacesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeNetworkInterfacesInput`.""" - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the @@ -2890,27 +4901,27 @@ class DescribeNetworkInterfacesInput(_SerdeShape): parameter in the same request. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - include_managed_resources: bool | None = ... + include_managed_resources: bool | None """ Indicates whether to include managed resources in the output. If this parameter is set to `true`, the output includes resources that are managed by Amazon Web Services services, even if managed resource visibility is set to hidden. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - network_interface_ids: list[str] | None = ... + network_interface_ids: Sequence[str] | None """ The network interface IDs. Default: Describes all your network interfaces. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ One or more filters. @@ -3109,6 +5120,58 @@ class DescribeOutpostLagsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeOutpostLagsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeOutpostLagsInput`.""" + + outpost_lag_ids: Sequence[str] | None + """The IDs of the Outpost LAGs.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters to use for narrowing down the request. The following filters + are supported: + + - `service-link-virtual-interface-id` - The ID of the service link + virtual interface. + + - `service-link-virtual-interface-arn` - The ARN of the service link + virtual interface. + + - `outpost-id` - The Outpost ID. + + - `outpost-arn` - The Outpost ARN. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + service link virtual interface. + + - `vlan` - The ID of the address pool. + + - `local-address` - The local address. + + - `peer-address` - The peer address. + + - `peer-bgp-asn` - The peer BGP ASN. + + - `outpost-lag-id` - The Outpost LAG ID. + + - `configuration-state` - The configuration state of the service link + virtual interface. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeOutpostLagsOutput(_SerdeShape): """Dataclass for DescribeOutpostLagsOutput structure.""" @@ -3182,6 +5245,59 @@ class DescribePlacementGroupsInput(_SerdeShape): of the tag value. """ +class DescribePlacementGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribePlacementGroupsInput`.""" + + group_ids: Sequence[str] | None + """The IDs of the placement groups.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + group_names: Sequence[str] | None + """ + The names of the placement groups. + + Constraints: + + - You can specify a name only if the placement group is owned by your + account. + + - If a placement group is *shared* with your account, specifying the + name results in an error. You must use the `GroupId` parameter + instead. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `group-name` - The name of the placement group. + + - `group-arn` - The Amazon Resource Name (ARN) of the placement group. + + - `spread-level` - The spread level for the placement group (`host` | + `rack`). + + - `state` - The state of the placement group (`pending` | `available` + | `deleting` | `deleted`). + + - `strategy` - The strategy of the placement group (`cluster` | + `spread` | `partition` | `precision-time`). + + - `tag:```{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources that have a tag with a specific key, regardless + of the tag value. + """ + @dataclass(kw_only=True) class DescribePlacementGroupsOutput(_SerdeShape): """Dataclass for DescribePlacementGroupsOutput structure.""" @@ -3226,6 +5342,35 @@ class DescribePrefixListsInput(_SerdeShape): prefix_list_ids: list[str] | None = ... """One or more prefix list IDs.""" +class DescribePrefixListsInputDict(TypedDict, total=False): + """Dictionary form of `DescribePrefixListsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `prefix-list-id`: The ID of a prefix list. + + - `prefix-list-name`: The name of a prefix list. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + prefix_list_ids: Sequence[str] | None + """One or more prefix list IDs.""" + @dataclass(kw_only=True) class DescribePrefixListsOutput(_SerdeShape): """Dataclass for DescribePrefixListsOutput structure.""" @@ -3278,6 +5423,38 @@ class DescribePrincipalIdFormatInput(_SerdeShape): next_token: str | None = ... """The token to request the next page of results.""" +class DescribePrincipalIdFormatInputDict(TypedDict, total=False): + """Dictionary form of `DescribePrincipalIdFormatInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + resources: Sequence[str] | None + """ + The type of resource: `bundle` | `conversion-task` | + `customer-gateway` | `dhcp-options` | `elastic-ip-allocation` | + `elastic-ip-association` | `export-task` | `flow-log` | `image` | + `import-task` | `instance` | `internet-gateway` | `network-acl` | + `network-acl-association` | `network-interface` | + `network-interface-attachment` | `prefix-list` | `reservation` | + `route-table` | `route-table-association` | `security-group` | + `snapshot` | `subnet` | `subnet-cidr-block-association` | `volume` | + `vpc` | `vpc-cidr-block-association` | `vpc-endpoint` | + `vpc-peering-connection` | `vpn-connection` | `vpn-gateway` + """ + max_results: int | None + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned NextToken + value. + """ + next_token: str | None + """The token to request the next page of results.""" + @dataclass(kw_only=True) class DescribePrincipalIdFormatOutput(_SerdeShape): """Dataclass for DescribePrincipalIdFormatOutput structure.""" @@ -3326,6 +5503,34 @@ class DescribePublicIpv4PoolsInput(_SerdeShape): of the tag value. """ +class DescribePublicIpv4PoolsInputDict(TypedDict, total=False): + """Dictionary form of `DescribePublicIpv4PoolsInput`.""" + + pool_ids: Sequence[str] | None + """The IDs of the address pools.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + @dataclass(kw_only=True) class DescribePublicIpv4PoolsOutput(_SerdeShape): """Dataclass for DescribePublicIpv4PoolsOutput structure.""" @@ -3379,6 +5584,39 @@ class DescribeRegionsInput(_SerdeShape): - `region-name` - The name of the Region (for example, `us-east-1`). """ +class DescribeRegionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeRegionsInput`.""" + + region_names: Sequence[str] | None + """ + The names of the Regions. You can specify any Regions, whether they are + enabled and disabled for your account. + """ + all_regions: bool | None + """ + Indicates whether to display all Regions, including Regions that are + disabled for your account. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `endpoint` - The endpoint of the Region (for example, + `ec2.us-east-1.amazonaws.com`). + + - `opt-in-status` - The opt-in status of the Region + (`opt-in-not-required` | `opted-in` | `not-opted-in`). + + - `region-name` - The name of the Region (for example, `us-east-1`). + """ + @dataclass(kw_only=True) class DescribeRegionsOutput(_SerdeShape): """Dataclass for DescribeRegionsOutput structure.""" @@ -3397,28 +5635,60 @@ class DescribeRegionsOutput(_SerdeShape): class DescribeReplaceRootVolumeTasksInput(_SerdeShape): """Dataclass for DescribeReplaceRootVolumeTasksInput structure.""" - replace_root_volume_task_ids: list[str] | None = ... + replace_root_volume_task_ids: list[str] | None = ... + """The ID of the root volume replacement task to view.""" + filters: list[Filter] | None = ... + """ + Filter to use: + + - `instance-id` - The ID of the instance for which the root volume + replacement task was created. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class DescribeReplaceRootVolumeTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeReplaceRootVolumeTasksInput`.""" + + replace_root_volume_task_ids: Sequence[str] | None """The ID of the root volume replacement task to view.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ Filter to use: - `instance-id` - The ID of the instance for which the root volume replacement task was created. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -3526,6 +5796,86 @@ class DescribeReservedInstancesInput(_SerdeShape): `Medium Utilization` Reserved Instance offering type. """ +class DescribeReservedInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeReservedInstancesInput`.""" + + offering_class: str | None + """Describes whether the Reserved Instance is Standard or Convertible.""" + reserved_instances_ids: Sequence[str] | None + """ + One or more Reserved Instance IDs. + + Default: Describes all your Reserved Instances, or only those otherwise + specified. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `availability-zone` - The Availability Zone where the Reserved + Instance can be used. + + - `availability-zone-id` - The ID of the Availability Zone where the + Reserved Instance can be used. + + - `duration` - The duration of the Reserved Instance (one year or three + years), in seconds (`31536000` | `94608000`). + + - `end` - The time when the Reserved Instance expires (for example, + 2015-08-07T11:54:42.000Z). + + - `fixed-price` - The purchase price of the Reserved Instance (for + example, 9800.0). + + - `instance-type` - The instance type that is covered by the + reservation. + + - `scope` - The scope of the Reserved Instance (`Region` or + `Availability Zone`). + + - `product-description` - The Reserved Instance product platform + description (`Linux/UNIX` | `Linux with SQL Server Standard` | + `Linux with SQL Server Web` | `Linux with SQL Server Enterprise` | + `SUSE Linux` | `Red Hat Enterprise Linux` | + `Red Hat Enterprise Linux with HA` | `Windows` | + `Windows with SQL Server Standard` | `Windows with SQL Server Web` | + `Windows with SQL Server Enterprise`). + + - `reserved-instances-id` - The ID of the Reserved Instance. + + - `start` - The time at which the Reserved Instance purchase request was + placed (for example, 2014-08-07T11:54:42.000Z). + + - `state` - The state of the Reserved Instance (`payment-pending` | + `active` | `payment-failed` | `retired`). + + - `tag:```{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `usage-price` - The usage price of the Reserved Instance, per hour + (for example, 0.84). + """ + offering_type: str | None + """ + The Reserved Instance offering type. If you are using tools that predate + the 2011-11-01 API version, you only have access to the + `Medium Utilization` Reserved Instance offering type. + """ + @dataclass(kw_only=True) class DescribeReservedInstancesListingsInput(_SerdeShape): """Contains the parameters for DescribeReservedInstancesListings.""" @@ -3549,6 +5899,28 @@ class DescribeReservedInstancesListingsInput(_SerdeShape): - `status-message` - The reason for the status. """ +class DescribeReservedInstancesListingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeReservedInstancesListingsInput`.""" + + reserved_instances_id: str | None + """One or more Reserved Instance IDs.""" + reserved_instances_listing_id: str | None + """One or more Reserved Instance listing IDs.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `reserved-instances-id` - The ID of the Reserved Instances. + + - `reserved-instances-listing-id` - The ID of the Reserved Instances + listing. + + - `status` - The status of the Reserved Instance listing (`pending` | + `active` | `cancelled` | `closed`). + + - `status-message` - The reason for the status. + """ + @dataclass(kw_only=True) class DescribeReservedInstancesListingsOutput(_SerdeShape): """Contains the output of DescribeReservedInstancesListings.""" @@ -3581,122 +5953,303 @@ class DescribeReservedInstancesModificationsInput(_SerdeShape): - `effective-date` - The time when the modification becomes effective. - - `modification-result.reserved-instances-id` - The ID for the Reserved - Instances created as part of the modification request. This ID is only - available when the status of the modification is `fulfilled`. + - `modification-result.reserved-instances-id` - The ID for the Reserved + Instances created as part of the modification request. This ID is only + available when the status of the modification is `fulfilled`. + + - `modification-result.target-configuration.availability-zone` - The + Availability Zone for the new Reserved Instances. + + - `modification-result.target-configuration.availability-zone-id` - The + ID of the Availability Zone for the new Reserved Instances. + + - `modification-result.target-configuration.instance-count ` - The + number of new Reserved Instances. + + - `modification-result.target-configuration.instance-type` - The + instance type of the new Reserved Instances. + + - `reserved-instances-id` - The ID of the Reserved Instances modified. + + - `reserved-instances-modification-id` - The ID of the modification + request. + + - `status` - The status of the Reserved Instances modification request + (`processing` | `fulfilled` | `failed`). + + - `status-message` - The reason for the status. + + - `update-date` - The time when the modification request was last + updated. + """ + +class DescribeReservedInstancesModificationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeReservedInstancesModificationsInput`.""" + + reserved_instances_modification_ids: Sequence[str] | None + """IDs for the submitted modification request.""" + next_token: str | None + """The token to retrieve the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `client-token` - The idempotency token for the modification request. + + - `create-date` - The time when the modification request was created. + + - `effective-date` - The time when the modification becomes effective. + + - `modification-result.reserved-instances-id` - The ID for the Reserved + Instances created as part of the modification request. This ID is only + available when the status of the modification is `fulfilled`. + + - `modification-result.target-configuration.availability-zone` - The + Availability Zone for the new Reserved Instances. + + - `modification-result.target-configuration.availability-zone-id` - The + ID of the Availability Zone for the new Reserved Instances. + + - `modification-result.target-configuration.instance-count ` - The + number of new Reserved Instances. + + - `modification-result.target-configuration.instance-type` - The + instance type of the new Reserved Instances. + + - `reserved-instances-id` - The ID of the Reserved Instances modified. + + - `reserved-instances-modification-id` - The ID of the modification + request. + + - `status` - The status of the Reserved Instances modification request + (`processing` | `fulfilled` | `failed`). + + - `status-message` - The reason for the status. + + - `update-date` - The time when the modification request was last + updated. + """ + +@dataclass(kw_only=True) +class DescribeReservedInstancesModificationsOutput(_SerdeShape): + """Contains the output of DescribeReservedInstancesModifications.""" + + next_token: str | None = ... + """ + The token to use to retrieve the next page of results. This value is + `null` when there are no more results to return. + """ + reserved_instances_modifications: list[ReservedInstancesModification] | None = ... + """The Reserved Instance modification information.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeReservedInstancesOfferingsInput(_SerdeShape): + """Contains the parameters for DescribeReservedInstancesOfferings.""" + + availability_zone: str | None = ... + """ + The Availability Zone in which the Reserved Instance can be used. + + Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but + not both. + """ + include_marketplace: bool | None = ... + """Include Reserved Instance Marketplace offerings in the response.""" + instance_type: str | None = ... + """ + The instance type that the reservation will cover (for example, + `m1.small`). For more information, see [Amazon EC2 instance + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + in the *Amazon EC2 User Guide*. + """ + max_duration: int | None = ... + """ + The maximum duration (in seconds) to filter when searching for + offerings. + + Default: 94608000 (3 years) + """ + max_instance_count: int | None = ... + """ + The maximum number of instances to filter when searching for offerings. + + Default: 20 + """ + min_duration: int | None = ... + """ + The minimum duration (in seconds) to filter when searching for + offerings. + + Default: 2592000 (1 month) + """ + offering_class: str | None = ... + """ + The offering class of the Reserved Instance. Can be `standard` or + `convertible`. + """ + product_description: str | None = ... + """ + The Reserved Instance product platform description. Instances that + include `(Amazon VPC)` in the description are for use with Amazon VPC. + """ + reserved_instances_offering_ids: list[str] | None = ... + """One or more Reserved Instances offering IDs.""" + availability_zone_id: str | None = ... + """ + The ID of the Availability Zone. + + Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but + not both. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + One or more filters. + + - `availability-zone` - The Availability Zone where the Reserved + Instance can be used. - - `modification-result.target-configuration.availability-zone` - The - Availability Zone for the new Reserved Instances. + - `availability-zone-id` - The ID of the Availability Zone where the + Reserved Instance can be used. - - `modification-result.target-configuration.availability-zone-id` - The - ID of the Availability Zone for the new Reserved Instances. + - `duration` - The duration of the Reserved Instance (for example, one + year or three years), in seconds (`31536000` | `94608000`). - - `modification-result.target-configuration.instance-count ` - The - number of new Reserved Instances. + - `fixed-price` - The purchase price of the Reserved Instance (for + example, 9800.0). - - `modification-result.target-configuration.instance-type` - The - instance type of the new Reserved Instances. + - `instance-type` - The instance type that is covered by the + reservation. - - `reserved-instances-id` - The ID of the Reserved Instances modified. + - `marketplace` - Set to `true` to show only Reserved Instance + Marketplace offerings. When this filter is not used, which is the + default behavior, all offerings from both Amazon Web Services and the + Reserved Instance Marketplace are listed. - - `reserved-instances-modification-id` - The ID of the modification - request. + - `product-description` - The Reserved Instance product platform + description (`Linux/UNIX` | `Linux with SQL Server Standard` | + `Linux with SQL Server Web` | `Linux with SQL Server Enterprise` | + `SUSE Linux` | `Red Hat Enterprise Linux` | + `Red Hat Enterprise Linux with HA` | `Windows` | + `Windows with SQL Server Standard` | `Windows with SQL Server Web` | + `Windows with SQL Server Enterprise`). - - `status` - The status of the Reserved Instances modification request - (`processing` | `fulfilled` | `failed`). + - `reserved-instances-offering-id` - The Reserved Instances offering ID. - - `status-message` - The reason for the status. + - `scope` - The scope of the Reserved Instance (`Availability Zone` or + `Region`). - - `update-date` - The time when the modification request was last - updated. + - `usage-price` - The usage price of the Reserved Instance, per hour + (for example, 0.84). + """ + instance_tenancy: str | None = ... """ + The tenancy of the instances covered by the reservation. A Reserved + Instance with a tenancy of `dedicated` is applied to instances that run + in a VPC on single-tenant hardware (i.e., Dedicated Instances). -@dataclass(kw_only=True) -class DescribeReservedInstancesModificationsOutput(_SerdeShape): - """Contains the output of DescribeReservedInstancesModifications.""" + **Important:** The `host` value cannot be used with this parameter. Use + the `default` or `dedicated` values only. - next_token: str | None = ... + Default: `default` """ - The token to use to retrieve the next page of results. This value is - `null` when there are no more results to return. + offering_type: str | None = ... """ - reserved_instances_modifications: list[ReservedInstancesModification] | None = ... - """The Reserved Instance modification information.""" - response_metadata: ResponseMetadata = ... + The Reserved Instance offering type. If you are using tools that predate + the 2011-11-01 API version, you only have access to the + `Medium Utilization` Reserved Instance offering type. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + next_token: str | None = ... + """The token to retrieve the next page of results.""" + max_results: int | None = ... """ + The maximum number of results to return for the request in a single + page. The remaining results of the initial request can be seen by + sending another request with the returned `NextToken` value. The maximum + is 100. -@dataclass(kw_only=True) -class DescribeReservedInstancesOfferingsInput(_SerdeShape): - """Contains the parameters for DescribeReservedInstancesOfferings.""" + Default: 100 + """ - availability_zone: str | None = ... +class DescribeReservedInstancesOfferingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeReservedInstancesOfferingsInput`.""" + + availability_zone: str | None """ The Availability Zone in which the Reserved Instance can be used. Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but not both. """ - include_marketplace: bool | None = ... + include_marketplace: bool | None """Include Reserved Instance Marketplace offerings in the response.""" - instance_type: str | None = ... + instance_type: str | None """ The instance type that the reservation will cover (for example, `m1.small`). For more information, see [Amazon EC2 instance types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide*. """ - max_duration: int | None = ... + max_duration: int | None """ The maximum duration (in seconds) to filter when searching for offerings. Default: 94608000 (3 years) """ - max_instance_count: int | None = ... + max_instance_count: int | None """ The maximum number of instances to filter when searching for offerings. Default: 20 """ - min_duration: int | None = ... + min_duration: int | None """ The minimum duration (in seconds) to filter when searching for offerings. Default: 2592000 (1 month) """ - offering_class: str | None = ... + offering_class: str | None """ The offering class of the Reserved Instance. Can be `standard` or `convertible`. """ - product_description: str | None = ... + product_description: str | None """ The Reserved Instance product platform description. Instances that include `(Amazon VPC)` in the description are for use with Amazon VPC. """ - reserved_instances_offering_ids: list[str] | None = ... + reserved_instances_offering_ids: Sequence[str] | None """One or more Reserved Instances offering IDs.""" - availability_zone_id: str | None = ... + availability_zone_id: str | None """ The ID of the Availability Zone. Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but not both. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ One or more filters. @@ -3736,7 +6289,7 @@ class DescribeReservedInstancesOfferingsInput(_SerdeShape): - `usage-price` - The usage price of the Reserved Instance, per hour (for example, 0.84). """ - instance_tenancy: str | None = ... + instance_tenancy: str | None """ The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of `dedicated` is applied to instances that run @@ -3747,15 +6300,15 @@ class DescribeReservedInstancesOfferingsInput(_SerdeShape): Default: `default` """ - offering_type: str | None = ... + offering_type: str | None """ The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the `Medium Utilization` Reserved Instance offering type. """ - next_token: str | None = ... + next_token: str | None """The token to retrieve the next page of results.""" - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by @@ -3818,6 +6371,25 @@ class DescribeRouteServerEndpointsInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DescribeRouteServerEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeRouteServerEndpointsInput`.""" + + route_server_endpoint_ids: Sequence[str] | None + """The IDs of the route server endpoints to describe.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """The maximum number of results to return with a single call.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to apply to the describe request.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeRouteServerEndpointsOutput(_SerdeShape): """Dataclass for DescribeRouteServerEndpointsOutput structure.""" @@ -3857,6 +6429,25 @@ class DescribeRouteServerPeersInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DescribeRouteServerPeersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeRouteServerPeersInput`.""" + + route_server_peer_ids: Sequence[str] | None + """The IDs of the route server peers to describe.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """The maximum number of results to return with a single call.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to apply to the describe request.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeRouteServerPeersOutput(_SerdeShape): """Dataclass for DescribeRouteServerPeersOutput structure.""" @@ -3876,71 +6467,190 @@ class DescribeRouteServerPeersOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class DescribeRouteServersInput(_SerdeShape): - """Dataclass for DescribeRouteServersInput structure.""" +@dataclass(kw_only=True) +class DescribeRouteServersInput(_SerdeShape): + """Dataclass for DescribeRouteServersInput structure.""" + + route_server_ids: list[str] | None = ... + """The IDs of the route servers to describe.""" + next_token: str | None = ... + """The token for the next page of results.""" + max_results: int | None = ... + """The maximum number of results to return with a single call.""" + filters: list[Filter] | None = ... + """One or more filters to apply to the describe request.""" + dry_run: bool | None = ... + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + +class DescribeRouteServersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeRouteServersInput`.""" + + route_server_ids: Sequence[str] | None + """The IDs of the route servers to describe.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """The maximum number of results to return with a single call.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to apply to the describe request.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeRouteServersOutput(_SerdeShape): + """Dataclass for DescribeRouteServersOutput structure.""" + + route_servers: list[RouteServer] | None = ... + """Information about the described route servers.""" + next_token: str | None = ... + """ + The token to use to retrieve the next page of results. This value is + `null` when there are no more results to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeRouteTablesInput(_SerdeShape): + """Dataclass for DescribeRouteTablesInput structure.""" + + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + route_table_ids: list[str] | None = ... + """The IDs of the route tables.""" + filters: list[Filter] | None = ... + """ + The filters. + + - `association.gateway-id` - The ID of the gateway involved in the + association. + + - `association.route-table-association-id` - The ID of an association ID + for the route table. + + - `association.route-table-id` - The ID of the route table involved in + the association. + + - `association.subnet-id` - The ID of the subnet involved in the + association. + + - `association.main` - Indicates whether the route table is the main + route table for the VPC (`true` | `false`). Route tables that do not + have an association ID are not returned in the response. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + route table. + + - `route-table-id` - The ID of the route table. + + - `route.destination-cidr-block` - The IPv4 CIDR range specified in a + route in the table. + + - `route.destination-ipv6-cidr-block` - The IPv6 CIDR range specified in + a route in the route table. + + - `route.destination-prefix-list-id` - The ID (prefix) of the Amazon Web + Services service specified in a route in the table. + + - `route.egress-only-internet-gateway-id` - The ID of an egress-only + Internet gateway specified in a route in the route table. + + - `route.gateway-id` - The ID of a gateway specified in a route in the + table. + + - `route.instance-id` - The ID of an instance specified in a route in + the table. + + - `route.nat-gateway-id` - The ID of a NAT gateway. + + - `route.transit-gateway-id` - The ID of a transit gateway. + + - `route.origin` - Describes how the route was created. + `CreateRouteTable` indicates that the route was automatically created + when the route table was created; `CreateRoute` indicates that the + route was manually added to the route table; + `EnableVgwRoutePropagation` indicates that the route was propagated by + route propagation. + + - `route.state` - The state of a route in the route table (`active` | + `blackhole`). The blackhole state indicates that the route's target + isn't available (for example, the specified gateway isn't attached + to the VPC, the specified NAT instance has been terminated, and so + on). + + - `route.vpc-peering-connection-id` - The ID of a VPC peering connection + specified in a route in the table. - route_server_ids: list[str] | None = ... - """The IDs of the route servers to describe.""" - next_token: str | None = ... - """The token for the next page of results.""" - max_results: int | None = ... - """The maximum number of results to return with a single call.""" - filters: list[Filter] | None = ... - """One or more filters to apply to the describe request.""" - dry_run: bool | None = ... - """ - A check for whether you have the required permissions for the action - without actually making the request and provides an error response. If - you have the required permissions, the error response is - `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. - """ + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. -@dataclass(kw_only=True) -class DescribeRouteServersOutput(_SerdeShape): - """Dataclass for DescribeRouteServersOutput structure.""" + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. - route_servers: list[RouteServer] | None = ... - """Information about the described route servers.""" - next_token: str | None = ... - """ - The token to use to retrieve the next page of results. This value is - `null` when there are no more results to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + - `vpc-id` - The ID of the VPC for the route table. """ -@dataclass(kw_only=True) -class DescribeRouteTablesInput(_SerdeShape): - """Dataclass for DescribeRouteTablesInput structure.""" +class DescribeRouteTablesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeRouteTablesInput`.""" - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - route_table_ids: list[str] | None = ... + route_table_ids: Sequence[str] | None """The IDs of the route tables.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. @@ -4083,6 +6793,57 @@ class DescribeScheduledInstanceAvailabilityInput(_SerdeShape): recurrence: ScheduledInstanceRecurrenceRequest | None = ... """The schedule recurrence.""" +class DescribeScheduledInstanceAvailabilityInputDict(TypedDict, total=False): + """Dictionary form of `DescribeScheduledInstanceAvailabilityInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone` - The Availability Zone (for example, + `us-west-2a`). + + - `instance-type` - The instance type (for example, `c4.large`). + + - `platform` - The platform (`Linux/UNIX` or `Windows`). + """ + first_slot_start_time_range: Required[ + SlotDateTimeRangeRequest | SlotDateTimeRangeRequestDict + ] + """The time period for the first schedule to start.""" + max_results: int | None + """ + The maximum number of results to return in a single call. This value can + be between 5 and 300. The default value is 300. To retrieve the + remaining results, make another call with the returned `NextToken` + value. + """ + max_slot_duration_in_hours: int | None + """ + The maximum available duration, in hours. This value must be greater + than `MinSlotDurationInHours` and less than 1,720. + """ + min_slot_duration_in_hours: int | None + """ + The minimum available duration, in hours. The minimum required duration + is 1,200 hours per year. For example, the minimum daily schedule is 4 + hours, the minimum weekly schedule is 24 hours, and the minimum monthly + schedule is 100 hours. + """ + next_token: str | None + """The token for the next set of results.""" + recurrence: Required[ + ScheduledInstanceRecurrenceRequest | ScheduledInstanceRecurrenceRequestDict + ] + """The schedule recurrence.""" + @dataclass(kw_only=True) class DescribeScheduledInstanceAvailabilityOutput(_SerdeShape): """Contains the output of DescribeScheduledInstanceAvailability.""" @@ -4140,6 +6901,43 @@ class DescribeScheduledInstancesInput(_SerdeShape): slot_start_time_range: SlotStartTimeRangeRequest | None = ... """The time period for the first schedule to start.""" +class DescribeScheduledInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeScheduledInstancesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone` - The Availability Zone (for example, + `us-west-2a`). + + - `instance-type` - The instance type (for example, `c4.large`). + + - `platform` - The platform (`Linux/UNIX` or `Windows`). + """ + max_results: int | None + """ + The maximum number of results to return in a single call. This value can + be between 5 and 300. The default value is 100. To retrieve the + remaining results, make another call with the returned `NextToken` + value. + """ + next_token: str | None + """The token for the next set of results.""" + scheduled_instance_ids: Sequence[str] | None + """The Scheduled Instance IDs.""" + slot_start_time_range: ( + SlotStartTimeRangeRequest | SlotStartTimeRangeRequestDict | None + ) + """The time period for the first schedule to start.""" + @dataclass(kw_only=True) class DescribeScheduledInstancesOutput(_SerdeShape): """Contains the output of DescribeScheduledInstances.""" @@ -4206,8 +7004,153 @@ class DescribeSecondaryInterfacesInput(_SerdeShape): - `secondary-subnet-id` - The ID of the secondary subnet. - - `status` - The status of the secondary interface (`available` | - `in-use`). + - `status` - The status of the secondary interface (`available` | + `in-use`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + max_results: int | None = ... + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None = ... + """The token for the next page of results.""" + secondary_interface_ids: list[str] | None = ... + """The IDs of the secondary interfaces.""" + +class DescribeSecondaryInterfacesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSecondaryInterfacesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `attachment.attachment-id` - The ID of the secondary interface + attachment. + + - `attachment.instance-id` - The ID of the instance to which the + secondary interface is attached. + + - `attachment.instance-owner-id` - The ID of the Amazon Web Services + account that owns the instance to which the secondary interface is + attached. + + - `attachment.status` - The attachment status (`attaching` | `attached` + | `detaching` | `detached`). + + - `private-ipv4-addresses.private-ip-address` - The private IPv4 address + associated with the secondary interface. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + secondary interface. + + - `secondary-interface-arn` - The ARN of the secondary interface. + + - `secondary-interface-id` - The ID of the secondary interface. + + - `secondary-interface-type` - The type of secondary interface + (`secondary`). + + - `secondary-network-id` - The ID of the secondary network. + + - `secondary-network-type` - The type of the secondary network (`rdma`). + + - `secondary-subnet-id` - The ID of the secondary subnet. + + - `status` - The status of the secondary interface (`available` | + `in-use`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + secondary_interface_ids: Sequence[str] | None + """The IDs of the secondary interfaces.""" + +@dataclass(kw_only=True) +class DescribeSecondaryInterfacesOutput(_SerdeShape): + """Dataclass for DescribeSecondaryInterfacesOutput structure.""" + + secondary_interfaces: list[SecondaryInterface] | None = ... + """Information about the secondary interfaces.""" + next_token: str | None = ... + """ + The token to use to retrieve the next page of results. This value is + `null` when there are no more results to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeSecondaryNetworksInput(_SerdeShape): + """Dataclass for DescribeSecondaryNetworksInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + The filters. The following are the possible values: + + - `ipv4-cidr-block-association.association-id` - The association ID for + an IPv4 CIDR block associated with the secondary network. + + - `ipv4-cidr-block-association.cidr-block` - An IPv4 CIDR block + associated with the secondary network. + + - `ipv4-cidr-block-association.state` - The state of an IPv4 CIDR block + associated with the secondary network. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + secondary network. + + - `secondary-network-id` - The ID of the secondary network. + + - `secondary-network-arn` - The ARN of the secondary network. + + - `state` - The state of the secondary network (`create-in-progress` | + `create-complete` | `create-failed` | `delete-in-progress` | + `delete-complete` | `delete-failed`). - `tag`:``{=html} - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as @@ -4218,6 +7161,8 @@ class DescribeSecondaryInterfacesInput(_SerdeShape): - `tag-key` - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. + + - `type` - The type of the secondary network (`rdma`). """ max_results: int | None = ... """ @@ -4227,40 +7172,20 @@ class DescribeSecondaryInterfacesInput(_SerdeShape): """ next_token: str | None = ... """The token for the next page of results.""" - secondary_interface_ids: list[str] | None = ... - """The IDs of the secondary interfaces.""" - -@dataclass(kw_only=True) -class DescribeSecondaryInterfacesOutput(_SerdeShape): - """Dataclass for DescribeSecondaryInterfacesOutput structure.""" - - secondary_interfaces: list[SecondaryInterface] | None = ... - """Information about the secondary interfaces.""" - next_token: str | None = ... - """ - The token to use to retrieve the next page of results. This value is - `null` when there are no more results to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + secondary_network_ids: list[str] | None = ... + """The IDs of the secondary networks.""" -@dataclass(kw_only=True) -class DescribeSecondaryNetworksInput(_SerdeShape): - """Dataclass for DescribeSecondaryNetworksInput structure.""" +class DescribeSecondaryNetworksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSecondaryNetworksInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. The following are the possible values: @@ -4296,15 +7221,15 @@ class DescribeSecondaryNetworksInput(_SerdeShape): - `type` - The type of the secondary network (`rdma`). """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value. """ - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - secondary_network_ids: list[str] | None = ... + secondary_network_ids: Sequence[str] | None """The IDs of the secondary networks.""" @dataclass(kw_only=True) @@ -4386,6 +7311,65 @@ class DescribeSecondarySubnetsInput(_SerdeShape): secondary_subnet_ids: list[str] | None = ... """The IDs of the secondary subnets.""" +class DescribeSecondarySubnetsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSecondarySubnetsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `ipv4-cidr-block-association.association-id` - The association ID for + an IPv4 CIDR block associated with the secondary subnet. + + - `ipv4-cidr-block-association.cidr-block` - An IPv4 CIDR block + associated with the secondary subnet. + + - `ipv4-cidr-block-association.state` - The state of an IPv4 CIDR block + associated with the secondary subnet. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + secondary subnet. + + - `secondary-network-id` - The ID of the secondary network. + + - `secondary-network-type` - The type of the secondary network (`rdma`). + + - `secondary-subnet-id` - The ID of the secondary subnet. + + - `secondary-subnet-arn` - The ARN of the secondary subnet. + + - `state` - The state of the secondary subnet (`create-in-progress` | + `create-complete` | `create-failed` | `delete-in-progress` | + `delete-complete` | `delete-failed`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + secondary_subnet_ids: Sequence[str] | None + """The IDs of the secondary subnets.""" + @dataclass(kw_only=True) class DescribeSecondarySubnetsOutput(_SerdeShape): """Dataclass for DescribeSecondarySubnetsOutput structure.""" @@ -4419,6 +7403,19 @@ class DescribeSecurityGroupReferencesInput(_SerdeShape): group_id: list[str] | None = ... """The IDs of the security groups in your account.""" +class DescribeSecurityGroupReferencesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSecurityGroupReferencesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + group_id: Required[Sequence[str]] + """The IDs of the security groups in your account.""" + @dataclass(kw_only=True) class DescribeSecurityGroupReferencesOutput(_SerdeShape): """Dataclass for DescribeSecurityGroupReferencesOutput structure.""" @@ -4474,6 +7471,46 @@ class DescribeSecurityGroupRulesInput(_SerdeShape): [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ +class DescribeSecurityGroupRulesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSecurityGroupRulesInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `group-id` - The ID of the security group. + + - `security-group-rule-id` - The ID of the security group rule. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + """ + security_group_rule_ids: Sequence[str] | None + """The IDs of the security group rules.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. This value can be between 5 and 1000. If this parameter is not + specified, then all items are returned. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + @dataclass(kw_only=True) class DescribeSecurityGroupRulesOutput(_SerdeShape): """Dataclass for DescribeSecurityGroupRulesOutput structure.""" @@ -4493,30 +7530,152 @@ class DescribeSecurityGroupRulesOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class DescribeSecurityGroupsInput(_SerdeShape): - """Dataclass for DescribeSecurityGroupsInput structure.""" +@dataclass(kw_only=True) +class DescribeSecurityGroupsInput(_SerdeShape): + """Dataclass for DescribeSecurityGroupsInput structure.""" + + group_ids: list[str] | None = ... + """ + The IDs of the security groups. Required for security groups in a + nondefault VPC. + + Default: Describes all of your security groups. + """ + group_names: list[str] | None = ... + """ + [Default VPC] The names of the security groups. You can specify either + the security group name or the security group ID. + + Default: Describes all of your security groups. + """ + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. This value can be between 5 and 1000. If this parameter is not + specified, then all items are returned. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + The filters. If using multiple filters for rules, the results include + security groups for which any combination of rules - not necessarily a + single rule - match all filters. + + - `description` - The description of the security group. + + - `egress.ip-permission.cidr` - An IPv4 CIDR block for an outbound + security group rule. + + - `egress.ip-permission.from-port` - For an outbound rule, the start of + port range for the TCP and UDP protocols, or an ICMP type number. + + - `egress.ip-permission.group-id` - The ID of a security group that has + been referenced in an outbound security group rule. + + - `egress.ip-permission.group-name` - The name of a security group that + is referenced in an outbound security group rule. + + - `egress.ip-permission.ipv6-cidr` - An IPv6 CIDR block for an outbound + security group rule. + + - `egress.ip-permission.prefix-list-id` - The ID of a prefix list to + which a security group rule allows outbound access. + + - `egress.ip-permission.protocol` - The IP protocol for an outbound + security group rule (`tcp` | `udp` | `icmp`, a protocol number, or + -1 for all protocols). + + - `egress.ip-permission.to-port` - For an outbound rule, the end of port + range for the TCP and UDP protocols, or an ICMP code. + + - `egress.ip-permission.user-id` - The ID of an Amazon Web Services + account that has been referenced in an outbound security group rule. + + - `group-id` - The ID of the security group. + + - `group-name` - The name of the security group. + + - `ip-permission.cidr` - An IPv4 CIDR block for an inbound security + group rule. + + - `ip-permission.from-port` - For an inbound rule, the start of port + range for the TCP and UDP protocols, or an ICMP type number. + + - `ip-permission.group-id` - The ID of a security group that has been + referenced in an inbound security group rule. + + - `ip-permission.group-name` - The name of a security group that is + referenced in an inbound security group rule. + + - `ip-permission.ipv6-cidr` - An IPv6 CIDR block for an inbound security + group rule. + + - `ip-permission.prefix-list-id` - The ID of a prefix list from which a + security group rule allows inbound access. + + - `ip-permission.protocol` - The IP protocol for an inbound security + group rule (`tcp` | `udp` | `icmp`, a protocol number, or -1 for all + protocols). + + - `ip-permission.to-port` - For an inbound rule, the end of port range + for the TCP and UDP protocols, or an ICMP code. + + - `ip-permission.user-id` - The ID of an Amazon Web Services account + that has been referenced in an inbound security group rule. + + - `owner-id` - The Amazon Web Services account ID of the owner of the + security group. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC specified when the security group was + created. + """ + +class DescribeSecurityGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSecurityGroupsInput`.""" - group_ids: list[str] | None = ... + group_ids: Sequence[str] | None """ The IDs of the security groups. Required for security groups in a nondefault VPC. Default: Describes all of your security groups. """ - group_names: list[str] | None = ... + group_names: Sequence[str] | None """ [Default VPC] The names of the security groups. You can specify either the security group name or the security group ID. Default: Describes all of your security groups. """ - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the @@ -4524,14 +7683,14 @@ class DescribeSecurityGroupsInput(_SerdeShape): specified, then all items are returned. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. If using multiple filters for rules, the results include security groups for which any combination of rules - not necessarily a @@ -4673,6 +7832,43 @@ class DescribeSecurityGroupVpcAssociationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeSecurityGroupVpcAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSecurityGroupVpcAssociationsInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + Security group VPC association filters. + + - `group-id`: The security group ID. + + - `group-owner-id`: The group owner ID. + + - `state`: The state of the association. + + - `vpc-id`: The ID of the associated VPC. + + - `vpc-owner-id`: The account ID of the VPC owner. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeSecurityGroupVpcAssociationsOutput(_SerdeShape): """Dataclass for DescribeSecurityGroupVpcAssociationsOutput structure.""" @@ -4736,6 +7932,49 @@ class DescribeServiceLinkVirtualInterfacesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeServiceLinkVirtualInterfacesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeServiceLinkVirtualInterfacesInput`.""" + + service_link_virtual_interface_ids: Sequence[str] | None + """The IDs of the service link virtual interfaces.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters to use for narrowing down the request. The following filters + are supported: + + - `outpost-lag-id` - The ID of the Outpost LAG. + + - `outpost-arn` - The Outpost ARN. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + service link virtual interface. + + - `state` - The state of the Outpost LAG. + + - `vlan` - The ID of the address pool. + + - `service-link-virtual-interface-id` - The ID of the service link + virtual interface. + + - `local-gateway-virtual-interface-id` - The ID of the local gateway + virtual interface. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeServiceLinkVirtualInterfacesOutput(_SerdeShape): """Dataclass for DescribeServiceLinkVirtualInterfacesOutput structure.""" @@ -4771,6 +8010,21 @@ class DescribeSnapshotAttributeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeSnapshotAttributeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSnapshotAttributeInput`.""" + + attribute: Required[str] + """The snapshot attribute you would like to view.""" + snapshot_id: Required[str] + """The ID of the EBS snapshot.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeSnapshotAttributeOutput(_SerdeShape): """Dataclass for DescribeSnapshotAttributeOutput structure.""" @@ -4881,6 +8135,94 @@ class DescribeSnapshotsInput(_SerdeShape): - `volume-size` - The size of the volume, in GiB. """ +class DescribeSnapshotsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSnapshotsInput`.""" + + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + owner_ids: Sequence[str] | None + """ + Scopes the results to snapshots with the specified owners. You can + specify a combination of Amazon Web Services account IDs, `self`, and + `amazon`. + """ + restorable_by_user_ids: Sequence[str] | None + """ + The IDs of the Amazon Web Services accounts that can create volumes from + the snapshot. + """ + snapshot_ids: Sequence[str] | None + """ + The snapshot IDs. + + Default: Describes the snapshots for which you have create volume + permissions. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `description` - A description of the snapshot. + + - `encrypted` - Indicates whether the snapshot is encrypted (`true` | + `false`) + + - `owner-alias` - The owner alias, from an Amazon-maintained list + (`amazon`). This is not the user-configured Amazon Web Services + account alias set using the IAM console. We recommend that you use the + related parameter instead of this filter. + + - `owner-id` - The Amazon Web Services account ID of the owner. We + recommend that you use the related parameter instead of this filter. + + - `progress` - The progress of the snapshot, as a percentage (for + example, 80%). + + - `snapshot-id` - The snapshot ID. + + - `start-time` - The time stamp when the snapshot was initiated. + + - `status` - The status of the snapshot (`pending` | `completed` | + `error`). + + - `storage-tier` - The storage tier of the snapshot (`archive` | + `standard`). + + - `transfer-type` - The type of operation used to create the snapshot + (`time-based` | `standard`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `volume-id` - The ID of the volume the snapshot is for. + + - `volume-size` - The size of the volume, in GiB. + """ + @dataclass(kw_only=True) class DescribeSnapshotsOutput(_SerdeShape): """Dataclass for DescribeSnapshotsOutput structure.""" @@ -4939,6 +8281,44 @@ class DescribeSnapshotTierStatusInput(_SerdeShape): [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ +class DescribeSnapshotTierStatusInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSnapshotTierStatusInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `snapshot-id` - The snapshot ID. + + - `volume-id` - The ID of the volume the snapshot is for. + + - `last-tiering-operation` - The state of the last archive or restore + action. (`archival-in-progress` | `archival-completed` | + `archival-failed` | `permanent-restore-in-progress` | + `permanent-restore-completed` | `permanent-restore-failed` | + `temporary-restore-in-progress` | `temporary-restore-completed` | + `temporary-restore-failed`) + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + @dataclass(kw_only=True) class DescribeSnapshotTierStatusOutput(_SerdeShape): """Dataclass for DescribeSnapshotTierStatusOutput structure.""" @@ -4970,6 +8350,17 @@ class DescribeSpotDatafeedSubscriptionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeSpotDatafeedSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSpotDatafeedSubscriptionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeSpotDatafeedSubscriptionOutput(_SerdeShape): """Contains the output of DescribeSpotDatafeedSubscription.""" @@ -5010,6 +8401,31 @@ class DescribeSpotFleetInstancesInput(_SerdeShape): [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ +class DescribeSpotFleetInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSpotFleetInstancesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + spot_fleet_request_id: Required[str] + """The ID of the Spot Fleet request.""" + next_token: str | None + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + @dataclass(kw_only=True) class DescribeSpotFleetInstancesOutput(_SerdeShape): """Contains the output of DescribeSpotFleetInstances.""" @@ -5028,38 +8444,70 @@ class DescribeSpotFleetInstancesOutput(_SerdeShape): """The ID of the Spot Fleet request.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeSpotFleetRequestHistoryInput(_SerdeShape): + """Contains the parameters for DescribeSpotFleetRequestHistory.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + spot_fleet_request_id: str | None = ... + """The ID of the Spot Fleet request.""" + event_type: str | None = ... + """The type of events to describe. By default, all events are described.""" + start_time: datetime | None = ... + """ + The starting date and time for the events, in UTC format (for example, + *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). + """ + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ -@dataclass(kw_only=True) -class DescribeSpotFleetRequestHistoryInput(_SerdeShape): - """Contains the parameters for DescribeSpotFleetRequestHistory.""" +class DescribeSpotFleetRequestHistoryInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSpotFleetRequestHistoryInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - spot_fleet_request_id: str | None = ... + spot_fleet_request_id: Required[str] """The ID of the Spot Fleet request.""" - event_type: str | None = ... + event_type: str | None """The type of events to describe. By default, all events are described.""" - start_time: datetime | None = ... + start_time: Required[datetime] """ The starting date and time for the events, in UTC format (for example, *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). """ - next_token: str | None = ... + next_token: str | None """ The token to include in another request to get the next page of items. This value is `null` when there are no more items to return. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the @@ -5128,6 +8576,31 @@ class DescribeSpotFleetRequestsInput(_SerdeShape): [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ +class DescribeSpotFleetRequestsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSpotFleetRequestsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + spot_fleet_request_ids: Sequence[str] | None + """The IDs of the Spot Fleet requests.""" + next_token: str | None + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + @dataclass(kw_only=True) class DescribeSpotFleetRequestsOutput(_SerdeShape): """Contains the output of DescribeSpotFleetRequests.""" @@ -5294,60 +8767,285 @@ class DescribeSpotInstanceRequestsInput(_SerdeShape): - `valid-until` - The end date of the request. """ -@dataclass(kw_only=True) -class DescribeSpotInstanceRequestsOutput(_SerdeShape): - """Contains the output of DescribeSpotInstanceRequests.""" - - spot_instance_requests: list[SpotInstanceRequest] | None = ... - """The Spot Instance requests.""" - next_token: str | None = ... +class DescribeSpotInstanceRequestsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSpotInstanceRequestsInput`.""" + + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + spot_instance_request_ids: Sequence[str] | None + """The IDs of the Spot Instance requests.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone-group` - The Availability Zone group. + + - `create-time` - The time stamp when the Spot Instance request was + created. + + - `fault-code` - The fault code related to the request. + + - `fault-message` - The fault message related to the request. + + - `instance-id` - The ID of the instance that fulfilled the request. + + - `launch-group` - The Spot Instance launch group. + + - `launch.block-device-mapping.delete-on-termination` - Indicates + whether the EBS volume is deleted on instance termination. + + - `launch.block-device-mapping.device-name` - The device name for the + volume in the block device mapping (for example, `/dev/sdh` or + `xvdh`). + + - `launch.block-device-mapping.snapshot-id` - The ID of the snapshot for + the EBS volume. + + - `launch.block-device-mapping.volume-size` - The size of the EBS + volume, in GiB. + + - `launch.block-device-mapping.volume-type` - The type of EBS volume: + `gp2` or `gp3` for General Purpose SSD, `io1` or `io2` for Provisioned + IOPS SSD, `st1` for Throughput Optimized HDD, `sc1` for Cold HDD, or + `standard` for Magnetic. + + - `launch.group-id` - The ID of the security group for the instance. + + - `launch.group-name` - The name of the security group for the instance. + + - `launch.image-id` - The ID of the AMI. + + - `launch.instance-type` - The type of instance (for example, + `m3.medium`). + + - `launch.kernel-id` - The kernel ID. + + - `launch.key-name` - The name of the key pair the instance launched + with. + + - `launch.monitoring-enabled` - Whether detailed monitoring is enabled + for the Spot Instance. + + - `launch.ramdisk-id` - The RAM disk ID. + + - `launched-availability-zone` - The Availability Zone in which the + request is launched. + + - `launched-availability-zone-id` - The ID of the Availability Zone in + which the request is launched. + + - `network-interface.addresses.primary` - Indicates whether the IP + address is the primary private IP address. + + - `network-interface.delete-on-termination` - Indicates whether the + network interface is deleted when the instance is terminated. + + - `network-interface.description` - A description of the network + interface. + + - `network-interface.device-index` - The index of the device for the + network interface attachment on the instance. + + - `network-interface.group-id` - The ID of the security group associated + with the network interface. + + - `network-interface.network-interface-id` - The ID of the network + interface. + + - `network-interface.private-ip-address` - The primary private IP + address of the network interface. + + - `network-interface.subnet-id` - The ID of the subnet for the instance. + + - `product-description` - The product description associated with the + instance (`Linux/UNIX` | `Windows`). + + - `spot-instance-request-id` - The Spot Instance request ID. + + - `spot-price` - The maximum hourly price for any Spot Instance launched + to fulfill the request. + + - `state` - The state of the Spot Instance request (`open` | `active` + | `closed` | `cancelled` | `failed`). Spot request status + information can help you track your Amazon EC2 Spot Instance requests. + For more information, see [Spot request + status](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html) + in the *Amazon EC2 User Guide*. + + - `status-code` - The short code describing the most recent evaluation + of your Spot Instance request. + + - `status-message` - The message explaining the status of the Spot + Instance request. + + - `tag:```{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `type` - The type of Spot Instance request (`one-time` | + `persistent`). + + - `valid-from` - The start date of the request. + + - `valid-until` - The end date of the request. + """ + +@dataclass(kw_only=True) +class DescribeSpotInstanceRequestsOutput(_SerdeShape): + """Contains the output of DescribeSpotInstanceRequests.""" + + spot_instance_requests: list[SpotInstanceRequest] | None = ... + """The Spot Instance requests.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeSpotPriceHistoryInput(_SerdeShape): + """Contains the parameters for DescribeSpotPriceHistory.""" + + availability_zone_id: str | None = ... + """ + Filters the results by the specified ID of the Availability Zone. + + Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but + not both + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + start_time: datetime | None = ... + """ + The date and time, up to the past 90 days, from which to start + retrieving the price history data, in UTC format (for example, + *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). + """ + end_time: datetime | None = ... + """ + The date and time, up to the current date, from which to stop retrieving + the price history data, in UTC format (for example, + *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). + """ + instance_types: list[str] | None = ... + """Filters the results by the specified instance types.""" + product_descriptions: list[str] | None = ... + """Filters the results by the specified basic product descriptions.""" + filters: list[Filter] | None = ... + """ + The filters. + + - `availability-zone` - The Availability Zone for which prices should be + returned. + + - `availability-zone-id` - The ID of the Availability Zone for which + prices should be returned. + + - `instance-type` - The type of instance (for example, `m3.medium`). + + - `product-description` - The product description for the Spot price + (`Linux/UNIX` | `Red Hat Enterprise Linux` | `SUSE Linux` | + `Windows` | `Linux/UNIX (Amazon VPC)` | + `Red Hat Enterprise Linux (Amazon VPC)` | `SUSE Linux (Amazon VPC)` + | `Windows (Amazon VPC)`). + + - `spot-price` - The Spot price. The value must match exactly (or use + wildcards; greater than or less than comparison is not supported). + + - `timestamp` - The time stamp of the Spot price history, in UTC format + (for example, *ddd MMM dd HH*:*mm*:*ss* UTC *YYYY*). You can use + wildcards (`*` and `?`). Greater than or less than comparison is not + supported. + """ + availability_zone: str | None = ... + """ + Filters the results by the specified Availability Zone. + + Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but + not both """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. + max_results: int | None = ... """ - response_metadata: ResponseMetadata = ... + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. """ -@dataclass(kw_only=True) -class DescribeSpotPriceHistoryInput(_SerdeShape): - """Contains the parameters for DescribeSpotPriceHistory.""" +class DescribeSpotPriceHistoryInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSpotPriceHistoryInput`.""" - availability_zone_id: str | None = ... + availability_zone_id: str | None """ Filters the results by the specified ID of the Availability Zone. Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but not both """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - start_time: datetime | None = ... + start_time: datetime | None """ The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). """ - end_time: datetime | None = ... + end_time: datetime | None """ The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). """ - instance_types: list[str] | None = ... + instance_types: Sequence[str] | None """Filters the results by the specified instance types.""" - product_descriptions: list[str] | None = ... + product_descriptions: Sequence[str] | None """Filters the results by the specified basic product descriptions.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. @@ -5373,21 +9071,21 @@ class DescribeSpotPriceHistoryInput(_SerdeShape): wildcards (`*` and `?`). Greater than or less than comparison is not supported. """ - availability_zone: str | None = ... + availability_zone: str | None """ Filters the results by the specified Availability Zone. Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but not both """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. @@ -5439,6 +9137,31 @@ class DescribeStaleSecurityGroupsInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class DescribeStaleSecurityGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStaleSecurityGroupsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + @dataclass(kw_only=True) class DescribeStaleSecurityGroupsOutput(_SerdeShape): """Dataclass for DescribeStaleSecurityGroupsOutput structure.""" @@ -5505,6 +9228,52 @@ class DescribeStoreImageTasksInput(_SerdeShape): same call. """ +class DescribeStoreImageTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStoreImageTasksInput`.""" + + image_ids: Sequence[str] | None + """ + The AMI IDs for which to show progress. Up to 20 AMI IDs can be included + in a request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `task-state` - Returns tasks in a certain state (`InProgress` | + `Completed` | `Failed`) + + - `bucket` - Returns task information for tasks that targeted a specific + bucket. For the filter value, specify the bucket name. + + Note: + When you specify the `ImageIds` parameter, any filters that you specify + are ignored. To use the filters, you must remove the `ImageIds` + parameter. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + You cannot specify this parameter and the `ImageIds` parameter in the + same call. + """ + @dataclass(kw_only=True) class DescribeStoreImageTasksOutput(_SerdeShape): """Dataclass for DescribeStoreImageTasksOutput structure.""" @@ -5645,6 +9414,126 @@ class DescribeSubnetsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeSubnetsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSubnetsInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `availability-zone` - The Availability Zone for the subnet. You can + also use `availabilityZone` as the filter name. + + - `availability-zone-id` - The ID of the Availability Zone for the + subnet. You can also use `availabilityZoneId` as the filter name. + + - `available-ip-address-count` - The number of IPv4 addresses in the + subnet that are available. + + - `cidr-block` - The IPv4 CIDR block of the subnet. The CIDR block you + specify must exactly match the subnet's CIDR block for information to + be returned for the subnet. You can also use `cidr` or `cidrBlock` as + the filter names. + + - `customer-owned-ipv4-pool` - The customer-owned IPv4 address pool + associated with the subnet. + + - `default-for-az` - Indicates whether this is the default subnet for + the Availability Zone (`true` | `false`). You can also use + `defaultForAz` as the filter name. + + - `enable-dns64` - Indicates whether DNS queries made to the + Amazon-provided DNS Resolver in this subnet should return synthetic + IPv6 addresses for IPv4-only destinations. + + - `enable-lni-at-device-index` - Indicates the device position for local + network interfaces in this subnet. For example, `1` indicates local + network interfaces in this subnet are the secondary network interface + (eth1). + + - `ipv6-cidr-block-association.ipv6-cidr-block` - An IPv6 CIDR block + associated with the subnet. + + - `ipv6-cidr-block-association.association-id` - An association ID for + an IPv6 CIDR block associated with the subnet. + + - `ipv6-cidr-block-association.state` - The state of an IPv6 CIDR block + associated with the subnet. + + - `ipv6-native` - Indicates whether this is an IPv6 only subnet (`true` + | `false`). + + - `map-customer-owned-ip-on-launch` - Indicates whether a network + interface created in this subnet (including a network interface + created by RunInstances) receives a customer-owned IPv4 address. + + - `map-public-ip-on-launch` - Indicates whether instances launched in + this subnet receive a public IPv4 address. + + - `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + subnet. + + - `private-dns-name-options-on-launch.hostname-type` - The type of + hostname to assign to instances in the subnet at launch. For IPv4-only + and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be + based on the instance IPv4 address (ip-name) or the instance ID + (resource-name). For IPv6 only subnets, an instance DNS name must be + based on the instance ID (resource-name). + + - `private-dns-name-options-on-launch.enable-resource-name-dns-a-record` - + Indicates whether to respond to DNS queries for instance hostnames + with DNS A records. + + - `private-dns-name-options-on-launch.enable-resource-name-dns-aaaa-record` - + Indicates whether to respond to DNS queries for instance hostnames + with DNS AAAA records. + + - `state` - The state of the subnet (`pending` | `available`). + + - `subnet-arn` - The Amazon Resource Name (ARN) of the subnet. + + - `subnet-id` - The ID of the subnet. + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC for the subnet. + """ + subnet_ids: Sequence[str] | None + """ + The IDs of the subnets. + + Default: Describes all your subnets. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeSubnetsOutput(_SerdeShape): """Dataclass for DescribeSubnetsOutput structure.""" @@ -5658,24 +9547,65 @@ class DescribeSubnetsOutput(_SerdeShape): """Information about the subnets.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeTagsInput(_SerdeShape): + """Dataclass for DescribeTagsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + The filters. + + - `key` - The tag key. + + - `resource-id` - The ID of the resource. + + - `resource-type` - The resource type. For a list of possible values, + see + [TagSpecification](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TagSpecification.html). + + - `tag`:``{=html} - The key/value combination of the tag. For + example, specify \"tag:Owner\" for the filter name and \"TeamA\" for + the filter value to find resources with the tag \"Owner=TeamA\". + + - `value` - The tag value. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. This value can + be between 5 and 1000. To get the next page of items, make another + request with the token returned in the output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. """ -@dataclass(kw_only=True) -class DescribeTagsInput(_SerdeShape): - """Dataclass for DescribeTagsInput structure.""" +class DescribeTagsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTagsInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. @@ -5693,14 +9623,14 @@ class DescribeTagsInput(_SerdeShape): - `value` - The tag value. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. This value can be between 5 and 1000. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. @@ -5777,6 +9707,57 @@ class DescribeTrafficMirrorFilterRulesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeTrafficMirrorFilterRulesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTrafficMirrorFilterRulesInput`.""" + + traffic_mirror_filter_rule_ids: Sequence[str] | None + """Traffic filter rule IDs.""" + traffic_mirror_filter_id: str | None + """Traffic filter ID.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + Traffic mirror filters. + + - `traffic-mirror-filter-rule-id`: The ID of the Traffic Mirror rule. + + - `traffic-mirror-filter-id`: The ID of the filter that this rule is + associated with. + + - `rule-number`: The number of the Traffic Mirror rule. + + - `rule-action`: The action taken on the filtered traffic. Possible + actions are `accept` and `reject`. + + - `traffic-direction`: The traffic direction. Possible directions are + `ingress` and `egress`. + + - `protocol`: The protocol, for example UDP, assigned to the Traffic + Mirror rule. + + - `source-cidr-block`: The source CIDR block assigned to the Traffic + Mirror rule. + + - `destination-cidr-block`: The destination CIDR block assigned to the + Traffic Mirror rule. + + - `description`: The description of the Traffic Mirror rule. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeTrafficMirrorFilterRulesOutput(_SerdeShape): """Dataclass for DescribeTrafficMirrorFilterRulesOutput structure.""" @@ -5826,6 +9807,35 @@ class DescribeTrafficMirrorFiltersInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeTrafficMirrorFiltersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTrafficMirrorFiltersInput`.""" + + traffic_mirror_filter_ids: Sequence[str] | None + """The ID of the Traffic Mirror filter.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `description`: The Traffic Mirror filter description. + + - `traffic-mirror-filter-id`: The ID of the Traffic Mirror filter. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeTrafficMirrorFiltersOutput(_SerdeShape): """Dataclass for DescribeTrafficMirrorFiltersOutput structure.""" @@ -5892,6 +9902,52 @@ class DescribeTrafficMirrorSessionsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeTrafficMirrorSessionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTrafficMirrorSessionsInput`.""" + + traffic_mirror_session_ids: Sequence[str] | None + """The ID of the Traffic Mirror session.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `description`: The Traffic Mirror session description. + + - `network-interface-id`: The ID of the Traffic Mirror session network + interface. + + - `owner-id`: The ID of the account that owns the Traffic Mirror + session. + + - `packet-length`: The assigned number of packets to mirror. + + - `session-number`: The assigned session number. + + - `traffic-mirror-filter-id`: The ID of the Traffic Mirror filter. + + - `traffic-mirror-session-id`: The ID of the Traffic Mirror session. + + - `traffic-mirror-target-id`: The ID of the Traffic Mirror target. + + - `virtual-network-id`: The virtual network ID of the Traffic Mirror + session. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeTrafficMirrorSessionsOutput(_SerdeShape): """Dataclass for DescribeTrafficMirrorSessionsOutput structure.""" @@ -5954,6 +10010,44 @@ class DescribeTrafficMirrorTargetsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class DescribeTrafficMirrorTargetsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTrafficMirrorTargetsInput`.""" + + traffic_mirror_target_ids: Sequence[str] | None + """The ID of the Traffic Mirror targets.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `description`: The Traffic Mirror target description. + + - `network-interface-id`: The ID of the Traffic Mirror session network + interface. + + - `network-load-balancer-arn`: The Amazon Resource Name (ARN) of the + Network Load Balancer that is associated with the session. + + - `owner-id`: The ID of the account that owns the Traffic Mirror + session. + + - `traffic-mirror-target-id`: The ID of the Traffic Mirror target. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class DescribeTrafficMirrorTargetsOutput(_SerdeShape): """Dataclass for DescribeTrafficMirrorTargetsOutput structure.""" @@ -6025,6 +10119,57 @@ class DescribeTransitGatewayAttachmentsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewayAttachmentsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayAttachmentsInput`.""" + + transit_gateway_attachment_ids: Sequence[str] | None + """The IDs of the attachments.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `association.state` - The state of the association (`associating` | + `associated` | `disassociating`). + + - `association.transit-gateway-route-table-id` - The ID of the route + table for the transit gateway. + + - `resource-id` - The ID of the resource. + + - `resource-owner-id` - The ID of the Amazon Web Services account that + owns the resource. + + - `resource-type` - The resource type. Valid values are `vpc` | `vpn` + | `direct-connect-gateway` | `peering` | `connect`. + + - `state` - The state of the attachment. Valid values are `available` | + `deleted` | `deleting` | `failed` | `failing` | + `initiatingRequest` | `modifying` | `pendingAcceptance` | `pending` + | `rollingBack` | `rejected` | `rejecting`. + + - `transit-gateway-attachment-id` - The ID of the attachment. + + - `transit-gateway-id` - The ID of the transit gateway. + + - `transit-gateway-owner-id` - The ID of the Amazon Web Services account + that owns the transit gateway. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewayAttachmentsOutput(_SerdeShape): """Dataclass for DescribeTransitGatewayAttachmentsOutput structure.""" @@ -6077,6 +10222,38 @@ class DescribeTransitGatewayConnectPeersInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewayConnectPeersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayConnectPeersInput`.""" + + transit_gateway_connect_peer_ids: Sequence[str] | None + """The IDs of the Connect peers.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `state` - The state of the Connect peer (`pending` | `available` | + `deleting` | `deleted`). + + - `transit-gateway-attachment-id` - The ID of the attachment. + + - `transit-gateway-connect-peer-id` - The ID of the Connect peer. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewayConnectPeersOutput(_SerdeShape): """Dataclass for DescribeTransitGatewayConnectPeersOutput structure.""" @@ -6096,13 +10273,52 @@ class DescribeTransitGatewayConnectPeersOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class DescribeTransitGatewayConnectsInput(_SerdeShape): - """Dataclass for DescribeTransitGatewayConnectsInput structure.""" +@dataclass(kw_only=True) +class DescribeTransitGatewayConnectsInput(_SerdeShape): + """Dataclass for DescribeTransitGatewayConnectsInput structure.""" + + transit_gateway_attachment_ids: list[str] | None = ... + """The IDs of the attachments.""" + filters: list[Filter] | None = ... + """ + One or more filters. The possible values are: + + - `options.protocol` - The tunnel protocol (`gre`). + + - `state` - The state of the attachment (`initiating` | + `initiatingRequest` | `pendingAcceptance` | `rollingBack` | + `pending` | `available` | `modifying` | `deleting` | `deleted` | + `failed` | `rejected` | `rejecting` | `failing`). + + - `transit-gateway-attachment-id` - The ID of the Connect attachment. + + - `transit-gateway-id` - The ID of the transit gateway. + + - `transport-transit-gateway-attachment-id` - The ID of the transit + gateway attachment from which the Connect attachment was created. + """ + max_results: int | None = ... + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None = ... + """The token for the next page of results.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class DescribeTransitGatewayConnectsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayConnectsInput`.""" - transit_gateway_attachment_ids: list[str] | None = ... + transit_gateway_attachment_ids: Sequence[str] | None """The IDs of the attachments.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ One or more filters. The possible values are: @@ -6120,15 +10336,15 @@ class DescribeTransitGatewayConnectsInput(_SerdeShape): - `transport-transit-gateway-attachment-id` - The ID of the transit gateway attachment from which the Connect attachment was created. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value. """ - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -6182,6 +10398,32 @@ class DescribeTransitGatewayMeteringPoliciesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewayMeteringPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayMeteringPoliciesInput`.""" + + transit_gateway_metering_policy_ids: Sequence[str] | None + """The IDs of the transit gateway metering policies to describe.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters to apply when describing transit gateway metering + policies. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewayMeteringPoliciesOutput(_SerdeShape): """Dataclass for DescribeTransitGatewayMeteringPoliciesOutput structure.""" @@ -6235,6 +10477,39 @@ class DescribeTransitGatewayMulticastDomainsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewayMulticastDomainsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayMulticastDomainsInput`.""" + + transit_gateway_multicast_domain_ids: Sequence[str] | None + """The ID of the transit gateway multicast domain.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `state` - The state of the transit gateway multicast domain. Valid + values are `pending` | `available` | `deleting` | `deleted`. + + - `transit-gateway-id` - The ID of the transit gateway. + + - `transit-gateway-multicast-domain-id` - The ID of the transit gateway + multicast domain. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewayMulticastDomainsOutput(_SerdeShape): """Dataclass for DescribeTransitGatewayMulticastDomainsOutput structure.""" @@ -6305,6 +10580,56 @@ class DescribeTransitGatewayPeeringAttachmentsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewayPeeringAttachmentsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayPeeringAttachmentsInput`.""" + + transit_gateway_attachment_ids: Sequence[str] | None + """One or more IDs of the transit gateway peering attachments.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `transit-gateway-attachment-id` - The ID of the transit gateway + attachment. + + - `local-owner-id` - The ID of your Amazon Web Services account. + + - `remote-owner-id` - The ID of the Amazon Web Services account in the + remote Region that owns the transit gateway. + + - `state` - The state of the peering attachment. Valid values are + `available` | `deleted` | `deleting` | `failed` | `failing` | + `initiatingRequest` | `modifying` | `pendingAcceptance` | `pending` + | `rollingBack` | `rejected` | `rejecting`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources that have a tag with a specific key, regardless + of the tag value. + + - `transit-gateway-id` - The ID of the transit gateway. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewayPeeringAttachmentsOutput(_SerdeShape): """Dataclass for DescribeTransitGatewayPeeringAttachmentsOutput structure.""" @@ -6350,6 +10675,29 @@ class DescribeTransitGatewayPolicyTablesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewayPolicyTablesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayPolicyTablesInput`.""" + + transit_gateway_policy_table_ids: Sequence[str] | None + """The IDs of the transit gateway policy tables.""" + filters: Sequence[Filter | FilterDict] | None + """The filters associated with the transit gateway policy table.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewayPolicyTablesOutput(_SerdeShape): """Dataclass for DescribeTransitGatewayPolicyTablesOutput structure.""" @@ -6393,6 +10741,29 @@ class DescribeTransitGatewayRouteTableAnnouncementsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewayRouteTableAnnouncementsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayRouteTableAnnouncementsInput`.""" + + transit_gateway_route_table_announcement_ids: Sequence[str] | None + """The IDs of the transit gateway route tables that are being advertised.""" + filters: Sequence[Filter | FilterDict] | None + """The filters associated with the transit gateway policy table.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewayRouteTableAnnouncementsOutput(_SerdeShape): """ @@ -6456,6 +10827,47 @@ class DescribeTransitGatewayRouteTablesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewayRouteTablesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayRouteTablesInput`.""" + + transit_gateway_route_table_ids: Sequence[str] | None + """The IDs of the transit gateway route tables.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `default-association-route-table` - Indicates whether this is the + default association route table for the transit gateway (`true` | + `false`). + + - `default-propagation-route-table` - Indicates whether this is the + default propagation route table for the transit gateway (`true` | + `false`). + + - `state` - The state of the route table (`available` | `deleting` | + `deleted` | `pending`). + + - `transit-gateway-id` - The ID of the transit gateway. + + - `transit-gateway-route-table-id` - The ID of the transit gateway route + table. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewayRouteTablesOutput(_SerdeShape): """Dataclass for DescribeTransitGatewayRouteTablesOutput structure.""" @@ -6541,6 +10953,71 @@ class DescribeTransitGatewaysInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeTransitGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewaysInput`.""" + + transit_gateway_ids: Sequence[str] | None + """The IDs of the transit gateways.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `options.propagation-default-route-table-id` - The ID of the default + propagation route table. + + - `options.amazon-side-asn` - The private ASN for the Amazon side of a + BGP session. + + - `options.association-default-route-table-id` - The ID of the default + association route table. + + - `options.auto-accept-shared-attachments` - Indicates whether there is + automatic acceptance of attachment requests (`enable` | `disable`). + + - `options.default-route-table-association` - Indicates whether resource + attachments are automatically associated with the default association + route table (`enable` | `disable`). + + - `options.default-route-table-propagation` - Indicates whether resource + attachments automatically propagate routes to the default propagation + route table (`enable` | `disable`). + + - `options.dns-support` - Indicates whether DNS support is enabled + (`enable` | `disable`). + + - `options.vpn-ecmp-support` - Indicates whether Equal Cost Multipath + Protocol support is enabled (`enable` | `disable`). + + - `owner-id` - The ID of the Amazon Web Services account that owns the + transit gateway. + + - `state` - The state of the transit gateway (`available` | `deleted` + | `deleting` | `modifying` | `pending`). + + - `transit-gateway-id` - The ID of the transit gateway. + + - `tag-key `- The key/value combination of a tag assigned to the + resource. Use the tag key in the filter name and the tag value as the + filter value. For example, to find all resources that have a tag with + the key `Owner` and the value `TeamA`, specify `tag:Owner` for the + filter name and `TeamA` for the filter value. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeTransitGatewaysOutput(_SerdeShape): """Dataclass for DescribeTransitGatewaysOutput structure.""" @@ -6552,21 +11029,57 @@ class DescribeTransitGatewaysOutput(_SerdeShape): The token to use to retrieve the next page of results. This value is `null` when there are no more results to return. """ - response_metadata: ResponseMetadata = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeTransitGatewayVpcAttachmentsInput(_SerdeShape): + """Dataclass for DescribeTransitGatewayVpcAttachmentsInput structure.""" + + transit_gateway_attachment_ids: list[str] | None = ... + """The IDs of the attachments.""" + filters: list[Filter] | None = ... + """ + One or more filters. The possible values are: + + - `state` - The state of the attachment. Valid values are `available` | + `deleted` | `deleting` | `failed` | `failing` | + `initiatingRequest` | `modifying` | `pendingAcceptance` | `pending` + | `rollingBack` | `rejected` | `rejecting`. + + - `transit-gateway-attachment-id` - The ID of the attachment. + + - `transit-gateway-id` - The ID of the transit gateway. + + - `vpc-id` - The ID of the VPC. + """ + max_results: int | None = ... + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None = ... + """The token for the next page of results.""" + dry_run: bool | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DescribeTransitGatewayVpcAttachmentsInput(_SerdeShape): - """Dataclass for DescribeTransitGatewayVpcAttachmentsInput structure.""" +class DescribeTransitGatewayVpcAttachmentsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTransitGatewayVpcAttachmentsInput`.""" - transit_gateway_attachment_ids: list[str] | None = ... + transit_gateway_attachment_ids: Sequence[str] | None """The IDs of the attachments.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ One or more filters. The possible values are: @@ -6581,15 +11094,15 @@ class DescribeTransitGatewayVpcAttachmentsInput(_SerdeShape): - `vpc-id` - The ID of the VPC. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value. """ - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -6647,6 +11160,36 @@ class DescribeTrunkInterfaceAssociationsInput(_SerdeShape): value. """ +class DescribeTrunkInterfaceAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTrunkInterfaceAssociationsInput`.""" + + association_ids: Sequence[str] | None + """The IDs of the associations.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `gre-key` - The ID of a trunk interface association. + + - `interface-protocol` - The interface protocol. Valid values are `VLAN` + and `GRE`. + """ + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + @dataclass(kw_only=True) class DescribeTrunkInterfaceAssociationsOutput(_SerdeShape): """Dataclass for DescribeTrunkInterfaceAssociationsOutput structure.""" @@ -6694,6 +11237,33 @@ class DescribeVerifiedAccessEndpointsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVerifiedAccessEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVerifiedAccessEndpointsInput`.""" + + verified_access_endpoint_ids: Sequence[str] | None + """The ID of the Verified Access endpoint.""" + verified_access_instance_id: str | None + """The ID of the Verified Access instance.""" + verified_access_group_id: str | None + """The ID of the Verified Access group.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters. Filter names and values are case-sensitive.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVerifiedAccessEndpointsOutput(_SerdeShape): """Dataclass for DescribeVerifiedAccessEndpointsOutput structure.""" @@ -6739,6 +11309,31 @@ class DescribeVerifiedAccessGroupsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVerifiedAccessGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVerifiedAccessGroupsInput`.""" + + verified_access_group_ids: Sequence[str] | None + """The ID of the Verified Access groups.""" + verified_access_instance_id: str | None + """The ID of the Verified Access instance.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters. Filter names and values are case-sensitive.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVerifiedAccessGroupsOutput(_SerdeShape): """Dataclass for DescribeVerifiedAccessGroupsOutput structure.""" @@ -6785,6 +11380,31 @@ class DescribeVerifiedAccessInstanceLoggingConfigurationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict( + TypedDict, total=False +): + """Dictionary form of `DescribeVerifiedAccessInstanceLoggingConfigurationsInput`.""" + + verified_access_instance_ids: Sequence[str] | None + """The IDs of the Verified Access instances.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters. Filter names and values are case-sensitive.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVerifiedAccessInstanceLoggingConfigurationsOutput(_SerdeShape): """ @@ -6833,6 +11453,29 @@ class DescribeVerifiedAccessInstancesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVerifiedAccessInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVerifiedAccessInstancesInput`.""" + + verified_access_instance_ids: Sequence[str] | None + """The IDs of the Verified Access instances.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters. Filter names and values are case-sensitive.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVerifiedAccessInstancesOutput(_SerdeShape): """Dataclass for DescribeVerifiedAccessInstancesOutput structure.""" @@ -6876,83 +11519,221 @@ class DescribeVerifiedAccessTrustProvidersInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DescribeVerifiedAccessTrustProvidersOutput(_SerdeShape): - """Dataclass for DescribeVerifiedAccessTrustProvidersOutput structure.""" +class DescribeVerifiedAccessTrustProvidersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVerifiedAccessTrustProvidersInput`.""" + + verified_access_trust_provider_ids: Sequence[str] | None + """The IDs of the Verified Access trust providers.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters. Filter names and values are case-sensitive.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeVerifiedAccessTrustProvidersOutput(_SerdeShape): + """Dataclass for DescribeVerifiedAccessTrustProvidersOutput structure.""" + + verified_access_trust_providers: list[VerifiedAccessTrustProvider] | None = ... + """Details about the Verified Access trust providers.""" + next_token: str | None = ... + """ + The token to use to retrieve the next page of results. This value is + `null` when there are no more results to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeVolumeAttributeInput(_SerdeShape): + """Dataclass for DescribeVolumeAttributeInput structure.""" + + attribute: str | None = ... + """The attribute of the volume. This parameter is required.""" + volume_id: str | None = ... + """The ID of the volume.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class DescribeVolumeAttributeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVolumeAttributeInput`.""" + + attribute: Required[str] + """The attribute of the volume. This parameter is required.""" + volume_id: Required[str] + """The ID of the volume.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DescribeVolumeAttributeOutput(_SerdeShape): + """Dataclass for DescribeVolumeAttributeOutput structure.""" + + auto_enable_io: AttributeBooleanValue | None = ... + """The state of `autoEnableIO` attribute.""" + product_codes: list[ProductCode] | None = ... + """A list of product codes.""" + volume_id: str | None = ... + """The ID of the volume.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeVolumesInput(_SerdeShape): + """Dataclass for DescribeVolumesInput structure.""" + + volume_ids: list[str] | None = ... + """ + The volume IDs. If not specified, then all volumes are included in the + response. + """ + include_managed_resources: bool | None = ... + """ + Indicates whether to include managed resources in the output. If this + parameter is set to `true`, the output includes resources that are + managed by Amazon Web Services services, even if managed resource + visibility is set to hidden. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + The filters. + + - `attachment.attach-time` - The time stamp when the attachment + initiated. + + - `attachment.delete-on-termination` - Whether the volume is deleted on + instance termination. + + - `attachment.device` - The device name specified in the block device + mapping (for example, `/dev/sda1`). + + - `attachment.instance-id` - The ID of the instance the volume is + attached to. + + - `attachment.status` - The attachment state (`attaching` | `attached` + | `detaching`). + + - `availability-zone` - The Availability Zone in which the volume was + created. + + - `availability-zone-id` - The ID of the Availability Zone in which the + volume was created. + + - `create-time` - The time stamp when the volume was created. + + - `encrypted` - Indicates whether the volume is encrypted (`true` | + `false`) + + - `fast-restored` - Indicates whether the volume was created from a + snapshot that is enabled for fast snapshot restore (`true` | + `false`). + + - `multi-attach-enabled` - Indicates whether the volume is enabled for + Multi-Attach (`true` | `false`) + + - `operator.managed` - A Boolean that indicates whether this is a + managed volume. + + - `operator.principal` - The principal that manages the volume. Only + valid for managed volumes, where `managed` is `true`. + + - `size` - The size of the volume, in GiB. - verified_access_trust_providers: list[VerifiedAccessTrustProvider] | None = ... - """Details about the Verified Access trust providers.""" - next_token: str | None = ... - """ - The token to use to retrieve the next page of results. This value is - `null` when there are no more results to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `snapshot-id` - The snapshot from which the volume was created. -@dataclass(kw_only=True) -class DescribeVolumeAttributeInput(_SerdeShape): - """Dataclass for DescribeVolumeAttributeInput structure.""" + - `status` - The state of the volume (`creating` | `available` | + `in-use` | `deleting` | `deleted` | `error`). - attribute: str | None = ... - """The attribute of the volume. This parameter is required.""" - volume_id: str | None = ... - """The ID of the volume.""" - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. - """ + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. -@dataclass(kw_only=True) -class DescribeVolumeAttributeOutput(_SerdeShape): - """Dataclass for DescribeVolumeAttributeOutput structure.""" + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. - auto_enable_io: AttributeBooleanValue | None = ... - """The state of `autoEnableIO` attribute.""" - product_codes: list[ProductCode] | None = ... - """A list of product codes.""" - volume_id: str | None = ... - """The ID of the volume.""" - response_metadata: ResponseMetadata = ... + - `volume-id` - The volume ID. + + - `volume-type` - The Amazon EBS volume type (`gp2` | `gp3` | `io1` | + `io2` | `st1` | `sc1`| `standard`) """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ -@dataclass(kw_only=True) -class DescribeVolumesInput(_SerdeShape): - """Dataclass for DescribeVolumesInput structure.""" +class DescribeVolumesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVolumesInput`.""" - volume_ids: list[str] | None = ... + volume_ids: Sequence[str] | None """ The volume IDs. If not specified, then all volumes are included in the response. """ - include_managed_resources: bool | None = ... + include_managed_resources: bool | None """ Indicates whether to include managed resources in the output. If this parameter is set to `true`, the output includes resources that are managed by Amazon Web Services services, even if managed resource visibility is set to hidden. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. @@ -7017,12 +11798,12 @@ class DescribeVolumesInput(_SerdeShape): - `volume-type` - The Amazon EBS volume type (`gp2` | `gp3` | `io1` | `io2` | `st1` | `sc1`| `standard`) """ - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the @@ -7093,6 +11874,68 @@ class DescribeVolumesModificationsInput(_SerdeShape): visibility is set to hidden. """ +class DescribeVolumesModificationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVolumesModificationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + volume_ids: Sequence[str] | None + """The IDs of the volumes.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `modification-state` - The current modification state (modifying | + optimizing | completed | failed). + + - `original-iops` - The original IOPS rate of the volume. + + - `original-size` - The original size of the volume, in GiB. + + - `original-volume-type` - The original volume type of the volume + (standard | io1 | io2 | gp2 | sc1 | st1). + + - `originalMultiAttachEnabled` - Indicates whether Multi-Attach support + was enabled (true | false). + + - `start-time` - The modification start time. + + - `target-iops` - The target IOPS rate of the volume. + + - `target-size` - The target size of the volume, in GiB. + + - `target-volume-type` - The target volume type of the volume (standard + | io1 | io2 | gp2 | sc1 | st1). + + - `targetMultiAttachEnabled` - Indicates whether Multi-Attach support is + to be enabled (true | false). + + - `volume-id` - The ID of the volume. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of results (up to a limit of 500) to be returned in a + paginated request. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + include_managed_resources: bool | None + """ + Indicates whether to include managed resources in the output. If this + parameter is set to `true`, the output includes resources that are + managed by Amazon Web Services services, even if managed resource + visibility is set to hidden. + """ + @dataclass(kw_only=True) class DescribeVolumesModificationsOutput(_SerdeShape): """Dataclass for DescribeVolumesModificationsOutput structure.""" @@ -7204,6 +12047,78 @@ class DescribeVolumeStatusInput(_SerdeShape): | `warning` | `insufficient-data`). """ +class DescribeVolumeStatusInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVolumeStatusInput`.""" + + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + volume_ids: Sequence[str] | None + """ + The IDs of the volumes. + + Default: Describes all your volumes. + """ + include_managed_resources: bool | None + """ + Indicates whether to include managed resources in the output. If this + parameter is set to `true`, the output includes resources that are + managed by Amazon Web Services services, even if managed resource + visibility is set to hidden. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `action.code` - The action code for the event (for example, + `enable-volume-io`). + + - `action.description` - A description of the action. + + - `action.event-id` - The event ID associated with the action. + + - `availability-zone` - The Availability Zone of the instance. + + - `event.description` - A description of the event. + + - `event.event-id` - The event ID. + + - `event.event-type` - The event type (for `io-enabled`: `passed` | + `failed`; for `io-performance`: `io-performance:degraded` | + `io-performance:severely-degraded` | `io-performance:stalled`). + + - `event.not-after` - The latest end time for the event. + + - `event.not-before` - The earliest start time for the event. + + - `volume-status.details-name` - The cause for `volume-status.status` + (`io-enabled` | `io-performance`). + + - `volume-status.details-status` - The status of + `volume-status.details-name` (for `io-enabled`: `passed` | `failed`; + for `io-performance`: `normal` | `degraded` | `severely-degraded` | + `stalled`). + + - `volume-status.status` - The status of the volume (`ok` | `impaired` + | `warning` | `insufficient-data`). + """ + @dataclass(kw_only=True) class DescribeVolumeStatusOutput(_SerdeShape): """Dataclass for DescribeVolumeStatusOutput structure.""" @@ -7239,6 +12154,21 @@ class DescribeVpcAttributeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVpcAttributeInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcAttributeInput`.""" + + attribute: Required[str] + """The VPC attribute.""" + vpc_id: Required[str] + """The ID of the VPC.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVpcAttributeOutput(_SerdeShape): """Dataclass for DescribeVpcAttributeOutput structure.""" @@ -7256,33 +12186,84 @@ class DescribeVpcAttributeOutput(_SerdeShape): your instances to their corresponding IP addresses; otherwise, it does not. """ - enable_network_address_usage_metrics: AttributeBooleanValue | None = ... + enable_network_address_usage_metrics: AttributeBooleanValue | None = ... + """ + Indicates whether Network Address Usage metrics are enabled for your + VPC. + """ + vpc_id: str | None = ... + """The ID of the VPC.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeVpcBlockPublicAccessExclusionsInput(_SerdeShape): + """Dataclass for DescribeVpcBlockPublicAccessExclusionsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + Filters for the request: + + - `resource-arn` - The Amazon Resource Name (ARN) of a exclusion. + + - `internet-gateway-exclusion-mode` - The mode of a VPC BPA exclusion. + Possible values: `allow-bidirectional | allow-egress`. + + - `state` - The state of VPC BPA. Possible values: + `create-in-progress | create-complete | update-in-progress | update-complete | delete-in-progress | deleted-complete | disable-in-progress | disable-complete` + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `tag-value`: The value of a tag assigned to the resource. Use this + filter to find all resources assigned a tag with a specific value, + regardless of the tag key. + """ + exclusion_ids: list[str] | None = ... + """IDs of exclusions.""" + next_token: str | None = ... """ - Indicates whether Network Address Usage metrics are enabled for your - VPC. + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. """ - vpc_id: str | None = ... - """The ID of the VPC.""" - response_metadata: ResponseMetadata = ... + max_results: int | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ -@dataclass(kw_only=True) -class DescribeVpcBlockPublicAccessExclusionsInput(_SerdeShape): - """Dataclass for DescribeVpcBlockPublicAccessExclusionsInput structure.""" +class DescribeVpcBlockPublicAccessExclusionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcBlockPublicAccessExclusionsInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ Filters for the request: @@ -7308,14 +12289,14 @@ class DescribeVpcBlockPublicAccessExclusionsInput(_SerdeShape): filter to find all resources assigned a tag with a specific value, regardless of the tag key. """ - exclusion_ids: list[str] | None = ... + exclusion_ids: Sequence[str] | None """IDs of exclusions.""" - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the @@ -7354,6 +12335,17 @@ class DescribeVpcBlockPublicAccessOptionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVpcBlockPublicAccessOptionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcBlockPublicAccessOptionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVpcBlockPublicAccessOptionsOutput(_SerdeShape): """Dataclass for DescribeVpcBlockPublicAccessOptionsOutput structure.""" @@ -7387,6 +12379,24 @@ class DescribeVpcClassicLinkDnsSupportInput(_SerdeShape): continues from the end of the items returned by the previous request. """ +class DescribeVpcClassicLinkDnsSupportInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcClassicLinkDnsSupportInput`.""" + + vpc_ids: Sequence[str] | None + """The IDs of the VPCs.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + @dataclass(kw_only=True) class DescribeVpcClassicLinkDnsSupportOutput(_SerdeShape): """Dataclass for DescribeVpcClassicLinkDnsSupportOutput structure.""" @@ -7437,6 +12447,36 @@ class DescribeVpcClassicLinkInput(_SerdeShape): of the tag value. """ +class DescribeVpcClassicLinkInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcClassicLinkInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_ids: Sequence[str] | None + """The VPCs for which you want to describe the ClassicLink status.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `is-classic-link-enabled` - Whether the VPC is enabled for ClassicLink + (`true` | `false`). + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + @dataclass(kw_only=True) class DescribeVpcClassicLinkOutput(_SerdeShape): """Dataclass for DescribeVpcClassicLinkOutput structure.""" @@ -7481,6 +12521,35 @@ class DescribeVpcEncryptionControlsInput(_SerdeShape): [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ +class DescribeVpcEncryptionControlsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcEncryptionControlsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """The filters to apply to the request.""" + vpc_encryption_control_ids: Sequence[str] | None + """The IDs of the VPC Encryption Control configurations to describe.""" + vpc_ids: Sequence[str] | None + """The IDs of the VPCs to describe encryption control configurations for.""" + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + @dataclass(kw_only=True) class DescribeVpcEncryptionControlsOutput(_SerdeShape): """Dataclass for DescribeVpcEncryptionControlsOutput structure.""" @@ -7540,6 +12609,45 @@ class DescribeVpcEndpointAssociationsInput(_SerdeShape): next_token: str | None = ... """The pagination token.""" +class DescribeVpcEndpointAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcEndpointAssociationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_endpoint_ids: Sequence[str] | None + """The IDs of the VPC endpoints.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `vpc-endpoint-id` - The ID of the VPC endpoint. + + - `associated-resource-accessibility` - The association state. When the + state is `accessible`, it returns `AVAILABLE`. When the state is + `inaccessible`, it returns `PENDING` or `FAILED`. + + - `association-id` - The ID of the VPC endpoint association. + + - `associated-resource-id` - The ID of the associated resource + configuration. + + - `service-network-arn` - The Amazon Resource Name (ARN) of the + associated service network. Only VPC endpoints of type service network + will be returned. + + - `resource-configuration-group-arn` - The Amazon Resource Name (ARN) of + the resource configuration of type GROUP. + """ + max_results: int | None + """The maximum page size.""" + next_token: str | None + """The pagination token.""" + @dataclass(kw_only=True) class DescribeVpcEndpointAssociationsOutput(_SerdeShape): """Dataclass for DescribeVpcEndpointAssociationsOutput structure.""" @@ -7596,6 +12704,45 @@ class DescribeVpcEndpointConnectionNotificationsInput(_SerdeShape): next_token: str | None = ... """The token to request the next page of results.""" +class DescribeVpcEndpointConnectionNotificationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcEndpointConnectionNotificationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + connection_notification_id: str | None + """The ID of the notification.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `connection-notification-arn` - The ARN of the SNS topic for the + notification. + + - `connection-notification-id` - The ID of the notification. + + - `connection-notification-state` - The state of the notification + (`Enabled` | `Disabled`). + + - `connection-notification-type` - The type of notification (`Topic`). + + - `service-id` - The ID of the endpoint service. + + - `vpc-endpoint-id` - The ID of the VPC endpoint. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another request with the returned + `NextToken` value. + """ + next_token: str | None + """The token to request the next page of results.""" + @dataclass(kw_only=True) class DescribeVpcEndpointConnectionNotificationsOutput(_SerdeShape): """ @@ -7647,7 +12794,114 @@ class DescribeVpcEndpointConnectionsInput(_SerdeShape): | `pending` | `available` | `deleting` | `deleted` | `rejected` | `failed`). - - `vpc-endpoint-id` - The ID of the endpoint. + - `vpc-endpoint-id` - The ID of the endpoint. + """ + max_results: int | None = ... + """ + The maximum number of results to return for the request in a single + page. The remaining results of the initial request can be seen by + sending another request with the returned `NextToken` value. This value + can be between 5 and 1,000; if `MaxResults` is given a value larger than + 1,000, only 1,000 results are returned. + """ + next_token: str | None = ... + """The token to retrieve the next page of results.""" + +class DescribeVpcEndpointConnectionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcEndpointConnectionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `ip-address-type` - The IP address type (`ipv4` | `ipv6`). + + - `service-id` - The ID of the service. + + - `vpc-endpoint-owner` - The ID of the Amazon Web Services account ID + that owns the endpoint. + + - `vpc-endpoint-region` - The Region of the endpoint or `cross-region` + to find endpoints for other Regions. + + - `vpc-endpoint-state` - The state of the endpoint (`pendingAcceptance` + | `pending` | `available` | `deleting` | `deleted` | `rejected` + | `failed`). + + - `vpc-endpoint-id` - The ID of the endpoint. + """ + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results of the initial request can be seen by + sending another request with the returned `NextToken` value. This value + can be between 5 and 1,000; if `MaxResults` is given a value larger than + 1,000, only 1,000 results are returned. + """ + next_token: str | None + """The token to retrieve the next page of results.""" + +@dataclass(kw_only=True) +class DescribeVpcEndpointConnectionsOutput(_SerdeShape): + """Dataclass for DescribeVpcEndpointConnectionsOutput structure.""" + + vpc_endpoint_connections: list[VpcEndpointConnection] | None = ... + """Information about the VPC endpoint connections.""" + next_token: str | None = ... + """ + The token to use to retrieve the next page of results. This value is + `null` when there are no more results to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeVpcEndpointServiceConfigurationsInput(_SerdeShape): + """Dataclass for DescribeVpcEndpointServiceConfigurationsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_ids: list[str] | None = ... + """The IDs of the endpoint services.""" + filters: list[Filter] | None = ... + """ + The filters. + + - `service-name` - The name of the service. + + - `service-id` - The ID of the service. + + - `service-state` - The state of the service (`Pending` | `Available` + | `Deleting` | `Deleted` | `Failed`). + + - `supported-ip-address-types` - The IP address type (`ipv4` | `ipv6`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. """ max_results: int | None = ... """ @@ -7660,39 +12914,19 @@ class DescribeVpcEndpointConnectionsInput(_SerdeShape): next_token: str | None = ... """The token to retrieve the next page of results.""" -@dataclass(kw_only=True) -class DescribeVpcEndpointConnectionsOutput(_SerdeShape): - """Dataclass for DescribeVpcEndpointConnectionsOutput structure.""" - - vpc_endpoint_connections: list[VpcEndpointConnection] | None = ... - """Information about the VPC endpoint connections.""" - next_token: str | None = ... - """ - The token to use to retrieve the next page of results. This value is - `null` when there are no more results to return. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class DescribeVpcEndpointServiceConfigurationsInput(_SerdeShape): - """Dataclass for DescribeVpcEndpointServiceConfigurationsInput structure.""" +class DescribeVpcEndpointServiceConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcEndpointServiceConfigurationsInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - service_ids: list[str] | None = ... + service_ids: Sequence[str] | None """The IDs of the endpoint services.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. @@ -7715,7 +12949,7 @@ class DescribeVpcEndpointServiceConfigurationsInput(_SerdeShape): to find all resources assigned a tag with a specific key, regardless of the tag value. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by @@ -7723,7 +12957,7 @@ class DescribeVpcEndpointServiceConfigurationsInput(_SerdeShape): can be between 5 and 1,000; if `MaxResults` is given a value larger than 1,000, only 1,000 results are returned. """ - next_token: str | None = ... + next_token: str | None """The token to retrieve the next page of results.""" @dataclass(kw_only=True) @@ -7778,6 +13012,38 @@ class DescribeVpcEndpointServicePermissionsInput(_SerdeShape): next_token: str | None = ... """The token to retrieve the next page of results.""" +class DescribeVpcEndpointServicePermissionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcEndpointServicePermissionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: Required[str] + """The ID of the service.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `principal` - The ARN of the principal. + + - `principal-type` - The principal type (`All` | `Service` | + `OrganizationUnit` | `Account` | `User` | `Role`). + """ + max_results: int | None + """ + The maximum number of results to return for the request in a single + page. The remaining results of the initial request can be seen by + sending another request with the returned `NextToken` value. This value + can be between 5 and 1,000; if `MaxResults` is given a value larger than + 1,000, only 1,000 results are returned. + """ + next_token: str | None + """The token to retrieve the next page of results.""" + @dataclass(kw_only=True) class DescribeVpcEndpointServicePermissionsOutput(_SerdeShape): """Dataclass for DescribeVpcEndpointServicePermissionsOutput structure.""" @@ -7853,6 +13119,61 @@ class DescribeVpcEndpointServicesInput(_SerdeShape): service_regions: list[str] | None = ... """The service Regions.""" +class DescribeVpcEndpointServicesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcEndpointServicesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_names: Sequence[str] | None + """The service names.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `owner` - The ID or alias of the Amazon Web Services account that owns + the service. + + - `service-name` - The name of the service. + + - `service-region` - The Region of the service. + + - `service-type` - The type of service (`Interface` | `Gateway` | + `GatewayLoadBalancer`). + + - `supported-ip-address-types` - The IP address type (`ipv4` | `ipv6`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + max_results: int | None + """ + The maximum number of items to return for this request. The request + returns a token that you can specify in a subsequent call to get the + next set of results. + + Constraint: If the value is greater than 1,000, we return only 1,000 + items. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a prior call.) + """ + service_regions: Sequence[str] | None + """The service Regions.""" + @dataclass(kw_only=True) class DescribeVpcEndpointServicesOutput(_SerdeShape): """Dataclass for DescribeVpcEndpointServicesOutput structure.""" @@ -7911,78 +13232,208 @@ class DescribeVpcEndpointsInput(_SerdeShape): - `vpc-endpoint-id` - The ID of the endpoint. - - `vpc-endpoint-state` - The state of the endpoint (`pendingAcceptance` - | `pending` | `available` | `deleting` | `deleted` | `rejected` - | `failed`). + - `vpc-endpoint-state` - The state of the endpoint (`pendingAcceptance` + | `pending` | `available` | `deleting` | `deleted` | `rejected` + | `failed`). + + - `vpc-endpoint-type` - The type of VPC endpoint (`Interface` | + `Gateway` | `GatewayLoadBalancer` | `Resource` | `ServiceNetwork` + | `Tunnel`). + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. The request + returns a token that you can specify in a subsequent call to get the + next set of results. + + Constraint: If the value is greater than 1,000, we return only 1,000 + items. + """ + next_token: str | None = ... + """ + The token for the next set of items to return. (You received this token + from a prior call.) + """ + +class DescribeVpcEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcEndpointsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_endpoint_ids: Sequence[str] | None + """The IDs of the VPC endpoints.""" + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `ip-address-type` - The IP address type (`ipv4` | `ipv6`). + + - `service-name` - The name of the service. + + - `service-region` - The Region of the service. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC in which the endpoint resides. + + - `vpc-endpoint-id` - The ID of the endpoint. + + - `vpc-endpoint-state` - The state of the endpoint (`pendingAcceptance` + | `pending` | `available` | `deleting` | `deleted` | `rejected` + | `failed`). + + - `vpc-endpoint-type` - The type of VPC endpoint (`Interface` | + `Gateway` | `GatewayLoadBalancer` | `Resource` | `ServiceNetwork` + | `Tunnel`). + """ + max_results: int | None + """ + The maximum number of items to return for this request. The request + returns a token that you can specify in a subsequent call to get the + next set of results. + + Constraint: If the value is greater than 1,000, we return only 1,000 + items. + """ + next_token: str | None + """ + The token for the next set of items to return. (You received this token + from a prior call.) + """ + +@dataclass(kw_only=True) +class DescribeVpcEndpointsOutput(_SerdeShape): + """Dataclass for DescribeVpcEndpointsOutput structure.""" + + vpc_endpoints: list[VpcEndpoint] | None = ... + """Information about the VPC endpoints.""" + next_token: str | None = ... + """ + The token to use when requesting the next set of items. If there are no + additional items to return, the string is empty. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeVpcPeeringConnectionsInput(_SerdeShape): + """Dataclass for DescribeVpcPeeringConnectionsInput structure.""" + + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_peering_connection_ids: list[str] | None = ... + """ + The IDs of the VPC peering connections. + + Default: Describes all your VPC peering connections. + """ + filters: list[Filter] | None = ... + """ + The filters. + + - `accepter-vpc-info.cidr-block` - The IPv4 CIDR block of the accepter + VPC. + + - `accepter-vpc-info.owner-id` - The ID of the Amazon Web Services + account that owns the accepter VPC. + + - `accepter-vpc-info.vpc-id` - The ID of the accepter VPC. + + - `expiration-time` - The expiration date and time for the VPC peering + connection. + + - `requester-vpc-info.cidr-block` - The IPv4 CIDR block of the + requester's VPC. + + - `requester-vpc-info.owner-id` - The ID of the Amazon Web Services + account that owns the requester VPC. + + - `requester-vpc-info.vpc-id` - The ID of the requester VPC. + + - `status-code` - The status of the VPC peering connection + (`pending-acceptance` | `failed` | `expired` | `provisioning` | + `active` | `deleting` | `deleted` | `rejected`). - - `vpc-endpoint-type` - The type of VPC endpoint (`Interface` | - `Gateway` | `GatewayLoadBalancer` | `Resource` | `ServiceNetwork` - | `Tunnel`). - """ - max_results: int | None = ... - """ - The maximum number of items to return for this request. The request - returns a token that you can specify in a subsequent call to get the - next set of results. + - `status-message` - A message that provides more information about the + status of the VPC peering connection, if applicable. - Constraint: If the value is greater than 1,000, we return only 1,000 - items. - """ - next_token: str | None = ... - """ - The token for the next set of items to return. (You received this token - from a prior call.) - """ + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. -@dataclass(kw_only=True) -class DescribeVpcEndpointsOutput(_SerdeShape): - """Dataclass for DescribeVpcEndpointsOutput structure.""" + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. - vpc_endpoints: list[VpcEndpoint] | None = ... - """Information about the VPC endpoints.""" - next_token: str | None = ... - """ - The token to use when requesting the next set of items. If there are no - additional items to return, the string is empty. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + - `vpc-peering-connection-id` - The ID of the VPC peering connection. """ -@dataclass(kw_only=True) -class DescribeVpcPeeringConnectionsInput(_SerdeShape): - """Dataclass for DescribeVpcPeeringConnectionsInput structure.""" +class DescribeVpcPeeringConnectionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcPeeringConnectionsInput`.""" - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - vpc_peering_connection_ids: list[str] | None = ... + vpc_peering_connection_ids: Sequence[str] | None """ The IDs of the VPC peering connections. Default: Describes all your VPC peering connections. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. @@ -8121,6 +13572,82 @@ class DescribeVpcsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVpcsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpcsInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + The filters. + + - `cidr` - The primary IPv4 CIDR block of the VPC. The CIDR block you + specify must exactly match the VPC's CIDR block for information to be + returned for the VPC. Must contain the slash followed by one or two + digits (for example, `/28`). + + - `cidr-block-association.cidr-block` - An IPv4 CIDR block associated + with the VPC. + + - `cidr-block-association.association-id` - The association ID for an + IPv4 CIDR block associated with the VPC. + + - `cidr-block-association.state` - The state of an IPv4 CIDR block + associated with the VPC. + + - `dhcp-options-id` - The ID of a set of DHCP options. + + - `ipv6-cidr-block-association.ipv6-cidr-block` - An IPv6 CIDR block + associated with the VPC. + + - `ipv6-cidr-block-association.ipv6-pool` - The ID of the IPv6 address + pool from which the IPv6 CIDR block is allocated. + + - `ipv6-cidr-block-association.association-id` - The association ID for + an IPv6 CIDR block associated with the VPC. + + - `ipv6-cidr-block-association.state` - The state of an IPv6 CIDR block + associated with the VPC. + + - `is-default` - Indicates whether the VPC is the default VPC. + + - `owner-id` - The ID of the Amazon Web Services account that owns the + VPC. + + - `state` - The state of the VPC (`pending` | `available`). + + - `tag` - The key/value combination of a tag assigned to the resource. + Use the tag key in the filter name and the tag value as the filter + value. For example, to find all resources that have a tag with the key + `Owner` and the value `TeamA`, specify `tag:Owner` for the filter name + and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `vpc-id` - The ID of the VPC. + """ + vpc_ids: Sequence[str] | None + """The IDs of the VPCs.""" + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVpcsOutput(_SerdeShape): """Dataclass for DescribeVpcsOutput structure.""" @@ -8164,6 +13691,29 @@ class DescribeVpnConcentratorsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVpnConcentratorsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpnConcentratorsInput`.""" + + vpn_concentrator_ids: Sequence[str] | None + """One or more VPN concentrator IDs.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to limit the results.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVpnConcentratorsOutput(_SerdeShape): """Dataclass for DescribeVpnConcentratorsOutput structure.""" @@ -8245,6 +13795,67 @@ class DescribeVpnConnectionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVpnConnectionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpnConnectionsInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `customer-gateway-configuration` - The configuration information for + the customer gateway. + + - `customer-gateway-id` - The ID of a customer gateway associated with + the VPN connection. + + - `state` - The state of the VPN connection (`pending` | `available` | + `deleting` | `deleted`). + + - `option.static-routes-only` - Indicates whether the connection has + static routes only. Used for devices that do not support Border + Gateway Protocol (BGP). + + - `route.destination-cidr-block` - The destination CIDR block. This + corresponds to the subnet used in a customer data center. + + - `bgp-asn` - The BGP Autonomous System Number (ASN) associated with a + BGP device. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `type` - The type of VPN connection. Currently the only supported type + is `ipsec.1`. + + - `vpn-connection-id` - The ID of the VPN connection. + + - `vpn-gateway-id` - The ID of a virtual private gateway associated with + the VPN connection. + + - `transit-gateway-id` - The ID of a transit gateway associated with the + VPN connection. + """ + vpn_connection_ids: Sequence[str] | None + """ + One or more VPN connection IDs. + + Default: Describes your VPN connections. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVpnConnectionsOutput(_SerdeShape): """Contains the output of DescribeVpnConnections.""" @@ -8311,6 +13922,57 @@ class DescribeVpnGatewaysInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DescribeVpnGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVpnGatewaysInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `amazon-side-asn` - The Autonomous System Number (ASN) for the Amazon + side of the gateway. + + - `attachment.state` - The current state of the attachment between the + gateway and the VPC (`attaching` | `attached` | `detaching` | + `detached`). + + - `attachment.vpc-id` - The ID of an attached VPC. + + - `availability-zone` - The Availability Zone for the virtual private + gateway (if applicable). + + - `state` - The state of the virtual private gateway (`pending` | + `available` | `deleting` | `deleted`). + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + + - `type` - The type of virtual private gateway. Currently the only + supported type is `ipsec.1`. + + - `vpn-gateway-id` - The ID of the virtual private gateway. + """ + vpn_gateway_ids: Sequence[str] | None + """ + One or more virtual private gateway IDs. + + Default: Describes all your virtual private gateways. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DescribeVpnGatewaysOutput(_SerdeShape): """Contains the output of DescribeVpnGateways.""" @@ -8346,6 +14008,22 @@ class DestinationOptionsRequest(_SerdeShape): cost and response time for queries. The default is `false`. """ +class DestinationOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `DestinationOptionsRequest`.""" + + file_format: str | None + """The format for the flow log. The default is `plain-text`.""" + hive_compatible_partitions: bool | None + """ + Indicates whether to use Hive-compatible prefixes for flow logs stored + in Amazon S3. The default is `false`. + """ + per_hour_partition: bool | None + """ + Indicates whether to partition the flow log per hour. This reduces the + cost and response time for queries. The default is `false`. + """ + @dataclass(kw_only=True) class DestinationOptionsResponse(_SerdeShape): """Describes the destination options for a flow log.""" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_5.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_05.pyi similarity index 69% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_5.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_05.pyi index 28616fdb9..9cc56b4dd 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_5.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_05.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -23,16 +25,20 @@ from ..models import ( ClientCertificateRevocationListStatus, ClientVpnTrustProvider, ClientVpnTrustProviderRequest, + ClientVpnTrustProviderRequestDict, CustomTagKeyValueRequestPair, + CustomTagKeyValueRequestPairDict, DeleteQueuedReservedInstancesError, FastLaunchSnapshotConfigurationResponse, Filter, + FilterDict, FirewallStatefulRule, FirewallStatelessRule, IamInstanceProfileAssociation, InstanceConnectEndpointPublicDnsNames, InstanceEventWindow, InstanceEventWindowDisassociationRequest, + InstanceEventWindowDisassociationRequestDict, InstanceExportDetails, InternetGatewayAttachment, IpamInternetRegistryAssociation, @@ -48,6 +54,7 @@ from ..models import ( SuccessfulSuppressionResponseObject, Tag, TagSpecification, + TagSpecificationDict, TransitGatewayAssociation, TransitGatewayMulticastDomainAssociations, TransitGatewayPolicyTableAssociation, @@ -60,6 +67,7 @@ from ..models import ( VerifiedAccessInstanceUserTrustProviderClientConfiguration, VerifiedAccessTrustProvider, VolumeDetail, + VolumeDetailDict, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, _SerdeShape, @@ -81,6 +89,21 @@ class DetachClassicLinkVpcInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC to which the instance is linked.""" +class DetachClassicLinkVpcInputDict(TypedDict, total=False): + """Dictionary form of `DetachClassicLinkVpcInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the instance to unlink from the VPC.""" + vpc_id: Required[str] + """The ID of the VPC to which the instance is linked.""" + @dataclass(kw_only=True) class DetachClassicLinkVpcOutput(_SerdeShape): """Dataclass for DetachClassicLinkVpcOutput structure.""" @@ -114,6 +137,24 @@ class DetachImageWatermarkInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DetachImageWatermarkInputDict(TypedDict, total=False): + """Dictionary form of `DetachImageWatermarkInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + watermark_key: Required[str] + """ + The watermark key to remove, in `accountId:watermarkName` format (for + example, `123456789012:approvedAmi`). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DetachImageWatermarkOutput(_SerdeShape): """Dataclass for DetachImageWatermarkOutput structure.""" @@ -144,6 +185,21 @@ class DetachInternetGatewayInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class DetachInternetGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DetachInternetGatewayInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + internet_gateway_id: Required[str] + """The ID of the internet gateway.""" + vpc_id: Required[str] + """The ID of the VPC.""" + @dataclass(kw_only=True) class DetachInternetGatewayOutput(_SerdeShape): """Dataclass for DetachInternetGatewayOutput structure.""" @@ -189,6 +245,38 @@ class DetachNetworkInterfaceInput(_SerdeShape): metadata will get updated when you stop and start the instance. """ +class DetachNetworkInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `DetachNetworkInterfaceInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + attachment_id: Required[str] + """The ID of the attachment.""" + force: bool | None + """ + Specifies whether to force a detachment. + + Note: + - Use the `Force` parameter only as a last resort to detach a network + interface from a failed instance. + + - If you use the `Force` parameter to detach a network interface, you + might not be able to attach a different network interface to the same + index on the instance without first stopping and starting the + instance. + + - If you force the detachment of a network interface, the [instance + metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) + might not get updated. This means that the attributes associated with + the detached network interface might still be visible. The instance + metadata will get updated when you stop and start the instance. + """ + @dataclass(kw_only=True) class DetachNetworkInterfaceOutput(_SerdeShape): """Dataclass for DetachNetworkInterfaceOutput structure.""" @@ -225,6 +313,29 @@ class DetachVerifiedAccessTrustProviderInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DetachVerifiedAccessTrustProviderInputDict(TypedDict, total=False): + """Dictionary form of `DetachVerifiedAccessTrustProviderInput`.""" + + verified_access_instance_id: Required[str] + """The ID of the Verified Access instance.""" + verified_access_trust_provider_id: Required[str] + """The ID of the Verified Access trust provider.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DetachVerifiedAccessTrustProviderOutput(_SerdeShape): """Dataclass for DetachVerifiedAccessTrustProviderOutput structure.""" @@ -272,6 +383,36 @@ class DetachVolumeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DetachVolumeInputDict(TypedDict, total=False): + """Dictionary form of `DetachVolumeInput`.""" + + device: str | None + """The device name.""" + force: bool | None + """ + Forces detachment if the previous detachment attempt did not occur + cleanly (for example, logging into an instance, unmounting the volume, + and detaching normally). This option can lead to data loss or a + corrupted file system. Use this option only as a last resort to detach a + volume from a failed instance. The instance won't have an opportunity + to flush file system caches or file system metadata. If you use this + option, you must perform file system check and repair procedures. + """ + instance_id: str | None + """ + The ID of the instance. If you are detaching a Multi-Attach enabled + volume, you must specify an instance ID. + """ + volume_id: Required[str] + """The ID of the volume.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DetachVolumeOutput(_SerdeShape): """Describes volume attachment details.""" @@ -340,6 +481,21 @@ class DetachVpnGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DetachVpnGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DetachVpnGatewayInput`.""" + + vpc_id: Required[str] + """The ID of the VPC.""" + vpn_gateway_id: Required[str] + """The ID of the virtual private gateway.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DetachVpnGatewayOutput(_SerdeShape): """Dataclass for DetachVpnGatewayOutput structure.""" @@ -384,6 +540,21 @@ class DevicePostureOptions(_SerdeShape): the configured device trust providers. """ +class DevicePostureOptionsDict(TypedDict, total=False): + """Dictionary form of `DevicePostureOptions`.""" + + trust_providers: ( + Sequence[ClientVpnTrustProviderRequest | ClientVpnTrustProviderRequestDict] + | None + ) + """The device trust providers to configure for the Client VPN endpoint.""" + enabled: bool | None + """ + Indicates whether device posture evaluation is enabled for the Client + VPN endpoint. Specify `false` to disable device posture, which clears + the configured device trust providers. + """ + @dataclass(kw_only=True) class DevicePostureResponseOptions(_SerdeShape): """Information about the device posture options for a Client VPN endpoint.""" @@ -444,6 +615,20 @@ class DimensionCondition(_SerdeShape): comparison, any matching value will satisfy the condition. """ +class DimensionConditionDict(TypedDict, total=False): + """Dictionary form of `DimensionCondition`.""" + + dimension: str | None + """The name of the dimension to filter by.""" + comparison: str | None + """The comparison operator to use for the filter.""" + values: Sequence[str] | None + """ + The list of values to match against the specified dimension. For + 'equals' comparison, only the first value is used. For 'in' + comparison, any matching value will satisfy the condition. + """ + @dataclass(kw_only=True) class DirectoryServiceAuthentication(_SerdeShape): """Describes an Active Directory.""" @@ -458,6 +643,12 @@ class DirectoryServiceAuthenticationRequest(_SerdeShape): directory_id: str | None = ... """The ID of the Active Directory to be used for authentication.""" +class DirectoryServiceAuthenticationRequestDict(TypedDict, total=False): + """Dictionary form of `DirectoryServiceAuthenticationRequest`.""" + + directory_id: str | None + """The ID of the Active Directory to be used for authentication.""" + @dataclass(kw_only=True) class DisableAddressTransferInput(_SerdeShape): """Dataclass for DisableAddressTransferInput structure.""" @@ -472,6 +663,19 @@ class DisableAddressTransferInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableAddressTransferInputDict(TypedDict, total=False): + """Dictionary form of `DisableAddressTransferInput`.""" + + allocation_id: Required[str] + """The allocation ID of an Elastic IP address.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableAddressTransferOutput(_SerdeShape): """Dataclass for DisableAddressTransferOutput structure.""" @@ -498,6 +702,17 @@ class DisableAllowedImagesSettingsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableAllowedImagesSettingsInputDict(TypedDict, total=False): + """Dictionary form of `DisableAllowedImagesSettingsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableAllowedImagesSettingsOutput(_SerdeShape): """Dataclass for DisableAllowedImagesSettingsOutput structure.""" @@ -542,6 +757,32 @@ class DisableApplicationStatusCheckSuppressionInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DisableApplicationStatusCheckSuppressionInputDict(TypedDict, total=False): + """Dictionary form of `DisableApplicationStatusCheckSuppressionInput`.""" + + instance_ids: Sequence[str] | None + """ + The IDs of the instances for which to disable application status check + suppression. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If you retry a request with + the same token, the service ignores the request but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableApplicationStatusCheckSuppressionOutput(_SerdeShape): """Dataclass for DisableApplicationStatusCheckSuppressionOutput structure.""" @@ -587,6 +828,31 @@ class DisableAwsNetworkPerformanceMetricSubscriptionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableAwsNetworkPerformanceMetricSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `DisableAwsNetworkPerformanceMetricSubscriptionInput`.""" + + source: str | None + """ + The source Region or Availability Zone that the metric subscription is + disabled for. For example, `us-east-1`. + """ + destination: str | None + """ + The target Region or Availability Zone that the metric subscription is + disabled for. For example, `eu-north-1`. + """ + metric: str | None + """The metric used for the disabled subscription.""" + statistic: str | None + """The statistic used for the disabled subscription.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableAwsNetworkPerformanceMetricSubscriptionOutput(_SerdeShape): """ @@ -623,6 +889,24 @@ class DisableCapacityManagerInput(_SerdeShape): This field is autopopulated if not provided. """ +class DisableCapacityManagerInputDict(TypedDict, total=False): + """Dictionary form of `DisableCapacityManagerInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class DisableCapacityManagerOutput(_SerdeShape): """Dataclass for DisableCapacityManagerOutput structure.""" @@ -654,6 +938,17 @@ class DisableEbsEncryptionByDefaultInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableEbsEncryptionByDefaultInputDict(TypedDict, total=False): + """Dictionary form of `DisableEbsEncryptionByDefaultInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableEbsEncryptionByDefaultOutput(_SerdeShape): """Dataclass for DisableEbsEncryptionByDefaultOutput structure.""" @@ -688,6 +983,25 @@ class DisableFastLaunchInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableFastLaunchInputDict(TypedDict, total=False): + """Dictionary form of `DisableFastLaunchInput`.""" + + image_id: Required[str] + """Specify the ID of the image for which to disable Windows fast launch.""" + force: bool | None + """ + Forces the image settings to turn off Windows fast launch for your + Windows AMI. This parameter overrides any errors that are encountered + while cleaning up resources in your account. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableFastLaunchOutput(_SerdeShape): """Dataclass for DisableFastLaunchOutput structure.""" @@ -780,6 +1094,33 @@ class DisableFastSnapshotRestoresInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableFastSnapshotRestoresInputDict(TypedDict, total=False): + """Dictionary form of `DisableFastSnapshotRestoresInput`.""" + + availability_zones: Sequence[str] | None + """ + One or more Availability Zones. For example, `us-east-2a`. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + availability_zone_ids: Sequence[str] | None + """ + One or more Availability Zone IDs. For example, `use2-az1`. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + source_snapshot_ids: Required[Sequence[str]] + """The IDs of one or more snapshots. For example, `snap-1234567890abcdef0`.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableFastSnapshotRestoresOutput(_SerdeShape): """Dataclass for DisableFastSnapshotRestoresOutput structure.""" @@ -880,6 +1221,17 @@ class DisableImageBlockPublicAccessInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableImageBlockPublicAccessInputDict(TypedDict, total=False): + """Dictionary form of `DisableImageBlockPublicAccessInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableImageBlockPublicAccessOutput(_SerdeShape): """Dataclass for DisableImageBlockPublicAccessOutput structure.""" @@ -911,12 +1263,25 @@ class DisableImageDeprecationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class DisableImageDeprecationOutput(_SerdeShape): - """Dataclass for DisableImageDeprecationOutput structure.""" +class DisableImageDeprecationInputDict(TypedDict, total=False): + """Dictionary form of `DisableImageDeprecationInput`.""" - return_: bool | None = ... - """Returns `true` if the request succeeds; otherwise, it returns an error.""" + image_id: Required[str] + """The ID of the AMI.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class DisableImageDeprecationOutput(_SerdeShape): + """Dataclass for DisableImageDeprecationOutput structure.""" + + return_: bool | None = ... + """Returns `true` if the request succeeds; otherwise, it returns an error.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -939,6 +1304,19 @@ class DisableImageDeregistrationProtectionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableImageDeregistrationProtectionInputDict(TypedDict, total=False): + """Dictionary form of `DisableImageDeregistrationProtectionInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableImageDeregistrationProtectionOutput(_SerdeShape): """Dataclass for DisableImageDeregistrationProtectionOutput structure.""" @@ -967,6 +1345,19 @@ class DisableImageInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableImageInputDict(TypedDict, total=False): + """Dictionary form of `DisableImageInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableImageOutput(_SerdeShape): """Dataclass for DisableImageOutput structure.""" @@ -998,6 +1389,22 @@ class DisableInstanceSqlHaStandbyDetectionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableInstanceSqlHaStandbyDetectionsInputDict(TypedDict, total=False): + """Dictionary form of `DisableInstanceSqlHaStandbyDetectionsInput`.""" + + instance_ids: Required[Sequence[str]] + """ + The IDs of the instances to disable from SQL Server High Availability + standby detection monitoring. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableInstanceSqlHaStandbyDetectionsOutput(_SerdeShape): """Dataclass for DisableInstanceSqlHaStandbyDetectionsOutput structure.""" @@ -1032,6 +1439,22 @@ class DisableIpamOrganizationAdminAccountInput(_SerdeShape): account. """ +class DisableIpamOrganizationAdminAccountInputDict(TypedDict, total=False): + """Dictionary form of `DisableIpamOrganizationAdminAccountInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + delegated_admin_account_id: Required[str] + """ + The Organizations member account ID that you want to disable as IPAM + account. + """ + @dataclass(kw_only=True) class DisableIpamOrganizationAdminAccountOutput(_SerdeShape): """Dataclass for DisableIpamOrganizationAdminAccountOutput structure.""" @@ -1072,6 +1495,31 @@ class DisableIpamPolicyInput(_SerdeShape): be applied. """ +class DisableIpamPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DisableIpamPolicyInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_policy_id: Required[str] + """The ID of the IPAM policy to disable.""" + organization_target_id: str | None + """ + The ID of the Amazon Web Services Organizations target for which to + disable the IPAM policy. This parameter is required only when IPAM is + integrated with Amazon Web Services Organizations. When IPAM is not + integrated with Amazon Web Services Organizations, omit this parameter + and the policy will be disabled for the current account. + + A target can be an individual Amazon Web Services account or an entity + within an Amazon Web Services Organization to which an IPAM policy can + be applied. + """ + @dataclass(kw_only=True) class DisableIpamPolicyOutput(_SerdeShape): """Dataclass for DisableIpamPolicyOutput structure.""" @@ -1102,6 +1550,21 @@ class DisableRouteServerPropagationInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DisableRouteServerPropagationInputDict(TypedDict, total=False): + """Dictionary form of `DisableRouteServerPropagationInput`.""" + + route_server_id: Required[str] + """The ID of the route server for which to disable propagation.""" + route_table_id: Required[str] + """The ID of the route table for which to disable route server propagation.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableRouteServerPropagationOutput(_SerdeShape): """Dataclass for DisableRouteServerPropagationOutput structure.""" @@ -1128,6 +1591,17 @@ class DisableSerialConsoleAccessInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableSerialConsoleAccessInputDict(TypedDict, total=False): + """Dictionary form of `DisableSerialConsoleAccessInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableSerialConsoleAccessOutput(_SerdeShape): """Dataclass for DisableSerialConsoleAccessOutput structure.""" @@ -1158,6 +1632,17 @@ class DisableSnapshotBlockPublicAccessInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableSnapshotBlockPublicAccessInputDict(TypedDict, total=False): + """Dictionary form of `DisableSnapshotBlockPublicAccessInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableSnapshotBlockPublicAccessOutput(_SerdeShape): """Dataclass for DisableSnapshotBlockPublicAccessOutput structure.""" @@ -1190,6 +1675,23 @@ class DisableTransitGatewayRouteTablePropagationInput(_SerdeShape): transit_gateway_route_table_announcement_id: str | None = ... """The ID of the route table announcement.""" +class DisableTransitGatewayRouteTablePropagationInputDict(TypedDict, total=False): + """Dictionary form of `DisableTransitGatewayRouteTablePropagationInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the propagation route table.""" + transit_gateway_attachment_id: str | None + """The ID of the attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + transit_gateway_route_table_announcement_id: str | None + """The ID of the route table announcement.""" + @dataclass(kw_only=True) class DisableTransitGatewayRouteTablePropagationOutput(_SerdeShape): """ @@ -1223,6 +1725,21 @@ class DisableVgwRoutePropagationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisableVgwRoutePropagationInputDict(TypedDict, total=False): + """Dictionary form of `DisableVgwRoutePropagationInput`.""" + + gateway_id: Required[str] + """The ID of the virtual private gateway.""" + route_table_id: Required[str] + """The ID of the route table.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisableVgwRoutePropagationOutput(_SerdeShape): """Dataclass for DisableVgwRoutePropagationOutput structure.""" @@ -1242,6 +1759,12 @@ class DisableVpcClassicLinkDnsSupportInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class DisableVpcClassicLinkDnsSupportInputDict(TypedDict, total=False): + """Dictionary form of `DisableVpcClassicLinkDnsSupportInput`.""" + + vpc_id: str | None + """The ID of the VPC.""" + @dataclass(kw_only=True) class DisableVpcClassicLinkDnsSupportOutput(_SerdeShape): """Dataclass for DisableVpcClassicLinkDnsSupportOutput structure.""" @@ -1270,6 +1793,19 @@ class DisableVpcClassicLinkInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class DisableVpcClassicLinkInputDict(TypedDict, total=False): + """Dictionary form of `DisableVpcClassicLinkInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + @dataclass(kw_only=True) class DisableVpcClassicLinkOutput(_SerdeShape): """Dataclass for DisableVpcClassicLinkOutput structure.""" @@ -1300,6 +1836,21 @@ class DisassociateAddressInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateAddressInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateAddressInput`.""" + + association_id: str | None + """The association ID. This parameter is required.""" + public_ip: str | None + """Deprecated.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateAddressOutput(_SerdeShape): """Dataclass for DisassociateAddressOutput structure.""" @@ -1348,6 +1899,43 @@ class DisassociateApplicationStatusCheckInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateApplicationStatusCheckInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateApplicationStatusCheckInput`.""" + + application_status_check_id: Required[str] + """The ID of the application status check to disassociate.""" + target_tag_associations: ( + Sequence[CustomTagKeyValueRequestPair | CustomTagKeyValueRequestPairDict] | None + ) + """ + The + [tags](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) + to disassociate from the application status check. Specify the same + key-value pairs that were used during association. + """ + instance_ids: Sequence[str] | None + """ + The IDs of the instances to disassociate from the application status + check. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If you retry a request with + the same token, the service ignores the request but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateApplicationStatusCheckOutput(_SerdeShape): """Dataclass for DisassociateApplicationStatusCheckOutput structure.""" @@ -1383,6 +1971,21 @@ class DisassociateCapacityReservationBillingOwnerInput(_SerdeShape): unused_reservation_billing_owner_id: str | None = ... """The ID of the consumer account to which the request was sent.""" +class DisassociateCapacityReservationBillingOwnerInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateCapacityReservationBillingOwnerInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation.""" + unused_reservation_billing_owner_id: Required[str] + """The ID of the consumer account to which the request was sent.""" + @dataclass(kw_only=True) class DisassociateCapacityReservationBillingOwnerOutput(_SerdeShape): """ @@ -1419,6 +2022,24 @@ class DisassociateClientVpnTargetNetworkInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateClientVpnTargetNetworkInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateClientVpnTargetNetworkInput`.""" + + client_vpn_endpoint_id: Required[str] + """ + The ID of the Client VPN endpoint from which to disassociate the target + network. + """ + association_id: Required[str] + """The ID of the target network association.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateClientVpnTargetNetworkOutput(_SerdeShape): """Dataclass for DisassociateClientVpnTargetNetworkOutput structure.""" @@ -1451,6 +2072,21 @@ class DisassociateEnclaveCertificateIamRoleInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateEnclaveCertificateIamRoleInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateEnclaveCertificateIamRoleInput`.""" + + certificate_arn: Required[str] + """The ARN of the ACM certificate from which to disassociate the IAM role.""" + role_arn: Required[str] + """The ARN of the IAM role to disassociate.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateEnclaveCertificateIamRoleOutput(_SerdeShape): """Dataclass for DisassociateEnclaveCertificateIamRoleOutput structure.""" @@ -1472,6 +2108,12 @@ class DisassociateIamInstanceProfileInput(_SerdeShape): association_id: str | None = ... """The ID of the IAM instance profile association.""" +class DisassociateIamInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateIamInstanceProfileInput`.""" + + association_id: Required[str] + """The ID of the IAM instance profile association.""" + @dataclass(kw_only=True) class DisassociateIamInstanceProfileOutput(_SerdeShape): """Dataclass for DisassociateIamInstanceProfileOutput structure.""" @@ -1502,6 +2144,24 @@ class DisassociateInstanceEventWindowInput(_SerdeShape): association_target: InstanceEventWindowDisassociationRequest | None = ... """One or more targets to disassociate from the specified event window.""" +class DisassociateInstanceEventWindowInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateInstanceEventWindowInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_event_window_id: Required[str] + """The ID of the event window.""" + association_target: Required[ + InstanceEventWindowDisassociationRequest + | InstanceEventWindowDisassociationRequestDict + ] + """One or more targets to disassociate from the specified event window.""" + @dataclass(kw_only=True) class DisassociateInstanceEventWindowOutput(_SerdeShape): """Dataclass for DisassociateInstanceEventWindowOutput structure.""" @@ -1532,6 +2192,21 @@ class DisassociateIpamByoasnInput(_SerdeShape): cidr: str | None = ... """A BYOIP CIDR.""" +class DisassociateIpamByoasnInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateIpamByoasnInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + asn: Required[str] + """A public 2-byte or 4-byte ASN.""" + cidr: Required[str] + """A BYOIP CIDR.""" + @dataclass(kw_only=True) class DisassociateIpamByoasnOutput(_SerdeShape): """Dataclass for DisassociateIpamByoasnOutput structure.""" @@ -1560,6 +2235,19 @@ class DisassociateIpamResourceDiscoveryInput(_SerdeShape): ipam_resource_discovery_association_id: str | None = ... """A resource discovery association ID.""" +class DisassociateIpamResourceDiscoveryInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateIpamResourceDiscoveryInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_association_id: Required[str] + """A resource discovery association ID.""" + @dataclass(kw_only=True) class DisassociateIpamResourceDiscoveryOutput(_SerdeShape): """Dataclass for DisassociateIpamResourceDiscoveryOutput structure.""" @@ -1599,6 +2287,30 @@ class DisassociateNatGatewayAddressInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateNatGatewayAddressInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateNatGatewayAddressInput`.""" + + nat_gateway_id: Required[str] + """The ID of the NAT gateway.""" + association_ids: Required[Sequence[str]] + """ + The association IDs of EIPs that have been associated with the NAT + gateway. + """ + max_drain_duration_seconds: int | None + """ + The maximum amount of time to wait (in seconds) before forcibly + releasing the IP addresses if connections are still in progress. Default + value is 350 seconds. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateNatGatewayAddressOutput(_SerdeShape): """Dataclass for DisassociateNatGatewayAddressOutput structure.""" @@ -1631,6 +2343,21 @@ class DisassociateRouteServerInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateRouteServerInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateRouteServerInput`.""" + + route_server_id: Required[str] + """The ID of the route server to disassociate.""" + vpc_id: Required[str] + """The ID of the VPC to disassociate from the route server.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateRouteServerOutput(_SerdeShape): """Dataclass for DisassociateRouteServerOutput structure.""" @@ -1662,6 +2389,22 @@ class DisassociateRouteTableInput(_SerdeShape): route table and subnet or gateway. """ +class DisassociateRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateRouteTableInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + association_id: Required[str] + """ + The association ID representing the current association between the + route table and subnet or gateway. + """ + @dataclass(kw_only=True) class DisassociateRouteTableOutput(_SerdeShape): """Dataclass for DisassociateRouteTableOutput structure.""" @@ -1690,6 +2433,21 @@ class DisassociateSecurityGroupVpcInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateSecurityGroupVpcInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateSecurityGroupVpcInput`.""" + + group_id: Required[str] + """A security group ID.""" + vpc_id: Required[str] + """A VPC ID.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateSecurityGroupVpcOutput(_SerdeShape): """Dataclass for DisassociateSecurityGroupVpcOutput structure.""" @@ -1711,6 +2469,12 @@ class DisassociateSubnetCidrBlockInput(_SerdeShape): association_id: str | None = ... """The association ID for the CIDR block.""" +class DisassociateSubnetCidrBlockInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateSubnetCidrBlockInput`.""" + + association_id: Required[str] + """The association ID for the CIDR block.""" + @dataclass(kw_only=True) class DisassociateSubnetCidrBlockOutput(_SerdeShape): """Dataclass for DisassociateSubnetCidrBlockOutput structure.""" @@ -1745,6 +2509,23 @@ class DisassociateTransitGatewayMulticastDomainInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateTransitGatewayMulticastDomainInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateTransitGatewayMulticastDomainInput`.""" + + transit_gateway_multicast_domain_id: Required[str] + """The ID of the transit gateway multicast domain.""" + transit_gateway_attachment_id: Required[str] + """The ID of the attachment.""" + subnet_ids: Required[Sequence[str]] + """The IDs of the subnets;""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateTransitGatewayMulticastDomainOutput(_SerdeShape): """Dataclass for DisassociateTransitGatewayMulticastDomainOutput structure.""" @@ -1778,6 +2559,24 @@ class DisassociateTransitGatewayPolicyTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateTransitGatewayPolicyTableInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateTransitGatewayPolicyTableInput`.""" + + transit_gateway_policy_table_id: Required[str] + """The ID of the disassociated policy table.""" + transit_gateway_attachment_id: Required[str] + """ + The ID of the transit gateway attachment to disassociate from the policy + table. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateTransitGatewayPolicyTableOutput(_SerdeShape): """Dataclass for DisassociateTransitGatewayPolicyTableOutput structure.""" @@ -1808,6 +2607,21 @@ class DisassociateTransitGatewayRouteTableInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateTransitGatewayRouteTableInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateTransitGatewayRouteTableInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + transit_gateway_attachment_id: Required[str] + """The ID of the attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateTransitGatewayRouteTableOutput(_SerdeShape): """Dataclass for DisassociateTransitGatewayRouteTableOutput structure.""" @@ -1844,6 +2658,27 @@ class DisassociateTrunkInterfaceInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class DisassociateTrunkInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateTrunkInterfaceInput`.""" + + association_id: Required[str] + """The ID of the association""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class DisassociateTrunkInterfaceOutput(_SerdeShape): """Dataclass for DisassociateTrunkInterfaceOutput structure.""" @@ -1871,6 +2706,12 @@ class DisassociateVpcCidrBlockInput(_SerdeShape): association_id: str | None = ... """The association ID for the CIDR block.""" +class DisassociateVpcCidrBlockInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateVpcCidrBlockInput`.""" + + association_id: Required[str] + """The association ID for the CIDR block.""" + @dataclass(kw_only=True) class DisassociateVpcCidrBlockOutput(_SerdeShape): """Dataclass for DisassociateVpcCidrBlockOutput structure.""" @@ -1900,6 +2741,16 @@ class DiskImage(_SerdeShape): volume: VolumeDetail | None = ... """Information about the volume.""" +class DiskImageDict(TypedDict, total=False): + """Dictionary form of `DiskImage`.""" + + description: str | None + """A description of the disk image.""" + image: DiskImageDetail | DiskImageDetailDict | None + """Information about the disk image.""" + volume: VolumeDetail | VolumeDetailDict | None + """Information about the volume.""" + @dataclass(kw_only=True) class DiskImageDescription(_SerdeShape): """Describes a disk image.""" @@ -1947,6 +2798,28 @@ class DiskImageDetail(_SerdeShape): Manifest](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). """ +class DiskImageDetailDict(TypedDict, total=False): + """Dictionary form of `DiskImageDetail`.""" + + format: Required[str] + """The disk image format.""" + bytes_: Required[int] + """The size of the disk image, in GiB.""" + import_manifest_url: Required[str] + """ + A presigned URL for the import manifest stored in Amazon S3 and + presented here as an Amazon S3 presigned URL. For information about + creating a presigned URL for an Amazon S3 object, read the \"Query + String Request Authentication Alternative\" section of the + [Authenticating REST + Requests](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html) + topic in the *Amazon Simple Storage Service Developer Guide*. + + For information about the import manifest referenced by this API action, + see [VM Import + Manifest](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). + """ + class DiskImageFormat(UnknownEnumMixin, StrEnum): VMDK = "VMDK" RAW = "RAW" @@ -2076,6 +2949,51 @@ class DnsOptionsSpecification(_SerdeShape): verified-domains-and-specified-domains or specified-domains-only. """ +class DnsOptionsSpecificationDict(TypedDict, total=False): + """Dictionary form of `DnsOptionsSpecification`.""" + + dns_record_ip_type: str | None + """The DNS records created for the endpoint.""" + private_dns_only_for_inbound_resolver_endpoint: bool | None + """ + Indicates whether to enable private DNS only for inbound endpoints. This + option is available only for services that support both gateway and + interface endpoints. It routes traffic that originates from the VPC to + the gateway endpoint and traffic that originates from on-premises to the + interface endpoint. + """ + private_dns_preference: str | None + """ + The preference for which private domains have a private hosted zone + created for and associated with the specified VPC. Only supported when + private DNS is enabled and when the VPC endpoint type is ServiceNetwork + or Resource. + + - `ALL_DOMAINS` - VPC Lattice provisions private hosted zones for all + custom domain names. + + - `VERIFIED_DOMAINS_ONLY` - VPC Lattice provisions a private hosted zone + only if custom domain name has been verified by the provider. + + - `VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS` - VPC Lattice provisions + private hosted zones for all verified custom domain names and other + domain names that the resource consumer specifies. The resource + consumer specifies the domain names in the PrivateDnsSpecifiedDomains + parameter. + + - `SPECIFIED_DOMAINS_ONLY` - VPC Lattice provisions a private hosted + zone for domain names specified by the resource consumer. The resource + consumer specifies the domain names in the PrivateDnsSpecifiedDomains + parameter. + """ + private_dns_specified_domains: Sequence[str] | None + """ + Indicates which of the private domains to create private hosted zones + for and associate with the specified VPC. Only supported when private + DNS is enabled and the private DNS preference is + verified-domains-and-specified-domains or specified-domains-only. + """ + class DnsRecordIpType(UnknownEnumMixin, StrEnum): IPV4 = "ipv4" DUALSTACK = "dualstack" @@ -2099,6 +3017,22 @@ class DnsServersOptionsModifyStructure(_SerdeShape): the existing DNS servers. """ +class DnsServersOptionsModifyStructureDict(TypedDict, total=False): + """Dictionary form of `DnsServersOptionsModifyStructure`.""" + + custom_dns_servers: Sequence[str] | None + """ + The IPv4 address range, in CIDR notation, of the DNS servers to be used. + You can specify up to two DNS servers. Ensure that the DNS servers can + be reached by the clients. The specified values overwrite the existing + values. + """ + enabled: bool | None + """ + Indicates whether DNS servers should be used. Specify `False` to delete + the existing DNS servers. + """ + class DnsSupportValue(UnknownEnumMixin, StrEnum): ENABLE = "enable" DISABLE = "disable" @@ -2319,65 +3253,272 @@ class EbsBlockDevice(_SerdeShape): cards. The default EBS card index is 0. """ -@dataclass(kw_only=True) -class EbsBlockDeviceResponse(_SerdeShape): - """Describes a block device for an EBS volume.""" +class EbsBlockDeviceDict(TypedDict, total=False): + """Dictionary form of `EbsBlockDevice`.""" - encrypted: bool | None = ... - """Indicates whether the volume is encrypted.""" - delete_on_termination: bool | None = ... - """Indicates whether the volume is deleted on instance termination.""" - iops: int | None = ... + delete_on_termination: bool | None + """ + Indicates whether the EBS volume is deleted on instance termination. For + more information, see [Preserving Amazon EBS volumes on instance + termination](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#preserving-volumes-on-termination) + in the *Amazon EC2 User Guide*. + """ + iops: int | None """ The number of I/O operations per second (IOPS). For `gp3`, `io1`, and `io2` volumes, this represents the number of IOPS that are provisioned for the volume. For `gp2` volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. + + The following are the supported values for each volume type: + + - `gp3`: 3,000 - 80,000 IOPS + + - `io1`: 100 - 64,000 IOPS + + - `io2`: 100 - 256,000 IOPS + + For `io2` volumes, you can achieve up to 256,000 IOPS on [instances + built on the Nitro + System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). + On other instances, you can achieve performance up to 32,000 IOPS. + + This parameter is required for `io1` and `io2` volumes. The default for + `gp3` volumes is 3,000 IOPS. """ - throughput: int | None = ... - """The throughput that the volume supports, in MiB/s.""" - kms_key_id: str | None = ... + snapshot_id: str | None + """The ID of the snapshot.""" + volume_size: int | None """ - Identifier (key ID, key alias, key ARN, or alias ARN) of the customer - managed KMS key to use for EBS encryption. + The size of the volume, in GiBs. You must specify either a snapshot ID + or a volume size. If you specify a snapshot, the default is the snapshot + size. You can specify a volume size that is equal to or larger than the + snapshot size. + + The following are the supported sizes for each volume type: + + - `gp2`: 1 - 16,384 GiB + + - `gp3`: 1 - 65,536 GiB + + - `io1`: 4 - 16,384 GiB + + - `io2`: 4 - 65,536 GiB + + - `st1` and `sc1`: 125 - 16,384 GiB + + - `standard`: 1 - 1024 GiB """ - snapshot_id: str | None = ... - """The ID of the snapshot.""" - volume_size: int | None = ... - """The size of the volume, in GiBs.""" - volume_type: str | None = ... + volume_type: str | None """ The volume type. For more information, see [Amazon EBS volume types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html) in the *Amazon EBS User Guide*. """ + kms_key_id: str | None + """ + Identifier (key ID, key alias, key ARN, or alias ARN) of the customer + managed KMS key to use for EBS encryption. -@dataclass(kw_only=True) -class EbsCardInfo(_SerdeShape): + This parameter is only supported on `BlockDeviceMapping` objects called + by + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html), + [RequestSpotFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html), + and + [RequestSpotInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html). """ - Describes the performance characteristics of an EBS card on the instance - type. + throughput: int | None """ + The throughput that the volume supports, in MiB/s. - ebs_card_index: int | None = ... - """The index of the EBS card.""" - baseline_bandwidth_in_mbps: int | None = ... - """The baseline bandwidth performance for the EBS card, in Mbps.""" - baseline_throughput_in_m_bps: float | None = ... - """The baseline throughput performance for the EBS card, in MBps.""" - baseline_iops: int | None = ... - """The baseline IOPS performance for the EBS card.""" - maximum_bandwidth_in_mbps: int | None = ... - """The maximum bandwidth performance for the EBS card, in Mbps.""" - maximum_throughput_in_m_bps: float | None = ... - """The maximum throughput performance for the EBS card, in MBps.""" - maximum_iops: int | None = ... - """The maximum IOPS performance for the EBS card.""" + This parameter is valid only for `gp3` volumes. -class EbsEncryptionSupport(UnknownEnumMixin, StrEnum): - UNSUPPORTED = "unsupported" - SUPPORTED = "supported" + Valid Range: Minimum value of 125. Maximum value of 2,000. + """ + outpost_arn: str | None + """ + The ARN of the Outpost on which the snapshot is stored. + + This parameter is not supported when using + [CreateImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html). + """ + availability_zone: str | None + """ + The Availability Zone where the EBS volume will be created (for example, + `us-east-1a`). + + Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but + not both. If neither is specified, Amazon EC2 automatically selects an + Availability Zone within the Region. + + This parameter is not supported when using + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html), + [CreateImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html), + [DescribeImages](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html), + [RequestSpotFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html), + [RequestSpotInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html), + and + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html). + """ + encrypted: bool | None + """ + Indicates whether the encryption state of an EBS volume is changed while + being restored from a backing snapshot. The effect of setting the + encryption state to `true` depends on the volume origin (new or from a + snapshot), starting encryption state, ownership, and whether encryption + by default is enabled. For more information, see [Amazon EBS + encryption](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html#encryption-parameters) + in the *Amazon EBS User Guide*. + + In no case can you remove encryption from an encrypted volume. + + Encrypted volumes can only be attached to instances that support Amazon + EBS encryption. For more information, see [Supported instance + types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances). + + This parameter is not returned by DescribeImageAttribute. + + For CreateImage and RegisterImage, whether you can include this + parameter, and the allowed values differ depending on the type of block + device mapping you are creating. + + - If you are creating a block device mapping for a **new (empty) + volume**, you can include this parameter, and specify either `true` + for an encrypted volume, or `false` for an unencrypted volume. If you + omit this parameter, it defaults to `false` (unencrypted). + + - If you are creating a block device mapping from an **existing + encrypted or unencrypted snapshot**, you must omit this parameter. If + you include this parameter, the request will fail, regardless of the + value that you specify. + + - If you are creating a block device mapping from an **existing + unencrypted volume**, you can include this parameter, but you must + specify `false`. If you specify `true`, the request will fail. In this + case, we recommend that you omit the parameter. + + - If you are creating a block device mapping from an **existing + encrypted volume**, you can include this parameter, and specify either + `true` or `false`. However, if you specify `false`, the parameter is + ignored and the block device mapping is always encrypted. In this + case, we recommend that you omit the parameter. + """ + volume_initialization_rate: int | None + """ + Specifies the Amazon EBS Provisioned Rate for Volume Initialization + (volume initialization rate), in MiB/s, at which to download the + snapshot blocks from Amazon S3 to the volume. This is also known as + *volume initialization*. Specifying a volume initialization rate ensures + that the volume is initialized at a predictable and consistent rate + after creation. For more information, see [Initialize Amazon EBS + volumes](https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html) + in the *Amazon EC2 User Guide*. + + This parameter is supported only for volumes created from snapshots. + Omit this parameter if: + + - You want to create the volume using fast snapshot restore. You must + specify a snapshot that is enabled for fast snapshot restore. In this + case, the volume is fully initialized at creation. + + Note: + If you specify a snapshot that is enabled for fast snapshot restore + and a volume initialization rate, the volume will be initialized at + the specified rate instead of fast snapshot restore. + + - You want to create a volume that is initialized at the default rate. + + This parameter is not supported when using + [CreateImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html) + and + [DescribeImages](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html). + + Valid range: 100 - 300 MiB/s + """ + availability_zone_id: str | None + """ + The ID of the Availability Zone where the EBS volume will be created + (for example, `use1-az1`). + + Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but + not both. If neither is specified, Amazon EC2 automatically selects an + Availability Zone within the Region. + + This parameter is not supported when using + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html), + [CreateImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html), + [DescribeImages](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html), + [RequestSpotFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html), + [RequestSpotInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html), + and + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html). + """ + ebs_card_index: int | None + """ + The index of the EBS card. Some instance types support multiple EBS + cards. The default EBS card index is 0. + """ + +@dataclass(kw_only=True) +class EbsBlockDeviceResponse(_SerdeShape): + """Describes a block device for an EBS volume.""" + + encrypted: bool | None = ... + """Indicates whether the volume is encrypted.""" + delete_on_termination: bool | None = ... + """Indicates whether the volume is deleted on instance termination.""" + iops: int | None = ... + """ + The number of I/O operations per second (IOPS). For `gp3`, `io1`, and + `io2` volumes, this represents the number of IOPS that are provisioned + for the volume. For `gp2` volumes, this represents the baseline + performance of the volume and the rate at which the volume accumulates + I/O credits for bursting. + """ + throughput: int | None = ... + """The throughput that the volume supports, in MiB/s.""" + kms_key_id: str | None = ... + """ + Identifier (key ID, key alias, key ARN, or alias ARN) of the customer + managed KMS key to use for EBS encryption. + """ + snapshot_id: str | None = ... + """The ID of the snapshot.""" + volume_size: int | None = ... + """The size of the volume, in GiBs.""" + volume_type: str | None = ... + """ + The volume type. For more information, see [Amazon EBS volume + types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html) + in the *Amazon EBS User Guide*. + """ + +@dataclass(kw_only=True) +class EbsCardInfo(_SerdeShape): + """ + Describes the performance characteristics of an EBS card on the instance + type. + """ + + ebs_card_index: int | None = ... + """The index of the EBS card.""" + baseline_bandwidth_in_mbps: int | None = ... + """The baseline bandwidth performance for the EBS card, in Mbps.""" + baseline_throughput_in_m_bps: float | None = ... + """The baseline throughput performance for the EBS card, in MBps.""" + baseline_iops: int | None = ... + """The baseline IOPS performance for the EBS card.""" + maximum_bandwidth_in_mbps: int | None = ... + """The maximum bandwidth performance for the EBS card, in Mbps.""" + maximum_throughput_in_m_bps: float | None = ... + """The maximum throughput performance for the EBS card, in MBps.""" + maximum_iops: int | None = ... + """The maximum IOPS performance for the EBS card.""" + +class EbsEncryptionSupport(UnknownEnumMixin, StrEnum): + UNSUPPORTED = "unsupported" + SUPPORTED = "supported" @dataclass(kw_only=True) class EbsInfo(_SerdeShape): @@ -2464,6 +3605,14 @@ class EbsInstanceBlockDeviceSpecification(_SerdeShape): delete_on_termination: bool | None = ... """Indicates whether the volume is deleted on instance termination.""" +class EbsInstanceBlockDeviceSpecificationDict(TypedDict, total=False): + """Dictionary form of `EbsInstanceBlockDeviceSpecification`.""" + + volume_id: str | None + """The ID of the EBS volume.""" + delete_on_termination: bool | None + """Indicates whether the volume is deleted on instance termination.""" + class EbsNvmeSupport(UnknownEnumMixin, StrEnum): UNSUPPORTED = "unsupported" SUPPORTED = "supported" @@ -2718,6 +3867,12 @@ class ElasticGpuSpecification(_SerdeShape): type: str | None = ... """The type of Elastic Graphics accelerator.""" +class ElasticGpuSpecificationDict(TypedDict, total=False): + """Dictionary form of `ElasticGpuSpecification`.""" + + type: Required[str] + """The type of Elastic Graphics accelerator.""" + @dataclass(kw_only=True) class ElasticGpuSpecificationResponse(_SerdeShape): """ @@ -2764,6 +3919,22 @@ class ElasticInferenceAccelerator(_SerdeShape): Default: 1 """ +class ElasticInferenceAcceleratorDict(TypedDict, total=False): + """Dictionary form of `ElasticInferenceAccelerator`.""" + + type: Required[str] + """ + The type of elastic inference accelerator. The possible values are + `eia1.medium`, `eia1.large`, `eia1.xlarge`, `eia2.medium`, `eia2.large`, + and `eia2.xlarge`. + """ + count: int | None + """ + The number of elastic inference accelerators to attach to the instance. + + Default: 1 + """ + @dataclass(kw_only=True) class ElasticInferenceAcceleratorAssociation(_SerdeShape): """ @@ -2805,6 +3976,24 @@ class EnableAddressTransferInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableAddressTransferInputDict(TypedDict, total=False): + """Dictionary form of `EnableAddressTransferInput`.""" + + allocation_id: Required[str] + """The allocation ID of an Elastic IP address.""" + transfer_account_id: Required[str] + """ + The ID of the account that you want to transfer the Elastic IP address + to. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableAddressTransferOutput(_SerdeShape): """Dataclass for EnableAddressTransferOutput structure.""" @@ -2837,6 +4026,23 @@ class EnableAllowedImagesSettingsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableAllowedImagesSettingsInputDict(TypedDict, total=False): + """Dictionary form of `EnableAllowedImagesSettingsInput`.""" + + allowed_images_settings_state: Required[str] + """ + Specify `enabled` to apply the image criteria specified by the Allowed + AMIs settings. Specify `audit-mode` so that you can check which AMIs + will be allowed or not allowed by the image criteria. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableAllowedImagesSettingsOutput(_SerdeShape): """Dataclass for EnableAllowedImagesSettingsOutput structure.""" @@ -2887,6 +4093,38 @@ class EnableApplicationStatusCheckSuppressionInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class EnableApplicationStatusCheckSuppressionInputDict(TypedDict, total=False): + """Dictionary form of `EnableApplicationStatusCheckSuppressionInput`.""" + + instance_ids: Sequence[str] | None + """ + The IDs of the instances for which to suppress application status + checks. + """ + duration_seconds: int | None + """ + The duration, in seconds, for which to suppress application status + checks. If omitted, the application status check is suppressed + indefinitely until you call `DisableApplicationStatusCheckSuppression`. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If you retry a request with + the same token, the service ignores the request but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableApplicationStatusCheckSuppressionOutput(_SerdeShape): """Dataclass for EnableApplicationStatusCheckSuppressionOutput structure.""" @@ -2910,25 +4148,54 @@ class EnableAwsNetworkPerformanceMetricSubscriptionInput(_SerdeShape): structure. """ - source: str | None = ... + source: str | None = ... + """ + The source Region (like `us-east-1`) or Availability Zone ID (like + `use1-az1`) that the metric subscription is enabled for. If you use + Availability Zone IDs, the Source and Destination Availability Zones + must be in the same Region. + """ + destination: str | None = ... + """ + The target Region (like `us-east-2`) or Availability Zone ID (like + `use2-az2`) that the metric subscription is enabled for. If you use + Availability Zone IDs, the Source and Destination Availability Zones + must be in the same Region. + """ + metric: str | None = ... + """The metric used for the enabled subscription.""" + statistic: str | None = ... + """The statistic used for the enabled subscription.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class EnableAwsNetworkPerformanceMetricSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `EnableAwsNetworkPerformanceMetricSubscriptionInput`.""" + + source: str | None """ The source Region (like `us-east-1`) or Availability Zone ID (like `use1-az1`) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region. """ - destination: str | None = ... + destination: str | None """ The target Region (like `us-east-2`) or Availability Zone ID (like `use2-az2`) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region. """ - metric: str | None = ... + metric: str | None """The metric used for the enabled subscription.""" - statistic: str | None = ... + statistic: str | None """The statistic used for the enabled subscription.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -2978,6 +4245,30 @@ class EnableCapacityManagerInput(_SerdeShape): This field is autopopulated if not provided. """ +class EnableCapacityManagerInputDict(TypedDict, total=False): + """Dictionary form of `EnableCapacityManagerInput`.""" + + organizations_access: bool | None + """ + Specifies whether to enable cross-account access for Amazon Web Services + Organizations. When enabled, Capacity Manager can aggregate data from + all accounts in your organization. Default is false. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class EnableCapacityManagerOutput(_SerdeShape): """Dataclass for EnableCapacityManagerOutput structure.""" @@ -3009,6 +4300,17 @@ class EnableEbsEncryptionByDefaultInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableEbsEncryptionByDefaultInputDict(TypedDict, total=False): + """Dictionary form of `EnableEbsEncryptionByDefaultInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableEbsEncryptionByDefaultOutput(_SerdeShape): """Dataclass for EnableEbsEncryptionByDefaultOutput structure.""" @@ -3061,6 +4363,51 @@ class EnableFastLaunchInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableFastLaunchInputDict(TypedDict, total=False): + """Dictionary form of `EnableFastLaunchInput`.""" + + image_id: Required[str] + """Specify the ID of the image for which to enable Windows fast launch.""" + resource_type: str | None + """ + The type of resource to use for pre-provisioning the AMI for Windows + fast launch. Supported values include: `snapshot`, which is the default + value. + """ + snapshot_configuration: ( + FastLaunchSnapshotConfigurationRequest + | FastLaunchSnapshotConfigurationRequestDict + | None + ) + """ + Configuration settings for creating and managing the snapshots that are + used for pre-provisioning the AMI for Windows fast launch. The + associated `ResourceType` must be `snapshot`. + """ + launch_template: ( + FastLaunchLaunchTemplateSpecificationRequest + | FastLaunchLaunchTemplateSpecificationRequestDict + | None + ) + """ + The launch template to use when launching Windows instances from + pre-provisioned snapshots. Launch template parameters can include either + the name or ID of the launch template, but not both. + """ + max_parallel_launches: int | None + """ + The maximum number of instances that Amazon EC2 can launch at the same + time to create pre-provisioned snapshots for Windows fast launch. Value + must be `6` or greater. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableFastLaunchOutput(_SerdeShape): """Dataclass for EnableFastLaunchOutput structure.""" @@ -3153,6 +4500,37 @@ class EnableFastSnapshotRestoresInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableFastSnapshotRestoresInputDict(TypedDict, total=False): + """Dictionary form of `EnableFastSnapshotRestoresInput`.""" + + availability_zones: Sequence[str] | None + """ + One or more Availability Zones. For example, `us-east-2a`. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + availability_zone_ids: Sequence[str] | None + """ + One or more Availability Zone IDs. For example, `use2-az1`. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + source_snapshot_ids: Required[Sequence[str]] + """ + The IDs of one or more snapshots. For example, `snap-1234567890abcdef0`. + You can specify a snapshot that was shared with you from another Amazon + Web Services account. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableFastSnapshotRestoresOutput(_SerdeShape): """Dataclass for EnableFastSnapshotRestoresOutput structure.""" @@ -3259,6 +4637,23 @@ class EnableImageBlockPublicAccessInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableImageBlockPublicAccessInputDict(TypedDict, total=False): + """Dictionary form of `EnableImageBlockPublicAccessInput`.""" + + image_block_public_access_state: Required[str] + """ + Specify `block-new-sharing` to enable block public access for AMIs at + the account level in the specified Region. This will block any attempt + to publicly share your AMIs in the specified Region. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableImageBlockPublicAccessOutput(_SerdeShape): """Dataclass for EnableImageBlockPublicAccessOutput structure.""" @@ -3300,6 +4695,29 @@ class EnableImageDeprecationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableImageDeprecationInputDict(TypedDict, total=False): + """Dictionary form of `EnableImageDeprecationInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + deprecate_at: Required[datetime] + """ + The date and time to deprecate the AMI, in UTC, in the following format: + *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z. If you specify a value for seconds, + Amazon EC2 rounds the seconds to the nearest minute. + + You can't specify a date in the past. The upper limit for `DeprecateAt` + is 10 years from now, except for public AMIs, where the upper limit is 2 + years from the creation date. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableImageDeprecationOutput(_SerdeShape): """Dataclass for EnableImageDeprecationOutput structure.""" @@ -3333,6 +4751,24 @@ class EnableImageDeregistrationProtectionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableImageDeregistrationProtectionInputDict(TypedDict, total=False): + """Dictionary form of `EnableImageDeregistrationProtectionInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + with_cooldown: bool | None + """ + If `true`, enforces deregistration protection for 24 hours after + deregistration protection is disabled. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableImageDeregistrationProtectionOutput(_SerdeShape): """Dataclass for EnableImageDeregistrationProtectionOutput structure.""" @@ -3361,6 +4797,19 @@ class EnableImageInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableImageInputDict(TypedDict, total=False): + """Dictionary form of `EnableImageInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableImageOutput(_SerdeShape): """Dataclass for EnableImageOutput structure.""" @@ -3401,6 +4850,31 @@ class EnableInstanceSqlHaStandbyDetectionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableInstanceSqlHaStandbyDetectionsInputDict(TypedDict, total=False): + """Dictionary form of `EnableInstanceSqlHaStandbyDetectionsInput`.""" + + instance_ids: Required[Sequence[str]] + """ + The IDs of the instances to enable for SQL Server High Availability + standby detection monitoring. + """ + sql_server_credentials: str | None + """ + The ARN of the Secrets Manager secret containing the SQL Server access + credentials. The specified secret must contain valid SQL Server + credentials for the specified instances. If not specified, deafult local + user credentials will be used by the Amazon Web Services Systems Manager + agent. To enable instances with different credentials, you must make + separate requests. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableInstanceSqlHaStandbyDetectionsOutput(_SerdeShape): """Dataclass for EnableInstanceSqlHaStandbyDetectionsOutput structure.""" @@ -3463,6 +4937,50 @@ class EnableIpamInternetRegistryAssociationInput(_SerdeShape): This field is autopopulated if not provided. """ +class EnableIpamInternetRegistryAssociationInputDict(TypedDict, total=False): + """Dictionary form of `EnableIpamInternetRegistryAssociationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association to enable.""" + rpki_version: Required[str] + """The RPKI version to use from the Parent Response XML.""" + service_uri: Required[str] + """ + The RPKI service URI for the publication point from the Parent Response + XML. + """ + child_handle: Required[str] + """ + The child handle for the BPKI certificate hierarchy from the Parent + Response XML. + """ + parent_handle: Required[str] + """ + The parent handle for the BPKI certificate hierarchy from the Parent + Response XML. + """ + parent_bpki_ta: Required[str] + """ + The parent BPKI Trust Anchor certificate in PEM format from the Parent + Response XML. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, the operation ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class EnableIpamInternetRegistryAssociationOutput(_SerdeShape): """Dataclass for EnableIpamInternetRegistryAssociationOutput structure.""" @@ -3494,6 +5012,22 @@ class EnableIpamOrganizationAdminAccountInput(_SerdeShape): account. """ +class EnableIpamOrganizationAdminAccountInputDict(TypedDict, total=False): + """Dictionary form of `EnableIpamOrganizationAdminAccountInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + delegated_admin_account_id: Required[str] + """ + The Organizations member account ID that you want to enable as the IPAM + account. + """ + @dataclass(kw_only=True) class EnableIpamOrganizationAdminAccountOutput(_SerdeShape): """Dataclass for EnableIpamOrganizationAdminAccountOutput structure.""" @@ -3534,6 +5068,31 @@ class EnableIpamPolicyInput(_SerdeShape): and the policy will apply to the current account. """ +class EnableIpamPolicyInputDict(TypedDict, total=False): + """Dictionary form of `EnableIpamPolicyInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_policy_id: Required[str] + """The ID of the IPAM policy to enable.""" + organization_target_id: str | None + """ + A target can be an individual Amazon Web Services account or an entity + within an Amazon Web Services Organization to which an IPAM policy can + be applied. + + The ID of the Amazon Web Services Organizations target for which to + enable the IPAM policy. This parameter is required only when IPAM is + integrated with Amazon Web Services Organizations. When IPAM is not + integrated with Amazon Web Services Organizations, omit this parameter + and the policy will apply to the current account. + """ + @dataclass(kw_only=True) class EnableIpamPolicyOutput(_SerdeShape): """Dataclass for EnableIpamPolicyOutput structure.""" @@ -3563,6 +5122,17 @@ class EnableReachabilityAnalyzerOrganizationSharingInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableReachabilityAnalyzerOrganizationSharingInputDict(TypedDict, total=False): + """Dictionary form of `EnableReachabilityAnalyzerOrganizationSharingInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableReachabilityAnalyzerOrganizationSharingOutput(_SerdeShape): """ @@ -3596,6 +5166,21 @@ class EnableRouteServerPropagationInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class EnableRouteServerPropagationInputDict(TypedDict, total=False): + """Dictionary form of `EnableRouteServerPropagationInput`.""" + + route_server_id: Required[str] + """The ID of the route server for which to enable propagation.""" + route_table_id: Required[str] + """The ID of the route table to which route server will propagate routes.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableRouteServerPropagationOutput(_SerdeShape): """Dataclass for EnableRouteServerPropagationOutput structure.""" @@ -3614,7 +5199,18 @@ class EnableRouteServerPropagationOutput(_SerdeShape): class EnableSerialConsoleAccessInput(_SerdeShape): """Dataclass for EnableSerialConsoleAccessInput structure.""" - dry_run: bool | None = ... + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class EnableSerialConsoleAccessInputDict(TypedDict, total=False): + """Dictionary form of `EnableSerialConsoleAccessInput`.""" + + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -3671,6 +5267,36 @@ class EnableSnapshotBlockPublicAccessInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableSnapshotBlockPublicAccessInputDict(TypedDict, total=False): + """Dictionary form of `EnableSnapshotBlockPublicAccessInput`.""" + + state: Required[str] + """ + The mode in which to enable block public access for snapshots for the + Region. Specify one of the following values: + + - `block-all-sharing` - Prevents all public sharing of snapshots in the + Region. Users in the account will no longer be able to request new + public sharing. Additionally, snapshots that are already publicly + shared are treated as private and they are no longer publicly + available. + + - `block-new-sharing` - Prevents only new public sharing of snapshots in + the Region. Users in the account will no longer be able to request new + public sharing. However, snapshots that are already publicly shared, + remain publicly available. + + `unblocked` is not a valid value for + **EnableSnapshotBlockPublicAccess**. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableSnapshotBlockPublicAccessOutput(_SerdeShape): """Dataclass for EnableSnapshotBlockPublicAccessOutput structure.""" @@ -3707,6 +5333,23 @@ class EnableTransitGatewayRouteTablePropagationInput(_SerdeShape): transit_gateway_route_table_announcement_id: str | None = ... """The ID of the transit gateway route table announcement.""" +class EnableTransitGatewayRouteTablePropagationInputDict(TypedDict, total=False): + """Dictionary form of `EnableTransitGatewayRouteTablePropagationInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the propagation route table.""" + transit_gateway_attachment_id: str | None + """The ID of the attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + transit_gateway_route_table_announcement_id: str | None + """The ID of the transit gateway route table announcement.""" + @dataclass(kw_only=True) class EnableTransitGatewayRouteTablePropagationOutput(_SerdeShape): """Dataclass for EnableTransitGatewayRouteTablePropagationOutput structure.""" @@ -3744,6 +5387,28 @@ class EnableVgwRoutePropagationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class EnableVgwRoutePropagationInputDict(TypedDict, total=False): + """Dictionary form of `EnableVgwRoutePropagationInput`.""" + + gateway_id: Required[str] + """ + The ID of the virtual private gateway that is attached to a VPC. The + virtual private gateway must be attached to the same VPC that the + routing tables are associated with. + """ + route_table_id: Required[str] + """ + The ID of the route table. The routing table must be associated with the + same VPC that the virtual private gateway is attached to. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class EnableVgwRoutePropagationOutput(_SerdeShape): """Dataclass for EnableVgwRoutePropagationOutput structure.""" @@ -3770,6 +5435,19 @@ class EnableVolumeIOInput(_SerdeShape): volume_id: str | None = ... """The ID of the volume.""" +class EnableVolumeIOInputDict(TypedDict, total=False): + """Dictionary form of `EnableVolumeIOInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + volume_id: Required[str] + """The ID of the volume.""" + @dataclass(kw_only=True) class EnableVolumeIOOutput(_SerdeShape): """Dataclass for EnableVolumeIOOutput structure.""" @@ -3789,6 +5467,12 @@ class EnableVpcClassicLinkDnsSupportInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class EnableVpcClassicLinkDnsSupportInputDict(TypedDict, total=False): + """Dictionary form of `EnableVpcClassicLinkDnsSupportInput`.""" + + vpc_id: str | None + """The ID of the VPC.""" + @dataclass(kw_only=True) class EnableVpcClassicLinkDnsSupportOutput(_SerdeShape): """Dataclass for EnableVpcClassicLinkDnsSupportOutput structure.""" @@ -3817,6 +5501,19 @@ class EnableVpcClassicLinkInput(_SerdeShape): vpc_id: str | None = ... """The ID of the VPC.""" +class EnableVpcClassicLinkInputDict(TypedDict, total=False): + """Dictionary form of `EnableVpcClassicLinkInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + @dataclass(kw_only=True) class EnableVpcClassicLinkOutput(_SerdeShape): """Dataclass for EnableVpcClassicLinkOutput structure.""" @@ -3854,6 +5551,16 @@ class EnaSrdSpecification(_SerdeShape): ena_srd_udp_specification: EnaSrdUdpSpecification | None = ... """Configures ENA Express for UDP network traffic.""" +class EnaSrdSpecificationDict(TypedDict, total=False): + """Dictionary form of `EnaSrdSpecification`.""" + + ena_srd_enabled: bool | None + """Indicates whether ENA Express is enabled for the network interface.""" + ena_srd_udp_specification: ( + EnaSrdUdpSpecification | EnaSrdUdpSpecificationDict | None + ) + """Configures ENA Express for UDP network traffic.""" + @dataclass(kw_only=True) class EnaSrdSpecificationRequest(_SerdeShape): """ @@ -3872,6 +5579,22 @@ class EnaSrdSpecificationRequest(_SerdeShape): interface attached to the instance. """ +class EnaSrdSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `EnaSrdSpecificationRequest`.""" + + ena_srd_enabled: bool | None + """ + Specifies whether ENA Express is enabled for the network interface when + you launch an instance. + """ + ena_srd_udp_specification: ( + EnaSrdUdpSpecificationRequest | EnaSrdUdpSpecificationRequestDict | None + ) + """ + Contains ENA Express settings for UDP network traffic for the network + interface attached to the instance. + """ + @dataclass(kw_only=True) class EnaSrdUdpSpecification(_SerdeShape): """ @@ -3890,6 +5613,15 @@ class EnaSrdUdpSpecification(_SerdeShape): To specify this setting, you must first enable ENA Express. """ +class EnaSrdUdpSpecificationDict(TypedDict, total=False): + """Dictionary form of `EnaSrdUdpSpecification`.""" + + ena_srd_udp_enabled: bool | None + """ + Indicates whether UDP traffic to and from the instance uses ENA Express. + To specify this setting, you must first enable ENA Express. + """ + @dataclass(kw_only=True) class EnaSrdUdpSpecificationRequest(_SerdeShape): """ @@ -3905,6 +5637,17 @@ class EnaSrdUdpSpecificationRequest(_SerdeShape): **EnaSrdSpecificationRequest** to `true`. """ +class EnaSrdUdpSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `EnaSrdUdpSpecificationRequest`.""" + + ena_srd_udp_enabled: bool | None + """ + Indicates whether UDP traffic uses ENA Express for your instance. To + ensure that UDP traffic can use ENA Express when you launch an instance, + you must also set **EnaSrdEnabled** in the + **EnaSrdSpecificationRequest** to `true`. + """ + class EnaSupport(UnknownEnumMixin, StrEnum): UNSUPPORTED = "unsupported" SUPPORTED = "supported" @@ -3939,6 +5682,15 @@ class EnclaveOptionsRequest(_SerdeShape): parameter to `true`. """ +class EnclaveOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `EnclaveOptionsRequest`.""" + + enabled: bool | None + """ + To enable the instance for Amazon Web Services Nitro Enclaves, set this + parameter to `true`. + """ + class EncryptionStateValue(UnknownEnumMixin, StrEnum): ENABLING = "enabling" ENABLED = "enabled" @@ -4240,6 +5992,19 @@ class ExportClientVpnClientCertificateRevocationListInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ExportClientVpnClientCertificateRevocationListInputDict(TypedDict, total=False): + """Dictionary form of `ExportClientVpnClientCertificateRevocationListInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ExportClientVpnClientCertificateRevocationListOutput(_SerdeShape): """ @@ -4273,6 +6038,19 @@ class ExportClientVpnClientConfigurationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ExportClientVpnClientConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `ExportClientVpnClientConfigurationInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ExportClientVpnClientConfigurationOutput(_SerdeShape): """Dataclass for ExportClientVpnClientConfigurationOutput structure.""" @@ -4332,6 +6110,47 @@ class ExportImageInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the export image task during creation.""" +class ExportImageInputDict(TypedDict, total=False): + """Dictionary form of `ExportImageInput`.""" + + client_token: str | None + """ + Token to enable idempotency for export image requests. + + This field is autopopulated if not provided. + """ + description: str | None + """ + A description of the image being exported. The maximum length is 255 + characters. + """ + disk_image_format: Required[str] + """The disk image format.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + image_id: Required[str] + """The ID of the image.""" + s3_export_location: Required[ + ExportTaskS3LocationRequest | ExportTaskS3LocationRequestDict + ] + """ + The Amazon S3 bucket for the destination image. The destination bucket + must exist. + """ + role_name: str | None + """ + The name of the role that grants VM Import/Export permission to export + images to your Amazon S3 bucket. If this parameter is not specified, the + default role is named 'vmimport'. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the export image task during creation.""" + @dataclass(kw_only=True) class ExportImageOutput(_SerdeShape): """Dataclass for ExportImageOutput structure.""" @@ -4431,6 +6250,14 @@ class ExportTaskS3LocationRequest(_SerdeShape): s3_prefix: str | None = ... """The prefix (logical hierarchy) in the bucket.""" +class ExportTaskS3LocationRequestDict(TypedDict, total=False): + """Dictionary form of `ExportTaskS3LocationRequest`.""" + + s3_bucket: Required[str] + """The destination Amazon S3 bucket.""" + s3_prefix: str | None + """The prefix (logical hierarchy) in the bucket.""" + class ExportTaskState(UnknownEnumMixin, StrEnum): ACTIVE = "active" CANCELLING = "cancelling" @@ -4486,6 +6313,31 @@ class ExportToS3TaskSpecification(_SerdeShape): S3 key s3prefix + exportTaskId + '.' + diskImageFormat. """ +class ExportToS3TaskSpecificationDict(TypedDict, total=False): + """Dictionary form of `ExportToS3TaskSpecification`.""" + + disk_image_format: str | None + """The format for the exported image.""" + container_format: str | None + """ + The container format used to combine disk images with metadata (such as + OVF). If absent, only the disk image is exported. + """ + s3_bucket: str | None + """ + The Amazon S3 bucket for the destination image. The destination bucket + must exist and have an access control list (ACL) attached that specifies + the Region-specific canonical account ID for the `Grantee`. For more + information about the ACL to your S3 bucket, see + [Prerequisites](https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html#vmexport-prerequisites) + in the VM Import/Export User Guide. + """ + s3_prefix: str | None + """ + The image is written to a single object in the Amazon S3 bucket at the + S3 key s3prefix + exportTaskId + '.' + diskImageFormat. + """ + @dataclass(kw_only=True) class ExportTransitGatewayRoutesInput(_SerdeShape): """Dataclass for ExportTransitGatewayRoutesInput structure.""" @@ -4531,6 +6383,50 @@ class ExportTransitGatewayRoutesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ExportTransitGatewayRoutesInputDict(TypedDict, total=False): + """Dictionary form of `ExportTransitGatewayRoutesInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the route table.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `attachment.transit-gateway-attachment-id` - The id of the transit + gateway attachment. + + - `attachment.resource-id` - The resource id of the transit gateway + attachment. + + - `route-search.exact-match` - The exact match of the specified filter. + + - `route-search.longest-prefix-match` - The longest prefix that matches + the route. + + - `route-search.subnet-of-match` - The routes with a subnet that match + the specified CIDR filter. + + - `route-search.supernet-of-match` - The routes with a CIDR that + encompass the CIDR filter. For example, if you have 10.0.1.0/29 and + 10.0.1.0/31 routes in your route table and you specify + supernet-of-match as 10.0.1.0/30, then the result returns 10.0.1.0/29. + + - `state` - The state of the route (`active` | `blackhole`). + + - `transit-gateway-route-destination-cidr-block` - The CIDR range. + + - `type` - The type of route (`propagated` | `static`). + """ + s3_bucket: Required[str] + """The name of the S3 bucket.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ExportTransitGatewayRoutesOutput(_SerdeShape): """Dataclass for ExportTransitGatewayRoutesOutput structure.""" @@ -4565,6 +6461,19 @@ class ExportVerifiedAccessInstanceClientConfigurationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ExportVerifiedAccessInstanceClientConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `ExportVerifiedAccessInstanceClientConfigurationInput`.""" + + verified_access_instance_id: Required[str] + """The ID of the Verified Access instance.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ExportVerifiedAccessInstanceClientConfigurationOutput(_SerdeShape): """ @@ -4619,6 +6528,19 @@ class ExternalAuthorityConfiguration(_SerdeShape): ``{=html}`.identity.account.```{=html}`.```{=html}. """ +class ExternalAuthorityConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExternalAuthorityConfiguration`.""" + + type: str | None + """The type of external authority.""" + external_resource_identifier: str | None + """ + The identifier for the external resource managing this scope. For + Infoblox integrations, this is the Infoblox resource identifier in the + format + ``{=html}`.identity.account.```{=html}`.```{=html}. + """ + @dataclass(kw_only=True) class FailedCapacityReservationFleetCancellationResult(_SerdeShape): """Describes a Capacity Reservation Fleet that could not be cancelled.""" @@ -4666,6 +6588,25 @@ class FastLaunchLaunchTemplateSpecificationRequest(_SerdeShape): Windows fast launch. """ +class FastLaunchLaunchTemplateSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `FastLaunchLaunchTemplateSpecificationRequest`.""" + + launch_template_id: str | None + """ + Specify the ID of the launch template that the AMI should use for + Windows fast launch. + """ + launch_template_name: str | None + """ + Specify the name of the launch template that the AMI should use for + Windows fast launch. + """ + version: Required[str] + """ + Specify the version of the launch template that the AMI should use for + Windows fast launch. + """ + @dataclass(kw_only=True) class FastLaunchLaunchTemplateSpecificationResponse(_SerdeShape): """ @@ -4701,3 +6642,12 @@ class FastLaunchSnapshotConfigurationRequest(_SerdeShape): The number of pre-provisioned snapshots to keep on hand for a Windows fast launch enabled AMI. """ + +class FastLaunchSnapshotConfigurationRequestDict(TypedDict, total=False): + """Dictionary form of `FastLaunchSnapshotConfigurationRequest`.""" + + target_resource_count: int | None + """ + The number of pre-provisioned snapshots to keep on hand for a Windows + fast launch enabled AMI. + """ diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_6.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_06.pyi similarity index 68% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_6.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_06.pyi index 2a3fa9a6f..6a3601c28 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_6.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_06.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -15,12 +17,14 @@ from ..models import ( AvailableCapacity, BlockDeviceMappingResponse, CapacityManagerCondition, + CapacityManagerConditionDict, CapacityManagerDimension, CapacityManagerMonitoredTagKey, CapacityManagerSupportabilityScore, CapacityReservationGroup, CoipAddressUsage, DataQuery, + DataQueryDict, DataResponse, DescribeFleetError, DescribeFleetsInstances, @@ -33,10 +37,13 @@ from ..models import ( InstanceMetadataDefaultsResponse, InstanceRequirements, InstanceRequirementsRequest, + InstanceRequirementsRequestDict, InstanceRequirementsWithMetadataRequest, + InstanceRequirementsWithMetadataRequestDict, InstanceTypeInfoFromInstanceRequirements, InstanceUsage, IntegrateServices, + IntegrateServicesDict, InterruptibleCapacityAllocation, InterruptionInfo, IpamAddressHistoryRecord, @@ -67,6 +74,7 @@ from ..models import ( OnDemandOptions, PciId, Placement, + PlacementDict, PlacementResponse, PortRange, PrefixListAssociation, @@ -74,6 +82,7 @@ from ..models import ( ProductCode, Purchase, RequestIpamResourceTag, + RequestIpamResourceTagDict, ReservationValue, ReservedCapacityOptions, ReservedInstanceReservationValue, @@ -89,6 +98,7 @@ from ..models import ( TagFieldSpecificationResponse, TargetCapacitySpecification, TargetConfigurationRequest, + TargetConfigurationRequestDict, TargetReservationValue, TransitGatewayAttachmentPropagation, TransitGatewayMeteringPolicyEntry, @@ -160,6 +170,17 @@ class FederatedAuthenticationRequest(_SerdeShape): self-service portal. """ +class FederatedAuthenticationRequestDict(TypedDict, total=False): + """Dictionary form of `FederatedAuthenticationRequest`.""" + + saml_provider_arn: str | None + """The Amazon Resource Name (ARN) of the IAM SAML identity provider.""" + self_service_saml_provider_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM SAML identity provider for the + self-service portal. + """ + @dataclass(kw_only=True) class Filter(_SerdeShape): """ @@ -185,6 +206,18 @@ class Filter(_SerdeShape): the request returns all results that match any of the specified values. """ +class FilterDict(TypedDict, total=False): + """Dictionary form of `Filter`.""" + + name: str | None + """The name of the filter. Filter names are case-sensitive.""" + values: Sequence[str] | None + """ + The filter values. Filter values are case-sensitive. If you specify + multiple values for a filter, the values are joined with an `OR`, and + the request returns all results that match any of the specified values. + """ + class FilterByDimension(UnknownEnumMixin, StrEnum): RESOURCE_REGION = "resource-region" AVAILABILITY_ZONE_ID = "availability-zone-id" @@ -323,6 +356,39 @@ class FleetBlockDeviceMappingRequest(_SerdeShape): block device mapping regardless of the assigned value. """ +class FleetBlockDeviceMappingRequestDict(TypedDict, total=False): + """Dictionary form of `FleetBlockDeviceMappingRequest`.""" + + device_name: str | None + """The device name (for example, `/dev/sdh` or `xvdh`).""" + virtual_name: str | None + """ + The virtual device name (`ephemeralN`). Instance store volumes are + numbered starting from 0. An instance type with 2 available instance + store volumes can specify mappings for `ephemeral0` and `ephemeral1`. + The number of available instance store volumes depends on the instance + type. After you connect to the instance, you must mount the volume. + + NVMe instance store volumes are automatically enumerated and assigned a + device name. Including them in your block device mapping has no effect. + + Constraints: For M3 instances, you must specify instance store volumes + in the block device mapping for the instance. When you launch an M3 + instance, we ignore any instance store volumes specified in the block + device mapping for the AMI. + """ + ebs: FleetEbsBlockDeviceRequest | FleetEbsBlockDeviceRequestDict | None + """ + Parameters used to automatically set up EBS volumes when the instance is + launched. + """ + no_device: str | None + """ + To omit the device from the block device mapping, specify an empty + string. When this property is specified, the device is removed from the + block device mapping regardless of the assigned value. + """ + @dataclass(kw_only=True) class FleetCapacityReservation(_SerdeShape): """ @@ -400,6 +466,17 @@ class FleetCapacityReservationTargetRequest(_SerdeShape): the instances. """ +class FleetCapacityReservationTargetRequestDict(TypedDict, total=False): + """Dictionary form of `FleetCapacityReservationTargetRequest`.""" + + capacity_reservation_ids: Sequence[str] | None + """The IDs of the Capacity Reservations in which to launch the instances.""" + capacity_reservation_resource_group_arns: Sequence[str] | None + """ + The ARNs of the Capacity Reservation Resource Groups in which to launch + the instances. + """ + class FleetCapacityReservationTenancy(UnknownEnumMixin, StrEnum): DEFAULT = "default" @@ -659,6 +736,137 @@ class FleetEbsBlockDeviceRequest(_SerdeShape): in the *Amazon EBS User Guide*. """ +class FleetEbsBlockDeviceRequestDict(TypedDict, total=False): + """Dictionary form of `FleetEbsBlockDeviceRequest`.""" + + encrypted: bool | None + """ + Indicates whether the encryption state of an EBS volume is changed while + being restored from a backing snapshot. The effect of setting the + encryption state to `true` depends on the volume origin (new or from a + snapshot), starting encryption state, ownership, and whether encryption + by default is enabled. For more information, see [Amazon EBS + encryption](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html) + in the *Amazon EBS User Guide*. + + In no case can you remove encryption from an encrypted volume. + + Encrypted volumes can only be attached to instances that support Amazon + EBS encryption. For more information, see [Supported instance + types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances). + + This parameter is not returned by + [DescribeImageAttribute](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImageAttribute). + + For + [CreateImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage) + and + [RegisterImage](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RegisterImage), + whether you can include this parameter, and the allowed values differ + depending on the type of block device mapping you are creating. + + - If you are creating a block device mapping for a **new (empty) + volume**, you can include this parameter, and specify either `true` + for an encrypted volume, or `false` for an unencrypted volume. If you + omit this parameter, it defaults to `false` (unencrypted). + + - If you are creating a block device mapping from an **existing + encrypted or unencrypted snapshot**, you must omit this parameter. If + you include this parameter, the request will fail, regardless of the + value that you specify. + + - If you are creating a block device mapping from an **existing + unencrypted volume**, you can include this parameter, but you must + specify `false`. If you specify `true`, the request will fail. In this + case, we recommend that you omit the parameter. + + - If you are creating a block device mapping from an **existing + encrypted volume**, you can include this parameter, and specify either + `true` or `false`. However, if you specify `false`, the parameter is + ignored and the block device mapping is always encrypted. In this + case, we recommend that you omit the parameter. + """ + delete_on_termination: bool | None + """ + Indicates whether the EBS volume is deleted on instance termination. For + more information, see [Preserve data when an instance is + terminated](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/preserving-volumes-on-termination.html) + in the *Amazon EC2 User Guide*. + """ + iops: int | None + """ + The number of I/O operations per second (IOPS). For `gp3`, `io1`, and + `io2` volumes, this represents the number of IOPS that are provisioned + for the volume. For `gp2` volumes, this represents the baseline + performance of the volume and the rate at which the volume accumulates + I/O credits for bursting. + + The following are the supported values for each volume type: + + - `gp3`: 3,000 - 80,000 IOPS + + - `io1`: 100 - 64,000 IOPS + + - `io2`: 100 - 256,000 IOPS + + For `io2` volumes, you can achieve up to 256,000 IOPS on [instances + built on the Nitro + System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). + On other instances, you can achieve performance up to 32,000 IOPS. + + This parameter is required for `io1` and `io2` volumes. The default for + `gp3` volumes is 3,000 IOPS. + """ + throughput: int | None + """ + The throughput that the volume supports, in MiB/s. + + This parameter is valid only for `gp3` volumes. + + Valid Range: Minimum value of 125. Maximum value of 2,000. + """ + kms_key_id: str | None + """ + Identifier (key ID, key alias, key ARN, or alias ARN) of the customer + managed KMS key to use for EBS encryption. + + This parameter is only supported on `BlockDeviceMapping` objects called + by + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html), + [RequestSpotInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html), + and + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html). + """ + snapshot_id: str | None + """The ID of the snapshot.""" + volume_size: int | None + """ + The size of the volume, in GiBs. You must specify either a snapshot ID + or a volume size. If you specify a snapshot, the default is the snapshot + size. You can specify a volume size that is equal to or larger than the + snapshot size. + + The following are the supported sizes for each volume type: + + - `gp2`: 1 - 16,384 GiB + + - `gp3`: 1 - 65,536 GiB + + - `io1`: 4 - 16,384 GiB + + - `io2`: 4 - 65,536 GiB + + - `st1` and `sc1`: 125 - 16,384 GiB + + - `standard`: 1 - 1024 GiB + """ + volume_type: str | None + """ + The volume type. For more information, see [Amazon EBS volume + types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html) + in the *Amazon EBS User Guide*. + """ + class FleetEventType(UnknownEnumMixin, StrEnum): INSTANCE_CHANGE = "instance-change" FLEET_CHANGE = "fleet-change" @@ -684,6 +892,14 @@ class FleetIamInstanceProfileSpecificationRequest(_SerdeShape): name: str | None = ... """The name of the instance profile.""" +class FleetIamInstanceProfileSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `FleetIamInstanceProfileSpecificationRequest`.""" + + arn: str | None + """The Amazon Resource Name (ARN) of the instance profile.""" + name: str | None + """The name of the instance profile.""" + class FleetInstanceMatchCriteria(UnknownEnumMixin, StrEnum): OPEN = "open" @@ -727,6 +943,38 @@ class FleetInstanceMetadataOptionsRequest(_SerdeShape): - `disabled` - The HTTP metadata endpoint is disabled. """ +class FleetInstanceMetadataOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `FleetInstanceMetadataOptionsRequest`.""" + + http_tokens: str | None + """ + Indicates whether IMDSv2 is required. + + - `optional` - IMDSv2 is optional, which means that you can use either + IMDSv2 or IMDSv1. + + - `required` - IMDSv2 is required, which means that IMDSv1 is disabled, + and you must use IMDSv2. + """ + http_put_response_hop_limit: int | None + """ + The desired HTTP PUT response hop limit for instance metadata requests. + The larger the number, the further instance metadata requests can + travel. + + Default: `1` + + Possible values: Integers from 1 to 64 + """ + http_endpoint: str | None + """ + Enables or disables the HTTP metadata endpoint on your instances. + + - `enabled` - The HTTP metadata endpoint is enabled. + + - `disabled` - The HTTP metadata endpoint is disabled. + """ + @dataclass(kw_only=True) class FleetLaunchTemplateConfig(_SerdeShape): """Describes a launch template and overrides.""" @@ -757,6 +1005,33 @@ class FleetLaunchTemplateConfigRequest(_SerdeShape): allowed across all launch templates. """ +class FleetLaunchTemplateConfigRequestDict(TypedDict, total=False): + """Dictionary form of `FleetLaunchTemplateConfigRequest`.""" + + launch_template_specification: ( + FleetLaunchTemplateSpecificationRequest + | FleetLaunchTemplateSpecificationRequestDict + | None + ) + """ + The launch template to use. You must specify either the launch template + ID or launch template name in the request. + """ + overrides: ( + Sequence[ + FleetLaunchTemplateOverridesRequest + | FleetLaunchTemplateOverridesRequestDict + ] + | None + ) + """ + Any parameters that you specify override the same parameters in the + launch template. + + For fleets of type `request` and `maintain`, a maximum of 300 items is + allowed across all launch templates. + """ + @dataclass(kw_only=True) class FleetLaunchTemplateOverrides(_SerdeShape): """Describes overrides for a launch template.""" @@ -1090,41 +1365,266 @@ class FleetLaunchTemplateOverridesRequest(_SerdeShape): the request, but not both. """ -@dataclass(kw_only=True) -class FleetLaunchTemplateSpecification(_SerdeShape): - """ - The Amazon EC2 launch template that can be used by a Spot Fleet to - configure Amazon EC2 instances. You must specify either the ID or name - of the launch template in the request, but not both. +class FleetLaunchTemplateOverridesRequestDict(TypedDict, total=False): + """Dictionary form of `FleetLaunchTemplateOverridesRequest`.""" - For information about launch templates, see [Launch an instance from a - launch - template](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) - in the *Amazon EC2 User Guide*. + instance_type: str | None """ + The instance type. - launch_template_id: str | None = ... - """ - The ID of the launch template. + `mac1.metal` is not supported as a launch template override. - You must specify the `LaunchTemplateId` or the `LaunchTemplateName`, but - not both. + Note: + If you specify `InstanceType`, you can't specify + `InstanceRequirements`. """ - launch_template_name: str | None = ... + max_price: str | None """ - The name of the launch template. + The maximum price per unit hour that you are willing to pay for a Spot + Instance. We do not recommend using this parameter because it can lead + to increased interruptions. If you do not specify this parameter, you + will pay the current Spot price. - You must specify the `LaunchTemplateName` or the `LaunchTemplateId`, but - not both. + Warning: + If you specify a maximum price, your instances will be interrupted more + frequently than if you do not specify this parameter. + + If you specify a maximum price, it must be more than USD $0.001. + Specifying a value below USD $0.001 will result in an + `InvalidParameterValue` error message. """ - version: str | None = ... + subnet_id: str | None """ - The launch template version number, `$Latest`, or `$Default`. You must - specify a value, otherwise the request fails. - - If the value is `$Latest`, Amazon EC2 uses the latest version of the - launch template. - + The IDs of the subnets in which to launch the instances. Separate + multiple subnet IDs using commas (for example, + `subnet-1234abcdeexample1, subnet-0987cdef6example2`). A request of type + `instant` can have only one subnet ID. + """ + availability_zone: str | None + """ + The Availability Zone in which to launch the instances. For example, + `us-east-2a`. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + weighted_capacity: float | None + """ + The number of units provided by the specified instance type. These are + the same units that you chose to set the target capacity in terms of + instances, or a performance characteristic such as vCPUs, memory, or + I/O. + + If the target capacity divided by this value is not a whole number, + Amazon EC2 rounds the number of instances to the next whole number. If + this value is not specified, the default is 1. + + Note: + When specifying weights, the price used in the `lowest-price` and + `price-capacity-optimized` allocation strategies is per *unit* hour + (where the instance price is divided by the specified weight). However, + if all the specified weights are above the requested `TargetCapacity`, + resulting in only 1 instance being launched, the price used is per + *instance* hour. + """ + priority: float | None + """ + The priority for the launch template override. The highest priority is + launched first. + + If the On-Demand `AllocationStrategy` is set to `prioritized`, EC2 Fleet + uses priority to determine which launch template override to use first + in fulfilling On-Demand capacity. + + If the Spot `AllocationStrategy` is set to + `capacity-optimized-prioritized`, EC2 Fleet uses priority on a + best-effort basis to determine which launch template override to use in + fulfilling Spot capacity, but optimizes for capacity first. + + Valid values are whole numbers starting at `0`. The lower the number, + the higher the priority. If no number is set, the launch template + override has the lowest priority. You can set the same priority for + different launch template overrides. + """ + placement: Placement | PlacementDict | None + """The location where the instance launched, if applicable.""" + key_name: str | None + """ + The name of the key pair to use for the instances. + + Supported only for fleets of type `instant`. + + For more information, see [Amazon EC2 key + pairs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) + in the *Amazon EC2 User Guide*. + """ + block_device_mappings: ( + Sequence[FleetBlockDeviceMappingRequest | FleetBlockDeviceMappingRequestDict] + | None + ) + """ + The block device mappings, which define the EBS volumes and instance + store volumes to attach to the instance at launch. + + Supported only for fleets of type `instant`. + + For more information, see [Block device mappings for volumes on Amazon + EC2 + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) + in the *Amazon EC2 User Guide*. + """ + iam_instance_profile: ( + FleetIamInstanceProfileSpecificationRequest + | FleetIamInstanceProfileSpecificationRequestDict + | None + ) + """ + The IAM instance profile to associate with the instances. + + Supported only for fleets of type `instant`. + + For more information, see [IAM roles for Amazon + EC2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html) + in the *Amazon EC2 User Guide*. + """ + metadata_options: ( + FleetInstanceMetadataOptionsRequest + | FleetInstanceMetadataOptionsRequestDict + | None + ) + """ + The metadata options for the instances. + + Supported only for fleets of type `instant`. + + For more information, see [Configure the instance metadata + service](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html) + in the *Amazon EC2 User Guide*. + """ + instance_requirements: ( + InstanceRequirementsRequest | InstanceRequirementsRequestDict | None + ) + """ + The attributes for the instance types. When you specify instance + attributes, Amazon EC2 will identify instance types with those + attributes. + + Note: + If you specify `InstanceRequirements`, you can't specify + `InstanceType`. + """ + image_id: str | None + """ + The ID of the AMI in the format `ami-17characters00000`. + + Alternatively, you can specify a Systems Manager parameter, using one of + the following formats. The Systems Manager parameter will resolve to an + AMI ID on launch. + + To reference a public parameter: + + - `resolve:ssm:`*`public-parameter`*` ` + + To reference a parameter stored in the same account: + + - `resolve:ssm:`*`parameter-name`*` ` + + - `resolve:ssm:`*`parameter-name:version-number`*` ` + + - `resolve:ssm:`*`parameter-name:label`*` ` + + To reference a parameter shared from another Amazon Web Services + account: + + - `resolve:ssm:`*`parameter-ARN`*` ` + + - `resolve:ssm:`*`parameter-ARN:version-number`*` ` + + - `resolve:ssm:`*`parameter-ARN:label`*` ` + + For more information, see [Use a Systems Manager parameter instead of an + AMI + ID](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id) + in the *Amazon EC2 User Guide*. + + Note: + This parameter is only available for fleets of type `instant`. For + fleets of type `maintain` and `request`, you must specify the AMI ID in + the launch template. + """ + availability_zone_id: str | None + """ + The ID of the Availability Zone in which to launch the instances. For + example, `use2-az1`. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + +@dataclass(kw_only=True) +class FleetLaunchTemplateSpecification(_SerdeShape): + """ + The Amazon EC2 launch template that can be used by a Spot Fleet to + configure Amazon EC2 instances. You must specify either the ID or name + of the launch template in the request, but not both. + + For information about launch templates, see [Launch an instance from a + launch + template](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) + in the *Amazon EC2 User Guide*. + """ + + launch_template_id: str | None = ... + """ + The ID of the launch template. + + You must specify the `LaunchTemplateId` or the `LaunchTemplateName`, but + not both. + """ + launch_template_name: str | None = ... + """ + The name of the launch template. + + You must specify the `LaunchTemplateName` or the `LaunchTemplateId`, but + not both. + """ + version: str | None = ... + """ + The launch template version number, `$Latest`, or `$Default`. You must + specify a value, otherwise the request fails. + + If the value is `$Latest`, Amazon EC2 uses the latest version of the + launch template. + + If the value is `$Default`, Amazon EC2 uses the default version of the + launch template. + """ + +class FleetLaunchTemplateSpecificationDict(TypedDict, total=False): + """Dictionary form of `FleetLaunchTemplateSpecification`.""" + + launch_template_id: str | None + """ + The ID of the launch template. + + You must specify the `LaunchTemplateId` or the `LaunchTemplateName`, but + not both. + """ + launch_template_name: str | None + """ + The name of the launch template. + + You must specify the `LaunchTemplateName` or the `LaunchTemplateId`, but + not both. + """ + version: str | None + """ + The launch template version number, `$Latest`, or `$Default`. You must + specify a value, otherwise the request fails. + + If the value is `$Latest`, Amazon EC2 uses the latest version of the + launch template. + If the value is `$Default`, Amazon EC2 uses the default version of the launch template. """ @@ -1175,6 +1675,42 @@ class FleetLaunchTemplateSpecificationRequest(_SerdeShape): Supported only for fleets of type `instant`. """ +class FleetLaunchTemplateSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `FleetLaunchTemplateSpecificationRequest`.""" + + launch_template_id: str | None + """ + The ID of the launch template. + + You must specify the `LaunchTemplateId` or the `LaunchTemplateName`, but + not both. + """ + launch_template_name: str | None + """ + The name of the launch template. + + You must specify the `LaunchTemplateName` or the `LaunchTemplateId`, but + not both. + """ + version: str | None + """ + The launch template version number, `$Latest`, or `$Default`. You must + specify a value, otherwise the request fails. + + If the value is `$Latest`, Amazon EC2 uses the latest version of the + launch template. + + If the value is `$Default`, Amazon EC2 uses the default version of the + launch template. + """ + launch_template_specification_user_data: str | None + """ + The base64-encoded user data for instances launched by the fleet. User + data is limited to 16 KB, in raw form, before it is base64-encoded. + + Supported only for fleets of type `instant`. + """ + class FleetOnDemandAllocationStrategy(UnknownEnumMixin, StrEnum): LOWEST_PRICE = "lowest-price" PRIORITIZED = "prioritized" @@ -1267,6 +1803,40 @@ class FleetSpotCapacityRebalanceRequest(_SerdeShape): seconds. """ +class FleetSpotCapacityRebalanceRequestDict(TypedDict, total=False): + """Dictionary form of `FleetSpotCapacityRebalanceRequest`.""" + + replacement_strategy: str | None + """ + The replacement strategy to use. Only available for fleets of type + `maintain`. + + `launch` - EC2 Fleet launches a replacement Spot Instance when a + rebalance notification is emitted for an existing Spot Instance in the + fleet. EC2 Fleet does not terminate the instances that receive a + rebalance notification. You can terminate the old instances, or you can + leave them running. You are charged for all instances while they are + running. + + `launch-before-terminate` - EC2 Fleet launches a replacement Spot + Instance when a rebalance notification is emitted for an existing Spot + Instance in the fleet, and then, after a delay that you specify (in + `TerminationDelay`), terminates the instances that received a rebalance + notification. + """ + termination_delay: int | None + """ + The amount of time (in seconds) that Amazon EC2 waits before terminating + the old Spot Instance after launching a new replacement Spot Instance. + + Required when `ReplacementStrategy` is set to `launch-before-terminate`. + + Not valid when `ReplacementStrategy` is set to `launch`. + + Valid values: Minimum value of `120` seconds. Maximum value of `7200` + seconds. + """ + @dataclass(kw_only=True) class FleetSpotMaintenanceStrategies(_SerdeShape): """ @@ -1293,6 +1863,17 @@ class FleetSpotMaintenanceStrategiesRequest(_SerdeShape): Instance is at an elevated risk of being interrupted. """ +class FleetSpotMaintenanceStrategiesRequestDict(TypedDict, total=False): + """Dictionary form of `FleetSpotMaintenanceStrategiesRequest`.""" + + capacity_rebalance: ( + FleetSpotCapacityRebalanceRequest | FleetSpotCapacityRebalanceRequestDict | None + ) + """ + The strategy to use when Amazon EC2 emits a signal that your Spot + Instance is at an elevated risk of being interrupted. + """ + class FleetStateCode(UnknownEnumMixin, StrEnum): SUBMITTED = "submitted" ACTIVE = "active" @@ -1537,6 +2118,25 @@ class GetActiveVpnTunnelStatusInput(_SerdeShape): actually making the request. """ +class GetActiveVpnTunnelStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetActiveVpnTunnelStatusInput`.""" + + vpn_connection_id: Required[str] + """ + The ID of the VPN connection for which to retrieve the active tunnel + status. + """ + vpn_tunnel_outside_ip_address: Required[str] + """ + The external IP address of the VPN tunnel for which to retrieve the + active status. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request. + """ + @dataclass(kw_only=True) class GetActiveVpnTunnelStatusOutput(_SerdeShape): """Dataclass for GetActiveVpnTunnelStatusOutput structure.""" @@ -1551,11 +2151,22 @@ class GetActiveVpnTunnelStatusOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetAllowedImagesSettingsInput(_SerdeShape): - """Dataclass for GetAllowedImagesSettingsInput structure.""" +@dataclass(kw_only=True) +class GetAllowedImagesSettingsInput(_SerdeShape): + """Dataclass for GetAllowedImagesSettingsInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class GetAllowedImagesSettingsInputDict(TypedDict, total=False): + """Dictionary form of `GetAllowedImagesSettingsInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -1623,6 +2234,22 @@ class GetAssociatedEnclaveCertificateIamRolesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetAssociatedEnclaveCertificateIamRolesInputDict(TypedDict, total=False): + """Dictionary form of `GetAssociatedEnclaveCertificateIamRolesInput`.""" + + certificate_arn: Required[str] + """ + The ARN of the ACM certificate for which to view the associated IAM + roles, encryption keys, and Amazon S3 object information. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetAssociatedEnclaveCertificateIamRolesOutput(_SerdeShape): """Dataclass for GetAssociatedEnclaveCertificateIamRolesOutput structure.""" @@ -1659,6 +2286,27 @@ class GetAssociatedIpv6PoolCidrsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetAssociatedIpv6PoolCidrsInputDict(TypedDict, total=False): + """Dictionary form of `GetAssociatedIpv6PoolCidrsInput`.""" + + pool_id: Required[str] + """The ID of the IPv6 address pool.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetAssociatedIpv6PoolCidrsOutput(_SerdeShape): """Dataclass for GetAssociatedIpv6PoolCidrsOutput structure.""" @@ -1712,6 +2360,39 @@ class GetAwsNetworkPerformanceDataInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetAwsNetworkPerformanceDataInputDict(TypedDict, total=False): + """Dictionary form of `GetAwsNetworkPerformanceDataInput`.""" + + data_queries: Sequence[DataQuery | DataQueryDict] | None + """A list of network performance data queries.""" + start_time: datetime | None + """ + The starting time for the performance data request. The starting time + must be formatted as `yyyy-mm-ddThh:mm:ss`. For example, + `2022-06-10T12:00:00.000Z`. + """ + end_time: datetime | None + """ + The ending time for the performance data request. The end time must be + formatted as `yyyy-mm-ddThh:mm:ss`. For example, + `2022-06-12T12:00:00.000Z`. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetAwsNetworkPerformanceDataOutput(_SerdeShape): """Dataclass for GetAwsNetworkPerformanceDataOutput structure.""" @@ -1743,6 +2424,17 @@ class GetCapacityManagerAttributesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetCapacityManagerAttributesInputDict(TypedDict, total=False): + """Dictionary form of `GetCapacityManagerAttributesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetCapacityManagerAttributesOutput(_SerdeShape): """Dataclass for GetCapacityManagerAttributesOutput structure.""" @@ -1839,6 +2531,53 @@ class GetCapacityManagerMetricDataInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetCapacityManagerMetricDataInputDict(TypedDict, total=False): + """Dictionary form of `GetCapacityManagerMetricDataInput`.""" + + metric_names: Required[Sequence[str]] + """The names of the metrics to retrieve. Maximum of 10 metrics per request.""" + start_time: Required[datetime] + """ + The start time for the metric data query, in ISO 8601 format. The time + range (end time - start time) must be a multiple of the specified + period. + """ + end_time: Required[datetime] + """ + The end time for the metric data query, in ISO 8601 format. If the end + time is beyond the latest ingested data, it will be automatically + adjusted to the latest available data point. + """ + period: Required[int] + """The granularity, in seconds, of the returned data points.""" + group_by: Sequence[str] | None + """ + The dimensions by which to group the metric data. This determines how + the data is aggregated and returned. + """ + filter_by: Sequence[CapacityManagerCondition | CapacityManagerConditionDict] | None + """ + Conditions to filter the metric data. Each filter specifies a dimension, + comparison operator ('equals', 'in'), and values to match against. + """ + max_results: int | None + """ + The maximum number of data points to return. Valid range is 1 to + 100,000. Use with NextToken for pagination of large result sets. + """ + next_token: str | None + """ + The token for the next page of results. Use this value in a subsequent + call to retrieve additional data points. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetCapacityManagerMetricDataOutput(_SerdeShape): """Dataclass for GetCapacityManagerMetricDataOutput structure.""" @@ -1911,6 +2650,54 @@ class GetCapacityManagerMetricDimensionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetCapacityManagerMetricDimensionsInputDict(TypedDict, total=False): + """Dictionary form of `GetCapacityManagerMetricDimensionsInput`.""" + + group_by: Required[Sequence[str]] + """ + The dimensions to group by when retrieving available dimension values. + This determines which dimension combinations are returned. Required + parameter. + """ + filter_by: Sequence[CapacityManagerCondition | CapacityManagerConditionDict] | None + """ + Conditions to filter which dimension values are returned. Each filter + specifies a dimension, comparison operator, and values to match against. + """ + start_time: Required[datetime] + """ + The start time for the dimension query, in ISO 8601 format. Only + dimensions with data in this time range will be returned. + """ + end_time: Required[datetime] + """ + The end time for the dimension query, in ISO 8601 format. Only + dimensions with data in this time range will be returned. + """ + metric_names: Required[Sequence[str]] + """ + The metric names to use as an additional filter when retrieving + dimensions. Only dimensions that have data for these metrics will be + returned. Required parameter with maximum size of 1 for v1. + """ + max_results: int | None + """ + The maximum number of dimension combinations to return. Valid range is 1 + to 1000. Use with NextToken for pagination. + """ + next_token: str | None + """ + The token for the next page of results. Use this value in a subsequent + call to retrieve additional dimension values. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetCapacityManagerMetricDimensionsOutput(_SerdeShape): """Dataclass for GetCapacityManagerMetricDimensionsOutput structure.""" @@ -1956,6 +2743,28 @@ class GetCapacityManagerMonitoredTagKeysInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetCapacityManagerMonitoredTagKeysInputDict(TypedDict, total=False): + """Dictionary form of `GetCapacityManagerMonitoredTagKeysInput`.""" + + max_results: int | None + """ + The maximum number of results to return in a single call. To retrieve + the remaining results, make another call with the returned `NextToken` + value. If not specified, up to 1000 results are returned. + """ + next_token: str | None + """ + The token for the next page of results. Use the value returned from a + previous call to retrieve additional results. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetCapacityManagerMonitoredTagKeysOutput(_SerdeShape): """Dataclass for GetCapacityManagerMonitoredTagKeysOutput structure.""" @@ -2023,6 +2832,52 @@ class GetCapacityManagerSupportabilityScoresInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetCapacityManagerSupportabilityScoresInputDict(TypedDict, total=False): + """Dictionary form of `GetCapacityManagerSupportabilityScoresInput`.""" + + market_type: Required[str] + """The capacity market to score.""" + capacity_amount: Required[int] + """ + The amount of capacity that you need, in the unit that you specify for + `CapacityUnit`. Each score is relative to this amount. + """ + capacity_unit: Required[str] + """The unit for `CapacityAmount`.""" + capacity_availability_zone_ids: Required[Sequence[str]] + """ + The IDs of the Availability Zones to score, such as `use1-az1`. You can + specify Availability Zones in different Regions. You can specify up to + 10 Availability Zones. + """ + instance_types: Sequence[str] | None + """ + The instance types to score. You can specify up to 50 instance types. + + Specify either `InstanceTypes` or `InstanceRequirementsWithMetadata`, + but not both. + """ + instance_requirements_with_metadata: ( + InstanceRequirementsWithMetadataRequest + | InstanceRequirementsWithMetadataRequestDict + | None + ) + """ + The attributes that the instance types must have, such as vCPU and + memory ranges. Capacity Manager resolves the attributes into matching + instance types and scores each one. + + Specify either `InstanceTypes` or `InstanceRequirementsWithMetadata`, + but not both. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetCapacityManagerSupportabilityScoresOutput(_SerdeShape): """Dataclass for GetCapacityManagerSupportabilityScoresOutput structure.""" @@ -2072,6 +2927,28 @@ class GetCapacityReservationUsageInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetCapacityReservationUsageInputDict(TypedDict, total=False): + """Dictionary form of `GetCapacityReservationUsageInput`.""" + + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation.""" + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetCapacityReservationUsageOutput(_SerdeShape): """Dataclass for GetCapacityReservationUsageOutput structure.""" @@ -2187,6 +3064,19 @@ class GetClientVpnEndpointAuthorizationPolicyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetClientVpnEndpointAuthorizationPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetClientVpnEndpointAuthorizationPolicyInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetClientVpnEndpointAuthorizationPolicyOutput(_SerdeShape): """Dataclass for GetClientVpnEndpointAuthorizationPolicyOutput structure.""" @@ -2253,6 +3143,41 @@ class GetCoipPoolUsageInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetCoipPoolUsageInputDict(TypedDict, total=False): + """Dictionary form of `GetCoipPoolUsageInput`.""" + + pool_id: Required[str] + """The ID of the address pool.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `coip-address-usage.allocation-id` - The allocation ID of the address. + + - `coip-address-usage.aws-account-id` - The ID of the Amazon Web + Services account that is using the customer-owned IP address. + + - `coip-address-usage.aws-service` - The Amazon Web Services service + that is using the customer-owned IP address. + + - `coip-address-usage.co-ip` - The customer-owned IP address. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetCoipPoolUsageOutput(_SerdeShape): """Dataclass for GetCoipPoolUsageOutput structure.""" @@ -2296,6 +3221,25 @@ class GetConsoleOutputInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class GetConsoleOutputInputDict(TypedDict, total=False): + """Dictionary form of `GetConsoleOutputInput`.""" + + instance_id: Required[str] + """The ID of the instance.""" + latest: bool | None + """ + When enabled, retrieves the latest console output for the instance. + + Default: disabled (`false`) + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetConsoleOutputOutput(_SerdeShape): """Dataclass for GetConsoleOutputOutput structure.""" @@ -2336,6 +3280,24 @@ class GetConsoleScreenshotInput(_SerdeShape): that's in standby or \"sleep\" mode. """ +class GetConsoleScreenshotInputDict(TypedDict, total=False): + """Dictionary form of `GetConsoleScreenshotInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the instance.""" + wake_up: bool | None + """ + When set to `true`, acts as keystroke input and wakes up an instance + that's in standby or \"sleep\" mode. + """ + @dataclass(kw_only=True) class GetConsoleScreenshotOutput(_SerdeShape): """Dataclass for GetConsoleScreenshotOutput structure.""" @@ -2366,6 +3328,19 @@ class GetDeclarativePoliciesReportSummaryInput(_SerdeShape): report_id: str | None = ... """The ID of the report.""" +class GetDeclarativePoliciesReportSummaryInputDict(TypedDict, total=False): + """Dictionary form of `GetDeclarativePoliciesReportSummaryInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + report_id: Required[str] + """The ID of the report.""" + @dataclass(kw_only=True) class GetDeclarativePoliciesReportSummaryOutput(_SerdeShape): """Dataclass for GetDeclarativePoliciesReportSummaryOutput structure.""" @@ -2423,6 +3398,19 @@ class GetDefaultCreditSpecificationInput(_SerdeShape): instance_family: str | None = ... """The instance family.""" +class GetDefaultCreditSpecificationInputDict(TypedDict, total=False): + """Dictionary form of `GetDefaultCreditSpecificationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instance_family: Required[str] + """The instance family.""" + @dataclass(kw_only=True) class GetDefaultCreditSpecificationOutput(_SerdeShape): """Dataclass for GetDefaultCreditSpecificationOutput structure.""" @@ -2449,6 +3437,17 @@ class GetEbsDefaultKmsKeyIdInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetEbsDefaultKmsKeyIdInputDict(TypedDict, total=False): + """Dictionary form of `GetEbsDefaultKmsKeyIdInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetEbsDefaultKmsKeyIdOutput(_SerdeShape): """Dataclass for GetEbsDefaultKmsKeyIdOutput structure.""" @@ -2478,6 +3477,17 @@ class GetEbsEncryptionByDefaultInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetEbsEncryptionByDefaultInputDict(TypedDict, total=False): + """Dictionary form of `GetEbsEncryptionByDefaultInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetEbsEncryptionByDefaultOutput(_SerdeShape): """Dataclass for GetEbsEncryptionByDefaultOutput structure.""" @@ -2506,6 +3516,17 @@ class GetEnabledIpamPolicyInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class GetEnabledIpamPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetEnabledIpamPolicyInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetEnabledIpamPolicyOutput(_SerdeShape): """Dataclass for GetEnabledIpamPolicyOutput structure.""" @@ -2545,6 +3566,26 @@ class GetFlowLogsIntegrationTemplateInput(_SerdeShape): integrate_services: IntegrateServices | None = ... """Information about the service integration.""" +class GetFlowLogsIntegrationTemplateInputDict(TypedDict, total=False): + """Dictionary form of `GetFlowLogsIntegrationTemplateInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + flow_log_id: Required[str] + """The ID of the flow log.""" + config_delivery_s3_destination_arn: Required[str] + """ + To store the CloudFormation template in Amazon S3, specify the location + in Amazon S3. + """ + integrate_services: Required[IntegrateServices | IntegrateServicesDict] + """Information about the service integration.""" + @dataclass(kw_only=True) class GetFlowLogsIntegrationTemplateOutput(_SerdeShape): """Dataclass for GetFlowLogsIntegrationTemplateOutput structure.""" @@ -2586,6 +3627,32 @@ class GetGroupsForCapacityReservationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetGroupsForCapacityReservationInputDict(TypedDict, total=False): + """Dictionary form of `GetGroupsForCapacityReservationInput`.""" + + capacity_reservation_id: Required[str] + """ + The ID of the Capacity Reservation. If you specify a Capacity + Reservation that is shared with you, the operation returns only Capacity + Reservation groups that you own. + """ + next_token: str | None + """The token to use to retrieve the next page of results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetGroupsForCapacityReservationOutput(_SerdeShape): """Dataclass for GetGroupsForCapacityReservationOutput structure.""" @@ -2617,6 +3684,14 @@ class GetHostReservationPurchasePreviewInput(_SerdeShape): offering_id: str | None = ... """The offering ID of the reservation.""" +class GetHostReservationPurchasePreviewInputDict(TypedDict, total=False): + """Dictionary form of `GetHostReservationPurchasePreviewInput`.""" + + host_id_set: Required[Sequence[str]] + """The IDs of the Dedicated Hosts with which the reservation is associated.""" + offering_id: Required[str] + """The offering ID of the reservation.""" + @dataclass(kw_only=True) class GetHostReservationPurchasePreviewOutput(_SerdeShape): """Dataclass for GetHostReservationPurchasePreviewOutput structure.""" @@ -2658,6 +3733,19 @@ class GetImageAncestryInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetImageAncestryInputDict(TypedDict, total=False): + """Dictionary form of `GetImageAncestryInput`.""" + + image_id: Required[str] + """The ID of the AMI whose ancestry you want to trace.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetImageAncestryOutput(_SerdeShape): """Dataclass for GetImageAncestryOutput structure.""" @@ -2687,6 +3775,17 @@ class GetImageBlockPublicAccessStateInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetImageBlockPublicAccessStateInputDict(TypedDict, total=False): + """Dictionary form of `GetImageBlockPublicAccessStateInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetImageBlockPublicAccessStateOutput(_SerdeShape): """Dataclass for GetImageBlockPublicAccessStateOutput structure.""" @@ -2748,6 +3847,31 @@ class GetImageFindingsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetImageFindingsInputDict(TypedDict, total=False): + """Dictionary form of `GetImageFindingsInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetImageFindingsOutput(_SerdeShape): """Dataclass for GetImageFindingsOutput structure.""" @@ -2779,6 +3903,17 @@ class GetInstanceMetadataDefaultsInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class GetInstanceMetadataDefaultsInputDict(TypedDict, total=False): + """Dictionary form of `GetInstanceMetadataDefaultsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetInstanceMetadataDefaultsOutput(_SerdeShape): """Dataclass for GetInstanceMetadataDefaultsOutput structure.""" @@ -2816,6 +3951,28 @@ class GetInstanceTpmEkPubInput(_SerdeShape): `UnauthorizedOperation`. """ +class GetInstanceTpmEkPubInputDict(TypedDict, total=False): + """Dictionary form of `GetInstanceTpmEkPubInput`.""" + + instance_id: Required[str] + """The ID of the instance for which to get the public endorsement key.""" + key_type: Required[str] + """The required public endorsement key type.""" + key_format: Required[str] + """ + The required public endorsement key format. Specify `der` for a + DER-encoded public key that is compatible with OpenSSL. Specify `tpmt` + for a TPM 2.0 format that is compatible with tpm2-tools. The returned + key is base64 encoded. + """ + dry_run: bool | None + """ + Specify this parameter to verify whether the request will succeed, + without actually making the request. If the request will succeed, the + response is `DryRunOperation`. Otherwise, the response is + `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetInstanceTpmEkPubOutput(_SerdeShape): """Dataclass for GetInstanceTpmEkPubOutput structure.""" @@ -2868,6 +4025,39 @@ class GetInstanceTypesFromInstanceRequirementsInput(_SerdeShape): context: str | None = ... """Reserved.""" +class GetInstanceTypesFromInstanceRequirementsInputDict(TypedDict, total=False): + """Dictionary form of `GetInstanceTypesFromInstanceRequirementsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + architecture_types: Required[Sequence[str]] + """The processor architecture type.""" + virtualization_types: Required[Sequence[str]] + """The virtualization type.""" + instance_requirements: Required[ + InstanceRequirementsRequest | InstanceRequirementsRequestDict + ] + """The attributes required for the instance types.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + context: str | None + """Reserved.""" + @dataclass(kw_only=True) class GetInstanceTypesFromInstanceRequirementsOutput(_SerdeShape): """Dataclass for GetInstanceTypesFromInstanceRequirementsOutput structure.""" @@ -2901,6 +4091,19 @@ class GetInstanceUefiDataInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class GetInstanceUefiDataInputDict(TypedDict, total=False): + """Dictionary form of `GetInstanceUefiDataInput`.""" + + instance_id: Required[str] + """The ID of the instance from which to retrieve the UEFI data.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetInstanceUefiDataOutput(_SerdeShape): """Dataclass for GetInstanceUefiDataOutput structure.""" @@ -2957,6 +4160,45 @@ class GetIpamAddressHistoryInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamAddressHistoryInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamAddressHistoryInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + cidr: Required[str] + """ + The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP + address range. If you enter a /16 IPv4 CIDR, you will get records that + match it exactly. You will not get records for any subnets within the + /16 CIDR. + """ + ipam_scope_id: Required[str] + """The ID of the IPAM scope that the CIDR is in.""" + vpc_id: str | None + """The ID of the VPC you want your history records filtered by.""" + start_time: datetime | None + """ + The start of the time period for which you are looking for history. If + you omit this option, it will default to the value of EndTime. + """ + end_time: datetime | None + """ + The end of the time period for which you are looking for history. If you + omit this option, it will default to the current time. + """ + max_results: int | None + """ + The maximum number of historical results you would like returned per + page. Defaults to 100. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamAddressHistoryOutput(_SerdeShape): """Dataclass for GetIpamAddressHistoryOutput structure.""" @@ -3011,6 +4253,36 @@ class GetIpamDiscoveredAccountsInput(_SerdeShape): results. """ +class GetIpamDiscoveredAccountsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamDiscoveredAccountsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_id: Required[str] + """A resource discovery ID.""" + discovery_region: Required[str] + """ + The Amazon Web Services Region that the account information is returned + from. + """ + filters: Sequence[Filter | FilterDict] | None + """Discovered account filters.""" + next_token: str | None + """ + Specify the pagination token from a previous request to retrieve the + next page of results. + """ + max_results: int | None + """ + The maximum number of discovered accounts to return in one page of + results. + """ + @dataclass(kw_only=True) class GetIpamDiscoveredAccountsOutput(_SerdeShape): """Dataclass for GetIpamDiscoveredAccountsOutput structure.""" @@ -3030,26 +4302,50 @@ class GetIpamDiscoveredAccountsOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetIpamDiscoveredPublicAddressesInput(_SerdeShape): - """Dataclass for GetIpamDiscoveredPublicAddressesInput structure.""" +@dataclass(kw_only=True) +class GetIpamDiscoveredPublicAddressesInput(_SerdeShape): + """Dataclass for GetIpamDiscoveredPublicAddressesInput structure.""" + + dry_run: bool | None = ... + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_id: str | None = ... + """An IPAM resource discovery ID.""" + address_region: str | None = ... + """The Amazon Web Services Region for the IP address.""" + filters: list[Filter] | None = ... + """Filters.""" + next_token: str | None = ... + """The token for the next page of results.""" + max_results: int | None = ... + """ + The maximum number of IPAM discovered public addresses to return in one + page of results. + """ + +class GetIpamDiscoveredPublicAddressesInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamDiscoveredPublicAddressesInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - ipam_resource_discovery_id: str | None = ... + ipam_resource_discovery_id: Required[str] """An IPAM resource discovery ID.""" - address_region: str | None = ... + address_region: Required[str] """The Amazon Web Services Region for the IP address.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """Filters.""" - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - max_results: int | None = ... + max_results: int | None """ The maximum number of IPAM discovered public addresses to return in one page of results. @@ -3104,6 +4400,33 @@ class GetIpamDiscoveredResourceCidrsInput(_SerdeShape): results. """ +class GetIpamDiscoveredResourceCidrsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamDiscoveredResourceCidrsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_id: Required[str] + """A resource discovery ID.""" + resource_region: Required[str] + """A resource Region.""" + filters: Sequence[Filter | FilterDict] | None + """Filters.""" + next_token: str | None + """ + Specify the pagination token from a previous request to retrieve the + next page of results. + """ + max_results: int | None + """ + The maximum number of discovered resource CIDRs to return in one page of + results. + """ + @dataclass(kw_only=True) class GetIpamDiscoveredResourceCidrsOutput(_SerdeShape): """Dataclass for GetIpamDiscoveredResourceCidrsOutput structure.""" @@ -3149,6 +4472,31 @@ class GetIpamDiscoveredRoutesInput(_SerdeShape): results, make another call with the returned `nextToken` value. """ +class GetIpamDiscoveredRoutesInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamDiscoveredRoutesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_id: Required[str] + """The ID of the IPAM resource discovery.""" + resource_region: Required[str] + """The Amazon Web Services Region to retrieve discovered routes for.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to apply to the results.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of results to return in a single call. If not + specified, all available results are returned. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + @dataclass(kw_only=True) class GetIpamDiscoveredRoutesOutput(_SerdeShape): """Dataclass for GetIpamDiscoveredRoutesOutput structure.""" @@ -3189,6 +4537,29 @@ class GetIpamInternetRegistryAssociationAsnsInput(_SerdeShape): filters: list[Filter] | None = ... """One or more filters to apply to the results.""" +class GetIpamInternetRegistryAssociationAsnsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamInternetRegistryAssociationAsnsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + max_results: int | None + """ + The maximum number of results to return in a single call. If not + specified, all available results are returned. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + next_token: str | None + """The token for the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to apply to the results.""" + @dataclass(kw_only=True) class GetIpamInternetRegistryAssociationAsnsOutput(_SerdeShape): """Dataclass for GetIpamInternetRegistryAssociationAsnsOutput structure.""" @@ -3231,6 +4602,29 @@ class GetIpamInternetRegistryAssociationCidrsInput(_SerdeShape): filters: list[Filter] | None = ... """One or more filters to apply to the results.""" +class GetIpamInternetRegistryAssociationCidrsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamInternetRegistryAssociationCidrsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + max_results: int | None + """ + The maximum number of results to return in a single call. If not + specified, all available results are returned. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + next_token: str | None + """The token for the next page of results.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to apply to the results.""" + @dataclass(kw_only=True) class GetIpamInternetRegistryAssociationCidrsOutput(_SerdeShape): """Dataclass for GetIpamInternetRegistryAssociationCidrsOutput structure.""" @@ -3281,6 +4675,37 @@ class GetIpamPolicyAllocationRulesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamPolicyAllocationRulesInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamPolicyAllocationRulesInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_policy_id: Required[str] + """The ID of the IPAM policy for which to get allocation rules.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters for the allocation rules.""" + locale: str | None + """The locale for which to get the allocation rules.""" + resource_type: str | None + """ + The resource type for which to get the allocation rules. + + The Amazon Web Services service or resource type that can use IP + addresses through IPAM policies. Supported services and resource types + include: + + - Elastic IP addresses + """ + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamPolicyAllocationRulesOutput(_SerdeShape): """Dataclass for GetIpamPolicyAllocationRulesOutput structure.""" @@ -3327,6 +4752,28 @@ class GetIpamPolicyOrganizationTargetsInput(_SerdeShape): filters: list[Filter] | None = ... """One or more filters for the Amazon Web Services Organizations targets.""" +class GetIpamPolicyOrganizationTargetsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamPolicyOrganizationTargetsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """The maximum number of results to return in a single call.""" + next_token: str | None + """The token for the next page of results.""" + ipam_policy_id: Required[str] + """ + The ID of the IPAM policy for which to get Amazon Web Services + Organizations targets. + """ + filters: Sequence[Filter | FilterDict] | None + """One or more filters for the Amazon Web Services Organizations targets.""" + @dataclass(kw_only=True) class GetIpamPolicyOrganizationTargetsOutput(_SerdeShape): """Dataclass for GetIpamPolicyOrganizationTargetsOutput structure.""" @@ -3375,6 +4822,31 @@ class GetIpamPoolAllocationsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamPoolAllocationsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamPoolAllocationsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: Required[str] + """The ID of the IPAM pool you want to see the allocations for.""" + ipam_pool_allocation_id: str | None + """The ID of the allocation.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters for the request. For more information about + filtering, see [Filtering CLI + output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + """ + max_results: int | None + """The maximum number of results you would like returned per page.""" + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamPoolAllocationsOutput(_SerdeShape): """Dataclass for GetIpamPoolAllocationsOutput structure.""" @@ -3423,6 +4895,34 @@ class GetIpamPoolCidrsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamPoolCidrsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamPoolCidrsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: Required[str] + """The ID of the IPAM pool you want the CIDR for.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters for the request. For more information about + filtering, see [Filtering CLI + output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamPoolCidrsOutput(_SerdeShape): """Dataclass for GetIpamPoolCidrsOutput structure.""" @@ -3470,6 +4970,33 @@ class GetIpamPrefixListResolverRulesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamPrefixListResolverRulesInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamPrefixListResolverRulesInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_prefix_list_resolver_id: Required[str] + """ + The ID of the IPAM prefix list resolver whose rules you want to + retrieve. + """ + filters: Sequence[Filter | FilterDict] | None + """One or more filters to limit the results.""" + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamPrefixListResolverRulesOutput(_SerdeShape): """Dataclass for GetIpamPrefixListResolverRulesOutput structure.""" @@ -3520,6 +5047,36 @@ class GetIpamPrefixListResolverVersionEntriesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamPrefixListResolverVersionEntriesInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamPrefixListResolverVersionEntriesInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_prefix_list_resolver_id: Required[str] + """ + The ID of the IPAM prefix list resolver whose version entries you want + to retrieve. + """ + ipam_prefix_list_resolver_version: Required[int] + """ + The version number of the resolver for which to retrieve CIDR entries. + If not specified, the latest version is used. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamPrefixListResolverVersionEntriesOutput(_SerdeShape): """Dataclass for GetIpamPrefixListResolverVersionEntriesOutput structure.""" @@ -3572,6 +5129,38 @@ class GetIpamPrefixListResolverVersionsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamPrefixListResolverVersionsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamPrefixListResolverVersionsInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_prefix_list_resolver_id: Required[str] + """ + The ID of the IPAM prefix list resolver whose versions you want to + retrieve. + """ + ipam_prefix_list_resolver_versions: Sequence[int] | None + """ + Specific version numbers to retrieve. If not specified, all versions are + returned. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + filters: Sequence[Filter | FilterDict] | None + """One or more filters to limit the results.""" + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamPrefixListResolverVersionsOutput(_SerdeShape): """Dataclass for GetIpamPrefixListResolverVersionsOutput structure.""" @@ -3591,43 +5180,81 @@ class GetIpamPrefixListResolverVersionsOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetIpamResourceCidrsInput(_SerdeShape): - """Dataclass for GetIpamResourceCidrsInput structure.""" +@dataclass(kw_only=True) +class GetIpamResourceCidrsInput(_SerdeShape): + """Dataclass for GetIpamResourceCidrsInput structure.""" + + dry_run: bool | None = ... + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: list[Filter] | None = ... + """ + One or more filters for the request. For more information about + filtering, see [Filtering CLI + output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None = ... + """The token for the next page of results.""" + ipam_scope_id: str | None = ... + """The ID of the scope that the resource is in.""" + ipam_pool_id: str | None = ... + """The ID of the IPAM pool that the resource is in.""" + resource_id: str | None = ... + """The ID of the resource.""" + resource_type: str | None = ... + """The resource type.""" + resource_tag: RequestIpamResourceTag | None = ... + """The resource tag.""" + resource_owner: str | None = ... + """The ID of the Amazon Web Services account that owns the resource.""" + +class GetIpamResourceCidrsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamResourceCidrsInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ One or more filters for the request. For more information about filtering, see [Filtering CLI output](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - ipam_scope_id: str | None = ... + ipam_scope_id: Required[str] """The ID of the scope that the resource is in.""" - ipam_pool_id: str | None = ... + ipam_pool_id: str | None """The ID of the IPAM pool that the resource is in.""" - resource_id: str | None = ... + resource_id: str | None """The ID of the resource.""" - resource_type: str | None = ... + resource_type: str | None """The resource type.""" - resource_tag: RequestIpamResourceTag | None = ... + resource_tag: RequestIpamResourceTag | RequestIpamResourceTagDict | None """The resource tag.""" - resource_owner: str | None = ... + resource_owner: str | None """The ID of the Amazon Web Services account that owns the resource.""" @dataclass(kw_only=True) @@ -3673,6 +5300,29 @@ class GetIpamRouteOriginAuthorizationsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamRouteOriginAuthorizationsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamRouteOriginAuthorizationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + cidr: str | None + """Filter results to a specific CIDR prefix.""" + max_results: int | None + """ + The maximum number of results to return in a single call. If not + specified, all available results are returned. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamRouteOriginAuthorizationsOutput(_SerdeShape): """Dataclass for GetIpamRouteOriginAuthorizationsOutput structure.""" @@ -3715,6 +5365,29 @@ class GetIpamRouteProtectionFindingsInput(_SerdeShape): results, make another call with the returned `nextToken` value. """ +class GetIpamRouteProtectionFindingsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamRouteProtectionFindingsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """The ID of the IPAM to retrieve route protection findings for.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to apply to the results.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of results to return in a single call. If not + specified, all available results are returned. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + @dataclass(kw_only=True) class GetIpamRouteProtectionFindingsOutput(_SerdeShape): """Dataclass for GetIpamRouteProtectionFindingsOutput structure.""" @@ -3766,6 +5439,38 @@ class GetIpamRoutingPolicyRegistrationDeltasInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamRoutingPolicyRegistrationDeltasInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamRoutingPolicyRegistrationDeltasInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + delta_id: str | None + """Filter results to a specific delta ID.""" + start_time: datetime | None + """The start of the time range to filter deltas by.""" + end_time: datetime | None + """The end of the time range to filter deltas by.""" + chronological_order: str | None + """ + The chronological order to return results in. Valid values: `forward` | + `reverse`. + """ + max_results: int | None + """ + The maximum number of results to return in a single call. If not + specified, all available results are returned. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamRoutingPolicyRegistrationDeltasOutput(_SerdeShape): """Dataclass for GetIpamRoutingPolicyRegistrationDeltasOutput structure.""" @@ -3808,6 +5513,29 @@ class GetIpamRoutingPolicyRegistrationsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetIpamRoutingPolicyRegistrationsInputDict(TypedDict, total=False): + """Dictionary form of `GetIpamRoutingPolicyRegistrationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + cidr: str | None + """Filter results to a specific CIDR prefix.""" + max_results: int | None + """ + The maximum number of results to return in a single call. If not + specified, all available results are returned. To retrieve the remaining + results, make another call with the returned `nextToken` value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetIpamRoutingPolicyRegistrationsOutput(_SerdeShape): """Dataclass for GetIpamRoutingPolicyRegistrationsOutput structure.""" @@ -3838,6 +5566,19 @@ class GetLaunchTemplateDataInput(_SerdeShape): instance_id: str | None = ... """The ID of the instance.""" +class GetLaunchTemplateDataInputDict(TypedDict, total=False): + """Dictionary form of `GetLaunchTemplateDataInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the instance.""" + @dataclass(kw_only=True) class GetLaunchTemplateDataOutput(_SerdeShape): """Dataclass for GetLaunchTemplateDataOutput structure.""" @@ -3874,6 +5615,27 @@ class GetManagedPrefixListAssociationsInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetManagedPrefixListAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `GetManagedPrefixListAssociationsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + prefix_list_id: Required[str] + """The ID of the prefix list.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetManagedPrefixListAssociationsOutput(_SerdeShape): """Dataclass for GetManagedPrefixListAssociationsOutput structure.""" @@ -3920,6 +5682,32 @@ class GetManagedPrefixListEntriesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class GetManagedPrefixListEntriesInputDict(TypedDict, total=False): + """Dictionary form of `GetManagedPrefixListEntriesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + prefix_list_id: Required[str] + """The ID of the prefix list.""" + target_version: int | None + """ + The version of the prefix list for which to return the entries. The + default is the current version. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class GetManagedPrefixListEntriesOutput(_SerdeShape): """Dataclass for GetManagedPrefixListEntriesOutput structure.""" @@ -3951,6 +5739,17 @@ class GetManagedResourceVisibilityInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class GetManagedResourceVisibilityInputDict(TypedDict, total=False): + """Dictionary form of `GetManagedResourceVisibilityInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetManagedResourceVisibilityOutput(_SerdeShape): """Dataclass for GetManagedResourceVisibilityOutput structure.""" @@ -3990,6 +5789,27 @@ class GetNetworkInsightsAccessScopeAnalysisFindingsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetNetworkInsightsAccessScopeAnalysisFindingsInputDict(TypedDict, total=False): + """Dictionary form of `GetNetworkInsightsAccessScopeAnalysisFindingsInput`.""" + + network_insights_access_scope_analysis_id: Required[str] + """The ID of the Network Access Scope analysis.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetNetworkInsightsAccessScopeAnalysisFindingsOutput(_SerdeShape): """ @@ -4030,6 +5850,19 @@ class GetNetworkInsightsAccessScopeContentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetNetworkInsightsAccessScopeContentInputDict(TypedDict, total=False): + """Dictionary form of `GetNetworkInsightsAccessScopeContentInput`.""" + + network_insights_access_scope_id: Required[str] + """The ID of the Network Access Scope.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetNetworkInsightsAccessScopeContentOutput(_SerdeShape): """Dataclass for GetNetworkInsightsAccessScopeContentOutput structure.""" @@ -4060,6 +5893,19 @@ class GetPasswordDataInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class GetPasswordDataInputDict(TypedDict, total=False): + """Dictionary form of `GetPasswordDataInput`.""" + + instance_id: Required[str] + """The ID of the Windows instance.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetPasswordDataOutput(_SerdeShape): """Dataclass for GetPasswordDataOutput structure.""" @@ -4100,6 +5946,26 @@ class GetReservedInstancesExchangeQuoteInput(_SerdeShape): exchange for your current Convertible Reserved Instances. """ +class GetReservedInstancesExchangeQuoteInputDict(TypedDict, total=False): + """Dictionary form of `GetReservedInstancesExchangeQuoteInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + reserved_instance_ids: Required[Sequence[str]] + """The IDs of the Convertible Reserved Instances to exchange.""" + target_configurations: ( + Sequence[TargetConfigurationRequest | TargetConfigurationRequestDict] | None + ) + """ + The configuration of the target Convertible Reserved Instance to + exchange for your current Convertible Reserved Instances. + """ + @dataclass(kw_only=True) class GetReservedInstancesExchangeQuoteOutput(_SerdeShape): """Contains the output of GetReservedInstancesExchangeQuote.""" @@ -4147,6 +6013,19 @@ class GetRouteServerAssociationsInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class GetRouteServerAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `GetRouteServerAssociationsInput`.""" + + route_server_id: Required[str] + """The ID of the route server for which to get association information.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetRouteServerAssociationsOutput(_SerdeShape): """Dataclass for GetRouteServerAssociationsOutput structure.""" @@ -4177,6 +6056,21 @@ class GetRouteServerPropagationsInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class GetRouteServerPropagationsInputDict(TypedDict, total=False): + """Dictionary form of `GetRouteServerPropagationsInput`.""" + + route_server_id: Required[str] + """The ID of the route server for which to get propagation information.""" + route_table_id: str | None + """The ID of the route table for which to get propagation information.""" + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetRouteServerPropagationsOutput(_SerdeShape): """Dataclass for GetRouteServerPropagationsOutput structure.""" @@ -4214,6 +6108,28 @@ class GetRouteServerRoutingDatabaseInput(_SerdeShape): filters: list[Filter] | None = ... """Filters to apply to the routing database query.""" +class GetRouteServerRoutingDatabaseInputDict(TypedDict, total=False): + """Dictionary form of `GetRouteServerRoutingDatabaseInput`.""" + + route_server_id: Required[str] + """The ID of the route server for which to get the routing database.""" + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of routing database entries to return in a single + response. + """ + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + filters: Sequence[Filter | FilterDict] | None + """Filters to apply to the routing database query.""" + @dataclass(kw_only=True) class GetRouteServerRoutingDatabaseOutput(_SerdeShape): """Dataclass for GetRouteServerRoutingDatabaseOutput structure.""" @@ -4235,25 +6151,65 @@ class GetRouteServerRoutingDatabaseOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetSecurityGroupsForVpcInput(_SerdeShape): - """Dataclass for GetSecurityGroupsForVpcInput structure.""" +@dataclass(kw_only=True) +class GetSecurityGroupsForVpcInput(_SerdeShape): + """Dataclass for GetSecurityGroupsForVpcInput structure.""" + + vpc_id: str | None = ... + """The VPC ID where the security group can be used.""" + next_token: str | None = ... + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None = ... + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + filters: list[Filter] | None = ... + """ + The filters. If using multiple filters, the results include security + groups which match all filters. + + - `group-id`: The security group ID. + + - `description`: The security group's description. + + - `group-name`: The security group name. + + - `owner-id`: The security group owner ID. + + - `primary-vpc-id`: The VPC ID in which the security group was created. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class GetSecurityGroupsForVpcInputDict(TypedDict, total=False): + """Dictionary form of `GetSecurityGroupsForVpcInput`.""" - vpc_id: str | None = ... + vpc_id: Required[str] """The VPC ID where the security group can be used.""" - next_token: str | None = ... + next_token: str | None """ The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ The filters. If using multiple filters, the results include security groups which match all filters. @@ -4268,7 +6224,7 @@ class GetSecurityGroupsForVpcInput(_SerdeShape): - `primary-vpc-id`: The VPC ID in which the security group was created. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -4307,6 +6263,17 @@ class GetSerialConsoleAccessStatusInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetSerialConsoleAccessStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetSerialConsoleAccessStatusInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetSerialConsoleAccessStatusOutput(_SerdeShape): """Dataclass for GetSerialConsoleAccessStatusOutput structure.""" @@ -4347,6 +6314,17 @@ class GetSnapshotBlockPublicAccessStateInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetSnapshotBlockPublicAccessStateInputDict(TypedDict, total=False): + """Dictionary form of `GetSnapshotBlockPublicAccessStateInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetSnapshotBlockPublicAccessStateOutput(_SerdeShape): """Dataclass for GetSnapshotBlockPublicAccessStateOutput structure.""" @@ -4459,6 +6437,79 @@ class GetSpotPlacementScoresInput(_SerdeShape): parent Region. """ +class GetSpotPlacementScoresInputDict(TypedDict, total=False): + """Dictionary form of `GetSpotPlacementScoresInput`.""" + + instance_types: Sequence[str] | None + """ + The instance types. We recommend that you specify at least three + instance types. If you specify one or two instance types, or specify + variations of a single instance type (for example, an `m3.xlarge` with + and without instance storage), the returned placement score will always + be low. + + If you specify `InstanceTypes`, you can't specify + `InstanceRequirementsWithMetadata`. + """ + target_capacity: Required[int] + """The target capacity.""" + target_capacity_unit_type: str | None + """The unit for the target capacity.""" + single_availability_zone: bool | None + """ + Specify `true` so that the response returns a list of scored + Availability Zones. Otherwise, the response returns a list of scored + Regions. + + A list of scored Availability Zones is useful if you want to launch all + of your Spot capacity into a single Availability Zone. + """ + region_names: Sequence[str] | None + """ + The Regions used to narrow down the list of Regions to be scored. Enter + the Region code, for example, `us-east-1`. + """ + instance_requirements_with_metadata: ( + InstanceRequirementsWithMetadataRequest + | InstanceRequirementsWithMetadataRequestDict + | None + ) + """ + The attributes for the instance types. When you specify instance + attributes, Amazon EC2 will identify instance types with those + attributes. + + If you specify `InstanceRequirementsWithMetadata`, you can't specify + `InstanceTypes`. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + include_local_zones: bool | None + """ + Specify `true` so that the response returns scores that include Local + Zones. Otherwise, the response ignores Local Zones. + + When you request regional scores, Local Zone capacity counts toward its + parent Region. + """ + @dataclass(kw_only=True) class GetSpotPlacementScoresOutput(_SerdeShape): """Dataclass for GetSpotPlacementScoresOutput structure.""" @@ -4538,6 +6589,45 @@ class GetSubnetCidrReservationsInput(_SerdeShape): value. """ +class GetSubnetCidrReservationsInputDict(TypedDict, total=False): + """Dictionary form of `GetSubnetCidrReservationsInput`.""" + + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `reservationType` - The type of reservation (`prefix` | `explicit`). + + - `subnet-id` - The ID of the subnet. + + - `tag`:``{=html} - The key/value combination of a tag assigned to + the resource. Use the tag key in the filter name and the tag value as + the filter value. For example, to find all resources that have a tag + with the key `Owner` and the value `TeamA`, specify `tag:Owner` for + the filter name and `TeamA` for the filter value. + + - `tag-key` - The key of a tag assigned to the resource. Use this filter + to find all resources assigned a tag with a specific key, regardless + of the tag value. + """ + subnet_id: Required[str] + """The ID of the subnet.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """The token for the next page of results.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + @dataclass(kw_only=True) class GetSubnetCidrReservationsOutput(_SerdeShape): """Dataclass for GetSubnetCidrReservationsOutput structure.""" @@ -4576,6 +6666,19 @@ class GetTransitGatewayAttachmentNatConfigurationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetTransitGatewayAttachmentNatConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayAttachmentNatConfigurationInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the transit gateway attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetTransitGatewayAttachmentNatConfigurationOutput(_SerdeShape): """ @@ -4631,6 +6734,34 @@ class GetTransitGatewayAttachmentPropagationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetTransitGatewayAttachmentPropagationsInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayAttachmentPropagationsInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the attachment.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `transit-gateway-route-table-id` - The ID of the transit gateway route + table. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetTransitGatewayAttachmentPropagationsOutput(_SerdeShape): """Dataclass for GetTransitGatewayAttachmentPropagationsOutput structure.""" @@ -4676,6 +6807,29 @@ class GetTransitGatewayMeteringPolicyEntriesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetTransitGatewayMeteringPolicyEntriesInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayMeteringPolicyEntriesInput`.""" + + transit_gateway_metering_policy_id: Required[str] + """The ID of the transit gateway metering policy to retrieve entries for.""" + filters: Sequence[Filter | FilterDict] | None + """One or more filters to apply when retrieving metering policy entries.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetTransitGatewayMeteringPolicyEntriesOutput(_SerdeShape): """Dataclass for GetTransitGatewayMeteringPolicyEntriesOutput structure.""" @@ -4738,6 +6892,43 @@ class GetTransitGatewayMulticastDomainAssociationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetTransitGatewayMulticastDomainAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayMulticastDomainAssociationsInput`.""" + + transit_gateway_multicast_domain_id: Required[str] + """The ID of the transit gateway multicast domain.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `resource-id` - The ID of the resource. + + - `resource-type` - The type of resource. The valid value is: `vpc`. + + - `state` - The state of the subnet association. Valid values are + `associated` | `associating` | `disassociated` | `disassociating`. + + - `subnet-id` - The ID of the subnet. + + - `transit-gateway-attachment-id` - The id of the transit gateway + attachment. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetTransitGatewayMulticastDomainAssociationsOutput(_SerdeShape): """ @@ -4786,6 +6977,29 @@ class GetTransitGatewayPolicyTableAssociationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetTransitGatewayPolicyTableAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayPolicyTableAssociationsInput`.""" + + transit_gateway_policy_table_id: Required[str] + """The ID of the transit gateway policy table.""" + filters: Sequence[Filter | FilterDict] | None + """The filters associated with the transit gateway policy table.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetTransitGatewayPolicyTableAssociationsOutput(_SerdeShape): """Dataclass for GetTransitGatewayPolicyTableAssociationsOutput structure.""" @@ -4802,13 +7016,61 @@ class GetTransitGatewayPolicyTableAssociationsOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetTransitGatewayPolicyTableEntriesInput(_SerdeShape): - """Dataclass for GetTransitGatewayPolicyTableEntriesInput structure.""" +@dataclass(kw_only=True) +class GetTransitGatewayPolicyTableEntriesInput(_SerdeShape): + """Dataclass for GetTransitGatewayPolicyTableEntriesInput structure.""" + + transit_gateway_policy_table_id: str | None = ... + """The ID of the transit gateway policy table.""" + filters: list[Filter] | None = ... + """ + One or more filters. The possible values are: + + - `policy-rule-number` - The rule number for the transit gateway policy + table entry. + + - `target-route-table-id` - The ID of the target route table. + + - `policy-rule.source-ip` - The source CIDR block for the policy rule. + + - `policy-rule.destination-ip` - The destination CIDR block for the + policy rule. + + - `policy-rule.source-port` - The source port or port range for the + policy rule. + + - `policy-rule.destination-port` - The destination port or port range + for the policy rule. + + - `policy-rule.protocol` - The protocol for the policy rule. + + - `policy-rule.meta-data.key` - The metadata key for the policy rule. + + - `policy-rule.meta-data.value` - The metadata value for the policy + rule. + """ + max_results: int | None = ... + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None = ... + """The token for the next page of results.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class GetTransitGatewayPolicyTableEntriesInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayPolicyTableEntriesInput`.""" - transit_gateway_policy_table_id: str | None = ... + transit_gateway_policy_table_id: Required[str] """The ID of the transit gateway policy table.""" - filters: list[Filter] | None = ... + filters: Sequence[Filter | FilterDict] | None """ One or more filters. The possible values are: @@ -4835,15 +7097,15 @@ class GetTransitGatewayPolicyTableEntriesInput(_SerdeShape): - `policy-rule.meta-data.value` - The metadata value for the policy rule. """ - max_results: int | None = ... + max_results: int | None """ The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value. """ - next_token: str | None = ... + next_token: str | None """The token for the next page of results.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have @@ -4916,6 +7178,49 @@ class GetTransitGatewayPrefixListReferencesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetTransitGatewayPrefixListReferencesInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayPrefixListReferencesInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `attachment.resource-id` - The ID of the resource for the attachment. + + - `attachment.resource-type` - The type of resource for the attachment. + Valid values are `vpc` | `vpn` | `direct-connect-gateway` | + `peering`. + + - `attachment.transit-gateway-attachment-id` - The ID of the attachment. + + - `is-blackhole` - Whether traffic matching the route is blocked (`true` + | `false`). + + - `prefix-list-id` - The ID of the prefix list. + + - `prefix-list-owner-id` - The ID of the owner of the prefix list. + + - `state` - The state of the prefix list reference (`pending` | + `available` | `modifying` | `deleting`). + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetTransitGatewayPrefixListReferencesOutput(_SerdeShape): """Dataclass for GetTransitGatewayPrefixListReferencesOutput structure.""" @@ -4970,6 +7275,38 @@ class GetTransitGatewayRouteTableAssociationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetTransitGatewayRouteTableAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayRouteTableAssociationsInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `resource-id` - The ID of the resource. + + - `resource-type` - The resource type. Valid values are `vpc` | `vpn` + | `direct-connect-gateway` | `peering` | `connect`. + + - `transit-gateway-attachment-id` - The ID of the attachment. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetTransitGatewayRouteTableAssociationsOutput(_SerdeShape): """Dataclass for GetTransitGatewayRouteTableAssociationsOutput structure.""" @@ -5022,6 +7359,38 @@ class GetTransitGatewayRouteTablePropagationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetTransitGatewayRouteTablePropagationsInputDict(TypedDict, total=False): + """Dictionary form of `GetTransitGatewayRouteTablePropagationsInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `resource-id` - The ID of the resource. + + - `resource-type` - The resource type. Valid values are `vpc` | `vpn` + | `direct-connect-gateway` | `peering` | `connect`. + + - `transit-gateway-attachment-id` - The ID of the attachment. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetTransitGatewayRouteTablePropagationsOutput(_SerdeShape): """Dataclass for GetTransitGatewayRouteTablePropagationsOutput structure.""" @@ -5057,6 +7426,19 @@ class GetVerifiedAccessEndpointPolicyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetVerifiedAccessEndpointPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetVerifiedAccessEndpointPolicyInput`.""" + + verified_access_endpoint_id: Required[str] + """The ID of the Verified Access endpoint.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetVerifiedAccessEndpointPolicyOutput(_SerdeShape): """Dataclass for GetVerifiedAccessEndpointPolicyOutput structure.""" @@ -5095,6 +7477,27 @@ class GetVerifiedAccessEndpointTargetsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetVerifiedAccessEndpointTargetsInputDict(TypedDict, total=False): + """Dictionary form of `GetVerifiedAccessEndpointTargetsInput`.""" + + verified_access_endpoint_id: Required[str] + """The ID of the network CIDR endpoint.""" + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetVerifiedAccessEndpointTargetsOutput(_SerdeShape): """Dataclass for GetVerifiedAccessEndpointTargetsOutput structure.""" @@ -5128,6 +7531,19 @@ class GetVerifiedAccessGroupPolicyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetVerifiedAccessGroupPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetVerifiedAccessGroupPolicyInput`.""" + + verified_access_group_id: Required[str] + """The ID of the Verified Access group.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetVerifiedAccessGroupPolicyOutput(_SerdeShape): """Dataclass for GetVerifiedAccessGroupPolicyOutput structure.""" @@ -5176,6 +7592,34 @@ class GetVpcResourcesBlockingEncryptionEnforcementInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetVpcResourcesBlockingEncryptionEnforcementInputDict(TypedDict, total=False): + """Dictionary form of `GetVpcResourcesBlockingEncryptionEnforcementInput`.""" + + vpc_id: Required[str] + """ + The ID of the VPC to check for resources blocking encryption + enforcement. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetVpcResourcesBlockingEncryptionEnforcementOutput(_SerdeShape): """ @@ -5229,6 +7673,36 @@ class GetVpnConnectionDeviceSampleConfigurationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetVpnConnectionDeviceSampleConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetVpnConnectionDeviceSampleConfigurationInput`.""" + + vpn_connection_id: Required[str] + """ + The `VpnConnectionId` specifies the Site-to-Site VPN connection used for + the sample configuration. + """ + vpn_connection_device_type_id: Required[str] + """Device identifier provided by the `GetVpnConnectionDeviceTypes` API.""" + internet_key_exchange_version: str | None + """ + The IKE version to be used in the sample configuration file for your + customer gateway device. You can specify one of the following versions: + `ikev1` or `ikev2`. + """ + sample_type: str | None + """ + The type of sample configuration to generate. Valid values are + \"compatibility\" (includes IKEv1) or \"recommended\" (throws + UnsupportedOperationException for IKEv1). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetVpnConnectionDeviceSampleConfigurationOutput(_SerdeShape): """Dataclass for GetVpnConnectionDeviceSampleConfigurationOutput structure.""" @@ -5274,6 +7748,36 @@ class GetVpnConnectionDeviceTypesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetVpnConnectionDeviceTypesInputDict(TypedDict, total=False): + """Dictionary form of `GetVpnConnectionDeviceTypesInput`.""" + + max_results: int | None + """ + The maximum number of results returned by `GetVpnConnectionDeviceTypes` + in paginated output. When this parameter is used, + `GetVpnConnectionDeviceTypes` only returns `MaxResults` results in a + single page along with a `NextToken` response element. The remaining + results of the initial request can be seen by sending another + `GetVpnConnectionDeviceTypes` request with the returned `NextToken` + value. This value can be between 200 and 1000. If this parameter is not + used, then `GetVpnConnectionDeviceTypes` returns all results. + """ + next_token: str | None + """ + The `NextToken` value returned from a previous paginated + `GetVpnConnectionDeviceTypes` request where `MaxResults` was used and + the results exceeded the value of that parameter. Pagination continues + from the end of the previous results that returned the `NextToken` + value. This value is null when there are no more results to return. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetVpnConnectionDeviceTypesOutput(_SerdeShape): """Dataclass for GetVpnConnectionDeviceTypesOutput structure.""" @@ -5315,6 +7819,21 @@ class GetVpnTunnelReplacementStatusInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class GetVpnTunnelReplacementStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetVpnTunnelReplacementStatusInput`.""" + + vpn_connection_id: Required[str] + """The ID of the Site-to-Site VPN connection.""" + vpn_tunnel_outside_ip_address: Required[str] + """The external IP address of the VPN tunnel.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class GetVpnTunnelReplacementStatusOutput(_SerdeShape): """Dataclass for GetVpnTunnelReplacementStatusOutput structure.""" @@ -5409,6 +7928,14 @@ class GroupIdentifier(_SerdeShape): group_name: str | None = ... """The name of the security group.""" +class GroupIdentifierDict(TypedDict, total=False): + """Dictionary form of `GroupIdentifier`.""" + + group_id: str | None + """The ID of the security group.""" + group_name: str | None + """The name of the security group.""" + class HaStatus(UnknownEnumMixin, StrEnum): PROCESSING = "processing" ACTIVE = "active" @@ -5429,6 +7956,14 @@ class HealthCheckPathDestinationRequestObject(_SerdeShape): security_group_id: str | None = ... """The ID of the security group for the destination.""" +class HealthCheckPathDestinationRequestObjectDict(TypedDict, total=False): + """Dictionary form of `HealthCheckPathDestinationRequestObject`.""" + + subnet_id: str | None + """The ID of the subnet for the destination.""" + security_group_id: str | None + """The ID of the security group for the destination.""" + @dataclass(kw_only=True) class HealthCheckPathDestinationResponseObject(_SerdeShape): """Describes a destination for a health check path.""" @@ -5447,6 +7982,24 @@ class HealthCheckPathRequestObject(_SerdeShape): destinations: list[HealthCheckPathDestinationRequestObject] | None = ... """The destinations for the health check path.""" +class HealthCheckPathRequestObjectDict(TypedDict, total=False): + """Dictionary form of `HealthCheckPathRequestObject`.""" + + source: ( + HealthCheckPathSourceRequestObject + | HealthCheckPathSourceRequestObjectDict + | None + ) + """The source for the health check path.""" + destinations: ( + Sequence[ + HealthCheckPathDestinationRequestObject + | HealthCheckPathDestinationRequestObjectDict + ] + | None + ) + """The destinations for the health check path.""" + @dataclass(kw_only=True) class HealthCheckPathResponseObject(_SerdeShape): """Describes a health check path for an application status check.""" @@ -5469,6 +8022,14 @@ class HealthCheckPathSourceRequestObject(_SerdeShape): security_group_id: str | None = ... """The ID of the security group for the source.""" +class HealthCheckPathSourceRequestObjectDict(TypedDict, total=False): + """Dictionary form of `HealthCheckPathSourceRequestObject`.""" + + subnet_id: str | None + """The ID of the subnet for the source.""" + security_group_id: str | None + """The ID of the security group for the source.""" + @dataclass(kw_only=True) class HealthCheckPathSourceResponseObject(_SerdeShape): """Describes the source for a health check path.""" @@ -5524,6 +8085,27 @@ class HibernationOptionsRequest(_SerdeShape): Default: `false` """ +class HibernationOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `HibernationOptionsRequest`.""" + + configured: bool | None + """ + Set to `true` to enable your instance for hibernation. + + For Spot Instances, if you set `Configured` to `true`, either omit the + `InstanceInterruptionBehavior` parameter (for + [`SpotMarketOptions`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotMarketOptions.html) + ), or set it to `hibernate`. When `Configured` is true: + + - If you omit `InstanceInterruptionBehavior`, it defaults to + `hibernate`. + + - If you set `InstanceInterruptionBehavior` to a value other than + `hibernate`, you'll get an error. + + Default: `false` + """ + @dataclass(kw_only=True) class HistoryRecord(_SerdeShape): """Describes an event in the history of the Spot Fleet request.""" @@ -5676,6 +8258,16 @@ class HostCpuOptionsRequest(_SerdeShape): you don't specify a value, AMD SEV-SNP is `disabled`. """ +class HostCpuOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `HostCpuOptionsRequest`.""" + + amd_sev_snp: str | None + """ + Specifies whether AMD Secure Encrypted Virtualization-Secure Nested + Paging (AMD SEV-SNP) is enabled or disabled for the Dedicated Host. If + you don't specify a value, AMD SEV-SNP is `disabled`. + """ + @dataclass(kw_only=True) class HostInstance(_SerdeShape): """Describes an instance running on a Dedicated Host.""" @@ -5847,3 +8439,11 @@ class IamInstanceProfileSpecification(_SerdeShape): """The Amazon Resource Name (ARN) of the instance profile.""" name: str | None = ... """The name of the instance profile.""" + +class IamInstanceProfileSpecificationDict(TypedDict, total=False): + """Dictionary form of `IamInstanceProfileSpecification`.""" + + arn: str | None + """The Amazon Resource Name (ARN) of the instance profile.""" + name: str | None + """The name of the instance profile.""" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_7.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_07.pyi similarity index 79% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_7.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_07.pyi index 48ef808ea..8ded889d0 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_7.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_07.pyi @@ -1,47 +1,66 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin from ..models import ( AcceleratorCount, + AcceleratorCountDict, AcceleratorCountRequest, + AcceleratorCountRequestDict, AcceleratorTotalMemoryMiB, + AcceleratorTotalMemoryMiBDict, AcceleratorTotalMemoryMiBRequest, + AcceleratorTotalMemoryMiBRequestDict, ApplicationStatus, ApplicationStatusSummary, AthenaIntegration, + AthenaIntegrationDict, BaselineEbsBandwidthMbps, + BaselineEbsBandwidthMbpsDict, BaselineEbsBandwidthMbpsRequest, + BaselineEbsBandwidthMbpsRequestDict, BaselinePerformanceFactors, + BaselinePerformanceFactorsDict, BaselinePerformanceFactorsRequest, + BaselinePerformanceFactorsRequestDict, BlockDeviceMapping, CapacityReservationSpecificationResponse, ClientData, + ClientDataDict, ConnectionTrackingSpecificationRequest, + ConnectionTrackingSpecificationRequestDict, ConnectionTrackingSpecificationResponse, ConversionTask, CpuOptions, CreationDateCondition, CreationDateConditionRequest, + CreationDateConditionRequestDict, DeprecationTimeCondition, DeprecationTimeConditionRequest, + DeprecationTimeConditionRequestDict, DiskImage, DiskImageDescription, DiskImageDetail, + DiskImageDetailDict, + DiskImageDict, DiskImageVolumeDescription, DiskInfo, EbsInfo, EbsInstanceBlockDevice, EbsInstanceBlockDeviceSpecification, + EbsInstanceBlockDeviceSpecificationDict, EbsStatusSummary, ElasticGpuAssociation, ElasticInferenceAcceleratorAssociation, EnaSrdSpecificationRequest, + EnaSrdSpecificationRequestDict, EnclaveOptions, FpgaInfo, GpuInfo, @@ -49,52 +68,80 @@ from ..models import ( HibernationOptions, IamInstanceProfile, Ipv4PrefixSpecificationRequest, + Ipv4PrefixSpecificationRequestDict, Ipv6PrefixSpecificationRequest, + Ipv6PrefixSpecificationRequestDict, Ipv6Range, + Ipv6RangeDict, LicenseConfiguration, MediaAcceleratorInfo, MemoryGiBPerVCpu, + MemoryGiBPerVCpuDict, MemoryGiBPerVCpuRequest, + MemoryGiBPerVCpuRequestDict, MemoryInfo, MemoryMiB, + MemoryMiBDict, MemoryMiBRequest, + MemoryMiBRequestDict, Monitoring, NetworkBandwidthGbps, + NetworkBandwidthGbpsDict, NetworkBandwidthGbpsRequest, + NetworkBandwidthGbpsRequestDict, NetworkInfo, NetworkInterfaceCount, + NetworkInterfaceCountDict, NetworkInterfaceCountRequest, + NetworkInterfaceCountRequestDict, NeuronInfo, NitroTpmInfo, OperatorResponse, PerformanceStatusSummary, Placement, + PlacementDict, PlacementGroupInfo, PrefixListId, + PrefixListIdDict, PrivateDnsNameOptionsResponse, PrivateIpAddressSpecification, + PrivateIpAddressSpecificationDict, ProcessorInfo, ProductCode, RequestIpamResourceTag, + RequestIpamResourceTagDict, ScanResultCondition, ScanResultConditionRequest, + ScanResultConditionRequestDict, ScanResults, SnapshotDetail, SnapshotDiskContainer, + SnapshotDiskContainerDict, SnapshotTaskDetail, SpotMarketOptions, + SpotMarketOptionsDict, StateReason, Tag, + TagDict, TagSpecification, + TagSpecificationDict, TotalLocalStorageGB, + TotalLocalStorageGBDict, TotalLocalStorageGBRequest, + TotalLocalStorageGBRequestDict, UserBucket, + UserBucketDict, UserData, + UserDataDict, UserIdGroupPair, + UserIdGroupPairDict, VCpuCountRange, + VCpuCountRangeDict, VCpuCountRangeRequest, + VCpuCountRangeRequestDict, VCpuInfo, VolumeDetail, + VolumeDetailDict, _SerdeShape, ) @@ -110,6 +157,17 @@ class IcmpTypeCode(_SerdeShape): type: int | None = ... """The ICMP type. A value of -1 means all types.""" +class IcmpTypeCodeDict(TypedDict, total=False): + """Dictionary form of `IcmpTypeCode`.""" + + code: int | None + """ + The ICMP code. A value of -1 means all codes for the specified ICMP + type. + """ + type: int | None + """The ICMP type. A value of -1 means all types.""" + @dataclass(kw_only=True) class IdFormat(_SerdeShape): """Describes the ID format for a resource.""" @@ -146,6 +204,12 @@ class IKEVersionsRequestListValue(_SerdeShape): value: str | None = ... """The IKE version.""" +class IKEVersionsRequestListValueDict(TypedDict, total=False): + """Dictionary form of `IKEVersionsRequestListValue`.""" + + value: str | None + """The IKE version.""" + @dataclass(kw_only=True) class Image(_SerdeShape): """Describes an image.""" @@ -560,6 +624,88 @@ class ImageCriterionRequest(_SerdeShape): days since Amazon Inspector reported a fix as available. """ +class ImageCriterionRequestDict(TypedDict, total=False): + """Dictionary form of `ImageCriterionRequest`.""" + + image_providers: Sequence[str] | None + """ + The image providers whose images are allowed. + + Possible values: + + - `amazon`: Allow AMIs created by Amazon or verified providers. + + - `aws-marketplace`: Allow AMIs created by verified providers in the + Amazon Web Services Marketplace. + + - `aws-backup-vault`: Allow AMIs created by Amazon Web Services Backup. + + - 12-digit account ID: Allow AMIs created by the specified accounts. One + or more account IDs can be specified. + + - `none`: Allow AMIs created by your own account only. When `none` is + specified, no other values can be specified. + + Maximum: 200 values + """ + marketplace_product_codes: Sequence[str] | None + """ + The Amazon Web Services Marketplace product codes for allowed images. + + Length: 1-25 characters + + Valid characters: Letters (`A–Z, a–z`) and numbers (`0–9`) + + Maximum: 50 values + """ + image_names: Sequence[str] | None + """ + The names of allowed images. Names can include wildcards (`?` and `*`). + + Length: 1--128 characters. With `?`, the minimum is 3 characters. + + Valid characters: + + - Letters: `A–Z, a–z` + + - Numbers: `0–9` + + - Special characters: `( ) [ ] . / - ' @ _ * ?` + + - Spaces + + Maximum: 50 values + """ + deprecation_time_condition: ( + DeprecationTimeConditionRequest | DeprecationTimeConditionRequestDict | None + ) + """The maximum period since deprecation for allowed images.""" + creation_date_condition: ( + CreationDateConditionRequest | CreationDateConditionRequestDict | None + ) + """The maximum age for allowed images.""" + image_watermarks: ( + Sequence[ImageWatermarkFilterRequest | ImageWatermarkFilterRequestDict] | None + ) + """ + The watermark criteria that an AMI must match to be allowed. An AMI is + allowed if it carries at least one watermark that satisfies an + ImageWatermarkFilter. A watermark satisfies a filter when all specified + fields in the ImageWatermarkFilter match the corresponding values on the + watermark of the AMI. + + Maximum: 50 values + """ + scan_result_condition: ( + ScanResultConditionRequest | ScanResultConditionRequestDict | None + ) + """ + The Amazon Inspector scan-result criteria that an AMI must meet to be + allowed. The criteria can limit the highest finding severity, the number + of days since Amazon Inspector last scanned the AMI, and the number of + days since Amazon Inspector reported a fix as available. + """ + @dataclass(kw_only=True) class ImageDiskContainer(_SerdeShape): """Describes the disk container object for an import image task.""" @@ -584,6 +730,29 @@ class ImageDiskContainer(_SerdeShape): user_bucket: UserBucket | None = ... """The S3 bucket for the disk image.""" +class ImageDiskContainerDict(TypedDict, total=False): + """Dictionary form of `ImageDiskContainer`.""" + + description: str | None + """The description of the disk image.""" + device_name: str | None + """The block device mapping for the disk.""" + format: str | None + """ + The format of the disk image being imported. + + Valid values: `OVA` | `VHD` | `VHDX` | `VMDK` | `RAW` + """ + snapshot_id: str | None + """The ID of the EBS snapshot to be used for importing the snapshot.""" + url: str | None + """ + The URL to the Amazon S3-based disk image being imported. The URL can + either be a https URL (https://..) or an Amazon S3 URL (s3://..) + """ + user_bucket: UserBucket | UserBucketDict | None + """The S3 bucket for the disk image.""" + @dataclass(kw_only=True) class ImageFinding(_SerdeShape): """Describes an Amazon Inspector vulnerability finding for an AMI.""" @@ -854,6 +1023,25 @@ class ImageUsageResourceTypeOptionRequest(_SerdeShape): Default: `20` """ +class ImageUsageResourceTypeOptionRequestDict(TypedDict, total=False): + """Dictionary form of `ImageUsageResourceTypeOptionRequest`.""" + + option_name: str | None + """ + The name of the option. + + Valid value: `version-depth` - The number of launch template versions to + check. + """ + option_values: Sequence[str] | None + """ + A value for the specified option. + + Valid values: Integers between `1` and `10000` + + Default: `20` + """ + @dataclass(kw_only=True) class ImageUsageResourceTypeRequest(_SerdeShape): """ @@ -873,6 +1061,27 @@ class ImageUsageResourceTypeRequest(_SerdeShape): `ResourceType` is `ec2:LaunchTemplate`. """ +class ImageUsageResourceTypeRequestDict(TypedDict, total=False): + """Dictionary form of `ImageUsageResourceTypeRequest`.""" + + resource_type: str | None + """ + The resource type. + + Valid values: `ec2:Instance` | `ec2:LaunchTemplate` + """ + resource_type_options: ( + Sequence[ + ImageUsageResourceTypeOptionRequest + | ImageUsageResourceTypeOptionRequestDict + ] + | None + ) + """ + The options that affect the scope of the report. Valid only when + `ResourceType` is `ec2:LaunchTemplate`. + """ + @dataclass(kw_only=True) class ImageWatermark(_SerdeShape): """Describes a watermark attached to an AMI.""" @@ -929,6 +1138,31 @@ class ImageWatermarkFilterRequest(_SerdeShape): Constraints: Minimum value of 0. Maximum value of 2147483647. """ +class ImageWatermarkFilterRequestDict(TypedDict, total=False): + """Dictionary form of `ImageWatermarkFilterRequest`.""" + + watermark_key: str | None + """The `accountId:name` of the watermark. Supports wildcards (`*`, `?`).""" + source_image_region: str | None + """ + The Region where the watermark was originally created. Supports + wildcards (`*`, `?`). + """ + maximum_days_since_source_image_created: int | None + """ + The maximum number of days that have elapsed since the source image was + created. + + Constraints: Minimum value of 0. Maximum value of 2147483647. + """ + maximum_days_since_watermark_created: int | None + """ + The maximum number of days that have elapsed since the watermark was + attached to the image. + + Constraints: Minimum value of 0. Maximum value of 2147483647. + """ + @dataclass(kw_only=True) class ImageWatermarkFilterResponse(_SerdeShape): """ @@ -989,6 +1223,29 @@ class ImportClientVpnClientCertificateRevocationListInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ImportClientVpnClientCertificateRevocationListInputDict(TypedDict, total=False): + """Dictionary form of `ImportClientVpnClientCertificateRevocationListInput`.""" + + client_vpn_endpoint_id: Required[str] + """ + The ID of the Client VPN endpoint to which the client certificate + revocation list applies. + """ + certificate_revocation_list: Required[str] + """ + The client certificate revocation list file. For more information, see + [Generate a Client Certificate Revocation + List](https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-working-certificates.html#cvpn-working-certificates-generate) + in the *Client VPN Administrator Guide*. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ImportClientVpnClientCertificateRevocationListOutput(_SerdeShape): """ @@ -1133,103 +1390,241 @@ class ImportImageInput(_SerdeShape): in the *VM Import/Export User Guide*. """ -@dataclass(kw_only=True) -class ImportImageLicenseConfigurationRequest(_SerdeShape): - """The request information of license configurations.""" - - license_configuration_arn: str | None = ... - """The ARN of a license configuration.""" - -@dataclass(kw_only=True) -class ImportImageLicenseConfigurationResponse(_SerdeShape): - """The response information for license configurations.""" - - license_configuration_arn: str | None = ... - """The ARN of a license configuration.""" - -@dataclass(kw_only=True) -class ImportImageOutput(_SerdeShape): - """Dataclass for ImportImageOutput structure.""" +class ImportImageInputDict(TypedDict, total=False): + """Dictionary form of `ImportImageInput`.""" - architecture: str | None = ... - """The architecture of the virtual machine.""" - description: str | None = ... - """A description of the import task.""" - encrypted: bool | None = ... - """Indicates whether the AMI is encrypted.""" - hypervisor: str | None = ... - """The target hypervisor of the import task.""" - image_id: str | None = ... - """The ID of the Amazon Machine Image (AMI) created by the import task.""" - import_task_id: str | None = ... - """The task ID of the import image task.""" - kms_key_id: str | None = ... + architecture: str | None """ - The identifier for the symmetric KMS key that was used to create the - encrypted AMI. + The architecture of the virtual machine. + + Valid values: `i386` | `x86_64` """ - license_type: str | None = ... - """The license type of the virtual machine.""" - platform: str | None = ... - """The operating system of the virtual machine.""" - progress: str | None = ... - """The progress of the task.""" - snapshot_details: list[SnapshotDetail] | None = ... - """Information about the snapshots.""" - status: str | None = ... - """A brief status of the task.""" - status_message: str | None = ... - """A detailed status message of the import task.""" - license_specifications: list[ImportImageLicenseConfigurationResponse] | None = ... - """The ARNs of the license configurations.""" - tags: list[Tag] | None = ... - """Any tags assigned to the import image task.""" - usage_operation: str | None = ... - """The usage operation value.""" - response_metadata: ResponseMetadata = ... + client_data: ClientData | ClientDataDict | None + """The client-specific data.""" + client_token: str | None + """The token to enable idempotency for VM import requests.""" + description: str | None + """A description string for the import image task.""" + disk_containers: Sequence[ImageDiskContainer | ImageDiskContainerDict] | None + """Information about the disk containers.""" + dry_run: bool | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - -@dataclass(kw_only=True) -class ImportImageTask(_SerdeShape): - """Describes an import image task.""" - - architecture: str | None = ... + encrypted: bool | None """ - The architecture of the virtual machine. - - Valid values: `i386` | `x86_64` | `arm64` + Specifies whether the destination AMI of the imported image should be + encrypted. The default KMS key for EBS is used unless you specify a + non-default KMS key using `KmsKeyId`. For more information, see [Amazon + EBS + Encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) + in the *Amazon Elastic Compute Cloud User Guide*. """ - description: str | None = ... - """A description of the import task.""" - encrypted: bool | None = ... - """Indicates whether the image is encrypted.""" - hypervisor: str | None = ... + hypervisor: str | None """ - The target hypervisor for the import task. + The target hypervisor platform. Valid values: `xen` """ - image_id: str | None = ... - """ - The ID of the Amazon Machine Image (AMI) of the imported virtual - machine. - """ - import_task_id: str | None = ... - """The ID of the import image task.""" - kms_key_id: str | None = ... - """ - The identifier for the KMS key that was used to create the encrypted - image. + kms_key_id: str | None """ - license_type: str | None = ... - """The license type of the virtual machine.""" - platform: str | None = ... - """The description string for the import image task.""" + An identifier for the symmetric KMS key to use when creating the + encrypted AMI. This parameter is only required if you want to use a + non-default KMS key; if this parameter is not specified, the default KMS + key for EBS is used. If a `KmsKeyId` is specified, the `Encrypted` flag + must also be set. + + The KMS key identifier may be provided in any of the following formats: + + - Key ID + + - Key alias + + - ARN using key ID. The ID ARN contains the `arn:aws:kms` namespace, + followed by the Region of the key, the Amazon Web Services account ID + of the key owner, the `key` namespace, and then the key ID. For + example, + arn:aws:kms:*us-east-1*:*012345678910*:key/*abcd1234-a123-456a-a12b-a123b4cd56ef*. + + - ARN using key alias. The alias ARN contains the `arn:aws:kms` + namespace, followed by the Region of the key, the Amazon Web Services + account ID of the key owner, the `alias` namespace, and then the key + alias. For example, + arn:aws:kms:*us-east-1*:*012345678910*:alias/*ExampleAlias*. + + Amazon Web Services parses `KmsKeyId` asynchronously, meaning that the + action you call may appear to complete even though you provided an + invalid identifier. This action will eventually report failure. + + The specified KMS key must exist in the Region that the AMI is being + copied to. + + Amazon EBS does not support asymmetric KMS keys. + """ + license_type: str | None + """ + The license type to be used for the Amazon Machine Image (AMI) after + importing. + + Specify `AWS` to replace the source-system license with an Amazon Web + Services license or `BYOL` to retain the source-system license. Leaving + this parameter undefined is the same as choosing `AWS` when importing a + Windows Server operating system, and the same as choosing `BYOL` when + importing a Windows client operating system (such as Windows 10) or a + Linux operating system. + + To use `BYOL`, you must have existing licenses with rights to use these + licenses in a third party cloud, such as Amazon Web Services. For more + information, see + [Prerequisites](https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image) + in the VM Import/Export User Guide. + """ + platform: str | None + """ + The operating system of the virtual machine. If you import a VM that is + compatible with Unified Extensible Firmware Interface (UEFI) using an + EBS snapshot, you must specify a value for the platform. + + Valid values: `Windows` | `Linux` + """ + role_name: str | None + """ + The name of the role to use when not using the default role, + 'vmimport'. + """ + license_specifications: ( + Sequence[ + ImportImageLicenseConfigurationRequest + | ImportImageLicenseConfigurationRequestDict + ] + | None + ) + """The ARNs of the license configurations.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the import image task during creation.""" + usage_operation: str | None + """ + The usage operation value. For more information, see [Licensing + options](https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#prerequisites) + in the *VM Import/Export User Guide*. + """ + boot_mode: str | None + """ + The boot mode of the virtual machine. + + Note: + The `uefi-preferred` boot mode isn't supported for importing images. + For more information, see [Boot + modes](https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-boot-modes) + in the *VM Import/Export User Guide*. + """ + +@dataclass(kw_only=True) +class ImportImageLicenseConfigurationRequest(_SerdeShape): + """The request information of license configurations.""" + + license_configuration_arn: str | None = ... + """The ARN of a license configuration.""" + +class ImportImageLicenseConfigurationRequestDict(TypedDict, total=False): + """Dictionary form of `ImportImageLicenseConfigurationRequest`.""" + + license_configuration_arn: str | None + """The ARN of a license configuration.""" + +@dataclass(kw_only=True) +class ImportImageLicenseConfigurationResponse(_SerdeShape): + """The response information for license configurations.""" + + license_configuration_arn: str | None = ... + """The ARN of a license configuration.""" + +@dataclass(kw_only=True) +class ImportImageOutput(_SerdeShape): + """Dataclass for ImportImageOutput structure.""" + + architecture: str | None = ... + """The architecture of the virtual machine.""" + description: str | None = ... + """A description of the import task.""" + encrypted: bool | None = ... + """Indicates whether the AMI is encrypted.""" + hypervisor: str | None = ... + """The target hypervisor of the import task.""" + image_id: str | None = ... + """The ID of the Amazon Machine Image (AMI) created by the import task.""" + import_task_id: str | None = ... + """The task ID of the import image task.""" + kms_key_id: str | None = ... + """ + The identifier for the symmetric KMS key that was used to create the + encrypted AMI. + """ + license_type: str | None = ... + """The license type of the virtual machine.""" + platform: str | None = ... + """The operating system of the virtual machine.""" + progress: str | None = ... + """The progress of the task.""" + snapshot_details: list[SnapshotDetail] | None = ... + """Information about the snapshots.""" + status: str | None = ... + """A brief status of the task.""" + status_message: str | None = ... + """A detailed status message of the import task.""" + license_specifications: list[ImportImageLicenseConfigurationResponse] | None = ... + """The ARNs of the license configurations.""" + tags: list[Tag] | None = ... + """Any tags assigned to the import image task.""" + usage_operation: str | None = ... + """The usage operation value.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ImportImageTask(_SerdeShape): + """Describes an import image task.""" + + architecture: str | None = ... + """ + The architecture of the virtual machine. + + Valid values: `i386` | `x86_64` | `arm64` + """ + description: str | None = ... + """A description of the import task.""" + encrypted: bool | None = ... + """Indicates whether the image is encrypted.""" + hypervisor: str | None = ... + """ + The target hypervisor for the import task. + + Valid values: `xen` + """ + image_id: str | None = ... + """ + The ID of the Amazon Machine Image (AMI) of the imported virtual + machine. + """ + import_task_id: str | None = ... + """The ID of the import image task.""" + kms_key_id: str | None = ... + """ + The identifier for the KMS key that was used to create the encrypted + image. + """ + license_type: str | None = ... + """The license type of the virtual machine.""" + platform: str | None = ... + """The description string for the import image task.""" progress: str | None = ... """The percentage of progress of the import image task.""" snapshot_details: list[SnapshotDetail] | None = ... @@ -1270,6 +1665,27 @@ class ImportInstanceInput(_SerdeShape): platform: str | None = ... """The instance operating system.""" +class ImportInstanceInputDict(TypedDict, total=False): + """Dictionary form of `ImportInstanceInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + description: str | None + """A description for the instance being imported.""" + launch_specification: ( + ImportInstanceLaunchSpecification | ImportInstanceLaunchSpecificationDict | None + ) + """The launch specification.""" + disk_images: Sequence[DiskImage | DiskImageDict] | None + """The disk image.""" + platform: Required[str] + """The instance operating system.""" + @dataclass(kw_only=True) class ImportInstanceLaunchSpecification(_SerdeShape): """Describes the launch specification for VM import.""" @@ -1309,6 +1725,44 @@ class ImportInstanceLaunchSpecification(_SerdeShape): subnet. """ +class ImportInstanceLaunchSpecificationDict(TypedDict, total=False): + """Dictionary form of `ImportInstanceLaunchSpecification`.""" + + architecture: str | None + """The architecture of the instance.""" + group_names: Sequence[str] | None + """The security group names.""" + group_ids: Sequence[str] | None + """The security group IDs.""" + additional_info: str | None + """Reserved.""" + user_data: UserData | UserDataDict | None + """The Base64-encoded user data to make available to the instance.""" + instance_type: str | None + """ + The instance type. For more information about the instance types that + you can import, see [Instance + Types](https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-instance-types) + in the VM Import/Export User Guide. + """ + placement: Placement | PlacementDict | None + """The placement information for the instance.""" + monitoring: bool | None + """Indicates whether monitoring is enabled.""" + subnet_id: str | None + """[EC2-VPC] The ID of the subnet in which to launch the instance.""" + instance_initiated_shutdown_behavior: str | None + """ + Indicates whether an instance stops or terminates when you initiate + shutdown from the instance (using the operating system command for + system shutdown). + """ + private_ip_address: str | None + """ + [EC2-VPC] An available IP address from the IP address range of the + subnet. + """ + @dataclass(kw_only=True) class ImportInstanceOutput(_SerdeShape): """Dataclass for ImportInstanceOutput structure.""" @@ -1378,6 +1832,23 @@ class ImportKeyPairInput(_SerdeShape): public_key_material: bytes | None = ... """The public key.""" +class ImportKeyPairInputDict(TypedDict, total=False): + """Dictionary form of `ImportKeyPairInput`.""" + + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the imported key pair.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + key_name: Required[str] + """A unique name for the key pair.""" + public_key_material: Required[bytes] + """The public key.""" + @dataclass(kw_only=True) class ImportKeyPairOutput(_SerdeShape): """Dataclass for ImportKeyPairOutput structure.""" @@ -1476,31 +1947,101 @@ class ImportSnapshotInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the import snapshot task during creation.""" -@dataclass(kw_only=True) -class ImportSnapshotOutput(_SerdeShape): - """Dataclass for ImportSnapshotOutput structure.""" +class ImportSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `ImportSnapshotInput`.""" - description: str | None = ... - """A description of the import snapshot task.""" - import_task_id: str | None = ... - """The ID of the import snapshot task.""" - snapshot_task_detail: SnapshotTaskDetail | None = ... - """Information about the import snapshot task.""" - tags: list[Tag] | None = ... - """Any tags assigned to the import snapshot task.""" - response_metadata: ResponseMetadata = ... + client_data: ClientData | ClientDataDict | None + """The client-specific data.""" + client_token: str | None + """Token to enable idempotency for VM import requests.""" + description: str | None + """The description string for the import snapshot task.""" + disk_container: SnapshotDiskContainer | SnapshotDiskContainerDict | None + """Information about the disk container.""" + dry_run: bool | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - -@dataclass(kw_only=True) -class ImportSnapshotTask(_SerdeShape): - """Describes an import snapshot task.""" - - description: str | None = ... + encrypted: bool | None + """ + Specifies whether the destination snapshot of the imported image should + be encrypted. The default KMS key for EBS is used unless you specify a + non-default KMS key using `KmsKeyId`. For more information, see [Amazon + EBS + Encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) + in the *Amazon Elastic Compute Cloud User Guide*. + """ + kms_key_id: str | None + """ + An identifier for the symmetric KMS key to use when creating the + encrypted snapshot. This parameter is only required if you want to use a + non-default KMS key; if this parameter is not specified, the default KMS + key for EBS is used. If a `KmsKeyId` is specified, the `Encrypted` flag + must also be set. + + The KMS key identifier may be provided in any of the following formats: + + - Key ID + + - Key alias + + - ARN using key ID. The ID ARN contains the `arn:aws:kms` namespace, + followed by the Region of the key, the Amazon Web Services account ID + of the key owner, the `key` namespace, and then the key ID. For + example, + arn:aws:kms:*us-east-1*:*012345678910*:key/*abcd1234-a123-456a-a12b-a123b4cd56ef*. + + - ARN using key alias. The alias ARN contains the `arn:aws:kms` + namespace, followed by the Region of the key, the Amazon Web Services + account ID of the key owner, the `alias` namespace, and then the key + alias. For example, + arn:aws:kms:*us-east-1*:*012345678910*:alias/*ExampleAlias*. + + Amazon Web Services parses `KmsKeyId` asynchronously, meaning that the + action you call may appear to complete even though you provided an + invalid identifier. This action will eventually report failure. + + The specified KMS key must exist in the Region that the snapshot is + being copied to. + + Amazon EBS does not support asymmetric KMS keys. + """ + role_name: str | None + """ + The name of the role to use when not using the default role, + 'vmimport'. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the import snapshot task during creation.""" + +@dataclass(kw_only=True) +class ImportSnapshotOutput(_SerdeShape): + """Dataclass for ImportSnapshotOutput structure.""" + + description: str | None = ... + """A description of the import snapshot task.""" + import_task_id: str | None = ... + """The ID of the import snapshot task.""" + snapshot_task_detail: SnapshotTaskDetail | None = ... + """Information about the import snapshot task.""" + tags: list[Tag] | None = ... + """Any tags assigned to the import snapshot task.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ImportSnapshotTask(_SerdeShape): + """Describes an import snapshot task.""" + + description: str | None = ... """A description of the import snapshot task.""" import_task_id: str | None = ... """The ID of the import snapshot task.""" @@ -1541,6 +2082,37 @@ class ImportVolumeInput(_SerdeShape): volume: VolumeDetail | None = ... """The volume size.""" +class ImportVolumeInputDict(TypedDict, total=False): + """Dictionary form of `ImportVolumeInput`.""" + + availability_zone_id: str | None + """ + The ID of the Availability Zone for the resulting EBS volume. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified, but + not both. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + availability_zone: str | None + """ + The Availability Zone for the resulting EBS volume. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified, but + not both. + """ + image: Required[DiskImageDetail | DiskImageDetailDict] + """The disk image.""" + description: str | None + """A description of the volume.""" + volume: Required[VolumeDetail | VolumeDetailDict] + """The volume size.""" + @dataclass(kw_only=True) class ImportVolumeOutput(_SerdeShape): """Dataclass for ImportVolumeOutput structure.""" @@ -2019,6 +2591,28 @@ class InstanceBlockDeviceMappingSpecification(_SerdeShape): no_device: str | None = ... """Suppresses the specified device included in the block device mapping.""" +class InstanceBlockDeviceMappingSpecificationDict(TypedDict, total=False): + """Dictionary form of `InstanceBlockDeviceMappingSpecification`.""" + + device_name: str | None + """ + The device name. For available device names, see [Device names for + volumes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html). + """ + ebs: ( + EbsInstanceBlockDeviceSpecification + | EbsInstanceBlockDeviceSpecificationDict + | None + ) + """ + Parameters used to automatically set up EBS volumes when the instance is + launched. + """ + virtual_name: str | None + """The virtual device name.""" + no_device: str | None + """Suppresses the specified device included in the block device mapping.""" + class InstanceBootModeValues(UnknownEnumMixin, StrEnum): LEGACY_BIOS = "legacy-bios" UEFI = "uefi" @@ -2117,6 +2711,21 @@ class InstanceCreditSpecificationRequest(_SerdeShape): credit option. """ +class InstanceCreditSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceCreditSpecificationRequest`.""" + + instance_id: Required[str] + """The ID of the instance.""" + cpu_credits: str | None + """ + The credit option for CPU usage of the instance. + + Valid values: `standard` | `unlimited` + + T3 instances with `host` tenancy do not support the `unlimited` CPU + credit option. + """ + @dataclass(kw_only=True) class InstanceEventWindow(_SerdeShape): """The event window.""" @@ -2163,6 +2772,28 @@ class InstanceEventWindowAssociationRequest(_SerdeShape): dedicated_host_ids: list[str] | None = ... """The IDs of the Dedicated Hosts to associate with the event window.""" +class InstanceEventWindowAssociationRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceEventWindowAssociationRequest`.""" + + instance_ids: Sequence[str] | None + """ + The IDs of the instances to associate with the event window. If the + instance is on a Dedicated Host, you can't specify the Instance ID + parameter; you must use the Dedicated Host ID parameter. + """ + instance_tags: Sequence[Tag | TagDict] | None + """ + The instance tags to associate with the event window. Any instances + associated with the tags will be associated with the event window. + + Note that while you can't create tag keys beginning with `aws:`, you + can specify existing Amazon Web Services managed tag keys (with the + `aws:` prefix) when specifying them as targets to associate with the + event window. + """ + dedicated_host_ids: Sequence[str] | None + """The IDs of the Dedicated Hosts to associate with the event window.""" + @dataclass(kw_only=True) class InstanceEventWindowAssociationTarget(_SerdeShape): """One or more targets associated with the event window.""" @@ -2196,6 +2827,19 @@ class InstanceEventWindowDisassociationRequest(_SerdeShape): dedicated_host_ids: list[str] | None = ... """The IDs of the Dedicated Hosts to disassociate from the event window.""" +class InstanceEventWindowDisassociationRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceEventWindowDisassociationRequest`.""" + + instance_ids: Sequence[str] | None + """The IDs of the instances to disassociate from the event window.""" + instance_tags: Sequence[Tag | TagDict] | None + """ + The instance tags to disassociate from the event window. Any instances + associated with the tags will be disassociated from the event window. + """ + dedicated_host_ids: Sequence[str] | None + """The IDs of the Dedicated Hosts to disassociate from the event window.""" + class InstanceEventWindowState(UnknownEnumMixin, StrEnum): CREATING = "creating" DELETING = "deleting" @@ -2243,6 +2887,18 @@ class InstanceEventWindowTimeRangeRequest(_SerdeShape): end_hour: int | None = ... """The hour when the time range ends.""" +class InstanceEventWindowTimeRangeRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceEventWindowTimeRangeRequest`.""" + + start_week_day: str | None + """The day on which the time range begins.""" + start_hour: int | None + """The hour when the time range begins.""" + end_week_day: str | None + """The day on which the time range ends.""" + end_hour: int | None + """The hour when the time range ends.""" + @dataclass(kw_only=True) class InstanceExportDetails(_SerdeShape): """Describes an instance to export.""" @@ -2328,6 +2984,21 @@ class InstanceIpv6Address(_SerdeShape): [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html). """ +class InstanceIpv6AddressDict(TypedDict, total=False): + """Dictionary form of `InstanceIpv6Address`.""" + + ipv6_address: str | None + """The IPv6 address.""" + is_primary_ipv6: bool | None + """ + Determines if an IPv6 address associated with a network interface is the + primary IPv6 address. When you enable an IPv6 GUA address to be a + primary IPv6, the first IPv6 GUA will be made the primary IPv6 address + until the instance is terminated or the network interface is detached. + For more information, see + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html). + """ + @dataclass(kw_only=True) class InstanceIpv6AddressRequest(_SerdeShape): """Describes an IPv6 address.""" @@ -2335,6 +3006,12 @@ class InstanceIpv6AddressRequest(_SerdeShape): ipv6_address: str | None = ... """The IPv6 address.""" +class InstanceIpv6AddressRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceIpv6AddressRequest`.""" + + ipv6_address: str | None + """The IPv6 address.""" + @dataclass(kw_only=True) class InstanceIpv6Prefix(_SerdeShape): """Information about an IPv6 prefix.""" @@ -2393,6 +3070,16 @@ class InstanceMaintenanceOptionsRequest(_SerdeShape): recovery](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery). """ +class InstanceMaintenanceOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceMaintenanceOptionsRequest`.""" + + auto_recovery: str | None + """ + Disables the automatic recovery behavior of your instance or sets it to + default. For more information, see [Simplified automatic + recovery](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery). + """ + @dataclass(kw_only=True) class InstanceMarketOptionsRequest(_SerdeShape): """Describes the market (purchasing) option for the instances.""" @@ -2402,6 +3089,14 @@ class InstanceMarketOptionsRequest(_SerdeShape): spot_options: SpotMarketOptions | None = ... """The options for Spot Instances.""" +class InstanceMarketOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceMarketOptionsRequest`.""" + + market_type: str | None + """The market type.""" + spot_options: SpotMarketOptions | SpotMarketOptionsDict | None + """The options for Spot Instances.""" + class InstanceMatchCriteria(UnknownEnumMixin, StrEnum): OPEN = "open" TARGETED = "targeted" @@ -2526,6 +3221,67 @@ class InstanceMetadataOptionsRequest(_SerdeShape): Default: `disabled` """ +class InstanceMetadataOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceMetadataOptionsRequest`.""" + + http_tokens: str | None + """ + Indicates whether IMDSv2 is required. + + - `optional` - IMDSv2 is optional, which means that you can use either + IMDSv2 or IMDSv1. + + - `required` - IMDSv2 is required, which means that IMDSv1 is disabled, + and you must use IMDSv2. + + Default: + + - If the value of `ImdsSupport` for the Amazon Machine Image (AMI) for + your instance is `v2.0` and the account level default is set to + `no-preference`, the default is `required`. + + - If the value of `ImdsSupport` for the Amazon Machine Image (AMI) for + your instance is `v2.0`, but the account level default is set to + `V1 or V2`, the default is `optional`. + + The default value can also be affected by other combinations of + parameters. For more information, see [Order of precedence for instance + metadata + options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence) + in the *Amazon EC2 User Guide*. + """ + http_put_response_hop_limit: int | None + """ + The maximum number of hops that the metadata token can travel. + + Possible values: Integers from 1 to 64 + """ + http_endpoint: str | None + """ + Enables or disables the HTTP metadata endpoint on your instances. + + If you specify a value of `disabled`, you cannot access your instance + metadata. + + Default: `enabled` + """ + http_protocol_ipv6: str | None + """ + Enables or disables the IPv6 endpoint for the instance metadata service. + + Default: `disabled` + """ + instance_metadata_tags: str | None + """ + Set to `enabled` to allow access to instance tags from the instance + metadata. Set to `disabled` to turn off access to instance tags from the + instance metadata. For more information, see [View tags for your EC2 + instances using instance + metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-tags-in-IMDS.html). + + Default: `disabled` + """ + @dataclass(kw_only=True) class InstanceMetadataOptionsResponse(_SerdeShape): """The metadata options for the instance.""" @@ -2883,76 +3639,1131 @@ class InstanceNetworkInterfaceSpecification(_SerdeShape): ena_queue_count: int | None = ... """The number of ENA queues to be created with the instance.""" -@dataclass(kw_only=True) -class InstanceNetworkPerformanceOptions(_SerdeShape): - """ - With network performance options, you can adjust your bandwidth - preferences to meet the needs of the workload that runs on your - instance. - """ +class InstanceNetworkInterfaceSpecificationDict(TypedDict, total=False): + """Dictionary form of `InstanceNetworkInterfaceSpecification`.""" + + associate_public_ip_address: bool | None + """ + Indicates whether to assign a public IPv4 address to an instance you + launch in a VPC. The public IP address can only be assigned to a network + interface for eth0, and can only be assigned to a new network interface, + not an existing one. You cannot specify more than one network interface + in the request. If launching into a default subnet, the default value is + `true`. + + Amazon Web Services charges for all public IPv4 addresses, including + public IPv4 addresses associated with running instances and Elastic IP + addresses. For more information, see the *Public IPv4 Address* tab on + the [Amazon VPC pricing page](http://aws.amazon.com/vpc/pricing/). + """ + delete_on_termination: bool | None + """ + If set to `true`, the interface is deleted when the instance is + terminated. You can specify `true` only if creating a new network + interface when launching an instance. + """ + description: str | None + """ + The description of the network interface. Applies only if creating a + network interface when launching an instance. + """ + device_index: int | None + """ + The position of the network interface in the attachment order. A primary + network interface has a device index of 0. + + If you specify a network interface when launching an instance, you must + specify the device index. + """ + groups: Sequence[str] | None + """ + The IDs of the security groups for the network interface. Applies only + if creating a network interface when launching an instance. + """ + ipv6_address_count: int | None + """ + A number of IPv6 addresses to assign to the network interface. Amazon + EC2 chooses the IPv6 addresses from the range of the subnet. You cannot + specify this option and the option to assign specific IPv6 addresses in + the same request. You can specify this option if you've specified a + minimum number of instances to launch. + """ + ipv6_addresses: Sequence[InstanceIpv6Address | InstanceIpv6AddressDict] | None + """ + The IPv6 addresses to assign to the network interface. You cannot + specify this option and the option to assign a number of IPv6 addresses + in the same request. You cannot specify this option if you've specified + a minimum number of instances to launch. + """ + network_interface_id: str | None + """ + The ID of the network interface. + + If you are creating a Spot Fleet, omit this parameter because you can't + specify a network interface ID in a launch specification. + """ + private_ip_address: str | None + """ + The private IPv4 address of the network interface. Applies only if + creating a network interface when launching an instance. You cannot + specify this option if you're launching more than one instance in a + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) + request. + """ + private_ip_addresses: ( + Sequence[PrivateIpAddressSpecification | PrivateIpAddressSpecificationDict] + | None + ) + """ + The private IPv4 addresses to assign to the network interface. Only one + private IPv4 address can be designated as primary. You cannot specify + this option if you're launching more than one instance in a + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) + request. + """ + secondary_private_ip_address_count: int | None + """ + The number of secondary private IPv4 addresses. You can't specify this + parameter and also specify a secondary private IP address using the + `PrivateIpAddress` parameter. + """ + subnet_id: str | None + """ + The ID of the subnet associated with the network interface. Applies only + if creating a network interface when launching an instance. + """ + associate_carrier_ip_address: bool | None + """ + Indicates whether to assign a carrier IP address to the network + interface. + + You can only assign a carrier IP address to a network interface that is + in a subnet in a Wavelength Zone. For more information about carrier IP + addresses, see [Carrier IP + address](https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) + in the *Amazon Web Services Wavelength Developer Guide*. + """ + interface_type: str | None + """ + The type of network interface. + + If you specify `efa-only`, do not assign any IP addresses to the network + interface. EFA-only network interfaces do not support IP addresses. + + Valid values: `interface` | `efa` | `efa-only` + """ + network_card_index: int | None + """ + The index of the network card. Some instance types support multiple + network cards. The primary network interface must be assigned to network + card index 0. The default is network card index 0. + + If you are using + [RequestSpotInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html) + to create Spot Instances, omit this parameter because you can't specify + the network card index when using this API. To specify the network card + index, use + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html). + """ + ipv4_prefixes: ( + Sequence[Ipv4PrefixSpecificationRequest | Ipv4PrefixSpecificationRequestDict] + | None + ) + """ + The IPv4 delegated prefixes to be assigned to the network interface. You + cannot use this option if you use the `Ipv4PrefixCount` option. + """ + ipv4_prefix_count: int | None + """ + The number of IPv4 delegated prefixes to be automatically assigned to + the network interface. You cannot use this option if you use the + `Ipv4Prefix` option. + """ + ipv6_prefixes: ( + Sequence[Ipv6PrefixSpecificationRequest | Ipv6PrefixSpecificationRequestDict] + | None + ) + """ + The IPv6 delegated prefixes to be assigned to the network interface. You + cannot use this option if you use the `Ipv6PrefixCount` option. + """ + ipv6_prefix_count: int | None + """ + The number of IPv6 delegated prefixes to be automatically assigned to + the network interface. You cannot use this option if you use the + `Ipv6Prefix` option. + """ + primary_ipv6: bool | None + """ + The primary IPv6 address of the network interface. When you enable an + IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made + the primary IPv6 address until the instance is terminated or the network + interface is detached. For more information about primary IPv6 + addresses, see + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html). + """ + ena_srd_specification: ( + EnaSrdSpecificationRequest | EnaSrdSpecificationRequestDict | None + ) + """ + Specifies the ENA Express settings for the network interface that's + attached to the instance. + """ + connection_tracking_specification: ( + ConnectionTrackingSpecificationRequest + | ConnectionTrackingSpecificationRequestDict + | None + ) + """ + A security group connection tracking specification that enables you to + set the timeout for connection tracking on an Elastic network interface. + For more information, see [Connection tracking + timeouts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts) + in the *Amazon EC2 User Guide*. + """ + ena_queue_count: int | None + """The number of ENA queues to be created with the instance.""" + +@dataclass(kw_only=True) +class InstanceNetworkPerformanceOptions(_SerdeShape): + """ + With network performance options, you can adjust your bandwidth + preferences to meet the needs of the workload that runs on your + instance. + """ + + bandwidth_weighting: str | None = ... + """ + When you configure network bandwidth weighting, you can boost your + baseline bandwidth for either networking or EBS by up to 25%. The total + available baseline bandwidth for your instance remains the same. The + default option uses the standard bandwidth configuration for your + instance type. + """ + +@dataclass(kw_only=True) +class InstanceNetworkPerformanceOptionsRequest(_SerdeShape): + """ + Configure network performance options for your instance that are geared + towards performance improvements based on the workload that it runs. + """ + + bandwidth_weighting: str | None = ... + """ + Specify the bandwidth weighting option to boost the associated type of + baseline bandwidth, as follows: + + default + + : This option uses the standard bandwidth configuration for your + instance type. + + vpc-1 + + : This option boosts your networking baseline bandwidth and reduces + your EBS baseline bandwidth. + + ebs-1 + + : This option boosts your EBS baseline bandwidth and reduces your + networking baseline bandwidth. + """ + +class InstanceNetworkPerformanceOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceNetworkPerformanceOptionsRequest`.""" + + bandwidth_weighting: str | None + """ + Specify the bandwidth weighting option to boost the associated type of + baseline bandwidth, as follows: + + default + + : This option uses the standard bandwidth configuration for your + instance type. + + vpc-1 + + : This option boosts your networking baseline bandwidth and reduces + your EBS baseline bandwidth. + + ebs-1 + + : This option boosts your EBS baseline bandwidth and reduces your + networking baseline bandwidth. + """ + +@dataclass(kw_only=True) +class InstancePrivateIpAddress(_SerdeShape): + """Describes a private IPv4 address.""" + + association: InstanceNetworkInterfaceAssociation | None = ... + """ + The association information for an Elastic IP address for the network + interface. + """ + primary: bool | None = ... + """ + Indicates whether this IPv4 address is the primary private IP address of + the network interface. + """ + private_dns_name: str | None = ... + """The private IPv4 DNS name.""" + private_ip_address: str | None = ... + """The private IPv4 address of the network interface.""" + +class InstanceRebootMigrationState(UnknownEnumMixin, StrEnum): + DISABLED = "disabled" + DEFAULT = "default" + +@dataclass(kw_only=True) +class InstanceRequirements(_SerdeShape): + """ + The attributes for the instance types. When you specify instance + attributes, Amazon EC2 will identify instance types with these + attributes. + + You must specify `VCpuCount` and `MemoryMiB`. All other attributes are + optional. Any unspecified optional attribute is set to its default. + + When you specify multiple attributes, you get instance types that + satisfy all of the specified attributes. If you specify multiple values + for an attribute, you get instance types that satisfy any of the + specified values. + + To limit the list of instance types from which Amazon EC2 can identify + matching instance types, you can use one of the following parameters, + but not both in the same request: + + - `AllowedInstanceTypes` - The instance types to include in the list. + All other instance types are ignored, even if they match your + specified attributes. + + - `ExcludedInstanceTypes` - The instance types to exclude from the list, + even if they match your specified attributes. + + Note: + If you specify `InstanceRequirements`, you can't specify + `InstanceType`. + + Attribute-based instance type selection is only supported when using + Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If + you plan to use the launch template in the [launch instance + wizard](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance-wizard.html) + or with the [RunInstances + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html), + you can't specify `InstanceRequirements`. + + For more information, see [Create mixed instances group using + attribute-based instance type + selection](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-mixed-instances-group-attribute-based-instance-type-selection.html) + in the *Amazon EC2 Auto Scaling User Guide*, and also [Specify + attributes for instance type selection for EC2 Fleet or Spot + Fleet](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html) + and [Spot placement + score](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html) + in the *Amazon EC2 User Guide*. + """ + + v_cpu_count: VCpuCountRange | None = ... + """The minimum and maximum number of vCPUs.""" + memory_mi_b: MemoryMiB | None = ... + """The minimum and maximum amount of memory, in MiB.""" + cpu_manufacturers: list[str] | None = ... + """ + The CPU manufacturers to include. + + - For instance types with Intel CPUs, specify `intel`. + + - For instance types with AMD CPUs, specify `amd`. + + - For instance types with Amazon Web Services CPUs, specify + `amazon-web-services`. + + - For instance types with Apple CPUs, specify `apple`. + + Note: + Don't confuse the CPU manufacturer with the CPU architecture. Instances + will be launched with a compatible CPU architecture based on the Amazon + Machine Image (AMI) that you specify in your launch template. + + Default: Any manufacturer + """ + memory_gi_b_per_v_cpu: MemoryGiBPerVCpu | None = ... + """ + The minimum and maximum amount of memory per vCPU, in GiB. + + Default: No minimum or maximum limits + """ + excluded_instance_types: list[str] | None = ... + """ + The instance types to exclude. + + You can use strings with one or more wild cards, represented by an + asterisk (`*`), to exclude an instance type, size, or generation. The + following are examples: `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`. + + For example, if you specify `c5*`,Amazon EC2 will exclude the entire C5 + instance family, which includes all C5a and C5n instance types. If you + specify `m5a.*`, Amazon EC2 will exclude all the M5a instance types, but + not the M5n instance types. + + Note: + If you specify `ExcludedInstanceTypes`, you can't specify + `AllowedInstanceTypes`. + + Default: No excluded instance types + """ + instance_generations: list[str] | None = ... + """ + Indicates whether current or previous generation instance types are + included. The current generation instance types are recommended for use. + Current generation instance types are typically the latest two to three + generations in each instance family. For more information, see [Instance + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + in the *Amazon EC2 User Guide*. + + For current generation instance types, specify `current`. + + For previous generation instance types, specify `previous`. + + Default: Current and previous generation instance types + """ + spot_max_price_percentage_over_lowest_price: int | None = ... + """ + [Price protection] The price protection threshold for Spot Instances, + as a percentage higher than an identified Spot price. The identified + Spot price is the Spot price of the lowest priced current generation C, + M, or R instance type with your specified attributes. If no current + generation C, M, or R instance type matches your attributes, then the + identified Spot price is from the lowest priced current generation + instance types, and failing that, from the lowest priced previous + generation instance types that match your attributes. When Amazon EC2 + selects instance types with your attributes, it will exclude instance + types whose Spot price exceeds your specified threshold. + + The parameter accepts an integer, which Amazon EC2 interprets as a + percentage. + + If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the price + protection threshold is applied based on the per-vCPU or per-memory + price instead of the per-instance price. + + This parameter is not supported for + [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) + and + [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html). + + Note: + Only one of `SpotMaxPricePercentageOverLowestPrice` or + `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If + you don't specify either, Amazon EC2 will automatically apply optimal + price protection to consistently select from a wide range of instance + types. To indicate no price protection threshold for Spot Instances, + meaning you want to consider all instance types that match your + attributes, include one of these parameters and specify a high value, + such as `999999`. + + Default: `100` + """ + on_demand_max_price_percentage_over_lowest_price: int | None = ... + """ + [Price protection] The price protection threshold for On-Demand + Instances, as a percentage higher than an identified On-Demand price. + The identified On-Demand price is the price of the lowest priced current + generation C, M, or R instance type with your specified attributes. When + Amazon EC2 selects instance types with your attributes, it will exclude + instance types whose price exceeds your specified threshold. + + The parameter accepts an integer, which Amazon EC2 interprets as a + percentage. + + To turn off price protection, specify a high value, such as `999999`. + + This parameter is not supported for + [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) + and + [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html). + + Note: + If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the price + protection threshold is applied based on the per-vCPU or per-memory + price instead of the per-instance price. + + Default: `20` + """ + bare_metal: str | None = ... + """ + Indicates whether bare metal instance types must be included, excluded, + or required. + + - To include bare metal instance types, specify `included`. + + - To require only bare metal instance types, specify `required`. + + - To exclude bare metal instance types, specify `excluded`. + + Default: `excluded` + """ + burstable_performance: str | None = ... + """ + Indicates whether burstable performance T instance types are included, + excluded, or required. For more information, see [Burstable performance + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html). + + - To include burstable performance instance types, specify `included`. + + - To require only burstable performance instance types, specify + `required`. + + - To exclude burstable performance instance types, specify `excluded`. + + Default: `excluded` + """ + require_hibernate_support: bool | None = ... + """ + Indicates whether instance types must support hibernation for On-Demand + Instances. + + This parameter is not supported for + [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html). + + Default: `false` + """ + network_interface_count: NetworkInterfaceCount | None = ... + """ + The minimum and maximum number of network interfaces. + + Default: No minimum or maximum limits + """ + local_storage: str | None = ... + """ + Indicates whether instance types with instance store volumes are + included, excluded, or required. For more information, [Amazon EC2 + instance + store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) + in the *Amazon EC2 User Guide*. + + - To include instance types with instance store volumes, specify + `included`. + + - To require only instance types with instance store volumes, specify + `required`. + + - To exclude instance types with instance store volumes, specify + `excluded`. + + Default: `included` + """ + local_storage_types: list[str] | None = ... + """ + The type of local storage that is required. + + - For instance types with hard disk drive (HDD) storage, specify `hdd`. + + - For instance types with solid state drive (SSD) storage, specify + `ssd`. + + Default: `hdd` and `ssd` + """ + total_local_storage_gb: TotalLocalStorageGB | None = ... + """ + The minimum and maximum amount of total local storage, in GB. + + Default: No minimum or maximum limits + """ + baseline_ebs_bandwidth_mbps: BaselineEbsBandwidthMbps | None = ... + """ + The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For + more information, see [Amazon EBS--optimized + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html) + in the *Amazon EC2 User Guide*. + + Default: No minimum or maximum limits + """ + accelerator_types: list[str] | None = ... + """ + The accelerator types that must be on the instance type. + + - For instance types with FPGA accelerators, specify `fpga`. + + - For instance types with GPU accelerators, specify `gpu`. + + - For instance types with Inference accelerators, specify `inference`. + + - For instance types with Media accelerators, specify `media`. + + Default: Any accelerator type + """ + accelerator_count: AcceleratorCount | None = ... + """ + The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon + Web Services Inferentia chips) on an instance. + + To exclude accelerator-enabled instance types, set `Max` to `0`. + + Default: No minimum or maximum limits + """ + accelerator_manufacturers: list[str] | None = ... + """ + Indicates whether instance types must have accelerators by specific + manufacturers. + + - For instance types with Amazon Web Services devices, specify + `amazon-web-services`. + + - For instance types with AMD devices, specify `amd`. + + - For instance types with Habana devices, specify `habana`. + + - For instance types with NVIDIA devices, specify `nvidia`. + + - For instance types with Xilinx devices, specify `xilinx`. + + Default: Any manufacturer + """ + accelerator_names: list[str] | None = ... + """ + The accelerators that must be on the instance type. + + - For instance types with NVIDIA A10G GPUs, specify `a10g`. + + - For instance types with NVIDIA A100 GPUs, specify `a100`. + + - For instance types with NVIDIA H100 GPUs, specify `h100`. + + - For instance types with Amazon Web Services Inferentia chips, specify + `inferentia`. + + - For instance types with Amazon Web Services Inferentia2 chips, specify + `inferentia2`. + + - For instance types with Habana Gaudi HL-205 GPUs, specify + `gaudi-hl-205`. + + - For instance types with NVIDIA GRID K520 GPUs, specify `k520`. + + - For instance types with NVIDIA K80 GPUs, specify `k80`. + + - For instance types with NVIDIA L4 GPUs, specify `l4`. + + - For instance types with NVIDIA L40S GPUs, specify `l40s`. + + - For instance types with NVIDIA M60 GPUs, specify `m60`. + + - For instance types with AMD Radeon Pro V520 GPUs, specify + `radeon-pro-v520`. + + - For instance types with Amazon Web Services Trainium chips, specify + `trainium`. + + - For instance types with Amazon Web Services Trainium2 chips, specify + `trainium2`. + + - For instance types with NVIDIA T4 GPUs, specify `t4`. + + - For instance types with NVIDIA T4G GPUs, specify `t4g`. + + - For instance types with Xilinx U30 cards, specify `u30`. + + - For instance types with Xilinx VU9P FPGAs, specify `vu9p`. + + - For instance types with NVIDIA V100 GPUs, specify `v100`. + + Default: Any accelerator + """ + accelerator_total_memory_mi_b: AcceleratorTotalMemoryMiB | None = ... + """ + The minimum and maximum amount of total accelerator memory, in MiB. + + Default: No minimum or maximum limits + """ + network_bandwidth_gbps: NetworkBandwidthGbps | None = ... + """ + The minimum and maximum amount of network bandwidth, in gigabits per + second (Gbps). + + Default: No minimum or maximum limits + """ + allowed_instance_types: list[str] | None = ... + """ + The instance types to apply your specified attributes against. All other + instance types are ignored, even if they match your specified + attributes. + + You can use strings with one or more wild cards, represented by an + asterisk (`*`), to allow an instance type, size, or generation. The + following are examples: `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`. + + For example, if you specify `c5*`,Amazon EC2 will allow the entire C5 + instance family, which includes all C5a and C5n instance types. If you + specify `m5a.*`, Amazon EC2 will allow all the M5a instance types, but + not the M5n instance types. + + Note: + If you specify `AllowedInstanceTypes`, you can't specify + `ExcludedInstanceTypes`. + + Default: All instance types + """ + max_spot_price_as_percentage_of_optimal_on_demand_price: int | None = ... + """ + [Price protection] The price protection threshold for Spot Instances, + as a percentage of an identified On-Demand price. The identified + On-Demand price is the price of the lowest priced current generation C, + M, or R instance type with your specified attributes. If no current + generation C, M, or R instance type matches your attributes, then the + identified price is from the lowest priced current generation instance + types, and failing that, from the lowest priced previous generation + instance types that match your attributes. When Amazon EC2 selects + instance types with your attributes, it will exclude instance types + whose price exceeds your specified threshold. + + The parameter accepts an integer, which Amazon EC2 interprets as a + percentage. + + If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the price + protection threshold is based on the per vCPU or per memory price + instead of the per instance price. + + Note: + Only one of `SpotMaxPricePercentageOverLowestPrice` or + `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If + you don't specify either, Amazon EC2 will automatically apply optimal + price protection to consistently select from a wide range of instance + types. To indicate no price protection threshold for Spot Instances, + meaning you want to consider all instance types that match your + attributes, include one of these parameters and specify a high value, + such as `999999`. + """ + baseline_performance_factors: BaselinePerformanceFactors | None = ... + """ + The baseline performance to consider, using an instance family as a + baseline reference. The instance family establishes the lowest + acceptable level of performance. Amazon EC2 uses this baseline to guide + instance type selection, but there is no guarantee that the selected + instance types will always exceed the baseline for every application. + Currently, this parameter only supports CPU performance as a baseline + performance factor. For more information, see [Performance + protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection) + in the *Amazon EC2 User Guide*. + """ + require_encryption_in_transit: bool | None = ... + """ + Specifies whether instance types must support encrypting in-transit + traffic between instances. For more information, including the supported + instance types, see [Encryption in + transit](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/data-protection.html#encryption-transit) + in the *Amazon EC2 User Guide*. + + Default: `false` + """ + +class InstanceRequirementsDict(TypedDict, total=False): + """Dictionary form of `InstanceRequirements`.""" + + v_cpu_count: VCpuCountRange | VCpuCountRangeDict | None + """The minimum and maximum number of vCPUs.""" + memory_mi_b: MemoryMiB | MemoryMiBDict | None + """The minimum and maximum amount of memory, in MiB.""" + cpu_manufacturers: Sequence[str] | None + """ + The CPU manufacturers to include. + + - For instance types with Intel CPUs, specify `intel`. + + - For instance types with AMD CPUs, specify `amd`. + + - For instance types with Amazon Web Services CPUs, specify + `amazon-web-services`. + + - For instance types with Apple CPUs, specify `apple`. + + Note: + Don't confuse the CPU manufacturer with the CPU architecture. Instances + will be launched with a compatible CPU architecture based on the Amazon + Machine Image (AMI) that you specify in your launch template. + + Default: Any manufacturer + """ + memory_gi_b_per_v_cpu: MemoryGiBPerVCpu | MemoryGiBPerVCpuDict | None + """ + The minimum and maximum amount of memory per vCPU, in GiB. + + Default: No minimum or maximum limits + """ + excluded_instance_types: Sequence[str] | None + """ + The instance types to exclude. + + You can use strings with one or more wild cards, represented by an + asterisk (`*`), to exclude an instance type, size, or generation. The + following are examples: `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`. + + For example, if you specify `c5*`,Amazon EC2 will exclude the entire C5 + instance family, which includes all C5a and C5n instance types. If you + specify `m5a.*`, Amazon EC2 will exclude all the M5a instance types, but + not the M5n instance types. + + Note: + If you specify `ExcludedInstanceTypes`, you can't specify + `AllowedInstanceTypes`. + + Default: No excluded instance types + """ + instance_generations: Sequence[str] | None + """ + Indicates whether current or previous generation instance types are + included. The current generation instance types are recommended for use. + Current generation instance types are typically the latest two to three + generations in each instance family. For more information, see [Instance + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + in the *Amazon EC2 User Guide*. + + For current generation instance types, specify `current`. + + For previous generation instance types, specify `previous`. + + Default: Current and previous generation instance types + """ + spot_max_price_percentage_over_lowest_price: int | None + """ + [Price protection] The price protection threshold for Spot Instances, + as a percentage higher than an identified Spot price. The identified + Spot price is the Spot price of the lowest priced current generation C, + M, or R instance type with your specified attributes. If no current + generation C, M, or R instance type matches your attributes, then the + identified Spot price is from the lowest priced current generation + instance types, and failing that, from the lowest priced previous + generation instance types that match your attributes. When Amazon EC2 + selects instance types with your attributes, it will exclude instance + types whose Spot price exceeds your specified threshold. + + The parameter accepts an integer, which Amazon EC2 interprets as a + percentage. + + If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the price + protection threshold is applied based on the per-vCPU or per-memory + price instead of the per-instance price. + + This parameter is not supported for + [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) + and + [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html). + + Note: + Only one of `SpotMaxPricePercentageOverLowestPrice` or + `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If + you don't specify either, Amazon EC2 will automatically apply optimal + price protection to consistently select from a wide range of instance + types. To indicate no price protection threshold for Spot Instances, + meaning you want to consider all instance types that match your + attributes, include one of these parameters and specify a high value, + such as `999999`. + + Default: `100` + """ + on_demand_max_price_percentage_over_lowest_price: int | None + """ + [Price protection] The price protection threshold for On-Demand + Instances, as a percentage higher than an identified On-Demand price. + The identified On-Demand price is the price of the lowest priced current + generation C, M, or R instance type with your specified attributes. When + Amazon EC2 selects instance types with your attributes, it will exclude + instance types whose price exceeds your specified threshold. + + The parameter accepts an integer, which Amazon EC2 interprets as a + percentage. + + To turn off price protection, specify a high value, such as `999999`. + + This parameter is not supported for + [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) + and + [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html). + + Note: + If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the price + protection threshold is applied based on the per-vCPU or per-memory + price instead of the per-instance price. + + Default: `20` + """ + bare_metal: str | None + """ + Indicates whether bare metal instance types must be included, excluded, + or required. + + - To include bare metal instance types, specify `included`. + + - To require only bare metal instance types, specify `required`. + + - To exclude bare metal instance types, specify `excluded`. + + Default: `excluded` + """ + burstable_performance: str | None + """ + Indicates whether burstable performance T instance types are included, + excluded, or required. For more information, see [Burstable performance + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html). + + - To include burstable performance instance types, specify `included`. + + - To require only burstable performance instance types, specify + `required`. + + - To exclude burstable performance instance types, specify `excluded`. + + Default: `excluded` + """ + require_hibernate_support: bool | None + """ + Indicates whether instance types must support hibernation for On-Demand + Instances. + + This parameter is not supported for + [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html). + + Default: `false` + """ + network_interface_count: NetworkInterfaceCount | NetworkInterfaceCountDict | None + """ + The minimum and maximum number of network interfaces. + + Default: No minimum or maximum limits + """ + local_storage: str | None + """ + Indicates whether instance types with instance store volumes are + included, excluded, or required. For more information, [Amazon EC2 + instance + store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) + in the *Amazon EC2 User Guide*. + + - To include instance types with instance store volumes, specify + `included`. + + - To require only instance types with instance store volumes, specify + `required`. + + - To exclude instance types with instance store volumes, specify + `excluded`. + + Default: `included` + """ + local_storage_types: Sequence[str] | None + """ + The type of local storage that is required. + + - For instance types with hard disk drive (HDD) storage, specify `hdd`. + + - For instance types with solid state drive (SSD) storage, specify + `ssd`. + + Default: `hdd` and `ssd` + """ + total_local_storage_gb: TotalLocalStorageGB | TotalLocalStorageGBDict | None + """ + The minimum and maximum amount of total local storage, in GB. + + Default: No minimum or maximum limits + """ + baseline_ebs_bandwidth_mbps: ( + BaselineEbsBandwidthMbps | BaselineEbsBandwidthMbpsDict | None + ) + """ + The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For + more information, see [Amazon EBS--optimized + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html) + in the *Amazon EC2 User Guide*. + + Default: No minimum or maximum limits + """ + accelerator_types: Sequence[str] | None + """ + The accelerator types that must be on the instance type. + + - For instance types with FPGA accelerators, specify `fpga`. + + - For instance types with GPU accelerators, specify `gpu`. + + - For instance types with Inference accelerators, specify `inference`. + + - For instance types with Media accelerators, specify `media`. + + Default: Any accelerator type + """ + accelerator_count: AcceleratorCount | AcceleratorCountDict | None + """ + The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon + Web Services Inferentia chips) on an instance. + + To exclude accelerator-enabled instance types, set `Max` to `0`. + + Default: No minimum or maximum limits + """ + accelerator_manufacturers: Sequence[str] | None + """ + Indicates whether instance types must have accelerators by specific + manufacturers. + + - For instance types with Amazon Web Services devices, specify + `amazon-web-services`. + + - For instance types with AMD devices, specify `amd`. + + - For instance types with Habana devices, specify `habana`. + + - For instance types with NVIDIA devices, specify `nvidia`. + + - For instance types with Xilinx devices, specify `xilinx`. + + Default: Any manufacturer + """ + accelerator_names: Sequence[str] | None + """ + The accelerators that must be on the instance type. + + - For instance types with NVIDIA A10G GPUs, specify `a10g`. + + - For instance types with NVIDIA A100 GPUs, specify `a100`. + + - For instance types with NVIDIA H100 GPUs, specify `h100`. + + - For instance types with Amazon Web Services Inferentia chips, specify + `inferentia`. + + - For instance types with Amazon Web Services Inferentia2 chips, specify + `inferentia2`. + + - For instance types with Habana Gaudi HL-205 GPUs, specify + `gaudi-hl-205`. + + - For instance types with NVIDIA GRID K520 GPUs, specify `k520`. + + - For instance types with NVIDIA K80 GPUs, specify `k80`. + + - For instance types with NVIDIA L4 GPUs, specify `l4`. + + - For instance types with NVIDIA L40S GPUs, specify `l40s`. + + - For instance types with NVIDIA M60 GPUs, specify `m60`. - bandwidth_weighting: str | None = ... + - For instance types with AMD Radeon Pro V520 GPUs, specify + `radeon-pro-v520`. + + - For instance types with Amazon Web Services Trainium chips, specify + `trainium`. + + - For instance types with Amazon Web Services Trainium2 chips, specify + `trainium2`. + + - For instance types with NVIDIA T4 GPUs, specify `t4`. + + - For instance types with NVIDIA T4G GPUs, specify `t4g`. + + - For instance types with Xilinx U30 cards, specify `u30`. + + - For instance types with Xilinx VU9P FPGAs, specify `vu9p`. + + - For instance types with NVIDIA V100 GPUs, specify `v100`. + + Default: Any accelerator """ - When you configure network bandwidth weighting, you can boost your - baseline bandwidth for either networking or EBS by up to 25%. The total - available baseline bandwidth for your instance remains the same. The - default option uses the standard bandwidth configuration for your - instance type. + accelerator_total_memory_mi_b: ( + AcceleratorTotalMemoryMiB | AcceleratorTotalMemoryMiBDict | None + ) """ + The minimum and maximum amount of total accelerator memory, in MiB. -@dataclass(kw_only=True) -class InstanceNetworkPerformanceOptionsRequest(_SerdeShape): + Default: No minimum or maximum limits """ - Configure network performance options for your instance that are geared - towards performance improvements based on the workload that it runs. + network_bandwidth_gbps: NetworkBandwidthGbps | NetworkBandwidthGbpsDict | None """ + The minimum and maximum amount of network bandwidth, in gigabits per + second (Gbps). - bandwidth_weighting: str | None = ... + Default: No minimum or maximum limits """ - Specify the bandwidth weighting option to boost the associated type of - baseline bandwidth, as follows: - - default - - : This option uses the standard bandwidth configuration for your - instance type. + allowed_instance_types: Sequence[str] | None + """ + The instance types to apply your specified attributes against. All other + instance types are ignored, even if they match your specified + attributes. - vpc-1 + You can use strings with one or more wild cards, represented by an + asterisk (`*`), to allow an instance type, size, or generation. The + following are examples: `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`. - : This option boosts your networking baseline bandwidth and reduces your - EBS baseline bandwidth. + For example, if you specify `c5*`,Amazon EC2 will allow the entire C5 + instance family, which includes all C5a and C5n instance types. If you + specify `m5a.*`, Amazon EC2 will allow all the M5a instance types, but + not the M5n instance types. - ebs-1 + Note: + If you specify `AllowedInstanceTypes`, you can't specify + `ExcludedInstanceTypes`. - : This option boosts your EBS baseline bandwidth and reduces your - networking baseline bandwidth. + Default: All instance types """ + max_spot_price_as_percentage_of_optimal_on_demand_price: int | None + """ + [Price protection] The price protection threshold for Spot Instances, + as a percentage of an identified On-Demand price. The identified + On-Demand price is the price of the lowest priced current generation C, + M, or R instance type with your specified attributes. If no current + generation C, M, or R instance type matches your attributes, then the + identified price is from the lowest priced current generation instance + types, and failing that, from the lowest priced previous generation + instance types that match your attributes. When Amazon EC2 selects + instance types with your attributes, it will exclude instance types + whose price exceeds your specified threshold. -@dataclass(kw_only=True) -class InstancePrivateIpAddress(_SerdeShape): - """Describes a private IPv4 address.""" + The parameter accepts an integer, which Amazon EC2 interprets as a + percentage. - association: InstanceNetworkInterfaceAssociation | None = ... + If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the price + protection threshold is based on the per vCPU or per memory price + instead of the per instance price. + + Note: + Only one of `SpotMaxPricePercentageOverLowestPrice` or + `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If + you don't specify either, Amazon EC2 will automatically apply optimal + price protection to consistently select from a wide range of instance + types. To indicate no price protection threshold for Spot Instances, + meaning you want to consider all instance types that match your + attributes, include one of these parameters and specify a high value, + such as `999999`. """ - The association information for an Elastic IP address for the network - interface. + baseline_performance_factors: ( + BaselinePerformanceFactors | BaselinePerformanceFactorsDict | None + ) """ - primary: bool | None = ... + The baseline performance to consider, using an instance family as a + baseline reference. The instance family establishes the lowest + acceptable level of performance. Amazon EC2 uses this baseline to guide + instance type selection, but there is no guarantee that the selected + instance types will always exceed the baseline for every application. + Currently, this parameter only supports CPU performance as a baseline + performance factor. For more information, see [Performance + protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection) + in the *Amazon EC2 User Guide*. """ - Indicates whether this IPv4 address is the primary private IP address of - the network interface. + require_encryption_in_transit: bool | None """ - private_dns_name: str | None = ... - """The private IPv4 DNS name.""" - private_ip_address: str | None = ... - """The private IPv4 address of the network interface.""" + Specifies whether instance types must support encrypting in-transit + traffic between instances. For more information, including the supported + instance types, see [Encryption in + transit](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/data-protection.html#encryption-transit) + in the *Amazon EC2 User Guide*. -class InstanceRebootMigrationState(UnknownEnumMixin, StrEnum): - DISABLED = "disabled" - DEFAULT = "default" + Default: `false` + """ @dataclass(kw_only=True) -class InstanceRequirements(_SerdeShape): +class InstanceRequirementsRequest(_SerdeShape): """ The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these @@ -2984,25 +4795,25 @@ class InstanceRequirements(_SerdeShape): Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the [launch instance - wizard](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance-wizard.html) - or with the [RunInstances - API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html), - you can't specify `InstanceRequirements`. + wizard](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance-wizard.html), + or with the + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) + API or + [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) + Amazon Web Services CloudFormation resource, you can't specify + `InstanceRequirements`. - For more information, see [Create mixed instances group using - attribute-based instance type - selection](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-mixed-instances-group-attribute-based-instance-type-selection.html) - in the *Amazon EC2 Auto Scaling User Guide*, and also [Specify - attributes for instance type selection for EC2 Fleet or Spot + For more information, see [Specify attributes for instance type + selection for EC2 Fleet or Spot Fleet](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html) and [Spot placement score](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html) in the *Amazon EC2 User Guide*. """ - v_cpu_count: VCpuCountRange | None = ... + v_cpu_count: VCpuCountRangeRequest | None = ... """The minimum and maximum number of vCPUs.""" - memory_mi_b: MemoryMiB | None = ... + memory_mi_b: MemoryMiBRequest | None = ... """The minimum and maximum amount of memory, in MiB.""" cpu_manufacturers: list[str] | None = ... """ @@ -3024,7 +4835,7 @@ class InstanceRequirements(_SerdeShape): Default: Any manufacturer """ - memory_gi_b_per_v_cpu: MemoryGiBPerVCpu | None = ... + memory_gi_b_per_v_cpu: MemoryGiBPerVCpuRequest | None = ... """ The minimum and maximum amount of memory per vCPU, in GiB. @@ -3035,8 +4846,9 @@ class InstanceRequirements(_SerdeShape): The instance types to exclude. You can use strings with one or more wild cards, represented by an - asterisk (`*`), to exclude an instance type, size, or generation. The - following are examples: `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`. + asterisk (`*`), to exclude an instance family, type, size, or + generation. The following are examples: `m5.8xlarge`, `c5*.*`, `m5a.*`, + `r*`, `*3*`. For example, if you specify `c5*`,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you @@ -3113,7 +4925,8 @@ class InstanceRequirements(_SerdeShape): The parameter accepts an integer, which Amazon EC2 interprets as a percentage. - To turn off price protection, specify a high value, such as `999999`. + To indicate no price protection threshold, specify a high value, such as + `999999`. This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) @@ -3165,7 +4978,7 @@ class InstanceRequirements(_SerdeShape): Default: `false` """ - network_interface_count: NetworkInterfaceCount | None = ... + network_interface_count: NetworkInterfaceCountRequest | None = ... """ The minimum and maximum number of network interfaces. @@ -3201,13 +5014,13 @@ class InstanceRequirements(_SerdeShape): Default: `hdd` and `ssd` """ - total_local_storage_gb: TotalLocalStorageGB | None = ... + total_local_storage_gb: TotalLocalStorageGBRequest | None = ... """ The minimum and maximum amount of total local storage, in GB. Default: No minimum or maximum limits """ - baseline_ebs_bandwidth_mbps: BaselineEbsBandwidthMbps | None = ... + baseline_ebs_bandwidth_mbps: BaselineEbsBandwidthMbpsRequest | None = ... """ The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see [Amazon EBS--optimized @@ -3230,7 +5043,7 @@ class InstanceRequirements(_SerdeShape): Default: Any accelerator type """ - accelerator_count: AcceleratorCount | None = ... + accelerator_count: AcceleratorCountRequest | None = ... """ The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance. @@ -3307,16 +5120,19 @@ class InstanceRequirements(_SerdeShape): Default: Any accelerator """ - accelerator_total_memory_mi_b: AcceleratorTotalMemoryMiB | None = ... + accelerator_total_memory_mi_b: AcceleratorTotalMemoryMiBRequest | None = ... """ The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits """ - network_bandwidth_gbps: NetworkBandwidthGbps | None = ... + network_bandwidth_gbps: NetworkBandwidthGbpsRequest | None = ... """ - The minimum and maximum amount of network bandwidth, in gigabits per - second (Gbps). + The minimum and maximum amount of baseline network bandwidth, in + gigabits per second (Gbps). For more information, see [Amazon EC2 + instance network + bandwidth](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html) + in the *Amazon EC2 User Guide*. Default: No minimum or maximum limits """ @@ -3355,99 +5171,53 @@ class InstanceRequirements(_SerdeShape): whose price exceeds your specified threshold. The parameter accepts an integer, which Amazon EC2 interprets as a - percentage. - - If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the price - protection threshold is based on the per vCPU or per memory price - instead of the per instance price. - - Note: - Only one of `SpotMaxPricePercentageOverLowestPrice` or - `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If - you don't specify either, Amazon EC2 will automatically apply optimal - price protection to consistently select from a wide range of instance - types. To indicate no price protection threshold for Spot Instances, - meaning you want to consider all instance types that match your - attributes, include one of these parameters and specify a high value, - such as `999999`. - """ - baseline_performance_factors: BaselinePerformanceFactors | None = ... - """ - The baseline performance to consider, using an instance family as a - baseline reference. The instance family establishes the lowest - acceptable level of performance. Amazon EC2 uses this baseline to guide - instance type selection, but there is no guarantee that the selected - instance types will always exceed the baseline for every application. - Currently, this parameter only supports CPU performance as a baseline - performance factor. For more information, see [Performance - protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection) - in the *Amazon EC2 User Guide*. - """ - require_encryption_in_transit: bool | None = ... - """ - Specifies whether instance types must support encrypting in-transit - traffic between instances. For more information, including the supported - instance types, see [Encryption in - transit](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/data-protection.html#encryption-transit) - in the *Amazon EC2 User Guide*. - - Default: `false` - """ - -@dataclass(kw_only=True) -class InstanceRequirementsRequest(_SerdeShape): - """ - The attributes for the instance types. When you specify instance - attributes, Amazon EC2 will identify instance types with these - attributes. - - You must specify `VCpuCount` and `MemoryMiB`. All other attributes are - optional. Any unspecified optional attribute is set to its default. - - When you specify multiple attributes, you get instance types that - satisfy all of the specified attributes. If you specify multiple values - for an attribute, you get instance types that satisfy any of the - specified values. - - To limit the list of instance types from which Amazon EC2 can identify - matching instance types, you can use one of the following parameters, - but not both in the same request: - - - `AllowedInstanceTypes` - The instance types to include in the list. - All other instance types are ignored, even if they match your - specified attributes. - - - `ExcludedInstanceTypes` - The instance types to exclude from the list, - even if they match your specified attributes. - - Note: - If you specify `InstanceRequirements`, you can't specify - `InstanceType`. - - Attribute-based instance type selection is only supported when using - Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If - you plan to use the launch template in the [launch instance - wizard](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance-wizard.html), - or with the - [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) - API or - [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) - Amazon Web Services CloudFormation resource, you can't specify - `InstanceRequirements`. + percentage. - For more information, see [Specify attributes for instance type - selection for EC2 Fleet or Spot - Fleet](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html) - and [Spot placement - score](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html) + If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the price + protection threshold is based on the per vCPU or per memory price + instead of the per instance price. + + Note: + Only one of `SpotMaxPricePercentageOverLowestPrice` or + `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If + you don't specify either, Amazon EC2 will automatically apply optimal + price protection to consistently select from a wide range of instance + types. To indicate no price protection threshold for Spot Instances, + meaning you want to consider all instance types that match your + attributes, include one of these parameters and specify a high value, + such as `999999`. + """ + baseline_performance_factors: BaselinePerformanceFactorsRequest | None = ... + """ + The baseline performance to consider, using an instance family as a + baseline reference. The instance family establishes the lowest + acceptable level of performance. Amazon EC2 uses this baseline to guide + instance type selection, but there is no guarantee that the selected + instance types will always exceed the baseline for every application. + Currently, this parameter only supports CPU performance as a baseline + performance factor. For more information, see [Performance + protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection) + in the *Amazon EC2 User Guide*. + """ + require_encryption_in_transit: bool | None = ... + """ + Specifies whether instance types must support encrypting in-transit + traffic between instances. For more information, including the supported + instance types, see [Encryption in + transit](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/data-protection.html#encryption-transit) in the *Amazon EC2 User Guide*. + + Default: `false` """ - v_cpu_count: VCpuCountRangeRequest | None = ... +class InstanceRequirementsRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceRequirementsRequest`.""" + + v_cpu_count: Required[VCpuCountRangeRequest | VCpuCountRangeRequestDict] """The minimum and maximum number of vCPUs.""" - memory_mi_b: MemoryMiBRequest | None = ... + memory_mi_b: Required[MemoryMiBRequest | MemoryMiBRequestDict] """The minimum and maximum amount of memory, in MiB.""" - cpu_manufacturers: list[str] | None = ... + cpu_manufacturers: Sequence[str] | None """ The CPU manufacturers to include. @@ -3467,13 +5237,13 @@ class InstanceRequirementsRequest(_SerdeShape): Default: Any manufacturer """ - memory_gi_b_per_v_cpu: MemoryGiBPerVCpuRequest | None = ... + memory_gi_b_per_v_cpu: MemoryGiBPerVCpuRequest | MemoryGiBPerVCpuRequestDict | None """ The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum or maximum limits """ - excluded_instance_types: list[str] | None = ... + excluded_instance_types: Sequence[str] | None """ The instance types to exclude. @@ -3493,7 +5263,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: No excluded instance types """ - instance_generations: list[str] | None = ... + instance_generations: Sequence[str] | None """ Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. @@ -3508,7 +5278,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: Current and previous generation instance types """ - spot_max_price_percentage_over_lowest_price: int | None = ... + spot_max_price_percentage_over_lowest_price: int | None """ [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified @@ -3545,7 +5315,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: `100` """ - on_demand_max_price_percentage_over_lowest_price: int | None = ... + on_demand_max_price_percentage_over_lowest_price: int | None """ [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. @@ -3572,7 +5342,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: `20` """ - bare_metal: str | None = ... + bare_metal: str | None """ Indicates whether bare metal instance types must be included, excluded, or required. @@ -3585,7 +5355,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: `excluded` """ - burstable_performance: str | None = ... + burstable_performance: str | None """ Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see [Burstable performance @@ -3600,7 +5370,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: `excluded` """ - require_hibernate_support: bool | None = ... + require_hibernate_support: bool | None """ Indicates whether instance types must support hibernation for On-Demand Instances. @@ -3610,13 +5380,15 @@ class InstanceRequirementsRequest(_SerdeShape): Default: `false` """ - network_interface_count: NetworkInterfaceCountRequest | None = ... + network_interface_count: ( + NetworkInterfaceCountRequest | NetworkInterfaceCountRequestDict | None + ) """ The minimum and maximum number of network interfaces. Default: No minimum or maximum limits """ - local_storage: str | None = ... + local_storage: str | None """ Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, [Amazon EC2 @@ -3635,7 +5407,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: `included` """ - local_storage_types: list[str] | None = ... + local_storage_types: Sequence[str] | None """ The type of local storage that is required. @@ -3646,13 +5418,17 @@ class InstanceRequirementsRequest(_SerdeShape): Default: `hdd` and `ssd` """ - total_local_storage_gb: TotalLocalStorageGBRequest | None = ... + total_local_storage_gb: ( + TotalLocalStorageGBRequest | TotalLocalStorageGBRequestDict | None + ) """ The minimum and maximum amount of total local storage, in GB. Default: No minimum or maximum limits """ - baseline_ebs_bandwidth_mbps: BaselineEbsBandwidthMbpsRequest | None = ... + baseline_ebs_bandwidth_mbps: ( + BaselineEbsBandwidthMbpsRequest | BaselineEbsBandwidthMbpsRequestDict | None + ) """ The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see [Amazon EBS--optimized @@ -3661,7 +5437,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: No minimum or maximum limits """ - accelerator_types: list[str] | None = ... + accelerator_types: Sequence[str] | None """ The accelerator types that must be on the instance type. @@ -3675,7 +5451,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: Any accelerator type """ - accelerator_count: AcceleratorCountRequest | None = ... + accelerator_count: AcceleratorCountRequest | AcceleratorCountRequestDict | None """ The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance. @@ -3684,7 +5460,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: No minimum or maximum limits """ - accelerator_manufacturers: list[str] | None = ... + accelerator_manufacturers: Sequence[str] | None """ Indicates whether instance types must have accelerators by specific manufacturers. @@ -3702,7 +5478,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: Any manufacturer """ - accelerator_names: list[str] | None = ... + accelerator_names: Sequence[str] | None """ The accelerators that must be on the instance type. @@ -3752,13 +5528,17 @@ class InstanceRequirementsRequest(_SerdeShape): Default: Any accelerator """ - accelerator_total_memory_mi_b: AcceleratorTotalMemoryMiBRequest | None = ... + accelerator_total_memory_mi_b: ( + AcceleratorTotalMemoryMiBRequest | AcceleratorTotalMemoryMiBRequestDict | None + ) """ The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits """ - network_bandwidth_gbps: NetworkBandwidthGbpsRequest | None = ... + network_bandwidth_gbps: ( + NetworkBandwidthGbpsRequest | NetworkBandwidthGbpsRequestDict | None + ) """ The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see [Amazon EC2 @@ -3768,7 +5548,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: No minimum or maximum limits """ - allowed_instance_types: list[str] | None = ... + allowed_instance_types: Sequence[str] | None """ The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified @@ -3789,7 +5569,7 @@ class InstanceRequirementsRequest(_SerdeShape): Default: All instance types """ - max_spot_price_as_percentage_of_optimal_on_demand_price: int | None = ... + max_spot_price_as_percentage_of_optimal_on_demand_price: int | None """ [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified @@ -3819,7 +5599,9 @@ class InstanceRequirementsRequest(_SerdeShape): attributes, include one of these parameters and specify a high value, such as `999999`. """ - baseline_performance_factors: BaselinePerformanceFactorsRequest | None = ... + baseline_performance_factors: ( + BaselinePerformanceFactorsRequest | BaselinePerformanceFactorsRequestDict | None + ) """ The baseline performance to consider, using an instance family as a baseline reference. The instance family establishes the lowest @@ -3831,7 +5613,7 @@ class InstanceRequirementsRequest(_SerdeShape): protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection) in the *Amazon EC2 User Guide*. """ - require_encryption_in_transit: bool | None = ... + require_encryption_in_transit: bool | None """ Specifies whether instance types must support encrypting in-transit traffic between instances. For more information, including the supported @@ -3864,6 +5646,22 @@ class InstanceRequirementsWithMetadataRequest(_SerdeShape): attributes. """ +class InstanceRequirementsWithMetadataRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceRequirementsWithMetadataRequest`.""" + + architecture_types: Sequence[str] | None + """The architecture type.""" + virtualization_types: Sequence[str] | None + """The virtualization type.""" + instance_requirements: ( + InstanceRequirementsRequest | InstanceRequirementsRequestDict | None + ) + """ + The attributes for the instance types. When you specify instance + attributes, Amazon EC2 will identify instance types with those + attributes. + """ + @dataclass(kw_only=True) class InstanceSecondaryInterface(_SerdeShape): """Describes a secondary interface attached to an instance.""" @@ -3928,6 +5726,12 @@ class InstanceSecondaryInterfacePrivateIpAddressRequest(_SerdeShape): private_ip_address: str | None = ... """The private IPv4 address.""" +class InstanceSecondaryInterfacePrivateIpAddressRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceSecondaryInterfacePrivateIpAddressRequest`.""" + + private_ip_address: Required[str] + """The private IPv4 address.""" + @dataclass(kw_only=True) class InstanceSecondaryInterfaceSpecificationRequest(_SerdeShape): """Describes a secondary interface specification for launching an instance.""" @@ -3960,6 +5764,41 @@ class InstanceSecondaryInterfaceSpecificationRequest(_SerdeShape): interfaces. """ +class InstanceSecondaryInterfaceSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceSecondaryInterfaceSpecificationRequest`.""" + + delete_on_termination: bool | None + """ + Indicates whether the secondary interface is deleted when the instance + is terminated. + + The only supported value for this field is `true`. + """ + device_index: int | None + """The device index for the secondary interface attachment.""" + private_ip_addresses: ( + Sequence[ + InstanceSecondaryInterfacePrivateIpAddressRequest + | InstanceSecondaryInterfacePrivateIpAddressRequestDict + ] + | None + ) + """The private IPv4 addresses to assign to the secondary interface.""" + private_ip_address_count: int | None + """ + The number of private IPv4 addresses to assign to the secondary + interface. + """ + secondary_subnet_id: str | None + """The ID of the secondary subnet.""" + interface_type: str | None + """The type of secondary interface.""" + network_card_index: int | None + """ + The index of the network card. The network card must support secondary + interfaces. + """ + @dataclass(kw_only=True) class InstanceSpecification(_SerdeShape): """The instance details to specify which volumes should be snapshotted.""" @@ -3977,6 +5816,22 @@ class InstanceSpecification(_SerdeShape): You can specify up to 40 volume IDs per request. """ +class InstanceSpecificationDict(TypedDict, total=False): + """Dictionary form of `InstanceSpecification`.""" + + instance_id: Required[str] + """The instance to specify which volumes should be snapshotted.""" + exclude_boot_volume: bool | None + """Excludes the root volume from being snapshotted.""" + exclude_data_volume_ids: Sequence[str] | None + """ + The IDs of the data (non-root) volumes to exclude from the multi-volume + snapshot set. If you specify the ID of the root volume, the request + fails. To exclude the root volume, use **ExcludeBootVolume**. + + You can specify up to 40 volume IDs per request. + """ + @dataclass(kw_only=True) class InstanceState(_SerdeShape): """Describes the current state of an instance.""" @@ -5809,6 +7664,30 @@ class InstanceTypeSpecificationRequest(_SerdeShape): across both lists; duplicate entries cause the request to fail. """ +class InstanceTypeSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceTypeSpecificationRequest`.""" + + supported_instance_types: Sequence[str] | None + """ + The instance types that the AMI supports. You can specify instance type + names or use wildcard patterns (for example, `t3.*`). + + Constraints: Maximum 100 entries. Each entry must be 1-24 characters and + match the pattern `^[A-Za-z0-9_.*-]+$`. Consecutive wildcard characters + (`**`) are not allowed. Entries must be unique within each list and + across both lists; duplicate entries cause the request to fail. + """ + unsupported_instance_types: Sequence[str] | None + """ + The instance types that the AMI does not support. You can specify + instance type names or use wildcard patterns (for example, `t3.*`). + + Constraints: Maximum 100 entries. Each entry must be 1-24 characters and + match the pattern `^[A-Za-z0-9_.*-]+$`. Consecutive wildcard characters + (`**`) are not allowed. Entries must be unique within each list and + across both lists; duplicate entries cause the request to fail. + """ + @dataclass(kw_only=True) class InstanceUsage(_SerdeShape): """Information about the Capacity Reservation usage.""" @@ -5831,6 +7710,12 @@ class IntegrateServices(_SerdeShape): athena_integrations: list[AthenaIntegration] | None = ... """Information about the integration with Amazon Athena.""" +class IntegrateServicesDict(TypedDict, total=False): + """Dictionary form of `IntegrateServices`.""" + + athena_integrations: Sequence[AthenaIntegration | AthenaIntegrationDict] | None + """Information about the integration with Amazon Athena.""" + class InterfacePermissionType(UnknownEnumMixin, StrEnum): INSTANCE_ATTACH = "INSTANCE-ATTACH" EIP_ASSOCIATE = "EIP-ASSOCIATE" @@ -6142,6 +8027,14 @@ class IpamCidrAuthorizationContext(_SerdeShape): signature: str | None = ... """The signed authorization message for the prefix and account.""" +class IpamCidrAuthorizationContextDict(TypedDict, total=False): + """Dictionary form of `IpamCidrAuthorizationContext`.""" + + message: str | None + """The plain-text authorization message for the prefix and account.""" + signature: str | None + """The signed authorization message for the prefix and account.""" + class IpamComplianceStatus(UnknownEnumMixin, StrEnum): COMPLIANT = "compliant" NONCOMPLIANT = "noncompliant" @@ -6649,6 +8542,17 @@ class IpamPolicyAllocationRuleRequest(_SerdeShape): allocated to Amazon Web Services resources. """ +class IpamPolicyAllocationRuleRequestDict(TypedDict, total=False): + """Dictionary form of `IpamPolicyAllocationRuleRequest`.""" + + source_ipam_pool_id: str | None + """ + The ID of the source IPAM pool for the requested allocation rule. + + An IPAM pool is a collection of IP addresses in IPAM that can be + allocated to Amazon Web Services resources. + """ + @dataclass(kw_only=True) class IpamPolicyDocument(_SerdeShape): """Information about an IPAM policy.""" @@ -6981,6 +8885,18 @@ class IpamPoolSourceResourceRequest(_SerdeShape): resource_owner: str | None = ... """The source resource owner.""" +class IpamPoolSourceResourceRequestDict(TypedDict, total=False): + """Dictionary form of `IpamPoolSourceResourceRequest`.""" + + resource_id: str | None + """The source resource ID.""" + resource_type: str | None + """The source resource type.""" + resource_region: str | None + """The source resource Region.""" + resource_owner: str | None + """The source resource owner.""" + class IpamPoolSourceResourceType(UnknownEnumMixin, StrEnum): VPC = "vpc" @@ -7309,6 +9225,43 @@ class IpamPrefixListResolverRuleConditionRequest(_SerdeShape): within or match the specified CIDR range. """ +class IpamPrefixListResolverRuleConditionRequestDict(TypedDict, total=False): + """Dictionary form of `IpamPrefixListResolverRuleConditionRequest`.""" + + operation: Required[str] + """The operation to perform when evaluating this condition.""" + ipam_pool_id: str | None + """ + The ID of the IPAM pool to match against. This condition selects CIDRs + that belong to the specified IPAM pool. + """ + resource_id: str | None + """ + The ID of the Amazon Web Services resource to match against. This + condition selects CIDRs associated with the specified resource. + """ + resource_owner: str | None + """ + The Amazon Web Services account ID that owns the resources to match + against. This condition selects CIDRs from resources owned by the + specified account. + """ + resource_region: str | None + """ + The Amazon Web Services Region where the resources are located. This + condition selects CIDRs from resources in the specified Region. + """ + resource_tag: RequestIpamResourceTag | RequestIpamResourceTagDict | None + """ + A tag key-value pair to match against. This condition selects CIDRs from + resources that have the specified tag. + """ + cidr: str | None + """ + A CIDR block to match against. This condition selects CIDRs that fall + within or match the specified CIDR range. + """ + @dataclass(kw_only=True) class IpamPrefixListResolverRuleRequest(_SerdeShape): """ @@ -7403,6 +9356,40 @@ class IpamPrefixListResolverRuleRequest(_SerdeShape): and Regions. """ +class IpamPrefixListResolverRuleRequestDict(TypedDict, total=False): + """Dictionary form of `IpamPrefixListResolverRuleRequest`.""" + + rule_type: Required[str] + """ + The type of CIDR selection rule. Valid values include `include` for + selecting CIDRs that match the conditions, and `exclude` for excluding + CIDRs that match the conditions. + """ + static_cidr: str | None + """ + A fixed list of CIDRs that do not change (like a manual list replicated + across Regions). + """ + ipam_scope_id: str | None + """ + The ID of the IPAM scope from which to select CIDRs. This determines + whether to select from public or private IP address space. + """ + resource_type: str | None + """For rules of type `ipam-resource-cidr`, this is the resource type.""" + conditions: ( + Sequence[ + IpamPrefixListResolverRuleConditionRequest + | IpamPrefixListResolverRuleConditionRequestDict + ] + | None + ) + """ + The conditions that determine which CIDRs are selected by this rule. + Conditions specify criteria such as resource type, tags, account IDs, + and Regions. + """ + class IpamPrefixListResolverRuleType(UnknownEnumMixin, StrEnum): STATIC_CIDR = "static-cidr" IPAM_RESOURCE_CIDR = "ipam-resource-cidr" @@ -8274,6 +10261,44 @@ class IpPermission(_SerdeShape): prefix_list_ids: list[PrefixListId] | None = ... """The prefix list IDs.""" +class IpPermissionDict(TypedDict, total=False): + """Dictionary form of `IpPermission`.""" + + ip_protocol: str | None + """ + The IP protocol name (`tcp`, `udp`, `icmp`, `icmpv6`) or number (see + [Protocol + Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + + Use `-1` to specify all protocols. When authorizing security group + rules, specifying `-1` or a protocol number other than `tcp`, `udp`, + `icmp`, or `icmpv6` allows traffic on all ports, regardless of any port + range you specify. For `tcp`, `udp`, and `icmp`, you must specify a port + range. For `icmpv6`, the port range is optional; if you omit the port + range, traffic for all types and codes is allowed. + """ + from_port: int | None + """ + If the protocol is TCP or UDP, this is the start of the port range. If + the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP + types). + """ + to_port: int | None + """ + If the protocol is TCP or UDP, this is the end of the port range. If the + protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP + codes). If the start port is -1 (all ICMP types), then the end port must + be -1 (all ICMP codes). + """ + user_id_group_pairs: Sequence[UserIdGroupPair | UserIdGroupPairDict] | None + """The security group and Amazon Web Services account ID pairs.""" + ip_ranges: Sequence[IpRange | IpRangeDict] | None + """The IPv4 address ranges.""" + ipv6_ranges: Sequence[Ipv6Range | Ipv6RangeDict] | None + """The IPv6 address ranges.""" + prefix_list_ids: Sequence[PrefixListId | PrefixListIdDict] | None + """The prefix list IDs.""" + @dataclass(kw_only=True) class IpRange(_SerdeShape): """Describes an IPv4 address range.""" @@ -8305,6 +10330,36 @@ class IpRange(_SerdeShape): 100.68.0.0/18), the API throws an duplicate rule error. """ +class IpRangeDict(TypedDict, total=False): + """Dictionary form of `IpRange`.""" + + description: str | None + """ + A description for the security group rule that references this IPv4 + address range. + + Constraints: Up to 255 characters in length. Allowed characters are a-z, + A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$* + """ + cidr_ip: str | None + """ + The IPv4 address range. You can either specify a CIDR block or a source + security group, not both. To specify a single IPv4 address, use the /32 + prefix length. + + Note: + Amazon Web Services + [canonicalizes](https://en.wikipedia.org/wiki/Canonicalization) IPv4 and + IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR + block, Amazon Web Services canonicalizes the CIDR block to + 100.68.0.0/18. Any subsequent DescribeSecurityGroups and + DescribeSecurityGroupRules calls will return the canonicalized form of + the CIDR block. Additionally, if you attempt to add another rule with + the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is + already a rule for the canonicalized form of the CIDR block (such as + 100.68.0.0/18), the API throws an duplicate rule error. + """ + class IpScopeEnum(UnknownEnumMixin, StrEnum): PRIVATE = "private" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_8.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_08.pyi similarity index 62% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_8.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_08.pyi index 36daae43a..31e31e8c8 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_8.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_08.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -10,90 +12,135 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( AccountVpcEncryptionControl, AddIpamOperatingRegion, + AddIpamOperatingRegionDict, AddIpamOrganizationalUnitExclusion, + AddIpamOrganizationalUnitExclusionDict, AddPrefixListEntry, + AddPrefixListEntryDict, AddressAttribute, ApplicationStatusCheckResponseObject, AttributeBooleanValue, + AttributeBooleanValueDict, AttributeValue, + AttributeValueDict, BlockDeviceMapping, CapacityManagerDimension, CapacityReservationAdjustmentDetails, CapacityReservationSpecification, + CapacityReservationSpecificationDict, CapacityReservationTarget, + CapacityReservationTargetDict, CapacityReservationTargetResponse, ClassicLoadBalancersConfig, + ClassicLoadBalancersConfigDict, ClientConnectOptions, + ClientConnectOptionsDict, ClientLoginBannerOptions, + ClientLoginBannerOptionsDict, ClientRouteEnforcementOptions, + ClientRouteEnforcementOptionsDict, ConnectionLogOptions, + ConnectionLogOptionsDict, ConnectionTrackingSpecification, ConnectionTrackingSpecificationRequest, + ConnectionTrackingSpecificationRequestDict, CreateVolumePermissionModifications, + CreateVolumePermissionModificationsDict, DevicePostureOptions, + DevicePostureOptionsDict, DnsServersOptionsModifyStructure, + DnsServersOptionsModifyStructureDict, EnaSrdSpecification, + EnaSrdSpecificationDict, EnaSrdSpecificationRequest, + EnaSrdSpecificationRequestDict, EnclaveOptionsRequest, + EnclaveOptionsRequestDict, ExternalAuthorityConfiguration, + ExternalAuthorityConfigurationDict, FleetLaunchTemplateConfigRequest, + FleetLaunchTemplateConfigRequestDict, FleetLaunchTemplateOverrides, FleetLaunchTemplateSpecification, + FleetLaunchTemplateSpecificationDict, FpgaImageAttribute, GroupIdentifier, HealthCheckPathRequestObject, + HealthCheckPathRequestObjectDict, IamInstanceProfileSpecification, ImageRecycleBinInfo, InstanceBlockDeviceMappingSpecification, + InstanceBlockDeviceMappingSpecificationDict, InstanceCreditSpecificationRequest, + InstanceCreditSpecificationRequestDict, InstanceEventWindow, InstanceEventWindowTimeRangeRequest, + InstanceEventWindowTimeRangeRequestDict, InstanceFamilyCreditSpecification, InstanceIpv6Address, InstanceIpv6AddressRequest, + InstanceIpv6AddressRequestDict, InstanceMetadataOptionsResponse, InstanceNetworkInterfaceSpecification, InstanceRequirements, + InstanceRequirementsDict, InstanceStatusEvent, Ipam, IpamPolicyAllocationRuleRequest, + IpamPolicyAllocationRuleRequestDict, IpamPolicyDocument, IpamPool, IpamPoolAllocation, IpamPrefixListResolver, IpamPrefixListResolverRuleRequest, + IpamPrefixListResolverRuleRequestDict, IpamPrefixListResolverTarget, IpamResourceCidr, IpamResourceDiscovery, IpamRoutingPolicyRegistrationDelta, IpamScope, NetworkInterfaceAttachmentChanges, + NetworkInterfaceAttachmentChangesDict, OperatorResponse, PoolCidrBlock, PrivateIpAddressSpecification, + PrivateIpAddressSpecificationDict, RemoveIpamOperatingRegion, + RemoveIpamOperatingRegionDict, RemoveIpamOrganizationalUnitExclusion, + RemoveIpamOrganizationalUnitExclusionDict, RemovePrefixListEntry, + RemovePrefixListEntryDict, RequestIpamResourceTag, + RequestIpamResourceTagDict, ReservedInstancesConfiguration, + ReservedInstancesConfigurationDict, ResponseLaunchTemplateData, RouteServer, RunInstancesMonitoringEnabled, SecondaryInterfacePrivateIpAddressSpecification, SecondaryInterfacePrivateIpAddressSpecificationRequest, + SecondaryInterfacePrivateIpAddressSpecificationRequestDict, SecureBlobAttributeValue, + SecureBlobAttributeValueDict, SecurityGroupRuleUpdate, + SecurityGroupRuleUpdateDict, SnapshotRecycleBinInfo, SpotPlacement, StateReason, SuccessfulInstanceCreditSpecificationItem, Tag, + TagDict, TargetCapacitySpecificationRequest, + TargetCapacitySpecificationRequestDict, TargetGroupsConfig, + TargetGroupsConfigDict, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorPortRangeRequest, + TrafficMirrorPortRangeRequestDict, TransitGatewayConfigurationInputStructure, + TransitGatewayConfigurationInputStructureDict, UnsuccessfulInstanceCreditSpecificationItem, UnsuccessfulItem, VolumeRecycleBinInfo, @@ -111,6 +158,16 @@ class Ipv4PrefixSpecificationRequest(_SerdeShape): in the *Amazon EC2 User Guide*. """ +class Ipv4PrefixSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `Ipv4PrefixSpecificationRequest`.""" + + ipv4_prefix: str | None + """ + The IPv4 prefix. For information, see [Assigning prefixes to network + interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) + in the *Amazon EC2 User Guide*. + """ + @dataclass(kw_only=True) class Ipv4PrefixSpecificationResponse(_SerdeShape): """ @@ -168,6 +225,12 @@ class Ipv6PrefixSpecificationRequest(_SerdeShape): ipv6_prefix: str | None = ... """The IPv6 prefix.""" +class Ipv6PrefixSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `Ipv6PrefixSpecificationRequest`.""" + + ipv6_prefix: str | None + """The IPv6 prefix.""" + @dataclass(kw_only=True) class Ipv6PrefixSpecificationResponse(_SerdeShape): """ @@ -209,6 +272,36 @@ class Ipv6Range(_SerdeShape): 100.68.0.0/18), the API throws an duplicate rule error. """ +class Ipv6RangeDict(TypedDict, total=False): + """Dictionary form of `Ipv6Range`.""" + + description: str | None + """ + A description for the security group rule that references this IPv6 + address range. + + Constraints: Up to 255 characters in length. Allowed characters are a-z, + A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$* + """ + cidr_ipv6: str | None + """ + The IPv6 address range. You can either specify a CIDR block or a source + security group, not both. To specify a single IPv6 address, use the /128 + prefix length. + + Note: + Amazon Web Services + [canonicalizes](https://en.wikipedia.org/wiki/Canonicalization) IPv4 and + IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR + block, Amazon Web Services canonicalizes the CIDR block to + 100.68.0.0/18. Any subsequent DescribeSecurityGroups and + DescribeSecurityGroupRules calls will return the canonicalized form of + the CIDR block. Additionally, if you attempt to add another rule with + the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is + already a rule for the canonicalized form of the CIDR block (such as + 100.68.0.0/18), the API throws an duplicate rule error. + """ + class Ipv6SupportValue(UnknownEnumMixin, StrEnum): ENABLE = "enable" DISABLE = "disable" @@ -299,6 +392,23 @@ class LaunchPermission(_SerdeShape): group: str | None = ... """The name of the group.""" +class LaunchPermissionDict(TypedDict, total=False): + """Dictionary form of `LaunchPermission`.""" + + organization_arn: str | None + """The Amazon Resource Name (ARN) of an organization.""" + organizational_unit_arn: str | None + """The Amazon Resource Name (ARN) of an organizational unit (OU).""" + user_id: str | None + """ + The Amazon Web Services account ID. + + Constraints: Up to 10 000 account IDs can be specified in a single + request. + """ + group: str | None + """The name of the group.""" + @dataclass(kw_only=True) class LaunchPermissionModifications(_SerdeShape): """Describes a launch permission modification.""" @@ -314,6 +424,20 @@ class LaunchPermissionModifications(_SerdeShape): remove from the list of launch permissions for the AMI. """ +class LaunchPermissionModificationsDict(TypedDict, total=False): + """Dictionary form of `LaunchPermissionModifications`.""" + + add: Sequence[LaunchPermission | LaunchPermissionDict] | None + """ + The Amazon Web Services account ID, organization ARN, or OU ARN to add + to the list of launch permissions for the AMI. + """ + remove: Sequence[LaunchPermission | LaunchPermissionDict] | None + """ + The Amazon Web Services account ID, organization ARN, or OU ARN to + remove from the list of launch permissions for the AMI. + """ + @dataclass(kw_only=True) class LaunchSpecification(_SerdeShape): """Describes the launch specification for an instance.""" @@ -441,6 +565,34 @@ class LaunchTemplateBlockDeviceMappingRequest(_SerdeShape): string. """ +class LaunchTemplateBlockDeviceMappingRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateBlockDeviceMappingRequest`.""" + + device_name: str | None + """The device name (for example, /dev/sdh or xvdh).""" + virtual_name: str | None + """ + The virtual device name (ephemeralN). Instance store volumes are + numbered starting from 0. An instance type with 2 available instance + store volumes can specify mappings for ephemeral0 and ephemeral1. The + number of available instance store volumes depends on the instance type. + After you connect to the instance, you must mount the volume. + """ + ebs: ( + LaunchTemplateEbsBlockDeviceRequest + | LaunchTemplateEbsBlockDeviceRequestDict + | None + ) + """ + Parameters used to automatically set up EBS volumes when the instance is + launched. + """ + no_device: str | None + """ + To omit the device from the block device mapping, specify an empty + string. + """ + @dataclass(kw_only=True) class LaunchTemplateCapacityReservationSpecificationRequest(_SerdeShape): """ @@ -475,6 +627,33 @@ class LaunchTemplateCapacityReservationSpecificationRequest(_SerdeShape): Reservation group. """ +class LaunchTemplateCapacityReservationSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateCapacityReservationSpecificationRequest`.""" + + capacity_reservation_preference: str | None + """ + Indicates the instance's Capacity Reservation preferences. Possible + preferences include: + + - `capacity-reservations-only` - The instance will only run in a + Capacity Reservation or Capacity Reservation group. If capacity isn't + available, the instance will fail to launch. + + - `open` - The instance can run in any `open` Capacity Reservation that + has matching attributes (instance type, platform, Availability Zone, + tenancy). + + - `none` - The instance avoids running in a Capacity Reservation even if + one is available. The instance runs in On-Demand capacity. + """ + capacity_reservation_target: ( + CapacityReservationTarget | CapacityReservationTargetDict | None + ) + """ + Information about the target Capacity Reservation or Capacity + Reservation group. + """ + @dataclass(kw_only=True) class LaunchTemplateCapacityReservationSpecificationResponse(_SerdeShape): """Information about the Capacity Reservation targeting option.""" @@ -512,6 +691,23 @@ class LaunchTemplateConfig(_SerdeShape): launch template. """ +class LaunchTemplateConfigDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateConfig`.""" + + launch_template_specification: ( + FleetLaunchTemplateSpecification | FleetLaunchTemplateSpecificationDict | None + ) + """ + The launch template to use. Make sure that the launch template does not + contain the `NetworkInterfaceId` parameter because you can't specify a + network interface ID in a Spot Fleet. + """ + overrides: Sequence[LaunchTemplateOverrides | LaunchTemplateOverridesDict] | None + """ + Any parameters that you specify override the same parameters in the + launch template. + """ + @dataclass(kw_only=True) class LaunchTemplateCpuOptions(_SerdeShape): """The CPU options for the instance.""" @@ -560,6 +756,33 @@ class LaunchTemplateCpuOptionsRequest(_SerdeShape): disabled for the instance. """ +class LaunchTemplateCpuOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateCpuOptionsRequest`.""" + + core_count: int | None + """The number of CPU cores for the instance.""" + threads_per_core: int | None + """ + The number of threads per CPU core. To disable multithreading for the + instance, specify a value of `1`. Otherwise, specify the default value + of `2`. + """ + amd_sev_snp: str | None + """ + Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is + supported with M6a, R6a, and C6a instance types only. For more + information, see [AMD SEV-SNP for Amazon EC2 + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html). + """ + nested_virtualization: str | None + """ + Indicates whether to enable the instance for nested virtualization. + Nested virtualization is supported only on 8th generation Intel-based + instance types (c8i, m8i, r8i, and their flex variants). When nested + virtualization is enabled, Virtual Secure Mode (VSM) is automatically + disabled for the instance. + """ + @dataclass(kw_only=True) class LaunchTemplateEbsBlockDevice(_SerdeShape): """Describes a block device for an EBS volume.""" @@ -704,6 +927,114 @@ class LaunchTemplateEbsBlockDeviceRequest(_SerdeShape): cards. The default EBS card index is 0. """ +class LaunchTemplateEbsBlockDeviceRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateEbsBlockDeviceRequest`.""" + + encrypted: bool | None + """ + Indicates whether the EBS volume is encrypted. Encrypted volumes can + only be attached to instances that support Amazon EBS encryption. If you + are creating a volume from a snapshot, you can't specify an encryption + value. + """ + delete_on_termination: bool | None + """Indicates whether the EBS volume is deleted on instance termination.""" + iops: int | None + """ + The number of I/O operations per second (IOPS). For `gp3`, `io1`, and + `io2` volumes, this represents the number of IOPS that are provisioned + for the volume. For `gp2` volumes, this represents the baseline + performance of the volume and the rate at which the volume accumulates + I/O credits for bursting. + + The following are the supported values for each volume type: + + - `gp3`: 3,000 - 80,000 IOPS + + - `io1`: 100 - 64,000 IOPS + + - `io2`: 100 - 256,000 IOPS + + For `io2` volumes, you can achieve up to 256,000 IOPS on [instances + built on the Nitro + System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html). + On other instances, you can achieve performance up to 32,000 IOPS. + + This parameter is supported for `io1`, `io2`, and `gp3` volumes only. + """ + kms_key_id: str | None + """ + Identifier (key ID, key alias, key ARN, or alias ARN) of the customer + managed KMS key to use for EBS encryption. + """ + snapshot_id: str | None + """The ID of the snapshot.""" + volume_size: int | None + """ + The size of the volume, in GiBs. You must specify either a snapshot ID + or a volume size. The following are the supported volumes sizes for each + volume type: + + - `gp2`: 1 - 16,384 GiB + + - `gp3`: 1 - 65,536 GiB + + - `io1`: 4 - 16,384 GiB + + - `io2`: 4 - 65,536 GiB + + - `st1` and `sc1`: 125 - 16,384 GiB + + - `standard`: 1 - 1024 GiB + """ + volume_type: str | None + """ + The volume type. For more information, see [Amazon EBS volume + types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html) + in the *Amazon EBS User Guide*. + """ + throughput: int | None + """ + The throughput to provision for a `gp3` volume, with a maximum of 2,000 + MiB/s. + + Valid Range: Minimum value of 125. Maximum value of 2,000. + """ + volume_initialization_rate: int | None + """ + Specifies the Amazon EBS Provisioned Rate for Volume Initialization + (volume initialization rate), in MiB/s, at which to download the + snapshot blocks from Amazon S3 to the volume. This is also known as + *volume initialization*. Specifying a volume initialization rate ensures + that the volume is initialized at a predictable and consistent rate + after creation. + + This parameter is supported only for volumes created from snapshots. + Omit this parameter if: + + - You want to create the volume using fast snapshot restore. You must + specify a snapshot that is enabled for fast snapshot restore. In this + case, the volume is fully initialized at creation. + + Note: + If you specify a snapshot that is enabled for fast snapshot restore + and a volume initialization rate, the volume will be initialized at + the specified rate instead of fast snapshot restore. + + - You want to create a volume that is initialized at the default rate. + + For more information, see [Initialize Amazon EBS + volumes](https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html) + in the *Amazon EC2 User Guide*. + + Valid range: 100 - 300 MiB/s + """ + ebs_card_index: int | None + """ + The index of the EBS card. Some instance types support multiple EBS + cards. The default EBS card index is 0. + """ + @dataclass(kw_only=True) class LaunchTemplateElasticInferenceAccelerator(_SerdeShape): """ @@ -721,6 +1052,17 @@ class LaunchTemplateElasticInferenceAccelerator(_SerdeShape): count: int | None = ... """The number of elastic inference accelerators to attach to the instance.""" +class LaunchTemplateElasticInferenceAcceleratorDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateElasticInferenceAccelerator`.""" + + type: Required[str] + """ + The type of elastic inference accelerator. The possible values are + eia1.medium, eia1.large, and eia1.xlarge. + """ + count: int | None + """The number of elastic inference accelerators to attach to the instance.""" + @dataclass(kw_only=True) class LaunchTemplateElasticInferenceAcceleratorResponse(_SerdeShape): """ @@ -808,6 +1150,15 @@ class LaunchTemplateEnclaveOptionsRequest(_SerdeShape): parameter to `true`. """ +class LaunchTemplateEnclaveOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateEnclaveOptionsRequest`.""" + + enabled: bool | None + """ + To enable the instance for Amazon Web Services Nitro Enclaves, set this + parameter to `true`. + """ + class LaunchTemplateErrorCode(UnknownEnumMixin, StrEnum): LAUNCH_TEMPLATE_ID_DOES_NOT_EXIST = "launchTemplateIdDoesNotExist" LAUNCH_TEMPLATE_ID_MALFORMED = "launchTemplateIdMalformed" @@ -842,6 +1193,17 @@ class LaunchTemplateHibernationOptionsRequest(_SerdeShape): Default: `false` """ +class LaunchTemplateHibernationOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateHibernationOptionsRequest`.""" + + configured: bool | None + """ + If you set this parameter to `true`, the instance is enabled for + hibernation. + + Default: `false` + """ + class LaunchTemplateHttpTokensState(UnknownEnumMixin, StrEnum): OPTIONAL = "optional" REQUIRED = "required" @@ -864,6 +1226,14 @@ class LaunchTemplateIamInstanceProfileSpecificationRequest(_SerdeShape): name: str | None = ... """The name of the instance profile.""" +class LaunchTemplateIamInstanceProfileSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateIamInstanceProfileSpecificationRequest`.""" + + arn: str | None + """The Amazon Resource Name (ARN) of the instance profile.""" + name: str | None + """The name of the instance profile.""" + @dataclass(kw_only=True) class LaunchTemplateInstanceMaintenanceOptions(_SerdeShape): """The maintenance options of your instance.""" @@ -885,11 +1255,21 @@ class LaunchTemplateInstanceMaintenanceOptionsRequest(_SerdeShape): recovery](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery). """ -@dataclass(kw_only=True) -class LaunchTemplateInstanceMarketOptions(_SerdeShape): - """The market (purchasing) option for the instances.""" +class LaunchTemplateInstanceMaintenanceOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateInstanceMaintenanceOptionsRequest`.""" - market_type: str | None = ... + auto_recovery: str | None + """ + Disables the automatic recovery behavior of your instance or sets it to + default. For more information, see [Simplified automatic + recovery](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery). + """ + +@dataclass(kw_only=True) +class LaunchTemplateInstanceMarketOptions(_SerdeShape): + """The market (purchasing) option for the instances.""" + + market_type: str | None = ... """The market type.""" spot_options: LaunchTemplateSpotMarketOptions | None = ... """The options for Spot Instances.""" @@ -903,6 +1283,18 @@ class LaunchTemplateInstanceMarketOptionsRequest(_SerdeShape): spot_options: LaunchTemplateSpotMarketOptionsRequest | None = ... """The options for Spot Instances.""" +class LaunchTemplateInstanceMarketOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateInstanceMarketOptionsRequest`.""" + + market_type: str | None + """The market type.""" + spot_options: ( + LaunchTemplateSpotMarketOptionsRequest + | LaunchTemplateSpotMarketOptionsRequestDict + | None + ) + """The options for Spot Instances.""" + class LaunchTemplateInstanceMetadataEndpointState(UnknownEnumMixin, StrEnum): DISABLED = "disabled" ENABLED = "enabled" @@ -1038,6 +1430,63 @@ class LaunchTemplateInstanceMetadataOptionsRequest(_SerdeShape): Default: `disabled` """ +class LaunchTemplateInstanceMetadataOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateInstanceMetadataOptionsRequest`.""" + + http_tokens: str | None + """ + Indicates whether IMDSv2 is required. + + - `optional` - IMDSv2 is optional. You can choose whether to send a + session token in your instance metadata retrieval requests. If you + retrieve IAM role credentials without a session token, you receive the + IMDSv1 role credentials. If you retrieve IAM role credentials using a + valid session token, you receive the IMDSv2 role credentials. + + - `required` - IMDSv2 is required. You must send a session token in your + instance metadata retrieval requests. With this option, retrieving the + IAM role credentials always returns IMDSv2 credentials; IMDSv1 + credentials are not available. + + Default: If the value of `ImdsSupport` for the Amazon Machine Image + (AMI) for your instance is `v2.0`, the default is `required`. + """ + http_put_response_hop_limit: int | None + """ + The desired HTTP PUT response hop limit for instance metadata requests. + The larger the number, the further instance metadata requests can + travel. + + Default: `1` + + Possible values: Integers from 1 to 64 + """ + http_endpoint: str | None + """ + Enables or disables the HTTP metadata endpoint on your instances. If the + parameter is not specified, the default state is `enabled`. + + Note: + If you specify a value of `disabled`, you will not be able to access + your instance metadata. + """ + http_protocol_ipv6: str | None + """ + Enables or disables the IPv6 endpoint for the instance metadata service. + + Default: `disabled` + """ + instance_metadata_tags: str | None + """ + Set to `enabled` to allow access to instance tags from the instance + metadata. Set to `disabled` to turn off access to instance tags from the + instance metadata. For more information, see [View tags for your EC2 + instances using instance + metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-tags-in-IMDS.html). + + Default: `disabled` + """ + class LaunchTemplateInstanceMetadataOptionsState(UnknownEnumMixin, StrEnum): PENDING = "pending" APPLIED = "applied" @@ -1280,6 +1729,156 @@ class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest(_SerdeShape): ena_queue_count: int | None = ... """The number of ENA queues to be created with the instance.""" +class LaunchTemplateInstanceNetworkInterfaceSpecificationRequestDict( + TypedDict, total=False +): + """Dictionary form of `LaunchTemplateInstanceNetworkInterfaceSpecificationRequest`.""" + + associate_carrier_ip_address: bool | None + """ + Associates a Carrier IP address with eth0 for a new network interface. + + Use this option when you launch an instance in a Wavelength Zone and + want to associate a Carrier IP address with the network interface. For + more information about Carrier IP addresses, see [Carrier IP + addresses](https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) + in the *Wavelength Developer Guide*. + """ + associate_public_ip_address: bool | None + """ + Associates a public IPv4 address with eth0 for a new network interface. + + Amazon Web Services charges for all public IPv4 addresses, including + public IPv4 addresses associated with running instances and Elastic IP + addresses. For more information, see the *Public IPv4 Address* tab on + the [Amazon VPC pricing page](http://aws.amazon.com/vpc/pricing/). + """ + delete_on_termination: bool | None + """ + Indicates whether the network interface is deleted when the instance is + terminated. + """ + description: str | None + """A description for the network interface.""" + device_index: int | None + """ + The device index for the network interface attachment. The primary + network interface has a device index of 0. Each network interface is of + type `interface`, you must specify a device index. If you create a + launch template that includes secondary network interfaces but not a + primary network interface, then you must add a primary network interface + as a launch parameter when you launch an instance from the template. + """ + groups: Sequence[str] | None + """The IDs of one or more security groups.""" + interface_type: str | None + """ + The type of network interface. To create an Elastic Fabric Adapter + (EFA), specify `efa` or `efa`. For more information, see [Elastic Fabric + Adapter for AI/ML and HPC workloads on Amazon + EC2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in + the *Amazon EC2 User Guide*. + + If you are not creating an EFA, specify `interface` or omit this + parameter. + + If you specify `efa-only`, do not assign any IP addresses to the network + interface. EFA-only network interfaces do not support IP addresses. + + Valid values: `interface` | `efa` | `efa-only` + """ + ipv6_address_count: int | None + """ + The number of IPv6 addresses to assign to a network interface. Amazon + EC2 automatically selects the IPv6 addresses from the subnet range. You + can't use this option if specifying specific IPv6 addresses. + """ + ipv6_addresses: ( + Sequence[InstanceIpv6AddressRequest | InstanceIpv6AddressRequestDict] | None + ) + """ + One or more specific IPv6 addresses from the IPv6 CIDR block range of + your subnet. You can't use this option if you're specifying a number + of IPv6 addresses. + """ + network_interface_id: str | None + """The ID of the network interface.""" + private_ip_address: str | None + """The primary private IPv4 address of the network interface.""" + private_ip_addresses: ( + Sequence[PrivateIpAddressSpecification | PrivateIpAddressSpecificationDict] + | None + ) + """One or more private IPv4 addresses.""" + secondary_private_ip_address_count: int | None + """ + The number of secondary private IPv4 addresses to assign to a network + interface. + """ + subnet_id: str | None + """The ID of the subnet for the network interface.""" + network_card_index: int | None + """ + The index of the network card. Some instance types support multiple + network cards. The primary network interface must be assigned to network + card index 0. The default is network card index 0. + """ + ipv4_prefixes: ( + Sequence[Ipv4PrefixSpecificationRequest | Ipv4PrefixSpecificationRequestDict] + | None + ) + """ + One or more IPv4 prefixes to be assigned to the network interface. You + cannot use this option if you use the `Ipv4PrefixCount` option. + """ + ipv4_prefix_count: int | None + """ + The number of IPv4 prefixes to be automatically assigned to the network + interface. You cannot use this option if you use the `Ipv4Prefix` + option. + """ + ipv6_prefixes: ( + Sequence[Ipv6PrefixSpecificationRequest | Ipv6PrefixSpecificationRequestDict] + | None + ) + """ + One or more IPv6 prefixes to be assigned to the network interface. You + cannot use this option if you use the `Ipv6PrefixCount` option. + """ + ipv6_prefix_count: int | None + """ + The number of IPv6 prefixes to be automatically assigned to the network + interface. You cannot use this option if you use the `Ipv6Prefix` + option. + """ + primary_ipv6: bool | None + """ + The primary IPv6 address of the network interface. When you enable an + IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made + the primary IPv6 address until the instance is terminated or the network + interface is detached. For more information about primary IPv6 + addresses, see + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html). + """ + ena_srd_specification: ( + EnaSrdSpecificationRequest | EnaSrdSpecificationRequestDict | None + ) + """Configure ENA Express settings for your launch template.""" + connection_tracking_specification: ( + ConnectionTrackingSpecificationRequest + | ConnectionTrackingSpecificationRequestDict + | None + ) + """ + A security group connection tracking specification that enables you to + set the timeout for connection tracking on an Elastic network interface. + For more information, see [Idle connection tracking + timeout](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts) + in the *Amazon EC2 User Guide*. + """ + ena_queue_count: int | None + """The number of ENA queues to be created with the instance.""" + @dataclass(kw_only=True) class LaunchTemplateInstanceSecondaryInterfaceSpecification(_SerdeShape): """Describes a secondary interface specification in a launch template.""" @@ -1349,6 +1948,40 @@ class LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest(_SerdeShape): network_card_index: int | None = ... """The index of the network card.""" +class LaunchTemplateInstanceSecondaryInterfaceSpecificationRequestDict( + TypedDict, total=False +): + """Dictionary form of `LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest`.""" + + delete_on_termination: bool | None + """ + Indicates whether the secondary interface is deleted when the instance + is terminated. + + The only supported value for this field is `true`. + """ + device_index: int | None + """The device index for the secondary interface attachment.""" + private_ip_addresses: ( + Sequence[ + SecondaryInterfacePrivateIpAddressSpecificationRequest + | SecondaryInterfacePrivateIpAddressSpecificationRequestDict + ] + | None + ) + """The private IPv4 addresses to assign to the secondary interface.""" + private_ip_address_count: int | None + """ + The number of private IPv4 addresses to assign to the secondary + interface. + """ + secondary_subnet_id: str | None + """The ID of the secondary subnet.""" + interface_type: str | None + """The type of secondary interface.""" + network_card_index: int | None + """The index of the network card.""" + @dataclass(kw_only=True) class LaunchTemplateLicenseConfiguration(_SerdeShape): """Describes a license configuration.""" @@ -1363,6 +1996,12 @@ class LaunchTemplateLicenseConfigurationRequest(_SerdeShape): license_configuration_arn: str | None = ... """The Amazon Resource Name (ARN) of the license configuration.""" +class LaunchTemplateLicenseConfigurationRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateLicenseConfigurationRequest`.""" + + license_configuration_arn: str | None + """The Amazon Resource Name (ARN) of the license configuration.""" + @dataclass(kw_only=True) class LaunchTemplateNetworkPerformanceOptions(_SerdeShape): """ @@ -1394,18 +2033,42 @@ class LaunchTemplateNetworkPerformanceOptionsRequest(_SerdeShape): default - : This option uses the standard bandwidth configuration for your - instance type. + : This option uses the standard bandwidth configuration for your + instance type. + + vpc-1 + + : This option boosts your networking baseline bandwidth and reduces + your EBS baseline bandwidth. + + ebs-1 + + : This option boosts your EBS baseline bandwidth and reduces your + networking baseline bandwidth. + """ + +class LaunchTemplateNetworkPerformanceOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateNetworkPerformanceOptionsRequest`.""" + + bandwidth_weighting: str | None + """ + Specify the bandwidth weighting option to boost the associated type of + baseline bandwidth, as follows: + + default + + : This option uses the standard bandwidth configuration for your + instance type. vpc-1 - : This option boosts your networking baseline bandwidth and reduces your - EBS baseline bandwidth. + : This option boosts your networking baseline bandwidth and reduces + your EBS baseline bandwidth. ebs-1 - : This option boosts your EBS baseline bandwidth and reduces your - networking baseline bandwidth. + : This option boosts your EBS baseline bandwidth and reduces your + networking baseline bandwidth. """ @dataclass(kw_only=True) @@ -1494,35 +2157,120 @@ class LaunchTemplateOverrides(_SerdeShape): the request, but not both. """ -@dataclass(kw_only=True) -class LaunchTemplatePlacement(_SerdeShape): - """Describes the placement of an instance.""" +class LaunchTemplateOverridesDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateOverrides`.""" - availability_zone: str | None = ... - """The Availability Zone of the instance.""" - availability_zone_id: str | None = ... - """The ID of the Availability Zone of the instance.""" - affinity: str | None = ... - """The affinity setting for the instance on the Dedicated Host.""" - group_name: str | None = ... - """The name of the placement group for the instance.""" - host_id: str | None = ... - """The ID of the Dedicated Host for the instance.""" - tenancy: str | None = ... + instance_type: str | None + """The instance type.""" + spot_price: str | None """ - The tenancy of the instance. An instance with a tenancy of `dedicated` - runs on single-tenant hardware. + The maximum price per unit hour that you are willing to pay for a Spot + Instance. We do not recommend using this parameter because it can lead + to increased interruptions. If you do not specify this parameter, you + will pay the current Spot price. + + Warning: + If you specify a maximum price, your instances will be interrupted more + frequently than if you do not specify this parameter. """ - spread_domain: str | None = ... - """Reserved for future use.""" - host_resource_group_arn: str | None = ... - """The ARN of the host resource group in which to launch the instances.""" - partition_number: int | None = ... + subnet_id: str | None + """The ID of the subnet in which to launch the instances.""" + availability_zone: str | None """ - The number of the partition the instance should launch in. Valid only if - the placement group strategy is set to `partition`. + The Availability Zone in which to launch the instances. For example, + `us-east-2a`. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. """ - group_id: str | None = ... + weighted_capacity: float | None + """ + The number of units provided by the specified instance type. These are + the same units that you chose to set the target capacity in terms of + instances, or a performance characteristic such as vCPUs, memory, or + I/O. + + If the target capacity divided by this value is not a whole number, + Amazon EC2 rounds the number of instances to the next whole number. If + this value is not specified, the default is 1. + + Note: + When specifying weights, the price used in the `lowestPrice` and + `priceCapacityOptimized` allocation strategies is per *unit* hour (where + the instance price is divided by the specified weight). However, if all + the specified weights are above the requested `TargetCapacity`, + resulting in only 1 instance being launched, the price used is per + *instance* hour. + """ + priority: float | None + """ + The priority for the launch template override. The highest priority is + launched first. + + If `OnDemandAllocationStrategy` is set to `prioritized`, Spot Fleet uses + priority to determine which launch template override to use first in + fulfilling On-Demand capacity. + + If the Spot `AllocationStrategy` is set to + `capacityOptimizedPrioritized`, Spot Fleet uses priority on a + best-effort basis to determine which launch template override to use in + fulfilling Spot capacity, but optimizes for capacity first. + + Valid values are whole numbers starting at `0`. The lower the number, + the higher the priority. If no number is set, the launch template + override has the lowest priority. You can set the same priority for + different launch template overrides. + """ + instance_requirements: InstanceRequirements | InstanceRequirementsDict | None + """ + The instance requirements. When you specify instance requirements, + Amazon EC2 will identify instance types with the provided requirements, + and then use your On-Demand and Spot allocation strategies to launch + instances from these instance types, in the same way as when you specify + a list of instance types. + + Note: + If you specify `InstanceRequirements`, you can't specify + `InstanceType`. + """ + availability_zone_id: str | None + """ + The ID of the Availability Zone in which to launch the instances. For + example, `use2-az1`. + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + +@dataclass(kw_only=True) +class LaunchTemplatePlacement(_SerdeShape): + """Describes the placement of an instance.""" + + availability_zone: str | None = ... + """The Availability Zone of the instance.""" + availability_zone_id: str | None = ... + """The ID of the Availability Zone of the instance.""" + affinity: str | None = ... + """The affinity setting for the instance on the Dedicated Host.""" + group_name: str | None = ... + """The name of the placement group for the instance.""" + host_id: str | None = ... + """The ID of the Dedicated Host for the instance.""" + tenancy: str | None = ... + """ + The tenancy of the instance. An instance with a tenancy of `dedicated` + runs on single-tenant hardware. + """ + spread_domain: str | None = ... + """Reserved for future use.""" + host_resource_group_arn: str | None = ... + """The ARN of the host resource group in which to launch the instances.""" + partition_number: int | None = ... + """ + The number of the partition the instance should launch in. Valid only if + the placement group strategy is set to `partition`. + """ + group_id: str | None = ... """ The Group ID of the placement group. You must specify the Placement Group **Group ID** to launch an instance in a shared placement group. @@ -1576,6 +2324,53 @@ class LaunchTemplatePlacementRequest(_SerdeShape): **Group Id** to launch an instance in a shared placement group. """ +class LaunchTemplatePlacementRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplatePlacementRequest`.""" + + availability_zone: str | None + """ + The Availability Zone for the instance. + + Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but + not both + """ + availability_zone_id: str | None + """ + The ID of the Availability Zone for the instance. + + Either `AvailabilityZone` or `AvailabilityZoneId` can be specified, but + not both + """ + affinity: str | None + """The affinity setting for an instance on a Dedicated Host.""" + group_name: str | None + """The name of the placement group for the instance.""" + host_id: str | None + """The ID of the Dedicated Host for the instance.""" + tenancy: str | None + """ + The tenancy of the instance. An instance with a tenancy of dedicated + runs on single-tenant hardware. + """ + spread_domain: str | None + """Reserved for future use.""" + host_resource_group_arn: str | None + """ + The ARN of the host resource group in which to launch the instances. If + you specify a host resource group ARN, omit the **Tenancy** parameter or + set it to `host`. + """ + partition_number: int | None + """ + The number of the partition the instance should launch in. Valid only if + the placement group strategy is set to `partition`. + """ + group_id: str | None + """ + The Group Id of a placement group. You must specify the Placement Group + **Group Id** to launch an instance in a shared placement group. + """ + @dataclass(kw_only=True) class LaunchTemplatePrivateDnsNameOptions(_SerdeShape): """Describes the options for instance hostnames.""" @@ -1616,6 +2411,28 @@ class LaunchTemplatePrivateDnsNameOptionsRequest(_SerdeShape): DNS AAAA records. """ +class LaunchTemplatePrivateDnsNameOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplatePrivateDnsNameOptionsRequest`.""" + + hostname_type: str | None + """ + The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an + instance DNS name must be based on the instance IPv4 address. For IPv6 + native subnets, an instance DNS name must be based on the instance ID. + For dual-stack subnets, you can specify whether DNS names use the + instance IPv4 address or the instance ID. + """ + enable_resource_name_dns_a_record: bool | None + """ + Indicates whether to respond to DNS queries for instance hostnames with + DNS A records. + """ + enable_resource_name_dns_aaaa_record: bool | None + """ + Indicates whether to respond to DNS queries for instance hostnames with + DNS AAAA records. + """ + @dataclass(kw_only=True) class LaunchTemplatesMonitoring(_SerdeShape): """Describes the monitoring for the instance.""" @@ -1636,6 +2453,15 @@ class LaunchTemplatesMonitoringRequest(_SerdeShape): monitoring is enabled. """ +class LaunchTemplatesMonitoringRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplatesMonitoringRequest`.""" + + enabled: bool | None + """ + Specify `true` to enable detailed monitoring. Otherwise, basic + monitoring is enabled. + """ + @dataclass(kw_only=True) class LaunchTemplateSpecification(_SerdeShape): """Describes the launch template to use.""" @@ -1665,6 +2491,34 @@ class LaunchTemplateSpecification(_SerdeShape): Default: The default version of the launch template. """ +class LaunchTemplateSpecificationDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateSpecification`.""" + + launch_template_id: str | None + """ + The ID of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + launch_template_name: str | None + """ + The name of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + version: str | None + """ + The launch template version number, `$Latest`, or `$Default`. + + A value of `$Latest` uses the latest version of the launch template. + + A value of `$Default` uses the default version of the launch template. + + Default: The default version of the launch template. + """ + @dataclass(kw_only=True) class LaunchTemplateSpotMarketOptions(_SerdeShape): """The options for Spot Instances.""" @@ -1739,6 +2593,47 @@ class LaunchTemplateSpotMarketOptionsRequest(_SerdeShape): `terminate`. """ +class LaunchTemplateSpotMarketOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateSpotMarketOptionsRequest`.""" + + max_price: str | None + """ + The maximum hourly price you're willing to pay for a Spot Instance. We + do not recommend using this parameter because it can lead to increased + interruptions. If you do not specify this parameter, you will pay the + current Spot price. If you do specify this parameter, it must be more + than USD $0.001. Specifying a value below USD $0.001 will result in an + `InvalidParameterValue` error message when the launch template is used + to launch an instance. + + Warning: + If you specify a maximum price, your Spot Instances will be interrupted + more frequently than if you do not specify this parameter. + """ + spot_instance_type: str | None + """The Spot Instance request type.""" + block_duration_minutes: int | None + """Deprecated.""" + valid_until: datetime | None + """ + The end date of the request, in UTC format (*YYYY-MM-DD*T*HH:MM:SS*Z). + Supported only for persistent requests. + + - For a persistent request, the request remains active until the + `ValidUntil` date and time is reached. Otherwise, the request remains + active until you cancel it. + + - For a one-time request, `ValidUntil` is not supported. The request + remains active until all instances launch or you cancel the request. + + Default: 7 days from the current date + """ + instance_interruption_behavior: str | None + """ + The behavior when a Spot Instance is interrupted. The default is + `terminate`. + """ + @dataclass(kw_only=True) class LaunchTemplateTagSpecification(_SerdeShape): """The tags specification for the launch template.""" @@ -1772,6 +2667,26 @@ class LaunchTemplateTagSpecificationRequest(_SerdeShape): tags: list[Tag] | None = ... """The tags to apply to the resource.""" +class LaunchTemplateTagSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `LaunchTemplateTagSpecificationRequest`.""" + + resource_type: str | None + """ + The type of resource to tag. + + Valid Values lists all resource types for Amazon EC2 that can be tagged. + When you create a launch template, you can specify tags for the + following resource types only: `instance` | `volume` | + `network-interface` | `spot-instances-request`. If the instance does + not include the resource type that you specify, the instance launch + fails. For example, not all instance types include a volume. + + To tag a resource after it has been created, see + [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). + """ + tags: Sequence[Tag | TagDict] | None + """The tags to apply to the resource.""" + @dataclass(kw_only=True) class LaunchTemplateVersion(_SerdeShape): """Describes a launch template version.""" @@ -1809,6 +2724,12 @@ class LicenseConfigurationRequest(_SerdeShape): license_configuration_arn: str | None = ... """The Amazon Resource Name (ARN) of the license configuration.""" +class LicenseConfigurationRequestDict(TypedDict, total=False): + """Dictionary form of `LicenseConfigurationRequest`.""" + + license_configuration_arn: str | None + """The Amazon Resource Name (ARN) of the license configuration.""" + @dataclass(kw_only=True) class ListImagesInRecycleBinInput(_SerdeShape): """Dataclass for ListImagesInRecycleBinInput structure.""" @@ -1839,6 +2760,35 @@ class ListImagesInRecycleBinInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ListImagesInRecycleBinInputDict(TypedDict, total=False): + """Dictionary form of `ListImagesInRecycleBinInput`.""" + + image_ids: Sequence[str] | None + """ + The IDs of the AMIs to list. Omit this parameter to list all of the AMIs + that are in the Recycle Bin. You can specify up to 20 IDs in a single + request. + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ListImagesInRecycleBinOutput(_SerdeShape): """Dataclass for ListImagesInRecycleBinOutput structure.""" @@ -1899,21 +2849,49 @@ class ListSnapshotsInRecycleBinInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class ListSnapshotsInRecycleBinOutput(_SerdeShape): - """Dataclass for ListSnapshotsInRecycleBinOutput structure.""" +class ListSnapshotsInRecycleBinInputDict(TypedDict, total=False): + """Dictionary form of `ListSnapshotsInRecycleBinInput`.""" - snapshots: list[SnapshotRecycleBinInfo] | None = ... - """Information about the snapshots.""" - next_token: str | None = ... + max_results: int | None """ - The token to include in another request to get the next page of items. - This value is `null` when there are no more items to return. + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). """ - response_metadata: ResponseMetadata = ... + next_token: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + snapshot_ids: Sequence[str] | None + """ + The IDs of the snapshots to list. Omit this parameter to list all of the + snapshots that are in the Recycle Bin. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class ListSnapshotsInRecycleBinOutput(_SerdeShape): + """Dataclass for ListSnapshotsInRecycleBinOutput structure.""" + + snapshots: list[SnapshotRecycleBinInfo] | None = ... + """Information about the snapshots.""" + next_token: str | None = ... + """ + The token to include in another request to get the next page of items. + This value is `null` when there are no more items to return. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. """ @@ -1949,6 +2927,36 @@ class ListVolumesInRecycleBinInput(_SerdeShape): continues from the end of the items returned by the previous request. """ +class ListVolumesInRecycleBinInputDict(TypedDict, total=False): + """Dictionary form of `ListVolumesInRecycleBinInput`.""" + + volume_ids: Sequence[str] | None + """ + The IDs of the volumes to list. Omit this parameter to list all of the + volumes that are in the Recycle Bin. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + max_results: int | None + """ + The maximum number of items to return for this request. To get the next + page of items, make another request with the token returned in the + output. For more information, see + [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). + + Valid range: 5 - 500 + """ + next_token: str | None + """ + The token returned from a previous paginated request. Pagination + continues from the end of the items returned by the previous request. + """ + @dataclass(kw_only=True) class ListVolumesInRecycleBinOutput(_SerdeShape): """Dataclass for ListVolumesInRecycleBinOutput structure.""" @@ -1980,6 +2988,16 @@ class LoadBalancersConfig(_SerdeShape): target_groups_config: TargetGroupsConfig | None = ... """The target groups.""" +class LoadBalancersConfigDict(TypedDict, total=False): + """Dictionary form of `LoadBalancersConfig`.""" + + classic_load_balancers_config: ( + ClassicLoadBalancersConfig | ClassicLoadBalancersConfigDict | None + ) + """The Classic Load Balancers.""" + target_groups_config: TargetGroupsConfig | TargetGroupsConfigDict | None + """The target groups.""" + @dataclass(kw_only=True) class LoadPermission(_SerdeShape): """Describes a load permission.""" @@ -2001,6 +3019,14 @@ class LoadPermissionModifications(_SerdeShape): remove: list[LoadPermissionRequest] | None = ... """The load permissions to remove.""" +class LoadPermissionModificationsDict(TypedDict, total=False): + """Dictionary form of `LoadPermissionModifications`.""" + + add: Sequence[LoadPermissionRequest | LoadPermissionRequestDict] | None + """The load permissions to add.""" + remove: Sequence[LoadPermissionRequest | LoadPermissionRequestDict] | None + """The load permissions to remove.""" + @dataclass(kw_only=True) class LoadPermissionRequest(_SerdeShape): """Describes a load permission.""" @@ -2010,6 +3036,14 @@ class LoadPermissionRequest(_SerdeShape): user_id: str | None = ... """The Amazon Web Services account ID.""" +class LoadPermissionRequestDict(TypedDict, total=False): + """Dictionary form of `LoadPermissionRequest`.""" + + group: str | None + """The name of the group.""" + user_id: str | None + """The Amazon Web Services account ID.""" + @dataclass(kw_only=True) class LocalGateway(_SerdeShape): """Describes a local gateway.""" @@ -2400,6 +3434,88 @@ class LockSnapshotInput(_SerdeShape): both. """ +class LockSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `LockSnapshotInput`.""" + + snapshot_id: Required[str] + """The ID of the snapshot to lock.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + lock_mode: Required[str] + """ + The mode in which to lock the snapshot. Specify one of the following: + + - `governance` - Locks the snapshot in governance mode. Snapshots locked + in governance mode can't be deleted until one of the following + conditions are met: + + - The lock duration expires. + + - The snapshot is unlocked by a user with the appropriate permissions. + + Users with the appropriate IAM permissions can unlock the snapshot, + increase or decrease the lock duration, and change the lock mode to + `compliance` at any time. + + If you lock a snapshot in `governance` mode, omit **CoolOffPeriod**. + + - `compliance` - Locks the snapshot in compliance mode. Snapshots locked + in compliance mode can't be unlocked by any user. They can be deleted + only after the lock duration expires. Users can't decrease the lock + duration or change the lock mode to `governance`. However, users with + appropriate IAM permissions can increase the lock duration at any + time. + + If you lock a snapshot in `compliance` mode, you can optionally + specify **CoolOffPeriod**. + """ + cool_off_period: int | None + """ + The cooling-off period during which you can unlock the snapshot or + modify the lock settings after locking the snapshot in compliance mode, + in hours. After the cooling-off period expires, you can't unlock or + delete the snapshot, decrease the lock duration, or change the lock + mode. You can increase the lock duration after the cooling-off period + expires. + + The cooling-off period is optional when locking a snapshot in compliance + mode. If you are locking the snapshot in governance mode, omit this + parameter. + + To lock the snapshot in compliance mode immediately without a + cooling-off period, omit this parameter. + + If you are extending the lock duration for a snapshot that is locked in + compliance mode after the cooling-off period has expired, omit this + parameter. If you specify a cooling-period in a such a request, the + request fails. + + Allowed values: Min 1, max 72. + """ + lock_duration: int | None + """ + The period of time for which to lock the snapshot, in days. The snapshot + lock will automatically expire after this period lapses. + + You must specify either this parameter or **ExpirationDate**, but not + both. + + Allowed values: Min: 1, max 36500 + """ + expiration_date: datetime | None + """ + The date and time at which the snapshot lock is to automatically expire, + in the UTC time zone (`YYYY-MM-DDThh:mm:ss.sssZ`). + + You must specify either this parameter or **LockDuration**, but not + both. + """ + @dataclass(kw_only=True) class LockSnapshotOutput(_SerdeShape): """Dataclass for LockSnapshotOutput structure.""" @@ -2575,6 +3691,24 @@ class MacSystemIntegrityProtectionConfigurationRequest(_SerdeShape): nvram_protections: str | None = ... """Enables or disables Nvram Protections.""" +class MacSystemIntegrityProtectionConfigurationRequestDict(TypedDict, total=False): + """Dictionary form of `MacSystemIntegrityProtectionConfigurationRequest`.""" + + apple_internal: str | None + """Enables or disables Apple Internal.""" + base_system: str | None + """Enables or disables Base System.""" + debugging_restrictions: str | None + """Enables or disables Debugging Restrictions.""" + d_trace_restrictions: str | None + """Enables or disables Dtrace Restrictions.""" + filesystem_protections: str | None + """Enables or disables Filesystem Protections.""" + kext_signing: str | None + """Enables or disables Kext Signing.""" + nvram_protections: str | None + """Enables or disables Nvram Protections.""" + class MacSystemIntegrityProtectionSettingStatus(UnknownEnumMixin, StrEnum): ENABLED = "enabled" DISABLED = "disabled" @@ -2714,6 +3848,20 @@ class MemoryGiBPerVCpu(_SerdeShape): specified, there is no maximum limit. """ +class MemoryGiBPerVCpuDict(TypedDict, total=False): + """Dictionary form of `MemoryGiBPerVCpu`.""" + + min: float | None + """ + The minimum amount of memory per vCPU, in GiB. If this parameter is not + specified, there is no minimum limit. + """ + max: float | None + """ + The maximum amount of memory per vCPU, in GiB. If this parameter is not + specified, there is no maximum limit. + """ + @dataclass(kw_only=True) class MemoryGiBPerVCpuRequest(_SerdeShape): """The minimum and maximum amount of memory per vCPU, in GiB.""" @@ -2729,6 +3877,20 @@ class MemoryGiBPerVCpuRequest(_SerdeShape): limit, omit this parameter. """ +class MemoryGiBPerVCpuRequestDict(TypedDict, total=False): + """Dictionary form of `MemoryGiBPerVCpuRequest`.""" + + min: float | None + """ + The minimum amount of memory per vCPU, in GiB. To specify no minimum + limit, omit this parameter. + """ + max: float | None + """ + The maximum amount of memory per vCPU, in GiB. To specify no maximum + limit, omit this parameter. + """ + @dataclass(kw_only=True) class MemoryInfo(_SerdeShape): """Describes the memory for the instance type.""" @@ -2751,6 +3913,20 @@ class MemoryMiB(_SerdeShape): specified, there is no maximum limit. """ +class MemoryMiBDict(TypedDict, total=False): + """Dictionary form of `MemoryMiB`.""" + + min: int | None + """ + The minimum amount of memory, in MiB. If this parameter is not + specified, there is no minimum limit. + """ + max: int | None + """ + The maximum amount of memory, in MiB. If this parameter is not + specified, there is no maximum limit. + """ + @dataclass(kw_only=True) class MemoryMiBRequest(_SerdeShape): """The minimum and maximum amount of memory, in MiB.""" @@ -2766,6 +3942,20 @@ class MemoryMiBRequest(_SerdeShape): this parameter. """ +class MemoryMiBRequestDict(TypedDict, total=False): + """Dictionary form of `MemoryMiBRequest`.""" + + min: Required[int] + """ + The minimum amount of memory, in MiB. To specify no minimum limit, + specify `0`. + """ + max: int | None + """ + The maximum amount of memory, in MiB. To specify no maximum limit, omit + this parameter. + """ + class MetadataDefaultHttpTokensState(UnknownEnumMixin, StrEnum): OPTIONAL = "optional" REQUIRED = "required" @@ -3020,6 +4210,59 @@ class ModifyAccountVpcEncryptionControlInput(_SerdeShape): account-level encryption enforcement. """ +class ModifyAccountVpcEncryptionControlInputDict(TypedDict, total=False): + """Dictionary form of `ModifyAccountVpcEncryptionControlInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + mode: str | None + """The encryption mode for the account encryption control configuration.""" + internet_gateway: str | None + """ + Specifies whether to exclude internet gateway resource from + account-level encryption enforcement. + """ + egress_only_internet_gateway: str | None + """ + Specifies whether to exclude egress-only internet gateway resource from + account-level encryption enforcement. + """ + nat_gateway: str | None + """ + Specifies whether to exclude NAT gateway resource from account-level + encryption enforcement. + """ + virtual_private_gateway: str | None + """ + Specifies whether to exclude virtual private gateway resource from + account-level encryption enforcement. + """ + vpc_peering: str | None + """ + Specifies whether to exclude VPC peering connection resource from + account-level encryption enforcement. + """ + lambda_: str | None + """ + Specifies whether to exclude Lambda service from account-level + encryption enforcement. + """ + vpc_lattice: str | None + """ + Specifies whether to exclude VPC Lattice service from account-level + encryption enforcement. + """ + elastic_file_system: str | None + """ + Specifies whether to exclude Elastic File System service from + account-level encryption enforcement. + """ + @dataclass(kw_only=True) class ModifyAccountVpcEncryptionControlOutput(_SerdeShape): """Dataclass for ModifyAccountVpcEncryptionControlOutput structure.""" @@ -3053,6 +4296,21 @@ class ModifyAddressAttributeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyAddressAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyAddressAttributeInput`.""" + + allocation_id: Required[str] + """[EC2-VPC] The allocation ID.""" + domain_name: str | None + """The domain name to modify for the IP address.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyAddressAttributeOutput(_SerdeShape): """Dataclass for ModifyAddressAttributeOutput structure.""" @@ -3156,18 +4414,108 @@ class ModifyApplicationStatusCheckInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class ModifyApplicationStatusCheckOutput(_SerdeShape): - """Dataclass for ModifyApplicationStatusCheckOutput structure.""" +class ModifyApplicationStatusCheckInputDict(TypedDict, total=False): + """Dictionary form of `ModifyApplicationStatusCheckInput`.""" - application_status_check: ApplicationStatusCheckResponseObject | None = ... - """Information about the modified application status check.""" - response_metadata: ResponseMetadata = ... + application_status_check_id: Required[str] + """The ID of the application status check to modify.""" + aggregation: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The aggregation setting for the application status check. When set to + `included`, the result of this check contributes to the instance-level + application status reported by `DescribeApplicationStatus`. When set to + `excluded`, the check runs independently and does not affect the + instance-level status. Valid values: `included` | `excluded`. + """ + health_check_paths: ( + Sequence[HealthCheckPathRequestObject | HealthCheckPathRequestObjectDict] | None + ) + """The health check paths to use for the application status check.""" + protocol: str | None + """ + The protocol to use for the health check. Valid values: `http` | + `https`. + """ + port: int | None + """The port to use for the health check. Valid values: 1 to 65535.""" + path: str | None + """ + The URL path to use for the health check HTTP request (for example, + `/health` or `/status`). + """ + device_index: int | None + """ + The index of the network device to use for the health check. The value + must be greater than or equal to 0. + """ + ip_version: str | None + """ + The IP version to use for the health check. Valid values: `ipv4` and + `ipv6`. + """ + ip_scope: str | None + """The IP scope to use for the health check. Valid value: `private`.""" + interval: int | None + """The interval, in seconds, between health checks. Valid value: 60.""" + timeout: int | None + """ + The amount of time, in seconds, to wait for a health check response + before considering it failed. Valid values: 1 to 30. The value must be + less than `Interval`. + """ + failure_threshold: int | None + """ + The number of consecutive failed health checks before the application + status is considered impaired. The value must be greater than 0. + """ + success_threshold: int | None + """ + The number of consecutive successful health checks before the + application status is considered healthy. The value must be greater than + 0. + """ + status_code_matcher: str | None + """ + The HTTP status codes that indicate a successful health check response. + Specify a comma-separated list of individual status codes or ranges, for + example, `200,202,300-399`. For a range, the first value must be less + than the second value. Maximum length: 64 characters. + """ + initialization_grace_period_seconds: int | None + """ + The number of seconds to wait before starting health checks after an + instance is launched. Valid values: 1 to 600. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If you retry a request with + the same token, the service ignores the request but does not return an + error. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class ModifyApplicationStatusCheckOutput(_SerdeShape): + """Dataclass for ModifyApplicationStatusCheckOutput structure.""" + + application_status_check: ApplicationStatusCheckResponseObject | None = ... + """Information about the modified application status check.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) @@ -3193,6 +4541,28 @@ class ModifyAvailabilityZoneGroupInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyAvailabilityZoneGroupInputDict(TypedDict, total=False): + """Dictionary form of `ModifyAvailabilityZoneGroupInput`.""" + + group_name: Required[str] + """ + The name of the Availability Zone group, Local Zone group, or Wavelength + Zone group. + """ + opt_in_status: Required[str] + """ + Indicates whether to opt in to the zone group. The only valid value is + `opted-in`. You must contact Amazon Web Services Support to opt out of a + Local Zone or Wavelength Zone group. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyAvailabilityZoneGroupOutput(_SerdeShape): """Dataclass for ModifyAvailabilityZoneGroupOutput structure.""" @@ -3260,6 +4630,54 @@ class ModifyCapacityReservationFleetInput(_SerdeShape): request. """ +class ModifyCapacityReservationFleetInputDict(TypedDict, total=False): + """Dictionary form of `ModifyCapacityReservationFleetInput`.""" + + capacity_reservation_fleet_id: Required[str] + """The ID of the Capacity Reservation Fleet to modify.""" + total_target_capacity: int | None + """ + The total number of capacity units to be reserved by the Capacity + Reservation Fleet. This value, together with the instance type weights + that you assign to each instance type used by the Fleet determine the + number of instances for which the Fleet reserves capacity. Both values + are based on units that make sense for your workload. For more + information, see [Total target + capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) + in the *Amazon EC2 User Guide*. + """ + end_date: datetime | None + """ + The date and time at which the Capacity Reservation Fleet expires. When + the Capacity Reservation Fleet expires, its state changes to `expired` + and all of the Capacity Reservations in the Fleet expire. + + The Capacity Reservation Fleet expires within an hour after the + specified time. For example, if you specify `5/31/2019`, `13:30:55`, the + Capacity Reservation Fleet is guaranteed to expire between `13:30:55` + and `14:30:55` on `5/31/2019`. + + You can't specify **EndDate** and **RemoveEndDate** in the same + request. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + remove_end_date: bool | None + """ + Indicates whether to remove the end date from the Capacity Reservation + Fleet. If you remove the end date, the Capacity Reservation Fleet does + not expire and it remains active until you explicitly cancel it using + the **CancelCapacityReservationFleet** action. + + You can't specify **RemoveEndDate** and **EndDate** in the same + request. + """ + @dataclass(kw_only=True) class ModifyCapacityReservationFleetOutput(_SerdeShape): """Dataclass for ModifyCapacityReservationFleetOutput structure.""" @@ -3363,6 +4781,94 @@ class ModifyCapacityReservationInput(_SerdeShape): once. """ +class ModifyCapacityReservationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyCapacityReservationInput`.""" + + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation.""" + instance_count: int | None + """ + The number of instances for which to reserve capacity. The number of + instances can't be increased or decreased by more than `1000` in a + single request. + """ + end_date: datetime | None + """ + The date and time at which the Capacity Reservation expires. When a + Capacity Reservation expires, the reserved capacity is released and you + can no longer launch instances into it. The Capacity Reservation's + state changes to `expired` when it reaches its end date and time. + + The Capacity Reservation is cancelled within an hour from the specified + time. For example, if you specify 5/31/2019, 13:30:55, the Capacity + Reservation is guaranteed to end between 13:30:55 and 14:30:55 on + 5/31/2019. + + You must provide an `EndDate` value if `EndDateType` is `limited`. Omit + `EndDate` if `EndDateType` is `unlimited`. + """ + end_date_type: str | None + """ + Indicates the way in which the Capacity Reservation ends. A Capacity + Reservation can have one of the following end types: + + - `unlimited` - The Capacity Reservation remains active until you + explicitly cancel it. Do not provide an `EndDate` value if + `EndDateType` is `unlimited`. + + - `limited` - The Capacity Reservation expires automatically at a + specified date and time. You must provide an `EndDate` value if + `EndDateType` is `limited`. + """ + accept: bool | None + """ + Reserved. Capacity Reservations you have created are accepted by + default. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + additional_info: str | None + """Reserved for future use.""" + instance_match_criteria: str | None + """ + The matching criteria (instance eligibility) that you want to use in the + modified Capacity Reservation. If you change the instance eligibility of + an existing Capacity Reservation from `targeted` to `open`, any running + instances that match the attributes of the Capacity Reservation, have + the `CapacityReservationPreference` set to `open`, and are not yet + running in the Capacity Reservation, will automatically use the modified + Capacity Reservation. + + To modify the instance eligibility, the Capacity Reservation must be + completely idle (zero usage). + """ + accept_modification_terms: bool | None + """ + Indicates that you accept the modification terms of the quote identified + by `QuoteId`. To apply a quoted modification, set this parameter to + `true`. + """ + start_date: datetime | None + """ + The new start date for the Capacity Reservation, in the ISO8601 format + in the UTC time zone (`YYYY-MM-DDThh:mm:ss.sssZ`). Applies to + future-dated Capacity Reservations only. Requires a quote from + `CreateCapacityReservationDateChangeQuote`; pass the quote ID in + `QuoteId` with `AcceptModificationTerms` set to `true`. + """ + quote_id: str | None + """ + The ID of the quote that describes the modification you want to apply. + Generate a quote by using `CreateCapacityReservationDateChangeQuote`. + The quote must be in the `active` state, and each quote can be used only + once. + """ + @dataclass(kw_only=True) class ModifyCapacityReservationOutput(_SerdeShape): """Dataclass for ModifyCapacityReservationOutput structure.""" @@ -3430,6 +4936,47 @@ class ModifyClientVpnEndpointAuthorizationPolicyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyClientVpnEndpointAuthorizationPolicyInputDict(TypedDict, total=False): + """Dictionary form of `ModifyClientVpnEndpointAuthorizationPolicyInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint.""" + policy_document: str | None + """ + The authorization policy document, written in the Cedar policy language. + This parameter is required when you create the authorization policy for + a Client VPN endpoint that does not already have one. + """ + description: str | None + """A brief description of the authorization policy.""" + shadow_mode: str | None + """ + Specifies whether the authorization policy is evaluated in shadow mode. + Possible values include: + + - `enabled` - The authorization policy is evaluated and the results are + logged, but access is not enforced. + + - `disabled` - The authorization policy is enforced. + + The default value is `disabled`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyClientVpnEndpointAuthorizationPolicyOutput(_SerdeShape): """ @@ -3570,21 +5117,151 @@ class ModifyClientVpnEndpointInput(_SerdeShape): providers, specify `false` for `Enabled`. """ -@dataclass(kw_only=True) -class ModifyClientVpnEndpointOutput(_SerdeShape): - """Dataclass for ModifyClientVpnEndpointOutput structure.""" +class ModifyClientVpnEndpointInputDict(TypedDict, total=False): + """Dictionary form of `ModifyClientVpnEndpointInput`.""" - return_: bool | None = ... - """Returns `true` if the request succeeds; otherwise, it returns an error.""" - response_metadata: ResponseMetadata = ... + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint to modify.""" + server_certificate_arn: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The ARN of the server certificate to be used. The server certificate + must be provisioned in Certificate Manager (ACM). + """ + connection_log_options: ConnectionLogOptions | ConnectionLogOptionsDict | None """ + Information about the client connection logging options. -@dataclass(kw_only=True) + If you enable client connection logging, data about client connections + is sent to a Cloudwatch Logs log stream. The following information is + logged: + + - Client connection requests + + - Client connection results (successful and unsuccessful) + + - Reasons for unsuccessful client connection requests + + - Client connection termination time + """ + dns_servers: ( + DnsServersOptionsModifyStructure | DnsServersOptionsModifyStructureDict | None + ) + """ + Information about the DNS servers to be used by Client VPN connections. + A Client VPN endpoint can have up to two DNS servers. + """ + vpn_port: int | None + """ + The port number to assign to the Client VPN endpoint for TCP and UDP + traffic. + + Valid Values: `443` | `1194` + + Default Value: `443` + """ + description: str | None + """A brief description of the Client VPN endpoint.""" + split_tunnel: bool | None + """ + Indicates whether the VPN is split-tunnel. + + For information about split-tunnel VPN endpoints, see [Split-tunnel + Client VPN + endpoint](https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) + in the *Client VPN Administrator Guide*. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + security_group_ids: Sequence[str] | None + """The IDs of one or more security groups to apply to the target network.""" + vpc_id: str | None + """The ID of the VPC to associate with the Client VPN endpoint.""" + self_service_portal: str | None + """ + Specify whether to enable the self-service portal for the Client VPN + endpoint. + """ + client_connect_options: ClientConnectOptions | ClientConnectOptionsDict | None + """ + The options for managing connection authorization for new client + connections. + """ + session_timeout_hours: int | None + """ + The maximum VPN session duration time in hours. + + Valid values: `8 | 10 | 12 | 24` + + Default value: `24` + """ + client_login_banner_options: ( + ClientLoginBannerOptions | ClientLoginBannerOptionsDict | None + ) + """ + Options for enabling a customizable text banner that will be displayed + on Amazon Web Services provided clients when a VPN session is + established. + """ + client_route_enforcement_options: ( + ClientRouteEnforcementOptions | ClientRouteEnforcementOptionsDict | None + ) + """ + Client route enforcement is a feature of the Client VPN service that + helps enforce administrator defined routes on devices connected through + the VPN. T his feature helps improve your security posture by ensuring + that network traffic originating from a connected client is not + inadvertently sent outside the VPN tunnel. + + Client route enforcement works by monitoring the route table of a + connected device for routing policy changes to the VPN connection. If + the feature detects any VPN routing policy modifications, it will + automatically force an update to the route table, reverting it back to + the expected route configurations. + """ + disconnect_on_session_timeout: bool | None + """ + Indicates whether the client VPN session is disconnected after the + maximum timeout specified in `sessionTimeoutHours` is reached. If + `true`, users are prompted to reconnect client VPN. If `false`, client + VPN attempts to reconnect automatically. The default value is `true`. + """ + transit_gateway_configuration: ( + TransitGatewayConfigurationInputStructure + | TransitGatewayConfigurationInputStructureDict + | None + ) + """ + The Transit Gateway configuration for the Client VPN endpoint. This + option is currently not supported. + """ + device_posture_options: DevicePostureOptions | DevicePostureOptionsDict | None + """ + The device posture options for the Client VPN endpoint. Specifying this + parameter replaces the entire device posture configuration for the + endpoint. To disable device posture and remove all device trust + providers, specify `false` for `Enabled`. + """ + +@dataclass(kw_only=True) +class ModifyClientVpnEndpointOutput(_SerdeShape): + """Dataclass for ModifyClientVpnEndpointOutput structure.""" + + return_: bool | None = ... + """Returns `true` if the request succeeds; otherwise, it returns an error.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) class ModifyDefaultCreditSpecificationInput(_SerdeShape): """Dataclass for ModifyDefaultCreditSpecificationInput structure.""" @@ -3604,6 +5281,25 @@ class ModifyDefaultCreditSpecificationInput(_SerdeShape): Valid Values: `standard` | `unlimited` """ +class ModifyDefaultCreditSpecificationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDefaultCreditSpecificationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instance_family: Required[str] + """The instance family.""" + cpu_credits: Required[str] + """ + The credit option for CPU usage of the instance family. + + Valid Values: `standard` | `unlimited` + """ + @dataclass(kw_only=True) class ModifyDefaultCreditSpecificationOutput(_SerdeShape): """Dataclass for ModifyDefaultCreditSpecificationOutput structure.""" @@ -3654,6 +5350,41 @@ class ModifyEbsDefaultKmsKeyIdInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyEbsDefaultKmsKeyIdInputDict(TypedDict, total=False): + """Dictionary form of `ModifyEbsDefaultKmsKeyIdInput`.""" + + kms_key_id: Required[str] + """ + The identifier of the KMS key to use for Amazon EBS encryption. If this + parameter is not specified, your KMS key for Amazon EBS is used. If + `KmsKeyId` is specified, the encrypted state must be `true`. + + You can specify the KMS key using any of the following: + + - Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab. + + - Key alias. For example, alias/ExampleAlias. + + - Key ARN. For example, + arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab. + + - Alias ARN. For example, + arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. + + Amazon Web Services authenticates the KMS key asynchronously. Therefore, + if you specify an ID, alias, or ARN that is not valid, the action can + appear to complete, but eventually fails. + + Amazon EBS does not support asymmetric KMS keys. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyEbsDefaultKmsKeyIdOutput(_SerdeShape): """Dataclass for ModifyEbsDefaultKmsKeyIdOutput structure.""" @@ -3699,6 +5430,42 @@ class ModifyFleetInput(_SerdeShape): context: str | None = ... """Reserved.""" +class ModifyFleetInputDict(TypedDict, total=False): + """Dictionary form of `ModifyFleetInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + excess_capacity_termination_policy: str | None + """ + Indicates whether running instances should be terminated if the total + target capacity of the EC2 Fleet is decreased below the current size of + the EC2 Fleet. + + Supported only for fleets of type `maintain`. + """ + launch_template_configs: ( + Sequence[ + FleetLaunchTemplateConfigRequest | FleetLaunchTemplateConfigRequestDict + ] + | None + ) + """The launch template and overrides.""" + fleet_id: Required[str] + """The ID of the EC2 Fleet.""" + target_capacity_specification: ( + TargetCapacitySpecificationRequest + | TargetCapacitySpecificationRequestDict + | None + ) + """The size of the EC2 Fleet.""" + context: str | None + """Reserved.""" + @dataclass(kw_only=True) class ModifyFleetOutput(_SerdeShape): """Dataclass for ModifyFleetOutput structure.""" @@ -3757,6 +5524,47 @@ class ModifyFpgaImageAttributeInput(_SerdeShape): name: str | None = ... """A name for the AFI.""" +class ModifyFpgaImageAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyFpgaImageAttributeInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + fpga_image_id: Required[str] + """The ID of the AFI.""" + attribute: str | None + """The name of the attribute.""" + operation_type: str | None + """The operation type.""" + user_ids: Sequence[str] | None + """ + The Amazon Web Services account IDs. This parameter is valid only when + modifying the `loadPermission` attribute. + """ + user_groups: Sequence[str] | None + """ + The user groups. This parameter is valid only when modifying the + `loadPermission` attribute. + """ + product_codes: Sequence[str] | None + """ + The product codes. After you add a product code to an AFI, it can't be + removed. This parameter is valid only when modifying the `productCodes` + attribute. + """ + load_permission: ( + LoadPermissionModifications | LoadPermissionModificationsDict | None + ) + """The load permission for the AFI.""" + description: str | None + """A description for the AFI.""" + name: str | None + """A name for the AFI.""" + @dataclass(kw_only=True) class ModifyFpgaImageAttributeOutput(_SerdeShape): """Dataclass for ModifyFpgaImageAttributeOutput structure.""" @@ -3816,6 +5624,50 @@ class ModifyHostsInput(_SerdeShape): auto_placement: str | None = ... """Specify whether to enable or disable auto-placement.""" +class ModifyHostsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyHostsInput`.""" + + host_recovery: str | None + """ + Indicates whether to enable or disable host recovery for the Dedicated + Host. For more information, see [Host + recovery](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html) + in the *Amazon EC2 User Guide*. + """ + instance_type: str | None + """ + Specifies the instance type to be supported by the Dedicated Host. + Specify this parameter to modify a Dedicated Host to support only a + specific instance type. + + If you want to modify a Dedicated Host to support multiple instance + types in its current instance family, omit this parameter and specify + **InstanceFamily** instead. You cannot specify **InstanceType** and + **InstanceFamily** in the same request. + """ + instance_family: str | None + """ + Specifies the instance family to be supported by the Dedicated Host. + Specify this parameter to modify a Dedicated Host to support multiple + instance types within its current instance family. + + If you want to modify a Dedicated Host to support a specific instance + type only, omit this parameter and specify **InstanceType** instead. You + cannot specify **InstanceFamily** and **InstanceType** in the same + request. + """ + host_maintenance: str | None + """ + Indicates whether to enable or disable host maintenance for the + Dedicated Host. For more information, see [Host + maintenance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html) + in the *Amazon EC2 User Guide*. + """ + host_ids: Required[Sequence[str]] + """The IDs of the Dedicated Hosts to modify.""" + auto_placement: str | None + """Specify whether to enable or disable auto-placement.""" + @dataclass(kw_only=True) class ModifyHostsOutput(_SerdeShape): """Dataclass for ModifyHostsOutput structure.""" @@ -3864,23 +5716,73 @@ class ModifyIdentityIdFormatInput(_SerdeShape): roles, and the root user of the account. """ +class ModifyIdentityIdFormatInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIdentityIdFormatInput`.""" + + resource: Required[str] + """ + The type of resource: `bundle` | `conversion-task` | + `customer-gateway` | `dhcp-options` | `elastic-ip-allocation` | + `elastic-ip-association` | `export-task` | `flow-log` | `image` | + `import-task` | `internet-gateway` | `network-acl` | + `network-acl-association` | `network-interface` | + `network-interface-attachment` | `prefix-list` | `route-table` | + `route-table-association` | `security-group` | `subnet` | + `subnet-cidr-block-association` | `vpc` | `vpc-cidr-block-association` + | `vpc-endpoint` | `vpc-peering-connection` | `vpn-connection` | + `vpn-gateway`. + + Alternatively, use the `all-current` option to include all resource + types that are currently within their opt-in period for longer IDs. + """ + use_long_ids: Required[bool] + """Indicates whether the resource should use longer IDs (17-character IDs)""" + principal_arn: Required[str] + """ + The ARN of the principal, which can be an IAM user, IAM role, or the + root user. Specify `all` to modify the ID format for all IAM users, IAM + roles, and the root user of the account. + """ + @dataclass(kw_only=True) class ModifyIdentityIdFormatOutput(_SerdeShape): """Dataclass for ModifyIdentityIdFormatOutput structure.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyIdFormatInput(_SerdeShape): + """Dataclass for ModifyIdFormatInput structure.""" + + resource: str | None = ... + """ + The type of resource: `bundle` | `conversion-task` | + `customer-gateway` | `dhcp-options` | `elastic-ip-allocation` | + `elastic-ip-association` | `export-task` | `flow-log` | `image` | + `import-task` | `internet-gateway` | `network-acl` | + `network-acl-association` | `network-interface` | + `network-interface-attachment` | `prefix-list` | `route-table` | + `route-table-association` | `security-group` | `subnet` | + `subnet-cidr-block-association` | `vpc` | `vpc-cidr-block-association` + | `vpc-endpoint` | `vpc-peering-connection` | `vpn-connection` | + `vpn-gateway`. + + Alternatively, use the `all-current` option to include all resource + types that are currently within their opt-in period for longer IDs. """ + use_long_ids: bool | None = ... + """Indicate whether the resource should use longer IDs (17-character IDs).""" -@dataclass(kw_only=True) -class ModifyIdFormatInput(_SerdeShape): - """Dataclass for ModifyIdFormatInput structure.""" +class ModifyIdFormatInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIdFormatInput`.""" - resource: str | None = ... + resource: Required[str] """ The type of resource: `bundle` | `conversion-task` | `customer-gateway` | `dhcp-options` | `elastic-ip-allocation` | @@ -3896,7 +5798,7 @@ class ModifyIdFormatInput(_SerdeShape): Alternatively, use the `all-current` option to include all resource types that are currently within their opt-in period for longer IDs. """ - use_long_ids: bool | None = ... + use_long_ids: Required[bool] """Indicate whether the resource should use longer IDs (17-character IDs).""" @dataclass(kw_only=True) @@ -3984,6 +5886,80 @@ class ModifyImageAttributeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyImageAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyImageAttributeInput`.""" + + attribute: str | None + """ + The name of the attribute to modify. + + Valid values: `description` | `imdsSupport` | `launchPermission` + """ + description: AttributeValue | AttributeValueDict | None + """A new description for the AMI.""" + image_id: Required[str] + """The ID of the AMI.""" + launch_permission: ( + LaunchPermissionModifications | LaunchPermissionModificationsDict | None + ) + """A new launch permission for the AMI.""" + operation_type: str | None + """ + The operation type. This parameter can be used only when the `Attribute` + parameter is `launchPermission`. + """ + product_codes: Sequence[str] | None + """Not supported.""" + user_groups: Sequence[str] | None + """ + The user groups. This parameter can be used only when the `Attribute` + parameter is `launchPermission`. + """ + user_ids: Sequence[str] | None + """ + The Amazon Web Services account IDs. This parameter can be used only + when the `Attribute` parameter is `launchPermission`. + """ + value: str | None + """ + The value of the attribute being modified. This parameter can be used + only when the `Attribute` parameter is `description` or `imdsSupport`. + """ + organization_arns: Sequence[str] | None + """ + The Amazon Resource Name (ARN) of an organization. This parameter can be + used only when the `Attribute` parameter is `launchPermission`. + """ + organizational_unit_arns: Sequence[str] | None + """ + The Amazon Resource Name (ARN) of an organizational unit (OU). This + parameter can be used only when the `Attribute` parameter is + `launchPermission`. + """ + imds_support: AttributeValue | AttributeValueDict | None + """ + Set to `v2.0` to indicate that IMDSv2 is specified in the AMI. Instances + launched from this AMI will have `HttpTokens` automatically set to + `required` so that, by default, the instance requires that IMDSv2 is + used when requesting instance metadata. In addition, + `HttpPutResponseHopLimit` is set to `2`. For more information, see + [Configure the + AMI](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration) + in the *Amazon EC2 User Guide*. + + Warning: + Do not use this parameter unless your AMI software supports IMDSv2. + After you set the value to `v2.0`, you can't undo it. The only way to + "reset" your AMI is to create a new AMI from the underlying snapshot. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyImageAttributeOutput(_SerdeShape): """Dataclass for ModifyImageAttributeOutput structure.""" @@ -4145,6 +6121,160 @@ class ModifyInstanceAttributeInput(_SerdeShape): with a PV instance can make it unreachable. """ +class ModifyInstanceAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceAttributeInput`.""" + + source_dest_check: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Enable or disable source/destination checks, which ensure that the + instance is either the source or the destination of any traffic that it + receives. If the value is `true`, source/destination checks are enabled; + otherwise, they are disabled. The default value is `true`. You must + disable source/destination checks if the instance runs services such as + network address translation, routing, or firewalls. + """ + enclave_options: EnclaveOptionsRequest | EnclaveOptionsRequestDict | None + """ + Enables or disables the instance for Amazon Web Services Nitro Enclaves. + For more information, see the [Amazon Web Services Nitro Enclaves User + Guide](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html). + """ + disable_api_stop: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Indicates whether an instance is enabled for stop protection. For more + information, see [Enable stop protection for your + instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the instance.""" + attribute: str | None + """ + The name of the attribute to modify. + + Note: + When changing the instance type: If the original instance type is + configured for configurable bandwidth, and the desired instance type + doesn't support configurable bandwidth, first set the existing + bandwidth configuration to `default` using the + ModifyInstanceNetworkPerformanceOptions operation. + Warning: + You can modify the following attributes only: `disableApiTermination` | + `instanceType` | `kernel` | `ramdisk` | + `instanceInitiatedShutdownBehavior` | `blockDeviceMapping` | + `userData` | `sourceDestCheck` | `groupSet` | `ebsOptimized` | + `sriovNetSupport` | `enaSupport` | `nvmeSupport` | `disableApiStop` + | `enclaveOptions` + """ + value: str | None + """ + A new value for the attribute. Use only with the `kernel`, `ramdisk`, + `userData`, `disableApiTermination`, or + `instanceInitiatedShutdownBehavior` attribute. + """ + block_device_mappings: ( + Sequence[ + InstanceBlockDeviceMappingSpecification + | InstanceBlockDeviceMappingSpecificationDict + ] + | None + ) + """ + Modifies the `DeleteOnTermination` attribute for volumes that are + currently attached. The volume must be owned by the caller. If no value + is specified for `DeleteOnTermination`, the default is `true` and the + volume is deleted when the instance is terminated. You can't modify the + `DeleteOnTermination` attribute for volumes that are attached to Amazon + Web Services-managed resources. + + To add instance store volumes to an Amazon EBS-backed instance, you must + add them when you launch the instance. For more information, see [Update + the block device mapping when launching an + instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM) + in the *Amazon EC2 User Guide*. + """ + disable_api_termination: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Enable or disable termination protection for the instance. If the value + is `true`, you can't terminate the instance using the Amazon EC2 + console, command line interface, or API. You can't enable termination + protection for Spot Instances. + """ + instance_type: AttributeValue | AttributeValueDict | None + """ + Changes the instance type to the specified value. For more information, + see [Instance + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + in the *Amazon EC2 User Guide*. If the instance type is not valid, the + error returned is `InvalidInstanceAttributeValue`. + """ + kernel: AttributeValue | AttributeValueDict | None + """ + Changes the instance's kernel to the specified value. We recommend that + you use PV-GRUB instead of kernels and RAM disks. For more information, + see + [PV-GRUB](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html). + """ + ramdisk: AttributeValue | AttributeValueDict | None + """ + Changes the instance's RAM disk to the specified value. We recommend + that you use PV-GRUB instead of kernels and RAM disks. For more + information, see + [PV-GRUB](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html). + """ + user_data: SecureBlobAttributeValue | SecureBlobAttributeValueDict | None + """ + Changes the instance's user data to the specified value. User data must + be base64-encoded. Depending on the tool or SDK that you're using, the + base64-encoding might be performed for you. For more information, see + [Work with instance user + data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html). + """ + instance_initiated_shutdown_behavior: AttributeValue | AttributeValueDict | None + """ + Specifies whether an instance stops or terminates when you initiate + shutdown from the instance (using the operating system command for + system shutdown). + """ + groups: Sequence[str] | None + """ + Replaces the security groups of the instance with the specified security + groups. You must specify the ID of at least one security group, even if + it's just the default security group for the VPC. + """ + ebs_optimized: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Specifies whether the instance is optimized for Amazon EBS I/O. This + optimization provides dedicated throughput to Amazon EBS and an + optimized configuration stack to provide optimal EBS I/O performance. + This optimization isn't available with all instance types. Additional + usage charges apply when using an EBS Optimized instance. + """ + sriov_net_support: AttributeValue | AttributeValueDict | None + """ + Set to `simple` to enable enhanced networking with the Intel 82599 + Virtual Function interface for the instance. + + There is no way to disable enhanced networking with the Intel 82599 + Virtual Function interface at this time. + + This option is supported only for HVM instances. Specifying this option + with a PV instance can make it unreachable. + """ + ena_support: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Set to `true` to enable enhanced networking with ENA for the instance. + + This option is supported only for HVM instances. Specifying this option + with a PV instance can make it unreachable. + """ + @dataclass(kw_only=True) class ModifyInstanceAttributeOutput(_SerdeShape): """Dataclass for ModifyInstanceAttributeOutput structure.""" @@ -4176,37 +6306,93 @@ class ModifyInstanceCapacityReservationAttributesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyInstanceCapacityReservationAttributesInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceCapacityReservationAttributesInput`.""" + + instance_id: Required[str] + """The ID of the instance to be modified.""" + capacity_reservation_specification: Required[ + CapacityReservationSpecification | CapacityReservationSpecificationDict + ] + """Information about the Capacity Reservation targeting option.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyInstanceCapacityReservationAttributesOutput(_SerdeShape): """ - Dataclass for ModifyInstanceCapacityReservationAttributesOutput - structure. + Dataclass for ModifyInstanceCapacityReservationAttributesOutput + structure. + """ + + return_: bool | None = ... + """Returns `true` if the request succeeds; otherwise, it returns an error.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyInstanceConnectEndpointInput(_SerdeShape): + """Dataclass for ModifyInstanceConnectEndpointInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instance_connect_endpoint_id: str | None = ... + """The ID of the EC2 Instance Connect Endpoint to modify.""" + ip_address_type: str | None = ... + """ + The new IP address type for the EC2 Instance Connect Endpoint. + + Note: + `PreserveClientIp` is only supported on IPv4 EC2 Instance Connect + Endpoints. To use `PreserveClientIp`, the value for `IpAddressType` must + be `ipv4`. + """ + security_group_ids: list[str] | None = ... + """ + Changes the security groups for the EC2 Instance Connect Endpoint. The + new set of groups you specify replaces the current set. You must specify + at least one group, even if it's just the default security group in the + VPC. You must specify the ID of the security group, not the name. + """ + preserve_client_ip: bool | None = ... """ + Indicates whether the client IP address is preserved as the source when + you connect to a resource. The following are the possible values. - return_: bool | None = ... - """Returns `true` if the request succeeds; otherwise, it returns an error.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + - `true` - Use the IP address of the client. Your instance must have an + IPv4 address. + + - `false` - Use the IP address of the network interface. """ -@dataclass(kw_only=True) -class ModifyInstanceConnectEndpointInput(_SerdeShape): - """Dataclass for ModifyInstanceConnectEndpointInput structure.""" +class ModifyInstanceConnectEndpointInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceConnectEndpointInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - instance_connect_endpoint_id: str | None = ... + instance_connect_endpoint_id: Required[str] """The ID of the EC2 Instance Connect Endpoint to modify.""" - ip_address_type: str | None = ... + ip_address_type: str | None """ The new IP address type for the EC2 Instance Connect Endpoint. @@ -4215,14 +6401,14 @@ class ModifyInstanceConnectEndpointInput(_SerdeShape): Endpoints. To use `PreserveClientIp`, the value for `IpAddressType` must be `ipv4`. """ - security_group_ids: list[str] | None = ... + security_group_ids: Sequence[str] | None """ Changes the security groups for the EC2 Instance Connect Endpoint. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name. """ - preserve_client_ip: bool | None = ... + preserve_client_ip: bool | None """ Indicates whether the client IP address is preserved as the source when you connect to a resource. The following are the possible values. @@ -4271,6 +6457,29 @@ class ModifyInstanceCpuOptionsInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class ModifyInstanceCpuOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceCpuOptionsInput`.""" + + instance_id: Required[str] + """The ID of the instance to update.""" + core_count: int | None + """The number of CPU cores to activate for the specified instance.""" + threads_per_core: int | None + """The number of threads to run for each CPU core.""" + nested_virtualization: str | None + """ + Indicates whether to enable or disable nested virtualization for the + instance. When nested virtualization is enabled, Virtual Secure Mode + (VSM) is automatically disabled for the instance. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyInstanceCpuOptionsOutput(_SerdeShape): """Dataclass for ModifyInstanceCpuOptionsOutput structure.""" @@ -4319,6 +6528,29 @@ class ModifyInstanceCreditSpecificationInput(_SerdeShape): ) = ... """Information about the credit option for CPU usage.""" +class ModifyInstanceCreditSpecificationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceCreditSpecificationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + """ + instance_credit_specifications: Required[ + Sequence[ + InstanceCreditSpecificationRequest | InstanceCreditSpecificationRequestDict + ] + ] + """Information about the credit option for CPU usage.""" + @dataclass(kw_only=True) class ModifyInstanceCreditSpecificationOutput(_SerdeShape): """Dataclass for ModifyInstanceCreditSpecificationOutput structure.""" @@ -4363,6 +6595,23 @@ class ModifyInstanceEventStartTimeInput(_SerdeShape): not_before: datetime | None = ... """The new date and time when the event will take place.""" +class ModifyInstanceEventStartTimeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceEventStartTimeInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the instance with the scheduled event.""" + instance_event_id: Required[str] + """The ID of the event whose date and time you are modifying.""" + not_before: Required[datetime] + """The new date and time when the event will take place.""" + @dataclass(kw_only=True) class ModifyInstanceEventStartTimeOutput(_SerdeShape): """Dataclass for ModifyInstanceEventStartTimeOutput structure.""" @@ -4420,6 +6669,54 @@ class ModifyInstanceEventWindowInput(_SerdeShape): [cron](https://en.wikipedia.org/wiki/Cron) on the *Wikipedia website*. """ +class ModifyInstanceEventWindowInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceEventWindowInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + name: str | None + """The name of the event window.""" + instance_event_window_id: Required[str] + """The ID of the event window.""" + time_ranges: ( + Sequence[ + InstanceEventWindowTimeRangeRequest + | InstanceEventWindowTimeRangeRequestDict + ] + | None + ) + """The time ranges of the event window.""" + cron_expression: str | None + """ + The cron expression of the event window, for example, + `* 0-4,20-23 * * 1,5`. + + Constraints: + + - Only hour and day of the week values are supported. + + - For day of the week values, you can specify either integers `0` + through `6`, or alternative single values `SUN` through `SAT`. + + - The minute, month, and year must be specified by `*`. + + - The hour value must be one or a multiple range, for example, `0-4` or + `0-4,20-23`. + + - Each hour range must be >= 2 hours, for example, `0-2` or `20-23`. + + - The event window must be >= 4 hours. The combined total time ranges + in the event window must be >= 4 hours. + + For more information about cron expressions, see + [cron](https://en.wikipedia.org/wiki/Cron) on the *Wikipedia website*. + """ + @dataclass(kw_only=True) class ModifyInstanceEventWindowOutput(_SerdeShape): """Dataclass for ModifyInstanceEventWindowOutput structure.""" @@ -4471,6 +6768,42 @@ class ModifyInstanceMaintenanceOptionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyInstanceMaintenanceOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceMaintenanceOptionsInput`.""" + + instance_id: Required[str] + """The ID of the instance.""" + auto_recovery: str | None + """ + Disables the automatic recovery behavior of your instance or sets it to + default. + """ + reboot_migration: str | None + """ + Specifies whether to attempt reboot migration during a user-initiated + reboot of an instance that has a scheduled `system-reboot` event: + + - `default` - Amazon EC2 attempts to migrate the instance to new + hardware (reboot migration). If successful, the `system-reboot` event + is cleared. If unsuccessful, an in-place reboot occurs and the event + remains scheduled. + + - `disabled` - Amazon EC2 keeps the instance on the same hardware + (in-place reboot). The `system-reboot` event remains scheduled. + + This setting only applies to supported instances that have a scheduled + reboot event. For more information, see [Enable or disable reboot + migration](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration) + in the *Amazon EC2 User Guide*. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyInstanceMaintenanceOptionsOutput(_SerdeShape): """Dataclass for ModifyInstanceMaintenanceOptionsOutput structure.""" @@ -4552,39 +6885,163 @@ class ModifyInstanceMetadataDefaultsInput(_SerdeShape): """ http_tokens_enforced: str | None = ... """ - Specifies whether to enforce the requirement of IMDSv2 on an instance at - the time of launch. When enforcement is enabled, the instance can't - launch unless IMDSv2 (`HttpTokens`) is set to `required`. For more - information, see [Enforce IMDSv2 at the account - level](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#enforce-imdsv2-at-the-account-level) - in the *Amazon EC2 User Guide*. + Specifies whether to enforce the requirement of IMDSv2 on an instance at + the time of launch. When enforcement is enabled, the instance can't + launch unless IMDSv2 (`HttpTokens`) is set to `required`. For more + information, see [Enforce IMDSv2 at the account + level](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#enforce-imdsv2-at-the-account-level) + in the *Amazon EC2 User Guide*. + """ + +class ModifyInstanceMetadataDefaultsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceMetadataDefaultsInput`.""" + + http_tokens: str | None + """ + Indicates whether IMDSv2 is required. + + - `optional` -- IMDSv2 is optional, which means that you can use either + IMDSv2 or IMDSv1. + + - `required` -- IMDSv2 is required, which means that IMDSv1 is disabled, + and you must use IMDSv2. + """ + http_put_response_hop_limit: int | None + """ + The maximum number of hops that the metadata token can travel. To + indicate no preference, specify `-1`. + + Possible values: Integers from `1` to `64`, and `-1` to indicate no + preference + """ + http_endpoint: str | None + """ + Enables or disables the IMDS endpoint on an instance. When disabled, the + instance metadata can't be accessed. + """ + instance_metadata_tags: str | None + """ + Enables or disables access to an instance's tags from the instance + metadata. For more information, see [View tags for your EC2 instances + using instance + metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-tags-in-IMDS.html) + in the *Amazon EC2 User Guide*. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + http_tokens_enforced: str | None + """ + Specifies whether to enforce the requirement of IMDSv2 on an instance at + the time of launch. When enforcement is enabled, the instance can't + launch unless IMDSv2 (`HttpTokens`) is set to `required`. For more + information, see [Enforce IMDSv2 at the account + level](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#enforce-imdsv2-at-the-account-level) + in the *Amazon EC2 User Guide*. + """ + +@dataclass(kw_only=True) +class ModifyInstanceMetadataDefaultsOutput(_SerdeShape): + """Dataclass for ModifyInstanceMetadataDefaultsOutput structure.""" + + return_: bool | None = ... + """ + If the request succeeds, the response returns `true`. If the request + fails, no response is returned, and instead an error message is + returned. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyInstanceMetadataOptionsInput(_SerdeShape): + """Dataclass for ModifyInstanceMetadataOptionsInput structure.""" + + instance_id: str | None = ... + """The ID of the instance.""" + http_tokens: str | None = ... + """ + Indicates whether IMDSv2 is required. + + - `optional` - IMDSv2 is optional. You can choose whether to send a + session token in your instance metadata retrieval requests. If you + retrieve IAM role credentials without a session token, you receive the + IMDSv1 role credentials. If you retrieve IAM role credentials using a + valid session token, you receive the IMDSv2 role credentials. + + - `required` - IMDSv2 is required. You must send a session token in your + instance metadata retrieval requests. With this option, retrieving the + IAM role credentials always returns IMDSv2 credentials; IMDSv1 + credentials are not available. + + Default: + + - If the value of `ImdsSupport` for the Amazon Machine Image (AMI) for + your instance is `v2.0` and the account level default is set to + `no-preference`, the default is `required`. + + - If the value of `ImdsSupport` for the Amazon Machine Image (AMI) for + your instance is `v2.0`, but the account level default is set to + `V1 or V2`, the default is `optional`. + + The default value can also be affected by other combinations of + parameters. For more information, see [Order of precedence for instance + metadata + options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence) + in the *Amazon EC2 User Guide*. + """ + http_put_response_hop_limit: int | None = ... + """ + The desired HTTP PUT response hop limit for instance metadata requests. + The larger the number, the further instance metadata requests can + travel. If no parameter is specified, the existing state is maintained. + + Possible values: Integers from 1 to 64 + """ + http_endpoint: str | None = ... + """ + Enables or disables the HTTP metadata endpoint on your instances. If + this parameter is not specified, the existing state is maintained. + + If you specify a value of `disabled`, you cannot access your instance + metadata. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - -@dataclass(kw_only=True) -class ModifyInstanceMetadataDefaultsOutput(_SerdeShape): - """Dataclass for ModifyInstanceMetadataDefaultsOutput structure.""" - - return_: bool | None = ... + http_protocol_ipv6: str | None = ... """ - If the request succeeds, the response returns `true`. If the request - fails, no response is returned, and instead an error message is - returned. + Enables or disables the IPv6 endpoint for the instance metadata service. + Applies only if you enabled the HTTP metadata endpoint. """ - response_metadata: ResponseMetadata = ... + instance_metadata_tags: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Set to `enabled` to allow access to instance tags from the instance + metadata. Set to `disabled` to turn off access to instance tags from the + instance metadata. For more information, see [View tags for your EC2 + instances using instance + metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-tags-in-IMDS.html). """ -@dataclass(kw_only=True) -class ModifyInstanceMetadataOptionsInput(_SerdeShape): - """Dataclass for ModifyInstanceMetadataOptionsInput structure.""" +class ModifyInstanceMetadataOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceMetadataOptionsInput`.""" - instance_id: str | None = ... + instance_id: Required[str] """The ID of the instance.""" - http_tokens: str | None = ... + http_tokens: str | None """ Indicates whether IMDSv2 is required. @@ -4615,7 +7072,7 @@ class ModifyInstanceMetadataOptionsInput(_SerdeShape): options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence) in the *Amazon EC2 User Guide*. """ - http_put_response_hop_limit: int | None = ... + http_put_response_hop_limit: int | None """ The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can @@ -4623,7 +7080,7 @@ class ModifyInstanceMetadataOptionsInput(_SerdeShape): Possible values: Integers from 1 to 64 """ - http_endpoint: str | None = ... + http_endpoint: str | None """ Enables or disables the HTTP metadata endpoint on your instances. If this parameter is not specified, the existing state is maintained. @@ -4631,19 +7088,19 @@ class ModifyInstanceMetadataOptionsInput(_SerdeShape): If you specify a value of `disabled`, you cannot access your instance metadata. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - http_protocol_ipv6: str | None = ... + http_protocol_ipv6: str | None """ Enables or disables the IPv6 endpoint for the instance metadata service. Applies only if you enabled the HTTP metadata endpoint. """ - instance_metadata_tags: str | None = ... + instance_metadata_tags: str | None """ Set to `enabled` to allow access to instance tags from the instance metadata. Set to `disabled` to turn off access to instance tags from the @@ -4681,18 +7138,18 @@ class ModifyInstanceNetworkPerformanceOptionsInput(_SerdeShape): default - : This option uses the standard bandwidth configuration for your - instance type. + : This option uses the standard bandwidth configuration for your + instance type. vpc-1 - : This option boosts your networking baseline bandwidth and reduces your - EBS baseline bandwidth. + : This option boosts your networking baseline bandwidth and reduces + your EBS baseline bandwidth. ebs-1 - : This option boosts your EBS baseline bandwidth and reduces your - networking baseline bandwidth. + : This option boosts your EBS baseline bandwidth and reduces your + networking baseline bandwidth. """ dry_run: bool | None = ... """ @@ -4702,6 +7159,39 @@ class ModifyInstanceNetworkPerformanceOptionsInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class ModifyInstanceNetworkPerformanceOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstanceNetworkPerformanceOptionsInput`.""" + + instance_id: Required[str] + """The ID of the instance to update.""" + bandwidth_weighting: Required[str] + """ + Specify the bandwidth weighting option to boost the associated type of + baseline bandwidth, as follows: + + default + + : This option uses the standard bandwidth configuration for your + instance type. + + vpc-1 + + : This option boosts your networking baseline bandwidth and reduces + your EBS baseline bandwidth. + + ebs-1 + + : This option boosts your EBS baseline bandwidth and reduces your + networking baseline bandwidth. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyInstanceNetworkPerformanceOptionsOutput(_SerdeShape): """Dataclass for ModifyInstanceNetworkPerformanceOptionsOutput structure.""" @@ -4771,6 +7261,55 @@ class ModifyInstancePlacementInput(_SerdeShape): host_id: str | None = ... """The ID of the Dedicated Host with which to associate the instance.""" +class ModifyInstancePlacementInputDict(TypedDict, total=False): + """Dictionary form of `ModifyInstancePlacementInput`.""" + + group_name: str | None + """ + The name of the placement group in which to place the instance. For + spread placement groups, the instance must have a tenancy of `default`. + For cluster and partition placement groups, the instance must have a + tenancy of `default` or `dedicated`. + + To remove an instance from a placement group, specify an empty string + (\"\"). + """ + partition_number: int | None + """ + The number of the partition in which to place the instance. Valid only + if the placement group strategy is set to `partition`. + """ + host_resource_group_arn: str | None + """ + The ARN of the host resource group in which to place the instance. The + instance must have a tenancy of `host` to specify this parameter. + """ + group_id: str | None + """ + The Group Id of a placement group. You must specify the Placement Group + **Group Id** to launch an instance in a shared placement group. + """ + instance_id: Required[str] + """The ID of the instance that you are modifying.""" + tenancy: str | None + """ + The tenancy for the instance. + + Note: + For T3 instances, you must launch the instance on a Dedicated Host to + use a tenancy of `host`. You can't change the tenancy from `host` to + `dedicated` or `default`. Attempting to make one of these unsupported + tenancy changes results in an `InvalidRequest` error code. + """ + affinity: str | None + """ + The affinity setting for the instance. For more information, see [Host + affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-affinity) + in the *Amazon EC2 User Guide*. + """ + host_id: str | None + """The ID of the Dedicated Host with which to associate the instance.""" + @dataclass(kw_only=True) class ModifyInstancePlacementOutput(_SerdeShape): """Dataclass for ModifyInstancePlacementOutput structure.""" @@ -4842,6 +7381,66 @@ class ModifyIpamInput(_SerdeShape): address is charged for the active IP address. """ +class ModifyIpamInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """The ID of the IPAM you want to modify.""" + description: str | None + """The description of the IPAM you want to modify.""" + add_operating_regions: ( + Sequence[AddIpamOperatingRegion | AddIpamOperatingRegionDict] | None + ) + """ + Choose the operating Regions for the IPAM. Operating Regions are Amazon + Web Services Regions where the IPAM is allowed to manage IP address + CIDRs. IPAM only discovers and monitors resources in the Amazon Web + Services Regions you select as operating Regions. + + For more information about operating Regions, see [Create an + IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/create-ipam.html) in + the *Amazon VPC IPAM User Guide*. + """ + remove_operating_regions: ( + Sequence[RemoveIpamOperatingRegion | RemoveIpamOperatingRegionDict] | None + ) + """The operating Regions to remove.""" + tier: str | None + """ + IPAM is offered in a Free Tier and an Advanced Tier. For more + information about the features available in each tier and the costs + associated with the tiers, see [Amazon VPC pricing > IPAM + tab](http://aws.amazon.com/vpc/pricing/). + """ + enable_private_gua: bool | None + """ + Enable this option to use your own GUA ranges as private IPv6 addresses. + This option is disabled by default. + """ + metered_account: str | None + """ + A metered account is an Amazon Web Services account that is charged for + active IP addresses managed in IPAM. For more information, see [Enable + cost + distribution](https://docs.aws.amazon.com/vpc/latest/ipam/ipam-enable-cost-distro.html) + in the *Amazon VPC IPAM User Guide*. + + Possible values: + + - `ipam-owner` (default): The Amazon Web Services account which owns the + IPAM is charged for all active IP addresses managed in IPAM. + + - `resource-owner`: The Amazon Web Services account that owns the IP + address is charged for the active IP address. + """ + @dataclass(kw_only=True) class ModifyIpamOutput(_SerdeShape): """Dataclass for ModifyIpamOutput structure.""" @@ -4891,6 +7490,43 @@ class ModifyIpamPolicyAllocationRulesInput(_SerdeShape): IP addresses. """ +class ModifyIpamPolicyAllocationRulesInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamPolicyAllocationRulesInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_policy_id: Required[str] + """The ID of the IPAM policy whose allocation rules you want to modify.""" + locale: Required[str] + """The locale for which to modify the allocation rules.""" + resource_type: Required[str] + """ + The resource type for which to modify the allocation rules. + + The Amazon Web Services service or resource type that can use IP + addresses through IPAM policies. Supported services and resource types + include: + + - Elastic IP addresses + """ + allocation_rules: ( + Sequence[IpamPolicyAllocationRuleRequest | IpamPolicyAllocationRuleRequestDict] + | None + ) + """ + The new allocation rules to apply to the IPAM policy. + + Allocation rules are optional configurations within an IPAM policy that + map Amazon Web Services resource types to specific IPAM pools. If no + rules are defined, the resource types default to using Amazon-provided + IP addresses. + """ + @dataclass(kw_only=True) class ModifyIpamPolicyAllocationRulesOutput(_SerdeShape): """Dataclass for ModifyIpamPolicyAllocationRulesOutput structure.""" @@ -4923,37 +7559,116 @@ class ModifyIpamPoolAllocationInput(_SerdeShape): The new description for the IPAM pool allocation. If you submit a `null` value, the description is removed from the allocation. """ - -@dataclass(kw_only=True) -class ModifyIpamPoolAllocationOutput(_SerdeShape): - """Dataclass for ModifyIpamPoolAllocationOutput structure.""" - - ipam_pool_allocation: IpamPoolAllocation | None = ... - """The modified IPAM pool allocation.""" - response_metadata: ResponseMetadata = ... + +class ModifyIpamPoolAllocationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamPoolAllocationInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_allocation_id: Required[str] + """The ID of the IPAM pool allocation you want to modify.""" + description: str | None + """ + The new description for the IPAM pool allocation. If you submit a `null` + value, the description is removed from the allocation. + """ + +@dataclass(kw_only=True) +class ModifyIpamPoolAllocationOutput(_SerdeShape): + """Dataclass for ModifyIpamPoolAllocationOutput structure.""" + + ipam_pool_allocation: IpamPoolAllocation | None = ... + """The modified IPAM pool allocation.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyIpamPoolInput(_SerdeShape): + """Dataclass for ModifyIpamPoolInput structure.""" + + dry_run: bool | None = ... + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: str | None = ... + """The ID of the IPAM pool you want to modify.""" + description: str | None = ... + """The description of the IPAM pool you want to modify.""" + auto_import: bool | None = ... + """ + If true, IPAM will continuously look for resources within the CIDR range + of this pool and automatically import them as allocations into your + IPAM. The CIDRs that will be allocated for these resources must not + already be allocated to other resources in order for the import to + succeed. IPAM will import a CIDR regardless of its compliance with the + pool's allocation rules, so a resource might be imported and + subsequently marked as noncompliant. If IPAM discovers multiple CIDRs + that overlap, IPAM will import the largest CIDR only. If IPAM discovers + multiple CIDRs with matching CIDRs, IPAM will randomly import one of + them only. + + A locale must be set on the pool for this feature to work. + """ + allocation_min_netmask_length: int | None = ... + """ + The minimum netmask length required for CIDR allocations in this IPAM + pool to be compliant. Possible netmask lengths for IPv4 addresses are + 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The + minimum netmask length must be less than the maximum netmask length. + """ + allocation_max_netmask_length: int | None = ... + """ + The maximum netmask length possible for CIDR allocations in this IPAM + pool to be compliant. Possible netmask lengths for IPv4 addresses are + 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The + maximum netmask length must be greater than the minimum netmask length. + """ + allocation_default_netmask_length: int | None = ... + """ + The default netmask length for allocations added to this pool. If, for + example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 + here, new allocations will default to 10.0.0.0/16. + """ + clear_allocation_default_netmask_length: bool | None = ... + """Clear the default netmask length allocation rule for this pool.""" + add_allocation_resource_tags: list[RequestIpamResourceTag] | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Add tag allocation rules to a pool. For more information about + allocation rules, see [Create a top-level + pool](https://docs.aws.amazon.com/vpc/latest/ipam/create-top-ipam.html) + in the *Amazon VPC IPAM User Guide*. """ + remove_allocation_resource_tags: list[RequestIpamResourceTag] | None = ... + """Remove tag allocation rules from a pool.""" -@dataclass(kw_only=True) -class ModifyIpamPoolInput(_SerdeShape): - """Dataclass for ModifyIpamPoolInput structure.""" +class ModifyIpamPoolInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamPoolInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - ipam_pool_id: str | None = ... + ipam_pool_id: Required[str] """The ID of the IPAM pool you want to modify.""" - description: str | None = ... + description: str | None """The description of the IPAM pool you want to modify.""" - auto_import: bool | None = ... + auto_import: bool | None """ If true, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your @@ -4968,36 +7683,40 @@ class ModifyIpamPoolInput(_SerdeShape): A locale must be set on the pool for this feature to work. """ - allocation_min_netmask_length: int | None = ... + allocation_min_netmask_length: int | None """ The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must be less than the maximum netmask length. """ - allocation_max_netmask_length: int | None = ... + allocation_max_netmask_length: int | None """ The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must be greater than the minimum netmask length. """ - allocation_default_netmask_length: int | None = ... + allocation_default_netmask_length: int | None """ The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16. """ - clear_allocation_default_netmask_length: bool | None = ... + clear_allocation_default_netmask_length: bool | None """Clear the default netmask length allocation rule for this pool.""" - add_allocation_resource_tags: list[RequestIpamResourceTag] | None = ... + add_allocation_resource_tags: ( + Sequence[RequestIpamResourceTag | RequestIpamResourceTagDict] | None + ) """ Add tag allocation rules to a pool. For more information about allocation rules, see [Create a top-level pool](https://docs.aws.amazon.com/vpc/latest/ipam/create-top-ipam.html) in the *Amazon VPC IPAM User Guide*. """ - remove_allocation_resource_tags: list[RequestIpamResourceTag] | None = ... + remove_allocation_resource_tags: ( + Sequence[RequestIpamResourceTag | RequestIpamResourceTagDict] | None + ) """Remove tag allocation rules from a pool.""" @dataclass(kw_only=True) @@ -5035,6 +7754,31 @@ class ModifyIpamPrefixListResolverInput(_SerdeShape): the existing rules entirely. """ +class ModifyIpamPrefixListResolverInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamPrefixListResolverInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_prefix_list_resolver_id: Required[str] + """The ID of the IPAM prefix list resolver to modify.""" + description: str | None + """A new description for the IPAM prefix list resolver.""" + rules: ( + Sequence[ + IpamPrefixListResolverRuleRequest | IpamPrefixListResolverRuleRequestDict + ] + | None + ) + """ + The updated CIDR selection rules for the resolver. These rules replace + the existing rules entirely. + """ + @dataclass(kw_only=True) class ModifyIpamPrefixListResolverOutput(_SerdeShape): """Dataclass for ModifyIpamPrefixListResolverOutput structure.""" @@ -5085,6 +7829,41 @@ class ModifyIpamPrefixListResolverTargetInput(_SerdeShape): This field is autopopulated if not provided. """ +class ModifyIpamPrefixListResolverTargetInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamPrefixListResolverTargetInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_prefix_list_resolver_target_id: Required[str] + """The ID of the IPAM prefix list resolver target to modify.""" + desired_version: int | None + """ + The desired version of the prefix list to target. This allows you to pin + the target to a specific version. + """ + track_latest_version: bool | None + """ + Indicates whether the resolver target should automatically track the + latest version of the prefix list. When enabled, the target will always + synchronize with the most current version. + + Choose this for automatic updates when you want your prefix lists to + stay current with infrastructure changes without manual intervention. + """ + client_token: str | None + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class ModifyIpamPrefixListResolverTargetOutput(_SerdeShape): """Dataclass for ModifyIpamPrefixListResolverTargetOutput structure.""" @@ -5127,6 +7906,33 @@ class ModifyIpamResourceCidrInput(_SerdeShape): about the resource's CIDR. """ +class ModifyIpamResourceCidrInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamResourceCidrInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + resource_id: Required[str] + """The ID of the resource you want to modify.""" + resource_cidr: Required[str] + """The CIDR of the resource you want to modify.""" + resource_region: Required[str] + """The Amazon Web Services Region of the resource you want to modify.""" + current_ipam_scope_id: Required[str] + """The ID of the current scope that the resource CIDR is in.""" + destination_ipam_scope_id: str | None + """The ID of the scope you want to transfer the resource CIDR to.""" + monitored: Required[bool] + """ + Determines if the resource is monitored by IPAM. If a resource is + monitored, the resource is discovered by IPAM and you can view details + about the resource's CIDR. + """ + @dataclass(kw_only=True) class ModifyIpamResourceCidrOutput(_SerdeShape): """Dataclass for ModifyIpamResourceCidrOutput structure.""" @@ -5208,6 +8014,83 @@ class ModifyIpamResourceDiscoveryInput(_SerdeShape): in the *Amazon VPC User Guide*. """ +class ModifyIpamResourceDiscoveryInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamResourceDiscoveryInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_resource_discovery_id: Required[str] + """A resource discovery ID.""" + description: str | None + """A resource discovery description.""" + add_operating_regions: ( + Sequence[AddIpamOperatingRegion | AddIpamOperatingRegionDict] | None + ) + """ + Add operating Regions to the resource discovery. Operating Regions are + Amazon Web Services Regions where the IPAM is allowed to manage IP + address CIDRs. IPAM only discovers and monitors resources in the Amazon + Web Services Regions you select as operating Regions. + """ + remove_operating_regions: ( + Sequence[RemoveIpamOperatingRegion | RemoveIpamOperatingRegionDict] | None + ) + """Remove operating Regions.""" + add_organizational_unit_exclusions: ( + Sequence[ + AddIpamOrganizationalUnitExclusion | AddIpamOrganizationalUnitExclusionDict + ] + | None + ) + """ + Add an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is + integrated with Amazon Web Services Organizations and you add an + organizational unit (OU) exclusion, IPAM will not manage the IP + addresses in accounts in that OU exclusion. There is a limit on the + number of exclusions you can create. For more information, see [Quotas + for your + IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html) in + the *Amazon VPC IPAM User Guide*. + + Note: + The resulting set of exclusions must not result in \"overlap\", meaning + two or more OU exclusions must not exclude the same OU. For more + information and examples, see the Amazon Web Services CLI request + process in [Add or remove OU + exclusions](https://docs.aws.amazon.com/vpc/latest/ipam/exclude-ous.html#exclude-ous-create-delete) + in the *Amazon VPC User Guide*. + """ + remove_organizational_unit_exclusions: ( + Sequence[ + RemoveIpamOrganizationalUnitExclusion + | RemoveIpamOrganizationalUnitExclusionDict + ] + | None + ) + """ + Remove an Organizational Unit (OU) exclusion to your IPAM. If your IPAM + is integrated with Amazon Web Services Organizations and you add an + organizational unit (OU) exclusion, IPAM will not manage the IP + addresses in accounts in that OU exclusion. There is a limit on the + number of exclusions you can create. For more information, see [Quotas + for your + IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html) in + the *Amazon VPC IPAM User Guide*. + + Note: + The resulting set of exclusions must not result in \"overlap\", meaning + two or more OU exclusions must not exclude the same OU. For more + information and examples, see the Amazon Web Services CLI request + process in [Add or remove OU + exclusions](https://docs.aws.amazon.com/vpc/latest/ipam/exclude-ous.html#exclude-ous-create-delete) + in the *Amazon VPC User Guide*. + """ + @dataclass(kw_only=True) class ModifyIpamResourceDiscoveryOutput(_SerdeShape): """Dataclass for ModifyIpamResourceDiscoveryOutput structure.""" @@ -5272,6 +8155,55 @@ class ModifyIpamRoutingPolicyRegistrationInput(_SerdeShape): This field is autopopulated if not provided. """ +class ModifyIpamRoutingPolicyRegistrationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamRoutingPolicyRegistrationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_internet_registry_association_id: Required[str] + """The ID of the IPAM internet registry association.""" + cidr: Required[str] + """ + The IP address prefix in CIDR notation identifying the routing policy + registration to modify. + """ + asns: Required[Sequence[str]] + """ + The updated list of Autonomous System Numbers (ASNs) authorized to + originate the prefix. + """ + permit_more_specific_announcements: bool | None + """ + Specifies whether to permit more specific route announcements than the + CIDR prefix. Default: `false`. + """ + max_length: int | None + """ + The new maximum prefix length that the ASNs are authorized to announce. + Must be greater than or equal to the prefix length of the CIDR. + """ + description: str | None + """A new description for the routing policy registration.""" + force: bool | None + """ + Forces the modification even if it conflicts with an announced route. + Default: `false`. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. If this token matches a previous + request, the operation ignores the request, but does not return an + error. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class ModifyIpamRoutingPolicyRegistrationOutput(_SerdeShape): """Dataclass for ModifyIpamRoutingPolicyRegistrationOutput structure.""" @@ -5323,6 +8255,39 @@ class ModifyIpamScopeInput(_SerdeShape): remove_external_authority_configuration: bool | None = ... """Remove the external authority configuration. `true` to remove.""" +class ModifyIpamScopeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIpamScopeInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_scope_id: Required[str] + """The ID of the scope you want to modify.""" + description: str | None + """The description of the scope you want to modify.""" + external_authority_configuration: ( + ExternalAuthorityConfiguration | ExternalAuthorityConfigurationDict | None + ) + """ + The configuration that links an Amazon VPC IPAM scope to an external + authority system. It specifies the type of external system and the + external resource identifier that identifies your account or instance in + that system. + + In IPAM, an external authority is a third-party IP address management + system that provides CIDR blocks when you provision address space for + top-level IPAM pools. This allows you to use your existing IP management + system to control which address ranges are allocated to Amazon Web + Services while using Amazon VPC IPAM to manage subnets within those + ranges. + """ + remove_external_authority_configuration: bool | None + """Remove the external authority configuration. `true` to remove.""" + @dataclass(kw_only=True) class ModifyIpamScopeOutput(_SerdeShape): """Dataclass for ModifyIpamScopeOutput structure.""" @@ -5337,18 +8302,58 @@ class ModifyIpamScopeOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class ModifyLaunchTemplateInput(_SerdeShape): - """Dataclass for ModifyLaunchTemplateInput structure.""" +@dataclass(kw_only=True) +class ModifyLaunchTemplateInput(_SerdeShape): + """Dataclass for ModifyLaunchTemplateInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None = ... + """ + Unique, case-sensitive identifier you provide to ensure the idempotency + of the request. If a client token isn't specified, a randomly generated + token is used in the request to ensure idempotency. + + For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + Constraint: Maximum 128 ASCII characters. + + This field is autopopulated if not provided. + """ + launch_template_id: str | None = ... + """ + The ID of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + launch_template_name: str | None = ... + """ + The name of the launch template. + + You must specify either the launch template ID or the launch template + name, but not both. + """ + default_version: str | None = ... + """The version number of the launch template to set as the default version.""" + +class ModifyLaunchTemplateInputDict(TypedDict, total=False): + """Dictionary form of `ModifyLaunchTemplateInput`.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - client_token: str | None = ... + client_token: str | None """ Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If a client token isn't specified, a randomly generated @@ -5361,21 +8366,21 @@ class ModifyLaunchTemplateInput(_SerdeShape): This field is autopopulated if not provided. """ - launch_template_id: str | None = ... + launch_template_id: str | None """ The ID of the launch template. You must specify either the launch template ID or the launch template name, but not both. """ - launch_template_name: str | None = ... + launch_template_name: str | None """ The name of the launch template. You must specify either the launch template ID or the launch template name, but not both. """ - default_version: str | None = ... + default_version: str | None """The version number of the launch template to set as the default version.""" @dataclass(kw_only=True) @@ -5421,6 +8426,34 @@ class ModifyLocalGatewayRouteInput(_SerdeShape): `DestinationCidrBlock` in the same request. """ +class ModifyLocalGatewayRouteInputDict(TypedDict, total=False): + """Dictionary form of `ModifyLocalGatewayRouteInput`.""" + + destination_cidr_block: str | None + """ + The CIDR block used for destination matches. The value that you provide + must match the CIDR of an existing route in the table. + """ + local_gateway_route_table_id: Required[str] + """The ID of the local gateway route table.""" + local_gateway_virtual_interface_group_id: str | None + """The ID of the virtual interface group.""" + network_interface_id: str | None + """The ID of the network interface.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + destination_prefix_list_id: str | None + """ + The ID of the prefix list. Use a prefix list in place of + `DestinationCidrBlock`. You cannot use `DestinationPrefixListId` and + `DestinationCidrBlock` in the same request. + """ + @dataclass(kw_only=True) class ModifyLocalGatewayRouteOutput(_SerdeShape): """Dataclass for ModifyLocalGatewayRouteOutput structure.""" @@ -5475,6 +8508,45 @@ class ModifyManagedPrefixListInput(_SerdeShape): CIDR selection rules. """ +class ModifyManagedPrefixListInputDict(TypedDict, total=False): + """Dictionary form of `ModifyManagedPrefixListInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + prefix_list_id: Required[str] + """The ID of the prefix list.""" + current_version: int | None + """The current version of the prefix list.""" + prefix_list_name: str | None + """A name for the prefix list.""" + add_entries: Sequence[AddPrefixListEntry | AddPrefixListEntryDict] | None + """One or more entries to add to the prefix list.""" + remove_entries: Sequence[RemovePrefixListEntry | RemovePrefixListEntryDict] | None + """One or more entries to remove from the prefix list.""" + max_entries: int | None + """ + The maximum number of entries for the prefix list. You cannot modify the + entries of a prefix list and modify the size of a prefix list at the + same time. + + If any of the resources that reference the prefix list cannot support + the new maximum size, the modify operation fails. Check the state + message for the IDs of the first ten resources that do not support the + new maximum size. + """ + ipam_prefix_list_resolver_sync_enabled: bool | None + """ + Indicates whether synchronization with an IPAM prefix list resolver + should be enabled for this managed prefix list. When enabled, the prefix + list CIDRs are automatically updated based on the associated resolver's + CIDR selection rules. + """ + @dataclass(kw_only=True) class ModifyManagedPrefixListOutput(_SerdeShape): """Dataclass for ModifyManagedPrefixListOutput structure.""" @@ -5506,6 +8578,22 @@ class ModifyManagedResourceVisibilityInput(_SerdeShape): `hidden` | `visible`. """ +class ModifyManagedResourceVisibilityInputDict(TypedDict, total=False): + """Dictionary form of `ModifyManagedResourceVisibilityInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + default_visibility: Required[str] + """ + The default visibility setting for managed resources. Valid values: + `hidden` | `visible`. + """ + @dataclass(kw_only=True) class ModifyManagedResourceVisibilityOutput(_SerdeShape): """Dataclass for ModifyManagedResourceVisibilityOutput structure.""" @@ -5593,6 +8681,82 @@ class ModifyNetworkInterfaceAttributeInput(_SerdeShape): interface attachment. """ +class ModifyNetworkInterfaceAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyNetworkInterfaceAttributeInput`.""" + + ena_srd_specification: EnaSrdSpecification | EnaSrdSpecificationDict | None + """ + Updates the ENA Express configuration for the network interface that's + attached to the instance. + """ + enable_primary_ipv6: bool | None + """ + If you're modifying a network interface in a dual-stack or IPv6-only + subnet, you have the option to assign a primary IPv6 IP address. A + primary IPv6 address is an IPv6 GUA address associated with an ENI that + you have enabled to use a primary IPv6 address. Use this option if the + instance that this ENI will be attached to relies on its IPv6 address + not changing. Amazon Web Services will automatically assign an IPv6 + address associated with the ENI attached to your instance to be the + primary IPv6 address. Once you enable an IPv6 GUA address to be a + primary IPv6, you cannot disable it. When you enable an IPv6 GUA address + to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 + address until the instance is terminated or the network interface is + detached. If you have multiple IPv6 addresses associated with an ENI + attached to your instance and you enable a primary IPv6 address, the + first IPv6 GUA address associated with the ENI becomes the primary IPv6 + address. + """ + connection_tracking_specification: ( + ConnectionTrackingSpecificationRequest + | ConnectionTrackingSpecificationRequestDict + | None + ) + """A connection tracking specification.""" + associate_public_ip_address: bool | None + """ + Indicates whether to assign a public IPv4 address to a network + interface. This option can be enabled for any network interface but will + only apply to the primary network interface (eth0). + """ + associated_subnet_ids: Sequence[str] | None + """A list of subnet IDs to associate with the network interface.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_id: Required[str] + """The ID of the network interface.""" + description: AttributeValue | AttributeValueDict | None + """A description for the network interface.""" + source_dest_check: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Enable or disable source/destination checks, which ensure that the + instance is either the source or the destination of any traffic that it + receives. If the value is `true`, source/destination checks are enabled; + otherwise, they are disabled. The default value is `true`. You must + disable source/destination checks if the instance runs services such as + network address translation, routing, or firewalls. + """ + groups: Sequence[str] | None + """ + Changes the security groups for the network interface. The new set of + groups you specify replaces the current set. You must specify at least + one group, even if it's just the default security group in the VPC. You + must specify the ID of the security group, not the name. + """ + attachment: ( + NetworkInterfaceAttachmentChanges | NetworkInterfaceAttachmentChangesDict | None + ) + """ + Information about the interface attachment. If modifying the + `delete on termination` attribute, you must specify the ID of the + interface attachment. + """ + @dataclass(kw_only=True) class ModifyNetworkInterfaceAttributeOutput(_SerdeShape): """Dataclass for ModifyNetworkInterfaceAttributeOutput structure.""" @@ -5637,6 +8801,37 @@ class ModifyPrivateDnsNameOptionsInput(_SerdeShape): DNS AAAA records. """ +class ModifyPrivateDnsNameOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyPrivateDnsNameOptionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_id: Required[str] + """The ID of the instance.""" + private_dns_hostname_type: str | None + """ + The type of hostname for EC2 instances. For IPv4 only subnets, an + instance DNS name must be based on the instance IPv4 address. For IPv6 + only subnets, an instance DNS name must be based on the instance ID. For + dual-stack subnets, you can specify whether DNS names use the instance + IPv4 address or the instance ID. + """ + enable_resource_name_dns_a_record: bool | None + """ + Indicates whether to respond to DNS queries for instance hostnames with + DNS A records. + """ + enable_resource_name_dns_aaaa_record: bool | None + """ + Indicates whether to respond to DNS queries for instance hostnames with + DNS AAAA records. + """ + @dataclass(kw_only=True) class ModifyPrivateDnsNameOptionsOutput(_SerdeShape): """Dataclass for ModifyPrivateDnsNameOptionsOutput structure.""" @@ -5687,6 +8882,41 @@ class ModifyPublicIpDnsNameOptionsInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class ModifyPublicIpDnsNameOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyPublicIpDnsNameOptionsInput`.""" + + network_interface_id: Required[str] + """A network interface ID.""" + hostname_type: Required[str] + """ + The public hostname type. For more information, see [EC2 instance + hostnames, DNS names, and + domains](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html) + in the *Amazon EC2 User Guide*. + + - `public-dual-stack-dns-name`: A dual-stack public hostname for a + network interface. Requests from within the VPC resolve to both the + private IPv4 address and the IPv6 Global Unicast Address of the + network interface. Requests from the internet resolve to both the + public IPv4 and the IPv6 GUA address of the network interface. + + - `public-ipv4-dns-name`: An IPv4-enabled public hostname for a network + interface. Requests from within the VPC resolve to the private primary + IPv4 address of the network interface. Requests from the internet + resolve to the public IPv4 address of the network interface. + + - `public-ipv6-dns-name`: An IPv6-enabled public hostname for a network + interface. Requests from within the VPC or from the internet resolve + to the IPv6 GUA of the network interface. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyPublicIpDnsNameOptionsOutput(_SerdeShape): """Dataclass for ModifyPublicIpDnsNameOptionsOutput structure.""" @@ -5709,34 +8939,98 @@ class ModifyReservedInstancesInput(_SerdeShape): """The IDs of the Reserved Instances to modify.""" client_token: str | None = ... """ - A unique, case-sensitive token you provide to ensure idempotency of your - modification request. For more information, see [Ensuring - Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + A unique, case-sensitive token you provide to ensure idempotency of your + modification request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + """ + target_configurations: list[ReservedInstancesConfiguration] | None = ... + """The configuration settings for the Reserved Instances to modify.""" + +class ModifyReservedInstancesInputDict(TypedDict, total=False): + """Dictionary form of `ModifyReservedInstancesInput`.""" + + reserved_instances_ids: Required[Sequence[str]] + """The IDs of the Reserved Instances to modify.""" + client_token: str | None + """ + A unique, case-sensitive token you provide to ensure idempotency of your + modification request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + """ + target_configurations: Required[ + Sequence[ReservedInstancesConfiguration | ReservedInstancesConfigurationDict] + ] + """The configuration settings for the Reserved Instances to modify.""" + +@dataclass(kw_only=True) +class ModifyReservedInstancesOutput(_SerdeShape): + """Contains the output of ModifyReservedInstances.""" + + reserved_instances_modification_id: str | None = ... + """The ID for the modification.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyRouteServerInput(_SerdeShape): + """Dataclass for ModifyRouteServerInput structure.""" + + route_server_id: str | None = ... + """The ID of the route server to modify.""" + persist_routes: str | None = ... + """ + Specifies whether to persist routes after all BGP sessions are + terminated. + + - enable: Routes will be persisted in FIB and RIB after all BGP sessions + are terminated. + + - disable: Routes will not be persisted in FIB and RIB after all BGP + sessions are terminated. + + - reset: If a route server has persisted routes due to all BGP sessions + having ended, reset will withdraw all routes and reset route server to + an empty FIB and RIB. + """ + persist_routes_duration: int | None = ... + """ + The number of minutes a route server will wait after BGP is + re-established to unpersist the routes in the FIB and RIB. Value must be + in the range of 1-5. Required if PersistRoutes is `enabled`. + + If you set the duration to 1 minute, then when your network appliance + re-establishes BGP with route server, it has 1 minute to relearn it's + adjacent network and advertise those routes to route server before route + server resumes normal functionality. In most cases, 1 minute is probably + sufficient. If, however, you have concerns that your BGP network may not + be capable of fully re-establishing and re-learning everything in 1 + minute, you can increase the duration up to 5 minutes. + """ + sns_notifications_enabled: bool | None = ... + """ + Specifies whether to enable SNS notifications for route server events. + Enabling SNS notifications persists BGP status changes to an SNS topic + provisioned by Amazon Web Services. """ - target_configurations: list[ReservedInstancesConfiguration] | None = ... - """The configuration settings for the Reserved Instances to modify.""" - -@dataclass(kw_only=True) -class ModifyReservedInstancesOutput(_SerdeShape): - """Contains the output of ModifyReservedInstances.""" - - reserved_instances_modification_id: str | None = ... - """The ID for the modification.""" - response_metadata: ResponseMetadata = ... + dry_run: bool | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ -@dataclass(kw_only=True) -class ModifyRouteServerInput(_SerdeShape): - """Dataclass for ModifyRouteServerInput structure.""" +class ModifyRouteServerInputDict(TypedDict, total=False): + """Dictionary form of `ModifyRouteServerInput`.""" - route_server_id: str | None = ... + route_server_id: Required[str] """The ID of the route server to modify.""" - persist_routes: str | None = ... + persist_routes: str | None """ Specifies whether to persist routes after all BGP sessions are terminated. @@ -5751,7 +9045,7 @@ class ModifyRouteServerInput(_SerdeShape): having ended, reset will withdraw all routes and reset route server to an empty FIB and RIB. """ - persist_routes_duration: int | None = ... + persist_routes_duration: int | None """ The number of minutes a route server will wait after BGP is re-established to unpersist the routes in the FIB and RIB. Value must be @@ -5765,13 +9059,13 @@ class ModifyRouteServerInput(_SerdeShape): be capable of fully re-establishing and re-learning everything in 1 minute, you can increase the duration up to 5 minutes. """ - sns_notifications_enabled: bool | None = ... + sns_notifications_enabled: bool | None """ Specifies whether to enable SNS notifications for route server events. Enabling SNS notifications persists BGP status changes to an SNS topic provisioned by Amazon Web Services. """ - dry_run: bool | None = ... + dry_run: bool | None """ A check for whether you have the required permissions for the action without actually making the request and provides an error response. If @@ -5809,6 +9103,23 @@ class ModifySecurityGroupRulesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifySecurityGroupRulesInputDict(TypedDict, total=False): + """Dictionary form of `ModifySecurityGroupRulesInput`.""" + + group_id: Required[str] + """The ID of the security group.""" + security_group_rules: Required[ + Sequence[SecurityGroupRuleUpdate | SecurityGroupRuleUpdateDict] + ] + """Information about the security group properties to update.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifySecurityGroupRulesOutput(_SerdeShape): """Dataclass for ModifySecurityGroupRulesOutput structure.""" @@ -5850,6 +9161,36 @@ class ModifySnapshotAttributeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifySnapshotAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifySnapshotAttributeInput`.""" + + attribute: str | None + """ + The snapshot attribute to modify. Only volume creation permissions can + be modified. + """ + create_volume_permission: ( + CreateVolumePermissionModifications + | CreateVolumePermissionModificationsDict + | None + ) + """A JSON representation of the snapshot attribute modification.""" + group_names: Sequence[str] | None + """The group to modify for the snapshot.""" + operation_type: str | None + """The type of operation to perform to the attribute.""" + snapshot_id: Required[str] + """The ID of the snapshot.""" + user_ids: Sequence[str] | None + """The account ID to modify for the snapshot.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifySnapshotAttributeOutput(_SerdeShape): """Dataclass for ModifySnapshotAttributeOutput structure.""" @@ -5878,6 +9219,21 @@ class ModifySnapshotTierInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifySnapshotTierInputDict(TypedDict, total=False): + """Dictionary form of `ModifySnapshotTierInput`.""" + + snapshot_id: Required[str] + """The ID of the snapshot.""" + storage_tier: str | None + """The name of the storage tier. You must specify `archive`.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifySnapshotTierOutput(_SerdeShape): """Dataclass for ModifySnapshotTierOutput structure.""" @@ -5922,6 +9278,35 @@ class ModifySpotFleetRequestInput(_SerdeShape): Supported only for fleets of type `maintain`. """ +class ModifySpotFleetRequestInputDict(TypedDict, total=False): + """Dictionary form of `ModifySpotFleetRequestInput`.""" + + launch_template_configs: ( + Sequence[LaunchTemplateConfig | LaunchTemplateConfigDict] | None + ) + """ + The launch template and overrides. You can only use this parameter if + you specified a launch template (`LaunchTemplateConfigs`) in your Spot + Fleet request. If you specified `LaunchSpecifications` in your Spot + Fleet request, then omit this parameter. + """ + on_demand_target_capacity: int | None + """The number of On-Demand Instances in the fleet.""" + context: str | None + """Reserved.""" + spot_fleet_request_id: Required[str] + """The ID of the Spot Fleet request.""" + target_capacity: int | None + """The size of the fleet.""" + excess_capacity_termination_policy: str | None + """ + Indicates whether running instances should be terminated if the target + capacity of the Spot Fleet request is decreased below the current size + of the Spot Fleet. + + Supported only for fleets of type `maintain`. + """ + @dataclass(kw_only=True) class ModifySpotFleetRequestOutput(_SerdeShape): """Contains the output of ModifySpotFleetRequest.""" @@ -6028,6 +9413,103 @@ class ModifySubnetAttributeInput(_SerdeShape): position should be disabled. """ +class ModifySubnetAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifySubnetAttributeInput`.""" + + assign_ipv6_address_on_creation: ( + AttributeBooleanValue | AttributeBooleanValueDict | None + ) + """ + Specify `true` to indicate that network interfaces created in the + specified subnet should be assigned an IPv6 address. This includes a + network interface that's created when launching an instance into the + subnet (the instance therefore receives an IPv6 address). + + If you enable the IPv6 addressing feature for your subnet, your network + interface or instance only receives an IPv6 address if it's created + using version `2016-11-15` or later of the Amazon EC2 API. + """ + map_public_ip_on_launch: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Specify `true` to indicate that network interfaces attached to instances + created in the specified subnet should be assigned a public IPv4 + address. + + Amazon Web Services charges for all public IPv4 addresses, including + public IPv4 addresses associated with running instances and Elastic IP + addresses. For more information, see the *Public IPv4 Address* tab on + the [Amazon VPC pricing page](http://aws.amazon.com/vpc/pricing/). + """ + subnet_id: Required[str] + """The ID of the subnet.""" + map_customer_owned_ip_on_launch: ( + AttributeBooleanValue | AttributeBooleanValueDict | None + ) + """ + Specify `true` to indicate that network interfaces attached to instances + created in the specified subnet should be assigned a customer-owned IPv4 + address. + + When this value is `true`, you must specify the customer-owned IP pool + using `CustomerOwnedIpv4Pool`. + """ + customer_owned_ipv4_pool: str | None + """ + The customer-owned IPv4 address pool associated with the subnet. + + You must set this value when you specify `true` for + `MapCustomerOwnedIpOnLaunch`. + """ + enable_dns64: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Indicates whether DNS queries made to the Amazon-provided DNS Resolver + in this subnet should return synthetic IPv6 addresses for IPv4-only + destinations. + + You must first configure a NAT gateway in a public subnet (separate from + the subnet containing the IPv6-only workloads). For example, the subnet + containing the NAT gateway should have a `0.0.0.0/0` route pointing to + the internet gateway. For more information, see [Configure DNS64 and + NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough) + in the *Amazon VPC User Guide*. + """ + private_dns_hostname_type_on_launch: str | None + """ + The type of hostname to assign to instances in the subnet at launch. For + IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name + can be based on the instance IPv4 address (ip-name) or the instance ID + (resource-name). For IPv6 only subnets, an instance DNS name must be + based on the instance ID (resource-name). + """ + enable_resource_name_dns_a_record_on_launch: ( + AttributeBooleanValue | AttributeBooleanValueDict | None + ) + """ + Indicates whether to respond to DNS queries for instance hostnames with + DNS A records. + """ + enable_resource_name_dns_aaaa_record_on_launch: ( + AttributeBooleanValue | AttributeBooleanValueDict | None + ) + """ + Indicates whether to respond to DNS queries for instance hostnames with + DNS AAAA records. + """ + enable_lni_at_device_index: int | None + """ + Indicates the device position for local network interfaces in this + subnet. For example, `1` indicates local network interfaces in this + subnet are the secondary network interface (eth1). A local network + interface cannot be the primary network interface (eth0). + """ + disable_lni_at_device_index: ( + AttributeBooleanValue | AttributeBooleanValueDict | None + ) + """ + Specify `true` to indicate that local network interfaces at the current + position should be disabled. + """ + @dataclass(kw_only=True) class ModifySubnetAttributeOutput(_SerdeShape): """Dataclass for ModifySubnetAttributeOutput structure.""" @@ -6061,6 +9543,26 @@ class ModifyTrafficMirrorFilterNetworkServicesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyTrafficMirrorFilterNetworkServicesInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTrafficMirrorFilterNetworkServicesInput`.""" + + traffic_mirror_filter_id: Required[str] + """The ID of the Traffic Mirror filter.""" + add_network_services: Sequence[str] | None + """The network service, for example Amazon DNS, that you want to mirror.""" + remove_network_services: Sequence[str] | None + """ + The network service, for example Amazon DNS, that you no longer want to + mirror. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyTrafficMirrorFilterNetworkServicesOutput(_SerdeShape): """Dataclass for ModifyTrafficMirrorFilterNetworkServicesOutput structure.""" @@ -6119,6 +9621,53 @@ class ModifyTrafficMirrorFilterRuleInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyTrafficMirrorFilterRuleInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTrafficMirrorFilterRuleInput`.""" + + traffic_mirror_filter_rule_id: Required[str] + """The ID of the Traffic Mirror rule.""" + traffic_direction: str | None + """The type of traffic to assign to the rule.""" + rule_number: int | None + """ + The number of the Traffic Mirror rule. This number must be unique for + each Traffic Mirror rule in a given direction. The rules are processed + in ascending order by rule number. + """ + rule_action: str | None + """The action to assign to the rule.""" + destination_port_range: ( + TrafficMirrorPortRangeRequest | TrafficMirrorPortRangeRequestDict | None + ) + """The destination ports that are associated with the Traffic Mirror rule.""" + source_port_range: ( + TrafficMirrorPortRangeRequest | TrafficMirrorPortRangeRequestDict | None + ) + """The port range to assign to the Traffic Mirror rule.""" + protocol: int | None + """The protocol, for example TCP, to assign to the Traffic Mirror rule.""" + destination_cidr_block: str | None + """The destination CIDR block to assign to the Traffic Mirror rule.""" + source_cidr_block: str | None + """The source CIDR block to assign to the Traffic Mirror rule.""" + description: str | None + """The description to assign to the Traffic Mirror rule.""" + remove_fields: Sequence[str] | None + """ + The properties that you want to remove from the Traffic Mirror filter + rule. + + When you remove a property from a Traffic Mirror filter rule, the + property is set to the default. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyTrafficMirrorFilterRuleOutput(_SerdeShape): """Dataclass for ModifyTrafficMirrorFilterRuleOutput structure.""" @@ -6190,3 +9739,55 @@ class ModifyTrafficMirrorSessionInput(_SerdeShape): the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ + +class ModifyTrafficMirrorSessionInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTrafficMirrorSessionInput`.""" + + traffic_mirror_session_id: Required[str] + """The ID of the Traffic Mirror session.""" + traffic_mirror_target_id: str | None + """ + The Traffic Mirror target. The target must be in the same VPC as the + source, or have a VPC peering connection with the source. + """ + traffic_mirror_filter_id: str | None + """The ID of the Traffic Mirror filter.""" + packet_length: int | None + """ + The number of bytes in each packet to mirror. These are bytes after the + VXLAN header. To mirror a subset, set this to the length (in bytes) to + mirror. For example, if you set this value to 100, then the first 100 + bytes that meet the filter criteria are copied to the target. Do not + specify this parameter when you want to mirror the entire packet. + + For sessions with Network Load Balancer (NLB) traffic mirror targets, + the default `PacketLength` will be set to 8500. Valid values are 1-8500. + Setting a `PacketLength` greater than 8500 will result in an error + response. + """ + session_number: int | None + """ + The session number determines the order in which sessions are evaluated + when an interface is used by multiple sessions. The first session with a + matching filter is the one that mirrors the packets. + + Valid values are 1-32766. + """ + virtual_network_id: int | None + """The virtual network ID of the Traffic Mirror session.""" + description: str | None + """The description to assign to the Traffic Mirror session.""" + remove_fields: Sequence[str] | None + """ + The properties that you want to remove from the Traffic Mirror session. + + When you remove a property from a Traffic Mirror session, the property + is set to the default. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_9.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_09.pyi similarity index 67% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_9.pyi rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_09.pyi index cf255c2d9..5d2968db2 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_9.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_09.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -19,9 +21,12 @@ from ..models import ( AnalysisSecurityGroupRule, AnalysisTransitGatewayPolicyTableEntry, AsnAuthorizationContext, + AsnAuthorizationContextDict, AttachmentEnaSrdSpecification, AttributeBooleanValue, + AttributeBooleanValueDict, BlockDeviceMapping, + BlockDeviceMappingDict, Byoasn, ByoipCidr, CapacityBlock, @@ -29,10 +34,13 @@ from ..models import ( CapacityReservation, CapacityReservationOptions, CapacityReservationOptionsRequest, + CapacityReservationOptionsRequestDict, CidrAuthorizationContext, + CidrAuthorizationContextDict, ConnectionTrackingConfiguration, DefaultConnectionTrackingConfiguration, DnsOptionsSpecification, + DnsOptionsSpecificationDict, EfaInfo, Explanation, FilterPortRange, @@ -40,29 +48,38 @@ from ..models import ( FirewallStatelessRule, GroupIdentifier, IKEVersionsRequestListValue, + IKEVersionsRequestListValueDict, IcmpTypeCode, IdFormat, InstanceMonitoring, IpamCidrAuthorizationContext, + IpamCidrAuthorizationContextDict, IpamPoolCidr, Ipv4PrefixSpecification, Ipv6PrefixSpecification, RequestFilterPortRange, + RequestFilterPortRangeDict, ReservedInstanceLimitPrice, + ReservedInstanceLimitPriceDict, ResourceStatement, ResourceStatementRequest, + ResourceStatementRequestDict, ScheduledInstance, SubnetConfiguration, + SubnetConfigurationDict, Tag, TagSpecification, + TagSpecificationDict, TrafficMirrorSession, TransitGateway, TransitGatewayMeteringPolicy, TransitGatewayNatRule, TransitGatewayNatRuleRequest, + TransitGatewayNatRuleRequestDict, TransitGatewayPolicyTableEntry, TransitGatewayPrefixListReference, TransitGatewayRequestPolicyRule, + TransitGatewayRequestPolicyRuleDict, TransitGatewayRouteTableRoute, TransitGatewayVpcAttachment, VerifiedAccessEndpoint, @@ -70,7 +87,9 @@ from ..models import ( VerifiedAccessInstance, VerifiedAccessInstanceLoggingConfiguration, VerifiedAccessLogOptions, + VerifiedAccessLogOptionsDict, VerifiedAccessSseSpecificationRequest, + VerifiedAccessSseSpecificationRequestDict, VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider, VolumeModification, @@ -79,6 +98,7 @@ from ..models import ( VpcEncryptionControl, VpnConnection, VpnTunnelLogOptionsSpecification, + VpnTunnelLogOptionsSpecificationDict, _SerdeShape, ) @@ -148,6 +168,56 @@ class ModifyTransitGatewayAttachmentNatConfigurationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyTransitGatewayAttachmentNatConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTransitGatewayAttachmentNatConfigurationInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the transit gateway attachment.""" + nat_gateway_support: str | None + """ + Specifies whether to enable or disable NAT gateway support for the + attachment. To enable NAT gateway support, the attachment must have at + least one NAT gateway rule. You can't modify the NAT configuration + while NAT gateway support is `enabling` or `disabling`. If you omit this + parameter, the current value doesn't change. + """ + nat_system_route_support: str | None + """ + Specifies whether the transit gateway installs routes for the NAT CIDRs + in the route tables to which the attachment propagates. For VPC + attachments, the transit gateway always installs these routes. You can + enable or disable this option only for Amazon Web Services Direct + Connect gateway attachments and Site-to-Site VPN attachments that use + dynamic routing. For these attachments, the default is `enable`. If you + omit this parameter, the current value doesn't change. + """ + nat_gateway_rules: ( + Sequence[TransitGatewayNatRuleRequest | TransitGatewayNatRuleRequestDict] | None + ) + """ + The NAT gateway rules for the attachment. The rules that you specify + replace all existing NAT gateway rules for the attachment. You can + specify up to 50 rules for an attachment. If you omit this parameter, + the existing rules don't change. To remove all rules, use + `ResetNatGatewayRules`. + """ + reset_nat_gateway_rules: bool | None + """ + Specifies whether to remove all NAT gateway rules from the attachment. + If you omit this parameter, the transit gateway doesn't remove any + rules. You can't specify this parameter together with + `NatGatewayRules`. Because you can't enable NAT gateway support without + rules, also set `NatGatewaySupport` to `disable` in the same request if + NAT gateway support is currently enabled. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyTransitGatewayAttachmentNatConfigurationOutput(_SerdeShape): """ @@ -192,6 +262,23 @@ class ModifyTransitGatewayInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyTransitGatewayInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTransitGatewayInput`.""" + + transit_gateway_id: Required[str] + """The ID of the transit gateway.""" + description: str | None + """The description for the transit gateway.""" + options: ModifyTransitGatewayOptions | ModifyTransitGatewayOptionsDict | None + """The options to modify.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyTransitGatewayMeteringPolicyInput(_SerdeShape): """Dataclass for ModifyTransitGatewayMeteringPolicyInput structure.""" @@ -210,6 +297,23 @@ class ModifyTransitGatewayMeteringPolicyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyTransitGatewayMeteringPolicyInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTransitGatewayMeteringPolicyInput`.""" + + transit_gateway_metering_policy_id: Required[str] + """The ID of the transit gateway metering policy to modify.""" + add_middlebox_attachment_ids: Sequence[str] | None + """The IDs of middlebox attachments to add to the metering policy.""" + remove_middlebox_attachment_ids: Sequence[str] | None + """The IDs of middlebox attachments to remove from the metering policy.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyTransitGatewayMeteringPolicyOutput(_SerdeShape): """Dataclass for ModifyTransitGatewayMeteringPolicyOutput structure.""" @@ -297,6 +401,78 @@ class ModifyTransitGatewayOptions(_SerdeShape): encryption_support: str | None = ... """Enable or disable encryption support for VPC Encryption Control.""" +class ModifyTransitGatewayOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyTransitGatewayOptions`.""" + + add_transit_gateway_cidr_blocks: Sequence[str] | None + """ + Adds IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size + /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger + for IPv6. + """ + remove_transit_gateway_cidr_blocks: Sequence[str] | None + """Removes CIDR blocks for the transit gateway.""" + vpn_ecmp_support: str | None + """Enable or disable Equal Cost Multipath Protocol support.""" + dns_support: str | None + """Enable or disable DNS support.""" + security_group_referencing_support: str | None + """ + Enables you to reference a security group across VPCs attached to a + transit gateway to simplify security group management. + + This option is disabled by default. + + For more information about security group referencing, see [Security + group + referencing](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#vpc-attachment-security) + in the *Amazon Web Services Transit Gateways Guide*. + """ + auto_accept_shared_attachments: str | None + """Enable or disable automatic acceptance of attachment requests.""" + default_route_table_association: str | None + """ + Enable or disable automatic association with the default association + route table. + """ + association_default_route_table_id: str | None + """The ID of the default association route table.""" + default_route_table_propagation: str | None + """ + Indicates whether resource attachments automatically propagate routes to + the default propagation route table. Enabled by default. If + `defaultRouteTablePropagation` is set to `enable`, Amazon Web Services + Transit Gateway will create the default transit gateway route table. + """ + propagation_default_route_table_id: str | None + """The ID of the default propagation route table.""" + amazon_side_asn: int | None + """ + A private Autonomous System Number (ASN) for the Amazon side of a BGP + session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to + 4294967294 for 32-bit ASNs. + + The modify ASN operation is not allowed on a transit gateway if it has + the following attachments: + + - Dynamic VPN + + - Static VPN + + - Direct Connect Gateway + + - Connect + + - VPN Concentrator + + - Client VPN + + You must first delete all transit gateway attachments configured prior + to modifying the ASN on the transit gateway. + """ + encryption_support: str | None + """Enable or disable encryption support for VPC Encryption Control.""" + @dataclass(kw_only=True) class ModifyTransitGatewayOutput(_SerdeShape): """Dataclass for ModifyTransitGatewayOutput structure.""" @@ -337,6 +513,33 @@ class ModifyTransitGatewayPolicyTableEntryInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyTransitGatewayPolicyTableEntryInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTransitGatewayPolicyTableEntryInput`.""" + + transit_gateway_policy_table_id: Required[str] + """The ID of the transit gateway policy table.""" + policy_rule_number: Required[str] + """The rule number of the policy table entry to modify.""" + policy_rule: ( + TransitGatewayRequestPolicyRule | TransitGatewayRequestPolicyRuleDict | None + ) + """ + The updated matching criteria for the policy table entry. Unspecified + fields retain their current values. + """ + target_route_table_id: str | None + """ + The ID of the transit gateway route table to use for traffic matching + this rule. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyTransitGatewayPolicyTableEntryOutput(_SerdeShape): """Dataclass for ModifyTransitGatewayPolicyTableEntryOutput structure.""" @@ -371,6 +574,25 @@ class ModifyTransitGatewayPrefixListReferenceInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyTransitGatewayPrefixListReferenceInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTransitGatewayPrefixListReferenceInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + prefix_list_id: Required[str] + """The ID of the prefix list.""" + transit_gateway_attachment_id: str | None + """The ID of the attachment to which traffic is routed.""" + blackhole: bool | None + """Indicates whether to drop traffic that matches this route.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyTransitGatewayPrefixListReferenceOutput(_SerdeShape): """Dataclass for ModifyTransitGatewayPrefixListReferenceOutput structure.""" @@ -410,6 +632,32 @@ class ModifyTransitGatewayVpcAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyTransitGatewayVpcAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTransitGatewayVpcAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the attachment.""" + add_subnet_ids: Sequence[str] | None + """ + The IDs of one or more subnets to add. You can specify at most one + subnet per Availability Zone. + """ + remove_subnet_ids: Sequence[str] | None + """The IDs of one or more subnets to remove.""" + options: ( + ModifyTransitGatewayVpcAttachmentRequestOptions + | ModifyTransitGatewayVpcAttachmentRequestOptionsDict + | None + ) + """The new VPC attachment options.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyTransitGatewayVpcAttachmentOutput(_SerdeShape): """Dataclass for ModifyTransitGatewayVpcAttachmentOutput structure.""" @@ -458,6 +706,39 @@ class ModifyTransitGatewayVpcAttachmentRequestOptions(_SerdeShape): VPC attachment for the lifetime of that flow. The default is `disable`. """ +class ModifyTransitGatewayVpcAttachmentRequestOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyTransitGatewayVpcAttachmentRequestOptions`.""" + + dns_support: str | None + """Enable or disable DNS support. The default is `enable`.""" + security_group_referencing_support: str | None + """ + Enables you to reference a security group across VPCs attached to a + transit gateway to simplify security group management. + + This option is disabled by default. + + For more information about security group referencing, see [Security + group + referencing](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#vpc-attachment-security) + in the *Amazon Web Services Transit Gateways Guide*. + """ + ipv6_support: str | None + """ + Specifies whether IPv6 support is enabled for the attachment. When + enabled, the transit gateway network interface receives an IPv6 address. + When you enable route propagation, IPv6 VPC CIDRs propagate to the + transit gateway route tables. When disabled, the network interface does + not receive an IPv6 address, and IPv6 routes do not propagate. The + setting does not filter IPv6 traffic. + """ + appliance_mode_support: str | None + """ + Enable or disable support for appliance mode. If enabled, a traffic flow + between a source and destination uses the same Availability Zone for the + VPC attachment for the lifetime of that flow. The default is `disable`. + """ + @dataclass(kw_only=True) class ModifyVerifiedAccessEndpointCidrOptions(_SerdeShape): """The CIDR options for a Verified Access endpoint.""" @@ -465,6 +746,18 @@ class ModifyVerifiedAccessEndpointCidrOptions(_SerdeShape): port_ranges: list[ModifyVerifiedAccessEndpointPortRange] | None = ... """The port ranges.""" +class ModifyVerifiedAccessEndpointCidrOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessEndpointCidrOptions`.""" + + port_ranges: ( + Sequence[ + ModifyVerifiedAccessEndpointPortRange + | ModifyVerifiedAccessEndpointPortRangeDict + ] + | None + ) + """The port ranges.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessEndpointEniOptions(_SerdeShape): """ @@ -479,6 +772,22 @@ class ModifyVerifiedAccessEndpointEniOptions(_SerdeShape): port_ranges: list[ModifyVerifiedAccessEndpointPortRange] | None = ... """The port ranges.""" +class ModifyVerifiedAccessEndpointEniOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessEndpointEniOptions`.""" + + protocol: str | None + """The IP protocol.""" + port: int | None + """The IP port number.""" + port_ranges: ( + Sequence[ + ModifyVerifiedAccessEndpointPortRange + | ModifyVerifiedAccessEndpointPortRangeDict + ] + | None + ) + """The port ranges.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessEndpointInput(_SerdeShape): """Dataclass for ModifyVerifiedAccessEndpointInput structure.""" @@ -516,6 +825,58 @@ class ModifyVerifiedAccessEndpointInput(_SerdeShape): cidr_options: ModifyVerifiedAccessEndpointCidrOptions | None = ... """The CIDR options.""" +class ModifyVerifiedAccessEndpointInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessEndpointInput`.""" + + verified_access_endpoint_id: Required[str] + """The ID of the Verified Access endpoint.""" + verified_access_group_id: str | None + """The ID of the Verified Access group.""" + load_balancer_options: ( + ModifyVerifiedAccessEndpointLoadBalancerOptions + | ModifyVerifiedAccessEndpointLoadBalancerOptionsDict + | None + ) + """ + The load balancer details if creating the Verified Access endpoint as + `load-balancer`type. + """ + network_interface_options: ( + ModifyVerifiedAccessEndpointEniOptions + | ModifyVerifiedAccessEndpointEniOptionsDict + | None + ) + """The network interface options.""" + description: str | None + """A description for the Verified Access endpoint.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + rds_options: ( + ModifyVerifiedAccessEndpointRdsOptions + | ModifyVerifiedAccessEndpointRdsOptionsDict + | None + ) + """The RDS options.""" + cidr_options: ( + ModifyVerifiedAccessEndpointCidrOptions + | ModifyVerifiedAccessEndpointCidrOptionsDict + | None + ) + """The CIDR options.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessEndpointLoadBalancerOptions(_SerdeShape): """ @@ -532,6 +893,24 @@ class ModifyVerifiedAccessEndpointLoadBalancerOptions(_SerdeShape): port_ranges: list[ModifyVerifiedAccessEndpointPortRange] | None = ... """The port ranges.""" +class ModifyVerifiedAccessEndpointLoadBalancerOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessEndpointLoadBalancerOptions`.""" + + subnet_ids: Sequence[str] | None + """The IDs of the subnets.""" + protocol: str | None + """The IP protocol.""" + port: int | None + """The IP port number.""" + port_ranges: ( + Sequence[ + ModifyVerifiedAccessEndpointPortRange + | ModifyVerifiedAccessEndpointPortRangeDict + ] + | None + ) + """The port ranges.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessEndpointOutput(_SerdeShape): """Dataclass for ModifyVerifiedAccessEndpointOutput structure.""" @@ -574,6 +953,37 @@ class ModifyVerifiedAccessEndpointPolicyInput(_SerdeShape): sse_specification: VerifiedAccessSseSpecificationRequest | None = ... """The options for server side encryption.""" +class ModifyVerifiedAccessEndpointPolicyInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessEndpointPolicyInput`.""" + + verified_access_endpoint_id: Required[str] + """The ID of the Verified Access endpoint.""" + policy_enabled: bool | None + """The status of the Verified Access policy.""" + policy_document: str | None + """The Verified Access policy document.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + sse_specification: ( + VerifiedAccessSseSpecificationRequest + | VerifiedAccessSseSpecificationRequestDict + | None + ) + """The options for server side encryption.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessEndpointPolicyOutput(_SerdeShape): """Dataclass for ModifyVerifiedAccessEndpointPolicyOutput structure.""" @@ -601,6 +1011,14 @@ class ModifyVerifiedAccessEndpointPortRange(_SerdeShape): to_port: int | None = ... """The end of the port range.""" +class ModifyVerifiedAccessEndpointPortRangeDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessEndpointPortRange`.""" + + from_port: int | None + """The start of the port range.""" + to_port: int | None + """The end of the port range.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessEndpointRdsOptions(_SerdeShape): """The RDS options for a Verified Access endpoint.""" @@ -612,8 +1030,18 @@ class ModifyVerifiedAccessEndpointRdsOptions(_SerdeShape): rds_endpoint: str | None = ... """The RDS endpoint.""" -@dataclass(kw_only=True) -class ModifyVerifiedAccessGroupInput(_SerdeShape): +class ModifyVerifiedAccessEndpointRdsOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessEndpointRdsOptions`.""" + + subnet_ids: Sequence[str] | None + """The IDs of the subnets.""" + port: int | None + """The port.""" + rds_endpoint: str | None + """The RDS endpoint.""" + +@dataclass(kw_only=True) +class ModifyVerifiedAccessGroupInput(_SerdeShape): """Dataclass for ModifyVerifiedAccessGroupInput structure.""" verified_access_group_id: str | None = ... @@ -638,6 +1066,31 @@ class ModifyVerifiedAccessGroupInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyVerifiedAccessGroupInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessGroupInput`.""" + + verified_access_group_id: Required[str] + """The ID of the Verified Access group.""" + verified_access_instance_id: str | None + """The ID of the Verified Access instance.""" + description: str | None + """A description for the Verified Access group.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyVerifiedAccessGroupOutput(_SerdeShape): """Dataclass for ModifyVerifiedAccessGroupOutput structure.""" @@ -680,6 +1133,37 @@ class ModifyVerifiedAccessGroupPolicyInput(_SerdeShape): sse_specification: VerifiedAccessSseSpecificationRequest | None = ... """The options for server side encryption.""" +class ModifyVerifiedAccessGroupPolicyInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessGroupPolicyInput`.""" + + verified_access_group_id: Required[str] + """The ID of the Verified Access group.""" + policy_enabled: bool | None + """The status of the Verified Access policy.""" + policy_document: str | None + """The Verified Access policy document.""" + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + sse_specification: ( + VerifiedAccessSseSpecificationRequest + | VerifiedAccessSseSpecificationRequestDict + | None + ) + """The options for server side encryption.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessGroupPolicyOutput(_SerdeShape): """Dataclass for ModifyVerifiedAccessGroupPolicyOutput structure.""" @@ -724,6 +1208,31 @@ class ModifyVerifiedAccessInstanceInput(_SerdeShape): cidr_endpoints_custom_sub_domain: str | None = ... """The custom subdomain.""" +class ModifyVerifiedAccessInstanceInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessInstanceInput`.""" + + verified_access_instance_id: Required[str] + """The ID of the Verified Access instance.""" + description: str | None + """A description for the Verified Access instance.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + cidr_endpoints_custom_sub_domain: str | None + """The custom subdomain.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessInstanceLoggingConfigurationInput(_SerdeShape): """ @@ -751,6 +1260,29 @@ class ModifyVerifiedAccessInstanceLoggingConfigurationInput(_SerdeShape): This field is autopopulated if not provided. """ +class ModifyVerifiedAccessInstanceLoggingConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessInstanceLoggingConfigurationInput`.""" + + verified_access_instance_id: Required[str] + """The ID of the Verified Access instance.""" + access_logs: Required[VerifiedAccessLogOptions | VerifiedAccessLogOptionsDict] + """The configuration options for Verified Access instances.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class ModifyVerifiedAccessInstanceLoggingConfigurationOutput(_SerdeShape): """ @@ -803,6 +1335,26 @@ class ModifyVerifiedAccessNativeApplicationOidcOptions(_SerdeShape): scope: str | None = ... """The set of user claims to be requested from the IdP.""" +class ModifyVerifiedAccessNativeApplicationOidcOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessNativeApplicationOidcOptions`.""" + + public_signing_key_endpoint: str | None + """The public signing key endpoint.""" + issuer: str | None + """The OIDC issuer identifier of the IdP.""" + authorization_endpoint: str | None + """The authorization endpoint of the IdP.""" + token_endpoint: str | None + """The token endpoint of the IdP.""" + user_info_endpoint: str | None + """The user info endpoint of the IdP.""" + client_id: str | None + """The OAuth 2.0 client identifier.""" + client_secret: str | None + """The OAuth 2.0 client secret.""" + scope: str | None + """The set of user claims to be requested from the IdP.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessTrustProviderDeviceOptions(_SerdeShape): """ @@ -816,6 +1368,15 @@ class ModifyVerifiedAccessTrustProviderDeviceOptions(_SerdeShape): authenticity of the device tokens. """ +class ModifyVerifiedAccessTrustProviderDeviceOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessTrustProviderDeviceOptions`.""" + + public_signing_key_url: str | None + """ + The URL Amazon Web Services Verified Access will use to verify the + authenticity of the device tokens. + """ + @dataclass(kw_only=True) class ModifyVerifiedAccessTrustProviderInput(_SerdeShape): """Dataclass for ModifyVerifiedAccessTrustProviderInput structure.""" @@ -856,6 +1417,59 @@ class ModifyVerifiedAccessTrustProviderInput(_SerdeShape): ) = ... """The OpenID Connect (OIDC) options.""" +class ModifyVerifiedAccessTrustProviderInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessTrustProviderInput`.""" + + verified_access_trust_provider_id: Required[str] + """The ID of the Verified Access trust provider.""" + oidc_options: ( + ModifyVerifiedAccessTrustProviderOidcOptions + | ModifyVerifiedAccessTrustProviderOidcOptionsDict + | None + ) + """ + The options for an OpenID Connect-compatible user-identity trust + provider. + """ + device_options: ( + ModifyVerifiedAccessTrustProviderDeviceOptions + | ModifyVerifiedAccessTrustProviderDeviceOptionsDict + | None + ) + """ + The options for a device-based trust provider. This parameter is + required when the provider type is `device`. + """ + description: str | None + """A description for the Verified Access trust provider.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + A unique, case-sensitive token that you provide to ensure idempotency of + your modification request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + sse_specification: ( + VerifiedAccessSseSpecificationRequest + | VerifiedAccessSseSpecificationRequestDict + | None + ) + """The options for server side encryption.""" + native_application_oidc_options: ( + ModifyVerifiedAccessNativeApplicationOidcOptions + | ModifyVerifiedAccessNativeApplicationOidcOptionsDict + | None + ) + """The OpenID Connect (OIDC) options.""" + @dataclass(kw_only=True) class ModifyVerifiedAccessTrustProviderOidcOptions(_SerdeShape): """Options for an OpenID Connect-compatible user-identity trust provider.""" @@ -879,6 +1493,28 @@ class ModifyVerifiedAccessTrustProviderOidcOptions(_SerdeShape): returns a specific set of user attributes. """ +class ModifyVerifiedAccessTrustProviderOidcOptionsDict(TypedDict, total=False): + """Dictionary form of `ModifyVerifiedAccessTrustProviderOidcOptions`.""" + + issuer: str | None + """The OIDC issuer.""" + authorization_endpoint: str | None + """The OIDC authorization endpoint.""" + token_endpoint: str | None + """The OIDC token endpoint.""" + user_info_endpoint: str | None + """The OIDC user info endpoint.""" + client_id: str | None + """The client identifier.""" + client_secret: str | None + """The client secret.""" + scope: str | None + """ + OpenID Connect (OIDC) scopes are used by an application during + authentication to authorize access to a user's details. Each scope + returns a specific set of user attributes. + """ + @dataclass(kw_only=True) class ModifyVerifiedAccessTrustProviderOutput(_SerdeShape): """Dataclass for ModifyVerifiedAccessTrustProviderOutput structure.""" @@ -909,6 +1545,21 @@ class ModifyVolumeAttributeInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyVolumeAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVolumeAttributeInput`.""" + + auto_enable_io: AttributeBooleanValue | AttributeBooleanValueDict | None + """Indicates whether the volume should be auto-enabled for I/O operations.""" + volume_id: Required[str] + """The ID of the volume.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyVolumeAttributeOutput(_SerdeShape): """Dataclass for ModifyVolumeAttributeOutput structure.""" @@ -1008,6 +1659,92 @@ class ModifyVolumeInput(_SerdeShape): in the *Amazon EBS User Guide*. """ +class ModifyVolumeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVolumeInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + volume_id: Required[str] + """The ID of the volume.""" + size: int | None + """ + The target size of the volume, in GiB. The target volume size must be + greater than or equal to the existing size of the volume. + + The following are the supported volumes sizes for each volume type: + + - `gp2`: 1 - 16,384 GiB + + - `gp3`: 1 - 65,536 GiB + + - `io1`: 4 - 16,384 GiB + + - `io2`: 4 - 65,536 GiB + + - `st1` and `sc1`: 125 - 16,384 GiB + + - `standard`: 1 - 1024 GiB + + Default: The existing size is retained. + """ + volume_type: str | None + """ + The target EBS volume type of the volume. For more information, see + [Amazon EBS volume + types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html) + in the *Amazon EBS User Guide*. + + Default: The existing type is retained. + """ + iops: int | None + """ + The target IOPS rate of the volume. This parameter is valid only for + `gp3`, `io1`, and `io2` volumes. + + The following are the supported values for each volume type: + + - `gp3`: 3,000 - 80,000 IOPS + + - `io1`: 100 - 64,000 IOPS + + - `io2`: 100 - 256,000 IOPS + + Note: + [Instances built on the Nitro + System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) + can support up to 256,000 IOPS. Other instances can support up to 32,000 + IOPS. + + Default: The existing value is retained if you keep the same volume + type. If you change the volume type to `io1`, `io2`, or `gp3`, the + default is 3,000. + """ + throughput: int | None + """ + The target throughput of the volume, in MiB/s. This parameter is valid + only for `gp3` volumes. The maximum value is 2,000. + + Default: The existing value is retained if the source and target volume + type is `gp3`. Otherwise, the default value is 125. + + Valid Range: Minimum value of 125. Maximum value of 2,000. + """ + multi_attach_enabled: bool | None + """ + Specifies whether to enable Amazon EBS Multi-Attach. If you enable + Multi-Attach, you can attach the volume to up to 16 [Nitro-based + instances](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html) + in the same Availability Zone. This parameter is supported with `io1` + and `io2` volumes only. For more information, see [Amazon EBS + Multi-Attach](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html) + in the *Amazon EBS User Guide*. + """ + @dataclass(kw_only=True) class ModifyVolumeOutput(_SerdeShape): """Dataclass for ModifyVolumeOutput structure.""" @@ -1056,6 +1793,41 @@ class ModifyVpcAttributeInput(_SerdeShape): VPC. """ +class ModifyVpcAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcAttributeInput`.""" + + enable_dns_hostnames: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Indicates whether the instances launched in the VPC get DNS hostnames. + If enabled, instances in the VPC get DNS hostnames; otherwise, they do + not. + + You cannot modify the DNS resolution and DNS hostnames attributes in the + same request. Use separate requests for each attribute. You can only + enable DNS hostnames if you've enabled DNS support. + """ + enable_dns_support: AttributeBooleanValue | AttributeBooleanValueDict | None + """ + Indicates whether the DNS resolution is supported for the VPC. If + enabled, queries to the Amazon provided DNS server at the + 169.254.169.253 IP address, or the reserved IP address at the base of + the VPC network range \"plus two\" succeed. If disabled, the Amazon + provided DNS service in the VPC that resolves public DNS hostnames to IP + addresses is not enabled. + + You cannot modify the DNS resolution and DNS hostnames attributes in the + same request. Use separate requests for each attribute. + """ + vpc_id: Required[str] + """The ID of the VPC.""" + enable_network_address_usage_metrics: ( + AttributeBooleanValue | AttributeBooleanValueDict | None + ) + """ + Indicates whether Network Address Usage metrics are enabled for your + VPC. + """ + @dataclass(kw_only=True) class ModifyVpcAttributeOutput(_SerdeShape): """Dataclass for ModifyVpcAttributeOutput structure.""" @@ -1094,13 +1866,38 @@ class ModifyVpcBlockPublicAccessExclusionInput(_SerdeShape): Bidirectional. """ -@dataclass(kw_only=True) -class ModifyVpcBlockPublicAccessExclusionOutput(_SerdeShape): - """Dataclass for ModifyVpcBlockPublicAccessExclusionOutput structure.""" +class ModifyVpcBlockPublicAccessExclusionInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcBlockPublicAccessExclusionInput`.""" - vpc_block_public_access_exclusion: VpcBlockPublicAccessExclusion | None = ... - """Details related to the exclusion.""" - response_metadata: ResponseMetadata = ... + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + exclusion_id: Required[str] + """The ID of an exclusion.""" + internet_gateway_exclusion_mode: Required[str] + """ + The exclusion mode for internet gateway traffic. + + - `allow-bidirectional`: Allow all internet traffic to and from the + excluded VPCs and subnets. + + - `allow-egress`: Allow outbound internet traffic from the excluded VPCs + and subnets. Block inbound internet traffic to the excluded VPCs and + subnets. Only applies when VPC Block Public Access is set to + Bidirectional. + """ + +@dataclass(kw_only=True) +class ModifyVpcBlockPublicAccessExclusionOutput(_SerdeShape): + """Dataclass for ModifyVpcBlockPublicAccessExclusionOutput structure.""" + + vpc_block_public_access_exclusion: VpcBlockPublicAccessExclusion | None = ... + """Details related to the exclusion.""" + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order @@ -1136,6 +1933,33 @@ class ModifyVpcBlockPublicAccessOptionsInput(_SerdeShape): these gateways only allow outbound connections to be established. """ +class ModifyVpcBlockPublicAccessOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcBlockPublicAccessOptionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + internet_gateway_block_mode: Required[str] + """ + The mode of VPC BPA. + + - `off`: VPC BPA is not enabled and traffic is allowed to and from + internet gateways and egress-only internet gateways in this Region. + + - `block-bidirectional`: Block all traffic to and from internet gateways + and egress-only internet gateways in this Region (except for excluded + VPCs and subnets). + + - `block-ingress`: Block all internet traffic to the VPCs in this Region + (except for VPCs or subnets which are excluded). Only traffic to and + from NAT gateways and egress-only internet gateways is allowed because + these gateways only allow outbound connections to be established. + """ + @dataclass(kw_only=True) class ModifyVpcBlockPublicAccessOptionsOutput(_SerdeShape): """Dataclass for ModifyVpcBlockPublicAccessOptionsOutput structure.""" @@ -1206,6 +2030,61 @@ class ModifyVpcEncryptionControlInput(_SerdeShape): enforcement. """ +class ModifyVpcEncryptionControlInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcEncryptionControlInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_encryption_control_id: Required[str] + """The ID of the VPC Encryption Control resource to modify.""" + mode: str | None + """The encryption mode for the VPC Encryption Control configuration.""" + internet_gateway_exclusion: str | None + """ + Specifies whether to exclude internet gateway traffic from encryption + enforcement. + """ + egress_only_internet_gateway_exclusion: str | None + """ + Specifies whether to exclude egress-only internet gateway traffic from + encryption enforcement. + """ + nat_gateway_exclusion: str | None + """ + Specifies whether to exclude NAT gateway traffic from encryption + enforcement. + """ + virtual_private_gateway_exclusion: str | None + """ + Specifies whether to exclude virtual private gateway traffic from + encryption enforcement. + """ + vpc_peering_exclusion: str | None + """ + Specifies whether to exclude VPC peering connection traffic from + encryption enforcement. + """ + lambda_exclusion: str | None + """ + Specifies whether to exclude Lambda function traffic from encryption + enforcement. + """ + vpc_lattice_exclusion: str | None + """ + Specifies whether to exclude VPC Lattice traffic from encryption + enforcement. + """ + elastic_file_system_exclusion: str | None + """ + Specifies whether to exclude Elastic File System traffic from encryption + enforcement. + """ + @dataclass(kw_only=True) class ModifyVpcEncryptionControlOutput(_SerdeShape): """Dataclass for ModifyVpcEncryptionControlOutput structure.""" @@ -1241,6 +2120,26 @@ class ModifyVpcEndpointConnectionNotificationInput(_SerdeShape): `Delete`, and `Reject`. """ +class ModifyVpcEndpointConnectionNotificationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcEndpointConnectionNotificationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + connection_notification_id: Required[str] + """The ID of the notification.""" + connection_notification_arn: str | None + """The ARN for the SNS topic for the notification.""" + connection_events: Sequence[str] | None + """ + The events for the endpoint. Valid values are `Accept`, `Connect`, + `Delete`, and `Reject`. + """ + @dataclass(kw_only=True) class ModifyVpcEndpointConnectionNotificationOutput(_SerdeShape): """Dataclass for ModifyVpcEndpointConnectionNotificationOutput structure.""" @@ -1322,6 +2221,74 @@ class ModifyVpcEndpointInput(_SerdeShape): subnet_configurations: list[SubnetConfiguration] | None = ... """The subnet configurations for the endpoint.""" +class ModifyVpcEndpointInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcEndpointInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_endpoint_id: Required[str] + """The ID of the endpoint.""" + reset_policy: bool | None + """ + (Gateway endpoint) Specify `true` to reset the policy document to the + default policy. The default policy allows full access to the service. + """ + policy_document: str | None + """ + (Interface and gateway endpoints) A policy to attach to the endpoint + that controls access to the service. The policy must be in valid JSON + format. + """ + add_route_table_ids: Sequence[str] | None + """ + (Gateway endpoint) The IDs of the route tables to associate with the + endpoint. + """ + remove_route_table_ids: Sequence[str] | None + """ + (Gateway endpoint) The IDs of the route tables to disassociate from the + endpoint. + """ + add_subnet_ids: Sequence[str] | None + """ + (Interface and Gateway Load Balancer endpoints) The IDs of the subnets + in which to serve the endpoint. For a Gateway Load Balancer endpoint, + you can specify only one subnet. + """ + remove_subnet_ids: Sequence[str] | None + """ + (Interface endpoint) The IDs of the subnets from which to remove the + endpoint. + """ + add_security_group_ids: Sequence[str] | None + """ + (Interface endpoint) The IDs of the security groups to associate with + the endpoint network interfaces. + """ + remove_security_group_ids: Sequence[str] | None + """ + (Interface endpoint) The IDs of the security groups to disassociate from + the endpoint network interfaces. + """ + ip_address_type: str | None + """The IP address type for the endpoint.""" + dns_options: DnsOptionsSpecification | DnsOptionsSpecificationDict | None + """The DNS options for the endpoint.""" + private_dns_enabled: bool | None + """ + (Interface endpoint) Indicates whether a private hosted zone is + associated with the VPC. + """ + subnet_configurations: ( + Sequence[SubnetConfiguration | SubnetConfigurationDict] | None + ) + """The subnet configurations for the endpoint.""" + @dataclass(kw_only=True) class ModifyVpcEndpointOutput(_SerdeShape): """Dataclass for ModifyVpcEndpointOutput structure.""" @@ -1362,6 +2329,31 @@ class ModifyVpcEndpointPayerResponsibilityInput(_SerdeShape): modified. """ +class ModifyVpcEndpointPayerResponsibilityInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcEndpointPayerResponsibilityInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: str | None + """The ID of the VPC endpoint service.""" + vpc_endpoint_id: Required[str] + """The ID of the VPC endpoint.""" + payer_responsibility: Required[str] + """ + The Amazon Web Services account to which the usage of VPC endpoint is + charged. + """ + scope: Required[str] + """ + The scope of usage/charges for which the billing account is being + modified. + """ + @dataclass(kw_only=True) class ModifyVpcEndpointPayerResponsibilityOutput(_SerdeShape): """Dataclass for ModifyVpcEndpointPayerResponsibilityOutput structure.""" @@ -1435,6 +2427,62 @@ class ModifyVpcEndpointServiceConfigurationInput(_SerdeShape): remove_supported_regions: list[str] | None = ... """The supported Regions to remove from the service configuration.""" +class ModifyVpcEndpointServiceConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcEndpointServiceConfigurationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: Required[str] + """The ID of the service.""" + private_dns_name: str | None + """ + (Interface endpoint configuration) The private DNS name to assign to the + endpoint service. + """ + remove_private_dns_name: bool | None + """ + (Interface endpoint configuration) Removes the private DNS name of the + endpoint service. + """ + acceptance_required: bool | None + """ + Indicates whether requests to create an endpoint to the service must be + accepted. + """ + add_network_load_balancer_arns: Sequence[str] | None + """ + The Amazon Resource Names (ARNs) of Network Load Balancers to add to the + service configuration. + """ + remove_network_load_balancer_arns: Sequence[str] | None + """ + The Amazon Resource Names (ARNs) of Network Load Balancers to remove + from the service configuration. + """ + add_gateway_load_balancer_arns: Sequence[str] | None + """ + The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to the + service configuration. + """ + remove_gateway_load_balancer_arns: Sequence[str] | None + """ + The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove + from the service configuration. + """ + add_supported_ip_address_types: Sequence[str] | None + """The IP address types to add to the service configuration.""" + remove_supported_ip_address_types: Sequence[str] | None + """The IP address types to remove from the service configuration.""" + add_supported_regions: Sequence[str] | None + """The supported Regions to add to the service configuration.""" + remove_supported_regions: Sequence[str] | None + """The supported Regions to remove from the service configuration.""" + @dataclass(kw_only=True) class ModifyVpcEndpointServiceConfigurationOutput(_SerdeShape): """Dataclass for ModifyVpcEndpointServiceConfigurationOutput structure.""" @@ -1472,6 +2520,25 @@ class ModifyVpcEndpointServicePayerResponsibilityInput(_SerdeShape): owner, you cannot set it back to the endpoint owner. """ +class ModifyVpcEndpointServicePayerResponsibilityInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcEndpointServicePayerResponsibilityInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: Required[str] + """The ID of the service.""" + payer_responsibility: Required[str] + """ + The entity that is responsible for the endpoint costs. The default is + the endpoint owner. If you set the payer responsibility to the service + owner, you cannot set it back to the endpoint owner. + """ + @dataclass(kw_only=True) class ModifyVpcEndpointServicePayerResponsibilityOutput(_SerdeShape): """ @@ -1514,6 +2581,30 @@ class ModifyVpcEndpointServicePermissionsInput(_SerdeShape): revoked for principals in this list. """ +class ModifyVpcEndpointServicePermissionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcEndpointServicePermissionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: Required[str] + """The ID of the service.""" + add_allowed_principals: Sequence[str] | None + """ + The Amazon Resource Names (ARN) of the principals. Permissions are + granted to the principals in this list. To grant permissions to all + principals, specify an asterisk (*). + """ + remove_allowed_principals: Sequence[str] | None + """ + The Amazon Resource Names (ARN) of the principals. Permissions are + revoked for principals in this list. + """ + @dataclass(kw_only=True) class ModifyVpcEndpointServicePermissionsOutput(_SerdeShape): """Dataclass for ModifyVpcEndpointServicePermissionsOutput structure.""" @@ -1548,16 +2639,37 @@ class ModifyVpcPeeringConnectionOptionsInput(_SerdeShape): vpc_peering_connection_id: str | None = ... """The ID of the VPC peering connection.""" -@dataclass(kw_only=True) -class ModifyVpcPeeringConnectionOptionsOutput(_SerdeShape): - """Dataclass for ModifyVpcPeeringConnectionOptionsOutput structure.""" +class ModifyVpcPeeringConnectionOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcPeeringConnectionOptionsInput`.""" - accepter_peering_connection_options: PeeringConnectionOptions | None = ... - """ - Information about the VPC peering connection options for the accepter - VPC. - """ - requester_peering_connection_options: PeeringConnectionOptions | None = ... + accepter_peering_connection_options: ( + PeeringConnectionOptionsRequest | PeeringConnectionOptionsRequestDict | None + ) + """The VPC peering connection options for the accepter VPC.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + requester_peering_connection_options: ( + PeeringConnectionOptionsRequest | PeeringConnectionOptionsRequestDict | None + ) + """The VPC peering connection options for the requester VPC.""" + vpc_peering_connection_id: Required[str] + """The ID of the VPC peering connection.""" + +@dataclass(kw_only=True) +class ModifyVpcPeeringConnectionOptionsOutput(_SerdeShape): + """Dataclass for ModifyVpcPeeringConnectionOptionsOutput structure.""" + + accepter_peering_connection_options: PeeringConnectionOptions | None = ... + """ + Information about the VPC peering connection options for the accepter + VPC. + """ + requester_peering_connection_options: PeeringConnectionOptions | None = ... """ Information about the VPC peering connection options for the requester VPC. @@ -1586,6 +2698,21 @@ class ModifyVpcTenancyInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyVpcTenancyInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpcTenancyInput`.""" + + vpc_id: Required[str] + """The ID of the VPC.""" + instance_tenancy: Required[str] + """The instance tenancy attribute for the VPC.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyVpcTenancyOutput(_SerdeShape): """Dataclass for ModifyVpcTenancyOutput structure.""" @@ -1623,6 +2750,28 @@ class ModifyVpnConnectionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyVpnConnectionInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpnConnectionInput`.""" + + vpn_connection_id: Required[str] + """The ID of the VPN connection.""" + transit_gateway_id: str | None + """The ID of the transit gateway.""" + customer_gateway_id: str | None + """The ID of the customer gateway at your end of the VPN connection.""" + vpn_gateway_id: str | None + """ + The ID of the virtual private gateway at the Amazon Web Services side of + the VPN connection. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyVpnConnectionOptionsInput(_SerdeShape): """Dataclass for ModifyVpnConnectionOptionsInput structure.""" @@ -1671,6 +2820,53 @@ class ModifyVpnConnectionOptionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyVpnConnectionOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpnConnectionOptionsInput`.""" + + vpn_connection_id: Required[str] + """The ID of the Site-to-Site VPN connection.""" + local_ipv4_network_cidr: str | None + """ + The IPv4 CIDR on the customer gateway (on-premises) side of the VPN + connection. + + Default: `0.0.0.0/0` + """ + remote_ipv4_network_cidr: str | None + """ + The IPv4 CIDR on the Amazon Web Services side of the VPN connection. + + Default: `0.0.0.0/0` + """ + local_ipv6_network_cidr: str | None + """ + The IPv6 CIDR on the customer gateway (on-premises) side of the VPN + connection. + + Default: `::/0` + """ + remote_ipv6_network_cidr: str | None + """ + The IPv6 CIDR on the Amazon Web Services side of the VPN connection. + + Default: `::/0` + """ + tunnel_bandwidth: str | None + """ + The desired bandwidth specification for the VPN connection. `standard` + supports up to 1.25 Gbps per tunnel, while `large` supports up to 5 Gbps + per tunnel. Large bandwidth is only available for VPN connections + attached to a transit gateway or to Cloud WAN. The default value is + `standard`. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyVpnConnectionOptionsOutput(_SerdeShape): """Dataclass for ModifyVpnConnectionOptionsOutput structure.""" @@ -1715,6 +2911,21 @@ class ModifyVpnTunnelCertificateInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ModifyVpnTunnelCertificateInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpnTunnelCertificateInput`.""" + + vpn_connection_id: Required[str] + """The ID of the Amazon Web Services Site-to-Site VPN connection.""" + vpn_tunnel_outside_ip_address: Required[str] + """The external IP address of the VPN tunnel.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ModifyVpnTunnelCertificateOutput(_SerdeShape): """Dataclass for ModifyVpnTunnelCertificateOutput structure.""" @@ -1760,6 +2971,38 @@ class ModifyVpnTunnelOptionsInput(_SerdeShape): (stored in Amazon Web Services Secrets Manager). """ +class ModifyVpnTunnelOptionsInputDict(TypedDict, total=False): + """Dictionary form of `ModifyVpnTunnelOptionsInput`.""" + + vpn_connection_id: Required[str] + """The ID of the Amazon Web Services Site-to-Site VPN connection.""" + vpn_tunnel_outside_ip_address: Required[str] + """The external IP address of the VPN tunnel.""" + tunnel_options: Required[ + ModifyVpnTunnelOptionsSpecification | ModifyVpnTunnelOptionsSpecificationDict + ] + """The tunnel options to modify.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + skip_tunnel_replacement: bool | None + """ + Choose whether or not to trigger immediate tunnel replacement. This is + only applicable when turning on or off `EnableTunnelLifecycleControl`. + + Valid values: `True` | `False` + """ + pre_shared_key_storage: str | None + """ + Specifies the storage mode for the pre-shared key (PSK). Valid values + are `Standard` (stored in Site-to-Site VPN service) or `SecretsManager` + (stored in Amazon Web Services Secrets Manager). + """ + @dataclass(kw_only=True) class ModifyVpnTunnelOptionsOutput(_SerdeShape): """Dataclass for ModifyVpnTunnelOptionsOutput structure.""" @@ -1957,6 +3200,220 @@ class ModifyVpnTunnelOptionsSpecification(_SerdeShape): enable_tunnel_lifecycle_control: bool | None = ... """Turn on or off tunnel endpoint lifecycle control feature.""" +class ModifyVpnTunnelOptionsSpecificationDict(TypedDict, total=False): + """Dictionary form of `ModifyVpnTunnelOptionsSpecification`.""" + + tunnel_inside_cidr: str | None + """ + The range of inside IPv4 addresses for the tunnel. Any specified CIDR + blocks must be unique across all VPN connections that use the same + virtual private gateway. + + Constraints: A size /30 CIDR block from the `169.254.0.0/16` range. The + following CIDR blocks are reserved and cannot be used: + + - `169.254.0.0/30` + + - `169.254.1.0/30` + + - `169.254.2.0/30` + + - `169.254.3.0/30` + + - `169.254.4.0/30` + + - `169.254.5.0/30` + + - `169.254.169.252/30` + """ + tunnel_inside_ipv6_cidr: str | None + """ + The range of inside IPv6 addresses for the tunnel. Any specified CIDR + blocks must be unique across all VPN connections that use the same + transit gateway. + + Constraints: A size /126 CIDR block from the local `fd00::/8` range. + """ + pre_shared_key: str | None + """ + The pre-shared key (PSK) to establish initial authentication between the + virtual private gateway and the customer gateway. + + Constraints: Allowed characters are alphanumeric characters, periods + (.), and underscores (_). Must be between 8 and 64 characters in length + and cannot start with zero (0). + """ + phase1_lifetime_seconds: int | None + """ + The lifetime for phase 1 of the IKE negotiation, in seconds. + + Constraints: A value between 900 and 28,800. + + Default: `28800` + """ + phase2_lifetime_seconds: int | None + """ + The lifetime for phase 2 of the IKE negotiation, in seconds. + + Constraints: A value between 900 and 3,600. The value must be less than + the value for `Phase1LifetimeSeconds`. + + Default: `3600` + """ + rekey_margin_time_seconds: int | None + """ + The margin time, in seconds, before the phase 2 lifetime expires, during + which the Amazon Web Services side of the VPN connection performs an IKE + rekey. The exact time of the rekey is randomly selected based on the + value for `RekeyFuzzPercentage`. + + Constraints: A value between 60 and half of `Phase2LifetimeSeconds`. + + Default: `270` + """ + rekey_fuzz_percentage: int | None + """ + The percentage of the rekey window (determined by + `RekeyMarginTimeSeconds`) during which the rekey time is randomly + selected. + + Constraints: A value between 0 and 100. + + Default: `100` + """ + replay_window_size: int | None + """ + The number of packets in an IKE replay window. + + Constraints: A value between 64 and 2048. + + Default: `1024` + """ + dpd_timeout_seconds: int | None + """ + The number of seconds after which a DPD timeout occurs. A DPD timeout of + 40 seconds means that the VPN endpoint will consider the peer dead 30 + seconds after the first failed keep-alive. + + Constraints: A value greater than or equal to 30. + + Default: `40` + """ + dpd_timeout_action: str | None + """ + The action to take after DPD timeout occurs. Specify `restart` to + restart the IKE initiation. Specify `clear` to end the IKE session. + + Valid Values: `clear` | `none` | `restart` + + Default: `clear` + """ + phase1_encryption_algorithms: ( + Sequence[ + Phase1EncryptionAlgorithmsRequestListValue + | Phase1EncryptionAlgorithmsRequestListValueDict + ] + | None + ) + """ + One or more encryption algorithms that are permitted for the VPN tunnel + for phase 1 IKE negotiations. + + Valid values: `AES128` | `AES256` | `AES128-GCM-16` | `AES256-GCM-16` + """ + phase2_encryption_algorithms: ( + Sequence[ + Phase2EncryptionAlgorithmsRequestListValue + | Phase2EncryptionAlgorithmsRequestListValueDict + ] + | None + ) + """ + One or more encryption algorithms that are permitted for the VPN tunnel + for phase 2 IKE negotiations. + + Valid values: `AES128` | `AES256` | `AES128-GCM-16` | `AES256-GCM-16` + """ + phase1_integrity_algorithms: ( + Sequence[ + Phase1IntegrityAlgorithmsRequestListValue + | Phase1IntegrityAlgorithmsRequestListValueDict + ] + | None + ) + """ + One or more integrity algorithms that are permitted for the VPN tunnel + for phase 1 IKE negotiations. + + Valid values: `SHA1` | `SHA2-256` | `SHA2-384` | `SHA2-512` + """ + phase2_integrity_algorithms: ( + Sequence[ + Phase2IntegrityAlgorithmsRequestListValue + | Phase2IntegrityAlgorithmsRequestListValueDict + ] + | None + ) + """ + One or more integrity algorithms that are permitted for the VPN tunnel + for phase 2 IKE negotiations. + + Valid values: `SHA1` | `SHA2-256` | `SHA2-384` | `SHA2-512` + """ + phase1_dh_group_numbers: ( + Sequence[ + Phase1DHGroupNumbersRequestListValue + | Phase1DHGroupNumbersRequestListValueDict + ] + | None + ) + """ + One or more Diffie-Hellman group numbers that are permitted for the VPN + tunnel for phase 1 IKE negotiations. + + Valid values: `2` | `14` | `15` | `16` | `17` | `18` | `19` | + `20` | `21` | `22` | `23` | `24` + """ + phase2_dh_group_numbers: ( + Sequence[ + Phase2DHGroupNumbersRequestListValue + | Phase2DHGroupNumbersRequestListValueDict + ] + | None + ) + """ + One or more Diffie-Hellman group numbers that are permitted for the VPN + tunnel for phase 2 IKE negotiations. + + Valid values: `2` | `5` | `14` | `15` | `16` | `17` | `18` | `19` + | `20` | `21` | `22` | `23` | `24` + """ + ike_versions: ( + Sequence[IKEVersionsRequestListValue | IKEVersionsRequestListValueDict] | None + ) + """ + The IKE versions that are permitted for the VPN tunnel. + + Valid values: `ikev1` | `ikev2` + """ + startup_action: str | None + """ + The action to take when the establishing the tunnel for the VPN + connection. By default, your customer gateway device must initiate the + IKE negotiation and bring up the tunnel. Specify `start` for Amazon Web + Services to initiate the IKE negotiation. + + Valid Values: `add` | `start` + + Default: `add` + """ + log_options: ( + VpnTunnelLogOptionsSpecification | VpnTunnelLogOptionsSpecificationDict | None + ) + """Options for logging VPN tunnel activity.""" + enable_tunnel_lifecycle_control: bool | None + """Turn on or off tunnel endpoint lifecycle control feature.""" + @dataclass(kw_only=True) class Monitoring(_SerdeShape): """Describes the monitoring of an instance.""" @@ -1987,6 +3444,19 @@ class MonitorInstancesInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class MonitorInstancesInputDict(TypedDict, total=False): + """Dictionary form of `MonitorInstancesInput`.""" + + instance_ids: Required[Sequence[str]] + """The IDs of the instances.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class MonitorInstancesOutput(_SerdeShape): """Dataclass for MonitorInstancesOutput structure.""" @@ -2015,6 +3485,19 @@ class MoveAddressToVpcInput(_SerdeShape): public_ip: str | None = ... """The Elastic IP address.""" +class MoveAddressToVpcInputDict(TypedDict, total=False): + """Dictionary form of `MoveAddressToVpcInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + public_ip: Required[str] + """The Elastic IP address.""" + @dataclass(kw_only=True) class MoveAddressToVpcOutput(_SerdeShape): """Dataclass for MoveAddressToVpcOutput structure.""" @@ -2042,11 +3525,28 @@ class MoveByoipCidrToIpamInput(_SerdeShape): you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - cidr: str | None = ... + cidr: str | None = ... + """The BYOIP CIDR.""" + ipam_pool_id: str | None = ... + """The IPAM pool ID.""" + ipam_pool_owner: str | None = ... + """The Amazon Web Services account ID of the owner of the IPAM pool.""" + +class MoveByoipCidrToIpamInputDict(TypedDict, total=False): + """Dictionary form of `MoveByoipCidrToIpamInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + cidr: Required[str] """The BYOIP CIDR.""" - ipam_pool_id: str | None = ... + ipam_pool_id: Required[str] """The IPAM pool ID.""" - ipam_pool_owner: str | None = ... + ipam_pool_owner: Required[str] """The Amazon Web Services account ID of the owner of the IPAM pool.""" @dataclass(kw_only=True) @@ -2092,6 +3592,34 @@ class MoveCapacityReservationInstancesInput(_SerdeShape): Reservation. """ +class MoveCapacityReservationInstancesInputDict(TypedDict, total=False): + """Dictionary form of `MoveCapacityReservationInstancesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensure + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + source_capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation from which you want to move capacity.""" + destination_capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation that you want to move capacity into.""" + instance_count: Required[int] + """ + The number of instances that you want to move from the source Capacity + Reservation. + """ + @dataclass(kw_only=True) class MoveCapacityReservationInstancesOutput(_SerdeShape): """Dataclass for MoveCapacityReservationInstancesOutput structure.""" @@ -2491,6 +4019,20 @@ class NetworkBandwidthGbps(_SerdeShape): not specified, there is no maximum limit. """ +class NetworkBandwidthGbpsDict(TypedDict, total=False): + """Dictionary form of `NetworkBandwidthGbps`.""" + + min: float | None + """ + The minimum amount of network bandwidth, in Gbps. If this parameter is + not specified, there is no minimum limit. + """ + max: float | None + """ + The maximum amount of network bandwidth, in Gbps. If this parameter is + not specified, there is no maximum limit. + """ + @dataclass(kw_only=True) class NetworkBandwidthGbpsRequest(_SerdeShape): """ @@ -2518,6 +4060,20 @@ class NetworkBandwidthGbpsRequest(_SerdeShape): limit, omit this parameter. """ +class NetworkBandwidthGbpsRequestDict(TypedDict, total=False): + """Dictionary form of `NetworkBandwidthGbpsRequest`.""" + + min: float | None + """ + The minimum amount of network bandwidth, in Gbps. To specify no minimum + limit, omit this parameter. + """ + max: float | None + """ + The maximum amount of network bandwidth, in Gbps. To specify no maximum + limit, omit this parameter. + """ + @dataclass(kw_only=True) class NetworkCardInfo(_SerdeShape): """Describes the network card support of the instance type.""" @@ -2941,6 +4497,21 @@ class NetworkInterfaceAttachmentChanges(_SerdeShape): terminated. """ +class NetworkInterfaceAttachmentChangesDict(TypedDict, total=False): + """Dictionary form of `NetworkInterfaceAttachmentChanges`.""" + + default_ena_queue_count: bool | None + """The default number of the ENA queues.""" + ena_queue_count: int | None + """The number of ENA queues to be created with the instance.""" + attachment_id: str | None + """The ID of the network interface attachment.""" + delete_on_termination: bool | None + """ + Indicates whether the network interface is deleted when the instance is + terminated. + """ + class NetworkInterfaceAttribute(UnknownEnumMixin, StrEnum): DESCRIPTION = "description" GROUP_SET = "groupSet" @@ -2963,6 +4534,20 @@ class NetworkInterfaceCount(_SerdeShape): specified, there is no maximum limit. """ +class NetworkInterfaceCountDict(TypedDict, total=False): + """Dictionary form of `NetworkInterfaceCount`.""" + + min: int | None + """ + The minimum number of network interfaces. If this parameter is not + specified, there is no minimum limit. + """ + max: int | None + """ + The maximum number of network interfaces. If this parameter is not + specified, there is no maximum limit. + """ + @dataclass(kw_only=True) class NetworkInterfaceCountRequest(_SerdeShape): """The minimum and maximum number of network interfaces.""" @@ -2978,6 +4563,20 @@ class NetworkInterfaceCountRequest(_SerdeShape): omit this parameter. """ +class NetworkInterfaceCountRequestDict(TypedDict, total=False): + """Dictionary form of `NetworkInterfaceCountRequest`.""" + + min: int | None + """ + The minimum number of network interfaces. To specify no minimum limit, + omit this parameter. + """ + max: int | None + """ + The maximum number of network interfaces. To specify no maximum limit, + omit this parameter. + """ + class NetworkInterfaceCreationType(UnknownEnumMixin, StrEnum): EFA = "efa" EFA_ONLY = "efa-only" @@ -3141,6 +4740,14 @@ class NewDhcpConfiguration(_SerdeShape): values: list[str] | None = ... """The values for the DHCP option.""" +class NewDhcpConfigurationDict(TypedDict, total=False): + """Dictionary form of `NewDhcpConfiguration`.""" + + key: str | None + """The name of a DHCP option.""" + values: Sequence[str] | None + """The values for the DHCP option.""" + class NitroEnclavesSupport(UnknownEnumMixin, StrEnum): UNSUPPORTED = "unsupported" SUPPORTED = "supported" @@ -3324,6 +4931,72 @@ class OnDemandOptionsRequest(_SerdeShape): in the *Amazon EC2 User Guide*. """ +class OnDemandOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `OnDemandOptionsRequest`.""" + + allocation_strategy: str | None + """ + The strategy that determines the order of the launch template overrides + to use in fulfilling On-Demand capacity. + + `lowest-price` - EC2 Fleet uses price to determine the order, launching + the lowest price first. + + `prioritized` - EC2 Fleet uses the priority that you assigned to each + launch template override, launching the highest priority first. + + Default: `lowest-price` + """ + capacity_reservation_options: ( + CapacityReservationOptionsRequest | CapacityReservationOptionsRequestDict | None + ) + """ + The strategy for using unused Capacity Reservations for fulfilling + On-Demand capacity. + + Supported only for fleets of type `instant`. + """ + single_instance_type: bool | None + """ + Indicates that the fleet uses a single instance type to launch all + On-Demand Instances in the fleet. + + Supported only for fleets of type `instant`. + """ + single_availability_zone: bool | None + """ + Indicates that the fleet launches all On-Demand Instances into a single + Availability Zone. + + Supported only for fleets of type `instant`. + """ + min_target_capacity: int | None + """ + The minimum target capacity for On-Demand Instances in the fleet. If + this minimum capacity isn't reached, no instances are launched. + + Constraints: Maximum value of `1000`. Supported only for fleets of type + `instant`. + + At least one of the following must be specified: + `SingleAvailabilityZone` | `SingleInstanceType` + """ + max_total_price: str | None + """ + The maximum amount per hour for On-Demand Instances that you're willing + to pay. + + Note: + If your fleet includes T instances that are configured as `unlimited`, + and if their average CPU usage exceeds the baseline utilization, you + will incur a charge for surplus credits. The `MaxTotalPrice` does not + account for surplus credits, and, if you use surplus credits, your final + cost might be higher than what you specified for `MaxTotalPrice`. For + more information, see [Surplus credits can incur + charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) + in the *Amazon EC2 User Guide*. + """ + class OperationType(UnknownEnumMixin, StrEnum): ADD = "add" REMOVE = "remove" @@ -3335,6 +5008,12 @@ class OperatorRequest(_SerdeShape): principal: str | None = ... """The service provider that manages the resource.""" +class OperatorRequestDict(TypedDict, total=False): + """Dictionary form of `OperatorRequest`.""" + + principal: str | None + """The service provider that manages the resource.""" + @dataclass(kw_only=True) class OperatorResponse(_SerdeShape): """ @@ -3419,6 +5098,24 @@ class PacketHeaderStatementRequest(_SerdeShape): protocols: list[str] | None = ... """The protocols.""" +class PacketHeaderStatementRequestDict(TypedDict, total=False): + """Dictionary form of `PacketHeaderStatementRequest`.""" + + source_addresses: Sequence[str] | None + """The source addresses.""" + destination_addresses: Sequence[str] | None + """The destination addresses.""" + source_ports: Sequence[str] | None + """The source ports.""" + destination_ports: Sequence[str] | None + """The destination ports.""" + source_prefix_lists: Sequence[str] | None + """The source prefix lists.""" + destination_prefix_lists: Sequence[str] | None + """The destination prefix lists.""" + protocols: Sequence[str] | None + """The protocols.""" + class PartitionLoadFrequency(UnknownEnumMixin, StrEnum): NONE = "none" DAILY = "daily" @@ -3506,6 +5203,18 @@ class PathRequestFilter(_SerdeShape): destination_port_range: RequestFilterPortRange | None = ... """The destination port range.""" +class PathRequestFilterDict(TypedDict, total=False): + """Dictionary form of `PathRequestFilter`.""" + + source_address: str | None + """The source IPv4 address.""" + source_port_range: RequestFilterPortRange | RequestFilterPortRangeDict | None + """The source port range.""" + destination_address: str | None + """The destination IPv4 address.""" + destination_port_range: RequestFilterPortRange | RequestFilterPortRangeDict | None + """The destination port range.""" + @dataclass(kw_only=True) class PathStatement(_SerdeShape): """Describes a path statement.""" @@ -3524,6 +5233,16 @@ class PathStatementRequest(_SerdeShape): resource_statement: ResourceStatementRequest | None = ... """The resource statement.""" +class PathStatementRequestDict(TypedDict, total=False): + """Dictionary form of `PathStatementRequest`.""" + + packet_header_statement: ( + PacketHeaderStatementRequest | PacketHeaderStatementRequestDict | None + ) + """The packet header statement.""" + resource_statement: ResourceStatementRequest | ResourceStatementRequestDict | None + """The resource statement.""" + class PayerResponsibility(UnknownEnumMixin, StrEnum): SERVICE_OWNER = "ServiceOwner" @@ -3604,6 +5323,19 @@ class PeeringConnectionOptionsRequest(_SerdeShape): allow_egress_from_local_vpc_to_remote_classic_link: bool | None = ... """Deprecated.""" +class PeeringConnectionOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `PeeringConnectionOptionsRequest`.""" + + allow_dns_resolution_from_remote_vpc: bool | None + """ + If true, enables a local VPC to resolve public DNS hostnames to private + IP addresses when queried from instances in the peer VPC. + """ + allow_egress_from_local_classic_link_to_remote_vpc: bool | None + """Deprecated.""" + allow_egress_from_local_vpc_to_remote_classic_link: bool | None + """Deprecated.""" + @dataclass(kw_only=True) class PeeringTgwInfo(_SerdeShape): """Information about the transit gateway in the peering attachment.""" @@ -3677,6 +5409,57 @@ class PerformanceFactorReference(_SerdeShape): [ModifySpotFleetRequest](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifySpotFleetRequest). """ +class PerformanceFactorReferenceDict(TypedDict, total=False): + """Dictionary form of `PerformanceFactorReference`.""" + + instance_family: str | None + """ + The instance family to use as a baseline reference. + + Note: + Ensure that you specify the correct value for the instance family. The + instance family is everything before the period (`.`) in the instance + type name. For example, in the instance type `c6i.large`, the instance + family is `c6i`, not `c6`. For more information, see [Amazon EC2 + instance type naming + conventions](https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html) + in *Amazon EC2 Instance Types*. + + The following instance families are *not supported* for performance + protection: + + - `c1` + + - `g3` | `g3s` + + - `hpc7g` + + - `m1` | `m2` + + - `mac1` | `mac2` | `mac2-m1ultra` | `mac2-m2` | `mac2-m2pro` + + - `p3dn` | `p4d` | `p5` + + - `t1` + + - `u-12tb1` | `u-18tb1` | `u-24tb1` | `u-3tb1` | `u-6tb1` | + `u-9tb1` | `u7i-12tb` | `u7in-16tb` | `u7in-24tb` | `u7in-32tb` + + If you enable performance protection by specifying a supported instance + family, the returned instance types will exclude the above unsupported + instance families. + + If you specify an unsupported instance family as a value for baseline + performance, the API returns an empty response for + [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements) + and an exception for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet), + [RequestSpotFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet), + [ModifyFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyFleet), + and + [ModifySpotFleetRequest](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifySpotFleetRequest). + """ + @dataclass(kw_only=True) class PerformanceFactorReferenceRequest(_SerdeShape): """ @@ -3689,7 +5472,58 @@ class PerformanceFactorReferenceRequest(_SerdeShape): Currently, only one instance family can be specified in the list. """ - instance_family: str | None = ... + instance_family: str | None = ... + """ + The instance family to use as a baseline reference. + + Note: + Ensure that you specify the correct value for the instance family. The + instance family is everything before the period (`.`) in the instance + type name. For example, in the instance type `c6i.large`, the instance + family is `c6i`, not `c6`. For more information, see [Amazon EC2 + instance type naming + conventions](https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html) + in *Amazon EC2 Instance Types*. + + The following instance families are *not supported* for performance + protection: + + - `c1` + + - `g3` | `g3s` + + - `hpc7g` + + - `m1` | `m2` + + - `mac1` | `mac2` | `mac2-m1ultra` | `mac2-m2` | `mac2-m2pro` + + - `p3dn` | `p4d` | `p5` + + - `t1` + + - `u-12tb1` | `u-18tb1` | `u-24tb1` | `u-3tb1` | `u-6tb1` | + `u-9tb1` | `u7i-12tb` | `u7in-16tb` | `u7in-24tb` | `u7in-32tb` + + If you enable performance protection by specifying a supported instance + family, the returned instance types will exclude the above unsupported + instance families. + + If you specify an unsupported instance family as a value for baseline + performance, the API returns an empty response for + [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements) + and an exception for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet), + [RequestSpotFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet), + [ModifyFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyFleet), + and + [ModifySpotFleetRequest](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifySpotFleetRequest). + """ + +class PerformanceFactorReferenceRequestDict(TypedDict, total=False): + """Dictionary form of `PerformanceFactorReferenceRequest`.""" + + instance_family: str | None """ The instance family to use as a baseline reference. @@ -3782,6 +5616,12 @@ class Phase1DHGroupNumbersRequestListValue(_SerdeShape): value: int | None = ... """The Diffie-Hellmann group number.""" +class Phase1DHGroupNumbersRequestListValueDict(TypedDict, total=False): + """Dictionary form of `Phase1DHGroupNumbersRequestListValue`.""" + + value: int | None + """The Diffie-Hellmann group number.""" + @dataclass(kw_only=True) class Phase1EncryptionAlgorithmsListValue(_SerdeShape): """The encryption algorithm for phase 1 IKE negotiations.""" @@ -3799,6 +5639,12 @@ class Phase1EncryptionAlgorithmsRequestListValue(_SerdeShape): value: str | None = ... """The value for the encryption algorithm.""" +class Phase1EncryptionAlgorithmsRequestListValueDict(TypedDict, total=False): + """Dictionary form of `Phase1EncryptionAlgorithmsRequestListValue`.""" + + value: str | None + """The value for the encryption algorithm.""" + @dataclass(kw_only=True) class Phase1IntegrityAlgorithmsListValue(_SerdeShape): """The integrity algorithm for phase 1 IKE negotiations.""" @@ -3816,6 +5662,12 @@ class Phase1IntegrityAlgorithmsRequestListValue(_SerdeShape): value: str | None = ... """The value for the integrity algorithm.""" +class Phase1IntegrityAlgorithmsRequestListValueDict(TypedDict, total=False): + """Dictionary form of `Phase1IntegrityAlgorithmsRequestListValue`.""" + + value: str | None + """The value for the integrity algorithm.""" + @dataclass(kw_only=True) class Phase2DHGroupNumbersListValue(_SerdeShape): """The Diffie-Hellmann group number for phase 2 IKE negotiations.""" @@ -3833,6 +5685,12 @@ class Phase2DHGroupNumbersRequestListValue(_SerdeShape): value: int | None = ... """The Diffie-Hellmann group number.""" +class Phase2DHGroupNumbersRequestListValueDict(TypedDict, total=False): + """Dictionary form of `Phase2DHGroupNumbersRequestListValue`.""" + + value: int | None + """The Diffie-Hellmann group number.""" + @dataclass(kw_only=True) class Phase2EncryptionAlgorithmsListValue(_SerdeShape): """The encryption algorithm for phase 2 IKE negotiations.""" @@ -3850,6 +5708,12 @@ class Phase2EncryptionAlgorithmsRequestListValue(_SerdeShape): value: str | None = ... """The encryption algorithm.""" +class Phase2EncryptionAlgorithmsRequestListValueDict(TypedDict, total=False): + """Dictionary form of `Phase2EncryptionAlgorithmsRequestListValue`.""" + + value: str | None + """The encryption algorithm.""" + @dataclass(kw_only=True) class Phase2IntegrityAlgorithmsListValue(_SerdeShape): """The integrity algorithm for phase 2 IKE negotiations.""" @@ -3867,6 +5731,12 @@ class Phase2IntegrityAlgorithmsRequestListValue(_SerdeShape): value: str | None = ... """The integrity algorithm.""" +class Phase2IntegrityAlgorithmsRequestListValueDict(TypedDict, total=False): + """Dictionary form of `Phase2IntegrityAlgorithmsRequestListValue`.""" + + value: str | None + """The integrity algorithm.""" + class PhcSupport(UnknownEnumMixin, StrEnum): UNSUPPORTED = "unsupported" SUPPORTED = "supported" @@ -3960,6 +5830,94 @@ class Placement(_SerdeShape): [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). """ +class PlacementDict(TypedDict, total=False): + """Dictionary form of `Placement`.""" + + availability_zone_id: str | None + """ + The ID of the Availability Zone of the instance. + + On input, you can specify `AvailabilityZone` or `AvailabilityZoneId`, + but not both. If you specify neither one, Amazon EC2 automatically + selects an Availability Zone for you. + + This parameter is not supported for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). + """ + affinity: str | None + """ + The affinity setting for the instance on the Dedicated Host. + + This parameter is not supported for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) + or + [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html). + """ + group_name: str | None + """ + The name of the placement group that the instance is in. + + On input, you can specify `GroupId` or `GroupName`, but not both. + """ + partition_number: int | None + """ + The number of the partition that the instance is in. Valid only if the + placement group strategy is set to `partition`. + + This parameter is not supported for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). + """ + host_id: str | None + """ + The ID of the Dedicated Host on which the instance resides. + + This parameter is not supported for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet) + or + [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html). + """ + tenancy: str | None + """ + The tenancy of the instance. An instance with a tenancy of `dedicated` + runs on single-tenant hardware. + + This parameter is not supported for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). + The `host` tenancy is not supported for + [ImportInstance](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html) + or for T3 instances that are configured for the `unlimited` CPU credit + option. + """ + spread_domain: str | None + """Reserved for future use.""" + host_resource_group_arn: str | None + """ + The ARN of the host resource group in which to launch the instances. + + On input, if you specify this parameter, either omit the **Tenancy** + parameter or set it to `host`. + + This parameter is not supported for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). + """ + group_id: str | None + """ + The ID of the placement group that the instance is in. + + On input, you can specify `GroupId` or `GroupName`, but not both. + """ + availability_zone: str | None + """ + The Availability Zone of the instance. + + On input, you can specify `AvailabilityZone` or `AvailabilityZoneId`, + but not both. If you specify neither one, Amazon EC2 automatically + selects an Availability Zone for you. + + This parameter is not supported for + [CreateFleet](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). + """ + @dataclass(kw_only=True) class PlacementGroup(_SerdeShape): """Describes a placement group.""" @@ -4043,6 +6001,14 @@ class PortRange(_SerdeShape): to: int | None = ... """The last port in the range.""" +class PortRangeDict(TypedDict, total=False): + """Dictionary form of `PortRange`.""" + + from_: int | None + """The first port in the range.""" + to: int | None + """The last port in the range.""" + @dataclass(kw_only=True) class PrefixList(_SerdeShape): """Describes prefixes for Amazon Web Services services.""" @@ -4087,6 +6053,20 @@ class PrefixListId(_SerdeShape): prefix_list_id: str | None = ... """The ID of the prefix.""" +class PrefixListIdDict(TypedDict, total=False): + """Dictionary form of `PrefixListId`.""" + + description: str | None + """ + A description for the security group rule that references this prefix + list ID. + + Constraints: Up to 255 characters in length. Allowed characters are a-z, + A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$* + """ + prefix_list_id: str | None + """The ID of the prefix.""" + class PrefixListState(UnknownEnumMixin, StrEnum): CREATE_IN_PROGRESS = "create-in-progress" CREATE_COMPLETE = "create-complete" @@ -4148,6 +6128,22 @@ class PriceScheduleSpecification(_SerdeShape): the only supported currency is `USD`. """ +class PriceScheduleSpecificationDict(TypedDict, total=False): + """Dictionary form of `PriceScheduleSpecification`.""" + + term: int | None + """ + The number of months remaining in the reservation. For example, 2 is the + second to the last month before the capacity reservation expires. + """ + price: float | None + """The fixed price for the term.""" + currency_code: str | None + """ + The currency for transacting the Reserved Instance resale. At this time, + the only supported currency is `USD`. + """ + @dataclass(kw_only=True) class PricingDetail(_SerdeShape): """Describes a Reserved Instance offering.""" @@ -4251,6 +6247,28 @@ class PrivateDnsNameOptionsRequest(_SerdeShape): DNS AAAA records. """ +class PrivateDnsNameOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `PrivateDnsNameOptionsRequest`.""" + + hostname_type: str | None + """ + The type of hostname for EC2 instances. For IPv4 only subnets, an + instance DNS name must be based on the instance IPv4 address. For IPv6 + only subnets, an instance DNS name must be based on the instance ID. For + dual-stack subnets, you can specify whether DNS names use the instance + IPv4 address or the instance ID. + """ + enable_resource_name_dns_a_record: bool | None + """ + Indicates whether to respond to DNS queries for instance hostnames with + DNS A records. + """ + enable_resource_name_dns_aaaa_record: bool | None + """ + Indicates whether to respond to DNS queries for instance hostnames with + DNS AAAA records. + """ + @dataclass(kw_only=True) class PrivateDnsNameOptionsResponse(_SerdeShape): """Describes the options for instance hostnames.""" @@ -4280,6 +6298,17 @@ class PrivateIpAddressSpecification(_SerdeShape): private_ip_address: str | None = ... """The private IPv4 address.""" +class PrivateIpAddressSpecificationDict(TypedDict, total=False): + """Dictionary form of `PrivateIpAddressSpecification`.""" + + primary: bool | None + """ + Indicates whether the private IPv4 address is the primary private IPv4 + address. Only one IPv4 address can be designated as primary. + """ + private_ip_address: str | None + """The private IPv4 address.""" + @dataclass(kw_only=True) class ProcessorInfo(_SerdeShape): """Describes the processor used by the instance type.""" @@ -4386,6 +6415,68 @@ class ProvisionByoipCidrInput(_SerdeShape): at this time. """ +class ProvisionByoipCidrInputDict(TypedDict, total=False): + """Dictionary form of `ProvisionByoipCidrInput`.""" + + cidr: Required[str] + """ + The public IPv4 or IPv6 address range, in CIDR notation. The most + specific IPv4 prefix that you can specify is /24. The most specific IPv6 + address range that you can bring is /48 for CIDRs that are publicly + advertisable and /56 for CIDRs that are not publicly advertisable. The + address range cannot overlap with another address range that you've + brought to this or another Region. + """ + cidr_authorization_context: ( + CidrAuthorizationContext | CidrAuthorizationContextDict | None + ) + """ + A signed document that proves that you are authorized to bring the + specified IP address range to Amazon using BYOIP. + """ + publicly_advertisable: bool | None + """ + (IPv6 only) Indicate whether the address range will be publicly + advertised to the internet. + + Default: true + """ + description: str | None + """A description for the address range and the address pool.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + pool_tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the address pool.""" + multi_region: bool | None + """Reserved.""" + network_border_group: str | None + """ + If you have [Local + Zones](https://docs.aws.amazon.com/local-zones/latest/ug/how-local-zones-work.html) + enabled, you can choose a network border group for Local Zones when you + provision and advertise a BYOIPv4 CIDR. Choose the network border group + carefully as the EIP and the Amazon Web Services resource it is + associated with must reside in the same network border group. + + You can provision BYOIP address ranges to and advertise them in the + following Local Zone network border groups: + + - us-east-1-dfw-2 + + - us-west-2-lax-1 + + - us-west-2-phx-2 + + Note: + You cannot provision or advertise BYOIPv6 address ranges in Local Zones + at this time. + """ + @dataclass(kw_only=True) class ProvisionByoipCidrOutput(_SerdeShape): """Dataclass for ProvisionByoipCidrOutput structure.""" @@ -4437,6 +6528,25 @@ class ProvisionIpamByoasnInput(_SerdeShape): asn_authorization_context: AsnAuthorizationContext | None = ... """An ASN authorization context.""" +class ProvisionIpamByoasnInputDict(TypedDict, total=False): + """Dictionary form of `ProvisionIpamByoasnInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + ipam_id: Required[str] + """An IPAM ID.""" + asn: Required[str] + """A public 2-byte or 4-byte ASN.""" + asn_authorization_context: Required[ + AsnAuthorizationContext | AsnAuthorizationContextDict + ] + """An ASN authorization context.""" + @dataclass(kw_only=True) class ProvisionIpamByoasnOutput(_SerdeShape): """Dataclass for ProvisionIpamByoasnOutput structure.""" @@ -4470,13 +6580,67 @@ class ProvisionIpamPoolCidrInput(_SerdeShape): or \"Cidr\" is required. This value will be null if you specify \"NetmaskLength\" and will be filled in during the provisioning process. """ - cidr_authorization_context: IpamCidrAuthorizationContext | None = ... + cidr_authorization_context: IpamCidrAuthorizationContext | None = ... + """ + A signed document that proves that you are authorized to bring a + specified IP address range to Amazon using BYOIP. This option only + applies to IPv4 and IPv6 pools in the public scope. + """ + netmask_length: int | None = ... + """ + The netmask length of the CIDR you'd like to provision to a pool. Can + be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools + and for provisioning CIDRs to pools with source pools. Cannot be used to + provision BYOIP CIDRs to top-level pools. Either \"NetmaskLength\" or + \"Cidr\" is required. + """ + client_token: str | None = ... + """ + A unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + verification_method: str | None = ... + """ + The method for verifying control of a public IP address range. Defaults + to `remarks-x509` if not specified. This option only applies to IPv4 and + IPv6 pools in the public scope. + """ + ipam_external_resource_verification_token_id: str | None = ... + """ + Verification token ID. This option only applies to IPv4 and IPv6 pools + in the public scope. + """ + +class ProvisionIpamPoolCidrInputDict(TypedDict, total=False): + """Dictionary form of `ProvisionIpamPoolCidrInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: Required[str] + """The ID of the IPAM pool to which you want to assign a CIDR.""" + cidr: str | None + """ + The CIDR you want to assign to the IPAM pool. Either \"NetmaskLength\" + or \"Cidr\" is required. This value will be null if you specify + \"NetmaskLength\" and will be filled in during the provisioning process. + """ + cidr_authorization_context: ( + IpamCidrAuthorizationContext | IpamCidrAuthorizationContextDict | None + ) """ A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option only applies to IPv4 and IPv6 pools in the public scope. """ - netmask_length: int | None = ... + netmask_length: int | None """ The netmask length of the CIDR you'd like to provision to a pool. Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools @@ -4484,7 +6648,7 @@ class ProvisionIpamPoolCidrInput(_SerdeShape): provision BYOIP CIDRs to top-level pools. Either \"NetmaskLength\" or \"Cidr\" is required. """ - client_token: str | None = ... + client_token: str | None """ A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see [Ensuring @@ -4492,13 +6656,13 @@ class ProvisionIpamPoolCidrInput(_SerdeShape): This field is autopopulated if not provided. """ - verification_method: str | None = ... + verification_method: str | None """ The method for verifying control of a public IP address range. Defaults to `remarks-x509` if not specified. This option only applies to IPv4 and IPv6 pools in the public scope. """ - ipam_external_resource_verification_token_id: str | None = ... + ipam_external_resource_verification_token_id: str | None """ Verification token ID. This option only applies to IPv4 and IPv6 pools in the public scope. @@ -4548,6 +6712,35 @@ class ProvisionPublicIpv4PoolCidrInput(_SerdeShape): in the *Amazon EC2 User Guide*. """ +class ProvisionPublicIpv4PoolCidrInputDict(TypedDict, total=False): + """Dictionary form of `ProvisionPublicIpv4PoolCidrInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: Required[str] + """The ID of the IPAM pool you would like to use to allocate this CIDR.""" + pool_id: Required[str] + """The ID of the public IPv4 pool you would like to use for this CIDR.""" + netmask_length: Required[int] + """ + The netmask length of the CIDR you would like to allocate to the public + IPv4 pool. The least specific netmask length you can define is 24. + """ + network_border_group: str | None + """ + The Availability Zone (AZ) or Local Zone (LZ) network border group that + the resource that the IP address is assigned to is in. Defaults to an AZ + network border group. For more information on available Local Zones, see + [Local Zone + availability](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail) + in the *Amazon EC2 User Guide*. + """ + @dataclass(kw_only=True) class ProvisionPublicIpv4PoolCidrOutput(_SerdeShape): """Dataclass for ProvisionPublicIpv4PoolCidrOutput structure.""" @@ -4697,6 +6890,21 @@ class PurchaseCapacityBlockExtensionInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class PurchaseCapacityBlockExtensionInputDict(TypedDict, total=False): + """Dictionary form of `PurchaseCapacityBlockExtensionInput`.""" + + capacity_block_extension_offering_id: Required[str] + """The ID of the Capacity Block extension offering to purchase.""" + capacity_reservation_id: Required[str] + """The ID of the Capacity reservation to be extended.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class PurchaseCapacityBlockExtensionOutput(_SerdeShape): """Dataclass for PurchaseCapacityBlockExtensionOutput structure.""" @@ -4729,6 +6937,23 @@ class PurchaseCapacityBlockInput(_SerdeShape): instance_platform: str | None = ... """The type of operating system for which to reserve capacity.""" +class PurchaseCapacityBlockInputDict(TypedDict, total=False): + """Dictionary form of `PurchaseCapacityBlockInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the Capacity Block during launch.""" + capacity_block_offering_id: Required[str] + """The ID of the Capacity Block offering.""" + instance_platform: Required[str] + """The type of operating system for which to reserve capacity.""" + @dataclass(kw_only=True) class PurchaseCapacityBlockOutput(_SerdeShape): """Dataclass for PurchaseCapacityBlockOutput structure.""" @@ -4781,6 +7006,41 @@ class PurchaseHostReservationInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply to the Dedicated Host Reservation during purchase.""" +class PurchaseHostReservationInputDict(TypedDict, total=False): + """Dictionary form of `PurchaseHostReservationInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + """ + currency_code: str | None + """ + The currency in which the `totalUpfrontPrice`, `LimitPrice`, and + `totalHourlyPrice` amounts are specified. At this time, the only + supported currency is `USD`. + """ + host_id_set: Required[Sequence[str]] + """ + The IDs of the Dedicated Hosts with which the reservation will be + associated. + """ + limit_price: str | None + """ + The specified limit is checked against the total upfront cost of the + reservation (calculated as the offering's upfront cost multiplied by + the host count). If the total upfront cost is greater than the specified + price limit, the request fails. This is used to ensure that the purchase + does not exceed the expected upfront cost of the purchase. At this time, + the only supported currency is `USD`. For example, to indicate a limit + price of USD 100, specify 100.00. + """ + offering_id: Required[str] + """The ID of the offering.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply to the Dedicated Host Reservation during purchase.""" + @dataclass(kw_only=True) class PurchaseHostReservationOutput(_SerdeShape): """Dataclass for PurchaseHostReservationOutput structure.""" @@ -4823,6 +7083,14 @@ class PurchaseRequest(_SerdeShape): purchase_token: str | None = ... """The purchase token.""" +class PurchaseRequestDict(TypedDict, total=False): + """Dictionary form of `PurchaseRequest`.""" + + instance_count: Required[int] + """The number of instances.""" + purchase_token: Required[str] + """The purchase token.""" + @dataclass(kw_only=True) class PurchaseReservedInstancesOfferingInput(_SerdeShape): """Contains the parameters for PurchaseReservedInstancesOffering.""" @@ -4850,6 +7118,32 @@ class PurchaseReservedInstancesOfferingInput(_SerdeShape): unexpected prices. """ +class PurchaseReservedInstancesOfferingInputDict(TypedDict, total=False): + """Dictionary form of `PurchaseReservedInstancesOfferingInput`.""" + + instance_count: Required[int] + """The number of Reserved Instances to purchase.""" + reserved_instances_offering_id: Required[str] + """The ID of the Reserved Instance offering to purchase.""" + purchase_time: datetime | None + """ + The time at which to purchase the Reserved Instance, in UTC format (for + example, *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + limit_price: ReservedInstanceLimitPrice | ReservedInstanceLimitPriceDict | None + """ + Specified for Reserved Instance Marketplace offerings to limit the total + order and ensure that the Reserved Instances are not purchased at + unexpected prices. + """ + @dataclass(kw_only=True) class PurchaseReservedInstancesOfferingOutput(_SerdeShape): """Contains the output of PurchaseReservedInstancesOffering.""" @@ -4892,6 +7186,27 @@ class PurchaseScheduledInstancesInput(_SerdeShape): purchase_requests: list[PurchaseRequest] | None = ... """The purchase requests.""" +class PurchaseScheduledInstancesInputDict(TypedDict, total=False): + """Dictionary form of `PurchaseScheduledInstancesInput`.""" + + client_token: str | None + """ + Unique, case-sensitive identifier that ensures the idempotency of the + request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + purchase_requests: Required[Sequence[PurchaseRequest | PurchaseRequestDict]] + """The purchase requests.""" + @dataclass(kw_only=True) class PurchaseScheduledInstancesOutput(_SerdeShape): """Contains the output of PurchaseScheduledInstances.""" @@ -4920,6 +7235,19 @@ class RebootInstancesInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class RebootInstancesInputDict(TypedDict, total=False): + """Dictionary form of `RebootInstancesInput`.""" + + instance_ids: Required[Sequence[str]] + """The instance IDs.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class RebootInstancesOutput(_SerdeShape): """Dataclass for RebootInstancesOutput structure.""" @@ -5221,3 +7549,156 @@ class RegisterImageInput(_SerdeShape): This option is supported only for HVM AMIs. Specifying this option with a PV AMI can make instances launched from the AMI unreachable. """ + +class RegisterImageInputDict(TypedDict, total=False): + """Dictionary form of `RegisterImageInput`.""" + + image_location: str | None + """ + The full path to your AMI manifest in Amazon S3 storage. The specified + bucket must have the `aws-exec-read` canned access control list (ACL) to + ensure that it can be accessed by Amazon EC2. For more information, see + [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) + in the *Amazon S3 Service Developer Guide*. + """ + billing_products: Sequence[str] | None + """ + The billing product codes. Your account must be authorized to specify + billing product codes. + + If your account is not authorized to specify billing product codes, you + can publish AMIs that include billable software and list them on the + Amazon Web Services Marketplace. You must first register as a seller on + the Amazon Web Services Marketplace. For more information, see [Getting + started as an Amazon Web Services Marketplace + seller](https://docs.aws.amazon.com/marketplace/latest/userguide/user-guide-for-sellers.html) + and [AMI-based products in Amazon Web Services + Marketplace](https://docs.aws.amazon.com/marketplace/latest/userguide/ami-products.html) + in the *Amazon Web Services Marketplace Seller Guide*. + """ + boot_mode: str | None + """ + The boot mode of the AMI. A value of `uefi-preferred` indicates that the + AMI supports both UEFI and Legacy BIOS. + + Note: + The operating system contained in the AMI must be configured to support + the specified boot mode. + + For more information, see [Instance launch behavior with Amazon EC2 boot + modes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html) + in the *Amazon EC2 User Guide*. + """ + tpm_support: str | None + """ + Set to `v2.0` to enable Trusted Platform Module (TPM) support. For more + information, see + [NitroTPM](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html) + in the *Amazon EC2 User Guide*. + """ + uefi_data: str | None + """ + Base64 representation of the non-volatile UEFI variable store. To + retrieve the UEFI data, use the + [GetInstanceUefiData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData) + command. You can inspect and modify the UEFI data by using the + [python-uefivars tool](https://github.com/awslabs/python-uefivars) on + GitHub. For more information, see [UEFI Secure Boot for Amazon EC2 + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html) + in the *Amazon EC2 User Guide*. + """ + imds_support: str | None + """ + Set to `v2.0` to indicate that IMDSv2 is specified in the AMI. Instances + launched from this AMI will have `HttpTokens` automatically set to + `required` so that, by default, the instance requires that IMDSv2 is + used when requesting instance metadata. In addition, + `HttpPutResponseHopLimit` is set to `2`. For more information, see + [Configure the + AMI](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration) + in the *Amazon EC2 User Guide*. + + Note: + If you set the value to `v2.0`, make sure that your AMI software can + support IMDSv2. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The tags to apply to the AMI. + + To tag the AMI, the value for `ResourceType` must be `image`. If you + specify another value for `ResourceType`, the request fails. + + To tag an AMI after it has been registered, see + [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + name: Required[str] + """ + A name for your AMI. + + Constraints: 3-128 alphanumeric characters, parentheses (()), square + brackets ([]), spaces ( ), periods (.), slashes (/), dashes (-), + single quotes ('), at-signs (@), or underscores(_) + """ + description: str | None + """A description for your AMI.""" + architecture: str | None + """ + The architecture of the AMI. + + Default: For Amazon EBS-backed AMIs, `i386`. For instance store-backed + AMIs, the architecture specified in the manifest file. + """ + kernel_id: str | None + """The ID of the kernel.""" + ramdisk_id: str | None + """The ID of the RAM disk.""" + root_device_name: str | None + """The device name of the root device volume (for example, `/dev/sda1`).""" + block_device_mappings: Sequence[BlockDeviceMapping | BlockDeviceMappingDict] | None + """ + The block device mapping entries. + + If you specify an Amazon EBS volume using the ID of an Amazon EBS + snapshot, you can't specify the encryption state of the volume. + + If you create an AMI on an Outpost, then all backing snapshots must be + on the same Outpost or in the Region of that Outpost. AMIs on an Outpost + that include local snapshots can be used to launch instances on the same + Outpost only. For more information, [Create AMIs from local + snapshots](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami) + in the *Amazon EBS User Guide*. + """ + virtualization_type: str | None + """ + The type of virtualization (`hvm` | `paravirtual`). + + Default: `paravirtual` + """ + sriov_net_support: str | None + """ + Set to `simple` to enable enhanced networking with the Intel 82599 + Virtual Function interface for the AMI and any instances that you launch + from the AMI. + + There is no way to disable `sriovNetSupport` at this time. + + This option is supported only for HVM AMIs. Specifying this option with + a PV AMI can make instances launched from the AMI unreachable. + """ + ena_support: bool | None + """ + Set to `true` to enable enhanced networking with ENA for the AMI and any + instances that you launch from the AMI. + + This option is supported only for HVM AMIs. Specifying this option with + a PV AMI can make instances launched from the AMI unreachable. + """ diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_10.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_10.pyi index 2b9e51e77..ae88504e5 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_10.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_10.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -10,95 +12,145 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( AddressAttribute, BlockDeviceMapping, + BlockDeviceMappingDict, CapacityReservationSpecification, + CapacityReservationSpecificationDict, ClientVpnAuthorizationRuleStatus, CpuOptionsRequest, + CpuOptionsRequestDict, CreditSpecification, CreditSpecificationRequest, + CreditSpecificationRequestDict, ElasticGpuSpecification, + ElasticGpuSpecificationDict, ElasticGpuSpecificationResponse, ElasticInferenceAccelerator, + ElasticInferenceAcceleratorDict, EnclaveOptionsRequest, + EnclaveOptionsRequestDict, Filter, + FilterDict, FleetCapacityReservationTargetRequest, + FleetCapacityReservationTargetRequestDict, GroupIdentifier, HibernationOptionsRequest, + HibernationOptionsRequestDict, IamInstanceProfileAssociation, IamInstanceProfileSpecification, + IamInstanceProfileSpecificationDict, IcmpTypeCode, + IcmpTypeCodeDict, ImageCriterionRequest, + ImageCriterionRequestDict, Instance, InstanceCount, InstanceIpv6Address, + InstanceIpv6AddressDict, InstanceMaintenanceOptionsRequest, + InstanceMaintenanceOptionsRequestDict, InstanceMarketOptionsRequest, + InstanceMarketOptionsRequestDict, InstanceMetadataOptionsRequest, + InstanceMetadataOptionsRequestDict, InstanceNetworkInterfaceSpecification, + InstanceNetworkInterfaceSpecificationDict, InstanceNetworkPerformanceOptionsRequest, + InstanceNetworkPerformanceOptionsRequestDict, InstanceRequirements, InstanceRequirementsRequest, + InstanceRequirementsRequestDict, InstanceSecondaryInterfaceSpecificationRequest, + InstanceSecondaryInterfaceSpecificationRequestDict, InstanceTagNotificationAttribute, InstanceTypeSpecificationRequest, + InstanceTypeSpecificationRequestDict, IpPermission, + IpPermissionDict, LaunchTemplateBlockDeviceMapping, LaunchTemplateBlockDeviceMappingRequest, + LaunchTemplateBlockDeviceMappingRequestDict, LaunchTemplateCapacityReservationSpecificationRequest, + LaunchTemplateCapacityReservationSpecificationRequestDict, LaunchTemplateCapacityReservationSpecificationResponse, LaunchTemplateCpuOptions, LaunchTemplateCpuOptionsRequest, + LaunchTemplateCpuOptionsRequestDict, LaunchTemplateElasticInferenceAccelerator, + LaunchTemplateElasticInferenceAcceleratorDict, LaunchTemplateElasticInferenceAcceleratorResponse, LaunchTemplateEnclaveOptions, LaunchTemplateEnclaveOptionsRequest, + LaunchTemplateEnclaveOptionsRequestDict, LaunchTemplateHibernationOptions, LaunchTemplateHibernationOptionsRequest, + LaunchTemplateHibernationOptionsRequestDict, LaunchTemplateIamInstanceProfileSpecification, LaunchTemplateIamInstanceProfileSpecificationRequest, + LaunchTemplateIamInstanceProfileSpecificationRequestDict, LaunchTemplateInstanceMaintenanceOptions, LaunchTemplateInstanceMaintenanceOptionsRequest, + LaunchTemplateInstanceMaintenanceOptionsRequestDict, LaunchTemplateInstanceMarketOptions, LaunchTemplateInstanceMarketOptionsRequest, + LaunchTemplateInstanceMarketOptionsRequestDict, LaunchTemplateInstanceMetadataOptions, LaunchTemplateInstanceMetadataOptionsRequest, + LaunchTemplateInstanceMetadataOptionsRequestDict, LaunchTemplateInstanceNetworkInterfaceSpecification, LaunchTemplateInstanceNetworkInterfaceSpecificationRequest, + LaunchTemplateInstanceNetworkInterfaceSpecificationRequestDict, LaunchTemplateInstanceSecondaryInterfaceSpecification, LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest, + LaunchTemplateInstanceSecondaryInterfaceSpecificationRequestDict, LaunchTemplateLicenseConfiguration, LaunchTemplateLicenseConfigurationRequest, + LaunchTemplateLicenseConfigurationRequestDict, LaunchTemplateNetworkPerformanceOptions, LaunchTemplateNetworkPerformanceOptionsRequest, + LaunchTemplateNetworkPerformanceOptionsRequestDict, LaunchTemplatePlacement, LaunchTemplatePlacementRequest, + LaunchTemplatePlacementRequestDict, LaunchTemplatePrivateDnsNameOptions, LaunchTemplatePrivateDnsNameOptionsRequest, + LaunchTemplatePrivateDnsNameOptionsRequestDict, LaunchTemplateSpecification, + LaunchTemplateSpecificationDict, LaunchTemplateTagSpecification, LaunchTemplateTagSpecificationRequest, + LaunchTemplateTagSpecificationRequestDict, LaunchTemplatesMonitoring, LaunchTemplatesMonitoringRequest, + LaunchTemplatesMonitoringRequestDict, LicenseConfigurationRequest, + LicenseConfigurationRequestDict, LocalGatewayRoute, ManagedPrefixList, OperatorRequest, + OperatorRequestDict, OperatorResponse, Placement, + PlacementDict, PortRange, + PortRangeDict, PriceSchedule, PricingDetail, PrivateDnsDetails, PrivateDnsNameConfiguration, PrivateDnsNameOptionsRequest, + PrivateDnsNameOptionsRequestDict, PropagatingVgw, RecurringCharge, ReferencedSecurityGroup, SpotFleetRequestConfigData, + SpotFleetRequestConfigDataDict, SpotInstanceRequest, SpotPlacement, + SpotPlacementDict, SupportedRegionDetail, Tag, TagSpecification, + TagSpecificationDict, TransitGatewayClientVpnAttachment, TransitGatewayMulticastDomainAssociations, TransitGatewayMulticastGroup, @@ -110,6 +162,7 @@ from ..models import ( UnsuccessfulItem, UserBucket, UserBucketDetails, + UserBucketDict, _SerdeShape, ) @@ -144,6 +197,21 @@ class RegisterInstanceEventNotificationAttributesInput(_SerdeShape): instance_tag_attribute: RegisterInstanceTagAttributeRequest | None = ... """Information about the tag keys to register.""" +class RegisterInstanceEventNotificationAttributesInputDict(TypedDict, total=False): + """Dictionary form of `RegisterInstanceEventNotificationAttributesInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_tag_attribute: Required[ + RegisterInstanceTagAttributeRequest | RegisterInstanceTagAttributeRequestDict + ] + """Information about the tag keys to register.""" + @dataclass(kw_only=True) class RegisterInstanceEventNotificationAttributesOutput(_SerdeShape): """ @@ -178,6 +246,17 @@ class RegisterInstanceTagAttributeRequest(_SerdeShape): instance_tag_keys: list[str] | None = ... """The tag keys to register.""" +class RegisterInstanceTagAttributeRequestDict(TypedDict, total=False): + """Dictionary form of `RegisterInstanceTagAttributeRequest`.""" + + include_all_tags_of_instance: bool | None + """ + Indicates whether to register all tag keys in the current Region. + Specify `true` to register all tag keys. + """ + instance_tag_keys: Sequence[str] | None + """The tag keys to register.""" + @dataclass(kw_only=True) class RegisterTransitGatewayMulticastGroupMembersInput(_SerdeShape): """ @@ -202,6 +281,26 @@ class RegisterTransitGatewayMulticastGroupMembersInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class RegisterTransitGatewayMulticastGroupMembersInputDict(TypedDict, total=False): + """Dictionary form of `RegisterTransitGatewayMulticastGroupMembersInput`.""" + + transit_gateway_multicast_domain_id: Required[str] + """The ID of the transit gateway multicast domain.""" + group_ip_address: str | None + """The IP address assigned to the transit gateway multicast group.""" + network_interface_ids: Required[Sequence[str]] + """ + The group members' network interface IDs to register with the transit + gateway multicast group. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class RegisterTransitGatewayMulticastGroupMembersOutput(_SerdeShape): """ @@ -248,6 +347,26 @@ class RegisterTransitGatewayMulticastGroupSourcesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class RegisterTransitGatewayMulticastGroupSourcesInputDict(TypedDict, total=False): + """Dictionary form of `RegisterTransitGatewayMulticastGroupSourcesInput`.""" + + transit_gateway_multicast_domain_id: Required[str] + """The ID of the transit gateway multicast domain.""" + group_ip_address: str | None + """The IP address assigned to the transit gateway multicast group.""" + network_interface_ids: Required[Sequence[str]] + """ + The group sources' network interface IDs to register with the transit + gateway multicast group. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class RegisterTransitGatewayMulticastGroupSourcesOutput(_SerdeShape): """ @@ -281,6 +400,19 @@ class RejectCapacityReservationBillingOwnershipInput(_SerdeShape): capacity_reservation_id: str | None = ... """The ID of the Capacity Reservation for which to reject the request.""" +class RejectCapacityReservationBillingOwnershipInputDict(TypedDict, total=False): + """Dictionary form of `RejectCapacityReservationBillingOwnershipInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + capacity_reservation_id: Required[str] + """The ID of the Capacity Reservation for which to reject the request.""" + @dataclass(kw_only=True) class RejectCapacityReservationBillingOwnershipOutput(_SerdeShape): """Dataclass for RejectCapacityReservationBillingOwnershipOutput structure.""" @@ -309,6 +441,19 @@ class RejectTransitGatewayClientVpnAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class RejectTransitGatewayClientVpnAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `RejectTransitGatewayClientVpnAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the Transit Gateway attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class RejectTransitGatewayClientVpnAttachmentOutput(_SerdeShape): """Dataclass for RejectTransitGatewayClientVpnAttachmentOutput structure.""" @@ -349,6 +494,26 @@ class RejectTransitGatewayMulticastDomainAssociationsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class RejectTransitGatewayMulticastDomainAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `RejectTransitGatewayMulticastDomainAssociationsInput`.""" + + transit_gateway_multicast_domain_id: str | None + """The ID of the transit gateway multicast domain.""" + transit_gateway_attachment_id: str | None + """The ID of the transit gateway attachment.""" + subnet_ids: Sequence[str] | None + """ + The IDs of the subnets to associate with the transit gateway multicast + domain. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class RejectTransitGatewayMulticastDomainAssociationsOutput(_SerdeShape): """ @@ -380,6 +545,19 @@ class RejectTransitGatewayPeeringAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class RejectTransitGatewayPeeringAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `RejectTransitGatewayPeeringAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the transit gateway peering attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class RejectTransitGatewayPeeringAttachmentOutput(_SerdeShape): """Dataclass for RejectTransitGatewayPeeringAttachmentOutput structure.""" @@ -408,6 +586,19 @@ class RejectTransitGatewayVpcAttachmentInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class RejectTransitGatewayVpcAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `RejectTransitGatewayVpcAttachmentInput`.""" + + transit_gateway_attachment_id: Required[str] + """The ID of the attachment.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class RejectTransitGatewayVpcAttachmentOutput(_SerdeShape): """Dataclass for RejectTransitGatewayVpcAttachmentOutput structure.""" @@ -438,6 +629,21 @@ class RejectVpcEndpointConnectionsInput(_SerdeShape): vpc_endpoint_ids: list[str] | None = ... """The IDs of the VPC endpoints.""" +class RejectVpcEndpointConnectionsInputDict(TypedDict, total=False): + """Dictionary form of `RejectVpcEndpointConnectionsInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: Required[str] + """The ID of the service.""" + vpc_endpoint_ids: Required[Sequence[str]] + """The IDs of the VPC endpoints.""" + @dataclass(kw_only=True) class RejectVpcEndpointConnectionsOutput(_SerdeShape): """Dataclass for RejectVpcEndpointConnectionsOutput structure.""" @@ -466,6 +672,19 @@ class RejectVpcPeeringConnectionInput(_SerdeShape): vpc_peering_connection_id: str | None = ... """The ID of the VPC peering connection.""" +class RejectVpcPeeringConnectionInputDict(TypedDict, total=False): + """Dictionary form of `RejectVpcPeeringConnectionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + vpc_peering_connection_id: Required[str] + """The ID of the VPC peering connection.""" + @dataclass(kw_only=True) class RejectVpcPeeringConnectionOutput(_SerdeShape): """Dataclass for RejectVpcPeeringConnectionOutput structure.""" @@ -504,6 +723,29 @@ class ReleaseAddressInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ReleaseAddressInputDict(TypedDict, total=False): + """Dictionary form of `ReleaseAddressInput`.""" + + allocation_id: str | None + """The allocation ID. This parameter is required.""" + public_ip: str | None + """Deprecated.""" + network_border_group: str | None + """ + The set of Availability Zones, Local Zones, or Wavelength Zones from + which Amazon Web Services advertises IP addresses. + + If you provide an incorrect network border group, you receive an + `InvalidAddress.NotFound` error. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ReleaseAddressOutput(_SerdeShape): """Dataclass for ReleaseAddressOutput structure.""" @@ -523,6 +765,12 @@ class ReleaseHostsInput(_SerdeShape): host_ids: list[str] | None = ... """The IDs of the Dedicated Hosts to release.""" +class ReleaseHostsInputDict(TypedDict, total=False): + """Dictionary form of `ReleaseHostsInput`.""" + + host_ids: Required[Sequence[str]] + """The IDs of the Dedicated Hosts to release.""" + @dataclass(kw_only=True) class ReleaseHostsOutput(_SerdeShape): """Dataclass for ReleaseHostsOutput structure.""" @@ -563,6 +811,26 @@ class ReleaseIpamPoolAllocationInput(_SerdeShape): ipam_pool_allocation_id: str | None = ... """The ID of the allocation.""" +class ReleaseIpamPoolAllocationInputDict(TypedDict, total=False): + """Dictionary form of `ReleaseIpamPoolAllocationInput`.""" + + dry_run: bool | None + """ + A check for whether you have the required permissions for the action + without actually making the request and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + ipam_pool_id: Required[str] + """ + The ID of the IPAM pool which contains the allocation you want to + release. + """ + cidr: Required[str] + """The CIDR of the allocation you want to release.""" + ipam_pool_allocation_id: Required[str] + """The ID of the allocation.""" + @dataclass(kw_only=True) class ReleaseIpamPoolAllocationOutput(_SerdeShape): """Dataclass for ReleaseIpamPoolAllocationOutput structure.""" @@ -593,6 +861,12 @@ class RemoveIpamOperatingRegion(_SerdeShape): region_name: str | None = ... """The name of the operating Region you want to remove.""" +class RemoveIpamOperatingRegionDict(TypedDict, total=False): + """Dictionary form of `RemoveIpamOperatingRegion`.""" + + region_name: str | None + """The name of the operating Region you want to remove.""" + @dataclass(kw_only=True) class RemoveIpamOrganizationalUnitExclusion(_SerdeShape): """ @@ -638,6 +912,41 @@ class RemoveIpamOrganizationalUnitExclusion(_SerdeShape): in the *Amazon Web Services Identity and Access Management User Guide*. """ +class RemoveIpamOrganizationalUnitExclusionDict(TypedDict, total=False): + """Dictionary form of `RemoveIpamOrganizationalUnitExclusion`.""" + + organizations_entity_path: str | None + """ + An Amazon Web Services Organizations entity path. Build the path for the + OU(s) using Amazon Web Services Organizations IDs separated by a `/`. + Include all child OUs by ending the path with `/*`. + + - Example 1 + + - Path to a child OU: + `o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/ou-jkl0-awsddddd/` + + - In this example, `o-a1b2c3d4e5` is the organization ID, + `r-f6g7h8i9j0example` is the root ID , `ou-ghi0-awsccccc` is an OU + ID, and `ou-jkl0-awsddddd` is a child OU ID. + + - IPAM will not manage the IP addresses in accounts in the child OU. + + - Example 2 + + - Path where all child OUs will be part of the exclusion: + `o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/*` + + - In this example, IPAM will not manage the IP addresses in accounts + in the OU (`ou-ghi0-awsccccc`) or in accounts in any OUs that are + children of the OU. + + For more information on how to construct an entity path, see [Understand + the Amazon Web Services Organizations entity + path](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed-view-data-orgs.html#access_policies_access-advisor-viewing-orgs-entity-path) + in the *Amazon Web Services Identity and Access Management User Guide*. + """ + @dataclass(kw_only=True) class RemovePrefixListEntry(_SerdeShape): """An entry for a prefix list.""" @@ -645,6 +954,12 @@ class RemovePrefixListEntry(_SerdeShape): cidr: str | None = ... """The CIDR block.""" +class RemovePrefixListEntryDict(TypedDict, total=False): + """Dictionary form of `RemovePrefixListEntry`.""" + + cidr: Required[str] + """The CIDR block.""" + @dataclass(kw_only=True) class ReplaceIamInstanceProfileAssociationInput(_SerdeShape): """Dataclass for ReplaceIamInstanceProfileAssociationInput structure.""" @@ -654,6 +969,16 @@ class ReplaceIamInstanceProfileAssociationInput(_SerdeShape): association_id: str | None = ... """The ID of the existing IAM instance profile association.""" +class ReplaceIamInstanceProfileAssociationInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceIamInstanceProfileAssociationInput`.""" + + iam_instance_profile: Required[ + IamInstanceProfileSpecification | IamInstanceProfileSpecificationDict + ] + """The IAM instance profile.""" + association_id: Required[str] + """The ID of the existing IAM instance profile association.""" + @dataclass(kw_only=True) class ReplaceIamInstanceProfileAssociationOutput(_SerdeShape): """Dataclass for ReplaceIamInstanceProfileAssociationOutput structure.""" @@ -689,6 +1014,23 @@ class ReplaceImageCriteriaInAllowedImagesSettingsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ReplaceImageCriteriaInAllowedImagesSettingsInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceImageCriteriaInAllowedImagesSettingsInput`.""" + + image_criteria: Sequence[ImageCriterionRequest | ImageCriterionRequestDict] | None + """ + The list of criteria that are evaluated to determine whether AMIs are + discoverable and usable in the account in the specified Amazon Web + Services Region. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ReplaceImageCriteriaInAllowedImagesSettingsOutput(_SerdeShape): """ @@ -725,6 +1067,26 @@ class ReplaceImageInstanceTypeSpecificationInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ReplaceImageInstanceTypeSpecificationInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceImageInstanceTypeSpecificationInput`.""" + + image_id: Required[str] + """The ID of the AMI.""" + instance_type_specification: ( + InstanceTypeSpecificationRequest | InstanceTypeSpecificationRequestDict | None + ) + """ + The instance type specification to set on the AMI. Omit this parameter + to remove the existing instance type specification. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ReplaceImageInstanceTypeSpecificationOutput(_SerdeShape): """Dataclass for ReplaceImageInstanceTypeSpecificationOutput structure.""" @@ -762,6 +1124,24 @@ class ReplaceNetworkAclAssociationInput(_SerdeShape): network_acl_id: str | None = ... """The ID of the new network ACL to associate with the subnet.""" +class ReplaceNetworkAclAssociationInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceNetworkAclAssociationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + association_id: Required[str] + """ + The ID of the current association between the original network ACL and + the subnet. + """ + network_acl_id: Required[str] + """The ID of the new network ACL to associate with the subnet.""" + @dataclass(kw_only=True) class ReplaceNetworkAclAssociationOutput(_SerdeShape): """Dataclass for ReplaceNetworkAclAssociationOutput structure.""" @@ -831,30 +1211,84 @@ class ReplaceNetworkAclEntryInput(_SerdeShape): if specifying protocol 6 (TCP) or 17 (UDP). """ -@dataclass(kw_only=True) -class ReplaceNetworkAclEntryOutput(_SerdeShape): - """Dataclass for ReplaceNetworkAclEntryOutput structure.""" - - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class ReplaceRootVolumeTask(_SerdeShape): - """Information about a root volume replacement task.""" +class ReplaceNetworkAclEntryInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceNetworkAclEntryInput`.""" - replace_root_volume_task_id: str | None = ... - """The ID of the root volume replacement task.""" - instance_id: str | None = ... + dry_run: bool | None """ - The ID of the instance for which the root volume replacement task was - created. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - task_state: str | None = ... + network_acl_id: Required[str] + """The ID of the ACL.""" + rule_number: Required[int] + """The rule number of the entry to replace.""" + protocol: Required[str] + """ + The protocol number. A value of \"-1\" means all protocols. If you + specify \"-1\" or a protocol number other than \"6\" (TCP), \"17\" + (UDP), or \"1\" (ICMP), traffic on all ports is allowed, regardless of + any ports or ICMP types or codes that you specify. If you specify + protocol \"58\" (ICMPv6) and specify an IPv4 CIDR block, traffic for all + ICMP types and codes allowed, regardless of any that you specify. If you + specify protocol \"58\" (ICMPv6) and specify an IPv6 CIDR block, you + must specify an ICMP type and code. + """ + rule_action: Required[str] + """Indicates whether to allow or deny the traffic that matches the rule.""" + egress: Required[bool] + """ + Indicates whether to replace the egress rule. + + Default: If no value is specified, we replace the ingress rule. + """ + cidr_block: str | None + """ + The IPv4 network range to allow or deny, in CIDR notation (for example + `172.16.0.0/24`). + """ + ipv6_cidr_block: str | None + """ + The IPv6 network range to allow or deny, in CIDR notation (for example + `2001:bd8:1234:1a00::/64`). + """ + icmp_type_code: IcmpTypeCode | IcmpTypeCodeDict | None + """ + ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying + protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block. + """ + port_range: PortRange | PortRangeDict | None + """ + TCP or UDP protocols: The range of ports the rule applies to. Required + if specifying protocol 6 (TCP) or 17 (UDP). + """ + +@dataclass(kw_only=True) +class ReplaceNetworkAclEntryOutput(_SerdeShape): + """Dataclass for ReplaceNetworkAclEntryOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ReplaceRootVolumeTask(_SerdeShape): + """Information about a root volume replacement task.""" + + replace_root_volume_task_id: str | None = ... + """The ID of the root volume replacement task.""" + instance_id: str | None = ... + """ + The ID of the instance for which the root volume replacement task was + created. + """ + task_state: str | None = ... """ The state of the task. The task can be in one of the following states: @@ -959,6 +1393,63 @@ class ReplaceRouteInput(_SerdeShape): nat_gateway_id: str | None = ... """[IPv4 traffic only] The ID of a NAT gateway.""" +class ReplaceRouteInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceRouteInput`.""" + + destination_prefix_list_id: str | None + """The ID of the prefix list for the route.""" + vpc_endpoint_id: str | None + """ + The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints + only. + """ + local_target: bool | None + """ + Specifies whether to reset the local route to its default target + (`local`). + """ + transit_gateway_id: str | None + """The ID of a transit gateway.""" + local_gateway_id: str | None + """The ID of the local gateway.""" + carrier_gateway_id: str | None + """[IPv4 traffic only] The ID of a carrier gateway.""" + core_network_arn: str | None + """The Amazon Resource Name (ARN) of the core network.""" + odb_network_arn: str | None + """The Amazon Resource Name (ARN) of the ODB network.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + route_table_id: Required[str] + """The ID of the route table.""" + destination_cidr_block: str | None + """ + The IPv4 CIDR address block used for the destination match. The value + that you provide must match the CIDR of an existing route in the table. + """ + gateway_id: str | None + """The ID of an internet gateway or virtual private gateway.""" + destination_ipv6_cidr_block: str | None + """ + The IPv6 CIDR address block used for the destination match. The value + that you provide must match the CIDR of an existing route in the table. + """ + egress_only_internet_gateway_id: str | None + """[IPv6 traffic only] The ID of an egress-only internet gateway.""" + instance_id: str | None + """The ID of a NAT instance in your VPC.""" + network_interface_id: str | None + """The ID of a network interface.""" + vpc_peering_connection_id: str | None + """The ID of a VPC peering connection.""" + nat_gateway_id: str | None + """[IPv4 traffic only] The ID of a NAT gateway.""" + @dataclass(kw_only=True) class ReplaceRouteOutput(_SerdeShape): """Dataclass for ReplaceRouteOutput structure.""" @@ -987,6 +1478,21 @@ class ReplaceRouteTableAssociationInput(_SerdeShape): route_table_id: str | None = ... """The ID of the new route table to associate with the subnet.""" +class ReplaceRouteTableAssociationInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceRouteTableAssociationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + association_id: Required[str] + """The association ID.""" + route_table_id: Required[str] + """The ID of the new route table to associate with the subnet.""" + @dataclass(kw_only=True) class ReplaceRouteTableAssociationOutput(_SerdeShape): """Dataclass for ReplaceRouteTableAssociationOutput structure.""" @@ -1026,6 +1532,28 @@ class ReplaceTransitGatewayRouteInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ReplaceTransitGatewayRouteInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceTransitGatewayRouteInput`.""" + + destination_cidr_block: Required[str] + """ + The CIDR range used for the destination match. Routing decisions are + based on the most specific match. + """ + transit_gateway_route_table_id: Required[str] + """The ID of the route table.""" + transit_gateway_attachment_id: str | None + """The ID of the attachment.""" + blackhole: bool | None + """Indicates whether traffic matching this route is to be dropped.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ReplaceTransitGatewayRouteOutput(_SerdeShape): """Dataclass for ReplaceTransitGatewayRouteOutput structure.""" @@ -1058,6 +1586,23 @@ class ReplaceVpnTunnelInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ReplaceVpnTunnelInputDict(TypedDict, total=False): + """Dictionary form of `ReplaceVpnTunnelInput`.""" + + vpn_connection_id: Required[str] + """The ID of the Site-to-Site VPN connection.""" + vpn_tunnel_outside_ip_address: Required[str] + """The external IP address of the VPN tunnel.""" + apply_pending_maintenance: bool | None + """Trigger pending tunnel endpoint maintenance.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ReplaceVpnTunnelOutput(_SerdeShape): """Dataclass for ReplaceVpnTunnelOutput structure.""" @@ -1131,6 +1676,53 @@ class ReportInstanceStatusInput(_SerdeShape): description: str | None = ... """Descriptive text about the health state of your instance.""" +class ReportInstanceStatusInputDict(TypedDict, total=False): + """Dictionary form of `ReportInstanceStatusInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + instances: Required[Sequence[str]] + """The instances.""" + status: Required[str] + """The status of all instances listed.""" + start_time: datetime | None + """The time at which the reported instance health state began.""" + end_time: datetime | None + """The time at which the reported instance health state ended.""" + reason_codes: Required[Sequence[str]] + """ + The reason codes that describe the health state of your instance. + + - `instance-stuck-in-state`: My instance is stuck in a state. + + - `unresponsive`: My instance is unresponsive. + + - `not-accepting-credentials`: My instance is not accepting my + credentials. + + - `password-not-available`: A password is not available for my instance. + + - `performance-network`: My instance is experiencing performance + problems that I believe are network related. + + - `performance-instance-store`: My instance is experiencing performance + problems that I believe are related to the instance stores. + + - `performance-ebs-volume`: My instance is experiencing performance + problems that I believe are related to an EBS volume. + + - `performance-other`: My instance is experiencing performance problems. + + - `other`: [explain using the description parameter] + """ + description: str | None + """Descriptive text about the health state of your instance.""" + @dataclass(kw_only=True) class ReportInstanceStatusOutput(_SerdeShape): """Dataclass for ReportInstanceStatusOutput structure.""" @@ -1162,6 +1754,14 @@ class RequestFilterPortRange(_SerdeShape): to_port: int | None = ... """The last port in the range.""" +class RequestFilterPortRangeDict(TypedDict, total=False): + """Dictionary form of `RequestFilterPortRange`.""" + + from_port: int | None + """The first port in the range.""" + to_port: int | None + """The last port in the range.""" + @dataclass(kw_only=True) class RequestIpamResourceTag(_SerdeShape): """A tag on an IPAM resource.""" @@ -1175,6 +1775,18 @@ class RequestIpamResourceTag(_SerdeShape): value: str | None = ... """The value for the tag.""" +class RequestIpamResourceTagDict(TypedDict, total=False): + """Dictionary form of `RequestIpamResourceTag`.""" + + key: str | None + """ + The key of a tag assigned to the resource. Use this filter to find all + resources assigned a tag with a specific key, regardless of the tag + value. + """ + value: str | None + """The value for the tag.""" + @dataclass(kw_only=True) class RequestLaunchTemplateData(_SerdeShape): """ @@ -1493,742 +2105,674 @@ class RequestLaunchTemplateData(_SerdeShape): template. """ -@dataclass(kw_only=True) -class RequestSpotFleetInput(_SerdeShape): - """Contains the parameters for RequestSpotFleet.""" - - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. - """ - spot_fleet_request_config: SpotFleetRequestConfigData | None = ... - """The configuration for the Spot Fleet request.""" - -@dataclass(kw_only=True) -class RequestSpotFleetOutput(_SerdeShape): - """Contains the output of RequestSpotFleet.""" +class RequestLaunchTemplateDataDict(TypedDict, total=False): + """Dictionary form of `RequestLaunchTemplateData`.""" - spot_fleet_request_id: str | None = ... - """The ID of the Spot Fleet request.""" - response_metadata: ResponseMetadata = ... + kernel_id: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class RequestSpotInstancesInput(_SerdeShape): - """Contains the parameters for RequestSpotInstances.""" + The ID of the kernel. - launch_specification: RequestSpotLaunchSpecification | None = ... - """The launch specification.""" - tag_specifications: list[TagSpecification] | None = ... - """ - The key-value pair for tagging the Spot Instance request on creation. - The value for `ResourceType` must be `spot-instances-request`, otherwise - the Spot Instance request fails. To tag the Spot Instance request after - it has been created, see - [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). - """ - instance_interruption_behavior: str | None = ... - """ - The behavior when a Spot Instance is interrupted. The default is - `terminate`. + Warning: + We recommend that you use PV-GRUB instead of kernels and RAM disks. For + more information, see [User provided + kernels](https://docs.aws.amazon.com/linux/al2/ug/UserProvidedKernels.html) + in the *Amazon Linux 2 User Guide*. """ - dry_run: bool | None = ... + ebs_optimized: bool | None """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + Indicates whether the instance is optimized for Amazon EBS I/O. This + optimization provides dedicated throughput to Amazon EBS and an + optimized configuration stack to provide optimal Amazon EBS I/O + performance. This optimization isn't available with all instance types. + Additional usage charges apply when using an EBS-optimized instance. """ - spot_price: str | None = ... + iam_instance_profile: ( + LaunchTemplateIamInstanceProfileSpecificationRequest + | LaunchTemplateIamInstanceProfileSpecificationRequestDict + | None + ) + """The name or Amazon Resource Name (ARN) of an IAM instance profile.""" + block_device_mappings: ( + Sequence[ + LaunchTemplateBlockDeviceMappingRequest + | LaunchTemplateBlockDeviceMappingRequestDict + ] + | None + ) + """The block device mapping.""" + network_interfaces: ( + Sequence[ + LaunchTemplateInstanceNetworkInterfaceSpecificationRequest + | LaunchTemplateInstanceNetworkInterfaceSpecificationRequestDict + ] + | None + ) + """The network interfaces for the instance.""" + image_id: str | None """ - The maximum price per unit hour that you are willing to pay for a Spot - Instance. We do not recommend using this parameter because it can lead - to increased interruptions. If you do not specify this parameter, you - will pay the current Spot price. + The ID of the AMI in the format `ami-0ac394d6a3example`. - Warning: - If you specify a maximum price, your instances will be interrupted more - frequently than if you do not specify this parameter. - """ - client_token: str | None = ... - """ - Unique, case-sensitive identifier that you provide to ensure the - idempotency of the request. For more information, see [Ensuring - idempotency in Amazon EC2 API - requests](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html) - in the *Amazon EC2 User Guide*. - """ - instance_count: int | None = ... - """ - The maximum number of Spot Instances to launch. + Alternatively, you can specify a Systems Manager parameter, using one of + the following formats. The Systems Manager parameter will resolve to an + AMI ID on launch. - Default: 1 - """ - type: str | None = ... - """ - The Spot Instance request type. + To reference a public parameter: - Default: `one-time` - """ - valid_from: datetime | None = ... - """ - The start date of the request. If this is a one-time request, the - request becomes active at this date and time and remains active until - all instances launch, the request expires, or the request is canceled. - If the request is persistent, the request becomes active at this date - and time and remains active until it expires or is canceled. + - `resolve:ssm:`*`public-parameter`*` ` - The specified start date and time cannot be equal to the current date - and time. You must specify a start date and time that occurs after the - current date and time. - """ - valid_until: datetime | None = ... - """ - The end date of the request, in UTC format - (*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). + To reference a parameter stored in the same account: - - For a persistent request, the request remains active until the - `ValidUntil` date and time is reached. Otherwise, the request remains - active until you cancel it. + - `resolve:ssm:`*`parameter-name`*` ` - - For a one-time request, the request remains active until all instances - launch, the request is canceled, or the `ValidUntil` date and time is - reached. By default, the request is valid for 7 days from the date the - request was created. - """ - launch_group: str | None = ... - """ - The instance launch group. Launch groups are Spot Instances that launch - together and terminate together. + - `resolve:ssm:`*`parameter-name:version-number`*` ` - Default: Instances are launched and terminated individually - """ - availability_zone_group: str | None = ... - """ - The user-specified name for a logical grouping of requests. + - `resolve:ssm:`*`parameter-name:label`*` ` - When you specify an Availability Zone group in a Spot Instance request, - all Spot Instances in the request are launched in the same Availability - Zone. Instance proximity is maintained with this parameter, but the - choice of Availability Zone is not. The group applies only to requests - for Spot Instances of the same instance type. Any additional Spot - Instance requests that are specified with the same Availability Zone - group name are launched in that same Availability Zone, as long as at - least one instance from the group is still active. + To reference a parameter shared from another Amazon Web Services + account: - If there is no active instance running in the Availability Zone group - that you specify for a new Spot Instance request (all instances are - terminated, the request is expired, or the maximum price you specified - falls below current Spot price), then Amazon EC2 launches the instance - in any Availability Zone where the constraint can be met. Consequently, - the subsequent set of Spot Instances could be placed in a different zone - from the original request, even if you specified the same Availability - Zone group. + - `resolve:ssm:`*`parameter-ARN`*` ` - Default: Instances are launched in any available Availability Zone. - """ - block_duration_minutes: int | None = ... - """Deprecated.""" + - `resolve:ssm:`*`parameter-ARN:version-number`*` ` -@dataclass(kw_only=True) -class RequestSpotInstancesOutput(_SerdeShape): - """Contains the output of RequestSpotInstances.""" + - `resolve:ssm:`*`parameter-ARN:label`*` ` - spot_instance_requests: list[SpotInstanceRequest] | None = ... - """The Spot Instance requests.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + For more information, see [Use a Systems Manager parameter instead of an + AMI + ID](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id) + in the *Amazon EC2 User Guide*. -@dataclass(kw_only=True) -class RequestSpotLaunchSpecification(_SerdeShape): - """Describes the launch specification for an instance.""" + Note: + If the launch template will be used for an EC2 Fleet or Spot Fleet, note + the following: - security_group_ids: list[str] | None = ... - """The IDs of the security groups.""" - security_groups: list[str] | None = ... - """Not supported.""" - addressing_type: str | None = ... - """Deprecated.""" - block_device_mappings: list[BlockDeviceMapping] | None = ... + - Only EC2 Fleets of type `instant` support specifying a Systems Manager + parameter. + + - For EC2 Fleets of type `maintain` or `request`, or for Spot Fleets, + you must specify the AMI ID. """ - The block device mapping entries. You can't specify both a snapshot ID - and an encryption value. This is because only blank volumes can be - encrypted on creation. If a snapshot is the basis for a volume, it is - not blank and its encryption status is used for the volume encryption - status. + instance_type: str | None """ - ebs_optimized: bool | None = ... + The instance type. For more information, see [Amazon EC2 instance + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + in the *Amazon EC2 User Guide*. + + If you specify `InstanceType`, you can't specify + `InstanceRequirements`. """ - Indicates whether the instance is optimized for EBS I/O. This - optimization provides dedicated throughput to Amazon EBS and an - optimized configuration stack to provide optimal EBS I/O performance. - This optimization isn't available with all instance types. Additional - usage charges apply when using an EBS Optimized instance. + key_name: str | None + """ + The name of the key pair. You can create a key pair using + [CreateKeyPair](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html) + or + [ImportKeyPair](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html). - Default: `false` + Warning: + If you do not specify a key pair, you can't connect to the instance + unless you choose an AMI that is configured to allow users another way + to log in. """ - iam_instance_profile: IamInstanceProfileSpecification | None = ... - """The IAM instance profile.""" - image_id: str | None = ... - """The ID of the AMI.""" - instance_type: str | None = ... - """The instance type. Only one instance type can be specified.""" - kernel_id: str | None = ... - """The ID of the kernel.""" - key_name: str | None = ... - """The name of the key pair.""" - monitoring: RunInstancesMonitoringEnabled | None = ... + monitoring: ( + LaunchTemplatesMonitoringRequest | LaunchTemplatesMonitoringRequestDict | None + ) + """The monitoring for the instance.""" + placement: ( + LaunchTemplatePlacementRequest | LaunchTemplatePlacementRequestDict | None + ) + """The placement for the instance.""" + ram_disk_id: str | None """ - Indicates whether basic or detailed monitoring is enabled for the - instance. + The ID of the RAM disk. - Default: Disabled + Warning: + We recommend that you use PV-GRUB instead of kernels and RAM disks. For + more information, see [User provided + kernels](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + in the *Amazon EC2 User Guide*. """ - network_interfaces: list[InstanceNetworkInterfaceSpecification] | None = ... + disable_api_termination: bool | None """ - The network interfaces. If you specify a network interface, you must - specify subnet IDs and security group IDs using the network interface. + Indicates whether termination protection is enabled for the instance. + The default is `false`, which means that you can terminate the instance + using the Amazon EC2 console, command line tools, or API. You can enable + termination protection when you launch an instance, while the instance + is running, or while the instance is stopped. """ - placement: SpotPlacement | None = ... - """The placement information for the instance.""" - ramdisk_id: str | None = ... - """The ID of the RAM disk.""" - subnet_id: str | None = ... - """The ID of the subnet in which to launch the instance.""" - user_data: str | None = ... + instance_initiated_shutdown_behavior: str | None """ - The base64-encoded user data that instances use when starting up. User - data is limited to 16 KB. + Indicates whether an instance stops or terminates when you initiate + shutdown from the instance (using the operating system command for + system shutdown). + + Default: `stop` """ + user_data: str | None + """ + The user data to make available to the instance. You must provide + base64-encoded text. User data is limited to 16 KB. For more + information, see [Run commands when you launch an EC2 instance with user + data + input](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) + in the *Amazon EC2 User Guide*. -@dataclass(kw_only=True) -class Reservation(_SerdeShape): + If you are creating the launch template for use with Batch, the user + data must be provided in the [MIME multi-part archive + format](https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive). + For more information, see [Amazon EC2 user data in launch + templates](https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html#lt-user-data) + in the *Batch User Guide*. """ - Describes a launch request for one or more instances, and includes - owner, requester, and security group information that applies to all - instances in the launch request. + tag_specifications: ( + Sequence[ + LaunchTemplateTagSpecificationRequest + | LaunchTemplateTagSpecificationRequestDict + ] + | None + ) + """ + The tags to apply to the resources that are created during instance + launch. These tags are not applied to the launch template. + """ + elastic_gpu_specifications: ( + Sequence[ElasticGpuSpecification | ElasticGpuSpecificationDict] | None + ) """ + Deprecated. - reservation_id: str | None = ... - """The ID of the reservation.""" - owner_id: str | None = ... - """The ID of the Amazon Web Services account that owns the reservation.""" - requester_id: str | None = ... + Note: + Amazon Elastic Graphics reached end of life on January 8, 2024. """ - The ID of the requester that launched the instances on your behalf (for - example, Amazon Web Services Management Console or Auto Scaling). + elastic_inference_accelerators: ( + Sequence[ + LaunchTemplateElasticInferenceAccelerator + | LaunchTemplateElasticInferenceAcceleratorDict + ] + | None + ) """ - groups: list[GroupIdentifier] | None = ... - """Not supported.""" - instances: list[Instance] | None = ... - """The instances.""" + Note: + Amazon Elastic Inference is no longer available. -class ReservationEndDateType(UnknownEnumMixin, StrEnum): - LIMITED = "limited" - UNLIMITED = "unlimited" + An elastic inference accelerator to associate with the instance. Elastic + inference accelerators are a resource you can attach to your Amazon EC2 + instances to accelerate your Deep Learning (DL) inference workloads. -@dataclass(kw_only=True) -class ReservationFleetInstanceSpecification(_SerdeShape): + You cannot specify accelerators from different generations in the same + request. """ - Information about an instance type to use in a Capacity Reservation - Fleet. + security_group_ids: Sequence[str] | None """ + The IDs of the security groups. - instance_type: str | None = ... - """ - The instance type for which the Capacity Reservation Fleet reserves - capacity. + If you specify a network interface, you must specify any security groups + as part of the network interface instead of using this parameter. """ - instance_platform: str | None = ... + security_groups: Sequence[str] | None """ - The type of operating system for which the Capacity Reservation Fleet - reserves capacity. + The names of the security groups. For a nondefault VPC, you must use + security group IDs instead. + + If you specify a network interface, you must specify any security groups + as part of the network interface instead of using this parameter. """ - weight: float | None = ... + instance_market_options: ( + LaunchTemplateInstanceMarketOptionsRequest + | LaunchTemplateInstanceMarketOptionsRequestDict + | None + ) + """The market (purchasing) option for the instances.""" + credit_specification: ( + CreditSpecificationRequest | CreditSpecificationRequestDict | None + ) """ - The number of capacity units provided by the specified instance type. - This value, together with the total target capacity that you specify for - the Fleet determine the number of instances for which the Fleet reserves - capacity. Both values are based on units that make sense for your - workload. For more information, see [Total target - capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) - in the *Amazon EC2 User Guide*. + The credit option for CPU usage of the instance. Valid only for T + instances. """ - availability_zone: str | None = ... + cpu_options: ( + LaunchTemplateCpuOptionsRequest | LaunchTemplateCpuOptionsRequestDict | None + ) """ - The Availability Zone in which the Capacity Reservation Fleet reserves - the capacity. A Capacity Reservation Fleet can't span Availability - Zones. All instance type specifications that you specify for the Fleet - must use the same Availability Zone. + The CPU options for the instance. For more information, see [CPU options + for Amazon EC2 + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) + in the *Amazon EC2 User Guide*. """ - availability_zone_id: str | None = ... + capacity_reservation_specification: ( + LaunchTemplateCapacityReservationSpecificationRequest + | LaunchTemplateCapacityReservationSpecificationRequestDict + | None + ) """ - The ID of the Availability Zone in which the Capacity Reservation Fleet - reserves the capacity. A Capacity Reservation Fleet can't span - Availability Zones. All instance type specifications that you specify - for the Fleet must use the same Availability Zone. + The Capacity Reservation targeting option. If you do not specify this + parameter, the instance's Capacity Reservation preference defaults to + `open`, which enables it to run in any open Capacity Reservation that + has matching attributes (instance type, platform, Availability Zone). """ - ebs_optimized: bool | None = ... + license_specifications: ( + Sequence[ + LaunchTemplateLicenseConfigurationRequest + | LaunchTemplateLicenseConfigurationRequestDict + ] + | None + ) + """The license configurations.""" + hibernation_options: ( + LaunchTemplateHibernationOptionsRequest + | LaunchTemplateHibernationOptionsRequestDict + | None + ) """ - Indicates whether the Capacity Reservation Fleet supports EBS-optimized - instances types. This optimization provides dedicated throughput to - Amazon EBS and an optimized configuration stack to provide optimal I/O - performance. This optimization isn't available with all instance types. - Additional usage charges apply when using EBS-optimized instance types. + Indicates whether an instance is enabled for hibernation. This parameter + is valid only if the instance meets the [hibernation + prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html). + For more information, see [Hibernate your Amazon EC2 + instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) + in the *Amazon EC2 User Guide*. """ - priority: int | None = ... + metadata_options: ( + LaunchTemplateInstanceMetadataOptionsRequest + | LaunchTemplateInstanceMetadataOptionsRequestDict + | None + ) """ - The priority to assign to the instance type. This value is used to - determine which of the instance types specified for the Fleet should be - prioritized for use. A lower value indicates a high priority. For more - information, see [Instance type - priority](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#instance-priority) + The metadata options for the instance. For more information, see + [Configure the Instance Metadata Service + options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html) in the *Amazon EC2 User Guide*. """ + enclave_options: ( + LaunchTemplateEnclaveOptionsRequest + | LaunchTemplateEnclaveOptionsRequestDict + | None + ) + """ + Indicates whether the instance is enabled for Amazon Web Services Nitro + Enclaves. For more information, see [What is Nitro + Enclaves?](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) + in the *Amazon Web Services Nitro Enclaves User Guide*. -class ReservationState(UnknownEnumMixin, StrEnum): - ACTIVE = "active" - EXPIRED = "expired" - CANCELLED = "cancelled" - SCHEDULED = "scheduled" - PENDING = "pending" - FAILED = "failed" - DELAYED = "delayed" - UNSUPPORTED = "unsupported" - PAYMENT_PENDING = "payment-pending" - PAYMENT_FAILED = "payment-failed" - RETIRED = "retired" + You can't enable Amazon Web Services Nitro Enclaves and hibernation on + the same instance. + """ + instance_requirements: ( + InstanceRequirementsRequest | InstanceRequirementsRequestDict | None + ) + """ + The attributes for the instance types. When you specify instance + attributes, Amazon EC2 will identify instance types with these + attributes. -class ReservationType(UnknownEnumMixin, StrEnum): - CAPACITY_BLOCK = "capacity-block" - ODCR = "odcr" + You must specify `VCpuCount` and `MemoryMiB`. All other attributes are + optional. Any unspecified optional attribute is set to its default. -@dataclass(kw_only=True) -class ReservationValue(_SerdeShape): - """The cost associated with the Reserved Instance.""" + When you specify multiple attributes, you get instance types that + satisfy all of the specified attributes. If you specify multiple values + for an attribute, you get instance types that satisfy any of the + specified values. - hourly_price: str | None = ... - """The hourly rate of the reservation.""" - remaining_total_value: str | None = ... - """ - The balance of the total value (the sum of remainingUpfrontValue + - hourlyPrice * number of hours remaining). - """ - remaining_upfront_value: str | None = ... - """The remaining upfront cost of the reservation.""" + To limit the list of instance types from which Amazon EC2 can identify + matching instance types, you can use one of the following parameters, + but not both in the same request: -class ReservedCapacityAllocationStrategy(UnknownEnumMixin, StrEnum): - PRIORITIZED = "prioritized" + - `AllowedInstanceTypes` - The instance types to include in the list. + All other instance types are ignored, even if they match your + specified attributes. -class ReservedCapacityFallbackMarketType(UnknownEnumMixin, StrEnum): - ON_DEMAND = "on-demand" + - `ExcludedInstanceTypes` - The instance types to exclude from the list, + even if they match your specified attributes. -@dataclass(kw_only=True) -class ReservedCapacityFallbackOptions(_SerdeShape): + Note: + If you specify `InstanceRequirements`, you can't specify + `InstanceType`. + + Attribute-based instance type selection is only supported when using + Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If + you plan to use the launch template in the [launch instance + wizard](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance-wizard.html), + or with the + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) + API or + [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) + Amazon Web Services CloudFormation resource, you can't specify + `InstanceRequirements`. + + For more information, see [Specify attributes for instance type + selection for EC2 Fleet or Spot + Fleet](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html) + and [Spot placement + score](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html) + in the *Amazon EC2 User Guide*. """ - Describes the fallback behavior for an EC2 Fleet that uses reserved - capacity when the reserved capacity is not enough to meet the target - capacity. If you don't specify fallback options, EC2 Fleet does not - fall back to any other market type after the specified reservation types - are exhausted. + private_dns_name_options: ( + LaunchTemplatePrivateDnsNameOptionsRequest + | LaunchTemplatePrivateDnsNameOptionsRequestDict + | None + ) """ - - market_types: list[str] | None = ... + The options for the instance hostname. The default values are inherited + from the subnet. """ - The instance purchasing options to fall back to when the reserved - capacity is not enough to meet the target capacity. The only supported - value is `on-demand`, which launches On-Demand Instances to fulfill the - remaining target capacity. + maintenance_options: ( + LaunchTemplateInstanceMaintenanceOptionsRequest + | LaunchTemplateInstanceMaintenanceOptionsRequestDict + | None + ) + """The maintenance options for the instance.""" + disable_api_stop: bool | None + """ + Indicates whether to enable the instance for stop protection. For more + information, see [Enable stop protection for your EC2 + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) + in the *Amazon EC2 User Guide*. + """ + operator: OperatorRequest | OperatorRequestDict | None + """The entity that manages the launch template.""" + network_performance_options: ( + LaunchTemplateNetworkPerformanceOptionsRequest + | LaunchTemplateNetworkPerformanceOptionsRequestDict + | None + ) + """ + Contains launch template settings to boost network performance for the + type of workload that runs on your instance. + """ + secondary_interfaces: ( + Sequence[ + LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest + | LaunchTemplateInstanceSecondaryInterfaceSpecificationRequestDict + ] + | None + ) + """ + The secondary interfaces to associate with instances launched from the + template. """ @dataclass(kw_only=True) -class ReservedCapacityFallbackOptionsRequest(_SerdeShape): +class RequestSpotFleetInput(_SerdeShape): + """Contains the parameters for RequestSpotFleet.""" + + dry_run: bool | None = ... """ - Describes the fallback behavior for an EC2 Fleet that uses reserved - capacity when the reserved capacity is not enough to meet the target - capacity. If you don't specify fallback options, EC2 Fleet does not - fall back to any other market type after the specified reservation types - are exhausted. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ + spot_fleet_request_config: SpotFleetRequestConfigData | None = ... + """The configuration for the Spot Fleet request.""" - market_types: list[str] | None = ... +class RequestSpotFleetInputDict(TypedDict, total=False): + """Dictionary form of `RequestSpotFleetInput`.""" + + dry_run: bool | None """ - The instance purchasing options to fall back to when the reserved - capacity is not enough to meet the target capacity. The only supported - value is `on-demand`, which launches On-Demand Instances to fulfill the - remaining target capacity. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ + spot_fleet_request_config: Required[ + SpotFleetRequestConfigData | SpotFleetRequestConfigDataDict + ] + """The configuration for the Spot Fleet request.""" @dataclass(kw_only=True) -class ReservedCapacityOptions(_SerdeShape): +class RequestSpotFleetOutput(_SerdeShape): + """Contains the output of RequestSpotFleet.""" + + spot_fleet_request_id: str | None = ... + """The ID of the Spot Fleet request.""" + response_metadata: ResponseMetadata = ... """ - Defines EC2 Fleet preferences for utilizing reserved capacity when - `DefaultTargetCapacityType` is set to `reserved-capacity`. EC2 Fleet can - fulfill reserved capacity using On-Demand Capacity Reservations, - Capacity Blocks for ML, and interruptible Capacity Reservations. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - allocation_strategy: str | None = ... +@dataclass(kw_only=True) +class RequestSpotInstancesInput(_SerdeShape): + """Contains the parameters for RequestSpotInstances.""" + + launch_specification: RequestSpotLaunchSpecification | None = ... + """The launch specification.""" + tag_specifications: list[TagSpecification] | None = ... """ - The strategy that determines the order in which EC2 Fleet launches - instances across the reservation types that you specify. The only - supported value is `prioritized`, which launches instances in the - priority order that you specify in your launch template overrides. If - you don't specify an allocation strategy, instances are launched in a - random order. + The key-value pair for tagging the Spot Instance request on creation. + The value for `ResourceType` must be `spot-instances-request`, otherwise + the Spot Instance request fails. To tag the Spot Instance request after + it has been created, see + [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). """ - reservation_types: list[str] | None = ... + instance_interruption_behavior: str | None = ... """ - The types of Capacity Reservations used for fulfilling the EC2 Fleet - request. + The behavior when a Spot Instance is interrupted. The default is + `terminate`. """ - reserved_capacity_fallback_options: ReservedCapacityFallbackOptions | None = ... + dry_run: bool | None = ... """ - The fallback behavior for the EC2 Fleet when there is not enough - reserved capacity available to meet the target capacity. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - -@dataclass(kw_only=True) -class ReservedCapacityOptionsRequest(_SerdeShape): + spot_price: str | None = ... """ - Defines EC2 Fleet preferences for utilizing reserved capacity when - `DefaultTargetCapacityType` is set to `reserved-capacity`. EC2 Fleet can - fulfill reserved capacity using On-Demand Capacity Reservations, - Capacity Blocks for ML, and interruptible Capacity Reservations. - - Note: - This configuration can only be used if the EC2 Fleet is of type - `instant`. - - When you specify `ReservedCapacityOptions`, you must also set - `DefaultTargetCapacityType` to `reserved-capacity` in the - `TargetCapacitySpecification`. + The maximum price per unit hour that you are willing to pay for a Spot + Instance. We do not recommend using this parameter because it can lead + to increased interruptions. If you do not specify this parameter, you + will pay the current Spot price. - For more information about interruptible Capacity Reservations, see - [Launch instances into an interruptible Capacity - Reservation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-launch-instances-interruptible-cr-walkthrough.html) - in the *Amazon EC2 User Guide*. + Warning: + If you specify a maximum price, your instances will be interrupted more + frequently than if you do not specify this parameter. """ - - allocation_strategy: str | None = ... + client_token: str | None = ... """ - The strategy that determines the order in which EC2 Fleet launches - instances across the reservation types that you specify. The only - supported value is `prioritized`, which launches instances in the - priority order that you specify in your launch template overrides. If - you don't specify an allocation strategy, instances are launched in a - random order. + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency in Amazon EC2 API + requests](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html) + in the *Amazon EC2 User Guide*. """ - reservation_types: list[str] | None = ... + instance_count: int | None = ... """ - The types of Capacity Reservations to use for fulfilling the EC2 Fleet - request. This is an ordered list: EC2 Fleet attempts to launch instances - into each Capacity Reservation type in the order that you specify them - before moving on to the next type. + The maximum number of Spot Instances to launch. + + Default: 1 """ - capacity_reservation_target: FleetCapacityReservationTargetRequest | None = ... + type: str | None = ... """ - The Capacity Reservations or Capacity Reservation Resource Groups to use - for fulfilling the EC2 Fleet request. You can specify Capacity - Reservation IDs or a Capacity Reservation Resource Group ARN, but not - both. + The Spot Instance request type. + + Default: `one-time` """ - reserved_capacity_fallback_options: ( - ReservedCapacityFallbackOptionsRequest | None - ) = ... + valid_from: datetime | None = ... """ - The fallback behavior for the EC2 Fleet when there is not enough - reserved capacity available to meet the target capacity. This member - takes a `ReservedCapacityFallbackOptionsRequest` structure, in which you - set `MarketTypes` to the instance purchasing options to fall back to. + The start date of the request. If this is a one-time request, the + request becomes active at this date and time and remains active until + all instances launch, the request expires, or the request is canceled. + If the request is persistent, the request becomes active at this date + and time and remains active until it expires or is canceled. + + The specified start date and time cannot be equal to the current date + and time. You must specify a start date and time that occurs after the + current date and time. + """ + valid_until: datetime | None = ... """ + The end date of the request, in UTC format + (*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). -@dataclass(kw_only=True) -class ReservedInstanceLimitPrice(_SerdeShape): - """Describes the limit price of a Reserved Instance offering.""" + - For a persistent request, the request remains active until the + `ValidUntil` date and time is reached. Otherwise, the request remains + active until you cancel it. - amount: float | None = ... + - For a one-time request, the request remains active until all instances + launch, the request is canceled, or the `ValidUntil` date and time is + reached. By default, the request is valid for 7 days from the date the + request was created. """ - Used for Reserved Instance Marketplace offerings. Specifies the limit - price on the total order (instanceCount * price). + launch_group: str | None = ... """ - currency_code: str | None = ... + The instance launch group. Launch groups are Spot Instances that launch + together and terminate together. + + Default: Instances are launched and terminated individually """ - The currency in which the `limitPrice` amount is specified. At this - time, the only supported currency is `USD`. + availability_zone_group: str | None = ... """ + The user-specified name for a logical grouping of requests. -@dataclass(kw_only=True) -class ReservedInstanceReservationValue(_SerdeShape): - """The total value of the Convertible Reserved Instance.""" + When you specify an Availability Zone group in a Spot Instance request, + all Spot Instances in the request are launched in the same Availability + Zone. Instance proximity is maintained with this parameter, but the + choice of Availability Zone is not. The group applies only to requests + for Spot Instances of the same instance type. Any additional Spot + Instance requests that are specified with the same Availability Zone + group name are launched in that same Availability Zone, as long as at + least one instance from the group is still active. - reservation_value: ReservationValue | None = ... - """ - The total value of the Convertible Reserved Instance that you are - exchanging. + If there is no active instance running in the Availability Zone group + that you specify for a new Spot Instance request (all instances are + terminated, the request is expired, or the maximum price you specified + falls below current Spot price), then Amazon EC2 launches the instance + in any Availability Zone where the constraint can be met. Consequently, + the subsequent set of Spot Instances could be placed in a different zone + from the original request, even if you specified the same Availability + Zone group. + + Default: Instances are launched in any available Availability Zone. """ - reserved_instance_id: str | None = ... - """The ID of the Convertible Reserved Instance that you are exchanging.""" + block_duration_minutes: int | None = ... + """Deprecated.""" -@dataclass(kw_only=True) -class ReservedInstances(_SerdeShape): - """Describes a Reserved Instance.""" +class RequestSpotInstancesInputDict(TypedDict, total=False): + """Dictionary form of `RequestSpotInstancesInput`.""" - currency_code: str | None = ... + launch_specification: ( + RequestSpotLaunchSpecification | RequestSpotLaunchSpecificationDict | None + ) + """The launch specification.""" + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ - The currency of the Reserved Instance. It's specified using ISO 4217 - standard currency codes. At this time, the only supported currency is - `USD`. + The key-value pair for tagging the Spot Instance request on creation. + The value for `ResourceType` must be `spot-instances-request`, otherwise + the Spot Instance request fails. To tag the Spot Instance request after + it has been created, see + [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). """ - instance_tenancy: str | None = ... - """The tenancy of the instance.""" - offering_class: str | None = ... - """The offering class of the Reserved Instance.""" - offering_type: str | None = ... - """The Reserved Instance offering type.""" - recurring_charges: list[RecurringCharge] | None = ... - """The recurring charge tag assigned to the resource.""" - scope: str | None = ... - """The scope of the Reserved Instance.""" - tags: list[Tag] | None = ... - """Any tags assigned to the resource.""" - availability_zone_id: str | None = ... - """The ID of the Availability Zone.""" - reserved_instances_id: str | None = ... - """The ID of the Reserved Instance.""" - instance_type: str | None = ... - """The instance type on which the Reserved Instance can be used.""" - availability_zone: str | None = ... - """The Availability Zone in which the Reserved Instance can be used.""" - start: datetime | None = ... - """The date and time the Reserved Instance started.""" - end: datetime | None = ... - """The time when the Reserved Instance expires.""" - duration: int | None = ... - """The duration of the Reserved Instance, in seconds.""" - usage_price: float | None = ... - """The usage price of the Reserved Instance, per hour.""" - fixed_price: float | None = ... - """The purchase price of the Reserved Instance.""" - instance_count: int | None = ... - """The number of reservations purchased.""" - product_description: str | None = ... - """The Reserved Instance product platform description.""" - state: str | None = ... - """The state of the Reserved Instance purchase.""" - -@dataclass(kw_only=True) -class ReservedInstancesConfiguration(_SerdeShape): + instance_interruption_behavior: str | None """ - Describes the configuration settings for the modified Reserved - Instances. + The behavior when a Spot Instance is interrupted. The default is + `terminate`. """ - - availability_zone: str | None = ... - """The Availability Zone for the modified Reserved Instances.""" - instance_count: int | None = ... + dry_run: bool | None """ - The number of modified Reserved Instances. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + spot_price: str | None + """ + The maximum price per unit hour that you are willing to pay for a Spot + Instance. We do not recommend using this parameter because it can lead + to increased interruptions. If you do not specify this parameter, you + will pay the current Spot price. - Note: - This is a required field for a request. + Warning: + If you specify a maximum price, your instances will be interrupted more + frequently than if you do not specify this parameter. """ - instance_type: str | None = ... - """The instance type for the modified Reserved Instances.""" - platform: str | None = ... - """The network platform of the modified Reserved Instances.""" - scope: str | None = ... + client_token: str | None """ - Whether the Reserved Instance is applied to instances in a Region or - instances in a specific Availability Zone. + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [Ensuring + idempotency in Amazon EC2 API + requests](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html) + in the *Amazon EC2 User Guide*. """ - availability_zone_id: str | None = ... - """The ID of the Availability Zone.""" - -@dataclass(kw_only=True) -class ReservedInstancesId(_SerdeShape): - """Describes the ID of a Reserved Instance.""" + instance_count: int | None + """ + The maximum number of Spot Instances to launch. - reserved_instances_id: str | None = ... - """The ID of the Reserved Instance.""" + Default: 1 + """ + type: str | None + """ + The Spot Instance request type. -@dataclass(kw_only=True) -class ReservedInstancesListing(_SerdeShape): - """Describes a Reserved Instance listing.""" + Default: `one-time` + """ + valid_from: datetime | None + """ + The start date of the request. If this is a one-time request, the + request becomes active at this date and time and remains active until + all instances launch, the request expires, or the request is canceled. + If the request is persistent, the request becomes active at this date + and time and remains active until it expires or is canceled. - client_token: str | None = ... + The specified start date and time cannot be equal to the current date + and time. You must specify a start date and time that occurs after the + current date and time. """ - A unique, case-sensitive key supplied by the client to ensure that the - request is idempotent. For more information, see [Ensuring - Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + valid_until: datetime | None """ - create_date: datetime | None = ... - """The time the listing was created.""" - instance_counts: list[InstanceCount] | None = ... - """The number of instances in this state.""" - price_schedules: list[PriceSchedule] | None = ... - """The price of the Reserved Instance listing.""" - reserved_instances_id: str | None = ... - """The ID of the Reserved Instance.""" - reserved_instances_listing_id: str | None = ... - """The ID of the Reserved Instance listing.""" - status: str | None = ... - """The status of the Reserved Instance listing.""" - status_message: str | None = ... - """ - The reason for the current status of the Reserved Instance listing. The - response can be blank. - """ - tags: list[Tag] | None = ... - """Any tags assigned to the resource.""" - update_date: datetime | None = ... - """The last modified timestamp of the listing.""" - -@dataclass(kw_only=True) -class ReservedInstancesModification(_SerdeShape): - """Describes a Reserved Instance modification.""" - - client_token: str | None = ... - """ - A unique, case-sensitive key supplied by the client to ensure that the - request is idempotent. For more information, see [Ensuring - Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). - """ - create_date: datetime | None = ... - """The time when the modification request was created.""" - effective_date: datetime | None = ... - """The time for the modification to become effective.""" - modification_results: list[ReservedInstancesModificationResult] | None = ... - """ - Contains target configurations along with their corresponding new - Reserved Instance IDs. - """ - reserved_instances_ids: list[ReservedInstancesId] | None = ... - """The IDs of one or more Reserved Instances.""" - reserved_instances_modification_id: str | None = ... - """A unique ID for the Reserved Instance modification.""" - status: str | None = ... - """The status of the Reserved Instances modification request.""" - status_message: str | None = ... - """The reason for the status.""" - update_date: datetime | None = ... - """The time when the modification request was last updated.""" + The end date of the request, in UTC format + (*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). -@dataclass(kw_only=True) -class ReservedInstancesModificationResult(_SerdeShape): - """Describes the modification request/s.""" + - For a persistent request, the request remains active until the + `ValidUntil` date and time is reached. Otherwise, the request remains + active until you cancel it. - reserved_instances_id: str | None = ... - """ - The ID for the Reserved Instances that were created as part of the - modification request. This field is only available when the modification - is fulfilled. - """ - target_configuration: ReservedInstancesConfiguration | None = ... + - For a one-time request, the request remains active until all instances + launch, the request is canceled, or the `ValidUntil` date and time is + reached. By default, the request is valid for 7 days from the date the + request was created. """ - The target Reserved Instances configurations supplied as part of the - modification request. + launch_group: str | None """ + The instance launch group. Launch groups are Spot Instances that launch + together and terminate together. -@dataclass(kw_only=True) -class ReservedInstancesOffering(_SerdeShape): - """Describes a Reserved Instance offering.""" - - currency_code: str | None = ... - """ - The currency of the Reserved Instance offering you are purchasing. It's - specified using ISO 4217 standard currency codes. At this time, the only - supported currency is `USD`. - """ - instance_tenancy: str | None = ... - """The tenancy of the instance.""" - marketplace: bool | None = ... - """ - Indicates whether the offering is available through the Reserved - Instance Marketplace (resale) or Amazon Web Services. If it's a - Reserved Instance Marketplace offering, this is `true`. - """ - offering_class: str | None = ... - """ - If `convertible` it can be exchanged for Reserved Instances of the same - or higher monetary value, with different configurations. If `standard`, - it is not possible to perform an exchange. - """ - offering_type: str | None = ... - """The Reserved Instance offering type.""" - pricing_details: list[PricingDetail] | None = ... - """The pricing details of the Reserved Instance offering.""" - recurring_charges: list[RecurringCharge] | None = ... - """The recurring charge tag assigned to the resource.""" - scope: str | None = ... - """ - Whether the Reserved Instance is applied to instances in a Region or an - Availability Zone. - """ - availability_zone_id: str | None = ... - """The ID of the Availability Zone.""" - reserved_instances_offering_id: str | None = ... + Default: Instances are launched and terminated individually """ - The ID of the Reserved Instance offering. This is the offering ID used - in GetReservedInstancesExchangeQuote to confirm that an exchange can be - made. + availability_zone_group: str | None """ - instance_type: str | None = ... - """The instance type on which the Reserved Instance can be used.""" - availability_zone: str | None = ... - """The Availability Zone in which the Reserved Instance can be used.""" - duration: int | None = ... - """The duration of the Reserved Instance, in seconds.""" - usage_price: float | None = ... - """The usage price of the Reserved Instance, per hour.""" - fixed_price: float | None = ... - """The purchase price of the Reserved Instance.""" - product_description: str | None = ... - """The Reserved Instance product platform description.""" + The user-specified name for a logical grouping of requests. -class ReservedInstanceState(UnknownEnumMixin, StrEnum): - PAYMENT_PENDING = "payment-pending" - ACTIVE = "active" - PAYMENT_FAILED = "payment-failed" - RETIRED = "retired" - QUEUED = "queued" - QUEUED_DELETED = "queued-deleted" + When you specify an Availability Zone group in a Spot Instance request, + all Spot Instances in the request are launched in the same Availability + Zone. Instance proximity is maintained with this parameter, but the + choice of Availability Zone is not. The group applies only to requests + for Spot Instances of the same instance type. Any additional Spot + Instance requests that are specified with the same Availability Zone + group name are launched in that same Availability Zone, as long as at + least one instance from the group is still active. -@dataclass(kw_only=True) -class ResetAddressAttributeInput(_SerdeShape): - """Dataclass for ResetAddressAttributeInput structure.""" + If there is no active instance running in the Availability Zone group + that you specify for a new Spot Instance request (all instances are + terminated, the request is expired, or the maximum price you specified + falls below current Spot price), then Amazon EC2 launches the instance + in any Availability Zone where the constraint can be met. Consequently, + the subsequent set of Spot Instances could be placed in a different zone + from the original request, even if you specified the same Availability + Zone group. - allocation_id: str | None = ... - """[EC2-VPC] The allocation ID.""" - attribute: str | None = ... - """The attribute of the IP address.""" - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + Default: Instances are launched in any available Availability Zone. """ + block_duration_minutes: int | None + """Deprecated.""" @dataclass(kw_only=True) -class ResetAddressAttributeOutput(_SerdeShape): - """Dataclass for ResetAddressAttributeOutput structure.""" +class RequestSpotInstancesOutput(_SerdeShape): + """Contains the output of RequestSpotInstances.""" - address: AddressAttribute | None = ... - """Information about the IP address.""" + spot_instance_requests: list[SpotInstanceRequest] | None = ... + """The Spot Instance requests.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2238,807 +2782,783 @@ class ResetAddressAttributeOutput(_SerdeShape): """ @dataclass(kw_only=True) -class ResetEbsDefaultKmsKeyIdInput(_SerdeShape): - """Dataclass for ResetEbsDefaultKmsKeyIdInput structure.""" +class RequestSpotLaunchSpecification(_SerdeShape): + """Describes the launch specification for an instance.""" - dry_run: bool | None = ... + security_group_ids: list[str] | None = ... + """The IDs of the security groups.""" + security_groups: list[str] | None = ... + """Not supported.""" + addressing_type: str | None = ... + """Deprecated.""" + block_device_mappings: list[BlockDeviceMapping] | None = ... """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + The block device mapping entries. You can't specify both a snapshot ID + and an encryption value. This is because only blank volumes can be + encrypted on creation. If a snapshot is the basis for a volume, it is + not blank and its encryption status is used for the volume encryption + status. """ + ebs_optimized: bool | None = ... + """ + Indicates whether the instance is optimized for EBS I/O. This + optimization provides dedicated throughput to Amazon EBS and an + optimized configuration stack to provide optimal EBS I/O performance. + This optimization isn't available with all instance types. Additional + usage charges apply when using an EBS Optimized instance. -@dataclass(kw_only=True) -class ResetEbsDefaultKmsKeyIdOutput(_SerdeShape): - """Dataclass for ResetEbsDefaultKmsKeyIdOutput structure.""" + Default: `false` + """ + iam_instance_profile: IamInstanceProfileSpecification | None = ... + """The IAM instance profile.""" + image_id: str | None = ... + """The ID of the AMI.""" + instance_type: str | None = ... + """The instance type. Only one instance type can be specified.""" + kernel_id: str | None = ... + """The ID of the kernel.""" + key_name: str | None = ... + """The name of the key pair.""" + monitoring: RunInstancesMonitoringEnabled | None = ... + """ + Indicates whether basic or detailed monitoring is enabled for the + instance. - kms_key_id: str | None = ... + Default: Disabled """ - The Amazon Resource Name (ARN) of the default KMS key for EBS encryption - by default. + network_interfaces: list[InstanceNetworkInterfaceSpecification] | None = ... """ - response_metadata: ResponseMetadata = ... + The network interfaces. If you specify a network interface, you must + specify subnet IDs and security group IDs using the network interface. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + placement: SpotPlacement | None = ... + """The placement information for the instance.""" + ramdisk_id: str | None = ... + """The ID of the RAM disk.""" + subnet_id: str | None = ... + """The ID of the subnet in which to launch the instance.""" + user_data: str | None = ... + """ + The base64-encoded user data that instances use when starting up. User + data is limited to 16 KB. """ -@dataclass(kw_only=True) -class ResetFpgaImageAttributeInput(_SerdeShape): - """Dataclass for ResetFpgaImageAttributeInput structure.""" +class RequestSpotLaunchSpecificationDict(TypedDict, total=False): + """Dictionary form of `RequestSpotLaunchSpecification`.""" - dry_run: bool | None = ... + security_group_ids: Sequence[str] | None + """The IDs of the security groups.""" + security_groups: Sequence[str] | None + """Not supported.""" + addressing_type: str | None + """Deprecated.""" + block_device_mappings: Sequence[BlockDeviceMapping | BlockDeviceMappingDict] | None """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + The block device mapping entries. You can't specify both a snapshot ID + and an encryption value. This is because only blank volumes can be + encrypted on creation. If a snapshot is the basis for a volume, it is + not blank and its encryption status is used for the volume encryption + status. """ - fpga_image_id: str | None = ... - """The ID of the AFI.""" - attribute: str | None = ... - """The attribute.""" - -class ResetFpgaImageAttributeName(UnknownEnumMixin, StrEnum): - LOAD_PERMISSION = "loadPermission" - -@dataclass(kw_only=True) -class ResetFpgaImageAttributeOutput(_SerdeShape): - """Dataclass for ResetFpgaImageAttributeOutput structure.""" + ebs_optimized: bool | None + """ + Indicates whether the instance is optimized for EBS I/O. This + optimization provides dedicated throughput to Amazon EBS and an + optimized configuration stack to provide optimal EBS I/O performance. + This optimization isn't available with all instance types. Additional + usage charges apply when using an EBS Optimized instance. - return_: bool | None = ... - """Is `true` if the request succeeds, and an error otherwise.""" - response_metadata: ResponseMetadata = ... + Default: `false` """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + iam_instance_profile: ( + IamInstanceProfileSpecification | IamInstanceProfileSpecificationDict | None + ) + """The IAM instance profile.""" + image_id: str | None + """The ID of the AMI.""" + instance_type: str | None + """The instance type. Only one instance type can be specified.""" + kernel_id: str | None + """The ID of the kernel.""" + key_name: str | None + """The name of the key pair.""" + monitoring: RunInstancesMonitoringEnabled | RunInstancesMonitoringEnabledDict | None """ + Indicates whether basic or detailed monitoring is enabled for the + instance. -@dataclass(kw_only=True) -class ResetImageAttributeInput(_SerdeShape): - """Contains the parameters for ResetImageAttribute.""" - - attribute: str | None = ... + Default: Disabled """ - The attribute to reset (currently you can only reset the launch - permission attribute). + network_interfaces: ( + Sequence[ + InstanceNetworkInterfaceSpecification + | InstanceNetworkInterfaceSpecificationDict + ] + | None + ) """ - image_id: str | None = ... - """The ID of the AMI.""" - dry_run: bool | None = ... + The network interfaces. If you specify a network interface, you must + specify subnet IDs and security group IDs using the network interface. """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + placement: SpotPlacement | SpotPlacementDict | None + """The placement information for the instance.""" + ramdisk_id: str | None + """The ID of the RAM disk.""" + subnet_id: str | None + """The ID of the subnet in which to launch the instance.""" + user_data: str | None + """ + The base64-encoded user data that instances use when starting up. User + data is limited to 16 KB. """ - -class ResetImageAttributeName(UnknownEnumMixin, StrEnum): - LAUNCH_PERMISSION = "launchPermission" @dataclass(kw_only=True) -class ResetImageAttributeOutput(_SerdeShape): - """Dataclass for ResetImageAttributeOutput structure.""" +class Reservation(_SerdeShape): + """ + Describes a launch request for one or more instances, and includes + owner, requester, and security group information that applies to all + instances in the launch request. + """ - response_metadata: ResponseMetadata = ... + reservation_id: str | None = ... + """The ID of the reservation.""" + owner_id: str | None = ... + """The ID of the Amazon Web Services account that owns the reservation.""" + requester_id: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The ID of the requester that launched the instances on your behalf (for + example, Amazon Web Services Management Console or Auto Scaling). """ + groups: list[GroupIdentifier] | None = ... + """Not supported.""" + instances: list[Instance] | None = ... + """The instances.""" + +class ReservationEndDateType(UnknownEnumMixin, StrEnum): + LIMITED = "limited" + UNLIMITED = "unlimited" @dataclass(kw_only=True) -class ResetInstanceAttributeInput(_SerdeShape): - """Dataclass for ResetInstanceAttributeInput structure.""" +class ReservationFleetInstanceSpecification(_SerdeShape): + """ + Information about an instance type to use in a Capacity Reservation + Fleet. + """ - dry_run: bool | None = ... + instance_type: str | None = ... """ - Checks whether you have the required permissions for the operation, - without actually making the request, and provides an error response. If - you have the required permissions, the error response is - `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + The instance type for which the Capacity Reservation Fleet reserves + capacity. """ - instance_id: str | None = ... - """The ID of the instance.""" - attribute: str | None = ... + instance_platform: str | None = ... """ - The attribute to reset. - - Warning: - You can only reset the following attributes: `kernel` | `ramdisk` | - `sourceDestCheck`. + The type of operating system for which the Capacity Reservation Fleet + reserves capacity. """ - -@dataclass(kw_only=True) -class ResetInstanceAttributeOutput(_SerdeShape): - """Dataclass for ResetInstanceAttributeOutput structure.""" - - response_metadata: ResponseMetadata = ... + weight: float | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The number of capacity units provided by the specified instance type. + This value, together with the total target capacity that you specify for + the Fleet determine the number of instances for which the Fleet reserves + capacity. Both values are based on units that make sense for your + workload. For more information, see [Total target + capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) + in the *Amazon EC2 User Guide*. """ - -@dataclass(kw_only=True) -class ResetNetworkInterfaceAttributeInput(_SerdeShape): - """Contains the parameters for ResetNetworkInterfaceAttribute.""" - - dry_run: bool | None = ... + availability_zone: str | None = ... """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + The Availability Zone in which the Capacity Reservation Fleet reserves + the capacity. A Capacity Reservation Fleet can't span Availability + Zones. All instance type specifications that you specify for the Fleet + must use the same Availability Zone. """ - network_interface_id: str | None = ... - """The ID of the network interface.""" - source_dest_check: str | None = ... - """The source/destination checking attribute. Resets the value to `true`.""" - -@dataclass(kw_only=True) -class ResetNetworkInterfaceAttributeOutput(_SerdeShape): - """Dataclass for ResetNetworkInterfaceAttributeOutput structure.""" - - response_metadata: ResponseMetadata = ... + availability_zone_id: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The ID of the Availability Zone in which the Capacity Reservation Fleet + reserves the capacity. A Capacity Reservation Fleet can't span + Availability Zones. All instance type specifications that you specify + for the Fleet must use the same Availability Zone. """ - -@dataclass(kw_only=True) -class ResetSnapshotAttributeInput(_SerdeShape): - """Dataclass for ResetSnapshotAttributeInput structure.""" - - attribute: str | None = ... + ebs_optimized: bool | None = ... """ - The attribute to reset. Currently, only the attribute for permission to - create volumes can be reset. + Indicates whether the Capacity Reservation Fleet supports EBS-optimized + instances types. This optimization provides dedicated throughput to + Amazon EBS and an optimized configuration stack to provide optimal I/O + performance. This optimization isn't available with all instance types. + Additional usage charges apply when using EBS-optimized instance types. """ - snapshot_id: str | None = ... - """The ID of the snapshot.""" - dry_run: bool | None = ... + priority: int | None = ... """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + The priority to assign to the instance type. This value is used to + determine which of the instance types specified for the Fleet should be + prioritized for use. A lower value indicates a high priority. For more + information, see [Instance type + priority](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#instance-priority) + in the *Amazon EC2 User Guide*. """ -@dataclass(kw_only=True) -class ResetSnapshotAttributeOutput(_SerdeShape): - """Dataclass for ResetSnapshotAttributeOutput structure.""" +class ReservationFleetInstanceSpecificationDict(TypedDict, total=False): + """Dictionary form of `ReservationFleetInstanceSpecification`.""" - response_metadata: ResponseMetadata = ... + instance_type: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The instance type for which the Capacity Reservation Fleet reserves + capacity. + """ + instance_platform: str | None + """ + The type of operating system for which the Capacity Reservation Fleet + reserves capacity. + """ + weight: float | None + """ + The number of capacity units provided by the specified instance type. + This value, together with the total target capacity that you specify for + the Fleet determine the number of instances for which the Fleet reserves + capacity. Both values are based on units that make sense for your + workload. For more information, see [Total target + capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) + in the *Amazon EC2 User Guide*. + """ + availability_zone: str | None + """ + The Availability Zone in which the Capacity Reservation Fleet reserves + the capacity. A Capacity Reservation Fleet can't span Availability + Zones. All instance type specifications that you specify for the Fleet + must use the same Availability Zone. + """ + availability_zone_id: str | None + """ + The ID of the Availability Zone in which the Capacity Reservation Fleet + reserves the capacity. A Capacity Reservation Fleet can't span + Availability Zones. All instance type specifications that you specify + for the Fleet must use the same Availability Zone. + """ + ebs_optimized: bool | None + """ + Indicates whether the Capacity Reservation Fleet supports EBS-optimized + instances types. This optimization provides dedicated throughput to + Amazon EBS and an optimized configuration stack to provide optimal I/O + performance. This optimization isn't available with all instance types. + Additional usage charges apply when using EBS-optimized instance types. + """ + priority: int | None + """ + The priority to assign to the instance type. This value is used to + determine which of the instance types specified for the Fleet should be + prioritized for use. A lower value indicates a high priority. For more + information, see [Instance type + priority](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#instance-priority) + in the *Amazon EC2 User Guide*. """ -@dataclass(kw_only=True) -class ResourceStatement(_SerdeShape): - """Describes a resource statement.""" - - resources: list[str] | None = ... - """The resources.""" - resource_types: list[str] | None = ... - """The resource types.""" - -@dataclass(kw_only=True) -class ResourceStatementRequest(_SerdeShape): - """Describes a resource statement.""" - - resources: list[str] | None = ... - """The resources.""" - resource_types: list[str] | None = ... - """The resource types.""" +class ReservationState(UnknownEnumMixin, StrEnum): + ACTIVE = "active" + EXPIRED = "expired" + CANCELLED = "cancelled" + SCHEDULED = "scheduled" + PENDING = "pending" + FAILED = "failed" + DELAYED = "delayed" + UNSUPPORTED = "unsupported" + PAYMENT_PENDING = "payment-pending" + PAYMENT_FAILED = "payment-failed" + RETIRED = "retired" -class ResourceType(UnknownEnumMixin, StrEnum): - CAPACITY_RESERVATION = "capacity-reservation" - CLIENT_VPN_ENDPOINT = "client-vpn-endpoint" - CUSTOMER_GATEWAY = "customer-gateway" - CARRIER_GATEWAY = "carrier-gateway" - COIP_POOL = "coip-pool" - DECLARATIVE_POLICIES_REPORT = "declarative-policies-report" - DEDICATED_HOST = "dedicated-host" - DHCP_OPTIONS = "dhcp-options" - EGRESS_ONLY_INTERNET_GATEWAY = "egress-only-internet-gateway" - ELASTIC_IP = "elastic-ip" - ELASTIC_GPU = "elastic-gpu" - EXPORT_IMAGE_TASK = "export-image-task" - EXPORT_INSTANCE_TASK = "export-instance-task" - FLEET = "fleet" - FPGA_IMAGE = "fpga-image" - HOST_RESERVATION = "host-reservation" - IMAGE = "image" - IMAGE_USAGE_REPORT = "image-usage-report" - IMPORT_IMAGE_TASK = "import-image-task" - IMPORT_SNAPSHOT_TASK = "import-snapshot-task" - INSTANCE = "instance" - INSTANCE_EVENT_WINDOW = "instance-event-window" - INTERNET_GATEWAY = "internet-gateway" - IPAM = "ipam" - IPAM_POOL = "ipam-pool" - IPAM_SCOPE = "ipam-scope" - IPV4POOL_EC2 = "ipv4pool-ec2" - IPV6POOL_EC2 = "ipv6pool-ec2" - KEY_PAIR = "key-pair" - LAUNCH_TEMPLATE = "launch-template" - LOCAL_GATEWAY = "local-gateway" - LOCAL_GATEWAY_ROUTE_TABLE = "local-gateway-route-table" - LOCAL_GATEWAY_VIRTUAL_INTERFACE = "local-gateway-virtual-interface" - LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP = "local-gateway-virtual-interface-group" - LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION = ( - "local-gateway-route-table-vpc-association" - ) - LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION = ( - "local-gateway-route-table-virtual-interface-group-association" - ) - NATGATEWAY = "natgateway" - NETWORK_ACL = "network-acl" - NETWORK_INTERFACE = "network-interface" - NETWORK_INSIGHTS_ANALYSIS = "network-insights-analysis" - NETWORK_INSIGHTS_PATH = "network-insights-path" - NETWORK_INSIGHTS_ACCESS_SCOPE = "network-insights-access-scope" - NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS = "network-insights-access-scope-analysis" - OUTPOST_LAG = "outpost-lag" - PLACEMENT_GROUP = "placement-group" - PREFIX_LIST = "prefix-list" - REPLACE_ROOT_VOLUME_TASK = "replace-root-volume-task" - RESERVED_INSTANCES = "reserved-instances" - ROUTE_TABLE = "route-table" - SECURITY_GROUP = "security-group" - SECURITY_GROUP_RULE = "security-group-rule" - SERVICE_LINK_VIRTUAL_INTERFACE = "service-link-virtual-interface" - SNAPSHOT = "snapshot" - SPOT_FLEET_REQUEST = "spot-fleet-request" - SPOT_INSTANCES_REQUEST = "spot-instances-request" - SUBNET = "subnet" - SUBNET_CIDR_RESERVATION = "subnet-cidr-reservation" - TRAFFIC_MIRROR_FILTER = "traffic-mirror-filter" - TRAFFIC_MIRROR_SESSION = "traffic-mirror-session" - TRAFFIC_MIRROR_TARGET = "traffic-mirror-target" - TRANSIT_GATEWAY = "transit-gateway" - TRANSIT_GATEWAY_ATTACHMENT = "transit-gateway-attachment" - TRANSIT_GATEWAY_CONNECT_PEER = "transit-gateway-connect-peer" - TRANSIT_GATEWAY_MULTICAST_DOMAIN = "transit-gateway-multicast-domain" - TRANSIT_GATEWAY_POLICY_TABLE = "transit-gateway-policy-table" - TRANSIT_GATEWAY_METERING_POLICY = "transit-gateway-metering-policy" - TRANSIT_GATEWAY_ROUTE_TABLE = "transit-gateway-route-table" - TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT = ( - "transit-gateway-route-table-announcement" - ) - VOLUME = "volume" - VPC = "vpc" - VPC_ENDPOINT = "vpc-endpoint" - VPC_ENDPOINT_CONNECTION = "vpc-endpoint-connection" - VPC_ENDPOINT_SERVICE = "vpc-endpoint-service" - VPC_ENDPOINT_SERVICE_PERMISSION = "vpc-endpoint-service-permission" - VPC_PEERING_CONNECTION = "vpc-peering-connection" - VPN_CONNECTION = "vpn-connection" - VPN_GATEWAY = "vpn-gateway" - VPC_FLOW_LOG = "vpc-flow-log" - CAPACITY_RESERVATION_FLEET = "capacity-reservation-fleet" - TRAFFIC_MIRROR_FILTER_RULE = "traffic-mirror-filter-rule" - VPC_ENDPOINT_CONNECTION_DEVICE_TYPE = "vpc-endpoint-connection-device-type" - VERIFIED_ACCESS_INSTANCE = "verified-access-instance" - VERIFIED_ACCESS_GROUP = "verified-access-group" - VERIFIED_ACCESS_ENDPOINT = "verified-access-endpoint" - VERIFIED_ACCESS_POLICY = "verified-access-policy" - VERIFIED_ACCESS_TRUST_PROVIDER = "verified-access-trust-provider" - VPN_CONNECTION_DEVICE_TYPE = "vpn-connection-device-type" - VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION = "vpc-block-public-access-exclusion" - VPC_ENCRYPTION_CONTROL = "vpc-encryption-control" - ROUTE_SERVER = "route-server" - ROUTE_SERVER_ENDPOINT = "route-server-endpoint" - ROUTE_SERVER_PEER = "route-server-peer" - IPAM_RESOURCE_DISCOVERY = "ipam-resource-discovery" - IPAM_RESOURCE_DISCOVERY_ASSOCIATION = "ipam-resource-discovery-association" - INSTANCE_CONNECT_ENDPOINT = "instance-connect-endpoint" - VERIFIED_ACCESS_ENDPOINT_TARGET = "verified-access-endpoint-target" - IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN = ( - "ipam-external-resource-verification-token" - ) +class ReservationType(UnknownEnumMixin, StrEnum): CAPACITY_BLOCK = "capacity-block" - MAC_MODIFICATION_TASK = "mac-modification-task" - IPAM_PREFIX_LIST_RESOLVER = "ipam-prefix-list-resolver" - IPAM_POLICY = "ipam-policy" - IPAM_PREFIX_LIST_RESOLVER_TARGET = "ipam-prefix-list-resolver-target" - IPAM_INTERNET_REGISTRY_ASSOCIATION = "ipam-internet-registry-association" - SECONDARY_INTERFACE = "secondary-interface" - SECONDARY_NETWORK = "secondary-network" - SECONDARY_SUBNET = "secondary-subnet" - CAPACITY_MANAGER_DATA_EXPORT = "capacity-manager-data-export" - VPN_CONCENTRATOR = "vpn-concentrator" - IPAM_POOL_ALLOCATION = "ipam-pool-allocation" - CAPACITY_RESERVATION_CANCELLATION_QUOTE = "capacity-reservation-cancellation-quote" - APPLICATION_STATUS_CHECK = "application-status-check" - CAPACITY_RESERVATION_MODIFICATION_QUOTE = "capacity-reservation-modification-quote" + ODCR = "odcr" @dataclass(kw_only=True) -class ResourceTypeOption(_SerdeShape): - """The options that affect the scope of the response.""" +class ReservationValue(_SerdeShape): + """The cost associated with the Reserved Instance.""" - option_name: str | None = ... + hourly_price: str | None = ... + """The hourly rate of the reservation.""" + remaining_total_value: str | None = ... """ - The name of the option. - - - For `ec2:Instance`: + The balance of the total value (the sum of remainingUpfrontValue + + hourlyPrice * number of hours remaining). + """ + remaining_upfront_value: str | None = ... + """The remaining upfront cost of the reservation.""" - Specify `state-name` - The current state of the EC2 instance. +class ReservedCapacityAllocationStrategy(UnknownEnumMixin, StrEnum): + PRIORITIZED = "prioritized" - - For `ec2:LaunchTemplate`: +class ReservedCapacityFallbackMarketType(UnknownEnumMixin, StrEnum): + ON_DEMAND = "on-demand" - Specify `version-depth` - The number of launch template versions to - check, starting from the most recent version. +@dataclass(kw_only=True) +class ReservedCapacityFallbackOptions(_SerdeShape): """ - option_values: list[str] | None = ... + Describes the fallback behavior for an EC2 Fleet that uses reserved + capacity when the reserved capacity is not enough to meet the target + capacity. If you don't specify fallback options, EC2 Fleet does not + fall back to any other market type after the specified reservation types + are exhausted. """ - A value for the specified option. - - - For `state-name`: - - Valid values: `pending` | `running` | `shutting-down` | - `terminated` | `stopping` | `stopped` + market_types: list[str] | None = ... + """ + The instance purchasing options to fall back to when the reserved + capacity is not enough to meet the target capacity. The only supported + value is `on-demand`, which launches On-Demand Instances to fulfill the + remaining target capacity. + """ - - Default: All states +@dataclass(kw_only=True) +class ReservedCapacityFallbackOptionsRequest(_SerdeShape): + """ + Describes the fallback behavior for an EC2 Fleet that uses reserved + capacity when the reserved capacity is not enough to meet the target + capacity. If you don't specify fallback options, EC2 Fleet does not + fall back to any other market type after the specified reservation types + are exhausted. + """ - - For `version-depth`: + market_types: list[str] | None = ... + """ + The instance purchasing options to fall back to when the reserved + capacity is not enough to meet the target capacity. The only supported + value is `on-demand`, which launches On-Demand Instances to fulfill the + remaining target capacity. + """ - - Valid values: Integers between `1` and `10000` +class ReservedCapacityFallbackOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `ReservedCapacityFallbackOptionsRequest`.""" - - Default: `10` + market_types: Sequence[str] | None + """ + The instance purchasing options to fall back to when the reserved + capacity is not enough to meet the target capacity. The only supported + value is `on-demand`, which launches On-Demand Instances to fulfill the + remaining target capacity. """ @dataclass(kw_only=True) -class ResourceTypeRequest(_SerdeShape): +class ReservedCapacityOptions(_SerdeShape): """ - A resource type to check for image references. Associated options can - also be specified if the resource type is an EC2 instance or launch - template. + Defines EC2 Fleet preferences for utilizing reserved capacity when + `DefaultTargetCapacityType` is set to `reserved-capacity`. EC2 Fleet can + fulfill reserved capacity using On-Demand Capacity Reservations, + Capacity Blocks for ML, and interruptible Capacity Reservations. """ - resource_type: str | None = ... - """The resource type.""" - resource_type_options: list[ResourceTypeOption] | None = ... + allocation_strategy: str | None = ... """ - The options that affect the scope of the response. Valid only when - `ResourceType` is `ec2:Instance` or `ec2:LaunchTemplate`. + The strategy that determines the order in which EC2 Fleet launches + instances across the reservation types that you specify. The only + supported value is `prioritized`, which launches instances in the + priority order that you specify in your launch template overrides. If + you don't specify an allocation strategy, instances are launched in a + random order. """ - -@dataclass(kw_only=True) -class ResponseError(_SerdeShape): + reservation_types: list[str] | None = ... """ - Describes the error that's returned when you cannot delete a launch - template version. + The types of Capacity Reservations used for fulfilling the EC2 Fleet + request. + """ + reserved_capacity_fallback_options: ReservedCapacityFallbackOptions | None = ... + """ + The fallback behavior for the EC2 Fleet when there is not enough + reserved capacity available to meet the target capacity. """ - - code: str | None = ... - """The error code.""" - message: str | None = ... - """The error message, if applicable.""" @dataclass(kw_only=True) -class ResponseLaunchTemplateData(_SerdeShape): - """The information for a launch template.""" - - kernel_id: str | None = ... - """The ID of the kernel, if applicable.""" - ebs_optimized: bool | None = ... - """Indicates whether the instance is optimized for Amazon EBS I/O.""" - iam_instance_profile: LaunchTemplateIamInstanceProfileSpecification | None = ... - """The IAM instance profile.""" - block_device_mappings: list[LaunchTemplateBlockDeviceMapping] | None = ... - """The block device mappings.""" - network_interfaces: ( - list[LaunchTemplateInstanceNetworkInterfaceSpecification] | None - ) = ... - """The network interfaces.""" - image_id: str | None = ... +class ReservedCapacityOptionsRequest(_SerdeShape): """ - The ID of the AMI or a Systems Manager parameter. The Systems Manager - parameter will resolve to the ID of the AMI at instance launch. - - The value depends on what you specified in the request. The possible - values are: - - - If an AMI ID was specified in the request, then this is the AMI ID. + Defines EC2 Fleet preferences for utilizing reserved capacity when + `DefaultTargetCapacityType` is set to `reserved-capacity`. EC2 Fleet can + fulfill reserved capacity using On-Demand Capacity Reservations, + Capacity Blocks for ML, and interruptible Capacity Reservations. - - If a Systems Manager parameter was specified in the request, and - `ResolveAlias` was configured as `true`, then this is the AMI ID that - the parameter is mapped to in the Parameter Store. + Note: + This configuration can only be used if the EC2 Fleet is of type + `instant`. - - If a Systems Manager parameter was specified in the request, and - `ResolveAlias` was configured as `false`, then this is the parameter - value. + When you specify `ReservedCapacityOptions`, you must also set + `DefaultTargetCapacityType` to `reserved-capacity` in the + `TargetCapacitySpecification`. - For more information, see [Use a Systems Manager parameter instead of an - AMI - ID](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id) + For more information about interruptible Capacity Reservations, see + [Launch instances into an interruptible Capacity + Reservation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-launch-instances-interruptible-cr-walkthrough.html) in the *Amazon EC2 User Guide*. """ - instance_type: str | None = ... - """The instance type.""" - key_name: str | None = ... - """The name of the key pair.""" - monitoring: LaunchTemplatesMonitoring | None = ... - """The monitoring for the instance.""" - placement: LaunchTemplatePlacement | None = ... - """The placement of the instance.""" - ram_disk_id: str | None = ... - """The ID of the RAM disk, if applicable.""" - disable_api_termination: bool | None = ... - """ - If set to `true`, indicates that the instance cannot be terminated using - the Amazon EC2 console, command line tool, or API. - """ - instance_initiated_shutdown_behavior: str | None = ... + + allocation_strategy: str | None = ... """ - Indicates whether an instance stops or terminates when you initiate - shutdown from the instance (using the operating system command for - system shutdown). + The strategy that determines the order in which EC2 Fleet launches + instances across the reservation types that you specify. The only + supported value is `prioritized`, which launches instances in the + priority order that you specify in your launch template overrides. If + you don't specify an allocation strategy, instances are launched in a + random order. """ - user_data: str | None = ... - """The user data for the instance.""" - tag_specifications: list[LaunchTemplateTagSpecification] | None = ... + reservation_types: list[str] | None = ... """ - The tags that are applied to the resources that are created during - instance launch. + The types of Capacity Reservations to use for fulfilling the EC2 Fleet + request. This is an ordered list: EC2 Fleet attempts to launch instances + into each Capacity Reservation type in the order that you specify them + before moving on to the next type. """ - elastic_gpu_specifications: list[ElasticGpuSpecificationResponse] | None = ... + capacity_reservation_target: FleetCapacityReservationTargetRequest | None = ... """ - Deprecated. - - Note: - Amazon Elastic Graphics reached end of life on January 8, 2024. + The Capacity Reservations or Capacity Reservation Resource Groups to use + for fulfilling the EC2 Fleet request. You can specify Capacity + Reservation IDs or a Capacity Reservation Resource Group ARN, but not + both. """ - elastic_inference_accelerators: ( - list[LaunchTemplateElasticInferenceAcceleratorResponse] | None + reserved_capacity_fallback_options: ( + ReservedCapacityFallbackOptionsRequest | None ) = ... """ - Note: - Amazon Elastic Inference is no longer available. + The fallback behavior for the EC2 Fleet when there is not enough + reserved capacity available to meet the target capacity. This member + takes a `ReservedCapacityFallbackOptionsRequest` structure, in which you + set `MarketTypes` to the instance purchasing options to fall back to. + """ - An elastic inference accelerator to associate with the instance. Elastic - inference accelerators are a resource you can attach to your Amazon EC2 - instances to accelerate your Deep Learning (DL) inference workloads. +class ReservedCapacityOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `ReservedCapacityOptionsRequest`.""" - You cannot specify accelerators from different generations in the same - request. - """ - security_group_ids: list[str] | None = ... - """The security group IDs.""" - security_groups: list[str] | None = ... - """The security group names.""" - instance_market_options: LaunchTemplateInstanceMarketOptions | None = ... - """The market (purchasing) option for the instances.""" - credit_specification: CreditSpecification | None = ... - """The credit option for CPU usage of the instance.""" - cpu_options: LaunchTemplateCpuOptions | None = ... + allocation_strategy: str | None """ - The CPU options for the instance. For more information, see [CPU options - for Amazon EC2 - instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) - in the *Amazon EC2 User Guide*. - """ - capacity_reservation_specification: ( - LaunchTemplateCapacityReservationSpecificationResponse | None - ) = ... - """Information about the Capacity Reservation targeting option.""" - license_specifications: list[LaunchTemplateLicenseConfiguration] | None = ... - """The license configurations.""" - hibernation_options: LaunchTemplateHibernationOptions | None = ... + The strategy that determines the order in which EC2 Fleet launches + instances across the reservation types that you specify. The only + supported value is `prioritized`, which launches instances in the + priority order that you specify in your launch template overrides. If + you don't specify an allocation strategy, instances are launched in a + random order. """ - Indicates whether an instance is configured for hibernation. For more - information, see [Hibernate your Amazon EC2 - instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) - in the *Amazon EC2 User Guide*. + reservation_types: Sequence[str] | None """ - metadata_options: LaunchTemplateInstanceMetadataOptions | None = ... + The types of Capacity Reservations to use for fulfilling the EC2 Fleet + request. This is an ordered list: EC2 Fleet attempts to launch instances + into each Capacity Reservation type in the order that you specify them + before moving on to the next type. """ - The metadata options for the instance. For more information, see - [Configure the Instance Metadata Service - options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html) - in the *Amazon EC2 User Guide*. + capacity_reservation_target: ( + FleetCapacityReservationTargetRequest + | FleetCapacityReservationTargetRequestDict + | None + ) """ - enclave_options: LaunchTemplateEnclaveOptions | None = ... + The Capacity Reservations or Capacity Reservation Resource Groups to use + for fulfilling the EC2 Fleet request. You can specify Capacity + Reservation IDs or a Capacity Reservation Resource Group ARN, but not + both. """ - Indicates whether the instance is enabled for Amazon Web Services Nitro - Enclaves. + reserved_capacity_fallback_options: ( + ReservedCapacityFallbackOptionsRequest + | ReservedCapacityFallbackOptionsRequestDict + | None + ) """ - instance_requirements: InstanceRequirements | None = ... + The fallback behavior for the EC2 Fleet when there is not enough + reserved capacity available to meet the target capacity. This member + takes a `ReservedCapacityFallbackOptionsRequest` structure, in which you + set `MarketTypes` to the instance purchasing options to fall back to. """ - The attributes for the instance types. When you specify instance - attributes, Amazon EC2 will identify instance types with these - attributes. - If you specify `InstanceRequirements`, you can't specify - `InstanceTypes`. - """ - private_dns_name_options: LaunchTemplatePrivateDnsNameOptions | None = ... - """The options for the instance hostname.""" - maintenance_options: LaunchTemplateInstanceMaintenanceOptions | None = ... - """The maintenance options for your instance.""" - disable_api_stop: bool | None = ... +@dataclass(kw_only=True) +class ReservedInstanceLimitPrice(_SerdeShape): + """Describes the limit price of a Reserved Instance offering.""" + + amount: float | None = ... """ - Indicates whether the instance is enabled for stop protection. For more - information, see [Enable stop protection for your EC2 - instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) - in the *Amazon EC2 User Guide*. + Used for Reserved Instance Marketplace offerings. Specifies the limit + price on the total order (instanceCount * price). """ - operator: OperatorResponse | None = ... - """The entity that manages the launch template.""" - network_performance_options: LaunchTemplateNetworkPerformanceOptions | None = ... + currency_code: str | None = ... """ - Contains the launch template settings for network performance options - for your instance. + The currency in which the `limitPrice` amount is specified. At this + time, the only supported currency is `USD`. """ - secondary_interfaces: ( - list[LaunchTemplateInstanceSecondaryInterfaceSpecification] | None - ) = ... - """The secondary interfaces associated with the launch template.""" -@dataclass(kw_only=True) -class RestoreAddressToClassicInput(_SerdeShape): - """Dataclass for RestoreAddressToClassicInput structure.""" +class ReservedInstanceLimitPriceDict(TypedDict, total=False): + """Dictionary form of `ReservedInstanceLimitPrice`.""" - dry_run: bool | None = ... + amount: float | None """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + Used for Reserved Instance Marketplace offerings. Specifies the limit + price on the total order (instanceCount * price). """ - public_ip: str | None = ... - """The Elastic IP address.""" - -@dataclass(kw_only=True) -class RestoreAddressToClassicOutput(_SerdeShape): - """Dataclass for RestoreAddressToClassicOutput structure.""" - - public_ip: str | None = ... - """The Elastic IP address.""" - status: str | None = ... - """The move status for the IP address.""" - response_metadata: ResponseMetadata = ... + currency_code: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The currency in which the `limitPrice` amount is specified. At this + time, the only supported currency is `USD`. """ @dataclass(kw_only=True) -class RestoreImageFromRecycleBinInput(_SerdeShape): - """Dataclass for RestoreImageFromRecycleBinInput structure.""" +class ReservedInstanceReservationValue(_SerdeShape): + """The total value of the Convertible Reserved Instance.""" - image_id: str | None = ... - """The ID of the AMI to restore.""" - dry_run: bool | None = ... + reservation_value: ReservationValue | None = ... """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + The total value of the Convertible Reserved Instance that you are + exchanging. """ + reserved_instance_id: str | None = ... + """The ID of the Convertible Reserved Instance that you are exchanging.""" @dataclass(kw_only=True) -class RestoreImageFromRecycleBinOutput(_SerdeShape): - """Dataclass for RestoreImageFromRecycleBinOutput structure.""" +class ReservedInstances(_SerdeShape): + """Describes a Reserved Instance.""" - return_: bool | None = ... - """Returns `true` if the request succeeds; otherwise, it returns an error.""" - response_metadata: ResponseMetadata = ... + currency_code: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The currency of the Reserved Instance. It's specified using ISO 4217 + standard currency codes. At this time, the only supported currency is + `USD`. """ + instance_tenancy: str | None = ... + """The tenancy of the instance.""" + offering_class: str | None = ... + """The offering class of the Reserved Instance.""" + offering_type: str | None = ... + """The Reserved Instance offering type.""" + recurring_charges: list[RecurringCharge] | None = ... + """The recurring charge tag assigned to the resource.""" + scope: str | None = ... + """The scope of the Reserved Instance.""" + tags: list[Tag] | None = ... + """Any tags assigned to the resource.""" + availability_zone_id: str | None = ... + """The ID of the Availability Zone.""" + reserved_instances_id: str | None = ... + """The ID of the Reserved Instance.""" + instance_type: str | None = ... + """The instance type on which the Reserved Instance can be used.""" + availability_zone: str | None = ... + """The Availability Zone in which the Reserved Instance can be used.""" + start: datetime | None = ... + """The date and time the Reserved Instance started.""" + end: datetime | None = ... + """The time when the Reserved Instance expires.""" + duration: int | None = ... + """The duration of the Reserved Instance, in seconds.""" + usage_price: float | None = ... + """The usage price of the Reserved Instance, per hour.""" + fixed_price: float | None = ... + """The purchase price of the Reserved Instance.""" + instance_count: int | None = ... + """The number of reservations purchased.""" + product_description: str | None = ... + """The Reserved Instance product platform description.""" + state: str | None = ... + """The state of the Reserved Instance purchase.""" @dataclass(kw_only=True) -class RestoreManagedPrefixListVersionInput(_SerdeShape): - """Dataclass for RestoreManagedPrefixListVersionInput structure.""" - - dry_run: bool | None = ... - """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. - """ - prefix_list_id: str | None = ... - """The ID of the prefix list.""" - previous_version: int | None = ... - """The version to restore.""" - current_version: int | None = ... - """The current version number for the prefix list.""" - -@dataclass(kw_only=True) -class RestoreManagedPrefixListVersionOutput(_SerdeShape): - """Dataclass for RestoreManagedPrefixListVersionOutput structure.""" - - prefix_list: ManagedPrefixList | None = ... - """Information about the prefix list.""" - response_metadata: ResponseMetadata = ... +class ReservedInstancesConfiguration(_SerdeShape): """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Describes the configuration settings for the modified Reserved + Instances. """ -@dataclass(kw_only=True) -class RestoreSnapshotFromRecycleBinInput(_SerdeShape): - """Dataclass for RestoreSnapshotFromRecycleBinInput structure.""" + availability_zone: str | None = ... + """The Availability Zone for the modified Reserved Instances.""" + instance_count: int | None = ... + """ + The number of modified Reserved Instances. - snapshot_id: str | None = ... - """The ID of the snapshot to restore.""" - dry_run: bool | None = ... + Note: + This is a required field for a request. """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + instance_type: str | None = ... + """The instance type for the modified Reserved Instances.""" + platform: str | None = ... + """The network platform of the modified Reserved Instances.""" + scope: str | None = ... """ + Whether the Reserved Instance is applied to instances in a Region or + instances in a specific Availability Zone. + """ + availability_zone_id: str | None = ... + """The ID of the Availability Zone.""" -@dataclass(kw_only=True) -class RestoreSnapshotFromRecycleBinOutput(_SerdeShape): - """Dataclass for RestoreSnapshotFromRecycleBinOutput structure.""" +class ReservedInstancesConfigurationDict(TypedDict, total=False): + """Dictionary form of `ReservedInstancesConfiguration`.""" - snapshot_id: str | None = ... - """The ID of the snapshot.""" - outpost_arn: str | None = ... + availability_zone: str | None + """The Availability Zone for the modified Reserved Instances.""" + instance_count: int | None """ - The ARN of the Outpost on which the snapshot is stored. For more - information, see [Amazon EBS local snapshots on - Outposts](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html) - in the *Amazon EBS User Guide*. + The number of modified Reserved Instances. + + Note: + This is a required field for a request. """ - description: str | None = ... - """The description for the snapshot.""" - encrypted: bool | None = ... - """Indicates whether the snapshot is encrypted.""" - owner_id: str | None = ... - """The ID of the Amazon Web Services account that owns the EBS snapshot.""" - progress: str | None = ... - """The progress of the snapshot, as a percentage.""" - start_time: datetime | None = ... - """The time stamp when the snapshot was initiated.""" - state: str | None = ... - """The state of the snapshot.""" - volume_id: str | None = ... - """The ID of the volume that was used to create the snapshot.""" - volume_size: int | None = ... - """The size of the volume, in GiB.""" - sse_type: str | None = ... - """Reserved for future use.""" - response_metadata: ResponseMetadata = ... + instance_type: str | None + """The instance type for the modified Reserved Instances.""" + platform: str | None + """The network platform of the modified Reserved Instances.""" + scope: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Whether the Reserved Instance is applied to instances in a Region or + instances in a specific Availability Zone. """ + availability_zone_id: str | None + """The ID of the Availability Zone.""" @dataclass(kw_only=True) -class RestoreSnapshotTierInput(_SerdeShape): - """Dataclass for RestoreSnapshotTierInput structure.""" +class ReservedInstancesId(_SerdeShape): + """Describes the ID of a Reserved Instance.""" - snapshot_id: str | None = ... - """The ID of the snapshot to restore.""" - temporary_restore_days: int | None = ... - """ - Specifies the number of days for which to temporarily restore an - archived snapshot. Required for temporary restores only. The snapshot - will be automatically re-archived after this period. + reserved_instances_id: str | None = ... + """The ID of the Reserved Instance.""" - To temporarily restore an archived snapshot, specify the number of days - and omit the **PermanentRestore** parameter or set it to `false`. - """ - permanent_restore: bool | None = ... +@dataclass(kw_only=True) +class ReservedInstancesListing(_SerdeShape): + """Describes a Reserved Instance listing.""" + + client_token: str | None = ... """ - Indicates whether to permanently restore an archived snapshot. To - permanently restore an archived snapshot, specify `true` and omit the - **RestoreSnapshotTierRequest$TemporaryRestoreDays** parameter. + A unique, case-sensitive key supplied by the client to ensure that the + request is idempotent. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). """ - dry_run: bool | None = ... + create_date: datetime | None = ... + """The time the listing was created.""" + instance_counts: list[InstanceCount] | None = ... + """The number of instances in this state.""" + price_schedules: list[PriceSchedule] | None = ... + """The price of the Reserved Instance listing.""" + reserved_instances_id: str | None = ... + """The ID of the Reserved Instance.""" + reserved_instances_listing_id: str | None = ... + """The ID of the Reserved Instance listing.""" + status: str | None = ... + """The status of the Reserved Instance listing.""" + status_message: str | None = ... """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + The reason for the current status of the Reserved Instance listing. The + response can be blank. """ + tags: list[Tag] | None = ... + """Any tags assigned to the resource.""" + update_date: datetime | None = ... + """The last modified timestamp of the listing.""" @dataclass(kw_only=True) -class RestoreSnapshotTierOutput(_SerdeShape): - """Dataclass for RestoreSnapshotTierOutput structure.""" +class ReservedInstancesModification(_SerdeShape): + """Describes a Reserved Instance modification.""" - snapshot_id: str | None = ... - """The ID of the snapshot.""" - restore_start_time: datetime | None = ... - """The date and time when the snapshot restore process started.""" - restore_duration: int | None = ... - """ - For temporary restores only. The number of days for which the archived - snapshot is temporarily restored. - """ - is_permanent_restore: bool | None = ... + client_token: str | None = ... """ - Indicates whether the snapshot is permanently restored. `true` indicates - a permanent restore. `false` indicates a temporary restore. + A unique, case-sensitive key supplied by the client to ensure that the + request is idempotent. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). """ - response_metadata: ResponseMetadata = ... + create_date: datetime | None = ... + """The time when the modification request was created.""" + effective_date: datetime | None = ... + """The time for the modification to become effective.""" + modification_results: list[ReservedInstancesModificationResult] | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Contains target configurations along with their corresponding new + Reserved Instance IDs. """ + reserved_instances_ids: list[ReservedInstancesId] | None = ... + """The IDs of one or more Reserved Instances.""" + reserved_instances_modification_id: str | None = ... + """A unique ID for the Reserved Instance modification.""" + status: str | None = ... + """The status of the Reserved Instances modification request.""" + status_message: str | None = ... + """The reason for the status.""" + update_date: datetime | None = ... + """The time when the modification request was last updated.""" @dataclass(kw_only=True) -class RestoreVolumeFromRecycleBinInput(_SerdeShape): - """Dataclass for RestoreVolumeFromRecycleBinInput structure.""" +class ReservedInstancesModificationResult(_SerdeShape): + """Describes the modification request/s.""" - volume_id: str | None = ... - """The ID of the volume to restore.""" - dry_run: bool | None = ... + reserved_instances_id: str | None = ... """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + The ID for the Reserved Instances that were created as part of the + modification request. This field is only available when the modification + is fulfilled. """ - -@dataclass(kw_only=True) -class RestoreVolumeFromRecycleBinOutput(_SerdeShape): - """Dataclass for RestoreVolumeFromRecycleBinOutput structure.""" - - return_: bool | None = ... - """Returns `true` if the request succeeds; otherwise, it returns an error.""" - response_metadata: ResponseMetadata = ... + target_configuration: ReservedInstancesConfiguration | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The target Reserved Instances configurations supplied as part of the + modification request. """ @dataclass(kw_only=True) -class RevokeClientVpnIngressInput(_SerdeShape): - """Dataclass for RevokeClientVpnIngressInput structure.""" +class ReservedInstancesOffering(_SerdeShape): + """Describes a Reserved Instance offering.""" - client_vpn_endpoint_id: str | None = ... + currency_code: str | None = ... """ - The ID of the Client VPN endpoint with which the authorization rule is - associated. + The currency of the Reserved Instance offering you are purchasing. It's + specified using ISO 4217 standard currency codes. At this time, the only + supported currency is `USD`. """ - target_network_cidr: str | None = ... + instance_tenancy: str | None = ... + """The tenancy of the instance.""" + marketplace: bool | None = ... """ - The IPv4 address range, in CIDR notation, of the network for which - access is being removed. + Indicates whether the offering is available through the Reserved + Instance Marketplace (resale) or Amazon Web Services. If it's a + Reserved Instance Marketplace offering, this is `true`. """ - access_group_id: str | None = ... - """The ID of the Active Directory group for which to revoke access.""" - revoke_all_groups: bool | None = ... + offering_class: str | None = ... """ - Indicates whether access should be revoked for all groups for a single - `TargetNetworkCidr` that earlier authorized ingress for all groups using - `AuthorizeAllGroups`. This does not impact other authorization rules - that allowed ingress to the same `TargetNetworkCidr` with a specific - `AccessGroupId`. + If `convertible` it can be exchanged for Reserved Instances of the same + or higher monetary value, with different configurations. If `standard`, + it is not possible to perform an exchange. """ + offering_type: str | None = ... + """The Reserved Instance offering type.""" + pricing_details: list[PricingDetail] | None = ... + """The pricing details of the Reserved Instance offering.""" + recurring_charges: list[RecurringCharge] | None = ... + """The recurring charge tag assigned to the resource.""" + scope: str | None = ... + """ + Whether the Reserved Instance is applied to instances in a Region or an + Availability Zone. + """ + availability_zone_id: str | None = ... + """The ID of the Availability Zone.""" + reserved_instances_offering_id: str | None = ... + """ + The ID of the Reserved Instance offering. This is the offering ID used + in GetReservedInstancesExchangeQuote to confirm that an exchange can be + made. + """ + instance_type: str | None = ... + """The instance type on which the Reserved Instance can be used.""" + availability_zone: str | None = ... + """The Availability Zone in which the Reserved Instance can be used.""" + duration: int | None = ... + """The duration of the Reserved Instance, in seconds.""" + usage_price: float | None = ... + """The usage price of the Reserved Instance, per hour.""" + fixed_price: float | None = ... + """The purchase price of the Reserved Instance.""" + product_description: str | None = ... + """The Reserved Instance product platform description.""" + +class ReservedInstanceState(UnknownEnumMixin, StrEnum): + PAYMENT_PENDING = "payment-pending" + ACTIVE = "active" + PAYMENT_FAILED = "payment-failed" + RETIRED = "retired" + QUEUED = "queued" + QUEUED_DELETED = "queued-deleted" + +@dataclass(kw_only=True) +class ResetAddressAttributeInput(_SerdeShape): + """Dataclass for ResetAddressAttributeInput structure.""" + + allocation_id: str | None = ... + """[EC2-VPC] The allocation ID.""" + attribute: str | None = ... + """The attribute of the IP address.""" dry_run: bool | None = ... """ Checks whether you have the required permissions for the action, without @@ -3047,12 +3567,27 @@ class RevokeClientVpnIngressInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ResetAddressAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ResetAddressAttributeInput`.""" + + allocation_id: Required[str] + """[EC2-VPC] The allocation ID.""" + attribute: Required[str] + """The attribute of the IP address.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) -class RevokeClientVpnIngressOutput(_SerdeShape): - """Dataclass for RevokeClientVpnIngressOutput structure.""" +class ResetAddressAttributeOutput(_SerdeShape): + """Dataclass for ResetAddressAttributeOutput structure.""" - status: ClientVpnAuthorizationRuleStatus | None = ... - """The current state of the authorization rule.""" + address: AddressAttribute | None = ... + """Information about the IP address.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3062,93 +3597,85 @@ class RevokeClientVpnIngressOutput(_SerdeShape): """ @dataclass(kw_only=True) -class RevokedSecurityGroupRule(_SerdeShape): +class ResetEbsDefaultKmsKeyIdInput(_SerdeShape): + """Dataclass for ResetEbsDefaultKmsKeyIdInput structure.""" + + dry_run: bool | None = ... """ - A security group rule removed with - [RevokeSecurityGroupEgress](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RevokeSecurityGroupEgress.html) - or - [RevokeSecurityGroupIngress](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RevokeSecurityGroupIngress.html). + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - security_group_rule_id: str | None = ... - """A security group rule ID.""" - group_id: str | None = ... - """A security group ID.""" - is_egress: bool | None = ... - """Defines if a security group rule is an outbound rule.""" - ip_protocol: str | None = ... - """The security group rule's protocol.""" - from_port: int | None = ... - """The 'from' port number of the security group rule.""" - to_port: int | None = ... - """The 'to' port number of the security group rule.""" - cidr_ipv4: str | None = ... - """The IPv4 CIDR of the traffic source.""" - cidr_ipv6: str | None = ... - """The IPv6 CIDR of the traffic source.""" - prefix_list_id: str | None = ... - """The ID of a prefix list that's the traffic source.""" - referenced_group_id: str | None = ... - """The ID of a referenced security group.""" - description: str | None = ... - """A description of the revoked security group rule.""" - -@dataclass(kw_only=True) -class RevokeSecurityGroupEgressInput(_SerdeShape): - """Dataclass for RevokeSecurityGroupEgressInput structure.""" +class ResetEbsDefaultKmsKeyIdInputDict(TypedDict, total=False): + """Dictionary form of `ResetEbsDefaultKmsKeyIdInput`.""" - security_group_rule_ids: list[str] | None = ... - """The IDs of the security group rules.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - group_id: str | None = ... - """The ID of the security group.""" - source_security_group_name: str | None = ... + +@dataclass(kw_only=True) +class ResetEbsDefaultKmsKeyIdOutput(_SerdeShape): + """Dataclass for ResetEbsDefaultKmsKeyIdOutput structure.""" + + kms_key_id: str | None = ... """ - Not supported. Use a set of IP permissions to specify a destination - security group. + The Amazon Resource Name (ARN) of the default KMS key for EBS encryption + by default. """ - source_security_group_owner_id: str | None = ... + response_metadata: ResponseMetadata = ... """ - Not supported. Use a set of IP permissions to specify a destination - security group. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - ip_protocol: str | None = ... + +@dataclass(kw_only=True) +class ResetFpgaImageAttributeInput(_SerdeShape): + """Dataclass for ResetFpgaImageAttributeInput structure.""" + + dry_run: bool | None = ... """ - Not supported. Use a set of IP permissions to specify the protocol name - or number. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - from_port: int | None = ... - """Not supported. Use a set of IP permissions to specify the port.""" - to_port: int | None = ... - """Not supported. Use a set of IP permissions to specify the port.""" - cidr_ip: str | None = ... - """Not supported. Use a set of IP permissions to specify the CIDR.""" - ip_permissions: list[IpPermission] | None = ... + fpga_image_id: str | None = ... + """The ID of the AFI.""" + attribute: str | None = ... + """The attribute.""" + +class ResetFpgaImageAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ResetFpgaImageAttributeInput`.""" + + dry_run: bool | None """ - The sets of IP permissions. You can't specify a destination security - group and a CIDR IP address range in the same set of permissions. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ + fpga_image_id: Required[str] + """The ID of the AFI.""" + attribute: str | None + """The attribute.""" + +class ResetFpgaImageAttributeName(UnknownEnumMixin, StrEnum): + LOAD_PERMISSION = "loadPermission" @dataclass(kw_only=True) -class RevokeSecurityGroupEgressOutput(_SerdeShape): - """Dataclass for RevokeSecurityGroupEgressOutput structure.""" +class ResetFpgaImageAttributeOutput(_SerdeShape): + """Dataclass for ResetFpgaImageAttributeOutput structure.""" return_: bool | None = ... - """Returns `true` if the request succeeds; otherwise, returns an error.""" - unknown_ip_permissions: list[IpPermission] | None = ... - """ - The outbound rules that were unknown to the service. In some cases, - `unknownIpPermissionSet` might be in a different format from the request - parameter. - """ - revoked_security_group_rules: list[RevokedSecurityGroupRule] | None = ... - """Details about the revoked security group rules.""" + """Is `true` if the request succeeds, and an error otherwise.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3158,79 +3685,104 @@ class RevokeSecurityGroupEgressOutput(_SerdeShape): """ @dataclass(kw_only=True) -class RevokeSecurityGroupIngressInput(_SerdeShape): - """Dataclass for RevokeSecurityGroupIngressInput structure.""" +class ResetImageAttributeInput(_SerdeShape): + """Contains the parameters for ResetImageAttribute.""" - cidr_ip: str | None = ... - """ - The CIDR IP address range. You can't specify this parameter when - specifying a source security group. + attribute: str | None = ... """ - from_port: int | None = ... + The attribute to reset (currently you can only reset the launch + permission attribute). """ - If the protocol is TCP or UDP, this is the start of the port range. If - the protocol is ICMP, this is the ICMP type or -1 (all ICMP types). + image_id: str | None = ... + """The ID of the AMI.""" + dry_run: bool | None = ... """ - group_id: str | None = ... - """The ID of the security group.""" - group_name: str | None = ... + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - [Default VPC] The name of the security group. You must specify either - the security group ID or the security group name in the request. For - security groups in a nondefault VPC, you must specify the security group - ID. + +class ResetImageAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ResetImageAttributeInput`.""" + + attribute: Required[str] """ - ip_permissions: list[IpPermission] | None = ... + The attribute to reset (currently you can only reset the launch + permission attribute). """ - The sets of IP permissions. You can't specify a source security group - and a CIDR IP address range in the same set of permissions. + image_id: Required[str] + """The ID of the AMI.""" + dry_run: bool | None """ - ip_protocol: str | None = ... + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ - The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol - Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). - Use `-1` to specify all. - """ - source_security_group_name: str | None = ... + +class ResetImageAttributeName(UnknownEnumMixin, StrEnum): + LAUNCH_PERMISSION = "launchPermission" + +@dataclass(kw_only=True) +class ResetImageAttributeOutput(_SerdeShape): + """Dataclass for ResetImageAttributeOutput structure.""" + + response_metadata: ResponseMetadata = ... """ - [Default VPC] The name of the source security group. You can't - specify this parameter in combination with the following parameters: the - CIDR IP address range, the start of the port range, the IP protocol, and - the end of the port range. The source security group must be in the same - VPC. To revoke a specific rule for an IP protocol and port range, use a - set of IP permissions instead. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - source_security_group_owner_id: str | None = ... - """Not supported.""" - to_port: int | None = ... + +@dataclass(kw_only=True) +class ResetInstanceAttributeInput(_SerdeShape): + """Dataclass for ResetInstanceAttributeInput structure.""" + + dry_run: bool | None = ... """ - If the protocol is TCP or UDP, this is the end of the port range. If the - protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - security_group_rule_ids: list[str] | None = ... - """The IDs of the security group rules.""" - dry_run: bool | None = ... + instance_id: str | None = ... + """The ID of the instance.""" + attribute: str | None = ... """ - Checks whether you have the required permissions for the action, without - actually making the request, and provides an error response. If you have - the required permissions, the error response is `DryRunOperation`. - Otherwise, it is `UnauthorizedOperation`. + The attribute to reset. + + Warning: + You can only reset the following attributes: `kernel` | `ramdisk` | + `sourceDestCheck`. """ -@dataclass(kw_only=True) -class RevokeSecurityGroupIngressOutput(_SerdeShape): - """Dataclass for RevokeSecurityGroupIngressOutput structure.""" +class ResetInstanceAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ResetInstanceAttributeInput`.""" - return_: bool | None = ... - """Returns `true` if the request succeeds; otherwise, returns an error.""" - unknown_ip_permissions: list[IpPermission] | None = ... + dry_run: bool | None """ - The inbound rules that were unknown to the service. In some cases, - `unknownIpPermissionSet` might be in a different format from the request - parameter. + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - revoked_security_group_rules: list[RevokedSecurityGroupRule] | None = ... - """Details about the revoked security group rules.""" + instance_id: Required[str] + """The ID of the instance.""" + attribute: Required[str] + """ + The attribute to reset. + + Warning: + You can only reset the following attributes: `kernel` | `ramdisk` | + `sourceDestCheck`. + """ + +@dataclass(kw_only=True) +class ResetInstanceAttributeOutput(_SerdeShape): + """Dataclass for ResetInstanceAttributeOutput structure.""" + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -3239,578 +3791,2135 @@ class RevokeSecurityGroupIngressOutput(_SerdeShape): optional. """ -class RIProductDescription(UnknownEnumMixin, StrEnum): - LINUX_UNIX = "Linux/UNIX" - LINUX_UNIX_AMAZON_VPC_ = "Linux/UNIX (Amazon VPC)" - WINDOWS = "Windows" - WINDOWS_AMAZON_VPC_ = "Windows (Amazon VPC)" +@dataclass(kw_only=True) +class ResetNetworkInterfaceAttributeInput(_SerdeShape): + """Contains the parameters for ResetNetworkInterfaceAttribute.""" -class Rir(UnknownEnumMixin, StrEnum): - """The Regional Internet Registry (RIR).""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_id: str | None = ... + """The ID of the network interface.""" + source_dest_check: str | None = ... + """The source/destination checking attribute. Resets the value to `true`.""" - RIPE = "ripe" - APNIC = "apnic" - ARIN = "arin" - LACNIC = "lacnic" - NICBR = "nicbr" +class ResetNetworkInterfaceAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ResetNetworkInterfaceAttributeInput`.""" -class RootDeviceType(UnknownEnumMixin, StrEnum): - EBS = "ebs" - INSTANCE_STORE = "instance-store" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + network_interface_id: Required[str] + """The ID of the network interface.""" + source_dest_check: str | None + """The source/destination checking attribute. Resets the value to `true`.""" @dataclass(kw_only=True) -class Route(_SerdeShape): - """Describes a route in a route table.""" +class ResetNetworkInterfaceAttributeOutput(_SerdeShape): + """Dataclass for ResetNetworkInterfaceAttributeOutput structure.""" - destination_cidr_block: str | None = ... - """The IPv4 CIDR block used for the destination match.""" - destination_ipv6_cidr_block: str | None = ... - """The IPv6 CIDR block used for the destination match.""" - destination_prefix_list_id: str | None = ... - """The prefix of the Amazon Web Services service.""" - egress_only_internet_gateway_id: str | None = ... - """The ID of the egress-only internet gateway.""" - gateway_id: str | None = ... - """The ID of a gateway attached to your VPC.""" - instance_id: str | None = ... - """The ID of a NAT instance in your VPC.""" - instance_owner_id: str | None = ... - """The ID of Amazon Web Services account that owns the instance.""" - nat_gateway_id: str | None = ... - """The ID of a NAT gateway.""" - transit_gateway_id: str | None = ... - """The ID of a transit gateway.""" - local_gateway_id: str | None = ... - """The ID of the local gateway.""" - carrier_gateway_id: str | None = ... - """The ID of the carrier gateway.""" - network_interface_id: str | None = ... - """The ID of the network interface.""" - origin: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Describes how the route was created. - - `CreateRouteTable` - The route was automatically created when the - route table was created. +@dataclass(kw_only=True) +class ResetSnapshotAttributeInput(_SerdeShape): + """Dataclass for ResetSnapshotAttributeInput structure.""" - - `CreateRoute` - The route was manually added to the route table. + attribute: str | None = ... + """ + The attribute to reset. Currently, only the attribute for permission to + create volumes can be reset. + """ + snapshot_id: str | None = ... + """The ID of the snapshot.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ - - `EnableVgwRoutePropagation` - The route was propagated by route - propagation. +class ResetSnapshotAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ResetSnapshotAttributeInput`.""" - - `Advertisement` - The route was created dynamically by Amazon VPC - Route Server. + attribute: Required[str] """ - state: str | None = ... - """ - The state of the route. The `blackhole` state indicates that the - route's target isn't available (for example, the specified gateway - isn't attached to the VPC, or the specified NAT instance has been - terminated). + The attribute to reset. Currently, only the attribute for permission to + create volumes can be reset. """ - vpc_peering_connection_id: str | None = ... - """The ID of a VPC peering connection.""" - core_network_arn: str | None = ... - """The Amazon Resource Name (ARN) of the core network.""" - odb_network_arn: str | None = ... - """The Amazon Resource Name (ARN) of the ODB network.""" - ip_address: str | None = ... + snapshot_id: Required[str] + """The ID of the snapshot.""" + dry_run: bool | None """ - The next hop IP address for routes propagated by VPC Route Server into - VPC route tables. + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. """ -class RouteOrigin(UnknownEnumMixin, StrEnum): - CREATE_ROUTE_TABLE = "CreateRouteTable" - CREATE_ROUTE = "CreateRoute" - ENABLE_VGW_ROUTE_PROPAGATION = "EnableVgwRoutePropagation" - ADVERTISEMENT = "Advertisement" - @dataclass(kw_only=True) -class RouteServer(_SerdeShape): +class ResetSnapshotAttributeOutput(_SerdeShape): + """Dataclass for ResetSnapshotAttributeOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Describes a route server and its configuration. - Amazon VPC Route Server simplifies routing for traffic between workloads - that are deployed within a VPC and its internet gateways. With this - feature, VPC Route Server dynamically updates VPC and internet gateway - route tables with your preferred IPv4 or IPv6 routes to achieve routing - fault tolerance for those workloads. This enables you to automatically - reroute traffic within a VPC, which increases the manageability of VPC - routing and interoperability with third-party workloads. +@dataclass(kw_only=True) +class ResourceStatement(_SerdeShape): + """Describes a resource statement.""" - Route server supports the follow route table types: + resources: list[str] | None = ... + """The resources.""" + resource_types: list[str] | None = ... + """The resource types.""" - - VPC route tables not associated with subnets +@dataclass(kw_only=True) +class ResourceStatementRequest(_SerdeShape): + """Describes a resource statement.""" - - Subnet route tables + resources: list[str] | None = ... + """The resources.""" + resource_types: list[str] | None = ... + """The resource types.""" - - Internet gateway route tables +class ResourceStatementRequestDict(TypedDict, total=False): + """Dictionary form of `ResourceStatementRequest`.""" - Route server does not support route tables associated with virtual - private gateways. To propagate routes into a transit gateway route - table, use [Transit Gateway - Connect](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html). - """ + resources: Sequence[str] | None + """The resources.""" + resource_types: Sequence[str] | None + """The resource types.""" - route_server_id: str | None = ... - """The unique identifier of the route server.""" - amazon_side_asn: int | None = ... - """ - The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the - appliance. Valid values are from 1 to 4294967295. We recommend using a - private ASN in the 64512--65534 (16-bit ASN) or 4200000000--4294967294 - (32-bit ASN) range. - """ - state: str | None = ... - """The current state of the route server.""" - tags: list[Tag] | None = ... - """Any tags assigned to the route server.""" - persist_routes_state: str | None = ... - """The current state of route persistence for the route server.""" - persist_routes_duration: int | None = ... - """ - The number of minutes a route server will wait after BGP is - re-established to unpersist the routes in the FIB and RIB. Value must be - in the range of 1-5. The default value is 1. Only valid if - `persistRoutesState` is 'enabled'. +class ResourceType(UnknownEnumMixin, StrEnum): + CAPACITY_RESERVATION = "capacity-reservation" + CLIENT_VPN_ENDPOINT = "client-vpn-endpoint" + CUSTOMER_GATEWAY = "customer-gateway" + CARRIER_GATEWAY = "carrier-gateway" + COIP_POOL = "coip-pool" + DECLARATIVE_POLICIES_REPORT = "declarative-policies-report" + DEDICATED_HOST = "dedicated-host" + DHCP_OPTIONS = "dhcp-options" + EGRESS_ONLY_INTERNET_GATEWAY = "egress-only-internet-gateway" + ELASTIC_IP = "elastic-ip" + ELASTIC_GPU = "elastic-gpu" + EXPORT_IMAGE_TASK = "export-image-task" + EXPORT_INSTANCE_TASK = "export-instance-task" + FLEET = "fleet" + FPGA_IMAGE = "fpga-image" + HOST_RESERVATION = "host-reservation" + IMAGE = "image" + IMAGE_USAGE_REPORT = "image-usage-report" + IMPORT_IMAGE_TASK = "import-image-task" + IMPORT_SNAPSHOT_TASK = "import-snapshot-task" + INSTANCE = "instance" + INSTANCE_EVENT_WINDOW = "instance-event-window" + INTERNET_GATEWAY = "internet-gateway" + IPAM = "ipam" + IPAM_POOL = "ipam-pool" + IPAM_SCOPE = "ipam-scope" + IPV4POOL_EC2 = "ipv4pool-ec2" + IPV6POOL_EC2 = "ipv6pool-ec2" + KEY_PAIR = "key-pair" + LAUNCH_TEMPLATE = "launch-template" + LOCAL_GATEWAY = "local-gateway" + LOCAL_GATEWAY_ROUTE_TABLE = "local-gateway-route-table" + LOCAL_GATEWAY_VIRTUAL_INTERFACE = "local-gateway-virtual-interface" + LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP = "local-gateway-virtual-interface-group" + LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION = ( + "local-gateway-route-table-vpc-association" + ) + LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION = ( + "local-gateway-route-table-virtual-interface-group-association" + ) + NATGATEWAY = "natgateway" + NETWORK_ACL = "network-acl" + NETWORK_INTERFACE = "network-interface" + NETWORK_INSIGHTS_ANALYSIS = "network-insights-analysis" + NETWORK_INSIGHTS_PATH = "network-insights-path" + NETWORK_INSIGHTS_ACCESS_SCOPE = "network-insights-access-scope" + NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS = "network-insights-access-scope-analysis" + OUTPOST_LAG = "outpost-lag" + PLACEMENT_GROUP = "placement-group" + PREFIX_LIST = "prefix-list" + REPLACE_ROOT_VOLUME_TASK = "replace-root-volume-task" + RESERVED_INSTANCES = "reserved-instances" + ROUTE_TABLE = "route-table" + SECURITY_GROUP = "security-group" + SECURITY_GROUP_RULE = "security-group-rule" + SERVICE_LINK_VIRTUAL_INTERFACE = "service-link-virtual-interface" + SNAPSHOT = "snapshot" + SPOT_FLEET_REQUEST = "spot-fleet-request" + SPOT_INSTANCES_REQUEST = "spot-instances-request" + SUBNET = "subnet" + SUBNET_CIDR_RESERVATION = "subnet-cidr-reservation" + TRAFFIC_MIRROR_FILTER = "traffic-mirror-filter" + TRAFFIC_MIRROR_SESSION = "traffic-mirror-session" + TRAFFIC_MIRROR_TARGET = "traffic-mirror-target" + TRANSIT_GATEWAY = "transit-gateway" + TRANSIT_GATEWAY_ATTACHMENT = "transit-gateway-attachment" + TRANSIT_GATEWAY_CONNECT_PEER = "transit-gateway-connect-peer" + TRANSIT_GATEWAY_MULTICAST_DOMAIN = "transit-gateway-multicast-domain" + TRANSIT_GATEWAY_POLICY_TABLE = "transit-gateway-policy-table" + TRANSIT_GATEWAY_METERING_POLICY = "transit-gateway-metering-policy" + TRANSIT_GATEWAY_ROUTE_TABLE = "transit-gateway-route-table" + TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT = ( + "transit-gateway-route-table-announcement" + ) + VOLUME = "volume" + VPC = "vpc" + VPC_ENDPOINT = "vpc-endpoint" + VPC_ENDPOINT_CONNECTION = "vpc-endpoint-connection" + VPC_ENDPOINT_SERVICE = "vpc-endpoint-service" + VPC_ENDPOINT_SERVICE_PERMISSION = "vpc-endpoint-service-permission" + VPC_PEERING_CONNECTION = "vpc-peering-connection" + VPN_CONNECTION = "vpn-connection" + VPN_GATEWAY = "vpn-gateway" + VPC_FLOW_LOG = "vpc-flow-log" + CAPACITY_RESERVATION_FLEET = "capacity-reservation-fleet" + TRAFFIC_MIRROR_FILTER_RULE = "traffic-mirror-filter-rule" + VPC_ENDPOINT_CONNECTION_DEVICE_TYPE = "vpc-endpoint-connection-device-type" + VERIFIED_ACCESS_INSTANCE = "verified-access-instance" + VERIFIED_ACCESS_GROUP = "verified-access-group" + VERIFIED_ACCESS_ENDPOINT = "verified-access-endpoint" + VERIFIED_ACCESS_POLICY = "verified-access-policy" + VERIFIED_ACCESS_TRUST_PROVIDER = "verified-access-trust-provider" + VPN_CONNECTION_DEVICE_TYPE = "vpn-connection-device-type" + VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION = "vpc-block-public-access-exclusion" + VPC_ENCRYPTION_CONTROL = "vpc-encryption-control" + ROUTE_SERVER = "route-server" + ROUTE_SERVER_ENDPOINT = "route-server-endpoint" + ROUTE_SERVER_PEER = "route-server-peer" + IPAM_RESOURCE_DISCOVERY = "ipam-resource-discovery" + IPAM_RESOURCE_DISCOVERY_ASSOCIATION = "ipam-resource-discovery-association" + INSTANCE_CONNECT_ENDPOINT = "instance-connect-endpoint" + VERIFIED_ACCESS_ENDPOINT_TARGET = "verified-access-endpoint-target" + IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN = ( + "ipam-external-resource-verification-token" + ) + CAPACITY_BLOCK = "capacity-block" + MAC_MODIFICATION_TASK = "mac-modification-task" + IPAM_PREFIX_LIST_RESOLVER = "ipam-prefix-list-resolver" + IPAM_POLICY = "ipam-policy" + IPAM_PREFIX_LIST_RESOLVER_TARGET = "ipam-prefix-list-resolver-target" + IPAM_INTERNET_REGISTRY_ASSOCIATION = "ipam-internet-registry-association" + SECONDARY_INTERFACE = "secondary-interface" + SECONDARY_NETWORK = "secondary-network" + SECONDARY_SUBNET = "secondary-subnet" + CAPACITY_MANAGER_DATA_EXPORT = "capacity-manager-data-export" + VPN_CONCENTRATOR = "vpn-concentrator" + IPAM_POOL_ALLOCATION = "ipam-pool-allocation" + CAPACITY_RESERVATION_CANCELLATION_QUOTE = "capacity-reservation-cancellation-quote" + APPLICATION_STATUS_CHECK = "application-status-check" + CAPACITY_RESERVATION_MODIFICATION_QUOTE = "capacity-reservation-modification-quote" - If you set the duration to 1 minute, then when your network appliance - re-establishes BGP with route server, it has 1 minute to relearn it's - adjacent network and advertise those routes to route server before route - server resumes normal functionality. In most cases, 1 minute is probably - sufficient. If, however, you have concerns that your BGP network may not - be capable of fully re-establishing and re-learning everything in 1 - minute, you can increase the duration up to 5 minutes. +@dataclass(kw_only=True) +class ResourceTypeOption(_SerdeShape): + """The options that affect the scope of the response.""" + + option_name: str | None = ... """ - sns_notifications_enabled: bool | None = ... + The name of the option. + + - For `ec2:Instance`: + + Specify `state-name` - The current state of the EC2 instance. + + - For `ec2:LaunchTemplate`: + + Specify `version-depth` - The number of launch template versions to + check, starting from the most recent version. """ - Indicates whether SNS notifications are enabled for the route server. - Enabling SNS notifications persists BGP status changes to an SNS topic - provisioned by Amazon Web Services. + option_values: list[str] | None = ... """ - sns_topic_arn: str | None = ... - """The ARN of the SNS topic where notifications are published.""" + A value for the specified option. -@dataclass(kw_only=True) -class RouteServerAssociation(_SerdeShape): - """ - Describes the association between a route server and a VPC. + - For `state-name`: - A route server association is the connection established between a route - server and a VPC. - """ + - Valid values: `pending` | `running` | `shutting-down` | + `terminated` | `stopping` | `stopped` - route_server_id: str | None = ... - """The ID of the associated route server.""" - vpc_id: str | None = ... - """The ID of the associated VPC.""" - state: str | None = ... - """The current state of the association.""" + - Default: All states -class RouteServerAssociationState(UnknownEnumMixin, StrEnum): - ASSOCIATING = "associating" - ASSOCIATED = "associated" - DISASSOCIATING = "disassociating" + - For `version-depth`: -class RouteServerBfdState(UnknownEnumMixin, StrEnum): - UP = "up" - DOWN = "down" + - Valid values: Integers between `1` and `10000` -@dataclass(kw_only=True) -class RouteServerBfdStatus(_SerdeShape): + - Default: `10` """ - The current status of Bidirectional Forwarding Detection (BFD) for a BGP - session. + +class ResourceTypeOptionDict(TypedDict, total=False): + """Dictionary form of `ResourceTypeOption`.""" + + option_name: str | None """ + The name of the option. - status: str | None = ... - """The operational status of the BFD session.""" + - For `ec2:Instance`: -@dataclass(kw_only=True) -class RouteServerBgpOptions(_SerdeShape): - """The BGP configuration options for a route server peer.""" + Specify `state-name` - The current state of the EC2 instance. - peer_asn: int | None = ... - """ - The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the - appliance. Valid values are from 1 to 4294967295. We recommend using a - private ASN in the 64512--65534 (16-bit ASN) or 4200000000--4294967294 - (32-bit ASN) range. + - For `ec2:LaunchTemplate`: + + Specify `version-depth` - The number of launch template versions to + check, starting from the most recent version. """ - peer_liveness_detection: str | None = ... + option_values: Sequence[str] | None """ - The liveness detection protocol used for the BGP peer. + A value for the specified option. - The requested liveness detection protocol for the BGP peer. + - For `state-name`: - - `bgp-keepalive`: The standard BGP keep alive mechanism - ([RFC4271](https://www.rfc-editor.org/rfc/rfc4271#page-21)) that is - stable but may take longer to fail-over in cases of network impact or - router failure. + - Valid values: `pending` | `running` | `shutting-down` | + `terminated` | `stopping` | `stopped` - - `bfd`: An additional Bidirectional Forwarding Detection (BFD) protocol - ([RFC5880](https://www.rfc-editor.org/rfc/rfc5880)) that enables fast - failover by using more sensitive liveness detection. + - Default: All states - Defaults to `bgp-keepalive`. + - For `version-depth`: + + - Valid values: Integers between `1` and `10000` + + - Default: `10` """ @dataclass(kw_only=True) -class RouteServerBgpOptionsRequest(_SerdeShape): - """The BGP configuration options requested for a route server peer.""" - - peer_asn: int | None = ... +class ResourceTypeRequest(_SerdeShape): """ - The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the - appliance. Valid values are from 1 to 4294967295. We recommend using a - private ASN in the 64512--65534 (16-bit ASN) or 4200000000--4294967294 - (32-bit ASN) range. + A resource type to check for image references. Associated options can + also be specified if the resource type is an EC2 instance or launch + template. """ - peer_liveness_detection: str | None = ... + + resource_type: str | None = ... + """The resource type.""" + resource_type_options: list[ResourceTypeOption] | None = ... + """ + The options that affect the scope of the response. Valid only when + `ResourceType` is `ec2:Instance` or `ec2:LaunchTemplate`. """ - The requested liveness detection protocol for the BGP peer. - - `bgp-keepalive`: The standard BGP keep alive mechanism - ([RFC4271](https://www.rfc-editor.org/rfc/rfc4271#page-21)) that is - stable but may take longer to fail-over in cases of network impact or - router failure. - - - `bfd`: An additional Bidirectional Forwarding Detection (BFD) protocol - ([RFC5880](https://www.rfc-editor.org/rfc/rfc5880)) that enables fast - failover by using more sensitive liveness detection. - - Defaults to `bgp-keepalive`. - """ - -class RouteServerBgpState(UnknownEnumMixin, StrEnum): - UP = "up" - DOWN = "down" - -@dataclass(kw_only=True) -class RouteServerBgpStatus(_SerdeShape): - """The current status of a BGP session.""" +class ResourceTypeRequestDict(TypedDict, total=False): + """Dictionary form of `ResourceTypeRequest`.""" - status: str | None = ... + resource_type: str | None + """The resource type.""" + resource_type_options: Sequence[ResourceTypeOption | ResourceTypeOptionDict] | None """ - The operational status of the BGP session. The status enables you to - monitor session liveness if you lack monitoring on your - router/appliance. + The options that affect the scope of the response. Valid only when + `ResourceType` is `ec2:Instance` or `ec2:LaunchTemplate`. """ @dataclass(kw_only=True) -class RouteServerEndpoint(_SerdeShape): +class ResponseError(_SerdeShape): """ - Describes a route server endpoint and its properties. - - A route server endpoint is an Amazon Web Services-managed component - inside a subnet that facilitates [BGP (Border Gateway - Protocol)](https://en.wikipedia.org/wiki/Border_Gateway_Protocol) - connections between your route server and your BGP peers. + Describes the error that's returned when you cannot delete a launch + template version. """ - route_server_id: str | None = ... - """The ID of the route server associated with this endpoint.""" - route_server_endpoint_id: str | None = ... - """The unique identifier of the route server endpoint.""" - vpc_id: str | None = ... - """The ID of the VPC containing the endpoint.""" - subnet_id: str | None = ... - """The ID of the subnet to place the route server endpoint into.""" - eni_id: str | None = ... - """The ID of the Elastic network interface for the endpoint.""" - eni_address: str | None = ... - """The IP address of the Elastic network interface for the endpoint.""" - state: str | None = ... - """The current state of the route server endpoint.""" - failure_reason: str | None = ... - """The reason for any failure in endpoint creation or operation.""" - tags: list[Tag] | None = ... - """Any tags assigned to the route server endpoint.""" - -class RouteServerEndpointState(UnknownEnumMixin, StrEnum): - PENDING = "pending" - AVAILABLE = "available" - DELETING = "deleting" - DELETED = "deleted" - FAILING = "failing" - FAILED = "failed" - DELETE_FAILED = "delete-failed" + code: str | None = ... + """The error code.""" + message: str | None = ... + """The error message, if applicable.""" @dataclass(kw_only=True) -class RouteServerPeer(_SerdeShape): +class ResponseLaunchTemplateData(_SerdeShape): + """The information for a launch template.""" + + kernel_id: str | None = ... + """The ID of the kernel, if applicable.""" + ebs_optimized: bool | None = ... + """Indicates whether the instance is optimized for Amazon EBS I/O.""" + iam_instance_profile: LaunchTemplateIamInstanceProfileSpecification | None = ... + """The IAM instance profile.""" + block_device_mappings: list[LaunchTemplateBlockDeviceMapping] | None = ... + """The block device mappings.""" + network_interfaces: ( + list[LaunchTemplateInstanceNetworkInterfaceSpecification] | None + ) = ... + """The network interfaces.""" + image_id: str | None = ... """ - Describes a BGP peer configuration for a route server endpoint. + The ID of the AMI or a Systems Manager parameter. The Systems Manager + parameter will resolve to the ID of the AMI at instance launch. - A route server peer is a session between a route server endpoint and the - device deployed in Amazon Web Services (such as a firewall appliance or - other network security function running on an EC2 instance). The device - must meet these requirements: + The value depends on what you specified in the request. The possible + values are: - - Have an elastic network interface in the VPC + - If an AMI ID was specified in the request, then this is the AMI ID. - - Support BGP (Border Gateway Protocol) + - If a Systems Manager parameter was specified in the request, and + `ResolveAlias` was configured as `true`, then this is the AMI ID that + the parameter is mapped to in the Parameter Store. - - Can initiate BGP sessions - """ + - If a Systems Manager parameter was specified in the request, and + `ResolveAlias` was configured as `false`, then this is the parameter + value. - route_server_peer_id: str | None = ... - """The unique identifier of the route server peer.""" - route_server_endpoint_id: str | None = ... - """The ID of the route server endpoint associated with this peer.""" - route_server_id: str | None = ... - """The ID of the route server associated with this peer.""" - vpc_id: str | None = ... - """The ID of the VPC containing the route server peer.""" - subnet_id: str | None = ... - """The ID of the subnet containing the route server peer.""" - state: str | None = ... - """The current state of the route server peer.""" - failure_reason: str | None = ... - """The reason for any failure in peer creation or operation.""" - endpoint_eni_id: str | None = ... - """The ID of the Elastic network interface for the route server endpoint.""" - endpoint_eni_address: str | None = ... + For more information, see [Use a Systems Manager parameter instead of an + AMI + ID](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id) + in the *Amazon EC2 User Guide*. """ - The IP address of the Elastic network interface for the route server - endpoint. + instance_type: str | None = ... + """The instance type.""" + key_name: str | None = ... + """The name of the key pair.""" + monitoring: LaunchTemplatesMonitoring | None = ... + """The monitoring for the instance.""" + placement: LaunchTemplatePlacement | None = ... + """The placement of the instance.""" + ram_disk_id: str | None = ... + """The ID of the RAM disk, if applicable.""" + disable_api_termination: bool | None = ... """ - peer_address: str | None = ... - """The IPv4 address of the peer device.""" - bgp_options: RouteServerBgpOptions | None = ... + If set to `true`, indicates that the instance cannot be terminated using + the Amazon EC2 console, command line tool, or API. """ - The BGP configuration options for this peer, including ASN (Autonomous - System Number) and BFD (Bidrectional Forwarding Detection) settings. + instance_initiated_shutdown_behavior: str | None = ... """ - bgp_status: RouteServerBgpStatus | None = ... - """The current status of the BGP session with this peer.""" - bfd_status: RouteServerBfdStatus | None = ... - """The current status of the BFD session with this peer.""" - tags: list[Tag] | None = ... - """Any tags assigned to the route server peer.""" - -class RouteServerPeerLivenessMode(UnknownEnumMixin, StrEnum): - BFD = "bfd" - BGP_KEEPALIVE = "bgp-keepalive" - -class RouteServerPeerState(UnknownEnumMixin, StrEnum): - PENDING = "pending" - AVAILABLE = "available" - DELETING = "deleting" - DELETED = "deleted" - FAILING = "failing" - FAILED = "failed" - -class RouteServerPersistRoutesAction(UnknownEnumMixin, StrEnum): - ENABLE = "enable" - DISABLE = "disable" - RESET = "reset" - -class RouteServerPersistRoutesState(UnknownEnumMixin, StrEnum): - ENABLING = "enabling" - ENABLED = "enabled" - RESETTING = "resetting" - DISABLING = "disabling" - DISABLED = "disabled" - MODIFYING = "modifying" - -@dataclass(kw_only=True) -class RouteServerPropagation(_SerdeShape): + Indicates whether an instance stops or terminates when you initiate + shutdown from the instance (using the operating system command for + system shutdown). """ - Describes the route propagation configuration between a route server and - a route table. - - When enabled, route server propagation installs the routes in the FIB on - the route table you've specified. Route server supports IPv4 and IPv6 - route propagation. + user_data: str | None = ... + """The user data for the instance.""" + tag_specifications: list[LaunchTemplateTagSpecification] | None = ... """ + The tags that are applied to the resources that are created during + instance launch. + """ + elastic_gpu_specifications: list[ElasticGpuSpecificationResponse] | None = ... + """ + Deprecated. - route_server_id: str | None = ... - """The ID of the route server configured for route propagation.""" - route_table_id: str | None = ... - """The ID of the route table configured for route server propagation.""" - state: str | None = ... - """The current state of route propagation.""" - -class RouteServerPropagationState(UnknownEnumMixin, StrEnum): - PENDING = "pending" - AVAILABLE = "available" - DELETING = "deleting" - -@dataclass(kw_only=True) -class RouteServerRoute(_SerdeShape): - """Describes a route in the route server's routing database.""" - - route_server_endpoint_id: str | None = ... - """The ID of the route server endpoint that received this route.""" - route_server_peer_id: str | None = ... - """The ID of the route server peer that advertised this route.""" - route_installation_details: list[RouteServerRouteInstallationDetail] | None = ... - """Details about the installation status of this route in route tables.""" - route_status: str | None = ... + Note: + Amazon Elastic Graphics reached end of life on January 8, 2024. """ - The current status of the route in the routing database. Values are - `in-rib` or `in-fib` depending on if the routes are in the RIB or the - FIB database. + elastic_inference_accelerators: ( + list[LaunchTemplateElasticInferenceAcceleratorResponse] | None + ) = ... + """ + Note: + Amazon Elastic Inference is no longer available. - The [Routing Information Base - (RIB)](https://en.wikipedia.org/wiki/Routing_table) serves as a database - that stores all the routing information and network topology data - collected by a router or routing system, such as routes learned from BGP - peers. The RIB is constantly updated as new routing information is - received or existing routes change. This ensures that the route server - always has the most current view of the network topology and can make - optimal routing decisions. + An elastic inference accelerator to associate with the instance. Elastic + inference accelerators are a resource you can attach to your Amazon EC2 + instances to accelerate your Deep Learning (DL) inference workloads. - The [Forwarding Information Base - (FIB)](https://en.wikipedia.org/wiki/Forwarding_information_base) serves - as a forwarding table for what route server has determined are the - best-path routes in the RIB after evaluating all available routing - information and policies. The FIB routes are installed on the route - tables. The FIB is recomputed whenever there are changes to the RIB. + You cannot specify accelerators from different generations in the same + request. """ - prefix: str | None = ... - """The destination CIDR block of the route.""" - as_paths: list[str] | None = ... - """The AS path attributes of the BGP route.""" - med: int | None = ... - """The Multi-Exit Discriminator (MED) value of the BGP route.""" - next_hop_ip: str | None = ... - """The IP address for the next hop.""" + security_group_ids: list[str] | None = ... + """The security group IDs.""" + security_groups: list[str] | None = ... + """The security group names.""" + instance_market_options: LaunchTemplateInstanceMarketOptions | None = ... + """The market (purchasing) option for the instances.""" + credit_specification: CreditSpecification | None = ... + """The credit option for CPU usage of the instance.""" + cpu_options: LaunchTemplateCpuOptions | None = ... + """ + The CPU options for the instance. For more information, see [CPU options + for Amazon EC2 + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) + in the *Amazon EC2 User Guide*. + """ + capacity_reservation_specification: ( + LaunchTemplateCapacityReservationSpecificationResponse | None + ) = ... + """Information about the Capacity Reservation targeting option.""" + license_specifications: list[LaunchTemplateLicenseConfiguration] | None = ... + """The license configurations.""" + hibernation_options: LaunchTemplateHibernationOptions | None = ... + """ + Indicates whether an instance is configured for hibernation. For more + information, see [Hibernate your Amazon EC2 + instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) + in the *Amazon EC2 User Guide*. + """ + metadata_options: LaunchTemplateInstanceMetadataOptions | None = ... + """ + The metadata options for the instance. For more information, see + [Configure the Instance Metadata Service + options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html) + in the *Amazon EC2 User Guide*. + """ + enclave_options: LaunchTemplateEnclaveOptions | None = ... + """ + Indicates whether the instance is enabled for Amazon Web Services Nitro + Enclaves. + """ + instance_requirements: InstanceRequirements | None = ... + """ + The attributes for the instance types. When you specify instance + attributes, Amazon EC2 will identify instance types with these + attributes. + + If you specify `InstanceRequirements`, you can't specify + `InstanceTypes`. + """ + private_dns_name_options: LaunchTemplatePrivateDnsNameOptions | None = ... + """The options for the instance hostname.""" + maintenance_options: LaunchTemplateInstanceMaintenanceOptions | None = ... + """The maintenance options for your instance.""" + disable_api_stop: bool | None = ... + """ + Indicates whether the instance is enabled for stop protection. For more + information, see [Enable stop protection for your EC2 + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) + in the *Amazon EC2 User Guide*. + """ + operator: OperatorResponse | None = ... + """The entity that manages the launch template.""" + network_performance_options: LaunchTemplateNetworkPerformanceOptions | None = ... + """ + Contains the launch template settings for network performance options + for your instance. + """ + secondary_interfaces: ( + list[LaunchTemplateInstanceSecondaryInterfaceSpecification] | None + ) = ... + """The secondary interfaces associated with the launch template.""" @dataclass(kw_only=True) -class RouteServerRouteInstallationDetail(_SerdeShape): - """Describes the installation status of a route in a route table.""" +class RestoreAddressToClassicInput(_SerdeShape): + """Dataclass for RestoreAddressToClassicInput structure.""" - route_table_id: str | None = ... - """The ID of the route table where the route is being installed.""" - route_installation_status: str | None = ... - """The current installation status of the route in the route table.""" - route_installation_status_reason: str | None = ... - """The reason for the current installation status of the route.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + public_ip: str | None = ... + """The Elastic IP address.""" -class RouteServerRouteInstallationStatus(UnknownEnumMixin, StrEnum): - INSTALLED = "installed" - REJECTED = "rejected" +class RestoreAddressToClassicInputDict(TypedDict, total=False): + """Dictionary form of `RestoreAddressToClassicInput`.""" -class RouteServerRouteStatus(UnknownEnumMixin, StrEnum): - IN_RIB = "in-rib" - IN_FIB = "in-fib" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + public_ip: Required[str] + """The Elastic IP address.""" -class RouteServerState(UnknownEnumMixin, StrEnum): - PENDING = "pending" - AVAILABLE = "available" - MODIFYING = "modifying" - DELETING = "deleting" - DELETED = "deleted" +@dataclass(kw_only=True) +class RestoreAddressToClassicOutput(_SerdeShape): + """Dataclass for RestoreAddressToClassicOutput structure.""" -class RouteState(UnknownEnumMixin, StrEnum): - ACTIVE = "active" - BLACKHOLE = "blackhole" - FILTERED = "filtered" + public_ip: str | None = ... + """The Elastic IP address.""" + status: str | None = ... + """The move status for the IP address.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ @dataclass(kw_only=True) -class RouteTable(_SerdeShape): - """Describes a route table.""" +class RestoreImageFromRecycleBinInput(_SerdeShape): + """Dataclass for RestoreImageFromRecycleBinInput structure.""" - associations: list[RouteTableAssociation] | None = ... - """The associations between the route table and your subnets or gateways.""" - propagating_vgws: list[PropagatingVgw] | None = ... - """Any virtual private gateway (VGW) propagating routes.""" - route_table_id: str | None = ... - """The ID of the route table.""" - routes: list[Route] | None = ... - """The routes in the route table.""" - tags: list[Tag] | None = ... - """Any tags assigned to the route table.""" - vpc_id: str | None = ... - """The ID of the VPC.""" - owner_id: str | None = ... - """The ID of the Amazon Web Services account that owns the route table.""" + image_id: str | None = ... + """The ID of the AMI to restore.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class RestoreImageFromRecycleBinInputDict(TypedDict, total=False): + """Dictionary form of `RestoreImageFromRecycleBinInput`.""" + + image_id: Required[str] + """The ID of the AMI to restore.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ @dataclass(kw_only=True) -class RouteTableAssociation(_SerdeShape): - """Describes an association between a route table and a subnet or gateway.""" +class RestoreImageFromRecycleBinOutput(_SerdeShape): + """Dataclass for RestoreImageFromRecycleBinOutput structure.""" + + return_: bool | None = ... + """Returns `true` if the request succeeds; otherwise, it returns an error.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RestoreManagedPrefixListVersionInput(_SerdeShape): + """Dataclass for RestoreManagedPrefixListVersionInput structure.""" + + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + prefix_list_id: str | None = ... + """The ID of the prefix list.""" + previous_version: int | None = ... + """The version to restore.""" + current_version: int | None = ... + """The current version number for the prefix list.""" + +class RestoreManagedPrefixListVersionInputDict(TypedDict, total=False): + """Dictionary form of `RestoreManagedPrefixListVersionInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + prefix_list_id: Required[str] + """The ID of the prefix list.""" + previous_version: Required[int] + """The version to restore.""" + current_version: Required[int] + """The current version number for the prefix list.""" + +@dataclass(kw_only=True) +class RestoreManagedPrefixListVersionOutput(_SerdeShape): + """Dataclass for RestoreManagedPrefixListVersionOutput structure.""" + + prefix_list: ManagedPrefixList | None = ... + """Information about the prefix list.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RestoreSnapshotFromRecycleBinInput(_SerdeShape): + """Dataclass for RestoreSnapshotFromRecycleBinInput structure.""" + + snapshot_id: str | None = ... + """The ID of the snapshot to restore.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class RestoreSnapshotFromRecycleBinInputDict(TypedDict, total=False): + """Dictionary form of `RestoreSnapshotFromRecycleBinInput`.""" + + snapshot_id: Required[str] + """The ID of the snapshot to restore.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class RestoreSnapshotFromRecycleBinOutput(_SerdeShape): + """Dataclass for RestoreSnapshotFromRecycleBinOutput structure.""" + + snapshot_id: str | None = ... + """The ID of the snapshot.""" + outpost_arn: str | None = ... + """ + The ARN of the Outpost on which the snapshot is stored. For more + information, see [Amazon EBS local snapshots on + Outposts](https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html) + in the *Amazon EBS User Guide*. + """ + description: str | None = ... + """The description for the snapshot.""" + encrypted: bool | None = ... + """Indicates whether the snapshot is encrypted.""" + owner_id: str | None = ... + """The ID of the Amazon Web Services account that owns the EBS snapshot.""" + progress: str | None = ... + """The progress of the snapshot, as a percentage.""" + start_time: datetime | None = ... + """The time stamp when the snapshot was initiated.""" + state: str | None = ... + """The state of the snapshot.""" + volume_id: str | None = ... + """The ID of the volume that was used to create the snapshot.""" + volume_size: int | None = ... + """The size of the volume, in GiB.""" + sse_type: str | None = ... + """Reserved for future use.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RestoreSnapshotTierInput(_SerdeShape): + """Dataclass for RestoreSnapshotTierInput structure.""" + + snapshot_id: str | None = ... + """The ID of the snapshot to restore.""" + temporary_restore_days: int | None = ... + """ + Specifies the number of days for which to temporarily restore an + archived snapshot. Required for temporary restores only. The snapshot + will be automatically re-archived after this period. + + To temporarily restore an archived snapshot, specify the number of days + and omit the **PermanentRestore** parameter or set it to `false`. + """ + permanent_restore: bool | None = ... + """ + Indicates whether to permanently restore an archived snapshot. To + permanently restore an archived snapshot, specify `true` and omit the + **RestoreSnapshotTierRequest$TemporaryRestoreDays** parameter. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class RestoreSnapshotTierInputDict(TypedDict, total=False): + """Dictionary form of `RestoreSnapshotTierInput`.""" + + snapshot_id: Required[str] + """The ID of the snapshot to restore.""" + temporary_restore_days: int | None + """ + Specifies the number of days for which to temporarily restore an + archived snapshot. Required for temporary restores only. The snapshot + will be automatically re-archived after this period. + + To temporarily restore an archived snapshot, specify the number of days + and omit the **PermanentRestore** parameter or set it to `false`. + """ + permanent_restore: bool | None + """ + Indicates whether to permanently restore an archived snapshot. To + permanently restore an archived snapshot, specify `true` and omit the + **RestoreSnapshotTierRequest$TemporaryRestoreDays** parameter. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class RestoreSnapshotTierOutput(_SerdeShape): + """Dataclass for RestoreSnapshotTierOutput structure.""" + + snapshot_id: str | None = ... + """The ID of the snapshot.""" + restore_start_time: datetime | None = ... + """The date and time when the snapshot restore process started.""" + restore_duration: int | None = ... + """ + For temporary restores only. The number of days for which the archived + snapshot is temporarily restored. + """ + is_permanent_restore: bool | None = ... + """ + Indicates whether the snapshot is permanently restored. `true` indicates + a permanent restore. `false` indicates a temporary restore. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RestoreVolumeFromRecycleBinInput(_SerdeShape): + """Dataclass for RestoreVolumeFromRecycleBinInput structure.""" + + volume_id: str | None = ... + """The ID of the volume to restore.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class RestoreVolumeFromRecycleBinInputDict(TypedDict, total=False): + """Dictionary form of `RestoreVolumeFromRecycleBinInput`.""" + + volume_id: Required[str] + """The ID of the volume to restore.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class RestoreVolumeFromRecycleBinOutput(_SerdeShape): + """Dataclass for RestoreVolumeFromRecycleBinOutput structure.""" + + return_: bool | None = ... + """Returns `true` if the request succeeds; otherwise, it returns an error.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RevokeClientVpnIngressInput(_SerdeShape): + """Dataclass for RevokeClientVpnIngressInput structure.""" + + client_vpn_endpoint_id: str | None = ... + """ + The ID of the Client VPN endpoint with which the authorization rule is + associated. + """ + target_network_cidr: str | None = ... + """ + The IPv4 address range, in CIDR notation, of the network for which + access is being removed. + """ + access_group_id: str | None = ... + """The ID of the Active Directory group for which to revoke access.""" + revoke_all_groups: bool | None = ... + """ + Indicates whether access should be revoked for all groups for a single + `TargetNetworkCidr` that earlier authorized ingress for all groups using + `AuthorizeAllGroups`. This does not impact other authorization rules + that allowed ingress to the same `TargetNetworkCidr` with a specific + `AccessGroupId`. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class RevokeClientVpnIngressInputDict(TypedDict, total=False): + """Dictionary form of `RevokeClientVpnIngressInput`.""" + + client_vpn_endpoint_id: Required[str] + """ + The ID of the Client VPN endpoint with which the authorization rule is + associated. + """ + target_network_cidr: Required[str] + """ + The IPv4 address range, in CIDR notation, of the network for which + access is being removed. + """ + access_group_id: str | None + """The ID of the Active Directory group for which to revoke access.""" + revoke_all_groups: bool | None + """ + Indicates whether access should be revoked for all groups for a single + `TargetNetworkCidr` that earlier authorized ingress for all groups using + `AuthorizeAllGroups`. This does not impact other authorization rules + that allowed ingress to the same `TargetNetworkCidr` with a specific + `AccessGroupId`. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class RevokeClientVpnIngressOutput(_SerdeShape): + """Dataclass for RevokeClientVpnIngressOutput structure.""" + + status: ClientVpnAuthorizationRuleStatus | None = ... + """The current state of the authorization rule.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RevokedSecurityGroupRule(_SerdeShape): + """ + A security group rule removed with + [RevokeSecurityGroupEgress](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RevokeSecurityGroupEgress.html) + or + [RevokeSecurityGroupIngress](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RevokeSecurityGroupIngress.html). + """ + + security_group_rule_id: str | None = ... + """A security group rule ID.""" + group_id: str | None = ... + """A security group ID.""" + is_egress: bool | None = ... + """Defines if a security group rule is an outbound rule.""" + ip_protocol: str | None = ... + """The security group rule's protocol.""" + from_port: int | None = ... + """The 'from' port number of the security group rule.""" + to_port: int | None = ... + """The 'to' port number of the security group rule.""" + cidr_ipv4: str | None = ... + """The IPv4 CIDR of the traffic source.""" + cidr_ipv6: str | None = ... + """The IPv6 CIDR of the traffic source.""" + prefix_list_id: str | None = ... + """The ID of a prefix list that's the traffic source.""" + referenced_group_id: str | None = ... + """The ID of a referenced security group.""" + description: str | None = ... + """A description of the revoked security group rule.""" + +@dataclass(kw_only=True) +class RevokeSecurityGroupEgressInput(_SerdeShape): + """Dataclass for RevokeSecurityGroupEgressInput structure.""" + + security_group_rule_ids: list[str] | None = ... + """The IDs of the security group rules.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + group_id: str | None = ... + """The ID of the security group.""" + source_security_group_name: str | None = ... + """ + Not supported. Use a set of IP permissions to specify a destination + security group. + """ + source_security_group_owner_id: str | None = ... + """ + Not supported. Use a set of IP permissions to specify a destination + security group. + """ + ip_protocol: str | None = ... + """ + Not supported. Use a set of IP permissions to specify the protocol name + or number. + """ + from_port: int | None = ... + """Not supported. Use a set of IP permissions to specify the port.""" + to_port: int | None = ... + """Not supported. Use a set of IP permissions to specify the port.""" + cidr_ip: str | None = ... + """Not supported. Use a set of IP permissions to specify the CIDR.""" + ip_permissions: list[IpPermission] | None = ... + """ + The sets of IP permissions. You can't specify a destination security + group and a CIDR IP address range in the same set of permissions. + """ + +class RevokeSecurityGroupEgressInputDict(TypedDict, total=False): + """Dictionary form of `RevokeSecurityGroupEgressInput`.""" + + security_group_rule_ids: Sequence[str] | None + """The IDs of the security group rules.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + group_id: Required[str] + """The ID of the security group.""" + source_security_group_name: str | None + """ + Not supported. Use a set of IP permissions to specify a destination + security group. + """ + source_security_group_owner_id: str | None + """ + Not supported. Use a set of IP permissions to specify a destination + security group. + """ + ip_protocol: str | None + """ + Not supported. Use a set of IP permissions to specify the protocol name + or number. + """ + from_port: int | None + """Not supported. Use a set of IP permissions to specify the port.""" + to_port: int | None + """Not supported. Use a set of IP permissions to specify the port.""" + cidr_ip: str | None + """Not supported. Use a set of IP permissions to specify the CIDR.""" + ip_permissions: Sequence[IpPermission | IpPermissionDict] | None + """ + The sets of IP permissions. You can't specify a destination security + group and a CIDR IP address range in the same set of permissions. + """ + +@dataclass(kw_only=True) +class RevokeSecurityGroupEgressOutput(_SerdeShape): + """Dataclass for RevokeSecurityGroupEgressOutput structure.""" + + return_: bool | None = ... + """Returns `true` if the request succeeds; otherwise, returns an error.""" + unknown_ip_permissions: list[IpPermission] | None = ... + """ + The outbound rules that were unknown to the service. In some cases, + `unknownIpPermissionSet` might be in a different format from the request + parameter. + """ + revoked_security_group_rules: list[RevokedSecurityGroupRule] | None = ... + """Details about the revoked security group rules.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RevokeSecurityGroupIngressInput(_SerdeShape): + """Dataclass for RevokeSecurityGroupIngressInput structure.""" + + cidr_ip: str | None = ... + """ + The CIDR IP address range. You can't specify this parameter when + specifying a source security group. + """ + from_port: int | None = ... + """ + If the protocol is TCP or UDP, this is the start of the port range. If + the protocol is ICMP, this is the ICMP type or -1 (all ICMP types). + """ + group_id: str | None = ... + """The ID of the security group.""" + group_name: str | None = ... + """ + [Default VPC] The name of the security group. You must specify either + the security group ID or the security group name in the request. For + security groups in a nondefault VPC, you must specify the security group + ID. + """ + ip_permissions: list[IpPermission] | None = ... + """ + The sets of IP permissions. You can't specify a source security group + and a CIDR IP address range in the same set of permissions. + """ + ip_protocol: str | None = ... + """ + The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol + Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + Use `-1` to specify all. + """ + source_security_group_name: str | None = ... + """ + [Default VPC] The name of the source security group. You can't + specify this parameter in combination with the following parameters: the + CIDR IP address range, the start of the port range, the IP protocol, and + the end of the port range. The source security group must be in the same + VPC. To revoke a specific rule for an IP protocol and port range, use a + set of IP permissions instead. + """ + source_security_group_owner_id: str | None = ... + """Not supported.""" + to_port: int | None = ... + """ + If the protocol is TCP or UDP, this is the end of the port range. If the + protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). + """ + security_group_rule_ids: list[str] | None = ... + """The IDs of the security group rules.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +class RevokeSecurityGroupIngressInputDict(TypedDict, total=False): + """Dictionary form of `RevokeSecurityGroupIngressInput`.""" + + cidr_ip: str | None + """ + The CIDR IP address range. You can't specify this parameter when + specifying a source security group. + """ + from_port: int | None + """ + If the protocol is TCP or UDP, this is the start of the port range. If + the protocol is ICMP, this is the ICMP type or -1 (all ICMP types). + """ + group_id: str | None + """The ID of the security group.""" + group_name: str | None + """ + [Default VPC] The name of the security group. You must specify either + the security group ID or the security group name in the request. For + security groups in a nondefault VPC, you must specify the security group + ID. + """ + ip_permissions: Sequence[IpPermission | IpPermissionDict] | None + """ + The sets of IP permissions. You can't specify a source security group + and a CIDR IP address range in the same set of permissions. + """ + ip_protocol: str | None + """ + The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol + Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + Use `-1` to specify all. + """ + source_security_group_name: str | None + """ + [Default VPC] The name of the source security group. You can't + specify this parameter in combination with the following parameters: the + CIDR IP address range, the start of the port range, the IP protocol, and + the end of the port range. The source security group must be in the same + VPC. To revoke a specific rule for an IP protocol and port range, use a + set of IP permissions instead. + """ + source_security_group_owner_id: str | None + """Not supported.""" + to_port: int | None + """ + If the protocol is TCP or UDP, this is the end of the port range. If the + protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). + """ + security_group_rule_ids: Sequence[str] | None + """The IDs of the security group rules.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + +@dataclass(kw_only=True) +class RevokeSecurityGroupIngressOutput(_SerdeShape): + """Dataclass for RevokeSecurityGroupIngressOutput structure.""" + + return_: bool | None = ... + """Returns `true` if the request succeeds; otherwise, returns an error.""" + unknown_ip_permissions: list[IpPermission] | None = ... + """ + The inbound rules that were unknown to the service. In some cases, + `unknownIpPermissionSet` might be in a different format from the request + parameter. + """ + revoked_security_group_rules: list[RevokedSecurityGroupRule] | None = ... + """Details about the revoked security group rules.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class RIProductDescription(UnknownEnumMixin, StrEnum): + LINUX_UNIX = "Linux/UNIX" + LINUX_UNIX_AMAZON_VPC_ = "Linux/UNIX (Amazon VPC)" + WINDOWS = "Windows" + WINDOWS_AMAZON_VPC_ = "Windows (Amazon VPC)" + +class Rir(UnknownEnumMixin, StrEnum): + """The Regional Internet Registry (RIR).""" + + RIPE = "ripe" + APNIC = "apnic" + ARIN = "arin" + LACNIC = "lacnic" + NICBR = "nicbr" + +class RootDeviceType(UnknownEnumMixin, StrEnum): + EBS = "ebs" + INSTANCE_STORE = "instance-store" + +@dataclass(kw_only=True) +class Route(_SerdeShape): + """Describes a route in a route table.""" + + destination_cidr_block: str | None = ... + """The IPv4 CIDR block used for the destination match.""" + destination_ipv6_cidr_block: str | None = ... + """The IPv6 CIDR block used for the destination match.""" + destination_prefix_list_id: str | None = ... + """The prefix of the Amazon Web Services service.""" + egress_only_internet_gateway_id: str | None = ... + """The ID of the egress-only internet gateway.""" + gateway_id: str | None = ... + """The ID of a gateway attached to your VPC.""" + instance_id: str | None = ... + """The ID of a NAT instance in your VPC.""" + instance_owner_id: str | None = ... + """The ID of Amazon Web Services account that owns the instance.""" + nat_gateway_id: str | None = ... + """The ID of a NAT gateway.""" + transit_gateway_id: str | None = ... + """The ID of a transit gateway.""" + local_gateway_id: str | None = ... + """The ID of the local gateway.""" + carrier_gateway_id: str | None = ... + """The ID of the carrier gateway.""" + network_interface_id: str | None = ... + """The ID of the network interface.""" + origin: str | None = ... + """ + Describes how the route was created. + + - `CreateRouteTable` - The route was automatically created when the + route table was created. + + - `CreateRoute` - The route was manually added to the route table. + + - `EnableVgwRoutePropagation` - The route was propagated by route + propagation. + + - `Advertisement` - The route was created dynamically by Amazon VPC + Route Server. + """ + state: str | None = ... + """ + The state of the route. The `blackhole` state indicates that the + route's target isn't available (for example, the specified gateway + isn't attached to the VPC, or the specified NAT instance has been + terminated). + """ + vpc_peering_connection_id: str | None = ... + """The ID of a VPC peering connection.""" + core_network_arn: str | None = ... + """The Amazon Resource Name (ARN) of the core network.""" + odb_network_arn: str | None = ... + """The Amazon Resource Name (ARN) of the ODB network.""" + ip_address: str | None = ... + """ + The next hop IP address for routes propagated by VPC Route Server into + VPC route tables. + """ + +class RouteOrigin(UnknownEnumMixin, StrEnum): + CREATE_ROUTE_TABLE = "CreateRouteTable" + CREATE_ROUTE = "CreateRoute" + ENABLE_VGW_ROUTE_PROPAGATION = "EnableVgwRoutePropagation" + ADVERTISEMENT = "Advertisement" + +@dataclass(kw_only=True) +class RouteServer(_SerdeShape): + """ + Describes a route server and its configuration. + + Amazon VPC Route Server simplifies routing for traffic between workloads + that are deployed within a VPC and its internet gateways. With this + feature, VPC Route Server dynamically updates VPC and internet gateway + route tables with your preferred IPv4 or IPv6 routes to achieve routing + fault tolerance for those workloads. This enables you to automatically + reroute traffic within a VPC, which increases the manageability of VPC + routing and interoperability with third-party workloads. + + Route server supports the follow route table types: + + - VPC route tables not associated with subnets + + - Subnet route tables + + - Internet gateway route tables + + Route server does not support route tables associated with virtual + private gateways. To propagate routes into a transit gateway route + table, use [Transit Gateway + Connect](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html). + """ + + route_server_id: str | None = ... + """The unique identifier of the route server.""" + amazon_side_asn: int | None = ... + """ + The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the + appliance. Valid values are from 1 to 4294967295. We recommend using a + private ASN in the 64512--65534 (16-bit ASN) or 4200000000--4294967294 + (32-bit ASN) range. + """ + state: str | None = ... + """The current state of the route server.""" + tags: list[Tag] | None = ... + """Any tags assigned to the route server.""" + persist_routes_state: str | None = ... + """The current state of route persistence for the route server.""" + persist_routes_duration: int | None = ... + """ + The number of minutes a route server will wait after BGP is + re-established to unpersist the routes in the FIB and RIB. Value must be + in the range of 1-5. The default value is 1. Only valid if + `persistRoutesState` is 'enabled'. + + If you set the duration to 1 minute, then when your network appliance + re-establishes BGP with route server, it has 1 minute to relearn it's + adjacent network and advertise those routes to route server before route + server resumes normal functionality. In most cases, 1 minute is probably + sufficient. If, however, you have concerns that your BGP network may not + be capable of fully re-establishing and re-learning everything in 1 + minute, you can increase the duration up to 5 minutes. + """ + sns_notifications_enabled: bool | None = ... + """ + Indicates whether SNS notifications are enabled for the route server. + Enabling SNS notifications persists BGP status changes to an SNS topic + provisioned by Amazon Web Services. + """ + sns_topic_arn: str | None = ... + """The ARN of the SNS topic where notifications are published.""" + +@dataclass(kw_only=True) +class RouteServerAssociation(_SerdeShape): + """ + Describes the association between a route server and a VPC. + + A route server association is the connection established between a route + server and a VPC. + """ + + route_server_id: str | None = ... + """The ID of the associated route server.""" + vpc_id: str | None = ... + """The ID of the associated VPC.""" + state: str | None = ... + """The current state of the association.""" + +class RouteServerAssociationState(UnknownEnumMixin, StrEnum): + ASSOCIATING = "associating" + ASSOCIATED = "associated" + DISASSOCIATING = "disassociating" + +class RouteServerBfdState(UnknownEnumMixin, StrEnum): + UP = "up" + DOWN = "down" + +@dataclass(kw_only=True) +class RouteServerBfdStatus(_SerdeShape): + """ + The current status of Bidirectional Forwarding Detection (BFD) for a BGP + session. + """ + + status: str | None = ... + """The operational status of the BFD session.""" + +@dataclass(kw_only=True) +class RouteServerBgpOptions(_SerdeShape): + """The BGP configuration options for a route server peer.""" + + peer_asn: int | None = ... + """ + The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the + appliance. Valid values are from 1 to 4294967295. We recommend using a + private ASN in the 64512--65534 (16-bit ASN) or 4200000000--4294967294 + (32-bit ASN) range. + """ + peer_liveness_detection: str | None = ... + """ + The liveness detection protocol used for the BGP peer. + + The requested liveness detection protocol for the BGP peer. + + - `bgp-keepalive`: The standard BGP keep alive mechanism + ([RFC4271](https://www.rfc-editor.org/rfc/rfc4271#page-21)) that is + stable but may take longer to fail-over in cases of network impact or + router failure. + + - `bfd`: An additional Bidirectional Forwarding Detection (BFD) protocol + ([RFC5880](https://www.rfc-editor.org/rfc/rfc5880)) that enables fast + failover by using more sensitive liveness detection. + + Defaults to `bgp-keepalive`. + """ + +@dataclass(kw_only=True) +class RouteServerBgpOptionsRequest(_SerdeShape): + """The BGP configuration options requested for a route server peer.""" + + peer_asn: int | None = ... + """ + The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the + appliance. Valid values are from 1 to 4294967295. We recommend using a + private ASN in the 64512--65534 (16-bit ASN) or 4200000000--4294967294 + (32-bit ASN) range. + """ + peer_liveness_detection: str | None = ... + """ + The requested liveness detection protocol for the BGP peer. + + - `bgp-keepalive`: The standard BGP keep alive mechanism + ([RFC4271](https://www.rfc-editor.org/rfc/rfc4271#page-21)) that is + stable but may take longer to fail-over in cases of network impact or + router failure. + + - `bfd`: An additional Bidirectional Forwarding Detection (BFD) protocol + ([RFC5880](https://www.rfc-editor.org/rfc/rfc5880)) that enables fast + failover by using more sensitive liveness detection. + + Defaults to `bgp-keepalive`. + """ + +class RouteServerBgpOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `RouteServerBgpOptionsRequest`.""" + + peer_asn: Required[int] + """ + The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the + appliance. Valid values are from 1 to 4294967295. We recommend using a + private ASN in the 64512--65534 (16-bit ASN) or 4200000000--4294967294 + (32-bit ASN) range. + """ + peer_liveness_detection: str | None + """ + The requested liveness detection protocol for the BGP peer. + + - `bgp-keepalive`: The standard BGP keep alive mechanism + ([RFC4271](https://www.rfc-editor.org/rfc/rfc4271#page-21)) that is + stable but may take longer to fail-over in cases of network impact or + router failure. + + - `bfd`: An additional Bidirectional Forwarding Detection (BFD) protocol + ([RFC5880](https://www.rfc-editor.org/rfc/rfc5880)) that enables fast + failover by using more sensitive liveness detection. + + Defaults to `bgp-keepalive`. + """ + +class RouteServerBgpState(UnknownEnumMixin, StrEnum): + UP = "up" + DOWN = "down" + +@dataclass(kw_only=True) +class RouteServerBgpStatus(_SerdeShape): + """The current status of a BGP session.""" + + status: str | None = ... + """ + The operational status of the BGP session. The status enables you to + monitor session liveness if you lack monitoring on your + router/appliance. + """ + +@dataclass(kw_only=True) +class RouteServerEndpoint(_SerdeShape): + """ + Describes a route server endpoint and its properties. + + A route server endpoint is an Amazon Web Services-managed component + inside a subnet that facilitates [BGP (Border Gateway + Protocol)](https://en.wikipedia.org/wiki/Border_Gateway_Protocol) + connections between your route server and your BGP peers. + """ + + route_server_id: str | None = ... + """The ID of the route server associated with this endpoint.""" + route_server_endpoint_id: str | None = ... + """The unique identifier of the route server endpoint.""" + vpc_id: str | None = ... + """The ID of the VPC containing the endpoint.""" + subnet_id: str | None = ... + """The ID of the subnet to place the route server endpoint into.""" + eni_id: str | None = ... + """The ID of the Elastic network interface for the endpoint.""" + eni_address: str | None = ... + """The IP address of the Elastic network interface for the endpoint.""" + state: str | None = ... + """The current state of the route server endpoint.""" + failure_reason: str | None = ... + """The reason for any failure in endpoint creation or operation.""" + tags: list[Tag] | None = ... + """Any tags assigned to the route server endpoint.""" + +class RouteServerEndpointState(UnknownEnumMixin, StrEnum): + PENDING = "pending" + AVAILABLE = "available" + DELETING = "deleting" + DELETED = "deleted" + FAILING = "failing" + FAILED = "failed" + DELETE_FAILED = "delete-failed" + +@dataclass(kw_only=True) +class RouteServerPeer(_SerdeShape): + """ + Describes a BGP peer configuration for a route server endpoint. + + A route server peer is a session between a route server endpoint and the + device deployed in Amazon Web Services (such as a firewall appliance or + other network security function running on an EC2 instance). The device + must meet these requirements: + + - Have an elastic network interface in the VPC + + - Support BGP (Border Gateway Protocol) + + - Can initiate BGP sessions + """ + + route_server_peer_id: str | None = ... + """The unique identifier of the route server peer.""" + route_server_endpoint_id: str | None = ... + """The ID of the route server endpoint associated with this peer.""" + route_server_id: str | None = ... + """The ID of the route server associated with this peer.""" + vpc_id: str | None = ... + """The ID of the VPC containing the route server peer.""" + subnet_id: str | None = ... + """The ID of the subnet containing the route server peer.""" + state: str | None = ... + """The current state of the route server peer.""" + failure_reason: str | None = ... + """The reason for any failure in peer creation or operation.""" + endpoint_eni_id: str | None = ... + """The ID of the Elastic network interface for the route server endpoint.""" + endpoint_eni_address: str | None = ... + """ + The IP address of the Elastic network interface for the route server + endpoint. + """ + peer_address: str | None = ... + """The IPv4 address of the peer device.""" + bgp_options: RouteServerBgpOptions | None = ... + """ + The BGP configuration options for this peer, including ASN (Autonomous + System Number) and BFD (Bidrectional Forwarding Detection) settings. + """ + bgp_status: RouteServerBgpStatus | None = ... + """The current status of the BGP session with this peer.""" + bfd_status: RouteServerBfdStatus | None = ... + """The current status of the BFD session with this peer.""" + tags: list[Tag] | None = ... + """Any tags assigned to the route server peer.""" + +class RouteServerPeerLivenessMode(UnknownEnumMixin, StrEnum): + BFD = "bfd" + BGP_KEEPALIVE = "bgp-keepalive" + +class RouteServerPeerState(UnknownEnumMixin, StrEnum): + PENDING = "pending" + AVAILABLE = "available" + DELETING = "deleting" + DELETED = "deleted" + FAILING = "failing" + FAILED = "failed" + +class RouteServerPersistRoutesAction(UnknownEnumMixin, StrEnum): + ENABLE = "enable" + DISABLE = "disable" + RESET = "reset" + +class RouteServerPersistRoutesState(UnknownEnumMixin, StrEnum): + ENABLING = "enabling" + ENABLED = "enabled" + RESETTING = "resetting" + DISABLING = "disabling" + DISABLED = "disabled" + MODIFYING = "modifying" + +@dataclass(kw_only=True) +class RouteServerPropagation(_SerdeShape): + """ + Describes the route propagation configuration between a route server and + a route table. + + When enabled, route server propagation installs the routes in the FIB on + the route table you've specified. Route server supports IPv4 and IPv6 + route propagation. + """ + + route_server_id: str | None = ... + """The ID of the route server configured for route propagation.""" + route_table_id: str | None = ... + """The ID of the route table configured for route server propagation.""" + state: str | None = ... + """The current state of route propagation.""" + +class RouteServerPropagationState(UnknownEnumMixin, StrEnum): + PENDING = "pending" + AVAILABLE = "available" + DELETING = "deleting" + +@dataclass(kw_only=True) +class RouteServerRoute(_SerdeShape): + """Describes a route in the route server's routing database.""" + + route_server_endpoint_id: str | None = ... + """The ID of the route server endpoint that received this route.""" + route_server_peer_id: str | None = ... + """The ID of the route server peer that advertised this route.""" + route_installation_details: list[RouteServerRouteInstallationDetail] | None = ... + """Details about the installation status of this route in route tables.""" + route_status: str | None = ... + """ + The current status of the route in the routing database. Values are + `in-rib` or `in-fib` depending on if the routes are in the RIB or the + FIB database. + + The [Routing Information Base + (RIB)](https://en.wikipedia.org/wiki/Routing_table) serves as a database + that stores all the routing information and network topology data + collected by a router or routing system, such as routes learned from BGP + peers. The RIB is constantly updated as new routing information is + received or existing routes change. This ensures that the route server + always has the most current view of the network topology and can make + optimal routing decisions. + + The [Forwarding Information Base + (FIB)](https://en.wikipedia.org/wiki/Forwarding_information_base) serves + as a forwarding table for what route server has determined are the + best-path routes in the RIB after evaluating all available routing + information and policies. The FIB routes are installed on the route + tables. The FIB is recomputed whenever there are changes to the RIB. + """ + prefix: str | None = ... + """The destination CIDR block of the route.""" + as_paths: list[str] | None = ... + """The AS path attributes of the BGP route.""" + med: int | None = ... + """The Multi-Exit Discriminator (MED) value of the BGP route.""" + next_hop_ip: str | None = ... + """The IP address for the next hop.""" + +@dataclass(kw_only=True) +class RouteServerRouteInstallationDetail(_SerdeShape): + """Describes the installation status of a route in a route table.""" + + route_table_id: str | None = ... + """The ID of the route table where the route is being installed.""" + route_installation_status: str | None = ... + """The current installation status of the route in the route table.""" + route_installation_status_reason: str | None = ... + """The reason for the current installation status of the route.""" + +class RouteServerRouteInstallationStatus(UnknownEnumMixin, StrEnum): + INSTALLED = "installed" + REJECTED = "rejected" + +class RouteServerRouteStatus(UnknownEnumMixin, StrEnum): + IN_RIB = "in-rib" + IN_FIB = "in-fib" + +class RouteServerState(UnknownEnumMixin, StrEnum): + PENDING = "pending" + AVAILABLE = "available" + MODIFYING = "modifying" + DELETING = "deleting" + DELETED = "deleted" + +class RouteState(UnknownEnumMixin, StrEnum): + ACTIVE = "active" + BLACKHOLE = "blackhole" + FILTERED = "filtered" + +@dataclass(kw_only=True) +class RouteTable(_SerdeShape): + """Describes a route table.""" + + associations: list[RouteTableAssociation] | None = ... + """The associations between the route table and your subnets or gateways.""" + propagating_vgws: list[PropagatingVgw] | None = ... + """Any virtual private gateway (VGW) propagating routes.""" + route_table_id: str | None = ... + """The ID of the route table.""" + routes: list[Route] | None = ... + """The routes in the route table.""" + tags: list[Tag] | None = ... + """Any tags assigned to the route table.""" + vpc_id: str | None = ... + """The ID of the VPC.""" + owner_id: str | None = ... + """The ID of the Amazon Web Services account that owns the route table.""" + +@dataclass(kw_only=True) +class RouteTableAssociation(_SerdeShape): + """Describes an association between a route table and a subnet or gateway.""" + + main: bool | None = ... + """Indicates whether this is the main route table.""" + route_table_association_id: str | None = ... + """The ID of the association.""" + route_table_id: str | None = ... + """The ID of the route table.""" + subnet_id: str | None = ... + """ + The ID of the subnet. A subnet ID is not returned for an implicit + association. + """ + gateway_id: str | None = ... + """The ID of the internet gateway or virtual private gateway.""" + public_ipv4_pool: str | None = ... + """ + The ID of a public IPv4 pool. A public IPv4 pool is a pool of IPv4 + addresses that you've brought to Amazon Web Services with BYOIP. + """ + association_state: RouteTableAssociationState | None = ... + """The state of the association.""" + +@dataclass(kw_only=True) +class RouteTableAssociationState(_SerdeShape): + """ + Describes the state of an association between a route table and a subnet + or gateway. + """ + + state: str | None = ... + """The state of the association.""" + status_message: str | None = ... + """The status message, if applicable.""" + +class RouteTableAssociationStateCode(UnknownEnumMixin, StrEnum): + ASSOCIATING = "associating" + ASSOCIATED = "associated" + DISASSOCIATING = "disassociating" + DISASSOCIATED = "disassociated" + FAILED = "failed" + +class RuleAction(UnknownEnumMixin, StrEnum): + ALLOW = "allow" + DENY = "deny" + +@dataclass(kw_only=True) +class RuleGroupRuleOptionsPair(_SerdeShape): + """Describes the rule options for a stateful rule group.""" + + rule_group_arn: str | None = ... + """The ARN of the rule group.""" + rule_options: list[RuleOption] | None = ... + """The rule options.""" + +@dataclass(kw_only=True) +class RuleGroupTypePair(_SerdeShape): + """Describes the type of a stateful rule group.""" + + rule_group_arn: str | None = ... + """The ARN of the rule group.""" + rule_group_type: str | None = ... + """ + The rule group type. The possible values are `Domain List` and + `Suricata`. + """ + +@dataclass(kw_only=True) +class RuleOption(_SerdeShape): + """Describes additional settings for a stateful rule.""" + + keyword: str | None = ... + """The Suricata keyword.""" + settings: list[str] | None = ... + """The settings for the keyword.""" + +@dataclass(kw_only=True) +class RunInstancesInput(_SerdeShape): + """Dataclass for RunInstancesInput structure.""" + + block_device_mappings: list[BlockDeviceMapping] | None = ... + """ + The block device mapping, which defines the EBS volumes and instance + store volumes to attach to the instance at launch. For more information, + see [Block device + mappings](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) + in the *Amazon EC2 User Guide*. + """ + image_id: str | None = ... + """ + The ID of the AMI. An AMI ID is required to launch an instance and must + be specified here or in a launch template. + """ + instance_type: str | None = ... + """ + The instance type. For more information, see [Amazon EC2 Instance Types + Guide](https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-types.html). + """ + ipv6_address_count: int | None = ... + """ + The number of IPv6 addresses to associate with the primary network + interface. Amazon EC2 chooses the IPv6 addresses from the range of your + subnet. You cannot specify this option and the option to assign specific + IPv6 addresses in the same request. You can specify this option if + you've specified a minimum number of instances to launch. + + You cannot specify this option and the network interfaces option in the + same request. + """ + ipv6_addresses: list[InstanceIpv6Address] | None = ... + """ + The IPv6 addresses from the range of the subnet to associate with the + primary network interface. You cannot specify this option and the option + to assign a number of IPv6 addresses in the same request. You cannot + specify this option if you've specified a minimum number of instances + to launch. + + You cannot specify this option and the network interfaces option in the + same request. + """ + kernel_id: str | None = ... + """ + The ID of the kernel. + + Warning: + We recommend that you use PV-GRUB instead of kernels and RAM disks. For + more information, see + [PV-GRUB](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + in the *Amazon EC2 User Guide*. + """ + key_name: str | None = ... + """ + The name of the key pair. For more information, see [Create a key pair + for your EC2 + instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html). + + Warning: + If you do not specify a key pair, you can't connect to the instance + unless you choose an AMI that is configured to allow users another way + to log in. + """ + max_count: int | None = ... + """ + The maximum number of instances to launch. If you specify a value that + is more capacity than Amazon EC2 can launch in the target Availability + Zone, Amazon EC2 launches the largest possible number of instances above + the specified minimum count. + + Constraints: Between 1 and the quota for the specified instance type for + your account for this Region. For more information, see [Amazon EC2 + instance type + quotas](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html). + """ + min_count: int | None = ... + """ + The minimum number of instances to launch. If you specify a value that + is more capacity than Amazon EC2 can provide in the target Availability + Zone, Amazon EC2 does not launch any instances. + + Constraints: Between 1 and the quota for the specified instance type for + your account for this Region. For more information, see [Amazon EC2 + instance type + quotas](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html). + """ + monitoring: RunInstancesMonitoringEnabled | None = ... + """Specifies whether detailed monitoring is enabled for the instance.""" + placement: Placement | None = ... + """The placement for the instance.""" + ramdisk_id: str | None = ... + """ + The ID of the RAM disk to select. Some kernels require additional + drivers at launch. Check the kernel requirements for information about + whether you need to specify a RAM disk. To find kernel requirements, go + to the Amazon Web Services Resource Center and search for the kernel ID. + + Warning: + We recommend that you use PV-GRUB instead of kernels and RAM disks. For + more information, see + [PV-GRUB](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) + in the *Amazon EC2 User Guide*. + """ + security_group_ids: list[str] | None = ... + """ + The IDs of the security groups. + + If you specify a network interface, you must specify any security groups + as part of the network interface instead of using this parameter. + """ + security_groups: list[str] | None = ... + """ + [Default VPC] The names of the security groups. + + If you specify a network interface, you must specify any security groups + as part of the network interface instead of using this parameter. + + Default: Amazon EC2 uses the default security group. + """ + subnet_id: str | None = ... + """ + The ID of the subnet to launch the instance into. + + If you specify a network interface, you must specify any subnets as part + of the network interface instead of using this parameter. + """ + user_data: str | None = ... + """ + The user data to make available to the instance. User data must be + base64-encoded. Depending on the tool or SDK that you're using, the + base64-encoding might be performed for you. For more information, see + [Run commands at launch using instance user + data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html). + """ + elastic_gpu_specification: list[ElasticGpuSpecification] | None = ... + """ + An elastic GPU to associate with the instance. + + Note: + Amazon Elastic Graphics reached end of life on January 8, 2024. + """ + elastic_inference_accelerators: list[ElasticInferenceAccelerator] | None = ... + """ + An elastic inference accelerator to associate with the instance. + + Note: + Amazon Elastic Inference is no longer available. + """ + tag_specifications: list[TagSpecification] | None = ... + """ + The tags to apply to the resources that are created during instance + launch. + + You can specify tags for the following resources only: + + - Instances + + - Volumes + + - Spot Instance requests + + - Network interfaces + + To tag a resource after it has been created, see + [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). + """ + launch_template: LaunchTemplateSpecification | None = ... + """ + The launch template. Any additional parameters that you specify for the + new instance overwrite the corresponding parameters included in the + launch template. + """ + instance_market_options: InstanceMarketOptionsRequest | None = ... + """ + The market (purchasing) option for the instances. + + For RunInstances, persistent Spot Instance requests are only supported + when **InstanceInterruptionBehavior** is set to either `hibernate` or + `stop`. + """ + credit_specification: CreditSpecificationRequest | None = ... + """ + The credit option for CPU usage of the burstable performance instance. + Valid values are `standard` and `unlimited`. To change this attribute + after launch, use + [ModifyInstanceCreditSpecification](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceCreditSpecification.html). + For more information, see [Burstable performance + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) + in the *Amazon EC2 User Guide*. + + Default: `standard` (T2 instances) or `unlimited` (T3/T3a/T4g instances) + + For T3 instances with `host` tenancy, only `standard` is supported. + """ + cpu_options: CpuOptionsRequest | None = ... + """ + The CPU options for the instance. For more information, see [Optimize + CPU + options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) + in the *Amazon EC2 User Guide*. + """ + capacity_reservation_specification: CapacityReservationSpecification | None = ... + """ + Information about the Capacity Reservation targeting option. If you do + not specify this parameter, the instance's Capacity Reservation + preference defaults to `open`, which enables it to run in any open + Capacity Reservation that has matching attributes (instance type, + platform, Availability Zone, and tenancy). + """ + hibernation_options: HibernationOptionsRequest | None = ... + """ + Indicates whether an instance is enabled for hibernation. This parameter + is valid only if the instance meets the [hibernation + prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html). + For more information, see [Hibernate your Amazon EC2 + instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) + in the *Amazon EC2 User Guide*. + + You can't enable hibernation and Amazon Web Services Nitro Enclaves on + the same instance. + """ + license_specifications: list[LicenseConfigurationRequest] | None = ... + """The license configurations.""" + metadata_options: InstanceMetadataOptionsRequest | None = ... + """ + The metadata options for the instance. For more information, see + [Configure the Instance Metadata Service + options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html). + """ + enclave_options: EnclaveOptionsRequest | None = ... + """ + Indicates whether the instance is enabled for Amazon Web Services Nitro + Enclaves. For more information, see [Amazon Web Services Nitro Enclaves + User Guide](https://docs.aws.amazon.com/enclaves/latest/user/). - main: bool | None = ... - """Indicates whether this is the main route table.""" - route_table_association_id: str | None = ... - """The ID of the association.""" - route_table_id: str | None = ... - """The ID of the route table.""" - subnet_id: str | None = ... + You can't enable Amazon Web Services Nitro Enclaves and hibernation on + the same instance. """ - The ID of the subnet. A subnet ID is not returned for an implicit - association. + private_dns_name_options: PrivateDnsNameOptionsRequest | None = ... """ - gateway_id: str | None = ... - """The ID of the internet gateway or virtual private gateway.""" - public_ipv4_pool: str | None = ... + The options for the instance hostname. The default values are inherited + from the subnet. Applies only if creating a network interface, not + attaching an existing one. """ - The ID of a public IPv4 pool. A public IPv4 pool is a pool of IPv4 - addresses that you've brought to Amazon Web Services with BYOIP. + maintenance_options: InstanceMaintenanceOptionsRequest | None = ... + """The maintenance and recovery options for the instance.""" + disable_api_stop: bool | None = ... """ - association_state: RouteTableAssociationState | None = ... - """The state of the association.""" - -@dataclass(kw_only=True) -class RouteTableAssociationState(_SerdeShape): + Indicates whether an instance is enabled for stop protection. For more + information, see [Enable stop protection for your EC2 + instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html). """ - Describes the state of an association between a route table and a subnet - or gateway. + enable_primary_ipv6: bool | None = ... """ + If you're launching an instance into a dual-stack or IPv6-only subnet, + you can enable assigning a primary IPv6 address. A primary IPv6 address + is an IPv6 GUA address associated with an ENI that you have enabled to + use a primary IPv6 address. Use this option if an instance relies on its + IPv6 address not changing. When you launch the instance, Amazon Web + Services will automatically assign an IPv6 address associated with the + ENI attached to your instance to be the primary IPv6 address. Once you + enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. + When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 + GUA will be made the primary IPv6 address until the instance is + terminated or the network interface is detached. If you have multiple + IPv6 addresses associated with an ENI attached to your instance and you + enable a primary IPv6 address, the first IPv6 GUA address associated + with the ENI becomes the primary IPv6 address. + """ + network_performance_options: InstanceNetworkPerformanceOptionsRequest | None = ... + """Contains settings for the network performance options for the instance.""" + operator: OperatorRequest | None = ... + """Reserved for internal use.""" + secondary_interfaces: ( + list[InstanceSecondaryInterfaceSpecificationRequest] | None + ) = ... + """The secondary interfaces to associate with the instance.""" + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + disable_api_termination: bool | None = ... + """ + Indicates whether termination protection is enabled for the instance. + The default is `false`, which means that you can terminate the instance + using the Amazon EC2 console, command line tools, or API. You can enable + termination protection when you launch an instance, while the instance + is running, or while the instance is stopped. + """ + instance_initiated_shutdown_behavior: str | None = ... + """ + Indicates whether an instance stops or terminates when you initiate + shutdown from the instance (using the operating system command for + system shutdown). - state: str | None = ... - """The state of the association.""" - status_message: str | None = ... - """The status message, if applicable.""" - -class RouteTableAssociationStateCode(UnknownEnumMixin, StrEnum): - ASSOCIATING = "associating" - ASSOCIATED = "associated" - DISASSOCIATING = "disassociating" - DISASSOCIATED = "disassociated" - FAILED = "failed" + Default: `stop` + """ + private_ip_address: str | None = ... + """ + The primary IPv4 address. You must specify a value from the IPv4 address + range of the subnet. -class RuleAction(UnknownEnumMixin, StrEnum): - ALLOW = "allow" - DENY = "deny" + Only one private IP address can be designated as primary. You can't + specify this option if you've specified the option to designate a + private IP address as the primary IP address in a network interface + specification. You cannot specify this option if you're launching more + than one instance in the request. -@dataclass(kw_only=True) -class RuleGroupRuleOptionsPair(_SerdeShape): - """Describes the rule options for a stateful rule group.""" + You cannot specify this option and the network interfaces option in the + same request. + """ + client_token: str | None = ... + """ + Unique, case-sensitive identifier you provide to ensure the idempotency + of the request. If you do not specify a client token, a randomly + generated token is used for the request to ensure idempotency. - rule_group_arn: str | None = ... - """The ARN of the rule group.""" - rule_options: list[RuleOption] | None = ... - """The rule options.""" + For more information, see [Ensuring idempotency in Amazon EC2 API + requests](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). -@dataclass(kw_only=True) -class RuleGroupTypePair(_SerdeShape): - """Describes the type of a stateful rule group.""" + Constraints: Maximum 64 ASCII characters - rule_group_arn: str | None = ... - """The ARN of the rule group.""" - rule_group_type: str | None = ... + This field is autopopulated if not provided. """ - The rule group type. The possible values are `Domain List` and - `Suricata`. + additional_info: str | None = ... + """Reserved.""" + network_interfaces: list[InstanceNetworkInterfaceSpecification] | None = ... + """The network interfaces to associate with the instance.""" + iam_instance_profile: IamInstanceProfileSpecification | None = ... + """The name or Amazon Resource Name (ARN) of an IAM instance profile.""" + ebs_optimized: bool | None = ... """ + Indicates whether the instance is optimized for Amazon EBS I/O. This + optimization provides dedicated throughput to Amazon EBS and an + optimized configuration stack to provide optimal Amazon EBS I/O + performance. This optimization isn't available with all instance types. + Additional usage charges apply when using an EBS-optimized instance. -@dataclass(kw_only=True) -class RuleOption(_SerdeShape): - """Describes additional settings for a stateful rule.""" - - keyword: str | None = ... - """The Suricata keyword.""" - settings: list[str] | None = ... - """The settings for the keyword.""" + Default: `false` + """ -@dataclass(kw_only=True) -class RunInstancesInput(_SerdeShape): - """Dataclass for RunInstancesInput structure.""" +class RunInstancesInputDict(TypedDict, total=False): + """Dictionary form of `RunInstancesInput`.""" - block_device_mappings: list[BlockDeviceMapping] | None = ... + block_device_mappings: Sequence[BlockDeviceMapping | BlockDeviceMappingDict] | None """ The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at launch. For more information, @@ -3818,17 +5927,17 @@ class RunInstancesInput(_SerdeShape): mappings](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) in the *Amazon EC2 User Guide*. """ - image_id: str | None = ... + image_id: str | None """ The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template. """ - instance_type: str | None = ... + instance_type: str | None """ The instance type. For more information, see [Amazon EC2 Instance Types Guide](https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-types.html). """ - ipv6_address_count: int | None = ... + ipv6_address_count: int | None """ The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your @@ -3839,7 +5948,7 @@ class RunInstancesInput(_SerdeShape): You cannot specify this option and the network interfaces option in the same request. """ - ipv6_addresses: list[InstanceIpv6Address] | None = ... + ipv6_addresses: Sequence[InstanceIpv6Address | InstanceIpv6AddressDict] | None """ The IPv6 addresses from the range of the subnet to associate with the primary network interface. You cannot specify this option and the option @@ -3850,7 +5959,7 @@ class RunInstancesInput(_SerdeShape): You cannot specify this option and the network interfaces option in the same request. """ - kernel_id: str | None = ... + kernel_id: str | None """ The ID of the kernel. @@ -3860,7 +5969,7 @@ class RunInstancesInput(_SerdeShape): [PV-GRUB](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) in the *Amazon EC2 User Guide*. """ - key_name: str | None = ... + key_name: str | None """ The name of the key pair. For more information, see [Create a key pair for your EC2 @@ -3871,7 +5980,7 @@ class RunInstancesInput(_SerdeShape): unless you choose an AMI that is configured to allow users another way to log in. """ - max_count: int | None = ... + max_count: Required[int] """ The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can launch in the target Availability @@ -3883,7 +5992,7 @@ class RunInstancesInput(_SerdeShape): instance type quotas](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html). """ - min_count: int | None = ... + min_count: Required[int] """ The minimum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can provide in the target Availability @@ -3894,11 +6003,11 @@ class RunInstancesInput(_SerdeShape): instance type quotas](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html). """ - monitoring: RunInstancesMonitoringEnabled | None = ... + monitoring: RunInstancesMonitoringEnabled | RunInstancesMonitoringEnabledDict | None """Specifies whether detailed monitoring is enabled for the instance.""" - placement: Placement | None = ... + placement: Placement | PlacementDict | None """The placement for the instance.""" - ramdisk_id: str | None = ... + ramdisk_id: str | None """ The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information about @@ -3911,14 +6020,14 @@ class RunInstancesInput(_SerdeShape): [PV-GRUB](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) in the *Amazon EC2 User Guide*. """ - security_group_ids: list[str] | None = ... + security_group_ids: Sequence[str] | None """ The IDs of the security groups. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter. """ - security_groups: list[str] | None = ... + security_groups: Sequence[str] | None """ [Default VPC] The names of the security groups. @@ -3927,14 +6036,14 @@ class RunInstancesInput(_SerdeShape): Default: Amazon EC2 uses the default security group. """ - subnet_id: str | None = ... + subnet_id: str | None """ The ID of the subnet to launch the instance into. If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter. """ - user_data: str | None = ... + user_data: str | None """ The user data to make available to the instance. User data must be base64-encoded. Depending on the tool or SDK that you're using, the @@ -3942,21 +6051,25 @@ class RunInstancesInput(_SerdeShape): [Run commands at launch using instance user data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html). """ - elastic_gpu_specification: list[ElasticGpuSpecification] | None = ... + elastic_gpu_specification: ( + Sequence[ElasticGpuSpecification | ElasticGpuSpecificationDict] | None + ) """ An elastic GPU to associate with the instance. Note: Amazon Elastic Graphics reached end of life on January 8, 2024. """ - elastic_inference_accelerators: list[ElasticInferenceAccelerator] | None = ... + elastic_inference_accelerators: ( + Sequence[ElasticInferenceAccelerator | ElasticInferenceAcceleratorDict] | None + ) """ An elastic inference accelerator to associate with the instance. Note: Amazon Elastic Inference is no longer available. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ The tags to apply to the resources that are created during instance launch. @@ -3974,13 +6087,17 @@ class RunInstancesInput(_SerdeShape): To tag a resource after it has been created, see [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). """ - launch_template: LaunchTemplateSpecification | None = ... + launch_template: ( + LaunchTemplateSpecification | LaunchTemplateSpecificationDict | None + ) """ The launch template. Any additional parameters that you specify for the new instance overwrite the corresponding parameters included in the launch template. """ - instance_market_options: InstanceMarketOptionsRequest | None = ... + instance_market_options: ( + InstanceMarketOptionsRequest | InstanceMarketOptionsRequestDict | None + ) """ The market (purchasing) option for the instances. @@ -3988,7 +6105,9 @@ class RunInstancesInput(_SerdeShape): when **InstanceInterruptionBehavior** is set to either `hibernate` or `stop`. """ - credit_specification: CreditSpecificationRequest | None = ... + credit_specification: ( + CreditSpecificationRequest | CreditSpecificationRequestDict | None + ) """ The credit option for CPU usage of the burstable performance instance. Valid values are `standard` and `unlimited`. To change this attribute @@ -4002,14 +6121,16 @@ class RunInstancesInput(_SerdeShape): For T3 instances with `host` tenancy, only `standard` is supported. """ - cpu_options: CpuOptionsRequest | None = ... + cpu_options: CpuOptionsRequest | CpuOptionsRequestDict | None """ The CPU options for the instance. For more information, see [Optimize CPU options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in the *Amazon EC2 User Guide*. """ - capacity_reservation_specification: CapacityReservationSpecification | None = ... + capacity_reservation_specification: ( + CapacityReservationSpecification | CapacityReservationSpecificationDict | None + ) """ Information about the Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation @@ -4017,7 +6138,9 @@ class RunInstancesInput(_SerdeShape): Capacity Reservation that has matching attributes (instance type, platform, Availability Zone, and tenancy). """ - hibernation_options: HibernationOptionsRequest | None = ... + hibernation_options: ( + HibernationOptionsRequest | HibernationOptionsRequestDict | None + ) """ Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the [hibernation @@ -4029,15 +6152,19 @@ class RunInstancesInput(_SerdeShape): You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same instance. """ - license_specifications: list[LicenseConfigurationRequest] | None = ... + license_specifications: ( + Sequence[LicenseConfigurationRequest | LicenseConfigurationRequestDict] | None + ) """The license configurations.""" - metadata_options: InstanceMetadataOptionsRequest | None = ... + metadata_options: ( + InstanceMetadataOptionsRequest | InstanceMetadataOptionsRequestDict | None + ) """ The metadata options for the instance. For more information, see [Configure the Instance Metadata Service options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html). """ - enclave_options: EnclaveOptionsRequest | None = ... + enclave_options: EnclaveOptionsRequest | EnclaveOptionsRequestDict | None """ Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see [Amazon Web Services Nitro Enclaves @@ -4046,21 +6173,25 @@ class RunInstancesInput(_SerdeShape): You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance. """ - private_dns_name_options: PrivateDnsNameOptionsRequest | None = ... + private_dns_name_options: ( + PrivateDnsNameOptionsRequest | PrivateDnsNameOptionsRequestDict | None + ) """ The options for the instance hostname. The default values are inherited from the subnet. Applies only if creating a network interface, not attaching an existing one. """ - maintenance_options: InstanceMaintenanceOptionsRequest | None = ... + maintenance_options: ( + InstanceMaintenanceOptionsRequest | InstanceMaintenanceOptionsRequestDict | None + ) """The maintenance and recovery options for the instance.""" - disable_api_stop: bool | None = ... + disable_api_stop: bool | None """ Indicates whether an instance is enabled for stop protection. For more information, see [Enable stop protection for your EC2 instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html). """ - enable_primary_ipv6: bool | None = ... + enable_primary_ipv6: bool | None """ If you're launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6 address. A primary IPv6 address @@ -4077,22 +6208,30 @@ class RunInstancesInput(_SerdeShape): enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address. """ - network_performance_options: InstanceNetworkPerformanceOptionsRequest | None = ... + network_performance_options: ( + InstanceNetworkPerformanceOptionsRequest + | InstanceNetworkPerformanceOptionsRequestDict + | None + ) """Contains settings for the network performance options for the instance.""" - operator: OperatorRequest | None = ... + operator: OperatorRequest | OperatorRequestDict | None """Reserved for internal use.""" secondary_interfaces: ( - list[InstanceSecondaryInterfaceSpecificationRequest] | None - ) = ... + Sequence[ + InstanceSecondaryInterfaceSpecificationRequest + | InstanceSecondaryInterfaceSpecificationRequestDict + ] + | None + ) """The secondary interfaces to associate with the instance.""" - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - disable_api_termination: bool | None = ... + disable_api_termination: bool | None """ Indicates whether termination protection is enabled for the instance. The default is `false`, which means that you can terminate the instance @@ -4100,7 +6239,7 @@ class RunInstancesInput(_SerdeShape): termination protection when you launch an instance, while the instance is running, or while the instance is stopped. """ - instance_initiated_shutdown_behavior: str | None = ... + instance_initiated_shutdown_behavior: str | None """ Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for @@ -4108,7 +6247,7 @@ class RunInstancesInput(_SerdeShape): Default: `stop` """ - private_ip_address: str | None = ... + private_ip_address: str | None """ The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet. @@ -4122,7 +6261,7 @@ class RunInstancesInput(_SerdeShape): You cannot specify this option and the network interfaces option in the same request. """ - client_token: str | None = ... + client_token: str | None """ Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly @@ -4135,13 +6274,21 @@ class RunInstancesInput(_SerdeShape): This field is autopopulated if not provided. """ - additional_info: str | None = ... + additional_info: str | None """Reserved.""" - network_interfaces: list[InstanceNetworkInterfaceSpecification] | None = ... + network_interfaces: ( + Sequence[ + InstanceNetworkInterfaceSpecification + | InstanceNetworkInterfaceSpecificationDict + ] + | None + ) """The network interfaces to associate with the instance.""" - iam_instance_profile: IamInstanceProfileSpecification | None = ... + iam_instance_profile: ( + IamInstanceProfileSpecification | IamInstanceProfileSpecificationDict | None + ) """The name or Amazon Resource Name (ARN) of an IAM instance profile.""" - ebs_optimized: bool | None = ... + ebs_optimized: bool | None """ Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an @@ -4162,6 +6309,15 @@ class RunInstancesMonitoringEnabled(_SerdeShape): monitoring is enabled. """ +class RunInstancesMonitoringEnabledDict(TypedDict, total=False): + """Dictionary form of `RunInstancesMonitoringEnabled`.""" + + enabled: Required[bool] + """ + Indicates whether detailed monitoring is enabled. Otherwise, basic + monitoring is enabled. + """ + @dataclass(kw_only=True) class RunInstancesOutput(_SerdeShape): """ @@ -4185,17 +6341,49 @@ class RunInstancesOutput(_SerdeShape): """The instances.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RunScheduledInstancesInput(_SerdeShape): + """Contains the parameters for RunScheduledInstances.""" + + client_token: str | None = ... + """ + Unique, case-sensitive identifier that ensures the idempotency of the + request. For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + + This field is autopopulated if not provided. + """ + dry_run: bool | None = ... + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + instance_count: int | None = ... + """ + The number of instances. + + Default: 1 + """ + launch_specification: ScheduledInstancesLaunchSpecification | None = ... + """ + The launch specification. You must match the instance type, Availability + Zone, network, and platform of the schedule that you purchased. """ + scheduled_instance_id: str | None = ... + """The Scheduled Instance ID.""" -@dataclass(kw_only=True) -class RunScheduledInstancesInput(_SerdeShape): - """Contains the parameters for RunScheduledInstances.""" +class RunScheduledInstancesInputDict(TypedDict, total=False): + """Dictionary form of `RunScheduledInstancesInput`.""" - client_token: str | None = ... + client_token: str | None """ Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see [Ensuring @@ -4203,25 +6391,28 @@ class RunScheduledInstancesInput(_SerdeShape): This field is autopopulated if not provided. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ - instance_count: int | None = ... + instance_count: int | None """ The number of instances. Default: 1 """ - launch_specification: ScheduledInstancesLaunchSpecification | None = ... + launch_specification: Required[ + ScheduledInstancesLaunchSpecification + | ScheduledInstancesLaunchSpecificationDict + ] """ The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased. """ - scheduled_instance_id: str | None = ... + scheduled_instance_id: Required[str] """The Scheduled Instance ID.""" @dataclass(kw_only=True) @@ -4262,6 +6453,24 @@ class S3ObjectTag(_SerdeShape): characters in length. """ +class S3ObjectTagDict(TypedDict, total=False): + """Dictionary form of `S3ObjectTag`.""" + + key: str | None + """ + The key of the tag. + + Constraints: Tag keys are case-sensitive and can be up to 128 Unicode + characters in length. May not begin with `aws`:. + """ + value: str | None + """ + The value of the tag. + + Constraints: Tag values are case-sensitive and can be up to 256 Unicode + characters in length. + """ + @dataclass(kw_only=True) class S3Storage(_SerdeShape): """ @@ -4294,6 +6503,34 @@ class S3Storage(_SerdeShape): upload_policy_signature: str | None = ... """The signature of the JSON document.""" +class S3StorageDict(TypedDict, total=False): + """Dictionary form of `S3Storage`.""" + + aws_access_key_id: str | None + """ + The access key ID of the owner of the bucket. Before you specify a value + for your access key ID, review and follow the guidance in [Best + Practices for Amazon Web Services + accounts](https://docs.aws.amazon.com/accounts/latest/reference/best-practices.html) + in the *Account ManagementReference Guide*. + """ + bucket: str | None + """ + The bucket in which to store the AMI. You can specify a bucket that you + already own or a new bucket that Amazon EC2 creates on your behalf. If + you specify a bucket that belongs to someone else, Amazon EC2 returns an + error. + """ + prefix: str | None + """The beginning of the file name of the AMI.""" + upload_policy: bytes | None + """ + An Amazon S3 upload policy that gives Amazon EC2 permission to upload + items into Amazon S3 on your behalf. + """ + upload_policy_signature: str | None + """The signature of the JSON document.""" + @dataclass(kw_only=True) class ScanResultCondition(_SerdeShape): """ @@ -4534,6 +6771,113 @@ class ScanResultConditionRequest(_SerdeShape): Constraints: Minimum value of 0. Maximum value of 2147483647. """ +class ScanResultConditionRequestDict(TypedDict, total=False): + """Dictionary form of `ScanResultConditionRequest`.""" + + max_days_since_last_finding_scan: int | None + """ + The maximum number of days that have elapsed since Amazon Inspector last + scanned the AMI. For example, a value of `7` allows AMIs that were + scanned within the last 7 days. AMIs that Amazon Inspector has not + scanned are not allowed. + + Constraints: Minimum value of 0. Maximum value of 2147483647. + """ + maximum_severity_label: str | None + """ + The maximum severity that an AMI's Amazon Inspector findings can have + for the AMI to be allowed. Findings count whether or not a fix is + available. For example, a value of `medium` allows AMIs whose highest + severity is `informational`, `low`, or `medium`. + + The valid values are the following Amazon Inspector severity levels, + which correspond to CVSS score ranges: + + - `informational` - CVSS score of 0. + + - `low` - CVSS score of 0.1 to 3.9. + + - `medium` - CVSS score of 4.0 to 6.9. + + - `high` - CVSS score of 7.0 to 8.9. + + - `critical` - CVSS score of 9.0 to 10.0. + + For more information, see [Software package vulnerability + severity](https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score) + in the *Amazon Inspector User Guide*. + + A scanned AMI that has no findings meets this limit. + + AMIs that Amazon Inspector has not scanned are not allowed when you + specify this condition. + """ + max_days_since_informational_fix_available: int | None + """ + The maximum number of days since Amazon Inspector reported a fix as + available for an `informational` severity finding on the AMI. For + example, a value of `7` does not allow an AMI if Amazon Inspector + reported such a fix more than 7 days ago. + + A scanned AMI that has no `informational` severity finding with a fix + available meets this limit. AMIs that Amazon Inspector has not scanned + are not allowed. + + Constraints: Minimum value of 0. Maximum value of 2147483647. + """ + max_days_since_low_fix_available: int | None + """ + The maximum number of days since Amazon Inspector reported a fix as + available for a `low` severity finding on the AMI. For example, a value + of `7` does not allow an AMI if Amazon Inspector reported such a fix + more than 7 days ago. + + A scanned AMI that has no `low` severity finding with a fix available + meets this limit. AMIs that Amazon Inspector has not scanned are not + allowed. + + Constraints: Minimum value of 0. Maximum value of 2147483647. + """ + max_days_since_medium_fix_available: int | None + """ + The maximum number of days since Amazon Inspector reported a fix as + available for a `medium` severity finding on the AMI. For example, a + value of `7` does not allow an AMI if Amazon Inspector reported such a + fix more than 7 days ago. + + A scanned AMI that has no `medium` severity finding with a fix available + meets this limit. AMIs that Amazon Inspector has not scanned are not + allowed. + + Constraints: Minimum value of 0. Maximum value of 2147483647. + """ + max_days_since_high_fix_available: int | None + """ + The maximum number of days since Amazon Inspector reported a fix as + available for a `high` severity finding on the AMI. For example, a value + of `7` does not allow an AMI if Amazon Inspector reported such a fix + more than 7 days ago. + + A scanned AMI that has no `high` severity finding with a fix available + meets this limit. AMIs that Amazon Inspector has not scanned are not + allowed. + + Constraints: Minimum value of 0. Maximum value of 2147483647. + """ + max_days_since_critical_fix_available: int | None + """ + The maximum number of days since Amazon Inspector reported a fix as + available for a `critical` severity finding on the AMI. For example, a + value of `7` does not allow an AMI if Amazon Inspector reported such a + fix more than 7 days ago. + + A scanned AMI that has no `critical` severity finding with a fix + available meets this limit. AMIs that Amazon Inspector has not scanned + are not allowed. + + Constraints: Minimum value of 0. Maximum value of 2147483647. + """ + @dataclass(kw_only=True) class ScanResults(_SerdeShape): """ @@ -4752,6 +7096,36 @@ class ScheduledInstanceRecurrenceRequest(_SerdeShape): a weekly schedule. You can't specify this value with a daily schedule. """ +class ScheduledInstanceRecurrenceRequestDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstanceRecurrenceRequest`.""" + + frequency: str | None + """The frequency (`Daily`, `Weekly`, or `Monthly`).""" + interval: int | None + """ + The interval quantity. The interval unit depends on the value of + `Frequency`. For example, every 2 weeks or every 2 months. + """ + occurrence_days: Sequence[int] | None + """ + The days. For a monthly schedule, this is one or more days of the month + (1-31). For a weekly schedule, this is one or more days of the week + (1-7, where 1 is Sunday). You can't specify this value with a daily + schedule. If the occurrence is relative to the end of the month, you can + specify only a single day. + """ + occurrence_relative_to_end: bool | None + """ + Indicates whether the occurrence is relative to the end of the specified + week or month. You can't specify this value with a daily schedule. + """ + occurrence_unit: str | None + """ + The unit for `OccurrenceDays` (`DayOfWeek` or `DayOfMonth`). This value + is required for a monthly schedule. You can't specify `DayOfWeek` with + a weekly schedule. You can't specify this value with a daily schedule. + """ + @dataclass(kw_only=True) class ScheduledInstancesBlockDeviceMapping(_SerdeShape): """Describes a block device mapping for a Scheduled Instance.""" @@ -4782,6 +7156,35 @@ class ScheduledInstancesBlockDeviceMapping(_SerdeShape): device mapping for the AMI. """ +class ScheduledInstancesBlockDeviceMappingDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesBlockDeviceMapping`.""" + + device_name: str | None + """The device name (for example, `/dev/sdh` or `xvdh`).""" + ebs: ScheduledInstancesEbs | ScheduledInstancesEbsDict | None + """ + Parameters used to set up EBS volumes automatically when the instance is + launched. + """ + no_device: str | None + """ + To omit the device from the block device mapping, specify an empty + string. + """ + virtual_name: str | None + """ + The virtual device name (`ephemeral`N). Instance store volumes are + numbered starting from 0. An instance type with two available instance + store volumes can specify mappings for `ephemeral0` and `ephemeral1`. + The number of available instance store volumes depends on the instance + type. After you connect to the instance, you must mount the volume. + + Constraints: For M3 instances, you must specify instance store volumes + in the block device mapping for the instance. When you launch an M3 + instance, we ignore any instance store volumes specified in the block + device mapping for the AMI. + """ + @dataclass(kw_only=True) class ScheduledInstancesEbs(_SerdeShape): """Describes an EBS volume for a Scheduled Instance.""" @@ -4814,6 +7217,37 @@ class ScheduledInstancesEbs(_SerdeShape): Default: `gp2` """ +class ScheduledInstancesEbsDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesEbs`.""" + + delete_on_termination: bool | None + """Indicates whether the volume is deleted on instance termination.""" + encrypted: bool | None + """ + Indicates whether the volume is encrypted. You can attached encrypted + volumes only to instances that support them. + """ + iops: int | None + """ + The number of I/O operations per second (IOPS) to provision for a `gp3`, + `io1`, or `io2` volume. + """ + snapshot_id: str | None + """The ID of the snapshot.""" + volume_size: int | None + """ + The size of the volume, in GiB. + + Default: If you're creating the volume from a snapshot and don't + specify a volume size, the default is the snapshot size. + """ + volume_type: str | None + """ + The volume type. + + Default: `gp2` + """ + @dataclass(kw_only=True) class ScheduledInstancesIamInstanceProfile(_SerdeShape): """Describes an IAM instance profile for a Scheduled Instance.""" @@ -4823,6 +7257,14 @@ class ScheduledInstancesIamInstanceProfile(_SerdeShape): name: str | None = ... """The name.""" +class ScheduledInstancesIamInstanceProfileDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesIamInstanceProfile`.""" + + arn: str | None + """The Amazon Resource Name (ARN).""" + name: str | None + """The name.""" + @dataclass(kw_only=True) class ScheduledInstancesIpv6Address(_SerdeShape): """Describes an IPv6 address.""" @@ -4830,6 +7272,12 @@ class ScheduledInstancesIpv6Address(_SerdeShape): ipv6_address: str | None = ... """The IPv6 address.""" +class ScheduledInstancesIpv6AddressDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesIpv6Address`.""" + + ipv6_address: str | None + """The IPv6 address.""" + @dataclass(kw_only=True) class ScheduledInstancesLaunchSpecification(_SerdeShape): """ @@ -4877,6 +7325,61 @@ class ScheduledInstancesLaunchSpecification(_SerdeShape): user_data: str | None = ... """The base64-encoded MIME user data.""" +class ScheduledInstancesLaunchSpecificationDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesLaunchSpecification`.""" + + block_device_mappings: ( + Sequence[ + ScheduledInstancesBlockDeviceMapping + | ScheduledInstancesBlockDeviceMappingDict + ] + | None + ) + """The block device mapping entries.""" + ebs_optimized: bool | None + """ + Indicates whether the instances are optimized for EBS I/O. This + optimization provides dedicated throughput to Amazon EBS and an + optimized configuration stack to provide optimal EBS I/O performance. + This optimization isn't available with all instance types. Additional + usage charges apply when using an EBS-optimized instance. + + Default: `false` + """ + iam_instance_profile: ( + ScheduledInstancesIamInstanceProfile + | ScheduledInstancesIamInstanceProfileDict + | None + ) + """The IAM instance profile.""" + image_id: Required[str] + """The ID of the Amazon Machine Image (AMI).""" + instance_type: str | None + """The instance type.""" + kernel_id: str | None + """The ID of the kernel.""" + key_name: str | None + """The name of the key pair.""" + monitoring: ScheduledInstancesMonitoring | ScheduledInstancesMonitoringDict | None + """Enable or disable monitoring for the instances.""" + network_interfaces: ( + Sequence[ + ScheduledInstancesNetworkInterface | ScheduledInstancesNetworkInterfaceDict + ] + | None + ) + """The network interfaces.""" + placement: ScheduledInstancesPlacement | ScheduledInstancesPlacementDict | None + """The placement information.""" + ramdisk_id: str | None + """The ID of the RAM disk.""" + security_group_ids: Sequence[str] | None + """The IDs of the security groups.""" + subnet_id: str | None + """The ID of the subnet in which to launch the instances.""" + user_data: str | None + """The base64-encoded MIME user data.""" + @dataclass(kw_only=True) class ScheduledInstancesMonitoring(_SerdeShape): """Describes whether monitoring is enabled for a Scheduled Instance.""" @@ -4884,6 +7387,12 @@ class ScheduledInstancesMonitoring(_SerdeShape): enabled: bool | None = ... """Indicates whether monitoring is enabled.""" +class ScheduledInstancesMonitoringDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesMonitoring`.""" + + enabled: bool | None + """Indicates whether monitoring is enabled.""" + @dataclass(kw_only=True) class ScheduledInstancesNetworkInterface(_SerdeShape): """Describes a network interface for a Scheduled Instance.""" @@ -4933,6 +7442,61 @@ class ScheduledInstancesNetworkInterface(_SerdeShape): subnet_id: str | None = ... """The ID of the subnet.""" +class ScheduledInstancesNetworkInterfaceDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesNetworkInterface`.""" + + associate_public_ip_address: bool | None + """ + Indicates whether to assign a public IPv4 address to instances launched + in a VPC. The public IPv4 address can only be assigned to a network + interface for eth0, and can only be assigned to a new network interface, + not an existing one. You cannot specify more than one network interface + in the request. If launching into a default subnet, the default value is + `true`. + + Amazon Web Services charges for all public IPv4 addresses, including + public IPv4 addresses associated with running instances and Elastic IP + addresses. For more information, see the *Public IPv4 Address* tab on + the [Amazon VPC pricing page](http://aws.amazon.com/vpc/pricing/). + """ + delete_on_termination: bool | None + """ + Indicates whether to delete the interface when the instance is + terminated. + """ + description: str | None + """The description.""" + device_index: int | None + """The index of the device for the network interface attachment.""" + groups: Sequence[str] | None + """The IDs of the security groups.""" + ipv6_address_count: int | None + """ + The number of IPv6 addresses to assign to the network interface. The + IPv6 addresses are automatically selected from the subnet range. + """ + ipv6_addresses: ( + Sequence[ScheduledInstancesIpv6Address | ScheduledInstancesIpv6AddressDict] + | None + ) + """The specific IPv6 addresses from the subnet range.""" + network_interface_id: str | None + """The ID of the network interface.""" + private_ip_address: str | None + """The IPv4 address of the network interface within the subnet.""" + private_ip_address_configs: ( + Sequence[ + ScheduledInstancesPrivateIpAddressConfig + | ScheduledInstancesPrivateIpAddressConfigDict + ] + | None + ) + """The private IPv4 addresses.""" + secondary_private_ip_address_count: int | None + """The number of secondary private IPv4 addresses.""" + subnet_id: str | None + """The ID of the subnet.""" + @dataclass(kw_only=True) class ScheduledInstancesPlacement(_SerdeShape): """Describes the placement for a Scheduled Instance.""" @@ -4942,6 +7506,14 @@ class ScheduledInstancesPlacement(_SerdeShape): group_name: str | None = ... """The name of the placement group.""" +class ScheduledInstancesPlacementDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesPlacement`.""" + + availability_zone: str | None + """The Availability Zone.""" + group_name: str | None + """The name of the placement group.""" + @dataclass(kw_only=True) class ScheduledInstancesPrivateIpAddressConfig(_SerdeShape): """Describes a private IPv4 address for a Scheduled Instance.""" @@ -4954,6 +7526,17 @@ class ScheduledInstancesPrivateIpAddressConfig(_SerdeShape): private_ip_address: str | None = ... """The IPv4 address.""" +class ScheduledInstancesPrivateIpAddressConfigDict(TypedDict, total=False): + """Dictionary form of `ScheduledInstancesPrivateIpAddressConfig`.""" + + primary: bool | None + """ + Indicates whether this is a primary IPv4 address. Otherwise, this is a + secondary IPv4 address. + """ + private_ip_address: str | None + """The IPv4 address.""" + class Scope(UnknownEnumMixin, StrEnum): AVAILABILITY_ZONE = "Availability Zone" REGIONAL = "Region" @@ -5004,6 +7587,51 @@ class SearchLocalGatewayRoutesInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class SearchLocalGatewayRoutesInputDict(TypedDict, total=False): + """Dictionary form of `SearchLocalGatewayRoutesInput`.""" + + local_gateway_route_table_id: Required[str] + """The ID of the local gateway route table.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. + + - `prefix-list-id` - The ID of the prefix list. + + - `route-search.exact-match` - The exact match of the specified filter. + + - `route-search.longest-prefix-match` - The longest prefix that matches + the route. + + - `route-search.subnet-of-match` - The routes with a subnet that match + the specified CIDR filter. + + - `route-search.supernet-of-match` - The routes with a CIDR that + encompass the CIDR filter. For example, if you have 10.0.1.0/29 and + 10.0.1.0/31 routes in your route table and you specify + `supernet-of-match` as 10.0.1.0/30, then the result returns + 10.0.1.0/29. + + - `state` - The state of the route. + + - `type` - The route type. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class SearchLocalGatewayRoutesOutput(_SerdeShape): """Dataclass for SearchLocalGatewayRoutesOutput structure.""" @@ -5072,6 +7700,54 @@ class SearchTransitGatewayMulticastGroupsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class SearchTransitGatewayMulticastGroupsInputDict(TypedDict, total=False): + """Dictionary form of `SearchTransitGatewayMulticastGroupsInput`.""" + + transit_gateway_multicast_domain_id: Required[str] + """The ID of the transit gateway multicast domain.""" + filters: Sequence[Filter | FilterDict] | None + """ + One or more filters. The possible values are: + + - `group-ip-address` - The IP address of the transit gateway multicast + group. + + - `is-group-member` - The resource is a group member. Valid values are + `true` | `false`. + + - `is-group-source` - The resource is a group source. Valid values are + `true` | `false`. + + - `member-type` - The member type. Valid values are `igmp` | `static`. + + - `resource-id` - The ID of the resource. + + - `resource-type` - The type of resource. Valid values are `vpc` | + `vpn` | `direct-connect-gateway` | `tgw-peering`. + + - `source-type` - The source type. Valid values are `igmp` | `static`. + + - `subnet-id` - The ID of the subnet. + + - `transit-gateway-attachment-id` - The id of the transit gateway + attachment. + """ + max_results: int | None + """ + The maximum number of results to return with a single call. To retrieve + the remaining results, make another call with the returned `nextToken` + value. + """ + next_token: str | None + """The token for the next page of results.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class SearchTransitGatewayMulticastGroupsOutput(_SerdeShape): """Dataclass for SearchTransitGatewayMulticastGroupsOutput structure.""" @@ -5145,6 +7821,59 @@ class SearchTransitGatewayRoutesInput(_SerdeShape): next_token: str | None = ... """The token for the next page of results.""" +class SearchTransitGatewayRoutesInputDict(TypedDict, total=False): + """Dictionary form of `SearchTransitGatewayRoutesInput`.""" + + transit_gateway_route_table_id: Required[str] + """The ID of the transit gateway route table.""" + filters: Required[Sequence[Filter | FilterDict]] + """ + One or more filters. The possible values are: + + - `attachment.transit-gateway-attachment-id`- The id of the transit + gateway attachment. + + - `attachment.resource-id` - The resource id of the transit gateway + attachment. + + - `attachment.resource-type` - The attachment resource type. Valid + values are `vpc` | `vpn` | `direct-connect-gateway` | `peering` | + `connect`. + + - `prefix-list-id` - The ID of the prefix list. + + - `route-search.exact-match` - The exact match of the specified filter. + + - `route-search.longest-prefix-match` - The longest prefix that matches + the route. + + - `route-search.subnet-of-match` - The routes with a subnet that match + the specified CIDR filter. + + - `route-search.supernet-of-match` - The routes with a CIDR that + encompass the CIDR filter. For example, if you have 10.0.1.0/29 and + 10.0.1.0/31 routes in your route table and you specify + supernet-of-match as 10.0.1.0/30, then the result returns 10.0.1.0/29. + + - `state` - The state of the route (`active` | `blackhole`). + + - `type` - The type of route (`propagated` | `static`). + """ + max_results: int | None + """ + The maximum number of routes to return. If a value is not provided, the + default is 1000. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + next_token: str | None + """The token for the next page of results.""" + @dataclass(kw_only=True) class SearchTransitGatewayRoutesOutput(_SerdeShape): """Dataclass for SearchTransitGatewayRoutesOutput structure.""" @@ -5257,6 +7986,14 @@ class SecondaryInterfacePrivateIpAddressSpecificationRequest(_SerdeShape): private_ip_address: str | None = ... """The private IPv4 address.""" +class SecondaryInterfacePrivateIpAddressSpecificationRequestDict( + TypedDict, total=False +): + """Dictionary form of `SecondaryInterfacePrivateIpAddressSpecificationRequest`.""" + + private_ip_address: str | None + """The private IPv4 address.""" + class SecondaryInterfaceStatus(UnknownEnumMixin, StrEnum): AVAILABLE = "available" IN_USE = "in-use" @@ -5399,6 +8136,12 @@ class SecureBlobAttributeValue(_SerdeShape): value: bytes | None = ... """The attribute value.""" +class SecureBlobAttributeValueDict(TypedDict, total=False): + """Dictionary form of `SecureBlobAttributeValue`.""" + + value: bytes | None + """The attribute value.""" + @dataclass(kw_only=True) class SecurityGroup(_SerdeShape): """Describes a security group.""" @@ -5536,6 +8279,14 @@ class SecurityGroupRuleDescription(_SerdeShape): description: str | None = ... """The description of the security group rule.""" +class SecurityGroupRuleDescriptionDict(TypedDict, total=False): + """Dictionary form of `SecurityGroupRuleDescription`.""" + + security_group_rule_id: str | None + """The ID of the security group rule.""" + description: str | None + """The description of the security group rule.""" + @dataclass(kw_only=True) class SecurityGroupRuleRequest(_SerdeShape): """ @@ -5610,6 +8361,50 @@ class SecurityGroupRuleRequest(_SerdeShape): description: str | None = ... """The description of the security group rule.""" +class SecurityGroupRuleRequestDict(TypedDict, total=False): + """Dictionary form of `SecurityGroupRuleRequest`.""" + + ip_protocol: str | None + """ + The IP protocol name (`tcp`, `udp`, `icmp`, `icmpv6`) or number (see + [Protocol + Numbers](http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). + + Use `-1` to specify all protocols. + """ + from_port: int | None + """ + If the protocol is TCP or UDP, this is the start of the port range. If + the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP + types). + """ + to_port: int | None + """ + If the protocol is TCP or UDP, this is the end of the port range. If the + protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP + codes). If the start port is -1 (all ICMP types), then the end port must + be -1 (all ICMP codes). + """ + cidr_ipv4: str | None + """ + The IPv4 CIDR range. To specify a single IPv4 address, use the /32 + prefix length. + """ + cidr_ipv6: str | None + """ + The IPv6 CIDR range. To specify a single IPv6 address, use the /128 + prefix length. + """ + prefix_list_id: str | None + """The ID of the prefix list.""" + referenced_group_id: str | None + """ + The ID of the security group that is referenced in the security group + rule. + """ + description: str | None + """The description of the security group rule.""" + @dataclass(kw_only=True) class SecurityGroupRuleUpdate(_SerdeShape): """Describes an update to a security group rule.""" @@ -5619,6 +8414,14 @@ class SecurityGroupRuleUpdate(_SerdeShape): security_group_rule: SecurityGroupRuleRequest | None = ... """Information about the security group rule.""" +class SecurityGroupRuleUpdateDict(TypedDict, total=False): + """Dictionary form of `SecurityGroupRuleUpdate`.""" + + security_group_rule_id: Required[str] + """The ID of the security group rule.""" + security_group_rule: SecurityGroupRuleRequest | SecurityGroupRuleRequestDict | None + """Information about the security group rule.""" + @dataclass(kw_only=True) class SecurityGroupVpcAssociation(_SerdeShape): """ @@ -5665,6 +8468,19 @@ class SendDiagnosticInterruptInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class SendDiagnosticInterruptInputDict(TypedDict, total=False): + """Dictionary form of `SendDiagnosticInterruptInput`.""" + + instance_id: Required[str] + """The ID of the instance.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class SendDiagnosticInterruptOutput(_SerdeShape): """Dataclass for SendDiagnosticInterruptOutput structure.""" @@ -5913,6 +8729,18 @@ class SlotDateTimeRangeRequest(_SerdeShape): three months in the future. """ +class SlotDateTimeRangeRequestDict(TypedDict, total=False): + """Dictionary form of `SlotDateTimeRangeRequest`.""" + + earliest_time: Required[datetime] + """The earliest date and time, in UTC, for the Scheduled Instance to start.""" + latest_time: Required[datetime] + """ + The latest date and time, in UTC, for the Scheduled Instance to start. + This value must be later than or equal to the earliest date and at most + three months in the future. + """ + @dataclass(kw_only=True) class SlotStartTimeRangeRequest(_SerdeShape): """ @@ -5925,6 +8753,14 @@ class SlotStartTimeRangeRequest(_SerdeShape): latest_time: datetime | None = ... """The latest date and time, in UTC, for the Scheduled Instance to start.""" +class SlotStartTimeRangeRequestDict(TypedDict, total=False): + """Dictionary form of `SlotStartTimeRangeRequest`.""" + + earliest_time: datetime | None + """The earliest date and time, in UTC, for the Scheduled Instance to start.""" + latest_time: datetime | None + """The latest date and time, in UTC, for the Scheduled Instance to start.""" + @dataclass(kw_only=True) class Snapshot(_SerdeShape): """Describes a snapshot.""" @@ -6103,6 +8939,25 @@ class SnapshotDiskContainer(_SerdeShape): user_bucket: UserBucket | None = ... """The Amazon S3 bucket for the disk image.""" +class SnapshotDiskContainerDict(TypedDict, total=False): + """Dictionary form of `SnapshotDiskContainer`.""" + + description: str | None + """The description of the disk image being imported.""" + format: str | None + """ + The format of the disk image being imported. + + Valid values: `VHD` | `VMDK` | `RAW` + """ + url: str | None + """ + The URL to the Amazon S3-based disk image being imported. It can either + be a https URL (https://..) or an Amazon S3 URL (s3://..). + """ + user_bucket: UserBucket | UserBucketDict | None + """The Amazon S3 bucket for the disk image.""" + @dataclass(kw_only=True) class SnapshotInfo(_SerdeShape): """Information about a snapshot.""" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_11.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_11.pyi index 0ea8d5583..15bdbb3b6 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_11.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_11.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -10,23 +12,32 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( AssociationStatus, BlockDeviceMapping, + BlockDeviceMappingDict, BlockPublicAccessStates, CapacityManagerMonitoredTagKey, ClientVpnConnectionStatus, EncryptionSupport, FleetSpotMaintenanceStrategies, FleetSpotMaintenanceStrategiesRequest, + FleetSpotMaintenanceStrategiesRequestDict, GroupIdentifier, + GroupIdentifierDict, IKEVersionsListValue, IamInstanceProfileSpecification, + IamInstanceProfileSpecificationDict, InstanceMonitoring, InstanceNetworkInterfaceSpecification, + InstanceNetworkInterfaceSpecificationDict, InstanceRequirements, + InstanceRequirementsDict, InstanceStateChange, IpPermission, + IpPermissionDict, LaunchSpecification, LaunchTemplateConfig, + LaunchTemplateConfigDict, LoadBalancersConfig, + LoadBalancersConfigDict, NatGatewayAddress, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis, @@ -42,8 +53,11 @@ from ..models import ( ReservationValue, ResourceStatement, ResourceStatementRequest, + ResourceStatementRequestDict, S3Storage, + S3StorageDict, SecurityGroupRuleDescription, + SecurityGroupRuleDescriptionDict, VerifiedAccessSseSpecificationResponse, VpnTunnelLogOptions, _SerdeShape, @@ -172,6 +186,40 @@ class SpotCapacityRebalance(_SerdeShape): seconds. """ +class SpotCapacityRebalanceDict(TypedDict, total=False): + """Dictionary form of `SpotCapacityRebalance`.""" + + replacement_strategy: str | None + """ + The replacement strategy to use. Only available for fleets of type + `maintain`. + + `launch` - Spot Fleet launches a new replacement Spot Instance when a + rebalance notification is emitted for an existing Spot Instance in the + fleet. Spot Fleet does not terminate the instances that receive a + rebalance notification. You can terminate the old instances, or you can + leave them running. You are charged for all instances while they are + running. + + `launch-before-terminate` - Spot Fleet launches a new replacement Spot + Instance when a rebalance notification is emitted for an existing Spot + Instance in the fleet, and then, after a delay that you specify (in + `TerminationDelay`), terminates the instances that received a rebalance + notification. + """ + termination_delay: int | None + """ + The amount of time (in seconds) that Amazon EC2 waits before terminating + the old Spot Instance after launching a new replacement Spot Instance. + + Required when `ReplacementStrategy` is set to `launch-before-terminate`. + + Not valid when `ReplacementStrategy` is set to `launch`. + + Valid values: Minimum value of `120` seconds. Maximum value of `7200` + seconds. + """ + @dataclass(kw_only=True) class SpotDatafeedSubscription(_SerdeShape): """Describes the data feed for a Spot Instance.""" @@ -315,6 +363,134 @@ class SpotFleetLaunchSpecification(_SerdeShape): as part of the network interface instead of using this parameter. """ +class SpotFleetLaunchSpecificationDict(TypedDict, total=False): + """Dictionary form of `SpotFleetLaunchSpecification`.""" + + addressing_type: str | None + """Deprecated.""" + block_device_mappings: Sequence[BlockDeviceMapping | BlockDeviceMappingDict] | None + """ + One or more block devices that are mapped to the Spot Instances. You + can't specify both a snapshot ID and an encryption value. This is + because only blank volumes can be encrypted on creation. If a snapshot + is the basis for a volume, it is not blank and its encryption status is + used for the volume encryption status. + """ + ebs_optimized: bool | None + """ + Indicates whether the instances are optimized for EBS I/O. This + optimization provides dedicated throughput to Amazon EBS and an + optimized configuration stack to provide optimal EBS I/O performance. + This optimization isn't available with all instance types. Additional + usage charges apply when using an EBS Optimized instance. + + Default: `false` + """ + iam_instance_profile: ( + IamInstanceProfileSpecification | IamInstanceProfileSpecificationDict | None + ) + """The IAM instance profile.""" + image_id: str | None + """The ID of the AMI.""" + instance_type: str | None + """The instance type.""" + kernel_id: str | None + """The ID of the kernel.""" + key_name: str | None + """The name of the key pair.""" + monitoring: SpotFleetMonitoring | SpotFleetMonitoringDict | None + """Enable or disable monitoring for the instances.""" + network_interfaces: ( + Sequence[ + InstanceNetworkInterfaceSpecification + | InstanceNetworkInterfaceSpecificationDict + ] + | None + ) + """ + The network interfaces. + + Note: + `SpotFleetLaunchSpecification` does not support Elastic Fabric Adapter + (EFA). You must use + [LaunchTemplateConfig](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateConfig.html) + instead. + """ + placement: SpotPlacement | SpotPlacementDict | None + """The placement information.""" + ramdisk_id: str | None + """ + The ID of the RAM disk. Some kernels require additional drivers at + launch. Check the kernel requirements for information about whether you + need to specify a RAM disk. To find kernel requirements, refer to the + Amazon Web Services Resource Center and search for the kernel ID. + """ + spot_price: str | None + """ + The maximum price per unit hour that you are willing to pay for a Spot + Instance. We do not recommend using this parameter because it can lead + to increased interruptions. If you do not specify this parameter, you + will pay the current Spot price. + + Warning: + If you specify a maximum price, your instances will be interrupted more + frequently than if you do not specify this parameter. + """ + subnet_id: str | None + """ + The IDs of the subnets in which to launch the instances. To specify + multiple subnets, separate them using commas; for example, + \"subnet-1234abcdeexample1, subnet-0987cdef6example2\". + + If you specify a network interface, you must specify any subnets as part + of the network interface instead of using this parameter. + """ + user_data: str | None + """ + The base64-encoded user data that instances use when starting up. User + data is limited to 16 KB. + """ + weighted_capacity: float | None + """ + The number of units provided by the specified instance type. These are + the same units that you chose to set the target capacity in terms of + instances, or a performance characteristic such as vCPUs, memory, or + I/O. + + If the target capacity divided by this value is not a whole number, + Amazon EC2 rounds the number of instances to the next whole number. If + this value is not specified, the default is 1. + + Note: + When specifying weights, the price used in the `lowestPrice` and + `priceCapacityOptimized` allocation strategies is per *unit* hour (where + the instance price is divided by the specified weight). However, if all + the specified weights are above the requested `TargetCapacity`, + resulting in only 1 instance being launched, the price used is per + *instance* hour. + """ + tag_specifications: ( + Sequence[SpotFleetTagSpecification | SpotFleetTagSpecificationDict] | None + ) + """The tags to apply during creation.""" + instance_requirements: InstanceRequirements | InstanceRequirementsDict | None + """ + The attributes for the instance types. When you specify instance + attributes, Amazon EC2 will identify instance types with those + attributes. + + Note: + If you specify `InstanceRequirements`, you can't specify + `InstanceType`. + """ + security_groups: Sequence[GroupIdentifier | GroupIdentifierDict] | None + """ + The security groups. + + If you specify a network interface, you must specify any security groups + as part of the network interface instead of using this parameter. + """ + @dataclass(kw_only=True) class SpotFleetMonitoring(_SerdeShape): """Describes whether monitoring is enabled.""" @@ -326,6 +502,16 @@ class SpotFleetMonitoring(_SerdeShape): Default: `false` """ +class SpotFleetMonitoringDict(TypedDict, total=False): + """Dictionary form of `SpotFleetMonitoring`.""" + + enabled: bool | None + """ + Enables monitoring for the instance. + + Default: `false` + """ + @dataclass(kw_only=True) class SpotFleetRequestConfig(_SerdeShape): """Describes a Spot Fleet request.""" @@ -365,48 +551,50 @@ class SpotFleetRequestConfigData(_SerdeShape): priceCapacityOptimized (recommended) - : Spot Fleet identifies the pools with the highest capacity availability - for the number of instances that are launching. This means that we - will request Spot Instances from the pools that we believe have the - lowest chance of interruption in the near term. Spot Fleet then - requests Spot Instances from the lowest priced of these pools. + : Spot Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. + Spot Fleet then requests Spot Instances from the lowest priced of + these pools. capacityOptimized - : Spot Fleet identifies the pools with the highest capacity availability - for the number of instances that are launching. This means that we - will request Spot Instances from the pools that we believe have the - lowest chance of interruption in the near term. To give certain - instance types a higher chance of launching first, use - `capacityOptimizedPrioritized`. Set a priority for each instance type - by using the `Priority` parameter for `LaunchTemplateOverrides`. You - can assign the same priority to different `LaunchTemplateOverrides`. - EC2 implements the priorities on a best-effort basis, but optimizes - for capacity first. `capacityOptimizedPrioritized` is supported only - if your Spot Fleet uses a launch template. Note that if the - `OnDemandAllocationStrategy` is set to `prioritized`, the same - priority is applied when fulfilling On-Demand capacity. + : Spot Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. To + give certain instance types a higher chance of launching first, use + `capacityOptimizedPrioritized`. Set a priority for each instance + type by using the `Priority` parameter for + `LaunchTemplateOverrides`. You can assign the same priority to + different `LaunchTemplateOverrides`. EC2 implements the priorities + on a best-effort basis, but optimizes for capacity first. + `capacityOptimizedPrioritized` is supported only if your Spot Fleet + uses a launch template. Note that if the + `OnDemandAllocationStrategy` is set to `prioritized`, the same + priority is applied when fulfilling On-Demand capacity. diversified - : Spot Fleet requests instances from all of the Spot Instance pools that - you specify. + : Spot Fleet requests instances from all of the Spot Instance pools + that you specify. lowestPrice (not recommended) - : Warning: + : Warning: We don't recommend the `lowestPrice` allocation strategy because it has the highest risk of interruption for your Spot Instances. - Spot Fleet requests instances from the lowest priced Spot Instance - pool that has available capacity. If the lowest priced pool doesn't - have available capacity, the Spot Instances come from the next lowest - priced pool that has available capacity. If a pool runs out of - capacity before fulfilling your desired capacity, Spot Fleet will - continue to fulfill your request by drawing from the next lowest - priced pool. To ensure that your desired capacity is met, you might - receive Spot Instances from several pools. Because this strategy only - considers instance price and not capacity availability, it might lead - to high interruption rates. + Spot Fleet requests instances from the lowest priced Spot Instance + pool that has available capacity. If the lowest priced pool doesn't + have available capacity, the Spot Instances come from the next + lowest priced pool that has available capacity. If a pool runs out + of capacity before fulfilling your desired capacity, Spot Fleet will + continue to fulfill your request by drawing from the next lowest + priced pool. To ensure that your desired capacity is met, you might + receive Spot Instances from several pools. Because this strategy + only considers instance price and not capacity availability, it + might lead to high interruption rates. Default: `lowestPrice` """ @@ -642,96 +830,408 @@ class SpotFleetRequestConfigData(_SerdeShape): resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources). """ -@dataclass(kw_only=True) -class SpotFleetTagSpecification(_SerdeShape): - """The tags for a Spot Fleet resource.""" +class SpotFleetRequestConfigDataDict(TypedDict, total=False): + """Dictionary form of `SpotFleetRequestConfigData`.""" - resource_type: str | None = ... - """ - The type of resource. Currently, the only resource type that is - supported is `instance`. To tag the Spot Fleet request on creation, use - the `TagSpecifications` parameter in - ` `[`SpotFleetRequestConfigData`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)` `. + allocation_strategy: str | None """ - tags: list[Tag] | None = ... - """The tags.""" + The strategy that determines how to allocate the target Spot Instance + capacity across the Spot Instance pools specified by the Spot Fleet + launch configuration. For more information, see [Allocation strategies + for Spot + Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-allocation-strategy.html) + in the *Amazon EC2 User Guide*. -class SpotInstanceInterruptionBehavior(UnknownEnumMixin, StrEnum): - HIBERNATE = "hibernate" - STOP = "stop" - TERMINATE = "terminate" + priceCapacityOptimized (recommended) -@dataclass(kw_only=True) -class SpotInstanceRequest(_SerdeShape): - """Describes a Spot Instance request.""" + : Spot Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. + Spot Fleet then requests Spot Instances from the lowest priced of + these pools. - actual_block_hourly_price: str | None = ... - """Deprecated.""" - availability_zone_group: str | None = ... - """ - The Availability Zone group. If you specify the same Availability Zone - group for all Spot Instance requests, all Spot Instances are launched in - the same Availability Zone. + capacityOptimized + + : Spot Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. To + give certain instance types a higher chance of launching first, use + `capacityOptimizedPrioritized`. Set a priority for each instance + type by using the `Priority` parameter for + `LaunchTemplateOverrides`. You can assign the same priority to + different `LaunchTemplateOverrides`. EC2 implements the priorities + on a best-effort basis, but optimizes for capacity first. + `capacityOptimizedPrioritized` is supported only if your Spot Fleet + uses a launch template. Note that if the + `OnDemandAllocationStrategy` is set to `prioritized`, the same + priority is applied when fulfilling On-Demand capacity. + + diversified + + : Spot Fleet requests instances from all of the Spot Instance pools + that you specify. + + lowestPrice (not recommended) + + : Warning: + We don't recommend the `lowestPrice` allocation strategy because it + has the highest risk of interruption for your Spot Instances. + Spot Fleet requests instances from the lowest priced Spot Instance + pool that has available capacity. If the lowest priced pool doesn't + have available capacity, the Spot Instances come from the next + lowest priced pool that has available capacity. If a pool runs out + of capacity before fulfilling your desired capacity, Spot Fleet will + continue to fulfill your request by drawing from the next lowest + priced pool. To ensure that your desired capacity is met, you might + receive Spot Instances from several pools. Because this strategy + only considers instance price and not capacity availability, it + might lead to high interruption rates. + + Default: `lowestPrice` """ - block_duration_minutes: int | None = ... - """Deprecated.""" - create_time: datetime | None = ... + on_demand_allocation_strategy: str | None """ - The date and time when the Spot Instance request was created, in UTC - format (for example, *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). + The order of the launch template overrides to use in fulfilling + On-Demand capacity. If you specify `lowestPrice`, Spot Fleet uses price + to determine the order, launching the lowest price first. If you specify + `prioritized`, Spot Fleet uses the priority that you assign to each Spot + Fleet launch template override, launching the highest priority first. If + you do not specify a value, Spot Fleet defaults to `lowestPrice`. """ - fault: SpotInstanceStateFault | None = ... - """The fault codes for the Spot Instance request, if any.""" - instance_id: str | None = ... + spot_maintenance_strategies: ( + SpotMaintenanceStrategies | SpotMaintenanceStrategiesDict | None + ) """ - The instance ID, if an instance has been launched to fulfill the Spot - Instance request. + The strategies for managing your Spot Instances that are at an elevated + risk of being interrupted. """ - launch_group: str | None = ... + client_token: str | None """ - The instance launch group. Launch groups are Spot Instances that launch - together and terminate together. + A unique, case-sensitive identifier that you provide to ensure the + idempotency of your listings. This helps to avoid duplicate listings. + For more information, see [Ensuring + Idempotency](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). """ - launch_specification: LaunchSpecification | None = ... - """Additional information for launching instances.""" - launched_availability_zone: str | None = ... + excess_capacity_termination_policy: str | None """ - The Availability Zone in which the request is launched. + Indicates whether running instances should be terminated if you decrease + the target capacity of the Spot Fleet request below the current size of + the Spot Fleet. - Either `launchedAvailabilityZone` or `launchedAvailabilityZoneId` can be - specified, but not both + Supported only for fleets of type `maintain`. """ - launched_availability_zone_id: str | None = ... + fulfilled_capacity: float | None """ - The ID of the Availability Zone in which the request is launched. - - Either `launchedAvailabilityZone` or `launchedAvailabilityZoneId` can be - specified, but not both + The number of units fulfilled by this request compared to the set target + capacity. You cannot set this value. """ - product_description: str | None = ... - """The product description associated with the Spot Instance.""" - spot_instance_request_id: str | None = ... - """The ID of the Spot Instance request.""" - spot_price: str | None = ... + on_demand_fulfilled_capacity: float | None """ - The maximum price per unit hour that you are willing to pay for a Spot - Instance. We do not recommend using this parameter because it can lead - to increased interruptions. If you do not specify this parameter, you - will pay the current Spot price. - - Warning: - If you specify a maximum price, your instances will be interrupted more - frequently than if you do not specify this parameter. + The number of On-Demand units fulfilled by this request compared to the + set target On-Demand capacity. """ - state: str | None = ... + iam_fleet_role: Required[str] """ - The state of the Spot Instance request. Spot request status information - helps track your Spot Instance requests. For more information, see [Spot - request - status](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html) - in the *Amazon EC2 User Guide*. + The Amazon Resource Name (ARN) of an Identity and Access Management + (IAM) role that grants the Spot Fleet the permission to request, launch, + terminate, and tag instances on your behalf. For more information, see + [Spot Fleet + prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites) + in the *Amazon EC2 User Guide*. Spot Fleet can terminate Spot Instances + on your behalf when you cancel its Spot Fleet request using + [CancelSpotFleetRequests](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CancelSpotFleetRequests) + or when the Spot Fleet request expires, if you set + `TerminateInstancesWithExpiration`. """ - status: SpotInstanceStatus | None = ... + launch_specifications: ( + Sequence[SpotFleetLaunchSpecification | SpotFleetLaunchSpecificationDict] | None + ) + """ + The launch specifications for the Spot Fleet request. If you specify + `LaunchSpecifications`, you can't specify `LaunchTemplateConfigs`. If + you include On-Demand capacity in your request, you must use + `LaunchTemplateConfigs`. + + Note: + If an AMI specified in a launch specification is deregistered or + disabled, no new instances can be launched from the AMI. For fleets of + type `maintain`, the target capacity will not be maintained. + """ + launch_template_configs: ( + Sequence[LaunchTemplateConfig | LaunchTemplateConfigDict] | None + ) + """ + The launch template and overrides. If you specify + `LaunchTemplateConfigs`, you can't specify `LaunchSpecifications`. If + you include On-Demand capacity in your request, you must use + `LaunchTemplateConfigs`. + """ + spot_price: str | None + """ + The maximum price per unit hour that you are willing to pay for a Spot + Instance. We do not recommend using this parameter because it can lead + to increased interruptions. If you do not specify this parameter, you + will pay the current Spot price. + + Warning: + If you specify a maximum price, your instances will be interrupted more + frequently than if you do not specify this parameter. + """ + target_capacity: Required[int] + """ + The number of units to request for the Spot Fleet. You can choose to set + the target capacity in terms of instances or a performance + characteristic that is important to your application workload, such as + vCPUs, memory, or I/O. If the request type is `maintain`, you can + specify a target capacity of 0 and add capacity later. + """ + on_demand_target_capacity: int | None + """ + The number of On-Demand units to request. You can choose to set the + target capacity in terms of instances or a performance characteristic + that is important to your application workload, such as vCPUs, memory, + or I/O. If the request type is `maintain`, you can specify a target + capacity of 0 and add capacity later. + """ + on_demand_max_total_price: str | None + """ + The maximum amount per hour for On-Demand Instances that you're willing + to pay. You can use the `onDemandMaxTotalPrice` parameter, the + `spotMaxTotalPrice` parameter, or both parameters to ensure that your + fleet cost does not exceed your budget. If you set a maximum price per + hour for the On-Demand Instances and Spot Instances in your request, + Spot Fleet will launch instances until it reaches the maximum amount + you're willing to pay. When the maximum amount you're willing to pay + is reached, the fleet stops launching instances even if it hasn't met + the target capacity. + + Note: + If your fleet includes T instances that are configured as `unlimited`, + and if their average CPU usage exceeds the baseline utilization, you + will incur a charge for surplus credits. The `onDemandMaxTotalPrice` + does not account for surplus credits, and, if you use surplus credits, + your final cost might be higher than what you specified for + `onDemandMaxTotalPrice`. For more information, see [Surplus credits can + incur + charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) + in the *Amazon EC2 User Guide*. + """ + spot_max_total_price: str | None + """ + The maximum amount per hour for Spot Instances that you're willing to + pay. You can use the `spotMaxTotalPrice` parameter, the + `onDemandMaxTotalPrice` parameter, or both parameters to ensure that + your fleet cost does not exceed your budget. If you set a maximum price + per hour for the On-Demand Instances and Spot Instances in your request, + Spot Fleet will launch instances until it reaches the maximum amount + you're willing to pay. When the maximum amount you're willing to pay + is reached, the fleet stops launching instances even if it hasn't met + the target capacity. + + Note: + If your fleet includes T instances that are configured as `unlimited`, + and if their average CPU usage exceeds the baseline utilization, you + will incur a charge for surplus credits. The `spotMaxTotalPrice` does + not account for surplus credits, and, if you use surplus credits, your + final cost might be higher than what you specified for + `spotMaxTotalPrice`. For more information, see [Surplus credits can + incur + charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) + in the *Amazon EC2 User Guide*. + """ + terminate_instances_with_expiration: bool | None + """ + Indicates whether running Spot Instances are terminated when the Spot + Fleet request expires. + """ + type: str | None + """ + The type of request. Indicates whether the Spot Fleet only requests the + target capacity or also attempts to maintain it. When this value is + `request`, the Spot Fleet only places the required requests. It does not + attempt to replenish Spot Instances if capacity is diminished, nor does + it submit requests in alternative Spot pools if capacity is not + available. When this value is `maintain`, the Spot Fleet maintains the + target capacity. The Spot Fleet places the required requests to meet + capacity and automatically replenishes any interrupted instances. + Default: `maintain`. `instant` is listed but is not used by Spot Fleet. + """ + valid_from: datetime | None + """ + The start date and time of the request, in UTC format + (*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). By default, Amazon EC2 starts + fulfilling the request immediately. + """ + valid_until: datetime | None + """ + The end date and time of the request, in UTC format + (*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). After the end date and time, no new + Spot Instance requests are placed or able to fulfill the request. If no + value is specified, the Spot Fleet request remains until you cancel it. + """ + replace_unhealthy_instances: bool | None + """Indicates whether Spot Fleet should replace unhealthy instances.""" + instance_interruption_behavior: str | None + """ + The behavior when a Spot Instance is interrupted. The default is + `terminate`. + """ + load_balancers_config: LoadBalancersConfig | LoadBalancersConfigDict | None + """ + One or more Classic Load Balancers and target groups to attach to the + Spot Fleet request. Spot Fleet registers the running Spot Instances with + the specified Classic Load Balancers and target groups. + + With Network Load Balancers, Spot Fleet cannot register instances that + have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, + G2, HI1, HS1, M1, M2, M3, and T1. + """ + instance_pools_to_use_count: int | None + """ + The number of Spot pools across which to allocate your target Spot + capacity. Valid only when Spot **AllocationStrategy** is set to + `lowest-price`. Spot Fleet selects the cheapest Spot pools and evenly + allocates your target Spot capacity across the number of Spot pools that + you specify. + + Note that Spot Fleet attempts to draw Spot Instances from the number of + pools that you specify on a best effort basis. If a pool runs out of + Spot capacity before fulfilling your target capacity, Spot Fleet will + continue to fulfill your request by drawing from the next cheapest pool. + To ensure that your target capacity is met, you might receive Spot + Instances from more than the number of pools that you specified. + Similarly, if most of the pools have no Spot capacity, you might receive + your full target capacity from fewer than the number of pools that you + specified. + """ + context: str | None + """Reserved.""" + target_capacity_unit_type: str | None + """ + The unit for the target capacity. You can specify this parameter only + when using attribute-based instance type selection. + + Default: `units` (the number of instances) + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + The key-value pair for tagging the Spot Fleet request on creation. The + value for `ResourceType` must be `spot-fleet-request`, otherwise the + Spot Fleet request fails. To tag instances at launch, specify the tags + in the [launch + template](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template) + (valid only if you use `LaunchTemplateConfigs`) or in the + ` `[`SpotFleetTagSpecification`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html)` ` + (valid only if you use `LaunchSpecifications`). For information about + tagging after launch, see [Tag your + resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources). + """ + +@dataclass(kw_only=True) +class SpotFleetTagSpecification(_SerdeShape): + """The tags for a Spot Fleet resource.""" + + resource_type: str | None = ... + """ + The type of resource. Currently, the only resource type that is + supported is `instance`. To tag the Spot Fleet request on creation, use + the `TagSpecifications` parameter in + ` `[`SpotFleetRequestConfigData`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)` `. + """ + tags: list[Tag] | None = ... + """The tags.""" + +class SpotFleetTagSpecificationDict(TypedDict, total=False): + """Dictionary form of `SpotFleetTagSpecification`.""" + + resource_type: str | None + """ + The type of resource. Currently, the only resource type that is + supported is `instance`. To tag the Spot Fleet request on creation, use + the `TagSpecifications` parameter in + ` `[`SpotFleetRequestConfigData`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)` `. + """ + tags: Sequence[Tag | TagDict] | None + """The tags.""" + +class SpotInstanceInterruptionBehavior(UnknownEnumMixin, StrEnum): + HIBERNATE = "hibernate" + STOP = "stop" + TERMINATE = "terminate" + +@dataclass(kw_only=True) +class SpotInstanceRequest(_SerdeShape): + """Describes a Spot Instance request.""" + + actual_block_hourly_price: str | None = ... + """Deprecated.""" + availability_zone_group: str | None = ... + """ + The Availability Zone group. If you specify the same Availability Zone + group for all Spot Instance requests, all Spot Instances are launched in + the same Availability Zone. + """ + block_duration_minutes: int | None = ... + """Deprecated.""" + create_time: datetime | None = ... + """ + The date and time when the Spot Instance request was created, in UTC + format (for example, *YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). + """ + fault: SpotInstanceStateFault | None = ... + """The fault codes for the Spot Instance request, if any.""" + instance_id: str | None = ... + """ + The instance ID, if an instance has been launched to fulfill the Spot + Instance request. + """ + launch_group: str | None = ... + """ + The instance launch group. Launch groups are Spot Instances that launch + together and terminate together. + """ + launch_specification: LaunchSpecification | None = ... + """Additional information for launching instances.""" + launched_availability_zone: str | None = ... + """ + The Availability Zone in which the request is launched. + + Either `launchedAvailabilityZone` or `launchedAvailabilityZoneId` can be + specified, but not both + """ + launched_availability_zone_id: str | None = ... + """ + The ID of the Availability Zone in which the request is launched. + + Either `launchedAvailabilityZone` or `launchedAvailabilityZoneId` can be + specified, but not both + """ + product_description: str | None = ... + """The product description associated with the Spot Instance.""" + spot_instance_request_id: str | None = ... + """The ID of the Spot Instance request.""" + spot_price: str | None = ... + """ + The maximum price per unit hour that you are willing to pay for a Spot + Instance. We do not recommend using this parameter because it can lead + to increased interruptions. If you do not specify this parameter, you + will pay the current Spot price. + + Warning: + If you specify a maximum price, your instances will be interrupted more + frequently than if you do not specify this parameter. + """ + state: str | None = ... + """ + The state of the Spot Instance request. Spot request status information + helps track your Spot Instance requests. For more information, see [Spot + request + status](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html) + in the *Amazon EC2 User Guide*. + """ + status: SpotInstanceStatus | None = ... """The status code and status message describing the Spot Instance request.""" tags: list[Tag] | None = ... """Any tags assigned to the resource.""" @@ -815,6 +1315,18 @@ class SpotMaintenanceStrategies(_SerdeShape): in the *Amazon EC2 User Guide*. """ +class SpotMaintenanceStrategiesDict(TypedDict, total=False): + """Dictionary form of `SpotMaintenanceStrategies`.""" + + capacity_rebalance: SpotCapacityRebalance | SpotCapacityRebalanceDict | None + """ + The Spot Instance replacement strategy to use when Amazon EC2 emits a + signal that your Spot Instance is at an elevated risk of being + interrupted. For more information, see [Capacity + rebalancing](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html) + in the *Amazon EC2 User Guide*. + """ + @dataclass(kw_only=True) class SpotMarketOptions(_SerdeShape): """The options for Spot Instances.""" @@ -845,41 +1357,240 @@ class SpotMarketOptions(_SerdeShape): """Deprecated.""" valid_until: datetime | None = ... """ - The end date of the request, in UTC format - (*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). Supported only for persistent - requests. + The end date of the request, in UTC format + (*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). Supported only for persistent + requests. + + - For a persistent request, the request remains active until the + `ValidUntil` date and time is reached. Otherwise, the request remains + active until you cancel it. + + - For a one-time request, `ValidUntil` is not supported. The request + remains active until all instances launch or you cancel the request. + """ + instance_interruption_behavior: str | None = ... + """ + The behavior when a Spot Instance is interrupted. + + If `Configured` (for + [`HibernationOptions`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html) + ) is set to `true`, the `InstanceInterruptionBehavior` parameter is + automatically set to `hibernate`. If you set it to `stop` or + `terminate`, you'll get an error. + + If `Configured` (for + [`HibernationOptions`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html) + ) is set to `false` or `null`, the `InstanceInterruptionBehavior` + parameter is automatically set to `terminate`. You can also set it to + `stop` or `hibernate`. + + For more information, see [Interruption + behavior](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/interruption-behavior.html) + in the *Amazon EC2 User Guide*. + """ + +class SpotMarketOptionsDict(TypedDict, total=False): + """Dictionary form of `SpotMarketOptions`.""" + + max_price: str | None + """ + The maximum hourly price that you're willing to pay for a Spot + Instance. We do not recommend using this parameter because it can lead + to increased interruptions. If you do not specify this parameter, you + will pay the current Spot price. + + Warning: + If you specify a maximum price, your Spot Instances will be interrupted + more frequently than if you do not specify this parameter. + + If you specify a maximum price, it must be more than USD $0.001. + Specifying a value below USD $0.001 will result in an + `InvalidParameterValue` error message. + """ + spot_instance_type: str | None + """ + The Spot Instance request type. For + [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances), + persistent Spot Instance requests are only supported when the instance + interruption behavior is either `hibernate` or `stop`. + """ + block_duration_minutes: int | None + """Deprecated.""" + valid_until: datetime | None + """ + The end date of the request, in UTC format + (*YYYY*-*MM*-*DD*T*HH*:*MM*:*SS*Z). Supported only for persistent + requests. + + - For a persistent request, the request remains active until the + `ValidUntil` date and time is reached. Otherwise, the request remains + active until you cancel it. + + - For a one-time request, `ValidUntil` is not supported. The request + remains active until all instances launch or you cancel the request. + """ + instance_interruption_behavior: str | None + """ + The behavior when a Spot Instance is interrupted. + + If `Configured` (for + [`HibernationOptions`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html) + ) is set to `true`, the `InstanceInterruptionBehavior` parameter is + automatically set to `hibernate`. If you set it to `stop` or + `terminate`, you'll get an error. + + If `Configured` (for + [`HibernationOptions`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html) + ) is set to `false` or `null`, the `InstanceInterruptionBehavior` + parameter is automatically set to `terminate`. You can also set it to + `stop` or `hibernate`. + + For more information, see [Interruption + behavior](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/interruption-behavior.html) + in the *Amazon EC2 User Guide*. + """ + +@dataclass(kw_only=True) +class SpotOptions(_SerdeShape): + """Describes the configuration of Spot Instances in an EC2 Fleet.""" + + allocation_strategy: str | None = ... + """ + The strategy that determines how to allocate the target Spot Instance + capacity across the Spot Instance pools specified by the EC2 Fleet + launch configuration. For more information, see [Allocation strategies + for Spot + Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html) + in the *Amazon EC2 User Guide*. + + price-capacity-optimized (recommended) + + : EC2 Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. EC2 + Fleet then requests Spot Instances from the lowest priced of these + pools. + + capacity-optimized + + : EC2 Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. To + give certain instance types a higher chance of launching first, use + `capacity-optimized-prioritized`. Set a priority for each instance + type by using the `Priority` parameter for + `LaunchTemplateOverrides`. You can assign the same priority to + different `LaunchTemplateOverrides`. EC2 implements the priorities + on a best-effort basis, but optimizes for capacity first. + `capacity-optimized-prioritized` is supported only if your EC2 Fleet + uses a launch template. Note that if the On-Demand + `AllocationStrategy` is set to `prioritized`, the same priority is + applied when fulfilling On-Demand capacity. + + diversified + + : EC2 Fleet requests instances from all of the Spot Instance pools + that you specify. + + lowest-price (not recommended) + + : Warning: + We don't recommend the `lowest-price` allocation strategy because + it has the highest risk of interruption for your Spot Instances. + EC2 Fleet requests instances from the lowest priced Spot Instance + pool that has available capacity. If the lowest priced pool doesn't + have available capacity, the Spot Instances come from the next + lowest priced pool that has available capacity. If a pool runs out + of capacity before fulfilling your desired capacity, EC2 Fleet will + continue to fulfill your request by drawing from the next lowest + priced pool. To ensure that your desired capacity is met, you might + receive Spot Instances from several pools. Because this strategy + only considers instance price and not capacity availability, it + might lead to high interruption rates. + + Default: `lowest-price` + """ + maintenance_strategies: FleetSpotMaintenanceStrategies | None = ... + """ + The strategies for managing your workloads on your Spot Instances that + will be interrupted. Currently only the capacity rebalance strategy is + available. + """ + instance_interruption_behavior: str | None = ... + """ + The behavior when a Spot Instance is interrupted. + + Default: `terminate` + """ + instance_pools_to_use_count: int | None = ... + """ + The number of Spot pools across which to allocate your target Spot + capacity. Supported only when `AllocationStrategy` is set to + `lowest-price`. EC2 Fleet selects the cheapest Spot pools and evenly + allocates your target Spot capacity across the number of Spot pools that + you specify. + + Note that EC2 Fleet attempts to draw Spot Instances from the number of + pools that you specify on a best effort basis. If a pool runs out of + Spot capacity before fulfilling your target capacity, EC2 Fleet will + continue to fulfill your request by drawing from the next cheapest pool. + To ensure that your target capacity is met, you might receive Spot + Instances from more than the number of pools that you specified. + Similarly, if most of the pools have no Spot capacity, you might receive + your full target capacity from fewer than the number of pools that you + specified. + """ + single_instance_type: bool | None = ... + """ + Indicates that the fleet uses a single instance type to launch all Spot + Instances in the fleet. - - For a persistent request, the request remains active until the - `ValidUntil` date and time is reached. Otherwise, the request remains - active until you cancel it. + Supported only for fleets of type `instant`. + """ + single_availability_zone: bool | None = ... + """ + Indicates that the fleet launches all Spot Instances into a single + Availability Zone. - - For a one-time request, `ValidUntil` is not supported. The request - remains active until all instances launch or you cancel the request. + Supported only for fleets of type `instant`. """ - instance_interruption_behavior: str | None = ... + min_target_capacity: int | None = ... """ - The behavior when a Spot Instance is interrupted. + The minimum target capacity for Spot Instances in the fleet. If this + minimum capacity isn't reached, no instances are launched. - If `Configured` (for - [`HibernationOptions`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html) - ) is set to `true`, the `InstanceInterruptionBehavior` parameter is - automatically set to `hibernate`. If you set it to `stop` or - `terminate`, you'll get an error. + Constraints: Maximum value of `1000`. Supported only for fleets of type + `instant`. - If `Configured` (for - [`HibernationOptions`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html) - ) is set to `false` or `null`, the `InstanceInterruptionBehavior` - parameter is automatically set to `terminate`. You can also set it to - `stop` or `hibernate`. + At least one of the following must be specified: + `SingleAvailabilityZone` | `SingleInstanceType` + """ + max_total_price: str | None = ... + """ + The maximum amount per hour for Spot Instances that you're willing to + pay. We do not recommend using this parameter because it can lead to + increased interruptions. If you do not specify this parameter, you will + pay the current Spot price. - For more information, see [Interruption - behavior](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/interruption-behavior.html) - in the *Amazon EC2 User Guide*. + Warning: + If you specify a maximum price, your Spot Instances will be interrupted + more frequently than if you do not specify this parameter. + Note: + If your fleet includes T instances that are configured as `unlimited`, + and if their average CPU usage exceeds the baseline utilization, you + will incur a charge for surplus credits. The `maxTotalPrice` does not + account for surplus credits, and, if you use surplus credits, your final + cost might be higher than what you specified for `maxTotalPrice`. For + more information, see [Surplus credits can incur + charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) + in the *Amazon EC2 User Guide*. """ @dataclass(kw_only=True) -class SpotOptions(_SerdeShape): - """Describes the configuration of Spot Instances in an EC2 Fleet.""" +class SpotOptionsRequest(_SerdeShape): + """Describes the configuration of Spot Instances in an EC2 Fleet request.""" allocation_strategy: str | None = ... """ @@ -892,57 +1603,57 @@ class SpotOptions(_SerdeShape): price-capacity-optimized (recommended) - : EC2 Fleet identifies the pools with the highest capacity availability - for the number of instances that are launching. This means that we - will request Spot Instances from the pools that we believe have the - lowest chance of interruption in the near term. EC2 Fleet then - requests Spot Instances from the lowest priced of these pools. + : EC2 Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. EC2 + Fleet then requests Spot Instances from the lowest priced of these + pools. capacity-optimized - : EC2 Fleet identifies the pools with the highest capacity availability - for the number of instances that are launching. This means that we - will request Spot Instances from the pools that we believe have the - lowest chance of interruption in the near term. To give certain - instance types a higher chance of launching first, use - `capacity-optimized-prioritized`. Set a priority for each instance - type by using the `Priority` parameter for `LaunchTemplateOverrides`. - You can assign the same priority to different - `LaunchTemplateOverrides`. EC2 implements the priorities on a - best-effort basis, but optimizes for capacity first. - `capacity-optimized-prioritized` is supported only if your EC2 Fleet - uses a launch template. Note that if the On-Demand - `AllocationStrategy` is set to `prioritized`, the same priority is - applied when fulfilling On-Demand capacity. + : EC2 Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. To + give certain instance types a higher chance of launching first, use + `capacity-optimized-prioritized`. Set a priority for each instance + type by using the `Priority` parameter for + `LaunchTemplateOverrides`. You can assign the same priority to + different `LaunchTemplateOverrides`. EC2 implements the priorities + on a best-effort basis, but optimizes for capacity first. + `capacity-optimized-prioritized` is supported only if your EC2 Fleet + uses a launch template. Note that if the On-Demand + `AllocationStrategy` is set to `prioritized`, the same priority is + applied when fulfilling On-Demand capacity. diversified - : EC2 Fleet requests instances from all of the Spot Instance pools that - you specify. + : EC2 Fleet requests instances from all of the Spot Instance pools + that you specify. lowest-price (not recommended) - : Warning: - We don't recommend the `lowest-price` allocation strategy because it - has the highest risk of interruption for your Spot Instances. - EC2 Fleet requests instances from the lowest priced Spot Instance pool - that has available capacity. If the lowest priced pool doesn't have - available capacity, the Spot Instances come from the next lowest - priced pool that has available capacity. If a pool runs out of - capacity before fulfilling your desired capacity, EC2 Fleet will - continue to fulfill your request by drawing from the next lowest - priced pool. To ensure that your desired capacity is met, you might - receive Spot Instances from several pools. Because this strategy only - considers instance price and not capacity availability, it might lead - to high interruption rates. + : Warning: + We don't recommend the `lowest-price` allocation strategy because + it has the highest risk of interruption for your Spot Instances. + EC2 Fleet requests instances from the lowest priced Spot Instance + pool that has available capacity. If the lowest priced pool doesn't + have available capacity, the Spot Instances come from the next + lowest priced pool that has available capacity. If a pool runs out + of capacity before fulfilling your desired capacity, EC2 Fleet will + continue to fulfill your request by drawing from the next lowest + priced pool. To ensure that your desired capacity is met, you might + receive Spot Instances from several pools. Because this strategy + only considers instance price and not capacity availability, it + might lead to high interruption rates. Default: `lowest-price` """ - maintenance_strategies: FleetSpotMaintenanceStrategies | None = ... + maintenance_strategies: FleetSpotMaintenanceStrategiesRequest | None = ... """ - The strategies for managing your workloads on your Spot Instances that - will be interrupted. Currently only the capacity rebalance strategy is - available. + The strategies for managing your Spot Instances that are at an elevated + risk of being interrupted. """ instance_interruption_behavior: str | None = ... """ @@ -953,7 +1664,7 @@ class SpotOptions(_SerdeShape): instance_pools_to_use_count: int | None = ... """ The number of Spot pools across which to allocate your target Spot - capacity. Supported only when `AllocationStrategy` is set to + capacity. Supported only when Spot `AllocationStrategy` is set to `lowest-price`. EC2 Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify. @@ -1006,19 +1717,18 @@ class SpotOptions(_SerdeShape): Note: If your fleet includes T instances that are configured as `unlimited`, and if their average CPU usage exceeds the baseline utilization, you - will incur a charge for surplus credits. The `maxTotalPrice` does not + will incur a charge for surplus credits. The `MaxTotalPrice` does not account for surplus credits, and, if you use surplus credits, your final - cost might be higher than what you specified for `maxTotalPrice`. For + cost might be higher than what you specified for `MaxTotalPrice`. For more information, see [Surplus credits can incur charges](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits) in the *Amazon EC2 User Guide*. """ -@dataclass(kw_only=True) -class SpotOptionsRequest(_SerdeShape): - """Describes the configuration of Spot Instances in an EC2 Fleet request.""" +class SpotOptionsRequestDict(TypedDict, total=False): + """Dictionary form of `SpotOptionsRequest`.""" - allocation_strategy: str | None = ... + allocation_strategy: str | None """ The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet @@ -1029,64 +1739,69 @@ class SpotOptionsRequest(_SerdeShape): price-capacity-optimized (recommended) - : EC2 Fleet identifies the pools with the highest capacity availability - for the number of instances that are launching. This means that we - will request Spot Instances from the pools that we believe have the - lowest chance of interruption in the near term. EC2 Fleet then - requests Spot Instances from the lowest priced of these pools. + : EC2 Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. EC2 + Fleet then requests Spot Instances from the lowest priced of these + pools. capacity-optimized - : EC2 Fleet identifies the pools with the highest capacity availability - for the number of instances that are launching. This means that we - will request Spot Instances from the pools that we believe have the - lowest chance of interruption in the near term. To give certain - instance types a higher chance of launching first, use - `capacity-optimized-prioritized`. Set a priority for each instance - type by using the `Priority` parameter for `LaunchTemplateOverrides`. - You can assign the same priority to different - `LaunchTemplateOverrides`. EC2 implements the priorities on a - best-effort basis, but optimizes for capacity first. - `capacity-optimized-prioritized` is supported only if your EC2 Fleet - uses a launch template. Note that if the On-Demand - `AllocationStrategy` is set to `prioritized`, the same priority is - applied when fulfilling On-Demand capacity. + : EC2 Fleet identifies the pools with the highest capacity + availability for the number of instances that are launching. This + means that we will request Spot Instances from the pools that we + believe have the lowest chance of interruption in the near term. To + give certain instance types a higher chance of launching first, use + `capacity-optimized-prioritized`. Set a priority for each instance + type by using the `Priority` parameter for + `LaunchTemplateOverrides`. You can assign the same priority to + different `LaunchTemplateOverrides`. EC2 implements the priorities + on a best-effort basis, but optimizes for capacity first. + `capacity-optimized-prioritized` is supported only if your EC2 Fleet + uses a launch template. Note that if the On-Demand + `AllocationStrategy` is set to `prioritized`, the same priority is + applied when fulfilling On-Demand capacity. diversified - : EC2 Fleet requests instances from all of the Spot Instance pools that - you specify. + : EC2 Fleet requests instances from all of the Spot Instance pools + that you specify. lowest-price (not recommended) - : Warning: - We don't recommend the `lowest-price` allocation strategy because it - has the highest risk of interruption for your Spot Instances. - EC2 Fleet requests instances from the lowest priced Spot Instance pool - that has available capacity. If the lowest priced pool doesn't have - available capacity, the Spot Instances come from the next lowest - priced pool that has available capacity. If a pool runs out of - capacity before fulfilling your desired capacity, EC2 Fleet will - continue to fulfill your request by drawing from the next lowest - priced pool. To ensure that your desired capacity is met, you might - receive Spot Instances from several pools. Because this strategy only - considers instance price and not capacity availability, it might lead - to high interruption rates. + : Warning: + We don't recommend the `lowest-price` allocation strategy because + it has the highest risk of interruption for your Spot Instances. + EC2 Fleet requests instances from the lowest priced Spot Instance + pool that has available capacity. If the lowest priced pool doesn't + have available capacity, the Spot Instances come from the next + lowest priced pool that has available capacity. If a pool runs out + of capacity before fulfilling your desired capacity, EC2 Fleet will + continue to fulfill your request by drawing from the next lowest + priced pool. To ensure that your desired capacity is met, you might + receive Spot Instances from several pools. Because this strategy + only considers instance price and not capacity availability, it + might lead to high interruption rates. Default: `lowest-price` """ - maintenance_strategies: FleetSpotMaintenanceStrategiesRequest | None = ... + maintenance_strategies: ( + FleetSpotMaintenanceStrategiesRequest + | FleetSpotMaintenanceStrategiesRequestDict + | None + ) """ The strategies for managing your Spot Instances that are at an elevated risk of being interrupted. """ - instance_interruption_behavior: str | None = ... + instance_interruption_behavior: str | None """ The behavior when a Spot Instance is interrupted. Default: `terminate` """ - instance_pools_to_use_count: int | None = ... + instance_pools_to_use_count: int | None """ The number of Spot pools across which to allocate your target Spot capacity. Supported only when Spot `AllocationStrategy` is set to @@ -1104,21 +1819,21 @@ class SpotOptionsRequest(_SerdeShape): your full target capacity from fewer than the number of pools that you specified. """ - single_instance_type: bool | None = ... + single_instance_type: bool | None """ Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet. Supported only for fleets of type `instant`. """ - single_availability_zone: bool | None = ... + single_availability_zone: bool | None """ Indicates that the fleet launches all Spot Instances into a single Availability Zone. Supported only for fleets of type `instant`. """ - min_target_capacity: int | None = ... + min_target_capacity: int | None """ The minimum target capacity for Spot Instances in the fleet. If this minimum capacity isn't reached, no instances are launched. @@ -1129,7 +1844,7 @@ class SpotOptionsRequest(_SerdeShape): At least one of the following must be specified: `SingleAvailabilityZone` | `SingleInstanceType` """ - max_total_price: str | None = ... + max_total_price: str | None """ The maximum amount per hour for Spot Instances that you're willing to pay. We do not recommend using this parameter because it can lead to @@ -1183,6 +1898,38 @@ class SpotPlacement(_SerdeShape): the request, but not both. """ +class SpotPlacementDict(TypedDict, total=False): + """Dictionary form of `SpotPlacement`.""" + + availability_zone: str | None + """ + The Availability Zone. For example, `us-east-2a`. + + [Spot Fleet only] To specify multiple Availability Zones, separate + them using commas; for example, \"`us-east-2a`, `us-east-2b`\". + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + group_name: str | None + """The name of the placement group.""" + tenancy: str | None + """ + The tenancy of the instance (if the instance is running in a VPC). An + instance with a tenancy of `dedicated` runs on single-tenant hardware. + The `host` tenancy is not supported for Spot Instances. + """ + availability_zone_id: str | None + """ + The ID of the Availability Zone. For example, `use2-az1`. + + [Spot Fleet only] To specify multiple Availability Zones, separate + them using commas; for example, \"`use2-az1`, `use2-bz1`\". + + Either `AvailabilityZone` or `AvailabilityZoneId` must be specified in + the request, but not both. + """ + @dataclass(kw_only=True) class SpotPlacementScore(_SerdeShape): """ @@ -1340,6 +2087,38 @@ class StartDeclarativePoliciesReportInput(_SerdeShape): tag_specifications: list[TagSpecification] | None = ... """The tags to apply.""" +class StartDeclarativePoliciesReportInputDict(TypedDict, total=False): + """Dictionary form of `StartDeclarativePoliciesReportInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + s3_bucket: Required[str] + """ + The name of the S3 bucket where the report will be saved. The bucket + must be in the same Region where the report generation request is made. + """ + s3_prefix: str | None + """The prefix for your S3 object.""" + target_id: Required[str] + """ + The root ID, organizational unit ID, or account ID. + + Format: + + - For root: `r-ab12` + + - For OU: `ou-ab12-cdef1234` + + - For account: `123456789012` + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply.""" + @dataclass(kw_only=True) class StartDeclarativePoliciesReportOutput(_SerdeShape): """Dataclass for StartDeclarativePoliciesReportOutput structure.""" @@ -1370,6 +2149,21 @@ class StartInstancesInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class StartInstancesInputDict(TypedDict, total=False): + """Dictionary form of `StartInstancesInput`.""" + + instance_ids: Required[Sequence[str]] + """The IDs of the instances.""" + additional_info: str | None + """Reserved.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class StartInstancesOutput(_SerdeShape): """Dataclass for StartInstancesOutput structure.""" @@ -1408,6 +2202,29 @@ class StartNetworkInsightsAccessScopeAnalysisInput(_SerdeShape): This field is autopopulated if not provided. """ +class StartNetworkInsightsAccessScopeAnalysisInputDict(TypedDict, total=False): + """Dictionary form of `StartNetworkInsightsAccessScopeAnalysisInput`.""" + + network_insights_access_scope_id: Required[str] + """The ID of the Network Access Scope.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StartNetworkInsightsAccessScopeAnalysisOutput(_SerdeShape): """Dataclass for StartNetworkInsightsAccessScopeAnalysisOutput structure.""" @@ -1460,6 +2277,41 @@ class StartNetworkInsightsAnalysisInput(_SerdeShape): This field is autopopulated if not provided. """ +class StartNetworkInsightsAnalysisInputDict(TypedDict, total=False): + """Dictionary form of `StartNetworkInsightsAnalysisInput`.""" + + network_insights_path_id: Required[str] + """The ID of the path.""" + additional_accounts: Sequence[str] | None + """The member accounts that contain resources that the path can traverse.""" + filter_in_arns: Sequence[str] | None + """ + The Amazon Resource Names (ARN) of the resources that the path must + traverse. + """ + filter_out_arns: Sequence[str] | None + """ + The Amazon Resource Names (ARN) of the resources that the path will + ignore. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """The tags to apply.""" + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. For more information, see [How to ensure + idempotency](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html). + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class StartNetworkInsightsAnalysisOutput(_SerdeShape): """Dataclass for StartNetworkInsightsAnalysisOutput structure.""" @@ -1491,6 +2343,19 @@ class StartVpcEndpointServicePrivateDnsVerificationInput(_SerdeShape): service_id: str | None = ... """The ID of the endpoint service.""" +class StartVpcEndpointServicePrivateDnsVerificationInputDict(TypedDict, total=False): + """Dictionary form of `StartVpcEndpointServicePrivateDnsVerificationInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + service_id: Required[str] + """The ID of the endpoint service.""" + @dataclass(kw_only=True) class StartVpcEndpointServicePrivateDnsVerificationOutput(_SerdeShape): """ @@ -1644,6 +2509,57 @@ class StopInstancesInput(_SerdeShape): Default: `false` """ +class StopInstancesInputDict(TypedDict, total=False): + """Dictionary form of `StopInstancesInput`.""" + + instance_ids: Required[Sequence[str]] + """The IDs of the instances.""" + hibernate: bool | None + """ + Hibernates the instance if the instance was enabled for hibernation at + launch. If the instance cannot hibernate successfully, a normal shutdown + occurs. For more information, see [Hibernate your Amazon EC2 + instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) + in the *Amazon EC2 User Guide*. + + Default: `false` + """ + skip_os_shutdown: bool | None + """ + Specifies whether to bypass the graceful OS shutdown process when the + instance is stopped. + + Warning: + Bypassing the graceful OS shutdown might result in data loss or + corruption (for example, memory contents not flushed to disk or loss of + in-flight IOs) or skipped shutdown scripts. + + Default: `false` + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + force: bool | None + """ + Forces the instance to stop. The instance will first attempt a graceful + shutdown, which includes flushing file system caches and metadata. If + the graceful shutdown fails to complete within the timeout period, the + instance shuts down forcibly without flushing the file system caches and + metadata. + + After using this option, you must perform file system check and repair + procedures. This option is not recommended for Windows instances. For + more information, see [Troubleshoot Amazon EC2 instance stop + issues](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html) + in the *Amazon EC2 User Guide*. + + Default: `false` + """ + @dataclass(kw_only=True) class StopInstancesOutput(_SerdeShape): """Dataclass for StopInstancesOutput structure.""" @@ -1665,6 +2581,12 @@ class Storage(_SerdeShape): s3: S3Storage | None = ... """An Amazon S3 storage location.""" +class StorageDict(TypedDict, total=False): + """Dictionary form of `Storage`.""" + + s3: S3Storage | S3StorageDict | None + """An Amazon S3 storage location.""" + @dataclass(kw_only=True) class StorageLocation(_SerdeShape): """Describes a storage location in Amazon S3.""" @@ -1674,6 +2596,14 @@ class StorageLocation(_SerdeShape): key: str | None = ... """The key.""" +class StorageLocationDict(TypedDict, total=False): + """Dictionary form of `StorageLocation`.""" + + bucket: str | None + """The name of the S3 bucket.""" + key: str | None + """The key.""" + class StorageTier(UnknownEnumMixin, StrEnum): ARCHIVE = "archive" STANDARD = "standard" @@ -1880,6 +2810,34 @@ class SubnetConfiguration(_SerdeShape): subnet and the VPC endpoint. """ +class SubnetConfigurationDict(TypedDict, total=False): + """Dictionary form of `SubnetConfiguration`.""" + + subnet_id: str | None + """The ID of the subnet.""" + ipv4: str | None + """ + The IPv4 address to assign to the endpoint network interface in the + subnet. You must provide an IPv4 address if the VPC endpoint supports + IPv4. + + If you specify an IPv4 address when modifying a VPC endpoint, we replace + the existing endpoint network interface with a new endpoint network + interface with this IP address. This process temporarily disconnects the + subnet and the VPC endpoint. + """ + ipv6: str | None + """ + The IPv6 address to assign to the endpoint network interface in the + subnet. You must provide an IPv6 address if the VPC endpoint supports + IPv6. + + If you specify an IPv6 address when modifying a VPC endpoint, we replace + the existing endpoint network interface with a new endpoint network + interface with this IP address. This process temporarily disconnects the + subnet and the VPC endpoint. + """ + @dataclass(kw_only=True) class SubnetIpPrefixes(_SerdeShape): """Prefixes of the subnet IP.""" @@ -2038,6 +2996,24 @@ class Tag(_SerdeShape): Unicode characters. """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: str | None + """ + The key of the tag. + + Constraints: Tag keys are case-sensitive and accept a maximum of 127 + Unicode characters. May not begin with `aws:`. + """ + value: str | None + """ + The value of the tag. + + Constraints: Tag values are case-sensitive and accept a maximum of 256 + Unicode characters. + """ + @dataclass(kw_only=True) class TagDescription(_SerdeShape): """Describes a tag.""" @@ -2069,6 +3045,20 @@ class TagFieldSpecificationRequest(_SerdeShape): Amazon EC2 Tags feature fields in your custom log format. """ +class TagFieldSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `TagFieldSpecificationRequest`.""" + + resource_type: str | None + """ + The resource type for the tag keys associated with the Flow Logs Amazon + EC2 Tags feature fields in your custom log format. + """ + tag_keys: Sequence[str] | None + """ + The tag keys on your tagged resources to be displayed by the Flow Logs + Amazon EC2 Tags feature fields in your custom log format. + """ + @dataclass(kw_only=True) class TagFieldSpecificationResponse(_SerdeShape): """ @@ -2111,6 +3101,14 @@ class TagSpecification(_SerdeShape): tags: list[Tag] | None = ... """The tags to apply to the resource.""" +class TagSpecificationDict(TypedDict, total=False): + """Dictionary form of `TagSpecification`.""" + + resource_type: str | None + """The type of resource to tag on creation.""" + tags: Sequence[Tag | TagDict] | None + """The tags to apply to the resource.""" + @dataclass(kw_only=True) class TargetCapacitySpecification(_SerdeShape): """ @@ -2194,6 +3192,28 @@ class TargetCapacitySpecificationRequest(_SerdeShape): Default: `units` (the number of instances) """ +class TargetCapacitySpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `TargetCapacitySpecificationRequest`.""" + + total_target_capacity: Required[int] + """ + The number of units to request, filled using the default target capacity + type. + """ + on_demand_target_capacity: int | None + """The number of On-Demand units to request.""" + spot_target_capacity: int | None + """The number of Spot units to request.""" + default_target_capacity_type: str | None + """The default target capacity type.""" + target_capacity_unit_type: str | None + """ + The unit for the target capacity. You can specify this parameter only + when using attributed-based instance type selection. + + Default: `units` (the number of instances) + """ + class TargetCapacityUnitType(UnknownEnumMixin, StrEnum): VCPU = "vcpu" MEMORY_MIB = "memory-mib" @@ -2225,6 +3245,18 @@ class TargetConfigurationRequest(_SerdeShape): offering_id: str | None = ... """The Convertible Reserved Instance offering ID.""" +class TargetConfigurationRequestDict(TypedDict, total=False): + """Dictionary form of `TargetConfigurationRequest`.""" + + instance_count: int | None + """ + The number of instances the Convertible Reserved Instance offering can + be applied to. This parameter is reserved and cannot be specified in a + request + """ + offering_id: Required[str] + """The Convertible Reserved Instance offering ID.""" + @dataclass(kw_only=True) class TargetGroup(_SerdeShape): """Describes a load balancer target group.""" @@ -2232,6 +3264,12 @@ class TargetGroup(_SerdeShape): arn: str | None = ... """The Amazon Resource Name (ARN) of the target group.""" +class TargetGroupDict(TypedDict, total=False): + """Dictionary form of `TargetGroup`.""" + + arn: str | None + """The Amazon Resource Name (ARN) of the target group.""" + @dataclass(kw_only=True) class TargetGroupsConfig(_SerdeShape): """ @@ -2242,6 +3280,12 @@ class TargetGroupsConfig(_SerdeShape): target_groups: list[TargetGroup] | None = ... """One or more target groups.""" +class TargetGroupsConfigDict(TypedDict, total=False): + """Dictionary form of `TargetGroupsConfig`.""" + + target_groups: Sequence[TargetGroup | TargetGroupDict] | None + """One or more target groups.""" + @dataclass(kw_only=True) class TargetNetwork(_SerdeShape): """Describes a target network associated with a Client VPN endpoint.""" @@ -2325,6 +3369,27 @@ class TerminateClientVpnConnectionsInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class TerminateClientVpnConnectionsInputDict(TypedDict, total=False): + """Dictionary form of `TerminateClientVpnConnectionsInput`.""" + + client_vpn_endpoint_id: Required[str] + """The ID of the Client VPN endpoint to which the client is connected.""" + connection_id: str | None + """The ID of the client connection to be terminated.""" + username: str | None + """ + The name of the user who initiated the connection. Use this option to + terminate all active connections for the specified user. This option can + only be used if the user has established up to five connections. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class TerminateClientVpnConnectionsOutput(_SerdeShape): """Dataclass for TerminateClientVpnConnectionsOutput structure.""" @@ -2388,6 +3453,39 @@ class TerminateInstancesInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class TerminateInstancesInputDict(TypedDict, total=False): + """Dictionary form of `TerminateInstancesInput`.""" + + instance_ids: Required[Sequence[str]] + """ + The IDs of the instances. + + Constraints: Up to 1000 instance IDs. We recommend breaking up this + request into smaller batches. + """ + force: bool | None + """ + Forces the instances to terminate. The instance will first attempt a + graceful shutdown, which includes flushing file system caches and + metadata. If the graceful shutdown fails to complete within the timeout + period, the instance shuts down forcibly without flushing the file + system caches and metadata. + """ + skip_os_shutdown: bool | None + """ + Specifies whether to bypass the graceful OS shutdown process when the + instance is terminated. + + Default: `false` + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class TerminateInstancesOutput(_SerdeShape): """Dataclass for TerminateInstancesOutput structure.""" @@ -2416,6 +3514,12 @@ class ThroughResourcesStatementRequest(_SerdeShape): resource_statement: ResourceStatementRequest | None = ... """The resource statement.""" +class ThroughResourcesStatementRequestDict(TypedDict, total=False): + """Dictionary form of `ThroughResourcesStatementRequest`.""" + + resource_statement: ResourceStatementRequest | ResourceStatementRequestDict | None + """The resource statement.""" + class TieringOperationStatus(UnknownEnumMixin, StrEnum): ARCHIVAL_IN_PROGRESS = "archival-in-progress" ARCHIVAL_COMPLETED = "archival-completed" @@ -2446,6 +3550,20 @@ class TotalLocalStorageGB(_SerdeShape): not specified, there is no maximum limit. """ +class TotalLocalStorageGBDict(TypedDict, total=False): + """Dictionary form of `TotalLocalStorageGB`.""" + + min: float | None + """ + The minimum amount of total local storage, in GB. If this parameter is + not specified, there is no minimum limit. + """ + max: float | None + """ + The maximum amount of total local storage, in GB. If this parameter is + not specified, there is no maximum limit. + """ + @dataclass(kw_only=True) class TotalLocalStorageGBRequest(_SerdeShape): """The minimum and maximum amount of total local storage, in GB.""" @@ -2461,6 +3579,20 @@ class TotalLocalStorageGBRequest(_SerdeShape): limit, omit this parameter. """ +class TotalLocalStorageGBRequestDict(TypedDict, total=False): + """Dictionary form of `TotalLocalStorageGBRequest`.""" + + min: float | None + """ + The minimum amount of total local storage, in GB. To specify no minimum + limit, omit this parameter. + """ + max: float | None + """ + The maximum amount of total local storage, in GB. To specify no maximum + limit, omit this parameter. + """ + class TpmSupportValues(UnknownEnumMixin, StrEnum): V2_0 = "v2.0" @@ -2567,6 +3699,20 @@ class TrafficMirrorPortRangeRequest(_SerdeShape): and UDP protocols. """ +class TrafficMirrorPortRangeRequestDict(TypedDict, total=False): + """Dictionary form of `TrafficMirrorPortRangeRequest`.""" + + from_port: int | None + """ + The first port in the Traffic Mirror port range. This applies to the TCP + and UDP protocols. + """ + to_port: int | None + """ + The last port in the Traffic Mirror port range. This applies to the TCP + and UDP protocols. + """ + class TrafficMirrorRuleAction(UnknownEnumMixin, StrEnum): ACCEPT = "accept" REJECT = "reject" @@ -2872,6 +4018,26 @@ class TransitGatewayConfigurationInputStructure(_SerdeShape): `AvailabilityZoneIds`. """ +class TransitGatewayConfigurationInputStructureDict(TypedDict, total=False): + """Dictionary form of `TransitGatewayConfigurationInputStructure`.""" + + transit_gateway_id: str | None + """The ID of the Transit Gateway to associate with the Client VPN endpoint.""" + availability_zones: Sequence[str] | None + """ + The Availability Zone names for the Transit Gateway association. You can + specify up to the maximum number of Availability Zones supported by the + Transit Gateway. You cannot specify both `AvailabilityZones` and + `AvailabilityZoneIds`. + """ + availability_zone_ids: Sequence[str] | None + """ + The Availability Zone IDs for the Transit Gateway association. You can + specify up to the maximum number of Availability Zones supported by the + Transit Gateway. You cannot specify both `AvailabilityZones` and + `AvailabilityZoneIds`. + """ + @dataclass(kw_only=True) class TransitGatewayConnect(_SerdeShape): """Describes a transit gateway Connect attachment.""" @@ -2943,6 +4109,12 @@ class TransitGatewayConnectRequestBgpOptions(_SerdeShape): peer_asn: int | None = ... """The peer Autonomous System Number (ASN).""" +class TransitGatewayConnectRequestBgpOptionsDict(TypedDict, total=False): + """Dictionary form of `TransitGatewayConnectRequestBgpOptions`.""" + + peer_asn: int | None + """The peer Autonomous System Number (ASN).""" + class TransitGatewayMeteringPayerType(UnknownEnumMixin, StrEnum): SOURCE_ATTACHMENT_OWNER = "source-attachment-owner" DESTINATION_ATTACHMENT_OWNER = "destination-attachment-owner" @@ -3270,6 +4442,28 @@ class TransitGatewayNatRuleRequest(_SerdeShape): CIDR blocks in the rules for an attachment can't overlap each other. """ +class TransitGatewayNatRuleRequestDict(TypedDict, total=False): + """Dictionary form of `TransitGatewayNatRuleRequest`.""" + + rule_number: int | None + """ + The rule number. Valid values are 1 to 32766. Each rule number must be + unique within the request. + """ + match_source_cidr: str | None + """ + The IPv4 CIDR block of the source addresses to translate. The CIDR block + can't overlap the multicast range (`224.0.0.0/4`) or the link-local + range (`169.254.0.0/16`). + """ + nat_cidr: str | None + """ + The IPv4 CIDR block to translate the source addresses to. The CIDR block + must be in a private (RFC 1918) or shared address space (RFC 6598) + range, and must have the same prefix length as `MatchSourceCidr`. The + CIDR blocks in the rules for an attachment can't overlap each other. + """ + class TransitGatewayNatRuleState(UnknownEnumMixin, StrEnum): PENDING = "pending" ACTIVATED = "activated" @@ -3554,37 +4748,120 @@ class TransitGatewayRequestOptions(_SerdeShape): """Indicates whether multicast is enabled on the transit gateway""" transit_gateway_cidr_blocks: list[str] | None = ... """ - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a - size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or - larger for IPv6. + One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a + size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or + larger for IPv6. + """ + +class TransitGatewayRequestOptionsDict(TypedDict, total=False): + """Dictionary form of `TransitGatewayRequestOptions`.""" + + amazon_side_asn: int | None + """ + A private Autonomous System Number (ASN) for the Amazon side of a BGP + session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to + 4294967294 for 32-bit ASNs. The default is `64512`. + """ + auto_accept_shared_attachments: str | None + """ + Enable or disable automatic acceptance of attachment requests. Disabled + by default. + """ + default_route_table_association: str | None + """ + Enable or disable automatic association with the default association + route table. Enabled by default. + """ + default_route_table_propagation: str | None + """ + Enable or disable automatic propagation of routes to the default + propagation route table. Enabled by default. + """ + vpn_ecmp_support: str | None + """ + Enable or disable Equal Cost Multipath Protocol support. Enabled by + default. + """ + dns_support: str | None + """Enable or disable DNS support. Enabled by default.""" + security_group_referencing_support: str | None + """ + Enables you to reference a security group across VPCs attached to a + transit gateway to simplify security group management. + + This option is disabled by default. + + For more information about security group referencing, see [Security + group + referencing](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#vpc-attachment-security) + in the *Amazon Web Services Transit Gateways Guide*. + """ + multicast_support: str | None + """Indicates whether multicast is enabled on the transit gateway""" + transit_gateway_cidr_blocks: Sequence[str] | None + """ + One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a + size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or + larger for IPv6. + """ + +@dataclass(kw_only=True) +class TransitGatewayRequestPolicyRule(_SerdeShape): + """The matching criteria for a transit gateway policy table entry.""" + + source_cidr_block: str | None = ... + """The source CIDR block for the policy rule.""" + source_port_range: str | None = ... + """ + The source port or port range for the policy rule. You can specify a + port range only when `Protocol` is `6` (TCP) or `17` (UDP); for all + other protocols, this value must be `*`. + """ + destination_cidr_block: str | None = ... + """The destination CIDR block for the policy rule.""" + destination_port_range: str | None = ... + """ + The destination port or port range for the policy rule. You can specify + a port range only when `Protocol` is `6` (TCP) or `17` (UDP); for all + other protocols, this value must be `*`. + """ + protocol: str | None = ... """ + The protocol for the policy rule. Valid values are `1` (ICMP), `6` + (TCP), `17` (UDP), `47` (GRE), or `*` for all protocols. + """ + meta_data: TransitGatewayRequestPolicyRuleMetaData | None = ... + """The metadata key-value pair for the policy rule.""" -@dataclass(kw_only=True) -class TransitGatewayRequestPolicyRule(_SerdeShape): - """The matching criteria for a transit gateway policy table entry.""" +class TransitGatewayRequestPolicyRuleDict(TypedDict, total=False): + """Dictionary form of `TransitGatewayRequestPolicyRule`.""" - source_cidr_block: str | None = ... + source_cidr_block: str | None """The source CIDR block for the policy rule.""" - source_port_range: str | None = ... + source_port_range: str | None """ The source port or port range for the policy rule. You can specify a port range only when `Protocol` is `6` (TCP) or `17` (UDP); for all other protocols, this value must be `*`. """ - destination_cidr_block: str | None = ... + destination_cidr_block: str | None """The destination CIDR block for the policy rule.""" - destination_port_range: str | None = ... + destination_port_range: str | None """ The destination port or port range for the policy rule. You can specify a port range only when `Protocol` is `6` (TCP) or `17` (UDP); for all other protocols, this value must be `*`. """ - protocol: str | None = ... + protocol: str | None """ The protocol for the policy rule. Valid values are `1` (ICMP), `6` (TCP), `17` (UDP), `47` (GRE), or `*` for all protocols. """ - meta_data: TransitGatewayRequestPolicyRuleMetaData | None = ... + meta_data: ( + TransitGatewayRequestPolicyRuleMetaData + | TransitGatewayRequestPolicyRuleMetaDataDict + | None + ) """The metadata key-value pair for the policy rule.""" @dataclass(kw_only=True) @@ -3596,6 +4873,14 @@ class TransitGatewayRequestPolicyRuleMetaData(_SerdeShape): meta_data_value: str | None = ... """The value of the metadata pair for the policy rule.""" +class TransitGatewayRequestPolicyRuleMetaDataDict(TypedDict, total=False): + """Dictionary form of `TransitGatewayRequestPolicyRuleMetaData`.""" + + meta_data_key: str | None + """The key of the metadata pair for the policy rule.""" + meta_data_value: str | None + """The value of the metadata pair for the policy rule.""" + @dataclass(kw_only=True) class TransitGatewayRoute(_SerdeShape): """Describes a route for a transit gateway route table.""" @@ -3957,6 +5242,16 @@ class UnassignIpv6AddressesInput(_SerdeShape): ipv6_addresses: list[str] | None = ... """The IPv6 addresses to unassign from the network interface.""" +class UnassignIpv6AddressesInputDict(TypedDict, total=False): + """Dictionary form of `UnassignIpv6AddressesInput`.""" + + ipv6_prefixes: Sequence[str] | None + """The IPv6 prefixes to unassign from the network interface.""" + network_interface_id: Required[str] + """The ID of the network interface.""" + ipv6_addresses: Sequence[str] | None + """The IPv6 addresses to unassign from the network interface.""" + @dataclass(kw_only=True) class UnassignIpv6AddressesOutput(_SerdeShape): """Dataclass for UnassignIpv6AddressesOutput structure.""" @@ -3990,6 +5285,20 @@ class UnassignPrivateIpAddressesInput(_SerdeShape): than one IP address. """ +class UnassignPrivateIpAddressesInputDict(TypedDict, total=False): + """Dictionary form of `UnassignPrivateIpAddressesInput`.""" + + ipv4_prefixes: Sequence[str] | None + """The IPv4 prefixes to unassign from the network interface.""" + network_interface_id: Required[str] + """The ID of the network interface.""" + private_ip_addresses: Sequence[str] | None + """ + The secondary private IP addresses to unassign from the network + interface. You can specify this option multiple times to unassign more + than one IP address. + """ + @dataclass(kw_only=True) class UnassignPrivateIpAddressesOutput(_SerdeShape): """Dataclass for UnassignPrivateIpAddressesOutput structure.""" @@ -4024,6 +5333,27 @@ class UnassignPrivateNatGatewayAddressInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class UnassignPrivateNatGatewayAddressInputDict(TypedDict, total=False): + """Dictionary form of `UnassignPrivateNatGatewayAddressInput`.""" + + nat_gateway_id: Required[str] + """The ID of the NAT gateway.""" + private_ip_addresses: Required[Sequence[str]] + """The private IPv4 addresses you want to unassign.""" + max_drain_duration_seconds: int | None + """ + The maximum amount of time to wait (in seconds) before forcibly + releasing the IP addresses if connections are still in progress. Default + value is 350 seconds. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class UnassignPrivateNatGatewayAddressOutput(_SerdeShape): """Dataclass for UnassignPrivateNatGatewayAddressOutput structure.""" @@ -4061,6 +5391,19 @@ class UnlockSnapshotInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class UnlockSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `UnlockSnapshotInput`.""" + + snapshot_id: Required[str] + """The ID of the snapshot to unlock.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class UnlockSnapshotOutput(_SerdeShape): """Dataclass for UnlockSnapshotOutput structure.""" @@ -4089,6 +5432,19 @@ class UnmonitorInstancesInput(_SerdeShape): `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. """ +class UnmonitorInstancesInputDict(TypedDict, total=False): + """Dictionary form of `UnmonitorInstancesInput`.""" + + instance_ids: Required[Sequence[str]] + """The IDs of the instances.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the operation, + without actually making the request, and provides an error response. If + you have the required permissions, the error response is + `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class UnmonitorInstancesOutput(_SerdeShape): """Dataclass for UnmonitorInstancesOutput structure.""" @@ -4221,6 +5577,34 @@ class UpdateCapacityManagerMonitoredTagKeysInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateCapacityManagerMonitoredTagKeysInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCapacityManagerMonitoredTagKeysInput`.""" + + activate_tag_keys: Sequence[str] | None + """ + The tag keys to activate for monitoring. Once activated, these tag keys + will be included as dimensions in capacity metric data. + """ + deactivate_tag_keys: Sequence[str] | None + """ + The tag keys to deactivate. Deactivated tag keys will no longer be + included as dimensions in capacity metric data. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateCapacityManagerMonitoredTagKeysOutput(_SerdeShape): """Dataclass for UpdateCapacityManagerMonitoredTagKeysOutput structure.""" @@ -4263,6 +5647,30 @@ class UpdateCapacityManagerOrganizationsAccessInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateCapacityManagerOrganizationsAccessInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCapacityManagerOrganizationsAccessInput`.""" + + organizations_access: Required[bool] + """ + Specifies whether to enable or disable cross-account access for Amazon + Web Services Organizations. When enabled, Capacity Manager aggregates + data from all accounts in your organization. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + client_token: str | None + """ + Unique, case-sensitive identifier that you provide to ensure the + idempotency of the request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateCapacityManagerOrganizationsAccessOutput(_SerdeShape): """Dataclass for UpdateCapacityManagerOrganizationsAccessOutput structure.""" @@ -4315,6 +5723,35 @@ class UpdateInterruptibleCapacityReservationAllocationInput(_SerdeShape): the capacity to your source Capacity Reservation. """ +class UpdateInterruptibleCapacityReservationAllocationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateInterruptibleCapacityReservationAllocationInput`.""" + + capacity_reservation_id: Required[str] + """ + The ID of the source Capacity Reservation containing the interruptible + allocation to modify. + """ + target_instance_count: int | None + """ + The new number of instances to allocate. Enter a higher number to add + more capacity to share, or a lower number to reclaim capacity to your + source Capacity Reservation. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. + """ + zero_size_preference: str | None + """ + Specifies the updated behavior for the interruptible Capacity + Reservation when you reduce its allocation to zero instances. Specify + `retain` to keep the interruptible Capacity Reservation active at zero + capacity so that you can allocate instances to it again later. Specify + `default` to cancel the interruptible Capacity Reservation and return + the capacity to your source Capacity Reservation. + """ + @dataclass(kw_only=True) class UpdateInterruptibleCapacityReservationAllocationOutput(_SerdeShape): """ @@ -4387,6 +5824,40 @@ class UpdateSecurityGroupRuleDescriptionsEgressInput(_SerdeShape): either the description or the IP permissions. """ +class UpdateSecurityGroupRuleDescriptionsEgressInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSecurityGroupRuleDescriptionsEgressInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + group_id: str | None + """ + The ID of the security group. You must specify either the security group + ID or the security group name in the request. For security groups in a + nondefault VPC, you must specify the security group ID. + """ + group_name: str | None + """ + [Default VPC] The name of the security group. You must specify either + the security group ID or the security group name. + """ + ip_permissions: Sequence[IpPermission | IpPermissionDict] | None + """ + The IP permissions for the security group rule. You must specify either + the IP permissions or the description. + """ + security_group_rule_descriptions: ( + Sequence[SecurityGroupRuleDescription | SecurityGroupRuleDescriptionDict] | None + ) + """ + The description for the egress security group rules. You must specify + either the description or the IP permissions. + """ + @dataclass(kw_only=True) class UpdateSecurityGroupRuleDescriptionsEgressOutput(_SerdeShape): """Dataclass for UpdateSecurityGroupRuleDescriptionsEgressOutput structure.""" @@ -4435,6 +5906,41 @@ class UpdateSecurityGroupRuleDescriptionsIngressInput(_SerdeShape): either a description or IP permissions. """ +class UpdateSecurityGroupRuleDescriptionsIngressInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSecurityGroupRuleDescriptionsIngressInput`.""" + + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + group_id: str | None + """ + The ID of the security group. You must specify either the security group + ID or the security group name in the request. For security groups in a + nondefault VPC, you must specify the security group ID. + """ + group_name: str | None + """ + [Default VPC] The name of the security group. You must specify either + the security group ID or the security group name. For security groups in + a nondefault VPC, you must specify the security group ID. + """ + ip_permissions: Sequence[IpPermission | IpPermissionDict] | None + """ + The IP permissions for the security group rule. You must specify either + IP permissions or a description. + """ + security_group_rule_descriptions: ( + Sequence[SecurityGroupRuleDescription | SecurityGroupRuleDescriptionDict] | None + ) + """ + The description for the ingress security group rules. You must specify + either a description or IP permissions. + """ + @dataclass(kw_only=True) class UpdateSecurityGroupRuleDescriptionsIngressOutput(_SerdeShape): """ @@ -4466,6 +5972,14 @@ class UserBucket(_SerdeShape): s3_key: str | None = ... """The file name of the disk image.""" +class UserBucketDict(TypedDict, total=False): + """Dictionary form of `UserBucket`.""" + + s3_bucket: str | None + """The name of the Amazon S3 bucket where the disk image is located.""" + s3_key: str | None + """The file name of the disk image.""" + @dataclass(kw_only=True) class UserBucketDetails(_SerdeShape): """Describes the Amazon S3 bucket for the disk image.""" @@ -4486,6 +6000,16 @@ class UserData(_SerdeShape): text from a file. Otherwise, you must provide Base64-encoded text. """ +class UserDataDict(TypedDict, total=False): + """Dictionary form of `UserData`.""" + + data: str | None + """ + The user data. If you are using an Amazon Web Services SDK or command + line tool, Base64-encoding is performed for you, and you can load the + text from a file. Otherwise, you must provide Base64-encoded text. + """ + @dataclass(kw_only=True) class UserIdGroupPair(_SerdeShape): """Describes a security group and Amazon Web Services account ID pair.""" @@ -4523,6 +6047,42 @@ class UserIdGroupPair(_SerdeShape): peering_status: str | None = ... """The status of a VPC peering connection, if applicable.""" +class UserIdGroupPairDict(TypedDict, total=False): + """Dictionary form of `UserIdGroupPair`.""" + + description: str | None + """ + A description for the security group rule that references this user ID + group pair. + + Constraints: Up to 255 characters in length. Allowed characters are a-z, + A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$* + """ + user_id: str | None + """ + The ID of an Amazon Web Services account. + + For a referenced security group in another VPC, the account ID of the + referenced security group is returned in the response. If the referenced + security group is deleted, this value is not returned. + """ + group_name: str | None + """ + [Default VPC] The name of the security group. For a security group in + a nondefault VPC, use the security group ID. + + For a referenced security group in another VPC, this value is not + returned if the referenced security group is deleted. + """ + group_id: str | None + """The ID of the security group.""" + vpc_id: str | None + """The ID of the VPC for the referenced security group, if applicable.""" + vpc_peering_connection_id: str | None + """The ID of the VPC peering connection, if applicable.""" + peering_status: str | None + """The status of a VPC peering connection, if applicable.""" + class UserTrustProviderType(UnknownEnumMixin, StrEnum): IAM_IDENTITY_CENTER = "iam-identity-center" OIDC = "oidc" @@ -4546,6 +6106,24 @@ class ValidateSecurityGroupQuotasForInterfaceInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class ValidateSecurityGroupQuotasForInterfaceInputDict(TypedDict, total=False): + """Dictionary form of `ValidateSecurityGroupQuotasForInterfaceInput`.""" + + security_group_ids: Required[Sequence[str]] + """ + The IDs of the security groups to validate for association with a single + network interface. You must specify at least one ID, and each ID must be + unique. The number of IDs cannot exceed the maximum number of security + groups allowed per network interface. + """ + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class ValidateSecurityGroupQuotasForInterfaceOutput(_SerdeShape): """Dataclass for ValidateSecurityGroupQuotasForInterfaceOutput structure.""" @@ -4613,6 +6191,20 @@ class VCpuCountRange(_SerdeShape): is no maximum limit. """ +class VCpuCountRangeDict(TypedDict, total=False): + """Dictionary form of `VCpuCountRange`.""" + + min: int | None + """ + The minimum number of vCPUs. If the value is `0`, there is no minimum + limit. + """ + max: int | None + """ + The maximum number of vCPUs. If this parameter is not specified, there + is no maximum limit. + """ + @dataclass(kw_only=True) class VCpuCountRangeRequest(_SerdeShape): """The minimum and maximum number of vCPUs.""" @@ -4625,6 +6217,17 @@ class VCpuCountRangeRequest(_SerdeShape): parameter. """ +class VCpuCountRangeRequestDict(TypedDict, total=False): + """Dictionary form of `VCpuCountRangeRequest`.""" + + min: Required[int] + """The minimum number of vCPUs. To specify no minimum limit, specify `0`.""" + max: int | None + """ + The maximum number of vCPUs. To specify no maximum limit, omit this + parameter. + """ + @dataclass(kw_only=True) class VCpuInfo(_SerdeShape): """Describes the vCPU configurations for the instance type.""" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_12.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_12.pyi index 39c6f0f08..0227a401a 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_12.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/models_12.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -13,10 +15,12 @@ from ..models import ( CidrBlock, CloudWatchLogOptions, CloudWatchLogOptionsSpecification, + CloudWatchLogOptionsSpecificationDict, DeviceOptions, DnsEntry, DnsOptions, IKEVersionsRequestListValue, + IKEVersionsRequestListValueDict, InitializationStatusDetails, Ipv6CidrBlock, LastError, @@ -25,11 +29,17 @@ from ..models import ( OperatorResponse, PayerResponsibilityEntry, Phase1DHGroupNumbersRequestListValue, + Phase1DHGroupNumbersRequestListValueDict, Phase1EncryptionAlgorithmsRequestListValue, + Phase1EncryptionAlgorithmsRequestListValueDict, Phase1IntegrityAlgorithmsRequestListValue, + Phase1IntegrityAlgorithmsRequestListValueDict, Phase2DHGroupNumbersRequestListValue, + Phase2DHGroupNumbersRequestListValueDict, Phase2EncryptionAlgorithmsRequestListValue, + Phase2EncryptionAlgorithmsRequestListValueDict, Phase2IntegrityAlgorithmsRequestListValue, + Phase2IntegrityAlgorithmsRequestListValueDict, SecurityGroupIdentifier, SubnetIpPrefixes, Tag, @@ -179,6 +189,14 @@ class VerifiedAccessLogCloudWatchLogsDestinationOptions(_SerdeShape): log_group: str | None = ... """The ID of the CloudWatch Logs log group.""" +class VerifiedAccessLogCloudWatchLogsDestinationOptionsDict(TypedDict, total=False): + """Dictionary form of `VerifiedAccessLogCloudWatchLogsDestinationOptions`.""" + + enabled: Required[bool] + """Indicates whether logging is enabled.""" + log_group: str | None + """The ID of the CloudWatch Logs log group.""" + @dataclass(kw_only=True) class VerifiedAccessLogDeliveryStatus(_SerdeShape): """Describes a log delivery status.""" @@ -212,6 +230,16 @@ class VerifiedAccessLogKinesisDataFirehoseDestinationOptions(_SerdeShape): delivery_stream: str | None = ... """The ID of the delivery stream.""" +class VerifiedAccessLogKinesisDataFirehoseDestinationOptionsDict( + TypedDict, total=False +): + """Dictionary form of `VerifiedAccessLogKinesisDataFirehoseDestinationOptions`.""" + + enabled: Required[bool] + """Indicates whether logging is enabled.""" + delivery_stream: str | None + """The ID of the delivery stream.""" + @dataclass(kw_only=True) class VerifiedAccessLogOptions(_SerdeShape): """Options for Verified Access logs.""" @@ -236,6 +264,39 @@ class VerifiedAccessLogOptions(_SerdeShape): logs. """ +class VerifiedAccessLogOptionsDict(TypedDict, total=False): + """Dictionary form of `VerifiedAccessLogOptions`.""" + + s3: ( + VerifiedAccessLogS3DestinationOptions + | VerifiedAccessLogS3DestinationOptionsDict + | None + ) + """Sends Verified Access logs to Amazon S3.""" + cloud_watch_logs: ( + VerifiedAccessLogCloudWatchLogsDestinationOptions + | VerifiedAccessLogCloudWatchLogsDestinationOptionsDict + | None + ) + """Sends Verified Access logs to CloudWatch Logs.""" + kinesis_data_firehose: ( + VerifiedAccessLogKinesisDataFirehoseDestinationOptions + | VerifiedAccessLogKinesisDataFirehoseDestinationOptionsDict + | None + ) + """Sends Verified Access logs to Kinesis.""" + log_version: str | None + """ + The logging version. + + Valid values: `ocsf-0.1` | `ocsf-1.0.0-rc.2` + """ + include_trust_context: bool | None + """ + Indicates whether to include trust data sent by trust providers in the + logs. + """ + @dataclass(kw_only=True) class VerifiedAccessLogs(_SerdeShape): """Describes the options for Verified Access logs.""" @@ -282,6 +343,21 @@ class VerifiedAccessLogS3DestinationOptions(_SerdeShape): bucket. """ +class VerifiedAccessLogS3DestinationOptionsDict(TypedDict, total=False): + """Dictionary form of `VerifiedAccessLogS3DestinationOptions`.""" + + enabled: Required[bool] + """Indicates whether logging is enabled.""" + bucket_name: str | None + """The bucket name.""" + prefix: str | None + """The bucket prefix.""" + bucket_owner: str | None + """ + The ID of the Amazon Web Services account that owns the Amazon S3 + bucket. + """ + @dataclass(kw_only=True) class VerifiedAccessSseSpecificationRequest(_SerdeShape): """ @@ -301,6 +377,19 @@ class VerifiedAccessSseSpecificationRequest(_SerdeShape): kms_key_arn: str | None = ... """The ARN of the KMS key.""" +class VerifiedAccessSseSpecificationRequestDict(TypedDict, total=False): + """Dictionary form of `VerifiedAccessSseSpecificationRequest`.""" + + customer_managed_key_enabled: bool | None + """ + Enable or disable the use of customer managed KMS keys for server side + encryption. + + Valid values: `True` | `False` + """ + kms_key_arn: str | None + """The ARN of the KMS key.""" + @dataclass(kw_only=True) class VerifiedAccessSseSpecificationResponse(_SerdeShape): """The options in use for server side encryption.""" @@ -540,6 +629,12 @@ class VolumeDetail(_SerdeShape): size: int | None = ... """The size of the volume, in GiB.""" +class VolumeDetailDict(TypedDict, total=False): + """Dictionary form of `VolumeDetail`.""" + + size: Required[int] + """The size of the volume, in GiB.""" + @dataclass(kw_only=True) class VolumeModification(_SerdeShape): """Describes the modification status of an EBS volume.""" @@ -1063,6 +1158,52 @@ class VpcEncryptionControlConfiguration(_SerdeShape): enforcement. """ +class VpcEncryptionControlConfigurationDict(TypedDict, total=False): + """Dictionary form of `VpcEncryptionControlConfiguration`.""" + + mode: Required[str] + """The encryption mode for the VPC Encryption Control configuration.""" + internet_gateway_exclusion: str | None + """ + Specifies whether to exclude internet gateway traffic from encryption + enforcement. + """ + egress_only_internet_gateway_exclusion: str | None + """ + Specifies whether to exclude egress-only internet gateway traffic from + encryption enforcement. + """ + nat_gateway_exclusion: str | None + """ + Specifies whether to exclude NAT gateway traffic from encryption + enforcement. + """ + virtual_private_gateway_exclusion: str | None + """ + Specifies whether to exclude virtual private gateway traffic from + encryption enforcement. + """ + vpc_peering_exclusion: str | None + """ + Specifies whether to exclude VPC peering connection traffic from + encryption enforcement. + """ + lambda_exclusion: str | None + """ + Specifies whether to exclude Lambda function traffic from encryption + enforcement. + """ + vpc_lattice_exclusion: str | None + """ + Specifies whether to exclude VPC Lattice traffic from encryption + enforcement. + """ + elastic_file_system_exclusion: str | None + """ + Specifies whether to exclude Elastic File System traffic from encryption + enforcement. + """ + @dataclass(kw_only=True) class VpcEncryptionControlExclusion(_SerdeShape): """ @@ -1660,6 +1801,86 @@ class VpnConnectionOptionsSpecification(_SerdeShape): Default: `false` """ +class VpnConnectionOptionsSpecificationDict(TypedDict, total=False): + """Dictionary form of `VpnConnectionOptionsSpecification`.""" + + enable_acceleration: bool | None + """ + Indicate whether to enable acceleration for the VPN connection. + + Default: `false` + """ + tunnel_inside_ip_version: str | None + """ + Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. + + Default: `ipv4` + """ + tunnel_options: ( + Sequence[VpnTunnelOptionsSpecification | VpnTunnelOptionsSpecificationDict] + | None + ) + """The tunnel options for the VPN connection.""" + local_ipv4_network_cidr: str | None + """ + The IPv4 CIDR on the customer gateway (on-premises) side of the VPN + connection. + + Default: `0.0.0.0/0` + """ + remote_ipv4_network_cidr: str | None + """ + The IPv4 CIDR on the Amazon Web Services side of the VPN connection. + + Default: `0.0.0.0/0` + """ + local_ipv6_network_cidr: str | None + """ + The IPv6 CIDR on the customer gateway (on-premises) side of the VPN + connection. + + Default: `::/0` + """ + remote_ipv6_network_cidr: str | None + """ + The IPv6 CIDR on the Amazon Web Services side of the VPN connection. + + Default: `::/0` + """ + outside_ip_address_type: str | None + """ + The type of IP address assigned to the outside interface of the customer + gateway device. + + Valid values: `PrivateIpv4` | `PublicIpv4` | `Ipv6` + + Default: `PublicIpv4` + """ + transport_transit_gateway_attachment_id: str | None + """ + The transit gateway attachment ID to use for the VPN tunnel. + + Required if `OutsideIpAddressType` is set to `PrivateIpv4`. + """ + tunnel_bandwidth: str | None + """ + The desired bandwidth specification for the VPN tunnel, used when + creating or modifying VPN connection options to set the tunnel's + throughput capacity. `standard` supports up to 1.25 Gbps per tunnel, + while `large` supports up to 5 Gbps per tunnel. The default value is + `standard`. Existing VPN connections without a bandwidth setting will + automatically default to `standard`. + """ + static_routes_only: bool | None + """ + Indicate whether the VPN connection uses static routes only. If you are + creating a VPN connection for a device that does not support BGP, you + must specify `true`. Use CreateVpnConnectionRoute to create a static + route. + + Default: `false` + """ + class VpnEcmpSupportValue(UnknownEnumMixin, StrEnum): ENABLE = "enable" DISABLE = "disable" @@ -1733,6 +1954,14 @@ class VpnTunnelLogOptionsSpecification(_SerdeShape): cloud_watch_log_options: CloudWatchLogOptionsSpecification | None = ... """Options for sending VPN tunnel logs to CloudWatch.""" +class VpnTunnelLogOptionsSpecificationDict(TypedDict, total=False): + """Dictionary form of `VpnTunnelLogOptionsSpecification`.""" + + cloud_watch_log_options: ( + CloudWatchLogOptionsSpecification | CloudWatchLogOptionsSpecificationDict | None + ) + """Options for sending VPN tunnel logs to CloudWatch.""" + @dataclass(kw_only=True) class VpnTunnelOptionsSpecification(_SerdeShape): """The tunnel options for a single VPN tunnel.""" @@ -1914,6 +2143,218 @@ class VpnTunnelOptionsSpecification(_SerdeShape): enable_tunnel_lifecycle_control: bool | None = ... """Turn on or off tunnel endpoint lifecycle control feature.""" +class VpnTunnelOptionsSpecificationDict(TypedDict, total=False): + """Dictionary form of `VpnTunnelOptionsSpecification`.""" + + tunnel_inside_cidr: str | None + """ + The range of inside IPv4 addresses for the tunnel. Any specified CIDR + blocks must be unique across all VPN connections that use the same + virtual private gateway. + + Constraints: A size /30 CIDR block from the `169.254.0.0/16` range. The + following CIDR blocks are reserved and cannot be used: + + - `169.254.0.0/30` + + - `169.254.1.0/30` + + - `169.254.2.0/30` + + - `169.254.3.0/30` + + - `169.254.4.0/30` + + - `169.254.5.0/30` + + - `169.254.169.252/30` + """ + tunnel_inside_ipv6_cidr: str | None + """ + The range of inside IPv6 addresses for the tunnel. Any specified CIDR + blocks must be unique across all VPN connections that use the same + transit gateway. + + Constraints: A size /126 CIDR block from the local `fd00::/8` range. + """ + pre_shared_key: str | None + """ + The pre-shared key (PSK) to establish initial authentication between the + virtual private gateway and customer gateway. + + Constraints: Allowed characters are alphanumeric characters, periods + (.), and underscores (_). Must be between 8 and 64 characters in length + and cannot start with zero (0). + """ + phase1_lifetime_seconds: int | None + """ + The lifetime for phase 1 of the IKE negotiation, in seconds. + + Constraints: A value between 900 and 28,800. + + Default: `28800` + """ + phase2_lifetime_seconds: int | None + """ + The lifetime for phase 2 of the IKE negotiation, in seconds. + + Constraints: A value between 900 and 3,600. The value must be less than + the value for `Phase1LifetimeSeconds`. + + Default: `3600` + """ + rekey_margin_time_seconds: int | None + """ + The margin time, in seconds, before the phase 2 lifetime expires, during + which the Amazon Web Services side of the VPN connection performs an IKE + rekey. The exact time of the rekey is randomly selected based on the + value for `RekeyFuzzPercentage`. + + Constraints: A value between 60 and half of `Phase2LifetimeSeconds`. + + Default: `270` + """ + rekey_fuzz_percentage: int | None + """ + The percentage of the rekey window (determined by + `RekeyMarginTimeSeconds`) during which the rekey time is randomly + selected. + + Constraints: A value between 0 and 100. + + Default: `100` + """ + replay_window_size: int | None + """ + The number of packets in an IKE replay window. + + Constraints: A value between 64 and 2048. + + Default: `1024` + """ + dpd_timeout_seconds: int | None + """ + The number of seconds after which a DPD timeout occurs. + + Constraints: A value greater than or equal to 30. + + Default: `30` + """ + dpd_timeout_action: str | None + """ + The action to take after DPD timeout occurs. Specify `restart` to + restart the IKE initiation. Specify `clear` to end the IKE session. + + Valid Values: `clear` | `none` | `restart` + + Default: `clear` + """ + phase1_encryption_algorithms: ( + Sequence[ + Phase1EncryptionAlgorithmsRequestListValue + | Phase1EncryptionAlgorithmsRequestListValueDict + ] + | None + ) + """ + One or more encryption algorithms that are permitted for the VPN tunnel + for phase 1 IKE negotiations. + + Valid values: `AES128` | `AES256` | `AES128-GCM-16` | `AES256-GCM-16` + """ + phase2_encryption_algorithms: ( + Sequence[ + Phase2EncryptionAlgorithmsRequestListValue + | Phase2EncryptionAlgorithmsRequestListValueDict + ] + | None + ) + """ + One or more encryption algorithms that are permitted for the VPN tunnel + for phase 2 IKE negotiations. + + Valid values: `AES128` | `AES256` | `AES128-GCM-16` | `AES256-GCM-16` + """ + phase1_integrity_algorithms: ( + Sequence[ + Phase1IntegrityAlgorithmsRequestListValue + | Phase1IntegrityAlgorithmsRequestListValueDict + ] + | None + ) + """ + One or more integrity algorithms that are permitted for the VPN tunnel + for phase 1 IKE negotiations. + + Valid values: `SHA1` | `SHA2-256` | `SHA2-384` | `SHA2-512` + """ + phase2_integrity_algorithms: ( + Sequence[ + Phase2IntegrityAlgorithmsRequestListValue + | Phase2IntegrityAlgorithmsRequestListValueDict + ] + | None + ) + """ + One or more integrity algorithms that are permitted for the VPN tunnel + for phase 2 IKE negotiations. + + Valid values: `SHA1` | `SHA2-256` | `SHA2-384` | `SHA2-512` + """ + phase1_dh_group_numbers: ( + Sequence[ + Phase1DHGroupNumbersRequestListValue + | Phase1DHGroupNumbersRequestListValueDict + ] + | None + ) + """ + One or more Diffie-Hellman group numbers that are permitted for the VPN + tunnel for phase 1 IKE negotiations. + + Valid values: `2` | `14` | `15` | `16` | `17` | `18` | `19` | + `20` | `21` | `22` | `23` | `24` + """ + phase2_dh_group_numbers: ( + Sequence[ + Phase2DHGroupNumbersRequestListValue + | Phase2DHGroupNumbersRequestListValueDict + ] + | None + ) + """ + One or more Diffie-Hellman group numbers that are permitted for the VPN + tunnel for phase 2 IKE negotiations. + + Valid values: `2` | `5` | `14` | `15` | `16` | `17` | `18` | `19` + | `20` | `21` | `22` | `23` | `24` + """ + ike_versions: ( + Sequence[IKEVersionsRequestListValue | IKEVersionsRequestListValueDict] | None + ) + """ + The IKE versions that are permitted for the VPN tunnel. + + Valid values: `ikev1` | `ikev2` + """ + startup_action: str | None + """ + The action to take when the establishing the tunnel for the VPN + connection. By default, your customer gateway device must initiate the + IKE negotiation and bring up the tunnel. Specify `start` for Amazon Web + Services to initiate the IKE negotiation. + + Valid Values: `add` | `start` + + Default: `add` + """ + log_options: ( + VpnTunnelLogOptionsSpecification | VpnTunnelLogOptionsSpecificationDict | None + ) + """Options for logging VPN tunnel activity.""" + enable_tunnel_lifecycle_control: bool | None + """Turn on or off tunnel endpoint lifecycle control feature.""" + class VpnTunnelProvisioningStatus(UnknownEnumMixin, StrEnum): AVAILABLE = "available" PENDING = "pending" @@ -1942,6 +2383,19 @@ class WithdrawByoipCidrInput(_SerdeShape): Otherwise, it is `UnauthorizedOperation`. """ +class WithdrawByoipCidrInputDict(TypedDict, total=False): + """Dictionary form of `WithdrawByoipCidrInput`.""" + + cidr: Required[str] + """The address range, in CIDR notation.""" + dry_run: bool | None + """ + Checks whether you have the required permissions for the action, without + actually making the request, and provides an error response. If you have + the required permissions, the error response is `DryRunOperation`. + Otherwise, it is `UnauthorizedOperation`. + """ + @dataclass(kw_only=True) class WithdrawByoipCidrOutput(_SerdeShape): """Dataclass for WithdrawByoipCidrOutput structure.""" diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas.py index bb67a2980..262580e98 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas.py +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas.py @@ -5286,7 +5286,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:02d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_0.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_00.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_0.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_00.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_1.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_01.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_1.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_01.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_2.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_02.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_2.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_02.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_3.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_03.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_3.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_03.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_4.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_04.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_4.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_04.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_5.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_05.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_5.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_05.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_6.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_06.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_6.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_06.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_7.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_07.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_7.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_07.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_8.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_08.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_8.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_08.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_9.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_09.py similarity index 100% rename from clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_9.py rename to clients/aws-sdk-ec2/src/aws_sdk_ec2/_private/schemas_09.py diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/aio/client.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/aio/client.py index dca1fc829..9cc9a5026 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/aio/client.py +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,1627 +20,816 @@ if TYPE_CHECKING: from ..models import ( - AcceptAddressTransferInput, AcceptAddressTransferOutput, - AcceptCapacityReservationBillingOwnershipInput, AcceptCapacityReservationBillingOwnershipOutput, - AcceptReservedInstancesExchangeQuoteInput, AcceptReservedInstancesExchangeQuoteOutput, - AcceptTransitGatewayClientVpnAttachmentInput, AcceptTransitGatewayClientVpnAttachmentOutput, - AcceptTransitGatewayMulticastDomainAssociationsInput, AcceptTransitGatewayMulticastDomainAssociationsOutput, - AcceptTransitGatewayPeeringAttachmentInput, AcceptTransitGatewayPeeringAttachmentOutput, - AcceptTransitGatewayVpcAttachmentInput, AcceptTransitGatewayVpcAttachmentOutput, - AcceptVpcEndpointConnectionsInput, AcceptVpcEndpointConnectionsOutput, - AcceptVpcPeeringConnectionInput, AcceptVpcPeeringConnectionOutput, - AdvertiseByoipCidrInput, AdvertiseByoipCidrOutput, - AllocateAddressInput, AllocateAddressOutput, - AllocateHostsInput, AllocateHostsOutput, - AllocateIpamPoolCidrInput, AllocateIpamPoolCidrOutput, - ApplySecurityGroupsToClientVpnTargetNetworkInput, ApplySecurityGroupsToClientVpnTargetNetworkOutput, - AssignIpv6AddressesInput, AssignIpv6AddressesOutput, - AssignPrivateIpAddressesInput, AssignPrivateIpAddressesOutput, - AssignPrivateNatGatewayAddressInput, AssignPrivateNatGatewayAddressOutput, - AssociateAddressInput, AssociateAddressOutput, - AssociateApplicationStatusCheckInput, AssociateApplicationStatusCheckOutput, - AssociateCapacityReservationBillingOwnerInput, AssociateCapacityReservationBillingOwnerOutput, - AssociateClientVpnTargetNetworkInput, AssociateClientVpnTargetNetworkOutput, - AssociateDhcpOptionsInput, AssociateDhcpOptionsOutput, - AssociateEnclaveCertificateIamRoleInput, AssociateEnclaveCertificateIamRoleOutput, - AssociateIamInstanceProfileInput, AssociateIamInstanceProfileOutput, - AssociateInstanceEventWindowInput, AssociateInstanceEventWindowOutput, - AssociateIpamByoasnInput, AssociateIpamByoasnOutput, - AssociateIpamResourceDiscoveryInput, AssociateIpamResourceDiscoveryOutput, - AssociateNatGatewayAddressInput, AssociateNatGatewayAddressOutput, - AssociateRouteServerInput, AssociateRouteServerOutput, - AssociateRouteTableInput, AssociateRouteTableOutput, - AssociateSecurityGroupVpcInput, AssociateSecurityGroupVpcOutput, - AssociateSubnetCidrBlockInput, AssociateSubnetCidrBlockOutput, - AssociateTransitGatewayMulticastDomainInput, AssociateTransitGatewayMulticastDomainOutput, - AssociateTransitGatewayPolicyTableInput, AssociateTransitGatewayPolicyTableOutput, - AssociateTransitGatewayRouteTableInput, AssociateTransitGatewayRouteTableOutput, - AssociateTrunkInterfaceInput, AssociateTrunkInterfaceOutput, - AssociateVpcCidrBlockInput, AssociateVpcCidrBlockOutput, - AttachClassicLinkVpcInput, AttachClassicLinkVpcOutput, - AttachImageWatermarkInput, AttachImageWatermarkOutput, - AttachInternetGatewayInput, AttachInternetGatewayOutput, - AttachNetworkInterfaceInput, AttachNetworkInterfaceOutput, - AttachVerifiedAccessTrustProviderInput, AttachVerifiedAccessTrustProviderOutput, - AttachVolumeInput, AttachVolumeOutput, - AttachVpnGatewayInput, AttachVpnGatewayOutput, - AuthorizeClientVpnIngressInput, AuthorizeClientVpnIngressOutput, - AuthorizeSecurityGroupEgressInput, AuthorizeSecurityGroupEgressOutput, - AuthorizeSecurityGroupIngressInput, AuthorizeSecurityGroupIngressOutput, - BatchModifyIpamRoutingPolicyRegistrationsInput, BatchModifyIpamRoutingPolicyRegistrationsOutput, - BundleInstanceInput, BundleInstanceOutput, - CancelBundleTaskInput, CancelBundleTaskOutput, - CancelCapacityReservationFleetsInput, CancelCapacityReservationFleetsOutput, - CancelCapacityReservationInput, CancelCapacityReservationOutput, - CancelConversionTaskInput, CancelConversionTaskOutput, - CancelDeclarativePoliciesReportInput, CancelDeclarativePoliciesReportOutput, - CancelExportTaskInput, CancelExportTaskOutput, - CancelImageLaunchPermissionInput, CancelImageLaunchPermissionOutput, - CancelImportTaskInput, CancelImportTaskOutput, - CancelReservedInstancesListingInput, CancelReservedInstancesListingOutput, - CancelSpotFleetRequestsInput, CancelSpotFleetRequestsOutput, - CancelSpotInstanceRequestsInput, CancelSpotInstanceRequestsOutput, - ConfirmProductInstanceInput, ConfirmProductInstanceOutput, - CopyFpgaImageInput, CopyFpgaImageOutput, - CopyImageInput, CopyImageOutput, - CopySnapshotInput, CopySnapshotOutput, - CopyVolumesInput, CopyVolumesOutput, - CreateApplicationStatusCheckInput, CreateApplicationStatusCheckOutput, - CreateCapacityManagerDataExportInput, CreateCapacityManagerDataExportOutput, - CreateCapacityReservationBySplittingInput, CreateCapacityReservationBySplittingOutput, - CreateCapacityReservationCancellationQuoteInput, CreateCapacityReservationCancellationQuoteOutput, - CreateCapacityReservationDateChangeQuoteInput, CreateCapacityReservationDateChangeQuoteOutput, - CreateCapacityReservationFleetInput, CreateCapacityReservationFleetOutput, - CreateCapacityReservationInput, CreateCapacityReservationOutput, - CreateCarrierGatewayInput, CreateCarrierGatewayOutput, - CreateClientVpnEndpointInput, CreateClientVpnEndpointOutput, - CreateClientVpnRouteInput, CreateClientVpnRouteOutput, - CreateCoipCidrInput, CreateCoipCidrOutput, - CreateCoipPoolInput, CreateCoipPoolOutput, - CreateCustomerGatewayInput, CreateCustomerGatewayOutput, - CreateDefaultSubnetInput, CreateDefaultSubnetOutput, - CreateDefaultVpcInput, CreateDefaultVpcOutput, - CreateDelegateMacVolumeOwnershipTaskInput, CreateDelegateMacVolumeOwnershipTaskOutput, - CreateDhcpOptionsInput, CreateDhcpOptionsOutput, - CreateEgressOnlyInternetGatewayInput, CreateEgressOnlyInternetGatewayOutput, - CreateFleetInput, CreateFleetOutput, - CreateFlowLogsInput, CreateFlowLogsOutput, - CreateFpgaImageInput, CreateFpgaImageOutput, - CreateImageInput, CreateImageOutput, - CreateImageUsageReportInput, CreateImageUsageReportOutput, - CreateInstanceConnectEndpointInput, CreateInstanceConnectEndpointOutput, - CreateInstanceEventWindowInput, CreateInstanceEventWindowOutput, - CreateInstanceExportTaskInput, CreateInstanceExportTaskOutput, - CreateInternetGatewayInput, CreateInternetGatewayOutput, - CreateInterruptibleCapacityReservationAllocationInput, CreateInterruptibleCapacityReservationAllocationOutput, - CreateIpamExternalResourceVerificationTokenInput, CreateIpamExternalResourceVerificationTokenOutput, - CreateIpamInput, - CreateIpamInternetRegistryAssociationInput, CreateIpamInternetRegistryAssociationOutput, CreateIpamOutput, - CreateIpamPolicyInput, CreateIpamPolicyOutput, - CreateIpamPoolInput, CreateIpamPoolOutput, - CreateIpamPrefixListResolverInput, CreateIpamPrefixListResolverOutput, - CreateIpamPrefixListResolverTargetInput, CreateIpamPrefixListResolverTargetOutput, - CreateIpamResourceDiscoveryInput, CreateIpamResourceDiscoveryOutput, - CreateIpamRoutingPolicyRegistrationInput, CreateIpamRoutingPolicyRegistrationOutput, - CreateIpamScopeInput, CreateIpamScopeOutput, - CreateKeyPairInput, CreateKeyPairOutput, - CreateLaunchTemplateInput, CreateLaunchTemplateOutput, - CreateLaunchTemplateVersionInput, CreateLaunchTemplateVersionOutput, - CreateLocalGatewayRouteInput, CreateLocalGatewayRouteOutput, - CreateLocalGatewayRouteTableInput, CreateLocalGatewayRouteTableOutput, - CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, - CreateLocalGatewayRouteTableVpcAssociationInput, CreateLocalGatewayRouteTableVpcAssociationOutput, - CreateLocalGatewayVirtualInterfaceGroupInput, CreateLocalGatewayVirtualInterfaceGroupOutput, - CreateLocalGatewayVirtualInterfaceInput, CreateLocalGatewayVirtualInterfaceOutput, - CreateMacSystemIntegrityProtectionModificationTaskInput, CreateMacSystemIntegrityProtectionModificationTaskOutput, - CreateManagedPrefixListInput, CreateManagedPrefixListOutput, - CreateNatGatewayInput, CreateNatGatewayOutput, - CreateNetworkAclEntryInput, CreateNetworkAclEntryOutput, - CreateNetworkAclInput, CreateNetworkAclOutput, - CreateNetworkInsightsAccessScopeInput, CreateNetworkInsightsAccessScopeOutput, - CreateNetworkInsightsPathInput, CreateNetworkInsightsPathOutput, - CreateNetworkInterfaceInput, CreateNetworkInterfaceOutput, - CreateNetworkInterfacePermissionInput, CreateNetworkInterfacePermissionOutput, - CreatePlacementGroupInput, CreatePlacementGroupOutput, - CreatePublicIpv4PoolInput, CreatePublicIpv4PoolOutput, - CreateReplaceRootVolumeTaskInput, CreateReplaceRootVolumeTaskOutput, - CreateReservedInstancesListingInput, CreateReservedInstancesListingOutput, - CreateRestoreImageTaskInput, CreateRestoreImageTaskOutput, - CreateRouteInput, CreateRouteOutput, - CreateRouteServerEndpointInput, CreateRouteServerEndpointOutput, - CreateRouteServerInput, CreateRouteServerOutput, - CreateRouteServerPeerInput, CreateRouteServerPeerOutput, - CreateRouteTableInput, CreateRouteTableOutput, - CreateSecondaryNetworkInput, CreateSecondaryNetworkOutput, - CreateSecondarySubnetInput, CreateSecondarySubnetOutput, - CreateSecurityGroupInput, CreateSecurityGroupOutput, - CreateSnapshotInput, CreateSnapshotOutput, - CreateSnapshotsInput, CreateSnapshotsOutput, - CreateSpotDatafeedSubscriptionInput, CreateSpotDatafeedSubscriptionOutput, - CreateStoreImageTaskInput, CreateStoreImageTaskOutput, - CreateSubnetCidrReservationInput, CreateSubnetCidrReservationOutput, - CreateSubnetInput, CreateSubnetOutput, - CreateTagsInput, CreateTagsOutput, - CreateTrafficMirrorFilterInput, CreateTrafficMirrorFilterOutput, - CreateTrafficMirrorFilterRuleInput, CreateTrafficMirrorFilterRuleOutput, - CreateTrafficMirrorSessionInput, CreateTrafficMirrorSessionOutput, - CreateTrafficMirrorTargetInput, CreateTrafficMirrorTargetOutput, - CreateTransitGatewayConnectInput, CreateTransitGatewayConnectOutput, - CreateTransitGatewayConnectPeerInput, CreateTransitGatewayConnectPeerOutput, - CreateTransitGatewayInput, - CreateTransitGatewayMeteringPolicyEntryInput, CreateTransitGatewayMeteringPolicyEntryOutput, - CreateTransitGatewayMeteringPolicyInput, CreateTransitGatewayMeteringPolicyOutput, - CreateTransitGatewayMulticastDomainInput, CreateTransitGatewayMulticastDomainOutput, CreateTransitGatewayOutput, - CreateTransitGatewayPeeringAttachmentInput, CreateTransitGatewayPeeringAttachmentOutput, - CreateTransitGatewayPolicyTableEntryInput, CreateTransitGatewayPolicyTableEntryOutput, - CreateTransitGatewayPolicyTableInput, CreateTransitGatewayPolicyTableOutput, - CreateTransitGatewayPrefixListReferenceInput, CreateTransitGatewayPrefixListReferenceOutput, - CreateTransitGatewayRouteInput, CreateTransitGatewayRouteOutput, - CreateTransitGatewayRouteTableAnnouncementInput, CreateTransitGatewayRouteTableAnnouncementOutput, - CreateTransitGatewayRouteTableInput, CreateTransitGatewayRouteTableOutput, - CreateTransitGatewayVpcAttachmentInput, CreateTransitGatewayVpcAttachmentOutput, - CreateVerifiedAccessEndpointInput, CreateVerifiedAccessEndpointOutput, - CreateVerifiedAccessGroupInput, CreateVerifiedAccessGroupOutput, - CreateVerifiedAccessInstanceInput, CreateVerifiedAccessInstanceOutput, - CreateVerifiedAccessTrustProviderInput, CreateVerifiedAccessTrustProviderOutput, - CreateVolumeInput, CreateVolumeOutput, - CreateVpcBlockPublicAccessExclusionInput, CreateVpcBlockPublicAccessExclusionOutput, - CreateVpcEncryptionControlInput, CreateVpcEncryptionControlOutput, - CreateVpcEndpointConnectionNotificationInput, CreateVpcEndpointConnectionNotificationOutput, - CreateVpcEndpointInput, CreateVpcEndpointOutput, - CreateVpcEndpointServiceConfigurationInput, CreateVpcEndpointServiceConfigurationOutput, - CreateVpcInput, CreateVpcOutput, - CreateVpcPeeringConnectionInput, CreateVpcPeeringConnectionOutput, - CreateVpnConcentratorInput, CreateVpnConcentratorOutput, - CreateVpnConnectionInput, CreateVpnConnectionOutput, - CreateVpnConnectionRouteInput, CreateVpnConnectionRouteOutput, - CreateVpnGatewayInput, CreateVpnGatewayOutput, - DeleteApplicationStatusCheckInput, DeleteApplicationStatusCheckOutput, - DeleteCapacityManagerDataExportInput, DeleteCapacityManagerDataExportOutput, - DeleteCarrierGatewayInput, DeleteCarrierGatewayOutput, - DeleteClientVpnEndpointAuthorizationPolicyInput, DeleteClientVpnEndpointAuthorizationPolicyOutput, - DeleteClientVpnEndpointInput, DeleteClientVpnEndpointOutput, - DeleteClientVpnRouteInput, DeleteClientVpnRouteOutput, - DeleteCoipCidrInput, DeleteCoipCidrOutput, - DeleteCoipPoolInput, DeleteCoipPoolOutput, - DeleteCustomerGatewayInput, DeleteCustomerGatewayOutput, - DeleteDhcpOptionsInput, DeleteDhcpOptionsOutput, - DeleteEgressOnlyInternetGatewayInput, DeleteEgressOnlyInternetGatewayOutput, - DeleteFleetsInput, DeleteFleetsOutput, - DeleteFlowLogsInput, DeleteFlowLogsOutput, - DeleteFpgaImageInput, DeleteFpgaImageOutput, - DeleteImageUsageReportInput, DeleteImageUsageReportOutput, - DeleteInstanceConnectEndpointInput, DeleteInstanceConnectEndpointOutput, - DeleteInstanceEventWindowInput, DeleteInstanceEventWindowOutput, - DeleteInternetGatewayInput, DeleteInternetGatewayOutput, - DeleteIpamExternalResourceVerificationTokenInput, DeleteIpamExternalResourceVerificationTokenOutput, - DeleteIpamInput, - DeleteIpamInternetRegistryAssociationInput, DeleteIpamInternetRegistryAssociationOutput, DeleteIpamOutput, - DeleteIpamPolicyInput, DeleteIpamPolicyOutput, - DeleteIpamPoolInput, DeleteIpamPoolOutput, - DeleteIpamPrefixListResolverInput, DeleteIpamPrefixListResolverOutput, - DeleteIpamPrefixListResolverTargetInput, DeleteIpamPrefixListResolverTargetOutput, - DeleteIpamResourceDiscoveryInput, DeleteIpamResourceDiscoveryOutput, - DeleteIpamRoutingPolicyRegistrationInput, DeleteIpamRoutingPolicyRegistrationOutput, - DeleteIpamScopeInput, DeleteIpamScopeOutput, - DeleteKeyPairInput, DeleteKeyPairOutput, - DeleteLaunchTemplateInput, DeleteLaunchTemplateOutput, - DeleteLaunchTemplateVersionsInput, DeleteLaunchTemplateVersionsOutput, - DeleteLocalGatewayRouteInput, DeleteLocalGatewayRouteOutput, - DeleteLocalGatewayRouteTableInput, DeleteLocalGatewayRouteTableOutput, - DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, - DeleteLocalGatewayRouteTableVpcAssociationInput, DeleteLocalGatewayRouteTableVpcAssociationOutput, - DeleteLocalGatewayVirtualInterfaceGroupInput, DeleteLocalGatewayVirtualInterfaceGroupOutput, - DeleteLocalGatewayVirtualInterfaceInput, DeleteLocalGatewayVirtualInterfaceOutput, - DeleteManagedPrefixListInput, DeleteManagedPrefixListOutput, - DeleteNatGatewayInput, DeleteNatGatewayOutput, - DeleteNetworkAclEntryInput, DeleteNetworkAclEntryOutput, - DeleteNetworkAclInput, DeleteNetworkAclOutput, - DeleteNetworkInsightsAccessScopeAnalysisInput, DeleteNetworkInsightsAccessScopeAnalysisOutput, - DeleteNetworkInsightsAccessScopeInput, DeleteNetworkInsightsAccessScopeOutput, - DeleteNetworkInsightsAnalysisInput, DeleteNetworkInsightsAnalysisOutput, - DeleteNetworkInsightsPathInput, DeleteNetworkInsightsPathOutput, - DeleteNetworkInterfaceInput, DeleteNetworkInterfaceOutput, - DeleteNetworkInterfacePermissionInput, DeleteNetworkInterfacePermissionOutput, - DeletePlacementGroupInput, DeletePlacementGroupOutput, - DeletePublicIpv4PoolInput, DeletePublicIpv4PoolOutput, - DeleteQueuedReservedInstancesInput, DeleteQueuedReservedInstancesOutput, - DeleteRouteInput, DeleteRouteOutput, - DeleteRouteServerEndpointInput, DeleteRouteServerEndpointOutput, - DeleteRouteServerInput, DeleteRouteServerOutput, - DeleteRouteServerPeerInput, DeleteRouteServerPeerOutput, - DeleteRouteTableInput, DeleteRouteTableOutput, - DeleteSecondaryNetworkInput, DeleteSecondaryNetworkOutput, - DeleteSecondarySubnetInput, DeleteSecondarySubnetOutput, - DeleteSecurityGroupInput, DeleteSecurityGroupOutput, - DeleteSnapshotInput, DeleteSnapshotOutput, - DeleteSpotDatafeedSubscriptionInput, DeleteSpotDatafeedSubscriptionOutput, - DeleteSubnetCidrReservationInput, DeleteSubnetCidrReservationOutput, - DeleteSubnetInput, DeleteSubnetOutput, - DeleteTagsInput, DeleteTagsOutput, - DeleteTrafficMirrorFilterInput, DeleteTrafficMirrorFilterOutput, - DeleteTrafficMirrorFilterRuleInput, DeleteTrafficMirrorFilterRuleOutput, - DeleteTrafficMirrorSessionInput, DeleteTrafficMirrorSessionOutput, - DeleteTrafficMirrorTargetInput, DeleteTrafficMirrorTargetOutput, - DeleteTransitGatewayClientVpnAttachmentInput, DeleteTransitGatewayClientVpnAttachmentOutput, - DeleteTransitGatewayConnectInput, DeleteTransitGatewayConnectOutput, - DeleteTransitGatewayConnectPeerInput, DeleteTransitGatewayConnectPeerOutput, - DeleteTransitGatewayInput, - DeleteTransitGatewayMeteringPolicyEntryInput, DeleteTransitGatewayMeteringPolicyEntryOutput, - DeleteTransitGatewayMeteringPolicyInput, DeleteTransitGatewayMeteringPolicyOutput, - DeleteTransitGatewayMulticastDomainInput, DeleteTransitGatewayMulticastDomainOutput, DeleteTransitGatewayOutput, - DeleteTransitGatewayPeeringAttachmentInput, DeleteTransitGatewayPeeringAttachmentOutput, - DeleteTransitGatewayPolicyTableEntryInput, DeleteTransitGatewayPolicyTableEntryOutput, - DeleteTransitGatewayPolicyTableInput, DeleteTransitGatewayPolicyTableOutput, - DeleteTransitGatewayPrefixListReferenceInput, DeleteTransitGatewayPrefixListReferenceOutput, - DeleteTransitGatewayRouteInput, DeleteTransitGatewayRouteOutput, - DeleteTransitGatewayRouteTableAnnouncementInput, DeleteTransitGatewayRouteTableAnnouncementOutput, - DeleteTransitGatewayRouteTableInput, DeleteTransitGatewayRouteTableOutput, - DeleteTransitGatewayVpcAttachmentInput, DeleteTransitGatewayVpcAttachmentOutput, - DeleteVerifiedAccessEndpointInput, DeleteVerifiedAccessEndpointOutput, - DeleteVerifiedAccessGroupInput, DeleteVerifiedAccessGroupOutput, - DeleteVerifiedAccessInstanceInput, DeleteVerifiedAccessInstanceOutput, - DeleteVerifiedAccessTrustProviderInput, DeleteVerifiedAccessTrustProviderOutput, - DeleteVolumeInput, DeleteVolumeOutput, - DeleteVpcBlockPublicAccessExclusionInput, DeleteVpcBlockPublicAccessExclusionOutput, - DeleteVpcEncryptionControlInput, DeleteVpcEncryptionControlOutput, - DeleteVpcEndpointConnectionNotificationsInput, DeleteVpcEndpointConnectionNotificationsOutput, - DeleteVpcEndpointServiceConfigurationsInput, DeleteVpcEndpointServiceConfigurationsOutput, - DeleteVpcEndpointsInput, DeleteVpcEndpointsOutput, - DeleteVpcInput, DeleteVpcOutput, - DeleteVpcPeeringConnectionInput, DeleteVpcPeeringConnectionOutput, - DeleteVpnConcentratorInput, DeleteVpnConcentratorOutput, - DeleteVpnConnectionInput, DeleteVpnConnectionOutput, - DeleteVpnConnectionRouteInput, DeleteVpnConnectionRouteOutput, - DeleteVpnGatewayInput, DeleteVpnGatewayOutput, - DeprovisionByoipCidrInput, DeprovisionByoipCidrOutput, - DeprovisionIpamByoasnInput, DeprovisionIpamByoasnOutput, - DeprovisionIpamPoolCidrInput, DeprovisionIpamPoolCidrOutput, - DeprovisionPublicIpv4PoolCidrInput, DeprovisionPublicIpv4PoolCidrOutput, - DeregisterImageInput, DeregisterImageOutput, - DeregisterInstanceEventNotificationAttributesInput, DeregisterInstanceEventNotificationAttributesOutput, - DeregisterTransitGatewayMulticastGroupMembersInput, DeregisterTransitGatewayMulticastGroupMembersOutput, - DeregisterTransitGatewayMulticastGroupSourcesInput, DeregisterTransitGatewayMulticastGroupSourcesOutput, - DescribeAccountAttributesInput, DescribeAccountAttributesOutput, - DescribeAccountVpcEncryptionControlInput, DescribeAccountVpcEncryptionControlOutput, - DescribeAddressTransfersInput, DescribeAddressTransfersOutput, - DescribeAddressesAttributeInput, DescribeAddressesAttributeOutput, - DescribeAddressesInput, DescribeAddressesOutput, - DescribeAggregateIdFormatInput, DescribeAggregateIdFormatOutput, - DescribeApplicationStatusCheckAssociationsInput, DescribeApplicationStatusCheckAssociationsOutput, - DescribeApplicationStatusChecksInput, DescribeApplicationStatusChecksOutput, - DescribeApplicationStatusInput, DescribeApplicationStatusOutput, - DescribeAvailabilityZonesInput, DescribeAvailabilityZonesOutput, - DescribeAwsNetworkPerformanceMetricSubscriptionsInput, DescribeAwsNetworkPerformanceMetricSubscriptionsOutput, - DescribeBundleTasksInput, DescribeBundleTasksOutput, - DescribeByoipCidrsInput, DescribeByoipCidrsOutput, - DescribeCapacityBlockExtensionHistoryInput, DescribeCapacityBlockExtensionHistoryOutput, - DescribeCapacityBlockExtensionOfferingsInput, DescribeCapacityBlockExtensionOfferingsOutput, - DescribeCapacityBlockOfferingsInput, DescribeCapacityBlockOfferingsOutput, - DescribeCapacityBlockStatusInput, DescribeCapacityBlockStatusOutput, - DescribeCapacityBlocksInput, DescribeCapacityBlocksOutput, - DescribeCapacityManagerDataExportsInput, DescribeCapacityManagerDataExportsOutput, - DescribeCapacityReservationBillingRequestsInput, DescribeCapacityReservationBillingRequestsOutput, - DescribeCapacityReservationCancellationQuotesInput, DescribeCapacityReservationCancellationQuotesOutput, - DescribeCapacityReservationDateChangeQuotesInput, DescribeCapacityReservationDateChangeQuotesOutput, - DescribeCapacityReservationFleetsInput, DescribeCapacityReservationFleetsOutput, - DescribeCapacityReservationTopologyInput, DescribeCapacityReservationTopologyOutput, - DescribeCapacityReservationsInput, DescribeCapacityReservationsOutput, - DescribeCarrierGatewaysInput, DescribeCarrierGatewaysOutput, - DescribeClassicLinkInstancesInput, DescribeClassicLinkInstancesOutput, - DescribeClientVpnAuthorizationRulesInput, DescribeClientVpnAuthorizationRulesOutput, - DescribeClientVpnConnectionsInput, DescribeClientVpnConnectionsOutput, - DescribeClientVpnEndpointsInput, DescribeClientVpnEndpointsOutput, - DescribeClientVpnRoutesInput, DescribeClientVpnRoutesOutput, - DescribeClientVpnTargetNetworksInput, DescribeClientVpnTargetNetworksOutput, - DescribeCoipPoolsInput, DescribeCoipPoolsOutput, - DescribeConversionTasksInput, DescribeConversionTasksOutput, - DescribeCustomerGatewaysInput, DescribeCustomerGatewaysOutput, - DescribeDeclarativePoliciesReportsInput, DescribeDeclarativePoliciesReportsOutput, - DescribeDhcpOptionsInput, DescribeDhcpOptionsOutput, - DescribeEgressOnlyInternetGatewaysInput, DescribeEgressOnlyInternetGatewaysOutput, - DescribeElasticGpusInput, DescribeElasticGpusOutput, - DescribeExportImageTasksInput, DescribeExportImageTasksOutput, - DescribeExportTasksInput, DescribeExportTasksOutput, - DescribeFastLaunchImagesInput, DescribeFastLaunchImagesOutput, - DescribeFastSnapshotRestoresInput, DescribeFastSnapshotRestoresOutput, - DescribeFleetHistoryInput, DescribeFleetHistoryOutput, - DescribeFleetInstancesInput, DescribeFleetInstancesOutput, - DescribeFleetsInput, DescribeFleetsOutput, - DescribeFlowLogsInput, DescribeFlowLogsOutput, - DescribeFpgaImageAttributeInput, DescribeFpgaImageAttributeOutput, - DescribeFpgaImagesInput, DescribeFpgaImagesOutput, - DescribeHostReservationOfferingsInput, DescribeHostReservationOfferingsOutput, - DescribeHostReservationsInput, DescribeHostReservationsOutput, - DescribeHostsInput, DescribeHostsOutput, - DescribeIamInstanceProfileAssociationsInput, DescribeIamInstanceProfileAssociationsOutput, - DescribeIdFormatInput, DescribeIdFormatOutput, - DescribeIdentityIdFormatInput, DescribeIdentityIdFormatOutput, - DescribeImageAttributeInput, DescribeImageAttributeOutput, - DescribeImageReferencesInput, DescribeImageReferencesOutput, - DescribeImageUsageReportEntriesInput, DescribeImageUsageReportEntriesOutput, - DescribeImageUsageReportsInput, DescribeImageUsageReportsOutput, - DescribeImagesInput, DescribeImagesOutput, - DescribeImportImageTasksInput, DescribeImportImageTasksOutput, - DescribeImportSnapshotTasksInput, DescribeImportSnapshotTasksOutput, - DescribeInstanceAttributeInput, DescribeInstanceAttributeOutput, - DescribeInstanceConnectEndpointsInput, DescribeInstanceConnectEndpointsOutput, - DescribeInstanceCreditSpecificationsInput, DescribeInstanceCreditSpecificationsOutput, - DescribeInstanceEventNotificationAttributesInput, DescribeInstanceEventNotificationAttributesOutput, - DescribeInstanceEventWindowsInput, DescribeInstanceEventWindowsOutput, - DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput, - DescribeInstanceSqlHaHistoryStatesInput, DescribeInstanceSqlHaHistoryStatesOutput, - DescribeInstanceSqlHaStatesInput, DescribeInstanceSqlHaStatesOutput, - DescribeInstanceStatusInput, DescribeInstanceStatusOutput, - DescribeInstanceTopologyInput, DescribeInstanceTopologyOutput, - DescribeInstanceTypeOfferingsInput, DescribeInstanceTypeOfferingsOutput, - DescribeInstanceTypesInput, DescribeInstanceTypesOutput, - DescribeInstancesInput, DescribeInstancesOutput, - DescribeInternetGatewaysInput, DescribeInternetGatewaysOutput, - DescribeIpamByoasnInput, DescribeIpamByoasnOutput, - DescribeIpamExternalResourceVerificationTokensInput, DescribeIpamExternalResourceVerificationTokensOutput, - DescribeIpamInternetRegistryAssociationsInput, DescribeIpamInternetRegistryAssociationsOutput, - DescribeIpamPoliciesInput, DescribeIpamPoliciesOutput, - DescribeIpamPoolAllocationsInput, DescribeIpamPoolAllocationsOutput, - DescribeIpamPoolsInput, DescribeIpamPoolsOutput, - DescribeIpamPrefixListResolverTargetsInput, DescribeIpamPrefixListResolverTargetsOutput, - DescribeIpamPrefixListResolversInput, DescribeIpamPrefixListResolversOutput, - DescribeIpamResourceDiscoveriesInput, DescribeIpamResourceDiscoveriesOutput, - DescribeIpamResourceDiscoveryAssociationsInput, DescribeIpamResourceDiscoveryAssociationsOutput, - DescribeIpamScopesInput, DescribeIpamScopesOutput, - DescribeIpamsInput, DescribeIpamsOutput, - DescribeIpv6PoolsInput, DescribeIpv6PoolsOutput, - DescribeKeyPairsInput, DescribeKeyPairsOutput, - DescribeLaunchTemplateVersionsInput, DescribeLaunchTemplateVersionsOutput, - DescribeLaunchTemplatesInput, DescribeLaunchTemplatesOutput, - DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, - DescribeLocalGatewayRouteTableVpcAssociationsInput, DescribeLocalGatewayRouteTableVpcAssociationsOutput, - DescribeLocalGatewayRouteTablesInput, DescribeLocalGatewayRouteTablesOutput, - DescribeLocalGatewayVirtualInterfaceGroupsInput, DescribeLocalGatewayVirtualInterfaceGroupsOutput, - DescribeLocalGatewayVirtualInterfacesInput, DescribeLocalGatewayVirtualInterfacesOutput, - DescribeLocalGatewaysInput, DescribeLocalGatewaysOutput, - DescribeLockedSnapshotsInput, DescribeLockedSnapshotsOutput, - DescribeMacHostsInput, DescribeMacHostsOutput, - DescribeMacModificationTasksInput, DescribeMacModificationTasksOutput, - DescribeManagedPrefixListsInput, DescribeManagedPrefixListsOutput, - DescribeMovingAddressesInput, DescribeMovingAddressesOutput, - DescribeNatGatewaysInput, DescribeNatGatewaysOutput, - DescribeNetworkAclsInput, DescribeNetworkAclsOutput, - DescribeNetworkInsightsAccessScopeAnalysesInput, DescribeNetworkInsightsAccessScopeAnalysesOutput, - DescribeNetworkInsightsAccessScopesInput, DescribeNetworkInsightsAccessScopesOutput, - DescribeNetworkInsightsAnalysesInput, DescribeNetworkInsightsAnalysesOutput, - DescribeNetworkInsightsPathsInput, DescribeNetworkInsightsPathsOutput, - DescribeNetworkInterfaceAttributeInput, DescribeNetworkInterfaceAttributeOutput, - DescribeNetworkInterfacePermissionsInput, DescribeNetworkInterfacePermissionsOutput, - DescribeNetworkInterfacesInput, DescribeNetworkInterfacesOutput, - DescribeOutpostLagsInput, DescribeOutpostLagsOutput, - DescribePlacementGroupsInput, DescribePlacementGroupsOutput, - DescribePrefixListsInput, DescribePrefixListsOutput, - DescribePrincipalIdFormatInput, DescribePrincipalIdFormatOutput, - DescribePublicIpv4PoolsInput, DescribePublicIpv4PoolsOutput, - DescribeRegionsInput, DescribeRegionsOutput, - DescribeReplaceRootVolumeTasksInput, DescribeReplaceRootVolumeTasksOutput, - DescribeReservedInstancesInput, - DescribeReservedInstancesListingsInput, DescribeReservedInstancesListingsOutput, - DescribeReservedInstancesModificationsInput, DescribeReservedInstancesModificationsOutput, - DescribeReservedInstancesOfferingsInput, DescribeReservedInstancesOfferingsOutput, DescribeReservedInstancesOutput, - DescribeRouteServerEndpointsInput, DescribeRouteServerEndpointsOutput, - DescribeRouteServerPeersInput, DescribeRouteServerPeersOutput, - DescribeRouteServersInput, DescribeRouteServersOutput, - DescribeRouteTablesInput, DescribeRouteTablesOutput, - DescribeScheduledInstanceAvailabilityInput, DescribeScheduledInstanceAvailabilityOutput, - DescribeScheduledInstancesInput, DescribeScheduledInstancesOutput, - DescribeSecondaryInterfacesInput, DescribeSecondaryInterfacesOutput, - DescribeSecondaryNetworksInput, DescribeSecondaryNetworksOutput, - DescribeSecondarySubnetsInput, DescribeSecondarySubnetsOutput, - DescribeSecurityGroupReferencesInput, DescribeSecurityGroupReferencesOutput, - DescribeSecurityGroupRulesInput, DescribeSecurityGroupRulesOutput, - DescribeSecurityGroupVpcAssociationsInput, DescribeSecurityGroupVpcAssociationsOutput, - DescribeSecurityGroupsInput, DescribeSecurityGroupsOutput, - DescribeServiceLinkVirtualInterfacesInput, DescribeServiceLinkVirtualInterfacesOutput, - DescribeSnapshotAttributeInput, DescribeSnapshotAttributeOutput, - DescribeSnapshotTierStatusInput, DescribeSnapshotTierStatusOutput, - DescribeSnapshotsInput, DescribeSnapshotsOutput, - DescribeSpotDatafeedSubscriptionInput, DescribeSpotDatafeedSubscriptionOutput, - DescribeSpotFleetInstancesInput, DescribeSpotFleetInstancesOutput, - DescribeSpotFleetRequestHistoryInput, DescribeSpotFleetRequestHistoryOutput, - DescribeSpotFleetRequestsInput, DescribeSpotFleetRequestsOutput, - DescribeSpotInstanceRequestsInput, DescribeSpotInstanceRequestsOutput, - DescribeSpotPriceHistoryInput, DescribeSpotPriceHistoryOutput, - DescribeStaleSecurityGroupsInput, DescribeStaleSecurityGroupsOutput, - DescribeStoreImageTasksInput, DescribeStoreImageTasksOutput, - DescribeSubnetsInput, DescribeSubnetsOutput, - DescribeTagsInput, DescribeTagsOutput, - DescribeTrafficMirrorFilterRulesInput, DescribeTrafficMirrorFilterRulesOutput, - DescribeTrafficMirrorFiltersInput, DescribeTrafficMirrorFiltersOutput, - DescribeTrafficMirrorSessionsInput, DescribeTrafficMirrorSessionsOutput, - DescribeTrafficMirrorTargetsInput, DescribeTrafficMirrorTargetsOutput, - DescribeTransitGatewayAttachmentsInput, DescribeTransitGatewayAttachmentsOutput, - DescribeTransitGatewayConnectPeersInput, DescribeTransitGatewayConnectPeersOutput, - DescribeTransitGatewayConnectsInput, DescribeTransitGatewayConnectsOutput, - DescribeTransitGatewayMeteringPoliciesInput, DescribeTransitGatewayMeteringPoliciesOutput, - DescribeTransitGatewayMulticastDomainsInput, DescribeTransitGatewayMulticastDomainsOutput, - DescribeTransitGatewayPeeringAttachmentsInput, DescribeTransitGatewayPeeringAttachmentsOutput, - DescribeTransitGatewayPolicyTablesInput, DescribeTransitGatewayPolicyTablesOutput, - DescribeTransitGatewayRouteTableAnnouncementsInput, DescribeTransitGatewayRouteTableAnnouncementsOutput, - DescribeTransitGatewayRouteTablesInput, DescribeTransitGatewayRouteTablesOutput, - DescribeTransitGatewayVpcAttachmentsInput, DescribeTransitGatewayVpcAttachmentsOutput, - DescribeTransitGatewaysInput, DescribeTransitGatewaysOutput, - DescribeTrunkInterfaceAssociationsInput, DescribeTrunkInterfaceAssociationsOutput, - DescribeVerifiedAccessEndpointsInput, DescribeVerifiedAccessEndpointsOutput, - DescribeVerifiedAccessGroupsInput, DescribeVerifiedAccessGroupsOutput, - DescribeVerifiedAccessInstanceLoggingConfigurationsInput, DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, - DescribeVerifiedAccessInstancesInput, DescribeVerifiedAccessInstancesOutput, - DescribeVerifiedAccessTrustProvidersInput, DescribeVerifiedAccessTrustProvidersOutput, - DescribeVolumeAttributeInput, DescribeVolumeAttributeOutput, - DescribeVolumeStatusInput, DescribeVolumeStatusOutput, - DescribeVolumesInput, - DescribeVolumesModificationsInput, DescribeVolumesModificationsOutput, DescribeVolumesOutput, - DescribeVpcAttributeInput, DescribeVpcAttributeOutput, - DescribeVpcBlockPublicAccessExclusionsInput, DescribeVpcBlockPublicAccessExclusionsOutput, - DescribeVpcBlockPublicAccessOptionsInput, DescribeVpcBlockPublicAccessOptionsOutput, - DescribeVpcClassicLinkDnsSupportInput, DescribeVpcClassicLinkDnsSupportOutput, - DescribeVpcClassicLinkInput, DescribeVpcClassicLinkOutput, - DescribeVpcEncryptionControlsInput, DescribeVpcEncryptionControlsOutput, - DescribeVpcEndpointAssociationsInput, DescribeVpcEndpointAssociationsOutput, - DescribeVpcEndpointConnectionNotificationsInput, DescribeVpcEndpointConnectionNotificationsOutput, - DescribeVpcEndpointConnectionsInput, DescribeVpcEndpointConnectionsOutput, - DescribeVpcEndpointServiceConfigurationsInput, DescribeVpcEndpointServiceConfigurationsOutput, - DescribeVpcEndpointServicePermissionsInput, DescribeVpcEndpointServicePermissionsOutput, - DescribeVpcEndpointServicesInput, DescribeVpcEndpointServicesOutput, - DescribeVpcEndpointsInput, DescribeVpcEndpointsOutput, - DescribeVpcPeeringConnectionsInput, DescribeVpcPeeringConnectionsOutput, - DescribeVpcsInput, DescribeVpcsOutput, - DescribeVpnConcentratorsInput, DescribeVpnConcentratorsOutput, - DescribeVpnConnectionsInput, DescribeVpnConnectionsOutput, - DescribeVpnGatewaysInput, DescribeVpnGatewaysOutput, - DetachClassicLinkVpcInput, DetachClassicLinkVpcOutput, - DetachImageWatermarkInput, DetachImageWatermarkOutput, - DetachInternetGatewayInput, DetachInternetGatewayOutput, - DetachNetworkInterfaceInput, DetachNetworkInterfaceOutput, - DetachVerifiedAccessTrustProviderInput, DetachVerifiedAccessTrustProviderOutput, - DetachVolumeInput, DetachVolumeOutput, - DetachVpnGatewayInput, DetachVpnGatewayOutput, - DisableAddressTransferInput, DisableAddressTransferOutput, - DisableAllowedImagesSettingsInput, DisableAllowedImagesSettingsOutput, - DisableApplicationStatusCheckSuppressionInput, DisableApplicationStatusCheckSuppressionOutput, - DisableAwsNetworkPerformanceMetricSubscriptionInput, DisableAwsNetworkPerformanceMetricSubscriptionOutput, - DisableCapacityManagerInput, DisableCapacityManagerOutput, - DisableEbsEncryptionByDefaultInput, DisableEbsEncryptionByDefaultOutput, - DisableFastLaunchInput, DisableFastLaunchOutput, - DisableFastSnapshotRestoresInput, DisableFastSnapshotRestoresOutput, - DisableImageBlockPublicAccessInput, DisableImageBlockPublicAccessOutput, - DisableImageDeprecationInput, DisableImageDeprecationOutput, - DisableImageDeregistrationProtectionInput, DisableImageDeregistrationProtectionOutput, - DisableImageInput, DisableImageOutput, - DisableInstanceSqlHaStandbyDetectionsInput, DisableInstanceSqlHaStandbyDetectionsOutput, - DisableIpamOrganizationAdminAccountInput, DisableIpamOrganizationAdminAccountOutput, - DisableIpamPolicyInput, DisableIpamPolicyOutput, - DisableRouteServerPropagationInput, DisableRouteServerPropagationOutput, - DisableSerialConsoleAccessInput, DisableSerialConsoleAccessOutput, - DisableSnapshotBlockPublicAccessInput, DisableSnapshotBlockPublicAccessOutput, - DisableTransitGatewayRouteTablePropagationInput, DisableTransitGatewayRouteTablePropagationOutput, - DisableVgwRoutePropagationInput, DisableVgwRoutePropagationOutput, - DisableVpcClassicLinkDnsSupportInput, DisableVpcClassicLinkDnsSupportOutput, - DisableVpcClassicLinkInput, DisableVpcClassicLinkOutput, - DisassociateAddressInput, DisassociateAddressOutput, - DisassociateApplicationStatusCheckInput, DisassociateApplicationStatusCheckOutput, - DisassociateCapacityReservationBillingOwnerInput, DisassociateCapacityReservationBillingOwnerOutput, - DisassociateClientVpnTargetNetworkInput, DisassociateClientVpnTargetNetworkOutput, - DisassociateEnclaveCertificateIamRoleInput, DisassociateEnclaveCertificateIamRoleOutput, - DisassociateIamInstanceProfileInput, DisassociateIamInstanceProfileOutput, - DisassociateInstanceEventWindowInput, DisassociateInstanceEventWindowOutput, - DisassociateIpamByoasnInput, DisassociateIpamByoasnOutput, - DisassociateIpamResourceDiscoveryInput, DisassociateIpamResourceDiscoveryOutput, - DisassociateNatGatewayAddressInput, DisassociateNatGatewayAddressOutput, - DisassociateRouteServerInput, DisassociateRouteServerOutput, - DisassociateRouteTableInput, DisassociateRouteTableOutput, - DisassociateSecurityGroupVpcInput, DisassociateSecurityGroupVpcOutput, - DisassociateSubnetCidrBlockInput, DisassociateSubnetCidrBlockOutput, - DisassociateTransitGatewayMulticastDomainInput, DisassociateTransitGatewayMulticastDomainOutput, - DisassociateTransitGatewayPolicyTableInput, DisassociateTransitGatewayPolicyTableOutput, - DisassociateTransitGatewayRouteTableInput, DisassociateTransitGatewayRouteTableOutput, - DisassociateTrunkInterfaceInput, DisassociateTrunkInterfaceOutput, - DisassociateVpcCidrBlockInput, DisassociateVpcCidrBlockOutput, - EnableAddressTransferInput, EnableAddressTransferOutput, - EnableAllowedImagesSettingsInput, EnableAllowedImagesSettingsOutput, - EnableApplicationStatusCheckSuppressionInput, EnableApplicationStatusCheckSuppressionOutput, - EnableAwsNetworkPerformanceMetricSubscriptionInput, EnableAwsNetworkPerformanceMetricSubscriptionOutput, - EnableCapacityManagerInput, EnableCapacityManagerOutput, - EnableEbsEncryptionByDefaultInput, EnableEbsEncryptionByDefaultOutput, - EnableFastLaunchInput, EnableFastLaunchOutput, - EnableFastSnapshotRestoresInput, EnableFastSnapshotRestoresOutput, - EnableImageBlockPublicAccessInput, EnableImageBlockPublicAccessOutput, - EnableImageDeprecationInput, EnableImageDeprecationOutput, - EnableImageDeregistrationProtectionInput, EnableImageDeregistrationProtectionOutput, - EnableImageInput, EnableImageOutput, - EnableInstanceSqlHaStandbyDetectionsInput, EnableInstanceSqlHaStandbyDetectionsOutput, - EnableIpamInternetRegistryAssociationInput, EnableIpamInternetRegistryAssociationOutput, - EnableIpamOrganizationAdminAccountInput, EnableIpamOrganizationAdminAccountOutput, - EnableIpamPolicyInput, EnableIpamPolicyOutput, - EnableReachabilityAnalyzerOrganizationSharingInput, EnableReachabilityAnalyzerOrganizationSharingOutput, - EnableRouteServerPropagationInput, EnableRouteServerPropagationOutput, - EnableSerialConsoleAccessInput, EnableSerialConsoleAccessOutput, - EnableSnapshotBlockPublicAccessInput, EnableSnapshotBlockPublicAccessOutput, - EnableTransitGatewayRouteTablePropagationInput, EnableTransitGatewayRouteTablePropagationOutput, - EnableVgwRoutePropagationInput, EnableVgwRoutePropagationOutput, - EnableVolumeIOInput, EnableVolumeIOOutput, - EnableVpcClassicLinkDnsSupportInput, EnableVpcClassicLinkDnsSupportOutput, - EnableVpcClassicLinkInput, EnableVpcClassicLinkOutput, - ExportClientVpnClientCertificateRevocationListInput, ExportClientVpnClientCertificateRevocationListOutput, - ExportClientVpnClientConfigurationInput, ExportClientVpnClientConfigurationOutput, - ExportImageInput, ExportImageOutput, - ExportTransitGatewayRoutesInput, ExportTransitGatewayRoutesOutput, - ExportVerifiedAccessInstanceClientConfigurationInput, ExportVerifiedAccessInstanceClientConfigurationOutput, - GetActiveVpnTunnelStatusInput, GetActiveVpnTunnelStatusOutput, - GetAllowedImagesSettingsInput, GetAllowedImagesSettingsOutput, - GetAssociatedEnclaveCertificateIamRolesInput, GetAssociatedEnclaveCertificateIamRolesOutput, - GetAssociatedIpv6PoolCidrsInput, GetAssociatedIpv6PoolCidrsOutput, - GetAwsNetworkPerformanceDataInput, GetAwsNetworkPerformanceDataOutput, - GetCapacityManagerAttributesInput, GetCapacityManagerAttributesOutput, - GetCapacityManagerMetricDataInput, GetCapacityManagerMetricDataOutput, - GetCapacityManagerMetricDimensionsInput, GetCapacityManagerMetricDimensionsOutput, - GetCapacityManagerMonitoredTagKeysInput, GetCapacityManagerMonitoredTagKeysOutput, - GetCapacityManagerSupportabilityScoresInput, GetCapacityManagerSupportabilityScoresOutput, - GetCapacityReservationUsageInput, GetCapacityReservationUsageOutput, - GetClientVpnEndpointAuthorizationPolicyInput, GetClientVpnEndpointAuthorizationPolicyOutput, - GetCoipPoolUsageInput, GetCoipPoolUsageOutput, - GetConsoleOutputInput, GetConsoleOutputOutput, - GetConsoleScreenshotInput, GetConsoleScreenshotOutput, - GetDeclarativePoliciesReportSummaryInput, GetDeclarativePoliciesReportSummaryOutput, - GetDefaultCreditSpecificationInput, GetDefaultCreditSpecificationOutput, - GetEbsDefaultKmsKeyIdInput, GetEbsDefaultKmsKeyIdOutput, - GetEbsEncryptionByDefaultInput, GetEbsEncryptionByDefaultOutput, - GetEnabledIpamPolicyInput, GetEnabledIpamPolicyOutput, - GetFlowLogsIntegrationTemplateInput, GetFlowLogsIntegrationTemplateOutput, - GetGroupsForCapacityReservationInput, GetGroupsForCapacityReservationOutput, - GetHostReservationPurchasePreviewInput, GetHostReservationPurchasePreviewOutput, - GetImageAncestryInput, GetImageAncestryOutput, - GetImageBlockPublicAccessStateInput, GetImageBlockPublicAccessStateOutput, - GetImageFindingsInput, GetImageFindingsOutput, - GetInstanceMetadataDefaultsInput, GetInstanceMetadataDefaultsOutput, - GetInstanceTpmEkPubInput, GetInstanceTpmEkPubOutput, - GetInstanceTypesFromInstanceRequirementsInput, GetInstanceTypesFromInstanceRequirementsOutput, - GetInstanceUefiDataInput, GetInstanceUefiDataOutput, - GetIpamAddressHistoryInput, GetIpamAddressHistoryOutput, - GetIpamDiscoveredAccountsInput, GetIpamDiscoveredAccountsOutput, - GetIpamDiscoveredPublicAddressesInput, GetIpamDiscoveredPublicAddressesOutput, - GetIpamDiscoveredResourceCidrsInput, GetIpamDiscoveredResourceCidrsOutput, - GetIpamDiscoveredRoutesInput, GetIpamDiscoveredRoutesOutput, - GetIpamInternetRegistryAssociationAsnsInput, GetIpamInternetRegistryAssociationAsnsOutput, - GetIpamInternetRegistryAssociationCidrsInput, GetIpamInternetRegistryAssociationCidrsOutput, - GetIpamPolicyAllocationRulesInput, GetIpamPolicyAllocationRulesOutput, - GetIpamPolicyOrganizationTargetsInput, GetIpamPolicyOrganizationTargetsOutput, - GetIpamPoolAllocationsInput, GetIpamPoolAllocationsOutput, - GetIpamPoolCidrsInput, GetIpamPoolCidrsOutput, - GetIpamPrefixListResolverRulesInput, GetIpamPrefixListResolverRulesOutput, - GetIpamPrefixListResolverVersionEntriesInput, GetIpamPrefixListResolverVersionEntriesOutput, - GetIpamPrefixListResolverVersionsInput, GetIpamPrefixListResolverVersionsOutput, - GetIpamResourceCidrsInput, GetIpamResourceCidrsOutput, - GetIpamRouteOriginAuthorizationsInput, GetIpamRouteOriginAuthorizationsOutput, - GetIpamRouteProtectionFindingsInput, GetIpamRouteProtectionFindingsOutput, - GetIpamRoutingPolicyRegistrationDeltasInput, GetIpamRoutingPolicyRegistrationDeltasOutput, - GetIpamRoutingPolicyRegistrationsInput, GetIpamRoutingPolicyRegistrationsOutput, - GetLaunchTemplateDataInput, GetLaunchTemplateDataOutput, - GetManagedPrefixListAssociationsInput, GetManagedPrefixListAssociationsOutput, - GetManagedPrefixListEntriesInput, GetManagedPrefixListEntriesOutput, - GetManagedResourceVisibilityInput, GetManagedResourceVisibilityOutput, - GetNetworkInsightsAccessScopeAnalysisFindingsInput, GetNetworkInsightsAccessScopeAnalysisFindingsOutput, - GetNetworkInsightsAccessScopeContentInput, GetNetworkInsightsAccessScopeContentOutput, - GetPasswordDataInput, GetPasswordDataOutput, - GetReservedInstancesExchangeQuoteInput, GetReservedInstancesExchangeQuoteOutput, - GetRouteServerAssociationsInput, GetRouteServerAssociationsOutput, - GetRouteServerPropagationsInput, GetRouteServerPropagationsOutput, - GetRouteServerRoutingDatabaseInput, GetRouteServerRoutingDatabaseOutput, - GetSecurityGroupsForVpcInput, GetSecurityGroupsForVpcOutput, - GetSerialConsoleAccessStatusInput, GetSerialConsoleAccessStatusOutput, - GetSnapshotBlockPublicAccessStateInput, GetSnapshotBlockPublicAccessStateOutput, - GetSpotPlacementScoresInput, GetSpotPlacementScoresOutput, - GetSubnetCidrReservationsInput, GetSubnetCidrReservationsOutput, - GetTransitGatewayAttachmentNatConfigurationInput, GetTransitGatewayAttachmentNatConfigurationOutput, - GetTransitGatewayAttachmentPropagationsInput, GetTransitGatewayAttachmentPropagationsOutput, - GetTransitGatewayMeteringPolicyEntriesInput, GetTransitGatewayMeteringPolicyEntriesOutput, - GetTransitGatewayMulticastDomainAssociationsInput, GetTransitGatewayMulticastDomainAssociationsOutput, - GetTransitGatewayPolicyTableAssociationsInput, GetTransitGatewayPolicyTableAssociationsOutput, - GetTransitGatewayPolicyTableEntriesInput, GetTransitGatewayPolicyTableEntriesOutput, - GetTransitGatewayPrefixListReferencesInput, GetTransitGatewayPrefixListReferencesOutput, - GetTransitGatewayRouteTableAssociationsInput, GetTransitGatewayRouteTableAssociationsOutput, - GetTransitGatewayRouteTablePropagationsInput, GetTransitGatewayRouteTablePropagationsOutput, - GetVerifiedAccessEndpointPolicyInput, GetVerifiedAccessEndpointPolicyOutput, - GetVerifiedAccessEndpointTargetsInput, GetVerifiedAccessEndpointTargetsOutput, - GetVerifiedAccessGroupPolicyInput, GetVerifiedAccessGroupPolicyOutput, - GetVpcResourcesBlockingEncryptionEnforcementInput, GetVpcResourcesBlockingEncryptionEnforcementOutput, - GetVpnConnectionDeviceSampleConfigurationInput, GetVpnConnectionDeviceSampleConfigurationOutput, - GetVpnConnectionDeviceTypesInput, GetVpnConnectionDeviceTypesOutput, - GetVpnTunnelReplacementStatusInput, GetVpnTunnelReplacementStatusOutput, - ImportClientVpnClientCertificateRevocationListInput, ImportClientVpnClientCertificateRevocationListOutput, - ImportImageInput, ImportImageOutput, - ImportInstanceInput, ImportInstanceOutput, - ImportKeyPairInput, ImportKeyPairOutput, - ImportSnapshotInput, ImportSnapshotOutput, - ImportVolumeInput, ImportVolumeOutput, - ListImagesInRecycleBinInput, ListImagesInRecycleBinOutput, - ListSnapshotsInRecycleBinInput, ListSnapshotsInRecycleBinOutput, - ListVolumesInRecycleBinInput, ListVolumesInRecycleBinOutput, - LockSnapshotInput, LockSnapshotOutput, - ModifyAccountVpcEncryptionControlInput, ModifyAccountVpcEncryptionControlOutput, - ModifyAddressAttributeInput, ModifyAddressAttributeOutput, - ModifyApplicationStatusCheckInput, ModifyApplicationStatusCheckOutput, - ModifyAvailabilityZoneGroupInput, ModifyAvailabilityZoneGroupOutput, - ModifyCapacityReservationFleetInput, ModifyCapacityReservationFleetOutput, - ModifyCapacityReservationInput, ModifyCapacityReservationOutput, - ModifyClientVpnEndpointAuthorizationPolicyInput, ModifyClientVpnEndpointAuthorizationPolicyOutput, - ModifyClientVpnEndpointInput, ModifyClientVpnEndpointOutput, - ModifyDefaultCreditSpecificationInput, ModifyDefaultCreditSpecificationOutput, - ModifyEbsDefaultKmsKeyIdInput, ModifyEbsDefaultKmsKeyIdOutput, - ModifyFleetInput, ModifyFleetOutput, - ModifyFpgaImageAttributeInput, ModifyFpgaImageAttributeOutput, - ModifyHostsInput, ModifyHostsOutput, - ModifyIdFormatInput, ModifyIdFormatOutput, - ModifyIdentityIdFormatInput, ModifyIdentityIdFormatOutput, - ModifyImageAttributeInput, ModifyImageAttributeOutput, - ModifyInstanceAttributeInput, ModifyInstanceAttributeOutput, - ModifyInstanceCapacityReservationAttributesInput, ModifyInstanceCapacityReservationAttributesOutput, - ModifyInstanceConnectEndpointInput, ModifyInstanceConnectEndpointOutput, - ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput, - ModifyInstanceCreditSpecificationInput, ModifyInstanceCreditSpecificationOutput, - ModifyInstanceEventStartTimeInput, ModifyInstanceEventStartTimeOutput, - ModifyInstanceEventWindowInput, ModifyInstanceEventWindowOutput, - ModifyInstanceMaintenanceOptionsInput, ModifyInstanceMaintenanceOptionsOutput, - ModifyInstanceMetadataDefaultsInput, ModifyInstanceMetadataDefaultsOutput, - ModifyInstanceMetadataOptionsInput, ModifyInstanceMetadataOptionsOutput, - ModifyInstanceNetworkPerformanceOptionsInput, ModifyInstanceNetworkPerformanceOptionsOutput, - ModifyInstancePlacementInput, ModifyInstancePlacementOutput, - ModifyIpamInput, ModifyIpamOutput, - ModifyIpamPolicyAllocationRulesInput, ModifyIpamPolicyAllocationRulesOutput, - ModifyIpamPoolAllocationInput, ModifyIpamPoolAllocationOutput, - ModifyIpamPoolInput, ModifyIpamPoolOutput, - ModifyIpamPrefixListResolverInput, ModifyIpamPrefixListResolverOutput, - ModifyIpamPrefixListResolverTargetInput, ModifyIpamPrefixListResolverTargetOutput, - ModifyIpamResourceCidrInput, ModifyIpamResourceCidrOutput, - ModifyIpamResourceDiscoveryInput, ModifyIpamResourceDiscoveryOutput, - ModifyIpamRoutingPolicyRegistrationInput, ModifyIpamRoutingPolicyRegistrationOutput, - ModifyIpamScopeInput, ModifyIpamScopeOutput, - ModifyLaunchTemplateInput, ModifyLaunchTemplateOutput, - ModifyLocalGatewayRouteInput, ModifyLocalGatewayRouteOutput, - ModifyManagedPrefixListInput, ModifyManagedPrefixListOutput, - ModifyManagedResourceVisibilityInput, ModifyManagedResourceVisibilityOutput, - ModifyNetworkInterfaceAttributeInput, ModifyNetworkInterfaceAttributeOutput, - ModifyPrivateDnsNameOptionsInput, ModifyPrivateDnsNameOptionsOutput, - ModifyPublicIpDnsNameOptionsInput, ModifyPublicIpDnsNameOptionsOutput, - ModifyReservedInstancesInput, ModifyReservedInstancesOutput, - ModifyRouteServerInput, ModifyRouteServerOutput, - ModifySecurityGroupRulesInput, ModifySecurityGroupRulesOutput, - ModifySnapshotAttributeInput, ModifySnapshotAttributeOutput, - ModifySnapshotTierInput, ModifySnapshotTierOutput, - ModifySpotFleetRequestInput, ModifySpotFleetRequestOutput, - ModifySubnetAttributeInput, ModifySubnetAttributeOutput, - ModifyTrafficMirrorFilterNetworkServicesInput, ModifyTrafficMirrorFilterNetworkServicesOutput, - ModifyTrafficMirrorFilterRuleInput, ModifyTrafficMirrorFilterRuleOutput, - ModifyTrafficMirrorSessionInput, ModifyTrafficMirrorSessionOutput, - ModifyTransitGatewayAttachmentNatConfigurationInput, ModifyTransitGatewayAttachmentNatConfigurationOutput, - ModifyTransitGatewayInput, - ModifyTransitGatewayMeteringPolicyInput, ModifyTransitGatewayMeteringPolicyOutput, ModifyTransitGatewayOutput, - ModifyTransitGatewayPolicyTableEntryInput, ModifyTransitGatewayPolicyTableEntryOutput, - ModifyTransitGatewayPrefixListReferenceInput, ModifyTransitGatewayPrefixListReferenceOutput, - ModifyTransitGatewayVpcAttachmentInput, ModifyTransitGatewayVpcAttachmentOutput, - ModifyVerifiedAccessEndpointInput, ModifyVerifiedAccessEndpointOutput, - ModifyVerifiedAccessEndpointPolicyInput, ModifyVerifiedAccessEndpointPolicyOutput, - ModifyVerifiedAccessGroupInput, ModifyVerifiedAccessGroupOutput, - ModifyVerifiedAccessGroupPolicyInput, ModifyVerifiedAccessGroupPolicyOutput, - ModifyVerifiedAccessInstanceInput, - ModifyVerifiedAccessInstanceLoggingConfigurationInput, ModifyVerifiedAccessInstanceLoggingConfigurationOutput, ModifyVerifiedAccessInstanceOutput, - ModifyVerifiedAccessTrustProviderInput, ModifyVerifiedAccessTrustProviderOutput, - ModifyVolumeAttributeInput, ModifyVolumeAttributeOutput, - ModifyVolumeInput, ModifyVolumeOutput, - ModifyVpcAttributeInput, ModifyVpcAttributeOutput, - ModifyVpcBlockPublicAccessExclusionInput, ModifyVpcBlockPublicAccessExclusionOutput, - ModifyVpcBlockPublicAccessOptionsInput, ModifyVpcBlockPublicAccessOptionsOutput, - ModifyVpcEncryptionControlInput, ModifyVpcEncryptionControlOutput, - ModifyVpcEndpointConnectionNotificationInput, ModifyVpcEndpointConnectionNotificationOutput, - ModifyVpcEndpointInput, ModifyVpcEndpointOutput, - ModifyVpcEndpointPayerResponsibilityInput, ModifyVpcEndpointPayerResponsibilityOutput, - ModifyVpcEndpointServiceConfigurationInput, ModifyVpcEndpointServiceConfigurationOutput, - ModifyVpcEndpointServicePayerResponsibilityInput, ModifyVpcEndpointServicePayerResponsibilityOutput, - ModifyVpcEndpointServicePermissionsInput, ModifyVpcEndpointServicePermissionsOutput, - ModifyVpcPeeringConnectionOptionsInput, ModifyVpcPeeringConnectionOptionsOutput, - ModifyVpcTenancyInput, ModifyVpcTenancyOutput, - ModifyVpnConnectionInput, - ModifyVpnConnectionOptionsInput, ModifyVpnConnectionOptionsOutput, ModifyVpnConnectionOutput, - ModifyVpnTunnelCertificateInput, ModifyVpnTunnelCertificateOutput, - ModifyVpnTunnelOptionsInput, ModifyVpnTunnelOptionsOutput, - MonitorInstancesInput, MonitorInstancesOutput, - MoveAddressToVpcInput, MoveAddressToVpcOutput, - MoveByoipCidrToIpamInput, MoveByoipCidrToIpamOutput, - MoveCapacityReservationInstancesInput, MoveCapacityReservationInstancesOutput, - ProvisionByoipCidrInput, ProvisionByoipCidrOutput, - ProvisionIpamByoasnInput, ProvisionIpamByoasnOutput, - ProvisionIpamPoolCidrInput, ProvisionIpamPoolCidrOutput, - ProvisionPublicIpv4PoolCidrInput, ProvisionPublicIpv4PoolCidrOutput, - PurchaseCapacityBlockExtensionInput, PurchaseCapacityBlockExtensionOutput, - PurchaseCapacityBlockInput, PurchaseCapacityBlockOutput, - PurchaseHostReservationInput, PurchaseHostReservationOutput, - PurchaseReservedInstancesOfferingInput, PurchaseReservedInstancesOfferingOutput, - PurchaseScheduledInstancesInput, PurchaseScheduledInstancesOutput, - RebootInstancesInput, RebootInstancesOutput, - RegisterImageInput, RegisterImageOutput, - RegisterInstanceEventNotificationAttributesInput, RegisterInstanceEventNotificationAttributesOutput, - RegisterTransitGatewayMulticastGroupMembersInput, RegisterTransitGatewayMulticastGroupMembersOutput, - RegisterTransitGatewayMulticastGroupSourcesInput, RegisterTransitGatewayMulticastGroupSourcesOutput, - RejectCapacityReservationBillingOwnershipInput, RejectCapacityReservationBillingOwnershipOutput, - RejectTransitGatewayClientVpnAttachmentInput, RejectTransitGatewayClientVpnAttachmentOutput, - RejectTransitGatewayMulticastDomainAssociationsInput, RejectTransitGatewayMulticastDomainAssociationsOutput, - RejectTransitGatewayPeeringAttachmentInput, RejectTransitGatewayPeeringAttachmentOutput, - RejectTransitGatewayVpcAttachmentInput, RejectTransitGatewayVpcAttachmentOutput, - RejectVpcEndpointConnectionsInput, RejectVpcEndpointConnectionsOutput, - RejectVpcPeeringConnectionInput, RejectVpcPeeringConnectionOutput, - ReleaseAddressInput, ReleaseAddressOutput, - ReleaseHostsInput, ReleaseHostsOutput, - ReleaseIpamPoolAllocationInput, ReleaseIpamPoolAllocationOutput, - ReplaceIamInstanceProfileAssociationInput, ReplaceIamInstanceProfileAssociationOutput, - ReplaceImageCriteriaInAllowedImagesSettingsInput, ReplaceImageCriteriaInAllowedImagesSettingsOutput, - ReplaceImageInstanceTypeSpecificationInput, ReplaceImageInstanceTypeSpecificationOutput, - ReplaceNetworkAclAssociationInput, ReplaceNetworkAclAssociationOutput, - ReplaceNetworkAclEntryInput, ReplaceNetworkAclEntryOutput, - ReplaceRouteInput, ReplaceRouteOutput, - ReplaceRouteTableAssociationInput, ReplaceRouteTableAssociationOutput, - ReplaceTransitGatewayRouteInput, ReplaceTransitGatewayRouteOutput, - ReplaceVpnTunnelInput, ReplaceVpnTunnelOutput, - ReportInstanceStatusInput, ReportInstanceStatusOutput, - RequestSpotFleetInput, RequestSpotFleetOutput, - RequestSpotInstancesInput, RequestSpotInstancesOutput, - ResetAddressAttributeInput, ResetAddressAttributeOutput, - ResetEbsDefaultKmsKeyIdInput, ResetEbsDefaultKmsKeyIdOutput, - ResetFpgaImageAttributeInput, ResetFpgaImageAttributeOutput, - ResetImageAttributeInput, ResetImageAttributeOutput, - ResetInstanceAttributeInput, ResetInstanceAttributeOutput, - ResetNetworkInterfaceAttributeInput, ResetNetworkInterfaceAttributeOutput, - ResetSnapshotAttributeInput, ResetSnapshotAttributeOutput, - RestoreAddressToClassicInput, RestoreAddressToClassicOutput, - RestoreImageFromRecycleBinInput, RestoreImageFromRecycleBinOutput, - RestoreManagedPrefixListVersionInput, RestoreManagedPrefixListVersionOutput, - RestoreSnapshotFromRecycleBinInput, RestoreSnapshotFromRecycleBinOutput, - RestoreSnapshotTierInput, RestoreSnapshotTierOutput, - RestoreVolumeFromRecycleBinInput, RestoreVolumeFromRecycleBinOutput, - RevokeClientVpnIngressInput, RevokeClientVpnIngressOutput, - RevokeSecurityGroupEgressInput, RevokeSecurityGroupEgressOutput, - RevokeSecurityGroupIngressInput, RevokeSecurityGroupIngressOutput, - RunInstancesInput, RunInstancesOutput, - RunScheduledInstancesInput, RunScheduledInstancesOutput, - SearchLocalGatewayRoutesInput, SearchLocalGatewayRoutesOutput, - SearchTransitGatewayMulticastGroupsInput, SearchTransitGatewayMulticastGroupsOutput, - SearchTransitGatewayRoutesInput, SearchTransitGatewayRoutesOutput, - SendDiagnosticInterruptInput, SendDiagnosticInterruptOutput, - StartDeclarativePoliciesReportInput, StartDeclarativePoliciesReportOutput, - StartInstancesInput, StartInstancesOutput, - StartNetworkInsightsAccessScopeAnalysisInput, StartNetworkInsightsAccessScopeAnalysisOutput, - StartNetworkInsightsAnalysisInput, StartNetworkInsightsAnalysisOutput, - StartVpcEndpointServicePrivateDnsVerificationInput, StartVpcEndpointServicePrivateDnsVerificationOutput, - StopInstancesInput, StopInstancesOutput, - TerminateClientVpnConnectionsInput, TerminateClientVpnConnectionsOutput, - TerminateInstancesInput, TerminateInstancesOutput, - UnassignIpv6AddressesInput, UnassignIpv6AddressesOutput, - UnassignPrivateIpAddressesInput, UnassignPrivateIpAddressesOutput, - UnassignPrivateNatGatewayAddressInput, UnassignPrivateNatGatewayAddressOutput, - UnlockSnapshotInput, UnlockSnapshotOutput, - UnmonitorInstancesInput, UnmonitorInstancesOutput, - UpdateCapacityManagerMonitoredTagKeysInput, UpdateCapacityManagerMonitoredTagKeysOutput, - UpdateCapacityManagerOrganizationsAccessInput, UpdateCapacityManagerOrganizationsAccessOutput, - UpdateInterruptibleCapacityReservationAllocationInput, UpdateInterruptibleCapacityReservationAllocationOutput, - UpdateSecurityGroupRuleDescriptionsEgressInput, UpdateSecurityGroupRuleDescriptionsEgressOutput, - UpdateSecurityGroupRuleDescriptionsIngressInput, UpdateSecurityGroupRuleDescriptionsIngressOutput, - ValidateSecurityGroupQuotasForInterfaceInput, ValidateSecurityGroupQuotasForInterfaceOutput, - WithdrawByoipCidrInput, WithdrawByoipCidrOutput, ) @@ -1690,10 +879,25 @@ class AsyncEC2Client(AsyncClient[AsyncEC2Config]): - [Amazon Web Services SDKs](https://builder.aws.com/build/tools) """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def accept_address_transfer( - self, input: AcceptAddressTransferInput, plugins: list[Plugin] | None = None + self, + request: _models.AcceptAddressTransferInput + | _models.AcceptAddressTransferInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptAddressTransferOutput: ... + + @_overload + async def accept_address_transfer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptAddressTransferInputDict], ) -> AcceptAddressTransferOutput: """ Accepts an Elastic IP address transfer. For more information, see @@ -1702,8 +906,6 @@ async def accept_address_transfer( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AcceptAddressTransferInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1713,12 +915,34 @@ async def accept_address_transfer( Returns: An instance of `AcceptAddressTransferOutput`. """ - return await self._invoke(input, _models.ACCEPT_ADDRESS_TRANSFER, [], plugins) + async def accept_address_transfer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptAddressTransferOutput: + return await self._invoke( + self._select_input(_models.ACCEPT_ADDRESS_TRANSFER, args, kwargs), + _models.ACCEPT_ADDRESS_TRANSFER, + [], + plugins, + ) + + @_overload + async def accept_capacity_reservation_billing_ownership( + self, + request: _models.AcceptCapacityReservationBillingOwnershipInput + | _models.AcceptCapacityReservationBillingOwnershipInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptCapacityReservationBillingOwnershipOutput: ... + + @_overload async def accept_capacity_reservation_billing_ownership( self, - input: AcceptCapacityReservationBillingOwnershipInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptCapacityReservationBillingOwnershipInputDict], ) -> AcceptCapacityReservationBillingOwnershipOutput: """ Accepts a request to assign billing of the available capacity of a @@ -1727,8 +951,6 @@ async def accept_capacity_reservation_billing_ownership( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html). Args: - input: - An instance of `AcceptCapacityReservationBillingOwnershipInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1738,22 +960,42 @@ async def accept_capacity_reservation_billing_ownership( Returns: An instance of `AcceptCapacityReservationBillingOwnershipOutput`. """ + + async def accept_capacity_reservation_billing_ownership( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptCapacityReservationBillingOwnershipOutput: return await self._invoke( - input, _models.ACCEPT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, [], plugins + self._select_input( + _models.ACCEPT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, args, kwargs + ), + _models.ACCEPT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, + [], + plugins, ) + @_overload + async def accept_reserved_instances_exchange_quote( + self, + request: _models.AcceptReservedInstancesExchangeQuoteInput + | _models.AcceptReservedInstancesExchangeQuoteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptReservedInstancesExchangeQuoteOutput: ... + + @_overload async def accept_reserved_instances_exchange_quote( self, - input: AcceptReservedInstancesExchangeQuoteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptReservedInstancesExchangeQuoteInputDict], ) -> AcceptReservedInstancesExchangeQuoteOutput: """ Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call. Args: - input: - An instance of `AcceptReservedInstancesExchangeQuoteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1763,14 +1005,36 @@ async def accept_reserved_instances_exchange_quote( Returns: An instance of `AcceptReservedInstancesExchangeQuoteOutput`. """ + + async def accept_reserved_instances_exchange_quote( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptReservedInstancesExchangeQuoteOutput: return await self._invoke( - input, _models.ACCEPT_RESERVED_INSTANCES_EXCHANGE_QUOTE, [], plugins + self._select_input( + _models.ACCEPT_RESERVED_INSTANCES_EXCHANGE_QUOTE, args, kwargs + ), + _models.ACCEPT_RESERVED_INSTANCES_EXCHANGE_QUOTE, + [], + plugins, ) + @_overload + async def accept_transit_gateway_client_vpn_attachment( + self, + request: _models.AcceptTransitGatewayClientVpnAttachmentInput + | _models.AcceptTransitGatewayClientVpnAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptTransitGatewayClientVpnAttachmentOutput: ... + + @_overload async def accept_transit_gateway_client_vpn_attachment( self, - input: AcceptTransitGatewayClientVpnAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptTransitGatewayClientVpnAttachmentInputDict], ) -> AcceptTransitGatewayClientVpnAttachmentOutput: """ Accepts a Transit Gateway attachment request for a Client VPN endpoint. @@ -1778,8 +1042,6 @@ async def accept_transit_gateway_client_vpn_attachment( Client VPN endpoint can route traffic through the Transit Gateway. Args: - input: - An instance of `AcceptTransitGatewayClientVpnAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1789,22 +1051,44 @@ async def accept_transit_gateway_client_vpn_attachment( Returns: An instance of `AcceptTransitGatewayClientVpnAttachmentOutput`. """ + + async def accept_transit_gateway_client_vpn_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptTransitGatewayClientVpnAttachmentOutput: return await self._invoke( - input, _models.ACCEPT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, [], plugins + self._select_input( + _models.ACCEPT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, args, kwargs + ), + _models.ACCEPT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, + [], + plugins, ) + @_overload async def accept_transit_gateway_multicast_domain_associations( self, - input: AcceptTransitGatewayMulticastDomainAssociationsInput, + request: _models.AcceptTransitGatewayMulticastDomainAssociationsInput + | _models.AcceptTransitGatewayMulticastDomainAssociationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AcceptTransitGatewayMulticastDomainAssociationsOutput: ... + + @_overload + async def accept_transit_gateway_multicast_domain_associations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.AcceptTransitGatewayMulticastDomainAssociationsInputDict + ], ) -> AcceptTransitGatewayMulticastDomainAssociationsOutput: """ Accepts a request to associate subnets with a transit gateway multicast domain. Args: - input: - An instance of `AcceptTransitGatewayMulticastDomainAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1814,25 +1098,44 @@ async def accept_transit_gateway_multicast_domain_associations( Returns: An instance of `AcceptTransitGatewayMulticastDomainAssociationsOutput`. """ + + async def accept_transit_gateway_multicast_domain_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptTransitGatewayMulticastDomainAssociationsOutput: return await self._invoke( - input, + self._select_input( + _models.ACCEPT_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, + args, + kwargs, + ), _models.ACCEPT_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, [], plugins, ) + @_overload + async def accept_transit_gateway_peering_attachment( + self, + request: _models.AcceptTransitGatewayPeeringAttachmentInput + | _models.AcceptTransitGatewayPeeringAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptTransitGatewayPeeringAttachmentOutput: ... + + @_overload async def accept_transit_gateway_peering_attachment( self, - input: AcceptTransitGatewayPeeringAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptTransitGatewayPeeringAttachmentInputDict], ) -> AcceptTransitGatewayPeeringAttachmentOutput: """ Accepts a transit gateway peering attachment request. The peering attachment must be in the `pendingAcceptance` state. Args: - input: - An instance of `AcceptTransitGatewayPeeringAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1842,14 +1145,36 @@ async def accept_transit_gateway_peering_attachment( Returns: An instance of `AcceptTransitGatewayPeeringAttachmentOutput`. """ + + async def accept_transit_gateway_peering_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptTransitGatewayPeeringAttachmentOutput: return await self._invoke( - input, _models.ACCEPT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, [], plugins + self._select_input( + _models.ACCEPT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, args, kwargs + ), + _models.ACCEPT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, + [], + plugins, ) + @_overload async def accept_transit_gateway_vpc_attachment( self, - input: AcceptTransitGatewayVpcAttachmentInput, + request: _models.AcceptTransitGatewayVpcAttachmentInput + | _models.AcceptTransitGatewayVpcAttachmentInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AcceptTransitGatewayVpcAttachmentOutput: ... + + @_overload + async def accept_transit_gateway_vpc_attachment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptTransitGatewayVpcAttachmentInputDict], ) -> AcceptTransitGatewayVpcAttachmentOutput: """ Accepts a request to attach a VPC to a transit gateway. @@ -1860,8 +1185,6 @@ async def accept_transit_gateway_vpc_attachment( attachment request. Args: - input: - An instance of `AcceptTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1871,21 +1194,41 @@ async def accept_transit_gateway_vpc_attachment( Returns: An instance of `AcceptTransitGatewayVpcAttachmentOutput`. """ + + async def accept_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptTransitGatewayVpcAttachmentOutput: return await self._invoke( - input, _models.ACCEPT_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.ACCEPT_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.ACCEPT_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload + async def accept_vpc_endpoint_connections( + self, + request: _models.AcceptVpcEndpointConnectionsInput + | _models.AcceptVpcEndpointConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptVpcEndpointConnectionsOutput: ... + + @_overload async def accept_vpc_endpoint_connections( self, - input: AcceptVpcEndpointConnectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptVpcEndpointConnectionsInputDict], ) -> AcceptVpcEndpointConnectionsOutput: """ Accepts connection requests to your VPC endpoint service. Args: - input: - An instance of `AcceptVpcEndpointConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1895,14 +1238,34 @@ async def accept_vpc_endpoint_connections( Returns: An instance of `AcceptVpcEndpointConnectionsOutput`. """ + + async def accept_vpc_endpoint_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptVpcEndpointConnectionsOutput: return await self._invoke( - input, _models.ACCEPT_VPC_ENDPOINT_CONNECTIONS, [], plugins + self._select_input(_models.ACCEPT_VPC_ENDPOINT_CONNECTIONS, args, kwargs), + _models.ACCEPT_VPC_ENDPOINT_CONNECTIONS, + [], + plugins, ) + @_overload + async def accept_vpc_peering_connection( + self, + request: _models.AcceptVpcPeeringConnectionInput + | _models.AcceptVpcPeeringConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptVpcPeeringConnectionOutput: ... + + @_overload async def accept_vpc_peering_connection( self, - input: AcceptVpcPeeringConnectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptVpcPeeringConnectionInputDict], ) -> AcceptVpcPeeringConnectionOutput: """ Accept a VPC peering connection request. To accept a request, the VPC @@ -1914,8 +1277,6 @@ async def accept_vpc_peering_connection( VPC peering connection in the Region of the accepter VPC. Args: - input: - An instance of `AcceptVpcPeeringConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1925,12 +1286,33 @@ async def accept_vpc_peering_connection( Returns: An instance of `AcceptVpcPeeringConnectionOutput`. """ + + async def accept_vpc_peering_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptVpcPeeringConnectionOutput: return await self._invoke( - input, _models.ACCEPT_VPC_PEERING_CONNECTION, [], plugins + self._select_input(_models.ACCEPT_VPC_PEERING_CONNECTION, args, kwargs), + _models.ACCEPT_VPC_PEERING_CONNECTION, + [], + plugins, ) + @_overload + async def advertise_byoip_cidr( + self, + request: _models.AdvertiseByoipCidrInput | _models.AdvertiseByoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AdvertiseByoipCidrOutput: ... + + @_overload async def advertise_byoip_cidr( - self, input: AdvertiseByoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AdvertiseByoipCidrInputDict], ) -> AdvertiseByoipCidrOutput: """ Advertises an IPv4 or IPv6 address range that is provisioned for use @@ -1951,8 +1333,6 @@ async def advertise_byoip_cidr( starts routing to Amazon Web Services because of BGP propagation delays. Args: - input: - An instance of `AdvertiseByoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1962,10 +1342,33 @@ async def advertise_byoip_cidr( Returns: An instance of `AdvertiseByoipCidrOutput`. """ - return await self._invoke(input, _models.ADVERTISE_BYOIP_CIDR, [], plugins) + async def advertise_byoip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AdvertiseByoipCidrOutput: + return await self._invoke( + self._select_input(_models.ADVERTISE_BYOIP_CIDR, args, kwargs), + _models.ADVERTISE_BYOIP_CIDR, + [], + plugins, + ) + + @_overload async def allocate_address( - self, input: AllocateAddressInput, plugins: list[Plugin] | None = None + self, + request: _models.AllocateAddressInput | _models.AllocateAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AllocateAddressOutput: ... + + @_overload + async def allocate_address( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AllocateAddressInputDict], ) -> AllocateAddressOutput: """ Allocates an Elastic IP address to your Amazon Web Services account. @@ -2005,8 +1408,6 @@ async def allocate_address( subnet in a Wavelength Zone (for example an EC2 instance). Args: - input: - An instance of `AllocateAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2016,10 +1417,33 @@ async def allocate_address( Returns: An instance of `AllocateAddressOutput`. """ - return await self._invoke(input, _models.ALLOCATE_ADDRESS, [], plugins) + async def allocate_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AllocateAddressOutput: + return await self._invoke( + self._select_input(_models.ALLOCATE_ADDRESS, args, kwargs), + _models.ALLOCATE_ADDRESS, + [], + plugins, + ) + + @_overload + async def allocate_hosts( + self, + request: _models.AllocateHostsInput | _models.AllocateHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AllocateHostsOutput: ... + + @_overload async def allocate_hosts( - self, input: AllocateHostsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AllocateHostsInputDict], ) -> AllocateHostsOutput: """ Allocates a Dedicated Host to your account. At a minimum, specify the @@ -2027,8 +1451,6 @@ async def allocate_hosts( which to allocate the host, and the number of hosts to allocate. Args: - input: - An instance of `AllocateHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2038,10 +1460,34 @@ async def allocate_hosts( Returns: An instance of `AllocateHostsOutput`. """ - return await self._invoke(input, _models.ALLOCATE_HOSTS, [], plugins) + async def allocate_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AllocateHostsOutput: + return await self._invoke( + self._select_input(_models.ALLOCATE_HOSTS, args, kwargs), + _models.ALLOCATE_HOSTS, + [], + plugins, + ) + + @_overload + async def allocate_ipam_pool_cidr( + self, + request: _models.AllocateIpamPoolCidrInput + | _models.AllocateIpamPoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AllocateIpamPoolCidrOutput: ... + + @_overload async def allocate_ipam_pool_cidr( - self, input: AllocateIpamPoolCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AllocateIpamPoolCidrInputDict], ) -> AllocateIpamPoolCidrOutput: """ Allocate a CIDR from an IPAM pool. The Region you use should be the IPAM @@ -2058,8 +1504,6 @@ async def allocate_ipam_pool_cidr( CIDR will not overlap with any other allocations from the same pool. Args: - input: - An instance of `AllocateIpamPoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2069,12 +1513,34 @@ async def allocate_ipam_pool_cidr( Returns: An instance of `AllocateIpamPoolCidrOutput`. """ - return await self._invoke(input, _models.ALLOCATE_IPAM_POOL_CIDR, [], plugins) + async def allocate_ipam_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AllocateIpamPoolCidrOutput: + return await self._invoke( + self._select_input(_models.ALLOCATE_IPAM_POOL_CIDR, args, kwargs), + _models.ALLOCATE_IPAM_POOL_CIDR, + [], + plugins, + ) + + @_overload + async def apply_security_groups_to_client_vpn_target_network( + self, + request: _models.ApplySecurityGroupsToClientVpnTargetNetworkInput + | _models.ApplySecurityGroupsToClientVpnTargetNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ApplySecurityGroupsToClientVpnTargetNetworkOutput: ... + + @_overload async def apply_security_groups_to_client_vpn_target_network( self, - input: ApplySecurityGroupsToClientVpnTargetNetworkInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ApplySecurityGroupsToClientVpnTargetNetworkInputDict], ) -> ApplySecurityGroupsToClientVpnTargetNetworkOutput: """ Applies a security group to the association between the target network @@ -2082,8 +1548,6 @@ async def apply_security_groups_to_client_vpn_target_network( groups with the specified security groups. Args: - input: - An instance of `ApplySecurityGroupsToClientVpnTargetNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2093,15 +1557,36 @@ async def apply_security_groups_to_client_vpn_target_network( Returns: An instance of `ApplySecurityGroupsToClientVpnTargetNetworkOutput`. """ + + async def apply_security_groups_to_client_vpn_target_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ApplySecurityGroupsToClientVpnTargetNetworkOutput: return await self._invoke( - input, + self._select_input( + _models.APPLY_SECURITY_GROUPS_TO_CLIENT_VPN_TARGET_NETWORK, args, kwargs + ), _models.APPLY_SECURITY_GROUPS_TO_CLIENT_VPN_TARGET_NETWORK, [], plugins, ) + @_overload + async def assign_ipv6_addresses( + self, + request: _models.AssignIpv6AddressesInput + | _models.AssignIpv6AddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssignIpv6AddressesOutput: ... + + @_overload async def assign_ipv6_addresses( - self, input: AssignIpv6AddressesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssignIpv6AddressesInputDict], ) -> AssignIpv6AddressesOutput: """ Assigns the specified IPv6 addresses to the specified network interface. @@ -2122,8 +1607,6 @@ async def assign_ipv6_addresses( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `AssignIpv6AddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2133,10 +1616,34 @@ async def assign_ipv6_addresses( Returns: An instance of `AssignIpv6AddressesOutput`. """ - return await self._invoke(input, _models.ASSIGN_IPV6_ADDRESSES, [], plugins) + async def assign_ipv6_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssignIpv6AddressesOutput: + return await self._invoke( + self._select_input(_models.ASSIGN_IPV6_ADDRESSES, args, kwargs), + _models.ASSIGN_IPV6_ADDRESSES, + [], + plugins, + ) + + @_overload + async def assign_private_ip_addresses( + self, + request: _models.AssignPrivateIpAddressesInput + | _models.AssignPrivateIpAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssignPrivateIpAddressesOutput: ... + + @_overload async def assign_private_ip_addresses( - self, input: AssignPrivateIpAddressesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssignPrivateIpAddressesInputDict], ) -> AssignPrivateIpAddressesOutput: """ Assigns the specified secondary private IP addresses to the specified @@ -2170,8 +1677,6 @@ async def assign_private_ip_addresses( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `AssignPrivateIpAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2181,14 +1686,34 @@ async def assign_private_ip_addresses( Returns: An instance of `AssignPrivateIpAddressesOutput`. """ + + async def assign_private_ip_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssignPrivateIpAddressesOutput: return await self._invoke( - input, _models.ASSIGN_PRIVATE_IP_ADDRESSES, [], plugins + self._select_input(_models.ASSIGN_PRIVATE_IP_ADDRESSES, args, kwargs), + _models.ASSIGN_PRIVATE_IP_ADDRESSES, + [], + plugins, ) + @_overload + async def assign_private_nat_gateway_address( + self, + request: _models.AssignPrivateNatGatewayAddressInput + | _models.AssignPrivateNatGatewayAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssignPrivateNatGatewayAddressOutput: ... + + @_overload async def assign_private_nat_gateway_address( self, - input: AssignPrivateNatGatewayAddressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssignPrivateNatGatewayAddressInputDict], ) -> AssignPrivateNatGatewayAddressOutput: """ Assigns private IPv4 addresses to a private NAT gateway. For more @@ -2197,8 +1722,6 @@ async def assign_private_nat_gateway_address( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssignPrivateNatGatewayAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2208,12 +1731,35 @@ async def assign_private_nat_gateway_address( Returns: An instance of `AssignPrivateNatGatewayAddressOutput`. """ + + async def assign_private_nat_gateway_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssignPrivateNatGatewayAddressOutput: return await self._invoke( - input, _models.ASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, [], plugins + self._select_input( + _models.ASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, args, kwargs + ), + _models.ASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, + [], + plugins, ) + @_overload + async def associate_address( + self, + request: _models.AssociateAddressInput | _models.AssociateAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateAddressOutput: ... + + @_overload async def associate_address( - self, input: AssociateAddressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateAddressInputDict], ) -> AssociateAddressOutput: """ Associates an Elastic IP address, or carrier IP address (for instances @@ -2242,8 +1788,6 @@ async def associate_address( Pricing](http://aws.amazon.com/ec2/pricing/). Args: - input: - An instance of `AssociateAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2253,12 +1797,34 @@ async def associate_address( Returns: An instance of `AssociateAddressOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_ADDRESS, [], plugins) + async def associate_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateAddressOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_ADDRESS, args, kwargs), + _models.ASSOCIATE_ADDRESS, + [], + plugins, + ) + + @_overload + async def associate_application_status_check( + self, + request: _models.AssociateApplicationStatusCheckInput + | _models.AssociateApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateApplicationStatusCheckOutput: ... + + @_overload async def associate_application_status_check( self, - input: AssociateApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateApplicationStatusCheckInputDict], ) -> AssociateApplicationStatusCheckOutput: """ Associates an application status check with instances or @@ -2288,8 +1854,6 @@ async def associate_application_status_check( current and future instances that have the specified tags. Args: - input: - An instance of `AssociateApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2299,14 +1863,36 @@ async def associate_application_status_check( Returns: An instance of `AssociateApplicationStatusCheckOutput`. """ + + async def associate_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateApplicationStatusCheckOutput: return await self._invoke( - input, _models.ASSOCIATE_APPLICATION_STATUS_CHECK, [], plugins + self._select_input( + _models.ASSOCIATE_APPLICATION_STATUS_CHECK, args, kwargs + ), + _models.ASSOCIATE_APPLICATION_STATUS_CHECK, + [], + plugins, ) + @_overload + async def associate_capacity_reservation_billing_owner( + self, + request: _models.AssociateCapacityReservationBillingOwnerInput + | _models.AssociateCapacityReservationBillingOwnerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateCapacityReservationBillingOwnerOutput: ... + + @_overload async def associate_capacity_reservation_billing_owner( self, - input: AssociateCapacityReservationBillingOwnerInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateCapacityReservationBillingOwnerInputDict], ) -> AssociateCapacityReservationBillingOwnerOutput: """ Initiates a request to assign billing of the unused capacity of a shared @@ -2316,8 +1902,6 @@ async def associate_capacity_reservation_billing_owner( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html). Args: - input: - An instance of `AssociateCapacityReservationBillingOwnerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2327,14 +1911,36 @@ async def associate_capacity_reservation_billing_owner( Returns: An instance of `AssociateCapacityReservationBillingOwnerOutput`. """ + + async def associate_capacity_reservation_billing_owner( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateCapacityReservationBillingOwnerOutput: return await self._invoke( - input, _models.ASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, [], plugins + self._select_input( + _models.ASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, args, kwargs + ), + _models.ASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, + [], + plugins, ) + @_overload + async def associate_client_vpn_target_network( + self, + request: _models.AssociateClientVpnTargetNetworkInput + | _models.AssociateClientVpnTargetNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateClientVpnTargetNetworkOutput: ... + + @_overload async def associate_client_vpn_target_network( self, - input: AssociateClientVpnTargetNetworkInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateClientVpnTargetNetworkInputDict], ) -> AssociateClientVpnTargetNetworkOutput: """ Associates a target network with a Client VPN endpoint. A target network @@ -2350,8 +1956,6 @@ async def associate_client_vpn_target_network( change the VPC that's associated with it. Args: - input: - An instance of `AssociateClientVpnTargetNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2361,12 +1965,36 @@ async def associate_client_vpn_target_network( Returns: An instance of `AssociateClientVpnTargetNetworkOutput`. """ + + async def associate_client_vpn_target_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateClientVpnTargetNetworkOutput: return await self._invoke( - input, _models.ASSOCIATE_CLIENT_VPN_TARGET_NETWORK, [], plugins + self._select_input( + _models.ASSOCIATE_CLIENT_VPN_TARGET_NETWORK, args, kwargs + ), + _models.ASSOCIATE_CLIENT_VPN_TARGET_NETWORK, + [], + plugins, ) + @_overload + async def associate_dhcp_options( + self, + request: _models.AssociateDhcpOptionsInput + | _models.AssociateDhcpOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateDhcpOptionsOutput: ... + + @_overload async def associate_dhcp_options( - self, input: AssociateDhcpOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateDhcpOptionsInputDict], ) -> AssociateDhcpOptionsOutput: """ Associates a set of DHCP options (that you've previously created) with @@ -2384,8 +2012,6 @@ async def associate_dhcp_options( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateDhcpOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2395,12 +2021,34 @@ async def associate_dhcp_options( Returns: An instance of `AssociateDhcpOptionsOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_DHCP_OPTIONS, [], plugins) + async def associate_dhcp_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateDhcpOptionsOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_DHCP_OPTIONS, args, kwargs), + _models.ASSOCIATE_DHCP_OPTIONS, + [], + plugins, + ) + + @_overload + async def associate_enclave_certificate_iam_role( + self, + request: _models.AssociateEnclaveCertificateIamRoleInput + | _models.AssociateEnclaveCertificateIamRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateEnclaveCertificateIamRoleOutput: ... + + @_overload async def associate_enclave_certificate_iam_role( self, - input: AssociateEnclaveCertificateIamRoleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateEnclaveCertificateIamRoleInputDict], ) -> AssociateEnclaveCertificateIamRoleOutput: """ Associates an Identity and Access Management (IAM) role with an @@ -2426,8 +2074,6 @@ async def associate_enclave_certificate_iam_role( in the *Amazon Web Services Nitro Enclaves User Guide*. Args: - input: - An instance of `AssociateEnclaveCertificateIamRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2437,14 +2083,36 @@ async def associate_enclave_certificate_iam_role( Returns: An instance of `AssociateEnclaveCertificateIamRoleOutput`. """ + + async def associate_enclave_certificate_iam_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateEnclaveCertificateIamRoleOutput: return await self._invoke( - input, _models.ASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, [], plugins + self._select_input( + _models.ASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, args, kwargs + ), + _models.ASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, + [], + plugins, ) + @_overload + async def associate_iam_instance_profile( + self, + request: _models.AssociateIamInstanceProfileInput + | _models.AssociateIamInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateIamInstanceProfileOutput: ... + + @_overload async def associate_iam_instance_profile( self, - input: AssociateIamInstanceProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateIamInstanceProfileInputDict], ) -> AssociateIamInstanceProfileOutput: """ Associates an IAM instance profile with a running or stopped instance. @@ -2452,8 +2120,6 @@ async def associate_iam_instance_profile( instance. Args: - input: - An instance of `AssociateIamInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2463,14 +2129,34 @@ async def associate_iam_instance_profile( Returns: An instance of `AssociateIamInstanceProfileOutput`. """ + + async def associate_iam_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateIamInstanceProfileOutput: return await self._invoke( - input, _models.ASSOCIATE_IAM_INSTANCE_PROFILE, [], plugins + self._select_input(_models.ASSOCIATE_IAM_INSTANCE_PROFILE, args, kwargs), + _models.ASSOCIATE_IAM_INSTANCE_PROFILE, + [], + plugins, ) + @_overload + async def associate_instance_event_window( + self, + request: _models.AssociateInstanceEventWindowInput + | _models.AssociateInstanceEventWindowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateInstanceEventWindowOutput: ... + + @_overload async def associate_instance_event_window( self, - input: AssociateInstanceEventWindowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateInstanceEventWindowInputDict], ) -> AssociateInstanceEventWindowOutput: """ Associates one or more targets with an event window. Only one type of @@ -2482,8 +2168,6 @@ async def associate_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `AssociateInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2493,13 +2177,35 @@ async def associate_instance_event_window( Returns: An instance of `AssociateInstanceEventWindowOutput`. """ + + async def associate_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateInstanceEventWindowOutput: return await self._invoke( - input, _models.ASSOCIATE_INSTANCE_EVENT_WINDOW, [], plugins + self._select_input(_models.ASSOCIATE_INSTANCE_EVENT_WINDOW, args, kwargs), + _models.ASSOCIATE_INSTANCE_EVENT_WINDOW, + [], + plugins, ) + @_overload async def associate_ipam_byoasn( - self, input: AssociateIpamByoasnInput, plugins: list[Plugin] | None = None - ) -> AssociateIpamByoasnOutput: + self, + request: _models.AssociateIpamByoasnInput + | _models.AssociateIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateIpamByoasnOutput: ... + + @_overload + async def associate_ipam_byoasn( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateIpamByoasnInputDict], + ) -> AssociateIpamByoasnOutput: """ Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region. For more information, @@ -2514,8 +2220,6 @@ async def associate_ipam_byoasn( [AdvertiseByoipCidr](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AdvertiseByoipCidr.html). Args: - input: - An instance of `AssociateIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2525,12 +2229,34 @@ async def associate_ipam_byoasn( Returns: An instance of `AssociateIpamByoasnOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_IPAM_BYOASN, [], plugins) + async def associate_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateIpamByoasnOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_IPAM_BYOASN, args, kwargs), + _models.ASSOCIATE_IPAM_BYOASN, + [], + plugins, + ) + + @_overload + async def associate_ipam_resource_discovery( + self, + request: _models.AssociateIpamResourceDiscoveryInput + | _models.AssociateIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateIpamResourceDiscoveryOutput: ... + + @_overload async def associate_ipam_resource_discovery( self, - input: AssociateIpamResourceDiscoveryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateIpamResourceDiscoveryInputDict], ) -> AssociateIpamResourceDiscoveryOutput: """ Associates an IPAM resource discovery with an Amazon VPC IPAM. A @@ -2538,8 +2264,6 @@ async def associate_ipam_resource_discovery( monitor resources that belong to the owning account. Args: - input: - An instance of `AssociateIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2549,14 +2273,34 @@ async def associate_ipam_resource_discovery( Returns: An instance of `AssociateIpamResourceDiscoveryOutput`. """ + + async def associate_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateIpamResourceDiscoveryOutput: return await self._invoke( - input, _models.ASSOCIATE_IPAM_RESOURCE_DISCOVERY, [], plugins + self._select_input(_models.ASSOCIATE_IPAM_RESOURCE_DISCOVERY, args, kwargs), + _models.ASSOCIATE_IPAM_RESOURCE_DISCOVERY, + [], + plugins, ) + @_overload + async def associate_nat_gateway_address( + self, + request: _models.AssociateNatGatewayAddressInput + | _models.AssociateNatGatewayAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateNatGatewayAddressOutput: ... + + @_overload async def associate_nat_gateway_address( self, - input: AssociateNatGatewayAddressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateNatGatewayAddressInputDict], ) -> AssociateNatGatewayAddressOutput: """ Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a @@ -2583,8 +2327,6 @@ async def associate_nat_gateway_address( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateNatGatewayAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2594,12 +2336,34 @@ async def associate_nat_gateway_address( Returns: An instance of `AssociateNatGatewayAddressOutput`. """ + + async def associate_nat_gateway_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateNatGatewayAddressOutput: return await self._invoke( - input, _models.ASSOCIATE_NAT_GATEWAY_ADDRESS, [], plugins + self._select_input(_models.ASSOCIATE_NAT_GATEWAY_ADDRESS, args, kwargs), + _models.ASSOCIATE_NAT_GATEWAY_ADDRESS, + [], + plugins, ) + @_overload async def associate_route_server( - self, input: AssociateRouteServerInput, plugins: list[Plugin] | None = None + self, + request: _models.AssociateRouteServerInput + | _models.AssociateRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateRouteServerOutput: ... + + @_overload + async def associate_route_server( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateRouteServerInputDict], ) -> AssociateRouteServerOutput: """ Associates a route server with a VPC to enable dynamic route updates. @@ -2612,8 +2376,6 @@ async def associate_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2623,10 +2385,34 @@ async def associate_route_server( Returns: An instance of `AssociateRouteServerOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_ROUTE_SERVER, [], plugins) + async def associate_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateRouteServerOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_ROUTE_SERVER, args, kwargs), + _models.ASSOCIATE_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + async def associate_route_table( + self, + request: _models.AssociateRouteTableInput + | _models.AssociateRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateRouteTableOutput: ... + + @_overload async def associate_route_table( - self, input: AssociateRouteTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateRouteTableInputDict], ) -> AssociateRouteTableOutput: """ Associates a subnet in your VPC or an internet gateway or virtual @@ -2641,8 +2427,6 @@ async def associate_route_table( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2652,10 +2436,34 @@ async def associate_route_table( Returns: An instance of `AssociateRouteTableOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_ROUTE_TABLE, [], plugins) + async def associate_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateRouteTableOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_ROUTE_TABLE, args, kwargs), + _models.ASSOCIATE_ROUTE_TABLE, + [], + plugins, + ) + + @_overload + async def associate_security_group_vpc( + self, + request: _models.AssociateSecurityGroupVpcInput + | _models.AssociateSecurityGroupVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateSecurityGroupVpcOutput: ... + + @_overload async def associate_security_group_vpc( - self, input: AssociateSecurityGroupVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateSecurityGroupVpcInputDict], ) -> AssociateSecurityGroupVpcOutput: """ Associates a security group with another VPC in the same Region. This @@ -2676,8 +2484,6 @@ async def associate_security_group_vpc( - You cannot use this feature with the default VPC. Args: - input: - An instance of `AssociateSecurityGroupVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2687,20 +2493,40 @@ async def associate_security_group_vpc( Returns: An instance of `AssociateSecurityGroupVpcOutput`. """ + + async def associate_security_group_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateSecurityGroupVpcOutput: return await self._invoke( - input, _models.ASSOCIATE_SECURITY_GROUP_VPC, [], plugins + self._select_input(_models.ASSOCIATE_SECURITY_GROUP_VPC, args, kwargs), + _models.ASSOCIATE_SECURITY_GROUP_VPC, + [], + plugins, ) + @_overload + async def associate_subnet_cidr_block( + self, + request: _models.AssociateSubnetCidrBlockInput + | _models.AssociateSubnetCidrBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateSubnetCidrBlockOutput: ... + + @_overload async def associate_subnet_cidr_block( - self, input: AssociateSubnetCidrBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateSubnetCidrBlockInputDict], ) -> AssociateSubnetCidrBlockOutput: """ Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet. Args: - input: - An instance of `AssociateSubnetCidrBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2710,14 +2536,34 @@ async def associate_subnet_cidr_block( Returns: An instance of `AssociateSubnetCidrBlockOutput`. """ + + async def associate_subnet_cidr_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateSubnetCidrBlockOutput: return await self._invoke( - input, _models.ASSOCIATE_SUBNET_CIDR_BLOCK, [], plugins + self._select_input(_models.ASSOCIATE_SUBNET_CIDR_BLOCK, args, kwargs), + _models.ASSOCIATE_SUBNET_CIDR_BLOCK, + [], + plugins, ) + @_overload async def associate_transit_gateway_multicast_domain( self, - input: AssociateTransitGatewayMulticastDomainInput, + request: _models.AssociateTransitGatewayMulticastDomainInput + | _models.AssociateTransitGatewayMulticastDomainInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssociateTransitGatewayMulticastDomainOutput: ... + + @_overload + async def associate_transit_gateway_multicast_domain( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateTransitGatewayMulticastDomainInputDict], ) -> AssociateTransitGatewayMulticastDomainOutput: """ Associates the specified subnets and transit gateway attachments with @@ -2729,8 +2575,6 @@ async def associate_transit_gateway_multicast_domain( to see the state of the attachment. Args: - input: - An instance of `AssociateTransitGatewayMulticastDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2740,22 +2584,42 @@ async def associate_transit_gateway_multicast_domain( Returns: An instance of `AssociateTransitGatewayMulticastDomainOutput`. """ + + async def associate_transit_gateway_multicast_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateTransitGatewayMulticastDomainOutput: return await self._invoke( - input, _models.ASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, [], plugins + self._select_input( + _models.ASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, args, kwargs + ), + _models.ASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, + [], + plugins, ) + @_overload + async def associate_transit_gateway_policy_table( + self, + request: _models.AssociateTransitGatewayPolicyTableInput + | _models.AssociateTransitGatewayPolicyTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateTransitGatewayPolicyTableOutput: ... + + @_overload async def associate_transit_gateway_policy_table( self, - input: AssociateTransitGatewayPolicyTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateTransitGatewayPolicyTableInputDict], ) -> AssociateTransitGatewayPolicyTableOutput: """ Associates the specified transit gateway attachment with a transit gateway policy table. Args: - input: - An instance of `AssociateTransitGatewayPolicyTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2765,22 +2629,42 @@ async def associate_transit_gateway_policy_table( Returns: An instance of `AssociateTransitGatewayPolicyTableOutput`. """ + + async def associate_transit_gateway_policy_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateTransitGatewayPolicyTableOutput: return await self._invoke( - input, _models.ASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, [], plugins + self._select_input( + _models.ASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, args, kwargs + ), + _models.ASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, + [], + plugins, ) + @_overload + async def associate_transit_gateway_route_table( + self, + request: _models.AssociateTransitGatewayRouteTableInput + | _models.AssociateTransitGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateTransitGatewayRouteTableOutput: ... + + @_overload async def associate_transit_gateway_route_table( self, - input: AssociateTransitGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateTransitGatewayRouteTableInputDict], ) -> AssociateTransitGatewayRouteTableOutput: """ Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment. Args: - input: - An instance of `AssociateTransitGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2790,12 +2674,36 @@ async def associate_transit_gateway_route_table( Returns: An instance of `AssociateTransitGatewayRouteTableOutput`. """ + + async def associate_transit_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateTransitGatewayRouteTableOutput: return await self._invoke( - input, _models.ASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input( + _models.ASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, args, kwargs + ), + _models.ASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + async def associate_trunk_interface( + self, + request: _models.AssociateTrunkInterfaceInput + | _models.AssociateTrunkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateTrunkInterfaceOutput: ... + + @_overload async def associate_trunk_interface( - self, input: AssociateTrunkInterfaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateTrunkInterfaceInputDict], ) -> AssociateTrunkInterfaceOutput: """ Associates a branch network interface with a trunk network interface. @@ -2807,8 +2715,6 @@ async def associate_trunk_interface( associate with the trunk network interface. Args: - input: - An instance of `AssociateTrunkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2818,10 +2724,34 @@ async def associate_trunk_interface( Returns: An instance of `AssociateTrunkInterfaceOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_TRUNK_INTERFACE, [], plugins) + async def associate_trunk_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateTrunkInterfaceOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_TRUNK_INTERFACE, args, kwargs), + _models.ASSOCIATE_TRUNK_INTERFACE, + [], + plugins, + ) + + @_overload async def associate_vpc_cidr_block( - self, input: AssociateVpcCidrBlockInput, plugins: list[Plugin] | None = None + self, + request: _models.AssociateVpcCidrBlockInput + | _models.AssociateVpcCidrBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateVpcCidrBlockOutput: ... + + @_overload + async def associate_vpc_cidr_block( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateVpcCidrBlockInputDict], ) -> AssociateVpcCidrBlockOutput: """ Associates a CIDR block with your VPC. You can associate a secondary @@ -2839,8 +2769,6 @@ async def associate_vpc_cidr_block( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateVpcCidrBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2850,10 +2778,34 @@ async def associate_vpc_cidr_block( Returns: An instance of `AssociateVpcCidrBlockOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_VPC_CIDR_BLOCK, [], plugins) + async def associate_vpc_cidr_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateVpcCidrBlockOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_VPC_CIDR_BLOCK, args, kwargs), + _models.ASSOCIATE_VPC_CIDR_BLOCK, + [], + plugins, + ) + + @_overload + async def attach_classic_link_vpc( + self, + request: _models.AttachClassicLinkVpcInput + | _models.AttachClassicLinkVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachClassicLinkVpcOutput: ... + + @_overload async def attach_classic_link_vpc( - self, input: AttachClassicLinkVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachClassicLinkVpcInputDict], ) -> AttachClassicLinkVpcOutput: """ Note: @@ -2874,8 +2826,6 @@ async def attach_classic_link_vpc( your instance. Args: - input: - An instance of `AttachClassicLinkVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2885,10 +2835,34 @@ async def attach_classic_link_vpc( Returns: An instance of `AttachClassicLinkVpcOutput`. """ - return await self._invoke(input, _models.ATTACH_CLASSIC_LINK_VPC, [], plugins) + async def attach_classic_link_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachClassicLinkVpcOutput: + return await self._invoke( + self._select_input(_models.ATTACH_CLASSIC_LINK_VPC, args, kwargs), + _models.ATTACH_CLASSIC_LINK_VPC, + [], + plugins, + ) + + @_overload + async def attach_image_watermark( + self, + request: _models.AttachImageWatermarkInput + | _models.AttachImageWatermarkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachImageWatermarkOutput: ... + + @_overload async def attach_image_watermark( - self, input: AttachImageWatermarkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachImageWatermarkInputDict], ) -> AttachImageWatermarkOutput: """ Attaches a watermark to a non-public AMI. The watermark is a structured @@ -2902,8 +2876,6 @@ async def attach_image_watermark( public AMIs. Args: - input: - An instance of `AttachImageWatermarkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2913,10 +2885,34 @@ async def attach_image_watermark( Returns: An instance of `AttachImageWatermarkOutput`. """ - return await self._invoke(input, _models.ATTACH_IMAGE_WATERMARK, [], plugins) + async def attach_image_watermark( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachImageWatermarkOutput: + return await self._invoke( + self._select_input(_models.ATTACH_IMAGE_WATERMARK, args, kwargs), + _models.ATTACH_IMAGE_WATERMARK, + [], + plugins, + ) + + @_overload + async def attach_internet_gateway( + self, + request: _models.AttachInternetGatewayInput + | _models.AttachInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachInternetGatewayOutput: ... + + @_overload async def attach_internet_gateway( - self, input: AttachInternetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachInternetGatewayInputDict], ) -> AttachInternetGatewayOutput: """ Attaches an internet gateway or a virtual private gateway to a VPC, @@ -2926,8 +2922,6 @@ async def attach_internet_gateway( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AttachInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2937,17 +2931,39 @@ async def attach_internet_gateway( Returns: An instance of `AttachInternetGatewayOutput`. """ - return await self._invoke(input, _models.ATTACH_INTERNET_GATEWAY, [], plugins) + async def attach_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachInternetGatewayOutput: + return await self._invoke( + self._select_input(_models.ATTACH_INTERNET_GATEWAY, args, kwargs), + _models.ATTACH_INTERNET_GATEWAY, + [], + plugins, + ) + + @_overload + async def attach_network_interface( + self, + request: _models.AttachNetworkInterfaceInput + | _models.AttachNetworkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachNetworkInterfaceOutput: ... + + @_overload async def attach_network_interface( - self, input: AttachNetworkInterfaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachNetworkInterfaceInputDict], ) -> AttachNetworkInterfaceOutput: """ Attaches a network interface to an instance. Args: - input: - An instance of `AttachNetworkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2957,20 +2973,40 @@ async def attach_network_interface( Returns: An instance of `AttachNetworkInterfaceOutput`. """ - return await self._invoke(input, _models.ATTACH_NETWORK_INTERFACE, [], plugins) + async def attach_network_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachNetworkInterfaceOutput: + return await self._invoke( + self._select_input(_models.ATTACH_NETWORK_INTERFACE, args, kwargs), + _models.ATTACH_NETWORK_INTERFACE, + [], + plugins, + ) + + @_overload + async def attach_verified_access_trust_provider( + self, + request: _models.AttachVerifiedAccessTrustProviderInput + | _models.AttachVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachVerifiedAccessTrustProviderOutput: ... + + @_overload async def attach_verified_access_trust_provider( self, - input: AttachVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachVerifiedAccessTrustProviderInputDict], ) -> AttachVerifiedAccessTrustProviderOutput: """ Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance. Args: - input: - An instance of `AttachVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2980,12 +3016,35 @@ async def attach_verified_access_trust_provider( Returns: An instance of `AttachVerifiedAccessTrustProviderOutput`. """ + + async def attach_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachVerifiedAccessTrustProviderOutput: return await self._invoke( - input, _models.ATTACH_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.ATTACH_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.ATTACH_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload + async def attach_volume( + self, + request: _models.AttachVolumeInput | _models.AttachVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachVolumeOutput: ... + + @_overload async def attach_volume( - self, input: AttachVolumeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachVolumeInputDict], ) -> AttachVolumeOutput: """ Attaches an Amazon EBS volume to a `running` or `stopped` instance, and @@ -3021,8 +3080,6 @@ async def attach_volume( in the *Amazon EBS User Guide*. Args: - input: - An instance of `AttachVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3032,10 +3089,33 @@ async def attach_volume( Returns: An instance of `AttachVolumeOutput`. """ - return await self._invoke(input, _models.ATTACH_VOLUME, [], plugins) + async def attach_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachVolumeOutput: + return await self._invoke( + self._select_input(_models.ATTACH_VOLUME, args, kwargs), + _models.ATTACH_VOLUME, + [], + plugins, + ) + + @_overload + async def attach_vpn_gateway( + self, + request: _models.AttachVpnGatewayInput | _models.AttachVpnGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachVpnGatewayOutput: ... + + @_overload async def attach_vpn_gateway( - self, input: AttachVpnGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachVpnGatewayInputDict], ) -> AttachVpnGatewayOutput: """ Attaches an available virtual private gateway to a VPC. You can attach @@ -3046,8 +3126,6 @@ async def attach_vpn_gateway( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `AttachVpnGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3057,10 +3135,34 @@ async def attach_vpn_gateway( Returns: An instance of `AttachVpnGatewayOutput`. """ - return await self._invoke(input, _models.ATTACH_VPN_GATEWAY, [], plugins) + async def attach_vpn_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachVpnGatewayOutput: + return await self._invoke( + self._select_input(_models.ATTACH_VPN_GATEWAY, args, kwargs), + _models.ATTACH_VPN_GATEWAY, + [], + plugins, + ) + + @_overload + async def authorize_client_vpn_ingress( + self, + request: _models.AuthorizeClientVpnIngressInput + | _models.AuthorizeClientVpnIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AuthorizeClientVpnIngressOutput: ... + + @_overload async def authorize_client_vpn_ingress( - self, input: AuthorizeClientVpnIngressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AuthorizeClientVpnIngressInputDict], ) -> AuthorizeClientVpnIngressOutput: """ Adds an ingress authorization rule to a Client VPN endpoint. Ingress @@ -3069,8 +3171,6 @@ async def authorize_client_vpn_ingress( access resources in Amazon Web Services or on-premises networks. Args: - input: - An instance of `AuthorizeClientVpnIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3080,14 +3180,34 @@ async def authorize_client_vpn_ingress( Returns: An instance of `AuthorizeClientVpnIngressOutput`. """ + + async def authorize_client_vpn_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AuthorizeClientVpnIngressOutput: return await self._invoke( - input, _models.AUTHORIZE_CLIENT_VPN_INGRESS, [], plugins + self._select_input(_models.AUTHORIZE_CLIENT_VPN_INGRESS, args, kwargs), + _models.AUTHORIZE_CLIENT_VPN_INGRESS, + [], + plugins, ) + @_overload + async def authorize_security_group_egress( + self, + request: _models.AuthorizeSecurityGroupEgressInput + | _models.AuthorizeSecurityGroupEgressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AuthorizeSecurityGroupEgressOutput: ... + + @_overload async def authorize_security_group_egress( self, - input: AuthorizeSecurityGroupEgressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AuthorizeSecurityGroupEgressInputDict], ) -> AuthorizeSecurityGroupEgressOutput: """ Adds the specified outbound (egress) rules to a security group. @@ -3117,8 +3237,6 @@ async def authorize_security_group_egress( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AuthorizeSecurityGroupEgressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3128,14 +3246,34 @@ async def authorize_security_group_egress( Returns: An instance of `AuthorizeSecurityGroupEgressOutput`. """ + + async def authorize_security_group_egress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AuthorizeSecurityGroupEgressOutput: return await self._invoke( - input, _models.AUTHORIZE_SECURITY_GROUP_EGRESS, [], plugins + self._select_input(_models.AUTHORIZE_SECURITY_GROUP_EGRESS, args, kwargs), + _models.AUTHORIZE_SECURITY_GROUP_EGRESS, + [], + plugins, ) + @_overload async def authorize_security_group_ingress( self, - input: AuthorizeSecurityGroupIngressInput, + request: _models.AuthorizeSecurityGroupIngressInput + | _models.AuthorizeSecurityGroupIngressInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AuthorizeSecurityGroupIngressOutput: ... + + @_overload + async def authorize_security_group_ingress( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AuthorizeSecurityGroupIngressInputDict], ) -> AuthorizeSecurityGroupIngressOutput: """ Adds the specified inbound (ingress) rules to a security group. @@ -3165,8 +3303,6 @@ async def authorize_security_group_ingress( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AuthorizeSecurityGroupIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3176,14 +3312,34 @@ async def authorize_security_group_ingress( Returns: An instance of `AuthorizeSecurityGroupIngressOutput`. """ + + async def authorize_security_group_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AuthorizeSecurityGroupIngressOutput: return await self._invoke( - input, _models.AUTHORIZE_SECURITY_GROUP_INGRESS, [], plugins + self._select_input(_models.AUTHORIZE_SECURITY_GROUP_INGRESS, args, kwargs), + _models.AUTHORIZE_SECURITY_GROUP_INGRESS, + [], + plugins, ) + @_overload + async def batch_modify_ipam_routing_policy_registrations( + self, + request: _models.BatchModifyIpamRoutingPolicyRegistrationsInput + | _models.BatchModifyIpamRoutingPolicyRegistrationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchModifyIpamRoutingPolicyRegistrationsOutput: ... + + @_overload async def batch_modify_ipam_routing_policy_registrations( self, - input: BatchModifyIpamRoutingPolicyRegistrationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchModifyIpamRoutingPolicyRegistrationsInputDict], ) -> BatchModifyIpamRoutingPolicyRegistrationsOutput: """ Modifies multiple routing policy registrations in a single operation. @@ -3191,8 +3347,6 @@ async def batch_modify_ipam_routing_policy_registrations( batch. Args: - input: - An instance of `BatchModifyIpamRoutingPolicyRegistrationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3202,12 +3356,35 @@ async def batch_modify_ipam_routing_policy_registrations( Returns: An instance of `BatchModifyIpamRoutingPolicyRegistrationsOutput`. """ - return await self._invoke( - input, _models.BATCH_MODIFY_IPAM_ROUTING_POLICY_REGISTRATIONS, [], plugins - ) - async def bundle_instance( - self, input: BundleInstanceInput, plugins: list[Plugin] | None = None + async def batch_modify_ipam_routing_policy_registrations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchModifyIpamRoutingPolicyRegistrationsOutput: + return await self._invoke( + self._select_input( + _models.BATCH_MODIFY_IPAM_ROUTING_POLICY_REGISTRATIONS, args, kwargs + ), + _models.BATCH_MODIFY_IPAM_ROUTING_POLICY_REGISTRATIONS, + [], + plugins, + ) + + @_overload + async def bundle_instance( + self, + request: _models.BundleInstanceInput | _models.BundleInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BundleInstanceOutput: ... + + @_overload + async def bundle_instance( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BundleInstanceInputDict], ) -> BundleInstanceOutput: """ Bundles an Amazon instance store-backed Windows instance. @@ -3224,8 +3401,6 @@ async def bundle_instance( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `BundleInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3235,10 +3410,33 @@ async def bundle_instance( Returns: An instance of `BundleInstanceOutput`. """ - return await self._invoke(input, _models.BUNDLE_INSTANCE, [], plugins) + async def bundle_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BundleInstanceOutput: + return await self._invoke( + self._select_input(_models.BUNDLE_INSTANCE, args, kwargs), + _models.BUNDLE_INSTANCE, + [], + plugins, + ) + + @_overload + async def cancel_bundle_task( + self, + request: _models.CancelBundleTaskInput | _models.CancelBundleTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelBundleTaskOutput: ... + + @_overload async def cancel_bundle_task( - self, input: CancelBundleTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelBundleTaskInputDict], ) -> CancelBundleTaskOutput: """ Cancels a bundling operation for an instance store-backed Windows @@ -3250,8 +3448,6 @@ async def cancel_bundle_task( the operation it cancels, is no longer supported. Args: - input: - An instance of `CancelBundleTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3261,10 +3457,34 @@ async def cancel_bundle_task( Returns: An instance of `CancelBundleTaskOutput`. """ - return await self._invoke(input, _models.CANCEL_BUNDLE_TASK, [], plugins) + async def cancel_bundle_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelBundleTaskOutput: + return await self._invoke( + self._select_input(_models.CANCEL_BUNDLE_TASK, args, kwargs), + _models.CANCEL_BUNDLE_TASK, + [], + plugins, + ) + + @_overload + async def cancel_capacity_reservation( + self, + request: _models.CancelCapacityReservationInput + | _models.CancelCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelCapacityReservationOutput: ... + + @_overload async def cancel_capacity_reservation( - self, input: CancelCapacityReservationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelCapacityReservationInputDict], ) -> CancelCapacityReservationOutput: """ Cancels the specified Capacity Reservation, releases the reserved @@ -3305,8 +3525,6 @@ async def cancel_capacity_reservation( capacity. Args: - input: - An instance of `CancelCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3316,14 +3534,34 @@ async def cancel_capacity_reservation( Returns: An instance of `CancelCapacityReservationOutput`. """ + + async def cancel_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelCapacityReservationOutput: return await self._invoke( - input, _models.CANCEL_CAPACITY_RESERVATION, [], plugins + self._select_input(_models.CANCEL_CAPACITY_RESERVATION, args, kwargs), + _models.CANCEL_CAPACITY_RESERVATION, + [], + plugins, ) + @_overload + async def cancel_capacity_reservation_fleets( + self, + request: _models.CancelCapacityReservationFleetsInput + | _models.CancelCapacityReservationFleetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelCapacityReservationFleetsOutput: ... + + @_overload async def cancel_capacity_reservation_fleets( self, - input: CancelCapacityReservationFleetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelCapacityReservationFleetsInputDict], ) -> CancelCapacityReservationFleetsOutput: """ Cancels one or more Capacity Reservation Fleets. When you cancel a @@ -3338,8 +3576,6 @@ async def cancel_capacity_reservation_fleets( - The Fleet stops creating new Capacity Reservations. Args: - input: - An instance of `CancelCapacityReservationFleetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3349,12 +3585,36 @@ async def cancel_capacity_reservation_fleets( Returns: An instance of `CancelCapacityReservationFleetsOutput`. """ + + async def cancel_capacity_reservation_fleets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelCapacityReservationFleetsOutput: return await self._invoke( - input, _models.CANCEL_CAPACITY_RESERVATION_FLEETS, [], plugins + self._select_input( + _models.CANCEL_CAPACITY_RESERVATION_FLEETS, args, kwargs + ), + _models.CANCEL_CAPACITY_RESERVATION_FLEETS, + [], + plugins, ) + @_overload + async def cancel_conversion_task( + self, + request: _models.CancelConversionTaskInput + | _models.CancelConversionTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelConversionTaskOutput: ... + + @_overload async def cancel_conversion_task( - self, input: CancelConversionTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelConversionTaskInputDict], ) -> CancelConversionTaskOutput: """ Cancels an active conversion task. The task can be the import of an @@ -3364,8 +3624,6 @@ async def cancel_conversion_task( command fails and returns an exception. Args: - input: - An instance of `CancelConversionTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3375,12 +3633,34 @@ async def cancel_conversion_task( Returns: An instance of `CancelConversionTaskOutput`. """ - return await self._invoke(input, _models.CANCEL_CONVERSION_TASK, [], plugins) + async def cancel_conversion_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelConversionTaskOutput: + return await self._invoke( + self._select_input(_models.CANCEL_CONVERSION_TASK, args, kwargs), + _models.CANCEL_CONVERSION_TASK, + [], + plugins, + ) + + @_overload + async def cancel_declarative_policies_report( + self, + request: _models.CancelDeclarativePoliciesReportInput + | _models.CancelDeclarativePoliciesReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelDeclarativePoliciesReportOutput: ... + + @_overload async def cancel_declarative_policies_report( self, - input: CancelDeclarativePoliciesReportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelDeclarativePoliciesReportInputDict], ) -> CancelDeclarativePoliciesReportOutput: """ Cancels the generation of an account status report. @@ -3395,8 +3675,6 @@ async def cancel_declarative_policies_report( in the *Amazon Web Services Organizations User Guide*. Args: - input: - An instance of `CancelDeclarativePoliciesReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3406,12 +3684,35 @@ async def cancel_declarative_policies_report( Returns: An instance of `CancelDeclarativePoliciesReportOutput`. """ + + async def cancel_declarative_policies_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelDeclarativePoliciesReportOutput: return await self._invoke( - input, _models.CANCEL_DECLARATIVE_POLICIES_REPORT, [], plugins + self._select_input( + _models.CANCEL_DECLARATIVE_POLICIES_REPORT, args, kwargs + ), + _models.CANCEL_DECLARATIVE_POLICIES_REPORT, + [], + plugins, ) + @_overload + async def cancel_export_task( + self, + request: _models.CancelExportTaskInput | _models.CancelExportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelExportTaskOutput: ... + + @_overload async def cancel_export_task( - self, input: CancelExportTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelExportTaskInputDict], ) -> CancelExportTaskOutput: """ Cancels an active export task. The request removes all artifacts of the @@ -3420,8 +3721,6 @@ async def cancel_export_task( image, the command fails and returns an error. Args: - input: - An instance of `CancelExportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3431,12 +3730,34 @@ async def cancel_export_task( Returns: An instance of `CancelExportTaskOutput`. """ - return await self._invoke(input, _models.CANCEL_EXPORT_TASK, [], plugins) + async def cancel_export_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelExportTaskOutput: + return await self._invoke( + self._select_input(_models.CANCEL_EXPORT_TASK, args, kwargs), + _models.CANCEL_EXPORT_TASK, + [], + plugins, + ) + + @_overload + async def cancel_image_launch_permission( + self, + request: _models.CancelImageLaunchPermissionInput + | _models.CancelImageLaunchPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelImageLaunchPermissionOutput: ... + + @_overload async def cancel_image_launch_permission( self, - input: CancelImageLaunchPermissionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelImageLaunchPermissionInputDict], ) -> CancelImageLaunchPermissionOutput: """ Removes your Amazon Web Services account from the launch permissions for @@ -3446,8 +3767,6 @@ async def cancel_image_launch_permission( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CancelImageLaunchPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3457,19 +3776,38 @@ async def cancel_image_launch_permission( Returns: An instance of `CancelImageLaunchPermissionOutput`. """ + + async def cancel_image_launch_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelImageLaunchPermissionOutput: return await self._invoke( - input, _models.CANCEL_IMAGE_LAUNCH_PERMISSION, [], plugins + self._select_input(_models.CANCEL_IMAGE_LAUNCH_PERMISSION, args, kwargs), + _models.CANCEL_IMAGE_LAUNCH_PERMISSION, + [], + plugins, ) + @_overload + async def cancel_import_task( + self, + request: _models.CancelImportTaskInput | _models.CancelImportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelImportTaskOutput: ... + + @_overload async def cancel_import_task( - self, input: CancelImportTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelImportTaskInputDict], ) -> CancelImportTaskOutput: """ Cancels an in-process import virtual machine or import snapshot task. Args: - input: - An instance of `CancelImportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3479,12 +3817,34 @@ async def cancel_import_task( Returns: An instance of `CancelImportTaskOutput`. """ - return await self._invoke(input, _models.CANCEL_IMPORT_TASK, [], plugins) + async def cancel_import_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelImportTaskOutput: + return await self._invoke( + self._select_input(_models.CANCEL_IMPORT_TASK, args, kwargs), + _models.CANCEL_IMPORT_TASK, + [], + plugins, + ) + + @_overload + async def cancel_reserved_instances_listing( + self, + request: _models.CancelReservedInstancesListingInput + | _models.CancelReservedInstancesListingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelReservedInstancesListingOutput: ... + + @_overload async def cancel_reserved_instances_listing( self, - input: CancelReservedInstancesListingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelReservedInstancesListingInputDict], ) -> CancelReservedInstancesListingOutput: """ Cancels the specified Reserved Instance listing in the Reserved Instance @@ -3495,8 +3855,6 @@ async def cancel_reserved_instances_listing( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CancelReservedInstancesListingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3506,12 +3864,34 @@ async def cancel_reserved_instances_listing( Returns: An instance of `CancelReservedInstancesListingOutput`. """ + + async def cancel_reserved_instances_listing( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelReservedInstancesListingOutput: return await self._invoke( - input, _models.CANCEL_RESERVED_INSTANCES_LISTING, [], plugins + self._select_input(_models.CANCEL_RESERVED_INSTANCES_LISTING, args, kwargs), + _models.CANCEL_RESERVED_INSTANCES_LISTING, + [], + plugins, ) + @_overload async def cancel_spot_fleet_requests( - self, input: CancelSpotFleetRequestsInput, plugins: list[Plugin] | None = None + self, + request: _models.CancelSpotFleetRequestsInput + | _models.CancelSpotFleetRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelSpotFleetRequestsOutput: ... + + @_overload + async def cancel_spot_fleet_requests( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelSpotFleetRequestsInputDict], ) -> CancelSpotFleetRequestsOutput: """ Cancels the specified Spot Fleet requests. @@ -3546,8 +3926,6 @@ async def cancel_spot_fleet_requests( specified number, no fleets are deleted. Args: - input: - An instance of `CancelSpotFleetRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3557,14 +3935,34 @@ async def cancel_spot_fleet_requests( Returns: An instance of `CancelSpotFleetRequestsOutput`. """ + + async def cancel_spot_fleet_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelSpotFleetRequestsOutput: return await self._invoke( - input, _models.CANCEL_SPOT_FLEET_REQUESTS, [], plugins + self._select_input(_models.CANCEL_SPOT_FLEET_REQUESTS, args, kwargs), + _models.CANCEL_SPOT_FLEET_REQUESTS, + [], + plugins, ) + @_overload + async def cancel_spot_instance_requests( + self, + request: _models.CancelSpotInstanceRequestsInput + | _models.CancelSpotInstanceRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelSpotInstanceRequestsOutput: ... + + @_overload async def cancel_spot_instance_requests( self, - input: CancelSpotInstanceRequestsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelSpotInstanceRequestsInputDict], ) -> CancelSpotInstanceRequestsOutput: """ Cancels one or more Spot Instance requests. @@ -3574,8 +3972,6 @@ async def cancel_spot_instance_requests( Instances associated with the request. Args: - input: - An instance of `CancelSpotInstanceRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3585,12 +3981,34 @@ async def cancel_spot_instance_requests( Returns: An instance of `CancelSpotInstanceRequestsOutput`. """ + + async def cancel_spot_instance_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelSpotInstanceRequestsOutput: return await self._invoke( - input, _models.CANCEL_SPOT_INSTANCE_REQUESTS, [], plugins + self._select_input(_models.CANCEL_SPOT_INSTANCE_REQUESTS, args, kwargs), + _models.CANCEL_SPOT_INSTANCE_REQUESTS, + [], + plugins, ) + @_overload + async def confirm_product_instance( + self, + request: _models.ConfirmProductInstanceInput + | _models.ConfirmProductInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ConfirmProductInstanceOutput: ... + + @_overload async def confirm_product_instance( - self, input: ConfirmProductInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConfirmProductInstanceInputDict], ) -> ConfirmProductInstanceOutput: """ Determines whether a product code is associated with an instance. This @@ -3599,8 +4017,6 @@ async def confirm_product_instance( is eligible for support. Args: - input: - An instance of `ConfirmProductInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3610,17 +4026,38 @@ async def confirm_product_instance( Returns: An instance of `ConfirmProductInstanceOutput`. """ - return await self._invoke(input, _models.CONFIRM_PRODUCT_INSTANCE, [], plugins) + async def confirm_product_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ConfirmProductInstanceOutput: + return await self._invoke( + self._select_input(_models.CONFIRM_PRODUCT_INSTANCE, args, kwargs), + _models.CONFIRM_PRODUCT_INSTANCE, + [], + plugins, + ) + + @_overload + async def copy_fpga_image( + self, + request: _models.CopyFpgaImageInput | _models.CopyFpgaImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyFpgaImageOutput: ... + + @_overload async def copy_fpga_image( - self, input: CopyFpgaImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyFpgaImageInputDict], ) -> CopyFpgaImageOutput: """ Copies the specified Amazon FPGA Image (AFI) to the current Region. Args: - input: - An instance of `CopyFpgaImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3630,10 +4067,33 @@ async def copy_fpga_image( Returns: An instance of `CopyFpgaImageOutput`. """ - return await self._invoke(input, _models.COPY_FPGA_IMAGE, [], plugins) + async def copy_fpga_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyFpgaImageOutput: + return await self._invoke( + self._select_input(_models.COPY_FPGA_IMAGE, args, kwargs), + _models.COPY_FPGA_IMAGE, + [], + plugins, + ) + + @_overload + async def copy_image( + self, + request: _models.CopyImageInput | _models.CopyImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyImageOutput: ... + + @_overload async def copy_image( - self, input: CopyImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyImageInputDict], ) -> CopyImageOutput: """ Initiates an AMI copy operation. You must specify the source AMI ID and @@ -3707,8 +4167,6 @@ async def copy_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CopyImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3718,10 +4176,33 @@ async def copy_image( Returns: An instance of `CopyImageOutput`. """ - return await self._invoke(input, _models.COPY_IMAGE, [], plugins) + async def copy_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyImageOutput: + return await self._invoke( + self._select_input(_models.COPY_IMAGE, args, kwargs), + _models.COPY_IMAGE, + [], + plugins, + ) + + @_overload + async def copy_snapshot( + self, + request: _models.CopySnapshotInput | _models.CopySnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopySnapshotOutput: ... + + @_overload async def copy_snapshot( - self, input: CopySnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopySnapshotInputDict], ) -> CopySnapshotOutput: """ Creates an exact copy of an Amazon EBS snapshot. @@ -3760,8 +4241,6 @@ async def copy_snapshot( in the *Amazon EBS User Guide*. Args: - input: - An instance of `CopySnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3771,10 +4250,33 @@ async def copy_snapshot( Returns: An instance of `CopySnapshotOutput`. """ - return await self._invoke(input, _models.COPY_SNAPSHOT, [], plugins) + async def copy_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopySnapshotOutput: + return await self._invoke( + self._select_input(_models.COPY_SNAPSHOT, args, kwargs), + _models.COPY_SNAPSHOT, + [], + plugins, + ) + + @_overload async def copy_volumes( - self, input: CopyVolumesInput, plugins: list[Plugin] | None = None + self, + request: _models.CopyVolumesInput | _models.CopyVolumesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyVolumesOutput: ... + + @_overload + async def copy_volumes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyVolumesInputDict], ) -> CopyVolumesOutput: """ Creates a crash-consistent, point-in-time copy of an existing Amazon EBS @@ -3784,8 +4286,6 @@ async def copy_volumes( volume](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copying-volume.html). Args: - input: - An instance of `CopyVolumesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3795,12 +4295,34 @@ async def copy_volumes( Returns: An instance of `CopyVolumesOutput`. """ - return await self._invoke(input, _models.COPY_VOLUMES, [], plugins) + async def copy_volumes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyVolumesOutput: + return await self._invoke( + self._select_input(_models.COPY_VOLUMES, args, kwargs), + _models.COPY_VOLUMES, + [], + plugins, + ) + + @_overload + async def create_application_status_check( + self, + request: _models.CreateApplicationStatusCheckInput + | _models.CreateApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateApplicationStatusCheckOutput: ... + + @_overload async def create_application_status_check( self, - input: CreateApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateApplicationStatusCheckInputDict], ) -> CreateApplicationStatusCheckOutput: """ Creates an application status check for monitoring the health of @@ -3832,8 +4354,6 @@ async def create_application_status_check( resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html). Args: - input: - An instance of `CreateApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3843,14 +4363,34 @@ async def create_application_status_check( Returns: An instance of `CreateApplicationStatusCheckOutput`. """ + + async def create_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateApplicationStatusCheckOutput: return await self._invoke( - input, _models.CREATE_APPLICATION_STATUS_CHECK, [], plugins + self._select_input(_models.CREATE_APPLICATION_STATUS_CHECK, args, kwargs), + _models.CREATE_APPLICATION_STATUS_CHECK, + [], + plugins, ) + @_overload + async def create_capacity_manager_data_export( + self, + request: _models.CreateCapacityManagerDataExportInput + | _models.CreateCapacityManagerDataExportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityManagerDataExportOutput: ... + + @_overload async def create_capacity_manager_data_export( self, - input: CreateCapacityManagerDataExportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityManagerDataExportInputDict], ) -> CreateCapacityManagerDataExportOutput: """ Creates a new data export configuration for EC2 Capacity Manager. This @@ -3859,8 +4399,6 @@ async def create_capacity_manager_data_export( Spot, and Capacity Reservations usage across your organization. Args: - input: - An instance of `CreateCapacityManagerDataExportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3870,12 +4408,36 @@ async def create_capacity_manager_data_export( Returns: An instance of `CreateCapacityManagerDataExportOutput`. """ + + async def create_capacity_manager_data_export( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityManagerDataExportOutput: return await self._invoke( - input, _models.CREATE_CAPACITY_MANAGER_DATA_EXPORT, [], plugins + self._select_input( + _models.CREATE_CAPACITY_MANAGER_DATA_EXPORT, args, kwargs + ), + _models.CREATE_CAPACITY_MANAGER_DATA_EXPORT, + [], + plugins, ) + @_overload + async def create_capacity_reservation( + self, + request: _models.CreateCapacityReservationInput + | _models.CreateCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationOutput: ... + + @_overload async def create_capacity_reservation( - self, input: CreateCapacityReservationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationInputDict], ) -> CreateCapacityReservationOutput: """ Creates a new Capacity Reservation with the specified attributes. @@ -3906,8 +4468,6 @@ async def create_capacity_reservation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3917,14 +4477,34 @@ async def create_capacity_reservation( Returns: An instance of `CreateCapacityReservationOutput`. """ + + async def create_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationOutput: return await self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION, [], plugins + self._select_input(_models.CREATE_CAPACITY_RESERVATION, args, kwargs), + _models.CREATE_CAPACITY_RESERVATION, + [], + plugins, ) + @_overload + async def create_capacity_reservation_by_splitting( + self, + request: _models.CreateCapacityReservationBySplittingInput + | _models.CreateCapacityReservationBySplittingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationBySplittingOutput: ... + + @_overload async def create_capacity_reservation_by_splitting( self, - input: CreateCapacityReservationBySplittingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationBySplittingInputDict], ) -> CreateCapacityReservationBySplittingOutput: """ Create a new Capacity Reservation by splitting the capacity of the @@ -3934,8 +4514,6 @@ async def create_capacity_reservation_by_splitting( Web Services account. Args: - input: - An instance of `CreateCapacityReservationBySplittingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3945,14 +4523,36 @@ async def create_capacity_reservation_by_splitting( Returns: An instance of `CreateCapacityReservationBySplittingOutput`. """ + + async def create_capacity_reservation_by_splitting( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationBySplittingOutput: return await self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION_BY_SPLITTING, [], plugins + self._select_input( + _models.CREATE_CAPACITY_RESERVATION_BY_SPLITTING, args, kwargs + ), + _models.CREATE_CAPACITY_RESERVATION_BY_SPLITTING, + [], + plugins, ) + @_overload + async def create_capacity_reservation_cancellation_quote( + self, + request: _models.CreateCapacityReservationCancellationQuoteInput + | _models.CreateCapacityReservationCancellationQuoteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationCancellationQuoteOutput: ... + + @_overload async def create_capacity_reservation_cancellation_quote( self, - input: CreateCapacityReservationCancellationQuoteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationCancellationQuoteInputDict], ) -> CreateCapacityReservationCancellationQuoteOutput: """ Generates a cancellation quote for a future-dated Capacity Reservation @@ -3962,8 +4562,6 @@ async def create_capacity_reservation_cancellation_quote( hours. Args: - input: - An instance of `CreateCapacityReservationCancellationQuoteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3973,14 +4571,36 @@ async def create_capacity_reservation_cancellation_quote( Returns: An instance of `CreateCapacityReservationCancellationQuoteOutput`. """ + + async def create_capacity_reservation_cancellation_quote( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationCancellationQuoteOutput: return await self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION_CANCELLATION_QUOTE, [], plugins + self._select_input( + _models.CREATE_CAPACITY_RESERVATION_CANCELLATION_QUOTE, args, kwargs + ), + _models.CREATE_CAPACITY_RESERVATION_CANCELLATION_QUOTE, + [], + plugins, ) + @_overload + async def create_capacity_reservation_date_change_quote( + self, + request: _models.CreateCapacityReservationDateChangeQuoteInput + | _models.CreateCapacityReservationDateChangeQuoteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationDateChangeQuoteOutput: ... + + @_overload async def create_capacity_reservation_date_change_quote( self, - input: CreateCapacityReservationDateChangeQuoteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationDateChangeQuoteInputDict], ) -> CreateCapacityReservationDateChangeQuoteOutput: """ Generates a quote for changing the start date of a future-dated Capacity @@ -3993,8 +4613,6 @@ async def create_capacity_reservation_date_change_quote( hours, and always expire at least one hour before the start date. Args: - input: - An instance of `CreateCapacityReservationDateChangeQuoteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4004,14 +4622,36 @@ async def create_capacity_reservation_date_change_quote( Returns: An instance of `CreateCapacityReservationDateChangeQuoteOutput`. """ + + async def create_capacity_reservation_date_change_quote( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationDateChangeQuoteOutput: return await self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTE, [], plugins + self._select_input( + _models.CREATE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTE, args, kwargs + ), + _models.CREATE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTE, + [], + plugins, ) + @_overload + async def create_capacity_reservation_fleet( + self, + request: _models.CreateCapacityReservationFleetInput + | _models.CreateCapacityReservationFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationFleetOutput: ... + + @_overload async def create_capacity_reservation_fleet( self, - input: CreateCapacityReservationFleetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationFleetInputDict], ) -> CreateCapacityReservationFleetOutput: """ Creates a Capacity Reservation Fleet. For more information, see [Create @@ -4020,8 +4660,6 @@ async def create_capacity_reservation_fleet( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateCapacityReservationFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4031,12 +4669,34 @@ async def create_capacity_reservation_fleet( Returns: An instance of `CreateCapacityReservationFleetOutput`. """ + + async def create_capacity_reservation_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationFleetOutput: return await self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION_FLEET, [], plugins + self._select_input(_models.CREATE_CAPACITY_RESERVATION_FLEET, args, kwargs), + _models.CREATE_CAPACITY_RESERVATION_FLEET, + [], + plugins, ) + @_overload + async def create_carrier_gateway( + self, + request: _models.CreateCarrierGatewayInput + | _models.CreateCarrierGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCarrierGatewayOutput: ... + + @_overload async def create_carrier_gateway( - self, input: CreateCarrierGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCarrierGatewayInputDict], ) -> CreateCarrierGatewayOutput: """ Creates a carrier gateway. For more information about carrier gateways, @@ -4045,8 +4705,6 @@ async def create_carrier_gateway( in the *Amazon Web Services Wavelength Developer Guide*. Args: - input: - An instance of `CreateCarrierGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4056,10 +4714,34 @@ async def create_carrier_gateway( Returns: An instance of `CreateCarrierGatewayOutput`. """ - return await self._invoke(input, _models.CREATE_CARRIER_GATEWAY, [], plugins) + async def create_carrier_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCarrierGatewayOutput: + return await self._invoke( + self._select_input(_models.CREATE_CARRIER_GATEWAY, args, kwargs), + _models.CREATE_CARRIER_GATEWAY, + [], + plugins, + ) + + @_overload + async def create_client_vpn_endpoint( + self, + request: _models.CreateClientVpnEndpointInput + | _models.CreateClientVpnEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateClientVpnEndpointOutput: ... + + @_overload async def create_client_vpn_endpoint( - self, input: CreateClientVpnEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateClientVpnEndpointInputDict], ) -> CreateClientVpnEndpointOutput: """ Creates a Client VPN endpoint. A Client VPN endpoint is the resource you @@ -4067,8 +4749,6 @@ async def create_client_vpn_endpoint( destination endpoint at which all client VPN sessions are terminated. Args: - input: - An instance of `CreateClientVpnEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4078,12 +4758,34 @@ async def create_client_vpn_endpoint( Returns: An instance of `CreateClientVpnEndpointOutput`. """ + + async def create_client_vpn_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateClientVpnEndpointOutput: return await self._invoke( - input, _models.CREATE_CLIENT_VPN_ENDPOINT, [], plugins + self._select_input(_models.CREATE_CLIENT_VPN_ENDPOINT, args, kwargs), + _models.CREATE_CLIENT_VPN_ENDPOINT, + [], + plugins, ) + @_overload + async def create_client_vpn_route( + self, + request: _models.CreateClientVpnRouteInput + | _models.CreateClientVpnRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateClientVpnRouteOutput: ... + + @_overload async def create_client_vpn_route( - self, input: CreateClientVpnRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateClientVpnRouteInputDict], ) -> CreateClientVpnRouteOutput: """ Adds a route to a network to a Client VPN endpoint. Each Client VPN @@ -4092,8 +4794,6 @@ async def create_client_vpn_route( traffic to specific resources or networks. Args: - input: - An instance of `CreateClientVpnRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4103,17 +4803,38 @@ async def create_client_vpn_route( Returns: An instance of `CreateClientVpnRouteOutput`. """ - return await self._invoke(input, _models.CREATE_CLIENT_VPN_ROUTE, [], plugins) + async def create_client_vpn_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateClientVpnRouteOutput: + return await self._invoke( + self._select_input(_models.CREATE_CLIENT_VPN_ROUTE, args, kwargs), + _models.CREATE_CLIENT_VPN_ROUTE, + [], + plugins, + ) + + @_overload + async def create_coip_cidr( + self, + request: _models.CreateCoipCidrInput | _models.CreateCoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCoipCidrOutput: ... + + @_overload async def create_coip_cidr( - self, input: CreateCoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCoipCidrInputDict], ) -> CreateCoipCidrOutput: """ Creates a range of customer-owned IP addresses. Args: - input: - An instance of `CreateCoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4123,17 +4844,38 @@ async def create_coip_cidr( Returns: An instance of `CreateCoipCidrOutput`. """ - return await self._invoke(input, _models.CREATE_COIP_CIDR, [], plugins) + async def create_coip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCoipCidrOutput: + return await self._invoke( + self._select_input(_models.CREATE_COIP_CIDR, args, kwargs), + _models.CREATE_COIP_CIDR, + [], + plugins, + ) + + @_overload async def create_coip_pool( - self, input: CreateCoipPoolInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateCoipPoolInput | _models.CreateCoipPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCoipPoolOutput: ... + + @_overload + async def create_coip_pool( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCoipPoolInputDict], ) -> CreateCoipPoolOutput: """ Creates a pool of customer-owned IP (CoIP) addresses. Args: - input: - An instance of `CreateCoipPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4143,10 +4885,34 @@ async def create_coip_pool( Returns: An instance of `CreateCoipPoolOutput`. """ - return await self._invoke(input, _models.CREATE_COIP_POOL, [], plugins) + async def create_coip_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCoipPoolOutput: + return await self._invoke( + self._select_input(_models.CREATE_COIP_POOL, args, kwargs), + _models.CREATE_COIP_POOL, + [], + plugins, + ) + + @_overload + async def create_customer_gateway( + self, + request: _models.CreateCustomerGatewayInput + | _models.CreateCustomerGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomerGatewayOutput: ... + + @_overload async def create_customer_gateway( - self, input: CreateCustomerGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomerGatewayInputDict], ) -> CreateCustomerGatewayOutput: """ Provides information to Amazon Web Services about your customer gateway @@ -4169,8 +4935,6 @@ async def create_customer_gateway( customer gateway; it doesn't create a new customer gateway. Args: - input: - An instance of `CreateCustomerGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4180,10 +4944,34 @@ async def create_customer_gateway( Returns: An instance of `CreateCustomerGatewayOutput`. """ - return await self._invoke(input, _models.CREATE_CUSTOMER_GATEWAY, [], plugins) + async def create_customer_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomerGatewayOutput: + return await self._invoke( + self._select_input(_models.CREATE_CUSTOMER_GATEWAY, args, kwargs), + _models.CREATE_CUSTOMER_GATEWAY, + [], + plugins, + ) + + @_overload + async def create_default_subnet( + self, + request: _models.CreateDefaultSubnetInput + | _models.CreateDefaultSubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDefaultSubnetOutput: ... + + @_overload async def create_default_subnet( - self, input: CreateDefaultSubnetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDefaultSubnetInputDict], ) -> CreateDefaultSubnetOutput: """ Creates a default subnet with a size `/20` IPv4 CIDR block in the @@ -4194,8 +4982,6 @@ async def create_default_subnet( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateDefaultSubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4205,10 +4991,33 @@ async def create_default_subnet( Returns: An instance of `CreateDefaultSubnetOutput`. """ - return await self._invoke(input, _models.CREATE_DEFAULT_SUBNET, [], plugins) + async def create_default_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDefaultSubnetOutput: + return await self._invoke( + self._select_input(_models.CREATE_DEFAULT_SUBNET, args, kwargs), + _models.CREATE_DEFAULT_SUBNET, + [], + plugins, + ) + + @_overload + async def create_default_vpc( + self, + request: _models.CreateDefaultVpcInput | _models.CreateDefaultVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDefaultVpcOutput: ... + + @_overload async def create_default_vpc( - self, input: CreateDefaultVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDefaultVpcInputDict], ) -> CreateDefaultVpcOutput: """ Creates a default VPC with a size `/16` IPv4 CIDR block and a default @@ -4222,8 +5031,6 @@ async def create_default_vpc( You cannot have more than one default VPC per Region. Args: - input: - An instance of `CreateDefaultVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4233,20 +5040,40 @@ async def create_default_vpc( Returns: An instance of `CreateDefaultVpcOutput`. """ - return await self._invoke(input, _models.CREATE_DEFAULT_VPC, [], plugins) + async def create_default_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDefaultVpcOutput: + return await self._invoke( + self._select_input(_models.CREATE_DEFAULT_VPC, args, kwargs), + _models.CREATE_DEFAULT_VPC, + [], + plugins, + ) + + @_overload + async def create_delegate_mac_volume_ownership_task( + self, + request: _models.CreateDelegateMacVolumeOwnershipTaskInput + | _models.CreateDelegateMacVolumeOwnershipTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDelegateMacVolumeOwnershipTaskOutput: ... + + @_overload async def create_delegate_mac_volume_ownership_task( self, - input: CreateDelegateMacVolumeOwnershipTaskInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDelegateMacVolumeOwnershipTaskInputDict], ) -> CreateDelegateMacVolumeOwnershipTaskOutput: """ Delegates ownership of the Amazon EBS root volume for an Apple silicon Mac instance to an administrative user. Args: - input: - An instance of `CreateDelegateMacVolumeOwnershipTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4256,12 +5083,35 @@ async def create_delegate_mac_volume_ownership_task( Returns: An instance of `CreateDelegateMacVolumeOwnershipTaskOutput`. """ + + async def create_delegate_mac_volume_ownership_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDelegateMacVolumeOwnershipTaskOutput: return await self._invoke( - input, _models.CREATE_DELEGATE_MAC_VOLUME_OWNERSHIP_TASK, [], plugins + self._select_input( + _models.CREATE_DELEGATE_MAC_VOLUME_OWNERSHIP_TASK, args, kwargs + ), + _models.CREATE_DELEGATE_MAC_VOLUME_OWNERSHIP_TASK, + [], + plugins, ) + @_overload + async def create_dhcp_options( + self, + request: _models.CreateDhcpOptionsInput | _models.CreateDhcpOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDhcpOptionsOutput: ... + + @_overload async def create_dhcp_options( - self, input: CreateDhcpOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDhcpOptionsInputDict], ) -> CreateDhcpOptionsOutput: """ Creates a custom set of DHCP options. After you create a DHCP option @@ -4314,8 +5164,6 @@ async def create_dhcp_options( typically occurs when half of the lease time has elapsed. Args: - input: - An instance of `CreateDhcpOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4325,12 +5173,34 @@ async def create_dhcp_options( Returns: An instance of `CreateDhcpOptionsOutput`. """ - return await self._invoke(input, _models.CREATE_DHCP_OPTIONS, [], plugins) + async def create_dhcp_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDhcpOptionsOutput: + return await self._invoke( + self._select_input(_models.CREATE_DHCP_OPTIONS, args, kwargs), + _models.CREATE_DHCP_OPTIONS, + [], + plugins, + ) + + @_overload + async def create_egress_only_internet_gateway( + self, + request: _models.CreateEgressOnlyInternetGatewayInput + | _models.CreateEgressOnlyInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEgressOnlyInternetGatewayOutput: ... + + @_overload async def create_egress_only_internet_gateway( self, - input: CreateEgressOnlyInternetGatewayInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEgressOnlyInternetGatewayInputDict], ) -> CreateEgressOnlyInternetGatewayOutput: """ [IPv6 only] Creates an egress-only internet gateway for your VPC. An @@ -4340,8 +5210,6 @@ async def create_egress_only_internet_gateway( instance. Args: - input: - An instance of `CreateEgressOnlyInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4351,12 +5219,35 @@ async def create_egress_only_internet_gateway( Returns: An instance of `CreateEgressOnlyInternetGatewayOutput`. """ + + async def create_egress_only_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEgressOnlyInternetGatewayOutput: return await self._invoke( - input, _models.CREATE_EGRESS_ONLY_INTERNET_GATEWAY, [], plugins + self._select_input( + _models.CREATE_EGRESS_ONLY_INTERNET_GATEWAY, args, kwargs + ), + _models.CREATE_EGRESS_ONLY_INTERNET_GATEWAY, + [], + plugins, ) + @_overload + async def create_fleet( + self, + request: _models.CreateFleetInput | _models.CreateFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFleetOutput: ... + + @_overload async def create_fleet( - self, input: CreateFleetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFleetInputDict], ) -> CreateFleetOutput: """ Creates an EC2 Fleet that contains the configuration information for @@ -4371,8 +5262,6 @@ async def create_fleet( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4382,10 +5271,33 @@ async def create_fleet( Returns: An instance of `CreateFleetOutput`. """ - return await self._invoke(input, _models.CREATE_FLEET, [], plugins) + async def create_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFleetOutput: + return await self._invoke( + self._select_input(_models.CREATE_FLEET, args, kwargs), + _models.CREATE_FLEET, + [], + plugins, + ) + + @_overload async def create_flow_logs( - self, input: CreateFlowLogsInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateFlowLogsInput | _models.CreateFlowLogsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFlowLogsOutput: ... + + @_overload + async def create_flow_logs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFlowLogsInputDict], ) -> CreateFlowLogsOutput: """ Creates one or more flow logs to capture information about IP traffic @@ -4408,8 +5320,6 @@ async def create_flow_logs( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateFlowLogsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4419,10 +5329,33 @@ async def create_flow_logs( Returns: An instance of `CreateFlowLogsOutput`. """ - return await self._invoke(input, _models.CREATE_FLOW_LOGS, [], plugins) + async def create_flow_logs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFlowLogsOutput: + return await self._invoke( + self._select_input(_models.CREATE_FLOW_LOGS, args, kwargs), + _models.CREATE_FLOW_LOGS, + [], + plugins, + ) + + @_overload + async def create_fpga_image( + self, + request: _models.CreateFpgaImageInput | _models.CreateFpgaImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFpgaImageOutput: ... + + @_overload async def create_fpga_image( - self, input: CreateFpgaImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFpgaImageInputDict], ) -> CreateFpgaImageOutput: """ Creates an Amazon FPGA Image (AFI) from the specified design checkpoint @@ -4437,8 +5370,6 @@ async def create_fpga_image( Development Kit](https://github.com/aws/aws-fpga/). Args: - input: - An instance of `CreateFpgaImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4448,10 +5379,33 @@ async def create_fpga_image( Returns: An instance of `CreateFpgaImageOutput`. """ - return await self._invoke(input, _models.CREATE_FPGA_IMAGE, [], plugins) + async def create_fpga_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFpgaImageOutput: + return await self._invoke( + self._select_input(_models.CREATE_FPGA_IMAGE, args, kwargs), + _models.CREATE_FPGA_IMAGE, + [], + plugins, + ) + + @_overload + async def create_image( + self, + request: _models.CreateImageInput | _models.CreateImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateImageOutput: ... + + @_overload async def create_image( - self, input: CreateImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateImageInputDict], ) -> CreateImageOutput: """ Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that @@ -4482,8 +5436,6 @@ async def create_image( in the *Amazon Elastic Compute Cloud User Guide*. Args: - input: - An instance of `CreateImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4493,10 +5445,34 @@ async def create_image( Returns: An instance of `CreateImageOutput`. """ - return await self._invoke(input, _models.CREATE_IMAGE, [], plugins) + async def create_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateImageOutput: + return await self._invoke( + self._select_input(_models.CREATE_IMAGE, args, kwargs), + _models.CREATE_IMAGE, + [], + plugins, + ) + + @_overload + async def create_image_usage_report( + self, + request: _models.CreateImageUsageReportInput + | _models.CreateImageUsageReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateImageUsageReportOutput: ... + + @_overload async def create_image_usage_report( - self, input: CreateImageUsageReportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateImageUsageReportInputDict], ) -> CreateImageUsageReportOutput: """ Creates a report that shows how your image is used across other Amazon @@ -4509,8 +5485,6 @@ async def create_image_usage_report( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateImageUsageReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4520,12 +5494,34 @@ async def create_image_usage_report( Returns: An instance of `CreateImageUsageReportOutput`. """ - return await self._invoke(input, _models.CREATE_IMAGE_USAGE_REPORT, [], plugins) + async def create_image_usage_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateImageUsageReportOutput: + return await self._invoke( + self._select_input(_models.CREATE_IMAGE_USAGE_REPORT, args, kwargs), + _models.CREATE_IMAGE_USAGE_REPORT, + [], + plugins, + ) + + @_overload + async def create_instance_connect_endpoint( + self, + request: _models.CreateInstanceConnectEndpointInput + | _models.CreateInstanceConnectEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInstanceConnectEndpointOutput: ... + + @_overload async def create_instance_connect_endpoint( self, - input: CreateInstanceConnectEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInstanceConnectEndpointInputDict], ) -> CreateInstanceConnectEndpointOutput: """ Creates an EC2 Instance Connect Endpoint. @@ -4538,8 +5534,6 @@ async def create_instance_connect_endpoint( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateInstanceConnectEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4549,12 +5543,34 @@ async def create_instance_connect_endpoint( Returns: An instance of `CreateInstanceConnectEndpointOutput`. """ + + async def create_instance_connect_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInstanceConnectEndpointOutput: return await self._invoke( - input, _models.CREATE_INSTANCE_CONNECT_ENDPOINT, [], plugins + self._select_input(_models.CREATE_INSTANCE_CONNECT_ENDPOINT, args, kwargs), + _models.CREATE_INSTANCE_CONNECT_ENDPOINT, + [], + plugins, ) + @_overload + async def create_instance_event_window( + self, + request: _models.CreateInstanceEventWindowInput + | _models.CreateInstanceEventWindowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInstanceEventWindowOutput: ... + + @_overload async def create_instance_event_window( - self, input: CreateInstanceEventWindowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInstanceEventWindowInputDict], ) -> CreateInstanceEventWindowOutput: """ Creates an event window in which scheduled events for the associated @@ -4586,8 +5602,6 @@ async def create_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4597,12 +5611,34 @@ async def create_instance_event_window( Returns: An instance of `CreateInstanceEventWindowOutput`. """ + + async def create_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInstanceEventWindowOutput: return await self._invoke( - input, _models.CREATE_INSTANCE_EVENT_WINDOW, [], plugins + self._select_input(_models.CREATE_INSTANCE_EVENT_WINDOW, args, kwargs), + _models.CREATE_INSTANCE_EVENT_WINDOW, + [], + plugins, ) + @_overload async def create_instance_export_task( - self, input: CreateInstanceExportTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateInstanceExportTaskInput + | _models.CreateInstanceExportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInstanceExportTaskOutput: ... + + @_overload + async def create_instance_export_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInstanceExportTaskInputDict], ) -> CreateInstanceExportTaskOutput: """ Exports a running or stopped instance to an Amazon S3 bucket. @@ -4615,8 +5651,6 @@ async def create_instance_export_task( in the *VM Import/Export User Guide*. Args: - input: - An instance of `CreateInstanceExportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4626,12 +5660,34 @@ async def create_instance_export_task( Returns: An instance of `CreateInstanceExportTaskOutput`. """ + + async def create_instance_export_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInstanceExportTaskOutput: return await self._invoke( - input, _models.CREATE_INSTANCE_EXPORT_TASK, [], plugins + self._select_input(_models.CREATE_INSTANCE_EXPORT_TASK, args, kwargs), + _models.CREATE_INSTANCE_EXPORT_TASK, + [], + plugins, ) + @_overload + async def create_internet_gateway( + self, + request: _models.CreateInternetGatewayInput + | _models.CreateInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInternetGatewayOutput: ... + + @_overload async def create_internet_gateway( - self, input: CreateInternetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInternetGatewayInputDict], ) -> CreateInternetGatewayOutput: """ Creates an internet gateway for use with a VPC. After creating the @@ -4642,8 +5698,6 @@ async def create_internet_gateway( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4653,12 +5707,36 @@ async def create_internet_gateway( Returns: An instance of `CreateInternetGatewayOutput`. """ - return await self._invoke(input, _models.CREATE_INTERNET_GATEWAY, [], plugins) + async def create_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInternetGatewayOutput: + return await self._invoke( + self._select_input(_models.CREATE_INTERNET_GATEWAY, args, kwargs), + _models.CREATE_INTERNET_GATEWAY, + [], + plugins, + ) + + @_overload async def create_interruptible_capacity_reservation_allocation( self, - input: CreateInterruptibleCapacityReservationAllocationInput, + request: _models.CreateInterruptibleCapacityReservationAllocationInput + | _models.CreateInterruptibleCapacityReservationAllocationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateInterruptibleCapacityReservationAllocationOutput: ... + + @_overload + async def create_interruptible_capacity_reservation_allocation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.CreateInterruptibleCapacityReservationAllocationInputDict + ], ) -> CreateInterruptibleCapacityReservationAllocationOutput: """ Creates an interruptible Capacity Reservation by specifying the number @@ -4667,8 +5745,6 @@ async def create_interruptible_capacity_reservation_allocation( your account while maintaining control to reclaim it. Args: - input: - An instance of `CreateInterruptibleCapacityReservationAllocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4678,15 +5754,37 @@ async def create_interruptible_capacity_reservation_allocation( Returns: An instance of `CreateInterruptibleCapacityReservationAllocationOutput`. """ + + async def create_interruptible_capacity_reservation_allocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInterruptibleCapacityReservationAllocationOutput: return await self._invoke( - input, + self._select_input( + _models.CREATE_INTERRUPTIBLE_CAPACITY_RESERVATION_ALLOCATION, + args, + kwargs, + ), _models.CREATE_INTERRUPTIBLE_CAPACITY_RESERVATION_ALLOCATION, [], plugins, ) + @_overload + async def create_ipam( + self, + request: _models.CreateIpamInput | _models.CreateIpamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamOutput: ... + + @_overload async def create_ipam( - self, input: CreateIpamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamInputDict], ) -> CreateIpamOutput: """ Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature @@ -4700,8 +5798,6 @@ async def create_ipam( the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4711,12 +5807,34 @@ async def create_ipam( Returns: An instance of `CreateIpamOutput`. """ - return await self._invoke(input, _models.CREATE_IPAM, [], plugins) + async def create_ipam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamOutput: + return await self._invoke( + self._select_input(_models.CREATE_IPAM, args, kwargs), + _models.CREATE_IPAM, + [], + plugins, + ) + + @_overload + async def create_ipam_external_resource_verification_token( + self, + request: _models.CreateIpamExternalResourceVerificationTokenInput + | _models.CreateIpamExternalResourceVerificationTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamExternalResourceVerificationTokenOutput: ... + + @_overload async def create_ipam_external_resource_verification_token( self, - input: CreateIpamExternalResourceVerificationTokenInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamExternalResourceVerificationTokenInputDict], ) -> CreateIpamExternalResourceVerificationTokenOutput: """ Create a verification token. @@ -4728,8 +5846,6 @@ async def create_ipam_external_resource_verification_token( Services (BYOIP). Args: - input: - An instance of `CreateIpamExternalResourceVerificationTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4739,14 +5855,36 @@ async def create_ipam_external_resource_verification_token( Returns: An instance of `CreateIpamExternalResourceVerificationTokenOutput`. """ + + async def create_ipam_external_resource_verification_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamExternalResourceVerificationTokenOutput: return await self._invoke( - input, _models.CREATE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, [], plugins + self._select_input( + _models.CREATE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, args, kwargs + ), + _models.CREATE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, + [], + plugins, ) + @_overload + async def create_ipam_internet_registry_association( + self, + request: _models.CreateIpamInternetRegistryAssociationInput + | _models.CreateIpamInternetRegistryAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamInternetRegistryAssociationOutput: ... + + @_overload async def create_ipam_internet_registry_association( self, - input: CreateIpamInternetRegistryAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamInternetRegistryAssociationInputDict], ) -> CreateIpamInternetRegistryAssociationOutput: """ Creates an association between an IPAM and a Regional Internet Registry @@ -4756,8 +5894,6 @@ async def create_ipam_internet_registry_association( be in the Advanced tier to use this feature. Args: - input: - An instance of `CreateIpamInternetRegistryAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4767,12 +5903,35 @@ async def create_ipam_internet_registry_association( Returns: An instance of `CreateIpamInternetRegistryAssociationOutput`. """ + + async def create_ipam_internet_registry_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamInternetRegistryAssociationOutput: return await self._invoke( - input, _models.CREATE_IPAM_INTERNET_REGISTRY_ASSOCIATION, [], plugins + self._select_input( + _models.CREATE_IPAM_INTERNET_REGISTRY_ASSOCIATION, args, kwargs + ), + _models.CREATE_IPAM_INTERNET_REGISTRY_ASSOCIATION, + [], + plugins, ) + @_overload + async def create_ipam_policy( + self, + request: _models.CreateIpamPolicyInput | _models.CreateIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamPolicyOutput: ... + + @_overload async def create_ipam_policy( - self, input: CreateIpamPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamPolicyInputDict], ) -> CreateIpamPolicyOutput: """ Creates an IPAM policy. @@ -4792,8 +5951,6 @@ async def create_ipam_policy( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4803,10 +5960,33 @@ async def create_ipam_policy( Returns: An instance of `CreateIpamPolicyOutput`. """ - return await self._invoke(input, _models.CREATE_IPAM_POLICY, [], plugins) + async def create_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamPolicyOutput: + return await self._invoke( + self._select_input(_models.CREATE_IPAM_POLICY, args, kwargs), + _models.CREATE_IPAM_POLICY, + [], + plugins, + ) + + @_overload + async def create_ipam_pool( + self, + request: _models.CreateIpamPoolInput | _models.CreateIpamPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamPoolOutput: ... + + @_overload async def create_ipam_pool( - self, input: CreateIpamPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamPoolInputDict], ) -> CreateIpamPoolOutput: """ Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In @@ -4821,8 +6001,6 @@ async def create_ipam_pool( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4832,12 +6010,34 @@ async def create_ipam_pool( Returns: An instance of `CreateIpamPoolOutput`. """ - return await self._invoke(input, _models.CREATE_IPAM_POOL, [], plugins) + async def create_ipam_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamPoolOutput: + return await self._invoke( + self._select_input(_models.CREATE_IPAM_POOL, args, kwargs), + _models.CREATE_IPAM_POOL, + [], + plugins, + ) + + @_overload async def create_ipam_prefix_list_resolver( self, - input: CreateIpamPrefixListResolverInput, + request: _models.CreateIpamPrefixListResolverInput + | _models.CreateIpamPrefixListResolverInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateIpamPrefixListResolverOutput: ... + + @_overload + async def create_ipam_prefix_list_resolver( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamPrefixListResolverInputDict], ) -> CreateIpamPrefixListResolverOutput: """ Creates an IPAM prefix list resolver. @@ -4855,8 +6055,6 @@ async def create_ipam_prefix_list_resolver( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamPrefixListResolverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4866,14 +6064,34 @@ async def create_ipam_prefix_list_resolver( Returns: An instance of `CreateIpamPrefixListResolverOutput`. """ + + async def create_ipam_prefix_list_resolver( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamPrefixListResolverOutput: return await self._invoke( - input, _models.CREATE_IPAM_PREFIX_LIST_RESOLVER, [], plugins + self._select_input(_models.CREATE_IPAM_PREFIX_LIST_RESOLVER, args, kwargs), + _models.CREATE_IPAM_PREFIX_LIST_RESOLVER, + [], + plugins, ) + @_overload + async def create_ipam_prefix_list_resolver_target( + self, + request: _models.CreateIpamPrefixListResolverTargetInput + | _models.CreateIpamPrefixListResolverTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamPrefixListResolverTargetOutput: ... + + @_overload async def create_ipam_prefix_list_resolver_target( self, - input: CreateIpamPrefixListResolverTargetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamPrefixListResolverTargetInputDict], ) -> CreateIpamPrefixListResolverTargetOutput: """ Creates an IPAM prefix list resolver target. @@ -4890,8 +6108,6 @@ async def create_ipam_prefix_list_resolver_target( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamPrefixListResolverTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4901,14 +6117,36 @@ async def create_ipam_prefix_list_resolver_target( Returns: An instance of `CreateIpamPrefixListResolverTargetOutput`. """ + + async def create_ipam_prefix_list_resolver_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamPrefixListResolverTargetOutput: return await self._invoke( - input, _models.CREATE_IPAM_PREFIX_LIST_RESOLVER_TARGET, [], plugins + self._select_input( + _models.CREATE_IPAM_PREFIX_LIST_RESOLVER_TARGET, args, kwargs + ), + _models.CREATE_IPAM_PREFIX_LIST_RESOLVER_TARGET, + [], + plugins, ) + @_overload + async def create_ipam_resource_discovery( + self, + request: _models.CreateIpamResourceDiscoveryInput + | _models.CreateIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamResourceDiscoveryOutput: ... + + @_overload async def create_ipam_resource_discovery( self, - input: CreateIpamResourceDiscoveryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamResourceDiscoveryInputDict], ) -> CreateIpamResourceDiscoveryOutput: """ Creates an IPAM resource discovery. A resource discovery is an IPAM @@ -4916,8 +6154,6 @@ async def create_ipam_resource_discovery( to the owning account. Args: - input: - An instance of `CreateIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4927,14 +6163,34 @@ async def create_ipam_resource_discovery( Returns: An instance of `CreateIpamResourceDiscoveryOutput`. """ + + async def create_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamResourceDiscoveryOutput: return await self._invoke( - input, _models.CREATE_IPAM_RESOURCE_DISCOVERY, [], plugins + self._select_input(_models.CREATE_IPAM_RESOURCE_DISCOVERY, args, kwargs), + _models.CREATE_IPAM_RESOURCE_DISCOVERY, + [], + plugins, ) + @_overload + async def create_ipam_routing_policy_registration( + self, + request: _models.CreateIpamRoutingPolicyRegistrationInput + | _models.CreateIpamRoutingPolicyRegistrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamRoutingPolicyRegistrationOutput: ... + + @_overload async def create_ipam_routing_policy_registration( self, - input: CreateIpamRoutingPolicyRegistrationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamRoutingPolicyRegistrationInputDict], ) -> CreateIpamRoutingPolicyRegistrationOutput: """ Creates a routing policy registration and publishes Route Origin @@ -4942,8 +6198,6 @@ async def create_ipam_routing_policy_registration( ASNs. Args: - input: - An instance of `CreateIpamRoutingPolicyRegistrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4953,12 +6207,35 @@ async def create_ipam_routing_policy_registration( Returns: An instance of `CreateIpamRoutingPolicyRegistrationOutput`. """ + + async def create_ipam_routing_policy_registration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamRoutingPolicyRegistrationOutput: return await self._invoke( - input, _models.CREATE_IPAM_ROUTING_POLICY_REGISTRATION, [], plugins + self._select_input( + _models.CREATE_IPAM_ROUTING_POLICY_REGISTRATION, args, kwargs + ), + _models.CREATE_IPAM_ROUTING_POLICY_REGISTRATION, + [], + plugins, ) + @_overload + async def create_ipam_scope( + self, + request: _models.CreateIpamScopeInput | _models.CreateIpamScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamScopeOutput: ... + + @_overload async def create_ipam_scope( - self, input: CreateIpamScopeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamScopeInputDict], ) -> CreateIpamScopeOutput: """ Create an IPAM scope. In IPAM, a scope is the highest-level container @@ -4973,8 +6250,6 @@ async def create_ipam_scope( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4984,10 +6259,33 @@ async def create_ipam_scope( Returns: An instance of `CreateIpamScopeOutput`. """ - return await self._invoke(input, _models.CREATE_IPAM_SCOPE, [], plugins) + async def create_ipam_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamScopeOutput: + return await self._invoke( + self._select_input(_models.CREATE_IPAM_SCOPE, args, kwargs), + _models.CREATE_IPAM_SCOPE, + [], + plugins, + ) + + @_overload + async def create_key_pair( + self, + request: _models.CreateKeyPairInput | _models.CreateKeyPairInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKeyPairOutput: ... + + @_overload async def create_key_pair( - self, input: CreateKeyPairInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKeyPairInputDict], ) -> CreateKeyPairOutput: """ Creates an ED25519 or 2048-bit RSA key pair with the specified name and @@ -5009,8 +6307,6 @@ async def create_key_pair( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateKeyPairInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5020,10 +6316,34 @@ async def create_key_pair( Returns: An instance of `CreateKeyPairOutput`. """ - return await self._invoke(input, _models.CREATE_KEY_PAIR, [], plugins) + async def create_key_pair( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKeyPairOutput: + return await self._invoke( + self._select_input(_models.CREATE_KEY_PAIR, args, kwargs), + _models.CREATE_KEY_PAIR, + [], + plugins, + ) + + @_overload + async def create_launch_template( + self, + request: _models.CreateLaunchTemplateInput + | _models.CreateLaunchTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLaunchTemplateOutput: ... + + @_overload async def create_launch_template( - self, input: CreateLaunchTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLaunchTemplateInputDict], ) -> CreateLaunchTemplateOutput: """ Creates a launch template. @@ -5044,8 +6364,6 @@ async def create_launch_template( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateLaunchTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5055,12 +6373,34 @@ async def create_launch_template( Returns: An instance of `CreateLaunchTemplateOutput`. """ - return await self._invoke(input, _models.CREATE_LAUNCH_TEMPLATE, [], plugins) + async def create_launch_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLaunchTemplateOutput: + return await self._invoke( + self._select_input(_models.CREATE_LAUNCH_TEMPLATE, args, kwargs), + _models.CREATE_LAUNCH_TEMPLATE, + [], + plugins, + ) + + @_overload + async def create_launch_template_version( + self, + request: _models.CreateLaunchTemplateVersionInput + | _models.CreateLaunchTemplateVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLaunchTemplateVersionOutput: ... + + @_overload async def create_launch_template_version( self, - input: CreateLaunchTemplateVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLaunchTemplateVersionInputDict], ) -> CreateLaunchTemplateVersionOutput: """ Creates a new version of a launch template. You must specify an existing @@ -5082,8 +6422,6 @@ async def create_launch_template_version( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateLaunchTemplateVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5093,12 +6431,34 @@ async def create_launch_template_version( Returns: An instance of `CreateLaunchTemplateVersionOutput`. """ + + async def create_launch_template_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLaunchTemplateVersionOutput: return await self._invoke( - input, _models.CREATE_LAUNCH_TEMPLATE_VERSION, [], plugins + self._select_input(_models.CREATE_LAUNCH_TEMPLATE_VERSION, args, kwargs), + _models.CREATE_LAUNCH_TEMPLATE_VERSION, + [], + plugins, ) + @_overload + async def create_local_gateway_route( + self, + request: _models.CreateLocalGatewayRouteInput + | _models.CreateLocalGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayRouteOutput: ... + + @_overload async def create_local_gateway_route( - self, input: CreateLocalGatewayRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayRouteInputDict], ) -> CreateLocalGatewayRouteOutput: """ Creates a static route for the specified local gateway route table. You @@ -5109,8 +6469,6 @@ async def create_local_gateway_route( - `NetworkInterfaceId` Args: - input: - An instance of `CreateLocalGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5120,21 +6478,39 @@ async def create_local_gateway_route( Returns: An instance of `CreateLocalGatewayRouteOutput`. """ + + async def create_local_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayRouteOutput: return await self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_ROUTE, [], plugins + self._select_input(_models.CREATE_LOCAL_GATEWAY_ROUTE, args, kwargs), + _models.CREATE_LOCAL_GATEWAY_ROUTE, + [], + plugins, ) + @_overload + async def create_local_gateway_route_table( + self, + request: _models.CreateLocalGatewayRouteTableInput + | _models.CreateLocalGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayRouteTableOutput: ... + + @_overload async def create_local_gateway_route_table( self, - input: CreateLocalGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayRouteTableInputDict], ) -> CreateLocalGatewayRouteTableOutput: """ Creates a local gateway route table. Args: - input: - An instance of `CreateLocalGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5144,21 +6520,41 @@ async def create_local_gateway_route_table( Returns: An instance of `CreateLocalGatewayRouteTableOutput`. """ + + async def create_local_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayRouteTableOutput: return await self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input(_models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE, args, kwargs), + _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload async def create_local_gateway_route_table_virtual_interface_group_association( self, - input: CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, + request: _models.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput + | _models.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: ... + + @_overload + async def create_local_gateway_route_table_virtual_interface_group_association( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict + ], ) -> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: """ Creates a local gateway route table virtual interface group association. Args: - input: - An instance of `CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5168,25 +6564,44 @@ async def create_local_gateway_route_table_virtual_interface_group_association( Returns: An instance of `CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput`. """ + + async def create_local_gateway_route_table_virtual_interface_group_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: return await self._invoke( - input, + self._select_input( + _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION, + args, + kwargs, + ), _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION, [], plugins, ) + @_overload + async def create_local_gateway_route_table_vpc_association( + self, + request: _models.CreateLocalGatewayRouteTableVpcAssociationInput + | _models.CreateLocalGatewayRouteTableVpcAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayRouteTableVpcAssociationOutput: ... + + @_overload async def create_local_gateway_route_table_vpc_association( self, - input: CreateLocalGatewayRouteTableVpcAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayRouteTableVpcAssociationInputDict], ) -> CreateLocalGatewayRouteTableVpcAssociationOutput: """ Associates the specified VPC with the specified local gateway route table. Args: - input: - An instance of `CreateLocalGatewayRouteTableVpcAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5196,21 +6611,41 @@ async def create_local_gateway_route_table_vpc_association( Returns: An instance of `CreateLocalGatewayRouteTableVpcAssociationOutput`. """ + + async def create_local_gateway_route_table_vpc_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayRouteTableVpcAssociationOutput: return await self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, [], plugins + self._select_input( + _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, args, kwargs + ), + _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, + [], + plugins, ) + @_overload async def create_local_gateway_virtual_interface( self, - input: CreateLocalGatewayVirtualInterfaceInput, + request: _models.CreateLocalGatewayVirtualInterfaceInput + | _models.CreateLocalGatewayVirtualInterfaceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayVirtualInterfaceOutput: ... + + @_overload + async def create_local_gateway_virtual_interface( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayVirtualInterfaceInputDict], ) -> CreateLocalGatewayVirtualInterfaceOutput: """ Create a virtual interface for a local gateway. Args: - input: - An instance of `CreateLocalGatewayVirtualInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5220,21 +6655,41 @@ async def create_local_gateway_virtual_interface( Returns: An instance of `CreateLocalGatewayVirtualInterfaceOutput`. """ + + async def create_local_gateway_virtual_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayVirtualInterfaceOutput: return await self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, [], plugins + self._select_input( + _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, args, kwargs + ), + _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, + [], + plugins, ) + @_overload + async def create_local_gateway_virtual_interface_group( + self, + request: _models.CreateLocalGatewayVirtualInterfaceGroupInput + | _models.CreateLocalGatewayVirtualInterfaceGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayVirtualInterfaceGroupOutput: ... + + @_overload async def create_local_gateway_virtual_interface_group( self, - input: CreateLocalGatewayVirtualInterfaceGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayVirtualInterfaceGroupInputDict], ) -> CreateLocalGatewayVirtualInterfaceGroupOutput: """ Create a local gateway virtual interface group. Args: - input: - An instance of `CreateLocalGatewayVirtualInterfaceGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5244,14 +6699,38 @@ async def create_local_gateway_virtual_interface_group( Returns: An instance of `CreateLocalGatewayVirtualInterfaceGroupOutput`. """ + + async def create_local_gateway_virtual_interface_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayVirtualInterfaceGroupOutput: return await self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, [], plugins + self._select_input( + _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, args, kwargs + ), + _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, + [], + plugins, ) + @_overload + async def create_mac_system_integrity_protection_modification_task( + self, + request: _models.CreateMacSystemIntegrityProtectionModificationTaskInput + | _models.CreateMacSystemIntegrityProtectionModificationTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMacSystemIntegrityProtectionModificationTaskOutput: ... + + @_overload async def create_mac_system_integrity_protection_modification_task( self, - input: CreateMacSystemIntegrityProtectionModificationTaskInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.CreateMacSystemIntegrityProtectionModificationTaskInputDict + ], ) -> CreateMacSystemIntegrityProtectionModificationTaskOutput: """ Creates a System Integrity Protection (SIP) modification task to @@ -5298,8 +6777,6 @@ async def create_mac_system_integrity_protection_modification_task( - `MacSystemIntegrityProtectionConfigurationRequest "NvramProtections=disabled"` Args: - input: - An instance of `CreateMacSystemIntegrityProtectionModificationTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5309,23 +6786,44 @@ async def create_mac_system_integrity_protection_modification_task( Returns: An instance of `CreateMacSystemIntegrityProtectionModificationTaskOutput`. """ + + async def create_mac_system_integrity_protection_modification_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMacSystemIntegrityProtectionModificationTaskOutput: return await self._invoke( - input, + self._select_input( + _models.CREATE_MAC_SYSTEM_INTEGRITY_PROTECTION_MODIFICATION_TASK, + args, + kwargs, + ), _models.CREATE_MAC_SYSTEM_INTEGRITY_PROTECTION_MODIFICATION_TASK, [], plugins, ) + @_overload + async def create_managed_prefix_list( + self, + request: _models.CreateManagedPrefixListInput + | _models.CreateManagedPrefixListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateManagedPrefixListOutput: ... + + @_overload async def create_managed_prefix_list( - self, input: CreateManagedPrefixListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateManagedPrefixListInputDict], ) -> CreateManagedPrefixListOutput: """ Creates a managed prefix list. You can specify entries for the prefix list. Each entry consists of a CIDR block and an optional description. Args: - input: - An instance of `CreateManagedPrefixListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5335,12 +6833,33 @@ async def create_managed_prefix_list( Returns: An instance of `CreateManagedPrefixListOutput`. """ + + async def create_managed_prefix_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateManagedPrefixListOutput: return await self._invoke( - input, _models.CREATE_MANAGED_PREFIX_LIST, [], plugins + self._select_input(_models.CREATE_MANAGED_PREFIX_LIST, args, kwargs), + _models.CREATE_MANAGED_PREFIX_LIST, + [], + plugins, ) + @_overload + async def create_nat_gateway( + self, + request: _models.CreateNatGatewayInput | _models.CreateNatGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNatGatewayOutput: ... + + @_overload async def create_nat_gateway( - self, input: CreateNatGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNatGatewayInputDict], ) -> CreateNatGatewayOutput: """ Creates a NAT gateway in the specified subnet. This action creates a @@ -5375,8 +6894,6 @@ async def create_nat_gateway( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateNatGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5386,10 +6903,33 @@ async def create_nat_gateway( Returns: An instance of `CreateNatGatewayOutput`. """ - return await self._invoke(input, _models.CREATE_NAT_GATEWAY, [], plugins) + async def create_nat_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNatGatewayOutput: + return await self._invoke( + self._select_input(_models.CREATE_NAT_GATEWAY, args, kwargs), + _models.CREATE_NAT_GATEWAY, + [], + plugins, + ) + + @_overload + async def create_network_acl( + self, + request: _models.CreateNetworkAclInput | _models.CreateNetworkAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkAclOutput: ... + + @_overload async def create_network_acl( - self, input: CreateNetworkAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkAclInputDict], ) -> CreateNetworkAclOutput: """ Creates a network ACL in a VPC. Network ACLs provide an optional layer @@ -5401,8 +6941,6 @@ async def create_network_acl( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateNetworkAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5412,10 +6950,34 @@ async def create_network_acl( Returns: An instance of `CreateNetworkAclOutput`. """ - return await self._invoke(input, _models.CREATE_NETWORK_ACL, [], plugins) + async def create_network_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkAclOutput: + return await self._invoke( + self._select_input(_models.CREATE_NETWORK_ACL, args, kwargs), + _models.CREATE_NETWORK_ACL, + [], + plugins, + ) + + @_overload + async def create_network_acl_entry( + self, + request: _models.CreateNetworkAclEntryInput + | _models.CreateNetworkAclEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkAclEntryOutput: ... + + @_overload async def create_network_acl_entry( - self, input: CreateNetworkAclEntryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkAclEntryInputDict], ) -> CreateNetworkAclEntryOutput: """ Creates an entry (a rule) in a network ACL with the specified rule @@ -5439,8 +7001,6 @@ async def create_network_acl_entry( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateNetworkAclEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5450,13 +7010,35 @@ async def create_network_acl_entry( Returns: An instance of `CreateNetworkAclEntryOutput`. """ - return await self._invoke(input, _models.CREATE_NETWORK_ACL_ENTRY, [], plugins) - async def create_network_insights_access_scope( - self, - input: CreateNetworkInsightsAccessScopeInput, - plugins: list[Plugin] | None = None, - ) -> CreateNetworkInsightsAccessScopeOutput: + async def create_network_acl_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkAclEntryOutput: + return await self._invoke( + self._select_input(_models.CREATE_NETWORK_ACL_ENTRY, args, kwargs), + _models.CREATE_NETWORK_ACL_ENTRY, + [], + plugins, + ) + + @_overload + async def create_network_insights_access_scope( + self, + request: _models.CreateNetworkInsightsAccessScopeInput + | _models.CreateNetworkInsightsAccessScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkInsightsAccessScopeOutput: ... + + @_overload + async def create_network_insights_access_scope( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkInsightsAccessScopeInputDict], + ) -> CreateNetworkInsightsAccessScopeOutput: """ Creates a Network Access Scope. @@ -5468,8 +7050,6 @@ async def create_network_insights_access_scope( Guide](https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/). Args: - input: - An instance of `CreateNetworkInsightsAccessScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5479,12 +7059,36 @@ async def create_network_insights_access_scope( Returns: An instance of `CreateNetworkInsightsAccessScopeOutput`. """ + + async def create_network_insights_access_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkInsightsAccessScopeOutput: return await self._invoke( - input, _models.CREATE_NETWORK_INSIGHTS_ACCESS_SCOPE, [], plugins + self._select_input( + _models.CREATE_NETWORK_INSIGHTS_ACCESS_SCOPE, args, kwargs + ), + _models.CREATE_NETWORK_INSIGHTS_ACCESS_SCOPE, + [], + plugins, ) + @_overload + async def create_network_insights_path( + self, + request: _models.CreateNetworkInsightsPathInput + | _models.CreateNetworkInsightsPathInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkInsightsPathOutput: ... + + @_overload async def create_network_insights_path( - self, input: CreateNetworkInsightsPathInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkInsightsPathInputDict], ) -> CreateNetworkInsightsPathOutput: """ Creates a path to analyze for reachability. @@ -5495,8 +7099,6 @@ async def create_network_insights_path( Guide](https://docs.aws.amazon.com/vpc/latest/reachability/). Args: - input: - An instance of `CreateNetworkInsightsPathInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5506,12 +7108,34 @@ async def create_network_insights_path( Returns: An instance of `CreateNetworkInsightsPathOutput`. """ + + async def create_network_insights_path( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkInsightsPathOutput: return await self._invoke( - input, _models.CREATE_NETWORK_INSIGHTS_PATH, [], plugins + self._select_input(_models.CREATE_NETWORK_INSIGHTS_PATH, args, kwargs), + _models.CREATE_NETWORK_INSIGHTS_PATH, + [], + plugins, ) + @_overload + async def create_network_interface( + self, + request: _models.CreateNetworkInterfaceInput + | _models.CreateNetworkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkInterfaceOutput: ... + + @_overload async def create_network_interface( - self, input: CreateNetworkInterfaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkInterfaceInputDict], ) -> CreateNetworkInterfaceOutput: """ Creates a network interface in the specified subnet. @@ -5524,8 +7148,6 @@ async def create_network_interface( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateNetworkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5535,12 +7157,34 @@ async def create_network_interface( Returns: An instance of `CreateNetworkInterfaceOutput`. """ - return await self._invoke(input, _models.CREATE_NETWORK_INTERFACE, [], plugins) + async def create_network_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkInterfaceOutput: + return await self._invoke( + self._select_input(_models.CREATE_NETWORK_INTERFACE, args, kwargs), + _models.CREATE_NETWORK_INTERFACE, + [], + plugins, + ) + + @_overload + async def create_network_interface_permission( + self, + request: _models.CreateNetworkInterfacePermissionInput + | _models.CreateNetworkInterfacePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkInterfacePermissionOutput: ... + + @_overload async def create_network_interface_permission( self, - input: CreateNetworkInterfacePermissionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkInterfacePermissionInputDict], ) -> CreateNetworkInterfacePermissionOutput: """ Grants an Amazon Web Services-authorized account permission to attach @@ -5550,8 +7194,6 @@ async def create_network_interface_permission( and only one account at a time. Args: - input: - An instance of `CreateNetworkInterfacePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5561,12 +7203,36 @@ async def create_network_interface_permission( Returns: An instance of `CreateNetworkInterfacePermissionOutput`. """ + + async def create_network_interface_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkInterfacePermissionOutput: return await self._invoke( - input, _models.CREATE_NETWORK_INTERFACE_PERMISSION, [], plugins + self._select_input( + _models.CREATE_NETWORK_INTERFACE_PERMISSION, args, kwargs + ), + _models.CREATE_NETWORK_INTERFACE_PERMISSION, + [], + plugins, ) + @_overload + async def create_placement_group( + self, + request: _models.CreatePlacementGroupInput + | _models.CreatePlacementGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePlacementGroupOutput: ... + + @_overload async def create_placement_group( - self, input: CreatePlacementGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePlacementGroupInputDict], ) -> CreatePlacementGroupOutput: """ Creates a placement group in which to launch instances. The strategy of @@ -5588,8 +7254,6 @@ async def create_placement_group( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreatePlacementGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5599,10 +7263,34 @@ async def create_placement_group( Returns: An instance of `CreatePlacementGroupOutput`. """ - return await self._invoke(input, _models.CREATE_PLACEMENT_GROUP, [], plugins) + async def create_placement_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePlacementGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_PLACEMENT_GROUP, args, kwargs), + _models.CREATE_PLACEMENT_GROUP, + [], + plugins, + ) + + @_overload + async def create_public_ipv4_pool( + self, + request: _models.CreatePublicIpv4PoolInput + | _models.CreatePublicIpv4PoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePublicIpv4PoolOutput: ... + + @_overload async def create_public_ipv4_pool( - self, input: CreatePublicIpv4PoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePublicIpv4PoolInputDict], ) -> CreatePublicIpv4PoolOutput: """ Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP @@ -5613,8 +7301,6 @@ async def create_public_ipv4_pool( [DescribePublicIpv4Pools](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePublicIpv4Pools.html). Args: - input: - An instance of `CreatePublicIpv4PoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5624,12 +7310,34 @@ async def create_public_ipv4_pool( Returns: An instance of `CreatePublicIpv4PoolOutput`. """ - return await self._invoke(input, _models.CREATE_PUBLIC_IPV4_POOL, [], plugins) + async def create_public_ipv4_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePublicIpv4PoolOutput: + return await self._invoke( + self._select_input(_models.CREATE_PUBLIC_IPV4_POOL, args, kwargs), + _models.CREATE_PUBLIC_IPV4_POOL, + [], + plugins, + ) + + @_overload + async def create_replace_root_volume_task( + self, + request: _models.CreateReplaceRootVolumeTaskInput + | _models.CreateReplaceRootVolumeTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateReplaceRootVolumeTaskOutput: ... + + @_overload async def create_replace_root_volume_task( self, - input: CreateReplaceRootVolumeTaskInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateReplaceRootVolumeTaskInputDict], ) -> CreateReplaceRootVolumeTaskOutput: """ Replaces the EBS-backed root volume for a `running` instance with a new @@ -5644,8 +7352,6 @@ async def create_replace_root_volume_task( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateReplaceRootVolumeTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5655,14 +7361,34 @@ async def create_replace_root_volume_task( Returns: An instance of `CreateReplaceRootVolumeTaskOutput`. """ + + async def create_replace_root_volume_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateReplaceRootVolumeTaskOutput: return await self._invoke( - input, _models.CREATE_REPLACE_ROOT_VOLUME_TASK, [], plugins + self._select_input(_models.CREATE_REPLACE_ROOT_VOLUME_TASK, args, kwargs), + _models.CREATE_REPLACE_ROOT_VOLUME_TASK, + [], + plugins, ) + @_overload async def create_reserved_instances_listing( self, - input: CreateReservedInstancesListingInput, + request: _models.CreateReservedInstancesListingInput + | _models.CreateReservedInstancesListingInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateReservedInstancesListingOutput: ... + + @_overload + async def create_reserved_instances_listing( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateReservedInstancesListingInputDict], ) -> CreateReservedInstancesListingOutput: """ Creates a listing for Amazon EC2 Standard Reserved Instances to be sold @@ -5694,8 +7420,6 @@ async def create_reserved_instances_listing( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateReservedInstancesListingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5705,12 +7429,34 @@ async def create_reserved_instances_listing( Returns: An instance of `CreateReservedInstancesListingOutput`. """ + + async def create_reserved_instances_listing( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateReservedInstancesListingOutput: return await self._invoke( - input, _models.CREATE_RESERVED_INSTANCES_LISTING, [], plugins + self._select_input(_models.CREATE_RESERVED_INSTANCES_LISTING, args, kwargs), + _models.CREATE_RESERVED_INSTANCES_LISTING, + [], + plugins, ) + @_overload + async def create_restore_image_task( + self, + request: _models.CreateRestoreImageTaskInput + | _models.CreateRestoreImageTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRestoreImageTaskOutput: ... + + @_overload async def create_restore_image_task( - self, input: CreateRestoreImageTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRestoreImageTaskInputDict], ) -> CreateRestoreImageTaskOutput: """ Starts a task that restores an AMI from an Amazon S3 object that was @@ -5727,8 +7473,6 @@ async def create_restore_image_task( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateRestoreImageTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5738,10 +7482,33 @@ async def create_restore_image_task( Returns: An instance of `CreateRestoreImageTaskOutput`. """ - return await self._invoke(input, _models.CREATE_RESTORE_IMAGE_TASK, [], plugins) + async def create_restore_image_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRestoreImageTaskOutput: + return await self._invoke( + self._select_input(_models.CREATE_RESTORE_IMAGE_TASK, args, kwargs), + _models.CREATE_RESTORE_IMAGE_TASK, + [], + plugins, + ) + + @_overload + async def create_route( + self, + request: _models.CreateRouteInput | _models.CreateRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteOutput: ... + + @_overload async def create_route( - self, input: CreateRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteInputDict], ) -> CreateRouteOutput: """ Creates a route in a route table within a VPC. @@ -5768,8 +7535,6 @@ async def create_route( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5779,10 +7544,33 @@ async def create_route( Returns: An instance of `CreateRouteOutput`. """ - return await self._invoke(input, _models.CREATE_ROUTE, [], plugins) + async def create_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteOutput: + return await self._invoke( + self._select_input(_models.CREATE_ROUTE, args, kwargs), + _models.CREATE_ROUTE, + [], + plugins, + ) + + @_overload + async def create_route_server( + self, + request: _models.CreateRouteServerInput | _models.CreateRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteServerOutput: ... + + @_overload async def create_route_server( - self, input: CreateRouteServerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteServerInputDict], ) -> CreateRouteServerOutput: """ Creates a new route server to manage dynamic routing in a VPC. @@ -5813,8 +7601,6 @@ async def create_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5824,10 +7610,34 @@ async def create_route_server( Returns: An instance of `CreateRouteServerOutput`. """ - return await self._invoke(input, _models.CREATE_ROUTE_SERVER, [], plugins) + async def create_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteServerOutput: + return await self._invoke( + self._select_input(_models.CREATE_ROUTE_SERVER, args, kwargs), + _models.CREATE_ROUTE_SERVER, + [], + plugins, + ) + + @_overload async def create_route_server_endpoint( - self, input: CreateRouteServerEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateRouteServerEndpointInput + | _models.CreateRouteServerEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteServerEndpointOutput: ... + + @_overload + async def create_route_server_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteServerEndpointInputDict], ) -> CreateRouteServerEndpointOutput: """ Creates a new endpoint for a route server in a specified subnet. @@ -5842,8 +7652,6 @@ async def create_route_server_endpoint( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteServerEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5853,12 +7661,34 @@ async def create_route_server_endpoint( Returns: An instance of `CreateRouteServerEndpointOutput`. """ + + async def create_route_server_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteServerEndpointOutput: return await self._invoke( - input, _models.CREATE_ROUTE_SERVER_ENDPOINT, [], plugins + self._select_input(_models.CREATE_ROUTE_SERVER_ENDPOINT, args, kwargs), + _models.CREATE_ROUTE_SERVER_ENDPOINT, + [], + plugins, ) + @_overload + async def create_route_server_peer( + self, + request: _models.CreateRouteServerPeerInput + | _models.CreateRouteServerPeerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteServerPeerOutput: ... + + @_overload async def create_route_server_peer( - self, input: CreateRouteServerPeerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteServerPeerInputDict], ) -> CreateRouteServerPeerOutput: """ Creates a new BGP peer for a specified route server endpoint. @@ -5879,8 +7709,6 @@ async def create_route_server_peer( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteServerPeerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5890,10 +7718,33 @@ async def create_route_server_peer( Returns: An instance of `CreateRouteServerPeerOutput`. """ - return await self._invoke(input, _models.CREATE_ROUTE_SERVER_PEER, [], plugins) + async def create_route_server_peer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteServerPeerOutput: + return await self._invoke( + self._select_input(_models.CREATE_ROUTE_SERVER_PEER, args, kwargs), + _models.CREATE_ROUTE_SERVER_PEER, + [], + plugins, + ) + + @_overload async def create_route_table( - self, input: CreateRouteTableInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateRouteTableInput | _models.CreateRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteTableOutput: ... + + @_overload + async def create_route_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteTableInputDict], ) -> CreateRouteTableOutput: """ Creates a route table for the specified VPC. After you create a route @@ -5904,8 +7755,6 @@ async def create_route_table( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5915,10 +7764,34 @@ async def create_route_table( Returns: An instance of `CreateRouteTableOutput`. """ - return await self._invoke(input, _models.CREATE_ROUTE_TABLE, [], plugins) + async def create_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteTableOutput: + return await self._invoke( + self._select_input(_models.CREATE_ROUTE_TABLE, args, kwargs), + _models.CREATE_ROUTE_TABLE, + [], + plugins, + ) + + @_overload + async def create_secondary_network( + self, + request: _models.CreateSecondaryNetworkInput + | _models.CreateSecondaryNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSecondaryNetworkOutput: ... + + @_overload async def create_secondary_network( - self, input: CreateSecondaryNetworkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSecondaryNetworkInputDict], ) -> CreateSecondaryNetworkOutput: """ Creates a secondary network. @@ -5927,8 +7800,6 @@ async def create_secondary_network( netmask (16 IP addresses) and /12 netmask (1,048,576 IP addresses). Args: - input: - An instance of `CreateSecondaryNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5938,10 +7809,34 @@ async def create_secondary_network( Returns: An instance of `CreateSecondaryNetworkOutput`. """ - return await self._invoke(input, _models.CREATE_SECONDARY_NETWORK, [], plugins) + async def create_secondary_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSecondaryNetworkOutput: + return await self._invoke( + self._select_input(_models.CREATE_SECONDARY_NETWORK, args, kwargs), + _models.CREATE_SECONDARY_NETWORK, + [], + plugins, + ) + + @_overload + async def create_secondary_subnet( + self, + request: _models.CreateSecondarySubnetInput + | _models.CreateSecondarySubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSecondarySubnetOutput: ... + + @_overload async def create_secondary_subnet( - self, input: CreateSecondarySubnetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSecondarySubnetInputDict], ) -> CreateSecondarySubnetOutput: """ Creates a secondary subnet in a secondary network. @@ -5956,8 +7851,6 @@ async def create_secondary_subnet( each secondary subnet for internal use. Args: - input: - An instance of `CreateSecondarySubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5967,10 +7860,34 @@ async def create_secondary_subnet( Returns: An instance of `CreateSecondarySubnetOutput`. """ - return await self._invoke(input, _models.CREATE_SECONDARY_SUBNET, [], plugins) + async def create_secondary_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSecondarySubnetOutput: + return await self._invoke( + self._select_input(_models.CREATE_SECONDARY_SUBNET, args, kwargs), + _models.CREATE_SECONDARY_SUBNET, + [], + plugins, + ) + + @_overload + async def create_security_group( + self, + request: _models.CreateSecurityGroupInput + | _models.CreateSecurityGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSecurityGroupOutput: ... + + @_overload async def create_security_group( - self, input: CreateSecurityGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSecurityGroupInputDict], ) -> CreateSecurityGroupOutput: """ Creates a security group. @@ -6001,8 +7918,6 @@ async def create_security_group( Limits](https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html). Args: - input: - An instance of `CreateSecurityGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6012,10 +7927,33 @@ async def create_security_group( Returns: An instance of `CreateSecurityGroupOutput`. """ - return await self._invoke(input, _models.CREATE_SECURITY_GROUP, [], plugins) + async def create_security_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSecurityGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_SECURITY_GROUP, args, kwargs), + _models.CREATE_SECURITY_GROUP, + [], + plugins, + ) + + @_overload + async def create_snapshot( + self, + request: _models.CreateSnapshotInput | _models.CreateSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSnapshotOutput: ... + + @_overload async def create_snapshot( - self, input: CreateSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSnapshotInputDict], ) -> CreateSnapshotOutput: """ Creates a snapshot of an EBS volume and stores it in Amazon S3. You can @@ -6061,8 +7999,6 @@ async def create_snapshot( in the *Amazon EBS User Guide*. Args: - input: - An instance of `CreateSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6072,10 +8008,33 @@ async def create_snapshot( Returns: An instance of `CreateSnapshotOutput`. """ - return await self._invoke(input, _models.CREATE_SNAPSHOT, [], plugins) + async def create_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSnapshotOutput: + return await self._invoke( + self._select_input(_models.CREATE_SNAPSHOT, args, kwargs), + _models.CREATE_SNAPSHOT, + [], + plugins, + ) + + @_overload + async def create_snapshots( + self, + request: _models.CreateSnapshotsInput | _models.CreateSnapshotsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSnapshotsOutput: ... + + @_overload async def create_snapshots( - self, input: CreateSnapshotsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSnapshotsInputDict], ) -> CreateSnapshotsOutput: """ Creates crash-consistent snapshots of multiple EBS volumes attached to @@ -6100,8 +8059,6 @@ async def create_snapshots( on the same Outpost or in its parent Amazon Web Services Region. Args: - input: - An instance of `CreateSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6111,12 +8068,34 @@ async def create_snapshots( Returns: An instance of `CreateSnapshotsOutput`. """ - return await self._invoke(input, _models.CREATE_SNAPSHOTS, [], plugins) + async def create_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSnapshotsOutput: + return await self._invoke( + self._select_input(_models.CREATE_SNAPSHOTS, args, kwargs), + _models.CREATE_SNAPSHOTS, + [], + plugins, + ) + + @_overload + async def create_spot_datafeed_subscription( + self, + request: _models.CreateSpotDatafeedSubscriptionInput + | _models.CreateSpotDatafeedSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSpotDatafeedSubscriptionOutput: ... + + @_overload async def create_spot_datafeed_subscription( self, - input: CreateSpotDatafeedSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSpotDatafeedSubscriptionInputDict], ) -> CreateSpotDatafeedSubscriptionOutput: """ Creates a data feed for Spot Instances, enabling you to view Spot @@ -6126,8 +8105,6 @@ async def create_spot_datafeed_subscription( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateSpotDatafeedSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6137,12 +8114,34 @@ async def create_spot_datafeed_subscription( Returns: An instance of `CreateSpotDatafeedSubscriptionOutput`. """ + + async def create_spot_datafeed_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSpotDatafeedSubscriptionOutput: return await self._invoke( - input, _models.CREATE_SPOT_DATAFEED_SUBSCRIPTION, [], plugins + self._select_input(_models.CREATE_SPOT_DATAFEED_SUBSCRIPTION, args, kwargs), + _models.CREATE_SPOT_DATAFEED_SUBSCRIPTION, + [], + plugins, ) + @_overload + async def create_store_image_task( + self, + request: _models.CreateStoreImageTaskInput + | _models.CreateStoreImageTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStoreImageTaskOutput: ... + + @_overload async def create_store_image_task( - self, input: CreateStoreImageTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStoreImageTaskInputDict], ) -> CreateStoreImageTaskOutput: """ Stores an AMI as a single object in an Amazon S3 bucket. @@ -6157,8 +8156,6 @@ async def create_store_image_task( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateStoreImageTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6168,12 +8165,35 @@ async def create_store_image_task( Returns: An instance of `CreateStoreImageTaskOutput`. """ - return await self._invoke(input, _models.CREATE_STORE_IMAGE_TASK, [], plugins) - async def create_subnet( - self, input: CreateSubnetInput, plugins: list[Plugin] | None = None - ) -> CreateSubnetOutput: - """ + async def create_store_image_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStoreImageTaskOutput: + return await self._invoke( + self._select_input(_models.CREATE_STORE_IMAGE_TASK, args, kwargs), + _models.CREATE_STORE_IMAGE_TASK, + [], + plugins, + ) + + @_overload + async def create_subnet( + self, + request: _models.CreateSubnetInput | _models.CreateSubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSubnetOutput: ... + + @_overload + async def create_subnet( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSubnetInputDict], + ) -> CreateSubnetOutput: + """ Creates a subnet in the specified VPC. For an IPv4 only subnet, specify an IPv4 CIDR block. If the VPC has an IPv6 CIDR block, you can create an IPv6 only subnet or a dual stack subnet instead. For an IPv6 only @@ -6205,8 +8225,6 @@ async def create_subnet( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateSubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6216,12 +8234,34 @@ async def create_subnet( Returns: An instance of `CreateSubnetOutput`. """ - return await self._invoke(input, _models.CREATE_SUBNET, [], plugins) + async def create_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSubnetOutput: + return await self._invoke( + self._select_input(_models.CREATE_SUBNET, args, kwargs), + _models.CREATE_SUBNET, + [], + plugins, + ) + + @_overload + async def create_subnet_cidr_reservation( + self, + request: _models.CreateSubnetCidrReservationInput + | _models.CreateSubnetCidrReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSubnetCidrReservationOutput: ... + + @_overload async def create_subnet_cidr_reservation( self, - input: CreateSubnetCidrReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSubnetCidrReservationInputDict], ) -> CreateSubnetCidrReservationOutput: """ Creates a subnet CIDR reservation. For more information, see [Subnet @@ -6232,8 +8272,6 @@ async def create_subnet_cidr_reservation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateSubnetCidrReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6243,12 +8281,33 @@ async def create_subnet_cidr_reservation( Returns: An instance of `CreateSubnetCidrReservationOutput`. """ + + async def create_subnet_cidr_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSubnetCidrReservationOutput: return await self._invoke( - input, _models.CREATE_SUBNET_CIDR_RESERVATION, [], plugins + self._select_input(_models.CREATE_SUBNET_CIDR_RESERVATION, args, kwargs), + _models.CREATE_SUBNET_CIDR_RESERVATION, + [], + plugins, ) + @_overload async def create_tags( - self, input: CreateTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateTagsInput | _models.CreateTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTagsOutput: ... + + @_overload + async def create_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTagsInputDict], ) -> CreateTagsOutput: """ Adds or overwrites only the specified tags for the specified Amazon EC2 @@ -6267,8 +8326,6 @@ async def create_tags( in the *Amazon Elastic Compute Cloud User Guide*. Args: - input: - An instance of `CreateTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6278,10 +8335,34 @@ async def create_tags( Returns: An instance of `CreateTagsOutput`. """ - return await self._invoke(input, _models.CREATE_TAGS, [], plugins) + async def create_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTagsOutput: + return await self._invoke( + self._select_input(_models.CREATE_TAGS, args, kwargs), + _models.CREATE_TAGS, + [], + plugins, + ) + + @_overload + async def create_traffic_mirror_filter( + self, + request: _models.CreateTrafficMirrorFilterInput + | _models.CreateTrafficMirrorFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrafficMirrorFilterOutput: ... + + @_overload async def create_traffic_mirror_filter( - self, input: CreateTrafficMirrorFilterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrafficMirrorFilterInputDict], ) -> CreateTrafficMirrorFilterOutput: """ Creates a Traffic Mirror filter. @@ -6297,8 +8378,6 @@ async def create_traffic_mirror_filter( to mirror supported network services. Args: - input: - An instance of `CreateTrafficMirrorFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6308,14 +8387,34 @@ async def create_traffic_mirror_filter( Returns: An instance of `CreateTrafficMirrorFilterOutput`. """ + + async def create_traffic_mirror_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrafficMirrorFilterOutput: return await self._invoke( - input, _models.CREATE_TRAFFIC_MIRROR_FILTER, [], plugins + self._select_input(_models.CREATE_TRAFFIC_MIRROR_FILTER, args, kwargs), + _models.CREATE_TRAFFIC_MIRROR_FILTER, + [], + plugins, ) + @_overload async def create_traffic_mirror_filter_rule( self, - input: CreateTrafficMirrorFilterRuleInput, + request: _models.CreateTrafficMirrorFilterRuleInput + | _models.CreateTrafficMirrorFilterRuleInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateTrafficMirrorFilterRuleOutput: ... + + @_overload + async def create_traffic_mirror_filter_rule( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrafficMirrorFilterRuleInputDict], ) -> CreateTrafficMirrorFilterRuleOutput: """ Creates a Traffic Mirror filter rule. @@ -6326,8 +8425,6 @@ async def create_traffic_mirror_filter_rule( You need the Traffic Mirror filter ID when you create the rule. Args: - input: - An instance of `CreateTrafficMirrorFilterRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6337,14 +8434,34 @@ async def create_traffic_mirror_filter_rule( Returns: An instance of `CreateTrafficMirrorFilterRuleOutput`. """ + + async def create_traffic_mirror_filter_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrafficMirrorFilterRuleOutput: return await self._invoke( - input, _models.CREATE_TRAFFIC_MIRROR_FILTER_RULE, [], plugins + self._select_input(_models.CREATE_TRAFFIC_MIRROR_FILTER_RULE, args, kwargs), + _models.CREATE_TRAFFIC_MIRROR_FILTER_RULE, + [], + plugins, ) + @_overload + async def create_traffic_mirror_session( + self, + request: _models.CreateTrafficMirrorSessionInput + | _models.CreateTrafficMirrorSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrafficMirrorSessionOutput: ... + + @_overload async def create_traffic_mirror_session( self, - input: CreateTrafficMirrorSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrafficMirrorSessionInputDict], ) -> CreateTrafficMirrorSessionOutput: """ Creates a Traffic Mirror session. @@ -6363,8 +8480,6 @@ async def create_traffic_mirror_session( to create filter rules that specify the traffic to mirror. Args: - input: - An instance of `CreateTrafficMirrorSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6374,12 +8489,34 @@ async def create_traffic_mirror_session( Returns: An instance of `CreateTrafficMirrorSessionOutput`. """ + + async def create_traffic_mirror_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrafficMirrorSessionOutput: return await self._invoke( - input, _models.CREATE_TRAFFIC_MIRROR_SESSION, [], plugins + self._select_input(_models.CREATE_TRAFFIC_MIRROR_SESSION, args, kwargs), + _models.CREATE_TRAFFIC_MIRROR_SESSION, + [], + plugins, ) + @_overload + async def create_traffic_mirror_target( + self, + request: _models.CreateTrafficMirrorTargetInput + | _models.CreateTrafficMirrorTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrafficMirrorTargetOutput: ... + + @_overload async def create_traffic_mirror_target( - self, input: CreateTrafficMirrorTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrafficMirrorTargetInputDict], ) -> CreateTrafficMirrorTargetOutput: """ Creates a target for your Traffic Mirror session. @@ -6396,8 +8533,6 @@ async def create_traffic_mirror_target( [CreateTrafficMirrorSession](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm). Args: - input: - An instance of `CreateTrafficMirrorTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6407,12 +8542,34 @@ async def create_traffic_mirror_target( Returns: An instance of `CreateTrafficMirrorTargetOutput`. """ + + async def create_traffic_mirror_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrafficMirrorTargetOutput: return await self._invoke( - input, _models.CREATE_TRAFFIC_MIRROR_TARGET, [], plugins + self._select_input(_models.CREATE_TRAFFIC_MIRROR_TARGET, args, kwargs), + _models.CREATE_TRAFFIC_MIRROR_TARGET, + [], + plugins, ) + @_overload + async def create_transit_gateway( + self, + request: _models.CreateTransitGatewayInput + | _models.CreateTransitGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayOutput: ... + + @_overload async def create_transit_gateway( - self, input: CreateTransitGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayInputDict], ) -> CreateTransitGatewayOutput: """ Creates a transit gateway. @@ -6440,8 +8597,6 @@ async def create_transit_gateway( associate a resource attachment with a transit gateway route table. Args: - input: - An instance of `CreateTransitGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6451,12 +8606,34 @@ async def create_transit_gateway( Returns: An instance of `CreateTransitGatewayOutput`. """ - return await self._invoke(input, _models.CREATE_TRANSIT_GATEWAY, [], plugins) + async def create_transit_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayOutput: + return await self._invoke( + self._select_input(_models.CREATE_TRANSIT_GATEWAY, args, kwargs), + _models.CREATE_TRANSIT_GATEWAY, + [], + plugins, + ) + + @_overload + async def create_transit_gateway_connect( + self, + request: _models.CreateTransitGatewayConnectInput + | _models.CreateTransitGatewayConnectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayConnectOutput: ... + + @_overload async def create_transit_gateway_connect( self, - input: CreateTransitGatewayConnectInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayConnectInputDict], ) -> CreateTransitGatewayConnectOutput: """ Creates a Connect attachment from a specified transit gateway @@ -6468,8 +8645,6 @@ async def create_transit_gateway_connect( Connect attachment as the underlying transport mechanism. Args: - input: - An instance of `CreateTransitGatewayConnectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6479,14 +8654,34 @@ async def create_transit_gateway_connect( Returns: An instance of `CreateTransitGatewayConnectOutput`. """ + + async def create_transit_gateway_connect( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayConnectOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_CONNECT, [], plugins + self._select_input(_models.CREATE_TRANSIT_GATEWAY_CONNECT, args, kwargs), + _models.CREATE_TRANSIT_GATEWAY_CONNECT, + [], + plugins, ) + @_overload + async def create_transit_gateway_connect_peer( + self, + request: _models.CreateTransitGatewayConnectPeerInput + | _models.CreateTransitGatewayConnectPeerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayConnectPeerOutput: ... + + @_overload async def create_transit_gateway_connect_peer( self, - input: CreateTransitGatewayConnectPeerInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayConnectPeerInputDict], ) -> CreateTransitGatewayConnectPeerOutput: """ Creates a Connect peer for a specified transit gateway Connect @@ -6500,8 +8695,6 @@ async def create_transit_gateway_connect_peer( in the *Amazon Web Services Transit Gateways Guide*. Args: - input: - An instance of `CreateTransitGatewayConnectPeerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6511,22 +8704,42 @@ async def create_transit_gateway_connect_peer( Returns: An instance of `CreateTransitGatewayConnectPeerOutput`. """ + + async def create_transit_gateway_connect_peer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayConnectPeerOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_CONNECT_PEER, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_CONNECT_PEER, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_CONNECT_PEER, + [], + plugins, ) + @_overload + async def create_transit_gateway_metering_policy( + self, + request: _models.CreateTransitGatewayMeteringPolicyInput + | _models.CreateTransitGatewayMeteringPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayMeteringPolicyOutput: ... + + @_overload async def create_transit_gateway_metering_policy( self, - input: CreateTransitGatewayMeteringPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayMeteringPolicyInputDict], ) -> CreateTransitGatewayMeteringPolicyOutput: """ Creates a metering policy for a transit gateway to track and measure network traffic. Args: - input: - An instance of `CreateTransitGatewayMeteringPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6536,22 +8749,42 @@ async def create_transit_gateway_metering_policy( Returns: An instance of `CreateTransitGatewayMeteringPolicyOutput`. """ + + async def create_transit_gateway_metering_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayMeteringPolicyOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY, + [], + plugins, ) + @_overload + async def create_transit_gateway_metering_policy_entry( + self, + request: _models.CreateTransitGatewayMeteringPolicyEntryInput + | _models.CreateTransitGatewayMeteringPolicyEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayMeteringPolicyEntryOutput: ... + + @_overload async def create_transit_gateway_metering_policy_entry( self, - input: CreateTransitGatewayMeteringPolicyEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayMeteringPolicyEntryInputDict], ) -> CreateTransitGatewayMeteringPolicyEntryOutput: """ Creates an entry in a transit gateway metering policy to define traffic measurement rules. Args: - input: - An instance of `CreateTransitGatewayMeteringPolicyEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6561,14 +8794,36 @@ async def create_transit_gateway_metering_policy_entry( Returns: An instance of `CreateTransitGatewayMeteringPolicyEntryOutput`. """ + + async def create_transit_gateway_metering_policy_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayMeteringPolicyEntryOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, + [], + plugins, ) + @_overload + async def create_transit_gateway_multicast_domain( + self, + request: _models.CreateTransitGatewayMulticastDomainInput + | _models.CreateTransitGatewayMulticastDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayMulticastDomainOutput: ... + + @_overload async def create_transit_gateway_multicast_domain( self, - input: CreateTransitGatewayMulticastDomainInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayMulticastDomainInputDict], ) -> CreateTransitGatewayMulticastDomainOutput: """ Creates a multicast domain using the specified transit gateway. @@ -6579,8 +8834,6 @@ async def create_transit_gateway_multicast_domain( to see the state of transit gateway. Args: - input: - An instance of `CreateTransitGatewayMulticastDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6590,14 +8843,36 @@ async def create_transit_gateway_multicast_domain( Returns: An instance of `CreateTransitGatewayMulticastDomainOutput`. """ + + async def create_transit_gateway_multicast_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayMulticastDomainOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, + [], + plugins, ) + @_overload + async def create_transit_gateway_peering_attachment( + self, + request: _models.CreateTransitGatewayPeeringAttachmentInput + | _models.CreateTransitGatewayPeeringAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayPeeringAttachmentOutput: ... + + @_overload async def create_transit_gateway_peering_attachment( self, - input: CreateTransitGatewayPeeringAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayPeeringAttachmentInputDict], ) -> CreateTransitGatewayPeeringAttachmentOutput: """ Requests a transit gateway peering attachment between the specified @@ -6609,8 +8884,6 @@ async def create_transit_gateway_peering_attachment( transit gateway must accept the attachment request. Args: - input: - An instance of `CreateTransitGatewayPeeringAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6620,21 +8893,41 @@ async def create_transit_gateway_peering_attachment( Returns: An instance of `CreateTransitGatewayPeeringAttachmentOutput`. """ + + async def create_transit_gateway_peering_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayPeeringAttachmentOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, + [], + plugins, ) + @_overload async def create_transit_gateway_policy_table( self, - input: CreateTransitGatewayPolicyTableInput, + request: _models.CreateTransitGatewayPolicyTableInput + | _models.CreateTransitGatewayPolicyTableInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayPolicyTableOutput: ... + + @_overload + async def create_transit_gateway_policy_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayPolicyTableInputDict], ) -> CreateTransitGatewayPolicyTableOutput: """ Creates a transit gateway policy table. Args: - input: - An instance of `CreateTransitGatewayPolicyTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6644,22 +8937,42 @@ async def create_transit_gateway_policy_table( Returns: An instance of `CreateTransitGatewayPolicyTableOutput`. """ + + async def create_transit_gateway_policy_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayPolicyTableOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE, + [], + plugins, ) + @_overload + async def create_transit_gateway_policy_table_entry( + self, + request: _models.CreateTransitGatewayPolicyTableEntryInput + | _models.CreateTransitGatewayPolicyTableEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayPolicyTableEntryOutput: ... + + @_overload async def create_transit_gateway_policy_table_entry( self, - input: CreateTransitGatewayPolicyTableEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayPolicyTableEntryInputDict], ) -> CreateTransitGatewayPolicyTableEntryOutput: """ Creates an entry in a transit gateway policy table to route matching traffic to a specified route table. Args: - input: - An instance of `CreateTransitGatewayPolicyTableEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6669,22 +8982,42 @@ async def create_transit_gateway_policy_table_entry( Returns: An instance of `CreateTransitGatewayPolicyTableEntryOutput`. """ + + async def create_transit_gateway_policy_table_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayPolicyTableEntryOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, + [], + plugins, ) + @_overload + async def create_transit_gateway_prefix_list_reference( + self, + request: _models.CreateTransitGatewayPrefixListReferenceInput + | _models.CreateTransitGatewayPrefixListReferenceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayPrefixListReferenceOutput: ... + + @_overload async def create_transit_gateway_prefix_list_reference( self, - input: CreateTransitGatewayPrefixListReferenceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayPrefixListReferenceInputDict], ) -> CreateTransitGatewayPrefixListReferenceOutput: """ Creates a reference (route) to a prefix list in a specified transit gateway route table. Args: - input: - An instance of `CreateTransitGatewayPrefixListReferenceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6694,19 +9027,41 @@ async def create_transit_gateway_prefix_list_reference( Returns: An instance of `CreateTransitGatewayPrefixListReferenceOutput`. """ + + async def create_transit_gateway_prefix_list_reference( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayPrefixListReferenceOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, + [], + plugins, ) + @_overload + async def create_transit_gateway_route( + self, + request: _models.CreateTransitGatewayRouteInput + | _models.CreateTransitGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayRouteOutput: ... + + @_overload async def create_transit_gateway_route( - self, input: CreateTransitGatewayRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayRouteInputDict], ) -> CreateTransitGatewayRouteOutput: """ Creates a static route for the specified transit gateway route table. Args: - input: - An instance of `CreateTransitGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6716,21 +9071,39 @@ async def create_transit_gateway_route( Returns: An instance of `CreateTransitGatewayRouteOutput`. """ + + async def create_transit_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayRouteOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_ROUTE, [], plugins + self._select_input(_models.CREATE_TRANSIT_GATEWAY_ROUTE, args, kwargs), + _models.CREATE_TRANSIT_GATEWAY_ROUTE, + [], + plugins, ) + @_overload + async def create_transit_gateway_route_table( + self, + request: _models.CreateTransitGatewayRouteTableInput + | _models.CreateTransitGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayRouteTableOutput: ... + + @_overload async def create_transit_gateway_route_table( self, - input: CreateTransitGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayRouteTableInputDict], ) -> CreateTransitGatewayRouteTableOutput: """ Creates a route table for the specified transit gateway. Args: - input: - An instance of `CreateTransitGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6740,21 +9113,41 @@ async def create_transit_gateway_route_table( Returns: An instance of `CreateTransitGatewayRouteTableOutput`. """ + + async def create_transit_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayRouteTableOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + async def create_transit_gateway_route_table_announcement( + self, + request: _models.CreateTransitGatewayRouteTableAnnouncementInput + | _models.CreateTransitGatewayRouteTableAnnouncementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayRouteTableAnnouncementOutput: ... + + @_overload async def create_transit_gateway_route_table_announcement( self, - input: CreateTransitGatewayRouteTableAnnouncementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayRouteTableAnnouncementInputDict], ) -> CreateTransitGatewayRouteTableAnnouncementOutput: """ Advertises a new transit gateway route table. Args: - input: - An instance of `CreateTransitGatewayRouteTableAnnouncementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6764,14 +9157,36 @@ async def create_transit_gateway_route_table_announcement( Returns: An instance of `CreateTransitGatewayRouteTableAnnouncementOutput`. """ + + async def create_transit_gateway_route_table_announcement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayRouteTableAnnouncementOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, + [], + plugins, ) + @_overload async def create_transit_gateway_vpc_attachment( self, - input: CreateTransitGatewayVpcAttachmentInput, + request: _models.CreateTransitGatewayVpcAttachmentInput + | _models.CreateTransitGatewayVpcAttachmentInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayVpcAttachmentOutput: ... + + @_overload + async def create_transit_gateway_vpc_attachment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayVpcAttachmentInputDict], ) -> CreateTransitGatewayVpcAttachmentOutput: """ Attaches the specified VPC to the specified transit gateway. @@ -6784,8 +9199,6 @@ async def create_transit_gateway_vpc_attachment( VPC route table using CreateRoute. Args: - input: - An instance of `CreateTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6795,22 +9208,42 @@ async def create_transit_gateway_vpc_attachment( Returns: An instance of `CreateTransitGatewayVpcAttachmentOutput`. """ + + async def create_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayVpcAttachmentOutput: return await self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload + async def create_verified_access_endpoint( + self, + request: _models.CreateVerifiedAccessEndpointInput + | _models.CreateVerifiedAccessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVerifiedAccessEndpointOutput: ... + + @_overload async def create_verified_access_endpoint( self, - input: CreateVerifiedAccessEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVerifiedAccessEndpointInputDict], ) -> CreateVerifiedAccessEndpointOutput: """ An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy. Args: - input: - An instance of `CreateVerifiedAccessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6820,12 +9253,34 @@ async def create_verified_access_endpoint( Returns: An instance of `CreateVerifiedAccessEndpointOutput`. """ + + async def create_verified_access_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVerifiedAccessEndpointOutput: return await self._invoke( - input, _models.CREATE_VERIFIED_ACCESS_ENDPOINT, [], plugins + self._select_input(_models.CREATE_VERIFIED_ACCESS_ENDPOINT, args, kwargs), + _models.CREATE_VERIFIED_ACCESS_ENDPOINT, + [], + plugins, ) + @_overload + async def create_verified_access_group( + self, + request: _models.CreateVerifiedAccessGroupInput + | _models.CreateVerifiedAccessGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVerifiedAccessGroupOutput: ... + + @_overload async def create_verified_access_group( - self, input: CreateVerifiedAccessGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVerifiedAccessGroupInputDict], ) -> CreateVerifiedAccessGroupOutput: """ An Amazon Web Services Verified Access group is a collection of Amazon @@ -6836,8 +9291,6 @@ async def create_verified_access_group( applications together and use one common Verified Access policy. Args: - input: - An instance of `CreateVerifiedAccessGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6847,14 +9300,34 @@ async def create_verified_access_group( Returns: An instance of `CreateVerifiedAccessGroupOutput`. """ + + async def create_verified_access_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVerifiedAccessGroupOutput: return await self._invoke( - input, _models.CREATE_VERIFIED_ACCESS_GROUP, [], plugins + self._select_input(_models.CREATE_VERIFIED_ACCESS_GROUP, args, kwargs), + _models.CREATE_VERIFIED_ACCESS_GROUP, + [], + plugins, ) + @_overload + async def create_verified_access_instance( + self, + request: _models.CreateVerifiedAccessInstanceInput + | _models.CreateVerifiedAccessInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVerifiedAccessInstanceOutput: ... + + @_overload async def create_verified_access_instance( self, - input: CreateVerifiedAccessInstanceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVerifiedAccessInstanceInputDict], ) -> CreateVerifiedAccessInstanceOutput: """ An Amazon Web Services Verified Access instance is a regional entity @@ -6862,8 +9335,6 @@ async def create_verified_access_instance( security requirements are met. Args: - input: - An instance of `CreateVerifiedAccessInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6873,14 +9344,34 @@ async def create_verified_access_instance( Returns: An instance of `CreateVerifiedAccessInstanceOutput`. """ + + async def create_verified_access_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVerifiedAccessInstanceOutput: return await self._invoke( - input, _models.CREATE_VERIFIED_ACCESS_INSTANCE, [], plugins + self._select_input(_models.CREATE_VERIFIED_ACCESS_INSTANCE, args, kwargs), + _models.CREATE_VERIFIED_ACCESS_INSTANCE, + [], + plugins, ) + @_overload + async def create_verified_access_trust_provider( + self, + request: _models.CreateVerifiedAccessTrustProviderInput + | _models.CreateVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVerifiedAccessTrustProviderOutput: ... + + @_overload async def create_verified_access_trust_provider( self, - input: CreateVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVerifiedAccessTrustProviderInputDict], ) -> CreateVerifiedAccessTrustProviderOutput: """ A trust provider is a third-party entity that creates, maintains, and @@ -6890,8 +9381,6 @@ async def create_verified_access_trust_provider( request. Args: - input: - An instance of `CreateVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6901,13 +9390,36 @@ async def create_verified_access_trust_provider( Returns: An instance of `CreateVerifiedAccessTrustProviderOutput`. """ + + async def create_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVerifiedAccessTrustProviderOutput: return await self._invoke( - input, _models.CREATE_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.CREATE_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.CREATE_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload async def create_volume( - self, input: CreateVolumeInput, plugins: list[Plugin] | None = None - ) -> CreateVolumeOutput: + self, + request: _models.CreateVolumeInput | _models.CreateVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVolumeOutput: ... + + @_overload + async def create_volume( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVolumeInputDict], + ) -> CreateVolumeOutput: """ Creates an EBS volume that can be attached to an instance in the same Availability Zone. @@ -6933,8 +9445,6 @@ async def create_volume( in the *Amazon EBS User Guide*. Args: - input: - An instance of `CreateVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6944,10 +9454,33 @@ async def create_volume( Returns: An instance of `CreateVolumeOutput`. """ - return await self._invoke(input, _models.CREATE_VOLUME, [], plugins) + async def create_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVolumeOutput: + return await self._invoke( + self._select_input(_models.CREATE_VOLUME, args, kwargs), + _models.CREATE_VOLUME, + [], + plugins, + ) + + @_overload + async def create_vpc( + self, + request: _models.CreateVpcInput | _models.CreateVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcOutput: ... + + @_overload async def create_vpc( - self, input: CreateVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcInputDict], ) -> CreateVpcOutput: """ Creates a VPC with the specified CIDR blocks. @@ -6974,8 +9507,6 @@ async def create_vpc( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6985,12 +9516,34 @@ async def create_vpc( Returns: An instance of `CreateVpcOutput`. """ - return await self._invoke(input, _models.CREATE_VPC, [], plugins) + async def create_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcOutput: + return await self._invoke( + self._select_input(_models.CREATE_VPC, args, kwargs), + _models.CREATE_VPC, + [], + plugins, + ) + + @_overload + async def create_vpc_block_public_access_exclusion( + self, + request: _models.CreateVpcBlockPublicAccessExclusionInput + | _models.CreateVpcBlockPublicAccessExclusionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcBlockPublicAccessExclusionOutput: ... + + @_overload async def create_vpc_block_public_access_exclusion( self, - input: CreateVpcBlockPublicAccessExclusionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcBlockPublicAccessExclusionInputDict], ) -> CreateVpcBlockPublicAccessExclusionOutput: """ Create a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is @@ -7004,8 +9557,6 @@ async def create_vpc_block_public_access_exclusion( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateVpcBlockPublicAccessExclusionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7015,14 +9566,36 @@ async def create_vpc_block_public_access_exclusion( Returns: An instance of `CreateVpcBlockPublicAccessExclusionOutput`. """ + + async def create_vpc_block_public_access_exclusion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcBlockPublicAccessExclusionOutput: return await self._invoke( - input, _models.CREATE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, [], plugins + self._select_input( + _models.CREATE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, args, kwargs + ), + _models.CREATE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, + [], + plugins, ) + @_overload + async def create_vpc_encryption_control( + self, + request: _models.CreateVpcEncryptionControlInput + | _models.CreateVpcEncryptionControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcEncryptionControlOutput: ... + + @_overload async def create_vpc_encryption_control( self, - input: CreateVpcEncryptionControlInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcEncryptionControlInputDict], ) -> CreateVpcEncryptionControlOutput: """ Creates a VPC Encryption Control configuration for a specified VPC. VPC @@ -7035,8 +9608,6 @@ async def create_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7046,12 +9617,33 @@ async def create_vpc_encryption_control( Returns: An instance of `CreateVpcEncryptionControlOutput`. """ + + async def create_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcEncryptionControlOutput: return await self._invoke( - input, _models.CREATE_VPC_ENCRYPTION_CONTROL, [], plugins + self._select_input(_models.CREATE_VPC_ENCRYPTION_CONTROL, args, kwargs), + _models.CREATE_VPC_ENCRYPTION_CONTROL, + [], + plugins, ) + @_overload + async def create_vpc_endpoint( + self, + request: _models.CreateVpcEndpointInput | _models.CreateVpcEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcEndpointOutput: ... + + @_overload async def create_vpc_endpoint( - self, input: CreateVpcEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcEndpointInputDict], ) -> CreateVpcEndpointOutput: """ Creates a VPC endpoint. A VPC endpoint provides a private connection @@ -7062,8 +9654,6 @@ async def create_vpc_endpoint( Guide](https://docs.aws.amazon.com/vpc/latest/privatelink/). Args: - input: - An instance of `CreateVpcEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7073,12 +9663,34 @@ async def create_vpc_endpoint( Returns: An instance of `CreateVpcEndpointOutput`. """ - return await self._invoke(input, _models.CREATE_VPC_ENDPOINT, [], plugins) + async def create_vpc_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcEndpointOutput: + return await self._invoke( + self._select_input(_models.CREATE_VPC_ENDPOINT, args, kwargs), + _models.CREATE_VPC_ENDPOINT, + [], + plugins, + ) + + @_overload + async def create_vpc_endpoint_connection_notification( + self, + request: _models.CreateVpcEndpointConnectionNotificationInput + | _models.CreateVpcEndpointConnectionNotificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcEndpointConnectionNotificationOutput: ... + + @_overload async def create_vpc_endpoint_connection_notification( self, - input: CreateVpcEndpointConnectionNotificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcEndpointConnectionNotificationInputDict], ) -> CreateVpcEndpointConnectionNotificationOutput: """ Creates a connection notification for a specified VPC endpoint or VPC @@ -7091,8 +9703,6 @@ async def create_vpc_endpoint_connection_notification( You can create a connection notification for interface endpoints only. Args: - input: - An instance of `CreateVpcEndpointConnectionNotificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7102,14 +9712,36 @@ async def create_vpc_endpoint_connection_notification( Returns: An instance of `CreateVpcEndpointConnectionNotificationOutput`. """ + + async def create_vpc_endpoint_connection_notification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcEndpointConnectionNotificationOutput: return await self._invoke( - input, _models.CREATE_VPC_ENDPOINT_CONNECTION_NOTIFICATION, [], plugins + self._select_input( + _models.CREATE_VPC_ENDPOINT_CONNECTION_NOTIFICATION, args, kwargs + ), + _models.CREATE_VPC_ENDPOINT_CONNECTION_NOTIFICATION, + [], + plugins, ) + @_overload + async def create_vpc_endpoint_service_configuration( + self, + request: _models.CreateVpcEndpointServiceConfigurationInput + | _models.CreateVpcEndpointServiceConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcEndpointServiceConfigurationOutput: ... + + @_overload async def create_vpc_endpoint_service_configuration( self, - input: CreateVpcEndpointServiceConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcEndpointServiceConfigurationInputDict], ) -> CreateVpcEndpointServiceConfigurationOutput: """ Creates a VPC endpoint service to which service consumers (Amazon Web @@ -7134,8 +9766,6 @@ async def create_vpc_endpoint_service_configuration( Guide](https://docs.aws.amazon.com/vpc/latest/privatelink/). Args: - input: - An instance of `CreateVpcEndpointServiceConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7145,14 +9775,36 @@ async def create_vpc_endpoint_service_configuration( Returns: An instance of `CreateVpcEndpointServiceConfigurationOutput`. """ + + async def create_vpc_endpoint_service_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcEndpointServiceConfigurationOutput: return await self._invoke( - input, _models.CREATE_VPC_ENDPOINT_SERVICE_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_VPC_ENDPOINT_SERVICE_CONFIGURATION, args, kwargs + ), + _models.CREATE_VPC_ENDPOINT_SERVICE_CONFIGURATION, + [], + plugins, ) + @_overload + async def create_vpc_peering_connection( + self, + request: _models.CreateVpcPeeringConnectionInput + | _models.CreateVpcPeeringConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcPeeringConnectionOutput: ... + + @_overload async def create_vpc_peering_connection( self, - input: CreateVpcPeeringConnectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcPeeringConnectionInputDict], ) -> CreateVpcPeeringConnectionOutput: """ Requests a VPC peering connection between two VPCs: a requester VPC that @@ -7176,8 +9828,6 @@ async def create_vpc_peering_connection( `failed`. Args: - input: - An instance of `CreateVpcPeeringConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7187,20 +9837,40 @@ async def create_vpc_peering_connection( Returns: An instance of `CreateVpcPeeringConnectionOutput`. """ + + async def create_vpc_peering_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcPeeringConnectionOutput: return await self._invoke( - input, _models.CREATE_VPC_PEERING_CONNECTION, [], plugins + self._select_input(_models.CREATE_VPC_PEERING_CONNECTION, args, kwargs), + _models.CREATE_VPC_PEERING_CONNECTION, + [], + plugins, ) + @_overload + async def create_vpn_concentrator( + self, + request: _models.CreateVpnConcentratorInput + | _models.CreateVpnConcentratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpnConcentratorOutput: ... + + @_overload async def create_vpn_concentrator( - self, input: CreateVpnConcentratorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpnConcentratorInputDict], ) -> CreateVpnConcentratorOutput: """ Creates a VPN concentrator that aggregates multiple VPN connections to a transit gateway. Args: - input: - An instance of `CreateVpnConcentratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7210,10 +9880,34 @@ async def create_vpn_concentrator( Returns: An instance of `CreateVpnConcentratorOutput`. """ - return await self._invoke(input, _models.CREATE_VPN_CONCENTRATOR, [], plugins) + async def create_vpn_concentrator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpnConcentratorOutput: + return await self._invoke( + self._select_input(_models.CREATE_VPN_CONCENTRATOR, args, kwargs), + _models.CREATE_VPN_CONCENTRATOR, + [], + plugins, + ) + + @_overload + async def create_vpn_connection( + self, + request: _models.CreateVpnConnectionInput + | _models.CreateVpnConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpnConnectionOutput: ... + + @_overload async def create_vpn_connection( - self, input: CreateVpnConnectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpnConnectionInputDict], ) -> CreateVpnConnectionOutput: """ Creates a VPN connection between an existing virtual private gateway or @@ -7240,8 +9934,6 @@ async def create_vpn_connection( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `CreateVpnConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7251,10 +9943,34 @@ async def create_vpn_connection( Returns: An instance of `CreateVpnConnectionOutput`. """ - return await self._invoke(input, _models.CREATE_VPN_CONNECTION, [], plugins) + async def create_vpn_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpnConnectionOutput: + return await self._invoke( + self._select_input(_models.CREATE_VPN_CONNECTION, args, kwargs), + _models.CREATE_VPN_CONNECTION, + [], + plugins, + ) + + @_overload + async def create_vpn_connection_route( + self, + request: _models.CreateVpnConnectionRouteInput + | _models.CreateVpnConnectionRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpnConnectionRouteOutput: ... + + @_overload async def create_vpn_connection_route( - self, input: CreateVpnConnectionRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpnConnectionRouteInputDict], ) -> CreateVpnConnectionRouteOutput: """ Creates a static route associated with a VPN connection between an @@ -7267,8 +9983,6 @@ async def create_vpn_connection_route( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `CreateVpnConnectionRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7278,12 +9992,33 @@ async def create_vpn_connection_route( Returns: An instance of `CreateVpnConnectionRouteOutput`. """ + + async def create_vpn_connection_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpnConnectionRouteOutput: return await self._invoke( - input, _models.CREATE_VPN_CONNECTION_ROUTE, [], plugins + self._select_input(_models.CREATE_VPN_CONNECTION_ROUTE, args, kwargs), + _models.CREATE_VPN_CONNECTION_ROUTE, + [], + plugins, ) + @_overload + async def create_vpn_gateway( + self, + request: _models.CreateVpnGatewayInput | _models.CreateVpnGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpnGatewayOutput: ... + + @_overload async def create_vpn_gateway( - self, input: CreateVpnGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpnGatewayInputDict], ) -> CreateVpnGatewayOutput: """ Creates a virtual private gateway. A virtual private gateway is the @@ -7295,8 +10030,6 @@ async def create_vpn_gateway( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `CreateVpnGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7306,12 +10039,34 @@ async def create_vpn_gateway( Returns: An instance of `CreateVpnGatewayOutput`. """ - return await self._invoke(input, _models.CREATE_VPN_GATEWAY, [], plugins) + async def create_vpn_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpnGatewayOutput: + return await self._invoke( + self._select_input(_models.CREATE_VPN_GATEWAY, args, kwargs), + _models.CREATE_VPN_GATEWAY, + [], + plugins, + ) + + @_overload + async def delete_application_status_check( + self, + request: _models.DeleteApplicationStatusCheckInput + | _models.DeleteApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteApplicationStatusCheckOutput: ... + + @_overload async def delete_application_status_check( self, - input: DeleteApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteApplicationStatusCheckInputDict], ) -> DeleteApplicationStatusCheckOutput: """ Deletes an application status check. The following rules apply: @@ -7322,8 +10077,6 @@ async def delete_application_status_check( deleting. Args: - input: - An instance of `DeleteApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7333,14 +10086,34 @@ async def delete_application_status_check( Returns: An instance of `DeleteApplicationStatusCheckOutput`. """ + + async def delete_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteApplicationStatusCheckOutput: return await self._invoke( - input, _models.DELETE_APPLICATION_STATUS_CHECK, [], plugins + self._select_input(_models.DELETE_APPLICATION_STATUS_CHECK, args, kwargs), + _models.DELETE_APPLICATION_STATUS_CHECK, + [], + plugins, ) + @_overload async def delete_capacity_manager_data_export( self, - input: DeleteCapacityManagerDataExportInput, + request: _models.DeleteCapacityManagerDataExportInput + | _models.DeleteCapacityManagerDataExportInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteCapacityManagerDataExportOutput: ... + + @_overload + async def delete_capacity_manager_data_export( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityManagerDataExportInputDict], ) -> DeleteCapacityManagerDataExportOutput: """ Deletes an existing Capacity Manager data export configuration. This @@ -7348,8 +10121,6 @@ async def delete_capacity_manager_data_export( files from S3. Args: - input: - An instance of `DeleteCapacityManagerDataExportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7359,12 +10130,36 @@ async def delete_capacity_manager_data_export( Returns: An instance of `DeleteCapacityManagerDataExportOutput`. """ + + async def delete_capacity_manager_data_export( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityManagerDataExportOutput: return await self._invoke( - input, _models.DELETE_CAPACITY_MANAGER_DATA_EXPORT, [], plugins + self._select_input( + _models.DELETE_CAPACITY_MANAGER_DATA_EXPORT, args, kwargs + ), + _models.DELETE_CAPACITY_MANAGER_DATA_EXPORT, + [], + plugins, ) + @_overload + async def delete_carrier_gateway( + self, + request: _models.DeleteCarrierGatewayInput + | _models.DeleteCarrierGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCarrierGatewayOutput: ... + + @_overload async def delete_carrier_gateway( - self, input: DeleteCarrierGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCarrierGatewayInputDict], ) -> DeleteCarrierGatewayOutput: """ Deletes a carrier gateway. @@ -7376,8 +10171,6 @@ async def delete_carrier_gateway( [DeleteRoute](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteRoute.html). Args: - input: - An instance of `DeleteCarrierGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7387,18 +10180,40 @@ async def delete_carrier_gateway( Returns: An instance of `DeleteCarrierGatewayOutput`. """ - return await self._invoke(input, _models.DELETE_CARRIER_GATEWAY, [], plugins) + async def delete_carrier_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCarrierGatewayOutput: + return await self._invoke( + self._select_input(_models.DELETE_CARRIER_GATEWAY, args, kwargs), + _models.DELETE_CARRIER_GATEWAY, + [], + plugins, + ) + + @_overload + async def delete_client_vpn_endpoint( + self, + request: _models.DeleteClientVpnEndpointInput + | _models.DeleteClientVpnEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClientVpnEndpointOutput: ... + + @_overload async def delete_client_vpn_endpoint( - self, input: DeleteClientVpnEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClientVpnEndpointInputDict], ) -> DeleteClientVpnEndpointOutput: """ Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint. Args: - input: - An instance of `DeleteClientVpnEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7408,21 +10223,39 @@ async def delete_client_vpn_endpoint( Returns: An instance of `DeleteClientVpnEndpointOutput`. """ + + async def delete_client_vpn_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClientVpnEndpointOutput: return await self._invoke( - input, _models.DELETE_CLIENT_VPN_ENDPOINT, [], plugins + self._select_input(_models.DELETE_CLIENT_VPN_ENDPOINT, args, kwargs), + _models.DELETE_CLIENT_VPN_ENDPOINT, + [], + plugins, ) + @_overload + async def delete_client_vpn_endpoint_authorization_policy( + self, + request: _models.DeleteClientVpnEndpointAuthorizationPolicyInput + | _models.DeleteClientVpnEndpointAuthorizationPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClientVpnEndpointAuthorizationPolicyOutput: ... + + @_overload async def delete_client_vpn_endpoint_authorization_policy( self, - input: DeleteClientVpnEndpointAuthorizationPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClientVpnEndpointAuthorizationPolicyInputDict], ) -> DeleteClientVpnEndpointAuthorizationPolicyOutput: """ Deletes the authorization policy for a Client VPN endpoint. Args: - input: - An instance of `DeleteClientVpnEndpointAuthorizationPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7432,12 +10265,36 @@ async def delete_client_vpn_endpoint_authorization_policy( Returns: An instance of `DeleteClientVpnEndpointAuthorizationPolicyOutput`. """ + + async def delete_client_vpn_endpoint_authorization_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClientVpnEndpointAuthorizationPolicyOutput: return await self._invoke( - input, _models.DELETE_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, [], plugins + self._select_input( + _models.DELETE_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, args, kwargs + ), + _models.DELETE_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, + [], + plugins, ) + @_overload + async def delete_client_vpn_route( + self, + request: _models.DeleteClientVpnRouteInput + | _models.DeleteClientVpnRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClientVpnRouteOutput: ... + + @_overload async def delete_client_vpn_route( - self, input: DeleteClientVpnRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClientVpnRouteInputDict], ) -> DeleteClientVpnRouteOutput: """ Deletes a route from a Client VPN endpoint. You can only delete routes @@ -7447,8 +10304,6 @@ async def delete_client_vpn_route( disassociate the target subnet from the Client VPN endpoint. Args: - input: - An instance of `DeleteClientVpnRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7458,17 +10313,38 @@ async def delete_client_vpn_route( Returns: An instance of `DeleteClientVpnRouteOutput`. """ - return await self._invoke(input, _models.DELETE_CLIENT_VPN_ROUTE, [], plugins) + async def delete_client_vpn_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClientVpnRouteOutput: + return await self._invoke( + self._select_input(_models.DELETE_CLIENT_VPN_ROUTE, args, kwargs), + _models.DELETE_CLIENT_VPN_ROUTE, + [], + plugins, + ) + + @_overload + async def delete_coip_cidr( + self, + request: _models.DeleteCoipCidrInput | _models.DeleteCoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCoipCidrOutput: ... + + @_overload async def delete_coip_cidr( - self, input: DeleteCoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCoipCidrInputDict], ) -> DeleteCoipCidrOutput: """ Deletes a range of customer-owned IP addresses. Args: - input: - An instance of `DeleteCoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7478,17 +10354,38 @@ async def delete_coip_cidr( Returns: An instance of `DeleteCoipCidrOutput`. """ - return await self._invoke(input, _models.DELETE_COIP_CIDR, [], plugins) + async def delete_coip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCoipCidrOutput: + return await self._invoke( + self._select_input(_models.DELETE_COIP_CIDR, args, kwargs), + _models.DELETE_COIP_CIDR, + [], + plugins, + ) + + @_overload + async def delete_coip_pool( + self, + request: _models.DeleteCoipPoolInput | _models.DeleteCoipPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCoipPoolOutput: ... + + @_overload async def delete_coip_pool( - self, input: DeleteCoipPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCoipPoolInputDict], ) -> DeleteCoipPoolOutput: """ Deletes a pool of customer-owned IP (CoIP) addresses. Args: - input: - An instance of `DeleteCoipPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7498,18 +10395,40 @@ async def delete_coip_pool( Returns: An instance of `DeleteCoipPoolOutput`. """ - return await self._invoke(input, _models.DELETE_COIP_POOL, [], plugins) + async def delete_coip_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCoipPoolOutput: + return await self._invoke( + self._select_input(_models.DELETE_COIP_POOL, args, kwargs), + _models.DELETE_COIP_POOL, + [], + plugins, + ) + + @_overload + async def delete_customer_gateway( + self, + request: _models.DeleteCustomerGatewayInput + | _models.DeleteCustomerGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomerGatewayOutput: ... + + @_overload async def delete_customer_gateway( - self, input: DeleteCustomerGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomerGatewayInputDict], ) -> DeleteCustomerGatewayOutput: """ Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway. Args: - input: - An instance of `DeleteCustomerGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7519,10 +10438,33 @@ async def delete_customer_gateway( Returns: An instance of `DeleteCustomerGatewayOutput`. """ - return await self._invoke(input, _models.DELETE_CUSTOMER_GATEWAY, [], plugins) + async def delete_customer_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomerGatewayOutput: + return await self._invoke( + self._select_input(_models.DELETE_CUSTOMER_GATEWAY, args, kwargs), + _models.DELETE_CUSTOMER_GATEWAY, + [], + plugins, + ) + + @_overload + async def delete_dhcp_options( + self, + request: _models.DeleteDhcpOptionsInput | _models.DeleteDhcpOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDhcpOptionsOutput: ... + + @_overload async def delete_dhcp_options( - self, input: DeleteDhcpOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDhcpOptionsInputDict], ) -> DeleteDhcpOptionsOutput: """ Deletes the specified set of DHCP options. You must disassociate the set @@ -7531,8 +10473,6 @@ async def delete_dhcp_options( default set of options with the VPC. Args: - input: - An instance of `DeleteDhcpOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7542,19 +10482,39 @@ async def delete_dhcp_options( Returns: An instance of `DeleteDhcpOptionsOutput`. """ - return await self._invoke(input, _models.DELETE_DHCP_OPTIONS, [], plugins) + async def delete_dhcp_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDhcpOptionsOutput: + return await self._invoke( + self._select_input(_models.DELETE_DHCP_OPTIONS, args, kwargs), + _models.DELETE_DHCP_OPTIONS, + [], + plugins, + ) + + @_overload + async def delete_egress_only_internet_gateway( + self, + request: _models.DeleteEgressOnlyInternetGatewayInput + | _models.DeleteEgressOnlyInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEgressOnlyInternetGatewayOutput: ... + + @_overload async def delete_egress_only_internet_gateway( self, - input: DeleteEgressOnlyInternetGatewayInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEgressOnlyInternetGatewayInputDict], ) -> DeleteEgressOnlyInternetGatewayOutput: """ Deletes an egress-only internet gateway. Args: - input: - An instance of `DeleteEgressOnlyInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7564,12 +10524,35 @@ async def delete_egress_only_internet_gateway( Returns: An instance of `DeleteEgressOnlyInternetGatewayOutput`. """ - return await self._invoke( - input, _models.DELETE_EGRESS_ONLY_INTERNET_GATEWAY, [], plugins + + async def delete_egress_only_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEgressOnlyInternetGatewayOutput: + return await self._invoke( + self._select_input( + _models.DELETE_EGRESS_ONLY_INTERNET_GATEWAY, args, kwargs + ), + _models.DELETE_EGRESS_ONLY_INTERNET_GATEWAY, + [], + plugins, ) + @_overload + async def delete_fleets( + self, + request: _models.DeleteFleetsInput | _models.DeleteFleetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFleetsOutput: ... + + @_overload async def delete_fleets( - self, input: DeleteFleetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFleetsInputDict], ) -> DeleteFleetsOutput: """ Deletes the specified EC2 Fleet request. @@ -7623,8 +10606,6 @@ async def delete_fleets( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeleteFleetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7634,17 +10615,38 @@ async def delete_fleets( Returns: An instance of `DeleteFleetsOutput`. """ - return await self._invoke(input, _models.DELETE_FLEETS, [], plugins) + async def delete_fleets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFleetsOutput: + return await self._invoke( + self._select_input(_models.DELETE_FLEETS, args, kwargs), + _models.DELETE_FLEETS, + [], + plugins, + ) + + @_overload + async def delete_flow_logs( + self, + request: _models.DeleteFlowLogsInput | _models.DeleteFlowLogsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFlowLogsOutput: ... + + @_overload async def delete_flow_logs( - self, input: DeleteFlowLogsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFlowLogsInputDict], ) -> DeleteFlowLogsOutput: """ Deletes one or more flow logs. Args: - input: - An instance of `DeleteFlowLogsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7654,17 +10656,38 @@ async def delete_flow_logs( Returns: An instance of `DeleteFlowLogsOutput`. """ - return await self._invoke(input, _models.DELETE_FLOW_LOGS, [], plugins) + async def delete_flow_logs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFlowLogsOutput: + return await self._invoke( + self._select_input(_models.DELETE_FLOW_LOGS, args, kwargs), + _models.DELETE_FLOW_LOGS, + [], + plugins, + ) + + @_overload async def delete_fpga_image( - self, input: DeleteFpgaImageInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteFpgaImageInput | _models.DeleteFpgaImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFpgaImageOutput: ... + + @_overload + async def delete_fpga_image( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFpgaImageInputDict], ) -> DeleteFpgaImageOutput: """ Deletes the specified Amazon FPGA Image (AFI). Args: - input: - An instance of `DeleteFpgaImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7674,10 +10697,34 @@ async def delete_fpga_image( Returns: An instance of `DeleteFpgaImageOutput`. """ - return await self._invoke(input, _models.DELETE_FPGA_IMAGE, [], plugins) + async def delete_fpga_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFpgaImageOutput: + return await self._invoke( + self._select_input(_models.DELETE_FPGA_IMAGE, args, kwargs), + _models.DELETE_FPGA_IMAGE, + [], + plugins, + ) + + @_overload + async def delete_image_usage_report( + self, + request: _models.DeleteImageUsageReportInput + | _models.DeleteImageUsageReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteImageUsageReportOutput: ... + + @_overload async def delete_image_usage_report( - self, input: DeleteImageUsageReportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteImageUsageReportInputDict], ) -> DeleteImageUsageReportOutput: """ Deletes the specified image usage report. @@ -7687,8 +10734,6 @@ async def delete_image_usage_report( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeleteImageUsageReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7698,19 +10743,39 @@ async def delete_image_usage_report( Returns: An instance of `DeleteImageUsageReportOutput`. """ - return await self._invoke(input, _models.DELETE_IMAGE_USAGE_REPORT, [], plugins) + async def delete_image_usage_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteImageUsageReportOutput: + return await self._invoke( + self._select_input(_models.DELETE_IMAGE_USAGE_REPORT, args, kwargs), + _models.DELETE_IMAGE_USAGE_REPORT, + [], + plugins, + ) + + @_overload + async def delete_instance_connect_endpoint( + self, + request: _models.DeleteInstanceConnectEndpointInput + | _models.DeleteInstanceConnectEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInstanceConnectEndpointOutput: ... + + @_overload async def delete_instance_connect_endpoint( self, - input: DeleteInstanceConnectEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInstanceConnectEndpointInputDict], ) -> DeleteInstanceConnectEndpointOutput: """ Deletes the specified EC2 Instance Connect Endpoint. Args: - input: - An instance of `DeleteInstanceConnectEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7720,12 +10785,34 @@ async def delete_instance_connect_endpoint( Returns: An instance of `DeleteInstanceConnectEndpointOutput`. """ + + async def delete_instance_connect_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInstanceConnectEndpointOutput: return await self._invoke( - input, _models.DELETE_INSTANCE_CONNECT_ENDPOINT, [], plugins + self._select_input(_models.DELETE_INSTANCE_CONNECT_ENDPOINT, args, kwargs), + _models.DELETE_INSTANCE_CONNECT_ENDPOINT, + [], + plugins, ) + @_overload + async def delete_instance_event_window( + self, + request: _models.DeleteInstanceEventWindowInput + | _models.DeleteInstanceEventWindowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInstanceEventWindowOutput: ... + + @_overload async def delete_instance_event_window( - self, input: DeleteInstanceEventWindowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInstanceEventWindowInputDict], ) -> DeleteInstanceEventWindowOutput: """ Deletes the specified event window. @@ -7735,8 +10822,6 @@ async def delete_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeleteInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7746,20 +10831,40 @@ async def delete_instance_event_window( Returns: An instance of `DeleteInstanceEventWindowOutput`. """ + + async def delete_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInstanceEventWindowOutput: return await self._invoke( - input, _models.DELETE_INSTANCE_EVENT_WINDOW, [], plugins + self._select_input(_models.DELETE_INSTANCE_EVENT_WINDOW, args, kwargs), + _models.DELETE_INSTANCE_EVENT_WINDOW, + [], + plugins, ) + @_overload + async def delete_internet_gateway( + self, + request: _models.DeleteInternetGatewayInput + | _models.DeleteInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInternetGatewayOutput: ... + + @_overload async def delete_internet_gateway( - self, input: DeleteInternetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInternetGatewayInputDict], ) -> DeleteInternetGatewayOutput: """ Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it. Args: - input: - An instance of `DeleteInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7769,10 +10874,33 @@ async def delete_internet_gateway( Returns: An instance of `DeleteInternetGatewayOutput`. """ - return await self._invoke(input, _models.DELETE_INTERNET_GATEWAY, [], plugins) + async def delete_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInternetGatewayOutput: + return await self._invoke( + self._select_input(_models.DELETE_INTERNET_GATEWAY, args, kwargs), + _models.DELETE_INTERNET_GATEWAY, + [], + plugins, + ) + + @_overload + async def delete_ipam( + self, + request: _models.DeleteIpamInput | _models.DeleteIpamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamOutput: ... + + @_overload async def delete_ipam( - self, input: DeleteIpamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamInputDict], ) -> DeleteIpamOutput: """ Delete an IPAM. Deleting an IPAM removes all monitored data associated @@ -7783,8 +10911,6 @@ async def delete_ipam( the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeleteIpamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7794,12 +10920,34 @@ async def delete_ipam( Returns: An instance of `DeleteIpamOutput`. """ - return await self._invoke(input, _models.DELETE_IPAM, [], plugins) + async def delete_ipam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamOutput: + return await self._invoke( + self._select_input(_models.DELETE_IPAM, args, kwargs), + _models.DELETE_IPAM, + [], + plugins, + ) + + @_overload async def delete_ipam_external_resource_verification_token( self, - input: DeleteIpamExternalResourceVerificationTokenInput, + request: _models.DeleteIpamExternalResourceVerificationTokenInput + | _models.DeleteIpamExternalResourceVerificationTokenInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteIpamExternalResourceVerificationTokenOutput: ... + + @_overload + async def delete_ipam_external_resource_verification_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamExternalResourceVerificationTokenInputDict], ) -> DeleteIpamExternalResourceVerificationTokenOutput: """ Delete a verification token. @@ -7811,8 +10959,6 @@ async def delete_ipam_external_resource_verification_token( Services (BYOIP). Args: - input: - An instance of `DeleteIpamExternalResourceVerificationTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7822,14 +10968,36 @@ async def delete_ipam_external_resource_verification_token( Returns: An instance of `DeleteIpamExternalResourceVerificationTokenOutput`. """ + + async def delete_ipam_external_resource_verification_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamExternalResourceVerificationTokenOutput: return await self._invoke( - input, _models.DELETE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, [], plugins + self._select_input( + _models.DELETE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, args, kwargs + ), + _models.DELETE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, + [], + plugins, ) + @_overload + async def delete_ipam_internet_registry_association( + self, + request: _models.DeleteIpamInternetRegistryAssociationInput + | _models.DeleteIpamInternetRegistryAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamInternetRegistryAssociationOutput: ... + + @_overload async def delete_ipam_internet_registry_association( self, - input: DeleteIpamInternetRegistryAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamInternetRegistryAssociationInputDict], ) -> DeleteIpamInternetRegistryAssociationOutput: """ Deletes an IPAM internet registry association. Before deleting, you must @@ -7837,8 +11005,6 @@ async def delete_ipam_internet_registry_association( registry. Args: - input: - An instance of `DeleteIpamInternetRegistryAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7848,12 +11014,35 @@ async def delete_ipam_internet_registry_association( Returns: An instance of `DeleteIpamInternetRegistryAssociationOutput`. """ + + async def delete_ipam_internet_registry_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamInternetRegistryAssociationOutput: return await self._invoke( - input, _models.DELETE_IPAM_INTERNET_REGISTRY_ASSOCIATION, [], plugins + self._select_input( + _models.DELETE_IPAM_INTERNET_REGISTRY_ASSOCIATION, args, kwargs + ), + _models.DELETE_IPAM_INTERNET_REGISTRY_ASSOCIATION, + [], + plugins, ) + @_overload + async def delete_ipam_policy( + self, + request: _models.DeleteIpamPolicyInput | _models.DeleteIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamPolicyOutput: ... + + @_overload async def delete_ipam_policy( - self, input: DeleteIpamPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamPolicyInputDict], ) -> DeleteIpamPolicyOutput: """ Deletes an IPAM policy. @@ -7868,8 +11057,6 @@ async def delete_ipam_policy( account or an entity within Amazon Web Services Organizations. Args: - input: - An instance of `DeleteIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7879,10 +11066,33 @@ async def delete_ipam_policy( Returns: An instance of `DeleteIpamPolicyOutput`. """ - return await self._invoke(input, _models.DELETE_IPAM_POLICY, [], plugins) + async def delete_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamPolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_IPAM_POLICY, args, kwargs), + _models.DELETE_IPAM_POLICY, + [], + plugins, + ) + + @_overload + async def delete_ipam_pool( + self, + request: _models.DeleteIpamPoolInput | _models.DeleteIpamPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamPoolOutput: ... + + @_overload async def delete_ipam_pool( - self, input: DeleteIpamPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamPoolInputDict], ) -> DeleteIpamPoolOutput: """ Delete an IPAM pool. @@ -7899,8 +11109,6 @@ async def delete_ipam_pool( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeleteIpamPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7910,20 +11118,40 @@ async def delete_ipam_pool( Returns: An instance of `DeleteIpamPoolOutput`. """ - return await self._invoke(input, _models.DELETE_IPAM_POOL, [], plugins) + async def delete_ipam_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamPoolOutput: + return await self._invoke( + self._select_input(_models.DELETE_IPAM_POOL, args, kwargs), + _models.DELETE_IPAM_POOL, + [], + plugins, + ) + + @_overload + async def delete_ipam_prefix_list_resolver( + self, + request: _models.DeleteIpamPrefixListResolverInput + | _models.DeleteIpamPrefixListResolverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamPrefixListResolverOutput: ... + + @_overload async def delete_ipam_prefix_list_resolver( self, - input: DeleteIpamPrefixListResolverInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamPrefixListResolverInputDict], ) -> DeleteIpamPrefixListResolverOutput: """ Deletes an IPAM prefix list resolver. Before deleting a resolver, you must first delete all resolver targets associated with it. Args: - input: - An instance of `DeleteIpamPrefixListResolverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7933,14 +11161,34 @@ async def delete_ipam_prefix_list_resolver( Returns: An instance of `DeleteIpamPrefixListResolverOutput`. """ + + async def delete_ipam_prefix_list_resolver( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamPrefixListResolverOutput: return await self._invoke( - input, _models.DELETE_IPAM_PREFIX_LIST_RESOLVER, [], plugins + self._select_input(_models.DELETE_IPAM_PREFIX_LIST_RESOLVER, args, kwargs), + _models.DELETE_IPAM_PREFIX_LIST_RESOLVER, + [], + plugins, ) + @_overload + async def delete_ipam_prefix_list_resolver_target( + self, + request: _models.DeleteIpamPrefixListResolverTargetInput + | _models.DeleteIpamPrefixListResolverTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamPrefixListResolverTargetOutput: ... + + @_overload async def delete_ipam_prefix_list_resolver_target( self, - input: DeleteIpamPrefixListResolverTargetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamPrefixListResolverTargetInputDict], ) -> DeleteIpamPrefixListResolverTargetOutput: """ Deletes an IPAM prefix list resolver target. This removes the @@ -7953,8 +11201,6 @@ async def delete_ipam_prefix_list_resolver_target( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeleteIpamPrefixListResolverTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7964,14 +11210,36 @@ async def delete_ipam_prefix_list_resolver_target( Returns: An instance of `DeleteIpamPrefixListResolverTargetOutput`. """ + + async def delete_ipam_prefix_list_resolver_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamPrefixListResolverTargetOutput: return await self._invoke( - input, _models.DELETE_IPAM_PREFIX_LIST_RESOLVER_TARGET, [], plugins + self._select_input( + _models.DELETE_IPAM_PREFIX_LIST_RESOLVER_TARGET, args, kwargs + ), + _models.DELETE_IPAM_PREFIX_LIST_RESOLVER_TARGET, + [], + plugins, ) + @_overload + async def delete_ipam_resource_discovery( + self, + request: _models.DeleteIpamResourceDiscoveryInput + | _models.DeleteIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamResourceDiscoveryOutput: ... + + @_overload async def delete_ipam_resource_discovery( self, - input: DeleteIpamResourceDiscoveryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamResourceDiscoveryInputDict], ) -> DeleteIpamResourceDiscoveryOutput: """ Deletes an IPAM resource discovery. A resource discovery is an IPAM @@ -7979,8 +11247,6 @@ async def delete_ipam_resource_discovery( to the owning account. Args: - input: - An instance of `DeleteIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7990,21 +11256,39 @@ async def delete_ipam_resource_discovery( Returns: An instance of `DeleteIpamResourceDiscoveryOutput`. """ + + async def delete_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamResourceDiscoveryOutput: return await self._invoke( - input, _models.DELETE_IPAM_RESOURCE_DISCOVERY, [], plugins + self._select_input(_models.DELETE_IPAM_RESOURCE_DISCOVERY, args, kwargs), + _models.DELETE_IPAM_RESOURCE_DISCOVERY, + [], + plugins, ) + @_overload + async def delete_ipam_routing_policy_registration( + self, + request: _models.DeleteIpamRoutingPolicyRegistrationInput + | _models.DeleteIpamRoutingPolicyRegistrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamRoutingPolicyRegistrationOutput: ... + + @_overload async def delete_ipam_routing_policy_registration( self, - input: DeleteIpamRoutingPolicyRegistrationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamRoutingPolicyRegistrationInputDict], ) -> DeleteIpamRoutingPolicyRegistrationOutput: """ Deletes a routing policy registration for a specified CIDR prefix. Args: - input: - An instance of `DeleteIpamRoutingPolicyRegistrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8014,12 +11298,35 @@ async def delete_ipam_routing_policy_registration( Returns: An instance of `DeleteIpamRoutingPolicyRegistrationOutput`. """ + + async def delete_ipam_routing_policy_registration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamRoutingPolicyRegistrationOutput: return await self._invoke( - input, _models.DELETE_IPAM_ROUTING_POLICY_REGISTRATION, [], plugins + self._select_input( + _models.DELETE_IPAM_ROUTING_POLICY_REGISTRATION, args, kwargs + ), + _models.DELETE_IPAM_ROUTING_POLICY_REGISTRATION, + [], + plugins, ) + @_overload async def delete_ipam_scope( - self, input: DeleteIpamScopeInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteIpamScopeInput | _models.DeleteIpamScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamScopeOutput: ... + + @_overload + async def delete_ipam_scope( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamScopeInputDict], ) -> DeleteIpamScopeOutput: """ Delete the scope for an IPAM. You cannot delete the default scopes. @@ -8029,8 +11336,6 @@ async def delete_ipam_scope( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeleteIpamScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8040,18 +11345,39 @@ async def delete_ipam_scope( Returns: An instance of `DeleteIpamScopeOutput`. """ - return await self._invoke(input, _models.DELETE_IPAM_SCOPE, [], plugins) + async def delete_ipam_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamScopeOutput: + return await self._invoke( + self._select_input(_models.DELETE_IPAM_SCOPE, args, kwargs), + _models.DELETE_IPAM_SCOPE, + [], + plugins, + ) + + @_overload + async def delete_key_pair( + self, + request: _models.DeleteKeyPairInput | _models.DeleteKeyPairInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKeyPairOutput: ... + + @_overload async def delete_key_pair( - self, input: DeleteKeyPairInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKeyPairInputDict], ) -> DeleteKeyPairOutput: """ Deletes the specified key pair, by removing the public key from Amazon EC2. Args: - input: - An instance of `DeleteKeyPairInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8061,18 +11387,40 @@ async def delete_key_pair( Returns: An instance of `DeleteKeyPairOutput`. """ - return await self._invoke(input, _models.DELETE_KEY_PAIR, [], plugins) + async def delete_key_pair( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKeyPairOutput: + return await self._invoke( + self._select_input(_models.DELETE_KEY_PAIR, args, kwargs), + _models.DELETE_KEY_PAIR, + [], + plugins, + ) + + @_overload + async def delete_launch_template( + self, + request: _models.DeleteLaunchTemplateInput + | _models.DeleteLaunchTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLaunchTemplateOutput: ... + + @_overload async def delete_launch_template( - self, input: DeleteLaunchTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLaunchTemplateInputDict], ) -> DeleteLaunchTemplateOutput: """ Deletes a launch template. Deleting a launch template deletes all of its versions. Args: - input: - An instance of `DeleteLaunchTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8082,12 +11430,34 @@ async def delete_launch_template( Returns: An instance of `DeleteLaunchTemplateOutput`. """ - return await self._invoke(input, _models.DELETE_LAUNCH_TEMPLATE, [], plugins) + async def delete_launch_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLaunchTemplateOutput: + return await self._invoke( + self._select_input(_models.DELETE_LAUNCH_TEMPLATE, args, kwargs), + _models.DELETE_LAUNCH_TEMPLATE, + [], + plugins, + ) + + @_overload + async def delete_launch_template_versions( + self, + request: _models.DeleteLaunchTemplateVersionsInput + | _models.DeleteLaunchTemplateVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLaunchTemplateVersionsOutput: ... + + @_overload async def delete_launch_template_versions( self, - input: DeleteLaunchTemplateVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLaunchTemplateVersionsInputDict], ) -> DeleteLaunchTemplateVersionsOutput: """ Deletes one or more versions of a launch template. @@ -8107,8 +11477,6 @@ async def delete_launch_template_versions( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeleteLaunchTemplateVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8118,20 +11486,40 @@ async def delete_launch_template_versions( Returns: An instance of `DeleteLaunchTemplateVersionsOutput`. """ + + async def delete_launch_template_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLaunchTemplateVersionsOutput: return await self._invoke( - input, _models.DELETE_LAUNCH_TEMPLATE_VERSIONS, [], plugins + self._select_input(_models.DELETE_LAUNCH_TEMPLATE_VERSIONS, args, kwargs), + _models.DELETE_LAUNCH_TEMPLATE_VERSIONS, + [], + plugins, ) + @_overload async def delete_local_gateway_route( - self, input: DeleteLocalGatewayRouteInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteLocalGatewayRouteInput + | _models.DeleteLocalGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayRouteOutput: ... + + @_overload + async def delete_local_gateway_route( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayRouteInputDict], ) -> DeleteLocalGatewayRouteOutput: """ Deletes the specified route from the specified local gateway route table. Args: - input: - An instance of `DeleteLocalGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8141,21 +11529,39 @@ async def delete_local_gateway_route( Returns: An instance of `DeleteLocalGatewayRouteOutput`. """ + + async def delete_local_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayRouteOutput: return await self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_ROUTE, [], plugins + self._select_input(_models.DELETE_LOCAL_GATEWAY_ROUTE, args, kwargs), + _models.DELETE_LOCAL_GATEWAY_ROUTE, + [], + plugins, ) + @_overload + async def delete_local_gateway_route_table( + self, + request: _models.DeleteLocalGatewayRouteTableInput + | _models.DeleteLocalGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayRouteTableOutput: ... + + @_overload async def delete_local_gateway_route_table( self, - input: DeleteLocalGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayRouteTableInputDict], ) -> DeleteLocalGatewayRouteTableOutput: """ Deletes a local gateway route table. Args: - input: - An instance of `DeleteLocalGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8165,21 +11571,41 @@ async def delete_local_gateway_route_table( Returns: An instance of `DeleteLocalGatewayRouteTableOutput`. """ + + async def delete_local_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayRouteTableOutput: return await self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input(_models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE, args, kwargs), + _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + async def delete_local_gateway_route_table_virtual_interface_group_association( + self, + request: _models.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput + | _models.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: ... + + @_overload async def delete_local_gateway_route_table_virtual_interface_group_association( self, - input: DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict + ], ) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: """ Deletes a local gateway route table virtual interface group association. Args: - input: - An instance of `DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8189,25 +11615,44 @@ async def delete_local_gateway_route_table_virtual_interface_group_association( Returns: An instance of `DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput`. """ + + async def delete_local_gateway_route_table_virtual_interface_group_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: return await self._invoke( - input, + self._select_input( + _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION, + args, + kwargs, + ), _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION, [], plugins, ) + @_overload + async def delete_local_gateway_route_table_vpc_association( + self, + request: _models.DeleteLocalGatewayRouteTableVpcAssociationInput + | _models.DeleteLocalGatewayRouteTableVpcAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayRouteTableVpcAssociationOutput: ... + + @_overload async def delete_local_gateway_route_table_vpc_association( self, - input: DeleteLocalGatewayRouteTableVpcAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayRouteTableVpcAssociationInputDict], ) -> DeleteLocalGatewayRouteTableVpcAssociationOutput: """ Deletes the specified association between a VPC and local gateway route table. Args: - input: - An instance of `DeleteLocalGatewayRouteTableVpcAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8217,21 +11662,41 @@ async def delete_local_gateway_route_table_vpc_association( Returns: An instance of `DeleteLocalGatewayRouteTableVpcAssociationOutput`. """ + + async def delete_local_gateway_route_table_vpc_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayRouteTableVpcAssociationOutput: return await self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, [], plugins + self._select_input( + _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, args, kwargs + ), + _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, + [], + plugins, ) + @_overload async def delete_local_gateway_virtual_interface( self, - input: DeleteLocalGatewayVirtualInterfaceInput, + request: _models.DeleteLocalGatewayVirtualInterfaceInput + | _models.DeleteLocalGatewayVirtualInterfaceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayVirtualInterfaceOutput: ... + + @_overload + async def delete_local_gateway_virtual_interface( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayVirtualInterfaceInputDict], ) -> DeleteLocalGatewayVirtualInterfaceOutput: """ Deletes the specified local gateway virtual interface. Args: - input: - An instance of `DeleteLocalGatewayVirtualInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8241,21 +11706,41 @@ async def delete_local_gateway_virtual_interface( Returns: An instance of `DeleteLocalGatewayVirtualInterfaceOutput`. """ + + async def delete_local_gateway_virtual_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayVirtualInterfaceOutput: return await self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, [], plugins + self._select_input( + _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, args, kwargs + ), + _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, + [], + plugins, ) + @_overload + async def delete_local_gateway_virtual_interface_group( + self, + request: _models.DeleteLocalGatewayVirtualInterfaceGroupInput + | _models.DeleteLocalGatewayVirtualInterfaceGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayVirtualInterfaceGroupOutput: ... + + @_overload async def delete_local_gateway_virtual_interface_group( self, - input: DeleteLocalGatewayVirtualInterfaceGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayVirtualInterfaceGroupInputDict], ) -> DeleteLocalGatewayVirtualInterfaceGroupOutput: """ Delete the specified local gateway interface group. Args: - input: - An instance of `DeleteLocalGatewayVirtualInterfaceGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8265,20 +11750,42 @@ async def delete_local_gateway_virtual_interface_group( Returns: An instance of `DeleteLocalGatewayVirtualInterfaceGroupOutput`. """ + + async def delete_local_gateway_virtual_interface_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayVirtualInterfaceGroupOutput: return await self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, [], plugins + self._select_input( + _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, args, kwargs + ), + _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, + [], + plugins, ) + @_overload async def delete_managed_prefix_list( - self, input: DeleteManagedPrefixListInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteManagedPrefixListInput + | _models.DeleteManagedPrefixListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteManagedPrefixListOutput: ... + + @_overload + async def delete_managed_prefix_list( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteManagedPrefixListInputDict], ) -> DeleteManagedPrefixListOutput: """ Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources. Args: - input: - An instance of `DeleteManagedPrefixListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8288,12 +11795,33 @@ async def delete_managed_prefix_list( Returns: An instance of `DeleteManagedPrefixListOutput`. """ + + async def delete_managed_prefix_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteManagedPrefixListOutput: return await self._invoke( - input, _models.DELETE_MANAGED_PREFIX_LIST, [], plugins + self._select_input(_models.DELETE_MANAGED_PREFIX_LIST, args, kwargs), + _models.DELETE_MANAGED_PREFIX_LIST, + [], + plugins, ) + @_overload + async def delete_nat_gateway( + self, + request: _models.DeleteNatGatewayInput | _models.DeleteNatGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNatGatewayOutput: ... + + @_overload async def delete_nat_gateway( - self, input: DeleteNatGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNatGatewayInputDict], ) -> DeleteNatGatewayOutput: """ Deletes the specified NAT gateway. Deleting a public NAT gateway @@ -8302,8 +11830,6 @@ async def delete_nat_gateway( gateway routes in your route tables. Args: - input: - An instance of `DeleteNatGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8313,18 +11839,39 @@ async def delete_nat_gateway( Returns: An instance of `DeleteNatGatewayOutput`. """ - return await self._invoke(input, _models.DELETE_NAT_GATEWAY, [], plugins) + async def delete_nat_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNatGatewayOutput: + return await self._invoke( + self._select_input(_models.DELETE_NAT_GATEWAY, args, kwargs), + _models.DELETE_NAT_GATEWAY, + [], + plugins, + ) + + @_overload async def delete_network_acl( - self, input: DeleteNetworkAclInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteNetworkAclInput | _models.DeleteNetworkAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkAclOutput: ... + + @_overload + async def delete_network_acl( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkAclInputDict], ) -> DeleteNetworkAclOutput: """ Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL. Args: - input: - An instance of `DeleteNetworkAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8334,18 +11881,40 @@ async def delete_network_acl( Returns: An instance of `DeleteNetworkAclOutput`. """ - return await self._invoke(input, _models.DELETE_NETWORK_ACL, [], plugins) + async def delete_network_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkAclOutput: + return await self._invoke( + self._select_input(_models.DELETE_NETWORK_ACL, args, kwargs), + _models.DELETE_NETWORK_ACL, + [], + plugins, + ) + + @_overload + async def delete_network_acl_entry( + self, + request: _models.DeleteNetworkAclEntryInput + | _models.DeleteNetworkAclEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkAclEntryOutput: ... + + @_overload async def delete_network_acl_entry( - self, input: DeleteNetworkAclEntryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkAclEntryInputDict], ) -> DeleteNetworkAclEntryOutput: """ Deletes the specified ingress or egress entry (rule) from the specified network ACL. Args: - input: - An instance of `DeleteNetworkAclEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8355,19 +11924,39 @@ async def delete_network_acl_entry( Returns: An instance of `DeleteNetworkAclEntryOutput`. """ - return await self._invoke(input, _models.DELETE_NETWORK_ACL_ENTRY, [], plugins) + async def delete_network_acl_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkAclEntryOutput: + return await self._invoke( + self._select_input(_models.DELETE_NETWORK_ACL_ENTRY, args, kwargs), + _models.DELETE_NETWORK_ACL_ENTRY, + [], + plugins, + ) + + @_overload + async def delete_network_insights_access_scope( + self, + request: _models.DeleteNetworkInsightsAccessScopeInput + | _models.DeleteNetworkInsightsAccessScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInsightsAccessScopeOutput: ... + + @_overload async def delete_network_insights_access_scope( self, - input: DeleteNetworkInsightsAccessScopeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInsightsAccessScopeInputDict], ) -> DeleteNetworkInsightsAccessScopeOutput: """ Deletes the specified Network Access Scope. Args: - input: - An instance of `DeleteNetworkInsightsAccessScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8377,21 +11966,41 @@ async def delete_network_insights_access_scope( Returns: An instance of `DeleteNetworkInsightsAccessScopeOutput`. """ + + async def delete_network_insights_access_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInsightsAccessScopeOutput: return await self._invoke( - input, _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE, [], plugins + self._select_input( + _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE, args, kwargs + ), + _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE, + [], + plugins, ) + @_overload + async def delete_network_insights_access_scope_analysis( + self, + request: _models.DeleteNetworkInsightsAccessScopeAnalysisInput + | _models.DeleteNetworkInsightsAccessScopeAnalysisInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInsightsAccessScopeAnalysisOutput: ... + + @_overload async def delete_network_insights_access_scope_analysis( self, - input: DeleteNetworkInsightsAccessScopeAnalysisInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInsightsAccessScopeAnalysisInputDict], ) -> DeleteNetworkInsightsAccessScopeAnalysisOutput: """ Deletes the specified Network Access Scope analysis. Args: - input: - An instance of `DeleteNetworkInsightsAccessScopeAnalysisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8401,21 +12010,41 @@ async def delete_network_insights_access_scope_analysis( Returns: An instance of `DeleteNetworkInsightsAccessScopeAnalysisOutput`. """ + + async def delete_network_insights_access_scope_analysis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInsightsAccessScopeAnalysisOutput: return await self._invoke( - input, _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, [], plugins + self._select_input( + _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, args, kwargs + ), + _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, + [], + plugins, ) + @_overload + async def delete_network_insights_analysis( + self, + request: _models.DeleteNetworkInsightsAnalysisInput + | _models.DeleteNetworkInsightsAnalysisInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInsightsAnalysisOutput: ... + + @_overload async def delete_network_insights_analysis( self, - input: DeleteNetworkInsightsAnalysisInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInsightsAnalysisInputDict], ) -> DeleteNetworkInsightsAnalysisOutput: """ Deletes the specified network insights analysis. Args: - input: - An instance of `DeleteNetworkInsightsAnalysisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8425,19 +12054,39 @@ async def delete_network_insights_analysis( Returns: An instance of `DeleteNetworkInsightsAnalysisOutput`. """ + + async def delete_network_insights_analysis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInsightsAnalysisOutput: return await self._invoke( - input, _models.DELETE_NETWORK_INSIGHTS_ANALYSIS, [], plugins + self._select_input(_models.DELETE_NETWORK_INSIGHTS_ANALYSIS, args, kwargs), + _models.DELETE_NETWORK_INSIGHTS_ANALYSIS, + [], + plugins, ) + @_overload + async def delete_network_insights_path( + self, + request: _models.DeleteNetworkInsightsPathInput + | _models.DeleteNetworkInsightsPathInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInsightsPathOutput: ... + + @_overload async def delete_network_insights_path( - self, input: DeleteNetworkInsightsPathInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInsightsPathInputDict], ) -> DeleteNetworkInsightsPathOutput: """ Deletes the specified path. Args: - input: - An instance of `DeleteNetworkInsightsPathInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8447,20 +12096,40 @@ async def delete_network_insights_path( Returns: An instance of `DeleteNetworkInsightsPathOutput`. """ + + async def delete_network_insights_path( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInsightsPathOutput: return await self._invoke( - input, _models.DELETE_NETWORK_INSIGHTS_PATH, [], plugins + self._select_input(_models.DELETE_NETWORK_INSIGHTS_PATH, args, kwargs), + _models.DELETE_NETWORK_INSIGHTS_PATH, + [], + plugins, ) + @_overload async def delete_network_interface( - self, input: DeleteNetworkInterfaceInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteNetworkInterfaceInput + | _models.DeleteNetworkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInterfaceOutput: ... + + @_overload + async def delete_network_interface( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInterfaceInputDict], ) -> DeleteNetworkInterfaceOutput: """ Deletes the specified network interface. You must detach the network interface before you can delete it. Args: - input: - An instance of `DeleteNetworkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8470,12 +12139,34 @@ async def delete_network_interface( Returns: An instance of `DeleteNetworkInterfaceOutput`. """ - return await self._invoke(input, _models.DELETE_NETWORK_INTERFACE, [], plugins) + async def delete_network_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInterfaceOutput: + return await self._invoke( + self._select_input(_models.DELETE_NETWORK_INTERFACE, args, kwargs), + _models.DELETE_NETWORK_INTERFACE, + [], + plugins, + ) + + @_overload async def delete_network_interface_permission( self, - input: DeleteNetworkInterfacePermissionInput, + request: _models.DeleteNetworkInterfacePermissionInput + | _models.DeleteNetworkInterfacePermissionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInterfacePermissionOutput: ... + + @_overload + async def delete_network_interface_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInterfacePermissionInputDict], ) -> DeleteNetworkInterfacePermissionOutput: """ Deletes a permission for a network interface. By default, you cannot @@ -8484,8 +12175,6 @@ async def delete_network_interface_permission( you can force delete the permission, regardless of any attachment. Args: - input: - An instance of `DeleteNetworkInterfacePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8495,12 +12184,36 @@ async def delete_network_interface_permission( Returns: An instance of `DeleteNetworkInterfacePermissionOutput`. """ + + async def delete_network_interface_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInterfacePermissionOutput: return await self._invoke( - input, _models.DELETE_NETWORK_INTERFACE_PERMISSION, [], plugins + self._select_input( + _models.DELETE_NETWORK_INTERFACE_PERMISSION, args, kwargs + ), + _models.DELETE_NETWORK_INTERFACE_PERMISSION, + [], + plugins, ) + @_overload + async def delete_placement_group( + self, + request: _models.DeletePlacementGroupInput + | _models.DeletePlacementGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePlacementGroupOutput: ... + + @_overload async def delete_placement_group( - self, input: DeletePlacementGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePlacementGroupInputDict], ) -> DeletePlacementGroupOutput: """ Deletes the specified placement group. You must terminate all instances @@ -8512,8 +12225,6 @@ async def delete_placement_group( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeletePlacementGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8523,10 +12234,34 @@ async def delete_placement_group( Returns: An instance of `DeletePlacementGroupOutput`. """ - return await self._invoke(input, _models.DELETE_PLACEMENT_GROUP, [], plugins) + async def delete_placement_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePlacementGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_PLACEMENT_GROUP, args, kwargs), + _models.DELETE_PLACEMENT_GROUP, + [], + plugins, + ) + + @_overload async def delete_public_ipv4_pool( - self, input: DeletePublicIpv4PoolInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePublicIpv4PoolInput + | _models.DeletePublicIpv4PoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePublicIpv4PoolOutput: ... + + @_overload + async def delete_public_ipv4_pool( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePublicIpv4PoolInputDict], ) -> DeletePublicIpv4PoolOutput: """ Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool @@ -8535,8 +12270,6 @@ async def delete_public_ipv4_pool( Services, however, use IPAM pools only. Args: - input: - An instance of `DeletePublicIpv4PoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8546,19 +12279,39 @@ async def delete_public_ipv4_pool( Returns: An instance of `DeletePublicIpv4PoolOutput`. """ - return await self._invoke(input, _models.DELETE_PUBLIC_IPV4_POOL, [], plugins) + async def delete_public_ipv4_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePublicIpv4PoolOutput: + return await self._invoke( + self._select_input(_models.DELETE_PUBLIC_IPV4_POOL, args, kwargs), + _models.DELETE_PUBLIC_IPV4_POOL, + [], + plugins, + ) + + @_overload + async def delete_queued_reserved_instances( + self, + request: _models.DeleteQueuedReservedInstancesInput + | _models.DeleteQueuedReservedInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteQueuedReservedInstancesOutput: ... + + @_overload async def delete_queued_reserved_instances( self, - input: DeleteQueuedReservedInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteQueuedReservedInstancesInputDict], ) -> DeleteQueuedReservedInstancesOutput: """ Deletes the queued purchases for the specified Reserved Instances. Args: - input: - An instance of `DeleteQueuedReservedInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8568,19 +12321,38 @@ async def delete_queued_reserved_instances( Returns: An instance of `DeleteQueuedReservedInstancesOutput`. """ + + async def delete_queued_reserved_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteQueuedReservedInstancesOutput: return await self._invoke( - input, _models.DELETE_QUEUED_RESERVED_INSTANCES, [], plugins + self._select_input(_models.DELETE_QUEUED_RESERVED_INSTANCES, args, kwargs), + _models.DELETE_QUEUED_RESERVED_INSTANCES, + [], + plugins, ) + @_overload + async def delete_route( + self, + request: _models.DeleteRouteInput | _models.DeleteRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteOutput: ... + + @_overload async def delete_route( - self, input: DeleteRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteInputDict], ) -> DeleteRouteOutput: """ Deletes the specified route from the specified route table. Args: - input: - An instance of `DeleteRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8590,10 +12362,33 @@ async def delete_route( Returns: An instance of `DeleteRouteOutput`. """ - return await self._invoke(input, _models.DELETE_ROUTE, [], plugins) + async def delete_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteOutput: + return await self._invoke( + self._select_input(_models.DELETE_ROUTE, args, kwargs), + _models.DELETE_ROUTE, + [], + plugins, + ) + + @_overload + async def delete_route_server( + self, + request: _models.DeleteRouteServerInput | _models.DeleteRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteServerOutput: ... + + @_overload async def delete_route_server( - self, input: DeleteRouteServerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteServerInputDict], ) -> DeleteRouteServerOutput: """ Deletes the specified route server. @@ -8624,8 +12419,6 @@ async def delete_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DeleteRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8635,10 +12428,34 @@ async def delete_route_server( Returns: An instance of `DeleteRouteServerOutput`. """ - return await self._invoke(input, _models.DELETE_ROUTE_SERVER, [], plugins) + async def delete_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteServerOutput: + return await self._invoke( + self._select_input(_models.DELETE_ROUTE_SERVER, args, kwargs), + _models.DELETE_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + async def delete_route_server_endpoint( + self, + request: _models.DeleteRouteServerEndpointInput + | _models.DeleteRouteServerEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteServerEndpointOutput: ... + + @_overload async def delete_route_server_endpoint( - self, input: DeleteRouteServerEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteServerEndpointInputDict], ) -> DeleteRouteServerEndpointOutput: """ Deletes the specified route server endpoint. @@ -8649,8 +12466,6 @@ async def delete_route_server_endpoint( connections between your route server and your BGP peers. Args: - input: - An instance of `DeleteRouteServerEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8660,12 +12475,34 @@ async def delete_route_server_endpoint( Returns: An instance of `DeleteRouteServerEndpointOutput`. """ + + async def delete_route_server_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteServerEndpointOutput: return await self._invoke( - input, _models.DELETE_ROUTE_SERVER_ENDPOINT, [], plugins + self._select_input(_models.DELETE_ROUTE_SERVER_ENDPOINT, args, kwargs), + _models.DELETE_ROUTE_SERVER_ENDPOINT, + [], + plugins, ) + @_overload + async def delete_route_server_peer( + self, + request: _models.DeleteRouteServerPeerInput + | _models.DeleteRouteServerPeerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteServerPeerOutput: ... + + @_overload async def delete_route_server_peer( - self, input: DeleteRouteServerPeerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteServerPeerInputDict], ) -> DeleteRouteServerPeerOutput: """ Deletes the specified BGP peer from a route server. @@ -8682,8 +12519,6 @@ async def delete_route_server_peer( - Can initiate BGP sessions Args: - input: - An instance of `DeleteRouteServerPeerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8693,10 +12528,33 @@ async def delete_route_server_peer( Returns: An instance of `DeleteRouteServerPeerOutput`. """ - return await self._invoke(input, _models.DELETE_ROUTE_SERVER_PEER, [], plugins) + async def delete_route_server_peer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteServerPeerOutput: + return await self._invoke( + self._select_input(_models.DELETE_ROUTE_SERVER_PEER, args, kwargs), + _models.DELETE_ROUTE_SERVER_PEER, + [], + plugins, + ) + + @_overload async def delete_route_table( - self, input: DeleteRouteTableInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRouteTableInput | _models.DeleteRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteTableOutput: ... + + @_overload + async def delete_route_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteTableInputDict], ) -> DeleteRouteTableOutput: """ Deletes the specified route table. You must disassociate the route table @@ -8704,8 +12562,6 @@ async def delete_route_table( route table. Args: - input: - An instance of `DeleteRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8715,18 +12571,40 @@ async def delete_route_table( Returns: An instance of `DeleteRouteTableOutput`. """ - return await self._invoke(input, _models.DELETE_ROUTE_TABLE, [], plugins) + async def delete_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteTableOutput: + return await self._invoke( + self._select_input(_models.DELETE_ROUTE_TABLE, args, kwargs), + _models.DELETE_ROUTE_TABLE, + [], + plugins, + ) + + @_overload + async def delete_secondary_network( + self, + request: _models.DeleteSecondaryNetworkInput + | _models.DeleteSecondaryNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSecondaryNetworkOutput: ... + + @_overload async def delete_secondary_network( - self, input: DeleteSecondaryNetworkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSecondaryNetworkInputDict], ) -> DeleteSecondaryNetworkOutput: """ Deletes a secondary network. You must delete all secondary subnets in the secondary network before you can delete the secondary network. Args: - input: - An instance of `DeleteSecondaryNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8736,18 +12614,40 @@ async def delete_secondary_network( Returns: An instance of `DeleteSecondaryNetworkOutput`. """ - return await self._invoke(input, _models.DELETE_SECONDARY_NETWORK, [], plugins) + async def delete_secondary_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSecondaryNetworkOutput: + return await self._invoke( + self._select_input(_models.DELETE_SECONDARY_NETWORK, args, kwargs), + _models.DELETE_SECONDARY_NETWORK, + [], + plugins, + ) + + @_overload + async def delete_secondary_subnet( + self, + request: _models.DeleteSecondarySubnetInput + | _models.DeleteSecondarySubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSecondarySubnetOutput: ... + + @_overload async def delete_secondary_subnet( - self, input: DeleteSecondarySubnetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSecondarySubnetInputDict], ) -> DeleteSecondarySubnetOutput: """ Deletes a secondary subnet. A secondary subnet must not contain any secondary interfaces prior to deletion. Args: - input: - An instance of `DeleteSecondarySubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8757,10 +12657,34 @@ async def delete_secondary_subnet( Returns: An instance of `DeleteSecondarySubnetOutput`. """ - return await self._invoke(input, _models.DELETE_SECONDARY_SUBNET, [], plugins) + async def delete_secondary_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSecondarySubnetOutput: + return await self._invoke( + self._select_input(_models.DELETE_SECONDARY_SUBNET, args, kwargs), + _models.DELETE_SECONDARY_SUBNET, + [], + plugins, + ) + + @_overload + async def delete_security_group( + self, + request: _models.DeleteSecurityGroupInput + | _models.DeleteSecurityGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSecurityGroupOutput: ... + + @_overload async def delete_security_group( - self, input: DeleteSecurityGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSecurityGroupInputDict], ) -> DeleteSecurityGroupOutput: """ Deletes a security group. @@ -8771,8 +12695,6 @@ async def delete_security_group( `DependencyViolation`. Args: - input: - An instance of `DeleteSecurityGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8782,10 +12704,33 @@ async def delete_security_group( Returns: An instance of `DeleteSecurityGroupOutput`. """ - return await self._invoke(input, _models.DELETE_SECURITY_GROUP, [], plugins) + async def delete_security_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSecurityGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_SECURITY_GROUP, args, kwargs), + _models.DELETE_SECURITY_GROUP, + [], + plugins, + ) + + @_overload + async def delete_snapshot( + self, + request: _models.DeleteSnapshotInput | _models.DeleteSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSnapshotOutput: ... + + @_overload async def delete_snapshot( - self, input: DeleteSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSnapshotInputDict], ) -> DeleteSnapshotOutput: """ Deletes the specified snapshot. @@ -8807,8 +12752,6 @@ async def delete_snapshot( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DeleteSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8818,19 +12761,39 @@ async def delete_snapshot( Returns: An instance of `DeleteSnapshotOutput`. """ - return await self._invoke(input, _models.DELETE_SNAPSHOT, [], plugins) + async def delete_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSnapshotOutput: + return await self._invoke( + self._select_input(_models.DELETE_SNAPSHOT, args, kwargs), + _models.DELETE_SNAPSHOT, + [], + plugins, + ) + + @_overload + async def delete_spot_datafeed_subscription( + self, + request: _models.DeleteSpotDatafeedSubscriptionInput + | _models.DeleteSpotDatafeedSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSpotDatafeedSubscriptionOutput: ... + + @_overload async def delete_spot_datafeed_subscription( self, - input: DeleteSpotDatafeedSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSpotDatafeedSubscriptionInputDict], ) -> DeleteSpotDatafeedSubscriptionOutput: """ Deletes the data feed for Spot Instances. Args: - input: - An instance of `DeleteSpotDatafeedSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8840,20 +12803,39 @@ async def delete_spot_datafeed_subscription( Returns: An instance of `DeleteSpotDatafeedSubscriptionOutput`. """ + + async def delete_spot_datafeed_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSpotDatafeedSubscriptionOutput: return await self._invoke( - input, _models.DELETE_SPOT_DATAFEED_SUBSCRIPTION, [], plugins + self._select_input(_models.DELETE_SPOT_DATAFEED_SUBSCRIPTION, args, kwargs), + _models.DELETE_SPOT_DATAFEED_SUBSCRIPTION, + [], + plugins, ) + @_overload async def delete_subnet( - self, input: DeleteSubnetInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSubnetInput | _models.DeleteSubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSubnetOutput: ... + + @_overload + async def delete_subnet( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSubnetInputDict], ) -> DeleteSubnetOutput: """ Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet. Args: - input: - An instance of `DeleteSubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8863,19 +12845,39 @@ async def delete_subnet( Returns: An instance of `DeleteSubnetOutput`. """ - return await self._invoke(input, _models.DELETE_SUBNET, [], plugins) + async def delete_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSubnetOutput: + return await self._invoke( + self._select_input(_models.DELETE_SUBNET, args, kwargs), + _models.DELETE_SUBNET, + [], + plugins, + ) + + @_overload + async def delete_subnet_cidr_reservation( + self, + request: _models.DeleteSubnetCidrReservationInput + | _models.DeleteSubnetCidrReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSubnetCidrReservationOutput: ... + + @_overload async def delete_subnet_cidr_reservation( self, - input: DeleteSubnetCidrReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSubnetCidrReservationInputDict], ) -> DeleteSubnetCidrReservationOutput: """ Deletes a subnet CIDR reservation. Args: - input: - An instance of `DeleteSubnetCidrReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8885,12 +12887,33 @@ async def delete_subnet_cidr_reservation( Returns: An instance of `DeleteSubnetCidrReservationOutput`. """ + + async def delete_subnet_cidr_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSubnetCidrReservationOutput: return await self._invoke( - input, _models.DELETE_SUBNET_CIDR_RESERVATION, [], plugins + self._select_input(_models.DELETE_SUBNET_CIDR_RESERVATION, args, kwargs), + _models.DELETE_SUBNET_CIDR_RESERVATION, + [], + plugins, ) + @_overload async def delete_tags( - self, input: DeleteTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteTagsInput | _models.DeleteTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTagsOutput: ... + + @_overload + async def delete_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTagsInputDict], ) -> DeleteTagsOutput: """ Deletes the specified set of tags from the specified set of resources. @@ -8901,8 +12924,6 @@ async def delete_tags( in the *Amazon Elastic Compute Cloud User Guide*. Args: - input: - An instance of `DeleteTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8912,10 +12933,34 @@ async def delete_tags( Returns: An instance of `DeleteTagsOutput`. """ - return await self._invoke(input, _models.DELETE_TAGS, [], plugins) + async def delete_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTagsOutput: + return await self._invoke( + self._select_input(_models.DELETE_TAGS, args, kwargs), + _models.DELETE_TAGS, + [], + plugins, + ) + + @_overload async def delete_traffic_mirror_filter( - self, input: DeleteTrafficMirrorFilterInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteTrafficMirrorFilterInput + | _models.DeleteTrafficMirrorFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrafficMirrorFilterOutput: ... + + @_overload + async def delete_traffic_mirror_filter( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrafficMirrorFilterInputDict], ) -> DeleteTrafficMirrorFilterOutput: """ Deletes the specified Traffic Mirror filter. @@ -8924,8 +12969,6 @@ async def delete_traffic_mirror_filter( Mirror session. Args: - input: - An instance of `DeleteTrafficMirrorFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8935,21 +12978,39 @@ async def delete_traffic_mirror_filter( Returns: An instance of `DeleteTrafficMirrorFilterOutput`. """ + + async def delete_traffic_mirror_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrafficMirrorFilterOutput: return await self._invoke( - input, _models.DELETE_TRAFFIC_MIRROR_FILTER, [], plugins + self._select_input(_models.DELETE_TRAFFIC_MIRROR_FILTER, args, kwargs), + _models.DELETE_TRAFFIC_MIRROR_FILTER, + [], + plugins, ) + @_overload + async def delete_traffic_mirror_filter_rule( + self, + request: _models.DeleteTrafficMirrorFilterRuleInput + | _models.DeleteTrafficMirrorFilterRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrafficMirrorFilterRuleOutput: ... + + @_overload async def delete_traffic_mirror_filter_rule( self, - input: DeleteTrafficMirrorFilterRuleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrafficMirrorFilterRuleInputDict], ) -> DeleteTrafficMirrorFilterRuleOutput: """ Deletes the specified Traffic Mirror rule. Args: - input: - An instance of `DeleteTrafficMirrorFilterRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8959,21 +13020,39 @@ async def delete_traffic_mirror_filter_rule( Returns: An instance of `DeleteTrafficMirrorFilterRuleOutput`. """ + + async def delete_traffic_mirror_filter_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrafficMirrorFilterRuleOutput: return await self._invoke( - input, _models.DELETE_TRAFFIC_MIRROR_FILTER_RULE, [], plugins + self._select_input(_models.DELETE_TRAFFIC_MIRROR_FILTER_RULE, args, kwargs), + _models.DELETE_TRAFFIC_MIRROR_FILTER_RULE, + [], + plugins, ) + @_overload + async def delete_traffic_mirror_session( + self, + request: _models.DeleteTrafficMirrorSessionInput + | _models.DeleteTrafficMirrorSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrafficMirrorSessionOutput: ... + + @_overload async def delete_traffic_mirror_session( self, - input: DeleteTrafficMirrorSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrafficMirrorSessionInputDict], ) -> DeleteTrafficMirrorSessionOutput: """ Deletes the specified Traffic Mirror session. Args: - input: - An instance of `DeleteTrafficMirrorSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8983,12 +13062,34 @@ async def delete_traffic_mirror_session( Returns: An instance of `DeleteTrafficMirrorSessionOutput`. """ + + async def delete_traffic_mirror_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrafficMirrorSessionOutput: return await self._invoke( - input, _models.DELETE_TRAFFIC_MIRROR_SESSION, [], plugins + self._select_input(_models.DELETE_TRAFFIC_MIRROR_SESSION, args, kwargs), + _models.DELETE_TRAFFIC_MIRROR_SESSION, + [], + plugins, ) + @_overload + async def delete_traffic_mirror_target( + self, + request: _models.DeleteTrafficMirrorTargetInput + | _models.DeleteTrafficMirrorTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrafficMirrorTargetOutput: ... + + @_overload async def delete_traffic_mirror_target( - self, input: DeleteTrafficMirrorTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrafficMirrorTargetInputDict], ) -> DeleteTrafficMirrorTargetOutput: """ Deletes the specified Traffic Mirror target. @@ -8997,8 +13098,6 @@ async def delete_traffic_mirror_target( Mirror session. Args: - input: - An instance of `DeleteTrafficMirrorTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9008,19 +13107,39 @@ async def delete_traffic_mirror_target( Returns: An instance of `DeleteTrafficMirrorTargetOutput`. """ + + async def delete_traffic_mirror_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrafficMirrorTargetOutput: return await self._invoke( - input, _models.DELETE_TRAFFIC_MIRROR_TARGET, [], plugins + self._select_input(_models.DELETE_TRAFFIC_MIRROR_TARGET, args, kwargs), + _models.DELETE_TRAFFIC_MIRROR_TARGET, + [], + plugins, ) + @_overload + async def delete_transit_gateway( + self, + request: _models.DeleteTransitGatewayInput + | _models.DeleteTransitGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayOutput: ... + + @_overload async def delete_transit_gateway( - self, input: DeleteTransitGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayInputDict], ) -> DeleteTransitGatewayOutput: """ Deletes the specified transit gateway. Args: - input: - An instance of `DeleteTransitGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9030,12 +13149,34 @@ async def delete_transit_gateway( Returns: An instance of `DeleteTransitGatewayOutput`. """ - return await self._invoke(input, _models.DELETE_TRANSIT_GATEWAY, [], plugins) + async def delete_transit_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayOutput: + return await self._invoke( + self._select_input(_models.DELETE_TRANSIT_GATEWAY, args, kwargs), + _models.DELETE_TRANSIT_GATEWAY, + [], + plugins, + ) + + @_overload + async def delete_transit_gateway_client_vpn_attachment( + self, + request: _models.DeleteTransitGatewayClientVpnAttachmentInput + | _models.DeleteTransitGatewayClientVpnAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayClientVpnAttachmentOutput: ... + + @_overload async def delete_transit_gateway_client_vpn_attachment( self, - input: DeleteTransitGatewayClientVpnAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayClientVpnAttachmentInputDict], ) -> DeleteTransitGatewayClientVpnAttachmentOutput: """ Deletes a Transit Gateway attachment for a Client VPN endpoint. The @@ -9043,8 +13184,6 @@ async def delete_transit_gateway_client_vpn_attachment( association between the Client VPN endpoint and the Transit Gateway. Args: - input: - An instance of `DeleteTransitGatewayClientVpnAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9054,22 +13193,42 @@ async def delete_transit_gateway_client_vpn_attachment( Returns: An instance of `DeleteTransitGatewayClientVpnAttachmentOutput`. """ + + async def delete_transit_gateway_client_vpn_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayClientVpnAttachmentOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, + [], + plugins, ) + @_overload + async def delete_transit_gateway_connect( + self, + request: _models.DeleteTransitGatewayConnectInput + | _models.DeleteTransitGatewayConnectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayConnectOutput: ... + + @_overload async def delete_transit_gateway_connect( self, - input: DeleteTransitGatewayConnectInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayConnectInputDict], ) -> DeleteTransitGatewayConnectOutput: """ Deletes the specified Connect attachment. You must first delete any Connect peers for the attachment. Args: - input: - An instance of `DeleteTransitGatewayConnectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9079,21 +13238,39 @@ async def delete_transit_gateway_connect( Returns: An instance of `DeleteTransitGatewayConnectOutput`. """ + + async def delete_transit_gateway_connect( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayConnectOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_CONNECT, [], plugins + self._select_input(_models.DELETE_TRANSIT_GATEWAY_CONNECT, args, kwargs), + _models.DELETE_TRANSIT_GATEWAY_CONNECT, + [], + plugins, ) + @_overload + async def delete_transit_gateway_connect_peer( + self, + request: _models.DeleteTransitGatewayConnectPeerInput + | _models.DeleteTransitGatewayConnectPeerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayConnectPeerOutput: ... + + @_overload async def delete_transit_gateway_connect_peer( self, - input: DeleteTransitGatewayConnectPeerInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayConnectPeerInputDict], ) -> DeleteTransitGatewayConnectPeerOutput: """ Deletes the specified Connect peer. Args: - input: - An instance of `DeleteTransitGatewayConnectPeerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9103,21 +13280,41 @@ async def delete_transit_gateway_connect_peer( Returns: An instance of `DeleteTransitGatewayConnectPeerOutput`. """ + + async def delete_transit_gateway_connect_peer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayConnectPeerOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_CONNECT_PEER, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_CONNECT_PEER, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_CONNECT_PEER, + [], + plugins, ) + @_overload + async def delete_transit_gateway_metering_policy( + self, + request: _models.DeleteTransitGatewayMeteringPolicyInput + | _models.DeleteTransitGatewayMeteringPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayMeteringPolicyOutput: ... + + @_overload async def delete_transit_gateway_metering_policy( self, - input: DeleteTransitGatewayMeteringPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayMeteringPolicyInputDict], ) -> DeleteTransitGatewayMeteringPolicyOutput: """ Deletes a transit gateway metering policy. Args: - input: - An instance of `DeleteTransitGatewayMeteringPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9127,21 +13324,41 @@ async def delete_transit_gateway_metering_policy( Returns: An instance of `DeleteTransitGatewayMeteringPolicyOutput`. """ + + async def delete_transit_gateway_metering_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayMeteringPolicyOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY, + [], + plugins, ) + @_overload + async def delete_transit_gateway_metering_policy_entry( + self, + request: _models.DeleteTransitGatewayMeteringPolicyEntryInput + | _models.DeleteTransitGatewayMeteringPolicyEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayMeteringPolicyEntryOutput: ... + + @_overload async def delete_transit_gateway_metering_policy_entry( self, - input: DeleteTransitGatewayMeteringPolicyEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayMeteringPolicyEntryInputDict], ) -> DeleteTransitGatewayMeteringPolicyEntryOutput: """ Deletes an entry from a transit gateway metering policy. Args: - input: - An instance of `DeleteTransitGatewayMeteringPolicyEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9151,21 +13368,41 @@ async def delete_transit_gateway_metering_policy_entry( Returns: An instance of `DeleteTransitGatewayMeteringPolicyEntryOutput`. """ + + async def delete_transit_gateway_metering_policy_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayMeteringPolicyEntryOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, + [], + plugins, ) + @_overload + async def delete_transit_gateway_multicast_domain( + self, + request: _models.DeleteTransitGatewayMulticastDomainInput + | _models.DeleteTransitGatewayMulticastDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayMulticastDomainOutput: ... + + @_overload async def delete_transit_gateway_multicast_domain( self, - input: DeleteTransitGatewayMulticastDomainInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayMulticastDomainInputDict], ) -> DeleteTransitGatewayMulticastDomainOutput: """ Deletes the specified transit gateway multicast domain. Args: - input: - An instance of `DeleteTransitGatewayMulticastDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9175,21 +13412,41 @@ async def delete_transit_gateway_multicast_domain( Returns: An instance of `DeleteTransitGatewayMulticastDomainOutput`. """ + + async def delete_transit_gateway_multicast_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayMulticastDomainOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, + [], + plugins, ) + @_overload + async def delete_transit_gateway_peering_attachment( + self, + request: _models.DeleteTransitGatewayPeeringAttachmentInput + | _models.DeleteTransitGatewayPeeringAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayPeeringAttachmentOutput: ... + + @_overload async def delete_transit_gateway_peering_attachment( self, - input: DeleteTransitGatewayPeeringAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayPeeringAttachmentInputDict], ) -> DeleteTransitGatewayPeeringAttachmentOutput: """ Deletes a transit gateway peering attachment. Args: - input: - An instance of `DeleteTransitGatewayPeeringAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9199,21 +13456,41 @@ async def delete_transit_gateway_peering_attachment( Returns: An instance of `DeleteTransitGatewayPeeringAttachmentOutput`. """ + + async def delete_transit_gateway_peering_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayPeeringAttachmentOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, + [], + plugins, ) + @_overload + async def delete_transit_gateway_policy_table( + self, + request: _models.DeleteTransitGatewayPolicyTableInput + | _models.DeleteTransitGatewayPolicyTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayPolicyTableOutput: ... + + @_overload async def delete_transit_gateway_policy_table( self, - input: DeleteTransitGatewayPolicyTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayPolicyTableInputDict], ) -> DeleteTransitGatewayPolicyTableOutput: """ Deletes the specified transit gateway policy table. Args: - input: - An instance of `DeleteTransitGatewayPolicyTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9223,21 +13500,41 @@ async def delete_transit_gateway_policy_table( Returns: An instance of `DeleteTransitGatewayPolicyTableOutput`. """ + + async def delete_transit_gateway_policy_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayPolicyTableOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE, + [], + plugins, ) + @_overload async def delete_transit_gateway_policy_table_entry( self, - input: DeleteTransitGatewayPolicyTableEntryInput, + request: _models.DeleteTransitGatewayPolicyTableEntryInput + | _models.DeleteTransitGatewayPolicyTableEntryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayPolicyTableEntryOutput: ... + + @_overload + async def delete_transit_gateway_policy_table_entry( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayPolicyTableEntryInputDict], ) -> DeleteTransitGatewayPolicyTableEntryOutput: """ Deletes the specified transit gateway policy table entry. Args: - input: - An instance of `DeleteTransitGatewayPolicyTableEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9247,22 +13544,42 @@ async def delete_transit_gateway_policy_table_entry( Returns: An instance of `DeleteTransitGatewayPolicyTableEntryOutput`. """ + + async def delete_transit_gateway_policy_table_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayPolicyTableEntryOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, + [], + plugins, ) + @_overload + async def delete_transit_gateway_prefix_list_reference( + self, + request: _models.DeleteTransitGatewayPrefixListReferenceInput + | _models.DeleteTransitGatewayPrefixListReferenceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayPrefixListReferenceOutput: ... + + @_overload async def delete_transit_gateway_prefix_list_reference( self, - input: DeleteTransitGatewayPrefixListReferenceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayPrefixListReferenceInputDict], ) -> DeleteTransitGatewayPrefixListReferenceOutput: """ Deletes a reference (route) to a prefix list in a specified transit gateway route table. Args: - input: - An instance of `DeleteTransitGatewayPrefixListReferenceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9272,20 +13589,42 @@ async def delete_transit_gateway_prefix_list_reference( Returns: An instance of `DeleteTransitGatewayPrefixListReferenceOutput`. """ + + async def delete_transit_gateway_prefix_list_reference( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayPrefixListReferenceOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, + [], + plugins, ) + @_overload + async def delete_transit_gateway_route( + self, + request: _models.DeleteTransitGatewayRouteInput + | _models.DeleteTransitGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayRouteOutput: ... + + @_overload async def delete_transit_gateway_route( - self, input: DeleteTransitGatewayRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayRouteInputDict], ) -> DeleteTransitGatewayRouteOutput: """ Deletes the specified route from the specified transit gateway route table. Args: - input: - An instance of `DeleteTransitGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9295,14 +13634,34 @@ async def delete_transit_gateway_route( Returns: An instance of `DeleteTransitGatewayRouteOutput`. """ + + async def delete_transit_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayRouteOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_ROUTE, [], plugins + self._select_input(_models.DELETE_TRANSIT_GATEWAY_ROUTE, args, kwargs), + _models.DELETE_TRANSIT_GATEWAY_ROUTE, + [], + plugins, ) + @_overload + async def delete_transit_gateway_route_table( + self, + request: _models.DeleteTransitGatewayRouteTableInput + | _models.DeleteTransitGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayRouteTableOutput: ... + + @_overload async def delete_transit_gateway_route_table( self, - input: DeleteTransitGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayRouteTableInputDict], ) -> DeleteTransitGatewayRouteTableOutput: """ Deletes the specified transit gateway route table. Before you can delete @@ -9314,8 +13673,6 @@ async def delete_transit_gateway_route_table( use ModifyTransitGateway. Args: - input: - An instance of `DeleteTransitGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9325,22 +13682,42 @@ async def delete_transit_gateway_route_table( Returns: An instance of `DeleteTransitGatewayRouteTableOutput`. """ + + async def delete_transit_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayRouteTableOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + async def delete_transit_gateway_route_table_announcement( + self, + request: _models.DeleteTransitGatewayRouteTableAnnouncementInput + | _models.DeleteTransitGatewayRouteTableAnnouncementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayRouteTableAnnouncementOutput: ... + + @_overload async def delete_transit_gateway_route_table_announcement( self, - input: DeleteTransitGatewayRouteTableAnnouncementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayRouteTableAnnouncementInputDict], ) -> DeleteTransitGatewayRouteTableAnnouncementOutput: """ Advertises to the transit gateway that a transit gateway route table is deleted. Args: - input: - An instance of `DeleteTransitGatewayRouteTableAnnouncementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9350,21 +13727,41 @@ async def delete_transit_gateway_route_table_announcement( Returns: An instance of `DeleteTransitGatewayRouteTableAnnouncementOutput`. """ + + async def delete_transit_gateway_route_table_announcement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayRouteTableAnnouncementOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, + [], + plugins, ) + @_overload + async def delete_transit_gateway_vpc_attachment( + self, + request: _models.DeleteTransitGatewayVpcAttachmentInput + | _models.DeleteTransitGatewayVpcAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayVpcAttachmentOutput: ... + + @_overload async def delete_transit_gateway_vpc_attachment( self, - input: DeleteTransitGatewayVpcAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayVpcAttachmentInputDict], ) -> DeleteTransitGatewayVpcAttachmentOutput: """ Deletes the specified VPC attachment. Args: - input: - An instance of `DeleteTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9374,21 +13771,41 @@ async def delete_transit_gateway_vpc_attachment( Returns: An instance of `DeleteTransitGatewayVpcAttachmentOutput`. """ + + async def delete_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayVpcAttachmentOutput: return await self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload async def delete_verified_access_endpoint( self, - input: DeleteVerifiedAccessEndpointInput, + request: _models.DeleteVerifiedAccessEndpointInput + | _models.DeleteVerifiedAccessEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteVerifiedAccessEndpointOutput: ... + + @_overload + async def delete_verified_access_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVerifiedAccessEndpointInputDict], ) -> DeleteVerifiedAccessEndpointOutput: """ Delete an Amazon Web Services Verified Access endpoint. Args: - input: - An instance of `DeleteVerifiedAccessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9398,19 +13815,39 @@ async def delete_verified_access_endpoint( Returns: An instance of `DeleteVerifiedAccessEndpointOutput`. """ + + async def delete_verified_access_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVerifiedAccessEndpointOutput: return await self._invoke( - input, _models.DELETE_VERIFIED_ACCESS_ENDPOINT, [], plugins + self._select_input(_models.DELETE_VERIFIED_ACCESS_ENDPOINT, args, kwargs), + _models.DELETE_VERIFIED_ACCESS_ENDPOINT, + [], + plugins, ) + @_overload + async def delete_verified_access_group( + self, + request: _models.DeleteVerifiedAccessGroupInput + | _models.DeleteVerifiedAccessGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVerifiedAccessGroupOutput: ... + + @_overload async def delete_verified_access_group( - self, input: DeleteVerifiedAccessGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVerifiedAccessGroupInputDict], ) -> DeleteVerifiedAccessGroupOutput: """ Delete an Amazon Web Services Verified Access group. Args: - input: - An instance of `DeleteVerifiedAccessGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9420,21 +13857,39 @@ async def delete_verified_access_group( Returns: An instance of `DeleteVerifiedAccessGroupOutput`. """ + + async def delete_verified_access_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVerifiedAccessGroupOutput: return await self._invoke( - input, _models.DELETE_VERIFIED_ACCESS_GROUP, [], plugins + self._select_input(_models.DELETE_VERIFIED_ACCESS_GROUP, args, kwargs), + _models.DELETE_VERIFIED_ACCESS_GROUP, + [], + plugins, ) + @_overload + async def delete_verified_access_instance( + self, + request: _models.DeleteVerifiedAccessInstanceInput + | _models.DeleteVerifiedAccessInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVerifiedAccessInstanceOutput: ... + + @_overload async def delete_verified_access_instance( self, - input: DeleteVerifiedAccessInstanceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVerifiedAccessInstanceInputDict], ) -> DeleteVerifiedAccessInstanceOutput: """ Delete an Amazon Web Services Verified Access instance. Args: - input: - An instance of `DeleteVerifiedAccessInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9444,21 +13899,39 @@ async def delete_verified_access_instance( Returns: An instance of `DeleteVerifiedAccessInstanceOutput`. """ + + async def delete_verified_access_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVerifiedAccessInstanceOutput: return await self._invoke( - input, _models.DELETE_VERIFIED_ACCESS_INSTANCE, [], plugins + self._select_input(_models.DELETE_VERIFIED_ACCESS_INSTANCE, args, kwargs), + _models.DELETE_VERIFIED_ACCESS_INSTANCE, + [], + plugins, ) + @_overload + async def delete_verified_access_trust_provider( + self, + request: _models.DeleteVerifiedAccessTrustProviderInput + | _models.DeleteVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVerifiedAccessTrustProviderOutput: ... + + @_overload async def delete_verified_access_trust_provider( self, - input: DeleteVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVerifiedAccessTrustProviderInputDict], ) -> DeleteVerifiedAccessTrustProviderOutput: """ Delete an Amazon Web Services Verified Access trust provider. Args: - input: - An instance of `DeleteVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9468,12 +13941,35 @@ async def delete_verified_access_trust_provider( Returns: An instance of `DeleteVerifiedAccessTrustProviderOutput`. """ + + async def delete_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVerifiedAccessTrustProviderOutput: return await self._invoke( - input, _models.DELETE_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.DELETE_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.DELETE_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload + async def delete_volume( + self, + request: _models.DeleteVolumeInput | _models.DeleteVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVolumeOutput: ... + + @_overload async def delete_volume( - self, input: DeleteVolumeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVolumeInputDict], ) -> DeleteVolumeOutput: """ Deletes the specified EBS volume. The volume must be in the `available` @@ -9486,8 +13982,6 @@ async def delete_volume( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DeleteVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9497,10 +13991,33 @@ async def delete_volume( Returns: An instance of `DeleteVolumeOutput`. """ - return await self._invoke(input, _models.DELETE_VOLUME, [], plugins) + async def delete_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVolumeOutput: + return await self._invoke( + self._select_input(_models.DELETE_VOLUME, args, kwargs), + _models.DELETE_VOLUME, + [], + plugins, + ) + + @_overload + async def delete_vpc( + self, + request: _models.DeleteVpcInput | _models.DeleteVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcOutput: ... + + @_overload async def delete_vpc( - self, input: DeleteVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcInputDict], ) -> DeleteVpcOutput: """ Deletes the specified VPC. You must detach or delete all gateways and @@ -9515,8 +14032,6 @@ async def delete_vpc( flow logs for deleted VPCs are eventually automatically removed. Args: - input: - An instance of `DeleteVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9526,12 +14041,34 @@ async def delete_vpc( Returns: An instance of `DeleteVpcOutput`. """ - return await self._invoke(input, _models.DELETE_VPC, [], plugins) + async def delete_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcOutput: + return await self._invoke( + self._select_input(_models.DELETE_VPC, args, kwargs), + _models.DELETE_VPC, + [], + plugins, + ) + + @_overload async def delete_vpc_block_public_access_exclusion( self, - input: DeleteVpcBlockPublicAccessExclusionInput, + request: _models.DeleteVpcBlockPublicAccessExclusionInput + | _models.DeleteVpcBlockPublicAccessExclusionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteVpcBlockPublicAccessExclusionOutput: ... + + @_overload + async def delete_vpc_block_public_access_exclusion( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcBlockPublicAccessExclusionInputDict], ) -> DeleteVpcBlockPublicAccessExclusionOutput: """ Delete a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is @@ -9545,8 +14082,6 @@ async def delete_vpc_block_public_access_exclusion( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DeleteVpcBlockPublicAccessExclusionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9556,14 +14091,36 @@ async def delete_vpc_block_public_access_exclusion( Returns: An instance of `DeleteVpcBlockPublicAccessExclusionOutput`. """ + + async def delete_vpc_block_public_access_exclusion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcBlockPublicAccessExclusionOutput: return await self._invoke( - input, _models.DELETE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, [], plugins + self._select_input( + _models.DELETE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, args, kwargs + ), + _models.DELETE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, + [], + plugins, ) + @_overload + async def delete_vpc_encryption_control( + self, + request: _models.DeleteVpcEncryptionControlInput + | _models.DeleteVpcEncryptionControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcEncryptionControlOutput: ... + + @_overload async def delete_vpc_encryption_control( self, - input: DeleteVpcEncryptionControlInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcEncryptionControlInputDict], ) -> DeleteVpcEncryptionControlOutput: """ Deletes a VPC Encryption Control configuration. This removes the @@ -9574,8 +14131,6 @@ async def delete_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DeleteVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9585,21 +14140,39 @@ async def delete_vpc_encryption_control( Returns: An instance of `DeleteVpcEncryptionControlOutput`. """ + + async def delete_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcEncryptionControlOutput: return await self._invoke( - input, _models.DELETE_VPC_ENCRYPTION_CONTROL, [], plugins + self._select_input(_models.DELETE_VPC_ENCRYPTION_CONTROL, args, kwargs), + _models.DELETE_VPC_ENCRYPTION_CONTROL, + [], + plugins, ) + @_overload + async def delete_vpc_endpoint_connection_notifications( + self, + request: _models.DeleteVpcEndpointConnectionNotificationsInput + | _models.DeleteVpcEndpointConnectionNotificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcEndpointConnectionNotificationsOutput: ... + + @_overload async def delete_vpc_endpoint_connection_notifications( self, - input: DeleteVpcEndpointConnectionNotificationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcEndpointConnectionNotificationsInputDict], ) -> DeleteVpcEndpointConnectionNotificationsOutput: """ Deletes the specified VPC endpoint connection notifications. Args: - input: - An instance of `DeleteVpcEndpointConnectionNotificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9609,12 +14182,35 @@ async def delete_vpc_endpoint_connection_notifications( Returns: An instance of `DeleteVpcEndpointConnectionNotificationsOutput`. """ + + async def delete_vpc_endpoint_connection_notifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcEndpointConnectionNotificationsOutput: return await self._invoke( - input, _models.DELETE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, [], plugins + self._select_input( + _models.DELETE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, args, kwargs + ), + _models.DELETE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, + [], + plugins, ) + @_overload + async def delete_vpc_endpoints( + self, + request: _models.DeleteVpcEndpointsInput | _models.DeleteVpcEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcEndpointsOutput: ... + + @_overload async def delete_vpc_endpoints( - self, input: DeleteVpcEndpointsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcEndpointsInputDict], ) -> DeleteVpcEndpointsOutput: """ Deletes the specified VPC endpoints. @@ -9630,8 +14226,6 @@ async def delete_vpc_endpoints( interfaces. Args: - input: - An instance of `DeleteVpcEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9641,12 +14235,34 @@ async def delete_vpc_endpoints( Returns: An instance of `DeleteVpcEndpointsOutput`. """ - return await self._invoke(input, _models.DELETE_VPC_ENDPOINTS, [], plugins) + async def delete_vpc_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcEndpointsOutput: + return await self._invoke( + self._select_input(_models.DELETE_VPC_ENDPOINTS, args, kwargs), + _models.DELETE_VPC_ENDPOINTS, + [], + plugins, + ) + + @_overload async def delete_vpc_endpoint_service_configurations( self, - input: DeleteVpcEndpointServiceConfigurationsInput, + request: _models.DeleteVpcEndpointServiceConfigurationsInput + | _models.DeleteVpcEndpointServiceConfigurationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteVpcEndpointServiceConfigurationsOutput: ... + + @_overload + async def delete_vpc_endpoint_service_configurations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcEndpointServiceConfigurationsInputDict], ) -> DeleteVpcEndpointServiceConfigurationsOutput: """ Deletes the specified VPC endpoint service configurations. Before you @@ -9655,8 +14271,6 @@ async def delete_vpc_endpoint_service_configurations( are attached to the service. Args: - input: - An instance of `DeleteVpcEndpointServiceConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9666,14 +14280,36 @@ async def delete_vpc_endpoint_service_configurations( Returns: An instance of `DeleteVpcEndpointServiceConfigurationsOutput`. """ + + async def delete_vpc_endpoint_service_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcEndpointServiceConfigurationsOutput: return await self._invoke( - input, _models.DELETE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, [], plugins + self._select_input( + _models.DELETE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, args, kwargs + ), + _models.DELETE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, + [], + plugins, ) + @_overload + async def delete_vpc_peering_connection( + self, + request: _models.DeleteVpcPeeringConnectionInput + | _models.DeleteVpcPeeringConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcPeeringConnectionOutput: ... + + @_overload async def delete_vpc_peering_connection( self, - input: DeleteVpcPeeringConnectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcPeeringConnectionInputDict], ) -> DeleteVpcPeeringConnectionOutput: """ Deletes a VPC peering connection. Either the owner of the requester VPC @@ -9684,8 +14320,6 @@ async def delete_vpc_peering_connection( `rejected` state. Args: - input: - An instance of `DeleteVpcPeeringConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9695,19 +14329,39 @@ async def delete_vpc_peering_connection( Returns: An instance of `DeleteVpcPeeringConnectionOutput`. """ + + async def delete_vpc_peering_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcPeeringConnectionOutput: return await self._invoke( - input, _models.DELETE_VPC_PEERING_CONNECTION, [], plugins + self._select_input(_models.DELETE_VPC_PEERING_CONNECTION, args, kwargs), + _models.DELETE_VPC_PEERING_CONNECTION, + [], + plugins, ) + @_overload + async def delete_vpn_concentrator( + self, + request: _models.DeleteVpnConcentratorInput + | _models.DeleteVpnConcentratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpnConcentratorOutput: ... + + @_overload async def delete_vpn_concentrator( - self, input: DeleteVpnConcentratorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpnConcentratorInputDict], ) -> DeleteVpnConcentratorOutput: """ Deletes the specified VPN concentrator. Args: - input: - An instance of `DeleteVpnConcentratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9717,10 +14371,34 @@ async def delete_vpn_concentrator( Returns: An instance of `DeleteVpnConcentratorOutput`. """ - return await self._invoke(input, _models.DELETE_VPN_CONCENTRATOR, [], plugins) + async def delete_vpn_concentrator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpnConcentratorOutput: + return await self._invoke( + self._select_input(_models.DELETE_VPN_CONCENTRATOR, args, kwargs), + _models.DELETE_VPN_CONCENTRATOR, + [], + plugins, + ) + + @_overload + async def delete_vpn_connection( + self, + request: _models.DeleteVpnConnectionInput + | _models.DeleteVpnConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpnConnectionOutput: ... + + @_overload async def delete_vpn_connection( - self, input: DeleteVpnConnectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpnConnectionInputDict], ) -> DeleteVpnConnectionOutput: """ Deletes the specified VPN connection. @@ -9740,8 +14418,6 @@ async def delete_vpn_connection( endpoints for the VPN connection before deleting the VPN connection. Args: - input: - An instance of `DeleteVpnConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9751,10 +14427,34 @@ async def delete_vpn_connection( Returns: An instance of `DeleteVpnConnectionOutput`. """ - return await self._invoke(input, _models.DELETE_VPN_CONNECTION, [], plugins) + async def delete_vpn_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpnConnectionOutput: + return await self._invoke( + self._select_input(_models.DELETE_VPN_CONNECTION, args, kwargs), + _models.DELETE_VPN_CONNECTION, + [], + plugins, + ) + + @_overload + async def delete_vpn_connection_route( + self, + request: _models.DeleteVpnConnectionRouteInput + | _models.DeleteVpnConnectionRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpnConnectionRouteOutput: ... + + @_overload async def delete_vpn_connection_route( - self, input: DeleteVpnConnectionRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpnConnectionRouteInputDict], ) -> DeleteVpnConnectionRouteOutput: """ Deletes the specified static route associated with a VPN connection @@ -9763,8 +14463,6 @@ async def delete_vpn_connection_route( gateway to the VPN customer gateway. Args: - input: - An instance of `DeleteVpnConnectionRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9774,12 +14472,33 @@ async def delete_vpn_connection_route( Returns: An instance of `DeleteVpnConnectionRouteOutput`. """ + + async def delete_vpn_connection_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpnConnectionRouteOutput: return await self._invoke( - input, _models.DELETE_VPN_CONNECTION_ROUTE, [], plugins + self._select_input(_models.DELETE_VPN_CONNECTION_ROUTE, args, kwargs), + _models.DELETE_VPN_CONNECTION_ROUTE, + [], + plugins, ) + @_overload + async def delete_vpn_gateway( + self, + request: _models.DeleteVpnGatewayInput | _models.DeleteVpnGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpnGatewayOutput: ... + + @_overload async def delete_vpn_gateway( - self, input: DeleteVpnGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpnGatewayInputDict], ) -> DeleteVpnGatewayOutput: """ Deletes the specified virtual private gateway. You must first detach the @@ -9788,8 +14507,6 @@ async def delete_vpn_gateway( the VPN connection between your VPC and your network. Args: - input: - An instance of `DeleteVpnGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9799,10 +14516,34 @@ async def delete_vpn_gateway( Returns: An instance of `DeleteVpnGatewayOutput`. """ - return await self._invoke(input, _models.DELETE_VPN_GATEWAY, [], plugins) + async def delete_vpn_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpnGatewayOutput: + return await self._invoke( + self._select_input(_models.DELETE_VPN_GATEWAY, args, kwargs), + _models.DELETE_VPN_GATEWAY, + [], + plugins, + ) + + @_overload + async def deprovision_byoip_cidr( + self, + request: _models.DeprovisionByoipCidrInput + | _models.DeprovisionByoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeprovisionByoipCidrOutput: ... + + @_overload async def deprovision_byoip_cidr( - self, input: DeprovisionByoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeprovisionByoipCidrInputDict], ) -> DeprovisionByoipCidrOutput: """ Releases the specified address range that you provisioned for use with @@ -9813,8 +14554,6 @@ async def deprovision_byoip_cidr( and you must not have any IP addresses allocated from its address range. Args: - input: - An instance of `DeprovisionByoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9824,10 +14563,34 @@ async def deprovision_byoip_cidr( Returns: An instance of `DeprovisionByoipCidrOutput`. """ - return await self._invoke(input, _models.DEPROVISION_BYOIP_CIDR, [], plugins) + async def deprovision_byoip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeprovisionByoipCidrOutput: + return await self._invoke( + self._select_input(_models.DEPROVISION_BYOIP_CIDR, args, kwargs), + _models.DEPROVISION_BYOIP_CIDR, + [], + plugins, + ) + + @_overload + async def deprovision_ipam_byoasn( + self, + request: _models.DeprovisionIpamByoasnInput + | _models.DeprovisionIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeprovisionIpamByoasnOutput: ... + + @_overload async def deprovision_ipam_byoasn( - self, input: DeprovisionIpamByoasnInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeprovisionIpamByoasnInputDict], ) -> DeprovisionIpamByoasnOutput: """ Deprovisions your Autonomous System Number (ASN) from your Amazon Web @@ -9839,8 +14602,6 @@ async def deprovision_ipam_byoasn( in the *Amazon VPC IPAM guide*. Args: - input: - An instance of `DeprovisionIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9850,10 +14611,34 @@ async def deprovision_ipam_byoasn( Returns: An instance of `DeprovisionIpamByoasnOutput`. """ - return await self._invoke(input, _models.DEPROVISION_IPAM_BYOASN, [], plugins) + async def deprovision_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeprovisionIpamByoasnOutput: + return await self._invoke( + self._select_input(_models.DEPROVISION_IPAM_BYOASN, args, kwargs), + _models.DEPROVISION_IPAM_BYOASN, + [], + plugins, + ) + + @_overload + async def deprovision_ipam_pool_cidr( + self, + request: _models.DeprovisionIpamPoolCidrInput + | _models.DeprovisionIpamPoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeprovisionIpamPoolCidrOutput: ... + + @_overload async def deprovision_ipam_pool_cidr( - self, input: DeprovisionIpamPoolCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeprovisionIpamPoolCidrInputDict], ) -> DeprovisionIpamPoolCidrOutput: """ Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a @@ -9863,8 +14648,6 @@ async def deprovision_ipam_pool_cidr( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeprovisionIpamPoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9874,21 +14657,39 @@ async def deprovision_ipam_pool_cidr( Returns: An instance of `DeprovisionIpamPoolCidrOutput`. """ + + async def deprovision_ipam_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeprovisionIpamPoolCidrOutput: return await self._invoke( - input, _models.DEPROVISION_IPAM_POOL_CIDR, [], plugins + self._select_input(_models.DEPROVISION_IPAM_POOL_CIDR, args, kwargs), + _models.DEPROVISION_IPAM_POOL_CIDR, + [], + plugins, ) + @_overload + async def deprovision_public_ipv4_pool_cidr( + self, + request: _models.DeprovisionPublicIpv4PoolCidrInput + | _models.DeprovisionPublicIpv4PoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeprovisionPublicIpv4PoolCidrOutput: ... + + @_overload async def deprovision_public_ipv4_pool_cidr( self, - input: DeprovisionPublicIpv4PoolCidrInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeprovisionPublicIpv4PoolCidrInputDict], ) -> DeprovisionPublicIpv4PoolCidrOutput: """ Deprovision a CIDR from a public IPv4 pool. Args: - input: - An instance of `DeprovisionPublicIpv4PoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9898,12 +14699,33 @@ async def deprovision_public_ipv4_pool_cidr( Returns: An instance of `DeprovisionPublicIpv4PoolCidrOutput`. """ + + async def deprovision_public_ipv4_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeprovisionPublicIpv4PoolCidrOutput: return await self._invoke( - input, _models.DEPROVISION_PUBLIC_IPV4_POOL_CIDR, [], plugins + self._select_input(_models.DEPROVISION_PUBLIC_IPV4_POOL_CIDR, args, kwargs), + _models.DEPROVISION_PUBLIC_IPV4_POOL_CIDR, + [], + plugins, ) + @_overload + async def deregister_image( + self, + request: _models.DeregisterImageInput | _models.DeregisterImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterImageOutput: ... + + @_overload async def deregister_image( - self, input: DeregisterImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterImageInputDict], ) -> DeregisterImageOutput: """ Deregisters the specified AMI. A deregistered AMI can't be used to @@ -9939,8 +14761,6 @@ async def deregister_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeregisterImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9950,12 +14770,36 @@ async def deregister_image( Returns: An instance of `DeregisterImageOutput`. """ - return await self._invoke(input, _models.DEREGISTER_IMAGE, [], plugins) + async def deregister_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterImageOutput: + return await self._invoke( + self._select_input(_models.DEREGISTER_IMAGE, args, kwargs), + _models.DEREGISTER_IMAGE, + [], + plugins, + ) + + @_overload + async def deregister_instance_event_notification_attributes( + self, + request: _models.DeregisterInstanceEventNotificationAttributesInput + | _models.DeregisterInstanceEventNotificationAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterInstanceEventNotificationAttributesOutput: ... + + @_overload async def deregister_instance_event_notification_attributes( self, - input: DeregisterInstanceEventNotificationAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DeregisterInstanceEventNotificationAttributesInputDict + ], ) -> DeregisterInstanceEventNotificationAttributesOutput: """ Deregisters tag keys to prevent tags that have the specified tag keys @@ -9963,8 +14807,6 @@ async def deregister_instance_event_notification_attributes( the Region. Args: - input: - An instance of `DeregisterInstanceEventNotificationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9974,25 +14816,44 @@ async def deregister_instance_event_notification_attributes( Returns: An instance of `DeregisterInstanceEventNotificationAttributesOutput`. """ + + async def deregister_instance_event_notification_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterInstanceEventNotificationAttributesOutput: return await self._invoke( - input, + self._select_input( + _models.DEREGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, args, kwargs + ), _models.DEREGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, [], plugins, ) + @_overload + async def deregister_transit_gateway_multicast_group_members( + self, + request: _models.DeregisterTransitGatewayMulticastGroupMembersInput + | _models.DeregisterTransitGatewayMulticastGroupMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterTransitGatewayMulticastGroupMembersOutput: ... + + @_overload async def deregister_transit_gateway_multicast_group_members( self, - input: DeregisterTransitGatewayMulticastGroupMembersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DeregisterTransitGatewayMulticastGroupMembersInputDict + ], ) -> DeregisterTransitGatewayMulticastGroupMembersOutput: """ Deregisters the specified members (network interfaces) from the transit gateway multicast group. Args: - input: - An instance of `DeregisterTransitGatewayMulticastGroupMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10002,25 +14863,44 @@ async def deregister_transit_gateway_multicast_group_members( Returns: An instance of `DeregisterTransitGatewayMulticastGroupMembersOutput`. """ + + async def deregister_transit_gateway_multicast_group_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterTransitGatewayMulticastGroupMembersOutput: return await self._invoke( - input, + self._select_input( + _models.DEREGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, args, kwargs + ), _models.DEREGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, [], plugins, ) + @_overload + async def deregister_transit_gateway_multicast_group_sources( + self, + request: _models.DeregisterTransitGatewayMulticastGroupSourcesInput + | _models.DeregisterTransitGatewayMulticastGroupSourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterTransitGatewayMulticastGroupSourcesOutput: ... + + @_overload async def deregister_transit_gateway_multicast_group_sources( self, - input: DeregisterTransitGatewayMulticastGroupSourcesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DeregisterTransitGatewayMulticastGroupSourcesInputDict + ], ) -> DeregisterTransitGatewayMulticastGroupSourcesOutput: """ Deregisters the specified sources (network interfaces) from the transit gateway multicast group. Args: - input: - An instance of `DeregisterTransitGatewayMulticastGroupSourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10030,15 +14910,36 @@ async def deregister_transit_gateway_multicast_group_sources( Returns: An instance of `DeregisterTransitGatewayMulticastGroupSourcesOutput`. """ + + async def deregister_transit_gateway_multicast_group_sources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterTransitGatewayMulticastGroupSourcesOutput: return await self._invoke( - input, + self._select_input( + _models.DEREGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, args, kwargs + ), _models.DEREGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, [], plugins, ) + @_overload + async def describe_account_attributes( + self, + request: _models.DescribeAccountAttributesInput + | _models.DescribeAccountAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountAttributesOutput: ... + + @_overload async def describe_account_attributes( - self, input: DescribeAccountAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountAttributesInputDict], ) -> DescribeAccountAttributesOutput: """ Describes attributes of your Amazon Web Services account. The following @@ -10069,8 +14970,6 @@ async def describe_account_attributes( appear in a particular order. Args: - input: - An instance of `DescribeAccountAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10080,14 +14979,34 @@ async def describe_account_attributes( Returns: An instance of `DescribeAccountAttributesOutput`. """ + + async def describe_account_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountAttributesOutput: return await self._invoke( - input, _models.DESCRIBE_ACCOUNT_ATTRIBUTES, [], plugins + self._select_input(_models.DESCRIBE_ACCOUNT_ATTRIBUTES, args, kwargs), + _models.DESCRIBE_ACCOUNT_ATTRIBUTES, + [], + plugins, ) + @_overload + async def describe_account_vpc_encryption_control( + self, + request: _models.DescribeAccountVpcEncryptionControlInput + | _models.DescribeAccountVpcEncryptionControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountVpcEncryptionControlOutput: ... + + @_overload async def describe_account_vpc_encryption_control( self, - input: DescribeAccountVpcEncryptionControlInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountVpcEncryptionControlInputDict], ) -> DescribeAccountVpcEncryptionControlOutput: """ Describes the account-level VPC Encryption Control configuration for @@ -10100,8 +15019,6 @@ async def describe_account_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeAccountVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10111,20 +15028,41 @@ async def describe_account_vpc_encryption_control( Returns: An instance of `DescribeAccountVpcEncryptionControlOutput`. """ + + async def describe_account_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountVpcEncryptionControlOutput: return await self._invoke( - input, _models.DESCRIBE_ACCOUNT_VPC_ENCRYPTION_CONTROL, [], plugins + self._select_input( + _models.DESCRIBE_ACCOUNT_VPC_ENCRYPTION_CONTROL, args, kwargs + ), + _models.DESCRIBE_ACCOUNT_VPC_ENCRYPTION_CONTROL, + [], + plugins, ) + @_overload async def describe_addresses( - self, input: DescribeAddressesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeAddressesInput | _models.DescribeAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAddressesOutput: ... + + @_overload + async def describe_addresses( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAddressesInputDict], ) -> DescribeAddressesOutput: """ Describes the specified Elastic IP addresses or all of your Elastic IP addresses. Args: - input: - An instance of `DescribeAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10134,12 +15072,34 @@ async def describe_addresses( Returns: An instance of `DescribeAddressesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ADDRESSES, [], plugins) + async def describe_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAddressesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ADDRESSES, args, kwargs), + _models.DESCRIBE_ADDRESSES, + [], + plugins, + ) + + @_overload + async def describe_addresses_attribute( + self, + request: _models.DescribeAddressesAttributeInput + | _models.DescribeAddressesAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAddressesAttributeOutput: ... + + @_overload async def describe_addresses_attribute( self, - input: DescribeAddressesAttributeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAddressesAttributeInputDict], ) -> DescribeAddressesAttributeOutput: """ Describes the attributes of the specified Elastic IP addresses. For @@ -10147,8 +15107,6 @@ async def describe_addresses_attribute( applications](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). Args: - input: - An instance of `DescribeAddressesAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10158,12 +15116,34 @@ async def describe_addresses_attribute( Returns: An instance of `DescribeAddressesAttributeOutput`. """ + + async def describe_addresses_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAddressesAttributeOutput: return await self._invoke( - input, _models.DESCRIBE_ADDRESSES_ATTRIBUTE, [], plugins + self._select_input(_models.DESCRIBE_ADDRESSES_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_ADDRESSES_ATTRIBUTE, + [], + plugins, ) + @_overload + async def describe_address_transfers( + self, + request: _models.DescribeAddressTransfersInput + | _models.DescribeAddressTransfersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAddressTransfersOutput: ... + + @_overload async def describe_address_transfers( - self, input: DescribeAddressTransfersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAddressTransfersInputDict], ) -> DescribeAddressTransfersOutput: """ Describes an Elastic IP address transfer. For more information, see @@ -10181,8 +15161,6 @@ async def describe_address_transfers( source account for 14 days after the transfers have been accepted. Args: - input: - An instance of `DescribeAddressTransfersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10192,12 +15170,34 @@ async def describe_address_transfers( Returns: An instance of `DescribeAddressTransfersOutput`. """ + + async def describe_address_transfers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAddressTransfersOutput: return await self._invoke( - input, _models.DESCRIBE_ADDRESS_TRANSFERS, [], plugins + self._select_input(_models.DESCRIBE_ADDRESS_TRANSFERS, args, kwargs), + _models.DESCRIBE_ADDRESS_TRANSFERS, + [], + plugins, ) + @_overload + async def describe_aggregate_id_format( + self, + request: _models.DescribeAggregateIdFormatInput + | _models.DescribeAggregateIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAggregateIdFormatOutput: ... + + @_overload async def describe_aggregate_id_format( - self, input: DescribeAggregateIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAggregateIdFormatInputDict], ) -> DescribeAggregateIdFormatOutput: """ Describes the longer ID format settings for all resource types in a @@ -10221,8 +15221,6 @@ async def describe_aggregate_id_format( `vpc-peering-connection` | `vpn-connection` | `vpn-gateway`. Args: - input: - An instance of `DescribeAggregateIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10232,12 +15230,34 @@ async def describe_aggregate_id_format( Returns: An instance of `DescribeAggregateIdFormatOutput`. """ + + async def describe_aggregate_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAggregateIdFormatOutput: return await self._invoke( - input, _models.DESCRIBE_AGGREGATE_ID_FORMAT, [], plugins + self._select_input(_models.DESCRIBE_AGGREGATE_ID_FORMAT, args, kwargs), + _models.DESCRIBE_AGGREGATE_ID_FORMAT, + [], + plugins, ) + @_overload + async def describe_application_status( + self, + request: _models.DescribeApplicationStatusInput + | _models.DescribeApplicationStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeApplicationStatusOutput: ... + + @_overload async def describe_application_status( - self, input: DescribeApplicationStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeApplicationStatusInputDict], ) -> DescribeApplicationStatusOutput: """ Describes the aggregated application health status for the specified @@ -10253,8 +15273,6 @@ async def describe_application_status( health check results from affecting the instance-level status. Args: - input: - An instance of `DescribeApplicationStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10264,14 +15282,34 @@ async def describe_application_status( Returns: An instance of `DescribeApplicationStatusOutput`. """ + + async def describe_application_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeApplicationStatusOutput: return await self._invoke( - input, _models.DESCRIBE_APPLICATION_STATUS, [], plugins + self._select_input(_models.DESCRIBE_APPLICATION_STATUS, args, kwargs), + _models.DESCRIBE_APPLICATION_STATUS, + [], + plugins, ) + @_overload + async def describe_application_status_check_associations( + self, + request: _models.DescribeApplicationStatusCheckAssociationsInput + | _models.DescribeApplicationStatusCheckAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeApplicationStatusCheckAssociationsOutput: ... + + @_overload async def describe_application_status_check_associations( self, - input: DescribeApplicationStatusCheckAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeApplicationStatusCheckAssociationsInputDict], ) -> DescribeApplicationStatusCheckAssociationsOutput: """ Describes the associations for one or more application status checks. @@ -10285,8 +15323,6 @@ async def describe_application_status_check_associations( structures, might vary. Args: - input: - An instance of `DescribeApplicationStatusCheckAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10296,14 +15332,36 @@ async def describe_application_status_check_associations( Returns: An instance of `DescribeApplicationStatusCheckAssociationsOutput`. """ + + async def describe_application_status_check_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeApplicationStatusCheckAssociationsOutput: return await self._invoke( - input, _models.DESCRIBE_APPLICATION_STATUS_CHECK_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_APPLICATION_STATUS_CHECK_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_APPLICATION_STATUS_CHECK_ASSOCIATIONS, + [], + plugins, ) + @_overload async def describe_application_status_checks( self, - input: DescribeApplicationStatusChecksInput, + request: _models.DescribeApplicationStatusChecksInput + | _models.DescribeApplicationStatusChecksInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeApplicationStatusChecksOutput: ... + + @_overload + async def describe_application_status_checks( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeApplicationStatusChecksInputDict], ) -> DescribeApplicationStatusChecksOutput: """ Describes application status checks, including configuration details @@ -10318,8 +15376,6 @@ async def describe_application_status_checks( instances. Args: - input: - An instance of `DescribeApplicationStatusChecksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10329,12 +15385,36 @@ async def describe_application_status_checks( Returns: An instance of `DescribeApplicationStatusChecksOutput`. """ + + async def describe_application_status_checks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeApplicationStatusChecksOutput: return await self._invoke( - input, _models.DESCRIBE_APPLICATION_STATUS_CHECKS, [], plugins + self._select_input( + _models.DESCRIBE_APPLICATION_STATUS_CHECKS, args, kwargs + ), + _models.DESCRIBE_APPLICATION_STATUS_CHECKS, + [], + plugins, ) + @_overload + async def describe_availability_zones( + self, + request: _models.DescribeAvailabilityZonesInput + | _models.DescribeAvailabilityZonesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAvailabilityZonesOutput: ... + + @_overload async def describe_availability_zones( - self, input: DescribeAvailabilityZonesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAvailabilityZonesInputDict], ) -> DescribeAvailabilityZonesOutput: """ Describes the Availability Zones, Local Zones, and Wavelength Zones that @@ -10351,8 +15431,6 @@ async def describe_availability_zones( appear in a particular order. Args: - input: - An instance of `DescribeAvailabilityZonesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10362,21 +15440,41 @@ async def describe_availability_zones( Returns: An instance of `DescribeAvailabilityZonesOutput`. """ + + async def describe_availability_zones( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAvailabilityZonesOutput: return await self._invoke( - input, _models.DESCRIBE_AVAILABILITY_ZONES, [], plugins + self._select_input(_models.DESCRIBE_AVAILABILITY_ZONES, args, kwargs), + _models.DESCRIBE_AVAILABILITY_ZONES, + [], + plugins, ) + @_overload + async def describe_aws_network_performance_metric_subscriptions( + self, + request: _models.DescribeAwsNetworkPerformanceMetricSubscriptionsInput + | _models.DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAwsNetworkPerformanceMetricSubscriptionsOutput: ... + + @_overload async def describe_aws_network_performance_metric_subscriptions( self, - input: DescribeAwsNetworkPerformanceMetricSubscriptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict + ], ) -> DescribeAwsNetworkPerformanceMetricSubscriptionsOutput: """ Describes the current Infrastructure Performance metric subscriptions. Args: - input: - An instance of `DescribeAwsNetworkPerformanceMetricSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10386,15 +15484,38 @@ async def describe_aws_network_performance_metric_subscriptions( Returns: An instance of `DescribeAwsNetworkPerformanceMetricSubscriptionsOutput`. """ + + async def describe_aws_network_performance_metric_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAwsNetworkPerformanceMetricSubscriptionsOutput: return await self._invoke( - input, + self._select_input( + _models.DESCRIBE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTIONS, + args, + kwargs, + ), _models.DESCRIBE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTIONS, [], plugins, ) + @_overload + async def describe_bundle_tasks( + self, + request: _models.DescribeBundleTasksInput + | _models.DescribeBundleTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeBundleTasksOutput: ... + + @_overload async def describe_bundle_tasks( - self, input: DescribeBundleTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeBundleTasksInputDict], ) -> DescribeBundleTasksOutput: """ Describes the specified bundle tasks or all of your bundle tasks. @@ -10410,8 +15531,6 @@ async def describe_bundle_tasks( appear in a particular order. Args: - input: - An instance of `DescribeBundleTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10421,10 +15540,33 @@ async def describe_bundle_tasks( Returns: An instance of `DescribeBundleTasksOutput`. """ - return await self._invoke(input, _models.DESCRIBE_BUNDLE_TASKS, [], plugins) + async def describe_bundle_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeBundleTasksOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_BUNDLE_TASKS, args, kwargs), + _models.DESCRIBE_BUNDLE_TASKS, + [], + plugins, + ) + + @_overload async def describe_byoip_cidrs( - self, input: DescribeByoipCidrsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeByoipCidrsInput | _models.DescribeByoipCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeByoipCidrsOutput: ... + + @_overload + async def describe_byoip_cidrs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeByoipCidrsInputDict], ) -> DescribeByoipCidrsOutput: """ Describes the IP address ranges that were provisioned for use with @@ -10432,8 +15574,6 @@ async def describe_byoip_cidrs( addresses (BYOIP). Args: - input: - An instance of `DescribeByoipCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10443,20 +15583,40 @@ async def describe_byoip_cidrs( Returns: An instance of `DescribeByoipCidrsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_BYOIP_CIDRS, [], plugins) + async def describe_byoip_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeByoipCidrsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_BYOIP_CIDRS, args, kwargs), + _models.DESCRIBE_BYOIP_CIDRS, + [], + plugins, + ) + + @_overload + async def describe_capacity_block_extension_history( + self, + request: _models.DescribeCapacityBlockExtensionHistoryInput + | _models.DescribeCapacityBlockExtensionHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlockExtensionHistoryOutput: ... + + @_overload async def describe_capacity_block_extension_history( self, - input: DescribeCapacityBlockExtensionHistoryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlockExtensionHistoryInputDict], ) -> DescribeCapacityBlockExtensionHistoryOutput: """ Describes the events for the specified Capacity Block extension during the specified time. Args: - input: - An instance of `DescribeCapacityBlockExtensionHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10466,22 +15626,42 @@ async def describe_capacity_block_extension_history( Returns: An instance of `DescribeCapacityBlockExtensionHistoryOutput`. """ + + async def describe_capacity_block_extension_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlockExtensionHistoryOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_HISTORY, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_HISTORY, args, kwargs + ), + _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_HISTORY, + [], + plugins, ) + @_overload + async def describe_capacity_block_extension_offerings( + self, + request: _models.DescribeCapacityBlockExtensionOfferingsInput + | _models.DescribeCapacityBlockExtensionOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlockExtensionOfferingsOutput: ... + + @_overload async def describe_capacity_block_extension_offerings( self, - input: DescribeCapacityBlockExtensionOfferingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlockExtensionOfferingsInputDict], ) -> DescribeCapacityBlockExtensionOfferingsOutput: """ Describes Capacity Block extension offerings available for purchase in the Amazon Web Services Region that you're currently using. Args: - input: - An instance of `DescribeCapacityBlockExtensionOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10491,14 +15671,36 @@ async def describe_capacity_block_extension_offerings( Returns: An instance of `DescribeCapacityBlockExtensionOfferingsOutput`. """ + + async def describe_capacity_block_extension_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlockExtensionOfferingsOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_OFFERINGS, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_OFFERINGS, args, kwargs + ), + _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_OFFERINGS, + [], + plugins, ) + @_overload + async def describe_capacity_block_offerings( + self, + request: _models.DescribeCapacityBlockOfferingsInput + | _models.DescribeCapacityBlockOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlockOfferingsOutput: ... + + @_overload async def describe_capacity_block_offerings( self, - input: DescribeCapacityBlockOfferingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlockOfferingsInputDict], ) -> DescribeCapacityBlockOfferingsOutput: """ Describes Capacity Block offerings available for purchase in the Amazon @@ -10510,8 +15712,6 @@ async def describe_capacity_block_offerings( reservation duration and instance count. Args: - input: - An instance of `DescribeCapacityBlockOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10521,20 +15721,40 @@ async def describe_capacity_block_offerings( Returns: An instance of `DescribeCapacityBlockOfferingsOutput`. """ + + async def describe_capacity_block_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlockOfferingsOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_BLOCK_OFFERINGS, [], plugins + self._select_input(_models.DESCRIBE_CAPACITY_BLOCK_OFFERINGS, args, kwargs), + _models.DESCRIBE_CAPACITY_BLOCK_OFFERINGS, + [], + plugins, ) + @_overload async def describe_capacity_blocks( - self, input: DescribeCapacityBlocksInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeCapacityBlocksInput + | _models.DescribeCapacityBlocksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlocksOutput: ... + + @_overload + async def describe_capacity_blocks( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlocksInputDict], ) -> DescribeCapacityBlocksOutput: """ Describes details about Capacity Blocks in the Amazon Web Services Region that you're currently using. Args: - input: - An instance of `DescribeCapacityBlocksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10544,20 +15764,40 @@ async def describe_capacity_blocks( Returns: An instance of `DescribeCapacityBlocksOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CAPACITY_BLOCKS, [], plugins) + async def describe_capacity_blocks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlocksOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CAPACITY_BLOCKS, args, kwargs), + _models.DESCRIBE_CAPACITY_BLOCKS, + [], + plugins, + ) + + @_overload + async def describe_capacity_block_status( + self, + request: _models.DescribeCapacityBlockStatusInput + | _models.DescribeCapacityBlockStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlockStatusOutput: ... + + @_overload async def describe_capacity_block_status( self, - input: DescribeCapacityBlockStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlockStatusInputDict], ) -> DescribeCapacityBlockStatusOutput: """ Describes the availability of capacity for the specified Capacity blocks, or all of your Capacity Blocks. Args: - input: - An instance of `DescribeCapacityBlockStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10567,14 +15807,34 @@ async def describe_capacity_block_status( Returns: An instance of `DescribeCapacityBlockStatusOutput`. """ + + async def describe_capacity_block_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlockStatusOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_BLOCK_STATUS, [], plugins + self._select_input(_models.DESCRIBE_CAPACITY_BLOCK_STATUS, args, kwargs), + _models.DESCRIBE_CAPACITY_BLOCK_STATUS, + [], + plugins, ) + @_overload + async def describe_capacity_manager_data_exports( + self, + request: _models.DescribeCapacityManagerDataExportsInput + | _models.DescribeCapacityManagerDataExportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityManagerDataExportsOutput: ... + + @_overload async def describe_capacity_manager_data_exports( self, - input: DescribeCapacityManagerDataExportsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityManagerDataExportsInputDict], ) -> DescribeCapacityManagerDataExportsOutput: """ Describes one or more Capacity Manager data export configurations. @@ -10582,8 +15842,6 @@ async def describe_capacity_manager_data_exports( export activity. Args: - input: - An instance of `DescribeCapacityManagerDataExportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10593,14 +15851,36 @@ async def describe_capacity_manager_data_exports( Returns: An instance of `DescribeCapacityManagerDataExportsOutput`. """ + + async def describe_capacity_manager_data_exports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityManagerDataExportsOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_MANAGER_DATA_EXPORTS, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_MANAGER_DATA_EXPORTS, args, kwargs + ), + _models.DESCRIBE_CAPACITY_MANAGER_DATA_EXPORTS, + [], + plugins, ) + @_overload + async def describe_capacity_reservation_billing_requests( + self, + request: _models.DescribeCapacityReservationBillingRequestsInput + | _models.DescribeCapacityReservationBillingRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationBillingRequestsOutput: ... + + @_overload async def describe_capacity_reservation_billing_requests( self, - input: DescribeCapacityReservationBillingRequestsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationBillingRequestsInputDict], ) -> DescribeCapacityReservationBillingRequestsOutput: """ Describes a request to assign the billing of the unused capacity of a @@ -10609,8 +15889,6 @@ async def describe_capacity_reservation_billing_requests( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/transfer-billing.html). Args: - input: - An instance of `DescribeCapacityReservationBillingRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10620,14 +15898,38 @@ async def describe_capacity_reservation_billing_requests( Returns: An instance of `DescribeCapacityReservationBillingRequestsOutput`. """ + + async def describe_capacity_reservation_billing_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationBillingRequestsOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATION_BILLING_REQUESTS, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_BILLING_REQUESTS, args, kwargs + ), + _models.DESCRIBE_CAPACITY_RESERVATION_BILLING_REQUESTS, + [], + plugins, ) + @_overload async def describe_capacity_reservation_cancellation_quotes( self, - input: DescribeCapacityReservationCancellationQuotesInput, + request: _models.DescribeCapacityReservationCancellationQuotesInput + | _models.DescribeCapacityReservationCancellationQuotesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationCancellationQuotesOutput: ... + + @_overload + async def describe_capacity_reservation_cancellation_quotes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeCapacityReservationCancellationQuotesInputDict + ], ) -> DescribeCapacityReservationCancellationQuotesOutput: """ Describes one or more Capacity Reservation cancellation quotes. The @@ -10635,8 +15937,6 @@ async def describe_capacity_reservation_cancellation_quotes( using the `CreateCapacityReservationCancellationQuote` action. Args: - input: - An instance of `DescribeCapacityReservationCancellationQuotesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10646,17 +15946,36 @@ async def describe_capacity_reservation_cancellation_quotes( Returns: An instance of `DescribeCapacityReservationCancellationQuotesOutput`. """ + + async def describe_capacity_reservation_cancellation_quotes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationCancellationQuotesOutput: return await self._invoke( - input, + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_CANCELLATION_QUOTES, args, kwargs + ), _models.DESCRIBE_CAPACITY_RESERVATION_CANCELLATION_QUOTES, [], plugins, ) + @_overload + async def describe_capacity_reservation_date_change_quotes( + self, + request: _models.DescribeCapacityReservationDateChangeQuotesInput + | _models.DescribeCapacityReservationDateChangeQuotesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationDateChangeQuotesOutput: ... + + @_overload async def describe_capacity_reservation_date_change_quotes( self, - input: DescribeCapacityReservationDateChangeQuotesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationDateChangeQuotesInputDict], ) -> DescribeCapacityReservationDateChangeQuotesOutput: """ Describes one or more Capacity Reservation date change quotes that you @@ -10664,8 +15983,6 @@ async def describe_capacity_reservation_date_change_quotes( operation. Args: - input: - An instance of `DescribeCapacityReservationDateChangeQuotesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10675,21 +15992,41 @@ async def describe_capacity_reservation_date_change_quotes( Returns: An instance of `DescribeCapacityReservationDateChangeQuotesOutput`. """ + + async def describe_capacity_reservation_date_change_quotes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationDateChangeQuotesOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTES, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTES, args, kwargs + ), + _models.DESCRIBE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTES, + [], + plugins, ) + @_overload async def describe_capacity_reservation_fleets( self, - input: DescribeCapacityReservationFleetsInput, + request: _models.DescribeCapacityReservationFleetsInput + | _models.DescribeCapacityReservationFleetsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationFleetsOutput: ... + + @_overload + async def describe_capacity_reservation_fleets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationFleetsInputDict], ) -> DescribeCapacityReservationFleetsOutput: """ Describes one or more Capacity Reservation Fleets. Args: - input: - An instance of `DescribeCapacityReservationFleetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10699,14 +16036,36 @@ async def describe_capacity_reservation_fleets( Returns: An instance of `DescribeCapacityReservationFleetsOutput`. """ + + async def describe_capacity_reservation_fleets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationFleetsOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATION_FLEETS, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_FLEETS, args, kwargs + ), + _models.DESCRIBE_CAPACITY_RESERVATION_FLEETS, + [], + plugins, ) + @_overload + async def describe_capacity_reservations( + self, + request: _models.DescribeCapacityReservationsInput + | _models.DescribeCapacityReservationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationsOutput: ... + + @_overload async def describe_capacity_reservations( self, - input: DescribeCapacityReservationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationsInputDict], ) -> DescribeCapacityReservationsOutput: """ Describes one or more of your Capacity Reservations. The results @@ -10714,8 +16073,6 @@ async def describe_capacity_reservations( Region that you're currently using. Args: - input: - An instance of `DescribeCapacityReservationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10725,14 +16082,34 @@ async def describe_capacity_reservations( Returns: An instance of `DescribeCapacityReservationsOutput`. """ + + async def describe_capacity_reservations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationsOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATIONS, [], plugins + self._select_input(_models.DESCRIBE_CAPACITY_RESERVATIONS, args, kwargs), + _models.DESCRIBE_CAPACITY_RESERVATIONS, + [], + plugins, ) + @_overload + async def describe_capacity_reservation_topology( + self, + request: _models.DescribeCapacityReservationTopologyInput + | _models.DescribeCapacityReservationTopologyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationTopologyOutput: ... + + @_overload async def describe_capacity_reservation_topology( self, - input: DescribeCapacityReservationTopologyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationTopologyInputDict], ) -> DescribeCapacityReservationTopologyOutput: """ Describes a tree-based hierarchy that represents the physical host @@ -10763,8 +16140,6 @@ async def describe_capacity_reservation_topology( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeCapacityReservationTopologyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10774,19 +16149,41 @@ async def describe_capacity_reservation_topology( Returns: An instance of `DescribeCapacityReservationTopologyOutput`. """ + + async def describe_capacity_reservation_topology( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationTopologyOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATION_TOPOLOGY, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_TOPOLOGY, args, kwargs + ), + _models.DESCRIBE_CAPACITY_RESERVATION_TOPOLOGY, + [], + plugins, ) + @_overload + async def describe_carrier_gateways( + self, + request: _models.DescribeCarrierGatewaysInput + | _models.DescribeCarrierGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCarrierGatewaysOutput: ... + + @_overload async def describe_carrier_gateways( - self, input: DescribeCarrierGatewaysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCarrierGatewaysInputDict], ) -> DescribeCarrierGatewaysOutput: """ Describes one or more of your carrier gateways. Args: - input: - An instance of `DescribeCarrierGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10796,12 +16193,34 @@ async def describe_carrier_gateways( Returns: An instance of `DescribeCarrierGatewaysOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CARRIER_GATEWAYS, [], plugins) + async def describe_carrier_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCarrierGatewaysOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CARRIER_GATEWAYS, args, kwargs), + _models.DESCRIBE_CARRIER_GATEWAYS, + [], + plugins, + ) + + @_overload async def describe_classic_link_instances( self, - input: DescribeClassicLinkInstancesInput, + request: _models.DescribeClassicLinkInstancesInput + | _models.DescribeClassicLinkInstancesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeClassicLinkInstancesOutput: ... + + @_overload + async def describe_classic_link_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClassicLinkInstancesInputDict], ) -> DescribeClassicLinkInstancesOutput: """ Note: @@ -10813,8 +16232,6 @@ async def describe_classic_link_instances( other instances. Args: - input: - An instance of `DescribeClassicLinkInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10824,21 +16241,39 @@ async def describe_classic_link_instances( Returns: An instance of `DescribeClassicLinkInstancesOutput`. """ + + async def describe_classic_link_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClassicLinkInstancesOutput: return await self._invoke( - input, _models.DESCRIBE_CLASSIC_LINK_INSTANCES, [], plugins + self._select_input(_models.DESCRIBE_CLASSIC_LINK_INSTANCES, args, kwargs), + _models.DESCRIBE_CLASSIC_LINK_INSTANCES, + [], + plugins, ) + @_overload + async def describe_client_vpn_authorization_rules( + self, + request: _models.DescribeClientVpnAuthorizationRulesInput + | _models.DescribeClientVpnAuthorizationRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnAuthorizationRulesOutput: ... + + @_overload async def describe_client_vpn_authorization_rules( self, - input: DescribeClientVpnAuthorizationRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnAuthorizationRulesInputDict], ) -> DescribeClientVpnAuthorizationRulesOutput: """ Describes the authorization rules for a specified Client VPN endpoint. Args: - input: - An instance of `DescribeClientVpnAuthorizationRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10848,14 +16283,36 @@ async def describe_client_vpn_authorization_rules( Returns: An instance of `DescribeClientVpnAuthorizationRulesOutput`. """ + + async def describe_client_vpn_authorization_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnAuthorizationRulesOutput: return await self._invoke( - input, _models.DESCRIBE_CLIENT_VPN_AUTHORIZATION_RULES, [], plugins + self._select_input( + _models.DESCRIBE_CLIENT_VPN_AUTHORIZATION_RULES, args, kwargs + ), + _models.DESCRIBE_CLIENT_VPN_AUTHORIZATION_RULES, + [], + plugins, ) + @_overload + async def describe_client_vpn_connections( + self, + request: _models.DescribeClientVpnConnectionsInput + | _models.DescribeClientVpnConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnConnectionsOutput: ... + + @_overload async def describe_client_vpn_connections( self, - input: DescribeClientVpnConnectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnConnectionsInputDict], ) -> DescribeClientVpnConnectionsOutput: """ Describes active client connections and connections that have been @@ -10863,8 +16320,6 @@ async def describe_client_vpn_connections( endpoint. Args: - input: - An instance of `DescribeClientVpnConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10874,21 +16329,39 @@ async def describe_client_vpn_connections( Returns: An instance of `DescribeClientVpnConnectionsOutput`. """ + + async def describe_client_vpn_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnConnectionsOutput: return await self._invoke( - input, _models.DESCRIBE_CLIENT_VPN_CONNECTIONS, [], plugins + self._select_input(_models.DESCRIBE_CLIENT_VPN_CONNECTIONS, args, kwargs), + _models.DESCRIBE_CLIENT_VPN_CONNECTIONS, + [], + plugins, ) + @_overload + async def describe_client_vpn_endpoints( + self, + request: _models.DescribeClientVpnEndpointsInput + | _models.DescribeClientVpnEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnEndpointsOutput: ... + + @_overload async def describe_client_vpn_endpoints( self, - input: DescribeClientVpnEndpointsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnEndpointsInputDict], ) -> DescribeClientVpnEndpointsOutput: """ Describes one or more Client VPN endpoints in the account. Args: - input: - An instance of `DescribeClientVpnEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10898,19 +16371,39 @@ async def describe_client_vpn_endpoints( Returns: An instance of `DescribeClientVpnEndpointsOutput`. """ + + async def describe_client_vpn_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnEndpointsOutput: return await self._invoke( - input, _models.DESCRIBE_CLIENT_VPN_ENDPOINTS, [], plugins + self._select_input(_models.DESCRIBE_CLIENT_VPN_ENDPOINTS, args, kwargs), + _models.DESCRIBE_CLIENT_VPN_ENDPOINTS, + [], + plugins, ) + @_overload + async def describe_client_vpn_routes( + self, + request: _models.DescribeClientVpnRoutesInput + | _models.DescribeClientVpnRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnRoutesOutput: ... + + @_overload async def describe_client_vpn_routes( - self, input: DescribeClientVpnRoutesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnRoutesInputDict], ) -> DescribeClientVpnRoutesOutput: """ Describes the routes for the specified Client VPN endpoint. Args: - input: - An instance of `DescribeClientVpnRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10920,22 +16413,40 @@ async def describe_client_vpn_routes( Returns: An instance of `DescribeClientVpnRoutesOutput`. """ + + async def describe_client_vpn_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnRoutesOutput: return await self._invoke( - input, _models.DESCRIBE_CLIENT_VPN_ROUTES, [], plugins + self._select_input(_models.DESCRIBE_CLIENT_VPN_ROUTES, args, kwargs), + _models.DESCRIBE_CLIENT_VPN_ROUTES, + [], + plugins, ) + @_overload + async def describe_client_vpn_target_networks( + self, + request: _models.DescribeClientVpnTargetNetworksInput + | _models.DescribeClientVpnTargetNetworksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnTargetNetworksOutput: ... + + @_overload async def describe_client_vpn_target_networks( self, - input: DescribeClientVpnTargetNetworksInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnTargetNetworksInputDict], ) -> DescribeClientVpnTargetNetworksOutput: """ Describes the target networks associated with the specified Client VPN endpoint. Args: - input: - An instance of `DescribeClientVpnTargetNetworksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10945,20 +16456,41 @@ async def describe_client_vpn_target_networks( Returns: An instance of `DescribeClientVpnTargetNetworksOutput`. """ + + async def describe_client_vpn_target_networks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnTargetNetworksOutput: return await self._invoke( - input, _models.DESCRIBE_CLIENT_VPN_TARGET_NETWORKS, [], plugins + self._select_input( + _models.DESCRIBE_CLIENT_VPN_TARGET_NETWORKS, args, kwargs + ), + _models.DESCRIBE_CLIENT_VPN_TARGET_NETWORKS, + [], + plugins, ) + @_overload async def describe_coip_pools( - self, input: DescribeCoipPoolsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeCoipPoolsInput | _models.DescribeCoipPoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCoipPoolsOutput: ... + + @_overload + async def describe_coip_pools( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCoipPoolsInputDict], ) -> DescribeCoipPoolsOutput: """ Describes the specified customer-owned address pools or all of your customer-owned address pools. Args: - input: - An instance of `DescribeCoipPoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10968,10 +16500,34 @@ async def describe_coip_pools( Returns: An instance of `DescribeCoipPoolsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_COIP_POOLS, [], plugins) + async def describe_coip_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCoipPoolsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_COIP_POOLS, args, kwargs), + _models.DESCRIBE_COIP_POOLS, + [], + plugins, + ) + + @_overload + async def describe_conversion_tasks( + self, + request: _models.DescribeConversionTasksInput + | _models.DescribeConversionTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeConversionTasksOutput: ... + + @_overload async def describe_conversion_tasks( - self, input: DescribeConversionTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeConversionTasksInputDict], ) -> DescribeConversionTasksOutput: """ Describes the specified conversion tasks or all your conversion tasks. @@ -10983,8 +16539,6 @@ async def describe_conversion_tasks( Manifest](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). Args: - input: - An instance of `DescribeConversionTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10994,10 +16548,34 @@ async def describe_conversion_tasks( Returns: An instance of `DescribeConversionTasksOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CONVERSION_TASKS, [], plugins) + async def describe_conversion_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeConversionTasksOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CONVERSION_TASKS, args, kwargs), + _models.DESCRIBE_CONVERSION_TASKS, + [], + plugins, + ) + + @_overload + async def describe_customer_gateways( + self, + request: _models.DescribeCustomerGatewaysInput + | _models.DescribeCustomerGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCustomerGatewaysOutput: ... + + @_overload async def describe_customer_gateways( - self, input: DescribeCustomerGatewaysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCustomerGatewaysInputDict], ) -> DescribeCustomerGatewaysOutput: """ Describes one or more of your VPN customer gateways. @@ -11007,8 +16585,6 @@ async def describe_customer_gateways( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `DescribeCustomerGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11018,14 +16594,34 @@ async def describe_customer_gateways( Returns: An instance of `DescribeCustomerGatewaysOutput`. """ + + async def describe_customer_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCustomerGatewaysOutput: return await self._invoke( - input, _models.DESCRIBE_CUSTOMER_GATEWAYS, [], plugins + self._select_input(_models.DESCRIBE_CUSTOMER_GATEWAYS, args, kwargs), + _models.DESCRIBE_CUSTOMER_GATEWAYS, + [], + plugins, ) + @_overload + async def describe_declarative_policies_reports( + self, + request: _models.DescribeDeclarativePoliciesReportsInput + | _models.DescribeDeclarativePoliciesReportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDeclarativePoliciesReportsOutput: ... + + @_overload async def describe_declarative_policies_reports( self, - input: DescribeDeclarativePoliciesReportsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDeclarativePoliciesReportsInputDict], ) -> DescribeDeclarativePoliciesReportsOutput: """ Describes the metadata of an account status report, including the status @@ -11045,8 +16641,6 @@ async def describe_declarative_policies_reports( in the *Amazon Web Services Organizations User Guide*. Args: - input: - An instance of `DescribeDeclarativePoliciesReportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11056,12 +16650,36 @@ async def describe_declarative_policies_reports( Returns: An instance of `DescribeDeclarativePoliciesReportsOutput`. """ + + async def describe_declarative_policies_reports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDeclarativePoliciesReportsOutput: return await self._invoke( - input, _models.DESCRIBE_DECLARATIVE_POLICIES_REPORTS, [], plugins + self._select_input( + _models.DESCRIBE_DECLARATIVE_POLICIES_REPORTS, args, kwargs + ), + _models.DESCRIBE_DECLARATIVE_POLICIES_REPORTS, + [], + plugins, ) + @_overload + async def describe_dhcp_options( + self, + request: _models.DescribeDhcpOptionsInput + | _models.DescribeDhcpOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDhcpOptionsOutput: ... + + @_overload async def describe_dhcp_options( - self, input: DescribeDhcpOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDhcpOptionsInputDict], ) -> DescribeDhcpOptionsOutput: """ Describes your DHCP option sets. The default is to describe all your @@ -11074,8 +16692,6 @@ async def describe_dhcp_options( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeDhcpOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11085,12 +16701,34 @@ async def describe_dhcp_options( Returns: An instance of `DescribeDhcpOptionsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DHCP_OPTIONS, [], plugins) + async def describe_dhcp_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDhcpOptionsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DHCP_OPTIONS, args, kwargs), + _models.DESCRIBE_DHCP_OPTIONS, + [], + plugins, + ) + + @_overload + async def describe_egress_only_internet_gateways( + self, + request: _models.DescribeEgressOnlyInternetGatewaysInput + | _models.DescribeEgressOnlyInternetGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEgressOnlyInternetGatewaysOutput: ... + + @_overload async def describe_egress_only_internet_gateways( self, - input: DescribeEgressOnlyInternetGatewaysInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEgressOnlyInternetGatewaysInputDict], ) -> DescribeEgressOnlyInternetGatewaysOutput: """ Describes your egress-only internet gateways. The default is to describe @@ -11100,8 +16738,6 @@ async def describe_egress_only_internet_gateways( criteria. Args: - input: - An instance of `DescribeEgressOnlyInternetGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11111,12 +16747,36 @@ async def describe_egress_only_internet_gateways( Returns: An instance of `DescribeEgressOnlyInternetGatewaysOutput`. """ + + async def describe_egress_only_internet_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEgressOnlyInternetGatewaysOutput: return await self._invoke( - input, _models.DESCRIBE_EGRESS_ONLY_INTERNET_GATEWAYS, [], plugins + self._select_input( + _models.DESCRIBE_EGRESS_ONLY_INTERNET_GATEWAYS, args, kwargs + ), + _models.DESCRIBE_EGRESS_ONLY_INTERNET_GATEWAYS, + [], + plugins, ) + @_overload + async def describe_elastic_gpus( + self, + request: _models.DescribeElasticGpusInput + | _models.DescribeElasticGpusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeElasticGpusOutput: ... + + @_overload async def describe_elastic_gpus( - self, input: DescribeElasticGpusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeElasticGpusInputDict], ) -> DescribeElasticGpusOutput: """ Note: @@ -11126,8 +16786,6 @@ async def describe_elastic_gpus( instances. Args: - input: - An instance of `DescribeElasticGpusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11137,18 +16795,40 @@ async def describe_elastic_gpus( Returns: An instance of `DescribeElasticGpusOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ELASTIC_GPUS, [], plugins) + async def describe_elastic_gpus( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeElasticGpusOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ELASTIC_GPUS, args, kwargs), + _models.DESCRIBE_ELASTIC_GPUS, + [], + plugins, + ) + + @_overload + async def describe_export_image_tasks( + self, + request: _models.DescribeExportImageTasksInput + | _models.DescribeExportImageTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeExportImageTasksOutput: ... + + @_overload async def describe_export_image_tasks( - self, input: DescribeExportImageTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExportImageTasksInputDict], ) -> DescribeExportImageTasksOutput: """ Describes the specified export image tasks or all of your export image tasks. Args: - input: - An instance of `DescribeExportImageTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11158,20 +16838,40 @@ async def describe_export_image_tasks( Returns: An instance of `DescribeExportImageTasksOutput`. """ + + async def describe_export_image_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExportImageTasksOutput: return await self._invoke( - input, _models.DESCRIBE_EXPORT_IMAGE_TASKS, [], plugins + self._select_input(_models.DESCRIBE_EXPORT_IMAGE_TASKS, args, kwargs), + _models.DESCRIBE_EXPORT_IMAGE_TASKS, + [], + plugins, ) + @_overload + async def describe_export_tasks( + self, + request: _models.DescribeExportTasksInput + | _models.DescribeExportTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeExportTasksOutput: ... + + @_overload async def describe_export_tasks( - self, input: DescribeExportTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExportTasksInputDict], ) -> DescribeExportTasksOutput: """ Describes the specified export instance tasks or all of your export instance tasks. Args: - input: - An instance of `DescribeExportTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11181,18 +16881,40 @@ async def describe_export_tasks( Returns: An instance of `DescribeExportTasksOutput`. """ - return await self._invoke(input, _models.DESCRIBE_EXPORT_TASKS, [], plugins) + async def describe_export_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExportTasksOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_EXPORT_TASKS, args, kwargs), + _models.DESCRIBE_EXPORT_TASKS, + [], + plugins, + ) + + @_overload + async def describe_fast_launch_images( + self, + request: _models.DescribeFastLaunchImagesInput + | _models.DescribeFastLaunchImagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFastLaunchImagesOutput: ... + + @_overload async def describe_fast_launch_images( - self, input: DescribeFastLaunchImagesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFastLaunchImagesInputDict], ) -> DescribeFastLaunchImagesOutput: """ Describe details for Windows AMIs that are configured for Windows fast launch. Args: - input: - An instance of `DescribeFastLaunchImagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11202,21 +16924,39 @@ async def describe_fast_launch_images( Returns: An instance of `DescribeFastLaunchImagesOutput`. """ + + async def describe_fast_launch_images( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFastLaunchImagesOutput: return await self._invoke( - input, _models.DESCRIBE_FAST_LAUNCH_IMAGES, [], plugins + self._select_input(_models.DESCRIBE_FAST_LAUNCH_IMAGES, args, kwargs), + _models.DESCRIBE_FAST_LAUNCH_IMAGES, + [], + plugins, ) + @_overload + async def describe_fast_snapshot_restores( + self, + request: _models.DescribeFastSnapshotRestoresInput + | _models.DescribeFastSnapshotRestoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFastSnapshotRestoresOutput: ... + + @_overload async def describe_fast_snapshot_restores( self, - input: DescribeFastSnapshotRestoresInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFastSnapshotRestoresInputDict], ) -> DescribeFastSnapshotRestoresOutput: """ Describes the state of fast snapshot restores for your snapshots. Args: - input: - An instance of `DescribeFastSnapshotRestoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11226,12 +16966,34 @@ async def describe_fast_snapshot_restores( Returns: An instance of `DescribeFastSnapshotRestoresOutput`. """ + + async def describe_fast_snapshot_restores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFastSnapshotRestoresOutput: return await self._invoke( - input, _models.DESCRIBE_FAST_SNAPSHOT_RESTORES, [], plugins + self._select_input(_models.DESCRIBE_FAST_SNAPSHOT_RESTORES, args, kwargs), + _models.DESCRIBE_FAST_SNAPSHOT_RESTORES, + [], + plugins, ) + @_overload + async def describe_fleet_history( + self, + request: _models.DescribeFleetHistoryInput + | _models.DescribeFleetHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFleetHistoryOutput: ... + + @_overload async def describe_fleet_history( - self, input: DescribeFleetHistoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFleetHistoryInputDict], ) -> DescribeFleetHistoryOutput: """ Describes the events for the specified EC2 Fleet during the specified @@ -11247,8 +17009,6 @@ async def describe_fleet_history( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeFleetHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11258,10 +17018,34 @@ async def describe_fleet_history( Returns: An instance of `DescribeFleetHistoryOutput`. """ - return await self._invoke(input, _models.DESCRIBE_FLEET_HISTORY, [], plugins) + async def describe_fleet_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFleetHistoryOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_FLEET_HISTORY, args, kwargs), + _models.DESCRIBE_FLEET_HISTORY, + [], + plugins, + ) + + @_overload + async def describe_fleet_instances( + self, + request: _models.DescribeFleetInstancesInput + | _models.DescribeFleetInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFleetInstancesOutput: ... + + @_overload async def describe_fleet_instances( - self, input: DescribeFleetInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFleetInstancesInputDict], ) -> DescribeFleetInstancesOutput: """ Describes the running instances for the specified EC2 Fleet. @@ -11276,8 +17060,6 @@ async def describe_fleet_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeFleetInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11287,10 +17069,33 @@ async def describe_fleet_instances( Returns: An instance of `DescribeFleetInstancesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_FLEET_INSTANCES, [], plugins) + async def describe_fleet_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFleetInstancesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_FLEET_INSTANCES, args, kwargs), + _models.DESCRIBE_FLEET_INSTANCES, + [], + plugins, + ) + + @_overload + async def describe_fleets( + self, + request: _models.DescribeFleetsInput | _models.DescribeFleetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFleetsOutput: ... + + @_overload async def describe_fleets( - self, input: DescribeFleetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFleetsInputDict], ) -> DescribeFleetsOutput: """ Describes the specified EC2 Fleet or all of your EC2 Fleets. @@ -11304,8 +17109,6 @@ async def describe_fleets( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeFleetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11315,10 +17118,33 @@ async def describe_fleets( Returns: An instance of `DescribeFleetsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_FLEETS, [], plugins) + async def describe_fleets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFleetsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_FLEETS, args, kwargs), + _models.DESCRIBE_FLEETS, + [], + plugins, + ) + + @_overload + async def describe_flow_logs( + self, + request: _models.DescribeFlowLogsInput | _models.DescribeFlowLogsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFlowLogsOutput: ... + + @_overload async def describe_flow_logs( - self, input: DescribeFlowLogsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFlowLogsInputDict], ) -> DescribeFlowLogsOutput: """ Describes one or more flow logs. @@ -11328,8 +17154,6 @@ async def describe_flow_logs( bucket, or the Kinesis Data Firehose delivery stream. Args: - input: - An instance of `DescribeFlowLogsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11339,20 +17163,40 @@ async def describe_flow_logs( Returns: An instance of `DescribeFlowLogsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_FLOW_LOGS, [], plugins) + async def describe_flow_logs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFlowLogsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_FLOW_LOGS, args, kwargs), + _models.DESCRIBE_FLOW_LOGS, + [], + plugins, + ) + + @_overload + async def describe_fpga_image_attribute( + self, + request: _models.DescribeFpgaImageAttributeInput + | _models.DescribeFpgaImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFpgaImageAttributeOutput: ... + + @_overload async def describe_fpga_image_attribute( self, - input: DescribeFpgaImageAttributeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFpgaImageAttributeInputDict], ) -> DescribeFpgaImageAttributeOutput: """ Describes the specified attribute of the specified Amazon FPGA Image (AFI). Args: - input: - An instance of `DescribeFpgaImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11362,12 +17206,33 @@ async def describe_fpga_image_attribute( Returns: An instance of `DescribeFpgaImageAttributeOutput`. """ + + async def describe_fpga_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFpgaImageAttributeOutput: return await self._invoke( - input, _models.DESCRIBE_FPGA_IMAGE_ATTRIBUTE, [], plugins + self._select_input(_models.DESCRIBE_FPGA_IMAGE_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_FPGA_IMAGE_ATTRIBUTE, + [], + plugins, ) + @_overload + async def describe_fpga_images( + self, + request: _models.DescribeFpgaImagesInput | _models.DescribeFpgaImagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFpgaImagesOutput: ... + + @_overload async def describe_fpga_images( - self, input: DescribeFpgaImagesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFpgaImagesInputDict], ) -> DescribeFpgaImagesOutput: """ Describes the Amazon FPGA Images (AFIs) available to you. These include @@ -11375,8 +17240,6 @@ async def describe_fpga_images( Web Services accounts for which you have load permissions. Args: - input: - An instance of `DescribeFpgaImagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11386,12 +17249,34 @@ async def describe_fpga_images( Returns: An instance of `DescribeFpgaImagesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_FPGA_IMAGES, [], plugins) + async def describe_fpga_images( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFpgaImagesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_FPGA_IMAGES, args, kwargs), + _models.DESCRIBE_FPGA_IMAGES, + [], + plugins, + ) + + @_overload + async def describe_host_reservation_offerings( + self, + request: _models.DescribeHostReservationOfferingsInput + | _models.DescribeHostReservationOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeHostReservationOfferingsOutput: ... + + @_overload async def describe_host_reservation_offerings( self, - input: DescribeHostReservationOfferingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeHostReservationOfferingsInputDict], ) -> DescribeHostReservationOfferingsOutput: """ Describes the Dedicated Host reservations that are available to @@ -11407,8 +17292,6 @@ async def describe_host_reservation_offerings( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeHostReservationOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11418,20 +17301,42 @@ async def describe_host_reservation_offerings( Returns: An instance of `DescribeHostReservationOfferingsOutput`. """ + + async def describe_host_reservation_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeHostReservationOfferingsOutput: return await self._invoke( - input, _models.DESCRIBE_HOST_RESERVATION_OFFERINGS, [], plugins + self._select_input( + _models.DESCRIBE_HOST_RESERVATION_OFFERINGS, args, kwargs + ), + _models.DESCRIBE_HOST_RESERVATION_OFFERINGS, + [], + plugins, ) + @_overload async def describe_host_reservations( - self, input: DescribeHostReservationsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeHostReservationsInput + | _models.DescribeHostReservationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeHostReservationsOutput: ... + + @_overload + async def describe_host_reservations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeHostReservationsInputDict], ) -> DescribeHostReservationsOutput: """ Describes reservations that are associated with Dedicated Hosts in your account. Args: - input: - An instance of `DescribeHostReservationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11441,12 +17346,33 @@ async def describe_host_reservations( Returns: An instance of `DescribeHostReservationsOutput`. """ + + async def describe_host_reservations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeHostReservationsOutput: return await self._invoke( - input, _models.DESCRIBE_HOST_RESERVATIONS, [], plugins + self._select_input(_models.DESCRIBE_HOST_RESERVATIONS, args, kwargs), + _models.DESCRIBE_HOST_RESERVATIONS, + [], + plugins, ) + @_overload + async def describe_hosts( + self, + request: _models.DescribeHostsInput | _models.DescribeHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeHostsOutput: ... + + @_overload async def describe_hosts( - self, input: DescribeHostsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeHostsInputDict], ) -> DescribeHostsOutput: """ Describes the specified Dedicated Hosts or all your Dedicated Hosts. @@ -11457,8 +17383,6 @@ async def describe_hosts( the state `released`. Args: - input: - An instance of `DescribeHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11468,19 +17392,39 @@ async def describe_hosts( Returns: An instance of `DescribeHostsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_HOSTS, [], plugins) + async def describe_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeHostsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_HOSTS, args, kwargs), + _models.DESCRIBE_HOSTS, + [], + plugins, + ) + + @_overload async def describe_iam_instance_profile_associations( self, - input: DescribeIamInstanceProfileAssociationsInput, + request: _models.DescribeIamInstanceProfileAssociationsInput + | _models.DescribeIamInstanceProfileAssociationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeIamInstanceProfileAssociationsOutput: ... + + @_overload + async def describe_iam_instance_profile_associations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIamInstanceProfileAssociationsInputDict], ) -> DescribeIamInstanceProfileAssociationsOutput: """ Describes your IAM instance profile associations. Args: - input: - An instance of `DescribeIamInstanceProfileAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11490,12 +17434,36 @@ async def describe_iam_instance_profile_associations( Returns: An instance of `DescribeIamInstanceProfileAssociationsOutput`. """ + + async def describe_iam_instance_profile_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIamInstanceProfileAssociationsOutput: return await self._invoke( - input, _models.DESCRIBE_IAM_INSTANCE_PROFILE_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_IAM_INSTANCE_PROFILE_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_IAM_INSTANCE_PROFILE_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def describe_identity_id_format( + self, + request: _models.DescribeIdentityIdFormatInput + | _models.DescribeIdentityIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIdentityIdFormatOutput: ... + + @_overload async def describe_identity_id_format( - self, input: DescribeIdentityIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIdentityIdFormatInputDict], ) -> DescribeIdentityIdFormatOutput: """ Describes the ID format settings for resources for the specified IAM @@ -11523,8 +17491,6 @@ async def describe_identity_id_format( not apply to the principal that makes the request. Args: - input: - An instance of `DescribeIdentityIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11534,12 +17500,33 @@ async def describe_identity_id_format( Returns: An instance of `DescribeIdentityIdFormatOutput`. """ + + async def describe_identity_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIdentityIdFormatOutput: return await self._invoke( - input, _models.DESCRIBE_IDENTITY_ID_FORMAT, [], plugins + self._select_input(_models.DESCRIBE_IDENTITY_ID_FORMAT, args, kwargs), + _models.DESCRIBE_IDENTITY_ID_FORMAT, + [], + plugins, ) + @_overload + async def describe_id_format( + self, + request: _models.DescribeIdFormatInput | _models.DescribeIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIdFormatOutput: ... + + @_overload async def describe_id_format( - self, input: DescribeIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIdFormatInputDict], ) -> DescribeIdFormatOutput: """ Describes the ID format settings for your resources on a per-Region @@ -11569,8 +17556,6 @@ async def describe_id_format( relevant `Describe` command for the resource type. Args: - input: - An instance of `DescribeIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11580,10 +17565,34 @@ async def describe_id_format( Returns: An instance of `DescribeIdFormatOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ID_FORMAT, [], plugins) + async def describe_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIdFormatOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ID_FORMAT, args, kwargs), + _models.DESCRIBE_ID_FORMAT, + [], + plugins, + ) + + @_overload + async def describe_image_attribute( + self, + request: _models.DescribeImageAttributeInput + | _models.DescribeImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImageAttributeOutput: ... + + @_overload async def describe_image_attribute( - self, input: DescribeImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImageAttributeInputDict], ) -> DescribeImageAttributeOutput: """ Describes the specified attribute of the specified AMI. You can specify @@ -11595,8 +17604,6 @@ async def describe_image_attribute( appear in a particular order. Args: - input: - An instance of `DescribeImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11606,10 +17613,34 @@ async def describe_image_attribute( Returns: An instance of `DescribeImageAttributeOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IMAGE_ATTRIBUTE, [], plugins) + async def describe_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImageAttributeOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IMAGE_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def describe_image_references( + self, + request: _models.DescribeImageReferencesInput + | _models.DescribeImageReferencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImageReferencesOutput: ... + + @_overload async def describe_image_references( - self, input: DescribeImageReferencesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImageReferencesInputDict], ) -> DescribeImageReferencesOutput: """ Describes your Amazon Web Services resources that are referencing the @@ -11620,8 +17651,6 @@ async def describe_image_references( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeImageReferencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11631,10 +17660,33 @@ async def describe_image_references( Returns: An instance of `DescribeImageReferencesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IMAGE_REFERENCES, [], plugins) + async def describe_image_references( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImageReferencesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IMAGE_REFERENCES, args, kwargs), + _models.DESCRIBE_IMAGE_REFERENCES, + [], + plugins, + ) + + @_overload + async def describe_images( + self, + request: _models.DescribeImagesInput | _models.DescribeImagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImagesOutput: ... + + @_overload async def describe_images( - self, input: DescribeImagesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImagesInputDict], ) -> DescribeImagesOutput: """ Describes the specified images (AMIs, AKIs, and ARIs) available to you @@ -11674,8 +17726,6 @@ async def describe_images( appear in a particular order. Args: - input: - An instance of `DescribeImagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11685,12 +17735,34 @@ async def describe_images( Returns: An instance of `DescribeImagesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IMAGES, [], plugins) + async def describe_images( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImagesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IMAGES, args, kwargs), + _models.DESCRIBE_IMAGES, + [], + plugins, + ) + + @_overload async def describe_image_usage_report_entries( self, - input: DescribeImageUsageReportEntriesInput, + request: _models.DescribeImageUsageReportEntriesInput + | _models.DescribeImageUsageReportEntriesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeImageUsageReportEntriesOutput: ... + + @_overload + async def describe_image_usage_report_entries( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImageUsageReportEntriesInputDict], ) -> DescribeImageUsageReportEntriesOutput: """ Describes the entries in image usage reports, showing how your images @@ -11701,8 +17773,6 @@ async def describe_image_usage_report_entries( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeImageUsageReportEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11712,12 +17782,36 @@ async def describe_image_usage_report_entries( Returns: An instance of `DescribeImageUsageReportEntriesOutput`. """ + + async def describe_image_usage_report_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImageUsageReportEntriesOutput: return await self._invoke( - input, _models.DESCRIBE_IMAGE_USAGE_REPORT_ENTRIES, [], plugins + self._select_input( + _models.DESCRIBE_IMAGE_USAGE_REPORT_ENTRIES, args, kwargs + ), + _models.DESCRIBE_IMAGE_USAGE_REPORT_ENTRIES, + [], + plugins, ) + @_overload + async def describe_image_usage_reports( + self, + request: _models.DescribeImageUsageReportsInput + | _models.DescribeImageUsageReportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImageUsageReportsOutput: ... + + @_overload async def describe_image_usage_reports( - self, input: DescribeImageUsageReportsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImageUsageReportsInputDict], ) -> DescribeImageUsageReportsOutput: """ Describes the configuration and status of image usage reports, filtered @@ -11728,8 +17822,6 @@ async def describe_image_usage_reports( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeImageUsageReportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11739,20 +17831,40 @@ async def describe_image_usage_reports( Returns: An instance of `DescribeImageUsageReportsOutput`. """ + + async def describe_image_usage_reports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImageUsageReportsOutput: return await self._invoke( - input, _models.DESCRIBE_IMAGE_USAGE_REPORTS, [], plugins + self._select_input(_models.DESCRIBE_IMAGE_USAGE_REPORTS, args, kwargs), + _models.DESCRIBE_IMAGE_USAGE_REPORTS, + [], + plugins, ) + @_overload + async def describe_import_image_tasks( + self, + request: _models.DescribeImportImageTasksInput + | _models.DescribeImportImageTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImportImageTasksOutput: ... + + @_overload async def describe_import_image_tasks( - self, input: DescribeImportImageTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImportImageTasksInputDict], ) -> DescribeImportImageTasksOutput: """ Displays details about an import virtual machine or import snapshot tasks that are already created. Args: - input: - An instance of `DescribeImportImageTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11762,21 +17874,39 @@ async def describe_import_image_tasks( Returns: An instance of `DescribeImportImageTasksOutput`. """ + + async def describe_import_image_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImportImageTasksOutput: return await self._invoke( - input, _models.DESCRIBE_IMPORT_IMAGE_TASKS, [], plugins + self._select_input(_models.DESCRIBE_IMPORT_IMAGE_TASKS, args, kwargs), + _models.DESCRIBE_IMPORT_IMAGE_TASKS, + [], + plugins, ) + @_overload + async def describe_import_snapshot_tasks( + self, + request: _models.DescribeImportSnapshotTasksInput + | _models.DescribeImportSnapshotTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImportSnapshotTasksOutput: ... + + @_overload async def describe_import_snapshot_tasks( self, - input: DescribeImportSnapshotTasksInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImportSnapshotTasksInputDict], ) -> DescribeImportSnapshotTasksOutput: """ Describes your import snapshot tasks. Args: - input: - An instance of `DescribeImportSnapshotTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11786,12 +17916,34 @@ async def describe_import_snapshot_tasks( Returns: An instance of `DescribeImportSnapshotTasksOutput`. """ + + async def describe_import_snapshot_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImportSnapshotTasksOutput: return await self._invoke( - input, _models.DESCRIBE_IMPORT_SNAPSHOT_TASKS, [], plugins + self._select_input(_models.DESCRIBE_IMPORT_SNAPSHOT_TASKS, args, kwargs), + _models.DESCRIBE_IMPORT_SNAPSHOT_TASKS, + [], + plugins, ) + @_overload async def describe_instance_attribute( - self, input: DescribeInstanceAttributeInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeInstanceAttributeInput + | _models.DescribeInstanceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceAttributeOutput: ... + + @_overload + async def describe_instance_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceAttributeInputDict], ) -> DescribeInstanceAttributeOutput: """ Describes the specified attribute of the specified instance. You can @@ -11800,8 +17952,6 @@ async def describe_instance_attribute( service. Args: - input: - An instance of `DescribeInstanceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11811,22 +17961,40 @@ async def describe_instance_attribute( Returns: An instance of `DescribeInstanceAttributeOutput`. """ + + async def describe_instance_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceAttributeOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_ATTRIBUTE, [], plugins + self._select_input(_models.DESCRIBE_INSTANCE_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_INSTANCE_ATTRIBUTE, + [], + plugins, ) + @_overload + async def describe_instance_connect_endpoints( + self, + request: _models.DescribeInstanceConnectEndpointsInput + | _models.DescribeInstanceConnectEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceConnectEndpointsOutput: ... + + @_overload async def describe_instance_connect_endpoints( self, - input: DescribeInstanceConnectEndpointsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceConnectEndpointsInputDict], ) -> DescribeInstanceConnectEndpointsOutput: """ Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints. Args: - input: - An instance of `DescribeInstanceConnectEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11836,14 +18004,36 @@ async def describe_instance_connect_endpoints( Returns: An instance of `DescribeInstanceConnectEndpointsOutput`. """ + + async def describe_instance_connect_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceConnectEndpointsOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_CONNECT_ENDPOINTS, [], plugins + self._select_input( + _models.DESCRIBE_INSTANCE_CONNECT_ENDPOINTS, args, kwargs + ), + _models.DESCRIBE_INSTANCE_CONNECT_ENDPOINTS, + [], + plugins, ) + @_overload + async def describe_instance_credit_specifications( + self, + request: _models.DescribeInstanceCreditSpecificationsInput + | _models.DescribeInstanceCreditSpecificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceCreditSpecificationsOutput: ... + + @_overload async def describe_instance_credit_specifications( self, - input: DescribeInstanceCreditSpecificationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceCreditSpecificationsInputDict], ) -> DescribeInstanceCreditSpecificationsOutput: """ Describes the credit option for CPU usage of the specified burstable @@ -11875,8 +18065,6 @@ async def describe_instance_credit_specifications( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeInstanceCreditSpecificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11886,22 +18074,42 @@ async def describe_instance_credit_specifications( Returns: An instance of `DescribeInstanceCreditSpecificationsOutput`. """ + + async def describe_instance_credit_specifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceCreditSpecificationsOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_CREDIT_SPECIFICATIONS, [], plugins + self._select_input( + _models.DESCRIBE_INSTANCE_CREDIT_SPECIFICATIONS, args, kwargs + ), + _models.DESCRIBE_INSTANCE_CREDIT_SPECIFICATIONS, + [], + plugins, ) + @_overload + async def describe_instance_event_notification_attributes( + self, + request: _models.DescribeInstanceEventNotificationAttributesInput + | _models.DescribeInstanceEventNotificationAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceEventNotificationAttributesOutput: ... + + @_overload async def describe_instance_event_notification_attributes( self, - input: DescribeInstanceEventNotificationAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceEventNotificationAttributesInputDict], ) -> DescribeInstanceEventNotificationAttributesOutput: """ Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region. Args: - input: - An instance of `DescribeInstanceEventNotificationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11911,14 +18119,36 @@ async def describe_instance_event_notification_attributes( Returns: An instance of `DescribeInstanceEventNotificationAttributesOutput`. """ + + async def describe_instance_event_notification_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceEventNotificationAttributesOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, [], plugins + self._select_input( + _models.DESCRIBE_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, args, kwargs + ), + _models.DESCRIBE_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, + [], + plugins, ) + @_overload + async def describe_instance_event_windows( + self, + request: _models.DescribeInstanceEventWindowsInput + | _models.DescribeInstanceEventWindowsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceEventWindowsOutput: ... + + @_overload async def describe_instance_event_windows( self, - input: DescribeInstanceEventWindowsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceEventWindowsInputDict], ) -> DescribeInstanceEventWindowsOutput: """ Describes the specified event windows or all event windows. @@ -11936,8 +18166,6 @@ async def describe_instance_event_windows( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeInstanceEventWindowsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11947,14 +18175,34 @@ async def describe_instance_event_windows( Returns: An instance of `DescribeInstanceEventWindowsOutput`. """ + + async def describe_instance_event_windows( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceEventWindowsOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_EVENT_WINDOWS, [], plugins + self._select_input(_models.DESCRIBE_INSTANCE_EVENT_WINDOWS, args, kwargs), + _models.DESCRIBE_INSTANCE_EVENT_WINDOWS, + [], + plugins, ) + @_overload + async def describe_instance_image_metadata( + self, + request: _models.DescribeInstanceImageMetadataInput + | _models.DescribeInstanceImageMetadataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceImageMetadataOutput: ... + + @_overload async def describe_instance_image_metadata( self, - input: DescribeInstanceImageMetadataInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceImageMetadataInputDict], ) -> DescribeInstanceImageMetadataOutput: """ Describes the AMI that was used to launch an instance, even if the AMI @@ -11986,8 +18234,6 @@ async def describe_instance_image_metadata( appear in a particular order. Args: - input: - An instance of `DescribeInstanceImageMetadataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11997,12 +18243,33 @@ async def describe_instance_image_metadata( Returns: An instance of `DescribeInstanceImageMetadataOutput`. """ + + async def describe_instance_image_metadata( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceImageMetadataOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_IMAGE_METADATA, [], plugins + self._select_input(_models.DESCRIBE_INSTANCE_IMAGE_METADATA, args, kwargs), + _models.DESCRIBE_INSTANCE_IMAGE_METADATA, + [], + plugins, ) + @_overload async def describe_instances( - self, input: DescribeInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeInstancesInput | _models.DescribeInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstancesOutput: ... + + @_overload + async def describe_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstancesInputDict], ) -> DescribeInstancesOutput: """ Describes the specified instances or all instances. @@ -12049,8 +18316,6 @@ async def describe_instances( appear in a particular order. Args: - input: - An instance of `DescribeInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12060,12 +18325,34 @@ async def describe_instances( Returns: An instance of `DescribeInstancesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_INSTANCES, [], plugins) + async def describe_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstancesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_INSTANCES, args, kwargs), + _models.DESCRIBE_INSTANCES, + [], + plugins, + ) + + @_overload + async def describe_instance_sql_ha_history_states( + self, + request: _models.DescribeInstanceSqlHaHistoryStatesInput + | _models.DescribeInstanceSqlHaHistoryStatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceSqlHaHistoryStatesOutput: ... + + @_overload async def describe_instance_sql_ha_history_states( self, - input: DescribeInstanceSqlHaHistoryStatesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceSqlHaHistoryStatesInputDict], ) -> DescribeInstanceSqlHaHistoryStatesOutput: """ Describes the historical SQL Server High Availability states for Amazon @@ -12073,8 +18360,6 @@ async def describe_instance_sql_ha_history_states( Server monitoring. Args: - input: - An instance of `DescribeInstanceSqlHaHistoryStatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12084,14 +18369,36 @@ async def describe_instance_sql_ha_history_states( Returns: An instance of `DescribeInstanceSqlHaHistoryStatesOutput`. """ + + async def describe_instance_sql_ha_history_states( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceSqlHaHistoryStatesOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_SQL_HA_HISTORY_STATES, [], plugins + self._select_input( + _models.DESCRIBE_INSTANCE_SQL_HA_HISTORY_STATES, args, kwargs + ), + _models.DESCRIBE_INSTANCE_SQL_HA_HISTORY_STATES, + [], + plugins, ) + @_overload + async def describe_instance_sql_ha_states( + self, + request: _models.DescribeInstanceSqlHaStatesInput + | _models.DescribeInstanceSqlHaStatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceSqlHaStatesOutput: ... + + @_overload async def describe_instance_sql_ha_states( self, - input: DescribeInstanceSqlHaStatesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceSqlHaStatesInputDict], ) -> DescribeInstanceSqlHaStatesOutput: """ Describes the SQL Server High Availability states for Amazon EC2 @@ -12099,8 +18406,6 @@ async def describe_instance_sql_ha_states( Server monitoring. Args: - input: - An instance of `DescribeInstanceSqlHaStatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12110,12 +18415,34 @@ async def describe_instance_sql_ha_states( Returns: An instance of `DescribeInstanceSqlHaStatesOutput`. """ + + async def describe_instance_sql_ha_states( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceSqlHaStatesOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_SQL_HA_STATES, [], plugins + self._select_input(_models.DESCRIBE_INSTANCE_SQL_HA_STATES, args, kwargs), + _models.DESCRIBE_INSTANCE_SQL_HA_STATES, + [], + plugins, ) + @_overload + async def describe_instance_status( + self, + request: _models.DescribeInstanceStatusInput + | _models.DescribeInstanceStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceStatusOutput: ... + + @_overload async def describe_instance_status( - self, input: DescribeInstanceStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceStatusInputDict], ) -> DescribeInstanceStatusOutput: """ Describes the status of the specified instances or all of your @@ -12163,8 +18490,6 @@ async def describe_instance_status( appear in a particular order. Args: - input: - An instance of `DescribeInstanceStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12174,10 +18499,34 @@ async def describe_instance_status( Returns: An instance of `DescribeInstanceStatusOutput`. """ - return await self._invoke(input, _models.DESCRIBE_INSTANCE_STATUS, [], plugins) + async def describe_instance_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceStatusOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_INSTANCE_STATUS, args, kwargs), + _models.DESCRIBE_INSTANCE_STATUS, + [], + plugins, + ) + + @_overload + async def describe_instance_topology( + self, + request: _models.DescribeInstanceTopologyInput + | _models.DescribeInstanceTopologyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceTopologyOutput: ... + + @_overload async def describe_instance_topology( - self, input: DescribeInstanceTopologyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceTopologyInputDict], ) -> DescribeInstanceTopologyOutput: """ Describes a tree-based hierarchy that represents the physical host @@ -12207,8 +18556,6 @@ async def describe_instance_topology( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeInstanceTopologyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12218,14 +18565,34 @@ async def describe_instance_topology( Returns: An instance of `DescribeInstanceTopologyOutput`. """ + + async def describe_instance_topology( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceTopologyOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_TOPOLOGY, [], plugins + self._select_input(_models.DESCRIBE_INSTANCE_TOPOLOGY, args, kwargs), + _models.DESCRIBE_INSTANCE_TOPOLOGY, + [], + plugins, ) + @_overload + async def describe_instance_type_offerings( + self, + request: _models.DescribeInstanceTypeOfferingsInput + | _models.DescribeInstanceTypeOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceTypeOfferingsOutput: ... + + @_overload async def describe_instance_type_offerings( self, - input: DescribeInstanceTypeOfferingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceTypeOfferingsInputDict], ) -> DescribeInstanceTypeOfferingsOutput: """ Lists the instance types that are offered for the specified location. If @@ -12233,8 +18600,6 @@ async def describe_instance_type_offerings( are offered in the current Region. Args: - input: - An instance of `DescribeInstanceTypeOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12244,12 +18609,34 @@ async def describe_instance_type_offerings( Returns: An instance of `DescribeInstanceTypeOfferingsOutput`. """ + + async def describe_instance_type_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceTypeOfferingsOutput: return await self._invoke( - input, _models.DESCRIBE_INSTANCE_TYPE_OFFERINGS, [], plugins + self._select_input(_models.DESCRIBE_INSTANCE_TYPE_OFFERINGS, args, kwargs), + _models.DESCRIBE_INSTANCE_TYPE_OFFERINGS, + [], + plugins, ) + @_overload async def describe_instance_types( - self, input: DescribeInstanceTypesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeInstanceTypesInput + | _models.DescribeInstanceTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceTypesOutput: ... + + @_overload + async def describe_instance_types( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceTypesInputDict], ) -> DescribeInstanceTypesOutput: """ Describes the specified instance types. By default, all instance types @@ -12258,8 +18645,6 @@ async def describe_instance_types( Region, set `IncludeUnsupportedInRegion` to `true`. Args: - input: - An instance of `DescribeInstanceTypesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12269,10 +18654,34 @@ async def describe_instance_types( Returns: An instance of `DescribeInstanceTypesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_INSTANCE_TYPES, [], plugins) + async def describe_instance_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceTypesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_INSTANCE_TYPES, args, kwargs), + _models.DESCRIBE_INSTANCE_TYPES, + [], + plugins, + ) + + @_overload + async def describe_internet_gateways( + self, + request: _models.DescribeInternetGatewaysInput + | _models.DescribeInternetGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInternetGatewaysOutput: ... + + @_overload async def describe_internet_gateways( - self, input: DescribeInternetGatewaysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInternetGatewaysInputDict], ) -> DescribeInternetGatewaysOutput: """ Describes your internet gateways. The default is to describe all your @@ -12281,8 +18690,6 @@ async def describe_internet_gateways( that match specific criteria. Args: - input: - An instance of `DescribeInternetGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12292,12 +18699,33 @@ async def describe_internet_gateways( Returns: An instance of `DescribeInternetGatewaysOutput`. """ + + async def describe_internet_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInternetGatewaysOutput: return await self._invoke( - input, _models.DESCRIBE_INTERNET_GATEWAYS, [], plugins + self._select_input(_models.DESCRIBE_INTERNET_GATEWAYS, args, kwargs), + _models.DESCRIBE_INTERNET_GATEWAYS, + [], + plugins, ) + @_overload async def describe_ipam_byoasn( - self, input: DescribeIpamByoasnInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeIpamByoasnInput | _models.DescribeIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamByoasnOutput: ... + + @_overload + async def describe_ipam_byoasn( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamByoasnInputDict], ) -> DescribeIpamByoasnOutput: """ Describes your Autonomous System Numbers (ASNs), their provisioning @@ -12307,8 +18735,6 @@ async def describe_ipam_byoasn( in the *Amazon VPC IPAM guide*. Args: - input: - An instance of `DescribeIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12318,12 +18744,36 @@ async def describe_ipam_byoasn( Returns: An instance of `DescribeIpamByoasnOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IPAM_BYOASN, [], plugins) + async def describe_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamByoasnOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IPAM_BYOASN, args, kwargs), + _models.DESCRIBE_IPAM_BYOASN, + [], + plugins, + ) + + @_overload + async def describe_ipam_external_resource_verification_tokens( + self, + request: _models.DescribeIpamExternalResourceVerificationTokensInput + | _models.DescribeIpamExternalResourceVerificationTokensInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamExternalResourceVerificationTokensOutput: ... + + @_overload async def describe_ipam_external_resource_verification_tokens( self, - input: DescribeIpamExternalResourceVerificationTokensInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeIpamExternalResourceVerificationTokensInputDict + ], ) -> DescribeIpamExternalResourceVerificationTokensOutput: """ Describe verification tokens. @@ -12335,8 +18785,6 @@ async def describe_ipam_external_resource_verification_tokens( Services (BYOIP). Args: - input: - An instance of `DescribeIpamExternalResourceVerificationTokensInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12346,17 +18794,38 @@ async def describe_ipam_external_resource_verification_tokens( Returns: An instance of `DescribeIpamExternalResourceVerificationTokensOutput`. """ + + async def describe_ipam_external_resource_verification_tokens( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamExternalResourceVerificationTokensOutput: return await self._invoke( - input, + self._select_input( + _models.DESCRIBE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKENS, + args, + kwargs, + ), _models.DESCRIBE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKENS, [], plugins, ) + @_overload + async def describe_ipam_internet_registry_associations( + self, + request: _models.DescribeIpamInternetRegistryAssociationsInput + | _models.DescribeIpamInternetRegistryAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamInternetRegistryAssociationsOutput: ... + + @_overload async def describe_ipam_internet_registry_associations( self, - input: DescribeIpamInternetRegistryAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamInternetRegistryAssociationsInputDict], ) -> DescribeIpamInternetRegistryAssociationsOutput: """ Describes one or more IPAM internet registry associations. We recommend @@ -12364,8 +18833,6 @@ async def describe_ipam_internet_registry_associations( successfully. Args: - input: - An instance of `DescribeIpamInternetRegistryAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12375,12 +18842,36 @@ async def describe_ipam_internet_registry_associations( Returns: An instance of `DescribeIpamInternetRegistryAssociationsOutput`. """ + + async def describe_ipam_internet_registry_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamInternetRegistryAssociationsOutput: return await self._invoke( - input, _models.DESCRIBE_IPAM_INTERNET_REGISTRY_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_INTERNET_REGISTRY_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_IPAM_INTERNET_REGISTRY_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def describe_ipam_policies( + self, + request: _models.DescribeIpamPoliciesInput + | _models.DescribeIpamPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamPoliciesOutput: ... + + @_overload async def describe_ipam_policies( - self, input: DescribeIpamPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPoliciesInputDict], ) -> DescribeIpamPoliciesOutput: """ Describes one or more IPAM policies. @@ -12395,8 +18886,6 @@ async def describe_ipam_policies( account or an entity within Amazon Web Services Organizations. Args: - input: - An instance of `DescribeIpamPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12406,12 +18895,34 @@ async def describe_ipam_policies( Returns: An instance of `DescribeIpamPoliciesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IPAM_POLICIES, [], plugins) + async def describe_ipam_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPoliciesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IPAM_POLICIES, args, kwargs), + _models.DESCRIBE_IPAM_POLICIES, + [], + plugins, + ) + + @_overload + async def describe_ipam_pool_allocations( + self, + request: _models.DescribeIpamPoolAllocationsInput + | _models.DescribeIpamPoolAllocationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamPoolAllocationsOutput: ... + + @_overload async def describe_ipam_pool_allocations( self, - input: DescribeIpamPoolAllocationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPoolAllocationsInputDict], ) -> DescribeIpamPoolAllocationsOutput: """ Describes IPAM pool allocations. You can describe all allocations owned @@ -12429,8 +18940,6 @@ async def describe_ipam_pool_allocations( [GetIpamPoolAllocations](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetIpamPoolAllocations.html). Args: - input: - An instance of `DescribeIpamPoolAllocationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12440,19 +18949,38 @@ async def describe_ipam_pool_allocations( Returns: An instance of `DescribeIpamPoolAllocationsOutput`. """ + + async def describe_ipam_pool_allocations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPoolAllocationsOutput: return await self._invoke( - input, _models.DESCRIBE_IPAM_POOL_ALLOCATIONS, [], plugins + self._select_input(_models.DESCRIBE_IPAM_POOL_ALLOCATIONS, args, kwargs), + _models.DESCRIBE_IPAM_POOL_ALLOCATIONS, + [], + plugins, ) + @_overload + async def describe_ipam_pools( + self, + request: _models.DescribeIpamPoolsInput | _models.DescribeIpamPoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamPoolsOutput: ... + + @_overload async def describe_ipam_pools( - self, input: DescribeIpamPoolsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPoolsInputDict], ) -> DescribeIpamPoolsOutput: """ Get information about your IPAM pools. Args: - input: - An instance of `DescribeIpamPoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12462,20 +18990,40 @@ async def describe_ipam_pools( Returns: An instance of `DescribeIpamPoolsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IPAM_POOLS, [], plugins) + async def describe_ipam_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPoolsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IPAM_POOLS, args, kwargs), + _models.DESCRIBE_IPAM_POOLS, + [], + plugins, + ) + + @_overload async def describe_ipam_prefix_list_resolvers( self, - input: DescribeIpamPrefixListResolversInput, + request: _models.DescribeIpamPrefixListResolversInput + | _models.DescribeIpamPrefixListResolversInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeIpamPrefixListResolversOutput: ... + + @_overload + async def describe_ipam_prefix_list_resolvers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPrefixListResolversInputDict], ) -> DescribeIpamPrefixListResolversOutput: """ Describes one or more IPAM prefix list resolvers. Use this operation to view the configuration, status, and properties of your resolvers. Args: - input: - An instance of `DescribeIpamPrefixListResolversInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12485,22 +19033,42 @@ async def describe_ipam_prefix_list_resolvers( Returns: An instance of `DescribeIpamPrefixListResolversOutput`. """ + + async def describe_ipam_prefix_list_resolvers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPrefixListResolversOutput: return await self._invoke( - input, _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVERS, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVERS, args, kwargs + ), + _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVERS, + [], + plugins, ) + @_overload + async def describe_ipam_prefix_list_resolver_targets( + self, + request: _models.DescribeIpamPrefixListResolverTargetsInput + | _models.DescribeIpamPrefixListResolverTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamPrefixListResolverTargetsOutput: ... + + @_overload async def describe_ipam_prefix_list_resolver_targets( self, - input: DescribeIpamPrefixListResolverTargetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPrefixListResolverTargetsInputDict], ) -> DescribeIpamPrefixListResolverTargetsOutput: """ Describes one or more IPAM prefix list resolver Targets. Use this operation to view the configuration and status of resolver targets. Args: - input: - An instance of `DescribeIpamPrefixListResolverTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12510,14 +19078,36 @@ async def describe_ipam_prefix_list_resolver_targets( Returns: An instance of `DescribeIpamPrefixListResolverTargetsOutput`. """ + + async def describe_ipam_prefix_list_resolver_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPrefixListResolverTargetsOutput: return await self._invoke( - input, _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVER_TARGETS, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVER_TARGETS, args, kwargs + ), + _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVER_TARGETS, + [], + plugins, ) + @_overload + async def describe_ipam_resource_discoveries( + self, + request: _models.DescribeIpamResourceDiscoveriesInput + | _models.DescribeIpamResourceDiscoveriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamResourceDiscoveriesOutput: ... + + @_overload async def describe_ipam_resource_discoveries( self, - input: DescribeIpamResourceDiscoveriesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamResourceDiscoveriesInputDict], ) -> DescribeIpamResourceDiscoveriesOutput: """ Describes IPAM resource discoveries. A resource discovery is an IPAM @@ -12525,8 +19115,6 @@ async def describe_ipam_resource_discoveries( to the owning account. Args: - input: - An instance of `DescribeIpamResourceDiscoveriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12536,14 +19124,36 @@ async def describe_ipam_resource_discoveries( Returns: An instance of `DescribeIpamResourceDiscoveriesOutput`. """ + + async def describe_ipam_resource_discoveries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamResourceDiscoveriesOutput: return await self._invoke( - input, _models.DESCRIBE_IPAM_RESOURCE_DISCOVERIES, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_RESOURCE_DISCOVERIES, args, kwargs + ), + _models.DESCRIBE_IPAM_RESOURCE_DISCOVERIES, + [], + plugins, ) + @_overload + async def describe_ipam_resource_discovery_associations( + self, + request: _models.DescribeIpamResourceDiscoveryAssociationsInput + | _models.DescribeIpamResourceDiscoveryAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamResourceDiscoveryAssociationsOutput: ... + + @_overload async def describe_ipam_resource_discovery_associations( self, - input: DescribeIpamResourceDiscoveryAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamResourceDiscoveryAssociationsInputDict], ) -> DescribeIpamResourceDiscoveryAssociationsOutput: """ Describes resource discovery association with an Amazon VPC IPAM. An @@ -12551,8 +19161,6 @@ async def describe_ipam_resource_discovery_associations( associated with an IPAM.. Args: - input: - An instance of `DescribeIpamResourceDiscoveryAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12562,12 +19170,35 @@ async def describe_ipam_resource_discovery_associations( Returns: An instance of `DescribeIpamResourceDiscoveryAssociationsOutput`. """ + + async def describe_ipam_resource_discovery_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamResourceDiscoveryAssociationsOutput: return await self._invoke( - input, _models.DESCRIBE_IPAM_RESOURCE_DISCOVERY_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_RESOURCE_DISCOVERY_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_IPAM_RESOURCE_DISCOVERY_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def describe_ipams( + self, + request: _models.DescribeIpamsInput | _models.DescribeIpamsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamsOutput: ... + + @_overload async def describe_ipams( - self, input: DescribeIpamsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamsInputDict], ) -> DescribeIpamsOutput: """ Get information about your IPAM pools. @@ -12577,8 +19208,6 @@ async def describe_ipams( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DescribeIpamsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12588,17 +19217,38 @@ async def describe_ipams( Returns: An instance of `DescribeIpamsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IPAMS, [], plugins) + async def describe_ipams( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IPAMS, args, kwargs), + _models.DESCRIBE_IPAMS, + [], + plugins, + ) + + @_overload + async def describe_ipam_scopes( + self, + request: _models.DescribeIpamScopesInput | _models.DescribeIpamScopesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamScopesOutput: ... + + @_overload async def describe_ipam_scopes( - self, input: DescribeIpamScopesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamScopesInputDict], ) -> DescribeIpamScopesOutput: """ Get information about your IPAM scopes. Args: - input: - An instance of `DescribeIpamScopesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12608,17 +19258,38 @@ async def describe_ipam_scopes( Returns: An instance of `DescribeIpamScopesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IPAM_SCOPES, [], plugins) + async def describe_ipam_scopes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamScopesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IPAM_SCOPES, args, kwargs), + _models.DESCRIBE_IPAM_SCOPES, + [], + plugins, + ) + + @_overload + async def describe_ipv6_pools( + self, + request: _models.DescribeIpv6PoolsInput | _models.DescribeIpv6PoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpv6PoolsOutput: ... + + @_overload async def describe_ipv6_pools( - self, input: DescribeIpv6PoolsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpv6PoolsInputDict], ) -> DescribeIpv6PoolsOutput: """ Describes your IPv6 address pools. Args: - input: - An instance of `DescribeIpv6PoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12628,10 +19299,33 @@ async def describe_ipv6_pools( Returns: An instance of `DescribeIpv6PoolsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_IPV6_POOLS, [], plugins) + async def describe_ipv6_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpv6PoolsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_IPV6_POOLS, args, kwargs), + _models.DESCRIBE_IPV6_POOLS, + [], + plugins, + ) + + @_overload + async def describe_key_pairs( + self, + request: _models.DescribeKeyPairsInput | _models.DescribeKeyPairsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKeyPairsOutput: ... + + @_overload async def describe_key_pairs( - self, input: DescribeKeyPairsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKeyPairsInputDict], ) -> DescribeKeyPairsOutput: """ Describes the specified key pairs or all of your key pairs. @@ -12641,8 +19335,6 @@ async def describe_key_pairs( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeKeyPairsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12652,17 +19344,39 @@ async def describe_key_pairs( Returns: An instance of `DescribeKeyPairsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_KEY_PAIRS, [], plugins) + async def describe_key_pairs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKeyPairsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_KEY_PAIRS, args, kwargs), + _models.DESCRIBE_KEY_PAIRS, + [], + plugins, + ) + + @_overload async def describe_launch_templates( - self, input: DescribeLaunchTemplatesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeLaunchTemplatesInput + | _models.DescribeLaunchTemplatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLaunchTemplatesOutput: ... + + @_overload + async def describe_launch_templates( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLaunchTemplatesInputDict], ) -> DescribeLaunchTemplatesOutput: """ Describes one or more launch templates. Args: - input: - An instance of `DescribeLaunchTemplatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12672,12 +19386,34 @@ async def describe_launch_templates( Returns: An instance of `DescribeLaunchTemplatesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_LAUNCH_TEMPLATES, [], plugins) + async def describe_launch_templates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLaunchTemplatesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_LAUNCH_TEMPLATES, args, kwargs), + _models.DESCRIBE_LAUNCH_TEMPLATES, + [], + plugins, + ) + + @_overload + async def describe_launch_template_versions( + self, + request: _models.DescribeLaunchTemplateVersionsInput + | _models.DescribeLaunchTemplateVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLaunchTemplateVersionsOutput: ... + + @_overload async def describe_launch_template_versions( self, - input: DescribeLaunchTemplateVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLaunchTemplateVersionsInputDict], ) -> DescribeLaunchTemplateVersionsOutput: """ Describes one or more versions of a specified launch template. You can @@ -12686,8 +19422,6 @@ async def describe_launch_template_versions( all the launch templates in your account. Args: - input: - An instance of `DescribeLaunchTemplateVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12697,14 +19431,34 @@ async def describe_launch_template_versions( Returns: An instance of `DescribeLaunchTemplateVersionsOutput`. """ + + async def describe_launch_template_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLaunchTemplateVersionsOutput: return await self._invoke( - input, _models.DESCRIBE_LAUNCH_TEMPLATE_VERSIONS, [], plugins + self._select_input(_models.DESCRIBE_LAUNCH_TEMPLATE_VERSIONS, args, kwargs), + _models.DESCRIBE_LAUNCH_TEMPLATE_VERSIONS, + [], + plugins, ) + @_overload + async def describe_local_gateway_route_tables( + self, + request: _models.DescribeLocalGatewayRouteTablesInput + | _models.DescribeLocalGatewayRouteTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayRouteTablesOutput: ... + + @_overload async def describe_local_gateway_route_tables( self, - input: DescribeLocalGatewayRouteTablesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLocalGatewayRouteTablesInputDict], ) -> DescribeLocalGatewayRouteTablesOutput: """ Describes one or more local gateway route tables. By default, all local @@ -12712,8 +19466,6 @@ async def describe_local_gateway_route_tables( results. Args: - input: - An instance of `DescribeLocalGatewayRouteTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12723,22 +19475,44 @@ async def describe_local_gateway_route_tables( Returns: An instance of `DescribeLocalGatewayRouteTablesOutput`. """ + + async def describe_local_gateway_route_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayRouteTablesOutput: return await self._invoke( - input, _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLES, [], plugins + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLES, args, kwargs + ), + _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLES, + [], + plugins, ) + @_overload + async def describe_local_gateway_route_table_virtual_interface_group_associations( + self, + request: _models.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput + | _models.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput: ... + + @_overload async def describe_local_gateway_route_table_virtual_interface_group_associations( self, - input: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict + ], ) -> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput: """ Describes the associations between virtual interface groups and local gateway route tables. Args: - input: - An instance of `DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12748,25 +19522,46 @@ async def describe_local_gateway_route_table_virtual_interface_group_association Returns: An instance of `DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput`. """ + + async def describe_local_gateway_route_table_virtual_interface_group_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput: return await self._invoke( - input, + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATIONS, + args, + kwargs, + ), _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATIONS, [], plugins, ) + @_overload + async def describe_local_gateway_route_table_vpc_associations( + self, + request: _models.DescribeLocalGatewayRouteTableVpcAssociationsInput + | _models.DescribeLocalGatewayRouteTableVpcAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayRouteTableVpcAssociationsOutput: ... + + @_overload async def describe_local_gateway_route_table_vpc_associations( self, - input: DescribeLocalGatewayRouteTableVpcAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeLocalGatewayRouteTableVpcAssociationsInputDict + ], ) -> DescribeLocalGatewayRouteTableVpcAssociationsOutput: """ Describes the specified associations between VPCs and local gateway route tables. Args: - input: - An instance of `DescribeLocalGatewayRouteTableVpcAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12776,23 +19571,44 @@ async def describe_local_gateway_route_table_vpc_associations( Returns: An instance of `DescribeLocalGatewayRouteTableVpcAssociationsOutput`. """ + + async def describe_local_gateway_route_table_vpc_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayRouteTableVpcAssociationsOutput: return await self._invoke( - input, + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATIONS, + args, + kwargs, + ), _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATIONS, [], plugins, ) + @_overload + async def describe_local_gateways( + self, + request: _models.DescribeLocalGatewaysInput + | _models.DescribeLocalGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewaysOutput: ... + + @_overload async def describe_local_gateways( - self, input: DescribeLocalGatewaysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLocalGatewaysInputDict], ) -> DescribeLocalGatewaysOutput: """ Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results. Args: - input: - An instance of `DescribeLocalGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12802,19 +19618,39 @@ async def describe_local_gateways( Returns: An instance of `DescribeLocalGatewaysOutput`. """ - return await self._invoke(input, _models.DESCRIBE_LOCAL_GATEWAYS, [], plugins) + async def describe_local_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewaysOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_LOCAL_GATEWAYS, args, kwargs), + _models.DESCRIBE_LOCAL_GATEWAYS, + [], + plugins, + ) + + @_overload + async def describe_local_gateway_virtual_interface_groups( + self, + request: _models.DescribeLocalGatewayVirtualInterfaceGroupsInput + | _models.DescribeLocalGatewayVirtualInterfaceGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayVirtualInterfaceGroupsOutput: ... + + @_overload async def describe_local_gateway_virtual_interface_groups( self, - input: DescribeLocalGatewayVirtualInterfaceGroupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLocalGatewayVirtualInterfaceGroupsInputDict], ) -> DescribeLocalGatewayVirtualInterfaceGroupsOutput: """ Describes the specified local gateway virtual interface groups. Args: - input: - An instance of `DescribeLocalGatewayVirtualInterfaceGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12824,21 +19660,41 @@ async def describe_local_gateway_virtual_interface_groups( Returns: An instance of `DescribeLocalGatewayVirtualInterfaceGroupsOutput`. """ + + async def describe_local_gateway_virtual_interface_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayVirtualInterfaceGroupsOutput: return await self._invoke( - input, _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUPS, [], plugins + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUPS, args, kwargs + ), + _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUPS, + [], + plugins, ) + @_overload + async def describe_local_gateway_virtual_interfaces( + self, + request: _models.DescribeLocalGatewayVirtualInterfacesInput + | _models.DescribeLocalGatewayVirtualInterfacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayVirtualInterfacesOutput: ... + + @_overload async def describe_local_gateway_virtual_interfaces( self, - input: DescribeLocalGatewayVirtualInterfacesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLocalGatewayVirtualInterfacesInputDict], ) -> DescribeLocalGatewayVirtualInterfacesOutput: """ Describes the specified local gateway virtual interfaces. Args: - input: - An instance of `DescribeLocalGatewayVirtualInterfacesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12848,19 +19704,41 @@ async def describe_local_gateway_virtual_interfaces( Returns: An instance of `DescribeLocalGatewayVirtualInterfacesOutput`. """ + + async def describe_local_gateway_virtual_interfaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayVirtualInterfacesOutput: return await self._invoke( - input, _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACES, [], plugins + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACES, args, kwargs + ), + _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACES, + [], + plugins, ) + @_overload + async def describe_locked_snapshots( + self, + request: _models.DescribeLockedSnapshotsInput + | _models.DescribeLockedSnapshotsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLockedSnapshotsOutput: ... + + @_overload async def describe_locked_snapshots( - self, input: DescribeLockedSnapshotsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLockedSnapshotsInputDict], ) -> DescribeLockedSnapshotsOutput: """ Describes the lock status for a snapshot. Args: - input: - An instance of `DescribeLockedSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12870,18 +19748,39 @@ async def describe_locked_snapshots( Returns: An instance of `DescribeLockedSnapshotsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_LOCKED_SNAPSHOTS, [], plugins) + async def describe_locked_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLockedSnapshotsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_LOCKED_SNAPSHOTS, args, kwargs), + _models.DESCRIBE_LOCKED_SNAPSHOTS, + [], + plugins, + ) + + @_overload + async def describe_mac_hosts( + self, + request: _models.DescribeMacHostsInput | _models.DescribeMacHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeMacHostsOutput: ... + + @_overload async def describe_mac_hosts( - self, input: DescribeMacHostsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeMacHostsInputDict], ) -> DescribeMacHostsOutput: """ Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts. Args: - input: - An instance of `DescribeMacHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12891,12 +19790,34 @@ async def describe_mac_hosts( Returns: An instance of `DescribeMacHostsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_MAC_HOSTS, [], plugins) + async def describe_mac_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeMacHostsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_MAC_HOSTS, args, kwargs), + _models.DESCRIBE_MAC_HOSTS, + [], + plugins, + ) + + @_overload + async def describe_mac_modification_tasks( + self, + request: _models.DescribeMacModificationTasksInput + | _models.DescribeMacModificationTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeMacModificationTasksOutput: ... + + @_overload async def describe_mac_modification_tasks( self, - input: DescribeMacModificationTasksInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeMacModificationTasksInputDict], ) -> DescribeMacModificationTasksOutput: """ Describes a System Integrity Protection (SIP) modification task or @@ -12906,8 +19827,6 @@ async def describe_mac_modification_tasks( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeMacModificationTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12917,22 +19836,40 @@ async def describe_mac_modification_tasks( Returns: An instance of `DescribeMacModificationTasksOutput`. """ + + async def describe_mac_modification_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeMacModificationTasksOutput: return await self._invoke( - input, _models.DESCRIBE_MAC_MODIFICATION_TASKS, [], plugins + self._select_input(_models.DESCRIBE_MAC_MODIFICATION_TASKS, args, kwargs), + _models.DESCRIBE_MAC_MODIFICATION_TASKS, + [], + plugins, ) + @_overload + async def describe_managed_prefix_lists( + self, + request: _models.DescribeManagedPrefixListsInput + | _models.DescribeManagedPrefixListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeManagedPrefixListsOutput: ... + + @_overload async def describe_managed_prefix_lists( self, - input: DescribeManagedPrefixListsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeManagedPrefixListsInputDict], ) -> DescribeManagedPrefixListsOutput: """ Describes your managed prefix lists and any Amazon Web Services-managed prefix lists. Args: - input: - An instance of `DescribeManagedPrefixListsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12942,12 +19879,34 @@ async def describe_managed_prefix_lists( Returns: An instance of `DescribeManagedPrefixListsOutput`. """ + + async def describe_managed_prefix_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeManagedPrefixListsOutput: return await self._invoke( - input, _models.DESCRIBE_MANAGED_PREFIX_LISTS, [], plugins + self._select_input(_models.DESCRIBE_MANAGED_PREFIX_LISTS, args, kwargs), + _models.DESCRIBE_MANAGED_PREFIX_LISTS, + [], + plugins, ) + @_overload async def describe_moving_addresses( - self, input: DescribeMovingAddressesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeMovingAddressesInput + | _models.DescribeMovingAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeMovingAddressesOutput: ... + + @_overload + async def describe_moving_addresses( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeMovingAddressesInputDict], ) -> DescribeMovingAddressesOutput: """ Note: @@ -12958,8 +19917,6 @@ async def describe_moving_addresses( information about any other Elastic IP addresses in your account. Args: - input: - An instance of `DescribeMovingAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12969,10 +19926,34 @@ async def describe_moving_addresses( Returns: An instance of `DescribeMovingAddressesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_MOVING_ADDRESSES, [], plugins) + async def describe_moving_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeMovingAddressesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_MOVING_ADDRESSES, args, kwargs), + _models.DESCRIBE_MOVING_ADDRESSES, + [], + plugins, + ) + + @_overload + async def describe_nat_gateways( + self, + request: _models.DescribeNatGatewaysInput + | _models.DescribeNatGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNatGatewaysOutput: ... + + @_overload async def describe_nat_gateways( - self, input: DescribeNatGatewaysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNatGatewaysInputDict], ) -> DescribeNatGatewaysOutput: """ Describes your NAT gateways. The default is to describe all your NAT @@ -12981,8 +19962,6 @@ async def describe_nat_gateways( criteria. Args: - input: - An instance of `DescribeNatGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12992,10 +19971,34 @@ async def describe_nat_gateways( Returns: An instance of `DescribeNatGatewaysOutput`. """ - return await self._invoke(input, _models.DESCRIBE_NAT_GATEWAYS, [], plugins) + async def describe_nat_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNatGatewaysOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_NAT_GATEWAYS, args, kwargs), + _models.DESCRIBE_NAT_GATEWAYS, + [], + plugins, + ) + + @_overload + async def describe_network_acls( + self, + request: _models.DescribeNetworkAclsInput + | _models.DescribeNetworkAclsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkAclsOutput: ... + + @_overload async def describe_network_acls( - self, input: DescribeNetworkAclsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkAclsInputDict], ) -> DescribeNetworkAclsOutput: """ Describes your network ACLs. The default is to describe all your network @@ -13008,8 +20011,6 @@ async def describe_network_acls( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeNetworkAclsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13019,19 +20020,39 @@ async def describe_network_acls( Returns: An instance of `DescribeNetworkAclsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_NETWORK_ACLS, [], plugins) + async def describe_network_acls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkAclsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_NETWORK_ACLS, args, kwargs), + _models.DESCRIBE_NETWORK_ACLS, + [], + plugins, + ) + + @_overload + async def describe_network_insights_access_scope_analyses( + self, + request: _models.DescribeNetworkInsightsAccessScopeAnalysesInput + | _models.DescribeNetworkInsightsAccessScopeAnalysesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInsightsAccessScopeAnalysesOutput: ... + + @_overload async def describe_network_insights_access_scope_analyses( self, - input: DescribeNetworkInsightsAccessScopeAnalysesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInsightsAccessScopeAnalysesInputDict], ) -> DescribeNetworkInsightsAccessScopeAnalysesOutput: """ Describes the specified Network Access Scope analyses. Args: - input: - An instance of `DescribeNetworkInsightsAccessScopeAnalysesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13041,21 +20062,41 @@ async def describe_network_insights_access_scope_analyses( Returns: An instance of `DescribeNetworkInsightsAccessScopeAnalysesOutput`. """ + + async def describe_network_insights_access_scope_analyses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInsightsAccessScopeAnalysesOutput: return await self._invoke( - input, _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSES, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSES, args, kwargs + ), + _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSES, + [], + plugins, ) + @_overload async def describe_network_insights_access_scopes( self, - input: DescribeNetworkInsightsAccessScopesInput, + request: _models.DescribeNetworkInsightsAccessScopesInput + | _models.DescribeNetworkInsightsAccessScopesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInsightsAccessScopesOutput: ... + + @_overload + async def describe_network_insights_access_scopes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInsightsAccessScopesInputDict], ) -> DescribeNetworkInsightsAccessScopesOutput: """ Describes the specified Network Access Scopes. Args: - input: - An instance of `DescribeNetworkInsightsAccessScopesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13065,21 +20106,41 @@ async def describe_network_insights_access_scopes( Returns: An instance of `DescribeNetworkInsightsAccessScopesOutput`. """ + + async def describe_network_insights_access_scopes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInsightsAccessScopesOutput: return await self._invoke( - input, _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPES, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPES, args, kwargs + ), + _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPES, + [], + plugins, ) + @_overload + async def describe_network_insights_analyses( + self, + request: _models.DescribeNetworkInsightsAnalysesInput + | _models.DescribeNetworkInsightsAnalysesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInsightsAnalysesOutput: ... + + @_overload async def describe_network_insights_analyses( self, - input: DescribeNetworkInsightsAnalysesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInsightsAnalysesInputDict], ) -> DescribeNetworkInsightsAnalysesOutput: """ Describes one or more of your network insights analyses. Args: - input: - An instance of `DescribeNetworkInsightsAnalysesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13089,21 +20150,41 @@ async def describe_network_insights_analyses( Returns: An instance of `DescribeNetworkInsightsAnalysesOutput`. """ + + async def describe_network_insights_analyses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInsightsAnalysesOutput: return await self._invoke( - input, _models.DESCRIBE_NETWORK_INSIGHTS_ANALYSES, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INSIGHTS_ANALYSES, args, kwargs + ), + _models.DESCRIBE_NETWORK_INSIGHTS_ANALYSES, + [], + plugins, ) + @_overload + async def describe_network_insights_paths( + self, + request: _models.DescribeNetworkInsightsPathsInput + | _models.DescribeNetworkInsightsPathsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInsightsPathsOutput: ... + + @_overload async def describe_network_insights_paths( self, - input: DescribeNetworkInsightsPathsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInsightsPathsInputDict], ) -> DescribeNetworkInsightsPathsOutput: """ Describes one or more of your paths. Args: - input: - An instance of `DescribeNetworkInsightsPathsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13113,22 +20194,40 @@ async def describe_network_insights_paths( Returns: An instance of `DescribeNetworkInsightsPathsOutput`. """ + + async def describe_network_insights_paths( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInsightsPathsOutput: return await self._invoke( - input, _models.DESCRIBE_NETWORK_INSIGHTS_PATHS, [], plugins + self._select_input(_models.DESCRIBE_NETWORK_INSIGHTS_PATHS, args, kwargs), + _models.DESCRIBE_NETWORK_INSIGHTS_PATHS, + [], + plugins, ) + @_overload + async def describe_network_interface_attribute( + self, + request: _models.DescribeNetworkInterfaceAttributeInput + | _models.DescribeNetworkInterfaceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInterfaceAttributeOutput: ... + + @_overload async def describe_network_interface_attribute( self, - input: DescribeNetworkInterfaceAttributeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInterfaceAttributeInputDict], ) -> DescribeNetworkInterfaceAttributeOutput: """ Describes a network interface attribute. You can specify only one attribute at a time. Args: - input: - An instance of `DescribeNetworkInterfaceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13138,21 +20237,41 @@ async def describe_network_interface_attribute( Returns: An instance of `DescribeNetworkInterfaceAttributeOutput`. """ + + async def describe_network_interface_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInterfaceAttributeOutput: return await self._invoke( - input, _models.DESCRIBE_NETWORK_INTERFACE_ATTRIBUTE, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INTERFACE_ATTRIBUTE, args, kwargs + ), + _models.DESCRIBE_NETWORK_INTERFACE_ATTRIBUTE, + [], + plugins, ) + @_overload + async def describe_network_interface_permissions( + self, + request: _models.DescribeNetworkInterfacePermissionsInput + | _models.DescribeNetworkInterfacePermissionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInterfacePermissionsOutput: ... + + @_overload async def describe_network_interface_permissions( self, - input: DescribeNetworkInterfacePermissionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInterfacePermissionsInputDict], ) -> DescribeNetworkInterfacePermissionsOutput: """ Describes the permissions for your network interfaces. Args: - input: - An instance of `DescribeNetworkInterfacePermissionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13162,12 +20281,36 @@ async def describe_network_interface_permissions( Returns: An instance of `DescribeNetworkInterfacePermissionsOutput`. """ + + async def describe_network_interface_permissions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInterfacePermissionsOutput: return await self._invoke( - input, _models.DESCRIBE_NETWORK_INTERFACE_PERMISSIONS, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INTERFACE_PERMISSIONS, args, kwargs + ), + _models.DESCRIBE_NETWORK_INTERFACE_PERMISSIONS, + [], + plugins, ) + @_overload + async def describe_network_interfaces( + self, + request: _models.DescribeNetworkInterfacesInput + | _models.DescribeNetworkInterfacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInterfacesOutput: ... + + @_overload async def describe_network_interfaces( - self, input: DescribeNetworkInterfacesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInterfacesInputDict], ) -> DescribeNetworkInterfacesOutput: """ Describes the specified network interfaces or all your network @@ -13183,8 +20326,6 @@ async def describe_network_interfaces( requests are susceptible to throttling and timeouts. Args: - input: - An instance of `DescribeNetworkInterfacesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13194,12 +20335,34 @@ async def describe_network_interfaces( Returns: An instance of `DescribeNetworkInterfacesOutput`. """ + + async def describe_network_interfaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInterfacesOutput: return await self._invoke( - input, _models.DESCRIBE_NETWORK_INTERFACES, [], plugins + self._select_input(_models.DESCRIBE_NETWORK_INTERFACES, args, kwargs), + _models.DESCRIBE_NETWORK_INTERFACES, + [], + plugins, ) + @_overload async def describe_outpost_lags( - self, input: DescribeOutpostLagsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeOutpostLagsInput + | _models.DescribeOutpostLagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOutpostLagsOutput: ... + + @_overload + async def describe_outpost_lags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOutpostLagsInputDict], ) -> DescribeOutpostLagsOutput: """ Describes the Outposts link aggregation groups (LAGs). @@ -13209,8 +20372,6 @@ async def describe_outpost_lags( time. Args: - input: - An instance of `DescribeOutpostLagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13220,10 +20381,34 @@ async def describe_outpost_lags( Returns: An instance of `DescribeOutpostLagsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_OUTPOST_LAGS, [], plugins) + async def describe_outpost_lags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOutpostLagsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_OUTPOST_LAGS, args, kwargs), + _models.DESCRIBE_OUTPOST_LAGS, + [], + plugins, + ) + + @_overload + async def describe_placement_groups( + self, + request: _models.DescribePlacementGroupsInput + | _models.DescribePlacementGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePlacementGroupsOutput: ... + + @_overload async def describe_placement_groups( - self, input: DescribePlacementGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePlacementGroupsInputDict], ) -> DescribePlacementGroupsOutput: """ Describes the specified placement groups or all of your placement @@ -13240,8 +20425,6 @@ async def describe_placement_groups( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribePlacementGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13251,10 +20434,34 @@ async def describe_placement_groups( Returns: An instance of `DescribePlacementGroupsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_PLACEMENT_GROUPS, [], plugins) + async def describe_placement_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePlacementGroupsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_PLACEMENT_GROUPS, args, kwargs), + _models.DESCRIBE_PLACEMENT_GROUPS, + [], + plugins, + ) + + @_overload + async def describe_prefix_lists( + self, + request: _models.DescribePrefixListsInput + | _models.DescribePrefixListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePrefixListsOutput: ... + + @_overload async def describe_prefix_lists( - self, input: DescribePrefixListsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePrefixListsInputDict], ) -> DescribePrefixListsOutput: """ Describes available Amazon Web Services services in a prefix list @@ -13262,8 +20469,6 @@ async def describe_prefix_lists( service and the IP address range for the service. Args: - input: - An instance of `DescribePrefixListsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13273,10 +20478,34 @@ async def describe_prefix_lists( Returns: An instance of `DescribePrefixListsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_PREFIX_LISTS, [], plugins) + async def describe_prefix_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePrefixListsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_PREFIX_LISTS, args, kwargs), + _models.DESCRIBE_PREFIX_LISTS, + [], + plugins, + ) + + @_overload + async def describe_principal_id_format( + self, + request: _models.DescribePrincipalIdFormatInput + | _models.DescribePrincipalIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePrincipalIdFormatOutput: ... + + @_overload async def describe_principal_id_format( - self, input: DescribePrincipalIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePrincipalIdFormatInputDict], ) -> DescribePrincipalIdFormatOutput: """ Describes the ID format settings for the root user and all IAM roles and @@ -13301,8 +20530,6 @@ async def describe_principal_id_format( `vpc-peering-connection` | `vpn-connection` | `vpn-gateway`. Args: - input: - An instance of `DescribePrincipalIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13312,19 +20539,39 @@ async def describe_principal_id_format( Returns: An instance of `DescribePrincipalIdFormatOutput`. """ + + async def describe_principal_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePrincipalIdFormatOutput: return await self._invoke( - input, _models.DESCRIBE_PRINCIPAL_ID_FORMAT, [], plugins + self._select_input(_models.DESCRIBE_PRINCIPAL_ID_FORMAT, args, kwargs), + _models.DESCRIBE_PRINCIPAL_ID_FORMAT, + [], + plugins, ) + @_overload + async def describe_public_ipv4_pools( + self, + request: _models.DescribePublicIpv4PoolsInput + | _models.DescribePublicIpv4PoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePublicIpv4PoolsOutput: ... + + @_overload async def describe_public_ipv4_pools( - self, input: DescribePublicIpv4PoolsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePublicIpv4PoolsInputDict], ) -> DescribePublicIpv4PoolsOutput: """ Describes the specified IPv4 address pools. Args: - input: - An instance of `DescribePublicIpv4PoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13334,12 +20581,33 @@ async def describe_public_ipv4_pools( Returns: An instance of `DescribePublicIpv4PoolsOutput`. """ + + async def describe_public_ipv4_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePublicIpv4PoolsOutput: return await self._invoke( - input, _models.DESCRIBE_PUBLIC_IPV4_POOLS, [], plugins + self._select_input(_models.DESCRIBE_PUBLIC_IPV4_POOLS, args, kwargs), + _models.DESCRIBE_PUBLIC_IPV4_POOLS, + [], + plugins, ) + @_overload + async def describe_regions( + self, + request: _models.DescribeRegionsInput | _models.DescribeRegionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRegionsOutput: ... + + @_overload async def describe_regions( - self, input: DescribeRegionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRegionsInputDict], ) -> DescribeRegionsOutput: """ Describes the Regions that are enabled for your account, or all Regions. @@ -13359,8 +20627,6 @@ async def describe_regions( appear in a particular order. Args: - input: - An instance of `DescribeRegionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13370,12 +20636,34 @@ async def describe_regions( Returns: An instance of `DescribeRegionsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_REGIONS, [], plugins) + async def describe_regions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRegionsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_REGIONS, args, kwargs), + _models.DESCRIBE_REGIONS, + [], + plugins, + ) + + @_overload + async def describe_replace_root_volume_tasks( + self, + request: _models.DescribeReplaceRootVolumeTasksInput + | _models.DescribeReplaceRootVolumeTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReplaceRootVolumeTasksOutput: ... + + @_overload async def describe_replace_root_volume_tasks( self, - input: DescribeReplaceRootVolumeTasksInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReplaceRootVolumeTasksInputDict], ) -> DescribeReplaceRootVolumeTasksOutput: """ Describes a root volume replacement task. For more information, see @@ -13384,8 +20672,6 @@ async def describe_replace_root_volume_tasks( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeReplaceRootVolumeTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13395,12 +20681,36 @@ async def describe_replace_root_volume_tasks( Returns: An instance of `DescribeReplaceRootVolumeTasksOutput`. """ + + async def describe_replace_root_volume_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReplaceRootVolumeTasksOutput: return await self._invoke( - input, _models.DESCRIBE_REPLACE_ROOT_VOLUME_TASKS, [], plugins + self._select_input( + _models.DESCRIBE_REPLACE_ROOT_VOLUME_TASKS, args, kwargs + ), + _models.DESCRIBE_REPLACE_ROOT_VOLUME_TASKS, + [], + plugins, ) + @_overload + async def describe_reserved_instances( + self, + request: _models.DescribeReservedInstancesInput + | _models.DescribeReservedInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedInstancesOutput: ... + + @_overload async def describe_reserved_instances( - self, input: DescribeReservedInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedInstancesInputDict], ) -> DescribeReservedInstancesOutput: """ Describes one or more of the Reserved Instances that you purchased. @@ -13415,8 +20725,6 @@ async def describe_reserved_instances( appear in a particular order. Args: - input: - An instance of `DescribeReservedInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13426,14 +20734,34 @@ async def describe_reserved_instances( Returns: An instance of `DescribeReservedInstancesOutput`. """ + + async def describe_reserved_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedInstancesOutput: return await self._invoke( - input, _models.DESCRIBE_RESERVED_INSTANCES, [], plugins + self._select_input(_models.DESCRIBE_RESERVED_INSTANCES, args, kwargs), + _models.DESCRIBE_RESERVED_INSTANCES, + [], + plugins, ) + @_overload + async def describe_reserved_instances_listings( + self, + request: _models.DescribeReservedInstancesListingsInput + | _models.DescribeReservedInstancesListingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedInstancesListingsOutput: ... + + @_overload async def describe_reserved_instances_listings( self, - input: DescribeReservedInstancesListingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedInstancesListingsInputDict], ) -> DescribeReservedInstancesListingsOutput: """ Describes your account's Reserved Instance listings in the Reserved @@ -13467,8 +20795,6 @@ async def describe_reserved_instances_listings( appear in a particular order. Args: - input: - An instance of `DescribeReservedInstancesListingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13478,14 +20804,36 @@ async def describe_reserved_instances_listings( Returns: An instance of `DescribeReservedInstancesListingsOutput`. """ + + async def describe_reserved_instances_listings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedInstancesListingsOutput: return await self._invoke( - input, _models.DESCRIBE_RESERVED_INSTANCES_LISTINGS, [], plugins + self._select_input( + _models.DESCRIBE_RESERVED_INSTANCES_LISTINGS, args, kwargs + ), + _models.DESCRIBE_RESERVED_INSTANCES_LISTINGS, + [], + plugins, ) + @_overload + async def describe_reserved_instances_modifications( + self, + request: _models.DescribeReservedInstancesModificationsInput + | _models.DescribeReservedInstancesModificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedInstancesModificationsOutput: ... + + @_overload async def describe_reserved_instances_modifications( self, - input: DescribeReservedInstancesModificationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedInstancesModificationsInputDict], ) -> DescribeReservedInstancesModificationsOutput: """ Describes the modifications made to your Reserved Instances. If no @@ -13503,8 +20851,6 @@ async def describe_reserved_instances_modifications( appear in a particular order. Args: - input: - An instance of `DescribeReservedInstancesModificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13514,14 +20860,36 @@ async def describe_reserved_instances_modifications( Returns: An instance of `DescribeReservedInstancesModificationsOutput`. """ + + async def describe_reserved_instances_modifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedInstancesModificationsOutput: return await self._invoke( - input, _models.DESCRIBE_RESERVED_INSTANCES_MODIFICATIONS, [], plugins + self._select_input( + _models.DESCRIBE_RESERVED_INSTANCES_MODIFICATIONS, args, kwargs + ), + _models.DESCRIBE_RESERVED_INSTANCES_MODIFICATIONS, + [], + plugins, ) + @_overload async def describe_reserved_instances_offerings( self, - input: DescribeReservedInstancesOfferingsInput, + request: _models.DescribeReservedInstancesOfferingsInput + | _models.DescribeReservedInstancesOfferingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeReservedInstancesOfferingsOutput: ... + + @_overload + async def describe_reserved_instances_offerings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedInstancesOfferingsInputDict], ) -> DescribeReservedInstancesOfferingsOutput: """ Describes Reserved Instance offerings that are available for purchase. @@ -13544,8 +20912,6 @@ async def describe_reserved_instances_offerings( appear in a particular order. Args: - input: - An instance of `DescribeReservedInstancesOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13555,14 +20921,36 @@ async def describe_reserved_instances_offerings( Returns: An instance of `DescribeReservedInstancesOfferingsOutput`. """ + + async def describe_reserved_instances_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedInstancesOfferingsOutput: return await self._invoke( - input, _models.DESCRIBE_RESERVED_INSTANCES_OFFERINGS, [], plugins + self._select_input( + _models.DESCRIBE_RESERVED_INSTANCES_OFFERINGS, args, kwargs + ), + _models.DESCRIBE_RESERVED_INSTANCES_OFFERINGS, + [], + plugins, ) + @_overload + async def describe_route_server_endpoints( + self, + request: _models.DescribeRouteServerEndpointsInput + | _models.DescribeRouteServerEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRouteServerEndpointsOutput: ... + + @_overload async def describe_route_server_endpoints( self, - input: DescribeRouteServerEndpointsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRouteServerEndpointsInputDict], ) -> DescribeRouteServerEndpointsOutput: """ Describes one or more route server endpoints. @@ -13577,8 +20965,6 @@ async def describe_route_server_endpoints( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeRouteServerEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13588,12 +20974,34 @@ async def describe_route_server_endpoints( Returns: An instance of `DescribeRouteServerEndpointsOutput`. """ + + async def describe_route_server_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRouteServerEndpointsOutput: return await self._invoke( - input, _models.DESCRIBE_ROUTE_SERVER_ENDPOINTS, [], plugins + self._select_input(_models.DESCRIBE_ROUTE_SERVER_ENDPOINTS, args, kwargs), + _models.DESCRIBE_ROUTE_SERVER_ENDPOINTS, + [], + plugins, ) + @_overload + async def describe_route_server_peers( + self, + request: _models.DescribeRouteServerPeersInput + | _models.DescribeRouteServerPeersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRouteServerPeersOutput: ... + + @_overload async def describe_route_server_peers( - self, input: DescribeRouteServerPeersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRouteServerPeersInputDict], ) -> DescribeRouteServerPeersOutput: """ Describes one or more route server peers. @@ -13614,8 +21022,6 @@ async def describe_route_server_peers( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeRouteServerPeersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13625,12 +21031,34 @@ async def describe_route_server_peers( Returns: An instance of `DescribeRouteServerPeersOutput`. """ + + async def describe_route_server_peers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRouteServerPeersOutput: return await self._invoke( - input, _models.DESCRIBE_ROUTE_SERVER_PEERS, [], plugins + self._select_input(_models.DESCRIBE_ROUTE_SERVER_PEERS, args, kwargs), + _models.DESCRIBE_ROUTE_SERVER_PEERS, + [], + plugins, ) + @_overload + async def describe_route_servers( + self, + request: _models.DescribeRouteServersInput + | _models.DescribeRouteServersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRouteServersOutput: ... + + @_overload async def describe_route_servers( - self, input: DescribeRouteServersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRouteServersInputDict], ) -> DescribeRouteServersOutput: """ Describes one or more route servers. @@ -13661,8 +21089,6 @@ async def describe_route_servers( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeRouteServersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13672,10 +21098,34 @@ async def describe_route_servers( Returns: An instance of `DescribeRouteServersOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ROUTE_SERVERS, [], plugins) + async def describe_route_servers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRouteServersOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ROUTE_SERVERS, args, kwargs), + _models.DESCRIBE_ROUTE_SERVERS, + [], + plugins, + ) + + @_overload + async def describe_route_tables( + self, + request: _models.DescribeRouteTablesInput + | _models.DescribeRouteTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRouteTablesOutput: ... + + @_overload async def describe_route_tables( - self, input: DescribeRouteTablesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRouteTablesInputDict], ) -> DescribeRouteTablesOutput: """ Describes your route tables. The default is to describe all your route @@ -13693,8 +21143,6 @@ async def describe_route_tables( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeRouteTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13704,12 +21152,34 @@ async def describe_route_tables( Returns: An instance of `DescribeRouteTablesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ROUTE_TABLES, [], plugins) + async def describe_route_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRouteTablesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ROUTE_TABLES, args, kwargs), + _models.DESCRIBE_ROUTE_TABLES, + [], + plugins, + ) + + @_overload + async def describe_scheduled_instance_availability( + self, + request: _models.DescribeScheduledInstanceAvailabilityInput + | _models.DescribeScheduledInstanceAvailabilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeScheduledInstanceAvailabilityOutput: ... + + @_overload async def describe_scheduled_instance_availability( self, - input: DescribeScheduledInstanceAvailabilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeScheduledInstanceAvailabilityInputDict], ) -> DescribeScheduledInstanceAvailabilityOutput: """ Finds available schedules that meet the specified criteria. @@ -13725,8 +21195,6 @@ async def describe_scheduled_instance_availability( schedule. Args: - input: - An instance of `DescribeScheduledInstanceAvailabilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13736,22 +21204,42 @@ async def describe_scheduled_instance_availability( Returns: An instance of `DescribeScheduledInstanceAvailabilityOutput`. """ + + async def describe_scheduled_instance_availability( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeScheduledInstanceAvailabilityOutput: return await self._invoke( - input, _models.DESCRIBE_SCHEDULED_INSTANCE_AVAILABILITY, [], plugins + self._select_input( + _models.DESCRIBE_SCHEDULED_INSTANCE_AVAILABILITY, args, kwargs + ), + _models.DESCRIBE_SCHEDULED_INSTANCE_AVAILABILITY, + [], + plugins, ) + @_overload async def describe_scheduled_instances( self, - input: DescribeScheduledInstancesInput, + request: _models.DescribeScheduledInstancesInput + | _models.DescribeScheduledInstancesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeScheduledInstancesOutput: ... + + @_overload + async def describe_scheduled_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeScheduledInstancesInputDict], ) -> DescribeScheduledInstancesOutput: """ Describes the specified Scheduled Instances or all your Scheduled Instances. Args: - input: - An instance of `DescribeScheduledInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13761,21 +21249,39 @@ async def describe_scheduled_instances( Returns: An instance of `DescribeScheduledInstancesOutput`. """ + + async def describe_scheduled_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeScheduledInstancesOutput: return await self._invoke( - input, _models.DESCRIBE_SCHEDULED_INSTANCES, [], plugins + self._select_input(_models.DESCRIBE_SCHEDULED_INSTANCES, args, kwargs), + _models.DESCRIBE_SCHEDULED_INSTANCES, + [], + plugins, ) + @_overload + async def describe_secondary_interfaces( + self, + request: _models.DescribeSecondaryInterfacesInput + | _models.DescribeSecondaryInterfacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecondaryInterfacesOutput: ... + + @_overload async def describe_secondary_interfaces( self, - input: DescribeSecondaryInterfacesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecondaryInterfacesInputDict], ) -> DescribeSecondaryInterfacesOutput: """ Describes one or more of your secondary interfaces. Args: - input: - An instance of `DescribeSecondaryInterfacesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13785,19 +21291,39 @@ async def describe_secondary_interfaces( Returns: An instance of `DescribeSecondaryInterfacesOutput`. """ + + async def describe_secondary_interfaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecondaryInterfacesOutput: return await self._invoke( - input, _models.DESCRIBE_SECONDARY_INTERFACES, [], plugins + self._select_input(_models.DESCRIBE_SECONDARY_INTERFACES, args, kwargs), + _models.DESCRIBE_SECONDARY_INTERFACES, + [], + plugins, ) + @_overload + async def describe_secondary_networks( + self, + request: _models.DescribeSecondaryNetworksInput + | _models.DescribeSecondaryNetworksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecondaryNetworksOutput: ... + + @_overload async def describe_secondary_networks( - self, input: DescribeSecondaryNetworksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecondaryNetworksInputDict], ) -> DescribeSecondaryNetworksOutput: """ Describes one or more secondary networks. Args: - input: - An instance of `DescribeSecondaryNetworksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13807,19 +21333,39 @@ async def describe_secondary_networks( Returns: An instance of `DescribeSecondaryNetworksOutput`. """ + + async def describe_secondary_networks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecondaryNetworksOutput: return await self._invoke( - input, _models.DESCRIBE_SECONDARY_NETWORKS, [], plugins + self._select_input(_models.DESCRIBE_SECONDARY_NETWORKS, args, kwargs), + _models.DESCRIBE_SECONDARY_NETWORKS, + [], + plugins, ) + @_overload + async def describe_secondary_subnets( + self, + request: _models.DescribeSecondarySubnetsInput + | _models.DescribeSecondarySubnetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecondarySubnetsOutput: ... + + @_overload async def describe_secondary_subnets( - self, input: DescribeSecondarySubnetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecondarySubnetsInputDict], ) -> DescribeSecondarySubnetsOutput: """ Describes one or more of your secondary subnets. Args: - input: - An instance of `DescribeSecondarySubnetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13829,14 +21375,34 @@ async def describe_secondary_subnets( Returns: An instance of `DescribeSecondarySubnetsOutput`. """ + + async def describe_secondary_subnets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecondarySubnetsOutput: return await self._invoke( - input, _models.DESCRIBE_SECONDARY_SUBNETS, [], plugins + self._select_input(_models.DESCRIBE_SECONDARY_SUBNETS, args, kwargs), + _models.DESCRIBE_SECONDARY_SUBNETS, + [], + plugins, ) + @_overload async def describe_security_group_references( self, - input: DescribeSecurityGroupReferencesInput, + request: _models.DescribeSecurityGroupReferencesInput + | _models.DescribeSecurityGroupReferencesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeSecurityGroupReferencesOutput: ... + + @_overload + async def describe_security_group_references( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecurityGroupReferencesInputDict], ) -> DescribeSecurityGroupReferencesOutput: """ Describes the VPCs on the other side of a VPC peering or Transit Gateway @@ -13844,8 +21410,6 @@ async def describe_security_group_references( this request. Args: - input: - An instance of `DescribeSecurityGroupReferencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13855,21 +21419,41 @@ async def describe_security_group_references( Returns: An instance of `DescribeSecurityGroupReferencesOutput`. """ + + async def describe_security_group_references( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecurityGroupReferencesOutput: return await self._invoke( - input, _models.DESCRIBE_SECURITY_GROUP_REFERENCES, [], plugins + self._select_input( + _models.DESCRIBE_SECURITY_GROUP_REFERENCES, args, kwargs + ), + _models.DESCRIBE_SECURITY_GROUP_REFERENCES, + [], + plugins, ) + @_overload + async def describe_security_group_rules( + self, + request: _models.DescribeSecurityGroupRulesInput + | _models.DescribeSecurityGroupRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecurityGroupRulesOutput: ... + + @_overload async def describe_security_group_rules( self, - input: DescribeSecurityGroupRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecurityGroupRulesInputDict], ) -> DescribeSecurityGroupRulesOutput: """ Describes one or more of your security group rules. Args: - input: - An instance of `DescribeSecurityGroupRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13879,19 +21463,39 @@ async def describe_security_group_rules( Returns: An instance of `DescribeSecurityGroupRulesOutput`. """ + + async def describe_security_group_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecurityGroupRulesOutput: return await self._invoke( - input, _models.DESCRIBE_SECURITY_GROUP_RULES, [], plugins + self._select_input(_models.DESCRIBE_SECURITY_GROUP_RULES, args, kwargs), + _models.DESCRIBE_SECURITY_GROUP_RULES, + [], + plugins, ) + @_overload + async def describe_security_groups( + self, + request: _models.DescribeSecurityGroupsInput + | _models.DescribeSecurityGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecurityGroupsOutput: ... + + @_overload async def describe_security_groups( - self, input: DescribeSecurityGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecurityGroupsInputDict], ) -> DescribeSecurityGroupsOutput: """ Describes the specified security groups or all of your security groups. Args: - input: - An instance of `DescribeSecurityGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13901,20 +21505,40 @@ async def describe_security_groups( Returns: An instance of `DescribeSecurityGroupsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_SECURITY_GROUPS, [], plugins) + async def describe_security_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecurityGroupsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_SECURITY_GROUPS, args, kwargs), + _models.DESCRIBE_SECURITY_GROUPS, + [], + plugins, + ) + + @_overload + async def describe_security_group_vpc_associations( + self, + request: _models.DescribeSecurityGroupVpcAssociationsInput + | _models.DescribeSecurityGroupVpcAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecurityGroupVpcAssociationsOutput: ... + + @_overload async def describe_security_group_vpc_associations( self, - input: DescribeSecurityGroupVpcAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecurityGroupVpcAssociationsInputDict], ) -> DescribeSecurityGroupVpcAssociationsOutput: """ Describes security group VPC associations made with [AssociateSecurityGroupVpc](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AssociateSecurityGroupVpc.html). Args: - input: - An instance of `DescribeSecurityGroupVpcAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13924,21 +21548,41 @@ async def describe_security_group_vpc_associations( Returns: An instance of `DescribeSecurityGroupVpcAssociationsOutput`. """ + + async def describe_security_group_vpc_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecurityGroupVpcAssociationsOutput: return await self._invoke( - input, _models.DESCRIBE_SECURITY_GROUP_VPC_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_SECURITY_GROUP_VPC_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_SECURITY_GROUP_VPC_ASSOCIATIONS, + [], + plugins, ) + @_overload async def describe_service_link_virtual_interfaces( self, - input: DescribeServiceLinkVirtualInterfacesInput, + request: _models.DescribeServiceLinkVirtualInterfacesInput + | _models.DescribeServiceLinkVirtualInterfacesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeServiceLinkVirtualInterfacesOutput: ... + + @_overload + async def describe_service_link_virtual_interfaces( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServiceLinkVirtualInterfacesInputDict], ) -> DescribeServiceLinkVirtualInterfacesOutput: """ Describes the Outpost service link virtual interfaces. Args: - input: - An instance of `DescribeServiceLinkVirtualInterfacesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13948,12 +21592,36 @@ async def describe_service_link_virtual_interfaces( Returns: An instance of `DescribeServiceLinkVirtualInterfacesOutput`. """ + + async def describe_service_link_virtual_interfaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServiceLinkVirtualInterfacesOutput: return await self._invoke( - input, _models.DESCRIBE_SERVICE_LINK_VIRTUAL_INTERFACES, [], plugins + self._select_input( + _models.DESCRIBE_SERVICE_LINK_VIRTUAL_INTERFACES, args, kwargs + ), + _models.DESCRIBE_SERVICE_LINK_VIRTUAL_INTERFACES, + [], + plugins, ) + @_overload + async def describe_snapshot_attribute( + self, + request: _models.DescribeSnapshotAttributeInput + | _models.DescribeSnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSnapshotAttributeOutput: ... + + @_overload async def describe_snapshot_attribute( - self, input: DescribeSnapshotAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSnapshotAttributeInputDict], ) -> DescribeSnapshotAttributeOutput: """ Describes the specified attribute of the specified snapshot. You can @@ -13964,8 +21632,6 @@ async def describe_snapshot_attribute( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DescribeSnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13975,12 +21641,33 @@ async def describe_snapshot_attribute( Returns: An instance of `DescribeSnapshotAttributeOutput`. """ + + async def describe_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSnapshotAttributeOutput: return await self._invoke( - input, _models.DESCRIBE_SNAPSHOT_ATTRIBUTE, [], plugins + self._select_input(_models.DESCRIBE_SNAPSHOT_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_SNAPSHOT_ATTRIBUTE, + [], + plugins, ) + @_overload + async def describe_snapshots( + self, + request: _models.DescribeSnapshotsInput | _models.DescribeSnapshotsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSnapshotsOutput: ... + + @_overload async def describe_snapshots( - self, input: DescribeSnapshotsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSnapshotsInputDict], ) -> DescribeSnapshotsOutput: """ Describes the specified EBS snapshots available to you or all of the EBS @@ -14038,8 +21725,6 @@ async def describe_snapshots( requests are susceptible to throttling and timeouts. Args: - input: - An instance of `DescribeSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14049,19 +21734,39 @@ async def describe_snapshots( Returns: An instance of `DescribeSnapshotsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_SNAPSHOTS, [], plugins) + async def describe_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSnapshotsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_SNAPSHOTS, args, kwargs), + _models.DESCRIBE_SNAPSHOTS, + [], + plugins, + ) + + @_overload + async def describe_snapshot_tier_status( + self, + request: _models.DescribeSnapshotTierStatusInput + | _models.DescribeSnapshotTierStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSnapshotTierStatusOutput: ... + + @_overload async def describe_snapshot_tier_status( self, - input: DescribeSnapshotTierStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSnapshotTierStatusInputDict], ) -> DescribeSnapshotTierStatusOutput: """ Describes the storage tier status of one or more Amazon EBS snapshots. Args: - input: - An instance of `DescribeSnapshotTierStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14071,14 +21776,34 @@ async def describe_snapshot_tier_status( Returns: An instance of `DescribeSnapshotTierStatusOutput`. """ + + async def describe_snapshot_tier_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSnapshotTierStatusOutput: return await self._invoke( - input, _models.DESCRIBE_SNAPSHOT_TIER_STATUS, [], plugins + self._select_input(_models.DESCRIBE_SNAPSHOT_TIER_STATUS, args, kwargs), + _models.DESCRIBE_SNAPSHOT_TIER_STATUS, + [], + plugins, ) + @_overload + async def describe_spot_datafeed_subscription( + self, + request: _models.DescribeSpotDatafeedSubscriptionInput + | _models.DescribeSpotDatafeedSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotDatafeedSubscriptionOutput: ... + + @_overload async def describe_spot_datafeed_subscription( self, - input: DescribeSpotDatafeedSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotDatafeedSubscriptionInputDict], ) -> DescribeSpotDatafeedSubscriptionOutput: """ Describes the data feed for Spot Instances. For more information, see @@ -14087,8 +21812,6 @@ async def describe_spot_datafeed_subscription( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeSpotDatafeedSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14098,21 +21821,41 @@ async def describe_spot_datafeed_subscription( Returns: An instance of `DescribeSpotDatafeedSubscriptionOutput`. """ + + async def describe_spot_datafeed_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotDatafeedSubscriptionOutput: return await self._invoke( - input, _models.DESCRIBE_SPOT_DATAFEED_SUBSCRIPTION, [], plugins + self._select_input( + _models.DESCRIBE_SPOT_DATAFEED_SUBSCRIPTION, args, kwargs + ), + _models.DESCRIBE_SPOT_DATAFEED_SUBSCRIPTION, + [], + plugins, ) + @_overload + async def describe_spot_fleet_instances( + self, + request: _models.DescribeSpotFleetInstancesInput + | _models.DescribeSpotFleetInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotFleetInstancesOutput: ... + + @_overload async def describe_spot_fleet_instances( self, - input: DescribeSpotFleetInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotFleetInstancesInputDict], ) -> DescribeSpotFleetInstancesOutput: """ Describes the running instances for the specified Spot Fleet. Args: - input: - An instance of `DescribeSpotFleetInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14122,14 +21865,34 @@ async def describe_spot_fleet_instances( Returns: An instance of `DescribeSpotFleetInstancesOutput`. """ + + async def describe_spot_fleet_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotFleetInstancesOutput: return await self._invoke( - input, _models.DESCRIBE_SPOT_FLEET_INSTANCES, [], plugins + self._select_input(_models.DESCRIBE_SPOT_FLEET_INSTANCES, args, kwargs), + _models.DESCRIBE_SPOT_FLEET_INSTANCES, + [], + plugins, ) + @_overload + async def describe_spot_fleet_request_history( + self, + request: _models.DescribeSpotFleetRequestHistoryInput + | _models.DescribeSpotFleetRequestHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotFleetRequestHistoryOutput: ... + + @_overload async def describe_spot_fleet_request_history( self, - input: DescribeSpotFleetRequestHistoryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotFleetRequestHistoryInputDict], ) -> DescribeSpotFleetRequestHistoryOutput: """ Describes the events for the specified Spot Fleet request during the @@ -14145,8 +21908,6 @@ async def describe_spot_fleet_request_history( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeSpotFleetRequestHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14156,12 +21917,36 @@ async def describe_spot_fleet_request_history( Returns: An instance of `DescribeSpotFleetRequestHistoryOutput`. """ + + async def describe_spot_fleet_request_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotFleetRequestHistoryOutput: return await self._invoke( - input, _models.DESCRIBE_SPOT_FLEET_REQUEST_HISTORY, [], plugins + self._select_input( + _models.DESCRIBE_SPOT_FLEET_REQUEST_HISTORY, args, kwargs + ), + _models.DESCRIBE_SPOT_FLEET_REQUEST_HISTORY, + [], + plugins, ) + @_overload + async def describe_spot_fleet_requests( + self, + request: _models.DescribeSpotFleetRequestsInput + | _models.DescribeSpotFleetRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotFleetRequestsOutput: ... + + @_overload async def describe_spot_fleet_requests( - self, input: DescribeSpotFleetRequestsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotFleetRequestsInputDict], ) -> DescribeSpotFleetRequestsOutput: """ Describes your Spot Fleet requests. @@ -14170,8 +21955,6 @@ async def describe_spot_fleet_requests( their instances are terminated. Args: - input: - An instance of `DescribeSpotFleetRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14181,14 +21964,34 @@ async def describe_spot_fleet_requests( Returns: An instance of `DescribeSpotFleetRequestsOutput`. """ + + async def describe_spot_fleet_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotFleetRequestsOutput: return await self._invoke( - input, _models.DESCRIBE_SPOT_FLEET_REQUESTS, [], plugins + self._select_input(_models.DESCRIBE_SPOT_FLEET_REQUESTS, args, kwargs), + _models.DESCRIBE_SPOT_FLEET_REQUESTS, + [], + plugins, ) + @_overload async def describe_spot_instance_requests( self, - input: DescribeSpotInstanceRequestsInput, + request: _models.DescribeSpotInstanceRequestsInput + | _models.DescribeSpotInstanceRequestsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeSpotInstanceRequestsOutput: ... + + @_overload + async def describe_spot_instance_requests( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotInstanceRequestsInputDict], ) -> DescribeSpotInstanceRequestsOutput: """ Describes the specified Spot Instance requests. @@ -14213,8 +22016,6 @@ async def describe_spot_instance_requests( and their instances are terminated. Args: - input: - An instance of `DescribeSpotInstanceRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14224,12 +22025,34 @@ async def describe_spot_instance_requests( Returns: An instance of `DescribeSpotInstanceRequestsOutput`. """ + + async def describe_spot_instance_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotInstanceRequestsOutput: return await self._invoke( - input, _models.DESCRIBE_SPOT_INSTANCE_REQUESTS, [], plugins + self._select_input(_models.DESCRIBE_SPOT_INSTANCE_REQUESTS, args, kwargs), + _models.DESCRIBE_SPOT_INSTANCE_REQUESTS, + [], + plugins, ) + @_overload + async def describe_spot_price_history( + self, + request: _models.DescribeSpotPriceHistoryInput + | _models.DescribeSpotPriceHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotPriceHistoryOutput: ... + + @_overload async def describe_spot_price_history( - self, input: DescribeSpotPriceHistoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotPriceHistoryInputDict], ) -> DescribeSpotPriceHistoryOutput: """ Describes the Spot price history. For more information, see [Spot @@ -14243,8 +22066,6 @@ async def describe_spot_price_history( the start time. Args: - input: - An instance of `DescribeSpotPriceHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14254,14 +22075,34 @@ async def describe_spot_price_history( Returns: An instance of `DescribeSpotPriceHistoryOutput`. """ + + async def describe_spot_price_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotPriceHistoryOutput: return await self._invoke( - input, _models.DESCRIBE_SPOT_PRICE_HISTORY, [], plugins + self._select_input(_models.DESCRIBE_SPOT_PRICE_HISTORY, args, kwargs), + _models.DESCRIBE_SPOT_PRICE_HISTORY, + [], + plugins, ) + @_overload + async def describe_stale_security_groups( + self, + request: _models.DescribeStaleSecurityGroupsInput + | _models.DescribeStaleSecurityGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStaleSecurityGroupsOutput: ... + + @_overload async def describe_stale_security_groups( self, - input: DescribeStaleSecurityGroupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStaleSecurityGroupsInputDict], ) -> DescribeStaleSecurityGroupsOutput: """ Describes the stale security group rules for security groups referenced @@ -14276,8 +22117,6 @@ async def describe_stale_security_groups( disassociated. Args: - input: - An instance of `DescribeStaleSecurityGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14287,12 +22126,34 @@ async def describe_stale_security_groups( Returns: An instance of `DescribeStaleSecurityGroupsOutput`. """ + + async def describe_stale_security_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStaleSecurityGroupsOutput: return await self._invoke( - input, _models.DESCRIBE_STALE_SECURITY_GROUPS, [], plugins + self._select_input(_models.DESCRIBE_STALE_SECURITY_GROUPS, args, kwargs), + _models.DESCRIBE_STALE_SECURITY_GROUPS, + [], + plugins, ) + @_overload + async def describe_store_image_tasks( + self, + request: _models.DescribeStoreImageTasksInput + | _models.DescribeStoreImageTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStoreImageTasksOutput: ... + + @_overload async def describe_store_image_tasks( - self, input: DescribeStoreImageTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStoreImageTasksInputDict], ) -> DescribeStoreImageTasksOutput: """ Describes the progress of the AMI store tasks. You can describe the @@ -14316,8 +22177,6 @@ async def describe_store_image_tasks( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeStoreImageTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14327,12 +22186,33 @@ async def describe_store_image_tasks( Returns: An instance of `DescribeStoreImageTasksOutput`. """ + + async def describe_store_image_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStoreImageTasksOutput: return await self._invoke( - input, _models.DESCRIBE_STORE_IMAGE_TASKS, [], plugins + self._select_input(_models.DESCRIBE_STORE_IMAGE_TASKS, args, kwargs), + _models.DESCRIBE_STORE_IMAGE_TASKS, + [], + plugins, ) + @_overload async def describe_subnets( - self, input: DescribeSubnetsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeSubnetsInput | _models.DescribeSubnetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSubnetsOutput: ... + + @_overload + async def describe_subnets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSubnetsInputDict], ) -> DescribeSubnetsOutput: """ Describes your subnets. The default is to describe all your subnets. @@ -14344,8 +22224,6 @@ async def describe_subnets( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeSubnetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14355,10 +22233,33 @@ async def describe_subnets( Returns: An instance of `DescribeSubnetsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_SUBNETS, [], plugins) + async def describe_subnets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSubnetsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_SUBNETS, args, kwargs), + _models.DESCRIBE_SUBNETS, + [], + plugins, + ) + + @_overload + async def describe_tags( + self, + request: _models.DescribeTagsInput | _models.DescribeTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTagsOutput: ... + + @_overload async def describe_tags( - self, input: DescribeTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTagsInputDict], ) -> DescribeTagsOutput: """ Describes the specified tags for your EC2 resources. @@ -14376,8 +22277,6 @@ async def describe_tags( appear in a particular order. Args: - input: - An instance of `DescribeTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14387,20 +22286,40 @@ async def describe_tags( Returns: An instance of `DescribeTagsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TAGS, [], plugins) + async def describe_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTagsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TAGS, args, kwargs), + _models.DESCRIBE_TAGS, + [], + plugins, + ) + + @_overload + async def describe_traffic_mirror_filter_rules( + self, + request: _models.DescribeTrafficMirrorFilterRulesInput + | _models.DescribeTrafficMirrorFilterRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrafficMirrorFilterRulesOutput: ... + + @_overload async def describe_traffic_mirror_filter_rules( self, - input: DescribeTrafficMirrorFilterRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrafficMirrorFilterRulesInputDict], ) -> DescribeTrafficMirrorFilterRulesOutput: """ Describe traffic mirror filters that determine the traffic that is mirrored. Args: - input: - An instance of `DescribeTrafficMirrorFilterRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14410,21 +22329,41 @@ async def describe_traffic_mirror_filter_rules( Returns: An instance of `DescribeTrafficMirrorFilterRulesOutput`. """ + + async def describe_traffic_mirror_filter_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrafficMirrorFilterRulesOutput: return await self._invoke( - input, _models.DESCRIBE_TRAFFIC_MIRROR_FILTER_RULES, [], plugins + self._select_input( + _models.DESCRIBE_TRAFFIC_MIRROR_FILTER_RULES, args, kwargs + ), + _models.DESCRIBE_TRAFFIC_MIRROR_FILTER_RULES, + [], + plugins, ) + @_overload + async def describe_traffic_mirror_filters( + self, + request: _models.DescribeTrafficMirrorFiltersInput + | _models.DescribeTrafficMirrorFiltersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrafficMirrorFiltersOutput: ... + + @_overload async def describe_traffic_mirror_filters( self, - input: DescribeTrafficMirrorFiltersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrafficMirrorFiltersInputDict], ) -> DescribeTrafficMirrorFiltersOutput: """ Describes one or more Traffic Mirror filters. Args: - input: - An instance of `DescribeTrafficMirrorFiltersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14434,14 +22373,34 @@ async def describe_traffic_mirror_filters( Returns: An instance of `DescribeTrafficMirrorFiltersOutput`. """ + + async def describe_traffic_mirror_filters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrafficMirrorFiltersOutput: return await self._invoke( - input, _models.DESCRIBE_TRAFFIC_MIRROR_FILTERS, [], plugins + self._select_input(_models.DESCRIBE_TRAFFIC_MIRROR_FILTERS, args, kwargs), + _models.DESCRIBE_TRAFFIC_MIRROR_FILTERS, + [], + plugins, ) + @_overload + async def describe_traffic_mirror_sessions( + self, + request: _models.DescribeTrafficMirrorSessionsInput + | _models.DescribeTrafficMirrorSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrafficMirrorSessionsOutput: ... + + @_overload async def describe_traffic_mirror_sessions( self, - input: DescribeTrafficMirrorSessionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrafficMirrorSessionsInputDict], ) -> DescribeTrafficMirrorSessionsOutput: """ Describes one or more Traffic Mirror sessions. By default, all Traffic @@ -14449,8 +22408,6 @@ async def describe_traffic_mirror_sessions( results. Args: - input: - An instance of `DescribeTrafficMirrorSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14460,21 +22417,39 @@ async def describe_traffic_mirror_sessions( Returns: An instance of `DescribeTrafficMirrorSessionsOutput`. """ + + async def describe_traffic_mirror_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrafficMirrorSessionsOutput: return await self._invoke( - input, _models.DESCRIBE_TRAFFIC_MIRROR_SESSIONS, [], plugins + self._select_input(_models.DESCRIBE_TRAFFIC_MIRROR_SESSIONS, args, kwargs), + _models.DESCRIBE_TRAFFIC_MIRROR_SESSIONS, + [], + plugins, ) + @_overload + async def describe_traffic_mirror_targets( + self, + request: _models.DescribeTrafficMirrorTargetsInput + | _models.DescribeTrafficMirrorTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrafficMirrorTargetsOutput: ... + + @_overload async def describe_traffic_mirror_targets( self, - input: DescribeTrafficMirrorTargetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrafficMirrorTargetsInputDict], ) -> DescribeTrafficMirrorTargetsOutput: """ Information about one or more Traffic Mirror targets. Args: - input: - An instance of `DescribeTrafficMirrorTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14484,14 +22459,34 @@ async def describe_traffic_mirror_targets( Returns: An instance of `DescribeTrafficMirrorTargetsOutput`. """ + + async def describe_traffic_mirror_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrafficMirrorTargetsOutput: return await self._invoke( - input, _models.DESCRIBE_TRAFFIC_MIRROR_TARGETS, [], plugins + self._select_input(_models.DESCRIBE_TRAFFIC_MIRROR_TARGETS, args, kwargs), + _models.DESCRIBE_TRAFFIC_MIRROR_TARGETS, + [], + plugins, ) + @_overload + async def describe_transit_gateway_attachments( + self, + request: _models.DescribeTransitGatewayAttachmentsInput + | _models.DescribeTransitGatewayAttachmentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayAttachmentsOutput: ... + + @_overload async def describe_transit_gateway_attachments( self, - input: DescribeTransitGatewayAttachmentsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayAttachmentsInputDict], ) -> DescribeTransitGatewayAttachmentsOutput: """ Describes one or more attachments between resources and transit @@ -14500,8 +22495,6 @@ async def describe_transit_gateway_attachments( or resource owner. Args: - input: - An instance of `DescribeTransitGatewayAttachmentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14511,21 +22504,41 @@ async def describe_transit_gateway_attachments( Returns: An instance of `DescribeTransitGatewayAttachmentsOutput`. """ + + async def describe_transit_gateway_attachments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayAttachmentsOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_ATTACHMENTS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_ATTACHMENTS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_ATTACHMENTS, + [], + plugins, ) + @_overload + async def describe_transit_gateway_connect_peers( + self, + request: _models.DescribeTransitGatewayConnectPeersInput + | _models.DescribeTransitGatewayConnectPeersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayConnectPeersOutput: ... + + @_overload async def describe_transit_gateway_connect_peers( self, - input: DescribeTransitGatewayConnectPeersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayConnectPeersInputDict], ) -> DescribeTransitGatewayConnectPeersOutput: """ Describes one or more Connect peers. Args: - input: - An instance of `DescribeTransitGatewayConnectPeersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14535,21 +22548,41 @@ async def describe_transit_gateway_connect_peers( Returns: An instance of `DescribeTransitGatewayConnectPeersOutput`. """ + + async def describe_transit_gateway_connect_peers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayConnectPeersOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_CONNECT_PEERS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_CONNECT_PEERS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_CONNECT_PEERS, + [], + plugins, ) + @_overload async def describe_transit_gateway_connects( self, - input: DescribeTransitGatewayConnectsInput, + request: _models.DescribeTransitGatewayConnectsInput + | _models.DescribeTransitGatewayConnectsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayConnectsOutput: ... + + @_overload + async def describe_transit_gateway_connects( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayConnectsInputDict], ) -> DescribeTransitGatewayConnectsOutput: """ Describes one or more Connect attachments. Args: - input: - An instance of `DescribeTransitGatewayConnectsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14559,21 +22592,39 @@ async def describe_transit_gateway_connects( Returns: An instance of `DescribeTransitGatewayConnectsOutput`. """ + + async def describe_transit_gateway_connects( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayConnectsOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_CONNECTS, [], plugins + self._select_input(_models.DESCRIBE_TRANSIT_GATEWAY_CONNECTS, args, kwargs), + _models.DESCRIBE_TRANSIT_GATEWAY_CONNECTS, + [], + plugins, ) + @_overload + async def describe_transit_gateway_metering_policies( + self, + request: _models.DescribeTransitGatewayMeteringPoliciesInput + | _models.DescribeTransitGatewayMeteringPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayMeteringPoliciesOutput: ... + + @_overload async def describe_transit_gateway_metering_policies( self, - input: DescribeTransitGatewayMeteringPoliciesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayMeteringPoliciesInputDict], ) -> DescribeTransitGatewayMeteringPoliciesOutput: """ Describes one or more transit gateway metering policies. Args: - input: - An instance of `DescribeTransitGatewayMeteringPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14583,21 +22634,41 @@ async def describe_transit_gateway_metering_policies( Returns: An instance of `DescribeTransitGatewayMeteringPoliciesOutput`. """ + + async def describe_transit_gateway_metering_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayMeteringPoliciesOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_METERING_POLICIES, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_METERING_POLICIES, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_METERING_POLICIES, + [], + plugins, ) + @_overload + async def describe_transit_gateway_multicast_domains( + self, + request: _models.DescribeTransitGatewayMulticastDomainsInput + | _models.DescribeTransitGatewayMulticastDomainsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayMulticastDomainsOutput: ... + + @_overload async def describe_transit_gateway_multicast_domains( self, - input: DescribeTransitGatewayMulticastDomainsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayMulticastDomainsInputDict], ) -> DescribeTransitGatewayMulticastDomainsOutput: """ Describes one or more transit gateway multicast domains. Args: - input: - An instance of `DescribeTransitGatewayMulticastDomainsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14607,21 +22678,41 @@ async def describe_transit_gateway_multicast_domains( Returns: An instance of `DescribeTransitGatewayMulticastDomainsOutput`. """ + + async def describe_transit_gateway_multicast_domains( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayMulticastDomainsOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_MULTICAST_DOMAINS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_MULTICAST_DOMAINS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_MULTICAST_DOMAINS, + [], + plugins, ) + @_overload + async def describe_transit_gateway_peering_attachments( + self, + request: _models.DescribeTransitGatewayPeeringAttachmentsInput + | _models.DescribeTransitGatewayPeeringAttachmentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayPeeringAttachmentsOutput: ... + + @_overload async def describe_transit_gateway_peering_attachments( self, - input: DescribeTransitGatewayPeeringAttachmentsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayPeeringAttachmentsInputDict], ) -> DescribeTransitGatewayPeeringAttachmentsOutput: """ Describes your transit gateway peering attachments. Args: - input: - An instance of `DescribeTransitGatewayPeeringAttachmentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14631,21 +22722,41 @@ async def describe_transit_gateway_peering_attachments( Returns: An instance of `DescribeTransitGatewayPeeringAttachmentsOutput`. """ + + async def describe_transit_gateway_peering_attachments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayPeeringAttachmentsOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_PEERING_ATTACHMENTS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_PEERING_ATTACHMENTS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_PEERING_ATTACHMENTS, + [], + plugins, ) + @_overload + async def describe_transit_gateway_policy_tables( + self, + request: _models.DescribeTransitGatewayPolicyTablesInput + | _models.DescribeTransitGatewayPolicyTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayPolicyTablesOutput: ... + + @_overload async def describe_transit_gateway_policy_tables( self, - input: DescribeTransitGatewayPolicyTablesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayPolicyTablesInputDict], ) -> DescribeTransitGatewayPolicyTablesOutput: """ Describes one or more transit gateway route policy tables. Args: - input: - An instance of `DescribeTransitGatewayPolicyTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14655,21 +22766,43 @@ async def describe_transit_gateway_policy_tables( Returns: An instance of `DescribeTransitGatewayPolicyTablesOutput`. """ + + async def describe_transit_gateway_policy_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayPolicyTablesOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_POLICY_TABLES, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_POLICY_TABLES, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_POLICY_TABLES, + [], + plugins, ) + @_overload + async def describe_transit_gateway_route_table_announcements( + self, + request: _models.DescribeTransitGatewayRouteTableAnnouncementsInput + | _models.DescribeTransitGatewayRouteTableAnnouncementsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayRouteTableAnnouncementsOutput: ... + + @_overload async def describe_transit_gateway_route_table_announcements( self, - input: DescribeTransitGatewayRouteTableAnnouncementsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeTransitGatewayRouteTableAnnouncementsInputDict + ], ) -> DescribeTransitGatewayRouteTableAnnouncementsOutput: """ Describes one or more transit gateway route table advertisements. Args: - input: - An instance of `DescribeTransitGatewayRouteTableAnnouncementsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14679,17 +22812,36 @@ async def describe_transit_gateway_route_table_announcements( Returns: An instance of `DescribeTransitGatewayRouteTableAnnouncementsOutput`. """ + + async def describe_transit_gateway_route_table_announcements( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayRouteTableAnnouncementsOutput: return await self._invoke( - input, + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENTS, args, kwargs + ), _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENTS, [], plugins, ) + @_overload + async def describe_transit_gateway_route_tables( + self, + request: _models.DescribeTransitGatewayRouteTablesInput + | _models.DescribeTransitGatewayRouteTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayRouteTablesOutput: ... + + @_overload async def describe_transit_gateway_route_tables( self, - input: DescribeTransitGatewayRouteTablesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayRouteTablesInputDict], ) -> DescribeTransitGatewayRouteTablesOutput: """ Describes one or more transit gateway route tables. By default, all @@ -14697,8 +22849,6 @@ async def describe_transit_gateway_route_tables( filter the results. Args: - input: - An instance of `DescribeTransitGatewayRouteTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14708,20 +22858,42 @@ async def describe_transit_gateway_route_tables( Returns: An instance of `DescribeTransitGatewayRouteTablesOutput`. """ + + async def describe_transit_gateway_route_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayRouteTablesOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLES, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLES, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLES, + [], + plugins, ) + @_overload + async def describe_transit_gateways( + self, + request: _models.DescribeTransitGatewaysInput + | _models.DescribeTransitGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewaysOutput: ... + + @_overload async def describe_transit_gateways( - self, input: DescribeTransitGatewaysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewaysInputDict], ) -> DescribeTransitGatewaysOutput: """ Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results. Args: - input: - An instance of `DescribeTransitGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14731,20 +22903,40 @@ async def describe_transit_gateways( Returns: An instance of `DescribeTransitGatewaysOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TRANSIT_GATEWAYS, [], plugins) + async def describe_transit_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewaysOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TRANSIT_GATEWAYS, args, kwargs), + _models.DESCRIBE_TRANSIT_GATEWAYS, + [], + plugins, + ) + + @_overload + async def describe_transit_gateway_vpc_attachments( + self, + request: _models.DescribeTransitGatewayVpcAttachmentsInput + | _models.DescribeTransitGatewayVpcAttachmentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayVpcAttachmentsOutput: ... + + @_overload async def describe_transit_gateway_vpc_attachments( self, - input: DescribeTransitGatewayVpcAttachmentsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayVpcAttachmentsInputDict], ) -> DescribeTransitGatewayVpcAttachmentsOutput: """ Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results. Args: - input: - An instance of `DescribeTransitGatewayVpcAttachmentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14754,21 +22946,41 @@ async def describe_transit_gateway_vpc_attachments( Returns: An instance of `DescribeTransitGatewayVpcAttachmentsOutput`. """ + + async def describe_transit_gateway_vpc_attachments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayVpcAttachmentsOutput: return await self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_VPC_ATTACHMENTS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_VPC_ATTACHMENTS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_VPC_ATTACHMENTS, + [], + plugins, ) + @_overload + async def describe_trunk_interface_associations( + self, + request: _models.DescribeTrunkInterfaceAssociationsInput + | _models.DescribeTrunkInterfaceAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrunkInterfaceAssociationsOutput: ... + + @_overload async def describe_trunk_interface_associations( self, - input: DescribeTrunkInterfaceAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrunkInterfaceAssociationsInputDict], ) -> DescribeTrunkInterfaceAssociationsOutput: """ Describes one or more network interface trunk associations. Args: - input: - An instance of `DescribeTrunkInterfaceAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14778,21 +22990,41 @@ async def describe_trunk_interface_associations( Returns: An instance of `DescribeTrunkInterfaceAssociationsOutput`. """ + + async def describe_trunk_interface_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrunkInterfaceAssociationsOutput: return await self._invoke( - input, _models.DESCRIBE_TRUNK_INTERFACE_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_TRUNK_INTERFACE_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_TRUNK_INTERFACE_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def describe_verified_access_endpoints( + self, + request: _models.DescribeVerifiedAccessEndpointsInput + | _models.DescribeVerifiedAccessEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessEndpointsOutput: ... + + @_overload async def describe_verified_access_endpoints( self, - input: DescribeVerifiedAccessEndpointsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVerifiedAccessEndpointsInputDict], ) -> DescribeVerifiedAccessEndpointsOutput: """ Describes the specified Amazon Web Services Verified Access endpoints. Args: - input: - An instance of `DescribeVerifiedAccessEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14802,21 +23034,41 @@ async def describe_verified_access_endpoints( Returns: An instance of `DescribeVerifiedAccessEndpointsOutput`. """ + + async def describe_verified_access_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessEndpointsOutput: return await self._invoke( - input, _models.DESCRIBE_VERIFIED_ACCESS_ENDPOINTS, [], plugins + self._select_input( + _models.DESCRIBE_VERIFIED_ACCESS_ENDPOINTS, args, kwargs + ), + _models.DESCRIBE_VERIFIED_ACCESS_ENDPOINTS, + [], + plugins, ) + @_overload + async def describe_verified_access_groups( + self, + request: _models.DescribeVerifiedAccessGroupsInput + | _models.DescribeVerifiedAccessGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessGroupsOutput: ... + + @_overload async def describe_verified_access_groups( self, - input: DescribeVerifiedAccessGroupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVerifiedAccessGroupsInputDict], ) -> DescribeVerifiedAccessGroupsOutput: """ Describes the specified Verified Access groups. Args: - input: - An instance of `DescribeVerifiedAccessGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14826,21 +23078,41 @@ async def describe_verified_access_groups( Returns: An instance of `DescribeVerifiedAccessGroupsOutput`. """ + + async def describe_verified_access_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessGroupsOutput: return await self._invoke( - input, _models.DESCRIBE_VERIFIED_ACCESS_GROUPS, [], plugins + self._select_input(_models.DESCRIBE_VERIFIED_ACCESS_GROUPS, args, kwargs), + _models.DESCRIBE_VERIFIED_ACCESS_GROUPS, + [], + plugins, ) + @_overload + async def describe_verified_access_instance_logging_configurations( + self, + request: _models.DescribeVerifiedAccessInstanceLoggingConfigurationsInput + | _models.DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessInstanceLoggingConfigurationsOutput: ... + + @_overload async def describe_verified_access_instance_logging_configurations( self, - input: DescribeVerifiedAccessInstanceLoggingConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict + ], ) -> DescribeVerifiedAccessInstanceLoggingConfigurationsOutput: """ Describes the specified Amazon Web Services Verified Access instances. Args: - input: - An instance of `DescribeVerifiedAccessInstanceLoggingConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14850,24 +23122,43 @@ async def describe_verified_access_instance_logging_configurations( Returns: An instance of `DescribeVerifiedAccessInstanceLoggingConfigurationsOutput`. """ + + async def describe_verified_access_instance_logging_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessInstanceLoggingConfigurationsOutput: return await self._invoke( - input, + self._select_input( + _models.DESCRIBE_VERIFIED_ACCESS_INSTANCE_LOGGING_CONFIGURATIONS, + args, + kwargs, + ), _models.DESCRIBE_VERIFIED_ACCESS_INSTANCE_LOGGING_CONFIGURATIONS, [], plugins, ) + @_overload + async def describe_verified_access_instances( + self, + request: _models.DescribeVerifiedAccessInstancesInput + | _models.DescribeVerifiedAccessInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessInstancesOutput: ... + + @_overload async def describe_verified_access_instances( self, - input: DescribeVerifiedAccessInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVerifiedAccessInstancesInputDict], ) -> DescribeVerifiedAccessInstancesOutput: """ Describes the specified Amazon Web Services Verified Access instances. Args: - input: - An instance of `DescribeVerifiedAccessInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14877,22 +23168,42 @@ async def describe_verified_access_instances( Returns: An instance of `DescribeVerifiedAccessInstancesOutput`. """ + + async def describe_verified_access_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessInstancesOutput: return await self._invoke( - input, _models.DESCRIBE_VERIFIED_ACCESS_INSTANCES, [], plugins + self._select_input( + _models.DESCRIBE_VERIFIED_ACCESS_INSTANCES, args, kwargs + ), + _models.DESCRIBE_VERIFIED_ACCESS_INSTANCES, + [], + plugins, ) + @_overload + async def describe_verified_access_trust_providers( + self, + request: _models.DescribeVerifiedAccessTrustProvidersInput + | _models.DescribeVerifiedAccessTrustProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessTrustProvidersOutput: ... + + @_overload async def describe_verified_access_trust_providers( self, - input: DescribeVerifiedAccessTrustProvidersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVerifiedAccessTrustProvidersInputDict], ) -> DescribeVerifiedAccessTrustProvidersOutput: """ Describes the specified Amazon Web Services Verified Access trust providers. Args: - input: - An instance of `DescribeVerifiedAccessTrustProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14902,12 +23213,36 @@ async def describe_verified_access_trust_providers( Returns: An instance of `DescribeVerifiedAccessTrustProvidersOutput`. """ + + async def describe_verified_access_trust_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessTrustProvidersOutput: return await self._invoke( - input, _models.DESCRIBE_VERIFIED_ACCESS_TRUST_PROVIDERS, [], plugins + self._select_input( + _models.DESCRIBE_VERIFIED_ACCESS_TRUST_PROVIDERS, args, kwargs + ), + _models.DESCRIBE_VERIFIED_ACCESS_TRUST_PROVIDERS, + [], + plugins, ) + @_overload + async def describe_volume_attribute( + self, + request: _models.DescribeVolumeAttributeInput + | _models.DescribeVolumeAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVolumeAttributeOutput: ... + + @_overload async def describe_volume_attribute( - self, input: DescribeVolumeAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVolumeAttributeInputDict], ) -> DescribeVolumeAttributeOutput: """ Describes the specified attribute of the specified volume. You can @@ -14918,8 +23253,6 @@ async def describe_volume_attribute( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DescribeVolumeAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14929,10 +23262,33 @@ async def describe_volume_attribute( Returns: An instance of `DescribeVolumeAttributeOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VOLUME_ATTRIBUTE, [], plugins) + async def describe_volume_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVolumeAttributeOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VOLUME_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_VOLUME_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def describe_volumes( + self, + request: _models.DescribeVolumesInput | _models.DescribeVolumesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVolumesOutput: ... + + @_overload async def describe_volumes( - self, input: DescribeVolumesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVolumesInputDict], ) -> DescribeVolumesOutput: """ Describes the specified EBS volumes or all of your EBS volumes. @@ -14955,8 +23311,6 @@ async def describe_volumes( appear in a particular order. Args: - input: - An instance of `DescribeVolumesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14966,12 +23320,34 @@ async def describe_volumes( Returns: An instance of `DescribeVolumesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VOLUMES, [], plugins) + async def describe_volumes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVolumesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VOLUMES, args, kwargs), + _models.DESCRIBE_VOLUMES, + [], + plugins, + ) + + @_overload + async def describe_volumes_modifications( + self, + request: _models.DescribeVolumesModificationsInput + | _models.DescribeVolumesModificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVolumesModificationsOutput: ... + + @_overload async def describe_volumes_modifications( self, - input: DescribeVolumesModificationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVolumesModificationsInputDict], ) -> DescribeVolumesModificationsOutput: """ Describes the most recent volume modification request for the specified @@ -14982,8 +23358,6 @@ async def describe_volumes_modifications( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DescribeVolumesModificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14993,12 +23367,34 @@ async def describe_volumes_modifications( Returns: An instance of `DescribeVolumesModificationsOutput`. """ + + async def describe_volumes_modifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVolumesModificationsOutput: return await self._invoke( - input, _models.DESCRIBE_VOLUMES_MODIFICATIONS, [], plugins + self._select_input(_models.DESCRIBE_VOLUMES_MODIFICATIONS, args, kwargs), + _models.DESCRIBE_VOLUMES_MODIFICATIONS, + [], + plugins, ) + @_overload + async def describe_volume_status( + self, + request: _models.DescribeVolumeStatusInput + | _models.DescribeVolumeStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVolumeStatusOutput: ... + + @_overload async def describe_volume_status( - self, input: DescribeVolumeStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVolumeStatusInputDict], ) -> DescribeVolumeStatusOutput: """ Describes the status of the specified volumes. Volume status provides @@ -15049,8 +23445,6 @@ async def describe_volume_status( appear in a particular order. Args: - input: - An instance of `DescribeVolumeStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15060,18 +23454,40 @@ async def describe_volume_status( Returns: An instance of `DescribeVolumeStatusOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VOLUME_STATUS, [], plugins) + async def describe_volume_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVolumeStatusOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VOLUME_STATUS, args, kwargs), + _models.DESCRIBE_VOLUME_STATUS, + [], + plugins, + ) + + @_overload + async def describe_vpc_attribute( + self, + request: _models.DescribeVpcAttributeInput + | _models.DescribeVpcAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcAttributeOutput: ... + + @_overload async def describe_vpc_attribute( - self, input: DescribeVpcAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcAttributeInputDict], ) -> DescribeVpcAttributeOutput: """ Describes the specified attribute of the specified VPC. You can specify only one attribute at a time. Args: - input: - An instance of `DescribeVpcAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15081,12 +23497,34 @@ async def describe_vpc_attribute( Returns: An instance of `DescribeVpcAttributeOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VPC_ATTRIBUTE, [], plugins) + async def describe_vpc_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcAttributeOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VPC_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_VPC_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def describe_vpc_block_public_access_exclusions( + self, + request: _models.DescribeVpcBlockPublicAccessExclusionsInput + | _models.DescribeVpcBlockPublicAccessExclusionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcBlockPublicAccessExclusionsOutput: ... + + @_overload async def describe_vpc_block_public_access_exclusions( self, - input: DescribeVpcBlockPublicAccessExclusionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcBlockPublicAccessExclusionsInputDict], ) -> DescribeVpcBlockPublicAccessExclusionsOutput: """ Describe VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion @@ -15100,8 +23538,6 @@ async def describe_vpc_block_public_access_exclusions( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeVpcBlockPublicAccessExclusionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15111,14 +23547,36 @@ async def describe_vpc_block_public_access_exclusions( Returns: An instance of `DescribeVpcBlockPublicAccessExclusionsOutput`. """ + + async def describe_vpc_block_public_access_exclusions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcBlockPublicAccessExclusionsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSIONS, args, kwargs + ), + _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSIONS, + [], + plugins, ) + @_overload + async def describe_vpc_block_public_access_options( + self, + request: _models.DescribeVpcBlockPublicAccessOptionsInput + | _models.DescribeVpcBlockPublicAccessOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcBlockPublicAccessOptionsOutput: ... + + @_overload async def describe_vpc_block_public_access_options( self, - input: DescribeVpcBlockPublicAccessOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcBlockPublicAccessOptionsInputDict], ) -> DescribeVpcBlockPublicAccessOptionsOutput: """ Describe VPC Block Public Access (BPA) options. VPC Block Public Access @@ -15130,8 +23588,6 @@ async def describe_vpc_block_public_access_options( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeVpcBlockPublicAccessOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15141,12 +23597,36 @@ async def describe_vpc_block_public_access_options( Returns: An instance of `DescribeVpcBlockPublicAccessOptionsOutput`. """ + + async def describe_vpc_block_public_access_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcBlockPublicAccessOptionsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, args, kwargs + ), + _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, + [], + plugins, ) + @_overload + async def describe_vpc_classic_link( + self, + request: _models.DescribeVpcClassicLinkInput + | _models.DescribeVpcClassicLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcClassicLinkOutput: ... + + @_overload async def describe_vpc_classic_link( - self, input: DescribeVpcClassicLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcClassicLinkInputDict], ) -> DescribeVpcClassicLinkOutput: """ Note: @@ -15155,8 +23635,6 @@ async def describe_vpc_classic_link( Describes the ClassicLink status of the specified VPCs. Args: - input: - An instance of `DescribeVpcClassicLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15166,12 +23644,34 @@ async def describe_vpc_classic_link( Returns: An instance of `DescribeVpcClassicLinkOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VPC_CLASSIC_LINK, [], plugins) + async def describe_vpc_classic_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcClassicLinkOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VPC_CLASSIC_LINK, args, kwargs), + _models.DESCRIBE_VPC_CLASSIC_LINK, + [], + plugins, + ) + + @_overload + async def describe_vpc_classic_link_dns_support( + self, + request: _models.DescribeVpcClassicLinkDnsSupportInput + | _models.DescribeVpcClassicLinkDnsSupportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcClassicLinkDnsSupportOutput: ... + + @_overload async def describe_vpc_classic_link_dns_support( self, - input: DescribeVpcClassicLinkDnsSupportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcClassicLinkDnsSupportInputDict], ) -> DescribeVpcClassicLinkDnsSupportOutput: """ Note: @@ -15185,8 +23685,6 @@ async def describe_vpc_classic_link_dns_support( EC2-Classic instance. Args: - input: - An instance of `DescribeVpcClassicLinkDnsSupportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15196,14 +23694,36 @@ async def describe_vpc_classic_link_dns_support( Returns: An instance of `DescribeVpcClassicLinkDnsSupportOutput`. """ + + async def describe_vpc_classic_link_dns_support( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcClassicLinkDnsSupportOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_CLASSIC_LINK_DNS_SUPPORT, [], plugins + self._select_input( + _models.DESCRIBE_VPC_CLASSIC_LINK_DNS_SUPPORT, args, kwargs + ), + _models.DESCRIBE_VPC_CLASSIC_LINK_DNS_SUPPORT, + [], + plugins, ) + @_overload + async def describe_vpc_encryption_controls( + self, + request: _models.DescribeVpcEncryptionControlsInput + | _models.DescribeVpcEncryptionControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEncryptionControlsOutput: ... + + @_overload async def describe_vpc_encryption_controls( self, - input: DescribeVpcEncryptionControlsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEncryptionControlsInputDict], ) -> DescribeVpcEncryptionControlsOutput: """ Describes one or more VPC Encryption Control configurations. VPC @@ -15217,8 +23737,6 @@ async def describe_vpc_encryption_controls( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeVpcEncryptionControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15228,22 +23746,40 @@ async def describe_vpc_encryption_controls( Returns: An instance of `DescribeVpcEncryptionControlsOutput`. """ + + async def describe_vpc_encryption_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEncryptionControlsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_ENCRYPTION_CONTROLS, [], plugins + self._select_input(_models.DESCRIBE_VPC_ENCRYPTION_CONTROLS, args, kwargs), + _models.DESCRIBE_VPC_ENCRYPTION_CONTROLS, + [], + plugins, ) + @_overload + async def describe_vpc_endpoint_associations( + self, + request: _models.DescribeVpcEndpointAssociationsInput + | _models.DescribeVpcEndpointAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointAssociationsOutput: ... + + @_overload async def describe_vpc_endpoint_associations( self, - input: DescribeVpcEndpointAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointAssociationsInputDict], ) -> DescribeVpcEndpointAssociationsOutput: """ Describes the VPC resources, VPC endpoint services, Amazon Lattice services, or service networks associated with the VPC endpoint. Args: - input: - An instance of `DescribeVpcEndpointAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15253,22 +23789,42 @@ async def describe_vpc_endpoint_associations( Returns: An instance of `DescribeVpcEndpointAssociationsOutput`. """ + + async def describe_vpc_endpoint_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointAssociationsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_ENDPOINT_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_VPC_ENDPOINT_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def describe_vpc_endpoint_connection_notifications( + self, + request: _models.DescribeVpcEndpointConnectionNotificationsInput + | _models.DescribeVpcEndpointConnectionNotificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointConnectionNotificationsOutput: ... + + @_overload async def describe_vpc_endpoint_connection_notifications( self, - input: DescribeVpcEndpointConnectionNotificationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointConnectionNotificationsInputDict], ) -> DescribeVpcEndpointConnectionNotificationsOutput: """ Describes the connection notifications for VPC endpoints and VPC endpoint services. Args: - input: - An instance of `DescribeVpcEndpointConnectionNotificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15278,22 +23834,42 @@ async def describe_vpc_endpoint_connection_notifications( Returns: An instance of `DescribeVpcEndpointConnectionNotificationsOutput`. """ + + async def describe_vpc_endpoint_connection_notifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointConnectionNotificationsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, args, kwargs + ), + _models.DESCRIBE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, + [], + plugins, ) + @_overload + async def describe_vpc_endpoint_connections( + self, + request: _models.DescribeVpcEndpointConnectionsInput + | _models.DescribeVpcEndpointConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointConnectionsOutput: ... + + @_overload async def describe_vpc_endpoint_connections( self, - input: DescribeVpcEndpointConnectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointConnectionsInputDict], ) -> DescribeVpcEndpointConnectionsOutput: """ Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance. Args: - input: - An instance of `DescribeVpcEndpointConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15303,12 +23879,34 @@ async def describe_vpc_endpoint_connections( Returns: An instance of `DescribeVpcEndpointConnectionsOutput`. """ + + async def describe_vpc_endpoint_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointConnectionsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_CONNECTIONS, [], plugins + self._select_input(_models.DESCRIBE_VPC_ENDPOINT_CONNECTIONS, args, kwargs), + _models.DESCRIBE_VPC_ENDPOINT_CONNECTIONS, + [], + plugins, ) + @_overload async def describe_vpc_endpoints( - self, input: DescribeVpcEndpointsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeVpcEndpointsInput + | _models.DescribeVpcEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointsOutput: ... + + @_overload + async def describe_vpc_endpoints( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointsInputDict], ) -> DescribeVpcEndpointsOutput: """ Describes your VPC endpoints. The default is to describe all your VPC @@ -15317,8 +23915,6 @@ async def describe_vpc_endpoints( criteria. Args: - input: - An instance of `DescribeVpcEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15328,20 +23924,40 @@ async def describe_vpc_endpoints( Returns: An instance of `DescribeVpcEndpointsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VPC_ENDPOINTS, [], plugins) + async def describe_vpc_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VPC_ENDPOINTS, args, kwargs), + _models.DESCRIBE_VPC_ENDPOINTS, + [], + plugins, + ) + + @_overload + async def describe_vpc_endpoint_service_configurations( + self, + request: _models.DescribeVpcEndpointServiceConfigurationsInput + | _models.DescribeVpcEndpointServiceConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointServiceConfigurationsOutput: ... + + @_overload async def describe_vpc_endpoint_service_configurations( self, - input: DescribeVpcEndpointServiceConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointServiceConfigurationsInputDict], ) -> DescribeVpcEndpointServiceConfigurationsOutput: """ Describes the VPC endpoint service configurations in your account (your services). Args: - input: - An instance of `DescribeVpcEndpointServiceConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15351,14 +23967,36 @@ async def describe_vpc_endpoint_service_configurations( Returns: An instance of `DescribeVpcEndpointServiceConfigurationsOutput`. """ + + async def describe_vpc_endpoint_service_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointServiceConfigurationsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, args, kwargs + ), + _models.DESCRIBE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, + [], + plugins, ) + @_overload + async def describe_vpc_endpoint_service_permissions( + self, + request: _models.DescribeVpcEndpointServicePermissionsInput + | _models.DescribeVpcEndpointServicePermissionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointServicePermissionsOutput: ... + + @_overload async def describe_vpc_endpoint_service_permissions( self, - input: DescribeVpcEndpointServicePermissionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointServicePermissionsInputDict], ) -> DescribeVpcEndpointServicePermissionsOutput: """ Describes the principals (service consumers) that are permitted to @@ -15366,8 +24004,6 @@ async def describe_vpc_endpoint_service_permissions( aren't supported. Args: - input: - An instance of `DescribeVpcEndpointServicePermissionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15377,14 +24013,36 @@ async def describe_vpc_endpoint_service_permissions( Returns: An instance of `DescribeVpcEndpointServicePermissionsOutput`. """ + + async def describe_vpc_endpoint_service_permissions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointServicePermissionsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_SERVICE_PERMISSIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_ENDPOINT_SERVICE_PERMISSIONS, args, kwargs + ), + _models.DESCRIBE_VPC_ENDPOINT_SERVICE_PERMISSIONS, + [], + plugins, ) + @_overload + async def describe_vpc_endpoint_services( + self, + request: _models.DescribeVpcEndpointServicesInput + | _models.DescribeVpcEndpointServicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointServicesOutput: ... + + @_overload async def describe_vpc_endpoint_services( self, - input: DescribeVpcEndpointServicesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointServicesInputDict], ) -> DescribeVpcEndpointServicesOutput: """ Describes available services to which you can create a VPC endpoint. @@ -15398,8 +24056,6 @@ async def describe_vpc_endpoint_services( Availability Zone, `us-east-1a`. Args: - input: - An instance of `DescribeVpcEndpointServicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15409,14 +24065,34 @@ async def describe_vpc_endpoint_services( Returns: An instance of `DescribeVpcEndpointServicesOutput`. """ + + async def describe_vpc_endpoint_services( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointServicesOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_SERVICES, [], plugins + self._select_input(_models.DESCRIBE_VPC_ENDPOINT_SERVICES, args, kwargs), + _models.DESCRIBE_VPC_ENDPOINT_SERVICES, + [], + plugins, ) + @_overload async def describe_vpc_peering_connections( self, - input: DescribeVpcPeeringConnectionsInput, + request: _models.DescribeVpcPeeringConnectionsInput + | _models.DescribeVpcPeeringConnectionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeVpcPeeringConnectionsOutput: ... + + @_overload + async def describe_vpc_peering_connections( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcPeeringConnectionsInputDict], ) -> DescribeVpcPeeringConnectionsOutput: """ Describes your VPC peering connections. The default is to describe all @@ -15425,8 +24101,6 @@ async def describe_vpc_peering_connections( peering connections that match specific criteria. Args: - input: - An instance of `DescribeVpcPeeringConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15436,12 +24110,33 @@ async def describe_vpc_peering_connections( Returns: An instance of `DescribeVpcPeeringConnectionsOutput`. """ + + async def describe_vpc_peering_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcPeeringConnectionsOutput: return await self._invoke( - input, _models.DESCRIBE_VPC_PEERING_CONNECTIONS, [], plugins + self._select_input(_models.DESCRIBE_VPC_PEERING_CONNECTIONS, args, kwargs), + _models.DESCRIBE_VPC_PEERING_CONNECTIONS, + [], + plugins, ) + @_overload + async def describe_vpcs( + self, + request: _models.DescribeVpcsInput | _models.DescribeVpcsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcsOutput: ... + + @_overload async def describe_vpcs( - self, input: DescribeVpcsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcsInputDict], ) -> DescribeVpcsOutput: """ Describes your VPCs. The default is to describe all your VPCs. @@ -15449,8 +24144,6 @@ async def describe_vpcs( include only the VPCs that match specific criteria. Args: - input: - An instance of `DescribeVpcsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15460,17 +24153,39 @@ async def describe_vpcs( Returns: An instance of `DescribeVpcsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VPCS, [], plugins) + async def describe_vpcs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VPCS, args, kwargs), + _models.DESCRIBE_VPCS, + [], + plugins, + ) + + @_overload + async def describe_vpn_concentrators( + self, + request: _models.DescribeVpnConcentratorsInput + | _models.DescribeVpnConcentratorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpnConcentratorsOutput: ... + + @_overload async def describe_vpn_concentrators( - self, input: DescribeVpnConcentratorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpnConcentratorsInputDict], ) -> DescribeVpnConcentratorsOutput: """ Describes one or more of your VPN concentrators. Args: - input: - An instance of `DescribeVpnConcentratorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15480,12 +24195,34 @@ async def describe_vpn_concentrators( Returns: An instance of `DescribeVpnConcentratorsOutput`. """ + + async def describe_vpn_concentrators( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpnConcentratorsOutput: return await self._invoke( - input, _models.DESCRIBE_VPN_CONCENTRATORS, [], plugins + self._select_input(_models.DESCRIBE_VPN_CONCENTRATORS, args, kwargs), + _models.DESCRIBE_VPN_CONCENTRATORS, + [], + plugins, ) + @_overload + async def describe_vpn_connections( + self, + request: _models.DescribeVpnConnectionsInput + | _models.DescribeVpnConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpnConnectionsOutput: ... + + @_overload async def describe_vpn_connections( - self, input: DescribeVpnConnectionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpnConnectionsInputDict], ) -> DescribeVpnConnectionsOutput: """ Describes one or more of your VPN connections. @@ -15495,8 +24232,6 @@ async def describe_vpn_connections( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `DescribeVpnConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15506,10 +24241,34 @@ async def describe_vpn_connections( Returns: An instance of `DescribeVpnConnectionsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VPN_CONNECTIONS, [], plugins) + async def describe_vpn_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpnConnectionsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VPN_CONNECTIONS, args, kwargs), + _models.DESCRIBE_VPN_CONNECTIONS, + [], + plugins, + ) + + @_overload + async def describe_vpn_gateways( + self, + request: _models.DescribeVpnGatewaysInput + | _models.DescribeVpnGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpnGatewaysOutput: ... + + @_overload async def describe_vpn_gateways( - self, input: DescribeVpnGatewaysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpnGatewaysInputDict], ) -> DescribeVpnGatewaysOutput: """ Describes one or more of your virtual private gateways. @@ -15519,8 +24278,6 @@ async def describe_vpn_gateways( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `DescribeVpnGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15530,10 +24287,34 @@ async def describe_vpn_gateways( Returns: An instance of `DescribeVpnGatewaysOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VPN_GATEWAYS, [], plugins) + async def describe_vpn_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpnGatewaysOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VPN_GATEWAYS, args, kwargs), + _models.DESCRIBE_VPN_GATEWAYS, + [], + plugins, + ) + + @_overload + async def detach_classic_link_vpc( + self, + request: _models.DetachClassicLinkVpcInput + | _models.DetachClassicLinkVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachClassicLinkVpcOutput: ... + + @_overload async def detach_classic_link_vpc( - self, input: DetachClassicLinkVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachClassicLinkVpcInputDict], ) -> DetachClassicLinkVpcOutput: """ Note: @@ -15545,8 +24326,6 @@ async def detach_classic_link_vpc( when it's stopped. Args: - input: - An instance of `DetachClassicLinkVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15556,10 +24335,34 @@ async def detach_classic_link_vpc( Returns: An instance of `DetachClassicLinkVpcOutput`. """ - return await self._invoke(input, _models.DETACH_CLASSIC_LINK_VPC, [], plugins) + async def detach_classic_link_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachClassicLinkVpcOutput: + return await self._invoke( + self._select_input(_models.DETACH_CLASSIC_LINK_VPC, args, kwargs), + _models.DETACH_CLASSIC_LINK_VPC, + [], + plugins, + ) + + @_overload async def detach_image_watermark( - self, input: DetachImageWatermarkInput, plugins: list[Plugin] | None = None + self, + request: _models.DetachImageWatermarkInput + | _models.DetachImageWatermarkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachImageWatermarkOutput: ... + + @_overload + async def detach_image_watermark( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachImageWatermarkInputDict], ) -> DetachImageWatermarkOutput: """ Removes a watermark from the specified AMI. This is an idempotent @@ -15572,8 +24375,6 @@ async def detach_image_watermark( Only the AMI owner can detach watermarks. Args: - input: - An instance of `DetachImageWatermarkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15583,10 +24384,34 @@ async def detach_image_watermark( Returns: An instance of `DetachImageWatermarkOutput`. """ - return await self._invoke(input, _models.DETACH_IMAGE_WATERMARK, [], plugins) + async def detach_image_watermark( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachImageWatermarkOutput: + return await self._invoke( + self._select_input(_models.DETACH_IMAGE_WATERMARK, args, kwargs), + _models.DETACH_IMAGE_WATERMARK, + [], + plugins, + ) + + @_overload + async def detach_internet_gateway( + self, + request: _models.DetachInternetGatewayInput + | _models.DetachInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachInternetGatewayOutput: ... + + @_overload async def detach_internet_gateway( - self, input: DetachInternetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachInternetGatewayInputDict], ) -> DetachInternetGatewayOutput: """ Detaches an internet gateway from a VPC, disabling connectivity between @@ -15594,8 +24419,6 @@ async def detach_internet_gateway( with Elastic IP addresses or public IPv4 addresses. Args: - input: - An instance of `DetachInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15605,17 +24428,39 @@ async def detach_internet_gateway( Returns: An instance of `DetachInternetGatewayOutput`. """ - return await self._invoke(input, _models.DETACH_INTERNET_GATEWAY, [], plugins) + async def detach_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachInternetGatewayOutput: + return await self._invoke( + self._select_input(_models.DETACH_INTERNET_GATEWAY, args, kwargs), + _models.DETACH_INTERNET_GATEWAY, + [], + plugins, + ) + + @_overload + async def detach_network_interface( + self, + request: _models.DetachNetworkInterfaceInput + | _models.DetachNetworkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachNetworkInterfaceOutput: ... + + @_overload async def detach_network_interface( - self, input: DetachNetworkInterfaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachNetworkInterfaceInputDict], ) -> DetachNetworkInterfaceOutput: """ Detaches a network interface from an instance. Args: - input: - An instance of `DetachNetworkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15625,12 +24470,34 @@ async def detach_network_interface( Returns: An instance of `DetachNetworkInterfaceOutput`. """ - return await self._invoke(input, _models.DETACH_NETWORK_INTERFACE, [], plugins) + async def detach_network_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachNetworkInterfaceOutput: + return await self._invoke( + self._select_input(_models.DETACH_NETWORK_INTERFACE, args, kwargs), + _models.DETACH_NETWORK_INTERFACE, + [], + plugins, + ) + + @_overload + async def detach_verified_access_trust_provider( + self, + request: _models.DetachVerifiedAccessTrustProviderInput + | _models.DetachVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachVerifiedAccessTrustProviderOutput: ... + + @_overload async def detach_verified_access_trust_provider( self, - input: DetachVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachVerifiedAccessTrustProviderInputDict], ) -> DetachVerifiedAccessTrustProviderOutput: """ Detaches the specified Amazon Web Services Verified Access trust @@ -15638,8 +24505,6 @@ async def detach_verified_access_trust_provider( instance. Args: - input: - An instance of `DetachVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15649,12 +24514,35 @@ async def detach_verified_access_trust_provider( Returns: An instance of `DetachVerifiedAccessTrustProviderOutput`. """ + + async def detach_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachVerifiedAccessTrustProviderOutput: return await self._invoke( - input, _models.DETACH_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.DETACH_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.DETACH_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload async def detach_volume( - self, input: DetachVolumeInput, plugins: list[Plugin] | None = None + self, + request: _models.DetachVolumeInput | _models.DetachVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachVolumeOutput: ... + + @_overload + async def detach_volume( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachVolumeInputDict], ) -> DetachVolumeOutput: """ Detaches an EBS volume from an instance. Make sure to unmount any file @@ -15679,8 +24567,6 @@ async def detach_volume( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DetachVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15690,10 +24576,33 @@ async def detach_volume( Returns: An instance of `DetachVolumeOutput`. """ - return await self._invoke(input, _models.DETACH_VOLUME, [], plugins) + async def detach_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachVolumeOutput: + return await self._invoke( + self._select_input(_models.DETACH_VOLUME, args, kwargs), + _models.DETACH_VOLUME, + [], + plugins, + ) + + @_overload + async def detach_vpn_gateway( + self, + request: _models.DetachVpnGatewayInput | _models.DetachVpnGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachVpnGatewayOutput: ... + + @_overload async def detach_vpn_gateway( - self, input: DetachVpnGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachVpnGatewayInputDict], ) -> DetachVpnGatewayOutput: """ Detaches a virtual private gateway from a VPC. You do this if you're @@ -15707,8 +24616,6 @@ async def detach_vpn_gateway( gateway. Args: - input: - An instance of `DetachVpnGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15718,10 +24625,34 @@ async def detach_vpn_gateway( Returns: An instance of `DetachVpnGatewayOutput`. """ - return await self._invoke(input, _models.DETACH_VPN_GATEWAY, [], plugins) + async def detach_vpn_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachVpnGatewayOutput: + return await self._invoke( + self._select_input(_models.DETACH_VPN_GATEWAY, args, kwargs), + _models.DETACH_VPN_GATEWAY, + [], + plugins, + ) + + @_overload + async def disable_address_transfer( + self, + request: _models.DisableAddressTransferInput + | _models.DisableAddressTransferInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableAddressTransferOutput: ... + + @_overload async def disable_address_transfer( - self, input: DisableAddressTransferInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableAddressTransferInputDict], ) -> DisableAddressTransferOutput: """ Disables Elastic IP address transfer. For more information, see @@ -15730,8 +24661,6 @@ async def disable_address_transfer( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DisableAddressTransferInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15741,12 +24670,34 @@ async def disable_address_transfer( Returns: An instance of `DisableAddressTransferOutput`. """ - return await self._invoke(input, _models.DISABLE_ADDRESS_TRANSFER, [], plugins) + async def disable_address_transfer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableAddressTransferOutput: + return await self._invoke( + self._select_input(_models.DISABLE_ADDRESS_TRANSFER, args, kwargs), + _models.DISABLE_ADDRESS_TRANSFER, + [], + plugins, + ) + + @_overload + async def disable_allowed_images_settings( + self, + request: _models.DisableAllowedImagesSettingsInput + | _models.DisableAllowedImagesSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableAllowedImagesSettingsOutput: ... + + @_overload async def disable_allowed_images_settings( self, - input: DisableAllowedImagesSettingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableAllowedImagesSettingsInputDict], ) -> DisableAllowedImagesSettingsOutput: """ Disables Allowed AMIs for your account in the specified Amazon Web @@ -15766,8 +24717,6 @@ async def disable_allowed_images_settings( in *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableAllowedImagesSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15777,14 +24726,34 @@ async def disable_allowed_images_settings( Returns: An instance of `DisableAllowedImagesSettingsOutput`. """ + + async def disable_allowed_images_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableAllowedImagesSettingsOutput: return await self._invoke( - input, _models.DISABLE_ALLOWED_IMAGES_SETTINGS, [], plugins + self._select_input(_models.DISABLE_ALLOWED_IMAGES_SETTINGS, args, kwargs), + _models.DISABLE_ALLOWED_IMAGES_SETTINGS, + [], + plugins, ) + @_overload async def disable_application_status_check_suppression( self, - input: DisableApplicationStatusCheckSuppressionInput, + request: _models.DisableApplicationStatusCheckSuppressionInput + | _models.DisableApplicationStatusCheckSuppressionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisableApplicationStatusCheckSuppressionOutput: ... + + @_overload + async def disable_application_status_check_suppression( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableApplicationStatusCheckSuppressionInputDict], ) -> DisableApplicationStatusCheckSuppressionOutput: """ Disables suppression of application status checks for the specified @@ -15793,8 +24762,6 @@ async def disable_application_status_check_suppression( maximum of 100 instance IDs for each request. Args: - input: - An instance of `DisableApplicationStatusCheckSuppressionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15804,21 +24771,43 @@ async def disable_application_status_check_suppression( Returns: An instance of `DisableApplicationStatusCheckSuppressionOutput`. """ + + async def disable_application_status_check_suppression( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableApplicationStatusCheckSuppressionOutput: return await self._invoke( - input, _models.DISABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, [], plugins + self._select_input( + _models.DISABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, args, kwargs + ), + _models.DISABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, + [], + plugins, ) + @_overload + async def disable_aws_network_performance_metric_subscription( + self, + request: _models.DisableAwsNetworkPerformanceMetricSubscriptionInput + | _models.DisableAwsNetworkPerformanceMetricSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableAwsNetworkPerformanceMetricSubscriptionOutput: ... + + @_overload async def disable_aws_network_performance_metric_subscription( self, - input: DisableAwsNetworkPerformanceMetricSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DisableAwsNetworkPerformanceMetricSubscriptionInputDict + ], ) -> DisableAwsNetworkPerformanceMetricSubscriptionOutput: """ Disables Infrastructure Performance metric subscriptions. Args: - input: - An instance of `DisableAwsNetworkPerformanceMetricSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15828,15 +24817,38 @@ async def disable_aws_network_performance_metric_subscription( Returns: An instance of `DisableAwsNetworkPerformanceMetricSubscriptionOutput`. """ + + async def disable_aws_network_performance_metric_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableAwsNetworkPerformanceMetricSubscriptionOutput: return await self._invoke( - input, + self._select_input( + _models.DISABLE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTION, + args, + kwargs, + ), _models.DISABLE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTION, [], plugins, ) + @_overload async def disable_capacity_manager( - self, input: DisableCapacityManagerInput, plugins: list[Plugin] | None = None + self, + request: _models.DisableCapacityManagerInput + | _models.DisableCapacityManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableCapacityManagerOutput: ... + + @_overload + async def disable_capacity_manager( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableCapacityManagerInputDict], ) -> DisableCapacityManagerOutput: """ Disables EC2 Capacity Manager for your account. This stops data @@ -15845,8 +24857,6 @@ async def disable_capacity_manager( will be processed. Args: - input: - An instance of `DisableCapacityManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15856,12 +24866,34 @@ async def disable_capacity_manager( Returns: An instance of `DisableCapacityManagerOutput`. """ - return await self._invoke(input, _models.DISABLE_CAPACITY_MANAGER, [], plugins) + async def disable_capacity_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableCapacityManagerOutput: + return await self._invoke( + self._select_input(_models.DISABLE_CAPACITY_MANAGER, args, kwargs), + _models.DISABLE_CAPACITY_MANAGER, + [], + plugins, + ) + + @_overload + async def disable_ebs_encryption_by_default( + self, + request: _models.DisableEbsEncryptionByDefaultInput + | _models.DisableEbsEncryptionByDefaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableEbsEncryptionByDefaultOutput: ... + + @_overload async def disable_ebs_encryption_by_default( self, - input: DisableEbsEncryptionByDefaultInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableEbsEncryptionByDefaultInputDict], ) -> DisableEbsEncryptionByDefaultOutput: """ Disables EBS encryption by default for your account in the current @@ -15878,8 +24910,6 @@ async def disable_ebs_encryption_by_default( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DisableEbsEncryptionByDefaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15889,12 +24919,33 @@ async def disable_ebs_encryption_by_default( Returns: An instance of `DisableEbsEncryptionByDefaultOutput`. """ + + async def disable_ebs_encryption_by_default( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableEbsEncryptionByDefaultOutput: return await self._invoke( - input, _models.DISABLE_EBS_ENCRYPTION_BY_DEFAULT, [], plugins + self._select_input(_models.DISABLE_EBS_ENCRYPTION_BY_DEFAULT, args, kwargs), + _models.DISABLE_EBS_ENCRYPTION_BY_DEFAULT, + [], + plugins, ) + @_overload + async def disable_fast_launch( + self, + request: _models.DisableFastLaunchInput | _models.DisableFastLaunchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableFastLaunchOutput: ... + + @_overload async def disable_fast_launch( - self, input: DisableFastLaunchInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableFastLaunchInputDict], ) -> DisableFastLaunchOutput: """ Discontinue Windows fast launch for a Windows AMI, and clean up existing @@ -15908,8 +24959,6 @@ async def disable_fast_launch( have been shared with you. Args: - input: - An instance of `DisableFastLaunchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15919,20 +24968,40 @@ async def disable_fast_launch( Returns: An instance of `DisableFastLaunchOutput`. """ - return await self._invoke(input, _models.DISABLE_FAST_LAUNCH, [], plugins) + async def disable_fast_launch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableFastLaunchOutput: + return await self._invoke( + self._select_input(_models.DISABLE_FAST_LAUNCH, args, kwargs), + _models.DISABLE_FAST_LAUNCH, + [], + plugins, + ) + + @_overload + async def disable_fast_snapshot_restores( + self, + request: _models.DisableFastSnapshotRestoresInput + | _models.DisableFastSnapshotRestoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableFastSnapshotRestoresOutput: ... + + @_overload async def disable_fast_snapshot_restores( self, - input: DisableFastSnapshotRestoresInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableFastSnapshotRestoresInputDict], ) -> DisableFastSnapshotRestoresOutput: """ Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. Args: - input: - An instance of `DisableFastSnapshotRestoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15942,12 +25011,33 @@ async def disable_fast_snapshot_restores( Returns: An instance of `DisableFastSnapshotRestoresOutput`. """ + + async def disable_fast_snapshot_restores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableFastSnapshotRestoresOutput: return await self._invoke( - input, _models.DISABLE_FAST_SNAPSHOT_RESTORES, [], plugins + self._select_input(_models.DISABLE_FAST_SNAPSHOT_RESTORES, args, kwargs), + _models.DISABLE_FAST_SNAPSHOT_RESTORES, + [], + plugins, ) + @_overload + async def disable_image( + self, + request: _models.DisableImageInput | _models.DisableImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableImageOutput: ... + + @_overload async def disable_image( - self, input: DisableImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableImageInputDict], ) -> DisableImageOutput: """ Sets the AMI state to `disabled` and removes all launch permissions from @@ -15972,8 +25062,6 @@ async def disable_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15983,12 +25071,34 @@ async def disable_image( Returns: An instance of `DisableImageOutput`. """ - return await self._invoke(input, _models.DISABLE_IMAGE, [], plugins) + async def disable_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableImageOutput: + return await self._invoke( + self._select_input(_models.DISABLE_IMAGE, args, kwargs), + _models.DISABLE_IMAGE, + [], + plugins, + ) + + @_overload + async def disable_image_block_public_access( + self, + request: _models.DisableImageBlockPublicAccessInput + | _models.DisableImageBlockPublicAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableImageBlockPublicAccessOutput: ... + + @_overload async def disable_image_block_public_access( self, - input: DisableImageBlockPublicAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableImageBlockPublicAccessInputDict], ) -> DisableImageBlockPublicAccessOutput: """ Disables *block public access for AMIs* at the account level in the @@ -16002,8 +25112,6 @@ async def disable_image_block_public_access( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableImageBlockPublicAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16013,12 +25121,34 @@ async def disable_image_block_public_access( Returns: An instance of `DisableImageBlockPublicAccessOutput`. """ + + async def disable_image_block_public_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableImageBlockPublicAccessOutput: return await self._invoke( - input, _models.DISABLE_IMAGE_BLOCK_PUBLIC_ACCESS, [], plugins + self._select_input(_models.DISABLE_IMAGE_BLOCK_PUBLIC_ACCESS, args, kwargs), + _models.DISABLE_IMAGE_BLOCK_PUBLIC_ACCESS, + [], + plugins, ) + @_overload + async def disable_image_deprecation( + self, + request: _models.DisableImageDeprecationInput + | _models.DisableImageDeprecationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableImageDeprecationOutput: ... + + @_overload async def disable_image_deprecation( - self, input: DisableImageDeprecationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableImageDeprecationInputDict], ) -> DisableImageDeprecationOutput: """ Cancels the deprecation of the specified AMI. @@ -16028,8 +25158,6 @@ async def disable_image_deprecation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableImageDeprecationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16039,12 +25167,34 @@ async def disable_image_deprecation( Returns: An instance of `DisableImageDeprecationOutput`. """ - return await self._invoke(input, _models.DISABLE_IMAGE_DEPRECATION, [], plugins) + async def disable_image_deprecation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableImageDeprecationOutput: + return await self._invoke( + self._select_input(_models.DISABLE_IMAGE_DEPRECATION, args, kwargs), + _models.DISABLE_IMAGE_DEPRECATION, + [], + plugins, + ) + + @_overload + async def disable_image_deregistration_protection( + self, + request: _models.DisableImageDeregistrationProtectionInput + | _models.DisableImageDeregistrationProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableImageDeregistrationProtectionOutput: ... + + @_overload async def disable_image_deregistration_protection( self, - input: DisableImageDeregistrationProtectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableImageDeregistrationProtectionInputDict], ) -> DisableImageDeregistrationProtectionOutput: """ Disables deregistration protection for an AMI. When deregistration @@ -16060,8 +25210,6 @@ async def disable_image_deregistration_protection( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableImageDeregistrationProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16071,14 +25219,36 @@ async def disable_image_deregistration_protection( Returns: An instance of `DisableImageDeregistrationProtectionOutput`. """ + + async def disable_image_deregistration_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableImageDeregistrationProtectionOutput: return await self._invoke( - input, _models.DISABLE_IMAGE_DEREGISTRATION_PROTECTION, [], plugins + self._select_input( + _models.DISABLE_IMAGE_DEREGISTRATION_PROTECTION, args, kwargs + ), + _models.DISABLE_IMAGE_DEREGISTRATION_PROTECTION, + [], + plugins, ) + @_overload async def disable_instance_sql_ha_standby_detections( self, - input: DisableInstanceSqlHaStandbyDetectionsInput, + request: _models.DisableInstanceSqlHaStandbyDetectionsInput + | _models.DisableInstanceSqlHaStandbyDetectionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisableInstanceSqlHaStandbyDetectionsOutput: ... + + @_overload + async def disable_instance_sql_ha_standby_detections( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableInstanceSqlHaStandbyDetectionsInputDict], ) -> DisableInstanceSqlHaStandbyDetectionsOutput: """ Disable Amazon EC2 instances running in an SQL Server High Availability @@ -16088,8 +25258,6 @@ async def disable_instance_sql_ha_standby_detections( standby nodes in the SQL Server High Availability cluster. Args: - input: - An instance of `DisableInstanceSqlHaStandbyDetectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16099,14 +25267,36 @@ async def disable_instance_sql_ha_standby_detections( Returns: An instance of `DisableInstanceSqlHaStandbyDetectionsOutput`. """ + + async def disable_instance_sql_ha_standby_detections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableInstanceSqlHaStandbyDetectionsOutput: return await self._invoke( - input, _models.DISABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, [], plugins + self._select_input( + _models.DISABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, args, kwargs + ), + _models.DISABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, + [], + plugins, ) + @_overload + async def disable_ipam_organization_admin_account( + self, + request: _models.DisableIpamOrganizationAdminAccountInput + | _models.DisableIpamOrganizationAdminAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableIpamOrganizationAdminAccountOutput: ... + + @_overload async def disable_ipam_organization_admin_account( self, - input: DisableIpamOrganizationAdminAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableIpamOrganizationAdminAccountInputDict], ) -> DisableIpamOrganizationAdminAccountOutput: """ Disable the IPAM account. For more information, see [Enable integration @@ -16115,8 +25305,6 @@ async def disable_ipam_organization_admin_account( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DisableIpamOrganizationAdminAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16126,12 +25314,35 @@ async def disable_ipam_organization_admin_account( Returns: An instance of `DisableIpamOrganizationAdminAccountOutput`. """ + + async def disable_ipam_organization_admin_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableIpamOrganizationAdminAccountOutput: return await self._invoke( - input, _models.DISABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, [], plugins + self._select_input( + _models.DISABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, args, kwargs + ), + _models.DISABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, + [], + plugins, ) + @_overload + async def disable_ipam_policy( + self, + request: _models.DisableIpamPolicyInput | _models.DisableIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableIpamPolicyOutput: ... + + @_overload async def disable_ipam_policy( - self, input: DisableIpamPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableIpamPolicyInputDict], ) -> DisableIpamPolicyOutput: """ Disables an IPAM policy. @@ -16146,8 +25357,6 @@ async def disable_ipam_policy( account or an entity within Amazon Web Services Organizations. Args: - input: - An instance of `DisableIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16157,12 +25366,34 @@ async def disable_ipam_policy( Returns: An instance of `DisableIpamPolicyOutput`. """ - return await self._invoke(input, _models.DISABLE_IPAM_POLICY, [], plugins) + async def disable_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableIpamPolicyOutput: + return await self._invoke( + self._select_input(_models.DISABLE_IPAM_POLICY, args, kwargs), + _models.DISABLE_IPAM_POLICY, + [], + plugins, + ) + + @_overload + async def disable_route_server_propagation( + self, + request: _models.DisableRouteServerPropagationInput + | _models.DisableRouteServerPropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableRouteServerPropagationOutput: ... + + @_overload async def disable_route_server_propagation( self, - input: DisableRouteServerPropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableRouteServerPropagationInputDict], ) -> DisableRouteServerPropagationOutput: """ Disables route propagation from a route server to a specified route @@ -16198,8 +25429,6 @@ async def disable_route_server_propagation( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DisableRouteServerPropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16209,14 +25438,34 @@ async def disable_route_server_propagation( Returns: An instance of `DisableRouteServerPropagationOutput`. """ + + async def disable_route_server_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableRouteServerPropagationOutput: return await self._invoke( - input, _models.DISABLE_ROUTE_SERVER_PROPAGATION, [], plugins + self._select_input(_models.DISABLE_ROUTE_SERVER_PROPAGATION, args, kwargs), + _models.DISABLE_ROUTE_SERVER_PROPAGATION, + [], + plugins, ) + @_overload async def disable_serial_console_access( self, - input: DisableSerialConsoleAccessInput, + request: _models.DisableSerialConsoleAccessInput + | _models.DisableSerialConsoleAccessInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisableSerialConsoleAccessOutput: ... + + @_overload + async def disable_serial_console_access( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableSerialConsoleAccessInputDict], ) -> DisableSerialConsoleAccessOutput: """ Disables access to the EC2 serial console of all instances for your @@ -16227,8 +25476,6 @@ async def disable_serial_console_access( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableSerialConsoleAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16238,14 +25485,34 @@ async def disable_serial_console_access( Returns: An instance of `DisableSerialConsoleAccessOutput`. """ + + async def disable_serial_console_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableSerialConsoleAccessOutput: return await self._invoke( - input, _models.DISABLE_SERIAL_CONSOLE_ACCESS, [], plugins + self._select_input(_models.DISABLE_SERIAL_CONSOLE_ACCESS, args, kwargs), + _models.DISABLE_SERIAL_CONSOLE_ACCESS, + [], + plugins, ) + @_overload + async def disable_snapshot_block_public_access( + self, + request: _models.DisableSnapshotBlockPublicAccessInput + | _models.DisableSnapshotBlockPublicAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableSnapshotBlockPublicAccessOutput: ... + + @_overload async def disable_snapshot_block_public_access( self, - input: DisableSnapshotBlockPublicAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableSnapshotBlockPublicAccessInputDict], ) -> DisableSnapshotBlockPublicAccessOutput: """ Disables the *block public access for snapshots* setting at the account @@ -16269,8 +25536,6 @@ async def disable_snapshot_block_public_access( in the *Amazon EBS User Guide* . Args: - input: - An instance of `DisableSnapshotBlockPublicAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16280,22 +25545,42 @@ async def disable_snapshot_block_public_access( Returns: An instance of `DisableSnapshotBlockPublicAccessOutput`. """ + + async def disable_snapshot_block_public_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableSnapshotBlockPublicAccessOutput: return await self._invoke( - input, _models.DISABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, [], plugins + self._select_input( + _models.DISABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, args, kwargs + ), + _models.DISABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, + [], + plugins, ) + @_overload + async def disable_transit_gateway_route_table_propagation( + self, + request: _models.DisableTransitGatewayRouteTablePropagationInput + | _models.DisableTransitGatewayRouteTablePropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableTransitGatewayRouteTablePropagationOutput: ... + + @_overload async def disable_transit_gateway_route_table_propagation( self, - input: DisableTransitGatewayRouteTablePropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableTransitGatewayRouteTablePropagationInputDict], ) -> DisableTransitGatewayRouteTablePropagationOutput: """ Disables the specified resource attachment from propagating routes to the specified propagation route table. Args: - input: - An instance of `DisableTransitGatewayRouteTablePropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16305,22 +25590,42 @@ async def disable_transit_gateway_route_table_propagation( Returns: An instance of `DisableTransitGatewayRouteTablePropagationOutput`. """ + + async def disable_transit_gateway_route_table_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableTransitGatewayRouteTablePropagationOutput: return await self._invoke( - input, _models.DISABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, [], plugins + self._select_input( + _models.DISABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, args, kwargs + ), + _models.DISABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, + [], + plugins, ) + @_overload + async def disable_vgw_route_propagation( + self, + request: _models.DisableVgwRoutePropagationInput + | _models.DisableVgwRoutePropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableVgwRoutePropagationOutput: ... + + @_overload async def disable_vgw_route_propagation( self, - input: DisableVgwRoutePropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableVgwRoutePropagationInputDict], ) -> DisableVgwRoutePropagationOutput: """ Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. Args: - input: - An instance of `DisableVgwRoutePropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16330,12 +25635,34 @@ async def disable_vgw_route_propagation( Returns: An instance of `DisableVgwRoutePropagationOutput`. """ + + async def disable_vgw_route_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableVgwRoutePropagationOutput: return await self._invoke( - input, _models.DISABLE_VGW_ROUTE_PROPAGATION, [], plugins + self._select_input(_models.DISABLE_VGW_ROUTE_PROPAGATION, args, kwargs), + _models.DISABLE_VGW_ROUTE_PROPAGATION, + [], + plugins, ) + @_overload + async def disable_vpc_classic_link( + self, + request: _models.DisableVpcClassicLinkInput + | _models.DisableVpcClassicLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableVpcClassicLinkOutput: ... + + @_overload async def disable_vpc_classic_link( - self, input: DisableVpcClassicLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableVpcClassicLinkInputDict], ) -> DisableVpcClassicLinkOutput: """ Note: @@ -16345,8 +25672,6 @@ async def disable_vpc_classic_link( that has EC2-Classic instances linked to it. Args: - input: - An instance of `DisableVpcClassicLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16356,12 +25681,34 @@ async def disable_vpc_classic_link( Returns: An instance of `DisableVpcClassicLinkOutput`. """ - return await self._invoke(input, _models.DISABLE_VPC_CLASSIC_LINK, [], plugins) + async def disable_vpc_classic_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableVpcClassicLinkOutput: + return await self._invoke( + self._select_input(_models.DISABLE_VPC_CLASSIC_LINK, args, kwargs), + _models.DISABLE_VPC_CLASSIC_LINK, + [], + plugins, + ) + + @_overload + async def disable_vpc_classic_link_dns_support( + self, + request: _models.DisableVpcClassicLinkDnsSupportInput + | _models.DisableVpcClassicLinkDnsSupportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableVpcClassicLinkDnsSupportOutput: ... + + @_overload async def disable_vpc_classic_link_dns_support( self, - input: DisableVpcClassicLinkDnsSupportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableVpcClassicLinkDnsSupportInputDict], ) -> DisableVpcClassicLinkDnsSupportOutput: """ Note: @@ -16374,8 +25721,6 @@ async def disable_vpc_classic_link_dns_support( You must specify a VPC ID in the request. Args: - input: - An instance of `DisableVpcClassicLinkDnsSupportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16385,12 +25730,36 @@ async def disable_vpc_classic_link_dns_support( Returns: An instance of `DisableVpcClassicLinkDnsSupportOutput`. """ + + async def disable_vpc_classic_link_dns_support( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableVpcClassicLinkDnsSupportOutput: return await self._invoke( - input, _models.DISABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, [], plugins + self._select_input( + _models.DISABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, args, kwargs + ), + _models.DISABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, + [], + plugins, ) + @_overload + async def disassociate_address( + self, + request: _models.DisassociateAddressInput + | _models.DisassociateAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateAddressOutput: ... + + @_overload async def disassociate_address( - self, input: DisassociateAddressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateAddressInputDict], ) -> DisassociateAddressOutput: """ Disassociates an Elastic IP address from the instance or network @@ -16409,8 +25778,6 @@ async def disassociate_address( - Network interface only has one remaining public IPv4 address Args: - input: - An instance of `DisassociateAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16420,12 +25787,34 @@ async def disassociate_address( Returns: An instance of `DisassociateAddressOutput`. """ - return await self._invoke(input, _models.DISASSOCIATE_ADDRESS, [], plugins) + async def disassociate_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateAddressOutput: + return await self._invoke( + self._select_input(_models.DISASSOCIATE_ADDRESS, args, kwargs), + _models.DISASSOCIATE_ADDRESS, + [], + plugins, + ) + + @_overload + async def disassociate_application_status_check( + self, + request: _models.DisassociateApplicationStatusCheckInput + | _models.DisassociateApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateApplicationStatusCheckOutput: ... + + @_overload async def disassociate_application_status_check( self, - input: DisassociateApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateApplicationStatusCheckInputDict], ) -> DisassociateApplicationStatusCheckOutput: """ Disassociates an application status check from instances or @@ -16443,8 +25832,6 @@ async def disassociate_application_status_check( - Tag keys must not be blank. Args: - input: - An instance of `DisassociateApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16454,14 +25841,36 @@ async def disassociate_application_status_check( Returns: An instance of `DisassociateApplicationStatusCheckOutput`. """ + + async def disassociate_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateApplicationStatusCheckOutput: return await self._invoke( - input, _models.DISASSOCIATE_APPLICATION_STATUS_CHECK, [], plugins + self._select_input( + _models.DISASSOCIATE_APPLICATION_STATUS_CHECK, args, kwargs + ), + _models.DISASSOCIATE_APPLICATION_STATUS_CHECK, + [], + plugins, ) + @_overload async def disassociate_capacity_reservation_billing_owner( self, - input: DisassociateCapacityReservationBillingOwnerInput, + request: _models.DisassociateCapacityReservationBillingOwnerInput + | _models.DisassociateCapacityReservationBillingOwnerInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateCapacityReservationBillingOwnerOutput: ... + + @_overload + async def disassociate_capacity_reservation_billing_owner( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateCapacityReservationBillingOwnerInputDict], ) -> DisassociateCapacityReservationBillingOwnerOutput: """ Cancels a pending request to assign billing of the unused capacity of a @@ -16471,8 +25880,6 @@ async def disassociate_capacity_reservation_billing_owner( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html). Args: - input: - An instance of `DisassociateCapacityReservationBillingOwnerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16482,14 +25889,36 @@ async def disassociate_capacity_reservation_billing_owner( Returns: An instance of `DisassociateCapacityReservationBillingOwnerOutput`. """ + + async def disassociate_capacity_reservation_billing_owner( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateCapacityReservationBillingOwnerOutput: return await self._invoke( - input, _models.DISASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, [], plugins + self._select_input( + _models.DISASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, args, kwargs + ), + _models.DISASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, + [], + plugins, ) + @_overload + async def disassociate_client_vpn_target_network( + self, + request: _models.DisassociateClientVpnTargetNetworkInput + | _models.DisassociateClientVpnTargetNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateClientVpnTargetNetworkOutput: ... + + @_overload async def disassociate_client_vpn_target_network( self, - input: DisassociateClientVpnTargetNetworkInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateClientVpnTargetNetworkInputDict], ) -> DisassociateClientVpnTargetNetworkOutput: """ Disassociates a target network from the specified Client VPN endpoint. @@ -16505,8 +25934,6 @@ async def disassociate_client_vpn_target_network( - The Client VPN endpoint's status changes to `pending-associate` Args: - input: - An instance of `DisassociateClientVpnTargetNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16516,14 +25943,36 @@ async def disassociate_client_vpn_target_network( Returns: An instance of `DisassociateClientVpnTargetNetworkOutput`. """ + + async def disassociate_client_vpn_target_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateClientVpnTargetNetworkOutput: return await self._invoke( - input, _models.DISASSOCIATE_CLIENT_VPN_TARGET_NETWORK, [], plugins + self._select_input( + _models.DISASSOCIATE_CLIENT_VPN_TARGET_NETWORK, args, kwargs + ), + _models.DISASSOCIATE_CLIENT_VPN_TARGET_NETWORK, + [], + plugins, ) + @_overload + async def disassociate_enclave_certificate_iam_role( + self, + request: _models.DisassociateEnclaveCertificateIamRoleInput + | _models.DisassociateEnclaveCertificateIamRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateEnclaveCertificateIamRoleOutput: ... + + @_overload async def disassociate_enclave_certificate_iam_role( self, - input: DisassociateEnclaveCertificateIamRoleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateEnclaveCertificateIamRoleInputDict], ) -> DisassociateEnclaveCertificateIamRoleOutput: """ Disassociates an IAM role from an Certificate Manager (ACM) certificate. @@ -16534,8 +25983,6 @@ async def disassociate_enclave_certificate_iam_role( effectively revokes the role's permission to use the certificate. Args: - input: - An instance of `DisassociateEnclaveCertificateIamRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16545,14 +25992,36 @@ async def disassociate_enclave_certificate_iam_role( Returns: An instance of `DisassociateEnclaveCertificateIamRoleOutput`. """ + + async def disassociate_enclave_certificate_iam_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateEnclaveCertificateIamRoleOutput: return await self._invoke( - input, _models.DISASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, [], plugins + self._select_input( + _models.DISASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, args, kwargs + ), + _models.DISASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, + [], + plugins, ) + @_overload + async def disassociate_iam_instance_profile( + self, + request: _models.DisassociateIamInstanceProfileInput + | _models.DisassociateIamInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateIamInstanceProfileOutput: ... + + @_overload async def disassociate_iam_instance_profile( self, - input: DisassociateIamInstanceProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateIamInstanceProfileInputDict], ) -> DisassociateIamInstanceProfileOutput: """ Disassociates an IAM instance profile from a running or stopped @@ -16561,8 +26030,6 @@ async def disassociate_iam_instance_profile( Use DescribeIamInstanceProfileAssociations to get the association ID. Args: - input: - An instance of `DisassociateIamInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16572,14 +26039,34 @@ async def disassociate_iam_instance_profile( Returns: An instance of `DisassociateIamInstanceProfileOutput`. """ + + async def disassociate_iam_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateIamInstanceProfileOutput: return await self._invoke( - input, _models.DISASSOCIATE_IAM_INSTANCE_PROFILE, [], plugins + self._select_input(_models.DISASSOCIATE_IAM_INSTANCE_PROFILE, args, kwargs), + _models.DISASSOCIATE_IAM_INSTANCE_PROFILE, + [], + plugins, ) + @_overload + async def disassociate_instance_event_window( + self, + request: _models.DisassociateInstanceEventWindowInput + | _models.DisassociateInstanceEventWindowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateInstanceEventWindowOutput: ... + + @_overload async def disassociate_instance_event_window( self, - input: DisassociateInstanceEventWindowInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateInstanceEventWindowInputDict], ) -> DisassociateInstanceEventWindowOutput: """ Disassociates one or more targets from an event window. @@ -16589,8 +26076,6 @@ async def disassociate_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisassociateInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16600,12 +26085,36 @@ async def disassociate_instance_event_window( Returns: An instance of `DisassociateInstanceEventWindowOutput`. """ + + async def disassociate_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateInstanceEventWindowOutput: return await self._invoke( - input, _models.DISASSOCIATE_INSTANCE_EVENT_WINDOW, [], plugins + self._select_input( + _models.DISASSOCIATE_INSTANCE_EVENT_WINDOW, args, kwargs + ), + _models.DISASSOCIATE_INSTANCE_EVENT_WINDOW, + [], + plugins, ) + @_overload + async def disassociate_ipam_byoasn( + self, + request: _models.DisassociateIpamByoasnInput + | _models.DisassociateIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateIpamByoasnOutput: ... + + @_overload async def disassociate_ipam_byoasn( - self, input: DisassociateIpamByoasnInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateIpamByoasnInputDict], ) -> DisassociateIpamByoasnOutput: """ Remove the association between your Autonomous System Number (ASN) and @@ -16616,8 +26125,6 @@ async def disassociate_ipam_byoasn( in the *Amazon VPC IPAM guide*. Args: - input: - An instance of `DisassociateIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16627,12 +26134,34 @@ async def disassociate_ipam_byoasn( Returns: An instance of `DisassociateIpamByoasnOutput`. """ - return await self._invoke(input, _models.DISASSOCIATE_IPAM_BYOASN, [], plugins) + async def disassociate_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateIpamByoasnOutput: + return await self._invoke( + self._select_input(_models.DISASSOCIATE_IPAM_BYOASN, args, kwargs), + _models.DISASSOCIATE_IPAM_BYOASN, + [], + plugins, + ) + + @_overload + async def disassociate_ipam_resource_discovery( + self, + request: _models.DisassociateIpamResourceDiscoveryInput + | _models.DisassociateIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateIpamResourceDiscoveryOutput: ... + + @_overload async def disassociate_ipam_resource_discovery( self, - input: DisassociateIpamResourceDiscoveryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateIpamResourceDiscoveryInputDict], ) -> DisassociateIpamResourceDiscoveryOutput: """ Disassociates a resource discovery from an Amazon VPC IPAM. A resource @@ -16640,8 +26169,6 @@ async def disassociate_ipam_resource_discovery( resources that belong to the owning account. Args: - input: - An instance of `DisassociateIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16651,14 +26178,36 @@ async def disassociate_ipam_resource_discovery( Returns: An instance of `DisassociateIpamResourceDiscoveryOutput`. """ + + async def disassociate_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateIpamResourceDiscoveryOutput: return await self._invoke( - input, _models.DISASSOCIATE_IPAM_RESOURCE_DISCOVERY, [], plugins + self._select_input( + _models.DISASSOCIATE_IPAM_RESOURCE_DISCOVERY, args, kwargs + ), + _models.DISASSOCIATE_IPAM_RESOURCE_DISCOVERY, + [], + plugins, ) + @_overload + async def disassociate_nat_gateway_address( + self, + request: _models.DisassociateNatGatewayAddressInput + | _models.DisassociateNatGatewayAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateNatGatewayAddressOutput: ... + + @_overload async def disassociate_nat_gateway_address( self, - input: DisassociateNatGatewayAddressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateNatGatewayAddressInputDict], ) -> DisassociateNatGatewayAddressOutput: """ Disassociates secondary Elastic IP addresses (EIPs) from a public NAT @@ -16679,8 +26228,6 @@ async def disassociate_nat_gateway_address( released. Args: - input: - An instance of `DisassociateNatGatewayAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16690,12 +26237,34 @@ async def disassociate_nat_gateway_address( Returns: An instance of `DisassociateNatGatewayAddressOutput`. """ + + async def disassociate_nat_gateway_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateNatGatewayAddressOutput: return await self._invoke( - input, _models.DISASSOCIATE_NAT_GATEWAY_ADDRESS, [], plugins + self._select_input(_models.DISASSOCIATE_NAT_GATEWAY_ADDRESS, args, kwargs), + _models.DISASSOCIATE_NAT_GATEWAY_ADDRESS, + [], + plugins, ) + @_overload + async def disassociate_route_server( + self, + request: _models.DisassociateRouteServerInput + | _models.DisassociateRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateRouteServerOutput: ... + + @_overload async def disassociate_route_server( - self, input: DisassociateRouteServerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateRouteServerInputDict], ) -> DisassociateRouteServerOutput: """ Disassociates a route server from a VPC. @@ -16708,8 +26277,6 @@ async def disassociate_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DisassociateRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16719,10 +26286,34 @@ async def disassociate_route_server( Returns: An instance of `DisassociateRouteServerOutput`. """ - return await self._invoke(input, _models.DISASSOCIATE_ROUTE_SERVER, [], plugins) + async def disassociate_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateRouteServerOutput: + return await self._invoke( + self._select_input(_models.DISASSOCIATE_ROUTE_SERVER, args, kwargs), + _models.DISASSOCIATE_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + async def disassociate_route_table( + self, + request: _models.DisassociateRouteTableInput + | _models.DisassociateRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateRouteTableOutput: ... + + @_overload async def disassociate_route_table( - self, input: DisassociateRouteTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateRouteTableInputDict], ) -> DisassociateRouteTableOutput: """ Disassociates a subnet or gateway from a route table. @@ -16734,23 +26325,43 @@ async def disassociate_route_table( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DisassociateRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `DisassociateRouteTableOutput`. - """ - return await self._invoke(input, _models.DISASSOCIATE_ROUTE_TABLE, [], plugins) + Returns: + An instance of `DisassociateRouteTableOutput`. + """ + + async def disassociate_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateRouteTableOutput: + return await self._invoke( + self._select_input(_models.DISASSOCIATE_ROUTE_TABLE, args, kwargs), + _models.DISASSOCIATE_ROUTE_TABLE, + [], + plugins, + ) + + @_overload + async def disassociate_security_group_vpc( + self, + request: _models.DisassociateSecurityGroupVpcInput + | _models.DisassociateSecurityGroupVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateSecurityGroupVpcOutput: ... + @_overload async def disassociate_security_group_vpc( self, - input: DisassociateSecurityGroupVpcInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateSecurityGroupVpcInputDict], ) -> DisassociateSecurityGroupVpcOutput: """ Disassociates a security group from a VPC. You cannot disassociate the @@ -16761,8 +26372,6 @@ async def disassociate_security_group_vpc( [DescribeSecurityGroupVpcAssociations](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroupVpcAssociations.html). Args: - input: - An instance of `DisassociateSecurityGroupVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16772,14 +26381,34 @@ async def disassociate_security_group_vpc( Returns: An instance of `DisassociateSecurityGroupVpcOutput`. """ + + async def disassociate_security_group_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateSecurityGroupVpcOutput: return await self._invoke( - input, _models.DISASSOCIATE_SECURITY_GROUP_VPC, [], plugins + self._select_input(_models.DISASSOCIATE_SECURITY_GROUP_VPC, args, kwargs), + _models.DISASSOCIATE_SECURITY_GROUP_VPC, + [], + plugins, ) + @_overload + async def disassociate_subnet_cidr_block( + self, + request: _models.DisassociateSubnetCidrBlockInput + | _models.DisassociateSubnetCidrBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateSubnetCidrBlockOutput: ... + + @_overload async def disassociate_subnet_cidr_block( self, - input: DisassociateSubnetCidrBlockInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateSubnetCidrBlockInputDict], ) -> DisassociateSubnetCidrBlockOutput: """ Disassociates a CIDR block from a subnet. Currently, you can @@ -16788,8 +26417,6 @@ async def disassociate_subnet_cidr_block( you can disassociate it. Args: - input: - An instance of `DisassociateSubnetCidrBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16799,22 +26426,40 @@ async def disassociate_subnet_cidr_block( Returns: An instance of `DisassociateSubnetCidrBlockOutput`. """ + + async def disassociate_subnet_cidr_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateSubnetCidrBlockOutput: return await self._invoke( - input, _models.DISASSOCIATE_SUBNET_CIDR_BLOCK, [], plugins + self._select_input(_models.DISASSOCIATE_SUBNET_CIDR_BLOCK, args, kwargs), + _models.DISASSOCIATE_SUBNET_CIDR_BLOCK, + [], + plugins, ) + @_overload + async def disassociate_transit_gateway_multicast_domain( + self, + request: _models.DisassociateTransitGatewayMulticastDomainInput + | _models.DisassociateTransitGatewayMulticastDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateTransitGatewayMulticastDomainOutput: ... + + @_overload async def disassociate_transit_gateway_multicast_domain( self, - input: DisassociateTransitGatewayMulticastDomainInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateTransitGatewayMulticastDomainInputDict], ) -> DisassociateTransitGatewayMulticastDomainOutput: """ Disassociates the specified subnets from the transit gateway multicast domain. Args: - input: - An instance of `DisassociateTransitGatewayMulticastDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16824,21 +26469,41 @@ async def disassociate_transit_gateway_multicast_domain( Returns: An instance of `DisassociateTransitGatewayMulticastDomainOutput`. """ + + async def disassociate_transit_gateway_multicast_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateTransitGatewayMulticastDomainOutput: return await self._invoke( - input, _models.DISASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, [], plugins + self._select_input( + _models.DISASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, args, kwargs + ), + _models.DISASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, + [], + plugins, ) + @_overload + async def disassociate_transit_gateway_policy_table( + self, + request: _models.DisassociateTransitGatewayPolicyTableInput + | _models.DisassociateTransitGatewayPolicyTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateTransitGatewayPolicyTableOutput: ... + + @_overload async def disassociate_transit_gateway_policy_table( self, - input: DisassociateTransitGatewayPolicyTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateTransitGatewayPolicyTableInputDict], ) -> DisassociateTransitGatewayPolicyTableOutput: """ Removes the association between an an attachment and a policy table. Args: - input: - An instance of `DisassociateTransitGatewayPolicyTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16848,21 +26513,41 @@ async def disassociate_transit_gateway_policy_table( Returns: An instance of `DisassociateTransitGatewayPolicyTableOutput`. """ + + async def disassociate_transit_gateway_policy_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateTransitGatewayPolicyTableOutput: return await self._invoke( - input, _models.DISASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, [], plugins + self._select_input( + _models.DISASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, args, kwargs + ), + _models.DISASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, + [], + plugins, ) + @_overload async def disassociate_transit_gateway_route_table( self, - input: DisassociateTransitGatewayRouteTableInput, + request: _models.DisassociateTransitGatewayRouteTableInput + | _models.DisassociateTransitGatewayRouteTableInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateTransitGatewayRouteTableOutput: ... + + @_overload + async def disassociate_transit_gateway_route_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateTransitGatewayRouteTableInputDict], ) -> DisassociateTransitGatewayRouteTableOutput: """ Disassociates a resource attachment from a transit gateway route table. Args: - input: - An instance of `DisassociateTransitGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16872,22 +26557,42 @@ async def disassociate_transit_gateway_route_table( Returns: An instance of `DisassociateTransitGatewayRouteTableOutput`. """ + + async def disassociate_transit_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateTransitGatewayRouteTableOutput: return await self._invoke( - input, _models.DISASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input( + _models.DISASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, args, kwargs + ), + _models.DISASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + async def disassociate_trunk_interface( + self, + request: _models.DisassociateTrunkInterfaceInput + | _models.DisassociateTrunkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateTrunkInterfaceOutput: ... + + @_overload async def disassociate_trunk_interface( self, - input: DisassociateTrunkInterfaceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateTrunkInterfaceInputDict], ) -> DisassociateTrunkInterfaceOutput: """ Removes an association between a branch network interface with a trunk network interface. Args: - input: - An instance of `DisassociateTrunkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16897,12 +26602,34 @@ async def disassociate_trunk_interface( Returns: An instance of `DisassociateTrunkInterfaceOutput`. """ + + async def disassociate_trunk_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateTrunkInterfaceOutput: return await self._invoke( - input, _models.DISASSOCIATE_TRUNK_INTERFACE, [], plugins + self._select_input(_models.DISASSOCIATE_TRUNK_INTERFACE, args, kwargs), + _models.DISASSOCIATE_TRUNK_INTERFACE, + [], + plugins, ) + @_overload + async def disassociate_vpc_cidr_block( + self, + request: _models.DisassociateVpcCidrBlockInput + | _models.DisassociateVpcCidrBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateVpcCidrBlockOutput: ... + + @_overload async def disassociate_vpc_cidr_block( - self, input: DisassociateVpcCidrBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateVpcCidrBlockInputDict], ) -> DisassociateVpcCidrBlockOutput: """ Disassociates a CIDR block from a VPC. To disassociate the CIDR block, @@ -16914,8 +26641,6 @@ async def disassociate_vpc_cidr_block( the VPC (the primary CIDR block). Args: - input: - An instance of `DisassociateVpcCidrBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16925,12 +26650,34 @@ async def disassociate_vpc_cidr_block( Returns: An instance of `DisassociateVpcCidrBlockOutput`. """ + + async def disassociate_vpc_cidr_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateVpcCidrBlockOutput: return await self._invoke( - input, _models.DISASSOCIATE_VPC_CIDR_BLOCK, [], plugins + self._select_input(_models.DISASSOCIATE_VPC_CIDR_BLOCK, args, kwargs), + _models.DISASSOCIATE_VPC_CIDR_BLOCK, + [], + plugins, ) + @_overload + async def enable_address_transfer( + self, + request: _models.EnableAddressTransferInput + | _models.EnableAddressTransferInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableAddressTransferOutput: ... + + @_overload async def enable_address_transfer( - self, input: EnableAddressTransferInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableAddressTransferInputDict], ) -> EnableAddressTransferOutput: """ Enables Elastic IP address transfer. For more information, see [Transfer @@ -16939,8 +26686,6 @@ async def enable_address_transfer( in the *Amazon VPC User Guide*. Args: - input: - An instance of `EnableAddressTransferInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16950,12 +26695,34 @@ async def enable_address_transfer( Returns: An instance of `EnableAddressTransferOutput`. """ - return await self._invoke(input, _models.ENABLE_ADDRESS_TRANSFER, [], plugins) + async def enable_address_transfer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableAddressTransferOutput: + return await self._invoke( + self._select_input(_models.ENABLE_ADDRESS_TRANSFER, args, kwargs), + _models.ENABLE_ADDRESS_TRANSFER, + [], + plugins, + ) + + @_overload + async def enable_allowed_images_settings( + self, + request: _models.EnableAllowedImagesSettingsInput + | _models.EnableAllowedImagesSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableAllowedImagesSettingsOutput: ... + + @_overload async def enable_allowed_images_settings( self, - input: EnableAllowedImagesSettingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableAllowedImagesSettingsInputDict], ) -> EnableAllowedImagesSettingsOutput: """ Enables Allowed AMIs for your account in the specified Amazon Web @@ -16987,8 +26754,6 @@ async def enable_allowed_images_settings( in *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableAllowedImagesSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16998,14 +26763,34 @@ async def enable_allowed_images_settings( Returns: An instance of `EnableAllowedImagesSettingsOutput`. """ + + async def enable_allowed_images_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableAllowedImagesSettingsOutput: return await self._invoke( - input, _models.ENABLE_ALLOWED_IMAGES_SETTINGS, [], plugins + self._select_input(_models.ENABLE_ALLOWED_IMAGES_SETTINGS, args, kwargs), + _models.ENABLE_ALLOWED_IMAGES_SETTINGS, + [], + plugins, ) + @_overload + async def enable_application_status_check_suppression( + self, + request: _models.EnableApplicationStatusCheckSuppressionInput + | _models.EnableApplicationStatusCheckSuppressionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableApplicationStatusCheckSuppressionOutput: ... + + @_overload async def enable_application_status_check_suppression( self, - input: EnableApplicationStatusCheckSuppressionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableApplicationStatusCheckSuppressionInputDict], ) -> EnableApplicationStatusCheckSuppressionOutput: """ Suppresses application status checks for the specified instances. While @@ -17022,8 +26807,6 @@ async def enable_application_status_check_suppression( `DisableApplicationStatusCheckSuppression`. Args: - input: - An instance of `EnableApplicationStatusCheckSuppressionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17033,21 +26816,43 @@ async def enable_application_status_check_suppression( Returns: An instance of `EnableApplicationStatusCheckSuppressionOutput`. """ + + async def enable_application_status_check_suppression( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableApplicationStatusCheckSuppressionOutput: return await self._invoke( - input, _models.ENABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, [], plugins + self._select_input( + _models.ENABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, args, kwargs + ), + _models.ENABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, + [], + plugins, ) + @_overload + async def enable_aws_network_performance_metric_subscription( + self, + request: _models.EnableAwsNetworkPerformanceMetricSubscriptionInput + | _models.EnableAwsNetworkPerformanceMetricSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableAwsNetworkPerformanceMetricSubscriptionOutput: ... + + @_overload async def enable_aws_network_performance_metric_subscription( self, - input: EnableAwsNetworkPerformanceMetricSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.EnableAwsNetworkPerformanceMetricSubscriptionInputDict + ], ) -> EnableAwsNetworkPerformanceMetricSubscriptionOutput: """ Enables Infrastructure Performance subscriptions. Args: - input: - An instance of `EnableAwsNetworkPerformanceMetricSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17057,15 +26862,36 @@ async def enable_aws_network_performance_metric_subscription( Returns: An instance of `EnableAwsNetworkPerformanceMetricSubscriptionOutput`. """ + + async def enable_aws_network_performance_metric_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableAwsNetworkPerformanceMetricSubscriptionOutput: return await self._invoke( - input, + self._select_input( + _models.ENABLE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTION, args, kwargs + ), _models.ENABLE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTION, [], plugins, ) + @_overload + async def enable_capacity_manager( + self, + request: _models.EnableCapacityManagerInput + | _models.EnableCapacityManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableCapacityManagerOutput: ... + + @_overload async def enable_capacity_manager( - self, input: EnableCapacityManagerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableCapacityManagerInputDict], ) -> EnableCapacityManagerOutput: """ Enables EC2 Capacity Manager for your account. This starts data @@ -17074,8 +26900,6 @@ async def enable_capacity_manager( complete. Args: - input: - An instance of `EnableCapacityManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17085,12 +26909,34 @@ async def enable_capacity_manager( Returns: An instance of `EnableCapacityManagerOutput`. """ - return await self._invoke(input, _models.ENABLE_CAPACITY_MANAGER, [], plugins) + async def enable_capacity_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableCapacityManagerOutput: + return await self._invoke( + self._select_input(_models.ENABLE_CAPACITY_MANAGER, args, kwargs), + _models.ENABLE_CAPACITY_MANAGER, + [], + plugins, + ) + + @_overload async def enable_ebs_encryption_by_default( self, - input: EnableEbsEncryptionByDefaultInput, + request: _models.EnableEbsEncryptionByDefaultInput + | _models.EnableEbsEncryptionByDefaultInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> EnableEbsEncryptionByDefaultOutput: ... + + @_overload + async def enable_ebs_encryption_by_default( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableEbsEncryptionByDefaultInputDict], ) -> EnableEbsEncryptionByDefaultOutput: """ Enables EBS encryption by default for your account in the current @@ -17112,8 +26958,6 @@ async def enable_ebs_encryption_by_default( types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances). Args: - input: - An instance of `EnableEbsEncryptionByDefaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17123,12 +26967,33 @@ async def enable_ebs_encryption_by_default( Returns: An instance of `EnableEbsEncryptionByDefaultOutput`. """ + + async def enable_ebs_encryption_by_default( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableEbsEncryptionByDefaultOutput: return await self._invoke( - input, _models.ENABLE_EBS_ENCRYPTION_BY_DEFAULT, [], plugins + self._select_input(_models.ENABLE_EBS_ENCRYPTION_BY_DEFAULT, args, kwargs), + _models.ENABLE_EBS_ENCRYPTION_BY_DEFAULT, + [], + plugins, ) + @_overload + async def enable_fast_launch( + self, + request: _models.EnableFastLaunchInput | _models.EnableFastLaunchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableFastLaunchOutput: ... + + @_overload async def enable_fast_launch( - self, input: EnableFastLaunchInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableFastLaunchInputDict], ) -> EnableFastLaunchOutput: """ When you enable Windows fast launch for a Windows AMI, images are @@ -17144,8 +27009,6 @@ async def enable_fast_launch( have been shared with you. Args: - input: - An instance of `EnableFastLaunchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17155,12 +27018,34 @@ async def enable_fast_launch( Returns: An instance of `EnableFastLaunchOutput`. """ - return await self._invoke(input, _models.ENABLE_FAST_LAUNCH, [], plugins) + async def enable_fast_launch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableFastLaunchOutput: + return await self._invoke( + self._select_input(_models.ENABLE_FAST_LAUNCH, args, kwargs), + _models.ENABLE_FAST_LAUNCH, + [], + plugins, + ) + + @_overload + async def enable_fast_snapshot_restores( + self, + request: _models.EnableFastSnapshotRestoresInput + | _models.EnableFastSnapshotRestoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableFastSnapshotRestoresOutput: ... + + @_overload async def enable_fast_snapshot_restores( self, - input: EnableFastSnapshotRestoresInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableFastSnapshotRestoresInputDict], ) -> EnableFastSnapshotRestoresOutput: """ Enables fast snapshot restores for the specified snapshots in the @@ -17174,8 +27059,6 @@ async def enable_fast_snapshot_restores( in the *Amazon EBS User Guide*. Args: - input: - An instance of `EnableFastSnapshotRestoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17185,12 +27068,33 @@ async def enable_fast_snapshot_restores( Returns: An instance of `EnableFastSnapshotRestoresOutput`. """ + + async def enable_fast_snapshot_restores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableFastSnapshotRestoresOutput: return await self._invoke( - input, _models.ENABLE_FAST_SNAPSHOT_RESTORES, [], plugins + self._select_input(_models.ENABLE_FAST_SNAPSHOT_RESTORES, args, kwargs), + _models.ENABLE_FAST_SNAPSHOT_RESTORES, + [], + plugins, ) + @_overload + async def enable_image( + self, + request: _models.EnableImageInput | _models.EnableImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableImageOutput: ... + + @_overload async def enable_image( - self, input: EnableImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableImageInputDict], ) -> EnableImageOutput: """ Re-enables a disabled AMI. The re-enabled AMI is marked as `available` @@ -17207,8 +27111,6 @@ async def enable_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17218,12 +27120,34 @@ async def enable_image( Returns: An instance of `EnableImageOutput`. """ - return await self._invoke(input, _models.ENABLE_IMAGE, [], plugins) + async def enable_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableImageOutput: + return await self._invoke( + self._select_input(_models.ENABLE_IMAGE, args, kwargs), + _models.ENABLE_IMAGE, + [], + plugins, + ) + + @_overload + async def enable_image_block_public_access( + self, + request: _models.EnableImageBlockPublicAccessInput + | _models.EnableImageBlockPublicAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableImageBlockPublicAccessOutput: ... + + @_overload async def enable_image_block_public_access( self, - input: EnableImageBlockPublicAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableImageBlockPublicAccessInputDict], ) -> EnableImageBlockPublicAccessOutput: """ Enables *block public access for AMIs* at the account level in the @@ -17242,8 +27166,6 @@ async def enable_image_block_public_access( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableImageBlockPublicAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17253,12 +27175,34 @@ async def enable_image_block_public_access( Returns: An instance of `EnableImageBlockPublicAccessOutput`. """ + + async def enable_image_block_public_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableImageBlockPublicAccessOutput: return await self._invoke( - input, _models.ENABLE_IMAGE_BLOCK_PUBLIC_ACCESS, [], plugins + self._select_input(_models.ENABLE_IMAGE_BLOCK_PUBLIC_ACCESS, args, kwargs), + _models.ENABLE_IMAGE_BLOCK_PUBLIC_ACCESS, + [], + plugins, ) + @_overload + async def enable_image_deprecation( + self, + request: _models.EnableImageDeprecationInput + | _models.EnableImageDeprecationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableImageDeprecationOutput: ... + + @_overload async def enable_image_deprecation( - self, input: EnableImageDeprecationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableImageDeprecationInputDict], ) -> EnableImageDeprecationOutput: """ Enables deprecation of the specified AMI at the specified date and time. @@ -17268,8 +27212,6 @@ async def enable_image_deprecation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableImageDeprecationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17279,12 +27221,34 @@ async def enable_image_deprecation( Returns: An instance of `EnableImageDeprecationOutput`. """ - return await self._invoke(input, _models.ENABLE_IMAGE_DEPRECATION, [], plugins) + async def enable_image_deprecation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableImageDeprecationOutput: + return await self._invoke( + self._select_input(_models.ENABLE_IMAGE_DEPRECATION, args, kwargs), + _models.ENABLE_IMAGE_DEPRECATION, + [], + plugins, + ) + + @_overload + async def enable_image_deregistration_protection( + self, + request: _models.EnableImageDeregistrationProtectionInput + | _models.EnableImageDeregistrationProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableImageDeregistrationProtectionOutput: ... + + @_overload async def enable_image_deregistration_protection( self, - input: EnableImageDeregistrationProtectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableImageDeregistrationProtectionInputDict], ) -> EnableImageDeregistrationProtectionOutput: """ Enables deregistration protection for an AMI. When deregistration @@ -17298,8 +27262,6 @@ async def enable_image_deregistration_protection( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableImageDeregistrationProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17309,14 +27271,36 @@ async def enable_image_deregistration_protection( Returns: An instance of `EnableImageDeregistrationProtectionOutput`. """ + + async def enable_image_deregistration_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableImageDeregistrationProtectionOutput: return await self._invoke( - input, _models.ENABLE_IMAGE_DEREGISTRATION_PROTECTION, [], plugins + self._select_input( + _models.ENABLE_IMAGE_DEREGISTRATION_PROTECTION, args, kwargs + ), + _models.ENABLE_IMAGE_DEREGISTRATION_PROTECTION, + [], + plugins, ) + @_overload + async def enable_instance_sql_ha_standby_detections( + self, + request: _models.EnableInstanceSqlHaStandbyDetectionsInput + | _models.EnableInstanceSqlHaStandbyDetectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableInstanceSqlHaStandbyDetectionsOutput: ... + + @_overload async def enable_instance_sql_ha_standby_detections( self, - input: EnableInstanceSqlHaStandbyDetectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableInstanceSqlHaStandbyDetectionsInputDict], ) -> EnableInstanceSqlHaStandbyDetectionsOutput: """ Enable Amazon EC2 instances running in an SQL Server High Availability @@ -17337,8 +27321,6 @@ async def enable_instance_sql_ha_standby_detections( detection](https://docs.aws.amazon.com/sql-server-ec2/latest/userguide/prerequisites-and-requirements.html). Args: - input: - An instance of `EnableInstanceSqlHaStandbyDetectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17348,14 +27330,36 @@ async def enable_instance_sql_ha_standby_detections( Returns: An instance of `EnableInstanceSqlHaStandbyDetectionsOutput`. """ + + async def enable_instance_sql_ha_standby_detections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableInstanceSqlHaStandbyDetectionsOutput: return await self._invoke( - input, _models.ENABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, [], plugins + self._select_input( + _models.ENABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, args, kwargs + ), + _models.ENABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, + [], + plugins, ) + @_overload + async def enable_ipam_internet_registry_association( + self, + request: _models.EnableIpamInternetRegistryAssociationInput + | _models.EnableIpamInternetRegistryAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableIpamInternetRegistryAssociationOutput: ... + + @_overload async def enable_ipam_internet_registry_association( self, - input: EnableIpamInternetRegistryAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableIpamInternetRegistryAssociationInputDict], ) -> EnableIpamInternetRegistryAssociationOutput: """ Enables Resource Public Key Infrastructure (RPKI) on an existing IPAM @@ -17365,8 +27369,6 @@ async def enable_ipam_internet_registry_association( registry. Args: - input: - An instance of `EnableIpamInternetRegistryAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17376,14 +27378,36 @@ async def enable_ipam_internet_registry_association( Returns: An instance of `EnableIpamInternetRegistryAssociationOutput`. """ + + async def enable_ipam_internet_registry_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableIpamInternetRegistryAssociationOutput: return await self._invoke( - input, _models.ENABLE_IPAM_INTERNET_REGISTRY_ASSOCIATION, [], plugins + self._select_input( + _models.ENABLE_IPAM_INTERNET_REGISTRY_ASSOCIATION, args, kwargs + ), + _models.ENABLE_IPAM_INTERNET_REGISTRY_ASSOCIATION, + [], + plugins, ) + @_overload + async def enable_ipam_organization_admin_account( + self, + request: _models.EnableIpamOrganizationAdminAccountInput + | _models.EnableIpamOrganizationAdminAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableIpamOrganizationAdminAccountOutput: ... + + @_overload async def enable_ipam_organization_admin_account( self, - input: EnableIpamOrganizationAdminAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableIpamOrganizationAdminAccountInputDict], ) -> EnableIpamOrganizationAdminAccountOutput: """ Enable an Organizations member account as the IPAM admin account. You @@ -17393,8 +27417,6 @@ async def enable_ipam_organization_admin_account( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `EnableIpamOrganizationAdminAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17404,12 +27426,35 @@ async def enable_ipam_organization_admin_account( Returns: An instance of `EnableIpamOrganizationAdminAccountOutput`. """ + + async def enable_ipam_organization_admin_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableIpamOrganizationAdminAccountOutput: return await self._invoke( - input, _models.ENABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, [], plugins + self._select_input( + _models.ENABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, args, kwargs + ), + _models.ENABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, + [], + plugins, ) + @_overload + async def enable_ipam_policy( + self, + request: _models.EnableIpamPolicyInput | _models.EnableIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableIpamPolicyOutput: ... + + @_overload async def enable_ipam_policy( - self, input: EnableIpamPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableIpamPolicyInputDict], ) -> EnableIpamPolicyOutput: """ Enables an IPAM policy. @@ -17429,8 +27474,6 @@ async def enable_ipam_policy( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `EnableIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17440,12 +27483,36 @@ async def enable_ipam_policy( Returns: An instance of `EnableIpamPolicyOutput`. """ - return await self._invoke(input, _models.ENABLE_IPAM_POLICY, [], plugins) + async def enable_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableIpamPolicyOutput: + return await self._invoke( + self._select_input(_models.ENABLE_IPAM_POLICY, args, kwargs), + _models.ENABLE_IPAM_POLICY, + [], + plugins, + ) + + @_overload + async def enable_reachability_analyzer_organization_sharing( + self, + request: _models.EnableReachabilityAnalyzerOrganizationSharingInput + | _models.EnableReachabilityAnalyzerOrganizationSharingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableReachabilityAnalyzerOrganizationSharingOutput: ... + + @_overload async def enable_reachability_analyzer_organization_sharing( self, - input: EnableReachabilityAnalyzerOrganizationSharingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.EnableReachabilityAnalyzerOrganizationSharingInputDict + ], ) -> EnableReachabilityAnalyzerOrganizationSharingOutput: """ Establishes a trust relationship between Reachability Analyzer and @@ -17457,8 +27524,6 @@ async def enable_reachability_analyzer_organization_sharing( analysis using resources from the member accounts. Args: - input: - An instance of `EnableReachabilityAnalyzerOrganizationSharingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17468,17 +27533,36 @@ async def enable_reachability_analyzer_organization_sharing( Returns: An instance of `EnableReachabilityAnalyzerOrganizationSharingOutput`. """ + + async def enable_reachability_analyzer_organization_sharing( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableReachabilityAnalyzerOrganizationSharingOutput: return await self._invoke( - input, + self._select_input( + _models.ENABLE_REACHABILITY_ANALYZER_ORGANIZATION_SHARING, args, kwargs + ), _models.ENABLE_REACHABILITY_ANALYZER_ORGANIZATION_SHARING, [], plugins, ) + @_overload + async def enable_route_server_propagation( + self, + request: _models.EnableRouteServerPropagationInput + | _models.EnableRouteServerPropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableRouteServerPropagationOutput: ... + + @_overload async def enable_route_server_propagation( self, - input: EnableRouteServerPropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableRouteServerPropagationInputDict], ) -> EnableRouteServerPropagationOutput: """ Defines which route tables the route server can update with routes. @@ -17492,8 +27576,6 @@ async def enable_route_server_propagation( in the *Amazon VPC User Guide*. Args: - input: - An instance of `EnableRouteServerPropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17503,12 +27585,34 @@ async def enable_route_server_propagation( Returns: An instance of `EnableRouteServerPropagationOutput`. """ + + async def enable_route_server_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableRouteServerPropagationOutput: return await self._invoke( - input, _models.ENABLE_ROUTE_SERVER_PROPAGATION, [], plugins + self._select_input(_models.ENABLE_ROUTE_SERVER_PROPAGATION, args, kwargs), + _models.ENABLE_ROUTE_SERVER_PROPAGATION, + [], + plugins, ) + @_overload + async def enable_serial_console_access( + self, + request: _models.EnableSerialConsoleAccessInput + | _models.EnableSerialConsoleAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableSerialConsoleAccessOutput: ... + + @_overload async def enable_serial_console_access( - self, input: EnableSerialConsoleAccessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableSerialConsoleAccessInputDict], ) -> EnableSerialConsoleAccessOutput: """ Enables access to the EC2 serial console of all instances for your @@ -17519,8 +27623,6 @@ async def enable_serial_console_access( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableSerialConsoleAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17530,14 +27632,34 @@ async def enable_serial_console_access( Returns: An instance of `EnableSerialConsoleAccessOutput`. """ + + async def enable_serial_console_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableSerialConsoleAccessOutput: return await self._invoke( - input, _models.ENABLE_SERIAL_CONSOLE_ACCESS, [], plugins + self._select_input(_models.ENABLE_SERIAL_CONSOLE_ACCESS, args, kwargs), + _models.ENABLE_SERIAL_CONSOLE_ACCESS, + [], + plugins, ) + @_overload + async def enable_snapshot_block_public_access( + self, + request: _models.EnableSnapshotBlockPublicAccessInput + | _models.EnableSnapshotBlockPublicAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableSnapshotBlockPublicAccessOutput: ... + + @_overload async def enable_snapshot_block_public_access( self, - input: EnableSnapshotBlockPublicAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableSnapshotBlockPublicAccessInputDict], ) -> EnableSnapshotBlockPublicAccessOutput: """ Enables or modifies the *block public access for snapshots* setting at @@ -17563,8 +27685,6 @@ async def enable_snapshot_block_public_access( in the *Amazon EBS User Guide*. Args: - input: - An instance of `EnableSnapshotBlockPublicAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17574,22 +27694,42 @@ async def enable_snapshot_block_public_access( Returns: An instance of `EnableSnapshotBlockPublicAccessOutput`. """ + + async def enable_snapshot_block_public_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableSnapshotBlockPublicAccessOutput: return await self._invoke( - input, _models.ENABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, [], plugins + self._select_input( + _models.ENABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, args, kwargs + ), + _models.ENABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, + [], + plugins, ) + @_overload + async def enable_transit_gateway_route_table_propagation( + self, + request: _models.EnableTransitGatewayRouteTablePropagationInput + | _models.EnableTransitGatewayRouteTablePropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableTransitGatewayRouteTablePropagationOutput: ... + + @_overload async def enable_transit_gateway_route_table_propagation( self, - input: EnableTransitGatewayRouteTablePropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableTransitGatewayRouteTablePropagationInputDict], ) -> EnableTransitGatewayRouteTablePropagationOutput: """ Enables the specified attachment to propagate routes to the specified propagation route table. Args: - input: - An instance of `EnableTransitGatewayRouteTablePropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17599,20 +27739,42 @@ async def enable_transit_gateway_route_table_propagation( Returns: An instance of `EnableTransitGatewayRouteTablePropagationOutput`. """ + + async def enable_transit_gateway_route_table_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableTransitGatewayRouteTablePropagationOutput: return await self._invoke( - input, _models.ENABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, [], plugins + self._select_input( + _models.ENABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, args, kwargs + ), + _models.ENABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, + [], + plugins, ) + @_overload async def enable_vgw_route_propagation( - self, input: EnableVgwRoutePropagationInput, plugins: list[Plugin] | None = None + self, + request: _models.EnableVgwRoutePropagationInput + | _models.EnableVgwRoutePropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableVgwRoutePropagationOutput: ... + + @_overload + async def enable_vgw_route_propagation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableVgwRoutePropagationInputDict], ) -> EnableVgwRoutePropagationOutput: """ Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. Args: - input: - An instance of `EnableVgwRoutePropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17622,20 +27784,39 @@ async def enable_vgw_route_propagation( Returns: An instance of `EnableVgwRoutePropagationOutput`. """ + + async def enable_vgw_route_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableVgwRoutePropagationOutput: return await self._invoke( - input, _models.ENABLE_VGW_ROUTE_PROPAGATION, [], plugins + self._select_input(_models.ENABLE_VGW_ROUTE_PROPAGATION, args, kwargs), + _models.ENABLE_VGW_ROUTE_PROPAGATION, + [], + plugins, ) + @_overload + async def enable_volume_io( + self, + request: _models.EnableVolumeIOInput | _models.EnableVolumeIOInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableVolumeIOOutput: ... + + @_overload async def enable_volume_io( - self, input: EnableVolumeIOInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableVolumeIOInputDict], ) -> EnableVolumeIOOutput: """ Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent. Args: - input: - An instance of `EnableVolumeIOInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17645,10 +27826,34 @@ async def enable_volume_io( Returns: An instance of `EnableVolumeIOOutput`. """ - return await self._invoke(input, _models.ENABLE_VOLUME_IO, [], plugins) + async def enable_volume_io( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableVolumeIOOutput: + return await self._invoke( + self._select_input(_models.ENABLE_VOLUME_IO, args, kwargs), + _models.ENABLE_VOLUME_IO, + [], + plugins, + ) + + @_overload async def enable_vpc_classic_link( - self, input: EnableVpcClassicLinkInput, plugins: list[Plugin] | None = None + self, + request: _models.EnableVpcClassicLinkInput + | _models.EnableVpcClassicLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableVpcClassicLinkOutput: ... + + @_overload + async def enable_vpc_classic_link( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableVpcClassicLinkInputDict], ) -> EnableVpcClassicLinkOutput: """ Note: @@ -17662,8 +27867,6 @@ async def enable_vpc_classic_link( `10.0.0.0/16` and `10.1.0.0/16` IP address ranges. Args: - input: - An instance of `EnableVpcClassicLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17673,12 +27876,34 @@ async def enable_vpc_classic_link( Returns: An instance of `EnableVpcClassicLinkOutput`. """ - return await self._invoke(input, _models.ENABLE_VPC_CLASSIC_LINK, [], plugins) + async def enable_vpc_classic_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableVpcClassicLinkOutput: + return await self._invoke( + self._select_input(_models.ENABLE_VPC_CLASSIC_LINK, args, kwargs), + _models.ENABLE_VPC_CLASSIC_LINK, + [], + plugins, + ) + + @_overload + async def enable_vpc_classic_link_dns_support( + self, + request: _models.EnableVpcClassicLinkDnsSupportInput + | _models.EnableVpcClassicLinkDnsSupportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableVpcClassicLinkDnsSupportOutput: ... + + @_overload async def enable_vpc_classic_link_dns_support( self, - input: EnableVpcClassicLinkDnsSupportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableVpcClassicLinkDnsSupportInputDict], ) -> EnableVpcClassicLinkDnsSupportOutput: """ Note: @@ -17694,8 +27919,6 @@ async def enable_vpc_classic_link_dns_support( You must specify a VPC ID in the request. Args: - input: - An instance of `EnableVpcClassicLinkDnsSupportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17705,22 +27928,44 @@ async def enable_vpc_classic_link_dns_support( Returns: An instance of `EnableVpcClassicLinkDnsSupportOutput`. """ + + async def enable_vpc_classic_link_dns_support( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableVpcClassicLinkDnsSupportOutput: return await self._invoke( - input, _models.ENABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, [], plugins + self._select_input( + _models.ENABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, args, kwargs + ), + _models.ENABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, + [], + plugins, ) + @_overload + async def export_client_vpn_client_certificate_revocation_list( + self, + request: _models.ExportClientVpnClientCertificateRevocationListInput + | _models.ExportClientVpnClientCertificateRevocationListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportClientVpnClientCertificateRevocationListOutput: ... + + @_overload async def export_client_vpn_client_certificate_revocation_list( self, - input: ExportClientVpnClientCertificateRevocationListInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ExportClientVpnClientCertificateRevocationListInputDict + ], ) -> ExportClientVpnClientCertificateRevocationListOutput: """ Downloads the client certificate revocation list for the specified Client VPN endpoint. Args: - input: - An instance of `ExportClientVpnClientCertificateRevocationListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17730,17 +27975,38 @@ async def export_client_vpn_client_certificate_revocation_list( Returns: An instance of `ExportClientVpnClientCertificateRevocationListOutput`. """ + + async def export_client_vpn_client_certificate_revocation_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportClientVpnClientCertificateRevocationListOutput: return await self._invoke( - input, + self._select_input( + _models.EXPORT_CLIENT_VPN_CLIENT_CERTIFICATE_REVOCATION_LIST, + args, + kwargs, + ), _models.EXPORT_CLIENT_VPN_CLIENT_CERTIFICATE_REVOCATION_LIST, [], plugins, ) + @_overload + async def export_client_vpn_client_configuration( + self, + request: _models.ExportClientVpnClientConfigurationInput + | _models.ExportClientVpnClientConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportClientVpnClientConfigurationOutput: ... + + @_overload async def export_client_vpn_client_configuration( self, - input: ExportClientVpnClientConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportClientVpnClientConfigurationInputDict], ) -> ExportClientVpnClientConfigurationOutput: """ Downloads the contents of the Client VPN endpoint configuration file for @@ -17749,8 +28015,6 @@ async def export_client_vpn_client_configuration( clients need to establish a connection with the Client VPN endpoint. Args: - input: - An instance of `ExportClientVpnClientConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17760,12 +28024,35 @@ async def export_client_vpn_client_configuration( Returns: An instance of `ExportClientVpnClientConfigurationOutput`. """ + + async def export_client_vpn_client_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportClientVpnClientConfigurationOutput: return await self._invoke( - input, _models.EXPORT_CLIENT_VPN_CLIENT_CONFIGURATION, [], plugins + self._select_input( + _models.EXPORT_CLIENT_VPN_CLIENT_CONFIGURATION, args, kwargs + ), + _models.EXPORT_CLIENT_VPN_CLIENT_CONFIGURATION, + [], + plugins, ) + @_overload + async def export_image( + self, + request: _models.ExportImageInput | _models.ExportImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportImageOutput: ... + + @_overload async def export_image( - self, input: ExportImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportImageInputDict], ) -> ExportImageOutput: """ Exports an Amazon Machine Image (AMI) to a VM file. For more @@ -17774,8 +28061,6 @@ async def export_image( in the *VM Import/Export User Guide*. Args: - input: - An instance of `ExportImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17785,12 +28070,34 @@ async def export_image( Returns: An instance of `ExportImageOutput`. """ - return await self._invoke(input, _models.EXPORT_IMAGE, [], plugins) + async def export_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportImageOutput: + return await self._invoke( + self._select_input(_models.EXPORT_IMAGE, args, kwargs), + _models.EXPORT_IMAGE, + [], + plugins, + ) + + @_overload + async def export_transit_gateway_routes( + self, + request: _models.ExportTransitGatewayRoutesInput + | _models.ExportTransitGatewayRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportTransitGatewayRoutesOutput: ... + + @_overload async def export_transit_gateway_routes( self, - input: ExportTransitGatewayRoutesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportTransitGatewayRoutesInputDict], ) -> ExportTransitGatewayRoutesOutput: """ Exports routes from the specified transit gateway route table to the @@ -17803,8 +28110,6 @@ async def export_transit_gateway_routes( in the *Amazon Web Services Transit Gateways Guide*. Args: - input: - An instance of `ExportTransitGatewayRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17814,21 +28119,41 @@ async def export_transit_gateway_routes( Returns: An instance of `ExportTransitGatewayRoutesOutput`. """ + + async def export_transit_gateway_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportTransitGatewayRoutesOutput: return await self._invoke( - input, _models.EXPORT_TRANSIT_GATEWAY_ROUTES, [], plugins + self._select_input(_models.EXPORT_TRANSIT_GATEWAY_ROUTES, args, kwargs), + _models.EXPORT_TRANSIT_GATEWAY_ROUTES, + [], + plugins, ) + @_overload + async def export_verified_access_instance_client_configuration( + self, + request: _models.ExportVerifiedAccessInstanceClientConfigurationInput + | _models.ExportVerifiedAccessInstanceClientConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportVerifiedAccessInstanceClientConfigurationOutput: ... + + @_overload async def export_verified_access_instance_client_configuration( self, - input: ExportVerifiedAccessInstanceClientConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ExportVerifiedAccessInstanceClientConfigurationInputDict + ], ) -> ExportVerifiedAccessInstanceClientConfigurationOutput: """ Exports the client configuration for a Verified Access instance. Args: - input: - An instance of `ExportVerifiedAccessInstanceClientConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17838,15 +28163,38 @@ async def export_verified_access_instance_client_configuration( Returns: An instance of `ExportVerifiedAccessInstanceClientConfigurationOutput`. """ + + async def export_verified_access_instance_client_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportVerifiedAccessInstanceClientConfigurationOutput: return await self._invoke( - input, + self._select_input( + _models.EXPORT_VERIFIED_ACCESS_INSTANCE_CLIENT_CONFIGURATION, + args, + kwargs, + ), _models.EXPORT_VERIFIED_ACCESS_INSTANCE_CLIENT_CONFIGURATION, [], plugins, ) + @_overload + async def get_active_vpn_tunnel_status( + self, + request: _models.GetActiveVpnTunnelStatusInput + | _models.GetActiveVpnTunnelStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetActiveVpnTunnelStatusOutput: ... + + @_overload async def get_active_vpn_tunnel_status( - self, input: GetActiveVpnTunnelStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetActiveVpnTunnelStatusInputDict], ) -> GetActiveVpnTunnelStatusOutput: """ Returns the currently negotiated security parameters for an active VPN @@ -17854,8 +28202,6 @@ async def get_active_vpn_tunnel_status( integrity algorithms. Args: - input: - An instance of `GetActiveVpnTunnelStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17865,12 +28211,34 @@ async def get_active_vpn_tunnel_status( Returns: An instance of `GetActiveVpnTunnelStatusOutput`. """ + + async def get_active_vpn_tunnel_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetActiveVpnTunnelStatusOutput: return await self._invoke( - input, _models.GET_ACTIVE_VPN_TUNNEL_STATUS, [], plugins + self._select_input(_models.GET_ACTIVE_VPN_TUNNEL_STATUS, args, kwargs), + _models.GET_ACTIVE_VPN_TUNNEL_STATUS, + [], + plugins, ) + @_overload + async def get_allowed_images_settings( + self, + request: _models.GetAllowedImagesSettingsInput + | _models.GetAllowedImagesSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAllowedImagesSettingsOutput: ... + + @_overload async def get_allowed_images_settings( - self, input: GetAllowedImagesSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAllowedImagesSettingsInputDict], ) -> GetAllowedImagesSettingsOutput: """ Gets the current state of the Allowed AMIs setting and the list of @@ -17887,8 +28255,6 @@ async def get_allowed_images_settings( in *Amazon EC2 User Guide*. Args: - input: - An instance of `GetAllowedImagesSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17898,14 +28264,34 @@ async def get_allowed_images_settings( Returns: An instance of `GetAllowedImagesSettingsOutput`. """ + + async def get_allowed_images_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAllowedImagesSettingsOutput: return await self._invoke( - input, _models.GET_ALLOWED_IMAGES_SETTINGS, [], plugins + self._select_input(_models.GET_ALLOWED_IMAGES_SETTINGS, args, kwargs), + _models.GET_ALLOWED_IMAGES_SETTINGS, + [], + plugins, ) + @_overload + async def get_associated_enclave_certificate_iam_roles( + self, + request: _models.GetAssociatedEnclaveCertificateIamRolesInput + | _models.GetAssociatedEnclaveCertificateIamRolesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAssociatedEnclaveCertificateIamRolesOutput: ... + + @_overload async def get_associated_enclave_certificate_iam_roles( self, - input: GetAssociatedEnclaveCertificateIamRolesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAssociatedEnclaveCertificateIamRolesInputDict], ) -> GetAssociatedEnclaveCertificateIamRolesOutput: """ Returns the IAM roles that are associated with the specified ACM (ACM) @@ -17915,8 +28301,6 @@ async def get_associated_enclave_certificate_iam_roles( that's used to encrypt the private key. Args: - input: - An instance of `GetAssociatedEnclaveCertificateIamRolesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17926,22 +28310,42 @@ async def get_associated_enclave_certificate_iam_roles( Returns: An instance of `GetAssociatedEnclaveCertificateIamRolesOutput`. """ + + async def get_associated_enclave_certificate_iam_roles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAssociatedEnclaveCertificateIamRolesOutput: return await self._invoke( - input, _models.GET_ASSOCIATED_ENCLAVE_CERTIFICATE_IAM_ROLES, [], plugins + self._select_input( + _models.GET_ASSOCIATED_ENCLAVE_CERTIFICATE_IAM_ROLES, args, kwargs + ), + _models.GET_ASSOCIATED_ENCLAVE_CERTIFICATE_IAM_ROLES, + [], + plugins, ) + @_overload + async def get_associated_ipv6_pool_cidrs( + self, + request: _models.GetAssociatedIpv6PoolCidrsInput + | _models.GetAssociatedIpv6PoolCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAssociatedIpv6PoolCidrsOutput: ... + + @_overload async def get_associated_ipv6_pool_cidrs( self, - input: GetAssociatedIpv6PoolCidrsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAssociatedIpv6PoolCidrsInputDict], ) -> GetAssociatedIpv6PoolCidrsOutput: """ Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. Args: - input: - An instance of `GetAssociatedIpv6PoolCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17951,21 +28355,39 @@ async def get_associated_ipv6_pool_cidrs( Returns: An instance of `GetAssociatedIpv6PoolCidrsOutput`. """ + + async def get_associated_ipv6_pool_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAssociatedIpv6PoolCidrsOutput: return await self._invoke( - input, _models.GET_ASSOCIATED_IPV6_POOL_CIDRS, [], plugins + self._select_input(_models.GET_ASSOCIATED_IPV6_POOL_CIDRS, args, kwargs), + _models.GET_ASSOCIATED_IPV6_POOL_CIDRS, + [], + plugins, ) + @_overload + async def get_aws_network_performance_data( + self, + request: _models.GetAwsNetworkPerformanceDataInput + | _models.GetAwsNetworkPerformanceDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAwsNetworkPerformanceDataOutput: ... + + @_overload async def get_aws_network_performance_data( self, - input: GetAwsNetworkPerformanceDataInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAwsNetworkPerformanceDataInputDict], ) -> GetAwsNetworkPerformanceDataOutput: """ Gets network performance data. Args: - input: - An instance of `GetAwsNetworkPerformanceDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17975,14 +28397,34 @@ async def get_aws_network_performance_data( Returns: An instance of `GetAwsNetworkPerformanceDataOutput`. """ + + async def get_aws_network_performance_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAwsNetworkPerformanceDataOutput: return await self._invoke( - input, _models.GET_AWS_NETWORK_PERFORMANCE_DATA, [], plugins + self._select_input(_models.GET_AWS_NETWORK_PERFORMANCE_DATA, args, kwargs), + _models.GET_AWS_NETWORK_PERFORMANCE_DATA, + [], + plugins, ) + @_overload + async def get_capacity_manager_attributes( + self, + request: _models.GetCapacityManagerAttributesInput + | _models.GetCapacityManagerAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerAttributesOutput: ... + + @_overload async def get_capacity_manager_attributes( self, - input: GetCapacityManagerAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerAttributesInputDict], ) -> GetCapacityManagerAttributesOutput: """ Retrieves the current configuration and status of EC2 Capacity Manager @@ -17990,8 +28432,6 @@ async def get_capacity_manager_attributes( settings, and data ingestion status. Args: - input: - An instance of `GetCapacityManagerAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18001,14 +28441,34 @@ async def get_capacity_manager_attributes( Returns: An instance of `GetCapacityManagerAttributesOutput`. """ + + async def get_capacity_manager_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerAttributesOutput: return await self._invoke( - input, _models.GET_CAPACITY_MANAGER_ATTRIBUTES, [], plugins + self._select_input(_models.GET_CAPACITY_MANAGER_ATTRIBUTES, args, kwargs), + _models.GET_CAPACITY_MANAGER_ATTRIBUTES, + [], + plugins, ) + @_overload + async def get_capacity_manager_metric_data( + self, + request: _models.GetCapacityManagerMetricDataInput + | _models.GetCapacityManagerMetricDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerMetricDataOutput: ... + + @_overload async def get_capacity_manager_metric_data( self, - input: GetCapacityManagerMetricDataInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerMetricDataInputDict], ) -> GetCapacityManagerMetricDataOutput: """ Retrieves capacity usage metrics for your EC2 resources. Returns @@ -18018,8 +28478,6 @@ async def get_capacity_manager_metric_data( instance family. Args: - input: - An instance of `GetCapacityManagerMetricDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18029,14 +28487,34 @@ async def get_capacity_manager_metric_data( Returns: An instance of `GetCapacityManagerMetricDataOutput`. """ + + async def get_capacity_manager_metric_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerMetricDataOutput: return await self._invoke( - input, _models.GET_CAPACITY_MANAGER_METRIC_DATA, [], plugins + self._select_input(_models.GET_CAPACITY_MANAGER_METRIC_DATA, args, kwargs), + _models.GET_CAPACITY_MANAGER_METRIC_DATA, + [], + plugins, ) + @_overload + async def get_capacity_manager_metric_dimensions( + self, + request: _models.GetCapacityManagerMetricDimensionsInput + | _models.GetCapacityManagerMetricDimensionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerMetricDimensionsOutput: ... + + @_overload async def get_capacity_manager_metric_dimensions( self, - input: GetCapacityManagerMetricDimensionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerMetricDimensionsInputDict], ) -> GetCapacityManagerMetricDimensionsOutput: """ Retrieves the available dimension values for capacity metrics within a @@ -18045,8 +28523,6 @@ async def get_capacity_manager_metric_dimensions( filtering and grouping. Args: - input: - An instance of `GetCapacityManagerMetricDimensionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18056,14 +28532,36 @@ async def get_capacity_manager_metric_dimensions( Returns: An instance of `GetCapacityManagerMetricDimensionsOutput`. """ + + async def get_capacity_manager_metric_dimensions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerMetricDimensionsOutput: return await self._invoke( - input, _models.GET_CAPACITY_MANAGER_METRIC_DIMENSIONS, [], plugins + self._select_input( + _models.GET_CAPACITY_MANAGER_METRIC_DIMENSIONS, args, kwargs + ), + _models.GET_CAPACITY_MANAGER_METRIC_DIMENSIONS, + [], + plugins, ) + @_overload + async def get_capacity_manager_monitored_tag_keys( + self, + request: _models.GetCapacityManagerMonitoredTagKeysInput + | _models.GetCapacityManagerMonitoredTagKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerMonitoredTagKeysOutput: ... + + @_overload async def get_capacity_manager_monitored_tag_keys( self, - input: GetCapacityManagerMonitoredTagKeysInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerMonitoredTagKeysInputDict], ) -> GetCapacityManagerMonitoredTagKeysOutput: """ Retrieves the tag keys that are currently being monitored by EC2 @@ -18072,8 +28570,6 @@ async def get_capacity_manager_monitored_tag_keys( values. Args: - input: - An instance of `GetCapacityManagerMonitoredTagKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18083,14 +28579,36 @@ async def get_capacity_manager_monitored_tag_keys( Returns: An instance of `GetCapacityManagerMonitoredTagKeysOutput`. """ + + async def get_capacity_manager_monitored_tag_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerMonitoredTagKeysOutput: return await self._invoke( - input, _models.GET_CAPACITY_MANAGER_MONITORED_TAG_KEYS, [], plugins + self._select_input( + _models.GET_CAPACITY_MANAGER_MONITORED_TAG_KEYS, args, kwargs + ), + _models.GET_CAPACITY_MANAGER_MONITORED_TAG_KEYS, + [], + plugins, ) + @_overload async def get_capacity_manager_supportability_scores( self, - input: GetCapacityManagerSupportabilityScoresInput, + request: _models.GetCapacityManagerSupportabilityScoresInput + | _models.GetCapacityManagerSupportabilityScoresInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerSupportabilityScoresOutput: ... + + @_overload + async def get_capacity_manager_supportability_scores( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerSupportabilityScoresInputDict], ) -> GetCapacityManagerSupportabilityScoresOutput: """ Scores how well each instance type and Availability Zone combination can @@ -18110,8 +28628,6 @@ async def get_capacity_manager_supportability_scores( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetCapacityManagerSupportabilityScoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18121,14 +28637,36 @@ async def get_capacity_manager_supportability_scores( Returns: An instance of `GetCapacityManagerSupportabilityScoresOutput`. """ + + async def get_capacity_manager_supportability_scores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerSupportabilityScoresOutput: return await self._invoke( - input, _models.GET_CAPACITY_MANAGER_SUPPORTABILITY_SCORES, [], plugins + self._select_input( + _models.GET_CAPACITY_MANAGER_SUPPORTABILITY_SCORES, args, kwargs + ), + _models.GET_CAPACITY_MANAGER_SUPPORTABILITY_SCORES, + [], + plugins, ) + @_overload + async def get_capacity_reservation_usage( + self, + request: _models.GetCapacityReservationUsageInput + | _models.GetCapacityReservationUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityReservationUsageOutput: ... + + @_overload async def get_capacity_reservation_usage( self, - input: GetCapacityReservationUsageInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityReservationUsageInputDict], ) -> GetCapacityReservationUsageOutput: """ Gets usage information about a Capacity Reservation. If the Capacity @@ -18138,8 +28676,6 @@ async def get_capacity_reservation_usage( shows only the Capacity Reservation owner's usage. Args: - input: - An instance of `GetCapacityReservationUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18149,21 +28685,39 @@ async def get_capacity_reservation_usage( Returns: An instance of `GetCapacityReservationUsageOutput`. """ + + async def get_capacity_reservation_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityReservationUsageOutput: return await self._invoke( - input, _models.GET_CAPACITY_RESERVATION_USAGE, [], plugins + self._select_input(_models.GET_CAPACITY_RESERVATION_USAGE, args, kwargs), + _models.GET_CAPACITY_RESERVATION_USAGE, + [], + plugins, ) + @_overload + async def get_client_vpn_endpoint_authorization_policy( + self, + request: _models.GetClientVpnEndpointAuthorizationPolicyInput + | _models.GetClientVpnEndpointAuthorizationPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetClientVpnEndpointAuthorizationPolicyOutput: ... + + @_overload async def get_client_vpn_endpoint_authorization_policy( self, - input: GetClientVpnEndpointAuthorizationPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetClientVpnEndpointAuthorizationPolicyInputDict], ) -> GetClientVpnEndpointAuthorizationPolicyOutput: """ Describes the authorization policy for a Client VPN endpoint. Args: - input: - An instance of `GetClientVpnEndpointAuthorizationPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18173,20 +28727,41 @@ async def get_client_vpn_endpoint_authorization_policy( Returns: An instance of `GetClientVpnEndpointAuthorizationPolicyOutput`. """ + + async def get_client_vpn_endpoint_authorization_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetClientVpnEndpointAuthorizationPolicyOutput: return await self._invoke( - input, _models.GET_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, [], plugins + self._select_input( + _models.GET_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, args, kwargs + ), + _models.GET_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, + [], + plugins, ) + @_overload + async def get_coip_pool_usage( + self, + request: _models.GetCoipPoolUsageInput | _models.GetCoipPoolUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCoipPoolUsageOutput: ... + + @_overload async def get_coip_pool_usage( - self, input: GetCoipPoolUsageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCoipPoolUsageInputDict], ) -> GetCoipPoolUsageOutput: """ Describes the allocations from the specified customer-owned address pool. Args: - input: - An instance of `GetCoipPoolUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18196,10 +28771,33 @@ async def get_coip_pool_usage( Returns: An instance of `GetCoipPoolUsageOutput`. """ - return await self._invoke(input, _models.GET_COIP_POOL_USAGE, [], plugins) + async def get_coip_pool_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCoipPoolUsageOutput: + return await self._invoke( + self._select_input(_models.GET_COIP_POOL_USAGE, args, kwargs), + _models.GET_COIP_POOL_USAGE, + [], + plugins, + ) + + @_overload async def get_console_output( - self, input: GetConsoleOutputInput, plugins: list[Plugin] | None = None + self, + request: _models.GetConsoleOutputInput | _models.GetConsoleOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConsoleOutputOutput: ... + + @_overload + async def get_console_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConsoleOutputInputDict], ) -> GetConsoleOutputOutput: """ Gets the console output for the specified instance. For Linux instances, @@ -18213,8 +28811,6 @@ async def get_console_output( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetConsoleOutputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18224,10 +28820,34 @@ async def get_console_output( Returns: An instance of `GetConsoleOutputOutput`. """ - return await self._invoke(input, _models.GET_CONSOLE_OUTPUT, [], plugins) + async def get_console_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConsoleOutputOutput: + return await self._invoke( + self._select_input(_models.GET_CONSOLE_OUTPUT, args, kwargs), + _models.GET_CONSOLE_OUTPUT, + [], + plugins, + ) + + @_overload + async def get_console_screenshot( + self, + request: _models.GetConsoleScreenshotInput + | _models.GetConsoleScreenshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConsoleScreenshotOutput: ... + + @_overload async def get_console_screenshot( - self, input: GetConsoleScreenshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConsoleScreenshotInputDict], ) -> GetConsoleScreenshotOutput: """ Retrieve a JPG-format screenshot of a running instance to help with @@ -18240,8 +28860,6 @@ async def get_console_screenshot( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetConsoleScreenshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18251,12 +28869,34 @@ async def get_console_screenshot( Returns: An instance of `GetConsoleScreenshotOutput`. """ - return await self._invoke(input, _models.GET_CONSOLE_SCREENSHOT, [], plugins) + async def get_console_screenshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConsoleScreenshotOutput: + return await self._invoke( + self._select_input(_models.GET_CONSOLE_SCREENSHOT, args, kwargs), + _models.GET_CONSOLE_SCREENSHOT, + [], + plugins, + ) + + @_overload + async def get_declarative_policies_report_summary( + self, + request: _models.GetDeclarativePoliciesReportSummaryInput + | _models.GetDeclarativePoliciesReportSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDeclarativePoliciesReportSummaryOutput: ... + + @_overload async def get_declarative_policies_report_summary( self, - input: GetDeclarativePoliciesReportSummaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDeclarativePoliciesReportSummaryInputDict], ) -> GetDeclarativePoliciesReportSummaryOutput: """ Retrieves a summary of the account status report. @@ -18275,8 +28915,6 @@ async def get_declarative_policies_report_summary( in the *Amazon Web Services Organizations User Guide*. Args: - input: - An instance of `GetDeclarativePoliciesReportSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18286,14 +28924,36 @@ async def get_declarative_policies_report_summary( Returns: An instance of `GetDeclarativePoliciesReportSummaryOutput`. """ + + async def get_declarative_policies_report_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDeclarativePoliciesReportSummaryOutput: return await self._invoke( - input, _models.GET_DECLARATIVE_POLICIES_REPORT_SUMMARY, [], plugins + self._select_input( + _models.GET_DECLARATIVE_POLICIES_REPORT_SUMMARY, args, kwargs + ), + _models.GET_DECLARATIVE_POLICIES_REPORT_SUMMARY, + [], + plugins, ) + @_overload + async def get_default_credit_specification( + self, + request: _models.GetDefaultCreditSpecificationInput + | _models.GetDefaultCreditSpecificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDefaultCreditSpecificationOutput: ... + + @_overload async def get_default_credit_specification( self, - input: GetDefaultCreditSpecificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDefaultCreditSpecificationInputDict], ) -> GetDefaultCreditSpecificationOutput: """ Describes the default credit option for CPU usage of a burstable @@ -18304,8 +28964,6 @@ async def get_default_credit_specification( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetDefaultCreditSpecificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18315,12 +28973,34 @@ async def get_default_credit_specification( Returns: An instance of `GetDefaultCreditSpecificationOutput`. """ + + async def get_default_credit_specification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDefaultCreditSpecificationOutput: return await self._invoke( - input, _models.GET_DEFAULT_CREDIT_SPECIFICATION, [], plugins + self._select_input(_models.GET_DEFAULT_CREDIT_SPECIFICATION, args, kwargs), + _models.GET_DEFAULT_CREDIT_SPECIFICATION, + [], + plugins, ) + @_overload + async def get_ebs_default_kms_key_id( + self, + request: _models.GetEbsDefaultKmsKeyIdInput + | _models.GetEbsDefaultKmsKeyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEbsDefaultKmsKeyIdOutput: ... + + @_overload async def get_ebs_default_kms_key_id( - self, input: GetEbsDefaultKmsKeyIdInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEbsDefaultKmsKeyIdInputDict], ) -> GetEbsDefaultKmsKeyIdOutput: """ Describes the default KMS key for EBS encryption by default for your @@ -18331,8 +29011,6 @@ async def get_ebs_default_kms_key_id( in the *Amazon EBS User Guide*. Args: - input: - An instance of `GetEbsDefaultKmsKeyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18342,12 +29020,34 @@ async def get_ebs_default_kms_key_id( Returns: An instance of `GetEbsDefaultKmsKeyIdOutput`. """ + + async def get_ebs_default_kms_key_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEbsDefaultKmsKeyIdOutput: return await self._invoke( - input, _models.GET_EBS_DEFAULT_KMS_KEY_ID, [], plugins + self._select_input(_models.GET_EBS_DEFAULT_KMS_KEY_ID, args, kwargs), + _models.GET_EBS_DEFAULT_KMS_KEY_ID, + [], + plugins, ) + @_overload + async def get_ebs_encryption_by_default( + self, + request: _models.GetEbsEncryptionByDefaultInput + | _models.GetEbsEncryptionByDefaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEbsEncryptionByDefaultOutput: ... + + @_overload async def get_ebs_encryption_by_default( - self, input: GetEbsEncryptionByDefaultInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEbsEncryptionByDefaultInputDict], ) -> GetEbsEncryptionByDefaultOutput: """ Describes whether EBS encryption by default is enabled for your account @@ -18358,8 +29058,6 @@ async def get_ebs_encryption_by_default( in the *Amazon EBS User Guide*. Args: - input: - An instance of `GetEbsEncryptionByDefaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18369,12 +29067,34 @@ async def get_ebs_encryption_by_default( Returns: An instance of `GetEbsEncryptionByDefaultOutput`. """ + + async def get_ebs_encryption_by_default( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEbsEncryptionByDefaultOutput: return await self._invoke( - input, _models.GET_EBS_ENCRYPTION_BY_DEFAULT, [], plugins + self._select_input(_models.GET_EBS_ENCRYPTION_BY_DEFAULT, args, kwargs), + _models.GET_EBS_ENCRYPTION_BY_DEFAULT, + [], + plugins, ) + @_overload + async def get_enabled_ipam_policy( + self, + request: _models.GetEnabledIpamPolicyInput + | _models.GetEnabledIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEnabledIpamPolicyOutput: ... + + @_overload async def get_enabled_ipam_policy( - self, input: GetEnabledIpamPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEnabledIpamPolicyInputDict], ) -> GetEnabledIpamPolicyOutput: """ Gets the enabled IPAM policy. @@ -18389,8 +29109,6 @@ async def get_enabled_ipam_policy( account or an entity within Amazon Web Services Organizations. Args: - input: - An instance of `GetEnabledIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18400,12 +29118,34 @@ async def get_enabled_ipam_policy( Returns: An instance of `GetEnabledIpamPolicyOutput`. """ - return await self._invoke(input, _models.GET_ENABLED_IPAM_POLICY, [], plugins) + async def get_enabled_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEnabledIpamPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_ENABLED_IPAM_POLICY, args, kwargs), + _models.GET_ENABLED_IPAM_POLICY, + [], + plugins, + ) + + @_overload + async def get_flow_logs_integration_template( + self, + request: _models.GetFlowLogsIntegrationTemplateInput + | _models.GetFlowLogsIntegrationTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowLogsIntegrationTemplateOutput: ... + + @_overload async def get_flow_logs_integration_template( self, - input: GetFlowLogsIntegrationTemplateInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowLogsIntegrationTemplateInputDict], ) -> GetFlowLogsIntegrationTemplateOutput: """ Generates a CloudFormation template that streamlines and automates the @@ -18430,8 +29170,6 @@ async def get_flow_logs_integration_template( Cloud WAN Flow Logs and Amazon Athena. Args: - input: - An instance of `GetFlowLogsIntegrationTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18441,22 +29179,42 @@ async def get_flow_logs_integration_template( Returns: An instance of `GetFlowLogsIntegrationTemplateOutput`. """ + + async def get_flow_logs_integration_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowLogsIntegrationTemplateOutput: return await self._invoke( - input, _models.GET_FLOW_LOGS_INTEGRATION_TEMPLATE, [], plugins + self._select_input( + _models.GET_FLOW_LOGS_INTEGRATION_TEMPLATE, args, kwargs + ), + _models.GET_FLOW_LOGS_INTEGRATION_TEMPLATE, + [], + plugins, ) + @_overload async def get_groups_for_capacity_reservation( self, - input: GetGroupsForCapacityReservationInput, + request: _models.GetGroupsForCapacityReservationInput + | _models.GetGroupsForCapacityReservationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetGroupsForCapacityReservationOutput: ... + + @_overload + async def get_groups_for_capacity_reservation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGroupsForCapacityReservationInputDict], ) -> GetGroupsForCapacityReservationOutput: """ Lists the resource groups to which a Capacity Reservation has been added. Args: - input: - An instance of `GetGroupsForCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18466,14 +29224,36 @@ async def get_groups_for_capacity_reservation( Returns: An instance of `GetGroupsForCapacityReservationOutput`. """ + + async def get_groups_for_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGroupsForCapacityReservationOutput: return await self._invoke( - input, _models.GET_GROUPS_FOR_CAPACITY_RESERVATION, [], plugins + self._select_input( + _models.GET_GROUPS_FOR_CAPACITY_RESERVATION, args, kwargs + ), + _models.GET_GROUPS_FOR_CAPACITY_RESERVATION, + [], + plugins, ) + @_overload + async def get_host_reservation_purchase_preview( + self, + request: _models.GetHostReservationPurchasePreviewInput + | _models.GetHostReservationPurchasePreviewInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHostReservationPurchasePreviewOutput: ... + + @_overload async def get_host_reservation_purchase_preview( self, - input: GetHostReservationPurchasePreviewInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHostReservationPurchasePreviewInputDict], ) -> GetHostReservationPurchasePreviewOutput: """ Preview a reservation purchase with configurations that match those of @@ -18484,8 +29264,6 @@ async def get_host_reservation_purchase_preview( result in the offering being purchased. Args: - input: - An instance of `GetHostReservationPurchasePreviewInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18495,12 +29273,35 @@ async def get_host_reservation_purchase_preview( Returns: An instance of `GetHostReservationPurchasePreviewOutput`. """ + + async def get_host_reservation_purchase_preview( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHostReservationPurchasePreviewOutput: return await self._invoke( - input, _models.GET_HOST_RESERVATION_PURCHASE_PREVIEW, [], plugins + self._select_input( + _models.GET_HOST_RESERVATION_PURCHASE_PREVIEW, args, kwargs + ), + _models.GET_HOST_RESERVATION_PURCHASE_PREVIEW, + [], + plugins, ) + @_overload + async def get_image_ancestry( + self, + request: _models.GetImageAncestryInput | _models.GetImageAncestryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImageAncestryOutput: ... + + @_overload async def get_image_ancestry( - self, input: GetImageAncestryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImageAncestryInputDict], ) -> GetImageAncestryOutput: """ Retrieves the ancestry chain of the specified AMI, tracing its lineage @@ -18509,8 +29310,6 @@ async def get_image_ancestry( in *Amazon EC2 User Guide*. Args: - input: - An instance of `GetImageAncestryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18520,12 +29319,34 @@ async def get_image_ancestry( Returns: An instance of `GetImageAncestryOutput`. """ - return await self._invoke(input, _models.GET_IMAGE_ANCESTRY, [], plugins) + async def get_image_ancestry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImageAncestryOutput: + return await self._invoke( + self._select_input(_models.GET_IMAGE_ANCESTRY, args, kwargs), + _models.GET_IMAGE_ANCESTRY, + [], + plugins, + ) + + @_overload + async def get_image_block_public_access_state( + self, + request: _models.GetImageBlockPublicAccessStateInput + | _models.GetImageBlockPublicAccessStateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImageBlockPublicAccessStateOutput: ... + + @_overload async def get_image_block_public_access_state( self, - input: GetImageBlockPublicAccessStateInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImageBlockPublicAccessStateInputDict], ) -> GetImageBlockPublicAccessStateOutput: """ Gets the current state of *block public access for AMIs* at the account @@ -18536,8 +29357,6 @@ async def get_image_block_public_access_state( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetImageBlockPublicAccessStateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18547,12 +29366,35 @@ async def get_image_block_public_access_state( Returns: An instance of `GetImageBlockPublicAccessStateOutput`. """ + + async def get_image_block_public_access_state( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImageBlockPublicAccessStateOutput: return await self._invoke( - input, _models.GET_IMAGE_BLOCK_PUBLIC_ACCESS_STATE, [], plugins + self._select_input( + _models.GET_IMAGE_BLOCK_PUBLIC_ACCESS_STATE, args, kwargs + ), + _models.GET_IMAGE_BLOCK_PUBLIC_ACCESS_STATE, + [], + plugins, ) + @_overload async def get_image_findings( - self, input: GetImageFindingsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetImageFindingsInput | _models.GetImageFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImageFindingsOutput: ... + + @_overload + async def get_image_findings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImageFindingsInputDict], ) -> GetImageFindingsOutput: """ Describes the Amazon Inspector vulnerability findings for the specified @@ -18563,8 +29405,6 @@ async def get_image_findings( that it has scanned. Args: - input: - An instance of `GetImageFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18574,12 +29414,34 @@ async def get_image_findings( Returns: An instance of `GetImageFindingsOutput`. """ - return await self._invoke(input, _models.GET_IMAGE_FINDINGS, [], plugins) + async def get_image_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImageFindingsOutput: + return await self._invoke( + self._select_input(_models.GET_IMAGE_FINDINGS, args, kwargs), + _models.GET_IMAGE_FINDINGS, + [], + plugins, + ) + + @_overload + async def get_instance_metadata_defaults( + self, + request: _models.GetInstanceMetadataDefaultsInput + | _models.GetInstanceMetadataDefaultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceMetadataDefaultsOutput: ... + + @_overload async def get_instance_metadata_defaults( self, - input: GetInstanceMetadataDefaultsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceMetadataDefaultsInputDict], ) -> GetInstanceMetadataDefaultsOutput: """ Gets the default instance metadata service (IMDS) settings that are set @@ -18590,8 +29452,6 @@ async def get_instance_metadata_defaults( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetInstanceMetadataDefaultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18601,20 +29461,40 @@ async def get_instance_metadata_defaults( Returns: An instance of `GetInstanceMetadataDefaultsOutput`. """ + + async def get_instance_metadata_defaults( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceMetadataDefaultsOutput: return await self._invoke( - input, _models.GET_INSTANCE_METADATA_DEFAULTS, [], plugins + self._select_input(_models.GET_INSTANCE_METADATA_DEFAULTS, args, kwargs), + _models.GET_INSTANCE_METADATA_DEFAULTS, + [], + plugins, ) + @_overload + async def get_instance_tpm_ek_pub( + self, + request: _models.GetInstanceTpmEkPubInput + | _models.GetInstanceTpmEkPubInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceTpmEkPubOutput: ... + + @_overload async def get_instance_tpm_ek_pub( - self, input: GetInstanceTpmEkPubInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceTpmEkPubInputDict], ) -> GetInstanceTpmEkPubOutput: """ Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance. Args: - input: - An instance of `GetInstanceTpmEkPubInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18624,12 +29504,34 @@ async def get_instance_tpm_ek_pub( Returns: An instance of `GetInstanceTpmEkPubOutput`. """ - return await self._invoke(input, _models.GET_INSTANCE_TPM_EK_PUB, [], plugins) + async def get_instance_tpm_ek_pub( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceTpmEkPubOutput: + return await self._invoke( + self._select_input(_models.GET_INSTANCE_TPM_EK_PUB, args, kwargs), + _models.GET_INSTANCE_TPM_EK_PUB, + [], + plugins, + ) + + @_overload + async def get_instance_types_from_instance_requirements( + self, + request: _models.GetInstanceTypesFromInstanceRequirementsInput + | _models.GetInstanceTypesFromInstanceRequirementsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceTypesFromInstanceRequirementsOutput: ... + + @_overload async def get_instance_types_from_instance_requirements( self, - input: GetInstanceTypesFromInstanceRequirementsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceTypesFromInstanceRequirementsInputDict], ) -> GetInstanceTypesFromInstanceRequirementsOutput: """ Returns a list of instance types with the specified instance attributes. @@ -18653,8 +29555,6 @@ async def get_instance_types_from_instance_requirements( in the *Amazon EC2 Auto Scaling User Guide*. Args: - input: - An instance of `GetInstanceTypesFromInstanceRequirementsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18664,12 +29564,36 @@ async def get_instance_types_from_instance_requirements( Returns: An instance of `GetInstanceTypesFromInstanceRequirementsOutput`. """ + + async def get_instance_types_from_instance_requirements( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceTypesFromInstanceRequirementsOutput: return await self._invoke( - input, _models.GET_INSTANCE_TYPES_FROM_INSTANCE_REQUIREMENTS, [], plugins + self._select_input( + _models.GET_INSTANCE_TYPES_FROM_INSTANCE_REQUIREMENTS, args, kwargs + ), + _models.GET_INSTANCE_TYPES_FROM_INSTANCE_REQUIREMENTS, + [], + plugins, ) + @_overload + async def get_instance_uefi_data( + self, + request: _models.GetInstanceUefiDataInput + | _models.GetInstanceUefiDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceUefiDataOutput: ... + + @_overload async def get_instance_uefi_data( - self, input: GetInstanceUefiDataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceUefiDataInputDict], ) -> GetInstanceUefiDataOutput: """ A binary representation of the UEFI variable store. Only non-volatile @@ -18691,8 +29615,6 @@ async def get_instance_uefi_data( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetInstanceUefiDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18702,10 +29624,34 @@ async def get_instance_uefi_data( Returns: An instance of `GetInstanceUefiDataOutput`. """ - return await self._invoke(input, _models.GET_INSTANCE_UEFI_DATA, [], plugins) + async def get_instance_uefi_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceUefiDataOutput: + return await self._invoke( + self._select_input(_models.GET_INSTANCE_UEFI_DATA, args, kwargs), + _models.GET_INSTANCE_UEFI_DATA, + [], + plugins, + ) + + @_overload + async def get_ipam_address_history( + self, + request: _models.GetIpamAddressHistoryInput + | _models.GetIpamAddressHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamAddressHistoryOutput: ... + + @_overload async def get_ipam_address_history( - self, input: GetIpamAddressHistoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamAddressHistoryInputDict], ) -> GetIpamAddressHistoryOutput: """ Retrieve historical information about a CIDR within an IPAM scope. For @@ -18714,8 +29660,6 @@ async def get_ipam_address_history( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `GetIpamAddressHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18725,10 +29669,34 @@ async def get_ipam_address_history( Returns: An instance of `GetIpamAddressHistoryOutput`. """ - return await self._invoke(input, _models.GET_IPAM_ADDRESS_HISTORY, [], plugins) + async def get_ipam_address_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamAddressHistoryOutput: + return await self._invoke( + self._select_input(_models.GET_IPAM_ADDRESS_HISTORY, args, kwargs), + _models.GET_IPAM_ADDRESS_HISTORY, + [], + plugins, + ) + + @_overload + async def get_ipam_discovered_accounts( + self, + request: _models.GetIpamDiscoveredAccountsInput + | _models.GetIpamDiscoveredAccountsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamDiscoveredAccountsOutput: ... + + @_overload async def get_ipam_discovered_accounts( - self, input: GetIpamDiscoveredAccountsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamDiscoveredAccountsInputDict], ) -> GetIpamDiscoveredAccountsOutput: """ Gets IPAM discovered accounts. A discovered account is an Amazon Web @@ -18738,8 +29706,6 @@ async def get_ipam_discovered_accounts( account can get all discovered accounts in the organization. Args: - input: - An instance of `GetIpamDiscoveredAccountsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18749,21 +29715,39 @@ async def get_ipam_discovered_accounts( Returns: An instance of `GetIpamDiscoveredAccountsOutput`. """ + + async def get_ipam_discovered_accounts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamDiscoveredAccountsOutput: return await self._invoke( - input, _models.GET_IPAM_DISCOVERED_ACCOUNTS, [], plugins + self._select_input(_models.GET_IPAM_DISCOVERED_ACCOUNTS, args, kwargs), + _models.GET_IPAM_DISCOVERED_ACCOUNTS, + [], + plugins, ) + @_overload + async def get_ipam_discovered_public_addresses( + self, + request: _models.GetIpamDiscoveredPublicAddressesInput + | _models.GetIpamDiscoveredPublicAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamDiscoveredPublicAddressesOutput: ... + + @_overload async def get_ipam_discovered_public_addresses( self, - input: GetIpamDiscoveredPublicAddressesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamDiscoveredPublicAddressesInputDict], ) -> GetIpamDiscoveredPublicAddressesOutput: """ Gets the public IP addresses that have been discovered by IPAM. Args: - input: - An instance of `GetIpamDiscoveredPublicAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18773,14 +29757,36 @@ async def get_ipam_discovered_public_addresses( Returns: An instance of `GetIpamDiscoveredPublicAddressesOutput`. """ + + async def get_ipam_discovered_public_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamDiscoveredPublicAddressesOutput: return await self._invoke( - input, _models.GET_IPAM_DISCOVERED_PUBLIC_ADDRESSES, [], plugins + self._select_input( + _models.GET_IPAM_DISCOVERED_PUBLIC_ADDRESSES, args, kwargs + ), + _models.GET_IPAM_DISCOVERED_PUBLIC_ADDRESSES, + [], + plugins, ) + @_overload + async def get_ipam_discovered_resource_cidrs( + self, + request: _models.GetIpamDiscoveredResourceCidrsInput + | _models.GetIpamDiscoveredResourceCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamDiscoveredResourceCidrsOutput: ... + + @_overload async def get_ipam_discovered_resource_cidrs( self, - input: GetIpamDiscoveredResourceCidrsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamDiscoveredResourceCidrsInputDict], ) -> GetIpamDiscoveredResourceCidrsOutput: """ Returns the resource CIDRs that are monitored as part of a resource @@ -18789,8 +29795,6 @@ async def get_ipam_discovered_resource_cidrs( Public IPv4 pools, VPC subnets, and Elastic IP addresses. Args: - input: - An instance of `GetIpamDiscoveredResourceCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18800,12 +29804,36 @@ async def get_ipam_discovered_resource_cidrs( Returns: An instance of `GetIpamDiscoveredResourceCidrsOutput`. """ + + async def get_ipam_discovered_resource_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamDiscoveredResourceCidrsOutput: return await self._invoke( - input, _models.GET_IPAM_DISCOVERED_RESOURCE_CIDRS, [], plugins + self._select_input( + _models.GET_IPAM_DISCOVERED_RESOURCE_CIDRS, args, kwargs + ), + _models.GET_IPAM_DISCOVERED_RESOURCE_CIDRS, + [], + plugins, ) + @_overload + async def get_ipam_discovered_routes( + self, + request: _models.GetIpamDiscoveredRoutesInput + | _models.GetIpamDiscoveredRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamDiscoveredRoutesOutput: ... + + @_overload async def get_ipam_discovered_routes( - self, input: GetIpamDiscoveredRoutesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamDiscoveredRoutesInputDict], ) -> GetIpamDiscoveredRoutesOutput: """ Retrieves Border Gateway Protocol (BGP) routes discovered by IPAM @@ -18815,8 +29843,6 @@ async def get_ipam_discovered_routes( operation returns quickly and successfully. Args: - input: - An instance of `GetIpamDiscoveredRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18826,14 +29852,34 @@ async def get_ipam_discovered_routes( Returns: An instance of `GetIpamDiscoveredRoutesOutput`. """ + + async def get_ipam_discovered_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamDiscoveredRoutesOutput: return await self._invoke( - input, _models.GET_IPAM_DISCOVERED_ROUTES, [], plugins + self._select_input(_models.GET_IPAM_DISCOVERED_ROUTES, args, kwargs), + _models.GET_IPAM_DISCOVERED_ROUTES, + [], + plugins, ) + @_overload + async def get_ipam_internet_registry_association_asns( + self, + request: _models.GetIpamInternetRegistryAssociationAsnsInput + | _models.GetIpamInternetRegistryAssociationAsnsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamInternetRegistryAssociationAsnsOutput: ... + + @_overload async def get_ipam_internet_registry_association_asns( self, - input: GetIpamInternetRegistryAssociationAsnsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamInternetRegistryAssociationAsnsInputDict], ) -> GetIpamInternetRegistryAssociationAsnsOutput: """ Retrieves Autonomous System Numbers (ASNs) registered with an internet @@ -18842,8 +29888,6 @@ async def get_ipam_internet_registry_association_asns( successfully. Args: - input: - An instance of `GetIpamInternetRegistryAssociationAsnsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18853,14 +29897,36 @@ async def get_ipam_internet_registry_association_asns( Returns: An instance of `GetIpamInternetRegistryAssociationAsnsOutput`. """ + + async def get_ipam_internet_registry_association_asns( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamInternetRegistryAssociationAsnsOutput: return await self._invoke( - input, _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_ASNS, [], plugins + self._select_input( + _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_ASNS, args, kwargs + ), + _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_ASNS, + [], + plugins, ) + @_overload + async def get_ipam_internet_registry_association_cidrs( + self, + request: _models.GetIpamInternetRegistryAssociationCidrsInput + | _models.GetIpamInternetRegistryAssociationCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamInternetRegistryAssociationCidrsOutput: ... + + @_overload async def get_ipam_internet_registry_association_cidrs( self, - input: GetIpamInternetRegistryAssociationCidrsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamInternetRegistryAssociationCidrsInputDict], ) -> GetIpamInternetRegistryAssociationCidrsOutput: """ Retrieves IP address CIDRs registered with an internet registry for an @@ -18868,8 +29934,6 @@ async def get_ipam_internet_registry_association_cidrs( ensure that the operation returns quickly and successfully. Args: - input: - An instance of `GetIpamInternetRegistryAssociationCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18879,14 +29943,36 @@ async def get_ipam_internet_registry_association_cidrs( Returns: An instance of `GetIpamInternetRegistryAssociationCidrsOutput`. """ + + async def get_ipam_internet_registry_association_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamInternetRegistryAssociationCidrsOutput: return await self._invoke( - input, _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_CIDRS, [], plugins + self._select_input( + _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_CIDRS, args, kwargs + ), + _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_CIDRS, + [], + plugins, ) + @_overload async def get_ipam_policy_allocation_rules( self, - input: GetIpamPolicyAllocationRulesInput, + request: _models.GetIpamPolicyAllocationRulesInput + | _models.GetIpamPolicyAllocationRulesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetIpamPolicyAllocationRulesOutput: ... + + @_overload + async def get_ipam_policy_allocation_rules( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPolicyAllocationRulesInputDict], ) -> GetIpamPolicyAllocationRulesOutput: """ Gets the allocation rules for an IPAM policy. @@ -18906,8 +29992,6 @@ async def get_ipam_policy_allocation_rules( IP addresses. Args: - input: - An instance of `GetIpamPolicyAllocationRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18917,14 +30001,34 @@ async def get_ipam_policy_allocation_rules( Returns: An instance of `GetIpamPolicyAllocationRulesOutput`. """ + + async def get_ipam_policy_allocation_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPolicyAllocationRulesOutput: return await self._invoke( - input, _models.GET_IPAM_POLICY_ALLOCATION_RULES, [], plugins + self._select_input(_models.GET_IPAM_POLICY_ALLOCATION_RULES, args, kwargs), + _models.GET_IPAM_POLICY_ALLOCATION_RULES, + [], + plugins, ) + @_overload + async def get_ipam_policy_organization_targets( + self, + request: _models.GetIpamPolicyOrganizationTargetsInput + | _models.GetIpamPolicyOrganizationTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPolicyOrganizationTargetsOutput: ... + + @_overload async def get_ipam_policy_organization_targets( self, - input: GetIpamPolicyOrganizationTargetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPolicyOrganizationTargetsInputDict], ) -> GetIpamPolicyOrganizationTargetsOutput: """ Gets the Amazon Web Services Organizations targets for an IPAM policy. @@ -18943,8 +30047,6 @@ async def get_ipam_policy_organization_targets( be applied. Args: - input: - An instance of `GetIpamPolicyOrganizationTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18954,12 +30056,36 @@ async def get_ipam_policy_organization_targets( Returns: An instance of `GetIpamPolicyOrganizationTargetsOutput`. """ + + async def get_ipam_policy_organization_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPolicyOrganizationTargetsOutput: return await self._invoke( - input, _models.GET_IPAM_POLICY_ORGANIZATION_TARGETS, [], plugins + self._select_input( + _models.GET_IPAM_POLICY_ORGANIZATION_TARGETS, args, kwargs + ), + _models.GET_IPAM_POLICY_ORGANIZATION_TARGETS, + [], + plugins, ) + @_overload + async def get_ipam_pool_allocations( + self, + request: _models.GetIpamPoolAllocationsInput + | _models.GetIpamPoolAllocationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPoolAllocationsOutput: ... + + @_overload async def get_ipam_pool_allocations( - self, input: GetIpamPoolAllocationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPoolAllocationsInputDict], ) -> GetIpamPoolAllocationsOutput: """ Get a list of all the CIDR allocations in an IPAM pool. The Region you @@ -18976,8 +30102,6 @@ async def get_ipam_pool_allocations( model. Args: - input: - An instance of `GetIpamPoolAllocationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18987,17 +30111,38 @@ async def get_ipam_pool_allocations( Returns: An instance of `GetIpamPoolAllocationsOutput`. """ - return await self._invoke(input, _models.GET_IPAM_POOL_ALLOCATIONS, [], plugins) + async def get_ipam_pool_allocations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPoolAllocationsOutput: + return await self._invoke( + self._select_input(_models.GET_IPAM_POOL_ALLOCATIONS, args, kwargs), + _models.GET_IPAM_POOL_ALLOCATIONS, + [], + plugins, + ) + + @_overload + async def get_ipam_pool_cidrs( + self, + request: _models.GetIpamPoolCidrsInput | _models.GetIpamPoolCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPoolCidrsOutput: ... + + @_overload async def get_ipam_pool_cidrs( - self, input: GetIpamPoolCidrsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPoolCidrsInputDict], ) -> GetIpamPoolCidrsOutput: """ Get the CIDRs provisioned to an IPAM pool. Args: - input: - An instance of `GetIpamPoolCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19007,12 +30152,34 @@ async def get_ipam_pool_cidrs( Returns: An instance of `GetIpamPoolCidrsOutput`. """ - return await self._invoke(input, _models.GET_IPAM_POOL_CIDRS, [], plugins) + async def get_ipam_pool_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPoolCidrsOutput: + return await self._invoke( + self._select_input(_models.GET_IPAM_POOL_CIDRS, args, kwargs), + _models.GET_IPAM_POOL_CIDRS, + [], + plugins, + ) + + @_overload + async def get_ipam_prefix_list_resolver_rules( + self, + request: _models.GetIpamPrefixListResolverRulesInput + | _models.GetIpamPrefixListResolverRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPrefixListResolverRulesOutput: ... + + @_overload async def get_ipam_prefix_list_resolver_rules( self, - input: GetIpamPrefixListResolverRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPrefixListResolverRulesInputDict], ) -> GetIpamPrefixListResolverRulesOutput: """ Retrieves the CIDR selection rules for an IPAM prefix list resolver. Use @@ -19020,8 +30187,6 @@ async def get_ipam_prefix_list_resolver_rules( are selected for synchronization with prefix lists. Args: - input: - An instance of `GetIpamPrefixListResolverRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19031,14 +30196,36 @@ async def get_ipam_prefix_list_resolver_rules( Returns: An instance of `GetIpamPrefixListResolverRulesOutput`. """ + + async def get_ipam_prefix_list_resolver_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPrefixListResolverRulesOutput: return await self._invoke( - input, _models.GET_IPAM_PREFIX_LIST_RESOLVER_RULES, [], plugins + self._select_input( + _models.GET_IPAM_PREFIX_LIST_RESOLVER_RULES, args, kwargs + ), + _models.GET_IPAM_PREFIX_LIST_RESOLVER_RULES, + [], + plugins, ) + @_overload + async def get_ipam_prefix_list_resolver_version_entries( + self, + request: _models.GetIpamPrefixListResolverVersionEntriesInput + | _models.GetIpamPrefixListResolverVersionEntriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPrefixListResolverVersionEntriesOutput: ... + + @_overload async def get_ipam_prefix_list_resolver_version_entries( self, - input: GetIpamPrefixListResolverVersionEntriesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPrefixListResolverVersionEntriesInputDict], ) -> GetIpamPrefixListResolverVersionEntriesOutput: """ Retrieves the CIDR entries for a specific version of an IPAM prefix list @@ -19046,8 +30233,6 @@ async def get_ipam_prefix_list_resolver_version_entries( synchronized at a particular point in time. Args: - input: - An instance of `GetIpamPrefixListResolverVersionEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19057,14 +30242,36 @@ async def get_ipam_prefix_list_resolver_version_entries( Returns: An instance of `GetIpamPrefixListResolverVersionEntriesOutput`. """ + + async def get_ipam_prefix_list_resolver_version_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPrefixListResolverVersionEntriesOutput: return await self._invoke( - input, _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSION_ENTRIES, [], plugins + self._select_input( + _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSION_ENTRIES, args, kwargs + ), + _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSION_ENTRIES, + [], + plugins, ) + @_overload + async def get_ipam_prefix_list_resolver_versions( + self, + request: _models.GetIpamPrefixListResolverVersionsInput + | _models.GetIpamPrefixListResolverVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPrefixListResolverVersionsOutput: ... + + @_overload async def get_ipam_prefix_list_resolver_versions( self, - input: GetIpamPrefixListResolverVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPrefixListResolverVersionsInputDict], ) -> GetIpamPrefixListResolverVersionsOutput: """ Retrieves version information for an IPAM prefix list resolver. @@ -19098,8 +30305,6 @@ async def get_ipam_prefix_list_resolver_versions( **Version 2 CIDRs:** 10.1.0.0/16, 10.2.0.0/16, 10.3.0.0/16 Args: - input: - An instance of `GetIpamPrefixListResolverVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19109,12 +30314,36 @@ async def get_ipam_prefix_list_resolver_versions( Returns: An instance of `GetIpamPrefixListResolverVersionsOutput`. """ + + async def get_ipam_prefix_list_resolver_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPrefixListResolverVersionsOutput: return await self._invoke( - input, _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSIONS, [], plugins + self._select_input( + _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSIONS, args, kwargs + ), + _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSIONS, + [], + plugins, ) + @_overload + async def get_ipam_resource_cidrs( + self, + request: _models.GetIpamResourceCidrsInput + | _models.GetIpamResourceCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamResourceCidrsOutput: ... + + @_overload async def get_ipam_resource_cidrs( - self, input: GetIpamResourceCidrsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamResourceCidrsInputDict], ) -> GetIpamResourceCidrsOutput: """ Returns resource CIDRs managed by IPAM in a given scope. If an IPAM is @@ -19124,8 +30353,6 @@ async def get_ipam_resource_cidrs( that belong to the owning account. Args: - input: - An instance of `GetIpamResourceCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19135,12 +30362,34 @@ async def get_ipam_resource_cidrs( Returns: An instance of `GetIpamResourceCidrsOutput`. """ - return await self._invoke(input, _models.GET_IPAM_RESOURCE_CIDRS, [], plugins) + async def get_ipam_resource_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamResourceCidrsOutput: + return await self._invoke( + self._select_input(_models.GET_IPAM_RESOURCE_CIDRS, args, kwargs), + _models.GET_IPAM_RESOURCE_CIDRS, + [], + plugins, + ) + + @_overload + async def get_ipam_route_origin_authorizations( + self, + request: _models.GetIpamRouteOriginAuthorizationsInput + | _models.GetIpamRouteOriginAuthorizationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamRouteOriginAuthorizationsOutput: ... + + @_overload async def get_ipam_route_origin_authorizations( self, - input: GetIpamRouteOriginAuthorizationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamRouteOriginAuthorizationsInputDict], ) -> GetIpamRouteOriginAuthorizationsOutput: """ Retrieves the current Route Origin Authorizations (ROAs) published to @@ -19149,8 +30398,6 @@ async def get_ipam_route_origin_authorizations( successfully. Args: - input: - An instance of `GetIpamRouteOriginAuthorizationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19160,14 +30407,36 @@ async def get_ipam_route_origin_authorizations( Returns: An instance of `GetIpamRouteOriginAuthorizationsOutput`. """ + + async def get_ipam_route_origin_authorizations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamRouteOriginAuthorizationsOutput: return await self._invoke( - input, _models.GET_IPAM_ROUTE_ORIGIN_AUTHORIZATIONS, [], plugins + self._select_input( + _models.GET_IPAM_ROUTE_ORIGIN_AUTHORIZATIONS, args, kwargs + ), + _models.GET_IPAM_ROUTE_ORIGIN_AUTHORIZATIONS, + [], + plugins, ) + @_overload + async def get_ipam_route_protection_findings( + self, + request: _models.GetIpamRouteProtectionFindingsInput + | _models.GetIpamRouteProtectionFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamRouteProtectionFindingsOutput: ... + + @_overload async def get_ipam_route_protection_findings( self, - input: GetIpamRouteProtectionFindingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamRouteProtectionFindingsInputDict], ) -> GetIpamRouteProtectionFindingsOutput: """ Retrieves route protection findings for an IPAM. Route protection @@ -19178,8 +30447,6 @@ async def get_ipam_route_protection_findings( and successfully. Args: - input: - An instance of `GetIpamRouteProtectionFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19189,14 +30456,36 @@ async def get_ipam_route_protection_findings( Returns: An instance of `GetIpamRouteProtectionFindingsOutput`. """ + + async def get_ipam_route_protection_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamRouteProtectionFindingsOutput: return await self._invoke( - input, _models.GET_IPAM_ROUTE_PROTECTION_FINDINGS, [], plugins + self._select_input( + _models.GET_IPAM_ROUTE_PROTECTION_FINDINGS, args, kwargs + ), + _models.GET_IPAM_ROUTE_PROTECTION_FINDINGS, + [], + plugins, ) + @_overload + async def get_ipam_routing_policy_registration_deltas( + self, + request: _models.GetIpamRoutingPolicyRegistrationDeltasInput + | _models.GetIpamRoutingPolicyRegistrationDeltasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamRoutingPolicyRegistrationDeltasOutput: ... + + @_overload async def get_ipam_routing_policy_registration_deltas( self, - input: GetIpamRoutingPolicyRegistrationDeltasInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamRoutingPolicyRegistrationDeltasInputDict], ) -> GetIpamRoutingPolicyRegistrationDeltasOutput: """ Retrieves the history of routing policy registration changes for an IPAM @@ -19204,8 +30493,6 @@ async def get_ipam_routing_policy_registration_deltas( that the operation returns quickly and successfully. Args: - input: - An instance of `GetIpamRoutingPolicyRegistrationDeltasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19215,14 +30502,36 @@ async def get_ipam_routing_policy_registration_deltas( Returns: An instance of `GetIpamRoutingPolicyRegistrationDeltasOutput`. """ + + async def get_ipam_routing_policy_registration_deltas( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamRoutingPolicyRegistrationDeltasOutput: return await self._invoke( - input, _models.GET_IPAM_ROUTING_POLICY_REGISTRATION_DELTAS, [], plugins + self._select_input( + _models.GET_IPAM_ROUTING_POLICY_REGISTRATION_DELTAS, args, kwargs + ), + _models.GET_IPAM_ROUTING_POLICY_REGISTRATION_DELTAS, + [], + plugins, ) + @_overload + async def get_ipam_routing_policy_registrations( + self, + request: _models.GetIpamRoutingPolicyRegistrationsInput + | _models.GetIpamRoutingPolicyRegistrationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamRoutingPolicyRegistrationsOutput: ... + + @_overload async def get_ipam_routing_policy_registrations( self, - input: GetIpamRoutingPolicyRegistrationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamRoutingPolicyRegistrationsInputDict], ) -> GetIpamRoutingPolicyRegistrationsOutput: """ Retrieves routing policy registrations for an IPAM internet registry @@ -19232,8 +30541,6 @@ async def get_ipam_routing_policy_registrations( and successfully. Args: - input: - An instance of `GetIpamRoutingPolicyRegistrationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19243,12 +30550,36 @@ async def get_ipam_routing_policy_registrations( Returns: An instance of `GetIpamRoutingPolicyRegistrationsOutput`. """ + + async def get_ipam_routing_policy_registrations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamRoutingPolicyRegistrationsOutput: return await self._invoke( - input, _models.GET_IPAM_ROUTING_POLICY_REGISTRATIONS, [], plugins + self._select_input( + _models.GET_IPAM_ROUTING_POLICY_REGISTRATIONS, args, kwargs + ), + _models.GET_IPAM_ROUTING_POLICY_REGISTRATIONS, + [], + plugins, ) + @_overload async def get_launch_template_data( - self, input: GetLaunchTemplateDataInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLaunchTemplateDataInput + | _models.GetLaunchTemplateDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLaunchTemplateDataOutput: ... + + @_overload + async def get_launch_template_data( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLaunchTemplateDataInputDict], ) -> GetLaunchTemplateDataOutput: """ Retrieves the configuration data of the specified instance. You can use @@ -19262,8 +30593,6 @@ async def get_launch_template_data( your instance requirements. Args: - input: - An instance of `GetLaunchTemplateDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19273,20 +30602,40 @@ async def get_launch_template_data( Returns: An instance of `GetLaunchTemplateDataOutput`. """ - return await self._invoke(input, _models.GET_LAUNCH_TEMPLATE_DATA, [], plugins) + async def get_launch_template_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLaunchTemplateDataOutput: + return await self._invoke( + self._select_input(_models.GET_LAUNCH_TEMPLATE_DATA, args, kwargs), + _models.GET_LAUNCH_TEMPLATE_DATA, + [], + plugins, + ) + + @_overload + async def get_managed_prefix_list_associations( + self, + request: _models.GetManagedPrefixListAssociationsInput + | _models.GetManagedPrefixListAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetManagedPrefixListAssociationsOutput: ... + + @_overload async def get_managed_prefix_list_associations( self, - input: GetManagedPrefixListAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetManagedPrefixListAssociationsInputDict], ) -> GetManagedPrefixListAssociationsOutput: """ Gets information about the resources that are associated with the specified managed prefix list. Args: - input: - An instance of `GetManagedPrefixListAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19296,21 +30645,41 @@ async def get_managed_prefix_list_associations( Returns: An instance of `GetManagedPrefixListAssociationsOutput`. """ + + async def get_managed_prefix_list_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetManagedPrefixListAssociationsOutput: return await self._invoke( - input, _models.GET_MANAGED_PREFIX_LIST_ASSOCIATIONS, [], plugins + self._select_input( + _models.GET_MANAGED_PREFIX_LIST_ASSOCIATIONS, args, kwargs + ), + _models.GET_MANAGED_PREFIX_LIST_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def get_managed_prefix_list_entries( + self, + request: _models.GetManagedPrefixListEntriesInput + | _models.GetManagedPrefixListEntriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetManagedPrefixListEntriesOutput: ... + + @_overload async def get_managed_prefix_list_entries( self, - input: GetManagedPrefixListEntriesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetManagedPrefixListEntriesInputDict], ) -> GetManagedPrefixListEntriesOutput: """ Gets information about the entries for a specified managed prefix list. Args: - input: - An instance of `GetManagedPrefixListEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19320,14 +30689,34 @@ async def get_managed_prefix_list_entries( Returns: An instance of `GetManagedPrefixListEntriesOutput`. """ + + async def get_managed_prefix_list_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetManagedPrefixListEntriesOutput: return await self._invoke( - input, _models.GET_MANAGED_PREFIX_LIST_ENTRIES, [], plugins + self._select_input(_models.GET_MANAGED_PREFIX_LIST_ENTRIES, args, kwargs), + _models.GET_MANAGED_PREFIX_LIST_ENTRIES, + [], + plugins, ) + @_overload + async def get_managed_resource_visibility( + self, + request: _models.GetManagedResourceVisibilityInput + | _models.GetManagedResourceVisibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetManagedResourceVisibilityOutput: ... + + @_overload async def get_managed_resource_visibility( self, - input: GetManagedResourceVisibilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetManagedResourceVisibilityInputDict], ) -> GetManagedResourceVisibilityOutput: """ Retrieves the managed resource visibility configuration for the account. @@ -19335,8 +30724,6 @@ async def get_managed_resource_visibility( by default. Args: - input: - An instance of `GetManagedResourceVisibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19346,21 +30733,41 @@ async def get_managed_resource_visibility( Returns: An instance of `GetManagedResourceVisibilityOutput`. """ + + async def get_managed_resource_visibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetManagedResourceVisibilityOutput: return await self._invoke( - input, _models.GET_MANAGED_RESOURCE_VISIBILITY, [], plugins + self._select_input(_models.GET_MANAGED_RESOURCE_VISIBILITY, args, kwargs), + _models.GET_MANAGED_RESOURCE_VISIBILITY, + [], + plugins, ) + @_overload async def get_network_insights_access_scope_analysis_findings( self, - input: GetNetworkInsightsAccessScopeAnalysisFindingsInput, + request: _models.GetNetworkInsightsAccessScopeAnalysisFindingsInput + | _models.GetNetworkInsightsAccessScopeAnalysisFindingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetNetworkInsightsAccessScopeAnalysisFindingsOutput: ... + + @_overload + async def get_network_insights_access_scope_analysis_findings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.GetNetworkInsightsAccessScopeAnalysisFindingsInputDict + ], ) -> GetNetworkInsightsAccessScopeAnalysisFindingsOutput: """ Gets the findings for the specified Network Access Scope analysis. Args: - input: - An instance of `GetNetworkInsightsAccessScopeAnalysisFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19370,24 +30777,43 @@ async def get_network_insights_access_scope_analysis_findings( Returns: An instance of `GetNetworkInsightsAccessScopeAnalysisFindingsOutput`. """ + + async def get_network_insights_access_scope_analysis_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetNetworkInsightsAccessScopeAnalysisFindingsOutput: return await self._invoke( - input, + self._select_input( + _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS_FINDINGS, + args, + kwargs, + ), _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS_FINDINGS, [], plugins, ) + @_overload + async def get_network_insights_access_scope_content( + self, + request: _models.GetNetworkInsightsAccessScopeContentInput + | _models.GetNetworkInsightsAccessScopeContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetNetworkInsightsAccessScopeContentOutput: ... + + @_overload async def get_network_insights_access_scope_content( self, - input: GetNetworkInsightsAccessScopeContentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetNetworkInsightsAccessScopeContentInputDict], ) -> GetNetworkInsightsAccessScopeContentOutput: """ Gets the content for the specified Network Access Scope. Args: - input: - An instance of `GetNetworkInsightsAccessScopeContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19397,12 +30823,35 @@ async def get_network_insights_access_scope_content( Returns: An instance of `GetNetworkInsightsAccessScopeContentOutput`. """ + + async def get_network_insights_access_scope_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetNetworkInsightsAccessScopeContentOutput: return await self._invoke( - input, _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_CONTENT, [], plugins + self._select_input( + _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_CONTENT, args, kwargs + ), + _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_CONTENT, + [], + plugins, ) + @_overload async def get_password_data( - self, input: GetPasswordDataInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPasswordDataInput | _models.GetPasswordDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPasswordDataOutput: ... + + @_overload + async def get_password_data( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPasswordDataInputDict], ) -> GetPasswordDataOutput: """ Retrieves the encrypted administrator password for a running Windows @@ -19430,8 +30879,6 @@ async def get_password_data( retrieve the generated password. Args: - input: - An instance of `GetPasswordDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19441,12 +30888,34 @@ async def get_password_data( Returns: An instance of `GetPasswordDataOutput`. """ - return await self._invoke(input, _models.GET_PASSWORD_DATA, [], plugins) + async def get_password_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPasswordDataOutput: + return await self._invoke( + self._select_input(_models.GET_PASSWORD_DATA, args, kwargs), + _models.GET_PASSWORD_DATA, + [], + plugins, + ) + + @_overload + async def get_reserved_instances_exchange_quote( + self, + request: _models.GetReservedInstancesExchangeQuoteInput + | _models.GetReservedInstancesExchangeQuoteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetReservedInstancesExchangeQuoteOutput: ... + + @_overload async def get_reserved_instances_exchange_quote( self, - input: GetReservedInstancesExchangeQuoteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetReservedInstancesExchangeQuoteInputDict], ) -> GetReservedInstancesExchangeQuoteOutput: """ Returns a quote and exchange information for exchanging one or more @@ -19456,8 +30925,6 @@ async def get_reserved_instances_exchange_quote( exchange. Args: - input: - An instance of `GetReservedInstancesExchangeQuoteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19467,14 +30934,36 @@ async def get_reserved_instances_exchange_quote( Returns: An instance of `GetReservedInstancesExchangeQuoteOutput`. """ + + async def get_reserved_instances_exchange_quote( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetReservedInstancesExchangeQuoteOutput: return await self._invoke( - input, _models.GET_RESERVED_INSTANCES_EXCHANGE_QUOTE, [], plugins + self._select_input( + _models.GET_RESERVED_INSTANCES_EXCHANGE_QUOTE, args, kwargs + ), + _models.GET_RESERVED_INSTANCES_EXCHANGE_QUOTE, + [], + plugins, ) + @_overload + async def get_route_server_associations( + self, + request: _models.GetRouteServerAssociationsInput + | _models.GetRouteServerAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRouteServerAssociationsOutput: ... + + @_overload async def get_route_server_associations( self, - input: GetRouteServerAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRouteServerAssociationsInputDict], ) -> GetRouteServerAssociationsOutput: """ Gets information about the associations for the specified route server. @@ -19487,8 +30976,6 @@ async def get_route_server_associations( in the *Amazon VPC User Guide*. Args: - input: - An instance of `GetRouteServerAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19498,14 +30985,34 @@ async def get_route_server_associations( Returns: An instance of `GetRouteServerAssociationsOutput`. """ + + async def get_route_server_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRouteServerAssociationsOutput: return await self._invoke( - input, _models.GET_ROUTE_SERVER_ASSOCIATIONS, [], plugins + self._select_input(_models.GET_ROUTE_SERVER_ASSOCIATIONS, args, kwargs), + _models.GET_ROUTE_SERVER_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def get_route_server_propagations( + self, + request: _models.GetRouteServerPropagationsInput + | _models.GetRouteServerPropagationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRouteServerPropagationsOutput: ... + + @_overload async def get_route_server_propagations( self, - input: GetRouteServerPropagationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRouteServerPropagationsInputDict], ) -> GetRouteServerPropagationsOutput: """ Gets information about the route propagations for the specified route @@ -19537,8 +31044,6 @@ async def get_route_server_propagations( Connect](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html). Args: - input: - An instance of `GetRouteServerPropagationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19548,14 +31053,34 @@ async def get_route_server_propagations( Returns: An instance of `GetRouteServerPropagationsOutput`. """ + + async def get_route_server_propagations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRouteServerPropagationsOutput: return await self._invoke( - input, _models.GET_ROUTE_SERVER_PROPAGATIONS, [], plugins + self._select_input(_models.GET_ROUTE_SERVER_PROPAGATIONS, args, kwargs), + _models.GET_ROUTE_SERVER_PROPAGATIONS, + [], + plugins, ) + @_overload async def get_route_server_routing_database( self, - input: GetRouteServerRoutingDatabaseInput, + request: _models.GetRouteServerRoutingDatabaseInput + | _models.GetRouteServerRoutingDatabaseInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetRouteServerRoutingDatabaseOutput: ... + + @_overload + async def get_route_server_routing_database( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRouteServerRoutingDatabaseInputDict], ) -> GetRouteServerRoutingDatabaseOutput: """ Gets the routing database for the specified route server. The [Routing @@ -19589,8 +31114,6 @@ async def get_route_server_routing_database( Connect](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html). Args: - input: - An instance of `GetRouteServerRoutingDatabaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19600,20 +31123,40 @@ async def get_route_server_routing_database( Returns: An instance of `GetRouteServerRoutingDatabaseOutput`. """ + + async def get_route_server_routing_database( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRouteServerRoutingDatabaseOutput: return await self._invoke( - input, _models.GET_ROUTE_SERVER_ROUTING_DATABASE, [], plugins + self._select_input(_models.GET_ROUTE_SERVER_ROUTING_DATABASE, args, kwargs), + _models.GET_ROUTE_SERVER_ROUTING_DATABASE, + [], + plugins, ) + @_overload + async def get_security_groups_for_vpc( + self, + request: _models.GetSecurityGroupsForVpcInput + | _models.GetSecurityGroupsForVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSecurityGroupsForVpcOutput: ... + + @_overload async def get_security_groups_for_vpc( - self, input: GetSecurityGroupsForVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSecurityGroupsForVpcInputDict], ) -> GetSecurityGroupsForVpcOutput: """ Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC. Args: - input: - An instance of `GetSecurityGroupsForVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19623,14 +31166,34 @@ async def get_security_groups_for_vpc( Returns: An instance of `GetSecurityGroupsForVpcOutput`. """ + + async def get_security_groups_for_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSecurityGroupsForVpcOutput: return await self._invoke( - input, _models.GET_SECURITY_GROUPS_FOR_VPC, [], plugins + self._select_input(_models.GET_SECURITY_GROUPS_FOR_VPC, args, kwargs), + _models.GET_SECURITY_GROUPS_FOR_VPC, + [], + plugins, ) + @_overload + async def get_serial_console_access_status( + self, + request: _models.GetSerialConsoleAccessStatusInput + | _models.GetSerialConsoleAccessStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSerialConsoleAccessStatusOutput: ... + + @_overload async def get_serial_console_access_status( self, - input: GetSerialConsoleAccessStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSerialConsoleAccessStatusInputDict], ) -> GetSerialConsoleAccessStatusOutput: """ Retrieves the access status of your account to the EC2 serial console of @@ -19641,8 +31204,6 @@ async def get_serial_console_access_status( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetSerialConsoleAccessStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19652,14 +31213,34 @@ async def get_serial_console_access_status( Returns: An instance of `GetSerialConsoleAccessStatusOutput`. """ + + async def get_serial_console_access_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSerialConsoleAccessStatusOutput: return await self._invoke( - input, _models.GET_SERIAL_CONSOLE_ACCESS_STATUS, [], plugins + self._select_input(_models.GET_SERIAL_CONSOLE_ACCESS_STATUS, args, kwargs), + _models.GET_SERIAL_CONSOLE_ACCESS_STATUS, + [], + plugins, ) + @_overload + async def get_snapshot_block_public_access_state( + self, + request: _models.GetSnapshotBlockPublicAccessStateInput + | _models.GetSnapshotBlockPublicAccessStateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSnapshotBlockPublicAccessStateOutput: ... + + @_overload async def get_snapshot_block_public_access_state( self, - input: GetSnapshotBlockPublicAccessStateInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSnapshotBlockPublicAccessStateInputDict], ) -> GetSnapshotBlockPublicAccessStateOutput: """ Gets the current state of *block public access for snapshots* setting @@ -19670,8 +31251,6 @@ async def get_snapshot_block_public_access_state( in the *Amazon EBS User Guide*. Args: - input: - An instance of `GetSnapshotBlockPublicAccessStateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19681,12 +31260,36 @@ async def get_snapshot_block_public_access_state( Returns: An instance of `GetSnapshotBlockPublicAccessStateOutput`. """ + + async def get_snapshot_block_public_access_state( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSnapshotBlockPublicAccessStateOutput: return await self._invoke( - input, _models.GET_SNAPSHOT_BLOCK_PUBLIC_ACCESS_STATE, [], plugins + self._select_input( + _models.GET_SNAPSHOT_BLOCK_PUBLIC_ACCESS_STATE, args, kwargs + ), + _models.GET_SNAPSHOT_BLOCK_PUBLIC_ACCESS_STATE, + [], + plugins, ) + @_overload + async def get_spot_placement_scores( + self, + request: _models.GetSpotPlacementScoresInput + | _models.GetSpotPlacementScoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSpotPlacementScoresOutput: ... + + @_overload async def get_spot_placement_scores( - self, input: GetSpotPlacementScoresInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSpotPlacementScoresInputDict], ) -> GetSpotPlacementScoresOutput: """ Calculates the Spot placement score for a Region or Availability Zone @@ -19702,8 +31305,6 @@ async def get_spot_placement_scores( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetSpotPlacementScoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19713,17 +31314,39 @@ async def get_spot_placement_scores( Returns: An instance of `GetSpotPlacementScoresOutput`. """ - return await self._invoke(input, _models.GET_SPOT_PLACEMENT_SCORES, [], plugins) + async def get_spot_placement_scores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSpotPlacementScoresOutput: + return await self._invoke( + self._select_input(_models.GET_SPOT_PLACEMENT_SCORES, args, kwargs), + _models.GET_SPOT_PLACEMENT_SCORES, + [], + plugins, + ) + + @_overload + async def get_subnet_cidr_reservations( + self, + request: _models.GetSubnetCidrReservationsInput + | _models.GetSubnetCidrReservationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSubnetCidrReservationsOutput: ... + + @_overload async def get_subnet_cidr_reservations( - self, input: GetSubnetCidrReservationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSubnetCidrReservationsInputDict], ) -> GetSubnetCidrReservationsOutput: """ Gets information about the subnet CIDR reservations. Args: - input: - An instance of `GetSubnetCidrReservationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19733,14 +31356,34 @@ async def get_subnet_cidr_reservations( Returns: An instance of `GetSubnetCidrReservationsOutput`. """ + + async def get_subnet_cidr_reservations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSubnetCidrReservationsOutput: return await self._invoke( - input, _models.GET_SUBNET_CIDR_RESERVATIONS, [], plugins + self._select_input(_models.GET_SUBNET_CIDR_RESERVATIONS, args, kwargs), + _models.GET_SUBNET_CIDR_RESERVATIONS, + [], + plugins, ) + @_overload + async def get_transit_gateway_attachment_nat_configuration( + self, + request: _models.GetTransitGatewayAttachmentNatConfigurationInput + | _models.GetTransitGatewayAttachmentNatConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayAttachmentNatConfigurationOutput: ... + + @_overload async def get_transit_gateway_attachment_nat_configuration( self, - input: GetTransitGatewayAttachmentNatConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayAttachmentNatConfigurationInputDict], ) -> GetTransitGatewayAttachmentNatConfigurationOutput: """ Describes the NAT configuration for the specified transit gateway @@ -19748,8 +31391,6 @@ async def get_transit_gateway_attachment_nat_configuration( configuration. Args: - input: - An instance of `GetTransitGatewayAttachmentNatConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19759,22 +31400,42 @@ async def get_transit_gateway_attachment_nat_configuration( Returns: An instance of `GetTransitGatewayAttachmentNatConfigurationOutput`. """ + + async def get_transit_gateway_attachment_nat_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayAttachmentNatConfigurationOutput: return await self._invoke( - input, _models.GET_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_transit_gateway_attachment_propagations( + self, + request: _models.GetTransitGatewayAttachmentPropagationsInput + | _models.GetTransitGatewayAttachmentPropagationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayAttachmentPropagationsOutput: ... + + @_overload async def get_transit_gateway_attachment_propagations( self, - input: GetTransitGatewayAttachmentPropagationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayAttachmentPropagationsInputDict], ) -> GetTransitGatewayAttachmentPropagationsOutput: """ Lists the route tables to which the specified resource attachment propagates routes. Args: - input: - An instance of `GetTransitGatewayAttachmentPropagationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19784,21 +31445,41 @@ async def get_transit_gateway_attachment_propagations( Returns: An instance of `GetTransitGatewayAttachmentPropagationsOutput`. """ + + async def get_transit_gateway_attachment_propagations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayAttachmentPropagationsOutput: return await self._invoke( - input, _models.GET_TRANSIT_GATEWAY_ATTACHMENT_PROPAGATIONS, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_ATTACHMENT_PROPAGATIONS, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_ATTACHMENT_PROPAGATIONS, + [], + plugins, ) + @_overload async def get_transit_gateway_metering_policy_entries( self, - input: GetTransitGatewayMeteringPolicyEntriesInput, + request: _models.GetTransitGatewayMeteringPolicyEntriesInput + | _models.GetTransitGatewayMeteringPolicyEntriesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayMeteringPolicyEntriesOutput: ... + + @_overload + async def get_transit_gateway_metering_policy_entries( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayMeteringPolicyEntriesInputDict], ) -> GetTransitGatewayMeteringPolicyEntriesOutput: """ Retrieves the entries for a transit gateway metering policy. Args: - input: - An instance of `GetTransitGatewayMeteringPolicyEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19808,22 +31489,44 @@ async def get_transit_gateway_metering_policy_entries( Returns: An instance of `GetTransitGatewayMeteringPolicyEntriesOutput`. """ + + async def get_transit_gateway_metering_policy_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayMeteringPolicyEntriesOutput: return await self._invoke( - input, _models.GET_TRANSIT_GATEWAY_METERING_POLICY_ENTRIES, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_METERING_POLICY_ENTRIES, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_METERING_POLICY_ENTRIES, + [], + plugins, ) + @_overload + async def get_transit_gateway_multicast_domain_associations( + self, + request: _models.GetTransitGatewayMulticastDomainAssociationsInput + | _models.GetTransitGatewayMulticastDomainAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayMulticastDomainAssociationsOutput: ... + + @_overload async def get_transit_gateway_multicast_domain_associations( self, - input: GetTransitGatewayMulticastDomainAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.GetTransitGatewayMulticastDomainAssociationsInputDict + ], ) -> GetTransitGatewayMulticastDomainAssociationsOutput: """ Gets information about the associations for the transit gateway multicast domain. Args: - input: - An instance of `GetTransitGatewayMulticastDomainAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19833,24 +31536,41 @@ async def get_transit_gateway_multicast_domain_associations( Returns: An instance of `GetTransitGatewayMulticastDomainAssociationsOutput`. """ + + async def get_transit_gateway_multicast_domain_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayMulticastDomainAssociationsOutput: return await self._invoke( - input, + self._select_input( + _models.GET_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, args, kwargs + ), _models.GET_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, [], plugins, ) + @_overload async def get_transit_gateway_policy_table_associations( self, - input: GetTransitGatewayPolicyTableAssociationsInput, + request: _models.GetTransitGatewayPolicyTableAssociationsInput + | _models.GetTransitGatewayPolicyTableAssociationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayPolicyTableAssociationsOutput: ... + + @_overload + async def get_transit_gateway_policy_table_associations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayPolicyTableAssociationsInputDict], ) -> GetTransitGatewayPolicyTableAssociationsOutput: """ Gets a list of the transit gateway policy table associations. Args: - input: - An instance of `GetTransitGatewayPolicyTableAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19860,21 +31580,41 @@ async def get_transit_gateway_policy_table_associations( Returns: An instance of `GetTransitGatewayPolicyTableAssociationsOutput`. """ + + async def get_transit_gateway_policy_table_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayPolicyTableAssociationsOutput: return await self._invoke( - input, _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ASSOCIATIONS, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ASSOCIATIONS, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def get_transit_gateway_policy_table_entries( + self, + request: _models.GetTransitGatewayPolicyTableEntriesInput + | _models.GetTransitGatewayPolicyTableEntriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayPolicyTableEntriesOutput: ... + + @_overload async def get_transit_gateway_policy_table_entries( self, - input: GetTransitGatewayPolicyTableEntriesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayPolicyTableEntriesInputDict], ) -> GetTransitGatewayPolicyTableEntriesOutput: """ Returns a list of transit gateway policy table entries. Args: - input: - An instance of `GetTransitGatewayPolicyTableEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19884,22 +31624,42 @@ async def get_transit_gateway_policy_table_entries( Returns: An instance of `GetTransitGatewayPolicyTableEntriesOutput`. """ + + async def get_transit_gateway_policy_table_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayPolicyTableEntriesOutput: return await self._invoke( - input, _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ENTRIES, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ENTRIES, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ENTRIES, + [], + plugins, ) + @_overload + async def get_transit_gateway_prefix_list_references( + self, + request: _models.GetTransitGatewayPrefixListReferencesInput + | _models.GetTransitGatewayPrefixListReferencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayPrefixListReferencesOutput: ... + + @_overload async def get_transit_gateway_prefix_list_references( self, - input: GetTransitGatewayPrefixListReferencesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayPrefixListReferencesInputDict], ) -> GetTransitGatewayPrefixListReferencesOutput: """ Gets information about the prefix list references in a specified transit gateway route table. Args: - input: - An instance of `GetTransitGatewayPrefixListReferencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19909,22 +31669,42 @@ async def get_transit_gateway_prefix_list_references( Returns: An instance of `GetTransitGatewayPrefixListReferencesOutput`. """ + + async def get_transit_gateway_prefix_list_references( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayPrefixListReferencesOutput: return await self._invoke( - input, _models.GET_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCES, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCES, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCES, + [], + plugins, ) + @_overload + async def get_transit_gateway_route_table_associations( + self, + request: _models.GetTransitGatewayRouteTableAssociationsInput + | _models.GetTransitGatewayRouteTableAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayRouteTableAssociationsOutput: ... + + @_overload async def get_transit_gateway_route_table_associations( self, - input: GetTransitGatewayRouteTableAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayRouteTableAssociationsInputDict], ) -> GetTransitGatewayRouteTableAssociationsOutput: """ Gets information about the associations for the specified transit gateway route table. Args: - input: - An instance of `GetTransitGatewayRouteTableAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19934,22 +31714,42 @@ async def get_transit_gateway_route_table_associations( Returns: An instance of `GetTransitGatewayRouteTableAssociationsOutput`. """ + + async def get_transit_gateway_route_table_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayRouteTableAssociationsOutput: return await self._invoke( - input, _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_ASSOCIATIONS, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_ASSOCIATIONS, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def get_transit_gateway_route_table_propagations( + self, + request: _models.GetTransitGatewayRouteTablePropagationsInput + | _models.GetTransitGatewayRouteTablePropagationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayRouteTablePropagationsOutput: ... + + @_overload async def get_transit_gateway_route_table_propagations( self, - input: GetTransitGatewayRouteTablePropagationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayRouteTablePropagationsInputDict], ) -> GetTransitGatewayRouteTablePropagationsOutput: """ Gets information about the route table propagations for the specified transit gateway route table. Args: - input: - An instance of `GetTransitGatewayRouteTablePropagationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19959,21 +31759,41 @@ async def get_transit_gateway_route_table_propagations( Returns: An instance of `GetTransitGatewayRouteTablePropagationsOutput`. """ + + async def get_transit_gateway_route_table_propagations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayRouteTablePropagationsOutput: return await self._invoke( - input, _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATIONS, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATIONS, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATIONS, + [], + plugins, ) + @_overload + async def get_verified_access_endpoint_policy( + self, + request: _models.GetVerifiedAccessEndpointPolicyInput + | _models.GetVerifiedAccessEndpointPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVerifiedAccessEndpointPolicyOutput: ... + + @_overload async def get_verified_access_endpoint_policy( self, - input: GetVerifiedAccessEndpointPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVerifiedAccessEndpointPolicyInputDict], ) -> GetVerifiedAccessEndpointPolicyOutput: """ Get the Verified Access policy associated with the endpoint. Args: - input: - An instance of `GetVerifiedAccessEndpointPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19983,22 +31803,42 @@ async def get_verified_access_endpoint_policy( Returns: An instance of `GetVerifiedAccessEndpointPolicyOutput`. """ + + async def get_verified_access_endpoint_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVerifiedAccessEndpointPolicyOutput: return await self._invoke( - input, _models.GET_VERIFIED_ACCESS_ENDPOINT_POLICY, [], plugins + self._select_input( + _models.GET_VERIFIED_ACCESS_ENDPOINT_POLICY, args, kwargs + ), + _models.GET_VERIFIED_ACCESS_ENDPOINT_POLICY, + [], + plugins, ) + @_overload + async def get_verified_access_endpoint_targets( + self, + request: _models.GetVerifiedAccessEndpointTargetsInput + | _models.GetVerifiedAccessEndpointTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVerifiedAccessEndpointTargetsOutput: ... + + @_overload async def get_verified_access_endpoint_targets( self, - input: GetVerifiedAccessEndpointTargetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVerifiedAccessEndpointTargetsInputDict], ) -> GetVerifiedAccessEndpointTargetsOutput: """ Gets the targets for the specified network CIDR endpoint for Verified Access. Args: - input: - An instance of `GetVerifiedAccessEndpointTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20008,22 +31848,42 @@ async def get_verified_access_endpoint_targets( Returns: An instance of `GetVerifiedAccessEndpointTargetsOutput`. """ + + async def get_verified_access_endpoint_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVerifiedAccessEndpointTargetsOutput: return await self._invoke( - input, _models.GET_VERIFIED_ACCESS_ENDPOINT_TARGETS, [], plugins + self._select_input( + _models.GET_VERIFIED_ACCESS_ENDPOINT_TARGETS, args, kwargs + ), + _models.GET_VERIFIED_ACCESS_ENDPOINT_TARGETS, + [], + plugins, ) + @_overload + async def get_verified_access_group_policy( + self, + request: _models.GetVerifiedAccessGroupPolicyInput + | _models.GetVerifiedAccessGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVerifiedAccessGroupPolicyOutput: ... + + @_overload async def get_verified_access_group_policy( self, - input: GetVerifiedAccessGroupPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVerifiedAccessGroupPolicyInputDict], ) -> GetVerifiedAccessGroupPolicyOutput: """ Shows the contents of the Verified Access policy associated with the group. Args: - input: - An instance of `GetVerifiedAccessGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20033,14 +31893,36 @@ async def get_verified_access_group_policy( Returns: An instance of `GetVerifiedAccessGroupPolicyOutput`. """ + + async def get_verified_access_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVerifiedAccessGroupPolicyOutput: return await self._invoke( - input, _models.GET_VERIFIED_ACCESS_GROUP_POLICY, [], plugins + self._select_input(_models.GET_VERIFIED_ACCESS_GROUP_POLICY, args, kwargs), + _models.GET_VERIFIED_ACCESS_GROUP_POLICY, + [], + plugins, ) + @_overload async def get_vpc_resources_blocking_encryption_enforcement( self, - input: GetVpcResourcesBlockingEncryptionEnforcementInput, + request: _models.GetVpcResourcesBlockingEncryptionEnforcementInput + | _models.GetVpcResourcesBlockingEncryptionEnforcementInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetVpcResourcesBlockingEncryptionEnforcementOutput: ... + + @_overload + async def get_vpc_resources_blocking_encryption_enforcement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.GetVpcResourcesBlockingEncryptionEnforcementInputDict + ], ) -> GetVpcResourcesBlockingEncryptionEnforcementOutput: """ Gets information about resources in a VPC that are blocking encryption @@ -20051,8 +31933,6 @@ async def get_vpc_resources_blocking_encryption_enforcement( in the *Amazon VPC User Guide*. Args: - input: - An instance of `GetVpcResourcesBlockingEncryptionEnforcementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20062,17 +31942,36 @@ async def get_vpc_resources_blocking_encryption_enforcement( Returns: An instance of `GetVpcResourcesBlockingEncryptionEnforcementOutput`. """ + + async def get_vpc_resources_blocking_encryption_enforcement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcResourcesBlockingEncryptionEnforcementOutput: return await self._invoke( - input, + self._select_input( + _models.GET_VPC_RESOURCES_BLOCKING_ENCRYPTION_ENFORCEMENT, args, kwargs + ), _models.GET_VPC_RESOURCES_BLOCKING_ENCRYPTION_ENFORCEMENT, [], plugins, ) + @_overload + async def get_vpn_connection_device_sample_configuration( + self, + request: _models.GetVpnConnectionDeviceSampleConfigurationInput + | _models.GetVpnConnectionDeviceSampleConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpnConnectionDeviceSampleConfigurationOutput: ... + + @_overload async def get_vpn_connection_device_sample_configuration( self, - input: GetVpnConnectionDeviceSampleConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpnConnectionDeviceSampleConfigurationInputDict], ) -> GetVpnConnectionDeviceSampleConfigurationOutput: """ Download an Amazon Web Services-provided sample configuration file to be @@ -20080,8 +31979,6 @@ async def get_vpn_connection_device_sample_configuration( VPN connection. Args: - input: - An instance of `GetVpnConnectionDeviceSampleConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20091,14 +31988,36 @@ async def get_vpn_connection_device_sample_configuration( Returns: An instance of `GetVpnConnectionDeviceSampleConfigurationOutput`. """ + + async def get_vpn_connection_device_sample_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpnConnectionDeviceSampleConfigurationOutput: return await self._invoke( - input, _models.GET_VPN_CONNECTION_DEVICE_SAMPLE_CONFIGURATION, [], plugins + self._select_input( + _models.GET_VPN_CONNECTION_DEVICE_SAMPLE_CONFIGURATION, args, kwargs + ), + _models.GET_VPN_CONNECTION_DEVICE_SAMPLE_CONFIGURATION, + [], + plugins, ) + @_overload async def get_vpn_connection_device_types( self, - input: GetVpnConnectionDeviceTypesInput, + request: _models.GetVpnConnectionDeviceTypesInput + | _models.GetVpnConnectionDeviceTypesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetVpnConnectionDeviceTypesOutput: ... + + @_overload + async def get_vpn_connection_device_types( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpnConnectionDeviceTypesInputDict], ) -> GetVpnConnectionDeviceTypesOutput: """ Obtain a list of customer gateway devices for which sample configuration @@ -20109,8 +32028,6 @@ async def get_vpn_connection_device_types( the *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `GetVpnConnectionDeviceTypesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20120,21 +32037,39 @@ async def get_vpn_connection_device_types( Returns: An instance of `GetVpnConnectionDeviceTypesOutput`. """ + + async def get_vpn_connection_device_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpnConnectionDeviceTypesOutput: return await self._invoke( - input, _models.GET_VPN_CONNECTION_DEVICE_TYPES, [], plugins + self._select_input(_models.GET_VPN_CONNECTION_DEVICE_TYPES, args, kwargs), + _models.GET_VPN_CONNECTION_DEVICE_TYPES, + [], + plugins, ) + @_overload + async def get_vpn_tunnel_replacement_status( + self, + request: _models.GetVpnTunnelReplacementStatusInput + | _models.GetVpnTunnelReplacementStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpnTunnelReplacementStatusOutput: ... + + @_overload async def get_vpn_tunnel_replacement_status( self, - input: GetVpnTunnelReplacementStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpnTunnelReplacementStatusInputDict], ) -> GetVpnTunnelReplacementStatusOutput: """ Get details of available tunnel endpoint maintenance. Args: - input: - An instance of `GetVpnTunnelReplacementStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20144,14 +32079,36 @@ async def get_vpn_tunnel_replacement_status( Returns: An instance of `GetVpnTunnelReplacementStatusOutput`. """ + + async def get_vpn_tunnel_replacement_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpnTunnelReplacementStatusOutput: return await self._invoke( - input, _models.GET_VPN_TUNNEL_REPLACEMENT_STATUS, [], plugins + self._select_input(_models.GET_VPN_TUNNEL_REPLACEMENT_STATUS, args, kwargs), + _models.GET_VPN_TUNNEL_REPLACEMENT_STATUS, + [], + plugins, ) + @_overload + async def import_client_vpn_client_certificate_revocation_list( + self, + request: _models.ImportClientVpnClientCertificateRevocationListInput + | _models.ImportClientVpnClientCertificateRevocationListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportClientVpnClientCertificateRevocationListOutput: ... + + @_overload async def import_client_vpn_client_certificate_revocation_list( self, - input: ImportClientVpnClientCertificateRevocationListInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ImportClientVpnClientCertificateRevocationListInputDict + ], ) -> ImportClientVpnClientCertificateRevocationListOutput: """ Uploads a client certificate revocation list to the specified Client VPN @@ -20162,8 +32119,6 @@ async def import_client_vpn_client_certificate_revocation_list( connections. Args: - input: - An instance of `ImportClientVpnClientCertificateRevocationListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20173,15 +32128,37 @@ async def import_client_vpn_client_certificate_revocation_list( Returns: An instance of `ImportClientVpnClientCertificateRevocationListOutput`. """ + + async def import_client_vpn_client_certificate_revocation_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportClientVpnClientCertificateRevocationListOutput: return await self._invoke( - input, + self._select_input( + _models.IMPORT_CLIENT_VPN_CLIENT_CERTIFICATE_REVOCATION_LIST, + args, + kwargs, + ), _models.IMPORT_CLIENT_VPN_CLIENT_CERTIFICATE_REVOCATION_LIST, [], plugins, ) + @_overload + async def import_image( + self, + request: _models.ImportImageInput | _models.ImportImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportImageOutput: ... + + @_overload async def import_image( - self, input: ImportImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportImageInputDict], ) -> ImportImageOutput: """ Note: @@ -20207,8 +32184,6 @@ async def import_image( in the *VM Import/Export User Guide*. Args: - input: - An instance of `ImportImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20218,10 +32193,33 @@ async def import_image( Returns: An instance of `ImportImageOutput`. """ - return await self._invoke(input, _models.IMPORT_IMAGE, [], plugins) + async def import_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportImageOutput: + return await self._invoke( + self._select_input(_models.IMPORT_IMAGE, args, kwargs), + _models.IMPORT_IMAGE, + [], + plugins, + ) + + @_overload + async def import_instance( + self, + request: _models.ImportInstanceInput | _models.ImportInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportInstanceOutput: ... + + @_overload async def import_instance( - self, input: ImportInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportInstanceInputDict], ) -> ImportInstanceOutput: """ Note: @@ -20245,8 +32243,6 @@ async def import_instance( This API action is not supported by the Command Line Interface (CLI). Args: - input: - An instance of `ImportInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20256,10 +32252,33 @@ async def import_instance( Returns: An instance of `ImportInstanceOutput`. """ - return await self._invoke(input, _models.IMPORT_INSTANCE, [], plugins) + async def import_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportInstanceOutput: + return await self._invoke( + self._select_input(_models.IMPORT_INSTANCE, args, kwargs), + _models.IMPORT_INSTANCE, + [], + plugins, + ) + + @_overload + async def import_key_pair( + self, + request: _models.ImportKeyPairInput | _models.ImportKeyPairInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportKeyPairOutput: ... + + @_overload async def import_key_pair( - self, input: ImportKeyPairInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportKeyPairInputDict], ) -> ImportKeyPairOutput: """ Imports the public key from an RSA or ED25519 key pair that you created @@ -20273,8 +32292,6 @@ async def import_key_pair( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ImportKeyPairInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20284,10 +32301,33 @@ async def import_key_pair( Returns: An instance of `ImportKeyPairOutput`. """ - return await self._invoke(input, _models.IMPORT_KEY_PAIR, [], plugins) + async def import_key_pair( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportKeyPairOutput: + return await self._invoke( + self._select_input(_models.IMPORT_KEY_PAIR, args, kwargs), + _models.IMPORT_KEY_PAIR, + [], + plugins, + ) + + @_overload async def import_snapshot( - self, input: ImportSnapshotInput, plugins: list[Plugin] | None = None + self, + request: _models.ImportSnapshotInput | _models.ImportSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportSnapshotOutput: ... + + @_overload + async def import_snapshot( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportSnapshotInputDict], ) -> ImportSnapshotOutput: """ Imports a disk into an EBS snapshot. @@ -20297,8 +32337,6 @@ async def import_snapshot( in the *VM Import/Export User Guide*. Args: - input: - An instance of `ImportSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20308,10 +32346,33 @@ async def import_snapshot( Returns: An instance of `ImportSnapshotOutput`. """ - return await self._invoke(input, _models.IMPORT_SNAPSHOT, [], plugins) + async def import_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportSnapshotOutput: + return await self._invoke( + self._select_input(_models.IMPORT_SNAPSHOT, args, kwargs), + _models.IMPORT_SNAPSHOT, + [], + plugins, + ) + + @_overload + async def import_volume( + self, + request: _models.ImportVolumeInput | _models.ImportVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportVolumeOutput: ... + + @_overload async def import_volume( - self, input: ImportVolumeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportVolumeInputDict], ) -> ImportVolumeOutput: """ Note: @@ -20329,8 +32390,6 @@ async def import_volume( This API action is not supported by the Command Line Interface (CLI). Args: - input: - An instance of `ImportVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20340,10 +32399,34 @@ async def import_volume( Returns: An instance of `ImportVolumeOutput`. """ - return await self._invoke(input, _models.IMPORT_VOLUME, [], plugins) + async def import_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportVolumeOutput: + return await self._invoke( + self._select_input(_models.IMPORT_VOLUME, args, kwargs), + _models.IMPORT_VOLUME, + [], + plugins, + ) + + @_overload + async def list_images_in_recycle_bin( + self, + request: _models.ListImagesInRecycleBinInput + | _models.ListImagesInRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImagesInRecycleBinOutput: ... + + @_overload async def list_images_in_recycle_bin( - self, input: ListImagesInRecycleBinInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImagesInRecycleBinInputDict], ) -> ListImagesInRecycleBinOutput: """ Lists one or more AMIs that are currently in the Recycle Bin. For more @@ -20352,8 +32435,6 @@ async def list_images_in_recycle_bin( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ListImagesInRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20363,19 +32444,39 @@ async def list_images_in_recycle_bin( Returns: An instance of `ListImagesInRecycleBinOutput`. """ + + async def list_images_in_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImagesInRecycleBinOutput: return await self._invoke( - input, _models.LIST_IMAGES_IN_RECYCLE_BIN, [], plugins + self._select_input(_models.LIST_IMAGES_IN_RECYCLE_BIN, args, kwargs), + _models.LIST_IMAGES_IN_RECYCLE_BIN, + [], + plugins, ) + @_overload + async def list_snapshots_in_recycle_bin( + self, + request: _models.ListSnapshotsInRecycleBinInput + | _models.ListSnapshotsInRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSnapshotsInRecycleBinOutput: ... + + @_overload async def list_snapshots_in_recycle_bin( - self, input: ListSnapshotsInRecycleBinInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSnapshotsInRecycleBinInputDict], ) -> ListSnapshotsInRecycleBinOutput: """ Lists one or more snapshots that are currently in the Recycle Bin. Args: - input: - An instance of `ListSnapshotsInRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20385,19 +32486,39 @@ async def list_snapshots_in_recycle_bin( Returns: An instance of `ListSnapshotsInRecycleBinOutput`. """ + + async def list_snapshots_in_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSnapshotsInRecycleBinOutput: return await self._invoke( - input, _models.LIST_SNAPSHOTS_IN_RECYCLE_BIN, [], plugins + self._select_input(_models.LIST_SNAPSHOTS_IN_RECYCLE_BIN, args, kwargs), + _models.LIST_SNAPSHOTS_IN_RECYCLE_BIN, + [], + plugins, ) + @_overload async def list_volumes_in_recycle_bin( - self, input: ListVolumesInRecycleBinInput, plugins: list[Plugin] | None = None + self, + request: _models.ListVolumesInRecycleBinInput + | _models.ListVolumesInRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVolumesInRecycleBinOutput: ... + + @_overload + async def list_volumes_in_recycle_bin( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVolumesInRecycleBinInputDict], ) -> ListVolumesInRecycleBinOutput: """ Lists one or more volumes that are currently in the Recycle Bin. Args: - input: - An instance of `ListVolumesInRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20407,12 +32528,33 @@ async def list_volumes_in_recycle_bin( Returns: An instance of `ListVolumesInRecycleBinOutput`. """ + + async def list_volumes_in_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVolumesInRecycleBinOutput: return await self._invoke( - input, _models.LIST_VOLUMES_IN_RECYCLE_BIN, [], plugins + self._select_input(_models.LIST_VOLUMES_IN_RECYCLE_BIN, args, kwargs), + _models.LIST_VOLUMES_IN_RECYCLE_BIN, + [], + plugins, ) + @_overload + async def lock_snapshot( + self, + request: _models.LockSnapshotInput | _models.LockSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> LockSnapshotOutput: ... + + @_overload async def lock_snapshot( - self, input: LockSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.LockSnapshotInputDict], ) -> LockSnapshotOutput: """ Locks an Amazon EBS snapshot in either *governance* or *compliance* mode @@ -20435,8 +32577,6 @@ async def lock_snapshot( the lock expiration date. Args: - input: - An instance of `LockSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20446,12 +32586,34 @@ async def lock_snapshot( Returns: An instance of `LockSnapshotOutput`. """ - return await self._invoke(input, _models.LOCK_SNAPSHOT, [], plugins) + async def lock_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> LockSnapshotOutput: + return await self._invoke( + self._select_input(_models.LOCK_SNAPSHOT, args, kwargs), + _models.LOCK_SNAPSHOT, + [], + plugins, + ) + + @_overload async def modify_account_vpc_encryption_control( self, - input: ModifyAccountVpcEncryptionControlInput, + request: _models.ModifyAccountVpcEncryptionControlInput + | _models.ModifyAccountVpcEncryptionControlInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyAccountVpcEncryptionControlOutput: ... + + @_overload + async def modify_account_vpc_encryption_control( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyAccountVpcEncryptionControlInputDict], ) -> ModifyAccountVpcEncryptionControlOutput: """ Modifies the account-level VPC Encryption Control configuration. This @@ -20465,8 +32627,6 @@ async def modify_account_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ModifyAccountVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20476,12 +32636,36 @@ async def modify_account_vpc_encryption_control( Returns: An instance of `ModifyAccountVpcEncryptionControlOutput`. """ + + async def modify_account_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyAccountVpcEncryptionControlOutput: return await self._invoke( - input, _models.MODIFY_ACCOUNT_VPC_ENCRYPTION_CONTROL, [], plugins + self._select_input( + _models.MODIFY_ACCOUNT_VPC_ENCRYPTION_CONTROL, args, kwargs + ), + _models.MODIFY_ACCOUNT_VPC_ENCRYPTION_CONTROL, + [], + plugins, ) + @_overload + async def modify_address_attribute( + self, + request: _models.ModifyAddressAttributeInput + | _models.ModifyAddressAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyAddressAttributeOutput: ... + + @_overload async def modify_address_attribute( - self, input: ModifyAddressAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyAddressAttributeInputDict], ) -> ModifyAddressAttributeOutput: """ Modifies an attribute of the specified Elastic IP address. For @@ -20489,8 +32673,6 @@ async def modify_address_attribute( applications](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). Args: - input: - An instance of `ModifyAddressAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20500,12 +32682,34 @@ async def modify_address_attribute( Returns: An instance of `ModifyAddressAttributeOutput`. """ - return await self._invoke(input, _models.MODIFY_ADDRESS_ATTRIBUTE, [], plugins) + async def modify_address_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyAddressAttributeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_ADDRESS_ATTRIBUTE, args, kwargs), + _models.MODIFY_ADDRESS_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def modify_application_status_check( + self, + request: _models.ModifyApplicationStatusCheckInput + | _models.ModifyApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyApplicationStatusCheckOutput: ... + + @_overload async def modify_application_status_check( self, - input: ModifyApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyApplicationStatusCheckInputDict], ) -> ModifyApplicationStatusCheckOutput: """ Modifies an existing application status check. You can update the @@ -20517,8 +32721,6 @@ async def modify_application_status_check( - Changes take effect on the next health check interval. Args: - input: - An instance of `ModifyApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20528,21 +32730,39 @@ async def modify_application_status_check( Returns: An instance of `ModifyApplicationStatusCheckOutput`. """ + + async def modify_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyApplicationStatusCheckOutput: return await self._invoke( - input, _models.MODIFY_APPLICATION_STATUS_CHECK, [], plugins + self._select_input(_models.MODIFY_APPLICATION_STATUS_CHECK, args, kwargs), + _models.MODIFY_APPLICATION_STATUS_CHECK, + [], + plugins, ) + @_overload + async def modify_availability_zone_group( + self, + request: _models.ModifyAvailabilityZoneGroupInput + | _models.ModifyAvailabilityZoneGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyAvailabilityZoneGroupOutput: ... + + @_overload async def modify_availability_zone_group( self, - input: ModifyAvailabilityZoneGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyAvailabilityZoneGroupInputDict], ) -> ModifyAvailabilityZoneGroupOutput: """ Changes the opt-in status of the specified zone group for your account. Args: - input: - An instance of `ModifyAvailabilityZoneGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20552,12 +32772,34 @@ async def modify_availability_zone_group( Returns: An instance of `ModifyAvailabilityZoneGroupOutput`. """ + + async def modify_availability_zone_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyAvailabilityZoneGroupOutput: return await self._invoke( - input, _models.MODIFY_AVAILABILITY_ZONE_GROUP, [], plugins + self._select_input(_models.MODIFY_AVAILABILITY_ZONE_GROUP, args, kwargs), + _models.MODIFY_AVAILABILITY_ZONE_GROUP, + [], + plugins, ) + @_overload async def modify_capacity_reservation( - self, input: ModifyCapacityReservationInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyCapacityReservationInput + | _models.ModifyCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCapacityReservationOutput: ... + + @_overload + async def modify_capacity_reservation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCapacityReservationInputDict], ) -> ModifyCapacityReservationOutput: """ Modifies a Capacity Reservation's capacity, instance eligibility, and @@ -20595,8 +32837,6 @@ async def modify_capacity_reservation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20606,14 +32846,34 @@ async def modify_capacity_reservation( Returns: An instance of `ModifyCapacityReservationOutput`. """ + + async def modify_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCapacityReservationOutput: return await self._invoke( - input, _models.MODIFY_CAPACITY_RESERVATION, [], plugins + self._select_input(_models.MODIFY_CAPACITY_RESERVATION, args, kwargs), + _models.MODIFY_CAPACITY_RESERVATION, + [], + plugins, ) + @_overload + async def modify_capacity_reservation_fleet( + self, + request: _models.ModifyCapacityReservationFleetInput + | _models.ModifyCapacityReservationFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCapacityReservationFleetOutput: ... + + @_overload async def modify_capacity_reservation_fleet( self, - input: ModifyCapacityReservationFleetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCapacityReservationFleetInputDict], ) -> ModifyCapacityReservationFleetOutput: """ Modifies a Capacity Reservation Fleet. @@ -20626,8 +32886,6 @@ async def modify_capacity_reservation_fleet( the Fleet are updated accordingly. Args: - input: - An instance of `ModifyCapacityReservationFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20637,20 +32895,40 @@ async def modify_capacity_reservation_fleet( Returns: An instance of `ModifyCapacityReservationFleetOutput`. """ + + async def modify_capacity_reservation_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCapacityReservationFleetOutput: return await self._invoke( - input, _models.MODIFY_CAPACITY_RESERVATION_FLEET, [], plugins + self._select_input(_models.MODIFY_CAPACITY_RESERVATION_FLEET, args, kwargs), + _models.MODIFY_CAPACITY_RESERVATION_FLEET, + [], + plugins, ) + @_overload + async def modify_client_vpn_endpoint( + self, + request: _models.ModifyClientVpnEndpointInput + | _models.ModifyClientVpnEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyClientVpnEndpointOutput: ... + + @_overload async def modify_client_vpn_endpoint( - self, input: ModifyClientVpnEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyClientVpnEndpointInputDict], ) -> ModifyClientVpnEndpointOutput: """ Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections. Args: - input: - An instance of `ModifyClientVpnEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20660,14 +32938,34 @@ async def modify_client_vpn_endpoint( Returns: An instance of `ModifyClientVpnEndpointOutput`. """ + + async def modify_client_vpn_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyClientVpnEndpointOutput: return await self._invoke( - input, _models.MODIFY_CLIENT_VPN_ENDPOINT, [], plugins + self._select_input(_models.MODIFY_CLIENT_VPN_ENDPOINT, args, kwargs), + _models.MODIFY_CLIENT_VPN_ENDPOINT, + [], + plugins, ) + @_overload + async def modify_client_vpn_endpoint_authorization_policy( + self, + request: _models.ModifyClientVpnEndpointAuthorizationPolicyInput + | _models.ModifyClientVpnEndpointAuthorizationPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyClientVpnEndpointAuthorizationPolicyOutput: ... + + @_overload async def modify_client_vpn_endpoint_authorization_policy( self, - input: ModifyClientVpnEndpointAuthorizationPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyClientVpnEndpointAuthorizationPolicyInputDict], ) -> ModifyClientVpnEndpointAuthorizationPolicyOutput: """ Creates or updates the authorization policy for a Client VPN endpoint. A @@ -20677,8 +32975,6 @@ async def modify_client_vpn_endpoint_authorization_policy( specify remain unchanged. Args: - input: - An instance of `ModifyClientVpnEndpointAuthorizationPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20688,14 +32984,36 @@ async def modify_client_vpn_endpoint_authorization_policy( Returns: An instance of `ModifyClientVpnEndpointAuthorizationPolicyOutput`. """ + + async def modify_client_vpn_endpoint_authorization_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyClientVpnEndpointAuthorizationPolicyOutput: return await self._invoke( - input, _models.MODIFY_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, [], plugins + self._select_input( + _models.MODIFY_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, args, kwargs + ), + _models.MODIFY_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, + [], + plugins, ) + @_overload async def modify_default_credit_specification( self, - input: ModifyDefaultCreditSpecificationInput, + request: _models.ModifyDefaultCreditSpecificationInput + | _models.ModifyDefaultCreditSpecificationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyDefaultCreditSpecificationOutput: ... + + @_overload + async def modify_default_credit_specification( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDefaultCreditSpecificationInputDict], ) -> ModifyDefaultCreditSpecificationOutput: """ Modifies the default credit option for CPU usage of burstable @@ -20718,8 +33036,6 @@ async def modify_default_credit_specification( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyDefaultCreditSpecificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20729,12 +33045,36 @@ async def modify_default_credit_specification( Returns: An instance of `ModifyDefaultCreditSpecificationOutput`. """ + + async def modify_default_credit_specification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDefaultCreditSpecificationOutput: return await self._invoke( - input, _models.MODIFY_DEFAULT_CREDIT_SPECIFICATION, [], plugins + self._select_input( + _models.MODIFY_DEFAULT_CREDIT_SPECIFICATION, args, kwargs + ), + _models.MODIFY_DEFAULT_CREDIT_SPECIFICATION, + [], + plugins, ) + @_overload + async def modify_ebs_default_kms_key_id( + self, + request: _models.ModifyEbsDefaultKmsKeyIdInput + | _models.ModifyEbsDefaultKmsKeyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyEbsDefaultKmsKeyIdOutput: ... + + @_overload async def modify_ebs_default_kms_key_id( - self, input: ModifyEbsDefaultKmsKeyIdInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyEbsDefaultKmsKeyIdInputDict], ) -> ModifyEbsDefaultKmsKeyIdOutput: """ Changes the default KMS key for EBS encryption by default for your @@ -20754,8 +33094,6 @@ async def modify_ebs_default_kms_key_id( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ModifyEbsDefaultKmsKeyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20765,12 +33103,33 @@ async def modify_ebs_default_kms_key_id( Returns: An instance of `ModifyEbsDefaultKmsKeyIdOutput`. """ + + async def modify_ebs_default_kms_key_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyEbsDefaultKmsKeyIdOutput: return await self._invoke( - input, _models.MODIFY_EBS_DEFAULT_KMS_KEY_ID, [], plugins + self._select_input(_models.MODIFY_EBS_DEFAULT_KMS_KEY_ID, args, kwargs), + _models.MODIFY_EBS_DEFAULT_KMS_KEY_ID, + [], + plugins, ) + @_overload + async def modify_fleet( + self, + request: _models.ModifyFleetInput | _models.ModifyFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyFleetOutput: ... + + @_overload async def modify_fleet( - self, input: ModifyFleetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyFleetInputDict], ) -> ModifyFleetOutput: """ Modifies the specified EC2 Fleet. @@ -20806,8 +33165,6 @@ async def modify_fleet( later, you can set the target capacity to 0. Args: - input: - An instance of `ModifyFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20817,18 +33174,40 @@ async def modify_fleet( Returns: An instance of `ModifyFleetOutput`. """ - return await self._invoke(input, _models.MODIFY_FLEET, [], plugins) + async def modify_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyFleetOutput: + return await self._invoke( + self._select_input(_models.MODIFY_FLEET, args, kwargs), + _models.MODIFY_FLEET, + [], + plugins, + ) + + @_overload + async def modify_fpga_image_attribute( + self, + request: _models.ModifyFpgaImageAttributeInput + | _models.ModifyFpgaImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyFpgaImageAttributeOutput: ... + + @_overload async def modify_fpga_image_attribute( - self, input: ModifyFpgaImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyFpgaImageAttributeInputDict], ) -> ModifyFpgaImageAttributeOutput: """ Modifies the specified attribute of the specified Amazon FPGA Image (AFI). Args: - input: - An instance of `ModifyFpgaImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20838,12 +33217,33 @@ async def modify_fpga_image_attribute( Returns: An instance of `ModifyFpgaImageAttributeOutput`. """ + + async def modify_fpga_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyFpgaImageAttributeOutput: return await self._invoke( - input, _models.MODIFY_FPGA_IMAGE_ATTRIBUTE, [], plugins + self._select_input(_models.MODIFY_FPGA_IMAGE_ATTRIBUTE, args, kwargs), + _models.MODIFY_FPGA_IMAGE_ATTRIBUTE, + [], + plugins, ) + @_overload + async def modify_hosts( + self, + request: _models.ModifyHostsInput | _models.ModifyHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyHostsOutput: ... + + @_overload async def modify_hosts( - self, input: ModifyHostsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyHostsInputDict], ) -> ModifyHostsOutput: """ Modify the auto-placement setting of a Dedicated Host. When @@ -20859,8 +33259,6 @@ async def modify_hosts( specific instance type only. Args: - input: - An instance of `ModifyHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20870,10 +33268,34 @@ async def modify_hosts( Returns: An instance of `ModifyHostsOutput`. """ - return await self._invoke(input, _models.MODIFY_HOSTS, [], plugins) + async def modify_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyHostsOutput: + return await self._invoke( + self._select_input(_models.MODIFY_HOSTS, args, kwargs), + _models.MODIFY_HOSTS, + [], + plugins, + ) + + @_overload + async def modify_identity_id_format( + self, + request: _models.ModifyIdentityIdFormatInput + | _models.ModifyIdentityIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIdentityIdFormatOutput: ... + + @_overload async def modify_identity_id_format( - self, input: ModifyIdentityIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIdentityIdFormatInputDict], ) -> ModifyIdentityIdFormatOutput: """ Modifies the ID format of a resource for a specified IAM user, IAM role, @@ -20906,8 +33328,6 @@ async def modify_identity_id_format( permission to use the relevant `Describe` command for the resource type. Args: - input: - An instance of `ModifyIdentityIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20917,10 +33337,33 @@ async def modify_identity_id_format( Returns: An instance of `ModifyIdentityIdFormatOutput`. """ - return await self._invoke(input, _models.MODIFY_IDENTITY_ID_FORMAT, [], plugins) + async def modify_identity_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIdentityIdFormatOutput: + return await self._invoke( + self._select_input(_models.MODIFY_IDENTITY_ID_FORMAT, args, kwargs), + _models.MODIFY_IDENTITY_ID_FORMAT, + [], + plugins, + ) + + @_overload + async def modify_id_format( + self, + request: _models.ModifyIdFormatInput | _models.ModifyIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIdFormatOutput: ... + + @_overload async def modify_id_format( - self, input: ModifyIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIdFormatInputDict], ) -> ModifyIdFormatOutput: """ Modifies the ID format for the specified resource on a per-Region basis. @@ -20954,8 +33397,6 @@ async def modify_id_format( permission to use the relevant `Describe` command for the resource type. Args: - input: - An instance of `ModifyIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20965,10 +33406,34 @@ async def modify_id_format( Returns: An instance of `ModifyIdFormatOutput`. """ - return await self._invoke(input, _models.MODIFY_ID_FORMAT, [], plugins) + async def modify_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIdFormatOutput: + return await self._invoke( + self._select_input(_models.MODIFY_ID_FORMAT, args, kwargs), + _models.MODIFY_ID_FORMAT, + [], + plugins, + ) + + @_overload + async def modify_image_attribute( + self, + request: _models.ModifyImageAttributeInput + | _models.ModifyImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyImageAttributeOutput: ... + + @_overload async def modify_image_attribute( - self, input: ModifyImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyImageAttributeInputDict], ) -> ModifyImageAttributeOutput: """ Modifies the specified attribute of the specified AMI. You can specify @@ -20986,8 +33451,6 @@ async def modify_image_attribute( instance. Args: - input: - An instance of `ModifyImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20997,10 +33460,34 @@ async def modify_image_attribute( Returns: An instance of `ModifyImageAttributeOutput`. """ - return await self._invoke(input, _models.MODIFY_IMAGE_ATTRIBUTE, [], plugins) + async def modify_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyImageAttributeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_IMAGE_ATTRIBUTE, args, kwargs), + _models.MODIFY_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload async def modify_instance_attribute( - self, input: ModifyInstanceAttributeInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyInstanceAttributeInput + | _models.ModifyInstanceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceAttributeOutput: ... + + @_overload + async def modify_instance_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceAttributeInputDict], ) -> ModifyInstanceAttributeOutput: """ Modifies the specified attribute of the specified instance. You can @@ -21019,8 +33506,6 @@ async def modify_instance_attribute( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21030,12 +33515,34 @@ async def modify_instance_attribute( Returns: An instance of `ModifyInstanceAttributeOutput`. """ - return await self._invoke(input, _models.MODIFY_INSTANCE_ATTRIBUTE, [], plugins) + async def modify_instance_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceAttributeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_INSTANCE_ATTRIBUTE, args, kwargs), + _models.MODIFY_INSTANCE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def modify_instance_capacity_reservation_attributes( + self, + request: _models.ModifyInstanceCapacityReservationAttributesInput + | _models.ModifyInstanceCapacityReservationAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceCapacityReservationAttributesOutput: ... + + @_overload async def modify_instance_capacity_reservation_attributes( self, - input: ModifyInstanceCapacityReservationAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceCapacityReservationAttributesInputDict], ) -> ModifyInstanceCapacityReservationAttributesOutput: """ Modifies the Capacity Reservation settings for a stopped instance. Use @@ -21045,8 +33552,6 @@ async def modify_instance_capacity_reservation_attributes( Capacity Reservation. Args: - input: - An instance of `ModifyInstanceCapacityReservationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21056,14 +33561,36 @@ async def modify_instance_capacity_reservation_attributes( Returns: An instance of `ModifyInstanceCapacityReservationAttributesOutput`. """ + + async def modify_instance_capacity_reservation_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceCapacityReservationAttributesOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_CAPACITY_RESERVATION_ATTRIBUTES, [], plugins + self._select_input( + _models.MODIFY_INSTANCE_CAPACITY_RESERVATION_ATTRIBUTES, args, kwargs + ), + _models.MODIFY_INSTANCE_CAPACITY_RESERVATION_ATTRIBUTES, + [], + plugins, ) + @_overload + async def modify_instance_connect_endpoint( + self, + request: _models.ModifyInstanceConnectEndpointInput + | _models.ModifyInstanceConnectEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceConnectEndpointOutput: ... + + @_overload async def modify_instance_connect_endpoint( self, - input: ModifyInstanceConnectEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceConnectEndpointInputDict], ) -> ModifyInstanceConnectEndpointOutput: """ Modifies the specified EC2 Instance Connect Endpoint. @@ -21073,8 +33600,6 @@ async def modify_instance_connect_endpoint( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceConnectEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21084,12 +33609,34 @@ async def modify_instance_connect_endpoint( Returns: An instance of `ModifyInstanceConnectEndpointOutput`. """ + + async def modify_instance_connect_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceConnectEndpointOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_CONNECT_ENDPOINT, [], plugins + self._select_input(_models.MODIFY_INSTANCE_CONNECT_ENDPOINT, args, kwargs), + _models.MODIFY_INSTANCE_CONNECT_ENDPOINT, + [], + plugins, ) + @_overload + async def modify_instance_cpu_options( + self, + request: _models.ModifyInstanceCpuOptionsInput + | _models.ModifyInstanceCpuOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceCpuOptionsOutput: ... + + @_overload async def modify_instance_cpu_options( - self, input: ModifyInstanceCpuOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceCpuOptionsInputDict], ) -> ModifyInstanceCpuOptionsOutput: """ By default, all vCPUs for the instance type are active when you launch @@ -21108,8 +33655,6 @@ async def modify_instance_cpu_options( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceCpuOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21119,14 +33664,34 @@ async def modify_instance_cpu_options( Returns: An instance of `ModifyInstanceCpuOptionsOutput`. """ + + async def modify_instance_cpu_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceCpuOptionsOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_CPU_OPTIONS, [], plugins + self._select_input(_models.MODIFY_INSTANCE_CPU_OPTIONS, args, kwargs), + _models.MODIFY_INSTANCE_CPU_OPTIONS, + [], + plugins, ) + @_overload + async def modify_instance_credit_specification( + self, + request: _models.ModifyInstanceCreditSpecificationInput + | _models.ModifyInstanceCreditSpecificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceCreditSpecificationOutput: ... + + @_overload async def modify_instance_credit_specification( self, - input: ModifyInstanceCreditSpecificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceCreditSpecificationInputDict], ) -> ModifyInstanceCreditSpecificationOutput: """ Modifies the credit option for CPU usage on a running or stopped @@ -21138,8 +33703,6 @@ async def modify_instance_credit_specification( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceCreditSpecificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21149,21 +33712,41 @@ async def modify_instance_credit_specification( Returns: An instance of `ModifyInstanceCreditSpecificationOutput`. """ + + async def modify_instance_credit_specification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceCreditSpecificationOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_CREDIT_SPECIFICATION, [], plugins + self._select_input( + _models.MODIFY_INSTANCE_CREDIT_SPECIFICATION, args, kwargs + ), + _models.MODIFY_INSTANCE_CREDIT_SPECIFICATION, + [], + plugins, ) + @_overload + async def modify_instance_event_start_time( + self, + request: _models.ModifyInstanceEventStartTimeInput + | _models.ModifyInstanceEventStartTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceEventStartTimeOutput: ... + + @_overload async def modify_instance_event_start_time( self, - input: ModifyInstanceEventStartTimeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceEventStartTimeInputDict], ) -> ModifyInstanceEventStartTimeOutput: """ Modifies the start time for a scheduled Amazon EC2 instance event. Args: - input: - An instance of `ModifyInstanceEventStartTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21173,12 +33756,34 @@ async def modify_instance_event_start_time( Returns: An instance of `ModifyInstanceEventStartTimeOutput`. """ + + async def modify_instance_event_start_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceEventStartTimeOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_EVENT_START_TIME, [], plugins + self._select_input(_models.MODIFY_INSTANCE_EVENT_START_TIME, args, kwargs), + _models.MODIFY_INSTANCE_EVENT_START_TIME, + [], + plugins, ) + @_overload + async def modify_instance_event_window( + self, + request: _models.ModifyInstanceEventWindowInput + | _models.ModifyInstanceEventWindowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceEventWindowOutput: ... + + @_overload async def modify_instance_event_window( - self, input: ModifyInstanceEventWindowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceEventWindowInputDict], ) -> ModifyInstanceEventWindowOutput: """ Modifies the specified event window. @@ -21197,8 +33802,6 @@ async def modify_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21208,14 +33811,34 @@ async def modify_instance_event_window( Returns: An instance of `ModifyInstanceEventWindowOutput`. """ + + async def modify_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceEventWindowOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_EVENT_WINDOW, [], plugins + self._select_input(_models.MODIFY_INSTANCE_EVENT_WINDOW, args, kwargs), + _models.MODIFY_INSTANCE_EVENT_WINDOW, + [], + plugins, ) + @_overload + async def modify_instance_maintenance_options( + self, + request: _models.ModifyInstanceMaintenanceOptionsInput + | _models.ModifyInstanceMaintenanceOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceMaintenanceOptionsOutput: ... + + @_overload async def modify_instance_maintenance_options( self, - input: ModifyInstanceMaintenanceOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceMaintenanceOptionsInputDict], ) -> ModifyInstanceMaintenanceOptionsOutput: """ Modifies the recovery behavior of your instance to disable simplified @@ -21231,8 +33854,6 @@ async def modify_instance_maintenance_options( migration](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration). Args: - input: - An instance of `ModifyInstanceMaintenanceOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21242,14 +33863,36 @@ async def modify_instance_maintenance_options( Returns: An instance of `ModifyInstanceMaintenanceOptionsOutput`. """ + + async def modify_instance_maintenance_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceMaintenanceOptionsOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_MAINTENANCE_OPTIONS, [], plugins + self._select_input( + _models.MODIFY_INSTANCE_MAINTENANCE_OPTIONS, args, kwargs + ), + _models.MODIFY_INSTANCE_MAINTENANCE_OPTIONS, + [], + plugins, ) + @_overload async def modify_instance_metadata_defaults( self, - input: ModifyInstanceMetadataDefaultsInput, + request: _models.ModifyInstanceMetadataDefaultsInput + | _models.ModifyInstanceMetadataDefaultsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyInstanceMetadataDefaultsOutput: ... + + @_overload + async def modify_instance_metadata_defaults( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceMetadataDefaultsInputDict], ) -> ModifyInstanceMetadataDefaultsOutput: """ Modifies the default instance metadata service (IMDS) settings at the @@ -21265,8 +33908,6 @@ async def modify_instance_metadata_defaults( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceMetadataDefaultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21276,14 +33917,34 @@ async def modify_instance_metadata_defaults( Returns: An instance of `ModifyInstanceMetadataDefaultsOutput`. """ + + async def modify_instance_metadata_defaults( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceMetadataDefaultsOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_METADATA_DEFAULTS, [], plugins + self._select_input(_models.MODIFY_INSTANCE_METADATA_DEFAULTS, args, kwargs), + _models.MODIFY_INSTANCE_METADATA_DEFAULTS, + [], + plugins, ) + @_overload + async def modify_instance_metadata_options( + self, + request: _models.ModifyInstanceMetadataOptionsInput + | _models.ModifyInstanceMetadataOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceMetadataOptionsOutput: ... + + @_overload async def modify_instance_metadata_options( self, - input: ModifyInstanceMetadataOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceMetadataOptionsInputDict], ) -> ModifyInstanceMetadataOptionsOutput: """ Modify the instance metadata parameters on a running or stopped @@ -21298,8 +33959,6 @@ async def modify_instance_metadata_options( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceMetadataOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21309,22 +33968,40 @@ async def modify_instance_metadata_options( Returns: An instance of `ModifyInstanceMetadataOptionsOutput`. """ + + async def modify_instance_metadata_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceMetadataOptionsOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_METADATA_OPTIONS, [], plugins + self._select_input(_models.MODIFY_INSTANCE_METADATA_OPTIONS, args, kwargs), + _models.MODIFY_INSTANCE_METADATA_OPTIONS, + [], + plugins, ) + @_overload + async def modify_instance_network_performance_options( + self, + request: _models.ModifyInstanceNetworkPerformanceOptionsInput + | _models.ModifyInstanceNetworkPerformanceOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceNetworkPerformanceOptionsOutput: ... + + @_overload async def modify_instance_network_performance_options( self, - input: ModifyInstanceNetworkPerformanceOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceNetworkPerformanceOptionsInputDict], ) -> ModifyInstanceNetworkPerformanceOptionsOutput: """ Change the configuration of the network performance options for an existing instance. Args: - input: - An instance of `ModifyInstanceNetworkPerformanceOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21334,12 +34011,36 @@ async def modify_instance_network_performance_options( Returns: An instance of `ModifyInstanceNetworkPerformanceOptionsOutput`. """ + + async def modify_instance_network_performance_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceNetworkPerformanceOptionsOutput: return await self._invoke( - input, _models.MODIFY_INSTANCE_NETWORK_PERFORMANCE_OPTIONS, [], plugins + self._select_input( + _models.MODIFY_INSTANCE_NETWORK_PERFORMANCE_OPTIONS, args, kwargs + ), + _models.MODIFY_INSTANCE_NETWORK_PERFORMANCE_OPTIONS, + [], + plugins, ) + @_overload + async def modify_instance_placement( + self, + request: _models.ModifyInstancePlacementInput + | _models.ModifyInstancePlacementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstancePlacementOutput: ... + + @_overload async def modify_instance_placement( - self, input: ModifyInstancePlacementInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstancePlacementInputDict], ) -> ModifyInstancePlacementOutput: """ Modifies the placement attributes for a specified instance. You can do @@ -21367,8 +34068,6 @@ async def modify_instance_placement( instance, the instance must be in the `stopped` state. Args: - input: - An instance of `ModifyInstancePlacementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21378,17 +34077,38 @@ async def modify_instance_placement( Returns: An instance of `ModifyInstancePlacementOutput`. """ - return await self._invoke(input, _models.MODIFY_INSTANCE_PLACEMENT, [], plugins) + async def modify_instance_placement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstancePlacementOutput: + return await self._invoke( + self._select_input(_models.MODIFY_INSTANCE_PLACEMENT, args, kwargs), + _models.MODIFY_INSTANCE_PLACEMENT, + [], + plugins, + ) + + @_overload async def modify_ipam( - self, input: ModifyIpamInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyIpamInput | _models.ModifyIpamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamOutput: ... + + @_overload + async def modify_ipam( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamInputDict], ) -> ModifyIpamOutput: """ Modify the configurations of an IPAM. Args: - input: - An instance of `ModifyIpamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21398,12 +34118,34 @@ async def modify_ipam( Returns: An instance of `ModifyIpamOutput`. """ - return await self._invoke(input, _models.MODIFY_IPAM, [], plugins) + async def modify_ipam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamOutput: + return await self._invoke( + self._select_input(_models.MODIFY_IPAM, args, kwargs), + _models.MODIFY_IPAM, + [], + plugins, + ) + + @_overload + async def modify_ipam_policy_allocation_rules( + self, + request: _models.ModifyIpamPolicyAllocationRulesInput + | _models.ModifyIpamPolicyAllocationRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPolicyAllocationRulesOutput: ... + + @_overload async def modify_ipam_policy_allocation_rules( self, - input: ModifyIpamPolicyAllocationRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPolicyAllocationRulesInputDict], ) -> ModifyIpamPolicyAllocationRulesOutput: """ Modifies the allocation rules in an IPAM policy. @@ -21423,8 +34165,6 @@ async def modify_ipam_policy_allocation_rules( IP addresses. Args: - input: - An instance of `ModifyIpamPolicyAllocationRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21434,12 +34174,35 @@ async def modify_ipam_policy_allocation_rules( Returns: An instance of `ModifyIpamPolicyAllocationRulesOutput`. """ + + async def modify_ipam_policy_allocation_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPolicyAllocationRulesOutput: return await self._invoke( - input, _models.MODIFY_IPAM_POLICY_ALLOCATION_RULES, [], plugins + self._select_input( + _models.MODIFY_IPAM_POLICY_ALLOCATION_RULES, args, kwargs + ), + _models.MODIFY_IPAM_POLICY_ALLOCATION_RULES, + [], + plugins, ) + @_overload + async def modify_ipam_pool( + self, + request: _models.ModifyIpamPoolInput | _models.ModifyIpamPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPoolOutput: ... + + @_overload async def modify_ipam_pool( - self, input: ModifyIpamPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPoolInputDict], ) -> ModifyIpamPoolOutput: """ Modify the configurations of an IPAM pool. @@ -21449,8 +34212,6 @@ async def modify_ipam_pool( the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ModifyIpamPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21460,10 +34221,34 @@ async def modify_ipam_pool( Returns: An instance of `ModifyIpamPoolOutput`. """ - return await self._invoke(input, _models.MODIFY_IPAM_POOL, [], plugins) + async def modify_ipam_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPoolOutput: + return await self._invoke( + self._select_input(_models.MODIFY_IPAM_POOL, args, kwargs), + _models.MODIFY_IPAM_POOL, + [], + plugins, + ) + + @_overload + async def modify_ipam_pool_allocation( + self, + request: _models.ModifyIpamPoolAllocationInput + | _models.ModifyIpamPoolAllocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPoolAllocationOutput: ... + + @_overload async def modify_ipam_pool_allocation( - self, input: ModifyIpamPoolAllocationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPoolAllocationInputDict], ) -> ModifyIpamPoolAllocationOutput: """ Modifies the description of an IPAM pool allocation. For more @@ -21472,8 +34257,6 @@ async def modify_ipam_pool_allocation( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ModifyIpamPoolAllocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21483,14 +34266,34 @@ async def modify_ipam_pool_allocation( Returns: An instance of `ModifyIpamPoolAllocationOutput`. """ + + async def modify_ipam_pool_allocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPoolAllocationOutput: return await self._invoke( - input, _models.MODIFY_IPAM_POOL_ALLOCATION, [], plugins + self._select_input(_models.MODIFY_IPAM_POOL_ALLOCATION, args, kwargs), + _models.MODIFY_IPAM_POOL_ALLOCATION, + [], + plugins, ) + @_overload + async def modify_ipam_prefix_list_resolver( + self, + request: _models.ModifyIpamPrefixListResolverInput + | _models.ModifyIpamPrefixListResolverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPrefixListResolverOutput: ... + + @_overload async def modify_ipam_prefix_list_resolver( self, - input: ModifyIpamPrefixListResolverInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPrefixListResolverInputDict], ) -> ModifyIpamPrefixListResolverOutput: """ Modifies an IPAM prefix list resolver. You can update the description @@ -21498,8 +34301,6 @@ async def modify_ipam_prefix_list_resolver( and potential updates to associated prefix lists. Args: - input: - An instance of `ModifyIpamPrefixListResolverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21509,22 +34310,40 @@ async def modify_ipam_prefix_list_resolver( Returns: An instance of `ModifyIpamPrefixListResolverOutput`. """ + + async def modify_ipam_prefix_list_resolver( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPrefixListResolverOutput: return await self._invoke( - input, _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER, [], plugins + self._select_input(_models.MODIFY_IPAM_PREFIX_LIST_RESOLVER, args, kwargs), + _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER, + [], + plugins, ) + @_overload + async def modify_ipam_prefix_list_resolver_target( + self, + request: _models.ModifyIpamPrefixListResolverTargetInput + | _models.ModifyIpamPrefixListResolverTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPrefixListResolverTargetOutput: ... + + @_overload async def modify_ipam_prefix_list_resolver_target( self, - input: ModifyIpamPrefixListResolverTargetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPrefixListResolverTargetInputDict], ) -> ModifyIpamPrefixListResolverTargetOutput: """ Modifies an IPAM prefix list resolver target. You can update version tracking settings and the desired version of the target prefix list. Args: - input: - An instance of `ModifyIpamPrefixListResolverTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21534,12 +34353,36 @@ async def modify_ipam_prefix_list_resolver_target( Returns: An instance of `ModifyIpamPrefixListResolverTargetOutput`. """ + + async def modify_ipam_prefix_list_resolver_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPrefixListResolverTargetOutput: return await self._invoke( - input, _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER_TARGET, [], plugins + self._select_input( + _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER_TARGET, args, kwargs + ), + _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER_TARGET, + [], + plugins, ) + @_overload async def modify_ipam_resource_cidr( - self, input: ModifyIpamResourceCidrInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyIpamResourceCidrInput + | _models.ModifyIpamResourceCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamResourceCidrOutput: ... + + @_overload + async def modify_ipam_resource_cidr( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamResourceCidrInputDict], ) -> ModifyIpamResourceCidrOutput: """ Modify a resource CIDR. You can use this action to transfer resource @@ -21555,8 +34398,6 @@ async def modify_ipam_resource_cidr( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ModifyIpamResourceCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21566,12 +34407,34 @@ async def modify_ipam_resource_cidr( Returns: An instance of `ModifyIpamResourceCidrOutput`. """ - return await self._invoke(input, _models.MODIFY_IPAM_RESOURCE_CIDR, [], plugins) + async def modify_ipam_resource_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamResourceCidrOutput: + return await self._invoke( + self._select_input(_models.MODIFY_IPAM_RESOURCE_CIDR, args, kwargs), + _models.MODIFY_IPAM_RESOURCE_CIDR, + [], + plugins, + ) + + @_overload + async def modify_ipam_resource_discovery( + self, + request: _models.ModifyIpamResourceDiscoveryInput + | _models.ModifyIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamResourceDiscoveryOutput: ... + + @_overload async def modify_ipam_resource_discovery( self, - input: ModifyIpamResourceDiscoveryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamResourceDiscoveryInputDict], ) -> ModifyIpamResourceDiscoveryOutput: """ Modifies a resource discovery. A resource discovery is an IPAM component @@ -21579,8 +34442,6 @@ async def modify_ipam_resource_discovery( owning account. Args: - input: - An instance of `ModifyIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21590,14 +34451,34 @@ async def modify_ipam_resource_discovery( Returns: An instance of `ModifyIpamResourceDiscoveryOutput`. """ + + async def modify_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamResourceDiscoveryOutput: return await self._invoke( - input, _models.MODIFY_IPAM_RESOURCE_DISCOVERY, [], plugins + self._select_input(_models.MODIFY_IPAM_RESOURCE_DISCOVERY, args, kwargs), + _models.MODIFY_IPAM_RESOURCE_DISCOVERY, + [], + plugins, ) + @_overload + async def modify_ipam_routing_policy_registration( + self, + request: _models.ModifyIpamRoutingPolicyRegistrationInput + | _models.ModifyIpamRoutingPolicyRegistrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamRoutingPolicyRegistrationOutput: ... + + @_overload async def modify_ipam_routing_policy_registration( self, - input: ModifyIpamRoutingPolicyRegistrationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamRoutingPolicyRegistrationInputDict], ) -> ModifyIpamRoutingPolicyRegistrationOutput: """ Modifies an existing routing policy registration. You can update the @@ -21605,8 +34486,6 @@ async def modify_ipam_routing_policy_registration( Origin Authorization (ROA). Args: - input: - An instance of `ModifyIpamRoutingPolicyRegistrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21616,19 +34495,40 @@ async def modify_ipam_routing_policy_registration( Returns: An instance of `ModifyIpamRoutingPolicyRegistrationOutput`. """ + + async def modify_ipam_routing_policy_registration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamRoutingPolicyRegistrationOutput: return await self._invoke( - input, _models.MODIFY_IPAM_ROUTING_POLICY_REGISTRATION, [], plugins + self._select_input( + _models.MODIFY_IPAM_ROUTING_POLICY_REGISTRATION, args, kwargs + ), + _models.MODIFY_IPAM_ROUTING_POLICY_REGISTRATION, + [], + plugins, ) + @_overload + async def modify_ipam_scope( + self, + request: _models.ModifyIpamScopeInput | _models.ModifyIpamScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamScopeOutput: ... + + @_overload async def modify_ipam_scope( - self, input: ModifyIpamScopeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamScopeInputDict], ) -> ModifyIpamScopeOutput: """ Modify an IPAM scope. Args: - input: - An instance of `ModifyIpamScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21638,10 +34538,34 @@ async def modify_ipam_scope( Returns: An instance of `ModifyIpamScopeOutput`. """ - return await self._invoke(input, _models.MODIFY_IPAM_SCOPE, [], plugins) + async def modify_ipam_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamScopeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_IPAM_SCOPE, args, kwargs), + _models.MODIFY_IPAM_SCOPE, + [], + plugins, + ) + + @_overload + async def modify_launch_template( + self, + request: _models.ModifyLaunchTemplateInput + | _models.ModifyLaunchTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyLaunchTemplateOutput: ... + + @_overload async def modify_launch_template( - self, input: ModifyLaunchTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyLaunchTemplateInputDict], ) -> ModifyLaunchTemplateOutput: """ Modifies a launch template. You can specify which version of the launch @@ -21649,8 +34573,6 @@ async def modify_launch_template( default version applies when a launch template version is not specified. Args: - input: - An instance of `ModifyLaunchTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21660,17 +34582,39 @@ async def modify_launch_template( Returns: An instance of `ModifyLaunchTemplateOutput`. """ - return await self._invoke(input, _models.MODIFY_LAUNCH_TEMPLATE, [], plugins) + async def modify_launch_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyLaunchTemplateOutput: + return await self._invoke( + self._select_input(_models.MODIFY_LAUNCH_TEMPLATE, args, kwargs), + _models.MODIFY_LAUNCH_TEMPLATE, + [], + plugins, + ) + + @_overload + async def modify_local_gateway_route( + self, + request: _models.ModifyLocalGatewayRouteInput + | _models.ModifyLocalGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyLocalGatewayRouteOutput: ... + + @_overload async def modify_local_gateway_route( - self, input: ModifyLocalGatewayRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyLocalGatewayRouteInputDict], ) -> ModifyLocalGatewayRouteOutput: """ Modifies the specified local gateway route. Args: - input: - An instance of `ModifyLocalGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21680,12 +34624,34 @@ async def modify_local_gateway_route( Returns: An instance of `ModifyLocalGatewayRouteOutput`. """ + + async def modify_local_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyLocalGatewayRouteOutput: return await self._invoke( - input, _models.MODIFY_LOCAL_GATEWAY_ROUTE, [], plugins + self._select_input(_models.MODIFY_LOCAL_GATEWAY_ROUTE, args, kwargs), + _models.MODIFY_LOCAL_GATEWAY_ROUTE, + [], + plugins, ) + @_overload + async def modify_managed_prefix_list( + self, + request: _models.ModifyManagedPrefixListInput + | _models.ModifyManagedPrefixListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyManagedPrefixListOutput: ... + + @_overload async def modify_managed_prefix_list( - self, input: ModifyManagedPrefixListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyManagedPrefixListInputDict], ) -> ModifyManagedPrefixListOutput: """ Modifies the specified managed prefix list. @@ -21698,8 +34664,6 @@ async def modify_managed_prefix_list( current version number, the request fails. Args: - input: - An instance of `ModifyManagedPrefixListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21709,14 +34673,34 @@ async def modify_managed_prefix_list( Returns: An instance of `ModifyManagedPrefixListOutput`. """ + + async def modify_managed_prefix_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyManagedPrefixListOutput: return await self._invoke( - input, _models.MODIFY_MANAGED_PREFIX_LIST, [], plugins + self._select_input(_models.MODIFY_MANAGED_PREFIX_LIST, args, kwargs), + _models.MODIFY_MANAGED_PREFIX_LIST, + [], + plugins, ) + @_overload + async def modify_managed_resource_visibility( + self, + request: _models.ModifyManagedResourceVisibilityInput + | _models.ModifyManagedResourceVisibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyManagedResourceVisibilityOutput: ... + + @_overload async def modify_managed_resource_visibility( self, - input: ModifyManagedResourceVisibilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyManagedResourceVisibilityInputDict], ) -> ModifyManagedResourceVisibilityOutput: """ Modifies the managed resource visibility configuration for the account. @@ -21726,8 +34710,6 @@ async def modify_managed_resource_visibility( billable. Args: - input: - An instance of `ModifyManagedResourceVisibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21737,14 +34719,36 @@ async def modify_managed_resource_visibility( Returns: An instance of `ModifyManagedResourceVisibilityOutput`. """ + + async def modify_managed_resource_visibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyManagedResourceVisibilityOutput: return await self._invoke( - input, _models.MODIFY_MANAGED_RESOURCE_VISIBILITY, [], plugins + self._select_input( + _models.MODIFY_MANAGED_RESOURCE_VISIBILITY, args, kwargs + ), + _models.MODIFY_MANAGED_RESOURCE_VISIBILITY, + [], + plugins, ) + @_overload async def modify_network_interface_attribute( self, - input: ModifyNetworkInterfaceAttributeInput, + request: _models.ModifyNetworkInterfaceAttributeInput + | _models.ModifyNetworkInterfaceAttributeInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyNetworkInterfaceAttributeOutput: ... + + @_overload + async def modify_network_interface_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyNetworkInterfaceAttributeInputDict], ) -> ModifyNetworkInterfaceAttributeOutput: """ Modifies the specified network interface attribute. You can specify only @@ -21752,8 +34756,6 @@ async def modify_network_interface_attribute( security groups from an existing EC2 instance. Args: - input: - An instance of `ModifyNetworkInterfaceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21763,21 +34765,41 @@ async def modify_network_interface_attribute( Returns: An instance of `ModifyNetworkInterfaceAttributeOutput`. """ + + async def modify_network_interface_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyNetworkInterfaceAttributeOutput: return await self._invoke( - input, _models.MODIFY_NETWORK_INTERFACE_ATTRIBUTE, [], plugins + self._select_input( + _models.MODIFY_NETWORK_INTERFACE_ATTRIBUTE, args, kwargs + ), + _models.MODIFY_NETWORK_INTERFACE_ATTRIBUTE, + [], + plugins, ) + @_overload + async def modify_private_dns_name_options( + self, + request: _models.ModifyPrivateDnsNameOptionsInput + | _models.ModifyPrivateDnsNameOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyPrivateDnsNameOptionsOutput: ... + + @_overload async def modify_private_dns_name_options( self, - input: ModifyPrivateDnsNameOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyPrivateDnsNameOptionsInputDict], ) -> ModifyPrivateDnsNameOptionsOutput: """ Modifies the options for instance hostnames for the specified instance. Args: - input: - An instance of `ModifyPrivateDnsNameOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21787,14 +34809,34 @@ async def modify_private_dns_name_options( Returns: An instance of `ModifyPrivateDnsNameOptionsOutput`. """ + + async def modify_private_dns_name_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyPrivateDnsNameOptionsOutput: return await self._invoke( - input, _models.MODIFY_PRIVATE_DNS_NAME_OPTIONS, [], plugins + self._select_input(_models.MODIFY_PRIVATE_DNS_NAME_OPTIONS, args, kwargs), + _models.MODIFY_PRIVATE_DNS_NAME_OPTIONS, + [], + plugins, ) + @_overload + async def modify_public_ip_dns_name_options( + self, + request: _models.ModifyPublicIpDnsNameOptionsInput + | _models.ModifyPublicIpDnsNameOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyPublicIpDnsNameOptionsOutput: ... + + @_overload async def modify_public_ip_dns_name_options( self, - input: ModifyPublicIpDnsNameOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyPublicIpDnsNameOptionsInputDict], ) -> ModifyPublicIpDnsNameOptionsOutput: """ Modify public hostname options for a network interface. For more @@ -21803,8 +34845,6 @@ async def modify_public_ip_dns_name_options( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyPublicIpDnsNameOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21814,12 +34854,34 @@ async def modify_public_ip_dns_name_options( Returns: An instance of `ModifyPublicIpDnsNameOptionsOutput`. """ + + async def modify_public_ip_dns_name_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyPublicIpDnsNameOptionsOutput: return await self._invoke( - input, _models.MODIFY_PUBLIC_IP_DNS_NAME_OPTIONS, [], plugins + self._select_input(_models.MODIFY_PUBLIC_IP_DNS_NAME_OPTIONS, args, kwargs), + _models.MODIFY_PUBLIC_IP_DNS_NAME_OPTIONS, + [], + plugins, ) + @_overload + async def modify_reserved_instances( + self, + request: _models.ModifyReservedInstancesInput + | _models.ModifyReservedInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyReservedInstancesOutput: ... + + @_overload async def modify_reserved_instances( - self, input: ModifyReservedInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyReservedInstancesInputDict], ) -> ModifyReservedInstancesOutput: """ Modifies the configuration of your Reserved Instances, such as the @@ -21832,8 +34894,6 @@ async def modify_reserved_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyReservedInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21843,10 +34903,33 @@ async def modify_reserved_instances( Returns: An instance of `ModifyReservedInstancesOutput`. """ - return await self._invoke(input, _models.MODIFY_RESERVED_INSTANCES, [], plugins) + async def modify_reserved_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyReservedInstancesOutput: + return await self._invoke( + self._select_input(_models.MODIFY_RESERVED_INSTANCES, args, kwargs), + _models.MODIFY_RESERVED_INSTANCES, + [], + plugins, + ) + + @_overload async def modify_route_server( - self, input: ModifyRouteServerInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyRouteServerInput | _models.ModifyRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyRouteServerOutput: ... + + @_overload + async def modify_route_server( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyRouteServerInputDict], ) -> ModifyRouteServerOutput: """ Modifies the configuration of an existing route server. @@ -21877,28 +34960,48 @@ async def modify_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ModifyRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ModifyRouteServerOutput`. - """ - return await self._invoke(input, _models.MODIFY_ROUTE_SERVER, [], plugins) + Returns: + An instance of `ModifyRouteServerOutput`. + """ + + async def modify_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyRouteServerOutput: + return await self._invoke( + self._select_input(_models.MODIFY_ROUTE_SERVER, args, kwargs), + _models.MODIFY_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + async def modify_security_group_rules( + self, + request: _models.ModifySecurityGroupRulesInput + | _models.ModifySecurityGroupRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySecurityGroupRulesOutput: ... + @_overload async def modify_security_group_rules( - self, input: ModifySecurityGroupRulesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySecurityGroupRulesInputDict], ) -> ModifySecurityGroupRulesOutput: """ Modifies the rules of a security group. Args: - input: - An instance of `ModifySecurityGroupRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21908,12 +35011,34 @@ async def modify_security_group_rules( Returns: An instance of `ModifySecurityGroupRulesOutput`. """ + + async def modify_security_group_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySecurityGroupRulesOutput: return await self._invoke( - input, _models.MODIFY_SECURITY_GROUP_RULES, [], plugins + self._select_input(_models.MODIFY_SECURITY_GROUP_RULES, args, kwargs), + _models.MODIFY_SECURITY_GROUP_RULES, + [], + plugins, ) + @_overload + async def modify_snapshot_attribute( + self, + request: _models.ModifySnapshotAttributeInput + | _models.ModifySnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySnapshotAttributeOutput: ... + + @_overload async def modify_snapshot_attribute( - self, input: ModifySnapshotAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySnapshotAttributeInputDict], ) -> ModifySnapshotAttributeOutput: """ Adds or removes permission settings for the specified snapshot. You may @@ -21932,8 +35057,6 @@ async def modify_snapshot_attribute( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ModifySnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21943,10 +35066,33 @@ async def modify_snapshot_attribute( Returns: An instance of `ModifySnapshotAttributeOutput`. """ - return await self._invoke(input, _models.MODIFY_SNAPSHOT_ATTRIBUTE, [], plugins) + async def modify_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySnapshotAttributeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_SNAPSHOT_ATTRIBUTE, args, kwargs), + _models.MODIFY_SNAPSHOT_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def modify_snapshot_tier( + self, + request: _models.ModifySnapshotTierInput | _models.ModifySnapshotTierInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySnapshotTierOutput: ... + + @_overload async def modify_snapshot_tier( - self, input: ModifySnapshotTierInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySnapshotTierInputDict], ) -> ModifySnapshotTierOutput: """ Archives an Amazon EBS snapshot. When you archive a snapshot, it is @@ -21958,8 +35104,6 @@ async def modify_snapshot_tier( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ModifySnapshotTierInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21969,10 +35113,34 @@ async def modify_snapshot_tier( Returns: An instance of `ModifySnapshotTierOutput`. """ - return await self._invoke(input, _models.MODIFY_SNAPSHOT_TIER, [], plugins) + async def modify_snapshot_tier( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySnapshotTierOutput: + return await self._invoke( + self._select_input(_models.MODIFY_SNAPSHOT_TIER, args, kwargs), + _models.MODIFY_SNAPSHOT_TIER, + [], + plugins, + ) + + @_overload async def modify_spot_fleet_request( - self, input: ModifySpotFleetRequestInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifySpotFleetRequestInput + | _models.ModifySpotFleetRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySpotFleetRequestOutput: ... + + @_overload + async def modify_spot_fleet_request( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySpotFleetRequestInputDict], ) -> ModifySpotFleetRequestOutput: """ Modifies the specified Spot Fleet request. @@ -22010,8 +35178,6 @@ async def modify_spot_fleet_request( later, you can set the target capacity to 0. Args: - input: - An instance of `ModifySpotFleetRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22021,10 +35187,34 @@ async def modify_spot_fleet_request( Returns: An instance of `ModifySpotFleetRequestOutput`. """ - return await self._invoke(input, _models.MODIFY_SPOT_FLEET_REQUEST, [], plugins) + async def modify_spot_fleet_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySpotFleetRequestOutput: + return await self._invoke( + self._select_input(_models.MODIFY_SPOT_FLEET_REQUEST, args, kwargs), + _models.MODIFY_SPOT_FLEET_REQUEST, + [], + plugins, + ) + + @_overload + async def modify_subnet_attribute( + self, + request: _models.ModifySubnetAttributeInput + | _models.ModifySubnetAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySubnetAttributeOutput: ... + + @_overload async def modify_subnet_attribute( - self, input: ModifySubnetAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySubnetAttributeInputDict], ) -> ModifySubnetAttributeOutput: """ Modifies a subnet attribute. You can only modify one attribute at a @@ -22049,8 +35239,6 @@ async def modify_subnet_attribute( racks](https://docs.aws.amazon.com/outposts/latest/userguide/how-racks-work.html) Args: - input: - An instance of `ModifySubnetAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22060,12 +35248,34 @@ async def modify_subnet_attribute( Returns: An instance of `ModifySubnetAttributeOutput`. """ - return await self._invoke(input, _models.MODIFY_SUBNET_ATTRIBUTE, [], plugins) + async def modify_subnet_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySubnetAttributeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_SUBNET_ATTRIBUTE, args, kwargs), + _models.MODIFY_SUBNET_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def modify_traffic_mirror_filter_network_services( + self, + request: _models.ModifyTrafficMirrorFilterNetworkServicesInput + | _models.ModifyTrafficMirrorFilterNetworkServicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTrafficMirrorFilterNetworkServicesOutput: ... + + @_overload async def modify_traffic_mirror_filter_network_services( self, - input: ModifyTrafficMirrorFilterNetworkServicesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTrafficMirrorFilterNetworkServicesInputDict], ) -> ModifyTrafficMirrorFilterNetworkServicesOutput: """ Allows or restricts mirroring network services. @@ -22079,8 +35289,6 @@ async def modify_traffic_mirror_filter_network_services( Mirror filter. Args: - input: - An instance of `ModifyTrafficMirrorFilterNetworkServicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22090,14 +35298,36 @@ async def modify_traffic_mirror_filter_network_services( Returns: An instance of `ModifyTrafficMirrorFilterNetworkServicesOutput`. """ + + async def modify_traffic_mirror_filter_network_services( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTrafficMirrorFilterNetworkServicesOutput: return await self._invoke( - input, _models.MODIFY_TRAFFIC_MIRROR_FILTER_NETWORK_SERVICES, [], plugins + self._select_input( + _models.MODIFY_TRAFFIC_MIRROR_FILTER_NETWORK_SERVICES, args, kwargs + ), + _models.MODIFY_TRAFFIC_MIRROR_FILTER_NETWORK_SERVICES, + [], + plugins, ) + @_overload + async def modify_traffic_mirror_filter_rule( + self, + request: _models.ModifyTrafficMirrorFilterRuleInput + | _models.ModifyTrafficMirrorFilterRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTrafficMirrorFilterRuleOutput: ... + + @_overload async def modify_traffic_mirror_filter_rule( self, - input: ModifyTrafficMirrorFilterRuleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTrafficMirrorFilterRuleInputDict], ) -> ModifyTrafficMirrorFilterRuleOutput: """ Modifies the specified Traffic Mirror rule. @@ -22106,8 +35336,6 @@ async def modify_traffic_mirror_filter_rule( or an IPv6 range. Args: - input: - An instance of `ModifyTrafficMirrorFilterRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22117,21 +35345,39 @@ async def modify_traffic_mirror_filter_rule( Returns: An instance of `ModifyTrafficMirrorFilterRuleOutput`. """ + + async def modify_traffic_mirror_filter_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTrafficMirrorFilterRuleOutput: return await self._invoke( - input, _models.MODIFY_TRAFFIC_MIRROR_FILTER_RULE, [], plugins + self._select_input(_models.MODIFY_TRAFFIC_MIRROR_FILTER_RULE, args, kwargs), + _models.MODIFY_TRAFFIC_MIRROR_FILTER_RULE, + [], + plugins, ) + @_overload + async def modify_traffic_mirror_session( + self, + request: _models.ModifyTrafficMirrorSessionInput + | _models.ModifyTrafficMirrorSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTrafficMirrorSessionOutput: ... + + @_overload async def modify_traffic_mirror_session( self, - input: ModifyTrafficMirrorSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTrafficMirrorSessionInputDict], ) -> ModifyTrafficMirrorSessionOutput: """ Modifies a Traffic Mirror session. Args: - input: - An instance of `ModifyTrafficMirrorSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22141,12 +35387,34 @@ async def modify_traffic_mirror_session( Returns: An instance of `ModifyTrafficMirrorSessionOutput`. """ + + async def modify_traffic_mirror_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTrafficMirrorSessionOutput: return await self._invoke( - input, _models.MODIFY_TRAFFIC_MIRROR_SESSION, [], plugins + self._select_input(_models.MODIFY_TRAFFIC_MIRROR_SESSION, args, kwargs), + _models.MODIFY_TRAFFIC_MIRROR_SESSION, + [], + plugins, ) + @_overload + async def modify_transit_gateway( + self, + request: _models.ModifyTransitGatewayInput + | _models.ModifyTransitGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayOutput: ... + + @_overload async def modify_transit_gateway( - self, input: ModifyTransitGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayInputDict], ) -> ModifyTransitGatewayOutput: """ Modifies the specified transit gateway. When you modify a transit @@ -22155,8 +35423,6 @@ async def modify_transit_gateway( modified. Args: - input: - An instance of `ModifyTransitGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22166,12 +35432,36 @@ async def modify_transit_gateway( Returns: An instance of `ModifyTransitGatewayOutput`. """ - return await self._invoke(input, _models.MODIFY_TRANSIT_GATEWAY, [], plugins) + async def modify_transit_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayOutput: + return await self._invoke( + self._select_input(_models.MODIFY_TRANSIT_GATEWAY, args, kwargs), + _models.MODIFY_TRANSIT_GATEWAY, + [], + plugins, + ) + + @_overload + async def modify_transit_gateway_attachment_nat_configuration( + self, + request: _models.ModifyTransitGatewayAttachmentNatConfigurationInput + | _models.ModifyTransitGatewayAttachmentNatConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayAttachmentNatConfigurationOutput: ... + + @_overload async def modify_transit_gateway_attachment_nat_configuration( self, - input: ModifyTransitGatewayAttachmentNatConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ModifyTransitGatewayAttachmentNatConfigurationInputDict + ], ) -> ModifyTransitGatewayAttachmentNatConfigurationOutput: """ Modifies the NAT configuration for the specified transit gateway @@ -22193,8 +35483,6 @@ async def modify_transit_gateway_attachment_nat_configuration( use `GetTransitGatewayAttachmentNatConfiguration`. Args: - input: - An instance of `ModifyTransitGatewayAttachmentNatConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22204,24 +35492,43 @@ async def modify_transit_gateway_attachment_nat_configuration( Returns: An instance of `ModifyTransitGatewayAttachmentNatConfigurationOutput`. """ + + async def modify_transit_gateway_attachment_nat_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayAttachmentNatConfigurationOutput: return await self._invoke( - input, + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, + args, + kwargs, + ), _models.MODIFY_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, [], plugins, ) + @_overload + async def modify_transit_gateway_metering_policy( + self, + request: _models.ModifyTransitGatewayMeteringPolicyInput + | _models.ModifyTransitGatewayMeteringPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayMeteringPolicyOutput: ... + + @_overload async def modify_transit_gateway_metering_policy( self, - input: ModifyTransitGatewayMeteringPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayMeteringPolicyInputDict], ) -> ModifyTransitGatewayMeteringPolicyOutput: """ Modifies a transit gateway metering policy. Args: - input: - An instance of `ModifyTransitGatewayMeteringPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22231,21 +35538,41 @@ async def modify_transit_gateway_metering_policy( Returns: An instance of `ModifyTransitGatewayMeteringPolicyOutput`. """ + + async def modify_transit_gateway_metering_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayMeteringPolicyOutput: return await self._invoke( - input, _models.MODIFY_TRANSIT_GATEWAY_METERING_POLICY, [], plugins + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_METERING_POLICY, args, kwargs + ), + _models.MODIFY_TRANSIT_GATEWAY_METERING_POLICY, + [], + plugins, ) + @_overload + async def modify_transit_gateway_policy_table_entry( + self, + request: _models.ModifyTransitGatewayPolicyTableEntryInput + | _models.ModifyTransitGatewayPolicyTableEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayPolicyTableEntryOutput: ... + + @_overload async def modify_transit_gateway_policy_table_entry( self, - input: ModifyTransitGatewayPolicyTableEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayPolicyTableEntryInputDict], ) -> ModifyTransitGatewayPolicyTableEntryOutput: """ Modifies the specified transit gateway policy table entry. Args: - input: - An instance of `ModifyTransitGatewayPolicyTableEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22255,22 +35582,42 @@ async def modify_transit_gateway_policy_table_entry( Returns: An instance of `ModifyTransitGatewayPolicyTableEntryOutput`. """ + + async def modify_transit_gateway_policy_table_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayPolicyTableEntryOutput: return await self._invoke( - input, _models.MODIFY_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, [], plugins + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, args, kwargs + ), + _models.MODIFY_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, + [], + plugins, ) + @_overload + async def modify_transit_gateway_prefix_list_reference( + self, + request: _models.ModifyTransitGatewayPrefixListReferenceInput + | _models.ModifyTransitGatewayPrefixListReferenceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayPrefixListReferenceOutput: ... + + @_overload async def modify_transit_gateway_prefix_list_reference( self, - input: ModifyTransitGatewayPrefixListReferenceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayPrefixListReferenceInputDict], ) -> ModifyTransitGatewayPrefixListReferenceOutput: """ Modifies a reference (route) to a prefix list in a specified transit gateway route table. Args: - input: - An instance of `ModifyTransitGatewayPrefixListReferenceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22280,21 +35627,41 @@ async def modify_transit_gateway_prefix_list_reference( Returns: An instance of `ModifyTransitGatewayPrefixListReferenceOutput`. """ + + async def modify_transit_gateway_prefix_list_reference( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayPrefixListReferenceOutput: return await self._invoke( - input, _models.MODIFY_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, [], plugins + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, args, kwargs + ), + _models.MODIFY_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, + [], + plugins, ) + @_overload + async def modify_transit_gateway_vpc_attachment( + self, + request: _models.ModifyTransitGatewayVpcAttachmentInput + | _models.ModifyTransitGatewayVpcAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayVpcAttachmentOutput: ... + + @_overload async def modify_transit_gateway_vpc_attachment( self, - input: ModifyTransitGatewayVpcAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayVpcAttachmentInputDict], ) -> ModifyTransitGatewayVpcAttachmentOutput: """ Modifies the specified VPC attachment. Args: - input: - An instance of `ModifyTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22304,22 +35671,42 @@ async def modify_transit_gateway_vpc_attachment( Returns: An instance of `ModifyTransitGatewayVpcAttachmentOutput`. """ + + async def modify_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayVpcAttachmentOutput: return await self._invoke( - input, _models.MODIFY_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.MODIFY_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload + async def modify_verified_access_endpoint( + self, + request: _models.ModifyVerifiedAccessEndpointInput + | _models.ModifyVerifiedAccessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessEndpointOutput: ... + + @_overload async def modify_verified_access_endpoint( self, - input: ModifyVerifiedAccessEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessEndpointInputDict], ) -> ModifyVerifiedAccessEndpointOutput: """ Modifies the configuration of the specified Amazon Web Services Verified Access endpoint. Args: - input: - An instance of `ModifyVerifiedAccessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22329,22 +35716,40 @@ async def modify_verified_access_endpoint( Returns: An instance of `ModifyVerifiedAccessEndpointOutput`. """ + + async def modify_verified_access_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessEndpointOutput: return await self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_ENDPOINT, [], plugins + self._select_input(_models.MODIFY_VERIFIED_ACCESS_ENDPOINT, args, kwargs), + _models.MODIFY_VERIFIED_ACCESS_ENDPOINT, + [], + plugins, ) + @_overload + async def modify_verified_access_endpoint_policy( + self, + request: _models.ModifyVerifiedAccessEndpointPolicyInput + | _models.ModifyVerifiedAccessEndpointPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessEndpointPolicyOutput: ... + + @_overload async def modify_verified_access_endpoint_policy( self, - input: ModifyVerifiedAccessEndpointPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessEndpointPolicyInputDict], ) -> ModifyVerifiedAccessEndpointPolicyOutput: """ Modifies the specified Amazon Web Services Verified Access endpoint policy. Args: - input: - An instance of `ModifyVerifiedAccessEndpointPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22354,20 +35759,42 @@ async def modify_verified_access_endpoint_policy( Returns: An instance of `ModifyVerifiedAccessEndpointPolicyOutput`. """ + + async def modify_verified_access_endpoint_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessEndpointPolicyOutput: return await self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_ENDPOINT_POLICY, [], plugins + self._select_input( + _models.MODIFY_VERIFIED_ACCESS_ENDPOINT_POLICY, args, kwargs + ), + _models.MODIFY_VERIFIED_ACCESS_ENDPOINT_POLICY, + [], + plugins, ) + @_overload + async def modify_verified_access_group( + self, + request: _models.ModifyVerifiedAccessGroupInput + | _models.ModifyVerifiedAccessGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessGroupOutput: ... + + @_overload async def modify_verified_access_group( - self, input: ModifyVerifiedAccessGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessGroupInputDict], ) -> ModifyVerifiedAccessGroupOutput: """ Modifies the specified Amazon Web Services Verified Access group configuration. Args: - input: - An instance of `ModifyVerifiedAccessGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22377,21 +35804,39 @@ async def modify_verified_access_group( Returns: An instance of `ModifyVerifiedAccessGroupOutput`. """ + + async def modify_verified_access_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessGroupOutput: return await self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_GROUP, [], plugins + self._select_input(_models.MODIFY_VERIFIED_ACCESS_GROUP, args, kwargs), + _models.MODIFY_VERIFIED_ACCESS_GROUP, + [], + plugins, ) + @_overload + async def modify_verified_access_group_policy( + self, + request: _models.ModifyVerifiedAccessGroupPolicyInput + | _models.ModifyVerifiedAccessGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessGroupPolicyOutput: ... + + @_overload async def modify_verified_access_group_policy( self, - input: ModifyVerifiedAccessGroupPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessGroupPolicyInputDict], ) -> ModifyVerifiedAccessGroupPolicyOutput: """ Modifies the specified Amazon Web Services Verified Access group policy. Args: - input: - An instance of `ModifyVerifiedAccessGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22401,22 +35846,42 @@ async def modify_verified_access_group_policy( Returns: An instance of `ModifyVerifiedAccessGroupPolicyOutput`. """ + + async def modify_verified_access_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessGroupPolicyOutput: return await self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_GROUP_POLICY, [], plugins + self._select_input( + _models.MODIFY_VERIFIED_ACCESS_GROUP_POLICY, args, kwargs + ), + _models.MODIFY_VERIFIED_ACCESS_GROUP_POLICY, + [], + plugins, ) + @_overload + async def modify_verified_access_instance( + self, + request: _models.ModifyVerifiedAccessInstanceInput + | _models.ModifyVerifiedAccessInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessInstanceOutput: ... + + @_overload async def modify_verified_access_instance( self, - input: ModifyVerifiedAccessInstanceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessInstanceInputDict], ) -> ModifyVerifiedAccessInstanceOutput: """ Modifies the configuration of the specified Amazon Web Services Verified Access instance. Args: - input: - An instance of `ModifyVerifiedAccessInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22426,22 +35891,42 @@ async def modify_verified_access_instance( Returns: An instance of `ModifyVerifiedAccessInstanceOutput`. """ + + async def modify_verified_access_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessInstanceOutput: return await self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_INSTANCE, [], plugins + self._select_input(_models.MODIFY_VERIFIED_ACCESS_INSTANCE, args, kwargs), + _models.MODIFY_VERIFIED_ACCESS_INSTANCE, + [], + plugins, ) + @_overload + async def modify_verified_access_instance_logging_configuration( + self, + request: _models.ModifyVerifiedAccessInstanceLoggingConfigurationInput + | _models.ModifyVerifiedAccessInstanceLoggingConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessInstanceLoggingConfigurationOutput: ... + + @_overload async def modify_verified_access_instance_logging_configuration( self, - input: ModifyVerifiedAccessInstanceLoggingConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ModifyVerifiedAccessInstanceLoggingConfigurationInputDict + ], ) -> ModifyVerifiedAccessInstanceLoggingConfigurationOutput: """ Modifies the logging configuration for the specified Amazon Web Services Verified Access instance. Args: - input: - An instance of `ModifyVerifiedAccessInstanceLoggingConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22451,25 +35936,44 @@ async def modify_verified_access_instance_logging_configuration( Returns: An instance of `ModifyVerifiedAccessInstanceLoggingConfigurationOutput`. """ + + async def modify_verified_access_instance_logging_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessInstanceLoggingConfigurationOutput: return await self._invoke( - input, + self._select_input( + _models.MODIFY_VERIFIED_ACCESS_INSTANCE_LOGGING_CONFIGURATION, + args, + kwargs, + ), _models.MODIFY_VERIFIED_ACCESS_INSTANCE_LOGGING_CONFIGURATION, [], plugins, ) + @_overload + async def modify_verified_access_trust_provider( + self, + request: _models.ModifyVerifiedAccessTrustProviderInput + | _models.ModifyVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessTrustProviderOutput: ... + + @_overload async def modify_verified_access_trust_provider( self, - input: ModifyVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessTrustProviderInputDict], ) -> ModifyVerifiedAccessTrustProviderOutput: """ Modifies the configuration of the specified Amazon Web Services Verified Access trust provider. Args: - input: - An instance of `ModifyVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22479,12 +35983,35 @@ async def modify_verified_access_trust_provider( Returns: An instance of `ModifyVerifiedAccessTrustProviderOutput`. """ + + async def modify_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessTrustProviderOutput: return await self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.MODIFY_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.MODIFY_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload + async def modify_volume( + self, + request: _models.ModifyVolumeInput | _models.ModifyVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVolumeOutput: ... + + @_overload async def modify_volume( - self, input: ModifyVolumeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVolumeInputDict], ) -> ModifyVolumeOutput: """ You can modify several parameters of an existing EBS volume, including @@ -22518,8 +36045,6 @@ async def modify_volume( message that indicates when you can perform your next modification. Args: - input: - An instance of `ModifyVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22529,10 +36054,34 @@ async def modify_volume( Returns: An instance of `ModifyVolumeOutput`. """ - return await self._invoke(input, _models.MODIFY_VOLUME, [], plugins) + async def modify_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVolumeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_VOLUME, args, kwargs), + _models.MODIFY_VOLUME, + [], + plugins, + ) + + @_overload + async def modify_volume_attribute( + self, + request: _models.ModifyVolumeAttributeInput + | _models.ModifyVolumeAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVolumeAttributeOutput: ... + + @_overload async def modify_volume_attribute( - self, input: ModifyVolumeAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVolumeAttributeInputDict], ) -> ModifyVolumeAttributeOutput: """ Modifies a volume attribute. @@ -22548,8 +36097,6 @@ async def modify_volume_attribute( are stateless or disposable. Args: - input: - An instance of `ModifyVolumeAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22559,17 +36106,38 @@ async def modify_volume_attribute( Returns: An instance of `ModifyVolumeAttributeOutput`. """ - return await self._invoke(input, _models.MODIFY_VOLUME_ATTRIBUTE, [], plugins) + async def modify_volume_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVolumeAttributeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_VOLUME_ATTRIBUTE, args, kwargs), + _models.MODIFY_VOLUME_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def modify_vpc_attribute( + self, + request: _models.ModifyVpcAttributeInput | _models.ModifyVpcAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcAttributeOutput: ... + + @_overload async def modify_vpc_attribute( - self, input: ModifyVpcAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcAttributeInputDict], ) -> ModifyVpcAttributeOutput: """ Modifies the specified attribute of the specified VPC. Args: - input: - An instance of `ModifyVpcAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22579,12 +36147,34 @@ async def modify_vpc_attribute( Returns: An instance of `ModifyVpcAttributeOutput`. """ - return await self._invoke(input, _models.MODIFY_VPC_ATTRIBUTE, [], plugins) + async def modify_vpc_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcAttributeOutput: + return await self._invoke( + self._select_input(_models.MODIFY_VPC_ATTRIBUTE, args, kwargs), + _models.MODIFY_VPC_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def modify_vpc_block_public_access_exclusion( + self, + request: _models.ModifyVpcBlockPublicAccessExclusionInput + | _models.ModifyVpcBlockPublicAccessExclusionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcBlockPublicAccessExclusionOutput: ... + + @_overload async def modify_vpc_block_public_access_exclusion( self, - input: ModifyVpcBlockPublicAccessExclusionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcBlockPublicAccessExclusionInputDict], ) -> ModifyVpcBlockPublicAccessExclusionOutput: """ Modify VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is @@ -22595,8 +36185,6 @@ async def modify_vpc_block_public_access_exclusion( disruption to the exclusions when VPC BPA is turned on. Args: - input: - An instance of `ModifyVpcBlockPublicAccessExclusionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22606,14 +36194,36 @@ async def modify_vpc_block_public_access_exclusion( Returns: An instance of `ModifyVpcBlockPublicAccessExclusionOutput`. """ + + async def modify_vpc_block_public_access_exclusion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcBlockPublicAccessExclusionOutput: return await self._invoke( - input, _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, [], plugins + self._select_input( + _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, args, kwargs + ), + _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, + [], + plugins, ) + @_overload + async def modify_vpc_block_public_access_options( + self, + request: _models.ModifyVpcBlockPublicAccessOptionsInput + | _models.ModifyVpcBlockPublicAccessOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcBlockPublicAccessOptionsOutput: ... + + @_overload async def modify_vpc_block_public_access_options( self, - input: ModifyVpcBlockPublicAccessOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcBlockPublicAccessOptionsInputDict], ) -> ModifyVpcBlockPublicAccessOptionsOutput: """ Modify VPC Block Public Access (BPA) options. VPC Block Public Access @@ -22625,8 +36235,6 @@ async def modify_vpc_block_public_access_options( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ModifyVpcBlockPublicAccessOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22636,14 +36244,36 @@ async def modify_vpc_block_public_access_options( Returns: An instance of `ModifyVpcBlockPublicAccessOptionsOutput`. """ + + async def modify_vpc_block_public_access_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcBlockPublicAccessOptionsOutput: return await self._invoke( - input, _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, [], plugins + self._select_input( + _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, args, kwargs + ), + _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, + [], + plugins, ) + @_overload + async def modify_vpc_encryption_control( + self, + request: _models.ModifyVpcEncryptionControlInput + | _models.ModifyVpcEncryptionControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEncryptionControlOutput: ... + + @_overload async def modify_vpc_encryption_control( self, - input: ModifyVpcEncryptionControlInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEncryptionControlInputDict], ) -> ModifyVpcEncryptionControlOutput: """ Modifies the encryption control configuration for a VPC. You can update @@ -22655,8 +36285,6 @@ async def modify_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ModifyVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22666,12 +36294,33 @@ async def modify_vpc_encryption_control( Returns: An instance of `ModifyVpcEncryptionControlOutput`. """ + + async def modify_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEncryptionControlOutput: return await self._invoke( - input, _models.MODIFY_VPC_ENCRYPTION_CONTROL, [], plugins + self._select_input(_models.MODIFY_VPC_ENCRYPTION_CONTROL, args, kwargs), + _models.MODIFY_VPC_ENCRYPTION_CONTROL, + [], + plugins, ) + @_overload + async def modify_vpc_endpoint( + self, + request: _models.ModifyVpcEndpointInput | _models.ModifyVpcEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointOutput: ... + + @_overload async def modify_vpc_endpoint( - self, input: ModifyVpcEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointInputDict], ) -> ModifyVpcEndpointOutput: """ Modifies attributes of a specified VPC endpoint. The attributes that you @@ -22681,8 +36330,6 @@ async def modify_vpc_endpoint( Guide](https://docs.aws.amazon.com/vpc/latest/privatelink/). Args: - input: - An instance of `ModifyVpcEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22692,12 +36339,34 @@ async def modify_vpc_endpoint( Returns: An instance of `ModifyVpcEndpointOutput`. """ - return await self._invoke(input, _models.MODIFY_VPC_ENDPOINT, [], plugins) + async def modify_vpc_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointOutput: + return await self._invoke( + self._select_input(_models.MODIFY_VPC_ENDPOINT, args, kwargs), + _models.MODIFY_VPC_ENDPOINT, + [], + plugins, + ) + + @_overload + async def modify_vpc_endpoint_connection_notification( + self, + request: _models.ModifyVpcEndpointConnectionNotificationInput + | _models.ModifyVpcEndpointConnectionNotificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointConnectionNotificationOutput: ... + + @_overload async def modify_vpc_endpoint_connection_notification( self, - input: ModifyVpcEndpointConnectionNotificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointConnectionNotificationInputDict], ) -> ModifyVpcEndpointConnectionNotificationOutput: """ Modifies a connection notification for VPC endpoint or VPC endpoint @@ -22705,8 +36374,6 @@ async def modify_vpc_endpoint_connection_notification( events for which to be notified. Args: - input: - An instance of `ModifyVpcEndpointConnectionNotificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22716,21 +36383,41 @@ async def modify_vpc_endpoint_connection_notification( Returns: An instance of `ModifyVpcEndpointConnectionNotificationOutput`. """ + + async def modify_vpc_endpoint_connection_notification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointConnectionNotificationOutput: return await self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_CONNECTION_NOTIFICATION, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_CONNECTION_NOTIFICATION, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_CONNECTION_NOTIFICATION, + [], + plugins, ) + @_overload + async def modify_vpc_endpoint_payer_responsibility( + self, + request: _models.ModifyVpcEndpointPayerResponsibilityInput + | _models.ModifyVpcEndpointPayerResponsibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointPayerResponsibilityOutput: ... + + @_overload async def modify_vpc_endpoint_payer_responsibility( self, - input: ModifyVpcEndpointPayerResponsibilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointPayerResponsibilityInputDict], ) -> ModifyVpcEndpointPayerResponsibilityOutput: """ Modifies the billing account for VPC endpoint usage/charges. Args: - input: - An instance of `ModifyVpcEndpointPayerResponsibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22740,14 +36427,36 @@ async def modify_vpc_endpoint_payer_responsibility( Returns: An instance of `ModifyVpcEndpointPayerResponsibilityOutput`. """ + + async def modify_vpc_endpoint_payer_responsibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointPayerResponsibilityOutput: return await self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_PAYER_RESPONSIBILITY, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_PAYER_RESPONSIBILITY, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_PAYER_RESPONSIBILITY, + [], + plugins, ) + @_overload + async def modify_vpc_endpoint_service_configuration( + self, + request: _models.ModifyVpcEndpointServiceConfigurationInput + | _models.ModifyVpcEndpointServiceConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointServiceConfigurationOutput: ... + + @_overload async def modify_vpc_endpoint_service_configuration( self, - input: ModifyVpcEndpointServiceConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointServiceConfigurationInputDict], ) -> ModifyVpcEndpointServiceConfigurationOutput: """ Modifies the attributes of the specified VPC endpoint service @@ -22757,8 +36466,6 @@ async def modify_vpc_endpoint_service_configuration( the private DNS domain name. Args: - input: - An instance of `ModifyVpcEndpointServiceConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22768,21 +36475,41 @@ async def modify_vpc_endpoint_service_configuration( Returns: An instance of `ModifyVpcEndpointServiceConfigurationOutput`. """ + + async def modify_vpc_endpoint_service_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointServiceConfigurationOutput: return await self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_SERVICE_CONFIGURATION, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_SERVICE_CONFIGURATION, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_SERVICE_CONFIGURATION, + [], + plugins, ) + @_overload + async def modify_vpc_endpoint_service_payer_responsibility( + self, + request: _models.ModifyVpcEndpointServicePayerResponsibilityInput + | _models.ModifyVpcEndpointServicePayerResponsibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointServicePayerResponsibilityOutput: ... + + @_overload async def modify_vpc_endpoint_service_payer_responsibility( self, - input: ModifyVpcEndpointServicePayerResponsibilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointServicePayerResponsibilityInputDict], ) -> ModifyVpcEndpointServicePayerResponsibilityOutput: """ Modifies the payer responsibility for your VPC endpoint service. Args: - input: - An instance of `ModifyVpcEndpointServicePayerResponsibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22792,14 +36519,36 @@ async def modify_vpc_endpoint_service_payer_responsibility( Returns: An instance of `ModifyVpcEndpointServicePayerResponsibilityOutput`. """ + + async def modify_vpc_endpoint_service_payer_responsibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointServicePayerResponsibilityOutput: return await self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_SERVICE_PAYER_RESPONSIBILITY, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_SERVICE_PAYER_RESPONSIBILITY, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_SERVICE_PAYER_RESPONSIBILITY, + [], + plugins, ) + @_overload + async def modify_vpc_endpoint_service_permissions( + self, + request: _models.ModifyVpcEndpointServicePermissionsInput + | _models.ModifyVpcEndpointServicePermissionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointServicePermissionsOutput: ... + + @_overload async def modify_vpc_endpoint_service_permissions( self, - input: ModifyVpcEndpointServicePermissionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointServicePermissionsInputDict], ) -> ModifyVpcEndpointServicePermissionsOutput: """ Modifies the permissions for your VPC endpoint service. You can add or @@ -22813,8 +36562,6 @@ async def modify_vpc_endpoint_service_permissions( attachments are automatically approved. Args: - input: - An instance of `ModifyVpcEndpointServicePermissionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22824,14 +36571,36 @@ async def modify_vpc_endpoint_service_permissions( Returns: An instance of `ModifyVpcEndpointServicePermissionsOutput`. """ + + async def modify_vpc_endpoint_service_permissions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointServicePermissionsOutput: return await self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_SERVICE_PERMISSIONS, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_SERVICE_PERMISSIONS, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_SERVICE_PERMISSIONS, + [], + plugins, ) + @_overload async def modify_vpc_peering_connection_options( self, - input: ModifyVpcPeeringConnectionOptionsInput, + request: _models.ModifyVpcPeeringConnectionOptionsInput + | _models.ModifyVpcPeeringConnectionOptionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyVpcPeeringConnectionOptionsOutput: ... + + @_overload + async def modify_vpc_peering_connection_options( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcPeeringConnectionOptionsInputDict], ) -> ModifyVpcPeeringConnectionOptionsOutput: """ Modifies the VPC peering connection options on one side of a VPC peering @@ -22851,8 +36620,6 @@ async def modify_vpc_peering_connection_options( VPC peering connection, use the DescribeVpcPeeringConnections command. Args: - input: - An instance of `ModifyVpcPeeringConnectionOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22862,12 +36629,35 @@ async def modify_vpc_peering_connection_options( Returns: An instance of `ModifyVpcPeeringConnectionOptionsOutput`. """ + + async def modify_vpc_peering_connection_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcPeeringConnectionOptionsOutput: return await self._invoke( - input, _models.MODIFY_VPC_PEERING_CONNECTION_OPTIONS, [], plugins + self._select_input( + _models.MODIFY_VPC_PEERING_CONNECTION_OPTIONS, args, kwargs + ), + _models.MODIFY_VPC_PEERING_CONNECTION_OPTIONS, + [], + plugins, ) + @_overload + async def modify_vpc_tenancy( + self, + request: _models.ModifyVpcTenancyInput | _models.ModifyVpcTenancyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcTenancyOutput: ... + + @_overload async def modify_vpc_tenancy( - self, input: ModifyVpcTenancyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcTenancyInputDict], ) -> ModifyVpcTenancyOutput: """ Modifies the instance tenancy attribute of the specified VPC. You can @@ -22884,8 +36674,6 @@ async def modify_vpc_tenancy( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyVpcTenancyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22895,10 +36683,34 @@ async def modify_vpc_tenancy( Returns: An instance of `ModifyVpcTenancyOutput`. """ - return await self._invoke(input, _models.MODIFY_VPC_TENANCY, [], plugins) + async def modify_vpc_tenancy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcTenancyOutput: + return await self._invoke( + self._select_input(_models.MODIFY_VPC_TENANCY, args, kwargs), + _models.MODIFY_VPC_TENANCY, + [], + plugins, + ) + + @_overload + async def modify_vpn_connection( + self, + request: _models.ModifyVpnConnectionInput + | _models.ModifyVpnConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpnConnectionOutput: ... + + @_overload async def modify_vpn_connection( - self, input: ModifyVpnConnectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpnConnectionInputDict], ) -> ModifyVpnConnectionOutput: """ Modifies the customer gateway or the target gateway of an Amazon Web @@ -22946,8 +36758,6 @@ async def modify_vpn_connection( unavailable for a brief period while we provision the new endpoints. Args: - input: - An instance of `ModifyVpnConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22957,12 +36767,34 @@ async def modify_vpn_connection( Returns: An instance of `ModifyVpnConnectionOutput`. """ - return await self._invoke(input, _models.MODIFY_VPN_CONNECTION, [], plugins) + async def modify_vpn_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpnConnectionOutput: + return await self._invoke( + self._select_input(_models.MODIFY_VPN_CONNECTION, args, kwargs), + _models.MODIFY_VPN_CONNECTION, + [], + plugins, + ) + + @_overload + async def modify_vpn_connection_options( + self, + request: _models.ModifyVpnConnectionOptionsInput + | _models.ModifyVpnConnectionOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpnConnectionOptionsOutput: ... + + @_overload async def modify_vpn_connection_options( self, - input: ModifyVpnConnectionOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpnConnectionOptionsInputDict], ) -> ModifyVpnConnectionOptionsOutput: """ Modifies the connection options for your Site-to-Site VPN connection. @@ -22973,8 +36805,6 @@ async def modify_vpn_connection_options( unavailable for a brief period while the VPN connection is updated. Args: - input: - An instance of `ModifyVpnConnectionOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22984,21 +36814,39 @@ async def modify_vpn_connection_options( Returns: An instance of `ModifyVpnConnectionOptionsOutput`. """ + + async def modify_vpn_connection_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpnConnectionOptionsOutput: return await self._invoke( - input, _models.MODIFY_VPN_CONNECTION_OPTIONS, [], plugins + self._select_input(_models.MODIFY_VPN_CONNECTION_OPTIONS, args, kwargs), + _models.MODIFY_VPN_CONNECTION_OPTIONS, + [], + plugins, ) + @_overload + async def modify_vpn_tunnel_certificate( + self, + request: _models.ModifyVpnTunnelCertificateInput + | _models.ModifyVpnTunnelCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpnTunnelCertificateOutput: ... + + @_overload async def modify_vpn_tunnel_certificate( self, - input: ModifyVpnTunnelCertificateInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpnTunnelCertificateInputDict], ) -> ModifyVpnTunnelCertificateOutput: """ Modifies the VPN tunnel endpoint certificate. Args: - input: - An instance of `ModifyVpnTunnelCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23008,12 +36856,34 @@ async def modify_vpn_tunnel_certificate( Returns: An instance of `ModifyVpnTunnelCertificateOutput`. """ + + async def modify_vpn_tunnel_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpnTunnelCertificateOutput: return await self._invoke( - input, _models.MODIFY_VPN_TUNNEL_CERTIFICATE, [], plugins + self._select_input(_models.MODIFY_VPN_TUNNEL_CERTIFICATE, args, kwargs), + _models.MODIFY_VPN_TUNNEL_CERTIFICATE, + [], + plugins, ) + @_overload + async def modify_vpn_tunnel_options( + self, + request: _models.ModifyVpnTunnelOptionsInput + | _models.ModifyVpnTunnelOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpnTunnelOptionsOutput: ... + + @_overload async def modify_vpn_tunnel_options( - self, input: ModifyVpnTunnelOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpnTunnelOptionsInputDict], ) -> ModifyVpnTunnelOptionsOutput: """ Modifies the options for a VPN tunnel in an Amazon Web Services @@ -23025,8 +36895,6 @@ async def modify_vpn_tunnel_options( in the *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `ModifyVpnTunnelOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23036,10 +36904,33 @@ async def modify_vpn_tunnel_options( Returns: An instance of `ModifyVpnTunnelOptionsOutput`. """ - return await self._invoke(input, _models.MODIFY_VPN_TUNNEL_OPTIONS, [], plugins) + async def modify_vpn_tunnel_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpnTunnelOptionsOutput: + return await self._invoke( + self._select_input(_models.MODIFY_VPN_TUNNEL_OPTIONS, args, kwargs), + _models.MODIFY_VPN_TUNNEL_OPTIONS, + [], + plugins, + ) + + @_overload + async def monitor_instances( + self, + request: _models.MonitorInstancesInput | _models.MonitorInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MonitorInstancesOutput: ... + + @_overload async def monitor_instances( - self, input: MonitorInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MonitorInstancesInputDict], ) -> MonitorInstancesOutput: """ Enables detailed monitoring for a running instance. Otherwise, basic @@ -23052,8 +36943,6 @@ async def monitor_instances( [UnmonitorInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_UnmonitorInstances.html). Args: - input: - An instance of `MonitorInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23063,10 +36952,33 @@ async def monitor_instances( Returns: An instance of `MonitorInstancesOutput`. """ - return await self._invoke(input, _models.MONITOR_INSTANCES, [], plugins) + async def monitor_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MonitorInstancesOutput: + return await self._invoke( + self._select_input(_models.MONITOR_INSTANCES, args, kwargs), + _models.MONITOR_INSTANCES, + [], + plugins, + ) + + @_overload + async def move_address_to_vpc( + self, + request: _models.MoveAddressToVpcInput | _models.MoveAddressToVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MoveAddressToVpcOutput: ... + + @_overload async def move_address_to_vpc( - self, input: MoveAddressToVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MoveAddressToVpcInputDict], ) -> MoveAddressToVpcOutput: """ Note: @@ -23081,8 +36993,6 @@ async def move_address_to_vpc( EC2-Classic platform. Args: - input: - An instance of `MoveAddressToVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23092,10 +37002,34 @@ async def move_address_to_vpc( Returns: An instance of `MoveAddressToVpcOutput`. """ - return await self._invoke(input, _models.MOVE_ADDRESS_TO_VPC, [], plugins) + async def move_address_to_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MoveAddressToVpcOutput: + return await self._invoke( + self._select_input(_models.MOVE_ADDRESS_TO_VPC, args, kwargs), + _models.MOVE_ADDRESS_TO_VPC, + [], + plugins, + ) + + @_overload + async def move_byoip_cidr_to_ipam( + self, + request: _models.MoveByoipCidrToIpamInput + | _models.MoveByoipCidrToIpamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MoveByoipCidrToIpamOutput: ... + + @_overload async def move_byoip_cidr_to_ipam( - self, input: MoveByoipCidrToIpamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MoveByoipCidrToIpamInputDict], ) -> MoveByoipCidrToIpamOutput: """ Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool. @@ -23108,8 +37042,6 @@ async def move_byoip_cidr_to_ipam( IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoip-ipam.html). Args: - input: - An instance of `MoveByoipCidrToIpamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23119,12 +37051,34 @@ async def move_byoip_cidr_to_ipam( Returns: An instance of `MoveByoipCidrToIpamOutput`. """ - return await self._invoke(input, _models.MOVE_BYOIP_CIDR_TO_IPAM, [], plugins) + async def move_byoip_cidr_to_ipam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MoveByoipCidrToIpamOutput: + return await self._invoke( + self._select_input(_models.MOVE_BYOIP_CIDR_TO_IPAM, args, kwargs), + _models.MOVE_BYOIP_CIDR_TO_IPAM, + [], + plugins, + ) + + @_overload + async def move_capacity_reservation_instances( + self, + request: _models.MoveCapacityReservationInstancesInput + | _models.MoveCapacityReservationInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MoveCapacityReservationInstancesOutput: ... + + @_overload async def move_capacity_reservation_instances( self, - input: MoveCapacityReservationInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MoveCapacityReservationInstancesInputDict], ) -> MoveCapacityReservationInstancesOutput: """ Move available capacity from a source Capacity Reservation to a @@ -23145,8 +37099,6 @@ async def move_capacity_reservation_instances( - Capacity Reservation end time - `At specific time` or `Manually`. Args: - input: - An instance of `MoveCapacityReservationInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23156,12 +37108,35 @@ async def move_capacity_reservation_instances( Returns: An instance of `MoveCapacityReservationInstancesOutput`. """ + + async def move_capacity_reservation_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MoveCapacityReservationInstancesOutput: return await self._invoke( - input, _models.MOVE_CAPACITY_RESERVATION_INSTANCES, [], plugins + self._select_input( + _models.MOVE_CAPACITY_RESERVATION_INSTANCES, args, kwargs + ), + _models.MOVE_CAPACITY_RESERVATION_INSTANCES, + [], + plugins, ) + @_overload + async def provision_byoip_cidr( + self, + request: _models.ProvisionByoipCidrInput | _models.ProvisionByoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProvisionByoipCidrOutput: ... + + @_overload async def provision_byoip_cidr( - self, input: ProvisionByoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProvisionByoipCidrInputDict], ) -> ProvisionByoipCidrOutput: """ Provisions an IPv4 or IPv6 address range for use with your Amazon Web @@ -23186,8 +37161,6 @@ async def provision_byoip_cidr( range](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/byoip-onboard.html). Args: - input: - An instance of `ProvisionByoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23197,10 +37170,34 @@ async def provision_byoip_cidr( Returns: An instance of `ProvisionByoipCidrOutput`. """ - return await self._invoke(input, _models.PROVISION_BYOIP_CIDR, [], plugins) + async def provision_byoip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProvisionByoipCidrOutput: + return await self._invoke( + self._select_input(_models.PROVISION_BYOIP_CIDR, args, kwargs), + _models.PROVISION_BYOIP_CIDR, + [], + plugins, + ) + + @_overload + async def provision_ipam_byoasn( + self, + request: _models.ProvisionIpamByoasnInput + | _models.ProvisionIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProvisionIpamByoasnOutput: ... + + @_overload async def provision_ipam_byoasn( - self, input: ProvisionIpamByoasnInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProvisionIpamByoasnInputDict], ) -> ProvisionIpamByoasnOutput: """ Provisions your Autonomous System Number (ASN) for use in your Amazon @@ -23211,8 +37208,6 @@ async def provision_ipam_byoasn( in the *Amazon VPC IPAM guide*. Args: - input: - An instance of `ProvisionIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23222,10 +37217,34 @@ async def provision_ipam_byoasn( Returns: An instance of `ProvisionIpamByoasnOutput`. """ - return await self._invoke(input, _models.PROVISION_IPAM_BYOASN, [], plugins) + async def provision_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProvisionIpamByoasnOutput: + return await self._invoke( + self._select_input(_models.PROVISION_IPAM_BYOASN, args, kwargs), + _models.PROVISION_IPAM_BYOASN, + [], + plugins, + ) + + @_overload + async def provision_ipam_pool_cidr( + self, + request: _models.ProvisionIpamPoolCidrInput + | _models.ProvisionIpamPoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProvisionIpamPoolCidrOutput: ... + + @_overload async def provision_ipam_pool_cidr( - self, input: ProvisionIpamPoolCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProvisionIpamPoolCidrInputDict], ) -> ProvisionIpamPoolCidrOutput: """ Provision a CIDR to an IPAM pool. You can use this action to provision @@ -23237,8 +37256,6 @@ async def provision_ipam_pool_cidr( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ProvisionIpamPoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23248,12 +37265,34 @@ async def provision_ipam_pool_cidr( Returns: An instance of `ProvisionIpamPoolCidrOutput`. """ - return await self._invoke(input, _models.PROVISION_IPAM_POOL_CIDR, [], plugins) + async def provision_ipam_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProvisionIpamPoolCidrOutput: + return await self._invoke( + self._select_input(_models.PROVISION_IPAM_POOL_CIDR, args, kwargs), + _models.PROVISION_IPAM_POOL_CIDR, + [], + plugins, + ) + + @_overload + async def provision_public_ipv4_pool_cidr( + self, + request: _models.ProvisionPublicIpv4PoolCidrInput + | _models.ProvisionPublicIpv4PoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProvisionPublicIpv4PoolCidrOutput: ... + + @_overload async def provision_public_ipv4_pool_cidr( self, - input: ProvisionPublicIpv4PoolCidrInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProvisionPublicIpv4PoolCidrInputDict], ) -> ProvisionPublicIpv4PoolCidrOutput: """ Provision a CIDR to a public IPv4 pool. @@ -23263,8 +37302,6 @@ async def provision_public_ipv4_pool_cidr( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ProvisionPublicIpv4PoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23274,12 +37311,34 @@ async def provision_public_ipv4_pool_cidr( Returns: An instance of `ProvisionPublicIpv4PoolCidrOutput`. """ + + async def provision_public_ipv4_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProvisionPublicIpv4PoolCidrOutput: return await self._invoke( - input, _models.PROVISION_PUBLIC_IPV4_POOL_CIDR, [], plugins + self._select_input(_models.PROVISION_PUBLIC_IPV4_POOL_CIDR, args, kwargs), + _models.PROVISION_PUBLIC_IPV4_POOL_CIDR, + [], + plugins, ) + @_overload + async def purchase_capacity_block( + self, + request: _models.PurchaseCapacityBlockInput + | _models.PurchaseCapacityBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseCapacityBlockOutput: ... + + @_overload async def purchase_capacity_block( - self, input: PurchaseCapacityBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseCapacityBlockInputDict], ) -> PurchaseCapacityBlockOutput: """ Purchase the Capacity Block for use with your account. With Capacity @@ -23288,8 +37347,6 @@ async def purchase_capacity_block( are purchasing. Args: - input: - An instance of `PurchaseCapacityBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23299,12 +37356,34 @@ async def purchase_capacity_block( Returns: An instance of `PurchaseCapacityBlockOutput`. """ - return await self._invoke(input, _models.PURCHASE_CAPACITY_BLOCK, [], plugins) + async def purchase_capacity_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseCapacityBlockOutput: + return await self._invoke( + self._select_input(_models.PURCHASE_CAPACITY_BLOCK, args, kwargs), + _models.PURCHASE_CAPACITY_BLOCK, + [], + plugins, + ) + + @_overload + async def purchase_capacity_block_extension( + self, + request: _models.PurchaseCapacityBlockExtensionInput + | _models.PurchaseCapacityBlockExtensionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseCapacityBlockExtensionOutput: ... + + @_overload async def purchase_capacity_block_extension( self, - input: PurchaseCapacityBlockExtensionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseCapacityBlockExtensionInputDict], ) -> PurchaseCapacityBlockExtensionOutput: """ Purchase the Capacity Block extension for use with your account. You @@ -23312,8 +37391,6 @@ async def purchase_capacity_block_extension( purchasing. Args: - input: - An instance of `PurchaseCapacityBlockExtensionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23323,12 +37400,34 @@ async def purchase_capacity_block_extension( Returns: An instance of `PurchaseCapacityBlockExtensionOutput`. """ + + async def purchase_capacity_block_extension( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseCapacityBlockExtensionOutput: return await self._invoke( - input, _models.PURCHASE_CAPACITY_BLOCK_EXTENSION, [], plugins + self._select_input(_models.PURCHASE_CAPACITY_BLOCK_EXTENSION, args, kwargs), + _models.PURCHASE_CAPACITY_BLOCK_EXTENSION, + [], + plugins, ) + @_overload async def purchase_host_reservation( - self, input: PurchaseHostReservationInput, plugins: list[Plugin] | None = None + self, + request: _models.PurchaseHostReservationInput + | _models.PurchaseHostReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseHostReservationOutput: ... + + @_overload + async def purchase_host_reservation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseHostReservationInputDict], ) -> PurchaseHostReservationOutput: """ Purchase a reservation with configurations that match those of your @@ -23337,8 +37436,6 @@ async def purchase_host_reservation( reservation being purchased and charged to your account. Args: - input: - An instance of `PurchaseHostReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23348,12 +37445,34 @@ async def purchase_host_reservation( Returns: An instance of `PurchaseHostReservationOutput`. """ - return await self._invoke(input, _models.PURCHASE_HOST_RESERVATION, [], plugins) + async def purchase_host_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseHostReservationOutput: + return await self._invoke( + self._select_input(_models.PURCHASE_HOST_RESERVATION, args, kwargs), + _models.PURCHASE_HOST_RESERVATION, + [], + plugins, + ) + + @_overload + async def purchase_reserved_instances_offering( + self, + request: _models.PurchaseReservedInstancesOfferingInput + | _models.PurchaseReservedInstancesOfferingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseReservedInstancesOfferingOutput: ... + + @_overload async def purchase_reserved_instances_offering( self, - input: PurchaseReservedInstancesOfferingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseReservedInstancesOfferingInputDict], ) -> PurchaseReservedInstancesOfferingOutput: """ Purchases a Reserved Instance for use with your account. With Reserved @@ -23375,8 +37494,6 @@ async def purchase_reserved_instances_offering( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `PurchaseReservedInstancesOfferingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23386,14 +37503,36 @@ async def purchase_reserved_instances_offering( Returns: An instance of `PurchaseReservedInstancesOfferingOutput`. """ + + async def purchase_reserved_instances_offering( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseReservedInstancesOfferingOutput: return await self._invoke( - input, _models.PURCHASE_RESERVED_INSTANCES_OFFERING, [], plugins + self._select_input( + _models.PURCHASE_RESERVED_INSTANCES_OFFERING, args, kwargs + ), + _models.PURCHASE_RESERVED_INSTANCES_OFFERING, + [], + plugins, ) + @_overload + async def purchase_scheduled_instances( + self, + request: _models.PurchaseScheduledInstancesInput + | _models.PurchaseScheduledInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseScheduledInstancesOutput: ... + + @_overload async def purchase_scheduled_instances( self, - input: PurchaseScheduledInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseScheduledInstancesInputDict], ) -> PurchaseScheduledInstancesOutput: """ Note: @@ -23412,8 +37551,6 @@ async def purchase_scheduled_instances( resell your purchase. Args: - input: - An instance of `PurchaseScheduledInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23423,12 +37560,33 @@ async def purchase_scheduled_instances( Returns: An instance of `PurchaseScheduledInstancesOutput`. """ + + async def purchase_scheduled_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseScheduledInstancesOutput: return await self._invoke( - input, _models.PURCHASE_SCHEDULED_INSTANCES, [], plugins + self._select_input(_models.PURCHASE_SCHEDULED_INSTANCES, args, kwargs), + _models.PURCHASE_SCHEDULED_INSTANCES, + [], + plugins, ) + @_overload + async def reboot_instances( + self, + request: _models.RebootInstancesInput | _models.RebootInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RebootInstancesOutput: ... + + @_overload async def reboot_instances( - self, input: RebootInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RebootInstancesInputDict], ) -> RebootInstancesOutput: """ Requests a reboot of the specified instances. This operation is @@ -23445,8 +37603,6 @@ async def reboot_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RebootInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23456,10 +37612,33 @@ async def reboot_instances( Returns: An instance of `RebootInstancesOutput`. """ - return await self._invoke(input, _models.REBOOT_INSTANCES, [], plugins) + async def reboot_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RebootInstancesOutput: + return await self._invoke( + self._select_input(_models.REBOOT_INSTANCES, args, kwargs), + _models.REBOOT_INSTANCES, + [], + plugins, + ) + + @_overload + async def register_image( + self, + request: _models.RegisterImageInput | _models.RegisterImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterImageOutput: ... + + @_overload async def register_image( - self, input: RegisterImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterImageInputDict], ) -> RegisterImageOutput: """ Registers an AMI. When you're creating an instance-store backed AMI, @@ -23522,8 +37701,6 @@ async def register_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RegisterImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23533,12 +37710,34 @@ async def register_image( Returns: An instance of `RegisterImageOutput`. """ - return await self._invoke(input, _models.REGISTER_IMAGE, [], plugins) + async def register_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterImageOutput: + return await self._invoke( + self._select_input(_models.REGISTER_IMAGE, args, kwargs), + _models.REGISTER_IMAGE, + [], + plugins, + ) + + @_overload + async def register_instance_event_notification_attributes( + self, + request: _models.RegisterInstanceEventNotificationAttributesInput + | _models.RegisterInstanceEventNotificationAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterInstanceEventNotificationAttributesOutput: ... + + @_overload async def register_instance_event_notification_attributes( self, - input: RegisterInstanceEventNotificationAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterInstanceEventNotificationAttributesInputDict], ) -> RegisterInstanceEventNotificationAttributesOutput: """ Registers a set of tag keys to include in scheduled event notifications @@ -23548,8 +37747,6 @@ async def register_instance_event_notification_attributes( [DeregisterInstanceEventNotificationAttributes](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeregisterInstanceEventNotificationAttributes.html). Args: - input: - An instance of `RegisterInstanceEventNotificationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23559,14 +37756,36 @@ async def register_instance_event_notification_attributes( Returns: An instance of `RegisterInstanceEventNotificationAttributesOutput`. """ + + async def register_instance_event_notification_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterInstanceEventNotificationAttributesOutput: return await self._invoke( - input, _models.REGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, [], plugins + self._select_input( + _models.REGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, args, kwargs + ), + _models.REGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, + [], + plugins, ) + @_overload + async def register_transit_gateway_multicast_group_members( + self, + request: _models.RegisterTransitGatewayMulticastGroupMembersInput + | _models.RegisterTransitGatewayMulticastGroupMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterTransitGatewayMulticastGroupMembersOutput: ... + + @_overload async def register_transit_gateway_multicast_group_members( self, - input: RegisterTransitGatewayMulticastGroupMembersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterTransitGatewayMulticastGroupMembersInputDict], ) -> RegisterTransitGatewayMulticastGroupMembersOutput: """ Registers members (network interfaces) with the transit gateway @@ -23582,8 +37801,6 @@ async def register_transit_gateway_multicast_group_members( group. Args: - input: - An instance of `RegisterTransitGatewayMulticastGroupMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23593,14 +37810,36 @@ async def register_transit_gateway_multicast_group_members( Returns: An instance of `RegisterTransitGatewayMulticastGroupMembersOutput`. """ + + async def register_transit_gateway_multicast_group_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterTransitGatewayMulticastGroupMembersOutput: return await self._invoke( - input, _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, [], plugins + self._select_input( + _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, args, kwargs + ), + _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, + [], + plugins, ) + @_overload + async def register_transit_gateway_multicast_group_sources( + self, + request: _models.RegisterTransitGatewayMulticastGroupSourcesInput + | _models.RegisterTransitGatewayMulticastGroupSourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterTransitGatewayMulticastGroupSourcesOutput: ... + + @_overload async def register_transit_gateway_multicast_group_sources( self, - input: RegisterTransitGatewayMulticastGroupSourcesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterTransitGatewayMulticastGroupSourcesInputDict], ) -> RegisterTransitGatewayMulticastGroupSourcesOutput: """ Registers sources (network interfaces) with the specified transit @@ -23617,8 +37856,6 @@ async def register_transit_gateway_multicast_group_sources( to verify that the source was added to the multicast group. Args: - input: - An instance of `RegisterTransitGatewayMulticastGroupSourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23628,14 +37865,36 @@ async def register_transit_gateway_multicast_group_sources( Returns: An instance of `RegisterTransitGatewayMulticastGroupSourcesOutput`. """ + + async def register_transit_gateway_multicast_group_sources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterTransitGatewayMulticastGroupSourcesOutput: return await self._invoke( - input, _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, [], plugins + self._select_input( + _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, args, kwargs + ), + _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, + [], + plugins, ) + @_overload + async def reject_capacity_reservation_billing_ownership( + self, + request: _models.RejectCapacityReservationBillingOwnershipInput + | _models.RejectCapacityReservationBillingOwnershipInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectCapacityReservationBillingOwnershipOutput: ... + + @_overload async def reject_capacity_reservation_billing_ownership( self, - input: RejectCapacityReservationBillingOwnershipInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectCapacityReservationBillingOwnershipInputDict], ) -> RejectCapacityReservationBillingOwnershipOutput: """ Rejects a request to assign billing of the available capacity of a @@ -23644,8 +37903,6 @@ async def reject_capacity_reservation_billing_ownership( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html). Args: - input: - An instance of `RejectCapacityReservationBillingOwnershipInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23655,14 +37912,36 @@ async def reject_capacity_reservation_billing_ownership( Returns: An instance of `RejectCapacityReservationBillingOwnershipOutput`. """ + + async def reject_capacity_reservation_billing_ownership( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectCapacityReservationBillingOwnershipOutput: return await self._invoke( - input, _models.REJECT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, [], plugins + self._select_input( + _models.REJECT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, args, kwargs + ), + _models.REJECT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, + [], + plugins, ) + @_overload + async def reject_transit_gateway_client_vpn_attachment( + self, + request: _models.RejectTransitGatewayClientVpnAttachmentInput + | _models.RejectTransitGatewayClientVpnAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectTransitGatewayClientVpnAttachmentOutput: ... + + @_overload async def reject_transit_gateway_client_vpn_attachment( self, - input: RejectTransitGatewayClientVpnAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectTransitGatewayClientVpnAttachmentInputDict], ) -> RejectTransitGatewayClientVpnAttachmentOutput: """ Rejects a Transit Gateway attachment request for a Client VPN endpoint. @@ -23671,8 +37950,6 @@ async def reject_transit_gateway_client_vpn_attachment( Gateway. Args: - input: - An instance of `RejectTransitGatewayClientVpnAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23682,22 +37959,44 @@ async def reject_transit_gateway_client_vpn_attachment( Returns: An instance of `RejectTransitGatewayClientVpnAttachmentOutput`. """ + + async def reject_transit_gateway_client_vpn_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectTransitGatewayClientVpnAttachmentOutput: return await self._invoke( - input, _models.REJECT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, [], plugins + self._select_input( + _models.REJECT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, args, kwargs + ), + _models.REJECT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, + [], + plugins, ) + @_overload + async def reject_transit_gateway_multicast_domain_associations( + self, + request: _models.RejectTransitGatewayMulticastDomainAssociationsInput + | _models.RejectTransitGatewayMulticastDomainAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectTransitGatewayMulticastDomainAssociationsOutput: ... + + @_overload async def reject_transit_gateway_multicast_domain_associations( self, - input: RejectTransitGatewayMulticastDomainAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.RejectTransitGatewayMulticastDomainAssociationsInputDict + ], ) -> RejectTransitGatewayMulticastDomainAssociationsOutput: """ Rejects a request to associate cross-account subnets with a transit gateway multicast domain. Args: - input: - An instance of `RejectTransitGatewayMulticastDomainAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23707,24 +38006,43 @@ async def reject_transit_gateway_multicast_domain_associations( Returns: An instance of `RejectTransitGatewayMulticastDomainAssociationsOutput`. """ + + async def reject_transit_gateway_multicast_domain_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectTransitGatewayMulticastDomainAssociationsOutput: return await self._invoke( - input, + self._select_input( + _models.REJECT_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, + args, + kwargs, + ), _models.REJECT_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, [], plugins, ) + @_overload + async def reject_transit_gateway_peering_attachment( + self, + request: _models.RejectTransitGatewayPeeringAttachmentInput + | _models.RejectTransitGatewayPeeringAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectTransitGatewayPeeringAttachmentOutput: ... + + @_overload async def reject_transit_gateway_peering_attachment( self, - input: RejectTransitGatewayPeeringAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectTransitGatewayPeeringAttachmentInputDict], ) -> RejectTransitGatewayPeeringAttachmentOutput: """ Rejects a transit gateway peering attachment request. Args: - input: - An instance of `RejectTransitGatewayPeeringAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23734,14 +38052,36 @@ async def reject_transit_gateway_peering_attachment( Returns: An instance of `RejectTransitGatewayPeeringAttachmentOutput`. """ + + async def reject_transit_gateway_peering_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectTransitGatewayPeeringAttachmentOutput: return await self._invoke( - input, _models.REJECT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, [], plugins + self._select_input( + _models.REJECT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, args, kwargs + ), + _models.REJECT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, + [], + plugins, ) + @_overload + async def reject_transit_gateway_vpc_attachment( + self, + request: _models.RejectTransitGatewayVpcAttachmentInput + | _models.RejectTransitGatewayVpcAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectTransitGatewayVpcAttachmentOutput: ... + + @_overload async def reject_transit_gateway_vpc_attachment( self, - input: RejectTransitGatewayVpcAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectTransitGatewayVpcAttachmentInputDict], ) -> RejectTransitGatewayVpcAttachmentOutput: """ Rejects a request to attach a VPC to a transit gateway. @@ -23752,8 +38092,6 @@ async def reject_transit_gateway_vpc_attachment( attachment request. Args: - input: - An instance of `RejectTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23763,21 +38101,41 @@ async def reject_transit_gateway_vpc_attachment( Returns: An instance of `RejectTransitGatewayVpcAttachmentOutput`. """ + + async def reject_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectTransitGatewayVpcAttachmentOutput: return await self._invoke( - input, _models.REJECT_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.REJECT_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.REJECT_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload + async def reject_vpc_endpoint_connections( + self, + request: _models.RejectVpcEndpointConnectionsInput + | _models.RejectVpcEndpointConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectVpcEndpointConnectionsOutput: ... + + @_overload async def reject_vpc_endpoint_connections( self, - input: RejectVpcEndpointConnectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectVpcEndpointConnectionsInputDict], ) -> RejectVpcEndpointConnectionsOutput: """ Rejects VPC endpoint connection requests to your VPC endpoint service. Args: - input: - An instance of `RejectVpcEndpointConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23787,14 +38145,34 @@ async def reject_vpc_endpoint_connections( Returns: An instance of `RejectVpcEndpointConnectionsOutput`. """ + + async def reject_vpc_endpoint_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectVpcEndpointConnectionsOutput: return await self._invoke( - input, _models.REJECT_VPC_ENDPOINT_CONNECTIONS, [], plugins + self._select_input(_models.REJECT_VPC_ENDPOINT_CONNECTIONS, args, kwargs), + _models.REJECT_VPC_ENDPOINT_CONNECTIONS, + [], + plugins, ) + @_overload async def reject_vpc_peering_connection( self, - input: RejectVpcPeeringConnectionInput, + request: _models.RejectVpcPeeringConnectionInput + | _models.RejectVpcPeeringConnectionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RejectVpcPeeringConnectionOutput: ... + + @_overload + async def reject_vpc_peering_connection( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectVpcPeeringConnectionInputDict], ) -> RejectVpcPeeringConnectionOutput: """ Rejects a VPC peering connection request. The VPC peering connection @@ -23805,8 +38183,6 @@ async def reject_vpc_peering_connection( DeleteVpcPeeringConnection. Args: - input: - An instance of `RejectVpcPeeringConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23816,12 +38192,33 @@ async def reject_vpc_peering_connection( Returns: An instance of `RejectVpcPeeringConnectionOutput`. """ + + async def reject_vpc_peering_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectVpcPeeringConnectionOutput: return await self._invoke( - input, _models.REJECT_VPC_PEERING_CONNECTION, [], plugins + self._select_input(_models.REJECT_VPC_PEERING_CONNECTION, args, kwargs), + _models.REJECT_VPC_PEERING_CONNECTION, + [], + plugins, ) + @_overload + async def release_address( + self, + request: _models.ReleaseAddressInput | _models.ReleaseAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReleaseAddressOutput: ... + + @_overload async def release_address( - self, input: ReleaseAddressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReleaseAddressInputDict], ) -> ReleaseAddressOutput: """ Releases the specified Elastic IP address. @@ -23846,8 +38243,6 @@ async def release_address( address](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing-eips-releasing.html). Args: - input: - An instance of `ReleaseAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23857,10 +38252,33 @@ async def release_address( Returns: An instance of `ReleaseAddressOutput`. """ - return await self._invoke(input, _models.RELEASE_ADDRESS, [], plugins) + async def release_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReleaseAddressOutput: + return await self._invoke( + self._select_input(_models.RELEASE_ADDRESS, args, kwargs), + _models.RELEASE_ADDRESS, + [], + plugins, + ) + + @_overload + async def release_hosts( + self, + request: _models.ReleaseHostsInput | _models.ReleaseHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReleaseHostsOutput: ... + + @_overload async def release_hosts( - self, input: ReleaseHostsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReleaseHostsInputDict], ) -> ReleaseHostsOutput: """ When you no longer want to use an On-Demand Dedicated Host it can be @@ -23878,8 +38296,6 @@ async def release_hosts( Released hosts still appear in a DescribeHosts response. Args: - input: - An instance of `ReleaseHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23889,10 +38305,34 @@ async def release_hosts( Returns: An instance of `ReleaseHostsOutput`. """ - return await self._invoke(input, _models.RELEASE_HOSTS, [], plugins) + async def release_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReleaseHostsOutput: + return await self._invoke( + self._select_input(_models.RELEASE_HOSTS, args, kwargs), + _models.RELEASE_HOSTS, + [], + plugins, + ) + + @_overload + async def release_ipam_pool_allocation( + self, + request: _models.ReleaseIpamPoolAllocationInput + | _models.ReleaseIpamPoolAllocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReleaseIpamPoolAllocationOutput: ... + + @_overload async def release_ipam_pool_allocation( - self, input: ReleaseIpamPoolAllocationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReleaseIpamPoolAllocationInputDict], ) -> ReleaseIpamPoolAllocationOutput: """ Release an allocation within an IPAM pool. The Region you use should be @@ -23912,8 +38352,6 @@ async def release_ipam_pool_allocation( model. Args: - input: - An instance of `ReleaseIpamPoolAllocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23923,14 +38361,34 @@ async def release_ipam_pool_allocation( Returns: An instance of `ReleaseIpamPoolAllocationOutput`. """ + + async def release_ipam_pool_allocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReleaseIpamPoolAllocationOutput: return await self._invoke( - input, _models.RELEASE_IPAM_POOL_ALLOCATION, [], plugins + self._select_input(_models.RELEASE_IPAM_POOL_ALLOCATION, args, kwargs), + _models.RELEASE_IPAM_POOL_ALLOCATION, + [], + plugins, ) + @_overload + async def replace_iam_instance_profile_association( + self, + request: _models.ReplaceIamInstanceProfileAssociationInput + | _models.ReplaceIamInstanceProfileAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceIamInstanceProfileAssociationOutput: ... + + @_overload async def replace_iam_instance_profile_association( self, - input: ReplaceIamInstanceProfileAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceIamInstanceProfileAssociationInputDict], ) -> ReplaceIamInstanceProfileAssociationOutput: """ Replaces an IAM instance profile for the specified running instance. You @@ -23941,8 +38399,6 @@ async def replace_iam_instance_profile_association( Use DescribeIamInstanceProfileAssociations to get the association ID. Args: - input: - An instance of `ReplaceIamInstanceProfileAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23952,14 +38408,36 @@ async def replace_iam_instance_profile_association( Returns: An instance of `ReplaceIamInstanceProfileAssociationOutput`. """ + + async def replace_iam_instance_profile_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceIamInstanceProfileAssociationOutput: return await self._invoke( - input, _models.REPLACE_IAM_INSTANCE_PROFILE_ASSOCIATION, [], plugins + self._select_input( + _models.REPLACE_IAM_INSTANCE_PROFILE_ASSOCIATION, args, kwargs + ), + _models.REPLACE_IAM_INSTANCE_PROFILE_ASSOCIATION, + [], + plugins, ) + @_overload + async def replace_image_criteria_in_allowed_images_settings( + self, + request: _models.ReplaceImageCriteriaInAllowedImagesSettingsInput + | _models.ReplaceImageCriteriaInAllowedImagesSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceImageCriteriaInAllowedImagesSettingsOutput: ... + + @_overload async def replace_image_criteria_in_allowed_images_settings( self, - input: ReplaceImageCriteriaInAllowedImagesSettingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceImageCriteriaInAllowedImagesSettingsInputDict], ) -> ReplaceImageCriteriaInAllowedImagesSettingsOutput: """ Sets or replaces the criteria for Allowed AMIs. @@ -23979,8 +38457,6 @@ async def replace_image_criteria_in_allowed_images_settings( in *Amazon EC2 User Guide*. Args: - input: - An instance of `ReplaceImageCriteriaInAllowedImagesSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23990,17 +38466,36 @@ async def replace_image_criteria_in_allowed_images_settings( Returns: An instance of `ReplaceImageCriteriaInAllowedImagesSettingsOutput`. """ + + async def replace_image_criteria_in_allowed_images_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceImageCriteriaInAllowedImagesSettingsOutput: return await self._invoke( - input, + self._select_input( + _models.REPLACE_IMAGE_CRITERIA_IN_ALLOWED_IMAGES_SETTINGS, args, kwargs + ), _models.REPLACE_IMAGE_CRITERIA_IN_ALLOWED_IMAGES_SETTINGS, [], plugins, ) + @_overload + async def replace_image_instance_type_specification( + self, + request: _models.ReplaceImageInstanceTypeSpecificationInput + | _models.ReplaceImageInstanceTypeSpecificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceImageInstanceTypeSpecificationOutput: ... + + @_overload async def replace_image_instance_type_specification( self, - input: ReplaceImageInstanceTypeSpecificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceImageInstanceTypeSpecificationInputDict], ) -> ReplaceImageInstanceTypeSpecificationOutput: """ Replaces or removes the instance type specification for an AMI. The @@ -24036,8 +38531,6 @@ async def replace_image_instance_type_specification( Web Services Marketplace if it has an instance type specification set. Args: - input: - An instance of `ReplaceImageInstanceTypeSpecificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24047,14 +38540,36 @@ async def replace_image_instance_type_specification( Returns: An instance of `ReplaceImageInstanceTypeSpecificationOutput`. """ + + async def replace_image_instance_type_specification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceImageInstanceTypeSpecificationOutput: return await self._invoke( - input, _models.REPLACE_IMAGE_INSTANCE_TYPE_SPECIFICATION, [], plugins + self._select_input( + _models.REPLACE_IMAGE_INSTANCE_TYPE_SPECIFICATION, args, kwargs + ), + _models.REPLACE_IMAGE_INSTANCE_TYPE_SPECIFICATION, + [], + plugins, ) + @_overload + async def replace_network_acl_association( + self, + request: _models.ReplaceNetworkAclAssociationInput + | _models.ReplaceNetworkAclAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceNetworkAclAssociationOutput: ... + + @_overload async def replace_network_acl_association( self, - input: ReplaceNetworkAclAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceNetworkAclAssociationInputDict], ) -> ReplaceNetworkAclAssociationOutput: """ Changes which network ACL a subnet is associated with. By default when @@ -24066,8 +38581,6 @@ async def replace_network_acl_association( This is an idempotent operation. Args: - input: - An instance of `ReplaceNetworkAclAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24077,12 +38590,34 @@ async def replace_network_acl_association( Returns: An instance of `ReplaceNetworkAclAssociationOutput`. """ + + async def replace_network_acl_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceNetworkAclAssociationOutput: return await self._invoke( - input, _models.REPLACE_NETWORK_ACL_ASSOCIATION, [], plugins + self._select_input(_models.REPLACE_NETWORK_ACL_ASSOCIATION, args, kwargs), + _models.REPLACE_NETWORK_ACL_ASSOCIATION, + [], + plugins, ) + @_overload async def replace_network_acl_entry( - self, input: ReplaceNetworkAclEntryInput, plugins: list[Plugin] | None = None + self, + request: _models.ReplaceNetworkAclEntryInput + | _models.ReplaceNetworkAclEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceNetworkAclEntryOutput: ... + + @_overload + async def replace_network_acl_entry( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceNetworkAclEntryInputDict], ) -> ReplaceNetworkAclEntryOutput: """ Replaces an entry (rule) in a network ACL. For more information, see @@ -24091,8 +38626,6 @@ async def replace_network_acl_entry( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ReplaceNetworkAclEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24102,10 +38635,33 @@ async def replace_network_acl_entry( Returns: An instance of `ReplaceNetworkAclEntryOutput`. """ - return await self._invoke(input, _models.REPLACE_NETWORK_ACL_ENTRY, [], plugins) + async def replace_network_acl_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceNetworkAclEntryOutput: + return await self._invoke( + self._select_input(_models.REPLACE_NETWORK_ACL_ENTRY, args, kwargs), + _models.REPLACE_NETWORK_ACL_ENTRY, + [], + plugins, + ) + + @_overload + async def replace_route( + self, + request: _models.ReplaceRouteInput | _models.ReplaceRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceRouteOutput: ... + + @_overload async def replace_route( - self, input: ReplaceRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceRouteInputDict], ) -> ReplaceRouteOutput: """ Replaces an existing route within a route table in a VPC. @@ -24119,8 +38675,6 @@ async def replace_route( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ReplaceRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24130,12 +38684,34 @@ async def replace_route( Returns: An instance of `ReplaceRouteOutput`. """ - return await self._invoke(input, _models.REPLACE_ROUTE, [], plugins) + async def replace_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceRouteOutput: + return await self._invoke( + self._select_input(_models.REPLACE_ROUTE, args, kwargs), + _models.REPLACE_ROUTE, + [], + plugins, + ) + + @_overload + async def replace_route_table_association( + self, + request: _models.ReplaceRouteTableAssociationInput + | _models.ReplaceRouteTableAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceRouteTableAssociationOutput: ... + + @_overload async def replace_route_table_association( self, - input: ReplaceRouteTableAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceRouteTableAssociationInputDict], ) -> ReplaceRouteTableAssociationOutput: """ Changes the route table associated with a given subnet, internet @@ -24150,8 +38726,6 @@ async def replace_route_table_association( route table ID of the new main route table. Args: - input: - An instance of `ReplaceRouteTableAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24161,22 +38735,40 @@ async def replace_route_table_association( Returns: An instance of `ReplaceRouteTableAssociationOutput`. """ + + async def replace_route_table_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceRouteTableAssociationOutput: return await self._invoke( - input, _models.REPLACE_ROUTE_TABLE_ASSOCIATION, [], plugins + self._select_input(_models.REPLACE_ROUTE_TABLE_ASSOCIATION, args, kwargs), + _models.REPLACE_ROUTE_TABLE_ASSOCIATION, + [], + plugins, ) + @_overload + async def replace_transit_gateway_route( + self, + request: _models.ReplaceTransitGatewayRouteInput + | _models.ReplaceTransitGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceTransitGatewayRouteOutput: ... + + @_overload async def replace_transit_gateway_route( self, - input: ReplaceTransitGatewayRouteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceTransitGatewayRouteInputDict], ) -> ReplaceTransitGatewayRouteOutput: """ Replaces the specified route in the specified transit gateway route table. Args: - input: - An instance of `ReplaceTransitGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24186,19 +38778,38 @@ async def replace_transit_gateway_route( Returns: An instance of `ReplaceTransitGatewayRouteOutput`. """ + + async def replace_transit_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceTransitGatewayRouteOutput: return await self._invoke( - input, _models.REPLACE_TRANSIT_GATEWAY_ROUTE, [], plugins + self._select_input(_models.REPLACE_TRANSIT_GATEWAY_ROUTE, args, kwargs), + _models.REPLACE_TRANSIT_GATEWAY_ROUTE, + [], + plugins, ) + @_overload + async def replace_vpn_tunnel( + self, + request: _models.ReplaceVpnTunnelInput | _models.ReplaceVpnTunnelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceVpnTunnelOutput: ... + + @_overload async def replace_vpn_tunnel( - self, input: ReplaceVpnTunnelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceVpnTunnelInputDict], ) -> ReplaceVpnTunnelOutput: """ Trigger replacement of specified VPN tunnel. Args: - input: - An instance of `ReplaceVpnTunnelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24208,10 +38819,34 @@ async def replace_vpn_tunnel( Returns: An instance of `ReplaceVpnTunnelOutput`. """ - return await self._invoke(input, _models.REPLACE_VPN_TUNNEL, [], plugins) + async def replace_vpn_tunnel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceVpnTunnelOutput: + return await self._invoke( + self._select_input(_models.REPLACE_VPN_TUNNEL, args, kwargs), + _models.REPLACE_VPN_TUNNEL, + [], + plugins, + ) + + @_overload + async def report_instance_status( + self, + request: _models.ReportInstanceStatusInput + | _models.ReportInstanceStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReportInstanceStatusOutput: ... + + @_overload async def report_instance_status( - self, input: ReportInstanceStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReportInstanceStatusInputDict], ) -> ReportInstanceStatusOutput: """ Submits feedback about the status of an instance. The instance must be @@ -24224,8 +38859,6 @@ async def report_instance_status( DescribeInstanceStatus. Args: - input: - An instance of `ReportInstanceStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24235,10 +38868,33 @@ async def report_instance_status( Returns: An instance of `ReportInstanceStatusOutput`. """ - return await self._invoke(input, _models.REPORT_INSTANCE_STATUS, [], plugins) + async def report_instance_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReportInstanceStatusOutput: + return await self._invoke( + self._select_input(_models.REPORT_INSTANCE_STATUS, args, kwargs), + _models.REPORT_INSTANCE_STATUS, + [], + plugins, + ) + + @_overload + async def request_spot_fleet( + self, + request: _models.RequestSpotFleetInput | _models.RequestSpotFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RequestSpotFleetOutput: ... + + @_overload async def request_spot_fleet( - self, input: RequestSpotFleetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RequestSpotFleetInputDict], ) -> RequestSpotFleetOutput: """ Creates a Spot Fleet request. @@ -24279,8 +38935,6 @@ async def request_spot_fleet( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RequestSpotFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24290,10 +38944,34 @@ async def request_spot_fleet( Returns: An instance of `RequestSpotFleetOutput`. """ - return await self._invoke(input, _models.REQUEST_SPOT_FLEET, [], plugins) + async def request_spot_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RequestSpotFleetOutput: + return await self._invoke( + self._select_input(_models.REQUEST_SPOT_FLEET, args, kwargs), + _models.REQUEST_SPOT_FLEET, + [], + plugins, + ) + + @_overload + async def request_spot_instances( + self, + request: _models.RequestSpotInstancesInput + | _models.RequestSpotInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RequestSpotInstancesOutput: ... + + @_overload async def request_spot_instances( - self, input: RequestSpotInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RequestSpotInstancesInputDict], ) -> RequestSpotInstancesOutput: """ Creates a Spot Instance request. @@ -24310,8 +38988,6 @@ async def request_spot_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RequestSpotInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24321,10 +38997,34 @@ async def request_spot_instances( Returns: An instance of `RequestSpotInstancesOutput`. """ - return await self._invoke(input, _models.REQUEST_SPOT_INSTANCES, [], plugins) + async def request_spot_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RequestSpotInstancesOutput: + return await self._invoke( + self._select_input(_models.REQUEST_SPOT_INSTANCES, args, kwargs), + _models.REQUEST_SPOT_INSTANCES, + [], + plugins, + ) + + @_overload async def reset_address_attribute( - self, input: ResetAddressAttributeInput, plugins: list[Plugin] | None = None + self, + request: _models.ResetAddressAttributeInput + | _models.ResetAddressAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetAddressAttributeOutput: ... + + @_overload + async def reset_address_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetAddressAttributeInputDict], ) -> ResetAddressAttributeOutput: """ Resets the attribute of the specified IP address. For requirements, see @@ -24332,8 +39032,6 @@ async def reset_address_attribute( applications](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). Args: - input: - An instance of `ResetAddressAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24343,10 +39041,34 @@ async def reset_address_attribute( Returns: An instance of `ResetAddressAttributeOutput`. """ - return await self._invoke(input, _models.RESET_ADDRESS_ATTRIBUTE, [], plugins) + async def reset_address_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetAddressAttributeOutput: + return await self._invoke( + self._select_input(_models.RESET_ADDRESS_ATTRIBUTE, args, kwargs), + _models.RESET_ADDRESS_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def reset_ebs_default_kms_key_id( + self, + request: _models.ResetEbsDefaultKmsKeyIdInput + | _models.ResetEbsDefaultKmsKeyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetEbsDefaultKmsKeyIdOutput: ... + + @_overload async def reset_ebs_default_kms_key_id( - self, input: ResetEbsDefaultKmsKeyIdInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetEbsDefaultKmsKeyIdInputDict], ) -> ResetEbsDefaultKmsKeyIdOutput: """ Resets the default KMS key for EBS encryption for your account in this @@ -24360,8 +39082,6 @@ async def reset_ebs_default_kms_key_id( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ResetEbsDefaultKmsKeyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24371,20 +39091,40 @@ async def reset_ebs_default_kms_key_id( Returns: An instance of `ResetEbsDefaultKmsKeyIdOutput`. """ + + async def reset_ebs_default_kms_key_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetEbsDefaultKmsKeyIdOutput: return await self._invoke( - input, _models.RESET_EBS_DEFAULT_KMS_KEY_ID, [], plugins + self._select_input(_models.RESET_EBS_DEFAULT_KMS_KEY_ID, args, kwargs), + _models.RESET_EBS_DEFAULT_KMS_KEY_ID, + [], + plugins, ) + @_overload async def reset_fpga_image_attribute( - self, input: ResetFpgaImageAttributeInput, plugins: list[Plugin] | None = None + self, + request: _models.ResetFpgaImageAttributeInput + | _models.ResetFpgaImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetFpgaImageAttributeOutput: ... + + @_overload + async def reset_fpga_image_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetFpgaImageAttributeInputDict], ) -> ResetFpgaImageAttributeOutput: """ Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute. Args: - input: - An instance of `ResetFpgaImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24394,19 +39134,39 @@ async def reset_fpga_image_attribute( Returns: An instance of `ResetFpgaImageAttributeOutput`. """ + + async def reset_fpga_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetFpgaImageAttributeOutput: return await self._invoke( - input, _models.RESET_FPGA_IMAGE_ATTRIBUTE, [], plugins + self._select_input(_models.RESET_FPGA_IMAGE_ATTRIBUTE, args, kwargs), + _models.RESET_FPGA_IMAGE_ATTRIBUTE, + [], + plugins, ) + @_overload + async def reset_image_attribute( + self, + request: _models.ResetImageAttributeInput + | _models.ResetImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetImageAttributeOutput: ... + + @_overload async def reset_image_attribute( - self, input: ResetImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetImageAttributeInputDict], ) -> ResetImageAttributeOutput: """ Resets an attribute of an AMI to its default value. Args: - input: - An instance of `ResetImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24416,10 +39176,34 @@ async def reset_image_attribute( Returns: An instance of `ResetImageAttributeOutput`. """ - return await self._invoke(input, _models.RESET_IMAGE_ATTRIBUTE, [], plugins) + async def reset_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetImageAttributeOutput: + return await self._invoke( + self._select_input(_models.RESET_IMAGE_ATTRIBUTE, args, kwargs), + _models.RESET_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload async def reset_instance_attribute( - self, input: ResetInstanceAttributeInput, plugins: list[Plugin] | None = None + self, + request: _models.ResetInstanceAttributeInput + | _models.ResetInstanceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetInstanceAttributeOutput: ... + + @_overload + async def reset_instance_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetInstanceAttributeInputDict], ) -> ResetInstanceAttributeOutput: """ Resets an attribute of an instance to its default value. To reset the @@ -24434,8 +39218,6 @@ async def reset_instance_attribute( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ResetInstanceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24445,20 +39227,40 @@ async def reset_instance_attribute( Returns: An instance of `ResetInstanceAttributeOutput`. """ - return await self._invoke(input, _models.RESET_INSTANCE_ATTRIBUTE, [], plugins) + async def reset_instance_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetInstanceAttributeOutput: + return await self._invoke( + self._select_input(_models.RESET_INSTANCE_ATTRIBUTE, args, kwargs), + _models.RESET_INSTANCE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def reset_network_interface_attribute( + self, + request: _models.ResetNetworkInterfaceAttributeInput + | _models.ResetNetworkInterfaceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetNetworkInterfaceAttributeOutput: ... + + @_overload async def reset_network_interface_attribute( self, - input: ResetNetworkInterfaceAttributeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetNetworkInterfaceAttributeInputDict], ) -> ResetNetworkInterfaceAttributeOutput: """ Resets a network interface attribute. You can specify only one attribute at a time. Args: - input: - An instance of `ResetNetworkInterfaceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24468,12 +39270,34 @@ async def reset_network_interface_attribute( Returns: An instance of `ResetNetworkInterfaceAttributeOutput`. """ + + async def reset_network_interface_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetNetworkInterfaceAttributeOutput: return await self._invoke( - input, _models.RESET_NETWORK_INTERFACE_ATTRIBUTE, [], plugins + self._select_input(_models.RESET_NETWORK_INTERFACE_ATTRIBUTE, args, kwargs), + _models.RESET_NETWORK_INTERFACE_ATTRIBUTE, + [], + plugins, ) + @_overload + async def reset_snapshot_attribute( + self, + request: _models.ResetSnapshotAttributeInput + | _models.ResetSnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetSnapshotAttributeOutput: ... + + @_overload async def reset_snapshot_attribute( - self, input: ResetSnapshotAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetSnapshotAttributeInputDict], ) -> ResetSnapshotAttributeOutput: """ Resets permission settings for the specified snapshot. @@ -24483,8 +39307,6 @@ async def reset_snapshot_attribute( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ResetSnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24494,10 +39316,34 @@ async def reset_snapshot_attribute( Returns: An instance of `ResetSnapshotAttributeOutput`. """ - return await self._invoke(input, _models.RESET_SNAPSHOT_ATTRIBUTE, [], plugins) + async def reset_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetSnapshotAttributeOutput: + return await self._invoke( + self._select_input(_models.RESET_SNAPSHOT_ATTRIBUTE, args, kwargs), + _models.RESET_SNAPSHOT_ATTRIBUTE, + [], + plugins, + ) + + @_overload + async def restore_address_to_classic( + self, + request: _models.RestoreAddressToClassicInput + | _models.RestoreAddressToClassicInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreAddressToClassicOutput: ... + + @_overload async def restore_address_to_classic( - self, input: RestoreAddressToClassicInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreAddressToClassicInputDict], ) -> RestoreAddressToClassicOutput: """ Note: @@ -24509,8 +39355,6 @@ async def restore_address_to_classic( address must not be associated with an instance or network interface. Args: - input: - An instance of `RestoreAddressToClassicInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24520,14 +39364,34 @@ async def restore_address_to_classic( Returns: An instance of `RestoreAddressToClassicOutput`. """ + + async def restore_address_to_classic( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreAddressToClassicOutput: return await self._invoke( - input, _models.RESTORE_ADDRESS_TO_CLASSIC, [], plugins + self._select_input(_models.RESTORE_ADDRESS_TO_CLASSIC, args, kwargs), + _models.RESTORE_ADDRESS_TO_CLASSIC, + [], + plugins, ) + @_overload + async def restore_image_from_recycle_bin( + self, + request: _models.RestoreImageFromRecycleBinInput + | _models.RestoreImageFromRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreImageFromRecycleBinOutput: ... + + @_overload async def restore_image_from_recycle_bin( self, - input: RestoreImageFromRecycleBinInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreImageFromRecycleBinInputDict], ) -> RestoreImageFromRecycleBinOutput: """ Restores an AMI from the Recycle Bin. For more information, see [Recover @@ -24536,8 +39400,6 @@ async def restore_image_from_recycle_bin( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RestoreImageFromRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24547,22 +39409,40 @@ async def restore_image_from_recycle_bin( Returns: An instance of `RestoreImageFromRecycleBinOutput`. """ + + async def restore_image_from_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreImageFromRecycleBinOutput: return await self._invoke( - input, _models.RESTORE_IMAGE_FROM_RECYCLE_BIN, [], plugins + self._select_input(_models.RESTORE_IMAGE_FROM_RECYCLE_BIN, args, kwargs), + _models.RESTORE_IMAGE_FROM_RECYCLE_BIN, + [], + plugins, ) + @_overload + async def restore_managed_prefix_list_version( + self, + request: _models.RestoreManagedPrefixListVersionInput + | _models.RestoreManagedPrefixListVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreManagedPrefixListVersionOutput: ... + + @_overload async def restore_managed_prefix_list_version( self, - input: RestoreManagedPrefixListVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreManagedPrefixListVersionInputDict], ) -> RestoreManagedPrefixListVersionOutput: """ Restores the entries from a previous version of a managed prefix list to a new version of the prefix list. Args: - input: - An instance of `RestoreManagedPrefixListVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24572,14 +39452,36 @@ async def restore_managed_prefix_list_version( Returns: An instance of `RestoreManagedPrefixListVersionOutput`. """ + + async def restore_managed_prefix_list_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreManagedPrefixListVersionOutput: return await self._invoke( - input, _models.RESTORE_MANAGED_PREFIX_LIST_VERSION, [], plugins + self._select_input( + _models.RESTORE_MANAGED_PREFIX_LIST_VERSION, args, kwargs + ), + _models.RESTORE_MANAGED_PREFIX_LIST_VERSION, + [], + plugins, ) + @_overload async def restore_snapshot_from_recycle_bin( self, - input: RestoreSnapshotFromRecycleBinInput, + request: _models.RestoreSnapshotFromRecycleBinInput + | _models.RestoreSnapshotFromRecycleBinInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RestoreSnapshotFromRecycleBinOutput: ... + + @_overload + async def restore_snapshot_from_recycle_bin( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreSnapshotFromRecycleBinInputDict], ) -> RestoreSnapshotFromRecycleBinOutput: """ Restores a snapshot from the Recycle Bin. For more information, see @@ -24588,8 +39490,6 @@ async def restore_snapshot_from_recycle_bin( in the *Amazon EBS User Guide*. Args: - input: - An instance of `RestoreSnapshotFromRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24599,12 +39499,34 @@ async def restore_snapshot_from_recycle_bin( Returns: An instance of `RestoreSnapshotFromRecycleBinOutput`. """ + + async def restore_snapshot_from_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreSnapshotFromRecycleBinOutput: return await self._invoke( - input, _models.RESTORE_SNAPSHOT_FROM_RECYCLE_BIN, [], plugins + self._select_input(_models.RESTORE_SNAPSHOT_FROM_RECYCLE_BIN, args, kwargs), + _models.RESTORE_SNAPSHOT_FROM_RECYCLE_BIN, + [], + plugins, ) + @_overload + async def restore_snapshot_tier( + self, + request: _models.RestoreSnapshotTierInput + | _models.RestoreSnapshotTierInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreSnapshotTierOutput: ... + + @_overload async def restore_snapshot_tier( - self, input: RestoreSnapshotTierInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreSnapshotTierInputDict], ) -> RestoreSnapshotTierOutput: """ Restores an archived Amazon EBS snapshot for use temporarily or @@ -24619,8 +39541,6 @@ async def restore_snapshot_tier( in the *Amazon EBS User Guide*. Args: - input: - An instance of `RestoreSnapshotTierInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24630,12 +39550,34 @@ async def restore_snapshot_tier( Returns: An instance of `RestoreSnapshotTierOutput`. """ - return await self._invoke(input, _models.RESTORE_SNAPSHOT_TIER, [], plugins) + async def restore_snapshot_tier( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreSnapshotTierOutput: + return await self._invoke( + self._select_input(_models.RESTORE_SNAPSHOT_TIER, args, kwargs), + _models.RESTORE_SNAPSHOT_TIER, + [], + plugins, + ) + + @_overload + async def restore_volume_from_recycle_bin( + self, + request: _models.RestoreVolumeFromRecycleBinInput + | _models.RestoreVolumeFromRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreVolumeFromRecycleBinOutput: ... + + @_overload async def restore_volume_from_recycle_bin( self, - input: RestoreVolumeFromRecycleBinInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreVolumeFromRecycleBinInputDict], ) -> RestoreVolumeFromRecycleBinOutput: """ Restores a volume from the Recycle Bin. For more information, see @@ -24644,8 +39586,6 @@ async def restore_volume_from_recycle_bin( in the *Amazon EBS User Guide*. Args: - input: - An instance of `RestoreVolumeFromRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24655,19 +39595,39 @@ async def restore_volume_from_recycle_bin( Returns: An instance of `RestoreVolumeFromRecycleBinOutput`. """ + + async def restore_volume_from_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreVolumeFromRecycleBinOutput: return await self._invoke( - input, _models.RESTORE_VOLUME_FROM_RECYCLE_BIN, [], plugins + self._select_input(_models.RESTORE_VOLUME_FROM_RECYCLE_BIN, args, kwargs), + _models.RESTORE_VOLUME_FROM_RECYCLE_BIN, + [], + plugins, ) + @_overload + async def revoke_client_vpn_ingress( + self, + request: _models.RevokeClientVpnIngressInput + | _models.RevokeClientVpnIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeClientVpnIngressOutput: ... + + @_overload async def revoke_client_vpn_ingress( - self, input: RevokeClientVpnIngressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeClientVpnIngressInputDict], ) -> RevokeClientVpnIngressOutput: """ Removes an ingress authorization rule from a Client VPN endpoint. Args: - input: - An instance of `RevokeClientVpnIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24677,10 +39637,34 @@ async def revoke_client_vpn_ingress( Returns: An instance of `RevokeClientVpnIngressOutput`. """ - return await self._invoke(input, _models.REVOKE_CLIENT_VPN_INGRESS, [], plugins) + async def revoke_client_vpn_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeClientVpnIngressOutput: + return await self._invoke( + self._select_input(_models.REVOKE_CLIENT_VPN_INGRESS, args, kwargs), + _models.REVOKE_CLIENT_VPN_INGRESS, + [], + plugins, + ) + + @_overload + async def revoke_security_group_egress( + self, + request: _models.RevokeSecurityGroupEgressInput + | _models.RevokeSecurityGroupEgressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeSecurityGroupEgressOutput: ... + + @_overload async def revoke_security_group_egress( - self, input: RevokeSecurityGroupEgressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeSecurityGroupEgressInputDict], ) -> RevokeSecurityGroupEgressOutput: """ Removes the specified outbound (egress) rules from the specified @@ -24707,8 +39691,6 @@ async def revoke_security_group_egress( quickly as possible. However, a small delay might occur. Args: - input: - An instance of `RevokeSecurityGroupEgressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24718,14 +39700,34 @@ async def revoke_security_group_egress( Returns: An instance of `RevokeSecurityGroupEgressOutput`. """ + + async def revoke_security_group_egress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeSecurityGroupEgressOutput: return await self._invoke( - input, _models.REVOKE_SECURITY_GROUP_EGRESS, [], plugins + self._select_input(_models.REVOKE_SECURITY_GROUP_EGRESS, args, kwargs), + _models.REVOKE_SECURITY_GROUP_EGRESS, + [], + plugins, ) + @_overload + async def revoke_security_group_ingress( + self, + request: _models.RevokeSecurityGroupIngressInput + | _models.RevokeSecurityGroupIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeSecurityGroupIngressOutput: ... + + @_overload async def revoke_security_group_ingress( self, - input: RevokeSecurityGroupIngressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeSecurityGroupIngressInputDict], ) -> RevokeSecurityGroupIngressOutput: """ Removes the specified inbound (ingress) rules from a security group. @@ -24755,8 +39757,6 @@ async def revoke_security_group_ingress( quickly as possible. However, a small delay might occur. Args: - input: - An instance of `RevokeSecurityGroupIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24766,12 +39766,33 @@ async def revoke_security_group_ingress( Returns: An instance of `RevokeSecurityGroupIngressOutput`. """ + + async def revoke_security_group_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeSecurityGroupIngressOutput: return await self._invoke( - input, _models.REVOKE_SECURITY_GROUP_INGRESS, [], plugins + self._select_input(_models.REVOKE_SECURITY_GROUP_INGRESS, args, kwargs), + _models.REVOKE_SECURITY_GROUP_INGRESS, + [], + plugins, ) + @_overload async def run_instances( - self, input: RunInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.RunInstancesInput | _models.RunInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RunInstancesOutput: ... + + @_overload + async def run_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RunInstancesInputDict], ) -> RunInstancesOutput: """ Launches the specified number of instances using an AMI for which you @@ -24831,8 +39852,6 @@ async def run_instances( instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html). Args: - input: - An instance of `RunInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24842,10 +39861,34 @@ async def run_instances( Returns: An instance of `RunInstancesOutput`. """ - return await self._invoke(input, _models.RUN_INSTANCES, [], plugins) + async def run_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RunInstancesOutput: + return await self._invoke( + self._select_input(_models.RUN_INSTANCES, args, kwargs), + _models.RUN_INSTANCES, + [], + plugins, + ) + + @_overload + async def run_scheduled_instances( + self, + request: _models.RunScheduledInstancesInput + | _models.RunScheduledInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RunScheduledInstancesOutput: ... + + @_overload async def run_scheduled_instances( - self, input: RunScheduledInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RunScheduledInstancesInputDict], ) -> RunScheduledInstancesOutput: """ Launches the specified Scheduled Instances. @@ -24859,8 +39902,6 @@ async def run_scheduled_instances( scheduled time period ends, you can launch it again after a few minutes. Args: - input: - An instance of `RunScheduledInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24870,17 +39911,39 @@ async def run_scheduled_instances( Returns: An instance of `RunScheduledInstancesOutput`. """ - return await self._invoke(input, _models.RUN_SCHEDULED_INSTANCES, [], plugins) + async def run_scheduled_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RunScheduledInstancesOutput: + return await self._invoke( + self._select_input(_models.RUN_SCHEDULED_INSTANCES, args, kwargs), + _models.RUN_SCHEDULED_INSTANCES, + [], + plugins, + ) + + @_overload + async def search_local_gateway_routes( + self, + request: _models.SearchLocalGatewayRoutesInput + | _models.SearchLocalGatewayRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchLocalGatewayRoutesOutput: ... + + @_overload async def search_local_gateway_routes( - self, input: SearchLocalGatewayRoutesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchLocalGatewayRoutesInputDict], ) -> SearchLocalGatewayRoutesOutput: """ Searches for routes in the specified local gateway route table. Args: - input: - An instance of `SearchLocalGatewayRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24890,22 +39953,40 @@ async def search_local_gateway_routes( Returns: An instance of `SearchLocalGatewayRoutesOutput`. """ + + async def search_local_gateway_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchLocalGatewayRoutesOutput: return await self._invoke( - input, _models.SEARCH_LOCAL_GATEWAY_ROUTES, [], plugins + self._select_input(_models.SEARCH_LOCAL_GATEWAY_ROUTES, args, kwargs), + _models.SEARCH_LOCAL_GATEWAY_ROUTES, + [], + plugins, ) + @_overload + async def search_transit_gateway_multicast_groups( + self, + request: _models.SearchTransitGatewayMulticastGroupsInput + | _models.SearchTransitGatewayMulticastGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchTransitGatewayMulticastGroupsOutput: ... + + @_overload async def search_transit_gateway_multicast_groups( self, - input: SearchTransitGatewayMulticastGroupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchTransitGatewayMulticastGroupsInputDict], ) -> SearchTransitGatewayMulticastGroupsOutput: """ Searches one or more transit gateway multicast groups and returns the group membership information. Args: - input: - An instance of `SearchTransitGatewayMulticastGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24915,21 +39996,41 @@ async def search_transit_gateway_multicast_groups( Returns: An instance of `SearchTransitGatewayMulticastGroupsOutput`. """ + + async def search_transit_gateway_multicast_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchTransitGatewayMulticastGroupsOutput: return await self._invoke( - input, _models.SEARCH_TRANSIT_GATEWAY_MULTICAST_GROUPS, [], plugins + self._select_input( + _models.SEARCH_TRANSIT_GATEWAY_MULTICAST_GROUPS, args, kwargs + ), + _models.SEARCH_TRANSIT_GATEWAY_MULTICAST_GROUPS, + [], + plugins, ) + @_overload + async def search_transit_gateway_routes( + self, + request: _models.SearchTransitGatewayRoutesInput + | _models.SearchTransitGatewayRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchTransitGatewayRoutesOutput: ... + + @_overload async def search_transit_gateway_routes( self, - input: SearchTransitGatewayRoutesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchTransitGatewayRoutesInputDict], ) -> SearchTransitGatewayRoutesOutput: """ Searches for routes in the specified transit gateway route table. Args: - input: - An instance of `SearchTransitGatewayRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24939,12 +40040,34 @@ async def search_transit_gateway_routes( Returns: An instance of `SearchTransitGatewayRoutesOutput`. """ + + async def search_transit_gateway_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchTransitGatewayRoutesOutput: return await self._invoke( - input, _models.SEARCH_TRANSIT_GATEWAY_ROUTES, [], plugins + self._select_input(_models.SEARCH_TRANSIT_GATEWAY_ROUTES, args, kwargs), + _models.SEARCH_TRANSIT_GATEWAY_ROUTES, + [], + plugins, ) + @_overload + async def send_diagnostic_interrupt( + self, + request: _models.SendDiagnosticInterruptInput + | _models.SendDiagnosticInterruptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendDiagnosticInterruptOutput: ... + + @_overload async def send_diagnostic_interrupt( - self, input: SendDiagnosticInterruptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDiagnosticInterruptInputDict], ) -> SendDiagnosticInterruptOutput: """ Sends a diagnostic interrupt to the specified Amazon EC2 instance to @@ -24968,8 +40091,6 @@ async def send_diagnostic_interrupt( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `SendDiagnosticInterruptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24979,12 +40100,34 @@ async def send_diagnostic_interrupt( Returns: An instance of `SendDiagnosticInterruptOutput`. """ - return await self._invoke(input, _models.SEND_DIAGNOSTIC_INTERRUPT, [], plugins) + async def send_diagnostic_interrupt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDiagnosticInterruptOutput: + return await self._invoke( + self._select_input(_models.SEND_DIAGNOSTIC_INTERRUPT, args, kwargs), + _models.SEND_DIAGNOSTIC_INTERRUPT, + [], + plugins, + ) + + @_overload + async def start_declarative_policies_report( + self, + request: _models.StartDeclarativePoliciesReportInput + | _models.StartDeclarativePoliciesReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDeclarativePoliciesReportOutput: ... + + @_overload async def start_declarative_policies_report( self, - input: StartDeclarativePoliciesReportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDeclarativePoliciesReportInputDict], ) -> StartDeclarativePoliciesReportOutput: """ Generates an account status report. The report is generated @@ -25036,8 +40179,6 @@ async def start_declarative_policies_report( in the *Amazon Web Services Organizations User Guide*. Args: - input: - An instance of `StartDeclarativePoliciesReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25047,12 +40188,33 @@ async def start_declarative_policies_report( Returns: An instance of `StartDeclarativePoliciesReportOutput`. """ + + async def start_declarative_policies_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDeclarativePoliciesReportOutput: return await self._invoke( - input, _models.START_DECLARATIVE_POLICIES_REPORT, [], plugins + self._select_input(_models.START_DECLARATIVE_POLICIES_REPORT, args, kwargs), + _models.START_DECLARATIVE_POLICIES_REPORT, + [], + plugins, ) + @_overload + async def start_instances( + self, + request: _models.StartInstancesInput | _models.StartInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartInstancesOutput: ... + + @_overload async def start_instances( - self, input: StartInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartInstancesInputDict], ) -> StartInstancesOutput: """ Starts an Amazon EBS-backed instance that you've previously stopped. @@ -25084,8 +40246,6 @@ async def start_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `StartInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25095,19 +40255,39 @@ async def start_instances( Returns: An instance of `StartInstancesOutput`. """ - return await self._invoke(input, _models.START_INSTANCES, [], plugins) + async def start_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartInstancesOutput: + return await self._invoke( + self._select_input(_models.START_INSTANCES, args, kwargs), + _models.START_INSTANCES, + [], + plugins, + ) + + @_overload + async def start_network_insights_access_scope_analysis( + self, + request: _models.StartNetworkInsightsAccessScopeAnalysisInput + | _models.StartNetworkInsightsAccessScopeAnalysisInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartNetworkInsightsAccessScopeAnalysisOutput: ... + + @_overload async def start_network_insights_access_scope_analysis( self, - input: StartNetworkInsightsAccessScopeAnalysisInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartNetworkInsightsAccessScopeAnalysisInputDict], ) -> StartNetworkInsightsAccessScopeAnalysisOutput: """ Starts analyzing the specified Network Access Scope. Args: - input: - An instance of `StartNetworkInsightsAccessScopeAnalysisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25117,22 +40297,42 @@ async def start_network_insights_access_scope_analysis( Returns: An instance of `StartNetworkInsightsAccessScopeAnalysisOutput`. """ + + async def start_network_insights_access_scope_analysis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartNetworkInsightsAccessScopeAnalysisOutput: return await self._invoke( - input, _models.START_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, [], plugins + self._select_input( + _models.START_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, args, kwargs + ), + _models.START_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, + [], + plugins, ) + @_overload + async def start_network_insights_analysis( + self, + request: _models.StartNetworkInsightsAnalysisInput + | _models.StartNetworkInsightsAnalysisInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartNetworkInsightsAnalysisOutput: ... + + @_overload async def start_network_insights_analysis( self, - input: StartNetworkInsightsAnalysisInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartNetworkInsightsAnalysisInputDict], ) -> StartNetworkInsightsAnalysisOutput: """ Starts analyzing the specified path. If the path is reachable, the operation returns the shortest feasible path. Args: - input: - An instance of `StartNetworkInsightsAnalysisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25142,14 +40342,36 @@ async def start_network_insights_analysis( Returns: An instance of `StartNetworkInsightsAnalysisOutput`. """ + + async def start_network_insights_analysis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartNetworkInsightsAnalysisOutput: return await self._invoke( - input, _models.START_NETWORK_INSIGHTS_ANALYSIS, [], plugins + self._select_input(_models.START_NETWORK_INSIGHTS_ANALYSIS, args, kwargs), + _models.START_NETWORK_INSIGHTS_ANALYSIS, + [], + plugins, ) + @_overload + async def start_vpc_endpoint_service_private_dns_verification( + self, + request: _models.StartVpcEndpointServicePrivateDnsVerificationInput + | _models.StartVpcEndpointServicePrivateDnsVerificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartVpcEndpointServicePrivateDnsVerificationOutput: ... + + @_overload async def start_vpc_endpoint_service_private_dns_verification( self, - input: StartVpcEndpointServicePrivateDnsVerificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.StartVpcEndpointServicePrivateDnsVerificationInputDict + ], ) -> StartVpcEndpointServicePrivateDnsVerificationOutput: """ Initiates the verification process to prove that the service provider @@ -25162,8 +40384,6 @@ async def start_vpc_endpoint_service_private_dns_verification( the DNS server. Args: - input: - An instance of `StartVpcEndpointServicePrivateDnsVerificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25173,15 +40393,37 @@ async def start_vpc_endpoint_service_private_dns_verification( Returns: An instance of `StartVpcEndpointServicePrivateDnsVerificationOutput`. """ + + async def start_vpc_endpoint_service_private_dns_verification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartVpcEndpointServicePrivateDnsVerificationOutput: return await self._invoke( - input, + self._select_input( + _models.START_VPC_ENDPOINT_SERVICE_PRIVATE_DNS_VERIFICATION, + args, + kwargs, + ), _models.START_VPC_ENDPOINT_SERVICE_PRIVATE_DNS_VERIFICATION, [], plugins, ) + @_overload + async def stop_instances( + self, + request: _models.StopInstancesInput | _models.StopInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopInstancesOutput: ... + + @_overload async def stop_instances( - self, input: StopInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopInstancesInputDict], ) -> StopInstancesOutput: """ Stops an Amazon EBS-backed instance. You can restart your instance at @@ -25233,8 +40475,6 @@ async def stop_instances( You can't stop or hibernate instance store-backed instances. Args: - input: - An instance of `StopInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25244,12 +40484,34 @@ async def stop_instances( Returns: An instance of `StopInstancesOutput`. """ - return await self._invoke(input, _models.STOP_INSTANCES, [], plugins) + async def stop_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopInstancesOutput: + return await self._invoke( + self._select_input(_models.STOP_INSTANCES, args, kwargs), + _models.STOP_INSTANCES, + [], + plugins, + ) + + @_overload async def terminate_client_vpn_connections( self, - input: TerminateClientVpnConnectionsInput, + request: _models.TerminateClientVpnConnectionsInput + | _models.TerminateClientVpnConnectionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> TerminateClientVpnConnectionsOutput: ... + + @_overload + async def terminate_client_vpn_connections( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TerminateClientVpnConnectionsInputDict], ) -> TerminateClientVpnConnectionsOutput: """ Terminates active Client VPN endpoint connections. This action can be @@ -25257,8 +40519,6 @@ async def terminate_client_vpn_connections( connections established by a specific user. Args: - input: - An instance of `TerminateClientVpnConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25268,12 +40528,33 @@ async def terminate_client_vpn_connections( Returns: An instance of `TerminateClientVpnConnectionsOutput`. """ + + async def terminate_client_vpn_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TerminateClientVpnConnectionsOutput: return await self._invoke( - input, _models.TERMINATE_CLIENT_VPN_CONNECTIONS, [], plugins + self._select_input(_models.TERMINATE_CLIENT_VPN_CONNECTIONS, args, kwargs), + _models.TERMINATE_CLIENT_VPN_CONNECTIONS, + [], + plugins, ) + @_overload + async def terminate_instances( + self, + request: _models.TerminateInstancesInput | _models.TerminateInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TerminateInstancesOutput: ... + + @_overload async def terminate_instances( - self, input: TerminateInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TerminateInstancesInputDict], ) -> TerminateInstancesOutput: """ Terminates (deletes) the specified instances. This operation is @@ -25364,8 +40645,6 @@ async def terminate_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `TerminateInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25375,18 +40654,40 @@ async def terminate_instances( Returns: An instance of `TerminateInstancesOutput`. """ - return await self._invoke(input, _models.TERMINATE_INSTANCES, [], plugins) + async def terminate_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TerminateInstancesOutput: + return await self._invoke( + self._select_input(_models.TERMINATE_INSTANCES, args, kwargs), + _models.TERMINATE_INSTANCES, + [], + plugins, + ) + + @_overload + async def unassign_ipv6_addresses( + self, + request: _models.UnassignIpv6AddressesInput + | _models.UnassignIpv6AddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnassignIpv6AddressesOutput: ... + + @_overload async def unassign_ipv6_addresses( - self, input: UnassignIpv6AddressesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnassignIpv6AddressesInputDict], ) -> UnassignIpv6AddressesOutput: """ Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network interface. Args: - input: - An instance of `UnassignIpv6AddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25396,20 +40697,40 @@ async def unassign_ipv6_addresses( Returns: An instance of `UnassignIpv6AddressesOutput`. """ - return await self._invoke(input, _models.UNASSIGN_IPV6_ADDRESSES, [], plugins) + async def unassign_ipv6_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnassignIpv6AddressesOutput: + return await self._invoke( + self._select_input(_models.UNASSIGN_IPV6_ADDRESSES, args, kwargs), + _models.UNASSIGN_IPV6_ADDRESSES, + [], + plugins, + ) + + @_overload + async def unassign_private_ip_addresses( + self, + request: _models.UnassignPrivateIpAddressesInput + | _models.UnassignPrivateIpAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnassignPrivateIpAddressesOutput: ... + + @_overload async def unassign_private_ip_addresses( self, - input: UnassignPrivateIpAddressesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnassignPrivateIpAddressesInputDict], ) -> UnassignPrivateIpAddressesOutput: """ Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation prefixes from a network interface. Args: - input: - An instance of `UnassignPrivateIpAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25419,14 +40740,34 @@ async def unassign_private_ip_addresses( Returns: An instance of `UnassignPrivateIpAddressesOutput`. """ + + async def unassign_private_ip_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnassignPrivateIpAddressesOutput: return await self._invoke( - input, _models.UNASSIGN_PRIVATE_IP_ADDRESSES, [], plugins + self._select_input(_models.UNASSIGN_PRIVATE_IP_ADDRESSES, args, kwargs), + _models.UNASSIGN_PRIVATE_IP_ADDRESSES, + [], + plugins, ) + @_overload + async def unassign_private_nat_gateway_address( + self, + request: _models.UnassignPrivateNatGatewayAddressInput + | _models.UnassignPrivateNatGatewayAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnassignPrivateNatGatewayAddressOutput: ... + + @_overload async def unassign_private_nat_gateway_address( self, - input: UnassignPrivateNatGatewayAddressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnassignPrivateNatGatewayAddressInputDict], ) -> UnassignPrivateNatGatewayAddressOutput: """ Unassigns secondary private IPv4 addresses from a private NAT gateway. @@ -25447,8 +40788,6 @@ async def unassign_private_nat_gateway_address( addresses are released. Args: - input: - An instance of `UnassignPrivateNatGatewayAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25458,12 +40797,35 @@ async def unassign_private_nat_gateway_address( Returns: An instance of `UnassignPrivateNatGatewayAddressOutput`. """ + + async def unassign_private_nat_gateway_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnassignPrivateNatGatewayAddressOutput: return await self._invoke( - input, _models.UNASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, [], plugins + self._select_input( + _models.UNASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, args, kwargs + ), + _models.UNASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, + [], + plugins, ) + @_overload + async def unlock_snapshot( + self, + request: _models.UnlockSnapshotInput | _models.UnlockSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnlockSnapshotOutput: ... + + @_overload async def unlock_snapshot( - self, input: UnlockSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnlockSnapshotInputDict], ) -> UnlockSnapshotOutput: """ Unlocks a snapshot that is locked in governance mode or that is locked @@ -25472,8 +40834,6 @@ async def unlock_snapshot( cooling-off period has expired. Args: - input: - An instance of `UnlockSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25483,10 +40843,33 @@ async def unlock_snapshot( Returns: An instance of `UnlockSnapshotOutput`. """ - return await self._invoke(input, _models.UNLOCK_SNAPSHOT, [], plugins) + async def unlock_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnlockSnapshotOutput: + return await self._invoke( + self._select_input(_models.UNLOCK_SNAPSHOT, args, kwargs), + _models.UNLOCK_SNAPSHOT, + [], + plugins, + ) + + @_overload + async def unmonitor_instances( + self, + request: _models.UnmonitorInstancesInput | _models.UnmonitorInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnmonitorInstancesOutput: ... + + @_overload async def unmonitor_instances( - self, input: UnmonitorInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnmonitorInstancesInputDict], ) -> UnmonitorInstancesOutput: """ Disables detailed monitoring for a running instance. For more @@ -25495,8 +40878,6 @@ async def unmonitor_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `UnmonitorInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25506,12 +40887,34 @@ async def unmonitor_instances( Returns: An instance of `UnmonitorInstancesOutput`. """ - return await self._invoke(input, _models.UNMONITOR_INSTANCES, [], plugins) + async def unmonitor_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnmonitorInstancesOutput: + return await self._invoke( + self._select_input(_models.UNMONITOR_INSTANCES, args, kwargs), + _models.UNMONITOR_INSTANCES, + [], + plugins, + ) + + @_overload + async def update_capacity_manager_monitored_tag_keys( + self, + request: _models.UpdateCapacityManagerMonitoredTagKeysInput + | _models.UpdateCapacityManagerMonitoredTagKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCapacityManagerMonitoredTagKeysOutput: ... + + @_overload async def update_capacity_manager_monitored_tag_keys( self, - input: UpdateCapacityManagerMonitoredTagKeysInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityManagerMonitoredTagKeysInputDict], ) -> UpdateCapacityManagerMonitoredTagKeysOutput: """ Activates or deactivates tag keys for monitoring by EC2 Capacity @@ -25519,8 +40922,6 @@ async def update_capacity_manager_monitored_tag_keys( metric data, enabling you to group and filter metrics by tag values. Args: - input: - An instance of `UpdateCapacityManagerMonitoredTagKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25530,14 +40931,36 @@ async def update_capacity_manager_monitored_tag_keys( Returns: An instance of `UpdateCapacityManagerMonitoredTagKeysOutput`. """ + + async def update_capacity_manager_monitored_tag_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityManagerMonitoredTagKeysOutput: return await self._invoke( - input, _models.UPDATE_CAPACITY_MANAGER_MONITORED_TAG_KEYS, [], plugins + self._select_input( + _models.UPDATE_CAPACITY_MANAGER_MONITORED_TAG_KEYS, args, kwargs + ), + _models.UPDATE_CAPACITY_MANAGER_MONITORED_TAG_KEYS, + [], + plugins, ) + @_overload async def update_capacity_manager_organizations_access( self, - input: UpdateCapacityManagerOrganizationsAccessInput, + request: _models.UpdateCapacityManagerOrganizationsAccessInput + | _models.UpdateCapacityManagerOrganizationsAccessInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateCapacityManagerOrganizationsAccessOutput: ... + + @_overload + async def update_capacity_manager_organizations_access( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityManagerOrganizationsAccessInputDict], ) -> UpdateCapacityManagerOrganizationsAccessOutput: """ Updates the Organizations access setting for EC2 Capacity Manager. This @@ -25546,8 +40969,6 @@ async def update_capacity_manager_organizations_access( account. Args: - input: - An instance of `UpdateCapacityManagerOrganizationsAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25557,14 +40978,38 @@ async def update_capacity_manager_organizations_access( Returns: An instance of `UpdateCapacityManagerOrganizationsAccessOutput`. """ + + async def update_capacity_manager_organizations_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityManagerOrganizationsAccessOutput: return await self._invoke( - input, _models.UPDATE_CAPACITY_MANAGER_ORGANIZATIONS_ACCESS, [], plugins + self._select_input( + _models.UPDATE_CAPACITY_MANAGER_ORGANIZATIONS_ACCESS, args, kwargs + ), + _models.UPDATE_CAPACITY_MANAGER_ORGANIZATIONS_ACCESS, + [], + plugins, ) + @_overload + async def update_interruptible_capacity_reservation_allocation( + self, + request: _models.UpdateInterruptibleCapacityReservationAllocationInput + | _models.UpdateInterruptibleCapacityReservationAllocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateInterruptibleCapacityReservationAllocationOutput: ... + + @_overload async def update_interruptible_capacity_reservation_allocation( self, - input: UpdateInterruptibleCapacityReservationAllocationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.UpdateInterruptibleCapacityReservationAllocationInputDict + ], ) -> UpdateInterruptibleCapacityReservationAllocationOutput: """ Modifies the number of instances allocated to an interruptible @@ -25572,8 +41017,6 @@ async def update_interruptible_capacity_reservation_allocation( your source Capacity Reservation. Args: - input: - An instance of `UpdateInterruptibleCapacityReservationAllocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25583,17 +41026,38 @@ async def update_interruptible_capacity_reservation_allocation( Returns: An instance of `UpdateInterruptibleCapacityReservationAllocationOutput`. """ + + async def update_interruptible_capacity_reservation_allocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateInterruptibleCapacityReservationAllocationOutput: return await self._invoke( - input, + self._select_input( + _models.UPDATE_INTERRUPTIBLE_CAPACITY_RESERVATION_ALLOCATION, + args, + kwargs, + ), _models.UPDATE_INTERRUPTIBLE_CAPACITY_RESERVATION_ALLOCATION, [], plugins, ) + @_overload async def update_security_group_rule_descriptions_egress( self, - input: UpdateSecurityGroupRuleDescriptionsEgressInput, + request: _models.UpdateSecurityGroupRuleDescriptionsEgressInput + | _models.UpdateSecurityGroupRuleDescriptionsEgressInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateSecurityGroupRuleDescriptionsEgressOutput: ... + + @_overload + async def update_security_group_rule_descriptions_egress( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSecurityGroupRuleDescriptionsEgressInputDict], ) -> UpdateSecurityGroupRuleDescriptionsEgressOutput: """ Updates the description of an egress (outbound) security group rule. You @@ -25602,8 +41066,6 @@ async def update_security_group_rule_descriptions_egress( group rule by omitting the description parameter in the request. Args: - input: - An instance of `UpdateSecurityGroupRuleDescriptionsEgressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25613,14 +41075,36 @@ async def update_security_group_rule_descriptions_egress( Returns: An instance of `UpdateSecurityGroupRuleDescriptionsEgressOutput`. """ + + async def update_security_group_rule_descriptions_egress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSecurityGroupRuleDescriptionsEgressOutput: return await self._invoke( - input, _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_EGRESS, [], plugins + self._select_input( + _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_EGRESS, args, kwargs + ), + _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_EGRESS, + [], + plugins, ) + @_overload + async def update_security_group_rule_descriptions_ingress( + self, + request: _models.UpdateSecurityGroupRuleDescriptionsIngressInput + | _models.UpdateSecurityGroupRuleDescriptionsIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSecurityGroupRuleDescriptionsIngressOutput: ... + + @_overload async def update_security_group_rule_descriptions_ingress( self, - input: UpdateSecurityGroupRuleDescriptionsIngressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSecurityGroupRuleDescriptionsIngressInputDict], ) -> UpdateSecurityGroupRuleDescriptionsIngressOutput: """ Updates the description of an ingress (inbound) security group rule. You @@ -25629,8 +41113,6 @@ async def update_security_group_rule_descriptions_ingress( group rule by omitting the description parameter in the request. Args: - input: - An instance of `UpdateSecurityGroupRuleDescriptionsIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25640,14 +41122,36 @@ async def update_security_group_rule_descriptions_ingress( Returns: An instance of `UpdateSecurityGroupRuleDescriptionsIngressOutput`. """ + + async def update_security_group_rule_descriptions_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSecurityGroupRuleDescriptionsIngressOutput: return await self._invoke( - input, _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_INGRESS, [], plugins + self._select_input( + _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_INGRESS, args, kwargs + ), + _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_INGRESS, + [], + plugins, ) + @_overload + async def validate_security_group_quotas_for_interface( + self, + request: _models.ValidateSecurityGroupQuotasForInterfaceInput + | _models.ValidateSecurityGroupQuotasForInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ValidateSecurityGroupQuotasForInterfaceOutput: ... + + @_overload async def validate_security_group_quotas_for_interface( self, - input: ValidateSecurityGroupQuotasForInterfaceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ValidateSecurityGroupQuotasForInterfaceInputDict], ) -> ValidateSecurityGroupQuotasForInterfaceOutput: """ Validates whether the specified security groups can be associated with a @@ -25661,8 +41165,6 @@ async def validate_security_group_quotas_for_interface( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ValidateSecurityGroupQuotasForInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25672,12 +41174,35 @@ async def validate_security_group_quotas_for_interface( Returns: An instance of `ValidateSecurityGroupQuotasForInterfaceOutput`. """ + + async def validate_security_group_quotas_for_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ValidateSecurityGroupQuotasForInterfaceOutput: return await self._invoke( - input, _models.VALIDATE_SECURITY_GROUP_QUOTAS_FOR_INTERFACE, [], plugins + self._select_input( + _models.VALIDATE_SECURITY_GROUP_QUOTAS_FOR_INTERFACE, args, kwargs + ), + _models.VALIDATE_SECURITY_GROUP_QUOTAS_FOR_INTERFACE, + [], + plugins, ) + @_overload + async def withdraw_byoip_cidr( + self, + request: _models.WithdrawByoipCidrInput | _models.WithdrawByoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> WithdrawByoipCidrOutput: ... + + @_overload async def withdraw_byoip_cidr( - self, input: WithdrawByoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.WithdrawByoipCidrInputDict], ) -> WithdrawByoipCidrOutput: """ Stops advertising an address range that is provisioned as an address @@ -25690,8 +41215,6 @@ async def withdraw_byoip_cidr( stops routing to Amazon Web Services because of BGP propagation delays. Args: - input: - An instance of `WithdrawByoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25701,7 +41224,16 @@ async def withdraw_byoip_cidr( Returns: An instance of `WithdrawByoipCidrOutput`. """ - return await self._invoke(input, _models.WITHDRAW_BYOIP_CIDR, [], plugins) + + async def withdraw_byoip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> WithdrawByoipCidrOutput: + return await self._invoke( + self._select_input(_models.WITHDRAW_BYOIP_CIDR, args, kwargs), + _models.WITHDRAW_BYOIP_CIDR, + [], + plugins, + ) async def _new_config(self) -> AsyncEC2Config: return await AsyncEC2Config.resolve() diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/client.py b/clients/aws-sdk-ec2/src/aws_sdk_ec2/client.py index 1462375f5..18cacaf63 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/client.py +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,1627 +20,816 @@ if TYPE_CHECKING: from .models import ( - AcceptAddressTransferInput, AcceptAddressTransferOutput, - AcceptCapacityReservationBillingOwnershipInput, AcceptCapacityReservationBillingOwnershipOutput, - AcceptReservedInstancesExchangeQuoteInput, AcceptReservedInstancesExchangeQuoteOutput, - AcceptTransitGatewayClientVpnAttachmentInput, AcceptTransitGatewayClientVpnAttachmentOutput, - AcceptTransitGatewayMulticastDomainAssociationsInput, AcceptTransitGatewayMulticastDomainAssociationsOutput, - AcceptTransitGatewayPeeringAttachmentInput, AcceptTransitGatewayPeeringAttachmentOutput, - AcceptTransitGatewayVpcAttachmentInput, AcceptTransitGatewayVpcAttachmentOutput, - AcceptVpcEndpointConnectionsInput, AcceptVpcEndpointConnectionsOutput, - AcceptVpcPeeringConnectionInput, AcceptVpcPeeringConnectionOutput, - AdvertiseByoipCidrInput, AdvertiseByoipCidrOutput, - AllocateAddressInput, AllocateAddressOutput, - AllocateHostsInput, AllocateHostsOutput, - AllocateIpamPoolCidrInput, AllocateIpamPoolCidrOutput, - ApplySecurityGroupsToClientVpnTargetNetworkInput, ApplySecurityGroupsToClientVpnTargetNetworkOutput, - AssignIpv6AddressesInput, AssignIpv6AddressesOutput, - AssignPrivateIpAddressesInput, AssignPrivateIpAddressesOutput, - AssignPrivateNatGatewayAddressInput, AssignPrivateNatGatewayAddressOutput, - AssociateAddressInput, AssociateAddressOutput, - AssociateApplicationStatusCheckInput, AssociateApplicationStatusCheckOutput, - AssociateCapacityReservationBillingOwnerInput, AssociateCapacityReservationBillingOwnerOutput, - AssociateClientVpnTargetNetworkInput, AssociateClientVpnTargetNetworkOutput, - AssociateDhcpOptionsInput, AssociateDhcpOptionsOutput, - AssociateEnclaveCertificateIamRoleInput, AssociateEnclaveCertificateIamRoleOutput, - AssociateIamInstanceProfileInput, AssociateIamInstanceProfileOutput, - AssociateInstanceEventWindowInput, AssociateInstanceEventWindowOutput, - AssociateIpamByoasnInput, AssociateIpamByoasnOutput, - AssociateIpamResourceDiscoveryInput, AssociateIpamResourceDiscoveryOutput, - AssociateNatGatewayAddressInput, AssociateNatGatewayAddressOutput, - AssociateRouteServerInput, AssociateRouteServerOutput, - AssociateRouteTableInput, AssociateRouteTableOutput, - AssociateSecurityGroupVpcInput, AssociateSecurityGroupVpcOutput, - AssociateSubnetCidrBlockInput, AssociateSubnetCidrBlockOutput, - AssociateTransitGatewayMulticastDomainInput, AssociateTransitGatewayMulticastDomainOutput, - AssociateTransitGatewayPolicyTableInput, AssociateTransitGatewayPolicyTableOutput, - AssociateTransitGatewayRouteTableInput, AssociateTransitGatewayRouteTableOutput, - AssociateTrunkInterfaceInput, AssociateTrunkInterfaceOutput, - AssociateVpcCidrBlockInput, AssociateVpcCidrBlockOutput, - AttachClassicLinkVpcInput, AttachClassicLinkVpcOutput, - AttachImageWatermarkInput, AttachImageWatermarkOutput, - AttachInternetGatewayInput, AttachInternetGatewayOutput, - AttachNetworkInterfaceInput, AttachNetworkInterfaceOutput, - AttachVerifiedAccessTrustProviderInput, AttachVerifiedAccessTrustProviderOutput, - AttachVolumeInput, AttachVolumeOutput, - AttachVpnGatewayInput, AttachVpnGatewayOutput, - AuthorizeClientVpnIngressInput, AuthorizeClientVpnIngressOutput, - AuthorizeSecurityGroupEgressInput, AuthorizeSecurityGroupEgressOutput, - AuthorizeSecurityGroupIngressInput, AuthorizeSecurityGroupIngressOutput, - BatchModifyIpamRoutingPolicyRegistrationsInput, BatchModifyIpamRoutingPolicyRegistrationsOutput, - BundleInstanceInput, BundleInstanceOutput, - CancelBundleTaskInput, CancelBundleTaskOutput, - CancelCapacityReservationFleetsInput, CancelCapacityReservationFleetsOutput, - CancelCapacityReservationInput, CancelCapacityReservationOutput, - CancelConversionTaskInput, CancelConversionTaskOutput, - CancelDeclarativePoliciesReportInput, CancelDeclarativePoliciesReportOutput, - CancelExportTaskInput, CancelExportTaskOutput, - CancelImageLaunchPermissionInput, CancelImageLaunchPermissionOutput, - CancelImportTaskInput, CancelImportTaskOutput, - CancelReservedInstancesListingInput, CancelReservedInstancesListingOutput, - CancelSpotFleetRequestsInput, CancelSpotFleetRequestsOutput, - CancelSpotInstanceRequestsInput, CancelSpotInstanceRequestsOutput, - ConfirmProductInstanceInput, ConfirmProductInstanceOutput, - CopyFpgaImageInput, CopyFpgaImageOutput, - CopyImageInput, CopyImageOutput, - CopySnapshotInput, CopySnapshotOutput, - CopyVolumesInput, CopyVolumesOutput, - CreateApplicationStatusCheckInput, CreateApplicationStatusCheckOutput, - CreateCapacityManagerDataExportInput, CreateCapacityManagerDataExportOutput, - CreateCapacityReservationBySplittingInput, CreateCapacityReservationBySplittingOutput, - CreateCapacityReservationCancellationQuoteInput, CreateCapacityReservationCancellationQuoteOutput, - CreateCapacityReservationDateChangeQuoteInput, CreateCapacityReservationDateChangeQuoteOutput, - CreateCapacityReservationFleetInput, CreateCapacityReservationFleetOutput, - CreateCapacityReservationInput, CreateCapacityReservationOutput, - CreateCarrierGatewayInput, CreateCarrierGatewayOutput, - CreateClientVpnEndpointInput, CreateClientVpnEndpointOutput, - CreateClientVpnRouteInput, CreateClientVpnRouteOutput, - CreateCoipCidrInput, CreateCoipCidrOutput, - CreateCoipPoolInput, CreateCoipPoolOutput, - CreateCustomerGatewayInput, CreateCustomerGatewayOutput, - CreateDefaultSubnetInput, CreateDefaultSubnetOutput, - CreateDefaultVpcInput, CreateDefaultVpcOutput, - CreateDelegateMacVolumeOwnershipTaskInput, CreateDelegateMacVolumeOwnershipTaskOutput, - CreateDhcpOptionsInput, CreateDhcpOptionsOutput, - CreateEgressOnlyInternetGatewayInput, CreateEgressOnlyInternetGatewayOutput, - CreateFleetInput, CreateFleetOutput, - CreateFlowLogsInput, CreateFlowLogsOutput, - CreateFpgaImageInput, CreateFpgaImageOutput, - CreateImageInput, CreateImageOutput, - CreateImageUsageReportInput, CreateImageUsageReportOutput, - CreateInstanceConnectEndpointInput, CreateInstanceConnectEndpointOutput, - CreateInstanceEventWindowInput, CreateInstanceEventWindowOutput, - CreateInstanceExportTaskInput, CreateInstanceExportTaskOutput, - CreateInternetGatewayInput, CreateInternetGatewayOutput, - CreateInterruptibleCapacityReservationAllocationInput, CreateInterruptibleCapacityReservationAllocationOutput, - CreateIpamExternalResourceVerificationTokenInput, CreateIpamExternalResourceVerificationTokenOutput, - CreateIpamInput, - CreateIpamInternetRegistryAssociationInput, CreateIpamInternetRegistryAssociationOutput, CreateIpamOutput, - CreateIpamPolicyInput, CreateIpamPolicyOutput, - CreateIpamPoolInput, CreateIpamPoolOutput, - CreateIpamPrefixListResolverInput, CreateIpamPrefixListResolverOutput, - CreateIpamPrefixListResolverTargetInput, CreateIpamPrefixListResolverTargetOutput, - CreateIpamResourceDiscoveryInput, CreateIpamResourceDiscoveryOutput, - CreateIpamRoutingPolicyRegistrationInput, CreateIpamRoutingPolicyRegistrationOutput, - CreateIpamScopeInput, CreateIpamScopeOutput, - CreateKeyPairInput, CreateKeyPairOutput, - CreateLaunchTemplateInput, CreateLaunchTemplateOutput, - CreateLaunchTemplateVersionInput, CreateLaunchTemplateVersionOutput, - CreateLocalGatewayRouteInput, CreateLocalGatewayRouteOutput, - CreateLocalGatewayRouteTableInput, CreateLocalGatewayRouteTableOutput, - CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, - CreateLocalGatewayRouteTableVpcAssociationInput, CreateLocalGatewayRouteTableVpcAssociationOutput, - CreateLocalGatewayVirtualInterfaceGroupInput, CreateLocalGatewayVirtualInterfaceGroupOutput, - CreateLocalGatewayVirtualInterfaceInput, CreateLocalGatewayVirtualInterfaceOutput, - CreateMacSystemIntegrityProtectionModificationTaskInput, CreateMacSystemIntegrityProtectionModificationTaskOutput, - CreateManagedPrefixListInput, CreateManagedPrefixListOutput, - CreateNatGatewayInput, CreateNatGatewayOutput, - CreateNetworkAclEntryInput, CreateNetworkAclEntryOutput, - CreateNetworkAclInput, CreateNetworkAclOutput, - CreateNetworkInsightsAccessScopeInput, CreateNetworkInsightsAccessScopeOutput, - CreateNetworkInsightsPathInput, CreateNetworkInsightsPathOutput, - CreateNetworkInterfaceInput, CreateNetworkInterfaceOutput, - CreateNetworkInterfacePermissionInput, CreateNetworkInterfacePermissionOutput, - CreatePlacementGroupInput, CreatePlacementGroupOutput, - CreatePublicIpv4PoolInput, CreatePublicIpv4PoolOutput, - CreateReplaceRootVolumeTaskInput, CreateReplaceRootVolumeTaskOutput, - CreateReservedInstancesListingInput, CreateReservedInstancesListingOutput, - CreateRestoreImageTaskInput, CreateRestoreImageTaskOutput, - CreateRouteInput, CreateRouteOutput, - CreateRouteServerEndpointInput, CreateRouteServerEndpointOutput, - CreateRouteServerInput, CreateRouteServerOutput, - CreateRouteServerPeerInput, CreateRouteServerPeerOutput, - CreateRouteTableInput, CreateRouteTableOutput, - CreateSecondaryNetworkInput, CreateSecondaryNetworkOutput, - CreateSecondarySubnetInput, CreateSecondarySubnetOutput, - CreateSecurityGroupInput, CreateSecurityGroupOutput, - CreateSnapshotInput, CreateSnapshotOutput, - CreateSnapshotsInput, CreateSnapshotsOutput, - CreateSpotDatafeedSubscriptionInput, CreateSpotDatafeedSubscriptionOutput, - CreateStoreImageTaskInput, CreateStoreImageTaskOutput, - CreateSubnetCidrReservationInput, CreateSubnetCidrReservationOutput, - CreateSubnetInput, CreateSubnetOutput, - CreateTagsInput, CreateTagsOutput, - CreateTrafficMirrorFilterInput, CreateTrafficMirrorFilterOutput, - CreateTrafficMirrorFilterRuleInput, CreateTrafficMirrorFilterRuleOutput, - CreateTrafficMirrorSessionInput, CreateTrafficMirrorSessionOutput, - CreateTrafficMirrorTargetInput, CreateTrafficMirrorTargetOutput, - CreateTransitGatewayConnectInput, CreateTransitGatewayConnectOutput, - CreateTransitGatewayConnectPeerInput, CreateTransitGatewayConnectPeerOutput, - CreateTransitGatewayInput, - CreateTransitGatewayMeteringPolicyEntryInput, CreateTransitGatewayMeteringPolicyEntryOutput, - CreateTransitGatewayMeteringPolicyInput, CreateTransitGatewayMeteringPolicyOutput, - CreateTransitGatewayMulticastDomainInput, CreateTransitGatewayMulticastDomainOutput, CreateTransitGatewayOutput, - CreateTransitGatewayPeeringAttachmentInput, CreateTransitGatewayPeeringAttachmentOutput, - CreateTransitGatewayPolicyTableEntryInput, CreateTransitGatewayPolicyTableEntryOutput, - CreateTransitGatewayPolicyTableInput, CreateTransitGatewayPolicyTableOutput, - CreateTransitGatewayPrefixListReferenceInput, CreateTransitGatewayPrefixListReferenceOutput, - CreateTransitGatewayRouteInput, CreateTransitGatewayRouteOutput, - CreateTransitGatewayRouteTableAnnouncementInput, CreateTransitGatewayRouteTableAnnouncementOutput, - CreateTransitGatewayRouteTableInput, CreateTransitGatewayRouteTableOutput, - CreateTransitGatewayVpcAttachmentInput, CreateTransitGatewayVpcAttachmentOutput, - CreateVerifiedAccessEndpointInput, CreateVerifiedAccessEndpointOutput, - CreateVerifiedAccessGroupInput, CreateVerifiedAccessGroupOutput, - CreateVerifiedAccessInstanceInput, CreateVerifiedAccessInstanceOutput, - CreateVerifiedAccessTrustProviderInput, CreateVerifiedAccessTrustProviderOutput, - CreateVolumeInput, CreateVolumeOutput, - CreateVpcBlockPublicAccessExclusionInput, CreateVpcBlockPublicAccessExclusionOutput, - CreateVpcEncryptionControlInput, CreateVpcEncryptionControlOutput, - CreateVpcEndpointConnectionNotificationInput, CreateVpcEndpointConnectionNotificationOutput, - CreateVpcEndpointInput, CreateVpcEndpointOutput, - CreateVpcEndpointServiceConfigurationInput, CreateVpcEndpointServiceConfigurationOutput, - CreateVpcInput, CreateVpcOutput, - CreateVpcPeeringConnectionInput, CreateVpcPeeringConnectionOutput, - CreateVpnConcentratorInput, CreateVpnConcentratorOutput, - CreateVpnConnectionInput, CreateVpnConnectionOutput, - CreateVpnConnectionRouteInput, CreateVpnConnectionRouteOutput, - CreateVpnGatewayInput, CreateVpnGatewayOutput, - DeleteApplicationStatusCheckInput, DeleteApplicationStatusCheckOutput, - DeleteCapacityManagerDataExportInput, DeleteCapacityManagerDataExportOutput, - DeleteCarrierGatewayInput, DeleteCarrierGatewayOutput, - DeleteClientVpnEndpointAuthorizationPolicyInput, DeleteClientVpnEndpointAuthorizationPolicyOutput, - DeleteClientVpnEndpointInput, DeleteClientVpnEndpointOutput, - DeleteClientVpnRouteInput, DeleteClientVpnRouteOutput, - DeleteCoipCidrInput, DeleteCoipCidrOutput, - DeleteCoipPoolInput, DeleteCoipPoolOutput, - DeleteCustomerGatewayInput, DeleteCustomerGatewayOutput, - DeleteDhcpOptionsInput, DeleteDhcpOptionsOutput, - DeleteEgressOnlyInternetGatewayInput, DeleteEgressOnlyInternetGatewayOutput, - DeleteFleetsInput, DeleteFleetsOutput, - DeleteFlowLogsInput, DeleteFlowLogsOutput, - DeleteFpgaImageInput, DeleteFpgaImageOutput, - DeleteImageUsageReportInput, DeleteImageUsageReportOutput, - DeleteInstanceConnectEndpointInput, DeleteInstanceConnectEndpointOutput, - DeleteInstanceEventWindowInput, DeleteInstanceEventWindowOutput, - DeleteInternetGatewayInput, DeleteInternetGatewayOutput, - DeleteIpamExternalResourceVerificationTokenInput, DeleteIpamExternalResourceVerificationTokenOutput, - DeleteIpamInput, - DeleteIpamInternetRegistryAssociationInput, DeleteIpamInternetRegistryAssociationOutput, DeleteIpamOutput, - DeleteIpamPolicyInput, DeleteIpamPolicyOutput, - DeleteIpamPoolInput, DeleteIpamPoolOutput, - DeleteIpamPrefixListResolverInput, DeleteIpamPrefixListResolverOutput, - DeleteIpamPrefixListResolverTargetInput, DeleteIpamPrefixListResolverTargetOutput, - DeleteIpamResourceDiscoveryInput, DeleteIpamResourceDiscoveryOutput, - DeleteIpamRoutingPolicyRegistrationInput, DeleteIpamRoutingPolicyRegistrationOutput, - DeleteIpamScopeInput, DeleteIpamScopeOutput, - DeleteKeyPairInput, DeleteKeyPairOutput, - DeleteLaunchTemplateInput, DeleteLaunchTemplateOutput, - DeleteLaunchTemplateVersionsInput, DeleteLaunchTemplateVersionsOutput, - DeleteLocalGatewayRouteInput, DeleteLocalGatewayRouteOutput, - DeleteLocalGatewayRouteTableInput, DeleteLocalGatewayRouteTableOutput, - DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, - DeleteLocalGatewayRouteTableVpcAssociationInput, DeleteLocalGatewayRouteTableVpcAssociationOutput, - DeleteLocalGatewayVirtualInterfaceGroupInput, DeleteLocalGatewayVirtualInterfaceGroupOutput, - DeleteLocalGatewayVirtualInterfaceInput, DeleteLocalGatewayVirtualInterfaceOutput, - DeleteManagedPrefixListInput, DeleteManagedPrefixListOutput, - DeleteNatGatewayInput, DeleteNatGatewayOutput, - DeleteNetworkAclEntryInput, DeleteNetworkAclEntryOutput, - DeleteNetworkAclInput, DeleteNetworkAclOutput, - DeleteNetworkInsightsAccessScopeAnalysisInput, DeleteNetworkInsightsAccessScopeAnalysisOutput, - DeleteNetworkInsightsAccessScopeInput, DeleteNetworkInsightsAccessScopeOutput, - DeleteNetworkInsightsAnalysisInput, DeleteNetworkInsightsAnalysisOutput, - DeleteNetworkInsightsPathInput, DeleteNetworkInsightsPathOutput, - DeleteNetworkInterfaceInput, DeleteNetworkInterfaceOutput, - DeleteNetworkInterfacePermissionInput, DeleteNetworkInterfacePermissionOutput, - DeletePlacementGroupInput, DeletePlacementGroupOutput, - DeletePublicIpv4PoolInput, DeletePublicIpv4PoolOutput, - DeleteQueuedReservedInstancesInput, DeleteQueuedReservedInstancesOutput, - DeleteRouteInput, DeleteRouteOutput, - DeleteRouteServerEndpointInput, DeleteRouteServerEndpointOutput, - DeleteRouteServerInput, DeleteRouteServerOutput, - DeleteRouteServerPeerInput, DeleteRouteServerPeerOutput, - DeleteRouteTableInput, DeleteRouteTableOutput, - DeleteSecondaryNetworkInput, DeleteSecondaryNetworkOutput, - DeleteSecondarySubnetInput, DeleteSecondarySubnetOutput, - DeleteSecurityGroupInput, DeleteSecurityGroupOutput, - DeleteSnapshotInput, DeleteSnapshotOutput, - DeleteSpotDatafeedSubscriptionInput, DeleteSpotDatafeedSubscriptionOutput, - DeleteSubnetCidrReservationInput, DeleteSubnetCidrReservationOutput, - DeleteSubnetInput, DeleteSubnetOutput, - DeleteTagsInput, DeleteTagsOutput, - DeleteTrafficMirrorFilterInput, DeleteTrafficMirrorFilterOutput, - DeleteTrafficMirrorFilterRuleInput, DeleteTrafficMirrorFilterRuleOutput, - DeleteTrafficMirrorSessionInput, DeleteTrafficMirrorSessionOutput, - DeleteTrafficMirrorTargetInput, DeleteTrafficMirrorTargetOutput, - DeleteTransitGatewayClientVpnAttachmentInput, DeleteTransitGatewayClientVpnAttachmentOutput, - DeleteTransitGatewayConnectInput, DeleteTransitGatewayConnectOutput, - DeleteTransitGatewayConnectPeerInput, DeleteTransitGatewayConnectPeerOutput, - DeleteTransitGatewayInput, - DeleteTransitGatewayMeteringPolicyEntryInput, DeleteTransitGatewayMeteringPolicyEntryOutput, - DeleteTransitGatewayMeteringPolicyInput, DeleteTransitGatewayMeteringPolicyOutput, - DeleteTransitGatewayMulticastDomainInput, DeleteTransitGatewayMulticastDomainOutput, DeleteTransitGatewayOutput, - DeleteTransitGatewayPeeringAttachmentInput, DeleteTransitGatewayPeeringAttachmentOutput, - DeleteTransitGatewayPolicyTableEntryInput, DeleteTransitGatewayPolicyTableEntryOutput, - DeleteTransitGatewayPolicyTableInput, DeleteTransitGatewayPolicyTableOutput, - DeleteTransitGatewayPrefixListReferenceInput, DeleteTransitGatewayPrefixListReferenceOutput, - DeleteTransitGatewayRouteInput, DeleteTransitGatewayRouteOutput, - DeleteTransitGatewayRouteTableAnnouncementInput, DeleteTransitGatewayRouteTableAnnouncementOutput, - DeleteTransitGatewayRouteTableInput, DeleteTransitGatewayRouteTableOutput, - DeleteTransitGatewayVpcAttachmentInput, DeleteTransitGatewayVpcAttachmentOutput, - DeleteVerifiedAccessEndpointInput, DeleteVerifiedAccessEndpointOutput, - DeleteVerifiedAccessGroupInput, DeleteVerifiedAccessGroupOutput, - DeleteVerifiedAccessInstanceInput, DeleteVerifiedAccessInstanceOutput, - DeleteVerifiedAccessTrustProviderInput, DeleteVerifiedAccessTrustProviderOutput, - DeleteVolumeInput, DeleteVolumeOutput, - DeleteVpcBlockPublicAccessExclusionInput, DeleteVpcBlockPublicAccessExclusionOutput, - DeleteVpcEncryptionControlInput, DeleteVpcEncryptionControlOutput, - DeleteVpcEndpointConnectionNotificationsInput, DeleteVpcEndpointConnectionNotificationsOutput, - DeleteVpcEndpointServiceConfigurationsInput, DeleteVpcEndpointServiceConfigurationsOutput, - DeleteVpcEndpointsInput, DeleteVpcEndpointsOutput, - DeleteVpcInput, DeleteVpcOutput, - DeleteVpcPeeringConnectionInput, DeleteVpcPeeringConnectionOutput, - DeleteVpnConcentratorInput, DeleteVpnConcentratorOutput, - DeleteVpnConnectionInput, DeleteVpnConnectionOutput, - DeleteVpnConnectionRouteInput, DeleteVpnConnectionRouteOutput, - DeleteVpnGatewayInput, DeleteVpnGatewayOutput, - DeprovisionByoipCidrInput, DeprovisionByoipCidrOutput, - DeprovisionIpamByoasnInput, DeprovisionIpamByoasnOutput, - DeprovisionIpamPoolCidrInput, DeprovisionIpamPoolCidrOutput, - DeprovisionPublicIpv4PoolCidrInput, DeprovisionPublicIpv4PoolCidrOutput, - DeregisterImageInput, DeregisterImageOutput, - DeregisterInstanceEventNotificationAttributesInput, DeregisterInstanceEventNotificationAttributesOutput, - DeregisterTransitGatewayMulticastGroupMembersInput, DeregisterTransitGatewayMulticastGroupMembersOutput, - DeregisterTransitGatewayMulticastGroupSourcesInput, DeregisterTransitGatewayMulticastGroupSourcesOutput, - DescribeAccountAttributesInput, DescribeAccountAttributesOutput, - DescribeAccountVpcEncryptionControlInput, DescribeAccountVpcEncryptionControlOutput, - DescribeAddressTransfersInput, DescribeAddressTransfersOutput, - DescribeAddressesAttributeInput, DescribeAddressesAttributeOutput, - DescribeAddressesInput, DescribeAddressesOutput, - DescribeAggregateIdFormatInput, DescribeAggregateIdFormatOutput, - DescribeApplicationStatusCheckAssociationsInput, DescribeApplicationStatusCheckAssociationsOutput, - DescribeApplicationStatusChecksInput, DescribeApplicationStatusChecksOutput, - DescribeApplicationStatusInput, DescribeApplicationStatusOutput, - DescribeAvailabilityZonesInput, DescribeAvailabilityZonesOutput, - DescribeAwsNetworkPerformanceMetricSubscriptionsInput, DescribeAwsNetworkPerformanceMetricSubscriptionsOutput, - DescribeBundleTasksInput, DescribeBundleTasksOutput, - DescribeByoipCidrsInput, DescribeByoipCidrsOutput, - DescribeCapacityBlockExtensionHistoryInput, DescribeCapacityBlockExtensionHistoryOutput, - DescribeCapacityBlockExtensionOfferingsInput, DescribeCapacityBlockExtensionOfferingsOutput, - DescribeCapacityBlockOfferingsInput, DescribeCapacityBlockOfferingsOutput, - DescribeCapacityBlockStatusInput, DescribeCapacityBlockStatusOutput, - DescribeCapacityBlocksInput, DescribeCapacityBlocksOutput, - DescribeCapacityManagerDataExportsInput, DescribeCapacityManagerDataExportsOutput, - DescribeCapacityReservationBillingRequestsInput, DescribeCapacityReservationBillingRequestsOutput, - DescribeCapacityReservationCancellationQuotesInput, DescribeCapacityReservationCancellationQuotesOutput, - DescribeCapacityReservationDateChangeQuotesInput, DescribeCapacityReservationDateChangeQuotesOutput, - DescribeCapacityReservationFleetsInput, DescribeCapacityReservationFleetsOutput, - DescribeCapacityReservationTopologyInput, DescribeCapacityReservationTopologyOutput, - DescribeCapacityReservationsInput, DescribeCapacityReservationsOutput, - DescribeCarrierGatewaysInput, DescribeCarrierGatewaysOutput, - DescribeClassicLinkInstancesInput, DescribeClassicLinkInstancesOutput, - DescribeClientVpnAuthorizationRulesInput, DescribeClientVpnAuthorizationRulesOutput, - DescribeClientVpnConnectionsInput, DescribeClientVpnConnectionsOutput, - DescribeClientVpnEndpointsInput, DescribeClientVpnEndpointsOutput, - DescribeClientVpnRoutesInput, DescribeClientVpnRoutesOutput, - DescribeClientVpnTargetNetworksInput, DescribeClientVpnTargetNetworksOutput, - DescribeCoipPoolsInput, DescribeCoipPoolsOutput, - DescribeConversionTasksInput, DescribeConversionTasksOutput, - DescribeCustomerGatewaysInput, DescribeCustomerGatewaysOutput, - DescribeDeclarativePoliciesReportsInput, DescribeDeclarativePoliciesReportsOutput, - DescribeDhcpOptionsInput, DescribeDhcpOptionsOutput, - DescribeEgressOnlyInternetGatewaysInput, DescribeEgressOnlyInternetGatewaysOutput, - DescribeElasticGpusInput, DescribeElasticGpusOutput, - DescribeExportImageTasksInput, DescribeExportImageTasksOutput, - DescribeExportTasksInput, DescribeExportTasksOutput, - DescribeFastLaunchImagesInput, DescribeFastLaunchImagesOutput, - DescribeFastSnapshotRestoresInput, DescribeFastSnapshotRestoresOutput, - DescribeFleetHistoryInput, DescribeFleetHistoryOutput, - DescribeFleetInstancesInput, DescribeFleetInstancesOutput, - DescribeFleetsInput, DescribeFleetsOutput, - DescribeFlowLogsInput, DescribeFlowLogsOutput, - DescribeFpgaImageAttributeInput, DescribeFpgaImageAttributeOutput, - DescribeFpgaImagesInput, DescribeFpgaImagesOutput, - DescribeHostReservationOfferingsInput, DescribeHostReservationOfferingsOutput, - DescribeHostReservationsInput, DescribeHostReservationsOutput, - DescribeHostsInput, DescribeHostsOutput, - DescribeIamInstanceProfileAssociationsInput, DescribeIamInstanceProfileAssociationsOutput, - DescribeIdFormatInput, DescribeIdFormatOutput, - DescribeIdentityIdFormatInput, DescribeIdentityIdFormatOutput, - DescribeImageAttributeInput, DescribeImageAttributeOutput, - DescribeImageReferencesInput, DescribeImageReferencesOutput, - DescribeImageUsageReportEntriesInput, DescribeImageUsageReportEntriesOutput, - DescribeImageUsageReportsInput, DescribeImageUsageReportsOutput, - DescribeImagesInput, DescribeImagesOutput, - DescribeImportImageTasksInput, DescribeImportImageTasksOutput, - DescribeImportSnapshotTasksInput, DescribeImportSnapshotTasksOutput, - DescribeInstanceAttributeInput, DescribeInstanceAttributeOutput, - DescribeInstanceConnectEndpointsInput, DescribeInstanceConnectEndpointsOutput, - DescribeInstanceCreditSpecificationsInput, DescribeInstanceCreditSpecificationsOutput, - DescribeInstanceEventNotificationAttributesInput, DescribeInstanceEventNotificationAttributesOutput, - DescribeInstanceEventWindowsInput, DescribeInstanceEventWindowsOutput, - DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput, - DescribeInstanceSqlHaHistoryStatesInput, DescribeInstanceSqlHaHistoryStatesOutput, - DescribeInstanceSqlHaStatesInput, DescribeInstanceSqlHaStatesOutput, - DescribeInstanceStatusInput, DescribeInstanceStatusOutput, - DescribeInstanceTopologyInput, DescribeInstanceTopologyOutput, - DescribeInstanceTypeOfferingsInput, DescribeInstanceTypeOfferingsOutput, - DescribeInstanceTypesInput, DescribeInstanceTypesOutput, - DescribeInstancesInput, DescribeInstancesOutput, - DescribeInternetGatewaysInput, DescribeInternetGatewaysOutput, - DescribeIpamByoasnInput, DescribeIpamByoasnOutput, - DescribeIpamExternalResourceVerificationTokensInput, DescribeIpamExternalResourceVerificationTokensOutput, - DescribeIpamInternetRegistryAssociationsInput, DescribeIpamInternetRegistryAssociationsOutput, - DescribeIpamPoliciesInput, DescribeIpamPoliciesOutput, - DescribeIpamPoolAllocationsInput, DescribeIpamPoolAllocationsOutput, - DescribeIpamPoolsInput, DescribeIpamPoolsOutput, - DescribeIpamPrefixListResolverTargetsInput, DescribeIpamPrefixListResolverTargetsOutput, - DescribeIpamPrefixListResolversInput, DescribeIpamPrefixListResolversOutput, - DescribeIpamResourceDiscoveriesInput, DescribeIpamResourceDiscoveriesOutput, - DescribeIpamResourceDiscoveryAssociationsInput, DescribeIpamResourceDiscoveryAssociationsOutput, - DescribeIpamScopesInput, DescribeIpamScopesOutput, - DescribeIpamsInput, DescribeIpamsOutput, - DescribeIpv6PoolsInput, DescribeIpv6PoolsOutput, - DescribeKeyPairsInput, DescribeKeyPairsOutput, - DescribeLaunchTemplateVersionsInput, DescribeLaunchTemplateVersionsOutput, - DescribeLaunchTemplatesInput, DescribeLaunchTemplatesOutput, - DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, - DescribeLocalGatewayRouteTableVpcAssociationsInput, DescribeLocalGatewayRouteTableVpcAssociationsOutput, - DescribeLocalGatewayRouteTablesInput, DescribeLocalGatewayRouteTablesOutput, - DescribeLocalGatewayVirtualInterfaceGroupsInput, DescribeLocalGatewayVirtualInterfaceGroupsOutput, - DescribeLocalGatewayVirtualInterfacesInput, DescribeLocalGatewayVirtualInterfacesOutput, - DescribeLocalGatewaysInput, DescribeLocalGatewaysOutput, - DescribeLockedSnapshotsInput, DescribeLockedSnapshotsOutput, - DescribeMacHostsInput, DescribeMacHostsOutput, - DescribeMacModificationTasksInput, DescribeMacModificationTasksOutput, - DescribeManagedPrefixListsInput, DescribeManagedPrefixListsOutput, - DescribeMovingAddressesInput, DescribeMovingAddressesOutput, - DescribeNatGatewaysInput, DescribeNatGatewaysOutput, - DescribeNetworkAclsInput, DescribeNetworkAclsOutput, - DescribeNetworkInsightsAccessScopeAnalysesInput, DescribeNetworkInsightsAccessScopeAnalysesOutput, - DescribeNetworkInsightsAccessScopesInput, DescribeNetworkInsightsAccessScopesOutput, - DescribeNetworkInsightsAnalysesInput, DescribeNetworkInsightsAnalysesOutput, - DescribeNetworkInsightsPathsInput, DescribeNetworkInsightsPathsOutput, - DescribeNetworkInterfaceAttributeInput, DescribeNetworkInterfaceAttributeOutput, - DescribeNetworkInterfacePermissionsInput, DescribeNetworkInterfacePermissionsOutput, - DescribeNetworkInterfacesInput, DescribeNetworkInterfacesOutput, - DescribeOutpostLagsInput, DescribeOutpostLagsOutput, - DescribePlacementGroupsInput, DescribePlacementGroupsOutput, - DescribePrefixListsInput, DescribePrefixListsOutput, - DescribePrincipalIdFormatInput, DescribePrincipalIdFormatOutput, - DescribePublicIpv4PoolsInput, DescribePublicIpv4PoolsOutput, - DescribeRegionsInput, DescribeRegionsOutput, - DescribeReplaceRootVolumeTasksInput, DescribeReplaceRootVolumeTasksOutput, - DescribeReservedInstancesInput, - DescribeReservedInstancesListingsInput, DescribeReservedInstancesListingsOutput, - DescribeReservedInstancesModificationsInput, DescribeReservedInstancesModificationsOutput, - DescribeReservedInstancesOfferingsInput, DescribeReservedInstancesOfferingsOutput, DescribeReservedInstancesOutput, - DescribeRouteServerEndpointsInput, DescribeRouteServerEndpointsOutput, - DescribeRouteServerPeersInput, DescribeRouteServerPeersOutput, - DescribeRouteServersInput, DescribeRouteServersOutput, - DescribeRouteTablesInput, DescribeRouteTablesOutput, - DescribeScheduledInstanceAvailabilityInput, DescribeScheduledInstanceAvailabilityOutput, - DescribeScheduledInstancesInput, DescribeScheduledInstancesOutput, - DescribeSecondaryInterfacesInput, DescribeSecondaryInterfacesOutput, - DescribeSecondaryNetworksInput, DescribeSecondaryNetworksOutput, - DescribeSecondarySubnetsInput, DescribeSecondarySubnetsOutput, - DescribeSecurityGroupReferencesInput, DescribeSecurityGroupReferencesOutput, - DescribeSecurityGroupRulesInput, DescribeSecurityGroupRulesOutput, - DescribeSecurityGroupVpcAssociationsInput, DescribeSecurityGroupVpcAssociationsOutput, - DescribeSecurityGroupsInput, DescribeSecurityGroupsOutput, - DescribeServiceLinkVirtualInterfacesInput, DescribeServiceLinkVirtualInterfacesOutput, - DescribeSnapshotAttributeInput, DescribeSnapshotAttributeOutput, - DescribeSnapshotTierStatusInput, DescribeSnapshotTierStatusOutput, - DescribeSnapshotsInput, DescribeSnapshotsOutput, - DescribeSpotDatafeedSubscriptionInput, DescribeSpotDatafeedSubscriptionOutput, - DescribeSpotFleetInstancesInput, DescribeSpotFleetInstancesOutput, - DescribeSpotFleetRequestHistoryInput, DescribeSpotFleetRequestHistoryOutput, - DescribeSpotFleetRequestsInput, DescribeSpotFleetRequestsOutput, - DescribeSpotInstanceRequestsInput, DescribeSpotInstanceRequestsOutput, - DescribeSpotPriceHistoryInput, DescribeSpotPriceHistoryOutput, - DescribeStaleSecurityGroupsInput, DescribeStaleSecurityGroupsOutput, - DescribeStoreImageTasksInput, DescribeStoreImageTasksOutput, - DescribeSubnetsInput, DescribeSubnetsOutput, - DescribeTagsInput, DescribeTagsOutput, - DescribeTrafficMirrorFilterRulesInput, DescribeTrafficMirrorFilterRulesOutput, - DescribeTrafficMirrorFiltersInput, DescribeTrafficMirrorFiltersOutput, - DescribeTrafficMirrorSessionsInput, DescribeTrafficMirrorSessionsOutput, - DescribeTrafficMirrorTargetsInput, DescribeTrafficMirrorTargetsOutput, - DescribeTransitGatewayAttachmentsInput, DescribeTransitGatewayAttachmentsOutput, - DescribeTransitGatewayConnectPeersInput, DescribeTransitGatewayConnectPeersOutput, - DescribeTransitGatewayConnectsInput, DescribeTransitGatewayConnectsOutput, - DescribeTransitGatewayMeteringPoliciesInput, DescribeTransitGatewayMeteringPoliciesOutput, - DescribeTransitGatewayMulticastDomainsInput, DescribeTransitGatewayMulticastDomainsOutput, - DescribeTransitGatewayPeeringAttachmentsInput, DescribeTransitGatewayPeeringAttachmentsOutput, - DescribeTransitGatewayPolicyTablesInput, DescribeTransitGatewayPolicyTablesOutput, - DescribeTransitGatewayRouteTableAnnouncementsInput, DescribeTransitGatewayRouteTableAnnouncementsOutput, - DescribeTransitGatewayRouteTablesInput, DescribeTransitGatewayRouteTablesOutput, - DescribeTransitGatewayVpcAttachmentsInput, DescribeTransitGatewayVpcAttachmentsOutput, - DescribeTransitGatewaysInput, DescribeTransitGatewaysOutput, - DescribeTrunkInterfaceAssociationsInput, DescribeTrunkInterfaceAssociationsOutput, - DescribeVerifiedAccessEndpointsInput, DescribeVerifiedAccessEndpointsOutput, - DescribeVerifiedAccessGroupsInput, DescribeVerifiedAccessGroupsOutput, - DescribeVerifiedAccessInstanceLoggingConfigurationsInput, DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, - DescribeVerifiedAccessInstancesInput, DescribeVerifiedAccessInstancesOutput, - DescribeVerifiedAccessTrustProvidersInput, DescribeVerifiedAccessTrustProvidersOutput, - DescribeVolumeAttributeInput, DescribeVolumeAttributeOutput, - DescribeVolumeStatusInput, DescribeVolumeStatusOutput, - DescribeVolumesInput, - DescribeVolumesModificationsInput, DescribeVolumesModificationsOutput, DescribeVolumesOutput, - DescribeVpcAttributeInput, DescribeVpcAttributeOutput, - DescribeVpcBlockPublicAccessExclusionsInput, DescribeVpcBlockPublicAccessExclusionsOutput, - DescribeVpcBlockPublicAccessOptionsInput, DescribeVpcBlockPublicAccessOptionsOutput, - DescribeVpcClassicLinkDnsSupportInput, DescribeVpcClassicLinkDnsSupportOutput, - DescribeVpcClassicLinkInput, DescribeVpcClassicLinkOutput, - DescribeVpcEncryptionControlsInput, DescribeVpcEncryptionControlsOutput, - DescribeVpcEndpointAssociationsInput, DescribeVpcEndpointAssociationsOutput, - DescribeVpcEndpointConnectionNotificationsInput, DescribeVpcEndpointConnectionNotificationsOutput, - DescribeVpcEndpointConnectionsInput, DescribeVpcEndpointConnectionsOutput, - DescribeVpcEndpointServiceConfigurationsInput, DescribeVpcEndpointServiceConfigurationsOutput, - DescribeVpcEndpointServicePermissionsInput, DescribeVpcEndpointServicePermissionsOutput, - DescribeVpcEndpointServicesInput, DescribeVpcEndpointServicesOutput, - DescribeVpcEndpointsInput, DescribeVpcEndpointsOutput, - DescribeVpcPeeringConnectionsInput, DescribeVpcPeeringConnectionsOutput, - DescribeVpcsInput, DescribeVpcsOutput, - DescribeVpnConcentratorsInput, DescribeVpnConcentratorsOutput, - DescribeVpnConnectionsInput, DescribeVpnConnectionsOutput, - DescribeVpnGatewaysInput, DescribeVpnGatewaysOutput, - DetachClassicLinkVpcInput, DetachClassicLinkVpcOutput, - DetachImageWatermarkInput, DetachImageWatermarkOutput, - DetachInternetGatewayInput, DetachInternetGatewayOutput, - DetachNetworkInterfaceInput, DetachNetworkInterfaceOutput, - DetachVerifiedAccessTrustProviderInput, DetachVerifiedAccessTrustProviderOutput, - DetachVolumeInput, DetachVolumeOutput, - DetachVpnGatewayInput, DetachVpnGatewayOutput, - DisableAddressTransferInput, DisableAddressTransferOutput, - DisableAllowedImagesSettingsInput, DisableAllowedImagesSettingsOutput, - DisableApplicationStatusCheckSuppressionInput, DisableApplicationStatusCheckSuppressionOutput, - DisableAwsNetworkPerformanceMetricSubscriptionInput, DisableAwsNetworkPerformanceMetricSubscriptionOutput, - DisableCapacityManagerInput, DisableCapacityManagerOutput, - DisableEbsEncryptionByDefaultInput, DisableEbsEncryptionByDefaultOutput, - DisableFastLaunchInput, DisableFastLaunchOutput, - DisableFastSnapshotRestoresInput, DisableFastSnapshotRestoresOutput, - DisableImageBlockPublicAccessInput, DisableImageBlockPublicAccessOutput, - DisableImageDeprecationInput, DisableImageDeprecationOutput, - DisableImageDeregistrationProtectionInput, DisableImageDeregistrationProtectionOutput, - DisableImageInput, DisableImageOutput, - DisableInstanceSqlHaStandbyDetectionsInput, DisableInstanceSqlHaStandbyDetectionsOutput, - DisableIpamOrganizationAdminAccountInput, DisableIpamOrganizationAdminAccountOutput, - DisableIpamPolicyInput, DisableIpamPolicyOutput, - DisableRouteServerPropagationInput, DisableRouteServerPropagationOutput, - DisableSerialConsoleAccessInput, DisableSerialConsoleAccessOutput, - DisableSnapshotBlockPublicAccessInput, DisableSnapshotBlockPublicAccessOutput, - DisableTransitGatewayRouteTablePropagationInput, DisableTransitGatewayRouteTablePropagationOutput, - DisableVgwRoutePropagationInput, DisableVgwRoutePropagationOutput, - DisableVpcClassicLinkDnsSupportInput, DisableVpcClassicLinkDnsSupportOutput, - DisableVpcClassicLinkInput, DisableVpcClassicLinkOutput, - DisassociateAddressInput, DisassociateAddressOutput, - DisassociateApplicationStatusCheckInput, DisassociateApplicationStatusCheckOutput, - DisassociateCapacityReservationBillingOwnerInput, DisassociateCapacityReservationBillingOwnerOutput, - DisassociateClientVpnTargetNetworkInput, DisassociateClientVpnTargetNetworkOutput, - DisassociateEnclaveCertificateIamRoleInput, DisassociateEnclaveCertificateIamRoleOutput, - DisassociateIamInstanceProfileInput, DisassociateIamInstanceProfileOutput, - DisassociateInstanceEventWindowInput, DisassociateInstanceEventWindowOutput, - DisassociateIpamByoasnInput, DisassociateIpamByoasnOutput, - DisassociateIpamResourceDiscoveryInput, DisassociateIpamResourceDiscoveryOutput, - DisassociateNatGatewayAddressInput, DisassociateNatGatewayAddressOutput, - DisassociateRouteServerInput, DisassociateRouteServerOutput, - DisassociateRouteTableInput, DisassociateRouteTableOutput, - DisassociateSecurityGroupVpcInput, DisassociateSecurityGroupVpcOutput, - DisassociateSubnetCidrBlockInput, DisassociateSubnetCidrBlockOutput, - DisassociateTransitGatewayMulticastDomainInput, DisassociateTransitGatewayMulticastDomainOutput, - DisassociateTransitGatewayPolicyTableInput, DisassociateTransitGatewayPolicyTableOutput, - DisassociateTransitGatewayRouteTableInput, DisassociateTransitGatewayRouteTableOutput, - DisassociateTrunkInterfaceInput, DisassociateTrunkInterfaceOutput, - DisassociateVpcCidrBlockInput, DisassociateVpcCidrBlockOutput, - EnableAddressTransferInput, EnableAddressTransferOutput, - EnableAllowedImagesSettingsInput, EnableAllowedImagesSettingsOutput, - EnableApplicationStatusCheckSuppressionInput, EnableApplicationStatusCheckSuppressionOutput, - EnableAwsNetworkPerformanceMetricSubscriptionInput, EnableAwsNetworkPerformanceMetricSubscriptionOutput, - EnableCapacityManagerInput, EnableCapacityManagerOutput, - EnableEbsEncryptionByDefaultInput, EnableEbsEncryptionByDefaultOutput, - EnableFastLaunchInput, EnableFastLaunchOutput, - EnableFastSnapshotRestoresInput, EnableFastSnapshotRestoresOutput, - EnableImageBlockPublicAccessInput, EnableImageBlockPublicAccessOutput, - EnableImageDeprecationInput, EnableImageDeprecationOutput, - EnableImageDeregistrationProtectionInput, EnableImageDeregistrationProtectionOutput, - EnableImageInput, EnableImageOutput, - EnableInstanceSqlHaStandbyDetectionsInput, EnableInstanceSqlHaStandbyDetectionsOutput, - EnableIpamInternetRegistryAssociationInput, EnableIpamInternetRegistryAssociationOutput, - EnableIpamOrganizationAdminAccountInput, EnableIpamOrganizationAdminAccountOutput, - EnableIpamPolicyInput, EnableIpamPolicyOutput, - EnableReachabilityAnalyzerOrganizationSharingInput, EnableReachabilityAnalyzerOrganizationSharingOutput, - EnableRouteServerPropagationInput, EnableRouteServerPropagationOutput, - EnableSerialConsoleAccessInput, EnableSerialConsoleAccessOutput, - EnableSnapshotBlockPublicAccessInput, EnableSnapshotBlockPublicAccessOutput, - EnableTransitGatewayRouteTablePropagationInput, EnableTransitGatewayRouteTablePropagationOutput, - EnableVgwRoutePropagationInput, EnableVgwRoutePropagationOutput, - EnableVolumeIOInput, EnableVolumeIOOutput, - EnableVpcClassicLinkDnsSupportInput, EnableVpcClassicLinkDnsSupportOutput, - EnableVpcClassicLinkInput, EnableVpcClassicLinkOutput, - ExportClientVpnClientCertificateRevocationListInput, ExportClientVpnClientCertificateRevocationListOutput, - ExportClientVpnClientConfigurationInput, ExportClientVpnClientConfigurationOutput, - ExportImageInput, ExportImageOutput, - ExportTransitGatewayRoutesInput, ExportTransitGatewayRoutesOutput, - ExportVerifiedAccessInstanceClientConfigurationInput, ExportVerifiedAccessInstanceClientConfigurationOutput, - GetActiveVpnTunnelStatusInput, GetActiveVpnTunnelStatusOutput, - GetAllowedImagesSettingsInput, GetAllowedImagesSettingsOutput, - GetAssociatedEnclaveCertificateIamRolesInput, GetAssociatedEnclaveCertificateIamRolesOutput, - GetAssociatedIpv6PoolCidrsInput, GetAssociatedIpv6PoolCidrsOutput, - GetAwsNetworkPerformanceDataInput, GetAwsNetworkPerformanceDataOutput, - GetCapacityManagerAttributesInput, GetCapacityManagerAttributesOutput, - GetCapacityManagerMetricDataInput, GetCapacityManagerMetricDataOutput, - GetCapacityManagerMetricDimensionsInput, GetCapacityManagerMetricDimensionsOutput, - GetCapacityManagerMonitoredTagKeysInput, GetCapacityManagerMonitoredTagKeysOutput, - GetCapacityManagerSupportabilityScoresInput, GetCapacityManagerSupportabilityScoresOutput, - GetCapacityReservationUsageInput, GetCapacityReservationUsageOutput, - GetClientVpnEndpointAuthorizationPolicyInput, GetClientVpnEndpointAuthorizationPolicyOutput, - GetCoipPoolUsageInput, GetCoipPoolUsageOutput, - GetConsoleOutputInput, GetConsoleOutputOutput, - GetConsoleScreenshotInput, GetConsoleScreenshotOutput, - GetDeclarativePoliciesReportSummaryInput, GetDeclarativePoliciesReportSummaryOutput, - GetDefaultCreditSpecificationInput, GetDefaultCreditSpecificationOutput, - GetEbsDefaultKmsKeyIdInput, GetEbsDefaultKmsKeyIdOutput, - GetEbsEncryptionByDefaultInput, GetEbsEncryptionByDefaultOutput, - GetEnabledIpamPolicyInput, GetEnabledIpamPolicyOutput, - GetFlowLogsIntegrationTemplateInput, GetFlowLogsIntegrationTemplateOutput, - GetGroupsForCapacityReservationInput, GetGroupsForCapacityReservationOutput, - GetHostReservationPurchasePreviewInput, GetHostReservationPurchasePreviewOutput, - GetImageAncestryInput, GetImageAncestryOutput, - GetImageBlockPublicAccessStateInput, GetImageBlockPublicAccessStateOutput, - GetImageFindingsInput, GetImageFindingsOutput, - GetInstanceMetadataDefaultsInput, GetInstanceMetadataDefaultsOutput, - GetInstanceTpmEkPubInput, GetInstanceTpmEkPubOutput, - GetInstanceTypesFromInstanceRequirementsInput, GetInstanceTypesFromInstanceRequirementsOutput, - GetInstanceUefiDataInput, GetInstanceUefiDataOutput, - GetIpamAddressHistoryInput, GetIpamAddressHistoryOutput, - GetIpamDiscoveredAccountsInput, GetIpamDiscoveredAccountsOutput, - GetIpamDiscoveredPublicAddressesInput, GetIpamDiscoveredPublicAddressesOutput, - GetIpamDiscoveredResourceCidrsInput, GetIpamDiscoveredResourceCidrsOutput, - GetIpamDiscoveredRoutesInput, GetIpamDiscoveredRoutesOutput, - GetIpamInternetRegistryAssociationAsnsInput, GetIpamInternetRegistryAssociationAsnsOutput, - GetIpamInternetRegistryAssociationCidrsInput, GetIpamInternetRegistryAssociationCidrsOutput, - GetIpamPolicyAllocationRulesInput, GetIpamPolicyAllocationRulesOutput, - GetIpamPolicyOrganizationTargetsInput, GetIpamPolicyOrganizationTargetsOutput, - GetIpamPoolAllocationsInput, GetIpamPoolAllocationsOutput, - GetIpamPoolCidrsInput, GetIpamPoolCidrsOutput, - GetIpamPrefixListResolverRulesInput, GetIpamPrefixListResolverRulesOutput, - GetIpamPrefixListResolverVersionEntriesInput, GetIpamPrefixListResolverVersionEntriesOutput, - GetIpamPrefixListResolverVersionsInput, GetIpamPrefixListResolverVersionsOutput, - GetIpamResourceCidrsInput, GetIpamResourceCidrsOutput, - GetIpamRouteOriginAuthorizationsInput, GetIpamRouteOriginAuthorizationsOutput, - GetIpamRouteProtectionFindingsInput, GetIpamRouteProtectionFindingsOutput, - GetIpamRoutingPolicyRegistrationDeltasInput, GetIpamRoutingPolicyRegistrationDeltasOutput, - GetIpamRoutingPolicyRegistrationsInput, GetIpamRoutingPolicyRegistrationsOutput, - GetLaunchTemplateDataInput, GetLaunchTemplateDataOutput, - GetManagedPrefixListAssociationsInput, GetManagedPrefixListAssociationsOutput, - GetManagedPrefixListEntriesInput, GetManagedPrefixListEntriesOutput, - GetManagedResourceVisibilityInput, GetManagedResourceVisibilityOutput, - GetNetworkInsightsAccessScopeAnalysisFindingsInput, GetNetworkInsightsAccessScopeAnalysisFindingsOutput, - GetNetworkInsightsAccessScopeContentInput, GetNetworkInsightsAccessScopeContentOutput, - GetPasswordDataInput, GetPasswordDataOutput, - GetReservedInstancesExchangeQuoteInput, GetReservedInstancesExchangeQuoteOutput, - GetRouteServerAssociationsInput, GetRouteServerAssociationsOutput, - GetRouteServerPropagationsInput, GetRouteServerPropagationsOutput, - GetRouteServerRoutingDatabaseInput, GetRouteServerRoutingDatabaseOutput, - GetSecurityGroupsForVpcInput, GetSecurityGroupsForVpcOutput, - GetSerialConsoleAccessStatusInput, GetSerialConsoleAccessStatusOutput, - GetSnapshotBlockPublicAccessStateInput, GetSnapshotBlockPublicAccessStateOutput, - GetSpotPlacementScoresInput, GetSpotPlacementScoresOutput, - GetSubnetCidrReservationsInput, GetSubnetCidrReservationsOutput, - GetTransitGatewayAttachmentNatConfigurationInput, GetTransitGatewayAttachmentNatConfigurationOutput, - GetTransitGatewayAttachmentPropagationsInput, GetTransitGatewayAttachmentPropagationsOutput, - GetTransitGatewayMeteringPolicyEntriesInput, GetTransitGatewayMeteringPolicyEntriesOutput, - GetTransitGatewayMulticastDomainAssociationsInput, GetTransitGatewayMulticastDomainAssociationsOutput, - GetTransitGatewayPolicyTableAssociationsInput, GetTransitGatewayPolicyTableAssociationsOutput, - GetTransitGatewayPolicyTableEntriesInput, GetTransitGatewayPolicyTableEntriesOutput, - GetTransitGatewayPrefixListReferencesInput, GetTransitGatewayPrefixListReferencesOutput, - GetTransitGatewayRouteTableAssociationsInput, GetTransitGatewayRouteTableAssociationsOutput, - GetTransitGatewayRouteTablePropagationsInput, GetTransitGatewayRouteTablePropagationsOutput, - GetVerifiedAccessEndpointPolicyInput, GetVerifiedAccessEndpointPolicyOutput, - GetVerifiedAccessEndpointTargetsInput, GetVerifiedAccessEndpointTargetsOutput, - GetVerifiedAccessGroupPolicyInput, GetVerifiedAccessGroupPolicyOutput, - GetVpcResourcesBlockingEncryptionEnforcementInput, GetVpcResourcesBlockingEncryptionEnforcementOutput, - GetVpnConnectionDeviceSampleConfigurationInput, GetVpnConnectionDeviceSampleConfigurationOutput, - GetVpnConnectionDeviceTypesInput, GetVpnConnectionDeviceTypesOutput, - GetVpnTunnelReplacementStatusInput, GetVpnTunnelReplacementStatusOutput, - ImportClientVpnClientCertificateRevocationListInput, ImportClientVpnClientCertificateRevocationListOutput, - ImportImageInput, ImportImageOutput, - ImportInstanceInput, ImportInstanceOutput, - ImportKeyPairInput, ImportKeyPairOutput, - ImportSnapshotInput, ImportSnapshotOutput, - ImportVolumeInput, ImportVolumeOutput, - ListImagesInRecycleBinInput, ListImagesInRecycleBinOutput, - ListSnapshotsInRecycleBinInput, ListSnapshotsInRecycleBinOutput, - ListVolumesInRecycleBinInput, ListVolumesInRecycleBinOutput, - LockSnapshotInput, LockSnapshotOutput, - ModifyAccountVpcEncryptionControlInput, ModifyAccountVpcEncryptionControlOutput, - ModifyAddressAttributeInput, ModifyAddressAttributeOutput, - ModifyApplicationStatusCheckInput, ModifyApplicationStatusCheckOutput, - ModifyAvailabilityZoneGroupInput, ModifyAvailabilityZoneGroupOutput, - ModifyCapacityReservationFleetInput, ModifyCapacityReservationFleetOutput, - ModifyCapacityReservationInput, ModifyCapacityReservationOutput, - ModifyClientVpnEndpointAuthorizationPolicyInput, ModifyClientVpnEndpointAuthorizationPolicyOutput, - ModifyClientVpnEndpointInput, ModifyClientVpnEndpointOutput, - ModifyDefaultCreditSpecificationInput, ModifyDefaultCreditSpecificationOutput, - ModifyEbsDefaultKmsKeyIdInput, ModifyEbsDefaultKmsKeyIdOutput, - ModifyFleetInput, ModifyFleetOutput, - ModifyFpgaImageAttributeInput, ModifyFpgaImageAttributeOutput, - ModifyHostsInput, ModifyHostsOutput, - ModifyIdFormatInput, ModifyIdFormatOutput, - ModifyIdentityIdFormatInput, ModifyIdentityIdFormatOutput, - ModifyImageAttributeInput, ModifyImageAttributeOutput, - ModifyInstanceAttributeInput, ModifyInstanceAttributeOutput, - ModifyInstanceCapacityReservationAttributesInput, ModifyInstanceCapacityReservationAttributesOutput, - ModifyInstanceConnectEndpointInput, ModifyInstanceConnectEndpointOutput, - ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput, - ModifyInstanceCreditSpecificationInput, ModifyInstanceCreditSpecificationOutput, - ModifyInstanceEventStartTimeInput, ModifyInstanceEventStartTimeOutput, - ModifyInstanceEventWindowInput, ModifyInstanceEventWindowOutput, - ModifyInstanceMaintenanceOptionsInput, ModifyInstanceMaintenanceOptionsOutput, - ModifyInstanceMetadataDefaultsInput, ModifyInstanceMetadataDefaultsOutput, - ModifyInstanceMetadataOptionsInput, ModifyInstanceMetadataOptionsOutput, - ModifyInstanceNetworkPerformanceOptionsInput, ModifyInstanceNetworkPerformanceOptionsOutput, - ModifyInstancePlacementInput, ModifyInstancePlacementOutput, - ModifyIpamInput, ModifyIpamOutput, - ModifyIpamPolicyAllocationRulesInput, ModifyIpamPolicyAllocationRulesOutput, - ModifyIpamPoolAllocationInput, ModifyIpamPoolAllocationOutput, - ModifyIpamPoolInput, ModifyIpamPoolOutput, - ModifyIpamPrefixListResolverInput, ModifyIpamPrefixListResolverOutput, - ModifyIpamPrefixListResolverTargetInput, ModifyIpamPrefixListResolverTargetOutput, - ModifyIpamResourceCidrInput, ModifyIpamResourceCidrOutput, - ModifyIpamResourceDiscoveryInput, ModifyIpamResourceDiscoveryOutput, - ModifyIpamRoutingPolicyRegistrationInput, ModifyIpamRoutingPolicyRegistrationOutput, - ModifyIpamScopeInput, ModifyIpamScopeOutput, - ModifyLaunchTemplateInput, ModifyLaunchTemplateOutput, - ModifyLocalGatewayRouteInput, ModifyLocalGatewayRouteOutput, - ModifyManagedPrefixListInput, ModifyManagedPrefixListOutput, - ModifyManagedResourceVisibilityInput, ModifyManagedResourceVisibilityOutput, - ModifyNetworkInterfaceAttributeInput, ModifyNetworkInterfaceAttributeOutput, - ModifyPrivateDnsNameOptionsInput, ModifyPrivateDnsNameOptionsOutput, - ModifyPublicIpDnsNameOptionsInput, ModifyPublicIpDnsNameOptionsOutput, - ModifyReservedInstancesInput, ModifyReservedInstancesOutput, - ModifyRouteServerInput, ModifyRouteServerOutput, - ModifySecurityGroupRulesInput, ModifySecurityGroupRulesOutput, - ModifySnapshotAttributeInput, ModifySnapshotAttributeOutput, - ModifySnapshotTierInput, ModifySnapshotTierOutput, - ModifySpotFleetRequestInput, ModifySpotFleetRequestOutput, - ModifySubnetAttributeInput, ModifySubnetAttributeOutput, - ModifyTrafficMirrorFilterNetworkServicesInput, ModifyTrafficMirrorFilterNetworkServicesOutput, - ModifyTrafficMirrorFilterRuleInput, ModifyTrafficMirrorFilterRuleOutput, - ModifyTrafficMirrorSessionInput, ModifyTrafficMirrorSessionOutput, - ModifyTransitGatewayAttachmentNatConfigurationInput, ModifyTransitGatewayAttachmentNatConfigurationOutput, - ModifyTransitGatewayInput, - ModifyTransitGatewayMeteringPolicyInput, ModifyTransitGatewayMeteringPolicyOutput, ModifyTransitGatewayOutput, - ModifyTransitGatewayPolicyTableEntryInput, ModifyTransitGatewayPolicyTableEntryOutput, - ModifyTransitGatewayPrefixListReferenceInput, ModifyTransitGatewayPrefixListReferenceOutput, - ModifyTransitGatewayVpcAttachmentInput, ModifyTransitGatewayVpcAttachmentOutput, - ModifyVerifiedAccessEndpointInput, ModifyVerifiedAccessEndpointOutput, - ModifyVerifiedAccessEndpointPolicyInput, ModifyVerifiedAccessEndpointPolicyOutput, - ModifyVerifiedAccessGroupInput, ModifyVerifiedAccessGroupOutput, - ModifyVerifiedAccessGroupPolicyInput, ModifyVerifiedAccessGroupPolicyOutput, - ModifyVerifiedAccessInstanceInput, - ModifyVerifiedAccessInstanceLoggingConfigurationInput, ModifyVerifiedAccessInstanceLoggingConfigurationOutput, ModifyVerifiedAccessInstanceOutput, - ModifyVerifiedAccessTrustProviderInput, ModifyVerifiedAccessTrustProviderOutput, - ModifyVolumeAttributeInput, ModifyVolumeAttributeOutput, - ModifyVolumeInput, ModifyVolumeOutput, - ModifyVpcAttributeInput, ModifyVpcAttributeOutput, - ModifyVpcBlockPublicAccessExclusionInput, ModifyVpcBlockPublicAccessExclusionOutput, - ModifyVpcBlockPublicAccessOptionsInput, ModifyVpcBlockPublicAccessOptionsOutput, - ModifyVpcEncryptionControlInput, ModifyVpcEncryptionControlOutput, - ModifyVpcEndpointConnectionNotificationInput, ModifyVpcEndpointConnectionNotificationOutput, - ModifyVpcEndpointInput, ModifyVpcEndpointOutput, - ModifyVpcEndpointPayerResponsibilityInput, ModifyVpcEndpointPayerResponsibilityOutput, - ModifyVpcEndpointServiceConfigurationInput, ModifyVpcEndpointServiceConfigurationOutput, - ModifyVpcEndpointServicePayerResponsibilityInput, ModifyVpcEndpointServicePayerResponsibilityOutput, - ModifyVpcEndpointServicePermissionsInput, ModifyVpcEndpointServicePermissionsOutput, - ModifyVpcPeeringConnectionOptionsInput, ModifyVpcPeeringConnectionOptionsOutput, - ModifyVpcTenancyInput, ModifyVpcTenancyOutput, - ModifyVpnConnectionInput, - ModifyVpnConnectionOptionsInput, ModifyVpnConnectionOptionsOutput, ModifyVpnConnectionOutput, - ModifyVpnTunnelCertificateInput, ModifyVpnTunnelCertificateOutput, - ModifyVpnTunnelOptionsInput, ModifyVpnTunnelOptionsOutput, - MonitorInstancesInput, MonitorInstancesOutput, - MoveAddressToVpcInput, MoveAddressToVpcOutput, - MoveByoipCidrToIpamInput, MoveByoipCidrToIpamOutput, - MoveCapacityReservationInstancesInput, MoveCapacityReservationInstancesOutput, - ProvisionByoipCidrInput, ProvisionByoipCidrOutput, - ProvisionIpamByoasnInput, ProvisionIpamByoasnOutput, - ProvisionIpamPoolCidrInput, ProvisionIpamPoolCidrOutput, - ProvisionPublicIpv4PoolCidrInput, ProvisionPublicIpv4PoolCidrOutput, - PurchaseCapacityBlockExtensionInput, PurchaseCapacityBlockExtensionOutput, - PurchaseCapacityBlockInput, PurchaseCapacityBlockOutput, - PurchaseHostReservationInput, PurchaseHostReservationOutput, - PurchaseReservedInstancesOfferingInput, PurchaseReservedInstancesOfferingOutput, - PurchaseScheduledInstancesInput, PurchaseScheduledInstancesOutput, - RebootInstancesInput, RebootInstancesOutput, - RegisterImageInput, RegisterImageOutput, - RegisterInstanceEventNotificationAttributesInput, RegisterInstanceEventNotificationAttributesOutput, - RegisterTransitGatewayMulticastGroupMembersInput, RegisterTransitGatewayMulticastGroupMembersOutput, - RegisterTransitGatewayMulticastGroupSourcesInput, RegisterTransitGatewayMulticastGroupSourcesOutput, - RejectCapacityReservationBillingOwnershipInput, RejectCapacityReservationBillingOwnershipOutput, - RejectTransitGatewayClientVpnAttachmentInput, RejectTransitGatewayClientVpnAttachmentOutput, - RejectTransitGatewayMulticastDomainAssociationsInput, RejectTransitGatewayMulticastDomainAssociationsOutput, - RejectTransitGatewayPeeringAttachmentInput, RejectTransitGatewayPeeringAttachmentOutput, - RejectTransitGatewayVpcAttachmentInput, RejectTransitGatewayVpcAttachmentOutput, - RejectVpcEndpointConnectionsInput, RejectVpcEndpointConnectionsOutput, - RejectVpcPeeringConnectionInput, RejectVpcPeeringConnectionOutput, - ReleaseAddressInput, ReleaseAddressOutput, - ReleaseHostsInput, ReleaseHostsOutput, - ReleaseIpamPoolAllocationInput, ReleaseIpamPoolAllocationOutput, - ReplaceIamInstanceProfileAssociationInput, ReplaceIamInstanceProfileAssociationOutput, - ReplaceImageCriteriaInAllowedImagesSettingsInput, ReplaceImageCriteriaInAllowedImagesSettingsOutput, - ReplaceImageInstanceTypeSpecificationInput, ReplaceImageInstanceTypeSpecificationOutput, - ReplaceNetworkAclAssociationInput, ReplaceNetworkAclAssociationOutput, - ReplaceNetworkAclEntryInput, ReplaceNetworkAclEntryOutput, - ReplaceRouteInput, ReplaceRouteOutput, - ReplaceRouteTableAssociationInput, ReplaceRouteTableAssociationOutput, - ReplaceTransitGatewayRouteInput, ReplaceTransitGatewayRouteOutput, - ReplaceVpnTunnelInput, ReplaceVpnTunnelOutput, - ReportInstanceStatusInput, ReportInstanceStatusOutput, - RequestSpotFleetInput, RequestSpotFleetOutput, - RequestSpotInstancesInput, RequestSpotInstancesOutput, - ResetAddressAttributeInput, ResetAddressAttributeOutput, - ResetEbsDefaultKmsKeyIdInput, ResetEbsDefaultKmsKeyIdOutput, - ResetFpgaImageAttributeInput, ResetFpgaImageAttributeOutput, - ResetImageAttributeInput, ResetImageAttributeOutput, - ResetInstanceAttributeInput, ResetInstanceAttributeOutput, - ResetNetworkInterfaceAttributeInput, ResetNetworkInterfaceAttributeOutput, - ResetSnapshotAttributeInput, ResetSnapshotAttributeOutput, - RestoreAddressToClassicInput, RestoreAddressToClassicOutput, - RestoreImageFromRecycleBinInput, RestoreImageFromRecycleBinOutput, - RestoreManagedPrefixListVersionInput, RestoreManagedPrefixListVersionOutput, - RestoreSnapshotFromRecycleBinInput, RestoreSnapshotFromRecycleBinOutput, - RestoreSnapshotTierInput, RestoreSnapshotTierOutput, - RestoreVolumeFromRecycleBinInput, RestoreVolumeFromRecycleBinOutput, - RevokeClientVpnIngressInput, RevokeClientVpnIngressOutput, - RevokeSecurityGroupEgressInput, RevokeSecurityGroupEgressOutput, - RevokeSecurityGroupIngressInput, RevokeSecurityGroupIngressOutput, - RunInstancesInput, RunInstancesOutput, - RunScheduledInstancesInput, RunScheduledInstancesOutput, - SearchLocalGatewayRoutesInput, SearchLocalGatewayRoutesOutput, - SearchTransitGatewayMulticastGroupsInput, SearchTransitGatewayMulticastGroupsOutput, - SearchTransitGatewayRoutesInput, SearchTransitGatewayRoutesOutput, - SendDiagnosticInterruptInput, SendDiagnosticInterruptOutput, - StartDeclarativePoliciesReportInput, StartDeclarativePoliciesReportOutput, - StartInstancesInput, StartInstancesOutput, - StartNetworkInsightsAccessScopeAnalysisInput, StartNetworkInsightsAccessScopeAnalysisOutput, - StartNetworkInsightsAnalysisInput, StartNetworkInsightsAnalysisOutput, - StartVpcEndpointServicePrivateDnsVerificationInput, StartVpcEndpointServicePrivateDnsVerificationOutput, - StopInstancesInput, StopInstancesOutput, - TerminateClientVpnConnectionsInput, TerminateClientVpnConnectionsOutput, - TerminateInstancesInput, TerminateInstancesOutput, - UnassignIpv6AddressesInput, UnassignIpv6AddressesOutput, - UnassignPrivateIpAddressesInput, UnassignPrivateIpAddressesOutput, - UnassignPrivateNatGatewayAddressInput, UnassignPrivateNatGatewayAddressOutput, - UnlockSnapshotInput, UnlockSnapshotOutput, - UnmonitorInstancesInput, UnmonitorInstancesOutput, - UpdateCapacityManagerMonitoredTagKeysInput, UpdateCapacityManagerMonitoredTagKeysOutput, - UpdateCapacityManagerOrganizationsAccessInput, UpdateCapacityManagerOrganizationsAccessOutput, - UpdateInterruptibleCapacityReservationAllocationInput, UpdateInterruptibleCapacityReservationAllocationOutput, - UpdateSecurityGroupRuleDescriptionsEgressInput, UpdateSecurityGroupRuleDescriptionsEgressOutput, - UpdateSecurityGroupRuleDescriptionsIngressInput, UpdateSecurityGroupRuleDescriptionsIngressOutput, - ValidateSecurityGroupQuotasForInterfaceInput, ValidateSecurityGroupQuotasForInterfaceOutput, - WithdrawByoipCidrInput, WithdrawByoipCidrOutput, ) @@ -1690,10 +879,25 @@ class EC2Client(Client[EC2Config]): - [Amazon Web Services SDKs](https://builder.aws.com/build/tools) """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def accept_address_transfer( - self, input: AcceptAddressTransferInput, plugins: list[Plugin] | None = None + self, + request: _models.AcceptAddressTransferInput + | _models.AcceptAddressTransferInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptAddressTransferOutput: ... + + @_overload + def accept_address_transfer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptAddressTransferInputDict], ) -> AcceptAddressTransferOutput: """ Accepts an Elastic IP address transfer. For more information, see @@ -1702,8 +906,6 @@ def accept_address_transfer( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AcceptAddressTransferInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1713,12 +915,34 @@ def accept_address_transfer( Returns: An instance of `AcceptAddressTransferOutput`. """ - return self._invoke(input, _models.ACCEPT_ADDRESS_TRANSFER, [], plugins) + def accept_address_transfer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptAddressTransferOutput: + return self._invoke( + self._select_input(_models.ACCEPT_ADDRESS_TRANSFER, args, kwargs), + _models.ACCEPT_ADDRESS_TRANSFER, + [], + plugins, + ) + + @_overload + def accept_capacity_reservation_billing_ownership( + self, + request: _models.AcceptCapacityReservationBillingOwnershipInput + | _models.AcceptCapacityReservationBillingOwnershipInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptCapacityReservationBillingOwnershipOutput: ... + + @_overload def accept_capacity_reservation_billing_ownership( self, - input: AcceptCapacityReservationBillingOwnershipInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptCapacityReservationBillingOwnershipInputDict], ) -> AcceptCapacityReservationBillingOwnershipOutput: """ Accepts a request to assign billing of the available capacity of a @@ -1727,8 +951,6 @@ def accept_capacity_reservation_billing_ownership( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html). Args: - input: - An instance of `AcceptCapacityReservationBillingOwnershipInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1738,22 +960,42 @@ def accept_capacity_reservation_billing_ownership( Returns: An instance of `AcceptCapacityReservationBillingOwnershipOutput`. """ + + def accept_capacity_reservation_billing_ownership( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptCapacityReservationBillingOwnershipOutput: return self._invoke( - input, _models.ACCEPT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, [], plugins + self._select_input( + _models.ACCEPT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, args, kwargs + ), + _models.ACCEPT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, + [], + plugins, ) + @_overload + def accept_reserved_instances_exchange_quote( + self, + request: _models.AcceptReservedInstancesExchangeQuoteInput + | _models.AcceptReservedInstancesExchangeQuoteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptReservedInstancesExchangeQuoteOutput: ... + + @_overload def accept_reserved_instances_exchange_quote( self, - input: AcceptReservedInstancesExchangeQuoteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptReservedInstancesExchangeQuoteInputDict], ) -> AcceptReservedInstancesExchangeQuoteOutput: """ Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call. Args: - input: - An instance of `AcceptReservedInstancesExchangeQuoteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1763,14 +1005,36 @@ def accept_reserved_instances_exchange_quote( Returns: An instance of `AcceptReservedInstancesExchangeQuoteOutput`. """ + + def accept_reserved_instances_exchange_quote( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptReservedInstancesExchangeQuoteOutput: return self._invoke( - input, _models.ACCEPT_RESERVED_INSTANCES_EXCHANGE_QUOTE, [], plugins + self._select_input( + _models.ACCEPT_RESERVED_INSTANCES_EXCHANGE_QUOTE, args, kwargs + ), + _models.ACCEPT_RESERVED_INSTANCES_EXCHANGE_QUOTE, + [], + plugins, ) + @_overload + def accept_transit_gateway_client_vpn_attachment( + self, + request: _models.AcceptTransitGatewayClientVpnAttachmentInput + | _models.AcceptTransitGatewayClientVpnAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptTransitGatewayClientVpnAttachmentOutput: ... + + @_overload def accept_transit_gateway_client_vpn_attachment( self, - input: AcceptTransitGatewayClientVpnAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptTransitGatewayClientVpnAttachmentInputDict], ) -> AcceptTransitGatewayClientVpnAttachmentOutput: """ Accepts a Transit Gateway attachment request for a Client VPN endpoint. @@ -1778,8 +1042,6 @@ def accept_transit_gateway_client_vpn_attachment( Client VPN endpoint can route traffic through the Transit Gateway. Args: - input: - An instance of `AcceptTransitGatewayClientVpnAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1789,22 +1051,44 @@ def accept_transit_gateway_client_vpn_attachment( Returns: An instance of `AcceptTransitGatewayClientVpnAttachmentOutput`. """ + + def accept_transit_gateway_client_vpn_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptTransitGatewayClientVpnAttachmentOutput: return self._invoke( - input, _models.ACCEPT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, [], plugins + self._select_input( + _models.ACCEPT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, args, kwargs + ), + _models.ACCEPT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, + [], + plugins, ) + @_overload def accept_transit_gateway_multicast_domain_associations( self, - input: AcceptTransitGatewayMulticastDomainAssociationsInput | None = None, + request: _models.AcceptTransitGatewayMulticastDomainAssociationsInput + | _models.AcceptTransitGatewayMulticastDomainAssociationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AcceptTransitGatewayMulticastDomainAssociationsOutput: ... + + @_overload + def accept_transit_gateway_multicast_domain_associations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.AcceptTransitGatewayMulticastDomainAssociationsInputDict + ], ) -> AcceptTransitGatewayMulticastDomainAssociationsOutput: """ Accepts a request to associate subnets with a transit gateway multicast domain. Args: - input: - An instance of `AcceptTransitGatewayMulticastDomainAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1814,25 +1098,44 @@ def accept_transit_gateway_multicast_domain_associations( Returns: An instance of `AcceptTransitGatewayMulticastDomainAssociationsOutput`. """ + + def accept_transit_gateway_multicast_domain_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptTransitGatewayMulticastDomainAssociationsOutput: return self._invoke( - input, + self._select_input( + _models.ACCEPT_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, + args, + kwargs, + ), _models.ACCEPT_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, [], plugins, ) + @_overload + def accept_transit_gateway_peering_attachment( + self, + request: _models.AcceptTransitGatewayPeeringAttachmentInput + | _models.AcceptTransitGatewayPeeringAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptTransitGatewayPeeringAttachmentOutput: ... + + @_overload def accept_transit_gateway_peering_attachment( self, - input: AcceptTransitGatewayPeeringAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptTransitGatewayPeeringAttachmentInputDict], ) -> AcceptTransitGatewayPeeringAttachmentOutput: """ Accepts a transit gateway peering attachment request. The peering attachment must be in the `pendingAcceptance` state. Args: - input: - An instance of `AcceptTransitGatewayPeeringAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1842,14 +1145,36 @@ def accept_transit_gateway_peering_attachment( Returns: An instance of `AcceptTransitGatewayPeeringAttachmentOutput`. """ + + def accept_transit_gateway_peering_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptTransitGatewayPeeringAttachmentOutput: return self._invoke( - input, _models.ACCEPT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, [], plugins + self._select_input( + _models.ACCEPT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, args, kwargs + ), + _models.ACCEPT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, + [], + plugins, ) + @_overload def accept_transit_gateway_vpc_attachment( self, - input: AcceptTransitGatewayVpcAttachmentInput, + request: _models.AcceptTransitGatewayVpcAttachmentInput + | _models.AcceptTransitGatewayVpcAttachmentInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AcceptTransitGatewayVpcAttachmentOutput: ... + + @_overload + def accept_transit_gateway_vpc_attachment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptTransitGatewayVpcAttachmentInputDict], ) -> AcceptTransitGatewayVpcAttachmentOutput: """ Accepts a request to attach a VPC to a transit gateway. @@ -1860,8 +1185,6 @@ def accept_transit_gateway_vpc_attachment( attachment request. Args: - input: - An instance of `AcceptTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1871,21 +1194,41 @@ def accept_transit_gateway_vpc_attachment( Returns: An instance of `AcceptTransitGatewayVpcAttachmentOutput`. """ + + def accept_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptTransitGatewayVpcAttachmentOutput: return self._invoke( - input, _models.ACCEPT_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.ACCEPT_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.ACCEPT_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload + def accept_vpc_endpoint_connections( + self, + request: _models.AcceptVpcEndpointConnectionsInput + | _models.AcceptVpcEndpointConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptVpcEndpointConnectionsOutput: ... + + @_overload def accept_vpc_endpoint_connections( self, - input: AcceptVpcEndpointConnectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptVpcEndpointConnectionsInputDict], ) -> AcceptVpcEndpointConnectionsOutput: """ Accepts connection requests to your VPC endpoint service. Args: - input: - An instance of `AcceptVpcEndpointConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1895,12 +1238,34 @@ def accept_vpc_endpoint_connections( Returns: An instance of `AcceptVpcEndpointConnectionsOutput`. """ - return self._invoke(input, _models.ACCEPT_VPC_ENDPOINT_CONNECTIONS, [], plugins) + def accept_vpc_endpoint_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptVpcEndpointConnectionsOutput: + return self._invoke( + self._select_input(_models.ACCEPT_VPC_ENDPOINT_CONNECTIONS, args, kwargs), + _models.ACCEPT_VPC_ENDPOINT_CONNECTIONS, + [], + plugins, + ) + + @_overload + def accept_vpc_peering_connection( + self, + request: _models.AcceptVpcPeeringConnectionInput + | _models.AcceptVpcPeeringConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptVpcPeeringConnectionOutput: ... + + @_overload def accept_vpc_peering_connection( self, - input: AcceptVpcPeeringConnectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptVpcPeeringConnectionInputDict], ) -> AcceptVpcPeeringConnectionOutput: """ Accept a VPC peering connection request. To accept a request, the VPC @@ -1912,8 +1277,6 @@ def accept_vpc_peering_connection( VPC peering connection in the Region of the accepter VPC. Args: - input: - An instance of `AcceptVpcPeeringConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1923,10 +1286,33 @@ def accept_vpc_peering_connection( Returns: An instance of `AcceptVpcPeeringConnectionOutput`. """ - return self._invoke(input, _models.ACCEPT_VPC_PEERING_CONNECTION, [], plugins) + def accept_vpc_peering_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptVpcPeeringConnectionOutput: + return self._invoke( + self._select_input(_models.ACCEPT_VPC_PEERING_CONNECTION, args, kwargs), + _models.ACCEPT_VPC_PEERING_CONNECTION, + [], + plugins, + ) + + @_overload + def advertise_byoip_cidr( + self, + request: _models.AdvertiseByoipCidrInput | _models.AdvertiseByoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AdvertiseByoipCidrOutput: ... + + @_overload def advertise_byoip_cidr( - self, input: AdvertiseByoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AdvertiseByoipCidrInputDict], ) -> AdvertiseByoipCidrOutput: """ Advertises an IPv4 or IPv6 address range that is provisioned for use @@ -1947,8 +1333,6 @@ def advertise_byoip_cidr( starts routing to Amazon Web Services because of BGP propagation delays. Args: - input: - An instance of `AdvertiseByoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1958,12 +1342,33 @@ def advertise_byoip_cidr( Returns: An instance of `AdvertiseByoipCidrOutput`. """ - return self._invoke(input, _models.ADVERTISE_BYOIP_CIDR, [], plugins) + def advertise_byoip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AdvertiseByoipCidrOutput: + return self._invoke( + self._select_input(_models.ADVERTISE_BYOIP_CIDR, args, kwargs), + _models.ADVERTISE_BYOIP_CIDR, + [], + plugins, + ) + + @_overload + def allocate_address( + self, + request: _models.AllocateAddressInput | _models.AllocateAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AllocateAddressOutput: ... + + @_overload def allocate_address( self, - input: AllocateAddressInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AllocateAddressInputDict], ) -> AllocateAddressOutput: """ Allocates an Elastic IP address to your Amazon Web Services account. @@ -2003,8 +1408,6 @@ def allocate_address( subnet in a Wavelength Zone (for example an EC2 instance). Args: - input: - An instance of `AllocateAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2014,12 +1417,33 @@ def allocate_address( Returns: An instance of `AllocateAddressOutput`. """ - return self._invoke(input, _models.ALLOCATE_ADDRESS, [], plugins) + def allocate_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AllocateAddressOutput: + return self._invoke( + self._select_input(_models.ALLOCATE_ADDRESS, args, kwargs), + _models.ALLOCATE_ADDRESS, + [], + plugins, + ) + + @_overload + def allocate_hosts( + self, + request: _models.AllocateHostsInput | _models.AllocateHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AllocateHostsOutput: ... + + @_overload def allocate_hosts( self, - input: AllocateHostsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AllocateHostsInputDict], ) -> AllocateHostsOutput: """ Allocates a Dedicated Host to your account. At a minimum, specify the @@ -2027,8 +1451,6 @@ def allocate_hosts( which to allocate the host, and the number of hosts to allocate. Args: - input: - An instance of `AllocateHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2038,10 +1460,34 @@ def allocate_hosts( Returns: An instance of `AllocateHostsOutput`. """ - return self._invoke(input, _models.ALLOCATE_HOSTS, [], plugins) + def allocate_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AllocateHostsOutput: + return self._invoke( + self._select_input(_models.ALLOCATE_HOSTS, args, kwargs), + _models.ALLOCATE_HOSTS, + [], + plugins, + ) + + @_overload + def allocate_ipam_pool_cidr( + self, + request: _models.AllocateIpamPoolCidrInput + | _models.AllocateIpamPoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AllocateIpamPoolCidrOutput: ... + + @_overload def allocate_ipam_pool_cidr( - self, input: AllocateIpamPoolCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AllocateIpamPoolCidrInputDict], ) -> AllocateIpamPoolCidrOutput: """ Allocate a CIDR from an IPAM pool. The Region you use should be the IPAM @@ -2058,8 +1504,6 @@ def allocate_ipam_pool_cidr( CIDR will not overlap with any other allocations from the same pool. Args: - input: - An instance of `AllocateIpamPoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2069,12 +1513,34 @@ def allocate_ipam_pool_cidr( Returns: An instance of `AllocateIpamPoolCidrOutput`. """ - return self._invoke(input, _models.ALLOCATE_IPAM_POOL_CIDR, [], plugins) + def allocate_ipam_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AllocateIpamPoolCidrOutput: + return self._invoke( + self._select_input(_models.ALLOCATE_IPAM_POOL_CIDR, args, kwargs), + _models.ALLOCATE_IPAM_POOL_CIDR, + [], + plugins, + ) + + @_overload + def apply_security_groups_to_client_vpn_target_network( + self, + request: _models.ApplySecurityGroupsToClientVpnTargetNetworkInput + | _models.ApplySecurityGroupsToClientVpnTargetNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ApplySecurityGroupsToClientVpnTargetNetworkOutput: ... + + @_overload def apply_security_groups_to_client_vpn_target_network( self, - input: ApplySecurityGroupsToClientVpnTargetNetworkInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ApplySecurityGroupsToClientVpnTargetNetworkInputDict], ) -> ApplySecurityGroupsToClientVpnTargetNetworkOutput: """ Applies a security group to the association between the target network @@ -2082,8 +1548,6 @@ def apply_security_groups_to_client_vpn_target_network( groups with the specified security groups. Args: - input: - An instance of `ApplySecurityGroupsToClientVpnTargetNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2093,15 +1557,36 @@ def apply_security_groups_to_client_vpn_target_network( Returns: An instance of `ApplySecurityGroupsToClientVpnTargetNetworkOutput`. """ + + def apply_security_groups_to_client_vpn_target_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ApplySecurityGroupsToClientVpnTargetNetworkOutput: return self._invoke( - input, + self._select_input( + _models.APPLY_SECURITY_GROUPS_TO_CLIENT_VPN_TARGET_NETWORK, args, kwargs + ), _models.APPLY_SECURITY_GROUPS_TO_CLIENT_VPN_TARGET_NETWORK, [], plugins, ) + @_overload + def assign_ipv6_addresses( + self, + request: _models.AssignIpv6AddressesInput + | _models.AssignIpv6AddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssignIpv6AddressesOutput: ... + + @_overload def assign_ipv6_addresses( - self, input: AssignIpv6AddressesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssignIpv6AddressesInputDict], ) -> AssignIpv6AddressesOutput: """ Assigns the specified IPv6 addresses to the specified network interface. @@ -2122,8 +1607,6 @@ def assign_ipv6_addresses( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `AssignIpv6AddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2133,10 +1616,34 @@ def assign_ipv6_addresses( Returns: An instance of `AssignIpv6AddressesOutput`. """ - return self._invoke(input, _models.ASSIGN_IPV6_ADDRESSES, [], plugins) + def assign_ipv6_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssignIpv6AddressesOutput: + return self._invoke( + self._select_input(_models.ASSIGN_IPV6_ADDRESSES, args, kwargs), + _models.ASSIGN_IPV6_ADDRESSES, + [], + plugins, + ) + + @_overload + def assign_private_ip_addresses( + self, + request: _models.AssignPrivateIpAddressesInput + | _models.AssignPrivateIpAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssignPrivateIpAddressesOutput: ... + + @_overload def assign_private_ip_addresses( - self, input: AssignPrivateIpAddressesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssignPrivateIpAddressesInputDict], ) -> AssignPrivateIpAddressesOutput: """ Assigns the specified secondary private IP addresses to the specified @@ -2170,8 +1677,6 @@ def assign_private_ip_addresses( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `AssignPrivateIpAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2181,12 +1686,34 @@ def assign_private_ip_addresses( Returns: An instance of `AssignPrivateIpAddressesOutput`. """ - return self._invoke(input, _models.ASSIGN_PRIVATE_IP_ADDRESSES, [], plugins) + def assign_private_ip_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssignPrivateIpAddressesOutput: + return self._invoke( + self._select_input(_models.ASSIGN_PRIVATE_IP_ADDRESSES, args, kwargs), + _models.ASSIGN_PRIVATE_IP_ADDRESSES, + [], + plugins, + ) + + @_overload def assign_private_nat_gateway_address( self, - input: AssignPrivateNatGatewayAddressInput, + request: _models.AssignPrivateNatGatewayAddressInput + | _models.AssignPrivateNatGatewayAddressInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssignPrivateNatGatewayAddressOutput: ... + + @_overload + def assign_private_nat_gateway_address( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssignPrivateNatGatewayAddressInputDict], ) -> AssignPrivateNatGatewayAddressOutput: """ Assigns private IPv4 addresses to a private NAT gateway. For more @@ -2195,8 +1722,6 @@ def assign_private_nat_gateway_address( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssignPrivateNatGatewayAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2206,14 +1731,35 @@ def assign_private_nat_gateway_address( Returns: An instance of `AssignPrivateNatGatewayAddressOutput`. """ + + def assign_private_nat_gateway_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssignPrivateNatGatewayAddressOutput: return self._invoke( - input, _models.ASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, [], plugins + self._select_input( + _models.ASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, args, kwargs + ), + _models.ASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, + [], + plugins, ) + @_overload + def associate_address( + self, + request: _models.AssociateAddressInput | _models.AssociateAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateAddressOutput: ... + + @_overload def associate_address( self, - input: AssociateAddressInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateAddressInputDict], ) -> AssociateAddressOutput: """ Associates an Elastic IP address, or carrier IP address (for instances @@ -2242,8 +1788,6 @@ def associate_address( Pricing](http://aws.amazon.com/ec2/pricing/). Args: - input: - An instance of `AssociateAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2253,12 +1797,34 @@ def associate_address( Returns: An instance of `AssociateAddressOutput`. """ - return self._invoke(input, _models.ASSOCIATE_ADDRESS, [], plugins) + def associate_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateAddressOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_ADDRESS, args, kwargs), + _models.ASSOCIATE_ADDRESS, + [], + plugins, + ) + + @_overload + def associate_application_status_check( + self, + request: _models.AssociateApplicationStatusCheckInput + | _models.AssociateApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateApplicationStatusCheckOutput: ... + + @_overload def associate_application_status_check( self, - input: AssociateApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateApplicationStatusCheckInputDict], ) -> AssociateApplicationStatusCheckOutput: """ Associates an application status check with instances or @@ -2288,8 +1854,6 @@ def associate_application_status_check( current and future instances that have the specified tags. Args: - input: - An instance of `AssociateApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2299,14 +1863,36 @@ def associate_application_status_check( Returns: An instance of `AssociateApplicationStatusCheckOutput`. """ + + def associate_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateApplicationStatusCheckOutput: return self._invoke( - input, _models.ASSOCIATE_APPLICATION_STATUS_CHECK, [], plugins + self._select_input( + _models.ASSOCIATE_APPLICATION_STATUS_CHECK, args, kwargs + ), + _models.ASSOCIATE_APPLICATION_STATUS_CHECK, + [], + plugins, ) + @_overload + def associate_capacity_reservation_billing_owner( + self, + request: _models.AssociateCapacityReservationBillingOwnerInput + | _models.AssociateCapacityReservationBillingOwnerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateCapacityReservationBillingOwnerOutput: ... + + @_overload def associate_capacity_reservation_billing_owner( self, - input: AssociateCapacityReservationBillingOwnerInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateCapacityReservationBillingOwnerInputDict], ) -> AssociateCapacityReservationBillingOwnerOutput: """ Initiates a request to assign billing of the unused capacity of a shared @@ -2316,8 +1902,6 @@ def associate_capacity_reservation_billing_owner( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html). Args: - input: - An instance of `AssociateCapacityReservationBillingOwnerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2327,14 +1911,36 @@ def associate_capacity_reservation_billing_owner( Returns: An instance of `AssociateCapacityReservationBillingOwnerOutput`. """ + + def associate_capacity_reservation_billing_owner( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateCapacityReservationBillingOwnerOutput: return self._invoke( - input, _models.ASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, [], plugins + self._select_input( + _models.ASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, args, kwargs + ), + _models.ASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, + [], + plugins, ) + @_overload + def associate_client_vpn_target_network( + self, + request: _models.AssociateClientVpnTargetNetworkInput + | _models.AssociateClientVpnTargetNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateClientVpnTargetNetworkOutput: ... + + @_overload def associate_client_vpn_target_network( self, - input: AssociateClientVpnTargetNetworkInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateClientVpnTargetNetworkInputDict], ) -> AssociateClientVpnTargetNetworkOutput: """ Associates a target network with a Client VPN endpoint. A target network @@ -2350,8 +1956,6 @@ def associate_client_vpn_target_network( change the VPC that's associated with it. Args: - input: - An instance of `AssociateClientVpnTargetNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2361,12 +1965,36 @@ def associate_client_vpn_target_network( Returns: An instance of `AssociateClientVpnTargetNetworkOutput`. """ + + def associate_client_vpn_target_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateClientVpnTargetNetworkOutput: return self._invoke( - input, _models.ASSOCIATE_CLIENT_VPN_TARGET_NETWORK, [], plugins + self._select_input( + _models.ASSOCIATE_CLIENT_VPN_TARGET_NETWORK, args, kwargs + ), + _models.ASSOCIATE_CLIENT_VPN_TARGET_NETWORK, + [], + plugins, ) + @_overload + def associate_dhcp_options( + self, + request: _models.AssociateDhcpOptionsInput + | _models.AssociateDhcpOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateDhcpOptionsOutput: ... + + @_overload def associate_dhcp_options( - self, input: AssociateDhcpOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateDhcpOptionsInputDict], ) -> AssociateDhcpOptionsOutput: """ Associates a set of DHCP options (that you've previously created) with @@ -2384,8 +2012,6 @@ def associate_dhcp_options( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateDhcpOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2395,12 +2021,34 @@ def associate_dhcp_options( Returns: An instance of `AssociateDhcpOptionsOutput`. """ - return self._invoke(input, _models.ASSOCIATE_DHCP_OPTIONS, [], plugins) + def associate_dhcp_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateDhcpOptionsOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_DHCP_OPTIONS, args, kwargs), + _models.ASSOCIATE_DHCP_OPTIONS, + [], + plugins, + ) + + @_overload + def associate_enclave_certificate_iam_role( + self, + request: _models.AssociateEnclaveCertificateIamRoleInput + | _models.AssociateEnclaveCertificateIamRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateEnclaveCertificateIamRoleOutput: ... + + @_overload def associate_enclave_certificate_iam_role( self, - input: AssociateEnclaveCertificateIamRoleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateEnclaveCertificateIamRoleInputDict], ) -> AssociateEnclaveCertificateIamRoleOutput: """ Associates an Identity and Access Management (IAM) role with an @@ -2426,8 +2074,6 @@ def associate_enclave_certificate_iam_role( in the *Amazon Web Services Nitro Enclaves User Guide*. Args: - input: - An instance of `AssociateEnclaveCertificateIamRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2437,14 +2083,36 @@ def associate_enclave_certificate_iam_role( Returns: An instance of `AssociateEnclaveCertificateIamRoleOutput`. """ + + def associate_enclave_certificate_iam_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateEnclaveCertificateIamRoleOutput: return self._invoke( - input, _models.ASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, [], plugins + self._select_input( + _models.ASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, args, kwargs + ), + _models.ASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, + [], + plugins, ) + @_overload + def associate_iam_instance_profile( + self, + request: _models.AssociateIamInstanceProfileInput + | _models.AssociateIamInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateIamInstanceProfileOutput: ... + + @_overload def associate_iam_instance_profile( self, - input: AssociateIamInstanceProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateIamInstanceProfileInputDict], ) -> AssociateIamInstanceProfileOutput: """ Associates an IAM instance profile with a running or stopped instance. @@ -2452,8 +2120,6 @@ def associate_iam_instance_profile( instance. Args: - input: - An instance of `AssociateIamInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2463,12 +2129,34 @@ def associate_iam_instance_profile( Returns: An instance of `AssociateIamInstanceProfileOutput`. """ - return self._invoke(input, _models.ASSOCIATE_IAM_INSTANCE_PROFILE, [], plugins) + def associate_iam_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateIamInstanceProfileOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_IAM_INSTANCE_PROFILE, args, kwargs), + _models.ASSOCIATE_IAM_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload def associate_instance_event_window( self, - input: AssociateInstanceEventWindowInput, + request: _models.AssociateInstanceEventWindowInput + | _models.AssociateInstanceEventWindowInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssociateInstanceEventWindowOutput: ... + + @_overload + def associate_instance_event_window( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateInstanceEventWindowInputDict], ) -> AssociateInstanceEventWindowOutput: """ Associates one or more targets with an event window. Only one type of @@ -2480,8 +2168,6 @@ def associate_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `AssociateInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2491,13 +2177,37 @@ def associate_instance_event_window( Returns: An instance of `AssociateInstanceEventWindowOutput`. """ - return self._invoke(input, _models.ASSOCIATE_INSTANCE_EVENT_WINDOW, [], plugins) - def associate_ipam_byoasn( - self, input: AssociateIpamByoasnInput, plugins: list[Plugin] | None = None - ) -> AssociateIpamByoasnOutput: - """ - Associates your Autonomous System Number (ASN) with a BYOIP CIDR that + def associate_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateInstanceEventWindowOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_INSTANCE_EVENT_WINDOW, args, kwargs), + _models.ASSOCIATE_INSTANCE_EVENT_WINDOW, + [], + plugins, + ) + + @_overload + def associate_ipam_byoasn( + self, + request: _models.AssociateIpamByoasnInput + | _models.AssociateIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateIpamByoasnOutput: ... + + @_overload + def associate_ipam_byoasn( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateIpamByoasnInputDict], + ) -> AssociateIpamByoasnOutput: + """ + Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region. For more information, see [Tutorial: Bring your ASN to IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoasn.html) @@ -2510,8 +2220,6 @@ def associate_ipam_byoasn( [AdvertiseByoipCidr](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AdvertiseByoipCidr.html). Args: - input: - An instance of `AssociateIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2521,12 +2229,34 @@ def associate_ipam_byoasn( Returns: An instance of `AssociateIpamByoasnOutput`. """ - return self._invoke(input, _models.ASSOCIATE_IPAM_BYOASN, [], plugins) + def associate_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateIpamByoasnOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_IPAM_BYOASN, args, kwargs), + _models.ASSOCIATE_IPAM_BYOASN, + [], + plugins, + ) + + @_overload def associate_ipam_resource_discovery( self, - input: AssociateIpamResourceDiscoveryInput, + request: _models.AssociateIpamResourceDiscoveryInput + | _models.AssociateIpamResourceDiscoveryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssociateIpamResourceDiscoveryOutput: ... + + @_overload + def associate_ipam_resource_discovery( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateIpamResourceDiscoveryInputDict], ) -> AssociateIpamResourceDiscoveryOutput: """ Associates an IPAM resource discovery with an Amazon VPC IPAM. A @@ -2534,8 +2264,6 @@ def associate_ipam_resource_discovery( monitor resources that belong to the owning account. Args: - input: - An instance of `AssociateIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2545,14 +2273,34 @@ def associate_ipam_resource_discovery( Returns: An instance of `AssociateIpamResourceDiscoveryOutput`. """ + + def associate_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateIpamResourceDiscoveryOutput: return self._invoke( - input, _models.ASSOCIATE_IPAM_RESOURCE_DISCOVERY, [], plugins + self._select_input(_models.ASSOCIATE_IPAM_RESOURCE_DISCOVERY, args, kwargs), + _models.ASSOCIATE_IPAM_RESOURCE_DISCOVERY, + [], + plugins, ) + @_overload + def associate_nat_gateway_address( + self, + request: _models.AssociateNatGatewayAddressInput + | _models.AssociateNatGatewayAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateNatGatewayAddressOutput: ... + + @_overload def associate_nat_gateway_address( self, - input: AssociateNatGatewayAddressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateNatGatewayAddressInputDict], ) -> AssociateNatGatewayAddressOutput: """ Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a @@ -2579,8 +2327,6 @@ def associate_nat_gateway_address( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateNatGatewayAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2590,10 +2336,34 @@ def associate_nat_gateway_address( Returns: An instance of `AssociateNatGatewayAddressOutput`. """ - return self._invoke(input, _models.ASSOCIATE_NAT_GATEWAY_ADDRESS, [], plugins) + def associate_nat_gateway_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateNatGatewayAddressOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_NAT_GATEWAY_ADDRESS, args, kwargs), + _models.ASSOCIATE_NAT_GATEWAY_ADDRESS, + [], + plugins, + ) + + @_overload + def associate_route_server( + self, + request: _models.AssociateRouteServerInput + | _models.AssociateRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateRouteServerOutput: ... + + @_overload def associate_route_server( - self, input: AssociateRouteServerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateRouteServerInputDict], ) -> AssociateRouteServerOutput: """ Associates a route server with a VPC to enable dynamic route updates. @@ -2606,8 +2376,6 @@ def associate_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2617,10 +2385,34 @@ def associate_route_server( Returns: An instance of `AssociateRouteServerOutput`. """ - return self._invoke(input, _models.ASSOCIATE_ROUTE_SERVER, [], plugins) + def associate_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateRouteServerOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_ROUTE_SERVER, args, kwargs), + _models.ASSOCIATE_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + def associate_route_table( + self, + request: _models.AssociateRouteTableInput + | _models.AssociateRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateRouteTableOutput: ... + + @_overload def associate_route_table( - self, input: AssociateRouteTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateRouteTableInputDict], ) -> AssociateRouteTableOutput: """ Associates a subnet in your VPC or an internet gateway or virtual @@ -2635,8 +2427,6 @@ def associate_route_table( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2646,10 +2436,34 @@ def associate_route_table( Returns: An instance of `AssociateRouteTableOutput`. """ - return self._invoke(input, _models.ASSOCIATE_ROUTE_TABLE, [], plugins) + def associate_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateRouteTableOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_ROUTE_TABLE, args, kwargs), + _models.ASSOCIATE_ROUTE_TABLE, + [], + plugins, + ) + + @_overload + def associate_security_group_vpc( + self, + request: _models.AssociateSecurityGroupVpcInput + | _models.AssociateSecurityGroupVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateSecurityGroupVpcOutput: ... + + @_overload def associate_security_group_vpc( - self, input: AssociateSecurityGroupVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateSecurityGroupVpcInputDict], ) -> AssociateSecurityGroupVpcOutput: """ Associates a security group with another VPC in the same Region. This @@ -2670,8 +2484,6 @@ def associate_security_group_vpc( - You cannot use this feature with the default VPC. Args: - input: - An instance of `AssociateSecurityGroupVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2681,18 +2493,40 @@ def associate_security_group_vpc( Returns: An instance of `AssociateSecurityGroupVpcOutput`. """ - return self._invoke(input, _models.ASSOCIATE_SECURITY_GROUP_VPC, [], plugins) + def associate_security_group_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateSecurityGroupVpcOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_SECURITY_GROUP_VPC, args, kwargs), + _models.ASSOCIATE_SECURITY_GROUP_VPC, + [], + plugins, + ) + + @_overload + def associate_subnet_cidr_block( + self, + request: _models.AssociateSubnetCidrBlockInput + | _models.AssociateSubnetCidrBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateSubnetCidrBlockOutput: ... + + @_overload def associate_subnet_cidr_block( - self, input: AssociateSubnetCidrBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateSubnetCidrBlockInputDict], ) -> AssociateSubnetCidrBlockOutput: """ Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet. Args: - input: - An instance of `AssociateSubnetCidrBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2702,12 +2536,34 @@ def associate_subnet_cidr_block( Returns: An instance of `AssociateSubnetCidrBlockOutput`. """ - return self._invoke(input, _models.ASSOCIATE_SUBNET_CIDR_BLOCK, [], plugins) + def associate_subnet_cidr_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateSubnetCidrBlockOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_SUBNET_CIDR_BLOCK, args, kwargs), + _models.ASSOCIATE_SUBNET_CIDR_BLOCK, + [], + plugins, + ) + + @_overload def associate_transit_gateway_multicast_domain( self, - input: AssociateTransitGatewayMulticastDomainInput, + request: _models.AssociateTransitGatewayMulticastDomainInput + | _models.AssociateTransitGatewayMulticastDomainInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssociateTransitGatewayMulticastDomainOutput: ... + + @_overload + def associate_transit_gateway_multicast_domain( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateTransitGatewayMulticastDomainInputDict], ) -> AssociateTransitGatewayMulticastDomainOutput: """ Associates the specified subnets and transit gateway attachments with @@ -2719,8 +2575,6 @@ def associate_transit_gateway_multicast_domain( to see the state of the attachment. Args: - input: - An instance of `AssociateTransitGatewayMulticastDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2730,22 +2584,42 @@ def associate_transit_gateway_multicast_domain( Returns: An instance of `AssociateTransitGatewayMulticastDomainOutput`. """ + + def associate_transit_gateway_multicast_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateTransitGatewayMulticastDomainOutput: return self._invoke( - input, _models.ASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, [], plugins + self._select_input( + _models.ASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, args, kwargs + ), + _models.ASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, + [], + plugins, ) + @_overload + def associate_transit_gateway_policy_table( + self, + request: _models.AssociateTransitGatewayPolicyTableInput + | _models.AssociateTransitGatewayPolicyTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateTransitGatewayPolicyTableOutput: ... + + @_overload def associate_transit_gateway_policy_table( self, - input: AssociateTransitGatewayPolicyTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateTransitGatewayPolicyTableInputDict], ) -> AssociateTransitGatewayPolicyTableOutput: """ Associates the specified transit gateway attachment with a transit gateway policy table. Args: - input: - An instance of `AssociateTransitGatewayPolicyTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2755,22 +2629,42 @@ def associate_transit_gateway_policy_table( Returns: An instance of `AssociateTransitGatewayPolicyTableOutput`. """ + + def associate_transit_gateway_policy_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateTransitGatewayPolicyTableOutput: return self._invoke( - input, _models.ASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, [], plugins + self._select_input( + _models.ASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, args, kwargs + ), + _models.ASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, + [], + plugins, ) + @_overload + def associate_transit_gateway_route_table( + self, + request: _models.AssociateTransitGatewayRouteTableInput + | _models.AssociateTransitGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateTransitGatewayRouteTableOutput: ... + + @_overload def associate_transit_gateway_route_table( self, - input: AssociateTransitGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateTransitGatewayRouteTableInputDict], ) -> AssociateTransitGatewayRouteTableOutput: """ Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment. Args: - input: - An instance of `AssociateTransitGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2780,12 +2674,36 @@ def associate_transit_gateway_route_table( Returns: An instance of `AssociateTransitGatewayRouteTableOutput`. """ + + def associate_transit_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateTransitGatewayRouteTableOutput: return self._invoke( - input, _models.ASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input( + _models.ASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, args, kwargs + ), + _models.ASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + def associate_trunk_interface( + self, + request: _models.AssociateTrunkInterfaceInput + | _models.AssociateTrunkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateTrunkInterfaceOutput: ... + + @_overload def associate_trunk_interface( - self, input: AssociateTrunkInterfaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateTrunkInterfaceInputDict], ) -> AssociateTrunkInterfaceOutput: """ Associates a branch network interface with a trunk network interface. @@ -2797,8 +2715,6 @@ def associate_trunk_interface( associate with the trunk network interface. Args: - input: - An instance of `AssociateTrunkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2808,10 +2724,34 @@ def associate_trunk_interface( Returns: An instance of `AssociateTrunkInterfaceOutput`. """ - return self._invoke(input, _models.ASSOCIATE_TRUNK_INTERFACE, [], plugins) + def associate_trunk_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateTrunkInterfaceOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_TRUNK_INTERFACE, args, kwargs), + _models.ASSOCIATE_TRUNK_INTERFACE, + [], + plugins, + ) + + @_overload def associate_vpc_cidr_block( - self, input: AssociateVpcCidrBlockInput, plugins: list[Plugin] | None = None + self, + request: _models.AssociateVpcCidrBlockInput + | _models.AssociateVpcCidrBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateVpcCidrBlockOutput: ... + + @_overload + def associate_vpc_cidr_block( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateVpcCidrBlockInputDict], ) -> AssociateVpcCidrBlockOutput: """ Associates a CIDR block with your VPC. You can associate a secondary @@ -2829,8 +2769,6 @@ def associate_vpc_cidr_block( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AssociateVpcCidrBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2840,10 +2778,34 @@ def associate_vpc_cidr_block( Returns: An instance of `AssociateVpcCidrBlockOutput`. """ - return self._invoke(input, _models.ASSOCIATE_VPC_CIDR_BLOCK, [], plugins) + def associate_vpc_cidr_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateVpcCidrBlockOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_VPC_CIDR_BLOCK, args, kwargs), + _models.ASSOCIATE_VPC_CIDR_BLOCK, + [], + plugins, + ) + + @_overload + def attach_classic_link_vpc( + self, + request: _models.AttachClassicLinkVpcInput + | _models.AttachClassicLinkVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachClassicLinkVpcOutput: ... + + @_overload def attach_classic_link_vpc( - self, input: AttachClassicLinkVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachClassicLinkVpcInputDict], ) -> AttachClassicLinkVpcOutput: """ Note: @@ -2864,8 +2826,6 @@ def attach_classic_link_vpc( your instance. Args: - input: - An instance of `AttachClassicLinkVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2875,10 +2835,34 @@ def attach_classic_link_vpc( Returns: An instance of `AttachClassicLinkVpcOutput`. """ - return self._invoke(input, _models.ATTACH_CLASSIC_LINK_VPC, [], plugins) + def attach_classic_link_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachClassicLinkVpcOutput: + return self._invoke( + self._select_input(_models.ATTACH_CLASSIC_LINK_VPC, args, kwargs), + _models.ATTACH_CLASSIC_LINK_VPC, + [], + plugins, + ) + + @_overload + def attach_image_watermark( + self, + request: _models.AttachImageWatermarkInput + | _models.AttachImageWatermarkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachImageWatermarkOutput: ... + + @_overload def attach_image_watermark( - self, input: AttachImageWatermarkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachImageWatermarkInputDict], ) -> AttachImageWatermarkOutput: """ Attaches a watermark to a non-public AMI. The watermark is a structured @@ -2892,8 +2876,6 @@ def attach_image_watermark( public AMIs. Args: - input: - An instance of `AttachImageWatermarkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2903,10 +2885,34 @@ def attach_image_watermark( Returns: An instance of `AttachImageWatermarkOutput`. """ - return self._invoke(input, _models.ATTACH_IMAGE_WATERMARK, [], plugins) + def attach_image_watermark( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachImageWatermarkOutput: + return self._invoke( + self._select_input(_models.ATTACH_IMAGE_WATERMARK, args, kwargs), + _models.ATTACH_IMAGE_WATERMARK, + [], + plugins, + ) + + @_overload + def attach_internet_gateway( + self, + request: _models.AttachInternetGatewayInput + | _models.AttachInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachInternetGatewayOutput: ... + + @_overload def attach_internet_gateway( - self, input: AttachInternetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachInternetGatewayInputDict], ) -> AttachInternetGatewayOutput: """ Attaches an internet gateway or a virtual private gateway to a VPC, @@ -2916,8 +2922,6 @@ def attach_internet_gateway( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AttachInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2927,17 +2931,39 @@ def attach_internet_gateway( Returns: An instance of `AttachInternetGatewayOutput`. """ - return self._invoke(input, _models.ATTACH_INTERNET_GATEWAY, [], plugins) + def attach_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachInternetGatewayOutput: + return self._invoke( + self._select_input(_models.ATTACH_INTERNET_GATEWAY, args, kwargs), + _models.ATTACH_INTERNET_GATEWAY, + [], + plugins, + ) + + @_overload + def attach_network_interface( + self, + request: _models.AttachNetworkInterfaceInput + | _models.AttachNetworkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachNetworkInterfaceOutput: ... + + @_overload def attach_network_interface( - self, input: AttachNetworkInterfaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachNetworkInterfaceInputDict], ) -> AttachNetworkInterfaceOutput: """ Attaches a network interface to an instance. Args: - input: - An instance of `AttachNetworkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2947,20 +2973,40 @@ def attach_network_interface( Returns: An instance of `AttachNetworkInterfaceOutput`. """ - return self._invoke(input, _models.ATTACH_NETWORK_INTERFACE, [], plugins) + def attach_network_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachNetworkInterfaceOutput: + return self._invoke( + self._select_input(_models.ATTACH_NETWORK_INTERFACE, args, kwargs), + _models.ATTACH_NETWORK_INTERFACE, + [], + plugins, + ) + + @_overload + def attach_verified_access_trust_provider( + self, + request: _models.AttachVerifiedAccessTrustProviderInput + | _models.AttachVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachVerifiedAccessTrustProviderOutput: ... + + @_overload def attach_verified_access_trust_provider( self, - input: AttachVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachVerifiedAccessTrustProviderInputDict], ) -> AttachVerifiedAccessTrustProviderOutput: """ Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance. Args: - input: - An instance of `AttachVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2970,12 +3016,35 @@ def attach_verified_access_trust_provider( Returns: An instance of `AttachVerifiedAccessTrustProviderOutput`. """ + + def attach_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachVerifiedAccessTrustProviderOutput: return self._invoke( - input, _models.ATTACH_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.ATTACH_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.ATTACH_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload + def attach_volume( + self, + request: _models.AttachVolumeInput | _models.AttachVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachVolumeOutput: ... + + @_overload def attach_volume( - self, input: AttachVolumeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachVolumeInputDict], ) -> AttachVolumeOutput: """ Attaches an Amazon EBS volume to a `running` or `stopped` instance, and @@ -3011,8 +3080,6 @@ def attach_volume( in the *Amazon EBS User Guide*. Args: - input: - An instance of `AttachVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3022,10 +3089,33 @@ def attach_volume( Returns: An instance of `AttachVolumeOutput`. """ - return self._invoke(input, _models.ATTACH_VOLUME, [], plugins) + def attach_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachVolumeOutput: + return self._invoke( + self._select_input(_models.ATTACH_VOLUME, args, kwargs), + _models.ATTACH_VOLUME, + [], + plugins, + ) + + @_overload + def attach_vpn_gateway( + self, + request: _models.AttachVpnGatewayInput | _models.AttachVpnGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachVpnGatewayOutput: ... + + @_overload def attach_vpn_gateway( - self, input: AttachVpnGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachVpnGatewayInputDict], ) -> AttachVpnGatewayOutput: """ Attaches an available virtual private gateway to a VPC. You can attach @@ -3036,8 +3126,6 @@ def attach_vpn_gateway( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `AttachVpnGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3047,10 +3135,34 @@ def attach_vpn_gateway( Returns: An instance of `AttachVpnGatewayOutput`. """ - return self._invoke(input, _models.ATTACH_VPN_GATEWAY, [], plugins) + def attach_vpn_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachVpnGatewayOutput: + return self._invoke( + self._select_input(_models.ATTACH_VPN_GATEWAY, args, kwargs), + _models.ATTACH_VPN_GATEWAY, + [], + plugins, + ) + + @_overload + def authorize_client_vpn_ingress( + self, + request: _models.AuthorizeClientVpnIngressInput + | _models.AuthorizeClientVpnIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AuthorizeClientVpnIngressOutput: ... + + @_overload def authorize_client_vpn_ingress( - self, input: AuthorizeClientVpnIngressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AuthorizeClientVpnIngressInputDict], ) -> AuthorizeClientVpnIngressOutput: """ Adds an ingress authorization rule to a Client VPN endpoint. Ingress @@ -3059,8 +3171,6 @@ def authorize_client_vpn_ingress( access resources in Amazon Web Services or on-premises networks. Args: - input: - An instance of `AuthorizeClientVpnIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3070,12 +3180,34 @@ def authorize_client_vpn_ingress( Returns: An instance of `AuthorizeClientVpnIngressOutput`. """ - return self._invoke(input, _models.AUTHORIZE_CLIENT_VPN_INGRESS, [], plugins) + def authorize_client_vpn_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AuthorizeClientVpnIngressOutput: + return self._invoke( + self._select_input(_models.AUTHORIZE_CLIENT_VPN_INGRESS, args, kwargs), + _models.AUTHORIZE_CLIENT_VPN_INGRESS, + [], + plugins, + ) + + @_overload + def authorize_security_group_egress( + self, + request: _models.AuthorizeSecurityGroupEgressInput + | _models.AuthorizeSecurityGroupEgressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AuthorizeSecurityGroupEgressOutput: ... + + @_overload def authorize_security_group_egress( self, - input: AuthorizeSecurityGroupEgressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AuthorizeSecurityGroupEgressInputDict], ) -> AuthorizeSecurityGroupEgressOutput: """ Adds the specified outbound (egress) rules to a security group. @@ -3105,8 +3237,6 @@ def authorize_security_group_egress( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AuthorizeSecurityGroupEgressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3116,12 +3246,34 @@ def authorize_security_group_egress( Returns: An instance of `AuthorizeSecurityGroupEgressOutput`. """ - return self._invoke(input, _models.AUTHORIZE_SECURITY_GROUP_EGRESS, [], plugins) - def authorize_security_group_ingress( - self, - input: AuthorizeSecurityGroupIngressInput | None = None, - plugins: list[Plugin] | None = None, + def authorize_security_group_egress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AuthorizeSecurityGroupEgressOutput: + return self._invoke( + self._select_input(_models.AUTHORIZE_SECURITY_GROUP_EGRESS, args, kwargs), + _models.AUTHORIZE_SECURITY_GROUP_EGRESS, + [], + plugins, + ) + + @_overload + def authorize_security_group_ingress( + self, + request: _models.AuthorizeSecurityGroupIngressInput + | _models.AuthorizeSecurityGroupIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AuthorizeSecurityGroupIngressOutput: ... + + @_overload + def authorize_security_group_ingress( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AuthorizeSecurityGroupIngressInputDict], ) -> AuthorizeSecurityGroupIngressOutput: """ Adds the specified inbound (ingress) rules to a security group. @@ -3151,8 +3303,6 @@ def authorize_security_group_ingress( in the *Amazon VPC User Guide*. Args: - input: - An instance of `AuthorizeSecurityGroupIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3162,14 +3312,34 @@ def authorize_security_group_ingress( Returns: An instance of `AuthorizeSecurityGroupIngressOutput`. """ + + def authorize_security_group_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AuthorizeSecurityGroupIngressOutput: return self._invoke( - input, _models.AUTHORIZE_SECURITY_GROUP_INGRESS, [], plugins + self._select_input(_models.AUTHORIZE_SECURITY_GROUP_INGRESS, args, kwargs), + _models.AUTHORIZE_SECURITY_GROUP_INGRESS, + [], + plugins, ) + @_overload + def batch_modify_ipam_routing_policy_registrations( + self, + request: _models.BatchModifyIpamRoutingPolicyRegistrationsInput + | _models.BatchModifyIpamRoutingPolicyRegistrationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchModifyIpamRoutingPolicyRegistrationsOutput: ... + + @_overload def batch_modify_ipam_routing_policy_registrations( self, - input: BatchModifyIpamRoutingPolicyRegistrationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchModifyIpamRoutingPolicyRegistrationsInputDict], ) -> BatchModifyIpamRoutingPolicyRegistrationsOutput: """ Modifies multiple routing policy registrations in a single operation. @@ -3177,8 +3347,6 @@ def batch_modify_ipam_routing_policy_registrations( batch. Args: - input: - An instance of `BatchModifyIpamRoutingPolicyRegistrationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3188,12 +3356,35 @@ def batch_modify_ipam_routing_policy_registrations( Returns: An instance of `BatchModifyIpamRoutingPolicyRegistrationsOutput`. """ + + def batch_modify_ipam_routing_policy_registrations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchModifyIpamRoutingPolicyRegistrationsOutput: return self._invoke( - input, _models.BATCH_MODIFY_IPAM_ROUTING_POLICY_REGISTRATIONS, [], plugins + self._select_input( + _models.BATCH_MODIFY_IPAM_ROUTING_POLICY_REGISTRATIONS, args, kwargs + ), + _models.BATCH_MODIFY_IPAM_ROUTING_POLICY_REGISTRATIONS, + [], + plugins, ) + @_overload + def bundle_instance( + self, + request: _models.BundleInstanceInput | _models.BundleInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BundleInstanceOutput: ... + + @_overload def bundle_instance( - self, input: BundleInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BundleInstanceInputDict], ) -> BundleInstanceOutput: """ Bundles an Amazon instance store-backed Windows instance. @@ -3210,8 +3401,6 @@ def bundle_instance( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `BundleInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3221,10 +3410,33 @@ def bundle_instance( Returns: An instance of `BundleInstanceOutput`. """ - return self._invoke(input, _models.BUNDLE_INSTANCE, [], plugins) + def bundle_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BundleInstanceOutput: + return self._invoke( + self._select_input(_models.BUNDLE_INSTANCE, args, kwargs), + _models.BUNDLE_INSTANCE, + [], + plugins, + ) + + @_overload + def cancel_bundle_task( + self, + request: _models.CancelBundleTaskInput | _models.CancelBundleTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelBundleTaskOutput: ... + + @_overload def cancel_bundle_task( - self, input: CancelBundleTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelBundleTaskInputDict], ) -> CancelBundleTaskOutput: """ Cancels a bundling operation for an instance store-backed Windows @@ -3236,8 +3448,6 @@ def cancel_bundle_task( the operation it cancels, is no longer supported. Args: - input: - An instance of `CancelBundleTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3247,10 +3457,34 @@ def cancel_bundle_task( Returns: An instance of `CancelBundleTaskOutput`. """ - return self._invoke(input, _models.CANCEL_BUNDLE_TASK, [], plugins) + def cancel_bundle_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelBundleTaskOutput: + return self._invoke( + self._select_input(_models.CANCEL_BUNDLE_TASK, args, kwargs), + _models.CANCEL_BUNDLE_TASK, + [], + plugins, + ) + + @_overload + def cancel_capacity_reservation( + self, + request: _models.CancelCapacityReservationInput + | _models.CancelCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelCapacityReservationOutput: ... + + @_overload def cancel_capacity_reservation( - self, input: CancelCapacityReservationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelCapacityReservationInputDict], ) -> CancelCapacityReservationOutput: """ Cancels the specified Capacity Reservation, releases the reserved @@ -3291,8 +3525,6 @@ def cancel_capacity_reservation( capacity. Args: - input: - An instance of `CancelCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3302,12 +3534,34 @@ def cancel_capacity_reservation( Returns: An instance of `CancelCapacityReservationOutput`. """ - return self._invoke(input, _models.CANCEL_CAPACITY_RESERVATION, [], plugins) + def cancel_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelCapacityReservationOutput: + return self._invoke( + self._select_input(_models.CANCEL_CAPACITY_RESERVATION, args, kwargs), + _models.CANCEL_CAPACITY_RESERVATION, + [], + plugins, + ) + + @_overload + def cancel_capacity_reservation_fleets( + self, + request: _models.CancelCapacityReservationFleetsInput + | _models.CancelCapacityReservationFleetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelCapacityReservationFleetsOutput: ... + + @_overload def cancel_capacity_reservation_fleets( self, - input: CancelCapacityReservationFleetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelCapacityReservationFleetsInputDict], ) -> CancelCapacityReservationFleetsOutput: """ Cancels one or more Capacity Reservation Fleets. When you cancel a @@ -3322,8 +3576,6 @@ def cancel_capacity_reservation_fleets( - The Fleet stops creating new Capacity Reservations. Args: - input: - An instance of `CancelCapacityReservationFleetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3333,12 +3585,36 @@ def cancel_capacity_reservation_fleets( Returns: An instance of `CancelCapacityReservationFleetsOutput`. """ + + def cancel_capacity_reservation_fleets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelCapacityReservationFleetsOutput: return self._invoke( - input, _models.CANCEL_CAPACITY_RESERVATION_FLEETS, [], plugins + self._select_input( + _models.CANCEL_CAPACITY_RESERVATION_FLEETS, args, kwargs + ), + _models.CANCEL_CAPACITY_RESERVATION_FLEETS, + [], + plugins, ) + @_overload + def cancel_conversion_task( + self, + request: _models.CancelConversionTaskInput + | _models.CancelConversionTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelConversionTaskOutput: ... + + @_overload def cancel_conversion_task( - self, input: CancelConversionTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelConversionTaskInputDict], ) -> CancelConversionTaskOutput: """ Cancels an active conversion task. The task can be the import of an @@ -3348,8 +3624,6 @@ def cancel_conversion_task( command fails and returns an exception. Args: - input: - An instance of `CancelConversionTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3359,12 +3633,34 @@ def cancel_conversion_task( Returns: An instance of `CancelConversionTaskOutput`. """ - return self._invoke(input, _models.CANCEL_CONVERSION_TASK, [], plugins) + def cancel_conversion_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelConversionTaskOutput: + return self._invoke( + self._select_input(_models.CANCEL_CONVERSION_TASK, args, kwargs), + _models.CANCEL_CONVERSION_TASK, + [], + plugins, + ) + + @_overload + def cancel_declarative_policies_report( + self, + request: _models.CancelDeclarativePoliciesReportInput + | _models.CancelDeclarativePoliciesReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelDeclarativePoliciesReportOutput: ... + + @_overload def cancel_declarative_policies_report( self, - input: CancelDeclarativePoliciesReportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelDeclarativePoliciesReportInputDict], ) -> CancelDeclarativePoliciesReportOutput: """ Cancels the generation of an account status report. @@ -3379,8 +3675,6 @@ def cancel_declarative_policies_report( in the *Amazon Web Services Organizations User Guide*. Args: - input: - An instance of `CancelDeclarativePoliciesReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3390,12 +3684,35 @@ def cancel_declarative_policies_report( Returns: An instance of `CancelDeclarativePoliciesReportOutput`. """ + + def cancel_declarative_policies_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelDeclarativePoliciesReportOutput: return self._invoke( - input, _models.CANCEL_DECLARATIVE_POLICIES_REPORT, [], plugins + self._select_input( + _models.CANCEL_DECLARATIVE_POLICIES_REPORT, args, kwargs + ), + _models.CANCEL_DECLARATIVE_POLICIES_REPORT, + [], + plugins, ) + @_overload + def cancel_export_task( + self, + request: _models.CancelExportTaskInput | _models.CancelExportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelExportTaskOutput: ... + + @_overload def cancel_export_task( - self, input: CancelExportTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelExportTaskInputDict], ) -> CancelExportTaskOutput: """ Cancels an active export task. The request removes all artifacts of the @@ -3404,8 +3721,6 @@ def cancel_export_task( image, the command fails and returns an error. Args: - input: - An instance of `CancelExportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3415,12 +3730,34 @@ def cancel_export_task( Returns: An instance of `CancelExportTaskOutput`. """ - return self._invoke(input, _models.CANCEL_EXPORT_TASK, [], plugins) + def cancel_export_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelExportTaskOutput: + return self._invoke( + self._select_input(_models.CANCEL_EXPORT_TASK, args, kwargs), + _models.CANCEL_EXPORT_TASK, + [], + plugins, + ) + + @_overload + def cancel_image_launch_permission( + self, + request: _models.CancelImageLaunchPermissionInput + | _models.CancelImageLaunchPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelImageLaunchPermissionOutput: ... + + @_overload def cancel_image_launch_permission( self, - input: CancelImageLaunchPermissionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelImageLaunchPermissionInputDict], ) -> CancelImageLaunchPermissionOutput: """ Removes your Amazon Web Services account from the launch permissions for @@ -3430,8 +3767,6 @@ def cancel_image_launch_permission( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CancelImageLaunchPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3441,19 +3776,38 @@ def cancel_image_launch_permission( Returns: An instance of `CancelImageLaunchPermissionOutput`. """ - return self._invoke(input, _models.CANCEL_IMAGE_LAUNCH_PERMISSION, [], plugins) + def cancel_image_launch_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelImageLaunchPermissionOutput: + return self._invoke( + self._select_input(_models.CANCEL_IMAGE_LAUNCH_PERMISSION, args, kwargs), + _models.CANCEL_IMAGE_LAUNCH_PERMISSION, + [], + plugins, + ) + + @_overload + def cancel_import_task( + self, + request: _models.CancelImportTaskInput | _models.CancelImportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelImportTaskOutput: ... + + @_overload def cancel_import_task( self, - input: CancelImportTaskInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelImportTaskInputDict], ) -> CancelImportTaskOutput: """ Cancels an in-process import virtual machine or import snapshot task. Args: - input: - An instance of `CancelImportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3463,12 +3817,34 @@ def cancel_import_task( Returns: An instance of `CancelImportTaskOutput`. """ - return self._invoke(input, _models.CANCEL_IMPORT_TASK, [], plugins) + def cancel_import_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelImportTaskOutput: + return self._invoke( + self._select_input(_models.CANCEL_IMPORT_TASK, args, kwargs), + _models.CANCEL_IMPORT_TASK, + [], + plugins, + ) + + @_overload + def cancel_reserved_instances_listing( + self, + request: _models.CancelReservedInstancesListingInput + | _models.CancelReservedInstancesListingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelReservedInstancesListingOutput: ... + + @_overload def cancel_reserved_instances_listing( self, - input: CancelReservedInstancesListingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelReservedInstancesListingInputDict], ) -> CancelReservedInstancesListingOutput: """ Cancels the specified Reserved Instance listing in the Reserved Instance @@ -3479,8 +3855,6 @@ def cancel_reserved_instances_listing( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CancelReservedInstancesListingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3490,12 +3864,34 @@ def cancel_reserved_instances_listing( Returns: An instance of `CancelReservedInstancesListingOutput`. """ + + def cancel_reserved_instances_listing( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelReservedInstancesListingOutput: return self._invoke( - input, _models.CANCEL_RESERVED_INSTANCES_LISTING, [], plugins + self._select_input(_models.CANCEL_RESERVED_INSTANCES_LISTING, args, kwargs), + _models.CANCEL_RESERVED_INSTANCES_LISTING, + [], + plugins, ) + @_overload + def cancel_spot_fleet_requests( + self, + request: _models.CancelSpotFleetRequestsInput + | _models.CancelSpotFleetRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelSpotFleetRequestsOutput: ... + + @_overload def cancel_spot_fleet_requests( - self, input: CancelSpotFleetRequestsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelSpotFleetRequestsInputDict], ) -> CancelSpotFleetRequestsOutput: """ Cancels the specified Spot Fleet requests. @@ -3530,8 +3926,6 @@ def cancel_spot_fleet_requests( specified number, no fleets are deleted. Args: - input: - An instance of `CancelSpotFleetRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3541,12 +3935,34 @@ def cancel_spot_fleet_requests( Returns: An instance of `CancelSpotFleetRequestsOutput`. """ - return self._invoke(input, _models.CANCEL_SPOT_FLEET_REQUESTS, [], plugins) + def cancel_spot_fleet_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelSpotFleetRequestsOutput: + return self._invoke( + self._select_input(_models.CANCEL_SPOT_FLEET_REQUESTS, args, kwargs), + _models.CANCEL_SPOT_FLEET_REQUESTS, + [], + plugins, + ) + + @_overload + def cancel_spot_instance_requests( + self, + request: _models.CancelSpotInstanceRequestsInput + | _models.CancelSpotInstanceRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelSpotInstanceRequestsOutput: ... + + @_overload def cancel_spot_instance_requests( self, - input: CancelSpotInstanceRequestsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelSpotInstanceRequestsInputDict], ) -> CancelSpotInstanceRequestsOutput: """ Cancels one or more Spot Instance requests. @@ -3556,8 +3972,6 @@ def cancel_spot_instance_requests( Instances associated with the request. Args: - input: - An instance of `CancelSpotInstanceRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3567,10 +3981,34 @@ def cancel_spot_instance_requests( Returns: An instance of `CancelSpotInstanceRequestsOutput`. """ - return self._invoke(input, _models.CANCEL_SPOT_INSTANCE_REQUESTS, [], plugins) + def cancel_spot_instance_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelSpotInstanceRequestsOutput: + return self._invoke( + self._select_input(_models.CANCEL_SPOT_INSTANCE_REQUESTS, args, kwargs), + _models.CANCEL_SPOT_INSTANCE_REQUESTS, + [], + plugins, + ) + + @_overload + def confirm_product_instance( + self, + request: _models.ConfirmProductInstanceInput + | _models.ConfirmProductInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ConfirmProductInstanceOutput: ... + + @_overload def confirm_product_instance( - self, input: ConfirmProductInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConfirmProductInstanceInputDict], ) -> ConfirmProductInstanceOutput: """ Determines whether a product code is associated with an instance. This @@ -3579,8 +4017,6 @@ def confirm_product_instance( is eligible for support. Args: - input: - An instance of `ConfirmProductInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3590,17 +4026,38 @@ def confirm_product_instance( Returns: An instance of `ConfirmProductInstanceOutput`. """ - return self._invoke(input, _models.CONFIRM_PRODUCT_INSTANCE, [], plugins) + def confirm_product_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ConfirmProductInstanceOutput: + return self._invoke( + self._select_input(_models.CONFIRM_PRODUCT_INSTANCE, args, kwargs), + _models.CONFIRM_PRODUCT_INSTANCE, + [], + plugins, + ) + + @_overload + def copy_fpga_image( + self, + request: _models.CopyFpgaImageInput | _models.CopyFpgaImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyFpgaImageOutput: ... + + @_overload def copy_fpga_image( - self, input: CopyFpgaImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyFpgaImageInputDict], ) -> CopyFpgaImageOutput: """ Copies the specified Amazon FPGA Image (AFI) to the current Region. Args: - input: - An instance of `CopyFpgaImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3610,10 +4067,33 @@ def copy_fpga_image( Returns: An instance of `CopyFpgaImageOutput`. """ - return self._invoke(input, _models.COPY_FPGA_IMAGE, [], plugins) + def copy_fpga_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyFpgaImageOutput: + return self._invoke( + self._select_input(_models.COPY_FPGA_IMAGE, args, kwargs), + _models.COPY_FPGA_IMAGE, + [], + plugins, + ) + + @_overload def copy_image( - self, input: CopyImageInput, plugins: list[Plugin] | None = None + self, + request: _models.CopyImageInput | _models.CopyImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyImageOutput: ... + + @_overload + def copy_image( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyImageInputDict], ) -> CopyImageOutput: """ Initiates an AMI copy operation. You must specify the source AMI ID and @@ -3687,8 +4167,6 @@ def copy_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CopyImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3698,10 +4176,33 @@ def copy_image( Returns: An instance of `CopyImageOutput`. """ - return self._invoke(input, _models.COPY_IMAGE, [], plugins) + def copy_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyImageOutput: + return self._invoke( + self._select_input(_models.COPY_IMAGE, args, kwargs), + _models.COPY_IMAGE, + [], + plugins, + ) + + @_overload + def copy_snapshot( + self, + request: _models.CopySnapshotInput | _models.CopySnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopySnapshotOutput: ... + + @_overload def copy_snapshot( - self, input: CopySnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopySnapshotInputDict], ) -> CopySnapshotOutput: """ Creates an exact copy of an Amazon EBS snapshot. @@ -3740,8 +4241,6 @@ def copy_snapshot( in the *Amazon EBS User Guide*. Args: - input: - An instance of `CopySnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3751,10 +4250,33 @@ def copy_snapshot( Returns: An instance of `CopySnapshotOutput`. """ - return self._invoke(input, _models.COPY_SNAPSHOT, [], plugins) + def copy_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopySnapshotOutput: + return self._invoke( + self._select_input(_models.COPY_SNAPSHOT, args, kwargs), + _models.COPY_SNAPSHOT, + [], + plugins, + ) + + @_overload + def copy_volumes( + self, + request: _models.CopyVolumesInput | _models.CopyVolumesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyVolumesOutput: ... + + @_overload def copy_volumes( - self, input: CopyVolumesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyVolumesInputDict], ) -> CopyVolumesOutput: """ Creates a crash-consistent, point-in-time copy of an existing Amazon EBS @@ -3764,8 +4286,6 @@ def copy_volumes( volume](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copying-volume.html). Args: - input: - An instance of `CopyVolumesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3775,12 +4295,34 @@ def copy_volumes( Returns: An instance of `CopyVolumesOutput`. """ - return self._invoke(input, _models.COPY_VOLUMES, [], plugins) + def copy_volumes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyVolumesOutput: + return self._invoke( + self._select_input(_models.COPY_VOLUMES, args, kwargs), + _models.COPY_VOLUMES, + [], + plugins, + ) + + @_overload + def create_application_status_check( + self, + request: _models.CreateApplicationStatusCheckInput + | _models.CreateApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateApplicationStatusCheckOutput: ... + + @_overload def create_application_status_check( self, - input: CreateApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateApplicationStatusCheckInputDict], ) -> CreateApplicationStatusCheckOutput: """ Creates an application status check for monitoring the health of @@ -3812,8 +4354,6 @@ def create_application_status_check( resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html). Args: - input: - An instance of `CreateApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3823,12 +4363,34 @@ def create_application_status_check( Returns: An instance of `CreateApplicationStatusCheckOutput`. """ - return self._invoke(input, _models.CREATE_APPLICATION_STATUS_CHECK, [], plugins) + def create_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateApplicationStatusCheckOutput: + return self._invoke( + self._select_input(_models.CREATE_APPLICATION_STATUS_CHECK, args, kwargs), + _models.CREATE_APPLICATION_STATUS_CHECK, + [], + plugins, + ) + + @_overload + def create_capacity_manager_data_export( + self, + request: _models.CreateCapacityManagerDataExportInput + | _models.CreateCapacityManagerDataExportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityManagerDataExportOutput: ... + + @_overload def create_capacity_manager_data_export( self, - input: CreateCapacityManagerDataExportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityManagerDataExportInputDict], ) -> CreateCapacityManagerDataExportOutput: """ Creates a new data export configuration for EC2 Capacity Manager. This @@ -3837,8 +4399,6 @@ def create_capacity_manager_data_export( Spot, and Capacity Reservations usage across your organization. Args: - input: - An instance of `CreateCapacityManagerDataExportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3848,17 +4408,41 @@ def create_capacity_manager_data_export( Returns: An instance of `CreateCapacityManagerDataExportOutput`. """ + + def create_capacity_manager_data_export( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityManagerDataExportOutput: return self._invoke( - input, _models.CREATE_CAPACITY_MANAGER_DATA_EXPORT, [], plugins + self._select_input( + _models.CREATE_CAPACITY_MANAGER_DATA_EXPORT, args, kwargs + ), + _models.CREATE_CAPACITY_MANAGER_DATA_EXPORT, + [], + plugins, ) + @_overload def create_capacity_reservation( - self, input: CreateCapacityReservationInput, plugins: list[Plugin] | None = None - ) -> CreateCapacityReservationOutput: - """ - Creates a new Capacity Reservation with the specified attributes. - Capacity Reservations enable you to reserve capacity for your Amazon EC2 - instances in a specific Availability Zone for any duration. + self, + request: _models.CreateCapacityReservationInput + | _models.CreateCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationOutput: ... + + @_overload + def create_capacity_reservation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationInputDict], + ) -> CreateCapacityReservationOutput: + """ + Creates a new Capacity Reservation with the specified attributes. + Capacity Reservations enable you to reserve capacity for your Amazon EC2 + instances in a specific Availability Zone for any duration. You can create a Capacity Reservation at any time, and you can choose when it starts. You can create a Capacity Reservation for immediate use @@ -3884,8 +4468,6 @@ def create_capacity_reservation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3895,12 +4477,34 @@ def create_capacity_reservation( Returns: An instance of `CreateCapacityReservationOutput`. """ - return self._invoke(input, _models.CREATE_CAPACITY_RESERVATION, [], plugins) + def create_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationOutput: + return self._invoke( + self._select_input(_models.CREATE_CAPACITY_RESERVATION, args, kwargs), + _models.CREATE_CAPACITY_RESERVATION, + [], + plugins, + ) + + @_overload + def create_capacity_reservation_by_splitting( + self, + request: _models.CreateCapacityReservationBySplittingInput + | _models.CreateCapacityReservationBySplittingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationBySplittingOutput: ... + + @_overload def create_capacity_reservation_by_splitting( self, - input: CreateCapacityReservationBySplittingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationBySplittingInputDict], ) -> CreateCapacityReservationBySplittingOutput: """ Create a new Capacity Reservation by splitting the capacity of the @@ -3910,8 +4514,6 @@ def create_capacity_reservation_by_splitting( Web Services account. Args: - input: - An instance of `CreateCapacityReservationBySplittingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3921,14 +4523,36 @@ def create_capacity_reservation_by_splitting( Returns: An instance of `CreateCapacityReservationBySplittingOutput`. """ + + def create_capacity_reservation_by_splitting( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationBySplittingOutput: return self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION_BY_SPLITTING, [], plugins + self._select_input( + _models.CREATE_CAPACITY_RESERVATION_BY_SPLITTING, args, kwargs + ), + _models.CREATE_CAPACITY_RESERVATION_BY_SPLITTING, + [], + plugins, ) + @_overload + def create_capacity_reservation_cancellation_quote( + self, + request: _models.CreateCapacityReservationCancellationQuoteInput + | _models.CreateCapacityReservationCancellationQuoteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationCancellationQuoteOutput: ... + + @_overload def create_capacity_reservation_cancellation_quote( self, - input: CreateCapacityReservationCancellationQuoteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationCancellationQuoteInputDict], ) -> CreateCapacityReservationCancellationQuoteOutput: """ Generates a cancellation quote for a future-dated Capacity Reservation @@ -3938,8 +4562,6 @@ def create_capacity_reservation_cancellation_quote( hours. Args: - input: - An instance of `CreateCapacityReservationCancellationQuoteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3949,14 +4571,36 @@ def create_capacity_reservation_cancellation_quote( Returns: An instance of `CreateCapacityReservationCancellationQuoteOutput`. """ + + def create_capacity_reservation_cancellation_quote( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationCancellationQuoteOutput: return self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION_CANCELLATION_QUOTE, [], plugins + self._select_input( + _models.CREATE_CAPACITY_RESERVATION_CANCELLATION_QUOTE, args, kwargs + ), + _models.CREATE_CAPACITY_RESERVATION_CANCELLATION_QUOTE, + [], + plugins, ) + @_overload + def create_capacity_reservation_date_change_quote( + self, + request: _models.CreateCapacityReservationDateChangeQuoteInput + | _models.CreateCapacityReservationDateChangeQuoteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationDateChangeQuoteOutput: ... + + @_overload def create_capacity_reservation_date_change_quote( self, - input: CreateCapacityReservationDateChangeQuoteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationDateChangeQuoteInputDict], ) -> CreateCapacityReservationDateChangeQuoteOutput: """ Generates a quote for changing the start date of a future-dated Capacity @@ -3969,8 +4613,6 @@ def create_capacity_reservation_date_change_quote( hours, and always expire at least one hour before the start date. Args: - input: - An instance of `CreateCapacityReservationDateChangeQuoteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3980,14 +4622,36 @@ def create_capacity_reservation_date_change_quote( Returns: An instance of `CreateCapacityReservationDateChangeQuoteOutput`. """ + + def create_capacity_reservation_date_change_quote( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationDateChangeQuoteOutput: return self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTE, [], plugins + self._select_input( + _models.CREATE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTE, args, kwargs + ), + _models.CREATE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTE, + [], + plugins, ) + @_overload + def create_capacity_reservation_fleet( + self, + request: _models.CreateCapacityReservationFleetInput + | _models.CreateCapacityReservationFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityReservationFleetOutput: ... + + @_overload def create_capacity_reservation_fleet( self, - input: CreateCapacityReservationFleetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityReservationFleetInputDict], ) -> CreateCapacityReservationFleetOutput: """ Creates a Capacity Reservation Fleet. For more information, see [Create @@ -3996,8 +4660,6 @@ def create_capacity_reservation_fleet( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateCapacityReservationFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4007,12 +4669,34 @@ def create_capacity_reservation_fleet( Returns: An instance of `CreateCapacityReservationFleetOutput`. """ + + def create_capacity_reservation_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityReservationFleetOutput: return self._invoke( - input, _models.CREATE_CAPACITY_RESERVATION_FLEET, [], plugins + self._select_input(_models.CREATE_CAPACITY_RESERVATION_FLEET, args, kwargs), + _models.CREATE_CAPACITY_RESERVATION_FLEET, + [], + plugins, ) + @_overload + def create_carrier_gateway( + self, + request: _models.CreateCarrierGatewayInput + | _models.CreateCarrierGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCarrierGatewayOutput: ... + + @_overload def create_carrier_gateway( - self, input: CreateCarrierGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCarrierGatewayInputDict], ) -> CreateCarrierGatewayOutput: """ Creates a carrier gateway. For more information about carrier gateways, @@ -4021,8 +4705,6 @@ def create_carrier_gateway( in the *Amazon Web Services Wavelength Developer Guide*. Args: - input: - An instance of `CreateCarrierGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4032,10 +4714,34 @@ def create_carrier_gateway( Returns: An instance of `CreateCarrierGatewayOutput`. """ - return self._invoke(input, _models.CREATE_CARRIER_GATEWAY, [], plugins) + def create_carrier_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCarrierGatewayOutput: + return self._invoke( + self._select_input(_models.CREATE_CARRIER_GATEWAY, args, kwargs), + _models.CREATE_CARRIER_GATEWAY, + [], + plugins, + ) + + @_overload + def create_client_vpn_endpoint( + self, + request: _models.CreateClientVpnEndpointInput + | _models.CreateClientVpnEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateClientVpnEndpointOutput: ... + + @_overload def create_client_vpn_endpoint( - self, input: CreateClientVpnEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateClientVpnEndpointInputDict], ) -> CreateClientVpnEndpointOutput: """ Creates a Client VPN endpoint. A Client VPN endpoint is the resource you @@ -4043,8 +4749,6 @@ def create_client_vpn_endpoint( destination endpoint at which all client VPN sessions are terminated. Args: - input: - An instance of `CreateClientVpnEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4054,10 +4758,34 @@ def create_client_vpn_endpoint( Returns: An instance of `CreateClientVpnEndpointOutput`. """ - return self._invoke(input, _models.CREATE_CLIENT_VPN_ENDPOINT, [], plugins) + def create_client_vpn_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateClientVpnEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_CLIENT_VPN_ENDPOINT, args, kwargs), + _models.CREATE_CLIENT_VPN_ENDPOINT, + [], + plugins, + ) + + @_overload def create_client_vpn_route( - self, input: CreateClientVpnRouteInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateClientVpnRouteInput + | _models.CreateClientVpnRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateClientVpnRouteOutput: ... + + @_overload + def create_client_vpn_route( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateClientVpnRouteInputDict], ) -> CreateClientVpnRouteOutput: """ Adds a route to a network to a Client VPN endpoint. Each Client VPN @@ -4066,8 +4794,6 @@ def create_client_vpn_route( traffic to specific resources or networks. Args: - input: - An instance of `CreateClientVpnRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4077,17 +4803,38 @@ def create_client_vpn_route( Returns: An instance of `CreateClientVpnRouteOutput`. """ - return self._invoke(input, _models.CREATE_CLIENT_VPN_ROUTE, [], plugins) + def create_client_vpn_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateClientVpnRouteOutput: + return self._invoke( + self._select_input(_models.CREATE_CLIENT_VPN_ROUTE, args, kwargs), + _models.CREATE_CLIENT_VPN_ROUTE, + [], + plugins, + ) + + @_overload + def create_coip_cidr( + self, + request: _models.CreateCoipCidrInput | _models.CreateCoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCoipCidrOutput: ... + + @_overload def create_coip_cidr( - self, input: CreateCoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCoipCidrInputDict], ) -> CreateCoipCidrOutput: """ Creates a range of customer-owned IP addresses. Args: - input: - An instance of `CreateCoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4097,17 +4844,38 @@ def create_coip_cidr( Returns: An instance of `CreateCoipCidrOutput`. """ - return self._invoke(input, _models.CREATE_COIP_CIDR, [], plugins) + def create_coip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCoipCidrOutput: + return self._invoke( + self._select_input(_models.CREATE_COIP_CIDR, args, kwargs), + _models.CREATE_COIP_CIDR, + [], + plugins, + ) + + @_overload + def create_coip_pool( + self, + request: _models.CreateCoipPoolInput | _models.CreateCoipPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCoipPoolOutput: ... + + @_overload def create_coip_pool( - self, input: CreateCoipPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCoipPoolInputDict], ) -> CreateCoipPoolOutput: """ Creates a pool of customer-owned IP (CoIP) addresses. Args: - input: - An instance of `CreateCoipPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4117,10 +4885,34 @@ def create_coip_pool( Returns: An instance of `CreateCoipPoolOutput`. """ - return self._invoke(input, _models.CREATE_COIP_POOL, [], plugins) + def create_coip_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCoipPoolOutput: + return self._invoke( + self._select_input(_models.CREATE_COIP_POOL, args, kwargs), + _models.CREATE_COIP_POOL, + [], + plugins, + ) + + @_overload + def create_customer_gateway( + self, + request: _models.CreateCustomerGatewayInput + | _models.CreateCustomerGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomerGatewayOutput: ... + + @_overload def create_customer_gateway( - self, input: CreateCustomerGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomerGatewayInputDict], ) -> CreateCustomerGatewayOutput: """ Provides information to Amazon Web Services about your customer gateway @@ -4143,8 +4935,6 @@ def create_customer_gateway( customer gateway; it doesn't create a new customer gateway. Args: - input: - An instance of `CreateCustomerGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4154,12 +4944,34 @@ def create_customer_gateway( Returns: An instance of `CreateCustomerGatewayOutput`. """ - return self._invoke(input, _models.CREATE_CUSTOMER_GATEWAY, [], plugins) + def create_customer_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomerGatewayOutput: + return self._invoke( + self._select_input(_models.CREATE_CUSTOMER_GATEWAY, args, kwargs), + _models.CREATE_CUSTOMER_GATEWAY, + [], + plugins, + ) + + @_overload + def create_default_subnet( + self, + request: _models.CreateDefaultSubnetInput + | _models.CreateDefaultSubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDefaultSubnetOutput: ... + + @_overload def create_default_subnet( self, - input: CreateDefaultSubnetInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDefaultSubnetInputDict], ) -> CreateDefaultSubnetOutput: """ Creates a default subnet with a size `/20` IPv4 CIDR block in the @@ -4170,8 +4982,6 @@ def create_default_subnet( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateDefaultSubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4181,12 +4991,33 @@ def create_default_subnet( Returns: An instance of `CreateDefaultSubnetOutput`. """ - return self._invoke(input, _models.CREATE_DEFAULT_SUBNET, [], plugins) + def create_default_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDefaultSubnetOutput: + return self._invoke( + self._select_input(_models.CREATE_DEFAULT_SUBNET, args, kwargs), + _models.CREATE_DEFAULT_SUBNET, + [], + plugins, + ) + + @_overload + def create_default_vpc( + self, + request: _models.CreateDefaultVpcInput | _models.CreateDefaultVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDefaultVpcOutput: ... + + @_overload def create_default_vpc( self, - input: CreateDefaultVpcInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDefaultVpcInputDict], ) -> CreateDefaultVpcOutput: """ Creates a default VPC with a size `/16` IPv4 CIDR block and a default @@ -4200,8 +5031,6 @@ def create_default_vpc( You cannot have more than one default VPC per Region. Args: - input: - An instance of `CreateDefaultVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4211,20 +5040,40 @@ def create_default_vpc( Returns: An instance of `CreateDefaultVpcOutput`. """ - return self._invoke(input, _models.CREATE_DEFAULT_VPC, [], plugins) + def create_default_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDefaultVpcOutput: + return self._invoke( + self._select_input(_models.CREATE_DEFAULT_VPC, args, kwargs), + _models.CREATE_DEFAULT_VPC, + [], + plugins, + ) + + @_overload + def create_delegate_mac_volume_ownership_task( + self, + request: _models.CreateDelegateMacVolumeOwnershipTaskInput + | _models.CreateDelegateMacVolumeOwnershipTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDelegateMacVolumeOwnershipTaskOutput: ... + + @_overload def create_delegate_mac_volume_ownership_task( self, - input: CreateDelegateMacVolumeOwnershipTaskInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDelegateMacVolumeOwnershipTaskInputDict], ) -> CreateDelegateMacVolumeOwnershipTaskOutput: """ Delegates ownership of the Amazon EBS root volume for an Apple silicon Mac instance to an administrative user. Args: - input: - An instance of `CreateDelegateMacVolumeOwnershipTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4234,12 +5083,35 @@ def create_delegate_mac_volume_ownership_task( Returns: An instance of `CreateDelegateMacVolumeOwnershipTaskOutput`. """ + + def create_delegate_mac_volume_ownership_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDelegateMacVolumeOwnershipTaskOutput: return self._invoke( - input, _models.CREATE_DELEGATE_MAC_VOLUME_OWNERSHIP_TASK, [], plugins + self._select_input( + _models.CREATE_DELEGATE_MAC_VOLUME_OWNERSHIP_TASK, args, kwargs + ), + _models.CREATE_DELEGATE_MAC_VOLUME_OWNERSHIP_TASK, + [], + plugins, ) + @_overload + def create_dhcp_options( + self, + request: _models.CreateDhcpOptionsInput | _models.CreateDhcpOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDhcpOptionsOutput: ... + + @_overload def create_dhcp_options( - self, input: CreateDhcpOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDhcpOptionsInputDict], ) -> CreateDhcpOptionsOutput: """ Creates a custom set of DHCP options. After you create a DHCP option @@ -4292,8 +5164,6 @@ def create_dhcp_options( typically occurs when half of the lease time has elapsed. Args: - input: - An instance of `CreateDhcpOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4303,12 +5173,34 @@ def create_dhcp_options( Returns: An instance of `CreateDhcpOptionsOutput`. """ - return self._invoke(input, _models.CREATE_DHCP_OPTIONS, [], plugins) + def create_dhcp_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDhcpOptionsOutput: + return self._invoke( + self._select_input(_models.CREATE_DHCP_OPTIONS, args, kwargs), + _models.CREATE_DHCP_OPTIONS, + [], + plugins, + ) + + @_overload def create_egress_only_internet_gateway( self, - input: CreateEgressOnlyInternetGatewayInput, + request: _models.CreateEgressOnlyInternetGatewayInput + | _models.CreateEgressOnlyInternetGatewayInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateEgressOnlyInternetGatewayOutput: ... + + @_overload + def create_egress_only_internet_gateway( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEgressOnlyInternetGatewayInputDict], ) -> CreateEgressOnlyInternetGatewayOutput: """ [IPv6 only] Creates an egress-only internet gateway for your VPC. An @@ -4318,8 +5210,6 @@ def create_egress_only_internet_gateway( instance. Args: - input: - An instance of `CreateEgressOnlyInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4329,12 +5219,35 @@ def create_egress_only_internet_gateway( Returns: An instance of `CreateEgressOnlyInternetGatewayOutput`. """ + + def create_egress_only_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEgressOnlyInternetGatewayOutput: return self._invoke( - input, _models.CREATE_EGRESS_ONLY_INTERNET_GATEWAY, [], plugins + self._select_input( + _models.CREATE_EGRESS_ONLY_INTERNET_GATEWAY, args, kwargs + ), + _models.CREATE_EGRESS_ONLY_INTERNET_GATEWAY, + [], + plugins, ) + @_overload + def create_fleet( + self, + request: _models.CreateFleetInput | _models.CreateFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFleetOutput: ... + + @_overload def create_fleet( - self, input: CreateFleetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFleetInputDict], ) -> CreateFleetOutput: """ Creates an EC2 Fleet that contains the configuration information for @@ -4349,8 +5262,6 @@ def create_fleet( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4360,10 +5271,33 @@ def create_fleet( Returns: An instance of `CreateFleetOutput`. """ - return self._invoke(input, _models.CREATE_FLEET, [], plugins) + def create_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFleetOutput: + return self._invoke( + self._select_input(_models.CREATE_FLEET, args, kwargs), + _models.CREATE_FLEET, + [], + plugins, + ) + + @_overload + def create_flow_logs( + self, + request: _models.CreateFlowLogsInput | _models.CreateFlowLogsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFlowLogsOutput: ... + + @_overload def create_flow_logs( - self, input: CreateFlowLogsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFlowLogsInputDict], ) -> CreateFlowLogsOutput: """ Creates one or more flow logs to capture information about IP traffic @@ -4386,8 +5320,6 @@ def create_flow_logs( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateFlowLogsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4397,10 +5329,33 @@ def create_flow_logs( Returns: An instance of `CreateFlowLogsOutput`. """ - return self._invoke(input, _models.CREATE_FLOW_LOGS, [], plugins) + def create_flow_logs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFlowLogsOutput: + return self._invoke( + self._select_input(_models.CREATE_FLOW_LOGS, args, kwargs), + _models.CREATE_FLOW_LOGS, + [], + plugins, + ) + + @_overload + def create_fpga_image( + self, + request: _models.CreateFpgaImageInput | _models.CreateFpgaImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFpgaImageOutput: ... + + @_overload def create_fpga_image( - self, input: CreateFpgaImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFpgaImageInputDict], ) -> CreateFpgaImageOutput: """ Creates an Amazon FPGA Image (AFI) from the specified design checkpoint @@ -4415,8 +5370,6 @@ def create_fpga_image( Development Kit](https://github.com/aws/aws-fpga/). Args: - input: - An instance of `CreateFpgaImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4426,10 +5379,33 @@ def create_fpga_image( Returns: An instance of `CreateFpgaImageOutput`. """ - return self._invoke(input, _models.CREATE_FPGA_IMAGE, [], plugins) + def create_fpga_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFpgaImageOutput: + return self._invoke( + self._select_input(_models.CREATE_FPGA_IMAGE, args, kwargs), + _models.CREATE_FPGA_IMAGE, + [], + plugins, + ) + + @_overload def create_image( - self, input: CreateImageInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateImageInput | _models.CreateImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateImageOutput: ... + + @_overload + def create_image( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateImageInputDict], ) -> CreateImageOutput: """ Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that @@ -4460,8 +5436,6 @@ def create_image( in the *Amazon Elastic Compute Cloud User Guide*. Args: - input: - An instance of `CreateImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4471,10 +5445,34 @@ def create_image( Returns: An instance of `CreateImageOutput`. """ - return self._invoke(input, _models.CREATE_IMAGE, [], plugins) + def create_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateImageOutput: + return self._invoke( + self._select_input(_models.CREATE_IMAGE, args, kwargs), + _models.CREATE_IMAGE, + [], + plugins, + ) + + @_overload + def create_image_usage_report( + self, + request: _models.CreateImageUsageReportInput + | _models.CreateImageUsageReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateImageUsageReportOutput: ... + + @_overload def create_image_usage_report( - self, input: CreateImageUsageReportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateImageUsageReportInputDict], ) -> CreateImageUsageReportOutput: """ Creates a report that shows how your image is used across other Amazon @@ -4487,8 +5485,6 @@ def create_image_usage_report( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateImageUsageReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4498,12 +5494,34 @@ def create_image_usage_report( Returns: An instance of `CreateImageUsageReportOutput`. """ - return self._invoke(input, _models.CREATE_IMAGE_USAGE_REPORT, [], plugins) + def create_image_usage_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateImageUsageReportOutput: + return self._invoke( + self._select_input(_models.CREATE_IMAGE_USAGE_REPORT, args, kwargs), + _models.CREATE_IMAGE_USAGE_REPORT, + [], + plugins, + ) + + @_overload + def create_instance_connect_endpoint( + self, + request: _models.CreateInstanceConnectEndpointInput + | _models.CreateInstanceConnectEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInstanceConnectEndpointOutput: ... + + @_overload def create_instance_connect_endpoint( self, - input: CreateInstanceConnectEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInstanceConnectEndpointInputDict], ) -> CreateInstanceConnectEndpointOutput: """ Creates an EC2 Instance Connect Endpoint. @@ -4516,8 +5534,6 @@ def create_instance_connect_endpoint( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateInstanceConnectEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4527,14 +5543,34 @@ def create_instance_connect_endpoint( Returns: An instance of `CreateInstanceConnectEndpointOutput`. """ - return self._invoke( - input, _models.CREATE_INSTANCE_CONNECT_ENDPOINT, [], plugins - ) + def create_instance_connect_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInstanceConnectEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_INSTANCE_CONNECT_ENDPOINT, args, kwargs), + _models.CREATE_INSTANCE_CONNECT_ENDPOINT, + [], + plugins, + ) + + @_overload + def create_instance_event_window( + self, + request: _models.CreateInstanceEventWindowInput + | _models.CreateInstanceEventWindowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInstanceEventWindowOutput: ... + + @_overload def create_instance_event_window( self, - input: CreateInstanceEventWindowInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInstanceEventWindowInputDict], ) -> CreateInstanceEventWindowOutput: """ Creates an event window in which scheduled events for the associated @@ -4566,8 +5602,6 @@ def create_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4577,10 +5611,34 @@ def create_instance_event_window( Returns: An instance of `CreateInstanceEventWindowOutput`. """ - return self._invoke(input, _models.CREATE_INSTANCE_EVENT_WINDOW, [], plugins) + def create_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInstanceEventWindowOutput: + return self._invoke( + self._select_input(_models.CREATE_INSTANCE_EVENT_WINDOW, args, kwargs), + _models.CREATE_INSTANCE_EVENT_WINDOW, + [], + plugins, + ) + + @_overload + def create_instance_export_task( + self, + request: _models.CreateInstanceExportTaskInput + | _models.CreateInstanceExportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInstanceExportTaskOutput: ... + + @_overload def create_instance_export_task( - self, input: CreateInstanceExportTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInstanceExportTaskInputDict], ) -> CreateInstanceExportTaskOutput: """ Exports a running or stopped instance to an Amazon S3 bucket. @@ -4593,8 +5651,6 @@ def create_instance_export_task( in the *VM Import/Export User Guide*. Args: - input: - An instance of `CreateInstanceExportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4604,12 +5660,34 @@ def create_instance_export_task( Returns: An instance of `CreateInstanceExportTaskOutput`. """ - return self._invoke(input, _models.CREATE_INSTANCE_EXPORT_TASK, [], plugins) + def create_instance_export_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInstanceExportTaskOutput: + return self._invoke( + self._select_input(_models.CREATE_INSTANCE_EXPORT_TASK, args, kwargs), + _models.CREATE_INSTANCE_EXPORT_TASK, + [], + plugins, + ) + + @_overload + def create_internet_gateway( + self, + request: _models.CreateInternetGatewayInput + | _models.CreateInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInternetGatewayOutput: ... + + @_overload def create_internet_gateway( self, - input: CreateInternetGatewayInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInternetGatewayInputDict], ) -> CreateInternetGatewayOutput: """ Creates an internet gateway for use with a VPC. After creating the @@ -4620,8 +5698,6 @@ def create_internet_gateway( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4631,12 +5707,36 @@ def create_internet_gateway( Returns: An instance of `CreateInternetGatewayOutput`. """ - return self._invoke(input, _models.CREATE_INTERNET_GATEWAY, [], plugins) + def create_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInternetGatewayOutput: + return self._invoke( + self._select_input(_models.CREATE_INTERNET_GATEWAY, args, kwargs), + _models.CREATE_INTERNET_GATEWAY, + [], + plugins, + ) + + @_overload + def create_interruptible_capacity_reservation_allocation( + self, + request: _models.CreateInterruptibleCapacityReservationAllocationInput + | _models.CreateInterruptibleCapacityReservationAllocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInterruptibleCapacityReservationAllocationOutput: ... + + @_overload def create_interruptible_capacity_reservation_allocation( self, - input: CreateInterruptibleCapacityReservationAllocationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.CreateInterruptibleCapacityReservationAllocationInputDict + ], ) -> CreateInterruptibleCapacityReservationAllocationOutput: """ Creates an interruptible Capacity Reservation by specifying the number @@ -4645,8 +5745,6 @@ def create_interruptible_capacity_reservation_allocation( your account while maintaining control to reclaim it. Args: - input: - An instance of `CreateInterruptibleCapacityReservationAllocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4656,15 +5754,37 @@ def create_interruptible_capacity_reservation_allocation( Returns: An instance of `CreateInterruptibleCapacityReservationAllocationOutput`. """ + + def create_interruptible_capacity_reservation_allocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInterruptibleCapacityReservationAllocationOutput: return self._invoke( - input, + self._select_input( + _models.CREATE_INTERRUPTIBLE_CAPACITY_RESERVATION_ALLOCATION, + args, + kwargs, + ), _models.CREATE_INTERRUPTIBLE_CAPACITY_RESERVATION_ALLOCATION, [], plugins, ) + @_overload + def create_ipam( + self, + request: _models.CreateIpamInput | _models.CreateIpamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamOutput: ... + + @_overload def create_ipam( - self, input: CreateIpamInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamInputDict], ) -> CreateIpamOutput: """ Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature @@ -4678,8 +5798,6 @@ def create_ipam( the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4689,12 +5807,34 @@ def create_ipam( Returns: An instance of `CreateIpamOutput`. """ - return self._invoke(input, _models.CREATE_IPAM, [], plugins) + def create_ipam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamOutput: + return self._invoke( + self._select_input(_models.CREATE_IPAM, args, kwargs), + _models.CREATE_IPAM, + [], + plugins, + ) + + @_overload + def create_ipam_external_resource_verification_token( + self, + request: _models.CreateIpamExternalResourceVerificationTokenInput + | _models.CreateIpamExternalResourceVerificationTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamExternalResourceVerificationTokenOutput: ... + + @_overload def create_ipam_external_resource_verification_token( self, - input: CreateIpamExternalResourceVerificationTokenInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamExternalResourceVerificationTokenInputDict], ) -> CreateIpamExternalResourceVerificationTokenOutput: """ Create a verification token. @@ -4706,8 +5846,6 @@ def create_ipam_external_resource_verification_token( Services (BYOIP). Args: - input: - An instance of `CreateIpamExternalResourceVerificationTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4717,14 +5855,36 @@ def create_ipam_external_resource_verification_token( Returns: An instance of `CreateIpamExternalResourceVerificationTokenOutput`. """ + + def create_ipam_external_resource_verification_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamExternalResourceVerificationTokenOutput: return self._invoke( - input, _models.CREATE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, [], plugins + self._select_input( + _models.CREATE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, args, kwargs + ), + _models.CREATE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, + [], + plugins, ) + @_overload + def create_ipam_internet_registry_association( + self, + request: _models.CreateIpamInternetRegistryAssociationInput + | _models.CreateIpamInternetRegistryAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamInternetRegistryAssociationOutput: ... + + @_overload def create_ipam_internet_registry_association( self, - input: CreateIpamInternetRegistryAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamInternetRegistryAssociationInputDict], ) -> CreateIpamInternetRegistryAssociationOutput: """ Creates an association between an IPAM and a Regional Internet Registry @@ -4734,8 +5894,6 @@ def create_ipam_internet_registry_association( be in the Advanced tier to use this feature. Args: - input: - An instance of `CreateIpamInternetRegistryAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4745,12 +5903,35 @@ def create_ipam_internet_registry_association( Returns: An instance of `CreateIpamInternetRegistryAssociationOutput`. """ + + def create_ipam_internet_registry_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamInternetRegistryAssociationOutput: return self._invoke( - input, _models.CREATE_IPAM_INTERNET_REGISTRY_ASSOCIATION, [], plugins + self._select_input( + _models.CREATE_IPAM_INTERNET_REGISTRY_ASSOCIATION, args, kwargs + ), + _models.CREATE_IPAM_INTERNET_REGISTRY_ASSOCIATION, + [], + plugins, ) + @_overload def create_ipam_policy( - self, input: CreateIpamPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateIpamPolicyInput | _models.CreateIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamPolicyOutput: ... + + @_overload + def create_ipam_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamPolicyInputDict], ) -> CreateIpamPolicyOutput: """ Creates an IPAM policy. @@ -4770,8 +5951,6 @@ def create_ipam_policy( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4781,10 +5960,33 @@ def create_ipam_policy( Returns: An instance of `CreateIpamPolicyOutput`. """ - return self._invoke(input, _models.CREATE_IPAM_POLICY, [], plugins) + def create_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamPolicyOutput: + return self._invoke( + self._select_input(_models.CREATE_IPAM_POLICY, args, kwargs), + _models.CREATE_IPAM_POLICY, + [], + plugins, + ) + + @_overload + def create_ipam_pool( + self, + request: _models.CreateIpamPoolInput | _models.CreateIpamPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamPoolOutput: ... + + @_overload def create_ipam_pool( - self, input: CreateIpamPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamPoolInputDict], ) -> CreateIpamPoolOutput: """ Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In @@ -4799,8 +6001,6 @@ def create_ipam_pool( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4810,12 +6010,34 @@ def create_ipam_pool( Returns: An instance of `CreateIpamPoolOutput`. """ - return self._invoke(input, _models.CREATE_IPAM_POOL, [], plugins) + def create_ipam_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamPoolOutput: + return self._invoke( + self._select_input(_models.CREATE_IPAM_POOL, args, kwargs), + _models.CREATE_IPAM_POOL, + [], + plugins, + ) + + @_overload + def create_ipam_prefix_list_resolver( + self, + request: _models.CreateIpamPrefixListResolverInput + | _models.CreateIpamPrefixListResolverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamPrefixListResolverOutput: ... + + @_overload def create_ipam_prefix_list_resolver( self, - input: CreateIpamPrefixListResolverInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamPrefixListResolverInputDict], ) -> CreateIpamPrefixListResolverOutput: """ Creates an IPAM prefix list resolver. @@ -4833,8 +6055,6 @@ def create_ipam_prefix_list_resolver( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamPrefixListResolverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4844,14 +6064,34 @@ def create_ipam_prefix_list_resolver( Returns: An instance of `CreateIpamPrefixListResolverOutput`. """ + + def create_ipam_prefix_list_resolver( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamPrefixListResolverOutput: return self._invoke( - input, _models.CREATE_IPAM_PREFIX_LIST_RESOLVER, [], plugins + self._select_input(_models.CREATE_IPAM_PREFIX_LIST_RESOLVER, args, kwargs), + _models.CREATE_IPAM_PREFIX_LIST_RESOLVER, + [], + plugins, ) + @_overload + def create_ipam_prefix_list_resolver_target( + self, + request: _models.CreateIpamPrefixListResolverTargetInput + | _models.CreateIpamPrefixListResolverTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamPrefixListResolverTargetOutput: ... + + @_overload def create_ipam_prefix_list_resolver_target( self, - input: CreateIpamPrefixListResolverTargetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamPrefixListResolverTargetInputDict], ) -> CreateIpamPrefixListResolverTargetOutput: """ Creates an IPAM prefix list resolver target. @@ -4868,8 +6108,6 @@ def create_ipam_prefix_list_resolver_target( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamPrefixListResolverTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4879,14 +6117,36 @@ def create_ipam_prefix_list_resolver_target( Returns: An instance of `CreateIpamPrefixListResolverTargetOutput`. """ + + def create_ipam_prefix_list_resolver_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamPrefixListResolverTargetOutput: return self._invoke( - input, _models.CREATE_IPAM_PREFIX_LIST_RESOLVER_TARGET, [], plugins + self._select_input( + _models.CREATE_IPAM_PREFIX_LIST_RESOLVER_TARGET, args, kwargs + ), + _models.CREATE_IPAM_PREFIX_LIST_RESOLVER_TARGET, + [], + plugins, ) + @_overload + def create_ipam_resource_discovery( + self, + request: _models.CreateIpamResourceDiscoveryInput + | _models.CreateIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamResourceDiscoveryOutput: ... + + @_overload def create_ipam_resource_discovery( self, - input: CreateIpamResourceDiscoveryInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamResourceDiscoveryInputDict], ) -> CreateIpamResourceDiscoveryOutput: """ Creates an IPAM resource discovery. A resource discovery is an IPAM @@ -4894,8 +6154,6 @@ def create_ipam_resource_discovery( to the owning account. Args: - input: - An instance of `CreateIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4905,12 +6163,34 @@ def create_ipam_resource_discovery( Returns: An instance of `CreateIpamResourceDiscoveryOutput`. """ - return self._invoke(input, _models.CREATE_IPAM_RESOURCE_DISCOVERY, [], plugins) + def create_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamResourceDiscoveryOutput: + return self._invoke( + self._select_input(_models.CREATE_IPAM_RESOURCE_DISCOVERY, args, kwargs), + _models.CREATE_IPAM_RESOURCE_DISCOVERY, + [], + plugins, + ) + + @_overload + def create_ipam_routing_policy_registration( + self, + request: _models.CreateIpamRoutingPolicyRegistrationInput + | _models.CreateIpamRoutingPolicyRegistrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamRoutingPolicyRegistrationOutput: ... + + @_overload def create_ipam_routing_policy_registration( self, - input: CreateIpamRoutingPolicyRegistrationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamRoutingPolicyRegistrationInputDict], ) -> CreateIpamRoutingPolicyRegistrationOutput: """ Creates a routing policy registration and publishes Route Origin @@ -4918,8 +6198,6 @@ def create_ipam_routing_policy_registration( ASNs. Args: - input: - An instance of `CreateIpamRoutingPolicyRegistrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4929,12 +6207,35 @@ def create_ipam_routing_policy_registration( Returns: An instance of `CreateIpamRoutingPolicyRegistrationOutput`. """ + + def create_ipam_routing_policy_registration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamRoutingPolicyRegistrationOutput: return self._invoke( - input, _models.CREATE_IPAM_ROUTING_POLICY_REGISTRATION, [], plugins + self._select_input( + _models.CREATE_IPAM_ROUTING_POLICY_REGISTRATION, args, kwargs + ), + _models.CREATE_IPAM_ROUTING_POLICY_REGISTRATION, + [], + plugins, ) + @_overload def create_ipam_scope( - self, input: CreateIpamScopeInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateIpamScopeInput | _models.CreateIpamScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIpamScopeOutput: ... + + @_overload + def create_ipam_scope( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIpamScopeInputDict], ) -> CreateIpamScopeOutput: """ Create an IPAM scope. In IPAM, a scope is the highest-level container @@ -4949,8 +6250,6 @@ def create_ipam_scope( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `CreateIpamScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4960,10 +6259,33 @@ def create_ipam_scope( Returns: An instance of `CreateIpamScopeOutput`. """ - return self._invoke(input, _models.CREATE_IPAM_SCOPE, [], plugins) + def create_ipam_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIpamScopeOutput: + return self._invoke( + self._select_input(_models.CREATE_IPAM_SCOPE, args, kwargs), + _models.CREATE_IPAM_SCOPE, + [], + plugins, + ) + + @_overload + def create_key_pair( + self, + request: _models.CreateKeyPairInput | _models.CreateKeyPairInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKeyPairOutput: ... + + @_overload def create_key_pair( - self, input: CreateKeyPairInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKeyPairInputDict], ) -> CreateKeyPairOutput: """ Creates an ED25519 or 2048-bit RSA key pair with the specified name and @@ -4985,8 +6307,6 @@ def create_key_pair( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateKeyPairInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4996,10 +6316,34 @@ def create_key_pair( Returns: An instance of `CreateKeyPairOutput`. """ - return self._invoke(input, _models.CREATE_KEY_PAIR, [], plugins) + def create_key_pair( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKeyPairOutput: + return self._invoke( + self._select_input(_models.CREATE_KEY_PAIR, args, kwargs), + _models.CREATE_KEY_PAIR, + [], + plugins, + ) + + @_overload + def create_launch_template( + self, + request: _models.CreateLaunchTemplateInput + | _models.CreateLaunchTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLaunchTemplateOutput: ... + + @_overload def create_launch_template( - self, input: CreateLaunchTemplateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLaunchTemplateInputDict], ) -> CreateLaunchTemplateOutput: """ Creates a launch template. @@ -5020,8 +6364,6 @@ def create_launch_template( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateLaunchTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5031,12 +6373,34 @@ def create_launch_template( Returns: An instance of `CreateLaunchTemplateOutput`. """ - return self._invoke(input, _models.CREATE_LAUNCH_TEMPLATE, [], plugins) + def create_launch_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLaunchTemplateOutput: + return self._invoke( + self._select_input(_models.CREATE_LAUNCH_TEMPLATE, args, kwargs), + _models.CREATE_LAUNCH_TEMPLATE, + [], + plugins, + ) + + @_overload + def create_launch_template_version( + self, + request: _models.CreateLaunchTemplateVersionInput + | _models.CreateLaunchTemplateVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLaunchTemplateVersionOutput: ... + + @_overload def create_launch_template_version( self, - input: CreateLaunchTemplateVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLaunchTemplateVersionInputDict], ) -> CreateLaunchTemplateVersionOutput: """ Creates a new version of a launch template. You must specify an existing @@ -5058,8 +6422,6 @@ def create_launch_template_version( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateLaunchTemplateVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5069,10 +6431,34 @@ def create_launch_template_version( Returns: An instance of `CreateLaunchTemplateVersionOutput`. """ - return self._invoke(input, _models.CREATE_LAUNCH_TEMPLATE_VERSION, [], plugins) + def create_launch_template_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLaunchTemplateVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_LAUNCH_TEMPLATE_VERSION, args, kwargs), + _models.CREATE_LAUNCH_TEMPLATE_VERSION, + [], + plugins, + ) + + @_overload + def create_local_gateway_route( + self, + request: _models.CreateLocalGatewayRouteInput + | _models.CreateLocalGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayRouteOutput: ... + + @_overload def create_local_gateway_route( - self, input: CreateLocalGatewayRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayRouteInputDict], ) -> CreateLocalGatewayRouteOutput: """ Creates a static route for the specified local gateway route table. You @@ -5083,8 +6469,6 @@ def create_local_gateway_route( - `NetworkInterfaceId` Args: - input: - An instance of `CreateLocalGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5094,19 +6478,39 @@ def create_local_gateway_route( Returns: An instance of `CreateLocalGatewayRouteOutput`. """ - return self._invoke(input, _models.CREATE_LOCAL_GATEWAY_ROUTE, [], plugins) + def create_local_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayRouteOutput: + return self._invoke( + self._select_input(_models.CREATE_LOCAL_GATEWAY_ROUTE, args, kwargs), + _models.CREATE_LOCAL_GATEWAY_ROUTE, + [], + plugins, + ) + + @_overload + def create_local_gateway_route_table( + self, + request: _models.CreateLocalGatewayRouteTableInput + | _models.CreateLocalGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayRouteTableOutput: ... + + @_overload def create_local_gateway_route_table( self, - input: CreateLocalGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayRouteTableInputDict], ) -> CreateLocalGatewayRouteTableOutput: """ Creates a local gateway route table. Args: - input: - An instance of `CreateLocalGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5116,21 +6520,41 @@ def create_local_gateway_route_table( Returns: An instance of `CreateLocalGatewayRouteTableOutput`. """ + + def create_local_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayRouteTableOutput: return self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input(_models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE, args, kwargs), + _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload def create_local_gateway_route_table_virtual_interface_group_association( self, - input: CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, + request: _models.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput + | _models.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: ... + + @_overload + def create_local_gateway_route_table_virtual_interface_group_association( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict + ], ) -> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: """ Creates a local gateway route table virtual interface group association. Args: - input: - An instance of `CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5140,25 +6564,44 @@ def create_local_gateway_route_table_virtual_interface_group_association( Returns: An instance of `CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput`. """ + + def create_local_gateway_route_table_virtual_interface_group_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: return self._invoke( - input, + self._select_input( + _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION, + args, + kwargs, + ), _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION, [], plugins, ) + @_overload + def create_local_gateway_route_table_vpc_association( + self, + request: _models.CreateLocalGatewayRouteTableVpcAssociationInput + | _models.CreateLocalGatewayRouteTableVpcAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayRouteTableVpcAssociationOutput: ... + + @_overload def create_local_gateway_route_table_vpc_association( self, - input: CreateLocalGatewayRouteTableVpcAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayRouteTableVpcAssociationInputDict], ) -> CreateLocalGatewayRouteTableVpcAssociationOutput: """ Associates the specified VPC with the specified local gateway route table. Args: - input: - An instance of `CreateLocalGatewayRouteTableVpcAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5168,21 +6611,41 @@ def create_local_gateway_route_table_vpc_association( Returns: An instance of `CreateLocalGatewayRouteTableVpcAssociationOutput`. """ + + def create_local_gateway_route_table_vpc_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayRouteTableVpcAssociationOutput: return self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, [], plugins + self._select_input( + _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, args, kwargs + ), + _models.CREATE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, + [], + plugins, ) + @_overload def create_local_gateway_virtual_interface( self, - input: CreateLocalGatewayVirtualInterfaceInput, + request: _models.CreateLocalGatewayVirtualInterfaceInput + | _models.CreateLocalGatewayVirtualInterfaceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayVirtualInterfaceOutput: ... + + @_overload + def create_local_gateway_virtual_interface( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayVirtualInterfaceInputDict], ) -> CreateLocalGatewayVirtualInterfaceOutput: """ Create a virtual interface for a local gateway. Args: - input: - An instance of `CreateLocalGatewayVirtualInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5192,21 +6655,41 @@ def create_local_gateway_virtual_interface( Returns: An instance of `CreateLocalGatewayVirtualInterfaceOutput`. """ + + def create_local_gateway_virtual_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayVirtualInterfaceOutput: return self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, [], plugins + self._select_input( + _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, args, kwargs + ), + _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, + [], + plugins, ) + @_overload + def create_local_gateway_virtual_interface_group( + self, + request: _models.CreateLocalGatewayVirtualInterfaceGroupInput + | _models.CreateLocalGatewayVirtualInterfaceGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLocalGatewayVirtualInterfaceGroupOutput: ... + + @_overload def create_local_gateway_virtual_interface_group( self, - input: CreateLocalGatewayVirtualInterfaceGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLocalGatewayVirtualInterfaceGroupInputDict], ) -> CreateLocalGatewayVirtualInterfaceGroupOutput: """ Create a local gateway virtual interface group. Args: - input: - An instance of `CreateLocalGatewayVirtualInterfaceGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5216,14 +6699,38 @@ def create_local_gateway_virtual_interface_group( Returns: An instance of `CreateLocalGatewayVirtualInterfaceGroupOutput`. """ + + def create_local_gateway_virtual_interface_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLocalGatewayVirtualInterfaceGroupOutput: return self._invoke( - input, _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, [], plugins + self._select_input( + _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, args, kwargs + ), + _models.CREATE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, + [], + plugins, ) + @_overload + def create_mac_system_integrity_protection_modification_task( + self, + request: _models.CreateMacSystemIntegrityProtectionModificationTaskInput + | _models.CreateMacSystemIntegrityProtectionModificationTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMacSystemIntegrityProtectionModificationTaskOutput: ... + + @_overload def create_mac_system_integrity_protection_modification_task( self, - input: CreateMacSystemIntegrityProtectionModificationTaskInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.CreateMacSystemIntegrityProtectionModificationTaskInputDict + ], ) -> CreateMacSystemIntegrityProtectionModificationTaskOutput: """ Creates a System Integrity Protection (SIP) modification task to @@ -5270,8 +6777,6 @@ def create_mac_system_integrity_protection_modification_task( - `MacSystemIntegrityProtectionConfigurationRequest "NvramProtections=disabled"` Args: - input: - An instance of `CreateMacSystemIntegrityProtectionModificationTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5281,23 +6786,44 @@ def create_mac_system_integrity_protection_modification_task( Returns: An instance of `CreateMacSystemIntegrityProtectionModificationTaskOutput`. """ - return self._invoke( - input, - _models.CREATE_MAC_SYSTEM_INTEGRITY_PROTECTION_MODIFICATION_TASK, + + def create_mac_system_integrity_protection_modification_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMacSystemIntegrityProtectionModificationTaskOutput: + return self._invoke( + self._select_input( + _models.CREATE_MAC_SYSTEM_INTEGRITY_PROTECTION_MODIFICATION_TASK, + args, + kwargs, + ), + _models.CREATE_MAC_SYSTEM_INTEGRITY_PROTECTION_MODIFICATION_TASK, [], plugins, ) + @_overload + def create_managed_prefix_list( + self, + request: _models.CreateManagedPrefixListInput + | _models.CreateManagedPrefixListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateManagedPrefixListOutput: ... + + @_overload def create_managed_prefix_list( - self, input: CreateManagedPrefixListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateManagedPrefixListInputDict], ) -> CreateManagedPrefixListOutput: """ Creates a managed prefix list. You can specify entries for the prefix list. Each entry consists of a CIDR block and an optional description. Args: - input: - An instance of `CreateManagedPrefixListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5307,12 +6833,33 @@ def create_managed_prefix_list( Returns: An instance of `CreateManagedPrefixListOutput`. """ - return self._invoke(input, _models.CREATE_MANAGED_PREFIX_LIST, [], plugins) + def create_managed_prefix_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateManagedPrefixListOutput: + return self._invoke( + self._select_input(_models.CREATE_MANAGED_PREFIX_LIST, args, kwargs), + _models.CREATE_MANAGED_PREFIX_LIST, + [], + plugins, + ) + + @_overload + def create_nat_gateway( + self, + request: _models.CreateNatGatewayInput | _models.CreateNatGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNatGatewayOutput: ... + + @_overload def create_nat_gateway( self, - input: CreateNatGatewayInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNatGatewayInputDict], ) -> CreateNatGatewayOutput: """ Creates a NAT gateway in the specified subnet. This action creates a @@ -5347,8 +6894,6 @@ def create_nat_gateway( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateNatGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5358,10 +6903,33 @@ def create_nat_gateway( Returns: An instance of `CreateNatGatewayOutput`. """ - return self._invoke(input, _models.CREATE_NAT_GATEWAY, [], plugins) + def create_nat_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNatGatewayOutput: + return self._invoke( + self._select_input(_models.CREATE_NAT_GATEWAY, args, kwargs), + _models.CREATE_NAT_GATEWAY, + [], + plugins, + ) + + @_overload + def create_network_acl( + self, + request: _models.CreateNetworkAclInput | _models.CreateNetworkAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkAclOutput: ... + + @_overload def create_network_acl( - self, input: CreateNetworkAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkAclInputDict], ) -> CreateNetworkAclOutput: """ Creates a network ACL in a VPC. Network ACLs provide an optional layer @@ -5373,8 +6941,6 @@ def create_network_acl( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateNetworkAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5384,10 +6950,34 @@ def create_network_acl( Returns: An instance of `CreateNetworkAclOutput`. """ - return self._invoke(input, _models.CREATE_NETWORK_ACL, [], plugins) + def create_network_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkAclOutput: + return self._invoke( + self._select_input(_models.CREATE_NETWORK_ACL, args, kwargs), + _models.CREATE_NETWORK_ACL, + [], + plugins, + ) + + @_overload + def create_network_acl_entry( + self, + request: _models.CreateNetworkAclEntryInput + | _models.CreateNetworkAclEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkAclEntryOutput: ... + + @_overload def create_network_acl_entry( - self, input: CreateNetworkAclEntryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkAclEntryInputDict], ) -> CreateNetworkAclEntryOutput: """ Creates an entry (a rule) in a network ACL with the specified rule @@ -5411,8 +7001,6 @@ def create_network_acl_entry( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateNetworkAclEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5422,12 +7010,34 @@ def create_network_acl_entry( Returns: An instance of `CreateNetworkAclEntryOutput`. """ - return self._invoke(input, _models.CREATE_NETWORK_ACL_ENTRY, [], plugins) + def create_network_acl_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkAclEntryOutput: + return self._invoke( + self._select_input(_models.CREATE_NETWORK_ACL_ENTRY, args, kwargs), + _models.CREATE_NETWORK_ACL_ENTRY, + [], + plugins, + ) + + @_overload + def create_network_insights_access_scope( + self, + request: _models.CreateNetworkInsightsAccessScopeInput + | _models.CreateNetworkInsightsAccessScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkInsightsAccessScopeOutput: ... + + @_overload def create_network_insights_access_scope( self, - input: CreateNetworkInsightsAccessScopeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkInsightsAccessScopeInputDict], ) -> CreateNetworkInsightsAccessScopeOutput: """ Creates a Network Access Scope. @@ -5440,8 +7050,6 @@ def create_network_insights_access_scope( Guide](https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/). Args: - input: - An instance of `CreateNetworkInsightsAccessScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5451,12 +7059,36 @@ def create_network_insights_access_scope( Returns: An instance of `CreateNetworkInsightsAccessScopeOutput`. """ + + def create_network_insights_access_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkInsightsAccessScopeOutput: return self._invoke( - input, _models.CREATE_NETWORK_INSIGHTS_ACCESS_SCOPE, [], plugins + self._select_input( + _models.CREATE_NETWORK_INSIGHTS_ACCESS_SCOPE, args, kwargs + ), + _models.CREATE_NETWORK_INSIGHTS_ACCESS_SCOPE, + [], + plugins, ) + @_overload def create_network_insights_path( - self, input: CreateNetworkInsightsPathInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateNetworkInsightsPathInput + | _models.CreateNetworkInsightsPathInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkInsightsPathOutput: ... + + @_overload + def create_network_insights_path( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkInsightsPathInputDict], ) -> CreateNetworkInsightsPathOutput: """ Creates a path to analyze for reachability. @@ -5467,8 +7099,6 @@ def create_network_insights_path( Guide](https://docs.aws.amazon.com/vpc/latest/reachability/). Args: - input: - An instance of `CreateNetworkInsightsPathInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5478,10 +7108,34 @@ def create_network_insights_path( Returns: An instance of `CreateNetworkInsightsPathOutput`. """ - return self._invoke(input, _models.CREATE_NETWORK_INSIGHTS_PATH, [], plugins) + def create_network_insights_path( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkInsightsPathOutput: + return self._invoke( + self._select_input(_models.CREATE_NETWORK_INSIGHTS_PATH, args, kwargs), + _models.CREATE_NETWORK_INSIGHTS_PATH, + [], + plugins, + ) + + @_overload + def create_network_interface( + self, + request: _models.CreateNetworkInterfaceInput + | _models.CreateNetworkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkInterfaceOutput: ... + + @_overload def create_network_interface( - self, input: CreateNetworkInterfaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkInterfaceInputDict], ) -> CreateNetworkInterfaceOutput: """ Creates a network interface in the specified subnet. @@ -5494,8 +7148,6 @@ def create_network_interface( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateNetworkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5505,12 +7157,34 @@ def create_network_interface( Returns: An instance of `CreateNetworkInterfaceOutput`. """ - return self._invoke(input, _models.CREATE_NETWORK_INTERFACE, [], plugins) + def create_network_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkInterfaceOutput: + return self._invoke( + self._select_input(_models.CREATE_NETWORK_INTERFACE, args, kwargs), + _models.CREATE_NETWORK_INTERFACE, + [], + plugins, + ) + + @_overload + def create_network_interface_permission( + self, + request: _models.CreateNetworkInterfacePermissionInput + | _models.CreateNetworkInterfacePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateNetworkInterfacePermissionOutput: ... + + @_overload def create_network_interface_permission( self, - input: CreateNetworkInterfacePermissionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateNetworkInterfacePermissionInputDict], ) -> CreateNetworkInterfacePermissionOutput: """ Grants an Amazon Web Services-authorized account permission to attach @@ -5520,8 +7194,6 @@ def create_network_interface_permission( and only one account at a time. Args: - input: - An instance of `CreateNetworkInterfacePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5531,14 +7203,36 @@ def create_network_interface_permission( Returns: An instance of `CreateNetworkInterfacePermissionOutput`. """ + + def create_network_interface_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateNetworkInterfacePermissionOutput: return self._invoke( - input, _models.CREATE_NETWORK_INTERFACE_PERMISSION, [], plugins + self._select_input( + _models.CREATE_NETWORK_INTERFACE_PERMISSION, args, kwargs + ), + _models.CREATE_NETWORK_INTERFACE_PERMISSION, + [], + plugins, ) + @_overload + def create_placement_group( + self, + request: _models.CreatePlacementGroupInput + | _models.CreatePlacementGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePlacementGroupOutput: ... + + @_overload def create_placement_group( self, - input: CreatePlacementGroupInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePlacementGroupInputDict], ) -> CreatePlacementGroupOutput: """ Creates a placement group in which to launch instances. The strategy of @@ -5560,8 +7254,6 @@ def create_placement_group( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreatePlacementGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5571,12 +7263,34 @@ def create_placement_group( Returns: An instance of `CreatePlacementGroupOutput`. """ - return self._invoke(input, _models.CREATE_PLACEMENT_GROUP, [], plugins) + def create_placement_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePlacementGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_PLACEMENT_GROUP, args, kwargs), + _models.CREATE_PLACEMENT_GROUP, + [], + plugins, + ) + + @_overload + def create_public_ipv4_pool( + self, + request: _models.CreatePublicIpv4PoolInput + | _models.CreatePublicIpv4PoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePublicIpv4PoolOutput: ... + + @_overload def create_public_ipv4_pool( self, - input: CreatePublicIpv4PoolInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePublicIpv4PoolInputDict], ) -> CreatePublicIpv4PoolOutput: """ Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP @@ -5587,8 +7301,6 @@ def create_public_ipv4_pool( [DescribePublicIpv4Pools](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePublicIpv4Pools.html). Args: - input: - An instance of `CreatePublicIpv4PoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5598,12 +7310,34 @@ def create_public_ipv4_pool( Returns: An instance of `CreatePublicIpv4PoolOutput`. """ - return self._invoke(input, _models.CREATE_PUBLIC_IPV4_POOL, [], plugins) + def create_public_ipv4_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePublicIpv4PoolOutput: + return self._invoke( + self._select_input(_models.CREATE_PUBLIC_IPV4_POOL, args, kwargs), + _models.CREATE_PUBLIC_IPV4_POOL, + [], + plugins, + ) + + @_overload + def create_replace_root_volume_task( + self, + request: _models.CreateReplaceRootVolumeTaskInput + | _models.CreateReplaceRootVolumeTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateReplaceRootVolumeTaskOutput: ... + + @_overload def create_replace_root_volume_task( self, - input: CreateReplaceRootVolumeTaskInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateReplaceRootVolumeTaskInputDict], ) -> CreateReplaceRootVolumeTaskOutput: """ Replaces the EBS-backed root volume for a `running` instance with a new @@ -5618,8 +7352,6 @@ def create_replace_root_volume_task( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateReplaceRootVolumeTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5629,12 +7361,34 @@ def create_replace_root_volume_task( Returns: An instance of `CreateReplaceRootVolumeTaskOutput`. """ - return self._invoke(input, _models.CREATE_REPLACE_ROOT_VOLUME_TASK, [], plugins) + def create_replace_root_volume_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateReplaceRootVolumeTaskOutput: + return self._invoke( + self._select_input(_models.CREATE_REPLACE_ROOT_VOLUME_TASK, args, kwargs), + _models.CREATE_REPLACE_ROOT_VOLUME_TASK, + [], + plugins, + ) + + @_overload + def create_reserved_instances_listing( + self, + request: _models.CreateReservedInstancesListingInput + | _models.CreateReservedInstancesListingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateReservedInstancesListingOutput: ... + + @_overload def create_reserved_instances_listing( self, - input: CreateReservedInstancesListingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateReservedInstancesListingInputDict], ) -> CreateReservedInstancesListingOutput: """ Creates a listing for Amazon EC2 Standard Reserved Instances to be sold @@ -5666,8 +7420,6 @@ def create_reserved_instances_listing( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateReservedInstancesListingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5677,12 +7429,34 @@ def create_reserved_instances_listing( Returns: An instance of `CreateReservedInstancesListingOutput`. """ + + def create_reserved_instances_listing( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateReservedInstancesListingOutput: return self._invoke( - input, _models.CREATE_RESERVED_INSTANCES_LISTING, [], plugins + self._select_input(_models.CREATE_RESERVED_INSTANCES_LISTING, args, kwargs), + _models.CREATE_RESERVED_INSTANCES_LISTING, + [], + plugins, ) + @_overload + def create_restore_image_task( + self, + request: _models.CreateRestoreImageTaskInput + | _models.CreateRestoreImageTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRestoreImageTaskOutput: ... + + @_overload def create_restore_image_task( - self, input: CreateRestoreImageTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRestoreImageTaskInputDict], ) -> CreateRestoreImageTaskOutput: """ Starts a task that restores an AMI from an Amazon S3 object that was @@ -5699,8 +7473,6 @@ def create_restore_image_task( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateRestoreImageTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5710,10 +7482,33 @@ def create_restore_image_task( Returns: An instance of `CreateRestoreImageTaskOutput`. """ - return self._invoke(input, _models.CREATE_RESTORE_IMAGE_TASK, [], plugins) + def create_restore_image_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRestoreImageTaskOutput: + return self._invoke( + self._select_input(_models.CREATE_RESTORE_IMAGE_TASK, args, kwargs), + _models.CREATE_RESTORE_IMAGE_TASK, + [], + plugins, + ) + + @_overload + def create_route( + self, + request: _models.CreateRouteInput | _models.CreateRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteOutput: ... + + @_overload def create_route( - self, input: CreateRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteInputDict], ) -> CreateRouteOutput: """ Creates a route in a route table within a VPC. @@ -5740,8 +7535,6 @@ def create_route( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5751,10 +7544,33 @@ def create_route( Returns: An instance of `CreateRouteOutput`. """ - return self._invoke(input, _models.CREATE_ROUTE, [], plugins) + def create_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteOutput: + return self._invoke( + self._select_input(_models.CREATE_ROUTE, args, kwargs), + _models.CREATE_ROUTE, + [], + plugins, + ) + + @_overload + def create_route_server( + self, + request: _models.CreateRouteServerInput | _models.CreateRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteServerOutput: ... + + @_overload def create_route_server( - self, input: CreateRouteServerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteServerInputDict], ) -> CreateRouteServerOutput: """ Creates a new route server to manage dynamic routing in a VPC. @@ -5785,8 +7601,6 @@ def create_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5796,10 +7610,34 @@ def create_route_server( Returns: An instance of `CreateRouteServerOutput`. """ - return self._invoke(input, _models.CREATE_ROUTE_SERVER, [], plugins) + def create_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteServerOutput: + return self._invoke( + self._select_input(_models.CREATE_ROUTE_SERVER, args, kwargs), + _models.CREATE_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + def create_route_server_endpoint( + self, + request: _models.CreateRouteServerEndpointInput + | _models.CreateRouteServerEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteServerEndpointOutput: ... + + @_overload def create_route_server_endpoint( - self, input: CreateRouteServerEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteServerEndpointInputDict], ) -> CreateRouteServerEndpointOutput: """ Creates a new endpoint for a route server in a specified subnet. @@ -5814,8 +7652,6 @@ def create_route_server_endpoint( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteServerEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5825,10 +7661,34 @@ def create_route_server_endpoint( Returns: An instance of `CreateRouteServerEndpointOutput`. """ - return self._invoke(input, _models.CREATE_ROUTE_SERVER_ENDPOINT, [], plugins) + def create_route_server_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteServerEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_ROUTE_SERVER_ENDPOINT, args, kwargs), + _models.CREATE_ROUTE_SERVER_ENDPOINT, + [], + plugins, + ) + + @_overload + def create_route_server_peer( + self, + request: _models.CreateRouteServerPeerInput + | _models.CreateRouteServerPeerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteServerPeerOutput: ... + + @_overload def create_route_server_peer( - self, input: CreateRouteServerPeerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteServerPeerInputDict], ) -> CreateRouteServerPeerOutput: """ Creates a new BGP peer for a specified route server endpoint. @@ -5849,8 +7709,6 @@ def create_route_server_peer( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteServerPeerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5860,10 +7718,33 @@ def create_route_server_peer( Returns: An instance of `CreateRouteServerPeerOutput`. """ - return self._invoke(input, _models.CREATE_ROUTE_SERVER_PEER, [], plugins) + def create_route_server_peer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteServerPeerOutput: + return self._invoke( + self._select_input(_models.CREATE_ROUTE_SERVER_PEER, args, kwargs), + _models.CREATE_ROUTE_SERVER_PEER, + [], + plugins, + ) + + @_overload + def create_route_table( + self, + request: _models.CreateRouteTableInput | _models.CreateRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRouteTableOutput: ... + + @_overload def create_route_table( - self, input: CreateRouteTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRouteTableInputDict], ) -> CreateRouteTableOutput: """ Creates a route table for the specified VPC. After you create a route @@ -5874,8 +7755,6 @@ def create_route_table( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5885,10 +7764,34 @@ def create_route_table( Returns: An instance of `CreateRouteTableOutput`. """ - return self._invoke(input, _models.CREATE_ROUTE_TABLE, [], plugins) + def create_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRouteTableOutput: + return self._invoke( + self._select_input(_models.CREATE_ROUTE_TABLE, args, kwargs), + _models.CREATE_ROUTE_TABLE, + [], + plugins, + ) + + @_overload + def create_secondary_network( + self, + request: _models.CreateSecondaryNetworkInput + | _models.CreateSecondaryNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSecondaryNetworkOutput: ... + + @_overload def create_secondary_network( - self, input: CreateSecondaryNetworkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSecondaryNetworkInputDict], ) -> CreateSecondaryNetworkOutput: """ Creates a secondary network. @@ -5897,8 +7800,6 @@ def create_secondary_network( netmask (16 IP addresses) and /12 netmask (1,048,576 IP addresses). Args: - input: - An instance of `CreateSecondaryNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5908,10 +7809,34 @@ def create_secondary_network( Returns: An instance of `CreateSecondaryNetworkOutput`. """ - return self._invoke(input, _models.CREATE_SECONDARY_NETWORK, [], plugins) + def create_secondary_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSecondaryNetworkOutput: + return self._invoke( + self._select_input(_models.CREATE_SECONDARY_NETWORK, args, kwargs), + _models.CREATE_SECONDARY_NETWORK, + [], + plugins, + ) + + @_overload def create_secondary_subnet( - self, input: CreateSecondarySubnetInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateSecondarySubnetInput + | _models.CreateSecondarySubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSecondarySubnetOutput: ... + + @_overload + def create_secondary_subnet( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSecondarySubnetInputDict], ) -> CreateSecondarySubnetOutput: """ Creates a secondary subnet in a secondary network. @@ -5926,8 +7851,6 @@ def create_secondary_subnet( each secondary subnet for internal use. Args: - input: - An instance of `CreateSecondarySubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5937,10 +7860,34 @@ def create_secondary_subnet( Returns: An instance of `CreateSecondarySubnetOutput`. """ - return self._invoke(input, _models.CREATE_SECONDARY_SUBNET, [], plugins) + def create_secondary_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSecondarySubnetOutput: + return self._invoke( + self._select_input(_models.CREATE_SECONDARY_SUBNET, args, kwargs), + _models.CREATE_SECONDARY_SUBNET, + [], + plugins, + ) + + @_overload + def create_security_group( + self, + request: _models.CreateSecurityGroupInput + | _models.CreateSecurityGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSecurityGroupOutput: ... + + @_overload def create_security_group( - self, input: CreateSecurityGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSecurityGroupInputDict], ) -> CreateSecurityGroupOutput: """ Creates a security group. @@ -5971,8 +7918,6 @@ def create_security_group( Limits](https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html). Args: - input: - An instance of `CreateSecurityGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5982,14 +7927,37 @@ def create_security_group( Returns: An instance of `CreateSecurityGroupOutput`. """ - return self._invoke(input, _models.CREATE_SECURITY_GROUP, [], plugins) - def create_snapshot( - self, input: CreateSnapshotInput, plugins: list[Plugin] | None = None - ) -> CreateSnapshotOutput: - """ - Creates a snapshot of an EBS volume and stores it in Amazon S3. You can - use snapshots for backups, to make copies of EBS volumes, and to save + def create_security_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSecurityGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_SECURITY_GROUP, args, kwargs), + _models.CREATE_SECURITY_GROUP, + [], + plugins, + ) + + @_overload + def create_snapshot( + self, + request: _models.CreateSnapshotInput | _models.CreateSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSnapshotOutput: ... + + @_overload + def create_snapshot( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSnapshotInputDict], + ) -> CreateSnapshotOutput: + """ + Creates a snapshot of an EBS volume and stores it in Amazon S3. You can + use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance. The location of the source EBS volume determines where you can create @@ -6031,8 +7999,6 @@ def create_snapshot( in the *Amazon EBS User Guide*. Args: - input: - An instance of `CreateSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6042,10 +8008,33 @@ def create_snapshot( Returns: An instance of `CreateSnapshotOutput`. """ - return self._invoke(input, _models.CREATE_SNAPSHOT, [], plugins) + def create_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSnapshotOutput: + return self._invoke( + self._select_input(_models.CREATE_SNAPSHOT, args, kwargs), + _models.CREATE_SNAPSHOT, + [], + plugins, + ) + + @_overload + def create_snapshots( + self, + request: _models.CreateSnapshotsInput | _models.CreateSnapshotsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSnapshotsOutput: ... + + @_overload def create_snapshots( - self, input: CreateSnapshotsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSnapshotsInputDict], ) -> CreateSnapshotsOutput: """ Creates crash-consistent snapshots of multiple EBS volumes attached to @@ -6070,8 +8059,6 @@ def create_snapshots( on the same Outpost or in its parent Amazon Web Services Region. Args: - input: - An instance of `CreateSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6081,12 +8068,34 @@ def create_snapshots( Returns: An instance of `CreateSnapshotsOutput`. """ - return self._invoke(input, _models.CREATE_SNAPSHOTS, [], plugins) + def create_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSnapshotsOutput: + return self._invoke( + self._select_input(_models.CREATE_SNAPSHOTS, args, kwargs), + _models.CREATE_SNAPSHOTS, + [], + plugins, + ) + + @_overload + def create_spot_datafeed_subscription( + self, + request: _models.CreateSpotDatafeedSubscriptionInput + | _models.CreateSpotDatafeedSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSpotDatafeedSubscriptionOutput: ... + + @_overload def create_spot_datafeed_subscription( self, - input: CreateSpotDatafeedSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSpotDatafeedSubscriptionInputDict], ) -> CreateSpotDatafeedSubscriptionOutput: """ Creates a data feed for Spot Instances, enabling you to view Spot @@ -6096,8 +8105,6 @@ def create_spot_datafeed_subscription( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateSpotDatafeedSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6107,12 +8114,34 @@ def create_spot_datafeed_subscription( Returns: An instance of `CreateSpotDatafeedSubscriptionOutput`. """ + + def create_spot_datafeed_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSpotDatafeedSubscriptionOutput: return self._invoke( - input, _models.CREATE_SPOT_DATAFEED_SUBSCRIPTION, [], plugins + self._select_input(_models.CREATE_SPOT_DATAFEED_SUBSCRIPTION, args, kwargs), + _models.CREATE_SPOT_DATAFEED_SUBSCRIPTION, + [], + plugins, ) + @_overload + def create_store_image_task( + self, + request: _models.CreateStoreImageTaskInput + | _models.CreateStoreImageTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStoreImageTaskOutput: ... + + @_overload def create_store_image_task( - self, input: CreateStoreImageTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStoreImageTaskInputDict], ) -> CreateStoreImageTaskOutput: """ Stores an AMI as a single object in an Amazon S3 bucket. @@ -6127,8 +8156,6 @@ def create_store_image_task( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateStoreImageTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6138,10 +8165,33 @@ def create_store_image_task( Returns: An instance of `CreateStoreImageTaskOutput`. """ - return self._invoke(input, _models.CREATE_STORE_IMAGE_TASK, [], plugins) + def create_store_image_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStoreImageTaskOutput: + return self._invoke( + self._select_input(_models.CREATE_STORE_IMAGE_TASK, args, kwargs), + _models.CREATE_STORE_IMAGE_TASK, + [], + plugins, + ) + + @_overload + def create_subnet( + self, + request: _models.CreateSubnetInput | _models.CreateSubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSubnetOutput: ... + + @_overload def create_subnet( - self, input: CreateSubnetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSubnetInputDict], ) -> CreateSubnetOutput: """ Creates a subnet in the specified VPC. For an IPv4 only subnet, specify @@ -6175,8 +8225,6 @@ def create_subnet( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateSubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6186,12 +8234,34 @@ def create_subnet( Returns: An instance of `CreateSubnetOutput`. """ - return self._invoke(input, _models.CREATE_SUBNET, [], plugins) + def create_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSubnetOutput: + return self._invoke( + self._select_input(_models.CREATE_SUBNET, args, kwargs), + _models.CREATE_SUBNET, + [], + plugins, + ) + + @_overload + def create_subnet_cidr_reservation( + self, + request: _models.CreateSubnetCidrReservationInput + | _models.CreateSubnetCidrReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSubnetCidrReservationOutput: ... + + @_overload def create_subnet_cidr_reservation( self, - input: CreateSubnetCidrReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSubnetCidrReservationInputDict], ) -> CreateSubnetCidrReservationOutput: """ Creates a subnet CIDR reservation. For more information, see [Subnet @@ -6202,8 +8272,6 @@ def create_subnet_cidr_reservation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `CreateSubnetCidrReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6213,10 +8281,33 @@ def create_subnet_cidr_reservation( Returns: An instance of `CreateSubnetCidrReservationOutput`. """ - return self._invoke(input, _models.CREATE_SUBNET_CIDR_RESERVATION, [], plugins) + def create_subnet_cidr_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSubnetCidrReservationOutput: + return self._invoke( + self._select_input(_models.CREATE_SUBNET_CIDR_RESERVATION, args, kwargs), + _models.CREATE_SUBNET_CIDR_RESERVATION, + [], + plugins, + ) + + @_overload + def create_tags( + self, + request: _models.CreateTagsInput | _models.CreateTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTagsOutput: ... + + @_overload def create_tags( - self, input: CreateTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTagsInputDict], ) -> CreateTagsOutput: """ Adds or overwrites only the specified tags for the specified Amazon EC2 @@ -6235,8 +8326,6 @@ def create_tags( in the *Amazon Elastic Compute Cloud User Guide*. Args: - input: - An instance of `CreateTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6246,12 +8335,34 @@ def create_tags( Returns: An instance of `CreateTagsOutput`. """ - return self._invoke(input, _models.CREATE_TAGS, [], plugins) + def create_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTagsOutput: + return self._invoke( + self._select_input(_models.CREATE_TAGS, args, kwargs), + _models.CREATE_TAGS, + [], + plugins, + ) + + @_overload + def create_traffic_mirror_filter( + self, + request: _models.CreateTrafficMirrorFilterInput + | _models.CreateTrafficMirrorFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrafficMirrorFilterOutput: ... + + @_overload def create_traffic_mirror_filter( self, - input: CreateTrafficMirrorFilterInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrafficMirrorFilterInputDict], ) -> CreateTrafficMirrorFilterOutput: """ Creates a Traffic Mirror filter. @@ -6267,8 +8378,6 @@ def create_traffic_mirror_filter( to mirror supported network services. Args: - input: - An instance of `CreateTrafficMirrorFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6278,12 +8387,34 @@ def create_traffic_mirror_filter( Returns: An instance of `CreateTrafficMirrorFilterOutput`. """ - return self._invoke(input, _models.CREATE_TRAFFIC_MIRROR_FILTER, [], plugins) + def create_traffic_mirror_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrafficMirrorFilterOutput: + return self._invoke( + self._select_input(_models.CREATE_TRAFFIC_MIRROR_FILTER, args, kwargs), + _models.CREATE_TRAFFIC_MIRROR_FILTER, + [], + plugins, + ) + + @_overload + def create_traffic_mirror_filter_rule( + self, + request: _models.CreateTrafficMirrorFilterRuleInput + | _models.CreateTrafficMirrorFilterRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrafficMirrorFilterRuleOutput: ... + + @_overload def create_traffic_mirror_filter_rule( self, - input: CreateTrafficMirrorFilterRuleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrafficMirrorFilterRuleInputDict], ) -> CreateTrafficMirrorFilterRuleOutput: """ Creates a Traffic Mirror filter rule. @@ -6294,8 +8425,6 @@ def create_traffic_mirror_filter_rule( You need the Traffic Mirror filter ID when you create the rule. Args: - input: - An instance of `CreateTrafficMirrorFilterRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6305,14 +8434,34 @@ def create_traffic_mirror_filter_rule( Returns: An instance of `CreateTrafficMirrorFilterRuleOutput`. """ + + def create_traffic_mirror_filter_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrafficMirrorFilterRuleOutput: return self._invoke( - input, _models.CREATE_TRAFFIC_MIRROR_FILTER_RULE, [], plugins + self._select_input(_models.CREATE_TRAFFIC_MIRROR_FILTER_RULE, args, kwargs), + _models.CREATE_TRAFFIC_MIRROR_FILTER_RULE, + [], + plugins, ) + @_overload + def create_traffic_mirror_session( + self, + request: _models.CreateTrafficMirrorSessionInput + | _models.CreateTrafficMirrorSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrafficMirrorSessionOutput: ... + + @_overload def create_traffic_mirror_session( self, - input: CreateTrafficMirrorSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrafficMirrorSessionInputDict], ) -> CreateTrafficMirrorSessionOutput: """ Creates a Traffic Mirror session. @@ -6331,8 +8480,6 @@ def create_traffic_mirror_session( to create filter rules that specify the traffic to mirror. Args: - input: - An instance of `CreateTrafficMirrorSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6342,12 +8489,34 @@ def create_traffic_mirror_session( Returns: An instance of `CreateTrafficMirrorSessionOutput`. """ - return self._invoke(input, _models.CREATE_TRAFFIC_MIRROR_SESSION, [], plugins) + def create_traffic_mirror_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrafficMirrorSessionOutput: + return self._invoke( + self._select_input(_models.CREATE_TRAFFIC_MIRROR_SESSION, args, kwargs), + _models.CREATE_TRAFFIC_MIRROR_SESSION, + [], + plugins, + ) + + @_overload def create_traffic_mirror_target( self, - input: CreateTrafficMirrorTargetInput | None = None, + request: _models.CreateTrafficMirrorTargetInput + | _models.CreateTrafficMirrorTargetInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateTrafficMirrorTargetOutput: ... + + @_overload + def create_traffic_mirror_target( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrafficMirrorTargetInputDict], ) -> CreateTrafficMirrorTargetOutput: """ Creates a target for your Traffic Mirror session. @@ -6364,8 +8533,6 @@ def create_traffic_mirror_target( [CreateTrafficMirrorSession](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm). Args: - input: - An instance of `CreateTrafficMirrorTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6375,12 +8542,34 @@ def create_traffic_mirror_target( Returns: An instance of `CreateTrafficMirrorTargetOutput`. """ - return self._invoke(input, _models.CREATE_TRAFFIC_MIRROR_TARGET, [], plugins) + def create_traffic_mirror_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrafficMirrorTargetOutput: + return self._invoke( + self._select_input(_models.CREATE_TRAFFIC_MIRROR_TARGET, args, kwargs), + _models.CREATE_TRAFFIC_MIRROR_TARGET, + [], + plugins, + ) + + @_overload + def create_transit_gateway( + self, + request: _models.CreateTransitGatewayInput + | _models.CreateTransitGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayOutput: ... + + @_overload def create_transit_gateway( self, - input: CreateTransitGatewayInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayInputDict], ) -> CreateTransitGatewayOutput: """ Creates a transit gateway. @@ -6408,8 +8597,6 @@ def create_transit_gateway( associate a resource attachment with a transit gateway route table. Args: - input: - An instance of `CreateTransitGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6419,12 +8606,34 @@ def create_transit_gateway( Returns: An instance of `CreateTransitGatewayOutput`. """ - return self._invoke(input, _models.CREATE_TRANSIT_GATEWAY, [], plugins) + def create_transit_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayOutput: + return self._invoke( + self._select_input(_models.CREATE_TRANSIT_GATEWAY, args, kwargs), + _models.CREATE_TRANSIT_GATEWAY, + [], + plugins, + ) + + @_overload + def create_transit_gateway_connect( + self, + request: _models.CreateTransitGatewayConnectInput + | _models.CreateTransitGatewayConnectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayConnectOutput: ... + + @_overload def create_transit_gateway_connect( self, - input: CreateTransitGatewayConnectInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayConnectInputDict], ) -> CreateTransitGatewayConnectOutput: """ Creates a Connect attachment from a specified transit gateway @@ -6436,8 +8645,6 @@ def create_transit_gateway_connect( Connect attachment as the underlying transport mechanism. Args: - input: - An instance of `CreateTransitGatewayConnectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6447,12 +8654,34 @@ def create_transit_gateway_connect( Returns: An instance of `CreateTransitGatewayConnectOutput`. """ - return self._invoke(input, _models.CREATE_TRANSIT_GATEWAY_CONNECT, [], plugins) + def create_transit_gateway_connect( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayConnectOutput: + return self._invoke( + self._select_input(_models.CREATE_TRANSIT_GATEWAY_CONNECT, args, kwargs), + _models.CREATE_TRANSIT_GATEWAY_CONNECT, + [], + plugins, + ) + + @_overload + def create_transit_gateway_connect_peer( + self, + request: _models.CreateTransitGatewayConnectPeerInput + | _models.CreateTransitGatewayConnectPeerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayConnectPeerOutput: ... + + @_overload def create_transit_gateway_connect_peer( self, - input: CreateTransitGatewayConnectPeerInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayConnectPeerInputDict], ) -> CreateTransitGatewayConnectPeerOutput: """ Creates a Connect peer for a specified transit gateway Connect @@ -6466,8 +8695,6 @@ def create_transit_gateway_connect_peer( in the *Amazon Web Services Transit Gateways Guide*. Args: - input: - An instance of `CreateTransitGatewayConnectPeerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6477,22 +8704,42 @@ def create_transit_gateway_connect_peer( Returns: An instance of `CreateTransitGatewayConnectPeerOutput`. """ + + def create_transit_gateway_connect_peer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayConnectPeerOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_CONNECT_PEER, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_CONNECT_PEER, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_CONNECT_PEER, + [], + plugins, ) + @_overload + def create_transit_gateway_metering_policy( + self, + request: _models.CreateTransitGatewayMeteringPolicyInput + | _models.CreateTransitGatewayMeteringPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayMeteringPolicyOutput: ... + + @_overload def create_transit_gateway_metering_policy( self, - input: CreateTransitGatewayMeteringPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayMeteringPolicyInputDict], ) -> CreateTransitGatewayMeteringPolicyOutput: """ Creates a metering policy for a transit gateway to track and measure network traffic. Args: - input: - An instance of `CreateTransitGatewayMeteringPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6502,22 +8749,42 @@ def create_transit_gateway_metering_policy( Returns: An instance of `CreateTransitGatewayMeteringPolicyOutput`. """ + + def create_transit_gateway_metering_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayMeteringPolicyOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY, + [], + plugins, ) + @_overload + def create_transit_gateway_metering_policy_entry( + self, + request: _models.CreateTransitGatewayMeteringPolicyEntryInput + | _models.CreateTransitGatewayMeteringPolicyEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayMeteringPolicyEntryOutput: ... + + @_overload def create_transit_gateway_metering_policy_entry( self, - input: CreateTransitGatewayMeteringPolicyEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayMeteringPolicyEntryInputDict], ) -> CreateTransitGatewayMeteringPolicyEntryOutput: """ Creates an entry in a transit gateway metering policy to define traffic measurement rules. Args: - input: - An instance of `CreateTransitGatewayMeteringPolicyEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6527,14 +8794,36 @@ def create_transit_gateway_metering_policy_entry( Returns: An instance of `CreateTransitGatewayMeteringPolicyEntryOutput`. """ + + def create_transit_gateway_metering_policy_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayMeteringPolicyEntryOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, + [], + plugins, ) + @_overload + def create_transit_gateway_multicast_domain( + self, + request: _models.CreateTransitGatewayMulticastDomainInput + | _models.CreateTransitGatewayMulticastDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayMulticastDomainOutput: ... + + @_overload def create_transit_gateway_multicast_domain( self, - input: CreateTransitGatewayMulticastDomainInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayMulticastDomainInputDict], ) -> CreateTransitGatewayMulticastDomainOutput: """ Creates a multicast domain using the specified transit gateway. @@ -6545,8 +8834,6 @@ def create_transit_gateway_multicast_domain( to see the state of transit gateway. Args: - input: - An instance of `CreateTransitGatewayMulticastDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6556,14 +8843,36 @@ def create_transit_gateway_multicast_domain( Returns: An instance of `CreateTransitGatewayMulticastDomainOutput`. """ + + def create_transit_gateway_multicast_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayMulticastDomainOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, + [], + plugins, ) + @_overload + def create_transit_gateway_peering_attachment( + self, + request: _models.CreateTransitGatewayPeeringAttachmentInput + | _models.CreateTransitGatewayPeeringAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayPeeringAttachmentOutput: ... + + @_overload def create_transit_gateway_peering_attachment( self, - input: CreateTransitGatewayPeeringAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayPeeringAttachmentInputDict], ) -> CreateTransitGatewayPeeringAttachmentOutput: """ Requests a transit gateway peering attachment between the specified @@ -6575,8 +8884,6 @@ def create_transit_gateway_peering_attachment( transit gateway must accept the attachment request. Args: - input: - An instance of `CreateTransitGatewayPeeringAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6586,21 +8893,41 @@ def create_transit_gateway_peering_attachment( Returns: An instance of `CreateTransitGatewayPeeringAttachmentOutput`. """ + + def create_transit_gateway_peering_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayPeeringAttachmentOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, + [], + plugins, ) + @_overload + def create_transit_gateway_policy_table( + self, + request: _models.CreateTransitGatewayPolicyTableInput + | _models.CreateTransitGatewayPolicyTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayPolicyTableOutput: ... + + @_overload def create_transit_gateway_policy_table( self, - input: CreateTransitGatewayPolicyTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayPolicyTableInputDict], ) -> CreateTransitGatewayPolicyTableOutput: """ Creates a transit gateway policy table. Args: - input: - An instance of `CreateTransitGatewayPolicyTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6610,22 +8937,42 @@ def create_transit_gateway_policy_table( Returns: An instance of `CreateTransitGatewayPolicyTableOutput`. """ + + def create_transit_gateway_policy_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayPolicyTableOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE, + [], + plugins, ) + @_overload + def create_transit_gateway_policy_table_entry( + self, + request: _models.CreateTransitGatewayPolicyTableEntryInput + | _models.CreateTransitGatewayPolicyTableEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayPolicyTableEntryOutput: ... + + @_overload def create_transit_gateway_policy_table_entry( self, - input: CreateTransitGatewayPolicyTableEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayPolicyTableEntryInputDict], ) -> CreateTransitGatewayPolicyTableEntryOutput: """ Creates an entry in a transit gateway policy table to route matching traffic to a specified route table. Args: - input: - An instance of `CreateTransitGatewayPolicyTableEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6635,22 +8982,42 @@ def create_transit_gateway_policy_table_entry( Returns: An instance of `CreateTransitGatewayPolicyTableEntryOutput`. """ + + def create_transit_gateway_policy_table_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayPolicyTableEntryOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, + [], + plugins, ) + @_overload def create_transit_gateway_prefix_list_reference( self, - input: CreateTransitGatewayPrefixListReferenceInput, + request: _models.CreateTransitGatewayPrefixListReferenceInput + | _models.CreateTransitGatewayPrefixListReferenceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayPrefixListReferenceOutput: ... + + @_overload + def create_transit_gateway_prefix_list_reference( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayPrefixListReferenceInputDict], ) -> CreateTransitGatewayPrefixListReferenceOutput: """ Creates a reference (route) to a prefix list in a specified transit gateway route table. Args: - input: - An instance of `CreateTransitGatewayPrefixListReferenceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6660,19 +9027,41 @@ def create_transit_gateway_prefix_list_reference( Returns: An instance of `CreateTransitGatewayPrefixListReferenceOutput`. """ + + def create_transit_gateway_prefix_list_reference( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayPrefixListReferenceOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, + [], + plugins, ) + @_overload + def create_transit_gateway_route( + self, + request: _models.CreateTransitGatewayRouteInput + | _models.CreateTransitGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayRouteOutput: ... + + @_overload def create_transit_gateway_route( - self, input: CreateTransitGatewayRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayRouteInputDict], ) -> CreateTransitGatewayRouteOutput: """ Creates a static route for the specified transit gateway route table. Args: - input: - An instance of `CreateTransitGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6682,19 +9071,39 @@ def create_transit_gateway_route( Returns: An instance of `CreateTransitGatewayRouteOutput`. """ - return self._invoke(input, _models.CREATE_TRANSIT_GATEWAY_ROUTE, [], plugins) + def create_transit_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayRouteOutput: + return self._invoke( + self._select_input(_models.CREATE_TRANSIT_GATEWAY_ROUTE, args, kwargs), + _models.CREATE_TRANSIT_GATEWAY_ROUTE, + [], + plugins, + ) + + @_overload + def create_transit_gateway_route_table( + self, + request: _models.CreateTransitGatewayRouteTableInput + | _models.CreateTransitGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayRouteTableOutput: ... + + @_overload def create_transit_gateway_route_table( self, - input: CreateTransitGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayRouteTableInputDict], ) -> CreateTransitGatewayRouteTableOutput: """ Creates a route table for the specified transit gateway. Args: - input: - An instance of `CreateTransitGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6704,21 +9113,41 @@ def create_transit_gateway_route_table( Returns: An instance of `CreateTransitGatewayRouteTableOutput`. """ + + def create_transit_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayRouteTableOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload def create_transit_gateway_route_table_announcement( self, - input: CreateTransitGatewayRouteTableAnnouncementInput, + request: _models.CreateTransitGatewayRouteTableAnnouncementInput + | _models.CreateTransitGatewayRouteTableAnnouncementInputDict, + /, + *, plugins: list[Plugin] | None = None, - ) -> CreateTransitGatewayRouteTableAnnouncementOutput: + ) -> CreateTransitGatewayRouteTableAnnouncementOutput: ... + + @_overload + def create_transit_gateway_route_table_announcement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayRouteTableAnnouncementInputDict], + ) -> CreateTransitGatewayRouteTableAnnouncementOutput: """ Advertises a new transit gateway route table. Args: - input: - An instance of `CreateTransitGatewayRouteTableAnnouncementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6728,14 +9157,36 @@ def create_transit_gateway_route_table_announcement( Returns: An instance of `CreateTransitGatewayRouteTableAnnouncementOutput`. """ + + def create_transit_gateway_route_table_announcement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayRouteTableAnnouncementOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, + [], + plugins, ) + @_overload + def create_transit_gateway_vpc_attachment( + self, + request: _models.CreateTransitGatewayVpcAttachmentInput + | _models.CreateTransitGatewayVpcAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTransitGatewayVpcAttachmentOutput: ... + + @_overload def create_transit_gateway_vpc_attachment( self, - input: CreateTransitGatewayVpcAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTransitGatewayVpcAttachmentInputDict], ) -> CreateTransitGatewayVpcAttachmentOutput: """ Attaches the specified VPC to the specified transit gateway. @@ -6748,8 +9199,6 @@ def create_transit_gateway_vpc_attachment( VPC route table using CreateRoute. Args: - input: - An instance of `CreateTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6759,22 +9208,42 @@ def create_transit_gateway_vpc_attachment( Returns: An instance of `CreateTransitGatewayVpcAttachmentOutput`. """ + + def create_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTransitGatewayVpcAttachmentOutput: return self._invoke( - input, _models.CREATE_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.CREATE_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.CREATE_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload + def create_verified_access_endpoint( + self, + request: _models.CreateVerifiedAccessEndpointInput + | _models.CreateVerifiedAccessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVerifiedAccessEndpointOutput: ... + + @_overload def create_verified_access_endpoint( self, - input: CreateVerifiedAccessEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVerifiedAccessEndpointInputDict], ) -> CreateVerifiedAccessEndpointOutput: """ An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy. Args: - input: - An instance of `CreateVerifiedAccessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6784,10 +9253,34 @@ def create_verified_access_endpoint( Returns: An instance of `CreateVerifiedAccessEndpointOutput`. """ - return self._invoke(input, _models.CREATE_VERIFIED_ACCESS_ENDPOINT, [], plugins) + def create_verified_access_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVerifiedAccessEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_VERIFIED_ACCESS_ENDPOINT, args, kwargs), + _models.CREATE_VERIFIED_ACCESS_ENDPOINT, + [], + plugins, + ) + + @_overload + def create_verified_access_group( + self, + request: _models.CreateVerifiedAccessGroupInput + | _models.CreateVerifiedAccessGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVerifiedAccessGroupOutput: ... + + @_overload def create_verified_access_group( - self, input: CreateVerifiedAccessGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVerifiedAccessGroupInputDict], ) -> CreateVerifiedAccessGroupOutput: """ An Amazon Web Services Verified Access group is a collection of Amazon @@ -6798,8 +9291,6 @@ def create_verified_access_group( applications together and use one common Verified Access policy. Args: - input: - An instance of `CreateVerifiedAccessGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6809,12 +9300,34 @@ def create_verified_access_group( Returns: An instance of `CreateVerifiedAccessGroupOutput`. """ - return self._invoke(input, _models.CREATE_VERIFIED_ACCESS_GROUP, [], plugins) + def create_verified_access_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVerifiedAccessGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_VERIFIED_ACCESS_GROUP, args, kwargs), + _models.CREATE_VERIFIED_ACCESS_GROUP, + [], + plugins, + ) + + @_overload + def create_verified_access_instance( + self, + request: _models.CreateVerifiedAccessInstanceInput + | _models.CreateVerifiedAccessInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVerifiedAccessInstanceOutput: ... + + @_overload def create_verified_access_instance( self, - input: CreateVerifiedAccessInstanceInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVerifiedAccessInstanceInputDict], ) -> CreateVerifiedAccessInstanceOutput: """ An Amazon Web Services Verified Access instance is a regional entity @@ -6822,8 +9335,6 @@ def create_verified_access_instance( security requirements are met. Args: - input: - An instance of `CreateVerifiedAccessInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6833,12 +9344,34 @@ def create_verified_access_instance( Returns: An instance of `CreateVerifiedAccessInstanceOutput`. """ - return self._invoke(input, _models.CREATE_VERIFIED_ACCESS_INSTANCE, [], plugins) + def create_verified_access_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVerifiedAccessInstanceOutput: + return self._invoke( + self._select_input(_models.CREATE_VERIFIED_ACCESS_INSTANCE, args, kwargs), + _models.CREATE_VERIFIED_ACCESS_INSTANCE, + [], + plugins, + ) + + @_overload + def create_verified_access_trust_provider( + self, + request: _models.CreateVerifiedAccessTrustProviderInput + | _models.CreateVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVerifiedAccessTrustProviderOutput: ... + + @_overload def create_verified_access_trust_provider( self, - input: CreateVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVerifiedAccessTrustProviderInputDict], ) -> CreateVerifiedAccessTrustProviderOutput: """ A trust provider is a third-party entity that creates, maintains, and @@ -6848,8 +9381,6 @@ def create_verified_access_trust_provider( request. Args: - input: - An instance of `CreateVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6859,14 +9390,35 @@ def create_verified_access_trust_provider( Returns: An instance of `CreateVerifiedAccessTrustProviderOutput`. """ + + def create_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVerifiedAccessTrustProviderOutput: return self._invoke( - input, _models.CREATE_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.CREATE_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.CREATE_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload + def create_volume( + self, + request: _models.CreateVolumeInput | _models.CreateVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVolumeOutput: ... + + @_overload def create_volume( self, - input: CreateVolumeInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVolumeInputDict], ) -> CreateVolumeOutput: """ Creates an EBS volume that can be attached to an instance in the same @@ -6893,8 +9445,6 @@ def create_volume( in the *Amazon EBS User Guide*. Args: - input: - An instance of `CreateVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6904,10 +9454,33 @@ def create_volume( Returns: An instance of `CreateVolumeOutput`. """ - return self._invoke(input, _models.CREATE_VOLUME, [], plugins) + def create_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVolumeOutput: + return self._invoke( + self._select_input(_models.CREATE_VOLUME, args, kwargs), + _models.CREATE_VOLUME, + [], + plugins, + ) + + @_overload + def create_vpc( + self, + request: _models.CreateVpcInput | _models.CreateVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcOutput: ... + + @_overload def create_vpc( - self, input: CreateVpcInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcInputDict], ) -> CreateVpcOutput: """ Creates a VPC with the specified CIDR blocks. @@ -6934,8 +9507,6 @@ def create_vpc( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6945,12 +9516,34 @@ def create_vpc( Returns: An instance of `CreateVpcOutput`. """ - return self._invoke(input, _models.CREATE_VPC, [], plugins) + def create_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcOutput: + return self._invoke( + self._select_input(_models.CREATE_VPC, args, kwargs), + _models.CREATE_VPC, + [], + plugins, + ) + + @_overload + def create_vpc_block_public_access_exclusion( + self, + request: _models.CreateVpcBlockPublicAccessExclusionInput + | _models.CreateVpcBlockPublicAccessExclusionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcBlockPublicAccessExclusionOutput: ... + + @_overload def create_vpc_block_public_access_exclusion( self, - input: CreateVpcBlockPublicAccessExclusionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcBlockPublicAccessExclusionInputDict], ) -> CreateVpcBlockPublicAccessExclusionOutput: """ Create a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is @@ -6964,8 +9557,6 @@ def create_vpc_block_public_access_exclusion( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateVpcBlockPublicAccessExclusionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6975,14 +9566,36 @@ def create_vpc_block_public_access_exclusion( Returns: An instance of `CreateVpcBlockPublicAccessExclusionOutput`. """ + + def create_vpc_block_public_access_exclusion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcBlockPublicAccessExclusionOutput: return self._invoke( - input, _models.CREATE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, [], plugins + self._select_input( + _models.CREATE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, args, kwargs + ), + _models.CREATE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, + [], + plugins, ) + @_overload def create_vpc_encryption_control( self, - input: CreateVpcEncryptionControlInput, + request: _models.CreateVpcEncryptionControlInput + | _models.CreateVpcEncryptionControlInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateVpcEncryptionControlOutput: ... + + @_overload + def create_vpc_encryption_control( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcEncryptionControlInputDict], ) -> CreateVpcEncryptionControlOutput: """ Creates a VPC Encryption Control configuration for a specified VPC. VPC @@ -6995,8 +9608,6 @@ def create_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `CreateVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7006,10 +9617,33 @@ def create_vpc_encryption_control( Returns: An instance of `CreateVpcEncryptionControlOutput`. """ - return self._invoke(input, _models.CREATE_VPC_ENCRYPTION_CONTROL, [], plugins) + def create_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcEncryptionControlOutput: + return self._invoke( + self._select_input(_models.CREATE_VPC_ENCRYPTION_CONTROL, args, kwargs), + _models.CREATE_VPC_ENCRYPTION_CONTROL, + [], + plugins, + ) + + @_overload + def create_vpc_endpoint( + self, + request: _models.CreateVpcEndpointInput | _models.CreateVpcEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcEndpointOutput: ... + + @_overload def create_vpc_endpoint( - self, input: CreateVpcEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcEndpointInputDict], ) -> CreateVpcEndpointOutput: """ Creates a VPC endpoint. A VPC endpoint provides a private connection @@ -7020,8 +9654,6 @@ def create_vpc_endpoint( Guide](https://docs.aws.amazon.com/vpc/latest/privatelink/). Args: - input: - An instance of `CreateVpcEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7031,12 +9663,34 @@ def create_vpc_endpoint( Returns: An instance of `CreateVpcEndpointOutput`. """ - return self._invoke(input, _models.CREATE_VPC_ENDPOINT, [], plugins) + def create_vpc_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_VPC_ENDPOINT, args, kwargs), + _models.CREATE_VPC_ENDPOINT, + [], + plugins, + ) + + @_overload def create_vpc_endpoint_connection_notification( self, - input: CreateVpcEndpointConnectionNotificationInput, + request: _models.CreateVpcEndpointConnectionNotificationInput + | _models.CreateVpcEndpointConnectionNotificationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateVpcEndpointConnectionNotificationOutput: ... + + @_overload + def create_vpc_endpoint_connection_notification( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcEndpointConnectionNotificationInputDict], ) -> CreateVpcEndpointConnectionNotificationOutput: """ Creates a connection notification for a specified VPC endpoint or VPC @@ -7049,8 +9703,6 @@ def create_vpc_endpoint_connection_notification( You can create a connection notification for interface endpoints only. Args: - input: - An instance of `CreateVpcEndpointConnectionNotificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7060,14 +9712,36 @@ def create_vpc_endpoint_connection_notification( Returns: An instance of `CreateVpcEndpointConnectionNotificationOutput`. """ + + def create_vpc_endpoint_connection_notification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcEndpointConnectionNotificationOutput: return self._invoke( - input, _models.CREATE_VPC_ENDPOINT_CONNECTION_NOTIFICATION, [], plugins + self._select_input( + _models.CREATE_VPC_ENDPOINT_CONNECTION_NOTIFICATION, args, kwargs + ), + _models.CREATE_VPC_ENDPOINT_CONNECTION_NOTIFICATION, + [], + plugins, ) + @_overload + def create_vpc_endpoint_service_configuration( + self, + request: _models.CreateVpcEndpointServiceConfigurationInput + | _models.CreateVpcEndpointServiceConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcEndpointServiceConfigurationOutput: ... + + @_overload def create_vpc_endpoint_service_configuration( self, - input: CreateVpcEndpointServiceConfigurationInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcEndpointServiceConfigurationInputDict], ) -> CreateVpcEndpointServiceConfigurationOutput: """ Creates a VPC endpoint service to which service consumers (Amazon Web @@ -7092,8 +9766,6 @@ def create_vpc_endpoint_service_configuration( Guide](https://docs.aws.amazon.com/vpc/latest/privatelink/). Args: - input: - An instance of `CreateVpcEndpointServiceConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7103,14 +9775,36 @@ def create_vpc_endpoint_service_configuration( Returns: An instance of `CreateVpcEndpointServiceConfigurationOutput`. """ + + def create_vpc_endpoint_service_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcEndpointServiceConfigurationOutput: return self._invoke( - input, _models.CREATE_VPC_ENDPOINT_SERVICE_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_VPC_ENDPOINT_SERVICE_CONFIGURATION, args, kwargs + ), + _models.CREATE_VPC_ENDPOINT_SERVICE_CONFIGURATION, + [], + plugins, ) + @_overload + def create_vpc_peering_connection( + self, + request: _models.CreateVpcPeeringConnectionInput + | _models.CreateVpcPeeringConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpcPeeringConnectionOutput: ... + + @_overload def create_vpc_peering_connection( self, - input: CreateVpcPeeringConnectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpcPeeringConnectionInputDict], ) -> CreateVpcPeeringConnectionOutput: """ Requests a VPC peering connection between two VPCs: a requester VPC that @@ -7134,8 +9828,6 @@ def create_vpc_peering_connection( `failed`. Args: - input: - An instance of `CreateVpcPeeringConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7145,18 +9837,40 @@ def create_vpc_peering_connection( Returns: An instance of `CreateVpcPeeringConnectionOutput`. """ - return self._invoke(input, _models.CREATE_VPC_PEERING_CONNECTION, [], plugins) + def create_vpc_peering_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpcPeeringConnectionOutput: + return self._invoke( + self._select_input(_models.CREATE_VPC_PEERING_CONNECTION, args, kwargs), + _models.CREATE_VPC_PEERING_CONNECTION, + [], + plugins, + ) + + @_overload + def create_vpn_concentrator( + self, + request: _models.CreateVpnConcentratorInput + | _models.CreateVpnConcentratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpnConcentratorOutput: ... + + @_overload def create_vpn_concentrator( - self, input: CreateVpnConcentratorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpnConcentratorInputDict], ) -> CreateVpnConcentratorOutput: """ Creates a VPN concentrator that aggregates multiple VPN connections to a transit gateway. Args: - input: - An instance of `CreateVpnConcentratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7166,10 +9880,34 @@ def create_vpn_concentrator( Returns: An instance of `CreateVpnConcentratorOutput`. """ - return self._invoke(input, _models.CREATE_VPN_CONCENTRATOR, [], plugins) + def create_vpn_concentrator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpnConcentratorOutput: + return self._invoke( + self._select_input(_models.CREATE_VPN_CONCENTRATOR, args, kwargs), + _models.CREATE_VPN_CONCENTRATOR, + [], + plugins, + ) + + @_overload + def create_vpn_connection( + self, + request: _models.CreateVpnConnectionInput + | _models.CreateVpnConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpnConnectionOutput: ... + + @_overload def create_vpn_connection( - self, input: CreateVpnConnectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpnConnectionInputDict], ) -> CreateVpnConnectionOutput: """ Creates a VPN connection between an existing virtual private gateway or @@ -7196,8 +9934,6 @@ def create_vpn_connection( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `CreateVpnConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7207,10 +9943,34 @@ def create_vpn_connection( Returns: An instance of `CreateVpnConnectionOutput`. """ - return self._invoke(input, _models.CREATE_VPN_CONNECTION, [], plugins) + def create_vpn_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpnConnectionOutput: + return self._invoke( + self._select_input(_models.CREATE_VPN_CONNECTION, args, kwargs), + _models.CREATE_VPN_CONNECTION, + [], + plugins, + ) + + @_overload + def create_vpn_connection_route( + self, + request: _models.CreateVpnConnectionRouteInput + | _models.CreateVpnConnectionRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpnConnectionRouteOutput: ... + + @_overload def create_vpn_connection_route( - self, input: CreateVpnConnectionRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpnConnectionRouteInputDict], ) -> CreateVpnConnectionRouteOutput: """ Creates a static route associated with a VPN connection between an @@ -7223,8 +9983,6 @@ def create_vpn_connection_route( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `CreateVpnConnectionRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7234,10 +9992,33 @@ def create_vpn_connection_route( Returns: An instance of `CreateVpnConnectionRouteOutput`. """ - return self._invoke(input, _models.CREATE_VPN_CONNECTION_ROUTE, [], plugins) + def create_vpn_connection_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpnConnectionRouteOutput: + return self._invoke( + self._select_input(_models.CREATE_VPN_CONNECTION_ROUTE, args, kwargs), + _models.CREATE_VPN_CONNECTION_ROUTE, + [], + plugins, + ) + + @_overload + def create_vpn_gateway( + self, + request: _models.CreateVpnGatewayInput | _models.CreateVpnGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVpnGatewayOutput: ... + + @_overload def create_vpn_gateway( - self, input: CreateVpnGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVpnGatewayInputDict], ) -> CreateVpnGatewayOutput: """ Creates a virtual private gateway. A virtual private gateway is the @@ -7249,8 +10030,6 @@ def create_vpn_gateway( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `CreateVpnGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7260,12 +10039,34 @@ def create_vpn_gateway( Returns: An instance of `CreateVpnGatewayOutput`. """ - return self._invoke(input, _models.CREATE_VPN_GATEWAY, [], plugins) + def create_vpn_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVpnGatewayOutput: + return self._invoke( + self._select_input(_models.CREATE_VPN_GATEWAY, args, kwargs), + _models.CREATE_VPN_GATEWAY, + [], + plugins, + ) + + @_overload + def delete_application_status_check( + self, + request: _models.DeleteApplicationStatusCheckInput + | _models.DeleteApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteApplicationStatusCheckOutput: ... + + @_overload def delete_application_status_check( self, - input: DeleteApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteApplicationStatusCheckInputDict], ) -> DeleteApplicationStatusCheckOutput: """ Deletes an application status check. The following rules apply: @@ -7276,8 +10077,6 @@ def delete_application_status_check( deleting. Args: - input: - An instance of `DeleteApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7287,12 +10086,34 @@ def delete_application_status_check( Returns: An instance of `DeleteApplicationStatusCheckOutput`. """ - return self._invoke(input, _models.DELETE_APPLICATION_STATUS_CHECK, [], plugins) + def delete_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteApplicationStatusCheckOutput: + return self._invoke( + self._select_input(_models.DELETE_APPLICATION_STATUS_CHECK, args, kwargs), + _models.DELETE_APPLICATION_STATUS_CHECK, + [], + plugins, + ) + + @_overload + def delete_capacity_manager_data_export( + self, + request: _models.DeleteCapacityManagerDataExportInput + | _models.DeleteCapacityManagerDataExportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCapacityManagerDataExportOutput: ... + + @_overload def delete_capacity_manager_data_export( self, - input: DeleteCapacityManagerDataExportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityManagerDataExportInputDict], ) -> DeleteCapacityManagerDataExportOutput: """ Deletes an existing Capacity Manager data export configuration. This @@ -7300,8 +10121,6 @@ def delete_capacity_manager_data_export( files from S3. Args: - input: - An instance of `DeleteCapacityManagerDataExportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7311,12 +10130,36 @@ def delete_capacity_manager_data_export( Returns: An instance of `DeleteCapacityManagerDataExportOutput`. """ + + def delete_capacity_manager_data_export( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityManagerDataExportOutput: return self._invoke( - input, _models.DELETE_CAPACITY_MANAGER_DATA_EXPORT, [], plugins + self._select_input( + _models.DELETE_CAPACITY_MANAGER_DATA_EXPORT, args, kwargs + ), + _models.DELETE_CAPACITY_MANAGER_DATA_EXPORT, + [], + plugins, ) + @_overload + def delete_carrier_gateway( + self, + request: _models.DeleteCarrierGatewayInput + | _models.DeleteCarrierGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCarrierGatewayOutput: ... + + @_overload def delete_carrier_gateway( - self, input: DeleteCarrierGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCarrierGatewayInputDict], ) -> DeleteCarrierGatewayOutput: """ Deletes a carrier gateway. @@ -7328,8 +10171,6 @@ def delete_carrier_gateway( [DeleteRoute](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteRoute.html). Args: - input: - An instance of `DeleteCarrierGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7339,18 +10180,40 @@ def delete_carrier_gateway( Returns: An instance of `DeleteCarrierGatewayOutput`. """ - return self._invoke(input, _models.DELETE_CARRIER_GATEWAY, [], plugins) + def delete_carrier_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCarrierGatewayOutput: + return self._invoke( + self._select_input(_models.DELETE_CARRIER_GATEWAY, args, kwargs), + _models.DELETE_CARRIER_GATEWAY, + [], + plugins, + ) + + @_overload + def delete_client_vpn_endpoint( + self, + request: _models.DeleteClientVpnEndpointInput + | _models.DeleteClientVpnEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClientVpnEndpointOutput: ... + + @_overload def delete_client_vpn_endpoint( - self, input: DeleteClientVpnEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClientVpnEndpointInputDict], ) -> DeleteClientVpnEndpointOutput: """ Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint. Args: - input: - An instance of `DeleteClientVpnEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7360,19 +10223,39 @@ def delete_client_vpn_endpoint( Returns: An instance of `DeleteClientVpnEndpointOutput`. """ - return self._invoke(input, _models.DELETE_CLIENT_VPN_ENDPOINT, [], plugins) + def delete_client_vpn_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClientVpnEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_CLIENT_VPN_ENDPOINT, args, kwargs), + _models.DELETE_CLIENT_VPN_ENDPOINT, + [], + plugins, + ) + + @_overload + def delete_client_vpn_endpoint_authorization_policy( + self, + request: _models.DeleteClientVpnEndpointAuthorizationPolicyInput + | _models.DeleteClientVpnEndpointAuthorizationPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClientVpnEndpointAuthorizationPolicyOutput: ... + + @_overload def delete_client_vpn_endpoint_authorization_policy( self, - input: DeleteClientVpnEndpointAuthorizationPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClientVpnEndpointAuthorizationPolicyInputDict], ) -> DeleteClientVpnEndpointAuthorizationPolicyOutput: """ Deletes the authorization policy for a Client VPN endpoint. Args: - input: - An instance of `DeleteClientVpnEndpointAuthorizationPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7382,12 +10265,36 @@ def delete_client_vpn_endpoint_authorization_policy( Returns: An instance of `DeleteClientVpnEndpointAuthorizationPolicyOutput`. """ + + def delete_client_vpn_endpoint_authorization_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClientVpnEndpointAuthorizationPolicyOutput: return self._invoke( - input, _models.DELETE_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, [], plugins + self._select_input( + _models.DELETE_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, args, kwargs + ), + _models.DELETE_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, + [], + plugins, ) + @_overload def delete_client_vpn_route( - self, input: DeleteClientVpnRouteInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteClientVpnRouteInput + | _models.DeleteClientVpnRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClientVpnRouteOutput: ... + + @_overload + def delete_client_vpn_route( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClientVpnRouteInputDict], ) -> DeleteClientVpnRouteOutput: """ Deletes a route from a Client VPN endpoint. You can only delete routes @@ -7397,8 +10304,6 @@ def delete_client_vpn_route( disassociate the target subnet from the Client VPN endpoint. Args: - input: - An instance of `DeleteClientVpnRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7408,17 +10313,38 @@ def delete_client_vpn_route( Returns: An instance of `DeleteClientVpnRouteOutput`. """ - return self._invoke(input, _models.DELETE_CLIENT_VPN_ROUTE, [], plugins) + def delete_client_vpn_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClientVpnRouteOutput: + return self._invoke( + self._select_input(_models.DELETE_CLIENT_VPN_ROUTE, args, kwargs), + _models.DELETE_CLIENT_VPN_ROUTE, + [], + plugins, + ) + + @_overload + def delete_coip_cidr( + self, + request: _models.DeleteCoipCidrInput | _models.DeleteCoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCoipCidrOutput: ... + + @_overload def delete_coip_cidr( - self, input: DeleteCoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCoipCidrInputDict], ) -> DeleteCoipCidrOutput: """ Deletes a range of customer-owned IP addresses. Args: - input: - An instance of `DeleteCoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7428,17 +10354,38 @@ def delete_coip_cidr( Returns: An instance of `DeleteCoipCidrOutput`. """ - return self._invoke(input, _models.DELETE_COIP_CIDR, [], plugins) + def delete_coip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCoipCidrOutput: + return self._invoke( + self._select_input(_models.DELETE_COIP_CIDR, args, kwargs), + _models.DELETE_COIP_CIDR, + [], + plugins, + ) + + @_overload + def delete_coip_pool( + self, + request: _models.DeleteCoipPoolInput | _models.DeleteCoipPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCoipPoolOutput: ... + + @_overload def delete_coip_pool( - self, input: DeleteCoipPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCoipPoolInputDict], ) -> DeleteCoipPoolOutput: """ Deletes a pool of customer-owned IP (CoIP) addresses. Args: - input: - An instance of `DeleteCoipPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7448,18 +10395,40 @@ def delete_coip_pool( Returns: An instance of `DeleteCoipPoolOutput`. """ - return self._invoke(input, _models.DELETE_COIP_POOL, [], plugins) + def delete_coip_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCoipPoolOutput: + return self._invoke( + self._select_input(_models.DELETE_COIP_POOL, args, kwargs), + _models.DELETE_COIP_POOL, + [], + plugins, + ) + + @_overload + def delete_customer_gateway( + self, + request: _models.DeleteCustomerGatewayInput + | _models.DeleteCustomerGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomerGatewayOutput: ... + + @_overload def delete_customer_gateway( - self, input: DeleteCustomerGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomerGatewayInputDict], ) -> DeleteCustomerGatewayOutput: """ Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway. Args: - input: - An instance of `DeleteCustomerGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7469,10 +10438,33 @@ def delete_customer_gateway( Returns: An instance of `DeleteCustomerGatewayOutput`. """ - return self._invoke(input, _models.DELETE_CUSTOMER_GATEWAY, [], plugins) + def delete_customer_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomerGatewayOutput: + return self._invoke( + self._select_input(_models.DELETE_CUSTOMER_GATEWAY, args, kwargs), + _models.DELETE_CUSTOMER_GATEWAY, + [], + plugins, + ) + + @_overload + def delete_dhcp_options( + self, + request: _models.DeleteDhcpOptionsInput | _models.DeleteDhcpOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDhcpOptionsOutput: ... + + @_overload def delete_dhcp_options( - self, input: DeleteDhcpOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDhcpOptionsInputDict], ) -> DeleteDhcpOptionsOutput: """ Deletes the specified set of DHCP options. You must disassociate the set @@ -7481,8 +10473,6 @@ def delete_dhcp_options( default set of options with the VPC. Args: - input: - An instance of `DeleteDhcpOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7492,19 +10482,39 @@ def delete_dhcp_options( Returns: An instance of `DeleteDhcpOptionsOutput`. """ - return self._invoke(input, _models.DELETE_DHCP_OPTIONS, [], plugins) + def delete_dhcp_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDhcpOptionsOutput: + return self._invoke( + self._select_input(_models.DELETE_DHCP_OPTIONS, args, kwargs), + _models.DELETE_DHCP_OPTIONS, + [], + plugins, + ) + + @_overload + def delete_egress_only_internet_gateway( + self, + request: _models.DeleteEgressOnlyInternetGatewayInput + | _models.DeleteEgressOnlyInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEgressOnlyInternetGatewayOutput: ... + + @_overload def delete_egress_only_internet_gateway( self, - input: DeleteEgressOnlyInternetGatewayInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEgressOnlyInternetGatewayInputDict], ) -> DeleteEgressOnlyInternetGatewayOutput: """ Deletes an egress-only internet gateway. Args: - input: - An instance of `DeleteEgressOnlyInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7514,12 +10524,35 @@ def delete_egress_only_internet_gateway( Returns: An instance of `DeleteEgressOnlyInternetGatewayOutput`. """ + + def delete_egress_only_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEgressOnlyInternetGatewayOutput: return self._invoke( - input, _models.DELETE_EGRESS_ONLY_INTERNET_GATEWAY, [], plugins + self._select_input( + _models.DELETE_EGRESS_ONLY_INTERNET_GATEWAY, args, kwargs + ), + _models.DELETE_EGRESS_ONLY_INTERNET_GATEWAY, + [], + plugins, ) + @_overload + def delete_fleets( + self, + request: _models.DeleteFleetsInput | _models.DeleteFleetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFleetsOutput: ... + + @_overload def delete_fleets( - self, input: DeleteFleetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFleetsInputDict], ) -> DeleteFleetsOutput: """ Deletes the specified EC2 Fleet request. @@ -7573,8 +10606,6 @@ def delete_fleets( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeleteFleetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7584,17 +10615,38 @@ def delete_fleets( Returns: An instance of `DeleteFleetsOutput`. """ - return self._invoke(input, _models.DELETE_FLEETS, [], plugins) + def delete_fleets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFleetsOutput: + return self._invoke( + self._select_input(_models.DELETE_FLEETS, args, kwargs), + _models.DELETE_FLEETS, + [], + plugins, + ) + + @_overload + def delete_flow_logs( + self, + request: _models.DeleteFlowLogsInput | _models.DeleteFlowLogsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFlowLogsOutput: ... + + @_overload def delete_flow_logs( - self, input: DeleteFlowLogsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFlowLogsInputDict], ) -> DeleteFlowLogsOutput: """ Deletes one or more flow logs. Args: - input: - An instance of `DeleteFlowLogsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7604,17 +10656,38 @@ def delete_flow_logs( Returns: An instance of `DeleteFlowLogsOutput`. """ - return self._invoke(input, _models.DELETE_FLOW_LOGS, [], plugins) + def delete_flow_logs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFlowLogsOutput: + return self._invoke( + self._select_input(_models.DELETE_FLOW_LOGS, args, kwargs), + _models.DELETE_FLOW_LOGS, + [], + plugins, + ) + + @_overload + def delete_fpga_image( + self, + request: _models.DeleteFpgaImageInput | _models.DeleteFpgaImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFpgaImageOutput: ... + + @_overload def delete_fpga_image( - self, input: DeleteFpgaImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFpgaImageInputDict], ) -> DeleteFpgaImageOutput: """ Deletes the specified Amazon FPGA Image (AFI). Args: - input: - An instance of `DeleteFpgaImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7624,10 +10697,34 @@ def delete_fpga_image( Returns: An instance of `DeleteFpgaImageOutput`. """ - return self._invoke(input, _models.DELETE_FPGA_IMAGE, [], plugins) + def delete_fpga_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFpgaImageOutput: + return self._invoke( + self._select_input(_models.DELETE_FPGA_IMAGE, args, kwargs), + _models.DELETE_FPGA_IMAGE, + [], + plugins, + ) + + @_overload + def delete_image_usage_report( + self, + request: _models.DeleteImageUsageReportInput + | _models.DeleteImageUsageReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteImageUsageReportOutput: ... + + @_overload def delete_image_usage_report( - self, input: DeleteImageUsageReportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteImageUsageReportInputDict], ) -> DeleteImageUsageReportOutput: """ Deletes the specified image usage report. @@ -7637,8 +10734,6 @@ def delete_image_usage_report( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeleteImageUsageReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7648,19 +10743,39 @@ def delete_image_usage_report( Returns: An instance of `DeleteImageUsageReportOutput`. """ - return self._invoke(input, _models.DELETE_IMAGE_USAGE_REPORT, [], plugins) + def delete_image_usage_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteImageUsageReportOutput: + return self._invoke( + self._select_input(_models.DELETE_IMAGE_USAGE_REPORT, args, kwargs), + _models.DELETE_IMAGE_USAGE_REPORT, + [], + plugins, + ) + + @_overload + def delete_instance_connect_endpoint( + self, + request: _models.DeleteInstanceConnectEndpointInput + | _models.DeleteInstanceConnectEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInstanceConnectEndpointOutput: ... + + @_overload def delete_instance_connect_endpoint( self, - input: DeleteInstanceConnectEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInstanceConnectEndpointInputDict], ) -> DeleteInstanceConnectEndpointOutput: """ Deletes the specified EC2 Instance Connect Endpoint. Args: - input: - An instance of `DeleteInstanceConnectEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7670,12 +10785,34 @@ def delete_instance_connect_endpoint( Returns: An instance of `DeleteInstanceConnectEndpointOutput`. """ + + def delete_instance_connect_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInstanceConnectEndpointOutput: return self._invoke( - input, _models.DELETE_INSTANCE_CONNECT_ENDPOINT, [], plugins + self._select_input(_models.DELETE_INSTANCE_CONNECT_ENDPOINT, args, kwargs), + _models.DELETE_INSTANCE_CONNECT_ENDPOINT, + [], + plugins, ) + @_overload + def delete_instance_event_window( + self, + request: _models.DeleteInstanceEventWindowInput + | _models.DeleteInstanceEventWindowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInstanceEventWindowOutput: ... + + @_overload def delete_instance_event_window( - self, input: DeleteInstanceEventWindowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInstanceEventWindowInputDict], ) -> DeleteInstanceEventWindowOutput: """ Deletes the specified event window. @@ -7685,8 +10822,6 @@ def delete_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeleteInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7696,18 +10831,40 @@ def delete_instance_event_window( Returns: An instance of `DeleteInstanceEventWindowOutput`. """ - return self._invoke(input, _models.DELETE_INSTANCE_EVENT_WINDOW, [], plugins) + def delete_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInstanceEventWindowOutput: + return self._invoke( + self._select_input(_models.DELETE_INSTANCE_EVENT_WINDOW, args, kwargs), + _models.DELETE_INSTANCE_EVENT_WINDOW, + [], + plugins, + ) + + @_overload + def delete_internet_gateway( + self, + request: _models.DeleteInternetGatewayInput + | _models.DeleteInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInternetGatewayOutput: ... + + @_overload def delete_internet_gateway( - self, input: DeleteInternetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInternetGatewayInputDict], ) -> DeleteInternetGatewayOutput: """ Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it. Args: - input: - An instance of `DeleteInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7717,10 +10874,33 @@ def delete_internet_gateway( Returns: An instance of `DeleteInternetGatewayOutput`. """ - return self._invoke(input, _models.DELETE_INTERNET_GATEWAY, [], plugins) + def delete_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInternetGatewayOutput: + return self._invoke( + self._select_input(_models.DELETE_INTERNET_GATEWAY, args, kwargs), + _models.DELETE_INTERNET_GATEWAY, + [], + plugins, + ) + + @_overload + def delete_ipam( + self, + request: _models.DeleteIpamInput | _models.DeleteIpamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamOutput: ... + + @_overload def delete_ipam( - self, input: DeleteIpamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamInputDict], ) -> DeleteIpamOutput: """ Delete an IPAM. Deleting an IPAM removes all monitored data associated @@ -7731,8 +10911,6 @@ def delete_ipam( the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeleteIpamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7742,12 +10920,34 @@ def delete_ipam( Returns: An instance of `DeleteIpamOutput`. """ - return self._invoke(input, _models.DELETE_IPAM, [], plugins) + def delete_ipam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamOutput: + return self._invoke( + self._select_input(_models.DELETE_IPAM, args, kwargs), + _models.DELETE_IPAM, + [], + plugins, + ) + + @_overload + def delete_ipam_external_resource_verification_token( + self, + request: _models.DeleteIpamExternalResourceVerificationTokenInput + | _models.DeleteIpamExternalResourceVerificationTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamExternalResourceVerificationTokenOutput: ... + + @_overload def delete_ipam_external_resource_verification_token( self, - input: DeleteIpamExternalResourceVerificationTokenInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamExternalResourceVerificationTokenInputDict], ) -> DeleteIpamExternalResourceVerificationTokenOutput: """ Delete a verification token. @@ -7759,8 +10959,6 @@ def delete_ipam_external_resource_verification_token( Services (BYOIP). Args: - input: - An instance of `DeleteIpamExternalResourceVerificationTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7770,14 +10968,36 @@ def delete_ipam_external_resource_verification_token( Returns: An instance of `DeleteIpamExternalResourceVerificationTokenOutput`. """ + + def delete_ipam_external_resource_verification_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamExternalResourceVerificationTokenOutput: return self._invoke( - input, _models.DELETE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, [], plugins + self._select_input( + _models.DELETE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, args, kwargs + ), + _models.DELETE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN, + [], + plugins, ) + @_overload + def delete_ipam_internet_registry_association( + self, + request: _models.DeleteIpamInternetRegistryAssociationInput + | _models.DeleteIpamInternetRegistryAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamInternetRegistryAssociationOutput: ... + + @_overload def delete_ipam_internet_registry_association( self, - input: DeleteIpamInternetRegistryAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamInternetRegistryAssociationInputDict], ) -> DeleteIpamInternetRegistryAssociationOutput: """ Deletes an IPAM internet registry association. Before deleting, you must @@ -7785,8 +11005,6 @@ def delete_ipam_internet_registry_association( registry. Args: - input: - An instance of `DeleteIpamInternetRegistryAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7796,12 +11014,35 @@ def delete_ipam_internet_registry_association( Returns: An instance of `DeleteIpamInternetRegistryAssociationOutput`. """ + + def delete_ipam_internet_registry_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamInternetRegistryAssociationOutput: return self._invoke( - input, _models.DELETE_IPAM_INTERNET_REGISTRY_ASSOCIATION, [], plugins + self._select_input( + _models.DELETE_IPAM_INTERNET_REGISTRY_ASSOCIATION, args, kwargs + ), + _models.DELETE_IPAM_INTERNET_REGISTRY_ASSOCIATION, + [], + plugins, ) + @_overload def delete_ipam_policy( - self, input: DeleteIpamPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteIpamPolicyInput | _models.DeleteIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamPolicyOutput: ... + + @_overload + def delete_ipam_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamPolicyInputDict], ) -> DeleteIpamPolicyOutput: """ Deletes an IPAM policy. @@ -7816,8 +11057,6 @@ def delete_ipam_policy( account or an entity within Amazon Web Services Organizations. Args: - input: - An instance of `DeleteIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7827,10 +11066,33 @@ def delete_ipam_policy( Returns: An instance of `DeleteIpamPolicyOutput`. """ - return self._invoke(input, _models.DELETE_IPAM_POLICY, [], plugins) + def delete_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamPolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_IPAM_POLICY, args, kwargs), + _models.DELETE_IPAM_POLICY, + [], + plugins, + ) + + @_overload + def delete_ipam_pool( + self, + request: _models.DeleteIpamPoolInput | _models.DeleteIpamPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamPoolOutput: ... + + @_overload def delete_ipam_pool( - self, input: DeleteIpamPoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamPoolInputDict], ) -> DeleteIpamPoolOutput: """ Delete an IPAM pool. @@ -7847,8 +11109,6 @@ def delete_ipam_pool( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeleteIpamPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7858,20 +11118,40 @@ def delete_ipam_pool( Returns: An instance of `DeleteIpamPoolOutput`. """ - return self._invoke(input, _models.DELETE_IPAM_POOL, [], plugins) + def delete_ipam_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamPoolOutput: + return self._invoke( + self._select_input(_models.DELETE_IPAM_POOL, args, kwargs), + _models.DELETE_IPAM_POOL, + [], + plugins, + ) + + @_overload + def delete_ipam_prefix_list_resolver( + self, + request: _models.DeleteIpamPrefixListResolverInput + | _models.DeleteIpamPrefixListResolverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamPrefixListResolverOutput: ... + + @_overload def delete_ipam_prefix_list_resolver( self, - input: DeleteIpamPrefixListResolverInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamPrefixListResolverInputDict], ) -> DeleteIpamPrefixListResolverOutput: """ Deletes an IPAM prefix list resolver. Before deleting a resolver, you must first delete all resolver targets associated with it. Args: - input: - An instance of `DeleteIpamPrefixListResolverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7881,14 +11161,34 @@ def delete_ipam_prefix_list_resolver( Returns: An instance of `DeleteIpamPrefixListResolverOutput`. """ + + def delete_ipam_prefix_list_resolver( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamPrefixListResolverOutput: return self._invoke( - input, _models.DELETE_IPAM_PREFIX_LIST_RESOLVER, [], plugins + self._select_input(_models.DELETE_IPAM_PREFIX_LIST_RESOLVER, args, kwargs), + _models.DELETE_IPAM_PREFIX_LIST_RESOLVER, + [], + plugins, ) + @_overload + def delete_ipam_prefix_list_resolver_target( + self, + request: _models.DeleteIpamPrefixListResolverTargetInput + | _models.DeleteIpamPrefixListResolverTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamPrefixListResolverTargetOutput: ... + + @_overload def delete_ipam_prefix_list_resolver_target( self, - input: DeleteIpamPrefixListResolverTargetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamPrefixListResolverTargetInputDict], ) -> DeleteIpamPrefixListResolverTargetOutput: """ Deletes an IPAM prefix list resolver target. This removes the @@ -7901,8 +11201,6 @@ def delete_ipam_prefix_list_resolver_target( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeleteIpamPrefixListResolverTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7912,14 +11210,36 @@ def delete_ipam_prefix_list_resolver_target( Returns: An instance of `DeleteIpamPrefixListResolverTargetOutput`. """ + + def delete_ipam_prefix_list_resolver_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamPrefixListResolverTargetOutput: return self._invoke( - input, _models.DELETE_IPAM_PREFIX_LIST_RESOLVER_TARGET, [], plugins + self._select_input( + _models.DELETE_IPAM_PREFIX_LIST_RESOLVER_TARGET, args, kwargs + ), + _models.DELETE_IPAM_PREFIX_LIST_RESOLVER_TARGET, + [], + plugins, ) + @_overload + def delete_ipam_resource_discovery( + self, + request: _models.DeleteIpamResourceDiscoveryInput + | _models.DeleteIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamResourceDiscoveryOutput: ... + + @_overload def delete_ipam_resource_discovery( self, - input: DeleteIpamResourceDiscoveryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamResourceDiscoveryInputDict], ) -> DeleteIpamResourceDiscoveryOutput: """ Deletes an IPAM resource discovery. A resource discovery is an IPAM @@ -7927,8 +11247,6 @@ def delete_ipam_resource_discovery( to the owning account. Args: - input: - An instance of `DeleteIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7938,19 +11256,39 @@ def delete_ipam_resource_discovery( Returns: An instance of `DeleteIpamResourceDiscoveryOutput`. """ - return self._invoke(input, _models.DELETE_IPAM_RESOURCE_DISCOVERY, [], plugins) + def delete_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamResourceDiscoveryOutput: + return self._invoke( + self._select_input(_models.DELETE_IPAM_RESOURCE_DISCOVERY, args, kwargs), + _models.DELETE_IPAM_RESOURCE_DISCOVERY, + [], + plugins, + ) + + @_overload + def delete_ipam_routing_policy_registration( + self, + request: _models.DeleteIpamRoutingPolicyRegistrationInput + | _models.DeleteIpamRoutingPolicyRegistrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamRoutingPolicyRegistrationOutput: ... + + @_overload def delete_ipam_routing_policy_registration( self, - input: DeleteIpamRoutingPolicyRegistrationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamRoutingPolicyRegistrationInputDict], ) -> DeleteIpamRoutingPolicyRegistrationOutput: """ Deletes a routing policy registration for a specified CIDR prefix. Args: - input: - An instance of `DeleteIpamRoutingPolicyRegistrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7960,12 +11298,35 @@ def delete_ipam_routing_policy_registration( Returns: An instance of `DeleteIpamRoutingPolicyRegistrationOutput`. """ + + def delete_ipam_routing_policy_registration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamRoutingPolicyRegistrationOutput: return self._invoke( - input, _models.DELETE_IPAM_ROUTING_POLICY_REGISTRATION, [], plugins + self._select_input( + _models.DELETE_IPAM_ROUTING_POLICY_REGISTRATION, args, kwargs + ), + _models.DELETE_IPAM_ROUTING_POLICY_REGISTRATION, + [], + plugins, ) + @_overload def delete_ipam_scope( - self, input: DeleteIpamScopeInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteIpamScopeInput | _models.DeleteIpamScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIpamScopeOutput: ... + + @_overload + def delete_ipam_scope( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIpamScopeInputDict], ) -> DeleteIpamScopeOutput: """ Delete the scope for an IPAM. You cannot delete the default scopes. @@ -7975,8 +11336,6 @@ def delete_ipam_scope( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeleteIpamScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7986,20 +11345,39 @@ def delete_ipam_scope( Returns: An instance of `DeleteIpamScopeOutput`. """ - return self._invoke(input, _models.DELETE_IPAM_SCOPE, [], plugins) + def delete_ipam_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIpamScopeOutput: + return self._invoke( + self._select_input(_models.DELETE_IPAM_SCOPE, args, kwargs), + _models.DELETE_IPAM_SCOPE, + [], + plugins, + ) + + @_overload + def delete_key_pair( + self, + request: _models.DeleteKeyPairInput | _models.DeleteKeyPairInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteKeyPairOutput: ... + + @_overload def delete_key_pair( self, - input: DeleteKeyPairInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteKeyPairInputDict], ) -> DeleteKeyPairOutput: """ Deletes the specified key pair, by removing the public key from Amazon EC2. Args: - input: - An instance of `DeleteKeyPairInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8009,20 +11387,40 @@ def delete_key_pair( Returns: An instance of `DeleteKeyPairOutput`. """ - return self._invoke(input, _models.DELETE_KEY_PAIR, [], plugins) + def delete_key_pair( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteKeyPairOutput: + return self._invoke( + self._select_input(_models.DELETE_KEY_PAIR, args, kwargs), + _models.DELETE_KEY_PAIR, + [], + plugins, + ) + + @_overload + def delete_launch_template( + self, + request: _models.DeleteLaunchTemplateInput + | _models.DeleteLaunchTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLaunchTemplateOutput: ... + + @_overload def delete_launch_template( self, - input: DeleteLaunchTemplateInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLaunchTemplateInputDict], ) -> DeleteLaunchTemplateOutput: """ Deletes a launch template. Deleting a launch template deletes all of its versions. Args: - input: - An instance of `DeleteLaunchTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8032,12 +11430,34 @@ def delete_launch_template( Returns: An instance of `DeleteLaunchTemplateOutput`. """ - return self._invoke(input, _models.DELETE_LAUNCH_TEMPLATE, [], plugins) + def delete_launch_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLaunchTemplateOutput: + return self._invoke( + self._select_input(_models.DELETE_LAUNCH_TEMPLATE, args, kwargs), + _models.DELETE_LAUNCH_TEMPLATE, + [], + plugins, + ) + + @_overload + def delete_launch_template_versions( + self, + request: _models.DeleteLaunchTemplateVersionsInput + | _models.DeleteLaunchTemplateVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLaunchTemplateVersionsOutput: ... + + @_overload def delete_launch_template_versions( self, - input: DeleteLaunchTemplateVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLaunchTemplateVersionsInputDict], ) -> DeleteLaunchTemplateVersionsOutput: """ Deletes one or more versions of a launch template. @@ -8057,8 +11477,6 @@ def delete_launch_template_versions( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeleteLaunchTemplateVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8068,18 +11486,40 @@ def delete_launch_template_versions( Returns: An instance of `DeleteLaunchTemplateVersionsOutput`. """ - return self._invoke(input, _models.DELETE_LAUNCH_TEMPLATE_VERSIONS, [], plugins) + def delete_launch_template_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLaunchTemplateVersionsOutput: + return self._invoke( + self._select_input(_models.DELETE_LAUNCH_TEMPLATE_VERSIONS, args, kwargs), + _models.DELETE_LAUNCH_TEMPLATE_VERSIONS, + [], + plugins, + ) + + @_overload + def delete_local_gateway_route( + self, + request: _models.DeleteLocalGatewayRouteInput + | _models.DeleteLocalGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayRouteOutput: ... + + @_overload def delete_local_gateway_route( - self, input: DeleteLocalGatewayRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayRouteInputDict], ) -> DeleteLocalGatewayRouteOutput: """ Deletes the specified route from the specified local gateway route table. Args: - input: - An instance of `DeleteLocalGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8089,19 +11529,39 @@ def delete_local_gateway_route( Returns: An instance of `DeleteLocalGatewayRouteOutput`. """ - return self._invoke(input, _models.DELETE_LOCAL_GATEWAY_ROUTE, [], plugins) + def delete_local_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayRouteOutput: + return self._invoke( + self._select_input(_models.DELETE_LOCAL_GATEWAY_ROUTE, args, kwargs), + _models.DELETE_LOCAL_GATEWAY_ROUTE, + [], + plugins, + ) + + @_overload def delete_local_gateway_route_table( self, - input: DeleteLocalGatewayRouteTableInput, + request: _models.DeleteLocalGatewayRouteTableInput + | _models.DeleteLocalGatewayRouteTableInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayRouteTableOutput: ... + + @_overload + def delete_local_gateway_route_table( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayRouteTableInputDict], ) -> DeleteLocalGatewayRouteTableOutput: """ Deletes a local gateway route table. Args: - input: - An instance of `DeleteLocalGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8111,21 +11571,41 @@ def delete_local_gateway_route_table( Returns: An instance of `DeleteLocalGatewayRouteTableOutput`. """ + + def delete_local_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayRouteTableOutput: return self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input(_models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE, args, kwargs), + _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + def delete_local_gateway_route_table_virtual_interface_group_association( + self, + request: _models.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput + | _models.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: ... + + @_overload def delete_local_gateway_route_table_virtual_interface_group_association( self, - input: DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict + ], ) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: """ Deletes a local gateway route table virtual interface group association. Args: - input: - An instance of `DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8135,25 +11615,44 @@ def delete_local_gateway_route_table_virtual_interface_group_association( Returns: An instance of `DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput`. """ + + def delete_local_gateway_route_table_virtual_interface_group_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput: return self._invoke( - input, + self._select_input( + _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION, + args, + kwargs, + ), _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATION, [], plugins, ) + @_overload def delete_local_gateway_route_table_vpc_association( self, - input: DeleteLocalGatewayRouteTableVpcAssociationInput, + request: _models.DeleteLocalGatewayRouteTableVpcAssociationInput + | _models.DeleteLocalGatewayRouteTableVpcAssociationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayRouteTableVpcAssociationOutput: ... + + @_overload + def delete_local_gateway_route_table_vpc_association( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayRouteTableVpcAssociationInputDict], ) -> DeleteLocalGatewayRouteTableVpcAssociationOutput: """ Deletes the specified association between a VPC and local gateway route table. Args: - input: - An instance of `DeleteLocalGatewayRouteTableVpcAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8163,21 +11662,41 @@ def delete_local_gateway_route_table_vpc_association( Returns: An instance of `DeleteLocalGatewayRouteTableVpcAssociationOutput`. """ + + def delete_local_gateway_route_table_vpc_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayRouteTableVpcAssociationOutput: return self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, [], plugins + self._select_input( + _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, args, kwargs + ), + _models.DELETE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION, + [], + plugins, ) + @_overload def delete_local_gateway_virtual_interface( self, - input: DeleteLocalGatewayVirtualInterfaceInput, + request: _models.DeleteLocalGatewayVirtualInterfaceInput + | _models.DeleteLocalGatewayVirtualInterfaceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayVirtualInterfaceOutput: ... + + @_overload + def delete_local_gateway_virtual_interface( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayVirtualInterfaceInputDict], ) -> DeleteLocalGatewayVirtualInterfaceOutput: """ Deletes the specified local gateway virtual interface. Args: - input: - An instance of `DeleteLocalGatewayVirtualInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8187,21 +11706,41 @@ def delete_local_gateway_virtual_interface( Returns: An instance of `DeleteLocalGatewayVirtualInterfaceOutput`. """ + + def delete_local_gateway_virtual_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayVirtualInterfaceOutput: return self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, [], plugins + self._select_input( + _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, args, kwargs + ), + _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE, + [], + plugins, ) + @_overload def delete_local_gateway_virtual_interface_group( self, - input: DeleteLocalGatewayVirtualInterfaceGroupInput, + request: _models.DeleteLocalGatewayVirtualInterfaceGroupInput + | _models.DeleteLocalGatewayVirtualInterfaceGroupInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteLocalGatewayVirtualInterfaceGroupOutput: ... + + @_overload + def delete_local_gateway_virtual_interface_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLocalGatewayVirtualInterfaceGroupInputDict], ) -> DeleteLocalGatewayVirtualInterfaceGroupOutput: """ Delete the specified local gateway interface group. Args: - input: - An instance of `DeleteLocalGatewayVirtualInterfaceGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8211,20 +11750,42 @@ def delete_local_gateway_virtual_interface_group( Returns: An instance of `DeleteLocalGatewayVirtualInterfaceGroupOutput`. """ + + def delete_local_gateway_virtual_interface_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLocalGatewayVirtualInterfaceGroupOutput: return self._invoke( - input, _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, [], plugins + self._select_input( + _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, args, kwargs + ), + _models.DELETE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP, + [], + plugins, ) + @_overload def delete_managed_prefix_list( - self, input: DeleteManagedPrefixListInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteManagedPrefixListInput + | _models.DeleteManagedPrefixListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteManagedPrefixListOutput: ... + + @_overload + def delete_managed_prefix_list( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteManagedPrefixListInputDict], ) -> DeleteManagedPrefixListOutput: """ Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources. Args: - input: - An instance of `DeleteManagedPrefixListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8234,10 +11795,33 @@ def delete_managed_prefix_list( Returns: An instance of `DeleteManagedPrefixListOutput`. """ - return self._invoke(input, _models.DELETE_MANAGED_PREFIX_LIST, [], plugins) + def delete_managed_prefix_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteManagedPrefixListOutput: + return self._invoke( + self._select_input(_models.DELETE_MANAGED_PREFIX_LIST, args, kwargs), + _models.DELETE_MANAGED_PREFIX_LIST, + [], + plugins, + ) + + @_overload def delete_nat_gateway( - self, input: DeleteNatGatewayInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteNatGatewayInput | _models.DeleteNatGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNatGatewayOutput: ... + + @_overload + def delete_nat_gateway( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNatGatewayInputDict], ) -> DeleteNatGatewayOutput: """ Deletes the specified NAT gateway. Deleting a public NAT gateway @@ -8246,8 +11830,6 @@ def delete_nat_gateway( gateway routes in your route tables. Args: - input: - An instance of `DeleteNatGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8257,18 +11839,39 @@ def delete_nat_gateway( Returns: An instance of `DeleteNatGatewayOutput`. """ - return self._invoke(input, _models.DELETE_NAT_GATEWAY, [], plugins) + def delete_nat_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNatGatewayOutput: + return self._invoke( + self._select_input(_models.DELETE_NAT_GATEWAY, args, kwargs), + _models.DELETE_NAT_GATEWAY, + [], + plugins, + ) + + @_overload + def delete_network_acl( + self, + request: _models.DeleteNetworkAclInput | _models.DeleteNetworkAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkAclOutput: ... + + @_overload def delete_network_acl( - self, input: DeleteNetworkAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkAclInputDict], ) -> DeleteNetworkAclOutput: """ Deletes the specified network ACL. You can't delete the ACL if it's associated with any subnets. You can't delete the default network ACL. Args: - input: - An instance of `DeleteNetworkAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8278,18 +11881,40 @@ def delete_network_acl( Returns: An instance of `DeleteNetworkAclOutput`. """ - return self._invoke(input, _models.DELETE_NETWORK_ACL, [], plugins) + def delete_network_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkAclOutput: + return self._invoke( + self._select_input(_models.DELETE_NETWORK_ACL, args, kwargs), + _models.DELETE_NETWORK_ACL, + [], + plugins, + ) + + @_overload def delete_network_acl_entry( - self, input: DeleteNetworkAclEntryInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteNetworkAclEntryInput + | _models.DeleteNetworkAclEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkAclEntryOutput: ... + + @_overload + def delete_network_acl_entry( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkAclEntryInputDict], ) -> DeleteNetworkAclEntryOutput: """ Deletes the specified ingress or egress entry (rule) from the specified network ACL. Args: - input: - An instance of `DeleteNetworkAclEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8299,19 +11924,39 @@ def delete_network_acl_entry( Returns: An instance of `DeleteNetworkAclEntryOutput`. """ - return self._invoke(input, _models.DELETE_NETWORK_ACL_ENTRY, [], plugins) + def delete_network_acl_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkAclEntryOutput: + return self._invoke( + self._select_input(_models.DELETE_NETWORK_ACL_ENTRY, args, kwargs), + _models.DELETE_NETWORK_ACL_ENTRY, + [], + plugins, + ) + + @_overload + def delete_network_insights_access_scope( + self, + request: _models.DeleteNetworkInsightsAccessScopeInput + | _models.DeleteNetworkInsightsAccessScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInsightsAccessScopeOutput: ... + + @_overload def delete_network_insights_access_scope( self, - input: DeleteNetworkInsightsAccessScopeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInsightsAccessScopeInputDict], ) -> DeleteNetworkInsightsAccessScopeOutput: """ Deletes the specified Network Access Scope. Args: - input: - An instance of `DeleteNetworkInsightsAccessScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8321,21 +11966,41 @@ def delete_network_insights_access_scope( Returns: An instance of `DeleteNetworkInsightsAccessScopeOutput`. """ + + def delete_network_insights_access_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInsightsAccessScopeOutput: return self._invoke( - input, _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE, [], plugins + self._select_input( + _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE, args, kwargs + ), + _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE, + [], + plugins, ) + @_overload def delete_network_insights_access_scope_analysis( self, - input: DeleteNetworkInsightsAccessScopeAnalysisInput, + request: _models.DeleteNetworkInsightsAccessScopeAnalysisInput + | _models.DeleteNetworkInsightsAccessScopeAnalysisInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInsightsAccessScopeAnalysisOutput: ... + + @_overload + def delete_network_insights_access_scope_analysis( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInsightsAccessScopeAnalysisInputDict], ) -> DeleteNetworkInsightsAccessScopeAnalysisOutput: """ Deletes the specified Network Access Scope analysis. Args: - input: - An instance of `DeleteNetworkInsightsAccessScopeAnalysisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8345,21 +12010,41 @@ def delete_network_insights_access_scope_analysis( Returns: An instance of `DeleteNetworkInsightsAccessScopeAnalysisOutput`. """ + + def delete_network_insights_access_scope_analysis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInsightsAccessScopeAnalysisOutput: return self._invoke( - input, _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, [], plugins + self._select_input( + _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, args, kwargs + ), + _models.DELETE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, + [], + plugins, ) + @_overload def delete_network_insights_analysis( self, - input: DeleteNetworkInsightsAnalysisInput, + request: _models.DeleteNetworkInsightsAnalysisInput + | _models.DeleteNetworkInsightsAnalysisInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInsightsAnalysisOutput: ... + + @_overload + def delete_network_insights_analysis( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInsightsAnalysisInputDict], ) -> DeleteNetworkInsightsAnalysisOutput: """ Deletes the specified network insights analysis. Args: - input: - An instance of `DeleteNetworkInsightsAnalysisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8369,19 +12054,39 @@ def delete_network_insights_analysis( Returns: An instance of `DeleteNetworkInsightsAnalysisOutput`. """ + + def delete_network_insights_analysis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInsightsAnalysisOutput: return self._invoke( - input, _models.DELETE_NETWORK_INSIGHTS_ANALYSIS, [], plugins + self._select_input(_models.DELETE_NETWORK_INSIGHTS_ANALYSIS, args, kwargs), + _models.DELETE_NETWORK_INSIGHTS_ANALYSIS, + [], + plugins, ) + @_overload + def delete_network_insights_path( + self, + request: _models.DeleteNetworkInsightsPathInput + | _models.DeleteNetworkInsightsPathInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInsightsPathOutput: ... + + @_overload def delete_network_insights_path( - self, input: DeleteNetworkInsightsPathInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInsightsPathInputDict], ) -> DeleteNetworkInsightsPathOutput: """ Deletes the specified path. Args: - input: - An instance of `DeleteNetworkInsightsPathInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8391,18 +12096,40 @@ def delete_network_insights_path( Returns: An instance of `DeleteNetworkInsightsPathOutput`. """ - return self._invoke(input, _models.DELETE_NETWORK_INSIGHTS_PATH, [], plugins) + def delete_network_insights_path( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInsightsPathOutput: + return self._invoke( + self._select_input(_models.DELETE_NETWORK_INSIGHTS_PATH, args, kwargs), + _models.DELETE_NETWORK_INSIGHTS_PATH, + [], + plugins, + ) + + @_overload def delete_network_interface( - self, input: DeleteNetworkInterfaceInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteNetworkInterfaceInput + | _models.DeleteNetworkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInterfaceOutput: ... + + @_overload + def delete_network_interface( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInterfaceInputDict], ) -> DeleteNetworkInterfaceOutput: """ Deletes the specified network interface. You must detach the network interface before you can delete it. Args: - input: - An instance of `DeleteNetworkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8412,12 +12139,34 @@ def delete_network_interface( Returns: An instance of `DeleteNetworkInterfaceOutput`. """ - return self._invoke(input, _models.DELETE_NETWORK_INTERFACE, [], plugins) + def delete_network_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInterfaceOutput: + return self._invoke( + self._select_input(_models.DELETE_NETWORK_INTERFACE, args, kwargs), + _models.DELETE_NETWORK_INTERFACE, + [], + plugins, + ) + + @_overload + def delete_network_interface_permission( + self, + request: _models.DeleteNetworkInterfacePermissionInput + | _models.DeleteNetworkInterfacePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteNetworkInterfacePermissionOutput: ... + + @_overload def delete_network_interface_permission( self, - input: DeleteNetworkInterfacePermissionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteNetworkInterfacePermissionInputDict], ) -> DeleteNetworkInterfacePermissionOutput: """ Deletes a permission for a network interface. By default, you cannot @@ -8426,8 +12175,6 @@ def delete_network_interface_permission( you can force delete the permission, regardless of any attachment. Args: - input: - An instance of `DeleteNetworkInterfacePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8437,12 +12184,36 @@ def delete_network_interface_permission( Returns: An instance of `DeleteNetworkInterfacePermissionOutput`. """ + + def delete_network_interface_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteNetworkInterfacePermissionOutput: return self._invoke( - input, _models.DELETE_NETWORK_INTERFACE_PERMISSION, [], plugins + self._select_input( + _models.DELETE_NETWORK_INTERFACE_PERMISSION, args, kwargs + ), + _models.DELETE_NETWORK_INTERFACE_PERMISSION, + [], + plugins, ) + @_overload def delete_placement_group( - self, input: DeletePlacementGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePlacementGroupInput + | _models.DeletePlacementGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePlacementGroupOutput: ... + + @_overload + def delete_placement_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePlacementGroupInputDict], ) -> DeletePlacementGroupOutput: """ Deletes the specified placement group. You must terminate all instances @@ -8454,8 +12225,6 @@ def delete_placement_group( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeletePlacementGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8465,10 +12234,34 @@ def delete_placement_group( Returns: An instance of `DeletePlacementGroupOutput`. """ - return self._invoke(input, _models.DELETE_PLACEMENT_GROUP, [], plugins) + def delete_placement_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePlacementGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_PLACEMENT_GROUP, args, kwargs), + _models.DELETE_PLACEMENT_GROUP, + [], + plugins, + ) + + @_overload + def delete_public_ipv4_pool( + self, + request: _models.DeletePublicIpv4PoolInput + | _models.DeletePublicIpv4PoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePublicIpv4PoolOutput: ... + + @_overload def delete_public_ipv4_pool( - self, input: DeletePublicIpv4PoolInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePublicIpv4PoolInputDict], ) -> DeletePublicIpv4PoolOutput: """ Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool @@ -8477,8 +12270,6 @@ def delete_public_ipv4_pool( Services, however, use IPAM pools only. Args: - input: - An instance of `DeletePublicIpv4PoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8488,19 +12279,39 @@ def delete_public_ipv4_pool( Returns: An instance of `DeletePublicIpv4PoolOutput`. """ - return self._invoke(input, _models.DELETE_PUBLIC_IPV4_POOL, [], plugins) + def delete_public_ipv4_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePublicIpv4PoolOutput: + return self._invoke( + self._select_input(_models.DELETE_PUBLIC_IPV4_POOL, args, kwargs), + _models.DELETE_PUBLIC_IPV4_POOL, + [], + plugins, + ) + + @_overload def delete_queued_reserved_instances( self, - input: DeleteQueuedReservedInstancesInput, + request: _models.DeleteQueuedReservedInstancesInput + | _models.DeleteQueuedReservedInstancesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteQueuedReservedInstancesOutput: ... + + @_overload + def delete_queued_reserved_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteQueuedReservedInstancesInputDict], ) -> DeleteQueuedReservedInstancesOutput: """ Deletes the queued purchases for the specified Reserved Instances. Args: - input: - An instance of `DeleteQueuedReservedInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8510,19 +12321,38 @@ def delete_queued_reserved_instances( Returns: An instance of `DeleteQueuedReservedInstancesOutput`. """ + + def delete_queued_reserved_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteQueuedReservedInstancesOutput: return self._invoke( - input, _models.DELETE_QUEUED_RESERVED_INSTANCES, [], plugins + self._select_input(_models.DELETE_QUEUED_RESERVED_INSTANCES, args, kwargs), + _models.DELETE_QUEUED_RESERVED_INSTANCES, + [], + plugins, ) + @_overload + def delete_route( + self, + request: _models.DeleteRouteInput | _models.DeleteRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteOutput: ... + + @_overload def delete_route( - self, input: DeleteRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteInputDict], ) -> DeleteRouteOutput: """ Deletes the specified route from the specified route table. Args: - input: - An instance of `DeleteRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8532,10 +12362,33 @@ def delete_route( Returns: An instance of `DeleteRouteOutput`. """ - return self._invoke(input, _models.DELETE_ROUTE, [], plugins) + def delete_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteOutput: + return self._invoke( + self._select_input(_models.DELETE_ROUTE, args, kwargs), + _models.DELETE_ROUTE, + [], + plugins, + ) + + @_overload def delete_route_server( - self, input: DeleteRouteServerInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRouteServerInput | _models.DeleteRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteServerOutput: ... + + @_overload + def delete_route_server( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteServerInputDict], ) -> DeleteRouteServerOutput: """ Deletes the specified route server. @@ -8566,8 +12419,6 @@ def delete_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DeleteRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8577,10 +12428,34 @@ def delete_route_server( Returns: An instance of `DeleteRouteServerOutput`. """ - return self._invoke(input, _models.DELETE_ROUTE_SERVER, [], plugins) + def delete_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteServerOutput: + return self._invoke( + self._select_input(_models.DELETE_ROUTE_SERVER, args, kwargs), + _models.DELETE_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + def delete_route_server_endpoint( + self, + request: _models.DeleteRouteServerEndpointInput + | _models.DeleteRouteServerEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteServerEndpointOutput: ... + + @_overload def delete_route_server_endpoint( - self, input: DeleteRouteServerEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteServerEndpointInputDict], ) -> DeleteRouteServerEndpointOutput: """ Deletes the specified route server endpoint. @@ -8591,8 +12466,6 @@ def delete_route_server_endpoint( connections between your route server and your BGP peers. Args: - input: - An instance of `DeleteRouteServerEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8602,10 +12475,34 @@ def delete_route_server_endpoint( Returns: An instance of `DeleteRouteServerEndpointOutput`. """ - return self._invoke(input, _models.DELETE_ROUTE_SERVER_ENDPOINT, [], plugins) + def delete_route_server_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteServerEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_ROUTE_SERVER_ENDPOINT, args, kwargs), + _models.DELETE_ROUTE_SERVER_ENDPOINT, + [], + plugins, + ) + + @_overload def delete_route_server_peer( - self, input: DeleteRouteServerPeerInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRouteServerPeerInput + | _models.DeleteRouteServerPeerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteServerPeerOutput: ... + + @_overload + def delete_route_server_peer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteServerPeerInputDict], ) -> DeleteRouteServerPeerOutput: """ Deletes the specified BGP peer from a route server. @@ -8622,8 +12519,6 @@ def delete_route_server_peer( - Can initiate BGP sessions Args: - input: - An instance of `DeleteRouteServerPeerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8633,10 +12528,33 @@ def delete_route_server_peer( Returns: An instance of `DeleteRouteServerPeerOutput`. """ - return self._invoke(input, _models.DELETE_ROUTE_SERVER_PEER, [], plugins) + def delete_route_server_peer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteServerPeerOutput: + return self._invoke( + self._select_input(_models.DELETE_ROUTE_SERVER_PEER, args, kwargs), + _models.DELETE_ROUTE_SERVER_PEER, + [], + plugins, + ) + + @_overload + def delete_route_table( + self, + request: _models.DeleteRouteTableInput | _models.DeleteRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRouteTableOutput: ... + + @_overload def delete_route_table( - self, input: DeleteRouteTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRouteTableInputDict], ) -> DeleteRouteTableOutput: """ Deletes the specified route table. You must disassociate the route table @@ -8644,8 +12562,6 @@ def delete_route_table( route table. Args: - input: - An instance of `DeleteRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8655,18 +12571,40 @@ def delete_route_table( Returns: An instance of `DeleteRouteTableOutput`. """ - return self._invoke(input, _models.DELETE_ROUTE_TABLE, [], plugins) + def delete_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRouteTableOutput: + return self._invoke( + self._select_input(_models.DELETE_ROUTE_TABLE, args, kwargs), + _models.DELETE_ROUTE_TABLE, + [], + plugins, + ) + + @_overload def delete_secondary_network( - self, input: DeleteSecondaryNetworkInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSecondaryNetworkInput + | _models.DeleteSecondaryNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSecondaryNetworkOutput: ... + + @_overload + def delete_secondary_network( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSecondaryNetworkInputDict], ) -> DeleteSecondaryNetworkOutput: """ Deletes a secondary network. You must delete all secondary subnets in the secondary network before you can delete the secondary network. Args: - input: - An instance of `DeleteSecondaryNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8676,33 +12614,77 @@ def delete_secondary_network( Returns: An instance of `DeleteSecondaryNetworkOutput`. """ - return self._invoke(input, _models.DELETE_SECONDARY_NETWORK, [], plugins) + def delete_secondary_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSecondaryNetworkOutput: + return self._invoke( + self._select_input(_models.DELETE_SECONDARY_NETWORK, args, kwargs), + _models.DELETE_SECONDARY_NETWORK, + [], + plugins, + ) + + @_overload def delete_secondary_subnet( - self, input: DeleteSecondarySubnetInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSecondarySubnetInput + | _models.DeleteSecondarySubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSecondarySubnetOutput: ... + + @_overload + def delete_secondary_subnet( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSecondarySubnetInputDict], ) -> DeleteSecondarySubnetOutput: """ Deletes a secondary subnet. A secondary subnet must not contain any secondary interfaces prior to deletion. Args: - input: - An instance of `DeleteSecondarySubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `DeleteSecondarySubnetOutput`. - """ - return self._invoke(input, _models.DELETE_SECONDARY_SUBNET, [], plugins) + Returns: + An instance of `DeleteSecondarySubnetOutput`. + """ + + def delete_secondary_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSecondarySubnetOutput: + return self._invoke( + self._select_input(_models.DELETE_SECONDARY_SUBNET, args, kwargs), + _models.DELETE_SECONDARY_SUBNET, + [], + plugins, + ) + + @_overload + def delete_security_group( + self, + request: _models.DeleteSecurityGroupInput + | _models.DeleteSecurityGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSecurityGroupOutput: ... + @_overload def delete_security_group( self, - input: DeleteSecurityGroupInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSecurityGroupInputDict], ) -> DeleteSecurityGroupOutput: """ Deletes a security group. @@ -8713,8 +12695,6 @@ def delete_security_group( `DependencyViolation`. Args: - input: - An instance of `DeleteSecurityGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8724,10 +12704,33 @@ def delete_security_group( Returns: An instance of `DeleteSecurityGroupOutput`. """ - return self._invoke(input, _models.DELETE_SECURITY_GROUP, [], plugins) + def delete_security_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSecurityGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_SECURITY_GROUP, args, kwargs), + _models.DELETE_SECURITY_GROUP, + [], + plugins, + ) + + @_overload + def delete_snapshot( + self, + request: _models.DeleteSnapshotInput | _models.DeleteSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSnapshotOutput: ... + + @_overload def delete_snapshot( - self, input: DeleteSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSnapshotInputDict], ) -> DeleteSnapshotOutput: """ Deletes the specified snapshot. @@ -8749,8 +12752,6 @@ def delete_snapshot( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DeleteSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8760,19 +12761,39 @@ def delete_snapshot( Returns: An instance of `DeleteSnapshotOutput`. """ - return self._invoke(input, _models.DELETE_SNAPSHOT, [], plugins) + def delete_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSnapshotOutput: + return self._invoke( + self._select_input(_models.DELETE_SNAPSHOT, args, kwargs), + _models.DELETE_SNAPSHOT, + [], + plugins, + ) + + @_overload + def delete_spot_datafeed_subscription( + self, + request: _models.DeleteSpotDatafeedSubscriptionInput + | _models.DeleteSpotDatafeedSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSpotDatafeedSubscriptionOutput: ... + + @_overload def delete_spot_datafeed_subscription( self, - input: DeleteSpotDatafeedSubscriptionInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSpotDatafeedSubscriptionInputDict], ) -> DeleteSpotDatafeedSubscriptionOutput: """ Deletes the data feed for Spot Instances. Args: - input: - An instance of `DeleteSpotDatafeedSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8782,20 +12803,39 @@ def delete_spot_datafeed_subscription( Returns: An instance of `DeleteSpotDatafeedSubscriptionOutput`. """ + + def delete_spot_datafeed_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSpotDatafeedSubscriptionOutput: return self._invoke( - input, _models.DELETE_SPOT_DATAFEED_SUBSCRIPTION, [], plugins + self._select_input(_models.DELETE_SPOT_DATAFEED_SUBSCRIPTION, args, kwargs), + _models.DELETE_SPOT_DATAFEED_SUBSCRIPTION, + [], + plugins, ) + @_overload + def delete_subnet( + self, + request: _models.DeleteSubnetInput | _models.DeleteSubnetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSubnetOutput: ... + + @_overload def delete_subnet( - self, input: DeleteSubnetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSubnetInputDict], ) -> DeleteSubnetOutput: """ Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet. Args: - input: - An instance of `DeleteSubnetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8805,19 +12845,39 @@ def delete_subnet( Returns: An instance of `DeleteSubnetOutput`. """ - return self._invoke(input, _models.DELETE_SUBNET, [], plugins) + def delete_subnet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSubnetOutput: + return self._invoke( + self._select_input(_models.DELETE_SUBNET, args, kwargs), + _models.DELETE_SUBNET, + [], + plugins, + ) + + @_overload + def delete_subnet_cidr_reservation( + self, + request: _models.DeleteSubnetCidrReservationInput + | _models.DeleteSubnetCidrReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSubnetCidrReservationOutput: ... + + @_overload def delete_subnet_cidr_reservation( self, - input: DeleteSubnetCidrReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSubnetCidrReservationInputDict], ) -> DeleteSubnetCidrReservationOutput: """ Deletes a subnet CIDR reservation. Args: - input: - An instance of `DeleteSubnetCidrReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8827,10 +12887,33 @@ def delete_subnet_cidr_reservation( Returns: An instance of `DeleteSubnetCidrReservationOutput`. """ - return self._invoke(input, _models.DELETE_SUBNET_CIDR_RESERVATION, [], plugins) + def delete_subnet_cidr_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSubnetCidrReservationOutput: + return self._invoke( + self._select_input(_models.DELETE_SUBNET_CIDR_RESERVATION, args, kwargs), + _models.DELETE_SUBNET_CIDR_RESERVATION, + [], + plugins, + ) + + @_overload + def delete_tags( + self, + request: _models.DeleteTagsInput | _models.DeleteTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTagsOutput: ... + + @_overload def delete_tags( - self, input: DeleteTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTagsInputDict], ) -> DeleteTagsOutput: """ Deletes the specified set of tags from the specified set of resources. @@ -8841,8 +12924,6 @@ def delete_tags( in the *Amazon Elastic Compute Cloud User Guide*. Args: - input: - An instance of `DeleteTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8852,10 +12933,34 @@ def delete_tags( Returns: An instance of `DeleteTagsOutput`. """ - return self._invoke(input, _models.DELETE_TAGS, [], plugins) + def delete_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTagsOutput: + return self._invoke( + self._select_input(_models.DELETE_TAGS, args, kwargs), + _models.DELETE_TAGS, + [], + plugins, + ) + + @_overload + def delete_traffic_mirror_filter( + self, + request: _models.DeleteTrafficMirrorFilterInput + | _models.DeleteTrafficMirrorFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrafficMirrorFilterOutput: ... + + @_overload def delete_traffic_mirror_filter( - self, input: DeleteTrafficMirrorFilterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrafficMirrorFilterInputDict], ) -> DeleteTrafficMirrorFilterOutput: """ Deletes the specified Traffic Mirror filter. @@ -8864,8 +12969,6 @@ def delete_traffic_mirror_filter( Mirror session. Args: - input: - An instance of `DeleteTrafficMirrorFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8875,19 +12978,39 @@ def delete_traffic_mirror_filter( Returns: An instance of `DeleteTrafficMirrorFilterOutput`. """ - return self._invoke(input, _models.DELETE_TRAFFIC_MIRROR_FILTER, [], plugins) + def delete_traffic_mirror_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrafficMirrorFilterOutput: + return self._invoke( + self._select_input(_models.DELETE_TRAFFIC_MIRROR_FILTER, args, kwargs), + _models.DELETE_TRAFFIC_MIRROR_FILTER, + [], + plugins, + ) + + @_overload + def delete_traffic_mirror_filter_rule( + self, + request: _models.DeleteTrafficMirrorFilterRuleInput + | _models.DeleteTrafficMirrorFilterRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrafficMirrorFilterRuleOutput: ... + + @_overload def delete_traffic_mirror_filter_rule( self, - input: DeleteTrafficMirrorFilterRuleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrafficMirrorFilterRuleInputDict], ) -> DeleteTrafficMirrorFilterRuleOutput: """ Deletes the specified Traffic Mirror rule. Args: - input: - An instance of `DeleteTrafficMirrorFilterRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8897,21 +13020,39 @@ def delete_traffic_mirror_filter_rule( Returns: An instance of `DeleteTrafficMirrorFilterRuleOutput`. """ + + def delete_traffic_mirror_filter_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrafficMirrorFilterRuleOutput: return self._invoke( - input, _models.DELETE_TRAFFIC_MIRROR_FILTER_RULE, [], plugins + self._select_input(_models.DELETE_TRAFFIC_MIRROR_FILTER_RULE, args, kwargs), + _models.DELETE_TRAFFIC_MIRROR_FILTER_RULE, + [], + plugins, ) + @_overload + def delete_traffic_mirror_session( + self, + request: _models.DeleteTrafficMirrorSessionInput + | _models.DeleteTrafficMirrorSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrafficMirrorSessionOutput: ... + + @_overload def delete_traffic_mirror_session( self, - input: DeleteTrafficMirrorSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrafficMirrorSessionInputDict], ) -> DeleteTrafficMirrorSessionOutput: """ Deletes the specified Traffic Mirror session. Args: - input: - An instance of `DeleteTrafficMirrorSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8921,10 +13062,34 @@ def delete_traffic_mirror_session( Returns: An instance of `DeleteTrafficMirrorSessionOutput`. """ - return self._invoke(input, _models.DELETE_TRAFFIC_MIRROR_SESSION, [], plugins) + def delete_traffic_mirror_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrafficMirrorSessionOutput: + return self._invoke( + self._select_input(_models.DELETE_TRAFFIC_MIRROR_SESSION, args, kwargs), + _models.DELETE_TRAFFIC_MIRROR_SESSION, + [], + plugins, + ) + + @_overload + def delete_traffic_mirror_target( + self, + request: _models.DeleteTrafficMirrorTargetInput + | _models.DeleteTrafficMirrorTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrafficMirrorTargetOutput: ... + + @_overload def delete_traffic_mirror_target( - self, input: DeleteTrafficMirrorTargetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrafficMirrorTargetInputDict], ) -> DeleteTrafficMirrorTargetOutput: """ Deletes the specified Traffic Mirror target. @@ -8933,8 +13098,6 @@ def delete_traffic_mirror_target( Mirror session. Args: - input: - An instance of `DeleteTrafficMirrorTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8944,17 +13107,39 @@ def delete_traffic_mirror_target( Returns: An instance of `DeleteTrafficMirrorTargetOutput`. """ - return self._invoke(input, _models.DELETE_TRAFFIC_MIRROR_TARGET, [], plugins) + def delete_traffic_mirror_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrafficMirrorTargetOutput: + return self._invoke( + self._select_input(_models.DELETE_TRAFFIC_MIRROR_TARGET, args, kwargs), + _models.DELETE_TRAFFIC_MIRROR_TARGET, + [], + plugins, + ) + + @_overload + def delete_transit_gateway( + self, + request: _models.DeleteTransitGatewayInput + | _models.DeleteTransitGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayOutput: ... + + @_overload def delete_transit_gateway( - self, input: DeleteTransitGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayInputDict], ) -> DeleteTransitGatewayOutput: """ Deletes the specified transit gateway. Args: - input: - An instance of `DeleteTransitGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8964,12 +13149,34 @@ def delete_transit_gateway( Returns: An instance of `DeleteTransitGatewayOutput`. """ - return self._invoke(input, _models.DELETE_TRANSIT_GATEWAY, [], plugins) + def delete_transit_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayOutput: + return self._invoke( + self._select_input(_models.DELETE_TRANSIT_GATEWAY, args, kwargs), + _models.DELETE_TRANSIT_GATEWAY, + [], + plugins, + ) + + @_overload + def delete_transit_gateway_client_vpn_attachment( + self, + request: _models.DeleteTransitGatewayClientVpnAttachmentInput + | _models.DeleteTransitGatewayClientVpnAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayClientVpnAttachmentOutput: ... + + @_overload def delete_transit_gateway_client_vpn_attachment( self, - input: DeleteTransitGatewayClientVpnAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayClientVpnAttachmentInputDict], ) -> DeleteTransitGatewayClientVpnAttachmentOutput: """ Deletes a Transit Gateway attachment for a Client VPN endpoint. The @@ -8977,8 +13184,6 @@ def delete_transit_gateway_client_vpn_attachment( association between the Client VPN endpoint and the Transit Gateway. Args: - input: - An instance of `DeleteTransitGatewayClientVpnAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8988,22 +13193,42 @@ def delete_transit_gateway_client_vpn_attachment( Returns: An instance of `DeleteTransitGatewayClientVpnAttachmentOutput`. """ + + def delete_transit_gateway_client_vpn_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayClientVpnAttachmentOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, + [], + plugins, ) + @_overload + def delete_transit_gateway_connect( + self, + request: _models.DeleteTransitGatewayConnectInput + | _models.DeleteTransitGatewayConnectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayConnectOutput: ... + + @_overload def delete_transit_gateway_connect( self, - input: DeleteTransitGatewayConnectInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayConnectInputDict], ) -> DeleteTransitGatewayConnectOutput: """ Deletes the specified Connect attachment. You must first delete any Connect peers for the attachment. Args: - input: - An instance of `DeleteTransitGatewayConnectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9013,19 +13238,39 @@ def delete_transit_gateway_connect( Returns: An instance of `DeleteTransitGatewayConnectOutput`. """ - return self._invoke(input, _models.DELETE_TRANSIT_GATEWAY_CONNECT, [], plugins) + def delete_transit_gateway_connect( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayConnectOutput: + return self._invoke( + self._select_input(_models.DELETE_TRANSIT_GATEWAY_CONNECT, args, kwargs), + _models.DELETE_TRANSIT_GATEWAY_CONNECT, + [], + plugins, + ) + + @_overload def delete_transit_gateway_connect_peer( self, - input: DeleteTransitGatewayConnectPeerInput, + request: _models.DeleteTransitGatewayConnectPeerInput + | _models.DeleteTransitGatewayConnectPeerInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayConnectPeerOutput: ... + + @_overload + def delete_transit_gateway_connect_peer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayConnectPeerInputDict], ) -> DeleteTransitGatewayConnectPeerOutput: """ Deletes the specified Connect peer. Args: - input: - An instance of `DeleteTransitGatewayConnectPeerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9035,21 +13280,41 @@ def delete_transit_gateway_connect_peer( Returns: An instance of `DeleteTransitGatewayConnectPeerOutput`. """ + + def delete_transit_gateway_connect_peer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayConnectPeerOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_CONNECT_PEER, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_CONNECT_PEER, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_CONNECT_PEER, + [], + plugins, ) + @_overload + def delete_transit_gateway_metering_policy( + self, + request: _models.DeleteTransitGatewayMeteringPolicyInput + | _models.DeleteTransitGatewayMeteringPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayMeteringPolicyOutput: ... + + @_overload def delete_transit_gateway_metering_policy( self, - input: DeleteTransitGatewayMeteringPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayMeteringPolicyInputDict], ) -> DeleteTransitGatewayMeteringPolicyOutput: """ Deletes a transit gateway metering policy. Args: - input: - An instance of `DeleteTransitGatewayMeteringPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9059,21 +13324,41 @@ def delete_transit_gateway_metering_policy( Returns: An instance of `DeleteTransitGatewayMeteringPolicyOutput`. """ + + def delete_transit_gateway_metering_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayMeteringPolicyOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY, + [], + plugins, ) + @_overload + def delete_transit_gateway_metering_policy_entry( + self, + request: _models.DeleteTransitGatewayMeteringPolicyEntryInput + | _models.DeleteTransitGatewayMeteringPolicyEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayMeteringPolicyEntryOutput: ... + + @_overload def delete_transit_gateway_metering_policy_entry( self, - input: DeleteTransitGatewayMeteringPolicyEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayMeteringPolicyEntryInputDict], ) -> DeleteTransitGatewayMeteringPolicyEntryOutput: """ Deletes an entry from a transit gateway metering policy. Args: - input: - An instance of `DeleteTransitGatewayMeteringPolicyEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9083,21 +13368,41 @@ def delete_transit_gateway_metering_policy_entry( Returns: An instance of `DeleteTransitGatewayMeteringPolicyEntryOutput`. """ + + def delete_transit_gateway_metering_policy_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayMeteringPolicyEntryOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_METERING_POLICY_ENTRY, + [], + plugins, ) + @_overload + def delete_transit_gateway_multicast_domain( + self, + request: _models.DeleteTransitGatewayMulticastDomainInput + | _models.DeleteTransitGatewayMulticastDomainInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayMulticastDomainOutput: ... + + @_overload def delete_transit_gateway_multicast_domain( self, - input: DeleteTransitGatewayMulticastDomainInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayMulticastDomainInputDict], ) -> DeleteTransitGatewayMulticastDomainOutput: """ Deletes the specified transit gateway multicast domain. Args: - input: - An instance of `DeleteTransitGatewayMulticastDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9107,21 +13412,41 @@ def delete_transit_gateway_multicast_domain( Returns: An instance of `DeleteTransitGatewayMulticastDomainOutput`. """ + + def delete_transit_gateway_multicast_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayMulticastDomainOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, + [], + plugins, ) + @_overload + def delete_transit_gateway_peering_attachment( + self, + request: _models.DeleteTransitGatewayPeeringAttachmentInput + | _models.DeleteTransitGatewayPeeringAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayPeeringAttachmentOutput: ... + + @_overload def delete_transit_gateway_peering_attachment( self, - input: DeleteTransitGatewayPeeringAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayPeeringAttachmentInputDict], ) -> DeleteTransitGatewayPeeringAttachmentOutput: """ Deletes a transit gateway peering attachment. Args: - input: - An instance of `DeleteTransitGatewayPeeringAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9131,21 +13456,41 @@ def delete_transit_gateway_peering_attachment( Returns: An instance of `DeleteTransitGatewayPeeringAttachmentOutput`. """ + + def delete_transit_gateway_peering_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayPeeringAttachmentOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_PEERING_ATTACHMENT, + [], + plugins, ) + @_overload + def delete_transit_gateway_policy_table( + self, + request: _models.DeleteTransitGatewayPolicyTableInput + | _models.DeleteTransitGatewayPolicyTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayPolicyTableOutput: ... + + @_overload def delete_transit_gateway_policy_table( self, - input: DeleteTransitGatewayPolicyTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayPolicyTableInputDict], ) -> DeleteTransitGatewayPolicyTableOutput: """ Deletes the specified transit gateway policy table. Args: - input: - An instance of `DeleteTransitGatewayPolicyTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9155,21 +13500,41 @@ def delete_transit_gateway_policy_table( Returns: An instance of `DeleteTransitGatewayPolicyTableOutput`. """ + + def delete_transit_gateway_policy_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayPolicyTableOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE, + [], + plugins, ) + @_overload + def delete_transit_gateway_policy_table_entry( + self, + request: _models.DeleteTransitGatewayPolicyTableEntryInput + | _models.DeleteTransitGatewayPolicyTableEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayPolicyTableEntryOutput: ... + + @_overload def delete_transit_gateway_policy_table_entry( self, - input: DeleteTransitGatewayPolicyTableEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayPolicyTableEntryInputDict], ) -> DeleteTransitGatewayPolicyTableEntryOutput: """ Deletes the specified transit gateway policy table entry. Args: - input: - An instance of `DeleteTransitGatewayPolicyTableEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9179,22 +13544,42 @@ def delete_transit_gateway_policy_table_entry( Returns: An instance of `DeleteTransitGatewayPolicyTableEntryOutput`. """ + + def delete_transit_gateway_policy_table_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayPolicyTableEntryOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, + [], + plugins, ) + @_overload + def delete_transit_gateway_prefix_list_reference( + self, + request: _models.DeleteTransitGatewayPrefixListReferenceInput + | _models.DeleteTransitGatewayPrefixListReferenceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayPrefixListReferenceOutput: ... + + @_overload def delete_transit_gateway_prefix_list_reference( self, - input: DeleteTransitGatewayPrefixListReferenceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayPrefixListReferenceInputDict], ) -> DeleteTransitGatewayPrefixListReferenceOutput: """ Deletes a reference (route) to a prefix list in a specified transit gateway route table. Args: - input: - An instance of `DeleteTransitGatewayPrefixListReferenceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9204,20 +13589,42 @@ def delete_transit_gateway_prefix_list_reference( Returns: An instance of `DeleteTransitGatewayPrefixListReferenceOutput`. """ + + def delete_transit_gateway_prefix_list_reference( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayPrefixListReferenceOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, + [], + plugins, ) + @_overload def delete_transit_gateway_route( - self, input: DeleteTransitGatewayRouteInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteTransitGatewayRouteInput + | _models.DeleteTransitGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayRouteOutput: ... + + @_overload + def delete_transit_gateway_route( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayRouteInputDict], ) -> DeleteTransitGatewayRouteOutput: """ Deletes the specified route from the specified transit gateway route table. Args: - input: - An instance of `DeleteTransitGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9227,12 +13634,34 @@ def delete_transit_gateway_route( Returns: An instance of `DeleteTransitGatewayRouteOutput`. """ - return self._invoke(input, _models.DELETE_TRANSIT_GATEWAY_ROUTE, [], plugins) + def delete_transit_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayRouteOutput: + return self._invoke( + self._select_input(_models.DELETE_TRANSIT_GATEWAY_ROUTE, args, kwargs), + _models.DELETE_TRANSIT_GATEWAY_ROUTE, + [], + plugins, + ) + + @_overload + def delete_transit_gateway_route_table( + self, + request: _models.DeleteTransitGatewayRouteTableInput + | _models.DeleteTransitGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayRouteTableOutput: ... + + @_overload def delete_transit_gateway_route_table( self, - input: DeleteTransitGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayRouteTableInputDict], ) -> DeleteTransitGatewayRouteTableOutput: """ Deletes the specified transit gateway route table. Before you can delete @@ -9244,8 +13673,6 @@ def delete_transit_gateway_route_table( use ModifyTransitGateway. Args: - input: - An instance of `DeleteTransitGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9255,22 +13682,42 @@ def delete_transit_gateway_route_table( Returns: An instance of `DeleteTransitGatewayRouteTableOutput`. """ + + def delete_transit_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayRouteTableOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + def delete_transit_gateway_route_table_announcement( + self, + request: _models.DeleteTransitGatewayRouteTableAnnouncementInput + | _models.DeleteTransitGatewayRouteTableAnnouncementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayRouteTableAnnouncementOutput: ... + + @_overload def delete_transit_gateway_route_table_announcement( self, - input: DeleteTransitGatewayRouteTableAnnouncementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayRouteTableAnnouncementInputDict], ) -> DeleteTransitGatewayRouteTableAnnouncementOutput: """ Advertises to the transit gateway that a transit gateway route table is deleted. Args: - input: - An instance of `DeleteTransitGatewayRouteTableAnnouncementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9280,21 +13727,41 @@ def delete_transit_gateway_route_table_announcement( Returns: An instance of `DeleteTransitGatewayRouteTableAnnouncementOutput`. """ + + def delete_transit_gateway_route_table_announcement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayRouteTableAnnouncementOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENT, + [], + plugins, ) + @_overload + def delete_transit_gateway_vpc_attachment( + self, + request: _models.DeleteTransitGatewayVpcAttachmentInput + | _models.DeleteTransitGatewayVpcAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTransitGatewayVpcAttachmentOutput: ... + + @_overload def delete_transit_gateway_vpc_attachment( self, - input: DeleteTransitGatewayVpcAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTransitGatewayVpcAttachmentInputDict], ) -> DeleteTransitGatewayVpcAttachmentOutput: """ Deletes the specified VPC attachment. Args: - input: - An instance of `DeleteTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9304,21 +13771,41 @@ def delete_transit_gateway_vpc_attachment( Returns: An instance of `DeleteTransitGatewayVpcAttachmentOutput`. """ + + def delete_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTransitGatewayVpcAttachmentOutput: return self._invoke( - input, _models.DELETE_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.DELETE_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.DELETE_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload def delete_verified_access_endpoint( self, - input: DeleteVerifiedAccessEndpointInput, + request: _models.DeleteVerifiedAccessEndpointInput + | _models.DeleteVerifiedAccessEndpointInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteVerifiedAccessEndpointOutput: ... + + @_overload + def delete_verified_access_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVerifiedAccessEndpointInputDict], ) -> DeleteVerifiedAccessEndpointOutput: """ Delete an Amazon Web Services Verified Access endpoint. Args: - input: - An instance of `DeleteVerifiedAccessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9328,17 +13815,39 @@ def delete_verified_access_endpoint( Returns: An instance of `DeleteVerifiedAccessEndpointOutput`. """ - return self._invoke(input, _models.DELETE_VERIFIED_ACCESS_ENDPOINT, [], plugins) + def delete_verified_access_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVerifiedAccessEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_VERIFIED_ACCESS_ENDPOINT, args, kwargs), + _models.DELETE_VERIFIED_ACCESS_ENDPOINT, + [], + plugins, + ) + + @_overload + def delete_verified_access_group( + self, + request: _models.DeleteVerifiedAccessGroupInput + | _models.DeleteVerifiedAccessGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVerifiedAccessGroupOutput: ... + + @_overload def delete_verified_access_group( - self, input: DeleteVerifiedAccessGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVerifiedAccessGroupInputDict], ) -> DeleteVerifiedAccessGroupOutput: """ Delete an Amazon Web Services Verified Access group. Args: - input: - An instance of `DeleteVerifiedAccessGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9348,19 +13857,39 @@ def delete_verified_access_group( Returns: An instance of `DeleteVerifiedAccessGroupOutput`. """ - return self._invoke(input, _models.DELETE_VERIFIED_ACCESS_GROUP, [], plugins) + def delete_verified_access_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVerifiedAccessGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_VERIFIED_ACCESS_GROUP, args, kwargs), + _models.DELETE_VERIFIED_ACCESS_GROUP, + [], + plugins, + ) + + @_overload def delete_verified_access_instance( self, - input: DeleteVerifiedAccessInstanceInput, + request: _models.DeleteVerifiedAccessInstanceInput + | _models.DeleteVerifiedAccessInstanceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteVerifiedAccessInstanceOutput: ... + + @_overload + def delete_verified_access_instance( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVerifiedAccessInstanceInputDict], ) -> DeleteVerifiedAccessInstanceOutput: """ Delete an Amazon Web Services Verified Access instance. Args: - input: - An instance of `DeleteVerifiedAccessInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9370,19 +13899,39 @@ def delete_verified_access_instance( Returns: An instance of `DeleteVerifiedAccessInstanceOutput`. """ - return self._invoke(input, _models.DELETE_VERIFIED_ACCESS_INSTANCE, [], plugins) + def delete_verified_access_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVerifiedAccessInstanceOutput: + return self._invoke( + self._select_input(_models.DELETE_VERIFIED_ACCESS_INSTANCE, args, kwargs), + _models.DELETE_VERIFIED_ACCESS_INSTANCE, + [], + plugins, + ) + + @_overload + def delete_verified_access_trust_provider( + self, + request: _models.DeleteVerifiedAccessTrustProviderInput + | _models.DeleteVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVerifiedAccessTrustProviderOutput: ... + + @_overload def delete_verified_access_trust_provider( self, - input: DeleteVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVerifiedAccessTrustProviderInputDict], ) -> DeleteVerifiedAccessTrustProviderOutput: """ Delete an Amazon Web Services Verified Access trust provider. Args: - input: - An instance of `DeleteVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9392,12 +13941,35 @@ def delete_verified_access_trust_provider( Returns: An instance of `DeleteVerifiedAccessTrustProviderOutput`. """ + + def delete_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVerifiedAccessTrustProviderOutput: return self._invoke( - input, _models.DELETE_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.DELETE_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.DELETE_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload + def delete_volume( + self, + request: _models.DeleteVolumeInput | _models.DeleteVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVolumeOutput: ... + + @_overload def delete_volume( - self, input: DeleteVolumeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVolumeInputDict], ) -> DeleteVolumeOutput: """ Deletes the specified EBS volume. The volume must be in the `available` @@ -9410,8 +13982,6 @@ def delete_volume( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DeleteVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9421,10 +13991,33 @@ def delete_volume( Returns: An instance of `DeleteVolumeOutput`. """ - return self._invoke(input, _models.DELETE_VOLUME, [], plugins) + def delete_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVolumeOutput: + return self._invoke( + self._select_input(_models.DELETE_VOLUME, args, kwargs), + _models.DELETE_VOLUME, + [], + plugins, + ) + + @_overload + def delete_vpc( + self, + request: _models.DeleteVpcInput | _models.DeleteVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcOutput: ... + + @_overload def delete_vpc( - self, input: DeleteVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcInputDict], ) -> DeleteVpcOutput: """ Deletes the specified VPC. You must detach or delete all gateways and @@ -9439,8 +14032,6 @@ def delete_vpc( flow logs for deleted VPCs are eventually automatically removed. Args: - input: - An instance of `DeleteVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9450,12 +14041,34 @@ def delete_vpc( Returns: An instance of `DeleteVpcOutput`. """ - return self._invoke(input, _models.DELETE_VPC, [], plugins) + def delete_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcOutput: + return self._invoke( + self._select_input(_models.DELETE_VPC, args, kwargs), + _models.DELETE_VPC, + [], + plugins, + ) + + @_overload + def delete_vpc_block_public_access_exclusion( + self, + request: _models.DeleteVpcBlockPublicAccessExclusionInput + | _models.DeleteVpcBlockPublicAccessExclusionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcBlockPublicAccessExclusionOutput: ... + + @_overload def delete_vpc_block_public_access_exclusion( self, - input: DeleteVpcBlockPublicAccessExclusionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcBlockPublicAccessExclusionInputDict], ) -> DeleteVpcBlockPublicAccessExclusionOutput: """ Delete a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is @@ -9469,8 +14082,6 @@ def delete_vpc_block_public_access_exclusion( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DeleteVpcBlockPublicAccessExclusionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9480,14 +14091,36 @@ def delete_vpc_block_public_access_exclusion( Returns: An instance of `DeleteVpcBlockPublicAccessExclusionOutput`. """ + + def delete_vpc_block_public_access_exclusion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcBlockPublicAccessExclusionOutput: return self._invoke( - input, _models.DELETE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, [], plugins + self._select_input( + _models.DELETE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, args, kwargs + ), + _models.DELETE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, + [], + plugins, ) + @_overload + def delete_vpc_encryption_control( + self, + request: _models.DeleteVpcEncryptionControlInput + | _models.DeleteVpcEncryptionControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcEncryptionControlOutput: ... + + @_overload def delete_vpc_encryption_control( self, - input: DeleteVpcEncryptionControlInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcEncryptionControlInputDict], ) -> DeleteVpcEncryptionControlOutput: """ Deletes a VPC Encryption Control configuration. This removes the @@ -9498,8 +14131,6 @@ def delete_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DeleteVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9509,19 +14140,39 @@ def delete_vpc_encryption_control( Returns: An instance of `DeleteVpcEncryptionControlOutput`. """ - return self._invoke(input, _models.DELETE_VPC_ENCRYPTION_CONTROL, [], plugins) + def delete_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcEncryptionControlOutput: + return self._invoke( + self._select_input(_models.DELETE_VPC_ENCRYPTION_CONTROL, args, kwargs), + _models.DELETE_VPC_ENCRYPTION_CONTROL, + [], + plugins, + ) + + @_overload + def delete_vpc_endpoint_connection_notifications( + self, + request: _models.DeleteVpcEndpointConnectionNotificationsInput + | _models.DeleteVpcEndpointConnectionNotificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcEndpointConnectionNotificationsOutput: ... + + @_overload def delete_vpc_endpoint_connection_notifications( self, - input: DeleteVpcEndpointConnectionNotificationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcEndpointConnectionNotificationsInputDict], ) -> DeleteVpcEndpointConnectionNotificationsOutput: """ Deletes the specified VPC endpoint connection notifications. Args: - input: - An instance of `DeleteVpcEndpointConnectionNotificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9531,12 +14182,35 @@ def delete_vpc_endpoint_connection_notifications( Returns: An instance of `DeleteVpcEndpointConnectionNotificationsOutput`. """ + + def delete_vpc_endpoint_connection_notifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcEndpointConnectionNotificationsOutput: return self._invoke( - input, _models.DELETE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, [], plugins + self._select_input( + _models.DELETE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, args, kwargs + ), + _models.DELETE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, + [], + plugins, ) + @_overload + def delete_vpc_endpoints( + self, + request: _models.DeleteVpcEndpointsInput | _models.DeleteVpcEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcEndpointsOutput: ... + + @_overload def delete_vpc_endpoints( - self, input: DeleteVpcEndpointsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcEndpointsInputDict], ) -> DeleteVpcEndpointsOutput: """ Deletes the specified VPC endpoints. @@ -9552,8 +14226,6 @@ def delete_vpc_endpoints( interfaces. Args: - input: - An instance of `DeleteVpcEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9563,12 +14235,34 @@ def delete_vpc_endpoints( Returns: An instance of `DeleteVpcEndpointsOutput`. """ - return self._invoke(input, _models.DELETE_VPC_ENDPOINTS, [], plugins) + def delete_vpc_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcEndpointsOutput: + return self._invoke( + self._select_input(_models.DELETE_VPC_ENDPOINTS, args, kwargs), + _models.DELETE_VPC_ENDPOINTS, + [], + plugins, + ) + + @_overload def delete_vpc_endpoint_service_configurations( self, - input: DeleteVpcEndpointServiceConfigurationsInput, + request: _models.DeleteVpcEndpointServiceConfigurationsInput + | _models.DeleteVpcEndpointServiceConfigurationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteVpcEndpointServiceConfigurationsOutput: ... + + @_overload + def delete_vpc_endpoint_service_configurations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcEndpointServiceConfigurationsInputDict], ) -> DeleteVpcEndpointServiceConfigurationsOutput: """ Deletes the specified VPC endpoint service configurations. Before you @@ -9577,8 +14271,6 @@ def delete_vpc_endpoint_service_configurations( are attached to the service. Args: - input: - An instance of `DeleteVpcEndpointServiceConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9588,14 +14280,36 @@ def delete_vpc_endpoint_service_configurations( Returns: An instance of `DeleteVpcEndpointServiceConfigurationsOutput`. """ + + def delete_vpc_endpoint_service_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcEndpointServiceConfigurationsOutput: return self._invoke( - input, _models.DELETE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, [], plugins + self._select_input( + _models.DELETE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, args, kwargs + ), + _models.DELETE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, + [], + plugins, ) + @_overload + def delete_vpc_peering_connection( + self, + request: _models.DeleteVpcPeeringConnectionInput + | _models.DeleteVpcPeeringConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpcPeeringConnectionOutput: ... + + @_overload def delete_vpc_peering_connection( self, - input: DeleteVpcPeeringConnectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpcPeeringConnectionInputDict], ) -> DeleteVpcPeeringConnectionOutput: """ Deletes a VPC peering connection. Either the owner of the requester VPC @@ -9606,8 +14320,6 @@ def delete_vpc_peering_connection( `rejected` state. Args: - input: - An instance of `DeleteVpcPeeringConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9617,17 +14329,39 @@ def delete_vpc_peering_connection( Returns: An instance of `DeleteVpcPeeringConnectionOutput`. """ - return self._invoke(input, _models.DELETE_VPC_PEERING_CONNECTION, [], plugins) + def delete_vpc_peering_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpcPeeringConnectionOutput: + return self._invoke( + self._select_input(_models.DELETE_VPC_PEERING_CONNECTION, args, kwargs), + _models.DELETE_VPC_PEERING_CONNECTION, + [], + plugins, + ) + + @_overload + def delete_vpn_concentrator( + self, + request: _models.DeleteVpnConcentratorInput + | _models.DeleteVpnConcentratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpnConcentratorOutput: ... + + @_overload def delete_vpn_concentrator( - self, input: DeleteVpnConcentratorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpnConcentratorInputDict], ) -> DeleteVpnConcentratorOutput: """ Deletes the specified VPN concentrator. Args: - input: - An instance of `DeleteVpnConcentratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9637,10 +14371,34 @@ def delete_vpn_concentrator( Returns: An instance of `DeleteVpnConcentratorOutput`. """ - return self._invoke(input, _models.DELETE_VPN_CONCENTRATOR, [], plugins) + def delete_vpn_concentrator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpnConcentratorOutput: + return self._invoke( + self._select_input(_models.DELETE_VPN_CONCENTRATOR, args, kwargs), + _models.DELETE_VPN_CONCENTRATOR, + [], + plugins, + ) + + @_overload + def delete_vpn_connection( + self, + request: _models.DeleteVpnConnectionInput + | _models.DeleteVpnConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpnConnectionOutput: ... + + @_overload def delete_vpn_connection( - self, input: DeleteVpnConnectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpnConnectionInputDict], ) -> DeleteVpnConnectionOutput: """ Deletes the specified VPN connection. @@ -9660,8 +14418,6 @@ def delete_vpn_connection( endpoints for the VPN connection before deleting the VPN connection. Args: - input: - An instance of `DeleteVpnConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9671,10 +14427,34 @@ def delete_vpn_connection( Returns: An instance of `DeleteVpnConnectionOutput`. """ - return self._invoke(input, _models.DELETE_VPN_CONNECTION, [], plugins) + def delete_vpn_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpnConnectionOutput: + return self._invoke( + self._select_input(_models.DELETE_VPN_CONNECTION, args, kwargs), + _models.DELETE_VPN_CONNECTION, + [], + plugins, + ) + + @_overload + def delete_vpn_connection_route( + self, + request: _models.DeleteVpnConnectionRouteInput + | _models.DeleteVpnConnectionRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpnConnectionRouteOutput: ... + + @_overload def delete_vpn_connection_route( - self, input: DeleteVpnConnectionRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpnConnectionRouteInputDict], ) -> DeleteVpnConnectionRouteOutput: """ Deletes the specified static route associated with a VPN connection @@ -9683,8 +14463,6 @@ def delete_vpn_connection_route( gateway to the VPN customer gateway. Args: - input: - An instance of `DeleteVpnConnectionRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9694,10 +14472,33 @@ def delete_vpn_connection_route( Returns: An instance of `DeleteVpnConnectionRouteOutput`. """ - return self._invoke(input, _models.DELETE_VPN_CONNECTION_ROUTE, [], plugins) + def delete_vpn_connection_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpnConnectionRouteOutput: + return self._invoke( + self._select_input(_models.DELETE_VPN_CONNECTION_ROUTE, args, kwargs), + _models.DELETE_VPN_CONNECTION_ROUTE, + [], + plugins, + ) + + @_overload + def delete_vpn_gateway( + self, + request: _models.DeleteVpnGatewayInput | _models.DeleteVpnGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVpnGatewayOutput: ... + + @_overload def delete_vpn_gateway( - self, input: DeleteVpnGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVpnGatewayInputDict], ) -> DeleteVpnGatewayOutput: """ Deletes the specified virtual private gateway. You must first detach the @@ -9706,8 +14507,6 @@ def delete_vpn_gateway( the VPN connection between your VPC and your network. Args: - input: - An instance of `DeleteVpnGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9717,10 +14516,34 @@ def delete_vpn_gateway( Returns: An instance of `DeleteVpnGatewayOutput`. """ - return self._invoke(input, _models.DELETE_VPN_GATEWAY, [], plugins) + def delete_vpn_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVpnGatewayOutput: + return self._invoke( + self._select_input(_models.DELETE_VPN_GATEWAY, args, kwargs), + _models.DELETE_VPN_GATEWAY, + [], + plugins, + ) + + @_overload def deprovision_byoip_cidr( - self, input: DeprovisionByoipCidrInput, plugins: list[Plugin] | None = None + self, + request: _models.DeprovisionByoipCidrInput + | _models.DeprovisionByoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeprovisionByoipCidrOutput: ... + + @_overload + def deprovision_byoip_cidr( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeprovisionByoipCidrInputDict], ) -> DeprovisionByoipCidrOutput: """ Releases the specified address range that you provisioned for use with @@ -9731,8 +14554,6 @@ def deprovision_byoip_cidr( and you must not have any IP addresses allocated from its address range. Args: - input: - An instance of `DeprovisionByoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9742,10 +14563,34 @@ def deprovision_byoip_cidr( Returns: An instance of `DeprovisionByoipCidrOutput`. """ - return self._invoke(input, _models.DEPROVISION_BYOIP_CIDR, [], plugins) + def deprovision_byoip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeprovisionByoipCidrOutput: + return self._invoke( + self._select_input(_models.DEPROVISION_BYOIP_CIDR, args, kwargs), + _models.DEPROVISION_BYOIP_CIDR, + [], + plugins, + ) + + @_overload + def deprovision_ipam_byoasn( + self, + request: _models.DeprovisionIpamByoasnInput + | _models.DeprovisionIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeprovisionIpamByoasnOutput: ... + + @_overload def deprovision_ipam_byoasn( - self, input: DeprovisionIpamByoasnInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeprovisionIpamByoasnInputDict], ) -> DeprovisionIpamByoasnOutput: """ Deprovisions your Autonomous System Number (ASN) from your Amazon Web @@ -9757,8 +14602,6 @@ def deprovision_ipam_byoasn( in the *Amazon VPC IPAM guide*. Args: - input: - An instance of `DeprovisionIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9768,10 +14611,34 @@ def deprovision_ipam_byoasn( Returns: An instance of `DeprovisionIpamByoasnOutput`. """ - return self._invoke(input, _models.DEPROVISION_IPAM_BYOASN, [], plugins) + def deprovision_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeprovisionIpamByoasnOutput: + return self._invoke( + self._select_input(_models.DEPROVISION_IPAM_BYOASN, args, kwargs), + _models.DEPROVISION_IPAM_BYOASN, + [], + plugins, + ) + + @_overload + def deprovision_ipam_pool_cidr( + self, + request: _models.DeprovisionIpamPoolCidrInput + | _models.DeprovisionIpamPoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeprovisionIpamPoolCidrOutput: ... + + @_overload def deprovision_ipam_pool_cidr( - self, input: DeprovisionIpamPoolCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeprovisionIpamPoolCidrInputDict], ) -> DeprovisionIpamPoolCidrOutput: """ Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a @@ -9781,8 +14648,6 @@ def deprovision_ipam_pool_cidr( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DeprovisionIpamPoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9792,19 +14657,39 @@ def deprovision_ipam_pool_cidr( Returns: An instance of `DeprovisionIpamPoolCidrOutput`. """ - return self._invoke(input, _models.DEPROVISION_IPAM_POOL_CIDR, [], plugins) + def deprovision_ipam_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeprovisionIpamPoolCidrOutput: + return self._invoke( + self._select_input(_models.DEPROVISION_IPAM_POOL_CIDR, args, kwargs), + _models.DEPROVISION_IPAM_POOL_CIDR, + [], + plugins, + ) + + @_overload + def deprovision_public_ipv4_pool_cidr( + self, + request: _models.DeprovisionPublicIpv4PoolCidrInput + | _models.DeprovisionPublicIpv4PoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeprovisionPublicIpv4PoolCidrOutput: ... + + @_overload def deprovision_public_ipv4_pool_cidr( self, - input: DeprovisionPublicIpv4PoolCidrInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeprovisionPublicIpv4PoolCidrInputDict], ) -> DeprovisionPublicIpv4PoolCidrOutput: """ Deprovision a CIDR from a public IPv4 pool. Args: - input: - An instance of `DeprovisionPublicIpv4PoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9814,12 +14699,33 @@ def deprovision_public_ipv4_pool_cidr( Returns: An instance of `DeprovisionPublicIpv4PoolCidrOutput`. """ + + def deprovision_public_ipv4_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeprovisionPublicIpv4PoolCidrOutput: return self._invoke( - input, _models.DEPROVISION_PUBLIC_IPV4_POOL_CIDR, [], plugins + self._select_input(_models.DEPROVISION_PUBLIC_IPV4_POOL_CIDR, args, kwargs), + _models.DEPROVISION_PUBLIC_IPV4_POOL_CIDR, + [], + plugins, ) + @_overload def deregister_image( - self, input: DeregisterImageInput, plugins: list[Plugin] | None = None + self, + request: _models.DeregisterImageInput | _models.DeregisterImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterImageOutput: ... + + @_overload + def deregister_image( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterImageInputDict], ) -> DeregisterImageOutput: """ Deregisters the specified AMI. A deregistered AMI can't be used to @@ -9855,8 +14761,6 @@ def deregister_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DeregisterImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9866,12 +14770,36 @@ def deregister_image( Returns: An instance of `DeregisterImageOutput`. """ - return self._invoke(input, _models.DEREGISTER_IMAGE, [], plugins) + def deregister_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterImageOutput: + return self._invoke( + self._select_input(_models.DEREGISTER_IMAGE, args, kwargs), + _models.DEREGISTER_IMAGE, + [], + plugins, + ) + + @_overload + def deregister_instance_event_notification_attributes( + self, + request: _models.DeregisterInstanceEventNotificationAttributesInput + | _models.DeregisterInstanceEventNotificationAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterInstanceEventNotificationAttributesOutput: ... + + @_overload def deregister_instance_event_notification_attributes( self, - input: DeregisterInstanceEventNotificationAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DeregisterInstanceEventNotificationAttributesInputDict + ], ) -> DeregisterInstanceEventNotificationAttributesOutput: """ Deregisters tag keys to prevent tags that have the specified tag keys @@ -9879,8 +14807,6 @@ def deregister_instance_event_notification_attributes( the Region. Args: - input: - An instance of `DeregisterInstanceEventNotificationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9890,25 +14816,44 @@ def deregister_instance_event_notification_attributes( Returns: An instance of `DeregisterInstanceEventNotificationAttributesOutput`. """ + + def deregister_instance_event_notification_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterInstanceEventNotificationAttributesOutput: return self._invoke( - input, + self._select_input( + _models.DEREGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, args, kwargs + ), _models.DEREGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, [], plugins, ) + @_overload + def deregister_transit_gateway_multicast_group_members( + self, + request: _models.DeregisterTransitGatewayMulticastGroupMembersInput + | _models.DeregisterTransitGatewayMulticastGroupMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterTransitGatewayMulticastGroupMembersOutput: ... + + @_overload def deregister_transit_gateway_multicast_group_members( self, - input: DeregisterTransitGatewayMulticastGroupMembersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DeregisterTransitGatewayMulticastGroupMembersInputDict + ], ) -> DeregisterTransitGatewayMulticastGroupMembersOutput: """ Deregisters the specified members (network interfaces) from the transit gateway multicast group. Args: - input: - An instance of `DeregisterTransitGatewayMulticastGroupMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9918,25 +14863,44 @@ def deregister_transit_gateway_multicast_group_members( Returns: An instance of `DeregisterTransitGatewayMulticastGroupMembersOutput`. """ + + def deregister_transit_gateway_multicast_group_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterTransitGatewayMulticastGroupMembersOutput: return self._invoke( - input, + self._select_input( + _models.DEREGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, args, kwargs + ), _models.DEREGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, [], plugins, ) + @_overload + def deregister_transit_gateway_multicast_group_sources( + self, + request: _models.DeregisterTransitGatewayMulticastGroupSourcesInput + | _models.DeregisterTransitGatewayMulticastGroupSourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterTransitGatewayMulticastGroupSourcesOutput: ... + + @_overload def deregister_transit_gateway_multicast_group_sources( self, - input: DeregisterTransitGatewayMulticastGroupSourcesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DeregisterTransitGatewayMulticastGroupSourcesInputDict + ], ) -> DeregisterTransitGatewayMulticastGroupSourcesOutput: """ Deregisters the specified sources (network interfaces) from the transit gateway multicast group. Args: - input: - An instance of `DeregisterTransitGatewayMulticastGroupSourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9946,17 +14910,36 @@ def deregister_transit_gateway_multicast_group_sources( Returns: An instance of `DeregisterTransitGatewayMulticastGroupSourcesOutput`. """ + + def deregister_transit_gateway_multicast_group_sources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterTransitGatewayMulticastGroupSourcesOutput: return self._invoke( - input, + self._select_input( + _models.DEREGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, args, kwargs + ), _models.DEREGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, [], plugins, ) + @_overload + def describe_account_attributes( + self, + request: _models.DescribeAccountAttributesInput + | _models.DescribeAccountAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountAttributesOutput: ... + + @_overload def describe_account_attributes( self, - input: DescribeAccountAttributesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountAttributesInputDict], ) -> DescribeAccountAttributesOutput: """ Describes attributes of your Amazon Web Services account. The following @@ -9987,8 +14970,6 @@ def describe_account_attributes( appear in a particular order. Args: - input: - An instance of `DescribeAccountAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9998,12 +14979,34 @@ def describe_account_attributes( Returns: An instance of `DescribeAccountAttributesOutput`. """ - return self._invoke(input, _models.DESCRIBE_ACCOUNT_ATTRIBUTES, [], plugins) + def describe_account_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountAttributesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ACCOUNT_ATTRIBUTES, args, kwargs), + _models.DESCRIBE_ACCOUNT_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def describe_account_vpc_encryption_control( + self, + request: _models.DescribeAccountVpcEncryptionControlInput + | _models.DescribeAccountVpcEncryptionControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountVpcEncryptionControlOutput: ... + + @_overload def describe_account_vpc_encryption_control( self, - input: DescribeAccountVpcEncryptionControlInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountVpcEncryptionControlInputDict], ) -> DescribeAccountVpcEncryptionControlOutput: """ Describes the account-level VPC Encryption Control configuration for @@ -10016,8 +15019,6 @@ def describe_account_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeAccountVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10027,22 +15028,41 @@ def describe_account_vpc_encryption_control( Returns: An instance of `DescribeAccountVpcEncryptionControlOutput`. """ + + def describe_account_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountVpcEncryptionControlOutput: return self._invoke( - input, _models.DESCRIBE_ACCOUNT_VPC_ENCRYPTION_CONTROL, [], plugins + self._select_input( + _models.DESCRIBE_ACCOUNT_VPC_ENCRYPTION_CONTROL, args, kwargs + ), + _models.DESCRIBE_ACCOUNT_VPC_ENCRYPTION_CONTROL, + [], + plugins, ) + @_overload + def describe_addresses( + self, + request: _models.DescribeAddressesInput | _models.DescribeAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAddressesOutput: ... + + @_overload def describe_addresses( self, - input: DescribeAddressesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAddressesInputDict], ) -> DescribeAddressesOutput: """ Describes the specified Elastic IP addresses or all of your Elastic IP addresses. Args: - input: - An instance of `DescribeAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10052,12 +15072,34 @@ def describe_addresses( Returns: An instance of `DescribeAddressesOutput`. """ - return self._invoke(input, _models.DESCRIBE_ADDRESSES, [], plugins) + def describe_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAddressesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ADDRESSES, args, kwargs), + _models.DESCRIBE_ADDRESSES, + [], + plugins, + ) + + @_overload + def describe_addresses_attribute( + self, + request: _models.DescribeAddressesAttributeInput + | _models.DescribeAddressesAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAddressesAttributeOutput: ... + + @_overload def describe_addresses_attribute( self, - input: DescribeAddressesAttributeInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAddressesAttributeInputDict], ) -> DescribeAddressesAttributeOutput: """ Describes the attributes of the specified Elastic IP addresses. For @@ -10065,8 +15107,6 @@ def describe_addresses_attribute( applications](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). Args: - input: - An instance of `DescribeAddressesAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10076,12 +15116,34 @@ def describe_addresses_attribute( Returns: An instance of `DescribeAddressesAttributeOutput`. """ - return self._invoke(input, _models.DESCRIBE_ADDRESSES_ATTRIBUTE, [], plugins) + def describe_addresses_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAddressesAttributeOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ADDRESSES_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_ADDRESSES_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def describe_address_transfers( + self, + request: _models.DescribeAddressTransfersInput + | _models.DescribeAddressTransfersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAddressTransfersOutput: ... + + @_overload def describe_address_transfers( self, - input: DescribeAddressTransfersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAddressTransfersInputDict], ) -> DescribeAddressTransfersOutput: """ Describes an Elastic IP address transfer. For more information, see @@ -10099,8 +15161,6 @@ def describe_address_transfers( source account for 14 days after the transfers have been accepted. Args: - input: - An instance of `DescribeAddressTransfersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10110,12 +15170,34 @@ def describe_address_transfers( Returns: An instance of `DescribeAddressTransfersOutput`. """ - return self._invoke(input, _models.DESCRIBE_ADDRESS_TRANSFERS, [], plugins) + def describe_address_transfers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAddressTransfersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ADDRESS_TRANSFERS, args, kwargs), + _models.DESCRIBE_ADDRESS_TRANSFERS, + [], + plugins, + ) + + @_overload + def describe_aggregate_id_format( + self, + request: _models.DescribeAggregateIdFormatInput + | _models.DescribeAggregateIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAggregateIdFormatOutput: ... + + @_overload def describe_aggregate_id_format( self, - input: DescribeAggregateIdFormatInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAggregateIdFormatInputDict], ) -> DescribeAggregateIdFormatOutput: """ Describes the longer ID format settings for all resource types in a @@ -10139,8 +15221,6 @@ def describe_aggregate_id_format( `vpc-peering-connection` | `vpn-connection` | `vpn-gateway`. Args: - input: - An instance of `DescribeAggregateIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10150,12 +15230,34 @@ def describe_aggregate_id_format( Returns: An instance of `DescribeAggregateIdFormatOutput`. """ - return self._invoke(input, _models.DESCRIBE_AGGREGATE_ID_FORMAT, [], plugins) + def describe_aggregate_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAggregateIdFormatOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_AGGREGATE_ID_FORMAT, args, kwargs), + _models.DESCRIBE_AGGREGATE_ID_FORMAT, + [], + plugins, + ) + + @_overload + def describe_application_status( + self, + request: _models.DescribeApplicationStatusInput + | _models.DescribeApplicationStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeApplicationStatusOutput: ... + + @_overload def describe_application_status( self, - input: DescribeApplicationStatusInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeApplicationStatusInputDict], ) -> DescribeApplicationStatusOutput: """ Describes the aggregated application health status for the specified @@ -10171,8 +15273,6 @@ def describe_application_status( health check results from affecting the instance-level status. Args: - input: - An instance of `DescribeApplicationStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10182,12 +15282,34 @@ def describe_application_status( Returns: An instance of `DescribeApplicationStatusOutput`. """ - return self._invoke(input, _models.DESCRIBE_APPLICATION_STATUS, [], plugins) + def describe_application_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeApplicationStatusOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_APPLICATION_STATUS, args, kwargs), + _models.DESCRIBE_APPLICATION_STATUS, + [], + plugins, + ) + + @_overload + def describe_application_status_check_associations( + self, + request: _models.DescribeApplicationStatusCheckAssociationsInput + | _models.DescribeApplicationStatusCheckAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeApplicationStatusCheckAssociationsOutput: ... + + @_overload def describe_application_status_check_associations( self, - input: DescribeApplicationStatusCheckAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeApplicationStatusCheckAssociationsInputDict], ) -> DescribeApplicationStatusCheckAssociationsOutput: """ Describes the associations for one or more application status checks. @@ -10201,8 +15323,6 @@ def describe_application_status_check_associations( structures, might vary. Args: - input: - An instance of `DescribeApplicationStatusCheckAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10212,14 +15332,36 @@ def describe_application_status_check_associations( Returns: An instance of `DescribeApplicationStatusCheckAssociationsOutput`. """ + + def describe_application_status_check_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeApplicationStatusCheckAssociationsOutput: return self._invoke( - input, _models.DESCRIBE_APPLICATION_STATUS_CHECK_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_APPLICATION_STATUS_CHECK_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_APPLICATION_STATUS_CHECK_ASSOCIATIONS, + [], + plugins, ) + @_overload + def describe_application_status_checks( + self, + request: _models.DescribeApplicationStatusChecksInput + | _models.DescribeApplicationStatusChecksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeApplicationStatusChecksOutput: ... + + @_overload def describe_application_status_checks( self, - input: DescribeApplicationStatusChecksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeApplicationStatusChecksInputDict], ) -> DescribeApplicationStatusChecksOutput: """ Describes application status checks, including configuration details @@ -10234,8 +15376,6 @@ def describe_application_status_checks( instances. Args: - input: - An instance of `DescribeApplicationStatusChecksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10245,14 +15385,36 @@ def describe_application_status_checks( Returns: An instance of `DescribeApplicationStatusChecksOutput`. """ + + def describe_application_status_checks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeApplicationStatusChecksOutput: return self._invoke( - input, _models.DESCRIBE_APPLICATION_STATUS_CHECKS, [], plugins + self._select_input( + _models.DESCRIBE_APPLICATION_STATUS_CHECKS, args, kwargs + ), + _models.DESCRIBE_APPLICATION_STATUS_CHECKS, + [], + plugins, ) + @_overload + def describe_availability_zones( + self, + request: _models.DescribeAvailabilityZonesInput + | _models.DescribeAvailabilityZonesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAvailabilityZonesOutput: ... + + @_overload def describe_availability_zones( self, - input: DescribeAvailabilityZonesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAvailabilityZonesInputDict], ) -> DescribeAvailabilityZonesOutput: """ Describes the Availability Zones, Local Zones, and Wavelength Zones that @@ -10269,8 +15431,6 @@ def describe_availability_zones( appear in a particular order. Args: - input: - An instance of `DescribeAvailabilityZonesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10280,19 +15440,41 @@ def describe_availability_zones( Returns: An instance of `DescribeAvailabilityZonesOutput`. """ - return self._invoke(input, _models.DESCRIBE_AVAILABILITY_ZONES, [], plugins) + def describe_availability_zones( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAvailabilityZonesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_AVAILABILITY_ZONES, args, kwargs), + _models.DESCRIBE_AVAILABILITY_ZONES, + [], + plugins, + ) + + @_overload + def describe_aws_network_performance_metric_subscriptions( + self, + request: _models.DescribeAwsNetworkPerformanceMetricSubscriptionsInput + | _models.DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAwsNetworkPerformanceMetricSubscriptionsOutput: ... + + @_overload def describe_aws_network_performance_metric_subscriptions( self, - input: DescribeAwsNetworkPerformanceMetricSubscriptionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict + ], ) -> DescribeAwsNetworkPerformanceMetricSubscriptionsOutput: """ Describes the current Infrastructure Performance metric subscriptions. Args: - input: - An instance of `DescribeAwsNetworkPerformanceMetricSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10302,17 +15484,38 @@ def describe_aws_network_performance_metric_subscriptions( Returns: An instance of `DescribeAwsNetworkPerformanceMetricSubscriptionsOutput`. """ + + def describe_aws_network_performance_metric_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAwsNetworkPerformanceMetricSubscriptionsOutput: return self._invoke( - input, + self._select_input( + _models.DESCRIBE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTIONS, + args, + kwargs, + ), _models.DESCRIBE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTIONS, [], plugins, ) + @_overload + def describe_bundle_tasks( + self, + request: _models.DescribeBundleTasksInput + | _models.DescribeBundleTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeBundleTasksOutput: ... + + @_overload def describe_bundle_tasks( self, - input: DescribeBundleTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeBundleTasksInputDict], ) -> DescribeBundleTasksOutput: """ Describes the specified bundle tasks or all of your bundle tasks. @@ -10328,8 +15531,6 @@ def describe_bundle_tasks( appear in a particular order. Args: - input: - An instance of `DescribeBundleTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10339,10 +15540,33 @@ def describe_bundle_tasks( Returns: An instance of `DescribeBundleTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_BUNDLE_TASKS, [], plugins) + def describe_bundle_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeBundleTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_BUNDLE_TASKS, args, kwargs), + _models.DESCRIBE_BUNDLE_TASKS, + [], + plugins, + ) + + @_overload + def describe_byoip_cidrs( + self, + request: _models.DescribeByoipCidrsInput | _models.DescribeByoipCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeByoipCidrsOutput: ... + + @_overload def describe_byoip_cidrs( - self, input: DescribeByoipCidrsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeByoipCidrsInputDict], ) -> DescribeByoipCidrsOutput: """ Describes the IP address ranges that were provisioned for use with @@ -10350,8 +15574,6 @@ def describe_byoip_cidrs( addresses (BYOIP). Args: - input: - An instance of `DescribeByoipCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10361,20 +15583,40 @@ def describe_byoip_cidrs( Returns: An instance of `DescribeByoipCidrsOutput`. """ - return self._invoke(input, _models.DESCRIBE_BYOIP_CIDRS, [], plugins) + def describe_byoip_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeByoipCidrsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_BYOIP_CIDRS, args, kwargs), + _models.DESCRIBE_BYOIP_CIDRS, + [], + plugins, + ) + + @_overload + def describe_capacity_block_extension_history( + self, + request: _models.DescribeCapacityBlockExtensionHistoryInput + | _models.DescribeCapacityBlockExtensionHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlockExtensionHistoryOutput: ... + + @_overload def describe_capacity_block_extension_history( self, - input: DescribeCapacityBlockExtensionHistoryInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlockExtensionHistoryInputDict], ) -> DescribeCapacityBlockExtensionHistoryOutput: """ Describes the events for the specified Capacity Block extension during the specified time. Args: - input: - An instance of `DescribeCapacityBlockExtensionHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10384,22 +15626,42 @@ def describe_capacity_block_extension_history( Returns: An instance of `DescribeCapacityBlockExtensionHistoryOutput`. """ + + def describe_capacity_block_extension_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlockExtensionHistoryOutput: return self._invoke( - input, _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_HISTORY, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_HISTORY, args, kwargs + ), + _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_HISTORY, + [], + plugins, ) + @_overload + def describe_capacity_block_extension_offerings( + self, + request: _models.DescribeCapacityBlockExtensionOfferingsInput + | _models.DescribeCapacityBlockExtensionOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlockExtensionOfferingsOutput: ... + + @_overload def describe_capacity_block_extension_offerings( self, - input: DescribeCapacityBlockExtensionOfferingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlockExtensionOfferingsInputDict], ) -> DescribeCapacityBlockExtensionOfferingsOutput: """ Describes Capacity Block extension offerings available for purchase in the Amazon Web Services Region that you're currently using. Args: - input: - An instance of `DescribeCapacityBlockExtensionOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10409,14 +15671,36 @@ def describe_capacity_block_extension_offerings( Returns: An instance of `DescribeCapacityBlockExtensionOfferingsOutput`. """ + + def describe_capacity_block_extension_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlockExtensionOfferingsOutput: return self._invoke( - input, _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_OFFERINGS, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_OFFERINGS, args, kwargs + ), + _models.DESCRIBE_CAPACITY_BLOCK_EXTENSION_OFFERINGS, + [], + plugins, ) + @_overload + def describe_capacity_block_offerings( + self, + request: _models.DescribeCapacityBlockOfferingsInput + | _models.DescribeCapacityBlockOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlockOfferingsOutput: ... + + @_overload def describe_capacity_block_offerings( self, - input: DescribeCapacityBlockOfferingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlockOfferingsInputDict], ) -> DescribeCapacityBlockOfferingsOutput: """ Describes Capacity Block offerings available for purchase in the Amazon @@ -10428,8 +15712,6 @@ def describe_capacity_block_offerings( reservation duration and instance count. Args: - input: - An instance of `DescribeCapacityBlockOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10439,22 +15721,40 @@ def describe_capacity_block_offerings( Returns: An instance of `DescribeCapacityBlockOfferingsOutput`. """ + + def describe_capacity_block_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlockOfferingsOutput: return self._invoke( - input, _models.DESCRIBE_CAPACITY_BLOCK_OFFERINGS, [], plugins + self._select_input(_models.DESCRIBE_CAPACITY_BLOCK_OFFERINGS, args, kwargs), + _models.DESCRIBE_CAPACITY_BLOCK_OFFERINGS, + [], + plugins, ) + @_overload + def describe_capacity_blocks( + self, + request: _models.DescribeCapacityBlocksInput + | _models.DescribeCapacityBlocksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlocksOutput: ... + + @_overload def describe_capacity_blocks( self, - input: DescribeCapacityBlocksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlocksInputDict], ) -> DescribeCapacityBlocksOutput: """ Describes details about Capacity Blocks in the Amazon Web Services Region that you're currently using. Args: - input: - An instance of `DescribeCapacityBlocksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10464,20 +15764,40 @@ def describe_capacity_blocks( Returns: An instance of `DescribeCapacityBlocksOutput`. """ - return self._invoke(input, _models.DESCRIBE_CAPACITY_BLOCKS, [], plugins) + def describe_capacity_blocks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlocksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CAPACITY_BLOCKS, args, kwargs), + _models.DESCRIBE_CAPACITY_BLOCKS, + [], + plugins, + ) + + @_overload + def describe_capacity_block_status( + self, + request: _models.DescribeCapacityBlockStatusInput + | _models.DescribeCapacityBlockStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityBlockStatusOutput: ... + + @_overload def describe_capacity_block_status( self, - input: DescribeCapacityBlockStatusInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityBlockStatusInputDict], ) -> DescribeCapacityBlockStatusOutput: """ Describes the availability of capacity for the specified Capacity blocks, or all of your Capacity Blocks. Args: - input: - An instance of `DescribeCapacityBlockStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10487,12 +15807,34 @@ def describe_capacity_block_status( Returns: An instance of `DescribeCapacityBlockStatusOutput`. """ - return self._invoke(input, _models.DESCRIBE_CAPACITY_BLOCK_STATUS, [], plugins) + def describe_capacity_block_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityBlockStatusOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CAPACITY_BLOCK_STATUS, args, kwargs), + _models.DESCRIBE_CAPACITY_BLOCK_STATUS, + [], + plugins, + ) + + @_overload + def describe_capacity_manager_data_exports( + self, + request: _models.DescribeCapacityManagerDataExportsInput + | _models.DescribeCapacityManagerDataExportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityManagerDataExportsOutput: ... + + @_overload def describe_capacity_manager_data_exports( self, - input: DescribeCapacityManagerDataExportsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityManagerDataExportsInputDict], ) -> DescribeCapacityManagerDataExportsOutput: """ Describes one or more Capacity Manager data export configurations. @@ -10500,8 +15842,6 @@ def describe_capacity_manager_data_exports( export activity. Args: - input: - An instance of `DescribeCapacityManagerDataExportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10511,14 +15851,36 @@ def describe_capacity_manager_data_exports( Returns: An instance of `DescribeCapacityManagerDataExportsOutput`. """ + + def describe_capacity_manager_data_exports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityManagerDataExportsOutput: return self._invoke( - input, _models.DESCRIBE_CAPACITY_MANAGER_DATA_EXPORTS, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_MANAGER_DATA_EXPORTS, args, kwargs + ), + _models.DESCRIBE_CAPACITY_MANAGER_DATA_EXPORTS, + [], + plugins, ) + @_overload + def describe_capacity_reservation_billing_requests( + self, + request: _models.DescribeCapacityReservationBillingRequestsInput + | _models.DescribeCapacityReservationBillingRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationBillingRequestsOutput: ... + + @_overload def describe_capacity_reservation_billing_requests( self, - input: DescribeCapacityReservationBillingRequestsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationBillingRequestsInputDict], ) -> DescribeCapacityReservationBillingRequestsOutput: """ Describes a request to assign the billing of the unused capacity of a @@ -10527,8 +15889,6 @@ def describe_capacity_reservation_billing_requests( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/transfer-billing.html). Args: - input: - An instance of `DescribeCapacityReservationBillingRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10538,14 +15898,38 @@ def describe_capacity_reservation_billing_requests( Returns: An instance of `DescribeCapacityReservationBillingRequestsOutput`. """ + + def describe_capacity_reservation_billing_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationBillingRequestsOutput: return self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATION_BILLING_REQUESTS, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_BILLING_REQUESTS, args, kwargs + ), + _models.DESCRIBE_CAPACITY_RESERVATION_BILLING_REQUESTS, + [], + plugins, ) + @_overload + def describe_capacity_reservation_cancellation_quotes( + self, + request: _models.DescribeCapacityReservationCancellationQuotesInput + | _models.DescribeCapacityReservationCancellationQuotesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationCancellationQuotesOutput: ... + + @_overload def describe_capacity_reservation_cancellation_quotes( self, - input: DescribeCapacityReservationCancellationQuotesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeCapacityReservationCancellationQuotesInputDict + ], ) -> DescribeCapacityReservationCancellationQuotesOutput: """ Describes one or more Capacity Reservation cancellation quotes. The @@ -10553,8 +15937,6 @@ def describe_capacity_reservation_cancellation_quotes( using the `CreateCapacityReservationCancellationQuote` action. Args: - input: - An instance of `DescribeCapacityReservationCancellationQuotesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10564,17 +15946,36 @@ def describe_capacity_reservation_cancellation_quotes( Returns: An instance of `DescribeCapacityReservationCancellationQuotesOutput`. """ + + def describe_capacity_reservation_cancellation_quotes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationCancellationQuotesOutput: return self._invoke( - input, + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_CANCELLATION_QUOTES, args, kwargs + ), _models.DESCRIBE_CAPACITY_RESERVATION_CANCELLATION_QUOTES, [], plugins, ) + @_overload + def describe_capacity_reservation_date_change_quotes( + self, + request: _models.DescribeCapacityReservationDateChangeQuotesInput + | _models.DescribeCapacityReservationDateChangeQuotesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationDateChangeQuotesOutput: ... + + @_overload def describe_capacity_reservation_date_change_quotes( self, - input: DescribeCapacityReservationDateChangeQuotesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationDateChangeQuotesInputDict], ) -> DescribeCapacityReservationDateChangeQuotesOutput: """ Describes one or more Capacity Reservation date change quotes that you @@ -10582,8 +15983,6 @@ def describe_capacity_reservation_date_change_quotes( operation. Args: - input: - An instance of `DescribeCapacityReservationDateChangeQuotesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10593,21 +15992,41 @@ def describe_capacity_reservation_date_change_quotes( Returns: An instance of `DescribeCapacityReservationDateChangeQuotesOutput`. """ + + def describe_capacity_reservation_date_change_quotes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationDateChangeQuotesOutput: return self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTES, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTES, args, kwargs + ), + _models.DESCRIBE_CAPACITY_RESERVATION_DATE_CHANGE_QUOTES, + [], + plugins, ) + @_overload + def describe_capacity_reservation_fleets( + self, + request: _models.DescribeCapacityReservationFleetsInput + | _models.DescribeCapacityReservationFleetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationFleetsOutput: ... + + @_overload def describe_capacity_reservation_fleets( self, - input: DescribeCapacityReservationFleetsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationFleetsInputDict], ) -> DescribeCapacityReservationFleetsOutput: """ Describes one or more Capacity Reservation Fleets. Args: - input: - An instance of `DescribeCapacityReservationFleetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10617,14 +16036,36 @@ def describe_capacity_reservation_fleets( Returns: An instance of `DescribeCapacityReservationFleetsOutput`. """ + + def describe_capacity_reservation_fleets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationFleetsOutput: return self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATION_FLEETS, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_FLEETS, args, kwargs + ), + _models.DESCRIBE_CAPACITY_RESERVATION_FLEETS, + [], + plugins, ) + @_overload + def describe_capacity_reservations( + self, + request: _models.DescribeCapacityReservationsInput + | _models.DescribeCapacityReservationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationsOutput: ... + + @_overload def describe_capacity_reservations( self, - input: DescribeCapacityReservationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationsInputDict], ) -> DescribeCapacityReservationsOutput: """ Describes one or more of your Capacity Reservations. The results @@ -10632,23 +16073,43 @@ def describe_capacity_reservations( Region that you're currently using. Args: - input: - An instance of `DescribeCapacityReservationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `DescribeCapacityReservationsOutput`. - """ - return self._invoke(input, _models.DESCRIBE_CAPACITY_RESERVATIONS, [], plugins) + Returns: + An instance of `DescribeCapacityReservationsOutput`. + """ + + def describe_capacity_reservations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CAPACITY_RESERVATIONS, args, kwargs), + _models.DESCRIBE_CAPACITY_RESERVATIONS, + [], + plugins, + ) + + @_overload + def describe_capacity_reservation_topology( + self, + request: _models.DescribeCapacityReservationTopologyInput + | _models.DescribeCapacityReservationTopologyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityReservationTopologyOutput: ... + @_overload def describe_capacity_reservation_topology( self, - input: DescribeCapacityReservationTopologyInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityReservationTopologyInputDict], ) -> DescribeCapacityReservationTopologyOutput: """ Describes a tree-based hierarchy that represents the physical host @@ -10679,8 +16140,6 @@ def describe_capacity_reservation_topology( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeCapacityReservationTopologyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10690,21 +16149,41 @@ def describe_capacity_reservation_topology( Returns: An instance of `DescribeCapacityReservationTopologyOutput`. """ + + def describe_capacity_reservation_topology( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityReservationTopologyOutput: return self._invoke( - input, _models.DESCRIBE_CAPACITY_RESERVATION_TOPOLOGY, [], plugins + self._select_input( + _models.DESCRIBE_CAPACITY_RESERVATION_TOPOLOGY, args, kwargs + ), + _models.DESCRIBE_CAPACITY_RESERVATION_TOPOLOGY, + [], + plugins, ) + @_overload + def describe_carrier_gateways( + self, + request: _models.DescribeCarrierGatewaysInput + | _models.DescribeCarrierGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCarrierGatewaysOutput: ... + + @_overload def describe_carrier_gateways( self, - input: DescribeCarrierGatewaysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCarrierGatewaysInputDict], ) -> DescribeCarrierGatewaysOutput: """ Describes one or more of your carrier gateways. Args: - input: - An instance of `DescribeCarrierGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10714,12 +16193,34 @@ def describe_carrier_gateways( Returns: An instance of `DescribeCarrierGatewaysOutput`. """ - return self._invoke(input, _models.DESCRIBE_CARRIER_GATEWAYS, [], plugins) + def describe_carrier_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCarrierGatewaysOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CARRIER_GATEWAYS, args, kwargs), + _models.DESCRIBE_CARRIER_GATEWAYS, + [], + plugins, + ) + + @_overload + def describe_classic_link_instances( + self, + request: _models.DescribeClassicLinkInstancesInput + | _models.DescribeClassicLinkInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClassicLinkInstancesOutput: ... + + @_overload def describe_classic_link_instances( self, - input: DescribeClassicLinkInstancesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClassicLinkInstancesInputDict], ) -> DescribeClassicLinkInstancesOutput: """ Note: @@ -10731,8 +16232,6 @@ def describe_classic_link_instances( other instances. Args: - input: - An instance of `DescribeClassicLinkInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10742,19 +16241,39 @@ def describe_classic_link_instances( Returns: An instance of `DescribeClassicLinkInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_CLASSIC_LINK_INSTANCES, [], plugins) + def describe_classic_link_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClassicLinkInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CLASSIC_LINK_INSTANCES, args, kwargs), + _models.DESCRIBE_CLASSIC_LINK_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_client_vpn_authorization_rules( + self, + request: _models.DescribeClientVpnAuthorizationRulesInput + | _models.DescribeClientVpnAuthorizationRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnAuthorizationRulesOutput: ... + + @_overload def describe_client_vpn_authorization_rules( self, - input: DescribeClientVpnAuthorizationRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnAuthorizationRulesInputDict], ) -> DescribeClientVpnAuthorizationRulesOutput: """ Describes the authorization rules for a specified Client VPN endpoint. Args: - input: - An instance of `DescribeClientVpnAuthorizationRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10764,14 +16283,36 @@ def describe_client_vpn_authorization_rules( Returns: An instance of `DescribeClientVpnAuthorizationRulesOutput`. """ + + def describe_client_vpn_authorization_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnAuthorizationRulesOutput: return self._invoke( - input, _models.DESCRIBE_CLIENT_VPN_AUTHORIZATION_RULES, [], plugins + self._select_input( + _models.DESCRIBE_CLIENT_VPN_AUTHORIZATION_RULES, args, kwargs + ), + _models.DESCRIBE_CLIENT_VPN_AUTHORIZATION_RULES, + [], + plugins, ) + @_overload + def describe_client_vpn_connections( + self, + request: _models.DescribeClientVpnConnectionsInput + | _models.DescribeClientVpnConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnConnectionsOutput: ... + + @_overload def describe_client_vpn_connections( self, - input: DescribeClientVpnConnectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnConnectionsInputDict], ) -> DescribeClientVpnConnectionsOutput: """ Describes active client connections and connections that have been @@ -10779,8 +16320,6 @@ def describe_client_vpn_connections( endpoint. Args: - input: - An instance of `DescribeClientVpnConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10790,19 +16329,39 @@ def describe_client_vpn_connections( Returns: An instance of `DescribeClientVpnConnectionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_CLIENT_VPN_CONNECTIONS, [], plugins) + def describe_client_vpn_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnConnectionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CLIENT_VPN_CONNECTIONS, args, kwargs), + _models.DESCRIBE_CLIENT_VPN_CONNECTIONS, + [], + plugins, + ) + + @_overload + def describe_client_vpn_endpoints( + self, + request: _models.DescribeClientVpnEndpointsInput + | _models.DescribeClientVpnEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnEndpointsOutput: ... + + @_overload def describe_client_vpn_endpoints( self, - input: DescribeClientVpnEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnEndpointsInputDict], ) -> DescribeClientVpnEndpointsOutput: """ Describes one or more Client VPN endpoints in the account. Args: - input: - An instance of `DescribeClientVpnEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10812,17 +16371,39 @@ def describe_client_vpn_endpoints( Returns: An instance of `DescribeClientVpnEndpointsOutput`. """ - return self._invoke(input, _models.DESCRIBE_CLIENT_VPN_ENDPOINTS, [], plugins) + def describe_client_vpn_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnEndpointsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CLIENT_VPN_ENDPOINTS, args, kwargs), + _models.DESCRIBE_CLIENT_VPN_ENDPOINTS, + [], + plugins, + ) + + @_overload + def describe_client_vpn_routes( + self, + request: _models.DescribeClientVpnRoutesInput + | _models.DescribeClientVpnRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnRoutesOutput: ... + + @_overload def describe_client_vpn_routes( - self, input: DescribeClientVpnRoutesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnRoutesInputDict], ) -> DescribeClientVpnRoutesOutput: """ Describes the routes for the specified Client VPN endpoint. Args: - input: - An instance of `DescribeClientVpnRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10832,20 +16413,40 @@ def describe_client_vpn_routes( Returns: An instance of `DescribeClientVpnRoutesOutput`. """ - return self._invoke(input, _models.DESCRIBE_CLIENT_VPN_ROUTES, [], plugins) + def describe_client_vpn_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnRoutesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CLIENT_VPN_ROUTES, args, kwargs), + _models.DESCRIBE_CLIENT_VPN_ROUTES, + [], + plugins, + ) + + @_overload + def describe_client_vpn_target_networks( + self, + request: _models.DescribeClientVpnTargetNetworksInput + | _models.DescribeClientVpnTargetNetworksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClientVpnTargetNetworksOutput: ... + + @_overload def describe_client_vpn_target_networks( self, - input: DescribeClientVpnTargetNetworksInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClientVpnTargetNetworksInputDict], ) -> DescribeClientVpnTargetNetworksOutput: """ Describes the target networks associated with the specified Client VPN endpoint. Args: - input: - An instance of `DescribeClientVpnTargetNetworksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10855,22 +16456,41 @@ def describe_client_vpn_target_networks( Returns: An instance of `DescribeClientVpnTargetNetworksOutput`. """ + + def describe_client_vpn_target_networks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClientVpnTargetNetworksOutput: return self._invoke( - input, _models.DESCRIBE_CLIENT_VPN_TARGET_NETWORKS, [], plugins + self._select_input( + _models.DESCRIBE_CLIENT_VPN_TARGET_NETWORKS, args, kwargs + ), + _models.DESCRIBE_CLIENT_VPN_TARGET_NETWORKS, + [], + plugins, ) + @_overload + def describe_coip_pools( + self, + request: _models.DescribeCoipPoolsInput | _models.DescribeCoipPoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCoipPoolsOutput: ... + + @_overload def describe_coip_pools( self, - input: DescribeCoipPoolsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCoipPoolsInputDict], ) -> DescribeCoipPoolsOutput: """ Describes the specified customer-owned address pools or all of your customer-owned address pools. Args: - input: - An instance of `DescribeCoipPoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10880,12 +16500,34 @@ def describe_coip_pools( Returns: An instance of `DescribeCoipPoolsOutput`. """ - return self._invoke(input, _models.DESCRIBE_COIP_POOLS, [], plugins) + def describe_coip_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCoipPoolsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_COIP_POOLS, args, kwargs), + _models.DESCRIBE_COIP_POOLS, + [], + plugins, + ) + + @_overload + def describe_conversion_tasks( + self, + request: _models.DescribeConversionTasksInput + | _models.DescribeConversionTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeConversionTasksOutput: ... + + @_overload def describe_conversion_tasks( self, - input: DescribeConversionTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeConversionTasksInputDict], ) -> DescribeConversionTasksOutput: """ Describes the specified conversion tasks or all your conversion tasks. @@ -10897,8 +16539,6 @@ def describe_conversion_tasks( Manifest](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). Args: - input: - An instance of `DescribeConversionTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10908,12 +16548,34 @@ def describe_conversion_tasks( Returns: An instance of `DescribeConversionTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_CONVERSION_TASKS, [], plugins) + def describe_conversion_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeConversionTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CONVERSION_TASKS, args, kwargs), + _models.DESCRIBE_CONVERSION_TASKS, + [], + plugins, + ) + + @_overload def describe_customer_gateways( self, - input: DescribeCustomerGatewaysInput | None = None, + request: _models.DescribeCustomerGatewaysInput + | _models.DescribeCustomerGatewaysInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeCustomerGatewaysOutput: ... + + @_overload + def describe_customer_gateways( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCustomerGatewaysInputDict], ) -> DescribeCustomerGatewaysOutput: """ Describes one or more of your VPN customer gateways. @@ -10923,8 +16585,6 @@ def describe_customer_gateways( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `DescribeCustomerGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10934,12 +16594,34 @@ def describe_customer_gateways( Returns: An instance of `DescribeCustomerGatewaysOutput`. """ - return self._invoke(input, _models.DESCRIBE_CUSTOMER_GATEWAYS, [], plugins) + def describe_customer_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCustomerGatewaysOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CUSTOMER_GATEWAYS, args, kwargs), + _models.DESCRIBE_CUSTOMER_GATEWAYS, + [], + plugins, + ) + + @_overload + def describe_declarative_policies_reports( + self, + request: _models.DescribeDeclarativePoliciesReportsInput + | _models.DescribeDeclarativePoliciesReportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDeclarativePoliciesReportsOutput: ... + + @_overload def describe_declarative_policies_reports( self, - input: DescribeDeclarativePoliciesReportsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDeclarativePoliciesReportsInputDict], ) -> DescribeDeclarativePoliciesReportsOutput: """ Describes the metadata of an account status report, including the status @@ -10959,8 +16641,6 @@ def describe_declarative_policies_reports( in the *Amazon Web Services Organizations User Guide*. Args: - input: - An instance of `DescribeDeclarativePoliciesReportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10970,14 +16650,36 @@ def describe_declarative_policies_reports( Returns: An instance of `DescribeDeclarativePoliciesReportsOutput`. """ + + def describe_declarative_policies_reports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDeclarativePoliciesReportsOutput: return self._invoke( - input, _models.DESCRIBE_DECLARATIVE_POLICIES_REPORTS, [], plugins + self._select_input( + _models.DESCRIBE_DECLARATIVE_POLICIES_REPORTS, args, kwargs + ), + _models.DESCRIBE_DECLARATIVE_POLICIES_REPORTS, + [], + plugins, ) + @_overload + def describe_dhcp_options( + self, + request: _models.DescribeDhcpOptionsInput + | _models.DescribeDhcpOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDhcpOptionsOutput: ... + + @_overload def describe_dhcp_options( self, - input: DescribeDhcpOptionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDhcpOptionsInputDict], ) -> DescribeDhcpOptionsOutput: """ Describes your DHCP option sets. The default is to describe all your @@ -10990,8 +16692,6 @@ def describe_dhcp_options( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeDhcpOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11001,12 +16701,34 @@ def describe_dhcp_options( Returns: An instance of `DescribeDhcpOptionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DHCP_OPTIONS, [], plugins) + def describe_dhcp_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDhcpOptionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DHCP_OPTIONS, args, kwargs), + _models.DESCRIBE_DHCP_OPTIONS, + [], + plugins, + ) + + @_overload + def describe_egress_only_internet_gateways( + self, + request: _models.DescribeEgressOnlyInternetGatewaysInput + | _models.DescribeEgressOnlyInternetGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEgressOnlyInternetGatewaysOutput: ... + + @_overload def describe_egress_only_internet_gateways( self, - input: DescribeEgressOnlyInternetGatewaysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEgressOnlyInternetGatewaysInputDict], ) -> DescribeEgressOnlyInternetGatewaysOutput: """ Describes your egress-only internet gateways. The default is to describe @@ -11016,8 +16738,6 @@ def describe_egress_only_internet_gateways( criteria. Args: - input: - An instance of `DescribeEgressOnlyInternetGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11027,14 +16747,36 @@ def describe_egress_only_internet_gateways( Returns: An instance of `DescribeEgressOnlyInternetGatewaysOutput`. """ + + def describe_egress_only_internet_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEgressOnlyInternetGatewaysOutput: return self._invoke( - input, _models.DESCRIBE_EGRESS_ONLY_INTERNET_GATEWAYS, [], plugins + self._select_input( + _models.DESCRIBE_EGRESS_ONLY_INTERNET_GATEWAYS, args, kwargs + ), + _models.DESCRIBE_EGRESS_ONLY_INTERNET_GATEWAYS, + [], + plugins, ) + @_overload def describe_elastic_gpus( self, - input: DescribeElasticGpusInput | None = None, + request: _models.DescribeElasticGpusInput + | _models.DescribeElasticGpusInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeElasticGpusOutput: ... + + @_overload + def describe_elastic_gpus( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeElasticGpusInputDict], ) -> DescribeElasticGpusOutput: """ Note: @@ -11044,8 +16786,6 @@ def describe_elastic_gpus( instances. Args: - input: - An instance of `DescribeElasticGpusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11055,20 +16795,40 @@ def describe_elastic_gpus( Returns: An instance of `DescribeElasticGpusOutput`. """ - return self._invoke(input, _models.DESCRIBE_ELASTIC_GPUS, [], plugins) + def describe_elastic_gpus( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeElasticGpusOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ELASTIC_GPUS, args, kwargs), + _models.DESCRIBE_ELASTIC_GPUS, + [], + plugins, + ) + + @_overload + def describe_export_image_tasks( + self, + request: _models.DescribeExportImageTasksInput + | _models.DescribeExportImageTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeExportImageTasksOutput: ... + + @_overload def describe_export_image_tasks( self, - input: DescribeExportImageTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExportImageTasksInputDict], ) -> DescribeExportImageTasksOutput: """ Describes the specified export image tasks or all of your export image tasks. Args: - input: - An instance of `DescribeExportImageTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11078,20 +16838,40 @@ def describe_export_image_tasks( Returns: An instance of `DescribeExportImageTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_EXPORT_IMAGE_TASKS, [], plugins) + def describe_export_image_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExportImageTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_EXPORT_IMAGE_TASKS, args, kwargs), + _models.DESCRIBE_EXPORT_IMAGE_TASKS, + [], + plugins, + ) + + @_overload + def describe_export_tasks( + self, + request: _models.DescribeExportTasksInput + | _models.DescribeExportTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeExportTasksOutput: ... + + @_overload def describe_export_tasks( self, - input: DescribeExportTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExportTasksInputDict], ) -> DescribeExportTasksOutput: """ Describes the specified export instance tasks or all of your export instance tasks. Args: - input: - An instance of `DescribeExportTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11101,20 +16881,40 @@ def describe_export_tasks( Returns: An instance of `DescribeExportTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_EXPORT_TASKS, [], plugins) + def describe_export_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExportTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_EXPORT_TASKS, args, kwargs), + _models.DESCRIBE_EXPORT_TASKS, + [], + plugins, + ) + + @_overload + def describe_fast_launch_images( + self, + request: _models.DescribeFastLaunchImagesInput + | _models.DescribeFastLaunchImagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFastLaunchImagesOutput: ... + + @_overload def describe_fast_launch_images( self, - input: DescribeFastLaunchImagesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFastLaunchImagesInputDict], ) -> DescribeFastLaunchImagesOutput: """ Describe details for Windows AMIs that are configured for Windows fast launch. Args: - input: - An instance of `DescribeFastLaunchImagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11124,19 +16924,39 @@ def describe_fast_launch_images( Returns: An instance of `DescribeFastLaunchImagesOutput`. """ - return self._invoke(input, _models.DESCRIBE_FAST_LAUNCH_IMAGES, [], plugins) + def describe_fast_launch_images( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFastLaunchImagesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FAST_LAUNCH_IMAGES, args, kwargs), + _models.DESCRIBE_FAST_LAUNCH_IMAGES, + [], + plugins, + ) + + @_overload + def describe_fast_snapshot_restores( + self, + request: _models.DescribeFastSnapshotRestoresInput + | _models.DescribeFastSnapshotRestoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFastSnapshotRestoresOutput: ... + + @_overload def describe_fast_snapshot_restores( self, - input: DescribeFastSnapshotRestoresInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFastSnapshotRestoresInputDict], ) -> DescribeFastSnapshotRestoresOutput: """ Describes the state of fast snapshot restores for your snapshots. Args: - input: - An instance of `DescribeFastSnapshotRestoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11146,10 +16966,34 @@ def describe_fast_snapshot_restores( Returns: An instance of `DescribeFastSnapshotRestoresOutput`. """ - return self._invoke(input, _models.DESCRIBE_FAST_SNAPSHOT_RESTORES, [], plugins) + def describe_fast_snapshot_restores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFastSnapshotRestoresOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FAST_SNAPSHOT_RESTORES, args, kwargs), + _models.DESCRIBE_FAST_SNAPSHOT_RESTORES, + [], + plugins, + ) + + @_overload + def describe_fleet_history( + self, + request: _models.DescribeFleetHistoryInput + | _models.DescribeFleetHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFleetHistoryOutput: ... + + @_overload def describe_fleet_history( - self, input: DescribeFleetHistoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFleetHistoryInputDict], ) -> DescribeFleetHistoryOutput: """ Describes the events for the specified EC2 Fleet during the specified @@ -11165,8 +17009,6 @@ def describe_fleet_history( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeFleetHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11176,10 +17018,34 @@ def describe_fleet_history( Returns: An instance of `DescribeFleetHistoryOutput`. """ - return self._invoke(input, _models.DESCRIBE_FLEET_HISTORY, [], plugins) + def describe_fleet_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFleetHistoryOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FLEET_HISTORY, args, kwargs), + _models.DESCRIBE_FLEET_HISTORY, + [], + plugins, + ) + + @_overload + def describe_fleet_instances( + self, + request: _models.DescribeFleetInstancesInput + | _models.DescribeFleetInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFleetInstancesOutput: ... + + @_overload def describe_fleet_instances( - self, input: DescribeFleetInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFleetInstancesInputDict], ) -> DescribeFleetInstancesOutput: """ Describes the running instances for the specified EC2 Fleet. @@ -11194,8 +17060,6 @@ def describe_fleet_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeFleetInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11205,12 +17069,33 @@ def describe_fleet_instances( Returns: An instance of `DescribeFleetInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_FLEET_INSTANCES, [], plugins) + def describe_fleet_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFleetInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FLEET_INSTANCES, args, kwargs), + _models.DESCRIBE_FLEET_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_fleets( + self, + request: _models.DescribeFleetsInput | _models.DescribeFleetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFleetsOutput: ... + + @_overload def describe_fleets( self, - input: DescribeFleetsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFleetsInputDict], ) -> DescribeFleetsOutput: """ Describes the specified EC2 Fleet or all of your EC2 Fleets. @@ -11224,8 +17109,6 @@ def describe_fleets( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeFleetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11235,12 +17118,33 @@ def describe_fleets( Returns: An instance of `DescribeFleetsOutput`. """ - return self._invoke(input, _models.DESCRIBE_FLEETS, [], plugins) + def describe_fleets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFleetsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FLEETS, args, kwargs), + _models.DESCRIBE_FLEETS, + [], + plugins, + ) + + @_overload + def describe_flow_logs( + self, + request: _models.DescribeFlowLogsInput | _models.DescribeFlowLogsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFlowLogsOutput: ... + + @_overload def describe_flow_logs( self, - input: DescribeFlowLogsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFlowLogsInputDict], ) -> DescribeFlowLogsOutput: """ Describes one or more flow logs. @@ -11250,8 +17154,6 @@ def describe_flow_logs( bucket, or the Kinesis Data Firehose delivery stream. Args: - input: - An instance of `DescribeFlowLogsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11261,20 +17163,40 @@ def describe_flow_logs( Returns: An instance of `DescribeFlowLogsOutput`. """ - return self._invoke(input, _models.DESCRIBE_FLOW_LOGS, [], plugins) + def describe_flow_logs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFlowLogsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FLOW_LOGS, args, kwargs), + _models.DESCRIBE_FLOW_LOGS, + [], + plugins, + ) + + @_overload + def describe_fpga_image_attribute( + self, + request: _models.DescribeFpgaImageAttributeInput + | _models.DescribeFpgaImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFpgaImageAttributeOutput: ... + + @_overload def describe_fpga_image_attribute( self, - input: DescribeFpgaImageAttributeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFpgaImageAttributeInputDict], ) -> DescribeFpgaImageAttributeOutput: """ Describes the specified attribute of the specified Amazon FPGA Image (AFI). Args: - input: - An instance of `DescribeFpgaImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11284,12 +17206,33 @@ def describe_fpga_image_attribute( Returns: An instance of `DescribeFpgaImageAttributeOutput`. """ - return self._invoke(input, _models.DESCRIBE_FPGA_IMAGE_ATTRIBUTE, [], plugins) + def describe_fpga_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFpgaImageAttributeOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FPGA_IMAGE_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_FPGA_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def describe_fpga_images( + self, + request: _models.DescribeFpgaImagesInput | _models.DescribeFpgaImagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeFpgaImagesOutput: ... + + @_overload def describe_fpga_images( self, - input: DescribeFpgaImagesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeFpgaImagesInputDict], ) -> DescribeFpgaImagesOutput: """ Describes the Amazon FPGA Images (AFIs) available to you. These include @@ -11297,8 +17240,6 @@ def describe_fpga_images( Web Services accounts for which you have load permissions. Args: - input: - An instance of `DescribeFpgaImagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11308,12 +17249,34 @@ def describe_fpga_images( Returns: An instance of `DescribeFpgaImagesOutput`. """ - return self._invoke(input, _models.DESCRIBE_FPGA_IMAGES, [], plugins) + def describe_fpga_images( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeFpgaImagesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_FPGA_IMAGES, args, kwargs), + _models.DESCRIBE_FPGA_IMAGES, + [], + plugins, + ) + + @_overload + def describe_host_reservation_offerings( + self, + request: _models.DescribeHostReservationOfferingsInput + | _models.DescribeHostReservationOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeHostReservationOfferingsOutput: ... + + @_overload def describe_host_reservation_offerings( self, - input: DescribeHostReservationOfferingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeHostReservationOfferingsInputDict], ) -> DescribeHostReservationOfferingsOutput: """ Describes the Dedicated Host reservations that are available to @@ -11329,8 +17292,6 @@ def describe_host_reservation_offerings( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeHostReservationOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11340,22 +17301,42 @@ def describe_host_reservation_offerings( Returns: An instance of `DescribeHostReservationOfferingsOutput`. """ + + def describe_host_reservation_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeHostReservationOfferingsOutput: return self._invoke( - input, _models.DESCRIBE_HOST_RESERVATION_OFFERINGS, [], plugins + self._select_input( + _models.DESCRIBE_HOST_RESERVATION_OFFERINGS, args, kwargs + ), + _models.DESCRIBE_HOST_RESERVATION_OFFERINGS, + [], + plugins, ) + @_overload + def describe_host_reservations( + self, + request: _models.DescribeHostReservationsInput + | _models.DescribeHostReservationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeHostReservationsOutput: ... + + @_overload def describe_host_reservations( self, - input: DescribeHostReservationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeHostReservationsInputDict], ) -> DescribeHostReservationsOutput: """ Describes reservations that are associated with Dedicated Hosts in your account. Args: - input: - An instance of `DescribeHostReservationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11365,12 +17346,33 @@ def describe_host_reservations( Returns: An instance of `DescribeHostReservationsOutput`. """ - return self._invoke(input, _models.DESCRIBE_HOST_RESERVATIONS, [], plugins) + def describe_host_reservations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeHostReservationsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_HOST_RESERVATIONS, args, kwargs), + _models.DESCRIBE_HOST_RESERVATIONS, + [], + plugins, + ) + + @_overload + def describe_hosts( + self, + request: _models.DescribeHostsInput | _models.DescribeHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeHostsOutput: ... + + @_overload def describe_hosts( self, - input: DescribeHostsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeHostsInputDict], ) -> DescribeHostsOutput: """ Describes the specified Dedicated Hosts or all your Dedicated Hosts. @@ -11381,8 +17383,6 @@ def describe_hosts( the state `released`. Args: - input: - An instance of `DescribeHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11392,19 +17392,39 @@ def describe_hosts( Returns: An instance of `DescribeHostsOutput`. """ - return self._invoke(input, _models.DESCRIBE_HOSTS, [], plugins) + def describe_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeHostsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_HOSTS, args, kwargs), + _models.DESCRIBE_HOSTS, + [], + plugins, + ) + + @_overload + def describe_iam_instance_profile_associations( + self, + request: _models.DescribeIamInstanceProfileAssociationsInput + | _models.DescribeIamInstanceProfileAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIamInstanceProfileAssociationsOutput: ... + + @_overload def describe_iam_instance_profile_associations( self, - input: DescribeIamInstanceProfileAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIamInstanceProfileAssociationsInputDict], ) -> DescribeIamInstanceProfileAssociationsOutput: """ Describes your IAM instance profile associations. Args: - input: - An instance of `DescribeIamInstanceProfileAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11414,12 +17434,36 @@ def describe_iam_instance_profile_associations( Returns: An instance of `DescribeIamInstanceProfileAssociationsOutput`. """ + + def describe_iam_instance_profile_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIamInstanceProfileAssociationsOutput: return self._invoke( - input, _models.DESCRIBE_IAM_INSTANCE_PROFILE_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_IAM_INSTANCE_PROFILE_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_IAM_INSTANCE_PROFILE_ASSOCIATIONS, + [], + plugins, ) + @_overload + def describe_identity_id_format( + self, + request: _models.DescribeIdentityIdFormatInput + | _models.DescribeIdentityIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIdentityIdFormatOutput: ... + + @_overload def describe_identity_id_format( - self, input: DescribeIdentityIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIdentityIdFormatInputDict], ) -> DescribeIdentityIdFormatOutput: """ Describes the ID format settings for resources for the specified IAM @@ -11447,8 +17491,6 @@ def describe_identity_id_format( not apply to the principal that makes the request. Args: - input: - An instance of `DescribeIdentityIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11458,12 +17500,33 @@ def describe_identity_id_format( Returns: An instance of `DescribeIdentityIdFormatOutput`. """ - return self._invoke(input, _models.DESCRIBE_IDENTITY_ID_FORMAT, [], plugins) + def describe_identity_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIdentityIdFormatOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IDENTITY_ID_FORMAT, args, kwargs), + _models.DESCRIBE_IDENTITY_ID_FORMAT, + [], + plugins, + ) + + @_overload + def describe_id_format( + self, + request: _models.DescribeIdFormatInput | _models.DescribeIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIdFormatOutput: ... + + @_overload def describe_id_format( self, - input: DescribeIdFormatInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIdFormatInputDict], ) -> DescribeIdFormatOutput: """ Describes the ID format settings for your resources on a per-Region @@ -11493,8 +17556,6 @@ def describe_id_format( relevant `Describe` command for the resource type. Args: - input: - An instance of `DescribeIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11504,10 +17565,34 @@ def describe_id_format( Returns: An instance of `DescribeIdFormatOutput`. """ - return self._invoke(input, _models.DESCRIBE_ID_FORMAT, [], plugins) + def describe_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIdFormatOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ID_FORMAT, args, kwargs), + _models.DESCRIBE_ID_FORMAT, + [], + plugins, + ) + + @_overload + def describe_image_attribute( + self, + request: _models.DescribeImageAttributeInput + | _models.DescribeImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImageAttributeOutput: ... + + @_overload def describe_image_attribute( - self, input: DescribeImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImageAttributeInputDict], ) -> DescribeImageAttributeOutput: """ Describes the specified attribute of the specified AMI. You can specify @@ -11519,8 +17604,6 @@ def describe_image_attribute( appear in a particular order. Args: - input: - An instance of `DescribeImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11530,10 +17613,34 @@ def describe_image_attribute( Returns: An instance of `DescribeImageAttributeOutput`. """ - return self._invoke(input, _models.DESCRIBE_IMAGE_ATTRIBUTE, [], plugins) + def describe_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImageAttributeOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IMAGE_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def describe_image_references( + self, + request: _models.DescribeImageReferencesInput + | _models.DescribeImageReferencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImageReferencesOutput: ... + + @_overload def describe_image_references( - self, input: DescribeImageReferencesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImageReferencesInputDict], ) -> DescribeImageReferencesOutput: """ Describes your Amazon Web Services resources that are referencing the @@ -11544,8 +17651,6 @@ def describe_image_references( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeImageReferencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11555,12 +17660,33 @@ def describe_image_references( Returns: An instance of `DescribeImageReferencesOutput`. """ - return self._invoke(input, _models.DESCRIBE_IMAGE_REFERENCES, [], plugins) + def describe_image_references( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImageReferencesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IMAGE_REFERENCES, args, kwargs), + _models.DESCRIBE_IMAGE_REFERENCES, + [], + plugins, + ) + + @_overload + def describe_images( + self, + request: _models.DescribeImagesInput | _models.DescribeImagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImagesOutput: ... + + @_overload def describe_images( self, - input: DescribeImagesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImagesInputDict], ) -> DescribeImagesOutput: """ Describes the specified images (AMIs, AKIs, and ARIs) available to you @@ -11600,8 +17726,6 @@ def describe_images( appear in a particular order. Args: - input: - An instance of `DescribeImagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11611,12 +17735,34 @@ def describe_images( Returns: An instance of `DescribeImagesOutput`. """ - return self._invoke(input, _models.DESCRIBE_IMAGES, [], plugins) + def describe_images( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImagesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IMAGES, args, kwargs), + _models.DESCRIBE_IMAGES, + [], + plugins, + ) + + @_overload + def describe_image_usage_report_entries( + self, + request: _models.DescribeImageUsageReportEntriesInput + | _models.DescribeImageUsageReportEntriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImageUsageReportEntriesOutput: ... + + @_overload def describe_image_usage_report_entries( self, - input: DescribeImageUsageReportEntriesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImageUsageReportEntriesInputDict], ) -> DescribeImageUsageReportEntriesOutput: """ Describes the entries in image usage reports, showing how your images @@ -11627,8 +17773,6 @@ def describe_image_usage_report_entries( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeImageUsageReportEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11638,14 +17782,36 @@ def describe_image_usage_report_entries( Returns: An instance of `DescribeImageUsageReportEntriesOutput`. """ + + def describe_image_usage_report_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImageUsageReportEntriesOutput: return self._invoke( - input, _models.DESCRIBE_IMAGE_USAGE_REPORT_ENTRIES, [], plugins + self._select_input( + _models.DESCRIBE_IMAGE_USAGE_REPORT_ENTRIES, args, kwargs + ), + _models.DESCRIBE_IMAGE_USAGE_REPORT_ENTRIES, + [], + plugins, ) + @_overload + def describe_image_usage_reports( + self, + request: _models.DescribeImageUsageReportsInput + | _models.DescribeImageUsageReportsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImageUsageReportsOutput: ... + + @_overload def describe_image_usage_reports( self, - input: DescribeImageUsageReportsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImageUsageReportsInputDict], ) -> DescribeImageUsageReportsOutput: """ Describes the configuration and status of image usage reports, filtered @@ -11656,8 +17822,6 @@ def describe_image_usage_reports( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeImageUsageReportsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11667,20 +17831,40 @@ def describe_image_usage_reports( Returns: An instance of `DescribeImageUsageReportsOutput`. """ - return self._invoke(input, _models.DESCRIBE_IMAGE_USAGE_REPORTS, [], plugins) + def describe_image_usage_reports( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImageUsageReportsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IMAGE_USAGE_REPORTS, args, kwargs), + _models.DESCRIBE_IMAGE_USAGE_REPORTS, + [], + plugins, + ) + + @_overload + def describe_import_image_tasks( + self, + request: _models.DescribeImportImageTasksInput + | _models.DescribeImportImageTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImportImageTasksOutput: ... + + @_overload def describe_import_image_tasks( self, - input: DescribeImportImageTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImportImageTasksInputDict], ) -> DescribeImportImageTasksOutput: """ Displays details about an import virtual machine or import snapshot tasks that are already created. Args: - input: - An instance of `DescribeImportImageTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11690,19 +17874,39 @@ def describe_import_image_tasks( Returns: An instance of `DescribeImportImageTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_IMPORT_IMAGE_TASKS, [], plugins) + def describe_import_image_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImportImageTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IMPORT_IMAGE_TASKS, args, kwargs), + _models.DESCRIBE_IMPORT_IMAGE_TASKS, + [], + plugins, + ) + + @_overload + def describe_import_snapshot_tasks( + self, + request: _models.DescribeImportSnapshotTasksInput + | _models.DescribeImportSnapshotTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeImportSnapshotTasksOutput: ... + + @_overload def describe_import_snapshot_tasks( self, - input: DescribeImportSnapshotTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeImportSnapshotTasksInputDict], ) -> DescribeImportSnapshotTasksOutput: """ Describes your import snapshot tasks. Args: - input: - An instance of `DescribeImportSnapshotTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11712,10 +17916,34 @@ def describe_import_snapshot_tasks( Returns: An instance of `DescribeImportSnapshotTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_IMPORT_SNAPSHOT_TASKS, [], plugins) + def describe_import_snapshot_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeImportSnapshotTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IMPORT_SNAPSHOT_TASKS, args, kwargs), + _models.DESCRIBE_IMPORT_SNAPSHOT_TASKS, + [], + plugins, + ) + + @_overload + def describe_instance_attribute( + self, + request: _models.DescribeInstanceAttributeInput + | _models.DescribeInstanceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceAttributeOutput: ... + + @_overload def describe_instance_attribute( - self, input: DescribeInstanceAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceAttributeInputDict], ) -> DescribeInstanceAttributeOutput: """ Describes the specified attribute of the specified instance. You can @@ -11724,8 +17952,6 @@ def describe_instance_attribute( service. Args: - input: - An instance of `DescribeInstanceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11735,20 +17961,40 @@ def describe_instance_attribute( Returns: An instance of `DescribeInstanceAttributeOutput`. """ - return self._invoke(input, _models.DESCRIBE_INSTANCE_ATTRIBUTE, [], plugins) + def describe_instance_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceAttributeOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INSTANCE_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_INSTANCE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def describe_instance_connect_endpoints( + self, + request: _models.DescribeInstanceConnectEndpointsInput + | _models.DescribeInstanceConnectEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceConnectEndpointsOutput: ... + + @_overload def describe_instance_connect_endpoints( self, - input: DescribeInstanceConnectEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceConnectEndpointsInputDict], ) -> DescribeInstanceConnectEndpointsOutput: """ Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints. Args: - input: - An instance of `DescribeInstanceConnectEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11758,14 +18004,36 @@ def describe_instance_connect_endpoints( Returns: An instance of `DescribeInstanceConnectEndpointsOutput`. """ + + def describe_instance_connect_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceConnectEndpointsOutput: return self._invoke( - input, _models.DESCRIBE_INSTANCE_CONNECT_ENDPOINTS, [], plugins + self._select_input( + _models.DESCRIBE_INSTANCE_CONNECT_ENDPOINTS, args, kwargs + ), + _models.DESCRIBE_INSTANCE_CONNECT_ENDPOINTS, + [], + plugins, ) + @_overload + def describe_instance_credit_specifications( + self, + request: _models.DescribeInstanceCreditSpecificationsInput + | _models.DescribeInstanceCreditSpecificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceCreditSpecificationsOutput: ... + + @_overload def describe_instance_credit_specifications( self, - input: DescribeInstanceCreditSpecificationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceCreditSpecificationsInputDict], ) -> DescribeInstanceCreditSpecificationsOutput: """ Describes the credit option for CPU usage of the specified burstable @@ -11797,8 +18065,6 @@ def describe_instance_credit_specifications( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeInstanceCreditSpecificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11808,22 +18074,42 @@ def describe_instance_credit_specifications( Returns: An instance of `DescribeInstanceCreditSpecificationsOutput`. """ + + def describe_instance_credit_specifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceCreditSpecificationsOutput: return self._invoke( - input, _models.DESCRIBE_INSTANCE_CREDIT_SPECIFICATIONS, [], plugins + self._select_input( + _models.DESCRIBE_INSTANCE_CREDIT_SPECIFICATIONS, args, kwargs + ), + _models.DESCRIBE_INSTANCE_CREDIT_SPECIFICATIONS, + [], + plugins, ) + @_overload + def describe_instance_event_notification_attributes( + self, + request: _models.DescribeInstanceEventNotificationAttributesInput + | _models.DescribeInstanceEventNotificationAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceEventNotificationAttributesOutput: ... + + @_overload def describe_instance_event_notification_attributes( self, - input: DescribeInstanceEventNotificationAttributesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceEventNotificationAttributesInputDict], ) -> DescribeInstanceEventNotificationAttributesOutput: """ Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region. Args: - input: - An instance of `DescribeInstanceEventNotificationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11833,14 +18119,36 @@ def describe_instance_event_notification_attributes( Returns: An instance of `DescribeInstanceEventNotificationAttributesOutput`. """ + + def describe_instance_event_notification_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceEventNotificationAttributesOutput: return self._invoke( - input, _models.DESCRIBE_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, [], plugins + self._select_input( + _models.DESCRIBE_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, args, kwargs + ), + _models.DESCRIBE_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, + [], + plugins, ) + @_overload + def describe_instance_event_windows( + self, + request: _models.DescribeInstanceEventWindowsInput + | _models.DescribeInstanceEventWindowsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceEventWindowsOutput: ... + + @_overload def describe_instance_event_windows( self, - input: DescribeInstanceEventWindowsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceEventWindowsInputDict], ) -> DescribeInstanceEventWindowsOutput: """ Describes the specified event windows or all event windows. @@ -11858,8 +18166,6 @@ def describe_instance_event_windows( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeInstanceEventWindowsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11869,12 +18175,34 @@ def describe_instance_event_windows( Returns: An instance of `DescribeInstanceEventWindowsOutput`. """ - return self._invoke(input, _models.DESCRIBE_INSTANCE_EVENT_WINDOWS, [], plugins) + def describe_instance_event_windows( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceEventWindowsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INSTANCE_EVENT_WINDOWS, args, kwargs), + _models.DESCRIBE_INSTANCE_EVENT_WINDOWS, + [], + plugins, + ) + + @_overload + def describe_instance_image_metadata( + self, + request: _models.DescribeInstanceImageMetadataInput + | _models.DescribeInstanceImageMetadataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceImageMetadataOutput: ... + + @_overload def describe_instance_image_metadata( self, - input: DescribeInstanceImageMetadataInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceImageMetadataInputDict], ) -> DescribeInstanceImageMetadataOutput: """ Describes the AMI that was used to launch an instance, even if the AMI @@ -11906,8 +18234,6 @@ def describe_instance_image_metadata( appear in a particular order. Args: - input: - An instance of `DescribeInstanceImageMetadataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11917,14 +18243,33 @@ def describe_instance_image_metadata( Returns: An instance of `DescribeInstanceImageMetadataOutput`. """ + + def describe_instance_image_metadata( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceImageMetadataOutput: return self._invoke( - input, _models.DESCRIBE_INSTANCE_IMAGE_METADATA, [], plugins + self._select_input(_models.DESCRIBE_INSTANCE_IMAGE_METADATA, args, kwargs), + _models.DESCRIBE_INSTANCE_IMAGE_METADATA, + [], + plugins, ) + @_overload def describe_instances( self, - input: DescribeInstancesInput | None = None, + request: _models.DescribeInstancesInput | _models.DescribeInstancesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeInstancesOutput: ... + + @_overload + def describe_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstancesInputDict], ) -> DescribeInstancesOutput: """ Describes the specified instances or all instances. @@ -11971,8 +18316,6 @@ def describe_instances( appear in a particular order. Args: - input: - An instance of `DescribeInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -11982,12 +18325,34 @@ def describe_instances( Returns: An instance of `DescribeInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_INSTANCES, [], plugins) + def describe_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INSTANCES, args, kwargs), + _models.DESCRIBE_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_instance_sql_ha_history_states( + self, + request: _models.DescribeInstanceSqlHaHistoryStatesInput + | _models.DescribeInstanceSqlHaHistoryStatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceSqlHaHistoryStatesOutput: ... + + @_overload def describe_instance_sql_ha_history_states( self, - input: DescribeInstanceSqlHaHistoryStatesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceSqlHaHistoryStatesInputDict], ) -> DescribeInstanceSqlHaHistoryStatesOutput: """ Describes the historical SQL Server High Availability states for Amazon @@ -11995,8 +18360,6 @@ def describe_instance_sql_ha_history_states( Server monitoring. Args: - input: - An instance of `DescribeInstanceSqlHaHistoryStatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12006,14 +18369,36 @@ def describe_instance_sql_ha_history_states( Returns: An instance of `DescribeInstanceSqlHaHistoryStatesOutput`. """ + + def describe_instance_sql_ha_history_states( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceSqlHaHistoryStatesOutput: return self._invoke( - input, _models.DESCRIBE_INSTANCE_SQL_HA_HISTORY_STATES, [], plugins + self._select_input( + _models.DESCRIBE_INSTANCE_SQL_HA_HISTORY_STATES, args, kwargs + ), + _models.DESCRIBE_INSTANCE_SQL_HA_HISTORY_STATES, + [], + plugins, ) + @_overload + def describe_instance_sql_ha_states( + self, + request: _models.DescribeInstanceSqlHaStatesInput + | _models.DescribeInstanceSqlHaStatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceSqlHaStatesOutput: ... + + @_overload def describe_instance_sql_ha_states( self, - input: DescribeInstanceSqlHaStatesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceSqlHaStatesInputDict], ) -> DescribeInstanceSqlHaStatesOutput: """ Describes the SQL Server High Availability states for Amazon EC2 @@ -12021,8 +18406,6 @@ def describe_instance_sql_ha_states( Server monitoring. Args: - input: - An instance of `DescribeInstanceSqlHaStatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12032,12 +18415,34 @@ def describe_instance_sql_ha_states( Returns: An instance of `DescribeInstanceSqlHaStatesOutput`. """ - return self._invoke(input, _models.DESCRIBE_INSTANCE_SQL_HA_STATES, [], plugins) + def describe_instance_sql_ha_states( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceSqlHaStatesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INSTANCE_SQL_HA_STATES, args, kwargs), + _models.DESCRIBE_INSTANCE_SQL_HA_STATES, + [], + plugins, + ) + + @_overload + def describe_instance_status( + self, + request: _models.DescribeInstanceStatusInput + | _models.DescribeInstanceStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceStatusOutput: ... + + @_overload def describe_instance_status( self, - input: DescribeInstanceStatusInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceStatusInputDict], ) -> DescribeInstanceStatusOutput: """ Describes the status of the specified instances or all of your @@ -12085,8 +18490,6 @@ def describe_instance_status( appear in a particular order. Args: - input: - An instance of `DescribeInstanceStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12096,12 +18499,34 @@ def describe_instance_status( Returns: An instance of `DescribeInstanceStatusOutput`. """ - return self._invoke(input, _models.DESCRIBE_INSTANCE_STATUS, [], plugins) + def describe_instance_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceStatusOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INSTANCE_STATUS, args, kwargs), + _models.DESCRIBE_INSTANCE_STATUS, + [], + plugins, + ) + + @_overload + def describe_instance_topology( + self, + request: _models.DescribeInstanceTopologyInput + | _models.DescribeInstanceTopologyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceTopologyOutput: ... + + @_overload def describe_instance_topology( self, - input: DescribeInstanceTopologyInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceTopologyInputDict], ) -> DescribeInstanceTopologyOutput: """ Describes a tree-based hierarchy that represents the physical host @@ -12131,8 +18556,6 @@ def describe_instance_topology( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeInstanceTopologyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12142,12 +18565,34 @@ def describe_instance_topology( Returns: An instance of `DescribeInstanceTopologyOutput`. """ - return self._invoke(input, _models.DESCRIBE_INSTANCE_TOPOLOGY, [], plugins) + def describe_instance_topology( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceTopologyOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INSTANCE_TOPOLOGY, args, kwargs), + _models.DESCRIBE_INSTANCE_TOPOLOGY, + [], + plugins, + ) + + @_overload + def describe_instance_type_offerings( + self, + request: _models.DescribeInstanceTypeOfferingsInput + | _models.DescribeInstanceTypeOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceTypeOfferingsOutput: ... + + @_overload def describe_instance_type_offerings( self, - input: DescribeInstanceTypeOfferingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceTypeOfferingsInputDict], ) -> DescribeInstanceTypeOfferingsOutput: """ Lists the instance types that are offered for the specified location. If @@ -12155,8 +18600,6 @@ def describe_instance_type_offerings( are offered in the current Region. Args: - input: - An instance of `DescribeInstanceTypeOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12166,14 +18609,34 @@ def describe_instance_type_offerings( Returns: An instance of `DescribeInstanceTypeOfferingsOutput`. """ + + def describe_instance_type_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceTypeOfferingsOutput: return self._invoke( - input, _models.DESCRIBE_INSTANCE_TYPE_OFFERINGS, [], plugins + self._select_input(_models.DESCRIBE_INSTANCE_TYPE_OFFERINGS, args, kwargs), + _models.DESCRIBE_INSTANCE_TYPE_OFFERINGS, + [], + plugins, ) + @_overload + def describe_instance_types( + self, + request: _models.DescribeInstanceTypesInput + | _models.DescribeInstanceTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInstanceTypesOutput: ... + + @_overload def describe_instance_types( self, - input: DescribeInstanceTypesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInstanceTypesInputDict], ) -> DescribeInstanceTypesOutput: """ Describes the specified instance types. By default, all instance types @@ -12182,8 +18645,6 @@ def describe_instance_types( Region, set `IncludeUnsupportedInRegion` to `true`. Args: - input: - An instance of `DescribeInstanceTypesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12193,12 +18654,34 @@ def describe_instance_types( Returns: An instance of `DescribeInstanceTypesOutput`. """ - return self._invoke(input, _models.DESCRIBE_INSTANCE_TYPES, [], plugins) + def describe_instance_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInstanceTypesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INSTANCE_TYPES, args, kwargs), + _models.DESCRIBE_INSTANCE_TYPES, + [], + plugins, + ) + + @_overload + def describe_internet_gateways( + self, + request: _models.DescribeInternetGatewaysInput + | _models.DescribeInternetGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeInternetGatewaysOutput: ... + + @_overload def describe_internet_gateways( self, - input: DescribeInternetGatewaysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeInternetGatewaysInputDict], ) -> DescribeInternetGatewaysOutput: """ Describes your internet gateways. The default is to describe all your @@ -12207,8 +18690,6 @@ def describe_internet_gateways( that match specific criteria. Args: - input: - An instance of `DescribeInternetGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12218,12 +18699,33 @@ def describe_internet_gateways( Returns: An instance of `DescribeInternetGatewaysOutput`. """ - return self._invoke(input, _models.DESCRIBE_INTERNET_GATEWAYS, [], plugins) + def describe_internet_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeInternetGatewaysOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INTERNET_GATEWAYS, args, kwargs), + _models.DESCRIBE_INTERNET_GATEWAYS, + [], + plugins, + ) + + @_overload + def describe_ipam_byoasn( + self, + request: _models.DescribeIpamByoasnInput | _models.DescribeIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamByoasnOutput: ... + + @_overload def describe_ipam_byoasn( self, - input: DescribeIpamByoasnInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamByoasnInputDict], ) -> DescribeIpamByoasnOutput: """ Describes your Autonomous System Numbers (ASNs), their provisioning @@ -12233,8 +18735,6 @@ def describe_ipam_byoasn( in the *Amazon VPC IPAM guide*. Args: - input: - An instance of `DescribeIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12244,12 +18744,36 @@ def describe_ipam_byoasn( Returns: An instance of `DescribeIpamByoasnOutput`. """ - return self._invoke(input, _models.DESCRIBE_IPAM_BYOASN, [], plugins) + def describe_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamByoasnOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IPAM_BYOASN, args, kwargs), + _models.DESCRIBE_IPAM_BYOASN, + [], + plugins, + ) + + @_overload + def describe_ipam_external_resource_verification_tokens( + self, + request: _models.DescribeIpamExternalResourceVerificationTokensInput + | _models.DescribeIpamExternalResourceVerificationTokensInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamExternalResourceVerificationTokensOutput: ... + + @_overload def describe_ipam_external_resource_verification_tokens( self, - input: DescribeIpamExternalResourceVerificationTokensInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeIpamExternalResourceVerificationTokensInputDict + ], ) -> DescribeIpamExternalResourceVerificationTokensOutput: """ Describe verification tokens. @@ -12261,8 +18785,6 @@ def describe_ipam_external_resource_verification_tokens( Services (BYOIP). Args: - input: - An instance of `DescribeIpamExternalResourceVerificationTokensInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12272,17 +18794,38 @@ def describe_ipam_external_resource_verification_tokens( Returns: An instance of `DescribeIpamExternalResourceVerificationTokensOutput`. """ + + def describe_ipam_external_resource_verification_tokens( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamExternalResourceVerificationTokensOutput: return self._invoke( - input, + self._select_input( + _models.DESCRIBE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKENS, + args, + kwargs, + ), _models.DESCRIBE_IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKENS, [], plugins, ) + @_overload + def describe_ipam_internet_registry_associations( + self, + request: _models.DescribeIpamInternetRegistryAssociationsInput + | _models.DescribeIpamInternetRegistryAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamInternetRegistryAssociationsOutput: ... + + @_overload def describe_ipam_internet_registry_associations( self, - input: DescribeIpamInternetRegistryAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamInternetRegistryAssociationsInputDict], ) -> DescribeIpamInternetRegistryAssociationsOutput: """ Describes one or more IPAM internet registry associations. We recommend @@ -12290,8 +18833,6 @@ def describe_ipam_internet_registry_associations( successfully. Args: - input: - An instance of `DescribeIpamInternetRegistryAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12301,14 +18842,36 @@ def describe_ipam_internet_registry_associations( Returns: An instance of `DescribeIpamInternetRegistryAssociationsOutput`. """ + + def describe_ipam_internet_registry_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamInternetRegistryAssociationsOutput: return self._invoke( - input, _models.DESCRIBE_IPAM_INTERNET_REGISTRY_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_INTERNET_REGISTRY_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_IPAM_INTERNET_REGISTRY_ASSOCIATIONS, + [], + plugins, ) + @_overload + def describe_ipam_policies( + self, + request: _models.DescribeIpamPoliciesInput + | _models.DescribeIpamPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamPoliciesOutput: ... + + @_overload def describe_ipam_policies( self, - input: DescribeIpamPoliciesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPoliciesInputDict], ) -> DescribeIpamPoliciesOutput: """ Describes one or more IPAM policies. @@ -12323,8 +18886,6 @@ def describe_ipam_policies( account or an entity within Amazon Web Services Organizations. Args: - input: - An instance of `DescribeIpamPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12334,12 +18895,34 @@ def describe_ipam_policies( Returns: An instance of `DescribeIpamPoliciesOutput`. """ - return self._invoke(input, _models.DESCRIBE_IPAM_POLICIES, [], plugins) + def describe_ipam_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPoliciesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IPAM_POLICIES, args, kwargs), + _models.DESCRIBE_IPAM_POLICIES, + [], + plugins, + ) + + @_overload + def describe_ipam_pool_allocations( + self, + request: _models.DescribeIpamPoolAllocationsInput + | _models.DescribeIpamPoolAllocationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamPoolAllocationsOutput: ... + + @_overload def describe_ipam_pool_allocations( self, - input: DescribeIpamPoolAllocationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPoolAllocationsInputDict], ) -> DescribeIpamPoolAllocationsOutput: """ Describes IPAM pool allocations. You can describe all allocations owned @@ -12357,8 +18940,6 @@ def describe_ipam_pool_allocations( [GetIpamPoolAllocations](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetIpamPoolAllocations.html). Args: - input: - An instance of `DescribeIpamPoolAllocationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12368,19 +18949,38 @@ def describe_ipam_pool_allocations( Returns: An instance of `DescribeIpamPoolAllocationsOutput`. """ - return self._invoke(input, _models.DESCRIBE_IPAM_POOL_ALLOCATIONS, [], plugins) + def describe_ipam_pool_allocations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPoolAllocationsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IPAM_POOL_ALLOCATIONS, args, kwargs), + _models.DESCRIBE_IPAM_POOL_ALLOCATIONS, + [], + plugins, + ) + + @_overload + def describe_ipam_pools( + self, + request: _models.DescribeIpamPoolsInput | _models.DescribeIpamPoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamPoolsOutput: ... + + @_overload def describe_ipam_pools( self, - input: DescribeIpamPoolsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPoolsInputDict], ) -> DescribeIpamPoolsOutput: """ Get information about your IPAM pools. Args: - input: - An instance of `DescribeIpamPoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12390,20 +18990,40 @@ def describe_ipam_pools( Returns: An instance of `DescribeIpamPoolsOutput`. """ - return self._invoke(input, _models.DESCRIBE_IPAM_POOLS, [], plugins) + def describe_ipam_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPoolsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IPAM_POOLS, args, kwargs), + _models.DESCRIBE_IPAM_POOLS, + [], + plugins, + ) + + @_overload def describe_ipam_prefix_list_resolvers( self, - input: DescribeIpamPrefixListResolversInput | None = None, + request: _models.DescribeIpamPrefixListResolversInput + | _models.DescribeIpamPrefixListResolversInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeIpamPrefixListResolversOutput: ... + + @_overload + def describe_ipam_prefix_list_resolvers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPrefixListResolversInputDict], ) -> DescribeIpamPrefixListResolversOutput: """ Describes one or more IPAM prefix list resolvers. Use this operation to view the configuration, status, and properties of your resolvers. Args: - input: - An instance of `DescribeIpamPrefixListResolversInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12413,22 +19033,42 @@ def describe_ipam_prefix_list_resolvers( Returns: An instance of `DescribeIpamPrefixListResolversOutput`. """ + + def describe_ipam_prefix_list_resolvers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPrefixListResolversOutput: return self._invoke( - input, _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVERS, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVERS, args, kwargs + ), + _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVERS, + [], + plugins, ) + @_overload + def describe_ipam_prefix_list_resolver_targets( + self, + request: _models.DescribeIpamPrefixListResolverTargetsInput + | _models.DescribeIpamPrefixListResolverTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamPrefixListResolverTargetsOutput: ... + + @_overload def describe_ipam_prefix_list_resolver_targets( self, - input: DescribeIpamPrefixListResolverTargetsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamPrefixListResolverTargetsInputDict], ) -> DescribeIpamPrefixListResolverTargetsOutput: """ Describes one or more IPAM prefix list resolver Targets. Use this operation to view the configuration and status of resolver targets. Args: - input: - An instance of `DescribeIpamPrefixListResolverTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12438,14 +19078,36 @@ def describe_ipam_prefix_list_resolver_targets( Returns: An instance of `DescribeIpamPrefixListResolverTargetsOutput`. """ + + def describe_ipam_prefix_list_resolver_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamPrefixListResolverTargetsOutput: return self._invoke( - input, _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVER_TARGETS, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVER_TARGETS, args, kwargs + ), + _models.DESCRIBE_IPAM_PREFIX_LIST_RESOLVER_TARGETS, + [], + plugins, ) + @_overload + def describe_ipam_resource_discoveries( + self, + request: _models.DescribeIpamResourceDiscoveriesInput + | _models.DescribeIpamResourceDiscoveriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamResourceDiscoveriesOutput: ... + + @_overload def describe_ipam_resource_discoveries( self, - input: DescribeIpamResourceDiscoveriesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamResourceDiscoveriesInputDict], ) -> DescribeIpamResourceDiscoveriesOutput: """ Describes IPAM resource discoveries. A resource discovery is an IPAM @@ -12453,8 +19115,6 @@ def describe_ipam_resource_discoveries( to the owning account. Args: - input: - An instance of `DescribeIpamResourceDiscoveriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12464,14 +19124,36 @@ def describe_ipam_resource_discoveries( Returns: An instance of `DescribeIpamResourceDiscoveriesOutput`. """ + + def describe_ipam_resource_discoveries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamResourceDiscoveriesOutput: return self._invoke( - input, _models.DESCRIBE_IPAM_RESOURCE_DISCOVERIES, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_RESOURCE_DISCOVERIES, args, kwargs + ), + _models.DESCRIBE_IPAM_RESOURCE_DISCOVERIES, + [], + plugins, ) + @_overload + def describe_ipam_resource_discovery_associations( + self, + request: _models.DescribeIpamResourceDiscoveryAssociationsInput + | _models.DescribeIpamResourceDiscoveryAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamResourceDiscoveryAssociationsOutput: ... + + @_overload def describe_ipam_resource_discovery_associations( self, - input: DescribeIpamResourceDiscoveryAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamResourceDiscoveryAssociationsInputDict], ) -> DescribeIpamResourceDiscoveryAssociationsOutput: """ Describes resource discovery association with an Amazon VPC IPAM. An @@ -12479,8 +19161,6 @@ def describe_ipam_resource_discovery_associations( associated with an IPAM.. Args: - input: - An instance of `DescribeIpamResourceDiscoveryAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12490,14 +19170,35 @@ def describe_ipam_resource_discovery_associations( Returns: An instance of `DescribeIpamResourceDiscoveryAssociationsOutput`. """ + + def describe_ipam_resource_discovery_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamResourceDiscoveryAssociationsOutput: return self._invoke( - input, _models.DESCRIBE_IPAM_RESOURCE_DISCOVERY_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_IPAM_RESOURCE_DISCOVERY_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_IPAM_RESOURCE_DISCOVERY_ASSOCIATIONS, + [], + plugins, ) + @_overload + def describe_ipams( + self, + request: _models.DescribeIpamsInput | _models.DescribeIpamsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamsOutput: ... + + @_overload def describe_ipams( self, - input: DescribeIpamsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamsInputDict], ) -> DescribeIpamsOutput: """ Get information about your IPAM pools. @@ -12507,8 +19208,6 @@ def describe_ipams( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DescribeIpamsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12518,19 +19217,38 @@ def describe_ipams( Returns: An instance of `DescribeIpamsOutput`. """ - return self._invoke(input, _models.DESCRIBE_IPAMS, [], plugins) + def describe_ipams( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IPAMS, args, kwargs), + _models.DESCRIBE_IPAMS, + [], + plugins, + ) + + @_overload + def describe_ipam_scopes( + self, + request: _models.DescribeIpamScopesInput | _models.DescribeIpamScopesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpamScopesOutput: ... + + @_overload def describe_ipam_scopes( self, - input: DescribeIpamScopesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpamScopesInputDict], ) -> DescribeIpamScopesOutput: """ Get information about your IPAM scopes. Args: - input: - An instance of `DescribeIpamScopesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12540,19 +19258,38 @@ def describe_ipam_scopes( Returns: An instance of `DescribeIpamScopesOutput`. """ - return self._invoke(input, _models.DESCRIBE_IPAM_SCOPES, [], plugins) + def describe_ipam_scopes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpamScopesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IPAM_SCOPES, args, kwargs), + _models.DESCRIBE_IPAM_SCOPES, + [], + plugins, + ) + + @_overload + def describe_ipv6_pools( + self, + request: _models.DescribeIpv6PoolsInput | _models.DescribeIpv6PoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIpv6PoolsOutput: ... + + @_overload def describe_ipv6_pools( self, - input: DescribeIpv6PoolsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIpv6PoolsInputDict], ) -> DescribeIpv6PoolsOutput: """ Describes your IPv6 address pools. Args: - input: - An instance of `DescribeIpv6PoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12562,12 +19299,33 @@ def describe_ipv6_pools( Returns: An instance of `DescribeIpv6PoolsOutput`. """ - return self._invoke(input, _models.DESCRIBE_IPV6_POOLS, [], plugins) + def describe_ipv6_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIpv6PoolsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_IPV6_POOLS, args, kwargs), + _models.DESCRIBE_IPV6_POOLS, + [], + plugins, + ) + + @_overload + def describe_key_pairs( + self, + request: _models.DescribeKeyPairsInput | _models.DescribeKeyPairsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKeyPairsOutput: ... + + @_overload def describe_key_pairs( self, - input: DescribeKeyPairsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKeyPairsInputDict], ) -> DescribeKeyPairsOutput: """ Describes the specified key pairs or all of your key pairs. @@ -12577,8 +19335,6 @@ def describe_key_pairs( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeKeyPairsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12588,19 +19344,39 @@ def describe_key_pairs( Returns: An instance of `DescribeKeyPairsOutput`. """ - return self._invoke(input, _models.DESCRIBE_KEY_PAIRS, [], plugins) + def describe_key_pairs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKeyPairsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_KEY_PAIRS, args, kwargs), + _models.DESCRIBE_KEY_PAIRS, + [], + plugins, + ) + + @_overload def describe_launch_templates( self, - input: DescribeLaunchTemplatesInput | None = None, + request: _models.DescribeLaunchTemplatesInput + | _models.DescribeLaunchTemplatesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeLaunchTemplatesOutput: ... + + @_overload + def describe_launch_templates( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLaunchTemplatesInputDict], ) -> DescribeLaunchTemplatesOutput: """ Describes one or more launch templates. Args: - input: - An instance of `DescribeLaunchTemplatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12610,12 +19386,34 @@ def describe_launch_templates( Returns: An instance of `DescribeLaunchTemplatesOutput`. """ - return self._invoke(input, _models.DESCRIBE_LAUNCH_TEMPLATES, [], plugins) + def describe_launch_templates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLaunchTemplatesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_LAUNCH_TEMPLATES, args, kwargs), + _models.DESCRIBE_LAUNCH_TEMPLATES, + [], + plugins, + ) + + @_overload + def describe_launch_template_versions( + self, + request: _models.DescribeLaunchTemplateVersionsInput + | _models.DescribeLaunchTemplateVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLaunchTemplateVersionsOutput: ... + + @_overload def describe_launch_template_versions( self, - input: DescribeLaunchTemplateVersionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLaunchTemplateVersionsInputDict], ) -> DescribeLaunchTemplateVersionsOutput: """ Describes one or more versions of a specified launch template. You can @@ -12624,8 +19422,6 @@ def describe_launch_template_versions( all the launch templates in your account. Args: - input: - An instance of `DescribeLaunchTemplateVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12635,14 +19431,34 @@ def describe_launch_template_versions( Returns: An instance of `DescribeLaunchTemplateVersionsOutput`. """ + + def describe_launch_template_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLaunchTemplateVersionsOutput: return self._invoke( - input, _models.DESCRIBE_LAUNCH_TEMPLATE_VERSIONS, [], plugins + self._select_input(_models.DESCRIBE_LAUNCH_TEMPLATE_VERSIONS, args, kwargs), + _models.DESCRIBE_LAUNCH_TEMPLATE_VERSIONS, + [], + plugins, ) + @_overload + def describe_local_gateway_route_tables( + self, + request: _models.DescribeLocalGatewayRouteTablesInput + | _models.DescribeLocalGatewayRouteTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayRouteTablesOutput: ... + + @_overload def describe_local_gateway_route_tables( self, - input: DescribeLocalGatewayRouteTablesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLocalGatewayRouteTablesInputDict], ) -> DescribeLocalGatewayRouteTablesOutput: """ Describes one or more local gateway route tables. By default, all local @@ -12650,8 +19466,6 @@ def describe_local_gateway_route_tables( results. Args: - input: - An instance of `DescribeLocalGatewayRouteTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12661,23 +19475,44 @@ def describe_local_gateway_route_tables( Returns: An instance of `DescribeLocalGatewayRouteTablesOutput`. """ + + def describe_local_gateway_route_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayRouteTablesOutput: return self._invoke( - input, _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLES, [], plugins + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLES, args, kwargs + ), + _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLES, + [], + plugins, ) + @_overload + def describe_local_gateway_route_table_virtual_interface_group_associations( + self, + request: _models.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput + | _models.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput: ... + + @_overload def describe_local_gateway_route_table_virtual_interface_group_associations( self, - input: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput - | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict + ], ) -> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput: """ Describes the associations between virtual interface groups and local gateway route tables. Args: - input: - An instance of `DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12687,25 +19522,46 @@ def describe_local_gateway_route_table_virtual_interface_group_associations( Returns: An instance of `DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput`. """ + + def describe_local_gateway_route_table_virtual_interface_group_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput: return self._invoke( - input, + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATIONS, + args, + kwargs, + ), _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLE_VIRTUAL_INTERFACE_GROUP_ASSOCIATIONS, [], plugins, ) + @_overload + def describe_local_gateway_route_table_vpc_associations( + self, + request: _models.DescribeLocalGatewayRouteTableVpcAssociationsInput + | _models.DescribeLocalGatewayRouteTableVpcAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayRouteTableVpcAssociationsOutput: ... + + @_overload def describe_local_gateway_route_table_vpc_associations( self, - input: DescribeLocalGatewayRouteTableVpcAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeLocalGatewayRouteTableVpcAssociationsInputDict + ], ) -> DescribeLocalGatewayRouteTableVpcAssociationsOutput: """ Describes the specified associations between VPCs and local gateway route tables. Args: - input: - An instance of `DescribeLocalGatewayRouteTableVpcAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12715,25 +19571,44 @@ def describe_local_gateway_route_table_vpc_associations( Returns: An instance of `DescribeLocalGatewayRouteTableVpcAssociationsOutput`. """ + + def describe_local_gateway_route_table_vpc_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayRouteTableVpcAssociationsOutput: return self._invoke( - input, + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATIONS, + args, + kwargs, + ), _models.DESCRIBE_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATIONS, [], plugins, ) + @_overload + def describe_local_gateways( + self, + request: _models.DescribeLocalGatewaysInput + | _models.DescribeLocalGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewaysOutput: ... + + @_overload def describe_local_gateways( self, - input: DescribeLocalGatewaysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLocalGatewaysInputDict], ) -> DescribeLocalGatewaysOutput: """ Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results. Args: - input: - An instance of `DescribeLocalGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12743,19 +19618,39 @@ def describe_local_gateways( Returns: An instance of `DescribeLocalGatewaysOutput`. """ - return self._invoke(input, _models.DESCRIBE_LOCAL_GATEWAYS, [], plugins) + def describe_local_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewaysOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_LOCAL_GATEWAYS, args, kwargs), + _models.DESCRIBE_LOCAL_GATEWAYS, + [], + plugins, + ) + + @_overload + def describe_local_gateway_virtual_interface_groups( + self, + request: _models.DescribeLocalGatewayVirtualInterfaceGroupsInput + | _models.DescribeLocalGatewayVirtualInterfaceGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayVirtualInterfaceGroupsOutput: ... + + @_overload def describe_local_gateway_virtual_interface_groups( self, - input: DescribeLocalGatewayVirtualInterfaceGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLocalGatewayVirtualInterfaceGroupsInputDict], ) -> DescribeLocalGatewayVirtualInterfaceGroupsOutput: """ Describes the specified local gateway virtual interface groups. Args: - input: - An instance of `DescribeLocalGatewayVirtualInterfaceGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12765,21 +19660,41 @@ def describe_local_gateway_virtual_interface_groups( Returns: An instance of `DescribeLocalGatewayVirtualInterfaceGroupsOutput`. """ + + def describe_local_gateway_virtual_interface_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayVirtualInterfaceGroupsOutput: return self._invoke( - input, _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUPS, [], plugins + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUPS, args, kwargs + ), + _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUPS, + [], + plugins, ) + @_overload + def describe_local_gateway_virtual_interfaces( + self, + request: _models.DescribeLocalGatewayVirtualInterfacesInput + | _models.DescribeLocalGatewayVirtualInterfacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLocalGatewayVirtualInterfacesOutput: ... + + @_overload def describe_local_gateway_virtual_interfaces( self, - input: DescribeLocalGatewayVirtualInterfacesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLocalGatewayVirtualInterfacesInputDict], ) -> DescribeLocalGatewayVirtualInterfacesOutput: """ Describes the specified local gateway virtual interfaces. Args: - input: - An instance of `DescribeLocalGatewayVirtualInterfacesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12789,21 +19704,41 @@ def describe_local_gateway_virtual_interfaces( Returns: An instance of `DescribeLocalGatewayVirtualInterfacesOutput`. """ + + def describe_local_gateway_virtual_interfaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLocalGatewayVirtualInterfacesOutput: return self._invoke( - input, _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACES, [], plugins + self._select_input( + _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACES, args, kwargs + ), + _models.DESCRIBE_LOCAL_GATEWAY_VIRTUAL_INTERFACES, + [], + plugins, ) + @_overload def describe_locked_snapshots( self, - input: DescribeLockedSnapshotsInput | None = None, + request: _models.DescribeLockedSnapshotsInput + | _models.DescribeLockedSnapshotsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeLockedSnapshotsOutput: ... + + @_overload + def describe_locked_snapshots( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLockedSnapshotsInputDict], ) -> DescribeLockedSnapshotsOutput: """ Describes the lock status for a snapshot. Args: - input: - An instance of `DescribeLockedSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12813,20 +19748,39 @@ def describe_locked_snapshots( Returns: An instance of `DescribeLockedSnapshotsOutput`. """ - return self._invoke(input, _models.DESCRIBE_LOCKED_SNAPSHOTS, [], plugins) + def describe_locked_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLockedSnapshotsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_LOCKED_SNAPSHOTS, args, kwargs), + _models.DESCRIBE_LOCKED_SNAPSHOTS, + [], + plugins, + ) + + @_overload + def describe_mac_hosts( + self, + request: _models.DescribeMacHostsInput | _models.DescribeMacHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeMacHostsOutput: ... + + @_overload def describe_mac_hosts( self, - input: DescribeMacHostsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeMacHostsInputDict], ) -> DescribeMacHostsOutput: """ Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts. Args: - input: - An instance of `DescribeMacHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12836,12 +19790,34 @@ def describe_mac_hosts( Returns: An instance of `DescribeMacHostsOutput`. """ - return self._invoke(input, _models.DESCRIBE_MAC_HOSTS, [], plugins) + def describe_mac_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeMacHostsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_MAC_HOSTS, args, kwargs), + _models.DESCRIBE_MAC_HOSTS, + [], + plugins, + ) + + @_overload + def describe_mac_modification_tasks( + self, + request: _models.DescribeMacModificationTasksInput + | _models.DescribeMacModificationTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeMacModificationTasksOutput: ... + + @_overload def describe_mac_modification_tasks( self, - input: DescribeMacModificationTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeMacModificationTasksInputDict], ) -> DescribeMacModificationTasksOutput: """ Describes a System Integrity Protection (SIP) modification task or @@ -12851,8 +19827,6 @@ def describe_mac_modification_tasks( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeMacModificationTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12862,20 +19836,40 @@ def describe_mac_modification_tasks( Returns: An instance of `DescribeMacModificationTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_MAC_MODIFICATION_TASKS, [], plugins) + def describe_mac_modification_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeMacModificationTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_MAC_MODIFICATION_TASKS, args, kwargs), + _models.DESCRIBE_MAC_MODIFICATION_TASKS, + [], + plugins, + ) + + @_overload + def describe_managed_prefix_lists( + self, + request: _models.DescribeManagedPrefixListsInput + | _models.DescribeManagedPrefixListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeManagedPrefixListsOutput: ... + + @_overload def describe_managed_prefix_lists( self, - input: DescribeManagedPrefixListsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeManagedPrefixListsInputDict], ) -> DescribeManagedPrefixListsOutput: """ Describes your managed prefix lists and any Amazon Web Services-managed prefix lists. Args: - input: - An instance of `DescribeManagedPrefixListsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12885,12 +19879,34 @@ def describe_managed_prefix_lists( Returns: An instance of `DescribeManagedPrefixListsOutput`. """ - return self._invoke(input, _models.DESCRIBE_MANAGED_PREFIX_LISTS, [], plugins) + def describe_managed_prefix_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeManagedPrefixListsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_MANAGED_PREFIX_LISTS, args, kwargs), + _models.DESCRIBE_MANAGED_PREFIX_LISTS, + [], + plugins, + ) + + @_overload + def describe_moving_addresses( + self, + request: _models.DescribeMovingAddressesInput + | _models.DescribeMovingAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeMovingAddressesOutput: ... + + @_overload def describe_moving_addresses( self, - input: DescribeMovingAddressesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeMovingAddressesInputDict], ) -> DescribeMovingAddressesOutput: """ Note: @@ -12901,8 +19917,6 @@ def describe_moving_addresses( information about any other Elastic IP addresses in your account. Args: - input: - An instance of `DescribeMovingAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12912,12 +19926,34 @@ def describe_moving_addresses( Returns: An instance of `DescribeMovingAddressesOutput`. """ - return self._invoke(input, _models.DESCRIBE_MOVING_ADDRESSES, [], plugins) + def describe_moving_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeMovingAddressesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_MOVING_ADDRESSES, args, kwargs), + _models.DESCRIBE_MOVING_ADDRESSES, + [], + plugins, + ) + + @_overload + def describe_nat_gateways( + self, + request: _models.DescribeNatGatewaysInput + | _models.DescribeNatGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNatGatewaysOutput: ... + + @_overload def describe_nat_gateways( self, - input: DescribeNatGatewaysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNatGatewaysInputDict], ) -> DescribeNatGatewaysOutput: """ Describes your NAT gateways. The default is to describe all your NAT @@ -12926,8 +19962,6 @@ def describe_nat_gateways( criteria. Args: - input: - An instance of `DescribeNatGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12937,12 +19971,34 @@ def describe_nat_gateways( Returns: An instance of `DescribeNatGatewaysOutput`. """ - return self._invoke(input, _models.DESCRIBE_NAT_GATEWAYS, [], plugins) + def describe_nat_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNatGatewaysOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_NAT_GATEWAYS, args, kwargs), + _models.DESCRIBE_NAT_GATEWAYS, + [], + plugins, + ) + + @_overload + def describe_network_acls( + self, + request: _models.DescribeNetworkAclsInput + | _models.DescribeNetworkAclsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkAclsOutput: ... + + @_overload def describe_network_acls( self, - input: DescribeNetworkAclsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkAclsInputDict], ) -> DescribeNetworkAclsOutput: """ Describes your network ACLs. The default is to describe all your network @@ -12955,8 +20011,6 @@ def describe_network_acls( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeNetworkAclsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12966,19 +20020,39 @@ def describe_network_acls( Returns: An instance of `DescribeNetworkAclsOutput`. """ - return self._invoke(input, _models.DESCRIBE_NETWORK_ACLS, [], plugins) + def describe_network_acls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkAclsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_NETWORK_ACLS, args, kwargs), + _models.DESCRIBE_NETWORK_ACLS, + [], + plugins, + ) + + @_overload + def describe_network_insights_access_scope_analyses( + self, + request: _models.DescribeNetworkInsightsAccessScopeAnalysesInput + | _models.DescribeNetworkInsightsAccessScopeAnalysesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInsightsAccessScopeAnalysesOutput: ... + + @_overload def describe_network_insights_access_scope_analyses( self, - input: DescribeNetworkInsightsAccessScopeAnalysesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInsightsAccessScopeAnalysesInputDict], ) -> DescribeNetworkInsightsAccessScopeAnalysesOutput: """ Describes the specified Network Access Scope analyses. Args: - input: - An instance of `DescribeNetworkInsightsAccessScopeAnalysesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -12988,21 +20062,41 @@ def describe_network_insights_access_scope_analyses( Returns: An instance of `DescribeNetworkInsightsAccessScopeAnalysesOutput`. """ + + def describe_network_insights_access_scope_analyses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInsightsAccessScopeAnalysesOutput: return self._invoke( - input, _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSES, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSES, args, kwargs + ), + _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSES, + [], + plugins, ) + @_overload + def describe_network_insights_access_scopes( + self, + request: _models.DescribeNetworkInsightsAccessScopesInput + | _models.DescribeNetworkInsightsAccessScopesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInsightsAccessScopesOutput: ... + + @_overload def describe_network_insights_access_scopes( self, - input: DescribeNetworkInsightsAccessScopesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInsightsAccessScopesInputDict], ) -> DescribeNetworkInsightsAccessScopesOutput: """ Describes the specified Network Access Scopes. Args: - input: - An instance of `DescribeNetworkInsightsAccessScopesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13012,21 +20106,41 @@ def describe_network_insights_access_scopes( Returns: An instance of `DescribeNetworkInsightsAccessScopesOutput`. """ + + def describe_network_insights_access_scopes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInsightsAccessScopesOutput: return self._invoke( - input, _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPES, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPES, args, kwargs + ), + _models.DESCRIBE_NETWORK_INSIGHTS_ACCESS_SCOPES, + [], + plugins, ) + @_overload + def describe_network_insights_analyses( + self, + request: _models.DescribeNetworkInsightsAnalysesInput + | _models.DescribeNetworkInsightsAnalysesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInsightsAnalysesOutput: ... + + @_overload def describe_network_insights_analyses( self, - input: DescribeNetworkInsightsAnalysesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInsightsAnalysesInputDict], ) -> DescribeNetworkInsightsAnalysesOutput: """ Describes one or more of your network insights analyses. Args: - input: - An instance of `DescribeNetworkInsightsAnalysesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13036,21 +20150,41 @@ def describe_network_insights_analyses( Returns: An instance of `DescribeNetworkInsightsAnalysesOutput`. """ + + def describe_network_insights_analyses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInsightsAnalysesOutput: return self._invoke( - input, _models.DESCRIBE_NETWORK_INSIGHTS_ANALYSES, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INSIGHTS_ANALYSES, args, kwargs + ), + _models.DESCRIBE_NETWORK_INSIGHTS_ANALYSES, + [], + plugins, ) + @_overload def describe_network_insights_paths( self, - input: DescribeNetworkInsightsPathsInput | None = None, + request: _models.DescribeNetworkInsightsPathsInput + | _models.DescribeNetworkInsightsPathsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInsightsPathsOutput: ... + + @_overload + def describe_network_insights_paths( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInsightsPathsInputDict], ) -> DescribeNetworkInsightsPathsOutput: """ Describes one or more of your paths. Args: - input: - An instance of `DescribeNetworkInsightsPathsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13060,20 +20194,40 @@ def describe_network_insights_paths( Returns: An instance of `DescribeNetworkInsightsPathsOutput`. """ - return self._invoke(input, _models.DESCRIBE_NETWORK_INSIGHTS_PATHS, [], plugins) + def describe_network_insights_paths( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInsightsPathsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_NETWORK_INSIGHTS_PATHS, args, kwargs), + _models.DESCRIBE_NETWORK_INSIGHTS_PATHS, + [], + plugins, + ) + + @_overload + def describe_network_interface_attribute( + self, + request: _models.DescribeNetworkInterfaceAttributeInput + | _models.DescribeNetworkInterfaceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInterfaceAttributeOutput: ... + + @_overload def describe_network_interface_attribute( self, - input: DescribeNetworkInterfaceAttributeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInterfaceAttributeInputDict], ) -> DescribeNetworkInterfaceAttributeOutput: """ Describes a network interface attribute. You can specify only one attribute at a time. Args: - input: - An instance of `DescribeNetworkInterfaceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13083,21 +20237,41 @@ def describe_network_interface_attribute( Returns: An instance of `DescribeNetworkInterfaceAttributeOutput`. """ + + def describe_network_interface_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInterfaceAttributeOutput: return self._invoke( - input, _models.DESCRIBE_NETWORK_INTERFACE_ATTRIBUTE, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INTERFACE_ATTRIBUTE, args, kwargs + ), + _models.DESCRIBE_NETWORK_INTERFACE_ATTRIBUTE, + [], + plugins, ) + @_overload + def describe_network_interface_permissions( + self, + request: _models.DescribeNetworkInterfacePermissionsInput + | _models.DescribeNetworkInterfacePermissionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInterfacePermissionsOutput: ... + + @_overload def describe_network_interface_permissions( self, - input: DescribeNetworkInterfacePermissionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInterfacePermissionsInputDict], ) -> DescribeNetworkInterfacePermissionsOutput: """ Describes the permissions for your network interfaces. Args: - input: - An instance of `DescribeNetworkInterfacePermissionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13107,14 +20281,36 @@ def describe_network_interface_permissions( Returns: An instance of `DescribeNetworkInterfacePermissionsOutput`. """ + + def describe_network_interface_permissions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInterfacePermissionsOutput: return self._invoke( - input, _models.DESCRIBE_NETWORK_INTERFACE_PERMISSIONS, [], plugins + self._select_input( + _models.DESCRIBE_NETWORK_INTERFACE_PERMISSIONS, args, kwargs + ), + _models.DESCRIBE_NETWORK_INTERFACE_PERMISSIONS, + [], + plugins, ) + @_overload + def describe_network_interfaces( + self, + request: _models.DescribeNetworkInterfacesInput + | _models.DescribeNetworkInterfacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeNetworkInterfacesOutput: ... + + @_overload def describe_network_interfaces( self, - input: DescribeNetworkInterfacesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeNetworkInterfacesInputDict], ) -> DescribeNetworkInterfacesOutput: """ Describes the specified network interfaces or all your network @@ -13130,8 +20326,6 @@ def describe_network_interfaces( requests are susceptible to throttling and timeouts. Args: - input: - An instance of `DescribeNetworkInterfacesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13141,12 +20335,34 @@ def describe_network_interfaces( Returns: An instance of `DescribeNetworkInterfacesOutput`. """ - return self._invoke(input, _models.DESCRIBE_NETWORK_INTERFACES, [], plugins) + def describe_network_interfaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeNetworkInterfacesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_NETWORK_INTERFACES, args, kwargs), + _models.DESCRIBE_NETWORK_INTERFACES, + [], + plugins, + ) + + @_overload def describe_outpost_lags( self, - input: DescribeOutpostLagsInput | None = None, + request: _models.DescribeOutpostLagsInput + | _models.DescribeOutpostLagsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeOutpostLagsOutput: ... + + @_overload + def describe_outpost_lags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOutpostLagsInputDict], ) -> DescribeOutpostLagsOutput: """ Describes the Outposts link aggregation groups (LAGs). @@ -13156,8 +20372,6 @@ def describe_outpost_lags( time. Args: - input: - An instance of `DescribeOutpostLagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13167,12 +20381,34 @@ def describe_outpost_lags( Returns: An instance of `DescribeOutpostLagsOutput`. """ - return self._invoke(input, _models.DESCRIBE_OUTPOST_LAGS, [], plugins) + def describe_outpost_lags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOutpostLagsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_OUTPOST_LAGS, args, kwargs), + _models.DESCRIBE_OUTPOST_LAGS, + [], + plugins, + ) + + @_overload + def describe_placement_groups( + self, + request: _models.DescribePlacementGroupsInput + | _models.DescribePlacementGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePlacementGroupsOutput: ... + + @_overload def describe_placement_groups( self, - input: DescribePlacementGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePlacementGroupsInputDict], ) -> DescribePlacementGroupsOutput: """ Describes the specified placement groups or all of your placement @@ -13189,8 +20425,6 @@ def describe_placement_groups( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribePlacementGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13200,12 +20434,34 @@ def describe_placement_groups( Returns: An instance of `DescribePlacementGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_PLACEMENT_GROUPS, [], plugins) + def describe_placement_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePlacementGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_PLACEMENT_GROUPS, args, kwargs), + _models.DESCRIBE_PLACEMENT_GROUPS, + [], + plugins, + ) + + @_overload + def describe_prefix_lists( + self, + request: _models.DescribePrefixListsInput + | _models.DescribePrefixListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePrefixListsOutput: ... + + @_overload def describe_prefix_lists( self, - input: DescribePrefixListsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePrefixListsInputDict], ) -> DescribePrefixListsOutput: """ Describes available Amazon Web Services services in a prefix list @@ -13213,8 +20469,6 @@ def describe_prefix_lists( service and the IP address range for the service. Args: - input: - An instance of `DescribePrefixListsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13224,12 +20478,34 @@ def describe_prefix_lists( Returns: An instance of `DescribePrefixListsOutput`. """ - return self._invoke(input, _models.DESCRIBE_PREFIX_LISTS, [], plugins) + def describe_prefix_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePrefixListsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_PREFIX_LISTS, args, kwargs), + _models.DESCRIBE_PREFIX_LISTS, + [], + plugins, + ) + + @_overload + def describe_principal_id_format( + self, + request: _models.DescribePrincipalIdFormatInput + | _models.DescribePrincipalIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePrincipalIdFormatOutput: ... + + @_overload def describe_principal_id_format( self, - input: DescribePrincipalIdFormatInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePrincipalIdFormatInputDict], ) -> DescribePrincipalIdFormatOutput: """ Describes the ID format settings for the root user and all IAM roles and @@ -13254,8 +20530,6 @@ def describe_principal_id_format( `vpc-peering-connection` | `vpn-connection` | `vpn-gateway`. Args: - input: - An instance of `DescribePrincipalIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13265,19 +20539,39 @@ def describe_principal_id_format( Returns: An instance of `DescribePrincipalIdFormatOutput`. """ - return self._invoke(input, _models.DESCRIBE_PRINCIPAL_ID_FORMAT, [], plugins) + def describe_principal_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePrincipalIdFormatOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_PRINCIPAL_ID_FORMAT, args, kwargs), + _models.DESCRIBE_PRINCIPAL_ID_FORMAT, + [], + plugins, + ) + + @_overload + def describe_public_ipv4_pools( + self, + request: _models.DescribePublicIpv4PoolsInput + | _models.DescribePublicIpv4PoolsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePublicIpv4PoolsOutput: ... + + @_overload def describe_public_ipv4_pools( self, - input: DescribePublicIpv4PoolsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePublicIpv4PoolsInputDict], ) -> DescribePublicIpv4PoolsOutput: """ Describes the specified IPv4 address pools. Args: - input: - An instance of `DescribePublicIpv4PoolsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13287,12 +20581,33 @@ def describe_public_ipv4_pools( Returns: An instance of `DescribePublicIpv4PoolsOutput`. """ - return self._invoke(input, _models.DESCRIBE_PUBLIC_IPV4_POOLS, [], plugins) + def describe_public_ipv4_pools( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePublicIpv4PoolsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_PUBLIC_IPV4_POOLS, args, kwargs), + _models.DESCRIBE_PUBLIC_IPV4_POOLS, + [], + plugins, + ) + + @_overload + def describe_regions( + self, + request: _models.DescribeRegionsInput | _models.DescribeRegionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRegionsOutput: ... + + @_overload def describe_regions( self, - input: DescribeRegionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRegionsInputDict], ) -> DescribeRegionsOutput: """ Describes the Regions that are enabled for your account, or all Regions. @@ -13312,8 +20627,6 @@ def describe_regions( appear in a particular order. Args: - input: - An instance of `DescribeRegionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13323,12 +20636,34 @@ def describe_regions( Returns: An instance of `DescribeRegionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_REGIONS, [], plugins) + def describe_regions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRegionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_REGIONS, args, kwargs), + _models.DESCRIBE_REGIONS, + [], + plugins, + ) + + @_overload + def describe_replace_root_volume_tasks( + self, + request: _models.DescribeReplaceRootVolumeTasksInput + | _models.DescribeReplaceRootVolumeTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReplaceRootVolumeTasksOutput: ... + + @_overload def describe_replace_root_volume_tasks( self, - input: DescribeReplaceRootVolumeTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReplaceRootVolumeTasksInputDict], ) -> DescribeReplaceRootVolumeTasksOutput: """ Describes a root volume replacement task. For more information, see @@ -13337,8 +20672,6 @@ def describe_replace_root_volume_tasks( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeReplaceRootVolumeTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13348,14 +20681,36 @@ def describe_replace_root_volume_tasks( Returns: An instance of `DescribeReplaceRootVolumeTasksOutput`. """ + + def describe_replace_root_volume_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReplaceRootVolumeTasksOutput: return self._invoke( - input, _models.DESCRIBE_REPLACE_ROOT_VOLUME_TASKS, [], plugins + self._select_input( + _models.DESCRIBE_REPLACE_ROOT_VOLUME_TASKS, args, kwargs + ), + _models.DESCRIBE_REPLACE_ROOT_VOLUME_TASKS, + [], + plugins, ) + @_overload + def describe_reserved_instances( + self, + request: _models.DescribeReservedInstancesInput + | _models.DescribeReservedInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedInstancesOutput: ... + + @_overload def describe_reserved_instances( self, - input: DescribeReservedInstancesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedInstancesInputDict], ) -> DescribeReservedInstancesOutput: """ Describes one or more of the Reserved Instances that you purchased. @@ -13370,8 +20725,6 @@ def describe_reserved_instances( appear in a particular order. Args: - input: - An instance of `DescribeReservedInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13381,12 +20734,34 @@ def describe_reserved_instances( Returns: An instance of `DescribeReservedInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_RESERVED_INSTANCES, [], plugins) + def describe_reserved_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_RESERVED_INSTANCES, args, kwargs), + _models.DESCRIBE_RESERVED_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_reserved_instances_listings( + self, + request: _models.DescribeReservedInstancesListingsInput + | _models.DescribeReservedInstancesListingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedInstancesListingsOutput: ... + + @_overload def describe_reserved_instances_listings( self, - input: DescribeReservedInstancesListingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedInstancesListingsInputDict], ) -> DescribeReservedInstancesListingsOutput: """ Describes your account's Reserved Instance listings in the Reserved @@ -13420,8 +20795,6 @@ def describe_reserved_instances_listings( appear in a particular order. Args: - input: - An instance of `DescribeReservedInstancesListingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13431,14 +20804,36 @@ def describe_reserved_instances_listings( Returns: An instance of `DescribeReservedInstancesListingsOutput`. """ + + def describe_reserved_instances_listings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedInstancesListingsOutput: return self._invoke( - input, _models.DESCRIBE_RESERVED_INSTANCES_LISTINGS, [], plugins + self._select_input( + _models.DESCRIBE_RESERVED_INSTANCES_LISTINGS, args, kwargs + ), + _models.DESCRIBE_RESERVED_INSTANCES_LISTINGS, + [], + plugins, ) + @_overload + def describe_reserved_instances_modifications( + self, + request: _models.DescribeReservedInstancesModificationsInput + | _models.DescribeReservedInstancesModificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedInstancesModificationsOutput: ... + + @_overload def describe_reserved_instances_modifications( self, - input: DescribeReservedInstancesModificationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedInstancesModificationsInputDict], ) -> DescribeReservedInstancesModificationsOutput: """ Describes the modifications made to your Reserved Instances. If no @@ -13456,8 +20851,6 @@ def describe_reserved_instances_modifications( appear in a particular order. Args: - input: - An instance of `DescribeReservedInstancesModificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13467,14 +20860,36 @@ def describe_reserved_instances_modifications( Returns: An instance of `DescribeReservedInstancesModificationsOutput`. """ + + def describe_reserved_instances_modifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedInstancesModificationsOutput: return self._invoke( - input, _models.DESCRIBE_RESERVED_INSTANCES_MODIFICATIONS, [], plugins + self._select_input( + _models.DESCRIBE_RESERVED_INSTANCES_MODIFICATIONS, args, kwargs + ), + _models.DESCRIBE_RESERVED_INSTANCES_MODIFICATIONS, + [], + plugins, ) + @_overload def describe_reserved_instances_offerings( self, - input: DescribeReservedInstancesOfferingsInput | None = None, + request: _models.DescribeReservedInstancesOfferingsInput + | _models.DescribeReservedInstancesOfferingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeReservedInstancesOfferingsOutput: ... + + @_overload + def describe_reserved_instances_offerings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedInstancesOfferingsInputDict], ) -> DescribeReservedInstancesOfferingsOutput: """ Describes Reserved Instance offerings that are available for purchase. @@ -13497,8 +20912,6 @@ def describe_reserved_instances_offerings( appear in a particular order. Args: - input: - An instance of `DescribeReservedInstancesOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13508,14 +20921,36 @@ def describe_reserved_instances_offerings( Returns: An instance of `DescribeReservedInstancesOfferingsOutput`. """ + + def describe_reserved_instances_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedInstancesOfferingsOutput: return self._invoke( - input, _models.DESCRIBE_RESERVED_INSTANCES_OFFERINGS, [], plugins + self._select_input( + _models.DESCRIBE_RESERVED_INSTANCES_OFFERINGS, args, kwargs + ), + _models.DESCRIBE_RESERVED_INSTANCES_OFFERINGS, + [], + plugins, ) + @_overload + def describe_route_server_endpoints( + self, + request: _models.DescribeRouteServerEndpointsInput + | _models.DescribeRouteServerEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRouteServerEndpointsOutput: ... + + @_overload def describe_route_server_endpoints( self, - input: DescribeRouteServerEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRouteServerEndpointsInputDict], ) -> DescribeRouteServerEndpointsOutput: """ Describes one or more route server endpoints. @@ -13530,8 +20965,6 @@ def describe_route_server_endpoints( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeRouteServerEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13541,12 +20974,34 @@ def describe_route_server_endpoints( Returns: An instance of `DescribeRouteServerEndpointsOutput`. """ - return self._invoke(input, _models.DESCRIBE_ROUTE_SERVER_ENDPOINTS, [], plugins) + def describe_route_server_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRouteServerEndpointsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ROUTE_SERVER_ENDPOINTS, args, kwargs), + _models.DESCRIBE_ROUTE_SERVER_ENDPOINTS, + [], + plugins, + ) + + @_overload + def describe_route_server_peers( + self, + request: _models.DescribeRouteServerPeersInput + | _models.DescribeRouteServerPeersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRouteServerPeersOutput: ... + + @_overload def describe_route_server_peers( self, - input: DescribeRouteServerPeersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRouteServerPeersInputDict], ) -> DescribeRouteServerPeersOutput: """ Describes one or more route server peers. @@ -13567,8 +21022,6 @@ def describe_route_server_peers( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeRouteServerPeersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13578,12 +21031,34 @@ def describe_route_server_peers( Returns: An instance of `DescribeRouteServerPeersOutput`. """ - return self._invoke(input, _models.DESCRIBE_ROUTE_SERVER_PEERS, [], plugins) + def describe_route_server_peers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRouteServerPeersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ROUTE_SERVER_PEERS, args, kwargs), + _models.DESCRIBE_ROUTE_SERVER_PEERS, + [], + plugins, + ) + + @_overload + def describe_route_servers( + self, + request: _models.DescribeRouteServersInput + | _models.DescribeRouteServersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRouteServersOutput: ... + + @_overload def describe_route_servers( self, - input: DescribeRouteServersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRouteServersInputDict], ) -> DescribeRouteServersOutput: """ Describes one or more route servers. @@ -13614,8 +21089,6 @@ def describe_route_servers( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeRouteServersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13625,12 +21098,34 @@ def describe_route_servers( Returns: An instance of `DescribeRouteServersOutput`. """ - return self._invoke(input, _models.DESCRIBE_ROUTE_SERVERS, [], plugins) + def describe_route_servers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRouteServersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ROUTE_SERVERS, args, kwargs), + _models.DESCRIBE_ROUTE_SERVERS, + [], + plugins, + ) + + @_overload + def describe_route_tables( + self, + request: _models.DescribeRouteTablesInput + | _models.DescribeRouteTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeRouteTablesOutput: ... + + @_overload def describe_route_tables( self, - input: DescribeRouteTablesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeRouteTablesInputDict], ) -> DescribeRouteTablesOutput: """ Describes your route tables. The default is to describe all your route @@ -13648,8 +21143,6 @@ def describe_route_tables( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeRouteTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13659,12 +21152,34 @@ def describe_route_tables( Returns: An instance of `DescribeRouteTablesOutput`. """ - return self._invoke(input, _models.DESCRIBE_ROUTE_TABLES, [], plugins) + def describe_route_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeRouteTablesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ROUTE_TABLES, args, kwargs), + _models.DESCRIBE_ROUTE_TABLES, + [], + plugins, + ) + + @_overload + def describe_scheduled_instance_availability( + self, + request: _models.DescribeScheduledInstanceAvailabilityInput + | _models.DescribeScheduledInstanceAvailabilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeScheduledInstanceAvailabilityOutput: ... + + @_overload def describe_scheduled_instance_availability( self, - input: DescribeScheduledInstanceAvailabilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeScheduledInstanceAvailabilityInputDict], ) -> DescribeScheduledInstanceAvailabilityOutput: """ Finds available schedules that meet the specified criteria. @@ -13680,8 +21195,6 @@ def describe_scheduled_instance_availability( schedule. Args: - input: - An instance of `DescribeScheduledInstanceAvailabilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13691,22 +21204,42 @@ def describe_scheduled_instance_availability( Returns: An instance of `DescribeScheduledInstanceAvailabilityOutput`. """ + + def describe_scheduled_instance_availability( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeScheduledInstanceAvailabilityOutput: return self._invoke( - input, _models.DESCRIBE_SCHEDULED_INSTANCE_AVAILABILITY, [], plugins + self._select_input( + _models.DESCRIBE_SCHEDULED_INSTANCE_AVAILABILITY, args, kwargs + ), + _models.DESCRIBE_SCHEDULED_INSTANCE_AVAILABILITY, + [], + plugins, ) + @_overload + def describe_scheduled_instances( + self, + request: _models.DescribeScheduledInstancesInput + | _models.DescribeScheduledInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeScheduledInstancesOutput: ... + + @_overload def describe_scheduled_instances( self, - input: DescribeScheduledInstancesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeScheduledInstancesInputDict], ) -> DescribeScheduledInstancesOutput: """ Describes the specified Scheduled Instances or all your Scheduled Instances. Args: - input: - An instance of `DescribeScheduledInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13716,19 +21249,39 @@ def describe_scheduled_instances( Returns: An instance of `DescribeScheduledInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_SCHEDULED_INSTANCES, [], plugins) + def describe_scheduled_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeScheduledInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SCHEDULED_INSTANCES, args, kwargs), + _models.DESCRIBE_SCHEDULED_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_secondary_interfaces( + self, + request: _models.DescribeSecondaryInterfacesInput + | _models.DescribeSecondaryInterfacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecondaryInterfacesOutput: ... + + @_overload def describe_secondary_interfaces( self, - input: DescribeSecondaryInterfacesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecondaryInterfacesInputDict], ) -> DescribeSecondaryInterfacesOutput: """ Describes one or more of your secondary interfaces. Args: - input: - An instance of `DescribeSecondaryInterfacesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13738,19 +21291,39 @@ def describe_secondary_interfaces( Returns: An instance of `DescribeSecondaryInterfacesOutput`. """ - return self._invoke(input, _models.DESCRIBE_SECONDARY_INTERFACES, [], plugins) + def describe_secondary_interfaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecondaryInterfacesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SECONDARY_INTERFACES, args, kwargs), + _models.DESCRIBE_SECONDARY_INTERFACES, + [], + plugins, + ) + + @_overload + def describe_secondary_networks( + self, + request: _models.DescribeSecondaryNetworksInput + | _models.DescribeSecondaryNetworksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecondaryNetworksOutput: ... + + @_overload def describe_secondary_networks( self, - input: DescribeSecondaryNetworksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecondaryNetworksInputDict], ) -> DescribeSecondaryNetworksOutput: """ Describes one or more secondary networks. Args: - input: - An instance of `DescribeSecondaryNetworksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13760,19 +21333,39 @@ def describe_secondary_networks( Returns: An instance of `DescribeSecondaryNetworksOutput`. """ - return self._invoke(input, _models.DESCRIBE_SECONDARY_NETWORKS, [], plugins) + def describe_secondary_networks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecondaryNetworksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SECONDARY_NETWORKS, args, kwargs), + _models.DESCRIBE_SECONDARY_NETWORKS, + [], + plugins, + ) + + @_overload + def describe_secondary_subnets( + self, + request: _models.DescribeSecondarySubnetsInput + | _models.DescribeSecondarySubnetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecondarySubnetsOutput: ... + + @_overload def describe_secondary_subnets( self, - input: DescribeSecondarySubnetsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecondarySubnetsInputDict], ) -> DescribeSecondarySubnetsOutput: """ Describes one or more of your secondary subnets. Args: - input: - An instance of `DescribeSecondarySubnetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13782,12 +21375,34 @@ def describe_secondary_subnets( Returns: An instance of `DescribeSecondarySubnetsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SECONDARY_SUBNETS, [], plugins) + def describe_secondary_subnets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecondarySubnetsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SECONDARY_SUBNETS, args, kwargs), + _models.DESCRIBE_SECONDARY_SUBNETS, + [], + plugins, + ) + + @_overload + def describe_security_group_references( + self, + request: _models.DescribeSecurityGroupReferencesInput + | _models.DescribeSecurityGroupReferencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecurityGroupReferencesOutput: ... + + @_overload def describe_security_group_references( self, - input: DescribeSecurityGroupReferencesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecurityGroupReferencesInputDict], ) -> DescribeSecurityGroupReferencesOutput: """ Describes the VPCs on the other side of a VPC peering or Transit Gateway @@ -13795,8 +21410,6 @@ def describe_security_group_references( this request. Args: - input: - An instance of `DescribeSecurityGroupReferencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13806,21 +21419,41 @@ def describe_security_group_references( Returns: An instance of `DescribeSecurityGroupReferencesOutput`. """ + + def describe_security_group_references( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecurityGroupReferencesOutput: return self._invoke( - input, _models.DESCRIBE_SECURITY_GROUP_REFERENCES, [], plugins + self._select_input( + _models.DESCRIBE_SECURITY_GROUP_REFERENCES, args, kwargs + ), + _models.DESCRIBE_SECURITY_GROUP_REFERENCES, + [], + plugins, ) + @_overload + def describe_security_group_rules( + self, + request: _models.DescribeSecurityGroupRulesInput + | _models.DescribeSecurityGroupRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecurityGroupRulesOutput: ... + + @_overload def describe_security_group_rules( self, - input: DescribeSecurityGroupRulesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecurityGroupRulesInputDict], ) -> DescribeSecurityGroupRulesOutput: """ Describes one or more of your security group rules. Args: - input: - An instance of `DescribeSecurityGroupRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13830,19 +21463,39 @@ def describe_security_group_rules( Returns: An instance of `DescribeSecurityGroupRulesOutput`. """ - return self._invoke(input, _models.DESCRIBE_SECURITY_GROUP_RULES, [], plugins) + def describe_security_group_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecurityGroupRulesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SECURITY_GROUP_RULES, args, kwargs), + _models.DESCRIBE_SECURITY_GROUP_RULES, + [], + plugins, + ) + + @_overload + def describe_security_groups( + self, + request: _models.DescribeSecurityGroupsInput + | _models.DescribeSecurityGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecurityGroupsOutput: ... + + @_overload def describe_security_groups( self, - input: DescribeSecurityGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecurityGroupsInputDict], ) -> DescribeSecurityGroupsOutput: """ Describes the specified security groups or all of your security groups. Args: - input: - An instance of `DescribeSecurityGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13852,20 +21505,40 @@ def describe_security_groups( Returns: An instance of `DescribeSecurityGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SECURITY_GROUPS, [], plugins) + def describe_security_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecurityGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SECURITY_GROUPS, args, kwargs), + _models.DESCRIBE_SECURITY_GROUPS, + [], + plugins, + ) + + @_overload + def describe_security_group_vpc_associations( + self, + request: _models.DescribeSecurityGroupVpcAssociationsInput + | _models.DescribeSecurityGroupVpcAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecurityGroupVpcAssociationsOutput: ... + + @_overload def describe_security_group_vpc_associations( self, - input: DescribeSecurityGroupVpcAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecurityGroupVpcAssociationsInputDict], ) -> DescribeSecurityGroupVpcAssociationsOutput: """ Describes security group VPC associations made with [AssociateSecurityGroupVpc](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AssociateSecurityGroupVpc.html). Args: - input: - An instance of `DescribeSecurityGroupVpcAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13875,21 +21548,41 @@ def describe_security_group_vpc_associations( Returns: An instance of `DescribeSecurityGroupVpcAssociationsOutput`. """ + + def describe_security_group_vpc_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecurityGroupVpcAssociationsOutput: return self._invoke( - input, _models.DESCRIBE_SECURITY_GROUP_VPC_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_SECURITY_GROUP_VPC_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_SECURITY_GROUP_VPC_ASSOCIATIONS, + [], + plugins, ) + @_overload + def describe_service_link_virtual_interfaces( + self, + request: _models.DescribeServiceLinkVirtualInterfacesInput + | _models.DescribeServiceLinkVirtualInterfacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeServiceLinkVirtualInterfacesOutput: ... + + @_overload def describe_service_link_virtual_interfaces( self, - input: DescribeServiceLinkVirtualInterfacesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServiceLinkVirtualInterfacesInputDict], ) -> DescribeServiceLinkVirtualInterfacesOutput: """ Describes the Outpost service link virtual interfaces. Args: - input: - An instance of `DescribeServiceLinkVirtualInterfacesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13899,12 +21592,36 @@ def describe_service_link_virtual_interfaces( Returns: An instance of `DescribeServiceLinkVirtualInterfacesOutput`. """ + + def describe_service_link_virtual_interfaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServiceLinkVirtualInterfacesOutput: return self._invoke( - input, _models.DESCRIBE_SERVICE_LINK_VIRTUAL_INTERFACES, [], plugins + self._select_input( + _models.DESCRIBE_SERVICE_LINK_VIRTUAL_INTERFACES, args, kwargs + ), + _models.DESCRIBE_SERVICE_LINK_VIRTUAL_INTERFACES, + [], + plugins, ) + @_overload + def describe_snapshot_attribute( + self, + request: _models.DescribeSnapshotAttributeInput + | _models.DescribeSnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSnapshotAttributeOutput: ... + + @_overload def describe_snapshot_attribute( - self, input: DescribeSnapshotAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSnapshotAttributeInputDict], ) -> DescribeSnapshotAttributeOutput: """ Describes the specified attribute of the specified snapshot. You can @@ -13915,8 +21632,6 @@ def describe_snapshot_attribute( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DescribeSnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -13926,12 +21641,33 @@ def describe_snapshot_attribute( Returns: An instance of `DescribeSnapshotAttributeOutput`. """ - return self._invoke(input, _models.DESCRIBE_SNAPSHOT_ATTRIBUTE, [], plugins) + def describe_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSnapshotAttributeOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SNAPSHOT_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_SNAPSHOT_ATTRIBUTE, + [], + plugins, + ) + + @_overload def describe_snapshots( self, - input: DescribeSnapshotsInput | None = None, + request: _models.DescribeSnapshotsInput | _models.DescribeSnapshotsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeSnapshotsOutput: ... + + @_overload + def describe_snapshots( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSnapshotsInputDict], ) -> DescribeSnapshotsOutput: """ Describes the specified EBS snapshots available to you or all of the EBS @@ -13989,8 +21725,6 @@ def describe_snapshots( requests are susceptible to throttling and timeouts. Args: - input: - An instance of `DescribeSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14000,19 +21734,39 @@ def describe_snapshots( Returns: An instance of `DescribeSnapshotsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SNAPSHOTS, [], plugins) + def describe_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSnapshotsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SNAPSHOTS, args, kwargs), + _models.DESCRIBE_SNAPSHOTS, + [], + plugins, + ) + + @_overload + def describe_snapshot_tier_status( + self, + request: _models.DescribeSnapshotTierStatusInput + | _models.DescribeSnapshotTierStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSnapshotTierStatusOutput: ... + + @_overload def describe_snapshot_tier_status( self, - input: DescribeSnapshotTierStatusInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSnapshotTierStatusInputDict], ) -> DescribeSnapshotTierStatusOutput: """ Describes the storage tier status of one or more Amazon EBS snapshots. Args: - input: - An instance of `DescribeSnapshotTierStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14022,12 +21776,34 @@ def describe_snapshot_tier_status( Returns: An instance of `DescribeSnapshotTierStatusOutput`. """ - return self._invoke(input, _models.DESCRIBE_SNAPSHOT_TIER_STATUS, [], plugins) + def describe_snapshot_tier_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSnapshotTierStatusOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SNAPSHOT_TIER_STATUS, args, kwargs), + _models.DESCRIBE_SNAPSHOT_TIER_STATUS, + [], + plugins, + ) + + @_overload + def describe_spot_datafeed_subscription( + self, + request: _models.DescribeSpotDatafeedSubscriptionInput + | _models.DescribeSpotDatafeedSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotDatafeedSubscriptionOutput: ... + + @_overload def describe_spot_datafeed_subscription( self, - input: DescribeSpotDatafeedSubscriptionInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotDatafeedSubscriptionInputDict], ) -> DescribeSpotDatafeedSubscriptionOutput: """ Describes the data feed for Spot Instances. For more information, see @@ -14036,8 +21812,6 @@ def describe_spot_datafeed_subscription( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeSpotDatafeedSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14047,21 +21821,41 @@ def describe_spot_datafeed_subscription( Returns: An instance of `DescribeSpotDatafeedSubscriptionOutput`. """ + + def describe_spot_datafeed_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotDatafeedSubscriptionOutput: return self._invoke( - input, _models.DESCRIBE_SPOT_DATAFEED_SUBSCRIPTION, [], plugins + self._select_input( + _models.DESCRIBE_SPOT_DATAFEED_SUBSCRIPTION, args, kwargs + ), + _models.DESCRIBE_SPOT_DATAFEED_SUBSCRIPTION, + [], + plugins, ) + @_overload + def describe_spot_fleet_instances( + self, + request: _models.DescribeSpotFleetInstancesInput + | _models.DescribeSpotFleetInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotFleetInstancesOutput: ... + + @_overload def describe_spot_fleet_instances( self, - input: DescribeSpotFleetInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotFleetInstancesInputDict], ) -> DescribeSpotFleetInstancesOutput: """ Describes the running instances for the specified Spot Fleet. Args: - input: - An instance of `DescribeSpotFleetInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14071,12 +21865,34 @@ def describe_spot_fleet_instances( Returns: An instance of `DescribeSpotFleetInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_SPOT_FLEET_INSTANCES, [], plugins) + def describe_spot_fleet_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotFleetInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SPOT_FLEET_INSTANCES, args, kwargs), + _models.DESCRIBE_SPOT_FLEET_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_spot_fleet_request_history( + self, + request: _models.DescribeSpotFleetRequestHistoryInput + | _models.DescribeSpotFleetRequestHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotFleetRequestHistoryOutput: ... + + @_overload def describe_spot_fleet_request_history( self, - input: DescribeSpotFleetRequestHistoryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotFleetRequestHistoryInputDict], ) -> DescribeSpotFleetRequestHistoryOutput: """ Describes the events for the specified Spot Fleet request during the @@ -14092,8 +21908,6 @@ def describe_spot_fleet_request_history( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeSpotFleetRequestHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14103,14 +21917,36 @@ def describe_spot_fleet_request_history( Returns: An instance of `DescribeSpotFleetRequestHistoryOutput`. """ + + def describe_spot_fleet_request_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotFleetRequestHistoryOutput: return self._invoke( - input, _models.DESCRIBE_SPOT_FLEET_REQUEST_HISTORY, [], plugins + self._select_input( + _models.DESCRIBE_SPOT_FLEET_REQUEST_HISTORY, args, kwargs + ), + _models.DESCRIBE_SPOT_FLEET_REQUEST_HISTORY, + [], + plugins, ) + @_overload + def describe_spot_fleet_requests( + self, + request: _models.DescribeSpotFleetRequestsInput + | _models.DescribeSpotFleetRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotFleetRequestsOutput: ... + + @_overload def describe_spot_fleet_requests( self, - input: DescribeSpotFleetRequestsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotFleetRequestsInputDict], ) -> DescribeSpotFleetRequestsOutput: """ Describes your Spot Fleet requests. @@ -14119,8 +21955,6 @@ def describe_spot_fleet_requests( their instances are terminated. Args: - input: - An instance of `DescribeSpotFleetRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14130,12 +21964,34 @@ def describe_spot_fleet_requests( Returns: An instance of `DescribeSpotFleetRequestsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SPOT_FLEET_REQUESTS, [], plugins) + def describe_spot_fleet_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotFleetRequestsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SPOT_FLEET_REQUESTS, args, kwargs), + _models.DESCRIBE_SPOT_FLEET_REQUESTS, + [], + plugins, + ) + + @_overload + def describe_spot_instance_requests( + self, + request: _models.DescribeSpotInstanceRequestsInput + | _models.DescribeSpotInstanceRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotInstanceRequestsOutput: ... + + @_overload def describe_spot_instance_requests( self, - input: DescribeSpotInstanceRequestsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotInstanceRequestsInputDict], ) -> DescribeSpotInstanceRequestsOutput: """ Describes the specified Spot Instance requests. @@ -14160,8 +22016,6 @@ def describe_spot_instance_requests( and their instances are terminated. Args: - input: - An instance of `DescribeSpotInstanceRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14171,12 +22025,34 @@ def describe_spot_instance_requests( Returns: An instance of `DescribeSpotInstanceRequestsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SPOT_INSTANCE_REQUESTS, [], plugins) + def describe_spot_instance_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotInstanceRequestsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SPOT_INSTANCE_REQUESTS, args, kwargs), + _models.DESCRIBE_SPOT_INSTANCE_REQUESTS, + [], + plugins, + ) + + @_overload + def describe_spot_price_history( + self, + request: _models.DescribeSpotPriceHistoryInput + | _models.DescribeSpotPriceHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSpotPriceHistoryOutput: ... + + @_overload def describe_spot_price_history( self, - input: DescribeSpotPriceHistoryInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSpotPriceHistoryInputDict], ) -> DescribeSpotPriceHistoryOutput: """ Describes the Spot price history. For more information, see [Spot @@ -14190,8 +22066,6 @@ def describe_spot_price_history( the start time. Args: - input: - An instance of `DescribeSpotPriceHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14201,12 +22075,34 @@ def describe_spot_price_history( Returns: An instance of `DescribeSpotPriceHistoryOutput`. """ - return self._invoke(input, _models.DESCRIBE_SPOT_PRICE_HISTORY, [], plugins) + def describe_spot_price_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSpotPriceHistoryOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SPOT_PRICE_HISTORY, args, kwargs), + _models.DESCRIBE_SPOT_PRICE_HISTORY, + [], + plugins, + ) + + @_overload + def describe_stale_security_groups( + self, + request: _models.DescribeStaleSecurityGroupsInput + | _models.DescribeStaleSecurityGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStaleSecurityGroupsOutput: ... + + @_overload def describe_stale_security_groups( self, - input: DescribeStaleSecurityGroupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStaleSecurityGroupsInputDict], ) -> DescribeStaleSecurityGroupsOutput: """ Describes the stale security group rules for security groups referenced @@ -14221,8 +22117,6 @@ def describe_stale_security_groups( disassociated. Args: - input: - An instance of `DescribeStaleSecurityGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14232,12 +22126,34 @@ def describe_stale_security_groups( Returns: An instance of `DescribeStaleSecurityGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_STALE_SECURITY_GROUPS, [], plugins) + def describe_stale_security_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStaleSecurityGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STALE_SECURITY_GROUPS, args, kwargs), + _models.DESCRIBE_STALE_SECURITY_GROUPS, + [], + plugins, + ) + + @_overload + def describe_store_image_tasks( + self, + request: _models.DescribeStoreImageTasksInput + | _models.DescribeStoreImageTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStoreImageTasksOutput: ... + + @_overload def describe_store_image_tasks( self, - input: DescribeStoreImageTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStoreImageTasksInputDict], ) -> DescribeStoreImageTasksOutput: """ Describes the progress of the AMI store tasks. You can describe the @@ -14261,8 +22177,6 @@ def describe_store_image_tasks( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DescribeStoreImageTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14272,12 +22186,33 @@ def describe_store_image_tasks( Returns: An instance of `DescribeStoreImageTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_STORE_IMAGE_TASKS, [], plugins) + def describe_store_image_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStoreImageTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STORE_IMAGE_TASKS, args, kwargs), + _models.DESCRIBE_STORE_IMAGE_TASKS, + [], + plugins, + ) + + @_overload + def describe_subnets( + self, + request: _models.DescribeSubnetsInput | _models.DescribeSubnetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSubnetsOutput: ... + + @_overload def describe_subnets( self, - input: DescribeSubnetsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSubnetsInputDict], ) -> DescribeSubnetsOutput: """ Describes your subnets. The default is to describe all your subnets. @@ -14289,8 +22224,6 @@ def describe_subnets( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeSubnetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14300,12 +22233,33 @@ def describe_subnets( Returns: An instance of `DescribeSubnetsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SUBNETS, [], plugins) + def describe_subnets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSubnetsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SUBNETS, args, kwargs), + _models.DESCRIBE_SUBNETS, + [], + plugins, + ) + + @_overload + def describe_tags( + self, + request: _models.DescribeTagsInput | _models.DescribeTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTagsOutput: ... + + @_overload def describe_tags( self, - input: DescribeTagsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTagsInputDict], ) -> DescribeTagsOutput: """ Describes the specified tags for your EC2 resources. @@ -14323,8 +22277,6 @@ def describe_tags( appear in a particular order. Args: - input: - An instance of `DescribeTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14334,20 +22286,40 @@ def describe_tags( Returns: An instance of `DescribeTagsOutput`. """ - return self._invoke(input, _models.DESCRIBE_TAGS, [], plugins) + def describe_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTagsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TAGS, args, kwargs), + _models.DESCRIBE_TAGS, + [], + plugins, + ) + + @_overload def describe_traffic_mirror_filter_rules( self, - input: DescribeTrafficMirrorFilterRulesInput | None = None, + request: _models.DescribeTrafficMirrorFilterRulesInput + | _models.DescribeTrafficMirrorFilterRulesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeTrafficMirrorFilterRulesOutput: ... + + @_overload + def describe_traffic_mirror_filter_rules( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrafficMirrorFilterRulesInputDict], ) -> DescribeTrafficMirrorFilterRulesOutput: """ Describe traffic mirror filters that determine the traffic that is mirrored. Args: - input: - An instance of `DescribeTrafficMirrorFilterRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14357,21 +22329,41 @@ def describe_traffic_mirror_filter_rules( Returns: An instance of `DescribeTrafficMirrorFilterRulesOutput`. """ + + def describe_traffic_mirror_filter_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrafficMirrorFilterRulesOutput: return self._invoke( - input, _models.DESCRIBE_TRAFFIC_MIRROR_FILTER_RULES, [], plugins + self._select_input( + _models.DESCRIBE_TRAFFIC_MIRROR_FILTER_RULES, args, kwargs + ), + _models.DESCRIBE_TRAFFIC_MIRROR_FILTER_RULES, + [], + plugins, ) + @_overload + def describe_traffic_mirror_filters( + self, + request: _models.DescribeTrafficMirrorFiltersInput + | _models.DescribeTrafficMirrorFiltersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrafficMirrorFiltersOutput: ... + + @_overload def describe_traffic_mirror_filters( self, - input: DescribeTrafficMirrorFiltersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrafficMirrorFiltersInputDict], ) -> DescribeTrafficMirrorFiltersOutput: """ Describes one or more Traffic Mirror filters. Args: - input: - An instance of `DescribeTrafficMirrorFiltersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14381,12 +22373,34 @@ def describe_traffic_mirror_filters( Returns: An instance of `DescribeTrafficMirrorFiltersOutput`. """ - return self._invoke(input, _models.DESCRIBE_TRAFFIC_MIRROR_FILTERS, [], plugins) + def describe_traffic_mirror_filters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrafficMirrorFiltersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TRAFFIC_MIRROR_FILTERS, args, kwargs), + _models.DESCRIBE_TRAFFIC_MIRROR_FILTERS, + [], + plugins, + ) + + @_overload + def describe_traffic_mirror_sessions( + self, + request: _models.DescribeTrafficMirrorSessionsInput + | _models.DescribeTrafficMirrorSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrafficMirrorSessionsOutput: ... + + @_overload def describe_traffic_mirror_sessions( self, - input: DescribeTrafficMirrorSessionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrafficMirrorSessionsInputDict], ) -> DescribeTrafficMirrorSessionsOutput: """ Describes one or more Traffic Mirror sessions. By default, all Traffic @@ -14394,8 +22408,6 @@ def describe_traffic_mirror_sessions( results. Args: - input: - An instance of `DescribeTrafficMirrorSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14405,21 +22417,39 @@ def describe_traffic_mirror_sessions( Returns: An instance of `DescribeTrafficMirrorSessionsOutput`. """ + + def describe_traffic_mirror_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrafficMirrorSessionsOutput: return self._invoke( - input, _models.DESCRIBE_TRAFFIC_MIRROR_SESSIONS, [], plugins + self._select_input(_models.DESCRIBE_TRAFFIC_MIRROR_SESSIONS, args, kwargs), + _models.DESCRIBE_TRAFFIC_MIRROR_SESSIONS, + [], + plugins, ) + @_overload + def describe_traffic_mirror_targets( + self, + request: _models.DescribeTrafficMirrorTargetsInput + | _models.DescribeTrafficMirrorTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrafficMirrorTargetsOutput: ... + + @_overload def describe_traffic_mirror_targets( self, - input: DescribeTrafficMirrorTargetsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrafficMirrorTargetsInputDict], ) -> DescribeTrafficMirrorTargetsOutput: """ Information about one or more Traffic Mirror targets. Args: - input: - An instance of `DescribeTrafficMirrorTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14429,12 +22459,34 @@ def describe_traffic_mirror_targets( Returns: An instance of `DescribeTrafficMirrorTargetsOutput`. """ - return self._invoke(input, _models.DESCRIBE_TRAFFIC_MIRROR_TARGETS, [], plugins) + def describe_traffic_mirror_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrafficMirrorTargetsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TRAFFIC_MIRROR_TARGETS, args, kwargs), + _models.DESCRIBE_TRAFFIC_MIRROR_TARGETS, + [], + plugins, + ) + + @_overload def describe_transit_gateway_attachments( self, - input: DescribeTransitGatewayAttachmentsInput | None = None, + request: _models.DescribeTransitGatewayAttachmentsInput + | _models.DescribeTransitGatewayAttachmentsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayAttachmentsOutput: ... + + @_overload + def describe_transit_gateway_attachments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayAttachmentsInputDict], ) -> DescribeTransitGatewayAttachmentsOutput: """ Describes one or more attachments between resources and transit @@ -14443,8 +22495,6 @@ def describe_transit_gateway_attachments( or resource owner. Args: - input: - An instance of `DescribeTransitGatewayAttachmentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14454,21 +22504,41 @@ def describe_transit_gateway_attachments( Returns: An instance of `DescribeTransitGatewayAttachmentsOutput`. """ + + def describe_transit_gateway_attachments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayAttachmentsOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_ATTACHMENTS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_ATTACHMENTS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_ATTACHMENTS, + [], + plugins, ) + @_overload + def describe_transit_gateway_connect_peers( + self, + request: _models.DescribeTransitGatewayConnectPeersInput + | _models.DescribeTransitGatewayConnectPeersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayConnectPeersOutput: ... + + @_overload def describe_transit_gateway_connect_peers( self, - input: DescribeTransitGatewayConnectPeersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayConnectPeersInputDict], ) -> DescribeTransitGatewayConnectPeersOutput: """ Describes one or more Connect peers. Args: - input: - An instance of `DescribeTransitGatewayConnectPeersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14478,21 +22548,41 @@ def describe_transit_gateway_connect_peers( Returns: An instance of `DescribeTransitGatewayConnectPeersOutput`. """ + + def describe_transit_gateway_connect_peers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayConnectPeersOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_CONNECT_PEERS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_CONNECT_PEERS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_CONNECT_PEERS, + [], + plugins, ) + @_overload + def describe_transit_gateway_connects( + self, + request: _models.DescribeTransitGatewayConnectsInput + | _models.DescribeTransitGatewayConnectsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayConnectsOutput: ... + + @_overload def describe_transit_gateway_connects( self, - input: DescribeTransitGatewayConnectsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayConnectsInputDict], ) -> DescribeTransitGatewayConnectsOutput: """ Describes one or more Connect attachments. Args: - input: - An instance of `DescribeTransitGatewayConnectsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14502,21 +22592,39 @@ def describe_transit_gateway_connects( Returns: An instance of `DescribeTransitGatewayConnectsOutput`. """ + + def describe_transit_gateway_connects( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayConnectsOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_CONNECTS, [], plugins + self._select_input(_models.DESCRIBE_TRANSIT_GATEWAY_CONNECTS, args, kwargs), + _models.DESCRIBE_TRANSIT_GATEWAY_CONNECTS, + [], + plugins, ) + @_overload + def describe_transit_gateway_metering_policies( + self, + request: _models.DescribeTransitGatewayMeteringPoliciesInput + | _models.DescribeTransitGatewayMeteringPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayMeteringPoliciesOutput: ... + + @_overload def describe_transit_gateway_metering_policies( self, - input: DescribeTransitGatewayMeteringPoliciesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayMeteringPoliciesInputDict], ) -> DescribeTransitGatewayMeteringPoliciesOutput: """ Describes one or more transit gateway metering policies. Args: - input: - An instance of `DescribeTransitGatewayMeteringPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14526,21 +22634,41 @@ def describe_transit_gateway_metering_policies( Returns: An instance of `DescribeTransitGatewayMeteringPoliciesOutput`. """ + + def describe_transit_gateway_metering_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayMeteringPoliciesOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_METERING_POLICIES, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_METERING_POLICIES, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_METERING_POLICIES, + [], + plugins, ) + @_overload + def describe_transit_gateway_multicast_domains( + self, + request: _models.DescribeTransitGatewayMulticastDomainsInput + | _models.DescribeTransitGatewayMulticastDomainsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayMulticastDomainsOutput: ... + + @_overload def describe_transit_gateway_multicast_domains( self, - input: DescribeTransitGatewayMulticastDomainsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayMulticastDomainsInputDict], ) -> DescribeTransitGatewayMulticastDomainsOutput: """ Describes one or more transit gateway multicast domains. Args: - input: - An instance of `DescribeTransitGatewayMulticastDomainsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14550,21 +22678,41 @@ def describe_transit_gateway_multicast_domains( Returns: An instance of `DescribeTransitGatewayMulticastDomainsOutput`. """ + + def describe_transit_gateway_multicast_domains( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayMulticastDomainsOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_MULTICAST_DOMAINS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_MULTICAST_DOMAINS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_MULTICAST_DOMAINS, + [], + plugins, ) + @_overload + def describe_transit_gateway_peering_attachments( + self, + request: _models.DescribeTransitGatewayPeeringAttachmentsInput + | _models.DescribeTransitGatewayPeeringAttachmentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayPeeringAttachmentsOutput: ... + + @_overload def describe_transit_gateway_peering_attachments( self, - input: DescribeTransitGatewayPeeringAttachmentsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayPeeringAttachmentsInputDict], ) -> DescribeTransitGatewayPeeringAttachmentsOutput: """ Describes your transit gateway peering attachments. Args: - input: - An instance of `DescribeTransitGatewayPeeringAttachmentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14574,21 +22722,41 @@ def describe_transit_gateway_peering_attachments( Returns: An instance of `DescribeTransitGatewayPeeringAttachmentsOutput`. """ + + def describe_transit_gateway_peering_attachments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayPeeringAttachmentsOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_PEERING_ATTACHMENTS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_PEERING_ATTACHMENTS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_PEERING_ATTACHMENTS, + [], + plugins, ) + @_overload + def describe_transit_gateway_policy_tables( + self, + request: _models.DescribeTransitGatewayPolicyTablesInput + | _models.DescribeTransitGatewayPolicyTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayPolicyTablesOutput: ... + + @_overload def describe_transit_gateway_policy_tables( self, - input: DescribeTransitGatewayPolicyTablesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayPolicyTablesInputDict], ) -> DescribeTransitGatewayPolicyTablesOutput: """ Describes one or more transit gateway route policy tables. Args: - input: - An instance of `DescribeTransitGatewayPolicyTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14598,21 +22766,43 @@ def describe_transit_gateway_policy_tables( Returns: An instance of `DescribeTransitGatewayPolicyTablesOutput`. """ + + def describe_transit_gateway_policy_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayPolicyTablesOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_POLICY_TABLES, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_POLICY_TABLES, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_POLICY_TABLES, + [], + plugins, ) + @_overload + def describe_transit_gateway_route_table_announcements( + self, + request: _models.DescribeTransitGatewayRouteTableAnnouncementsInput + | _models.DescribeTransitGatewayRouteTableAnnouncementsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayRouteTableAnnouncementsOutput: ... + + @_overload def describe_transit_gateway_route_table_announcements( self, - input: DescribeTransitGatewayRouteTableAnnouncementsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeTransitGatewayRouteTableAnnouncementsInputDict + ], ) -> DescribeTransitGatewayRouteTableAnnouncementsOutput: """ Describes one or more transit gateway route table advertisements. Args: - input: - An instance of `DescribeTransitGatewayRouteTableAnnouncementsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14622,17 +22812,36 @@ def describe_transit_gateway_route_table_announcements( Returns: An instance of `DescribeTransitGatewayRouteTableAnnouncementsOutput`. """ + + def describe_transit_gateway_route_table_announcements( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayRouteTableAnnouncementsOutput: return self._invoke( - input, + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENTS, args, kwargs + ), _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLE_ANNOUNCEMENTS, [], plugins, ) + @_overload + def describe_transit_gateway_route_tables( + self, + request: _models.DescribeTransitGatewayRouteTablesInput + | _models.DescribeTransitGatewayRouteTablesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayRouteTablesOutput: ... + + @_overload def describe_transit_gateway_route_tables( self, - input: DescribeTransitGatewayRouteTablesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayRouteTablesInputDict], ) -> DescribeTransitGatewayRouteTablesOutput: """ Describes one or more transit gateway route tables. By default, all @@ -14640,8 +22849,6 @@ def describe_transit_gateway_route_tables( filter the results. Args: - input: - An instance of `DescribeTransitGatewayRouteTablesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14651,22 +22858,42 @@ def describe_transit_gateway_route_tables( Returns: An instance of `DescribeTransitGatewayRouteTablesOutput`. """ + + def describe_transit_gateway_route_tables( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayRouteTablesOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLES, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLES, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_ROUTE_TABLES, + [], + plugins, ) + @_overload + def describe_transit_gateways( + self, + request: _models.DescribeTransitGatewaysInput + | _models.DescribeTransitGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewaysOutput: ... + + @_overload def describe_transit_gateways( self, - input: DescribeTransitGatewaysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewaysInputDict], ) -> DescribeTransitGatewaysOutput: """ Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results. Args: - input: - An instance of `DescribeTransitGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14676,20 +22903,40 @@ def describe_transit_gateways( Returns: An instance of `DescribeTransitGatewaysOutput`. """ - return self._invoke(input, _models.DESCRIBE_TRANSIT_GATEWAYS, [], plugins) + def describe_transit_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewaysOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TRANSIT_GATEWAYS, args, kwargs), + _models.DESCRIBE_TRANSIT_GATEWAYS, + [], + plugins, + ) + + @_overload + def describe_transit_gateway_vpc_attachments( + self, + request: _models.DescribeTransitGatewayVpcAttachmentsInput + | _models.DescribeTransitGatewayVpcAttachmentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTransitGatewayVpcAttachmentsOutput: ... + + @_overload def describe_transit_gateway_vpc_attachments( self, - input: DescribeTransitGatewayVpcAttachmentsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTransitGatewayVpcAttachmentsInputDict], ) -> DescribeTransitGatewayVpcAttachmentsOutput: """ Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results. Args: - input: - An instance of `DescribeTransitGatewayVpcAttachmentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14699,21 +22946,41 @@ def describe_transit_gateway_vpc_attachments( Returns: An instance of `DescribeTransitGatewayVpcAttachmentsOutput`. """ + + def describe_transit_gateway_vpc_attachments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTransitGatewayVpcAttachmentsOutput: return self._invoke( - input, _models.DESCRIBE_TRANSIT_GATEWAY_VPC_ATTACHMENTS, [], plugins + self._select_input( + _models.DESCRIBE_TRANSIT_GATEWAY_VPC_ATTACHMENTS, args, kwargs + ), + _models.DESCRIBE_TRANSIT_GATEWAY_VPC_ATTACHMENTS, + [], + plugins, ) + @_overload + def describe_trunk_interface_associations( + self, + request: _models.DescribeTrunkInterfaceAssociationsInput + | _models.DescribeTrunkInterfaceAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTrunkInterfaceAssociationsOutput: ... + + @_overload def describe_trunk_interface_associations( self, - input: DescribeTrunkInterfaceAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTrunkInterfaceAssociationsInputDict], ) -> DescribeTrunkInterfaceAssociationsOutput: """ Describes one or more network interface trunk associations. Args: - input: - An instance of `DescribeTrunkInterfaceAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14723,21 +22990,41 @@ def describe_trunk_interface_associations( Returns: An instance of `DescribeTrunkInterfaceAssociationsOutput`. """ + + def describe_trunk_interface_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTrunkInterfaceAssociationsOutput: return self._invoke( - input, _models.DESCRIBE_TRUNK_INTERFACE_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_TRUNK_INTERFACE_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_TRUNK_INTERFACE_ASSOCIATIONS, + [], + plugins, ) + @_overload + def describe_verified_access_endpoints( + self, + request: _models.DescribeVerifiedAccessEndpointsInput + | _models.DescribeVerifiedAccessEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessEndpointsOutput: ... + + @_overload def describe_verified_access_endpoints( self, - input: DescribeVerifiedAccessEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVerifiedAccessEndpointsInputDict], ) -> DescribeVerifiedAccessEndpointsOutput: """ Describes the specified Amazon Web Services Verified Access endpoints. Args: - input: - An instance of `DescribeVerifiedAccessEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14747,21 +23034,41 @@ def describe_verified_access_endpoints( Returns: An instance of `DescribeVerifiedAccessEndpointsOutput`. """ + + def describe_verified_access_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessEndpointsOutput: return self._invoke( - input, _models.DESCRIBE_VERIFIED_ACCESS_ENDPOINTS, [], plugins + self._select_input( + _models.DESCRIBE_VERIFIED_ACCESS_ENDPOINTS, args, kwargs + ), + _models.DESCRIBE_VERIFIED_ACCESS_ENDPOINTS, + [], + plugins, ) + @_overload + def describe_verified_access_groups( + self, + request: _models.DescribeVerifiedAccessGroupsInput + | _models.DescribeVerifiedAccessGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessGroupsOutput: ... + + @_overload def describe_verified_access_groups( self, - input: DescribeVerifiedAccessGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVerifiedAccessGroupsInputDict], ) -> DescribeVerifiedAccessGroupsOutput: """ Describes the specified Verified Access groups. Args: - input: - An instance of `DescribeVerifiedAccessGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14771,19 +23078,41 @@ def describe_verified_access_groups( Returns: An instance of `DescribeVerifiedAccessGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_VERIFIED_ACCESS_GROUPS, [], plugins) + def describe_verified_access_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VERIFIED_ACCESS_GROUPS, args, kwargs), + _models.DESCRIBE_VERIFIED_ACCESS_GROUPS, + [], + plugins, + ) + + @_overload def describe_verified_access_instance_logging_configurations( self, - input: DescribeVerifiedAccessInstanceLoggingConfigurationsInput | None = None, + request: _models.DescribeVerifiedAccessInstanceLoggingConfigurationsInput + | _models.DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessInstanceLoggingConfigurationsOutput: ... + + @_overload + def describe_verified_access_instance_logging_configurations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict + ], ) -> DescribeVerifiedAccessInstanceLoggingConfigurationsOutput: """ Describes the specified Amazon Web Services Verified Access instances. Args: - input: - An instance of `DescribeVerifiedAccessInstanceLoggingConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14793,24 +23122,43 @@ def describe_verified_access_instance_logging_configurations( Returns: An instance of `DescribeVerifiedAccessInstanceLoggingConfigurationsOutput`. """ + + def describe_verified_access_instance_logging_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessInstanceLoggingConfigurationsOutput: return self._invoke( - input, + self._select_input( + _models.DESCRIBE_VERIFIED_ACCESS_INSTANCE_LOGGING_CONFIGURATIONS, + args, + kwargs, + ), _models.DESCRIBE_VERIFIED_ACCESS_INSTANCE_LOGGING_CONFIGURATIONS, [], plugins, ) + @_overload + def describe_verified_access_instances( + self, + request: _models.DescribeVerifiedAccessInstancesInput + | _models.DescribeVerifiedAccessInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessInstancesOutput: ... + + @_overload def describe_verified_access_instances( self, - input: DescribeVerifiedAccessInstancesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVerifiedAccessInstancesInputDict], ) -> DescribeVerifiedAccessInstancesOutput: """ Describes the specified Amazon Web Services Verified Access instances. Args: - input: - An instance of `DescribeVerifiedAccessInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14820,22 +23168,42 @@ def describe_verified_access_instances( Returns: An instance of `DescribeVerifiedAccessInstancesOutput`. """ + + def describe_verified_access_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessInstancesOutput: return self._invoke( - input, _models.DESCRIBE_VERIFIED_ACCESS_INSTANCES, [], plugins + self._select_input( + _models.DESCRIBE_VERIFIED_ACCESS_INSTANCES, args, kwargs + ), + _models.DESCRIBE_VERIFIED_ACCESS_INSTANCES, + [], + plugins, ) + @_overload def describe_verified_access_trust_providers( self, - input: DescribeVerifiedAccessTrustProvidersInput | None = None, + request: _models.DescribeVerifiedAccessTrustProvidersInput + | _models.DescribeVerifiedAccessTrustProvidersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeVerifiedAccessTrustProvidersOutput: ... + + @_overload + def describe_verified_access_trust_providers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVerifiedAccessTrustProvidersInputDict], ) -> DescribeVerifiedAccessTrustProvidersOutput: """ Describes the specified Amazon Web Services Verified Access trust providers. Args: - input: - An instance of `DescribeVerifiedAccessTrustProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14845,12 +23213,36 @@ def describe_verified_access_trust_providers( Returns: An instance of `DescribeVerifiedAccessTrustProvidersOutput`. """ + + def describe_verified_access_trust_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVerifiedAccessTrustProvidersOutput: return self._invoke( - input, _models.DESCRIBE_VERIFIED_ACCESS_TRUST_PROVIDERS, [], plugins + self._select_input( + _models.DESCRIBE_VERIFIED_ACCESS_TRUST_PROVIDERS, args, kwargs + ), + _models.DESCRIBE_VERIFIED_ACCESS_TRUST_PROVIDERS, + [], + plugins, ) + @_overload + def describe_volume_attribute( + self, + request: _models.DescribeVolumeAttributeInput + | _models.DescribeVolumeAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVolumeAttributeOutput: ... + + @_overload def describe_volume_attribute( - self, input: DescribeVolumeAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVolumeAttributeInputDict], ) -> DescribeVolumeAttributeOutput: """ Describes the specified attribute of the specified volume. You can @@ -14861,8 +23253,6 @@ def describe_volume_attribute( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DescribeVolumeAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14872,12 +23262,33 @@ def describe_volume_attribute( Returns: An instance of `DescribeVolumeAttributeOutput`. """ - return self._invoke(input, _models.DESCRIBE_VOLUME_ATTRIBUTE, [], plugins) + def describe_volume_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVolumeAttributeOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VOLUME_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_VOLUME_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def describe_volumes( + self, + request: _models.DescribeVolumesInput | _models.DescribeVolumesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVolumesOutput: ... + + @_overload def describe_volumes( self, - input: DescribeVolumesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVolumesInputDict], ) -> DescribeVolumesOutput: """ Describes the specified EBS volumes or all of your EBS volumes. @@ -14900,8 +23311,6 @@ def describe_volumes( appear in a particular order. Args: - input: - An instance of `DescribeVolumesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14911,12 +23320,34 @@ def describe_volumes( Returns: An instance of `DescribeVolumesOutput`. """ - return self._invoke(input, _models.DESCRIBE_VOLUMES, [], plugins) + def describe_volumes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVolumesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VOLUMES, args, kwargs), + _models.DESCRIBE_VOLUMES, + [], + plugins, + ) + + @_overload + def describe_volumes_modifications( + self, + request: _models.DescribeVolumesModificationsInput + | _models.DescribeVolumesModificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVolumesModificationsOutput: ... + + @_overload def describe_volumes_modifications( self, - input: DescribeVolumesModificationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVolumesModificationsInputDict], ) -> DescribeVolumesModificationsOutput: """ Describes the most recent volume modification request for the specified @@ -14927,8 +23358,6 @@ def describe_volumes_modifications( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DescribeVolumesModificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -14938,12 +23367,34 @@ def describe_volumes_modifications( Returns: An instance of `DescribeVolumesModificationsOutput`. """ - return self._invoke(input, _models.DESCRIBE_VOLUMES_MODIFICATIONS, [], plugins) + def describe_volumes_modifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVolumesModificationsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VOLUMES_MODIFICATIONS, args, kwargs), + _models.DESCRIBE_VOLUMES_MODIFICATIONS, + [], + plugins, + ) + + @_overload + def describe_volume_status( + self, + request: _models.DescribeVolumeStatusInput + | _models.DescribeVolumeStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVolumeStatusOutput: ... + + @_overload def describe_volume_status( self, - input: DescribeVolumeStatusInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVolumeStatusInputDict], ) -> DescribeVolumeStatusOutput: """ Describes the status of the specified volumes. Volume status provides @@ -14994,8 +23445,6 @@ def describe_volume_status( appear in a particular order. Args: - input: - An instance of `DescribeVolumeStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15005,18 +23454,40 @@ def describe_volume_status( Returns: An instance of `DescribeVolumeStatusOutput`. """ - return self._invoke(input, _models.DESCRIBE_VOLUME_STATUS, [], plugins) + def describe_volume_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVolumeStatusOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VOLUME_STATUS, args, kwargs), + _models.DESCRIBE_VOLUME_STATUS, + [], + plugins, + ) + + @_overload + def describe_vpc_attribute( + self, + request: _models.DescribeVpcAttributeInput + | _models.DescribeVpcAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcAttributeOutput: ... + + @_overload def describe_vpc_attribute( - self, input: DescribeVpcAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcAttributeInputDict], ) -> DescribeVpcAttributeOutput: """ Describes the specified attribute of the specified VPC. You can specify only one attribute at a time. Args: - input: - An instance of `DescribeVpcAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15026,12 +23497,34 @@ def describe_vpc_attribute( Returns: An instance of `DescribeVpcAttributeOutput`. """ - return self._invoke(input, _models.DESCRIBE_VPC_ATTRIBUTE, [], plugins) + def describe_vpc_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcAttributeOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VPC_ATTRIBUTE, args, kwargs), + _models.DESCRIBE_VPC_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def describe_vpc_block_public_access_exclusions( + self, + request: _models.DescribeVpcBlockPublicAccessExclusionsInput + | _models.DescribeVpcBlockPublicAccessExclusionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcBlockPublicAccessExclusionsOutput: ... + + @_overload def describe_vpc_block_public_access_exclusions( self, - input: DescribeVpcBlockPublicAccessExclusionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcBlockPublicAccessExclusionsInputDict], ) -> DescribeVpcBlockPublicAccessExclusionsOutput: """ Describe VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion @@ -15045,8 +23538,6 @@ def describe_vpc_block_public_access_exclusions( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeVpcBlockPublicAccessExclusionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15056,14 +23547,36 @@ def describe_vpc_block_public_access_exclusions( Returns: An instance of `DescribeVpcBlockPublicAccessExclusionsOutput`. """ + + def describe_vpc_block_public_access_exclusions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcBlockPublicAccessExclusionsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSIONS, args, kwargs + ), + _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSIONS, + [], + plugins, ) + @_overload + def describe_vpc_block_public_access_options( + self, + request: _models.DescribeVpcBlockPublicAccessOptionsInput + | _models.DescribeVpcBlockPublicAccessOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcBlockPublicAccessOptionsOutput: ... + + @_overload def describe_vpc_block_public_access_options( self, - input: DescribeVpcBlockPublicAccessOptionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcBlockPublicAccessOptionsInputDict], ) -> DescribeVpcBlockPublicAccessOptionsOutput: """ Describe VPC Block Public Access (BPA) options. VPC Block Public Access @@ -15075,8 +23588,6 @@ def describe_vpc_block_public_access_options( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeVpcBlockPublicAccessOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15086,14 +23597,36 @@ def describe_vpc_block_public_access_options( Returns: An instance of `DescribeVpcBlockPublicAccessOptionsOutput`. """ + + def describe_vpc_block_public_access_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcBlockPublicAccessOptionsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, args, kwargs + ), + _models.DESCRIBE_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, + [], + plugins, ) + @_overload + def describe_vpc_classic_link( + self, + request: _models.DescribeVpcClassicLinkInput + | _models.DescribeVpcClassicLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcClassicLinkOutput: ... + + @_overload def describe_vpc_classic_link( self, - input: DescribeVpcClassicLinkInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcClassicLinkInputDict], ) -> DescribeVpcClassicLinkOutput: """ Note: @@ -15102,8 +23635,6 @@ def describe_vpc_classic_link( Describes the ClassicLink status of the specified VPCs. Args: - input: - An instance of `DescribeVpcClassicLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15113,12 +23644,34 @@ def describe_vpc_classic_link( Returns: An instance of `DescribeVpcClassicLinkOutput`. """ - return self._invoke(input, _models.DESCRIBE_VPC_CLASSIC_LINK, [], plugins) + def describe_vpc_classic_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcClassicLinkOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VPC_CLASSIC_LINK, args, kwargs), + _models.DESCRIBE_VPC_CLASSIC_LINK, + [], + plugins, + ) + + @_overload + def describe_vpc_classic_link_dns_support( + self, + request: _models.DescribeVpcClassicLinkDnsSupportInput + | _models.DescribeVpcClassicLinkDnsSupportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcClassicLinkDnsSupportOutput: ... + + @_overload def describe_vpc_classic_link_dns_support( self, - input: DescribeVpcClassicLinkDnsSupportInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcClassicLinkDnsSupportInputDict], ) -> DescribeVpcClassicLinkDnsSupportOutput: """ Note: @@ -15132,8 +23685,6 @@ def describe_vpc_classic_link_dns_support( EC2-Classic instance. Args: - input: - An instance of `DescribeVpcClassicLinkDnsSupportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15143,14 +23694,36 @@ def describe_vpc_classic_link_dns_support( Returns: An instance of `DescribeVpcClassicLinkDnsSupportOutput`. """ + + def describe_vpc_classic_link_dns_support( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcClassicLinkDnsSupportOutput: return self._invoke( - input, _models.DESCRIBE_VPC_CLASSIC_LINK_DNS_SUPPORT, [], plugins + self._select_input( + _models.DESCRIBE_VPC_CLASSIC_LINK_DNS_SUPPORT, args, kwargs + ), + _models.DESCRIBE_VPC_CLASSIC_LINK_DNS_SUPPORT, + [], + plugins, ) + @_overload + def describe_vpc_encryption_controls( + self, + request: _models.DescribeVpcEncryptionControlsInput + | _models.DescribeVpcEncryptionControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEncryptionControlsOutput: ... + + @_overload def describe_vpc_encryption_controls( self, - input: DescribeVpcEncryptionControlsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEncryptionControlsInputDict], ) -> DescribeVpcEncryptionControlsOutput: """ Describes one or more VPC Encryption Control configurations. VPC @@ -15164,8 +23737,6 @@ def describe_vpc_encryption_controls( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DescribeVpcEncryptionControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15175,22 +23746,40 @@ def describe_vpc_encryption_controls( Returns: An instance of `DescribeVpcEncryptionControlsOutput`. """ + + def describe_vpc_encryption_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEncryptionControlsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_ENCRYPTION_CONTROLS, [], plugins + self._select_input(_models.DESCRIBE_VPC_ENCRYPTION_CONTROLS, args, kwargs), + _models.DESCRIBE_VPC_ENCRYPTION_CONTROLS, + [], + plugins, ) + @_overload + def describe_vpc_endpoint_associations( + self, + request: _models.DescribeVpcEndpointAssociationsInput + | _models.DescribeVpcEndpointAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointAssociationsOutput: ... + + @_overload def describe_vpc_endpoint_associations( self, - input: DescribeVpcEndpointAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointAssociationsInputDict], ) -> DescribeVpcEndpointAssociationsOutput: """ Describes the VPC resources, VPC endpoint services, Amazon Lattice services, or service networks associated with the VPC endpoint. Args: - input: - An instance of `DescribeVpcEndpointAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15200,22 +23789,42 @@ def describe_vpc_endpoint_associations( Returns: An instance of `DescribeVpcEndpointAssociationsOutput`. """ + + def describe_vpc_endpoint_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointAssociationsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_ASSOCIATIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_ENDPOINT_ASSOCIATIONS, args, kwargs + ), + _models.DESCRIBE_VPC_ENDPOINT_ASSOCIATIONS, + [], + plugins, ) + @_overload + def describe_vpc_endpoint_connection_notifications( + self, + request: _models.DescribeVpcEndpointConnectionNotificationsInput + | _models.DescribeVpcEndpointConnectionNotificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointConnectionNotificationsOutput: ... + + @_overload def describe_vpc_endpoint_connection_notifications( self, - input: DescribeVpcEndpointConnectionNotificationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointConnectionNotificationsInputDict], ) -> DescribeVpcEndpointConnectionNotificationsOutput: """ Describes the connection notifications for VPC endpoints and VPC endpoint services. Args: - input: - An instance of `DescribeVpcEndpointConnectionNotificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15225,22 +23834,42 @@ def describe_vpc_endpoint_connection_notifications( Returns: An instance of `DescribeVpcEndpointConnectionNotificationsOutput`. """ + + def describe_vpc_endpoint_connection_notifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointConnectionNotificationsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, args, kwargs + ), + _models.DESCRIBE_VPC_ENDPOINT_CONNECTION_NOTIFICATIONS, + [], + plugins, ) + @_overload + def describe_vpc_endpoint_connections( + self, + request: _models.DescribeVpcEndpointConnectionsInput + | _models.DescribeVpcEndpointConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointConnectionsOutput: ... + + @_overload def describe_vpc_endpoint_connections( self, - input: DescribeVpcEndpointConnectionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointConnectionsInputDict], ) -> DescribeVpcEndpointConnectionsOutput: """ Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance. Args: - input: - An instance of `DescribeVpcEndpointConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15250,14 +23879,34 @@ def describe_vpc_endpoint_connections( Returns: An instance of `DescribeVpcEndpointConnectionsOutput`. """ + + def describe_vpc_endpoint_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointConnectionsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_CONNECTIONS, [], plugins + self._select_input(_models.DESCRIBE_VPC_ENDPOINT_CONNECTIONS, args, kwargs), + _models.DESCRIBE_VPC_ENDPOINT_CONNECTIONS, + [], + plugins, ) + @_overload + def describe_vpc_endpoints( + self, + request: _models.DescribeVpcEndpointsInput + | _models.DescribeVpcEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointsOutput: ... + + @_overload def describe_vpc_endpoints( self, - input: DescribeVpcEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointsInputDict], ) -> DescribeVpcEndpointsOutput: """ Describes your VPC endpoints. The default is to describe all your VPC @@ -15266,8 +23915,6 @@ def describe_vpc_endpoints( criteria. Args: - input: - An instance of `DescribeVpcEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15277,20 +23924,40 @@ def describe_vpc_endpoints( Returns: An instance of `DescribeVpcEndpointsOutput`. """ - return self._invoke(input, _models.DESCRIBE_VPC_ENDPOINTS, [], plugins) + def describe_vpc_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VPC_ENDPOINTS, args, kwargs), + _models.DESCRIBE_VPC_ENDPOINTS, + [], + plugins, + ) + + @_overload + def describe_vpc_endpoint_service_configurations( + self, + request: _models.DescribeVpcEndpointServiceConfigurationsInput + | _models.DescribeVpcEndpointServiceConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointServiceConfigurationsOutput: ... + + @_overload def describe_vpc_endpoint_service_configurations( self, - input: DescribeVpcEndpointServiceConfigurationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointServiceConfigurationsInputDict], ) -> DescribeVpcEndpointServiceConfigurationsOutput: """ Describes the VPC endpoint service configurations in your account (your services). Args: - input: - An instance of `DescribeVpcEndpointServiceConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15300,14 +23967,36 @@ def describe_vpc_endpoint_service_configurations( Returns: An instance of `DescribeVpcEndpointServiceConfigurationsOutput`. """ + + def describe_vpc_endpoint_service_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointServiceConfigurationsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, args, kwargs + ), + _models.DESCRIBE_VPC_ENDPOINT_SERVICE_CONFIGURATIONS, + [], + plugins, ) + @_overload + def describe_vpc_endpoint_service_permissions( + self, + request: _models.DescribeVpcEndpointServicePermissionsInput + | _models.DescribeVpcEndpointServicePermissionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointServicePermissionsOutput: ... + + @_overload def describe_vpc_endpoint_service_permissions( self, - input: DescribeVpcEndpointServicePermissionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointServicePermissionsInputDict], ) -> DescribeVpcEndpointServicePermissionsOutput: """ Describes the principals (service consumers) that are permitted to @@ -15315,8 +24004,6 @@ def describe_vpc_endpoint_service_permissions( aren't supported. Args: - input: - An instance of `DescribeVpcEndpointServicePermissionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15326,14 +24013,36 @@ def describe_vpc_endpoint_service_permissions( Returns: An instance of `DescribeVpcEndpointServicePermissionsOutput`. """ + + def describe_vpc_endpoint_service_permissions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointServicePermissionsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_ENDPOINT_SERVICE_PERMISSIONS, [], plugins + self._select_input( + _models.DESCRIBE_VPC_ENDPOINT_SERVICE_PERMISSIONS, args, kwargs + ), + _models.DESCRIBE_VPC_ENDPOINT_SERVICE_PERMISSIONS, + [], + plugins, ) + @_overload + def describe_vpc_endpoint_services( + self, + request: _models.DescribeVpcEndpointServicesInput + | _models.DescribeVpcEndpointServicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcEndpointServicesOutput: ... + + @_overload def describe_vpc_endpoint_services( self, - input: DescribeVpcEndpointServicesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcEndpointServicesInputDict], ) -> DescribeVpcEndpointServicesOutput: """ Describes available services to which you can create a VPC endpoint. @@ -15347,8 +24056,6 @@ def describe_vpc_endpoint_services( Availability Zone, `us-east-1a`. Args: - input: - An instance of `DescribeVpcEndpointServicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15358,12 +24065,34 @@ def describe_vpc_endpoint_services( Returns: An instance of `DescribeVpcEndpointServicesOutput`. """ - return self._invoke(input, _models.DESCRIBE_VPC_ENDPOINT_SERVICES, [], plugins) + def describe_vpc_endpoint_services( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcEndpointServicesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VPC_ENDPOINT_SERVICES, args, kwargs), + _models.DESCRIBE_VPC_ENDPOINT_SERVICES, + [], + plugins, + ) + + @_overload + def describe_vpc_peering_connections( + self, + request: _models.DescribeVpcPeeringConnectionsInput + | _models.DescribeVpcPeeringConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcPeeringConnectionsOutput: ... + + @_overload def describe_vpc_peering_connections( self, - input: DescribeVpcPeeringConnectionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcPeeringConnectionsInputDict], ) -> DescribeVpcPeeringConnectionsOutput: """ Describes your VPC peering connections. The default is to describe all @@ -15372,8 +24101,6 @@ def describe_vpc_peering_connections( peering connections that match specific criteria. Args: - input: - An instance of `DescribeVpcPeeringConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15383,14 +24110,33 @@ def describe_vpc_peering_connections( Returns: An instance of `DescribeVpcPeeringConnectionsOutput`. """ + + def describe_vpc_peering_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcPeeringConnectionsOutput: return self._invoke( - input, _models.DESCRIBE_VPC_PEERING_CONNECTIONS, [], plugins + self._select_input(_models.DESCRIBE_VPC_PEERING_CONNECTIONS, args, kwargs), + _models.DESCRIBE_VPC_PEERING_CONNECTIONS, + [], + plugins, ) + @_overload + def describe_vpcs( + self, + request: _models.DescribeVpcsInput | _models.DescribeVpcsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpcsOutput: ... + + @_overload def describe_vpcs( self, - input: DescribeVpcsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpcsInputDict], ) -> DescribeVpcsOutput: """ Describes your VPCs. The default is to describe all your VPCs. @@ -15398,8 +24144,6 @@ def describe_vpcs( include only the VPCs that match specific criteria. Args: - input: - An instance of `DescribeVpcsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15409,19 +24153,39 @@ def describe_vpcs( Returns: An instance of `DescribeVpcsOutput`. """ - return self._invoke(input, _models.DESCRIBE_VPCS, [], plugins) + def describe_vpcs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpcsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VPCS, args, kwargs), + _models.DESCRIBE_VPCS, + [], + plugins, + ) + + @_overload + def describe_vpn_concentrators( + self, + request: _models.DescribeVpnConcentratorsInput + | _models.DescribeVpnConcentratorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpnConcentratorsOutput: ... + + @_overload def describe_vpn_concentrators( self, - input: DescribeVpnConcentratorsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpnConcentratorsInputDict], ) -> DescribeVpnConcentratorsOutput: """ Describes one or more of your VPN concentrators. Args: - input: - An instance of `DescribeVpnConcentratorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15431,12 +24195,34 @@ def describe_vpn_concentrators( Returns: An instance of `DescribeVpnConcentratorsOutput`. """ - return self._invoke(input, _models.DESCRIBE_VPN_CONCENTRATORS, [], plugins) + def describe_vpn_concentrators( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpnConcentratorsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VPN_CONCENTRATORS, args, kwargs), + _models.DESCRIBE_VPN_CONCENTRATORS, + [], + plugins, + ) + + @_overload + def describe_vpn_connections( + self, + request: _models.DescribeVpnConnectionsInput + | _models.DescribeVpnConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVpnConnectionsOutput: ... + + @_overload def describe_vpn_connections( self, - input: DescribeVpnConnectionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpnConnectionsInputDict], ) -> DescribeVpnConnectionsOutput: """ Describes one or more of your VPN connections. @@ -15446,8 +24232,6 @@ def describe_vpn_connections( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `DescribeVpnConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15457,12 +24241,34 @@ def describe_vpn_connections( Returns: An instance of `DescribeVpnConnectionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_VPN_CONNECTIONS, [], plugins) + def describe_vpn_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpnConnectionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VPN_CONNECTIONS, args, kwargs), + _models.DESCRIBE_VPN_CONNECTIONS, + [], + plugins, + ) + + @_overload def describe_vpn_gateways( self, - input: DescribeVpnGatewaysInput | None = None, + request: _models.DescribeVpnGatewaysInput + | _models.DescribeVpnGatewaysInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeVpnGatewaysOutput: ... + + @_overload + def describe_vpn_gateways( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVpnGatewaysInputDict], ) -> DescribeVpnGatewaysOutput: """ Describes one or more of your virtual private gateways. @@ -15472,8 +24278,6 @@ def describe_vpn_gateways( *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `DescribeVpnGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15483,10 +24287,34 @@ def describe_vpn_gateways( Returns: An instance of `DescribeVpnGatewaysOutput`. """ - return self._invoke(input, _models.DESCRIBE_VPN_GATEWAYS, [], plugins) + def describe_vpn_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVpnGatewaysOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VPN_GATEWAYS, args, kwargs), + _models.DESCRIBE_VPN_GATEWAYS, + [], + plugins, + ) + + @_overload + def detach_classic_link_vpc( + self, + request: _models.DetachClassicLinkVpcInput + | _models.DetachClassicLinkVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachClassicLinkVpcOutput: ... + + @_overload def detach_classic_link_vpc( - self, input: DetachClassicLinkVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachClassicLinkVpcInputDict], ) -> DetachClassicLinkVpcOutput: """ Note: @@ -15498,8 +24326,6 @@ def detach_classic_link_vpc( when it's stopped. Args: - input: - An instance of `DetachClassicLinkVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15509,10 +24335,34 @@ def detach_classic_link_vpc( Returns: An instance of `DetachClassicLinkVpcOutput`. """ - return self._invoke(input, _models.DETACH_CLASSIC_LINK_VPC, [], plugins) + def detach_classic_link_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachClassicLinkVpcOutput: + return self._invoke( + self._select_input(_models.DETACH_CLASSIC_LINK_VPC, args, kwargs), + _models.DETACH_CLASSIC_LINK_VPC, + [], + plugins, + ) + + @_overload def detach_image_watermark( - self, input: DetachImageWatermarkInput, plugins: list[Plugin] | None = None + self, + request: _models.DetachImageWatermarkInput + | _models.DetachImageWatermarkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachImageWatermarkOutput: ... + + @_overload + def detach_image_watermark( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachImageWatermarkInputDict], ) -> DetachImageWatermarkOutput: """ Removes a watermark from the specified AMI. This is an idempotent @@ -15525,8 +24375,6 @@ def detach_image_watermark( Only the AMI owner can detach watermarks. Args: - input: - An instance of `DetachImageWatermarkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15536,10 +24384,34 @@ def detach_image_watermark( Returns: An instance of `DetachImageWatermarkOutput`. """ - return self._invoke(input, _models.DETACH_IMAGE_WATERMARK, [], plugins) + def detach_image_watermark( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachImageWatermarkOutput: + return self._invoke( + self._select_input(_models.DETACH_IMAGE_WATERMARK, args, kwargs), + _models.DETACH_IMAGE_WATERMARK, + [], + plugins, + ) + + @_overload + def detach_internet_gateway( + self, + request: _models.DetachInternetGatewayInput + | _models.DetachInternetGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachInternetGatewayOutput: ... + + @_overload def detach_internet_gateway( - self, input: DetachInternetGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachInternetGatewayInputDict], ) -> DetachInternetGatewayOutput: """ Detaches an internet gateway from a VPC, disabling connectivity between @@ -15547,8 +24419,6 @@ def detach_internet_gateway( with Elastic IP addresses or public IPv4 addresses. Args: - input: - An instance of `DetachInternetGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15558,17 +24428,39 @@ def detach_internet_gateway( Returns: An instance of `DetachInternetGatewayOutput`. """ - return self._invoke(input, _models.DETACH_INTERNET_GATEWAY, [], plugins) + def detach_internet_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachInternetGatewayOutput: + return self._invoke( + self._select_input(_models.DETACH_INTERNET_GATEWAY, args, kwargs), + _models.DETACH_INTERNET_GATEWAY, + [], + plugins, + ) + + @_overload + def detach_network_interface( + self, + request: _models.DetachNetworkInterfaceInput + | _models.DetachNetworkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachNetworkInterfaceOutput: ... + + @_overload def detach_network_interface( - self, input: DetachNetworkInterfaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachNetworkInterfaceInputDict], ) -> DetachNetworkInterfaceOutput: """ Detaches a network interface from an instance. Args: - input: - An instance of `DetachNetworkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15578,12 +24470,34 @@ def detach_network_interface( Returns: An instance of `DetachNetworkInterfaceOutput`. """ - return self._invoke(input, _models.DETACH_NETWORK_INTERFACE, [], plugins) + def detach_network_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachNetworkInterfaceOutput: + return self._invoke( + self._select_input(_models.DETACH_NETWORK_INTERFACE, args, kwargs), + _models.DETACH_NETWORK_INTERFACE, + [], + plugins, + ) + + @_overload + def detach_verified_access_trust_provider( + self, + request: _models.DetachVerifiedAccessTrustProviderInput + | _models.DetachVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachVerifiedAccessTrustProviderOutput: ... + + @_overload def detach_verified_access_trust_provider( self, - input: DetachVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachVerifiedAccessTrustProviderInputDict], ) -> DetachVerifiedAccessTrustProviderOutput: """ Detaches the specified Amazon Web Services Verified Access trust @@ -15591,8 +24505,6 @@ def detach_verified_access_trust_provider( instance. Args: - input: - An instance of `DetachVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15602,12 +24514,35 @@ def detach_verified_access_trust_provider( Returns: An instance of `DetachVerifiedAccessTrustProviderOutput`. """ + + def detach_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachVerifiedAccessTrustProviderOutput: return self._invoke( - input, _models.DETACH_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.DETACH_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.DETACH_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload def detach_volume( - self, input: DetachVolumeInput, plugins: list[Plugin] | None = None + self, + request: _models.DetachVolumeInput | _models.DetachVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachVolumeOutput: ... + + @_overload + def detach_volume( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachVolumeInputDict], ) -> DetachVolumeOutput: """ Detaches an EBS volume from an instance. Make sure to unmount any file @@ -15632,8 +24567,6 @@ def detach_volume( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DetachVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15643,10 +24576,33 @@ def detach_volume( Returns: An instance of `DetachVolumeOutput`. """ - return self._invoke(input, _models.DETACH_VOLUME, [], plugins) + def detach_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachVolumeOutput: + return self._invoke( + self._select_input(_models.DETACH_VOLUME, args, kwargs), + _models.DETACH_VOLUME, + [], + plugins, + ) + + @_overload + def detach_vpn_gateway( + self, + request: _models.DetachVpnGatewayInput | _models.DetachVpnGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachVpnGatewayOutput: ... + + @_overload def detach_vpn_gateway( - self, input: DetachVpnGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachVpnGatewayInputDict], ) -> DetachVpnGatewayOutput: """ Detaches a virtual private gateway from a VPC. You do this if you're @@ -15660,8 +24616,6 @@ def detach_vpn_gateway( gateway. Args: - input: - An instance of `DetachVpnGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15671,10 +24625,34 @@ def detach_vpn_gateway( Returns: An instance of `DetachVpnGatewayOutput`. """ - return self._invoke(input, _models.DETACH_VPN_GATEWAY, [], plugins) + def detach_vpn_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachVpnGatewayOutput: + return self._invoke( + self._select_input(_models.DETACH_VPN_GATEWAY, args, kwargs), + _models.DETACH_VPN_GATEWAY, + [], + plugins, + ) + + @_overload + def disable_address_transfer( + self, + request: _models.DisableAddressTransferInput + | _models.DisableAddressTransferInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableAddressTransferOutput: ... + + @_overload def disable_address_transfer( - self, input: DisableAddressTransferInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableAddressTransferInputDict], ) -> DisableAddressTransferOutput: """ Disables Elastic IP address transfer. For more information, see @@ -15683,8 +24661,6 @@ def disable_address_transfer( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DisableAddressTransferInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15694,12 +24670,34 @@ def disable_address_transfer( Returns: An instance of `DisableAddressTransferOutput`. """ - return self._invoke(input, _models.DISABLE_ADDRESS_TRANSFER, [], plugins) + def disable_address_transfer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableAddressTransferOutput: + return self._invoke( + self._select_input(_models.DISABLE_ADDRESS_TRANSFER, args, kwargs), + _models.DISABLE_ADDRESS_TRANSFER, + [], + plugins, + ) + + @_overload + def disable_allowed_images_settings( + self, + request: _models.DisableAllowedImagesSettingsInput + | _models.DisableAllowedImagesSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableAllowedImagesSettingsOutput: ... + + @_overload def disable_allowed_images_settings( self, - input: DisableAllowedImagesSettingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableAllowedImagesSettingsInputDict], ) -> DisableAllowedImagesSettingsOutput: """ Disables Allowed AMIs for your account in the specified Amazon Web @@ -15719,8 +24717,6 @@ def disable_allowed_images_settings( in *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableAllowedImagesSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15730,12 +24726,34 @@ def disable_allowed_images_settings( Returns: An instance of `DisableAllowedImagesSettingsOutput`. """ - return self._invoke(input, _models.DISABLE_ALLOWED_IMAGES_SETTINGS, [], plugins) + def disable_allowed_images_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableAllowedImagesSettingsOutput: + return self._invoke( + self._select_input(_models.DISABLE_ALLOWED_IMAGES_SETTINGS, args, kwargs), + _models.DISABLE_ALLOWED_IMAGES_SETTINGS, + [], + plugins, + ) + + @_overload + def disable_application_status_check_suppression( + self, + request: _models.DisableApplicationStatusCheckSuppressionInput + | _models.DisableApplicationStatusCheckSuppressionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableApplicationStatusCheckSuppressionOutput: ... + + @_overload def disable_application_status_check_suppression( self, - input: DisableApplicationStatusCheckSuppressionInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableApplicationStatusCheckSuppressionInputDict], ) -> DisableApplicationStatusCheckSuppressionOutput: """ Disables suppression of application status checks for the specified @@ -15744,8 +24762,6 @@ def disable_application_status_check_suppression( maximum of 100 instance IDs for each request. Args: - input: - An instance of `DisableApplicationStatusCheckSuppressionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15755,21 +24771,43 @@ def disable_application_status_check_suppression( Returns: An instance of `DisableApplicationStatusCheckSuppressionOutput`. """ + + def disable_application_status_check_suppression( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableApplicationStatusCheckSuppressionOutput: return self._invoke( - input, _models.DISABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, [], plugins + self._select_input( + _models.DISABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, args, kwargs + ), + _models.DISABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, + [], + plugins, ) + @_overload + def disable_aws_network_performance_metric_subscription( + self, + request: _models.DisableAwsNetworkPerformanceMetricSubscriptionInput + | _models.DisableAwsNetworkPerformanceMetricSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableAwsNetworkPerformanceMetricSubscriptionOutput: ... + + @_overload def disable_aws_network_performance_metric_subscription( self, - input: DisableAwsNetworkPerformanceMetricSubscriptionInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DisableAwsNetworkPerformanceMetricSubscriptionInputDict + ], ) -> DisableAwsNetworkPerformanceMetricSubscriptionOutput: """ Disables Infrastructure Performance metric subscriptions. Args: - input: - An instance of `DisableAwsNetworkPerformanceMetricSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15779,17 +24817,38 @@ def disable_aws_network_performance_metric_subscription( Returns: An instance of `DisableAwsNetworkPerformanceMetricSubscriptionOutput`. """ + + def disable_aws_network_performance_metric_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableAwsNetworkPerformanceMetricSubscriptionOutput: return self._invoke( - input, + self._select_input( + _models.DISABLE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTION, + args, + kwargs, + ), _models.DISABLE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTION, [], plugins, ) + @_overload + def disable_capacity_manager( + self, + request: _models.DisableCapacityManagerInput + | _models.DisableCapacityManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableCapacityManagerOutput: ... + + @_overload def disable_capacity_manager( self, - input: DisableCapacityManagerInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableCapacityManagerInputDict], ) -> DisableCapacityManagerOutput: """ Disables EC2 Capacity Manager for your account. This stops data @@ -15798,8 +24857,6 @@ def disable_capacity_manager( will be processed. Args: - input: - An instance of `DisableCapacityManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15809,12 +24866,34 @@ def disable_capacity_manager( Returns: An instance of `DisableCapacityManagerOutput`. """ - return self._invoke(input, _models.DISABLE_CAPACITY_MANAGER, [], plugins) + def disable_capacity_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableCapacityManagerOutput: + return self._invoke( + self._select_input(_models.DISABLE_CAPACITY_MANAGER, args, kwargs), + _models.DISABLE_CAPACITY_MANAGER, + [], + plugins, + ) + + @_overload + def disable_ebs_encryption_by_default( + self, + request: _models.DisableEbsEncryptionByDefaultInput + | _models.DisableEbsEncryptionByDefaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableEbsEncryptionByDefaultOutput: ... + + @_overload def disable_ebs_encryption_by_default( self, - input: DisableEbsEncryptionByDefaultInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableEbsEncryptionByDefaultInputDict], ) -> DisableEbsEncryptionByDefaultOutput: """ Disables EBS encryption by default for your account in the current @@ -15831,8 +24910,6 @@ def disable_ebs_encryption_by_default( in the *Amazon EBS User Guide*. Args: - input: - An instance of `DisableEbsEncryptionByDefaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15842,12 +24919,33 @@ def disable_ebs_encryption_by_default( Returns: An instance of `DisableEbsEncryptionByDefaultOutput`. """ + + def disable_ebs_encryption_by_default( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableEbsEncryptionByDefaultOutput: return self._invoke( - input, _models.DISABLE_EBS_ENCRYPTION_BY_DEFAULT, [], plugins + self._select_input(_models.DISABLE_EBS_ENCRYPTION_BY_DEFAULT, args, kwargs), + _models.DISABLE_EBS_ENCRYPTION_BY_DEFAULT, + [], + plugins, ) + @_overload + def disable_fast_launch( + self, + request: _models.DisableFastLaunchInput | _models.DisableFastLaunchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableFastLaunchOutput: ... + + @_overload def disable_fast_launch( - self, input: DisableFastLaunchInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableFastLaunchInputDict], ) -> DisableFastLaunchOutput: """ Discontinue Windows fast launch for a Windows AMI, and clean up existing @@ -15861,8 +24959,6 @@ def disable_fast_launch( have been shared with you. Args: - input: - An instance of `DisableFastLaunchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15872,20 +24968,40 @@ def disable_fast_launch( Returns: An instance of `DisableFastLaunchOutput`. """ - return self._invoke(input, _models.DISABLE_FAST_LAUNCH, [], plugins) + def disable_fast_launch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableFastLaunchOutput: + return self._invoke( + self._select_input(_models.DISABLE_FAST_LAUNCH, args, kwargs), + _models.DISABLE_FAST_LAUNCH, + [], + plugins, + ) + + @_overload + def disable_fast_snapshot_restores( + self, + request: _models.DisableFastSnapshotRestoresInput + | _models.DisableFastSnapshotRestoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableFastSnapshotRestoresOutput: ... + + @_overload def disable_fast_snapshot_restores( self, - input: DisableFastSnapshotRestoresInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableFastSnapshotRestoresInputDict], ) -> DisableFastSnapshotRestoresOutput: """ Disables fast snapshot restores for the specified snapshots in the specified Availability Zones. Args: - input: - An instance of `DisableFastSnapshotRestoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15895,10 +25011,33 @@ def disable_fast_snapshot_restores( Returns: An instance of `DisableFastSnapshotRestoresOutput`. """ - return self._invoke(input, _models.DISABLE_FAST_SNAPSHOT_RESTORES, [], plugins) + def disable_fast_snapshot_restores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableFastSnapshotRestoresOutput: + return self._invoke( + self._select_input(_models.DISABLE_FAST_SNAPSHOT_RESTORES, args, kwargs), + _models.DISABLE_FAST_SNAPSHOT_RESTORES, + [], + plugins, + ) + + @_overload + def disable_image( + self, + request: _models.DisableImageInput | _models.DisableImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableImageOutput: ... + + @_overload def disable_image( - self, input: DisableImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableImageInputDict], ) -> DisableImageOutput: """ Sets the AMI state to `disabled` and removes all launch permissions from @@ -15923,8 +25062,6 @@ def disable_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15934,12 +25071,34 @@ def disable_image( Returns: An instance of `DisableImageOutput`. """ - return self._invoke(input, _models.DISABLE_IMAGE, [], plugins) + def disable_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableImageOutput: + return self._invoke( + self._select_input(_models.DISABLE_IMAGE, args, kwargs), + _models.DISABLE_IMAGE, + [], + plugins, + ) + + @_overload + def disable_image_block_public_access( + self, + request: _models.DisableImageBlockPublicAccessInput + | _models.DisableImageBlockPublicAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableImageBlockPublicAccessOutput: ... + + @_overload def disable_image_block_public_access( self, - input: DisableImageBlockPublicAccessInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableImageBlockPublicAccessInputDict], ) -> DisableImageBlockPublicAccessOutput: """ Disables *block public access for AMIs* at the account level in the @@ -15953,8 +25112,6 @@ def disable_image_block_public_access( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableImageBlockPublicAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15964,12 +25121,34 @@ def disable_image_block_public_access( Returns: An instance of `DisableImageBlockPublicAccessOutput`. """ + + def disable_image_block_public_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableImageBlockPublicAccessOutput: return self._invoke( - input, _models.DISABLE_IMAGE_BLOCK_PUBLIC_ACCESS, [], plugins + self._select_input(_models.DISABLE_IMAGE_BLOCK_PUBLIC_ACCESS, args, kwargs), + _models.DISABLE_IMAGE_BLOCK_PUBLIC_ACCESS, + [], + plugins, ) + @_overload + def disable_image_deprecation( + self, + request: _models.DisableImageDeprecationInput + | _models.DisableImageDeprecationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableImageDeprecationOutput: ... + + @_overload def disable_image_deprecation( - self, input: DisableImageDeprecationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableImageDeprecationInputDict], ) -> DisableImageDeprecationOutput: """ Cancels the deprecation of the specified AMI. @@ -15979,8 +25158,6 @@ def disable_image_deprecation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableImageDeprecationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -15990,12 +25167,34 @@ def disable_image_deprecation( Returns: An instance of `DisableImageDeprecationOutput`. """ - return self._invoke(input, _models.DISABLE_IMAGE_DEPRECATION, [], plugins) + def disable_image_deprecation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableImageDeprecationOutput: + return self._invoke( + self._select_input(_models.DISABLE_IMAGE_DEPRECATION, args, kwargs), + _models.DISABLE_IMAGE_DEPRECATION, + [], + plugins, + ) + + @_overload + def disable_image_deregistration_protection( + self, + request: _models.DisableImageDeregistrationProtectionInput + | _models.DisableImageDeregistrationProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableImageDeregistrationProtectionOutput: ... + + @_overload def disable_image_deregistration_protection( self, - input: DisableImageDeregistrationProtectionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableImageDeregistrationProtectionInputDict], ) -> DisableImageDeregistrationProtectionOutput: """ Disables deregistration protection for an AMI. When deregistration @@ -16011,8 +25210,6 @@ def disable_image_deregistration_protection( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableImageDeregistrationProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16022,14 +25219,36 @@ def disable_image_deregistration_protection( Returns: An instance of `DisableImageDeregistrationProtectionOutput`. """ + + def disable_image_deregistration_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableImageDeregistrationProtectionOutput: return self._invoke( - input, _models.DISABLE_IMAGE_DEREGISTRATION_PROTECTION, [], plugins + self._select_input( + _models.DISABLE_IMAGE_DEREGISTRATION_PROTECTION, args, kwargs + ), + _models.DISABLE_IMAGE_DEREGISTRATION_PROTECTION, + [], + plugins, ) + @_overload + def disable_instance_sql_ha_standby_detections( + self, + request: _models.DisableInstanceSqlHaStandbyDetectionsInput + | _models.DisableInstanceSqlHaStandbyDetectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableInstanceSqlHaStandbyDetectionsOutput: ... + + @_overload def disable_instance_sql_ha_standby_detections( self, - input: DisableInstanceSqlHaStandbyDetectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableInstanceSqlHaStandbyDetectionsInputDict], ) -> DisableInstanceSqlHaStandbyDetectionsOutput: """ Disable Amazon EC2 instances running in an SQL Server High Availability @@ -16039,8 +25258,6 @@ def disable_instance_sql_ha_standby_detections( standby nodes in the SQL Server High Availability cluster. Args: - input: - An instance of `DisableInstanceSqlHaStandbyDetectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16050,14 +25267,36 @@ def disable_instance_sql_ha_standby_detections( Returns: An instance of `DisableInstanceSqlHaStandbyDetectionsOutput`. """ + + def disable_instance_sql_ha_standby_detections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableInstanceSqlHaStandbyDetectionsOutput: return self._invoke( - input, _models.DISABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, [], plugins + self._select_input( + _models.DISABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, args, kwargs + ), + _models.DISABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, + [], + plugins, ) + @_overload + def disable_ipam_organization_admin_account( + self, + request: _models.DisableIpamOrganizationAdminAccountInput + | _models.DisableIpamOrganizationAdminAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableIpamOrganizationAdminAccountOutput: ... + + @_overload def disable_ipam_organization_admin_account( self, - input: DisableIpamOrganizationAdminAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableIpamOrganizationAdminAccountInputDict], ) -> DisableIpamOrganizationAdminAccountOutput: """ Disable the IPAM account. For more information, see [Enable integration @@ -16066,8 +25305,6 @@ def disable_ipam_organization_admin_account( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `DisableIpamOrganizationAdminAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16077,12 +25314,35 @@ def disable_ipam_organization_admin_account( Returns: An instance of `DisableIpamOrganizationAdminAccountOutput`. """ + + def disable_ipam_organization_admin_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableIpamOrganizationAdminAccountOutput: return self._invoke( - input, _models.DISABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, [], plugins + self._select_input( + _models.DISABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, args, kwargs + ), + _models.DISABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, + [], + plugins, ) + @_overload + def disable_ipam_policy( + self, + request: _models.DisableIpamPolicyInput | _models.DisableIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableIpamPolicyOutput: ... + + @_overload def disable_ipam_policy( - self, input: DisableIpamPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableIpamPolicyInputDict], ) -> DisableIpamPolicyOutput: """ Disables an IPAM policy. @@ -16097,8 +25357,6 @@ def disable_ipam_policy( account or an entity within Amazon Web Services Organizations. Args: - input: - An instance of `DisableIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16108,12 +25366,34 @@ def disable_ipam_policy( Returns: An instance of `DisableIpamPolicyOutput`. """ - return self._invoke(input, _models.DISABLE_IPAM_POLICY, [], plugins) + def disable_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableIpamPolicyOutput: + return self._invoke( + self._select_input(_models.DISABLE_IPAM_POLICY, args, kwargs), + _models.DISABLE_IPAM_POLICY, + [], + plugins, + ) + + @_overload + def disable_route_server_propagation( + self, + request: _models.DisableRouteServerPropagationInput + | _models.DisableRouteServerPropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableRouteServerPropagationOutput: ... + + @_overload def disable_route_server_propagation( self, - input: DisableRouteServerPropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableRouteServerPropagationInputDict], ) -> DisableRouteServerPropagationOutput: """ Disables route propagation from a route server to a specified route @@ -16149,8 +25429,6 @@ def disable_route_server_propagation( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DisableRouteServerPropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16160,14 +25438,34 @@ def disable_route_server_propagation( Returns: An instance of `DisableRouteServerPropagationOutput`. """ + + def disable_route_server_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableRouteServerPropagationOutput: return self._invoke( - input, _models.DISABLE_ROUTE_SERVER_PROPAGATION, [], plugins + self._select_input(_models.DISABLE_ROUTE_SERVER_PROPAGATION, args, kwargs), + _models.DISABLE_ROUTE_SERVER_PROPAGATION, + [], + plugins, ) + @_overload + def disable_serial_console_access( + self, + request: _models.DisableSerialConsoleAccessInput + | _models.DisableSerialConsoleAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableSerialConsoleAccessOutput: ... + + @_overload def disable_serial_console_access( self, - input: DisableSerialConsoleAccessInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableSerialConsoleAccessInputDict], ) -> DisableSerialConsoleAccessOutput: """ Disables access to the EC2 serial console of all instances for your @@ -16178,8 +25476,6 @@ def disable_serial_console_access( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisableSerialConsoleAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16189,12 +25485,34 @@ def disable_serial_console_access( Returns: An instance of `DisableSerialConsoleAccessOutput`. """ - return self._invoke(input, _models.DISABLE_SERIAL_CONSOLE_ACCESS, [], plugins) + def disable_serial_console_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableSerialConsoleAccessOutput: + return self._invoke( + self._select_input(_models.DISABLE_SERIAL_CONSOLE_ACCESS, args, kwargs), + _models.DISABLE_SERIAL_CONSOLE_ACCESS, + [], + plugins, + ) + + @_overload + def disable_snapshot_block_public_access( + self, + request: _models.DisableSnapshotBlockPublicAccessInput + | _models.DisableSnapshotBlockPublicAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableSnapshotBlockPublicAccessOutput: ... + + @_overload def disable_snapshot_block_public_access( self, - input: DisableSnapshotBlockPublicAccessInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableSnapshotBlockPublicAccessInputDict], ) -> DisableSnapshotBlockPublicAccessOutput: """ Disables the *block public access for snapshots* setting at the account @@ -16218,8 +25536,6 @@ def disable_snapshot_block_public_access( in the *Amazon EBS User Guide* . Args: - input: - An instance of `DisableSnapshotBlockPublicAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16229,22 +25545,42 @@ def disable_snapshot_block_public_access( Returns: An instance of `DisableSnapshotBlockPublicAccessOutput`. """ + + def disable_snapshot_block_public_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableSnapshotBlockPublicAccessOutput: return self._invoke( - input, _models.DISABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, [], plugins + self._select_input( + _models.DISABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, args, kwargs + ), + _models.DISABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, + [], + plugins, ) + @_overload + def disable_transit_gateway_route_table_propagation( + self, + request: _models.DisableTransitGatewayRouteTablePropagationInput + | _models.DisableTransitGatewayRouteTablePropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableTransitGatewayRouteTablePropagationOutput: ... + + @_overload def disable_transit_gateway_route_table_propagation( self, - input: DisableTransitGatewayRouteTablePropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableTransitGatewayRouteTablePropagationInputDict], ) -> DisableTransitGatewayRouteTablePropagationOutput: """ Disables the specified resource attachment from propagating routes to the specified propagation route table. Args: - input: - An instance of `DisableTransitGatewayRouteTablePropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16254,22 +25590,42 @@ def disable_transit_gateway_route_table_propagation( Returns: An instance of `DisableTransitGatewayRouteTablePropagationOutput`. """ + + def disable_transit_gateway_route_table_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableTransitGatewayRouteTablePropagationOutput: return self._invoke( - input, _models.DISABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, [], plugins + self._select_input( + _models.DISABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, args, kwargs + ), + _models.DISABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, + [], + plugins, ) + @_overload + def disable_vgw_route_propagation( + self, + request: _models.DisableVgwRoutePropagationInput + | _models.DisableVgwRoutePropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableVgwRoutePropagationOutput: ... + + @_overload def disable_vgw_route_propagation( self, - input: DisableVgwRoutePropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableVgwRoutePropagationInputDict], ) -> DisableVgwRoutePropagationOutput: """ Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. Args: - input: - An instance of `DisableVgwRoutePropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16279,10 +25635,34 @@ def disable_vgw_route_propagation( Returns: An instance of `DisableVgwRoutePropagationOutput`. """ - return self._invoke(input, _models.DISABLE_VGW_ROUTE_PROPAGATION, [], plugins) + def disable_vgw_route_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableVgwRoutePropagationOutput: + return self._invoke( + self._select_input(_models.DISABLE_VGW_ROUTE_PROPAGATION, args, kwargs), + _models.DISABLE_VGW_ROUTE_PROPAGATION, + [], + plugins, + ) + + @_overload + def disable_vpc_classic_link( + self, + request: _models.DisableVpcClassicLinkInput + | _models.DisableVpcClassicLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableVpcClassicLinkOutput: ... + + @_overload def disable_vpc_classic_link( - self, input: DisableVpcClassicLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableVpcClassicLinkInputDict], ) -> DisableVpcClassicLinkOutput: """ Note: @@ -16292,8 +25672,6 @@ def disable_vpc_classic_link( that has EC2-Classic instances linked to it. Args: - input: - An instance of `DisableVpcClassicLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16303,12 +25681,34 @@ def disable_vpc_classic_link( Returns: An instance of `DisableVpcClassicLinkOutput`. """ - return self._invoke(input, _models.DISABLE_VPC_CLASSIC_LINK, [], plugins) + def disable_vpc_classic_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableVpcClassicLinkOutput: + return self._invoke( + self._select_input(_models.DISABLE_VPC_CLASSIC_LINK, args, kwargs), + _models.DISABLE_VPC_CLASSIC_LINK, + [], + plugins, + ) + + @_overload + def disable_vpc_classic_link_dns_support( + self, + request: _models.DisableVpcClassicLinkDnsSupportInput + | _models.DisableVpcClassicLinkDnsSupportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableVpcClassicLinkDnsSupportOutput: ... + + @_overload def disable_vpc_classic_link_dns_support( self, - input: DisableVpcClassicLinkDnsSupportInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableVpcClassicLinkDnsSupportInputDict], ) -> DisableVpcClassicLinkDnsSupportOutput: """ Note: @@ -16321,8 +25721,6 @@ def disable_vpc_classic_link_dns_support( You must specify a VPC ID in the request. Args: - input: - An instance of `DisableVpcClassicLinkDnsSupportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16332,14 +25730,36 @@ def disable_vpc_classic_link_dns_support( Returns: An instance of `DisableVpcClassicLinkDnsSupportOutput`. """ + + def disable_vpc_classic_link_dns_support( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableVpcClassicLinkDnsSupportOutput: return self._invoke( - input, _models.DISABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, [], plugins + self._select_input( + _models.DISABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, args, kwargs + ), + _models.DISABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, + [], + plugins, ) + @_overload def disassociate_address( self, - input: DisassociateAddressInput | None = None, + request: _models.DisassociateAddressInput + | _models.DisassociateAddressInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateAddressOutput: ... + + @_overload + def disassociate_address( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateAddressInputDict], ) -> DisassociateAddressOutput: """ Disassociates an Elastic IP address from the instance or network @@ -16358,8 +25778,6 @@ def disassociate_address( - Network interface only has one remaining public IPv4 address Args: - input: - An instance of `DisassociateAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16369,12 +25787,34 @@ def disassociate_address( Returns: An instance of `DisassociateAddressOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_ADDRESS, [], plugins) + def disassociate_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateAddressOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_ADDRESS, args, kwargs), + _models.DISASSOCIATE_ADDRESS, + [], + plugins, + ) + + @_overload + def disassociate_application_status_check( + self, + request: _models.DisassociateApplicationStatusCheckInput + | _models.DisassociateApplicationStatusCheckInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateApplicationStatusCheckOutput: ... + + @_overload def disassociate_application_status_check( self, - input: DisassociateApplicationStatusCheckInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateApplicationStatusCheckInputDict], ) -> DisassociateApplicationStatusCheckOutput: """ Disassociates an application status check from instances or @@ -16392,8 +25832,6 @@ def disassociate_application_status_check( - Tag keys must not be blank. Args: - input: - An instance of `DisassociateApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16403,14 +25841,36 @@ def disassociate_application_status_check( Returns: An instance of `DisassociateApplicationStatusCheckOutput`. """ + + def disassociate_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateApplicationStatusCheckOutput: return self._invoke( - input, _models.DISASSOCIATE_APPLICATION_STATUS_CHECK, [], plugins + self._select_input( + _models.DISASSOCIATE_APPLICATION_STATUS_CHECK, args, kwargs + ), + _models.DISASSOCIATE_APPLICATION_STATUS_CHECK, + [], + plugins, ) + @_overload + def disassociate_capacity_reservation_billing_owner( + self, + request: _models.DisassociateCapacityReservationBillingOwnerInput + | _models.DisassociateCapacityReservationBillingOwnerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateCapacityReservationBillingOwnerOutput: ... + + @_overload def disassociate_capacity_reservation_billing_owner( self, - input: DisassociateCapacityReservationBillingOwnerInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateCapacityReservationBillingOwnerInputDict], ) -> DisassociateCapacityReservationBillingOwnerOutput: """ Cancels a pending request to assign billing of the unused capacity of a @@ -16420,8 +25880,6 @@ def disassociate_capacity_reservation_billing_owner( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html). Args: - input: - An instance of `DisassociateCapacityReservationBillingOwnerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16431,14 +25889,36 @@ def disassociate_capacity_reservation_billing_owner( Returns: An instance of `DisassociateCapacityReservationBillingOwnerOutput`. """ + + def disassociate_capacity_reservation_billing_owner( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateCapacityReservationBillingOwnerOutput: return self._invoke( - input, _models.DISASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, [], plugins + self._select_input( + _models.DISASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, args, kwargs + ), + _models.DISASSOCIATE_CAPACITY_RESERVATION_BILLING_OWNER, + [], + plugins, ) + @_overload + def disassociate_client_vpn_target_network( + self, + request: _models.DisassociateClientVpnTargetNetworkInput + | _models.DisassociateClientVpnTargetNetworkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateClientVpnTargetNetworkOutput: ... + + @_overload def disassociate_client_vpn_target_network( self, - input: DisassociateClientVpnTargetNetworkInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateClientVpnTargetNetworkInputDict], ) -> DisassociateClientVpnTargetNetworkOutput: """ Disassociates a target network from the specified Client VPN endpoint. @@ -16454,8 +25934,6 @@ def disassociate_client_vpn_target_network( - The Client VPN endpoint's status changes to `pending-associate` Args: - input: - An instance of `DisassociateClientVpnTargetNetworkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16465,14 +25943,36 @@ def disassociate_client_vpn_target_network( Returns: An instance of `DisassociateClientVpnTargetNetworkOutput`. """ + + def disassociate_client_vpn_target_network( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateClientVpnTargetNetworkOutput: return self._invoke( - input, _models.DISASSOCIATE_CLIENT_VPN_TARGET_NETWORK, [], plugins + self._select_input( + _models.DISASSOCIATE_CLIENT_VPN_TARGET_NETWORK, args, kwargs + ), + _models.DISASSOCIATE_CLIENT_VPN_TARGET_NETWORK, + [], + plugins, ) + @_overload + def disassociate_enclave_certificate_iam_role( + self, + request: _models.DisassociateEnclaveCertificateIamRoleInput + | _models.DisassociateEnclaveCertificateIamRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateEnclaveCertificateIamRoleOutput: ... + + @_overload def disassociate_enclave_certificate_iam_role( self, - input: DisassociateEnclaveCertificateIamRoleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateEnclaveCertificateIamRoleInputDict], ) -> DisassociateEnclaveCertificateIamRoleOutput: """ Disassociates an IAM role from an Certificate Manager (ACM) certificate. @@ -16483,8 +25983,6 @@ def disassociate_enclave_certificate_iam_role( effectively revokes the role's permission to use the certificate. Args: - input: - An instance of `DisassociateEnclaveCertificateIamRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16494,14 +25992,36 @@ def disassociate_enclave_certificate_iam_role( Returns: An instance of `DisassociateEnclaveCertificateIamRoleOutput`. """ + + def disassociate_enclave_certificate_iam_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateEnclaveCertificateIamRoleOutput: return self._invoke( - input, _models.DISASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, [], plugins + self._select_input( + _models.DISASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, args, kwargs + ), + _models.DISASSOCIATE_ENCLAVE_CERTIFICATE_IAM_ROLE, + [], + plugins, ) + @_overload + def disassociate_iam_instance_profile( + self, + request: _models.DisassociateIamInstanceProfileInput + | _models.DisassociateIamInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateIamInstanceProfileOutput: ... + + @_overload def disassociate_iam_instance_profile( self, - input: DisassociateIamInstanceProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateIamInstanceProfileInputDict], ) -> DisassociateIamInstanceProfileOutput: """ Disassociates an IAM instance profile from a running or stopped @@ -16510,8 +26030,6 @@ def disassociate_iam_instance_profile( Use DescribeIamInstanceProfileAssociations to get the association ID. Args: - input: - An instance of `DisassociateIamInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16521,14 +26039,34 @@ def disassociate_iam_instance_profile( Returns: An instance of `DisassociateIamInstanceProfileOutput`. """ + + def disassociate_iam_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateIamInstanceProfileOutput: return self._invoke( - input, _models.DISASSOCIATE_IAM_INSTANCE_PROFILE, [], plugins + self._select_input(_models.DISASSOCIATE_IAM_INSTANCE_PROFILE, args, kwargs), + _models.DISASSOCIATE_IAM_INSTANCE_PROFILE, + [], + plugins, ) + @_overload def disassociate_instance_event_window( self, - input: DisassociateInstanceEventWindowInput, + request: _models.DisassociateInstanceEventWindowInput + | _models.DisassociateInstanceEventWindowInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateInstanceEventWindowOutput: ... + + @_overload + def disassociate_instance_event_window( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateInstanceEventWindowInputDict], ) -> DisassociateInstanceEventWindowOutput: """ Disassociates one or more targets from an event window. @@ -16538,8 +26076,6 @@ def disassociate_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `DisassociateInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16549,12 +26085,36 @@ def disassociate_instance_event_window( Returns: An instance of `DisassociateInstanceEventWindowOutput`. """ + + def disassociate_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateInstanceEventWindowOutput: return self._invoke( - input, _models.DISASSOCIATE_INSTANCE_EVENT_WINDOW, [], plugins + self._select_input( + _models.DISASSOCIATE_INSTANCE_EVENT_WINDOW, args, kwargs + ), + _models.DISASSOCIATE_INSTANCE_EVENT_WINDOW, + [], + plugins, ) + @_overload + def disassociate_ipam_byoasn( + self, + request: _models.DisassociateIpamByoasnInput + | _models.DisassociateIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateIpamByoasnOutput: ... + + @_overload def disassociate_ipam_byoasn( - self, input: DisassociateIpamByoasnInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateIpamByoasnInputDict], ) -> DisassociateIpamByoasnOutput: """ Remove the association between your Autonomous System Number (ASN) and @@ -16565,8 +26125,6 @@ def disassociate_ipam_byoasn( in the *Amazon VPC IPAM guide*. Args: - input: - An instance of `DisassociateIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16576,12 +26134,34 @@ def disassociate_ipam_byoasn( Returns: An instance of `DisassociateIpamByoasnOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_IPAM_BYOASN, [], plugins) + def disassociate_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateIpamByoasnOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_IPAM_BYOASN, args, kwargs), + _models.DISASSOCIATE_IPAM_BYOASN, + [], + plugins, + ) + + @_overload + def disassociate_ipam_resource_discovery( + self, + request: _models.DisassociateIpamResourceDiscoveryInput + | _models.DisassociateIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateIpamResourceDiscoveryOutput: ... + + @_overload def disassociate_ipam_resource_discovery( self, - input: DisassociateIpamResourceDiscoveryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateIpamResourceDiscoveryInputDict], ) -> DisassociateIpamResourceDiscoveryOutput: """ Disassociates a resource discovery from an Amazon VPC IPAM. A resource @@ -16589,8 +26169,6 @@ def disassociate_ipam_resource_discovery( resources that belong to the owning account. Args: - input: - An instance of `DisassociateIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16600,14 +26178,36 @@ def disassociate_ipam_resource_discovery( Returns: An instance of `DisassociateIpamResourceDiscoveryOutput`. """ + + def disassociate_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateIpamResourceDiscoveryOutput: return self._invoke( - input, _models.DISASSOCIATE_IPAM_RESOURCE_DISCOVERY, [], plugins + self._select_input( + _models.DISASSOCIATE_IPAM_RESOURCE_DISCOVERY, args, kwargs + ), + _models.DISASSOCIATE_IPAM_RESOURCE_DISCOVERY, + [], + plugins, ) + @_overload + def disassociate_nat_gateway_address( + self, + request: _models.DisassociateNatGatewayAddressInput + | _models.DisassociateNatGatewayAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateNatGatewayAddressOutput: ... + + @_overload def disassociate_nat_gateway_address( self, - input: DisassociateNatGatewayAddressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateNatGatewayAddressInputDict], ) -> DisassociateNatGatewayAddressOutput: """ Disassociates secondary Elastic IP addresses (EIPs) from a public NAT @@ -16628,8 +26228,6 @@ def disassociate_nat_gateway_address( released. Args: - input: - An instance of `DisassociateNatGatewayAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16639,12 +26237,34 @@ def disassociate_nat_gateway_address( Returns: An instance of `DisassociateNatGatewayAddressOutput`. """ + + def disassociate_nat_gateway_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateNatGatewayAddressOutput: return self._invoke( - input, _models.DISASSOCIATE_NAT_GATEWAY_ADDRESS, [], plugins + self._select_input(_models.DISASSOCIATE_NAT_GATEWAY_ADDRESS, args, kwargs), + _models.DISASSOCIATE_NAT_GATEWAY_ADDRESS, + [], + plugins, ) + @_overload def disassociate_route_server( - self, input: DisassociateRouteServerInput, plugins: list[Plugin] | None = None + self, + request: _models.DisassociateRouteServerInput + | _models.DisassociateRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateRouteServerOutput: ... + + @_overload + def disassociate_route_server( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateRouteServerInputDict], ) -> DisassociateRouteServerOutput: """ Disassociates a route server from a VPC. @@ -16657,8 +26277,6 @@ def disassociate_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DisassociateRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16668,10 +26286,34 @@ def disassociate_route_server( Returns: An instance of `DisassociateRouteServerOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_ROUTE_SERVER, [], plugins) + def disassociate_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateRouteServerOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_ROUTE_SERVER, args, kwargs), + _models.DISASSOCIATE_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + def disassociate_route_table( + self, + request: _models.DisassociateRouteTableInput + | _models.DisassociateRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateRouteTableOutput: ... + + @_overload def disassociate_route_table( - self, input: DisassociateRouteTableInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateRouteTableInputDict], ) -> DisassociateRouteTableOutput: """ Disassociates a subnet or gateway from a route table. @@ -16683,8 +26325,6 @@ def disassociate_route_table( in the *Amazon VPC User Guide*. Args: - input: - An instance of `DisassociateRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16694,12 +26334,34 @@ def disassociate_route_table( Returns: An instance of `DisassociateRouteTableOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_ROUTE_TABLE, [], plugins) + def disassociate_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateRouteTableOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_ROUTE_TABLE, args, kwargs), + _models.DISASSOCIATE_ROUTE_TABLE, + [], + plugins, + ) + + @_overload + def disassociate_security_group_vpc( + self, + request: _models.DisassociateSecurityGroupVpcInput + | _models.DisassociateSecurityGroupVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateSecurityGroupVpcOutput: ... + + @_overload def disassociate_security_group_vpc( self, - input: DisassociateSecurityGroupVpcInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateSecurityGroupVpcInputDict], ) -> DisassociateSecurityGroupVpcOutput: """ Disassociates a security group from a VPC. You cannot disassociate the @@ -16710,8 +26372,6 @@ def disassociate_security_group_vpc( [DescribeSecurityGroupVpcAssociations](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroupVpcAssociations.html). Args: - input: - An instance of `DisassociateSecurityGroupVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16721,12 +26381,34 @@ def disassociate_security_group_vpc( Returns: An instance of `DisassociateSecurityGroupVpcOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_SECURITY_GROUP_VPC, [], plugins) + def disassociate_security_group_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateSecurityGroupVpcOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_SECURITY_GROUP_VPC, args, kwargs), + _models.DISASSOCIATE_SECURITY_GROUP_VPC, + [], + plugins, + ) + + @_overload + def disassociate_subnet_cidr_block( + self, + request: _models.DisassociateSubnetCidrBlockInput + | _models.DisassociateSubnetCidrBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateSubnetCidrBlockOutput: ... + + @_overload def disassociate_subnet_cidr_block( self, - input: DisassociateSubnetCidrBlockInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateSubnetCidrBlockInputDict], ) -> DisassociateSubnetCidrBlockOutput: """ Disassociates a CIDR block from a subnet. Currently, you can @@ -16735,8 +26417,6 @@ def disassociate_subnet_cidr_block( you can disassociate it. Args: - input: - An instance of `DisassociateSubnetCidrBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16746,20 +26426,40 @@ def disassociate_subnet_cidr_block( Returns: An instance of `DisassociateSubnetCidrBlockOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_SUBNET_CIDR_BLOCK, [], plugins) + def disassociate_subnet_cidr_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateSubnetCidrBlockOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_SUBNET_CIDR_BLOCK, args, kwargs), + _models.DISASSOCIATE_SUBNET_CIDR_BLOCK, + [], + plugins, + ) + + @_overload def disassociate_transit_gateway_multicast_domain( self, - input: DisassociateTransitGatewayMulticastDomainInput, + request: _models.DisassociateTransitGatewayMulticastDomainInput + | _models.DisassociateTransitGatewayMulticastDomainInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateTransitGatewayMulticastDomainOutput: ... + + @_overload + def disassociate_transit_gateway_multicast_domain( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateTransitGatewayMulticastDomainInputDict], ) -> DisassociateTransitGatewayMulticastDomainOutput: """ Disassociates the specified subnets from the transit gateway multicast domain. Args: - input: - An instance of `DisassociateTransitGatewayMulticastDomainInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16769,21 +26469,41 @@ def disassociate_transit_gateway_multicast_domain( Returns: An instance of `DisassociateTransitGatewayMulticastDomainOutput`. """ + + def disassociate_transit_gateway_multicast_domain( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateTransitGatewayMulticastDomainOutput: return self._invoke( - input, _models.DISASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, [], plugins + self._select_input( + _models.DISASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, args, kwargs + ), + _models.DISASSOCIATE_TRANSIT_GATEWAY_MULTICAST_DOMAIN, + [], + plugins, ) + @_overload + def disassociate_transit_gateway_policy_table( + self, + request: _models.DisassociateTransitGatewayPolicyTableInput + | _models.DisassociateTransitGatewayPolicyTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateTransitGatewayPolicyTableOutput: ... + + @_overload def disassociate_transit_gateway_policy_table( self, - input: DisassociateTransitGatewayPolicyTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateTransitGatewayPolicyTableInputDict], ) -> DisassociateTransitGatewayPolicyTableOutput: """ Removes the association between an an attachment and a policy table. Args: - input: - An instance of `DisassociateTransitGatewayPolicyTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16793,21 +26513,41 @@ def disassociate_transit_gateway_policy_table( Returns: An instance of `DisassociateTransitGatewayPolicyTableOutput`. """ + + def disassociate_transit_gateway_policy_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateTransitGatewayPolicyTableOutput: return self._invoke( - input, _models.DISASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, [], plugins + self._select_input( + _models.DISASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, args, kwargs + ), + _models.DISASSOCIATE_TRANSIT_GATEWAY_POLICY_TABLE, + [], + plugins, ) + @_overload + def disassociate_transit_gateway_route_table( + self, + request: _models.DisassociateTransitGatewayRouteTableInput + | _models.DisassociateTransitGatewayRouteTableInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateTransitGatewayRouteTableOutput: ... + + @_overload def disassociate_transit_gateway_route_table( self, - input: DisassociateTransitGatewayRouteTableInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateTransitGatewayRouteTableInputDict], ) -> DisassociateTransitGatewayRouteTableOutput: """ Disassociates a resource attachment from a transit gateway route table. Args: - input: - An instance of `DisassociateTransitGatewayRouteTableInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16817,22 +26557,42 @@ def disassociate_transit_gateway_route_table( Returns: An instance of `DisassociateTransitGatewayRouteTableOutput`. """ + + def disassociate_transit_gateway_route_table( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateTransitGatewayRouteTableOutput: return self._invoke( - input, _models.DISASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, [], plugins + self._select_input( + _models.DISASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, args, kwargs + ), + _models.DISASSOCIATE_TRANSIT_GATEWAY_ROUTE_TABLE, + [], + plugins, ) + @_overload + def disassociate_trunk_interface( + self, + request: _models.DisassociateTrunkInterfaceInput + | _models.DisassociateTrunkInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateTrunkInterfaceOutput: ... + + @_overload def disassociate_trunk_interface( self, - input: DisassociateTrunkInterfaceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateTrunkInterfaceInputDict], ) -> DisassociateTrunkInterfaceOutput: """ Removes an association between a branch network interface with a trunk network interface. Args: - input: - An instance of `DisassociateTrunkInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16842,10 +26602,34 @@ def disassociate_trunk_interface( Returns: An instance of `DisassociateTrunkInterfaceOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_TRUNK_INTERFACE, [], plugins) + def disassociate_trunk_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateTrunkInterfaceOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_TRUNK_INTERFACE, args, kwargs), + _models.DISASSOCIATE_TRUNK_INTERFACE, + [], + plugins, + ) + + @_overload + def disassociate_vpc_cidr_block( + self, + request: _models.DisassociateVpcCidrBlockInput + | _models.DisassociateVpcCidrBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateVpcCidrBlockOutput: ... + + @_overload def disassociate_vpc_cidr_block( - self, input: DisassociateVpcCidrBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateVpcCidrBlockInputDict], ) -> DisassociateVpcCidrBlockOutput: """ Disassociates a CIDR block from a VPC. To disassociate the CIDR block, @@ -16857,8 +26641,6 @@ def disassociate_vpc_cidr_block( the VPC (the primary CIDR block). Args: - input: - An instance of `DisassociateVpcCidrBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16868,10 +26650,34 @@ def disassociate_vpc_cidr_block( Returns: An instance of `DisassociateVpcCidrBlockOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_VPC_CIDR_BLOCK, [], plugins) + def disassociate_vpc_cidr_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateVpcCidrBlockOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_VPC_CIDR_BLOCK, args, kwargs), + _models.DISASSOCIATE_VPC_CIDR_BLOCK, + [], + plugins, + ) + + @_overload + def enable_address_transfer( + self, + request: _models.EnableAddressTransferInput + | _models.EnableAddressTransferInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableAddressTransferOutput: ... + + @_overload def enable_address_transfer( - self, input: EnableAddressTransferInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableAddressTransferInputDict], ) -> EnableAddressTransferOutput: """ Enables Elastic IP address transfer. For more information, see [Transfer @@ -16880,8 +26686,6 @@ def enable_address_transfer( in the *Amazon VPC User Guide*. Args: - input: - An instance of `EnableAddressTransferInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16891,12 +26695,34 @@ def enable_address_transfer( Returns: An instance of `EnableAddressTransferOutput`. """ - return self._invoke(input, _models.ENABLE_ADDRESS_TRANSFER, [], plugins) + def enable_address_transfer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableAddressTransferOutput: + return self._invoke( + self._select_input(_models.ENABLE_ADDRESS_TRANSFER, args, kwargs), + _models.ENABLE_ADDRESS_TRANSFER, + [], + plugins, + ) + + @_overload def enable_allowed_images_settings( self, - input: EnableAllowedImagesSettingsInput, + request: _models.EnableAllowedImagesSettingsInput + | _models.EnableAllowedImagesSettingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> EnableAllowedImagesSettingsOutput: ... + + @_overload + def enable_allowed_images_settings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableAllowedImagesSettingsInputDict], ) -> EnableAllowedImagesSettingsOutput: """ Enables Allowed AMIs for your account in the specified Amazon Web @@ -16928,8 +26754,6 @@ def enable_allowed_images_settings( in *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableAllowedImagesSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16939,12 +26763,34 @@ def enable_allowed_images_settings( Returns: An instance of `EnableAllowedImagesSettingsOutput`. """ - return self._invoke(input, _models.ENABLE_ALLOWED_IMAGES_SETTINGS, [], plugins) + def enable_allowed_images_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableAllowedImagesSettingsOutput: + return self._invoke( + self._select_input(_models.ENABLE_ALLOWED_IMAGES_SETTINGS, args, kwargs), + _models.ENABLE_ALLOWED_IMAGES_SETTINGS, + [], + plugins, + ) + + @_overload + def enable_application_status_check_suppression( + self, + request: _models.EnableApplicationStatusCheckSuppressionInput + | _models.EnableApplicationStatusCheckSuppressionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableApplicationStatusCheckSuppressionOutput: ... + + @_overload def enable_application_status_check_suppression( self, - input: EnableApplicationStatusCheckSuppressionInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableApplicationStatusCheckSuppressionInputDict], ) -> EnableApplicationStatusCheckSuppressionOutput: """ Suppresses application status checks for the specified instances. While @@ -16961,8 +26807,6 @@ def enable_application_status_check_suppression( `DisableApplicationStatusCheckSuppression`. Args: - input: - An instance of `EnableApplicationStatusCheckSuppressionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16972,21 +26816,43 @@ def enable_application_status_check_suppression( Returns: An instance of `EnableApplicationStatusCheckSuppressionOutput`. """ + + def enable_application_status_check_suppression( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableApplicationStatusCheckSuppressionOutput: return self._invoke( - input, _models.ENABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, [], plugins + self._select_input( + _models.ENABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, args, kwargs + ), + _models.ENABLE_APPLICATION_STATUS_CHECK_SUPPRESSION, + [], + plugins, ) + @_overload + def enable_aws_network_performance_metric_subscription( + self, + request: _models.EnableAwsNetworkPerformanceMetricSubscriptionInput + | _models.EnableAwsNetworkPerformanceMetricSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableAwsNetworkPerformanceMetricSubscriptionOutput: ... + + @_overload def enable_aws_network_performance_metric_subscription( self, - input: EnableAwsNetworkPerformanceMetricSubscriptionInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.EnableAwsNetworkPerformanceMetricSubscriptionInputDict + ], ) -> EnableAwsNetworkPerformanceMetricSubscriptionOutput: """ Enables Infrastructure Performance subscriptions. Args: - input: - An instance of `EnableAwsNetworkPerformanceMetricSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -16996,17 +26862,36 @@ def enable_aws_network_performance_metric_subscription( Returns: An instance of `EnableAwsNetworkPerformanceMetricSubscriptionOutput`. """ + + def enable_aws_network_performance_metric_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableAwsNetworkPerformanceMetricSubscriptionOutput: return self._invoke( - input, + self._select_input( + _models.ENABLE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTION, args, kwargs + ), _models.ENABLE_AWS_NETWORK_PERFORMANCE_METRIC_SUBSCRIPTION, [], plugins, ) + @_overload + def enable_capacity_manager( + self, + request: _models.EnableCapacityManagerInput + | _models.EnableCapacityManagerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableCapacityManagerOutput: ... + + @_overload def enable_capacity_manager( self, - input: EnableCapacityManagerInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableCapacityManagerInputDict], ) -> EnableCapacityManagerOutput: """ Enables EC2 Capacity Manager for your account. This starts data @@ -17015,23 +26900,43 @@ def enable_capacity_manager( complete. Args: - input: - An instance of `EnableCapacityManagerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `EnableCapacityManagerOutput`. - """ - return self._invoke(input, _models.ENABLE_CAPACITY_MANAGER, [], plugins) + Returns: + An instance of `EnableCapacityManagerOutput`. + """ + + def enable_capacity_manager( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableCapacityManagerOutput: + return self._invoke( + self._select_input(_models.ENABLE_CAPACITY_MANAGER, args, kwargs), + _models.ENABLE_CAPACITY_MANAGER, + [], + plugins, + ) + + @_overload + def enable_ebs_encryption_by_default( + self, + request: _models.EnableEbsEncryptionByDefaultInput + | _models.EnableEbsEncryptionByDefaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableEbsEncryptionByDefaultOutput: ... + @_overload def enable_ebs_encryption_by_default( self, - input: EnableEbsEncryptionByDefaultInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableEbsEncryptionByDefaultInputDict], ) -> EnableEbsEncryptionByDefaultOutput: """ Enables EBS encryption by default for your account in the current @@ -17053,8 +26958,6 @@ def enable_ebs_encryption_by_default( types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances). Args: - input: - An instance of `EnableEbsEncryptionByDefaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17064,12 +26967,33 @@ def enable_ebs_encryption_by_default( Returns: An instance of `EnableEbsEncryptionByDefaultOutput`. """ + + def enable_ebs_encryption_by_default( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableEbsEncryptionByDefaultOutput: return self._invoke( - input, _models.ENABLE_EBS_ENCRYPTION_BY_DEFAULT, [], plugins + self._select_input(_models.ENABLE_EBS_ENCRYPTION_BY_DEFAULT, args, kwargs), + _models.ENABLE_EBS_ENCRYPTION_BY_DEFAULT, + [], + plugins, ) + @_overload + def enable_fast_launch( + self, + request: _models.EnableFastLaunchInput | _models.EnableFastLaunchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableFastLaunchOutput: ... + + @_overload def enable_fast_launch( - self, input: EnableFastLaunchInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableFastLaunchInputDict], ) -> EnableFastLaunchOutput: """ When you enable Windows fast launch for a Windows AMI, images are @@ -17085,8 +27009,6 @@ def enable_fast_launch( have been shared with you. Args: - input: - An instance of `EnableFastLaunchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17096,12 +27018,34 @@ def enable_fast_launch( Returns: An instance of `EnableFastLaunchOutput`. """ - return self._invoke(input, _models.ENABLE_FAST_LAUNCH, [], plugins) + def enable_fast_launch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableFastLaunchOutput: + return self._invoke( + self._select_input(_models.ENABLE_FAST_LAUNCH, args, kwargs), + _models.ENABLE_FAST_LAUNCH, + [], + plugins, + ) + + @_overload + def enable_fast_snapshot_restores( + self, + request: _models.EnableFastSnapshotRestoresInput + | _models.EnableFastSnapshotRestoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableFastSnapshotRestoresOutput: ... + + @_overload def enable_fast_snapshot_restores( self, - input: EnableFastSnapshotRestoresInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableFastSnapshotRestoresInputDict], ) -> EnableFastSnapshotRestoresOutput: """ Enables fast snapshot restores for the specified snapshots in the @@ -17115,8 +27059,6 @@ def enable_fast_snapshot_restores( in the *Amazon EBS User Guide*. Args: - input: - An instance of `EnableFastSnapshotRestoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17126,10 +27068,33 @@ def enable_fast_snapshot_restores( Returns: An instance of `EnableFastSnapshotRestoresOutput`. """ - return self._invoke(input, _models.ENABLE_FAST_SNAPSHOT_RESTORES, [], plugins) + def enable_fast_snapshot_restores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableFastSnapshotRestoresOutput: + return self._invoke( + self._select_input(_models.ENABLE_FAST_SNAPSHOT_RESTORES, args, kwargs), + _models.ENABLE_FAST_SNAPSHOT_RESTORES, + [], + plugins, + ) + + @_overload + def enable_image( + self, + request: _models.EnableImageInput | _models.EnableImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableImageOutput: ... + + @_overload def enable_image( - self, input: EnableImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableImageInputDict], ) -> EnableImageOutput: """ Re-enables a disabled AMI. The re-enabled AMI is marked as `available` @@ -17146,8 +27111,6 @@ def enable_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17157,12 +27120,34 @@ def enable_image( Returns: An instance of `EnableImageOutput`. """ - return self._invoke(input, _models.ENABLE_IMAGE, [], plugins) + def enable_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableImageOutput: + return self._invoke( + self._select_input(_models.ENABLE_IMAGE, args, kwargs), + _models.ENABLE_IMAGE, + [], + plugins, + ) + + @_overload + def enable_image_block_public_access( + self, + request: _models.EnableImageBlockPublicAccessInput + | _models.EnableImageBlockPublicAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableImageBlockPublicAccessOutput: ... + + @_overload def enable_image_block_public_access( self, - input: EnableImageBlockPublicAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableImageBlockPublicAccessInputDict], ) -> EnableImageBlockPublicAccessOutput: """ Enables *block public access for AMIs* at the account level in the @@ -17181,8 +27166,6 @@ def enable_image_block_public_access( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableImageBlockPublicAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17192,12 +27175,34 @@ def enable_image_block_public_access( Returns: An instance of `EnableImageBlockPublicAccessOutput`. """ + + def enable_image_block_public_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableImageBlockPublicAccessOutput: return self._invoke( - input, _models.ENABLE_IMAGE_BLOCK_PUBLIC_ACCESS, [], plugins + self._select_input(_models.ENABLE_IMAGE_BLOCK_PUBLIC_ACCESS, args, kwargs), + _models.ENABLE_IMAGE_BLOCK_PUBLIC_ACCESS, + [], + plugins, ) + @_overload + def enable_image_deprecation( + self, + request: _models.EnableImageDeprecationInput + | _models.EnableImageDeprecationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableImageDeprecationOutput: ... + + @_overload def enable_image_deprecation( - self, input: EnableImageDeprecationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableImageDeprecationInputDict], ) -> EnableImageDeprecationOutput: """ Enables deprecation of the specified AMI at the specified date and time. @@ -17207,8 +27212,6 @@ def enable_image_deprecation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableImageDeprecationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17218,12 +27221,34 @@ def enable_image_deprecation( Returns: An instance of `EnableImageDeprecationOutput`. """ - return self._invoke(input, _models.ENABLE_IMAGE_DEPRECATION, [], plugins) + def enable_image_deprecation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableImageDeprecationOutput: + return self._invoke( + self._select_input(_models.ENABLE_IMAGE_DEPRECATION, args, kwargs), + _models.ENABLE_IMAGE_DEPRECATION, + [], + plugins, + ) + + @_overload def enable_image_deregistration_protection( self, - input: EnableImageDeregistrationProtectionInput, + request: _models.EnableImageDeregistrationProtectionInput + | _models.EnableImageDeregistrationProtectionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> EnableImageDeregistrationProtectionOutput: ... + + @_overload + def enable_image_deregistration_protection( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableImageDeregistrationProtectionInputDict], ) -> EnableImageDeregistrationProtectionOutput: """ Enables deregistration protection for an AMI. When deregistration @@ -17237,8 +27262,6 @@ def enable_image_deregistration_protection( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableImageDeregistrationProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17248,14 +27271,36 @@ def enable_image_deregistration_protection( Returns: An instance of `EnableImageDeregistrationProtectionOutput`. """ + + def enable_image_deregistration_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableImageDeregistrationProtectionOutput: return self._invoke( - input, _models.ENABLE_IMAGE_DEREGISTRATION_PROTECTION, [], plugins + self._select_input( + _models.ENABLE_IMAGE_DEREGISTRATION_PROTECTION, args, kwargs + ), + _models.ENABLE_IMAGE_DEREGISTRATION_PROTECTION, + [], + plugins, ) + @_overload + def enable_instance_sql_ha_standby_detections( + self, + request: _models.EnableInstanceSqlHaStandbyDetectionsInput + | _models.EnableInstanceSqlHaStandbyDetectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableInstanceSqlHaStandbyDetectionsOutput: ... + + @_overload def enable_instance_sql_ha_standby_detections( self, - input: EnableInstanceSqlHaStandbyDetectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableInstanceSqlHaStandbyDetectionsInputDict], ) -> EnableInstanceSqlHaStandbyDetectionsOutput: """ Enable Amazon EC2 instances running in an SQL Server High Availability @@ -17276,8 +27321,6 @@ def enable_instance_sql_ha_standby_detections( detection](https://docs.aws.amazon.com/sql-server-ec2/latest/userguide/prerequisites-and-requirements.html). Args: - input: - An instance of `EnableInstanceSqlHaStandbyDetectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17287,14 +27330,36 @@ def enable_instance_sql_ha_standby_detections( Returns: An instance of `EnableInstanceSqlHaStandbyDetectionsOutput`. """ + + def enable_instance_sql_ha_standby_detections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableInstanceSqlHaStandbyDetectionsOutput: return self._invoke( - input, _models.ENABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, [], plugins + self._select_input( + _models.ENABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, args, kwargs + ), + _models.ENABLE_INSTANCE_SQL_HA_STANDBY_DETECTIONS, + [], + plugins, ) + @_overload + def enable_ipam_internet_registry_association( + self, + request: _models.EnableIpamInternetRegistryAssociationInput + | _models.EnableIpamInternetRegistryAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableIpamInternetRegistryAssociationOutput: ... + + @_overload def enable_ipam_internet_registry_association( self, - input: EnableIpamInternetRegistryAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableIpamInternetRegistryAssociationInputDict], ) -> EnableIpamInternetRegistryAssociationOutput: """ Enables Resource Public Key Infrastructure (RPKI) on an existing IPAM @@ -17304,8 +27369,6 @@ def enable_ipam_internet_registry_association( registry. Args: - input: - An instance of `EnableIpamInternetRegistryAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17315,14 +27378,36 @@ def enable_ipam_internet_registry_association( Returns: An instance of `EnableIpamInternetRegistryAssociationOutput`. """ + + def enable_ipam_internet_registry_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableIpamInternetRegistryAssociationOutput: return self._invoke( - input, _models.ENABLE_IPAM_INTERNET_REGISTRY_ASSOCIATION, [], plugins + self._select_input( + _models.ENABLE_IPAM_INTERNET_REGISTRY_ASSOCIATION, args, kwargs + ), + _models.ENABLE_IPAM_INTERNET_REGISTRY_ASSOCIATION, + [], + plugins, ) + @_overload + def enable_ipam_organization_admin_account( + self, + request: _models.EnableIpamOrganizationAdminAccountInput + | _models.EnableIpamOrganizationAdminAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableIpamOrganizationAdminAccountOutput: ... + + @_overload def enable_ipam_organization_admin_account( self, - input: EnableIpamOrganizationAdminAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableIpamOrganizationAdminAccountInputDict], ) -> EnableIpamOrganizationAdminAccountOutput: """ Enable an Organizations member account as the IPAM admin account. You @@ -17332,8 +27417,6 @@ def enable_ipam_organization_admin_account( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `EnableIpamOrganizationAdminAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17343,12 +27426,35 @@ def enable_ipam_organization_admin_account( Returns: An instance of `EnableIpamOrganizationAdminAccountOutput`. """ + + def enable_ipam_organization_admin_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableIpamOrganizationAdminAccountOutput: return self._invoke( - input, _models.ENABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, [], plugins + self._select_input( + _models.ENABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, args, kwargs + ), + _models.ENABLE_IPAM_ORGANIZATION_ADMIN_ACCOUNT, + [], + plugins, ) + @_overload + def enable_ipam_policy( + self, + request: _models.EnableIpamPolicyInput | _models.EnableIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableIpamPolicyOutput: ... + + @_overload def enable_ipam_policy( - self, input: EnableIpamPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableIpamPolicyInputDict], ) -> EnableIpamPolicyOutput: """ Enables an IPAM policy. @@ -17368,8 +27474,6 @@ def enable_ipam_policy( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `EnableIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17379,12 +27483,36 @@ def enable_ipam_policy( Returns: An instance of `EnableIpamPolicyOutput`. """ - return self._invoke(input, _models.ENABLE_IPAM_POLICY, [], plugins) + def enable_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableIpamPolicyOutput: + return self._invoke( + self._select_input(_models.ENABLE_IPAM_POLICY, args, kwargs), + _models.ENABLE_IPAM_POLICY, + [], + plugins, + ) + + @_overload + def enable_reachability_analyzer_organization_sharing( + self, + request: _models.EnableReachabilityAnalyzerOrganizationSharingInput + | _models.EnableReachabilityAnalyzerOrganizationSharingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableReachabilityAnalyzerOrganizationSharingOutput: ... + + @_overload def enable_reachability_analyzer_organization_sharing( self, - input: EnableReachabilityAnalyzerOrganizationSharingInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.EnableReachabilityAnalyzerOrganizationSharingInputDict + ], ) -> EnableReachabilityAnalyzerOrganizationSharingOutput: """ Establishes a trust relationship between Reachability Analyzer and @@ -17396,8 +27524,6 @@ def enable_reachability_analyzer_organization_sharing( analysis using resources from the member accounts. Args: - input: - An instance of `EnableReachabilityAnalyzerOrganizationSharingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17407,17 +27533,36 @@ def enable_reachability_analyzer_organization_sharing( Returns: An instance of `EnableReachabilityAnalyzerOrganizationSharingOutput`. """ + + def enable_reachability_analyzer_organization_sharing( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableReachabilityAnalyzerOrganizationSharingOutput: return self._invoke( - input, + self._select_input( + _models.ENABLE_REACHABILITY_ANALYZER_ORGANIZATION_SHARING, args, kwargs + ), _models.ENABLE_REACHABILITY_ANALYZER_ORGANIZATION_SHARING, [], plugins, ) + @_overload def enable_route_server_propagation( self, - input: EnableRouteServerPropagationInput, + request: _models.EnableRouteServerPropagationInput + | _models.EnableRouteServerPropagationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> EnableRouteServerPropagationOutput: ... + + @_overload + def enable_route_server_propagation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableRouteServerPropagationInputDict], ) -> EnableRouteServerPropagationOutput: """ Defines which route tables the route server can update with routes. @@ -17431,8 +27576,6 @@ def enable_route_server_propagation( in the *Amazon VPC User Guide*. Args: - input: - An instance of `EnableRouteServerPropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17442,12 +27585,34 @@ def enable_route_server_propagation( Returns: An instance of `EnableRouteServerPropagationOutput`. """ - return self._invoke(input, _models.ENABLE_ROUTE_SERVER_PROPAGATION, [], plugins) + def enable_route_server_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableRouteServerPropagationOutput: + return self._invoke( + self._select_input(_models.ENABLE_ROUTE_SERVER_PROPAGATION, args, kwargs), + _models.ENABLE_ROUTE_SERVER_PROPAGATION, + [], + plugins, + ) + + @_overload + def enable_serial_console_access( + self, + request: _models.EnableSerialConsoleAccessInput + | _models.EnableSerialConsoleAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableSerialConsoleAccessOutput: ... + + @_overload def enable_serial_console_access( self, - input: EnableSerialConsoleAccessInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableSerialConsoleAccessInputDict], ) -> EnableSerialConsoleAccessOutput: """ Enables access to the EC2 serial console of all instances for your @@ -17458,8 +27623,6 @@ def enable_serial_console_access( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `EnableSerialConsoleAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17469,12 +27632,34 @@ def enable_serial_console_access( Returns: An instance of `EnableSerialConsoleAccessOutput`. """ - return self._invoke(input, _models.ENABLE_SERIAL_CONSOLE_ACCESS, [], plugins) + def enable_serial_console_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableSerialConsoleAccessOutput: + return self._invoke( + self._select_input(_models.ENABLE_SERIAL_CONSOLE_ACCESS, args, kwargs), + _models.ENABLE_SERIAL_CONSOLE_ACCESS, + [], + plugins, + ) + + @_overload + def enable_snapshot_block_public_access( + self, + request: _models.EnableSnapshotBlockPublicAccessInput + | _models.EnableSnapshotBlockPublicAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableSnapshotBlockPublicAccessOutput: ... + + @_overload def enable_snapshot_block_public_access( self, - input: EnableSnapshotBlockPublicAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableSnapshotBlockPublicAccessInputDict], ) -> EnableSnapshotBlockPublicAccessOutput: """ Enables or modifies the *block public access for snapshots* setting at @@ -17500,8 +27685,6 @@ def enable_snapshot_block_public_access( in the *Amazon EBS User Guide*. Args: - input: - An instance of `EnableSnapshotBlockPublicAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17511,22 +27694,42 @@ def enable_snapshot_block_public_access( Returns: An instance of `EnableSnapshotBlockPublicAccessOutput`. """ + + def enable_snapshot_block_public_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableSnapshotBlockPublicAccessOutput: return self._invoke( - input, _models.ENABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, [], plugins + self._select_input( + _models.ENABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, args, kwargs + ), + _models.ENABLE_SNAPSHOT_BLOCK_PUBLIC_ACCESS, + [], + plugins, ) + @_overload + def enable_transit_gateway_route_table_propagation( + self, + request: _models.EnableTransitGatewayRouteTablePropagationInput + | _models.EnableTransitGatewayRouteTablePropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableTransitGatewayRouteTablePropagationOutput: ... + + @_overload def enable_transit_gateway_route_table_propagation( self, - input: EnableTransitGatewayRouteTablePropagationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableTransitGatewayRouteTablePropagationInputDict], ) -> EnableTransitGatewayRouteTablePropagationOutput: """ Enables the specified attachment to propagate routes to the specified propagation route table. Args: - input: - An instance of `EnableTransitGatewayRouteTablePropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17536,20 +27739,42 @@ def enable_transit_gateway_route_table_propagation( Returns: An instance of `EnableTransitGatewayRouteTablePropagationOutput`. """ + + def enable_transit_gateway_route_table_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableTransitGatewayRouteTablePropagationOutput: return self._invoke( - input, _models.ENABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, [], plugins + self._select_input( + _models.ENABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, args, kwargs + ), + _models.ENABLE_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATION, + [], + plugins, ) + @_overload def enable_vgw_route_propagation( - self, input: EnableVgwRoutePropagationInput, plugins: list[Plugin] | None = None + self, + request: _models.EnableVgwRoutePropagationInput + | _models.EnableVgwRoutePropagationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableVgwRoutePropagationOutput: ... + + @_overload + def enable_vgw_route_propagation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableVgwRoutePropagationInputDict], ) -> EnableVgwRoutePropagationOutput: """ Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC. Args: - input: - An instance of `EnableVgwRoutePropagationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17559,18 +27784,39 @@ def enable_vgw_route_propagation( Returns: An instance of `EnableVgwRoutePropagationOutput`. """ - return self._invoke(input, _models.ENABLE_VGW_ROUTE_PROPAGATION, [], plugins) + def enable_vgw_route_propagation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableVgwRoutePropagationOutput: + return self._invoke( + self._select_input(_models.ENABLE_VGW_ROUTE_PROPAGATION, args, kwargs), + _models.ENABLE_VGW_ROUTE_PROPAGATION, + [], + plugins, + ) + + @_overload + def enable_volume_io( + self, + request: _models.EnableVolumeIOInput | _models.EnableVolumeIOInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableVolumeIOOutput: ... + + @_overload def enable_volume_io( - self, input: EnableVolumeIOInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableVolumeIOInputDict], ) -> EnableVolumeIOOutput: """ Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent. Args: - input: - An instance of `EnableVolumeIOInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17580,10 +27826,34 @@ def enable_volume_io( Returns: An instance of `EnableVolumeIOOutput`. """ - return self._invoke(input, _models.ENABLE_VOLUME_IO, [], plugins) + def enable_volume_io( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableVolumeIOOutput: + return self._invoke( + self._select_input(_models.ENABLE_VOLUME_IO, args, kwargs), + _models.ENABLE_VOLUME_IO, + [], + plugins, + ) + + @_overload + def enable_vpc_classic_link( + self, + request: _models.EnableVpcClassicLinkInput + | _models.EnableVpcClassicLinkInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableVpcClassicLinkOutput: ... + + @_overload def enable_vpc_classic_link( - self, input: EnableVpcClassicLinkInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableVpcClassicLinkInputDict], ) -> EnableVpcClassicLinkOutput: """ Note: @@ -17597,8 +27867,6 @@ def enable_vpc_classic_link( `10.0.0.0/16` and `10.1.0.0/16` IP address ranges. Args: - input: - An instance of `EnableVpcClassicLinkInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17608,12 +27876,34 @@ def enable_vpc_classic_link( Returns: An instance of `EnableVpcClassicLinkOutput`. """ - return self._invoke(input, _models.ENABLE_VPC_CLASSIC_LINK, [], plugins) + def enable_vpc_classic_link( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableVpcClassicLinkOutput: + return self._invoke( + self._select_input(_models.ENABLE_VPC_CLASSIC_LINK, args, kwargs), + _models.ENABLE_VPC_CLASSIC_LINK, + [], + plugins, + ) + + @_overload + def enable_vpc_classic_link_dns_support( + self, + request: _models.EnableVpcClassicLinkDnsSupportInput + | _models.EnableVpcClassicLinkDnsSupportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableVpcClassicLinkDnsSupportOutput: ... + + @_overload def enable_vpc_classic_link_dns_support( self, - input: EnableVpcClassicLinkDnsSupportInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableVpcClassicLinkDnsSupportInputDict], ) -> EnableVpcClassicLinkDnsSupportOutput: """ Note: @@ -17629,8 +27919,6 @@ def enable_vpc_classic_link_dns_support( You must specify a VPC ID in the request. Args: - input: - An instance of `EnableVpcClassicLinkDnsSupportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17640,22 +27928,44 @@ def enable_vpc_classic_link_dns_support( Returns: An instance of `EnableVpcClassicLinkDnsSupportOutput`. """ + + def enable_vpc_classic_link_dns_support( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableVpcClassicLinkDnsSupportOutput: return self._invoke( - input, _models.ENABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, [], plugins + self._select_input( + _models.ENABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, args, kwargs + ), + _models.ENABLE_VPC_CLASSIC_LINK_DNS_SUPPORT, + [], + plugins, ) + @_overload def export_client_vpn_client_certificate_revocation_list( self, - input: ExportClientVpnClientCertificateRevocationListInput, + request: _models.ExportClientVpnClientCertificateRevocationListInput + | _models.ExportClientVpnClientCertificateRevocationListInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ExportClientVpnClientCertificateRevocationListOutput: ... + + @_overload + def export_client_vpn_client_certificate_revocation_list( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ExportClientVpnClientCertificateRevocationListInputDict + ], ) -> ExportClientVpnClientCertificateRevocationListOutput: """ Downloads the client certificate revocation list for the specified Client VPN endpoint. Args: - input: - An instance of `ExportClientVpnClientCertificateRevocationListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17665,17 +27975,38 @@ def export_client_vpn_client_certificate_revocation_list( Returns: An instance of `ExportClientVpnClientCertificateRevocationListOutput`. """ + + def export_client_vpn_client_certificate_revocation_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportClientVpnClientCertificateRevocationListOutput: return self._invoke( - input, + self._select_input( + _models.EXPORT_CLIENT_VPN_CLIENT_CERTIFICATE_REVOCATION_LIST, + args, + kwargs, + ), _models.EXPORT_CLIENT_VPN_CLIENT_CERTIFICATE_REVOCATION_LIST, [], plugins, ) + @_overload + def export_client_vpn_client_configuration( + self, + request: _models.ExportClientVpnClientConfigurationInput + | _models.ExportClientVpnClientConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportClientVpnClientConfigurationOutput: ... + + @_overload def export_client_vpn_client_configuration( self, - input: ExportClientVpnClientConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportClientVpnClientConfigurationInputDict], ) -> ExportClientVpnClientConfigurationOutput: """ Downloads the contents of the Client VPN endpoint configuration file for @@ -17684,8 +28015,6 @@ def export_client_vpn_client_configuration( clients need to establish a connection with the Client VPN endpoint. Args: - input: - An instance of `ExportClientVpnClientConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17695,12 +28024,35 @@ def export_client_vpn_client_configuration( Returns: An instance of `ExportClientVpnClientConfigurationOutput`. """ + + def export_client_vpn_client_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportClientVpnClientConfigurationOutput: return self._invoke( - input, _models.EXPORT_CLIENT_VPN_CLIENT_CONFIGURATION, [], plugins + self._select_input( + _models.EXPORT_CLIENT_VPN_CLIENT_CONFIGURATION, args, kwargs + ), + _models.EXPORT_CLIENT_VPN_CLIENT_CONFIGURATION, + [], + plugins, ) + @_overload def export_image( - self, input: ExportImageInput, plugins: list[Plugin] | None = None + self, + request: _models.ExportImageInput | _models.ExportImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportImageOutput: ... + + @_overload + def export_image( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportImageInputDict], ) -> ExportImageOutput: """ Exports an Amazon Machine Image (AMI) to a VM file. For more @@ -17709,8 +28061,6 @@ def export_image( in the *VM Import/Export User Guide*. Args: - input: - An instance of `ExportImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17720,12 +28070,34 @@ def export_image( Returns: An instance of `ExportImageOutput`. """ - return self._invoke(input, _models.EXPORT_IMAGE, [], plugins) + def export_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportImageOutput: + return self._invoke( + self._select_input(_models.EXPORT_IMAGE, args, kwargs), + _models.EXPORT_IMAGE, + [], + plugins, + ) + + @_overload + def export_transit_gateway_routes( + self, + request: _models.ExportTransitGatewayRoutesInput + | _models.ExportTransitGatewayRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportTransitGatewayRoutesOutput: ... + + @_overload def export_transit_gateway_routes( self, - input: ExportTransitGatewayRoutesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExportTransitGatewayRoutesInputDict], ) -> ExportTransitGatewayRoutesOutput: """ Exports routes from the specified transit gateway route table to the @@ -17738,30 +28110,50 @@ def export_transit_gateway_routes( in the *Amazon Web Services Transit Gateways Guide*. Args: - input: - An instance of `ExportTransitGatewayRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ExportTransitGatewayRoutesOutput`. - """ - return self._invoke(input, _models.EXPORT_TRANSIT_GATEWAY_ROUTES, [], plugins) + Returns: + An instance of `ExportTransitGatewayRoutesOutput`. + """ + + def export_transit_gateway_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportTransitGatewayRoutesOutput: + return self._invoke( + self._select_input(_models.EXPORT_TRANSIT_GATEWAY_ROUTES, args, kwargs), + _models.EXPORT_TRANSIT_GATEWAY_ROUTES, + [], + plugins, + ) + + @_overload + def export_verified_access_instance_client_configuration( + self, + request: _models.ExportVerifiedAccessInstanceClientConfigurationInput + | _models.ExportVerifiedAccessInstanceClientConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExportVerifiedAccessInstanceClientConfigurationOutput: ... + @_overload def export_verified_access_instance_client_configuration( self, - input: ExportVerifiedAccessInstanceClientConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ExportVerifiedAccessInstanceClientConfigurationInputDict + ], ) -> ExportVerifiedAccessInstanceClientConfigurationOutput: """ Exports the client configuration for a Verified Access instance. Args: - input: - An instance of `ExportVerifiedAccessInstanceClientConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17771,15 +28163,38 @@ def export_verified_access_instance_client_configuration( Returns: An instance of `ExportVerifiedAccessInstanceClientConfigurationOutput`. """ + + def export_verified_access_instance_client_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExportVerifiedAccessInstanceClientConfigurationOutput: return self._invoke( - input, + self._select_input( + _models.EXPORT_VERIFIED_ACCESS_INSTANCE_CLIENT_CONFIGURATION, + args, + kwargs, + ), _models.EXPORT_VERIFIED_ACCESS_INSTANCE_CLIENT_CONFIGURATION, [], plugins, ) + @_overload + def get_active_vpn_tunnel_status( + self, + request: _models.GetActiveVpnTunnelStatusInput + | _models.GetActiveVpnTunnelStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetActiveVpnTunnelStatusOutput: ... + + @_overload def get_active_vpn_tunnel_status( - self, input: GetActiveVpnTunnelStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetActiveVpnTunnelStatusInputDict], ) -> GetActiveVpnTunnelStatusOutput: """ Returns the currently negotiated security parameters for an active VPN @@ -17787,8 +28202,6 @@ def get_active_vpn_tunnel_status( integrity algorithms. Args: - input: - An instance of `GetActiveVpnTunnelStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17798,12 +28211,34 @@ def get_active_vpn_tunnel_status( Returns: An instance of `GetActiveVpnTunnelStatusOutput`. """ - return self._invoke(input, _models.GET_ACTIVE_VPN_TUNNEL_STATUS, [], plugins) + def get_active_vpn_tunnel_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetActiveVpnTunnelStatusOutput: + return self._invoke( + self._select_input(_models.GET_ACTIVE_VPN_TUNNEL_STATUS, args, kwargs), + _models.GET_ACTIVE_VPN_TUNNEL_STATUS, + [], + plugins, + ) + + @_overload + def get_allowed_images_settings( + self, + request: _models.GetAllowedImagesSettingsInput + | _models.GetAllowedImagesSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAllowedImagesSettingsOutput: ... + + @_overload def get_allowed_images_settings( self, - input: GetAllowedImagesSettingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAllowedImagesSettingsInputDict], ) -> GetAllowedImagesSettingsOutput: """ Gets the current state of the Allowed AMIs setting and the list of @@ -17820,8 +28255,6 @@ def get_allowed_images_settings( in *Amazon EC2 User Guide*. Args: - input: - An instance of `GetAllowedImagesSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17831,12 +28264,34 @@ def get_allowed_images_settings( Returns: An instance of `GetAllowedImagesSettingsOutput`. """ - return self._invoke(input, _models.GET_ALLOWED_IMAGES_SETTINGS, [], plugins) + def get_allowed_images_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAllowedImagesSettingsOutput: + return self._invoke( + self._select_input(_models.GET_ALLOWED_IMAGES_SETTINGS, args, kwargs), + _models.GET_ALLOWED_IMAGES_SETTINGS, + [], + plugins, + ) + + @_overload + def get_associated_enclave_certificate_iam_roles( + self, + request: _models.GetAssociatedEnclaveCertificateIamRolesInput + | _models.GetAssociatedEnclaveCertificateIamRolesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAssociatedEnclaveCertificateIamRolesOutput: ... + + @_overload def get_associated_enclave_certificate_iam_roles( self, - input: GetAssociatedEnclaveCertificateIamRolesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAssociatedEnclaveCertificateIamRolesInputDict], ) -> GetAssociatedEnclaveCertificateIamRolesOutput: """ Returns the IAM roles that are associated with the specified ACM (ACM) @@ -17846,8 +28301,6 @@ def get_associated_enclave_certificate_iam_roles( that's used to encrypt the private key. Args: - input: - An instance of `GetAssociatedEnclaveCertificateIamRolesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17857,22 +28310,42 @@ def get_associated_enclave_certificate_iam_roles( Returns: An instance of `GetAssociatedEnclaveCertificateIamRolesOutput`. """ + + def get_associated_enclave_certificate_iam_roles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAssociatedEnclaveCertificateIamRolesOutput: return self._invoke( - input, _models.GET_ASSOCIATED_ENCLAVE_CERTIFICATE_IAM_ROLES, [], plugins + self._select_input( + _models.GET_ASSOCIATED_ENCLAVE_CERTIFICATE_IAM_ROLES, args, kwargs + ), + _models.GET_ASSOCIATED_ENCLAVE_CERTIFICATE_IAM_ROLES, + [], + plugins, ) + @_overload + def get_associated_ipv6_pool_cidrs( + self, + request: _models.GetAssociatedIpv6PoolCidrsInput + | _models.GetAssociatedIpv6PoolCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAssociatedIpv6PoolCidrsOutput: ... + + @_overload def get_associated_ipv6_pool_cidrs( self, - input: GetAssociatedIpv6PoolCidrsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAssociatedIpv6PoolCidrsInputDict], ) -> GetAssociatedIpv6PoolCidrsOutput: """ Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool. Args: - input: - An instance of `GetAssociatedIpv6PoolCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17882,19 +28355,39 @@ def get_associated_ipv6_pool_cidrs( Returns: An instance of `GetAssociatedIpv6PoolCidrsOutput`. """ - return self._invoke(input, _models.GET_ASSOCIATED_IPV6_POOL_CIDRS, [], plugins) + def get_associated_ipv6_pool_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAssociatedIpv6PoolCidrsOutput: + return self._invoke( + self._select_input(_models.GET_ASSOCIATED_IPV6_POOL_CIDRS, args, kwargs), + _models.GET_ASSOCIATED_IPV6_POOL_CIDRS, + [], + plugins, + ) + + @_overload + def get_aws_network_performance_data( + self, + request: _models.GetAwsNetworkPerformanceDataInput + | _models.GetAwsNetworkPerformanceDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAwsNetworkPerformanceDataOutput: ... + + @_overload def get_aws_network_performance_data( self, - input: GetAwsNetworkPerformanceDataInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAwsNetworkPerformanceDataInputDict], ) -> GetAwsNetworkPerformanceDataOutput: """ Gets network performance data. Args: - input: - An instance of `GetAwsNetworkPerformanceDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17904,14 +28397,34 @@ def get_aws_network_performance_data( Returns: An instance of `GetAwsNetworkPerformanceDataOutput`. """ + + def get_aws_network_performance_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAwsNetworkPerformanceDataOutput: return self._invoke( - input, _models.GET_AWS_NETWORK_PERFORMANCE_DATA, [], plugins + self._select_input(_models.GET_AWS_NETWORK_PERFORMANCE_DATA, args, kwargs), + _models.GET_AWS_NETWORK_PERFORMANCE_DATA, + [], + plugins, ) + @_overload + def get_capacity_manager_attributes( + self, + request: _models.GetCapacityManagerAttributesInput + | _models.GetCapacityManagerAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerAttributesOutput: ... + + @_overload def get_capacity_manager_attributes( self, - input: GetCapacityManagerAttributesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerAttributesInputDict], ) -> GetCapacityManagerAttributesOutput: """ Retrieves the current configuration and status of EC2 Capacity Manager @@ -17919,8 +28432,6 @@ def get_capacity_manager_attributes( settings, and data ingestion status. Args: - input: - An instance of `GetCapacityManagerAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17930,12 +28441,34 @@ def get_capacity_manager_attributes( Returns: An instance of `GetCapacityManagerAttributesOutput`. """ - return self._invoke(input, _models.GET_CAPACITY_MANAGER_ATTRIBUTES, [], plugins) + def get_capacity_manager_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerAttributesOutput: + return self._invoke( + self._select_input(_models.GET_CAPACITY_MANAGER_ATTRIBUTES, args, kwargs), + _models.GET_CAPACITY_MANAGER_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def get_capacity_manager_metric_data( + self, + request: _models.GetCapacityManagerMetricDataInput + | _models.GetCapacityManagerMetricDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerMetricDataOutput: ... + + @_overload def get_capacity_manager_metric_data( self, - input: GetCapacityManagerMetricDataInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerMetricDataInputDict], ) -> GetCapacityManagerMetricDataOutput: """ Retrieves capacity usage metrics for your EC2 resources. Returns @@ -17945,8 +28478,6 @@ def get_capacity_manager_metric_data( instance family. Args: - input: - An instance of `GetCapacityManagerMetricDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17956,14 +28487,34 @@ def get_capacity_manager_metric_data( Returns: An instance of `GetCapacityManagerMetricDataOutput`. """ + + def get_capacity_manager_metric_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerMetricDataOutput: return self._invoke( - input, _models.GET_CAPACITY_MANAGER_METRIC_DATA, [], plugins + self._select_input(_models.GET_CAPACITY_MANAGER_METRIC_DATA, args, kwargs), + _models.GET_CAPACITY_MANAGER_METRIC_DATA, + [], + plugins, ) + @_overload + def get_capacity_manager_metric_dimensions( + self, + request: _models.GetCapacityManagerMetricDimensionsInput + | _models.GetCapacityManagerMetricDimensionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerMetricDimensionsOutput: ... + + @_overload def get_capacity_manager_metric_dimensions( self, - input: GetCapacityManagerMetricDimensionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerMetricDimensionsInputDict], ) -> GetCapacityManagerMetricDimensionsOutput: """ Retrieves the available dimension values for capacity metrics within a @@ -17972,8 +28523,6 @@ def get_capacity_manager_metric_dimensions( filtering and grouping. Args: - input: - An instance of `GetCapacityManagerMetricDimensionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -17983,14 +28532,36 @@ def get_capacity_manager_metric_dimensions( Returns: An instance of `GetCapacityManagerMetricDimensionsOutput`. """ + + def get_capacity_manager_metric_dimensions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerMetricDimensionsOutput: return self._invoke( - input, _models.GET_CAPACITY_MANAGER_METRIC_DIMENSIONS, [], plugins + self._select_input( + _models.GET_CAPACITY_MANAGER_METRIC_DIMENSIONS, args, kwargs + ), + _models.GET_CAPACITY_MANAGER_METRIC_DIMENSIONS, + [], + plugins, ) + @_overload + def get_capacity_manager_monitored_tag_keys( + self, + request: _models.GetCapacityManagerMonitoredTagKeysInput + | _models.GetCapacityManagerMonitoredTagKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerMonitoredTagKeysOutput: ... + + @_overload def get_capacity_manager_monitored_tag_keys( self, - input: GetCapacityManagerMonitoredTagKeysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerMonitoredTagKeysInputDict], ) -> GetCapacityManagerMonitoredTagKeysOutput: """ Retrieves the tag keys that are currently being monitored by EC2 @@ -17999,8 +28570,6 @@ def get_capacity_manager_monitored_tag_keys( values. Args: - input: - An instance of `GetCapacityManagerMonitoredTagKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18010,14 +28579,36 @@ def get_capacity_manager_monitored_tag_keys( Returns: An instance of `GetCapacityManagerMonitoredTagKeysOutput`. """ + + def get_capacity_manager_monitored_tag_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerMonitoredTagKeysOutput: return self._invoke( - input, _models.GET_CAPACITY_MANAGER_MONITORED_TAG_KEYS, [], plugins + self._select_input( + _models.GET_CAPACITY_MANAGER_MONITORED_TAG_KEYS, args, kwargs + ), + _models.GET_CAPACITY_MANAGER_MONITORED_TAG_KEYS, + [], + plugins, ) + @_overload def get_capacity_manager_supportability_scores( self, - input: GetCapacityManagerSupportabilityScoresInput, + request: _models.GetCapacityManagerSupportabilityScoresInput + | _models.GetCapacityManagerSupportabilityScoresInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetCapacityManagerSupportabilityScoresOutput: ... + + @_overload + def get_capacity_manager_supportability_scores( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityManagerSupportabilityScoresInputDict], ) -> GetCapacityManagerSupportabilityScoresOutput: """ Scores how well each instance type and Availability Zone combination can @@ -18037,8 +28628,6 @@ def get_capacity_manager_supportability_scores( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetCapacityManagerSupportabilityScoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18048,14 +28637,36 @@ def get_capacity_manager_supportability_scores( Returns: An instance of `GetCapacityManagerSupportabilityScoresOutput`. """ + + def get_capacity_manager_supportability_scores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityManagerSupportabilityScoresOutput: return self._invoke( - input, _models.GET_CAPACITY_MANAGER_SUPPORTABILITY_SCORES, [], plugins + self._select_input( + _models.GET_CAPACITY_MANAGER_SUPPORTABILITY_SCORES, args, kwargs + ), + _models.GET_CAPACITY_MANAGER_SUPPORTABILITY_SCORES, + [], + plugins, ) + @_overload + def get_capacity_reservation_usage( + self, + request: _models.GetCapacityReservationUsageInput + | _models.GetCapacityReservationUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityReservationUsageOutput: ... + + @_overload def get_capacity_reservation_usage( self, - input: GetCapacityReservationUsageInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityReservationUsageInputDict], ) -> GetCapacityReservationUsageOutput: """ Gets usage information about a Capacity Reservation. If the Capacity @@ -18065,8 +28676,6 @@ def get_capacity_reservation_usage( shows only the Capacity Reservation owner's usage. Args: - input: - An instance of `GetCapacityReservationUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18076,19 +28685,39 @@ def get_capacity_reservation_usage( Returns: An instance of `GetCapacityReservationUsageOutput`. """ - return self._invoke(input, _models.GET_CAPACITY_RESERVATION_USAGE, [], plugins) + def get_capacity_reservation_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityReservationUsageOutput: + return self._invoke( + self._select_input(_models.GET_CAPACITY_RESERVATION_USAGE, args, kwargs), + _models.GET_CAPACITY_RESERVATION_USAGE, + [], + plugins, + ) + + @_overload + def get_client_vpn_endpoint_authorization_policy( + self, + request: _models.GetClientVpnEndpointAuthorizationPolicyInput + | _models.GetClientVpnEndpointAuthorizationPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetClientVpnEndpointAuthorizationPolicyOutput: ... + + @_overload def get_client_vpn_endpoint_authorization_policy( self, - input: GetClientVpnEndpointAuthorizationPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetClientVpnEndpointAuthorizationPolicyInputDict], ) -> GetClientVpnEndpointAuthorizationPolicyOutput: """ Describes the authorization policy for a Client VPN endpoint. Args: - input: - An instance of `GetClientVpnEndpointAuthorizationPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18098,20 +28727,41 @@ def get_client_vpn_endpoint_authorization_policy( Returns: An instance of `GetClientVpnEndpointAuthorizationPolicyOutput`. """ + + def get_client_vpn_endpoint_authorization_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetClientVpnEndpointAuthorizationPolicyOutput: return self._invoke( - input, _models.GET_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, [], plugins + self._select_input( + _models.GET_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, args, kwargs + ), + _models.GET_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, + [], + plugins, ) + @_overload + def get_coip_pool_usage( + self, + request: _models.GetCoipPoolUsageInput | _models.GetCoipPoolUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCoipPoolUsageOutput: ... + + @_overload def get_coip_pool_usage( - self, input: GetCoipPoolUsageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCoipPoolUsageInputDict], ) -> GetCoipPoolUsageOutput: """ Describes the allocations from the specified customer-owned address pool. Args: - input: - An instance of `GetCoipPoolUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18121,10 +28771,33 @@ def get_coip_pool_usage( Returns: An instance of `GetCoipPoolUsageOutput`. """ - return self._invoke(input, _models.GET_COIP_POOL_USAGE, [], plugins) + def get_coip_pool_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCoipPoolUsageOutput: + return self._invoke( + self._select_input(_models.GET_COIP_POOL_USAGE, args, kwargs), + _models.GET_COIP_POOL_USAGE, + [], + plugins, + ) + + @_overload + def get_console_output( + self, + request: _models.GetConsoleOutputInput | _models.GetConsoleOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConsoleOutputOutput: ... + + @_overload def get_console_output( - self, input: GetConsoleOutputInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConsoleOutputInputDict], ) -> GetConsoleOutputOutput: """ Gets the console output for the specified instance. For Linux instances, @@ -18138,8 +28811,6 @@ def get_console_output( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetConsoleOutputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18149,10 +28820,34 @@ def get_console_output( Returns: An instance of `GetConsoleOutputOutput`. """ - return self._invoke(input, _models.GET_CONSOLE_OUTPUT, [], plugins) + def get_console_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConsoleOutputOutput: + return self._invoke( + self._select_input(_models.GET_CONSOLE_OUTPUT, args, kwargs), + _models.GET_CONSOLE_OUTPUT, + [], + plugins, + ) + + @_overload + def get_console_screenshot( + self, + request: _models.GetConsoleScreenshotInput + | _models.GetConsoleScreenshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetConsoleScreenshotOutput: ... + + @_overload def get_console_screenshot( - self, input: GetConsoleScreenshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConsoleScreenshotInputDict], ) -> GetConsoleScreenshotOutput: """ Retrieve a JPG-format screenshot of a running instance to help with @@ -18165,8 +28860,6 @@ def get_console_screenshot( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetConsoleScreenshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18176,12 +28869,34 @@ def get_console_screenshot( Returns: An instance of `GetConsoleScreenshotOutput`. """ - return self._invoke(input, _models.GET_CONSOLE_SCREENSHOT, [], plugins) + def get_console_screenshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConsoleScreenshotOutput: + return self._invoke( + self._select_input(_models.GET_CONSOLE_SCREENSHOT, args, kwargs), + _models.GET_CONSOLE_SCREENSHOT, + [], + plugins, + ) + + @_overload + def get_declarative_policies_report_summary( + self, + request: _models.GetDeclarativePoliciesReportSummaryInput + | _models.GetDeclarativePoliciesReportSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDeclarativePoliciesReportSummaryOutput: ... + + @_overload def get_declarative_policies_report_summary( self, - input: GetDeclarativePoliciesReportSummaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDeclarativePoliciesReportSummaryInputDict], ) -> GetDeclarativePoliciesReportSummaryOutput: """ Retrieves a summary of the account status report. @@ -18200,8 +28915,6 @@ def get_declarative_policies_report_summary( in the *Amazon Web Services Organizations User Guide*. Args: - input: - An instance of `GetDeclarativePoliciesReportSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18211,14 +28924,36 @@ def get_declarative_policies_report_summary( Returns: An instance of `GetDeclarativePoliciesReportSummaryOutput`. """ + + def get_declarative_policies_report_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDeclarativePoliciesReportSummaryOutput: return self._invoke( - input, _models.GET_DECLARATIVE_POLICIES_REPORT_SUMMARY, [], plugins + self._select_input( + _models.GET_DECLARATIVE_POLICIES_REPORT_SUMMARY, args, kwargs + ), + _models.GET_DECLARATIVE_POLICIES_REPORT_SUMMARY, + [], + plugins, ) + @_overload + def get_default_credit_specification( + self, + request: _models.GetDefaultCreditSpecificationInput + | _models.GetDefaultCreditSpecificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDefaultCreditSpecificationOutput: ... + + @_overload def get_default_credit_specification( self, - input: GetDefaultCreditSpecificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDefaultCreditSpecificationInputDict], ) -> GetDefaultCreditSpecificationOutput: """ Describes the default credit option for CPU usage of a burstable @@ -18229,8 +28964,6 @@ def get_default_credit_specification( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetDefaultCreditSpecificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18240,14 +28973,34 @@ def get_default_credit_specification( Returns: An instance of `GetDefaultCreditSpecificationOutput`. """ + + def get_default_credit_specification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDefaultCreditSpecificationOutput: return self._invoke( - input, _models.GET_DEFAULT_CREDIT_SPECIFICATION, [], plugins + self._select_input(_models.GET_DEFAULT_CREDIT_SPECIFICATION, args, kwargs), + _models.GET_DEFAULT_CREDIT_SPECIFICATION, + [], + plugins, ) + @_overload + def get_ebs_default_kms_key_id( + self, + request: _models.GetEbsDefaultKmsKeyIdInput + | _models.GetEbsDefaultKmsKeyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEbsDefaultKmsKeyIdOutput: ... + + @_overload def get_ebs_default_kms_key_id( self, - input: GetEbsDefaultKmsKeyIdInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEbsDefaultKmsKeyIdInputDict], ) -> GetEbsDefaultKmsKeyIdOutput: """ Describes the default KMS key for EBS encryption by default for your @@ -18258,8 +29011,6 @@ def get_ebs_default_kms_key_id( in the *Amazon EBS User Guide*. Args: - input: - An instance of `GetEbsDefaultKmsKeyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18269,12 +29020,34 @@ def get_ebs_default_kms_key_id( Returns: An instance of `GetEbsDefaultKmsKeyIdOutput`. """ - return self._invoke(input, _models.GET_EBS_DEFAULT_KMS_KEY_ID, [], plugins) + def get_ebs_default_kms_key_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEbsDefaultKmsKeyIdOutput: + return self._invoke( + self._select_input(_models.GET_EBS_DEFAULT_KMS_KEY_ID, args, kwargs), + _models.GET_EBS_DEFAULT_KMS_KEY_ID, + [], + plugins, + ) + + @_overload + def get_ebs_encryption_by_default( + self, + request: _models.GetEbsEncryptionByDefaultInput + | _models.GetEbsEncryptionByDefaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEbsEncryptionByDefaultOutput: ... + + @_overload def get_ebs_encryption_by_default( self, - input: GetEbsEncryptionByDefaultInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEbsEncryptionByDefaultInputDict], ) -> GetEbsEncryptionByDefaultOutput: """ Describes whether EBS encryption by default is enabled for your account @@ -18285,8 +29058,6 @@ def get_ebs_encryption_by_default( in the *Amazon EBS User Guide*. Args: - input: - An instance of `GetEbsEncryptionByDefaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18296,12 +29067,34 @@ def get_ebs_encryption_by_default( Returns: An instance of `GetEbsEncryptionByDefaultOutput`. """ - return self._invoke(input, _models.GET_EBS_ENCRYPTION_BY_DEFAULT, [], plugins) + def get_ebs_encryption_by_default( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEbsEncryptionByDefaultOutput: + return self._invoke( + self._select_input(_models.GET_EBS_ENCRYPTION_BY_DEFAULT, args, kwargs), + _models.GET_EBS_ENCRYPTION_BY_DEFAULT, + [], + plugins, + ) + + @_overload + def get_enabled_ipam_policy( + self, + request: _models.GetEnabledIpamPolicyInput + | _models.GetEnabledIpamPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEnabledIpamPolicyOutput: ... + + @_overload def get_enabled_ipam_policy( self, - input: GetEnabledIpamPolicyInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEnabledIpamPolicyInputDict], ) -> GetEnabledIpamPolicyOutput: """ Gets the enabled IPAM policy. @@ -18316,8 +29109,6 @@ def get_enabled_ipam_policy( account or an entity within Amazon Web Services Organizations. Args: - input: - An instance of `GetEnabledIpamPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18327,12 +29118,34 @@ def get_enabled_ipam_policy( Returns: An instance of `GetEnabledIpamPolicyOutput`. """ - return self._invoke(input, _models.GET_ENABLED_IPAM_POLICY, [], plugins) + def get_enabled_ipam_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEnabledIpamPolicyOutput: + return self._invoke( + self._select_input(_models.GET_ENABLED_IPAM_POLICY, args, kwargs), + _models.GET_ENABLED_IPAM_POLICY, + [], + plugins, + ) + + @_overload + def get_flow_logs_integration_template( + self, + request: _models.GetFlowLogsIntegrationTemplateInput + | _models.GetFlowLogsIntegrationTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFlowLogsIntegrationTemplateOutput: ... + + @_overload def get_flow_logs_integration_template( self, - input: GetFlowLogsIntegrationTemplateInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFlowLogsIntegrationTemplateInputDict], ) -> GetFlowLogsIntegrationTemplateOutput: """ Generates a CloudFormation template that streamlines and automates the @@ -18357,8 +29170,6 @@ def get_flow_logs_integration_template( Cloud WAN Flow Logs and Amazon Athena. Args: - input: - An instance of `GetFlowLogsIntegrationTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18368,22 +29179,42 @@ def get_flow_logs_integration_template( Returns: An instance of `GetFlowLogsIntegrationTemplateOutput`. """ + + def get_flow_logs_integration_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFlowLogsIntegrationTemplateOutput: return self._invoke( - input, _models.GET_FLOW_LOGS_INTEGRATION_TEMPLATE, [], plugins + self._select_input( + _models.GET_FLOW_LOGS_INTEGRATION_TEMPLATE, args, kwargs + ), + _models.GET_FLOW_LOGS_INTEGRATION_TEMPLATE, + [], + plugins, ) + @_overload def get_groups_for_capacity_reservation( self, - input: GetGroupsForCapacityReservationInput, + request: _models.GetGroupsForCapacityReservationInput + | _models.GetGroupsForCapacityReservationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetGroupsForCapacityReservationOutput: ... + + @_overload + def get_groups_for_capacity_reservation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGroupsForCapacityReservationInputDict], ) -> GetGroupsForCapacityReservationOutput: """ Lists the resource groups to which a Capacity Reservation has been added. Args: - input: - An instance of `GetGroupsForCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18393,14 +29224,36 @@ def get_groups_for_capacity_reservation( Returns: An instance of `GetGroupsForCapacityReservationOutput`. """ + + def get_groups_for_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGroupsForCapacityReservationOutput: return self._invoke( - input, _models.GET_GROUPS_FOR_CAPACITY_RESERVATION, [], plugins + self._select_input( + _models.GET_GROUPS_FOR_CAPACITY_RESERVATION, args, kwargs + ), + _models.GET_GROUPS_FOR_CAPACITY_RESERVATION, + [], + plugins, ) + @_overload + def get_host_reservation_purchase_preview( + self, + request: _models.GetHostReservationPurchasePreviewInput + | _models.GetHostReservationPurchasePreviewInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHostReservationPurchasePreviewOutput: ... + + @_overload def get_host_reservation_purchase_preview( self, - input: GetHostReservationPurchasePreviewInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHostReservationPurchasePreviewInputDict], ) -> GetHostReservationPurchasePreviewOutput: """ Preview a reservation purchase with configurations that match those of @@ -18411,8 +29264,6 @@ def get_host_reservation_purchase_preview( result in the offering being purchased. Args: - input: - An instance of `GetHostReservationPurchasePreviewInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18422,12 +29273,35 @@ def get_host_reservation_purchase_preview( Returns: An instance of `GetHostReservationPurchasePreviewOutput`. """ + + def get_host_reservation_purchase_preview( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHostReservationPurchasePreviewOutput: return self._invoke( - input, _models.GET_HOST_RESERVATION_PURCHASE_PREVIEW, [], plugins + self._select_input( + _models.GET_HOST_RESERVATION_PURCHASE_PREVIEW, args, kwargs + ), + _models.GET_HOST_RESERVATION_PURCHASE_PREVIEW, + [], + plugins, ) + @_overload + def get_image_ancestry( + self, + request: _models.GetImageAncestryInput | _models.GetImageAncestryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImageAncestryOutput: ... + + @_overload def get_image_ancestry( - self, input: GetImageAncestryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImageAncestryInputDict], ) -> GetImageAncestryOutput: """ Retrieves the ancestry chain of the specified AMI, tracing its lineage @@ -18436,8 +29310,6 @@ def get_image_ancestry( in *Amazon EC2 User Guide*. Args: - input: - An instance of `GetImageAncestryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18447,12 +29319,34 @@ def get_image_ancestry( Returns: An instance of `GetImageAncestryOutput`. """ - return self._invoke(input, _models.GET_IMAGE_ANCESTRY, [], plugins) + def get_image_ancestry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImageAncestryOutput: + return self._invoke( + self._select_input(_models.GET_IMAGE_ANCESTRY, args, kwargs), + _models.GET_IMAGE_ANCESTRY, + [], + plugins, + ) + + @_overload + def get_image_block_public_access_state( + self, + request: _models.GetImageBlockPublicAccessStateInput + | _models.GetImageBlockPublicAccessStateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImageBlockPublicAccessStateOutput: ... + + @_overload def get_image_block_public_access_state( self, - input: GetImageBlockPublicAccessStateInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImageBlockPublicAccessStateInputDict], ) -> GetImageBlockPublicAccessStateOutput: """ Gets the current state of *block public access for AMIs* at the account @@ -18463,8 +29357,6 @@ def get_image_block_public_access_state( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetImageBlockPublicAccessStateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18474,12 +29366,35 @@ def get_image_block_public_access_state( Returns: An instance of `GetImageBlockPublicAccessStateOutput`. """ + + def get_image_block_public_access_state( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImageBlockPublicAccessStateOutput: return self._invoke( - input, _models.GET_IMAGE_BLOCK_PUBLIC_ACCESS_STATE, [], plugins + self._select_input( + _models.GET_IMAGE_BLOCK_PUBLIC_ACCESS_STATE, args, kwargs + ), + _models.GET_IMAGE_BLOCK_PUBLIC_ACCESS_STATE, + [], + plugins, ) + @_overload def get_image_findings( - self, input: GetImageFindingsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetImageFindingsInput | _models.GetImageFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetImageFindingsOutput: ... + + @_overload + def get_image_findings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetImageFindingsInputDict], ) -> GetImageFindingsOutput: """ Describes the Amazon Inspector vulnerability findings for the specified @@ -18490,8 +29405,6 @@ def get_image_findings( that it has scanned. Args: - input: - An instance of `GetImageFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18501,12 +29414,34 @@ def get_image_findings( Returns: An instance of `GetImageFindingsOutput`. """ - return self._invoke(input, _models.GET_IMAGE_FINDINGS, [], plugins) + def get_image_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetImageFindingsOutput: + return self._invoke( + self._select_input(_models.GET_IMAGE_FINDINGS, args, kwargs), + _models.GET_IMAGE_FINDINGS, + [], + plugins, + ) + + @_overload + def get_instance_metadata_defaults( + self, + request: _models.GetInstanceMetadataDefaultsInput + | _models.GetInstanceMetadataDefaultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceMetadataDefaultsOutput: ... + + @_overload def get_instance_metadata_defaults( self, - input: GetInstanceMetadataDefaultsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceMetadataDefaultsInputDict], ) -> GetInstanceMetadataDefaultsOutput: """ Gets the default instance metadata service (IMDS) settings that are set @@ -18517,8 +29452,6 @@ def get_instance_metadata_defaults( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetInstanceMetadataDefaultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18528,18 +29461,40 @@ def get_instance_metadata_defaults( Returns: An instance of `GetInstanceMetadataDefaultsOutput`. """ - return self._invoke(input, _models.GET_INSTANCE_METADATA_DEFAULTS, [], plugins) + def get_instance_metadata_defaults( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceMetadataDefaultsOutput: + return self._invoke( + self._select_input(_models.GET_INSTANCE_METADATA_DEFAULTS, args, kwargs), + _models.GET_INSTANCE_METADATA_DEFAULTS, + [], + plugins, + ) + + @_overload def get_instance_tpm_ek_pub( - self, input: GetInstanceTpmEkPubInput, plugins: list[Plugin] | None = None + self, + request: _models.GetInstanceTpmEkPubInput + | _models.GetInstanceTpmEkPubInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceTpmEkPubOutput: ... + + @_overload + def get_instance_tpm_ek_pub( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceTpmEkPubInputDict], ) -> GetInstanceTpmEkPubOutput: """ Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance. Args: - input: - An instance of `GetInstanceTpmEkPubInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18549,12 +29504,34 @@ def get_instance_tpm_ek_pub( Returns: An instance of `GetInstanceTpmEkPubOutput`. """ - return self._invoke(input, _models.GET_INSTANCE_TPM_EK_PUB, [], plugins) + def get_instance_tpm_ek_pub( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceTpmEkPubOutput: + return self._invoke( + self._select_input(_models.GET_INSTANCE_TPM_EK_PUB, args, kwargs), + _models.GET_INSTANCE_TPM_EK_PUB, + [], + plugins, + ) + + @_overload + def get_instance_types_from_instance_requirements( + self, + request: _models.GetInstanceTypesFromInstanceRequirementsInput + | _models.GetInstanceTypesFromInstanceRequirementsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceTypesFromInstanceRequirementsOutput: ... + + @_overload def get_instance_types_from_instance_requirements( self, - input: GetInstanceTypesFromInstanceRequirementsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceTypesFromInstanceRequirementsInputDict], ) -> GetInstanceTypesFromInstanceRequirementsOutput: """ Returns a list of instance types with the specified instance attributes. @@ -18578,8 +29555,6 @@ def get_instance_types_from_instance_requirements( in the *Amazon EC2 Auto Scaling User Guide*. Args: - input: - An instance of `GetInstanceTypesFromInstanceRequirementsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18589,12 +29564,36 @@ def get_instance_types_from_instance_requirements( Returns: An instance of `GetInstanceTypesFromInstanceRequirementsOutput`. """ + + def get_instance_types_from_instance_requirements( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceTypesFromInstanceRequirementsOutput: return self._invoke( - input, _models.GET_INSTANCE_TYPES_FROM_INSTANCE_REQUIREMENTS, [], plugins + self._select_input( + _models.GET_INSTANCE_TYPES_FROM_INSTANCE_REQUIREMENTS, args, kwargs + ), + _models.GET_INSTANCE_TYPES_FROM_INSTANCE_REQUIREMENTS, + [], + plugins, ) + @_overload + def get_instance_uefi_data( + self, + request: _models.GetInstanceUefiDataInput + | _models.GetInstanceUefiDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceUefiDataOutput: ... + + @_overload def get_instance_uefi_data( - self, input: GetInstanceUefiDataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceUefiDataInputDict], ) -> GetInstanceUefiDataOutput: """ A binary representation of the UEFI variable store. Only non-volatile @@ -18616,8 +29615,6 @@ def get_instance_uefi_data( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetInstanceUefiDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18627,10 +29624,34 @@ def get_instance_uefi_data( Returns: An instance of `GetInstanceUefiDataOutput`. """ - return self._invoke(input, _models.GET_INSTANCE_UEFI_DATA, [], plugins) + def get_instance_uefi_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceUefiDataOutput: + return self._invoke( + self._select_input(_models.GET_INSTANCE_UEFI_DATA, args, kwargs), + _models.GET_INSTANCE_UEFI_DATA, + [], + plugins, + ) + + @_overload + def get_ipam_address_history( + self, + request: _models.GetIpamAddressHistoryInput + | _models.GetIpamAddressHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamAddressHistoryOutput: ... + + @_overload def get_ipam_address_history( - self, input: GetIpamAddressHistoryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamAddressHistoryInputDict], ) -> GetIpamAddressHistoryOutput: """ Retrieve historical information about a CIDR within an IPAM scope. For @@ -18639,8 +29660,6 @@ def get_ipam_address_history( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `GetIpamAddressHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18650,10 +29669,34 @@ def get_ipam_address_history( Returns: An instance of `GetIpamAddressHistoryOutput`. """ - return self._invoke(input, _models.GET_IPAM_ADDRESS_HISTORY, [], plugins) + def get_ipam_address_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamAddressHistoryOutput: + return self._invoke( + self._select_input(_models.GET_IPAM_ADDRESS_HISTORY, args, kwargs), + _models.GET_IPAM_ADDRESS_HISTORY, + [], + plugins, + ) + + @_overload def get_ipam_discovered_accounts( - self, input: GetIpamDiscoveredAccountsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIpamDiscoveredAccountsInput + | _models.GetIpamDiscoveredAccountsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamDiscoveredAccountsOutput: ... + + @_overload + def get_ipam_discovered_accounts( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamDiscoveredAccountsInputDict], ) -> GetIpamDiscoveredAccountsOutput: """ Gets IPAM discovered accounts. A discovered account is an Amazon Web @@ -18663,8 +29706,6 @@ def get_ipam_discovered_accounts( account can get all discovered accounts in the organization. Args: - input: - An instance of `GetIpamDiscoveredAccountsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18674,19 +29715,39 @@ def get_ipam_discovered_accounts( Returns: An instance of `GetIpamDiscoveredAccountsOutput`. """ - return self._invoke(input, _models.GET_IPAM_DISCOVERED_ACCOUNTS, [], plugins) + def get_ipam_discovered_accounts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamDiscoveredAccountsOutput: + return self._invoke( + self._select_input(_models.GET_IPAM_DISCOVERED_ACCOUNTS, args, kwargs), + _models.GET_IPAM_DISCOVERED_ACCOUNTS, + [], + plugins, + ) + + @_overload + def get_ipam_discovered_public_addresses( + self, + request: _models.GetIpamDiscoveredPublicAddressesInput + | _models.GetIpamDiscoveredPublicAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamDiscoveredPublicAddressesOutput: ... + + @_overload def get_ipam_discovered_public_addresses( self, - input: GetIpamDiscoveredPublicAddressesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamDiscoveredPublicAddressesInputDict], ) -> GetIpamDiscoveredPublicAddressesOutput: """ Gets the public IP addresses that have been discovered by IPAM. Args: - input: - An instance of `GetIpamDiscoveredPublicAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18696,14 +29757,36 @@ def get_ipam_discovered_public_addresses( Returns: An instance of `GetIpamDiscoveredPublicAddressesOutput`. """ + + def get_ipam_discovered_public_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamDiscoveredPublicAddressesOutput: return self._invoke( - input, _models.GET_IPAM_DISCOVERED_PUBLIC_ADDRESSES, [], plugins + self._select_input( + _models.GET_IPAM_DISCOVERED_PUBLIC_ADDRESSES, args, kwargs + ), + _models.GET_IPAM_DISCOVERED_PUBLIC_ADDRESSES, + [], + plugins, ) + @_overload + def get_ipam_discovered_resource_cidrs( + self, + request: _models.GetIpamDiscoveredResourceCidrsInput + | _models.GetIpamDiscoveredResourceCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamDiscoveredResourceCidrsOutput: ... + + @_overload def get_ipam_discovered_resource_cidrs( self, - input: GetIpamDiscoveredResourceCidrsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamDiscoveredResourceCidrsInputDict], ) -> GetIpamDiscoveredResourceCidrsOutput: """ Returns the resource CIDRs that are monitored as part of a resource @@ -18712,8 +29795,6 @@ def get_ipam_discovered_resource_cidrs( Public IPv4 pools, VPC subnets, and Elastic IP addresses. Args: - input: - An instance of `GetIpamDiscoveredResourceCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18723,12 +29804,36 @@ def get_ipam_discovered_resource_cidrs( Returns: An instance of `GetIpamDiscoveredResourceCidrsOutput`. """ + + def get_ipam_discovered_resource_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamDiscoveredResourceCidrsOutput: return self._invoke( - input, _models.GET_IPAM_DISCOVERED_RESOURCE_CIDRS, [], plugins + self._select_input( + _models.GET_IPAM_DISCOVERED_RESOURCE_CIDRS, args, kwargs + ), + _models.GET_IPAM_DISCOVERED_RESOURCE_CIDRS, + [], + plugins, ) + @_overload + def get_ipam_discovered_routes( + self, + request: _models.GetIpamDiscoveredRoutesInput + | _models.GetIpamDiscoveredRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamDiscoveredRoutesOutput: ... + + @_overload def get_ipam_discovered_routes( - self, input: GetIpamDiscoveredRoutesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamDiscoveredRoutesInputDict], ) -> GetIpamDiscoveredRoutesOutput: """ Retrieves Border Gateway Protocol (BGP) routes discovered by IPAM @@ -18738,8 +29843,6 @@ def get_ipam_discovered_routes( operation returns quickly and successfully. Args: - input: - An instance of `GetIpamDiscoveredRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18749,12 +29852,34 @@ def get_ipam_discovered_routes( Returns: An instance of `GetIpamDiscoveredRoutesOutput`. """ - return self._invoke(input, _models.GET_IPAM_DISCOVERED_ROUTES, [], plugins) + def get_ipam_discovered_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamDiscoveredRoutesOutput: + return self._invoke( + self._select_input(_models.GET_IPAM_DISCOVERED_ROUTES, args, kwargs), + _models.GET_IPAM_DISCOVERED_ROUTES, + [], + plugins, + ) + + @_overload + def get_ipam_internet_registry_association_asns( + self, + request: _models.GetIpamInternetRegistryAssociationAsnsInput + | _models.GetIpamInternetRegistryAssociationAsnsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamInternetRegistryAssociationAsnsOutput: ... + + @_overload def get_ipam_internet_registry_association_asns( self, - input: GetIpamInternetRegistryAssociationAsnsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamInternetRegistryAssociationAsnsInputDict], ) -> GetIpamInternetRegistryAssociationAsnsOutput: """ Retrieves Autonomous System Numbers (ASNs) registered with an internet @@ -18763,8 +29888,6 @@ def get_ipam_internet_registry_association_asns( successfully. Args: - input: - An instance of `GetIpamInternetRegistryAssociationAsnsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18774,14 +29897,36 @@ def get_ipam_internet_registry_association_asns( Returns: An instance of `GetIpamInternetRegistryAssociationAsnsOutput`. """ + + def get_ipam_internet_registry_association_asns( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamInternetRegistryAssociationAsnsOutput: return self._invoke( - input, _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_ASNS, [], plugins + self._select_input( + _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_ASNS, args, kwargs + ), + _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_ASNS, + [], + plugins, ) + @_overload + def get_ipam_internet_registry_association_cidrs( + self, + request: _models.GetIpamInternetRegistryAssociationCidrsInput + | _models.GetIpamInternetRegistryAssociationCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamInternetRegistryAssociationCidrsOutput: ... + + @_overload def get_ipam_internet_registry_association_cidrs( self, - input: GetIpamInternetRegistryAssociationCidrsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamInternetRegistryAssociationCidrsInputDict], ) -> GetIpamInternetRegistryAssociationCidrsOutput: """ Retrieves IP address CIDRs registered with an internet registry for an @@ -18789,8 +29934,6 @@ def get_ipam_internet_registry_association_cidrs( ensure that the operation returns quickly and successfully. Args: - input: - An instance of `GetIpamInternetRegistryAssociationCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18800,14 +29943,36 @@ def get_ipam_internet_registry_association_cidrs( Returns: An instance of `GetIpamInternetRegistryAssociationCidrsOutput`. """ + + def get_ipam_internet_registry_association_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamInternetRegistryAssociationCidrsOutput: return self._invoke( - input, _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_CIDRS, [], plugins + self._select_input( + _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_CIDRS, args, kwargs + ), + _models.GET_IPAM_INTERNET_REGISTRY_ASSOCIATION_CIDRS, + [], + plugins, ) + @_overload + def get_ipam_policy_allocation_rules( + self, + request: _models.GetIpamPolicyAllocationRulesInput + | _models.GetIpamPolicyAllocationRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPolicyAllocationRulesOutput: ... + + @_overload def get_ipam_policy_allocation_rules( self, - input: GetIpamPolicyAllocationRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPolicyAllocationRulesInputDict], ) -> GetIpamPolicyAllocationRulesOutput: """ Gets the allocation rules for an IPAM policy. @@ -18827,8 +29992,6 @@ def get_ipam_policy_allocation_rules( IP addresses. Args: - input: - An instance of `GetIpamPolicyAllocationRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18838,14 +30001,34 @@ def get_ipam_policy_allocation_rules( Returns: An instance of `GetIpamPolicyAllocationRulesOutput`. """ + + def get_ipam_policy_allocation_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPolicyAllocationRulesOutput: return self._invoke( - input, _models.GET_IPAM_POLICY_ALLOCATION_RULES, [], plugins + self._select_input(_models.GET_IPAM_POLICY_ALLOCATION_RULES, args, kwargs), + _models.GET_IPAM_POLICY_ALLOCATION_RULES, + [], + plugins, ) + @_overload + def get_ipam_policy_organization_targets( + self, + request: _models.GetIpamPolicyOrganizationTargetsInput + | _models.GetIpamPolicyOrganizationTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPolicyOrganizationTargetsOutput: ... + + @_overload def get_ipam_policy_organization_targets( self, - input: GetIpamPolicyOrganizationTargetsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPolicyOrganizationTargetsInputDict], ) -> GetIpamPolicyOrganizationTargetsOutput: """ Gets the Amazon Web Services Organizations targets for an IPAM policy. @@ -18864,8 +30047,6 @@ def get_ipam_policy_organization_targets( be applied. Args: - input: - An instance of `GetIpamPolicyOrganizationTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18875,12 +30056,36 @@ def get_ipam_policy_organization_targets( Returns: An instance of `GetIpamPolicyOrganizationTargetsOutput`. """ + + def get_ipam_policy_organization_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPolicyOrganizationTargetsOutput: return self._invoke( - input, _models.GET_IPAM_POLICY_ORGANIZATION_TARGETS, [], plugins + self._select_input( + _models.GET_IPAM_POLICY_ORGANIZATION_TARGETS, args, kwargs + ), + _models.GET_IPAM_POLICY_ORGANIZATION_TARGETS, + [], + plugins, ) + @_overload def get_ipam_pool_allocations( - self, input: GetIpamPoolAllocationsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIpamPoolAllocationsInput + | _models.GetIpamPoolAllocationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPoolAllocationsOutput: ... + + @_overload + def get_ipam_pool_allocations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPoolAllocationsInputDict], ) -> GetIpamPoolAllocationsOutput: """ Get a list of all the CIDR allocations in an IPAM pool. The Region you @@ -18897,8 +30102,6 @@ def get_ipam_pool_allocations( model. Args: - input: - An instance of `GetIpamPoolAllocationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18908,17 +30111,38 @@ def get_ipam_pool_allocations( Returns: An instance of `GetIpamPoolAllocationsOutput`. """ - return self._invoke(input, _models.GET_IPAM_POOL_ALLOCATIONS, [], plugins) + def get_ipam_pool_allocations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPoolAllocationsOutput: + return self._invoke( + self._select_input(_models.GET_IPAM_POOL_ALLOCATIONS, args, kwargs), + _models.GET_IPAM_POOL_ALLOCATIONS, + [], + plugins, + ) + + @_overload + def get_ipam_pool_cidrs( + self, + request: _models.GetIpamPoolCidrsInput | _models.GetIpamPoolCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPoolCidrsOutput: ... + + @_overload def get_ipam_pool_cidrs( - self, input: GetIpamPoolCidrsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPoolCidrsInputDict], ) -> GetIpamPoolCidrsOutput: """ Get the CIDRs provisioned to an IPAM pool. Args: - input: - An instance of `GetIpamPoolCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18928,12 +30152,34 @@ def get_ipam_pool_cidrs( Returns: An instance of `GetIpamPoolCidrsOutput`. """ - return self._invoke(input, _models.GET_IPAM_POOL_CIDRS, [], plugins) + def get_ipam_pool_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPoolCidrsOutput: + return self._invoke( + self._select_input(_models.GET_IPAM_POOL_CIDRS, args, kwargs), + _models.GET_IPAM_POOL_CIDRS, + [], + plugins, + ) + + @_overload + def get_ipam_prefix_list_resolver_rules( + self, + request: _models.GetIpamPrefixListResolverRulesInput + | _models.GetIpamPrefixListResolverRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPrefixListResolverRulesOutput: ... + + @_overload def get_ipam_prefix_list_resolver_rules( self, - input: GetIpamPrefixListResolverRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPrefixListResolverRulesInputDict], ) -> GetIpamPrefixListResolverRulesOutput: """ Retrieves the CIDR selection rules for an IPAM prefix list resolver. Use @@ -18941,8 +30187,6 @@ def get_ipam_prefix_list_resolver_rules( are selected for synchronization with prefix lists. Args: - input: - An instance of `GetIpamPrefixListResolverRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18952,14 +30196,36 @@ def get_ipam_prefix_list_resolver_rules( Returns: An instance of `GetIpamPrefixListResolverRulesOutput`. """ + + def get_ipam_prefix_list_resolver_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPrefixListResolverRulesOutput: return self._invoke( - input, _models.GET_IPAM_PREFIX_LIST_RESOLVER_RULES, [], plugins + self._select_input( + _models.GET_IPAM_PREFIX_LIST_RESOLVER_RULES, args, kwargs + ), + _models.GET_IPAM_PREFIX_LIST_RESOLVER_RULES, + [], + plugins, ) + @_overload + def get_ipam_prefix_list_resolver_version_entries( + self, + request: _models.GetIpamPrefixListResolverVersionEntriesInput + | _models.GetIpamPrefixListResolverVersionEntriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPrefixListResolverVersionEntriesOutput: ... + + @_overload def get_ipam_prefix_list_resolver_version_entries( self, - input: GetIpamPrefixListResolverVersionEntriesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPrefixListResolverVersionEntriesInputDict], ) -> GetIpamPrefixListResolverVersionEntriesOutput: """ Retrieves the CIDR entries for a specific version of an IPAM prefix list @@ -18967,8 +30233,6 @@ def get_ipam_prefix_list_resolver_version_entries( synchronized at a particular point in time. Args: - input: - An instance of `GetIpamPrefixListResolverVersionEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -18978,14 +30242,36 @@ def get_ipam_prefix_list_resolver_version_entries( Returns: An instance of `GetIpamPrefixListResolverVersionEntriesOutput`. """ + + def get_ipam_prefix_list_resolver_version_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPrefixListResolverVersionEntriesOutput: return self._invoke( - input, _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSION_ENTRIES, [], plugins + self._select_input( + _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSION_ENTRIES, args, kwargs + ), + _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSION_ENTRIES, + [], + plugins, ) + @_overload + def get_ipam_prefix_list_resolver_versions( + self, + request: _models.GetIpamPrefixListResolverVersionsInput + | _models.GetIpamPrefixListResolverVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamPrefixListResolverVersionsOutput: ... + + @_overload def get_ipam_prefix_list_resolver_versions( self, - input: GetIpamPrefixListResolverVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamPrefixListResolverVersionsInputDict], ) -> GetIpamPrefixListResolverVersionsOutput: """ Retrieves version information for an IPAM prefix list resolver. @@ -19019,8 +30305,6 @@ def get_ipam_prefix_list_resolver_versions( **Version 2 CIDRs:** 10.1.0.0/16, 10.2.0.0/16, 10.3.0.0/16 Args: - input: - An instance of `GetIpamPrefixListResolverVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19030,12 +30314,36 @@ def get_ipam_prefix_list_resolver_versions( Returns: An instance of `GetIpamPrefixListResolverVersionsOutput`. """ + + def get_ipam_prefix_list_resolver_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamPrefixListResolverVersionsOutput: return self._invoke( - input, _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSIONS, [], plugins + self._select_input( + _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSIONS, args, kwargs + ), + _models.GET_IPAM_PREFIX_LIST_RESOLVER_VERSIONS, + [], + plugins, ) + @_overload + def get_ipam_resource_cidrs( + self, + request: _models.GetIpamResourceCidrsInput + | _models.GetIpamResourceCidrsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamResourceCidrsOutput: ... + + @_overload def get_ipam_resource_cidrs( - self, input: GetIpamResourceCidrsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamResourceCidrsInputDict], ) -> GetIpamResourceCidrsOutput: """ Returns resource CIDRs managed by IPAM in a given scope. If an IPAM is @@ -19045,8 +30353,6 @@ def get_ipam_resource_cidrs( that belong to the owning account. Args: - input: - An instance of `GetIpamResourceCidrsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19056,12 +30362,34 @@ def get_ipam_resource_cidrs( Returns: An instance of `GetIpamResourceCidrsOutput`. """ - return self._invoke(input, _models.GET_IPAM_RESOURCE_CIDRS, [], plugins) + def get_ipam_resource_cidrs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamResourceCidrsOutput: + return self._invoke( + self._select_input(_models.GET_IPAM_RESOURCE_CIDRS, args, kwargs), + _models.GET_IPAM_RESOURCE_CIDRS, + [], + plugins, + ) + + @_overload + def get_ipam_route_origin_authorizations( + self, + request: _models.GetIpamRouteOriginAuthorizationsInput + | _models.GetIpamRouteOriginAuthorizationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamRouteOriginAuthorizationsOutput: ... + + @_overload def get_ipam_route_origin_authorizations( self, - input: GetIpamRouteOriginAuthorizationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamRouteOriginAuthorizationsInputDict], ) -> GetIpamRouteOriginAuthorizationsOutput: """ Retrieves the current Route Origin Authorizations (ROAs) published to @@ -19070,8 +30398,6 @@ def get_ipam_route_origin_authorizations( successfully. Args: - input: - An instance of `GetIpamRouteOriginAuthorizationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19081,14 +30407,36 @@ def get_ipam_route_origin_authorizations( Returns: An instance of `GetIpamRouteOriginAuthorizationsOutput`. """ + + def get_ipam_route_origin_authorizations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamRouteOriginAuthorizationsOutput: return self._invoke( - input, _models.GET_IPAM_ROUTE_ORIGIN_AUTHORIZATIONS, [], plugins + self._select_input( + _models.GET_IPAM_ROUTE_ORIGIN_AUTHORIZATIONS, args, kwargs + ), + _models.GET_IPAM_ROUTE_ORIGIN_AUTHORIZATIONS, + [], + plugins, ) + @_overload + def get_ipam_route_protection_findings( + self, + request: _models.GetIpamRouteProtectionFindingsInput + | _models.GetIpamRouteProtectionFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamRouteProtectionFindingsOutput: ... + + @_overload def get_ipam_route_protection_findings( self, - input: GetIpamRouteProtectionFindingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamRouteProtectionFindingsInputDict], ) -> GetIpamRouteProtectionFindingsOutput: """ Retrieves route protection findings for an IPAM. Route protection @@ -19099,8 +30447,6 @@ def get_ipam_route_protection_findings( and successfully. Args: - input: - An instance of `GetIpamRouteProtectionFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19110,14 +30456,36 @@ def get_ipam_route_protection_findings( Returns: An instance of `GetIpamRouteProtectionFindingsOutput`. """ + + def get_ipam_route_protection_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamRouteProtectionFindingsOutput: return self._invoke( - input, _models.GET_IPAM_ROUTE_PROTECTION_FINDINGS, [], plugins + self._select_input( + _models.GET_IPAM_ROUTE_PROTECTION_FINDINGS, args, kwargs + ), + _models.GET_IPAM_ROUTE_PROTECTION_FINDINGS, + [], + plugins, ) + @_overload + def get_ipam_routing_policy_registration_deltas( + self, + request: _models.GetIpamRoutingPolicyRegistrationDeltasInput + | _models.GetIpamRoutingPolicyRegistrationDeltasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamRoutingPolicyRegistrationDeltasOutput: ... + + @_overload def get_ipam_routing_policy_registration_deltas( self, - input: GetIpamRoutingPolicyRegistrationDeltasInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamRoutingPolicyRegistrationDeltasInputDict], ) -> GetIpamRoutingPolicyRegistrationDeltasOutput: """ Retrieves the history of routing policy registration changes for an IPAM @@ -19125,8 +30493,6 @@ def get_ipam_routing_policy_registration_deltas( that the operation returns quickly and successfully. Args: - input: - An instance of `GetIpamRoutingPolicyRegistrationDeltasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19136,14 +30502,36 @@ def get_ipam_routing_policy_registration_deltas( Returns: An instance of `GetIpamRoutingPolicyRegistrationDeltasOutput`. """ + + def get_ipam_routing_policy_registration_deltas( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamRoutingPolicyRegistrationDeltasOutput: return self._invoke( - input, _models.GET_IPAM_ROUTING_POLICY_REGISTRATION_DELTAS, [], plugins + self._select_input( + _models.GET_IPAM_ROUTING_POLICY_REGISTRATION_DELTAS, args, kwargs + ), + _models.GET_IPAM_ROUTING_POLICY_REGISTRATION_DELTAS, + [], + plugins, ) + @_overload + def get_ipam_routing_policy_registrations( + self, + request: _models.GetIpamRoutingPolicyRegistrationsInput + | _models.GetIpamRoutingPolicyRegistrationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIpamRoutingPolicyRegistrationsOutput: ... + + @_overload def get_ipam_routing_policy_registrations( self, - input: GetIpamRoutingPolicyRegistrationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIpamRoutingPolicyRegistrationsInputDict], ) -> GetIpamRoutingPolicyRegistrationsOutput: """ Retrieves routing policy registrations for an IPAM internet registry @@ -19153,8 +30541,6 @@ def get_ipam_routing_policy_registrations( and successfully. Args: - input: - An instance of `GetIpamRoutingPolicyRegistrationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19164,12 +30550,36 @@ def get_ipam_routing_policy_registrations( Returns: An instance of `GetIpamRoutingPolicyRegistrationsOutput`. """ + + def get_ipam_routing_policy_registrations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIpamRoutingPolicyRegistrationsOutput: return self._invoke( - input, _models.GET_IPAM_ROUTING_POLICY_REGISTRATIONS, [], plugins + self._select_input( + _models.GET_IPAM_ROUTING_POLICY_REGISTRATIONS, args, kwargs + ), + _models.GET_IPAM_ROUTING_POLICY_REGISTRATIONS, + [], + plugins, ) + @_overload + def get_launch_template_data( + self, + request: _models.GetLaunchTemplateDataInput + | _models.GetLaunchTemplateDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLaunchTemplateDataOutput: ... + + @_overload def get_launch_template_data( - self, input: GetLaunchTemplateDataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLaunchTemplateDataInputDict], ) -> GetLaunchTemplateDataOutput: """ Retrieves the configuration data of the specified instance. You can use @@ -19183,8 +30593,6 @@ def get_launch_template_data( your instance requirements. Args: - input: - An instance of `GetLaunchTemplateDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19194,20 +30602,40 @@ def get_launch_template_data( Returns: An instance of `GetLaunchTemplateDataOutput`. """ - return self._invoke(input, _models.GET_LAUNCH_TEMPLATE_DATA, [], plugins) + def get_launch_template_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLaunchTemplateDataOutput: + return self._invoke( + self._select_input(_models.GET_LAUNCH_TEMPLATE_DATA, args, kwargs), + _models.GET_LAUNCH_TEMPLATE_DATA, + [], + plugins, + ) + + @_overload + def get_managed_prefix_list_associations( + self, + request: _models.GetManagedPrefixListAssociationsInput + | _models.GetManagedPrefixListAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetManagedPrefixListAssociationsOutput: ... + + @_overload def get_managed_prefix_list_associations( self, - input: GetManagedPrefixListAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetManagedPrefixListAssociationsInputDict], ) -> GetManagedPrefixListAssociationsOutput: """ Gets information about the resources that are associated with the specified managed prefix list. Args: - input: - An instance of `GetManagedPrefixListAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19217,21 +30645,41 @@ def get_managed_prefix_list_associations( Returns: An instance of `GetManagedPrefixListAssociationsOutput`. """ + + def get_managed_prefix_list_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetManagedPrefixListAssociationsOutput: return self._invoke( - input, _models.GET_MANAGED_PREFIX_LIST_ASSOCIATIONS, [], plugins + self._select_input( + _models.GET_MANAGED_PREFIX_LIST_ASSOCIATIONS, args, kwargs + ), + _models.GET_MANAGED_PREFIX_LIST_ASSOCIATIONS, + [], + plugins, ) + @_overload + def get_managed_prefix_list_entries( + self, + request: _models.GetManagedPrefixListEntriesInput + | _models.GetManagedPrefixListEntriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetManagedPrefixListEntriesOutput: ... + + @_overload def get_managed_prefix_list_entries( self, - input: GetManagedPrefixListEntriesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetManagedPrefixListEntriesInputDict], ) -> GetManagedPrefixListEntriesOutput: """ Gets information about the entries for a specified managed prefix list. Args: - input: - An instance of `GetManagedPrefixListEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19241,12 +30689,34 @@ def get_managed_prefix_list_entries( Returns: An instance of `GetManagedPrefixListEntriesOutput`. """ - return self._invoke(input, _models.GET_MANAGED_PREFIX_LIST_ENTRIES, [], plugins) + def get_managed_prefix_list_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetManagedPrefixListEntriesOutput: + return self._invoke( + self._select_input(_models.GET_MANAGED_PREFIX_LIST_ENTRIES, args, kwargs), + _models.GET_MANAGED_PREFIX_LIST_ENTRIES, + [], + plugins, + ) + + @_overload + def get_managed_resource_visibility( + self, + request: _models.GetManagedResourceVisibilityInput + | _models.GetManagedResourceVisibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetManagedResourceVisibilityOutput: ... + + @_overload def get_managed_resource_visibility( self, - input: GetManagedResourceVisibilityInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetManagedResourceVisibilityInputDict], ) -> GetManagedResourceVisibilityOutput: """ Retrieves the managed resource visibility configuration for the account. @@ -19254,8 +30724,6 @@ def get_managed_resource_visibility( by default. Args: - input: - An instance of `GetManagedResourceVisibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19265,19 +30733,41 @@ def get_managed_resource_visibility( Returns: An instance of `GetManagedResourceVisibilityOutput`. """ - return self._invoke(input, _models.GET_MANAGED_RESOURCE_VISIBILITY, [], plugins) + def get_managed_resource_visibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetManagedResourceVisibilityOutput: + return self._invoke( + self._select_input(_models.GET_MANAGED_RESOURCE_VISIBILITY, args, kwargs), + _models.GET_MANAGED_RESOURCE_VISIBILITY, + [], + plugins, + ) + + @_overload + def get_network_insights_access_scope_analysis_findings( + self, + request: _models.GetNetworkInsightsAccessScopeAnalysisFindingsInput + | _models.GetNetworkInsightsAccessScopeAnalysisFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetNetworkInsightsAccessScopeAnalysisFindingsOutput: ... + + @_overload def get_network_insights_access_scope_analysis_findings( self, - input: GetNetworkInsightsAccessScopeAnalysisFindingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.GetNetworkInsightsAccessScopeAnalysisFindingsInputDict + ], ) -> GetNetworkInsightsAccessScopeAnalysisFindingsOutput: """ Gets the findings for the specified Network Access Scope analysis. Args: - input: - An instance of `GetNetworkInsightsAccessScopeAnalysisFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19287,24 +30777,43 @@ def get_network_insights_access_scope_analysis_findings( Returns: An instance of `GetNetworkInsightsAccessScopeAnalysisFindingsOutput`. """ + + def get_network_insights_access_scope_analysis_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetNetworkInsightsAccessScopeAnalysisFindingsOutput: return self._invoke( - input, + self._select_input( + _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS_FINDINGS, + args, + kwargs, + ), _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS_FINDINGS, [], plugins, ) + @_overload + def get_network_insights_access_scope_content( + self, + request: _models.GetNetworkInsightsAccessScopeContentInput + | _models.GetNetworkInsightsAccessScopeContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetNetworkInsightsAccessScopeContentOutput: ... + + @_overload def get_network_insights_access_scope_content( self, - input: GetNetworkInsightsAccessScopeContentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetNetworkInsightsAccessScopeContentInputDict], ) -> GetNetworkInsightsAccessScopeContentOutput: """ Gets the content for the specified Network Access Scope. Args: - input: - An instance of `GetNetworkInsightsAccessScopeContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19314,12 +30823,35 @@ def get_network_insights_access_scope_content( Returns: An instance of `GetNetworkInsightsAccessScopeContentOutput`. """ + + def get_network_insights_access_scope_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetNetworkInsightsAccessScopeContentOutput: return self._invoke( - input, _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_CONTENT, [], plugins + self._select_input( + _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_CONTENT, args, kwargs + ), + _models.GET_NETWORK_INSIGHTS_ACCESS_SCOPE_CONTENT, + [], + plugins, ) + @_overload + def get_password_data( + self, + request: _models.GetPasswordDataInput | _models.GetPasswordDataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPasswordDataOutput: ... + + @_overload def get_password_data( - self, input: GetPasswordDataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPasswordDataInputDict], ) -> GetPasswordDataOutput: """ Retrieves the encrypted administrator password for a running Windows @@ -19347,8 +30879,6 @@ def get_password_data( retrieve the generated password. Args: - input: - An instance of `GetPasswordDataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19358,12 +30888,34 @@ def get_password_data( Returns: An instance of `GetPasswordDataOutput`. """ - return self._invoke(input, _models.GET_PASSWORD_DATA, [], plugins) + def get_password_data( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPasswordDataOutput: + return self._invoke( + self._select_input(_models.GET_PASSWORD_DATA, args, kwargs), + _models.GET_PASSWORD_DATA, + [], + plugins, + ) + + @_overload + def get_reserved_instances_exchange_quote( + self, + request: _models.GetReservedInstancesExchangeQuoteInput + | _models.GetReservedInstancesExchangeQuoteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetReservedInstancesExchangeQuoteOutput: ... + + @_overload def get_reserved_instances_exchange_quote( self, - input: GetReservedInstancesExchangeQuoteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetReservedInstancesExchangeQuoteInputDict], ) -> GetReservedInstancesExchangeQuoteOutput: """ Returns a quote and exchange information for exchanging one or more @@ -19373,8 +30925,6 @@ def get_reserved_instances_exchange_quote( exchange. Args: - input: - An instance of `GetReservedInstancesExchangeQuoteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19384,14 +30934,36 @@ def get_reserved_instances_exchange_quote( Returns: An instance of `GetReservedInstancesExchangeQuoteOutput`. """ + + def get_reserved_instances_exchange_quote( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetReservedInstancesExchangeQuoteOutput: return self._invoke( - input, _models.GET_RESERVED_INSTANCES_EXCHANGE_QUOTE, [], plugins + self._select_input( + _models.GET_RESERVED_INSTANCES_EXCHANGE_QUOTE, args, kwargs + ), + _models.GET_RESERVED_INSTANCES_EXCHANGE_QUOTE, + [], + plugins, ) + @_overload def get_route_server_associations( self, - input: GetRouteServerAssociationsInput, + request: _models.GetRouteServerAssociationsInput + | _models.GetRouteServerAssociationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetRouteServerAssociationsOutput: ... + + @_overload + def get_route_server_associations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRouteServerAssociationsInputDict], ) -> GetRouteServerAssociationsOutput: """ Gets information about the associations for the specified route server. @@ -19404,8 +30976,6 @@ def get_route_server_associations( in the *Amazon VPC User Guide*. Args: - input: - An instance of `GetRouteServerAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19415,12 +30985,34 @@ def get_route_server_associations( Returns: An instance of `GetRouteServerAssociationsOutput`. """ - return self._invoke(input, _models.GET_ROUTE_SERVER_ASSOCIATIONS, [], plugins) + def get_route_server_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRouteServerAssociationsOutput: + return self._invoke( + self._select_input(_models.GET_ROUTE_SERVER_ASSOCIATIONS, args, kwargs), + _models.GET_ROUTE_SERVER_ASSOCIATIONS, + [], + plugins, + ) + + @_overload + def get_route_server_propagations( + self, + request: _models.GetRouteServerPropagationsInput + | _models.GetRouteServerPropagationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRouteServerPropagationsOutput: ... + + @_overload def get_route_server_propagations( self, - input: GetRouteServerPropagationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRouteServerPropagationsInputDict], ) -> GetRouteServerPropagationsOutput: """ Gets information about the route propagations for the specified route @@ -19452,8 +31044,6 @@ def get_route_server_propagations( Connect](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html). Args: - input: - An instance of `GetRouteServerPropagationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19463,12 +31053,34 @@ def get_route_server_propagations( Returns: An instance of `GetRouteServerPropagationsOutput`. """ - return self._invoke(input, _models.GET_ROUTE_SERVER_PROPAGATIONS, [], plugins) + def get_route_server_propagations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRouteServerPropagationsOutput: + return self._invoke( + self._select_input(_models.GET_ROUTE_SERVER_PROPAGATIONS, args, kwargs), + _models.GET_ROUTE_SERVER_PROPAGATIONS, + [], + plugins, + ) + + @_overload + def get_route_server_routing_database( + self, + request: _models.GetRouteServerRoutingDatabaseInput + | _models.GetRouteServerRoutingDatabaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRouteServerRoutingDatabaseOutput: ... + + @_overload def get_route_server_routing_database( self, - input: GetRouteServerRoutingDatabaseInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRouteServerRoutingDatabaseInputDict], ) -> GetRouteServerRoutingDatabaseOutput: """ Gets the routing database for the specified route server. The [Routing @@ -19502,8 +31114,6 @@ def get_route_server_routing_database( Connect](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html). Args: - input: - An instance of `GetRouteServerRoutingDatabaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19513,20 +31123,40 @@ def get_route_server_routing_database( Returns: An instance of `GetRouteServerRoutingDatabaseOutput`. """ + + def get_route_server_routing_database( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRouteServerRoutingDatabaseOutput: return self._invoke( - input, _models.GET_ROUTE_SERVER_ROUTING_DATABASE, [], plugins + self._select_input(_models.GET_ROUTE_SERVER_ROUTING_DATABASE, args, kwargs), + _models.GET_ROUTE_SERVER_ROUTING_DATABASE, + [], + plugins, ) + @_overload + def get_security_groups_for_vpc( + self, + request: _models.GetSecurityGroupsForVpcInput + | _models.GetSecurityGroupsForVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSecurityGroupsForVpcOutput: ... + + @_overload def get_security_groups_for_vpc( - self, input: GetSecurityGroupsForVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSecurityGroupsForVpcInputDict], ) -> GetSecurityGroupsForVpcOutput: """ Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC. Args: - input: - An instance of `GetSecurityGroupsForVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19536,12 +31166,34 @@ def get_security_groups_for_vpc( Returns: An instance of `GetSecurityGroupsForVpcOutput`. """ - return self._invoke(input, _models.GET_SECURITY_GROUPS_FOR_VPC, [], plugins) + def get_security_groups_for_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSecurityGroupsForVpcOutput: + return self._invoke( + self._select_input(_models.GET_SECURITY_GROUPS_FOR_VPC, args, kwargs), + _models.GET_SECURITY_GROUPS_FOR_VPC, + [], + plugins, + ) + + @_overload + def get_serial_console_access_status( + self, + request: _models.GetSerialConsoleAccessStatusInput + | _models.GetSerialConsoleAccessStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSerialConsoleAccessStatusOutput: ... + + @_overload def get_serial_console_access_status( self, - input: GetSerialConsoleAccessStatusInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSerialConsoleAccessStatusInputDict], ) -> GetSerialConsoleAccessStatusOutput: """ Retrieves the access status of your account to the EC2 serial console of @@ -19552,8 +31204,6 @@ def get_serial_console_access_status( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetSerialConsoleAccessStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19563,14 +31213,34 @@ def get_serial_console_access_status( Returns: An instance of `GetSerialConsoleAccessStatusOutput`. """ + + def get_serial_console_access_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSerialConsoleAccessStatusOutput: return self._invoke( - input, _models.GET_SERIAL_CONSOLE_ACCESS_STATUS, [], plugins + self._select_input(_models.GET_SERIAL_CONSOLE_ACCESS_STATUS, args, kwargs), + _models.GET_SERIAL_CONSOLE_ACCESS_STATUS, + [], + plugins, ) + @_overload + def get_snapshot_block_public_access_state( + self, + request: _models.GetSnapshotBlockPublicAccessStateInput + | _models.GetSnapshotBlockPublicAccessStateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSnapshotBlockPublicAccessStateOutput: ... + + @_overload def get_snapshot_block_public_access_state( self, - input: GetSnapshotBlockPublicAccessStateInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSnapshotBlockPublicAccessStateInputDict], ) -> GetSnapshotBlockPublicAccessStateOutput: """ Gets the current state of *block public access for snapshots* setting @@ -19581,8 +31251,6 @@ def get_snapshot_block_public_access_state( in the *Amazon EBS User Guide*. Args: - input: - An instance of `GetSnapshotBlockPublicAccessStateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19592,12 +31260,36 @@ def get_snapshot_block_public_access_state( Returns: An instance of `GetSnapshotBlockPublicAccessStateOutput`. """ + + def get_snapshot_block_public_access_state( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSnapshotBlockPublicAccessStateOutput: return self._invoke( - input, _models.GET_SNAPSHOT_BLOCK_PUBLIC_ACCESS_STATE, [], plugins + self._select_input( + _models.GET_SNAPSHOT_BLOCK_PUBLIC_ACCESS_STATE, args, kwargs + ), + _models.GET_SNAPSHOT_BLOCK_PUBLIC_ACCESS_STATE, + [], + plugins, ) + @_overload + def get_spot_placement_scores( + self, + request: _models.GetSpotPlacementScoresInput + | _models.GetSpotPlacementScoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSpotPlacementScoresOutput: ... + + @_overload def get_spot_placement_scores( - self, input: GetSpotPlacementScoresInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSpotPlacementScoresInputDict], ) -> GetSpotPlacementScoresOutput: """ Calculates the Spot placement score for a Region or Availability Zone @@ -19613,8 +31305,6 @@ def get_spot_placement_scores( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `GetSpotPlacementScoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19624,17 +31314,39 @@ def get_spot_placement_scores( Returns: An instance of `GetSpotPlacementScoresOutput`. """ - return self._invoke(input, _models.GET_SPOT_PLACEMENT_SCORES, [], plugins) + def get_spot_placement_scores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSpotPlacementScoresOutput: + return self._invoke( + self._select_input(_models.GET_SPOT_PLACEMENT_SCORES, args, kwargs), + _models.GET_SPOT_PLACEMENT_SCORES, + [], + plugins, + ) + + @_overload + def get_subnet_cidr_reservations( + self, + request: _models.GetSubnetCidrReservationsInput + | _models.GetSubnetCidrReservationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSubnetCidrReservationsOutput: ... + + @_overload def get_subnet_cidr_reservations( - self, input: GetSubnetCidrReservationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSubnetCidrReservationsInputDict], ) -> GetSubnetCidrReservationsOutput: """ Gets information about the subnet CIDR reservations. Args: - input: - An instance of `GetSubnetCidrReservationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19644,12 +31356,34 @@ def get_subnet_cidr_reservations( Returns: An instance of `GetSubnetCidrReservationsOutput`. """ - return self._invoke(input, _models.GET_SUBNET_CIDR_RESERVATIONS, [], plugins) + def get_subnet_cidr_reservations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSubnetCidrReservationsOutput: + return self._invoke( + self._select_input(_models.GET_SUBNET_CIDR_RESERVATIONS, args, kwargs), + _models.GET_SUBNET_CIDR_RESERVATIONS, + [], + plugins, + ) + + @_overload def get_transit_gateway_attachment_nat_configuration( self, - input: GetTransitGatewayAttachmentNatConfigurationInput, + request: _models.GetTransitGatewayAttachmentNatConfigurationInput + | _models.GetTransitGatewayAttachmentNatConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayAttachmentNatConfigurationOutput: ... + + @_overload + def get_transit_gateway_attachment_nat_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayAttachmentNatConfigurationInputDict], ) -> GetTransitGatewayAttachmentNatConfigurationOutput: """ Describes the NAT configuration for the specified transit gateway @@ -19657,8 +31391,6 @@ def get_transit_gateway_attachment_nat_configuration( configuration. Args: - input: - An instance of `GetTransitGatewayAttachmentNatConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19668,22 +31400,42 @@ def get_transit_gateway_attachment_nat_configuration( Returns: An instance of `GetTransitGatewayAttachmentNatConfigurationOutput`. """ + + def get_transit_gateway_attachment_nat_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayAttachmentNatConfigurationOutput: return self._invoke( - input, _models.GET_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, + [], + plugins, ) + @_overload + def get_transit_gateway_attachment_propagations( + self, + request: _models.GetTransitGatewayAttachmentPropagationsInput + | _models.GetTransitGatewayAttachmentPropagationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayAttachmentPropagationsOutput: ... + + @_overload def get_transit_gateway_attachment_propagations( self, - input: GetTransitGatewayAttachmentPropagationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayAttachmentPropagationsInputDict], ) -> GetTransitGatewayAttachmentPropagationsOutput: """ Lists the route tables to which the specified resource attachment propagates routes. Args: - input: - An instance of `GetTransitGatewayAttachmentPropagationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19693,21 +31445,41 @@ def get_transit_gateway_attachment_propagations( Returns: An instance of `GetTransitGatewayAttachmentPropagationsOutput`. """ + + def get_transit_gateway_attachment_propagations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayAttachmentPropagationsOutput: return self._invoke( - input, _models.GET_TRANSIT_GATEWAY_ATTACHMENT_PROPAGATIONS, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_ATTACHMENT_PROPAGATIONS, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_ATTACHMENT_PROPAGATIONS, + [], + plugins, ) + @_overload + def get_transit_gateway_metering_policy_entries( + self, + request: _models.GetTransitGatewayMeteringPolicyEntriesInput + | _models.GetTransitGatewayMeteringPolicyEntriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayMeteringPolicyEntriesOutput: ... + + @_overload def get_transit_gateway_metering_policy_entries( self, - input: GetTransitGatewayMeteringPolicyEntriesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayMeteringPolicyEntriesInputDict], ) -> GetTransitGatewayMeteringPolicyEntriesOutput: """ Retrieves the entries for a transit gateway metering policy. Args: - input: - An instance of `GetTransitGatewayMeteringPolicyEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19717,22 +31489,44 @@ def get_transit_gateway_metering_policy_entries( Returns: An instance of `GetTransitGatewayMeteringPolicyEntriesOutput`. """ + + def get_transit_gateway_metering_policy_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayMeteringPolicyEntriesOutput: return self._invoke( - input, _models.GET_TRANSIT_GATEWAY_METERING_POLICY_ENTRIES, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_METERING_POLICY_ENTRIES, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_METERING_POLICY_ENTRIES, + [], + plugins, ) + @_overload + def get_transit_gateway_multicast_domain_associations( + self, + request: _models.GetTransitGatewayMulticastDomainAssociationsInput + | _models.GetTransitGatewayMulticastDomainAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayMulticastDomainAssociationsOutput: ... + + @_overload def get_transit_gateway_multicast_domain_associations( self, - input: GetTransitGatewayMulticastDomainAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.GetTransitGatewayMulticastDomainAssociationsInputDict + ], ) -> GetTransitGatewayMulticastDomainAssociationsOutput: """ Gets information about the associations for the transit gateway multicast domain. Args: - input: - An instance of `GetTransitGatewayMulticastDomainAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19742,24 +31536,41 @@ def get_transit_gateway_multicast_domain_associations( Returns: An instance of `GetTransitGatewayMulticastDomainAssociationsOutput`. """ + + def get_transit_gateway_multicast_domain_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayMulticastDomainAssociationsOutput: return self._invoke( - input, + self._select_input( + _models.GET_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, args, kwargs + ), _models.GET_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, [], plugins, ) + @_overload + def get_transit_gateway_policy_table_associations( + self, + request: _models.GetTransitGatewayPolicyTableAssociationsInput + | _models.GetTransitGatewayPolicyTableAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayPolicyTableAssociationsOutput: ... + + @_overload def get_transit_gateway_policy_table_associations( self, - input: GetTransitGatewayPolicyTableAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayPolicyTableAssociationsInputDict], ) -> GetTransitGatewayPolicyTableAssociationsOutput: """ Gets a list of the transit gateway policy table associations. Args: - input: - An instance of `GetTransitGatewayPolicyTableAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19769,21 +31580,41 @@ def get_transit_gateway_policy_table_associations( Returns: An instance of `GetTransitGatewayPolicyTableAssociationsOutput`. """ + + def get_transit_gateway_policy_table_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayPolicyTableAssociationsOutput: return self._invoke( - input, _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ASSOCIATIONS, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ASSOCIATIONS, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ASSOCIATIONS, + [], + plugins, ) + @_overload + def get_transit_gateway_policy_table_entries( + self, + request: _models.GetTransitGatewayPolicyTableEntriesInput + | _models.GetTransitGatewayPolicyTableEntriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayPolicyTableEntriesOutput: ... + + @_overload def get_transit_gateway_policy_table_entries( self, - input: GetTransitGatewayPolicyTableEntriesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayPolicyTableEntriesInputDict], ) -> GetTransitGatewayPolicyTableEntriesOutput: """ Returns a list of transit gateway policy table entries. Args: - input: - An instance of `GetTransitGatewayPolicyTableEntriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19793,22 +31624,42 @@ def get_transit_gateway_policy_table_entries( Returns: An instance of `GetTransitGatewayPolicyTableEntriesOutput`. """ + + def get_transit_gateway_policy_table_entries( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayPolicyTableEntriesOutput: return self._invoke( - input, _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ENTRIES, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ENTRIES, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_POLICY_TABLE_ENTRIES, + [], + plugins, ) + @_overload + def get_transit_gateway_prefix_list_references( + self, + request: _models.GetTransitGatewayPrefixListReferencesInput + | _models.GetTransitGatewayPrefixListReferencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayPrefixListReferencesOutput: ... + + @_overload def get_transit_gateway_prefix_list_references( self, - input: GetTransitGatewayPrefixListReferencesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayPrefixListReferencesInputDict], ) -> GetTransitGatewayPrefixListReferencesOutput: """ Gets information about the prefix list references in a specified transit gateway route table. Args: - input: - An instance of `GetTransitGatewayPrefixListReferencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19818,22 +31669,42 @@ def get_transit_gateway_prefix_list_references( Returns: An instance of `GetTransitGatewayPrefixListReferencesOutput`. """ + + def get_transit_gateway_prefix_list_references( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayPrefixListReferencesOutput: return self._invoke( - input, _models.GET_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCES, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCES, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCES, + [], + plugins, ) + @_overload + def get_transit_gateway_route_table_associations( + self, + request: _models.GetTransitGatewayRouteTableAssociationsInput + | _models.GetTransitGatewayRouteTableAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayRouteTableAssociationsOutput: ... + + @_overload def get_transit_gateway_route_table_associations( self, - input: GetTransitGatewayRouteTableAssociationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayRouteTableAssociationsInputDict], ) -> GetTransitGatewayRouteTableAssociationsOutput: """ Gets information about the associations for the specified transit gateway route table. Args: - input: - An instance of `GetTransitGatewayRouteTableAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19843,22 +31714,42 @@ def get_transit_gateway_route_table_associations( Returns: An instance of `GetTransitGatewayRouteTableAssociationsOutput`. """ + + def get_transit_gateway_route_table_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayRouteTableAssociationsOutput: return self._invoke( - input, _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_ASSOCIATIONS, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_ASSOCIATIONS, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_ASSOCIATIONS, + [], + plugins, ) + @_overload + def get_transit_gateway_route_table_propagations( + self, + request: _models.GetTransitGatewayRouteTablePropagationsInput + | _models.GetTransitGatewayRouteTablePropagationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTransitGatewayRouteTablePropagationsOutput: ... + + @_overload def get_transit_gateway_route_table_propagations( self, - input: GetTransitGatewayRouteTablePropagationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTransitGatewayRouteTablePropagationsInputDict], ) -> GetTransitGatewayRouteTablePropagationsOutput: """ Gets information about the route table propagations for the specified transit gateway route table. Args: - input: - An instance of `GetTransitGatewayRouteTablePropagationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19868,21 +31759,41 @@ def get_transit_gateway_route_table_propagations( Returns: An instance of `GetTransitGatewayRouteTablePropagationsOutput`. """ + + def get_transit_gateway_route_table_propagations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTransitGatewayRouteTablePropagationsOutput: return self._invoke( - input, _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATIONS, [], plugins + self._select_input( + _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATIONS, args, kwargs + ), + _models.GET_TRANSIT_GATEWAY_ROUTE_TABLE_PROPAGATIONS, + [], + plugins, ) + @_overload + def get_verified_access_endpoint_policy( + self, + request: _models.GetVerifiedAccessEndpointPolicyInput + | _models.GetVerifiedAccessEndpointPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVerifiedAccessEndpointPolicyOutput: ... + + @_overload def get_verified_access_endpoint_policy( self, - input: GetVerifiedAccessEndpointPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVerifiedAccessEndpointPolicyInputDict], ) -> GetVerifiedAccessEndpointPolicyOutput: """ Get the Verified Access policy associated with the endpoint. Args: - input: - An instance of `GetVerifiedAccessEndpointPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19892,22 +31803,42 @@ def get_verified_access_endpoint_policy( Returns: An instance of `GetVerifiedAccessEndpointPolicyOutput`. """ + + def get_verified_access_endpoint_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVerifiedAccessEndpointPolicyOutput: return self._invoke( - input, _models.GET_VERIFIED_ACCESS_ENDPOINT_POLICY, [], plugins + self._select_input( + _models.GET_VERIFIED_ACCESS_ENDPOINT_POLICY, args, kwargs + ), + _models.GET_VERIFIED_ACCESS_ENDPOINT_POLICY, + [], + plugins, ) + @_overload def get_verified_access_endpoint_targets( self, - input: GetVerifiedAccessEndpointTargetsInput, + request: _models.GetVerifiedAccessEndpointTargetsInput + | _models.GetVerifiedAccessEndpointTargetsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetVerifiedAccessEndpointTargetsOutput: ... + + @_overload + def get_verified_access_endpoint_targets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVerifiedAccessEndpointTargetsInputDict], ) -> GetVerifiedAccessEndpointTargetsOutput: """ Gets the targets for the specified network CIDR endpoint for Verified Access. Args: - input: - An instance of `GetVerifiedAccessEndpointTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19917,22 +31848,42 @@ def get_verified_access_endpoint_targets( Returns: An instance of `GetVerifiedAccessEndpointTargetsOutput`. """ + + def get_verified_access_endpoint_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVerifiedAccessEndpointTargetsOutput: return self._invoke( - input, _models.GET_VERIFIED_ACCESS_ENDPOINT_TARGETS, [], plugins + self._select_input( + _models.GET_VERIFIED_ACCESS_ENDPOINT_TARGETS, args, kwargs + ), + _models.GET_VERIFIED_ACCESS_ENDPOINT_TARGETS, + [], + plugins, ) + @_overload + def get_verified_access_group_policy( + self, + request: _models.GetVerifiedAccessGroupPolicyInput + | _models.GetVerifiedAccessGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVerifiedAccessGroupPolicyOutput: ... + + @_overload def get_verified_access_group_policy( self, - input: GetVerifiedAccessGroupPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVerifiedAccessGroupPolicyInputDict], ) -> GetVerifiedAccessGroupPolicyOutput: """ Shows the contents of the Verified Access policy associated with the group. Args: - input: - An instance of `GetVerifiedAccessGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19942,14 +31893,36 @@ def get_verified_access_group_policy( Returns: An instance of `GetVerifiedAccessGroupPolicyOutput`. """ + + def get_verified_access_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVerifiedAccessGroupPolicyOutput: return self._invoke( - input, _models.GET_VERIFIED_ACCESS_GROUP_POLICY, [], plugins + self._select_input(_models.GET_VERIFIED_ACCESS_GROUP_POLICY, args, kwargs), + _models.GET_VERIFIED_ACCESS_GROUP_POLICY, + [], + plugins, ) + @_overload + def get_vpc_resources_blocking_encryption_enforcement( + self, + request: _models.GetVpcResourcesBlockingEncryptionEnforcementInput + | _models.GetVpcResourcesBlockingEncryptionEnforcementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpcResourcesBlockingEncryptionEnforcementOutput: ... + + @_overload def get_vpc_resources_blocking_encryption_enforcement( self, - input: GetVpcResourcesBlockingEncryptionEnforcementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.GetVpcResourcesBlockingEncryptionEnforcementInputDict + ], ) -> GetVpcResourcesBlockingEncryptionEnforcementOutput: """ Gets information about resources in a VPC that are blocking encryption @@ -19960,8 +31933,6 @@ def get_vpc_resources_blocking_encryption_enforcement( in the *Amazon VPC User Guide*. Args: - input: - An instance of `GetVpcResourcesBlockingEncryptionEnforcementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -19971,17 +31942,36 @@ def get_vpc_resources_blocking_encryption_enforcement( Returns: An instance of `GetVpcResourcesBlockingEncryptionEnforcementOutput`. """ + + def get_vpc_resources_blocking_encryption_enforcement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpcResourcesBlockingEncryptionEnforcementOutput: return self._invoke( - input, + self._select_input( + _models.GET_VPC_RESOURCES_BLOCKING_ENCRYPTION_ENFORCEMENT, args, kwargs + ), _models.GET_VPC_RESOURCES_BLOCKING_ENCRYPTION_ENFORCEMENT, [], plugins, ) + @_overload + def get_vpn_connection_device_sample_configuration( + self, + request: _models.GetVpnConnectionDeviceSampleConfigurationInput + | _models.GetVpnConnectionDeviceSampleConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpnConnectionDeviceSampleConfigurationOutput: ... + + @_overload def get_vpn_connection_device_sample_configuration( self, - input: GetVpnConnectionDeviceSampleConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpnConnectionDeviceSampleConfigurationInputDict], ) -> GetVpnConnectionDeviceSampleConfigurationOutput: """ Download an Amazon Web Services-provided sample configuration file to be @@ -19989,8 +31979,6 @@ def get_vpn_connection_device_sample_configuration( VPN connection. Args: - input: - An instance of `GetVpnConnectionDeviceSampleConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20000,14 +31988,36 @@ def get_vpn_connection_device_sample_configuration( Returns: An instance of `GetVpnConnectionDeviceSampleConfigurationOutput`. """ + + def get_vpn_connection_device_sample_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpnConnectionDeviceSampleConfigurationOutput: return self._invoke( - input, _models.GET_VPN_CONNECTION_DEVICE_SAMPLE_CONFIGURATION, [], plugins + self._select_input( + _models.GET_VPN_CONNECTION_DEVICE_SAMPLE_CONFIGURATION, args, kwargs + ), + _models.GET_VPN_CONNECTION_DEVICE_SAMPLE_CONFIGURATION, + [], + plugins, ) + @_overload + def get_vpn_connection_device_types( + self, + request: _models.GetVpnConnectionDeviceTypesInput + | _models.GetVpnConnectionDeviceTypesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpnConnectionDeviceTypesOutput: ... + + @_overload def get_vpn_connection_device_types( self, - input: GetVpnConnectionDeviceTypesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpnConnectionDeviceTypesInputDict], ) -> GetVpnConnectionDeviceTypesOutput: """ Obtain a list of customer gateway devices for which sample configuration @@ -20018,8 +32028,6 @@ def get_vpn_connection_device_types( the *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `GetVpnConnectionDeviceTypesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20029,19 +32037,39 @@ def get_vpn_connection_device_types( Returns: An instance of `GetVpnConnectionDeviceTypesOutput`. """ - return self._invoke(input, _models.GET_VPN_CONNECTION_DEVICE_TYPES, [], plugins) + def get_vpn_connection_device_types( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpnConnectionDeviceTypesOutput: + return self._invoke( + self._select_input(_models.GET_VPN_CONNECTION_DEVICE_TYPES, args, kwargs), + _models.GET_VPN_CONNECTION_DEVICE_TYPES, + [], + plugins, + ) + + @_overload + def get_vpn_tunnel_replacement_status( + self, + request: _models.GetVpnTunnelReplacementStatusInput + | _models.GetVpnTunnelReplacementStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetVpnTunnelReplacementStatusOutput: ... + + @_overload def get_vpn_tunnel_replacement_status( self, - input: GetVpnTunnelReplacementStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetVpnTunnelReplacementStatusInputDict], ) -> GetVpnTunnelReplacementStatusOutput: """ Get details of available tunnel endpoint maintenance. Args: - input: - An instance of `GetVpnTunnelReplacementStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20051,14 +32079,36 @@ def get_vpn_tunnel_replacement_status( Returns: An instance of `GetVpnTunnelReplacementStatusOutput`. """ + + def get_vpn_tunnel_replacement_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetVpnTunnelReplacementStatusOutput: return self._invoke( - input, _models.GET_VPN_TUNNEL_REPLACEMENT_STATUS, [], plugins + self._select_input(_models.GET_VPN_TUNNEL_REPLACEMENT_STATUS, args, kwargs), + _models.GET_VPN_TUNNEL_REPLACEMENT_STATUS, + [], + plugins, ) + @_overload + def import_client_vpn_client_certificate_revocation_list( + self, + request: _models.ImportClientVpnClientCertificateRevocationListInput + | _models.ImportClientVpnClientCertificateRevocationListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportClientVpnClientCertificateRevocationListOutput: ... + + @_overload def import_client_vpn_client_certificate_revocation_list( self, - input: ImportClientVpnClientCertificateRevocationListInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ImportClientVpnClientCertificateRevocationListInputDict + ], ) -> ImportClientVpnClientCertificateRevocationListOutput: """ Uploads a client certificate revocation list to the specified Client VPN @@ -20069,8 +32119,6 @@ def import_client_vpn_client_certificate_revocation_list( connections. Args: - input: - An instance of `ImportClientVpnClientCertificateRevocationListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20080,15 +32128,37 @@ def import_client_vpn_client_certificate_revocation_list( Returns: An instance of `ImportClientVpnClientCertificateRevocationListOutput`. """ + + def import_client_vpn_client_certificate_revocation_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportClientVpnClientCertificateRevocationListOutput: return self._invoke( - input, + self._select_input( + _models.IMPORT_CLIENT_VPN_CLIENT_CERTIFICATE_REVOCATION_LIST, + args, + kwargs, + ), _models.IMPORT_CLIENT_VPN_CLIENT_CERTIFICATE_REVOCATION_LIST, [], plugins, ) + @_overload + def import_image( + self, + request: _models.ImportImageInput | _models.ImportImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportImageOutput: ... + + @_overload def import_image( - self, input: ImportImageInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportImageInputDict], ) -> ImportImageOutput: """ Note: @@ -20114,8 +32184,6 @@ def import_image( in the *VM Import/Export User Guide*. Args: - input: - An instance of `ImportImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20125,10 +32193,33 @@ def import_image( Returns: An instance of `ImportImageOutput`. """ - return self._invoke(input, _models.IMPORT_IMAGE, [], plugins) + def import_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportImageOutput: + return self._invoke( + self._select_input(_models.IMPORT_IMAGE, args, kwargs), + _models.IMPORT_IMAGE, + [], + plugins, + ) + + @_overload + def import_instance( + self, + request: _models.ImportInstanceInput | _models.ImportInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportInstanceOutput: ... + + @_overload def import_instance( - self, input: ImportInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportInstanceInputDict], ) -> ImportInstanceOutput: """ Note: @@ -20152,8 +32243,6 @@ def import_instance( This API action is not supported by the Command Line Interface (CLI). Args: - input: - An instance of `ImportInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20163,10 +32252,33 @@ def import_instance( Returns: An instance of `ImportInstanceOutput`. """ - return self._invoke(input, _models.IMPORT_INSTANCE, [], plugins) + def import_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportInstanceOutput: + return self._invoke( + self._select_input(_models.IMPORT_INSTANCE, args, kwargs), + _models.IMPORT_INSTANCE, + [], + plugins, + ) + + @_overload + def import_key_pair( + self, + request: _models.ImportKeyPairInput | _models.ImportKeyPairInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportKeyPairOutput: ... + + @_overload def import_key_pair( - self, input: ImportKeyPairInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportKeyPairInputDict], ) -> ImportKeyPairOutput: """ Imports the public key from an RSA or ED25519 key pair that you created @@ -20180,8 +32292,6 @@ def import_key_pair( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ImportKeyPairInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20191,12 +32301,33 @@ def import_key_pair( Returns: An instance of `ImportKeyPairOutput`. """ - return self._invoke(input, _models.IMPORT_KEY_PAIR, [], plugins) + def import_key_pair( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportKeyPairOutput: + return self._invoke( + self._select_input(_models.IMPORT_KEY_PAIR, args, kwargs), + _models.IMPORT_KEY_PAIR, + [], + plugins, + ) + + @_overload + def import_snapshot( + self, + request: _models.ImportSnapshotInput | _models.ImportSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportSnapshotOutput: ... + + @_overload def import_snapshot( self, - input: ImportSnapshotInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportSnapshotInputDict], ) -> ImportSnapshotOutput: """ Imports a disk into an EBS snapshot. @@ -20206,8 +32337,6 @@ def import_snapshot( in the *VM Import/Export User Guide*. Args: - input: - An instance of `ImportSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20217,10 +32346,33 @@ def import_snapshot( Returns: An instance of `ImportSnapshotOutput`. """ - return self._invoke(input, _models.IMPORT_SNAPSHOT, [], plugins) + def import_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportSnapshotOutput: + return self._invoke( + self._select_input(_models.IMPORT_SNAPSHOT, args, kwargs), + _models.IMPORT_SNAPSHOT, + [], + plugins, + ) + + @_overload + def import_volume( + self, + request: _models.ImportVolumeInput | _models.ImportVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportVolumeOutput: ... + + @_overload def import_volume( - self, input: ImportVolumeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportVolumeInputDict], ) -> ImportVolumeOutput: """ Note: @@ -20238,8 +32390,6 @@ def import_volume( This API action is not supported by the Command Line Interface (CLI). Args: - input: - An instance of `ImportVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20249,12 +32399,34 @@ def import_volume( Returns: An instance of `ImportVolumeOutput`. """ - return self._invoke(input, _models.IMPORT_VOLUME, [], plugins) + def import_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportVolumeOutput: + return self._invoke( + self._select_input(_models.IMPORT_VOLUME, args, kwargs), + _models.IMPORT_VOLUME, + [], + plugins, + ) + + @_overload + def list_images_in_recycle_bin( + self, + request: _models.ListImagesInRecycleBinInput + | _models.ListImagesInRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListImagesInRecycleBinOutput: ... + + @_overload def list_images_in_recycle_bin( self, - input: ListImagesInRecycleBinInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListImagesInRecycleBinInputDict], ) -> ListImagesInRecycleBinOutput: """ Lists one or more AMIs that are currently in the Recycle Bin. For more @@ -20263,8 +32435,6 @@ def list_images_in_recycle_bin( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ListImagesInRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20274,19 +32444,39 @@ def list_images_in_recycle_bin( Returns: An instance of `ListImagesInRecycleBinOutput`. """ - return self._invoke(input, _models.LIST_IMAGES_IN_RECYCLE_BIN, [], plugins) + def list_images_in_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListImagesInRecycleBinOutput: + return self._invoke( + self._select_input(_models.LIST_IMAGES_IN_RECYCLE_BIN, args, kwargs), + _models.LIST_IMAGES_IN_RECYCLE_BIN, + [], + plugins, + ) + + @_overload + def list_snapshots_in_recycle_bin( + self, + request: _models.ListSnapshotsInRecycleBinInput + | _models.ListSnapshotsInRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSnapshotsInRecycleBinOutput: ... + + @_overload def list_snapshots_in_recycle_bin( self, - input: ListSnapshotsInRecycleBinInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSnapshotsInRecycleBinInputDict], ) -> ListSnapshotsInRecycleBinOutput: """ Lists one or more snapshots that are currently in the Recycle Bin. Args: - input: - An instance of `ListSnapshotsInRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20296,19 +32486,39 @@ def list_snapshots_in_recycle_bin( Returns: An instance of `ListSnapshotsInRecycleBinOutput`. """ - return self._invoke(input, _models.LIST_SNAPSHOTS_IN_RECYCLE_BIN, [], plugins) + def list_snapshots_in_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSnapshotsInRecycleBinOutput: + return self._invoke( + self._select_input(_models.LIST_SNAPSHOTS_IN_RECYCLE_BIN, args, kwargs), + _models.LIST_SNAPSHOTS_IN_RECYCLE_BIN, + [], + plugins, + ) + + @_overload + def list_volumes_in_recycle_bin( + self, + request: _models.ListVolumesInRecycleBinInput + | _models.ListVolumesInRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVolumesInRecycleBinOutput: ... + + @_overload def list_volumes_in_recycle_bin( self, - input: ListVolumesInRecycleBinInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVolumesInRecycleBinInputDict], ) -> ListVolumesInRecycleBinOutput: """ Lists one or more volumes that are currently in the Recycle Bin. Args: - input: - An instance of `ListVolumesInRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20318,10 +32528,33 @@ def list_volumes_in_recycle_bin( Returns: An instance of `ListVolumesInRecycleBinOutput`. """ - return self._invoke(input, _models.LIST_VOLUMES_IN_RECYCLE_BIN, [], plugins) + def list_volumes_in_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVolumesInRecycleBinOutput: + return self._invoke( + self._select_input(_models.LIST_VOLUMES_IN_RECYCLE_BIN, args, kwargs), + _models.LIST_VOLUMES_IN_RECYCLE_BIN, + [], + plugins, + ) + + @_overload + def lock_snapshot( + self, + request: _models.LockSnapshotInput | _models.LockSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> LockSnapshotOutput: ... + + @_overload def lock_snapshot( - self, input: LockSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.LockSnapshotInputDict], ) -> LockSnapshotOutput: """ Locks an Amazon EBS snapshot in either *governance* or *compliance* mode @@ -20344,8 +32577,6 @@ def lock_snapshot( the lock expiration date. Args: - input: - An instance of `LockSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20355,12 +32586,34 @@ def lock_snapshot( Returns: An instance of `LockSnapshotOutput`. """ - return self._invoke(input, _models.LOCK_SNAPSHOT, [], plugins) + def lock_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> LockSnapshotOutput: + return self._invoke( + self._select_input(_models.LOCK_SNAPSHOT, args, kwargs), + _models.LOCK_SNAPSHOT, + [], + plugins, + ) + + @_overload + def modify_account_vpc_encryption_control( + self, + request: _models.ModifyAccountVpcEncryptionControlInput + | _models.ModifyAccountVpcEncryptionControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyAccountVpcEncryptionControlOutput: ... + + @_overload def modify_account_vpc_encryption_control( self, - input: ModifyAccountVpcEncryptionControlInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyAccountVpcEncryptionControlInputDict], ) -> ModifyAccountVpcEncryptionControlOutput: """ Modifies the account-level VPC Encryption Control configuration. This @@ -20374,8 +32627,6 @@ def modify_account_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ModifyAccountVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20385,12 +32636,36 @@ def modify_account_vpc_encryption_control( Returns: An instance of `ModifyAccountVpcEncryptionControlOutput`. """ + + def modify_account_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyAccountVpcEncryptionControlOutput: return self._invoke( - input, _models.MODIFY_ACCOUNT_VPC_ENCRYPTION_CONTROL, [], plugins + self._select_input( + _models.MODIFY_ACCOUNT_VPC_ENCRYPTION_CONTROL, args, kwargs + ), + _models.MODIFY_ACCOUNT_VPC_ENCRYPTION_CONTROL, + [], + plugins, ) + @_overload + def modify_address_attribute( + self, + request: _models.ModifyAddressAttributeInput + | _models.ModifyAddressAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyAddressAttributeOutput: ... + + @_overload def modify_address_attribute( - self, input: ModifyAddressAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyAddressAttributeInputDict], ) -> ModifyAddressAttributeOutput: """ Modifies an attribute of the specified Elastic IP address. For @@ -20398,8 +32673,6 @@ def modify_address_attribute( applications](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). Args: - input: - An instance of `ModifyAddressAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20409,12 +32682,34 @@ def modify_address_attribute( Returns: An instance of `ModifyAddressAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_ADDRESS_ATTRIBUTE, [], plugins) + def modify_address_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyAddressAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_ADDRESS_ATTRIBUTE, args, kwargs), + _models.MODIFY_ADDRESS_ATTRIBUTE, + [], + plugins, + ) + + @_overload def modify_application_status_check( self, - input: ModifyApplicationStatusCheckInput, + request: _models.ModifyApplicationStatusCheckInput + | _models.ModifyApplicationStatusCheckInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyApplicationStatusCheckOutput: ... + + @_overload + def modify_application_status_check( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyApplicationStatusCheckInputDict], ) -> ModifyApplicationStatusCheckOutput: """ Modifies an existing application status check. You can update the @@ -20426,8 +32721,6 @@ def modify_application_status_check( - Changes take effect on the next health check interval. Args: - input: - An instance of `ModifyApplicationStatusCheckInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20437,19 +32730,39 @@ def modify_application_status_check( Returns: An instance of `ModifyApplicationStatusCheckOutput`. """ - return self._invoke(input, _models.MODIFY_APPLICATION_STATUS_CHECK, [], plugins) + def modify_application_status_check( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyApplicationStatusCheckOutput: + return self._invoke( + self._select_input(_models.MODIFY_APPLICATION_STATUS_CHECK, args, kwargs), + _models.MODIFY_APPLICATION_STATUS_CHECK, + [], + plugins, + ) + + @_overload + def modify_availability_zone_group( + self, + request: _models.ModifyAvailabilityZoneGroupInput + | _models.ModifyAvailabilityZoneGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyAvailabilityZoneGroupOutput: ... + + @_overload def modify_availability_zone_group( self, - input: ModifyAvailabilityZoneGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyAvailabilityZoneGroupInputDict], ) -> ModifyAvailabilityZoneGroupOutput: """ Changes the opt-in status of the specified zone group for your account. Args: - input: - An instance of `ModifyAvailabilityZoneGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20459,10 +32772,34 @@ def modify_availability_zone_group( Returns: An instance of `ModifyAvailabilityZoneGroupOutput`. """ - return self._invoke(input, _models.MODIFY_AVAILABILITY_ZONE_GROUP, [], plugins) + def modify_availability_zone_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyAvailabilityZoneGroupOutput: + return self._invoke( + self._select_input(_models.MODIFY_AVAILABILITY_ZONE_GROUP, args, kwargs), + _models.MODIFY_AVAILABILITY_ZONE_GROUP, + [], + plugins, + ) + + @_overload + def modify_capacity_reservation( + self, + request: _models.ModifyCapacityReservationInput + | _models.ModifyCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCapacityReservationOutput: ... + + @_overload def modify_capacity_reservation( - self, input: ModifyCapacityReservationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCapacityReservationInputDict], ) -> ModifyCapacityReservationOutput: """ Modifies a Capacity Reservation's capacity, instance eligibility, and @@ -20500,8 +32837,6 @@ def modify_capacity_reservation( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20511,12 +32846,34 @@ def modify_capacity_reservation( Returns: An instance of `ModifyCapacityReservationOutput`. """ - return self._invoke(input, _models.MODIFY_CAPACITY_RESERVATION, [], plugins) + def modify_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCapacityReservationOutput: + return self._invoke( + self._select_input(_models.MODIFY_CAPACITY_RESERVATION, args, kwargs), + _models.MODIFY_CAPACITY_RESERVATION, + [], + plugins, + ) + + @_overload + def modify_capacity_reservation_fleet( + self, + request: _models.ModifyCapacityReservationFleetInput + | _models.ModifyCapacityReservationFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCapacityReservationFleetOutput: ... + + @_overload def modify_capacity_reservation_fleet( self, - input: ModifyCapacityReservationFleetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCapacityReservationFleetInputDict], ) -> ModifyCapacityReservationFleetOutput: """ Modifies a Capacity Reservation Fleet. @@ -20529,8 +32886,6 @@ def modify_capacity_reservation_fleet( the Fleet are updated accordingly. Args: - input: - An instance of `ModifyCapacityReservationFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20540,20 +32895,40 @@ def modify_capacity_reservation_fleet( Returns: An instance of `ModifyCapacityReservationFleetOutput`. """ + + def modify_capacity_reservation_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCapacityReservationFleetOutput: return self._invoke( - input, _models.MODIFY_CAPACITY_RESERVATION_FLEET, [], plugins + self._select_input(_models.MODIFY_CAPACITY_RESERVATION_FLEET, args, kwargs), + _models.MODIFY_CAPACITY_RESERVATION_FLEET, + [], + plugins, ) + @_overload + def modify_client_vpn_endpoint( + self, + request: _models.ModifyClientVpnEndpointInput + | _models.ModifyClientVpnEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyClientVpnEndpointOutput: ... + + @_overload def modify_client_vpn_endpoint( - self, input: ModifyClientVpnEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyClientVpnEndpointInputDict], ) -> ModifyClientVpnEndpointOutput: """ Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections. Args: - input: - An instance of `ModifyClientVpnEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20563,12 +32938,34 @@ def modify_client_vpn_endpoint( Returns: An instance of `ModifyClientVpnEndpointOutput`. """ - return self._invoke(input, _models.MODIFY_CLIENT_VPN_ENDPOINT, [], plugins) + def modify_client_vpn_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyClientVpnEndpointOutput: + return self._invoke( + self._select_input(_models.MODIFY_CLIENT_VPN_ENDPOINT, args, kwargs), + _models.MODIFY_CLIENT_VPN_ENDPOINT, + [], + plugins, + ) + + @_overload + def modify_client_vpn_endpoint_authorization_policy( + self, + request: _models.ModifyClientVpnEndpointAuthorizationPolicyInput + | _models.ModifyClientVpnEndpointAuthorizationPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyClientVpnEndpointAuthorizationPolicyOutput: ... + + @_overload def modify_client_vpn_endpoint_authorization_policy( self, - input: ModifyClientVpnEndpointAuthorizationPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyClientVpnEndpointAuthorizationPolicyInputDict], ) -> ModifyClientVpnEndpointAuthorizationPolicyOutput: """ Creates or updates the authorization policy for a Client VPN endpoint. A @@ -20578,8 +32975,6 @@ def modify_client_vpn_endpoint_authorization_policy( specify remain unchanged. Args: - input: - An instance of `ModifyClientVpnEndpointAuthorizationPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20589,14 +32984,36 @@ def modify_client_vpn_endpoint_authorization_policy( Returns: An instance of `ModifyClientVpnEndpointAuthorizationPolicyOutput`. """ + + def modify_client_vpn_endpoint_authorization_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyClientVpnEndpointAuthorizationPolicyOutput: return self._invoke( - input, _models.MODIFY_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, [], plugins + self._select_input( + _models.MODIFY_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, args, kwargs + ), + _models.MODIFY_CLIENT_VPN_ENDPOINT_AUTHORIZATION_POLICY, + [], + plugins, ) + @_overload + def modify_default_credit_specification( + self, + request: _models.ModifyDefaultCreditSpecificationInput + | _models.ModifyDefaultCreditSpecificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDefaultCreditSpecificationOutput: ... + + @_overload def modify_default_credit_specification( self, - input: ModifyDefaultCreditSpecificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDefaultCreditSpecificationInputDict], ) -> ModifyDefaultCreditSpecificationOutput: """ Modifies the default credit option for CPU usage of burstable @@ -20619,8 +33036,6 @@ def modify_default_credit_specification( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyDefaultCreditSpecificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20630,12 +33045,36 @@ def modify_default_credit_specification( Returns: An instance of `ModifyDefaultCreditSpecificationOutput`. """ + + def modify_default_credit_specification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDefaultCreditSpecificationOutput: return self._invoke( - input, _models.MODIFY_DEFAULT_CREDIT_SPECIFICATION, [], plugins + self._select_input( + _models.MODIFY_DEFAULT_CREDIT_SPECIFICATION, args, kwargs + ), + _models.MODIFY_DEFAULT_CREDIT_SPECIFICATION, + [], + plugins, ) + @_overload + def modify_ebs_default_kms_key_id( + self, + request: _models.ModifyEbsDefaultKmsKeyIdInput + | _models.ModifyEbsDefaultKmsKeyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyEbsDefaultKmsKeyIdOutput: ... + + @_overload def modify_ebs_default_kms_key_id( - self, input: ModifyEbsDefaultKmsKeyIdInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyEbsDefaultKmsKeyIdInputDict], ) -> ModifyEbsDefaultKmsKeyIdOutput: """ Changes the default KMS key for EBS encryption by default for your @@ -20655,8 +33094,6 @@ def modify_ebs_default_kms_key_id( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ModifyEbsDefaultKmsKeyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20666,10 +33103,33 @@ def modify_ebs_default_kms_key_id( Returns: An instance of `ModifyEbsDefaultKmsKeyIdOutput`. """ - return self._invoke(input, _models.MODIFY_EBS_DEFAULT_KMS_KEY_ID, [], plugins) + def modify_ebs_default_kms_key_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyEbsDefaultKmsKeyIdOutput: + return self._invoke( + self._select_input(_models.MODIFY_EBS_DEFAULT_KMS_KEY_ID, args, kwargs), + _models.MODIFY_EBS_DEFAULT_KMS_KEY_ID, + [], + plugins, + ) + + @_overload def modify_fleet( - self, input: ModifyFleetInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyFleetInput | _models.ModifyFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyFleetOutput: ... + + @_overload + def modify_fleet( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyFleetInputDict], ) -> ModifyFleetOutput: """ Modifies the specified EC2 Fleet. @@ -20705,8 +33165,6 @@ def modify_fleet( later, you can set the target capacity to 0. Args: - input: - An instance of `ModifyFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20716,18 +33174,40 @@ def modify_fleet( Returns: An instance of `ModifyFleetOutput`. """ - return self._invoke(input, _models.MODIFY_FLEET, [], plugins) + def modify_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyFleetOutput: + return self._invoke( + self._select_input(_models.MODIFY_FLEET, args, kwargs), + _models.MODIFY_FLEET, + [], + plugins, + ) + + @_overload + def modify_fpga_image_attribute( + self, + request: _models.ModifyFpgaImageAttributeInput + | _models.ModifyFpgaImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyFpgaImageAttributeOutput: ... + + @_overload def modify_fpga_image_attribute( - self, input: ModifyFpgaImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyFpgaImageAttributeInputDict], ) -> ModifyFpgaImageAttributeOutput: """ Modifies the specified attribute of the specified Amazon FPGA Image (AFI). Args: - input: - An instance of `ModifyFpgaImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20737,10 +33217,33 @@ def modify_fpga_image_attribute( Returns: An instance of `ModifyFpgaImageAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_FPGA_IMAGE_ATTRIBUTE, [], plugins) + def modify_fpga_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyFpgaImageAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_FPGA_IMAGE_ATTRIBUTE, args, kwargs), + _models.MODIFY_FPGA_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def modify_hosts( + self, + request: _models.ModifyHostsInput | _models.ModifyHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyHostsOutput: ... + + @_overload def modify_hosts( - self, input: ModifyHostsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyHostsInputDict], ) -> ModifyHostsOutput: """ Modify the auto-placement setting of a Dedicated Host. When @@ -20756,8 +33259,6 @@ def modify_hosts( specific instance type only. Args: - input: - An instance of `ModifyHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20767,10 +33268,34 @@ def modify_hosts( Returns: An instance of `ModifyHostsOutput`. """ - return self._invoke(input, _models.MODIFY_HOSTS, [], plugins) + def modify_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyHostsOutput: + return self._invoke( + self._select_input(_models.MODIFY_HOSTS, args, kwargs), + _models.MODIFY_HOSTS, + [], + plugins, + ) + + @_overload + def modify_identity_id_format( + self, + request: _models.ModifyIdentityIdFormatInput + | _models.ModifyIdentityIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIdentityIdFormatOutput: ... + + @_overload def modify_identity_id_format( - self, input: ModifyIdentityIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIdentityIdFormatInputDict], ) -> ModifyIdentityIdFormatOutput: """ Modifies the ID format of a resource for a specified IAM user, IAM role, @@ -20803,8 +33328,6 @@ def modify_identity_id_format( permission to use the relevant `Describe` command for the resource type. Args: - input: - An instance of `ModifyIdentityIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20814,10 +33337,33 @@ def modify_identity_id_format( Returns: An instance of `ModifyIdentityIdFormatOutput`. """ - return self._invoke(input, _models.MODIFY_IDENTITY_ID_FORMAT, [], plugins) + def modify_identity_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIdentityIdFormatOutput: + return self._invoke( + self._select_input(_models.MODIFY_IDENTITY_ID_FORMAT, args, kwargs), + _models.MODIFY_IDENTITY_ID_FORMAT, + [], + plugins, + ) + + @_overload + def modify_id_format( + self, + request: _models.ModifyIdFormatInput | _models.ModifyIdFormatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIdFormatOutput: ... + + @_overload def modify_id_format( - self, input: ModifyIdFormatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIdFormatInputDict], ) -> ModifyIdFormatOutput: """ Modifies the ID format for the specified resource on a per-Region basis. @@ -20851,8 +33397,6 @@ def modify_id_format( permission to use the relevant `Describe` command for the resource type. Args: - input: - An instance of `ModifyIdFormatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20862,10 +33406,34 @@ def modify_id_format( Returns: An instance of `ModifyIdFormatOutput`. """ - return self._invoke(input, _models.MODIFY_ID_FORMAT, [], plugins) + def modify_id_format( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIdFormatOutput: + return self._invoke( + self._select_input(_models.MODIFY_ID_FORMAT, args, kwargs), + _models.MODIFY_ID_FORMAT, + [], + plugins, + ) + + @_overload + def modify_image_attribute( + self, + request: _models.ModifyImageAttributeInput + | _models.ModifyImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyImageAttributeOutput: ... + + @_overload def modify_image_attribute( - self, input: ModifyImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyImageAttributeInputDict], ) -> ModifyImageAttributeOutput: """ Modifies the specified attribute of the specified AMI. You can specify @@ -20883,8 +33451,6 @@ def modify_image_attribute( instance. Args: - input: - An instance of `ModifyImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20894,10 +33460,34 @@ def modify_image_attribute( Returns: An instance of `ModifyImageAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_IMAGE_ATTRIBUTE, [], plugins) + def modify_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyImageAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_IMAGE_ATTRIBUTE, args, kwargs), + _models.MODIFY_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def modify_instance_attribute( + self, + request: _models.ModifyInstanceAttributeInput + | _models.ModifyInstanceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceAttributeOutput: ... + + @_overload def modify_instance_attribute( - self, input: ModifyInstanceAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceAttributeInputDict], ) -> ModifyInstanceAttributeOutput: """ Modifies the specified attribute of the specified instance. You can @@ -20916,8 +33506,6 @@ def modify_instance_attribute( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20927,12 +33515,34 @@ def modify_instance_attribute( Returns: An instance of `ModifyInstanceAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_INSTANCE_ATTRIBUTE, [], plugins) + def modify_instance_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_INSTANCE_ATTRIBUTE, args, kwargs), + _models.MODIFY_INSTANCE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def modify_instance_capacity_reservation_attributes( + self, + request: _models.ModifyInstanceCapacityReservationAttributesInput + | _models.ModifyInstanceCapacityReservationAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceCapacityReservationAttributesOutput: ... + + @_overload def modify_instance_capacity_reservation_attributes( self, - input: ModifyInstanceCapacityReservationAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceCapacityReservationAttributesInputDict], ) -> ModifyInstanceCapacityReservationAttributesOutput: """ Modifies the Capacity Reservation settings for a stopped instance. Use @@ -20942,8 +33552,6 @@ def modify_instance_capacity_reservation_attributes( Capacity Reservation. Args: - input: - An instance of `ModifyInstanceCapacityReservationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20953,14 +33561,36 @@ def modify_instance_capacity_reservation_attributes( Returns: An instance of `ModifyInstanceCapacityReservationAttributesOutput`. """ + + def modify_instance_capacity_reservation_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceCapacityReservationAttributesOutput: return self._invoke( - input, _models.MODIFY_INSTANCE_CAPACITY_RESERVATION_ATTRIBUTES, [], plugins + self._select_input( + _models.MODIFY_INSTANCE_CAPACITY_RESERVATION_ATTRIBUTES, args, kwargs + ), + _models.MODIFY_INSTANCE_CAPACITY_RESERVATION_ATTRIBUTES, + [], + plugins, ) + @_overload + def modify_instance_connect_endpoint( + self, + request: _models.ModifyInstanceConnectEndpointInput + | _models.ModifyInstanceConnectEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceConnectEndpointOutput: ... + + @_overload def modify_instance_connect_endpoint( self, - input: ModifyInstanceConnectEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceConnectEndpointInputDict], ) -> ModifyInstanceConnectEndpointOutput: """ Modifies the specified EC2 Instance Connect Endpoint. @@ -20970,8 +33600,6 @@ def modify_instance_connect_endpoint( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceConnectEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -20981,12 +33609,34 @@ def modify_instance_connect_endpoint( Returns: An instance of `ModifyInstanceConnectEndpointOutput`. """ + + def modify_instance_connect_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceConnectEndpointOutput: return self._invoke( - input, _models.MODIFY_INSTANCE_CONNECT_ENDPOINT, [], plugins + self._select_input(_models.MODIFY_INSTANCE_CONNECT_ENDPOINT, args, kwargs), + _models.MODIFY_INSTANCE_CONNECT_ENDPOINT, + [], + plugins, ) + @_overload + def modify_instance_cpu_options( + self, + request: _models.ModifyInstanceCpuOptionsInput + | _models.ModifyInstanceCpuOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceCpuOptionsOutput: ... + + @_overload def modify_instance_cpu_options( - self, input: ModifyInstanceCpuOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceCpuOptionsInputDict], ) -> ModifyInstanceCpuOptionsOutput: """ By default, all vCPUs for the instance type are active when you launch @@ -21005,8 +33655,6 @@ def modify_instance_cpu_options( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceCpuOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21016,12 +33664,34 @@ def modify_instance_cpu_options( Returns: An instance of `ModifyInstanceCpuOptionsOutput`. """ - return self._invoke(input, _models.MODIFY_INSTANCE_CPU_OPTIONS, [], plugins) + def modify_instance_cpu_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceCpuOptionsOutput: + return self._invoke( + self._select_input(_models.MODIFY_INSTANCE_CPU_OPTIONS, args, kwargs), + _models.MODIFY_INSTANCE_CPU_OPTIONS, + [], + plugins, + ) + + @_overload + def modify_instance_credit_specification( + self, + request: _models.ModifyInstanceCreditSpecificationInput + | _models.ModifyInstanceCreditSpecificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceCreditSpecificationOutput: ... + + @_overload def modify_instance_credit_specification( self, - input: ModifyInstanceCreditSpecificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceCreditSpecificationInputDict], ) -> ModifyInstanceCreditSpecificationOutput: """ Modifies the credit option for CPU usage on a running or stopped @@ -21033,8 +33703,6 @@ def modify_instance_credit_specification( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceCreditSpecificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21044,21 +33712,41 @@ def modify_instance_credit_specification( Returns: An instance of `ModifyInstanceCreditSpecificationOutput`. """ + + def modify_instance_credit_specification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceCreditSpecificationOutput: return self._invoke( - input, _models.MODIFY_INSTANCE_CREDIT_SPECIFICATION, [], plugins + self._select_input( + _models.MODIFY_INSTANCE_CREDIT_SPECIFICATION, args, kwargs + ), + _models.MODIFY_INSTANCE_CREDIT_SPECIFICATION, + [], + plugins, ) + @_overload + def modify_instance_event_start_time( + self, + request: _models.ModifyInstanceEventStartTimeInput + | _models.ModifyInstanceEventStartTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceEventStartTimeOutput: ... + + @_overload def modify_instance_event_start_time( self, - input: ModifyInstanceEventStartTimeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceEventStartTimeInputDict], ) -> ModifyInstanceEventStartTimeOutput: """ Modifies the start time for a scheduled Amazon EC2 instance event. Args: - input: - An instance of `ModifyInstanceEventStartTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21068,12 +33756,34 @@ def modify_instance_event_start_time( Returns: An instance of `ModifyInstanceEventStartTimeOutput`. """ + + def modify_instance_event_start_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceEventStartTimeOutput: return self._invoke( - input, _models.MODIFY_INSTANCE_EVENT_START_TIME, [], plugins + self._select_input(_models.MODIFY_INSTANCE_EVENT_START_TIME, args, kwargs), + _models.MODIFY_INSTANCE_EVENT_START_TIME, + [], + plugins, ) + @_overload + def modify_instance_event_window( + self, + request: _models.ModifyInstanceEventWindowInput + | _models.ModifyInstanceEventWindowInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceEventWindowOutput: ... + + @_overload def modify_instance_event_window( - self, input: ModifyInstanceEventWindowInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceEventWindowInputDict], ) -> ModifyInstanceEventWindowOutput: """ Modifies the specified event window. @@ -21092,8 +33802,6 @@ def modify_instance_event_window( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceEventWindowInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21103,12 +33811,34 @@ def modify_instance_event_window( Returns: An instance of `ModifyInstanceEventWindowOutput`. """ - return self._invoke(input, _models.MODIFY_INSTANCE_EVENT_WINDOW, [], plugins) + def modify_instance_event_window( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceEventWindowOutput: + return self._invoke( + self._select_input(_models.MODIFY_INSTANCE_EVENT_WINDOW, args, kwargs), + _models.MODIFY_INSTANCE_EVENT_WINDOW, + [], + plugins, + ) + + @_overload + def modify_instance_maintenance_options( + self, + request: _models.ModifyInstanceMaintenanceOptionsInput + | _models.ModifyInstanceMaintenanceOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceMaintenanceOptionsOutput: ... + + @_overload def modify_instance_maintenance_options( self, - input: ModifyInstanceMaintenanceOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceMaintenanceOptionsInputDict], ) -> ModifyInstanceMaintenanceOptionsOutput: """ Modifies the recovery behavior of your instance to disable simplified @@ -21124,8 +33854,6 @@ def modify_instance_maintenance_options( migration](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration). Args: - input: - An instance of `ModifyInstanceMaintenanceOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21135,14 +33863,36 @@ def modify_instance_maintenance_options( Returns: An instance of `ModifyInstanceMaintenanceOptionsOutput`. """ + + def modify_instance_maintenance_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceMaintenanceOptionsOutput: return self._invoke( - input, _models.MODIFY_INSTANCE_MAINTENANCE_OPTIONS, [], plugins + self._select_input( + _models.MODIFY_INSTANCE_MAINTENANCE_OPTIONS, args, kwargs + ), + _models.MODIFY_INSTANCE_MAINTENANCE_OPTIONS, + [], + plugins, ) + @_overload + def modify_instance_metadata_defaults( + self, + request: _models.ModifyInstanceMetadataDefaultsInput + | _models.ModifyInstanceMetadataDefaultsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceMetadataDefaultsOutput: ... + + @_overload def modify_instance_metadata_defaults( self, - input: ModifyInstanceMetadataDefaultsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceMetadataDefaultsInputDict], ) -> ModifyInstanceMetadataDefaultsOutput: """ Modifies the default instance metadata service (IMDS) settings at the @@ -21158,8 +33908,6 @@ def modify_instance_metadata_defaults( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceMetadataDefaultsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21169,14 +33917,34 @@ def modify_instance_metadata_defaults( Returns: An instance of `ModifyInstanceMetadataDefaultsOutput`. """ + + def modify_instance_metadata_defaults( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceMetadataDefaultsOutput: return self._invoke( - input, _models.MODIFY_INSTANCE_METADATA_DEFAULTS, [], plugins + self._select_input(_models.MODIFY_INSTANCE_METADATA_DEFAULTS, args, kwargs), + _models.MODIFY_INSTANCE_METADATA_DEFAULTS, + [], + plugins, ) + @_overload + def modify_instance_metadata_options( + self, + request: _models.ModifyInstanceMetadataOptionsInput + | _models.ModifyInstanceMetadataOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceMetadataOptionsOutput: ... + + @_overload def modify_instance_metadata_options( self, - input: ModifyInstanceMetadataOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceMetadataOptionsInputDict], ) -> ModifyInstanceMetadataOptionsOutput: """ Modify the instance metadata parameters on a running or stopped @@ -21191,8 +33959,6 @@ def modify_instance_metadata_options( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyInstanceMetadataOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21202,22 +33968,40 @@ def modify_instance_metadata_options( Returns: An instance of `ModifyInstanceMetadataOptionsOutput`. """ + + def modify_instance_metadata_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceMetadataOptionsOutput: return self._invoke( - input, _models.MODIFY_INSTANCE_METADATA_OPTIONS, [], plugins + self._select_input(_models.MODIFY_INSTANCE_METADATA_OPTIONS, args, kwargs), + _models.MODIFY_INSTANCE_METADATA_OPTIONS, + [], + plugins, ) + @_overload + def modify_instance_network_performance_options( + self, + request: _models.ModifyInstanceNetworkPerformanceOptionsInput + | _models.ModifyInstanceNetworkPerformanceOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstanceNetworkPerformanceOptionsOutput: ... + + @_overload def modify_instance_network_performance_options( self, - input: ModifyInstanceNetworkPerformanceOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstanceNetworkPerformanceOptionsInputDict], ) -> ModifyInstanceNetworkPerformanceOptionsOutput: """ Change the configuration of the network performance options for an existing instance. Args: - input: - An instance of `ModifyInstanceNetworkPerformanceOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21227,12 +34011,36 @@ def modify_instance_network_performance_options( Returns: An instance of `ModifyInstanceNetworkPerformanceOptionsOutput`. """ + + def modify_instance_network_performance_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstanceNetworkPerformanceOptionsOutput: return self._invoke( - input, _models.MODIFY_INSTANCE_NETWORK_PERFORMANCE_OPTIONS, [], plugins + self._select_input( + _models.MODIFY_INSTANCE_NETWORK_PERFORMANCE_OPTIONS, args, kwargs + ), + _models.MODIFY_INSTANCE_NETWORK_PERFORMANCE_OPTIONS, + [], + plugins, ) + @_overload + def modify_instance_placement( + self, + request: _models.ModifyInstancePlacementInput + | _models.ModifyInstancePlacementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyInstancePlacementOutput: ... + + @_overload def modify_instance_placement( - self, input: ModifyInstancePlacementInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyInstancePlacementInputDict], ) -> ModifyInstancePlacementOutput: """ Modifies the placement attributes for a specified instance. You can do @@ -21260,8 +34068,6 @@ def modify_instance_placement( instance, the instance must be in the `stopped` state. Args: - input: - An instance of `ModifyInstancePlacementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21271,17 +34077,38 @@ def modify_instance_placement( Returns: An instance of `ModifyInstancePlacementOutput`. """ - return self._invoke(input, _models.MODIFY_INSTANCE_PLACEMENT, [], plugins) + def modify_instance_placement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyInstancePlacementOutput: + return self._invoke( + self._select_input(_models.MODIFY_INSTANCE_PLACEMENT, args, kwargs), + _models.MODIFY_INSTANCE_PLACEMENT, + [], + plugins, + ) + + @_overload + def modify_ipam( + self, + request: _models.ModifyIpamInput | _models.ModifyIpamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamOutput: ... + + @_overload def modify_ipam( - self, input: ModifyIpamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamInputDict], ) -> ModifyIpamOutput: """ Modify the configurations of an IPAM. Args: - input: - An instance of `ModifyIpamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21291,12 +34118,34 @@ def modify_ipam( Returns: An instance of `ModifyIpamOutput`. """ - return self._invoke(input, _models.MODIFY_IPAM, [], plugins) + def modify_ipam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamOutput: + return self._invoke( + self._select_input(_models.MODIFY_IPAM, args, kwargs), + _models.MODIFY_IPAM, + [], + plugins, + ) + + @_overload + def modify_ipam_policy_allocation_rules( + self, + request: _models.ModifyIpamPolicyAllocationRulesInput + | _models.ModifyIpamPolicyAllocationRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPolicyAllocationRulesOutput: ... + + @_overload def modify_ipam_policy_allocation_rules( self, - input: ModifyIpamPolicyAllocationRulesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPolicyAllocationRulesInputDict], ) -> ModifyIpamPolicyAllocationRulesOutput: """ Modifies the allocation rules in an IPAM policy. @@ -21316,8 +34165,6 @@ def modify_ipam_policy_allocation_rules( IP addresses. Args: - input: - An instance of `ModifyIpamPolicyAllocationRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21327,12 +34174,35 @@ def modify_ipam_policy_allocation_rules( Returns: An instance of `ModifyIpamPolicyAllocationRulesOutput`. """ + + def modify_ipam_policy_allocation_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPolicyAllocationRulesOutput: return self._invoke( - input, _models.MODIFY_IPAM_POLICY_ALLOCATION_RULES, [], plugins + self._select_input( + _models.MODIFY_IPAM_POLICY_ALLOCATION_RULES, args, kwargs + ), + _models.MODIFY_IPAM_POLICY_ALLOCATION_RULES, + [], + plugins, ) + @_overload def modify_ipam_pool( - self, input: ModifyIpamPoolInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyIpamPoolInput | _models.ModifyIpamPoolInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPoolOutput: ... + + @_overload + def modify_ipam_pool( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPoolInputDict], ) -> ModifyIpamPoolOutput: """ Modify the configurations of an IPAM pool. @@ -21342,8 +34212,6 @@ def modify_ipam_pool( the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ModifyIpamPoolInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21353,10 +34221,34 @@ def modify_ipam_pool( Returns: An instance of `ModifyIpamPoolOutput`. """ - return self._invoke(input, _models.MODIFY_IPAM_POOL, [], plugins) + def modify_ipam_pool( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPoolOutput: + return self._invoke( + self._select_input(_models.MODIFY_IPAM_POOL, args, kwargs), + _models.MODIFY_IPAM_POOL, + [], + plugins, + ) + + @_overload + def modify_ipam_pool_allocation( + self, + request: _models.ModifyIpamPoolAllocationInput + | _models.ModifyIpamPoolAllocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPoolAllocationOutput: ... + + @_overload def modify_ipam_pool_allocation( - self, input: ModifyIpamPoolAllocationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPoolAllocationInputDict], ) -> ModifyIpamPoolAllocationOutput: """ Modifies the description of an IPAM pool allocation. For more @@ -21365,8 +34257,6 @@ def modify_ipam_pool_allocation( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ModifyIpamPoolAllocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21376,12 +34266,34 @@ def modify_ipam_pool_allocation( Returns: An instance of `ModifyIpamPoolAllocationOutput`. """ - return self._invoke(input, _models.MODIFY_IPAM_POOL_ALLOCATION, [], plugins) + def modify_ipam_pool_allocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPoolAllocationOutput: + return self._invoke( + self._select_input(_models.MODIFY_IPAM_POOL_ALLOCATION, args, kwargs), + _models.MODIFY_IPAM_POOL_ALLOCATION, + [], + plugins, + ) + + @_overload + def modify_ipam_prefix_list_resolver( + self, + request: _models.ModifyIpamPrefixListResolverInput + | _models.ModifyIpamPrefixListResolverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPrefixListResolverOutput: ... + + @_overload def modify_ipam_prefix_list_resolver( self, - input: ModifyIpamPrefixListResolverInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPrefixListResolverInputDict], ) -> ModifyIpamPrefixListResolverOutput: """ Modifies an IPAM prefix list resolver. You can update the description @@ -21389,8 +34301,6 @@ def modify_ipam_prefix_list_resolver( and potential updates to associated prefix lists. Args: - input: - An instance of `ModifyIpamPrefixListResolverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21400,22 +34310,40 @@ def modify_ipam_prefix_list_resolver( Returns: An instance of `ModifyIpamPrefixListResolverOutput`. """ + + def modify_ipam_prefix_list_resolver( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPrefixListResolverOutput: return self._invoke( - input, _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER, [], plugins + self._select_input(_models.MODIFY_IPAM_PREFIX_LIST_RESOLVER, args, kwargs), + _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER, + [], + plugins, ) + @_overload + def modify_ipam_prefix_list_resolver_target( + self, + request: _models.ModifyIpamPrefixListResolverTargetInput + | _models.ModifyIpamPrefixListResolverTargetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamPrefixListResolverTargetOutput: ... + + @_overload def modify_ipam_prefix_list_resolver_target( self, - input: ModifyIpamPrefixListResolverTargetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamPrefixListResolverTargetInputDict], ) -> ModifyIpamPrefixListResolverTargetOutput: """ Modifies an IPAM prefix list resolver target. You can update version tracking settings and the desired version of the target prefix list. Args: - input: - An instance of `ModifyIpamPrefixListResolverTargetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21425,12 +34353,36 @@ def modify_ipam_prefix_list_resolver_target( Returns: An instance of `ModifyIpamPrefixListResolverTargetOutput`. """ + + def modify_ipam_prefix_list_resolver_target( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamPrefixListResolverTargetOutput: return self._invoke( - input, _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER_TARGET, [], plugins + self._select_input( + _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER_TARGET, args, kwargs + ), + _models.MODIFY_IPAM_PREFIX_LIST_RESOLVER_TARGET, + [], + plugins, ) + @_overload + def modify_ipam_resource_cidr( + self, + request: _models.ModifyIpamResourceCidrInput + | _models.ModifyIpamResourceCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamResourceCidrOutput: ... + + @_overload def modify_ipam_resource_cidr( - self, input: ModifyIpamResourceCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamResourceCidrInputDict], ) -> ModifyIpamResourceCidrOutput: """ Modify a resource CIDR. You can use this action to transfer resource @@ -21446,8 +34398,6 @@ def modify_ipam_resource_cidr( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ModifyIpamResourceCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21457,12 +34407,34 @@ def modify_ipam_resource_cidr( Returns: An instance of `ModifyIpamResourceCidrOutput`. """ - return self._invoke(input, _models.MODIFY_IPAM_RESOURCE_CIDR, [], plugins) + def modify_ipam_resource_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamResourceCidrOutput: + return self._invoke( + self._select_input(_models.MODIFY_IPAM_RESOURCE_CIDR, args, kwargs), + _models.MODIFY_IPAM_RESOURCE_CIDR, + [], + plugins, + ) + + @_overload + def modify_ipam_resource_discovery( + self, + request: _models.ModifyIpamResourceDiscoveryInput + | _models.ModifyIpamResourceDiscoveryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamResourceDiscoveryOutput: ... + + @_overload def modify_ipam_resource_discovery( self, - input: ModifyIpamResourceDiscoveryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamResourceDiscoveryInputDict], ) -> ModifyIpamResourceDiscoveryOutput: """ Modifies a resource discovery. A resource discovery is an IPAM component @@ -21470,8 +34442,6 @@ def modify_ipam_resource_discovery( owning account. Args: - input: - An instance of `ModifyIpamResourceDiscoveryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21481,12 +34451,34 @@ def modify_ipam_resource_discovery( Returns: An instance of `ModifyIpamResourceDiscoveryOutput`. """ - return self._invoke(input, _models.MODIFY_IPAM_RESOURCE_DISCOVERY, [], plugins) + def modify_ipam_resource_discovery( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamResourceDiscoveryOutput: + return self._invoke( + self._select_input(_models.MODIFY_IPAM_RESOURCE_DISCOVERY, args, kwargs), + _models.MODIFY_IPAM_RESOURCE_DISCOVERY, + [], + plugins, + ) + + @_overload + def modify_ipam_routing_policy_registration( + self, + request: _models.ModifyIpamRoutingPolicyRegistrationInput + | _models.ModifyIpamRoutingPolicyRegistrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamRoutingPolicyRegistrationOutput: ... + + @_overload def modify_ipam_routing_policy_registration( self, - input: ModifyIpamRoutingPolicyRegistrationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamRoutingPolicyRegistrationInputDict], ) -> ModifyIpamRoutingPolicyRegistrationOutput: """ Modifies an existing routing policy registration. You can update the @@ -21494,8 +34486,6 @@ def modify_ipam_routing_policy_registration( Origin Authorization (ROA). Args: - input: - An instance of `ModifyIpamRoutingPolicyRegistrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21505,19 +34495,40 @@ def modify_ipam_routing_policy_registration( Returns: An instance of `ModifyIpamRoutingPolicyRegistrationOutput`. """ + + def modify_ipam_routing_policy_registration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamRoutingPolicyRegistrationOutput: return self._invoke( - input, _models.MODIFY_IPAM_ROUTING_POLICY_REGISTRATION, [], plugins + self._select_input( + _models.MODIFY_IPAM_ROUTING_POLICY_REGISTRATION, args, kwargs + ), + _models.MODIFY_IPAM_ROUTING_POLICY_REGISTRATION, + [], + plugins, ) + @_overload + def modify_ipam_scope( + self, + request: _models.ModifyIpamScopeInput | _models.ModifyIpamScopeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIpamScopeOutput: ... + + @_overload def modify_ipam_scope( - self, input: ModifyIpamScopeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIpamScopeInputDict], ) -> ModifyIpamScopeOutput: """ Modify an IPAM scope. Args: - input: - An instance of `ModifyIpamScopeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21527,12 +34538,34 @@ def modify_ipam_scope( Returns: An instance of `ModifyIpamScopeOutput`. """ - return self._invoke(input, _models.MODIFY_IPAM_SCOPE, [], plugins) + def modify_ipam_scope( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIpamScopeOutput: + return self._invoke( + self._select_input(_models.MODIFY_IPAM_SCOPE, args, kwargs), + _models.MODIFY_IPAM_SCOPE, + [], + plugins, + ) + + @_overload + def modify_launch_template( + self, + request: _models.ModifyLaunchTemplateInput + | _models.ModifyLaunchTemplateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyLaunchTemplateOutput: ... + + @_overload def modify_launch_template( self, - input: ModifyLaunchTemplateInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyLaunchTemplateInputDict], ) -> ModifyLaunchTemplateOutput: """ Modifies a launch template. You can specify which version of the launch @@ -21540,8 +34573,6 @@ def modify_launch_template( default version applies when a launch template version is not specified. Args: - input: - An instance of `ModifyLaunchTemplateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21551,17 +34582,39 @@ def modify_launch_template( Returns: An instance of `ModifyLaunchTemplateOutput`. """ - return self._invoke(input, _models.MODIFY_LAUNCH_TEMPLATE, [], plugins) + def modify_launch_template( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyLaunchTemplateOutput: + return self._invoke( + self._select_input(_models.MODIFY_LAUNCH_TEMPLATE, args, kwargs), + _models.MODIFY_LAUNCH_TEMPLATE, + [], + plugins, + ) + + @_overload + def modify_local_gateway_route( + self, + request: _models.ModifyLocalGatewayRouteInput + | _models.ModifyLocalGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyLocalGatewayRouteOutput: ... + + @_overload def modify_local_gateway_route( - self, input: ModifyLocalGatewayRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyLocalGatewayRouteInputDict], ) -> ModifyLocalGatewayRouteOutput: """ Modifies the specified local gateway route. Args: - input: - An instance of `ModifyLocalGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21571,10 +34624,34 @@ def modify_local_gateway_route( Returns: An instance of `ModifyLocalGatewayRouteOutput`. """ - return self._invoke(input, _models.MODIFY_LOCAL_GATEWAY_ROUTE, [], plugins) + def modify_local_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyLocalGatewayRouteOutput: + return self._invoke( + self._select_input(_models.MODIFY_LOCAL_GATEWAY_ROUTE, args, kwargs), + _models.MODIFY_LOCAL_GATEWAY_ROUTE, + [], + plugins, + ) + + @_overload + def modify_managed_prefix_list( + self, + request: _models.ModifyManagedPrefixListInput + | _models.ModifyManagedPrefixListInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyManagedPrefixListOutput: ... + + @_overload def modify_managed_prefix_list( - self, input: ModifyManagedPrefixListInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyManagedPrefixListInputDict], ) -> ModifyManagedPrefixListOutput: """ Modifies the specified managed prefix list. @@ -21587,8 +34664,6 @@ def modify_managed_prefix_list( current version number, the request fails. Args: - input: - An instance of `ModifyManagedPrefixListInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21598,12 +34673,34 @@ def modify_managed_prefix_list( Returns: An instance of `ModifyManagedPrefixListOutput`. """ - return self._invoke(input, _models.MODIFY_MANAGED_PREFIX_LIST, [], plugins) + def modify_managed_prefix_list( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyManagedPrefixListOutput: + return self._invoke( + self._select_input(_models.MODIFY_MANAGED_PREFIX_LIST, args, kwargs), + _models.MODIFY_MANAGED_PREFIX_LIST, + [], + plugins, + ) + + @_overload + def modify_managed_resource_visibility( + self, + request: _models.ModifyManagedResourceVisibilityInput + | _models.ModifyManagedResourceVisibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyManagedResourceVisibilityOutput: ... + + @_overload def modify_managed_resource_visibility( self, - input: ModifyManagedResourceVisibilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyManagedResourceVisibilityInputDict], ) -> ModifyManagedResourceVisibilityOutput: """ Modifies the managed resource visibility configuration for the account. @@ -21613,8 +34710,6 @@ def modify_managed_resource_visibility( billable. Args: - input: - An instance of `ModifyManagedResourceVisibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21624,14 +34719,36 @@ def modify_managed_resource_visibility( Returns: An instance of `ModifyManagedResourceVisibilityOutput`. """ + + def modify_managed_resource_visibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyManagedResourceVisibilityOutput: return self._invoke( - input, _models.MODIFY_MANAGED_RESOURCE_VISIBILITY, [], plugins + self._select_input( + _models.MODIFY_MANAGED_RESOURCE_VISIBILITY, args, kwargs + ), + _models.MODIFY_MANAGED_RESOURCE_VISIBILITY, + [], + plugins, ) + @_overload def modify_network_interface_attribute( self, - input: ModifyNetworkInterfaceAttributeInput, + request: _models.ModifyNetworkInterfaceAttributeInput + | _models.ModifyNetworkInterfaceAttributeInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyNetworkInterfaceAttributeOutput: ... + + @_overload + def modify_network_interface_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyNetworkInterfaceAttributeInputDict], ) -> ModifyNetworkInterfaceAttributeOutput: """ Modifies the specified network interface attribute. You can specify only @@ -21639,8 +34756,6 @@ def modify_network_interface_attribute( security groups from an existing EC2 instance. Args: - input: - An instance of `ModifyNetworkInterfaceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21650,21 +34765,41 @@ def modify_network_interface_attribute( Returns: An instance of `ModifyNetworkInterfaceAttributeOutput`. """ + + def modify_network_interface_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyNetworkInterfaceAttributeOutput: return self._invoke( - input, _models.MODIFY_NETWORK_INTERFACE_ATTRIBUTE, [], plugins + self._select_input( + _models.MODIFY_NETWORK_INTERFACE_ATTRIBUTE, args, kwargs + ), + _models.MODIFY_NETWORK_INTERFACE_ATTRIBUTE, + [], + plugins, ) + @_overload + def modify_private_dns_name_options( + self, + request: _models.ModifyPrivateDnsNameOptionsInput + | _models.ModifyPrivateDnsNameOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyPrivateDnsNameOptionsOutput: ... + + @_overload def modify_private_dns_name_options( self, - input: ModifyPrivateDnsNameOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyPrivateDnsNameOptionsInputDict], ) -> ModifyPrivateDnsNameOptionsOutput: """ Modifies the options for instance hostnames for the specified instance. Args: - input: - An instance of `ModifyPrivateDnsNameOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21674,12 +34809,34 @@ def modify_private_dns_name_options( Returns: An instance of `ModifyPrivateDnsNameOptionsOutput`. """ - return self._invoke(input, _models.MODIFY_PRIVATE_DNS_NAME_OPTIONS, [], plugins) + def modify_private_dns_name_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyPrivateDnsNameOptionsOutput: + return self._invoke( + self._select_input(_models.MODIFY_PRIVATE_DNS_NAME_OPTIONS, args, kwargs), + _models.MODIFY_PRIVATE_DNS_NAME_OPTIONS, + [], + plugins, + ) + + @_overload + def modify_public_ip_dns_name_options( + self, + request: _models.ModifyPublicIpDnsNameOptionsInput + | _models.ModifyPublicIpDnsNameOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyPublicIpDnsNameOptionsOutput: ... + + @_overload def modify_public_ip_dns_name_options( self, - input: ModifyPublicIpDnsNameOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyPublicIpDnsNameOptionsInputDict], ) -> ModifyPublicIpDnsNameOptionsOutput: """ Modify public hostname options for a network interface. For more @@ -21688,8 +34845,6 @@ def modify_public_ip_dns_name_options( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyPublicIpDnsNameOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21699,12 +34854,34 @@ def modify_public_ip_dns_name_options( Returns: An instance of `ModifyPublicIpDnsNameOptionsOutput`. """ + + def modify_public_ip_dns_name_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyPublicIpDnsNameOptionsOutput: return self._invoke( - input, _models.MODIFY_PUBLIC_IP_DNS_NAME_OPTIONS, [], plugins + self._select_input(_models.MODIFY_PUBLIC_IP_DNS_NAME_OPTIONS, args, kwargs), + _models.MODIFY_PUBLIC_IP_DNS_NAME_OPTIONS, + [], + plugins, ) + @_overload + def modify_reserved_instances( + self, + request: _models.ModifyReservedInstancesInput + | _models.ModifyReservedInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyReservedInstancesOutput: ... + + @_overload def modify_reserved_instances( - self, input: ModifyReservedInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyReservedInstancesInputDict], ) -> ModifyReservedInstancesOutput: """ Modifies the configuration of your Reserved Instances, such as the @@ -21717,8 +34894,6 @@ def modify_reserved_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyReservedInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21728,10 +34903,33 @@ def modify_reserved_instances( Returns: An instance of `ModifyReservedInstancesOutput`. """ - return self._invoke(input, _models.MODIFY_RESERVED_INSTANCES, [], plugins) + def modify_reserved_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyReservedInstancesOutput: + return self._invoke( + self._select_input(_models.MODIFY_RESERVED_INSTANCES, args, kwargs), + _models.MODIFY_RESERVED_INSTANCES, + [], + plugins, + ) + + @_overload + def modify_route_server( + self, + request: _models.ModifyRouteServerInput | _models.ModifyRouteServerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyRouteServerOutput: ... + + @_overload def modify_route_server( - self, input: ModifyRouteServerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyRouteServerInputDict], ) -> ModifyRouteServerOutput: """ Modifies the configuration of an existing route server. @@ -21762,8 +34960,6 @@ def modify_route_server( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ModifyRouteServerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21773,17 +34969,39 @@ def modify_route_server( Returns: An instance of `ModifyRouteServerOutput`. """ - return self._invoke(input, _models.MODIFY_ROUTE_SERVER, [], plugins) + def modify_route_server( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyRouteServerOutput: + return self._invoke( + self._select_input(_models.MODIFY_ROUTE_SERVER, args, kwargs), + _models.MODIFY_ROUTE_SERVER, + [], + plugins, + ) + + @_overload + def modify_security_group_rules( + self, + request: _models.ModifySecurityGroupRulesInput + | _models.ModifySecurityGroupRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySecurityGroupRulesOutput: ... + + @_overload def modify_security_group_rules( - self, input: ModifySecurityGroupRulesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySecurityGroupRulesInputDict], ) -> ModifySecurityGroupRulesOutput: """ Modifies the rules of a security group. Args: - input: - An instance of `ModifySecurityGroupRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21793,10 +35011,34 @@ def modify_security_group_rules( Returns: An instance of `ModifySecurityGroupRulesOutput`. """ - return self._invoke(input, _models.MODIFY_SECURITY_GROUP_RULES, [], plugins) + def modify_security_group_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySecurityGroupRulesOutput: + return self._invoke( + self._select_input(_models.MODIFY_SECURITY_GROUP_RULES, args, kwargs), + _models.MODIFY_SECURITY_GROUP_RULES, + [], + plugins, + ) + + @_overload + def modify_snapshot_attribute( + self, + request: _models.ModifySnapshotAttributeInput + | _models.ModifySnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySnapshotAttributeOutput: ... + + @_overload def modify_snapshot_attribute( - self, input: ModifySnapshotAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySnapshotAttributeInputDict], ) -> ModifySnapshotAttributeOutput: """ Adds or removes permission settings for the specified snapshot. You may @@ -21815,8 +35057,6 @@ def modify_snapshot_attribute( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ModifySnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21826,10 +35066,33 @@ def modify_snapshot_attribute( Returns: An instance of `ModifySnapshotAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_SNAPSHOT_ATTRIBUTE, [], plugins) + def modify_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySnapshotAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_SNAPSHOT_ATTRIBUTE, args, kwargs), + _models.MODIFY_SNAPSHOT_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def modify_snapshot_tier( + self, + request: _models.ModifySnapshotTierInput | _models.ModifySnapshotTierInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySnapshotTierOutput: ... + + @_overload def modify_snapshot_tier( - self, input: ModifySnapshotTierInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySnapshotTierInputDict], ) -> ModifySnapshotTierOutput: """ Archives an Amazon EBS snapshot. When you archive a snapshot, it is @@ -21841,8 +35104,6 @@ def modify_snapshot_tier( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ModifySnapshotTierInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21852,10 +35113,34 @@ def modify_snapshot_tier( Returns: An instance of `ModifySnapshotTierOutput`. """ - return self._invoke(input, _models.MODIFY_SNAPSHOT_TIER, [], plugins) + def modify_snapshot_tier( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySnapshotTierOutput: + return self._invoke( + self._select_input(_models.MODIFY_SNAPSHOT_TIER, args, kwargs), + _models.MODIFY_SNAPSHOT_TIER, + [], + plugins, + ) + + @_overload + def modify_spot_fleet_request( + self, + request: _models.ModifySpotFleetRequestInput + | _models.ModifySpotFleetRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySpotFleetRequestOutput: ... + + @_overload def modify_spot_fleet_request( - self, input: ModifySpotFleetRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySpotFleetRequestInputDict], ) -> ModifySpotFleetRequestOutput: """ Modifies the specified Spot Fleet request. @@ -21893,8 +35178,6 @@ def modify_spot_fleet_request( later, you can set the target capacity to 0. Args: - input: - An instance of `ModifySpotFleetRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21904,10 +35187,34 @@ def modify_spot_fleet_request( Returns: An instance of `ModifySpotFleetRequestOutput`. """ - return self._invoke(input, _models.MODIFY_SPOT_FLEET_REQUEST, [], plugins) + def modify_spot_fleet_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySpotFleetRequestOutput: + return self._invoke( + self._select_input(_models.MODIFY_SPOT_FLEET_REQUEST, args, kwargs), + _models.MODIFY_SPOT_FLEET_REQUEST, + [], + plugins, + ) + + @_overload + def modify_subnet_attribute( + self, + request: _models.ModifySubnetAttributeInput + | _models.ModifySubnetAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifySubnetAttributeOutput: ... + + @_overload def modify_subnet_attribute( - self, input: ModifySubnetAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifySubnetAttributeInputDict], ) -> ModifySubnetAttributeOutput: """ Modifies a subnet attribute. You can only modify one attribute at a @@ -21932,8 +35239,6 @@ def modify_subnet_attribute( racks](https://docs.aws.amazon.com/outposts/latest/userguide/how-racks-work.html) Args: - input: - An instance of `ModifySubnetAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21943,12 +35248,34 @@ def modify_subnet_attribute( Returns: An instance of `ModifySubnetAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_SUBNET_ATTRIBUTE, [], plugins) + def modify_subnet_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifySubnetAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_SUBNET_ATTRIBUTE, args, kwargs), + _models.MODIFY_SUBNET_ATTRIBUTE, + [], + plugins, + ) + + @_overload def modify_traffic_mirror_filter_network_services( self, - input: ModifyTrafficMirrorFilterNetworkServicesInput, + request: _models.ModifyTrafficMirrorFilterNetworkServicesInput + | _models.ModifyTrafficMirrorFilterNetworkServicesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyTrafficMirrorFilterNetworkServicesOutput: ... + + @_overload + def modify_traffic_mirror_filter_network_services( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTrafficMirrorFilterNetworkServicesInputDict], ) -> ModifyTrafficMirrorFilterNetworkServicesOutput: """ Allows or restricts mirroring network services. @@ -21962,8 +35289,6 @@ def modify_traffic_mirror_filter_network_services( Mirror filter. Args: - input: - An instance of `ModifyTrafficMirrorFilterNetworkServicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -21973,14 +35298,36 @@ def modify_traffic_mirror_filter_network_services( Returns: An instance of `ModifyTrafficMirrorFilterNetworkServicesOutput`. """ + + def modify_traffic_mirror_filter_network_services( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTrafficMirrorFilterNetworkServicesOutput: return self._invoke( - input, _models.MODIFY_TRAFFIC_MIRROR_FILTER_NETWORK_SERVICES, [], plugins + self._select_input( + _models.MODIFY_TRAFFIC_MIRROR_FILTER_NETWORK_SERVICES, args, kwargs + ), + _models.MODIFY_TRAFFIC_MIRROR_FILTER_NETWORK_SERVICES, + [], + plugins, ) + @_overload + def modify_traffic_mirror_filter_rule( + self, + request: _models.ModifyTrafficMirrorFilterRuleInput + | _models.ModifyTrafficMirrorFilterRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTrafficMirrorFilterRuleOutput: ... + + @_overload def modify_traffic_mirror_filter_rule( self, - input: ModifyTrafficMirrorFilterRuleInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTrafficMirrorFilterRuleInputDict], ) -> ModifyTrafficMirrorFilterRuleOutput: """ Modifies the specified Traffic Mirror rule. @@ -21989,8 +35336,6 @@ def modify_traffic_mirror_filter_rule( or an IPv6 range. Args: - input: - An instance of `ModifyTrafficMirrorFilterRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22000,21 +35345,39 @@ def modify_traffic_mirror_filter_rule( Returns: An instance of `ModifyTrafficMirrorFilterRuleOutput`. """ + + def modify_traffic_mirror_filter_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTrafficMirrorFilterRuleOutput: return self._invoke( - input, _models.MODIFY_TRAFFIC_MIRROR_FILTER_RULE, [], plugins + self._select_input(_models.MODIFY_TRAFFIC_MIRROR_FILTER_RULE, args, kwargs), + _models.MODIFY_TRAFFIC_MIRROR_FILTER_RULE, + [], + plugins, ) + @_overload + def modify_traffic_mirror_session( + self, + request: _models.ModifyTrafficMirrorSessionInput + | _models.ModifyTrafficMirrorSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTrafficMirrorSessionOutput: ... + + @_overload def modify_traffic_mirror_session( self, - input: ModifyTrafficMirrorSessionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTrafficMirrorSessionInputDict], ) -> ModifyTrafficMirrorSessionOutput: """ Modifies a Traffic Mirror session. Args: - input: - An instance of `ModifyTrafficMirrorSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22024,10 +35387,34 @@ def modify_traffic_mirror_session( Returns: An instance of `ModifyTrafficMirrorSessionOutput`. """ - return self._invoke(input, _models.MODIFY_TRAFFIC_MIRROR_SESSION, [], plugins) + def modify_traffic_mirror_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTrafficMirrorSessionOutput: + return self._invoke( + self._select_input(_models.MODIFY_TRAFFIC_MIRROR_SESSION, args, kwargs), + _models.MODIFY_TRAFFIC_MIRROR_SESSION, + [], + plugins, + ) + + @_overload + def modify_transit_gateway( + self, + request: _models.ModifyTransitGatewayInput + | _models.ModifyTransitGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayOutput: ... + + @_overload def modify_transit_gateway( - self, input: ModifyTransitGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayInputDict], ) -> ModifyTransitGatewayOutput: """ Modifies the specified transit gateway. When you modify a transit @@ -22036,8 +35423,6 @@ def modify_transit_gateway( modified. Args: - input: - An instance of `ModifyTransitGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22047,12 +35432,36 @@ def modify_transit_gateway( Returns: An instance of `ModifyTransitGatewayOutput`. """ - return self._invoke(input, _models.MODIFY_TRANSIT_GATEWAY, [], plugins) + def modify_transit_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayOutput: + return self._invoke( + self._select_input(_models.MODIFY_TRANSIT_GATEWAY, args, kwargs), + _models.MODIFY_TRANSIT_GATEWAY, + [], + plugins, + ) + + @_overload + def modify_transit_gateway_attachment_nat_configuration( + self, + request: _models.ModifyTransitGatewayAttachmentNatConfigurationInput + | _models.ModifyTransitGatewayAttachmentNatConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayAttachmentNatConfigurationOutput: ... + + @_overload def modify_transit_gateway_attachment_nat_configuration( self, - input: ModifyTransitGatewayAttachmentNatConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ModifyTransitGatewayAttachmentNatConfigurationInputDict + ], ) -> ModifyTransitGatewayAttachmentNatConfigurationOutput: """ Modifies the NAT configuration for the specified transit gateway @@ -22074,8 +35483,6 @@ def modify_transit_gateway_attachment_nat_configuration( use `GetTransitGatewayAttachmentNatConfiguration`. Args: - input: - An instance of `ModifyTransitGatewayAttachmentNatConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22085,24 +35492,43 @@ def modify_transit_gateway_attachment_nat_configuration( Returns: An instance of `ModifyTransitGatewayAttachmentNatConfigurationOutput`. """ + + def modify_transit_gateway_attachment_nat_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayAttachmentNatConfigurationOutput: return self._invoke( - input, + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, + args, + kwargs, + ), _models.MODIFY_TRANSIT_GATEWAY_ATTACHMENT_NAT_CONFIGURATION, [], plugins, ) + @_overload + def modify_transit_gateway_metering_policy( + self, + request: _models.ModifyTransitGatewayMeteringPolicyInput + | _models.ModifyTransitGatewayMeteringPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayMeteringPolicyOutput: ... + + @_overload def modify_transit_gateway_metering_policy( self, - input: ModifyTransitGatewayMeteringPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayMeteringPolicyInputDict], ) -> ModifyTransitGatewayMeteringPolicyOutput: """ Modifies a transit gateway metering policy. Args: - input: - An instance of `ModifyTransitGatewayMeteringPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22112,21 +35538,41 @@ def modify_transit_gateway_metering_policy( Returns: An instance of `ModifyTransitGatewayMeteringPolicyOutput`. """ + + def modify_transit_gateway_metering_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayMeteringPolicyOutput: return self._invoke( - input, _models.MODIFY_TRANSIT_GATEWAY_METERING_POLICY, [], plugins + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_METERING_POLICY, args, kwargs + ), + _models.MODIFY_TRANSIT_GATEWAY_METERING_POLICY, + [], + plugins, ) + @_overload + def modify_transit_gateway_policy_table_entry( + self, + request: _models.ModifyTransitGatewayPolicyTableEntryInput + | _models.ModifyTransitGatewayPolicyTableEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayPolicyTableEntryOutput: ... + + @_overload def modify_transit_gateway_policy_table_entry( self, - input: ModifyTransitGatewayPolicyTableEntryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayPolicyTableEntryInputDict], ) -> ModifyTransitGatewayPolicyTableEntryOutput: """ Modifies the specified transit gateway policy table entry. Args: - input: - An instance of `ModifyTransitGatewayPolicyTableEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22136,22 +35582,42 @@ def modify_transit_gateway_policy_table_entry( Returns: An instance of `ModifyTransitGatewayPolicyTableEntryOutput`. """ + + def modify_transit_gateway_policy_table_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayPolicyTableEntryOutput: return self._invoke( - input, _models.MODIFY_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, [], plugins + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, args, kwargs + ), + _models.MODIFY_TRANSIT_GATEWAY_POLICY_TABLE_ENTRY, + [], + plugins, ) + @_overload + def modify_transit_gateway_prefix_list_reference( + self, + request: _models.ModifyTransitGatewayPrefixListReferenceInput + | _models.ModifyTransitGatewayPrefixListReferenceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayPrefixListReferenceOutput: ... + + @_overload def modify_transit_gateway_prefix_list_reference( self, - input: ModifyTransitGatewayPrefixListReferenceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayPrefixListReferenceInputDict], ) -> ModifyTransitGatewayPrefixListReferenceOutput: """ Modifies a reference (route) to a prefix list in a specified transit gateway route table. Args: - input: - An instance of `ModifyTransitGatewayPrefixListReferenceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22161,21 +35627,41 @@ def modify_transit_gateway_prefix_list_reference( Returns: An instance of `ModifyTransitGatewayPrefixListReferenceOutput`. """ + + def modify_transit_gateway_prefix_list_reference( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayPrefixListReferenceOutput: return self._invoke( - input, _models.MODIFY_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, [], plugins + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, args, kwargs + ), + _models.MODIFY_TRANSIT_GATEWAY_PREFIX_LIST_REFERENCE, + [], + plugins, ) + @_overload + def modify_transit_gateway_vpc_attachment( + self, + request: _models.ModifyTransitGatewayVpcAttachmentInput + | _models.ModifyTransitGatewayVpcAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTransitGatewayVpcAttachmentOutput: ... + + @_overload def modify_transit_gateway_vpc_attachment( self, - input: ModifyTransitGatewayVpcAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTransitGatewayVpcAttachmentInputDict], ) -> ModifyTransitGatewayVpcAttachmentOutput: """ Modifies the specified VPC attachment. Args: - input: - An instance of `ModifyTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22185,22 +35671,42 @@ def modify_transit_gateway_vpc_attachment( Returns: An instance of `ModifyTransitGatewayVpcAttachmentOutput`. """ + + def modify_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTransitGatewayVpcAttachmentOutput: return self._invoke( - input, _models.MODIFY_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.MODIFY_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.MODIFY_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload + def modify_verified_access_endpoint( + self, + request: _models.ModifyVerifiedAccessEndpointInput + | _models.ModifyVerifiedAccessEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessEndpointOutput: ... + + @_overload def modify_verified_access_endpoint( self, - input: ModifyVerifiedAccessEndpointInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessEndpointInputDict], ) -> ModifyVerifiedAccessEndpointOutput: """ Modifies the configuration of the specified Amazon Web Services Verified Access endpoint. Args: - input: - An instance of `ModifyVerifiedAccessEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22210,20 +35716,40 @@ def modify_verified_access_endpoint( Returns: An instance of `ModifyVerifiedAccessEndpointOutput`. """ - return self._invoke(input, _models.MODIFY_VERIFIED_ACCESS_ENDPOINT, [], plugins) + def modify_verified_access_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessEndpointOutput: + return self._invoke( + self._select_input(_models.MODIFY_VERIFIED_ACCESS_ENDPOINT, args, kwargs), + _models.MODIFY_VERIFIED_ACCESS_ENDPOINT, + [], + plugins, + ) + + @_overload def modify_verified_access_endpoint_policy( self, - input: ModifyVerifiedAccessEndpointPolicyInput, + request: _models.ModifyVerifiedAccessEndpointPolicyInput + | _models.ModifyVerifiedAccessEndpointPolicyInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessEndpointPolicyOutput: ... + + @_overload + def modify_verified_access_endpoint_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessEndpointPolicyInputDict], ) -> ModifyVerifiedAccessEndpointPolicyOutput: """ Modifies the specified Amazon Web Services Verified Access endpoint policy. Args: - input: - An instance of `ModifyVerifiedAccessEndpointPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22233,20 +35759,42 @@ def modify_verified_access_endpoint_policy( Returns: An instance of `ModifyVerifiedAccessEndpointPolicyOutput`. """ + + def modify_verified_access_endpoint_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessEndpointPolicyOutput: return self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_ENDPOINT_POLICY, [], plugins + self._select_input( + _models.MODIFY_VERIFIED_ACCESS_ENDPOINT_POLICY, args, kwargs + ), + _models.MODIFY_VERIFIED_ACCESS_ENDPOINT_POLICY, + [], + plugins, ) + @_overload + def modify_verified_access_group( + self, + request: _models.ModifyVerifiedAccessGroupInput + | _models.ModifyVerifiedAccessGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessGroupOutput: ... + + @_overload def modify_verified_access_group( - self, input: ModifyVerifiedAccessGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessGroupInputDict], ) -> ModifyVerifiedAccessGroupOutput: """ Modifies the specified Amazon Web Services Verified Access group configuration. Args: - input: - An instance of `ModifyVerifiedAccessGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22256,19 +35804,39 @@ def modify_verified_access_group( Returns: An instance of `ModifyVerifiedAccessGroupOutput`. """ - return self._invoke(input, _models.MODIFY_VERIFIED_ACCESS_GROUP, [], plugins) + def modify_verified_access_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessGroupOutput: + return self._invoke( + self._select_input(_models.MODIFY_VERIFIED_ACCESS_GROUP, args, kwargs), + _models.MODIFY_VERIFIED_ACCESS_GROUP, + [], + plugins, + ) + + @_overload + def modify_verified_access_group_policy( + self, + request: _models.ModifyVerifiedAccessGroupPolicyInput + | _models.ModifyVerifiedAccessGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessGroupPolicyOutput: ... + + @_overload def modify_verified_access_group_policy( self, - input: ModifyVerifiedAccessGroupPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessGroupPolicyInputDict], ) -> ModifyVerifiedAccessGroupPolicyOutput: """ Modifies the specified Amazon Web Services Verified Access group policy. Args: - input: - An instance of `ModifyVerifiedAccessGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22278,22 +35846,42 @@ def modify_verified_access_group_policy( Returns: An instance of `ModifyVerifiedAccessGroupPolicyOutput`. """ + + def modify_verified_access_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessGroupPolicyOutput: return self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_GROUP_POLICY, [], plugins + self._select_input( + _models.MODIFY_VERIFIED_ACCESS_GROUP_POLICY, args, kwargs + ), + _models.MODIFY_VERIFIED_ACCESS_GROUP_POLICY, + [], + plugins, ) + @_overload + def modify_verified_access_instance( + self, + request: _models.ModifyVerifiedAccessInstanceInput + | _models.ModifyVerifiedAccessInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessInstanceOutput: ... + + @_overload def modify_verified_access_instance( self, - input: ModifyVerifiedAccessInstanceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessInstanceInputDict], ) -> ModifyVerifiedAccessInstanceOutput: """ Modifies the configuration of the specified Amazon Web Services Verified Access instance. Args: - input: - An instance of `ModifyVerifiedAccessInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22303,20 +35891,42 @@ def modify_verified_access_instance( Returns: An instance of `ModifyVerifiedAccessInstanceOutput`. """ - return self._invoke(input, _models.MODIFY_VERIFIED_ACCESS_INSTANCE, [], plugins) + def modify_verified_access_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessInstanceOutput: + return self._invoke( + self._select_input(_models.MODIFY_VERIFIED_ACCESS_INSTANCE, args, kwargs), + _models.MODIFY_VERIFIED_ACCESS_INSTANCE, + [], + plugins, + ) + + @_overload + def modify_verified_access_instance_logging_configuration( + self, + request: _models.ModifyVerifiedAccessInstanceLoggingConfigurationInput + | _models.ModifyVerifiedAccessInstanceLoggingConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessInstanceLoggingConfigurationOutput: ... + + @_overload def modify_verified_access_instance_logging_configuration( self, - input: ModifyVerifiedAccessInstanceLoggingConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.ModifyVerifiedAccessInstanceLoggingConfigurationInputDict + ], ) -> ModifyVerifiedAccessInstanceLoggingConfigurationOutput: """ Modifies the logging configuration for the specified Amazon Web Services Verified Access instance. Args: - input: - An instance of `ModifyVerifiedAccessInstanceLoggingConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22326,25 +35936,44 @@ def modify_verified_access_instance_logging_configuration( Returns: An instance of `ModifyVerifiedAccessInstanceLoggingConfigurationOutput`. """ + + def modify_verified_access_instance_logging_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessInstanceLoggingConfigurationOutput: return self._invoke( - input, + self._select_input( + _models.MODIFY_VERIFIED_ACCESS_INSTANCE_LOGGING_CONFIGURATION, + args, + kwargs, + ), _models.MODIFY_VERIFIED_ACCESS_INSTANCE_LOGGING_CONFIGURATION, [], plugins, ) + @_overload + def modify_verified_access_trust_provider( + self, + request: _models.ModifyVerifiedAccessTrustProviderInput + | _models.ModifyVerifiedAccessTrustProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVerifiedAccessTrustProviderOutput: ... + + @_overload def modify_verified_access_trust_provider( self, - input: ModifyVerifiedAccessTrustProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVerifiedAccessTrustProviderInputDict], ) -> ModifyVerifiedAccessTrustProviderOutput: """ Modifies the configuration of the specified Amazon Web Services Verified Access trust provider. Args: - input: - An instance of `ModifyVerifiedAccessTrustProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22354,12 +35983,35 @@ def modify_verified_access_trust_provider( Returns: An instance of `ModifyVerifiedAccessTrustProviderOutput`. """ + + def modify_verified_access_trust_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVerifiedAccessTrustProviderOutput: return self._invoke( - input, _models.MODIFY_VERIFIED_ACCESS_TRUST_PROVIDER, [], plugins + self._select_input( + _models.MODIFY_VERIFIED_ACCESS_TRUST_PROVIDER, args, kwargs + ), + _models.MODIFY_VERIFIED_ACCESS_TRUST_PROVIDER, + [], + plugins, ) + @_overload + def modify_volume( + self, + request: _models.ModifyVolumeInput | _models.ModifyVolumeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVolumeOutput: ... + + @_overload def modify_volume( - self, input: ModifyVolumeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVolumeInputDict], ) -> ModifyVolumeOutput: """ You can modify several parameters of an existing EBS volume, including @@ -22393,8 +36045,6 @@ def modify_volume( message that indicates when you can perform your next modification. Args: - input: - An instance of `ModifyVolumeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22404,10 +36054,34 @@ def modify_volume( Returns: An instance of `ModifyVolumeOutput`. """ - return self._invoke(input, _models.MODIFY_VOLUME, [], plugins) + def modify_volume( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVolumeOutput: + return self._invoke( + self._select_input(_models.MODIFY_VOLUME, args, kwargs), + _models.MODIFY_VOLUME, + [], + plugins, + ) + + @_overload + def modify_volume_attribute( + self, + request: _models.ModifyVolumeAttributeInput + | _models.ModifyVolumeAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVolumeAttributeOutput: ... + + @_overload def modify_volume_attribute( - self, input: ModifyVolumeAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVolumeAttributeInputDict], ) -> ModifyVolumeAttributeOutput: """ Modifies a volume attribute. @@ -22423,8 +36097,6 @@ def modify_volume_attribute( are stateless or disposable. Args: - input: - An instance of `ModifyVolumeAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22434,17 +36106,38 @@ def modify_volume_attribute( Returns: An instance of `ModifyVolumeAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_VOLUME_ATTRIBUTE, [], plugins) + def modify_volume_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVolumeAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_VOLUME_ATTRIBUTE, args, kwargs), + _models.MODIFY_VOLUME_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def modify_vpc_attribute( + self, + request: _models.ModifyVpcAttributeInput | _models.ModifyVpcAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcAttributeOutput: ... + + @_overload def modify_vpc_attribute( - self, input: ModifyVpcAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcAttributeInputDict], ) -> ModifyVpcAttributeOutput: """ Modifies the specified attribute of the specified VPC. Args: - input: - An instance of `ModifyVpcAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22454,12 +36147,34 @@ def modify_vpc_attribute( Returns: An instance of `ModifyVpcAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_VPC_ATTRIBUTE, [], plugins) + def modify_vpc_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_VPC_ATTRIBUTE, args, kwargs), + _models.MODIFY_VPC_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def modify_vpc_block_public_access_exclusion( + self, + request: _models.ModifyVpcBlockPublicAccessExclusionInput + | _models.ModifyVpcBlockPublicAccessExclusionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcBlockPublicAccessExclusionOutput: ... + + @_overload def modify_vpc_block_public_access_exclusion( self, - input: ModifyVpcBlockPublicAccessExclusionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcBlockPublicAccessExclusionInputDict], ) -> ModifyVpcBlockPublicAccessExclusionOutput: """ Modify VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is @@ -22470,8 +36185,6 @@ def modify_vpc_block_public_access_exclusion( disruption to the exclusions when VPC BPA is turned on. Args: - input: - An instance of `ModifyVpcBlockPublicAccessExclusionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22481,14 +36194,36 @@ def modify_vpc_block_public_access_exclusion( Returns: An instance of `ModifyVpcBlockPublicAccessExclusionOutput`. """ + + def modify_vpc_block_public_access_exclusion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcBlockPublicAccessExclusionOutput: return self._invoke( - input, _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, [], plugins + self._select_input( + _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, args, kwargs + ), + _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_EXCLUSION, + [], + plugins, ) + @_overload + def modify_vpc_block_public_access_options( + self, + request: _models.ModifyVpcBlockPublicAccessOptionsInput + | _models.ModifyVpcBlockPublicAccessOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcBlockPublicAccessOptionsOutput: ... + + @_overload def modify_vpc_block_public_access_options( self, - input: ModifyVpcBlockPublicAccessOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcBlockPublicAccessOptionsInputDict], ) -> ModifyVpcBlockPublicAccessOptionsOutput: """ Modify VPC Block Public Access (BPA) options. VPC Block Public Access @@ -22500,8 +36235,6 @@ def modify_vpc_block_public_access_options( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ModifyVpcBlockPublicAccessOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22511,14 +36244,36 @@ def modify_vpc_block_public_access_options( Returns: An instance of `ModifyVpcBlockPublicAccessOptionsOutput`. """ + + def modify_vpc_block_public_access_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcBlockPublicAccessOptionsOutput: return self._invoke( - input, _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, [], plugins + self._select_input( + _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, args, kwargs + ), + _models.MODIFY_VPC_BLOCK_PUBLIC_ACCESS_OPTIONS, + [], + plugins, ) + @_overload + def modify_vpc_encryption_control( + self, + request: _models.ModifyVpcEncryptionControlInput + | _models.ModifyVpcEncryptionControlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEncryptionControlOutput: ... + + @_overload def modify_vpc_encryption_control( self, - input: ModifyVpcEncryptionControlInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEncryptionControlInputDict], ) -> ModifyVpcEncryptionControlOutput: """ Modifies the encryption control configuration for a VPC. You can update @@ -22530,8 +36285,6 @@ def modify_vpc_encryption_control( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ModifyVpcEncryptionControlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22541,10 +36294,33 @@ def modify_vpc_encryption_control( Returns: An instance of `ModifyVpcEncryptionControlOutput`. """ - return self._invoke(input, _models.MODIFY_VPC_ENCRYPTION_CONTROL, [], plugins) + def modify_vpc_encryption_control( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEncryptionControlOutput: + return self._invoke( + self._select_input(_models.MODIFY_VPC_ENCRYPTION_CONTROL, args, kwargs), + _models.MODIFY_VPC_ENCRYPTION_CONTROL, + [], + plugins, + ) + + @_overload + def modify_vpc_endpoint( + self, + request: _models.ModifyVpcEndpointInput | _models.ModifyVpcEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointOutput: ... + + @_overload def modify_vpc_endpoint( - self, input: ModifyVpcEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointInputDict], ) -> ModifyVpcEndpointOutput: """ Modifies attributes of a specified VPC endpoint. The attributes that you @@ -22554,8 +36330,6 @@ def modify_vpc_endpoint( Guide](https://docs.aws.amazon.com/vpc/latest/privatelink/). Args: - input: - An instance of `ModifyVpcEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22565,12 +36339,34 @@ def modify_vpc_endpoint( Returns: An instance of `ModifyVpcEndpointOutput`. """ - return self._invoke(input, _models.MODIFY_VPC_ENDPOINT, [], plugins) + def modify_vpc_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointOutput: + return self._invoke( + self._select_input(_models.MODIFY_VPC_ENDPOINT, args, kwargs), + _models.MODIFY_VPC_ENDPOINT, + [], + plugins, + ) + + @_overload + def modify_vpc_endpoint_connection_notification( + self, + request: _models.ModifyVpcEndpointConnectionNotificationInput + | _models.ModifyVpcEndpointConnectionNotificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointConnectionNotificationOutput: ... + + @_overload def modify_vpc_endpoint_connection_notification( self, - input: ModifyVpcEndpointConnectionNotificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointConnectionNotificationInputDict], ) -> ModifyVpcEndpointConnectionNotificationOutput: """ Modifies a connection notification for VPC endpoint or VPC endpoint @@ -22578,8 +36374,6 @@ def modify_vpc_endpoint_connection_notification( events for which to be notified. Args: - input: - An instance of `ModifyVpcEndpointConnectionNotificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22589,21 +36383,41 @@ def modify_vpc_endpoint_connection_notification( Returns: An instance of `ModifyVpcEndpointConnectionNotificationOutput`. """ + + def modify_vpc_endpoint_connection_notification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointConnectionNotificationOutput: return self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_CONNECTION_NOTIFICATION, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_CONNECTION_NOTIFICATION, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_CONNECTION_NOTIFICATION, + [], + plugins, ) + @_overload + def modify_vpc_endpoint_payer_responsibility( + self, + request: _models.ModifyVpcEndpointPayerResponsibilityInput + | _models.ModifyVpcEndpointPayerResponsibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointPayerResponsibilityOutput: ... + + @_overload def modify_vpc_endpoint_payer_responsibility( self, - input: ModifyVpcEndpointPayerResponsibilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointPayerResponsibilityInputDict], ) -> ModifyVpcEndpointPayerResponsibilityOutput: """ Modifies the billing account for VPC endpoint usage/charges. Args: - input: - An instance of `ModifyVpcEndpointPayerResponsibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22613,14 +36427,36 @@ def modify_vpc_endpoint_payer_responsibility( Returns: An instance of `ModifyVpcEndpointPayerResponsibilityOutput`. """ + + def modify_vpc_endpoint_payer_responsibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointPayerResponsibilityOutput: return self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_PAYER_RESPONSIBILITY, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_PAYER_RESPONSIBILITY, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_PAYER_RESPONSIBILITY, + [], + plugins, ) + @_overload + def modify_vpc_endpoint_service_configuration( + self, + request: _models.ModifyVpcEndpointServiceConfigurationInput + | _models.ModifyVpcEndpointServiceConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointServiceConfigurationOutput: ... + + @_overload def modify_vpc_endpoint_service_configuration( self, - input: ModifyVpcEndpointServiceConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointServiceConfigurationInputDict], ) -> ModifyVpcEndpointServiceConfigurationOutput: """ Modifies the attributes of the specified VPC endpoint service @@ -22630,8 +36466,6 @@ def modify_vpc_endpoint_service_configuration( the private DNS domain name. Args: - input: - An instance of `ModifyVpcEndpointServiceConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22641,21 +36475,41 @@ def modify_vpc_endpoint_service_configuration( Returns: An instance of `ModifyVpcEndpointServiceConfigurationOutput`. """ + + def modify_vpc_endpoint_service_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointServiceConfigurationOutput: return self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_SERVICE_CONFIGURATION, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_SERVICE_CONFIGURATION, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_SERVICE_CONFIGURATION, + [], + plugins, ) + @_overload + def modify_vpc_endpoint_service_payer_responsibility( + self, + request: _models.ModifyVpcEndpointServicePayerResponsibilityInput + | _models.ModifyVpcEndpointServicePayerResponsibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointServicePayerResponsibilityOutput: ... + + @_overload def modify_vpc_endpoint_service_payer_responsibility( self, - input: ModifyVpcEndpointServicePayerResponsibilityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointServicePayerResponsibilityInputDict], ) -> ModifyVpcEndpointServicePayerResponsibilityOutput: """ Modifies the payer responsibility for your VPC endpoint service. Args: - input: - An instance of `ModifyVpcEndpointServicePayerResponsibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22665,14 +36519,36 @@ def modify_vpc_endpoint_service_payer_responsibility( Returns: An instance of `ModifyVpcEndpointServicePayerResponsibilityOutput`. """ + + def modify_vpc_endpoint_service_payer_responsibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointServicePayerResponsibilityOutput: return self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_SERVICE_PAYER_RESPONSIBILITY, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_SERVICE_PAYER_RESPONSIBILITY, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_SERVICE_PAYER_RESPONSIBILITY, + [], + plugins, ) + @_overload + def modify_vpc_endpoint_service_permissions( + self, + request: _models.ModifyVpcEndpointServicePermissionsInput + | _models.ModifyVpcEndpointServicePermissionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcEndpointServicePermissionsOutput: ... + + @_overload def modify_vpc_endpoint_service_permissions( self, - input: ModifyVpcEndpointServicePermissionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcEndpointServicePermissionsInputDict], ) -> ModifyVpcEndpointServicePermissionsOutput: """ Modifies the permissions for your VPC endpoint service. You can add or @@ -22686,8 +36562,6 @@ def modify_vpc_endpoint_service_permissions( attachments are automatically approved. Args: - input: - An instance of `ModifyVpcEndpointServicePermissionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22697,14 +36571,36 @@ def modify_vpc_endpoint_service_permissions( Returns: An instance of `ModifyVpcEndpointServicePermissionsOutput`. """ + + def modify_vpc_endpoint_service_permissions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcEndpointServicePermissionsOutput: return self._invoke( - input, _models.MODIFY_VPC_ENDPOINT_SERVICE_PERMISSIONS, [], plugins + self._select_input( + _models.MODIFY_VPC_ENDPOINT_SERVICE_PERMISSIONS, args, kwargs + ), + _models.MODIFY_VPC_ENDPOINT_SERVICE_PERMISSIONS, + [], + plugins, ) + @_overload def modify_vpc_peering_connection_options( self, - input: ModifyVpcPeeringConnectionOptionsInput, + request: _models.ModifyVpcPeeringConnectionOptionsInput + | _models.ModifyVpcPeeringConnectionOptionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyVpcPeeringConnectionOptionsOutput: ... + + @_overload + def modify_vpc_peering_connection_options( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcPeeringConnectionOptionsInputDict], ) -> ModifyVpcPeeringConnectionOptionsOutput: """ Modifies the VPC peering connection options on one side of a VPC peering @@ -22724,8 +36620,6 @@ def modify_vpc_peering_connection_options( VPC peering connection, use the DescribeVpcPeeringConnections command. Args: - input: - An instance of `ModifyVpcPeeringConnectionOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22735,12 +36629,35 @@ def modify_vpc_peering_connection_options( Returns: An instance of `ModifyVpcPeeringConnectionOptionsOutput`. """ + + def modify_vpc_peering_connection_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcPeeringConnectionOptionsOutput: return self._invoke( - input, _models.MODIFY_VPC_PEERING_CONNECTION_OPTIONS, [], plugins + self._select_input( + _models.MODIFY_VPC_PEERING_CONNECTION_OPTIONS, args, kwargs + ), + _models.MODIFY_VPC_PEERING_CONNECTION_OPTIONS, + [], + plugins, ) + @_overload + def modify_vpc_tenancy( + self, + request: _models.ModifyVpcTenancyInput | _models.ModifyVpcTenancyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpcTenancyOutput: ... + + @_overload def modify_vpc_tenancy( - self, input: ModifyVpcTenancyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpcTenancyInputDict], ) -> ModifyVpcTenancyOutput: """ Modifies the instance tenancy attribute of the specified VPC. You can @@ -22757,8 +36674,6 @@ def modify_vpc_tenancy( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `ModifyVpcTenancyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22768,10 +36683,34 @@ def modify_vpc_tenancy( Returns: An instance of `ModifyVpcTenancyOutput`. """ - return self._invoke(input, _models.MODIFY_VPC_TENANCY, [], plugins) + def modify_vpc_tenancy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpcTenancyOutput: + return self._invoke( + self._select_input(_models.MODIFY_VPC_TENANCY, args, kwargs), + _models.MODIFY_VPC_TENANCY, + [], + plugins, + ) + + @_overload + def modify_vpn_connection( + self, + request: _models.ModifyVpnConnectionInput + | _models.ModifyVpnConnectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpnConnectionOutput: ... + + @_overload def modify_vpn_connection( - self, input: ModifyVpnConnectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpnConnectionInputDict], ) -> ModifyVpnConnectionOutput: """ Modifies the customer gateway or the target gateway of an Amazon Web @@ -22819,8 +36758,6 @@ def modify_vpn_connection( unavailable for a brief period while we provision the new endpoints. Args: - input: - An instance of `ModifyVpnConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22830,12 +36767,34 @@ def modify_vpn_connection( Returns: An instance of `ModifyVpnConnectionOutput`. """ - return self._invoke(input, _models.MODIFY_VPN_CONNECTION, [], plugins) + def modify_vpn_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpnConnectionOutput: + return self._invoke( + self._select_input(_models.MODIFY_VPN_CONNECTION, args, kwargs), + _models.MODIFY_VPN_CONNECTION, + [], + plugins, + ) + + @_overload + def modify_vpn_connection_options( + self, + request: _models.ModifyVpnConnectionOptionsInput + | _models.ModifyVpnConnectionOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpnConnectionOptionsOutput: ... + + @_overload def modify_vpn_connection_options( self, - input: ModifyVpnConnectionOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpnConnectionOptionsInputDict], ) -> ModifyVpnConnectionOptionsOutput: """ Modifies the connection options for your Site-to-Site VPN connection. @@ -22846,8 +36805,6 @@ def modify_vpn_connection_options( unavailable for a brief period while the VPN connection is updated. Args: - input: - An instance of `ModifyVpnConnectionOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22857,19 +36814,39 @@ def modify_vpn_connection_options( Returns: An instance of `ModifyVpnConnectionOptionsOutput`. """ - return self._invoke(input, _models.MODIFY_VPN_CONNECTION_OPTIONS, [], plugins) + def modify_vpn_connection_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpnConnectionOptionsOutput: + return self._invoke( + self._select_input(_models.MODIFY_VPN_CONNECTION_OPTIONS, args, kwargs), + _models.MODIFY_VPN_CONNECTION_OPTIONS, + [], + plugins, + ) + + @_overload + def modify_vpn_tunnel_certificate( + self, + request: _models.ModifyVpnTunnelCertificateInput + | _models.ModifyVpnTunnelCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpnTunnelCertificateOutput: ... + + @_overload def modify_vpn_tunnel_certificate( self, - input: ModifyVpnTunnelCertificateInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpnTunnelCertificateInputDict], ) -> ModifyVpnTunnelCertificateOutput: """ Modifies the VPN tunnel endpoint certificate. Args: - input: - An instance of `ModifyVpnTunnelCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22879,10 +36856,34 @@ def modify_vpn_tunnel_certificate( Returns: An instance of `ModifyVpnTunnelCertificateOutput`. """ - return self._invoke(input, _models.MODIFY_VPN_TUNNEL_CERTIFICATE, [], plugins) + def modify_vpn_tunnel_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpnTunnelCertificateOutput: + return self._invoke( + self._select_input(_models.MODIFY_VPN_TUNNEL_CERTIFICATE, args, kwargs), + _models.MODIFY_VPN_TUNNEL_CERTIFICATE, + [], + plugins, + ) + + @_overload + def modify_vpn_tunnel_options( + self, + request: _models.ModifyVpnTunnelOptionsInput + | _models.ModifyVpnTunnelOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyVpnTunnelOptionsOutput: ... + + @_overload def modify_vpn_tunnel_options( - self, input: ModifyVpnTunnelOptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyVpnTunnelOptionsInputDict], ) -> ModifyVpnTunnelOptionsOutput: """ Modifies the options for a VPN tunnel in an Amazon Web Services @@ -22894,8 +36895,6 @@ def modify_vpn_tunnel_options( in the *Amazon Web Services Site-to-Site VPN User Guide*. Args: - input: - An instance of `ModifyVpnTunnelOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22905,10 +36904,33 @@ def modify_vpn_tunnel_options( Returns: An instance of `ModifyVpnTunnelOptionsOutput`. """ - return self._invoke(input, _models.MODIFY_VPN_TUNNEL_OPTIONS, [], plugins) + def modify_vpn_tunnel_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyVpnTunnelOptionsOutput: + return self._invoke( + self._select_input(_models.MODIFY_VPN_TUNNEL_OPTIONS, args, kwargs), + _models.MODIFY_VPN_TUNNEL_OPTIONS, + [], + plugins, + ) + + @_overload + def monitor_instances( + self, + request: _models.MonitorInstancesInput | _models.MonitorInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MonitorInstancesOutput: ... + + @_overload def monitor_instances( - self, input: MonitorInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MonitorInstancesInputDict], ) -> MonitorInstancesOutput: """ Enables detailed monitoring for a running instance. Otherwise, basic @@ -22921,8 +36943,6 @@ def monitor_instances( [UnmonitorInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_UnmonitorInstances.html). Args: - input: - An instance of `MonitorInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22932,10 +36952,33 @@ def monitor_instances( Returns: An instance of `MonitorInstancesOutput`. """ - return self._invoke(input, _models.MONITOR_INSTANCES, [], plugins) + def monitor_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MonitorInstancesOutput: + return self._invoke( + self._select_input(_models.MONITOR_INSTANCES, args, kwargs), + _models.MONITOR_INSTANCES, + [], + plugins, + ) + + @_overload + def move_address_to_vpc( + self, + request: _models.MoveAddressToVpcInput | _models.MoveAddressToVpcInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MoveAddressToVpcOutput: ... + + @_overload def move_address_to_vpc( - self, input: MoveAddressToVpcInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MoveAddressToVpcInputDict], ) -> MoveAddressToVpcOutput: """ Note: @@ -22950,8 +36993,6 @@ def move_address_to_vpc( EC2-Classic platform. Args: - input: - An instance of `MoveAddressToVpcInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22961,10 +37002,34 @@ def move_address_to_vpc( Returns: An instance of `MoveAddressToVpcOutput`. """ - return self._invoke(input, _models.MOVE_ADDRESS_TO_VPC, [], plugins) + def move_address_to_vpc( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MoveAddressToVpcOutput: + return self._invoke( + self._select_input(_models.MOVE_ADDRESS_TO_VPC, args, kwargs), + _models.MOVE_ADDRESS_TO_VPC, + [], + plugins, + ) + + @_overload def move_byoip_cidr_to_ipam( - self, input: MoveByoipCidrToIpamInput, plugins: list[Plugin] | None = None + self, + request: _models.MoveByoipCidrToIpamInput + | _models.MoveByoipCidrToIpamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MoveByoipCidrToIpamOutput: ... + + @_overload + def move_byoip_cidr_to_ipam( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MoveByoipCidrToIpamInputDict], ) -> MoveByoipCidrToIpamOutput: """ Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool. @@ -22977,8 +37042,6 @@ def move_byoip_cidr_to_ipam( IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoip-ipam.html). Args: - input: - An instance of `MoveByoipCidrToIpamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -22988,12 +37051,34 @@ def move_byoip_cidr_to_ipam( Returns: An instance of `MoveByoipCidrToIpamOutput`. """ - return self._invoke(input, _models.MOVE_BYOIP_CIDR_TO_IPAM, [], plugins) + def move_byoip_cidr_to_ipam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MoveByoipCidrToIpamOutput: + return self._invoke( + self._select_input(_models.MOVE_BYOIP_CIDR_TO_IPAM, args, kwargs), + _models.MOVE_BYOIP_CIDR_TO_IPAM, + [], + plugins, + ) + + @_overload + def move_capacity_reservation_instances( + self, + request: _models.MoveCapacityReservationInstancesInput + | _models.MoveCapacityReservationInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MoveCapacityReservationInstancesOutput: ... + + @_overload def move_capacity_reservation_instances( self, - input: MoveCapacityReservationInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MoveCapacityReservationInstancesInputDict], ) -> MoveCapacityReservationInstancesOutput: """ Move available capacity from a source Capacity Reservation to a @@ -23014,8 +37099,6 @@ def move_capacity_reservation_instances( - Capacity Reservation end time - `At specific time` or `Manually`. Args: - input: - An instance of `MoveCapacityReservationInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23025,12 +37108,35 @@ def move_capacity_reservation_instances( Returns: An instance of `MoveCapacityReservationInstancesOutput`. """ + + def move_capacity_reservation_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MoveCapacityReservationInstancesOutput: return self._invoke( - input, _models.MOVE_CAPACITY_RESERVATION_INSTANCES, [], plugins + self._select_input( + _models.MOVE_CAPACITY_RESERVATION_INSTANCES, args, kwargs + ), + _models.MOVE_CAPACITY_RESERVATION_INSTANCES, + [], + plugins, ) + @_overload + def provision_byoip_cidr( + self, + request: _models.ProvisionByoipCidrInput | _models.ProvisionByoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProvisionByoipCidrOutput: ... + + @_overload def provision_byoip_cidr( - self, input: ProvisionByoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProvisionByoipCidrInputDict], ) -> ProvisionByoipCidrOutput: """ Provisions an IPv4 or IPv6 address range for use with your Amazon Web @@ -23055,8 +37161,6 @@ def provision_byoip_cidr( range](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/byoip-onboard.html). Args: - input: - An instance of `ProvisionByoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23066,10 +37170,34 @@ def provision_byoip_cidr( Returns: An instance of `ProvisionByoipCidrOutput`. """ - return self._invoke(input, _models.PROVISION_BYOIP_CIDR, [], plugins) + def provision_byoip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProvisionByoipCidrOutput: + return self._invoke( + self._select_input(_models.PROVISION_BYOIP_CIDR, args, kwargs), + _models.PROVISION_BYOIP_CIDR, + [], + plugins, + ) + + @_overload + def provision_ipam_byoasn( + self, + request: _models.ProvisionIpamByoasnInput + | _models.ProvisionIpamByoasnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProvisionIpamByoasnOutput: ... + + @_overload def provision_ipam_byoasn( - self, input: ProvisionIpamByoasnInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProvisionIpamByoasnInputDict], ) -> ProvisionIpamByoasnOutput: """ Provisions your Autonomous System Number (ASN) for use in your Amazon @@ -23080,8 +37208,6 @@ def provision_ipam_byoasn( in the *Amazon VPC IPAM guide*. Args: - input: - An instance of `ProvisionIpamByoasnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23091,10 +37217,34 @@ def provision_ipam_byoasn( Returns: An instance of `ProvisionIpamByoasnOutput`. """ - return self._invoke(input, _models.PROVISION_IPAM_BYOASN, [], plugins) + def provision_ipam_byoasn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProvisionIpamByoasnOutput: + return self._invoke( + self._select_input(_models.PROVISION_IPAM_BYOASN, args, kwargs), + _models.PROVISION_IPAM_BYOASN, + [], + plugins, + ) + + @_overload def provision_ipam_pool_cidr( - self, input: ProvisionIpamPoolCidrInput, plugins: list[Plugin] | None = None + self, + request: _models.ProvisionIpamPoolCidrInput + | _models.ProvisionIpamPoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProvisionIpamPoolCidrOutput: ... + + @_overload + def provision_ipam_pool_cidr( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProvisionIpamPoolCidrInputDict], ) -> ProvisionIpamPoolCidrOutput: """ Provision a CIDR to an IPAM pool. You can use this action to provision @@ -23106,8 +37256,6 @@ def provision_ipam_pool_cidr( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ProvisionIpamPoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23117,12 +37265,34 @@ def provision_ipam_pool_cidr( Returns: An instance of `ProvisionIpamPoolCidrOutput`. """ - return self._invoke(input, _models.PROVISION_IPAM_POOL_CIDR, [], plugins) + def provision_ipam_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProvisionIpamPoolCidrOutput: + return self._invoke( + self._select_input(_models.PROVISION_IPAM_POOL_CIDR, args, kwargs), + _models.PROVISION_IPAM_POOL_CIDR, + [], + plugins, + ) + + @_overload + def provision_public_ipv4_pool_cidr( + self, + request: _models.ProvisionPublicIpv4PoolCidrInput + | _models.ProvisionPublicIpv4PoolCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ProvisionPublicIpv4PoolCidrOutput: ... + + @_overload def provision_public_ipv4_pool_cidr( self, - input: ProvisionPublicIpv4PoolCidrInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ProvisionPublicIpv4PoolCidrInputDict], ) -> ProvisionPublicIpv4PoolCidrOutput: """ Provision a CIDR to a public IPv4 pool. @@ -23132,8 +37302,6 @@ def provision_public_ipv4_pool_cidr( in the *Amazon VPC IPAM User Guide*. Args: - input: - An instance of `ProvisionPublicIpv4PoolCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23143,10 +37311,34 @@ def provision_public_ipv4_pool_cidr( Returns: An instance of `ProvisionPublicIpv4PoolCidrOutput`. """ - return self._invoke(input, _models.PROVISION_PUBLIC_IPV4_POOL_CIDR, [], plugins) + def provision_public_ipv4_pool_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ProvisionPublicIpv4PoolCidrOutput: + return self._invoke( + self._select_input(_models.PROVISION_PUBLIC_IPV4_POOL_CIDR, args, kwargs), + _models.PROVISION_PUBLIC_IPV4_POOL_CIDR, + [], + plugins, + ) + + @_overload def purchase_capacity_block( - self, input: PurchaseCapacityBlockInput, plugins: list[Plugin] | None = None + self, + request: _models.PurchaseCapacityBlockInput + | _models.PurchaseCapacityBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseCapacityBlockOutput: ... + + @_overload + def purchase_capacity_block( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseCapacityBlockInputDict], ) -> PurchaseCapacityBlockOutput: """ Purchase the Capacity Block for use with your account. With Capacity @@ -23155,8 +37347,6 @@ def purchase_capacity_block( are purchasing. Args: - input: - An instance of `PurchaseCapacityBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23166,12 +37356,34 @@ def purchase_capacity_block( Returns: An instance of `PurchaseCapacityBlockOutput`. """ - return self._invoke(input, _models.PURCHASE_CAPACITY_BLOCK, [], plugins) + def purchase_capacity_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseCapacityBlockOutput: + return self._invoke( + self._select_input(_models.PURCHASE_CAPACITY_BLOCK, args, kwargs), + _models.PURCHASE_CAPACITY_BLOCK, + [], + plugins, + ) + + @_overload + def purchase_capacity_block_extension( + self, + request: _models.PurchaseCapacityBlockExtensionInput + | _models.PurchaseCapacityBlockExtensionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseCapacityBlockExtensionOutput: ... + + @_overload def purchase_capacity_block_extension( self, - input: PurchaseCapacityBlockExtensionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseCapacityBlockExtensionInputDict], ) -> PurchaseCapacityBlockExtensionOutput: """ Purchase the Capacity Block extension for use with your account. You @@ -23179,8 +37391,6 @@ def purchase_capacity_block_extension( purchasing. Args: - input: - An instance of `PurchaseCapacityBlockExtensionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23190,12 +37400,34 @@ def purchase_capacity_block_extension( Returns: An instance of `PurchaseCapacityBlockExtensionOutput`. """ + + def purchase_capacity_block_extension( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseCapacityBlockExtensionOutput: return self._invoke( - input, _models.PURCHASE_CAPACITY_BLOCK_EXTENSION, [], plugins + self._select_input(_models.PURCHASE_CAPACITY_BLOCK_EXTENSION, args, kwargs), + _models.PURCHASE_CAPACITY_BLOCK_EXTENSION, + [], + plugins, ) + @_overload + def purchase_host_reservation( + self, + request: _models.PurchaseHostReservationInput + | _models.PurchaseHostReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseHostReservationOutput: ... + + @_overload def purchase_host_reservation( - self, input: PurchaseHostReservationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseHostReservationInputDict], ) -> PurchaseHostReservationOutput: """ Purchase a reservation with configurations that match those of your @@ -23204,8 +37436,6 @@ def purchase_host_reservation( reservation being purchased and charged to your account. Args: - input: - An instance of `PurchaseHostReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23215,12 +37445,34 @@ def purchase_host_reservation( Returns: An instance of `PurchaseHostReservationOutput`. """ - return self._invoke(input, _models.PURCHASE_HOST_RESERVATION, [], plugins) + def purchase_host_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseHostReservationOutput: + return self._invoke( + self._select_input(_models.PURCHASE_HOST_RESERVATION, args, kwargs), + _models.PURCHASE_HOST_RESERVATION, + [], + plugins, + ) + + @_overload + def purchase_reserved_instances_offering( + self, + request: _models.PurchaseReservedInstancesOfferingInput + | _models.PurchaseReservedInstancesOfferingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseReservedInstancesOfferingOutput: ... + + @_overload def purchase_reserved_instances_offering( self, - input: PurchaseReservedInstancesOfferingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseReservedInstancesOfferingInputDict], ) -> PurchaseReservedInstancesOfferingOutput: """ Purchases a Reserved Instance for use with your account. With Reserved @@ -23242,8 +37494,6 @@ def purchase_reserved_instances_offering( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `PurchaseReservedInstancesOfferingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23253,14 +37503,36 @@ def purchase_reserved_instances_offering( Returns: An instance of `PurchaseReservedInstancesOfferingOutput`. """ + + def purchase_reserved_instances_offering( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseReservedInstancesOfferingOutput: return self._invoke( - input, _models.PURCHASE_RESERVED_INSTANCES_OFFERING, [], plugins + self._select_input( + _models.PURCHASE_RESERVED_INSTANCES_OFFERING, args, kwargs + ), + _models.PURCHASE_RESERVED_INSTANCES_OFFERING, + [], + plugins, ) + @_overload + def purchase_scheduled_instances( + self, + request: _models.PurchaseScheduledInstancesInput + | _models.PurchaseScheduledInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseScheduledInstancesOutput: ... + + @_overload def purchase_scheduled_instances( self, - input: PurchaseScheduledInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseScheduledInstancesInputDict], ) -> PurchaseScheduledInstancesOutput: """ Note: @@ -23279,21 +37551,42 @@ def purchase_scheduled_instances( resell your purchase. Args: - input: - An instance of `PurchaseScheduledInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `PurchaseScheduledInstancesOutput`. - """ - return self._invoke(input, _models.PURCHASE_SCHEDULED_INSTANCES, [], plugins) + Returns: + An instance of `PurchaseScheduledInstancesOutput`. + """ + + def purchase_scheduled_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseScheduledInstancesOutput: + return self._invoke( + self._select_input(_models.PURCHASE_SCHEDULED_INSTANCES, args, kwargs), + _models.PURCHASE_SCHEDULED_INSTANCES, + [], + plugins, + ) + + @_overload + def reboot_instances( + self, + request: _models.RebootInstancesInput | _models.RebootInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RebootInstancesOutput: ... + @_overload def reboot_instances( - self, input: RebootInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RebootInstancesInputDict], ) -> RebootInstancesOutput: """ Requests a reboot of the specified instances. This operation is @@ -23310,8 +37603,6 @@ def reboot_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RebootInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23321,10 +37612,33 @@ def reboot_instances( Returns: An instance of `RebootInstancesOutput`. """ - return self._invoke(input, _models.REBOOT_INSTANCES, [], plugins) + def reboot_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RebootInstancesOutput: + return self._invoke( + self._select_input(_models.REBOOT_INSTANCES, args, kwargs), + _models.REBOOT_INSTANCES, + [], + plugins, + ) + + @_overload + def register_image( + self, + request: _models.RegisterImageInput | _models.RegisterImageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterImageOutput: ... + + @_overload def register_image( - self, input: RegisterImageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterImageInputDict], ) -> RegisterImageOutput: """ Registers an AMI. When you're creating an instance-store backed AMI, @@ -23387,8 +37701,6 @@ def register_image( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RegisterImageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23398,12 +37710,34 @@ def register_image( Returns: An instance of `RegisterImageOutput`. """ - return self._invoke(input, _models.REGISTER_IMAGE, [], plugins) + def register_image( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterImageOutput: + return self._invoke( + self._select_input(_models.REGISTER_IMAGE, args, kwargs), + _models.REGISTER_IMAGE, + [], + plugins, + ) + + @_overload + def register_instance_event_notification_attributes( + self, + request: _models.RegisterInstanceEventNotificationAttributesInput + | _models.RegisterInstanceEventNotificationAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterInstanceEventNotificationAttributesOutput: ... + + @_overload def register_instance_event_notification_attributes( self, - input: RegisterInstanceEventNotificationAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterInstanceEventNotificationAttributesInputDict], ) -> RegisterInstanceEventNotificationAttributesOutput: """ Registers a set of tag keys to include in scheduled event notifications @@ -23413,8 +37747,6 @@ def register_instance_event_notification_attributes( [DeregisterInstanceEventNotificationAttributes](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeregisterInstanceEventNotificationAttributes.html). Args: - input: - An instance of `RegisterInstanceEventNotificationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23424,14 +37756,36 @@ def register_instance_event_notification_attributes( Returns: An instance of `RegisterInstanceEventNotificationAttributesOutput`. """ + + def register_instance_event_notification_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterInstanceEventNotificationAttributesOutput: return self._invoke( - input, _models.REGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, [], plugins + self._select_input( + _models.REGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, args, kwargs + ), + _models.REGISTER_INSTANCE_EVENT_NOTIFICATION_ATTRIBUTES, + [], + plugins, ) + @_overload def register_transit_gateway_multicast_group_members( self, - input: RegisterTransitGatewayMulticastGroupMembersInput, + request: _models.RegisterTransitGatewayMulticastGroupMembersInput + | _models.RegisterTransitGatewayMulticastGroupMembersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RegisterTransitGatewayMulticastGroupMembersOutput: ... + + @_overload + def register_transit_gateway_multicast_group_members( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterTransitGatewayMulticastGroupMembersInputDict], ) -> RegisterTransitGatewayMulticastGroupMembersOutput: """ Registers members (network interfaces) with the transit gateway @@ -23447,8 +37801,6 @@ def register_transit_gateway_multicast_group_members( group. Args: - input: - An instance of `RegisterTransitGatewayMulticastGroupMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23458,14 +37810,36 @@ def register_transit_gateway_multicast_group_members( Returns: An instance of `RegisterTransitGatewayMulticastGroupMembersOutput`. """ + + def register_transit_gateway_multicast_group_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterTransitGatewayMulticastGroupMembersOutput: return self._invoke( - input, _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, [], plugins + self._select_input( + _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, args, kwargs + ), + _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_MEMBERS, + [], + plugins, ) + @_overload + def register_transit_gateway_multicast_group_sources( + self, + request: _models.RegisterTransitGatewayMulticastGroupSourcesInput + | _models.RegisterTransitGatewayMulticastGroupSourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterTransitGatewayMulticastGroupSourcesOutput: ... + + @_overload def register_transit_gateway_multicast_group_sources( self, - input: RegisterTransitGatewayMulticastGroupSourcesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterTransitGatewayMulticastGroupSourcesInputDict], ) -> RegisterTransitGatewayMulticastGroupSourcesOutput: """ Registers sources (network interfaces) with the specified transit @@ -23482,8 +37856,6 @@ def register_transit_gateway_multicast_group_sources( to verify that the source was added to the multicast group. Args: - input: - An instance of `RegisterTransitGatewayMulticastGroupSourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23493,14 +37865,36 @@ def register_transit_gateway_multicast_group_sources( Returns: An instance of `RegisterTransitGatewayMulticastGroupSourcesOutput`. """ + + def register_transit_gateway_multicast_group_sources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterTransitGatewayMulticastGroupSourcesOutput: return self._invoke( - input, _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, [], plugins + self._select_input( + _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, args, kwargs + ), + _models.REGISTER_TRANSIT_GATEWAY_MULTICAST_GROUP_SOURCES, + [], + plugins, ) + @_overload + def reject_capacity_reservation_billing_ownership( + self, + request: _models.RejectCapacityReservationBillingOwnershipInput + | _models.RejectCapacityReservationBillingOwnershipInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectCapacityReservationBillingOwnershipOutput: ... + + @_overload def reject_capacity_reservation_billing_ownership( self, - input: RejectCapacityReservationBillingOwnershipInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectCapacityReservationBillingOwnershipInputDict], ) -> RejectCapacityReservationBillingOwnershipOutput: """ Rejects a request to assign billing of the available capacity of a @@ -23509,8 +37903,6 @@ def reject_capacity_reservation_billing_ownership( Reservations](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html). Args: - input: - An instance of `RejectCapacityReservationBillingOwnershipInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23520,14 +37912,36 @@ def reject_capacity_reservation_billing_ownership( Returns: An instance of `RejectCapacityReservationBillingOwnershipOutput`. """ + + def reject_capacity_reservation_billing_ownership( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectCapacityReservationBillingOwnershipOutput: return self._invoke( - input, _models.REJECT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, [], plugins + self._select_input( + _models.REJECT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, args, kwargs + ), + _models.REJECT_CAPACITY_RESERVATION_BILLING_OWNERSHIP, + [], + plugins, ) + @_overload + def reject_transit_gateway_client_vpn_attachment( + self, + request: _models.RejectTransitGatewayClientVpnAttachmentInput + | _models.RejectTransitGatewayClientVpnAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectTransitGatewayClientVpnAttachmentOutput: ... + + @_overload def reject_transit_gateway_client_vpn_attachment( self, - input: RejectTransitGatewayClientVpnAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectTransitGatewayClientVpnAttachmentInputDict], ) -> RejectTransitGatewayClientVpnAttachmentOutput: """ Rejects a Transit Gateway attachment request for a Client VPN endpoint. @@ -23536,8 +37950,6 @@ def reject_transit_gateway_client_vpn_attachment( Gateway. Args: - input: - An instance of `RejectTransitGatewayClientVpnAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23547,22 +37959,44 @@ def reject_transit_gateway_client_vpn_attachment( Returns: An instance of `RejectTransitGatewayClientVpnAttachmentOutput`. """ + + def reject_transit_gateway_client_vpn_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectTransitGatewayClientVpnAttachmentOutput: return self._invoke( - input, _models.REJECT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, [], plugins + self._select_input( + _models.REJECT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, args, kwargs + ), + _models.REJECT_TRANSIT_GATEWAY_CLIENT_VPN_ATTACHMENT, + [], + plugins, ) + @_overload + def reject_transit_gateway_multicast_domain_associations( + self, + request: _models.RejectTransitGatewayMulticastDomainAssociationsInput + | _models.RejectTransitGatewayMulticastDomainAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectTransitGatewayMulticastDomainAssociationsOutput: ... + + @_overload def reject_transit_gateway_multicast_domain_associations( self, - input: RejectTransitGatewayMulticastDomainAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.RejectTransitGatewayMulticastDomainAssociationsInputDict + ], ) -> RejectTransitGatewayMulticastDomainAssociationsOutput: """ Rejects a request to associate cross-account subnets with a transit gateway multicast domain. Args: - input: - An instance of `RejectTransitGatewayMulticastDomainAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23572,24 +38006,43 @@ def reject_transit_gateway_multicast_domain_associations( Returns: An instance of `RejectTransitGatewayMulticastDomainAssociationsOutput`. """ + + def reject_transit_gateway_multicast_domain_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectTransitGatewayMulticastDomainAssociationsOutput: return self._invoke( - input, + self._select_input( + _models.REJECT_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, + args, + kwargs, + ), _models.REJECT_TRANSIT_GATEWAY_MULTICAST_DOMAIN_ASSOCIATIONS, [], plugins, ) + @_overload + def reject_transit_gateway_peering_attachment( + self, + request: _models.RejectTransitGatewayPeeringAttachmentInput + | _models.RejectTransitGatewayPeeringAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectTransitGatewayPeeringAttachmentOutput: ... + + @_overload def reject_transit_gateway_peering_attachment( self, - input: RejectTransitGatewayPeeringAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectTransitGatewayPeeringAttachmentInputDict], ) -> RejectTransitGatewayPeeringAttachmentOutput: """ Rejects a transit gateway peering attachment request. Args: - input: - An instance of `RejectTransitGatewayPeeringAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23599,14 +38052,36 @@ def reject_transit_gateway_peering_attachment( Returns: An instance of `RejectTransitGatewayPeeringAttachmentOutput`. """ + + def reject_transit_gateway_peering_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectTransitGatewayPeeringAttachmentOutput: return self._invoke( - input, _models.REJECT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, [], plugins + self._select_input( + _models.REJECT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, args, kwargs + ), + _models.REJECT_TRANSIT_GATEWAY_PEERING_ATTACHMENT, + [], + plugins, ) + @_overload + def reject_transit_gateway_vpc_attachment( + self, + request: _models.RejectTransitGatewayVpcAttachmentInput + | _models.RejectTransitGatewayVpcAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectTransitGatewayVpcAttachmentOutput: ... + + @_overload def reject_transit_gateway_vpc_attachment( self, - input: RejectTransitGatewayVpcAttachmentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectTransitGatewayVpcAttachmentInputDict], ) -> RejectTransitGatewayVpcAttachmentOutput: """ Rejects a request to attach a VPC to a transit gateway. @@ -23617,8 +38092,6 @@ def reject_transit_gateway_vpc_attachment( attachment request. Args: - input: - An instance of `RejectTransitGatewayVpcAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23628,21 +38101,41 @@ def reject_transit_gateway_vpc_attachment( Returns: An instance of `RejectTransitGatewayVpcAttachmentOutput`. """ + + def reject_transit_gateway_vpc_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectTransitGatewayVpcAttachmentOutput: return self._invoke( - input, _models.REJECT_TRANSIT_GATEWAY_VPC_ATTACHMENT, [], plugins + self._select_input( + _models.REJECT_TRANSIT_GATEWAY_VPC_ATTACHMENT, args, kwargs + ), + _models.REJECT_TRANSIT_GATEWAY_VPC_ATTACHMENT, + [], + plugins, ) + @_overload + def reject_vpc_endpoint_connections( + self, + request: _models.RejectVpcEndpointConnectionsInput + | _models.RejectVpcEndpointConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectVpcEndpointConnectionsOutput: ... + + @_overload def reject_vpc_endpoint_connections( self, - input: RejectVpcEndpointConnectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectVpcEndpointConnectionsInputDict], ) -> RejectVpcEndpointConnectionsOutput: """ Rejects VPC endpoint connection requests to your VPC endpoint service. Args: - input: - An instance of `RejectVpcEndpointConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23652,12 +38145,34 @@ def reject_vpc_endpoint_connections( Returns: An instance of `RejectVpcEndpointConnectionsOutput`. """ - return self._invoke(input, _models.REJECT_VPC_ENDPOINT_CONNECTIONS, [], plugins) + def reject_vpc_endpoint_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectVpcEndpointConnectionsOutput: + return self._invoke( + self._select_input(_models.REJECT_VPC_ENDPOINT_CONNECTIONS, args, kwargs), + _models.REJECT_VPC_ENDPOINT_CONNECTIONS, + [], + plugins, + ) + + @_overload def reject_vpc_peering_connection( self, - input: RejectVpcPeeringConnectionInput, + request: _models.RejectVpcPeeringConnectionInput + | _models.RejectVpcPeeringConnectionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RejectVpcPeeringConnectionOutput: ... + + @_overload + def reject_vpc_peering_connection( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectVpcPeeringConnectionInputDict], ) -> RejectVpcPeeringConnectionOutput: """ Rejects a VPC peering connection request. The VPC peering connection @@ -23668,8 +38183,6 @@ def reject_vpc_peering_connection( DeleteVpcPeeringConnection. Args: - input: - An instance of `RejectVpcPeeringConnectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23679,12 +38192,33 @@ def reject_vpc_peering_connection( Returns: An instance of `RejectVpcPeeringConnectionOutput`. """ - return self._invoke(input, _models.REJECT_VPC_PEERING_CONNECTION, [], plugins) + def reject_vpc_peering_connection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectVpcPeeringConnectionOutput: + return self._invoke( + self._select_input(_models.REJECT_VPC_PEERING_CONNECTION, args, kwargs), + _models.REJECT_VPC_PEERING_CONNECTION, + [], + plugins, + ) + + @_overload + def release_address( + self, + request: _models.ReleaseAddressInput | _models.ReleaseAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReleaseAddressOutput: ... + + @_overload def release_address( self, - input: ReleaseAddressInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReleaseAddressInputDict], ) -> ReleaseAddressOutput: """ Releases the specified Elastic IP address. @@ -23709,8 +38243,6 @@ def release_address( address](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing-eips-releasing.html). Args: - input: - An instance of `ReleaseAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23720,10 +38252,33 @@ def release_address( Returns: An instance of `ReleaseAddressOutput`. """ - return self._invoke(input, _models.RELEASE_ADDRESS, [], plugins) + def release_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReleaseAddressOutput: + return self._invoke( + self._select_input(_models.RELEASE_ADDRESS, args, kwargs), + _models.RELEASE_ADDRESS, + [], + plugins, + ) + + @_overload + def release_hosts( + self, + request: _models.ReleaseHostsInput | _models.ReleaseHostsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReleaseHostsOutput: ... + + @_overload def release_hosts( - self, input: ReleaseHostsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReleaseHostsInputDict], ) -> ReleaseHostsOutput: """ When you no longer want to use an On-Demand Dedicated Host it can be @@ -23741,8 +38296,6 @@ def release_hosts( Released hosts still appear in a DescribeHosts response. Args: - input: - An instance of `ReleaseHostsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23752,10 +38305,34 @@ def release_hosts( Returns: An instance of `ReleaseHostsOutput`. """ - return self._invoke(input, _models.RELEASE_HOSTS, [], plugins) + def release_hosts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReleaseHostsOutput: + return self._invoke( + self._select_input(_models.RELEASE_HOSTS, args, kwargs), + _models.RELEASE_HOSTS, + [], + plugins, + ) + + @_overload + def release_ipam_pool_allocation( + self, + request: _models.ReleaseIpamPoolAllocationInput + | _models.ReleaseIpamPoolAllocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReleaseIpamPoolAllocationOutput: ... + + @_overload def release_ipam_pool_allocation( - self, input: ReleaseIpamPoolAllocationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReleaseIpamPoolAllocationInputDict], ) -> ReleaseIpamPoolAllocationOutput: """ Release an allocation within an IPAM pool. The Region you use should be @@ -23775,8 +38352,6 @@ def release_ipam_pool_allocation( model. Args: - input: - An instance of `ReleaseIpamPoolAllocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23786,12 +38361,34 @@ def release_ipam_pool_allocation( Returns: An instance of `ReleaseIpamPoolAllocationOutput`. """ - return self._invoke(input, _models.RELEASE_IPAM_POOL_ALLOCATION, [], plugins) + def release_ipam_pool_allocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReleaseIpamPoolAllocationOutput: + return self._invoke( + self._select_input(_models.RELEASE_IPAM_POOL_ALLOCATION, args, kwargs), + _models.RELEASE_IPAM_POOL_ALLOCATION, + [], + plugins, + ) + + @_overload def replace_iam_instance_profile_association( self, - input: ReplaceIamInstanceProfileAssociationInput, + request: _models.ReplaceIamInstanceProfileAssociationInput + | _models.ReplaceIamInstanceProfileAssociationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ReplaceIamInstanceProfileAssociationOutput: ... + + @_overload + def replace_iam_instance_profile_association( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceIamInstanceProfileAssociationInputDict], ) -> ReplaceIamInstanceProfileAssociationOutput: """ Replaces an IAM instance profile for the specified running instance. You @@ -23802,8 +38399,6 @@ def replace_iam_instance_profile_association( Use DescribeIamInstanceProfileAssociations to get the association ID. Args: - input: - An instance of `ReplaceIamInstanceProfileAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23813,14 +38408,36 @@ def replace_iam_instance_profile_association( Returns: An instance of `ReplaceIamInstanceProfileAssociationOutput`. """ + + def replace_iam_instance_profile_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceIamInstanceProfileAssociationOutput: return self._invoke( - input, _models.REPLACE_IAM_INSTANCE_PROFILE_ASSOCIATION, [], plugins + self._select_input( + _models.REPLACE_IAM_INSTANCE_PROFILE_ASSOCIATION, args, kwargs + ), + _models.REPLACE_IAM_INSTANCE_PROFILE_ASSOCIATION, + [], + plugins, ) + @_overload + def replace_image_criteria_in_allowed_images_settings( + self, + request: _models.ReplaceImageCriteriaInAllowedImagesSettingsInput + | _models.ReplaceImageCriteriaInAllowedImagesSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceImageCriteriaInAllowedImagesSettingsOutput: ... + + @_overload def replace_image_criteria_in_allowed_images_settings( self, - input: ReplaceImageCriteriaInAllowedImagesSettingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceImageCriteriaInAllowedImagesSettingsInputDict], ) -> ReplaceImageCriteriaInAllowedImagesSettingsOutput: """ Sets or replaces the criteria for Allowed AMIs. @@ -23840,8 +38457,6 @@ def replace_image_criteria_in_allowed_images_settings( in *Amazon EC2 User Guide*. Args: - input: - An instance of `ReplaceImageCriteriaInAllowedImagesSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23851,17 +38466,36 @@ def replace_image_criteria_in_allowed_images_settings( Returns: An instance of `ReplaceImageCriteriaInAllowedImagesSettingsOutput`. """ + + def replace_image_criteria_in_allowed_images_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceImageCriteriaInAllowedImagesSettingsOutput: return self._invoke( - input, + self._select_input( + _models.REPLACE_IMAGE_CRITERIA_IN_ALLOWED_IMAGES_SETTINGS, args, kwargs + ), _models.REPLACE_IMAGE_CRITERIA_IN_ALLOWED_IMAGES_SETTINGS, [], plugins, ) + @_overload def replace_image_instance_type_specification( self, - input: ReplaceImageInstanceTypeSpecificationInput, + request: _models.ReplaceImageInstanceTypeSpecificationInput + | _models.ReplaceImageInstanceTypeSpecificationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ReplaceImageInstanceTypeSpecificationOutput: ... + + @_overload + def replace_image_instance_type_specification( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceImageInstanceTypeSpecificationInputDict], ) -> ReplaceImageInstanceTypeSpecificationOutput: """ Replaces or removes the instance type specification for an AMI. The @@ -23897,8 +38531,6 @@ def replace_image_instance_type_specification( Web Services Marketplace if it has an instance type specification set. Args: - input: - An instance of `ReplaceImageInstanceTypeSpecificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23908,14 +38540,36 @@ def replace_image_instance_type_specification( Returns: An instance of `ReplaceImageInstanceTypeSpecificationOutput`. """ + + def replace_image_instance_type_specification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceImageInstanceTypeSpecificationOutput: return self._invoke( - input, _models.REPLACE_IMAGE_INSTANCE_TYPE_SPECIFICATION, [], plugins + self._select_input( + _models.REPLACE_IMAGE_INSTANCE_TYPE_SPECIFICATION, args, kwargs + ), + _models.REPLACE_IMAGE_INSTANCE_TYPE_SPECIFICATION, + [], + plugins, ) + @_overload + def replace_network_acl_association( + self, + request: _models.ReplaceNetworkAclAssociationInput + | _models.ReplaceNetworkAclAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceNetworkAclAssociationOutput: ... + + @_overload def replace_network_acl_association( self, - input: ReplaceNetworkAclAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceNetworkAclAssociationInputDict], ) -> ReplaceNetworkAclAssociationOutput: """ Changes which network ACL a subnet is associated with. By default when @@ -23927,8 +38581,6 @@ def replace_network_acl_association( This is an idempotent operation. Args: - input: - An instance of `ReplaceNetworkAclAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23938,10 +38590,34 @@ def replace_network_acl_association( Returns: An instance of `ReplaceNetworkAclAssociationOutput`. """ - return self._invoke(input, _models.REPLACE_NETWORK_ACL_ASSOCIATION, [], plugins) + def replace_network_acl_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceNetworkAclAssociationOutput: + return self._invoke( + self._select_input(_models.REPLACE_NETWORK_ACL_ASSOCIATION, args, kwargs), + _models.REPLACE_NETWORK_ACL_ASSOCIATION, + [], + plugins, + ) + + @_overload + def replace_network_acl_entry( + self, + request: _models.ReplaceNetworkAclEntryInput + | _models.ReplaceNetworkAclEntryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceNetworkAclEntryOutput: ... + + @_overload def replace_network_acl_entry( - self, input: ReplaceNetworkAclEntryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceNetworkAclEntryInputDict], ) -> ReplaceNetworkAclEntryOutput: """ Replaces an entry (rule) in a network ACL. For more information, see @@ -23950,8 +38626,6 @@ def replace_network_acl_entry( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ReplaceNetworkAclEntryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23961,10 +38635,33 @@ def replace_network_acl_entry( Returns: An instance of `ReplaceNetworkAclEntryOutput`. """ - return self._invoke(input, _models.REPLACE_NETWORK_ACL_ENTRY, [], plugins) + def replace_network_acl_entry( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceNetworkAclEntryOutput: + return self._invoke( + self._select_input(_models.REPLACE_NETWORK_ACL_ENTRY, args, kwargs), + _models.REPLACE_NETWORK_ACL_ENTRY, + [], + plugins, + ) + + @_overload + def replace_route( + self, + request: _models.ReplaceRouteInput | _models.ReplaceRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceRouteOutput: ... + + @_overload def replace_route( - self, input: ReplaceRouteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceRouteInputDict], ) -> ReplaceRouteOutput: """ Replaces an existing route within a route table in a VPC. @@ -23978,8 +38675,6 @@ def replace_route( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ReplaceRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -23989,12 +38684,34 @@ def replace_route( Returns: An instance of `ReplaceRouteOutput`. """ - return self._invoke(input, _models.REPLACE_ROUTE, [], plugins) + def replace_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceRouteOutput: + return self._invoke( + self._select_input(_models.REPLACE_ROUTE, args, kwargs), + _models.REPLACE_ROUTE, + [], + plugins, + ) + + @_overload + def replace_route_table_association( + self, + request: _models.ReplaceRouteTableAssociationInput + | _models.ReplaceRouteTableAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceRouteTableAssociationOutput: ... + + @_overload def replace_route_table_association( self, - input: ReplaceRouteTableAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceRouteTableAssociationInputDict], ) -> ReplaceRouteTableAssociationOutput: """ Changes the route table associated with a given subnet, internet @@ -24009,8 +38726,6 @@ def replace_route_table_association( route table ID of the new main route table. Args: - input: - An instance of `ReplaceRouteTableAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24020,20 +38735,40 @@ def replace_route_table_association( Returns: An instance of `ReplaceRouteTableAssociationOutput`. """ - return self._invoke(input, _models.REPLACE_ROUTE_TABLE_ASSOCIATION, [], plugins) + def replace_route_table_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceRouteTableAssociationOutput: + return self._invoke( + self._select_input(_models.REPLACE_ROUTE_TABLE_ASSOCIATION, args, kwargs), + _models.REPLACE_ROUTE_TABLE_ASSOCIATION, + [], + plugins, + ) + + @_overload + def replace_transit_gateway_route( + self, + request: _models.ReplaceTransitGatewayRouteInput + | _models.ReplaceTransitGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceTransitGatewayRouteOutput: ... + + @_overload def replace_transit_gateway_route( self, - input: ReplaceTransitGatewayRouteInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceTransitGatewayRouteInputDict], ) -> ReplaceTransitGatewayRouteOutput: """ Replaces the specified route in the specified transit gateway route table. Args: - input: - An instance of `ReplaceTransitGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24043,17 +38778,38 @@ def replace_transit_gateway_route( Returns: An instance of `ReplaceTransitGatewayRouteOutput`. """ - return self._invoke(input, _models.REPLACE_TRANSIT_GATEWAY_ROUTE, [], plugins) + def replace_transit_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceTransitGatewayRouteOutput: + return self._invoke( + self._select_input(_models.REPLACE_TRANSIT_GATEWAY_ROUTE, args, kwargs), + _models.REPLACE_TRANSIT_GATEWAY_ROUTE, + [], + plugins, + ) + + @_overload + def replace_vpn_tunnel( + self, + request: _models.ReplaceVpnTunnelInput | _models.ReplaceVpnTunnelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplaceVpnTunnelOutput: ... + + @_overload def replace_vpn_tunnel( - self, input: ReplaceVpnTunnelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplaceVpnTunnelInputDict], ) -> ReplaceVpnTunnelOutput: """ Trigger replacement of specified VPN tunnel. Args: - input: - An instance of `ReplaceVpnTunnelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24063,10 +38819,34 @@ def replace_vpn_tunnel( Returns: An instance of `ReplaceVpnTunnelOutput`. """ - return self._invoke(input, _models.REPLACE_VPN_TUNNEL, [], plugins) + def replace_vpn_tunnel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplaceVpnTunnelOutput: + return self._invoke( + self._select_input(_models.REPLACE_VPN_TUNNEL, args, kwargs), + _models.REPLACE_VPN_TUNNEL, + [], + plugins, + ) + + @_overload + def report_instance_status( + self, + request: _models.ReportInstanceStatusInput + | _models.ReportInstanceStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReportInstanceStatusOutput: ... + + @_overload def report_instance_status( - self, input: ReportInstanceStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReportInstanceStatusInputDict], ) -> ReportInstanceStatusOutput: """ Submits feedback about the status of an instance. The instance must be @@ -24079,8 +38859,6 @@ def report_instance_status( DescribeInstanceStatus. Args: - input: - An instance of `ReportInstanceStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24090,10 +38868,33 @@ def report_instance_status( Returns: An instance of `ReportInstanceStatusOutput`. """ - return self._invoke(input, _models.REPORT_INSTANCE_STATUS, [], plugins) + def report_instance_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReportInstanceStatusOutput: + return self._invoke( + self._select_input(_models.REPORT_INSTANCE_STATUS, args, kwargs), + _models.REPORT_INSTANCE_STATUS, + [], + plugins, + ) + + @_overload + def request_spot_fleet( + self, + request: _models.RequestSpotFleetInput | _models.RequestSpotFleetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RequestSpotFleetOutput: ... + + @_overload def request_spot_fleet( - self, input: RequestSpotFleetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RequestSpotFleetInputDict], ) -> RequestSpotFleetOutput: """ Creates a Spot Fleet request. @@ -24134,8 +38935,6 @@ def request_spot_fleet( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RequestSpotFleetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24145,12 +38944,34 @@ def request_spot_fleet( Returns: An instance of `RequestSpotFleetOutput`. """ - return self._invoke(input, _models.REQUEST_SPOT_FLEET, [], plugins) + def request_spot_fleet( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RequestSpotFleetOutput: + return self._invoke( + self._select_input(_models.REQUEST_SPOT_FLEET, args, kwargs), + _models.REQUEST_SPOT_FLEET, + [], + plugins, + ) + + @_overload + def request_spot_instances( + self, + request: _models.RequestSpotInstancesInput + | _models.RequestSpotInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RequestSpotInstancesOutput: ... + + @_overload def request_spot_instances( self, - input: RequestSpotInstancesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RequestSpotInstancesInputDict], ) -> RequestSpotInstancesOutput: """ Creates a Spot Instance request. @@ -24167,8 +38988,6 @@ def request_spot_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RequestSpotInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24178,10 +38997,34 @@ def request_spot_instances( Returns: An instance of `RequestSpotInstancesOutput`. """ - return self._invoke(input, _models.REQUEST_SPOT_INSTANCES, [], plugins) + def request_spot_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RequestSpotInstancesOutput: + return self._invoke( + self._select_input(_models.REQUEST_SPOT_INSTANCES, args, kwargs), + _models.REQUEST_SPOT_INSTANCES, + [], + plugins, + ) + + @_overload + def reset_address_attribute( + self, + request: _models.ResetAddressAttributeInput + | _models.ResetAddressAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetAddressAttributeOutput: ... + + @_overload def reset_address_attribute( - self, input: ResetAddressAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetAddressAttributeInputDict], ) -> ResetAddressAttributeOutput: """ Resets the attribute of the specified IP address. For requirements, see @@ -24189,8 +39032,6 @@ def reset_address_attribute( applications](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). Args: - input: - An instance of `ResetAddressAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24200,12 +39041,34 @@ def reset_address_attribute( Returns: An instance of `ResetAddressAttributeOutput`. """ - return self._invoke(input, _models.RESET_ADDRESS_ATTRIBUTE, [], plugins) + def reset_address_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetAddressAttributeOutput: + return self._invoke( + self._select_input(_models.RESET_ADDRESS_ATTRIBUTE, args, kwargs), + _models.RESET_ADDRESS_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def reset_ebs_default_kms_key_id( + self, + request: _models.ResetEbsDefaultKmsKeyIdInput + | _models.ResetEbsDefaultKmsKeyIdInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetEbsDefaultKmsKeyIdOutput: ... + + @_overload def reset_ebs_default_kms_key_id( self, - input: ResetEbsDefaultKmsKeyIdInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetEbsDefaultKmsKeyIdInputDict], ) -> ResetEbsDefaultKmsKeyIdOutput: """ Resets the default KMS key for EBS encryption for your account in this @@ -24219,8 +39082,6 @@ def reset_ebs_default_kms_key_id( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ResetEbsDefaultKmsKeyIdInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24230,18 +39091,40 @@ def reset_ebs_default_kms_key_id( Returns: An instance of `ResetEbsDefaultKmsKeyIdOutput`. """ - return self._invoke(input, _models.RESET_EBS_DEFAULT_KMS_KEY_ID, [], plugins) + def reset_ebs_default_kms_key_id( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetEbsDefaultKmsKeyIdOutput: + return self._invoke( + self._select_input(_models.RESET_EBS_DEFAULT_KMS_KEY_ID, args, kwargs), + _models.RESET_EBS_DEFAULT_KMS_KEY_ID, + [], + plugins, + ) + + @_overload + def reset_fpga_image_attribute( + self, + request: _models.ResetFpgaImageAttributeInput + | _models.ResetFpgaImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetFpgaImageAttributeOutput: ... + + @_overload def reset_fpga_image_attribute( - self, input: ResetFpgaImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetFpgaImageAttributeInputDict], ) -> ResetFpgaImageAttributeOutput: """ Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute. Args: - input: - An instance of `ResetFpgaImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24251,17 +39134,39 @@ def reset_fpga_image_attribute( Returns: An instance of `ResetFpgaImageAttributeOutput`. """ - return self._invoke(input, _models.RESET_FPGA_IMAGE_ATTRIBUTE, [], plugins) + def reset_fpga_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetFpgaImageAttributeOutput: + return self._invoke( + self._select_input(_models.RESET_FPGA_IMAGE_ATTRIBUTE, args, kwargs), + _models.RESET_FPGA_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def reset_image_attribute( + self, + request: _models.ResetImageAttributeInput + | _models.ResetImageAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetImageAttributeOutput: ... + + @_overload def reset_image_attribute( - self, input: ResetImageAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetImageAttributeInputDict], ) -> ResetImageAttributeOutput: """ Resets an attribute of an AMI to its default value. Args: - input: - An instance of `ResetImageAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24271,10 +39176,34 @@ def reset_image_attribute( Returns: An instance of `ResetImageAttributeOutput`. """ - return self._invoke(input, _models.RESET_IMAGE_ATTRIBUTE, [], plugins) + def reset_image_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetImageAttributeOutput: + return self._invoke( + self._select_input(_models.RESET_IMAGE_ATTRIBUTE, args, kwargs), + _models.RESET_IMAGE_ATTRIBUTE, + [], + plugins, + ) + + @_overload def reset_instance_attribute( - self, input: ResetInstanceAttributeInput, plugins: list[Plugin] | None = None + self, + request: _models.ResetInstanceAttributeInput + | _models.ResetInstanceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetInstanceAttributeOutput: ... + + @_overload + def reset_instance_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetInstanceAttributeInputDict], ) -> ResetInstanceAttributeOutput: """ Resets an attribute of an instance to its default value. To reset the @@ -24289,8 +39218,6 @@ def reset_instance_attribute( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ResetInstanceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24300,20 +39227,40 @@ def reset_instance_attribute( Returns: An instance of `ResetInstanceAttributeOutput`. """ - return self._invoke(input, _models.RESET_INSTANCE_ATTRIBUTE, [], plugins) + def reset_instance_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetInstanceAttributeOutput: + return self._invoke( + self._select_input(_models.RESET_INSTANCE_ATTRIBUTE, args, kwargs), + _models.RESET_INSTANCE_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def reset_network_interface_attribute( + self, + request: _models.ResetNetworkInterfaceAttributeInput + | _models.ResetNetworkInterfaceAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetNetworkInterfaceAttributeOutput: ... + + @_overload def reset_network_interface_attribute( self, - input: ResetNetworkInterfaceAttributeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetNetworkInterfaceAttributeInputDict], ) -> ResetNetworkInterfaceAttributeOutput: """ Resets a network interface attribute. You can specify only one attribute at a time. Args: - input: - An instance of `ResetNetworkInterfaceAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24323,12 +39270,34 @@ def reset_network_interface_attribute( Returns: An instance of `ResetNetworkInterfaceAttributeOutput`. """ + + def reset_network_interface_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetNetworkInterfaceAttributeOutput: return self._invoke( - input, _models.RESET_NETWORK_INTERFACE_ATTRIBUTE, [], plugins + self._select_input(_models.RESET_NETWORK_INTERFACE_ATTRIBUTE, args, kwargs), + _models.RESET_NETWORK_INTERFACE_ATTRIBUTE, + [], + plugins, ) + @_overload + def reset_snapshot_attribute( + self, + request: _models.ResetSnapshotAttributeInput + | _models.ResetSnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetSnapshotAttributeOutput: ... + + @_overload def reset_snapshot_attribute( - self, input: ResetSnapshotAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetSnapshotAttributeInputDict], ) -> ResetSnapshotAttributeOutput: """ Resets permission settings for the specified snapshot. @@ -24338,8 +39307,6 @@ def reset_snapshot_attribute( in the *Amazon EBS User Guide*. Args: - input: - An instance of `ResetSnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24349,10 +39316,34 @@ def reset_snapshot_attribute( Returns: An instance of `ResetSnapshotAttributeOutput`. """ - return self._invoke(input, _models.RESET_SNAPSHOT_ATTRIBUTE, [], plugins) + def reset_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetSnapshotAttributeOutput: + return self._invoke( + self._select_input(_models.RESET_SNAPSHOT_ATTRIBUTE, args, kwargs), + _models.RESET_SNAPSHOT_ATTRIBUTE, + [], + plugins, + ) + + @_overload + def restore_address_to_classic( + self, + request: _models.RestoreAddressToClassicInput + | _models.RestoreAddressToClassicInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreAddressToClassicOutput: ... + + @_overload def restore_address_to_classic( - self, input: RestoreAddressToClassicInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreAddressToClassicInputDict], ) -> RestoreAddressToClassicOutput: """ Note: @@ -24364,8 +39355,6 @@ def restore_address_to_classic( address must not be associated with an instance or network interface. Args: - input: - An instance of `RestoreAddressToClassicInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24375,12 +39364,34 @@ def restore_address_to_classic( Returns: An instance of `RestoreAddressToClassicOutput`. """ - return self._invoke(input, _models.RESTORE_ADDRESS_TO_CLASSIC, [], plugins) + def restore_address_to_classic( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreAddressToClassicOutput: + return self._invoke( + self._select_input(_models.RESTORE_ADDRESS_TO_CLASSIC, args, kwargs), + _models.RESTORE_ADDRESS_TO_CLASSIC, + [], + plugins, + ) + + @_overload def restore_image_from_recycle_bin( self, - input: RestoreImageFromRecycleBinInput, + request: _models.RestoreImageFromRecycleBinInput + | _models.RestoreImageFromRecycleBinInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RestoreImageFromRecycleBinOutput: ... + + @_overload + def restore_image_from_recycle_bin( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreImageFromRecycleBinInputDict], ) -> RestoreImageFromRecycleBinOutput: """ Restores an AMI from the Recycle Bin. For more information, see [Recover @@ -24389,8 +39400,6 @@ def restore_image_from_recycle_bin( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `RestoreImageFromRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24400,20 +39409,40 @@ def restore_image_from_recycle_bin( Returns: An instance of `RestoreImageFromRecycleBinOutput`. """ - return self._invoke(input, _models.RESTORE_IMAGE_FROM_RECYCLE_BIN, [], plugins) + def restore_image_from_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreImageFromRecycleBinOutput: + return self._invoke( + self._select_input(_models.RESTORE_IMAGE_FROM_RECYCLE_BIN, args, kwargs), + _models.RESTORE_IMAGE_FROM_RECYCLE_BIN, + [], + plugins, + ) + + @_overload + def restore_managed_prefix_list_version( + self, + request: _models.RestoreManagedPrefixListVersionInput + | _models.RestoreManagedPrefixListVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreManagedPrefixListVersionOutput: ... + + @_overload def restore_managed_prefix_list_version( self, - input: RestoreManagedPrefixListVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreManagedPrefixListVersionInputDict], ) -> RestoreManagedPrefixListVersionOutput: """ Restores the entries from a previous version of a managed prefix list to a new version of the prefix list. Args: - input: - An instance of `RestoreManagedPrefixListVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24423,14 +39452,36 @@ def restore_managed_prefix_list_version( Returns: An instance of `RestoreManagedPrefixListVersionOutput`. """ + + def restore_managed_prefix_list_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreManagedPrefixListVersionOutput: return self._invoke( - input, _models.RESTORE_MANAGED_PREFIX_LIST_VERSION, [], plugins + self._select_input( + _models.RESTORE_MANAGED_PREFIX_LIST_VERSION, args, kwargs + ), + _models.RESTORE_MANAGED_PREFIX_LIST_VERSION, + [], + plugins, ) + @_overload + def restore_snapshot_from_recycle_bin( + self, + request: _models.RestoreSnapshotFromRecycleBinInput + | _models.RestoreSnapshotFromRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreSnapshotFromRecycleBinOutput: ... + + @_overload def restore_snapshot_from_recycle_bin( self, - input: RestoreSnapshotFromRecycleBinInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreSnapshotFromRecycleBinInputDict], ) -> RestoreSnapshotFromRecycleBinOutput: """ Restores a snapshot from the Recycle Bin. For more information, see @@ -24439,8 +39490,6 @@ def restore_snapshot_from_recycle_bin( in the *Amazon EBS User Guide*. Args: - input: - An instance of `RestoreSnapshotFromRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24450,12 +39499,34 @@ def restore_snapshot_from_recycle_bin( Returns: An instance of `RestoreSnapshotFromRecycleBinOutput`. """ + + def restore_snapshot_from_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreSnapshotFromRecycleBinOutput: return self._invoke( - input, _models.RESTORE_SNAPSHOT_FROM_RECYCLE_BIN, [], plugins + self._select_input(_models.RESTORE_SNAPSHOT_FROM_RECYCLE_BIN, args, kwargs), + _models.RESTORE_SNAPSHOT_FROM_RECYCLE_BIN, + [], + plugins, ) + @_overload + def restore_snapshot_tier( + self, + request: _models.RestoreSnapshotTierInput + | _models.RestoreSnapshotTierInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreSnapshotTierOutput: ... + + @_overload def restore_snapshot_tier( - self, input: RestoreSnapshotTierInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreSnapshotTierInputDict], ) -> RestoreSnapshotTierOutput: """ Restores an archived Amazon EBS snapshot for use temporarily or @@ -24470,8 +39541,6 @@ def restore_snapshot_tier( in the *Amazon EBS User Guide*. Args: - input: - An instance of `RestoreSnapshotTierInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24481,12 +39550,34 @@ def restore_snapshot_tier( Returns: An instance of `RestoreSnapshotTierOutput`. """ - return self._invoke(input, _models.RESTORE_SNAPSHOT_TIER, [], plugins) + def restore_snapshot_tier( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreSnapshotTierOutput: + return self._invoke( + self._select_input(_models.RESTORE_SNAPSHOT_TIER, args, kwargs), + _models.RESTORE_SNAPSHOT_TIER, + [], + plugins, + ) + + @_overload + def restore_volume_from_recycle_bin( + self, + request: _models.RestoreVolumeFromRecycleBinInput + | _models.RestoreVolumeFromRecycleBinInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreVolumeFromRecycleBinOutput: ... + + @_overload def restore_volume_from_recycle_bin( self, - input: RestoreVolumeFromRecycleBinInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreVolumeFromRecycleBinInputDict], ) -> RestoreVolumeFromRecycleBinOutput: """ Restores a volume from the Recycle Bin. For more information, see @@ -24495,8 +39586,6 @@ def restore_volume_from_recycle_bin( in the *Amazon EBS User Guide*. Args: - input: - An instance of `RestoreVolumeFromRecycleBinInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24506,17 +39595,39 @@ def restore_volume_from_recycle_bin( Returns: An instance of `RestoreVolumeFromRecycleBinOutput`. """ - return self._invoke(input, _models.RESTORE_VOLUME_FROM_RECYCLE_BIN, [], plugins) + def restore_volume_from_recycle_bin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreVolumeFromRecycleBinOutput: + return self._invoke( + self._select_input(_models.RESTORE_VOLUME_FROM_RECYCLE_BIN, args, kwargs), + _models.RESTORE_VOLUME_FROM_RECYCLE_BIN, + [], + plugins, + ) + + @_overload + def revoke_client_vpn_ingress( + self, + request: _models.RevokeClientVpnIngressInput + | _models.RevokeClientVpnIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeClientVpnIngressOutput: ... + + @_overload def revoke_client_vpn_ingress( - self, input: RevokeClientVpnIngressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeClientVpnIngressInputDict], ) -> RevokeClientVpnIngressOutput: """ Removes an ingress authorization rule from a Client VPN endpoint. Args: - input: - An instance of `RevokeClientVpnIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24526,10 +39637,34 @@ def revoke_client_vpn_ingress( Returns: An instance of `RevokeClientVpnIngressOutput`. """ - return self._invoke(input, _models.REVOKE_CLIENT_VPN_INGRESS, [], plugins) + def revoke_client_vpn_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeClientVpnIngressOutput: + return self._invoke( + self._select_input(_models.REVOKE_CLIENT_VPN_INGRESS, args, kwargs), + _models.REVOKE_CLIENT_VPN_INGRESS, + [], + plugins, + ) + + @_overload + def revoke_security_group_egress( + self, + request: _models.RevokeSecurityGroupEgressInput + | _models.RevokeSecurityGroupEgressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeSecurityGroupEgressOutput: ... + + @_overload def revoke_security_group_egress( - self, input: RevokeSecurityGroupEgressInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeSecurityGroupEgressInputDict], ) -> RevokeSecurityGroupEgressOutput: """ Removes the specified outbound (egress) rules from the specified @@ -24556,8 +39691,6 @@ def revoke_security_group_egress( quickly as possible. However, a small delay might occur. Args: - input: - An instance of `RevokeSecurityGroupEgressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24567,12 +39700,34 @@ def revoke_security_group_egress( Returns: An instance of `RevokeSecurityGroupEgressOutput`. """ - return self._invoke(input, _models.REVOKE_SECURITY_GROUP_EGRESS, [], plugins) + def revoke_security_group_egress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeSecurityGroupEgressOutput: + return self._invoke( + self._select_input(_models.REVOKE_SECURITY_GROUP_EGRESS, args, kwargs), + _models.REVOKE_SECURITY_GROUP_EGRESS, + [], + plugins, + ) + + @_overload + def revoke_security_group_ingress( + self, + request: _models.RevokeSecurityGroupIngressInput + | _models.RevokeSecurityGroupIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeSecurityGroupIngressOutput: ... + + @_overload def revoke_security_group_ingress( self, - input: RevokeSecurityGroupIngressInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeSecurityGroupIngressInputDict], ) -> RevokeSecurityGroupIngressOutput: """ Removes the specified inbound (ingress) rules from a security group. @@ -24602,8 +39757,6 @@ def revoke_security_group_ingress( quickly as possible. However, a small delay might occur. Args: - input: - An instance of `RevokeSecurityGroupIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24613,10 +39766,33 @@ def revoke_security_group_ingress( Returns: An instance of `RevokeSecurityGroupIngressOutput`. """ - return self._invoke(input, _models.REVOKE_SECURITY_GROUP_INGRESS, [], plugins) + def revoke_security_group_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeSecurityGroupIngressOutput: + return self._invoke( + self._select_input(_models.REVOKE_SECURITY_GROUP_INGRESS, args, kwargs), + _models.REVOKE_SECURITY_GROUP_INGRESS, + [], + plugins, + ) + + @_overload + def run_instances( + self, + request: _models.RunInstancesInput | _models.RunInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RunInstancesOutput: ... + + @_overload def run_instances( - self, input: RunInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RunInstancesInputDict], ) -> RunInstancesOutput: """ Launches the specified number of instances using an AMI for which you @@ -24676,8 +39852,6 @@ def run_instances( instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html). Args: - input: - An instance of `RunInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24687,10 +39861,34 @@ def run_instances( Returns: An instance of `RunInstancesOutput`. """ - return self._invoke(input, _models.RUN_INSTANCES, [], plugins) + def run_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RunInstancesOutput: + return self._invoke( + self._select_input(_models.RUN_INSTANCES, args, kwargs), + _models.RUN_INSTANCES, + [], + plugins, + ) + + @_overload + def run_scheduled_instances( + self, + request: _models.RunScheduledInstancesInput + | _models.RunScheduledInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RunScheduledInstancesOutput: ... + + @_overload def run_scheduled_instances( - self, input: RunScheduledInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RunScheduledInstancesInputDict], ) -> RunScheduledInstancesOutput: """ Launches the specified Scheduled Instances. @@ -24704,28 +39902,48 @@ def run_scheduled_instances( scheduled time period ends, you can launch it again after a few minutes. Args: - input: - An instance of `RunScheduledInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `RunScheduledInstancesOutput`. - """ - return self._invoke(input, _models.RUN_SCHEDULED_INSTANCES, [], plugins) + Returns: + An instance of `RunScheduledInstancesOutput`. + """ + + def run_scheduled_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RunScheduledInstancesOutput: + return self._invoke( + self._select_input(_models.RUN_SCHEDULED_INSTANCES, args, kwargs), + _models.RUN_SCHEDULED_INSTANCES, + [], + plugins, + ) + + @_overload + def search_local_gateway_routes( + self, + request: _models.SearchLocalGatewayRoutesInput + | _models.SearchLocalGatewayRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchLocalGatewayRoutesOutput: ... + @_overload def search_local_gateway_routes( - self, input: SearchLocalGatewayRoutesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchLocalGatewayRoutesInputDict], ) -> SearchLocalGatewayRoutesOutput: """ Searches for routes in the specified local gateway route table. Args: - input: - An instance of `SearchLocalGatewayRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24735,20 +39953,40 @@ def search_local_gateway_routes( Returns: An instance of `SearchLocalGatewayRoutesOutput`. """ - return self._invoke(input, _models.SEARCH_LOCAL_GATEWAY_ROUTES, [], plugins) + def search_local_gateway_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchLocalGatewayRoutesOutput: + return self._invoke( + self._select_input(_models.SEARCH_LOCAL_GATEWAY_ROUTES, args, kwargs), + _models.SEARCH_LOCAL_GATEWAY_ROUTES, + [], + plugins, + ) + + @_overload + def search_transit_gateway_multicast_groups( + self, + request: _models.SearchTransitGatewayMulticastGroupsInput + | _models.SearchTransitGatewayMulticastGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchTransitGatewayMulticastGroupsOutput: ... + + @_overload def search_transit_gateway_multicast_groups( self, - input: SearchTransitGatewayMulticastGroupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchTransitGatewayMulticastGroupsInputDict], ) -> SearchTransitGatewayMulticastGroupsOutput: """ Searches one or more transit gateway multicast groups and returns the group membership information. Args: - input: - An instance of `SearchTransitGatewayMulticastGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24758,21 +39996,41 @@ def search_transit_gateway_multicast_groups( Returns: An instance of `SearchTransitGatewayMulticastGroupsOutput`. """ + + def search_transit_gateway_multicast_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchTransitGatewayMulticastGroupsOutput: return self._invoke( - input, _models.SEARCH_TRANSIT_GATEWAY_MULTICAST_GROUPS, [], plugins + self._select_input( + _models.SEARCH_TRANSIT_GATEWAY_MULTICAST_GROUPS, args, kwargs + ), + _models.SEARCH_TRANSIT_GATEWAY_MULTICAST_GROUPS, + [], + plugins, ) + @_overload def search_transit_gateway_routes( self, - input: SearchTransitGatewayRoutesInput, + request: _models.SearchTransitGatewayRoutesInput + | _models.SearchTransitGatewayRoutesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> SearchTransitGatewayRoutesOutput: ... + + @_overload + def search_transit_gateway_routes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchTransitGatewayRoutesInputDict], ) -> SearchTransitGatewayRoutesOutput: """ Searches for routes in the specified transit gateway route table. Args: - input: - An instance of `SearchTransitGatewayRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24782,10 +40040,34 @@ def search_transit_gateway_routes( Returns: An instance of `SearchTransitGatewayRoutesOutput`. """ - return self._invoke(input, _models.SEARCH_TRANSIT_GATEWAY_ROUTES, [], plugins) + def search_transit_gateway_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchTransitGatewayRoutesOutput: + return self._invoke( + self._select_input(_models.SEARCH_TRANSIT_GATEWAY_ROUTES, args, kwargs), + _models.SEARCH_TRANSIT_GATEWAY_ROUTES, + [], + plugins, + ) + + @_overload + def send_diagnostic_interrupt( + self, + request: _models.SendDiagnosticInterruptInput + | _models.SendDiagnosticInterruptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendDiagnosticInterruptOutput: ... + + @_overload def send_diagnostic_interrupt( - self, input: SendDiagnosticInterruptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDiagnosticInterruptInputDict], ) -> SendDiagnosticInterruptOutput: """ Sends a diagnostic interrupt to the specified Amazon EC2 instance to @@ -24809,8 +40091,6 @@ def send_diagnostic_interrupt( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `SendDiagnosticInterruptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24820,12 +40100,34 @@ def send_diagnostic_interrupt( Returns: An instance of `SendDiagnosticInterruptOutput`. """ - return self._invoke(input, _models.SEND_DIAGNOSTIC_INTERRUPT, [], plugins) + def send_diagnostic_interrupt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDiagnosticInterruptOutput: + return self._invoke( + self._select_input(_models.SEND_DIAGNOSTIC_INTERRUPT, args, kwargs), + _models.SEND_DIAGNOSTIC_INTERRUPT, + [], + plugins, + ) + + @_overload def start_declarative_policies_report( self, - input: StartDeclarativePoliciesReportInput, + request: _models.StartDeclarativePoliciesReportInput + | _models.StartDeclarativePoliciesReportInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> StartDeclarativePoliciesReportOutput: ... + + @_overload + def start_declarative_policies_report( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDeclarativePoliciesReportInputDict], ) -> StartDeclarativePoliciesReportOutput: """ Generates an account status report. The report is generated @@ -24877,8 +40179,6 @@ def start_declarative_policies_report( in the *Amazon Web Services Organizations User Guide*. Args: - input: - An instance of `StartDeclarativePoliciesReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24888,12 +40188,33 @@ def start_declarative_policies_report( Returns: An instance of `StartDeclarativePoliciesReportOutput`. """ + + def start_declarative_policies_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDeclarativePoliciesReportOutput: return self._invoke( - input, _models.START_DECLARATIVE_POLICIES_REPORT, [], plugins + self._select_input(_models.START_DECLARATIVE_POLICIES_REPORT, args, kwargs), + _models.START_DECLARATIVE_POLICIES_REPORT, + [], + plugins, ) + @_overload + def start_instances( + self, + request: _models.StartInstancesInput | _models.StartInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartInstancesOutput: ... + + @_overload def start_instances( - self, input: StartInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartInstancesInputDict], ) -> StartInstancesOutput: """ Starts an Amazon EBS-backed instance that you've previously stopped. @@ -24925,8 +40246,6 @@ def start_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `StartInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24936,19 +40255,39 @@ def start_instances( Returns: An instance of `StartInstancesOutput`. """ - return self._invoke(input, _models.START_INSTANCES, [], plugins) + def start_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartInstancesOutput: + return self._invoke( + self._select_input(_models.START_INSTANCES, args, kwargs), + _models.START_INSTANCES, + [], + plugins, + ) + + @_overload + def start_network_insights_access_scope_analysis( + self, + request: _models.StartNetworkInsightsAccessScopeAnalysisInput + | _models.StartNetworkInsightsAccessScopeAnalysisInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartNetworkInsightsAccessScopeAnalysisOutput: ... + + @_overload def start_network_insights_access_scope_analysis( self, - input: StartNetworkInsightsAccessScopeAnalysisInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartNetworkInsightsAccessScopeAnalysisInputDict], ) -> StartNetworkInsightsAccessScopeAnalysisOutput: """ Starts analyzing the specified Network Access Scope. Args: - input: - An instance of `StartNetworkInsightsAccessScopeAnalysisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24958,22 +40297,42 @@ def start_network_insights_access_scope_analysis( Returns: An instance of `StartNetworkInsightsAccessScopeAnalysisOutput`. """ + + def start_network_insights_access_scope_analysis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartNetworkInsightsAccessScopeAnalysisOutput: return self._invoke( - input, _models.START_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, [], plugins + self._select_input( + _models.START_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, args, kwargs + ), + _models.START_NETWORK_INSIGHTS_ACCESS_SCOPE_ANALYSIS, + [], + plugins, ) + @_overload + def start_network_insights_analysis( + self, + request: _models.StartNetworkInsightsAnalysisInput + | _models.StartNetworkInsightsAnalysisInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartNetworkInsightsAnalysisOutput: ... + + @_overload def start_network_insights_analysis( self, - input: StartNetworkInsightsAnalysisInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartNetworkInsightsAnalysisInputDict], ) -> StartNetworkInsightsAnalysisOutput: """ Starts analyzing the specified path. If the path is reachable, the operation returns the shortest feasible path. Args: - input: - An instance of `StartNetworkInsightsAnalysisInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -24983,12 +40342,36 @@ def start_network_insights_analysis( Returns: An instance of `StartNetworkInsightsAnalysisOutput`. """ - return self._invoke(input, _models.START_NETWORK_INSIGHTS_ANALYSIS, [], plugins) + def start_network_insights_analysis( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartNetworkInsightsAnalysisOutput: + return self._invoke( + self._select_input(_models.START_NETWORK_INSIGHTS_ANALYSIS, args, kwargs), + _models.START_NETWORK_INSIGHTS_ANALYSIS, + [], + plugins, + ) + + @_overload + def start_vpc_endpoint_service_private_dns_verification( + self, + request: _models.StartVpcEndpointServicePrivateDnsVerificationInput + | _models.StartVpcEndpointServicePrivateDnsVerificationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartVpcEndpointServicePrivateDnsVerificationOutput: ... + + @_overload def start_vpc_endpoint_service_private_dns_verification( self, - input: StartVpcEndpointServicePrivateDnsVerificationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.StartVpcEndpointServicePrivateDnsVerificationInputDict + ], ) -> StartVpcEndpointServicePrivateDnsVerificationOutput: """ Initiates the verification process to prove that the service provider @@ -25001,8 +40384,6 @@ def start_vpc_endpoint_service_private_dns_verification( the DNS server. Args: - input: - An instance of `StartVpcEndpointServicePrivateDnsVerificationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25012,15 +40393,37 @@ def start_vpc_endpoint_service_private_dns_verification( Returns: An instance of `StartVpcEndpointServicePrivateDnsVerificationOutput`. """ + + def start_vpc_endpoint_service_private_dns_verification( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartVpcEndpointServicePrivateDnsVerificationOutput: return self._invoke( - input, + self._select_input( + _models.START_VPC_ENDPOINT_SERVICE_PRIVATE_DNS_VERIFICATION, + args, + kwargs, + ), _models.START_VPC_ENDPOINT_SERVICE_PRIVATE_DNS_VERIFICATION, [], plugins, ) + @_overload + def stop_instances( + self, + request: _models.StopInstancesInput | _models.StopInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopInstancesOutput: ... + + @_overload def stop_instances( - self, input: StopInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopInstancesInputDict], ) -> StopInstancesOutput: """ Stops an Amazon EBS-backed instance. You can restart your instance at @@ -25072,8 +40475,6 @@ def stop_instances( You can't stop or hibernate instance store-backed instances. Args: - input: - An instance of `StopInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25083,12 +40484,34 @@ def stop_instances( Returns: An instance of `StopInstancesOutput`. """ - return self._invoke(input, _models.STOP_INSTANCES, [], plugins) + def stop_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopInstancesOutput: + return self._invoke( + self._select_input(_models.STOP_INSTANCES, args, kwargs), + _models.STOP_INSTANCES, + [], + plugins, + ) + + @_overload + def terminate_client_vpn_connections( + self, + request: _models.TerminateClientVpnConnectionsInput + | _models.TerminateClientVpnConnectionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TerminateClientVpnConnectionsOutput: ... + + @_overload def terminate_client_vpn_connections( self, - input: TerminateClientVpnConnectionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TerminateClientVpnConnectionsInputDict], ) -> TerminateClientVpnConnectionsOutput: """ Terminates active Client VPN endpoint connections. This action can be @@ -25096,8 +40519,6 @@ def terminate_client_vpn_connections( connections established by a specific user. Args: - input: - An instance of `TerminateClientVpnConnectionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25107,12 +40528,33 @@ def terminate_client_vpn_connections( Returns: An instance of `TerminateClientVpnConnectionsOutput`. """ + + def terminate_client_vpn_connections( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TerminateClientVpnConnectionsOutput: return self._invoke( - input, _models.TERMINATE_CLIENT_VPN_CONNECTIONS, [], plugins + self._select_input(_models.TERMINATE_CLIENT_VPN_CONNECTIONS, args, kwargs), + _models.TERMINATE_CLIENT_VPN_CONNECTIONS, + [], + plugins, ) + @_overload + def terminate_instances( + self, + request: _models.TerminateInstancesInput | _models.TerminateInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TerminateInstancesOutput: ... + + @_overload def terminate_instances( - self, input: TerminateInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TerminateInstancesInputDict], ) -> TerminateInstancesOutput: """ Terminates (deletes) the specified instances. This operation is @@ -25203,8 +40645,6 @@ def terminate_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `TerminateInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25214,18 +40654,40 @@ def terminate_instances( Returns: An instance of `TerminateInstancesOutput`. """ - return self._invoke(input, _models.TERMINATE_INSTANCES, [], plugins) + def terminate_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TerminateInstancesOutput: + return self._invoke( + self._select_input(_models.TERMINATE_INSTANCES, args, kwargs), + _models.TERMINATE_INSTANCES, + [], + plugins, + ) + + @_overload + def unassign_ipv6_addresses( + self, + request: _models.UnassignIpv6AddressesInput + | _models.UnassignIpv6AddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnassignIpv6AddressesOutput: ... + + @_overload def unassign_ipv6_addresses( - self, input: UnassignIpv6AddressesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnassignIpv6AddressesInputDict], ) -> UnassignIpv6AddressesOutput: """ Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network interface. Args: - input: - An instance of `UnassignIpv6AddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25235,20 +40697,40 @@ def unassign_ipv6_addresses( Returns: An instance of `UnassignIpv6AddressesOutput`. """ - return self._invoke(input, _models.UNASSIGN_IPV6_ADDRESSES, [], plugins) + def unassign_ipv6_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnassignIpv6AddressesOutput: + return self._invoke( + self._select_input(_models.UNASSIGN_IPV6_ADDRESSES, args, kwargs), + _models.UNASSIGN_IPV6_ADDRESSES, + [], + plugins, + ) + + @_overload + def unassign_private_ip_addresses( + self, + request: _models.UnassignPrivateIpAddressesInput + | _models.UnassignPrivateIpAddressesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnassignPrivateIpAddressesOutput: ... + + @_overload def unassign_private_ip_addresses( self, - input: UnassignPrivateIpAddressesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnassignPrivateIpAddressesInputDict], ) -> UnassignPrivateIpAddressesOutput: """ Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation prefixes from a network interface. Args: - input: - An instance of `UnassignPrivateIpAddressesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25258,12 +40740,34 @@ def unassign_private_ip_addresses( Returns: An instance of `UnassignPrivateIpAddressesOutput`. """ - return self._invoke(input, _models.UNASSIGN_PRIVATE_IP_ADDRESSES, [], plugins) + def unassign_private_ip_addresses( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnassignPrivateIpAddressesOutput: + return self._invoke( + self._select_input(_models.UNASSIGN_PRIVATE_IP_ADDRESSES, args, kwargs), + _models.UNASSIGN_PRIVATE_IP_ADDRESSES, + [], + plugins, + ) + + @_overload + def unassign_private_nat_gateway_address( + self, + request: _models.UnassignPrivateNatGatewayAddressInput + | _models.UnassignPrivateNatGatewayAddressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnassignPrivateNatGatewayAddressOutput: ... + + @_overload def unassign_private_nat_gateway_address( self, - input: UnassignPrivateNatGatewayAddressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnassignPrivateNatGatewayAddressInputDict], ) -> UnassignPrivateNatGatewayAddressOutput: """ Unassigns secondary private IPv4 addresses from a private NAT gateway. @@ -25284,8 +40788,6 @@ def unassign_private_nat_gateway_address( addresses are released. Args: - input: - An instance of `UnassignPrivateNatGatewayAddressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25295,12 +40797,35 @@ def unassign_private_nat_gateway_address( Returns: An instance of `UnassignPrivateNatGatewayAddressOutput`. """ + + def unassign_private_nat_gateway_address( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnassignPrivateNatGatewayAddressOutput: return self._invoke( - input, _models.UNASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, [], plugins + self._select_input( + _models.UNASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, args, kwargs + ), + _models.UNASSIGN_PRIVATE_NAT_GATEWAY_ADDRESS, + [], + plugins, ) + @_overload + def unlock_snapshot( + self, + request: _models.UnlockSnapshotInput | _models.UnlockSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnlockSnapshotOutput: ... + + @_overload def unlock_snapshot( - self, input: UnlockSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnlockSnapshotInputDict], ) -> UnlockSnapshotOutput: """ Unlocks a snapshot that is locked in governance mode or that is locked @@ -25309,8 +40834,6 @@ def unlock_snapshot( cooling-off period has expired. Args: - input: - An instance of `UnlockSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25320,10 +40843,33 @@ def unlock_snapshot( Returns: An instance of `UnlockSnapshotOutput`. """ - return self._invoke(input, _models.UNLOCK_SNAPSHOT, [], plugins) + def unlock_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnlockSnapshotOutput: + return self._invoke( + self._select_input(_models.UNLOCK_SNAPSHOT, args, kwargs), + _models.UNLOCK_SNAPSHOT, + [], + plugins, + ) + + @_overload + def unmonitor_instances( + self, + request: _models.UnmonitorInstancesInput | _models.UnmonitorInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnmonitorInstancesOutput: ... + + @_overload def unmonitor_instances( - self, input: UnmonitorInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnmonitorInstancesInputDict], ) -> UnmonitorInstancesOutput: """ Disables detailed monitoring for a running instance. For more @@ -25332,8 +40878,6 @@ def unmonitor_instances( in the *Amazon EC2 User Guide*. Args: - input: - An instance of `UnmonitorInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25343,12 +40887,34 @@ def unmonitor_instances( Returns: An instance of `UnmonitorInstancesOutput`. """ - return self._invoke(input, _models.UNMONITOR_INSTANCES, [], plugins) + def unmonitor_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnmonitorInstancesOutput: + return self._invoke( + self._select_input(_models.UNMONITOR_INSTANCES, args, kwargs), + _models.UNMONITOR_INSTANCES, + [], + plugins, + ) + + @_overload + def update_capacity_manager_monitored_tag_keys( + self, + request: _models.UpdateCapacityManagerMonitoredTagKeysInput + | _models.UpdateCapacityManagerMonitoredTagKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCapacityManagerMonitoredTagKeysOutput: ... + + @_overload def update_capacity_manager_monitored_tag_keys( self, - input: UpdateCapacityManagerMonitoredTagKeysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityManagerMonitoredTagKeysInputDict], ) -> UpdateCapacityManagerMonitoredTagKeysOutput: """ Activates or deactivates tag keys for monitoring by EC2 Capacity @@ -25356,8 +40922,6 @@ def update_capacity_manager_monitored_tag_keys( metric data, enabling you to group and filter metrics by tag values. Args: - input: - An instance of `UpdateCapacityManagerMonitoredTagKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25367,14 +40931,36 @@ def update_capacity_manager_monitored_tag_keys( Returns: An instance of `UpdateCapacityManagerMonitoredTagKeysOutput`. """ + + def update_capacity_manager_monitored_tag_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityManagerMonitoredTagKeysOutput: return self._invoke( - input, _models.UPDATE_CAPACITY_MANAGER_MONITORED_TAG_KEYS, [], plugins + self._select_input( + _models.UPDATE_CAPACITY_MANAGER_MONITORED_TAG_KEYS, args, kwargs + ), + _models.UPDATE_CAPACITY_MANAGER_MONITORED_TAG_KEYS, + [], + plugins, ) + @_overload def update_capacity_manager_organizations_access( self, - input: UpdateCapacityManagerOrganizationsAccessInput, + request: _models.UpdateCapacityManagerOrganizationsAccessInput + | _models.UpdateCapacityManagerOrganizationsAccessInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateCapacityManagerOrganizationsAccessOutput: ... + + @_overload + def update_capacity_manager_organizations_access( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityManagerOrganizationsAccessInputDict], ) -> UpdateCapacityManagerOrganizationsAccessOutput: """ Updates the Organizations access setting for EC2 Capacity Manager. This @@ -25383,8 +40969,6 @@ def update_capacity_manager_organizations_access( account. Args: - input: - An instance of `UpdateCapacityManagerOrganizationsAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25394,14 +40978,38 @@ def update_capacity_manager_organizations_access( Returns: An instance of `UpdateCapacityManagerOrganizationsAccessOutput`. """ + + def update_capacity_manager_organizations_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityManagerOrganizationsAccessOutput: return self._invoke( - input, _models.UPDATE_CAPACITY_MANAGER_ORGANIZATIONS_ACCESS, [], plugins + self._select_input( + _models.UPDATE_CAPACITY_MANAGER_ORGANIZATIONS_ACCESS, args, kwargs + ), + _models.UPDATE_CAPACITY_MANAGER_ORGANIZATIONS_ACCESS, + [], + plugins, ) + @_overload + def update_interruptible_capacity_reservation_allocation( + self, + request: _models.UpdateInterruptibleCapacityReservationAllocationInput + | _models.UpdateInterruptibleCapacityReservationAllocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateInterruptibleCapacityReservationAllocationOutput: ... + + @_overload def update_interruptible_capacity_reservation_allocation( self, - input: UpdateInterruptibleCapacityReservationAllocationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.UpdateInterruptibleCapacityReservationAllocationInputDict + ], ) -> UpdateInterruptibleCapacityReservationAllocationOutput: """ Modifies the number of instances allocated to an interruptible @@ -25409,8 +41017,6 @@ def update_interruptible_capacity_reservation_allocation( your source Capacity Reservation. Args: - input: - An instance of `UpdateInterruptibleCapacityReservationAllocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25420,17 +41026,38 @@ def update_interruptible_capacity_reservation_allocation( Returns: An instance of `UpdateInterruptibleCapacityReservationAllocationOutput`. """ + + def update_interruptible_capacity_reservation_allocation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateInterruptibleCapacityReservationAllocationOutput: return self._invoke( - input, + self._select_input( + _models.UPDATE_INTERRUPTIBLE_CAPACITY_RESERVATION_ALLOCATION, + args, + kwargs, + ), _models.UPDATE_INTERRUPTIBLE_CAPACITY_RESERVATION_ALLOCATION, [], plugins, ) + @_overload def update_security_group_rule_descriptions_egress( self, - input: UpdateSecurityGroupRuleDescriptionsEgressInput | None = None, + request: _models.UpdateSecurityGroupRuleDescriptionsEgressInput + | _models.UpdateSecurityGroupRuleDescriptionsEgressInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateSecurityGroupRuleDescriptionsEgressOutput: ... + + @_overload + def update_security_group_rule_descriptions_egress( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSecurityGroupRuleDescriptionsEgressInputDict], ) -> UpdateSecurityGroupRuleDescriptionsEgressOutput: """ Updates the description of an egress (outbound) security group rule. You @@ -25439,8 +41066,6 @@ def update_security_group_rule_descriptions_egress( group rule by omitting the description parameter in the request. Args: - input: - An instance of `UpdateSecurityGroupRuleDescriptionsEgressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25450,14 +41075,36 @@ def update_security_group_rule_descriptions_egress( Returns: An instance of `UpdateSecurityGroupRuleDescriptionsEgressOutput`. """ + + def update_security_group_rule_descriptions_egress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSecurityGroupRuleDescriptionsEgressOutput: return self._invoke( - input, _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_EGRESS, [], plugins + self._select_input( + _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_EGRESS, args, kwargs + ), + _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_EGRESS, + [], + plugins, ) + @_overload + def update_security_group_rule_descriptions_ingress( + self, + request: _models.UpdateSecurityGroupRuleDescriptionsIngressInput + | _models.UpdateSecurityGroupRuleDescriptionsIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSecurityGroupRuleDescriptionsIngressOutput: ... + + @_overload def update_security_group_rule_descriptions_ingress( self, - input: UpdateSecurityGroupRuleDescriptionsIngressInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSecurityGroupRuleDescriptionsIngressInputDict], ) -> UpdateSecurityGroupRuleDescriptionsIngressOutput: """ Updates the description of an ingress (inbound) security group rule. You @@ -25466,8 +41113,6 @@ def update_security_group_rule_descriptions_ingress( group rule by omitting the description parameter in the request. Args: - input: - An instance of `UpdateSecurityGroupRuleDescriptionsIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25477,14 +41122,36 @@ def update_security_group_rule_descriptions_ingress( Returns: An instance of `UpdateSecurityGroupRuleDescriptionsIngressOutput`. """ + + def update_security_group_rule_descriptions_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSecurityGroupRuleDescriptionsIngressOutput: return self._invoke( - input, _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_INGRESS, [], plugins + self._select_input( + _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_INGRESS, args, kwargs + ), + _models.UPDATE_SECURITY_GROUP_RULE_DESCRIPTIONS_INGRESS, + [], + plugins, ) + @_overload + def validate_security_group_quotas_for_interface( + self, + request: _models.ValidateSecurityGroupQuotasForInterfaceInput + | _models.ValidateSecurityGroupQuotasForInterfaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ValidateSecurityGroupQuotasForInterfaceOutput: ... + + @_overload def validate_security_group_quotas_for_interface( self, - input: ValidateSecurityGroupQuotasForInterfaceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ValidateSecurityGroupQuotasForInterfaceInputDict], ) -> ValidateSecurityGroupQuotasForInterfaceOutput: """ Validates whether the specified security groups can be associated with a @@ -25498,8 +41165,6 @@ def validate_security_group_quotas_for_interface( in the *Amazon VPC User Guide*. Args: - input: - An instance of `ValidateSecurityGroupQuotasForInterfaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25509,12 +41174,35 @@ def validate_security_group_quotas_for_interface( Returns: An instance of `ValidateSecurityGroupQuotasForInterfaceOutput`. """ + + def validate_security_group_quotas_for_interface( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ValidateSecurityGroupQuotasForInterfaceOutput: return self._invoke( - input, _models.VALIDATE_SECURITY_GROUP_QUOTAS_FOR_INTERFACE, [], plugins + self._select_input( + _models.VALIDATE_SECURITY_GROUP_QUOTAS_FOR_INTERFACE, args, kwargs + ), + _models.VALIDATE_SECURITY_GROUP_QUOTAS_FOR_INTERFACE, + [], + plugins, ) + @_overload + def withdraw_byoip_cidr( + self, + request: _models.WithdrawByoipCidrInput | _models.WithdrawByoipCidrInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> WithdrawByoipCidrOutput: ... + + @_overload def withdraw_byoip_cidr( - self, input: WithdrawByoipCidrInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.WithdrawByoipCidrInputDict], ) -> WithdrawByoipCidrOutput: """ Stops advertising an address range that is provisioned as an address @@ -25527,8 +41215,6 @@ def withdraw_byoip_cidr( stops routing to Amazon Web Services because of BGP propagation delays. Args: - input: - An instance of `WithdrawByoipCidrInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -25538,7 +41224,16 @@ def withdraw_byoip_cidr( Returns: An instance of `WithdrawByoipCidrOutput`. """ - return self._invoke(input, _models.WITHDRAW_BYOIP_CIDR, [], plugins) + + def withdraw_byoip_cidr( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> WithdrawByoipCidrOutput: + return self._invoke( + self._select_input(_models.WITHDRAW_BYOIP_CIDR, args, kwargs), + _models.WITHDRAW_BYOIP_CIDR, + [], + plugins, + ) def _new_config(self) -> EC2Config: return EC2Config.resolve() diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/models.pyi b/clients/aws-sdk-ec2/src/aws_sdk_ec2/models.pyi index 8bac31cac..cd8ee815f 100644 --- a/clients/aws-sdk-ec2/src/aws_sdk_ec2/models.pyi +++ b/clients/aws-sdk-ec2/src/aws_sdk_ec2/models.pyi @@ -7,35 +7,49 @@ from smithy_core.exceptions import ModeledError from smithy_core.schemas import APIOperation from smithy_core.serializers import ShapeSerializer -from ._private.models_0 import ( +from ._private.models_00 import ( AcceleratorCount as AcceleratorCount, + AcceleratorCountDict as AcceleratorCountDict, AcceleratorCountRequest as AcceleratorCountRequest, + AcceleratorCountRequestDict as AcceleratorCountRequestDict, AcceleratorManufacturer as AcceleratorManufacturer, AcceleratorName as AcceleratorName, AcceleratorTotalMemoryMiB as AcceleratorTotalMemoryMiB, + AcceleratorTotalMemoryMiBDict as AcceleratorTotalMemoryMiBDict, AcceleratorTotalMemoryMiBRequest as AcceleratorTotalMemoryMiBRequest, + AcceleratorTotalMemoryMiBRequestDict as AcceleratorTotalMemoryMiBRequestDict, AcceleratorType as AcceleratorType, AcceptAddressTransferInput as AcceptAddressTransferInput, + AcceptAddressTransferInputDict as AcceptAddressTransferInputDict, AcceptAddressTransferOutput as AcceptAddressTransferOutput, AcceptCapacityReservationBillingOwnershipInput as AcceptCapacityReservationBillingOwnershipInput, + AcceptCapacityReservationBillingOwnershipInputDict as AcceptCapacityReservationBillingOwnershipInputDict, AcceptCapacityReservationBillingOwnershipOutput as AcceptCapacityReservationBillingOwnershipOutput, AcceptReservedInstancesExchangeQuoteInput as AcceptReservedInstancesExchangeQuoteInput, + AcceptReservedInstancesExchangeQuoteInputDict as AcceptReservedInstancesExchangeQuoteInputDict, AcceptReservedInstancesExchangeQuoteOutput as AcceptReservedInstancesExchangeQuoteOutput, AcceptTransitGatewayClientVpnAttachmentInput as AcceptTransitGatewayClientVpnAttachmentInput, + AcceptTransitGatewayClientVpnAttachmentInputDict as AcceptTransitGatewayClientVpnAttachmentInputDict, AcceptTransitGatewayClientVpnAttachmentOutput as AcceptTransitGatewayClientVpnAttachmentOutput, AcceptTransitGatewayMulticastDomainAssociationsInput as AcceptTransitGatewayMulticastDomainAssociationsInput, + AcceptTransitGatewayMulticastDomainAssociationsInputDict as AcceptTransitGatewayMulticastDomainAssociationsInputDict, AcceptTransitGatewayMulticastDomainAssociationsOutput as AcceptTransitGatewayMulticastDomainAssociationsOutput, AcceptTransitGatewayPeeringAttachmentInput as AcceptTransitGatewayPeeringAttachmentInput, + AcceptTransitGatewayPeeringAttachmentInputDict as AcceptTransitGatewayPeeringAttachmentInputDict, AcceptTransitGatewayPeeringAttachmentOutput as AcceptTransitGatewayPeeringAttachmentOutput, AcceptTransitGatewayVpcAttachmentInput as AcceptTransitGatewayVpcAttachmentInput, + AcceptTransitGatewayVpcAttachmentInputDict as AcceptTransitGatewayVpcAttachmentInputDict, AcceptTransitGatewayVpcAttachmentOutput as AcceptTransitGatewayVpcAttachmentOutput, AcceptVpcEndpointConnectionsInput as AcceptVpcEndpointConnectionsInput, + AcceptVpcEndpointConnectionsInputDict as AcceptVpcEndpointConnectionsInputDict, AcceptVpcEndpointConnectionsOutput as AcceptVpcEndpointConnectionsOutput, AcceptVpcPeeringConnectionInput as AcceptVpcPeeringConnectionInput, + AcceptVpcPeeringConnectionInputDict as AcceptVpcPeeringConnectionInputDict, AcceptVpcPeeringConnectionOutput as AcceptVpcPeeringConnectionOutput, AccessScopeAnalysisFinding as AccessScopeAnalysisFinding, AccessScopePath as AccessScopePath, AccessScopePathRequest as AccessScopePathRequest, + AccessScopePathRequestDict as AccessScopePathRequestDict, AccountAttribute as AccountAttribute, AccountAttributeName as AccountAttributeName, AccountAttributeValue as AccountAttributeValue, @@ -48,9 +62,12 @@ from ._private.models_0 import ( ActivityStatus as ActivityStatus, AddedPrincipal as AddedPrincipal, AddIpamOperatingRegion as AddIpamOperatingRegion, + AddIpamOperatingRegionDict as AddIpamOperatingRegionDict, AddIpamOrganizationalUnitExclusion as AddIpamOrganizationalUnitExclusion, + AddIpamOrganizationalUnitExclusionDict as AddIpamOrganizationalUnitExclusionDict, AdditionalDetail as AdditionalDetail, AddPrefixListEntry as AddPrefixListEntry, + AddPrefixListEntryDict as AddPrefixListEntryDict, Address as Address, AddressAttribute as AddressAttribute, AddressAttributeName as AddressAttributeName, @@ -58,14 +75,18 @@ from ._private.models_0 import ( AddressTransfer as AddressTransfer, AddressTransferStatus as AddressTransferStatus, AdvertiseByoipCidrInput as AdvertiseByoipCidrInput, + AdvertiseByoipCidrInputDict as AdvertiseByoipCidrInputDict, AdvertiseByoipCidrOutput as AdvertiseByoipCidrOutput, Affinity as Affinity, AggregationStatusEnum as AggregationStatusEnum, AllocateAddressInput as AllocateAddressInput, + AllocateAddressInputDict as AllocateAddressInputDict, AllocateAddressOutput as AllocateAddressOutput, AllocateHostsInput as AllocateHostsInput, + AllocateHostsInputDict as AllocateHostsInputDict, AllocateHostsOutput as AllocateHostsOutput, AllocateIpamPoolCidrInput as AllocateIpamPoolCidrInput, + AllocateIpamPoolCidrInputDict as AllocateIpamPoolCidrInputDict, AllocateIpamPoolCidrOutput as AllocateIpamPoolCidrOutput, AllocationState as AllocationState, AllocationStrategy as AllocationStrategy, @@ -98,94 +119,132 @@ from ._private.models_0 import ( ApplicationStatusSummary as ApplicationStatusSummary, ApplyCancellationCharges as ApplyCancellationCharges, ApplySecurityGroupsToClientVpnTargetNetworkInput as ApplySecurityGroupsToClientVpnTargetNetworkInput, + ApplySecurityGroupsToClientVpnTargetNetworkInputDict as ApplySecurityGroupsToClientVpnTargetNetworkInputDict, ApplySecurityGroupsToClientVpnTargetNetworkOutput as ApplySecurityGroupsToClientVpnTargetNetworkOutput, ArchitectureType as ArchitectureType, ArchitectureValues as ArchitectureValues, AsnAssociation as AsnAssociation, AsnAssociationState as AsnAssociationState, AsnAuthorizationContext as AsnAuthorizationContext, + AsnAuthorizationContextDict as AsnAuthorizationContextDict, AsnState as AsnState, AssignedPrivateIpAddress as AssignedPrivateIpAddress, AssignIpv6AddressesInput as AssignIpv6AddressesInput, + AssignIpv6AddressesInputDict as AssignIpv6AddressesInputDict, AssignIpv6AddressesOutput as AssignIpv6AddressesOutput, AssignPrivateIpAddressesInput as AssignPrivateIpAddressesInput, + AssignPrivateIpAddressesInputDict as AssignPrivateIpAddressesInputDict, AssignPrivateIpAddressesOutput as AssignPrivateIpAddressesOutput, AssignPrivateNatGatewayAddressInput as AssignPrivateNatGatewayAddressInput, + AssignPrivateNatGatewayAddressInputDict as AssignPrivateNatGatewayAddressInputDict, AssignPrivateNatGatewayAddressOutput as AssignPrivateNatGatewayAddressOutput, AssociateAddressInput as AssociateAddressInput, + AssociateAddressInputDict as AssociateAddressInputDict, AssociateAddressOutput as AssociateAddressOutput, AssociateApplicationStatusCheckInput as AssociateApplicationStatusCheckInput, + AssociateApplicationStatusCheckInputDict as AssociateApplicationStatusCheckInputDict, AssociateApplicationStatusCheckOutput as AssociateApplicationStatusCheckOutput, AssociateCapacityReservationBillingOwnerInput as AssociateCapacityReservationBillingOwnerInput, + AssociateCapacityReservationBillingOwnerInputDict as AssociateCapacityReservationBillingOwnerInputDict, AssociateCapacityReservationBillingOwnerOutput as AssociateCapacityReservationBillingOwnerOutput, AssociateClientVpnTargetNetworkInput as AssociateClientVpnTargetNetworkInput, + AssociateClientVpnTargetNetworkInputDict as AssociateClientVpnTargetNetworkInputDict, AssociateClientVpnTargetNetworkOutput as AssociateClientVpnTargetNetworkOutput, AssociateDhcpOptionsInput as AssociateDhcpOptionsInput, + AssociateDhcpOptionsInputDict as AssociateDhcpOptionsInputDict, AssociateDhcpOptionsOutput as AssociateDhcpOptionsOutput, AssociatedNetworkType as AssociatedNetworkType, AssociatedRole as AssociatedRole, AssociatedTargetNetwork as AssociatedTargetNetwork, AssociateEnclaveCertificateIamRoleInput as AssociateEnclaveCertificateIamRoleInput, + AssociateEnclaveCertificateIamRoleInputDict as AssociateEnclaveCertificateIamRoleInputDict, AssociateEnclaveCertificateIamRoleOutput as AssociateEnclaveCertificateIamRoleOutput, AssociateIamInstanceProfileInput as AssociateIamInstanceProfileInput, + AssociateIamInstanceProfileInputDict as AssociateIamInstanceProfileInputDict, AssociateIamInstanceProfileOutput as AssociateIamInstanceProfileOutput, AssociateInstanceEventWindowInput as AssociateInstanceEventWindowInput, + AssociateInstanceEventWindowInputDict as AssociateInstanceEventWindowInputDict, AssociateInstanceEventWindowOutput as AssociateInstanceEventWindowOutput, AssociateIpamByoasnInput as AssociateIpamByoasnInput, + AssociateIpamByoasnInputDict as AssociateIpamByoasnInputDict, AssociateIpamByoasnOutput as AssociateIpamByoasnOutput, AssociateIpamResourceDiscoveryInput as AssociateIpamResourceDiscoveryInput, + AssociateIpamResourceDiscoveryInputDict as AssociateIpamResourceDiscoveryInputDict, AssociateIpamResourceDiscoveryOutput as AssociateIpamResourceDiscoveryOutput, AssociateNatGatewayAddressInput as AssociateNatGatewayAddressInput, + AssociateNatGatewayAddressInputDict as AssociateNatGatewayAddressInputDict, AssociateNatGatewayAddressOutput as AssociateNatGatewayAddressOutput, AssociateRouteServerInput as AssociateRouteServerInput, + AssociateRouteServerInputDict as AssociateRouteServerInputDict, AssociateRouteServerOutput as AssociateRouteServerOutput, AssociateRouteTableInput as AssociateRouteTableInput, + AssociateRouteTableInputDict as AssociateRouteTableInputDict, AssociateRouteTableOutput as AssociateRouteTableOutput, AssociateSecurityGroupVpcInput as AssociateSecurityGroupVpcInput, + AssociateSecurityGroupVpcInputDict as AssociateSecurityGroupVpcInputDict, AssociateSecurityGroupVpcOutput as AssociateSecurityGroupVpcOutput, AssociateSubnetCidrBlockInput as AssociateSubnetCidrBlockInput, + AssociateSubnetCidrBlockInputDict as AssociateSubnetCidrBlockInputDict, AssociateSubnetCidrBlockOutput as AssociateSubnetCidrBlockOutput, AssociateTransitGatewayMulticastDomainInput as AssociateTransitGatewayMulticastDomainInput, + AssociateTransitGatewayMulticastDomainInputDict as AssociateTransitGatewayMulticastDomainInputDict, AssociateTransitGatewayMulticastDomainOutput as AssociateTransitGatewayMulticastDomainOutput, AssociateTransitGatewayPolicyTableInput as AssociateTransitGatewayPolicyTableInput, + AssociateTransitGatewayPolicyTableInputDict as AssociateTransitGatewayPolicyTableInputDict, AssociateTransitGatewayPolicyTableOutput as AssociateTransitGatewayPolicyTableOutput, AssociateTransitGatewayRouteTableInput as AssociateTransitGatewayRouteTableInput, + AssociateTransitGatewayRouteTableInputDict as AssociateTransitGatewayRouteTableInputDict, AssociateTransitGatewayRouteTableOutput as AssociateTransitGatewayRouteTableOutput, AssociateTrunkInterfaceInput as AssociateTrunkInterfaceInput, + AssociateTrunkInterfaceInputDict as AssociateTrunkInterfaceInputDict, AssociateTrunkInterfaceOutput as AssociateTrunkInterfaceOutput, AssociateVpcCidrBlockInput as AssociateVpcCidrBlockInput, + AssociateVpcCidrBlockInputDict as AssociateVpcCidrBlockInputDict, AssociateVpcCidrBlockOutput as AssociateVpcCidrBlockOutput, AssociationStatus as AssociationStatus, AssociationStatusCode as AssociationStatusCode, AssociationTypeEnum as AssociationTypeEnum, AthenaIntegration as AthenaIntegration, + AthenaIntegrationDict as AthenaIntegrationDict, AttachClassicLinkVpcInput as AttachClassicLinkVpcInput, + AttachClassicLinkVpcInputDict as AttachClassicLinkVpcInputDict, AttachClassicLinkVpcOutput as AttachClassicLinkVpcOutput, AttachImageWatermarkInput as AttachImageWatermarkInput, + AttachImageWatermarkInputDict as AttachImageWatermarkInputDict, AttachImageWatermarkOutput as AttachImageWatermarkOutput, AttachInternetGatewayInput as AttachInternetGatewayInput, + AttachInternetGatewayInputDict as AttachInternetGatewayInputDict, AttachInternetGatewayOutput as AttachInternetGatewayOutput, AttachmentEnaSrdSpecification as AttachmentEnaSrdSpecification, AttachmentEnaSrdUdpSpecification as AttachmentEnaSrdUdpSpecification, AttachmentLimitType as AttachmentLimitType, AttachmentStatus as AttachmentStatus, AttachNetworkInterfaceInput as AttachNetworkInterfaceInput, + AttachNetworkInterfaceInputDict as AttachNetworkInterfaceInputDict, AttachNetworkInterfaceOutput as AttachNetworkInterfaceOutput, AttachVerifiedAccessTrustProviderInput as AttachVerifiedAccessTrustProviderInput, + AttachVerifiedAccessTrustProviderInputDict as AttachVerifiedAccessTrustProviderInputDict, AttachVerifiedAccessTrustProviderOutput as AttachVerifiedAccessTrustProviderOutput, AttachVolumeInput as AttachVolumeInput, + AttachVolumeInputDict as AttachVolumeInputDict, AttachVolumeOutput as AttachVolumeOutput, AttachVpnGatewayInput as AttachVpnGatewayInput, + AttachVpnGatewayInputDict as AttachVpnGatewayInputDict, AttachVpnGatewayOutput as AttachVpnGatewayOutput, AttributeBooleanValue as AttributeBooleanValue, + AttributeBooleanValueDict as AttributeBooleanValueDict, AttributeSummary as AttributeSummary, AttributeValue as AttributeValue, + AttributeValueDict as AttributeValueDict, AuthorizationRule as AuthorizationRule, AuthorizeClientVpnIngressInput as AuthorizeClientVpnIngressInput, + AuthorizeClientVpnIngressInputDict as AuthorizeClientVpnIngressInputDict, AuthorizeClientVpnIngressOutput as AuthorizeClientVpnIngressOutput, AuthorizeSecurityGroupEgressInput as AuthorizeSecurityGroupEgressInput, + AuthorizeSecurityGroupEgressInputDict as AuthorizeSecurityGroupEgressInputDict, AuthorizeSecurityGroupEgressOutput as AuthorizeSecurityGroupEgressOutput, AuthorizeSecurityGroupIngressInput as AuthorizeSecurityGroupIngressInput, + AuthorizeSecurityGroupIngressInputDict as AuthorizeSecurityGroupIngressInputDict, AuthorizeSecurityGroupIngressOutput as AuthorizeSecurityGroupIngressOutput, AutoAcceptSharedAssociationsValue as AutoAcceptSharedAssociationsValue, AutoAcceptSharedAttachmentsValue as AutoAcceptSharedAttachmentsValue, @@ -195,6 +254,7 @@ from ._private.models_0 import ( AvailabilityMode as AvailabilityMode, AvailabilityZone as AvailabilityZone, AvailabilityZoneAddress as AvailabilityZoneAddress, + AvailabilityZoneAddressDict as AvailabilityZoneAddressDict, AvailabilityZoneGeography as AvailabilityZoneGeography, AvailabilityZoneMessage as AvailabilityZoneMessage, AvailabilityZoneOptInStatus as AvailabilityZoneOptInStatus, @@ -204,14 +264,20 @@ from ._private.models_0 import ( BandwidthWeightingType as BandwidthWeightingType, BareMetal as BareMetal, BaselineEbsBandwidthMbps as BaselineEbsBandwidthMbps, + BaselineEbsBandwidthMbpsDict as BaselineEbsBandwidthMbpsDict, BaselineEbsBandwidthMbpsRequest as BaselineEbsBandwidthMbpsRequest, + BaselineEbsBandwidthMbpsRequestDict as BaselineEbsBandwidthMbpsRequestDict, BaselinePerformanceFactors as BaselinePerformanceFactors, + BaselinePerformanceFactorsDict as BaselinePerformanceFactorsDict, BaselinePerformanceFactorsRequest as BaselinePerformanceFactorsRequest, + BaselinePerformanceFactorsRequestDict as BaselinePerformanceFactorsRequestDict, BatchModifyIpamRoutingPolicyRegistrationsInput as BatchModifyIpamRoutingPolicyRegistrationsInput, + BatchModifyIpamRoutingPolicyRegistrationsInputDict as BatchModifyIpamRoutingPolicyRegistrationsInputDict, BatchModifyIpamRoutingPolicyRegistrationsOutput as BatchModifyIpamRoutingPolicyRegistrationsOutput, BatchState as BatchState, BgpStatus as BgpStatus, BlockDeviceMapping as BlockDeviceMapping, + BlockDeviceMappingDict as BlockDeviceMappingDict, BlockDeviceMappingResponse as BlockDeviceMappingResponse, BlockPublicAccessMode as BlockPublicAccessMode, BlockPublicAccessStates as BlockPublicAccessStates, @@ -219,6 +285,7 @@ from ._private.models_0 import ( BootModeType as BootModeType, BootModeValues as BootModeValues, BundleInstanceInput as BundleInstanceInput, + BundleInstanceInputDict as BundleInstanceInputDict, BundleInstanceOutput as BundleInstanceOutput, BundleTask as BundleTask, BundleTaskError as BundleTaskError, @@ -230,37 +297,48 @@ from ._private.models_0 import ( CallerRole as CallerRole, CancelBatchErrorCode as CancelBatchErrorCode, CancelBundleTaskInput as CancelBundleTaskInput, + CancelBundleTaskInputDict as CancelBundleTaskInputDict, CancelBundleTaskOutput as CancelBundleTaskOutput, CancelCapacityReservationFleetError as CancelCapacityReservationFleetError, CancelCapacityReservationFleetsInput as CancelCapacityReservationFleetsInput, + CancelCapacityReservationFleetsInputDict as CancelCapacityReservationFleetsInputDict, CancelCapacityReservationFleetsOutput as CancelCapacityReservationFleetsOutput, CancelCapacityReservationInput as CancelCapacityReservationInput, + CancelCapacityReservationInputDict as CancelCapacityReservationInputDict, CancelCapacityReservationOutput as CancelCapacityReservationOutput, CancelConversionTaskInput as CancelConversionTaskInput, + CancelConversionTaskInputDict as CancelConversionTaskInputDict, CancelConversionTaskOutput as CancelConversionTaskOutput, CancelDeclarativePoliciesReportInput as CancelDeclarativePoliciesReportInput, + CancelDeclarativePoliciesReportInputDict as CancelDeclarativePoliciesReportInputDict, CancelDeclarativePoliciesReportOutput as CancelDeclarativePoliciesReportOutput, CancelExportTaskInput as CancelExportTaskInput, + CancelExportTaskInputDict as CancelExportTaskInputDict, CancelExportTaskOutput as CancelExportTaskOutput, CancelImageLaunchPermissionInput as CancelImageLaunchPermissionInput, + CancelImageLaunchPermissionInputDict as CancelImageLaunchPermissionInputDict, CancelImageLaunchPermissionOutput as CancelImageLaunchPermissionOutput, CancelImportTaskInput as CancelImportTaskInput, + CancelImportTaskInputDict as CancelImportTaskInputDict, CancelImportTaskOutput as CancelImportTaskOutput, CancellationTerms as CancellationTerms, CancelledSpotInstanceRequest as CancelledSpotInstanceRequest, CancelReservedInstancesListingInput as CancelReservedInstancesListingInput, + CancelReservedInstancesListingInputDict as CancelReservedInstancesListingInputDict, CancelReservedInstancesListingOutput as CancelReservedInstancesListingOutput, CancelSpotFleetRequestsError as CancelSpotFleetRequestsError, CancelSpotFleetRequestsErrorItem as CancelSpotFleetRequestsErrorItem, CancelSpotFleetRequestsInput as CancelSpotFleetRequestsInput, + CancelSpotFleetRequestsInputDict as CancelSpotFleetRequestsInputDict, CancelSpotFleetRequestsOutput as CancelSpotFleetRequestsOutput, CancelSpotFleetRequestsSuccessItem as CancelSpotFleetRequestsSuccessItem, CancelSpotInstanceRequestsInput as CancelSpotInstanceRequestsInput, + CancelSpotInstanceRequestsInputDict as CancelSpotInstanceRequestsInputDict, CancelSpotInstanceRequestsOutput as CancelSpotInstanceRequestsOutput, CancelSpotInstanceRequestState as CancelSpotInstanceRequestState, ) -from ._private.models_1 import ( +from ._private.models_01 import ( CapacityAllocation as CapacityAllocation, CapacityAllocationMetadataEntry as CapacityAllocationMetadataEntry, CapacityBlock as CapacityBlock, @@ -272,6 +350,7 @@ from ._private.models_1 import ( CapacityBlockResourceState as CapacityBlockResourceState, CapacityBlockStatus as CapacityBlockStatus, CapacityManagerCondition as CapacityManagerCondition, + CapacityManagerConditionDict as CapacityManagerConditionDict, CapacityManagerDataExportResponse as CapacityManagerDataExportResponse, CapacityManagerDataExportStatus as CapacityManagerDataExportStatus, CapacityManagerDimension as CapacityManagerDimension, @@ -301,12 +380,15 @@ from ._private.models_1 import ( CapacityReservationModificationQuoteState as CapacityReservationModificationQuoteState, CapacityReservationOptions as CapacityReservationOptions, CapacityReservationOptionsRequest as CapacityReservationOptionsRequest, + CapacityReservationOptionsRequestDict as CapacityReservationOptionsRequestDict, CapacityReservationPreference as CapacityReservationPreference, CapacityReservationSpecification as CapacityReservationSpecification, + CapacityReservationSpecificationDict as CapacityReservationSpecificationDict, CapacityReservationSpecificationResponse as CapacityReservationSpecificationResponse, CapacityReservationState as CapacityReservationState, CapacityReservationStatus as CapacityReservationStatus, CapacityReservationTarget as CapacityReservationTarget, + CapacityReservationTargetDict as CapacityReservationTargetDict, CapacityReservationTargetResponse as CapacityReservationTargetResponse, CapacityReservationTenancy as CapacityReservationTenancy, CapacityReservationTopology as CapacityReservationTopology, @@ -317,24 +399,33 @@ from ._private.models_1 import ( CarrierGatewayState as CarrierGatewayState, CertificateAuthentication as CertificateAuthentication, CertificateAuthenticationRequest as CertificateAuthenticationRequest, + CertificateAuthenticationRequestDict as CertificateAuthenticationRequestDict, ChronologicalOrder as ChronologicalOrder, CidrAuthorizationContext as CidrAuthorizationContext, + CidrAuthorizationContextDict as CidrAuthorizationContextDict, CidrBlock as CidrBlock, ClassicLinkDnsSupport as ClassicLinkDnsSupport, ClassicLinkInstance as ClassicLinkInstance, ClassicLoadBalancer as ClassicLoadBalancer, + ClassicLoadBalancerDict as ClassicLoadBalancerDict, ClassicLoadBalancersConfig as ClassicLoadBalancersConfig, + ClassicLoadBalancersConfigDict as ClassicLoadBalancersConfigDict, ClientCertificateRevocationListStatus as ClientCertificateRevocationListStatus, ClientCertificateRevocationListStatusCode as ClientCertificateRevocationListStatusCode, ClientConnectOptions as ClientConnectOptions, + ClientConnectOptionsDict as ClientConnectOptionsDict, ClientConnectResponseOptions as ClientConnectResponseOptions, ClientData as ClientData, + ClientDataDict as ClientDataDict, ClientLoginBannerOptions as ClientLoginBannerOptions, + ClientLoginBannerOptionsDict as ClientLoginBannerOptionsDict, ClientLoginBannerResponseOptions as ClientLoginBannerResponseOptions, ClientRouteEnforcementOptions as ClientRouteEnforcementOptions, + ClientRouteEnforcementOptionsDict as ClientRouteEnforcementOptionsDict, ClientRouteEnforcementResponseOptions as ClientRouteEnforcementResponseOptions, ClientVpnAuthentication as ClientVpnAuthentication, ClientVpnAuthenticationRequest as ClientVpnAuthenticationRequest, + ClientVpnAuthenticationRequestDict as ClientVpnAuthenticationRequestDict, ClientVpnAuthenticationType as ClientVpnAuthenticationType, ClientVpnAuthorizationPolicyShadowMode as ClientVpnAuthorizationPolicyShadowMode, ClientVpnAuthorizationPolicyStatus as ClientVpnAuthorizationPolicyStatus, @@ -354,15 +445,19 @@ from ._private.models_1 import ( ClientVpnRouteStatusCode as ClientVpnRouteStatusCode, ClientVpnTrustProvider as ClientVpnTrustProvider, ClientVpnTrustProviderRequest as ClientVpnTrustProviderRequest, + ClientVpnTrustProviderRequestDict as ClientVpnTrustProviderRequestDict, CloudWatchLogOptions as CloudWatchLogOptions, CloudWatchLogOptionsSpecification as CloudWatchLogOptionsSpecification, + CloudWatchLogOptionsSpecificationDict as CloudWatchLogOptionsSpecificationDict, CoipAddressUsage as CoipAddressUsage, CoipCidr as CoipCidr, CoipPool as CoipPool, Comparison as Comparison, ConfirmProductInstanceInput as ConfirmProductInstanceInput, + ConfirmProductInstanceInputDict as ConfirmProductInstanceInputDict, ConfirmProductInstanceOutput as ConfirmProductInstanceOutput, ConnectionLogOptions as ConnectionLogOptions, + ConnectionLogOptionsDict as ConnectionLogOptionsDict, ConnectionLogResponseOptions as ConnectionLogResponseOptions, ConnectionNotification as ConnectionNotification, ConnectionNotificationState as ConnectionNotificationState, @@ -370,274 +465,410 @@ from ._private.models_1 import ( ConnectionTrackingConfiguration as ConnectionTrackingConfiguration, ConnectionTrackingSpecification as ConnectionTrackingSpecification, ConnectionTrackingSpecificationRequest as ConnectionTrackingSpecificationRequest, + ConnectionTrackingSpecificationRequestDict as ConnectionTrackingSpecificationRequestDict, ConnectionTrackingSpecificationResponse as ConnectionTrackingSpecificationResponse, ConnectivityType as ConnectivityType, ContainerFormat as ContainerFormat, ConversionTask as ConversionTask, ConversionTaskState as ConversionTaskState, CopyFpgaImageInput as CopyFpgaImageInput, + CopyFpgaImageInputDict as CopyFpgaImageInputDict, CopyFpgaImageOutput as CopyFpgaImageOutput, CopyImageInput as CopyImageInput, + CopyImageInputDict as CopyImageInputDict, CopyImageOutput as CopyImageOutput, CopySnapshotInput as CopySnapshotInput, + CopySnapshotInputDict as CopySnapshotInputDict, CopySnapshotOutput as CopySnapshotOutput, CopyTagsFromSource as CopyTagsFromSource, CopyVolumesInput as CopyVolumesInput, + CopyVolumesInputDict as CopyVolumesInputDict, CopyVolumesOutput as CopyVolumesOutput, CpuManufacturer as CpuManufacturer, CpuOptions as CpuOptions, CpuOptionsRequest as CpuOptionsRequest, + CpuOptionsRequestDict as CpuOptionsRequestDict, CpuPerformanceFactor as CpuPerformanceFactor, + CpuPerformanceFactorDict as CpuPerformanceFactorDict, CpuPerformanceFactorRequest as CpuPerformanceFactorRequest, + CpuPerformanceFactorRequestDict as CpuPerformanceFactorRequestDict, CreateApplicationStatusCheckInput as CreateApplicationStatusCheckInput, + CreateApplicationStatusCheckInputDict as CreateApplicationStatusCheckInputDict, CreateApplicationStatusCheckOutput as CreateApplicationStatusCheckOutput, CreateCapacityManagerDataExportInput as CreateCapacityManagerDataExportInput, + CreateCapacityManagerDataExportInputDict as CreateCapacityManagerDataExportInputDict, CreateCapacityManagerDataExportOutput as CreateCapacityManagerDataExportOutput, CreateCapacityReservationBySplittingInput as CreateCapacityReservationBySplittingInput, + CreateCapacityReservationBySplittingInputDict as CreateCapacityReservationBySplittingInputDict, CreateCapacityReservationBySplittingOutput as CreateCapacityReservationBySplittingOutput, CreateCapacityReservationCancellationQuoteInput as CreateCapacityReservationCancellationQuoteInput, + CreateCapacityReservationCancellationQuoteInputDict as CreateCapacityReservationCancellationQuoteInputDict, CreateCapacityReservationCancellationQuoteOutput as CreateCapacityReservationCancellationQuoteOutput, CreateCapacityReservationDateChangeQuoteInput as CreateCapacityReservationDateChangeQuoteInput, + CreateCapacityReservationDateChangeQuoteInputDict as CreateCapacityReservationDateChangeQuoteInputDict, CreateCapacityReservationDateChangeQuoteOutput as CreateCapacityReservationDateChangeQuoteOutput, CreateCapacityReservationFleetInput as CreateCapacityReservationFleetInput, + CreateCapacityReservationFleetInputDict as CreateCapacityReservationFleetInputDict, CreateCapacityReservationFleetOutput as CreateCapacityReservationFleetOutput, CreateCapacityReservationInput as CreateCapacityReservationInput, + CreateCapacityReservationInputDict as CreateCapacityReservationInputDict, CreateCapacityReservationOutput as CreateCapacityReservationOutput, CreateCarrierGatewayInput as CreateCarrierGatewayInput, + CreateCarrierGatewayInputDict as CreateCarrierGatewayInputDict, CreateCarrierGatewayOutput as CreateCarrierGatewayOutput, CreateClientVpnEndpointInput as CreateClientVpnEndpointInput, + CreateClientVpnEndpointInputDict as CreateClientVpnEndpointInputDict, CreateClientVpnEndpointOutput as CreateClientVpnEndpointOutput, CreateClientVpnRouteInput as CreateClientVpnRouteInput, + CreateClientVpnRouteInputDict as CreateClientVpnRouteInputDict, CreateClientVpnRouteOutput as CreateClientVpnRouteOutput, CreateCoipCidrInput as CreateCoipCidrInput, + CreateCoipCidrInputDict as CreateCoipCidrInputDict, CreateCoipCidrOutput as CreateCoipCidrOutput, CreateCoipPoolInput as CreateCoipPoolInput, + CreateCoipPoolInputDict as CreateCoipPoolInputDict, CreateCoipPoolOutput as CreateCoipPoolOutput, CreateCustomerGatewayInput as CreateCustomerGatewayInput, + CreateCustomerGatewayInputDict as CreateCustomerGatewayInputDict, CreateCustomerGatewayOutput as CreateCustomerGatewayOutput, CreateDefaultSubnetInput as CreateDefaultSubnetInput, + CreateDefaultSubnetInputDict as CreateDefaultSubnetInputDict, CreateDefaultSubnetOutput as CreateDefaultSubnetOutput, CreateDefaultVpcInput as CreateDefaultVpcInput, + CreateDefaultVpcInputDict as CreateDefaultVpcInputDict, CreateDefaultVpcOutput as CreateDefaultVpcOutput, CreateDelegateMacVolumeOwnershipTaskInput as CreateDelegateMacVolumeOwnershipTaskInput, + CreateDelegateMacVolumeOwnershipTaskInputDict as CreateDelegateMacVolumeOwnershipTaskInputDict, CreateDelegateMacVolumeOwnershipTaskOutput as CreateDelegateMacVolumeOwnershipTaskOutput, CreateDhcpOptionsInput as CreateDhcpOptionsInput, + CreateDhcpOptionsInputDict as CreateDhcpOptionsInputDict, CreateDhcpOptionsOutput as CreateDhcpOptionsOutput, CreateEgressOnlyInternetGatewayInput as CreateEgressOnlyInternetGatewayInput, + CreateEgressOnlyInternetGatewayInputDict as CreateEgressOnlyInternetGatewayInputDict, CreateEgressOnlyInternetGatewayOutput as CreateEgressOnlyInternetGatewayOutput, CreateFleetError as CreateFleetError, CreateFleetInput as CreateFleetInput, + CreateFleetInputDict as CreateFleetInputDict, CreateFleetInstance as CreateFleetInstance, CreateFleetOutput as CreateFleetOutput, CreateFlowLogsInput as CreateFlowLogsInput, + CreateFlowLogsInputDict as CreateFlowLogsInputDict, CreateFlowLogsOutput as CreateFlowLogsOutput, CreateFpgaImageInput as CreateFpgaImageInput, + CreateFpgaImageInputDict as CreateFpgaImageInputDict, CreateFpgaImageOutput as CreateFpgaImageOutput, CreateImageInput as CreateImageInput, + CreateImageInputDict as CreateImageInputDict, CreateImageOutput as CreateImageOutput, CreateImageUsageReportInput as CreateImageUsageReportInput, + CreateImageUsageReportInputDict as CreateImageUsageReportInputDict, CreateImageUsageReportOutput as CreateImageUsageReportOutput, CreateInstanceConnectEndpointInput as CreateInstanceConnectEndpointInput, + CreateInstanceConnectEndpointInputDict as CreateInstanceConnectEndpointInputDict, CreateInstanceConnectEndpointOutput as CreateInstanceConnectEndpointOutput, CreateInstanceEventWindowInput as CreateInstanceEventWindowInput, + CreateInstanceEventWindowInputDict as CreateInstanceEventWindowInputDict, CreateInstanceEventWindowOutput as CreateInstanceEventWindowOutput, CreateInstanceExportTaskInput as CreateInstanceExportTaskInput, + CreateInstanceExportTaskInputDict as CreateInstanceExportTaskInputDict, CreateInstanceExportTaskOutput as CreateInstanceExportTaskOutput, CreateInternetGatewayInput as CreateInternetGatewayInput, + CreateInternetGatewayInputDict as CreateInternetGatewayInputDict, CreateInternetGatewayOutput as CreateInternetGatewayOutput, CreateInterruptibleCapacityReservationAllocationInput as CreateInterruptibleCapacityReservationAllocationInput, + CreateInterruptibleCapacityReservationAllocationInputDict as CreateInterruptibleCapacityReservationAllocationInputDict, CreateInterruptibleCapacityReservationAllocationOutput as CreateInterruptibleCapacityReservationAllocationOutput, CreateIpamExternalResourceVerificationTokenInput as CreateIpamExternalResourceVerificationTokenInput, + CreateIpamExternalResourceVerificationTokenInputDict as CreateIpamExternalResourceVerificationTokenInputDict, CreateIpamExternalResourceVerificationTokenOutput as CreateIpamExternalResourceVerificationTokenOutput, CreateIpamInput as CreateIpamInput, + CreateIpamInputDict as CreateIpamInputDict, CreateIpamInternetRegistryAssociationInput as CreateIpamInternetRegistryAssociationInput, + CreateIpamInternetRegistryAssociationInputDict as CreateIpamInternetRegistryAssociationInputDict, CreateIpamInternetRegistryAssociationOutput as CreateIpamInternetRegistryAssociationOutput, CreateIpamOutput as CreateIpamOutput, CreateIpamPolicyInput as CreateIpamPolicyInput, + CreateIpamPolicyInputDict as CreateIpamPolicyInputDict, CreateIpamPolicyOutput as CreateIpamPolicyOutput, CreateIpamPoolInput as CreateIpamPoolInput, + CreateIpamPoolInputDict as CreateIpamPoolInputDict, CreateIpamPoolOutput as CreateIpamPoolOutput, CreateIpamPrefixListResolverInput as CreateIpamPrefixListResolverInput, + CreateIpamPrefixListResolverInputDict as CreateIpamPrefixListResolverInputDict, CreateIpamPrefixListResolverOutput as CreateIpamPrefixListResolverOutput, CreateIpamPrefixListResolverTargetInput as CreateIpamPrefixListResolverTargetInput, + CreateIpamPrefixListResolverTargetInputDict as CreateIpamPrefixListResolverTargetInputDict, CreateIpamPrefixListResolverTargetOutput as CreateIpamPrefixListResolverTargetOutput, CreateIpamResourceDiscoveryInput as CreateIpamResourceDiscoveryInput, + CreateIpamResourceDiscoveryInputDict as CreateIpamResourceDiscoveryInputDict, CreateIpamResourceDiscoveryOutput as CreateIpamResourceDiscoveryOutput, CreateIpamRoutingPolicyRegistrationInput as CreateIpamRoutingPolicyRegistrationInput, + CreateIpamRoutingPolicyRegistrationInputDict as CreateIpamRoutingPolicyRegistrationInputDict, CreateIpamRoutingPolicyRegistrationOutput as CreateIpamRoutingPolicyRegistrationOutput, CreateIpamScopeInput as CreateIpamScopeInput, + CreateIpamScopeInputDict as CreateIpamScopeInputDict, CreateIpamScopeOutput as CreateIpamScopeOutput, CreateKeyPairInput as CreateKeyPairInput, + CreateKeyPairInputDict as CreateKeyPairInputDict, CreateKeyPairOutput as CreateKeyPairOutput, CreateLaunchTemplateInput as CreateLaunchTemplateInput, + CreateLaunchTemplateInputDict as CreateLaunchTemplateInputDict, CreateLaunchTemplateOutput as CreateLaunchTemplateOutput, CreateLaunchTemplateVersionInput as CreateLaunchTemplateVersionInput, + CreateLaunchTemplateVersionInputDict as CreateLaunchTemplateVersionInputDict, CreateLaunchTemplateVersionOutput as CreateLaunchTemplateVersionOutput, CreateLocalGatewayRouteInput as CreateLocalGatewayRouteInput, + CreateLocalGatewayRouteInputDict as CreateLocalGatewayRouteInputDict, CreateLocalGatewayRouteOutput as CreateLocalGatewayRouteOutput, CreateLocalGatewayRouteTableInput as CreateLocalGatewayRouteTableInput, + CreateLocalGatewayRouteTableInputDict as CreateLocalGatewayRouteTableInputDict, CreateLocalGatewayRouteTableOutput as CreateLocalGatewayRouteTableOutput, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput as CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, + CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict as CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput as CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, CreateLocalGatewayRouteTableVpcAssociationInput as CreateLocalGatewayRouteTableVpcAssociationInput, + CreateLocalGatewayRouteTableVpcAssociationInputDict as CreateLocalGatewayRouteTableVpcAssociationInputDict, CreateLocalGatewayRouteTableVpcAssociationOutput as CreateLocalGatewayRouteTableVpcAssociationOutput, CreateLocalGatewayVirtualInterfaceGroupInput as CreateLocalGatewayVirtualInterfaceGroupInput, + CreateLocalGatewayVirtualInterfaceGroupInputDict as CreateLocalGatewayVirtualInterfaceGroupInputDict, CreateLocalGatewayVirtualInterfaceGroupOutput as CreateLocalGatewayVirtualInterfaceGroupOutput, CreateLocalGatewayVirtualInterfaceInput as CreateLocalGatewayVirtualInterfaceInput, + CreateLocalGatewayVirtualInterfaceInputDict as CreateLocalGatewayVirtualInterfaceInputDict, CreateLocalGatewayVirtualInterfaceOutput as CreateLocalGatewayVirtualInterfaceOutput, CreateMacSystemIntegrityProtectionModificationTaskInput as CreateMacSystemIntegrityProtectionModificationTaskInput, + CreateMacSystemIntegrityProtectionModificationTaskInputDict as CreateMacSystemIntegrityProtectionModificationTaskInputDict, CreateMacSystemIntegrityProtectionModificationTaskOutput as CreateMacSystemIntegrityProtectionModificationTaskOutput, CreateManagedPrefixListInput as CreateManagedPrefixListInput, + CreateManagedPrefixListInputDict as CreateManagedPrefixListInputDict, CreateManagedPrefixListOutput as CreateManagedPrefixListOutput, CreateNatGatewayInput as CreateNatGatewayInput, + CreateNatGatewayInputDict as CreateNatGatewayInputDict, CreateNatGatewayOutput as CreateNatGatewayOutput, CreateNetworkAclEntryInput as CreateNetworkAclEntryInput, + CreateNetworkAclEntryInputDict as CreateNetworkAclEntryInputDict, CreateNetworkAclEntryOutput as CreateNetworkAclEntryOutput, CreateNetworkAclInput as CreateNetworkAclInput, + CreateNetworkAclInputDict as CreateNetworkAclInputDict, CreateNetworkAclOutput as CreateNetworkAclOutput, CreateNetworkInsightsAccessScopeInput as CreateNetworkInsightsAccessScopeInput, + CreateNetworkInsightsAccessScopeInputDict as CreateNetworkInsightsAccessScopeInputDict, CreateNetworkInsightsAccessScopeOutput as CreateNetworkInsightsAccessScopeOutput, CreateNetworkInsightsPathInput as CreateNetworkInsightsPathInput, + CreateNetworkInsightsPathInputDict as CreateNetworkInsightsPathInputDict, CreateNetworkInsightsPathOutput as CreateNetworkInsightsPathOutput, CreateNetworkInterfaceInput as CreateNetworkInterfaceInput, + CreateNetworkInterfaceInputDict as CreateNetworkInterfaceInputDict, CreateNetworkInterfaceOutput as CreateNetworkInterfaceOutput, CreateNetworkInterfacePermissionInput as CreateNetworkInterfacePermissionInput, + CreateNetworkInterfacePermissionInputDict as CreateNetworkInterfacePermissionInputDict, CreateNetworkInterfacePermissionOutput as CreateNetworkInterfacePermissionOutput, CreatePlacementGroupInput as CreatePlacementGroupInput, + CreatePlacementGroupInputDict as CreatePlacementGroupInputDict, CreatePlacementGroupOutput as CreatePlacementGroupOutput, CreatePublicIpv4PoolInput as CreatePublicIpv4PoolInput, + CreatePublicIpv4PoolInputDict as CreatePublicIpv4PoolInputDict, CreatePublicIpv4PoolOutput as CreatePublicIpv4PoolOutput, CreateReplaceRootVolumeTaskInput as CreateReplaceRootVolumeTaskInput, + CreateReplaceRootVolumeTaskInputDict as CreateReplaceRootVolumeTaskInputDict, CreateReplaceRootVolumeTaskOutput as CreateReplaceRootVolumeTaskOutput, CreateReservedInstancesListingInput as CreateReservedInstancesListingInput, + CreateReservedInstancesListingInputDict as CreateReservedInstancesListingInputDict, CreateReservedInstancesListingOutput as CreateReservedInstancesListingOutput, ) -from ._private.models_2 import ( +from ._private.models_02 import ( CreateRestoreImageTaskInput as CreateRestoreImageTaskInput, + CreateRestoreImageTaskInputDict as CreateRestoreImageTaskInputDict, CreateRestoreImageTaskOutput as CreateRestoreImageTaskOutput, CreateRouteInput as CreateRouteInput, + CreateRouteInputDict as CreateRouteInputDict, CreateRouteOutput as CreateRouteOutput, CreateRouteServerEndpointInput as CreateRouteServerEndpointInput, + CreateRouteServerEndpointInputDict as CreateRouteServerEndpointInputDict, CreateRouteServerEndpointOutput as CreateRouteServerEndpointOutput, CreateRouteServerInput as CreateRouteServerInput, + CreateRouteServerInputDict as CreateRouteServerInputDict, CreateRouteServerOutput as CreateRouteServerOutput, CreateRouteServerPeerInput as CreateRouteServerPeerInput, + CreateRouteServerPeerInputDict as CreateRouteServerPeerInputDict, CreateRouteServerPeerOutput as CreateRouteServerPeerOutput, CreateRouteTableInput as CreateRouteTableInput, + CreateRouteTableInputDict as CreateRouteTableInputDict, CreateRouteTableOutput as CreateRouteTableOutput, CreateSecondaryNetworkInput as CreateSecondaryNetworkInput, + CreateSecondaryNetworkInputDict as CreateSecondaryNetworkInputDict, CreateSecondaryNetworkOutput as CreateSecondaryNetworkOutput, CreateSecondarySubnetInput as CreateSecondarySubnetInput, + CreateSecondarySubnetInputDict as CreateSecondarySubnetInputDict, CreateSecondarySubnetOutput as CreateSecondarySubnetOutput, CreateSecurityGroupInput as CreateSecurityGroupInput, + CreateSecurityGroupInputDict as CreateSecurityGroupInputDict, CreateSecurityGroupOutput as CreateSecurityGroupOutput, CreateSnapshotInput as CreateSnapshotInput, + CreateSnapshotInputDict as CreateSnapshotInputDict, CreateSnapshotOutput as CreateSnapshotOutput, CreateSnapshotsInput as CreateSnapshotsInput, + CreateSnapshotsInputDict as CreateSnapshotsInputDict, CreateSnapshotsOutput as CreateSnapshotsOutput, CreateSpotDatafeedSubscriptionInput as CreateSpotDatafeedSubscriptionInput, + CreateSpotDatafeedSubscriptionInputDict as CreateSpotDatafeedSubscriptionInputDict, CreateSpotDatafeedSubscriptionOutput as CreateSpotDatafeedSubscriptionOutput, CreateStoreImageTaskInput as CreateStoreImageTaskInput, + CreateStoreImageTaskInputDict as CreateStoreImageTaskInputDict, CreateStoreImageTaskOutput as CreateStoreImageTaskOutput, CreateSubnetCidrReservationInput as CreateSubnetCidrReservationInput, + CreateSubnetCidrReservationInputDict as CreateSubnetCidrReservationInputDict, CreateSubnetCidrReservationOutput as CreateSubnetCidrReservationOutput, CreateSubnetInput as CreateSubnetInput, + CreateSubnetInputDict as CreateSubnetInputDict, CreateSubnetOutput as CreateSubnetOutput, CreateTagsInput as CreateTagsInput, + CreateTagsInputDict as CreateTagsInputDict, CreateTagsOutput as CreateTagsOutput, CreateTrafficMirrorFilterInput as CreateTrafficMirrorFilterInput, + CreateTrafficMirrorFilterInputDict as CreateTrafficMirrorFilterInputDict, CreateTrafficMirrorFilterOutput as CreateTrafficMirrorFilterOutput, CreateTrafficMirrorFilterRuleInput as CreateTrafficMirrorFilterRuleInput, + CreateTrafficMirrorFilterRuleInputDict as CreateTrafficMirrorFilterRuleInputDict, CreateTrafficMirrorFilterRuleOutput as CreateTrafficMirrorFilterRuleOutput, CreateTrafficMirrorSessionInput as CreateTrafficMirrorSessionInput, + CreateTrafficMirrorSessionInputDict as CreateTrafficMirrorSessionInputDict, CreateTrafficMirrorSessionOutput as CreateTrafficMirrorSessionOutput, CreateTrafficMirrorTargetInput as CreateTrafficMirrorTargetInput, + CreateTrafficMirrorTargetInputDict as CreateTrafficMirrorTargetInputDict, CreateTrafficMirrorTargetOutput as CreateTrafficMirrorTargetOutput, CreateTransitGatewayConnectInput as CreateTransitGatewayConnectInput, + CreateTransitGatewayConnectInputDict as CreateTransitGatewayConnectInputDict, CreateTransitGatewayConnectOutput as CreateTransitGatewayConnectOutput, CreateTransitGatewayConnectPeerInput as CreateTransitGatewayConnectPeerInput, + CreateTransitGatewayConnectPeerInputDict as CreateTransitGatewayConnectPeerInputDict, CreateTransitGatewayConnectPeerOutput as CreateTransitGatewayConnectPeerOutput, CreateTransitGatewayConnectRequestOptions as CreateTransitGatewayConnectRequestOptions, + CreateTransitGatewayConnectRequestOptionsDict as CreateTransitGatewayConnectRequestOptionsDict, CreateTransitGatewayInput as CreateTransitGatewayInput, + CreateTransitGatewayInputDict as CreateTransitGatewayInputDict, CreateTransitGatewayMeteringPolicyEntryInput as CreateTransitGatewayMeteringPolicyEntryInput, + CreateTransitGatewayMeteringPolicyEntryInputDict as CreateTransitGatewayMeteringPolicyEntryInputDict, CreateTransitGatewayMeteringPolicyEntryOutput as CreateTransitGatewayMeteringPolicyEntryOutput, CreateTransitGatewayMeteringPolicyInput as CreateTransitGatewayMeteringPolicyInput, + CreateTransitGatewayMeteringPolicyInputDict as CreateTransitGatewayMeteringPolicyInputDict, CreateTransitGatewayMeteringPolicyOutput as CreateTransitGatewayMeteringPolicyOutput, CreateTransitGatewayMulticastDomainInput as CreateTransitGatewayMulticastDomainInput, + CreateTransitGatewayMulticastDomainInputDict as CreateTransitGatewayMulticastDomainInputDict, CreateTransitGatewayMulticastDomainOutput as CreateTransitGatewayMulticastDomainOutput, CreateTransitGatewayMulticastDomainRequestOptions as CreateTransitGatewayMulticastDomainRequestOptions, + CreateTransitGatewayMulticastDomainRequestOptionsDict as CreateTransitGatewayMulticastDomainRequestOptionsDict, CreateTransitGatewayOutput as CreateTransitGatewayOutput, CreateTransitGatewayPeeringAttachmentInput as CreateTransitGatewayPeeringAttachmentInput, + CreateTransitGatewayPeeringAttachmentInputDict as CreateTransitGatewayPeeringAttachmentInputDict, CreateTransitGatewayPeeringAttachmentOutput as CreateTransitGatewayPeeringAttachmentOutput, CreateTransitGatewayPeeringAttachmentRequestOptions as CreateTransitGatewayPeeringAttachmentRequestOptions, + CreateTransitGatewayPeeringAttachmentRequestOptionsDict as CreateTransitGatewayPeeringAttachmentRequestOptionsDict, CreateTransitGatewayPolicyTableEntryInput as CreateTransitGatewayPolicyTableEntryInput, + CreateTransitGatewayPolicyTableEntryInputDict as CreateTransitGatewayPolicyTableEntryInputDict, CreateTransitGatewayPolicyTableEntryOutput as CreateTransitGatewayPolicyTableEntryOutput, CreateTransitGatewayPolicyTableInput as CreateTransitGatewayPolicyTableInput, + CreateTransitGatewayPolicyTableInputDict as CreateTransitGatewayPolicyTableInputDict, CreateTransitGatewayPolicyTableOutput as CreateTransitGatewayPolicyTableOutput, CreateTransitGatewayPrefixListReferenceInput as CreateTransitGatewayPrefixListReferenceInput, + CreateTransitGatewayPrefixListReferenceInputDict as CreateTransitGatewayPrefixListReferenceInputDict, CreateTransitGatewayPrefixListReferenceOutput as CreateTransitGatewayPrefixListReferenceOutput, CreateTransitGatewayRouteInput as CreateTransitGatewayRouteInput, + CreateTransitGatewayRouteInputDict as CreateTransitGatewayRouteInputDict, CreateTransitGatewayRouteOutput as CreateTransitGatewayRouteOutput, CreateTransitGatewayRouteTableAnnouncementInput as CreateTransitGatewayRouteTableAnnouncementInput, + CreateTransitGatewayRouteTableAnnouncementInputDict as CreateTransitGatewayRouteTableAnnouncementInputDict, CreateTransitGatewayRouteTableAnnouncementOutput as CreateTransitGatewayRouteTableAnnouncementOutput, CreateTransitGatewayRouteTableInput as CreateTransitGatewayRouteTableInput, + CreateTransitGatewayRouteTableInputDict as CreateTransitGatewayRouteTableInputDict, CreateTransitGatewayRouteTableOutput as CreateTransitGatewayRouteTableOutput, CreateTransitGatewayVpcAttachmentInput as CreateTransitGatewayVpcAttachmentInput, + CreateTransitGatewayVpcAttachmentInputDict as CreateTransitGatewayVpcAttachmentInputDict, CreateTransitGatewayVpcAttachmentOutput as CreateTransitGatewayVpcAttachmentOutput, CreateTransitGatewayVpcAttachmentRequestOptions as CreateTransitGatewayVpcAttachmentRequestOptions, + CreateTransitGatewayVpcAttachmentRequestOptionsDict as CreateTransitGatewayVpcAttachmentRequestOptionsDict, CreateVerifiedAccessEndpointCidrOptions as CreateVerifiedAccessEndpointCidrOptions, + CreateVerifiedAccessEndpointCidrOptionsDict as CreateVerifiedAccessEndpointCidrOptionsDict, CreateVerifiedAccessEndpointEniOptions as CreateVerifiedAccessEndpointEniOptions, + CreateVerifiedAccessEndpointEniOptionsDict as CreateVerifiedAccessEndpointEniOptionsDict, CreateVerifiedAccessEndpointInput as CreateVerifiedAccessEndpointInput, + CreateVerifiedAccessEndpointInputDict as CreateVerifiedAccessEndpointInputDict, CreateVerifiedAccessEndpointLoadBalancerOptions as CreateVerifiedAccessEndpointLoadBalancerOptions, + CreateVerifiedAccessEndpointLoadBalancerOptionsDict as CreateVerifiedAccessEndpointLoadBalancerOptionsDict, CreateVerifiedAccessEndpointOutput as CreateVerifiedAccessEndpointOutput, CreateVerifiedAccessEndpointPortRange as CreateVerifiedAccessEndpointPortRange, + CreateVerifiedAccessEndpointPortRangeDict as CreateVerifiedAccessEndpointPortRangeDict, CreateVerifiedAccessEndpointRdsOptions as CreateVerifiedAccessEndpointRdsOptions, + CreateVerifiedAccessEndpointRdsOptionsDict as CreateVerifiedAccessEndpointRdsOptionsDict, CreateVerifiedAccessGroupInput as CreateVerifiedAccessGroupInput, + CreateVerifiedAccessGroupInputDict as CreateVerifiedAccessGroupInputDict, CreateVerifiedAccessGroupOutput as CreateVerifiedAccessGroupOutput, CreateVerifiedAccessInstanceInput as CreateVerifiedAccessInstanceInput, + CreateVerifiedAccessInstanceInputDict as CreateVerifiedAccessInstanceInputDict, CreateVerifiedAccessInstanceOutput as CreateVerifiedAccessInstanceOutput, CreateVerifiedAccessNativeApplicationOidcOptions as CreateVerifiedAccessNativeApplicationOidcOptions, + CreateVerifiedAccessNativeApplicationOidcOptionsDict as CreateVerifiedAccessNativeApplicationOidcOptionsDict, CreateVerifiedAccessTrustProviderDeviceOptions as CreateVerifiedAccessTrustProviderDeviceOptions, + CreateVerifiedAccessTrustProviderDeviceOptionsDict as CreateVerifiedAccessTrustProviderDeviceOptionsDict, CreateVerifiedAccessTrustProviderInput as CreateVerifiedAccessTrustProviderInput, + CreateVerifiedAccessTrustProviderInputDict as CreateVerifiedAccessTrustProviderInputDict, CreateVerifiedAccessTrustProviderOidcOptions as CreateVerifiedAccessTrustProviderOidcOptions, + CreateVerifiedAccessTrustProviderOidcOptionsDict as CreateVerifiedAccessTrustProviderOidcOptionsDict, CreateVerifiedAccessTrustProviderOutput as CreateVerifiedAccessTrustProviderOutput, CreateVolumeInput as CreateVolumeInput, + CreateVolumeInputDict as CreateVolumeInputDict, CreateVolumeOutput as CreateVolumeOutput, CreateVolumePermission as CreateVolumePermission, + CreateVolumePermissionDict as CreateVolumePermissionDict, CreateVolumePermissionModifications as CreateVolumePermissionModifications, + CreateVolumePermissionModificationsDict as CreateVolumePermissionModificationsDict, CreateVpcBlockPublicAccessExclusionInput as CreateVpcBlockPublicAccessExclusionInput, + CreateVpcBlockPublicAccessExclusionInputDict as CreateVpcBlockPublicAccessExclusionInputDict, CreateVpcBlockPublicAccessExclusionOutput as CreateVpcBlockPublicAccessExclusionOutput, CreateVpcEncryptionControlInput as CreateVpcEncryptionControlInput, + CreateVpcEncryptionControlInputDict as CreateVpcEncryptionControlInputDict, CreateVpcEncryptionControlOutput as CreateVpcEncryptionControlOutput, CreateVpcEndpointConnectionNotificationInput as CreateVpcEndpointConnectionNotificationInput, + CreateVpcEndpointConnectionNotificationInputDict as CreateVpcEndpointConnectionNotificationInputDict, CreateVpcEndpointConnectionNotificationOutput as CreateVpcEndpointConnectionNotificationOutput, CreateVpcEndpointInput as CreateVpcEndpointInput, + CreateVpcEndpointInputDict as CreateVpcEndpointInputDict, CreateVpcEndpointOutput as CreateVpcEndpointOutput, CreateVpcEndpointServiceConfigurationInput as CreateVpcEndpointServiceConfigurationInput, + CreateVpcEndpointServiceConfigurationInputDict as CreateVpcEndpointServiceConfigurationInputDict, CreateVpcEndpointServiceConfigurationOutput as CreateVpcEndpointServiceConfigurationOutput, CreateVpcInput as CreateVpcInput, + CreateVpcInputDict as CreateVpcInputDict, CreateVpcOutput as CreateVpcOutput, CreateVpcPeeringConnectionInput as CreateVpcPeeringConnectionInput, + CreateVpcPeeringConnectionInputDict as CreateVpcPeeringConnectionInputDict, CreateVpcPeeringConnectionOutput as CreateVpcPeeringConnectionOutput, CreateVpnConcentratorInput as CreateVpnConcentratorInput, + CreateVpnConcentratorInputDict as CreateVpnConcentratorInputDict, CreateVpnConcentratorOutput as CreateVpnConcentratorOutput, CreateVpnConnectionInput as CreateVpnConnectionInput, + CreateVpnConnectionInputDict as CreateVpnConnectionInputDict, CreateVpnConnectionOutput as CreateVpnConnectionOutput, CreateVpnConnectionRouteInput as CreateVpnConnectionRouteInput, + CreateVpnConnectionRouteInputDict as CreateVpnConnectionRouteInputDict, CreateVpnConnectionRouteOutput as CreateVpnConnectionRouteOutput, CreateVpnGatewayInput as CreateVpnGatewayInput, + CreateVpnGatewayInputDict as CreateVpnGatewayInputDict, CreateVpnGatewayOutput as CreateVpnGatewayOutput, CreationDateCondition as CreationDateCondition, CreationDateConditionRequest as CreationDateConditionRequest, + CreationDateConditionRequestDict as CreationDateConditionRequestDict, CreditSpecification as CreditSpecification, CreditSpecificationRequest as CreditSpecificationRequest, + CreditSpecificationRequestDict as CreditSpecificationRequestDict, CurrencyCodeValues as CurrencyCodeValues, CustomerGateway as CustomerGateway, CustomTagKeyValueRequestPair as CustomTagKeyValueRequestPair, + CustomTagKeyValueRequestPairDict as CustomTagKeyValueRequestPairDict, CustomTagKeyValueResponsePair as CustomTagKeyValueResponsePair, DatafeedSubscriptionState as DatafeedSubscriptionState, DataQuery as DataQuery, + DataQueryDict as DataQueryDict, DataResponse as DataResponse, DeclarativePoliciesReport as DeclarativePoliciesReport, DefaultConnectionTrackingConfiguration as DefaultConnectionTrackingConfiguration, @@ -648,744 +879,1099 @@ from ._private.models_2 import ( DefaultRouteTablePropagationValue as DefaultRouteTablePropagationValue, DefaultTargetCapacityType as DefaultTargetCapacityType, DeleteApplicationStatusCheckInput as DeleteApplicationStatusCheckInput, + DeleteApplicationStatusCheckInputDict as DeleteApplicationStatusCheckInputDict, DeleteApplicationStatusCheckOutput as DeleteApplicationStatusCheckOutput, DeleteCapacityManagerDataExportInput as DeleteCapacityManagerDataExportInput, + DeleteCapacityManagerDataExportInputDict as DeleteCapacityManagerDataExportInputDict, DeleteCapacityManagerDataExportOutput as DeleteCapacityManagerDataExportOutput, DeleteCarrierGatewayInput as DeleteCarrierGatewayInput, + DeleteCarrierGatewayInputDict as DeleteCarrierGatewayInputDict, DeleteCarrierGatewayOutput as DeleteCarrierGatewayOutput, DeleteClientVpnEndpointAuthorizationPolicyInput as DeleteClientVpnEndpointAuthorizationPolicyInput, + DeleteClientVpnEndpointAuthorizationPolicyInputDict as DeleteClientVpnEndpointAuthorizationPolicyInputDict, DeleteClientVpnEndpointAuthorizationPolicyOutput as DeleteClientVpnEndpointAuthorizationPolicyOutput, DeleteClientVpnEndpointInput as DeleteClientVpnEndpointInput, + DeleteClientVpnEndpointInputDict as DeleteClientVpnEndpointInputDict, DeleteClientVpnEndpointOutput as DeleteClientVpnEndpointOutput, DeleteClientVpnRouteInput as DeleteClientVpnRouteInput, + DeleteClientVpnRouteInputDict as DeleteClientVpnRouteInputDict, DeleteClientVpnRouteOutput as DeleteClientVpnRouteOutput, DeleteCoipCidrInput as DeleteCoipCidrInput, + DeleteCoipCidrInputDict as DeleteCoipCidrInputDict, DeleteCoipCidrOutput as DeleteCoipCidrOutput, DeleteCoipPoolInput as DeleteCoipPoolInput, + DeleteCoipPoolInputDict as DeleteCoipPoolInputDict, DeleteCoipPoolOutput as DeleteCoipPoolOutput, DeleteCustomerGatewayInput as DeleteCustomerGatewayInput, + DeleteCustomerGatewayInputDict as DeleteCustomerGatewayInputDict, DeleteCustomerGatewayOutput as DeleteCustomerGatewayOutput, DeleteDhcpOptionsInput as DeleteDhcpOptionsInput, + DeleteDhcpOptionsInputDict as DeleteDhcpOptionsInputDict, DeleteDhcpOptionsOutput as DeleteDhcpOptionsOutput, DeleteEgressOnlyInternetGatewayInput as DeleteEgressOnlyInternetGatewayInput, + DeleteEgressOnlyInternetGatewayInputDict as DeleteEgressOnlyInternetGatewayInputDict, DeleteEgressOnlyInternetGatewayOutput as DeleteEgressOnlyInternetGatewayOutput, DeleteFleetError as DeleteFleetError, DeleteFleetErrorCode as DeleteFleetErrorCode, DeleteFleetErrorItem as DeleteFleetErrorItem, DeleteFleetsInput as DeleteFleetsInput, + DeleteFleetsInputDict as DeleteFleetsInputDict, DeleteFleetsOutput as DeleteFleetsOutput, DeleteFleetSuccessItem as DeleteFleetSuccessItem, DeleteFlowLogsInput as DeleteFlowLogsInput, + DeleteFlowLogsInputDict as DeleteFlowLogsInputDict, DeleteFlowLogsOutput as DeleteFlowLogsOutput, DeleteFpgaImageInput as DeleteFpgaImageInput, + DeleteFpgaImageInputDict as DeleteFpgaImageInputDict, DeleteFpgaImageOutput as DeleteFpgaImageOutput, DeleteImageUsageReportInput as DeleteImageUsageReportInput, + DeleteImageUsageReportInputDict as DeleteImageUsageReportInputDict, DeleteImageUsageReportOutput as DeleteImageUsageReportOutput, DeleteInstanceConnectEndpointInput as DeleteInstanceConnectEndpointInput, + DeleteInstanceConnectEndpointInputDict as DeleteInstanceConnectEndpointInputDict, DeleteInstanceConnectEndpointOutput as DeleteInstanceConnectEndpointOutput, DeleteInstanceEventWindowInput as DeleteInstanceEventWindowInput, + DeleteInstanceEventWindowInputDict as DeleteInstanceEventWindowInputDict, DeleteInstanceEventWindowOutput as DeleteInstanceEventWindowOutput, DeleteInternetGatewayInput as DeleteInternetGatewayInput, + DeleteInternetGatewayInputDict as DeleteInternetGatewayInputDict, DeleteInternetGatewayOutput as DeleteInternetGatewayOutput, DeleteIpamExternalResourceVerificationTokenInput as DeleteIpamExternalResourceVerificationTokenInput, + DeleteIpamExternalResourceVerificationTokenInputDict as DeleteIpamExternalResourceVerificationTokenInputDict, DeleteIpamExternalResourceVerificationTokenOutput as DeleteIpamExternalResourceVerificationTokenOutput, DeleteIpamInput as DeleteIpamInput, + DeleteIpamInputDict as DeleteIpamInputDict, DeleteIpamInternetRegistryAssociationInput as DeleteIpamInternetRegistryAssociationInput, + DeleteIpamInternetRegistryAssociationInputDict as DeleteIpamInternetRegistryAssociationInputDict, DeleteIpamInternetRegistryAssociationOutput as DeleteIpamInternetRegistryAssociationOutput, DeleteIpamOutput as DeleteIpamOutput, DeleteIpamPolicyInput as DeleteIpamPolicyInput, + DeleteIpamPolicyInputDict as DeleteIpamPolicyInputDict, DeleteIpamPolicyOutput as DeleteIpamPolicyOutput, DeleteIpamPoolInput as DeleteIpamPoolInput, + DeleteIpamPoolInputDict as DeleteIpamPoolInputDict, DeleteIpamPoolOutput as DeleteIpamPoolOutput, DeleteIpamPrefixListResolverInput as DeleteIpamPrefixListResolverInput, + DeleteIpamPrefixListResolverInputDict as DeleteIpamPrefixListResolverInputDict, DeleteIpamPrefixListResolverOutput as DeleteIpamPrefixListResolverOutput, DeleteIpamPrefixListResolverTargetInput as DeleteIpamPrefixListResolverTargetInput, + DeleteIpamPrefixListResolverTargetInputDict as DeleteIpamPrefixListResolverTargetInputDict, DeleteIpamPrefixListResolverTargetOutput as DeleteIpamPrefixListResolverTargetOutput, DeleteIpamResourceDiscoveryInput as DeleteIpamResourceDiscoveryInput, + DeleteIpamResourceDiscoveryInputDict as DeleteIpamResourceDiscoveryInputDict, DeleteIpamResourceDiscoveryOutput as DeleteIpamResourceDiscoveryOutput, DeleteIpamRoutingPolicyRegistrationInput as DeleteIpamRoutingPolicyRegistrationInput, + DeleteIpamRoutingPolicyRegistrationInputDict as DeleteIpamRoutingPolicyRegistrationInputDict, DeleteIpamRoutingPolicyRegistrationOutput as DeleteIpamRoutingPolicyRegistrationOutput, DeleteIpamScopeInput as DeleteIpamScopeInput, + DeleteIpamScopeInputDict as DeleteIpamScopeInputDict, DeleteIpamScopeOutput as DeleteIpamScopeOutput, DeleteKeyPairInput as DeleteKeyPairInput, + DeleteKeyPairInputDict as DeleteKeyPairInputDict, DeleteKeyPairOutput as DeleteKeyPairOutput, DeleteLaunchTemplateInput as DeleteLaunchTemplateInput, + DeleteLaunchTemplateInputDict as DeleteLaunchTemplateInputDict, DeleteLaunchTemplateOutput as DeleteLaunchTemplateOutput, DeleteLaunchTemplateVersionsInput as DeleteLaunchTemplateVersionsInput, + DeleteLaunchTemplateVersionsInputDict as DeleteLaunchTemplateVersionsInputDict, DeleteLaunchTemplateVersionsOutput as DeleteLaunchTemplateVersionsOutput, DeleteLaunchTemplateVersionsResponseErrorItem as DeleteLaunchTemplateVersionsResponseErrorItem, DeleteLaunchTemplateVersionsResponseSuccessItem as DeleteLaunchTemplateVersionsResponseSuccessItem, DeleteLocalGatewayRouteInput as DeleteLocalGatewayRouteInput, + DeleteLocalGatewayRouteInputDict as DeleteLocalGatewayRouteInputDict, DeleteLocalGatewayRouteOutput as DeleteLocalGatewayRouteOutput, DeleteLocalGatewayRouteTableInput as DeleteLocalGatewayRouteTableInput, + DeleteLocalGatewayRouteTableInputDict as DeleteLocalGatewayRouteTableInputDict, DeleteLocalGatewayRouteTableOutput as DeleteLocalGatewayRouteTableOutput, DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput as DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, + DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict as DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict, DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput as DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, DeleteLocalGatewayRouteTableVpcAssociationInput as DeleteLocalGatewayRouteTableVpcAssociationInput, + DeleteLocalGatewayRouteTableVpcAssociationInputDict as DeleteLocalGatewayRouteTableVpcAssociationInputDict, DeleteLocalGatewayRouteTableVpcAssociationOutput as DeleteLocalGatewayRouteTableVpcAssociationOutput, DeleteLocalGatewayVirtualInterfaceGroupInput as DeleteLocalGatewayVirtualInterfaceGroupInput, + DeleteLocalGatewayVirtualInterfaceGroupInputDict as DeleteLocalGatewayVirtualInterfaceGroupInputDict, DeleteLocalGatewayVirtualInterfaceGroupOutput as DeleteLocalGatewayVirtualInterfaceGroupOutput, DeleteLocalGatewayVirtualInterfaceInput as DeleteLocalGatewayVirtualInterfaceInput, + DeleteLocalGatewayVirtualInterfaceInputDict as DeleteLocalGatewayVirtualInterfaceInputDict, DeleteLocalGatewayVirtualInterfaceOutput as DeleteLocalGatewayVirtualInterfaceOutput, DeleteManagedPrefixListInput as DeleteManagedPrefixListInput, + DeleteManagedPrefixListInputDict as DeleteManagedPrefixListInputDict, DeleteManagedPrefixListOutput as DeleteManagedPrefixListOutput, DeleteNatGatewayInput as DeleteNatGatewayInput, + DeleteNatGatewayInputDict as DeleteNatGatewayInputDict, DeleteNatGatewayOutput as DeleteNatGatewayOutput, DeleteNetworkAclEntryInput as DeleteNetworkAclEntryInput, + DeleteNetworkAclEntryInputDict as DeleteNetworkAclEntryInputDict, DeleteNetworkAclEntryOutput as DeleteNetworkAclEntryOutput, DeleteNetworkAclInput as DeleteNetworkAclInput, + DeleteNetworkAclInputDict as DeleteNetworkAclInputDict, DeleteNetworkAclOutput as DeleteNetworkAclOutput, DeleteNetworkInsightsAccessScopeAnalysisInput as DeleteNetworkInsightsAccessScopeAnalysisInput, + DeleteNetworkInsightsAccessScopeAnalysisInputDict as DeleteNetworkInsightsAccessScopeAnalysisInputDict, DeleteNetworkInsightsAccessScopeAnalysisOutput as DeleteNetworkInsightsAccessScopeAnalysisOutput, DeleteNetworkInsightsAccessScopeInput as DeleteNetworkInsightsAccessScopeInput, + DeleteNetworkInsightsAccessScopeInputDict as DeleteNetworkInsightsAccessScopeInputDict, DeleteNetworkInsightsAccessScopeOutput as DeleteNetworkInsightsAccessScopeOutput, DeleteNetworkInsightsAnalysisInput as DeleteNetworkInsightsAnalysisInput, + DeleteNetworkInsightsAnalysisInputDict as DeleteNetworkInsightsAnalysisInputDict, DeleteNetworkInsightsAnalysisOutput as DeleteNetworkInsightsAnalysisOutput, DeleteNetworkInsightsPathInput as DeleteNetworkInsightsPathInput, + DeleteNetworkInsightsPathInputDict as DeleteNetworkInsightsPathInputDict, DeleteNetworkInsightsPathOutput as DeleteNetworkInsightsPathOutput, DeleteNetworkInterfaceInput as DeleteNetworkInterfaceInput, + DeleteNetworkInterfaceInputDict as DeleteNetworkInterfaceInputDict, DeleteNetworkInterfaceOutput as DeleteNetworkInterfaceOutput, DeleteNetworkInterfacePermissionInput as DeleteNetworkInterfacePermissionInput, + DeleteNetworkInterfacePermissionInputDict as DeleteNetworkInterfacePermissionInputDict, DeleteNetworkInterfacePermissionOutput as DeleteNetworkInterfacePermissionOutput, DeletePlacementGroupInput as DeletePlacementGroupInput, + DeletePlacementGroupInputDict as DeletePlacementGroupInputDict, DeletePlacementGroupOutput as DeletePlacementGroupOutput, DeletePublicIpv4PoolInput as DeletePublicIpv4PoolInput, + DeletePublicIpv4PoolInputDict as DeletePublicIpv4PoolInputDict, DeletePublicIpv4PoolOutput as DeletePublicIpv4PoolOutput, DeleteQueuedReservedInstancesError as DeleteQueuedReservedInstancesError, DeleteQueuedReservedInstancesErrorCode as DeleteQueuedReservedInstancesErrorCode, DeleteQueuedReservedInstancesInput as DeleteQueuedReservedInstancesInput, + DeleteQueuedReservedInstancesInputDict as DeleteQueuedReservedInstancesInputDict, DeleteQueuedReservedInstancesOutput as DeleteQueuedReservedInstancesOutput, DeleteRouteInput as DeleteRouteInput, + DeleteRouteInputDict as DeleteRouteInputDict, DeleteRouteOutput as DeleteRouteOutput, DeleteRouteServerEndpointInput as DeleteRouteServerEndpointInput, + DeleteRouteServerEndpointInputDict as DeleteRouteServerEndpointInputDict, DeleteRouteServerEndpointOutput as DeleteRouteServerEndpointOutput, DeleteRouteServerInput as DeleteRouteServerInput, + DeleteRouteServerInputDict as DeleteRouteServerInputDict, DeleteRouteServerOutput as DeleteRouteServerOutput, DeleteRouteServerPeerInput as DeleteRouteServerPeerInput, + DeleteRouteServerPeerInputDict as DeleteRouteServerPeerInputDict, DeleteRouteServerPeerOutput as DeleteRouteServerPeerOutput, DeleteRouteTableInput as DeleteRouteTableInput, + DeleteRouteTableInputDict as DeleteRouteTableInputDict, ) -from ._private.models_3 import ( +from ._private.models_03 import ( DeleteRouteTableOutput as DeleteRouteTableOutput, DeleteSecondaryNetworkInput as DeleteSecondaryNetworkInput, + DeleteSecondaryNetworkInputDict as DeleteSecondaryNetworkInputDict, DeleteSecondaryNetworkOutput as DeleteSecondaryNetworkOutput, DeleteSecondarySubnetInput as DeleteSecondarySubnetInput, + DeleteSecondarySubnetInputDict as DeleteSecondarySubnetInputDict, DeleteSecondarySubnetOutput as DeleteSecondarySubnetOutput, DeleteSecurityGroupInput as DeleteSecurityGroupInput, + DeleteSecurityGroupInputDict as DeleteSecurityGroupInputDict, DeleteSecurityGroupOutput as DeleteSecurityGroupOutput, DeleteSnapshotInput as DeleteSnapshotInput, + DeleteSnapshotInputDict as DeleteSnapshotInputDict, DeleteSnapshotOutput as DeleteSnapshotOutput, DeleteSnapshotReturnCode as DeleteSnapshotReturnCode, DeleteSpotDatafeedSubscriptionInput as DeleteSpotDatafeedSubscriptionInput, + DeleteSpotDatafeedSubscriptionInputDict as DeleteSpotDatafeedSubscriptionInputDict, DeleteSpotDatafeedSubscriptionOutput as DeleteSpotDatafeedSubscriptionOutput, DeleteSubnetCidrReservationInput as DeleteSubnetCidrReservationInput, + DeleteSubnetCidrReservationInputDict as DeleteSubnetCidrReservationInputDict, DeleteSubnetCidrReservationOutput as DeleteSubnetCidrReservationOutput, DeleteSubnetInput as DeleteSubnetInput, + DeleteSubnetInputDict as DeleteSubnetInputDict, DeleteSubnetOutput as DeleteSubnetOutput, DeleteTagsInput as DeleteTagsInput, + DeleteTagsInputDict as DeleteTagsInputDict, DeleteTagsOutput as DeleteTagsOutput, DeleteTrafficMirrorFilterInput as DeleteTrafficMirrorFilterInput, + DeleteTrafficMirrorFilterInputDict as DeleteTrafficMirrorFilterInputDict, DeleteTrafficMirrorFilterOutput as DeleteTrafficMirrorFilterOutput, DeleteTrafficMirrorFilterRuleInput as DeleteTrafficMirrorFilterRuleInput, + DeleteTrafficMirrorFilterRuleInputDict as DeleteTrafficMirrorFilterRuleInputDict, DeleteTrafficMirrorFilterRuleOutput as DeleteTrafficMirrorFilterRuleOutput, DeleteTrafficMirrorSessionInput as DeleteTrafficMirrorSessionInput, + DeleteTrafficMirrorSessionInputDict as DeleteTrafficMirrorSessionInputDict, DeleteTrafficMirrorSessionOutput as DeleteTrafficMirrorSessionOutput, DeleteTrafficMirrorTargetInput as DeleteTrafficMirrorTargetInput, + DeleteTrafficMirrorTargetInputDict as DeleteTrafficMirrorTargetInputDict, DeleteTrafficMirrorTargetOutput as DeleteTrafficMirrorTargetOutput, DeleteTransitGatewayClientVpnAttachmentInput as DeleteTransitGatewayClientVpnAttachmentInput, + DeleteTransitGatewayClientVpnAttachmentInputDict as DeleteTransitGatewayClientVpnAttachmentInputDict, DeleteTransitGatewayClientVpnAttachmentOutput as DeleteTransitGatewayClientVpnAttachmentOutput, DeleteTransitGatewayConnectInput as DeleteTransitGatewayConnectInput, + DeleteTransitGatewayConnectInputDict as DeleteTransitGatewayConnectInputDict, DeleteTransitGatewayConnectOutput as DeleteTransitGatewayConnectOutput, DeleteTransitGatewayConnectPeerInput as DeleteTransitGatewayConnectPeerInput, + DeleteTransitGatewayConnectPeerInputDict as DeleteTransitGatewayConnectPeerInputDict, DeleteTransitGatewayConnectPeerOutput as DeleteTransitGatewayConnectPeerOutput, DeleteTransitGatewayInput as DeleteTransitGatewayInput, + DeleteTransitGatewayInputDict as DeleteTransitGatewayInputDict, DeleteTransitGatewayMeteringPolicyEntryInput as DeleteTransitGatewayMeteringPolicyEntryInput, + DeleteTransitGatewayMeteringPolicyEntryInputDict as DeleteTransitGatewayMeteringPolicyEntryInputDict, DeleteTransitGatewayMeteringPolicyEntryOutput as DeleteTransitGatewayMeteringPolicyEntryOutput, DeleteTransitGatewayMeteringPolicyInput as DeleteTransitGatewayMeteringPolicyInput, + DeleteTransitGatewayMeteringPolicyInputDict as DeleteTransitGatewayMeteringPolicyInputDict, DeleteTransitGatewayMeteringPolicyOutput as DeleteTransitGatewayMeteringPolicyOutput, DeleteTransitGatewayMulticastDomainInput as DeleteTransitGatewayMulticastDomainInput, + DeleteTransitGatewayMulticastDomainInputDict as DeleteTransitGatewayMulticastDomainInputDict, DeleteTransitGatewayMulticastDomainOutput as DeleteTransitGatewayMulticastDomainOutput, DeleteTransitGatewayOutput as DeleteTransitGatewayOutput, DeleteTransitGatewayPeeringAttachmentInput as DeleteTransitGatewayPeeringAttachmentInput, + DeleteTransitGatewayPeeringAttachmentInputDict as DeleteTransitGatewayPeeringAttachmentInputDict, DeleteTransitGatewayPeeringAttachmentOutput as DeleteTransitGatewayPeeringAttachmentOutput, DeleteTransitGatewayPolicyTableEntryInput as DeleteTransitGatewayPolicyTableEntryInput, + DeleteTransitGatewayPolicyTableEntryInputDict as DeleteTransitGatewayPolicyTableEntryInputDict, DeleteTransitGatewayPolicyTableEntryOutput as DeleteTransitGatewayPolicyTableEntryOutput, DeleteTransitGatewayPolicyTableInput as DeleteTransitGatewayPolicyTableInput, + DeleteTransitGatewayPolicyTableInputDict as DeleteTransitGatewayPolicyTableInputDict, DeleteTransitGatewayPolicyTableOutput as DeleteTransitGatewayPolicyTableOutput, DeleteTransitGatewayPrefixListReferenceInput as DeleteTransitGatewayPrefixListReferenceInput, + DeleteTransitGatewayPrefixListReferenceInputDict as DeleteTransitGatewayPrefixListReferenceInputDict, DeleteTransitGatewayPrefixListReferenceOutput as DeleteTransitGatewayPrefixListReferenceOutput, DeleteTransitGatewayRouteInput as DeleteTransitGatewayRouteInput, + DeleteTransitGatewayRouteInputDict as DeleteTransitGatewayRouteInputDict, DeleteTransitGatewayRouteOutput as DeleteTransitGatewayRouteOutput, DeleteTransitGatewayRouteTableAnnouncementInput as DeleteTransitGatewayRouteTableAnnouncementInput, + DeleteTransitGatewayRouteTableAnnouncementInputDict as DeleteTransitGatewayRouteTableAnnouncementInputDict, DeleteTransitGatewayRouteTableAnnouncementOutput as DeleteTransitGatewayRouteTableAnnouncementOutput, DeleteTransitGatewayRouteTableInput as DeleteTransitGatewayRouteTableInput, + DeleteTransitGatewayRouteTableInputDict as DeleteTransitGatewayRouteTableInputDict, DeleteTransitGatewayRouteTableOutput as DeleteTransitGatewayRouteTableOutput, DeleteTransitGatewayVpcAttachmentInput as DeleteTransitGatewayVpcAttachmentInput, + DeleteTransitGatewayVpcAttachmentInputDict as DeleteTransitGatewayVpcAttachmentInputDict, DeleteTransitGatewayVpcAttachmentOutput as DeleteTransitGatewayVpcAttachmentOutput, DeleteVerifiedAccessEndpointInput as DeleteVerifiedAccessEndpointInput, + DeleteVerifiedAccessEndpointInputDict as DeleteVerifiedAccessEndpointInputDict, DeleteVerifiedAccessEndpointOutput as DeleteVerifiedAccessEndpointOutput, DeleteVerifiedAccessGroupInput as DeleteVerifiedAccessGroupInput, + DeleteVerifiedAccessGroupInputDict as DeleteVerifiedAccessGroupInputDict, DeleteVerifiedAccessGroupOutput as DeleteVerifiedAccessGroupOutput, DeleteVerifiedAccessInstanceInput as DeleteVerifiedAccessInstanceInput, + DeleteVerifiedAccessInstanceInputDict as DeleteVerifiedAccessInstanceInputDict, DeleteVerifiedAccessInstanceOutput as DeleteVerifiedAccessInstanceOutput, DeleteVerifiedAccessTrustProviderInput as DeleteVerifiedAccessTrustProviderInput, + DeleteVerifiedAccessTrustProviderInputDict as DeleteVerifiedAccessTrustProviderInputDict, DeleteVerifiedAccessTrustProviderOutput as DeleteVerifiedAccessTrustProviderOutput, DeleteVolumeInput as DeleteVolumeInput, + DeleteVolumeInputDict as DeleteVolumeInputDict, DeleteVolumeOutput as DeleteVolumeOutput, DeleteVpcBlockPublicAccessExclusionInput as DeleteVpcBlockPublicAccessExclusionInput, + DeleteVpcBlockPublicAccessExclusionInputDict as DeleteVpcBlockPublicAccessExclusionInputDict, DeleteVpcBlockPublicAccessExclusionOutput as DeleteVpcBlockPublicAccessExclusionOutput, DeleteVpcEncryptionControlInput as DeleteVpcEncryptionControlInput, + DeleteVpcEncryptionControlInputDict as DeleteVpcEncryptionControlInputDict, DeleteVpcEncryptionControlOutput as DeleteVpcEncryptionControlOutput, DeleteVpcEndpointConnectionNotificationsInput as DeleteVpcEndpointConnectionNotificationsInput, + DeleteVpcEndpointConnectionNotificationsInputDict as DeleteVpcEndpointConnectionNotificationsInputDict, DeleteVpcEndpointConnectionNotificationsOutput as DeleteVpcEndpointConnectionNotificationsOutput, DeleteVpcEndpointServiceConfigurationsInput as DeleteVpcEndpointServiceConfigurationsInput, + DeleteVpcEndpointServiceConfigurationsInputDict as DeleteVpcEndpointServiceConfigurationsInputDict, DeleteVpcEndpointServiceConfigurationsOutput as DeleteVpcEndpointServiceConfigurationsOutput, DeleteVpcEndpointsInput as DeleteVpcEndpointsInput, + DeleteVpcEndpointsInputDict as DeleteVpcEndpointsInputDict, DeleteVpcEndpointsOutput as DeleteVpcEndpointsOutput, DeleteVpcInput as DeleteVpcInput, + DeleteVpcInputDict as DeleteVpcInputDict, DeleteVpcOutput as DeleteVpcOutput, DeleteVpcPeeringConnectionInput as DeleteVpcPeeringConnectionInput, + DeleteVpcPeeringConnectionInputDict as DeleteVpcPeeringConnectionInputDict, DeleteVpcPeeringConnectionOutput as DeleteVpcPeeringConnectionOutput, DeleteVpnConcentratorInput as DeleteVpnConcentratorInput, + DeleteVpnConcentratorInputDict as DeleteVpnConcentratorInputDict, DeleteVpnConcentratorOutput as DeleteVpnConcentratorOutput, DeleteVpnConnectionInput as DeleteVpnConnectionInput, + DeleteVpnConnectionInputDict as DeleteVpnConnectionInputDict, DeleteVpnConnectionOutput as DeleteVpnConnectionOutput, DeleteVpnConnectionRouteInput as DeleteVpnConnectionRouteInput, + DeleteVpnConnectionRouteInputDict as DeleteVpnConnectionRouteInputDict, DeleteVpnConnectionRouteOutput as DeleteVpnConnectionRouteOutput, DeleteVpnGatewayInput as DeleteVpnGatewayInput, + DeleteVpnGatewayInputDict as DeleteVpnGatewayInputDict, DeleteVpnGatewayOutput as DeleteVpnGatewayOutput, DeprecationTimeCondition as DeprecationTimeCondition, DeprecationTimeConditionRequest as DeprecationTimeConditionRequest, + DeprecationTimeConditionRequestDict as DeprecationTimeConditionRequestDict, DeprovisionByoipCidrInput as DeprovisionByoipCidrInput, + DeprovisionByoipCidrInputDict as DeprovisionByoipCidrInputDict, DeprovisionByoipCidrOutput as DeprovisionByoipCidrOutput, DeprovisionIpamByoasnInput as DeprovisionIpamByoasnInput, + DeprovisionIpamByoasnInputDict as DeprovisionIpamByoasnInputDict, DeprovisionIpamByoasnOutput as DeprovisionIpamByoasnOutput, DeprovisionIpamPoolCidrInput as DeprovisionIpamPoolCidrInput, + DeprovisionIpamPoolCidrInputDict as DeprovisionIpamPoolCidrInputDict, DeprovisionIpamPoolCidrOutput as DeprovisionIpamPoolCidrOutput, DeprovisionPublicIpv4PoolCidrInput as DeprovisionPublicIpv4PoolCidrInput, + DeprovisionPublicIpv4PoolCidrInputDict as DeprovisionPublicIpv4PoolCidrInputDict, DeprovisionPublicIpv4PoolCidrOutput as DeprovisionPublicIpv4PoolCidrOutput, DeregisterImageInput as DeregisterImageInput, + DeregisterImageInputDict as DeregisterImageInputDict, DeregisterImageOutput as DeregisterImageOutput, DeregisterInstanceEventNotificationAttributesInput as DeregisterInstanceEventNotificationAttributesInput, + DeregisterInstanceEventNotificationAttributesInputDict as DeregisterInstanceEventNotificationAttributesInputDict, DeregisterInstanceEventNotificationAttributesOutput as DeregisterInstanceEventNotificationAttributesOutput, DeregisterInstanceTagAttributeRequest as DeregisterInstanceTagAttributeRequest, + DeregisterInstanceTagAttributeRequestDict as DeregisterInstanceTagAttributeRequestDict, DeregisterTransitGatewayMulticastGroupMembersInput as DeregisterTransitGatewayMulticastGroupMembersInput, + DeregisterTransitGatewayMulticastGroupMembersInputDict as DeregisterTransitGatewayMulticastGroupMembersInputDict, DeregisterTransitGatewayMulticastGroupMembersOutput as DeregisterTransitGatewayMulticastGroupMembersOutput, DeregisterTransitGatewayMulticastGroupSourcesInput as DeregisterTransitGatewayMulticastGroupSourcesInput, + DeregisterTransitGatewayMulticastGroupSourcesInputDict as DeregisterTransitGatewayMulticastGroupSourcesInputDict, DeregisterTransitGatewayMulticastGroupSourcesOutput as DeregisterTransitGatewayMulticastGroupSourcesOutput, DescribeAccountAttributesInput as DescribeAccountAttributesInput, + DescribeAccountAttributesInputDict as DescribeAccountAttributesInputDict, DescribeAccountAttributesOutput as DescribeAccountAttributesOutput, DescribeAccountVpcEncryptionControlInput as DescribeAccountVpcEncryptionControlInput, + DescribeAccountVpcEncryptionControlInputDict as DescribeAccountVpcEncryptionControlInputDict, DescribeAccountVpcEncryptionControlOutput as DescribeAccountVpcEncryptionControlOutput, DescribeAddressesAttributeInput as DescribeAddressesAttributeInput, + DescribeAddressesAttributeInputDict as DescribeAddressesAttributeInputDict, DescribeAddressesAttributeOutput as DescribeAddressesAttributeOutput, DescribeAddressesInput as DescribeAddressesInput, + DescribeAddressesInputDict as DescribeAddressesInputDict, DescribeAddressesOutput as DescribeAddressesOutput, DescribeAddressTransfersInput as DescribeAddressTransfersInput, + DescribeAddressTransfersInputDict as DescribeAddressTransfersInputDict, DescribeAddressTransfersOutput as DescribeAddressTransfersOutput, DescribeAggregateIdFormatInput as DescribeAggregateIdFormatInput, + DescribeAggregateIdFormatInputDict as DescribeAggregateIdFormatInputDict, DescribeAggregateIdFormatOutput as DescribeAggregateIdFormatOutput, DescribeApplicationStatusCheckAssociationsInput as DescribeApplicationStatusCheckAssociationsInput, + DescribeApplicationStatusCheckAssociationsInputDict as DescribeApplicationStatusCheckAssociationsInputDict, DescribeApplicationStatusCheckAssociationsOutput as DescribeApplicationStatusCheckAssociationsOutput, DescribeApplicationStatusChecksInput as DescribeApplicationStatusChecksInput, + DescribeApplicationStatusChecksInputDict as DescribeApplicationStatusChecksInputDict, DescribeApplicationStatusChecksOutput as DescribeApplicationStatusChecksOutput, DescribeApplicationStatusInput as DescribeApplicationStatusInput, + DescribeApplicationStatusInputDict as DescribeApplicationStatusInputDict, DescribeApplicationStatusOutput as DescribeApplicationStatusOutput, DescribeAvailabilityZonesInput as DescribeAvailabilityZonesInput, + DescribeAvailabilityZonesInputDict as DescribeAvailabilityZonesInputDict, DescribeAvailabilityZonesOutput as DescribeAvailabilityZonesOutput, DescribeAwsNetworkPerformanceMetricSubscriptionsInput as DescribeAwsNetworkPerformanceMetricSubscriptionsInput, + DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict as DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict, DescribeAwsNetworkPerformanceMetricSubscriptionsOutput as DescribeAwsNetworkPerformanceMetricSubscriptionsOutput, DescribeBundleTasksInput as DescribeBundleTasksInput, + DescribeBundleTasksInputDict as DescribeBundleTasksInputDict, DescribeBundleTasksOutput as DescribeBundleTasksOutput, DescribeByoipCidrsInput as DescribeByoipCidrsInput, + DescribeByoipCidrsInputDict as DescribeByoipCidrsInputDict, DescribeByoipCidrsOutput as DescribeByoipCidrsOutput, DescribeCapacityBlockExtensionHistoryInput as DescribeCapacityBlockExtensionHistoryInput, + DescribeCapacityBlockExtensionHistoryInputDict as DescribeCapacityBlockExtensionHistoryInputDict, DescribeCapacityBlockExtensionHistoryOutput as DescribeCapacityBlockExtensionHistoryOutput, DescribeCapacityBlockExtensionOfferingsInput as DescribeCapacityBlockExtensionOfferingsInput, + DescribeCapacityBlockExtensionOfferingsInputDict as DescribeCapacityBlockExtensionOfferingsInputDict, DescribeCapacityBlockExtensionOfferingsOutput as DescribeCapacityBlockExtensionOfferingsOutput, DescribeCapacityBlockOfferingsInput as DescribeCapacityBlockOfferingsInput, + DescribeCapacityBlockOfferingsInputDict as DescribeCapacityBlockOfferingsInputDict, DescribeCapacityBlockOfferingsOutput as DescribeCapacityBlockOfferingsOutput, DescribeCapacityBlocksInput as DescribeCapacityBlocksInput, + DescribeCapacityBlocksInputDict as DescribeCapacityBlocksInputDict, DescribeCapacityBlocksOutput as DescribeCapacityBlocksOutput, DescribeCapacityBlockStatusInput as DescribeCapacityBlockStatusInput, + DescribeCapacityBlockStatusInputDict as DescribeCapacityBlockStatusInputDict, DescribeCapacityBlockStatusOutput as DescribeCapacityBlockStatusOutput, DescribeCapacityManagerDataExportsInput as DescribeCapacityManagerDataExportsInput, + DescribeCapacityManagerDataExportsInputDict as DescribeCapacityManagerDataExportsInputDict, DescribeCapacityManagerDataExportsOutput as DescribeCapacityManagerDataExportsOutput, DescribeCapacityReservationBillingRequestsInput as DescribeCapacityReservationBillingRequestsInput, + DescribeCapacityReservationBillingRequestsInputDict as DescribeCapacityReservationBillingRequestsInputDict, DescribeCapacityReservationBillingRequestsOutput as DescribeCapacityReservationBillingRequestsOutput, DescribeCapacityReservationCancellationQuotesInput as DescribeCapacityReservationCancellationQuotesInput, + DescribeCapacityReservationCancellationQuotesInputDict as DescribeCapacityReservationCancellationQuotesInputDict, DescribeCapacityReservationCancellationQuotesOutput as DescribeCapacityReservationCancellationQuotesOutput, DescribeCapacityReservationDateChangeQuotesInput as DescribeCapacityReservationDateChangeQuotesInput, + DescribeCapacityReservationDateChangeQuotesInputDict as DescribeCapacityReservationDateChangeQuotesInputDict, DescribeCapacityReservationDateChangeQuotesOutput as DescribeCapacityReservationDateChangeQuotesOutput, DescribeCapacityReservationFleetsInput as DescribeCapacityReservationFleetsInput, + DescribeCapacityReservationFleetsInputDict as DescribeCapacityReservationFleetsInputDict, DescribeCapacityReservationFleetsOutput as DescribeCapacityReservationFleetsOutput, DescribeCapacityReservationsInput as DescribeCapacityReservationsInput, + DescribeCapacityReservationsInputDict as DescribeCapacityReservationsInputDict, DescribeCapacityReservationsOutput as DescribeCapacityReservationsOutput, DescribeCapacityReservationTopologyInput as DescribeCapacityReservationTopologyInput, + DescribeCapacityReservationTopologyInputDict as DescribeCapacityReservationTopologyInputDict, DescribeCapacityReservationTopologyOutput as DescribeCapacityReservationTopologyOutput, DescribeCarrierGatewaysInput as DescribeCarrierGatewaysInput, + DescribeCarrierGatewaysInputDict as DescribeCarrierGatewaysInputDict, DescribeCarrierGatewaysOutput as DescribeCarrierGatewaysOutput, DescribeClassicLinkInstancesInput as DescribeClassicLinkInstancesInput, + DescribeClassicLinkInstancesInputDict as DescribeClassicLinkInstancesInputDict, DescribeClassicLinkInstancesOutput as DescribeClassicLinkInstancesOutput, DescribeClientVpnAuthorizationRulesInput as DescribeClientVpnAuthorizationRulesInput, + DescribeClientVpnAuthorizationRulesInputDict as DescribeClientVpnAuthorizationRulesInputDict, DescribeClientVpnAuthorizationRulesOutput as DescribeClientVpnAuthorizationRulesOutput, DescribeClientVpnConnectionsInput as DescribeClientVpnConnectionsInput, + DescribeClientVpnConnectionsInputDict as DescribeClientVpnConnectionsInputDict, DescribeClientVpnConnectionsOutput as DescribeClientVpnConnectionsOutput, DescribeClientVpnEndpointsInput as DescribeClientVpnEndpointsInput, + DescribeClientVpnEndpointsInputDict as DescribeClientVpnEndpointsInputDict, DescribeClientVpnEndpointsOutput as DescribeClientVpnEndpointsOutput, DescribeClientVpnRoutesInput as DescribeClientVpnRoutesInput, + DescribeClientVpnRoutesInputDict as DescribeClientVpnRoutesInputDict, DescribeClientVpnRoutesOutput as DescribeClientVpnRoutesOutput, DescribeClientVpnTargetNetworksInput as DescribeClientVpnTargetNetworksInput, + DescribeClientVpnTargetNetworksInputDict as DescribeClientVpnTargetNetworksInputDict, DescribeClientVpnTargetNetworksOutput as DescribeClientVpnTargetNetworksOutput, DescribeCoipPoolsInput as DescribeCoipPoolsInput, + DescribeCoipPoolsInputDict as DescribeCoipPoolsInputDict, DescribeCoipPoolsOutput as DescribeCoipPoolsOutput, DescribeConversionTasksInput as DescribeConversionTasksInput, + DescribeConversionTasksInputDict as DescribeConversionTasksInputDict, DescribeConversionTasksOutput as DescribeConversionTasksOutput, DescribeCustomerGatewaysInput as DescribeCustomerGatewaysInput, + DescribeCustomerGatewaysInputDict as DescribeCustomerGatewaysInputDict, DescribeCustomerGatewaysOutput as DescribeCustomerGatewaysOutput, DescribeDeclarativePoliciesReportsInput as DescribeDeclarativePoliciesReportsInput, + DescribeDeclarativePoliciesReportsInputDict as DescribeDeclarativePoliciesReportsInputDict, DescribeDeclarativePoliciesReportsOutput as DescribeDeclarativePoliciesReportsOutput, DescribeDhcpOptionsInput as DescribeDhcpOptionsInput, + DescribeDhcpOptionsInputDict as DescribeDhcpOptionsInputDict, DescribeDhcpOptionsOutput as DescribeDhcpOptionsOutput, DescribeEgressOnlyInternetGatewaysInput as DescribeEgressOnlyInternetGatewaysInput, + DescribeEgressOnlyInternetGatewaysInputDict as DescribeEgressOnlyInternetGatewaysInputDict, DescribeEgressOnlyInternetGatewaysOutput as DescribeEgressOnlyInternetGatewaysOutput, DescribeElasticGpusInput as DescribeElasticGpusInput, + DescribeElasticGpusInputDict as DescribeElasticGpusInputDict, DescribeElasticGpusOutput as DescribeElasticGpusOutput, DescribeExportImageTasksInput as DescribeExportImageTasksInput, + DescribeExportImageTasksInputDict as DescribeExportImageTasksInputDict, DescribeExportImageTasksOutput as DescribeExportImageTasksOutput, DescribeExportTasksInput as DescribeExportTasksInput, + DescribeExportTasksInputDict as DescribeExportTasksInputDict, DescribeExportTasksOutput as DescribeExportTasksOutput, DescribeFastLaunchImagesInput as DescribeFastLaunchImagesInput, + DescribeFastLaunchImagesInputDict as DescribeFastLaunchImagesInputDict, DescribeFastLaunchImagesOutput as DescribeFastLaunchImagesOutput, DescribeFastLaunchImagesSuccessItem as DescribeFastLaunchImagesSuccessItem, DescribeFastSnapshotRestoresInput as DescribeFastSnapshotRestoresInput, + DescribeFastSnapshotRestoresInputDict as DescribeFastSnapshotRestoresInputDict, DescribeFastSnapshotRestoresOutput as DescribeFastSnapshotRestoresOutput, DescribeFastSnapshotRestoreSuccessItem as DescribeFastSnapshotRestoreSuccessItem, DescribeFleetError as DescribeFleetError, DescribeFleetHistoryInput as DescribeFleetHistoryInput, + DescribeFleetHistoryInputDict as DescribeFleetHistoryInputDict, DescribeFleetHistoryOutput as DescribeFleetHistoryOutput, DescribeFleetInstancesInput as DescribeFleetInstancesInput, + DescribeFleetInstancesInputDict as DescribeFleetInstancesInputDict, DescribeFleetInstancesOutput as DescribeFleetInstancesOutput, DescribeFleetsInput as DescribeFleetsInput, + DescribeFleetsInputDict as DescribeFleetsInputDict, DescribeFleetsInstances as DescribeFleetsInstances, DescribeFleetsOutput as DescribeFleetsOutput, DescribeFlowLogsInput as DescribeFlowLogsInput, + DescribeFlowLogsInputDict as DescribeFlowLogsInputDict, DescribeFlowLogsOutput as DescribeFlowLogsOutput, DescribeFpgaImageAttributeInput as DescribeFpgaImageAttributeInput, + DescribeFpgaImageAttributeInputDict as DescribeFpgaImageAttributeInputDict, DescribeFpgaImageAttributeOutput as DescribeFpgaImageAttributeOutput, DescribeFpgaImagesInput as DescribeFpgaImagesInput, + DescribeFpgaImagesInputDict as DescribeFpgaImagesInputDict, DescribeFpgaImagesOutput as DescribeFpgaImagesOutput, DescribeHostReservationOfferingsInput as DescribeHostReservationOfferingsInput, + DescribeHostReservationOfferingsInputDict as DescribeHostReservationOfferingsInputDict, DescribeHostReservationOfferingsOutput as DescribeHostReservationOfferingsOutput, DescribeHostReservationsInput as DescribeHostReservationsInput, + DescribeHostReservationsInputDict as DescribeHostReservationsInputDict, DescribeHostReservationsOutput as DescribeHostReservationsOutput, DescribeHostsInput as DescribeHostsInput, + DescribeHostsInputDict as DescribeHostsInputDict, DescribeHostsOutput as DescribeHostsOutput, DescribeIamInstanceProfileAssociationsInput as DescribeIamInstanceProfileAssociationsInput, + DescribeIamInstanceProfileAssociationsInputDict as DescribeIamInstanceProfileAssociationsInputDict, DescribeIamInstanceProfileAssociationsOutput as DescribeIamInstanceProfileAssociationsOutput, DescribeIdentityIdFormatInput as DescribeIdentityIdFormatInput, + DescribeIdentityIdFormatInputDict as DescribeIdentityIdFormatInputDict, DescribeIdentityIdFormatOutput as DescribeIdentityIdFormatOutput, DescribeIdFormatInput as DescribeIdFormatInput, + DescribeIdFormatInputDict as DescribeIdFormatInputDict, DescribeIdFormatOutput as DescribeIdFormatOutput, DescribeImageAttributeInput as DescribeImageAttributeInput, + DescribeImageAttributeInputDict as DescribeImageAttributeInputDict, DescribeImageAttributeOutput as DescribeImageAttributeOutput, DescribeImageReferencesInput as DescribeImageReferencesInput, + DescribeImageReferencesInputDict as DescribeImageReferencesInputDict, DescribeImageReferencesOutput as DescribeImageReferencesOutput, DescribeImagesInput as DescribeImagesInput, + DescribeImagesInputDict as DescribeImagesInputDict, DescribeImagesOutput as DescribeImagesOutput, DescribeImageUsageReportEntriesInput as DescribeImageUsageReportEntriesInput, + DescribeImageUsageReportEntriesInputDict as DescribeImageUsageReportEntriesInputDict, DescribeImageUsageReportEntriesOutput as DescribeImageUsageReportEntriesOutput, DescribeImageUsageReportsInput as DescribeImageUsageReportsInput, + DescribeImageUsageReportsInputDict as DescribeImageUsageReportsInputDict, DescribeImageUsageReportsOutput as DescribeImageUsageReportsOutput, DescribeImportImageTasksInput as DescribeImportImageTasksInput, + DescribeImportImageTasksInputDict as DescribeImportImageTasksInputDict, DescribeImportImageTasksOutput as DescribeImportImageTasksOutput, DescribeImportSnapshotTasksInput as DescribeImportSnapshotTasksInput, + DescribeImportSnapshotTasksInputDict as DescribeImportSnapshotTasksInputDict, DescribeImportSnapshotTasksOutput as DescribeImportSnapshotTasksOutput, DescribeInstanceAttributeInput as DescribeInstanceAttributeInput, + DescribeInstanceAttributeInputDict as DescribeInstanceAttributeInputDict, DescribeInstanceAttributeOutput as DescribeInstanceAttributeOutput, DescribeInstanceConnectEndpointsInput as DescribeInstanceConnectEndpointsInput, + DescribeInstanceConnectEndpointsInputDict as DescribeInstanceConnectEndpointsInputDict, DescribeInstanceConnectEndpointsOutput as DescribeInstanceConnectEndpointsOutput, DescribeInstanceCreditSpecificationsInput as DescribeInstanceCreditSpecificationsInput, + DescribeInstanceCreditSpecificationsInputDict as DescribeInstanceCreditSpecificationsInputDict, DescribeInstanceCreditSpecificationsOutput as DescribeInstanceCreditSpecificationsOutput, DescribeInstanceEventNotificationAttributesInput as DescribeInstanceEventNotificationAttributesInput, + DescribeInstanceEventNotificationAttributesInputDict as DescribeInstanceEventNotificationAttributesInputDict, DescribeInstanceEventNotificationAttributesOutput as DescribeInstanceEventNotificationAttributesOutput, DescribeInstanceEventWindowsInput as DescribeInstanceEventWindowsInput, + DescribeInstanceEventWindowsInputDict as DescribeInstanceEventWindowsInputDict, DescribeInstanceEventWindowsOutput as DescribeInstanceEventWindowsOutput, DescribeInstanceImageMetadataInput as DescribeInstanceImageMetadataInput, + DescribeInstanceImageMetadataInputDict as DescribeInstanceImageMetadataInputDict, DescribeInstanceImageMetadataOutput as DescribeInstanceImageMetadataOutput, DescribeInstancesInput as DescribeInstancesInput, + DescribeInstancesInputDict as DescribeInstancesInputDict, DescribeInstancesOutput as DescribeInstancesOutput, DescribeInstanceSqlHaHistoryStatesInput as DescribeInstanceSqlHaHistoryStatesInput, + DescribeInstanceSqlHaHistoryStatesInputDict as DescribeInstanceSqlHaHistoryStatesInputDict, ) -from ._private.models_4 import ( +from ._private.models_04 import ( DescribeInstanceSqlHaHistoryStatesOutput as DescribeInstanceSqlHaHistoryStatesOutput, DescribeInstanceSqlHaStatesInput as DescribeInstanceSqlHaStatesInput, + DescribeInstanceSqlHaStatesInputDict as DescribeInstanceSqlHaStatesInputDict, DescribeInstanceSqlHaStatesOutput as DescribeInstanceSqlHaStatesOutput, DescribeInstanceStatusInput as DescribeInstanceStatusInput, + DescribeInstanceStatusInputDict as DescribeInstanceStatusInputDict, DescribeInstanceStatusOutput as DescribeInstanceStatusOutput, DescribeInstanceTopologyInput as DescribeInstanceTopologyInput, + DescribeInstanceTopologyInputDict as DescribeInstanceTopologyInputDict, DescribeInstanceTopologyOutput as DescribeInstanceTopologyOutput, DescribeInstanceTypeOfferingsInput as DescribeInstanceTypeOfferingsInput, + DescribeInstanceTypeOfferingsInputDict as DescribeInstanceTypeOfferingsInputDict, DescribeInstanceTypeOfferingsOutput as DescribeInstanceTypeOfferingsOutput, DescribeInstanceTypesInput as DescribeInstanceTypesInput, + DescribeInstanceTypesInputDict as DescribeInstanceTypesInputDict, DescribeInstanceTypesOutput as DescribeInstanceTypesOutput, DescribeInternetGatewaysInput as DescribeInternetGatewaysInput, + DescribeInternetGatewaysInputDict as DescribeInternetGatewaysInputDict, DescribeInternetGatewaysOutput as DescribeInternetGatewaysOutput, DescribeIpamByoasnInput as DescribeIpamByoasnInput, + DescribeIpamByoasnInputDict as DescribeIpamByoasnInputDict, DescribeIpamByoasnOutput as DescribeIpamByoasnOutput, DescribeIpamExternalResourceVerificationTokensInput as DescribeIpamExternalResourceVerificationTokensInput, + DescribeIpamExternalResourceVerificationTokensInputDict as DescribeIpamExternalResourceVerificationTokensInputDict, DescribeIpamExternalResourceVerificationTokensOutput as DescribeIpamExternalResourceVerificationTokensOutput, DescribeIpamInternetRegistryAssociationsInput as DescribeIpamInternetRegistryAssociationsInput, + DescribeIpamInternetRegistryAssociationsInputDict as DescribeIpamInternetRegistryAssociationsInputDict, DescribeIpamInternetRegistryAssociationsOutput as DescribeIpamInternetRegistryAssociationsOutput, DescribeIpamPoliciesInput as DescribeIpamPoliciesInput, + DescribeIpamPoliciesInputDict as DescribeIpamPoliciesInputDict, DescribeIpamPoliciesOutput as DescribeIpamPoliciesOutput, DescribeIpamPoolAllocationsInput as DescribeIpamPoolAllocationsInput, + DescribeIpamPoolAllocationsInputDict as DescribeIpamPoolAllocationsInputDict, DescribeIpamPoolAllocationsOutput as DescribeIpamPoolAllocationsOutput, DescribeIpamPoolsInput as DescribeIpamPoolsInput, + DescribeIpamPoolsInputDict as DescribeIpamPoolsInputDict, DescribeIpamPoolsOutput as DescribeIpamPoolsOutput, DescribeIpamPrefixListResolversInput as DescribeIpamPrefixListResolversInput, + DescribeIpamPrefixListResolversInputDict as DescribeIpamPrefixListResolversInputDict, DescribeIpamPrefixListResolversOutput as DescribeIpamPrefixListResolversOutput, DescribeIpamPrefixListResolverTargetsInput as DescribeIpamPrefixListResolverTargetsInput, + DescribeIpamPrefixListResolverTargetsInputDict as DescribeIpamPrefixListResolverTargetsInputDict, DescribeIpamPrefixListResolverTargetsOutput as DescribeIpamPrefixListResolverTargetsOutput, DescribeIpamResourceDiscoveriesInput as DescribeIpamResourceDiscoveriesInput, + DescribeIpamResourceDiscoveriesInputDict as DescribeIpamResourceDiscoveriesInputDict, DescribeIpamResourceDiscoveriesOutput as DescribeIpamResourceDiscoveriesOutput, DescribeIpamResourceDiscoveryAssociationsInput as DescribeIpamResourceDiscoveryAssociationsInput, + DescribeIpamResourceDiscoveryAssociationsInputDict as DescribeIpamResourceDiscoveryAssociationsInputDict, DescribeIpamResourceDiscoveryAssociationsOutput as DescribeIpamResourceDiscoveryAssociationsOutput, DescribeIpamScopesInput as DescribeIpamScopesInput, + DescribeIpamScopesInputDict as DescribeIpamScopesInputDict, DescribeIpamScopesOutput as DescribeIpamScopesOutput, DescribeIpamsInput as DescribeIpamsInput, + DescribeIpamsInputDict as DescribeIpamsInputDict, DescribeIpamsOutput as DescribeIpamsOutput, DescribeIpv6PoolsInput as DescribeIpv6PoolsInput, + DescribeIpv6PoolsInputDict as DescribeIpv6PoolsInputDict, DescribeIpv6PoolsOutput as DescribeIpv6PoolsOutput, DescribeKeyPairsInput as DescribeKeyPairsInput, + DescribeKeyPairsInputDict as DescribeKeyPairsInputDict, DescribeKeyPairsOutput as DescribeKeyPairsOutput, DescribeLaunchTemplatesInput as DescribeLaunchTemplatesInput, + DescribeLaunchTemplatesInputDict as DescribeLaunchTemplatesInputDict, DescribeLaunchTemplatesOutput as DescribeLaunchTemplatesOutput, DescribeLaunchTemplateVersionsInput as DescribeLaunchTemplateVersionsInput, + DescribeLaunchTemplateVersionsInputDict as DescribeLaunchTemplateVersionsInputDict, DescribeLaunchTemplateVersionsOutput as DescribeLaunchTemplateVersionsOutput, DescribeLocalGatewayRouteTablesInput as DescribeLocalGatewayRouteTablesInput, + DescribeLocalGatewayRouteTablesInputDict as DescribeLocalGatewayRouteTablesInputDict, DescribeLocalGatewayRouteTablesOutput as DescribeLocalGatewayRouteTablesOutput, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput as DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, + DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict as DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput as DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, DescribeLocalGatewayRouteTableVpcAssociationsInput as DescribeLocalGatewayRouteTableVpcAssociationsInput, + DescribeLocalGatewayRouteTableVpcAssociationsInputDict as DescribeLocalGatewayRouteTableVpcAssociationsInputDict, DescribeLocalGatewayRouteTableVpcAssociationsOutput as DescribeLocalGatewayRouteTableVpcAssociationsOutput, DescribeLocalGatewaysInput as DescribeLocalGatewaysInput, + DescribeLocalGatewaysInputDict as DescribeLocalGatewaysInputDict, DescribeLocalGatewaysOutput as DescribeLocalGatewaysOutput, DescribeLocalGatewayVirtualInterfaceGroupsInput as DescribeLocalGatewayVirtualInterfaceGroupsInput, + DescribeLocalGatewayVirtualInterfaceGroupsInputDict as DescribeLocalGatewayVirtualInterfaceGroupsInputDict, DescribeLocalGatewayVirtualInterfaceGroupsOutput as DescribeLocalGatewayVirtualInterfaceGroupsOutput, DescribeLocalGatewayVirtualInterfacesInput as DescribeLocalGatewayVirtualInterfacesInput, + DescribeLocalGatewayVirtualInterfacesInputDict as DescribeLocalGatewayVirtualInterfacesInputDict, DescribeLocalGatewayVirtualInterfacesOutput as DescribeLocalGatewayVirtualInterfacesOutput, DescribeLockedSnapshotsInput as DescribeLockedSnapshotsInput, + DescribeLockedSnapshotsInputDict as DescribeLockedSnapshotsInputDict, DescribeLockedSnapshotsOutput as DescribeLockedSnapshotsOutput, DescribeMacHostsInput as DescribeMacHostsInput, + DescribeMacHostsInputDict as DescribeMacHostsInputDict, DescribeMacHostsOutput as DescribeMacHostsOutput, DescribeMacModificationTasksInput as DescribeMacModificationTasksInput, + DescribeMacModificationTasksInputDict as DescribeMacModificationTasksInputDict, DescribeMacModificationTasksOutput as DescribeMacModificationTasksOutput, DescribeManagedPrefixListsInput as DescribeManagedPrefixListsInput, + DescribeManagedPrefixListsInputDict as DescribeManagedPrefixListsInputDict, DescribeManagedPrefixListsOutput as DescribeManagedPrefixListsOutput, DescribeMovingAddressesInput as DescribeMovingAddressesInput, + DescribeMovingAddressesInputDict as DescribeMovingAddressesInputDict, DescribeMovingAddressesOutput as DescribeMovingAddressesOutput, DescribeNatGatewaysInput as DescribeNatGatewaysInput, + DescribeNatGatewaysInputDict as DescribeNatGatewaysInputDict, DescribeNatGatewaysOutput as DescribeNatGatewaysOutput, DescribeNetworkAclsInput as DescribeNetworkAclsInput, + DescribeNetworkAclsInputDict as DescribeNetworkAclsInputDict, DescribeNetworkAclsOutput as DescribeNetworkAclsOutput, DescribeNetworkInsightsAccessScopeAnalysesInput as DescribeNetworkInsightsAccessScopeAnalysesInput, + DescribeNetworkInsightsAccessScopeAnalysesInputDict as DescribeNetworkInsightsAccessScopeAnalysesInputDict, DescribeNetworkInsightsAccessScopeAnalysesOutput as DescribeNetworkInsightsAccessScopeAnalysesOutput, DescribeNetworkInsightsAccessScopesInput as DescribeNetworkInsightsAccessScopesInput, + DescribeNetworkInsightsAccessScopesInputDict as DescribeNetworkInsightsAccessScopesInputDict, DescribeNetworkInsightsAccessScopesOutput as DescribeNetworkInsightsAccessScopesOutput, DescribeNetworkInsightsAnalysesInput as DescribeNetworkInsightsAnalysesInput, + DescribeNetworkInsightsAnalysesInputDict as DescribeNetworkInsightsAnalysesInputDict, DescribeNetworkInsightsAnalysesOutput as DescribeNetworkInsightsAnalysesOutput, DescribeNetworkInsightsPathsInput as DescribeNetworkInsightsPathsInput, + DescribeNetworkInsightsPathsInputDict as DescribeNetworkInsightsPathsInputDict, DescribeNetworkInsightsPathsOutput as DescribeNetworkInsightsPathsOutput, DescribeNetworkInterfaceAttributeInput as DescribeNetworkInterfaceAttributeInput, + DescribeNetworkInterfaceAttributeInputDict as DescribeNetworkInterfaceAttributeInputDict, DescribeNetworkInterfaceAttributeOutput as DescribeNetworkInterfaceAttributeOutput, DescribeNetworkInterfacePermissionsInput as DescribeNetworkInterfacePermissionsInput, + DescribeNetworkInterfacePermissionsInputDict as DescribeNetworkInterfacePermissionsInputDict, DescribeNetworkInterfacePermissionsOutput as DescribeNetworkInterfacePermissionsOutput, DescribeNetworkInterfacesInput as DescribeNetworkInterfacesInput, + DescribeNetworkInterfacesInputDict as DescribeNetworkInterfacesInputDict, DescribeNetworkInterfacesOutput as DescribeNetworkInterfacesOutput, DescribeOutpostLagsInput as DescribeOutpostLagsInput, + DescribeOutpostLagsInputDict as DescribeOutpostLagsInputDict, DescribeOutpostLagsOutput as DescribeOutpostLagsOutput, DescribePlacementGroupsInput as DescribePlacementGroupsInput, + DescribePlacementGroupsInputDict as DescribePlacementGroupsInputDict, DescribePlacementGroupsOutput as DescribePlacementGroupsOutput, DescribePrefixListsInput as DescribePrefixListsInput, + DescribePrefixListsInputDict as DescribePrefixListsInputDict, DescribePrefixListsOutput as DescribePrefixListsOutput, DescribePrincipalIdFormatInput as DescribePrincipalIdFormatInput, + DescribePrincipalIdFormatInputDict as DescribePrincipalIdFormatInputDict, DescribePrincipalIdFormatOutput as DescribePrincipalIdFormatOutput, DescribePublicIpv4PoolsInput as DescribePublicIpv4PoolsInput, + DescribePublicIpv4PoolsInputDict as DescribePublicIpv4PoolsInputDict, DescribePublicIpv4PoolsOutput as DescribePublicIpv4PoolsOutput, DescribeRegionsInput as DescribeRegionsInput, + DescribeRegionsInputDict as DescribeRegionsInputDict, DescribeRegionsOutput as DescribeRegionsOutput, DescribeReplaceRootVolumeTasksInput as DescribeReplaceRootVolumeTasksInput, + DescribeReplaceRootVolumeTasksInputDict as DescribeReplaceRootVolumeTasksInputDict, DescribeReplaceRootVolumeTasksOutput as DescribeReplaceRootVolumeTasksOutput, DescribeReservedInstancesInput as DescribeReservedInstancesInput, + DescribeReservedInstancesInputDict as DescribeReservedInstancesInputDict, DescribeReservedInstancesListingsInput as DescribeReservedInstancesListingsInput, + DescribeReservedInstancesListingsInputDict as DescribeReservedInstancesListingsInputDict, DescribeReservedInstancesListingsOutput as DescribeReservedInstancesListingsOutput, DescribeReservedInstancesModificationsInput as DescribeReservedInstancesModificationsInput, + DescribeReservedInstancesModificationsInputDict as DescribeReservedInstancesModificationsInputDict, DescribeReservedInstancesModificationsOutput as DescribeReservedInstancesModificationsOutput, DescribeReservedInstancesOfferingsInput as DescribeReservedInstancesOfferingsInput, + DescribeReservedInstancesOfferingsInputDict as DescribeReservedInstancesOfferingsInputDict, DescribeReservedInstancesOfferingsOutput as DescribeReservedInstancesOfferingsOutput, DescribeReservedInstancesOutput as DescribeReservedInstancesOutput, DescribeRouteServerEndpointsInput as DescribeRouteServerEndpointsInput, + DescribeRouteServerEndpointsInputDict as DescribeRouteServerEndpointsInputDict, DescribeRouteServerEndpointsOutput as DescribeRouteServerEndpointsOutput, DescribeRouteServerPeersInput as DescribeRouteServerPeersInput, + DescribeRouteServerPeersInputDict as DescribeRouteServerPeersInputDict, DescribeRouteServerPeersOutput as DescribeRouteServerPeersOutput, DescribeRouteServersInput as DescribeRouteServersInput, + DescribeRouteServersInputDict as DescribeRouteServersInputDict, DescribeRouteServersOutput as DescribeRouteServersOutput, DescribeRouteTablesInput as DescribeRouteTablesInput, + DescribeRouteTablesInputDict as DescribeRouteTablesInputDict, DescribeRouteTablesOutput as DescribeRouteTablesOutput, DescribeScheduledInstanceAvailabilityInput as DescribeScheduledInstanceAvailabilityInput, + DescribeScheduledInstanceAvailabilityInputDict as DescribeScheduledInstanceAvailabilityInputDict, DescribeScheduledInstanceAvailabilityOutput as DescribeScheduledInstanceAvailabilityOutput, DescribeScheduledInstancesInput as DescribeScheduledInstancesInput, + DescribeScheduledInstancesInputDict as DescribeScheduledInstancesInputDict, DescribeScheduledInstancesOutput as DescribeScheduledInstancesOutput, DescribeSecondaryInterfacesInput as DescribeSecondaryInterfacesInput, + DescribeSecondaryInterfacesInputDict as DescribeSecondaryInterfacesInputDict, DescribeSecondaryInterfacesOutput as DescribeSecondaryInterfacesOutput, DescribeSecondaryNetworksInput as DescribeSecondaryNetworksInput, + DescribeSecondaryNetworksInputDict as DescribeSecondaryNetworksInputDict, DescribeSecondaryNetworksOutput as DescribeSecondaryNetworksOutput, DescribeSecondarySubnetsInput as DescribeSecondarySubnetsInput, + DescribeSecondarySubnetsInputDict as DescribeSecondarySubnetsInputDict, DescribeSecondarySubnetsOutput as DescribeSecondarySubnetsOutput, DescribeSecurityGroupReferencesInput as DescribeSecurityGroupReferencesInput, + DescribeSecurityGroupReferencesInputDict as DescribeSecurityGroupReferencesInputDict, DescribeSecurityGroupReferencesOutput as DescribeSecurityGroupReferencesOutput, DescribeSecurityGroupRulesInput as DescribeSecurityGroupRulesInput, + DescribeSecurityGroupRulesInputDict as DescribeSecurityGroupRulesInputDict, DescribeSecurityGroupRulesOutput as DescribeSecurityGroupRulesOutput, DescribeSecurityGroupsInput as DescribeSecurityGroupsInput, + DescribeSecurityGroupsInputDict as DescribeSecurityGroupsInputDict, DescribeSecurityGroupsOutput as DescribeSecurityGroupsOutput, DescribeSecurityGroupVpcAssociationsInput as DescribeSecurityGroupVpcAssociationsInput, + DescribeSecurityGroupVpcAssociationsInputDict as DescribeSecurityGroupVpcAssociationsInputDict, DescribeSecurityGroupVpcAssociationsOutput as DescribeSecurityGroupVpcAssociationsOutput, DescribeServiceLinkVirtualInterfacesInput as DescribeServiceLinkVirtualInterfacesInput, + DescribeServiceLinkVirtualInterfacesInputDict as DescribeServiceLinkVirtualInterfacesInputDict, DescribeServiceLinkVirtualInterfacesOutput as DescribeServiceLinkVirtualInterfacesOutput, DescribeSnapshotAttributeInput as DescribeSnapshotAttributeInput, + DescribeSnapshotAttributeInputDict as DescribeSnapshotAttributeInputDict, DescribeSnapshotAttributeOutput as DescribeSnapshotAttributeOutput, DescribeSnapshotsInput as DescribeSnapshotsInput, + DescribeSnapshotsInputDict as DescribeSnapshotsInputDict, DescribeSnapshotsOutput as DescribeSnapshotsOutput, DescribeSnapshotTierStatusInput as DescribeSnapshotTierStatusInput, + DescribeSnapshotTierStatusInputDict as DescribeSnapshotTierStatusInputDict, DescribeSnapshotTierStatusOutput as DescribeSnapshotTierStatusOutput, DescribeSpotDatafeedSubscriptionInput as DescribeSpotDatafeedSubscriptionInput, + DescribeSpotDatafeedSubscriptionInputDict as DescribeSpotDatafeedSubscriptionInputDict, DescribeSpotDatafeedSubscriptionOutput as DescribeSpotDatafeedSubscriptionOutput, DescribeSpotFleetInstancesInput as DescribeSpotFleetInstancesInput, + DescribeSpotFleetInstancesInputDict as DescribeSpotFleetInstancesInputDict, DescribeSpotFleetInstancesOutput as DescribeSpotFleetInstancesOutput, DescribeSpotFleetRequestHistoryInput as DescribeSpotFleetRequestHistoryInput, + DescribeSpotFleetRequestHistoryInputDict as DescribeSpotFleetRequestHistoryInputDict, DescribeSpotFleetRequestHistoryOutput as DescribeSpotFleetRequestHistoryOutput, DescribeSpotFleetRequestsInput as DescribeSpotFleetRequestsInput, + DescribeSpotFleetRequestsInputDict as DescribeSpotFleetRequestsInputDict, DescribeSpotFleetRequestsOutput as DescribeSpotFleetRequestsOutput, DescribeSpotInstanceRequestsInput as DescribeSpotInstanceRequestsInput, + DescribeSpotInstanceRequestsInputDict as DescribeSpotInstanceRequestsInputDict, DescribeSpotInstanceRequestsOutput as DescribeSpotInstanceRequestsOutput, DescribeSpotPriceHistoryInput as DescribeSpotPriceHistoryInput, + DescribeSpotPriceHistoryInputDict as DescribeSpotPriceHistoryInputDict, DescribeSpotPriceHistoryOutput as DescribeSpotPriceHistoryOutput, DescribeStaleSecurityGroupsInput as DescribeStaleSecurityGroupsInput, + DescribeStaleSecurityGroupsInputDict as DescribeStaleSecurityGroupsInputDict, DescribeStaleSecurityGroupsOutput as DescribeStaleSecurityGroupsOutput, DescribeStoreImageTasksInput as DescribeStoreImageTasksInput, + DescribeStoreImageTasksInputDict as DescribeStoreImageTasksInputDict, DescribeStoreImageTasksOutput as DescribeStoreImageTasksOutput, DescribeSubnetsInput as DescribeSubnetsInput, + DescribeSubnetsInputDict as DescribeSubnetsInputDict, DescribeSubnetsOutput as DescribeSubnetsOutput, DescribeTagsInput as DescribeTagsInput, + DescribeTagsInputDict as DescribeTagsInputDict, DescribeTagsOutput as DescribeTagsOutput, DescribeTrafficMirrorFilterRulesInput as DescribeTrafficMirrorFilterRulesInput, + DescribeTrafficMirrorFilterRulesInputDict as DescribeTrafficMirrorFilterRulesInputDict, DescribeTrafficMirrorFilterRulesOutput as DescribeTrafficMirrorFilterRulesOutput, DescribeTrafficMirrorFiltersInput as DescribeTrafficMirrorFiltersInput, + DescribeTrafficMirrorFiltersInputDict as DescribeTrafficMirrorFiltersInputDict, DescribeTrafficMirrorFiltersOutput as DescribeTrafficMirrorFiltersOutput, DescribeTrafficMirrorSessionsInput as DescribeTrafficMirrorSessionsInput, + DescribeTrafficMirrorSessionsInputDict as DescribeTrafficMirrorSessionsInputDict, DescribeTrafficMirrorSessionsOutput as DescribeTrafficMirrorSessionsOutput, DescribeTrafficMirrorTargetsInput as DescribeTrafficMirrorTargetsInput, + DescribeTrafficMirrorTargetsInputDict as DescribeTrafficMirrorTargetsInputDict, DescribeTrafficMirrorTargetsOutput as DescribeTrafficMirrorTargetsOutput, DescribeTransitGatewayAttachmentsInput as DescribeTransitGatewayAttachmentsInput, + DescribeTransitGatewayAttachmentsInputDict as DescribeTransitGatewayAttachmentsInputDict, DescribeTransitGatewayAttachmentsOutput as DescribeTransitGatewayAttachmentsOutput, DescribeTransitGatewayConnectPeersInput as DescribeTransitGatewayConnectPeersInput, + DescribeTransitGatewayConnectPeersInputDict as DescribeTransitGatewayConnectPeersInputDict, DescribeTransitGatewayConnectPeersOutput as DescribeTransitGatewayConnectPeersOutput, DescribeTransitGatewayConnectsInput as DescribeTransitGatewayConnectsInput, + DescribeTransitGatewayConnectsInputDict as DescribeTransitGatewayConnectsInputDict, DescribeTransitGatewayConnectsOutput as DescribeTransitGatewayConnectsOutput, DescribeTransitGatewayMeteringPoliciesInput as DescribeTransitGatewayMeteringPoliciesInput, + DescribeTransitGatewayMeteringPoliciesInputDict as DescribeTransitGatewayMeteringPoliciesInputDict, DescribeTransitGatewayMeteringPoliciesOutput as DescribeTransitGatewayMeteringPoliciesOutput, DescribeTransitGatewayMulticastDomainsInput as DescribeTransitGatewayMulticastDomainsInput, + DescribeTransitGatewayMulticastDomainsInputDict as DescribeTransitGatewayMulticastDomainsInputDict, DescribeTransitGatewayMulticastDomainsOutput as DescribeTransitGatewayMulticastDomainsOutput, DescribeTransitGatewayPeeringAttachmentsInput as DescribeTransitGatewayPeeringAttachmentsInput, + DescribeTransitGatewayPeeringAttachmentsInputDict as DescribeTransitGatewayPeeringAttachmentsInputDict, DescribeTransitGatewayPeeringAttachmentsOutput as DescribeTransitGatewayPeeringAttachmentsOutput, DescribeTransitGatewayPolicyTablesInput as DescribeTransitGatewayPolicyTablesInput, + DescribeTransitGatewayPolicyTablesInputDict as DescribeTransitGatewayPolicyTablesInputDict, DescribeTransitGatewayPolicyTablesOutput as DescribeTransitGatewayPolicyTablesOutput, DescribeTransitGatewayRouteTableAnnouncementsInput as DescribeTransitGatewayRouteTableAnnouncementsInput, + DescribeTransitGatewayRouteTableAnnouncementsInputDict as DescribeTransitGatewayRouteTableAnnouncementsInputDict, DescribeTransitGatewayRouteTableAnnouncementsOutput as DescribeTransitGatewayRouteTableAnnouncementsOutput, DescribeTransitGatewayRouteTablesInput as DescribeTransitGatewayRouteTablesInput, + DescribeTransitGatewayRouteTablesInputDict as DescribeTransitGatewayRouteTablesInputDict, DescribeTransitGatewayRouteTablesOutput as DescribeTransitGatewayRouteTablesOutput, DescribeTransitGatewaysInput as DescribeTransitGatewaysInput, + DescribeTransitGatewaysInputDict as DescribeTransitGatewaysInputDict, DescribeTransitGatewaysOutput as DescribeTransitGatewaysOutput, DescribeTransitGatewayVpcAttachmentsInput as DescribeTransitGatewayVpcAttachmentsInput, + DescribeTransitGatewayVpcAttachmentsInputDict as DescribeTransitGatewayVpcAttachmentsInputDict, DescribeTransitGatewayVpcAttachmentsOutput as DescribeTransitGatewayVpcAttachmentsOutput, DescribeTrunkInterfaceAssociationsInput as DescribeTrunkInterfaceAssociationsInput, + DescribeTrunkInterfaceAssociationsInputDict as DescribeTrunkInterfaceAssociationsInputDict, DescribeTrunkInterfaceAssociationsOutput as DescribeTrunkInterfaceAssociationsOutput, DescribeVerifiedAccessEndpointsInput as DescribeVerifiedAccessEndpointsInput, + DescribeVerifiedAccessEndpointsInputDict as DescribeVerifiedAccessEndpointsInputDict, DescribeVerifiedAccessEndpointsOutput as DescribeVerifiedAccessEndpointsOutput, DescribeVerifiedAccessGroupsInput as DescribeVerifiedAccessGroupsInput, + DescribeVerifiedAccessGroupsInputDict as DescribeVerifiedAccessGroupsInputDict, DescribeVerifiedAccessGroupsOutput as DescribeVerifiedAccessGroupsOutput, DescribeVerifiedAccessInstanceLoggingConfigurationsInput as DescribeVerifiedAccessInstanceLoggingConfigurationsInput, + DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict as DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict, DescribeVerifiedAccessInstanceLoggingConfigurationsOutput as DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, DescribeVerifiedAccessInstancesInput as DescribeVerifiedAccessInstancesInput, + DescribeVerifiedAccessInstancesInputDict as DescribeVerifiedAccessInstancesInputDict, DescribeVerifiedAccessInstancesOutput as DescribeVerifiedAccessInstancesOutput, DescribeVerifiedAccessTrustProvidersInput as DescribeVerifiedAccessTrustProvidersInput, + DescribeVerifiedAccessTrustProvidersInputDict as DescribeVerifiedAccessTrustProvidersInputDict, DescribeVerifiedAccessTrustProvidersOutput as DescribeVerifiedAccessTrustProvidersOutput, DescribeVolumeAttributeInput as DescribeVolumeAttributeInput, + DescribeVolumeAttributeInputDict as DescribeVolumeAttributeInputDict, DescribeVolumeAttributeOutput as DescribeVolumeAttributeOutput, DescribeVolumesInput as DescribeVolumesInput, + DescribeVolumesInputDict as DescribeVolumesInputDict, DescribeVolumesModificationsInput as DescribeVolumesModificationsInput, + DescribeVolumesModificationsInputDict as DescribeVolumesModificationsInputDict, DescribeVolumesModificationsOutput as DescribeVolumesModificationsOutput, DescribeVolumesOutput as DescribeVolumesOutput, DescribeVolumeStatusInput as DescribeVolumeStatusInput, + DescribeVolumeStatusInputDict as DescribeVolumeStatusInputDict, DescribeVolumeStatusOutput as DescribeVolumeStatusOutput, DescribeVpcAttributeInput as DescribeVpcAttributeInput, + DescribeVpcAttributeInputDict as DescribeVpcAttributeInputDict, DescribeVpcAttributeOutput as DescribeVpcAttributeOutput, DescribeVpcBlockPublicAccessExclusionsInput as DescribeVpcBlockPublicAccessExclusionsInput, + DescribeVpcBlockPublicAccessExclusionsInputDict as DescribeVpcBlockPublicAccessExclusionsInputDict, DescribeVpcBlockPublicAccessExclusionsOutput as DescribeVpcBlockPublicAccessExclusionsOutput, DescribeVpcBlockPublicAccessOptionsInput as DescribeVpcBlockPublicAccessOptionsInput, + DescribeVpcBlockPublicAccessOptionsInputDict as DescribeVpcBlockPublicAccessOptionsInputDict, DescribeVpcBlockPublicAccessOptionsOutput as DescribeVpcBlockPublicAccessOptionsOutput, DescribeVpcClassicLinkDnsSupportInput as DescribeVpcClassicLinkDnsSupportInput, + DescribeVpcClassicLinkDnsSupportInputDict as DescribeVpcClassicLinkDnsSupportInputDict, DescribeVpcClassicLinkDnsSupportOutput as DescribeVpcClassicLinkDnsSupportOutput, DescribeVpcClassicLinkInput as DescribeVpcClassicLinkInput, + DescribeVpcClassicLinkInputDict as DescribeVpcClassicLinkInputDict, DescribeVpcClassicLinkOutput as DescribeVpcClassicLinkOutput, DescribeVpcEncryptionControlsInput as DescribeVpcEncryptionControlsInput, + DescribeVpcEncryptionControlsInputDict as DescribeVpcEncryptionControlsInputDict, DescribeVpcEncryptionControlsOutput as DescribeVpcEncryptionControlsOutput, DescribeVpcEndpointAssociationsInput as DescribeVpcEndpointAssociationsInput, + DescribeVpcEndpointAssociationsInputDict as DescribeVpcEndpointAssociationsInputDict, DescribeVpcEndpointAssociationsOutput as DescribeVpcEndpointAssociationsOutput, DescribeVpcEndpointConnectionNotificationsInput as DescribeVpcEndpointConnectionNotificationsInput, + DescribeVpcEndpointConnectionNotificationsInputDict as DescribeVpcEndpointConnectionNotificationsInputDict, DescribeVpcEndpointConnectionNotificationsOutput as DescribeVpcEndpointConnectionNotificationsOutput, DescribeVpcEndpointConnectionsInput as DescribeVpcEndpointConnectionsInput, + DescribeVpcEndpointConnectionsInputDict as DescribeVpcEndpointConnectionsInputDict, DescribeVpcEndpointConnectionsOutput as DescribeVpcEndpointConnectionsOutput, DescribeVpcEndpointServiceConfigurationsInput as DescribeVpcEndpointServiceConfigurationsInput, + DescribeVpcEndpointServiceConfigurationsInputDict as DescribeVpcEndpointServiceConfigurationsInputDict, DescribeVpcEndpointServiceConfigurationsOutput as DescribeVpcEndpointServiceConfigurationsOutput, DescribeVpcEndpointServicePermissionsInput as DescribeVpcEndpointServicePermissionsInput, + DescribeVpcEndpointServicePermissionsInputDict as DescribeVpcEndpointServicePermissionsInputDict, DescribeVpcEndpointServicePermissionsOutput as DescribeVpcEndpointServicePermissionsOutput, DescribeVpcEndpointServicesInput as DescribeVpcEndpointServicesInput, + DescribeVpcEndpointServicesInputDict as DescribeVpcEndpointServicesInputDict, DescribeVpcEndpointServicesOutput as DescribeVpcEndpointServicesOutput, DescribeVpcEndpointsInput as DescribeVpcEndpointsInput, + DescribeVpcEndpointsInputDict as DescribeVpcEndpointsInputDict, DescribeVpcEndpointsOutput as DescribeVpcEndpointsOutput, DescribeVpcPeeringConnectionsInput as DescribeVpcPeeringConnectionsInput, + DescribeVpcPeeringConnectionsInputDict as DescribeVpcPeeringConnectionsInputDict, DescribeVpcPeeringConnectionsOutput as DescribeVpcPeeringConnectionsOutput, DescribeVpcsInput as DescribeVpcsInput, + DescribeVpcsInputDict as DescribeVpcsInputDict, DescribeVpcsOutput as DescribeVpcsOutput, DescribeVpnConcentratorsInput as DescribeVpnConcentratorsInput, + DescribeVpnConcentratorsInputDict as DescribeVpnConcentratorsInputDict, DescribeVpnConcentratorsOutput as DescribeVpnConcentratorsOutput, DescribeVpnConnectionsInput as DescribeVpnConnectionsInput, + DescribeVpnConnectionsInputDict as DescribeVpnConnectionsInputDict, DescribeVpnConnectionsOutput as DescribeVpnConnectionsOutput, DescribeVpnGatewaysInput as DescribeVpnGatewaysInput, + DescribeVpnGatewaysInputDict as DescribeVpnGatewaysInputDict, DescribeVpnGatewaysOutput as DescribeVpnGatewaysOutput, DestinationFileFormat as DestinationFileFormat, DestinationOptionsRequest as DestinationOptionsRequest, + DestinationOptionsRequestDict as DestinationOptionsRequestDict, DestinationOptionsResponse as DestinationOptionsResponse, ) -from ._private.models_5 import ( +from ._private.models_05 import ( DetachClassicLinkVpcInput as DetachClassicLinkVpcInput, + DetachClassicLinkVpcInputDict as DetachClassicLinkVpcInputDict, DetachClassicLinkVpcOutput as DetachClassicLinkVpcOutput, DetachImageWatermarkInput as DetachImageWatermarkInput, + DetachImageWatermarkInputDict as DetachImageWatermarkInputDict, DetachImageWatermarkOutput as DetachImageWatermarkOutput, DetachInternetGatewayInput as DetachInternetGatewayInput, + DetachInternetGatewayInputDict as DetachInternetGatewayInputDict, DetachInternetGatewayOutput as DetachInternetGatewayOutput, DetachNetworkInterfaceInput as DetachNetworkInterfaceInput, + DetachNetworkInterfaceInputDict as DetachNetworkInterfaceInputDict, DetachNetworkInterfaceOutput as DetachNetworkInterfaceOutput, DetachVerifiedAccessTrustProviderInput as DetachVerifiedAccessTrustProviderInput, + DetachVerifiedAccessTrustProviderInputDict as DetachVerifiedAccessTrustProviderInputDict, DetachVerifiedAccessTrustProviderOutput as DetachVerifiedAccessTrustProviderOutput, DetachVolumeInput as DetachVolumeInput, + DetachVolumeInputDict as DetachVolumeInputDict, DetachVolumeOutput as DetachVolumeOutput, DetachVpnGatewayInput as DetachVpnGatewayInput, + DetachVpnGatewayInputDict as DetachVpnGatewayInputDict, DetachVpnGatewayOutput as DetachVpnGatewayOutput, DeviceOptions as DeviceOptions, DevicePostureOptions as DevicePostureOptions, + DevicePostureOptionsDict as DevicePostureOptionsDict, DevicePostureResponseOptions as DevicePostureResponseOptions, DeviceTrustProviderType as DeviceTrustProviderType, DeviceType as DeviceType, DhcpConfiguration as DhcpConfiguration, DhcpOptions as DhcpOptions, DimensionCondition as DimensionCondition, + DimensionConditionDict as DimensionConditionDict, DirectoryServiceAuthentication as DirectoryServiceAuthentication, DirectoryServiceAuthenticationRequest as DirectoryServiceAuthenticationRequest, + DirectoryServiceAuthenticationRequestDict as DirectoryServiceAuthenticationRequestDict, DisableAddressTransferInput as DisableAddressTransferInput, + DisableAddressTransferInputDict as DisableAddressTransferInputDict, DisableAddressTransferOutput as DisableAddressTransferOutput, DisableAllowedImagesSettingsInput as DisableAllowedImagesSettingsInput, + DisableAllowedImagesSettingsInputDict as DisableAllowedImagesSettingsInputDict, DisableAllowedImagesSettingsOutput as DisableAllowedImagesSettingsOutput, DisableApplicationStatusCheckSuppressionInput as DisableApplicationStatusCheckSuppressionInput, + DisableApplicationStatusCheckSuppressionInputDict as DisableApplicationStatusCheckSuppressionInputDict, DisableApplicationStatusCheckSuppressionOutput as DisableApplicationStatusCheckSuppressionOutput, DisableAwsNetworkPerformanceMetricSubscriptionInput as DisableAwsNetworkPerformanceMetricSubscriptionInput, + DisableAwsNetworkPerformanceMetricSubscriptionInputDict as DisableAwsNetworkPerformanceMetricSubscriptionInputDict, DisableAwsNetworkPerformanceMetricSubscriptionOutput as DisableAwsNetworkPerformanceMetricSubscriptionOutput, DisableCapacityManagerInput as DisableCapacityManagerInput, + DisableCapacityManagerInputDict as DisableCapacityManagerInputDict, DisableCapacityManagerOutput as DisableCapacityManagerOutput, DisableEbsEncryptionByDefaultInput as DisableEbsEncryptionByDefaultInput, + DisableEbsEncryptionByDefaultInputDict as DisableEbsEncryptionByDefaultInputDict, DisableEbsEncryptionByDefaultOutput as DisableEbsEncryptionByDefaultOutput, DisableFastLaunchInput as DisableFastLaunchInput, + DisableFastLaunchInputDict as DisableFastLaunchInputDict, DisableFastLaunchOutput as DisableFastLaunchOutput, DisableFastSnapshotRestoreErrorItem as DisableFastSnapshotRestoreErrorItem, DisableFastSnapshotRestoresInput as DisableFastSnapshotRestoresInput, + DisableFastSnapshotRestoresInputDict as DisableFastSnapshotRestoresInputDict, DisableFastSnapshotRestoresOutput as DisableFastSnapshotRestoresOutput, DisableFastSnapshotRestoreStateError as DisableFastSnapshotRestoreStateError, DisableFastSnapshotRestoreStateErrorItem as DisableFastSnapshotRestoreStateErrorItem, DisableFastSnapshotRestoreSuccessItem as DisableFastSnapshotRestoreSuccessItem, DisableImageBlockPublicAccessInput as DisableImageBlockPublicAccessInput, + DisableImageBlockPublicAccessInputDict as DisableImageBlockPublicAccessInputDict, DisableImageBlockPublicAccessOutput as DisableImageBlockPublicAccessOutput, DisableImageDeprecationInput as DisableImageDeprecationInput, + DisableImageDeprecationInputDict as DisableImageDeprecationInputDict, DisableImageDeprecationOutput as DisableImageDeprecationOutput, DisableImageDeregistrationProtectionInput as DisableImageDeregistrationProtectionInput, + DisableImageDeregistrationProtectionInputDict as DisableImageDeregistrationProtectionInputDict, DisableImageDeregistrationProtectionOutput as DisableImageDeregistrationProtectionOutput, DisableImageInput as DisableImageInput, + DisableImageInputDict as DisableImageInputDict, DisableImageOutput as DisableImageOutput, DisableInstanceSqlHaStandbyDetectionsInput as DisableInstanceSqlHaStandbyDetectionsInput, + DisableInstanceSqlHaStandbyDetectionsInputDict as DisableInstanceSqlHaStandbyDetectionsInputDict, DisableInstanceSqlHaStandbyDetectionsOutput as DisableInstanceSqlHaStandbyDetectionsOutput, DisableIpamOrganizationAdminAccountInput as DisableIpamOrganizationAdminAccountInput, + DisableIpamOrganizationAdminAccountInputDict as DisableIpamOrganizationAdminAccountInputDict, DisableIpamOrganizationAdminAccountOutput as DisableIpamOrganizationAdminAccountOutput, DisableIpamPolicyInput as DisableIpamPolicyInput, + DisableIpamPolicyInputDict as DisableIpamPolicyInputDict, DisableIpamPolicyOutput as DisableIpamPolicyOutput, DisableRouteServerPropagationInput as DisableRouteServerPropagationInput, + DisableRouteServerPropagationInputDict as DisableRouteServerPropagationInputDict, DisableRouteServerPropagationOutput as DisableRouteServerPropagationOutput, DisableSerialConsoleAccessInput as DisableSerialConsoleAccessInput, + DisableSerialConsoleAccessInputDict as DisableSerialConsoleAccessInputDict, DisableSerialConsoleAccessOutput as DisableSerialConsoleAccessOutput, DisableSnapshotBlockPublicAccessInput as DisableSnapshotBlockPublicAccessInput, + DisableSnapshotBlockPublicAccessInputDict as DisableSnapshotBlockPublicAccessInputDict, DisableSnapshotBlockPublicAccessOutput as DisableSnapshotBlockPublicAccessOutput, DisableTransitGatewayRouteTablePropagationInput as DisableTransitGatewayRouteTablePropagationInput, + DisableTransitGatewayRouteTablePropagationInputDict as DisableTransitGatewayRouteTablePropagationInputDict, DisableTransitGatewayRouteTablePropagationOutput as DisableTransitGatewayRouteTablePropagationOutput, DisableVgwRoutePropagationInput as DisableVgwRoutePropagationInput, + DisableVgwRoutePropagationInputDict as DisableVgwRoutePropagationInputDict, DisableVgwRoutePropagationOutput as DisableVgwRoutePropagationOutput, DisableVpcClassicLinkDnsSupportInput as DisableVpcClassicLinkDnsSupportInput, + DisableVpcClassicLinkDnsSupportInputDict as DisableVpcClassicLinkDnsSupportInputDict, DisableVpcClassicLinkDnsSupportOutput as DisableVpcClassicLinkDnsSupportOutput, DisableVpcClassicLinkInput as DisableVpcClassicLinkInput, + DisableVpcClassicLinkInputDict as DisableVpcClassicLinkInputDict, DisableVpcClassicLinkOutput as DisableVpcClassicLinkOutput, DisassociateAddressInput as DisassociateAddressInput, + DisassociateAddressInputDict as DisassociateAddressInputDict, DisassociateAddressOutput as DisassociateAddressOutput, DisassociateApplicationStatusCheckInput as DisassociateApplicationStatusCheckInput, + DisassociateApplicationStatusCheckInputDict as DisassociateApplicationStatusCheckInputDict, DisassociateApplicationStatusCheckOutput as DisassociateApplicationStatusCheckOutput, DisassociateCapacityReservationBillingOwnerInput as DisassociateCapacityReservationBillingOwnerInput, + DisassociateCapacityReservationBillingOwnerInputDict as DisassociateCapacityReservationBillingOwnerInputDict, DisassociateCapacityReservationBillingOwnerOutput as DisassociateCapacityReservationBillingOwnerOutput, DisassociateClientVpnTargetNetworkInput as DisassociateClientVpnTargetNetworkInput, + DisassociateClientVpnTargetNetworkInputDict as DisassociateClientVpnTargetNetworkInputDict, DisassociateClientVpnTargetNetworkOutput as DisassociateClientVpnTargetNetworkOutput, DisassociateEnclaveCertificateIamRoleInput as DisassociateEnclaveCertificateIamRoleInput, + DisassociateEnclaveCertificateIamRoleInputDict as DisassociateEnclaveCertificateIamRoleInputDict, DisassociateEnclaveCertificateIamRoleOutput as DisassociateEnclaveCertificateIamRoleOutput, DisassociateIamInstanceProfileInput as DisassociateIamInstanceProfileInput, + DisassociateIamInstanceProfileInputDict as DisassociateIamInstanceProfileInputDict, DisassociateIamInstanceProfileOutput as DisassociateIamInstanceProfileOutput, DisassociateInstanceEventWindowInput as DisassociateInstanceEventWindowInput, + DisassociateInstanceEventWindowInputDict as DisassociateInstanceEventWindowInputDict, DisassociateInstanceEventWindowOutput as DisassociateInstanceEventWindowOutput, DisassociateIpamByoasnInput as DisassociateIpamByoasnInput, + DisassociateIpamByoasnInputDict as DisassociateIpamByoasnInputDict, DisassociateIpamByoasnOutput as DisassociateIpamByoasnOutput, DisassociateIpamResourceDiscoveryInput as DisassociateIpamResourceDiscoveryInput, + DisassociateIpamResourceDiscoveryInputDict as DisassociateIpamResourceDiscoveryInputDict, DisassociateIpamResourceDiscoveryOutput as DisassociateIpamResourceDiscoveryOutput, DisassociateNatGatewayAddressInput as DisassociateNatGatewayAddressInput, + DisassociateNatGatewayAddressInputDict as DisassociateNatGatewayAddressInputDict, DisassociateNatGatewayAddressOutput as DisassociateNatGatewayAddressOutput, DisassociateRouteServerInput as DisassociateRouteServerInput, + DisassociateRouteServerInputDict as DisassociateRouteServerInputDict, DisassociateRouteServerOutput as DisassociateRouteServerOutput, DisassociateRouteTableInput as DisassociateRouteTableInput, + DisassociateRouteTableInputDict as DisassociateRouteTableInputDict, DisassociateRouteTableOutput as DisassociateRouteTableOutput, DisassociateSecurityGroupVpcInput as DisassociateSecurityGroupVpcInput, + DisassociateSecurityGroupVpcInputDict as DisassociateSecurityGroupVpcInputDict, DisassociateSecurityGroupVpcOutput as DisassociateSecurityGroupVpcOutput, DisassociateSubnetCidrBlockInput as DisassociateSubnetCidrBlockInput, + DisassociateSubnetCidrBlockInputDict as DisassociateSubnetCidrBlockInputDict, DisassociateSubnetCidrBlockOutput as DisassociateSubnetCidrBlockOutput, DisassociateTransitGatewayMulticastDomainInput as DisassociateTransitGatewayMulticastDomainInput, + DisassociateTransitGatewayMulticastDomainInputDict as DisassociateTransitGatewayMulticastDomainInputDict, DisassociateTransitGatewayMulticastDomainOutput as DisassociateTransitGatewayMulticastDomainOutput, DisassociateTransitGatewayPolicyTableInput as DisassociateTransitGatewayPolicyTableInput, + DisassociateTransitGatewayPolicyTableInputDict as DisassociateTransitGatewayPolicyTableInputDict, DisassociateTransitGatewayPolicyTableOutput as DisassociateTransitGatewayPolicyTableOutput, DisassociateTransitGatewayRouteTableInput as DisassociateTransitGatewayRouteTableInput, + DisassociateTransitGatewayRouteTableInputDict as DisassociateTransitGatewayRouteTableInputDict, DisassociateTransitGatewayRouteTableOutput as DisassociateTransitGatewayRouteTableOutput, DisassociateTrunkInterfaceInput as DisassociateTrunkInterfaceInput, + DisassociateTrunkInterfaceInputDict as DisassociateTrunkInterfaceInputDict, DisassociateTrunkInterfaceOutput as DisassociateTrunkInterfaceOutput, DisassociateVpcCidrBlockInput as DisassociateVpcCidrBlockInput, + DisassociateVpcCidrBlockInputDict as DisassociateVpcCidrBlockInputDict, DisassociateVpcCidrBlockOutput as DisassociateVpcCidrBlockOutput, DiskImage as DiskImage, + DiskImageDict as DiskImageDict, DiskImageDescription as DiskImageDescription, DiskImageDetail as DiskImageDetail, + DiskImageDetailDict as DiskImageDetailDict, DiskImageFormat as DiskImageFormat, DiskImageVolumeDescription as DiskImageVolumeDescription, DiskInfo as DiskInfo, @@ -1394,18 +1980,22 @@ from ._private.models_5 import ( DnsNameState as DnsNameState, DnsOptions as DnsOptions, DnsOptionsSpecification as DnsOptionsSpecification, + DnsOptionsSpecificationDict as DnsOptionsSpecificationDict, DnsRecordIpType as DnsRecordIpType, DnsServersOptionsModifyStructure as DnsServersOptionsModifyStructure, + DnsServersOptionsModifyStructureDict as DnsServersOptionsModifyStructureDict, DnsSupportValue as DnsSupportValue, DomainType as DomainType, DynamicRoutingValue as DynamicRoutingValue, EbsBlockDevice as EbsBlockDevice, + EbsBlockDeviceDict as EbsBlockDeviceDict, EbsBlockDeviceResponse as EbsBlockDeviceResponse, EbsCardInfo as EbsCardInfo, EbsEncryptionSupport as EbsEncryptionSupport, EbsInfo as EbsInfo, EbsInstanceBlockDevice as EbsInstanceBlockDevice, EbsInstanceBlockDeviceSpecification as EbsInstanceBlockDeviceSpecification, + EbsInstanceBlockDeviceSpecificationDict as EbsInstanceBlockDeviceSpecificationDict, EbsNvmeSupport as EbsNvmeSupport, EbsOptimizedInfo as EbsOptimizedInfo, EbsOptimizedSupport as EbsOptimizedSupport, @@ -1421,72 +2011,104 @@ from ._private.models_5 import ( ElasticGpuHealth as ElasticGpuHealth, ElasticGpus as ElasticGpus, ElasticGpuSpecification as ElasticGpuSpecification, + ElasticGpuSpecificationDict as ElasticGpuSpecificationDict, ElasticGpuSpecificationResponse as ElasticGpuSpecificationResponse, ElasticGpuState as ElasticGpuState, ElasticGpuStatus as ElasticGpuStatus, ElasticInferenceAccelerator as ElasticInferenceAccelerator, + ElasticInferenceAcceleratorDict as ElasticInferenceAcceleratorDict, ElasticInferenceAcceleratorAssociation as ElasticInferenceAcceleratorAssociation, EnableAddressTransferInput as EnableAddressTransferInput, + EnableAddressTransferInputDict as EnableAddressTransferInputDict, EnableAddressTransferOutput as EnableAddressTransferOutput, EnableAllowedImagesSettingsInput as EnableAllowedImagesSettingsInput, + EnableAllowedImagesSettingsInputDict as EnableAllowedImagesSettingsInputDict, EnableAllowedImagesSettingsOutput as EnableAllowedImagesSettingsOutput, EnableApplicationStatusCheckSuppressionInput as EnableApplicationStatusCheckSuppressionInput, + EnableApplicationStatusCheckSuppressionInputDict as EnableApplicationStatusCheckSuppressionInputDict, EnableApplicationStatusCheckSuppressionOutput as EnableApplicationStatusCheckSuppressionOutput, EnableAwsNetworkPerformanceMetricSubscriptionInput as EnableAwsNetworkPerformanceMetricSubscriptionInput, + EnableAwsNetworkPerformanceMetricSubscriptionInputDict as EnableAwsNetworkPerformanceMetricSubscriptionInputDict, EnableAwsNetworkPerformanceMetricSubscriptionOutput as EnableAwsNetworkPerformanceMetricSubscriptionOutput, EnableCapacityManagerInput as EnableCapacityManagerInput, + EnableCapacityManagerInputDict as EnableCapacityManagerInputDict, EnableCapacityManagerOutput as EnableCapacityManagerOutput, EnableEbsEncryptionByDefaultInput as EnableEbsEncryptionByDefaultInput, + EnableEbsEncryptionByDefaultInputDict as EnableEbsEncryptionByDefaultInputDict, EnableEbsEncryptionByDefaultOutput as EnableEbsEncryptionByDefaultOutput, EnableFastLaunchInput as EnableFastLaunchInput, + EnableFastLaunchInputDict as EnableFastLaunchInputDict, EnableFastLaunchOutput as EnableFastLaunchOutput, EnableFastSnapshotRestoreErrorItem as EnableFastSnapshotRestoreErrorItem, EnableFastSnapshotRestoresInput as EnableFastSnapshotRestoresInput, + EnableFastSnapshotRestoresInputDict as EnableFastSnapshotRestoresInputDict, EnableFastSnapshotRestoresOutput as EnableFastSnapshotRestoresOutput, EnableFastSnapshotRestoreStateError as EnableFastSnapshotRestoreStateError, EnableFastSnapshotRestoreStateErrorItem as EnableFastSnapshotRestoreStateErrorItem, EnableFastSnapshotRestoreSuccessItem as EnableFastSnapshotRestoreSuccessItem, EnableImageBlockPublicAccessInput as EnableImageBlockPublicAccessInput, + EnableImageBlockPublicAccessInputDict as EnableImageBlockPublicAccessInputDict, EnableImageBlockPublicAccessOutput as EnableImageBlockPublicAccessOutput, EnableImageDeprecationInput as EnableImageDeprecationInput, + EnableImageDeprecationInputDict as EnableImageDeprecationInputDict, EnableImageDeprecationOutput as EnableImageDeprecationOutput, EnableImageDeregistrationProtectionInput as EnableImageDeregistrationProtectionInput, + EnableImageDeregistrationProtectionInputDict as EnableImageDeregistrationProtectionInputDict, EnableImageDeregistrationProtectionOutput as EnableImageDeregistrationProtectionOutput, EnableImageInput as EnableImageInput, + EnableImageInputDict as EnableImageInputDict, EnableImageOutput as EnableImageOutput, EnableInstanceSqlHaStandbyDetectionsInput as EnableInstanceSqlHaStandbyDetectionsInput, + EnableInstanceSqlHaStandbyDetectionsInputDict as EnableInstanceSqlHaStandbyDetectionsInputDict, EnableInstanceSqlHaStandbyDetectionsOutput as EnableInstanceSqlHaStandbyDetectionsOutput, EnableIpamInternetRegistryAssociationInput as EnableIpamInternetRegistryAssociationInput, + EnableIpamInternetRegistryAssociationInputDict as EnableIpamInternetRegistryAssociationInputDict, EnableIpamInternetRegistryAssociationOutput as EnableIpamInternetRegistryAssociationOutput, EnableIpamOrganizationAdminAccountInput as EnableIpamOrganizationAdminAccountInput, + EnableIpamOrganizationAdminAccountInputDict as EnableIpamOrganizationAdminAccountInputDict, EnableIpamOrganizationAdminAccountOutput as EnableIpamOrganizationAdminAccountOutput, EnableIpamPolicyInput as EnableIpamPolicyInput, + EnableIpamPolicyInputDict as EnableIpamPolicyInputDict, EnableIpamPolicyOutput as EnableIpamPolicyOutput, EnableReachabilityAnalyzerOrganizationSharingInput as EnableReachabilityAnalyzerOrganizationSharingInput, + EnableReachabilityAnalyzerOrganizationSharingInputDict as EnableReachabilityAnalyzerOrganizationSharingInputDict, EnableReachabilityAnalyzerOrganizationSharingOutput as EnableReachabilityAnalyzerOrganizationSharingOutput, EnableRouteServerPropagationInput as EnableRouteServerPropagationInput, + EnableRouteServerPropagationInputDict as EnableRouteServerPropagationInputDict, EnableRouteServerPropagationOutput as EnableRouteServerPropagationOutput, EnableSerialConsoleAccessInput as EnableSerialConsoleAccessInput, + EnableSerialConsoleAccessInputDict as EnableSerialConsoleAccessInputDict, EnableSerialConsoleAccessOutput as EnableSerialConsoleAccessOutput, EnableSnapshotBlockPublicAccessInput as EnableSnapshotBlockPublicAccessInput, + EnableSnapshotBlockPublicAccessInputDict as EnableSnapshotBlockPublicAccessInputDict, EnableSnapshotBlockPublicAccessOutput as EnableSnapshotBlockPublicAccessOutput, EnableTransitGatewayRouteTablePropagationInput as EnableTransitGatewayRouteTablePropagationInput, + EnableTransitGatewayRouteTablePropagationInputDict as EnableTransitGatewayRouteTablePropagationInputDict, EnableTransitGatewayRouteTablePropagationOutput as EnableTransitGatewayRouteTablePropagationOutput, EnableVgwRoutePropagationInput as EnableVgwRoutePropagationInput, + EnableVgwRoutePropagationInputDict as EnableVgwRoutePropagationInputDict, EnableVgwRoutePropagationOutput as EnableVgwRoutePropagationOutput, EnableVolumeIOInput as EnableVolumeIOInput, + EnableVolumeIOInputDict as EnableVolumeIOInputDict, EnableVolumeIOOutput as EnableVolumeIOOutput, EnableVpcClassicLinkDnsSupportInput as EnableVpcClassicLinkDnsSupportInput, + EnableVpcClassicLinkDnsSupportInputDict as EnableVpcClassicLinkDnsSupportInputDict, EnableVpcClassicLinkDnsSupportOutput as EnableVpcClassicLinkDnsSupportOutput, EnableVpcClassicLinkInput as EnableVpcClassicLinkInput, + EnableVpcClassicLinkInputDict as EnableVpcClassicLinkInputDict, EnableVpcClassicLinkOutput as EnableVpcClassicLinkOutput, EnaSrdSpecification as EnaSrdSpecification, + EnaSrdSpecificationDict as EnaSrdSpecificationDict, EnaSrdSpecificationRequest as EnaSrdSpecificationRequest, + EnaSrdSpecificationRequestDict as EnaSrdSpecificationRequestDict, EnaSrdUdpSpecification as EnaSrdUdpSpecification, + EnaSrdUdpSpecificationDict as EnaSrdUdpSpecificationDict, EnaSrdUdpSpecificationRequest as EnaSrdUdpSpecificationRequest, + EnaSrdUdpSpecificationRequestDict as EnaSrdUdpSpecificationRequestDict, EnaSupport as EnaSupport, EnclaveOptions as EnclaveOptions, EnclaveOptionsRequest as EnclaveOptionsRequest, + EnclaveOptionsRequestDict as EnclaveOptionsRequestDict, EncryptionStateValue as EncryptionStateValue, EncryptionSupport as EncryptionSupport, EncryptionSupportOptionValue as EncryptionSupportOptionValue, @@ -1499,39 +2121,51 @@ from ._private.models_5 import ( ExcessCapacityTerminationPolicy as ExcessCapacityTerminationPolicy, Explanation as Explanation, ExportClientVpnClientCertificateRevocationListInput as ExportClientVpnClientCertificateRevocationListInput, + ExportClientVpnClientCertificateRevocationListInputDict as ExportClientVpnClientCertificateRevocationListInputDict, ExportClientVpnClientCertificateRevocationListOutput as ExportClientVpnClientCertificateRevocationListOutput, ExportClientVpnClientConfigurationInput as ExportClientVpnClientConfigurationInput, + ExportClientVpnClientConfigurationInputDict as ExportClientVpnClientConfigurationInputDict, ExportClientVpnClientConfigurationOutput as ExportClientVpnClientConfigurationOutput, ExportEnvironment as ExportEnvironment, ExportImageInput as ExportImageInput, + ExportImageInputDict as ExportImageInputDict, ExportImageOutput as ExportImageOutput, ExportImageTask as ExportImageTask, ExportTask as ExportTask, ExportTaskS3Location as ExportTaskS3Location, ExportTaskS3LocationRequest as ExportTaskS3LocationRequest, + ExportTaskS3LocationRequestDict as ExportTaskS3LocationRequestDict, ExportTaskState as ExportTaskState, ExportToS3Task as ExportToS3Task, ExportToS3TaskSpecification as ExportToS3TaskSpecification, + ExportToS3TaskSpecificationDict as ExportToS3TaskSpecificationDict, ExportTransitGatewayRoutesInput as ExportTransitGatewayRoutesInput, + ExportTransitGatewayRoutesInputDict as ExportTransitGatewayRoutesInputDict, ExportTransitGatewayRoutesOutput as ExportTransitGatewayRoutesOutput, ExportVerifiedAccessInstanceClientConfigurationInput as ExportVerifiedAccessInstanceClientConfigurationInput, + ExportVerifiedAccessInstanceClientConfigurationInputDict as ExportVerifiedAccessInstanceClientConfigurationInputDict, ExportVerifiedAccessInstanceClientConfigurationOutput as ExportVerifiedAccessInstanceClientConfigurationOutput, ExternalAuthorityConfiguration as ExternalAuthorityConfiguration, + ExternalAuthorityConfigurationDict as ExternalAuthorityConfigurationDict, FailedCapacityReservationFleetCancellationResult as FailedCapacityReservationFleetCancellationResult, FailedQueuedPurchaseDeletion as FailedQueuedPurchaseDeletion, FastLaunchLaunchTemplateSpecificationRequest as FastLaunchLaunchTemplateSpecificationRequest, + FastLaunchLaunchTemplateSpecificationRequestDict as FastLaunchLaunchTemplateSpecificationRequestDict, FastLaunchLaunchTemplateSpecificationResponse as FastLaunchLaunchTemplateSpecificationResponse, FastLaunchResourceType as FastLaunchResourceType, FastLaunchSnapshotConfigurationRequest as FastLaunchSnapshotConfigurationRequest, + FastLaunchSnapshotConfigurationRequestDict as FastLaunchSnapshotConfigurationRequestDict, ) -from ._private.models_6 import ( +from ._private.models_06 import ( FastLaunchSnapshotConfigurationResponse as FastLaunchSnapshotConfigurationResponse, FastLaunchStateCode as FastLaunchStateCode, FastSnapshotRestoreStateCode as FastSnapshotRestoreStateCode, FederatedAuthentication as FederatedAuthentication, FederatedAuthenticationRequest as FederatedAuthenticationRequest, + FederatedAuthenticationRequestDict as FederatedAuthenticationRequestDict, Filter as Filter, + FilterDict as FilterDict, FilterByDimension as FilterByDimension, FilterPortRange as FilterPortRange, FindingsFound as FindingsFound, @@ -1539,32 +2173,43 @@ from ._private.models_6 import ( FirewallStatelessRule as FirewallStatelessRule, FleetActivityStatus as FleetActivityStatus, FleetBlockDeviceMappingRequest as FleetBlockDeviceMappingRequest, + FleetBlockDeviceMappingRequestDict as FleetBlockDeviceMappingRequestDict, FleetCapacityReservation as FleetCapacityReservation, FleetCapacityReservationTargetRequest as FleetCapacityReservationTargetRequest, + FleetCapacityReservationTargetRequestDict as FleetCapacityReservationTargetRequestDict, FleetCapacityReservationTenancy as FleetCapacityReservationTenancy, FleetCapacityReservationUsageStrategy as FleetCapacityReservationUsageStrategy, FleetData as FleetData, FleetEbsBlockDeviceRequest as FleetEbsBlockDeviceRequest, + FleetEbsBlockDeviceRequestDict as FleetEbsBlockDeviceRequestDict, FleetEventType as FleetEventType, FleetExcessCapacityTerminationPolicy as FleetExcessCapacityTerminationPolicy, FleetHttpTokensState as FleetHttpTokensState, FleetIamInstanceProfileSpecificationRequest as FleetIamInstanceProfileSpecificationRequest, + FleetIamInstanceProfileSpecificationRequestDict as FleetIamInstanceProfileSpecificationRequestDict, FleetInstanceMatchCriteria as FleetInstanceMatchCriteria, FleetInstanceMetadataEndpointState as FleetInstanceMetadataEndpointState, FleetInstanceMetadataOptionsRequest as FleetInstanceMetadataOptionsRequest, + FleetInstanceMetadataOptionsRequestDict as FleetInstanceMetadataOptionsRequestDict, FleetLaunchTemplateConfig as FleetLaunchTemplateConfig, FleetLaunchTemplateConfigRequest as FleetLaunchTemplateConfigRequest, + FleetLaunchTemplateConfigRequestDict as FleetLaunchTemplateConfigRequestDict, FleetLaunchTemplateOverrides as FleetLaunchTemplateOverrides, FleetLaunchTemplateOverridesRequest as FleetLaunchTemplateOverridesRequest, + FleetLaunchTemplateOverridesRequestDict as FleetLaunchTemplateOverridesRequestDict, FleetLaunchTemplateSpecification as FleetLaunchTemplateSpecification, + FleetLaunchTemplateSpecificationDict as FleetLaunchTemplateSpecificationDict, FleetLaunchTemplateSpecificationRequest as FleetLaunchTemplateSpecificationRequest, + FleetLaunchTemplateSpecificationRequestDict as FleetLaunchTemplateSpecificationRequestDict, FleetOnDemandAllocationStrategy as FleetOnDemandAllocationStrategy, FleetReplacementStrategy as FleetReplacementStrategy, FleetReservationType as FleetReservationType, FleetSpotCapacityRebalance as FleetSpotCapacityRebalance, FleetSpotCapacityRebalanceRequest as FleetSpotCapacityRebalanceRequest, + FleetSpotCapacityRebalanceRequestDict as FleetSpotCapacityRebalanceRequestDict, FleetSpotMaintenanceStrategies as FleetSpotMaintenanceStrategies, FleetSpotMaintenanceStrategiesRequest as FleetSpotMaintenanceStrategiesRequest, + FleetSpotMaintenanceStrategiesRequestDict as FleetSpotMaintenanceStrategiesRequestDict, FleetStateCode as FleetStateCode, FleetType as FleetType, FlexibleEnaQueuesSupport as FlexibleEnaQueuesSupport, @@ -1581,186 +2226,273 @@ from ._private.models_6 import ( GatewayAssociationState as GatewayAssociationState, GatewayType as GatewayType, GetActiveVpnTunnelStatusInput as GetActiveVpnTunnelStatusInput, + GetActiveVpnTunnelStatusInputDict as GetActiveVpnTunnelStatusInputDict, GetActiveVpnTunnelStatusOutput as GetActiveVpnTunnelStatusOutput, GetAllowedImagesSettingsInput as GetAllowedImagesSettingsInput, + GetAllowedImagesSettingsInputDict as GetAllowedImagesSettingsInputDict, GetAllowedImagesSettingsOutput as GetAllowedImagesSettingsOutput, GetAssociatedEnclaveCertificateIamRolesInput as GetAssociatedEnclaveCertificateIamRolesInput, + GetAssociatedEnclaveCertificateIamRolesInputDict as GetAssociatedEnclaveCertificateIamRolesInputDict, GetAssociatedEnclaveCertificateIamRolesOutput as GetAssociatedEnclaveCertificateIamRolesOutput, GetAssociatedIpv6PoolCidrsInput as GetAssociatedIpv6PoolCidrsInput, + GetAssociatedIpv6PoolCidrsInputDict as GetAssociatedIpv6PoolCidrsInputDict, GetAssociatedIpv6PoolCidrsOutput as GetAssociatedIpv6PoolCidrsOutput, GetAwsNetworkPerformanceDataInput as GetAwsNetworkPerformanceDataInput, + GetAwsNetworkPerformanceDataInputDict as GetAwsNetworkPerformanceDataInputDict, GetAwsNetworkPerformanceDataOutput as GetAwsNetworkPerformanceDataOutput, GetCapacityManagerAttributesInput as GetCapacityManagerAttributesInput, + GetCapacityManagerAttributesInputDict as GetCapacityManagerAttributesInputDict, GetCapacityManagerAttributesOutput as GetCapacityManagerAttributesOutput, GetCapacityManagerMetricDataInput as GetCapacityManagerMetricDataInput, + GetCapacityManagerMetricDataInputDict as GetCapacityManagerMetricDataInputDict, GetCapacityManagerMetricDataOutput as GetCapacityManagerMetricDataOutput, GetCapacityManagerMetricDimensionsInput as GetCapacityManagerMetricDimensionsInput, + GetCapacityManagerMetricDimensionsInputDict as GetCapacityManagerMetricDimensionsInputDict, GetCapacityManagerMetricDimensionsOutput as GetCapacityManagerMetricDimensionsOutput, GetCapacityManagerMonitoredTagKeysInput as GetCapacityManagerMonitoredTagKeysInput, + GetCapacityManagerMonitoredTagKeysInputDict as GetCapacityManagerMonitoredTagKeysInputDict, GetCapacityManagerMonitoredTagKeysOutput as GetCapacityManagerMonitoredTagKeysOutput, GetCapacityManagerSupportabilityScoresInput as GetCapacityManagerSupportabilityScoresInput, + GetCapacityManagerSupportabilityScoresInputDict as GetCapacityManagerSupportabilityScoresInputDict, GetCapacityManagerSupportabilityScoresOutput as GetCapacityManagerSupportabilityScoresOutput, GetCapacityReservationUsageInput as GetCapacityReservationUsageInput, + GetCapacityReservationUsageInputDict as GetCapacityReservationUsageInputDict, GetCapacityReservationUsageOutput as GetCapacityReservationUsageOutput, GetClientVpnEndpointAuthorizationPolicyInput as GetClientVpnEndpointAuthorizationPolicyInput, + GetClientVpnEndpointAuthorizationPolicyInputDict as GetClientVpnEndpointAuthorizationPolicyInputDict, GetClientVpnEndpointAuthorizationPolicyOutput as GetClientVpnEndpointAuthorizationPolicyOutput, GetCoipPoolUsageInput as GetCoipPoolUsageInput, + GetCoipPoolUsageInputDict as GetCoipPoolUsageInputDict, GetCoipPoolUsageOutput as GetCoipPoolUsageOutput, GetConsoleOutputInput as GetConsoleOutputInput, + GetConsoleOutputInputDict as GetConsoleOutputInputDict, GetConsoleOutputOutput as GetConsoleOutputOutput, GetConsoleScreenshotInput as GetConsoleScreenshotInput, + GetConsoleScreenshotInputDict as GetConsoleScreenshotInputDict, GetConsoleScreenshotOutput as GetConsoleScreenshotOutput, GetDeclarativePoliciesReportSummaryInput as GetDeclarativePoliciesReportSummaryInput, + GetDeclarativePoliciesReportSummaryInputDict as GetDeclarativePoliciesReportSummaryInputDict, GetDeclarativePoliciesReportSummaryOutput as GetDeclarativePoliciesReportSummaryOutput, GetDefaultCreditSpecificationInput as GetDefaultCreditSpecificationInput, + GetDefaultCreditSpecificationInputDict as GetDefaultCreditSpecificationInputDict, GetDefaultCreditSpecificationOutput as GetDefaultCreditSpecificationOutput, GetEbsDefaultKmsKeyIdInput as GetEbsDefaultKmsKeyIdInput, + GetEbsDefaultKmsKeyIdInputDict as GetEbsDefaultKmsKeyIdInputDict, GetEbsDefaultKmsKeyIdOutput as GetEbsDefaultKmsKeyIdOutput, GetEbsEncryptionByDefaultInput as GetEbsEncryptionByDefaultInput, + GetEbsEncryptionByDefaultInputDict as GetEbsEncryptionByDefaultInputDict, GetEbsEncryptionByDefaultOutput as GetEbsEncryptionByDefaultOutput, GetEnabledIpamPolicyInput as GetEnabledIpamPolicyInput, + GetEnabledIpamPolicyInputDict as GetEnabledIpamPolicyInputDict, GetEnabledIpamPolicyOutput as GetEnabledIpamPolicyOutput, GetFlowLogsIntegrationTemplateInput as GetFlowLogsIntegrationTemplateInput, + GetFlowLogsIntegrationTemplateInputDict as GetFlowLogsIntegrationTemplateInputDict, GetFlowLogsIntegrationTemplateOutput as GetFlowLogsIntegrationTemplateOutput, GetGroupsForCapacityReservationInput as GetGroupsForCapacityReservationInput, + GetGroupsForCapacityReservationInputDict as GetGroupsForCapacityReservationInputDict, GetGroupsForCapacityReservationOutput as GetGroupsForCapacityReservationOutput, GetHostReservationPurchasePreviewInput as GetHostReservationPurchasePreviewInput, + GetHostReservationPurchasePreviewInputDict as GetHostReservationPurchasePreviewInputDict, GetHostReservationPurchasePreviewOutput as GetHostReservationPurchasePreviewOutput, GetImageAncestryInput as GetImageAncestryInput, + GetImageAncestryInputDict as GetImageAncestryInputDict, GetImageAncestryOutput as GetImageAncestryOutput, GetImageBlockPublicAccessStateInput as GetImageBlockPublicAccessStateInput, + GetImageBlockPublicAccessStateInputDict as GetImageBlockPublicAccessStateInputDict, GetImageBlockPublicAccessStateOutput as GetImageBlockPublicAccessStateOutput, GetImageFindingsInput as GetImageFindingsInput, + GetImageFindingsInputDict as GetImageFindingsInputDict, GetImageFindingsOutput as GetImageFindingsOutput, GetInstanceMetadataDefaultsInput as GetInstanceMetadataDefaultsInput, + GetInstanceMetadataDefaultsInputDict as GetInstanceMetadataDefaultsInputDict, GetInstanceMetadataDefaultsOutput as GetInstanceMetadataDefaultsOutput, GetInstanceTpmEkPubInput as GetInstanceTpmEkPubInput, + GetInstanceTpmEkPubInputDict as GetInstanceTpmEkPubInputDict, GetInstanceTpmEkPubOutput as GetInstanceTpmEkPubOutput, GetInstanceTypesFromInstanceRequirementsInput as GetInstanceTypesFromInstanceRequirementsInput, + GetInstanceTypesFromInstanceRequirementsInputDict as GetInstanceTypesFromInstanceRequirementsInputDict, GetInstanceTypesFromInstanceRequirementsOutput as GetInstanceTypesFromInstanceRequirementsOutput, GetInstanceUefiDataInput as GetInstanceUefiDataInput, + GetInstanceUefiDataInputDict as GetInstanceUefiDataInputDict, GetInstanceUefiDataOutput as GetInstanceUefiDataOutput, GetIpamAddressHistoryInput as GetIpamAddressHistoryInput, + GetIpamAddressHistoryInputDict as GetIpamAddressHistoryInputDict, GetIpamAddressHistoryOutput as GetIpamAddressHistoryOutput, GetIpamDiscoveredAccountsInput as GetIpamDiscoveredAccountsInput, + GetIpamDiscoveredAccountsInputDict as GetIpamDiscoveredAccountsInputDict, GetIpamDiscoveredAccountsOutput as GetIpamDiscoveredAccountsOutput, GetIpamDiscoveredPublicAddressesInput as GetIpamDiscoveredPublicAddressesInput, + GetIpamDiscoveredPublicAddressesInputDict as GetIpamDiscoveredPublicAddressesInputDict, GetIpamDiscoveredPublicAddressesOutput as GetIpamDiscoveredPublicAddressesOutput, GetIpamDiscoveredResourceCidrsInput as GetIpamDiscoveredResourceCidrsInput, + GetIpamDiscoveredResourceCidrsInputDict as GetIpamDiscoveredResourceCidrsInputDict, GetIpamDiscoveredResourceCidrsOutput as GetIpamDiscoveredResourceCidrsOutput, GetIpamDiscoveredRoutesInput as GetIpamDiscoveredRoutesInput, + GetIpamDiscoveredRoutesInputDict as GetIpamDiscoveredRoutesInputDict, GetIpamDiscoveredRoutesOutput as GetIpamDiscoveredRoutesOutput, GetIpamInternetRegistryAssociationAsnsInput as GetIpamInternetRegistryAssociationAsnsInput, + GetIpamInternetRegistryAssociationAsnsInputDict as GetIpamInternetRegistryAssociationAsnsInputDict, GetIpamInternetRegistryAssociationAsnsOutput as GetIpamInternetRegistryAssociationAsnsOutput, GetIpamInternetRegistryAssociationCidrsInput as GetIpamInternetRegistryAssociationCidrsInput, + GetIpamInternetRegistryAssociationCidrsInputDict as GetIpamInternetRegistryAssociationCidrsInputDict, GetIpamInternetRegistryAssociationCidrsOutput as GetIpamInternetRegistryAssociationCidrsOutput, GetIpamPolicyAllocationRulesInput as GetIpamPolicyAllocationRulesInput, + GetIpamPolicyAllocationRulesInputDict as GetIpamPolicyAllocationRulesInputDict, GetIpamPolicyAllocationRulesOutput as GetIpamPolicyAllocationRulesOutput, GetIpamPolicyOrganizationTargetsInput as GetIpamPolicyOrganizationTargetsInput, + GetIpamPolicyOrganizationTargetsInputDict as GetIpamPolicyOrganizationTargetsInputDict, GetIpamPolicyOrganizationTargetsOutput as GetIpamPolicyOrganizationTargetsOutput, GetIpamPoolAllocationsInput as GetIpamPoolAllocationsInput, + GetIpamPoolAllocationsInputDict as GetIpamPoolAllocationsInputDict, GetIpamPoolAllocationsOutput as GetIpamPoolAllocationsOutput, GetIpamPoolCidrsInput as GetIpamPoolCidrsInput, + GetIpamPoolCidrsInputDict as GetIpamPoolCidrsInputDict, GetIpamPoolCidrsOutput as GetIpamPoolCidrsOutput, GetIpamPrefixListResolverRulesInput as GetIpamPrefixListResolverRulesInput, + GetIpamPrefixListResolverRulesInputDict as GetIpamPrefixListResolverRulesInputDict, GetIpamPrefixListResolverRulesOutput as GetIpamPrefixListResolverRulesOutput, GetIpamPrefixListResolverVersionEntriesInput as GetIpamPrefixListResolverVersionEntriesInput, + GetIpamPrefixListResolverVersionEntriesInputDict as GetIpamPrefixListResolverVersionEntriesInputDict, GetIpamPrefixListResolverVersionEntriesOutput as GetIpamPrefixListResolverVersionEntriesOutput, GetIpamPrefixListResolverVersionsInput as GetIpamPrefixListResolverVersionsInput, + GetIpamPrefixListResolverVersionsInputDict as GetIpamPrefixListResolverVersionsInputDict, GetIpamPrefixListResolverVersionsOutput as GetIpamPrefixListResolverVersionsOutput, GetIpamResourceCidrsInput as GetIpamResourceCidrsInput, + GetIpamResourceCidrsInputDict as GetIpamResourceCidrsInputDict, GetIpamResourceCidrsOutput as GetIpamResourceCidrsOutput, GetIpamRouteOriginAuthorizationsInput as GetIpamRouteOriginAuthorizationsInput, + GetIpamRouteOriginAuthorizationsInputDict as GetIpamRouteOriginAuthorizationsInputDict, GetIpamRouteOriginAuthorizationsOutput as GetIpamRouteOriginAuthorizationsOutput, GetIpamRouteProtectionFindingsInput as GetIpamRouteProtectionFindingsInput, + GetIpamRouteProtectionFindingsInputDict as GetIpamRouteProtectionFindingsInputDict, GetIpamRouteProtectionFindingsOutput as GetIpamRouteProtectionFindingsOutput, GetIpamRoutingPolicyRegistrationDeltasInput as GetIpamRoutingPolicyRegistrationDeltasInput, + GetIpamRoutingPolicyRegistrationDeltasInputDict as GetIpamRoutingPolicyRegistrationDeltasInputDict, GetIpamRoutingPolicyRegistrationDeltasOutput as GetIpamRoutingPolicyRegistrationDeltasOutput, GetIpamRoutingPolicyRegistrationsInput as GetIpamRoutingPolicyRegistrationsInput, + GetIpamRoutingPolicyRegistrationsInputDict as GetIpamRoutingPolicyRegistrationsInputDict, GetIpamRoutingPolicyRegistrationsOutput as GetIpamRoutingPolicyRegistrationsOutput, GetLaunchTemplateDataInput as GetLaunchTemplateDataInput, + GetLaunchTemplateDataInputDict as GetLaunchTemplateDataInputDict, GetLaunchTemplateDataOutput as GetLaunchTemplateDataOutput, GetManagedPrefixListAssociationsInput as GetManagedPrefixListAssociationsInput, + GetManagedPrefixListAssociationsInputDict as GetManagedPrefixListAssociationsInputDict, GetManagedPrefixListAssociationsOutput as GetManagedPrefixListAssociationsOutput, GetManagedPrefixListEntriesInput as GetManagedPrefixListEntriesInput, + GetManagedPrefixListEntriesInputDict as GetManagedPrefixListEntriesInputDict, GetManagedPrefixListEntriesOutput as GetManagedPrefixListEntriesOutput, GetManagedResourceVisibilityInput as GetManagedResourceVisibilityInput, + GetManagedResourceVisibilityInputDict as GetManagedResourceVisibilityInputDict, GetManagedResourceVisibilityOutput as GetManagedResourceVisibilityOutput, GetNetworkInsightsAccessScopeAnalysisFindingsInput as GetNetworkInsightsAccessScopeAnalysisFindingsInput, + GetNetworkInsightsAccessScopeAnalysisFindingsInputDict as GetNetworkInsightsAccessScopeAnalysisFindingsInputDict, GetNetworkInsightsAccessScopeAnalysisFindingsOutput as GetNetworkInsightsAccessScopeAnalysisFindingsOutput, GetNetworkInsightsAccessScopeContentInput as GetNetworkInsightsAccessScopeContentInput, + GetNetworkInsightsAccessScopeContentInputDict as GetNetworkInsightsAccessScopeContentInputDict, GetNetworkInsightsAccessScopeContentOutput as GetNetworkInsightsAccessScopeContentOutput, GetPasswordDataInput as GetPasswordDataInput, + GetPasswordDataInputDict as GetPasswordDataInputDict, GetPasswordDataOutput as GetPasswordDataOutput, GetReservedInstancesExchangeQuoteInput as GetReservedInstancesExchangeQuoteInput, + GetReservedInstancesExchangeQuoteInputDict as GetReservedInstancesExchangeQuoteInputDict, GetReservedInstancesExchangeQuoteOutput as GetReservedInstancesExchangeQuoteOutput, GetRouteServerAssociationsInput as GetRouteServerAssociationsInput, + GetRouteServerAssociationsInputDict as GetRouteServerAssociationsInputDict, GetRouteServerAssociationsOutput as GetRouteServerAssociationsOutput, GetRouteServerPropagationsInput as GetRouteServerPropagationsInput, + GetRouteServerPropagationsInputDict as GetRouteServerPropagationsInputDict, GetRouteServerPropagationsOutput as GetRouteServerPropagationsOutput, GetRouteServerRoutingDatabaseInput as GetRouteServerRoutingDatabaseInput, + GetRouteServerRoutingDatabaseInputDict as GetRouteServerRoutingDatabaseInputDict, GetRouteServerRoutingDatabaseOutput as GetRouteServerRoutingDatabaseOutput, GetSecurityGroupsForVpcInput as GetSecurityGroupsForVpcInput, + GetSecurityGroupsForVpcInputDict as GetSecurityGroupsForVpcInputDict, GetSecurityGroupsForVpcOutput as GetSecurityGroupsForVpcOutput, GetSerialConsoleAccessStatusInput as GetSerialConsoleAccessStatusInput, + GetSerialConsoleAccessStatusInputDict as GetSerialConsoleAccessStatusInputDict, GetSerialConsoleAccessStatusOutput as GetSerialConsoleAccessStatusOutput, GetSnapshotBlockPublicAccessStateInput as GetSnapshotBlockPublicAccessStateInput, + GetSnapshotBlockPublicAccessStateInputDict as GetSnapshotBlockPublicAccessStateInputDict, GetSnapshotBlockPublicAccessStateOutput as GetSnapshotBlockPublicAccessStateOutput, GetSpotPlacementScoresInput as GetSpotPlacementScoresInput, + GetSpotPlacementScoresInputDict as GetSpotPlacementScoresInputDict, GetSpotPlacementScoresOutput as GetSpotPlacementScoresOutput, GetSubnetCidrReservationsInput as GetSubnetCidrReservationsInput, + GetSubnetCidrReservationsInputDict as GetSubnetCidrReservationsInputDict, GetSubnetCidrReservationsOutput as GetSubnetCidrReservationsOutput, GetTransitGatewayAttachmentNatConfigurationInput as GetTransitGatewayAttachmentNatConfigurationInput, + GetTransitGatewayAttachmentNatConfigurationInputDict as GetTransitGatewayAttachmentNatConfigurationInputDict, GetTransitGatewayAttachmentNatConfigurationOutput as GetTransitGatewayAttachmentNatConfigurationOutput, GetTransitGatewayAttachmentPropagationsInput as GetTransitGatewayAttachmentPropagationsInput, + GetTransitGatewayAttachmentPropagationsInputDict as GetTransitGatewayAttachmentPropagationsInputDict, GetTransitGatewayAttachmentPropagationsOutput as GetTransitGatewayAttachmentPropagationsOutput, GetTransitGatewayMeteringPolicyEntriesInput as GetTransitGatewayMeteringPolicyEntriesInput, + GetTransitGatewayMeteringPolicyEntriesInputDict as GetTransitGatewayMeteringPolicyEntriesInputDict, GetTransitGatewayMeteringPolicyEntriesOutput as GetTransitGatewayMeteringPolicyEntriesOutput, GetTransitGatewayMulticastDomainAssociationsInput as GetTransitGatewayMulticastDomainAssociationsInput, + GetTransitGatewayMulticastDomainAssociationsInputDict as GetTransitGatewayMulticastDomainAssociationsInputDict, GetTransitGatewayMulticastDomainAssociationsOutput as GetTransitGatewayMulticastDomainAssociationsOutput, GetTransitGatewayPolicyTableAssociationsInput as GetTransitGatewayPolicyTableAssociationsInput, + GetTransitGatewayPolicyTableAssociationsInputDict as GetTransitGatewayPolicyTableAssociationsInputDict, GetTransitGatewayPolicyTableAssociationsOutput as GetTransitGatewayPolicyTableAssociationsOutput, GetTransitGatewayPolicyTableEntriesInput as GetTransitGatewayPolicyTableEntriesInput, + GetTransitGatewayPolicyTableEntriesInputDict as GetTransitGatewayPolicyTableEntriesInputDict, GetTransitGatewayPolicyTableEntriesOutput as GetTransitGatewayPolicyTableEntriesOutput, GetTransitGatewayPrefixListReferencesInput as GetTransitGatewayPrefixListReferencesInput, + GetTransitGatewayPrefixListReferencesInputDict as GetTransitGatewayPrefixListReferencesInputDict, GetTransitGatewayPrefixListReferencesOutput as GetTransitGatewayPrefixListReferencesOutput, GetTransitGatewayRouteTableAssociationsInput as GetTransitGatewayRouteTableAssociationsInput, + GetTransitGatewayRouteTableAssociationsInputDict as GetTransitGatewayRouteTableAssociationsInputDict, GetTransitGatewayRouteTableAssociationsOutput as GetTransitGatewayRouteTableAssociationsOutput, GetTransitGatewayRouteTablePropagationsInput as GetTransitGatewayRouteTablePropagationsInput, + GetTransitGatewayRouteTablePropagationsInputDict as GetTransitGatewayRouteTablePropagationsInputDict, GetTransitGatewayRouteTablePropagationsOutput as GetTransitGatewayRouteTablePropagationsOutput, GetVerifiedAccessEndpointPolicyInput as GetVerifiedAccessEndpointPolicyInput, + GetVerifiedAccessEndpointPolicyInputDict as GetVerifiedAccessEndpointPolicyInputDict, GetVerifiedAccessEndpointPolicyOutput as GetVerifiedAccessEndpointPolicyOutput, GetVerifiedAccessEndpointTargetsInput as GetVerifiedAccessEndpointTargetsInput, + GetVerifiedAccessEndpointTargetsInputDict as GetVerifiedAccessEndpointTargetsInputDict, GetVerifiedAccessEndpointTargetsOutput as GetVerifiedAccessEndpointTargetsOutput, GetVerifiedAccessGroupPolicyInput as GetVerifiedAccessGroupPolicyInput, + GetVerifiedAccessGroupPolicyInputDict as GetVerifiedAccessGroupPolicyInputDict, GetVerifiedAccessGroupPolicyOutput as GetVerifiedAccessGroupPolicyOutput, GetVpcResourcesBlockingEncryptionEnforcementInput as GetVpcResourcesBlockingEncryptionEnforcementInput, + GetVpcResourcesBlockingEncryptionEnforcementInputDict as GetVpcResourcesBlockingEncryptionEnforcementInputDict, GetVpcResourcesBlockingEncryptionEnforcementOutput as GetVpcResourcesBlockingEncryptionEnforcementOutput, GetVpnConnectionDeviceSampleConfigurationInput as GetVpnConnectionDeviceSampleConfigurationInput, + GetVpnConnectionDeviceSampleConfigurationInputDict as GetVpnConnectionDeviceSampleConfigurationInputDict, GetVpnConnectionDeviceSampleConfigurationOutput as GetVpnConnectionDeviceSampleConfigurationOutput, GetVpnConnectionDeviceTypesInput as GetVpnConnectionDeviceTypesInput, + GetVpnConnectionDeviceTypesInputDict as GetVpnConnectionDeviceTypesInputDict, GetVpnConnectionDeviceTypesOutput as GetVpnConnectionDeviceTypesOutput, GetVpnTunnelReplacementStatusInput as GetVpnTunnelReplacementStatusInput, + GetVpnTunnelReplacementStatusInputDict as GetVpnTunnelReplacementStatusInputDict, GetVpnTunnelReplacementStatusOutput as GetVpnTunnelReplacementStatusOutput, GpuDeviceInfo as GpuDeviceInfo, GpuDeviceMemoryInfo as GpuDeviceMemoryInfo, GpuInfo as GpuInfo, GroupBy as GroupBy, GroupIdentifier as GroupIdentifier, + GroupIdentifierDict as GroupIdentifierDict, HaStatus as HaStatus, HealthCheckPathDestinationRequestObject as HealthCheckPathDestinationRequestObject, + HealthCheckPathDestinationRequestObjectDict as HealthCheckPathDestinationRequestObjectDict, HealthCheckPathDestinationResponseObject as HealthCheckPathDestinationResponseObject, HealthCheckPathRequestObject as HealthCheckPathRequestObject, + HealthCheckPathRequestObjectDict as HealthCheckPathRequestObjectDict, HealthCheckPathResponseObject as HealthCheckPathResponseObject, HealthCheckPathSourceRequestObject as HealthCheckPathSourceRequestObject, + HealthCheckPathSourceRequestObjectDict as HealthCheckPathSourceRequestObjectDict, HealthCheckPathSourceResponseObject as HealthCheckPathSourceResponseObject, HibernationOptions as HibernationOptions, HibernationOptionsRequest as HibernationOptionsRequest, + HibernationOptionsRequestDict as HibernationOptionsRequestDict, HistoryRecord as HistoryRecord, HistoryRecordEntry as HistoryRecordEntry, Host as Host, HostCpuOptions as HostCpuOptions, HostCpuOptionsRequest as HostCpuOptionsRequest, + HostCpuOptionsRequestDict as HostCpuOptionsRequestDict, HostInstance as HostInstance, HostMaintenance as HostMaintenance, HostnameType as HostnameType, @@ -1776,14 +2508,17 @@ from ._private.models_6 import ( IamInstanceProfileAssociation as IamInstanceProfileAssociation, IamInstanceProfileAssociationState as IamInstanceProfileAssociationState, IamInstanceProfileSpecification as IamInstanceProfileSpecification, + IamInstanceProfileSpecificationDict as IamInstanceProfileSpecificationDict, ) -from ._private.models_7 import ( +from ._private.models_07 import ( IcmpTypeCode as IcmpTypeCode, + IcmpTypeCodeDict as IcmpTypeCodeDict, IdFormat as IdFormat, Igmpv2SupportValue as Igmpv2SupportValue, IKEVersionsListValue as IKEVersionsListValue, IKEVersionsRequestListValue as IKEVersionsRequestListValue, + IKEVersionsRequestListValueDict as IKEVersionsRequestListValueDict, Image as Image, ImageAncestryEntry as ImageAncestryEntry, ImageAttributeName as ImageAttributeName, @@ -1791,7 +2526,9 @@ from ._private.models_7 import ( ImageBlockPublicAccessEnabledState as ImageBlockPublicAccessEnabledState, ImageCriterion as ImageCriterion, ImageCriterionRequest as ImageCriterionRequest, + ImageCriterionRequestDict as ImageCriterionRequestDict, ImageDiskContainer as ImageDiskContainer, + ImageDiskContainerDict as ImageDiskContainerDict, ImageFinding as ImageFinding, ImageMetadata as ImageMetadata, ImageRecycleBinInfo as ImageRecycleBinInfo, @@ -1805,29 +2542,40 @@ from ._private.models_7 import ( ImageUsageResourceType as ImageUsageResourceType, ImageUsageResourceTypeOption as ImageUsageResourceTypeOption, ImageUsageResourceTypeOptionRequest as ImageUsageResourceTypeOptionRequest, + ImageUsageResourceTypeOptionRequestDict as ImageUsageResourceTypeOptionRequestDict, ImageUsageResourceTypeRequest as ImageUsageResourceTypeRequest, + ImageUsageResourceTypeRequestDict as ImageUsageResourceTypeRequestDict, ImageWatermark as ImageWatermark, ImageWatermarkFilterRequest as ImageWatermarkFilterRequest, + ImageWatermarkFilterRequestDict as ImageWatermarkFilterRequestDict, ImageWatermarkFilterResponse as ImageWatermarkFilterResponse, ImdsSupportValues as ImdsSupportValues, ImportClientVpnClientCertificateRevocationListInput as ImportClientVpnClientCertificateRevocationListInput, + ImportClientVpnClientCertificateRevocationListInputDict as ImportClientVpnClientCertificateRevocationListInputDict, ImportClientVpnClientCertificateRevocationListOutput as ImportClientVpnClientCertificateRevocationListOutput, ImportImageInput as ImportImageInput, + ImportImageInputDict as ImportImageInputDict, ImportImageLicenseConfigurationRequest as ImportImageLicenseConfigurationRequest, + ImportImageLicenseConfigurationRequestDict as ImportImageLicenseConfigurationRequestDict, ImportImageLicenseConfigurationResponse as ImportImageLicenseConfigurationResponse, ImportImageOutput as ImportImageOutput, ImportImageTask as ImportImageTask, ImportInstanceInput as ImportInstanceInput, + ImportInstanceInputDict as ImportInstanceInputDict, ImportInstanceLaunchSpecification as ImportInstanceLaunchSpecification, + ImportInstanceLaunchSpecificationDict as ImportInstanceLaunchSpecificationDict, ImportInstanceOutput as ImportInstanceOutput, ImportInstanceTaskDetails as ImportInstanceTaskDetails, ImportInstanceVolumeDetailItem as ImportInstanceVolumeDetailItem, ImportKeyPairInput as ImportKeyPairInput, + ImportKeyPairInputDict as ImportKeyPairInputDict, ImportKeyPairOutput as ImportKeyPairOutput, ImportSnapshotInput as ImportSnapshotInput, + ImportSnapshotInputDict as ImportSnapshotInputDict, ImportSnapshotOutput as ImportSnapshotOutput, ImportSnapshotTask as ImportSnapshotTask, ImportVolumeInput as ImportVolumeInput, + ImportVolumeInputDict as ImportVolumeInputDict, ImportVolumeOutput as ImportVolumeOutput, ImportVolumeTaskDetails as ImportVolumeTaskDetails, InferenceAcceleratorInfo as InferenceAcceleratorInfo, @@ -1845,6 +2593,7 @@ from ._private.models_7 import ( InstanceBandwidthWeighting as InstanceBandwidthWeighting, InstanceBlockDeviceMapping as InstanceBlockDeviceMapping, InstanceBlockDeviceMappingSpecification as InstanceBlockDeviceMappingSpecification, + InstanceBlockDeviceMappingSpecificationDict as InstanceBlockDeviceMappingSpecificationDict, InstanceBootModeValues as InstanceBootModeValues, InstanceCapacity as InstanceCapacity, InstanceConnectEndpointDnsNames as InstanceConnectEndpointDnsNames, @@ -1852,14 +2601,18 @@ from ._private.models_7 import ( InstanceCount as InstanceCount, InstanceCreditSpecification as InstanceCreditSpecification, InstanceCreditSpecificationRequest as InstanceCreditSpecificationRequest, + InstanceCreditSpecificationRequestDict as InstanceCreditSpecificationRequestDict, InstanceEventWindow as InstanceEventWindow, InstanceEventWindowAssociationRequest as InstanceEventWindowAssociationRequest, + InstanceEventWindowAssociationRequestDict as InstanceEventWindowAssociationRequestDict, InstanceEventWindowAssociationTarget as InstanceEventWindowAssociationTarget, InstanceEventWindowDisassociationRequest as InstanceEventWindowDisassociationRequest, + InstanceEventWindowDisassociationRequestDict as InstanceEventWindowDisassociationRequestDict, InstanceEventWindowState as InstanceEventWindowState, InstanceEventWindowStateChange as InstanceEventWindowStateChange, InstanceEventWindowTimeRange as InstanceEventWindowTimeRange, InstanceEventWindowTimeRangeRequest as InstanceEventWindowTimeRangeRequest, + InstanceEventWindowTimeRangeRequestDict as InstanceEventWindowTimeRangeRequestDict, InstanceExportDetails as InstanceExportDetails, InstanceFamilyCreditSpecification as InstanceFamilyCreditSpecification, InstanceGeneration as InstanceGeneration, @@ -1868,17 +2621,22 @@ from ._private.models_7 import ( InstanceInterruptionBehavior as InstanceInterruptionBehavior, InstanceIpv4Prefix as InstanceIpv4Prefix, InstanceIpv6Address as InstanceIpv6Address, + InstanceIpv6AddressDict as InstanceIpv6AddressDict, InstanceIpv6AddressRequest as InstanceIpv6AddressRequest, + InstanceIpv6AddressRequestDict as InstanceIpv6AddressRequestDict, InstanceIpv6Prefix as InstanceIpv6Prefix, InstanceLifecycle as InstanceLifecycle, InstanceLifecycleType as InstanceLifecycleType, InstanceMaintenanceOptions as InstanceMaintenanceOptions, InstanceMaintenanceOptionsRequest as InstanceMaintenanceOptionsRequest, + InstanceMaintenanceOptionsRequestDict as InstanceMaintenanceOptionsRequestDict, InstanceMarketOptionsRequest as InstanceMarketOptionsRequest, + InstanceMarketOptionsRequestDict as InstanceMarketOptionsRequestDict, InstanceMatchCriteria as InstanceMatchCriteria, InstanceMetadataDefaultsResponse as InstanceMetadataDefaultsResponse, InstanceMetadataEndpointState as InstanceMetadataEndpointState, InstanceMetadataOptionsRequest as InstanceMetadataOptionsRequest, + InstanceMetadataOptionsRequestDict as InstanceMetadataOptionsRequestDict, InstanceMetadataOptionsResponse as InstanceMetadataOptionsResponse, InstanceMetadataOptionsState as InstanceMetadataOptionsState, InstanceMetadataProtocolState as InstanceMetadataProtocolState, @@ -1888,19 +2646,27 @@ from ._private.models_7 import ( InstanceNetworkInterfaceAssociation as InstanceNetworkInterfaceAssociation, InstanceNetworkInterfaceAttachment as InstanceNetworkInterfaceAttachment, InstanceNetworkInterfaceSpecification as InstanceNetworkInterfaceSpecification, + InstanceNetworkInterfaceSpecificationDict as InstanceNetworkInterfaceSpecificationDict, InstanceNetworkPerformanceOptions as InstanceNetworkPerformanceOptions, InstanceNetworkPerformanceOptionsRequest as InstanceNetworkPerformanceOptionsRequest, + InstanceNetworkPerformanceOptionsRequestDict as InstanceNetworkPerformanceOptionsRequestDict, InstancePrivateIpAddress as InstancePrivateIpAddress, InstanceRebootMigrationState as InstanceRebootMigrationState, InstanceRequirements as InstanceRequirements, + InstanceRequirementsDict as InstanceRequirementsDict, InstanceRequirementsRequest as InstanceRequirementsRequest, + InstanceRequirementsRequestDict as InstanceRequirementsRequestDict, InstanceRequirementsWithMetadataRequest as InstanceRequirementsWithMetadataRequest, + InstanceRequirementsWithMetadataRequestDict as InstanceRequirementsWithMetadataRequestDict, InstanceSecondaryInterface as InstanceSecondaryInterface, InstanceSecondaryInterfaceAttachment as InstanceSecondaryInterfaceAttachment, InstanceSecondaryInterfacePrivateIpAddress as InstanceSecondaryInterfacePrivateIpAddress, InstanceSecondaryInterfacePrivateIpAddressRequest as InstanceSecondaryInterfacePrivateIpAddressRequest, + InstanceSecondaryInterfacePrivateIpAddressRequestDict as InstanceSecondaryInterfacePrivateIpAddressRequestDict, InstanceSecondaryInterfaceSpecificationRequest as InstanceSecondaryInterfaceSpecificationRequest, + InstanceSecondaryInterfaceSpecificationRequestDict as InstanceSecondaryInterfaceSpecificationRequestDict, InstanceSpecification as InstanceSpecification, + InstanceSpecificationDict as InstanceSpecificationDict, InstanceState as InstanceState, InstanceStateChange as InstanceStateChange, InstanceStateName as InstanceStateName, @@ -1920,8 +2686,10 @@ from ._private.models_7 import ( InstanceTypeOffering as InstanceTypeOffering, InstanceTypeSpecification as InstanceTypeSpecification, InstanceTypeSpecificationRequest as InstanceTypeSpecificationRequest, + InstanceTypeSpecificationRequestDict as InstanceTypeSpecificationRequestDict, InstanceUsage as InstanceUsage, IntegrateServices as IntegrateServices, + IntegrateServicesDict as IntegrateServicesDict, InterfacePermissionType as InterfacePermissionType, InterfaceProtocolType as InterfaceProtocolType, InternetGateway as InternetGateway, @@ -1940,6 +2708,7 @@ from ._private.models_7 import ( IpamByoipAdvertisementType as IpamByoipAdvertisementType, IpamByoipCidrState as IpamByoipCidrState, IpamCidrAuthorizationContext as IpamCidrAuthorizationContext, + IpamCidrAuthorizationContextDict as IpamCidrAuthorizationContextDict, IpamComplianceStatus as IpamComplianceStatus, IpamDiscoveredAccount as IpamDiscoveredAccount, IpamDiscoveredPublicAddress as IpamDiscoveredPublicAddress, @@ -1962,6 +2731,7 @@ from ._private.models_7 import ( IpamPolicy as IpamPolicy, IpamPolicyAllocationRule as IpamPolicyAllocationRule, IpamPolicyAllocationRuleRequest as IpamPolicyAllocationRuleRequest, + IpamPolicyAllocationRuleRequestDict as IpamPolicyAllocationRuleRequestDict, IpamPolicyDocument as IpamPolicyDocument, IpamPolicyManagedBy as IpamPolicyManagedBy, IpamPolicyOrganizationTarget as IpamPolicyOrganizationTarget, @@ -1978,6 +2748,7 @@ from ._private.models_7 import ( IpamPoolPublicIpSource as IpamPoolPublicIpSource, IpamPoolSourceResource as IpamPoolSourceResource, IpamPoolSourceResourceRequest as IpamPoolSourceResourceRequest, + IpamPoolSourceResourceRequestDict as IpamPoolSourceResourceRequestDict, IpamPoolSourceResourceType as IpamPoolSourceResourceType, IpamPoolState as IpamPoolState, IpamPrefixListResolver as IpamPrefixListResolver, @@ -1985,7 +2756,9 @@ from ._private.models_7 import ( IpamPrefixListResolverRuleCondition as IpamPrefixListResolverRuleCondition, IpamPrefixListResolverRuleConditionOperation as IpamPrefixListResolverRuleConditionOperation, IpamPrefixListResolverRuleConditionRequest as IpamPrefixListResolverRuleConditionRequest, + IpamPrefixListResolverRuleConditionRequestDict as IpamPrefixListResolverRuleConditionRequestDict, IpamPrefixListResolverRuleRequest as IpamPrefixListResolverRuleRequest, + IpamPrefixListResolverRuleRequestDict as IpamPrefixListResolverRuleRequestDict, IpamPrefixListResolverRuleType as IpamPrefixListResolverRuleType, IpamPrefixListResolverState as IpamPrefixListResolverState, IpamPrefixListResolverTarget as IpamPrefixListResolverTarget, @@ -2025,14 +2798,17 @@ from ._private.models_7 import ( IpamState as IpamState, IpamTier as IpamTier, IpPermission as IpPermission, + IpPermissionDict as IpPermissionDict, IpRange as IpRange, + IpRangeDict as IpRangeDict, IpScopeEnum as IpScopeEnum, IpSource as IpSource, Ipv4PrefixSpecification as Ipv4PrefixSpecification, ) -from ._private.models_8 import ( +from ._private.models_08 import ( Ipv4PrefixSpecificationRequest as Ipv4PrefixSpecificationRequest, + Ipv4PrefixSpecificationRequestDict as Ipv4PrefixSpecificationRequestDict, Ipv4PrefixSpecificationResponse as Ipv4PrefixSpecificationResponse, Ipv6AddressAttribute as Ipv6AddressAttribute, Ipv6CidrAssociation as Ipv6CidrAssociation, @@ -2040,8 +2816,10 @@ from ._private.models_8 import ( Ipv6Pool as Ipv6Pool, Ipv6PrefixSpecification as Ipv6PrefixSpecification, Ipv6PrefixSpecificationRequest as Ipv6PrefixSpecificationRequest, + Ipv6PrefixSpecificationRequestDict as Ipv6PrefixSpecificationRequestDict, Ipv6PrefixSpecificationResponse as Ipv6PrefixSpecificationResponse, Ipv6Range as Ipv6Range, + Ipv6RangeDict as Ipv6RangeDict, Ipv6SupportValue as Ipv6SupportValue, IpVersionEnum as IpVersionEnum, KeyFormat as KeyFormat, @@ -2049,77 +2827,109 @@ from ._private.models_8 import ( KeyType as KeyType, LastError as LastError, LaunchPermission as LaunchPermission, + LaunchPermissionDict as LaunchPermissionDict, LaunchPermissionModifications as LaunchPermissionModifications, + LaunchPermissionModificationsDict as LaunchPermissionModificationsDict, LaunchSpecification as LaunchSpecification, LaunchTemplate as LaunchTemplate, LaunchTemplateAndOverridesResponse as LaunchTemplateAndOverridesResponse, LaunchTemplateAutoRecoveryState as LaunchTemplateAutoRecoveryState, LaunchTemplateBlockDeviceMapping as LaunchTemplateBlockDeviceMapping, LaunchTemplateBlockDeviceMappingRequest as LaunchTemplateBlockDeviceMappingRequest, + LaunchTemplateBlockDeviceMappingRequestDict as LaunchTemplateBlockDeviceMappingRequestDict, LaunchTemplateCapacityReservationSpecificationRequest as LaunchTemplateCapacityReservationSpecificationRequest, + LaunchTemplateCapacityReservationSpecificationRequestDict as LaunchTemplateCapacityReservationSpecificationRequestDict, LaunchTemplateCapacityReservationSpecificationResponse as LaunchTemplateCapacityReservationSpecificationResponse, LaunchTemplateConfig as LaunchTemplateConfig, + LaunchTemplateConfigDict as LaunchTemplateConfigDict, LaunchTemplateCpuOptions as LaunchTemplateCpuOptions, LaunchTemplateCpuOptionsRequest as LaunchTemplateCpuOptionsRequest, + LaunchTemplateCpuOptionsRequestDict as LaunchTemplateCpuOptionsRequestDict, LaunchTemplateEbsBlockDevice as LaunchTemplateEbsBlockDevice, LaunchTemplateEbsBlockDeviceRequest as LaunchTemplateEbsBlockDeviceRequest, + LaunchTemplateEbsBlockDeviceRequestDict as LaunchTemplateEbsBlockDeviceRequestDict, LaunchTemplateElasticInferenceAccelerator as LaunchTemplateElasticInferenceAccelerator, + LaunchTemplateElasticInferenceAcceleratorDict as LaunchTemplateElasticInferenceAcceleratorDict, LaunchTemplateElasticInferenceAcceleratorResponse as LaunchTemplateElasticInferenceAcceleratorResponse, LaunchTemplateEnaSrdSpecification as LaunchTemplateEnaSrdSpecification, LaunchTemplateEnaSrdUdpSpecification as LaunchTemplateEnaSrdUdpSpecification, LaunchTemplateEnclaveOptions as LaunchTemplateEnclaveOptions, LaunchTemplateEnclaveOptionsRequest as LaunchTemplateEnclaveOptionsRequest, + LaunchTemplateEnclaveOptionsRequestDict as LaunchTemplateEnclaveOptionsRequestDict, LaunchTemplateErrorCode as LaunchTemplateErrorCode, LaunchTemplateHibernationOptions as LaunchTemplateHibernationOptions, LaunchTemplateHibernationOptionsRequest as LaunchTemplateHibernationOptionsRequest, + LaunchTemplateHibernationOptionsRequestDict as LaunchTemplateHibernationOptionsRequestDict, LaunchTemplateHttpTokensState as LaunchTemplateHttpTokensState, LaunchTemplateIamInstanceProfileSpecification as LaunchTemplateIamInstanceProfileSpecification, LaunchTemplateIamInstanceProfileSpecificationRequest as LaunchTemplateIamInstanceProfileSpecificationRequest, + LaunchTemplateIamInstanceProfileSpecificationRequestDict as LaunchTemplateIamInstanceProfileSpecificationRequestDict, LaunchTemplateInstanceMaintenanceOptions as LaunchTemplateInstanceMaintenanceOptions, LaunchTemplateInstanceMaintenanceOptionsRequest as LaunchTemplateInstanceMaintenanceOptionsRequest, + LaunchTemplateInstanceMaintenanceOptionsRequestDict as LaunchTemplateInstanceMaintenanceOptionsRequestDict, LaunchTemplateInstanceMarketOptions as LaunchTemplateInstanceMarketOptions, LaunchTemplateInstanceMarketOptionsRequest as LaunchTemplateInstanceMarketOptionsRequest, + LaunchTemplateInstanceMarketOptionsRequestDict as LaunchTemplateInstanceMarketOptionsRequestDict, LaunchTemplateInstanceMetadataEndpointState as LaunchTemplateInstanceMetadataEndpointState, LaunchTemplateInstanceMetadataOptions as LaunchTemplateInstanceMetadataOptions, LaunchTemplateInstanceMetadataOptionsRequest as LaunchTemplateInstanceMetadataOptionsRequest, + LaunchTemplateInstanceMetadataOptionsRequestDict as LaunchTemplateInstanceMetadataOptionsRequestDict, LaunchTemplateInstanceMetadataOptionsState as LaunchTemplateInstanceMetadataOptionsState, LaunchTemplateInstanceMetadataProtocolIpv6 as LaunchTemplateInstanceMetadataProtocolIpv6, LaunchTemplateInstanceMetadataTagsState as LaunchTemplateInstanceMetadataTagsState, LaunchTemplateInstanceNetworkInterfaceSpecification as LaunchTemplateInstanceNetworkInterfaceSpecification, LaunchTemplateInstanceNetworkInterfaceSpecificationRequest as LaunchTemplateInstanceNetworkInterfaceSpecificationRequest, + LaunchTemplateInstanceNetworkInterfaceSpecificationRequestDict as LaunchTemplateInstanceNetworkInterfaceSpecificationRequestDict, LaunchTemplateInstanceSecondaryInterfaceSpecification as LaunchTemplateInstanceSecondaryInterfaceSpecification, LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest as LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest, + LaunchTemplateInstanceSecondaryInterfaceSpecificationRequestDict as LaunchTemplateInstanceSecondaryInterfaceSpecificationRequestDict, LaunchTemplateLicenseConfiguration as LaunchTemplateLicenseConfiguration, LaunchTemplateLicenseConfigurationRequest as LaunchTemplateLicenseConfigurationRequest, + LaunchTemplateLicenseConfigurationRequestDict as LaunchTemplateLicenseConfigurationRequestDict, LaunchTemplateNetworkPerformanceOptions as LaunchTemplateNetworkPerformanceOptions, LaunchTemplateNetworkPerformanceOptionsRequest as LaunchTemplateNetworkPerformanceOptionsRequest, + LaunchTemplateNetworkPerformanceOptionsRequestDict as LaunchTemplateNetworkPerformanceOptionsRequestDict, LaunchTemplateOverrides as LaunchTemplateOverrides, + LaunchTemplateOverridesDict as LaunchTemplateOverridesDict, LaunchTemplatePlacement as LaunchTemplatePlacement, LaunchTemplatePlacementRequest as LaunchTemplatePlacementRequest, + LaunchTemplatePlacementRequestDict as LaunchTemplatePlacementRequestDict, LaunchTemplatePrivateDnsNameOptions as LaunchTemplatePrivateDnsNameOptions, LaunchTemplatePrivateDnsNameOptionsRequest as LaunchTemplatePrivateDnsNameOptionsRequest, + LaunchTemplatePrivateDnsNameOptionsRequestDict as LaunchTemplatePrivateDnsNameOptionsRequestDict, LaunchTemplatesMonitoring as LaunchTemplatesMonitoring, LaunchTemplatesMonitoringRequest as LaunchTemplatesMonitoringRequest, + LaunchTemplatesMonitoringRequestDict as LaunchTemplatesMonitoringRequestDict, LaunchTemplateSpecification as LaunchTemplateSpecification, + LaunchTemplateSpecificationDict as LaunchTemplateSpecificationDict, LaunchTemplateSpotMarketOptions as LaunchTemplateSpotMarketOptions, LaunchTemplateSpotMarketOptionsRequest as LaunchTemplateSpotMarketOptionsRequest, + LaunchTemplateSpotMarketOptionsRequestDict as LaunchTemplateSpotMarketOptionsRequestDict, LaunchTemplateTagSpecification as LaunchTemplateTagSpecification, LaunchTemplateTagSpecificationRequest as LaunchTemplateTagSpecificationRequest, + LaunchTemplateTagSpecificationRequestDict as LaunchTemplateTagSpecificationRequestDict, LaunchTemplateVersion as LaunchTemplateVersion, LicenseConfiguration as LicenseConfiguration, LicenseConfigurationRequest as LicenseConfigurationRequest, + LicenseConfigurationRequestDict as LicenseConfigurationRequestDict, ListImagesInRecycleBinInput as ListImagesInRecycleBinInput, + ListImagesInRecycleBinInputDict as ListImagesInRecycleBinInputDict, ListImagesInRecycleBinOutput as ListImagesInRecycleBinOutput, ListingState as ListingState, ListingStatus as ListingStatus, ListSnapshotsInRecycleBinInput as ListSnapshotsInRecycleBinInput, + ListSnapshotsInRecycleBinInputDict as ListSnapshotsInRecycleBinInputDict, ListSnapshotsInRecycleBinOutput as ListSnapshotsInRecycleBinOutput, ListVolumesInRecycleBinInput as ListVolumesInRecycleBinInput, + ListVolumesInRecycleBinInputDict as ListVolumesInRecycleBinInputDict, ListVolumesInRecycleBinOutput as ListVolumesInRecycleBinOutput, LoadBalancersConfig as LoadBalancersConfig, + LoadBalancersConfigDict as LoadBalancersConfigDict, LoadPermission as LoadPermission, LoadPermissionModifications as LoadPermissionModifications, + LoadPermissionModificationsDict as LoadPermissionModificationsDict, LoadPermissionRequest as LoadPermissionRequest, + LoadPermissionRequestDict as LoadPermissionRequestDict, LocalGateway as LocalGateway, LocalGatewayRoute as LocalGatewayRoute, LocalGatewayRouteState as LocalGatewayRouteState, @@ -2138,6 +2948,7 @@ from ._private.models_8 import ( LockedSnapshotsInfo as LockedSnapshotsInfo, LockMode as LockMode, LockSnapshotInput as LockSnapshotInput, + LockSnapshotInputDict as LockSnapshotInputDict, LockSnapshotOutput as LockSnapshotOutput, LockState as LockState, LogDestinationType as LogDestinationType, @@ -2147,6 +2958,7 @@ from ._private.models_8 import ( MacModificationTaskType as MacModificationTaskType, MacSystemIntegrityProtectionConfiguration as MacSystemIntegrityProtectionConfiguration, MacSystemIntegrityProtectionConfigurationRequest as MacSystemIntegrityProtectionConfigurationRequest, + MacSystemIntegrityProtectionConfigurationRequestDict as MacSystemIntegrityProtectionConfigurationRequestDict, MacSystemIntegrityProtectionSettingStatus as MacSystemIntegrityProtectionSettingStatus, MaintenanceDetails as MaintenanceDetails, ManagedBy as ManagedBy, @@ -2159,10 +2971,14 @@ from ._private.models_8 import ( MediaDeviceMemoryInfo as MediaDeviceMemoryInfo, MembershipType as MembershipType, MemoryGiBPerVCpu as MemoryGiBPerVCpu, + MemoryGiBPerVCpuDict as MemoryGiBPerVCpuDict, MemoryGiBPerVCpuRequest as MemoryGiBPerVCpuRequest, + MemoryGiBPerVCpuRequestDict as MemoryGiBPerVCpuRequestDict, MemoryInfo as MemoryInfo, MemoryMiB as MemoryMiB, + MemoryMiBDict as MemoryMiBDict, MemoryMiBRequest as MemoryMiBRequest, + MemoryMiBRequestDict as MemoryMiBRequestDict, MetadataDefaultHttpTokensState as MetadataDefaultHttpTokensState, Metric as Metric, MetricDataResult as MetricDataResult, @@ -2173,201 +2989,302 @@ from ._private.models_8 import ( ModificationReservationUpdate as ModificationReservationUpdate, ModificationTerms as ModificationTerms, ModifyAccountVpcEncryptionControlInput as ModifyAccountVpcEncryptionControlInput, + ModifyAccountVpcEncryptionControlInputDict as ModifyAccountVpcEncryptionControlInputDict, ModifyAccountVpcEncryptionControlOutput as ModifyAccountVpcEncryptionControlOutput, ModifyAddressAttributeInput as ModifyAddressAttributeInput, + ModifyAddressAttributeInputDict as ModifyAddressAttributeInputDict, ModifyAddressAttributeOutput as ModifyAddressAttributeOutput, ModifyApplicationStatusCheckInput as ModifyApplicationStatusCheckInput, + ModifyApplicationStatusCheckInputDict as ModifyApplicationStatusCheckInputDict, ModifyApplicationStatusCheckOutput as ModifyApplicationStatusCheckOutput, ModifyAvailabilityZoneGroupInput as ModifyAvailabilityZoneGroupInput, + ModifyAvailabilityZoneGroupInputDict as ModifyAvailabilityZoneGroupInputDict, ModifyAvailabilityZoneGroupOutput as ModifyAvailabilityZoneGroupOutput, ModifyAvailabilityZoneOptInStatus as ModifyAvailabilityZoneOptInStatus, ModifyCapacityReservationFleetInput as ModifyCapacityReservationFleetInput, + ModifyCapacityReservationFleetInputDict as ModifyCapacityReservationFleetInputDict, ModifyCapacityReservationFleetOutput as ModifyCapacityReservationFleetOutput, ModifyCapacityReservationInput as ModifyCapacityReservationInput, + ModifyCapacityReservationInputDict as ModifyCapacityReservationInputDict, ModifyCapacityReservationOutput as ModifyCapacityReservationOutput, ModifyClientVpnEndpointAuthorizationPolicyInput as ModifyClientVpnEndpointAuthorizationPolicyInput, + ModifyClientVpnEndpointAuthorizationPolicyInputDict as ModifyClientVpnEndpointAuthorizationPolicyInputDict, ModifyClientVpnEndpointAuthorizationPolicyOutput as ModifyClientVpnEndpointAuthorizationPolicyOutput, ModifyClientVpnEndpointInput as ModifyClientVpnEndpointInput, + ModifyClientVpnEndpointInputDict as ModifyClientVpnEndpointInputDict, ModifyClientVpnEndpointOutput as ModifyClientVpnEndpointOutput, ModifyDefaultCreditSpecificationInput as ModifyDefaultCreditSpecificationInput, + ModifyDefaultCreditSpecificationInputDict as ModifyDefaultCreditSpecificationInputDict, ModifyDefaultCreditSpecificationOutput as ModifyDefaultCreditSpecificationOutput, ModifyEbsDefaultKmsKeyIdInput as ModifyEbsDefaultKmsKeyIdInput, + ModifyEbsDefaultKmsKeyIdInputDict as ModifyEbsDefaultKmsKeyIdInputDict, ModifyEbsDefaultKmsKeyIdOutput as ModifyEbsDefaultKmsKeyIdOutput, ModifyFleetInput as ModifyFleetInput, + ModifyFleetInputDict as ModifyFleetInputDict, ModifyFleetOutput as ModifyFleetOutput, ModifyFpgaImageAttributeInput as ModifyFpgaImageAttributeInput, + ModifyFpgaImageAttributeInputDict as ModifyFpgaImageAttributeInputDict, ModifyFpgaImageAttributeOutput as ModifyFpgaImageAttributeOutput, ModifyHostsInput as ModifyHostsInput, + ModifyHostsInputDict as ModifyHostsInputDict, ModifyHostsOutput as ModifyHostsOutput, ModifyIdentityIdFormatInput as ModifyIdentityIdFormatInput, + ModifyIdentityIdFormatInputDict as ModifyIdentityIdFormatInputDict, ModifyIdentityIdFormatOutput as ModifyIdentityIdFormatOutput, ModifyIdFormatInput as ModifyIdFormatInput, + ModifyIdFormatInputDict as ModifyIdFormatInputDict, ModifyIdFormatOutput as ModifyIdFormatOutput, ModifyImageAttributeInput as ModifyImageAttributeInput, + ModifyImageAttributeInputDict as ModifyImageAttributeInputDict, ModifyImageAttributeOutput as ModifyImageAttributeOutput, ModifyInstanceAttributeInput as ModifyInstanceAttributeInput, + ModifyInstanceAttributeInputDict as ModifyInstanceAttributeInputDict, ModifyInstanceAttributeOutput as ModifyInstanceAttributeOutput, ModifyInstanceCapacityReservationAttributesInput as ModifyInstanceCapacityReservationAttributesInput, + ModifyInstanceCapacityReservationAttributesInputDict as ModifyInstanceCapacityReservationAttributesInputDict, ModifyInstanceCapacityReservationAttributesOutput as ModifyInstanceCapacityReservationAttributesOutput, ModifyInstanceConnectEndpointInput as ModifyInstanceConnectEndpointInput, + ModifyInstanceConnectEndpointInputDict as ModifyInstanceConnectEndpointInputDict, ModifyInstanceConnectEndpointOutput as ModifyInstanceConnectEndpointOutput, ModifyInstanceCpuOptionsInput as ModifyInstanceCpuOptionsInput, + ModifyInstanceCpuOptionsInputDict as ModifyInstanceCpuOptionsInputDict, ModifyInstanceCpuOptionsOutput as ModifyInstanceCpuOptionsOutput, ModifyInstanceCreditSpecificationInput as ModifyInstanceCreditSpecificationInput, + ModifyInstanceCreditSpecificationInputDict as ModifyInstanceCreditSpecificationInputDict, ModifyInstanceCreditSpecificationOutput as ModifyInstanceCreditSpecificationOutput, ModifyInstanceEventStartTimeInput as ModifyInstanceEventStartTimeInput, + ModifyInstanceEventStartTimeInputDict as ModifyInstanceEventStartTimeInputDict, ModifyInstanceEventStartTimeOutput as ModifyInstanceEventStartTimeOutput, ModifyInstanceEventWindowInput as ModifyInstanceEventWindowInput, + ModifyInstanceEventWindowInputDict as ModifyInstanceEventWindowInputDict, ModifyInstanceEventWindowOutput as ModifyInstanceEventWindowOutput, ModifyInstanceMaintenanceOptionsInput as ModifyInstanceMaintenanceOptionsInput, + ModifyInstanceMaintenanceOptionsInputDict as ModifyInstanceMaintenanceOptionsInputDict, ModifyInstanceMaintenanceOptionsOutput as ModifyInstanceMaintenanceOptionsOutput, ModifyInstanceMetadataDefaultsInput as ModifyInstanceMetadataDefaultsInput, + ModifyInstanceMetadataDefaultsInputDict as ModifyInstanceMetadataDefaultsInputDict, ModifyInstanceMetadataDefaultsOutput as ModifyInstanceMetadataDefaultsOutput, ModifyInstanceMetadataOptionsInput as ModifyInstanceMetadataOptionsInput, + ModifyInstanceMetadataOptionsInputDict as ModifyInstanceMetadataOptionsInputDict, ModifyInstanceMetadataOptionsOutput as ModifyInstanceMetadataOptionsOutput, ModifyInstanceNetworkPerformanceOptionsInput as ModifyInstanceNetworkPerformanceOptionsInput, + ModifyInstanceNetworkPerformanceOptionsInputDict as ModifyInstanceNetworkPerformanceOptionsInputDict, ModifyInstanceNetworkPerformanceOptionsOutput as ModifyInstanceNetworkPerformanceOptionsOutput, ModifyInstancePlacementInput as ModifyInstancePlacementInput, + ModifyInstancePlacementInputDict as ModifyInstancePlacementInputDict, ModifyInstancePlacementOutput as ModifyInstancePlacementOutput, ModifyIpamInput as ModifyIpamInput, + ModifyIpamInputDict as ModifyIpamInputDict, ModifyIpamOutput as ModifyIpamOutput, ModifyIpamPolicyAllocationRulesInput as ModifyIpamPolicyAllocationRulesInput, + ModifyIpamPolicyAllocationRulesInputDict as ModifyIpamPolicyAllocationRulesInputDict, ModifyIpamPolicyAllocationRulesOutput as ModifyIpamPolicyAllocationRulesOutput, ModifyIpamPoolAllocationInput as ModifyIpamPoolAllocationInput, + ModifyIpamPoolAllocationInputDict as ModifyIpamPoolAllocationInputDict, ModifyIpamPoolAllocationOutput as ModifyIpamPoolAllocationOutput, ModifyIpamPoolInput as ModifyIpamPoolInput, + ModifyIpamPoolInputDict as ModifyIpamPoolInputDict, ModifyIpamPoolOutput as ModifyIpamPoolOutput, ModifyIpamPrefixListResolverInput as ModifyIpamPrefixListResolverInput, + ModifyIpamPrefixListResolverInputDict as ModifyIpamPrefixListResolverInputDict, ModifyIpamPrefixListResolverOutput as ModifyIpamPrefixListResolverOutput, ModifyIpamPrefixListResolverTargetInput as ModifyIpamPrefixListResolverTargetInput, + ModifyIpamPrefixListResolverTargetInputDict as ModifyIpamPrefixListResolverTargetInputDict, ModifyIpamPrefixListResolverTargetOutput as ModifyIpamPrefixListResolverTargetOutput, ModifyIpamResourceCidrInput as ModifyIpamResourceCidrInput, + ModifyIpamResourceCidrInputDict as ModifyIpamResourceCidrInputDict, ModifyIpamResourceCidrOutput as ModifyIpamResourceCidrOutput, ModifyIpamResourceDiscoveryInput as ModifyIpamResourceDiscoveryInput, + ModifyIpamResourceDiscoveryInputDict as ModifyIpamResourceDiscoveryInputDict, ModifyIpamResourceDiscoveryOutput as ModifyIpamResourceDiscoveryOutput, ModifyIpamRoutingPolicyRegistrationInput as ModifyIpamRoutingPolicyRegistrationInput, + ModifyIpamRoutingPolicyRegistrationInputDict as ModifyIpamRoutingPolicyRegistrationInputDict, ModifyIpamRoutingPolicyRegistrationOutput as ModifyIpamRoutingPolicyRegistrationOutput, ModifyIpamScopeInput as ModifyIpamScopeInput, + ModifyIpamScopeInputDict as ModifyIpamScopeInputDict, ModifyIpamScopeOutput as ModifyIpamScopeOutput, ModifyLaunchTemplateInput as ModifyLaunchTemplateInput, + ModifyLaunchTemplateInputDict as ModifyLaunchTemplateInputDict, ModifyLaunchTemplateOutput as ModifyLaunchTemplateOutput, ModifyLocalGatewayRouteInput as ModifyLocalGatewayRouteInput, + ModifyLocalGatewayRouteInputDict as ModifyLocalGatewayRouteInputDict, ModifyLocalGatewayRouteOutput as ModifyLocalGatewayRouteOutput, ModifyManagedPrefixListInput as ModifyManagedPrefixListInput, + ModifyManagedPrefixListInputDict as ModifyManagedPrefixListInputDict, ModifyManagedPrefixListOutput as ModifyManagedPrefixListOutput, ModifyManagedResourceVisibilityInput as ModifyManagedResourceVisibilityInput, + ModifyManagedResourceVisibilityInputDict as ModifyManagedResourceVisibilityInputDict, ModifyManagedResourceVisibilityOutput as ModifyManagedResourceVisibilityOutput, ModifyNetworkInterfaceAttributeInput as ModifyNetworkInterfaceAttributeInput, + ModifyNetworkInterfaceAttributeInputDict as ModifyNetworkInterfaceAttributeInputDict, ModifyNetworkInterfaceAttributeOutput as ModifyNetworkInterfaceAttributeOutput, ModifyPrivateDnsNameOptionsInput as ModifyPrivateDnsNameOptionsInput, + ModifyPrivateDnsNameOptionsInputDict as ModifyPrivateDnsNameOptionsInputDict, ModifyPrivateDnsNameOptionsOutput as ModifyPrivateDnsNameOptionsOutput, ModifyPublicIpDnsNameOptionsInput as ModifyPublicIpDnsNameOptionsInput, + ModifyPublicIpDnsNameOptionsInputDict as ModifyPublicIpDnsNameOptionsInputDict, ModifyPublicIpDnsNameOptionsOutput as ModifyPublicIpDnsNameOptionsOutput, ModifyReservedInstancesInput as ModifyReservedInstancesInput, + ModifyReservedInstancesInputDict as ModifyReservedInstancesInputDict, ModifyReservedInstancesOutput as ModifyReservedInstancesOutput, ModifyRouteServerInput as ModifyRouteServerInput, + ModifyRouteServerInputDict as ModifyRouteServerInputDict, ModifyRouteServerOutput as ModifyRouteServerOutput, ModifySecurityGroupRulesInput as ModifySecurityGroupRulesInput, + ModifySecurityGroupRulesInputDict as ModifySecurityGroupRulesInputDict, ModifySecurityGroupRulesOutput as ModifySecurityGroupRulesOutput, ModifySnapshotAttributeInput as ModifySnapshotAttributeInput, + ModifySnapshotAttributeInputDict as ModifySnapshotAttributeInputDict, ModifySnapshotAttributeOutput as ModifySnapshotAttributeOutput, ModifySnapshotTierInput as ModifySnapshotTierInput, + ModifySnapshotTierInputDict as ModifySnapshotTierInputDict, ModifySnapshotTierOutput as ModifySnapshotTierOutput, ModifySpotFleetRequestInput as ModifySpotFleetRequestInput, + ModifySpotFleetRequestInputDict as ModifySpotFleetRequestInputDict, ModifySpotFleetRequestOutput as ModifySpotFleetRequestOutput, ModifySubnetAttributeInput as ModifySubnetAttributeInput, + ModifySubnetAttributeInputDict as ModifySubnetAttributeInputDict, ModifySubnetAttributeOutput as ModifySubnetAttributeOutput, ModifyTrafficMirrorFilterNetworkServicesInput as ModifyTrafficMirrorFilterNetworkServicesInput, + ModifyTrafficMirrorFilterNetworkServicesInputDict as ModifyTrafficMirrorFilterNetworkServicesInputDict, ModifyTrafficMirrorFilterNetworkServicesOutput as ModifyTrafficMirrorFilterNetworkServicesOutput, ModifyTrafficMirrorFilterRuleInput as ModifyTrafficMirrorFilterRuleInput, + ModifyTrafficMirrorFilterRuleInputDict as ModifyTrafficMirrorFilterRuleInputDict, ModifyTrafficMirrorFilterRuleOutput as ModifyTrafficMirrorFilterRuleOutput, ModifyTrafficMirrorSessionInput as ModifyTrafficMirrorSessionInput, + ModifyTrafficMirrorSessionInputDict as ModifyTrafficMirrorSessionInputDict, ) -from ._private.models_9 import ( +from ._private.models_09 import ( ModifyTrafficMirrorSessionOutput as ModifyTrafficMirrorSessionOutput, ModifyTransitGatewayAttachmentNatConfigurationInput as ModifyTransitGatewayAttachmentNatConfigurationInput, + ModifyTransitGatewayAttachmentNatConfigurationInputDict as ModifyTransitGatewayAttachmentNatConfigurationInputDict, ModifyTransitGatewayAttachmentNatConfigurationOutput as ModifyTransitGatewayAttachmentNatConfigurationOutput, ModifyTransitGatewayInput as ModifyTransitGatewayInput, + ModifyTransitGatewayInputDict as ModifyTransitGatewayInputDict, ModifyTransitGatewayMeteringPolicyInput as ModifyTransitGatewayMeteringPolicyInput, + ModifyTransitGatewayMeteringPolicyInputDict as ModifyTransitGatewayMeteringPolicyInputDict, ModifyTransitGatewayMeteringPolicyOutput as ModifyTransitGatewayMeteringPolicyOutput, ModifyTransitGatewayOptions as ModifyTransitGatewayOptions, + ModifyTransitGatewayOptionsDict as ModifyTransitGatewayOptionsDict, ModifyTransitGatewayOutput as ModifyTransitGatewayOutput, ModifyTransitGatewayPolicyTableEntryInput as ModifyTransitGatewayPolicyTableEntryInput, + ModifyTransitGatewayPolicyTableEntryInputDict as ModifyTransitGatewayPolicyTableEntryInputDict, ModifyTransitGatewayPolicyTableEntryOutput as ModifyTransitGatewayPolicyTableEntryOutput, ModifyTransitGatewayPrefixListReferenceInput as ModifyTransitGatewayPrefixListReferenceInput, + ModifyTransitGatewayPrefixListReferenceInputDict as ModifyTransitGatewayPrefixListReferenceInputDict, ModifyTransitGatewayPrefixListReferenceOutput as ModifyTransitGatewayPrefixListReferenceOutput, ModifyTransitGatewayVpcAttachmentInput as ModifyTransitGatewayVpcAttachmentInput, + ModifyTransitGatewayVpcAttachmentInputDict as ModifyTransitGatewayVpcAttachmentInputDict, ModifyTransitGatewayVpcAttachmentOutput as ModifyTransitGatewayVpcAttachmentOutput, ModifyTransitGatewayVpcAttachmentRequestOptions as ModifyTransitGatewayVpcAttachmentRequestOptions, + ModifyTransitGatewayVpcAttachmentRequestOptionsDict as ModifyTransitGatewayVpcAttachmentRequestOptionsDict, ModifyVerifiedAccessEndpointCidrOptions as ModifyVerifiedAccessEndpointCidrOptions, + ModifyVerifiedAccessEndpointCidrOptionsDict as ModifyVerifiedAccessEndpointCidrOptionsDict, ModifyVerifiedAccessEndpointEniOptions as ModifyVerifiedAccessEndpointEniOptions, + ModifyVerifiedAccessEndpointEniOptionsDict as ModifyVerifiedAccessEndpointEniOptionsDict, ModifyVerifiedAccessEndpointInput as ModifyVerifiedAccessEndpointInput, + ModifyVerifiedAccessEndpointInputDict as ModifyVerifiedAccessEndpointInputDict, ModifyVerifiedAccessEndpointLoadBalancerOptions as ModifyVerifiedAccessEndpointLoadBalancerOptions, + ModifyVerifiedAccessEndpointLoadBalancerOptionsDict as ModifyVerifiedAccessEndpointLoadBalancerOptionsDict, ModifyVerifiedAccessEndpointOutput as ModifyVerifiedAccessEndpointOutput, ModifyVerifiedAccessEndpointPolicyInput as ModifyVerifiedAccessEndpointPolicyInput, + ModifyVerifiedAccessEndpointPolicyInputDict as ModifyVerifiedAccessEndpointPolicyInputDict, ModifyVerifiedAccessEndpointPolicyOutput as ModifyVerifiedAccessEndpointPolicyOutput, ModifyVerifiedAccessEndpointPortRange as ModifyVerifiedAccessEndpointPortRange, + ModifyVerifiedAccessEndpointPortRangeDict as ModifyVerifiedAccessEndpointPortRangeDict, ModifyVerifiedAccessEndpointRdsOptions as ModifyVerifiedAccessEndpointRdsOptions, + ModifyVerifiedAccessEndpointRdsOptionsDict as ModifyVerifiedAccessEndpointRdsOptionsDict, ModifyVerifiedAccessGroupInput as ModifyVerifiedAccessGroupInput, + ModifyVerifiedAccessGroupInputDict as ModifyVerifiedAccessGroupInputDict, ModifyVerifiedAccessGroupOutput as ModifyVerifiedAccessGroupOutput, ModifyVerifiedAccessGroupPolicyInput as ModifyVerifiedAccessGroupPolicyInput, + ModifyVerifiedAccessGroupPolicyInputDict as ModifyVerifiedAccessGroupPolicyInputDict, ModifyVerifiedAccessGroupPolicyOutput as ModifyVerifiedAccessGroupPolicyOutput, ModifyVerifiedAccessInstanceInput as ModifyVerifiedAccessInstanceInput, + ModifyVerifiedAccessInstanceInputDict as ModifyVerifiedAccessInstanceInputDict, ModifyVerifiedAccessInstanceLoggingConfigurationInput as ModifyVerifiedAccessInstanceLoggingConfigurationInput, + ModifyVerifiedAccessInstanceLoggingConfigurationInputDict as ModifyVerifiedAccessInstanceLoggingConfigurationInputDict, ModifyVerifiedAccessInstanceLoggingConfigurationOutput as ModifyVerifiedAccessInstanceLoggingConfigurationOutput, ModifyVerifiedAccessInstanceOutput as ModifyVerifiedAccessInstanceOutput, ModifyVerifiedAccessNativeApplicationOidcOptions as ModifyVerifiedAccessNativeApplicationOidcOptions, + ModifyVerifiedAccessNativeApplicationOidcOptionsDict as ModifyVerifiedAccessNativeApplicationOidcOptionsDict, ModifyVerifiedAccessTrustProviderDeviceOptions as ModifyVerifiedAccessTrustProviderDeviceOptions, + ModifyVerifiedAccessTrustProviderDeviceOptionsDict as ModifyVerifiedAccessTrustProviderDeviceOptionsDict, ModifyVerifiedAccessTrustProviderInput as ModifyVerifiedAccessTrustProviderInput, + ModifyVerifiedAccessTrustProviderInputDict as ModifyVerifiedAccessTrustProviderInputDict, ModifyVerifiedAccessTrustProviderOidcOptions as ModifyVerifiedAccessTrustProviderOidcOptions, + ModifyVerifiedAccessTrustProviderOidcOptionsDict as ModifyVerifiedAccessTrustProviderOidcOptionsDict, ModifyVerifiedAccessTrustProviderOutput as ModifyVerifiedAccessTrustProviderOutput, ModifyVolumeAttributeInput as ModifyVolumeAttributeInput, + ModifyVolumeAttributeInputDict as ModifyVolumeAttributeInputDict, ModifyVolumeAttributeOutput as ModifyVolumeAttributeOutput, ModifyVolumeInput as ModifyVolumeInput, + ModifyVolumeInputDict as ModifyVolumeInputDict, ModifyVolumeOutput as ModifyVolumeOutput, ModifyVpcAttributeInput as ModifyVpcAttributeInput, + ModifyVpcAttributeInputDict as ModifyVpcAttributeInputDict, ModifyVpcAttributeOutput as ModifyVpcAttributeOutput, ModifyVpcBlockPublicAccessExclusionInput as ModifyVpcBlockPublicAccessExclusionInput, + ModifyVpcBlockPublicAccessExclusionInputDict as ModifyVpcBlockPublicAccessExclusionInputDict, ModifyVpcBlockPublicAccessExclusionOutput as ModifyVpcBlockPublicAccessExclusionOutput, ModifyVpcBlockPublicAccessOptionsInput as ModifyVpcBlockPublicAccessOptionsInput, + ModifyVpcBlockPublicAccessOptionsInputDict as ModifyVpcBlockPublicAccessOptionsInputDict, ModifyVpcBlockPublicAccessOptionsOutput as ModifyVpcBlockPublicAccessOptionsOutput, ModifyVpcEncryptionControlInput as ModifyVpcEncryptionControlInput, + ModifyVpcEncryptionControlInputDict as ModifyVpcEncryptionControlInputDict, ModifyVpcEncryptionControlOutput as ModifyVpcEncryptionControlOutput, ModifyVpcEndpointConnectionNotificationInput as ModifyVpcEndpointConnectionNotificationInput, + ModifyVpcEndpointConnectionNotificationInputDict as ModifyVpcEndpointConnectionNotificationInputDict, ModifyVpcEndpointConnectionNotificationOutput as ModifyVpcEndpointConnectionNotificationOutput, ModifyVpcEndpointInput as ModifyVpcEndpointInput, + ModifyVpcEndpointInputDict as ModifyVpcEndpointInputDict, ModifyVpcEndpointOutput as ModifyVpcEndpointOutput, ModifyVpcEndpointPayerResponsibilityInput as ModifyVpcEndpointPayerResponsibilityInput, + ModifyVpcEndpointPayerResponsibilityInputDict as ModifyVpcEndpointPayerResponsibilityInputDict, ModifyVpcEndpointPayerResponsibilityOutput as ModifyVpcEndpointPayerResponsibilityOutput, ModifyVpcEndpointServiceConfigurationInput as ModifyVpcEndpointServiceConfigurationInput, + ModifyVpcEndpointServiceConfigurationInputDict as ModifyVpcEndpointServiceConfigurationInputDict, ModifyVpcEndpointServiceConfigurationOutput as ModifyVpcEndpointServiceConfigurationOutput, ModifyVpcEndpointServicePayerResponsibilityInput as ModifyVpcEndpointServicePayerResponsibilityInput, + ModifyVpcEndpointServicePayerResponsibilityInputDict as ModifyVpcEndpointServicePayerResponsibilityInputDict, ModifyVpcEndpointServicePayerResponsibilityOutput as ModifyVpcEndpointServicePayerResponsibilityOutput, ModifyVpcEndpointServicePermissionsInput as ModifyVpcEndpointServicePermissionsInput, + ModifyVpcEndpointServicePermissionsInputDict as ModifyVpcEndpointServicePermissionsInputDict, ModifyVpcEndpointServicePermissionsOutput as ModifyVpcEndpointServicePermissionsOutput, ModifyVpcPeeringConnectionOptionsInput as ModifyVpcPeeringConnectionOptionsInput, + ModifyVpcPeeringConnectionOptionsInputDict as ModifyVpcPeeringConnectionOptionsInputDict, ModifyVpcPeeringConnectionOptionsOutput as ModifyVpcPeeringConnectionOptionsOutput, ModifyVpcTenancyInput as ModifyVpcTenancyInput, + ModifyVpcTenancyInputDict as ModifyVpcTenancyInputDict, ModifyVpcTenancyOutput as ModifyVpcTenancyOutput, ModifyVpnConnectionInput as ModifyVpnConnectionInput, + ModifyVpnConnectionInputDict as ModifyVpnConnectionInputDict, ModifyVpnConnectionOptionsInput as ModifyVpnConnectionOptionsInput, + ModifyVpnConnectionOptionsInputDict as ModifyVpnConnectionOptionsInputDict, ModifyVpnConnectionOptionsOutput as ModifyVpnConnectionOptionsOutput, ModifyVpnConnectionOutput as ModifyVpnConnectionOutput, ModifyVpnTunnelCertificateInput as ModifyVpnTunnelCertificateInput, + ModifyVpnTunnelCertificateInputDict as ModifyVpnTunnelCertificateInputDict, ModifyVpnTunnelCertificateOutput as ModifyVpnTunnelCertificateOutput, ModifyVpnTunnelOptionsInput as ModifyVpnTunnelOptionsInput, + ModifyVpnTunnelOptionsInputDict as ModifyVpnTunnelOptionsInputDict, ModifyVpnTunnelOptionsOutput as ModifyVpnTunnelOptionsOutput, ModifyVpnTunnelOptionsSpecification as ModifyVpnTunnelOptionsSpecification, + ModifyVpnTunnelOptionsSpecificationDict as ModifyVpnTunnelOptionsSpecificationDict, Monitoring as Monitoring, MonitoringState as MonitoringState, MonitorInstancesInput as MonitorInstancesInput, + MonitorInstancesInputDict as MonitorInstancesInputDict, MonitorInstancesOutput as MonitorInstancesOutput, MoveAddressToVpcInput as MoveAddressToVpcInput, + MoveAddressToVpcInputDict as MoveAddressToVpcInputDict, MoveAddressToVpcOutput as MoveAddressToVpcOutput, MoveByoipCidrToIpamInput as MoveByoipCidrToIpamInput, + MoveByoipCidrToIpamInputDict as MoveByoipCidrToIpamInputDict, MoveByoipCidrToIpamOutput as MoveByoipCidrToIpamOutput, MoveCapacityReservationInstancesInput as MoveCapacityReservationInstancesInput, + MoveCapacityReservationInstancesInputDict as MoveCapacityReservationInstancesInputDict, MoveCapacityReservationInstancesOutput as MoveCapacityReservationInstancesOutput, MoveStatus as MoveStatus, MovingAddressStatus as MovingAddressStatus, @@ -2386,7 +3303,9 @@ from ._private.models_9 import ( NetworkAclAssociation as NetworkAclAssociation, NetworkAclEntry as NetworkAclEntry, NetworkBandwidthGbps as NetworkBandwidthGbps, + NetworkBandwidthGbpsDict as NetworkBandwidthGbpsDict, NetworkBandwidthGbpsRequest as NetworkBandwidthGbpsRequest, + NetworkBandwidthGbpsRequestDict as NetworkBandwidthGbpsRequestDict, NetworkCardInfo as NetworkCardInfo, NetworkCardInterfaceType as NetworkCardInterfaceType, NetworkInfo as NetworkInfo, @@ -2399,9 +3318,12 @@ from ._private.models_9 import ( NetworkInterfaceAssociation as NetworkInterfaceAssociation, NetworkInterfaceAttachment as NetworkInterfaceAttachment, NetworkInterfaceAttachmentChanges as NetworkInterfaceAttachmentChanges, + NetworkInterfaceAttachmentChangesDict as NetworkInterfaceAttachmentChangesDict, NetworkInterfaceAttribute as NetworkInterfaceAttribute, NetworkInterfaceCount as NetworkInterfaceCount, + NetworkInterfaceCountDict as NetworkInterfaceCountDict, NetworkInterfaceCountRequest as NetworkInterfaceCountRequest, + NetworkInterfaceCountRequestDict as NetworkInterfaceCountRequestDict, NetworkInterfaceCreationType as NetworkInterfaceCreationType, NetworkInterfaceIpv6Address as NetworkInterfaceIpv6Address, NetworkInterfacePermission as NetworkInterfacePermission, @@ -2416,6 +3338,7 @@ from ._private.models_9 import ( NeuronDeviceMemoryInfo as NeuronDeviceMemoryInfo, NeuronInfo as NeuronInfo, NewDhcpConfiguration as NewDhcpConfiguration, + NewDhcpConfigurationDict as NewDhcpConfigurationDict, NitroEnclavesSupport as NitroEnclavesSupport, NitroTpmInfo as NitroTpmInfo, NitroTpmSupport as NitroTpmSupport, @@ -2425,19 +3348,24 @@ from ._private.models_9 import ( OnDemandAllocationStrategy as OnDemandAllocationStrategy, OnDemandOptions as OnDemandOptions, OnDemandOptionsRequest as OnDemandOptionsRequest, + OnDemandOptionsRequestDict as OnDemandOptionsRequestDict, OperationType as OperationType, OperatorRequest as OperatorRequest, + OperatorRequestDict as OperatorRequestDict, OperatorResponse as OperatorResponse, OutpostLag as OutpostLag, OutputFormat as OutputFormat, PacketHeaderStatement as PacketHeaderStatement, PacketHeaderStatementRequest as PacketHeaderStatementRequest, + PacketHeaderStatementRequestDict as PacketHeaderStatementRequestDict, PartitionLoadFrequency as PartitionLoadFrequency, PathComponent as PathComponent, PathFilter as PathFilter, PathRequestFilter as PathRequestFilter, + PathRequestFilterDict as PathRequestFilterDict, PathStatement as PathStatement, PathStatementRequest as PathStatementRequest, + PathStatementRequestDict as PathStatementRequestDict, PayerResponsibility as PayerResponsibility, PayerResponsibilityEntry as PayerResponsibilityEntry, PayerResponsibilityScope as PayerResponsibilityScope, @@ -2447,26 +3375,36 @@ from ._private.models_9 import ( PeeringAttachmentStatus as PeeringAttachmentStatus, PeeringConnectionOptions as PeeringConnectionOptions, PeeringConnectionOptionsRequest as PeeringConnectionOptionsRequest, + PeeringConnectionOptionsRequestDict as PeeringConnectionOptionsRequestDict, PeeringTgwInfo as PeeringTgwInfo, PerformanceFactorReference as PerformanceFactorReference, + PerformanceFactorReferenceDict as PerformanceFactorReferenceDict, PerformanceFactorReferenceRequest as PerformanceFactorReferenceRequest, + PerformanceFactorReferenceRequestDict as PerformanceFactorReferenceRequestDict, PerformanceStatusSummary as PerformanceStatusSummary, PeriodType as PeriodType, PermissionGroup as PermissionGroup, Phase1DHGroupNumbersListValue as Phase1DHGroupNumbersListValue, Phase1DHGroupNumbersRequestListValue as Phase1DHGroupNumbersRequestListValue, + Phase1DHGroupNumbersRequestListValueDict as Phase1DHGroupNumbersRequestListValueDict, Phase1EncryptionAlgorithmsListValue as Phase1EncryptionAlgorithmsListValue, Phase1EncryptionAlgorithmsRequestListValue as Phase1EncryptionAlgorithmsRequestListValue, + Phase1EncryptionAlgorithmsRequestListValueDict as Phase1EncryptionAlgorithmsRequestListValueDict, Phase1IntegrityAlgorithmsListValue as Phase1IntegrityAlgorithmsListValue, Phase1IntegrityAlgorithmsRequestListValue as Phase1IntegrityAlgorithmsRequestListValue, + Phase1IntegrityAlgorithmsRequestListValueDict as Phase1IntegrityAlgorithmsRequestListValueDict, Phase2DHGroupNumbersListValue as Phase2DHGroupNumbersListValue, Phase2DHGroupNumbersRequestListValue as Phase2DHGroupNumbersRequestListValue, + Phase2DHGroupNumbersRequestListValueDict as Phase2DHGroupNumbersRequestListValueDict, Phase2EncryptionAlgorithmsListValue as Phase2EncryptionAlgorithmsListValue, Phase2EncryptionAlgorithmsRequestListValue as Phase2EncryptionAlgorithmsRequestListValue, + Phase2EncryptionAlgorithmsRequestListValueDict as Phase2EncryptionAlgorithmsRequestListValueDict, Phase2IntegrityAlgorithmsListValue as Phase2IntegrityAlgorithmsListValue, Phase2IntegrityAlgorithmsRequestListValue as Phase2IntegrityAlgorithmsRequestListValue, + Phase2IntegrityAlgorithmsRequestListValueDict as Phase2IntegrityAlgorithmsRequestListValueDict, PhcSupport as PhcSupport, Placement as Placement, + PlacementDict as PlacementDict, PlacementGroup as PlacementGroup, PlacementGroupInfo as PlacementGroupInfo, PlacementGroupState as PlacementGroupState, @@ -2476,13 +3414,16 @@ from ._private.models_9 import ( PlatformValues as PlatformValues, PoolCidrBlock as PoolCidrBlock, PortRange as PortRange, + PortRangeDict as PortRangeDict, PrefixList as PrefixList, PrefixListAssociation as PrefixListAssociation, PrefixListEntry as PrefixListEntry, PrefixListId as PrefixListId, + PrefixListIdDict as PrefixListIdDict, PrefixListState as PrefixListState, PriceSchedule as PriceSchedule, PriceScheduleSpecification as PriceScheduleSpecification, + PriceScheduleSpecificationDict as PriceScheduleSpecificationDict, PricingDetail as PricingDetail, PrincipalIdFormat as PrincipalIdFormat, PrincipalType as PrincipalType, @@ -2490,8 +3431,10 @@ from ._private.models_9 import ( PrivateDnsNameConfiguration as PrivateDnsNameConfiguration, PrivateDnsNameOptionsOnLaunch as PrivateDnsNameOptionsOnLaunch, PrivateDnsNameOptionsRequest as PrivateDnsNameOptionsRequest, + PrivateDnsNameOptionsRequestDict as PrivateDnsNameOptionsRequestDict, PrivateDnsNameOptionsResponse as PrivateDnsNameOptionsResponse, PrivateIpAddressSpecification as PrivateIpAddressSpecification, + PrivateIpAddressSpecificationDict as PrivateIpAddressSpecificationDict, ProcessorInfo as ProcessorInfo, ProductCode as ProductCode, ProductCodeValues as ProductCodeValues, @@ -2499,13 +3442,17 @@ from ._private.models_9 import ( Protocol as Protocol, ProtocolValue as ProtocolValue, ProvisionByoipCidrInput as ProvisionByoipCidrInput, + ProvisionByoipCidrInputDict as ProvisionByoipCidrInputDict, ProvisionByoipCidrOutput as ProvisionByoipCidrOutput, ProvisionedBandwidth as ProvisionedBandwidth, ProvisionIpamByoasnInput as ProvisionIpamByoasnInput, + ProvisionIpamByoasnInputDict as ProvisionIpamByoasnInputDict, ProvisionIpamByoasnOutput as ProvisionIpamByoasnOutput, ProvisionIpamPoolCidrInput as ProvisionIpamPoolCidrInput, + ProvisionIpamPoolCidrInputDict as ProvisionIpamPoolCidrInputDict, ProvisionIpamPoolCidrOutput as ProvisionIpamPoolCidrOutput, ProvisionPublicIpv4PoolCidrInput as ProvisionPublicIpv4PoolCidrInput, + ProvisionPublicIpv4PoolCidrInputDict as ProvisionPublicIpv4PoolCidrInputDict, ProvisionPublicIpv4PoolCidrOutput as ProvisionPublicIpv4PoolCidrOutput, PtrUpdateStatus as PtrUpdateStatus, PublicIpDnsNameOptions as PublicIpDnsNameOptions, @@ -2514,17 +3461,24 @@ from ._private.models_9 import ( PublicIpv4PoolRange as PublicIpv4PoolRange, Purchase as Purchase, PurchaseCapacityBlockExtensionInput as PurchaseCapacityBlockExtensionInput, + PurchaseCapacityBlockExtensionInputDict as PurchaseCapacityBlockExtensionInputDict, PurchaseCapacityBlockExtensionOutput as PurchaseCapacityBlockExtensionOutput, PurchaseCapacityBlockInput as PurchaseCapacityBlockInput, + PurchaseCapacityBlockInputDict as PurchaseCapacityBlockInputDict, PurchaseCapacityBlockOutput as PurchaseCapacityBlockOutput, PurchaseHostReservationInput as PurchaseHostReservationInput, + PurchaseHostReservationInputDict as PurchaseHostReservationInputDict, PurchaseHostReservationOutput as PurchaseHostReservationOutput, PurchaseRequest as PurchaseRequest, + PurchaseRequestDict as PurchaseRequestDict, PurchaseReservedInstancesOfferingInput as PurchaseReservedInstancesOfferingInput, + PurchaseReservedInstancesOfferingInputDict as PurchaseReservedInstancesOfferingInputDict, PurchaseReservedInstancesOfferingOutput as PurchaseReservedInstancesOfferingOutput, PurchaseScheduledInstancesInput as PurchaseScheduledInstancesInput, + PurchaseScheduledInstancesInputDict as PurchaseScheduledInstancesInputDict, PurchaseScheduledInstancesOutput as PurchaseScheduledInstancesOutput, RebootInstancesInput as RebootInstancesInput, + RebootInstancesInputDict as RebootInstancesInputDict, RebootInstancesOutput as RebootInstancesOutput, RebootMigrationSupport as RebootMigrationSupport, RecurringCharge as RecurringCharge, @@ -2535,77 +3489,112 @@ from ._private.models_9 import ( RegionGeography as RegionGeography, RegisteredInstance as RegisteredInstance, RegisterImageInput as RegisterImageInput, + RegisterImageInputDict as RegisterImageInputDict, ) from ._private.models_10 import ( RegisterImageOutput as RegisterImageOutput, RegisterInstanceEventNotificationAttributesInput as RegisterInstanceEventNotificationAttributesInput, + RegisterInstanceEventNotificationAttributesInputDict as RegisterInstanceEventNotificationAttributesInputDict, RegisterInstanceEventNotificationAttributesOutput as RegisterInstanceEventNotificationAttributesOutput, RegisterInstanceTagAttributeRequest as RegisterInstanceTagAttributeRequest, + RegisterInstanceTagAttributeRequestDict as RegisterInstanceTagAttributeRequestDict, RegisterTransitGatewayMulticastGroupMembersInput as RegisterTransitGatewayMulticastGroupMembersInput, + RegisterTransitGatewayMulticastGroupMembersInputDict as RegisterTransitGatewayMulticastGroupMembersInputDict, RegisterTransitGatewayMulticastGroupMembersOutput as RegisterTransitGatewayMulticastGroupMembersOutput, RegisterTransitGatewayMulticastGroupSourcesInput as RegisterTransitGatewayMulticastGroupSourcesInput, + RegisterTransitGatewayMulticastGroupSourcesInputDict as RegisterTransitGatewayMulticastGroupSourcesInputDict, RegisterTransitGatewayMulticastGroupSourcesOutput as RegisterTransitGatewayMulticastGroupSourcesOutput, RejectCapacityReservationBillingOwnershipInput as RejectCapacityReservationBillingOwnershipInput, + RejectCapacityReservationBillingOwnershipInputDict as RejectCapacityReservationBillingOwnershipInputDict, RejectCapacityReservationBillingOwnershipOutput as RejectCapacityReservationBillingOwnershipOutput, RejectTransitGatewayClientVpnAttachmentInput as RejectTransitGatewayClientVpnAttachmentInput, + RejectTransitGatewayClientVpnAttachmentInputDict as RejectTransitGatewayClientVpnAttachmentInputDict, RejectTransitGatewayClientVpnAttachmentOutput as RejectTransitGatewayClientVpnAttachmentOutput, RejectTransitGatewayMulticastDomainAssociationsInput as RejectTransitGatewayMulticastDomainAssociationsInput, + RejectTransitGatewayMulticastDomainAssociationsInputDict as RejectTransitGatewayMulticastDomainAssociationsInputDict, RejectTransitGatewayMulticastDomainAssociationsOutput as RejectTransitGatewayMulticastDomainAssociationsOutput, RejectTransitGatewayPeeringAttachmentInput as RejectTransitGatewayPeeringAttachmentInput, + RejectTransitGatewayPeeringAttachmentInputDict as RejectTransitGatewayPeeringAttachmentInputDict, RejectTransitGatewayPeeringAttachmentOutput as RejectTransitGatewayPeeringAttachmentOutput, RejectTransitGatewayVpcAttachmentInput as RejectTransitGatewayVpcAttachmentInput, + RejectTransitGatewayVpcAttachmentInputDict as RejectTransitGatewayVpcAttachmentInputDict, RejectTransitGatewayVpcAttachmentOutput as RejectTransitGatewayVpcAttachmentOutput, RejectVpcEndpointConnectionsInput as RejectVpcEndpointConnectionsInput, + RejectVpcEndpointConnectionsInputDict as RejectVpcEndpointConnectionsInputDict, RejectVpcEndpointConnectionsOutput as RejectVpcEndpointConnectionsOutput, RejectVpcPeeringConnectionInput as RejectVpcPeeringConnectionInput, + RejectVpcPeeringConnectionInputDict as RejectVpcPeeringConnectionInputDict, RejectVpcPeeringConnectionOutput as RejectVpcPeeringConnectionOutput, ReleaseAddressInput as ReleaseAddressInput, + ReleaseAddressInputDict as ReleaseAddressInputDict, ReleaseAddressOutput as ReleaseAddressOutput, ReleaseHostsInput as ReleaseHostsInput, + ReleaseHostsInputDict as ReleaseHostsInputDict, ReleaseHostsOutput as ReleaseHostsOutput, ReleaseIpamPoolAllocationInput as ReleaseIpamPoolAllocationInput, + ReleaseIpamPoolAllocationInputDict as ReleaseIpamPoolAllocationInputDict, ReleaseIpamPoolAllocationOutput as ReleaseIpamPoolAllocationOutput, RemoveIpamOperatingRegion as RemoveIpamOperatingRegion, + RemoveIpamOperatingRegionDict as RemoveIpamOperatingRegionDict, RemoveIpamOrganizationalUnitExclusion as RemoveIpamOrganizationalUnitExclusion, + RemoveIpamOrganizationalUnitExclusionDict as RemoveIpamOrganizationalUnitExclusionDict, RemovePrefixListEntry as RemovePrefixListEntry, + RemovePrefixListEntryDict as RemovePrefixListEntryDict, ReplaceIamInstanceProfileAssociationInput as ReplaceIamInstanceProfileAssociationInput, + ReplaceIamInstanceProfileAssociationInputDict as ReplaceIamInstanceProfileAssociationInputDict, ReplaceIamInstanceProfileAssociationOutput as ReplaceIamInstanceProfileAssociationOutput, ReplaceImageCriteriaInAllowedImagesSettingsInput as ReplaceImageCriteriaInAllowedImagesSettingsInput, + ReplaceImageCriteriaInAllowedImagesSettingsInputDict as ReplaceImageCriteriaInAllowedImagesSettingsInputDict, ReplaceImageCriteriaInAllowedImagesSettingsOutput as ReplaceImageCriteriaInAllowedImagesSettingsOutput, ReplaceImageInstanceTypeSpecificationInput as ReplaceImageInstanceTypeSpecificationInput, + ReplaceImageInstanceTypeSpecificationInputDict as ReplaceImageInstanceTypeSpecificationInputDict, ReplaceImageInstanceTypeSpecificationOutput as ReplaceImageInstanceTypeSpecificationOutput, ReplacementStrategy as ReplacementStrategy, ReplaceNetworkAclAssociationInput as ReplaceNetworkAclAssociationInput, + ReplaceNetworkAclAssociationInputDict as ReplaceNetworkAclAssociationInputDict, ReplaceNetworkAclAssociationOutput as ReplaceNetworkAclAssociationOutput, ReplaceNetworkAclEntryInput as ReplaceNetworkAclEntryInput, + ReplaceNetworkAclEntryInputDict as ReplaceNetworkAclEntryInputDict, ReplaceNetworkAclEntryOutput as ReplaceNetworkAclEntryOutput, ReplaceRootVolumeTask as ReplaceRootVolumeTask, ReplaceRootVolumeTaskState as ReplaceRootVolumeTaskState, ReplaceRouteInput as ReplaceRouteInput, + ReplaceRouteInputDict as ReplaceRouteInputDict, ReplaceRouteOutput as ReplaceRouteOutput, ReplaceRouteTableAssociationInput as ReplaceRouteTableAssociationInput, + ReplaceRouteTableAssociationInputDict as ReplaceRouteTableAssociationInputDict, ReplaceRouteTableAssociationOutput as ReplaceRouteTableAssociationOutput, ReplaceTransitGatewayRouteInput as ReplaceTransitGatewayRouteInput, + ReplaceTransitGatewayRouteInputDict as ReplaceTransitGatewayRouteInputDict, ReplaceTransitGatewayRouteOutput as ReplaceTransitGatewayRouteOutput, ReplaceVpnTunnelInput as ReplaceVpnTunnelInput, + ReplaceVpnTunnelInputDict as ReplaceVpnTunnelInputDict, ReplaceVpnTunnelOutput as ReplaceVpnTunnelOutput, ReportInstanceReasonCodes as ReportInstanceReasonCodes, ReportInstanceStatusInput as ReportInstanceStatusInput, + ReportInstanceStatusInputDict as ReportInstanceStatusInputDict, ReportInstanceStatusOutput as ReportInstanceStatusOutput, ReportState as ReportState, ReportStatusType as ReportStatusType, RequestFilterPortRange as RequestFilterPortRange, + RequestFilterPortRangeDict as RequestFilterPortRangeDict, RequestIpamResourceTag as RequestIpamResourceTag, + RequestIpamResourceTagDict as RequestIpamResourceTagDict, RequestLaunchTemplateData as RequestLaunchTemplateData, + RequestLaunchTemplateDataDict as RequestLaunchTemplateDataDict, RequestSpotFleetInput as RequestSpotFleetInput, + RequestSpotFleetInputDict as RequestSpotFleetInputDict, RequestSpotFleetOutput as RequestSpotFleetOutput, RequestSpotInstancesInput as RequestSpotInstancesInput, + RequestSpotInstancesInputDict as RequestSpotInstancesInputDict, RequestSpotInstancesOutput as RequestSpotInstancesOutput, RequestSpotLaunchSpecification as RequestSpotLaunchSpecification, + RequestSpotLaunchSpecificationDict as RequestSpotLaunchSpecificationDict, Reservation as Reservation, ReservationEndDateType as ReservationEndDateType, ReservationFleetInstanceSpecification as ReservationFleetInstanceSpecification, + ReservationFleetInstanceSpecificationDict as ReservationFleetInstanceSpecificationDict, ReservationState as ReservationState, ReservationType as ReservationType, ReservationValue as ReservationValue, @@ -2613,12 +3602,16 @@ from ._private.models_10 import ( ReservedCapacityFallbackMarketType as ReservedCapacityFallbackMarketType, ReservedCapacityFallbackOptions as ReservedCapacityFallbackOptions, ReservedCapacityFallbackOptionsRequest as ReservedCapacityFallbackOptionsRequest, + ReservedCapacityFallbackOptionsRequestDict as ReservedCapacityFallbackOptionsRequestDict, ReservedCapacityOptions as ReservedCapacityOptions, ReservedCapacityOptionsRequest as ReservedCapacityOptionsRequest, + ReservedCapacityOptionsRequestDict as ReservedCapacityOptionsRequestDict, ReservedInstanceLimitPrice as ReservedInstanceLimitPrice, + ReservedInstanceLimitPriceDict as ReservedInstanceLimitPriceDict, ReservedInstanceReservationValue as ReservedInstanceReservationValue, ReservedInstances as ReservedInstances, ReservedInstancesConfiguration as ReservedInstancesConfiguration, + ReservedInstancesConfigurationDict as ReservedInstancesConfigurationDict, ReservedInstancesId as ReservedInstancesId, ReservedInstancesListing as ReservedInstancesListing, ReservedInstancesModification as ReservedInstancesModification, @@ -2626,46 +3619,65 @@ from ._private.models_10 import ( ReservedInstancesOffering as ReservedInstancesOffering, ReservedInstanceState as ReservedInstanceState, ResetAddressAttributeInput as ResetAddressAttributeInput, + ResetAddressAttributeInputDict as ResetAddressAttributeInputDict, ResetAddressAttributeOutput as ResetAddressAttributeOutput, ResetEbsDefaultKmsKeyIdInput as ResetEbsDefaultKmsKeyIdInput, + ResetEbsDefaultKmsKeyIdInputDict as ResetEbsDefaultKmsKeyIdInputDict, ResetEbsDefaultKmsKeyIdOutput as ResetEbsDefaultKmsKeyIdOutput, ResetFpgaImageAttributeInput as ResetFpgaImageAttributeInput, + ResetFpgaImageAttributeInputDict as ResetFpgaImageAttributeInputDict, ResetFpgaImageAttributeName as ResetFpgaImageAttributeName, ResetFpgaImageAttributeOutput as ResetFpgaImageAttributeOutput, ResetImageAttributeInput as ResetImageAttributeInput, + ResetImageAttributeInputDict as ResetImageAttributeInputDict, ResetImageAttributeName as ResetImageAttributeName, ResetImageAttributeOutput as ResetImageAttributeOutput, ResetInstanceAttributeInput as ResetInstanceAttributeInput, + ResetInstanceAttributeInputDict as ResetInstanceAttributeInputDict, ResetInstanceAttributeOutput as ResetInstanceAttributeOutput, ResetNetworkInterfaceAttributeInput as ResetNetworkInterfaceAttributeInput, + ResetNetworkInterfaceAttributeInputDict as ResetNetworkInterfaceAttributeInputDict, ResetNetworkInterfaceAttributeOutput as ResetNetworkInterfaceAttributeOutput, ResetSnapshotAttributeInput as ResetSnapshotAttributeInput, + ResetSnapshotAttributeInputDict as ResetSnapshotAttributeInputDict, ResetSnapshotAttributeOutput as ResetSnapshotAttributeOutput, ResourceStatement as ResourceStatement, ResourceStatementRequest as ResourceStatementRequest, + ResourceStatementRequestDict as ResourceStatementRequestDict, ResourceType as ResourceType, ResourceTypeOption as ResourceTypeOption, + ResourceTypeOptionDict as ResourceTypeOptionDict, ResourceTypeRequest as ResourceTypeRequest, + ResourceTypeRequestDict as ResourceTypeRequestDict, ResponseError as ResponseError, ResponseLaunchTemplateData as ResponseLaunchTemplateData, RestoreAddressToClassicInput as RestoreAddressToClassicInput, + RestoreAddressToClassicInputDict as RestoreAddressToClassicInputDict, RestoreAddressToClassicOutput as RestoreAddressToClassicOutput, RestoreImageFromRecycleBinInput as RestoreImageFromRecycleBinInput, + RestoreImageFromRecycleBinInputDict as RestoreImageFromRecycleBinInputDict, RestoreImageFromRecycleBinOutput as RestoreImageFromRecycleBinOutput, RestoreManagedPrefixListVersionInput as RestoreManagedPrefixListVersionInput, + RestoreManagedPrefixListVersionInputDict as RestoreManagedPrefixListVersionInputDict, RestoreManagedPrefixListVersionOutput as RestoreManagedPrefixListVersionOutput, RestoreSnapshotFromRecycleBinInput as RestoreSnapshotFromRecycleBinInput, + RestoreSnapshotFromRecycleBinInputDict as RestoreSnapshotFromRecycleBinInputDict, RestoreSnapshotFromRecycleBinOutput as RestoreSnapshotFromRecycleBinOutput, RestoreSnapshotTierInput as RestoreSnapshotTierInput, + RestoreSnapshotTierInputDict as RestoreSnapshotTierInputDict, RestoreSnapshotTierOutput as RestoreSnapshotTierOutput, RestoreVolumeFromRecycleBinInput as RestoreVolumeFromRecycleBinInput, + RestoreVolumeFromRecycleBinInputDict as RestoreVolumeFromRecycleBinInputDict, RestoreVolumeFromRecycleBinOutput as RestoreVolumeFromRecycleBinOutput, RevokeClientVpnIngressInput as RevokeClientVpnIngressInput, + RevokeClientVpnIngressInputDict as RevokeClientVpnIngressInputDict, RevokeClientVpnIngressOutput as RevokeClientVpnIngressOutput, RevokedSecurityGroupRule as RevokedSecurityGroupRule, RevokeSecurityGroupEgressInput as RevokeSecurityGroupEgressInput, + RevokeSecurityGroupEgressInputDict as RevokeSecurityGroupEgressInputDict, RevokeSecurityGroupEgressOutput as RevokeSecurityGroupEgressOutput, RevokeSecurityGroupIngressInput as RevokeSecurityGroupIngressInput, + RevokeSecurityGroupIngressInputDict as RevokeSecurityGroupIngressInputDict, RevokeSecurityGroupIngressOutput as RevokeSecurityGroupIngressOutput, RIProductDescription as RIProductDescription, Rir as Rir, @@ -2679,6 +3691,7 @@ from ._private.models_10 import ( RouteServerBfdStatus as RouteServerBfdStatus, RouteServerBgpOptions as RouteServerBgpOptions, RouteServerBgpOptionsRequest as RouteServerBgpOptionsRequest, + RouteServerBgpOptionsRequestDict as RouteServerBgpOptionsRequestDict, RouteServerBgpState as RouteServerBgpState, RouteServerBgpStatus as RouteServerBgpStatus, RouteServerEndpoint as RouteServerEndpoint, @@ -2705,41 +3718,61 @@ from ._private.models_10 import ( RuleGroupTypePair as RuleGroupTypePair, RuleOption as RuleOption, RunInstancesInput as RunInstancesInput, + RunInstancesInputDict as RunInstancesInputDict, RunInstancesMonitoringEnabled as RunInstancesMonitoringEnabled, + RunInstancesMonitoringEnabledDict as RunInstancesMonitoringEnabledDict, RunInstancesOutput as RunInstancesOutput, RunScheduledInstancesInput as RunScheduledInstancesInput, + RunScheduledInstancesInputDict as RunScheduledInstancesInputDict, RunScheduledInstancesOutput as RunScheduledInstancesOutput, S3ObjectTag as S3ObjectTag, + S3ObjectTagDict as S3ObjectTagDict, S3Storage as S3Storage, + S3StorageDict as S3StorageDict, ScanResultCondition as ScanResultCondition, ScanResultConditionRequest as ScanResultConditionRequest, + ScanResultConditionRequestDict as ScanResultConditionRequestDict, ScanResults as ScanResults, Schedule as Schedule, ScheduledInstance as ScheduledInstance, ScheduledInstanceAvailability as ScheduledInstanceAvailability, ScheduledInstanceRecurrence as ScheduledInstanceRecurrence, ScheduledInstanceRecurrenceRequest as ScheduledInstanceRecurrenceRequest, + ScheduledInstanceRecurrenceRequestDict as ScheduledInstanceRecurrenceRequestDict, ScheduledInstancesBlockDeviceMapping as ScheduledInstancesBlockDeviceMapping, + ScheduledInstancesBlockDeviceMappingDict as ScheduledInstancesBlockDeviceMappingDict, ScheduledInstancesEbs as ScheduledInstancesEbs, + ScheduledInstancesEbsDict as ScheduledInstancesEbsDict, ScheduledInstancesIamInstanceProfile as ScheduledInstancesIamInstanceProfile, + ScheduledInstancesIamInstanceProfileDict as ScheduledInstancesIamInstanceProfileDict, ScheduledInstancesIpv6Address as ScheduledInstancesIpv6Address, + ScheduledInstancesIpv6AddressDict as ScheduledInstancesIpv6AddressDict, ScheduledInstancesLaunchSpecification as ScheduledInstancesLaunchSpecification, + ScheduledInstancesLaunchSpecificationDict as ScheduledInstancesLaunchSpecificationDict, ScheduledInstancesMonitoring as ScheduledInstancesMonitoring, + ScheduledInstancesMonitoringDict as ScheduledInstancesMonitoringDict, ScheduledInstancesNetworkInterface as ScheduledInstancesNetworkInterface, + ScheduledInstancesNetworkInterfaceDict as ScheduledInstancesNetworkInterfaceDict, ScheduledInstancesPlacement as ScheduledInstancesPlacement, + ScheduledInstancesPlacementDict as ScheduledInstancesPlacementDict, ScheduledInstancesPrivateIpAddressConfig as ScheduledInstancesPrivateIpAddressConfig, + ScheduledInstancesPrivateIpAddressConfigDict as ScheduledInstancesPrivateIpAddressConfigDict, Scope as Scope, SearchLocalGatewayRoutesInput as SearchLocalGatewayRoutesInput, + SearchLocalGatewayRoutesInputDict as SearchLocalGatewayRoutesInputDict, SearchLocalGatewayRoutesOutput as SearchLocalGatewayRoutesOutput, SearchTransitGatewayMulticastGroupsInput as SearchTransitGatewayMulticastGroupsInput, + SearchTransitGatewayMulticastGroupsInputDict as SearchTransitGatewayMulticastGroupsInputDict, SearchTransitGatewayMulticastGroupsOutput as SearchTransitGatewayMulticastGroupsOutput, SearchTransitGatewayRoutesInput as SearchTransitGatewayRoutesInput, + SearchTransitGatewayRoutesInputDict as SearchTransitGatewayRoutesInputDict, SearchTransitGatewayRoutesOutput as SearchTransitGatewayRoutesOutput, SecondaryInterface as SecondaryInterface, SecondaryInterfaceAttachment as SecondaryInterfaceAttachment, SecondaryInterfaceIpv4Address as SecondaryInterfaceIpv4Address, SecondaryInterfacePrivateIpAddressSpecification as SecondaryInterfacePrivateIpAddressSpecification, SecondaryInterfacePrivateIpAddressSpecificationRequest as SecondaryInterfacePrivateIpAddressSpecificationRequest, + SecondaryInterfacePrivateIpAddressSpecificationRequestDict as SecondaryInterfacePrivateIpAddressSpecificationRequestDict, SecondaryInterfaceStatus as SecondaryInterfaceStatus, SecondaryInterfaceType as SecondaryInterfaceType, SecondaryNetwork as SecondaryNetwork, @@ -2752,6 +3785,7 @@ from ._private.models_10 import ( SecondarySubnetIpv4CidrBlockAssociation as SecondarySubnetIpv4CidrBlockAssociation, SecondarySubnetState as SecondarySubnetState, SecureBlobAttributeValue as SecureBlobAttributeValue, + SecureBlobAttributeValueDict as SecureBlobAttributeValueDict, SecurityGroup as SecurityGroup, SecurityGroupForVpc as SecurityGroupForVpc, SecurityGroupIdentifier as SecurityGroupIdentifier, @@ -2759,12 +3793,16 @@ from ._private.models_10 import ( SecurityGroupReferencingSupportValue as SecurityGroupReferencingSupportValue, SecurityGroupRule as SecurityGroupRule, SecurityGroupRuleDescription as SecurityGroupRuleDescription, + SecurityGroupRuleDescriptionDict as SecurityGroupRuleDescriptionDict, SecurityGroupRuleRequest as SecurityGroupRuleRequest, + SecurityGroupRuleRequestDict as SecurityGroupRuleRequestDict, SecurityGroupRuleUpdate as SecurityGroupRuleUpdate, + SecurityGroupRuleUpdateDict as SecurityGroupRuleUpdateDict, SecurityGroupVpcAssociation as SecurityGroupVpcAssociation, SecurityGroupVpcAssociationState as SecurityGroupVpcAssociationState, SelfServicePortal as SelfServicePortal, SendDiagnosticInterruptInput as SendDiagnosticInterruptInput, + SendDiagnosticInterruptInputDict as SendDiagnosticInterruptInputDict, SendDiagnosticInterruptOutput as SendDiagnosticInterruptOutput, ServiceConfiguration as ServiceConfiguration, ServiceConnectivityType as ServiceConnectivityType, @@ -2778,12 +3816,15 @@ from ._private.models_10 import ( SeverityLabel as SeverityLabel, ShutdownBehavior as ShutdownBehavior, SlotDateTimeRangeRequest as SlotDateTimeRangeRequest, + SlotDateTimeRangeRequestDict as SlotDateTimeRangeRequestDict, SlotStartTimeRangeRequest as SlotStartTimeRangeRequest, + SlotStartTimeRangeRequestDict as SlotStartTimeRangeRequestDict, Snapshot as Snapshot, SnapshotAttributeName as SnapshotAttributeName, SnapshotBlockPublicAccessState as SnapshotBlockPublicAccessState, SnapshotDetail as SnapshotDetail, SnapshotDiskContainer as SnapshotDiskContainer, + SnapshotDiskContainerDict as SnapshotDiskContainerDict, SnapshotInfo as SnapshotInfo, SnapshotLocationEnum as SnapshotLocationEnum, SnapshotRecycleBinInfo as SnapshotRecycleBinInfo, @@ -2796,12 +3837,17 @@ from ._private.models_11 import ( SnapshotTierStatus as SnapshotTierStatus, SpotAllocationStrategy as SpotAllocationStrategy, SpotCapacityRebalance as SpotCapacityRebalance, + SpotCapacityRebalanceDict as SpotCapacityRebalanceDict, SpotDatafeedSubscription as SpotDatafeedSubscription, SpotFleetLaunchSpecification as SpotFleetLaunchSpecification, + SpotFleetLaunchSpecificationDict as SpotFleetLaunchSpecificationDict, SpotFleetMonitoring as SpotFleetMonitoring, + SpotFleetMonitoringDict as SpotFleetMonitoringDict, SpotFleetRequestConfig as SpotFleetRequestConfig, SpotFleetRequestConfigData as SpotFleetRequestConfigData, + SpotFleetRequestConfigDataDict as SpotFleetRequestConfigDataDict, SpotFleetTagSpecification as SpotFleetTagSpecification, + SpotFleetTagSpecificationDict as SpotFleetTagSpecificationDict, SpotInstanceInterruptionBehavior as SpotInstanceInterruptionBehavior, SpotInstanceRequest as SpotInstanceRequest, SpotInstanceState as SpotInstanceState, @@ -2809,10 +3855,14 @@ from ._private.models_11 import ( SpotInstanceStatus as SpotInstanceStatus, SpotInstanceType as SpotInstanceType, SpotMaintenanceStrategies as SpotMaintenanceStrategies, + SpotMaintenanceStrategiesDict as SpotMaintenanceStrategiesDict, SpotMarketOptions as SpotMarketOptions, + SpotMarketOptionsDict as SpotMarketOptionsDict, SpotOptions as SpotOptions, SpotOptionsRequest as SpotOptionsRequest, + SpotOptionsRequestDict as SpotOptionsRequestDict, SpotPlacement as SpotPlacement, + SpotPlacementDict as SpotPlacementDict, SpotPlacementScore as SpotPlacementScore, SpotPrice as SpotPrice, SpreadLevel as SpreadLevel, @@ -2821,14 +3871,19 @@ from ._private.models_11 import ( StaleIpPermission as StaleIpPermission, StaleSecurityGroup as StaleSecurityGroup, StartDeclarativePoliciesReportInput as StartDeclarativePoliciesReportInput, + StartDeclarativePoliciesReportInputDict as StartDeclarativePoliciesReportInputDict, StartDeclarativePoliciesReportOutput as StartDeclarativePoliciesReportOutput, StartInstancesInput as StartInstancesInput, + StartInstancesInputDict as StartInstancesInputDict, StartInstancesOutput as StartInstancesOutput, StartNetworkInsightsAccessScopeAnalysisInput as StartNetworkInsightsAccessScopeAnalysisInput, + StartNetworkInsightsAccessScopeAnalysisInputDict as StartNetworkInsightsAccessScopeAnalysisInputDict, StartNetworkInsightsAccessScopeAnalysisOutput as StartNetworkInsightsAccessScopeAnalysisOutput, StartNetworkInsightsAnalysisInput as StartNetworkInsightsAnalysisInput, + StartNetworkInsightsAnalysisInputDict as StartNetworkInsightsAnalysisInputDict, StartNetworkInsightsAnalysisOutput as StartNetworkInsightsAnalysisOutput, StartVpcEndpointServicePrivateDnsVerificationInput as StartVpcEndpointServicePrivateDnsVerificationInput, + StartVpcEndpointServicePrivateDnsVerificationInputDict as StartVpcEndpointServicePrivateDnsVerificationInputDict, StartVpcEndpointServicePrivateDnsVerificationOutput as StartVpcEndpointServicePrivateDnsVerificationOutput, State as State, StateReason as StateReason, @@ -2838,9 +3893,12 @@ from ._private.models_11 import ( StatusName as StatusName, StatusType as StatusType, StopInstancesInput as StopInstancesInput, + StopInstancesInputDict as StopInstancesInputDict, StopInstancesOutput as StopInstancesOutput, Storage as Storage, + StorageDict as StorageDict, StorageLocation as StorageLocation, + StorageLocationDict as StorageLocationDict, StorageTier as StorageTier, StoreImageTaskResult as StoreImageTaskResult, Subnet as Subnet, @@ -2850,6 +3908,7 @@ from ._private.models_11 import ( SubnetCidrReservation as SubnetCidrReservation, SubnetCidrReservationType as SubnetCidrReservationType, SubnetConfiguration as SubnetConfiguration, + SubnetConfigurationDict as SubnetConfigurationDict, SubnetIpPrefixes as SubnetIpPrefixes, SubnetIpv6CidrBlockAssociation as SubnetIpv6CidrBlockAssociation, SubnetState as SubnetState, @@ -2864,34 +3923,46 @@ from ._private.models_11 import ( SupportedAdditionalProcessorFeature as SupportedAdditionalProcessorFeature, SupportedRegionDetail as SupportedRegionDetail, Tag as Tag, + TagDict as TagDict, TagDescription as TagDescription, TagFieldSpecificationRequest as TagFieldSpecificationRequest, + TagFieldSpecificationRequestDict as TagFieldSpecificationRequestDict, TagFieldSpecificationResponse as TagFieldSpecificationResponse, TaggableResourceType as TaggableResourceType, TagSpecification as TagSpecification, + TagSpecificationDict as TagSpecificationDict, TargetCapacitySpecification as TargetCapacitySpecification, TargetCapacitySpecificationRequest as TargetCapacitySpecificationRequest, + TargetCapacitySpecificationRequestDict as TargetCapacitySpecificationRequestDict, TargetCapacityUnitType as TargetCapacityUnitType, TargetConfiguration as TargetConfiguration, TargetConfigurationRequest as TargetConfigurationRequest, + TargetConfigurationRequestDict as TargetConfigurationRequestDict, TargetGroup as TargetGroup, + TargetGroupDict as TargetGroupDict, TargetGroupsConfig as TargetGroupsConfig, + TargetGroupsConfigDict as TargetGroupsConfigDict, TargetNetwork as TargetNetwork, TargetReservationValue as TargetReservationValue, TargetStorageTier as TargetStorageTier, TelemetryStatus as TelemetryStatus, Tenancy as Tenancy, TerminateClientVpnConnectionsInput as TerminateClientVpnConnectionsInput, + TerminateClientVpnConnectionsInputDict as TerminateClientVpnConnectionsInputDict, TerminateClientVpnConnectionsOutput as TerminateClientVpnConnectionsOutput, TerminateConnectionStatus as TerminateConnectionStatus, TerminateInstancesInput as TerminateInstancesInput, + TerminateInstancesInputDict as TerminateInstancesInputDict, TerminateInstancesOutput as TerminateInstancesOutput, ThroughResourcesStatement as ThroughResourcesStatement, ThroughResourcesStatementRequest as ThroughResourcesStatementRequest, + ThroughResourcesStatementRequestDict as ThroughResourcesStatementRequestDict, TieringOperationStatus as TieringOperationStatus, TokenState as TokenState, TotalLocalStorageGB as TotalLocalStorageGB, + TotalLocalStorageGBDict as TotalLocalStorageGBDict, TotalLocalStorageGBRequest as TotalLocalStorageGBRequest, + TotalLocalStorageGBRequestDict as TotalLocalStorageGBRequestDict, TpmSupportValues as TpmSupportValues, TrafficDirection as TrafficDirection, TrafficIpAddressType as TrafficIpAddressType, @@ -2901,6 +3972,7 @@ from ._private.models_11 import ( TrafficMirrorNetworkService as TrafficMirrorNetworkService, TrafficMirrorPortRange as TrafficMirrorPortRange, TrafficMirrorPortRangeRequest as TrafficMirrorPortRangeRequest, + TrafficMirrorPortRangeRequestDict as TrafficMirrorPortRangeRequestDict, TrafficMirrorRuleAction as TrafficMirrorRuleAction, TrafficMirrorSession as TrafficMirrorSession, TrafficMirrorSessionField as TrafficMirrorSessionField, @@ -2924,12 +3996,14 @@ from ._private.models_11 import ( TransitGatewayClientVpnAttachment as TransitGatewayClientVpnAttachment, TransitGatewayConfigurationDescribeEndpointStructure as TransitGatewayConfigurationDescribeEndpointStructure, TransitGatewayConfigurationInputStructure as TransitGatewayConfigurationInputStructure, + TransitGatewayConfigurationInputStructureDict as TransitGatewayConfigurationInputStructureDict, TransitGatewayConnect as TransitGatewayConnect, TransitGatewayConnectOptions as TransitGatewayConnectOptions, TransitGatewayConnectPeer as TransitGatewayConnectPeer, TransitGatewayConnectPeerConfiguration as TransitGatewayConnectPeerConfiguration, TransitGatewayConnectPeerState as TransitGatewayConnectPeerState, TransitGatewayConnectRequestBgpOptions as TransitGatewayConnectRequestBgpOptions, + TransitGatewayConnectRequestBgpOptionsDict as TransitGatewayConnectRequestBgpOptionsDict, TransitGatewayMeteringPayerType as TransitGatewayMeteringPayerType, TransitGatewayMeteringPolicy as TransitGatewayMeteringPolicy, TransitGatewayMeteringPolicyEntry as TransitGatewayMeteringPolicyEntry, @@ -2949,6 +4023,7 @@ from ._private.models_11 import ( TransitGatewayMulticastRegisteredGroupSources as TransitGatewayMulticastRegisteredGroupSources, TransitGatewayNatRule as TransitGatewayNatRule, TransitGatewayNatRuleRequest as TransitGatewayNatRuleRequest, + TransitGatewayNatRuleRequestDict as TransitGatewayNatRuleRequestDict, TransitGatewayNatRuleState as TransitGatewayNatRuleState, TransitGatewayOptions as TransitGatewayOptions, TransitGatewayPeeringAttachment as TransitGatewayPeeringAttachment, @@ -2966,8 +4041,11 @@ from ._private.models_11 import ( TransitGatewayPropagation as TransitGatewayPropagation, TransitGatewayPropagationState as TransitGatewayPropagationState, TransitGatewayRequestOptions as TransitGatewayRequestOptions, + TransitGatewayRequestOptionsDict as TransitGatewayRequestOptionsDict, TransitGatewayRequestPolicyRule as TransitGatewayRequestPolicyRule, + TransitGatewayRequestPolicyRuleDict as TransitGatewayRequestPolicyRuleDict, TransitGatewayRequestPolicyRuleMetaData as TransitGatewayRequestPolicyRuleMetaData, + TransitGatewayRequestPolicyRuleMetaDataDict as TransitGatewayRequestPolicyRuleMetaDataDict, TransitGatewayRoute as TransitGatewayRoute, TransitGatewayRouteAttachment as TransitGatewayRouteAttachment, TransitGatewayRouteState as TransitGatewayRouteState, @@ -2989,15 +4067,20 @@ from ._private.models_11 import ( TunnelInsideIpVersion as TunnelInsideIpVersion, TunnelOption as TunnelOption, UnassignIpv6AddressesInput as UnassignIpv6AddressesInput, + UnassignIpv6AddressesInputDict as UnassignIpv6AddressesInputDict, UnassignIpv6AddressesOutput as UnassignIpv6AddressesOutput, UnassignPrivateIpAddressesInput as UnassignPrivateIpAddressesInput, + UnassignPrivateIpAddressesInputDict as UnassignPrivateIpAddressesInputDict, UnassignPrivateIpAddressesOutput as UnassignPrivateIpAddressesOutput, UnassignPrivateNatGatewayAddressInput as UnassignPrivateNatGatewayAddressInput, + UnassignPrivateNatGatewayAddressInputDict as UnassignPrivateNatGatewayAddressInputDict, UnassignPrivateNatGatewayAddressOutput as UnassignPrivateNatGatewayAddressOutput, UnlimitedSupportedInstanceFamily as UnlimitedSupportedInstanceFamily, UnlockSnapshotInput as UnlockSnapshotInput, + UnlockSnapshotInputDict as UnlockSnapshotInputDict, UnlockSnapshotOutput as UnlockSnapshotOutput, UnmonitorInstancesInput as UnmonitorInstancesInput, + UnmonitorInstancesInputDict as UnmonitorInstancesInputDict, UnmonitorInstancesOutput as UnmonitorInstancesOutput, UnsuccessfulAssociationResponseObject as UnsuccessfulAssociationResponseObject, UnsuccessfulInstanceCreditSpecificationErrorCode as UnsuccessfulInstanceCreditSpecificationErrorCode, @@ -3007,27 +4090,38 @@ from ._private.models_11 import ( UnsuccessfulItemError as UnsuccessfulItemError, UnsuccessfulSuppressionResponseObject as UnsuccessfulSuppressionResponseObject, UpdateCapacityManagerMonitoredTagKeysInput as UpdateCapacityManagerMonitoredTagKeysInput, + UpdateCapacityManagerMonitoredTagKeysInputDict as UpdateCapacityManagerMonitoredTagKeysInputDict, UpdateCapacityManagerMonitoredTagKeysOutput as UpdateCapacityManagerMonitoredTagKeysOutput, UpdateCapacityManagerOrganizationsAccessInput as UpdateCapacityManagerOrganizationsAccessInput, + UpdateCapacityManagerOrganizationsAccessInputDict as UpdateCapacityManagerOrganizationsAccessInputDict, UpdateCapacityManagerOrganizationsAccessOutput as UpdateCapacityManagerOrganizationsAccessOutput, UpdateInterruptibleCapacityReservationAllocationInput as UpdateInterruptibleCapacityReservationAllocationInput, + UpdateInterruptibleCapacityReservationAllocationInputDict as UpdateInterruptibleCapacityReservationAllocationInputDict, UpdateInterruptibleCapacityReservationAllocationOutput as UpdateInterruptibleCapacityReservationAllocationOutput, UpdateSecurityGroupRuleDescriptionsEgressInput as UpdateSecurityGroupRuleDescriptionsEgressInput, + UpdateSecurityGroupRuleDescriptionsEgressInputDict as UpdateSecurityGroupRuleDescriptionsEgressInputDict, UpdateSecurityGroupRuleDescriptionsEgressOutput as UpdateSecurityGroupRuleDescriptionsEgressOutput, UpdateSecurityGroupRuleDescriptionsIngressInput as UpdateSecurityGroupRuleDescriptionsIngressInput, + UpdateSecurityGroupRuleDescriptionsIngressInputDict as UpdateSecurityGroupRuleDescriptionsIngressInputDict, UpdateSecurityGroupRuleDescriptionsIngressOutput as UpdateSecurityGroupRuleDescriptionsIngressOutput, UsageClassType as UsageClassType, UserBucket as UserBucket, + UserBucketDict as UserBucketDict, UserBucketDetails as UserBucketDetails, UserData as UserData, + UserDataDict as UserDataDict, UserIdGroupPair as UserIdGroupPair, + UserIdGroupPairDict as UserIdGroupPairDict, UserTrustProviderType as UserTrustProviderType, ValidateSecurityGroupQuotasForInterfaceInput as ValidateSecurityGroupQuotasForInterfaceInput, + ValidateSecurityGroupQuotasForInterfaceInputDict as ValidateSecurityGroupQuotasForInterfaceInputDict, ValidateSecurityGroupQuotasForInterfaceOutput as ValidateSecurityGroupQuotasForInterfaceOutput, ValidationError as ValidationError, ValidationWarning as ValidationWarning, VCpuCountRange as VCpuCountRange, + VCpuCountRangeDict as VCpuCountRangeDict, VCpuCountRangeRequest as VCpuCountRangeRequest, + VCpuCountRangeRequestDict as VCpuCountRangeRequestDict, VCpuInfo as VCpuInfo, VerificationMethod as VerificationMethod, VerifiedAccessEndpoint as VerifiedAccessEndpoint, @@ -3054,15 +4148,20 @@ from ._private.models_12 import ( VerifiedAccessInstanceUserTrustProviderClientConfiguration as VerifiedAccessInstanceUserTrustProviderClientConfiguration, VerifiedAccessLogCloudWatchLogsDestination as VerifiedAccessLogCloudWatchLogsDestination, VerifiedAccessLogCloudWatchLogsDestinationOptions as VerifiedAccessLogCloudWatchLogsDestinationOptions, + VerifiedAccessLogCloudWatchLogsDestinationOptionsDict as VerifiedAccessLogCloudWatchLogsDestinationOptionsDict, VerifiedAccessLogDeliveryStatus as VerifiedAccessLogDeliveryStatus, VerifiedAccessLogDeliveryStatusCode as VerifiedAccessLogDeliveryStatusCode, VerifiedAccessLogKinesisDataFirehoseDestination as VerifiedAccessLogKinesisDataFirehoseDestination, VerifiedAccessLogKinesisDataFirehoseDestinationOptions as VerifiedAccessLogKinesisDataFirehoseDestinationOptions, + VerifiedAccessLogKinesisDataFirehoseDestinationOptionsDict as VerifiedAccessLogKinesisDataFirehoseDestinationOptionsDict, VerifiedAccessLogOptions as VerifiedAccessLogOptions, + VerifiedAccessLogOptionsDict as VerifiedAccessLogOptionsDict, VerifiedAccessLogs as VerifiedAccessLogs, VerifiedAccessLogS3Destination as VerifiedAccessLogS3Destination, VerifiedAccessLogS3DestinationOptions as VerifiedAccessLogS3DestinationOptions, + VerifiedAccessLogS3DestinationOptionsDict as VerifiedAccessLogS3DestinationOptionsDict, VerifiedAccessSseSpecificationRequest as VerifiedAccessSseSpecificationRequest, + VerifiedAccessSseSpecificationRequestDict as VerifiedAccessSseSpecificationRequestDict, VerifiedAccessSseSpecificationResponse as VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider as VerifiedAccessTrustProvider, VerifiedAccessTrustProviderCondensed as VerifiedAccessTrustProviderCondensed, @@ -3073,6 +4172,7 @@ from ._private.models_12 import ( VolumeAttachmentState as VolumeAttachmentState, VolumeAttributeName as VolumeAttributeName, VolumeDetail as VolumeDetail, + VolumeDetailDict as VolumeDetailDict, VolumeModification as VolumeModification, VolumeModificationState as VolumeModificationState, VolumeRecycleBinInfo as VolumeRecycleBinInfo, @@ -3100,6 +4200,7 @@ from ._private.models_12 import ( VpcClassicLink as VpcClassicLink, VpcEncryptionControl as VpcEncryptionControl, VpcEncryptionControlConfiguration as VpcEncryptionControlConfiguration, + VpcEncryptionControlConfigurationDict as VpcEncryptionControlConfigurationDict, VpcEncryptionControlExclusion as VpcEncryptionControlExclusion, VpcEncryptionControlExclusions as VpcEncryptionControlExclusions, VpcEncryptionControlExclusionState as VpcEncryptionControlExclusionState, @@ -3125,6 +4226,7 @@ from ._private.models_12 import ( VpnConnectionDeviceType as VpnConnectionDeviceType, VpnConnectionOptions as VpnConnectionOptions, VpnConnectionOptionsSpecification as VpnConnectionOptionsSpecification, + VpnConnectionOptionsSpecificationDict as VpnConnectionOptionsSpecificationDict, VpnEcmpSupportValue as VpnEcmpSupportValue, VpnGateway as VpnGateway, VpnProtocol as VpnProtocol, @@ -3134,10 +4236,13 @@ from ._private.models_12 import ( VpnTunnelBandwidth as VpnTunnelBandwidth, VpnTunnelLogOptions as VpnTunnelLogOptions, VpnTunnelLogOptionsSpecification as VpnTunnelLogOptionsSpecification, + VpnTunnelLogOptionsSpecificationDict as VpnTunnelLogOptionsSpecificationDict, VpnTunnelOptionsSpecification as VpnTunnelOptionsSpecification, + VpnTunnelOptionsSpecificationDict as VpnTunnelOptionsSpecificationDict, VpnTunnelProvisioningStatus as VpnTunnelProvisioningStatus, WeekDay as WeekDay, WithdrawByoipCidrInput as WithdrawByoipCidrInput, + WithdrawByoipCidrInputDict as WithdrawByoipCidrInputDict, WithdrawByoipCidrOutput as WithdrawByoipCidrOutput, ZeroSizePreference as ZeroSizePreference, ) diff --git a/clients/aws-sdk-ec2/src/aws_sdk_ec2/py.typed b/clients/aws-sdk-ec2/src/aws_sdk_ec2/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-ec2/tests/_typecheck.py b/clients/aws-sdk-ec2/tests/_typecheck.py index f7d5078c1..66499e7ee 100644 --- a/clients/aws-sdk-ec2/tests/_typecheck.py +++ b/clients/aws-sdk-ec2/tests/_typecheck.py @@ -2,32 +2,48 @@ from typing import Any +from aws_sdk_ec2.aio.client import AsyncEC2Client +from aws_sdk_ec2.client import EC2Client from aws_sdk_ec2.models import ( AcceleratorCount, + AcceleratorCountDict, AcceleratorCountRequest, + AcceleratorCountRequestDict, AcceleratorTotalMemoryMiB, + AcceleratorTotalMemoryMiBDict, AcceleratorTotalMemoryMiBRequest, + AcceleratorTotalMemoryMiBRequestDict, AcceptAddressTransferInput, + AcceptAddressTransferInputDict, AcceptAddressTransferOutput, AcceptCapacityReservationBillingOwnershipInput, + AcceptCapacityReservationBillingOwnershipInputDict, AcceptCapacityReservationBillingOwnershipOutput, AcceptReservedInstancesExchangeQuoteInput, + AcceptReservedInstancesExchangeQuoteInputDict, AcceptReservedInstancesExchangeQuoteOutput, AcceptTransitGatewayClientVpnAttachmentInput, + AcceptTransitGatewayClientVpnAttachmentInputDict, AcceptTransitGatewayClientVpnAttachmentOutput, AcceptTransitGatewayMulticastDomainAssociationsInput, + AcceptTransitGatewayMulticastDomainAssociationsInputDict, AcceptTransitGatewayMulticastDomainAssociationsOutput, AcceptTransitGatewayPeeringAttachmentInput, + AcceptTransitGatewayPeeringAttachmentInputDict, AcceptTransitGatewayPeeringAttachmentOutput, AcceptTransitGatewayVpcAttachmentInput, + AcceptTransitGatewayVpcAttachmentInputDict, AcceptTransitGatewayVpcAttachmentOutput, AcceptVpcEndpointConnectionsInput, + AcceptVpcEndpointConnectionsInputDict, AcceptVpcEndpointConnectionsOutput, AcceptVpcPeeringConnectionInput, + AcceptVpcPeeringConnectionInputDict, AcceptVpcPeeringConnectionOutput, AccessScopeAnalysisFinding, AccessScopePath, AccessScopePathRequest, + AccessScopePathRequestDict, AccountAttribute, AccountAttributeValue, AccountVpcEncryptionControl, @@ -35,20 +51,27 @@ ActiveInstance, ActiveVpnTunnelStatus, AddIpamOperatingRegion, + AddIpamOperatingRegionDict, AddIpamOrganizationalUnitExclusion, + AddIpamOrganizationalUnitExclusionDict, AddPrefixListEntry, + AddPrefixListEntryDict, AddedPrincipal, AdditionalDetail, Address, AddressAttribute, AddressTransfer, AdvertiseByoipCidrInput, + AdvertiseByoipCidrInputDict, AdvertiseByoipCidrOutput, AllocateAddressInput, + AllocateAddressInputDict, AllocateAddressOutput, AllocateHostsInput, + AllocateHostsInputDict, AllocateHostsOutput, AllocateIpamPoolCidrInput, + AllocateIpamPoolCidrInputDict, AllocateIpamPoolCidrOutput, AllowedPrincipal, AlternatePathHint, @@ -68,132 +91,189 @@ ApplicationStatusSummary, ApplicationStatusesResponseType, ApplySecurityGroupsToClientVpnTargetNetworkInput, + ApplySecurityGroupsToClientVpnTargetNetworkInputDict, ApplySecurityGroupsToClientVpnTargetNetworkOutput, AsnAssociation, AsnAuthorizationContext, + AsnAuthorizationContextDict, AssignIpv6AddressesInput, + AssignIpv6AddressesInputDict, AssignIpv6AddressesOutput, AssignPrivateIpAddressesInput, + AssignPrivateIpAddressesInputDict, AssignPrivateIpAddressesOutput, AssignPrivateNatGatewayAddressInput, + AssignPrivateNatGatewayAddressInputDict, AssignPrivateNatGatewayAddressOutput, AssignedPrivateIpAddress, AssociateAddressInput, + AssociateAddressInputDict, AssociateAddressOutput, AssociateApplicationStatusCheckInput, + AssociateApplicationStatusCheckInputDict, AssociateApplicationStatusCheckOutput, AssociateCapacityReservationBillingOwnerInput, + AssociateCapacityReservationBillingOwnerInputDict, AssociateCapacityReservationBillingOwnerOutput, AssociateClientVpnTargetNetworkInput, + AssociateClientVpnTargetNetworkInputDict, AssociateClientVpnTargetNetworkOutput, AssociateDhcpOptionsInput, + AssociateDhcpOptionsInputDict, AssociateDhcpOptionsOutput, AssociateEnclaveCertificateIamRoleInput, + AssociateEnclaveCertificateIamRoleInputDict, AssociateEnclaveCertificateIamRoleOutput, AssociateIamInstanceProfileInput, + AssociateIamInstanceProfileInputDict, AssociateIamInstanceProfileOutput, AssociateInstanceEventWindowInput, + AssociateInstanceEventWindowInputDict, AssociateInstanceEventWindowOutput, AssociateIpamByoasnInput, + AssociateIpamByoasnInputDict, AssociateIpamByoasnOutput, AssociateIpamResourceDiscoveryInput, + AssociateIpamResourceDiscoveryInputDict, AssociateIpamResourceDiscoveryOutput, AssociateNatGatewayAddressInput, + AssociateNatGatewayAddressInputDict, AssociateNatGatewayAddressOutput, AssociateRouteServerInput, + AssociateRouteServerInputDict, AssociateRouteServerOutput, AssociateRouteTableInput, + AssociateRouteTableInputDict, AssociateRouteTableOutput, AssociateSecurityGroupVpcInput, + AssociateSecurityGroupVpcInputDict, AssociateSecurityGroupVpcOutput, AssociateSubnetCidrBlockInput, + AssociateSubnetCidrBlockInputDict, AssociateSubnetCidrBlockOutput, AssociateTransitGatewayMulticastDomainInput, + AssociateTransitGatewayMulticastDomainInputDict, AssociateTransitGatewayMulticastDomainOutput, AssociateTransitGatewayPolicyTableInput, + AssociateTransitGatewayPolicyTableInputDict, AssociateTransitGatewayPolicyTableOutput, AssociateTransitGatewayRouteTableInput, + AssociateTransitGatewayRouteTableInputDict, AssociateTransitGatewayRouteTableOutput, AssociateTrunkInterfaceInput, + AssociateTrunkInterfaceInputDict, AssociateTrunkInterfaceOutput, AssociateVpcCidrBlockInput, + AssociateVpcCidrBlockInputDict, AssociateVpcCidrBlockOutput, AssociatedRole, AssociatedTargetNetwork, AssociationStatus, AthenaIntegration, + AthenaIntegrationDict, AttachClassicLinkVpcInput, + AttachClassicLinkVpcInputDict, AttachClassicLinkVpcOutput, AttachImageWatermarkInput, + AttachImageWatermarkInputDict, AttachImageWatermarkOutput, AttachInternetGatewayInput, + AttachInternetGatewayInputDict, AttachInternetGatewayOutput, AttachNetworkInterfaceInput, + AttachNetworkInterfaceInputDict, AttachNetworkInterfaceOutput, AttachVerifiedAccessTrustProviderInput, + AttachVerifiedAccessTrustProviderInputDict, AttachVerifiedAccessTrustProviderOutput, AttachVolumeInput, + AttachVolumeInputDict, AttachVolumeOutput, AttachVpnGatewayInput, + AttachVpnGatewayInputDict, AttachVpnGatewayOutput, AttachmentEnaSrdSpecification, AttachmentEnaSrdUdpSpecification, AttributeBooleanValue, + AttributeBooleanValueDict, AttributeSummary, AttributeValue, + AttributeValueDict, AuthorizationRule, AuthorizeClientVpnIngressInput, + AuthorizeClientVpnIngressInputDict, AuthorizeClientVpnIngressOutput, AuthorizeSecurityGroupEgressInput, + AuthorizeSecurityGroupEgressInputDict, AuthorizeSecurityGroupEgressOutput, AuthorizeSecurityGroupIngressInput, + AuthorizeSecurityGroupIngressInputDict, AuthorizeSecurityGroupIngressOutput, AvailabilityZone, AvailabilityZoneAddress, + AvailabilityZoneAddressDict, AvailabilityZoneGeography, AvailabilityZoneMessage, AvailabilityZoneSubGeography, AvailableCapacity, BaselineEbsBandwidthMbps, + BaselineEbsBandwidthMbpsDict, BaselineEbsBandwidthMbpsRequest, + BaselineEbsBandwidthMbpsRequestDict, BaselinePerformanceFactors, + BaselinePerformanceFactorsDict, BaselinePerformanceFactorsRequest, + BaselinePerformanceFactorsRequestDict, BatchModifyIpamRoutingPolicyRegistrationsInput, + BatchModifyIpamRoutingPolicyRegistrationsInputDict, BatchModifyIpamRoutingPolicyRegistrationsOutput, BlockDeviceMapping, + BlockDeviceMappingDict, BlockDeviceMappingResponse, BlockPublicAccessStates, BundleInstanceInput, + BundleInstanceInputDict, BundleInstanceOutput, BundleTask, BundleTaskError, Byoasn, ByoipCidr, CancelBundleTaskInput, + CancelBundleTaskInputDict, CancelBundleTaskOutput, CancelCapacityReservationFleetError, CancelCapacityReservationFleetsInput, + CancelCapacityReservationFleetsInputDict, CancelCapacityReservationFleetsOutput, CancelCapacityReservationInput, + CancelCapacityReservationInputDict, CancelCapacityReservationOutput, CancelConversionTaskInput, + CancelConversionTaskInputDict, CancelConversionTaskOutput, CancelDeclarativePoliciesReportInput, + CancelDeclarativePoliciesReportInputDict, CancelDeclarativePoliciesReportOutput, CancelExportTaskInput, + CancelExportTaskInputDict, CancelExportTaskOutput, CancelImageLaunchPermissionInput, + CancelImageLaunchPermissionInputDict, CancelImageLaunchPermissionOutput, CancelImportTaskInput, + CancelImportTaskInputDict, CancelImportTaskOutput, CancelReservedInstancesListingInput, + CancelReservedInstancesListingInputDict, CancelReservedInstancesListingOutput, CancelSpotFleetRequestsError, CancelSpotFleetRequestsErrorItem, CancelSpotFleetRequestsInput, + CancelSpotFleetRequestsInputDict, CancelSpotFleetRequestsOutput, CancelSpotFleetRequestsSuccessItem, CancelSpotInstanceRequestsInput, + CancelSpotInstanceRequestsInputDict, CancelSpotInstanceRequestsOutput, CancellationTerms, CancelledSpotInstanceRequest, @@ -205,6 +285,7 @@ CapacityBlockOffering, CapacityBlockStatus, CapacityManagerCondition, + CapacityManagerConditionDict, CapacityManagerDataExportResponse, CapacityManagerDimension, CapacityManagerMonitoredTagKey, @@ -223,31 +304,43 @@ CapacityReservationModificationQuote, CapacityReservationOptions, CapacityReservationOptionsRequest, + CapacityReservationOptionsRequestDict, CapacityReservationSpecification, + CapacityReservationSpecificationDict, CapacityReservationSpecificationResponse, CapacityReservationStatus, CapacityReservationTarget, + CapacityReservationTargetDict, CapacityReservationTargetResponse, CapacityReservationTopology, CarrierGateway, CertificateAuthentication, CertificateAuthenticationRequest, + CertificateAuthenticationRequestDict, CidrAuthorizationContext, + CidrAuthorizationContextDict, CidrBlock, ClassicLinkDnsSupport, ClassicLinkInstance, ClassicLoadBalancer, + ClassicLoadBalancerDict, ClassicLoadBalancersConfig, + ClassicLoadBalancersConfigDict, ClientCertificateRevocationListStatus, ClientConnectOptions, + ClientConnectOptionsDict, ClientConnectResponseOptions, ClientData, + ClientDataDict, ClientLoginBannerOptions, + ClientLoginBannerOptionsDict, ClientLoginBannerResponseOptions, ClientRouteEnforcementOptions, + ClientRouteEnforcementOptionsDict, ClientRouteEnforcementResponseOptions, ClientVpnAuthentication, ClientVpnAuthenticationRequest, + ClientVpnAuthenticationRequestDict, ClientVpnAuthorizationRuleStatus, ClientVpnConnection, ClientVpnConnectionStatus, @@ -258,1017 +351,1516 @@ ClientVpnRouteStatus, ClientVpnTrustProvider, ClientVpnTrustProviderRequest, + ClientVpnTrustProviderRequestDict, CloudWatchLogOptions, CloudWatchLogOptionsSpecification, + CloudWatchLogOptionsSpecificationDict, CoipAddressUsage, CoipCidr, CoipPool, ConfirmProductInstanceInput, + ConfirmProductInstanceInputDict, ConfirmProductInstanceOutput, ConnectionLogOptions, + ConnectionLogOptionsDict, ConnectionLogResponseOptions, ConnectionNotification, ConnectionTrackingConfiguration, ConnectionTrackingSpecification, ConnectionTrackingSpecificationRequest, + ConnectionTrackingSpecificationRequestDict, ConnectionTrackingSpecificationResponse, ConversionTask, CopyFpgaImageInput, + CopyFpgaImageInputDict, CopyFpgaImageOutput, CopyImageInput, + CopyImageInputDict, CopyImageOutput, CopySnapshotInput, + CopySnapshotInputDict, CopySnapshotOutput, CopyVolumesInput, + CopyVolumesInputDict, CopyVolumesOutput, CpuOptions, CpuOptionsRequest, + CpuOptionsRequestDict, CpuPerformanceFactor, + CpuPerformanceFactorDict, CpuPerformanceFactorRequest, + CpuPerformanceFactorRequestDict, CreateApplicationStatusCheckInput, + CreateApplicationStatusCheckInputDict, CreateApplicationStatusCheckOutput, CreateCapacityManagerDataExportInput, + CreateCapacityManagerDataExportInputDict, CreateCapacityManagerDataExportOutput, CreateCapacityReservationBySplittingInput, + CreateCapacityReservationBySplittingInputDict, CreateCapacityReservationBySplittingOutput, CreateCapacityReservationCancellationQuoteInput, + CreateCapacityReservationCancellationQuoteInputDict, CreateCapacityReservationCancellationQuoteOutput, CreateCapacityReservationDateChangeQuoteInput, + CreateCapacityReservationDateChangeQuoteInputDict, CreateCapacityReservationDateChangeQuoteOutput, CreateCapacityReservationFleetInput, + CreateCapacityReservationFleetInputDict, CreateCapacityReservationFleetOutput, CreateCapacityReservationInput, + CreateCapacityReservationInputDict, CreateCapacityReservationOutput, CreateCarrierGatewayInput, + CreateCarrierGatewayInputDict, CreateCarrierGatewayOutput, CreateClientVpnEndpointInput, + CreateClientVpnEndpointInputDict, CreateClientVpnEndpointOutput, CreateClientVpnRouteInput, + CreateClientVpnRouteInputDict, CreateClientVpnRouteOutput, CreateCoipCidrInput, + CreateCoipCidrInputDict, CreateCoipCidrOutput, CreateCoipPoolInput, + CreateCoipPoolInputDict, CreateCoipPoolOutput, CreateCustomerGatewayInput, + CreateCustomerGatewayInputDict, CreateCustomerGatewayOutput, CreateDefaultSubnetInput, + CreateDefaultSubnetInputDict, CreateDefaultSubnetOutput, CreateDefaultVpcInput, + CreateDefaultVpcInputDict, CreateDefaultVpcOutput, CreateDelegateMacVolumeOwnershipTaskInput, + CreateDelegateMacVolumeOwnershipTaskInputDict, CreateDelegateMacVolumeOwnershipTaskOutput, CreateDhcpOptionsInput, + CreateDhcpOptionsInputDict, CreateDhcpOptionsOutput, CreateEgressOnlyInternetGatewayInput, + CreateEgressOnlyInternetGatewayInputDict, CreateEgressOnlyInternetGatewayOutput, CreateFleetError, CreateFleetInput, + CreateFleetInputDict, CreateFleetInstance, CreateFleetOutput, CreateFlowLogsInput, + CreateFlowLogsInputDict, CreateFlowLogsOutput, CreateFpgaImageInput, + CreateFpgaImageInputDict, CreateFpgaImageOutput, CreateImageInput, + CreateImageInputDict, CreateImageOutput, CreateImageUsageReportInput, + CreateImageUsageReportInputDict, CreateImageUsageReportOutput, CreateInstanceConnectEndpointInput, + CreateInstanceConnectEndpointInputDict, CreateInstanceConnectEndpointOutput, CreateInstanceEventWindowInput, + CreateInstanceEventWindowInputDict, CreateInstanceEventWindowOutput, CreateInstanceExportTaskInput, + CreateInstanceExportTaskInputDict, CreateInstanceExportTaskOutput, CreateInternetGatewayInput, + CreateInternetGatewayInputDict, CreateInternetGatewayOutput, CreateInterruptibleCapacityReservationAllocationInput, + CreateInterruptibleCapacityReservationAllocationInputDict, CreateInterruptibleCapacityReservationAllocationOutput, CreateIpamExternalResourceVerificationTokenInput, + CreateIpamExternalResourceVerificationTokenInputDict, CreateIpamExternalResourceVerificationTokenOutput, CreateIpamInput, + CreateIpamInputDict, CreateIpamInternetRegistryAssociationInput, + CreateIpamInternetRegistryAssociationInputDict, CreateIpamInternetRegistryAssociationOutput, CreateIpamOutput, CreateIpamPolicyInput, + CreateIpamPolicyInputDict, CreateIpamPolicyOutput, CreateIpamPoolInput, + CreateIpamPoolInputDict, CreateIpamPoolOutput, CreateIpamPrefixListResolverInput, + CreateIpamPrefixListResolverInputDict, CreateIpamPrefixListResolverOutput, CreateIpamPrefixListResolverTargetInput, + CreateIpamPrefixListResolverTargetInputDict, CreateIpamPrefixListResolverTargetOutput, CreateIpamResourceDiscoveryInput, + CreateIpamResourceDiscoveryInputDict, CreateIpamResourceDiscoveryOutput, CreateIpamRoutingPolicyRegistrationInput, + CreateIpamRoutingPolicyRegistrationInputDict, CreateIpamRoutingPolicyRegistrationOutput, CreateIpamScopeInput, + CreateIpamScopeInputDict, CreateIpamScopeOutput, CreateKeyPairInput, + CreateKeyPairInputDict, CreateKeyPairOutput, CreateLaunchTemplateInput, + CreateLaunchTemplateInputDict, CreateLaunchTemplateOutput, CreateLaunchTemplateVersionInput, + CreateLaunchTemplateVersionInputDict, CreateLaunchTemplateVersionOutput, CreateLocalGatewayRouteInput, + CreateLocalGatewayRouteInputDict, CreateLocalGatewayRouteOutput, CreateLocalGatewayRouteTableInput, + CreateLocalGatewayRouteTableInputDict, CreateLocalGatewayRouteTableOutput, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, + CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict, CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, CreateLocalGatewayRouteTableVpcAssociationInput, + CreateLocalGatewayRouteTableVpcAssociationInputDict, CreateLocalGatewayRouteTableVpcAssociationOutput, CreateLocalGatewayVirtualInterfaceGroupInput, + CreateLocalGatewayVirtualInterfaceGroupInputDict, CreateLocalGatewayVirtualInterfaceGroupOutput, CreateLocalGatewayVirtualInterfaceInput, + CreateLocalGatewayVirtualInterfaceInputDict, CreateLocalGatewayVirtualInterfaceOutput, CreateMacSystemIntegrityProtectionModificationTaskInput, + CreateMacSystemIntegrityProtectionModificationTaskInputDict, CreateMacSystemIntegrityProtectionModificationTaskOutput, CreateManagedPrefixListInput, + CreateManagedPrefixListInputDict, CreateManagedPrefixListOutput, CreateNatGatewayInput, + CreateNatGatewayInputDict, CreateNatGatewayOutput, CreateNetworkAclEntryInput, + CreateNetworkAclEntryInputDict, CreateNetworkAclEntryOutput, CreateNetworkAclInput, + CreateNetworkAclInputDict, CreateNetworkAclOutput, CreateNetworkInsightsAccessScopeInput, + CreateNetworkInsightsAccessScopeInputDict, CreateNetworkInsightsAccessScopeOutput, CreateNetworkInsightsPathInput, + CreateNetworkInsightsPathInputDict, CreateNetworkInsightsPathOutput, CreateNetworkInterfaceInput, + CreateNetworkInterfaceInputDict, CreateNetworkInterfaceOutput, CreateNetworkInterfacePermissionInput, + CreateNetworkInterfacePermissionInputDict, CreateNetworkInterfacePermissionOutput, CreatePlacementGroupInput, + CreatePlacementGroupInputDict, CreatePlacementGroupOutput, CreatePublicIpv4PoolInput, + CreatePublicIpv4PoolInputDict, CreatePublicIpv4PoolOutput, CreateReplaceRootVolumeTaskInput, + CreateReplaceRootVolumeTaskInputDict, CreateReplaceRootVolumeTaskOutput, CreateReservedInstancesListingInput, + CreateReservedInstancesListingInputDict, CreateReservedInstancesListingOutput, CreateRestoreImageTaskInput, + CreateRestoreImageTaskInputDict, CreateRestoreImageTaskOutput, CreateRouteInput, + CreateRouteInputDict, CreateRouteOutput, CreateRouteServerEndpointInput, + CreateRouteServerEndpointInputDict, CreateRouteServerEndpointOutput, CreateRouteServerInput, + CreateRouteServerInputDict, CreateRouteServerOutput, CreateRouteServerPeerInput, + CreateRouteServerPeerInputDict, CreateRouteServerPeerOutput, CreateRouteTableInput, + CreateRouteTableInputDict, CreateRouteTableOutput, CreateSecondaryNetworkInput, + CreateSecondaryNetworkInputDict, CreateSecondaryNetworkOutput, CreateSecondarySubnetInput, + CreateSecondarySubnetInputDict, CreateSecondarySubnetOutput, CreateSecurityGroupInput, + CreateSecurityGroupInputDict, CreateSecurityGroupOutput, CreateSnapshotInput, + CreateSnapshotInputDict, CreateSnapshotOutput, CreateSnapshotsInput, + CreateSnapshotsInputDict, CreateSnapshotsOutput, CreateSpotDatafeedSubscriptionInput, + CreateSpotDatafeedSubscriptionInputDict, CreateSpotDatafeedSubscriptionOutput, CreateStoreImageTaskInput, + CreateStoreImageTaskInputDict, CreateStoreImageTaskOutput, CreateSubnetCidrReservationInput, + CreateSubnetCidrReservationInputDict, CreateSubnetCidrReservationOutput, CreateSubnetInput, + CreateSubnetInputDict, CreateSubnetOutput, CreateTagsInput, + CreateTagsInputDict, CreateTagsOutput, CreateTrafficMirrorFilterInput, + CreateTrafficMirrorFilterInputDict, CreateTrafficMirrorFilterOutput, CreateTrafficMirrorFilterRuleInput, + CreateTrafficMirrorFilterRuleInputDict, CreateTrafficMirrorFilterRuleOutput, CreateTrafficMirrorSessionInput, + CreateTrafficMirrorSessionInputDict, CreateTrafficMirrorSessionOutput, CreateTrafficMirrorTargetInput, + CreateTrafficMirrorTargetInputDict, CreateTrafficMirrorTargetOutput, CreateTransitGatewayConnectInput, + CreateTransitGatewayConnectInputDict, CreateTransitGatewayConnectOutput, CreateTransitGatewayConnectPeerInput, + CreateTransitGatewayConnectPeerInputDict, CreateTransitGatewayConnectPeerOutput, CreateTransitGatewayConnectRequestOptions, + CreateTransitGatewayConnectRequestOptionsDict, CreateTransitGatewayInput, + CreateTransitGatewayInputDict, CreateTransitGatewayMeteringPolicyEntryInput, + CreateTransitGatewayMeteringPolicyEntryInputDict, CreateTransitGatewayMeteringPolicyEntryOutput, CreateTransitGatewayMeteringPolicyInput, + CreateTransitGatewayMeteringPolicyInputDict, CreateTransitGatewayMeteringPolicyOutput, CreateTransitGatewayMulticastDomainInput, + CreateTransitGatewayMulticastDomainInputDict, CreateTransitGatewayMulticastDomainOutput, CreateTransitGatewayMulticastDomainRequestOptions, + CreateTransitGatewayMulticastDomainRequestOptionsDict, CreateTransitGatewayOutput, CreateTransitGatewayPeeringAttachmentInput, + CreateTransitGatewayPeeringAttachmentInputDict, CreateTransitGatewayPeeringAttachmentOutput, CreateTransitGatewayPeeringAttachmentRequestOptions, + CreateTransitGatewayPeeringAttachmentRequestOptionsDict, CreateTransitGatewayPolicyTableEntryInput, + CreateTransitGatewayPolicyTableEntryInputDict, CreateTransitGatewayPolicyTableEntryOutput, CreateTransitGatewayPolicyTableInput, + CreateTransitGatewayPolicyTableInputDict, CreateTransitGatewayPolicyTableOutput, CreateTransitGatewayPrefixListReferenceInput, + CreateTransitGatewayPrefixListReferenceInputDict, CreateTransitGatewayPrefixListReferenceOutput, CreateTransitGatewayRouteInput, + CreateTransitGatewayRouteInputDict, CreateTransitGatewayRouteOutput, CreateTransitGatewayRouteTableAnnouncementInput, + CreateTransitGatewayRouteTableAnnouncementInputDict, CreateTransitGatewayRouteTableAnnouncementOutput, CreateTransitGatewayRouteTableInput, + CreateTransitGatewayRouteTableInputDict, CreateTransitGatewayRouteTableOutput, CreateTransitGatewayVpcAttachmentInput, + CreateTransitGatewayVpcAttachmentInputDict, CreateTransitGatewayVpcAttachmentOutput, CreateTransitGatewayVpcAttachmentRequestOptions, + CreateTransitGatewayVpcAttachmentRequestOptionsDict, CreateVerifiedAccessEndpointCidrOptions, + CreateVerifiedAccessEndpointCidrOptionsDict, CreateVerifiedAccessEndpointEniOptions, + CreateVerifiedAccessEndpointEniOptionsDict, CreateVerifiedAccessEndpointInput, + CreateVerifiedAccessEndpointInputDict, CreateVerifiedAccessEndpointLoadBalancerOptions, + CreateVerifiedAccessEndpointLoadBalancerOptionsDict, CreateVerifiedAccessEndpointOutput, CreateVerifiedAccessEndpointPortRange, + CreateVerifiedAccessEndpointPortRangeDict, CreateVerifiedAccessEndpointRdsOptions, + CreateVerifiedAccessEndpointRdsOptionsDict, CreateVerifiedAccessGroupInput, + CreateVerifiedAccessGroupInputDict, CreateVerifiedAccessGroupOutput, CreateVerifiedAccessInstanceInput, + CreateVerifiedAccessInstanceInputDict, CreateVerifiedAccessInstanceOutput, CreateVerifiedAccessNativeApplicationOidcOptions, + CreateVerifiedAccessNativeApplicationOidcOptionsDict, CreateVerifiedAccessTrustProviderDeviceOptions, + CreateVerifiedAccessTrustProviderDeviceOptionsDict, CreateVerifiedAccessTrustProviderInput, + CreateVerifiedAccessTrustProviderInputDict, CreateVerifiedAccessTrustProviderOidcOptions, + CreateVerifiedAccessTrustProviderOidcOptionsDict, CreateVerifiedAccessTrustProviderOutput, CreateVolumeInput, + CreateVolumeInputDict, CreateVolumeOutput, CreateVolumePermission, + CreateVolumePermissionDict, CreateVolumePermissionModifications, + CreateVolumePermissionModificationsDict, CreateVpcBlockPublicAccessExclusionInput, + CreateVpcBlockPublicAccessExclusionInputDict, CreateVpcBlockPublicAccessExclusionOutput, CreateVpcEncryptionControlInput, + CreateVpcEncryptionControlInputDict, CreateVpcEncryptionControlOutput, CreateVpcEndpointConnectionNotificationInput, + CreateVpcEndpointConnectionNotificationInputDict, CreateVpcEndpointConnectionNotificationOutput, CreateVpcEndpointInput, + CreateVpcEndpointInputDict, CreateVpcEndpointOutput, CreateVpcEndpointServiceConfigurationInput, + CreateVpcEndpointServiceConfigurationInputDict, CreateVpcEndpointServiceConfigurationOutput, CreateVpcInput, + CreateVpcInputDict, CreateVpcOutput, CreateVpcPeeringConnectionInput, + CreateVpcPeeringConnectionInputDict, CreateVpcPeeringConnectionOutput, CreateVpnConcentratorInput, + CreateVpnConcentratorInputDict, CreateVpnConcentratorOutput, CreateVpnConnectionInput, + CreateVpnConnectionInputDict, CreateVpnConnectionOutput, CreateVpnConnectionRouteInput, + CreateVpnConnectionRouteInputDict, CreateVpnConnectionRouteOutput, CreateVpnGatewayInput, + CreateVpnGatewayInputDict, CreateVpnGatewayOutput, CreationDateCondition, CreationDateConditionRequest, + CreationDateConditionRequestDict, CreditSpecification, CreditSpecificationRequest, + CreditSpecificationRequestDict, CustomTagKeyValueRequestPair, + CustomTagKeyValueRequestPairDict, CustomTagKeyValueResponsePair, CustomerGateway, DataQuery, + DataQueryDict, DataResponse, DeclarativePoliciesReport, DefaultConnectionTrackingConfiguration, DeleteApplicationStatusCheckInput, + DeleteApplicationStatusCheckInputDict, DeleteApplicationStatusCheckOutput, DeleteCapacityManagerDataExportInput, + DeleteCapacityManagerDataExportInputDict, DeleteCapacityManagerDataExportOutput, DeleteCarrierGatewayInput, + DeleteCarrierGatewayInputDict, DeleteCarrierGatewayOutput, DeleteClientVpnEndpointAuthorizationPolicyInput, + DeleteClientVpnEndpointAuthorizationPolicyInputDict, DeleteClientVpnEndpointAuthorizationPolicyOutput, DeleteClientVpnEndpointInput, + DeleteClientVpnEndpointInputDict, DeleteClientVpnEndpointOutput, DeleteClientVpnRouteInput, + DeleteClientVpnRouteInputDict, DeleteClientVpnRouteOutput, DeleteCoipCidrInput, + DeleteCoipCidrInputDict, DeleteCoipCidrOutput, DeleteCoipPoolInput, + DeleteCoipPoolInputDict, DeleteCoipPoolOutput, DeleteCustomerGatewayInput, + DeleteCustomerGatewayInputDict, DeleteCustomerGatewayOutput, DeleteDhcpOptionsInput, + DeleteDhcpOptionsInputDict, DeleteDhcpOptionsOutput, DeleteEgressOnlyInternetGatewayInput, + DeleteEgressOnlyInternetGatewayInputDict, DeleteEgressOnlyInternetGatewayOutput, DeleteFleetError, DeleteFleetErrorItem, DeleteFleetSuccessItem, DeleteFleetsInput, + DeleteFleetsInputDict, DeleteFleetsOutput, DeleteFlowLogsInput, + DeleteFlowLogsInputDict, DeleteFlowLogsOutput, DeleteFpgaImageInput, + DeleteFpgaImageInputDict, DeleteFpgaImageOutput, DeleteImageUsageReportInput, + DeleteImageUsageReportInputDict, DeleteImageUsageReportOutput, DeleteInstanceConnectEndpointInput, + DeleteInstanceConnectEndpointInputDict, DeleteInstanceConnectEndpointOutput, DeleteInstanceEventWindowInput, + DeleteInstanceEventWindowInputDict, DeleteInstanceEventWindowOutput, DeleteInternetGatewayInput, + DeleteInternetGatewayInputDict, DeleteInternetGatewayOutput, DeleteIpamExternalResourceVerificationTokenInput, + DeleteIpamExternalResourceVerificationTokenInputDict, DeleteIpamExternalResourceVerificationTokenOutput, DeleteIpamInput, + DeleteIpamInputDict, DeleteIpamInternetRegistryAssociationInput, + DeleteIpamInternetRegistryAssociationInputDict, DeleteIpamInternetRegistryAssociationOutput, DeleteIpamOutput, DeleteIpamPolicyInput, + DeleteIpamPolicyInputDict, DeleteIpamPolicyOutput, DeleteIpamPoolInput, + DeleteIpamPoolInputDict, DeleteIpamPoolOutput, DeleteIpamPrefixListResolverInput, + DeleteIpamPrefixListResolverInputDict, DeleteIpamPrefixListResolverOutput, DeleteIpamPrefixListResolverTargetInput, + DeleteIpamPrefixListResolverTargetInputDict, DeleteIpamPrefixListResolverTargetOutput, DeleteIpamResourceDiscoveryInput, + DeleteIpamResourceDiscoveryInputDict, DeleteIpamResourceDiscoveryOutput, DeleteIpamRoutingPolicyRegistrationInput, + DeleteIpamRoutingPolicyRegistrationInputDict, DeleteIpamRoutingPolicyRegistrationOutput, DeleteIpamScopeInput, + DeleteIpamScopeInputDict, DeleteIpamScopeOutput, DeleteKeyPairInput, + DeleteKeyPairInputDict, DeleteKeyPairOutput, DeleteLaunchTemplateInput, + DeleteLaunchTemplateInputDict, DeleteLaunchTemplateOutput, DeleteLaunchTemplateVersionsInput, + DeleteLaunchTemplateVersionsInputDict, DeleteLaunchTemplateVersionsOutput, DeleteLaunchTemplateVersionsResponseErrorItem, DeleteLaunchTemplateVersionsResponseSuccessItem, DeleteLocalGatewayRouteInput, + DeleteLocalGatewayRouteInputDict, DeleteLocalGatewayRouteOutput, DeleteLocalGatewayRouteTableInput, + DeleteLocalGatewayRouteTableInputDict, DeleteLocalGatewayRouteTableOutput, DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, + DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict, DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, DeleteLocalGatewayRouteTableVpcAssociationInput, + DeleteLocalGatewayRouteTableVpcAssociationInputDict, DeleteLocalGatewayRouteTableVpcAssociationOutput, DeleteLocalGatewayVirtualInterfaceGroupInput, + DeleteLocalGatewayVirtualInterfaceGroupInputDict, DeleteLocalGatewayVirtualInterfaceGroupOutput, DeleteLocalGatewayVirtualInterfaceInput, + DeleteLocalGatewayVirtualInterfaceInputDict, DeleteLocalGatewayVirtualInterfaceOutput, DeleteManagedPrefixListInput, + DeleteManagedPrefixListInputDict, DeleteManagedPrefixListOutput, DeleteNatGatewayInput, + DeleteNatGatewayInputDict, DeleteNatGatewayOutput, DeleteNetworkAclEntryInput, + DeleteNetworkAclEntryInputDict, DeleteNetworkAclEntryOutput, DeleteNetworkAclInput, + DeleteNetworkAclInputDict, DeleteNetworkAclOutput, DeleteNetworkInsightsAccessScopeAnalysisInput, + DeleteNetworkInsightsAccessScopeAnalysisInputDict, DeleteNetworkInsightsAccessScopeAnalysisOutput, DeleteNetworkInsightsAccessScopeInput, + DeleteNetworkInsightsAccessScopeInputDict, DeleteNetworkInsightsAccessScopeOutput, DeleteNetworkInsightsAnalysisInput, + DeleteNetworkInsightsAnalysisInputDict, DeleteNetworkInsightsAnalysisOutput, DeleteNetworkInsightsPathInput, + DeleteNetworkInsightsPathInputDict, DeleteNetworkInsightsPathOutput, DeleteNetworkInterfaceInput, + DeleteNetworkInterfaceInputDict, DeleteNetworkInterfaceOutput, DeleteNetworkInterfacePermissionInput, + DeleteNetworkInterfacePermissionInputDict, DeleteNetworkInterfacePermissionOutput, DeletePlacementGroupInput, + DeletePlacementGroupInputDict, DeletePlacementGroupOutput, DeletePublicIpv4PoolInput, + DeletePublicIpv4PoolInputDict, DeletePublicIpv4PoolOutput, DeleteQueuedReservedInstancesError, DeleteQueuedReservedInstancesInput, + DeleteQueuedReservedInstancesInputDict, DeleteQueuedReservedInstancesOutput, DeleteRouteInput, + DeleteRouteInputDict, DeleteRouteOutput, DeleteRouteServerEndpointInput, + DeleteRouteServerEndpointInputDict, DeleteRouteServerEndpointOutput, DeleteRouteServerInput, + DeleteRouteServerInputDict, DeleteRouteServerOutput, DeleteRouteServerPeerInput, + DeleteRouteServerPeerInputDict, DeleteRouteServerPeerOutput, DeleteRouteTableInput, + DeleteRouteTableInputDict, DeleteRouteTableOutput, DeleteSecondaryNetworkInput, + DeleteSecondaryNetworkInputDict, DeleteSecondaryNetworkOutput, DeleteSecondarySubnetInput, + DeleteSecondarySubnetInputDict, DeleteSecondarySubnetOutput, DeleteSecurityGroupInput, + DeleteSecurityGroupInputDict, DeleteSecurityGroupOutput, DeleteSnapshotInput, + DeleteSnapshotInputDict, DeleteSnapshotOutput, DeleteSnapshotReturnCode, DeleteSpotDatafeedSubscriptionInput, + DeleteSpotDatafeedSubscriptionInputDict, DeleteSpotDatafeedSubscriptionOutput, DeleteSubnetCidrReservationInput, + DeleteSubnetCidrReservationInputDict, DeleteSubnetCidrReservationOutput, DeleteSubnetInput, + DeleteSubnetInputDict, DeleteSubnetOutput, DeleteTagsInput, + DeleteTagsInputDict, DeleteTagsOutput, DeleteTrafficMirrorFilterInput, + DeleteTrafficMirrorFilterInputDict, DeleteTrafficMirrorFilterOutput, DeleteTrafficMirrorFilterRuleInput, + DeleteTrafficMirrorFilterRuleInputDict, DeleteTrafficMirrorFilterRuleOutput, DeleteTrafficMirrorSessionInput, + DeleteTrafficMirrorSessionInputDict, DeleteTrafficMirrorSessionOutput, DeleteTrafficMirrorTargetInput, + DeleteTrafficMirrorTargetInputDict, DeleteTrafficMirrorTargetOutput, DeleteTransitGatewayClientVpnAttachmentInput, + DeleteTransitGatewayClientVpnAttachmentInputDict, DeleteTransitGatewayClientVpnAttachmentOutput, DeleteTransitGatewayConnectInput, + DeleteTransitGatewayConnectInputDict, DeleteTransitGatewayConnectOutput, DeleteTransitGatewayConnectPeerInput, + DeleteTransitGatewayConnectPeerInputDict, DeleteTransitGatewayConnectPeerOutput, DeleteTransitGatewayInput, + DeleteTransitGatewayInputDict, DeleteTransitGatewayMeteringPolicyEntryInput, + DeleteTransitGatewayMeteringPolicyEntryInputDict, DeleteTransitGatewayMeteringPolicyEntryOutput, DeleteTransitGatewayMeteringPolicyInput, + DeleteTransitGatewayMeteringPolicyInputDict, DeleteTransitGatewayMeteringPolicyOutput, DeleteTransitGatewayMulticastDomainInput, + DeleteTransitGatewayMulticastDomainInputDict, DeleteTransitGatewayMulticastDomainOutput, DeleteTransitGatewayOutput, DeleteTransitGatewayPeeringAttachmentInput, + DeleteTransitGatewayPeeringAttachmentInputDict, DeleteTransitGatewayPeeringAttachmentOutput, DeleteTransitGatewayPolicyTableEntryInput, + DeleteTransitGatewayPolicyTableEntryInputDict, DeleteTransitGatewayPolicyTableEntryOutput, DeleteTransitGatewayPolicyTableInput, + DeleteTransitGatewayPolicyTableInputDict, DeleteTransitGatewayPolicyTableOutput, DeleteTransitGatewayPrefixListReferenceInput, + DeleteTransitGatewayPrefixListReferenceInputDict, DeleteTransitGatewayPrefixListReferenceOutput, DeleteTransitGatewayRouteInput, + DeleteTransitGatewayRouteInputDict, DeleteTransitGatewayRouteOutput, DeleteTransitGatewayRouteTableAnnouncementInput, + DeleteTransitGatewayRouteTableAnnouncementInputDict, DeleteTransitGatewayRouteTableAnnouncementOutput, DeleteTransitGatewayRouteTableInput, + DeleteTransitGatewayRouteTableInputDict, DeleteTransitGatewayRouteTableOutput, DeleteTransitGatewayVpcAttachmentInput, + DeleteTransitGatewayVpcAttachmentInputDict, DeleteTransitGatewayVpcAttachmentOutput, DeleteVerifiedAccessEndpointInput, + DeleteVerifiedAccessEndpointInputDict, DeleteVerifiedAccessEndpointOutput, DeleteVerifiedAccessGroupInput, + DeleteVerifiedAccessGroupInputDict, DeleteVerifiedAccessGroupOutput, DeleteVerifiedAccessInstanceInput, + DeleteVerifiedAccessInstanceInputDict, DeleteVerifiedAccessInstanceOutput, DeleteVerifiedAccessTrustProviderInput, + DeleteVerifiedAccessTrustProviderInputDict, DeleteVerifiedAccessTrustProviderOutput, DeleteVolumeInput, + DeleteVolumeInputDict, DeleteVolumeOutput, DeleteVpcBlockPublicAccessExclusionInput, + DeleteVpcBlockPublicAccessExclusionInputDict, DeleteVpcBlockPublicAccessExclusionOutput, DeleteVpcEncryptionControlInput, + DeleteVpcEncryptionControlInputDict, DeleteVpcEncryptionControlOutput, DeleteVpcEndpointConnectionNotificationsInput, + DeleteVpcEndpointConnectionNotificationsInputDict, DeleteVpcEndpointConnectionNotificationsOutput, DeleteVpcEndpointServiceConfigurationsInput, + DeleteVpcEndpointServiceConfigurationsInputDict, DeleteVpcEndpointServiceConfigurationsOutput, DeleteVpcEndpointsInput, + DeleteVpcEndpointsInputDict, DeleteVpcEndpointsOutput, DeleteVpcInput, + DeleteVpcInputDict, DeleteVpcOutput, DeleteVpcPeeringConnectionInput, + DeleteVpcPeeringConnectionInputDict, DeleteVpcPeeringConnectionOutput, DeleteVpnConcentratorInput, + DeleteVpnConcentratorInputDict, DeleteVpnConcentratorOutput, DeleteVpnConnectionInput, + DeleteVpnConnectionInputDict, DeleteVpnConnectionOutput, DeleteVpnConnectionRouteInput, + DeleteVpnConnectionRouteInputDict, DeleteVpnConnectionRouteOutput, DeleteVpnGatewayInput, + DeleteVpnGatewayInputDict, DeleteVpnGatewayOutput, DeprecationTimeCondition, DeprecationTimeConditionRequest, + DeprecationTimeConditionRequestDict, DeprovisionByoipCidrInput, + DeprovisionByoipCidrInputDict, DeprovisionByoipCidrOutput, DeprovisionIpamByoasnInput, + DeprovisionIpamByoasnInputDict, DeprovisionIpamByoasnOutput, DeprovisionIpamPoolCidrInput, + DeprovisionIpamPoolCidrInputDict, DeprovisionIpamPoolCidrOutput, DeprovisionPublicIpv4PoolCidrInput, + DeprovisionPublicIpv4PoolCidrInputDict, DeprovisionPublicIpv4PoolCidrOutput, DeregisterImageInput, + DeregisterImageInputDict, DeregisterImageOutput, DeregisterInstanceEventNotificationAttributesInput, + DeregisterInstanceEventNotificationAttributesInputDict, DeregisterInstanceEventNotificationAttributesOutput, DeregisterInstanceTagAttributeRequest, + DeregisterInstanceTagAttributeRequestDict, DeregisterTransitGatewayMulticastGroupMembersInput, + DeregisterTransitGatewayMulticastGroupMembersInputDict, DeregisterTransitGatewayMulticastGroupMembersOutput, DeregisterTransitGatewayMulticastGroupSourcesInput, + DeregisterTransitGatewayMulticastGroupSourcesInputDict, DeregisterTransitGatewayMulticastGroupSourcesOutput, DescribeAccountAttributesInput, + DescribeAccountAttributesInputDict, DescribeAccountAttributesOutput, DescribeAccountVpcEncryptionControlInput, + DescribeAccountVpcEncryptionControlInputDict, DescribeAccountVpcEncryptionControlOutput, DescribeAddressTransfersInput, + DescribeAddressTransfersInputDict, DescribeAddressTransfersOutput, DescribeAddressesAttributeInput, + DescribeAddressesAttributeInputDict, DescribeAddressesAttributeOutput, DescribeAddressesInput, + DescribeAddressesInputDict, DescribeAddressesOutput, DescribeAggregateIdFormatInput, + DescribeAggregateIdFormatInputDict, DescribeAggregateIdFormatOutput, DescribeApplicationStatusCheckAssociationsInput, + DescribeApplicationStatusCheckAssociationsInputDict, DescribeApplicationStatusCheckAssociationsOutput, DescribeApplicationStatusChecksInput, + DescribeApplicationStatusChecksInputDict, DescribeApplicationStatusChecksOutput, DescribeApplicationStatusInput, + DescribeApplicationStatusInputDict, DescribeApplicationStatusOutput, DescribeAvailabilityZonesInput, + DescribeAvailabilityZonesInputDict, DescribeAvailabilityZonesOutput, DescribeAwsNetworkPerformanceMetricSubscriptionsInput, + DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict, DescribeAwsNetworkPerformanceMetricSubscriptionsOutput, DescribeBundleTasksInput, + DescribeBundleTasksInputDict, DescribeBundleTasksOutput, DescribeByoipCidrsInput, + DescribeByoipCidrsInputDict, DescribeByoipCidrsOutput, DescribeCapacityBlockExtensionHistoryInput, + DescribeCapacityBlockExtensionHistoryInputDict, DescribeCapacityBlockExtensionHistoryOutput, DescribeCapacityBlockExtensionOfferingsInput, + DescribeCapacityBlockExtensionOfferingsInputDict, DescribeCapacityBlockExtensionOfferingsOutput, DescribeCapacityBlockOfferingsInput, + DescribeCapacityBlockOfferingsInputDict, DescribeCapacityBlockOfferingsOutput, DescribeCapacityBlockStatusInput, + DescribeCapacityBlockStatusInputDict, DescribeCapacityBlockStatusOutput, DescribeCapacityBlocksInput, + DescribeCapacityBlocksInputDict, DescribeCapacityBlocksOutput, DescribeCapacityManagerDataExportsInput, + DescribeCapacityManagerDataExportsInputDict, DescribeCapacityManagerDataExportsOutput, DescribeCapacityReservationBillingRequestsInput, + DescribeCapacityReservationBillingRequestsInputDict, DescribeCapacityReservationBillingRequestsOutput, DescribeCapacityReservationCancellationQuotesInput, + DescribeCapacityReservationCancellationQuotesInputDict, DescribeCapacityReservationCancellationQuotesOutput, DescribeCapacityReservationDateChangeQuotesInput, + DescribeCapacityReservationDateChangeQuotesInputDict, DescribeCapacityReservationDateChangeQuotesOutput, DescribeCapacityReservationFleetsInput, + DescribeCapacityReservationFleetsInputDict, DescribeCapacityReservationFleetsOutput, DescribeCapacityReservationTopologyInput, + DescribeCapacityReservationTopologyInputDict, DescribeCapacityReservationTopologyOutput, DescribeCapacityReservationsInput, + DescribeCapacityReservationsInputDict, DescribeCapacityReservationsOutput, DescribeCarrierGatewaysInput, + DescribeCarrierGatewaysInputDict, DescribeCarrierGatewaysOutput, DescribeClassicLinkInstancesInput, + DescribeClassicLinkInstancesInputDict, DescribeClassicLinkInstancesOutput, DescribeClientVpnAuthorizationRulesInput, + DescribeClientVpnAuthorizationRulesInputDict, DescribeClientVpnAuthorizationRulesOutput, DescribeClientVpnConnectionsInput, + DescribeClientVpnConnectionsInputDict, DescribeClientVpnConnectionsOutput, DescribeClientVpnEndpointsInput, + DescribeClientVpnEndpointsInputDict, DescribeClientVpnEndpointsOutput, DescribeClientVpnRoutesInput, + DescribeClientVpnRoutesInputDict, DescribeClientVpnRoutesOutput, DescribeClientVpnTargetNetworksInput, + DescribeClientVpnTargetNetworksInputDict, DescribeClientVpnTargetNetworksOutput, DescribeCoipPoolsInput, + DescribeCoipPoolsInputDict, DescribeCoipPoolsOutput, DescribeConversionTasksInput, + DescribeConversionTasksInputDict, DescribeConversionTasksOutput, DescribeCustomerGatewaysInput, + DescribeCustomerGatewaysInputDict, DescribeCustomerGatewaysOutput, DescribeDeclarativePoliciesReportsInput, + DescribeDeclarativePoliciesReportsInputDict, DescribeDeclarativePoliciesReportsOutput, DescribeDhcpOptionsInput, + DescribeDhcpOptionsInputDict, DescribeDhcpOptionsOutput, DescribeEgressOnlyInternetGatewaysInput, + DescribeEgressOnlyInternetGatewaysInputDict, DescribeEgressOnlyInternetGatewaysOutput, DescribeElasticGpusInput, + DescribeElasticGpusInputDict, DescribeElasticGpusOutput, DescribeExportImageTasksInput, + DescribeExportImageTasksInputDict, DescribeExportImageTasksOutput, DescribeExportTasksInput, + DescribeExportTasksInputDict, DescribeExportTasksOutput, DescribeFastLaunchImagesInput, + DescribeFastLaunchImagesInputDict, DescribeFastLaunchImagesOutput, DescribeFastLaunchImagesSuccessItem, DescribeFastSnapshotRestoreSuccessItem, DescribeFastSnapshotRestoresInput, + DescribeFastSnapshotRestoresInputDict, DescribeFastSnapshotRestoresOutput, DescribeFleetError, DescribeFleetHistoryInput, + DescribeFleetHistoryInputDict, DescribeFleetHistoryOutput, DescribeFleetInstancesInput, + DescribeFleetInstancesInputDict, DescribeFleetInstancesOutput, DescribeFleetsInput, + DescribeFleetsInputDict, DescribeFleetsInstances, DescribeFleetsOutput, DescribeFlowLogsInput, + DescribeFlowLogsInputDict, DescribeFlowLogsOutput, DescribeFpgaImageAttributeInput, + DescribeFpgaImageAttributeInputDict, DescribeFpgaImageAttributeOutput, DescribeFpgaImagesInput, + DescribeFpgaImagesInputDict, DescribeFpgaImagesOutput, DescribeHostReservationOfferingsInput, + DescribeHostReservationOfferingsInputDict, DescribeHostReservationOfferingsOutput, DescribeHostReservationsInput, + DescribeHostReservationsInputDict, DescribeHostReservationsOutput, DescribeHostsInput, + DescribeHostsInputDict, DescribeHostsOutput, DescribeIamInstanceProfileAssociationsInput, + DescribeIamInstanceProfileAssociationsInputDict, DescribeIamInstanceProfileAssociationsOutput, DescribeIdFormatInput, + DescribeIdFormatInputDict, DescribeIdFormatOutput, DescribeIdentityIdFormatInput, + DescribeIdentityIdFormatInputDict, DescribeIdentityIdFormatOutput, DescribeImageAttributeInput, + DescribeImageAttributeInputDict, DescribeImageAttributeOutput, DescribeImageReferencesInput, + DescribeImageReferencesInputDict, DescribeImageReferencesOutput, DescribeImageUsageReportEntriesInput, + DescribeImageUsageReportEntriesInputDict, DescribeImageUsageReportEntriesOutput, DescribeImageUsageReportsInput, + DescribeImageUsageReportsInputDict, DescribeImageUsageReportsOutput, DescribeImagesInput, + DescribeImagesInputDict, DescribeImagesOutput, DescribeImportImageTasksInput, + DescribeImportImageTasksInputDict, DescribeImportImageTasksOutput, DescribeImportSnapshotTasksInput, + DescribeImportSnapshotTasksInputDict, DescribeImportSnapshotTasksOutput, DescribeInstanceAttributeInput, + DescribeInstanceAttributeInputDict, DescribeInstanceAttributeOutput, DescribeInstanceConnectEndpointsInput, + DescribeInstanceConnectEndpointsInputDict, DescribeInstanceConnectEndpointsOutput, DescribeInstanceCreditSpecificationsInput, + DescribeInstanceCreditSpecificationsInputDict, DescribeInstanceCreditSpecificationsOutput, DescribeInstanceEventNotificationAttributesInput, + DescribeInstanceEventNotificationAttributesInputDict, DescribeInstanceEventNotificationAttributesOutput, DescribeInstanceEventWindowsInput, + DescribeInstanceEventWindowsInputDict, DescribeInstanceEventWindowsOutput, DescribeInstanceImageMetadataInput, + DescribeInstanceImageMetadataInputDict, DescribeInstanceImageMetadataOutput, DescribeInstanceSqlHaHistoryStatesInput, + DescribeInstanceSqlHaHistoryStatesInputDict, DescribeInstanceSqlHaHistoryStatesOutput, DescribeInstanceSqlHaStatesInput, + DescribeInstanceSqlHaStatesInputDict, DescribeInstanceSqlHaStatesOutput, DescribeInstanceStatusInput, + DescribeInstanceStatusInputDict, DescribeInstanceStatusOutput, DescribeInstanceTopologyInput, + DescribeInstanceTopologyInputDict, DescribeInstanceTopologyOutput, DescribeInstanceTypeOfferingsInput, + DescribeInstanceTypeOfferingsInputDict, DescribeInstanceTypeOfferingsOutput, DescribeInstanceTypesInput, + DescribeInstanceTypesInputDict, DescribeInstanceTypesOutput, DescribeInstancesInput, + DescribeInstancesInputDict, DescribeInstancesOutput, DescribeInternetGatewaysInput, + DescribeInternetGatewaysInputDict, DescribeInternetGatewaysOutput, DescribeIpamByoasnInput, + DescribeIpamByoasnInputDict, DescribeIpamByoasnOutput, DescribeIpamExternalResourceVerificationTokensInput, + DescribeIpamExternalResourceVerificationTokensInputDict, DescribeIpamExternalResourceVerificationTokensOutput, DescribeIpamInternetRegistryAssociationsInput, + DescribeIpamInternetRegistryAssociationsInputDict, DescribeIpamInternetRegistryAssociationsOutput, DescribeIpamPoliciesInput, + DescribeIpamPoliciesInputDict, DescribeIpamPoliciesOutput, DescribeIpamPoolAllocationsInput, + DescribeIpamPoolAllocationsInputDict, DescribeIpamPoolAllocationsOutput, DescribeIpamPoolsInput, + DescribeIpamPoolsInputDict, DescribeIpamPoolsOutput, DescribeIpamPrefixListResolverTargetsInput, + DescribeIpamPrefixListResolverTargetsInputDict, DescribeIpamPrefixListResolverTargetsOutput, DescribeIpamPrefixListResolversInput, + DescribeIpamPrefixListResolversInputDict, DescribeIpamPrefixListResolversOutput, DescribeIpamResourceDiscoveriesInput, + DescribeIpamResourceDiscoveriesInputDict, DescribeIpamResourceDiscoveriesOutput, DescribeIpamResourceDiscoveryAssociationsInput, + DescribeIpamResourceDiscoveryAssociationsInputDict, DescribeIpamResourceDiscoveryAssociationsOutput, DescribeIpamScopesInput, + DescribeIpamScopesInputDict, DescribeIpamScopesOutput, DescribeIpamsInput, + DescribeIpamsInputDict, DescribeIpamsOutput, DescribeIpv6PoolsInput, + DescribeIpv6PoolsInputDict, DescribeIpv6PoolsOutput, DescribeKeyPairsInput, + DescribeKeyPairsInputDict, DescribeKeyPairsOutput, DescribeLaunchTemplateVersionsInput, + DescribeLaunchTemplateVersionsInputDict, DescribeLaunchTemplateVersionsOutput, DescribeLaunchTemplatesInput, + DescribeLaunchTemplatesInputDict, DescribeLaunchTemplatesOutput, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, + DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, DescribeLocalGatewayRouteTableVpcAssociationsInput, + DescribeLocalGatewayRouteTableVpcAssociationsInputDict, DescribeLocalGatewayRouteTableVpcAssociationsOutput, DescribeLocalGatewayRouteTablesInput, + DescribeLocalGatewayRouteTablesInputDict, DescribeLocalGatewayRouteTablesOutput, DescribeLocalGatewayVirtualInterfaceGroupsInput, + DescribeLocalGatewayVirtualInterfaceGroupsInputDict, DescribeLocalGatewayVirtualInterfaceGroupsOutput, DescribeLocalGatewayVirtualInterfacesInput, + DescribeLocalGatewayVirtualInterfacesInputDict, DescribeLocalGatewayVirtualInterfacesOutput, DescribeLocalGatewaysInput, + DescribeLocalGatewaysInputDict, DescribeLocalGatewaysOutput, DescribeLockedSnapshotsInput, + DescribeLockedSnapshotsInputDict, DescribeLockedSnapshotsOutput, DescribeMacHostsInput, + DescribeMacHostsInputDict, DescribeMacHostsOutput, DescribeMacModificationTasksInput, + DescribeMacModificationTasksInputDict, DescribeMacModificationTasksOutput, DescribeManagedPrefixListsInput, + DescribeManagedPrefixListsInputDict, DescribeManagedPrefixListsOutput, DescribeMovingAddressesInput, + DescribeMovingAddressesInputDict, DescribeMovingAddressesOutput, DescribeNatGatewaysInput, + DescribeNatGatewaysInputDict, DescribeNatGatewaysOutput, DescribeNetworkAclsInput, + DescribeNetworkAclsInputDict, DescribeNetworkAclsOutput, DescribeNetworkInsightsAccessScopeAnalysesInput, + DescribeNetworkInsightsAccessScopeAnalysesInputDict, DescribeNetworkInsightsAccessScopeAnalysesOutput, DescribeNetworkInsightsAccessScopesInput, + DescribeNetworkInsightsAccessScopesInputDict, DescribeNetworkInsightsAccessScopesOutput, DescribeNetworkInsightsAnalysesInput, + DescribeNetworkInsightsAnalysesInputDict, DescribeNetworkInsightsAnalysesOutput, DescribeNetworkInsightsPathsInput, + DescribeNetworkInsightsPathsInputDict, DescribeNetworkInsightsPathsOutput, DescribeNetworkInterfaceAttributeInput, + DescribeNetworkInterfaceAttributeInputDict, DescribeNetworkInterfaceAttributeOutput, DescribeNetworkInterfacePermissionsInput, + DescribeNetworkInterfacePermissionsInputDict, DescribeNetworkInterfacePermissionsOutput, DescribeNetworkInterfacesInput, + DescribeNetworkInterfacesInputDict, DescribeNetworkInterfacesOutput, DescribeOutpostLagsInput, + DescribeOutpostLagsInputDict, DescribeOutpostLagsOutput, DescribePlacementGroupsInput, + DescribePlacementGroupsInputDict, DescribePlacementGroupsOutput, DescribePrefixListsInput, + DescribePrefixListsInputDict, DescribePrefixListsOutput, DescribePrincipalIdFormatInput, + DescribePrincipalIdFormatInputDict, DescribePrincipalIdFormatOutput, DescribePublicIpv4PoolsInput, + DescribePublicIpv4PoolsInputDict, DescribePublicIpv4PoolsOutput, DescribeRegionsInput, + DescribeRegionsInputDict, DescribeRegionsOutput, DescribeReplaceRootVolumeTasksInput, + DescribeReplaceRootVolumeTasksInputDict, DescribeReplaceRootVolumeTasksOutput, DescribeReservedInstancesInput, + DescribeReservedInstancesInputDict, DescribeReservedInstancesListingsInput, + DescribeReservedInstancesListingsInputDict, DescribeReservedInstancesListingsOutput, DescribeReservedInstancesModificationsInput, + DescribeReservedInstancesModificationsInputDict, DescribeReservedInstancesModificationsOutput, DescribeReservedInstancesOfferingsInput, + DescribeReservedInstancesOfferingsInputDict, DescribeReservedInstancesOfferingsOutput, DescribeReservedInstancesOutput, DescribeRouteServerEndpointsInput, + DescribeRouteServerEndpointsInputDict, DescribeRouteServerEndpointsOutput, DescribeRouteServerPeersInput, + DescribeRouteServerPeersInputDict, DescribeRouteServerPeersOutput, DescribeRouteServersInput, + DescribeRouteServersInputDict, DescribeRouteServersOutput, DescribeRouteTablesInput, + DescribeRouteTablesInputDict, DescribeRouteTablesOutput, DescribeScheduledInstanceAvailabilityInput, + DescribeScheduledInstanceAvailabilityInputDict, DescribeScheduledInstanceAvailabilityOutput, DescribeScheduledInstancesInput, + DescribeScheduledInstancesInputDict, DescribeScheduledInstancesOutput, DescribeSecondaryInterfacesInput, + DescribeSecondaryInterfacesInputDict, DescribeSecondaryInterfacesOutput, DescribeSecondaryNetworksInput, + DescribeSecondaryNetworksInputDict, DescribeSecondaryNetworksOutput, DescribeSecondarySubnetsInput, + DescribeSecondarySubnetsInputDict, DescribeSecondarySubnetsOutput, DescribeSecurityGroupReferencesInput, + DescribeSecurityGroupReferencesInputDict, DescribeSecurityGroupReferencesOutput, DescribeSecurityGroupRulesInput, + DescribeSecurityGroupRulesInputDict, DescribeSecurityGroupRulesOutput, DescribeSecurityGroupVpcAssociationsInput, + DescribeSecurityGroupVpcAssociationsInputDict, DescribeSecurityGroupVpcAssociationsOutput, DescribeSecurityGroupsInput, + DescribeSecurityGroupsInputDict, DescribeSecurityGroupsOutput, DescribeServiceLinkVirtualInterfacesInput, + DescribeServiceLinkVirtualInterfacesInputDict, DescribeServiceLinkVirtualInterfacesOutput, DescribeSnapshotAttributeInput, + DescribeSnapshotAttributeInputDict, DescribeSnapshotAttributeOutput, DescribeSnapshotTierStatusInput, + DescribeSnapshotTierStatusInputDict, DescribeSnapshotTierStatusOutput, DescribeSnapshotsInput, + DescribeSnapshotsInputDict, DescribeSnapshotsOutput, DescribeSpotDatafeedSubscriptionInput, + DescribeSpotDatafeedSubscriptionInputDict, DescribeSpotDatafeedSubscriptionOutput, DescribeSpotFleetInstancesInput, + DescribeSpotFleetInstancesInputDict, DescribeSpotFleetInstancesOutput, DescribeSpotFleetRequestHistoryInput, + DescribeSpotFleetRequestHistoryInputDict, DescribeSpotFleetRequestHistoryOutput, DescribeSpotFleetRequestsInput, + DescribeSpotFleetRequestsInputDict, DescribeSpotFleetRequestsOutput, DescribeSpotInstanceRequestsInput, + DescribeSpotInstanceRequestsInputDict, DescribeSpotInstanceRequestsOutput, DescribeSpotPriceHistoryInput, + DescribeSpotPriceHistoryInputDict, DescribeSpotPriceHistoryOutput, DescribeStaleSecurityGroupsInput, + DescribeStaleSecurityGroupsInputDict, DescribeStaleSecurityGroupsOutput, DescribeStoreImageTasksInput, + DescribeStoreImageTasksInputDict, DescribeStoreImageTasksOutput, DescribeSubnetsInput, + DescribeSubnetsInputDict, DescribeSubnetsOutput, DescribeTagsInput, + DescribeTagsInputDict, DescribeTagsOutput, DescribeTrafficMirrorFilterRulesInput, + DescribeTrafficMirrorFilterRulesInputDict, DescribeTrafficMirrorFilterRulesOutput, DescribeTrafficMirrorFiltersInput, + DescribeTrafficMirrorFiltersInputDict, DescribeTrafficMirrorFiltersOutput, DescribeTrafficMirrorSessionsInput, + DescribeTrafficMirrorSessionsInputDict, DescribeTrafficMirrorSessionsOutput, DescribeTrafficMirrorTargetsInput, + DescribeTrafficMirrorTargetsInputDict, DescribeTrafficMirrorTargetsOutput, DescribeTransitGatewayAttachmentsInput, + DescribeTransitGatewayAttachmentsInputDict, DescribeTransitGatewayAttachmentsOutput, DescribeTransitGatewayConnectPeersInput, + DescribeTransitGatewayConnectPeersInputDict, DescribeTransitGatewayConnectPeersOutput, DescribeTransitGatewayConnectsInput, + DescribeTransitGatewayConnectsInputDict, DescribeTransitGatewayConnectsOutput, DescribeTransitGatewayMeteringPoliciesInput, + DescribeTransitGatewayMeteringPoliciesInputDict, DescribeTransitGatewayMeteringPoliciesOutput, DescribeTransitGatewayMulticastDomainsInput, + DescribeTransitGatewayMulticastDomainsInputDict, DescribeTransitGatewayMulticastDomainsOutput, DescribeTransitGatewayPeeringAttachmentsInput, + DescribeTransitGatewayPeeringAttachmentsInputDict, DescribeTransitGatewayPeeringAttachmentsOutput, DescribeTransitGatewayPolicyTablesInput, + DescribeTransitGatewayPolicyTablesInputDict, DescribeTransitGatewayPolicyTablesOutput, DescribeTransitGatewayRouteTableAnnouncementsInput, + DescribeTransitGatewayRouteTableAnnouncementsInputDict, DescribeTransitGatewayRouteTableAnnouncementsOutput, DescribeTransitGatewayRouteTablesInput, + DescribeTransitGatewayRouteTablesInputDict, DescribeTransitGatewayRouteTablesOutput, DescribeTransitGatewayVpcAttachmentsInput, + DescribeTransitGatewayVpcAttachmentsInputDict, DescribeTransitGatewayVpcAttachmentsOutput, DescribeTransitGatewaysInput, + DescribeTransitGatewaysInputDict, DescribeTransitGatewaysOutput, DescribeTrunkInterfaceAssociationsInput, + DescribeTrunkInterfaceAssociationsInputDict, DescribeTrunkInterfaceAssociationsOutput, DescribeVerifiedAccessEndpointsInput, + DescribeVerifiedAccessEndpointsInputDict, DescribeVerifiedAccessEndpointsOutput, DescribeVerifiedAccessGroupsInput, + DescribeVerifiedAccessGroupsInputDict, DescribeVerifiedAccessGroupsOutput, DescribeVerifiedAccessInstanceLoggingConfigurationsInput, + DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict, DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, DescribeVerifiedAccessInstancesInput, + DescribeVerifiedAccessInstancesInputDict, DescribeVerifiedAccessInstancesOutput, DescribeVerifiedAccessTrustProvidersInput, + DescribeVerifiedAccessTrustProvidersInputDict, DescribeVerifiedAccessTrustProvidersOutput, DescribeVolumeAttributeInput, + DescribeVolumeAttributeInputDict, DescribeVolumeAttributeOutput, DescribeVolumeStatusInput, + DescribeVolumeStatusInputDict, DescribeVolumeStatusOutput, DescribeVolumesInput, + DescribeVolumesInputDict, DescribeVolumesModificationsInput, + DescribeVolumesModificationsInputDict, DescribeVolumesModificationsOutput, DescribeVolumesOutput, DescribeVpcAttributeInput, + DescribeVpcAttributeInputDict, DescribeVpcAttributeOutput, DescribeVpcBlockPublicAccessExclusionsInput, + DescribeVpcBlockPublicAccessExclusionsInputDict, DescribeVpcBlockPublicAccessExclusionsOutput, DescribeVpcBlockPublicAccessOptionsInput, + DescribeVpcBlockPublicAccessOptionsInputDict, DescribeVpcBlockPublicAccessOptionsOutput, DescribeVpcClassicLinkDnsSupportInput, + DescribeVpcClassicLinkDnsSupportInputDict, DescribeVpcClassicLinkDnsSupportOutput, DescribeVpcClassicLinkInput, + DescribeVpcClassicLinkInputDict, DescribeVpcClassicLinkOutput, DescribeVpcEncryptionControlsInput, + DescribeVpcEncryptionControlsInputDict, DescribeVpcEncryptionControlsOutput, DescribeVpcEndpointAssociationsInput, + DescribeVpcEndpointAssociationsInputDict, DescribeVpcEndpointAssociationsOutput, DescribeVpcEndpointConnectionNotificationsInput, + DescribeVpcEndpointConnectionNotificationsInputDict, DescribeVpcEndpointConnectionNotificationsOutput, DescribeVpcEndpointConnectionsInput, + DescribeVpcEndpointConnectionsInputDict, DescribeVpcEndpointConnectionsOutput, DescribeVpcEndpointServiceConfigurationsInput, + DescribeVpcEndpointServiceConfigurationsInputDict, DescribeVpcEndpointServiceConfigurationsOutput, DescribeVpcEndpointServicePermissionsInput, + DescribeVpcEndpointServicePermissionsInputDict, DescribeVpcEndpointServicePermissionsOutput, DescribeVpcEndpointServicesInput, + DescribeVpcEndpointServicesInputDict, DescribeVpcEndpointServicesOutput, DescribeVpcEndpointsInput, + DescribeVpcEndpointsInputDict, DescribeVpcEndpointsOutput, DescribeVpcPeeringConnectionsInput, + DescribeVpcPeeringConnectionsInputDict, DescribeVpcPeeringConnectionsOutput, DescribeVpcsInput, + DescribeVpcsInputDict, DescribeVpcsOutput, DescribeVpnConcentratorsInput, + DescribeVpnConcentratorsInputDict, DescribeVpnConcentratorsOutput, DescribeVpnConnectionsInput, + DescribeVpnConnectionsInputDict, DescribeVpnConnectionsOutput, DescribeVpnGatewaysInput, + DescribeVpnGatewaysInputDict, DescribeVpnGatewaysOutput, DestinationOptionsRequest, + DestinationOptionsRequestDict, DestinationOptionsResponse, DetachClassicLinkVpcInput, + DetachClassicLinkVpcInputDict, DetachClassicLinkVpcOutput, DetachImageWatermarkInput, + DetachImageWatermarkInputDict, DetachImageWatermarkOutput, DetachInternetGatewayInput, + DetachInternetGatewayInputDict, DetachInternetGatewayOutput, DetachNetworkInterfaceInput, + DetachNetworkInterfaceInputDict, DetachNetworkInterfaceOutput, DetachVerifiedAccessTrustProviderInput, + DetachVerifiedAccessTrustProviderInputDict, DetachVerifiedAccessTrustProviderOutput, DetachVolumeInput, + DetachVolumeInputDict, DetachVolumeOutput, DetachVpnGatewayInput, + DetachVpnGatewayInputDict, DetachVpnGatewayOutput, DeviceOptions, DevicePostureOptions, + DevicePostureOptionsDict, DevicePostureResponseOptions, DhcpConfiguration, DhcpOptions, DimensionCondition, + DimensionConditionDict, DirectoryServiceAuthentication, DirectoryServiceAuthenticationRequest, + DirectoryServiceAuthenticationRequestDict, DisableAddressTransferInput, + DisableAddressTransferInputDict, DisableAddressTransferOutput, DisableAllowedImagesSettingsInput, + DisableAllowedImagesSettingsInputDict, DisableAllowedImagesSettingsOutput, DisableApplicationStatusCheckSuppressionInput, + DisableApplicationStatusCheckSuppressionInputDict, DisableApplicationStatusCheckSuppressionOutput, DisableAwsNetworkPerformanceMetricSubscriptionInput, + DisableAwsNetworkPerformanceMetricSubscriptionInputDict, DisableAwsNetworkPerformanceMetricSubscriptionOutput, DisableCapacityManagerInput, + DisableCapacityManagerInputDict, DisableCapacityManagerOutput, DisableEbsEncryptionByDefaultInput, + DisableEbsEncryptionByDefaultInputDict, DisableEbsEncryptionByDefaultOutput, DisableFastLaunchInput, + DisableFastLaunchInputDict, DisableFastLaunchOutput, DisableFastSnapshotRestoreErrorItem, DisableFastSnapshotRestoreStateError, DisableFastSnapshotRestoreStateErrorItem, DisableFastSnapshotRestoreSuccessItem, DisableFastSnapshotRestoresInput, + DisableFastSnapshotRestoresInputDict, DisableFastSnapshotRestoresOutput, DisableImageBlockPublicAccessInput, + DisableImageBlockPublicAccessInputDict, DisableImageBlockPublicAccessOutput, DisableImageDeprecationInput, + DisableImageDeprecationInputDict, DisableImageDeprecationOutput, DisableImageDeregistrationProtectionInput, + DisableImageDeregistrationProtectionInputDict, DisableImageDeregistrationProtectionOutput, DisableImageInput, + DisableImageInputDict, DisableImageOutput, DisableInstanceSqlHaStandbyDetectionsInput, + DisableInstanceSqlHaStandbyDetectionsInputDict, DisableInstanceSqlHaStandbyDetectionsOutput, DisableIpamOrganizationAdminAccountInput, + DisableIpamOrganizationAdminAccountInputDict, DisableIpamOrganizationAdminAccountOutput, DisableIpamPolicyInput, + DisableIpamPolicyInputDict, DisableIpamPolicyOutput, DisableRouteServerPropagationInput, + DisableRouteServerPropagationInputDict, DisableRouteServerPropagationOutput, DisableSerialConsoleAccessInput, + DisableSerialConsoleAccessInputDict, DisableSerialConsoleAccessOutput, DisableSnapshotBlockPublicAccessInput, + DisableSnapshotBlockPublicAccessInputDict, DisableSnapshotBlockPublicAccessOutput, DisableTransitGatewayRouteTablePropagationInput, + DisableTransitGatewayRouteTablePropagationInputDict, DisableTransitGatewayRouteTablePropagationOutput, DisableVgwRoutePropagationInput, + DisableVgwRoutePropagationInputDict, DisableVgwRoutePropagationOutput, DisableVpcClassicLinkDnsSupportInput, + DisableVpcClassicLinkDnsSupportInputDict, DisableVpcClassicLinkDnsSupportOutput, DisableVpcClassicLinkInput, + DisableVpcClassicLinkInputDict, DisableVpcClassicLinkOutput, DisassociateAddressInput, + DisassociateAddressInputDict, DisassociateAddressOutput, DisassociateApplicationStatusCheckInput, + DisassociateApplicationStatusCheckInputDict, DisassociateApplicationStatusCheckOutput, DisassociateCapacityReservationBillingOwnerInput, + DisassociateCapacityReservationBillingOwnerInputDict, DisassociateCapacityReservationBillingOwnerOutput, DisassociateClientVpnTargetNetworkInput, + DisassociateClientVpnTargetNetworkInputDict, DisassociateClientVpnTargetNetworkOutput, DisassociateEnclaveCertificateIamRoleInput, + DisassociateEnclaveCertificateIamRoleInputDict, DisassociateEnclaveCertificateIamRoleOutput, DisassociateIamInstanceProfileInput, + DisassociateIamInstanceProfileInputDict, DisassociateIamInstanceProfileOutput, DisassociateInstanceEventWindowInput, + DisassociateInstanceEventWindowInputDict, DisassociateInstanceEventWindowOutput, DisassociateIpamByoasnInput, + DisassociateIpamByoasnInputDict, DisassociateIpamByoasnOutput, DisassociateIpamResourceDiscoveryInput, + DisassociateIpamResourceDiscoveryInputDict, DisassociateIpamResourceDiscoveryOutput, DisassociateNatGatewayAddressInput, + DisassociateNatGatewayAddressInputDict, DisassociateNatGatewayAddressOutput, DisassociateRouteServerInput, + DisassociateRouteServerInputDict, DisassociateRouteServerOutput, DisassociateRouteTableInput, + DisassociateRouteTableInputDict, DisassociateRouteTableOutput, DisassociateSecurityGroupVpcInput, + DisassociateSecurityGroupVpcInputDict, DisassociateSecurityGroupVpcOutput, DisassociateSubnetCidrBlockInput, + DisassociateSubnetCidrBlockInputDict, DisassociateSubnetCidrBlockOutput, DisassociateTransitGatewayMulticastDomainInput, + DisassociateTransitGatewayMulticastDomainInputDict, DisassociateTransitGatewayMulticastDomainOutput, DisassociateTransitGatewayPolicyTableInput, + DisassociateTransitGatewayPolicyTableInputDict, DisassociateTransitGatewayPolicyTableOutput, DisassociateTransitGatewayRouteTableInput, + DisassociateTransitGatewayRouteTableInputDict, DisassociateTransitGatewayRouteTableOutput, DisassociateTrunkInterfaceInput, + DisassociateTrunkInterfaceInputDict, DisassociateTrunkInterfaceOutput, DisassociateVpcCidrBlockInput, + DisassociateVpcCidrBlockInputDict, DisassociateVpcCidrBlockOutput, DiskImage, DiskImageDescription, DiskImageDetail, + DiskImageDetailDict, + DiskImageDict, DiskImageVolumeDescription, DiskInfo, DnsEntry, DnsOptions, DnsOptionsSpecification, + DnsOptionsSpecificationDict, DnsServersOptionsModifyStructure, + DnsServersOptionsModifyStructureDict, EbsBlockDevice, + EbsBlockDeviceDict, EbsBlockDeviceResponse, EbsCardInfo, EbsInfo, EbsInstanceBlockDevice, EbsInstanceBlockDeviceSpecification, + EbsInstanceBlockDeviceSpecificationDict, EbsOptimizedInfo, EbsStatusDetails, EbsStatusSummary, @@ -1278,119 +1870,174 @@ ElasticGpuAssociation, ElasticGpuHealth, ElasticGpuSpecification, + ElasticGpuSpecificationDict, ElasticGpuSpecificationResponse, ElasticGpus, ElasticInferenceAccelerator, ElasticInferenceAcceleratorAssociation, + ElasticInferenceAcceleratorDict, EnaSrdSpecification, + EnaSrdSpecificationDict, EnaSrdSpecificationRequest, + EnaSrdSpecificationRequestDict, EnaSrdUdpSpecification, + EnaSrdUdpSpecificationDict, EnaSrdUdpSpecificationRequest, + EnaSrdUdpSpecificationRequestDict, EnableAddressTransferInput, + EnableAddressTransferInputDict, EnableAddressTransferOutput, EnableAllowedImagesSettingsInput, + EnableAllowedImagesSettingsInputDict, EnableAllowedImagesSettingsOutput, EnableApplicationStatusCheckSuppressionInput, + EnableApplicationStatusCheckSuppressionInputDict, EnableApplicationStatusCheckSuppressionOutput, EnableAwsNetworkPerformanceMetricSubscriptionInput, + EnableAwsNetworkPerformanceMetricSubscriptionInputDict, EnableAwsNetworkPerformanceMetricSubscriptionOutput, EnableCapacityManagerInput, + EnableCapacityManagerInputDict, EnableCapacityManagerOutput, EnableEbsEncryptionByDefaultInput, + EnableEbsEncryptionByDefaultInputDict, EnableEbsEncryptionByDefaultOutput, EnableFastLaunchInput, + EnableFastLaunchInputDict, EnableFastLaunchOutput, EnableFastSnapshotRestoreErrorItem, EnableFastSnapshotRestoreStateError, EnableFastSnapshotRestoreStateErrorItem, EnableFastSnapshotRestoreSuccessItem, EnableFastSnapshotRestoresInput, + EnableFastSnapshotRestoresInputDict, EnableFastSnapshotRestoresOutput, EnableImageBlockPublicAccessInput, + EnableImageBlockPublicAccessInputDict, EnableImageBlockPublicAccessOutput, EnableImageDeprecationInput, + EnableImageDeprecationInputDict, EnableImageDeprecationOutput, EnableImageDeregistrationProtectionInput, + EnableImageDeregistrationProtectionInputDict, EnableImageDeregistrationProtectionOutput, EnableImageInput, + EnableImageInputDict, EnableImageOutput, EnableInstanceSqlHaStandbyDetectionsInput, + EnableInstanceSqlHaStandbyDetectionsInputDict, EnableInstanceSqlHaStandbyDetectionsOutput, EnableIpamInternetRegistryAssociationInput, + EnableIpamInternetRegistryAssociationInputDict, EnableIpamInternetRegistryAssociationOutput, EnableIpamOrganizationAdminAccountInput, + EnableIpamOrganizationAdminAccountInputDict, EnableIpamOrganizationAdminAccountOutput, EnableIpamPolicyInput, + EnableIpamPolicyInputDict, EnableIpamPolicyOutput, EnableReachabilityAnalyzerOrganizationSharingInput, + EnableReachabilityAnalyzerOrganizationSharingInputDict, EnableReachabilityAnalyzerOrganizationSharingOutput, EnableRouteServerPropagationInput, + EnableRouteServerPropagationInputDict, EnableRouteServerPropagationOutput, EnableSerialConsoleAccessInput, + EnableSerialConsoleAccessInputDict, EnableSerialConsoleAccessOutput, EnableSnapshotBlockPublicAccessInput, + EnableSnapshotBlockPublicAccessInputDict, EnableSnapshotBlockPublicAccessOutput, EnableTransitGatewayRouteTablePropagationInput, + EnableTransitGatewayRouteTablePropagationInputDict, EnableTransitGatewayRouteTablePropagationOutput, EnableVgwRoutePropagationInput, + EnableVgwRoutePropagationInputDict, EnableVgwRoutePropagationOutput, EnableVolumeIOInput, + EnableVolumeIOInputDict, EnableVolumeIOOutput, EnableVpcClassicLinkDnsSupportInput, + EnableVpcClassicLinkDnsSupportInputDict, EnableVpcClassicLinkDnsSupportOutput, EnableVpcClassicLinkInput, + EnableVpcClassicLinkInputDict, EnableVpcClassicLinkOutput, EnclaveOptions, EnclaveOptionsRequest, + EnclaveOptionsRequestDict, EncryptionSupport, EventInformation, Explanation, ExportClientVpnClientCertificateRevocationListInput, + ExportClientVpnClientCertificateRevocationListInputDict, ExportClientVpnClientCertificateRevocationListOutput, ExportClientVpnClientConfigurationInput, + ExportClientVpnClientConfigurationInputDict, ExportClientVpnClientConfigurationOutput, ExportImageInput, + ExportImageInputDict, ExportImageOutput, ExportImageTask, ExportTask, ExportTaskS3Location, ExportTaskS3LocationRequest, + ExportTaskS3LocationRequestDict, ExportToS3Task, ExportToS3TaskSpecification, + ExportToS3TaskSpecificationDict, ExportTransitGatewayRoutesInput, + ExportTransitGatewayRoutesInputDict, ExportTransitGatewayRoutesOutput, ExportVerifiedAccessInstanceClientConfigurationInput, + ExportVerifiedAccessInstanceClientConfigurationInputDict, ExportVerifiedAccessInstanceClientConfigurationOutput, ExternalAuthorityConfiguration, + ExternalAuthorityConfigurationDict, FailedCapacityReservationFleetCancellationResult, FailedQueuedPurchaseDeletion, FastLaunchLaunchTemplateSpecificationRequest, + FastLaunchLaunchTemplateSpecificationRequestDict, FastLaunchLaunchTemplateSpecificationResponse, FastLaunchSnapshotConfigurationRequest, + FastLaunchSnapshotConfigurationRequestDict, FastLaunchSnapshotConfigurationResponse, FederatedAuthentication, FederatedAuthenticationRequest, + FederatedAuthenticationRequestDict, Filter, + FilterDict, FilterPortRange, FirewallStatefulRule, FirewallStatelessRule, FleetBlockDeviceMappingRequest, + FleetBlockDeviceMappingRequestDict, FleetCapacityReservation, FleetCapacityReservationTargetRequest, + FleetCapacityReservationTargetRequestDict, FleetData, FleetEbsBlockDeviceRequest, + FleetEbsBlockDeviceRequestDict, FleetIamInstanceProfileSpecificationRequest, + FleetIamInstanceProfileSpecificationRequestDict, FleetInstanceMetadataOptionsRequest, + FleetInstanceMetadataOptionsRequestDict, FleetLaunchTemplateConfig, FleetLaunchTemplateConfigRequest, + FleetLaunchTemplateConfigRequestDict, FleetLaunchTemplateOverrides, FleetLaunchTemplateOverridesRequest, + FleetLaunchTemplateOverridesRequestDict, FleetLaunchTemplateSpecification, + FleetLaunchTemplateSpecificationDict, FleetLaunchTemplateSpecificationRequest, + FleetLaunchTemplateSpecificationRequestDict, FleetSpotCapacityRebalance, FleetSpotCapacityRebalanceRequest, + FleetSpotCapacityRebalanceRequestDict, FleetSpotMaintenanceStrategies, FleetSpotMaintenanceStrategiesRequest, + FleetSpotMaintenanceStrategiesRequestDict, FlowLog, FpgaDeviceInfo, FpgaDeviceMemoryInfo, @@ -1399,200 +2046,292 @@ FpgaImageState, FpgaInfo, GetActiveVpnTunnelStatusInput, + GetActiveVpnTunnelStatusInputDict, GetActiveVpnTunnelStatusOutput, GetAllowedImagesSettingsInput, + GetAllowedImagesSettingsInputDict, GetAllowedImagesSettingsOutput, GetAssociatedEnclaveCertificateIamRolesInput, + GetAssociatedEnclaveCertificateIamRolesInputDict, GetAssociatedEnclaveCertificateIamRolesOutput, GetAssociatedIpv6PoolCidrsInput, + GetAssociatedIpv6PoolCidrsInputDict, GetAssociatedIpv6PoolCidrsOutput, GetAwsNetworkPerformanceDataInput, + GetAwsNetworkPerformanceDataInputDict, GetAwsNetworkPerformanceDataOutput, GetCapacityManagerAttributesInput, + GetCapacityManagerAttributesInputDict, GetCapacityManagerAttributesOutput, GetCapacityManagerMetricDataInput, + GetCapacityManagerMetricDataInputDict, GetCapacityManagerMetricDataOutput, GetCapacityManagerMetricDimensionsInput, + GetCapacityManagerMetricDimensionsInputDict, GetCapacityManagerMetricDimensionsOutput, GetCapacityManagerMonitoredTagKeysInput, + GetCapacityManagerMonitoredTagKeysInputDict, GetCapacityManagerMonitoredTagKeysOutput, GetCapacityManagerSupportabilityScoresInput, + GetCapacityManagerSupportabilityScoresInputDict, GetCapacityManagerSupportabilityScoresOutput, GetCapacityReservationUsageInput, + GetCapacityReservationUsageInputDict, GetCapacityReservationUsageOutput, GetClientVpnEndpointAuthorizationPolicyInput, + GetClientVpnEndpointAuthorizationPolicyInputDict, GetClientVpnEndpointAuthorizationPolicyOutput, GetCoipPoolUsageInput, + GetCoipPoolUsageInputDict, GetCoipPoolUsageOutput, GetConsoleOutputInput, + GetConsoleOutputInputDict, GetConsoleOutputOutput, GetConsoleScreenshotInput, + GetConsoleScreenshotInputDict, GetConsoleScreenshotOutput, GetDeclarativePoliciesReportSummaryInput, + GetDeclarativePoliciesReportSummaryInputDict, GetDeclarativePoliciesReportSummaryOutput, GetDefaultCreditSpecificationInput, + GetDefaultCreditSpecificationInputDict, GetDefaultCreditSpecificationOutput, GetEbsDefaultKmsKeyIdInput, + GetEbsDefaultKmsKeyIdInputDict, GetEbsDefaultKmsKeyIdOutput, GetEbsEncryptionByDefaultInput, + GetEbsEncryptionByDefaultInputDict, GetEbsEncryptionByDefaultOutput, GetEnabledIpamPolicyInput, + GetEnabledIpamPolicyInputDict, GetEnabledIpamPolicyOutput, GetFlowLogsIntegrationTemplateInput, + GetFlowLogsIntegrationTemplateInputDict, GetFlowLogsIntegrationTemplateOutput, GetGroupsForCapacityReservationInput, + GetGroupsForCapacityReservationInputDict, GetGroupsForCapacityReservationOutput, GetHostReservationPurchasePreviewInput, + GetHostReservationPurchasePreviewInputDict, GetHostReservationPurchasePreviewOutput, GetImageAncestryInput, + GetImageAncestryInputDict, GetImageAncestryOutput, GetImageBlockPublicAccessStateInput, + GetImageBlockPublicAccessStateInputDict, GetImageBlockPublicAccessStateOutput, GetImageFindingsInput, + GetImageFindingsInputDict, GetImageFindingsOutput, GetInstanceMetadataDefaultsInput, + GetInstanceMetadataDefaultsInputDict, GetInstanceMetadataDefaultsOutput, GetInstanceTpmEkPubInput, + GetInstanceTpmEkPubInputDict, GetInstanceTpmEkPubOutput, GetInstanceTypesFromInstanceRequirementsInput, + GetInstanceTypesFromInstanceRequirementsInputDict, GetInstanceTypesFromInstanceRequirementsOutput, GetInstanceUefiDataInput, + GetInstanceUefiDataInputDict, GetInstanceUefiDataOutput, GetIpamAddressHistoryInput, + GetIpamAddressHistoryInputDict, GetIpamAddressHistoryOutput, GetIpamDiscoveredAccountsInput, + GetIpamDiscoveredAccountsInputDict, GetIpamDiscoveredAccountsOutput, GetIpamDiscoveredPublicAddressesInput, + GetIpamDiscoveredPublicAddressesInputDict, GetIpamDiscoveredPublicAddressesOutput, GetIpamDiscoveredResourceCidrsInput, + GetIpamDiscoveredResourceCidrsInputDict, GetIpamDiscoveredResourceCidrsOutput, GetIpamDiscoveredRoutesInput, + GetIpamDiscoveredRoutesInputDict, GetIpamDiscoveredRoutesOutput, GetIpamInternetRegistryAssociationAsnsInput, + GetIpamInternetRegistryAssociationAsnsInputDict, GetIpamInternetRegistryAssociationAsnsOutput, GetIpamInternetRegistryAssociationCidrsInput, + GetIpamInternetRegistryAssociationCidrsInputDict, GetIpamInternetRegistryAssociationCidrsOutput, GetIpamPolicyAllocationRulesInput, + GetIpamPolicyAllocationRulesInputDict, GetIpamPolicyAllocationRulesOutput, GetIpamPolicyOrganizationTargetsInput, + GetIpamPolicyOrganizationTargetsInputDict, GetIpamPolicyOrganizationTargetsOutput, GetIpamPoolAllocationsInput, + GetIpamPoolAllocationsInputDict, GetIpamPoolAllocationsOutput, GetIpamPoolCidrsInput, + GetIpamPoolCidrsInputDict, GetIpamPoolCidrsOutput, GetIpamPrefixListResolverRulesInput, + GetIpamPrefixListResolverRulesInputDict, GetIpamPrefixListResolverRulesOutput, GetIpamPrefixListResolverVersionEntriesInput, + GetIpamPrefixListResolverVersionEntriesInputDict, GetIpamPrefixListResolverVersionEntriesOutput, GetIpamPrefixListResolverVersionsInput, + GetIpamPrefixListResolverVersionsInputDict, GetIpamPrefixListResolverVersionsOutput, GetIpamResourceCidrsInput, + GetIpamResourceCidrsInputDict, GetIpamResourceCidrsOutput, GetIpamRouteOriginAuthorizationsInput, + GetIpamRouteOriginAuthorizationsInputDict, GetIpamRouteOriginAuthorizationsOutput, GetIpamRouteProtectionFindingsInput, + GetIpamRouteProtectionFindingsInputDict, GetIpamRouteProtectionFindingsOutput, GetIpamRoutingPolicyRegistrationDeltasInput, + GetIpamRoutingPolicyRegistrationDeltasInputDict, GetIpamRoutingPolicyRegistrationDeltasOutput, GetIpamRoutingPolicyRegistrationsInput, + GetIpamRoutingPolicyRegistrationsInputDict, GetIpamRoutingPolicyRegistrationsOutput, GetLaunchTemplateDataInput, + GetLaunchTemplateDataInputDict, GetLaunchTemplateDataOutput, GetManagedPrefixListAssociationsInput, + GetManagedPrefixListAssociationsInputDict, GetManagedPrefixListAssociationsOutput, GetManagedPrefixListEntriesInput, + GetManagedPrefixListEntriesInputDict, GetManagedPrefixListEntriesOutput, GetManagedResourceVisibilityInput, + GetManagedResourceVisibilityInputDict, GetManagedResourceVisibilityOutput, GetNetworkInsightsAccessScopeAnalysisFindingsInput, + GetNetworkInsightsAccessScopeAnalysisFindingsInputDict, GetNetworkInsightsAccessScopeAnalysisFindingsOutput, GetNetworkInsightsAccessScopeContentInput, + GetNetworkInsightsAccessScopeContentInputDict, GetNetworkInsightsAccessScopeContentOutput, GetPasswordDataInput, + GetPasswordDataInputDict, GetPasswordDataOutput, GetReservedInstancesExchangeQuoteInput, + GetReservedInstancesExchangeQuoteInputDict, GetReservedInstancesExchangeQuoteOutput, GetRouteServerAssociationsInput, + GetRouteServerAssociationsInputDict, GetRouteServerAssociationsOutput, GetRouteServerPropagationsInput, + GetRouteServerPropagationsInputDict, GetRouteServerPropagationsOutput, GetRouteServerRoutingDatabaseInput, + GetRouteServerRoutingDatabaseInputDict, GetRouteServerRoutingDatabaseOutput, GetSecurityGroupsForVpcInput, + GetSecurityGroupsForVpcInputDict, GetSecurityGroupsForVpcOutput, GetSerialConsoleAccessStatusInput, + GetSerialConsoleAccessStatusInputDict, GetSerialConsoleAccessStatusOutput, GetSnapshotBlockPublicAccessStateInput, + GetSnapshotBlockPublicAccessStateInputDict, GetSnapshotBlockPublicAccessStateOutput, GetSpotPlacementScoresInput, + GetSpotPlacementScoresInputDict, GetSpotPlacementScoresOutput, GetSubnetCidrReservationsInput, + GetSubnetCidrReservationsInputDict, GetSubnetCidrReservationsOutput, GetTransitGatewayAttachmentNatConfigurationInput, + GetTransitGatewayAttachmentNatConfigurationInputDict, GetTransitGatewayAttachmentNatConfigurationOutput, GetTransitGatewayAttachmentPropagationsInput, + GetTransitGatewayAttachmentPropagationsInputDict, GetTransitGatewayAttachmentPropagationsOutput, GetTransitGatewayMeteringPolicyEntriesInput, + GetTransitGatewayMeteringPolicyEntriesInputDict, GetTransitGatewayMeteringPolicyEntriesOutput, GetTransitGatewayMulticastDomainAssociationsInput, + GetTransitGatewayMulticastDomainAssociationsInputDict, GetTransitGatewayMulticastDomainAssociationsOutput, GetTransitGatewayPolicyTableAssociationsInput, + GetTransitGatewayPolicyTableAssociationsInputDict, GetTransitGatewayPolicyTableAssociationsOutput, GetTransitGatewayPolicyTableEntriesInput, + GetTransitGatewayPolicyTableEntriesInputDict, GetTransitGatewayPolicyTableEntriesOutput, GetTransitGatewayPrefixListReferencesInput, + GetTransitGatewayPrefixListReferencesInputDict, GetTransitGatewayPrefixListReferencesOutput, GetTransitGatewayRouteTableAssociationsInput, + GetTransitGatewayRouteTableAssociationsInputDict, GetTransitGatewayRouteTableAssociationsOutput, GetTransitGatewayRouteTablePropagationsInput, + GetTransitGatewayRouteTablePropagationsInputDict, GetTransitGatewayRouteTablePropagationsOutput, GetVerifiedAccessEndpointPolicyInput, + GetVerifiedAccessEndpointPolicyInputDict, GetVerifiedAccessEndpointPolicyOutput, GetVerifiedAccessEndpointTargetsInput, + GetVerifiedAccessEndpointTargetsInputDict, GetVerifiedAccessEndpointTargetsOutput, GetVerifiedAccessGroupPolicyInput, + GetVerifiedAccessGroupPolicyInputDict, GetVerifiedAccessGroupPolicyOutput, GetVpcResourcesBlockingEncryptionEnforcementInput, + GetVpcResourcesBlockingEncryptionEnforcementInputDict, GetVpcResourcesBlockingEncryptionEnforcementOutput, GetVpnConnectionDeviceSampleConfigurationInput, + GetVpnConnectionDeviceSampleConfigurationInputDict, GetVpnConnectionDeviceSampleConfigurationOutput, GetVpnConnectionDeviceTypesInput, + GetVpnConnectionDeviceTypesInputDict, GetVpnConnectionDeviceTypesOutput, GetVpnTunnelReplacementStatusInput, + GetVpnTunnelReplacementStatusInputDict, GetVpnTunnelReplacementStatusOutput, GpuDeviceInfo, GpuDeviceMemoryInfo, GpuInfo, GroupIdentifier, + GroupIdentifierDict, HealthCheckPathDestinationRequestObject, + HealthCheckPathDestinationRequestObjectDict, HealthCheckPathDestinationResponseObject, HealthCheckPathRequestObject, + HealthCheckPathRequestObjectDict, HealthCheckPathResponseObject, HealthCheckPathSourceRequestObject, + HealthCheckPathSourceRequestObjectDict, HealthCheckPathSourceResponseObject, HibernationOptions, HibernationOptionsRequest, + HibernationOptionsRequestDict, HistoryRecord, HistoryRecordEntry, Host, HostCpuOptions, HostCpuOptionsRequest, + HostCpuOptionsRequestDict, HostInstance, HostOffering, HostProperties, HostReservation, IKEVersionsListValue, IKEVersionsRequestListValue, + IKEVersionsRequestListValueDict, IamInstanceProfile, IamInstanceProfileAssociation, IamInstanceProfileSpecification, + IamInstanceProfileSpecificationDict, IcmpTypeCode, + IcmpTypeCodeDict, IdFormat, Image, ImageAncestryEntry, ImageCriterion, ImageCriterionRequest, + ImageCriterionRequestDict, ImageDiskContainer, + ImageDiskContainerDict, ImageFinding, ImageMetadata, ImageRecycleBinInfo, @@ -1602,28 +2341,39 @@ ImageUsageResourceType, ImageUsageResourceTypeOption, ImageUsageResourceTypeOptionRequest, + ImageUsageResourceTypeOptionRequestDict, ImageUsageResourceTypeRequest, + ImageUsageResourceTypeRequestDict, ImageWatermark, ImageWatermarkFilterRequest, + ImageWatermarkFilterRequestDict, ImageWatermarkFilterResponse, ImportClientVpnClientCertificateRevocationListInput, + ImportClientVpnClientCertificateRevocationListInputDict, ImportClientVpnClientCertificateRevocationListOutput, ImportImageInput, + ImportImageInputDict, ImportImageLicenseConfigurationRequest, + ImportImageLicenseConfigurationRequestDict, ImportImageLicenseConfigurationResponse, ImportImageOutput, ImportImageTask, ImportInstanceInput, + ImportInstanceInputDict, ImportInstanceLaunchSpecification, + ImportInstanceLaunchSpecificationDict, ImportInstanceOutput, ImportInstanceTaskDetails, ImportInstanceVolumeDetailItem, ImportKeyPairInput, + ImportKeyPairInputDict, ImportKeyPairOutput, ImportSnapshotInput, + ImportSnapshotInputDict, ImportSnapshotOutput, ImportSnapshotTask, ImportVolumeInput, + ImportVolumeInputDict, ImportVolumeOutput, ImportVolumeTaskDetails, InferenceAcceleratorInfo, @@ -1636,49 +2386,67 @@ InstanceAttachmentEnaSrdUdpSpecification, InstanceBlockDeviceMapping, InstanceBlockDeviceMappingSpecification, + InstanceBlockDeviceMappingSpecificationDict, InstanceCapacity, InstanceConnectEndpointDnsNames, InstanceConnectEndpointPublicDnsNames, InstanceCount, InstanceCreditSpecification, InstanceCreditSpecificationRequest, + InstanceCreditSpecificationRequestDict, InstanceEventWindow, InstanceEventWindowAssociationRequest, + InstanceEventWindowAssociationRequestDict, InstanceEventWindowAssociationTarget, InstanceEventWindowDisassociationRequest, + InstanceEventWindowDisassociationRequestDict, InstanceEventWindowStateChange, InstanceEventWindowTimeRange, InstanceEventWindowTimeRangeRequest, + InstanceEventWindowTimeRangeRequestDict, InstanceExportDetails, InstanceFamilyCreditSpecification, InstanceImageMetadata, InstanceIpv4Prefix, InstanceIpv6Address, + InstanceIpv6AddressDict, InstanceIpv6AddressRequest, + InstanceIpv6AddressRequestDict, InstanceIpv6Prefix, InstanceMaintenanceOptions, InstanceMaintenanceOptionsRequest, + InstanceMaintenanceOptionsRequestDict, InstanceMarketOptionsRequest, + InstanceMarketOptionsRequestDict, InstanceMetadataDefaultsResponse, InstanceMetadataOptionsRequest, + InstanceMetadataOptionsRequestDict, InstanceMetadataOptionsResponse, InstanceMonitoring, InstanceNetworkInterface, InstanceNetworkInterfaceAssociation, InstanceNetworkInterfaceAttachment, InstanceNetworkInterfaceSpecification, + InstanceNetworkInterfaceSpecificationDict, InstanceNetworkPerformanceOptions, InstanceNetworkPerformanceOptionsRequest, + InstanceNetworkPerformanceOptionsRequestDict, InstancePrivateIpAddress, InstanceRequirements, + InstanceRequirementsDict, InstanceRequirementsRequest, + InstanceRequirementsRequestDict, InstanceRequirementsWithMetadataRequest, + InstanceRequirementsWithMetadataRequestDict, InstanceSecondaryInterface, InstanceSecondaryInterfaceAttachment, InstanceSecondaryInterfacePrivateIpAddress, InstanceSecondaryInterfacePrivateIpAddressRequest, + InstanceSecondaryInterfacePrivateIpAddressRequestDict, InstanceSecondaryInterfaceSpecificationRequest, + InstanceSecondaryInterfaceSpecificationRequestDict, InstanceSpecification, + InstanceSpecificationDict, InstanceState, InstanceStateChange, InstanceStatus, @@ -1694,17 +2462,22 @@ InstanceTypeOffering, InstanceTypeSpecification, InstanceTypeSpecificationRequest, + InstanceTypeSpecificationRequestDict, InstanceUsage, IntegrateServices, + IntegrateServicesDict, InternetGateway, InternetGatewayAttachment, InterruptibleCapacityAllocation, InterruptionInfo, IpPermission, + IpPermissionDict, IpRange, + IpRangeDict, Ipam, IpamAddressHistoryRecord, IpamCidrAuthorizationContext, + IpamCidrAuthorizationContextDict, IpamDiscoveredAccount, IpamDiscoveredPublicAddress, IpamDiscoveredResourceCidr, @@ -1719,6 +2492,7 @@ IpamPolicy, IpamPolicyAllocationRule, IpamPolicyAllocationRuleRequest, + IpamPolicyAllocationRuleRequestDict, IpamPolicyDocument, IpamPolicyOrganizationTarget, IpamPool, @@ -1727,11 +2501,14 @@ IpamPoolCidrFailureReason, IpamPoolSourceResource, IpamPoolSourceResourceRequest, + IpamPoolSourceResourceRequestDict, IpamPrefixListResolver, IpamPrefixListResolverRule, IpamPrefixListResolverRuleCondition, IpamPrefixListResolverRuleConditionRequest, + IpamPrefixListResolverRuleConditionRequestDict, IpamPrefixListResolverRuleRequest, + IpamPrefixListResolverRuleRequestDict, IpamPrefixListResolverTarget, IpamPrefixListResolverVersion, IpamPrefixListResolverVersionEntry, @@ -1752,79 +2529,114 @@ IpamScopeExternalAuthorityConfiguration, Ipv4PrefixSpecification, Ipv4PrefixSpecificationRequest, + Ipv4PrefixSpecificationRequestDict, Ipv4PrefixSpecificationResponse, Ipv6CidrAssociation, Ipv6CidrBlock, Ipv6Pool, Ipv6PrefixSpecification, Ipv6PrefixSpecificationRequest, + Ipv6PrefixSpecificationRequestDict, Ipv6PrefixSpecificationResponse, Ipv6Range, + Ipv6RangeDict, KeyPairInfo, LastError, LaunchPermission, + LaunchPermissionDict, LaunchPermissionModifications, + LaunchPermissionModificationsDict, LaunchSpecification, LaunchTemplate, LaunchTemplateAndOverridesResponse, LaunchTemplateBlockDeviceMapping, LaunchTemplateBlockDeviceMappingRequest, + LaunchTemplateBlockDeviceMappingRequestDict, LaunchTemplateCapacityReservationSpecificationRequest, + LaunchTemplateCapacityReservationSpecificationRequestDict, LaunchTemplateCapacityReservationSpecificationResponse, LaunchTemplateConfig, + LaunchTemplateConfigDict, LaunchTemplateCpuOptions, LaunchTemplateCpuOptionsRequest, + LaunchTemplateCpuOptionsRequestDict, LaunchTemplateEbsBlockDevice, LaunchTemplateEbsBlockDeviceRequest, + LaunchTemplateEbsBlockDeviceRequestDict, LaunchTemplateElasticInferenceAccelerator, + LaunchTemplateElasticInferenceAcceleratorDict, LaunchTemplateElasticInferenceAcceleratorResponse, LaunchTemplateEnaSrdSpecification, LaunchTemplateEnaSrdUdpSpecification, LaunchTemplateEnclaveOptions, LaunchTemplateEnclaveOptionsRequest, + LaunchTemplateEnclaveOptionsRequestDict, LaunchTemplateHibernationOptions, LaunchTemplateHibernationOptionsRequest, + LaunchTemplateHibernationOptionsRequestDict, LaunchTemplateIamInstanceProfileSpecification, LaunchTemplateIamInstanceProfileSpecificationRequest, + LaunchTemplateIamInstanceProfileSpecificationRequestDict, LaunchTemplateInstanceMaintenanceOptions, LaunchTemplateInstanceMaintenanceOptionsRequest, + LaunchTemplateInstanceMaintenanceOptionsRequestDict, LaunchTemplateInstanceMarketOptions, LaunchTemplateInstanceMarketOptionsRequest, + LaunchTemplateInstanceMarketOptionsRequestDict, LaunchTemplateInstanceMetadataOptions, LaunchTemplateInstanceMetadataOptionsRequest, + LaunchTemplateInstanceMetadataOptionsRequestDict, LaunchTemplateInstanceNetworkInterfaceSpecification, LaunchTemplateInstanceNetworkInterfaceSpecificationRequest, + LaunchTemplateInstanceNetworkInterfaceSpecificationRequestDict, LaunchTemplateInstanceSecondaryInterfaceSpecification, LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest, + LaunchTemplateInstanceSecondaryInterfaceSpecificationRequestDict, LaunchTemplateLicenseConfiguration, LaunchTemplateLicenseConfigurationRequest, + LaunchTemplateLicenseConfigurationRequestDict, LaunchTemplateNetworkPerformanceOptions, LaunchTemplateNetworkPerformanceOptionsRequest, + LaunchTemplateNetworkPerformanceOptionsRequestDict, LaunchTemplateOverrides, + LaunchTemplateOverridesDict, LaunchTemplatePlacement, LaunchTemplatePlacementRequest, + LaunchTemplatePlacementRequestDict, LaunchTemplatePrivateDnsNameOptions, LaunchTemplatePrivateDnsNameOptionsRequest, + LaunchTemplatePrivateDnsNameOptionsRequestDict, LaunchTemplateSpecification, + LaunchTemplateSpecificationDict, LaunchTemplateSpotMarketOptions, LaunchTemplateSpotMarketOptionsRequest, + LaunchTemplateSpotMarketOptionsRequestDict, LaunchTemplateTagSpecification, LaunchTemplateTagSpecificationRequest, + LaunchTemplateTagSpecificationRequestDict, LaunchTemplateVersion, LaunchTemplatesMonitoring, LaunchTemplatesMonitoringRequest, + LaunchTemplatesMonitoringRequestDict, LicenseConfiguration, LicenseConfigurationRequest, + LicenseConfigurationRequestDict, ListImagesInRecycleBinInput, + ListImagesInRecycleBinInputDict, ListImagesInRecycleBinOutput, ListSnapshotsInRecycleBinInput, + ListSnapshotsInRecycleBinInputDict, ListSnapshotsInRecycleBinOutput, ListVolumesInRecycleBinInput, + ListVolumesInRecycleBinInputDict, ListVolumesInRecycleBinOutput, LoadBalancersConfig, + LoadBalancersConfigDict, LoadPermission, LoadPermissionModifications, + LoadPermissionModificationsDict, LoadPermissionRequest, + LoadPermissionRequestDict, LocalGateway, LocalGatewayRoute, LocalGatewayRouteTable, @@ -1833,12 +2645,14 @@ LocalGatewayVirtualInterface, LocalGatewayVirtualInterfaceGroup, LockSnapshotInput, + LockSnapshotInputDict, LockSnapshotOutput, LockedSnapshotsInfo, MacHost, MacModificationTask, MacSystemIntegrityProtectionConfiguration, MacSystemIntegrityProtectionConfigurationRequest, + MacSystemIntegrityProtectionConfigurationRequestDict, MaintenanceDetails, ManagedPrefixList, ManagedResourceVisibilitySettings, @@ -1846,10 +2660,14 @@ MediaDeviceInfo, MediaDeviceMemoryInfo, MemoryGiBPerVCpu, + MemoryGiBPerVCpuDict, MemoryGiBPerVCpuRequest, + MemoryGiBPerVCpuRequestDict, MemoryInfo, MemoryMiB, + MemoryMiBDict, MemoryMiBRequest, + MemoryMiBRequestDict, MetricDataResult, MetricPoint, MetricValue, @@ -1857,196 +2675,297 @@ ModificationReservationUpdate, ModificationTerms, ModifyAccountVpcEncryptionControlInput, + ModifyAccountVpcEncryptionControlInputDict, ModifyAccountVpcEncryptionControlOutput, ModifyAddressAttributeInput, + ModifyAddressAttributeInputDict, ModifyAddressAttributeOutput, ModifyApplicationStatusCheckInput, + ModifyApplicationStatusCheckInputDict, ModifyApplicationStatusCheckOutput, ModifyAvailabilityZoneGroupInput, + ModifyAvailabilityZoneGroupInputDict, ModifyAvailabilityZoneGroupOutput, ModifyCapacityReservationFleetInput, + ModifyCapacityReservationFleetInputDict, ModifyCapacityReservationFleetOutput, ModifyCapacityReservationInput, + ModifyCapacityReservationInputDict, ModifyCapacityReservationOutput, ModifyClientVpnEndpointAuthorizationPolicyInput, + ModifyClientVpnEndpointAuthorizationPolicyInputDict, ModifyClientVpnEndpointAuthorizationPolicyOutput, ModifyClientVpnEndpointInput, + ModifyClientVpnEndpointInputDict, ModifyClientVpnEndpointOutput, ModifyDefaultCreditSpecificationInput, + ModifyDefaultCreditSpecificationInputDict, ModifyDefaultCreditSpecificationOutput, ModifyEbsDefaultKmsKeyIdInput, + ModifyEbsDefaultKmsKeyIdInputDict, ModifyEbsDefaultKmsKeyIdOutput, ModifyFleetInput, + ModifyFleetInputDict, ModifyFleetOutput, ModifyFpgaImageAttributeInput, + ModifyFpgaImageAttributeInputDict, ModifyFpgaImageAttributeOutput, ModifyHostsInput, + ModifyHostsInputDict, ModifyHostsOutput, ModifyIdFormatInput, + ModifyIdFormatInputDict, ModifyIdFormatOutput, ModifyIdentityIdFormatInput, + ModifyIdentityIdFormatInputDict, ModifyIdentityIdFormatOutput, ModifyImageAttributeInput, + ModifyImageAttributeInputDict, ModifyImageAttributeOutput, ModifyInstanceAttributeInput, + ModifyInstanceAttributeInputDict, ModifyInstanceAttributeOutput, ModifyInstanceCapacityReservationAttributesInput, + ModifyInstanceCapacityReservationAttributesInputDict, ModifyInstanceCapacityReservationAttributesOutput, ModifyInstanceConnectEndpointInput, + ModifyInstanceConnectEndpointInputDict, ModifyInstanceConnectEndpointOutput, ModifyInstanceCpuOptionsInput, + ModifyInstanceCpuOptionsInputDict, ModifyInstanceCpuOptionsOutput, ModifyInstanceCreditSpecificationInput, + ModifyInstanceCreditSpecificationInputDict, ModifyInstanceCreditSpecificationOutput, ModifyInstanceEventStartTimeInput, + ModifyInstanceEventStartTimeInputDict, ModifyInstanceEventStartTimeOutput, ModifyInstanceEventWindowInput, + ModifyInstanceEventWindowInputDict, ModifyInstanceEventWindowOutput, ModifyInstanceMaintenanceOptionsInput, + ModifyInstanceMaintenanceOptionsInputDict, ModifyInstanceMaintenanceOptionsOutput, ModifyInstanceMetadataDefaultsInput, + ModifyInstanceMetadataDefaultsInputDict, ModifyInstanceMetadataDefaultsOutput, ModifyInstanceMetadataOptionsInput, + ModifyInstanceMetadataOptionsInputDict, ModifyInstanceMetadataOptionsOutput, ModifyInstanceNetworkPerformanceOptionsInput, + ModifyInstanceNetworkPerformanceOptionsInputDict, ModifyInstanceNetworkPerformanceOptionsOutput, ModifyInstancePlacementInput, + ModifyInstancePlacementInputDict, ModifyInstancePlacementOutput, ModifyIpamInput, + ModifyIpamInputDict, ModifyIpamOutput, ModifyIpamPolicyAllocationRulesInput, + ModifyIpamPolicyAllocationRulesInputDict, ModifyIpamPolicyAllocationRulesOutput, ModifyIpamPoolAllocationInput, + ModifyIpamPoolAllocationInputDict, ModifyIpamPoolAllocationOutput, ModifyIpamPoolInput, + ModifyIpamPoolInputDict, ModifyIpamPoolOutput, ModifyIpamPrefixListResolverInput, + ModifyIpamPrefixListResolverInputDict, ModifyIpamPrefixListResolverOutput, ModifyIpamPrefixListResolverTargetInput, + ModifyIpamPrefixListResolverTargetInputDict, ModifyIpamPrefixListResolverTargetOutput, ModifyIpamResourceCidrInput, + ModifyIpamResourceCidrInputDict, ModifyIpamResourceCidrOutput, ModifyIpamResourceDiscoveryInput, + ModifyIpamResourceDiscoveryInputDict, ModifyIpamResourceDiscoveryOutput, ModifyIpamRoutingPolicyRegistrationInput, + ModifyIpamRoutingPolicyRegistrationInputDict, ModifyIpamRoutingPolicyRegistrationOutput, ModifyIpamScopeInput, + ModifyIpamScopeInputDict, ModifyIpamScopeOutput, ModifyLaunchTemplateInput, + ModifyLaunchTemplateInputDict, ModifyLaunchTemplateOutput, ModifyLocalGatewayRouteInput, + ModifyLocalGatewayRouteInputDict, ModifyLocalGatewayRouteOutput, ModifyManagedPrefixListInput, + ModifyManagedPrefixListInputDict, ModifyManagedPrefixListOutput, ModifyManagedResourceVisibilityInput, + ModifyManagedResourceVisibilityInputDict, ModifyManagedResourceVisibilityOutput, ModifyNetworkInterfaceAttributeInput, + ModifyNetworkInterfaceAttributeInputDict, ModifyNetworkInterfaceAttributeOutput, ModifyPrivateDnsNameOptionsInput, + ModifyPrivateDnsNameOptionsInputDict, ModifyPrivateDnsNameOptionsOutput, ModifyPublicIpDnsNameOptionsInput, + ModifyPublicIpDnsNameOptionsInputDict, ModifyPublicIpDnsNameOptionsOutput, ModifyReservedInstancesInput, + ModifyReservedInstancesInputDict, ModifyReservedInstancesOutput, ModifyRouteServerInput, + ModifyRouteServerInputDict, ModifyRouteServerOutput, ModifySecurityGroupRulesInput, + ModifySecurityGroupRulesInputDict, ModifySecurityGroupRulesOutput, ModifySnapshotAttributeInput, + ModifySnapshotAttributeInputDict, ModifySnapshotAttributeOutput, ModifySnapshotTierInput, + ModifySnapshotTierInputDict, ModifySnapshotTierOutput, ModifySpotFleetRequestInput, + ModifySpotFleetRequestInputDict, ModifySpotFleetRequestOutput, ModifySubnetAttributeInput, + ModifySubnetAttributeInputDict, ModifySubnetAttributeOutput, ModifyTrafficMirrorFilterNetworkServicesInput, + ModifyTrafficMirrorFilterNetworkServicesInputDict, ModifyTrafficMirrorFilterNetworkServicesOutput, ModifyTrafficMirrorFilterRuleInput, + ModifyTrafficMirrorFilterRuleInputDict, ModifyTrafficMirrorFilterRuleOutput, ModifyTrafficMirrorSessionInput, + ModifyTrafficMirrorSessionInputDict, ModifyTrafficMirrorSessionOutput, ModifyTransitGatewayAttachmentNatConfigurationInput, + ModifyTransitGatewayAttachmentNatConfigurationInputDict, ModifyTransitGatewayAttachmentNatConfigurationOutput, ModifyTransitGatewayInput, + ModifyTransitGatewayInputDict, ModifyTransitGatewayMeteringPolicyInput, + ModifyTransitGatewayMeteringPolicyInputDict, ModifyTransitGatewayMeteringPolicyOutput, ModifyTransitGatewayOptions, + ModifyTransitGatewayOptionsDict, ModifyTransitGatewayOutput, ModifyTransitGatewayPolicyTableEntryInput, + ModifyTransitGatewayPolicyTableEntryInputDict, ModifyTransitGatewayPolicyTableEntryOutput, ModifyTransitGatewayPrefixListReferenceInput, + ModifyTransitGatewayPrefixListReferenceInputDict, ModifyTransitGatewayPrefixListReferenceOutput, ModifyTransitGatewayVpcAttachmentInput, + ModifyTransitGatewayVpcAttachmentInputDict, ModifyTransitGatewayVpcAttachmentOutput, ModifyTransitGatewayVpcAttachmentRequestOptions, + ModifyTransitGatewayVpcAttachmentRequestOptionsDict, ModifyVerifiedAccessEndpointCidrOptions, + ModifyVerifiedAccessEndpointCidrOptionsDict, ModifyVerifiedAccessEndpointEniOptions, + ModifyVerifiedAccessEndpointEniOptionsDict, ModifyVerifiedAccessEndpointInput, + ModifyVerifiedAccessEndpointInputDict, ModifyVerifiedAccessEndpointLoadBalancerOptions, + ModifyVerifiedAccessEndpointLoadBalancerOptionsDict, ModifyVerifiedAccessEndpointOutput, ModifyVerifiedAccessEndpointPolicyInput, + ModifyVerifiedAccessEndpointPolicyInputDict, ModifyVerifiedAccessEndpointPolicyOutput, ModifyVerifiedAccessEndpointPortRange, + ModifyVerifiedAccessEndpointPortRangeDict, ModifyVerifiedAccessEndpointRdsOptions, + ModifyVerifiedAccessEndpointRdsOptionsDict, ModifyVerifiedAccessGroupInput, + ModifyVerifiedAccessGroupInputDict, ModifyVerifiedAccessGroupOutput, ModifyVerifiedAccessGroupPolicyInput, + ModifyVerifiedAccessGroupPolicyInputDict, ModifyVerifiedAccessGroupPolicyOutput, ModifyVerifiedAccessInstanceInput, + ModifyVerifiedAccessInstanceInputDict, ModifyVerifiedAccessInstanceLoggingConfigurationInput, + ModifyVerifiedAccessInstanceLoggingConfigurationInputDict, ModifyVerifiedAccessInstanceLoggingConfigurationOutput, ModifyVerifiedAccessInstanceOutput, ModifyVerifiedAccessNativeApplicationOidcOptions, + ModifyVerifiedAccessNativeApplicationOidcOptionsDict, ModifyVerifiedAccessTrustProviderDeviceOptions, + ModifyVerifiedAccessTrustProviderDeviceOptionsDict, ModifyVerifiedAccessTrustProviderInput, + ModifyVerifiedAccessTrustProviderInputDict, ModifyVerifiedAccessTrustProviderOidcOptions, + ModifyVerifiedAccessTrustProviderOidcOptionsDict, ModifyVerifiedAccessTrustProviderOutput, ModifyVolumeAttributeInput, + ModifyVolumeAttributeInputDict, ModifyVolumeAttributeOutput, ModifyVolumeInput, + ModifyVolumeInputDict, ModifyVolumeOutput, ModifyVpcAttributeInput, + ModifyVpcAttributeInputDict, ModifyVpcAttributeOutput, ModifyVpcBlockPublicAccessExclusionInput, + ModifyVpcBlockPublicAccessExclusionInputDict, ModifyVpcBlockPublicAccessExclusionOutput, ModifyVpcBlockPublicAccessOptionsInput, + ModifyVpcBlockPublicAccessOptionsInputDict, ModifyVpcBlockPublicAccessOptionsOutput, ModifyVpcEncryptionControlInput, + ModifyVpcEncryptionControlInputDict, ModifyVpcEncryptionControlOutput, ModifyVpcEndpointConnectionNotificationInput, + ModifyVpcEndpointConnectionNotificationInputDict, ModifyVpcEndpointConnectionNotificationOutput, ModifyVpcEndpointInput, + ModifyVpcEndpointInputDict, ModifyVpcEndpointOutput, ModifyVpcEndpointPayerResponsibilityInput, + ModifyVpcEndpointPayerResponsibilityInputDict, ModifyVpcEndpointPayerResponsibilityOutput, ModifyVpcEndpointServiceConfigurationInput, + ModifyVpcEndpointServiceConfigurationInputDict, ModifyVpcEndpointServiceConfigurationOutput, ModifyVpcEndpointServicePayerResponsibilityInput, + ModifyVpcEndpointServicePayerResponsibilityInputDict, ModifyVpcEndpointServicePayerResponsibilityOutput, ModifyVpcEndpointServicePermissionsInput, + ModifyVpcEndpointServicePermissionsInputDict, ModifyVpcEndpointServicePermissionsOutput, ModifyVpcPeeringConnectionOptionsInput, + ModifyVpcPeeringConnectionOptionsInputDict, ModifyVpcPeeringConnectionOptionsOutput, ModifyVpcTenancyInput, + ModifyVpcTenancyInputDict, ModifyVpcTenancyOutput, ModifyVpnConnectionInput, + ModifyVpnConnectionInputDict, ModifyVpnConnectionOptionsInput, + ModifyVpnConnectionOptionsInputDict, ModifyVpnConnectionOptionsOutput, ModifyVpnConnectionOutput, ModifyVpnTunnelCertificateInput, + ModifyVpnTunnelCertificateInputDict, ModifyVpnTunnelCertificateOutput, ModifyVpnTunnelOptionsInput, + ModifyVpnTunnelOptionsInputDict, ModifyVpnTunnelOptionsOutput, ModifyVpnTunnelOptionsSpecification, + ModifyVpnTunnelOptionsSpecificationDict, MonitorInstancesInput, + MonitorInstancesInputDict, MonitorInstancesOutput, Monitoring, MoveAddressToVpcInput, + MoveAddressToVpcInputDict, MoveAddressToVpcOutput, MoveByoipCidrToIpamInput, + MoveByoipCidrToIpamInputDict, MoveByoipCidrToIpamOutput, MoveCapacityReservationInstancesInput, + MoveCapacityReservationInstancesInputDict, MoveCapacityReservationInstancesOutput, MovingAddressStatus, NatGateway, @@ -2057,7 +2976,9 @@ NetworkAclAssociation, NetworkAclEntry, NetworkBandwidthGbps, + NetworkBandwidthGbpsDict, NetworkBandwidthGbpsRequest, + NetworkBandwidthGbpsRequestDict, NetworkCardInfo, NetworkInfo, NetworkInsightsAccessScope, @@ -2069,8 +2990,11 @@ NetworkInterfaceAssociation, NetworkInterfaceAttachment, NetworkInterfaceAttachmentChanges, + NetworkInterfaceAttachmentChangesDict, NetworkInterfaceCount, + NetworkInterfaceCountDict, NetworkInterfaceCountRequest, + NetworkInterfaceCountRequestDict, NetworkInterfaceIpv6Address, NetworkInterfacePermission, NetworkInterfacePermissionState, @@ -2080,71 +3004,96 @@ NeuronDeviceMemoryInfo, NeuronInfo, NewDhcpConfiguration, + NewDhcpConfigurationDict, NitroTpmInfo, OidcOptions, OnDemandOptions, OnDemandOptionsRequest, + OnDemandOptionsRequestDict, OperatorRequest, + OperatorRequestDict, OperatorResponse, OutpostLag, PacketHeaderStatement, PacketHeaderStatementRequest, + PacketHeaderStatementRequestDict, PathComponent, PathFilter, PathRequestFilter, + PathRequestFilterDict, PathStatement, PathStatementRequest, + PathStatementRequestDict, PayerResponsibilityEntry, PciId, PeeringAttachmentStatus, PeeringConnectionOptions, PeeringConnectionOptionsRequest, + PeeringConnectionOptionsRequestDict, PeeringTgwInfo, PerformanceFactorReference, + PerformanceFactorReferenceDict, PerformanceFactorReferenceRequest, + PerformanceFactorReferenceRequestDict, PerformanceStatusSummary, Phase1DHGroupNumbersListValue, Phase1DHGroupNumbersRequestListValue, + Phase1DHGroupNumbersRequestListValueDict, Phase1EncryptionAlgorithmsListValue, Phase1EncryptionAlgorithmsRequestListValue, + Phase1EncryptionAlgorithmsRequestListValueDict, Phase1IntegrityAlgorithmsListValue, Phase1IntegrityAlgorithmsRequestListValue, + Phase1IntegrityAlgorithmsRequestListValueDict, Phase2DHGroupNumbersListValue, Phase2DHGroupNumbersRequestListValue, + Phase2DHGroupNumbersRequestListValueDict, Phase2EncryptionAlgorithmsListValue, Phase2EncryptionAlgorithmsRequestListValue, + Phase2EncryptionAlgorithmsRequestListValueDict, Phase2IntegrityAlgorithmsListValue, Phase2IntegrityAlgorithmsRequestListValue, + Phase2IntegrityAlgorithmsRequestListValueDict, Placement, + PlacementDict, PlacementGroup, PlacementGroupInfo, PlacementResponse, PoolCidrBlock, PortRange, + PortRangeDict, PrefixList, PrefixListAssociation, PrefixListEntry, PrefixListId, + PrefixListIdDict, PriceSchedule, PriceScheduleSpecification, + PriceScheduleSpecificationDict, PricingDetail, PrincipalIdFormat, PrivateDnsDetails, PrivateDnsNameConfiguration, PrivateDnsNameOptionsOnLaunch, PrivateDnsNameOptionsRequest, + PrivateDnsNameOptionsRequestDict, PrivateDnsNameOptionsResponse, PrivateIpAddressSpecification, + PrivateIpAddressSpecificationDict, ProcessorInfo, ProductCode, PropagatingVgw, ProvisionByoipCidrInput, + ProvisionByoipCidrInputDict, ProvisionByoipCidrOutput, ProvisionIpamByoasnInput, + ProvisionIpamByoasnInputDict, ProvisionIpamByoasnOutput, ProvisionIpamPoolCidrInput, + ProvisionIpamPoolCidrInputDict, ProvisionIpamPoolCidrOutput, ProvisionPublicIpv4PoolCidrInput, + ProvisionPublicIpv4PoolCidrInputDict, ProvisionPublicIpv4PoolCidrOutput, ProvisionedBandwidth, PtrUpdateStatus, @@ -2153,17 +3102,24 @@ PublicIpv4PoolRange, Purchase, PurchaseCapacityBlockExtensionInput, + PurchaseCapacityBlockExtensionInputDict, PurchaseCapacityBlockExtensionOutput, PurchaseCapacityBlockInput, + PurchaseCapacityBlockInputDict, PurchaseCapacityBlockOutput, PurchaseHostReservationInput, + PurchaseHostReservationInputDict, PurchaseHostReservationOutput, PurchaseRequest, + PurchaseRequestDict, PurchaseReservedInstancesOfferingInput, + PurchaseReservedInstancesOfferingInputDict, PurchaseReservedInstancesOfferingOutput, PurchaseScheduledInstancesInput, + PurchaseScheduledInstancesInputDict, PurchaseScheduledInstancesOutput, RebootInstancesInput, + RebootInstancesInputDict, RebootInstancesOutput, RecurringCharge, ReferencedSecurityGroup, @@ -2171,120 +3127,178 @@ RegionGeography, RegionalSummary, RegisterImageInput, + RegisterImageInputDict, RegisterImageOutput, RegisterInstanceEventNotificationAttributesInput, + RegisterInstanceEventNotificationAttributesInputDict, RegisterInstanceEventNotificationAttributesOutput, RegisterInstanceTagAttributeRequest, + RegisterInstanceTagAttributeRequestDict, RegisterTransitGatewayMulticastGroupMembersInput, + RegisterTransitGatewayMulticastGroupMembersInputDict, RegisterTransitGatewayMulticastGroupMembersOutput, RegisterTransitGatewayMulticastGroupSourcesInput, + RegisterTransitGatewayMulticastGroupSourcesInputDict, RegisterTransitGatewayMulticastGroupSourcesOutput, RegisteredInstance, RejectCapacityReservationBillingOwnershipInput, + RejectCapacityReservationBillingOwnershipInputDict, RejectCapacityReservationBillingOwnershipOutput, RejectTransitGatewayClientVpnAttachmentInput, + RejectTransitGatewayClientVpnAttachmentInputDict, RejectTransitGatewayClientVpnAttachmentOutput, RejectTransitGatewayMulticastDomainAssociationsInput, + RejectTransitGatewayMulticastDomainAssociationsInputDict, RejectTransitGatewayMulticastDomainAssociationsOutput, RejectTransitGatewayPeeringAttachmentInput, + RejectTransitGatewayPeeringAttachmentInputDict, RejectTransitGatewayPeeringAttachmentOutput, RejectTransitGatewayVpcAttachmentInput, + RejectTransitGatewayVpcAttachmentInputDict, RejectTransitGatewayVpcAttachmentOutput, RejectVpcEndpointConnectionsInput, + RejectVpcEndpointConnectionsInputDict, RejectVpcEndpointConnectionsOutput, RejectVpcPeeringConnectionInput, + RejectVpcPeeringConnectionInputDict, RejectVpcPeeringConnectionOutput, ReleaseAddressInput, + ReleaseAddressInputDict, ReleaseAddressOutput, ReleaseHostsInput, + ReleaseHostsInputDict, ReleaseHostsOutput, ReleaseIpamPoolAllocationInput, + ReleaseIpamPoolAllocationInputDict, ReleaseIpamPoolAllocationOutput, RemoveIpamOperatingRegion, + RemoveIpamOperatingRegionDict, RemoveIpamOrganizationalUnitExclusion, + RemoveIpamOrganizationalUnitExclusionDict, RemovePrefixListEntry, + RemovePrefixListEntryDict, ReplaceIamInstanceProfileAssociationInput, + ReplaceIamInstanceProfileAssociationInputDict, ReplaceIamInstanceProfileAssociationOutput, ReplaceImageCriteriaInAllowedImagesSettingsInput, + ReplaceImageCriteriaInAllowedImagesSettingsInputDict, ReplaceImageCriteriaInAllowedImagesSettingsOutput, ReplaceImageInstanceTypeSpecificationInput, + ReplaceImageInstanceTypeSpecificationInputDict, ReplaceImageInstanceTypeSpecificationOutput, ReplaceNetworkAclAssociationInput, + ReplaceNetworkAclAssociationInputDict, ReplaceNetworkAclAssociationOutput, ReplaceNetworkAclEntryInput, + ReplaceNetworkAclEntryInputDict, ReplaceNetworkAclEntryOutput, ReplaceRootVolumeTask, ReplaceRouteInput, + ReplaceRouteInputDict, ReplaceRouteOutput, ReplaceRouteTableAssociationInput, + ReplaceRouteTableAssociationInputDict, ReplaceRouteTableAssociationOutput, ReplaceTransitGatewayRouteInput, + ReplaceTransitGatewayRouteInputDict, ReplaceTransitGatewayRouteOutput, ReplaceVpnTunnelInput, + ReplaceVpnTunnelInputDict, ReplaceVpnTunnelOutput, ReportInstanceStatusInput, + ReportInstanceStatusInputDict, ReportInstanceStatusOutput, RequestFilterPortRange, + RequestFilterPortRangeDict, RequestIpamResourceTag, + RequestIpamResourceTagDict, RequestLaunchTemplateData, + RequestLaunchTemplateDataDict, RequestSpotFleetInput, + RequestSpotFleetInputDict, RequestSpotFleetOutput, RequestSpotInstancesInput, + RequestSpotInstancesInputDict, RequestSpotInstancesOutput, RequestSpotLaunchSpecification, + RequestSpotLaunchSpecificationDict, Reservation, ReservationFleetInstanceSpecification, + ReservationFleetInstanceSpecificationDict, ReservationValue, ReservedCapacityFallbackOptions, ReservedCapacityFallbackOptionsRequest, + ReservedCapacityFallbackOptionsRequestDict, ReservedCapacityOptions, ReservedCapacityOptionsRequest, + ReservedCapacityOptionsRequestDict, ReservedInstanceLimitPrice, + ReservedInstanceLimitPriceDict, ReservedInstanceReservationValue, ReservedInstances, ReservedInstancesConfiguration, + ReservedInstancesConfigurationDict, ReservedInstancesId, ReservedInstancesListing, ReservedInstancesModification, ReservedInstancesModificationResult, ReservedInstancesOffering, ResetAddressAttributeInput, + ResetAddressAttributeInputDict, ResetAddressAttributeOutput, ResetEbsDefaultKmsKeyIdInput, + ResetEbsDefaultKmsKeyIdInputDict, ResetEbsDefaultKmsKeyIdOutput, ResetFpgaImageAttributeInput, + ResetFpgaImageAttributeInputDict, ResetFpgaImageAttributeOutput, ResetImageAttributeInput, + ResetImageAttributeInputDict, ResetImageAttributeOutput, ResetInstanceAttributeInput, + ResetInstanceAttributeInputDict, ResetInstanceAttributeOutput, ResetNetworkInterfaceAttributeInput, + ResetNetworkInterfaceAttributeInputDict, ResetNetworkInterfaceAttributeOutput, ResetSnapshotAttributeInput, + ResetSnapshotAttributeInputDict, ResetSnapshotAttributeOutput, ResourceStatement, ResourceStatementRequest, + ResourceStatementRequestDict, ResourceTypeOption, + ResourceTypeOptionDict, ResourceTypeRequest, + ResourceTypeRequestDict, ResponseError, ResponseLaunchTemplateData, RestoreAddressToClassicInput, + RestoreAddressToClassicInputDict, RestoreAddressToClassicOutput, RestoreImageFromRecycleBinInput, + RestoreImageFromRecycleBinInputDict, RestoreImageFromRecycleBinOutput, RestoreManagedPrefixListVersionInput, + RestoreManagedPrefixListVersionInputDict, RestoreManagedPrefixListVersionOutput, RestoreSnapshotFromRecycleBinInput, + RestoreSnapshotFromRecycleBinInputDict, RestoreSnapshotFromRecycleBinOutput, RestoreSnapshotTierInput, + RestoreSnapshotTierInputDict, RestoreSnapshotTierOutput, RestoreVolumeFromRecycleBinInput, + RestoreVolumeFromRecycleBinInputDict, RestoreVolumeFromRecycleBinOutput, RevokeClientVpnIngressInput, + RevokeClientVpnIngressInputDict, RevokeClientVpnIngressOutput, RevokeSecurityGroupEgressInput, + RevokeSecurityGroupEgressInputDict, RevokeSecurityGroupEgressOutput, RevokeSecurityGroupIngressInput, + RevokeSecurityGroupIngressInputDict, RevokeSecurityGroupIngressOutput, RevokedSecurityGroupRule, Route, @@ -2293,6 +3307,7 @@ RouteServerBfdStatus, RouteServerBgpOptions, RouteServerBgpOptionsRequest, + RouteServerBgpOptionsRequestDict, RouteServerBgpStatus, RouteServerEndpoint, RouteServerPeer, @@ -2306,108 +3321,154 @@ RuleGroupTypePair, RuleOption, RunInstancesInput, + RunInstancesInputDict, RunInstancesMonitoringEnabled, + RunInstancesMonitoringEnabledDict, RunInstancesOutput, RunScheduledInstancesInput, + RunScheduledInstancesInputDict, RunScheduledInstancesOutput, S3ObjectTag, + S3ObjectTagDict, S3Storage, + S3StorageDict, ScanResultCondition, ScanResultConditionRequest, + ScanResultConditionRequestDict, ScanResults, ScheduledInstance, ScheduledInstanceAvailability, ScheduledInstanceRecurrence, ScheduledInstanceRecurrenceRequest, + ScheduledInstanceRecurrenceRequestDict, ScheduledInstancesBlockDeviceMapping, + ScheduledInstancesBlockDeviceMappingDict, ScheduledInstancesEbs, + ScheduledInstancesEbsDict, ScheduledInstancesIamInstanceProfile, + ScheduledInstancesIamInstanceProfileDict, ScheduledInstancesIpv6Address, + ScheduledInstancesIpv6AddressDict, ScheduledInstancesLaunchSpecification, + ScheduledInstancesLaunchSpecificationDict, ScheduledInstancesMonitoring, + ScheduledInstancesMonitoringDict, ScheduledInstancesNetworkInterface, + ScheduledInstancesNetworkInterfaceDict, ScheduledInstancesPlacement, + ScheduledInstancesPlacementDict, ScheduledInstancesPrivateIpAddressConfig, + ScheduledInstancesPrivateIpAddressConfigDict, SearchLocalGatewayRoutesInput, + SearchLocalGatewayRoutesInputDict, SearchLocalGatewayRoutesOutput, SearchTransitGatewayMulticastGroupsInput, + SearchTransitGatewayMulticastGroupsInputDict, SearchTransitGatewayMulticastGroupsOutput, SearchTransitGatewayRoutesInput, + SearchTransitGatewayRoutesInputDict, SearchTransitGatewayRoutesOutput, SecondaryInterface, SecondaryInterfaceAttachment, SecondaryInterfaceIpv4Address, SecondaryInterfacePrivateIpAddressSpecification, SecondaryInterfacePrivateIpAddressSpecificationRequest, + SecondaryInterfacePrivateIpAddressSpecificationRequestDict, SecondaryNetwork, SecondaryNetworkIpv4CidrBlockAssociation, SecondarySubnet, SecondarySubnetIpv4CidrBlockAssociation, SecureBlobAttributeValue, + SecureBlobAttributeValueDict, SecurityGroup, SecurityGroupForVpc, SecurityGroupIdentifier, SecurityGroupReference, SecurityGroupRule, SecurityGroupRuleDescription, + SecurityGroupRuleDescriptionDict, SecurityGroupRuleRequest, + SecurityGroupRuleRequestDict, SecurityGroupRuleUpdate, + SecurityGroupRuleUpdateDict, SecurityGroupVpcAssociation, SendDiagnosticInterruptInput, + SendDiagnosticInterruptInputDict, SendDiagnosticInterruptOutput, ServiceConfiguration, ServiceDetail, ServiceLinkVirtualInterface, ServiceTypeDetail, SlotDateTimeRangeRequest, + SlotDateTimeRangeRequestDict, SlotStartTimeRangeRequest, + SlotStartTimeRangeRequestDict, Snapshot, SnapshotDetail, SnapshotDiskContainer, + SnapshotDiskContainerDict, SnapshotInfo, SnapshotRecycleBinInfo, SnapshotTaskDetail, SnapshotTierStatus, SpotCapacityRebalance, + SpotCapacityRebalanceDict, SpotDatafeedSubscription, SpotFleetLaunchSpecification, + SpotFleetLaunchSpecificationDict, SpotFleetMonitoring, + SpotFleetMonitoringDict, SpotFleetRequestConfig, SpotFleetRequestConfigData, + SpotFleetRequestConfigDataDict, SpotFleetTagSpecification, + SpotFleetTagSpecificationDict, SpotInstanceRequest, SpotInstanceStateFault, SpotInstanceStatus, SpotMaintenanceStrategies, + SpotMaintenanceStrategiesDict, SpotMarketOptions, + SpotMarketOptionsDict, SpotOptions, SpotOptionsRequest, + SpotOptionsRequestDict, SpotPlacement, + SpotPlacementDict, SpotPlacementScore, SpotPrice, StaleIpPermission, StaleSecurityGroup, StartDeclarativePoliciesReportInput, + StartDeclarativePoliciesReportInputDict, StartDeclarativePoliciesReportOutput, StartInstancesInput, + StartInstancesInputDict, StartInstancesOutput, StartNetworkInsightsAccessScopeAnalysisInput, + StartNetworkInsightsAccessScopeAnalysisInputDict, StartNetworkInsightsAccessScopeAnalysisOutput, StartNetworkInsightsAnalysisInput, + StartNetworkInsightsAnalysisInputDict, StartNetworkInsightsAnalysisOutput, StartVpcEndpointServicePrivateDnsVerificationInput, + StartVpcEndpointServicePrivateDnsVerificationInputDict, StartVpcEndpointServicePrivateDnsVerificationOutput, StateReason, StopInstancesInput, + StopInstancesInputDict, StopInstancesOutput, Storage, + StorageDict, StorageLocation, + StorageLocationDict, StoreImageTaskResult, Subnet, SubnetAssociation, SubnetCidrBlockState, SubnetCidrReservation, SubnetConfiguration, + SubnetConfigurationDict, SubnetIpPrefixes, SubnetIpv6CidrBlockAssociation, Subscription, @@ -2418,30 +3479,43 @@ SupportedRegionDetail, Tag, TagDescription, + TagDict, TagFieldSpecificationRequest, + TagFieldSpecificationRequestDict, TagFieldSpecificationResponse, TagSpecification, + TagSpecificationDict, TargetCapacitySpecification, TargetCapacitySpecificationRequest, + TargetCapacitySpecificationRequestDict, TargetConfiguration, TargetConfigurationRequest, + TargetConfigurationRequestDict, TargetGroup, + TargetGroupDict, TargetGroupsConfig, + TargetGroupsConfigDict, TargetNetwork, TargetReservationValue, TerminateClientVpnConnectionsInput, + TerminateClientVpnConnectionsInputDict, TerminateClientVpnConnectionsOutput, TerminateConnectionStatus, TerminateInstancesInput, + TerminateInstancesInputDict, TerminateInstancesOutput, ThroughResourcesStatement, ThroughResourcesStatementRequest, + ThroughResourcesStatementRequestDict, TotalLocalStorageGB, + TotalLocalStorageGBDict, TotalLocalStorageGBRequest, + TotalLocalStorageGBRequestDict, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorPortRange, TrafficMirrorPortRangeRequest, + TrafficMirrorPortRangeRequestDict, TrafficMirrorSession, TrafficMirrorTarget, TransitGateway, @@ -2453,11 +3527,13 @@ TransitGatewayClientVpnAttachment, TransitGatewayConfigurationDescribeEndpointStructure, TransitGatewayConfigurationInputStructure, + TransitGatewayConfigurationInputStructureDict, TransitGatewayConnect, TransitGatewayConnectOptions, TransitGatewayConnectPeer, TransitGatewayConnectPeerConfiguration, TransitGatewayConnectRequestBgpOptions, + TransitGatewayConnectRequestBgpOptionsDict, TransitGatewayMeteringPolicy, TransitGatewayMeteringPolicyEntry, TransitGatewayMeteringPolicyRule, @@ -2472,6 +3548,7 @@ TransitGatewayMulticastRegisteredGroupSources, TransitGatewayNatRule, TransitGatewayNatRuleRequest, + TransitGatewayNatRuleRequestDict, TransitGatewayOptions, TransitGatewayPeeringAttachment, TransitGatewayPeeringAttachmentOptions, @@ -2484,8 +3561,11 @@ TransitGatewayPrefixListReference, TransitGatewayPropagation, TransitGatewayRequestOptions, + TransitGatewayRequestOptionsDict, TransitGatewayRequestPolicyRule, + TransitGatewayRequestPolicyRuleDict, TransitGatewayRequestPolicyRuleMetaData, + TransitGatewayRequestPolicyRuleMetaDataDict, TransitGatewayRoute, TransitGatewayRouteAttachment, TransitGatewayRouteTable, @@ -2498,14 +3578,19 @@ TrunkInterfaceAssociation, TunnelOption, UnassignIpv6AddressesInput, + UnassignIpv6AddressesInputDict, UnassignIpv6AddressesOutput, UnassignPrivateIpAddressesInput, + UnassignPrivateIpAddressesInputDict, UnassignPrivateIpAddressesOutput, UnassignPrivateNatGatewayAddressInput, + UnassignPrivateNatGatewayAddressInputDict, UnassignPrivateNatGatewayAddressOutput, UnlockSnapshotInput, + UnlockSnapshotInputDict, UnlockSnapshotOutput, UnmonitorInstancesInput, + UnmonitorInstancesInputDict, UnmonitorInstancesOutput, UnsuccessfulAssociationResponseObject, UnsuccessfulInstanceCreditSpecificationItem, @@ -2514,23 +3599,34 @@ UnsuccessfulItemError, UnsuccessfulSuppressionResponseObject, UpdateCapacityManagerMonitoredTagKeysInput, + UpdateCapacityManagerMonitoredTagKeysInputDict, UpdateCapacityManagerMonitoredTagKeysOutput, UpdateCapacityManagerOrganizationsAccessInput, + UpdateCapacityManagerOrganizationsAccessInputDict, UpdateCapacityManagerOrganizationsAccessOutput, UpdateInterruptibleCapacityReservationAllocationInput, + UpdateInterruptibleCapacityReservationAllocationInputDict, UpdateInterruptibleCapacityReservationAllocationOutput, UpdateSecurityGroupRuleDescriptionsEgressInput, + UpdateSecurityGroupRuleDescriptionsEgressInputDict, UpdateSecurityGroupRuleDescriptionsEgressOutput, UpdateSecurityGroupRuleDescriptionsIngressInput, + UpdateSecurityGroupRuleDescriptionsIngressInputDict, UpdateSecurityGroupRuleDescriptionsIngressOutput, UserBucket, UserBucketDetails, + UserBucketDict, UserData, + UserDataDict, UserIdGroupPair, + UserIdGroupPairDict, VCpuCountRange, + VCpuCountRangeDict, VCpuCountRangeRequest, + VCpuCountRangeRequestDict, VCpuInfo, ValidateSecurityGroupQuotasForInterfaceInput, + ValidateSecurityGroupQuotasForInterfaceInputDict, ValidateSecurityGroupQuotasForInterfaceOutput, ValidationError, ValidationWarning, @@ -2551,14 +3647,19 @@ VerifiedAccessInstanceUserTrustProviderClientConfiguration, VerifiedAccessLogCloudWatchLogsDestination, VerifiedAccessLogCloudWatchLogsDestinationOptions, + VerifiedAccessLogCloudWatchLogsDestinationOptionsDict, VerifiedAccessLogDeliveryStatus, VerifiedAccessLogKinesisDataFirehoseDestination, VerifiedAccessLogKinesisDataFirehoseDestinationOptions, + VerifiedAccessLogKinesisDataFirehoseDestinationOptionsDict, VerifiedAccessLogOptions, + VerifiedAccessLogOptionsDict, VerifiedAccessLogS3Destination, VerifiedAccessLogS3DestinationOptions, + VerifiedAccessLogS3DestinationOptionsDict, VerifiedAccessLogs, VerifiedAccessSseSpecificationRequest, + VerifiedAccessSseSpecificationRequestDict, VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider, VerifiedAccessTrustProviderCondensed, @@ -2566,6 +3667,7 @@ Volume, VolumeAttachment, VolumeDetail, + VolumeDetailDict, VolumeModification, VolumeRecycleBinInfo, VolumeStatusAction, @@ -2583,6 +3685,7 @@ VpcClassicLink, VpcEncryptionControl, VpcEncryptionControlConfiguration, + VpcEncryptionControlConfigurationDict, VpcEncryptionControlExclusion, VpcEncryptionControlExclusions, VpcEncryptionNonCompliantResource, @@ -2599,18 +3702,23 @@ VpnConnectionDeviceType, VpnConnectionOptions, VpnConnectionOptionsSpecification, + VpnConnectionOptionsSpecificationDict, VpnGateway, VpnStaticRoute, VpnTunnelLogOptions, VpnTunnelLogOptionsSpecification, + VpnTunnelLogOptionsSpecificationDict, VpnTunnelOptionsSpecification, + VpnTunnelOptionsSpecificationDict, WithdrawByoipCidrInput, + WithdrawByoipCidrInputDict, WithdrawByoipCidrOutput, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -5217,3 +6325,14237 @@ VpnTunnelOptionsSpecification() WithdrawByoipCidrInput() WithdrawByoipCidrOutput() +_params_0: AcceleratorCountDict = {} +_params_1: AcceleratorCountRequestDict = {} +_params_2: AcceleratorTotalMemoryMiBDict = {} +_params_3: AcceleratorTotalMemoryMiBRequestDict = {} +_params_4: AcceptAddressTransferInputDict = {"address": _} +_params_5: AcceptCapacityReservationBillingOwnershipInputDict = { + "capacity_reservation_id": _ +} +_params_6: AcceptReservedInstancesExchangeQuoteInputDict = {"reserved_instance_ids": _} +_params_7: AcceptTransitGatewayClientVpnAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_8: AcceptTransitGatewayMulticastDomainAssociationsInputDict = {} +_params_9: AcceptTransitGatewayPeeringAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_10: AcceptTransitGatewayVpcAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_11: AcceptVpcEndpointConnectionsInputDict = { + "service_id": _, + "vpc_endpoint_ids": _, +} +_params_12: AcceptVpcPeeringConnectionInputDict = {"vpc_peering_connection_id": _} +_params_13: AccessScopePathRequestDict = {} +_params_14: AddIpamOperatingRegionDict = {} +_params_15: AddIpamOrganizationalUnitExclusionDict = {} +_params_16: AddPrefixListEntryDict = {"cidr": _} +_params_17: AdvertiseByoipCidrInputDict = {"cidr": _} +_params_18: AllocateAddressInputDict = {} +_params_19: AllocateHostsInputDict = {} +_params_20: AllocateIpamPoolCidrInputDict = {"ipam_pool_id": _} +_params_21: ApplySecurityGroupsToClientVpnTargetNetworkInputDict = { + "client_vpn_endpoint_id": _, + "vpc_id": _, + "security_group_ids": _, +} +_params_22: AsnAuthorizationContextDict = {"message": _, "signature": _} +_params_23: AssignIpv6AddressesInputDict = {"network_interface_id": _} +_params_24: AssignPrivateIpAddressesInputDict = {"network_interface_id": _} +_params_25: AssignPrivateNatGatewayAddressInputDict = {"nat_gateway_id": _} +_params_26: AssociateAddressInputDict = {} +_params_27: AssociateApplicationStatusCheckInputDict = { + "application_status_check_id": _ +} +_params_28: AssociateCapacityReservationBillingOwnerInputDict = { + "capacity_reservation_id": _, + "unused_reservation_billing_owner_id": _, +} +_params_29: AssociateClientVpnTargetNetworkInputDict = {"client_vpn_endpoint_id": _} +_params_30: AssociateDhcpOptionsInputDict = {"dhcp_options_id": _, "vpc_id": _} +_params_31: AssociateEnclaveCertificateIamRoleInputDict = { + "certificate_arn": _, + "role_arn": _, +} +_params_32: AssociateIamInstanceProfileInputDict = { + "iam_instance_profile": _, + "instance_id": _, +} +_params_33: AssociateInstanceEventWindowInputDict = { + "instance_event_window_id": _, + "association_target": _, +} +_params_34: AssociateIpamByoasnInputDict = {"asn": _, "cidr": _} +_params_35: AssociateIpamResourceDiscoveryInputDict = { + "ipam_id": _, + "ipam_resource_discovery_id": _, +} +_params_36: AssociateNatGatewayAddressInputDict = { + "nat_gateway_id": _, + "allocation_ids": _, +} +_params_37: AssociateRouteServerInputDict = {"route_server_id": _, "vpc_id": _} +_params_38: AssociateRouteTableInputDict = {"route_table_id": _} +_params_39: AssociateSecurityGroupVpcInputDict = {"group_id": _, "vpc_id": _} +_params_40: AssociateSubnetCidrBlockInputDict = {"subnet_id": _} +_params_41: AssociateTransitGatewayMulticastDomainInputDict = { + "transit_gateway_multicast_domain_id": _, + "transit_gateway_attachment_id": _, + "subnet_ids": _, +} +_params_42: AssociateTransitGatewayPolicyTableInputDict = { + "transit_gateway_policy_table_id": _, + "transit_gateway_attachment_id": _, +} +_params_43: AssociateTransitGatewayRouteTableInputDict = { + "transit_gateway_route_table_id": _, + "transit_gateway_attachment_id": _, +} +_params_44: AssociateTrunkInterfaceInputDict = { + "branch_interface_id": _, + "trunk_interface_id": _, +} +_params_45: AssociateVpcCidrBlockInputDict = {"vpc_id": _} +_params_46: AthenaIntegrationDict = { + "integration_result_s3_destination_arn": _, + "partition_load_frequency": _, +} +_params_47: AttachClassicLinkVpcInputDict = {"instance_id": _, "vpc_id": _, "groups": _} +_params_48: AttachImageWatermarkInputDict = {"image_id": _, "watermark_name": _} +_params_49: AttachInternetGatewayInputDict = {"internet_gateway_id": _, "vpc_id": _} +_params_50: AttachNetworkInterfaceInputDict = { + "network_interface_id": _, + "instance_id": _, + "device_index": _, +} +_params_51: AttachVerifiedAccessTrustProviderInputDict = { + "verified_access_instance_id": _, + "verified_access_trust_provider_id": _, +} +_params_52: AttachVolumeInputDict = {"device": _, "instance_id": _, "volume_id": _} +_params_53: AttachVpnGatewayInputDict = {"vpc_id": _, "vpn_gateway_id": _} +_params_54: AttributeBooleanValueDict = {} +_params_55: AttributeValueDict = {} +_params_56: AuthorizeClientVpnIngressInputDict = { + "client_vpn_endpoint_id": _, + "target_network_cidr": _, +} +_params_57: AuthorizeSecurityGroupEgressInputDict = {"group_id": _} +_params_58: AuthorizeSecurityGroupIngressInputDict = {} +_params_59: AvailabilityZoneAddressDict = {} +_params_60: BaselineEbsBandwidthMbpsDict = {} +_params_61: BaselineEbsBandwidthMbpsRequestDict = {} +_params_62: BaselinePerformanceFactorsDict = {} +_params_63: BaselinePerformanceFactorsRequestDict = {} +_params_64: BatchModifyIpamRoutingPolicyRegistrationsInputDict = { + "ipam_internet_registry_association_id": _, + "delta_json": _, +} +_params_65: BlockDeviceMappingDict = {} +_params_66: BundleInstanceInputDict = {"instance_id": _, "storage": _} +_params_67: CancelBundleTaskInputDict = {"bundle_id": _} +_params_68: CancelCapacityReservationFleetsInputDict = { + "capacity_reservation_fleet_ids": _ +} +_params_69: CancelCapacityReservationInputDict = {"capacity_reservation_id": _} +_params_70: CancelConversionTaskInputDict = {"conversion_task_id": _} +_params_71: CancelDeclarativePoliciesReportInputDict = {"report_id": _} +_params_72: CancelExportTaskInputDict = {"export_task_id": _} +_params_73: CancelImageLaunchPermissionInputDict = {"image_id": _} +_params_74: CancelImportTaskInputDict = {} +_params_75: CancelReservedInstancesListingInputDict = { + "reserved_instances_listing_id": _ +} +_params_76: CancelSpotFleetRequestsInputDict = { + "spot_fleet_request_ids": _, + "terminate_instances": _, +} +_params_77: CancelSpotInstanceRequestsInputDict = {"spot_instance_request_ids": _} +_params_78: CapacityManagerConditionDict = {} +_params_79: CapacityReservationOptionsRequestDict = {} +_params_80: CapacityReservationSpecificationDict = {} +_params_81: CapacityReservationTargetDict = {} +_params_82: CertificateAuthenticationRequestDict = {} +_params_83: CidrAuthorizationContextDict = {"message": _, "signature": _} +_params_84: ClassicLoadBalancerDict = {} +_params_85: ClassicLoadBalancersConfigDict = {} +_params_86: ClientConnectOptionsDict = {} +_params_87: ClientDataDict = {} +_params_88: ClientLoginBannerOptionsDict = {} +_params_89: ClientRouteEnforcementOptionsDict = {} +_params_90: ClientVpnAuthenticationRequestDict = {} +_params_91: ClientVpnTrustProviderRequestDict = {} +_params_92: CloudWatchLogOptionsSpecificationDict = {} +_params_93: ConfirmProductInstanceInputDict = {"instance_id": _, "product_code": _} +_params_94: ConnectionLogOptionsDict = {} +_params_95: ConnectionTrackingSpecificationRequestDict = {} +_params_96: CopyFpgaImageInputDict = {"source_fpga_image_id": _, "source_region": _} +_params_97: CopyImageInputDict = {"name": _, "source_image_id": _, "source_region": _} +_params_98: CopySnapshotInputDict = {"source_region": _, "source_snapshot_id": _} +_params_99: CopyVolumesInputDict = {"source_volume_id": _} +_params_100: CpuOptionsRequestDict = {} +_params_101: CpuPerformanceFactorDict = {} +_params_102: CpuPerformanceFactorRequestDict = {} +_params_103: CreateApplicationStatusCheckInputDict = {"protocol": _, "port": _} +_params_104: CreateCapacityManagerDataExportInputDict = { + "s3_bucket_name": _, + "schedule": _, + "output_format": _, +} +_params_105: CreateCapacityReservationBySplittingInputDict = { + "source_capacity_reservation_id": _, + "instance_count": _, +} +_params_106: CreateCapacityReservationCancellationQuoteInputDict = { + "capacity_reservation_id": _ +} +_params_107: CreateCapacityReservationDateChangeQuoteInputDict = { + "capacity_reservation_id": _, + "new_start_date": _, +} +_params_108: CreateCapacityReservationFleetInputDict = {"total_target_capacity": _} +_params_109: CreateCapacityReservationInputDict = { + "instance_type": _, + "instance_platform": _, + "instance_count": _, +} +_params_110: CreateCarrierGatewayInputDict = {"vpc_id": _} +_params_111: CreateClientVpnEndpointInputDict = { + "server_certificate_arn": _, + "authentication_options": _, + "connection_log_options": _, +} +_params_112: CreateClientVpnRouteInputDict = { + "client_vpn_endpoint_id": _, + "destination_cidr_block": _, +} +_params_113: CreateCoipCidrInputDict = {"cidr": _, "coip_pool_id": _} +_params_114: CreateCoipPoolInputDict = {"local_gateway_route_table_id": _} +_params_115: CreateCustomerGatewayInputDict = {"type": _} +_params_116: CreateDefaultSubnetInputDict = {} +_params_117: CreateDefaultVpcInputDict = {} +_params_118: CreateDelegateMacVolumeOwnershipTaskInputDict = { + "instance_id": _, + "mac_credentials": _, +} +_params_119: CreateDhcpOptionsInputDict = {"dhcp_configurations": _} +_params_120: CreateEgressOnlyInternetGatewayInputDict = {"vpc_id": _} +_params_121: CreateFleetInputDict = { + "launch_template_configs": _, + "target_capacity_specification": _, +} +_params_122: CreateFlowLogsInputDict = {"resource_ids": _, "resource_type": _} +_params_123: CreateFpgaImageInputDict = {"input_storage_location": _} +_params_124: CreateImageInputDict = {"instance_id": _, "name": _} +_params_125: CreateImageUsageReportInputDict = {"image_id": _, "resource_types": _} +_params_126: CreateInstanceConnectEndpointInputDict = {"subnet_id": _} +_params_127: CreateInstanceEventWindowInputDict = {} +_params_128: CreateInstanceExportTaskInputDict = { + "instance_id": _, + "target_environment": _, + "export_to_s3_task": _, +} +_params_129: CreateInternetGatewayInputDict = {} +_params_130: CreateInterruptibleCapacityReservationAllocationInputDict = { + "capacity_reservation_id": _, + "instance_count": _, +} +_params_131: CreateIpamExternalResourceVerificationTokenInputDict = {"ipam_id": _} +_params_132: CreateIpamInputDict = {} +_params_133: CreateIpamInternetRegistryAssociationInputDict = { + "ipam_id": _, + "rir": _, + "organization_handle": _, +} +_params_134: CreateIpamPolicyInputDict = {"ipam_id": _} +_params_135: CreateIpamPoolInputDict = {"ipam_scope_id": _, "address_family": _} +_params_136: CreateIpamPrefixListResolverInputDict = {"ipam_id": _, "address_family": _} +_params_137: CreateIpamPrefixListResolverTargetInputDict = { + "ipam_prefix_list_resolver_id": _, + "prefix_list_id": _, + "prefix_list_region": _, + "track_latest_version": _, +} +_params_138: CreateIpamResourceDiscoveryInputDict = {} +_params_139: CreateIpamRoutingPolicyRegistrationInputDict = { + "ipam_internet_registry_association_id": _, + "cidr": _, + "asns": _, +} +_params_140: CreateIpamScopeInputDict = {"ipam_id": _} +_params_141: CreateKeyPairInputDict = {"key_name": _} +_params_142: CreateLaunchTemplateInputDict = { + "launch_template_name": _, + "launch_template_data": _, +} +_params_143: CreateLaunchTemplateVersionInputDict = {"launch_template_data": _} +_params_144: CreateLocalGatewayRouteInputDict = {"local_gateway_route_table_id": _} +_params_145: CreateLocalGatewayRouteTableInputDict = {"local_gateway_id": _} +_params_146: CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict = { + "local_gateway_route_table_id": _, + "local_gateway_virtual_interface_group_id": _, +} +_params_147: CreateLocalGatewayRouteTableVpcAssociationInputDict = { + "local_gateway_route_table_id": _, + "vpc_id": _, +} +_params_148: CreateLocalGatewayVirtualInterfaceGroupInputDict = {"local_gateway_id": _} +_params_149: CreateLocalGatewayVirtualInterfaceInputDict = { + "local_gateway_virtual_interface_group_id": _, + "outpost_lag_id": _, + "vlan": _, + "local_address": _, + "peer_address": _, +} +_params_150: CreateMacSystemIntegrityProtectionModificationTaskInputDict = { + "instance_id": _, + "mac_system_integrity_protection_status": _, +} +_params_151: CreateManagedPrefixListInputDict = { + "prefix_list_name": _, + "max_entries": _, + "address_family": _, +} +_params_152: CreateNatGatewayInputDict = {} +_params_153: CreateNetworkAclEntryInputDict = { + "network_acl_id": _, + "rule_number": _, + "protocol": _, + "rule_action": _, + "egress": _, +} +_params_154: CreateNetworkAclInputDict = {"vpc_id": _} +_params_155: CreateNetworkInsightsAccessScopeInputDict = {} +_params_156: CreateNetworkInsightsPathInputDict = {"source": _, "protocol": _} +_params_157: CreateNetworkInterfaceInputDict = {"subnet_id": _} +_params_158: CreateNetworkInterfacePermissionInputDict = { + "network_interface_id": _, + "permission": _, +} +_params_159: CreatePlacementGroupInputDict = {} +_params_160: CreatePublicIpv4PoolInputDict = {} +_params_161: CreateReplaceRootVolumeTaskInputDict = {"instance_id": _} +_params_162: CreateReservedInstancesListingInputDict = { + "reserved_instances_id": _, + "instance_count": _, + "price_schedules": _, + "client_token": _, +} +_params_163: CreateRestoreImageTaskInputDict = {"bucket": _, "object_key": _} +_params_164: CreateRouteInputDict = {"route_table_id": _} +_params_165: CreateRouteServerEndpointInputDict = {"route_server_id": _, "subnet_id": _} +_params_166: CreateRouteServerInputDict = {"amazon_side_asn": _} +_params_167: CreateRouteServerPeerInputDict = { + "route_server_endpoint_id": _, + "peer_address": _, + "bgp_options": _, +} +_params_168: CreateRouteTableInputDict = {"vpc_id": _} +_params_169: CreateSecondaryNetworkInputDict = {"ipv4_cidr_block": _, "network_type": _} +_params_170: CreateSecondarySubnetInputDict = { + "ipv4_cidr_block": _, + "secondary_network_id": _, +} +_params_171: CreateSecurityGroupInputDict = {"description": _, "group_name": _} +_params_172: CreateSnapshotInputDict = {"volume_id": _} +_params_173: CreateSnapshotsInputDict = {"instance_specification": _} +_params_174: CreateSpotDatafeedSubscriptionInputDict = {"bucket": _} +_params_175: CreateStoreImageTaskInputDict = {"image_id": _, "bucket": _} +_params_176: CreateSubnetCidrReservationInputDict = { + "subnet_id": _, + "cidr": _, + "reservation_type": _, +} +_params_177: CreateSubnetInputDict = {"vpc_id": _} +_params_178: CreateTagsInputDict = {"resources": _, "tags": _} +_params_179: CreateTrafficMirrorFilterInputDict = {} +_params_180: CreateTrafficMirrorFilterRuleInputDict = { + "traffic_mirror_filter_id": _, + "traffic_direction": _, + "rule_number": _, + "rule_action": _, + "destination_cidr_block": _, + "source_cidr_block": _, +} +_params_181: CreateTrafficMirrorSessionInputDict = { + "network_interface_id": _, + "traffic_mirror_target_id": _, + "traffic_mirror_filter_id": _, + "session_number": _, +} +_params_182: CreateTrafficMirrorTargetInputDict = {} +_params_183: CreateTransitGatewayConnectInputDict = { + "transport_transit_gateway_attachment_id": _, + "options": _, +} +_params_184: CreateTransitGatewayConnectPeerInputDict = { + "transit_gateway_attachment_id": _, + "peer_address": _, + "inside_cidr_blocks": _, +} +_params_185: CreateTransitGatewayConnectRequestOptionsDict = {"protocol": _} +_params_186: CreateTransitGatewayInputDict = {} +_params_187: CreateTransitGatewayMeteringPolicyEntryInputDict = { + "transit_gateway_metering_policy_id": _, + "policy_rule_number": _, + "metered_account": _, +} +_params_188: CreateTransitGatewayMeteringPolicyInputDict = {"transit_gateway_id": _} +_params_189: CreateTransitGatewayMulticastDomainInputDict = {"transit_gateway_id": _} +_params_190: CreateTransitGatewayMulticastDomainRequestOptionsDict = {} +_params_191: CreateTransitGatewayPeeringAttachmentInputDict = { + "transit_gateway_id": _, + "peer_transit_gateway_id": _, + "peer_account_id": _, + "peer_region": _, +} +_params_192: CreateTransitGatewayPeeringAttachmentRequestOptionsDict = {} +_params_193: CreateTransitGatewayPolicyTableEntryInputDict = { + "transit_gateway_policy_table_id": _, + "policy_rule_number": _, + "target_route_table_id": _, +} +_params_194: CreateTransitGatewayPolicyTableInputDict = {"transit_gateway_id": _} +_params_195: CreateTransitGatewayPrefixListReferenceInputDict = { + "transit_gateway_route_table_id": _, + "prefix_list_id": _, +} +_params_196: CreateTransitGatewayRouteInputDict = { + "destination_cidr_block": _, + "transit_gateway_route_table_id": _, +} +_params_197: CreateTransitGatewayRouteTableAnnouncementInputDict = { + "transit_gateway_route_table_id": _, + "peering_attachment_id": _, +} +_params_198: CreateTransitGatewayRouteTableInputDict = {"transit_gateway_id": _} +_params_199: CreateTransitGatewayVpcAttachmentInputDict = { + "transit_gateway_id": _, + "vpc_id": _, + "subnet_ids": _, +} +_params_200: CreateTransitGatewayVpcAttachmentRequestOptionsDict = {} +_params_201: CreateVerifiedAccessEndpointCidrOptionsDict = {} +_params_202: CreateVerifiedAccessEndpointEniOptionsDict = {} +_params_203: CreateVerifiedAccessEndpointInputDict = { + "verified_access_group_id": _, + "endpoint_type": _, + "attachment_type": _, +} +_params_204: CreateVerifiedAccessEndpointLoadBalancerOptionsDict = {} +_params_205: CreateVerifiedAccessEndpointPortRangeDict = {} +_params_206: CreateVerifiedAccessEndpointRdsOptionsDict = {} +_params_207: CreateVerifiedAccessGroupInputDict = {"verified_access_instance_id": _} +_params_208: CreateVerifiedAccessInstanceInputDict = {} +_params_209: CreateVerifiedAccessNativeApplicationOidcOptionsDict = {} +_params_210: CreateVerifiedAccessTrustProviderDeviceOptionsDict = {} +_params_211: CreateVerifiedAccessTrustProviderInputDict = { + "trust_provider_type": _, + "policy_reference_name": _, +} +_params_212: CreateVerifiedAccessTrustProviderOidcOptionsDict = {} +_params_213: CreateVolumeInputDict = {} +_params_214: CreateVolumePermissionDict = {} +_params_215: CreateVolumePermissionModificationsDict = {} +_params_216: CreateVpcBlockPublicAccessExclusionInputDict = { + "internet_gateway_exclusion_mode": _ +} +_params_217: CreateVpcEncryptionControlInputDict = {"vpc_id": _} +_params_218: CreateVpcEndpointConnectionNotificationInputDict = { + "connection_notification_arn": _, + "connection_events": _, +} +_params_219: CreateVpcEndpointInputDict = {"vpc_id": _} +_params_220: CreateVpcEndpointServiceConfigurationInputDict = {} +_params_221: CreateVpcInputDict = {} +_params_222: CreateVpcPeeringConnectionInputDict = {"vpc_id": _} +_params_223: CreateVpnConcentratorInputDict = {"type": _} +_params_224: CreateVpnConnectionInputDict = {"customer_gateway_id": _, "type": _} +_params_225: CreateVpnConnectionRouteInputDict = { + "destination_cidr_block": _, + "vpn_connection_id": _, +} +_params_226: CreateVpnGatewayInputDict = {"type": _} +_params_227: CreationDateConditionRequestDict = {} +_params_228: CreditSpecificationRequestDict = {"cpu_credits": _} +_params_229: CustomTagKeyValueRequestPairDict = {} +_params_230: DataQueryDict = {} +_params_231: DeleteApplicationStatusCheckInputDict = {"application_status_check_id": _} +_params_232: DeleteCapacityManagerDataExportInputDict = { + "capacity_manager_data_export_id": _ +} +_params_233: DeleteCarrierGatewayInputDict = {"carrier_gateway_id": _} +_params_234: DeleteClientVpnEndpointAuthorizationPolicyInputDict = { + "client_vpn_endpoint_id": _ +} +_params_235: DeleteClientVpnEndpointInputDict = {"client_vpn_endpoint_id": _} +_params_236: DeleteClientVpnRouteInputDict = { + "client_vpn_endpoint_id": _, + "destination_cidr_block": _, +} +_params_237: DeleteCoipCidrInputDict = {"cidr": _, "coip_pool_id": _} +_params_238: DeleteCoipPoolInputDict = {"coip_pool_id": _} +_params_239: DeleteCustomerGatewayInputDict = {"customer_gateway_id": _} +_params_240: DeleteDhcpOptionsInputDict = {"dhcp_options_id": _} +_params_241: DeleteEgressOnlyInternetGatewayInputDict = { + "egress_only_internet_gateway_id": _ +} +_params_242: DeleteFleetsInputDict = {"fleet_ids": _, "terminate_instances": _} +_params_243: DeleteFlowLogsInputDict = {"flow_log_ids": _} +_params_244: DeleteFpgaImageInputDict = {"fpga_image_id": _} +_params_245: DeleteImageUsageReportInputDict = {"report_id": _} +_params_246: DeleteInstanceConnectEndpointInputDict = { + "instance_connect_endpoint_id": _ +} +_params_247: DeleteInstanceEventWindowInputDict = {"instance_event_window_id": _} +_params_248: DeleteInternetGatewayInputDict = {"internet_gateway_id": _} +_params_249: DeleteIpamExternalResourceVerificationTokenInputDict = { + "ipam_external_resource_verification_token_id": _ +} +_params_250: DeleteIpamInputDict = {"ipam_id": _} +_params_251: DeleteIpamInternetRegistryAssociationInputDict = { + "ipam_internet_registry_association_id": _ +} +_params_252: DeleteIpamPolicyInputDict = {"ipam_policy_id": _} +_params_253: DeleteIpamPoolInputDict = {"ipam_pool_id": _} +_params_254: DeleteIpamPrefixListResolverInputDict = {"ipam_prefix_list_resolver_id": _} +_params_255: DeleteIpamPrefixListResolverTargetInputDict = { + "ipam_prefix_list_resolver_target_id": _ +} +_params_256: DeleteIpamResourceDiscoveryInputDict = {"ipam_resource_discovery_id": _} +_params_257: DeleteIpamRoutingPolicyRegistrationInputDict = { + "ipam_internet_registry_association_id": _, + "cidr": _, +} +_params_258: DeleteIpamScopeInputDict = {"ipam_scope_id": _} +_params_259: DeleteKeyPairInputDict = {} +_params_260: DeleteLaunchTemplateInputDict = {} +_params_261: DeleteLaunchTemplateVersionsInputDict = {"versions": _} +_params_262: DeleteLocalGatewayRouteInputDict = {"local_gateway_route_table_id": _} +_params_263: DeleteLocalGatewayRouteTableInputDict = {"local_gateway_route_table_id": _} +_params_264: DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict = { + "local_gateway_route_table_virtual_interface_group_association_id": _ +} +_params_265: DeleteLocalGatewayRouteTableVpcAssociationInputDict = { + "local_gateway_route_table_vpc_association_id": _ +} +_params_266: DeleteLocalGatewayVirtualInterfaceGroupInputDict = { + "local_gateway_virtual_interface_group_id": _ +} +_params_267: DeleteLocalGatewayVirtualInterfaceInputDict = { + "local_gateway_virtual_interface_id": _ +} +_params_268: DeleteManagedPrefixListInputDict = {"prefix_list_id": _} +_params_269: DeleteNatGatewayInputDict = {"nat_gateway_id": _} +_params_270: DeleteNetworkAclEntryInputDict = { + "network_acl_id": _, + "rule_number": _, + "egress": _, +} +_params_271: DeleteNetworkAclInputDict = {"network_acl_id": _} +_params_272: DeleteNetworkInsightsAccessScopeAnalysisInputDict = { + "network_insights_access_scope_analysis_id": _ +} +_params_273: DeleteNetworkInsightsAccessScopeInputDict = { + "network_insights_access_scope_id": _ +} +_params_274: DeleteNetworkInsightsAnalysisInputDict = { + "network_insights_analysis_id": _ +} +_params_275: DeleteNetworkInsightsPathInputDict = {"network_insights_path_id": _} +_params_276: DeleteNetworkInterfaceInputDict = {"network_interface_id": _} +_params_277: DeleteNetworkInterfacePermissionInputDict = { + "network_interface_permission_id": _ +} +_params_278: DeletePlacementGroupInputDict = {"group_name": _} +_params_279: DeletePublicIpv4PoolInputDict = {"pool_id": _} +_params_280: DeleteQueuedReservedInstancesInputDict = {"reserved_instances_ids": _} +_params_281: DeleteRouteInputDict = {"route_table_id": _} +_params_282: DeleteRouteServerEndpointInputDict = {"route_server_endpoint_id": _} +_params_283: DeleteRouteServerInputDict = {"route_server_id": _} +_params_284: DeleteRouteServerPeerInputDict = {"route_server_peer_id": _} +_params_285: DeleteRouteTableInputDict = {"route_table_id": _} +_params_286: DeleteSecondaryNetworkInputDict = {"secondary_network_id": _} +_params_287: DeleteSecondarySubnetInputDict = {"secondary_subnet_id": _} +_params_288: DeleteSecurityGroupInputDict = {} +_params_289: DeleteSnapshotInputDict = {"snapshot_id": _} +_params_290: DeleteSpotDatafeedSubscriptionInputDict = {} +_params_291: DeleteSubnetCidrReservationInputDict = {"subnet_cidr_reservation_id": _} +_params_292: DeleteSubnetInputDict = {"subnet_id": _} +_params_293: DeleteTagsInputDict = {"resources": _} +_params_294: DeleteTrafficMirrorFilterInputDict = {"traffic_mirror_filter_id": _} +_params_295: DeleteTrafficMirrorFilterRuleInputDict = { + "traffic_mirror_filter_rule_id": _ +} +_params_296: DeleteTrafficMirrorSessionInputDict = {"traffic_mirror_session_id": _} +_params_297: DeleteTrafficMirrorTargetInputDict = {"traffic_mirror_target_id": _} +_params_298: DeleteTransitGatewayClientVpnAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_299: DeleteTransitGatewayConnectInputDict = {"transit_gateway_attachment_id": _} +_params_300: DeleteTransitGatewayConnectPeerInputDict = { + "transit_gateway_connect_peer_id": _ +} +_params_301: DeleteTransitGatewayInputDict = {"transit_gateway_id": _} +_params_302: DeleteTransitGatewayMeteringPolicyEntryInputDict = { + "transit_gateway_metering_policy_id": _, + "policy_rule_number": _, +} +_params_303: DeleteTransitGatewayMeteringPolicyInputDict = { + "transit_gateway_metering_policy_id": _ +} +_params_304: DeleteTransitGatewayMulticastDomainInputDict = { + "transit_gateway_multicast_domain_id": _ +} +_params_305: DeleteTransitGatewayPeeringAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_306: DeleteTransitGatewayPolicyTableEntryInputDict = { + "transit_gateway_policy_table_id": _, + "policy_rule_number": _, +} +_params_307: DeleteTransitGatewayPolicyTableInputDict = { + "transit_gateway_policy_table_id": _ +} +_params_308: DeleteTransitGatewayPrefixListReferenceInputDict = { + "transit_gateway_route_table_id": _, + "prefix_list_id": _, +} +_params_309: DeleteTransitGatewayRouteInputDict = { + "transit_gateway_route_table_id": _, + "destination_cidr_block": _, +} +_params_310: DeleteTransitGatewayRouteTableAnnouncementInputDict = { + "transit_gateway_route_table_announcement_id": _ +} +_params_311: DeleteTransitGatewayRouteTableInputDict = { + "transit_gateway_route_table_id": _ +} +_params_312: DeleteTransitGatewayVpcAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_313: DeleteVerifiedAccessEndpointInputDict = {"verified_access_endpoint_id": _} +_params_314: DeleteVerifiedAccessGroupInputDict = {"verified_access_group_id": _} +_params_315: DeleteVerifiedAccessInstanceInputDict = {"verified_access_instance_id": _} +_params_316: DeleteVerifiedAccessTrustProviderInputDict = { + "verified_access_trust_provider_id": _ +} +_params_317: DeleteVolumeInputDict = {"volume_id": _} +_params_318: DeleteVpcBlockPublicAccessExclusionInputDict = {"exclusion_id": _} +_params_319: DeleteVpcEncryptionControlInputDict = {"vpc_encryption_control_id": _} +_params_320: DeleteVpcEndpointConnectionNotificationsInputDict = { + "connection_notification_ids": _ +} +_params_321: DeleteVpcEndpointServiceConfigurationsInputDict = {"service_ids": _} +_params_322: DeleteVpcEndpointsInputDict = {"vpc_endpoint_ids": _} +_params_323: DeleteVpcInputDict = {"vpc_id": _} +_params_324: DeleteVpcPeeringConnectionInputDict = {"vpc_peering_connection_id": _} +_params_325: DeleteVpnConcentratorInputDict = {"vpn_concentrator_id": _} +_params_326: DeleteVpnConnectionInputDict = {"vpn_connection_id": _} +_params_327: DeleteVpnConnectionRouteInputDict = { + "destination_cidr_block": _, + "vpn_connection_id": _, +} +_params_328: DeleteVpnGatewayInputDict = {"vpn_gateway_id": _} +_params_329: DeprecationTimeConditionRequestDict = {} +_params_330: DeprovisionByoipCidrInputDict = {"cidr": _} +_params_331: DeprovisionIpamByoasnInputDict = {"ipam_id": _, "asn": _} +_params_332: DeprovisionIpamPoolCidrInputDict = {"ipam_pool_id": _} +_params_333: DeprovisionPublicIpv4PoolCidrInputDict = {"pool_id": _, "cidr": _} +_params_334: DeregisterImageInputDict = {"image_id": _} +_params_335: DeregisterInstanceEventNotificationAttributesInputDict = { + "instance_tag_attribute": _ +} +_params_336: DeregisterInstanceTagAttributeRequestDict = {} +_params_337: DeregisterTransitGatewayMulticastGroupMembersInputDict = {} +_params_338: DeregisterTransitGatewayMulticastGroupSourcesInputDict = {} +_params_339: DescribeAccountAttributesInputDict = {} +_params_340: DescribeAccountVpcEncryptionControlInputDict = {} +_params_341: DescribeAddressesAttributeInputDict = {} +_params_342: DescribeAddressesInputDict = {} +_params_343: DescribeAddressTransfersInputDict = {} +_params_344: DescribeAggregateIdFormatInputDict = {} +_params_345: DescribeApplicationStatusCheckAssociationsInputDict = {} +_params_346: DescribeApplicationStatusChecksInputDict = {} +_params_347: DescribeApplicationStatusInputDict = {} +_params_348: DescribeAvailabilityZonesInputDict = {} +_params_349: DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict = {} +_params_350: DescribeBundleTasksInputDict = {} +_params_351: DescribeByoipCidrsInputDict = {"max_results": _} +_params_352: DescribeCapacityBlockExtensionHistoryInputDict = {} +_params_353: DescribeCapacityBlockExtensionOfferingsInputDict = { + "capacity_block_extension_duration_hours": _, + "capacity_reservation_id": _, +} +_params_354: DescribeCapacityBlockOfferingsInputDict = {"capacity_duration_hours": _} +_params_355: DescribeCapacityBlocksInputDict = {} +_params_356: DescribeCapacityBlockStatusInputDict = {} +_params_357: DescribeCapacityManagerDataExportsInputDict = {} +_params_358: DescribeCapacityReservationBillingRequestsInputDict = {"role": _} +_params_359: DescribeCapacityReservationCancellationQuotesInputDict = {} +_params_360: DescribeCapacityReservationDateChangeQuotesInputDict = {} +_params_361: DescribeCapacityReservationFleetsInputDict = {} +_params_362: DescribeCapacityReservationsInputDict = {} +_params_363: DescribeCapacityReservationTopologyInputDict = {} +_params_364: DescribeCarrierGatewaysInputDict = {} +_params_365: DescribeClassicLinkInstancesInputDict = {} +_params_366: DescribeClientVpnAuthorizationRulesInputDict = { + "client_vpn_endpoint_id": _ +} +_params_367: DescribeClientVpnConnectionsInputDict = {"client_vpn_endpoint_id": _} +_params_368: DescribeClientVpnEndpointsInputDict = {} +_params_369: DescribeClientVpnRoutesInputDict = {"client_vpn_endpoint_id": _} +_params_370: DescribeClientVpnTargetNetworksInputDict = {"client_vpn_endpoint_id": _} +_params_371: DescribeCoipPoolsInputDict = {} +_params_372: DescribeConversionTasksInputDict = {} +_params_373: DescribeCustomerGatewaysInputDict = {} +_params_374: DescribeDeclarativePoliciesReportsInputDict = {} +_params_375: DescribeDhcpOptionsInputDict = {} +_params_376: DescribeEgressOnlyInternetGatewaysInputDict = {} +_params_377: DescribeElasticGpusInputDict = {} +_params_378: DescribeExportImageTasksInputDict = {} +_params_379: DescribeExportTasksInputDict = {} +_params_380: DescribeFastLaunchImagesInputDict = {} +_params_381: DescribeFastSnapshotRestoresInputDict = {} +_params_382: DescribeFleetHistoryInputDict = {"fleet_id": _, "start_time": _} +_params_383: DescribeFleetInstancesInputDict = {"fleet_id": _} +_params_384: DescribeFleetsInputDict = {} +_params_385: DescribeFlowLogsInputDict = {} +_params_386: DescribeFpgaImageAttributeInputDict = {"fpga_image_id": _, "attribute": _} +_params_387: DescribeFpgaImagesInputDict = {} +_params_388: DescribeHostReservationOfferingsInputDict = {} +_params_389: DescribeHostReservationsInputDict = {} +_params_390: DescribeHostsInputDict = {} +_params_391: DescribeIamInstanceProfileAssociationsInputDict = {} +_params_392: DescribeIdentityIdFormatInputDict = {"principal_arn": _} +_params_393: DescribeIdFormatInputDict = {} +_params_394: DescribeImageAttributeInputDict = {"attribute": _, "image_id": _} +_params_395: DescribeImageReferencesInputDict = {"image_ids": _} +_params_396: DescribeImagesInputDict = {} +_params_397: DescribeImageUsageReportEntriesInputDict = {} +_params_398: DescribeImageUsageReportsInputDict = {} +_params_399: DescribeImportImageTasksInputDict = {} +_params_400: DescribeImportSnapshotTasksInputDict = {} +_params_401: DescribeInstanceAttributeInputDict = {"instance_id": _, "attribute": _} +_params_402: DescribeInstanceConnectEndpointsInputDict = {} +_params_403: DescribeInstanceCreditSpecificationsInputDict = {} +_params_404: DescribeInstanceEventNotificationAttributesInputDict = {} +_params_405: DescribeInstanceEventWindowsInputDict = {} +_params_406: DescribeInstanceImageMetadataInputDict = {} +_params_407: DescribeInstancesInputDict = {} +_params_408: DescribeInstanceSqlHaHistoryStatesInputDict = {} +_params_409: DescribeInstanceSqlHaStatesInputDict = {} +_params_410: DescribeInstanceStatusInputDict = {} +_params_411: DescribeInstanceTopologyInputDict = {} +_params_412: DescribeInstanceTypeOfferingsInputDict = {} +_params_413: DescribeInstanceTypesInputDict = {} +_params_414: DescribeInternetGatewaysInputDict = {} +_params_415: DescribeIpamByoasnInputDict = {} +_params_416: DescribeIpamExternalResourceVerificationTokensInputDict = {} +_params_417: DescribeIpamInternetRegistryAssociationsInputDict = {} +_params_418: DescribeIpamPoliciesInputDict = {} +_params_419: DescribeIpamPoolAllocationsInputDict = {} +_params_420: DescribeIpamPoolsInputDict = {} +_params_421: DescribeIpamPrefixListResolversInputDict = {} +_params_422: DescribeIpamPrefixListResolverTargetsInputDict = {} +_params_423: DescribeIpamResourceDiscoveriesInputDict = {} +_params_424: DescribeIpamResourceDiscoveryAssociationsInputDict = {} +_params_425: DescribeIpamScopesInputDict = {} +_params_426: DescribeIpamsInputDict = {} +_params_427: DescribeIpv6PoolsInputDict = {} +_params_428: DescribeKeyPairsInputDict = {} +_params_429: DescribeLaunchTemplatesInputDict = {} +_params_430: DescribeLaunchTemplateVersionsInputDict = {} +_params_431: DescribeLocalGatewayRouteTablesInputDict = {} +_params_432: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict = {} +_params_433: DescribeLocalGatewayRouteTableVpcAssociationsInputDict = {} +_params_434: DescribeLocalGatewaysInputDict = {} +_params_435: DescribeLocalGatewayVirtualInterfaceGroupsInputDict = {} +_params_436: DescribeLocalGatewayVirtualInterfacesInputDict = {} +_params_437: DescribeLockedSnapshotsInputDict = {} +_params_438: DescribeMacHostsInputDict = {} +_params_439: DescribeMacModificationTasksInputDict = {} +_params_440: DescribeManagedPrefixListsInputDict = {} +_params_441: DescribeMovingAddressesInputDict = {} +_params_442: DescribeNatGatewaysInputDict = {} +_params_443: DescribeNetworkAclsInputDict = {} +_params_444: DescribeNetworkInsightsAccessScopeAnalysesInputDict = {} +_params_445: DescribeNetworkInsightsAccessScopesInputDict = {} +_params_446: DescribeNetworkInsightsAnalysesInputDict = {} +_params_447: DescribeNetworkInsightsPathsInputDict = {} +_params_448: DescribeNetworkInterfaceAttributeInputDict = {"network_interface_id": _} +_params_449: DescribeNetworkInterfacePermissionsInputDict = {} +_params_450: DescribeNetworkInterfacesInputDict = {} +_params_451: DescribeOutpostLagsInputDict = {} +_params_452: DescribePlacementGroupsInputDict = {} +_params_453: DescribePrefixListsInputDict = {} +_params_454: DescribePrincipalIdFormatInputDict = {} +_params_455: DescribePublicIpv4PoolsInputDict = {} +_params_456: DescribeRegionsInputDict = {} +_params_457: DescribeReplaceRootVolumeTasksInputDict = {} +_params_458: DescribeReservedInstancesInputDict = {} +_params_459: DescribeReservedInstancesListingsInputDict = {} +_params_460: DescribeReservedInstancesModificationsInputDict = {} +_params_461: DescribeReservedInstancesOfferingsInputDict = {} +_params_462: DescribeRouteServerEndpointsInputDict = {} +_params_463: DescribeRouteServerPeersInputDict = {} +_params_464: DescribeRouteServersInputDict = {} +_params_465: DescribeRouteTablesInputDict = {} +_params_466: DescribeScheduledInstanceAvailabilityInputDict = { + "first_slot_start_time_range": _, + "recurrence": _, +} +_params_467: DescribeScheduledInstancesInputDict = {} +_params_468: DescribeSecondaryInterfacesInputDict = {} +_params_469: DescribeSecondaryNetworksInputDict = {} +_params_470: DescribeSecondarySubnetsInputDict = {} +_params_471: DescribeSecurityGroupReferencesInputDict = {"group_id": _} +_params_472: DescribeSecurityGroupRulesInputDict = {} +_params_473: DescribeSecurityGroupsInputDict = {} +_params_474: DescribeSecurityGroupVpcAssociationsInputDict = {} +_params_475: DescribeServiceLinkVirtualInterfacesInputDict = {} +_params_476: DescribeSnapshotAttributeInputDict = {"attribute": _, "snapshot_id": _} +_params_477: DescribeSnapshotsInputDict = {} +_params_478: DescribeSnapshotTierStatusInputDict = {} +_params_479: DescribeSpotDatafeedSubscriptionInputDict = {} +_params_480: DescribeSpotFleetInstancesInputDict = {"spot_fleet_request_id": _} +_params_481: DescribeSpotFleetRequestHistoryInputDict = { + "spot_fleet_request_id": _, + "start_time": _, +} +_params_482: DescribeSpotFleetRequestsInputDict = {} +_params_483: DescribeSpotInstanceRequestsInputDict = {} +_params_484: DescribeSpotPriceHistoryInputDict = {} +_params_485: DescribeStaleSecurityGroupsInputDict = {"vpc_id": _} +_params_486: DescribeStoreImageTasksInputDict = {} +_params_487: DescribeSubnetsInputDict = {} +_params_488: DescribeTagsInputDict = {} +_params_489: DescribeTrafficMirrorFilterRulesInputDict = {} +_params_490: DescribeTrafficMirrorFiltersInputDict = {} +_params_491: DescribeTrafficMirrorSessionsInputDict = {} +_params_492: DescribeTrafficMirrorTargetsInputDict = {} +_params_493: DescribeTransitGatewayAttachmentsInputDict = {} +_params_494: DescribeTransitGatewayConnectPeersInputDict = {} +_params_495: DescribeTransitGatewayConnectsInputDict = {} +_params_496: DescribeTransitGatewayMeteringPoliciesInputDict = {} +_params_497: DescribeTransitGatewayMulticastDomainsInputDict = {} +_params_498: DescribeTransitGatewayPeeringAttachmentsInputDict = {} +_params_499: DescribeTransitGatewayPolicyTablesInputDict = {} +_params_500: DescribeTransitGatewayRouteTableAnnouncementsInputDict = {} +_params_501: DescribeTransitGatewayRouteTablesInputDict = {} +_params_502: DescribeTransitGatewaysInputDict = {} +_params_503: DescribeTransitGatewayVpcAttachmentsInputDict = {} +_params_504: DescribeTrunkInterfaceAssociationsInputDict = {} +_params_505: DescribeVerifiedAccessEndpointsInputDict = {} +_params_506: DescribeVerifiedAccessGroupsInputDict = {} +_params_507: DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict = {} +_params_508: DescribeVerifiedAccessInstancesInputDict = {} +_params_509: DescribeVerifiedAccessTrustProvidersInputDict = {} +_params_510: DescribeVolumeAttributeInputDict = {"attribute": _, "volume_id": _} +_params_511: DescribeVolumesInputDict = {} +_params_512: DescribeVolumesModificationsInputDict = {} +_params_513: DescribeVolumeStatusInputDict = {} +_params_514: DescribeVpcAttributeInputDict = {"attribute": _, "vpc_id": _} +_params_515: DescribeVpcBlockPublicAccessExclusionsInputDict = {} +_params_516: DescribeVpcBlockPublicAccessOptionsInputDict = {} +_params_517: DescribeVpcClassicLinkDnsSupportInputDict = {} +_params_518: DescribeVpcClassicLinkInputDict = {} +_params_519: DescribeVpcEncryptionControlsInputDict = {} +_params_520: DescribeVpcEndpointAssociationsInputDict = {} +_params_521: DescribeVpcEndpointConnectionNotificationsInputDict = {} +_params_522: DescribeVpcEndpointConnectionsInputDict = {} +_params_523: DescribeVpcEndpointServiceConfigurationsInputDict = {} +_params_524: DescribeVpcEndpointServicePermissionsInputDict = {"service_id": _} +_params_525: DescribeVpcEndpointServicesInputDict = {} +_params_526: DescribeVpcEndpointsInputDict = {} +_params_527: DescribeVpcPeeringConnectionsInputDict = {} +_params_528: DescribeVpcsInputDict = {} +_params_529: DescribeVpnConcentratorsInputDict = {} +_params_530: DescribeVpnConnectionsInputDict = {} +_params_531: DescribeVpnGatewaysInputDict = {} +_params_532: DestinationOptionsRequestDict = {} +_params_533: DetachClassicLinkVpcInputDict = {"instance_id": _, "vpc_id": _} +_params_534: DetachImageWatermarkInputDict = {"image_id": _, "watermark_key": _} +_params_535: DetachInternetGatewayInputDict = {"internet_gateway_id": _, "vpc_id": _} +_params_536: DetachNetworkInterfaceInputDict = {"attachment_id": _} +_params_537: DetachVerifiedAccessTrustProviderInputDict = { + "verified_access_instance_id": _, + "verified_access_trust_provider_id": _, +} +_params_538: DetachVolumeInputDict = {"volume_id": _} +_params_539: DetachVpnGatewayInputDict = {"vpc_id": _, "vpn_gateway_id": _} +_params_540: DevicePostureOptionsDict = {} +_params_541: DimensionConditionDict = {} +_params_542: DirectoryServiceAuthenticationRequestDict = {} +_params_543: DisableAddressTransferInputDict = {"allocation_id": _} +_params_544: DisableAllowedImagesSettingsInputDict = {} +_params_545: DisableApplicationStatusCheckSuppressionInputDict = {} +_params_546: DisableAwsNetworkPerformanceMetricSubscriptionInputDict = {} +_params_547: DisableCapacityManagerInputDict = {} +_params_548: DisableEbsEncryptionByDefaultInputDict = {} +_params_549: DisableFastLaunchInputDict = {"image_id": _} +_params_550: DisableFastSnapshotRestoresInputDict = {"source_snapshot_ids": _} +_params_551: DisableImageBlockPublicAccessInputDict = {} +_params_552: DisableImageDeprecationInputDict = {"image_id": _} +_params_553: DisableImageDeregistrationProtectionInputDict = {"image_id": _} +_params_554: DisableImageInputDict = {"image_id": _} +_params_555: DisableInstanceSqlHaStandbyDetectionsInputDict = {"instance_ids": _} +_params_556: DisableIpamOrganizationAdminAccountInputDict = { + "delegated_admin_account_id": _ +} +_params_557: DisableIpamPolicyInputDict = {"ipam_policy_id": _} +_params_558: DisableRouteServerPropagationInputDict = { + "route_server_id": _, + "route_table_id": _, +} +_params_559: DisableSerialConsoleAccessInputDict = {} +_params_560: DisableSnapshotBlockPublicAccessInputDict = {} +_params_561: DisableTransitGatewayRouteTablePropagationInputDict = { + "transit_gateway_route_table_id": _ +} +_params_562: DisableVgwRoutePropagationInputDict = { + "gateway_id": _, + "route_table_id": _, +} +_params_563: DisableVpcClassicLinkDnsSupportInputDict = {} +_params_564: DisableVpcClassicLinkInputDict = {"vpc_id": _} +_params_565: DisassociateAddressInputDict = {} +_params_566: DisassociateApplicationStatusCheckInputDict = { + "application_status_check_id": _ +} +_params_567: DisassociateCapacityReservationBillingOwnerInputDict = { + "capacity_reservation_id": _, + "unused_reservation_billing_owner_id": _, +} +_params_568: DisassociateClientVpnTargetNetworkInputDict = { + "client_vpn_endpoint_id": _, + "association_id": _, +} +_params_569: DisassociateEnclaveCertificateIamRoleInputDict = { + "certificate_arn": _, + "role_arn": _, +} +_params_570: DisassociateIamInstanceProfileInputDict = {"association_id": _} +_params_571: DisassociateInstanceEventWindowInputDict = { + "instance_event_window_id": _, + "association_target": _, +} +_params_572: DisassociateIpamByoasnInputDict = {"asn": _, "cidr": _} +_params_573: DisassociateIpamResourceDiscoveryInputDict = { + "ipam_resource_discovery_association_id": _ +} +_params_574: DisassociateNatGatewayAddressInputDict = { + "nat_gateway_id": _, + "association_ids": _, +} +_params_575: DisassociateRouteServerInputDict = {"route_server_id": _, "vpc_id": _} +_params_576: DisassociateRouteTableInputDict = {"association_id": _} +_params_577: DisassociateSecurityGroupVpcInputDict = {"group_id": _, "vpc_id": _} +_params_578: DisassociateSubnetCidrBlockInputDict = {"association_id": _} +_params_579: DisassociateTransitGatewayMulticastDomainInputDict = { + "transit_gateway_multicast_domain_id": _, + "transit_gateway_attachment_id": _, + "subnet_ids": _, +} +_params_580: DisassociateTransitGatewayPolicyTableInputDict = { + "transit_gateway_policy_table_id": _, + "transit_gateway_attachment_id": _, +} +_params_581: DisassociateTransitGatewayRouteTableInputDict = { + "transit_gateway_route_table_id": _, + "transit_gateway_attachment_id": _, +} +_params_582: DisassociateTrunkInterfaceInputDict = {"association_id": _} +_params_583: DisassociateVpcCidrBlockInputDict = {"association_id": _} +_params_584: DiskImageDict = {} +_params_585: DiskImageDetailDict = {"format": _, "bytes_": _, "import_manifest_url": _} +_params_586: DnsOptionsSpecificationDict = {} +_params_587: DnsServersOptionsModifyStructureDict = {} +_params_588: EbsBlockDeviceDict = {} +_params_589: EbsInstanceBlockDeviceSpecificationDict = {} +_params_590: ElasticGpuSpecificationDict = {"type": _} +_params_591: ElasticInferenceAcceleratorDict = {"type": _} +_params_592: EnableAddressTransferInputDict = { + "allocation_id": _, + "transfer_account_id": _, +} +_params_593: EnableAllowedImagesSettingsInputDict = {"allowed_images_settings_state": _} +_params_594: EnableApplicationStatusCheckSuppressionInputDict = {} +_params_595: EnableAwsNetworkPerformanceMetricSubscriptionInputDict = {} +_params_596: EnableCapacityManagerInputDict = {} +_params_597: EnableEbsEncryptionByDefaultInputDict = {} +_params_598: EnableFastLaunchInputDict = {"image_id": _} +_params_599: EnableFastSnapshotRestoresInputDict = {"source_snapshot_ids": _} +_params_600: EnableImageBlockPublicAccessInputDict = { + "image_block_public_access_state": _ +} +_params_601: EnableImageDeprecationInputDict = {"image_id": _, "deprecate_at": _} +_params_602: EnableImageDeregistrationProtectionInputDict = {"image_id": _} +_params_603: EnableImageInputDict = {"image_id": _} +_params_604: EnableInstanceSqlHaStandbyDetectionsInputDict = {"instance_ids": _} +_params_605: EnableIpamInternetRegistryAssociationInputDict = { + "ipam_internet_registry_association_id": _, + "rpki_version": _, + "service_uri": _, + "child_handle": _, + "parent_handle": _, + "parent_bpki_ta": _, +} +_params_606: EnableIpamOrganizationAdminAccountInputDict = { + "delegated_admin_account_id": _ +} +_params_607: EnableIpamPolicyInputDict = {"ipam_policy_id": _} +_params_608: EnableReachabilityAnalyzerOrganizationSharingInputDict = {} +_params_609: EnableRouteServerPropagationInputDict = { + "route_server_id": _, + "route_table_id": _, +} +_params_610: EnableSerialConsoleAccessInputDict = {} +_params_611: EnableSnapshotBlockPublicAccessInputDict = {"state": _} +_params_612: EnableTransitGatewayRouteTablePropagationInputDict = { + "transit_gateway_route_table_id": _ +} +_params_613: EnableVgwRoutePropagationInputDict = {"gateway_id": _, "route_table_id": _} +_params_614: EnableVolumeIOInputDict = {"volume_id": _} +_params_615: EnableVpcClassicLinkDnsSupportInputDict = {} +_params_616: EnableVpcClassicLinkInputDict = {"vpc_id": _} +_params_617: EnaSrdSpecificationDict = {} +_params_618: EnaSrdSpecificationRequestDict = {} +_params_619: EnaSrdUdpSpecificationDict = {} +_params_620: EnaSrdUdpSpecificationRequestDict = {} +_params_621: EnclaveOptionsRequestDict = {} +_params_622: ExportClientVpnClientCertificateRevocationListInputDict = { + "client_vpn_endpoint_id": _ +} +_params_623: ExportClientVpnClientConfigurationInputDict = {"client_vpn_endpoint_id": _} +_params_624: ExportImageInputDict = { + "disk_image_format": _, + "image_id": _, + "s3_export_location": _, +} +_params_625: ExportTaskS3LocationRequestDict = {"s3_bucket": _} +_params_626: ExportToS3TaskSpecificationDict = {} +_params_627: ExportTransitGatewayRoutesInputDict = { + "transit_gateway_route_table_id": _, + "s3_bucket": _, +} +_params_628: ExportVerifiedAccessInstanceClientConfigurationInputDict = { + "verified_access_instance_id": _ +} +_params_629: ExternalAuthorityConfigurationDict = {} +_params_630: FastLaunchLaunchTemplateSpecificationRequestDict = {"version": _} +_params_631: FastLaunchSnapshotConfigurationRequestDict = {} +_params_632: FederatedAuthenticationRequestDict = {} +_params_633: FilterDict = {} +_params_634: FleetBlockDeviceMappingRequestDict = {} +_params_635: FleetCapacityReservationTargetRequestDict = {} +_params_636: FleetEbsBlockDeviceRequestDict = {} +_params_637: FleetIamInstanceProfileSpecificationRequestDict = {} +_params_638: FleetInstanceMetadataOptionsRequestDict = {} +_params_639: FleetLaunchTemplateConfigRequestDict = {} +_params_640: FleetLaunchTemplateOverridesRequestDict = {} +_params_641: FleetLaunchTemplateSpecificationDict = {} +_params_642: FleetLaunchTemplateSpecificationRequestDict = {} +_params_643: FleetSpotCapacityRebalanceRequestDict = {} +_params_644: FleetSpotMaintenanceStrategiesRequestDict = {} +_params_645: GetActiveVpnTunnelStatusInputDict = { + "vpn_connection_id": _, + "vpn_tunnel_outside_ip_address": _, +} +_params_646: GetAllowedImagesSettingsInputDict = {} +_params_647: GetAssociatedEnclaveCertificateIamRolesInputDict = {"certificate_arn": _} +_params_648: GetAssociatedIpv6PoolCidrsInputDict = {"pool_id": _} +_params_649: GetAwsNetworkPerformanceDataInputDict = {} +_params_650: GetCapacityManagerAttributesInputDict = {} +_params_651: GetCapacityManagerMetricDataInputDict = { + "metric_names": _, + "start_time": _, + "end_time": _, + "period": _, +} +_params_652: GetCapacityManagerMetricDimensionsInputDict = { + "group_by": _, + "start_time": _, + "end_time": _, + "metric_names": _, +} +_params_653: GetCapacityManagerMonitoredTagKeysInputDict = {} +_params_654: GetCapacityManagerSupportabilityScoresInputDict = { + "market_type": _, + "capacity_amount": _, + "capacity_unit": _, + "capacity_availability_zone_ids": _, +} +_params_655: GetCapacityReservationUsageInputDict = {"capacity_reservation_id": _} +_params_656: GetClientVpnEndpointAuthorizationPolicyInputDict = { + "client_vpn_endpoint_id": _ +} +_params_657: GetCoipPoolUsageInputDict = {"pool_id": _} +_params_658: GetConsoleOutputInputDict = {"instance_id": _} +_params_659: GetConsoleScreenshotInputDict = {"instance_id": _} +_params_660: GetDeclarativePoliciesReportSummaryInputDict = {"report_id": _} +_params_661: GetDefaultCreditSpecificationInputDict = {"instance_family": _} +_params_662: GetEbsDefaultKmsKeyIdInputDict = {} +_params_663: GetEbsEncryptionByDefaultInputDict = {} +_params_664: GetEnabledIpamPolicyInputDict = {} +_params_665: GetFlowLogsIntegrationTemplateInputDict = { + "flow_log_id": _, + "config_delivery_s3_destination_arn": _, + "integrate_services": _, +} +_params_666: GetGroupsForCapacityReservationInputDict = {"capacity_reservation_id": _} +_params_667: GetHostReservationPurchasePreviewInputDict = { + "host_id_set": _, + "offering_id": _, +} +_params_668: GetImageAncestryInputDict = {"image_id": _} +_params_669: GetImageBlockPublicAccessStateInputDict = {} +_params_670: GetImageFindingsInputDict = {"image_id": _} +_params_671: GetInstanceMetadataDefaultsInputDict = {} +_params_672: GetInstanceTpmEkPubInputDict = { + "instance_id": _, + "key_type": _, + "key_format": _, +} +_params_673: GetInstanceTypesFromInstanceRequirementsInputDict = { + "architecture_types": _, + "virtualization_types": _, + "instance_requirements": _, +} +_params_674: GetInstanceUefiDataInputDict = {"instance_id": _} +_params_675: GetIpamAddressHistoryInputDict = {"cidr": _, "ipam_scope_id": _} +_params_676: GetIpamDiscoveredAccountsInputDict = { + "ipam_resource_discovery_id": _, + "discovery_region": _, +} +_params_677: GetIpamDiscoveredPublicAddressesInputDict = { + "ipam_resource_discovery_id": _, + "address_region": _, +} +_params_678: GetIpamDiscoveredResourceCidrsInputDict = { + "ipam_resource_discovery_id": _, + "resource_region": _, +} +_params_679: GetIpamDiscoveredRoutesInputDict = { + "ipam_resource_discovery_id": _, + "resource_region": _, +} +_params_680: GetIpamInternetRegistryAssociationAsnsInputDict = { + "ipam_internet_registry_association_id": _ +} +_params_681: GetIpamInternetRegistryAssociationCidrsInputDict = { + "ipam_internet_registry_association_id": _ +} +_params_682: GetIpamPolicyAllocationRulesInputDict = {"ipam_policy_id": _} +_params_683: GetIpamPolicyOrganizationTargetsInputDict = {"ipam_policy_id": _} +_params_684: GetIpamPoolAllocationsInputDict = {"ipam_pool_id": _} +_params_685: GetIpamPoolCidrsInputDict = {"ipam_pool_id": _} +_params_686: GetIpamPrefixListResolverRulesInputDict = { + "ipam_prefix_list_resolver_id": _ +} +_params_687: GetIpamPrefixListResolverVersionEntriesInputDict = { + "ipam_prefix_list_resolver_id": _, + "ipam_prefix_list_resolver_version": _, +} +_params_688: GetIpamPrefixListResolverVersionsInputDict = { + "ipam_prefix_list_resolver_id": _ +} +_params_689: GetIpamResourceCidrsInputDict = {"ipam_scope_id": _} +_params_690: GetIpamRouteOriginAuthorizationsInputDict = { + "ipam_internet_registry_association_id": _ +} +_params_691: GetIpamRouteProtectionFindingsInputDict = {"ipam_id": _} +_params_692: GetIpamRoutingPolicyRegistrationDeltasInputDict = { + "ipam_internet_registry_association_id": _ +} +_params_693: GetIpamRoutingPolicyRegistrationsInputDict = { + "ipam_internet_registry_association_id": _ +} +_params_694: GetLaunchTemplateDataInputDict = {"instance_id": _} +_params_695: GetManagedPrefixListAssociationsInputDict = {"prefix_list_id": _} +_params_696: GetManagedPrefixListEntriesInputDict = {"prefix_list_id": _} +_params_697: GetManagedResourceVisibilityInputDict = {} +_params_698: GetNetworkInsightsAccessScopeAnalysisFindingsInputDict = { + "network_insights_access_scope_analysis_id": _ +} +_params_699: GetNetworkInsightsAccessScopeContentInputDict = { + "network_insights_access_scope_id": _ +} +_params_700: GetPasswordDataInputDict = {"instance_id": _} +_params_701: GetReservedInstancesExchangeQuoteInputDict = {"reserved_instance_ids": _} +_params_702: GetRouteServerAssociationsInputDict = {"route_server_id": _} +_params_703: GetRouteServerPropagationsInputDict = {"route_server_id": _} +_params_704: GetRouteServerRoutingDatabaseInputDict = {"route_server_id": _} +_params_705: GetSecurityGroupsForVpcInputDict = {"vpc_id": _} +_params_706: GetSerialConsoleAccessStatusInputDict = {} +_params_707: GetSnapshotBlockPublicAccessStateInputDict = {} +_params_708: GetSpotPlacementScoresInputDict = {"target_capacity": _} +_params_709: GetSubnetCidrReservationsInputDict = {"subnet_id": _} +_params_710: GetTransitGatewayAttachmentNatConfigurationInputDict = { + "transit_gateway_attachment_id": _ +} +_params_711: GetTransitGatewayAttachmentPropagationsInputDict = { + "transit_gateway_attachment_id": _ +} +_params_712: GetTransitGatewayMeteringPolicyEntriesInputDict = { + "transit_gateway_metering_policy_id": _ +} +_params_713: GetTransitGatewayMulticastDomainAssociationsInputDict = { + "transit_gateway_multicast_domain_id": _ +} +_params_714: GetTransitGatewayPolicyTableAssociationsInputDict = { + "transit_gateway_policy_table_id": _ +} +_params_715: GetTransitGatewayPolicyTableEntriesInputDict = { + "transit_gateway_policy_table_id": _ +} +_params_716: GetTransitGatewayPrefixListReferencesInputDict = { + "transit_gateway_route_table_id": _ +} +_params_717: GetTransitGatewayRouteTableAssociationsInputDict = { + "transit_gateway_route_table_id": _ +} +_params_718: GetTransitGatewayRouteTablePropagationsInputDict = { + "transit_gateway_route_table_id": _ +} +_params_719: GetVerifiedAccessEndpointPolicyInputDict = { + "verified_access_endpoint_id": _ +} +_params_720: GetVerifiedAccessEndpointTargetsInputDict = { + "verified_access_endpoint_id": _ +} +_params_721: GetVerifiedAccessGroupPolicyInputDict = {"verified_access_group_id": _} +_params_722: GetVpcResourcesBlockingEncryptionEnforcementInputDict = {"vpc_id": _} +_params_723: GetVpnConnectionDeviceSampleConfigurationInputDict = { + "vpn_connection_id": _, + "vpn_connection_device_type_id": _, +} +_params_724: GetVpnConnectionDeviceTypesInputDict = {} +_params_725: GetVpnTunnelReplacementStatusInputDict = { + "vpn_connection_id": _, + "vpn_tunnel_outside_ip_address": _, +} +_params_726: GroupIdentifierDict = {} +_params_727: HealthCheckPathDestinationRequestObjectDict = {} +_params_728: HealthCheckPathRequestObjectDict = {} +_params_729: HealthCheckPathSourceRequestObjectDict = {} +_params_730: HibernationOptionsRequestDict = {} +_params_731: HostCpuOptionsRequestDict = {} +_params_732: IamInstanceProfileSpecificationDict = {} +_params_733: IcmpTypeCodeDict = {} +_params_734: IKEVersionsRequestListValueDict = {} +_params_735: ImageCriterionRequestDict = {} +_params_736: ImageDiskContainerDict = {} +_params_737: ImageUsageResourceTypeOptionRequestDict = {} +_params_738: ImageUsageResourceTypeRequestDict = {} +_params_739: ImageWatermarkFilterRequestDict = {} +_params_740: ImportClientVpnClientCertificateRevocationListInputDict = { + "client_vpn_endpoint_id": _, + "certificate_revocation_list": _, +} +_params_741: ImportImageInputDict = {} +_params_742: ImportImageLicenseConfigurationRequestDict = {} +_params_743: ImportInstanceInputDict = {"platform": _} +_params_744: ImportInstanceLaunchSpecificationDict = {} +_params_745: ImportKeyPairInputDict = {"key_name": _, "public_key_material": _} +_params_746: ImportSnapshotInputDict = {} +_params_747: ImportVolumeInputDict = {"image": _, "volume": _} +_params_748: InstanceBlockDeviceMappingSpecificationDict = {} +_params_749: InstanceCreditSpecificationRequestDict = {"instance_id": _} +_params_750: InstanceEventWindowAssociationRequestDict = {} +_params_751: InstanceEventWindowDisassociationRequestDict = {} +_params_752: InstanceEventWindowTimeRangeRequestDict = {} +_params_753: InstanceIpv6AddressDict = {} +_params_754: InstanceIpv6AddressRequestDict = {} +_params_755: InstanceMaintenanceOptionsRequestDict = {} +_params_756: InstanceMarketOptionsRequestDict = {} +_params_757: InstanceMetadataOptionsRequestDict = {} +_params_758: InstanceNetworkInterfaceSpecificationDict = {} +_params_759: InstanceNetworkPerformanceOptionsRequestDict = {} +_params_760: InstanceRequirementsDict = {} +_params_761: InstanceRequirementsRequestDict = {"v_cpu_count": _, "memory_mi_b": _} +_params_762: InstanceRequirementsWithMetadataRequestDict = {} +_params_763: InstanceSecondaryInterfacePrivateIpAddressRequestDict = { + "private_ip_address": _ +} +_params_764: InstanceSecondaryInterfaceSpecificationRequestDict = {} +_params_765: InstanceSpecificationDict = {"instance_id": _} +_params_766: InstanceTypeSpecificationRequestDict = {} +_params_767: IntegrateServicesDict = {} +_params_768: IpamCidrAuthorizationContextDict = {} +_params_769: IpamPolicyAllocationRuleRequestDict = {} +_params_770: IpamPoolSourceResourceRequestDict = {} +_params_771: IpamPrefixListResolverRuleConditionRequestDict = {"operation": _} +_params_772: IpamPrefixListResolverRuleRequestDict = {"rule_type": _} +_params_773: IpPermissionDict = {} +_params_774: IpRangeDict = {} +_params_775: Ipv4PrefixSpecificationRequestDict = {} +_params_776: Ipv6PrefixSpecificationRequestDict = {} +_params_777: Ipv6RangeDict = {} +_params_778: LaunchPermissionDict = {} +_params_779: LaunchPermissionModificationsDict = {} +_params_780: LaunchTemplateBlockDeviceMappingRequestDict = {} +_params_781: LaunchTemplateCapacityReservationSpecificationRequestDict = {} +_params_782: LaunchTemplateConfigDict = {} +_params_783: LaunchTemplateCpuOptionsRequestDict = {} +_params_784: LaunchTemplateEbsBlockDeviceRequestDict = {} +_params_785: LaunchTemplateElasticInferenceAcceleratorDict = {"type": _} +_params_786: LaunchTemplateEnclaveOptionsRequestDict = {} +_params_787: LaunchTemplateHibernationOptionsRequestDict = {} +_params_788: LaunchTemplateIamInstanceProfileSpecificationRequestDict = {} +_params_789: LaunchTemplateInstanceMaintenanceOptionsRequestDict = {} +_params_790: LaunchTemplateInstanceMarketOptionsRequestDict = {} +_params_791: LaunchTemplateInstanceMetadataOptionsRequestDict = {} +_params_792: LaunchTemplateInstanceNetworkInterfaceSpecificationRequestDict = {} +_params_793: LaunchTemplateInstanceSecondaryInterfaceSpecificationRequestDict = {} +_params_794: LaunchTemplateLicenseConfigurationRequestDict = {} +_params_795: LaunchTemplateNetworkPerformanceOptionsRequestDict = {} +_params_796: LaunchTemplateOverridesDict = {} +_params_797: LaunchTemplatePlacementRequestDict = {} +_params_798: LaunchTemplatePrivateDnsNameOptionsRequestDict = {} +_params_799: LaunchTemplatesMonitoringRequestDict = {} +_params_800: LaunchTemplateSpecificationDict = {} +_params_801: LaunchTemplateSpotMarketOptionsRequestDict = {} +_params_802: LaunchTemplateTagSpecificationRequestDict = {} +_params_803: LicenseConfigurationRequestDict = {} +_params_804: ListImagesInRecycleBinInputDict = {} +_params_805: ListSnapshotsInRecycleBinInputDict = {} +_params_806: ListVolumesInRecycleBinInputDict = {} +_params_807: LoadBalancersConfigDict = {} +_params_808: LoadPermissionModificationsDict = {} +_params_809: LoadPermissionRequestDict = {} +_params_810: LockSnapshotInputDict = {"snapshot_id": _, "lock_mode": _} +_params_811: MacSystemIntegrityProtectionConfigurationRequestDict = {} +_params_812: MemoryGiBPerVCpuDict = {} +_params_813: MemoryGiBPerVCpuRequestDict = {} +_params_814: MemoryMiBDict = {} +_params_815: MemoryMiBRequestDict = {"min": _} +_params_816: ModifyAccountVpcEncryptionControlInputDict = {} +_params_817: ModifyAddressAttributeInputDict = {"allocation_id": _} +_params_818: ModifyApplicationStatusCheckInputDict = {"application_status_check_id": _} +_params_819: ModifyAvailabilityZoneGroupInputDict = { + "group_name": _, + "opt_in_status": _, +} +_params_820: ModifyCapacityReservationFleetInputDict = { + "capacity_reservation_fleet_id": _ +} +_params_821: ModifyCapacityReservationInputDict = {"capacity_reservation_id": _} +_params_822: ModifyClientVpnEndpointAuthorizationPolicyInputDict = { + "client_vpn_endpoint_id": _ +} +_params_823: ModifyClientVpnEndpointInputDict = {"client_vpn_endpoint_id": _} +_params_824: ModifyDefaultCreditSpecificationInputDict = { + "instance_family": _, + "cpu_credits": _, +} +_params_825: ModifyEbsDefaultKmsKeyIdInputDict = {"kms_key_id": _} +_params_826: ModifyFleetInputDict = {"fleet_id": _} +_params_827: ModifyFpgaImageAttributeInputDict = {"fpga_image_id": _} +_params_828: ModifyHostsInputDict = {"host_ids": _} +_params_829: ModifyIdentityIdFormatInputDict = { + "resource": _, + "use_long_ids": _, + "principal_arn": _, +} +_params_830: ModifyIdFormatInputDict = {"resource": _, "use_long_ids": _} +_params_831: ModifyImageAttributeInputDict = {"image_id": _} +_params_832: ModifyInstanceAttributeInputDict = {"instance_id": _} +_params_833: ModifyInstanceCapacityReservationAttributesInputDict = { + "instance_id": _, + "capacity_reservation_specification": _, +} +_params_834: ModifyInstanceConnectEndpointInputDict = { + "instance_connect_endpoint_id": _ +} +_params_835: ModifyInstanceCpuOptionsInputDict = {"instance_id": _} +_params_836: ModifyInstanceCreditSpecificationInputDict = { + "instance_credit_specifications": _ +} +_params_837: ModifyInstanceEventStartTimeInputDict = { + "instance_id": _, + "instance_event_id": _, + "not_before": _, +} +_params_838: ModifyInstanceEventWindowInputDict = {"instance_event_window_id": _} +_params_839: ModifyInstanceMaintenanceOptionsInputDict = {"instance_id": _} +_params_840: ModifyInstanceMetadataDefaultsInputDict = {} +_params_841: ModifyInstanceMetadataOptionsInputDict = {"instance_id": _} +_params_842: ModifyInstanceNetworkPerformanceOptionsInputDict = { + "instance_id": _, + "bandwidth_weighting": _, +} +_params_843: ModifyInstancePlacementInputDict = {"instance_id": _} +_params_844: ModifyIpamInputDict = {"ipam_id": _} +_params_845: ModifyIpamPolicyAllocationRulesInputDict = { + "ipam_policy_id": _, + "locale": _, + "resource_type": _, +} +_params_846: ModifyIpamPoolAllocationInputDict = {"ipam_pool_allocation_id": _} +_params_847: ModifyIpamPoolInputDict = {"ipam_pool_id": _} +_params_848: ModifyIpamPrefixListResolverInputDict = {"ipam_prefix_list_resolver_id": _} +_params_849: ModifyIpamPrefixListResolverTargetInputDict = { + "ipam_prefix_list_resolver_target_id": _ +} +_params_850: ModifyIpamResourceCidrInputDict = { + "resource_id": _, + "resource_cidr": _, + "resource_region": _, + "current_ipam_scope_id": _, + "monitored": _, +} +_params_851: ModifyIpamResourceDiscoveryInputDict = {"ipam_resource_discovery_id": _} +_params_852: ModifyIpamRoutingPolicyRegistrationInputDict = { + "ipam_internet_registry_association_id": _, + "cidr": _, + "asns": _, +} +_params_853: ModifyIpamScopeInputDict = {"ipam_scope_id": _} +_params_854: ModifyLaunchTemplateInputDict = {} +_params_855: ModifyLocalGatewayRouteInputDict = {"local_gateway_route_table_id": _} +_params_856: ModifyManagedPrefixListInputDict = {"prefix_list_id": _} +_params_857: ModifyManagedResourceVisibilityInputDict = {"default_visibility": _} +_params_858: ModifyNetworkInterfaceAttributeInputDict = {"network_interface_id": _} +_params_859: ModifyPrivateDnsNameOptionsInputDict = {"instance_id": _} +_params_860: ModifyPublicIpDnsNameOptionsInputDict = { + "network_interface_id": _, + "hostname_type": _, +} +_params_861: ModifyReservedInstancesInputDict = { + "reserved_instances_ids": _, + "target_configurations": _, +} +_params_862: ModifyRouteServerInputDict = {"route_server_id": _} +_params_863: ModifySecurityGroupRulesInputDict = { + "group_id": _, + "security_group_rules": _, +} +_params_864: ModifySnapshotAttributeInputDict = {"snapshot_id": _} +_params_865: ModifySnapshotTierInputDict = {"snapshot_id": _} +_params_866: ModifySpotFleetRequestInputDict = {"spot_fleet_request_id": _} +_params_867: ModifySubnetAttributeInputDict = {"subnet_id": _} +_params_868: ModifyTrafficMirrorFilterNetworkServicesInputDict = { + "traffic_mirror_filter_id": _ +} +_params_869: ModifyTrafficMirrorFilterRuleInputDict = { + "traffic_mirror_filter_rule_id": _ +} +_params_870: ModifyTrafficMirrorSessionInputDict = {"traffic_mirror_session_id": _} +_params_871: ModifyTransitGatewayAttachmentNatConfigurationInputDict = { + "transit_gateway_attachment_id": _ +} +_params_872: ModifyTransitGatewayInputDict = {"transit_gateway_id": _} +_params_873: ModifyTransitGatewayMeteringPolicyInputDict = { + "transit_gateway_metering_policy_id": _ +} +_params_874: ModifyTransitGatewayOptionsDict = {} +_params_875: ModifyTransitGatewayPolicyTableEntryInputDict = { + "transit_gateway_policy_table_id": _, + "policy_rule_number": _, +} +_params_876: ModifyTransitGatewayPrefixListReferenceInputDict = { + "transit_gateway_route_table_id": _, + "prefix_list_id": _, +} +_params_877: ModifyTransitGatewayVpcAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_878: ModifyTransitGatewayVpcAttachmentRequestOptionsDict = {} +_params_879: ModifyVerifiedAccessEndpointCidrOptionsDict = {} +_params_880: ModifyVerifiedAccessEndpointEniOptionsDict = {} +_params_881: ModifyVerifiedAccessEndpointInputDict = {"verified_access_endpoint_id": _} +_params_882: ModifyVerifiedAccessEndpointLoadBalancerOptionsDict = {} +_params_883: ModifyVerifiedAccessEndpointPolicyInputDict = { + "verified_access_endpoint_id": _ +} +_params_884: ModifyVerifiedAccessEndpointPortRangeDict = {} +_params_885: ModifyVerifiedAccessEndpointRdsOptionsDict = {} +_params_886: ModifyVerifiedAccessGroupInputDict = {"verified_access_group_id": _} +_params_887: ModifyVerifiedAccessGroupPolicyInputDict = {"verified_access_group_id": _} +_params_888: ModifyVerifiedAccessInstanceInputDict = {"verified_access_instance_id": _} +_params_889: ModifyVerifiedAccessInstanceLoggingConfigurationInputDict = { + "verified_access_instance_id": _, + "access_logs": _, +} +_params_890: ModifyVerifiedAccessNativeApplicationOidcOptionsDict = {} +_params_891: ModifyVerifiedAccessTrustProviderDeviceOptionsDict = {} +_params_892: ModifyVerifiedAccessTrustProviderInputDict = { + "verified_access_trust_provider_id": _ +} +_params_893: ModifyVerifiedAccessTrustProviderOidcOptionsDict = {} +_params_894: ModifyVolumeAttributeInputDict = {"volume_id": _} +_params_895: ModifyVolumeInputDict = {"volume_id": _} +_params_896: ModifyVpcAttributeInputDict = {"vpc_id": _} +_params_897: ModifyVpcBlockPublicAccessExclusionInputDict = { + "exclusion_id": _, + "internet_gateway_exclusion_mode": _, +} +_params_898: ModifyVpcBlockPublicAccessOptionsInputDict = { + "internet_gateway_block_mode": _ +} +_params_899: ModifyVpcEncryptionControlInputDict = {"vpc_encryption_control_id": _} +_params_900: ModifyVpcEndpointConnectionNotificationInputDict = { + "connection_notification_id": _ +} +_params_901: ModifyVpcEndpointInputDict = {"vpc_endpoint_id": _} +_params_902: ModifyVpcEndpointPayerResponsibilityInputDict = { + "vpc_endpoint_id": _, + "payer_responsibility": _, + "scope": _, +} +_params_903: ModifyVpcEndpointServiceConfigurationInputDict = {"service_id": _} +_params_904: ModifyVpcEndpointServicePayerResponsibilityInputDict = { + "service_id": _, + "payer_responsibility": _, +} +_params_905: ModifyVpcEndpointServicePermissionsInputDict = {"service_id": _} +_params_906: ModifyVpcPeeringConnectionOptionsInputDict = { + "vpc_peering_connection_id": _ +} +_params_907: ModifyVpcTenancyInputDict = {"vpc_id": _, "instance_tenancy": _} +_params_908: ModifyVpnConnectionInputDict = {"vpn_connection_id": _} +_params_909: ModifyVpnConnectionOptionsInputDict = {"vpn_connection_id": _} +_params_910: ModifyVpnTunnelCertificateInputDict = { + "vpn_connection_id": _, + "vpn_tunnel_outside_ip_address": _, +} +_params_911: ModifyVpnTunnelOptionsInputDict = { + "vpn_connection_id": _, + "vpn_tunnel_outside_ip_address": _, + "tunnel_options": _, +} +_params_912: ModifyVpnTunnelOptionsSpecificationDict = {} +_params_913: MonitorInstancesInputDict = {"instance_ids": _} +_params_914: MoveAddressToVpcInputDict = {"public_ip": _} +_params_915: MoveByoipCidrToIpamInputDict = { + "cidr": _, + "ipam_pool_id": _, + "ipam_pool_owner": _, +} +_params_916: MoveCapacityReservationInstancesInputDict = { + "source_capacity_reservation_id": _, + "destination_capacity_reservation_id": _, + "instance_count": _, +} +_params_917: NetworkBandwidthGbpsDict = {} +_params_918: NetworkBandwidthGbpsRequestDict = {} +_params_919: NetworkInterfaceAttachmentChangesDict = {} +_params_920: NetworkInterfaceCountDict = {} +_params_921: NetworkInterfaceCountRequestDict = {} +_params_922: NewDhcpConfigurationDict = {} +_params_923: OnDemandOptionsRequestDict = {} +_params_924: OperatorRequestDict = {} +_params_925: PacketHeaderStatementRequestDict = {} +_params_926: PathRequestFilterDict = {} +_params_927: PathStatementRequestDict = {} +_params_928: PeeringConnectionOptionsRequestDict = {} +_params_929: PerformanceFactorReferenceDict = {} +_params_930: PerformanceFactorReferenceRequestDict = {} +_params_931: Phase1DHGroupNumbersRequestListValueDict = {} +_params_932: Phase1EncryptionAlgorithmsRequestListValueDict = {} +_params_933: Phase1IntegrityAlgorithmsRequestListValueDict = {} +_params_934: Phase2DHGroupNumbersRequestListValueDict = {} +_params_935: Phase2EncryptionAlgorithmsRequestListValueDict = {} +_params_936: Phase2IntegrityAlgorithmsRequestListValueDict = {} +_params_937: PlacementDict = {} +_params_938: PortRangeDict = {} +_params_939: PrefixListIdDict = {} +_params_940: PriceScheduleSpecificationDict = {} +_params_941: PrivateDnsNameOptionsRequestDict = {} +_params_942: PrivateIpAddressSpecificationDict = {} +_params_943: ProvisionByoipCidrInputDict = {"cidr": _} +_params_944: ProvisionIpamByoasnInputDict = { + "ipam_id": _, + "asn": _, + "asn_authorization_context": _, +} +_params_945: ProvisionIpamPoolCidrInputDict = {"ipam_pool_id": _} +_params_946: ProvisionPublicIpv4PoolCidrInputDict = { + "ipam_pool_id": _, + "pool_id": _, + "netmask_length": _, +} +_params_947: PurchaseCapacityBlockExtensionInputDict = { + "capacity_block_extension_offering_id": _, + "capacity_reservation_id": _, +} +_params_948: PurchaseCapacityBlockInputDict = { + "capacity_block_offering_id": _, + "instance_platform": _, +} +_params_949: PurchaseHostReservationInputDict = {"host_id_set": _, "offering_id": _} +_params_950: PurchaseRequestDict = {"instance_count": _, "purchase_token": _} +_params_951: PurchaseReservedInstancesOfferingInputDict = { + "instance_count": _, + "reserved_instances_offering_id": _, +} +_params_952: PurchaseScheduledInstancesInputDict = {"purchase_requests": _} +_params_953: RebootInstancesInputDict = {"instance_ids": _} +_params_954: RegisterImageInputDict = {"name": _} +_params_955: RegisterInstanceEventNotificationAttributesInputDict = { + "instance_tag_attribute": _ +} +_params_956: RegisterInstanceTagAttributeRequestDict = {} +_params_957: RegisterTransitGatewayMulticastGroupMembersInputDict = { + "transit_gateway_multicast_domain_id": _, + "network_interface_ids": _, +} +_params_958: RegisterTransitGatewayMulticastGroupSourcesInputDict = { + "transit_gateway_multicast_domain_id": _, + "network_interface_ids": _, +} +_params_959: RejectCapacityReservationBillingOwnershipInputDict = { + "capacity_reservation_id": _ +} +_params_960: RejectTransitGatewayClientVpnAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_961: RejectTransitGatewayMulticastDomainAssociationsInputDict = {} +_params_962: RejectTransitGatewayPeeringAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_963: RejectTransitGatewayVpcAttachmentInputDict = { + "transit_gateway_attachment_id": _ +} +_params_964: RejectVpcEndpointConnectionsInputDict = { + "service_id": _, + "vpc_endpoint_ids": _, +} +_params_965: RejectVpcPeeringConnectionInputDict = {"vpc_peering_connection_id": _} +_params_966: ReleaseAddressInputDict = {} +_params_967: ReleaseHostsInputDict = {"host_ids": _} +_params_968: ReleaseIpamPoolAllocationInputDict = { + "ipam_pool_id": _, + "cidr": _, + "ipam_pool_allocation_id": _, +} +_params_969: RemoveIpamOperatingRegionDict = {} +_params_970: RemoveIpamOrganizationalUnitExclusionDict = {} +_params_971: RemovePrefixListEntryDict = {"cidr": _} +_params_972: ReplaceIamInstanceProfileAssociationInputDict = { + "iam_instance_profile": _, + "association_id": _, +} +_params_973: ReplaceImageCriteriaInAllowedImagesSettingsInputDict = {} +_params_974: ReplaceImageInstanceTypeSpecificationInputDict = {"image_id": _} +_params_975: ReplaceNetworkAclAssociationInputDict = { + "association_id": _, + "network_acl_id": _, +} +_params_976: ReplaceNetworkAclEntryInputDict = { + "network_acl_id": _, + "rule_number": _, + "protocol": _, + "rule_action": _, + "egress": _, +} +_params_977: ReplaceRouteInputDict = {"route_table_id": _} +_params_978: ReplaceRouteTableAssociationInputDict = { + "association_id": _, + "route_table_id": _, +} +_params_979: ReplaceTransitGatewayRouteInputDict = { + "destination_cidr_block": _, + "transit_gateway_route_table_id": _, +} +_params_980: ReplaceVpnTunnelInputDict = { + "vpn_connection_id": _, + "vpn_tunnel_outside_ip_address": _, +} +_params_981: ReportInstanceStatusInputDict = { + "instances": _, + "status": _, + "reason_codes": _, +} +_params_982: RequestFilterPortRangeDict = {} +_params_983: RequestIpamResourceTagDict = {} +_params_984: RequestLaunchTemplateDataDict = {} +_params_985: RequestSpotFleetInputDict = {"spot_fleet_request_config": _} +_params_986: RequestSpotInstancesInputDict = {} +_params_987: RequestSpotLaunchSpecificationDict = {} +_params_988: ReservationFleetInstanceSpecificationDict = {} +_params_989: ReservedCapacityFallbackOptionsRequestDict = {} +_params_990: ReservedCapacityOptionsRequestDict = {} +_params_991: ReservedInstanceLimitPriceDict = {} +_params_992: ReservedInstancesConfigurationDict = {} +_params_993: ResetAddressAttributeInputDict = {"allocation_id": _, "attribute": _} +_params_994: ResetEbsDefaultKmsKeyIdInputDict = {} +_params_995: ResetFpgaImageAttributeInputDict = {"fpga_image_id": _} +_params_996: ResetImageAttributeInputDict = {"attribute": _, "image_id": _} +_params_997: ResetInstanceAttributeInputDict = {"instance_id": _, "attribute": _} +_params_998: ResetNetworkInterfaceAttributeInputDict = {"network_interface_id": _} +_params_999: ResetSnapshotAttributeInputDict = {"attribute": _, "snapshot_id": _} +_params_1000: ResourceStatementRequestDict = {} +_params_1001: ResourceTypeOptionDict = {} +_params_1002: ResourceTypeRequestDict = {} +_params_1003: RestoreAddressToClassicInputDict = {"public_ip": _} +_params_1004: RestoreImageFromRecycleBinInputDict = {"image_id": _} +_params_1005: RestoreManagedPrefixListVersionInputDict = { + "prefix_list_id": _, + "previous_version": _, + "current_version": _, +} +_params_1006: RestoreSnapshotFromRecycleBinInputDict = {"snapshot_id": _} +_params_1007: RestoreSnapshotTierInputDict = {"snapshot_id": _} +_params_1008: RestoreVolumeFromRecycleBinInputDict = {"volume_id": _} +_params_1009: RevokeClientVpnIngressInputDict = { + "client_vpn_endpoint_id": _, + "target_network_cidr": _, +} +_params_1010: RevokeSecurityGroupEgressInputDict = {"group_id": _} +_params_1011: RevokeSecurityGroupIngressInputDict = {} +_params_1012: RouteServerBgpOptionsRequestDict = {"peer_asn": _} +_params_1013: RunInstancesInputDict = {"max_count": _, "min_count": _} +_params_1014: RunInstancesMonitoringEnabledDict = {"enabled": _} +_params_1015: RunScheduledInstancesInputDict = { + "launch_specification": _, + "scheduled_instance_id": _, +} +_params_1016: S3ObjectTagDict = {} +_params_1017: S3StorageDict = {} +_params_1018: ScanResultConditionRequestDict = {} +_params_1019: ScheduledInstanceRecurrenceRequestDict = {} +_params_1020: ScheduledInstancesBlockDeviceMappingDict = {} +_params_1021: ScheduledInstancesEbsDict = {} +_params_1022: ScheduledInstancesIamInstanceProfileDict = {} +_params_1023: ScheduledInstancesIpv6AddressDict = {} +_params_1024: ScheduledInstancesLaunchSpecificationDict = {"image_id": _} +_params_1025: ScheduledInstancesMonitoringDict = {} +_params_1026: ScheduledInstancesNetworkInterfaceDict = {} +_params_1027: ScheduledInstancesPlacementDict = {} +_params_1028: ScheduledInstancesPrivateIpAddressConfigDict = {} +_params_1029: SearchLocalGatewayRoutesInputDict = {"local_gateway_route_table_id": _} +_params_1030: SearchTransitGatewayMulticastGroupsInputDict = { + "transit_gateway_multicast_domain_id": _ +} +_params_1031: SearchTransitGatewayRoutesInputDict = { + "transit_gateway_route_table_id": _, + "filters": _, +} +_params_1032: SecondaryInterfacePrivateIpAddressSpecificationRequestDict = {} +_params_1033: SecureBlobAttributeValueDict = {} +_params_1034: SecurityGroupRuleDescriptionDict = {} +_params_1035: SecurityGroupRuleRequestDict = {} +_params_1036: SecurityGroupRuleUpdateDict = {"security_group_rule_id": _} +_params_1037: SendDiagnosticInterruptInputDict = {"instance_id": _} +_params_1038: SlotDateTimeRangeRequestDict = {"earliest_time": _, "latest_time": _} +_params_1039: SlotStartTimeRangeRequestDict = {} +_params_1040: SnapshotDiskContainerDict = {} +_params_1041: SpotCapacityRebalanceDict = {} +_params_1042: SpotFleetLaunchSpecificationDict = {} +_params_1043: SpotFleetMonitoringDict = {} +_params_1044: SpotFleetRequestConfigDataDict = { + "iam_fleet_role": _, + "target_capacity": _, +} +_params_1045: SpotFleetTagSpecificationDict = {} +_params_1046: SpotMaintenanceStrategiesDict = {} +_params_1047: SpotMarketOptionsDict = {} +_params_1048: SpotOptionsRequestDict = {} +_params_1049: SpotPlacementDict = {} +_params_1050: StartDeclarativePoliciesReportInputDict = {"s3_bucket": _, "target_id": _} +_params_1051: StartInstancesInputDict = {"instance_ids": _} +_params_1052: StartNetworkInsightsAccessScopeAnalysisInputDict = { + "network_insights_access_scope_id": _ +} +_params_1053: StartNetworkInsightsAnalysisInputDict = {"network_insights_path_id": _} +_params_1054: StartVpcEndpointServicePrivateDnsVerificationInputDict = {"service_id": _} +_params_1055: StopInstancesInputDict = {"instance_ids": _} +_params_1056: StorageDict = {} +_params_1057: StorageLocationDict = {} +_params_1058: SubnetConfigurationDict = {} +_params_1059: TagDict = {} +_params_1060: TagFieldSpecificationRequestDict = {} +_params_1061: TagSpecificationDict = {} +_params_1062: TargetCapacitySpecificationRequestDict = {"total_target_capacity": _} +_params_1063: TargetConfigurationRequestDict = {"offering_id": _} +_params_1064: TargetGroupDict = {} +_params_1065: TargetGroupsConfigDict = {} +_params_1066: TerminateClientVpnConnectionsInputDict = {"client_vpn_endpoint_id": _} +_params_1067: TerminateInstancesInputDict = {"instance_ids": _} +_params_1068: ThroughResourcesStatementRequestDict = {} +_params_1069: TotalLocalStorageGBDict = {} +_params_1070: TotalLocalStorageGBRequestDict = {} +_params_1071: TrafficMirrorPortRangeRequestDict = {} +_params_1072: TransitGatewayConfigurationInputStructureDict = {} +_params_1073: TransitGatewayConnectRequestBgpOptionsDict = {} +_params_1074: TransitGatewayNatRuleRequestDict = {} +_params_1075: TransitGatewayRequestOptionsDict = {} +_params_1076: TransitGatewayRequestPolicyRuleDict = {} +_params_1077: TransitGatewayRequestPolicyRuleMetaDataDict = {} +_params_1078: UnassignIpv6AddressesInputDict = {"network_interface_id": _} +_params_1079: UnassignPrivateIpAddressesInputDict = {"network_interface_id": _} +_params_1080: UnassignPrivateNatGatewayAddressInputDict = { + "nat_gateway_id": _, + "private_ip_addresses": _, +} +_params_1081: UnlockSnapshotInputDict = {"snapshot_id": _} +_params_1082: UnmonitorInstancesInputDict = {"instance_ids": _} +_params_1083: UpdateCapacityManagerMonitoredTagKeysInputDict = {} +_params_1084: UpdateCapacityManagerOrganizationsAccessInputDict = { + "organizations_access": _ +} +_params_1085: UpdateInterruptibleCapacityReservationAllocationInputDict = { + "capacity_reservation_id": _ +} +_params_1086: UpdateSecurityGroupRuleDescriptionsEgressInputDict = {} +_params_1087: UpdateSecurityGroupRuleDescriptionsIngressInputDict = {} +_params_1088: UserBucketDict = {} +_params_1089: UserDataDict = {} +_params_1090: UserIdGroupPairDict = {} +_params_1091: ValidateSecurityGroupQuotasForInterfaceInputDict = { + "security_group_ids": _ +} +_params_1092: VCpuCountRangeDict = {} +_params_1093: VCpuCountRangeRequestDict = {"min": _} +_params_1094: VerifiedAccessLogCloudWatchLogsDestinationOptionsDict = {"enabled": _} +_params_1095: VerifiedAccessLogKinesisDataFirehoseDestinationOptionsDict = { + "enabled": _ +} +_params_1096: VerifiedAccessLogOptionsDict = {} +_params_1097: VerifiedAccessLogS3DestinationOptionsDict = {"enabled": _} +_params_1098: VerifiedAccessSseSpecificationRequestDict = {} +_params_1099: VolumeDetailDict = {"size": _} +_params_1100: VpcEncryptionControlConfigurationDict = {"mode": _} +_params_1101: VpnConnectionOptionsSpecificationDict = {} +_params_1102: VpnTunnelLogOptionsSpecificationDict = {} +_params_1103: VpnTunnelOptionsSpecificationDict = {} +_params_1104: WithdrawByoipCidrInputDict = {"cidr": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncEC2Client) -> None: + pass + await client.accept_address_transfer(address=_) + await client.accept_address_transfer(**_request(AcceptAddressTransferInputDict)) + await client.accept_address_transfer(_request(AcceptAddressTransferInput)) + await client.accept_address_transfer(_request(AcceptAddressTransferInputDict)) + await client.accept_capacity_reservation_billing_ownership( + capacity_reservation_id=_ + ) + await client.accept_capacity_reservation_billing_ownership( + **_request(AcceptCapacityReservationBillingOwnershipInputDict) + ) + await client.accept_capacity_reservation_billing_ownership( + _request(AcceptCapacityReservationBillingOwnershipInput) + ) + await client.accept_capacity_reservation_billing_ownership( + _request(AcceptCapacityReservationBillingOwnershipInputDict) + ) + await client.accept_reserved_instances_exchange_quote(reserved_instance_ids=_) + await client.accept_reserved_instances_exchange_quote( + **_request(AcceptReservedInstancesExchangeQuoteInputDict) + ) + await client.accept_reserved_instances_exchange_quote( + _request(AcceptReservedInstancesExchangeQuoteInput) + ) + await client.accept_reserved_instances_exchange_quote( + _request(AcceptReservedInstancesExchangeQuoteInputDict) + ) + await client.accept_transit_gateway_client_vpn_attachment( + transit_gateway_attachment_id=_ + ) + await client.accept_transit_gateway_client_vpn_attachment( + **_request(AcceptTransitGatewayClientVpnAttachmentInputDict) + ) + await client.accept_transit_gateway_client_vpn_attachment( + _request(AcceptTransitGatewayClientVpnAttachmentInput) + ) + await client.accept_transit_gateway_client_vpn_attachment( + _request(AcceptTransitGatewayClientVpnAttachmentInputDict) + ) + await client.accept_transit_gateway_multicast_domain_associations() + await client.accept_transit_gateway_multicast_domain_associations( + **_request(AcceptTransitGatewayMulticastDomainAssociationsInputDict) + ) + await client.accept_transit_gateway_multicast_domain_associations( + _request(AcceptTransitGatewayMulticastDomainAssociationsInput) + ) + await client.accept_transit_gateway_multicast_domain_associations( + _request(AcceptTransitGatewayMulticastDomainAssociationsInputDict) + ) + await client.accept_transit_gateway_peering_attachment( + transit_gateway_attachment_id=_ + ) + await client.accept_transit_gateway_peering_attachment( + **_request(AcceptTransitGatewayPeeringAttachmentInputDict) + ) + await client.accept_transit_gateway_peering_attachment( + _request(AcceptTransitGatewayPeeringAttachmentInput) + ) + await client.accept_transit_gateway_peering_attachment( + _request(AcceptTransitGatewayPeeringAttachmentInputDict) + ) + await client.accept_transit_gateway_vpc_attachment(transit_gateway_attachment_id=_) + await client.accept_transit_gateway_vpc_attachment( + **_request(AcceptTransitGatewayVpcAttachmentInputDict) + ) + await client.accept_transit_gateway_vpc_attachment( + _request(AcceptTransitGatewayVpcAttachmentInput) + ) + await client.accept_transit_gateway_vpc_attachment( + _request(AcceptTransitGatewayVpcAttachmentInputDict) + ) + await client.accept_vpc_endpoint_connections(service_id=_, vpc_endpoint_ids=_) + await client.accept_vpc_endpoint_connections( + **_request(AcceptVpcEndpointConnectionsInputDict) + ) + await client.accept_vpc_endpoint_connections( + _request(AcceptVpcEndpointConnectionsInput) + ) + await client.accept_vpc_endpoint_connections( + _request(AcceptVpcEndpointConnectionsInputDict) + ) + await client.accept_vpc_peering_connection(vpc_peering_connection_id=_) + await client.accept_vpc_peering_connection( + **_request(AcceptVpcPeeringConnectionInputDict) + ) + await client.accept_vpc_peering_connection( + _request(AcceptVpcPeeringConnectionInput) + ) + await client.accept_vpc_peering_connection( + _request(AcceptVpcPeeringConnectionInputDict) + ) + await client.advertise_byoip_cidr(cidr=_) + await client.advertise_byoip_cidr(**_request(AdvertiseByoipCidrInputDict)) + await client.advertise_byoip_cidr(_request(AdvertiseByoipCidrInput)) + await client.advertise_byoip_cidr(_request(AdvertiseByoipCidrInputDict)) + await client.allocate_address() + await client.allocate_address(**_request(AllocateAddressInputDict)) + await client.allocate_address(_request(AllocateAddressInput)) + await client.allocate_address(_request(AllocateAddressInputDict)) + await client.allocate_hosts() + await client.allocate_hosts(**_request(AllocateHostsInputDict)) + await client.allocate_hosts(_request(AllocateHostsInput)) + await client.allocate_hosts(_request(AllocateHostsInputDict)) + await client.allocate_ipam_pool_cidr(ipam_pool_id=_) + await client.allocate_ipam_pool_cidr(**_request(AllocateIpamPoolCidrInputDict)) + await client.allocate_ipam_pool_cidr(_request(AllocateIpamPoolCidrInput)) + await client.allocate_ipam_pool_cidr(_request(AllocateIpamPoolCidrInputDict)) + await client.apply_security_groups_to_client_vpn_target_network( + client_vpn_endpoint_id=_, vpc_id=_, security_group_ids=_ + ) + await client.apply_security_groups_to_client_vpn_target_network( + **_request(ApplySecurityGroupsToClientVpnTargetNetworkInputDict) + ) + await client.apply_security_groups_to_client_vpn_target_network( + _request(ApplySecurityGroupsToClientVpnTargetNetworkInput) + ) + await client.apply_security_groups_to_client_vpn_target_network( + _request(ApplySecurityGroupsToClientVpnTargetNetworkInputDict) + ) + await client.assign_ipv6_addresses(network_interface_id=_) + await client.assign_ipv6_addresses(**_request(AssignIpv6AddressesInputDict)) + await client.assign_ipv6_addresses(_request(AssignIpv6AddressesInput)) + await client.assign_ipv6_addresses(_request(AssignIpv6AddressesInputDict)) + await client.assign_private_ip_addresses(network_interface_id=_) + await client.assign_private_ip_addresses( + **_request(AssignPrivateIpAddressesInputDict) + ) + await client.assign_private_ip_addresses(_request(AssignPrivateIpAddressesInput)) + await client.assign_private_ip_addresses( + _request(AssignPrivateIpAddressesInputDict) + ) + await client.assign_private_nat_gateway_address(nat_gateway_id=_) + await client.assign_private_nat_gateway_address( + **_request(AssignPrivateNatGatewayAddressInputDict) + ) + await client.assign_private_nat_gateway_address( + _request(AssignPrivateNatGatewayAddressInput) + ) + await client.assign_private_nat_gateway_address( + _request(AssignPrivateNatGatewayAddressInputDict) + ) + await client.associate_address() + await client.associate_address(**_request(AssociateAddressInputDict)) + await client.associate_address(_request(AssociateAddressInput)) + await client.associate_address(_request(AssociateAddressInputDict)) + await client.associate_application_status_check(application_status_check_id=_) + await client.associate_application_status_check( + **_request(AssociateApplicationStatusCheckInputDict) + ) + await client.associate_application_status_check( + _request(AssociateApplicationStatusCheckInput) + ) + await client.associate_application_status_check( + _request(AssociateApplicationStatusCheckInputDict) + ) + await client.associate_capacity_reservation_billing_owner( + capacity_reservation_id=_, unused_reservation_billing_owner_id=_ + ) + await client.associate_capacity_reservation_billing_owner( + **_request(AssociateCapacityReservationBillingOwnerInputDict) + ) + await client.associate_capacity_reservation_billing_owner( + _request(AssociateCapacityReservationBillingOwnerInput) + ) + await client.associate_capacity_reservation_billing_owner( + _request(AssociateCapacityReservationBillingOwnerInputDict) + ) + await client.associate_client_vpn_target_network(client_vpn_endpoint_id=_) + await client.associate_client_vpn_target_network( + **_request(AssociateClientVpnTargetNetworkInputDict) + ) + await client.associate_client_vpn_target_network( + _request(AssociateClientVpnTargetNetworkInput) + ) + await client.associate_client_vpn_target_network( + _request(AssociateClientVpnTargetNetworkInputDict) + ) + await client.associate_dhcp_options(dhcp_options_id=_, vpc_id=_) + await client.associate_dhcp_options(**_request(AssociateDhcpOptionsInputDict)) + await client.associate_dhcp_options(_request(AssociateDhcpOptionsInput)) + await client.associate_dhcp_options(_request(AssociateDhcpOptionsInputDict)) + await client.associate_enclave_certificate_iam_role(certificate_arn=_, role_arn=_) + await client.associate_enclave_certificate_iam_role( + **_request(AssociateEnclaveCertificateIamRoleInputDict) + ) + await client.associate_enclave_certificate_iam_role( + _request(AssociateEnclaveCertificateIamRoleInput) + ) + await client.associate_enclave_certificate_iam_role( + _request(AssociateEnclaveCertificateIamRoleInputDict) + ) + await client.associate_iam_instance_profile(iam_instance_profile=_, instance_id=_) + await client.associate_iam_instance_profile( + **_request(AssociateIamInstanceProfileInputDict) + ) + await client.associate_iam_instance_profile( + _request(AssociateIamInstanceProfileInput) + ) + await client.associate_iam_instance_profile( + _request(AssociateIamInstanceProfileInputDict) + ) + await client.associate_instance_event_window( + instance_event_window_id=_, association_target=_ + ) + await client.associate_instance_event_window( + **_request(AssociateInstanceEventWindowInputDict) + ) + await client.associate_instance_event_window( + _request(AssociateInstanceEventWindowInput) + ) + await client.associate_instance_event_window( + _request(AssociateInstanceEventWindowInputDict) + ) + await client.associate_ipam_byoasn(asn=_, cidr=_) + await client.associate_ipam_byoasn(**_request(AssociateIpamByoasnInputDict)) + await client.associate_ipam_byoasn(_request(AssociateIpamByoasnInput)) + await client.associate_ipam_byoasn(_request(AssociateIpamByoasnInputDict)) + await client.associate_ipam_resource_discovery( + ipam_id=_, ipam_resource_discovery_id=_ + ) + await client.associate_ipam_resource_discovery( + **_request(AssociateIpamResourceDiscoveryInputDict) + ) + await client.associate_ipam_resource_discovery( + _request(AssociateIpamResourceDiscoveryInput) + ) + await client.associate_ipam_resource_discovery( + _request(AssociateIpamResourceDiscoveryInputDict) + ) + await client.associate_nat_gateway_address(nat_gateway_id=_, allocation_ids=_) + await client.associate_nat_gateway_address( + **_request(AssociateNatGatewayAddressInputDict) + ) + await client.associate_nat_gateway_address( + _request(AssociateNatGatewayAddressInput) + ) + await client.associate_nat_gateway_address( + _request(AssociateNatGatewayAddressInputDict) + ) + await client.associate_route_server(route_server_id=_, vpc_id=_) + await client.associate_route_server(**_request(AssociateRouteServerInputDict)) + await client.associate_route_server(_request(AssociateRouteServerInput)) + await client.associate_route_server(_request(AssociateRouteServerInputDict)) + await client.associate_route_table(route_table_id=_) + await client.associate_route_table(**_request(AssociateRouteTableInputDict)) + await client.associate_route_table(_request(AssociateRouteTableInput)) + await client.associate_route_table(_request(AssociateRouteTableInputDict)) + await client.associate_security_group_vpc(group_id=_, vpc_id=_) + await client.associate_security_group_vpc( + **_request(AssociateSecurityGroupVpcInputDict) + ) + await client.associate_security_group_vpc(_request(AssociateSecurityGroupVpcInput)) + await client.associate_security_group_vpc( + _request(AssociateSecurityGroupVpcInputDict) + ) + await client.associate_subnet_cidr_block(subnet_id=_) + await client.associate_subnet_cidr_block( + **_request(AssociateSubnetCidrBlockInputDict) + ) + await client.associate_subnet_cidr_block(_request(AssociateSubnetCidrBlockInput)) + await client.associate_subnet_cidr_block( + _request(AssociateSubnetCidrBlockInputDict) + ) + await client.associate_transit_gateway_multicast_domain( + transit_gateway_multicast_domain_id=_, + transit_gateway_attachment_id=_, + subnet_ids=_, + ) + await client.associate_transit_gateway_multicast_domain( + **_request(AssociateTransitGatewayMulticastDomainInputDict) + ) + await client.associate_transit_gateway_multicast_domain( + _request(AssociateTransitGatewayMulticastDomainInput) + ) + await client.associate_transit_gateway_multicast_domain( + _request(AssociateTransitGatewayMulticastDomainInputDict) + ) + await client.associate_transit_gateway_policy_table( + transit_gateway_policy_table_id=_, transit_gateway_attachment_id=_ + ) + await client.associate_transit_gateway_policy_table( + **_request(AssociateTransitGatewayPolicyTableInputDict) + ) + await client.associate_transit_gateway_policy_table( + _request(AssociateTransitGatewayPolicyTableInput) + ) + await client.associate_transit_gateway_policy_table( + _request(AssociateTransitGatewayPolicyTableInputDict) + ) + await client.associate_transit_gateway_route_table( + transit_gateway_route_table_id=_, transit_gateway_attachment_id=_ + ) + await client.associate_transit_gateway_route_table( + **_request(AssociateTransitGatewayRouteTableInputDict) + ) + await client.associate_transit_gateway_route_table( + _request(AssociateTransitGatewayRouteTableInput) + ) + await client.associate_transit_gateway_route_table( + _request(AssociateTransitGatewayRouteTableInputDict) + ) + await client.associate_trunk_interface(branch_interface_id=_, trunk_interface_id=_) + await client.associate_trunk_interface(**_request(AssociateTrunkInterfaceInputDict)) + await client.associate_trunk_interface(_request(AssociateTrunkInterfaceInput)) + await client.associate_trunk_interface(_request(AssociateTrunkInterfaceInputDict)) + await client.associate_vpc_cidr_block(vpc_id=_) + await client.associate_vpc_cidr_block(**_request(AssociateVpcCidrBlockInputDict)) + await client.associate_vpc_cidr_block(_request(AssociateVpcCidrBlockInput)) + await client.associate_vpc_cidr_block(_request(AssociateVpcCidrBlockInputDict)) + await client.attach_classic_link_vpc(instance_id=_, vpc_id=_, groups=_) + await client.attach_classic_link_vpc(**_request(AttachClassicLinkVpcInputDict)) + await client.attach_classic_link_vpc(_request(AttachClassicLinkVpcInput)) + await client.attach_classic_link_vpc(_request(AttachClassicLinkVpcInputDict)) + await client.attach_image_watermark(image_id=_, watermark_name=_) + await client.attach_image_watermark(**_request(AttachImageWatermarkInputDict)) + await client.attach_image_watermark(_request(AttachImageWatermarkInput)) + await client.attach_image_watermark(_request(AttachImageWatermarkInputDict)) + await client.attach_internet_gateway(internet_gateway_id=_, vpc_id=_) + await client.attach_internet_gateway(**_request(AttachInternetGatewayInputDict)) + await client.attach_internet_gateway(_request(AttachInternetGatewayInput)) + await client.attach_internet_gateway(_request(AttachInternetGatewayInputDict)) + await client.attach_network_interface( + network_interface_id=_, instance_id=_, device_index=_ + ) + await client.attach_network_interface(**_request(AttachNetworkInterfaceInputDict)) + await client.attach_network_interface(_request(AttachNetworkInterfaceInput)) + await client.attach_network_interface(_request(AttachNetworkInterfaceInputDict)) + await client.attach_verified_access_trust_provider( + verified_access_instance_id=_, verified_access_trust_provider_id=_ + ) + await client.attach_verified_access_trust_provider( + **_request(AttachVerifiedAccessTrustProviderInputDict) + ) + await client.attach_verified_access_trust_provider( + _request(AttachVerifiedAccessTrustProviderInput) + ) + await client.attach_verified_access_trust_provider( + _request(AttachVerifiedAccessTrustProviderInputDict) + ) + await client.attach_volume(device=_, instance_id=_, volume_id=_) + await client.attach_volume(**_request(AttachVolumeInputDict)) + await client.attach_volume(_request(AttachVolumeInput)) + await client.attach_volume(_request(AttachVolumeInputDict)) + await client.attach_vpn_gateway(vpc_id=_, vpn_gateway_id=_) + await client.attach_vpn_gateway(**_request(AttachVpnGatewayInputDict)) + await client.attach_vpn_gateway(_request(AttachVpnGatewayInput)) + await client.attach_vpn_gateway(_request(AttachVpnGatewayInputDict)) + await client.authorize_client_vpn_ingress( + client_vpn_endpoint_id=_, target_network_cidr=_ + ) + await client.authorize_client_vpn_ingress( + **_request(AuthorizeClientVpnIngressInputDict) + ) + await client.authorize_client_vpn_ingress(_request(AuthorizeClientVpnIngressInput)) + await client.authorize_client_vpn_ingress( + _request(AuthorizeClientVpnIngressInputDict) + ) + await client.authorize_security_group_egress(group_id=_) + await client.authorize_security_group_egress( + **_request(AuthorizeSecurityGroupEgressInputDict) + ) + await client.authorize_security_group_egress( + _request(AuthorizeSecurityGroupEgressInput) + ) + await client.authorize_security_group_egress( + _request(AuthorizeSecurityGroupEgressInputDict) + ) + await client.authorize_security_group_ingress() + await client.authorize_security_group_ingress( + **_request(AuthorizeSecurityGroupIngressInputDict) + ) + await client.authorize_security_group_ingress( + _request(AuthorizeSecurityGroupIngressInput) + ) + await client.authorize_security_group_ingress( + _request(AuthorizeSecurityGroupIngressInputDict) + ) + await client.batch_modify_ipam_routing_policy_registrations( + ipam_internet_registry_association_id=_, delta_json=_ + ) + await client.batch_modify_ipam_routing_policy_registrations( + **_request(BatchModifyIpamRoutingPolicyRegistrationsInputDict) + ) + await client.batch_modify_ipam_routing_policy_registrations( + _request(BatchModifyIpamRoutingPolicyRegistrationsInput) + ) + await client.batch_modify_ipam_routing_policy_registrations( + _request(BatchModifyIpamRoutingPolicyRegistrationsInputDict) + ) + await client.bundle_instance(instance_id=_, storage=_) + await client.bundle_instance(**_request(BundleInstanceInputDict)) + await client.bundle_instance(_request(BundleInstanceInput)) + await client.bundle_instance(_request(BundleInstanceInputDict)) + await client.cancel_bundle_task(bundle_id=_) + await client.cancel_bundle_task(**_request(CancelBundleTaskInputDict)) + await client.cancel_bundle_task(_request(CancelBundleTaskInput)) + await client.cancel_bundle_task(_request(CancelBundleTaskInputDict)) + await client.cancel_capacity_reservation(capacity_reservation_id=_) + await client.cancel_capacity_reservation( + **_request(CancelCapacityReservationInputDict) + ) + await client.cancel_capacity_reservation(_request(CancelCapacityReservationInput)) + await client.cancel_capacity_reservation( + _request(CancelCapacityReservationInputDict) + ) + await client.cancel_capacity_reservation_fleets(capacity_reservation_fleet_ids=_) + await client.cancel_capacity_reservation_fleets( + **_request(CancelCapacityReservationFleetsInputDict) + ) + await client.cancel_capacity_reservation_fleets( + _request(CancelCapacityReservationFleetsInput) + ) + await client.cancel_capacity_reservation_fleets( + _request(CancelCapacityReservationFleetsInputDict) + ) + await client.cancel_conversion_task(conversion_task_id=_) + await client.cancel_conversion_task(**_request(CancelConversionTaskInputDict)) + await client.cancel_conversion_task(_request(CancelConversionTaskInput)) + await client.cancel_conversion_task(_request(CancelConversionTaskInputDict)) + await client.cancel_declarative_policies_report(report_id=_) + await client.cancel_declarative_policies_report( + **_request(CancelDeclarativePoliciesReportInputDict) + ) + await client.cancel_declarative_policies_report( + _request(CancelDeclarativePoliciesReportInput) + ) + await client.cancel_declarative_policies_report( + _request(CancelDeclarativePoliciesReportInputDict) + ) + await client.cancel_export_task(export_task_id=_) + await client.cancel_export_task(**_request(CancelExportTaskInputDict)) + await client.cancel_export_task(_request(CancelExportTaskInput)) + await client.cancel_export_task(_request(CancelExportTaskInputDict)) + await client.cancel_image_launch_permission(image_id=_) + await client.cancel_image_launch_permission( + **_request(CancelImageLaunchPermissionInputDict) + ) + await client.cancel_image_launch_permission( + _request(CancelImageLaunchPermissionInput) + ) + await client.cancel_image_launch_permission( + _request(CancelImageLaunchPermissionInputDict) + ) + await client.cancel_import_task() + await client.cancel_import_task(**_request(CancelImportTaskInputDict)) + await client.cancel_import_task(_request(CancelImportTaskInput)) + await client.cancel_import_task(_request(CancelImportTaskInputDict)) + await client.cancel_reserved_instances_listing(reserved_instances_listing_id=_) + await client.cancel_reserved_instances_listing( + **_request(CancelReservedInstancesListingInputDict) + ) + await client.cancel_reserved_instances_listing( + _request(CancelReservedInstancesListingInput) + ) + await client.cancel_reserved_instances_listing( + _request(CancelReservedInstancesListingInputDict) + ) + await client.cancel_spot_fleet_requests( + spot_fleet_request_ids=_, terminate_instances=_ + ) + await client.cancel_spot_fleet_requests( + **_request(CancelSpotFleetRequestsInputDict) + ) + await client.cancel_spot_fleet_requests(_request(CancelSpotFleetRequestsInput)) + await client.cancel_spot_fleet_requests(_request(CancelSpotFleetRequestsInputDict)) + await client.cancel_spot_instance_requests(spot_instance_request_ids=_) + await client.cancel_spot_instance_requests( + **_request(CancelSpotInstanceRequestsInputDict) + ) + await client.cancel_spot_instance_requests( + _request(CancelSpotInstanceRequestsInput) + ) + await client.cancel_spot_instance_requests( + _request(CancelSpotInstanceRequestsInputDict) + ) + await client.confirm_product_instance(instance_id=_, product_code=_) + await client.confirm_product_instance(**_request(ConfirmProductInstanceInputDict)) + await client.confirm_product_instance(_request(ConfirmProductInstanceInput)) + await client.confirm_product_instance(_request(ConfirmProductInstanceInputDict)) + await client.copy_fpga_image(source_fpga_image_id=_, source_region=_) + await client.copy_fpga_image(**_request(CopyFpgaImageInputDict)) + await client.copy_fpga_image(_request(CopyFpgaImageInput)) + await client.copy_fpga_image(_request(CopyFpgaImageInputDict)) + await client.copy_image(name=_, source_image_id=_, source_region=_) + await client.copy_image(**_request(CopyImageInputDict)) + await client.copy_image(_request(CopyImageInput)) + await client.copy_image(_request(CopyImageInputDict)) + await client.copy_snapshot(source_region=_, source_snapshot_id=_) + await client.copy_snapshot(**_request(CopySnapshotInputDict)) + await client.copy_snapshot(_request(CopySnapshotInput)) + await client.copy_snapshot(_request(CopySnapshotInputDict)) + await client.copy_volumes(source_volume_id=_) + await client.copy_volumes(**_request(CopyVolumesInputDict)) + await client.copy_volumes(_request(CopyVolumesInput)) + await client.copy_volumes(_request(CopyVolumesInputDict)) + await client.create_application_status_check(protocol=_, port=_) + await client.create_application_status_check( + **_request(CreateApplicationStatusCheckInputDict) + ) + await client.create_application_status_check( + _request(CreateApplicationStatusCheckInput) + ) + await client.create_application_status_check( + _request(CreateApplicationStatusCheckInputDict) + ) + await client.create_capacity_manager_data_export( + s3_bucket_name=_, schedule=_, output_format=_ + ) + await client.create_capacity_manager_data_export( + **_request(CreateCapacityManagerDataExportInputDict) + ) + await client.create_capacity_manager_data_export( + _request(CreateCapacityManagerDataExportInput) + ) + await client.create_capacity_manager_data_export( + _request(CreateCapacityManagerDataExportInputDict) + ) + await client.create_capacity_reservation( + instance_type=_, instance_platform=_, instance_count=_ + ) + await client.create_capacity_reservation( + **_request(CreateCapacityReservationInputDict) + ) + await client.create_capacity_reservation(_request(CreateCapacityReservationInput)) + await client.create_capacity_reservation( + _request(CreateCapacityReservationInputDict) + ) + await client.create_capacity_reservation_by_splitting( + source_capacity_reservation_id=_, instance_count=_ + ) + await client.create_capacity_reservation_by_splitting( + **_request(CreateCapacityReservationBySplittingInputDict) + ) + await client.create_capacity_reservation_by_splitting( + _request(CreateCapacityReservationBySplittingInput) + ) + await client.create_capacity_reservation_by_splitting( + _request(CreateCapacityReservationBySplittingInputDict) + ) + await client.create_capacity_reservation_cancellation_quote( + capacity_reservation_id=_ + ) + await client.create_capacity_reservation_cancellation_quote( + **_request(CreateCapacityReservationCancellationQuoteInputDict) + ) + await client.create_capacity_reservation_cancellation_quote( + _request(CreateCapacityReservationCancellationQuoteInput) + ) + await client.create_capacity_reservation_cancellation_quote( + _request(CreateCapacityReservationCancellationQuoteInputDict) + ) + await client.create_capacity_reservation_date_change_quote( + capacity_reservation_id=_, new_start_date=_ + ) + await client.create_capacity_reservation_date_change_quote( + **_request(CreateCapacityReservationDateChangeQuoteInputDict) + ) + await client.create_capacity_reservation_date_change_quote( + _request(CreateCapacityReservationDateChangeQuoteInput) + ) + await client.create_capacity_reservation_date_change_quote( + _request(CreateCapacityReservationDateChangeQuoteInputDict) + ) + await client.create_capacity_reservation_fleet(total_target_capacity=_) + await client.create_capacity_reservation_fleet( + **_request(CreateCapacityReservationFleetInputDict) + ) + await client.create_capacity_reservation_fleet( + _request(CreateCapacityReservationFleetInput) + ) + await client.create_capacity_reservation_fleet( + _request(CreateCapacityReservationFleetInputDict) + ) + await client.create_carrier_gateway(vpc_id=_) + await client.create_carrier_gateway(**_request(CreateCarrierGatewayInputDict)) + await client.create_carrier_gateway(_request(CreateCarrierGatewayInput)) + await client.create_carrier_gateway(_request(CreateCarrierGatewayInputDict)) + await client.create_client_vpn_endpoint( + server_certificate_arn=_, authentication_options=_, connection_log_options=_ + ) + await client.create_client_vpn_endpoint( + **_request(CreateClientVpnEndpointInputDict) + ) + await client.create_client_vpn_endpoint(_request(CreateClientVpnEndpointInput)) + await client.create_client_vpn_endpoint(_request(CreateClientVpnEndpointInputDict)) + await client.create_client_vpn_route( + client_vpn_endpoint_id=_, destination_cidr_block=_ + ) + await client.create_client_vpn_route(**_request(CreateClientVpnRouteInputDict)) + await client.create_client_vpn_route(_request(CreateClientVpnRouteInput)) + await client.create_client_vpn_route(_request(CreateClientVpnRouteInputDict)) + await client.create_coip_cidr(cidr=_, coip_pool_id=_) + await client.create_coip_cidr(**_request(CreateCoipCidrInputDict)) + await client.create_coip_cidr(_request(CreateCoipCidrInput)) + await client.create_coip_cidr(_request(CreateCoipCidrInputDict)) + await client.create_coip_pool(local_gateway_route_table_id=_) + await client.create_coip_pool(**_request(CreateCoipPoolInputDict)) + await client.create_coip_pool(_request(CreateCoipPoolInput)) + await client.create_coip_pool(_request(CreateCoipPoolInputDict)) + await client.create_customer_gateway(type=_) + await client.create_customer_gateway(**_request(CreateCustomerGatewayInputDict)) + await client.create_customer_gateway(_request(CreateCustomerGatewayInput)) + await client.create_customer_gateway(_request(CreateCustomerGatewayInputDict)) + await client.create_default_subnet() + await client.create_default_subnet(**_request(CreateDefaultSubnetInputDict)) + await client.create_default_subnet(_request(CreateDefaultSubnetInput)) + await client.create_default_subnet(_request(CreateDefaultSubnetInputDict)) + await client.create_default_vpc() + await client.create_default_vpc(**_request(CreateDefaultVpcInputDict)) + await client.create_default_vpc(_request(CreateDefaultVpcInput)) + await client.create_default_vpc(_request(CreateDefaultVpcInputDict)) + await client.create_delegate_mac_volume_ownership_task( + instance_id=_, mac_credentials=_ + ) + await client.create_delegate_mac_volume_ownership_task( + **_request(CreateDelegateMacVolumeOwnershipTaskInputDict) + ) + await client.create_delegate_mac_volume_ownership_task( + _request(CreateDelegateMacVolumeOwnershipTaskInput) + ) + await client.create_delegate_mac_volume_ownership_task( + _request(CreateDelegateMacVolumeOwnershipTaskInputDict) + ) + await client.create_dhcp_options(dhcp_configurations=_) + await client.create_dhcp_options(**_request(CreateDhcpOptionsInputDict)) + await client.create_dhcp_options(_request(CreateDhcpOptionsInput)) + await client.create_dhcp_options(_request(CreateDhcpOptionsInputDict)) + await client.create_egress_only_internet_gateway(vpc_id=_) + await client.create_egress_only_internet_gateway( + **_request(CreateEgressOnlyInternetGatewayInputDict) + ) + await client.create_egress_only_internet_gateway( + _request(CreateEgressOnlyInternetGatewayInput) + ) + await client.create_egress_only_internet_gateway( + _request(CreateEgressOnlyInternetGatewayInputDict) + ) + await client.create_fleet( + launch_template_configs=_, target_capacity_specification=_ + ) + await client.create_fleet(**_request(CreateFleetInputDict)) + await client.create_fleet(_request(CreateFleetInput)) + await client.create_fleet(_request(CreateFleetInputDict)) + await client.create_flow_logs(resource_ids=_, resource_type=_) + await client.create_flow_logs(**_request(CreateFlowLogsInputDict)) + await client.create_flow_logs(_request(CreateFlowLogsInput)) + await client.create_flow_logs(_request(CreateFlowLogsInputDict)) + await client.create_fpga_image(input_storage_location=_) + await client.create_fpga_image(**_request(CreateFpgaImageInputDict)) + await client.create_fpga_image(_request(CreateFpgaImageInput)) + await client.create_fpga_image(_request(CreateFpgaImageInputDict)) + await client.create_image(instance_id=_, name=_) + await client.create_image(**_request(CreateImageInputDict)) + await client.create_image(_request(CreateImageInput)) + await client.create_image(_request(CreateImageInputDict)) + await client.create_image_usage_report(image_id=_, resource_types=_) + await client.create_image_usage_report(**_request(CreateImageUsageReportInputDict)) + await client.create_image_usage_report(_request(CreateImageUsageReportInput)) + await client.create_image_usage_report(_request(CreateImageUsageReportInputDict)) + await client.create_instance_connect_endpoint(subnet_id=_) + await client.create_instance_connect_endpoint( + **_request(CreateInstanceConnectEndpointInputDict) + ) + await client.create_instance_connect_endpoint( + _request(CreateInstanceConnectEndpointInput) + ) + await client.create_instance_connect_endpoint( + _request(CreateInstanceConnectEndpointInputDict) + ) + await client.create_instance_event_window() + await client.create_instance_event_window( + **_request(CreateInstanceEventWindowInputDict) + ) + await client.create_instance_event_window(_request(CreateInstanceEventWindowInput)) + await client.create_instance_event_window( + _request(CreateInstanceEventWindowInputDict) + ) + await client.create_instance_export_task( + instance_id=_, target_environment=_, export_to_s3_task=_ + ) + await client.create_instance_export_task( + **_request(CreateInstanceExportTaskInputDict) + ) + await client.create_instance_export_task(_request(CreateInstanceExportTaskInput)) + await client.create_instance_export_task( + _request(CreateInstanceExportTaskInputDict) + ) + await client.create_internet_gateway() + await client.create_internet_gateway(**_request(CreateInternetGatewayInputDict)) + await client.create_internet_gateway(_request(CreateInternetGatewayInput)) + await client.create_internet_gateway(_request(CreateInternetGatewayInputDict)) + await client.create_interruptible_capacity_reservation_allocation( + capacity_reservation_id=_, instance_count=_ + ) + await client.create_interruptible_capacity_reservation_allocation( + **_request(CreateInterruptibleCapacityReservationAllocationInputDict) + ) + await client.create_interruptible_capacity_reservation_allocation( + _request(CreateInterruptibleCapacityReservationAllocationInput) + ) + await client.create_interruptible_capacity_reservation_allocation( + _request(CreateInterruptibleCapacityReservationAllocationInputDict) + ) + await client.create_ipam() + await client.create_ipam(**_request(CreateIpamInputDict)) + await client.create_ipam(_request(CreateIpamInput)) + await client.create_ipam(_request(CreateIpamInputDict)) + await client.create_ipam_external_resource_verification_token(ipam_id=_) + await client.create_ipam_external_resource_verification_token( + **_request(CreateIpamExternalResourceVerificationTokenInputDict) + ) + await client.create_ipam_external_resource_verification_token( + _request(CreateIpamExternalResourceVerificationTokenInput) + ) + await client.create_ipam_external_resource_verification_token( + _request(CreateIpamExternalResourceVerificationTokenInputDict) + ) + await client.create_ipam_internet_registry_association( + ipam_id=_, rir=_, organization_handle=_ + ) + await client.create_ipam_internet_registry_association( + **_request(CreateIpamInternetRegistryAssociationInputDict) + ) + await client.create_ipam_internet_registry_association( + _request(CreateIpamInternetRegistryAssociationInput) + ) + await client.create_ipam_internet_registry_association( + _request(CreateIpamInternetRegistryAssociationInputDict) + ) + await client.create_ipam_policy(ipam_id=_) + await client.create_ipam_policy(**_request(CreateIpamPolicyInputDict)) + await client.create_ipam_policy(_request(CreateIpamPolicyInput)) + await client.create_ipam_policy(_request(CreateIpamPolicyInputDict)) + await client.create_ipam_pool(ipam_scope_id=_, address_family=_) + await client.create_ipam_pool(**_request(CreateIpamPoolInputDict)) + await client.create_ipam_pool(_request(CreateIpamPoolInput)) + await client.create_ipam_pool(_request(CreateIpamPoolInputDict)) + await client.create_ipam_prefix_list_resolver(ipam_id=_, address_family=_) + await client.create_ipam_prefix_list_resolver( + **_request(CreateIpamPrefixListResolverInputDict) + ) + await client.create_ipam_prefix_list_resolver( + _request(CreateIpamPrefixListResolverInput) + ) + await client.create_ipam_prefix_list_resolver( + _request(CreateIpamPrefixListResolverInputDict) + ) + await client.create_ipam_prefix_list_resolver_target( + ipam_prefix_list_resolver_id=_, + prefix_list_id=_, + prefix_list_region=_, + track_latest_version=_, + ) + await client.create_ipam_prefix_list_resolver_target( + **_request(CreateIpamPrefixListResolverTargetInputDict) + ) + await client.create_ipam_prefix_list_resolver_target( + _request(CreateIpamPrefixListResolverTargetInput) + ) + await client.create_ipam_prefix_list_resolver_target( + _request(CreateIpamPrefixListResolverTargetInputDict) + ) + await client.create_ipam_resource_discovery() + await client.create_ipam_resource_discovery( + **_request(CreateIpamResourceDiscoveryInputDict) + ) + await client.create_ipam_resource_discovery( + _request(CreateIpamResourceDiscoveryInput) + ) + await client.create_ipam_resource_discovery( + _request(CreateIpamResourceDiscoveryInputDict) + ) + await client.create_ipam_routing_policy_registration( + ipam_internet_registry_association_id=_, cidr=_, asns=_ + ) + await client.create_ipam_routing_policy_registration( + **_request(CreateIpamRoutingPolicyRegistrationInputDict) + ) + await client.create_ipam_routing_policy_registration( + _request(CreateIpamRoutingPolicyRegistrationInput) + ) + await client.create_ipam_routing_policy_registration( + _request(CreateIpamRoutingPolicyRegistrationInputDict) + ) + await client.create_ipam_scope(ipam_id=_) + await client.create_ipam_scope(**_request(CreateIpamScopeInputDict)) + await client.create_ipam_scope(_request(CreateIpamScopeInput)) + await client.create_ipam_scope(_request(CreateIpamScopeInputDict)) + await client.create_key_pair(key_name=_) + await client.create_key_pair(**_request(CreateKeyPairInputDict)) + await client.create_key_pair(_request(CreateKeyPairInput)) + await client.create_key_pair(_request(CreateKeyPairInputDict)) + await client.create_launch_template(launch_template_name=_, launch_template_data=_) + await client.create_launch_template(**_request(CreateLaunchTemplateInputDict)) + await client.create_launch_template(_request(CreateLaunchTemplateInput)) + await client.create_launch_template(_request(CreateLaunchTemplateInputDict)) + await client.create_launch_template_version(launch_template_data=_) + await client.create_launch_template_version( + **_request(CreateLaunchTemplateVersionInputDict) + ) + await client.create_launch_template_version( + _request(CreateLaunchTemplateVersionInput) + ) + await client.create_launch_template_version( + _request(CreateLaunchTemplateVersionInputDict) + ) + await client.create_local_gateway_route(local_gateway_route_table_id=_) + await client.create_local_gateway_route( + **_request(CreateLocalGatewayRouteInputDict) + ) + await client.create_local_gateway_route(_request(CreateLocalGatewayRouteInput)) + await client.create_local_gateway_route(_request(CreateLocalGatewayRouteInputDict)) + await client.create_local_gateway_route_table(local_gateway_id=_) + await client.create_local_gateway_route_table( + **_request(CreateLocalGatewayRouteTableInputDict) + ) + await client.create_local_gateway_route_table( + _request(CreateLocalGatewayRouteTableInput) + ) + await client.create_local_gateway_route_table( + _request(CreateLocalGatewayRouteTableInputDict) + ) + await client.create_local_gateway_route_table_virtual_interface_group_association( + local_gateway_route_table_id=_, local_gateway_virtual_interface_group_id=_ + ) + await client.create_local_gateway_route_table_virtual_interface_group_association( + **_request( + CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict + ) + ) + await client.create_local_gateway_route_table_virtual_interface_group_association( + _request(CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) + ) + await client.create_local_gateway_route_table_virtual_interface_group_association( + _request(CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict) + ) + await client.create_local_gateway_route_table_vpc_association( + local_gateway_route_table_id=_, vpc_id=_ + ) + await client.create_local_gateway_route_table_vpc_association( + **_request(CreateLocalGatewayRouteTableVpcAssociationInputDict) + ) + await client.create_local_gateway_route_table_vpc_association( + _request(CreateLocalGatewayRouteTableVpcAssociationInput) + ) + await client.create_local_gateway_route_table_vpc_association( + _request(CreateLocalGatewayRouteTableVpcAssociationInputDict) + ) + await client.create_local_gateway_virtual_interface( + local_gateway_virtual_interface_group_id=_, + outpost_lag_id=_, + vlan=_, + local_address=_, + peer_address=_, + ) + await client.create_local_gateway_virtual_interface( + **_request(CreateLocalGatewayVirtualInterfaceInputDict) + ) + await client.create_local_gateway_virtual_interface( + _request(CreateLocalGatewayVirtualInterfaceInput) + ) + await client.create_local_gateway_virtual_interface( + _request(CreateLocalGatewayVirtualInterfaceInputDict) + ) + await client.create_local_gateway_virtual_interface_group(local_gateway_id=_) + await client.create_local_gateway_virtual_interface_group( + **_request(CreateLocalGatewayVirtualInterfaceGroupInputDict) + ) + await client.create_local_gateway_virtual_interface_group( + _request(CreateLocalGatewayVirtualInterfaceGroupInput) + ) + await client.create_local_gateway_virtual_interface_group( + _request(CreateLocalGatewayVirtualInterfaceGroupInputDict) + ) + await client.create_mac_system_integrity_protection_modification_task( + instance_id=_, mac_system_integrity_protection_status=_ + ) + await client.create_mac_system_integrity_protection_modification_task( + **_request(CreateMacSystemIntegrityProtectionModificationTaskInputDict) + ) + await client.create_mac_system_integrity_protection_modification_task( + _request(CreateMacSystemIntegrityProtectionModificationTaskInput) + ) + await client.create_mac_system_integrity_protection_modification_task( + _request(CreateMacSystemIntegrityProtectionModificationTaskInputDict) + ) + await client.create_managed_prefix_list( + prefix_list_name=_, max_entries=_, address_family=_ + ) + await client.create_managed_prefix_list( + **_request(CreateManagedPrefixListInputDict) + ) + await client.create_managed_prefix_list(_request(CreateManagedPrefixListInput)) + await client.create_managed_prefix_list(_request(CreateManagedPrefixListInputDict)) + await client.create_nat_gateway() + await client.create_nat_gateway(**_request(CreateNatGatewayInputDict)) + await client.create_nat_gateway(_request(CreateNatGatewayInput)) + await client.create_nat_gateway(_request(CreateNatGatewayInputDict)) + await client.create_network_acl(vpc_id=_) + await client.create_network_acl(**_request(CreateNetworkAclInputDict)) + await client.create_network_acl(_request(CreateNetworkAclInput)) + await client.create_network_acl(_request(CreateNetworkAclInputDict)) + await client.create_network_acl_entry( + network_acl_id=_, rule_number=_, protocol=_, rule_action=_, egress=_ + ) + await client.create_network_acl_entry(**_request(CreateNetworkAclEntryInputDict)) + await client.create_network_acl_entry(_request(CreateNetworkAclEntryInput)) + await client.create_network_acl_entry(_request(CreateNetworkAclEntryInputDict)) + await client.create_network_insights_access_scope() + await client.create_network_insights_access_scope( + **_request(CreateNetworkInsightsAccessScopeInputDict) + ) + await client.create_network_insights_access_scope( + _request(CreateNetworkInsightsAccessScopeInput) + ) + await client.create_network_insights_access_scope( + _request(CreateNetworkInsightsAccessScopeInputDict) + ) + await client.create_network_insights_path(source=_, protocol=_) + await client.create_network_insights_path( + **_request(CreateNetworkInsightsPathInputDict) + ) + await client.create_network_insights_path(_request(CreateNetworkInsightsPathInput)) + await client.create_network_insights_path( + _request(CreateNetworkInsightsPathInputDict) + ) + await client.create_network_interface(subnet_id=_) + await client.create_network_interface(**_request(CreateNetworkInterfaceInputDict)) + await client.create_network_interface(_request(CreateNetworkInterfaceInput)) + await client.create_network_interface(_request(CreateNetworkInterfaceInputDict)) + await client.create_network_interface_permission( + network_interface_id=_, permission=_ + ) + await client.create_network_interface_permission( + **_request(CreateNetworkInterfacePermissionInputDict) + ) + await client.create_network_interface_permission( + _request(CreateNetworkInterfacePermissionInput) + ) + await client.create_network_interface_permission( + _request(CreateNetworkInterfacePermissionInputDict) + ) + await client.create_placement_group() + await client.create_placement_group(**_request(CreatePlacementGroupInputDict)) + await client.create_placement_group(_request(CreatePlacementGroupInput)) + await client.create_placement_group(_request(CreatePlacementGroupInputDict)) + await client.create_public_ipv4_pool() + await client.create_public_ipv4_pool(**_request(CreatePublicIpv4PoolInputDict)) + await client.create_public_ipv4_pool(_request(CreatePublicIpv4PoolInput)) + await client.create_public_ipv4_pool(_request(CreatePublicIpv4PoolInputDict)) + await client.create_replace_root_volume_task(instance_id=_) + await client.create_replace_root_volume_task( + **_request(CreateReplaceRootVolumeTaskInputDict) + ) + await client.create_replace_root_volume_task( + _request(CreateReplaceRootVolumeTaskInput) + ) + await client.create_replace_root_volume_task( + _request(CreateReplaceRootVolumeTaskInputDict) + ) + await client.create_reserved_instances_listing( + reserved_instances_id=_, instance_count=_, price_schedules=_, client_token=_ + ) + await client.create_reserved_instances_listing( + **_request(CreateReservedInstancesListingInputDict) + ) + await client.create_reserved_instances_listing( + _request(CreateReservedInstancesListingInput) + ) + await client.create_reserved_instances_listing( + _request(CreateReservedInstancesListingInputDict) + ) + await client.create_restore_image_task(bucket=_, object_key=_) + await client.create_restore_image_task(**_request(CreateRestoreImageTaskInputDict)) + await client.create_restore_image_task(_request(CreateRestoreImageTaskInput)) + await client.create_restore_image_task(_request(CreateRestoreImageTaskInputDict)) + await client.create_route(route_table_id=_) + await client.create_route(**_request(CreateRouteInputDict)) + await client.create_route(_request(CreateRouteInput)) + await client.create_route(_request(CreateRouteInputDict)) + await client.create_route_server(amazon_side_asn=_) + await client.create_route_server(**_request(CreateRouteServerInputDict)) + await client.create_route_server(_request(CreateRouteServerInput)) + await client.create_route_server(_request(CreateRouteServerInputDict)) + await client.create_route_server_endpoint(route_server_id=_, subnet_id=_) + await client.create_route_server_endpoint( + **_request(CreateRouteServerEndpointInputDict) + ) + await client.create_route_server_endpoint(_request(CreateRouteServerEndpointInput)) + await client.create_route_server_endpoint( + _request(CreateRouteServerEndpointInputDict) + ) + await client.create_route_server_peer( + route_server_endpoint_id=_, peer_address=_, bgp_options=_ + ) + await client.create_route_server_peer(**_request(CreateRouteServerPeerInputDict)) + await client.create_route_server_peer(_request(CreateRouteServerPeerInput)) + await client.create_route_server_peer(_request(CreateRouteServerPeerInputDict)) + await client.create_route_table(vpc_id=_) + await client.create_route_table(**_request(CreateRouteTableInputDict)) + await client.create_route_table(_request(CreateRouteTableInput)) + await client.create_route_table(_request(CreateRouteTableInputDict)) + await client.create_secondary_network(ipv4_cidr_block=_, network_type=_) + await client.create_secondary_network(**_request(CreateSecondaryNetworkInputDict)) + await client.create_secondary_network(_request(CreateSecondaryNetworkInput)) + await client.create_secondary_network(_request(CreateSecondaryNetworkInputDict)) + await client.create_secondary_subnet(ipv4_cidr_block=_, secondary_network_id=_) + await client.create_secondary_subnet(**_request(CreateSecondarySubnetInputDict)) + await client.create_secondary_subnet(_request(CreateSecondarySubnetInput)) + await client.create_secondary_subnet(_request(CreateSecondarySubnetInputDict)) + await client.create_security_group(description=_, group_name=_) + await client.create_security_group(**_request(CreateSecurityGroupInputDict)) + await client.create_security_group(_request(CreateSecurityGroupInput)) + await client.create_security_group(_request(CreateSecurityGroupInputDict)) + await client.create_snapshot(volume_id=_) + await client.create_snapshot(**_request(CreateSnapshotInputDict)) + await client.create_snapshot(_request(CreateSnapshotInput)) + await client.create_snapshot(_request(CreateSnapshotInputDict)) + await client.create_snapshots(instance_specification=_) + await client.create_snapshots(**_request(CreateSnapshotsInputDict)) + await client.create_snapshots(_request(CreateSnapshotsInput)) + await client.create_snapshots(_request(CreateSnapshotsInputDict)) + await client.create_spot_datafeed_subscription(bucket=_) + await client.create_spot_datafeed_subscription( + **_request(CreateSpotDatafeedSubscriptionInputDict) + ) + await client.create_spot_datafeed_subscription( + _request(CreateSpotDatafeedSubscriptionInput) + ) + await client.create_spot_datafeed_subscription( + _request(CreateSpotDatafeedSubscriptionInputDict) + ) + await client.create_store_image_task(image_id=_, bucket=_) + await client.create_store_image_task(**_request(CreateStoreImageTaskInputDict)) + await client.create_store_image_task(_request(CreateStoreImageTaskInput)) + await client.create_store_image_task(_request(CreateStoreImageTaskInputDict)) + await client.create_subnet(vpc_id=_) + await client.create_subnet(**_request(CreateSubnetInputDict)) + await client.create_subnet(_request(CreateSubnetInput)) + await client.create_subnet(_request(CreateSubnetInputDict)) + await client.create_subnet_cidr_reservation(subnet_id=_, cidr=_, reservation_type=_) + await client.create_subnet_cidr_reservation( + **_request(CreateSubnetCidrReservationInputDict) + ) + await client.create_subnet_cidr_reservation( + _request(CreateSubnetCidrReservationInput) + ) + await client.create_subnet_cidr_reservation( + _request(CreateSubnetCidrReservationInputDict) + ) + await client.create_tags(resources=_, tags=_) + await client.create_tags(**_request(CreateTagsInputDict)) + await client.create_tags(_request(CreateTagsInput)) + await client.create_tags(_request(CreateTagsInputDict)) + await client.create_traffic_mirror_filter() + await client.create_traffic_mirror_filter( + **_request(CreateTrafficMirrorFilterInputDict) + ) + await client.create_traffic_mirror_filter(_request(CreateTrafficMirrorFilterInput)) + await client.create_traffic_mirror_filter( + _request(CreateTrafficMirrorFilterInputDict) + ) + await client.create_traffic_mirror_filter_rule( + traffic_mirror_filter_id=_, + traffic_direction=_, + rule_number=_, + rule_action=_, + destination_cidr_block=_, + source_cidr_block=_, + ) + await client.create_traffic_mirror_filter_rule( + **_request(CreateTrafficMirrorFilterRuleInputDict) + ) + await client.create_traffic_mirror_filter_rule( + _request(CreateTrafficMirrorFilterRuleInput) + ) + await client.create_traffic_mirror_filter_rule( + _request(CreateTrafficMirrorFilterRuleInputDict) + ) + await client.create_traffic_mirror_session( + network_interface_id=_, + traffic_mirror_target_id=_, + traffic_mirror_filter_id=_, + session_number=_, + ) + await client.create_traffic_mirror_session( + **_request(CreateTrafficMirrorSessionInputDict) + ) + await client.create_traffic_mirror_session( + _request(CreateTrafficMirrorSessionInput) + ) + await client.create_traffic_mirror_session( + _request(CreateTrafficMirrorSessionInputDict) + ) + await client.create_traffic_mirror_target() + await client.create_traffic_mirror_target( + **_request(CreateTrafficMirrorTargetInputDict) + ) + await client.create_traffic_mirror_target(_request(CreateTrafficMirrorTargetInput)) + await client.create_traffic_mirror_target( + _request(CreateTrafficMirrorTargetInputDict) + ) + await client.create_transit_gateway() + await client.create_transit_gateway(**_request(CreateTransitGatewayInputDict)) + await client.create_transit_gateway(_request(CreateTransitGatewayInput)) + await client.create_transit_gateway(_request(CreateTransitGatewayInputDict)) + await client.create_transit_gateway_connect( + transport_transit_gateway_attachment_id=_, options=_ + ) + await client.create_transit_gateway_connect( + **_request(CreateTransitGatewayConnectInputDict) + ) + await client.create_transit_gateway_connect( + _request(CreateTransitGatewayConnectInput) + ) + await client.create_transit_gateway_connect( + _request(CreateTransitGatewayConnectInputDict) + ) + await client.create_transit_gateway_connect_peer( + transit_gateway_attachment_id=_, peer_address=_, inside_cidr_blocks=_ + ) + await client.create_transit_gateway_connect_peer( + **_request(CreateTransitGatewayConnectPeerInputDict) + ) + await client.create_transit_gateway_connect_peer( + _request(CreateTransitGatewayConnectPeerInput) + ) + await client.create_transit_gateway_connect_peer( + _request(CreateTransitGatewayConnectPeerInputDict) + ) + await client.create_transit_gateway_metering_policy(transit_gateway_id=_) + await client.create_transit_gateway_metering_policy( + **_request(CreateTransitGatewayMeteringPolicyInputDict) + ) + await client.create_transit_gateway_metering_policy( + _request(CreateTransitGatewayMeteringPolicyInput) + ) + await client.create_transit_gateway_metering_policy( + _request(CreateTransitGatewayMeteringPolicyInputDict) + ) + await client.create_transit_gateway_metering_policy_entry( + transit_gateway_metering_policy_id=_, policy_rule_number=_, metered_account=_ + ) + await client.create_transit_gateway_metering_policy_entry( + **_request(CreateTransitGatewayMeteringPolicyEntryInputDict) + ) + await client.create_transit_gateway_metering_policy_entry( + _request(CreateTransitGatewayMeteringPolicyEntryInput) + ) + await client.create_transit_gateway_metering_policy_entry( + _request(CreateTransitGatewayMeteringPolicyEntryInputDict) + ) + await client.create_transit_gateway_multicast_domain(transit_gateway_id=_) + await client.create_transit_gateway_multicast_domain( + **_request(CreateTransitGatewayMulticastDomainInputDict) + ) + await client.create_transit_gateway_multicast_domain( + _request(CreateTransitGatewayMulticastDomainInput) + ) + await client.create_transit_gateway_multicast_domain( + _request(CreateTransitGatewayMulticastDomainInputDict) + ) + await client.create_transit_gateway_peering_attachment( + transit_gateway_id=_, + peer_transit_gateway_id=_, + peer_account_id=_, + peer_region=_, + ) + await client.create_transit_gateway_peering_attachment( + **_request(CreateTransitGatewayPeeringAttachmentInputDict) + ) + await client.create_transit_gateway_peering_attachment( + _request(CreateTransitGatewayPeeringAttachmentInput) + ) + await client.create_transit_gateway_peering_attachment( + _request(CreateTransitGatewayPeeringAttachmentInputDict) + ) + await client.create_transit_gateway_policy_table(transit_gateway_id=_) + await client.create_transit_gateway_policy_table( + **_request(CreateTransitGatewayPolicyTableInputDict) + ) + await client.create_transit_gateway_policy_table( + _request(CreateTransitGatewayPolicyTableInput) + ) + await client.create_transit_gateway_policy_table( + _request(CreateTransitGatewayPolicyTableInputDict) + ) + await client.create_transit_gateway_policy_table_entry( + transit_gateway_policy_table_id=_, policy_rule_number=_, target_route_table_id=_ + ) + await client.create_transit_gateway_policy_table_entry( + **_request(CreateTransitGatewayPolicyTableEntryInputDict) + ) + await client.create_transit_gateway_policy_table_entry( + _request(CreateTransitGatewayPolicyTableEntryInput) + ) + await client.create_transit_gateway_policy_table_entry( + _request(CreateTransitGatewayPolicyTableEntryInputDict) + ) + await client.create_transit_gateway_prefix_list_reference( + transit_gateway_route_table_id=_, prefix_list_id=_ + ) + await client.create_transit_gateway_prefix_list_reference( + **_request(CreateTransitGatewayPrefixListReferenceInputDict) + ) + await client.create_transit_gateway_prefix_list_reference( + _request(CreateTransitGatewayPrefixListReferenceInput) + ) + await client.create_transit_gateway_prefix_list_reference( + _request(CreateTransitGatewayPrefixListReferenceInputDict) + ) + await client.create_transit_gateway_route( + destination_cidr_block=_, transit_gateway_route_table_id=_ + ) + await client.create_transit_gateway_route( + **_request(CreateTransitGatewayRouteInputDict) + ) + await client.create_transit_gateway_route(_request(CreateTransitGatewayRouteInput)) + await client.create_transit_gateway_route( + _request(CreateTransitGatewayRouteInputDict) + ) + await client.create_transit_gateway_route_table(transit_gateway_id=_) + await client.create_transit_gateway_route_table( + **_request(CreateTransitGatewayRouteTableInputDict) + ) + await client.create_transit_gateway_route_table( + _request(CreateTransitGatewayRouteTableInput) + ) + await client.create_transit_gateway_route_table( + _request(CreateTransitGatewayRouteTableInputDict) + ) + await client.create_transit_gateway_route_table_announcement( + transit_gateway_route_table_id=_, peering_attachment_id=_ + ) + await client.create_transit_gateway_route_table_announcement( + **_request(CreateTransitGatewayRouteTableAnnouncementInputDict) + ) + await client.create_transit_gateway_route_table_announcement( + _request(CreateTransitGatewayRouteTableAnnouncementInput) + ) + await client.create_transit_gateway_route_table_announcement( + _request(CreateTransitGatewayRouteTableAnnouncementInputDict) + ) + await client.create_transit_gateway_vpc_attachment( + transit_gateway_id=_, vpc_id=_, subnet_ids=_ + ) + await client.create_transit_gateway_vpc_attachment( + **_request(CreateTransitGatewayVpcAttachmentInputDict) + ) + await client.create_transit_gateway_vpc_attachment( + _request(CreateTransitGatewayVpcAttachmentInput) + ) + await client.create_transit_gateway_vpc_attachment( + _request(CreateTransitGatewayVpcAttachmentInputDict) + ) + await client.create_verified_access_endpoint( + verified_access_group_id=_, endpoint_type=_, attachment_type=_ + ) + await client.create_verified_access_endpoint( + **_request(CreateVerifiedAccessEndpointInputDict) + ) + await client.create_verified_access_endpoint( + _request(CreateVerifiedAccessEndpointInput) + ) + await client.create_verified_access_endpoint( + _request(CreateVerifiedAccessEndpointInputDict) + ) + await client.create_verified_access_group(verified_access_instance_id=_) + await client.create_verified_access_group( + **_request(CreateVerifiedAccessGroupInputDict) + ) + await client.create_verified_access_group(_request(CreateVerifiedAccessGroupInput)) + await client.create_verified_access_group( + _request(CreateVerifiedAccessGroupInputDict) + ) + await client.create_verified_access_instance() + await client.create_verified_access_instance( + **_request(CreateVerifiedAccessInstanceInputDict) + ) + await client.create_verified_access_instance( + _request(CreateVerifiedAccessInstanceInput) + ) + await client.create_verified_access_instance( + _request(CreateVerifiedAccessInstanceInputDict) + ) + await client.create_verified_access_trust_provider( + trust_provider_type=_, policy_reference_name=_ + ) + await client.create_verified_access_trust_provider( + **_request(CreateVerifiedAccessTrustProviderInputDict) + ) + await client.create_verified_access_trust_provider( + _request(CreateVerifiedAccessTrustProviderInput) + ) + await client.create_verified_access_trust_provider( + _request(CreateVerifiedAccessTrustProviderInputDict) + ) + await client.create_volume() + await client.create_volume(**_request(CreateVolumeInputDict)) + await client.create_volume(_request(CreateVolumeInput)) + await client.create_volume(_request(CreateVolumeInputDict)) + await client.create_vpc() + await client.create_vpc(**_request(CreateVpcInputDict)) + await client.create_vpc(_request(CreateVpcInput)) + await client.create_vpc(_request(CreateVpcInputDict)) + await client.create_vpc_block_public_access_exclusion( + internet_gateway_exclusion_mode=_ + ) + await client.create_vpc_block_public_access_exclusion( + **_request(CreateVpcBlockPublicAccessExclusionInputDict) + ) + await client.create_vpc_block_public_access_exclusion( + _request(CreateVpcBlockPublicAccessExclusionInput) + ) + await client.create_vpc_block_public_access_exclusion( + _request(CreateVpcBlockPublicAccessExclusionInputDict) + ) + await client.create_vpc_encryption_control(vpc_id=_) + await client.create_vpc_encryption_control( + **_request(CreateVpcEncryptionControlInputDict) + ) + await client.create_vpc_encryption_control( + _request(CreateVpcEncryptionControlInput) + ) + await client.create_vpc_encryption_control( + _request(CreateVpcEncryptionControlInputDict) + ) + await client.create_vpc_endpoint(vpc_id=_) + await client.create_vpc_endpoint(**_request(CreateVpcEndpointInputDict)) + await client.create_vpc_endpoint(_request(CreateVpcEndpointInput)) + await client.create_vpc_endpoint(_request(CreateVpcEndpointInputDict)) + await client.create_vpc_endpoint_connection_notification( + connection_notification_arn=_, connection_events=_ + ) + await client.create_vpc_endpoint_connection_notification( + **_request(CreateVpcEndpointConnectionNotificationInputDict) + ) + await client.create_vpc_endpoint_connection_notification( + _request(CreateVpcEndpointConnectionNotificationInput) + ) + await client.create_vpc_endpoint_connection_notification( + _request(CreateVpcEndpointConnectionNotificationInputDict) + ) + await client.create_vpc_endpoint_service_configuration() + await client.create_vpc_endpoint_service_configuration( + **_request(CreateVpcEndpointServiceConfigurationInputDict) + ) + await client.create_vpc_endpoint_service_configuration( + _request(CreateVpcEndpointServiceConfigurationInput) + ) + await client.create_vpc_endpoint_service_configuration( + _request(CreateVpcEndpointServiceConfigurationInputDict) + ) + await client.create_vpc_peering_connection(vpc_id=_) + await client.create_vpc_peering_connection( + **_request(CreateVpcPeeringConnectionInputDict) + ) + await client.create_vpc_peering_connection( + _request(CreateVpcPeeringConnectionInput) + ) + await client.create_vpc_peering_connection( + _request(CreateVpcPeeringConnectionInputDict) + ) + await client.create_vpn_concentrator(type=_) + await client.create_vpn_concentrator(**_request(CreateVpnConcentratorInputDict)) + await client.create_vpn_concentrator(_request(CreateVpnConcentratorInput)) + await client.create_vpn_concentrator(_request(CreateVpnConcentratorInputDict)) + await client.create_vpn_connection(customer_gateway_id=_, type=_) + await client.create_vpn_connection(**_request(CreateVpnConnectionInputDict)) + await client.create_vpn_connection(_request(CreateVpnConnectionInput)) + await client.create_vpn_connection(_request(CreateVpnConnectionInputDict)) + await client.create_vpn_connection_route( + destination_cidr_block=_, vpn_connection_id=_ + ) + await client.create_vpn_connection_route( + **_request(CreateVpnConnectionRouteInputDict) + ) + await client.create_vpn_connection_route(_request(CreateVpnConnectionRouteInput)) + await client.create_vpn_connection_route( + _request(CreateVpnConnectionRouteInputDict) + ) + await client.create_vpn_gateway(type=_) + await client.create_vpn_gateway(**_request(CreateVpnGatewayInputDict)) + await client.create_vpn_gateway(_request(CreateVpnGatewayInput)) + await client.create_vpn_gateway(_request(CreateVpnGatewayInputDict)) + await client.delete_application_status_check(application_status_check_id=_) + await client.delete_application_status_check( + **_request(DeleteApplicationStatusCheckInputDict) + ) + await client.delete_application_status_check( + _request(DeleteApplicationStatusCheckInput) + ) + await client.delete_application_status_check( + _request(DeleteApplicationStatusCheckInputDict) + ) + await client.delete_capacity_manager_data_export(capacity_manager_data_export_id=_) + await client.delete_capacity_manager_data_export( + **_request(DeleteCapacityManagerDataExportInputDict) + ) + await client.delete_capacity_manager_data_export( + _request(DeleteCapacityManagerDataExportInput) + ) + await client.delete_capacity_manager_data_export( + _request(DeleteCapacityManagerDataExportInputDict) + ) + await client.delete_carrier_gateway(carrier_gateway_id=_) + await client.delete_carrier_gateway(**_request(DeleteCarrierGatewayInputDict)) + await client.delete_carrier_gateway(_request(DeleteCarrierGatewayInput)) + await client.delete_carrier_gateway(_request(DeleteCarrierGatewayInputDict)) + await client.delete_client_vpn_endpoint(client_vpn_endpoint_id=_) + await client.delete_client_vpn_endpoint( + **_request(DeleteClientVpnEndpointInputDict) + ) + await client.delete_client_vpn_endpoint(_request(DeleteClientVpnEndpointInput)) + await client.delete_client_vpn_endpoint(_request(DeleteClientVpnEndpointInputDict)) + await client.delete_client_vpn_endpoint_authorization_policy( + client_vpn_endpoint_id=_ + ) + await client.delete_client_vpn_endpoint_authorization_policy( + **_request(DeleteClientVpnEndpointAuthorizationPolicyInputDict) + ) + await client.delete_client_vpn_endpoint_authorization_policy( + _request(DeleteClientVpnEndpointAuthorizationPolicyInput) + ) + await client.delete_client_vpn_endpoint_authorization_policy( + _request(DeleteClientVpnEndpointAuthorizationPolicyInputDict) + ) + await client.delete_client_vpn_route( + client_vpn_endpoint_id=_, destination_cidr_block=_ + ) + await client.delete_client_vpn_route(**_request(DeleteClientVpnRouteInputDict)) + await client.delete_client_vpn_route(_request(DeleteClientVpnRouteInput)) + await client.delete_client_vpn_route(_request(DeleteClientVpnRouteInputDict)) + await client.delete_coip_cidr(cidr=_, coip_pool_id=_) + await client.delete_coip_cidr(**_request(DeleteCoipCidrInputDict)) + await client.delete_coip_cidr(_request(DeleteCoipCidrInput)) + await client.delete_coip_cidr(_request(DeleteCoipCidrInputDict)) + await client.delete_coip_pool(coip_pool_id=_) + await client.delete_coip_pool(**_request(DeleteCoipPoolInputDict)) + await client.delete_coip_pool(_request(DeleteCoipPoolInput)) + await client.delete_coip_pool(_request(DeleteCoipPoolInputDict)) + await client.delete_customer_gateway(customer_gateway_id=_) + await client.delete_customer_gateway(**_request(DeleteCustomerGatewayInputDict)) + await client.delete_customer_gateway(_request(DeleteCustomerGatewayInput)) + await client.delete_customer_gateway(_request(DeleteCustomerGatewayInputDict)) + await client.delete_dhcp_options(dhcp_options_id=_) + await client.delete_dhcp_options(**_request(DeleteDhcpOptionsInputDict)) + await client.delete_dhcp_options(_request(DeleteDhcpOptionsInput)) + await client.delete_dhcp_options(_request(DeleteDhcpOptionsInputDict)) + await client.delete_egress_only_internet_gateway(egress_only_internet_gateway_id=_) + await client.delete_egress_only_internet_gateway( + **_request(DeleteEgressOnlyInternetGatewayInputDict) + ) + await client.delete_egress_only_internet_gateway( + _request(DeleteEgressOnlyInternetGatewayInput) + ) + await client.delete_egress_only_internet_gateway( + _request(DeleteEgressOnlyInternetGatewayInputDict) + ) + await client.delete_fleets(fleet_ids=_, terminate_instances=_) + await client.delete_fleets(**_request(DeleteFleetsInputDict)) + await client.delete_fleets(_request(DeleteFleetsInput)) + await client.delete_fleets(_request(DeleteFleetsInputDict)) + await client.delete_flow_logs(flow_log_ids=_) + await client.delete_flow_logs(**_request(DeleteFlowLogsInputDict)) + await client.delete_flow_logs(_request(DeleteFlowLogsInput)) + await client.delete_flow_logs(_request(DeleteFlowLogsInputDict)) + await client.delete_fpga_image(fpga_image_id=_) + await client.delete_fpga_image(**_request(DeleteFpgaImageInputDict)) + await client.delete_fpga_image(_request(DeleteFpgaImageInput)) + await client.delete_fpga_image(_request(DeleteFpgaImageInputDict)) + await client.delete_image_usage_report(report_id=_) + await client.delete_image_usage_report(**_request(DeleteImageUsageReportInputDict)) + await client.delete_image_usage_report(_request(DeleteImageUsageReportInput)) + await client.delete_image_usage_report(_request(DeleteImageUsageReportInputDict)) + await client.delete_instance_connect_endpoint(instance_connect_endpoint_id=_) + await client.delete_instance_connect_endpoint( + **_request(DeleteInstanceConnectEndpointInputDict) + ) + await client.delete_instance_connect_endpoint( + _request(DeleteInstanceConnectEndpointInput) + ) + await client.delete_instance_connect_endpoint( + _request(DeleteInstanceConnectEndpointInputDict) + ) + await client.delete_instance_event_window(instance_event_window_id=_) + await client.delete_instance_event_window( + **_request(DeleteInstanceEventWindowInputDict) + ) + await client.delete_instance_event_window(_request(DeleteInstanceEventWindowInput)) + await client.delete_instance_event_window( + _request(DeleteInstanceEventWindowInputDict) + ) + await client.delete_internet_gateway(internet_gateway_id=_) + await client.delete_internet_gateway(**_request(DeleteInternetGatewayInputDict)) + await client.delete_internet_gateway(_request(DeleteInternetGatewayInput)) + await client.delete_internet_gateway(_request(DeleteInternetGatewayInputDict)) + await client.delete_ipam(ipam_id=_) + await client.delete_ipam(**_request(DeleteIpamInputDict)) + await client.delete_ipam(_request(DeleteIpamInput)) + await client.delete_ipam(_request(DeleteIpamInputDict)) + await client.delete_ipam_external_resource_verification_token( + ipam_external_resource_verification_token_id=_ + ) + await client.delete_ipam_external_resource_verification_token( + **_request(DeleteIpamExternalResourceVerificationTokenInputDict) + ) + await client.delete_ipam_external_resource_verification_token( + _request(DeleteIpamExternalResourceVerificationTokenInput) + ) + await client.delete_ipam_external_resource_verification_token( + _request(DeleteIpamExternalResourceVerificationTokenInputDict) + ) + await client.delete_ipam_internet_registry_association( + ipam_internet_registry_association_id=_ + ) + await client.delete_ipam_internet_registry_association( + **_request(DeleteIpamInternetRegistryAssociationInputDict) + ) + await client.delete_ipam_internet_registry_association( + _request(DeleteIpamInternetRegistryAssociationInput) + ) + await client.delete_ipam_internet_registry_association( + _request(DeleteIpamInternetRegistryAssociationInputDict) + ) + await client.delete_ipam_policy(ipam_policy_id=_) + await client.delete_ipam_policy(**_request(DeleteIpamPolicyInputDict)) + await client.delete_ipam_policy(_request(DeleteIpamPolicyInput)) + await client.delete_ipam_policy(_request(DeleteIpamPolicyInputDict)) + await client.delete_ipam_pool(ipam_pool_id=_) + await client.delete_ipam_pool(**_request(DeleteIpamPoolInputDict)) + await client.delete_ipam_pool(_request(DeleteIpamPoolInput)) + await client.delete_ipam_pool(_request(DeleteIpamPoolInputDict)) + await client.delete_ipam_prefix_list_resolver(ipam_prefix_list_resolver_id=_) + await client.delete_ipam_prefix_list_resolver( + **_request(DeleteIpamPrefixListResolverInputDict) + ) + await client.delete_ipam_prefix_list_resolver( + _request(DeleteIpamPrefixListResolverInput) + ) + await client.delete_ipam_prefix_list_resolver( + _request(DeleteIpamPrefixListResolverInputDict) + ) + await client.delete_ipam_prefix_list_resolver_target( + ipam_prefix_list_resolver_target_id=_ + ) + await client.delete_ipam_prefix_list_resolver_target( + **_request(DeleteIpamPrefixListResolverTargetInputDict) + ) + await client.delete_ipam_prefix_list_resolver_target( + _request(DeleteIpamPrefixListResolverTargetInput) + ) + await client.delete_ipam_prefix_list_resolver_target( + _request(DeleteIpamPrefixListResolverTargetInputDict) + ) + await client.delete_ipam_resource_discovery(ipam_resource_discovery_id=_) + await client.delete_ipam_resource_discovery( + **_request(DeleteIpamResourceDiscoveryInputDict) + ) + await client.delete_ipam_resource_discovery( + _request(DeleteIpamResourceDiscoveryInput) + ) + await client.delete_ipam_resource_discovery( + _request(DeleteIpamResourceDiscoveryInputDict) + ) + await client.delete_ipam_routing_policy_registration( + ipam_internet_registry_association_id=_, cidr=_ + ) + await client.delete_ipam_routing_policy_registration( + **_request(DeleteIpamRoutingPolicyRegistrationInputDict) + ) + await client.delete_ipam_routing_policy_registration( + _request(DeleteIpamRoutingPolicyRegistrationInput) + ) + await client.delete_ipam_routing_policy_registration( + _request(DeleteIpamRoutingPolicyRegistrationInputDict) + ) + await client.delete_ipam_scope(ipam_scope_id=_) + await client.delete_ipam_scope(**_request(DeleteIpamScopeInputDict)) + await client.delete_ipam_scope(_request(DeleteIpamScopeInput)) + await client.delete_ipam_scope(_request(DeleteIpamScopeInputDict)) + await client.delete_key_pair() + await client.delete_key_pair(**_request(DeleteKeyPairInputDict)) + await client.delete_key_pair(_request(DeleteKeyPairInput)) + await client.delete_key_pair(_request(DeleteKeyPairInputDict)) + await client.delete_launch_template() + await client.delete_launch_template(**_request(DeleteLaunchTemplateInputDict)) + await client.delete_launch_template(_request(DeleteLaunchTemplateInput)) + await client.delete_launch_template(_request(DeleteLaunchTemplateInputDict)) + await client.delete_launch_template_versions(versions=_) + await client.delete_launch_template_versions( + **_request(DeleteLaunchTemplateVersionsInputDict) + ) + await client.delete_launch_template_versions( + _request(DeleteLaunchTemplateVersionsInput) + ) + await client.delete_launch_template_versions( + _request(DeleteLaunchTemplateVersionsInputDict) + ) + await client.delete_local_gateway_route(local_gateway_route_table_id=_) + await client.delete_local_gateway_route( + **_request(DeleteLocalGatewayRouteInputDict) + ) + await client.delete_local_gateway_route(_request(DeleteLocalGatewayRouteInput)) + await client.delete_local_gateway_route(_request(DeleteLocalGatewayRouteInputDict)) + await client.delete_local_gateway_route_table(local_gateway_route_table_id=_) + await client.delete_local_gateway_route_table( + **_request(DeleteLocalGatewayRouteTableInputDict) + ) + await client.delete_local_gateway_route_table( + _request(DeleteLocalGatewayRouteTableInput) + ) + await client.delete_local_gateway_route_table( + _request(DeleteLocalGatewayRouteTableInputDict) + ) + await client.delete_local_gateway_route_table_virtual_interface_group_association( + local_gateway_route_table_virtual_interface_group_association_id=_ + ) + await client.delete_local_gateway_route_table_virtual_interface_group_association( + **_request( + DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict + ) + ) + await client.delete_local_gateway_route_table_virtual_interface_group_association( + _request(DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) + ) + await client.delete_local_gateway_route_table_virtual_interface_group_association( + _request(DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict) + ) + await client.delete_local_gateway_route_table_vpc_association( + local_gateway_route_table_vpc_association_id=_ + ) + await client.delete_local_gateway_route_table_vpc_association( + **_request(DeleteLocalGatewayRouteTableVpcAssociationInputDict) + ) + await client.delete_local_gateway_route_table_vpc_association( + _request(DeleteLocalGatewayRouteTableVpcAssociationInput) + ) + await client.delete_local_gateway_route_table_vpc_association( + _request(DeleteLocalGatewayRouteTableVpcAssociationInputDict) + ) + await client.delete_local_gateway_virtual_interface( + local_gateway_virtual_interface_id=_ + ) + await client.delete_local_gateway_virtual_interface( + **_request(DeleteLocalGatewayVirtualInterfaceInputDict) + ) + await client.delete_local_gateway_virtual_interface( + _request(DeleteLocalGatewayVirtualInterfaceInput) + ) + await client.delete_local_gateway_virtual_interface( + _request(DeleteLocalGatewayVirtualInterfaceInputDict) + ) + await client.delete_local_gateway_virtual_interface_group( + local_gateway_virtual_interface_group_id=_ + ) + await client.delete_local_gateway_virtual_interface_group( + **_request(DeleteLocalGatewayVirtualInterfaceGroupInputDict) + ) + await client.delete_local_gateway_virtual_interface_group( + _request(DeleteLocalGatewayVirtualInterfaceGroupInput) + ) + await client.delete_local_gateway_virtual_interface_group( + _request(DeleteLocalGatewayVirtualInterfaceGroupInputDict) + ) + await client.delete_managed_prefix_list(prefix_list_id=_) + await client.delete_managed_prefix_list( + **_request(DeleteManagedPrefixListInputDict) + ) + await client.delete_managed_prefix_list(_request(DeleteManagedPrefixListInput)) + await client.delete_managed_prefix_list(_request(DeleteManagedPrefixListInputDict)) + await client.delete_nat_gateway(nat_gateway_id=_) + await client.delete_nat_gateway(**_request(DeleteNatGatewayInputDict)) + await client.delete_nat_gateway(_request(DeleteNatGatewayInput)) + await client.delete_nat_gateway(_request(DeleteNatGatewayInputDict)) + await client.delete_network_acl(network_acl_id=_) + await client.delete_network_acl(**_request(DeleteNetworkAclInputDict)) + await client.delete_network_acl(_request(DeleteNetworkAclInput)) + await client.delete_network_acl(_request(DeleteNetworkAclInputDict)) + await client.delete_network_acl_entry(network_acl_id=_, rule_number=_, egress=_) + await client.delete_network_acl_entry(**_request(DeleteNetworkAclEntryInputDict)) + await client.delete_network_acl_entry(_request(DeleteNetworkAclEntryInput)) + await client.delete_network_acl_entry(_request(DeleteNetworkAclEntryInputDict)) + await client.delete_network_insights_access_scope( + network_insights_access_scope_id=_ + ) + await client.delete_network_insights_access_scope( + **_request(DeleteNetworkInsightsAccessScopeInputDict) + ) + await client.delete_network_insights_access_scope( + _request(DeleteNetworkInsightsAccessScopeInput) + ) + await client.delete_network_insights_access_scope( + _request(DeleteNetworkInsightsAccessScopeInputDict) + ) + await client.delete_network_insights_access_scope_analysis( + network_insights_access_scope_analysis_id=_ + ) + await client.delete_network_insights_access_scope_analysis( + **_request(DeleteNetworkInsightsAccessScopeAnalysisInputDict) + ) + await client.delete_network_insights_access_scope_analysis( + _request(DeleteNetworkInsightsAccessScopeAnalysisInput) + ) + await client.delete_network_insights_access_scope_analysis( + _request(DeleteNetworkInsightsAccessScopeAnalysisInputDict) + ) + await client.delete_network_insights_analysis(network_insights_analysis_id=_) + await client.delete_network_insights_analysis( + **_request(DeleteNetworkInsightsAnalysisInputDict) + ) + await client.delete_network_insights_analysis( + _request(DeleteNetworkInsightsAnalysisInput) + ) + await client.delete_network_insights_analysis( + _request(DeleteNetworkInsightsAnalysisInputDict) + ) + await client.delete_network_insights_path(network_insights_path_id=_) + await client.delete_network_insights_path( + **_request(DeleteNetworkInsightsPathInputDict) + ) + await client.delete_network_insights_path(_request(DeleteNetworkInsightsPathInput)) + await client.delete_network_insights_path( + _request(DeleteNetworkInsightsPathInputDict) + ) + await client.delete_network_interface(network_interface_id=_) + await client.delete_network_interface(**_request(DeleteNetworkInterfaceInputDict)) + await client.delete_network_interface(_request(DeleteNetworkInterfaceInput)) + await client.delete_network_interface(_request(DeleteNetworkInterfaceInputDict)) + await client.delete_network_interface_permission(network_interface_permission_id=_) + await client.delete_network_interface_permission( + **_request(DeleteNetworkInterfacePermissionInputDict) + ) + await client.delete_network_interface_permission( + _request(DeleteNetworkInterfacePermissionInput) + ) + await client.delete_network_interface_permission( + _request(DeleteNetworkInterfacePermissionInputDict) + ) + await client.delete_placement_group(group_name=_) + await client.delete_placement_group(**_request(DeletePlacementGroupInputDict)) + await client.delete_placement_group(_request(DeletePlacementGroupInput)) + await client.delete_placement_group(_request(DeletePlacementGroupInputDict)) + await client.delete_public_ipv4_pool(pool_id=_) + await client.delete_public_ipv4_pool(**_request(DeletePublicIpv4PoolInputDict)) + await client.delete_public_ipv4_pool(_request(DeletePublicIpv4PoolInput)) + await client.delete_public_ipv4_pool(_request(DeletePublicIpv4PoolInputDict)) + await client.delete_queued_reserved_instances(reserved_instances_ids=_) + await client.delete_queued_reserved_instances( + **_request(DeleteQueuedReservedInstancesInputDict) + ) + await client.delete_queued_reserved_instances( + _request(DeleteQueuedReservedInstancesInput) + ) + await client.delete_queued_reserved_instances( + _request(DeleteQueuedReservedInstancesInputDict) + ) + await client.delete_route(route_table_id=_) + await client.delete_route(**_request(DeleteRouteInputDict)) + await client.delete_route(_request(DeleteRouteInput)) + await client.delete_route(_request(DeleteRouteInputDict)) + await client.delete_route_server(route_server_id=_) + await client.delete_route_server(**_request(DeleteRouteServerInputDict)) + await client.delete_route_server(_request(DeleteRouteServerInput)) + await client.delete_route_server(_request(DeleteRouteServerInputDict)) + await client.delete_route_server_endpoint(route_server_endpoint_id=_) + await client.delete_route_server_endpoint( + **_request(DeleteRouteServerEndpointInputDict) + ) + await client.delete_route_server_endpoint(_request(DeleteRouteServerEndpointInput)) + await client.delete_route_server_endpoint( + _request(DeleteRouteServerEndpointInputDict) + ) + await client.delete_route_server_peer(route_server_peer_id=_) + await client.delete_route_server_peer(**_request(DeleteRouteServerPeerInputDict)) + await client.delete_route_server_peer(_request(DeleteRouteServerPeerInput)) + await client.delete_route_server_peer(_request(DeleteRouteServerPeerInputDict)) + await client.delete_route_table(route_table_id=_) + await client.delete_route_table(**_request(DeleteRouteTableInputDict)) + await client.delete_route_table(_request(DeleteRouteTableInput)) + await client.delete_route_table(_request(DeleteRouteTableInputDict)) + await client.delete_secondary_network(secondary_network_id=_) + await client.delete_secondary_network(**_request(DeleteSecondaryNetworkInputDict)) + await client.delete_secondary_network(_request(DeleteSecondaryNetworkInput)) + await client.delete_secondary_network(_request(DeleteSecondaryNetworkInputDict)) + await client.delete_secondary_subnet(secondary_subnet_id=_) + await client.delete_secondary_subnet(**_request(DeleteSecondarySubnetInputDict)) + await client.delete_secondary_subnet(_request(DeleteSecondarySubnetInput)) + await client.delete_secondary_subnet(_request(DeleteSecondarySubnetInputDict)) + await client.delete_security_group() + await client.delete_security_group(**_request(DeleteSecurityGroupInputDict)) + await client.delete_security_group(_request(DeleteSecurityGroupInput)) + await client.delete_security_group(_request(DeleteSecurityGroupInputDict)) + await client.delete_snapshot(snapshot_id=_) + await client.delete_snapshot(**_request(DeleteSnapshotInputDict)) + await client.delete_snapshot(_request(DeleteSnapshotInput)) + await client.delete_snapshot(_request(DeleteSnapshotInputDict)) + await client.delete_spot_datafeed_subscription() + await client.delete_spot_datafeed_subscription( + **_request(DeleteSpotDatafeedSubscriptionInputDict) + ) + await client.delete_spot_datafeed_subscription( + _request(DeleteSpotDatafeedSubscriptionInput) + ) + await client.delete_spot_datafeed_subscription( + _request(DeleteSpotDatafeedSubscriptionInputDict) + ) + await client.delete_subnet(subnet_id=_) + await client.delete_subnet(**_request(DeleteSubnetInputDict)) + await client.delete_subnet(_request(DeleteSubnetInput)) + await client.delete_subnet(_request(DeleteSubnetInputDict)) + await client.delete_subnet_cidr_reservation(subnet_cidr_reservation_id=_) + await client.delete_subnet_cidr_reservation( + **_request(DeleteSubnetCidrReservationInputDict) + ) + await client.delete_subnet_cidr_reservation( + _request(DeleteSubnetCidrReservationInput) + ) + await client.delete_subnet_cidr_reservation( + _request(DeleteSubnetCidrReservationInputDict) + ) + await client.delete_tags(resources=_) + await client.delete_tags(**_request(DeleteTagsInputDict)) + await client.delete_tags(_request(DeleteTagsInput)) + await client.delete_tags(_request(DeleteTagsInputDict)) + await client.delete_traffic_mirror_filter(traffic_mirror_filter_id=_) + await client.delete_traffic_mirror_filter( + **_request(DeleteTrafficMirrorFilterInputDict) + ) + await client.delete_traffic_mirror_filter(_request(DeleteTrafficMirrorFilterInput)) + await client.delete_traffic_mirror_filter( + _request(DeleteTrafficMirrorFilterInputDict) + ) + await client.delete_traffic_mirror_filter_rule(traffic_mirror_filter_rule_id=_) + await client.delete_traffic_mirror_filter_rule( + **_request(DeleteTrafficMirrorFilterRuleInputDict) + ) + await client.delete_traffic_mirror_filter_rule( + _request(DeleteTrafficMirrorFilterRuleInput) + ) + await client.delete_traffic_mirror_filter_rule( + _request(DeleteTrafficMirrorFilterRuleInputDict) + ) + await client.delete_traffic_mirror_session(traffic_mirror_session_id=_) + await client.delete_traffic_mirror_session( + **_request(DeleteTrafficMirrorSessionInputDict) + ) + await client.delete_traffic_mirror_session( + _request(DeleteTrafficMirrorSessionInput) + ) + await client.delete_traffic_mirror_session( + _request(DeleteTrafficMirrorSessionInputDict) + ) + await client.delete_traffic_mirror_target(traffic_mirror_target_id=_) + await client.delete_traffic_mirror_target( + **_request(DeleteTrafficMirrorTargetInputDict) + ) + await client.delete_traffic_mirror_target(_request(DeleteTrafficMirrorTargetInput)) + await client.delete_traffic_mirror_target( + _request(DeleteTrafficMirrorTargetInputDict) + ) + await client.delete_transit_gateway(transit_gateway_id=_) + await client.delete_transit_gateway(**_request(DeleteTransitGatewayInputDict)) + await client.delete_transit_gateway(_request(DeleteTransitGatewayInput)) + await client.delete_transit_gateway(_request(DeleteTransitGatewayInputDict)) + await client.delete_transit_gateway_client_vpn_attachment( + transit_gateway_attachment_id=_ + ) + await client.delete_transit_gateway_client_vpn_attachment( + **_request(DeleteTransitGatewayClientVpnAttachmentInputDict) + ) + await client.delete_transit_gateway_client_vpn_attachment( + _request(DeleteTransitGatewayClientVpnAttachmentInput) + ) + await client.delete_transit_gateway_client_vpn_attachment( + _request(DeleteTransitGatewayClientVpnAttachmentInputDict) + ) + await client.delete_transit_gateway_connect(transit_gateway_attachment_id=_) + await client.delete_transit_gateway_connect( + **_request(DeleteTransitGatewayConnectInputDict) + ) + await client.delete_transit_gateway_connect( + _request(DeleteTransitGatewayConnectInput) + ) + await client.delete_transit_gateway_connect( + _request(DeleteTransitGatewayConnectInputDict) + ) + await client.delete_transit_gateway_connect_peer(transit_gateway_connect_peer_id=_) + await client.delete_transit_gateway_connect_peer( + **_request(DeleteTransitGatewayConnectPeerInputDict) + ) + await client.delete_transit_gateway_connect_peer( + _request(DeleteTransitGatewayConnectPeerInput) + ) + await client.delete_transit_gateway_connect_peer( + _request(DeleteTransitGatewayConnectPeerInputDict) + ) + await client.delete_transit_gateway_metering_policy( + transit_gateway_metering_policy_id=_ + ) + await client.delete_transit_gateway_metering_policy( + **_request(DeleteTransitGatewayMeteringPolicyInputDict) + ) + await client.delete_transit_gateway_metering_policy( + _request(DeleteTransitGatewayMeteringPolicyInput) + ) + await client.delete_transit_gateway_metering_policy( + _request(DeleteTransitGatewayMeteringPolicyInputDict) + ) + await client.delete_transit_gateway_metering_policy_entry( + transit_gateway_metering_policy_id=_, policy_rule_number=_ + ) + await client.delete_transit_gateway_metering_policy_entry( + **_request(DeleteTransitGatewayMeteringPolicyEntryInputDict) + ) + await client.delete_transit_gateway_metering_policy_entry( + _request(DeleteTransitGatewayMeteringPolicyEntryInput) + ) + await client.delete_transit_gateway_metering_policy_entry( + _request(DeleteTransitGatewayMeteringPolicyEntryInputDict) + ) + await client.delete_transit_gateway_multicast_domain( + transit_gateway_multicast_domain_id=_ + ) + await client.delete_transit_gateway_multicast_domain( + **_request(DeleteTransitGatewayMulticastDomainInputDict) + ) + await client.delete_transit_gateway_multicast_domain( + _request(DeleteTransitGatewayMulticastDomainInput) + ) + await client.delete_transit_gateway_multicast_domain( + _request(DeleteTransitGatewayMulticastDomainInputDict) + ) + await client.delete_transit_gateway_peering_attachment( + transit_gateway_attachment_id=_ + ) + await client.delete_transit_gateway_peering_attachment( + **_request(DeleteTransitGatewayPeeringAttachmentInputDict) + ) + await client.delete_transit_gateway_peering_attachment( + _request(DeleteTransitGatewayPeeringAttachmentInput) + ) + await client.delete_transit_gateway_peering_attachment( + _request(DeleteTransitGatewayPeeringAttachmentInputDict) + ) + await client.delete_transit_gateway_policy_table(transit_gateway_policy_table_id=_) + await client.delete_transit_gateway_policy_table( + **_request(DeleteTransitGatewayPolicyTableInputDict) + ) + await client.delete_transit_gateway_policy_table( + _request(DeleteTransitGatewayPolicyTableInput) + ) + await client.delete_transit_gateway_policy_table( + _request(DeleteTransitGatewayPolicyTableInputDict) + ) + await client.delete_transit_gateway_policy_table_entry( + transit_gateway_policy_table_id=_, policy_rule_number=_ + ) + await client.delete_transit_gateway_policy_table_entry( + **_request(DeleteTransitGatewayPolicyTableEntryInputDict) + ) + await client.delete_transit_gateway_policy_table_entry( + _request(DeleteTransitGatewayPolicyTableEntryInput) + ) + await client.delete_transit_gateway_policy_table_entry( + _request(DeleteTransitGatewayPolicyTableEntryInputDict) + ) + await client.delete_transit_gateway_prefix_list_reference( + transit_gateway_route_table_id=_, prefix_list_id=_ + ) + await client.delete_transit_gateway_prefix_list_reference( + **_request(DeleteTransitGatewayPrefixListReferenceInputDict) + ) + await client.delete_transit_gateway_prefix_list_reference( + _request(DeleteTransitGatewayPrefixListReferenceInput) + ) + await client.delete_transit_gateway_prefix_list_reference( + _request(DeleteTransitGatewayPrefixListReferenceInputDict) + ) + await client.delete_transit_gateway_route( + transit_gateway_route_table_id=_, destination_cidr_block=_ + ) + await client.delete_transit_gateway_route( + **_request(DeleteTransitGatewayRouteInputDict) + ) + await client.delete_transit_gateway_route(_request(DeleteTransitGatewayRouteInput)) + await client.delete_transit_gateway_route( + _request(DeleteTransitGatewayRouteInputDict) + ) + await client.delete_transit_gateway_route_table(transit_gateway_route_table_id=_) + await client.delete_transit_gateway_route_table( + **_request(DeleteTransitGatewayRouteTableInputDict) + ) + await client.delete_transit_gateway_route_table( + _request(DeleteTransitGatewayRouteTableInput) + ) + await client.delete_transit_gateway_route_table( + _request(DeleteTransitGatewayRouteTableInputDict) + ) + await client.delete_transit_gateway_route_table_announcement( + transit_gateway_route_table_announcement_id=_ + ) + await client.delete_transit_gateway_route_table_announcement( + **_request(DeleteTransitGatewayRouteTableAnnouncementInputDict) + ) + await client.delete_transit_gateway_route_table_announcement( + _request(DeleteTransitGatewayRouteTableAnnouncementInput) + ) + await client.delete_transit_gateway_route_table_announcement( + _request(DeleteTransitGatewayRouteTableAnnouncementInputDict) + ) + await client.delete_transit_gateway_vpc_attachment(transit_gateway_attachment_id=_) + await client.delete_transit_gateway_vpc_attachment( + **_request(DeleteTransitGatewayVpcAttachmentInputDict) + ) + await client.delete_transit_gateway_vpc_attachment( + _request(DeleteTransitGatewayVpcAttachmentInput) + ) + await client.delete_transit_gateway_vpc_attachment( + _request(DeleteTransitGatewayVpcAttachmentInputDict) + ) + await client.delete_verified_access_endpoint(verified_access_endpoint_id=_) + await client.delete_verified_access_endpoint( + **_request(DeleteVerifiedAccessEndpointInputDict) + ) + await client.delete_verified_access_endpoint( + _request(DeleteVerifiedAccessEndpointInput) + ) + await client.delete_verified_access_endpoint( + _request(DeleteVerifiedAccessEndpointInputDict) + ) + await client.delete_verified_access_group(verified_access_group_id=_) + await client.delete_verified_access_group( + **_request(DeleteVerifiedAccessGroupInputDict) + ) + await client.delete_verified_access_group(_request(DeleteVerifiedAccessGroupInput)) + await client.delete_verified_access_group( + _request(DeleteVerifiedAccessGroupInputDict) + ) + await client.delete_verified_access_instance(verified_access_instance_id=_) + await client.delete_verified_access_instance( + **_request(DeleteVerifiedAccessInstanceInputDict) + ) + await client.delete_verified_access_instance( + _request(DeleteVerifiedAccessInstanceInput) + ) + await client.delete_verified_access_instance( + _request(DeleteVerifiedAccessInstanceInputDict) + ) + await client.delete_verified_access_trust_provider( + verified_access_trust_provider_id=_ + ) + await client.delete_verified_access_trust_provider( + **_request(DeleteVerifiedAccessTrustProviderInputDict) + ) + await client.delete_verified_access_trust_provider( + _request(DeleteVerifiedAccessTrustProviderInput) + ) + await client.delete_verified_access_trust_provider( + _request(DeleteVerifiedAccessTrustProviderInputDict) + ) + await client.delete_volume(volume_id=_) + await client.delete_volume(**_request(DeleteVolumeInputDict)) + await client.delete_volume(_request(DeleteVolumeInput)) + await client.delete_volume(_request(DeleteVolumeInputDict)) + await client.delete_vpc(vpc_id=_) + await client.delete_vpc(**_request(DeleteVpcInputDict)) + await client.delete_vpc(_request(DeleteVpcInput)) + await client.delete_vpc(_request(DeleteVpcInputDict)) + await client.delete_vpc_block_public_access_exclusion(exclusion_id=_) + await client.delete_vpc_block_public_access_exclusion( + **_request(DeleteVpcBlockPublicAccessExclusionInputDict) + ) + await client.delete_vpc_block_public_access_exclusion( + _request(DeleteVpcBlockPublicAccessExclusionInput) + ) + await client.delete_vpc_block_public_access_exclusion( + _request(DeleteVpcBlockPublicAccessExclusionInputDict) + ) + await client.delete_vpc_encryption_control(vpc_encryption_control_id=_) + await client.delete_vpc_encryption_control( + **_request(DeleteVpcEncryptionControlInputDict) + ) + await client.delete_vpc_encryption_control( + _request(DeleteVpcEncryptionControlInput) + ) + await client.delete_vpc_encryption_control( + _request(DeleteVpcEncryptionControlInputDict) + ) + await client.delete_vpc_endpoint_connection_notifications( + connection_notification_ids=_ + ) + await client.delete_vpc_endpoint_connection_notifications( + **_request(DeleteVpcEndpointConnectionNotificationsInputDict) + ) + await client.delete_vpc_endpoint_connection_notifications( + _request(DeleteVpcEndpointConnectionNotificationsInput) + ) + await client.delete_vpc_endpoint_connection_notifications( + _request(DeleteVpcEndpointConnectionNotificationsInputDict) + ) + await client.delete_vpc_endpoints(vpc_endpoint_ids=_) + await client.delete_vpc_endpoints(**_request(DeleteVpcEndpointsInputDict)) + await client.delete_vpc_endpoints(_request(DeleteVpcEndpointsInput)) + await client.delete_vpc_endpoints(_request(DeleteVpcEndpointsInputDict)) + await client.delete_vpc_endpoint_service_configurations(service_ids=_) + await client.delete_vpc_endpoint_service_configurations( + **_request(DeleteVpcEndpointServiceConfigurationsInputDict) + ) + await client.delete_vpc_endpoint_service_configurations( + _request(DeleteVpcEndpointServiceConfigurationsInput) + ) + await client.delete_vpc_endpoint_service_configurations( + _request(DeleteVpcEndpointServiceConfigurationsInputDict) + ) + await client.delete_vpc_peering_connection(vpc_peering_connection_id=_) + await client.delete_vpc_peering_connection( + **_request(DeleteVpcPeeringConnectionInputDict) + ) + await client.delete_vpc_peering_connection( + _request(DeleteVpcPeeringConnectionInput) + ) + await client.delete_vpc_peering_connection( + _request(DeleteVpcPeeringConnectionInputDict) + ) + await client.delete_vpn_concentrator(vpn_concentrator_id=_) + await client.delete_vpn_concentrator(**_request(DeleteVpnConcentratorInputDict)) + await client.delete_vpn_concentrator(_request(DeleteVpnConcentratorInput)) + await client.delete_vpn_concentrator(_request(DeleteVpnConcentratorInputDict)) + await client.delete_vpn_connection(vpn_connection_id=_) + await client.delete_vpn_connection(**_request(DeleteVpnConnectionInputDict)) + await client.delete_vpn_connection(_request(DeleteVpnConnectionInput)) + await client.delete_vpn_connection(_request(DeleteVpnConnectionInputDict)) + await client.delete_vpn_connection_route( + destination_cidr_block=_, vpn_connection_id=_ + ) + await client.delete_vpn_connection_route( + **_request(DeleteVpnConnectionRouteInputDict) + ) + await client.delete_vpn_connection_route(_request(DeleteVpnConnectionRouteInput)) + await client.delete_vpn_connection_route( + _request(DeleteVpnConnectionRouteInputDict) + ) + await client.delete_vpn_gateway(vpn_gateway_id=_) + await client.delete_vpn_gateway(**_request(DeleteVpnGatewayInputDict)) + await client.delete_vpn_gateway(_request(DeleteVpnGatewayInput)) + await client.delete_vpn_gateway(_request(DeleteVpnGatewayInputDict)) + await client.deprovision_byoip_cidr(cidr=_) + await client.deprovision_byoip_cidr(**_request(DeprovisionByoipCidrInputDict)) + await client.deprovision_byoip_cidr(_request(DeprovisionByoipCidrInput)) + await client.deprovision_byoip_cidr(_request(DeprovisionByoipCidrInputDict)) + await client.deprovision_ipam_byoasn(ipam_id=_, asn=_) + await client.deprovision_ipam_byoasn(**_request(DeprovisionIpamByoasnInputDict)) + await client.deprovision_ipam_byoasn(_request(DeprovisionIpamByoasnInput)) + await client.deprovision_ipam_byoasn(_request(DeprovisionIpamByoasnInputDict)) + await client.deprovision_ipam_pool_cidr(ipam_pool_id=_) + await client.deprovision_ipam_pool_cidr( + **_request(DeprovisionIpamPoolCidrInputDict) + ) + await client.deprovision_ipam_pool_cidr(_request(DeprovisionIpamPoolCidrInput)) + await client.deprovision_ipam_pool_cidr(_request(DeprovisionIpamPoolCidrInputDict)) + await client.deprovision_public_ipv4_pool_cidr(pool_id=_, cidr=_) + await client.deprovision_public_ipv4_pool_cidr( + **_request(DeprovisionPublicIpv4PoolCidrInputDict) + ) + await client.deprovision_public_ipv4_pool_cidr( + _request(DeprovisionPublicIpv4PoolCidrInput) + ) + await client.deprovision_public_ipv4_pool_cidr( + _request(DeprovisionPublicIpv4PoolCidrInputDict) + ) + await client.deregister_image(image_id=_) + await client.deregister_image(**_request(DeregisterImageInputDict)) + await client.deregister_image(_request(DeregisterImageInput)) + await client.deregister_image(_request(DeregisterImageInputDict)) + await client.deregister_instance_event_notification_attributes( + instance_tag_attribute=_ + ) + await client.deregister_instance_event_notification_attributes( + **_request(DeregisterInstanceEventNotificationAttributesInputDict) + ) + await client.deregister_instance_event_notification_attributes( + _request(DeregisterInstanceEventNotificationAttributesInput) + ) + await client.deregister_instance_event_notification_attributes( + _request(DeregisterInstanceEventNotificationAttributesInputDict) + ) + await client.deregister_transit_gateway_multicast_group_members() + await client.deregister_transit_gateway_multicast_group_members( + **_request(DeregisterTransitGatewayMulticastGroupMembersInputDict) + ) + await client.deregister_transit_gateway_multicast_group_members( + _request(DeregisterTransitGatewayMulticastGroupMembersInput) + ) + await client.deregister_transit_gateway_multicast_group_members( + _request(DeregisterTransitGatewayMulticastGroupMembersInputDict) + ) + await client.deregister_transit_gateway_multicast_group_sources() + await client.deregister_transit_gateway_multicast_group_sources( + **_request(DeregisterTransitGatewayMulticastGroupSourcesInputDict) + ) + await client.deregister_transit_gateway_multicast_group_sources( + _request(DeregisterTransitGatewayMulticastGroupSourcesInput) + ) + await client.deregister_transit_gateway_multicast_group_sources( + _request(DeregisterTransitGatewayMulticastGroupSourcesInputDict) + ) + await client.describe_account_attributes() + await client.describe_account_attributes( + **_request(DescribeAccountAttributesInputDict) + ) + await client.describe_account_attributes(_request(DescribeAccountAttributesInput)) + await client.describe_account_attributes( + _request(DescribeAccountAttributesInputDict) + ) + await client.describe_account_vpc_encryption_control() + await client.describe_account_vpc_encryption_control( + **_request(DescribeAccountVpcEncryptionControlInputDict) + ) + await client.describe_account_vpc_encryption_control( + _request(DescribeAccountVpcEncryptionControlInput) + ) + await client.describe_account_vpc_encryption_control( + _request(DescribeAccountVpcEncryptionControlInputDict) + ) + await client.describe_addresses() + await client.describe_addresses(**_request(DescribeAddressesInputDict)) + await client.describe_addresses(_request(DescribeAddressesInput)) + await client.describe_addresses(_request(DescribeAddressesInputDict)) + await client.describe_addresses_attribute() + await client.describe_addresses_attribute( + **_request(DescribeAddressesAttributeInputDict) + ) + await client.describe_addresses_attribute(_request(DescribeAddressesAttributeInput)) + await client.describe_addresses_attribute( + _request(DescribeAddressesAttributeInputDict) + ) + await client.describe_address_transfers() + await client.describe_address_transfers( + **_request(DescribeAddressTransfersInputDict) + ) + await client.describe_address_transfers(_request(DescribeAddressTransfersInput)) + await client.describe_address_transfers(_request(DescribeAddressTransfersInputDict)) + await client.describe_aggregate_id_format() + await client.describe_aggregate_id_format( + **_request(DescribeAggregateIdFormatInputDict) + ) + await client.describe_aggregate_id_format(_request(DescribeAggregateIdFormatInput)) + await client.describe_aggregate_id_format( + _request(DescribeAggregateIdFormatInputDict) + ) + await client.describe_application_status() + await client.describe_application_status( + **_request(DescribeApplicationStatusInputDict) + ) + await client.describe_application_status(_request(DescribeApplicationStatusInput)) + await client.describe_application_status( + _request(DescribeApplicationStatusInputDict) + ) + await client.describe_application_status_check_associations() + await client.describe_application_status_check_associations( + **_request(DescribeApplicationStatusCheckAssociationsInputDict) + ) + await client.describe_application_status_check_associations( + _request(DescribeApplicationStatusCheckAssociationsInput) + ) + await client.describe_application_status_check_associations( + _request(DescribeApplicationStatusCheckAssociationsInputDict) + ) + await client.describe_application_status_checks() + await client.describe_application_status_checks( + **_request(DescribeApplicationStatusChecksInputDict) + ) + await client.describe_application_status_checks( + _request(DescribeApplicationStatusChecksInput) + ) + await client.describe_application_status_checks( + _request(DescribeApplicationStatusChecksInputDict) + ) + await client.describe_availability_zones() + await client.describe_availability_zones( + **_request(DescribeAvailabilityZonesInputDict) + ) + await client.describe_availability_zones(_request(DescribeAvailabilityZonesInput)) + await client.describe_availability_zones( + _request(DescribeAvailabilityZonesInputDict) + ) + await client.describe_aws_network_performance_metric_subscriptions() + await client.describe_aws_network_performance_metric_subscriptions( + **_request(DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict) + ) + await client.describe_aws_network_performance_metric_subscriptions( + _request(DescribeAwsNetworkPerformanceMetricSubscriptionsInput) + ) + await client.describe_aws_network_performance_metric_subscriptions( + _request(DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict) + ) + await client.describe_bundle_tasks() + await client.describe_bundle_tasks(**_request(DescribeBundleTasksInputDict)) + await client.describe_bundle_tasks(_request(DescribeBundleTasksInput)) + await client.describe_bundle_tasks(_request(DescribeBundleTasksInputDict)) + await client.describe_byoip_cidrs(max_results=_) + await client.describe_byoip_cidrs(**_request(DescribeByoipCidrsInputDict)) + await client.describe_byoip_cidrs(_request(DescribeByoipCidrsInput)) + await client.describe_byoip_cidrs(_request(DescribeByoipCidrsInputDict)) + await client.describe_capacity_block_extension_history() + await client.describe_capacity_block_extension_history( + **_request(DescribeCapacityBlockExtensionHistoryInputDict) + ) + await client.describe_capacity_block_extension_history( + _request(DescribeCapacityBlockExtensionHistoryInput) + ) + await client.describe_capacity_block_extension_history( + _request(DescribeCapacityBlockExtensionHistoryInputDict) + ) + await client.describe_capacity_block_extension_offerings( + capacity_block_extension_duration_hours=_, capacity_reservation_id=_ + ) + await client.describe_capacity_block_extension_offerings( + **_request(DescribeCapacityBlockExtensionOfferingsInputDict) + ) + await client.describe_capacity_block_extension_offerings( + _request(DescribeCapacityBlockExtensionOfferingsInput) + ) + await client.describe_capacity_block_extension_offerings( + _request(DescribeCapacityBlockExtensionOfferingsInputDict) + ) + await client.describe_capacity_block_offerings(capacity_duration_hours=_) + await client.describe_capacity_block_offerings( + **_request(DescribeCapacityBlockOfferingsInputDict) + ) + await client.describe_capacity_block_offerings( + _request(DescribeCapacityBlockOfferingsInput) + ) + await client.describe_capacity_block_offerings( + _request(DescribeCapacityBlockOfferingsInputDict) + ) + await client.describe_capacity_blocks() + await client.describe_capacity_blocks(**_request(DescribeCapacityBlocksInputDict)) + await client.describe_capacity_blocks(_request(DescribeCapacityBlocksInput)) + await client.describe_capacity_blocks(_request(DescribeCapacityBlocksInputDict)) + await client.describe_capacity_block_status() + await client.describe_capacity_block_status( + **_request(DescribeCapacityBlockStatusInputDict) + ) + await client.describe_capacity_block_status( + _request(DescribeCapacityBlockStatusInput) + ) + await client.describe_capacity_block_status( + _request(DescribeCapacityBlockStatusInputDict) + ) + await client.describe_capacity_manager_data_exports() + await client.describe_capacity_manager_data_exports( + **_request(DescribeCapacityManagerDataExportsInputDict) + ) + await client.describe_capacity_manager_data_exports( + _request(DescribeCapacityManagerDataExportsInput) + ) + await client.describe_capacity_manager_data_exports( + _request(DescribeCapacityManagerDataExportsInputDict) + ) + await client.describe_capacity_reservation_billing_requests(role=_) + await client.describe_capacity_reservation_billing_requests( + **_request(DescribeCapacityReservationBillingRequestsInputDict) + ) + await client.describe_capacity_reservation_billing_requests( + _request(DescribeCapacityReservationBillingRequestsInput) + ) + await client.describe_capacity_reservation_billing_requests( + _request(DescribeCapacityReservationBillingRequestsInputDict) + ) + await client.describe_capacity_reservation_cancellation_quotes() + await client.describe_capacity_reservation_cancellation_quotes( + **_request(DescribeCapacityReservationCancellationQuotesInputDict) + ) + await client.describe_capacity_reservation_cancellation_quotes( + _request(DescribeCapacityReservationCancellationQuotesInput) + ) + await client.describe_capacity_reservation_cancellation_quotes( + _request(DescribeCapacityReservationCancellationQuotesInputDict) + ) + await client.describe_capacity_reservation_date_change_quotes() + await client.describe_capacity_reservation_date_change_quotes( + **_request(DescribeCapacityReservationDateChangeQuotesInputDict) + ) + await client.describe_capacity_reservation_date_change_quotes( + _request(DescribeCapacityReservationDateChangeQuotesInput) + ) + await client.describe_capacity_reservation_date_change_quotes( + _request(DescribeCapacityReservationDateChangeQuotesInputDict) + ) + await client.describe_capacity_reservation_fleets() + await client.describe_capacity_reservation_fleets( + **_request(DescribeCapacityReservationFleetsInputDict) + ) + await client.describe_capacity_reservation_fleets( + _request(DescribeCapacityReservationFleetsInput) + ) + await client.describe_capacity_reservation_fleets( + _request(DescribeCapacityReservationFleetsInputDict) + ) + await client.describe_capacity_reservations() + await client.describe_capacity_reservations( + **_request(DescribeCapacityReservationsInputDict) + ) + await client.describe_capacity_reservations( + _request(DescribeCapacityReservationsInput) + ) + await client.describe_capacity_reservations( + _request(DescribeCapacityReservationsInputDict) + ) + await client.describe_capacity_reservation_topology() + await client.describe_capacity_reservation_topology( + **_request(DescribeCapacityReservationTopologyInputDict) + ) + await client.describe_capacity_reservation_topology( + _request(DescribeCapacityReservationTopologyInput) + ) + await client.describe_capacity_reservation_topology( + _request(DescribeCapacityReservationTopologyInputDict) + ) + await client.describe_carrier_gateways() + await client.describe_carrier_gateways(**_request(DescribeCarrierGatewaysInputDict)) + await client.describe_carrier_gateways(_request(DescribeCarrierGatewaysInput)) + await client.describe_carrier_gateways(_request(DescribeCarrierGatewaysInputDict)) + await client.describe_classic_link_instances() + await client.describe_classic_link_instances( + **_request(DescribeClassicLinkInstancesInputDict) + ) + await client.describe_classic_link_instances( + _request(DescribeClassicLinkInstancesInput) + ) + await client.describe_classic_link_instances( + _request(DescribeClassicLinkInstancesInputDict) + ) + await client.describe_client_vpn_authorization_rules(client_vpn_endpoint_id=_) + await client.describe_client_vpn_authorization_rules( + **_request(DescribeClientVpnAuthorizationRulesInputDict) + ) + await client.describe_client_vpn_authorization_rules( + _request(DescribeClientVpnAuthorizationRulesInput) + ) + await client.describe_client_vpn_authorization_rules( + _request(DescribeClientVpnAuthorizationRulesInputDict) + ) + await client.describe_client_vpn_connections(client_vpn_endpoint_id=_) + await client.describe_client_vpn_connections( + **_request(DescribeClientVpnConnectionsInputDict) + ) + await client.describe_client_vpn_connections( + _request(DescribeClientVpnConnectionsInput) + ) + await client.describe_client_vpn_connections( + _request(DescribeClientVpnConnectionsInputDict) + ) + await client.describe_client_vpn_endpoints() + await client.describe_client_vpn_endpoints( + **_request(DescribeClientVpnEndpointsInputDict) + ) + await client.describe_client_vpn_endpoints( + _request(DescribeClientVpnEndpointsInput) + ) + await client.describe_client_vpn_endpoints( + _request(DescribeClientVpnEndpointsInputDict) + ) + await client.describe_client_vpn_routes(client_vpn_endpoint_id=_) + await client.describe_client_vpn_routes( + **_request(DescribeClientVpnRoutesInputDict) + ) + await client.describe_client_vpn_routes(_request(DescribeClientVpnRoutesInput)) + await client.describe_client_vpn_routes(_request(DescribeClientVpnRoutesInputDict)) + await client.describe_client_vpn_target_networks(client_vpn_endpoint_id=_) + await client.describe_client_vpn_target_networks( + **_request(DescribeClientVpnTargetNetworksInputDict) + ) + await client.describe_client_vpn_target_networks( + _request(DescribeClientVpnTargetNetworksInput) + ) + await client.describe_client_vpn_target_networks( + _request(DescribeClientVpnTargetNetworksInputDict) + ) + await client.describe_coip_pools() + await client.describe_coip_pools(**_request(DescribeCoipPoolsInputDict)) + await client.describe_coip_pools(_request(DescribeCoipPoolsInput)) + await client.describe_coip_pools(_request(DescribeCoipPoolsInputDict)) + await client.describe_conversion_tasks() + await client.describe_conversion_tasks(**_request(DescribeConversionTasksInputDict)) + await client.describe_conversion_tasks(_request(DescribeConversionTasksInput)) + await client.describe_conversion_tasks(_request(DescribeConversionTasksInputDict)) + await client.describe_customer_gateways() + await client.describe_customer_gateways( + **_request(DescribeCustomerGatewaysInputDict) + ) + await client.describe_customer_gateways(_request(DescribeCustomerGatewaysInput)) + await client.describe_customer_gateways(_request(DescribeCustomerGatewaysInputDict)) + await client.describe_declarative_policies_reports() + await client.describe_declarative_policies_reports( + **_request(DescribeDeclarativePoliciesReportsInputDict) + ) + await client.describe_declarative_policies_reports( + _request(DescribeDeclarativePoliciesReportsInput) + ) + await client.describe_declarative_policies_reports( + _request(DescribeDeclarativePoliciesReportsInputDict) + ) + await client.describe_dhcp_options() + await client.describe_dhcp_options(**_request(DescribeDhcpOptionsInputDict)) + await client.describe_dhcp_options(_request(DescribeDhcpOptionsInput)) + await client.describe_dhcp_options(_request(DescribeDhcpOptionsInputDict)) + await client.describe_egress_only_internet_gateways() + await client.describe_egress_only_internet_gateways( + **_request(DescribeEgressOnlyInternetGatewaysInputDict) + ) + await client.describe_egress_only_internet_gateways( + _request(DescribeEgressOnlyInternetGatewaysInput) + ) + await client.describe_egress_only_internet_gateways( + _request(DescribeEgressOnlyInternetGatewaysInputDict) + ) + await client.describe_elastic_gpus() + await client.describe_elastic_gpus(**_request(DescribeElasticGpusInputDict)) + await client.describe_elastic_gpus(_request(DescribeElasticGpusInput)) + await client.describe_elastic_gpus(_request(DescribeElasticGpusInputDict)) + await client.describe_export_image_tasks() + await client.describe_export_image_tasks( + **_request(DescribeExportImageTasksInputDict) + ) + await client.describe_export_image_tasks(_request(DescribeExportImageTasksInput)) + await client.describe_export_image_tasks( + _request(DescribeExportImageTasksInputDict) + ) + await client.describe_export_tasks() + await client.describe_export_tasks(**_request(DescribeExportTasksInputDict)) + await client.describe_export_tasks(_request(DescribeExportTasksInput)) + await client.describe_export_tasks(_request(DescribeExportTasksInputDict)) + await client.describe_fast_launch_images() + await client.describe_fast_launch_images( + **_request(DescribeFastLaunchImagesInputDict) + ) + await client.describe_fast_launch_images(_request(DescribeFastLaunchImagesInput)) + await client.describe_fast_launch_images( + _request(DescribeFastLaunchImagesInputDict) + ) + await client.describe_fast_snapshot_restores() + await client.describe_fast_snapshot_restores( + **_request(DescribeFastSnapshotRestoresInputDict) + ) + await client.describe_fast_snapshot_restores( + _request(DescribeFastSnapshotRestoresInput) + ) + await client.describe_fast_snapshot_restores( + _request(DescribeFastSnapshotRestoresInputDict) + ) + await client.describe_fleet_history(fleet_id=_, start_time=_) + await client.describe_fleet_history(**_request(DescribeFleetHistoryInputDict)) + await client.describe_fleet_history(_request(DescribeFleetHistoryInput)) + await client.describe_fleet_history(_request(DescribeFleetHistoryInputDict)) + await client.describe_fleet_instances(fleet_id=_) + await client.describe_fleet_instances(**_request(DescribeFleetInstancesInputDict)) + await client.describe_fleet_instances(_request(DescribeFleetInstancesInput)) + await client.describe_fleet_instances(_request(DescribeFleetInstancesInputDict)) + await client.describe_fleets() + await client.describe_fleets(**_request(DescribeFleetsInputDict)) + await client.describe_fleets(_request(DescribeFleetsInput)) + await client.describe_fleets(_request(DescribeFleetsInputDict)) + await client.describe_flow_logs() + await client.describe_flow_logs(**_request(DescribeFlowLogsInputDict)) + await client.describe_flow_logs(_request(DescribeFlowLogsInput)) + await client.describe_flow_logs(_request(DescribeFlowLogsInputDict)) + await client.describe_fpga_image_attribute(fpga_image_id=_, attribute=_) + await client.describe_fpga_image_attribute( + **_request(DescribeFpgaImageAttributeInputDict) + ) + await client.describe_fpga_image_attribute( + _request(DescribeFpgaImageAttributeInput) + ) + await client.describe_fpga_image_attribute( + _request(DescribeFpgaImageAttributeInputDict) + ) + await client.describe_fpga_images() + await client.describe_fpga_images(**_request(DescribeFpgaImagesInputDict)) + await client.describe_fpga_images(_request(DescribeFpgaImagesInput)) + await client.describe_fpga_images(_request(DescribeFpgaImagesInputDict)) + await client.describe_host_reservation_offerings() + await client.describe_host_reservation_offerings( + **_request(DescribeHostReservationOfferingsInputDict) + ) + await client.describe_host_reservation_offerings( + _request(DescribeHostReservationOfferingsInput) + ) + await client.describe_host_reservation_offerings( + _request(DescribeHostReservationOfferingsInputDict) + ) + await client.describe_host_reservations() + await client.describe_host_reservations( + **_request(DescribeHostReservationsInputDict) + ) + await client.describe_host_reservations(_request(DescribeHostReservationsInput)) + await client.describe_host_reservations(_request(DescribeHostReservationsInputDict)) + await client.describe_hosts() + await client.describe_hosts(**_request(DescribeHostsInputDict)) + await client.describe_hosts(_request(DescribeHostsInput)) + await client.describe_hosts(_request(DescribeHostsInputDict)) + await client.describe_iam_instance_profile_associations() + await client.describe_iam_instance_profile_associations( + **_request(DescribeIamInstanceProfileAssociationsInputDict) + ) + await client.describe_iam_instance_profile_associations( + _request(DescribeIamInstanceProfileAssociationsInput) + ) + await client.describe_iam_instance_profile_associations( + _request(DescribeIamInstanceProfileAssociationsInputDict) + ) + await client.describe_identity_id_format(principal_arn=_) + await client.describe_identity_id_format( + **_request(DescribeIdentityIdFormatInputDict) + ) + await client.describe_identity_id_format(_request(DescribeIdentityIdFormatInput)) + await client.describe_identity_id_format( + _request(DescribeIdentityIdFormatInputDict) + ) + await client.describe_id_format() + await client.describe_id_format(**_request(DescribeIdFormatInputDict)) + await client.describe_id_format(_request(DescribeIdFormatInput)) + await client.describe_id_format(_request(DescribeIdFormatInputDict)) + await client.describe_image_attribute(attribute=_, image_id=_) + await client.describe_image_attribute(**_request(DescribeImageAttributeInputDict)) + await client.describe_image_attribute(_request(DescribeImageAttributeInput)) + await client.describe_image_attribute(_request(DescribeImageAttributeInputDict)) + await client.describe_image_references(image_ids=_) + await client.describe_image_references(**_request(DescribeImageReferencesInputDict)) + await client.describe_image_references(_request(DescribeImageReferencesInput)) + await client.describe_image_references(_request(DescribeImageReferencesInputDict)) + await client.describe_images() + await client.describe_images(**_request(DescribeImagesInputDict)) + await client.describe_images(_request(DescribeImagesInput)) + await client.describe_images(_request(DescribeImagesInputDict)) + await client.describe_image_usage_report_entries() + await client.describe_image_usage_report_entries( + **_request(DescribeImageUsageReportEntriesInputDict) + ) + await client.describe_image_usage_report_entries( + _request(DescribeImageUsageReportEntriesInput) + ) + await client.describe_image_usage_report_entries( + _request(DescribeImageUsageReportEntriesInputDict) + ) + await client.describe_image_usage_reports() + await client.describe_image_usage_reports( + **_request(DescribeImageUsageReportsInputDict) + ) + await client.describe_image_usage_reports(_request(DescribeImageUsageReportsInput)) + await client.describe_image_usage_reports( + _request(DescribeImageUsageReportsInputDict) + ) + await client.describe_import_image_tasks() + await client.describe_import_image_tasks( + **_request(DescribeImportImageTasksInputDict) + ) + await client.describe_import_image_tasks(_request(DescribeImportImageTasksInput)) + await client.describe_import_image_tasks( + _request(DescribeImportImageTasksInputDict) + ) + await client.describe_import_snapshot_tasks() + await client.describe_import_snapshot_tasks( + **_request(DescribeImportSnapshotTasksInputDict) + ) + await client.describe_import_snapshot_tasks( + _request(DescribeImportSnapshotTasksInput) + ) + await client.describe_import_snapshot_tasks( + _request(DescribeImportSnapshotTasksInputDict) + ) + await client.describe_instance_attribute(instance_id=_, attribute=_) + await client.describe_instance_attribute( + **_request(DescribeInstanceAttributeInputDict) + ) + await client.describe_instance_attribute(_request(DescribeInstanceAttributeInput)) + await client.describe_instance_attribute( + _request(DescribeInstanceAttributeInputDict) + ) + await client.describe_instance_connect_endpoints() + await client.describe_instance_connect_endpoints( + **_request(DescribeInstanceConnectEndpointsInputDict) + ) + await client.describe_instance_connect_endpoints( + _request(DescribeInstanceConnectEndpointsInput) + ) + await client.describe_instance_connect_endpoints( + _request(DescribeInstanceConnectEndpointsInputDict) + ) + await client.describe_instance_credit_specifications() + await client.describe_instance_credit_specifications( + **_request(DescribeInstanceCreditSpecificationsInputDict) + ) + await client.describe_instance_credit_specifications( + _request(DescribeInstanceCreditSpecificationsInput) + ) + await client.describe_instance_credit_specifications( + _request(DescribeInstanceCreditSpecificationsInputDict) + ) + await client.describe_instance_event_notification_attributes() + await client.describe_instance_event_notification_attributes( + **_request(DescribeInstanceEventNotificationAttributesInputDict) + ) + await client.describe_instance_event_notification_attributes( + _request(DescribeInstanceEventNotificationAttributesInput) + ) + await client.describe_instance_event_notification_attributes( + _request(DescribeInstanceEventNotificationAttributesInputDict) + ) + await client.describe_instance_event_windows() + await client.describe_instance_event_windows( + **_request(DescribeInstanceEventWindowsInputDict) + ) + await client.describe_instance_event_windows( + _request(DescribeInstanceEventWindowsInput) + ) + await client.describe_instance_event_windows( + _request(DescribeInstanceEventWindowsInputDict) + ) + await client.describe_instance_image_metadata() + await client.describe_instance_image_metadata( + **_request(DescribeInstanceImageMetadataInputDict) + ) + await client.describe_instance_image_metadata( + _request(DescribeInstanceImageMetadataInput) + ) + await client.describe_instance_image_metadata( + _request(DescribeInstanceImageMetadataInputDict) + ) + await client.describe_instances() + await client.describe_instances(**_request(DescribeInstancesInputDict)) + await client.describe_instances(_request(DescribeInstancesInput)) + await client.describe_instances(_request(DescribeInstancesInputDict)) + await client.describe_instance_sql_ha_history_states() + await client.describe_instance_sql_ha_history_states( + **_request(DescribeInstanceSqlHaHistoryStatesInputDict) + ) + await client.describe_instance_sql_ha_history_states( + _request(DescribeInstanceSqlHaHistoryStatesInput) + ) + await client.describe_instance_sql_ha_history_states( + _request(DescribeInstanceSqlHaHistoryStatesInputDict) + ) + await client.describe_instance_sql_ha_states() + await client.describe_instance_sql_ha_states( + **_request(DescribeInstanceSqlHaStatesInputDict) + ) + await client.describe_instance_sql_ha_states( + _request(DescribeInstanceSqlHaStatesInput) + ) + await client.describe_instance_sql_ha_states( + _request(DescribeInstanceSqlHaStatesInputDict) + ) + await client.describe_instance_status() + await client.describe_instance_status(**_request(DescribeInstanceStatusInputDict)) + await client.describe_instance_status(_request(DescribeInstanceStatusInput)) + await client.describe_instance_status(_request(DescribeInstanceStatusInputDict)) + await client.describe_instance_topology() + await client.describe_instance_topology( + **_request(DescribeInstanceTopologyInputDict) + ) + await client.describe_instance_topology(_request(DescribeInstanceTopologyInput)) + await client.describe_instance_topology(_request(DescribeInstanceTopologyInputDict)) + await client.describe_instance_type_offerings() + await client.describe_instance_type_offerings( + **_request(DescribeInstanceTypeOfferingsInputDict) + ) + await client.describe_instance_type_offerings( + _request(DescribeInstanceTypeOfferingsInput) + ) + await client.describe_instance_type_offerings( + _request(DescribeInstanceTypeOfferingsInputDict) + ) + await client.describe_instance_types() + await client.describe_instance_types(**_request(DescribeInstanceTypesInputDict)) + await client.describe_instance_types(_request(DescribeInstanceTypesInput)) + await client.describe_instance_types(_request(DescribeInstanceTypesInputDict)) + await client.describe_internet_gateways() + await client.describe_internet_gateways( + **_request(DescribeInternetGatewaysInputDict) + ) + await client.describe_internet_gateways(_request(DescribeInternetGatewaysInput)) + await client.describe_internet_gateways(_request(DescribeInternetGatewaysInputDict)) + await client.describe_ipam_byoasn() + await client.describe_ipam_byoasn(**_request(DescribeIpamByoasnInputDict)) + await client.describe_ipam_byoasn(_request(DescribeIpamByoasnInput)) + await client.describe_ipam_byoasn(_request(DescribeIpamByoasnInputDict)) + await client.describe_ipam_external_resource_verification_tokens() + await client.describe_ipam_external_resource_verification_tokens( + **_request(DescribeIpamExternalResourceVerificationTokensInputDict) + ) + await client.describe_ipam_external_resource_verification_tokens( + _request(DescribeIpamExternalResourceVerificationTokensInput) + ) + await client.describe_ipam_external_resource_verification_tokens( + _request(DescribeIpamExternalResourceVerificationTokensInputDict) + ) + await client.describe_ipam_internet_registry_associations() + await client.describe_ipam_internet_registry_associations( + **_request(DescribeIpamInternetRegistryAssociationsInputDict) + ) + await client.describe_ipam_internet_registry_associations( + _request(DescribeIpamInternetRegistryAssociationsInput) + ) + await client.describe_ipam_internet_registry_associations( + _request(DescribeIpamInternetRegistryAssociationsInputDict) + ) + await client.describe_ipam_policies() + await client.describe_ipam_policies(**_request(DescribeIpamPoliciesInputDict)) + await client.describe_ipam_policies(_request(DescribeIpamPoliciesInput)) + await client.describe_ipam_policies(_request(DescribeIpamPoliciesInputDict)) + await client.describe_ipam_pool_allocations() + await client.describe_ipam_pool_allocations( + **_request(DescribeIpamPoolAllocationsInputDict) + ) + await client.describe_ipam_pool_allocations( + _request(DescribeIpamPoolAllocationsInput) + ) + await client.describe_ipam_pool_allocations( + _request(DescribeIpamPoolAllocationsInputDict) + ) + await client.describe_ipam_pools() + await client.describe_ipam_pools(**_request(DescribeIpamPoolsInputDict)) + await client.describe_ipam_pools(_request(DescribeIpamPoolsInput)) + await client.describe_ipam_pools(_request(DescribeIpamPoolsInputDict)) + await client.describe_ipam_prefix_list_resolvers() + await client.describe_ipam_prefix_list_resolvers( + **_request(DescribeIpamPrefixListResolversInputDict) + ) + await client.describe_ipam_prefix_list_resolvers( + _request(DescribeIpamPrefixListResolversInput) + ) + await client.describe_ipam_prefix_list_resolvers( + _request(DescribeIpamPrefixListResolversInputDict) + ) + await client.describe_ipam_prefix_list_resolver_targets() + await client.describe_ipam_prefix_list_resolver_targets( + **_request(DescribeIpamPrefixListResolverTargetsInputDict) + ) + await client.describe_ipam_prefix_list_resolver_targets( + _request(DescribeIpamPrefixListResolverTargetsInput) + ) + await client.describe_ipam_prefix_list_resolver_targets( + _request(DescribeIpamPrefixListResolverTargetsInputDict) + ) + await client.describe_ipam_resource_discoveries() + await client.describe_ipam_resource_discoveries( + **_request(DescribeIpamResourceDiscoveriesInputDict) + ) + await client.describe_ipam_resource_discoveries( + _request(DescribeIpamResourceDiscoveriesInput) + ) + await client.describe_ipam_resource_discoveries( + _request(DescribeIpamResourceDiscoveriesInputDict) + ) + await client.describe_ipam_resource_discovery_associations() + await client.describe_ipam_resource_discovery_associations( + **_request(DescribeIpamResourceDiscoveryAssociationsInputDict) + ) + await client.describe_ipam_resource_discovery_associations( + _request(DescribeIpamResourceDiscoveryAssociationsInput) + ) + await client.describe_ipam_resource_discovery_associations( + _request(DescribeIpamResourceDiscoveryAssociationsInputDict) + ) + await client.describe_ipams() + await client.describe_ipams(**_request(DescribeIpamsInputDict)) + await client.describe_ipams(_request(DescribeIpamsInput)) + await client.describe_ipams(_request(DescribeIpamsInputDict)) + await client.describe_ipam_scopes() + await client.describe_ipam_scopes(**_request(DescribeIpamScopesInputDict)) + await client.describe_ipam_scopes(_request(DescribeIpamScopesInput)) + await client.describe_ipam_scopes(_request(DescribeIpamScopesInputDict)) + await client.describe_ipv6_pools() + await client.describe_ipv6_pools(**_request(DescribeIpv6PoolsInputDict)) + await client.describe_ipv6_pools(_request(DescribeIpv6PoolsInput)) + await client.describe_ipv6_pools(_request(DescribeIpv6PoolsInputDict)) + await client.describe_key_pairs() + await client.describe_key_pairs(**_request(DescribeKeyPairsInputDict)) + await client.describe_key_pairs(_request(DescribeKeyPairsInput)) + await client.describe_key_pairs(_request(DescribeKeyPairsInputDict)) + await client.describe_launch_templates() + await client.describe_launch_templates(**_request(DescribeLaunchTemplatesInputDict)) + await client.describe_launch_templates(_request(DescribeLaunchTemplatesInput)) + await client.describe_launch_templates(_request(DescribeLaunchTemplatesInputDict)) + await client.describe_launch_template_versions() + await client.describe_launch_template_versions( + **_request(DescribeLaunchTemplateVersionsInputDict) + ) + await client.describe_launch_template_versions( + _request(DescribeLaunchTemplateVersionsInput) + ) + await client.describe_launch_template_versions( + _request(DescribeLaunchTemplateVersionsInputDict) + ) + await client.describe_local_gateway_route_tables() + await client.describe_local_gateway_route_tables( + **_request(DescribeLocalGatewayRouteTablesInputDict) + ) + await client.describe_local_gateway_route_tables( + _request(DescribeLocalGatewayRouteTablesInput) + ) + await client.describe_local_gateway_route_tables( + _request(DescribeLocalGatewayRouteTablesInputDict) + ) + await ( + client.describe_local_gateway_route_table_virtual_interface_group_associations() + ) + await ( + client.describe_local_gateway_route_table_virtual_interface_group_associations( + **_request( + DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict + ) + ) + ) + await ( + client.describe_local_gateway_route_table_virtual_interface_group_associations( + _request( + DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput + ) + ) + ) + await ( + client.describe_local_gateway_route_table_virtual_interface_group_associations( + _request( + DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict + ) + ) + ) + await client.describe_local_gateway_route_table_vpc_associations() + await client.describe_local_gateway_route_table_vpc_associations( + **_request(DescribeLocalGatewayRouteTableVpcAssociationsInputDict) + ) + await client.describe_local_gateway_route_table_vpc_associations( + _request(DescribeLocalGatewayRouteTableVpcAssociationsInput) + ) + await client.describe_local_gateway_route_table_vpc_associations( + _request(DescribeLocalGatewayRouteTableVpcAssociationsInputDict) + ) + await client.describe_local_gateways() + await client.describe_local_gateways(**_request(DescribeLocalGatewaysInputDict)) + await client.describe_local_gateways(_request(DescribeLocalGatewaysInput)) + await client.describe_local_gateways(_request(DescribeLocalGatewaysInputDict)) + await client.describe_local_gateway_virtual_interface_groups() + await client.describe_local_gateway_virtual_interface_groups( + **_request(DescribeLocalGatewayVirtualInterfaceGroupsInputDict) + ) + await client.describe_local_gateway_virtual_interface_groups( + _request(DescribeLocalGatewayVirtualInterfaceGroupsInput) + ) + await client.describe_local_gateway_virtual_interface_groups( + _request(DescribeLocalGatewayVirtualInterfaceGroupsInputDict) + ) + await client.describe_local_gateway_virtual_interfaces() + await client.describe_local_gateway_virtual_interfaces( + **_request(DescribeLocalGatewayVirtualInterfacesInputDict) + ) + await client.describe_local_gateway_virtual_interfaces( + _request(DescribeLocalGatewayVirtualInterfacesInput) + ) + await client.describe_local_gateway_virtual_interfaces( + _request(DescribeLocalGatewayVirtualInterfacesInputDict) + ) + await client.describe_locked_snapshots() + await client.describe_locked_snapshots(**_request(DescribeLockedSnapshotsInputDict)) + await client.describe_locked_snapshots(_request(DescribeLockedSnapshotsInput)) + await client.describe_locked_snapshots(_request(DescribeLockedSnapshotsInputDict)) + await client.describe_mac_hosts() + await client.describe_mac_hosts(**_request(DescribeMacHostsInputDict)) + await client.describe_mac_hosts(_request(DescribeMacHostsInput)) + await client.describe_mac_hosts(_request(DescribeMacHostsInputDict)) + await client.describe_mac_modification_tasks() + await client.describe_mac_modification_tasks( + **_request(DescribeMacModificationTasksInputDict) + ) + await client.describe_mac_modification_tasks( + _request(DescribeMacModificationTasksInput) + ) + await client.describe_mac_modification_tasks( + _request(DescribeMacModificationTasksInputDict) + ) + await client.describe_managed_prefix_lists() + await client.describe_managed_prefix_lists( + **_request(DescribeManagedPrefixListsInputDict) + ) + await client.describe_managed_prefix_lists( + _request(DescribeManagedPrefixListsInput) + ) + await client.describe_managed_prefix_lists( + _request(DescribeManagedPrefixListsInputDict) + ) + await client.describe_moving_addresses() + await client.describe_moving_addresses(**_request(DescribeMovingAddressesInputDict)) + await client.describe_moving_addresses(_request(DescribeMovingAddressesInput)) + await client.describe_moving_addresses(_request(DescribeMovingAddressesInputDict)) + await client.describe_nat_gateways() + await client.describe_nat_gateways(**_request(DescribeNatGatewaysInputDict)) + await client.describe_nat_gateways(_request(DescribeNatGatewaysInput)) + await client.describe_nat_gateways(_request(DescribeNatGatewaysInputDict)) + await client.describe_network_acls() + await client.describe_network_acls(**_request(DescribeNetworkAclsInputDict)) + await client.describe_network_acls(_request(DescribeNetworkAclsInput)) + await client.describe_network_acls(_request(DescribeNetworkAclsInputDict)) + await client.describe_network_insights_access_scope_analyses() + await client.describe_network_insights_access_scope_analyses( + **_request(DescribeNetworkInsightsAccessScopeAnalysesInputDict) + ) + await client.describe_network_insights_access_scope_analyses( + _request(DescribeNetworkInsightsAccessScopeAnalysesInput) + ) + await client.describe_network_insights_access_scope_analyses( + _request(DescribeNetworkInsightsAccessScopeAnalysesInputDict) + ) + await client.describe_network_insights_access_scopes() + await client.describe_network_insights_access_scopes( + **_request(DescribeNetworkInsightsAccessScopesInputDict) + ) + await client.describe_network_insights_access_scopes( + _request(DescribeNetworkInsightsAccessScopesInput) + ) + await client.describe_network_insights_access_scopes( + _request(DescribeNetworkInsightsAccessScopesInputDict) + ) + await client.describe_network_insights_analyses() + await client.describe_network_insights_analyses( + **_request(DescribeNetworkInsightsAnalysesInputDict) + ) + await client.describe_network_insights_analyses( + _request(DescribeNetworkInsightsAnalysesInput) + ) + await client.describe_network_insights_analyses( + _request(DescribeNetworkInsightsAnalysesInputDict) + ) + await client.describe_network_insights_paths() + await client.describe_network_insights_paths( + **_request(DescribeNetworkInsightsPathsInputDict) + ) + await client.describe_network_insights_paths( + _request(DescribeNetworkInsightsPathsInput) + ) + await client.describe_network_insights_paths( + _request(DescribeNetworkInsightsPathsInputDict) + ) + await client.describe_network_interface_attribute(network_interface_id=_) + await client.describe_network_interface_attribute( + **_request(DescribeNetworkInterfaceAttributeInputDict) + ) + await client.describe_network_interface_attribute( + _request(DescribeNetworkInterfaceAttributeInput) + ) + await client.describe_network_interface_attribute( + _request(DescribeNetworkInterfaceAttributeInputDict) + ) + await client.describe_network_interface_permissions() + await client.describe_network_interface_permissions( + **_request(DescribeNetworkInterfacePermissionsInputDict) + ) + await client.describe_network_interface_permissions( + _request(DescribeNetworkInterfacePermissionsInput) + ) + await client.describe_network_interface_permissions( + _request(DescribeNetworkInterfacePermissionsInputDict) + ) + await client.describe_network_interfaces() + await client.describe_network_interfaces( + **_request(DescribeNetworkInterfacesInputDict) + ) + await client.describe_network_interfaces(_request(DescribeNetworkInterfacesInput)) + await client.describe_network_interfaces( + _request(DescribeNetworkInterfacesInputDict) + ) + await client.describe_outpost_lags() + await client.describe_outpost_lags(**_request(DescribeOutpostLagsInputDict)) + await client.describe_outpost_lags(_request(DescribeOutpostLagsInput)) + await client.describe_outpost_lags(_request(DescribeOutpostLagsInputDict)) + await client.describe_placement_groups() + await client.describe_placement_groups(**_request(DescribePlacementGroupsInputDict)) + await client.describe_placement_groups(_request(DescribePlacementGroupsInput)) + await client.describe_placement_groups(_request(DescribePlacementGroupsInputDict)) + await client.describe_prefix_lists() + await client.describe_prefix_lists(**_request(DescribePrefixListsInputDict)) + await client.describe_prefix_lists(_request(DescribePrefixListsInput)) + await client.describe_prefix_lists(_request(DescribePrefixListsInputDict)) + await client.describe_principal_id_format() + await client.describe_principal_id_format( + **_request(DescribePrincipalIdFormatInputDict) + ) + await client.describe_principal_id_format(_request(DescribePrincipalIdFormatInput)) + await client.describe_principal_id_format( + _request(DescribePrincipalIdFormatInputDict) + ) + await client.describe_public_ipv4_pools() + await client.describe_public_ipv4_pools( + **_request(DescribePublicIpv4PoolsInputDict) + ) + await client.describe_public_ipv4_pools(_request(DescribePublicIpv4PoolsInput)) + await client.describe_public_ipv4_pools(_request(DescribePublicIpv4PoolsInputDict)) + await client.describe_regions() + await client.describe_regions(**_request(DescribeRegionsInputDict)) + await client.describe_regions(_request(DescribeRegionsInput)) + await client.describe_regions(_request(DescribeRegionsInputDict)) + await client.describe_replace_root_volume_tasks() + await client.describe_replace_root_volume_tasks( + **_request(DescribeReplaceRootVolumeTasksInputDict) + ) + await client.describe_replace_root_volume_tasks( + _request(DescribeReplaceRootVolumeTasksInput) + ) + await client.describe_replace_root_volume_tasks( + _request(DescribeReplaceRootVolumeTasksInputDict) + ) + await client.describe_reserved_instances() + await client.describe_reserved_instances( + **_request(DescribeReservedInstancesInputDict) + ) + await client.describe_reserved_instances(_request(DescribeReservedInstancesInput)) + await client.describe_reserved_instances( + _request(DescribeReservedInstancesInputDict) + ) + await client.describe_reserved_instances_listings() + await client.describe_reserved_instances_listings( + **_request(DescribeReservedInstancesListingsInputDict) + ) + await client.describe_reserved_instances_listings( + _request(DescribeReservedInstancesListingsInput) + ) + await client.describe_reserved_instances_listings( + _request(DescribeReservedInstancesListingsInputDict) + ) + await client.describe_reserved_instances_modifications() + await client.describe_reserved_instances_modifications( + **_request(DescribeReservedInstancesModificationsInputDict) + ) + await client.describe_reserved_instances_modifications( + _request(DescribeReservedInstancesModificationsInput) + ) + await client.describe_reserved_instances_modifications( + _request(DescribeReservedInstancesModificationsInputDict) + ) + await client.describe_reserved_instances_offerings() + await client.describe_reserved_instances_offerings( + **_request(DescribeReservedInstancesOfferingsInputDict) + ) + await client.describe_reserved_instances_offerings( + _request(DescribeReservedInstancesOfferingsInput) + ) + await client.describe_reserved_instances_offerings( + _request(DescribeReservedInstancesOfferingsInputDict) + ) + await client.describe_route_server_endpoints() + await client.describe_route_server_endpoints( + **_request(DescribeRouteServerEndpointsInputDict) + ) + await client.describe_route_server_endpoints( + _request(DescribeRouteServerEndpointsInput) + ) + await client.describe_route_server_endpoints( + _request(DescribeRouteServerEndpointsInputDict) + ) + await client.describe_route_server_peers() + await client.describe_route_server_peers( + **_request(DescribeRouteServerPeersInputDict) + ) + await client.describe_route_server_peers(_request(DescribeRouteServerPeersInput)) + await client.describe_route_server_peers( + _request(DescribeRouteServerPeersInputDict) + ) + await client.describe_route_servers() + await client.describe_route_servers(**_request(DescribeRouteServersInputDict)) + await client.describe_route_servers(_request(DescribeRouteServersInput)) + await client.describe_route_servers(_request(DescribeRouteServersInputDict)) + await client.describe_route_tables() + await client.describe_route_tables(**_request(DescribeRouteTablesInputDict)) + await client.describe_route_tables(_request(DescribeRouteTablesInput)) + await client.describe_route_tables(_request(DescribeRouteTablesInputDict)) + await client.describe_scheduled_instance_availability( + first_slot_start_time_range=_, recurrence=_ + ) + await client.describe_scheduled_instance_availability( + **_request(DescribeScheduledInstanceAvailabilityInputDict) + ) + await client.describe_scheduled_instance_availability( + _request(DescribeScheduledInstanceAvailabilityInput) + ) + await client.describe_scheduled_instance_availability( + _request(DescribeScheduledInstanceAvailabilityInputDict) + ) + await client.describe_scheduled_instances() + await client.describe_scheduled_instances( + **_request(DescribeScheduledInstancesInputDict) + ) + await client.describe_scheduled_instances(_request(DescribeScheduledInstancesInput)) + await client.describe_scheduled_instances( + _request(DescribeScheduledInstancesInputDict) + ) + await client.describe_secondary_interfaces() + await client.describe_secondary_interfaces( + **_request(DescribeSecondaryInterfacesInputDict) + ) + await client.describe_secondary_interfaces( + _request(DescribeSecondaryInterfacesInput) + ) + await client.describe_secondary_interfaces( + _request(DescribeSecondaryInterfacesInputDict) + ) + await client.describe_secondary_networks() + await client.describe_secondary_networks( + **_request(DescribeSecondaryNetworksInputDict) + ) + await client.describe_secondary_networks(_request(DescribeSecondaryNetworksInput)) + await client.describe_secondary_networks( + _request(DescribeSecondaryNetworksInputDict) + ) + await client.describe_secondary_subnets() + await client.describe_secondary_subnets( + **_request(DescribeSecondarySubnetsInputDict) + ) + await client.describe_secondary_subnets(_request(DescribeSecondarySubnetsInput)) + await client.describe_secondary_subnets(_request(DescribeSecondarySubnetsInputDict)) + await client.describe_security_group_references(group_id=_) + await client.describe_security_group_references( + **_request(DescribeSecurityGroupReferencesInputDict) + ) + await client.describe_security_group_references( + _request(DescribeSecurityGroupReferencesInput) + ) + await client.describe_security_group_references( + _request(DescribeSecurityGroupReferencesInputDict) + ) + await client.describe_security_group_rules() + await client.describe_security_group_rules( + **_request(DescribeSecurityGroupRulesInputDict) + ) + await client.describe_security_group_rules( + _request(DescribeSecurityGroupRulesInput) + ) + await client.describe_security_group_rules( + _request(DescribeSecurityGroupRulesInputDict) + ) + await client.describe_security_groups() + await client.describe_security_groups(**_request(DescribeSecurityGroupsInputDict)) + await client.describe_security_groups(_request(DescribeSecurityGroupsInput)) + await client.describe_security_groups(_request(DescribeSecurityGroupsInputDict)) + await client.describe_security_group_vpc_associations() + await client.describe_security_group_vpc_associations( + **_request(DescribeSecurityGroupVpcAssociationsInputDict) + ) + await client.describe_security_group_vpc_associations( + _request(DescribeSecurityGroupVpcAssociationsInput) + ) + await client.describe_security_group_vpc_associations( + _request(DescribeSecurityGroupVpcAssociationsInputDict) + ) + await client.describe_service_link_virtual_interfaces() + await client.describe_service_link_virtual_interfaces( + **_request(DescribeServiceLinkVirtualInterfacesInputDict) + ) + await client.describe_service_link_virtual_interfaces( + _request(DescribeServiceLinkVirtualInterfacesInput) + ) + await client.describe_service_link_virtual_interfaces( + _request(DescribeServiceLinkVirtualInterfacesInputDict) + ) + await client.describe_snapshot_attribute(attribute=_, snapshot_id=_) + await client.describe_snapshot_attribute( + **_request(DescribeSnapshotAttributeInputDict) + ) + await client.describe_snapshot_attribute(_request(DescribeSnapshotAttributeInput)) + await client.describe_snapshot_attribute( + _request(DescribeSnapshotAttributeInputDict) + ) + await client.describe_snapshots() + await client.describe_snapshots(**_request(DescribeSnapshotsInputDict)) + await client.describe_snapshots(_request(DescribeSnapshotsInput)) + await client.describe_snapshots(_request(DescribeSnapshotsInputDict)) + await client.describe_snapshot_tier_status() + await client.describe_snapshot_tier_status( + **_request(DescribeSnapshotTierStatusInputDict) + ) + await client.describe_snapshot_tier_status( + _request(DescribeSnapshotTierStatusInput) + ) + await client.describe_snapshot_tier_status( + _request(DescribeSnapshotTierStatusInputDict) + ) + await client.describe_spot_datafeed_subscription() + await client.describe_spot_datafeed_subscription( + **_request(DescribeSpotDatafeedSubscriptionInputDict) + ) + await client.describe_spot_datafeed_subscription( + _request(DescribeSpotDatafeedSubscriptionInput) + ) + await client.describe_spot_datafeed_subscription( + _request(DescribeSpotDatafeedSubscriptionInputDict) + ) + await client.describe_spot_fleet_instances(spot_fleet_request_id=_) + await client.describe_spot_fleet_instances( + **_request(DescribeSpotFleetInstancesInputDict) + ) + await client.describe_spot_fleet_instances( + _request(DescribeSpotFleetInstancesInput) + ) + await client.describe_spot_fleet_instances( + _request(DescribeSpotFleetInstancesInputDict) + ) + await client.describe_spot_fleet_request_history( + spot_fleet_request_id=_, start_time=_ + ) + await client.describe_spot_fleet_request_history( + **_request(DescribeSpotFleetRequestHistoryInputDict) + ) + await client.describe_spot_fleet_request_history( + _request(DescribeSpotFleetRequestHistoryInput) + ) + await client.describe_spot_fleet_request_history( + _request(DescribeSpotFleetRequestHistoryInputDict) + ) + await client.describe_spot_fleet_requests() + await client.describe_spot_fleet_requests( + **_request(DescribeSpotFleetRequestsInputDict) + ) + await client.describe_spot_fleet_requests(_request(DescribeSpotFleetRequestsInput)) + await client.describe_spot_fleet_requests( + _request(DescribeSpotFleetRequestsInputDict) + ) + await client.describe_spot_instance_requests() + await client.describe_spot_instance_requests( + **_request(DescribeSpotInstanceRequestsInputDict) + ) + await client.describe_spot_instance_requests( + _request(DescribeSpotInstanceRequestsInput) + ) + await client.describe_spot_instance_requests( + _request(DescribeSpotInstanceRequestsInputDict) + ) + await client.describe_spot_price_history() + await client.describe_spot_price_history( + **_request(DescribeSpotPriceHistoryInputDict) + ) + await client.describe_spot_price_history(_request(DescribeSpotPriceHistoryInput)) + await client.describe_spot_price_history( + _request(DescribeSpotPriceHistoryInputDict) + ) + await client.describe_stale_security_groups(vpc_id=_) + await client.describe_stale_security_groups( + **_request(DescribeStaleSecurityGroupsInputDict) + ) + await client.describe_stale_security_groups( + _request(DescribeStaleSecurityGroupsInput) + ) + await client.describe_stale_security_groups( + _request(DescribeStaleSecurityGroupsInputDict) + ) + await client.describe_store_image_tasks() + await client.describe_store_image_tasks( + **_request(DescribeStoreImageTasksInputDict) + ) + await client.describe_store_image_tasks(_request(DescribeStoreImageTasksInput)) + await client.describe_store_image_tasks(_request(DescribeStoreImageTasksInputDict)) + await client.describe_subnets() + await client.describe_subnets(**_request(DescribeSubnetsInputDict)) + await client.describe_subnets(_request(DescribeSubnetsInput)) + await client.describe_subnets(_request(DescribeSubnetsInputDict)) + await client.describe_tags() + await client.describe_tags(**_request(DescribeTagsInputDict)) + await client.describe_tags(_request(DescribeTagsInput)) + await client.describe_tags(_request(DescribeTagsInputDict)) + await client.describe_traffic_mirror_filter_rules() + await client.describe_traffic_mirror_filter_rules( + **_request(DescribeTrafficMirrorFilterRulesInputDict) + ) + await client.describe_traffic_mirror_filter_rules( + _request(DescribeTrafficMirrorFilterRulesInput) + ) + await client.describe_traffic_mirror_filter_rules( + _request(DescribeTrafficMirrorFilterRulesInputDict) + ) + await client.describe_traffic_mirror_filters() + await client.describe_traffic_mirror_filters( + **_request(DescribeTrafficMirrorFiltersInputDict) + ) + await client.describe_traffic_mirror_filters( + _request(DescribeTrafficMirrorFiltersInput) + ) + await client.describe_traffic_mirror_filters( + _request(DescribeTrafficMirrorFiltersInputDict) + ) + await client.describe_traffic_mirror_sessions() + await client.describe_traffic_mirror_sessions( + **_request(DescribeTrafficMirrorSessionsInputDict) + ) + await client.describe_traffic_mirror_sessions( + _request(DescribeTrafficMirrorSessionsInput) + ) + await client.describe_traffic_mirror_sessions( + _request(DescribeTrafficMirrorSessionsInputDict) + ) + await client.describe_traffic_mirror_targets() + await client.describe_traffic_mirror_targets( + **_request(DescribeTrafficMirrorTargetsInputDict) + ) + await client.describe_traffic_mirror_targets( + _request(DescribeTrafficMirrorTargetsInput) + ) + await client.describe_traffic_mirror_targets( + _request(DescribeTrafficMirrorTargetsInputDict) + ) + await client.describe_transit_gateway_attachments() + await client.describe_transit_gateway_attachments( + **_request(DescribeTransitGatewayAttachmentsInputDict) + ) + await client.describe_transit_gateway_attachments( + _request(DescribeTransitGatewayAttachmentsInput) + ) + await client.describe_transit_gateway_attachments( + _request(DescribeTransitGatewayAttachmentsInputDict) + ) + await client.describe_transit_gateway_connect_peers() + await client.describe_transit_gateway_connect_peers( + **_request(DescribeTransitGatewayConnectPeersInputDict) + ) + await client.describe_transit_gateway_connect_peers( + _request(DescribeTransitGatewayConnectPeersInput) + ) + await client.describe_transit_gateway_connect_peers( + _request(DescribeTransitGatewayConnectPeersInputDict) + ) + await client.describe_transit_gateway_connects() + await client.describe_transit_gateway_connects( + **_request(DescribeTransitGatewayConnectsInputDict) + ) + await client.describe_transit_gateway_connects( + _request(DescribeTransitGatewayConnectsInput) + ) + await client.describe_transit_gateway_connects( + _request(DescribeTransitGatewayConnectsInputDict) + ) + await client.describe_transit_gateway_metering_policies() + await client.describe_transit_gateway_metering_policies( + **_request(DescribeTransitGatewayMeteringPoliciesInputDict) + ) + await client.describe_transit_gateway_metering_policies( + _request(DescribeTransitGatewayMeteringPoliciesInput) + ) + await client.describe_transit_gateway_metering_policies( + _request(DescribeTransitGatewayMeteringPoliciesInputDict) + ) + await client.describe_transit_gateway_multicast_domains() + await client.describe_transit_gateway_multicast_domains( + **_request(DescribeTransitGatewayMulticastDomainsInputDict) + ) + await client.describe_transit_gateway_multicast_domains( + _request(DescribeTransitGatewayMulticastDomainsInput) + ) + await client.describe_transit_gateway_multicast_domains( + _request(DescribeTransitGatewayMulticastDomainsInputDict) + ) + await client.describe_transit_gateway_peering_attachments() + await client.describe_transit_gateway_peering_attachments( + **_request(DescribeTransitGatewayPeeringAttachmentsInputDict) + ) + await client.describe_transit_gateway_peering_attachments( + _request(DescribeTransitGatewayPeeringAttachmentsInput) + ) + await client.describe_transit_gateway_peering_attachments( + _request(DescribeTransitGatewayPeeringAttachmentsInputDict) + ) + await client.describe_transit_gateway_policy_tables() + await client.describe_transit_gateway_policy_tables( + **_request(DescribeTransitGatewayPolicyTablesInputDict) + ) + await client.describe_transit_gateway_policy_tables( + _request(DescribeTransitGatewayPolicyTablesInput) + ) + await client.describe_transit_gateway_policy_tables( + _request(DescribeTransitGatewayPolicyTablesInputDict) + ) + await client.describe_transit_gateway_route_table_announcements() + await client.describe_transit_gateway_route_table_announcements( + **_request(DescribeTransitGatewayRouteTableAnnouncementsInputDict) + ) + await client.describe_transit_gateway_route_table_announcements( + _request(DescribeTransitGatewayRouteTableAnnouncementsInput) + ) + await client.describe_transit_gateway_route_table_announcements( + _request(DescribeTransitGatewayRouteTableAnnouncementsInputDict) + ) + await client.describe_transit_gateway_route_tables() + await client.describe_transit_gateway_route_tables( + **_request(DescribeTransitGatewayRouteTablesInputDict) + ) + await client.describe_transit_gateway_route_tables( + _request(DescribeTransitGatewayRouteTablesInput) + ) + await client.describe_transit_gateway_route_tables( + _request(DescribeTransitGatewayRouteTablesInputDict) + ) + await client.describe_transit_gateways() + await client.describe_transit_gateways(**_request(DescribeTransitGatewaysInputDict)) + await client.describe_transit_gateways(_request(DescribeTransitGatewaysInput)) + await client.describe_transit_gateways(_request(DescribeTransitGatewaysInputDict)) + await client.describe_transit_gateway_vpc_attachments() + await client.describe_transit_gateway_vpc_attachments( + **_request(DescribeTransitGatewayVpcAttachmentsInputDict) + ) + await client.describe_transit_gateway_vpc_attachments( + _request(DescribeTransitGatewayVpcAttachmentsInput) + ) + await client.describe_transit_gateway_vpc_attachments( + _request(DescribeTransitGatewayVpcAttachmentsInputDict) + ) + await client.describe_trunk_interface_associations() + await client.describe_trunk_interface_associations( + **_request(DescribeTrunkInterfaceAssociationsInputDict) + ) + await client.describe_trunk_interface_associations( + _request(DescribeTrunkInterfaceAssociationsInput) + ) + await client.describe_trunk_interface_associations( + _request(DescribeTrunkInterfaceAssociationsInputDict) + ) + await client.describe_verified_access_endpoints() + await client.describe_verified_access_endpoints( + **_request(DescribeVerifiedAccessEndpointsInputDict) + ) + await client.describe_verified_access_endpoints( + _request(DescribeVerifiedAccessEndpointsInput) + ) + await client.describe_verified_access_endpoints( + _request(DescribeVerifiedAccessEndpointsInputDict) + ) + await client.describe_verified_access_groups() + await client.describe_verified_access_groups( + **_request(DescribeVerifiedAccessGroupsInputDict) + ) + await client.describe_verified_access_groups( + _request(DescribeVerifiedAccessGroupsInput) + ) + await client.describe_verified_access_groups( + _request(DescribeVerifiedAccessGroupsInputDict) + ) + await client.describe_verified_access_instance_logging_configurations() + await client.describe_verified_access_instance_logging_configurations( + **_request(DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict) + ) + await client.describe_verified_access_instance_logging_configurations( + _request(DescribeVerifiedAccessInstanceLoggingConfigurationsInput) + ) + await client.describe_verified_access_instance_logging_configurations( + _request(DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict) + ) + await client.describe_verified_access_instances() + await client.describe_verified_access_instances( + **_request(DescribeVerifiedAccessInstancesInputDict) + ) + await client.describe_verified_access_instances( + _request(DescribeVerifiedAccessInstancesInput) + ) + await client.describe_verified_access_instances( + _request(DescribeVerifiedAccessInstancesInputDict) + ) + await client.describe_verified_access_trust_providers() + await client.describe_verified_access_trust_providers( + **_request(DescribeVerifiedAccessTrustProvidersInputDict) + ) + await client.describe_verified_access_trust_providers( + _request(DescribeVerifiedAccessTrustProvidersInput) + ) + await client.describe_verified_access_trust_providers( + _request(DescribeVerifiedAccessTrustProvidersInputDict) + ) + await client.describe_volume_attribute(attribute=_, volume_id=_) + await client.describe_volume_attribute(**_request(DescribeVolumeAttributeInputDict)) + await client.describe_volume_attribute(_request(DescribeVolumeAttributeInput)) + await client.describe_volume_attribute(_request(DescribeVolumeAttributeInputDict)) + await client.describe_volumes() + await client.describe_volumes(**_request(DescribeVolumesInputDict)) + await client.describe_volumes(_request(DescribeVolumesInput)) + await client.describe_volumes(_request(DescribeVolumesInputDict)) + await client.describe_volumes_modifications() + await client.describe_volumes_modifications( + **_request(DescribeVolumesModificationsInputDict) + ) + await client.describe_volumes_modifications( + _request(DescribeVolumesModificationsInput) + ) + await client.describe_volumes_modifications( + _request(DescribeVolumesModificationsInputDict) + ) + await client.describe_volume_status() + await client.describe_volume_status(**_request(DescribeVolumeStatusInputDict)) + await client.describe_volume_status(_request(DescribeVolumeStatusInput)) + await client.describe_volume_status(_request(DescribeVolumeStatusInputDict)) + await client.describe_vpc_attribute(attribute=_, vpc_id=_) + await client.describe_vpc_attribute(**_request(DescribeVpcAttributeInputDict)) + await client.describe_vpc_attribute(_request(DescribeVpcAttributeInput)) + await client.describe_vpc_attribute(_request(DescribeVpcAttributeInputDict)) + await client.describe_vpc_block_public_access_exclusions() + await client.describe_vpc_block_public_access_exclusions( + **_request(DescribeVpcBlockPublicAccessExclusionsInputDict) + ) + await client.describe_vpc_block_public_access_exclusions( + _request(DescribeVpcBlockPublicAccessExclusionsInput) + ) + await client.describe_vpc_block_public_access_exclusions( + _request(DescribeVpcBlockPublicAccessExclusionsInputDict) + ) + await client.describe_vpc_block_public_access_options() + await client.describe_vpc_block_public_access_options( + **_request(DescribeVpcBlockPublicAccessOptionsInputDict) + ) + await client.describe_vpc_block_public_access_options( + _request(DescribeVpcBlockPublicAccessOptionsInput) + ) + await client.describe_vpc_block_public_access_options( + _request(DescribeVpcBlockPublicAccessOptionsInputDict) + ) + await client.describe_vpc_classic_link() + await client.describe_vpc_classic_link(**_request(DescribeVpcClassicLinkInputDict)) + await client.describe_vpc_classic_link(_request(DescribeVpcClassicLinkInput)) + await client.describe_vpc_classic_link(_request(DescribeVpcClassicLinkInputDict)) + await client.describe_vpc_classic_link_dns_support() + await client.describe_vpc_classic_link_dns_support( + **_request(DescribeVpcClassicLinkDnsSupportInputDict) + ) + await client.describe_vpc_classic_link_dns_support( + _request(DescribeVpcClassicLinkDnsSupportInput) + ) + await client.describe_vpc_classic_link_dns_support( + _request(DescribeVpcClassicLinkDnsSupportInputDict) + ) + await client.describe_vpc_encryption_controls() + await client.describe_vpc_encryption_controls( + **_request(DescribeVpcEncryptionControlsInputDict) + ) + await client.describe_vpc_encryption_controls( + _request(DescribeVpcEncryptionControlsInput) + ) + await client.describe_vpc_encryption_controls( + _request(DescribeVpcEncryptionControlsInputDict) + ) + await client.describe_vpc_endpoint_associations() + await client.describe_vpc_endpoint_associations( + **_request(DescribeVpcEndpointAssociationsInputDict) + ) + await client.describe_vpc_endpoint_associations( + _request(DescribeVpcEndpointAssociationsInput) + ) + await client.describe_vpc_endpoint_associations( + _request(DescribeVpcEndpointAssociationsInputDict) + ) + await client.describe_vpc_endpoint_connection_notifications() + await client.describe_vpc_endpoint_connection_notifications( + **_request(DescribeVpcEndpointConnectionNotificationsInputDict) + ) + await client.describe_vpc_endpoint_connection_notifications( + _request(DescribeVpcEndpointConnectionNotificationsInput) + ) + await client.describe_vpc_endpoint_connection_notifications( + _request(DescribeVpcEndpointConnectionNotificationsInputDict) + ) + await client.describe_vpc_endpoint_connections() + await client.describe_vpc_endpoint_connections( + **_request(DescribeVpcEndpointConnectionsInputDict) + ) + await client.describe_vpc_endpoint_connections( + _request(DescribeVpcEndpointConnectionsInput) + ) + await client.describe_vpc_endpoint_connections( + _request(DescribeVpcEndpointConnectionsInputDict) + ) + await client.describe_vpc_endpoints() + await client.describe_vpc_endpoints(**_request(DescribeVpcEndpointsInputDict)) + await client.describe_vpc_endpoints(_request(DescribeVpcEndpointsInput)) + await client.describe_vpc_endpoints(_request(DescribeVpcEndpointsInputDict)) + await client.describe_vpc_endpoint_service_configurations() + await client.describe_vpc_endpoint_service_configurations( + **_request(DescribeVpcEndpointServiceConfigurationsInputDict) + ) + await client.describe_vpc_endpoint_service_configurations( + _request(DescribeVpcEndpointServiceConfigurationsInput) + ) + await client.describe_vpc_endpoint_service_configurations( + _request(DescribeVpcEndpointServiceConfigurationsInputDict) + ) + await client.describe_vpc_endpoint_service_permissions(service_id=_) + await client.describe_vpc_endpoint_service_permissions( + **_request(DescribeVpcEndpointServicePermissionsInputDict) + ) + await client.describe_vpc_endpoint_service_permissions( + _request(DescribeVpcEndpointServicePermissionsInput) + ) + await client.describe_vpc_endpoint_service_permissions( + _request(DescribeVpcEndpointServicePermissionsInputDict) + ) + await client.describe_vpc_endpoint_services() + await client.describe_vpc_endpoint_services( + **_request(DescribeVpcEndpointServicesInputDict) + ) + await client.describe_vpc_endpoint_services( + _request(DescribeVpcEndpointServicesInput) + ) + await client.describe_vpc_endpoint_services( + _request(DescribeVpcEndpointServicesInputDict) + ) + await client.describe_vpc_peering_connections() + await client.describe_vpc_peering_connections( + **_request(DescribeVpcPeeringConnectionsInputDict) + ) + await client.describe_vpc_peering_connections( + _request(DescribeVpcPeeringConnectionsInput) + ) + await client.describe_vpc_peering_connections( + _request(DescribeVpcPeeringConnectionsInputDict) + ) + await client.describe_vpcs() + await client.describe_vpcs(**_request(DescribeVpcsInputDict)) + await client.describe_vpcs(_request(DescribeVpcsInput)) + await client.describe_vpcs(_request(DescribeVpcsInputDict)) + await client.describe_vpn_concentrators() + await client.describe_vpn_concentrators( + **_request(DescribeVpnConcentratorsInputDict) + ) + await client.describe_vpn_concentrators(_request(DescribeVpnConcentratorsInput)) + await client.describe_vpn_concentrators(_request(DescribeVpnConcentratorsInputDict)) + await client.describe_vpn_connections() + await client.describe_vpn_connections(**_request(DescribeVpnConnectionsInputDict)) + await client.describe_vpn_connections(_request(DescribeVpnConnectionsInput)) + await client.describe_vpn_connections(_request(DescribeVpnConnectionsInputDict)) + await client.describe_vpn_gateways() + await client.describe_vpn_gateways(**_request(DescribeVpnGatewaysInputDict)) + await client.describe_vpn_gateways(_request(DescribeVpnGatewaysInput)) + await client.describe_vpn_gateways(_request(DescribeVpnGatewaysInputDict)) + await client.detach_classic_link_vpc(instance_id=_, vpc_id=_) + await client.detach_classic_link_vpc(**_request(DetachClassicLinkVpcInputDict)) + await client.detach_classic_link_vpc(_request(DetachClassicLinkVpcInput)) + await client.detach_classic_link_vpc(_request(DetachClassicLinkVpcInputDict)) + await client.detach_image_watermark(image_id=_, watermark_key=_) + await client.detach_image_watermark(**_request(DetachImageWatermarkInputDict)) + await client.detach_image_watermark(_request(DetachImageWatermarkInput)) + await client.detach_image_watermark(_request(DetachImageWatermarkInputDict)) + await client.detach_internet_gateway(internet_gateway_id=_, vpc_id=_) + await client.detach_internet_gateway(**_request(DetachInternetGatewayInputDict)) + await client.detach_internet_gateway(_request(DetachInternetGatewayInput)) + await client.detach_internet_gateway(_request(DetachInternetGatewayInputDict)) + await client.detach_network_interface(attachment_id=_) + await client.detach_network_interface(**_request(DetachNetworkInterfaceInputDict)) + await client.detach_network_interface(_request(DetachNetworkInterfaceInput)) + await client.detach_network_interface(_request(DetachNetworkInterfaceInputDict)) + await client.detach_verified_access_trust_provider( + verified_access_instance_id=_, verified_access_trust_provider_id=_ + ) + await client.detach_verified_access_trust_provider( + **_request(DetachVerifiedAccessTrustProviderInputDict) + ) + await client.detach_verified_access_trust_provider( + _request(DetachVerifiedAccessTrustProviderInput) + ) + await client.detach_verified_access_trust_provider( + _request(DetachVerifiedAccessTrustProviderInputDict) + ) + await client.detach_volume(volume_id=_) + await client.detach_volume(**_request(DetachVolumeInputDict)) + await client.detach_volume(_request(DetachVolumeInput)) + await client.detach_volume(_request(DetachVolumeInputDict)) + await client.detach_vpn_gateway(vpc_id=_, vpn_gateway_id=_) + await client.detach_vpn_gateway(**_request(DetachVpnGatewayInputDict)) + await client.detach_vpn_gateway(_request(DetachVpnGatewayInput)) + await client.detach_vpn_gateway(_request(DetachVpnGatewayInputDict)) + await client.disable_address_transfer(allocation_id=_) + await client.disable_address_transfer(**_request(DisableAddressTransferInputDict)) + await client.disable_address_transfer(_request(DisableAddressTransferInput)) + await client.disable_address_transfer(_request(DisableAddressTransferInputDict)) + await client.disable_allowed_images_settings() + await client.disable_allowed_images_settings( + **_request(DisableAllowedImagesSettingsInputDict) + ) + await client.disable_allowed_images_settings( + _request(DisableAllowedImagesSettingsInput) + ) + await client.disable_allowed_images_settings( + _request(DisableAllowedImagesSettingsInputDict) + ) + await client.disable_application_status_check_suppression() + await client.disable_application_status_check_suppression( + **_request(DisableApplicationStatusCheckSuppressionInputDict) + ) + await client.disable_application_status_check_suppression( + _request(DisableApplicationStatusCheckSuppressionInput) + ) + await client.disable_application_status_check_suppression( + _request(DisableApplicationStatusCheckSuppressionInputDict) + ) + await client.disable_aws_network_performance_metric_subscription() + await client.disable_aws_network_performance_metric_subscription( + **_request(DisableAwsNetworkPerformanceMetricSubscriptionInputDict) + ) + await client.disable_aws_network_performance_metric_subscription( + _request(DisableAwsNetworkPerformanceMetricSubscriptionInput) + ) + await client.disable_aws_network_performance_metric_subscription( + _request(DisableAwsNetworkPerformanceMetricSubscriptionInputDict) + ) + await client.disable_capacity_manager() + await client.disable_capacity_manager(**_request(DisableCapacityManagerInputDict)) + await client.disable_capacity_manager(_request(DisableCapacityManagerInput)) + await client.disable_capacity_manager(_request(DisableCapacityManagerInputDict)) + await client.disable_ebs_encryption_by_default() + await client.disable_ebs_encryption_by_default( + **_request(DisableEbsEncryptionByDefaultInputDict) + ) + await client.disable_ebs_encryption_by_default( + _request(DisableEbsEncryptionByDefaultInput) + ) + await client.disable_ebs_encryption_by_default( + _request(DisableEbsEncryptionByDefaultInputDict) + ) + await client.disable_fast_launch(image_id=_) + await client.disable_fast_launch(**_request(DisableFastLaunchInputDict)) + await client.disable_fast_launch(_request(DisableFastLaunchInput)) + await client.disable_fast_launch(_request(DisableFastLaunchInputDict)) + await client.disable_fast_snapshot_restores(source_snapshot_ids=_) + await client.disable_fast_snapshot_restores( + **_request(DisableFastSnapshotRestoresInputDict) + ) + await client.disable_fast_snapshot_restores( + _request(DisableFastSnapshotRestoresInput) + ) + await client.disable_fast_snapshot_restores( + _request(DisableFastSnapshotRestoresInputDict) + ) + await client.disable_image(image_id=_) + await client.disable_image(**_request(DisableImageInputDict)) + await client.disable_image(_request(DisableImageInput)) + await client.disable_image(_request(DisableImageInputDict)) + await client.disable_image_block_public_access() + await client.disable_image_block_public_access( + **_request(DisableImageBlockPublicAccessInputDict) + ) + await client.disable_image_block_public_access( + _request(DisableImageBlockPublicAccessInput) + ) + await client.disable_image_block_public_access( + _request(DisableImageBlockPublicAccessInputDict) + ) + await client.disable_image_deprecation(image_id=_) + await client.disable_image_deprecation(**_request(DisableImageDeprecationInputDict)) + await client.disable_image_deprecation(_request(DisableImageDeprecationInput)) + await client.disable_image_deprecation(_request(DisableImageDeprecationInputDict)) + await client.disable_image_deregistration_protection(image_id=_) + await client.disable_image_deregistration_protection( + **_request(DisableImageDeregistrationProtectionInputDict) + ) + await client.disable_image_deregistration_protection( + _request(DisableImageDeregistrationProtectionInput) + ) + await client.disable_image_deregistration_protection( + _request(DisableImageDeregistrationProtectionInputDict) + ) + await client.disable_instance_sql_ha_standby_detections(instance_ids=_) + await client.disable_instance_sql_ha_standby_detections( + **_request(DisableInstanceSqlHaStandbyDetectionsInputDict) + ) + await client.disable_instance_sql_ha_standby_detections( + _request(DisableInstanceSqlHaStandbyDetectionsInput) + ) + await client.disable_instance_sql_ha_standby_detections( + _request(DisableInstanceSqlHaStandbyDetectionsInputDict) + ) + await client.disable_ipam_organization_admin_account(delegated_admin_account_id=_) + await client.disable_ipam_organization_admin_account( + **_request(DisableIpamOrganizationAdminAccountInputDict) + ) + await client.disable_ipam_organization_admin_account( + _request(DisableIpamOrganizationAdminAccountInput) + ) + await client.disable_ipam_organization_admin_account( + _request(DisableIpamOrganizationAdminAccountInputDict) + ) + await client.disable_ipam_policy(ipam_policy_id=_) + await client.disable_ipam_policy(**_request(DisableIpamPolicyInputDict)) + await client.disable_ipam_policy(_request(DisableIpamPolicyInput)) + await client.disable_ipam_policy(_request(DisableIpamPolicyInputDict)) + await client.disable_route_server_propagation(route_server_id=_, route_table_id=_) + await client.disable_route_server_propagation( + **_request(DisableRouteServerPropagationInputDict) + ) + await client.disable_route_server_propagation( + _request(DisableRouteServerPropagationInput) + ) + await client.disable_route_server_propagation( + _request(DisableRouteServerPropagationInputDict) + ) + await client.disable_serial_console_access() + await client.disable_serial_console_access( + **_request(DisableSerialConsoleAccessInputDict) + ) + await client.disable_serial_console_access( + _request(DisableSerialConsoleAccessInput) + ) + await client.disable_serial_console_access( + _request(DisableSerialConsoleAccessInputDict) + ) + await client.disable_snapshot_block_public_access() + await client.disable_snapshot_block_public_access( + **_request(DisableSnapshotBlockPublicAccessInputDict) + ) + await client.disable_snapshot_block_public_access( + _request(DisableSnapshotBlockPublicAccessInput) + ) + await client.disable_snapshot_block_public_access( + _request(DisableSnapshotBlockPublicAccessInputDict) + ) + await client.disable_transit_gateway_route_table_propagation( + transit_gateway_route_table_id=_ + ) + await client.disable_transit_gateway_route_table_propagation( + **_request(DisableTransitGatewayRouteTablePropagationInputDict) + ) + await client.disable_transit_gateway_route_table_propagation( + _request(DisableTransitGatewayRouteTablePropagationInput) + ) + await client.disable_transit_gateway_route_table_propagation( + _request(DisableTransitGatewayRouteTablePropagationInputDict) + ) + await client.disable_vgw_route_propagation(gateway_id=_, route_table_id=_) + await client.disable_vgw_route_propagation( + **_request(DisableVgwRoutePropagationInputDict) + ) + await client.disable_vgw_route_propagation( + _request(DisableVgwRoutePropagationInput) + ) + await client.disable_vgw_route_propagation( + _request(DisableVgwRoutePropagationInputDict) + ) + await client.disable_vpc_classic_link(vpc_id=_) + await client.disable_vpc_classic_link(**_request(DisableVpcClassicLinkInputDict)) + await client.disable_vpc_classic_link(_request(DisableVpcClassicLinkInput)) + await client.disable_vpc_classic_link(_request(DisableVpcClassicLinkInputDict)) + await client.disable_vpc_classic_link_dns_support() + await client.disable_vpc_classic_link_dns_support( + **_request(DisableVpcClassicLinkDnsSupportInputDict) + ) + await client.disable_vpc_classic_link_dns_support( + _request(DisableVpcClassicLinkDnsSupportInput) + ) + await client.disable_vpc_classic_link_dns_support( + _request(DisableVpcClassicLinkDnsSupportInputDict) + ) + await client.disassociate_address() + await client.disassociate_address(**_request(DisassociateAddressInputDict)) + await client.disassociate_address(_request(DisassociateAddressInput)) + await client.disassociate_address(_request(DisassociateAddressInputDict)) + await client.disassociate_application_status_check(application_status_check_id=_) + await client.disassociate_application_status_check( + **_request(DisassociateApplicationStatusCheckInputDict) + ) + await client.disassociate_application_status_check( + _request(DisassociateApplicationStatusCheckInput) + ) + await client.disassociate_application_status_check( + _request(DisassociateApplicationStatusCheckInputDict) + ) + await client.disassociate_capacity_reservation_billing_owner( + capacity_reservation_id=_, unused_reservation_billing_owner_id=_ + ) + await client.disassociate_capacity_reservation_billing_owner( + **_request(DisassociateCapacityReservationBillingOwnerInputDict) + ) + await client.disassociate_capacity_reservation_billing_owner( + _request(DisassociateCapacityReservationBillingOwnerInput) + ) + await client.disassociate_capacity_reservation_billing_owner( + _request(DisassociateCapacityReservationBillingOwnerInputDict) + ) + await client.disassociate_client_vpn_target_network( + client_vpn_endpoint_id=_, association_id=_ + ) + await client.disassociate_client_vpn_target_network( + **_request(DisassociateClientVpnTargetNetworkInputDict) + ) + await client.disassociate_client_vpn_target_network( + _request(DisassociateClientVpnTargetNetworkInput) + ) + await client.disassociate_client_vpn_target_network( + _request(DisassociateClientVpnTargetNetworkInputDict) + ) + await client.disassociate_enclave_certificate_iam_role( + certificate_arn=_, role_arn=_ + ) + await client.disassociate_enclave_certificate_iam_role( + **_request(DisassociateEnclaveCertificateIamRoleInputDict) + ) + await client.disassociate_enclave_certificate_iam_role( + _request(DisassociateEnclaveCertificateIamRoleInput) + ) + await client.disassociate_enclave_certificate_iam_role( + _request(DisassociateEnclaveCertificateIamRoleInputDict) + ) + await client.disassociate_iam_instance_profile(association_id=_) + await client.disassociate_iam_instance_profile( + **_request(DisassociateIamInstanceProfileInputDict) + ) + await client.disassociate_iam_instance_profile( + _request(DisassociateIamInstanceProfileInput) + ) + await client.disassociate_iam_instance_profile( + _request(DisassociateIamInstanceProfileInputDict) + ) + await client.disassociate_instance_event_window( + instance_event_window_id=_, association_target=_ + ) + await client.disassociate_instance_event_window( + **_request(DisassociateInstanceEventWindowInputDict) + ) + await client.disassociate_instance_event_window( + _request(DisassociateInstanceEventWindowInput) + ) + await client.disassociate_instance_event_window( + _request(DisassociateInstanceEventWindowInputDict) + ) + await client.disassociate_ipam_byoasn(asn=_, cidr=_) + await client.disassociate_ipam_byoasn(**_request(DisassociateIpamByoasnInputDict)) + await client.disassociate_ipam_byoasn(_request(DisassociateIpamByoasnInput)) + await client.disassociate_ipam_byoasn(_request(DisassociateIpamByoasnInputDict)) + await client.disassociate_ipam_resource_discovery( + ipam_resource_discovery_association_id=_ + ) + await client.disassociate_ipam_resource_discovery( + **_request(DisassociateIpamResourceDiscoveryInputDict) + ) + await client.disassociate_ipam_resource_discovery( + _request(DisassociateIpamResourceDiscoveryInput) + ) + await client.disassociate_ipam_resource_discovery( + _request(DisassociateIpamResourceDiscoveryInputDict) + ) + await client.disassociate_nat_gateway_address(nat_gateway_id=_, association_ids=_) + await client.disassociate_nat_gateway_address( + **_request(DisassociateNatGatewayAddressInputDict) + ) + await client.disassociate_nat_gateway_address( + _request(DisassociateNatGatewayAddressInput) + ) + await client.disassociate_nat_gateway_address( + _request(DisassociateNatGatewayAddressInputDict) + ) + await client.disassociate_route_server(route_server_id=_, vpc_id=_) + await client.disassociate_route_server(**_request(DisassociateRouteServerInputDict)) + await client.disassociate_route_server(_request(DisassociateRouteServerInput)) + await client.disassociate_route_server(_request(DisassociateRouteServerInputDict)) + await client.disassociate_route_table(association_id=_) + await client.disassociate_route_table(**_request(DisassociateRouteTableInputDict)) + await client.disassociate_route_table(_request(DisassociateRouteTableInput)) + await client.disassociate_route_table(_request(DisassociateRouteTableInputDict)) + await client.disassociate_security_group_vpc(group_id=_, vpc_id=_) + await client.disassociate_security_group_vpc( + **_request(DisassociateSecurityGroupVpcInputDict) + ) + await client.disassociate_security_group_vpc( + _request(DisassociateSecurityGroupVpcInput) + ) + await client.disassociate_security_group_vpc( + _request(DisassociateSecurityGroupVpcInputDict) + ) + await client.disassociate_subnet_cidr_block(association_id=_) + await client.disassociate_subnet_cidr_block( + **_request(DisassociateSubnetCidrBlockInputDict) + ) + await client.disassociate_subnet_cidr_block( + _request(DisassociateSubnetCidrBlockInput) + ) + await client.disassociate_subnet_cidr_block( + _request(DisassociateSubnetCidrBlockInputDict) + ) + await client.disassociate_transit_gateway_multicast_domain( + transit_gateway_multicast_domain_id=_, + transit_gateway_attachment_id=_, + subnet_ids=_, + ) + await client.disassociate_transit_gateway_multicast_domain( + **_request(DisassociateTransitGatewayMulticastDomainInputDict) + ) + await client.disassociate_transit_gateway_multicast_domain( + _request(DisassociateTransitGatewayMulticastDomainInput) + ) + await client.disassociate_transit_gateway_multicast_domain( + _request(DisassociateTransitGatewayMulticastDomainInputDict) + ) + await client.disassociate_transit_gateway_policy_table( + transit_gateway_policy_table_id=_, transit_gateway_attachment_id=_ + ) + await client.disassociate_transit_gateway_policy_table( + **_request(DisassociateTransitGatewayPolicyTableInputDict) + ) + await client.disassociate_transit_gateway_policy_table( + _request(DisassociateTransitGatewayPolicyTableInput) + ) + await client.disassociate_transit_gateway_policy_table( + _request(DisassociateTransitGatewayPolicyTableInputDict) + ) + await client.disassociate_transit_gateway_route_table( + transit_gateway_route_table_id=_, transit_gateway_attachment_id=_ + ) + await client.disassociate_transit_gateway_route_table( + **_request(DisassociateTransitGatewayRouteTableInputDict) + ) + await client.disassociate_transit_gateway_route_table( + _request(DisassociateTransitGatewayRouteTableInput) + ) + await client.disassociate_transit_gateway_route_table( + _request(DisassociateTransitGatewayRouteTableInputDict) + ) + await client.disassociate_trunk_interface(association_id=_) + await client.disassociate_trunk_interface( + **_request(DisassociateTrunkInterfaceInputDict) + ) + await client.disassociate_trunk_interface(_request(DisassociateTrunkInterfaceInput)) + await client.disassociate_trunk_interface( + _request(DisassociateTrunkInterfaceInputDict) + ) + await client.disassociate_vpc_cidr_block(association_id=_) + await client.disassociate_vpc_cidr_block( + **_request(DisassociateVpcCidrBlockInputDict) + ) + await client.disassociate_vpc_cidr_block(_request(DisassociateVpcCidrBlockInput)) + await client.disassociate_vpc_cidr_block( + _request(DisassociateVpcCidrBlockInputDict) + ) + await client.enable_address_transfer(allocation_id=_, transfer_account_id=_) + await client.enable_address_transfer(**_request(EnableAddressTransferInputDict)) + await client.enable_address_transfer(_request(EnableAddressTransferInput)) + await client.enable_address_transfer(_request(EnableAddressTransferInputDict)) + await client.enable_allowed_images_settings(allowed_images_settings_state=_) + await client.enable_allowed_images_settings( + **_request(EnableAllowedImagesSettingsInputDict) + ) + await client.enable_allowed_images_settings( + _request(EnableAllowedImagesSettingsInput) + ) + await client.enable_allowed_images_settings( + _request(EnableAllowedImagesSettingsInputDict) + ) + await client.enable_application_status_check_suppression() + await client.enable_application_status_check_suppression( + **_request(EnableApplicationStatusCheckSuppressionInputDict) + ) + await client.enable_application_status_check_suppression( + _request(EnableApplicationStatusCheckSuppressionInput) + ) + await client.enable_application_status_check_suppression( + _request(EnableApplicationStatusCheckSuppressionInputDict) + ) + await client.enable_aws_network_performance_metric_subscription() + await client.enable_aws_network_performance_metric_subscription( + **_request(EnableAwsNetworkPerformanceMetricSubscriptionInputDict) + ) + await client.enable_aws_network_performance_metric_subscription( + _request(EnableAwsNetworkPerformanceMetricSubscriptionInput) + ) + await client.enable_aws_network_performance_metric_subscription( + _request(EnableAwsNetworkPerformanceMetricSubscriptionInputDict) + ) + await client.enable_capacity_manager() + await client.enable_capacity_manager(**_request(EnableCapacityManagerInputDict)) + await client.enable_capacity_manager(_request(EnableCapacityManagerInput)) + await client.enable_capacity_manager(_request(EnableCapacityManagerInputDict)) + await client.enable_ebs_encryption_by_default() + await client.enable_ebs_encryption_by_default( + **_request(EnableEbsEncryptionByDefaultInputDict) + ) + await client.enable_ebs_encryption_by_default( + _request(EnableEbsEncryptionByDefaultInput) + ) + await client.enable_ebs_encryption_by_default( + _request(EnableEbsEncryptionByDefaultInputDict) + ) + await client.enable_fast_launch(image_id=_) + await client.enable_fast_launch(**_request(EnableFastLaunchInputDict)) + await client.enable_fast_launch(_request(EnableFastLaunchInput)) + await client.enable_fast_launch(_request(EnableFastLaunchInputDict)) + await client.enable_fast_snapshot_restores(source_snapshot_ids=_) + await client.enable_fast_snapshot_restores( + **_request(EnableFastSnapshotRestoresInputDict) + ) + await client.enable_fast_snapshot_restores( + _request(EnableFastSnapshotRestoresInput) + ) + await client.enable_fast_snapshot_restores( + _request(EnableFastSnapshotRestoresInputDict) + ) + await client.enable_image(image_id=_) + await client.enable_image(**_request(EnableImageInputDict)) + await client.enable_image(_request(EnableImageInput)) + await client.enable_image(_request(EnableImageInputDict)) + await client.enable_image_block_public_access(image_block_public_access_state=_) + await client.enable_image_block_public_access( + **_request(EnableImageBlockPublicAccessInputDict) + ) + await client.enable_image_block_public_access( + _request(EnableImageBlockPublicAccessInput) + ) + await client.enable_image_block_public_access( + _request(EnableImageBlockPublicAccessInputDict) + ) + await client.enable_image_deprecation(image_id=_, deprecate_at=_) + await client.enable_image_deprecation(**_request(EnableImageDeprecationInputDict)) + await client.enable_image_deprecation(_request(EnableImageDeprecationInput)) + await client.enable_image_deprecation(_request(EnableImageDeprecationInputDict)) + await client.enable_image_deregistration_protection(image_id=_) + await client.enable_image_deregistration_protection( + **_request(EnableImageDeregistrationProtectionInputDict) + ) + await client.enable_image_deregistration_protection( + _request(EnableImageDeregistrationProtectionInput) + ) + await client.enable_image_deregistration_protection( + _request(EnableImageDeregistrationProtectionInputDict) + ) + await client.enable_instance_sql_ha_standby_detections(instance_ids=_) + await client.enable_instance_sql_ha_standby_detections( + **_request(EnableInstanceSqlHaStandbyDetectionsInputDict) + ) + await client.enable_instance_sql_ha_standby_detections( + _request(EnableInstanceSqlHaStandbyDetectionsInput) + ) + await client.enable_instance_sql_ha_standby_detections( + _request(EnableInstanceSqlHaStandbyDetectionsInputDict) + ) + await client.enable_ipam_internet_registry_association( + ipam_internet_registry_association_id=_, + rpki_version=_, + service_uri=_, + child_handle=_, + parent_handle=_, + parent_bpki_ta=_, + ) + await client.enable_ipam_internet_registry_association( + **_request(EnableIpamInternetRegistryAssociationInputDict) + ) + await client.enable_ipam_internet_registry_association( + _request(EnableIpamInternetRegistryAssociationInput) + ) + await client.enable_ipam_internet_registry_association( + _request(EnableIpamInternetRegistryAssociationInputDict) + ) + await client.enable_ipam_organization_admin_account(delegated_admin_account_id=_) + await client.enable_ipam_organization_admin_account( + **_request(EnableIpamOrganizationAdminAccountInputDict) + ) + await client.enable_ipam_organization_admin_account( + _request(EnableIpamOrganizationAdminAccountInput) + ) + await client.enable_ipam_organization_admin_account( + _request(EnableIpamOrganizationAdminAccountInputDict) + ) + await client.enable_ipam_policy(ipam_policy_id=_) + await client.enable_ipam_policy(**_request(EnableIpamPolicyInputDict)) + await client.enable_ipam_policy(_request(EnableIpamPolicyInput)) + await client.enable_ipam_policy(_request(EnableIpamPolicyInputDict)) + await client.enable_reachability_analyzer_organization_sharing() + await client.enable_reachability_analyzer_organization_sharing( + **_request(EnableReachabilityAnalyzerOrganizationSharingInputDict) + ) + await client.enable_reachability_analyzer_organization_sharing( + _request(EnableReachabilityAnalyzerOrganizationSharingInput) + ) + await client.enable_reachability_analyzer_organization_sharing( + _request(EnableReachabilityAnalyzerOrganizationSharingInputDict) + ) + await client.enable_route_server_propagation(route_server_id=_, route_table_id=_) + await client.enable_route_server_propagation( + **_request(EnableRouteServerPropagationInputDict) + ) + await client.enable_route_server_propagation( + _request(EnableRouteServerPropagationInput) + ) + await client.enable_route_server_propagation( + _request(EnableRouteServerPropagationInputDict) + ) + await client.enable_serial_console_access() + await client.enable_serial_console_access( + **_request(EnableSerialConsoleAccessInputDict) + ) + await client.enable_serial_console_access(_request(EnableSerialConsoleAccessInput)) + await client.enable_serial_console_access( + _request(EnableSerialConsoleAccessInputDict) + ) + await client.enable_snapshot_block_public_access(state=_) + await client.enable_snapshot_block_public_access( + **_request(EnableSnapshotBlockPublicAccessInputDict) + ) + await client.enable_snapshot_block_public_access( + _request(EnableSnapshotBlockPublicAccessInput) + ) + await client.enable_snapshot_block_public_access( + _request(EnableSnapshotBlockPublicAccessInputDict) + ) + await client.enable_transit_gateway_route_table_propagation( + transit_gateway_route_table_id=_ + ) + await client.enable_transit_gateway_route_table_propagation( + **_request(EnableTransitGatewayRouteTablePropagationInputDict) + ) + await client.enable_transit_gateway_route_table_propagation( + _request(EnableTransitGatewayRouteTablePropagationInput) + ) + await client.enable_transit_gateway_route_table_propagation( + _request(EnableTransitGatewayRouteTablePropagationInputDict) + ) + await client.enable_vgw_route_propagation(gateway_id=_, route_table_id=_) + await client.enable_vgw_route_propagation( + **_request(EnableVgwRoutePropagationInputDict) + ) + await client.enable_vgw_route_propagation(_request(EnableVgwRoutePropagationInput)) + await client.enable_vgw_route_propagation( + _request(EnableVgwRoutePropagationInputDict) + ) + await client.enable_volume_io(volume_id=_) + await client.enable_volume_io(**_request(EnableVolumeIOInputDict)) + await client.enable_volume_io(_request(EnableVolumeIOInput)) + await client.enable_volume_io(_request(EnableVolumeIOInputDict)) + await client.enable_vpc_classic_link(vpc_id=_) + await client.enable_vpc_classic_link(**_request(EnableVpcClassicLinkInputDict)) + await client.enable_vpc_classic_link(_request(EnableVpcClassicLinkInput)) + await client.enable_vpc_classic_link(_request(EnableVpcClassicLinkInputDict)) + await client.enable_vpc_classic_link_dns_support() + await client.enable_vpc_classic_link_dns_support( + **_request(EnableVpcClassicLinkDnsSupportInputDict) + ) + await client.enable_vpc_classic_link_dns_support( + _request(EnableVpcClassicLinkDnsSupportInput) + ) + await client.enable_vpc_classic_link_dns_support( + _request(EnableVpcClassicLinkDnsSupportInputDict) + ) + await client.export_client_vpn_client_certificate_revocation_list( + client_vpn_endpoint_id=_ + ) + await client.export_client_vpn_client_certificate_revocation_list( + **_request(ExportClientVpnClientCertificateRevocationListInputDict) + ) + await client.export_client_vpn_client_certificate_revocation_list( + _request(ExportClientVpnClientCertificateRevocationListInput) + ) + await client.export_client_vpn_client_certificate_revocation_list( + _request(ExportClientVpnClientCertificateRevocationListInputDict) + ) + await client.export_client_vpn_client_configuration(client_vpn_endpoint_id=_) + await client.export_client_vpn_client_configuration( + **_request(ExportClientVpnClientConfigurationInputDict) + ) + await client.export_client_vpn_client_configuration( + _request(ExportClientVpnClientConfigurationInput) + ) + await client.export_client_vpn_client_configuration( + _request(ExportClientVpnClientConfigurationInputDict) + ) + await client.export_image(disk_image_format=_, image_id=_, s3_export_location=_) + await client.export_image(**_request(ExportImageInputDict)) + await client.export_image(_request(ExportImageInput)) + await client.export_image(_request(ExportImageInputDict)) + await client.export_transit_gateway_routes( + transit_gateway_route_table_id=_, s3_bucket=_ + ) + await client.export_transit_gateway_routes( + **_request(ExportTransitGatewayRoutesInputDict) + ) + await client.export_transit_gateway_routes( + _request(ExportTransitGatewayRoutesInput) + ) + await client.export_transit_gateway_routes( + _request(ExportTransitGatewayRoutesInputDict) + ) + await client.export_verified_access_instance_client_configuration( + verified_access_instance_id=_ + ) + await client.export_verified_access_instance_client_configuration( + **_request(ExportVerifiedAccessInstanceClientConfigurationInputDict) + ) + await client.export_verified_access_instance_client_configuration( + _request(ExportVerifiedAccessInstanceClientConfigurationInput) + ) + await client.export_verified_access_instance_client_configuration( + _request(ExportVerifiedAccessInstanceClientConfigurationInputDict) + ) + await client.get_active_vpn_tunnel_status( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_ + ) + await client.get_active_vpn_tunnel_status( + **_request(GetActiveVpnTunnelStatusInputDict) + ) + await client.get_active_vpn_tunnel_status(_request(GetActiveVpnTunnelStatusInput)) + await client.get_active_vpn_tunnel_status( + _request(GetActiveVpnTunnelStatusInputDict) + ) + await client.get_allowed_images_settings() + await client.get_allowed_images_settings( + **_request(GetAllowedImagesSettingsInputDict) + ) + await client.get_allowed_images_settings(_request(GetAllowedImagesSettingsInput)) + await client.get_allowed_images_settings( + _request(GetAllowedImagesSettingsInputDict) + ) + await client.get_associated_enclave_certificate_iam_roles(certificate_arn=_) + await client.get_associated_enclave_certificate_iam_roles( + **_request(GetAssociatedEnclaveCertificateIamRolesInputDict) + ) + await client.get_associated_enclave_certificate_iam_roles( + _request(GetAssociatedEnclaveCertificateIamRolesInput) + ) + await client.get_associated_enclave_certificate_iam_roles( + _request(GetAssociatedEnclaveCertificateIamRolesInputDict) + ) + await client.get_associated_ipv6_pool_cidrs(pool_id=_) + await client.get_associated_ipv6_pool_cidrs( + **_request(GetAssociatedIpv6PoolCidrsInputDict) + ) + await client.get_associated_ipv6_pool_cidrs( + _request(GetAssociatedIpv6PoolCidrsInput) + ) + await client.get_associated_ipv6_pool_cidrs( + _request(GetAssociatedIpv6PoolCidrsInputDict) + ) + await client.get_aws_network_performance_data() + await client.get_aws_network_performance_data( + **_request(GetAwsNetworkPerformanceDataInputDict) + ) + await client.get_aws_network_performance_data( + _request(GetAwsNetworkPerformanceDataInput) + ) + await client.get_aws_network_performance_data( + _request(GetAwsNetworkPerformanceDataInputDict) + ) + await client.get_capacity_manager_attributes() + await client.get_capacity_manager_attributes( + **_request(GetCapacityManagerAttributesInputDict) + ) + await client.get_capacity_manager_attributes( + _request(GetCapacityManagerAttributesInput) + ) + await client.get_capacity_manager_attributes( + _request(GetCapacityManagerAttributesInputDict) + ) + await client.get_capacity_manager_metric_data( + metric_names=_, start_time=_, end_time=_, period=_ + ) + await client.get_capacity_manager_metric_data( + **_request(GetCapacityManagerMetricDataInputDict) + ) + await client.get_capacity_manager_metric_data( + _request(GetCapacityManagerMetricDataInput) + ) + await client.get_capacity_manager_metric_data( + _request(GetCapacityManagerMetricDataInputDict) + ) + await client.get_capacity_manager_metric_dimensions( + group_by=_, start_time=_, end_time=_, metric_names=_ + ) + await client.get_capacity_manager_metric_dimensions( + **_request(GetCapacityManagerMetricDimensionsInputDict) + ) + await client.get_capacity_manager_metric_dimensions( + _request(GetCapacityManagerMetricDimensionsInput) + ) + await client.get_capacity_manager_metric_dimensions( + _request(GetCapacityManagerMetricDimensionsInputDict) + ) + await client.get_capacity_manager_monitored_tag_keys() + await client.get_capacity_manager_monitored_tag_keys( + **_request(GetCapacityManagerMonitoredTagKeysInputDict) + ) + await client.get_capacity_manager_monitored_tag_keys( + _request(GetCapacityManagerMonitoredTagKeysInput) + ) + await client.get_capacity_manager_monitored_tag_keys( + _request(GetCapacityManagerMonitoredTagKeysInputDict) + ) + await client.get_capacity_manager_supportability_scores( + market_type=_, + capacity_amount=_, + capacity_unit=_, + capacity_availability_zone_ids=_, + ) + await client.get_capacity_manager_supportability_scores( + **_request(GetCapacityManagerSupportabilityScoresInputDict) + ) + await client.get_capacity_manager_supportability_scores( + _request(GetCapacityManagerSupportabilityScoresInput) + ) + await client.get_capacity_manager_supportability_scores( + _request(GetCapacityManagerSupportabilityScoresInputDict) + ) + await client.get_capacity_reservation_usage(capacity_reservation_id=_) + await client.get_capacity_reservation_usage( + **_request(GetCapacityReservationUsageInputDict) + ) + await client.get_capacity_reservation_usage( + _request(GetCapacityReservationUsageInput) + ) + await client.get_capacity_reservation_usage( + _request(GetCapacityReservationUsageInputDict) + ) + await client.get_client_vpn_endpoint_authorization_policy(client_vpn_endpoint_id=_) + await client.get_client_vpn_endpoint_authorization_policy( + **_request(GetClientVpnEndpointAuthorizationPolicyInputDict) + ) + await client.get_client_vpn_endpoint_authorization_policy( + _request(GetClientVpnEndpointAuthorizationPolicyInput) + ) + await client.get_client_vpn_endpoint_authorization_policy( + _request(GetClientVpnEndpointAuthorizationPolicyInputDict) + ) + await client.get_coip_pool_usage(pool_id=_) + await client.get_coip_pool_usage(**_request(GetCoipPoolUsageInputDict)) + await client.get_coip_pool_usage(_request(GetCoipPoolUsageInput)) + await client.get_coip_pool_usage(_request(GetCoipPoolUsageInputDict)) + await client.get_console_output(instance_id=_) + await client.get_console_output(**_request(GetConsoleOutputInputDict)) + await client.get_console_output(_request(GetConsoleOutputInput)) + await client.get_console_output(_request(GetConsoleOutputInputDict)) + await client.get_console_screenshot(instance_id=_) + await client.get_console_screenshot(**_request(GetConsoleScreenshotInputDict)) + await client.get_console_screenshot(_request(GetConsoleScreenshotInput)) + await client.get_console_screenshot(_request(GetConsoleScreenshotInputDict)) + await client.get_declarative_policies_report_summary(report_id=_) + await client.get_declarative_policies_report_summary( + **_request(GetDeclarativePoliciesReportSummaryInputDict) + ) + await client.get_declarative_policies_report_summary( + _request(GetDeclarativePoliciesReportSummaryInput) + ) + await client.get_declarative_policies_report_summary( + _request(GetDeclarativePoliciesReportSummaryInputDict) + ) + await client.get_default_credit_specification(instance_family=_) + await client.get_default_credit_specification( + **_request(GetDefaultCreditSpecificationInputDict) + ) + await client.get_default_credit_specification( + _request(GetDefaultCreditSpecificationInput) + ) + await client.get_default_credit_specification( + _request(GetDefaultCreditSpecificationInputDict) + ) + await client.get_ebs_default_kms_key_id() + await client.get_ebs_default_kms_key_id(**_request(GetEbsDefaultKmsKeyIdInputDict)) + await client.get_ebs_default_kms_key_id(_request(GetEbsDefaultKmsKeyIdInput)) + await client.get_ebs_default_kms_key_id(_request(GetEbsDefaultKmsKeyIdInputDict)) + await client.get_ebs_encryption_by_default() + await client.get_ebs_encryption_by_default( + **_request(GetEbsEncryptionByDefaultInputDict) + ) + await client.get_ebs_encryption_by_default(_request(GetEbsEncryptionByDefaultInput)) + await client.get_ebs_encryption_by_default( + _request(GetEbsEncryptionByDefaultInputDict) + ) + await client.get_enabled_ipam_policy() + await client.get_enabled_ipam_policy(**_request(GetEnabledIpamPolicyInputDict)) + await client.get_enabled_ipam_policy(_request(GetEnabledIpamPolicyInput)) + await client.get_enabled_ipam_policy(_request(GetEnabledIpamPolicyInputDict)) + await client.get_flow_logs_integration_template( + flow_log_id=_, config_delivery_s3_destination_arn=_, integrate_services=_ + ) + await client.get_flow_logs_integration_template( + **_request(GetFlowLogsIntegrationTemplateInputDict) + ) + await client.get_flow_logs_integration_template( + _request(GetFlowLogsIntegrationTemplateInput) + ) + await client.get_flow_logs_integration_template( + _request(GetFlowLogsIntegrationTemplateInputDict) + ) + await client.get_groups_for_capacity_reservation(capacity_reservation_id=_) + await client.get_groups_for_capacity_reservation( + **_request(GetGroupsForCapacityReservationInputDict) + ) + await client.get_groups_for_capacity_reservation( + _request(GetGroupsForCapacityReservationInput) + ) + await client.get_groups_for_capacity_reservation( + _request(GetGroupsForCapacityReservationInputDict) + ) + await client.get_host_reservation_purchase_preview(host_id_set=_, offering_id=_) + await client.get_host_reservation_purchase_preview( + **_request(GetHostReservationPurchasePreviewInputDict) + ) + await client.get_host_reservation_purchase_preview( + _request(GetHostReservationPurchasePreviewInput) + ) + await client.get_host_reservation_purchase_preview( + _request(GetHostReservationPurchasePreviewInputDict) + ) + await client.get_image_ancestry(image_id=_) + await client.get_image_ancestry(**_request(GetImageAncestryInputDict)) + await client.get_image_ancestry(_request(GetImageAncestryInput)) + await client.get_image_ancestry(_request(GetImageAncestryInputDict)) + await client.get_image_block_public_access_state() + await client.get_image_block_public_access_state( + **_request(GetImageBlockPublicAccessStateInputDict) + ) + await client.get_image_block_public_access_state( + _request(GetImageBlockPublicAccessStateInput) + ) + await client.get_image_block_public_access_state( + _request(GetImageBlockPublicAccessStateInputDict) + ) + await client.get_image_findings(image_id=_) + await client.get_image_findings(**_request(GetImageFindingsInputDict)) + await client.get_image_findings(_request(GetImageFindingsInput)) + await client.get_image_findings(_request(GetImageFindingsInputDict)) + await client.get_instance_metadata_defaults() + await client.get_instance_metadata_defaults( + **_request(GetInstanceMetadataDefaultsInputDict) + ) + await client.get_instance_metadata_defaults( + _request(GetInstanceMetadataDefaultsInput) + ) + await client.get_instance_metadata_defaults( + _request(GetInstanceMetadataDefaultsInputDict) + ) + await client.get_instance_tpm_ek_pub(instance_id=_, key_type=_, key_format=_) + await client.get_instance_tpm_ek_pub(**_request(GetInstanceTpmEkPubInputDict)) + await client.get_instance_tpm_ek_pub(_request(GetInstanceTpmEkPubInput)) + await client.get_instance_tpm_ek_pub(_request(GetInstanceTpmEkPubInputDict)) + await client.get_instance_types_from_instance_requirements( + architecture_types=_, virtualization_types=_, instance_requirements=_ + ) + await client.get_instance_types_from_instance_requirements( + **_request(GetInstanceTypesFromInstanceRequirementsInputDict) + ) + await client.get_instance_types_from_instance_requirements( + _request(GetInstanceTypesFromInstanceRequirementsInput) + ) + await client.get_instance_types_from_instance_requirements( + _request(GetInstanceTypesFromInstanceRequirementsInputDict) + ) + await client.get_instance_uefi_data(instance_id=_) + await client.get_instance_uefi_data(**_request(GetInstanceUefiDataInputDict)) + await client.get_instance_uefi_data(_request(GetInstanceUefiDataInput)) + await client.get_instance_uefi_data(_request(GetInstanceUefiDataInputDict)) + await client.get_ipam_address_history(cidr=_, ipam_scope_id=_) + await client.get_ipam_address_history(**_request(GetIpamAddressHistoryInputDict)) + await client.get_ipam_address_history(_request(GetIpamAddressHistoryInput)) + await client.get_ipam_address_history(_request(GetIpamAddressHistoryInputDict)) + await client.get_ipam_discovered_accounts( + ipam_resource_discovery_id=_, discovery_region=_ + ) + await client.get_ipam_discovered_accounts( + **_request(GetIpamDiscoveredAccountsInputDict) + ) + await client.get_ipam_discovered_accounts(_request(GetIpamDiscoveredAccountsInput)) + await client.get_ipam_discovered_accounts( + _request(GetIpamDiscoveredAccountsInputDict) + ) + await client.get_ipam_discovered_public_addresses( + ipam_resource_discovery_id=_, address_region=_ + ) + await client.get_ipam_discovered_public_addresses( + **_request(GetIpamDiscoveredPublicAddressesInputDict) + ) + await client.get_ipam_discovered_public_addresses( + _request(GetIpamDiscoveredPublicAddressesInput) + ) + await client.get_ipam_discovered_public_addresses( + _request(GetIpamDiscoveredPublicAddressesInputDict) + ) + await client.get_ipam_discovered_resource_cidrs( + ipam_resource_discovery_id=_, resource_region=_ + ) + await client.get_ipam_discovered_resource_cidrs( + **_request(GetIpamDiscoveredResourceCidrsInputDict) + ) + await client.get_ipam_discovered_resource_cidrs( + _request(GetIpamDiscoveredResourceCidrsInput) + ) + await client.get_ipam_discovered_resource_cidrs( + _request(GetIpamDiscoveredResourceCidrsInputDict) + ) + await client.get_ipam_discovered_routes( + ipam_resource_discovery_id=_, resource_region=_ + ) + await client.get_ipam_discovered_routes( + **_request(GetIpamDiscoveredRoutesInputDict) + ) + await client.get_ipam_discovered_routes(_request(GetIpamDiscoveredRoutesInput)) + await client.get_ipam_discovered_routes(_request(GetIpamDiscoveredRoutesInputDict)) + await client.get_ipam_internet_registry_association_asns( + ipam_internet_registry_association_id=_ + ) + await client.get_ipam_internet_registry_association_asns( + **_request(GetIpamInternetRegistryAssociationAsnsInputDict) + ) + await client.get_ipam_internet_registry_association_asns( + _request(GetIpamInternetRegistryAssociationAsnsInput) + ) + await client.get_ipam_internet_registry_association_asns( + _request(GetIpamInternetRegistryAssociationAsnsInputDict) + ) + await client.get_ipam_internet_registry_association_cidrs( + ipam_internet_registry_association_id=_ + ) + await client.get_ipam_internet_registry_association_cidrs( + **_request(GetIpamInternetRegistryAssociationCidrsInputDict) + ) + await client.get_ipam_internet_registry_association_cidrs( + _request(GetIpamInternetRegistryAssociationCidrsInput) + ) + await client.get_ipam_internet_registry_association_cidrs( + _request(GetIpamInternetRegistryAssociationCidrsInputDict) + ) + await client.get_ipam_policy_allocation_rules(ipam_policy_id=_) + await client.get_ipam_policy_allocation_rules( + **_request(GetIpamPolicyAllocationRulesInputDict) + ) + await client.get_ipam_policy_allocation_rules( + _request(GetIpamPolicyAllocationRulesInput) + ) + await client.get_ipam_policy_allocation_rules( + _request(GetIpamPolicyAllocationRulesInputDict) + ) + await client.get_ipam_policy_organization_targets(ipam_policy_id=_) + await client.get_ipam_policy_organization_targets( + **_request(GetIpamPolicyOrganizationTargetsInputDict) + ) + await client.get_ipam_policy_organization_targets( + _request(GetIpamPolicyOrganizationTargetsInput) + ) + await client.get_ipam_policy_organization_targets( + _request(GetIpamPolicyOrganizationTargetsInputDict) + ) + await client.get_ipam_pool_allocations(ipam_pool_id=_) + await client.get_ipam_pool_allocations(**_request(GetIpamPoolAllocationsInputDict)) + await client.get_ipam_pool_allocations(_request(GetIpamPoolAllocationsInput)) + await client.get_ipam_pool_allocations(_request(GetIpamPoolAllocationsInputDict)) + await client.get_ipam_pool_cidrs(ipam_pool_id=_) + await client.get_ipam_pool_cidrs(**_request(GetIpamPoolCidrsInputDict)) + await client.get_ipam_pool_cidrs(_request(GetIpamPoolCidrsInput)) + await client.get_ipam_pool_cidrs(_request(GetIpamPoolCidrsInputDict)) + await client.get_ipam_prefix_list_resolver_rules(ipam_prefix_list_resolver_id=_) + await client.get_ipam_prefix_list_resolver_rules( + **_request(GetIpamPrefixListResolverRulesInputDict) + ) + await client.get_ipam_prefix_list_resolver_rules( + _request(GetIpamPrefixListResolverRulesInput) + ) + await client.get_ipam_prefix_list_resolver_rules( + _request(GetIpamPrefixListResolverRulesInputDict) + ) + await client.get_ipam_prefix_list_resolver_version_entries( + ipam_prefix_list_resolver_id=_, ipam_prefix_list_resolver_version=_ + ) + await client.get_ipam_prefix_list_resolver_version_entries( + **_request(GetIpamPrefixListResolverVersionEntriesInputDict) + ) + await client.get_ipam_prefix_list_resolver_version_entries( + _request(GetIpamPrefixListResolverVersionEntriesInput) + ) + await client.get_ipam_prefix_list_resolver_version_entries( + _request(GetIpamPrefixListResolverVersionEntriesInputDict) + ) + await client.get_ipam_prefix_list_resolver_versions(ipam_prefix_list_resolver_id=_) + await client.get_ipam_prefix_list_resolver_versions( + **_request(GetIpamPrefixListResolverVersionsInputDict) + ) + await client.get_ipam_prefix_list_resolver_versions( + _request(GetIpamPrefixListResolverVersionsInput) + ) + await client.get_ipam_prefix_list_resolver_versions( + _request(GetIpamPrefixListResolverVersionsInputDict) + ) + await client.get_ipam_resource_cidrs(ipam_scope_id=_) + await client.get_ipam_resource_cidrs(**_request(GetIpamResourceCidrsInputDict)) + await client.get_ipam_resource_cidrs(_request(GetIpamResourceCidrsInput)) + await client.get_ipam_resource_cidrs(_request(GetIpamResourceCidrsInputDict)) + await client.get_ipam_route_origin_authorizations( + ipam_internet_registry_association_id=_ + ) + await client.get_ipam_route_origin_authorizations( + **_request(GetIpamRouteOriginAuthorizationsInputDict) + ) + await client.get_ipam_route_origin_authorizations( + _request(GetIpamRouteOriginAuthorizationsInput) + ) + await client.get_ipam_route_origin_authorizations( + _request(GetIpamRouteOriginAuthorizationsInputDict) + ) + await client.get_ipam_route_protection_findings(ipam_id=_) + await client.get_ipam_route_protection_findings( + **_request(GetIpamRouteProtectionFindingsInputDict) + ) + await client.get_ipam_route_protection_findings( + _request(GetIpamRouteProtectionFindingsInput) + ) + await client.get_ipam_route_protection_findings( + _request(GetIpamRouteProtectionFindingsInputDict) + ) + await client.get_ipam_routing_policy_registration_deltas( + ipam_internet_registry_association_id=_ + ) + await client.get_ipam_routing_policy_registration_deltas( + **_request(GetIpamRoutingPolicyRegistrationDeltasInputDict) + ) + await client.get_ipam_routing_policy_registration_deltas( + _request(GetIpamRoutingPolicyRegistrationDeltasInput) + ) + await client.get_ipam_routing_policy_registration_deltas( + _request(GetIpamRoutingPolicyRegistrationDeltasInputDict) + ) + await client.get_ipam_routing_policy_registrations( + ipam_internet_registry_association_id=_ + ) + await client.get_ipam_routing_policy_registrations( + **_request(GetIpamRoutingPolicyRegistrationsInputDict) + ) + await client.get_ipam_routing_policy_registrations( + _request(GetIpamRoutingPolicyRegistrationsInput) + ) + await client.get_ipam_routing_policy_registrations( + _request(GetIpamRoutingPolicyRegistrationsInputDict) + ) + await client.get_launch_template_data(instance_id=_) + await client.get_launch_template_data(**_request(GetLaunchTemplateDataInputDict)) + await client.get_launch_template_data(_request(GetLaunchTemplateDataInput)) + await client.get_launch_template_data(_request(GetLaunchTemplateDataInputDict)) + await client.get_managed_prefix_list_associations(prefix_list_id=_) + await client.get_managed_prefix_list_associations( + **_request(GetManagedPrefixListAssociationsInputDict) + ) + await client.get_managed_prefix_list_associations( + _request(GetManagedPrefixListAssociationsInput) + ) + await client.get_managed_prefix_list_associations( + _request(GetManagedPrefixListAssociationsInputDict) + ) + await client.get_managed_prefix_list_entries(prefix_list_id=_) + await client.get_managed_prefix_list_entries( + **_request(GetManagedPrefixListEntriesInputDict) + ) + await client.get_managed_prefix_list_entries( + _request(GetManagedPrefixListEntriesInput) + ) + await client.get_managed_prefix_list_entries( + _request(GetManagedPrefixListEntriesInputDict) + ) + await client.get_managed_resource_visibility() + await client.get_managed_resource_visibility( + **_request(GetManagedResourceVisibilityInputDict) + ) + await client.get_managed_resource_visibility( + _request(GetManagedResourceVisibilityInput) + ) + await client.get_managed_resource_visibility( + _request(GetManagedResourceVisibilityInputDict) + ) + await client.get_network_insights_access_scope_analysis_findings( + network_insights_access_scope_analysis_id=_ + ) + await client.get_network_insights_access_scope_analysis_findings( + **_request(GetNetworkInsightsAccessScopeAnalysisFindingsInputDict) + ) + await client.get_network_insights_access_scope_analysis_findings( + _request(GetNetworkInsightsAccessScopeAnalysisFindingsInput) + ) + await client.get_network_insights_access_scope_analysis_findings( + _request(GetNetworkInsightsAccessScopeAnalysisFindingsInputDict) + ) + await client.get_network_insights_access_scope_content( + network_insights_access_scope_id=_ + ) + await client.get_network_insights_access_scope_content( + **_request(GetNetworkInsightsAccessScopeContentInputDict) + ) + await client.get_network_insights_access_scope_content( + _request(GetNetworkInsightsAccessScopeContentInput) + ) + await client.get_network_insights_access_scope_content( + _request(GetNetworkInsightsAccessScopeContentInputDict) + ) + await client.get_password_data(instance_id=_) + await client.get_password_data(**_request(GetPasswordDataInputDict)) + await client.get_password_data(_request(GetPasswordDataInput)) + await client.get_password_data(_request(GetPasswordDataInputDict)) + await client.get_reserved_instances_exchange_quote(reserved_instance_ids=_) + await client.get_reserved_instances_exchange_quote( + **_request(GetReservedInstancesExchangeQuoteInputDict) + ) + await client.get_reserved_instances_exchange_quote( + _request(GetReservedInstancesExchangeQuoteInput) + ) + await client.get_reserved_instances_exchange_quote( + _request(GetReservedInstancesExchangeQuoteInputDict) + ) + await client.get_route_server_associations(route_server_id=_) + await client.get_route_server_associations( + **_request(GetRouteServerAssociationsInputDict) + ) + await client.get_route_server_associations( + _request(GetRouteServerAssociationsInput) + ) + await client.get_route_server_associations( + _request(GetRouteServerAssociationsInputDict) + ) + await client.get_route_server_propagations(route_server_id=_) + await client.get_route_server_propagations( + **_request(GetRouteServerPropagationsInputDict) + ) + await client.get_route_server_propagations( + _request(GetRouteServerPropagationsInput) + ) + await client.get_route_server_propagations( + _request(GetRouteServerPropagationsInputDict) + ) + await client.get_route_server_routing_database(route_server_id=_) + await client.get_route_server_routing_database( + **_request(GetRouteServerRoutingDatabaseInputDict) + ) + await client.get_route_server_routing_database( + _request(GetRouteServerRoutingDatabaseInput) + ) + await client.get_route_server_routing_database( + _request(GetRouteServerRoutingDatabaseInputDict) + ) + await client.get_security_groups_for_vpc(vpc_id=_) + await client.get_security_groups_for_vpc( + **_request(GetSecurityGroupsForVpcInputDict) + ) + await client.get_security_groups_for_vpc(_request(GetSecurityGroupsForVpcInput)) + await client.get_security_groups_for_vpc(_request(GetSecurityGroupsForVpcInputDict)) + await client.get_serial_console_access_status() + await client.get_serial_console_access_status( + **_request(GetSerialConsoleAccessStatusInputDict) + ) + await client.get_serial_console_access_status( + _request(GetSerialConsoleAccessStatusInput) + ) + await client.get_serial_console_access_status( + _request(GetSerialConsoleAccessStatusInputDict) + ) + await client.get_snapshot_block_public_access_state() + await client.get_snapshot_block_public_access_state( + **_request(GetSnapshotBlockPublicAccessStateInputDict) + ) + await client.get_snapshot_block_public_access_state( + _request(GetSnapshotBlockPublicAccessStateInput) + ) + await client.get_snapshot_block_public_access_state( + _request(GetSnapshotBlockPublicAccessStateInputDict) + ) + await client.get_spot_placement_scores(target_capacity=_) + await client.get_spot_placement_scores(**_request(GetSpotPlacementScoresInputDict)) + await client.get_spot_placement_scores(_request(GetSpotPlacementScoresInput)) + await client.get_spot_placement_scores(_request(GetSpotPlacementScoresInputDict)) + await client.get_subnet_cidr_reservations(subnet_id=_) + await client.get_subnet_cidr_reservations( + **_request(GetSubnetCidrReservationsInputDict) + ) + await client.get_subnet_cidr_reservations(_request(GetSubnetCidrReservationsInput)) + await client.get_subnet_cidr_reservations( + _request(GetSubnetCidrReservationsInputDict) + ) + await client.get_transit_gateway_attachment_nat_configuration( + transit_gateway_attachment_id=_ + ) + await client.get_transit_gateway_attachment_nat_configuration( + **_request(GetTransitGatewayAttachmentNatConfigurationInputDict) + ) + await client.get_transit_gateway_attachment_nat_configuration( + _request(GetTransitGatewayAttachmentNatConfigurationInput) + ) + await client.get_transit_gateway_attachment_nat_configuration( + _request(GetTransitGatewayAttachmentNatConfigurationInputDict) + ) + await client.get_transit_gateway_attachment_propagations( + transit_gateway_attachment_id=_ + ) + await client.get_transit_gateway_attachment_propagations( + **_request(GetTransitGatewayAttachmentPropagationsInputDict) + ) + await client.get_transit_gateway_attachment_propagations( + _request(GetTransitGatewayAttachmentPropagationsInput) + ) + await client.get_transit_gateway_attachment_propagations( + _request(GetTransitGatewayAttachmentPropagationsInputDict) + ) + await client.get_transit_gateway_metering_policy_entries( + transit_gateway_metering_policy_id=_ + ) + await client.get_transit_gateway_metering_policy_entries( + **_request(GetTransitGatewayMeteringPolicyEntriesInputDict) + ) + await client.get_transit_gateway_metering_policy_entries( + _request(GetTransitGatewayMeteringPolicyEntriesInput) + ) + await client.get_transit_gateway_metering_policy_entries( + _request(GetTransitGatewayMeteringPolicyEntriesInputDict) + ) + await client.get_transit_gateway_multicast_domain_associations( + transit_gateway_multicast_domain_id=_ + ) + await client.get_transit_gateway_multicast_domain_associations( + **_request(GetTransitGatewayMulticastDomainAssociationsInputDict) + ) + await client.get_transit_gateway_multicast_domain_associations( + _request(GetTransitGatewayMulticastDomainAssociationsInput) + ) + await client.get_transit_gateway_multicast_domain_associations( + _request(GetTransitGatewayMulticastDomainAssociationsInputDict) + ) + await client.get_transit_gateway_policy_table_associations( + transit_gateway_policy_table_id=_ + ) + await client.get_transit_gateway_policy_table_associations( + **_request(GetTransitGatewayPolicyTableAssociationsInputDict) + ) + await client.get_transit_gateway_policy_table_associations( + _request(GetTransitGatewayPolicyTableAssociationsInput) + ) + await client.get_transit_gateway_policy_table_associations( + _request(GetTransitGatewayPolicyTableAssociationsInputDict) + ) + await client.get_transit_gateway_policy_table_entries( + transit_gateway_policy_table_id=_ + ) + await client.get_transit_gateway_policy_table_entries( + **_request(GetTransitGatewayPolicyTableEntriesInputDict) + ) + await client.get_transit_gateway_policy_table_entries( + _request(GetTransitGatewayPolicyTableEntriesInput) + ) + await client.get_transit_gateway_policy_table_entries( + _request(GetTransitGatewayPolicyTableEntriesInputDict) + ) + await client.get_transit_gateway_prefix_list_references( + transit_gateway_route_table_id=_ + ) + await client.get_transit_gateway_prefix_list_references( + **_request(GetTransitGatewayPrefixListReferencesInputDict) + ) + await client.get_transit_gateway_prefix_list_references( + _request(GetTransitGatewayPrefixListReferencesInput) + ) + await client.get_transit_gateway_prefix_list_references( + _request(GetTransitGatewayPrefixListReferencesInputDict) + ) + await client.get_transit_gateway_route_table_associations( + transit_gateway_route_table_id=_ + ) + await client.get_transit_gateway_route_table_associations( + **_request(GetTransitGatewayRouteTableAssociationsInputDict) + ) + await client.get_transit_gateway_route_table_associations( + _request(GetTransitGatewayRouteTableAssociationsInput) + ) + await client.get_transit_gateway_route_table_associations( + _request(GetTransitGatewayRouteTableAssociationsInputDict) + ) + await client.get_transit_gateway_route_table_propagations( + transit_gateway_route_table_id=_ + ) + await client.get_transit_gateway_route_table_propagations( + **_request(GetTransitGatewayRouteTablePropagationsInputDict) + ) + await client.get_transit_gateway_route_table_propagations( + _request(GetTransitGatewayRouteTablePropagationsInput) + ) + await client.get_transit_gateway_route_table_propagations( + _request(GetTransitGatewayRouteTablePropagationsInputDict) + ) + await client.get_verified_access_endpoint_policy(verified_access_endpoint_id=_) + await client.get_verified_access_endpoint_policy( + **_request(GetVerifiedAccessEndpointPolicyInputDict) + ) + await client.get_verified_access_endpoint_policy( + _request(GetVerifiedAccessEndpointPolicyInput) + ) + await client.get_verified_access_endpoint_policy( + _request(GetVerifiedAccessEndpointPolicyInputDict) + ) + await client.get_verified_access_endpoint_targets(verified_access_endpoint_id=_) + await client.get_verified_access_endpoint_targets( + **_request(GetVerifiedAccessEndpointTargetsInputDict) + ) + await client.get_verified_access_endpoint_targets( + _request(GetVerifiedAccessEndpointTargetsInput) + ) + await client.get_verified_access_endpoint_targets( + _request(GetVerifiedAccessEndpointTargetsInputDict) + ) + await client.get_verified_access_group_policy(verified_access_group_id=_) + await client.get_verified_access_group_policy( + **_request(GetVerifiedAccessGroupPolicyInputDict) + ) + await client.get_verified_access_group_policy( + _request(GetVerifiedAccessGroupPolicyInput) + ) + await client.get_verified_access_group_policy( + _request(GetVerifiedAccessGroupPolicyInputDict) + ) + await client.get_vpc_resources_blocking_encryption_enforcement(vpc_id=_) + await client.get_vpc_resources_blocking_encryption_enforcement( + **_request(GetVpcResourcesBlockingEncryptionEnforcementInputDict) + ) + await client.get_vpc_resources_blocking_encryption_enforcement( + _request(GetVpcResourcesBlockingEncryptionEnforcementInput) + ) + await client.get_vpc_resources_blocking_encryption_enforcement( + _request(GetVpcResourcesBlockingEncryptionEnforcementInputDict) + ) + await client.get_vpn_connection_device_sample_configuration( + vpn_connection_id=_, vpn_connection_device_type_id=_ + ) + await client.get_vpn_connection_device_sample_configuration( + **_request(GetVpnConnectionDeviceSampleConfigurationInputDict) + ) + await client.get_vpn_connection_device_sample_configuration( + _request(GetVpnConnectionDeviceSampleConfigurationInput) + ) + await client.get_vpn_connection_device_sample_configuration( + _request(GetVpnConnectionDeviceSampleConfigurationInputDict) + ) + await client.get_vpn_connection_device_types() + await client.get_vpn_connection_device_types( + **_request(GetVpnConnectionDeviceTypesInputDict) + ) + await client.get_vpn_connection_device_types( + _request(GetVpnConnectionDeviceTypesInput) + ) + await client.get_vpn_connection_device_types( + _request(GetVpnConnectionDeviceTypesInputDict) + ) + await client.get_vpn_tunnel_replacement_status( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_ + ) + await client.get_vpn_tunnel_replacement_status( + **_request(GetVpnTunnelReplacementStatusInputDict) + ) + await client.get_vpn_tunnel_replacement_status( + _request(GetVpnTunnelReplacementStatusInput) + ) + await client.get_vpn_tunnel_replacement_status( + _request(GetVpnTunnelReplacementStatusInputDict) + ) + await client.import_client_vpn_client_certificate_revocation_list( + client_vpn_endpoint_id=_, certificate_revocation_list=_ + ) + await client.import_client_vpn_client_certificate_revocation_list( + **_request(ImportClientVpnClientCertificateRevocationListInputDict) + ) + await client.import_client_vpn_client_certificate_revocation_list( + _request(ImportClientVpnClientCertificateRevocationListInput) + ) + await client.import_client_vpn_client_certificate_revocation_list( + _request(ImportClientVpnClientCertificateRevocationListInputDict) + ) + await client.import_image() + await client.import_image(**_request(ImportImageInputDict)) + await client.import_image(_request(ImportImageInput)) + await client.import_image(_request(ImportImageInputDict)) + await client.import_instance(platform=_) + await client.import_instance(**_request(ImportInstanceInputDict)) + await client.import_instance(_request(ImportInstanceInput)) + await client.import_instance(_request(ImportInstanceInputDict)) + await client.import_key_pair(key_name=_, public_key_material=_) + await client.import_key_pair(**_request(ImportKeyPairInputDict)) + await client.import_key_pair(_request(ImportKeyPairInput)) + await client.import_key_pair(_request(ImportKeyPairInputDict)) + await client.import_snapshot() + await client.import_snapshot(**_request(ImportSnapshotInputDict)) + await client.import_snapshot(_request(ImportSnapshotInput)) + await client.import_snapshot(_request(ImportSnapshotInputDict)) + await client.import_volume(image=_, volume=_) + await client.import_volume(**_request(ImportVolumeInputDict)) + await client.import_volume(_request(ImportVolumeInput)) + await client.import_volume(_request(ImportVolumeInputDict)) + await client.list_images_in_recycle_bin() + await client.list_images_in_recycle_bin(**_request(ListImagesInRecycleBinInputDict)) + await client.list_images_in_recycle_bin(_request(ListImagesInRecycleBinInput)) + await client.list_images_in_recycle_bin(_request(ListImagesInRecycleBinInputDict)) + await client.list_snapshots_in_recycle_bin() + await client.list_snapshots_in_recycle_bin( + **_request(ListSnapshotsInRecycleBinInputDict) + ) + await client.list_snapshots_in_recycle_bin(_request(ListSnapshotsInRecycleBinInput)) + await client.list_snapshots_in_recycle_bin( + _request(ListSnapshotsInRecycleBinInputDict) + ) + await client.list_volumes_in_recycle_bin() + await client.list_volumes_in_recycle_bin( + **_request(ListVolumesInRecycleBinInputDict) + ) + await client.list_volumes_in_recycle_bin(_request(ListVolumesInRecycleBinInput)) + await client.list_volumes_in_recycle_bin(_request(ListVolumesInRecycleBinInputDict)) + await client.lock_snapshot(snapshot_id=_, lock_mode=_) + await client.lock_snapshot(**_request(LockSnapshotInputDict)) + await client.lock_snapshot(_request(LockSnapshotInput)) + await client.lock_snapshot(_request(LockSnapshotInputDict)) + await client.modify_account_vpc_encryption_control() + await client.modify_account_vpc_encryption_control( + **_request(ModifyAccountVpcEncryptionControlInputDict) + ) + await client.modify_account_vpc_encryption_control( + _request(ModifyAccountVpcEncryptionControlInput) + ) + await client.modify_account_vpc_encryption_control( + _request(ModifyAccountVpcEncryptionControlInputDict) + ) + await client.modify_address_attribute(allocation_id=_) + await client.modify_address_attribute(**_request(ModifyAddressAttributeInputDict)) + await client.modify_address_attribute(_request(ModifyAddressAttributeInput)) + await client.modify_address_attribute(_request(ModifyAddressAttributeInputDict)) + await client.modify_application_status_check(application_status_check_id=_) + await client.modify_application_status_check( + **_request(ModifyApplicationStatusCheckInputDict) + ) + await client.modify_application_status_check( + _request(ModifyApplicationStatusCheckInput) + ) + await client.modify_application_status_check( + _request(ModifyApplicationStatusCheckInputDict) + ) + await client.modify_availability_zone_group(group_name=_, opt_in_status=_) + await client.modify_availability_zone_group( + **_request(ModifyAvailabilityZoneGroupInputDict) + ) + await client.modify_availability_zone_group( + _request(ModifyAvailabilityZoneGroupInput) + ) + await client.modify_availability_zone_group( + _request(ModifyAvailabilityZoneGroupInputDict) + ) + await client.modify_capacity_reservation(capacity_reservation_id=_) + await client.modify_capacity_reservation( + **_request(ModifyCapacityReservationInputDict) + ) + await client.modify_capacity_reservation(_request(ModifyCapacityReservationInput)) + await client.modify_capacity_reservation( + _request(ModifyCapacityReservationInputDict) + ) + await client.modify_capacity_reservation_fleet(capacity_reservation_fleet_id=_) + await client.modify_capacity_reservation_fleet( + **_request(ModifyCapacityReservationFleetInputDict) + ) + await client.modify_capacity_reservation_fleet( + _request(ModifyCapacityReservationFleetInput) + ) + await client.modify_capacity_reservation_fleet( + _request(ModifyCapacityReservationFleetInputDict) + ) + await client.modify_client_vpn_endpoint(client_vpn_endpoint_id=_) + await client.modify_client_vpn_endpoint( + **_request(ModifyClientVpnEndpointInputDict) + ) + await client.modify_client_vpn_endpoint(_request(ModifyClientVpnEndpointInput)) + await client.modify_client_vpn_endpoint(_request(ModifyClientVpnEndpointInputDict)) + await client.modify_client_vpn_endpoint_authorization_policy( + client_vpn_endpoint_id=_ + ) + await client.modify_client_vpn_endpoint_authorization_policy( + **_request(ModifyClientVpnEndpointAuthorizationPolicyInputDict) + ) + await client.modify_client_vpn_endpoint_authorization_policy( + _request(ModifyClientVpnEndpointAuthorizationPolicyInput) + ) + await client.modify_client_vpn_endpoint_authorization_policy( + _request(ModifyClientVpnEndpointAuthorizationPolicyInputDict) + ) + await client.modify_default_credit_specification(instance_family=_, cpu_credits=_) + await client.modify_default_credit_specification( + **_request(ModifyDefaultCreditSpecificationInputDict) + ) + await client.modify_default_credit_specification( + _request(ModifyDefaultCreditSpecificationInput) + ) + await client.modify_default_credit_specification( + _request(ModifyDefaultCreditSpecificationInputDict) + ) + await client.modify_ebs_default_kms_key_id(kms_key_id=_) + await client.modify_ebs_default_kms_key_id( + **_request(ModifyEbsDefaultKmsKeyIdInputDict) + ) + await client.modify_ebs_default_kms_key_id(_request(ModifyEbsDefaultKmsKeyIdInput)) + await client.modify_ebs_default_kms_key_id( + _request(ModifyEbsDefaultKmsKeyIdInputDict) + ) + await client.modify_fleet(fleet_id=_) + await client.modify_fleet(**_request(ModifyFleetInputDict)) + await client.modify_fleet(_request(ModifyFleetInput)) + await client.modify_fleet(_request(ModifyFleetInputDict)) + await client.modify_fpga_image_attribute(fpga_image_id=_) + await client.modify_fpga_image_attribute( + **_request(ModifyFpgaImageAttributeInputDict) + ) + await client.modify_fpga_image_attribute(_request(ModifyFpgaImageAttributeInput)) + await client.modify_fpga_image_attribute( + _request(ModifyFpgaImageAttributeInputDict) + ) + await client.modify_hosts(host_ids=_) + await client.modify_hosts(**_request(ModifyHostsInputDict)) + await client.modify_hosts(_request(ModifyHostsInput)) + await client.modify_hosts(_request(ModifyHostsInputDict)) + await client.modify_identity_id_format(resource=_, use_long_ids=_, principal_arn=_) + await client.modify_identity_id_format(**_request(ModifyIdentityIdFormatInputDict)) + await client.modify_identity_id_format(_request(ModifyIdentityIdFormatInput)) + await client.modify_identity_id_format(_request(ModifyIdentityIdFormatInputDict)) + await client.modify_id_format(resource=_, use_long_ids=_) + await client.modify_id_format(**_request(ModifyIdFormatInputDict)) + await client.modify_id_format(_request(ModifyIdFormatInput)) + await client.modify_id_format(_request(ModifyIdFormatInputDict)) + await client.modify_image_attribute(image_id=_) + await client.modify_image_attribute(**_request(ModifyImageAttributeInputDict)) + await client.modify_image_attribute(_request(ModifyImageAttributeInput)) + await client.modify_image_attribute(_request(ModifyImageAttributeInputDict)) + await client.modify_instance_attribute(instance_id=_) + await client.modify_instance_attribute(**_request(ModifyInstanceAttributeInputDict)) + await client.modify_instance_attribute(_request(ModifyInstanceAttributeInput)) + await client.modify_instance_attribute(_request(ModifyInstanceAttributeInputDict)) + await client.modify_instance_capacity_reservation_attributes( + instance_id=_, capacity_reservation_specification=_ + ) + await client.modify_instance_capacity_reservation_attributes( + **_request(ModifyInstanceCapacityReservationAttributesInputDict) + ) + await client.modify_instance_capacity_reservation_attributes( + _request(ModifyInstanceCapacityReservationAttributesInput) + ) + await client.modify_instance_capacity_reservation_attributes( + _request(ModifyInstanceCapacityReservationAttributesInputDict) + ) + await client.modify_instance_connect_endpoint(instance_connect_endpoint_id=_) + await client.modify_instance_connect_endpoint( + **_request(ModifyInstanceConnectEndpointInputDict) + ) + await client.modify_instance_connect_endpoint( + _request(ModifyInstanceConnectEndpointInput) + ) + await client.modify_instance_connect_endpoint( + _request(ModifyInstanceConnectEndpointInputDict) + ) + await client.modify_instance_cpu_options(instance_id=_) + await client.modify_instance_cpu_options( + **_request(ModifyInstanceCpuOptionsInputDict) + ) + await client.modify_instance_cpu_options(_request(ModifyInstanceCpuOptionsInput)) + await client.modify_instance_cpu_options( + _request(ModifyInstanceCpuOptionsInputDict) + ) + await client.modify_instance_credit_specification(instance_credit_specifications=_) + await client.modify_instance_credit_specification( + **_request(ModifyInstanceCreditSpecificationInputDict) + ) + await client.modify_instance_credit_specification( + _request(ModifyInstanceCreditSpecificationInput) + ) + await client.modify_instance_credit_specification( + _request(ModifyInstanceCreditSpecificationInputDict) + ) + await client.modify_instance_event_start_time( + instance_id=_, instance_event_id=_, not_before=_ + ) + await client.modify_instance_event_start_time( + **_request(ModifyInstanceEventStartTimeInputDict) + ) + await client.modify_instance_event_start_time( + _request(ModifyInstanceEventStartTimeInput) + ) + await client.modify_instance_event_start_time( + _request(ModifyInstanceEventStartTimeInputDict) + ) + await client.modify_instance_event_window(instance_event_window_id=_) + await client.modify_instance_event_window( + **_request(ModifyInstanceEventWindowInputDict) + ) + await client.modify_instance_event_window(_request(ModifyInstanceEventWindowInput)) + await client.modify_instance_event_window( + _request(ModifyInstanceEventWindowInputDict) + ) + await client.modify_instance_maintenance_options(instance_id=_) + await client.modify_instance_maintenance_options( + **_request(ModifyInstanceMaintenanceOptionsInputDict) + ) + await client.modify_instance_maintenance_options( + _request(ModifyInstanceMaintenanceOptionsInput) + ) + await client.modify_instance_maintenance_options( + _request(ModifyInstanceMaintenanceOptionsInputDict) + ) + await client.modify_instance_metadata_defaults() + await client.modify_instance_metadata_defaults( + **_request(ModifyInstanceMetadataDefaultsInputDict) + ) + await client.modify_instance_metadata_defaults( + _request(ModifyInstanceMetadataDefaultsInput) + ) + await client.modify_instance_metadata_defaults( + _request(ModifyInstanceMetadataDefaultsInputDict) + ) + await client.modify_instance_metadata_options(instance_id=_) + await client.modify_instance_metadata_options( + **_request(ModifyInstanceMetadataOptionsInputDict) + ) + await client.modify_instance_metadata_options( + _request(ModifyInstanceMetadataOptionsInput) + ) + await client.modify_instance_metadata_options( + _request(ModifyInstanceMetadataOptionsInputDict) + ) + await client.modify_instance_network_performance_options( + instance_id=_, bandwidth_weighting=_ + ) + await client.modify_instance_network_performance_options( + **_request(ModifyInstanceNetworkPerformanceOptionsInputDict) + ) + await client.modify_instance_network_performance_options( + _request(ModifyInstanceNetworkPerformanceOptionsInput) + ) + await client.modify_instance_network_performance_options( + _request(ModifyInstanceNetworkPerformanceOptionsInputDict) + ) + await client.modify_instance_placement(instance_id=_) + await client.modify_instance_placement(**_request(ModifyInstancePlacementInputDict)) + await client.modify_instance_placement(_request(ModifyInstancePlacementInput)) + await client.modify_instance_placement(_request(ModifyInstancePlacementInputDict)) + await client.modify_ipam(ipam_id=_) + await client.modify_ipam(**_request(ModifyIpamInputDict)) + await client.modify_ipam(_request(ModifyIpamInput)) + await client.modify_ipam(_request(ModifyIpamInputDict)) + await client.modify_ipam_policy_allocation_rules( + ipam_policy_id=_, locale=_, resource_type=_ + ) + await client.modify_ipam_policy_allocation_rules( + **_request(ModifyIpamPolicyAllocationRulesInputDict) + ) + await client.modify_ipam_policy_allocation_rules( + _request(ModifyIpamPolicyAllocationRulesInput) + ) + await client.modify_ipam_policy_allocation_rules( + _request(ModifyIpamPolicyAllocationRulesInputDict) + ) + await client.modify_ipam_pool(ipam_pool_id=_) + await client.modify_ipam_pool(**_request(ModifyIpamPoolInputDict)) + await client.modify_ipam_pool(_request(ModifyIpamPoolInput)) + await client.modify_ipam_pool(_request(ModifyIpamPoolInputDict)) + await client.modify_ipam_pool_allocation(ipam_pool_allocation_id=_) + await client.modify_ipam_pool_allocation( + **_request(ModifyIpamPoolAllocationInputDict) + ) + await client.modify_ipam_pool_allocation(_request(ModifyIpamPoolAllocationInput)) + await client.modify_ipam_pool_allocation( + _request(ModifyIpamPoolAllocationInputDict) + ) + await client.modify_ipam_prefix_list_resolver(ipam_prefix_list_resolver_id=_) + await client.modify_ipam_prefix_list_resolver( + **_request(ModifyIpamPrefixListResolverInputDict) + ) + await client.modify_ipam_prefix_list_resolver( + _request(ModifyIpamPrefixListResolverInput) + ) + await client.modify_ipam_prefix_list_resolver( + _request(ModifyIpamPrefixListResolverInputDict) + ) + await client.modify_ipam_prefix_list_resolver_target( + ipam_prefix_list_resolver_target_id=_ + ) + await client.modify_ipam_prefix_list_resolver_target( + **_request(ModifyIpamPrefixListResolverTargetInputDict) + ) + await client.modify_ipam_prefix_list_resolver_target( + _request(ModifyIpamPrefixListResolverTargetInput) + ) + await client.modify_ipam_prefix_list_resolver_target( + _request(ModifyIpamPrefixListResolverTargetInputDict) + ) + await client.modify_ipam_resource_cidr( + resource_id=_, + resource_cidr=_, + resource_region=_, + current_ipam_scope_id=_, + monitored=_, + ) + await client.modify_ipam_resource_cidr(**_request(ModifyIpamResourceCidrInputDict)) + await client.modify_ipam_resource_cidr(_request(ModifyIpamResourceCidrInput)) + await client.modify_ipam_resource_cidr(_request(ModifyIpamResourceCidrInputDict)) + await client.modify_ipam_resource_discovery(ipam_resource_discovery_id=_) + await client.modify_ipam_resource_discovery( + **_request(ModifyIpamResourceDiscoveryInputDict) + ) + await client.modify_ipam_resource_discovery( + _request(ModifyIpamResourceDiscoveryInput) + ) + await client.modify_ipam_resource_discovery( + _request(ModifyIpamResourceDiscoveryInputDict) + ) + await client.modify_ipam_routing_policy_registration( + ipam_internet_registry_association_id=_, cidr=_, asns=_ + ) + await client.modify_ipam_routing_policy_registration( + **_request(ModifyIpamRoutingPolicyRegistrationInputDict) + ) + await client.modify_ipam_routing_policy_registration( + _request(ModifyIpamRoutingPolicyRegistrationInput) + ) + await client.modify_ipam_routing_policy_registration( + _request(ModifyIpamRoutingPolicyRegistrationInputDict) + ) + await client.modify_ipam_scope(ipam_scope_id=_) + await client.modify_ipam_scope(**_request(ModifyIpamScopeInputDict)) + await client.modify_ipam_scope(_request(ModifyIpamScopeInput)) + await client.modify_ipam_scope(_request(ModifyIpamScopeInputDict)) + await client.modify_launch_template() + await client.modify_launch_template(**_request(ModifyLaunchTemplateInputDict)) + await client.modify_launch_template(_request(ModifyLaunchTemplateInput)) + await client.modify_launch_template(_request(ModifyLaunchTemplateInputDict)) + await client.modify_local_gateway_route(local_gateway_route_table_id=_) + await client.modify_local_gateway_route( + **_request(ModifyLocalGatewayRouteInputDict) + ) + await client.modify_local_gateway_route(_request(ModifyLocalGatewayRouteInput)) + await client.modify_local_gateway_route(_request(ModifyLocalGatewayRouteInputDict)) + await client.modify_managed_prefix_list(prefix_list_id=_) + await client.modify_managed_prefix_list( + **_request(ModifyManagedPrefixListInputDict) + ) + await client.modify_managed_prefix_list(_request(ModifyManagedPrefixListInput)) + await client.modify_managed_prefix_list(_request(ModifyManagedPrefixListInputDict)) + await client.modify_managed_resource_visibility(default_visibility=_) + await client.modify_managed_resource_visibility( + **_request(ModifyManagedResourceVisibilityInputDict) + ) + await client.modify_managed_resource_visibility( + _request(ModifyManagedResourceVisibilityInput) + ) + await client.modify_managed_resource_visibility( + _request(ModifyManagedResourceVisibilityInputDict) + ) + await client.modify_network_interface_attribute(network_interface_id=_) + await client.modify_network_interface_attribute( + **_request(ModifyNetworkInterfaceAttributeInputDict) + ) + await client.modify_network_interface_attribute( + _request(ModifyNetworkInterfaceAttributeInput) + ) + await client.modify_network_interface_attribute( + _request(ModifyNetworkInterfaceAttributeInputDict) + ) + await client.modify_private_dns_name_options(instance_id=_) + await client.modify_private_dns_name_options( + **_request(ModifyPrivateDnsNameOptionsInputDict) + ) + await client.modify_private_dns_name_options( + _request(ModifyPrivateDnsNameOptionsInput) + ) + await client.modify_private_dns_name_options( + _request(ModifyPrivateDnsNameOptionsInputDict) + ) + await client.modify_public_ip_dns_name_options( + network_interface_id=_, hostname_type=_ + ) + await client.modify_public_ip_dns_name_options( + **_request(ModifyPublicIpDnsNameOptionsInputDict) + ) + await client.modify_public_ip_dns_name_options( + _request(ModifyPublicIpDnsNameOptionsInput) + ) + await client.modify_public_ip_dns_name_options( + _request(ModifyPublicIpDnsNameOptionsInputDict) + ) + await client.modify_reserved_instances( + reserved_instances_ids=_, target_configurations=_ + ) + await client.modify_reserved_instances(**_request(ModifyReservedInstancesInputDict)) + await client.modify_reserved_instances(_request(ModifyReservedInstancesInput)) + await client.modify_reserved_instances(_request(ModifyReservedInstancesInputDict)) + await client.modify_route_server(route_server_id=_) + await client.modify_route_server(**_request(ModifyRouteServerInputDict)) + await client.modify_route_server(_request(ModifyRouteServerInput)) + await client.modify_route_server(_request(ModifyRouteServerInputDict)) + await client.modify_security_group_rules(group_id=_, security_group_rules=_) + await client.modify_security_group_rules( + **_request(ModifySecurityGroupRulesInputDict) + ) + await client.modify_security_group_rules(_request(ModifySecurityGroupRulesInput)) + await client.modify_security_group_rules( + _request(ModifySecurityGroupRulesInputDict) + ) + await client.modify_snapshot_attribute(snapshot_id=_) + await client.modify_snapshot_attribute(**_request(ModifySnapshotAttributeInputDict)) + await client.modify_snapshot_attribute(_request(ModifySnapshotAttributeInput)) + await client.modify_snapshot_attribute(_request(ModifySnapshotAttributeInputDict)) + await client.modify_snapshot_tier(snapshot_id=_) + await client.modify_snapshot_tier(**_request(ModifySnapshotTierInputDict)) + await client.modify_snapshot_tier(_request(ModifySnapshotTierInput)) + await client.modify_snapshot_tier(_request(ModifySnapshotTierInputDict)) + await client.modify_spot_fleet_request(spot_fleet_request_id=_) + await client.modify_spot_fleet_request(**_request(ModifySpotFleetRequestInputDict)) + await client.modify_spot_fleet_request(_request(ModifySpotFleetRequestInput)) + await client.modify_spot_fleet_request(_request(ModifySpotFleetRequestInputDict)) + await client.modify_subnet_attribute(subnet_id=_) + await client.modify_subnet_attribute(**_request(ModifySubnetAttributeInputDict)) + await client.modify_subnet_attribute(_request(ModifySubnetAttributeInput)) + await client.modify_subnet_attribute(_request(ModifySubnetAttributeInputDict)) + await client.modify_traffic_mirror_filter_network_services( + traffic_mirror_filter_id=_ + ) + await client.modify_traffic_mirror_filter_network_services( + **_request(ModifyTrafficMirrorFilterNetworkServicesInputDict) + ) + await client.modify_traffic_mirror_filter_network_services( + _request(ModifyTrafficMirrorFilterNetworkServicesInput) + ) + await client.modify_traffic_mirror_filter_network_services( + _request(ModifyTrafficMirrorFilterNetworkServicesInputDict) + ) + await client.modify_traffic_mirror_filter_rule(traffic_mirror_filter_rule_id=_) + await client.modify_traffic_mirror_filter_rule( + **_request(ModifyTrafficMirrorFilterRuleInputDict) + ) + await client.modify_traffic_mirror_filter_rule( + _request(ModifyTrafficMirrorFilterRuleInput) + ) + await client.modify_traffic_mirror_filter_rule( + _request(ModifyTrafficMirrorFilterRuleInputDict) + ) + await client.modify_traffic_mirror_session(traffic_mirror_session_id=_) + await client.modify_traffic_mirror_session( + **_request(ModifyTrafficMirrorSessionInputDict) + ) + await client.modify_traffic_mirror_session( + _request(ModifyTrafficMirrorSessionInput) + ) + await client.modify_traffic_mirror_session( + _request(ModifyTrafficMirrorSessionInputDict) + ) + await client.modify_transit_gateway(transit_gateway_id=_) + await client.modify_transit_gateway(**_request(ModifyTransitGatewayInputDict)) + await client.modify_transit_gateway(_request(ModifyTransitGatewayInput)) + await client.modify_transit_gateway(_request(ModifyTransitGatewayInputDict)) + await client.modify_transit_gateway_attachment_nat_configuration( + transit_gateway_attachment_id=_ + ) + await client.modify_transit_gateway_attachment_nat_configuration( + **_request(ModifyTransitGatewayAttachmentNatConfigurationInputDict) + ) + await client.modify_transit_gateway_attachment_nat_configuration( + _request(ModifyTransitGatewayAttachmentNatConfigurationInput) + ) + await client.modify_transit_gateway_attachment_nat_configuration( + _request(ModifyTransitGatewayAttachmentNatConfigurationInputDict) + ) + await client.modify_transit_gateway_metering_policy( + transit_gateway_metering_policy_id=_ + ) + await client.modify_transit_gateway_metering_policy( + **_request(ModifyTransitGatewayMeteringPolicyInputDict) + ) + await client.modify_transit_gateway_metering_policy( + _request(ModifyTransitGatewayMeteringPolicyInput) + ) + await client.modify_transit_gateway_metering_policy( + _request(ModifyTransitGatewayMeteringPolicyInputDict) + ) + await client.modify_transit_gateway_policy_table_entry( + transit_gateway_policy_table_id=_, policy_rule_number=_ + ) + await client.modify_transit_gateway_policy_table_entry( + **_request(ModifyTransitGatewayPolicyTableEntryInputDict) + ) + await client.modify_transit_gateway_policy_table_entry( + _request(ModifyTransitGatewayPolicyTableEntryInput) + ) + await client.modify_transit_gateway_policy_table_entry( + _request(ModifyTransitGatewayPolicyTableEntryInputDict) + ) + await client.modify_transit_gateway_prefix_list_reference( + transit_gateway_route_table_id=_, prefix_list_id=_ + ) + await client.modify_transit_gateway_prefix_list_reference( + **_request(ModifyTransitGatewayPrefixListReferenceInputDict) + ) + await client.modify_transit_gateway_prefix_list_reference( + _request(ModifyTransitGatewayPrefixListReferenceInput) + ) + await client.modify_transit_gateway_prefix_list_reference( + _request(ModifyTransitGatewayPrefixListReferenceInputDict) + ) + await client.modify_transit_gateway_vpc_attachment(transit_gateway_attachment_id=_) + await client.modify_transit_gateway_vpc_attachment( + **_request(ModifyTransitGatewayVpcAttachmentInputDict) + ) + await client.modify_transit_gateway_vpc_attachment( + _request(ModifyTransitGatewayVpcAttachmentInput) + ) + await client.modify_transit_gateway_vpc_attachment( + _request(ModifyTransitGatewayVpcAttachmentInputDict) + ) + await client.modify_verified_access_endpoint(verified_access_endpoint_id=_) + await client.modify_verified_access_endpoint( + **_request(ModifyVerifiedAccessEndpointInputDict) + ) + await client.modify_verified_access_endpoint( + _request(ModifyVerifiedAccessEndpointInput) + ) + await client.modify_verified_access_endpoint( + _request(ModifyVerifiedAccessEndpointInputDict) + ) + await client.modify_verified_access_endpoint_policy(verified_access_endpoint_id=_) + await client.modify_verified_access_endpoint_policy( + **_request(ModifyVerifiedAccessEndpointPolicyInputDict) + ) + await client.modify_verified_access_endpoint_policy( + _request(ModifyVerifiedAccessEndpointPolicyInput) + ) + await client.modify_verified_access_endpoint_policy( + _request(ModifyVerifiedAccessEndpointPolicyInputDict) + ) + await client.modify_verified_access_group(verified_access_group_id=_) + await client.modify_verified_access_group( + **_request(ModifyVerifiedAccessGroupInputDict) + ) + await client.modify_verified_access_group(_request(ModifyVerifiedAccessGroupInput)) + await client.modify_verified_access_group( + _request(ModifyVerifiedAccessGroupInputDict) + ) + await client.modify_verified_access_group_policy(verified_access_group_id=_) + await client.modify_verified_access_group_policy( + **_request(ModifyVerifiedAccessGroupPolicyInputDict) + ) + await client.modify_verified_access_group_policy( + _request(ModifyVerifiedAccessGroupPolicyInput) + ) + await client.modify_verified_access_group_policy( + _request(ModifyVerifiedAccessGroupPolicyInputDict) + ) + await client.modify_verified_access_instance(verified_access_instance_id=_) + await client.modify_verified_access_instance( + **_request(ModifyVerifiedAccessInstanceInputDict) + ) + await client.modify_verified_access_instance( + _request(ModifyVerifiedAccessInstanceInput) + ) + await client.modify_verified_access_instance( + _request(ModifyVerifiedAccessInstanceInputDict) + ) + await client.modify_verified_access_instance_logging_configuration( + verified_access_instance_id=_, access_logs=_ + ) + await client.modify_verified_access_instance_logging_configuration( + **_request(ModifyVerifiedAccessInstanceLoggingConfigurationInputDict) + ) + await client.modify_verified_access_instance_logging_configuration( + _request(ModifyVerifiedAccessInstanceLoggingConfigurationInput) + ) + await client.modify_verified_access_instance_logging_configuration( + _request(ModifyVerifiedAccessInstanceLoggingConfigurationInputDict) + ) + await client.modify_verified_access_trust_provider( + verified_access_trust_provider_id=_ + ) + await client.modify_verified_access_trust_provider( + **_request(ModifyVerifiedAccessTrustProviderInputDict) + ) + await client.modify_verified_access_trust_provider( + _request(ModifyVerifiedAccessTrustProviderInput) + ) + await client.modify_verified_access_trust_provider( + _request(ModifyVerifiedAccessTrustProviderInputDict) + ) + await client.modify_volume(volume_id=_) + await client.modify_volume(**_request(ModifyVolumeInputDict)) + await client.modify_volume(_request(ModifyVolumeInput)) + await client.modify_volume(_request(ModifyVolumeInputDict)) + await client.modify_volume_attribute(volume_id=_) + await client.modify_volume_attribute(**_request(ModifyVolumeAttributeInputDict)) + await client.modify_volume_attribute(_request(ModifyVolumeAttributeInput)) + await client.modify_volume_attribute(_request(ModifyVolumeAttributeInputDict)) + await client.modify_vpc_attribute(vpc_id=_) + await client.modify_vpc_attribute(**_request(ModifyVpcAttributeInputDict)) + await client.modify_vpc_attribute(_request(ModifyVpcAttributeInput)) + await client.modify_vpc_attribute(_request(ModifyVpcAttributeInputDict)) + await client.modify_vpc_block_public_access_exclusion( + exclusion_id=_, internet_gateway_exclusion_mode=_ + ) + await client.modify_vpc_block_public_access_exclusion( + **_request(ModifyVpcBlockPublicAccessExclusionInputDict) + ) + await client.modify_vpc_block_public_access_exclusion( + _request(ModifyVpcBlockPublicAccessExclusionInput) + ) + await client.modify_vpc_block_public_access_exclusion( + _request(ModifyVpcBlockPublicAccessExclusionInputDict) + ) + await client.modify_vpc_block_public_access_options(internet_gateway_block_mode=_) + await client.modify_vpc_block_public_access_options( + **_request(ModifyVpcBlockPublicAccessOptionsInputDict) + ) + await client.modify_vpc_block_public_access_options( + _request(ModifyVpcBlockPublicAccessOptionsInput) + ) + await client.modify_vpc_block_public_access_options( + _request(ModifyVpcBlockPublicAccessOptionsInputDict) + ) + await client.modify_vpc_encryption_control(vpc_encryption_control_id=_) + await client.modify_vpc_encryption_control( + **_request(ModifyVpcEncryptionControlInputDict) + ) + await client.modify_vpc_encryption_control( + _request(ModifyVpcEncryptionControlInput) + ) + await client.modify_vpc_encryption_control( + _request(ModifyVpcEncryptionControlInputDict) + ) + await client.modify_vpc_endpoint(vpc_endpoint_id=_) + await client.modify_vpc_endpoint(**_request(ModifyVpcEndpointInputDict)) + await client.modify_vpc_endpoint(_request(ModifyVpcEndpointInput)) + await client.modify_vpc_endpoint(_request(ModifyVpcEndpointInputDict)) + await client.modify_vpc_endpoint_connection_notification( + connection_notification_id=_ + ) + await client.modify_vpc_endpoint_connection_notification( + **_request(ModifyVpcEndpointConnectionNotificationInputDict) + ) + await client.modify_vpc_endpoint_connection_notification( + _request(ModifyVpcEndpointConnectionNotificationInput) + ) + await client.modify_vpc_endpoint_connection_notification( + _request(ModifyVpcEndpointConnectionNotificationInputDict) + ) + await client.modify_vpc_endpoint_payer_responsibility( + vpc_endpoint_id=_, payer_responsibility=_, scope=_ + ) + await client.modify_vpc_endpoint_payer_responsibility( + **_request(ModifyVpcEndpointPayerResponsibilityInputDict) + ) + await client.modify_vpc_endpoint_payer_responsibility( + _request(ModifyVpcEndpointPayerResponsibilityInput) + ) + await client.modify_vpc_endpoint_payer_responsibility( + _request(ModifyVpcEndpointPayerResponsibilityInputDict) + ) + await client.modify_vpc_endpoint_service_configuration(service_id=_) + await client.modify_vpc_endpoint_service_configuration( + **_request(ModifyVpcEndpointServiceConfigurationInputDict) + ) + await client.modify_vpc_endpoint_service_configuration( + _request(ModifyVpcEndpointServiceConfigurationInput) + ) + await client.modify_vpc_endpoint_service_configuration( + _request(ModifyVpcEndpointServiceConfigurationInputDict) + ) + await client.modify_vpc_endpoint_service_payer_responsibility( + service_id=_, payer_responsibility=_ + ) + await client.modify_vpc_endpoint_service_payer_responsibility( + **_request(ModifyVpcEndpointServicePayerResponsibilityInputDict) + ) + await client.modify_vpc_endpoint_service_payer_responsibility( + _request(ModifyVpcEndpointServicePayerResponsibilityInput) + ) + await client.modify_vpc_endpoint_service_payer_responsibility( + _request(ModifyVpcEndpointServicePayerResponsibilityInputDict) + ) + await client.modify_vpc_endpoint_service_permissions(service_id=_) + await client.modify_vpc_endpoint_service_permissions( + **_request(ModifyVpcEndpointServicePermissionsInputDict) + ) + await client.modify_vpc_endpoint_service_permissions( + _request(ModifyVpcEndpointServicePermissionsInput) + ) + await client.modify_vpc_endpoint_service_permissions( + _request(ModifyVpcEndpointServicePermissionsInputDict) + ) + await client.modify_vpc_peering_connection_options(vpc_peering_connection_id=_) + await client.modify_vpc_peering_connection_options( + **_request(ModifyVpcPeeringConnectionOptionsInputDict) + ) + await client.modify_vpc_peering_connection_options( + _request(ModifyVpcPeeringConnectionOptionsInput) + ) + await client.modify_vpc_peering_connection_options( + _request(ModifyVpcPeeringConnectionOptionsInputDict) + ) + await client.modify_vpc_tenancy(vpc_id=_, instance_tenancy=_) + await client.modify_vpc_tenancy(**_request(ModifyVpcTenancyInputDict)) + await client.modify_vpc_tenancy(_request(ModifyVpcTenancyInput)) + await client.modify_vpc_tenancy(_request(ModifyVpcTenancyInputDict)) + await client.modify_vpn_connection(vpn_connection_id=_) + await client.modify_vpn_connection(**_request(ModifyVpnConnectionInputDict)) + await client.modify_vpn_connection(_request(ModifyVpnConnectionInput)) + await client.modify_vpn_connection(_request(ModifyVpnConnectionInputDict)) + await client.modify_vpn_connection_options(vpn_connection_id=_) + await client.modify_vpn_connection_options( + **_request(ModifyVpnConnectionOptionsInputDict) + ) + await client.modify_vpn_connection_options( + _request(ModifyVpnConnectionOptionsInput) + ) + await client.modify_vpn_connection_options( + _request(ModifyVpnConnectionOptionsInputDict) + ) + await client.modify_vpn_tunnel_certificate( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_ + ) + await client.modify_vpn_tunnel_certificate( + **_request(ModifyVpnTunnelCertificateInputDict) + ) + await client.modify_vpn_tunnel_certificate( + _request(ModifyVpnTunnelCertificateInput) + ) + await client.modify_vpn_tunnel_certificate( + _request(ModifyVpnTunnelCertificateInputDict) + ) + await client.modify_vpn_tunnel_options( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_, tunnel_options=_ + ) + await client.modify_vpn_tunnel_options(**_request(ModifyVpnTunnelOptionsInputDict)) + await client.modify_vpn_tunnel_options(_request(ModifyVpnTunnelOptionsInput)) + await client.modify_vpn_tunnel_options(_request(ModifyVpnTunnelOptionsInputDict)) + await client.monitor_instances(instance_ids=_) + await client.monitor_instances(**_request(MonitorInstancesInputDict)) + await client.monitor_instances(_request(MonitorInstancesInput)) + await client.monitor_instances(_request(MonitorInstancesInputDict)) + await client.move_address_to_vpc(public_ip=_) + await client.move_address_to_vpc(**_request(MoveAddressToVpcInputDict)) + await client.move_address_to_vpc(_request(MoveAddressToVpcInput)) + await client.move_address_to_vpc(_request(MoveAddressToVpcInputDict)) + await client.move_byoip_cidr_to_ipam(cidr=_, ipam_pool_id=_, ipam_pool_owner=_) + await client.move_byoip_cidr_to_ipam(**_request(MoveByoipCidrToIpamInputDict)) + await client.move_byoip_cidr_to_ipam(_request(MoveByoipCidrToIpamInput)) + await client.move_byoip_cidr_to_ipam(_request(MoveByoipCidrToIpamInputDict)) + await client.move_capacity_reservation_instances( + source_capacity_reservation_id=_, + destination_capacity_reservation_id=_, + instance_count=_, + ) + await client.move_capacity_reservation_instances( + **_request(MoveCapacityReservationInstancesInputDict) + ) + await client.move_capacity_reservation_instances( + _request(MoveCapacityReservationInstancesInput) + ) + await client.move_capacity_reservation_instances( + _request(MoveCapacityReservationInstancesInputDict) + ) + await client.provision_byoip_cidr(cidr=_) + await client.provision_byoip_cidr(**_request(ProvisionByoipCidrInputDict)) + await client.provision_byoip_cidr(_request(ProvisionByoipCidrInput)) + await client.provision_byoip_cidr(_request(ProvisionByoipCidrInputDict)) + await client.provision_ipam_byoasn(ipam_id=_, asn=_, asn_authorization_context=_) + await client.provision_ipam_byoasn(**_request(ProvisionIpamByoasnInputDict)) + await client.provision_ipam_byoasn(_request(ProvisionIpamByoasnInput)) + await client.provision_ipam_byoasn(_request(ProvisionIpamByoasnInputDict)) + await client.provision_ipam_pool_cidr(ipam_pool_id=_) + await client.provision_ipam_pool_cidr(**_request(ProvisionIpamPoolCidrInputDict)) + await client.provision_ipam_pool_cidr(_request(ProvisionIpamPoolCidrInput)) + await client.provision_ipam_pool_cidr(_request(ProvisionIpamPoolCidrInputDict)) + await client.provision_public_ipv4_pool_cidr( + ipam_pool_id=_, pool_id=_, netmask_length=_ + ) + await client.provision_public_ipv4_pool_cidr( + **_request(ProvisionPublicIpv4PoolCidrInputDict) + ) + await client.provision_public_ipv4_pool_cidr( + _request(ProvisionPublicIpv4PoolCidrInput) + ) + await client.provision_public_ipv4_pool_cidr( + _request(ProvisionPublicIpv4PoolCidrInputDict) + ) + await client.purchase_capacity_block( + capacity_block_offering_id=_, instance_platform=_ + ) + await client.purchase_capacity_block(**_request(PurchaseCapacityBlockInputDict)) + await client.purchase_capacity_block(_request(PurchaseCapacityBlockInput)) + await client.purchase_capacity_block(_request(PurchaseCapacityBlockInputDict)) + await client.purchase_capacity_block_extension( + capacity_block_extension_offering_id=_, capacity_reservation_id=_ + ) + await client.purchase_capacity_block_extension( + **_request(PurchaseCapacityBlockExtensionInputDict) + ) + await client.purchase_capacity_block_extension( + _request(PurchaseCapacityBlockExtensionInput) + ) + await client.purchase_capacity_block_extension( + _request(PurchaseCapacityBlockExtensionInputDict) + ) + await client.purchase_host_reservation(host_id_set=_, offering_id=_) + await client.purchase_host_reservation(**_request(PurchaseHostReservationInputDict)) + await client.purchase_host_reservation(_request(PurchaseHostReservationInput)) + await client.purchase_host_reservation(_request(PurchaseHostReservationInputDict)) + await client.purchase_reserved_instances_offering( + instance_count=_, reserved_instances_offering_id=_ + ) + await client.purchase_reserved_instances_offering( + **_request(PurchaseReservedInstancesOfferingInputDict) + ) + await client.purchase_reserved_instances_offering( + _request(PurchaseReservedInstancesOfferingInput) + ) + await client.purchase_reserved_instances_offering( + _request(PurchaseReservedInstancesOfferingInputDict) + ) + await client.purchase_scheduled_instances(purchase_requests=_) + await client.purchase_scheduled_instances( + **_request(PurchaseScheduledInstancesInputDict) + ) + await client.purchase_scheduled_instances(_request(PurchaseScheduledInstancesInput)) + await client.purchase_scheduled_instances( + _request(PurchaseScheduledInstancesInputDict) + ) + await client.reboot_instances(instance_ids=_) + await client.reboot_instances(**_request(RebootInstancesInputDict)) + await client.reboot_instances(_request(RebootInstancesInput)) + await client.reboot_instances(_request(RebootInstancesInputDict)) + await client.register_image(name=_) + await client.register_image(**_request(RegisterImageInputDict)) + await client.register_image(_request(RegisterImageInput)) + await client.register_image(_request(RegisterImageInputDict)) + await client.register_instance_event_notification_attributes( + instance_tag_attribute=_ + ) + await client.register_instance_event_notification_attributes( + **_request(RegisterInstanceEventNotificationAttributesInputDict) + ) + await client.register_instance_event_notification_attributes( + _request(RegisterInstanceEventNotificationAttributesInput) + ) + await client.register_instance_event_notification_attributes( + _request(RegisterInstanceEventNotificationAttributesInputDict) + ) + await client.register_transit_gateway_multicast_group_members( + transit_gateway_multicast_domain_id=_, network_interface_ids=_ + ) + await client.register_transit_gateway_multicast_group_members( + **_request(RegisterTransitGatewayMulticastGroupMembersInputDict) + ) + await client.register_transit_gateway_multicast_group_members( + _request(RegisterTransitGatewayMulticastGroupMembersInput) + ) + await client.register_transit_gateway_multicast_group_members( + _request(RegisterTransitGatewayMulticastGroupMembersInputDict) + ) + await client.register_transit_gateway_multicast_group_sources( + transit_gateway_multicast_domain_id=_, network_interface_ids=_ + ) + await client.register_transit_gateway_multicast_group_sources( + **_request(RegisterTransitGatewayMulticastGroupSourcesInputDict) + ) + await client.register_transit_gateway_multicast_group_sources( + _request(RegisterTransitGatewayMulticastGroupSourcesInput) + ) + await client.register_transit_gateway_multicast_group_sources( + _request(RegisterTransitGatewayMulticastGroupSourcesInputDict) + ) + await client.reject_capacity_reservation_billing_ownership( + capacity_reservation_id=_ + ) + await client.reject_capacity_reservation_billing_ownership( + **_request(RejectCapacityReservationBillingOwnershipInputDict) + ) + await client.reject_capacity_reservation_billing_ownership( + _request(RejectCapacityReservationBillingOwnershipInput) + ) + await client.reject_capacity_reservation_billing_ownership( + _request(RejectCapacityReservationBillingOwnershipInputDict) + ) + await client.reject_transit_gateway_client_vpn_attachment( + transit_gateway_attachment_id=_ + ) + await client.reject_transit_gateway_client_vpn_attachment( + **_request(RejectTransitGatewayClientVpnAttachmentInputDict) + ) + await client.reject_transit_gateway_client_vpn_attachment( + _request(RejectTransitGatewayClientVpnAttachmentInput) + ) + await client.reject_transit_gateway_client_vpn_attachment( + _request(RejectTransitGatewayClientVpnAttachmentInputDict) + ) + await client.reject_transit_gateway_multicast_domain_associations() + await client.reject_transit_gateway_multicast_domain_associations( + **_request(RejectTransitGatewayMulticastDomainAssociationsInputDict) + ) + await client.reject_transit_gateway_multicast_domain_associations( + _request(RejectTransitGatewayMulticastDomainAssociationsInput) + ) + await client.reject_transit_gateway_multicast_domain_associations( + _request(RejectTransitGatewayMulticastDomainAssociationsInputDict) + ) + await client.reject_transit_gateway_peering_attachment( + transit_gateway_attachment_id=_ + ) + await client.reject_transit_gateway_peering_attachment( + **_request(RejectTransitGatewayPeeringAttachmentInputDict) + ) + await client.reject_transit_gateway_peering_attachment( + _request(RejectTransitGatewayPeeringAttachmentInput) + ) + await client.reject_transit_gateway_peering_attachment( + _request(RejectTransitGatewayPeeringAttachmentInputDict) + ) + await client.reject_transit_gateway_vpc_attachment(transit_gateway_attachment_id=_) + await client.reject_transit_gateway_vpc_attachment( + **_request(RejectTransitGatewayVpcAttachmentInputDict) + ) + await client.reject_transit_gateway_vpc_attachment( + _request(RejectTransitGatewayVpcAttachmentInput) + ) + await client.reject_transit_gateway_vpc_attachment( + _request(RejectTransitGatewayVpcAttachmentInputDict) + ) + await client.reject_vpc_endpoint_connections(service_id=_, vpc_endpoint_ids=_) + await client.reject_vpc_endpoint_connections( + **_request(RejectVpcEndpointConnectionsInputDict) + ) + await client.reject_vpc_endpoint_connections( + _request(RejectVpcEndpointConnectionsInput) + ) + await client.reject_vpc_endpoint_connections( + _request(RejectVpcEndpointConnectionsInputDict) + ) + await client.reject_vpc_peering_connection(vpc_peering_connection_id=_) + await client.reject_vpc_peering_connection( + **_request(RejectVpcPeeringConnectionInputDict) + ) + await client.reject_vpc_peering_connection( + _request(RejectVpcPeeringConnectionInput) + ) + await client.reject_vpc_peering_connection( + _request(RejectVpcPeeringConnectionInputDict) + ) + await client.release_address() + await client.release_address(**_request(ReleaseAddressInputDict)) + await client.release_address(_request(ReleaseAddressInput)) + await client.release_address(_request(ReleaseAddressInputDict)) + await client.release_hosts(host_ids=_) + await client.release_hosts(**_request(ReleaseHostsInputDict)) + await client.release_hosts(_request(ReleaseHostsInput)) + await client.release_hosts(_request(ReleaseHostsInputDict)) + await client.release_ipam_pool_allocation( + ipam_pool_id=_, cidr=_, ipam_pool_allocation_id=_ + ) + await client.release_ipam_pool_allocation( + **_request(ReleaseIpamPoolAllocationInputDict) + ) + await client.release_ipam_pool_allocation(_request(ReleaseIpamPoolAllocationInput)) + await client.release_ipam_pool_allocation( + _request(ReleaseIpamPoolAllocationInputDict) + ) + await client.replace_iam_instance_profile_association( + iam_instance_profile=_, association_id=_ + ) + await client.replace_iam_instance_profile_association( + **_request(ReplaceIamInstanceProfileAssociationInputDict) + ) + await client.replace_iam_instance_profile_association( + _request(ReplaceIamInstanceProfileAssociationInput) + ) + await client.replace_iam_instance_profile_association( + _request(ReplaceIamInstanceProfileAssociationInputDict) + ) + await client.replace_image_criteria_in_allowed_images_settings() + await client.replace_image_criteria_in_allowed_images_settings( + **_request(ReplaceImageCriteriaInAllowedImagesSettingsInputDict) + ) + await client.replace_image_criteria_in_allowed_images_settings( + _request(ReplaceImageCriteriaInAllowedImagesSettingsInput) + ) + await client.replace_image_criteria_in_allowed_images_settings( + _request(ReplaceImageCriteriaInAllowedImagesSettingsInputDict) + ) + await client.replace_image_instance_type_specification(image_id=_) + await client.replace_image_instance_type_specification( + **_request(ReplaceImageInstanceTypeSpecificationInputDict) + ) + await client.replace_image_instance_type_specification( + _request(ReplaceImageInstanceTypeSpecificationInput) + ) + await client.replace_image_instance_type_specification( + _request(ReplaceImageInstanceTypeSpecificationInputDict) + ) + await client.replace_network_acl_association(association_id=_, network_acl_id=_) + await client.replace_network_acl_association( + **_request(ReplaceNetworkAclAssociationInputDict) + ) + await client.replace_network_acl_association( + _request(ReplaceNetworkAclAssociationInput) + ) + await client.replace_network_acl_association( + _request(ReplaceNetworkAclAssociationInputDict) + ) + await client.replace_network_acl_entry( + network_acl_id=_, rule_number=_, protocol=_, rule_action=_, egress=_ + ) + await client.replace_network_acl_entry(**_request(ReplaceNetworkAclEntryInputDict)) + await client.replace_network_acl_entry(_request(ReplaceNetworkAclEntryInput)) + await client.replace_network_acl_entry(_request(ReplaceNetworkAclEntryInputDict)) + await client.replace_route(route_table_id=_) + await client.replace_route(**_request(ReplaceRouteInputDict)) + await client.replace_route(_request(ReplaceRouteInput)) + await client.replace_route(_request(ReplaceRouteInputDict)) + await client.replace_route_table_association(association_id=_, route_table_id=_) + await client.replace_route_table_association( + **_request(ReplaceRouteTableAssociationInputDict) + ) + await client.replace_route_table_association( + _request(ReplaceRouteTableAssociationInput) + ) + await client.replace_route_table_association( + _request(ReplaceRouteTableAssociationInputDict) + ) + await client.replace_transit_gateway_route( + destination_cidr_block=_, transit_gateway_route_table_id=_ + ) + await client.replace_transit_gateway_route( + **_request(ReplaceTransitGatewayRouteInputDict) + ) + await client.replace_transit_gateway_route( + _request(ReplaceTransitGatewayRouteInput) + ) + await client.replace_transit_gateway_route( + _request(ReplaceTransitGatewayRouteInputDict) + ) + await client.replace_vpn_tunnel( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_ + ) + await client.replace_vpn_tunnel(**_request(ReplaceVpnTunnelInputDict)) + await client.replace_vpn_tunnel(_request(ReplaceVpnTunnelInput)) + await client.replace_vpn_tunnel(_request(ReplaceVpnTunnelInputDict)) + await client.report_instance_status(instances=_, status=_, reason_codes=_) + await client.report_instance_status(**_request(ReportInstanceStatusInputDict)) + await client.report_instance_status(_request(ReportInstanceStatusInput)) + await client.report_instance_status(_request(ReportInstanceStatusInputDict)) + await client.request_spot_fleet(spot_fleet_request_config=_) + await client.request_spot_fleet(**_request(RequestSpotFleetInputDict)) + await client.request_spot_fleet(_request(RequestSpotFleetInput)) + await client.request_spot_fleet(_request(RequestSpotFleetInputDict)) + await client.request_spot_instances() + await client.request_spot_instances(**_request(RequestSpotInstancesInputDict)) + await client.request_spot_instances(_request(RequestSpotInstancesInput)) + await client.request_spot_instances(_request(RequestSpotInstancesInputDict)) + await client.reset_address_attribute(allocation_id=_, attribute=_) + await client.reset_address_attribute(**_request(ResetAddressAttributeInputDict)) + await client.reset_address_attribute(_request(ResetAddressAttributeInput)) + await client.reset_address_attribute(_request(ResetAddressAttributeInputDict)) + await client.reset_ebs_default_kms_key_id() + await client.reset_ebs_default_kms_key_id( + **_request(ResetEbsDefaultKmsKeyIdInputDict) + ) + await client.reset_ebs_default_kms_key_id(_request(ResetEbsDefaultKmsKeyIdInput)) + await client.reset_ebs_default_kms_key_id( + _request(ResetEbsDefaultKmsKeyIdInputDict) + ) + await client.reset_fpga_image_attribute(fpga_image_id=_) + await client.reset_fpga_image_attribute( + **_request(ResetFpgaImageAttributeInputDict) + ) + await client.reset_fpga_image_attribute(_request(ResetFpgaImageAttributeInput)) + await client.reset_fpga_image_attribute(_request(ResetFpgaImageAttributeInputDict)) + await client.reset_image_attribute(attribute=_, image_id=_) + await client.reset_image_attribute(**_request(ResetImageAttributeInputDict)) + await client.reset_image_attribute(_request(ResetImageAttributeInput)) + await client.reset_image_attribute(_request(ResetImageAttributeInputDict)) + await client.reset_instance_attribute(instance_id=_, attribute=_) + await client.reset_instance_attribute(**_request(ResetInstanceAttributeInputDict)) + await client.reset_instance_attribute(_request(ResetInstanceAttributeInput)) + await client.reset_instance_attribute(_request(ResetInstanceAttributeInputDict)) + await client.reset_network_interface_attribute(network_interface_id=_) + await client.reset_network_interface_attribute( + **_request(ResetNetworkInterfaceAttributeInputDict) + ) + await client.reset_network_interface_attribute( + _request(ResetNetworkInterfaceAttributeInput) + ) + await client.reset_network_interface_attribute( + _request(ResetNetworkInterfaceAttributeInputDict) + ) + await client.reset_snapshot_attribute(attribute=_, snapshot_id=_) + await client.reset_snapshot_attribute(**_request(ResetSnapshotAttributeInputDict)) + await client.reset_snapshot_attribute(_request(ResetSnapshotAttributeInput)) + await client.reset_snapshot_attribute(_request(ResetSnapshotAttributeInputDict)) + await client.restore_address_to_classic(public_ip=_) + await client.restore_address_to_classic( + **_request(RestoreAddressToClassicInputDict) + ) + await client.restore_address_to_classic(_request(RestoreAddressToClassicInput)) + await client.restore_address_to_classic(_request(RestoreAddressToClassicInputDict)) + await client.restore_image_from_recycle_bin(image_id=_) + await client.restore_image_from_recycle_bin( + **_request(RestoreImageFromRecycleBinInputDict) + ) + await client.restore_image_from_recycle_bin( + _request(RestoreImageFromRecycleBinInput) + ) + await client.restore_image_from_recycle_bin( + _request(RestoreImageFromRecycleBinInputDict) + ) + await client.restore_managed_prefix_list_version( + prefix_list_id=_, previous_version=_, current_version=_ + ) + await client.restore_managed_prefix_list_version( + **_request(RestoreManagedPrefixListVersionInputDict) + ) + await client.restore_managed_prefix_list_version( + _request(RestoreManagedPrefixListVersionInput) + ) + await client.restore_managed_prefix_list_version( + _request(RestoreManagedPrefixListVersionInputDict) + ) + await client.restore_snapshot_from_recycle_bin(snapshot_id=_) + await client.restore_snapshot_from_recycle_bin( + **_request(RestoreSnapshotFromRecycleBinInputDict) + ) + await client.restore_snapshot_from_recycle_bin( + _request(RestoreSnapshotFromRecycleBinInput) + ) + await client.restore_snapshot_from_recycle_bin( + _request(RestoreSnapshotFromRecycleBinInputDict) + ) + await client.restore_snapshot_tier(snapshot_id=_) + await client.restore_snapshot_tier(**_request(RestoreSnapshotTierInputDict)) + await client.restore_snapshot_tier(_request(RestoreSnapshotTierInput)) + await client.restore_snapshot_tier(_request(RestoreSnapshotTierInputDict)) + await client.restore_volume_from_recycle_bin(volume_id=_) + await client.restore_volume_from_recycle_bin( + **_request(RestoreVolumeFromRecycleBinInputDict) + ) + await client.restore_volume_from_recycle_bin( + _request(RestoreVolumeFromRecycleBinInput) + ) + await client.restore_volume_from_recycle_bin( + _request(RestoreVolumeFromRecycleBinInputDict) + ) + await client.revoke_client_vpn_ingress( + client_vpn_endpoint_id=_, target_network_cidr=_ + ) + await client.revoke_client_vpn_ingress(**_request(RevokeClientVpnIngressInputDict)) + await client.revoke_client_vpn_ingress(_request(RevokeClientVpnIngressInput)) + await client.revoke_client_vpn_ingress(_request(RevokeClientVpnIngressInputDict)) + await client.revoke_security_group_egress(group_id=_) + await client.revoke_security_group_egress( + **_request(RevokeSecurityGroupEgressInputDict) + ) + await client.revoke_security_group_egress(_request(RevokeSecurityGroupEgressInput)) + await client.revoke_security_group_egress( + _request(RevokeSecurityGroupEgressInputDict) + ) + await client.revoke_security_group_ingress() + await client.revoke_security_group_ingress( + **_request(RevokeSecurityGroupIngressInputDict) + ) + await client.revoke_security_group_ingress( + _request(RevokeSecurityGroupIngressInput) + ) + await client.revoke_security_group_ingress( + _request(RevokeSecurityGroupIngressInputDict) + ) + await client.run_instances(max_count=_, min_count=_) + await client.run_instances(**_request(RunInstancesInputDict)) + await client.run_instances(_request(RunInstancesInput)) + await client.run_instances(_request(RunInstancesInputDict)) + await client.run_scheduled_instances( + launch_specification=_, scheduled_instance_id=_ + ) + await client.run_scheduled_instances(**_request(RunScheduledInstancesInputDict)) + await client.run_scheduled_instances(_request(RunScheduledInstancesInput)) + await client.run_scheduled_instances(_request(RunScheduledInstancesInputDict)) + await client.search_local_gateway_routes(local_gateway_route_table_id=_) + await client.search_local_gateway_routes( + **_request(SearchLocalGatewayRoutesInputDict) + ) + await client.search_local_gateway_routes(_request(SearchLocalGatewayRoutesInput)) + await client.search_local_gateway_routes( + _request(SearchLocalGatewayRoutesInputDict) + ) + await client.search_transit_gateway_multicast_groups( + transit_gateway_multicast_domain_id=_ + ) + await client.search_transit_gateway_multicast_groups( + **_request(SearchTransitGatewayMulticastGroupsInputDict) + ) + await client.search_transit_gateway_multicast_groups( + _request(SearchTransitGatewayMulticastGroupsInput) + ) + await client.search_transit_gateway_multicast_groups( + _request(SearchTransitGatewayMulticastGroupsInputDict) + ) + await client.search_transit_gateway_routes( + transit_gateway_route_table_id=_, filters=_ + ) + await client.search_transit_gateway_routes( + **_request(SearchTransitGatewayRoutesInputDict) + ) + await client.search_transit_gateway_routes( + _request(SearchTransitGatewayRoutesInput) + ) + await client.search_transit_gateway_routes( + _request(SearchTransitGatewayRoutesInputDict) + ) + await client.send_diagnostic_interrupt(instance_id=_) + await client.send_diagnostic_interrupt(**_request(SendDiagnosticInterruptInputDict)) + await client.send_diagnostic_interrupt(_request(SendDiagnosticInterruptInput)) + await client.send_diagnostic_interrupt(_request(SendDiagnosticInterruptInputDict)) + await client.start_declarative_policies_report(s3_bucket=_, target_id=_) + await client.start_declarative_policies_report( + **_request(StartDeclarativePoliciesReportInputDict) + ) + await client.start_declarative_policies_report( + _request(StartDeclarativePoliciesReportInput) + ) + await client.start_declarative_policies_report( + _request(StartDeclarativePoliciesReportInputDict) + ) + await client.start_instances(instance_ids=_) + await client.start_instances(**_request(StartInstancesInputDict)) + await client.start_instances(_request(StartInstancesInput)) + await client.start_instances(_request(StartInstancesInputDict)) + await client.start_network_insights_access_scope_analysis( + network_insights_access_scope_id=_ + ) + await client.start_network_insights_access_scope_analysis( + **_request(StartNetworkInsightsAccessScopeAnalysisInputDict) + ) + await client.start_network_insights_access_scope_analysis( + _request(StartNetworkInsightsAccessScopeAnalysisInput) + ) + await client.start_network_insights_access_scope_analysis( + _request(StartNetworkInsightsAccessScopeAnalysisInputDict) + ) + await client.start_network_insights_analysis(network_insights_path_id=_) + await client.start_network_insights_analysis( + **_request(StartNetworkInsightsAnalysisInputDict) + ) + await client.start_network_insights_analysis( + _request(StartNetworkInsightsAnalysisInput) + ) + await client.start_network_insights_analysis( + _request(StartNetworkInsightsAnalysisInputDict) + ) + await client.start_vpc_endpoint_service_private_dns_verification(service_id=_) + await client.start_vpc_endpoint_service_private_dns_verification( + **_request(StartVpcEndpointServicePrivateDnsVerificationInputDict) + ) + await client.start_vpc_endpoint_service_private_dns_verification( + _request(StartVpcEndpointServicePrivateDnsVerificationInput) + ) + await client.start_vpc_endpoint_service_private_dns_verification( + _request(StartVpcEndpointServicePrivateDnsVerificationInputDict) + ) + await client.stop_instances(instance_ids=_) + await client.stop_instances(**_request(StopInstancesInputDict)) + await client.stop_instances(_request(StopInstancesInput)) + await client.stop_instances(_request(StopInstancesInputDict)) + await client.terminate_client_vpn_connections(client_vpn_endpoint_id=_) + await client.terminate_client_vpn_connections( + **_request(TerminateClientVpnConnectionsInputDict) + ) + await client.terminate_client_vpn_connections( + _request(TerminateClientVpnConnectionsInput) + ) + await client.terminate_client_vpn_connections( + _request(TerminateClientVpnConnectionsInputDict) + ) + await client.terminate_instances(instance_ids=_) + await client.terminate_instances(**_request(TerminateInstancesInputDict)) + await client.terminate_instances(_request(TerminateInstancesInput)) + await client.terminate_instances(_request(TerminateInstancesInputDict)) + await client.unassign_ipv6_addresses(network_interface_id=_) + await client.unassign_ipv6_addresses(**_request(UnassignIpv6AddressesInputDict)) + await client.unassign_ipv6_addresses(_request(UnassignIpv6AddressesInput)) + await client.unassign_ipv6_addresses(_request(UnassignIpv6AddressesInputDict)) + await client.unassign_private_ip_addresses(network_interface_id=_) + await client.unassign_private_ip_addresses( + **_request(UnassignPrivateIpAddressesInputDict) + ) + await client.unassign_private_ip_addresses( + _request(UnassignPrivateIpAddressesInput) + ) + await client.unassign_private_ip_addresses( + _request(UnassignPrivateIpAddressesInputDict) + ) + await client.unassign_private_nat_gateway_address( + nat_gateway_id=_, private_ip_addresses=_ + ) + await client.unassign_private_nat_gateway_address( + **_request(UnassignPrivateNatGatewayAddressInputDict) + ) + await client.unassign_private_nat_gateway_address( + _request(UnassignPrivateNatGatewayAddressInput) + ) + await client.unassign_private_nat_gateway_address( + _request(UnassignPrivateNatGatewayAddressInputDict) + ) + await client.unlock_snapshot(snapshot_id=_) + await client.unlock_snapshot(**_request(UnlockSnapshotInputDict)) + await client.unlock_snapshot(_request(UnlockSnapshotInput)) + await client.unlock_snapshot(_request(UnlockSnapshotInputDict)) + await client.unmonitor_instances(instance_ids=_) + await client.unmonitor_instances(**_request(UnmonitorInstancesInputDict)) + await client.unmonitor_instances(_request(UnmonitorInstancesInput)) + await client.unmonitor_instances(_request(UnmonitorInstancesInputDict)) + await client.update_capacity_manager_monitored_tag_keys() + await client.update_capacity_manager_monitored_tag_keys( + **_request(UpdateCapacityManagerMonitoredTagKeysInputDict) + ) + await client.update_capacity_manager_monitored_tag_keys( + _request(UpdateCapacityManagerMonitoredTagKeysInput) + ) + await client.update_capacity_manager_monitored_tag_keys( + _request(UpdateCapacityManagerMonitoredTagKeysInputDict) + ) + await client.update_capacity_manager_organizations_access(organizations_access=_) + await client.update_capacity_manager_organizations_access( + **_request(UpdateCapacityManagerOrganizationsAccessInputDict) + ) + await client.update_capacity_manager_organizations_access( + _request(UpdateCapacityManagerOrganizationsAccessInput) + ) + await client.update_capacity_manager_organizations_access( + _request(UpdateCapacityManagerOrganizationsAccessInputDict) + ) + await client.update_interruptible_capacity_reservation_allocation( + capacity_reservation_id=_ + ) + await client.update_interruptible_capacity_reservation_allocation( + **_request(UpdateInterruptibleCapacityReservationAllocationInputDict) + ) + await client.update_interruptible_capacity_reservation_allocation( + _request(UpdateInterruptibleCapacityReservationAllocationInput) + ) + await client.update_interruptible_capacity_reservation_allocation( + _request(UpdateInterruptibleCapacityReservationAllocationInputDict) + ) + await client.update_security_group_rule_descriptions_egress() + await client.update_security_group_rule_descriptions_egress( + **_request(UpdateSecurityGroupRuleDescriptionsEgressInputDict) + ) + await client.update_security_group_rule_descriptions_egress( + _request(UpdateSecurityGroupRuleDescriptionsEgressInput) + ) + await client.update_security_group_rule_descriptions_egress( + _request(UpdateSecurityGroupRuleDescriptionsEgressInputDict) + ) + await client.update_security_group_rule_descriptions_ingress() + await client.update_security_group_rule_descriptions_ingress( + **_request(UpdateSecurityGroupRuleDescriptionsIngressInputDict) + ) + await client.update_security_group_rule_descriptions_ingress( + _request(UpdateSecurityGroupRuleDescriptionsIngressInput) + ) + await client.update_security_group_rule_descriptions_ingress( + _request(UpdateSecurityGroupRuleDescriptionsIngressInputDict) + ) + await client.validate_security_group_quotas_for_interface(security_group_ids=_) + await client.validate_security_group_quotas_for_interface( + **_request(ValidateSecurityGroupQuotasForInterfaceInputDict) + ) + await client.validate_security_group_quotas_for_interface( + _request(ValidateSecurityGroupQuotasForInterfaceInput) + ) + await client.validate_security_group_quotas_for_interface( + _request(ValidateSecurityGroupQuotasForInterfaceInputDict) + ) + await client.withdraw_byoip_cidr(cidr=_) + await client.withdraw_byoip_cidr(**_request(WithdrawByoipCidrInputDict)) + await client.withdraw_byoip_cidr(_request(WithdrawByoipCidrInput)) + await client.withdraw_byoip_cidr(_request(WithdrawByoipCidrInputDict)) + + +def check_sync_calls(client: EC2Client) -> None: + pass + client.accept_address_transfer(address=_) + client.accept_address_transfer(**_request(AcceptAddressTransferInputDict)) + client.accept_address_transfer(_request(AcceptAddressTransferInput)) + client.accept_address_transfer(_request(AcceptAddressTransferInputDict)) + client.accept_capacity_reservation_billing_ownership(capacity_reservation_id=_) + client.accept_capacity_reservation_billing_ownership( + **_request(AcceptCapacityReservationBillingOwnershipInputDict) + ) + client.accept_capacity_reservation_billing_ownership( + _request(AcceptCapacityReservationBillingOwnershipInput) + ) + client.accept_capacity_reservation_billing_ownership( + _request(AcceptCapacityReservationBillingOwnershipInputDict) + ) + client.accept_reserved_instances_exchange_quote(reserved_instance_ids=_) + client.accept_reserved_instances_exchange_quote( + **_request(AcceptReservedInstancesExchangeQuoteInputDict) + ) + client.accept_reserved_instances_exchange_quote( + _request(AcceptReservedInstancesExchangeQuoteInput) + ) + client.accept_reserved_instances_exchange_quote( + _request(AcceptReservedInstancesExchangeQuoteInputDict) + ) + client.accept_transit_gateway_client_vpn_attachment(transit_gateway_attachment_id=_) + client.accept_transit_gateway_client_vpn_attachment( + **_request(AcceptTransitGatewayClientVpnAttachmentInputDict) + ) + client.accept_transit_gateway_client_vpn_attachment( + _request(AcceptTransitGatewayClientVpnAttachmentInput) + ) + client.accept_transit_gateway_client_vpn_attachment( + _request(AcceptTransitGatewayClientVpnAttachmentInputDict) + ) + client.accept_transit_gateway_multicast_domain_associations() + client.accept_transit_gateway_multicast_domain_associations( + **_request(AcceptTransitGatewayMulticastDomainAssociationsInputDict) + ) + client.accept_transit_gateway_multicast_domain_associations( + _request(AcceptTransitGatewayMulticastDomainAssociationsInput) + ) + client.accept_transit_gateway_multicast_domain_associations( + _request(AcceptTransitGatewayMulticastDomainAssociationsInputDict) + ) + client.accept_transit_gateway_peering_attachment(transit_gateway_attachment_id=_) + client.accept_transit_gateway_peering_attachment( + **_request(AcceptTransitGatewayPeeringAttachmentInputDict) + ) + client.accept_transit_gateway_peering_attachment( + _request(AcceptTransitGatewayPeeringAttachmentInput) + ) + client.accept_transit_gateway_peering_attachment( + _request(AcceptTransitGatewayPeeringAttachmentInputDict) + ) + client.accept_transit_gateway_vpc_attachment(transit_gateway_attachment_id=_) + client.accept_transit_gateway_vpc_attachment( + **_request(AcceptTransitGatewayVpcAttachmentInputDict) + ) + client.accept_transit_gateway_vpc_attachment( + _request(AcceptTransitGatewayVpcAttachmentInput) + ) + client.accept_transit_gateway_vpc_attachment( + _request(AcceptTransitGatewayVpcAttachmentInputDict) + ) + client.accept_vpc_endpoint_connections(service_id=_, vpc_endpoint_ids=_) + client.accept_vpc_endpoint_connections( + **_request(AcceptVpcEndpointConnectionsInputDict) + ) + client.accept_vpc_endpoint_connections(_request(AcceptVpcEndpointConnectionsInput)) + client.accept_vpc_endpoint_connections( + _request(AcceptVpcEndpointConnectionsInputDict) + ) + client.accept_vpc_peering_connection(vpc_peering_connection_id=_) + client.accept_vpc_peering_connection( + **_request(AcceptVpcPeeringConnectionInputDict) + ) + client.accept_vpc_peering_connection(_request(AcceptVpcPeeringConnectionInput)) + client.accept_vpc_peering_connection(_request(AcceptVpcPeeringConnectionInputDict)) + client.advertise_byoip_cidr(cidr=_) + client.advertise_byoip_cidr(**_request(AdvertiseByoipCidrInputDict)) + client.advertise_byoip_cidr(_request(AdvertiseByoipCidrInput)) + client.advertise_byoip_cidr(_request(AdvertiseByoipCidrInputDict)) + client.allocate_address() + client.allocate_address(**_request(AllocateAddressInputDict)) + client.allocate_address(_request(AllocateAddressInput)) + client.allocate_address(_request(AllocateAddressInputDict)) + client.allocate_hosts() + client.allocate_hosts(**_request(AllocateHostsInputDict)) + client.allocate_hosts(_request(AllocateHostsInput)) + client.allocate_hosts(_request(AllocateHostsInputDict)) + client.allocate_ipam_pool_cidr(ipam_pool_id=_) + client.allocate_ipam_pool_cidr(**_request(AllocateIpamPoolCidrInputDict)) + client.allocate_ipam_pool_cidr(_request(AllocateIpamPoolCidrInput)) + client.allocate_ipam_pool_cidr(_request(AllocateIpamPoolCidrInputDict)) + client.apply_security_groups_to_client_vpn_target_network( + client_vpn_endpoint_id=_, vpc_id=_, security_group_ids=_ + ) + client.apply_security_groups_to_client_vpn_target_network( + **_request(ApplySecurityGroupsToClientVpnTargetNetworkInputDict) + ) + client.apply_security_groups_to_client_vpn_target_network( + _request(ApplySecurityGroupsToClientVpnTargetNetworkInput) + ) + client.apply_security_groups_to_client_vpn_target_network( + _request(ApplySecurityGroupsToClientVpnTargetNetworkInputDict) + ) + client.assign_ipv6_addresses(network_interface_id=_) + client.assign_ipv6_addresses(**_request(AssignIpv6AddressesInputDict)) + client.assign_ipv6_addresses(_request(AssignIpv6AddressesInput)) + client.assign_ipv6_addresses(_request(AssignIpv6AddressesInputDict)) + client.assign_private_ip_addresses(network_interface_id=_) + client.assign_private_ip_addresses(**_request(AssignPrivateIpAddressesInputDict)) + client.assign_private_ip_addresses(_request(AssignPrivateIpAddressesInput)) + client.assign_private_ip_addresses(_request(AssignPrivateIpAddressesInputDict)) + client.assign_private_nat_gateway_address(nat_gateway_id=_) + client.assign_private_nat_gateway_address( + **_request(AssignPrivateNatGatewayAddressInputDict) + ) + client.assign_private_nat_gateway_address( + _request(AssignPrivateNatGatewayAddressInput) + ) + client.assign_private_nat_gateway_address( + _request(AssignPrivateNatGatewayAddressInputDict) + ) + client.associate_address() + client.associate_address(**_request(AssociateAddressInputDict)) + client.associate_address(_request(AssociateAddressInput)) + client.associate_address(_request(AssociateAddressInputDict)) + client.associate_application_status_check(application_status_check_id=_) + client.associate_application_status_check( + **_request(AssociateApplicationStatusCheckInputDict) + ) + client.associate_application_status_check( + _request(AssociateApplicationStatusCheckInput) + ) + client.associate_application_status_check( + _request(AssociateApplicationStatusCheckInputDict) + ) + client.associate_capacity_reservation_billing_owner( + capacity_reservation_id=_, unused_reservation_billing_owner_id=_ + ) + client.associate_capacity_reservation_billing_owner( + **_request(AssociateCapacityReservationBillingOwnerInputDict) + ) + client.associate_capacity_reservation_billing_owner( + _request(AssociateCapacityReservationBillingOwnerInput) + ) + client.associate_capacity_reservation_billing_owner( + _request(AssociateCapacityReservationBillingOwnerInputDict) + ) + client.associate_client_vpn_target_network(client_vpn_endpoint_id=_) + client.associate_client_vpn_target_network( + **_request(AssociateClientVpnTargetNetworkInputDict) + ) + client.associate_client_vpn_target_network( + _request(AssociateClientVpnTargetNetworkInput) + ) + client.associate_client_vpn_target_network( + _request(AssociateClientVpnTargetNetworkInputDict) + ) + client.associate_dhcp_options(dhcp_options_id=_, vpc_id=_) + client.associate_dhcp_options(**_request(AssociateDhcpOptionsInputDict)) + client.associate_dhcp_options(_request(AssociateDhcpOptionsInput)) + client.associate_dhcp_options(_request(AssociateDhcpOptionsInputDict)) + client.associate_enclave_certificate_iam_role(certificate_arn=_, role_arn=_) + client.associate_enclave_certificate_iam_role( + **_request(AssociateEnclaveCertificateIamRoleInputDict) + ) + client.associate_enclave_certificate_iam_role( + _request(AssociateEnclaveCertificateIamRoleInput) + ) + client.associate_enclave_certificate_iam_role( + _request(AssociateEnclaveCertificateIamRoleInputDict) + ) + client.associate_iam_instance_profile(iam_instance_profile=_, instance_id=_) + client.associate_iam_instance_profile( + **_request(AssociateIamInstanceProfileInputDict) + ) + client.associate_iam_instance_profile(_request(AssociateIamInstanceProfileInput)) + client.associate_iam_instance_profile( + _request(AssociateIamInstanceProfileInputDict) + ) + client.associate_instance_event_window( + instance_event_window_id=_, association_target=_ + ) + client.associate_instance_event_window( + **_request(AssociateInstanceEventWindowInputDict) + ) + client.associate_instance_event_window(_request(AssociateInstanceEventWindowInput)) + client.associate_instance_event_window( + _request(AssociateInstanceEventWindowInputDict) + ) + client.associate_ipam_byoasn(asn=_, cidr=_) + client.associate_ipam_byoasn(**_request(AssociateIpamByoasnInputDict)) + client.associate_ipam_byoasn(_request(AssociateIpamByoasnInput)) + client.associate_ipam_byoasn(_request(AssociateIpamByoasnInputDict)) + client.associate_ipam_resource_discovery(ipam_id=_, ipam_resource_discovery_id=_) + client.associate_ipam_resource_discovery( + **_request(AssociateIpamResourceDiscoveryInputDict) + ) + client.associate_ipam_resource_discovery( + _request(AssociateIpamResourceDiscoveryInput) + ) + client.associate_ipam_resource_discovery( + _request(AssociateIpamResourceDiscoveryInputDict) + ) + client.associate_nat_gateway_address(nat_gateway_id=_, allocation_ids=_) + client.associate_nat_gateway_address( + **_request(AssociateNatGatewayAddressInputDict) + ) + client.associate_nat_gateway_address(_request(AssociateNatGatewayAddressInput)) + client.associate_nat_gateway_address(_request(AssociateNatGatewayAddressInputDict)) + client.associate_route_server(route_server_id=_, vpc_id=_) + client.associate_route_server(**_request(AssociateRouteServerInputDict)) + client.associate_route_server(_request(AssociateRouteServerInput)) + client.associate_route_server(_request(AssociateRouteServerInputDict)) + client.associate_route_table(route_table_id=_) + client.associate_route_table(**_request(AssociateRouteTableInputDict)) + client.associate_route_table(_request(AssociateRouteTableInput)) + client.associate_route_table(_request(AssociateRouteTableInputDict)) + client.associate_security_group_vpc(group_id=_, vpc_id=_) + client.associate_security_group_vpc(**_request(AssociateSecurityGroupVpcInputDict)) + client.associate_security_group_vpc(_request(AssociateSecurityGroupVpcInput)) + client.associate_security_group_vpc(_request(AssociateSecurityGroupVpcInputDict)) + client.associate_subnet_cidr_block(subnet_id=_) + client.associate_subnet_cidr_block(**_request(AssociateSubnetCidrBlockInputDict)) + client.associate_subnet_cidr_block(_request(AssociateSubnetCidrBlockInput)) + client.associate_subnet_cidr_block(_request(AssociateSubnetCidrBlockInputDict)) + client.associate_transit_gateway_multicast_domain( + transit_gateway_multicast_domain_id=_, + transit_gateway_attachment_id=_, + subnet_ids=_, + ) + client.associate_transit_gateway_multicast_domain( + **_request(AssociateTransitGatewayMulticastDomainInputDict) + ) + client.associate_transit_gateway_multicast_domain( + _request(AssociateTransitGatewayMulticastDomainInput) + ) + client.associate_transit_gateway_multicast_domain( + _request(AssociateTransitGatewayMulticastDomainInputDict) + ) + client.associate_transit_gateway_policy_table( + transit_gateway_policy_table_id=_, transit_gateway_attachment_id=_ + ) + client.associate_transit_gateway_policy_table( + **_request(AssociateTransitGatewayPolicyTableInputDict) + ) + client.associate_transit_gateway_policy_table( + _request(AssociateTransitGatewayPolicyTableInput) + ) + client.associate_transit_gateway_policy_table( + _request(AssociateTransitGatewayPolicyTableInputDict) + ) + client.associate_transit_gateway_route_table( + transit_gateway_route_table_id=_, transit_gateway_attachment_id=_ + ) + client.associate_transit_gateway_route_table( + **_request(AssociateTransitGatewayRouteTableInputDict) + ) + client.associate_transit_gateway_route_table( + _request(AssociateTransitGatewayRouteTableInput) + ) + client.associate_transit_gateway_route_table( + _request(AssociateTransitGatewayRouteTableInputDict) + ) + client.associate_trunk_interface(branch_interface_id=_, trunk_interface_id=_) + client.associate_trunk_interface(**_request(AssociateTrunkInterfaceInputDict)) + client.associate_trunk_interface(_request(AssociateTrunkInterfaceInput)) + client.associate_trunk_interface(_request(AssociateTrunkInterfaceInputDict)) + client.associate_vpc_cidr_block(vpc_id=_) + client.associate_vpc_cidr_block(**_request(AssociateVpcCidrBlockInputDict)) + client.associate_vpc_cidr_block(_request(AssociateVpcCidrBlockInput)) + client.associate_vpc_cidr_block(_request(AssociateVpcCidrBlockInputDict)) + client.attach_classic_link_vpc(instance_id=_, vpc_id=_, groups=_) + client.attach_classic_link_vpc(**_request(AttachClassicLinkVpcInputDict)) + client.attach_classic_link_vpc(_request(AttachClassicLinkVpcInput)) + client.attach_classic_link_vpc(_request(AttachClassicLinkVpcInputDict)) + client.attach_image_watermark(image_id=_, watermark_name=_) + client.attach_image_watermark(**_request(AttachImageWatermarkInputDict)) + client.attach_image_watermark(_request(AttachImageWatermarkInput)) + client.attach_image_watermark(_request(AttachImageWatermarkInputDict)) + client.attach_internet_gateway(internet_gateway_id=_, vpc_id=_) + client.attach_internet_gateway(**_request(AttachInternetGatewayInputDict)) + client.attach_internet_gateway(_request(AttachInternetGatewayInput)) + client.attach_internet_gateway(_request(AttachInternetGatewayInputDict)) + client.attach_network_interface( + network_interface_id=_, instance_id=_, device_index=_ + ) + client.attach_network_interface(**_request(AttachNetworkInterfaceInputDict)) + client.attach_network_interface(_request(AttachNetworkInterfaceInput)) + client.attach_network_interface(_request(AttachNetworkInterfaceInputDict)) + client.attach_verified_access_trust_provider( + verified_access_instance_id=_, verified_access_trust_provider_id=_ + ) + client.attach_verified_access_trust_provider( + **_request(AttachVerifiedAccessTrustProviderInputDict) + ) + client.attach_verified_access_trust_provider( + _request(AttachVerifiedAccessTrustProviderInput) + ) + client.attach_verified_access_trust_provider( + _request(AttachVerifiedAccessTrustProviderInputDict) + ) + client.attach_volume(device=_, instance_id=_, volume_id=_) + client.attach_volume(**_request(AttachVolumeInputDict)) + client.attach_volume(_request(AttachVolumeInput)) + client.attach_volume(_request(AttachVolumeInputDict)) + client.attach_vpn_gateway(vpc_id=_, vpn_gateway_id=_) + client.attach_vpn_gateway(**_request(AttachVpnGatewayInputDict)) + client.attach_vpn_gateway(_request(AttachVpnGatewayInput)) + client.attach_vpn_gateway(_request(AttachVpnGatewayInputDict)) + client.authorize_client_vpn_ingress(client_vpn_endpoint_id=_, target_network_cidr=_) + client.authorize_client_vpn_ingress(**_request(AuthorizeClientVpnIngressInputDict)) + client.authorize_client_vpn_ingress(_request(AuthorizeClientVpnIngressInput)) + client.authorize_client_vpn_ingress(_request(AuthorizeClientVpnIngressInputDict)) + client.authorize_security_group_egress(group_id=_) + client.authorize_security_group_egress( + **_request(AuthorizeSecurityGroupEgressInputDict) + ) + client.authorize_security_group_egress(_request(AuthorizeSecurityGroupEgressInput)) + client.authorize_security_group_egress( + _request(AuthorizeSecurityGroupEgressInputDict) + ) + client.authorize_security_group_ingress() + client.authorize_security_group_ingress( + **_request(AuthorizeSecurityGroupIngressInputDict) + ) + client.authorize_security_group_ingress( + _request(AuthorizeSecurityGroupIngressInput) + ) + client.authorize_security_group_ingress( + _request(AuthorizeSecurityGroupIngressInputDict) + ) + client.batch_modify_ipam_routing_policy_registrations( + ipam_internet_registry_association_id=_, delta_json=_ + ) + client.batch_modify_ipam_routing_policy_registrations( + **_request(BatchModifyIpamRoutingPolicyRegistrationsInputDict) + ) + client.batch_modify_ipam_routing_policy_registrations( + _request(BatchModifyIpamRoutingPolicyRegistrationsInput) + ) + client.batch_modify_ipam_routing_policy_registrations( + _request(BatchModifyIpamRoutingPolicyRegistrationsInputDict) + ) + client.bundle_instance(instance_id=_, storage=_) + client.bundle_instance(**_request(BundleInstanceInputDict)) + client.bundle_instance(_request(BundleInstanceInput)) + client.bundle_instance(_request(BundleInstanceInputDict)) + client.cancel_bundle_task(bundle_id=_) + client.cancel_bundle_task(**_request(CancelBundleTaskInputDict)) + client.cancel_bundle_task(_request(CancelBundleTaskInput)) + client.cancel_bundle_task(_request(CancelBundleTaskInputDict)) + client.cancel_capacity_reservation(capacity_reservation_id=_) + client.cancel_capacity_reservation(**_request(CancelCapacityReservationInputDict)) + client.cancel_capacity_reservation(_request(CancelCapacityReservationInput)) + client.cancel_capacity_reservation(_request(CancelCapacityReservationInputDict)) + client.cancel_capacity_reservation_fleets(capacity_reservation_fleet_ids=_) + client.cancel_capacity_reservation_fleets( + **_request(CancelCapacityReservationFleetsInputDict) + ) + client.cancel_capacity_reservation_fleets( + _request(CancelCapacityReservationFleetsInput) + ) + client.cancel_capacity_reservation_fleets( + _request(CancelCapacityReservationFleetsInputDict) + ) + client.cancel_conversion_task(conversion_task_id=_) + client.cancel_conversion_task(**_request(CancelConversionTaskInputDict)) + client.cancel_conversion_task(_request(CancelConversionTaskInput)) + client.cancel_conversion_task(_request(CancelConversionTaskInputDict)) + client.cancel_declarative_policies_report(report_id=_) + client.cancel_declarative_policies_report( + **_request(CancelDeclarativePoliciesReportInputDict) + ) + client.cancel_declarative_policies_report( + _request(CancelDeclarativePoliciesReportInput) + ) + client.cancel_declarative_policies_report( + _request(CancelDeclarativePoliciesReportInputDict) + ) + client.cancel_export_task(export_task_id=_) + client.cancel_export_task(**_request(CancelExportTaskInputDict)) + client.cancel_export_task(_request(CancelExportTaskInput)) + client.cancel_export_task(_request(CancelExportTaskInputDict)) + client.cancel_image_launch_permission(image_id=_) + client.cancel_image_launch_permission( + **_request(CancelImageLaunchPermissionInputDict) + ) + client.cancel_image_launch_permission(_request(CancelImageLaunchPermissionInput)) + client.cancel_image_launch_permission( + _request(CancelImageLaunchPermissionInputDict) + ) + client.cancel_import_task() + client.cancel_import_task(**_request(CancelImportTaskInputDict)) + client.cancel_import_task(_request(CancelImportTaskInput)) + client.cancel_import_task(_request(CancelImportTaskInputDict)) + client.cancel_reserved_instances_listing(reserved_instances_listing_id=_) + client.cancel_reserved_instances_listing( + **_request(CancelReservedInstancesListingInputDict) + ) + client.cancel_reserved_instances_listing( + _request(CancelReservedInstancesListingInput) + ) + client.cancel_reserved_instances_listing( + _request(CancelReservedInstancesListingInputDict) + ) + client.cancel_spot_fleet_requests(spot_fleet_request_ids=_, terminate_instances=_) + client.cancel_spot_fleet_requests(**_request(CancelSpotFleetRequestsInputDict)) + client.cancel_spot_fleet_requests(_request(CancelSpotFleetRequestsInput)) + client.cancel_spot_fleet_requests(_request(CancelSpotFleetRequestsInputDict)) + client.cancel_spot_instance_requests(spot_instance_request_ids=_) + client.cancel_spot_instance_requests( + **_request(CancelSpotInstanceRequestsInputDict) + ) + client.cancel_spot_instance_requests(_request(CancelSpotInstanceRequestsInput)) + client.cancel_spot_instance_requests(_request(CancelSpotInstanceRequestsInputDict)) + client.confirm_product_instance(instance_id=_, product_code=_) + client.confirm_product_instance(**_request(ConfirmProductInstanceInputDict)) + client.confirm_product_instance(_request(ConfirmProductInstanceInput)) + client.confirm_product_instance(_request(ConfirmProductInstanceInputDict)) + client.copy_fpga_image(source_fpga_image_id=_, source_region=_) + client.copy_fpga_image(**_request(CopyFpgaImageInputDict)) + client.copy_fpga_image(_request(CopyFpgaImageInput)) + client.copy_fpga_image(_request(CopyFpgaImageInputDict)) + client.copy_image(name=_, source_image_id=_, source_region=_) + client.copy_image(**_request(CopyImageInputDict)) + client.copy_image(_request(CopyImageInput)) + client.copy_image(_request(CopyImageInputDict)) + client.copy_snapshot(source_region=_, source_snapshot_id=_) + client.copy_snapshot(**_request(CopySnapshotInputDict)) + client.copy_snapshot(_request(CopySnapshotInput)) + client.copy_snapshot(_request(CopySnapshotInputDict)) + client.copy_volumes(source_volume_id=_) + client.copy_volumes(**_request(CopyVolumesInputDict)) + client.copy_volumes(_request(CopyVolumesInput)) + client.copy_volumes(_request(CopyVolumesInputDict)) + client.create_application_status_check(protocol=_, port=_) + client.create_application_status_check( + **_request(CreateApplicationStatusCheckInputDict) + ) + client.create_application_status_check(_request(CreateApplicationStatusCheckInput)) + client.create_application_status_check( + _request(CreateApplicationStatusCheckInputDict) + ) + client.create_capacity_manager_data_export( + s3_bucket_name=_, schedule=_, output_format=_ + ) + client.create_capacity_manager_data_export( + **_request(CreateCapacityManagerDataExportInputDict) + ) + client.create_capacity_manager_data_export( + _request(CreateCapacityManagerDataExportInput) + ) + client.create_capacity_manager_data_export( + _request(CreateCapacityManagerDataExportInputDict) + ) + client.create_capacity_reservation( + instance_type=_, instance_platform=_, instance_count=_ + ) + client.create_capacity_reservation(**_request(CreateCapacityReservationInputDict)) + client.create_capacity_reservation(_request(CreateCapacityReservationInput)) + client.create_capacity_reservation(_request(CreateCapacityReservationInputDict)) + client.create_capacity_reservation_by_splitting( + source_capacity_reservation_id=_, instance_count=_ + ) + client.create_capacity_reservation_by_splitting( + **_request(CreateCapacityReservationBySplittingInputDict) + ) + client.create_capacity_reservation_by_splitting( + _request(CreateCapacityReservationBySplittingInput) + ) + client.create_capacity_reservation_by_splitting( + _request(CreateCapacityReservationBySplittingInputDict) + ) + client.create_capacity_reservation_cancellation_quote(capacity_reservation_id=_) + client.create_capacity_reservation_cancellation_quote( + **_request(CreateCapacityReservationCancellationQuoteInputDict) + ) + client.create_capacity_reservation_cancellation_quote( + _request(CreateCapacityReservationCancellationQuoteInput) + ) + client.create_capacity_reservation_cancellation_quote( + _request(CreateCapacityReservationCancellationQuoteInputDict) + ) + client.create_capacity_reservation_date_change_quote( + capacity_reservation_id=_, new_start_date=_ + ) + client.create_capacity_reservation_date_change_quote( + **_request(CreateCapacityReservationDateChangeQuoteInputDict) + ) + client.create_capacity_reservation_date_change_quote( + _request(CreateCapacityReservationDateChangeQuoteInput) + ) + client.create_capacity_reservation_date_change_quote( + _request(CreateCapacityReservationDateChangeQuoteInputDict) + ) + client.create_capacity_reservation_fleet(total_target_capacity=_) + client.create_capacity_reservation_fleet( + **_request(CreateCapacityReservationFleetInputDict) + ) + client.create_capacity_reservation_fleet( + _request(CreateCapacityReservationFleetInput) + ) + client.create_capacity_reservation_fleet( + _request(CreateCapacityReservationFleetInputDict) + ) + client.create_carrier_gateway(vpc_id=_) + client.create_carrier_gateway(**_request(CreateCarrierGatewayInputDict)) + client.create_carrier_gateway(_request(CreateCarrierGatewayInput)) + client.create_carrier_gateway(_request(CreateCarrierGatewayInputDict)) + client.create_client_vpn_endpoint( + server_certificate_arn=_, authentication_options=_, connection_log_options=_ + ) + client.create_client_vpn_endpoint(**_request(CreateClientVpnEndpointInputDict)) + client.create_client_vpn_endpoint(_request(CreateClientVpnEndpointInput)) + client.create_client_vpn_endpoint(_request(CreateClientVpnEndpointInputDict)) + client.create_client_vpn_route(client_vpn_endpoint_id=_, destination_cidr_block=_) + client.create_client_vpn_route(**_request(CreateClientVpnRouteInputDict)) + client.create_client_vpn_route(_request(CreateClientVpnRouteInput)) + client.create_client_vpn_route(_request(CreateClientVpnRouteInputDict)) + client.create_coip_cidr(cidr=_, coip_pool_id=_) + client.create_coip_cidr(**_request(CreateCoipCidrInputDict)) + client.create_coip_cidr(_request(CreateCoipCidrInput)) + client.create_coip_cidr(_request(CreateCoipCidrInputDict)) + client.create_coip_pool(local_gateway_route_table_id=_) + client.create_coip_pool(**_request(CreateCoipPoolInputDict)) + client.create_coip_pool(_request(CreateCoipPoolInput)) + client.create_coip_pool(_request(CreateCoipPoolInputDict)) + client.create_customer_gateway(type=_) + client.create_customer_gateway(**_request(CreateCustomerGatewayInputDict)) + client.create_customer_gateway(_request(CreateCustomerGatewayInput)) + client.create_customer_gateway(_request(CreateCustomerGatewayInputDict)) + client.create_default_subnet() + client.create_default_subnet(**_request(CreateDefaultSubnetInputDict)) + client.create_default_subnet(_request(CreateDefaultSubnetInput)) + client.create_default_subnet(_request(CreateDefaultSubnetInputDict)) + client.create_default_vpc() + client.create_default_vpc(**_request(CreateDefaultVpcInputDict)) + client.create_default_vpc(_request(CreateDefaultVpcInput)) + client.create_default_vpc(_request(CreateDefaultVpcInputDict)) + client.create_delegate_mac_volume_ownership_task(instance_id=_, mac_credentials=_) + client.create_delegate_mac_volume_ownership_task( + **_request(CreateDelegateMacVolumeOwnershipTaskInputDict) + ) + client.create_delegate_mac_volume_ownership_task( + _request(CreateDelegateMacVolumeOwnershipTaskInput) + ) + client.create_delegate_mac_volume_ownership_task( + _request(CreateDelegateMacVolumeOwnershipTaskInputDict) + ) + client.create_dhcp_options(dhcp_configurations=_) + client.create_dhcp_options(**_request(CreateDhcpOptionsInputDict)) + client.create_dhcp_options(_request(CreateDhcpOptionsInput)) + client.create_dhcp_options(_request(CreateDhcpOptionsInputDict)) + client.create_egress_only_internet_gateway(vpc_id=_) + client.create_egress_only_internet_gateway( + **_request(CreateEgressOnlyInternetGatewayInputDict) + ) + client.create_egress_only_internet_gateway( + _request(CreateEgressOnlyInternetGatewayInput) + ) + client.create_egress_only_internet_gateway( + _request(CreateEgressOnlyInternetGatewayInputDict) + ) + client.create_fleet(launch_template_configs=_, target_capacity_specification=_) + client.create_fleet(**_request(CreateFleetInputDict)) + client.create_fleet(_request(CreateFleetInput)) + client.create_fleet(_request(CreateFleetInputDict)) + client.create_flow_logs(resource_ids=_, resource_type=_) + client.create_flow_logs(**_request(CreateFlowLogsInputDict)) + client.create_flow_logs(_request(CreateFlowLogsInput)) + client.create_flow_logs(_request(CreateFlowLogsInputDict)) + client.create_fpga_image(input_storage_location=_) + client.create_fpga_image(**_request(CreateFpgaImageInputDict)) + client.create_fpga_image(_request(CreateFpgaImageInput)) + client.create_fpga_image(_request(CreateFpgaImageInputDict)) + client.create_image(instance_id=_, name=_) + client.create_image(**_request(CreateImageInputDict)) + client.create_image(_request(CreateImageInput)) + client.create_image(_request(CreateImageInputDict)) + client.create_image_usage_report(image_id=_, resource_types=_) + client.create_image_usage_report(**_request(CreateImageUsageReportInputDict)) + client.create_image_usage_report(_request(CreateImageUsageReportInput)) + client.create_image_usage_report(_request(CreateImageUsageReportInputDict)) + client.create_instance_connect_endpoint(subnet_id=_) + client.create_instance_connect_endpoint( + **_request(CreateInstanceConnectEndpointInputDict) + ) + client.create_instance_connect_endpoint( + _request(CreateInstanceConnectEndpointInput) + ) + client.create_instance_connect_endpoint( + _request(CreateInstanceConnectEndpointInputDict) + ) + client.create_instance_event_window() + client.create_instance_event_window(**_request(CreateInstanceEventWindowInputDict)) + client.create_instance_event_window(_request(CreateInstanceEventWindowInput)) + client.create_instance_event_window(_request(CreateInstanceEventWindowInputDict)) + client.create_instance_export_task( + instance_id=_, target_environment=_, export_to_s3_task=_ + ) + client.create_instance_export_task(**_request(CreateInstanceExportTaskInputDict)) + client.create_instance_export_task(_request(CreateInstanceExportTaskInput)) + client.create_instance_export_task(_request(CreateInstanceExportTaskInputDict)) + client.create_internet_gateway() + client.create_internet_gateway(**_request(CreateInternetGatewayInputDict)) + client.create_internet_gateway(_request(CreateInternetGatewayInput)) + client.create_internet_gateway(_request(CreateInternetGatewayInputDict)) + client.create_interruptible_capacity_reservation_allocation( + capacity_reservation_id=_, instance_count=_ + ) + client.create_interruptible_capacity_reservation_allocation( + **_request(CreateInterruptibleCapacityReservationAllocationInputDict) + ) + client.create_interruptible_capacity_reservation_allocation( + _request(CreateInterruptibleCapacityReservationAllocationInput) + ) + client.create_interruptible_capacity_reservation_allocation( + _request(CreateInterruptibleCapacityReservationAllocationInputDict) + ) + client.create_ipam() + client.create_ipam(**_request(CreateIpamInputDict)) + client.create_ipam(_request(CreateIpamInput)) + client.create_ipam(_request(CreateIpamInputDict)) + client.create_ipam_external_resource_verification_token(ipam_id=_) + client.create_ipam_external_resource_verification_token( + **_request(CreateIpamExternalResourceVerificationTokenInputDict) + ) + client.create_ipam_external_resource_verification_token( + _request(CreateIpamExternalResourceVerificationTokenInput) + ) + client.create_ipam_external_resource_verification_token( + _request(CreateIpamExternalResourceVerificationTokenInputDict) + ) + client.create_ipam_internet_registry_association( + ipam_id=_, rir=_, organization_handle=_ + ) + client.create_ipam_internet_registry_association( + **_request(CreateIpamInternetRegistryAssociationInputDict) + ) + client.create_ipam_internet_registry_association( + _request(CreateIpamInternetRegistryAssociationInput) + ) + client.create_ipam_internet_registry_association( + _request(CreateIpamInternetRegistryAssociationInputDict) + ) + client.create_ipam_policy(ipam_id=_) + client.create_ipam_policy(**_request(CreateIpamPolicyInputDict)) + client.create_ipam_policy(_request(CreateIpamPolicyInput)) + client.create_ipam_policy(_request(CreateIpamPolicyInputDict)) + client.create_ipam_pool(ipam_scope_id=_, address_family=_) + client.create_ipam_pool(**_request(CreateIpamPoolInputDict)) + client.create_ipam_pool(_request(CreateIpamPoolInput)) + client.create_ipam_pool(_request(CreateIpamPoolInputDict)) + client.create_ipam_prefix_list_resolver(ipam_id=_, address_family=_) + client.create_ipam_prefix_list_resolver( + **_request(CreateIpamPrefixListResolverInputDict) + ) + client.create_ipam_prefix_list_resolver(_request(CreateIpamPrefixListResolverInput)) + client.create_ipam_prefix_list_resolver( + _request(CreateIpamPrefixListResolverInputDict) + ) + client.create_ipam_prefix_list_resolver_target( + ipam_prefix_list_resolver_id=_, + prefix_list_id=_, + prefix_list_region=_, + track_latest_version=_, + ) + client.create_ipam_prefix_list_resolver_target( + **_request(CreateIpamPrefixListResolverTargetInputDict) + ) + client.create_ipam_prefix_list_resolver_target( + _request(CreateIpamPrefixListResolverTargetInput) + ) + client.create_ipam_prefix_list_resolver_target( + _request(CreateIpamPrefixListResolverTargetInputDict) + ) + client.create_ipam_resource_discovery() + client.create_ipam_resource_discovery( + **_request(CreateIpamResourceDiscoveryInputDict) + ) + client.create_ipam_resource_discovery(_request(CreateIpamResourceDiscoveryInput)) + client.create_ipam_resource_discovery( + _request(CreateIpamResourceDiscoveryInputDict) + ) + client.create_ipam_routing_policy_registration( + ipam_internet_registry_association_id=_, cidr=_, asns=_ + ) + client.create_ipam_routing_policy_registration( + **_request(CreateIpamRoutingPolicyRegistrationInputDict) + ) + client.create_ipam_routing_policy_registration( + _request(CreateIpamRoutingPolicyRegistrationInput) + ) + client.create_ipam_routing_policy_registration( + _request(CreateIpamRoutingPolicyRegistrationInputDict) + ) + client.create_ipam_scope(ipam_id=_) + client.create_ipam_scope(**_request(CreateIpamScopeInputDict)) + client.create_ipam_scope(_request(CreateIpamScopeInput)) + client.create_ipam_scope(_request(CreateIpamScopeInputDict)) + client.create_key_pair(key_name=_) + client.create_key_pair(**_request(CreateKeyPairInputDict)) + client.create_key_pair(_request(CreateKeyPairInput)) + client.create_key_pair(_request(CreateKeyPairInputDict)) + client.create_launch_template(launch_template_name=_, launch_template_data=_) + client.create_launch_template(**_request(CreateLaunchTemplateInputDict)) + client.create_launch_template(_request(CreateLaunchTemplateInput)) + client.create_launch_template(_request(CreateLaunchTemplateInputDict)) + client.create_launch_template_version(launch_template_data=_) + client.create_launch_template_version( + **_request(CreateLaunchTemplateVersionInputDict) + ) + client.create_launch_template_version(_request(CreateLaunchTemplateVersionInput)) + client.create_launch_template_version( + _request(CreateLaunchTemplateVersionInputDict) + ) + client.create_local_gateway_route(local_gateway_route_table_id=_) + client.create_local_gateway_route(**_request(CreateLocalGatewayRouteInputDict)) + client.create_local_gateway_route(_request(CreateLocalGatewayRouteInput)) + client.create_local_gateway_route(_request(CreateLocalGatewayRouteInputDict)) + client.create_local_gateway_route_table(local_gateway_id=_) + client.create_local_gateway_route_table( + **_request(CreateLocalGatewayRouteTableInputDict) + ) + client.create_local_gateway_route_table(_request(CreateLocalGatewayRouteTableInput)) + client.create_local_gateway_route_table( + _request(CreateLocalGatewayRouteTableInputDict) + ) + client.create_local_gateway_route_table_virtual_interface_group_association( + local_gateway_route_table_id=_, local_gateway_virtual_interface_group_id=_ + ) + client.create_local_gateway_route_table_virtual_interface_group_association( + **_request( + CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict + ) + ) + client.create_local_gateway_route_table_virtual_interface_group_association( + _request(CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) + ) + client.create_local_gateway_route_table_virtual_interface_group_association( + _request(CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict) + ) + client.create_local_gateway_route_table_vpc_association( + local_gateway_route_table_id=_, vpc_id=_ + ) + client.create_local_gateway_route_table_vpc_association( + **_request(CreateLocalGatewayRouteTableVpcAssociationInputDict) + ) + client.create_local_gateway_route_table_vpc_association( + _request(CreateLocalGatewayRouteTableVpcAssociationInput) + ) + client.create_local_gateway_route_table_vpc_association( + _request(CreateLocalGatewayRouteTableVpcAssociationInputDict) + ) + client.create_local_gateway_virtual_interface( + local_gateway_virtual_interface_group_id=_, + outpost_lag_id=_, + vlan=_, + local_address=_, + peer_address=_, + ) + client.create_local_gateway_virtual_interface( + **_request(CreateLocalGatewayVirtualInterfaceInputDict) + ) + client.create_local_gateway_virtual_interface( + _request(CreateLocalGatewayVirtualInterfaceInput) + ) + client.create_local_gateway_virtual_interface( + _request(CreateLocalGatewayVirtualInterfaceInputDict) + ) + client.create_local_gateway_virtual_interface_group(local_gateway_id=_) + client.create_local_gateway_virtual_interface_group( + **_request(CreateLocalGatewayVirtualInterfaceGroupInputDict) + ) + client.create_local_gateway_virtual_interface_group( + _request(CreateLocalGatewayVirtualInterfaceGroupInput) + ) + client.create_local_gateway_virtual_interface_group( + _request(CreateLocalGatewayVirtualInterfaceGroupInputDict) + ) + client.create_mac_system_integrity_protection_modification_task( + instance_id=_, mac_system_integrity_protection_status=_ + ) + client.create_mac_system_integrity_protection_modification_task( + **_request(CreateMacSystemIntegrityProtectionModificationTaskInputDict) + ) + client.create_mac_system_integrity_protection_modification_task( + _request(CreateMacSystemIntegrityProtectionModificationTaskInput) + ) + client.create_mac_system_integrity_protection_modification_task( + _request(CreateMacSystemIntegrityProtectionModificationTaskInputDict) + ) + client.create_managed_prefix_list( + prefix_list_name=_, max_entries=_, address_family=_ + ) + client.create_managed_prefix_list(**_request(CreateManagedPrefixListInputDict)) + client.create_managed_prefix_list(_request(CreateManagedPrefixListInput)) + client.create_managed_prefix_list(_request(CreateManagedPrefixListInputDict)) + client.create_nat_gateway() + client.create_nat_gateway(**_request(CreateNatGatewayInputDict)) + client.create_nat_gateway(_request(CreateNatGatewayInput)) + client.create_nat_gateway(_request(CreateNatGatewayInputDict)) + client.create_network_acl(vpc_id=_) + client.create_network_acl(**_request(CreateNetworkAclInputDict)) + client.create_network_acl(_request(CreateNetworkAclInput)) + client.create_network_acl(_request(CreateNetworkAclInputDict)) + client.create_network_acl_entry( + network_acl_id=_, rule_number=_, protocol=_, rule_action=_, egress=_ + ) + client.create_network_acl_entry(**_request(CreateNetworkAclEntryInputDict)) + client.create_network_acl_entry(_request(CreateNetworkAclEntryInput)) + client.create_network_acl_entry(_request(CreateNetworkAclEntryInputDict)) + client.create_network_insights_access_scope() + client.create_network_insights_access_scope( + **_request(CreateNetworkInsightsAccessScopeInputDict) + ) + client.create_network_insights_access_scope( + _request(CreateNetworkInsightsAccessScopeInput) + ) + client.create_network_insights_access_scope( + _request(CreateNetworkInsightsAccessScopeInputDict) + ) + client.create_network_insights_path(source=_, protocol=_) + client.create_network_insights_path(**_request(CreateNetworkInsightsPathInputDict)) + client.create_network_insights_path(_request(CreateNetworkInsightsPathInput)) + client.create_network_insights_path(_request(CreateNetworkInsightsPathInputDict)) + client.create_network_interface(subnet_id=_) + client.create_network_interface(**_request(CreateNetworkInterfaceInputDict)) + client.create_network_interface(_request(CreateNetworkInterfaceInput)) + client.create_network_interface(_request(CreateNetworkInterfaceInputDict)) + client.create_network_interface_permission(network_interface_id=_, permission=_) + client.create_network_interface_permission( + **_request(CreateNetworkInterfacePermissionInputDict) + ) + client.create_network_interface_permission( + _request(CreateNetworkInterfacePermissionInput) + ) + client.create_network_interface_permission( + _request(CreateNetworkInterfacePermissionInputDict) + ) + client.create_placement_group() + client.create_placement_group(**_request(CreatePlacementGroupInputDict)) + client.create_placement_group(_request(CreatePlacementGroupInput)) + client.create_placement_group(_request(CreatePlacementGroupInputDict)) + client.create_public_ipv4_pool() + client.create_public_ipv4_pool(**_request(CreatePublicIpv4PoolInputDict)) + client.create_public_ipv4_pool(_request(CreatePublicIpv4PoolInput)) + client.create_public_ipv4_pool(_request(CreatePublicIpv4PoolInputDict)) + client.create_replace_root_volume_task(instance_id=_) + client.create_replace_root_volume_task( + **_request(CreateReplaceRootVolumeTaskInputDict) + ) + client.create_replace_root_volume_task(_request(CreateReplaceRootVolumeTaskInput)) + client.create_replace_root_volume_task( + _request(CreateReplaceRootVolumeTaskInputDict) + ) + client.create_reserved_instances_listing( + reserved_instances_id=_, instance_count=_, price_schedules=_, client_token=_ + ) + client.create_reserved_instances_listing( + **_request(CreateReservedInstancesListingInputDict) + ) + client.create_reserved_instances_listing( + _request(CreateReservedInstancesListingInput) + ) + client.create_reserved_instances_listing( + _request(CreateReservedInstancesListingInputDict) + ) + client.create_restore_image_task(bucket=_, object_key=_) + client.create_restore_image_task(**_request(CreateRestoreImageTaskInputDict)) + client.create_restore_image_task(_request(CreateRestoreImageTaskInput)) + client.create_restore_image_task(_request(CreateRestoreImageTaskInputDict)) + client.create_route(route_table_id=_) + client.create_route(**_request(CreateRouteInputDict)) + client.create_route(_request(CreateRouteInput)) + client.create_route(_request(CreateRouteInputDict)) + client.create_route_server(amazon_side_asn=_) + client.create_route_server(**_request(CreateRouteServerInputDict)) + client.create_route_server(_request(CreateRouteServerInput)) + client.create_route_server(_request(CreateRouteServerInputDict)) + client.create_route_server_endpoint(route_server_id=_, subnet_id=_) + client.create_route_server_endpoint(**_request(CreateRouteServerEndpointInputDict)) + client.create_route_server_endpoint(_request(CreateRouteServerEndpointInput)) + client.create_route_server_endpoint(_request(CreateRouteServerEndpointInputDict)) + client.create_route_server_peer( + route_server_endpoint_id=_, peer_address=_, bgp_options=_ + ) + client.create_route_server_peer(**_request(CreateRouteServerPeerInputDict)) + client.create_route_server_peer(_request(CreateRouteServerPeerInput)) + client.create_route_server_peer(_request(CreateRouteServerPeerInputDict)) + client.create_route_table(vpc_id=_) + client.create_route_table(**_request(CreateRouteTableInputDict)) + client.create_route_table(_request(CreateRouteTableInput)) + client.create_route_table(_request(CreateRouteTableInputDict)) + client.create_secondary_network(ipv4_cidr_block=_, network_type=_) + client.create_secondary_network(**_request(CreateSecondaryNetworkInputDict)) + client.create_secondary_network(_request(CreateSecondaryNetworkInput)) + client.create_secondary_network(_request(CreateSecondaryNetworkInputDict)) + client.create_secondary_subnet(ipv4_cidr_block=_, secondary_network_id=_) + client.create_secondary_subnet(**_request(CreateSecondarySubnetInputDict)) + client.create_secondary_subnet(_request(CreateSecondarySubnetInput)) + client.create_secondary_subnet(_request(CreateSecondarySubnetInputDict)) + client.create_security_group(description=_, group_name=_) + client.create_security_group(**_request(CreateSecurityGroupInputDict)) + client.create_security_group(_request(CreateSecurityGroupInput)) + client.create_security_group(_request(CreateSecurityGroupInputDict)) + client.create_snapshot(volume_id=_) + client.create_snapshot(**_request(CreateSnapshotInputDict)) + client.create_snapshot(_request(CreateSnapshotInput)) + client.create_snapshot(_request(CreateSnapshotInputDict)) + client.create_snapshots(instance_specification=_) + client.create_snapshots(**_request(CreateSnapshotsInputDict)) + client.create_snapshots(_request(CreateSnapshotsInput)) + client.create_snapshots(_request(CreateSnapshotsInputDict)) + client.create_spot_datafeed_subscription(bucket=_) + client.create_spot_datafeed_subscription( + **_request(CreateSpotDatafeedSubscriptionInputDict) + ) + client.create_spot_datafeed_subscription( + _request(CreateSpotDatafeedSubscriptionInput) + ) + client.create_spot_datafeed_subscription( + _request(CreateSpotDatafeedSubscriptionInputDict) + ) + client.create_store_image_task(image_id=_, bucket=_) + client.create_store_image_task(**_request(CreateStoreImageTaskInputDict)) + client.create_store_image_task(_request(CreateStoreImageTaskInput)) + client.create_store_image_task(_request(CreateStoreImageTaskInputDict)) + client.create_subnet(vpc_id=_) + client.create_subnet(**_request(CreateSubnetInputDict)) + client.create_subnet(_request(CreateSubnetInput)) + client.create_subnet(_request(CreateSubnetInputDict)) + client.create_subnet_cidr_reservation(subnet_id=_, cidr=_, reservation_type=_) + client.create_subnet_cidr_reservation( + **_request(CreateSubnetCidrReservationInputDict) + ) + client.create_subnet_cidr_reservation(_request(CreateSubnetCidrReservationInput)) + client.create_subnet_cidr_reservation( + _request(CreateSubnetCidrReservationInputDict) + ) + client.create_tags(resources=_, tags=_) + client.create_tags(**_request(CreateTagsInputDict)) + client.create_tags(_request(CreateTagsInput)) + client.create_tags(_request(CreateTagsInputDict)) + client.create_traffic_mirror_filter() + client.create_traffic_mirror_filter(**_request(CreateTrafficMirrorFilterInputDict)) + client.create_traffic_mirror_filter(_request(CreateTrafficMirrorFilterInput)) + client.create_traffic_mirror_filter(_request(CreateTrafficMirrorFilterInputDict)) + client.create_traffic_mirror_filter_rule( + traffic_mirror_filter_id=_, + traffic_direction=_, + rule_number=_, + rule_action=_, + destination_cidr_block=_, + source_cidr_block=_, + ) + client.create_traffic_mirror_filter_rule( + **_request(CreateTrafficMirrorFilterRuleInputDict) + ) + client.create_traffic_mirror_filter_rule( + _request(CreateTrafficMirrorFilterRuleInput) + ) + client.create_traffic_mirror_filter_rule( + _request(CreateTrafficMirrorFilterRuleInputDict) + ) + client.create_traffic_mirror_session( + network_interface_id=_, + traffic_mirror_target_id=_, + traffic_mirror_filter_id=_, + session_number=_, + ) + client.create_traffic_mirror_session( + **_request(CreateTrafficMirrorSessionInputDict) + ) + client.create_traffic_mirror_session(_request(CreateTrafficMirrorSessionInput)) + client.create_traffic_mirror_session(_request(CreateTrafficMirrorSessionInputDict)) + client.create_traffic_mirror_target() + client.create_traffic_mirror_target(**_request(CreateTrafficMirrorTargetInputDict)) + client.create_traffic_mirror_target(_request(CreateTrafficMirrorTargetInput)) + client.create_traffic_mirror_target(_request(CreateTrafficMirrorTargetInputDict)) + client.create_transit_gateway() + client.create_transit_gateway(**_request(CreateTransitGatewayInputDict)) + client.create_transit_gateway(_request(CreateTransitGatewayInput)) + client.create_transit_gateway(_request(CreateTransitGatewayInputDict)) + client.create_transit_gateway_connect( + transport_transit_gateway_attachment_id=_, options=_ + ) + client.create_transit_gateway_connect( + **_request(CreateTransitGatewayConnectInputDict) + ) + client.create_transit_gateway_connect(_request(CreateTransitGatewayConnectInput)) + client.create_transit_gateway_connect( + _request(CreateTransitGatewayConnectInputDict) + ) + client.create_transit_gateway_connect_peer( + transit_gateway_attachment_id=_, peer_address=_, inside_cidr_blocks=_ + ) + client.create_transit_gateway_connect_peer( + **_request(CreateTransitGatewayConnectPeerInputDict) + ) + client.create_transit_gateway_connect_peer( + _request(CreateTransitGatewayConnectPeerInput) + ) + client.create_transit_gateway_connect_peer( + _request(CreateTransitGatewayConnectPeerInputDict) + ) + client.create_transit_gateway_metering_policy(transit_gateway_id=_) + client.create_transit_gateway_metering_policy( + **_request(CreateTransitGatewayMeteringPolicyInputDict) + ) + client.create_transit_gateway_metering_policy( + _request(CreateTransitGatewayMeteringPolicyInput) + ) + client.create_transit_gateway_metering_policy( + _request(CreateTransitGatewayMeteringPolicyInputDict) + ) + client.create_transit_gateway_metering_policy_entry( + transit_gateway_metering_policy_id=_, policy_rule_number=_, metered_account=_ + ) + client.create_transit_gateway_metering_policy_entry( + **_request(CreateTransitGatewayMeteringPolicyEntryInputDict) + ) + client.create_transit_gateway_metering_policy_entry( + _request(CreateTransitGatewayMeteringPolicyEntryInput) + ) + client.create_transit_gateway_metering_policy_entry( + _request(CreateTransitGatewayMeteringPolicyEntryInputDict) + ) + client.create_transit_gateway_multicast_domain(transit_gateway_id=_) + client.create_transit_gateway_multicast_domain( + **_request(CreateTransitGatewayMulticastDomainInputDict) + ) + client.create_transit_gateway_multicast_domain( + _request(CreateTransitGatewayMulticastDomainInput) + ) + client.create_transit_gateway_multicast_domain( + _request(CreateTransitGatewayMulticastDomainInputDict) + ) + client.create_transit_gateway_peering_attachment( + transit_gateway_id=_, + peer_transit_gateway_id=_, + peer_account_id=_, + peer_region=_, + ) + client.create_transit_gateway_peering_attachment( + **_request(CreateTransitGatewayPeeringAttachmentInputDict) + ) + client.create_transit_gateway_peering_attachment( + _request(CreateTransitGatewayPeeringAttachmentInput) + ) + client.create_transit_gateway_peering_attachment( + _request(CreateTransitGatewayPeeringAttachmentInputDict) + ) + client.create_transit_gateway_policy_table(transit_gateway_id=_) + client.create_transit_gateway_policy_table( + **_request(CreateTransitGatewayPolicyTableInputDict) + ) + client.create_transit_gateway_policy_table( + _request(CreateTransitGatewayPolicyTableInput) + ) + client.create_transit_gateway_policy_table( + _request(CreateTransitGatewayPolicyTableInputDict) + ) + client.create_transit_gateway_policy_table_entry( + transit_gateway_policy_table_id=_, policy_rule_number=_, target_route_table_id=_ + ) + client.create_transit_gateway_policy_table_entry( + **_request(CreateTransitGatewayPolicyTableEntryInputDict) + ) + client.create_transit_gateway_policy_table_entry( + _request(CreateTransitGatewayPolicyTableEntryInput) + ) + client.create_transit_gateway_policy_table_entry( + _request(CreateTransitGatewayPolicyTableEntryInputDict) + ) + client.create_transit_gateway_prefix_list_reference( + transit_gateway_route_table_id=_, prefix_list_id=_ + ) + client.create_transit_gateway_prefix_list_reference( + **_request(CreateTransitGatewayPrefixListReferenceInputDict) + ) + client.create_transit_gateway_prefix_list_reference( + _request(CreateTransitGatewayPrefixListReferenceInput) + ) + client.create_transit_gateway_prefix_list_reference( + _request(CreateTransitGatewayPrefixListReferenceInputDict) + ) + client.create_transit_gateway_route( + destination_cidr_block=_, transit_gateway_route_table_id=_ + ) + client.create_transit_gateway_route(**_request(CreateTransitGatewayRouteInputDict)) + client.create_transit_gateway_route(_request(CreateTransitGatewayRouteInput)) + client.create_transit_gateway_route(_request(CreateTransitGatewayRouteInputDict)) + client.create_transit_gateway_route_table(transit_gateway_id=_) + client.create_transit_gateway_route_table( + **_request(CreateTransitGatewayRouteTableInputDict) + ) + client.create_transit_gateway_route_table( + _request(CreateTransitGatewayRouteTableInput) + ) + client.create_transit_gateway_route_table( + _request(CreateTransitGatewayRouteTableInputDict) + ) + client.create_transit_gateway_route_table_announcement( + transit_gateway_route_table_id=_, peering_attachment_id=_ + ) + client.create_transit_gateway_route_table_announcement( + **_request(CreateTransitGatewayRouteTableAnnouncementInputDict) + ) + client.create_transit_gateway_route_table_announcement( + _request(CreateTransitGatewayRouteTableAnnouncementInput) + ) + client.create_transit_gateway_route_table_announcement( + _request(CreateTransitGatewayRouteTableAnnouncementInputDict) + ) + client.create_transit_gateway_vpc_attachment( + transit_gateway_id=_, vpc_id=_, subnet_ids=_ + ) + client.create_transit_gateway_vpc_attachment( + **_request(CreateTransitGatewayVpcAttachmentInputDict) + ) + client.create_transit_gateway_vpc_attachment( + _request(CreateTransitGatewayVpcAttachmentInput) + ) + client.create_transit_gateway_vpc_attachment( + _request(CreateTransitGatewayVpcAttachmentInputDict) + ) + client.create_verified_access_endpoint( + verified_access_group_id=_, endpoint_type=_, attachment_type=_ + ) + client.create_verified_access_endpoint( + **_request(CreateVerifiedAccessEndpointInputDict) + ) + client.create_verified_access_endpoint(_request(CreateVerifiedAccessEndpointInput)) + client.create_verified_access_endpoint( + _request(CreateVerifiedAccessEndpointInputDict) + ) + client.create_verified_access_group(verified_access_instance_id=_) + client.create_verified_access_group(**_request(CreateVerifiedAccessGroupInputDict)) + client.create_verified_access_group(_request(CreateVerifiedAccessGroupInput)) + client.create_verified_access_group(_request(CreateVerifiedAccessGroupInputDict)) + client.create_verified_access_instance() + client.create_verified_access_instance( + **_request(CreateVerifiedAccessInstanceInputDict) + ) + client.create_verified_access_instance(_request(CreateVerifiedAccessInstanceInput)) + client.create_verified_access_instance( + _request(CreateVerifiedAccessInstanceInputDict) + ) + client.create_verified_access_trust_provider( + trust_provider_type=_, policy_reference_name=_ + ) + client.create_verified_access_trust_provider( + **_request(CreateVerifiedAccessTrustProviderInputDict) + ) + client.create_verified_access_trust_provider( + _request(CreateVerifiedAccessTrustProviderInput) + ) + client.create_verified_access_trust_provider( + _request(CreateVerifiedAccessTrustProviderInputDict) + ) + client.create_volume() + client.create_volume(**_request(CreateVolumeInputDict)) + client.create_volume(_request(CreateVolumeInput)) + client.create_volume(_request(CreateVolumeInputDict)) + client.create_vpc() + client.create_vpc(**_request(CreateVpcInputDict)) + client.create_vpc(_request(CreateVpcInput)) + client.create_vpc(_request(CreateVpcInputDict)) + client.create_vpc_block_public_access_exclusion(internet_gateway_exclusion_mode=_) + client.create_vpc_block_public_access_exclusion( + **_request(CreateVpcBlockPublicAccessExclusionInputDict) + ) + client.create_vpc_block_public_access_exclusion( + _request(CreateVpcBlockPublicAccessExclusionInput) + ) + client.create_vpc_block_public_access_exclusion( + _request(CreateVpcBlockPublicAccessExclusionInputDict) + ) + client.create_vpc_encryption_control(vpc_id=_) + client.create_vpc_encryption_control( + **_request(CreateVpcEncryptionControlInputDict) + ) + client.create_vpc_encryption_control(_request(CreateVpcEncryptionControlInput)) + client.create_vpc_encryption_control(_request(CreateVpcEncryptionControlInputDict)) + client.create_vpc_endpoint(vpc_id=_) + client.create_vpc_endpoint(**_request(CreateVpcEndpointInputDict)) + client.create_vpc_endpoint(_request(CreateVpcEndpointInput)) + client.create_vpc_endpoint(_request(CreateVpcEndpointInputDict)) + client.create_vpc_endpoint_connection_notification( + connection_notification_arn=_, connection_events=_ + ) + client.create_vpc_endpoint_connection_notification( + **_request(CreateVpcEndpointConnectionNotificationInputDict) + ) + client.create_vpc_endpoint_connection_notification( + _request(CreateVpcEndpointConnectionNotificationInput) + ) + client.create_vpc_endpoint_connection_notification( + _request(CreateVpcEndpointConnectionNotificationInputDict) + ) + client.create_vpc_endpoint_service_configuration() + client.create_vpc_endpoint_service_configuration( + **_request(CreateVpcEndpointServiceConfigurationInputDict) + ) + client.create_vpc_endpoint_service_configuration( + _request(CreateVpcEndpointServiceConfigurationInput) + ) + client.create_vpc_endpoint_service_configuration( + _request(CreateVpcEndpointServiceConfigurationInputDict) + ) + client.create_vpc_peering_connection(vpc_id=_) + client.create_vpc_peering_connection( + **_request(CreateVpcPeeringConnectionInputDict) + ) + client.create_vpc_peering_connection(_request(CreateVpcPeeringConnectionInput)) + client.create_vpc_peering_connection(_request(CreateVpcPeeringConnectionInputDict)) + client.create_vpn_concentrator(type=_) + client.create_vpn_concentrator(**_request(CreateVpnConcentratorInputDict)) + client.create_vpn_concentrator(_request(CreateVpnConcentratorInput)) + client.create_vpn_concentrator(_request(CreateVpnConcentratorInputDict)) + client.create_vpn_connection(customer_gateway_id=_, type=_) + client.create_vpn_connection(**_request(CreateVpnConnectionInputDict)) + client.create_vpn_connection(_request(CreateVpnConnectionInput)) + client.create_vpn_connection(_request(CreateVpnConnectionInputDict)) + client.create_vpn_connection_route(destination_cidr_block=_, vpn_connection_id=_) + client.create_vpn_connection_route(**_request(CreateVpnConnectionRouteInputDict)) + client.create_vpn_connection_route(_request(CreateVpnConnectionRouteInput)) + client.create_vpn_connection_route(_request(CreateVpnConnectionRouteInputDict)) + client.create_vpn_gateway(type=_) + client.create_vpn_gateway(**_request(CreateVpnGatewayInputDict)) + client.create_vpn_gateway(_request(CreateVpnGatewayInput)) + client.create_vpn_gateway(_request(CreateVpnGatewayInputDict)) + client.delete_application_status_check(application_status_check_id=_) + client.delete_application_status_check( + **_request(DeleteApplicationStatusCheckInputDict) + ) + client.delete_application_status_check(_request(DeleteApplicationStatusCheckInput)) + client.delete_application_status_check( + _request(DeleteApplicationStatusCheckInputDict) + ) + client.delete_capacity_manager_data_export(capacity_manager_data_export_id=_) + client.delete_capacity_manager_data_export( + **_request(DeleteCapacityManagerDataExportInputDict) + ) + client.delete_capacity_manager_data_export( + _request(DeleteCapacityManagerDataExportInput) + ) + client.delete_capacity_manager_data_export( + _request(DeleteCapacityManagerDataExportInputDict) + ) + client.delete_carrier_gateway(carrier_gateway_id=_) + client.delete_carrier_gateway(**_request(DeleteCarrierGatewayInputDict)) + client.delete_carrier_gateway(_request(DeleteCarrierGatewayInput)) + client.delete_carrier_gateway(_request(DeleteCarrierGatewayInputDict)) + client.delete_client_vpn_endpoint(client_vpn_endpoint_id=_) + client.delete_client_vpn_endpoint(**_request(DeleteClientVpnEndpointInputDict)) + client.delete_client_vpn_endpoint(_request(DeleteClientVpnEndpointInput)) + client.delete_client_vpn_endpoint(_request(DeleteClientVpnEndpointInputDict)) + client.delete_client_vpn_endpoint_authorization_policy(client_vpn_endpoint_id=_) + client.delete_client_vpn_endpoint_authorization_policy( + **_request(DeleteClientVpnEndpointAuthorizationPolicyInputDict) + ) + client.delete_client_vpn_endpoint_authorization_policy( + _request(DeleteClientVpnEndpointAuthorizationPolicyInput) + ) + client.delete_client_vpn_endpoint_authorization_policy( + _request(DeleteClientVpnEndpointAuthorizationPolicyInputDict) + ) + client.delete_client_vpn_route(client_vpn_endpoint_id=_, destination_cidr_block=_) + client.delete_client_vpn_route(**_request(DeleteClientVpnRouteInputDict)) + client.delete_client_vpn_route(_request(DeleteClientVpnRouteInput)) + client.delete_client_vpn_route(_request(DeleteClientVpnRouteInputDict)) + client.delete_coip_cidr(cidr=_, coip_pool_id=_) + client.delete_coip_cidr(**_request(DeleteCoipCidrInputDict)) + client.delete_coip_cidr(_request(DeleteCoipCidrInput)) + client.delete_coip_cidr(_request(DeleteCoipCidrInputDict)) + client.delete_coip_pool(coip_pool_id=_) + client.delete_coip_pool(**_request(DeleteCoipPoolInputDict)) + client.delete_coip_pool(_request(DeleteCoipPoolInput)) + client.delete_coip_pool(_request(DeleteCoipPoolInputDict)) + client.delete_customer_gateway(customer_gateway_id=_) + client.delete_customer_gateway(**_request(DeleteCustomerGatewayInputDict)) + client.delete_customer_gateway(_request(DeleteCustomerGatewayInput)) + client.delete_customer_gateway(_request(DeleteCustomerGatewayInputDict)) + client.delete_dhcp_options(dhcp_options_id=_) + client.delete_dhcp_options(**_request(DeleteDhcpOptionsInputDict)) + client.delete_dhcp_options(_request(DeleteDhcpOptionsInput)) + client.delete_dhcp_options(_request(DeleteDhcpOptionsInputDict)) + client.delete_egress_only_internet_gateway(egress_only_internet_gateway_id=_) + client.delete_egress_only_internet_gateway( + **_request(DeleteEgressOnlyInternetGatewayInputDict) + ) + client.delete_egress_only_internet_gateway( + _request(DeleteEgressOnlyInternetGatewayInput) + ) + client.delete_egress_only_internet_gateway( + _request(DeleteEgressOnlyInternetGatewayInputDict) + ) + client.delete_fleets(fleet_ids=_, terminate_instances=_) + client.delete_fleets(**_request(DeleteFleetsInputDict)) + client.delete_fleets(_request(DeleteFleetsInput)) + client.delete_fleets(_request(DeleteFleetsInputDict)) + client.delete_flow_logs(flow_log_ids=_) + client.delete_flow_logs(**_request(DeleteFlowLogsInputDict)) + client.delete_flow_logs(_request(DeleteFlowLogsInput)) + client.delete_flow_logs(_request(DeleteFlowLogsInputDict)) + client.delete_fpga_image(fpga_image_id=_) + client.delete_fpga_image(**_request(DeleteFpgaImageInputDict)) + client.delete_fpga_image(_request(DeleteFpgaImageInput)) + client.delete_fpga_image(_request(DeleteFpgaImageInputDict)) + client.delete_image_usage_report(report_id=_) + client.delete_image_usage_report(**_request(DeleteImageUsageReportInputDict)) + client.delete_image_usage_report(_request(DeleteImageUsageReportInput)) + client.delete_image_usage_report(_request(DeleteImageUsageReportInputDict)) + client.delete_instance_connect_endpoint(instance_connect_endpoint_id=_) + client.delete_instance_connect_endpoint( + **_request(DeleteInstanceConnectEndpointInputDict) + ) + client.delete_instance_connect_endpoint( + _request(DeleteInstanceConnectEndpointInput) + ) + client.delete_instance_connect_endpoint( + _request(DeleteInstanceConnectEndpointInputDict) + ) + client.delete_instance_event_window(instance_event_window_id=_) + client.delete_instance_event_window(**_request(DeleteInstanceEventWindowInputDict)) + client.delete_instance_event_window(_request(DeleteInstanceEventWindowInput)) + client.delete_instance_event_window(_request(DeleteInstanceEventWindowInputDict)) + client.delete_internet_gateway(internet_gateway_id=_) + client.delete_internet_gateway(**_request(DeleteInternetGatewayInputDict)) + client.delete_internet_gateway(_request(DeleteInternetGatewayInput)) + client.delete_internet_gateway(_request(DeleteInternetGatewayInputDict)) + client.delete_ipam(ipam_id=_) + client.delete_ipam(**_request(DeleteIpamInputDict)) + client.delete_ipam(_request(DeleteIpamInput)) + client.delete_ipam(_request(DeleteIpamInputDict)) + client.delete_ipam_external_resource_verification_token( + ipam_external_resource_verification_token_id=_ + ) + client.delete_ipam_external_resource_verification_token( + **_request(DeleteIpamExternalResourceVerificationTokenInputDict) + ) + client.delete_ipam_external_resource_verification_token( + _request(DeleteIpamExternalResourceVerificationTokenInput) + ) + client.delete_ipam_external_resource_verification_token( + _request(DeleteIpamExternalResourceVerificationTokenInputDict) + ) + client.delete_ipam_internet_registry_association( + ipam_internet_registry_association_id=_ + ) + client.delete_ipam_internet_registry_association( + **_request(DeleteIpamInternetRegistryAssociationInputDict) + ) + client.delete_ipam_internet_registry_association( + _request(DeleteIpamInternetRegistryAssociationInput) + ) + client.delete_ipam_internet_registry_association( + _request(DeleteIpamInternetRegistryAssociationInputDict) + ) + client.delete_ipam_policy(ipam_policy_id=_) + client.delete_ipam_policy(**_request(DeleteIpamPolicyInputDict)) + client.delete_ipam_policy(_request(DeleteIpamPolicyInput)) + client.delete_ipam_policy(_request(DeleteIpamPolicyInputDict)) + client.delete_ipam_pool(ipam_pool_id=_) + client.delete_ipam_pool(**_request(DeleteIpamPoolInputDict)) + client.delete_ipam_pool(_request(DeleteIpamPoolInput)) + client.delete_ipam_pool(_request(DeleteIpamPoolInputDict)) + client.delete_ipam_prefix_list_resolver(ipam_prefix_list_resolver_id=_) + client.delete_ipam_prefix_list_resolver( + **_request(DeleteIpamPrefixListResolverInputDict) + ) + client.delete_ipam_prefix_list_resolver(_request(DeleteIpamPrefixListResolverInput)) + client.delete_ipam_prefix_list_resolver( + _request(DeleteIpamPrefixListResolverInputDict) + ) + client.delete_ipam_prefix_list_resolver_target( + ipam_prefix_list_resolver_target_id=_ + ) + client.delete_ipam_prefix_list_resolver_target( + **_request(DeleteIpamPrefixListResolverTargetInputDict) + ) + client.delete_ipam_prefix_list_resolver_target( + _request(DeleteIpamPrefixListResolverTargetInput) + ) + client.delete_ipam_prefix_list_resolver_target( + _request(DeleteIpamPrefixListResolverTargetInputDict) + ) + client.delete_ipam_resource_discovery(ipam_resource_discovery_id=_) + client.delete_ipam_resource_discovery( + **_request(DeleteIpamResourceDiscoveryInputDict) + ) + client.delete_ipam_resource_discovery(_request(DeleteIpamResourceDiscoveryInput)) + client.delete_ipam_resource_discovery( + _request(DeleteIpamResourceDiscoveryInputDict) + ) + client.delete_ipam_routing_policy_registration( + ipam_internet_registry_association_id=_, cidr=_ + ) + client.delete_ipam_routing_policy_registration( + **_request(DeleteIpamRoutingPolicyRegistrationInputDict) + ) + client.delete_ipam_routing_policy_registration( + _request(DeleteIpamRoutingPolicyRegistrationInput) + ) + client.delete_ipam_routing_policy_registration( + _request(DeleteIpamRoutingPolicyRegistrationInputDict) + ) + client.delete_ipam_scope(ipam_scope_id=_) + client.delete_ipam_scope(**_request(DeleteIpamScopeInputDict)) + client.delete_ipam_scope(_request(DeleteIpamScopeInput)) + client.delete_ipam_scope(_request(DeleteIpamScopeInputDict)) + client.delete_key_pair() + client.delete_key_pair(**_request(DeleteKeyPairInputDict)) + client.delete_key_pair(_request(DeleteKeyPairInput)) + client.delete_key_pair(_request(DeleteKeyPairInputDict)) + client.delete_launch_template() + client.delete_launch_template(**_request(DeleteLaunchTemplateInputDict)) + client.delete_launch_template(_request(DeleteLaunchTemplateInput)) + client.delete_launch_template(_request(DeleteLaunchTemplateInputDict)) + client.delete_launch_template_versions(versions=_) + client.delete_launch_template_versions( + **_request(DeleteLaunchTemplateVersionsInputDict) + ) + client.delete_launch_template_versions(_request(DeleteLaunchTemplateVersionsInput)) + client.delete_launch_template_versions( + _request(DeleteLaunchTemplateVersionsInputDict) + ) + client.delete_local_gateway_route(local_gateway_route_table_id=_) + client.delete_local_gateway_route(**_request(DeleteLocalGatewayRouteInputDict)) + client.delete_local_gateway_route(_request(DeleteLocalGatewayRouteInput)) + client.delete_local_gateway_route(_request(DeleteLocalGatewayRouteInputDict)) + client.delete_local_gateway_route_table(local_gateway_route_table_id=_) + client.delete_local_gateway_route_table( + **_request(DeleteLocalGatewayRouteTableInputDict) + ) + client.delete_local_gateway_route_table(_request(DeleteLocalGatewayRouteTableInput)) + client.delete_local_gateway_route_table( + _request(DeleteLocalGatewayRouteTableInputDict) + ) + client.delete_local_gateway_route_table_virtual_interface_group_association( + local_gateway_route_table_virtual_interface_group_association_id=_ + ) + client.delete_local_gateway_route_table_virtual_interface_group_association( + **_request( + DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict + ) + ) + client.delete_local_gateway_route_table_virtual_interface_group_association( + _request(DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput) + ) + client.delete_local_gateway_route_table_virtual_interface_group_association( + _request(DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInputDict) + ) + client.delete_local_gateway_route_table_vpc_association( + local_gateway_route_table_vpc_association_id=_ + ) + client.delete_local_gateway_route_table_vpc_association( + **_request(DeleteLocalGatewayRouteTableVpcAssociationInputDict) + ) + client.delete_local_gateway_route_table_vpc_association( + _request(DeleteLocalGatewayRouteTableVpcAssociationInput) + ) + client.delete_local_gateway_route_table_vpc_association( + _request(DeleteLocalGatewayRouteTableVpcAssociationInputDict) + ) + client.delete_local_gateway_virtual_interface(local_gateway_virtual_interface_id=_) + client.delete_local_gateway_virtual_interface( + **_request(DeleteLocalGatewayVirtualInterfaceInputDict) + ) + client.delete_local_gateway_virtual_interface( + _request(DeleteLocalGatewayVirtualInterfaceInput) + ) + client.delete_local_gateway_virtual_interface( + _request(DeleteLocalGatewayVirtualInterfaceInputDict) + ) + client.delete_local_gateway_virtual_interface_group( + local_gateway_virtual_interface_group_id=_ + ) + client.delete_local_gateway_virtual_interface_group( + **_request(DeleteLocalGatewayVirtualInterfaceGroupInputDict) + ) + client.delete_local_gateway_virtual_interface_group( + _request(DeleteLocalGatewayVirtualInterfaceGroupInput) + ) + client.delete_local_gateway_virtual_interface_group( + _request(DeleteLocalGatewayVirtualInterfaceGroupInputDict) + ) + client.delete_managed_prefix_list(prefix_list_id=_) + client.delete_managed_prefix_list(**_request(DeleteManagedPrefixListInputDict)) + client.delete_managed_prefix_list(_request(DeleteManagedPrefixListInput)) + client.delete_managed_prefix_list(_request(DeleteManagedPrefixListInputDict)) + client.delete_nat_gateway(nat_gateway_id=_) + client.delete_nat_gateway(**_request(DeleteNatGatewayInputDict)) + client.delete_nat_gateway(_request(DeleteNatGatewayInput)) + client.delete_nat_gateway(_request(DeleteNatGatewayInputDict)) + client.delete_network_acl(network_acl_id=_) + client.delete_network_acl(**_request(DeleteNetworkAclInputDict)) + client.delete_network_acl(_request(DeleteNetworkAclInput)) + client.delete_network_acl(_request(DeleteNetworkAclInputDict)) + client.delete_network_acl_entry(network_acl_id=_, rule_number=_, egress=_) + client.delete_network_acl_entry(**_request(DeleteNetworkAclEntryInputDict)) + client.delete_network_acl_entry(_request(DeleteNetworkAclEntryInput)) + client.delete_network_acl_entry(_request(DeleteNetworkAclEntryInputDict)) + client.delete_network_insights_access_scope(network_insights_access_scope_id=_) + client.delete_network_insights_access_scope( + **_request(DeleteNetworkInsightsAccessScopeInputDict) + ) + client.delete_network_insights_access_scope( + _request(DeleteNetworkInsightsAccessScopeInput) + ) + client.delete_network_insights_access_scope( + _request(DeleteNetworkInsightsAccessScopeInputDict) + ) + client.delete_network_insights_access_scope_analysis( + network_insights_access_scope_analysis_id=_ + ) + client.delete_network_insights_access_scope_analysis( + **_request(DeleteNetworkInsightsAccessScopeAnalysisInputDict) + ) + client.delete_network_insights_access_scope_analysis( + _request(DeleteNetworkInsightsAccessScopeAnalysisInput) + ) + client.delete_network_insights_access_scope_analysis( + _request(DeleteNetworkInsightsAccessScopeAnalysisInputDict) + ) + client.delete_network_insights_analysis(network_insights_analysis_id=_) + client.delete_network_insights_analysis( + **_request(DeleteNetworkInsightsAnalysisInputDict) + ) + client.delete_network_insights_analysis( + _request(DeleteNetworkInsightsAnalysisInput) + ) + client.delete_network_insights_analysis( + _request(DeleteNetworkInsightsAnalysisInputDict) + ) + client.delete_network_insights_path(network_insights_path_id=_) + client.delete_network_insights_path(**_request(DeleteNetworkInsightsPathInputDict)) + client.delete_network_insights_path(_request(DeleteNetworkInsightsPathInput)) + client.delete_network_insights_path(_request(DeleteNetworkInsightsPathInputDict)) + client.delete_network_interface(network_interface_id=_) + client.delete_network_interface(**_request(DeleteNetworkInterfaceInputDict)) + client.delete_network_interface(_request(DeleteNetworkInterfaceInput)) + client.delete_network_interface(_request(DeleteNetworkInterfaceInputDict)) + client.delete_network_interface_permission(network_interface_permission_id=_) + client.delete_network_interface_permission( + **_request(DeleteNetworkInterfacePermissionInputDict) + ) + client.delete_network_interface_permission( + _request(DeleteNetworkInterfacePermissionInput) + ) + client.delete_network_interface_permission( + _request(DeleteNetworkInterfacePermissionInputDict) + ) + client.delete_placement_group(group_name=_) + client.delete_placement_group(**_request(DeletePlacementGroupInputDict)) + client.delete_placement_group(_request(DeletePlacementGroupInput)) + client.delete_placement_group(_request(DeletePlacementGroupInputDict)) + client.delete_public_ipv4_pool(pool_id=_) + client.delete_public_ipv4_pool(**_request(DeletePublicIpv4PoolInputDict)) + client.delete_public_ipv4_pool(_request(DeletePublicIpv4PoolInput)) + client.delete_public_ipv4_pool(_request(DeletePublicIpv4PoolInputDict)) + client.delete_queued_reserved_instances(reserved_instances_ids=_) + client.delete_queued_reserved_instances( + **_request(DeleteQueuedReservedInstancesInputDict) + ) + client.delete_queued_reserved_instances( + _request(DeleteQueuedReservedInstancesInput) + ) + client.delete_queued_reserved_instances( + _request(DeleteQueuedReservedInstancesInputDict) + ) + client.delete_route(route_table_id=_) + client.delete_route(**_request(DeleteRouteInputDict)) + client.delete_route(_request(DeleteRouteInput)) + client.delete_route(_request(DeleteRouteInputDict)) + client.delete_route_server(route_server_id=_) + client.delete_route_server(**_request(DeleteRouteServerInputDict)) + client.delete_route_server(_request(DeleteRouteServerInput)) + client.delete_route_server(_request(DeleteRouteServerInputDict)) + client.delete_route_server_endpoint(route_server_endpoint_id=_) + client.delete_route_server_endpoint(**_request(DeleteRouteServerEndpointInputDict)) + client.delete_route_server_endpoint(_request(DeleteRouteServerEndpointInput)) + client.delete_route_server_endpoint(_request(DeleteRouteServerEndpointInputDict)) + client.delete_route_server_peer(route_server_peer_id=_) + client.delete_route_server_peer(**_request(DeleteRouteServerPeerInputDict)) + client.delete_route_server_peer(_request(DeleteRouteServerPeerInput)) + client.delete_route_server_peer(_request(DeleteRouteServerPeerInputDict)) + client.delete_route_table(route_table_id=_) + client.delete_route_table(**_request(DeleteRouteTableInputDict)) + client.delete_route_table(_request(DeleteRouteTableInput)) + client.delete_route_table(_request(DeleteRouteTableInputDict)) + client.delete_secondary_network(secondary_network_id=_) + client.delete_secondary_network(**_request(DeleteSecondaryNetworkInputDict)) + client.delete_secondary_network(_request(DeleteSecondaryNetworkInput)) + client.delete_secondary_network(_request(DeleteSecondaryNetworkInputDict)) + client.delete_secondary_subnet(secondary_subnet_id=_) + client.delete_secondary_subnet(**_request(DeleteSecondarySubnetInputDict)) + client.delete_secondary_subnet(_request(DeleteSecondarySubnetInput)) + client.delete_secondary_subnet(_request(DeleteSecondarySubnetInputDict)) + client.delete_security_group() + client.delete_security_group(**_request(DeleteSecurityGroupInputDict)) + client.delete_security_group(_request(DeleteSecurityGroupInput)) + client.delete_security_group(_request(DeleteSecurityGroupInputDict)) + client.delete_snapshot(snapshot_id=_) + client.delete_snapshot(**_request(DeleteSnapshotInputDict)) + client.delete_snapshot(_request(DeleteSnapshotInput)) + client.delete_snapshot(_request(DeleteSnapshotInputDict)) + client.delete_spot_datafeed_subscription() + client.delete_spot_datafeed_subscription( + **_request(DeleteSpotDatafeedSubscriptionInputDict) + ) + client.delete_spot_datafeed_subscription( + _request(DeleteSpotDatafeedSubscriptionInput) + ) + client.delete_spot_datafeed_subscription( + _request(DeleteSpotDatafeedSubscriptionInputDict) + ) + client.delete_subnet(subnet_id=_) + client.delete_subnet(**_request(DeleteSubnetInputDict)) + client.delete_subnet(_request(DeleteSubnetInput)) + client.delete_subnet(_request(DeleteSubnetInputDict)) + client.delete_subnet_cidr_reservation(subnet_cidr_reservation_id=_) + client.delete_subnet_cidr_reservation( + **_request(DeleteSubnetCidrReservationInputDict) + ) + client.delete_subnet_cidr_reservation(_request(DeleteSubnetCidrReservationInput)) + client.delete_subnet_cidr_reservation( + _request(DeleteSubnetCidrReservationInputDict) + ) + client.delete_tags(resources=_) + client.delete_tags(**_request(DeleteTagsInputDict)) + client.delete_tags(_request(DeleteTagsInput)) + client.delete_tags(_request(DeleteTagsInputDict)) + client.delete_traffic_mirror_filter(traffic_mirror_filter_id=_) + client.delete_traffic_mirror_filter(**_request(DeleteTrafficMirrorFilterInputDict)) + client.delete_traffic_mirror_filter(_request(DeleteTrafficMirrorFilterInput)) + client.delete_traffic_mirror_filter(_request(DeleteTrafficMirrorFilterInputDict)) + client.delete_traffic_mirror_filter_rule(traffic_mirror_filter_rule_id=_) + client.delete_traffic_mirror_filter_rule( + **_request(DeleteTrafficMirrorFilterRuleInputDict) + ) + client.delete_traffic_mirror_filter_rule( + _request(DeleteTrafficMirrorFilterRuleInput) + ) + client.delete_traffic_mirror_filter_rule( + _request(DeleteTrafficMirrorFilterRuleInputDict) + ) + client.delete_traffic_mirror_session(traffic_mirror_session_id=_) + client.delete_traffic_mirror_session( + **_request(DeleteTrafficMirrorSessionInputDict) + ) + client.delete_traffic_mirror_session(_request(DeleteTrafficMirrorSessionInput)) + client.delete_traffic_mirror_session(_request(DeleteTrafficMirrorSessionInputDict)) + client.delete_traffic_mirror_target(traffic_mirror_target_id=_) + client.delete_traffic_mirror_target(**_request(DeleteTrafficMirrorTargetInputDict)) + client.delete_traffic_mirror_target(_request(DeleteTrafficMirrorTargetInput)) + client.delete_traffic_mirror_target(_request(DeleteTrafficMirrorTargetInputDict)) + client.delete_transit_gateway(transit_gateway_id=_) + client.delete_transit_gateway(**_request(DeleteTransitGatewayInputDict)) + client.delete_transit_gateway(_request(DeleteTransitGatewayInput)) + client.delete_transit_gateway(_request(DeleteTransitGatewayInputDict)) + client.delete_transit_gateway_client_vpn_attachment(transit_gateway_attachment_id=_) + client.delete_transit_gateway_client_vpn_attachment( + **_request(DeleteTransitGatewayClientVpnAttachmentInputDict) + ) + client.delete_transit_gateway_client_vpn_attachment( + _request(DeleteTransitGatewayClientVpnAttachmentInput) + ) + client.delete_transit_gateway_client_vpn_attachment( + _request(DeleteTransitGatewayClientVpnAttachmentInputDict) + ) + client.delete_transit_gateway_connect(transit_gateway_attachment_id=_) + client.delete_transit_gateway_connect( + **_request(DeleteTransitGatewayConnectInputDict) + ) + client.delete_transit_gateway_connect(_request(DeleteTransitGatewayConnectInput)) + client.delete_transit_gateway_connect( + _request(DeleteTransitGatewayConnectInputDict) + ) + client.delete_transit_gateway_connect_peer(transit_gateway_connect_peer_id=_) + client.delete_transit_gateway_connect_peer( + **_request(DeleteTransitGatewayConnectPeerInputDict) + ) + client.delete_transit_gateway_connect_peer( + _request(DeleteTransitGatewayConnectPeerInput) + ) + client.delete_transit_gateway_connect_peer( + _request(DeleteTransitGatewayConnectPeerInputDict) + ) + client.delete_transit_gateway_metering_policy(transit_gateway_metering_policy_id=_) + client.delete_transit_gateway_metering_policy( + **_request(DeleteTransitGatewayMeteringPolicyInputDict) + ) + client.delete_transit_gateway_metering_policy( + _request(DeleteTransitGatewayMeteringPolicyInput) + ) + client.delete_transit_gateway_metering_policy( + _request(DeleteTransitGatewayMeteringPolicyInputDict) + ) + client.delete_transit_gateway_metering_policy_entry( + transit_gateway_metering_policy_id=_, policy_rule_number=_ + ) + client.delete_transit_gateway_metering_policy_entry( + **_request(DeleteTransitGatewayMeteringPolicyEntryInputDict) + ) + client.delete_transit_gateway_metering_policy_entry( + _request(DeleteTransitGatewayMeteringPolicyEntryInput) + ) + client.delete_transit_gateway_metering_policy_entry( + _request(DeleteTransitGatewayMeteringPolicyEntryInputDict) + ) + client.delete_transit_gateway_multicast_domain( + transit_gateway_multicast_domain_id=_ + ) + client.delete_transit_gateway_multicast_domain( + **_request(DeleteTransitGatewayMulticastDomainInputDict) + ) + client.delete_transit_gateway_multicast_domain( + _request(DeleteTransitGatewayMulticastDomainInput) + ) + client.delete_transit_gateway_multicast_domain( + _request(DeleteTransitGatewayMulticastDomainInputDict) + ) + client.delete_transit_gateway_peering_attachment(transit_gateway_attachment_id=_) + client.delete_transit_gateway_peering_attachment( + **_request(DeleteTransitGatewayPeeringAttachmentInputDict) + ) + client.delete_transit_gateway_peering_attachment( + _request(DeleteTransitGatewayPeeringAttachmentInput) + ) + client.delete_transit_gateway_peering_attachment( + _request(DeleteTransitGatewayPeeringAttachmentInputDict) + ) + client.delete_transit_gateway_policy_table(transit_gateway_policy_table_id=_) + client.delete_transit_gateway_policy_table( + **_request(DeleteTransitGatewayPolicyTableInputDict) + ) + client.delete_transit_gateway_policy_table( + _request(DeleteTransitGatewayPolicyTableInput) + ) + client.delete_transit_gateway_policy_table( + _request(DeleteTransitGatewayPolicyTableInputDict) + ) + client.delete_transit_gateway_policy_table_entry( + transit_gateway_policy_table_id=_, policy_rule_number=_ + ) + client.delete_transit_gateway_policy_table_entry( + **_request(DeleteTransitGatewayPolicyTableEntryInputDict) + ) + client.delete_transit_gateway_policy_table_entry( + _request(DeleteTransitGatewayPolicyTableEntryInput) + ) + client.delete_transit_gateway_policy_table_entry( + _request(DeleteTransitGatewayPolicyTableEntryInputDict) + ) + client.delete_transit_gateway_prefix_list_reference( + transit_gateway_route_table_id=_, prefix_list_id=_ + ) + client.delete_transit_gateway_prefix_list_reference( + **_request(DeleteTransitGatewayPrefixListReferenceInputDict) + ) + client.delete_transit_gateway_prefix_list_reference( + _request(DeleteTransitGatewayPrefixListReferenceInput) + ) + client.delete_transit_gateway_prefix_list_reference( + _request(DeleteTransitGatewayPrefixListReferenceInputDict) + ) + client.delete_transit_gateway_route( + transit_gateway_route_table_id=_, destination_cidr_block=_ + ) + client.delete_transit_gateway_route(**_request(DeleteTransitGatewayRouteInputDict)) + client.delete_transit_gateway_route(_request(DeleteTransitGatewayRouteInput)) + client.delete_transit_gateway_route(_request(DeleteTransitGatewayRouteInputDict)) + client.delete_transit_gateway_route_table(transit_gateway_route_table_id=_) + client.delete_transit_gateway_route_table( + **_request(DeleteTransitGatewayRouteTableInputDict) + ) + client.delete_transit_gateway_route_table( + _request(DeleteTransitGatewayRouteTableInput) + ) + client.delete_transit_gateway_route_table( + _request(DeleteTransitGatewayRouteTableInputDict) + ) + client.delete_transit_gateway_route_table_announcement( + transit_gateway_route_table_announcement_id=_ + ) + client.delete_transit_gateway_route_table_announcement( + **_request(DeleteTransitGatewayRouteTableAnnouncementInputDict) + ) + client.delete_transit_gateway_route_table_announcement( + _request(DeleteTransitGatewayRouteTableAnnouncementInput) + ) + client.delete_transit_gateway_route_table_announcement( + _request(DeleteTransitGatewayRouteTableAnnouncementInputDict) + ) + client.delete_transit_gateway_vpc_attachment(transit_gateway_attachment_id=_) + client.delete_transit_gateway_vpc_attachment( + **_request(DeleteTransitGatewayVpcAttachmentInputDict) + ) + client.delete_transit_gateway_vpc_attachment( + _request(DeleteTransitGatewayVpcAttachmentInput) + ) + client.delete_transit_gateway_vpc_attachment( + _request(DeleteTransitGatewayVpcAttachmentInputDict) + ) + client.delete_verified_access_endpoint(verified_access_endpoint_id=_) + client.delete_verified_access_endpoint( + **_request(DeleteVerifiedAccessEndpointInputDict) + ) + client.delete_verified_access_endpoint(_request(DeleteVerifiedAccessEndpointInput)) + client.delete_verified_access_endpoint( + _request(DeleteVerifiedAccessEndpointInputDict) + ) + client.delete_verified_access_group(verified_access_group_id=_) + client.delete_verified_access_group(**_request(DeleteVerifiedAccessGroupInputDict)) + client.delete_verified_access_group(_request(DeleteVerifiedAccessGroupInput)) + client.delete_verified_access_group(_request(DeleteVerifiedAccessGroupInputDict)) + client.delete_verified_access_instance(verified_access_instance_id=_) + client.delete_verified_access_instance( + **_request(DeleteVerifiedAccessInstanceInputDict) + ) + client.delete_verified_access_instance(_request(DeleteVerifiedAccessInstanceInput)) + client.delete_verified_access_instance( + _request(DeleteVerifiedAccessInstanceInputDict) + ) + client.delete_verified_access_trust_provider(verified_access_trust_provider_id=_) + client.delete_verified_access_trust_provider( + **_request(DeleteVerifiedAccessTrustProviderInputDict) + ) + client.delete_verified_access_trust_provider( + _request(DeleteVerifiedAccessTrustProviderInput) + ) + client.delete_verified_access_trust_provider( + _request(DeleteVerifiedAccessTrustProviderInputDict) + ) + client.delete_volume(volume_id=_) + client.delete_volume(**_request(DeleteVolumeInputDict)) + client.delete_volume(_request(DeleteVolumeInput)) + client.delete_volume(_request(DeleteVolumeInputDict)) + client.delete_vpc(vpc_id=_) + client.delete_vpc(**_request(DeleteVpcInputDict)) + client.delete_vpc(_request(DeleteVpcInput)) + client.delete_vpc(_request(DeleteVpcInputDict)) + client.delete_vpc_block_public_access_exclusion(exclusion_id=_) + client.delete_vpc_block_public_access_exclusion( + **_request(DeleteVpcBlockPublicAccessExclusionInputDict) + ) + client.delete_vpc_block_public_access_exclusion( + _request(DeleteVpcBlockPublicAccessExclusionInput) + ) + client.delete_vpc_block_public_access_exclusion( + _request(DeleteVpcBlockPublicAccessExclusionInputDict) + ) + client.delete_vpc_encryption_control(vpc_encryption_control_id=_) + client.delete_vpc_encryption_control( + **_request(DeleteVpcEncryptionControlInputDict) + ) + client.delete_vpc_encryption_control(_request(DeleteVpcEncryptionControlInput)) + client.delete_vpc_encryption_control(_request(DeleteVpcEncryptionControlInputDict)) + client.delete_vpc_endpoint_connection_notifications(connection_notification_ids=_) + client.delete_vpc_endpoint_connection_notifications( + **_request(DeleteVpcEndpointConnectionNotificationsInputDict) + ) + client.delete_vpc_endpoint_connection_notifications( + _request(DeleteVpcEndpointConnectionNotificationsInput) + ) + client.delete_vpc_endpoint_connection_notifications( + _request(DeleteVpcEndpointConnectionNotificationsInputDict) + ) + client.delete_vpc_endpoints(vpc_endpoint_ids=_) + client.delete_vpc_endpoints(**_request(DeleteVpcEndpointsInputDict)) + client.delete_vpc_endpoints(_request(DeleteVpcEndpointsInput)) + client.delete_vpc_endpoints(_request(DeleteVpcEndpointsInputDict)) + client.delete_vpc_endpoint_service_configurations(service_ids=_) + client.delete_vpc_endpoint_service_configurations( + **_request(DeleteVpcEndpointServiceConfigurationsInputDict) + ) + client.delete_vpc_endpoint_service_configurations( + _request(DeleteVpcEndpointServiceConfigurationsInput) + ) + client.delete_vpc_endpoint_service_configurations( + _request(DeleteVpcEndpointServiceConfigurationsInputDict) + ) + client.delete_vpc_peering_connection(vpc_peering_connection_id=_) + client.delete_vpc_peering_connection( + **_request(DeleteVpcPeeringConnectionInputDict) + ) + client.delete_vpc_peering_connection(_request(DeleteVpcPeeringConnectionInput)) + client.delete_vpc_peering_connection(_request(DeleteVpcPeeringConnectionInputDict)) + client.delete_vpn_concentrator(vpn_concentrator_id=_) + client.delete_vpn_concentrator(**_request(DeleteVpnConcentratorInputDict)) + client.delete_vpn_concentrator(_request(DeleteVpnConcentratorInput)) + client.delete_vpn_concentrator(_request(DeleteVpnConcentratorInputDict)) + client.delete_vpn_connection(vpn_connection_id=_) + client.delete_vpn_connection(**_request(DeleteVpnConnectionInputDict)) + client.delete_vpn_connection(_request(DeleteVpnConnectionInput)) + client.delete_vpn_connection(_request(DeleteVpnConnectionInputDict)) + client.delete_vpn_connection_route(destination_cidr_block=_, vpn_connection_id=_) + client.delete_vpn_connection_route(**_request(DeleteVpnConnectionRouteInputDict)) + client.delete_vpn_connection_route(_request(DeleteVpnConnectionRouteInput)) + client.delete_vpn_connection_route(_request(DeleteVpnConnectionRouteInputDict)) + client.delete_vpn_gateway(vpn_gateway_id=_) + client.delete_vpn_gateway(**_request(DeleteVpnGatewayInputDict)) + client.delete_vpn_gateway(_request(DeleteVpnGatewayInput)) + client.delete_vpn_gateway(_request(DeleteVpnGatewayInputDict)) + client.deprovision_byoip_cidr(cidr=_) + client.deprovision_byoip_cidr(**_request(DeprovisionByoipCidrInputDict)) + client.deprovision_byoip_cidr(_request(DeprovisionByoipCidrInput)) + client.deprovision_byoip_cidr(_request(DeprovisionByoipCidrInputDict)) + client.deprovision_ipam_byoasn(ipam_id=_, asn=_) + client.deprovision_ipam_byoasn(**_request(DeprovisionIpamByoasnInputDict)) + client.deprovision_ipam_byoasn(_request(DeprovisionIpamByoasnInput)) + client.deprovision_ipam_byoasn(_request(DeprovisionIpamByoasnInputDict)) + client.deprovision_ipam_pool_cidr(ipam_pool_id=_) + client.deprovision_ipam_pool_cidr(**_request(DeprovisionIpamPoolCidrInputDict)) + client.deprovision_ipam_pool_cidr(_request(DeprovisionIpamPoolCidrInput)) + client.deprovision_ipam_pool_cidr(_request(DeprovisionIpamPoolCidrInputDict)) + client.deprovision_public_ipv4_pool_cidr(pool_id=_, cidr=_) + client.deprovision_public_ipv4_pool_cidr( + **_request(DeprovisionPublicIpv4PoolCidrInputDict) + ) + client.deprovision_public_ipv4_pool_cidr( + _request(DeprovisionPublicIpv4PoolCidrInput) + ) + client.deprovision_public_ipv4_pool_cidr( + _request(DeprovisionPublicIpv4PoolCidrInputDict) + ) + client.deregister_image(image_id=_) + client.deregister_image(**_request(DeregisterImageInputDict)) + client.deregister_image(_request(DeregisterImageInput)) + client.deregister_image(_request(DeregisterImageInputDict)) + client.deregister_instance_event_notification_attributes(instance_tag_attribute=_) + client.deregister_instance_event_notification_attributes( + **_request(DeregisterInstanceEventNotificationAttributesInputDict) + ) + client.deregister_instance_event_notification_attributes( + _request(DeregisterInstanceEventNotificationAttributesInput) + ) + client.deregister_instance_event_notification_attributes( + _request(DeregisterInstanceEventNotificationAttributesInputDict) + ) + client.deregister_transit_gateway_multicast_group_members() + client.deregister_transit_gateway_multicast_group_members( + **_request(DeregisterTransitGatewayMulticastGroupMembersInputDict) + ) + client.deregister_transit_gateway_multicast_group_members( + _request(DeregisterTransitGatewayMulticastGroupMembersInput) + ) + client.deregister_transit_gateway_multicast_group_members( + _request(DeregisterTransitGatewayMulticastGroupMembersInputDict) + ) + client.deregister_transit_gateway_multicast_group_sources() + client.deregister_transit_gateway_multicast_group_sources( + **_request(DeregisterTransitGatewayMulticastGroupSourcesInputDict) + ) + client.deregister_transit_gateway_multicast_group_sources( + _request(DeregisterTransitGatewayMulticastGroupSourcesInput) + ) + client.deregister_transit_gateway_multicast_group_sources( + _request(DeregisterTransitGatewayMulticastGroupSourcesInputDict) + ) + client.describe_account_attributes() + client.describe_account_attributes(**_request(DescribeAccountAttributesInputDict)) + client.describe_account_attributes(_request(DescribeAccountAttributesInput)) + client.describe_account_attributes(_request(DescribeAccountAttributesInputDict)) + client.describe_account_vpc_encryption_control() + client.describe_account_vpc_encryption_control( + **_request(DescribeAccountVpcEncryptionControlInputDict) + ) + client.describe_account_vpc_encryption_control( + _request(DescribeAccountVpcEncryptionControlInput) + ) + client.describe_account_vpc_encryption_control( + _request(DescribeAccountVpcEncryptionControlInputDict) + ) + client.describe_addresses() + client.describe_addresses(**_request(DescribeAddressesInputDict)) + client.describe_addresses(_request(DescribeAddressesInput)) + client.describe_addresses(_request(DescribeAddressesInputDict)) + client.describe_addresses_attribute() + client.describe_addresses_attribute(**_request(DescribeAddressesAttributeInputDict)) + client.describe_addresses_attribute(_request(DescribeAddressesAttributeInput)) + client.describe_addresses_attribute(_request(DescribeAddressesAttributeInputDict)) + client.describe_address_transfers() + client.describe_address_transfers(**_request(DescribeAddressTransfersInputDict)) + client.describe_address_transfers(_request(DescribeAddressTransfersInput)) + client.describe_address_transfers(_request(DescribeAddressTransfersInputDict)) + client.describe_aggregate_id_format() + client.describe_aggregate_id_format(**_request(DescribeAggregateIdFormatInputDict)) + client.describe_aggregate_id_format(_request(DescribeAggregateIdFormatInput)) + client.describe_aggregate_id_format(_request(DescribeAggregateIdFormatInputDict)) + client.describe_application_status() + client.describe_application_status(**_request(DescribeApplicationStatusInputDict)) + client.describe_application_status(_request(DescribeApplicationStatusInput)) + client.describe_application_status(_request(DescribeApplicationStatusInputDict)) + client.describe_application_status_check_associations() + client.describe_application_status_check_associations( + **_request(DescribeApplicationStatusCheckAssociationsInputDict) + ) + client.describe_application_status_check_associations( + _request(DescribeApplicationStatusCheckAssociationsInput) + ) + client.describe_application_status_check_associations( + _request(DescribeApplicationStatusCheckAssociationsInputDict) + ) + client.describe_application_status_checks() + client.describe_application_status_checks( + **_request(DescribeApplicationStatusChecksInputDict) + ) + client.describe_application_status_checks( + _request(DescribeApplicationStatusChecksInput) + ) + client.describe_application_status_checks( + _request(DescribeApplicationStatusChecksInputDict) + ) + client.describe_availability_zones() + client.describe_availability_zones(**_request(DescribeAvailabilityZonesInputDict)) + client.describe_availability_zones(_request(DescribeAvailabilityZonesInput)) + client.describe_availability_zones(_request(DescribeAvailabilityZonesInputDict)) + client.describe_aws_network_performance_metric_subscriptions() + client.describe_aws_network_performance_metric_subscriptions( + **_request(DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict) + ) + client.describe_aws_network_performance_metric_subscriptions( + _request(DescribeAwsNetworkPerformanceMetricSubscriptionsInput) + ) + client.describe_aws_network_performance_metric_subscriptions( + _request(DescribeAwsNetworkPerformanceMetricSubscriptionsInputDict) + ) + client.describe_bundle_tasks() + client.describe_bundle_tasks(**_request(DescribeBundleTasksInputDict)) + client.describe_bundle_tasks(_request(DescribeBundleTasksInput)) + client.describe_bundle_tasks(_request(DescribeBundleTasksInputDict)) + client.describe_byoip_cidrs(max_results=_) + client.describe_byoip_cidrs(**_request(DescribeByoipCidrsInputDict)) + client.describe_byoip_cidrs(_request(DescribeByoipCidrsInput)) + client.describe_byoip_cidrs(_request(DescribeByoipCidrsInputDict)) + client.describe_capacity_block_extension_history() + client.describe_capacity_block_extension_history( + **_request(DescribeCapacityBlockExtensionHistoryInputDict) + ) + client.describe_capacity_block_extension_history( + _request(DescribeCapacityBlockExtensionHistoryInput) + ) + client.describe_capacity_block_extension_history( + _request(DescribeCapacityBlockExtensionHistoryInputDict) + ) + client.describe_capacity_block_extension_offerings( + capacity_block_extension_duration_hours=_, capacity_reservation_id=_ + ) + client.describe_capacity_block_extension_offerings( + **_request(DescribeCapacityBlockExtensionOfferingsInputDict) + ) + client.describe_capacity_block_extension_offerings( + _request(DescribeCapacityBlockExtensionOfferingsInput) + ) + client.describe_capacity_block_extension_offerings( + _request(DescribeCapacityBlockExtensionOfferingsInputDict) + ) + client.describe_capacity_block_offerings(capacity_duration_hours=_) + client.describe_capacity_block_offerings( + **_request(DescribeCapacityBlockOfferingsInputDict) + ) + client.describe_capacity_block_offerings( + _request(DescribeCapacityBlockOfferingsInput) + ) + client.describe_capacity_block_offerings( + _request(DescribeCapacityBlockOfferingsInputDict) + ) + client.describe_capacity_blocks() + client.describe_capacity_blocks(**_request(DescribeCapacityBlocksInputDict)) + client.describe_capacity_blocks(_request(DescribeCapacityBlocksInput)) + client.describe_capacity_blocks(_request(DescribeCapacityBlocksInputDict)) + client.describe_capacity_block_status() + client.describe_capacity_block_status( + **_request(DescribeCapacityBlockStatusInputDict) + ) + client.describe_capacity_block_status(_request(DescribeCapacityBlockStatusInput)) + client.describe_capacity_block_status( + _request(DescribeCapacityBlockStatusInputDict) + ) + client.describe_capacity_manager_data_exports() + client.describe_capacity_manager_data_exports( + **_request(DescribeCapacityManagerDataExportsInputDict) + ) + client.describe_capacity_manager_data_exports( + _request(DescribeCapacityManagerDataExportsInput) + ) + client.describe_capacity_manager_data_exports( + _request(DescribeCapacityManagerDataExportsInputDict) + ) + client.describe_capacity_reservation_billing_requests(role=_) + client.describe_capacity_reservation_billing_requests( + **_request(DescribeCapacityReservationBillingRequestsInputDict) + ) + client.describe_capacity_reservation_billing_requests( + _request(DescribeCapacityReservationBillingRequestsInput) + ) + client.describe_capacity_reservation_billing_requests( + _request(DescribeCapacityReservationBillingRequestsInputDict) + ) + client.describe_capacity_reservation_cancellation_quotes() + client.describe_capacity_reservation_cancellation_quotes( + **_request(DescribeCapacityReservationCancellationQuotesInputDict) + ) + client.describe_capacity_reservation_cancellation_quotes( + _request(DescribeCapacityReservationCancellationQuotesInput) + ) + client.describe_capacity_reservation_cancellation_quotes( + _request(DescribeCapacityReservationCancellationQuotesInputDict) + ) + client.describe_capacity_reservation_date_change_quotes() + client.describe_capacity_reservation_date_change_quotes( + **_request(DescribeCapacityReservationDateChangeQuotesInputDict) + ) + client.describe_capacity_reservation_date_change_quotes( + _request(DescribeCapacityReservationDateChangeQuotesInput) + ) + client.describe_capacity_reservation_date_change_quotes( + _request(DescribeCapacityReservationDateChangeQuotesInputDict) + ) + client.describe_capacity_reservation_fleets() + client.describe_capacity_reservation_fleets( + **_request(DescribeCapacityReservationFleetsInputDict) + ) + client.describe_capacity_reservation_fleets( + _request(DescribeCapacityReservationFleetsInput) + ) + client.describe_capacity_reservation_fleets( + _request(DescribeCapacityReservationFleetsInputDict) + ) + client.describe_capacity_reservations() + client.describe_capacity_reservations( + **_request(DescribeCapacityReservationsInputDict) + ) + client.describe_capacity_reservations(_request(DescribeCapacityReservationsInput)) + client.describe_capacity_reservations( + _request(DescribeCapacityReservationsInputDict) + ) + client.describe_capacity_reservation_topology() + client.describe_capacity_reservation_topology( + **_request(DescribeCapacityReservationTopologyInputDict) + ) + client.describe_capacity_reservation_topology( + _request(DescribeCapacityReservationTopologyInput) + ) + client.describe_capacity_reservation_topology( + _request(DescribeCapacityReservationTopologyInputDict) + ) + client.describe_carrier_gateways() + client.describe_carrier_gateways(**_request(DescribeCarrierGatewaysInputDict)) + client.describe_carrier_gateways(_request(DescribeCarrierGatewaysInput)) + client.describe_carrier_gateways(_request(DescribeCarrierGatewaysInputDict)) + client.describe_classic_link_instances() + client.describe_classic_link_instances( + **_request(DescribeClassicLinkInstancesInputDict) + ) + client.describe_classic_link_instances(_request(DescribeClassicLinkInstancesInput)) + client.describe_classic_link_instances( + _request(DescribeClassicLinkInstancesInputDict) + ) + client.describe_client_vpn_authorization_rules(client_vpn_endpoint_id=_) + client.describe_client_vpn_authorization_rules( + **_request(DescribeClientVpnAuthorizationRulesInputDict) + ) + client.describe_client_vpn_authorization_rules( + _request(DescribeClientVpnAuthorizationRulesInput) + ) + client.describe_client_vpn_authorization_rules( + _request(DescribeClientVpnAuthorizationRulesInputDict) + ) + client.describe_client_vpn_connections(client_vpn_endpoint_id=_) + client.describe_client_vpn_connections( + **_request(DescribeClientVpnConnectionsInputDict) + ) + client.describe_client_vpn_connections(_request(DescribeClientVpnConnectionsInput)) + client.describe_client_vpn_connections( + _request(DescribeClientVpnConnectionsInputDict) + ) + client.describe_client_vpn_endpoints() + client.describe_client_vpn_endpoints( + **_request(DescribeClientVpnEndpointsInputDict) + ) + client.describe_client_vpn_endpoints(_request(DescribeClientVpnEndpointsInput)) + client.describe_client_vpn_endpoints(_request(DescribeClientVpnEndpointsInputDict)) + client.describe_client_vpn_routes(client_vpn_endpoint_id=_) + client.describe_client_vpn_routes(**_request(DescribeClientVpnRoutesInputDict)) + client.describe_client_vpn_routes(_request(DescribeClientVpnRoutesInput)) + client.describe_client_vpn_routes(_request(DescribeClientVpnRoutesInputDict)) + client.describe_client_vpn_target_networks(client_vpn_endpoint_id=_) + client.describe_client_vpn_target_networks( + **_request(DescribeClientVpnTargetNetworksInputDict) + ) + client.describe_client_vpn_target_networks( + _request(DescribeClientVpnTargetNetworksInput) + ) + client.describe_client_vpn_target_networks( + _request(DescribeClientVpnTargetNetworksInputDict) + ) + client.describe_coip_pools() + client.describe_coip_pools(**_request(DescribeCoipPoolsInputDict)) + client.describe_coip_pools(_request(DescribeCoipPoolsInput)) + client.describe_coip_pools(_request(DescribeCoipPoolsInputDict)) + client.describe_conversion_tasks() + client.describe_conversion_tasks(**_request(DescribeConversionTasksInputDict)) + client.describe_conversion_tasks(_request(DescribeConversionTasksInput)) + client.describe_conversion_tasks(_request(DescribeConversionTasksInputDict)) + client.describe_customer_gateways() + client.describe_customer_gateways(**_request(DescribeCustomerGatewaysInputDict)) + client.describe_customer_gateways(_request(DescribeCustomerGatewaysInput)) + client.describe_customer_gateways(_request(DescribeCustomerGatewaysInputDict)) + client.describe_declarative_policies_reports() + client.describe_declarative_policies_reports( + **_request(DescribeDeclarativePoliciesReportsInputDict) + ) + client.describe_declarative_policies_reports( + _request(DescribeDeclarativePoliciesReportsInput) + ) + client.describe_declarative_policies_reports( + _request(DescribeDeclarativePoliciesReportsInputDict) + ) + client.describe_dhcp_options() + client.describe_dhcp_options(**_request(DescribeDhcpOptionsInputDict)) + client.describe_dhcp_options(_request(DescribeDhcpOptionsInput)) + client.describe_dhcp_options(_request(DescribeDhcpOptionsInputDict)) + client.describe_egress_only_internet_gateways() + client.describe_egress_only_internet_gateways( + **_request(DescribeEgressOnlyInternetGatewaysInputDict) + ) + client.describe_egress_only_internet_gateways( + _request(DescribeEgressOnlyInternetGatewaysInput) + ) + client.describe_egress_only_internet_gateways( + _request(DescribeEgressOnlyInternetGatewaysInputDict) + ) + client.describe_elastic_gpus() + client.describe_elastic_gpus(**_request(DescribeElasticGpusInputDict)) + client.describe_elastic_gpus(_request(DescribeElasticGpusInput)) + client.describe_elastic_gpus(_request(DescribeElasticGpusInputDict)) + client.describe_export_image_tasks() + client.describe_export_image_tasks(**_request(DescribeExportImageTasksInputDict)) + client.describe_export_image_tasks(_request(DescribeExportImageTasksInput)) + client.describe_export_image_tasks(_request(DescribeExportImageTasksInputDict)) + client.describe_export_tasks() + client.describe_export_tasks(**_request(DescribeExportTasksInputDict)) + client.describe_export_tasks(_request(DescribeExportTasksInput)) + client.describe_export_tasks(_request(DescribeExportTasksInputDict)) + client.describe_fast_launch_images() + client.describe_fast_launch_images(**_request(DescribeFastLaunchImagesInputDict)) + client.describe_fast_launch_images(_request(DescribeFastLaunchImagesInput)) + client.describe_fast_launch_images(_request(DescribeFastLaunchImagesInputDict)) + client.describe_fast_snapshot_restores() + client.describe_fast_snapshot_restores( + **_request(DescribeFastSnapshotRestoresInputDict) + ) + client.describe_fast_snapshot_restores(_request(DescribeFastSnapshotRestoresInput)) + client.describe_fast_snapshot_restores( + _request(DescribeFastSnapshotRestoresInputDict) + ) + client.describe_fleet_history(fleet_id=_, start_time=_) + client.describe_fleet_history(**_request(DescribeFleetHistoryInputDict)) + client.describe_fleet_history(_request(DescribeFleetHistoryInput)) + client.describe_fleet_history(_request(DescribeFleetHistoryInputDict)) + client.describe_fleet_instances(fleet_id=_) + client.describe_fleet_instances(**_request(DescribeFleetInstancesInputDict)) + client.describe_fleet_instances(_request(DescribeFleetInstancesInput)) + client.describe_fleet_instances(_request(DescribeFleetInstancesInputDict)) + client.describe_fleets() + client.describe_fleets(**_request(DescribeFleetsInputDict)) + client.describe_fleets(_request(DescribeFleetsInput)) + client.describe_fleets(_request(DescribeFleetsInputDict)) + client.describe_flow_logs() + client.describe_flow_logs(**_request(DescribeFlowLogsInputDict)) + client.describe_flow_logs(_request(DescribeFlowLogsInput)) + client.describe_flow_logs(_request(DescribeFlowLogsInputDict)) + client.describe_fpga_image_attribute(fpga_image_id=_, attribute=_) + client.describe_fpga_image_attribute( + **_request(DescribeFpgaImageAttributeInputDict) + ) + client.describe_fpga_image_attribute(_request(DescribeFpgaImageAttributeInput)) + client.describe_fpga_image_attribute(_request(DescribeFpgaImageAttributeInputDict)) + client.describe_fpga_images() + client.describe_fpga_images(**_request(DescribeFpgaImagesInputDict)) + client.describe_fpga_images(_request(DescribeFpgaImagesInput)) + client.describe_fpga_images(_request(DescribeFpgaImagesInputDict)) + client.describe_host_reservation_offerings() + client.describe_host_reservation_offerings( + **_request(DescribeHostReservationOfferingsInputDict) + ) + client.describe_host_reservation_offerings( + _request(DescribeHostReservationOfferingsInput) + ) + client.describe_host_reservation_offerings( + _request(DescribeHostReservationOfferingsInputDict) + ) + client.describe_host_reservations() + client.describe_host_reservations(**_request(DescribeHostReservationsInputDict)) + client.describe_host_reservations(_request(DescribeHostReservationsInput)) + client.describe_host_reservations(_request(DescribeHostReservationsInputDict)) + client.describe_hosts() + client.describe_hosts(**_request(DescribeHostsInputDict)) + client.describe_hosts(_request(DescribeHostsInput)) + client.describe_hosts(_request(DescribeHostsInputDict)) + client.describe_iam_instance_profile_associations() + client.describe_iam_instance_profile_associations( + **_request(DescribeIamInstanceProfileAssociationsInputDict) + ) + client.describe_iam_instance_profile_associations( + _request(DescribeIamInstanceProfileAssociationsInput) + ) + client.describe_iam_instance_profile_associations( + _request(DescribeIamInstanceProfileAssociationsInputDict) + ) + client.describe_identity_id_format(principal_arn=_) + client.describe_identity_id_format(**_request(DescribeIdentityIdFormatInputDict)) + client.describe_identity_id_format(_request(DescribeIdentityIdFormatInput)) + client.describe_identity_id_format(_request(DescribeIdentityIdFormatInputDict)) + client.describe_id_format() + client.describe_id_format(**_request(DescribeIdFormatInputDict)) + client.describe_id_format(_request(DescribeIdFormatInput)) + client.describe_id_format(_request(DescribeIdFormatInputDict)) + client.describe_image_attribute(attribute=_, image_id=_) + client.describe_image_attribute(**_request(DescribeImageAttributeInputDict)) + client.describe_image_attribute(_request(DescribeImageAttributeInput)) + client.describe_image_attribute(_request(DescribeImageAttributeInputDict)) + client.describe_image_references(image_ids=_) + client.describe_image_references(**_request(DescribeImageReferencesInputDict)) + client.describe_image_references(_request(DescribeImageReferencesInput)) + client.describe_image_references(_request(DescribeImageReferencesInputDict)) + client.describe_images() + client.describe_images(**_request(DescribeImagesInputDict)) + client.describe_images(_request(DescribeImagesInput)) + client.describe_images(_request(DescribeImagesInputDict)) + client.describe_image_usage_report_entries() + client.describe_image_usage_report_entries( + **_request(DescribeImageUsageReportEntriesInputDict) + ) + client.describe_image_usage_report_entries( + _request(DescribeImageUsageReportEntriesInput) + ) + client.describe_image_usage_report_entries( + _request(DescribeImageUsageReportEntriesInputDict) + ) + client.describe_image_usage_reports() + client.describe_image_usage_reports(**_request(DescribeImageUsageReportsInputDict)) + client.describe_image_usage_reports(_request(DescribeImageUsageReportsInput)) + client.describe_image_usage_reports(_request(DescribeImageUsageReportsInputDict)) + client.describe_import_image_tasks() + client.describe_import_image_tasks(**_request(DescribeImportImageTasksInputDict)) + client.describe_import_image_tasks(_request(DescribeImportImageTasksInput)) + client.describe_import_image_tasks(_request(DescribeImportImageTasksInputDict)) + client.describe_import_snapshot_tasks() + client.describe_import_snapshot_tasks( + **_request(DescribeImportSnapshotTasksInputDict) + ) + client.describe_import_snapshot_tasks(_request(DescribeImportSnapshotTasksInput)) + client.describe_import_snapshot_tasks( + _request(DescribeImportSnapshotTasksInputDict) + ) + client.describe_instance_attribute(instance_id=_, attribute=_) + client.describe_instance_attribute(**_request(DescribeInstanceAttributeInputDict)) + client.describe_instance_attribute(_request(DescribeInstanceAttributeInput)) + client.describe_instance_attribute(_request(DescribeInstanceAttributeInputDict)) + client.describe_instance_connect_endpoints() + client.describe_instance_connect_endpoints( + **_request(DescribeInstanceConnectEndpointsInputDict) + ) + client.describe_instance_connect_endpoints( + _request(DescribeInstanceConnectEndpointsInput) + ) + client.describe_instance_connect_endpoints( + _request(DescribeInstanceConnectEndpointsInputDict) + ) + client.describe_instance_credit_specifications() + client.describe_instance_credit_specifications( + **_request(DescribeInstanceCreditSpecificationsInputDict) + ) + client.describe_instance_credit_specifications( + _request(DescribeInstanceCreditSpecificationsInput) + ) + client.describe_instance_credit_specifications( + _request(DescribeInstanceCreditSpecificationsInputDict) + ) + client.describe_instance_event_notification_attributes() + client.describe_instance_event_notification_attributes( + **_request(DescribeInstanceEventNotificationAttributesInputDict) + ) + client.describe_instance_event_notification_attributes( + _request(DescribeInstanceEventNotificationAttributesInput) + ) + client.describe_instance_event_notification_attributes( + _request(DescribeInstanceEventNotificationAttributesInputDict) + ) + client.describe_instance_event_windows() + client.describe_instance_event_windows( + **_request(DescribeInstanceEventWindowsInputDict) + ) + client.describe_instance_event_windows(_request(DescribeInstanceEventWindowsInput)) + client.describe_instance_event_windows( + _request(DescribeInstanceEventWindowsInputDict) + ) + client.describe_instance_image_metadata() + client.describe_instance_image_metadata( + **_request(DescribeInstanceImageMetadataInputDict) + ) + client.describe_instance_image_metadata( + _request(DescribeInstanceImageMetadataInput) + ) + client.describe_instance_image_metadata( + _request(DescribeInstanceImageMetadataInputDict) + ) + client.describe_instances() + client.describe_instances(**_request(DescribeInstancesInputDict)) + client.describe_instances(_request(DescribeInstancesInput)) + client.describe_instances(_request(DescribeInstancesInputDict)) + client.describe_instance_sql_ha_history_states() + client.describe_instance_sql_ha_history_states( + **_request(DescribeInstanceSqlHaHistoryStatesInputDict) + ) + client.describe_instance_sql_ha_history_states( + _request(DescribeInstanceSqlHaHistoryStatesInput) + ) + client.describe_instance_sql_ha_history_states( + _request(DescribeInstanceSqlHaHistoryStatesInputDict) + ) + client.describe_instance_sql_ha_states() + client.describe_instance_sql_ha_states( + **_request(DescribeInstanceSqlHaStatesInputDict) + ) + client.describe_instance_sql_ha_states(_request(DescribeInstanceSqlHaStatesInput)) + client.describe_instance_sql_ha_states( + _request(DescribeInstanceSqlHaStatesInputDict) + ) + client.describe_instance_status() + client.describe_instance_status(**_request(DescribeInstanceStatusInputDict)) + client.describe_instance_status(_request(DescribeInstanceStatusInput)) + client.describe_instance_status(_request(DescribeInstanceStatusInputDict)) + client.describe_instance_topology() + client.describe_instance_topology(**_request(DescribeInstanceTopologyInputDict)) + client.describe_instance_topology(_request(DescribeInstanceTopologyInput)) + client.describe_instance_topology(_request(DescribeInstanceTopologyInputDict)) + client.describe_instance_type_offerings() + client.describe_instance_type_offerings( + **_request(DescribeInstanceTypeOfferingsInputDict) + ) + client.describe_instance_type_offerings( + _request(DescribeInstanceTypeOfferingsInput) + ) + client.describe_instance_type_offerings( + _request(DescribeInstanceTypeOfferingsInputDict) + ) + client.describe_instance_types() + client.describe_instance_types(**_request(DescribeInstanceTypesInputDict)) + client.describe_instance_types(_request(DescribeInstanceTypesInput)) + client.describe_instance_types(_request(DescribeInstanceTypesInputDict)) + client.describe_internet_gateways() + client.describe_internet_gateways(**_request(DescribeInternetGatewaysInputDict)) + client.describe_internet_gateways(_request(DescribeInternetGatewaysInput)) + client.describe_internet_gateways(_request(DescribeInternetGatewaysInputDict)) + client.describe_ipam_byoasn() + client.describe_ipam_byoasn(**_request(DescribeIpamByoasnInputDict)) + client.describe_ipam_byoasn(_request(DescribeIpamByoasnInput)) + client.describe_ipam_byoasn(_request(DescribeIpamByoasnInputDict)) + client.describe_ipam_external_resource_verification_tokens() + client.describe_ipam_external_resource_verification_tokens( + **_request(DescribeIpamExternalResourceVerificationTokensInputDict) + ) + client.describe_ipam_external_resource_verification_tokens( + _request(DescribeIpamExternalResourceVerificationTokensInput) + ) + client.describe_ipam_external_resource_verification_tokens( + _request(DescribeIpamExternalResourceVerificationTokensInputDict) + ) + client.describe_ipam_internet_registry_associations() + client.describe_ipam_internet_registry_associations( + **_request(DescribeIpamInternetRegistryAssociationsInputDict) + ) + client.describe_ipam_internet_registry_associations( + _request(DescribeIpamInternetRegistryAssociationsInput) + ) + client.describe_ipam_internet_registry_associations( + _request(DescribeIpamInternetRegistryAssociationsInputDict) + ) + client.describe_ipam_policies() + client.describe_ipam_policies(**_request(DescribeIpamPoliciesInputDict)) + client.describe_ipam_policies(_request(DescribeIpamPoliciesInput)) + client.describe_ipam_policies(_request(DescribeIpamPoliciesInputDict)) + client.describe_ipam_pool_allocations() + client.describe_ipam_pool_allocations( + **_request(DescribeIpamPoolAllocationsInputDict) + ) + client.describe_ipam_pool_allocations(_request(DescribeIpamPoolAllocationsInput)) + client.describe_ipam_pool_allocations( + _request(DescribeIpamPoolAllocationsInputDict) + ) + client.describe_ipam_pools() + client.describe_ipam_pools(**_request(DescribeIpamPoolsInputDict)) + client.describe_ipam_pools(_request(DescribeIpamPoolsInput)) + client.describe_ipam_pools(_request(DescribeIpamPoolsInputDict)) + client.describe_ipam_prefix_list_resolvers() + client.describe_ipam_prefix_list_resolvers( + **_request(DescribeIpamPrefixListResolversInputDict) + ) + client.describe_ipam_prefix_list_resolvers( + _request(DescribeIpamPrefixListResolversInput) + ) + client.describe_ipam_prefix_list_resolvers( + _request(DescribeIpamPrefixListResolversInputDict) + ) + client.describe_ipam_prefix_list_resolver_targets() + client.describe_ipam_prefix_list_resolver_targets( + **_request(DescribeIpamPrefixListResolverTargetsInputDict) + ) + client.describe_ipam_prefix_list_resolver_targets( + _request(DescribeIpamPrefixListResolverTargetsInput) + ) + client.describe_ipam_prefix_list_resolver_targets( + _request(DescribeIpamPrefixListResolverTargetsInputDict) + ) + client.describe_ipam_resource_discoveries() + client.describe_ipam_resource_discoveries( + **_request(DescribeIpamResourceDiscoveriesInputDict) + ) + client.describe_ipam_resource_discoveries( + _request(DescribeIpamResourceDiscoveriesInput) + ) + client.describe_ipam_resource_discoveries( + _request(DescribeIpamResourceDiscoveriesInputDict) + ) + client.describe_ipam_resource_discovery_associations() + client.describe_ipam_resource_discovery_associations( + **_request(DescribeIpamResourceDiscoveryAssociationsInputDict) + ) + client.describe_ipam_resource_discovery_associations( + _request(DescribeIpamResourceDiscoveryAssociationsInput) + ) + client.describe_ipam_resource_discovery_associations( + _request(DescribeIpamResourceDiscoveryAssociationsInputDict) + ) + client.describe_ipams() + client.describe_ipams(**_request(DescribeIpamsInputDict)) + client.describe_ipams(_request(DescribeIpamsInput)) + client.describe_ipams(_request(DescribeIpamsInputDict)) + client.describe_ipam_scopes() + client.describe_ipam_scopes(**_request(DescribeIpamScopesInputDict)) + client.describe_ipam_scopes(_request(DescribeIpamScopesInput)) + client.describe_ipam_scopes(_request(DescribeIpamScopesInputDict)) + client.describe_ipv6_pools() + client.describe_ipv6_pools(**_request(DescribeIpv6PoolsInputDict)) + client.describe_ipv6_pools(_request(DescribeIpv6PoolsInput)) + client.describe_ipv6_pools(_request(DescribeIpv6PoolsInputDict)) + client.describe_key_pairs() + client.describe_key_pairs(**_request(DescribeKeyPairsInputDict)) + client.describe_key_pairs(_request(DescribeKeyPairsInput)) + client.describe_key_pairs(_request(DescribeKeyPairsInputDict)) + client.describe_launch_templates() + client.describe_launch_templates(**_request(DescribeLaunchTemplatesInputDict)) + client.describe_launch_templates(_request(DescribeLaunchTemplatesInput)) + client.describe_launch_templates(_request(DescribeLaunchTemplatesInputDict)) + client.describe_launch_template_versions() + client.describe_launch_template_versions( + **_request(DescribeLaunchTemplateVersionsInputDict) + ) + client.describe_launch_template_versions( + _request(DescribeLaunchTemplateVersionsInput) + ) + client.describe_launch_template_versions( + _request(DescribeLaunchTemplateVersionsInputDict) + ) + client.describe_local_gateway_route_tables() + client.describe_local_gateway_route_tables( + **_request(DescribeLocalGatewayRouteTablesInputDict) + ) + client.describe_local_gateway_route_tables( + _request(DescribeLocalGatewayRouteTablesInput) + ) + client.describe_local_gateway_route_tables( + _request(DescribeLocalGatewayRouteTablesInputDict) + ) + client.describe_local_gateway_route_table_virtual_interface_group_associations() + client.describe_local_gateway_route_table_virtual_interface_group_associations( + **_request( + DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict + ) + ) + client.describe_local_gateway_route_table_virtual_interface_group_associations( + _request(DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) + ) + client.describe_local_gateway_route_table_virtual_interface_group_associations( + _request( + DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInputDict + ) + ) + client.describe_local_gateway_route_table_vpc_associations() + client.describe_local_gateway_route_table_vpc_associations( + **_request(DescribeLocalGatewayRouteTableVpcAssociationsInputDict) + ) + client.describe_local_gateway_route_table_vpc_associations( + _request(DescribeLocalGatewayRouteTableVpcAssociationsInput) + ) + client.describe_local_gateway_route_table_vpc_associations( + _request(DescribeLocalGatewayRouteTableVpcAssociationsInputDict) + ) + client.describe_local_gateways() + client.describe_local_gateways(**_request(DescribeLocalGatewaysInputDict)) + client.describe_local_gateways(_request(DescribeLocalGatewaysInput)) + client.describe_local_gateways(_request(DescribeLocalGatewaysInputDict)) + client.describe_local_gateway_virtual_interface_groups() + client.describe_local_gateway_virtual_interface_groups( + **_request(DescribeLocalGatewayVirtualInterfaceGroupsInputDict) + ) + client.describe_local_gateway_virtual_interface_groups( + _request(DescribeLocalGatewayVirtualInterfaceGroupsInput) + ) + client.describe_local_gateway_virtual_interface_groups( + _request(DescribeLocalGatewayVirtualInterfaceGroupsInputDict) + ) + client.describe_local_gateway_virtual_interfaces() + client.describe_local_gateway_virtual_interfaces( + **_request(DescribeLocalGatewayVirtualInterfacesInputDict) + ) + client.describe_local_gateway_virtual_interfaces( + _request(DescribeLocalGatewayVirtualInterfacesInput) + ) + client.describe_local_gateway_virtual_interfaces( + _request(DescribeLocalGatewayVirtualInterfacesInputDict) + ) + client.describe_locked_snapshots() + client.describe_locked_snapshots(**_request(DescribeLockedSnapshotsInputDict)) + client.describe_locked_snapshots(_request(DescribeLockedSnapshotsInput)) + client.describe_locked_snapshots(_request(DescribeLockedSnapshotsInputDict)) + client.describe_mac_hosts() + client.describe_mac_hosts(**_request(DescribeMacHostsInputDict)) + client.describe_mac_hosts(_request(DescribeMacHostsInput)) + client.describe_mac_hosts(_request(DescribeMacHostsInputDict)) + client.describe_mac_modification_tasks() + client.describe_mac_modification_tasks( + **_request(DescribeMacModificationTasksInputDict) + ) + client.describe_mac_modification_tasks(_request(DescribeMacModificationTasksInput)) + client.describe_mac_modification_tasks( + _request(DescribeMacModificationTasksInputDict) + ) + client.describe_managed_prefix_lists() + client.describe_managed_prefix_lists( + **_request(DescribeManagedPrefixListsInputDict) + ) + client.describe_managed_prefix_lists(_request(DescribeManagedPrefixListsInput)) + client.describe_managed_prefix_lists(_request(DescribeManagedPrefixListsInputDict)) + client.describe_moving_addresses() + client.describe_moving_addresses(**_request(DescribeMovingAddressesInputDict)) + client.describe_moving_addresses(_request(DescribeMovingAddressesInput)) + client.describe_moving_addresses(_request(DescribeMovingAddressesInputDict)) + client.describe_nat_gateways() + client.describe_nat_gateways(**_request(DescribeNatGatewaysInputDict)) + client.describe_nat_gateways(_request(DescribeNatGatewaysInput)) + client.describe_nat_gateways(_request(DescribeNatGatewaysInputDict)) + client.describe_network_acls() + client.describe_network_acls(**_request(DescribeNetworkAclsInputDict)) + client.describe_network_acls(_request(DescribeNetworkAclsInput)) + client.describe_network_acls(_request(DescribeNetworkAclsInputDict)) + client.describe_network_insights_access_scope_analyses() + client.describe_network_insights_access_scope_analyses( + **_request(DescribeNetworkInsightsAccessScopeAnalysesInputDict) + ) + client.describe_network_insights_access_scope_analyses( + _request(DescribeNetworkInsightsAccessScopeAnalysesInput) + ) + client.describe_network_insights_access_scope_analyses( + _request(DescribeNetworkInsightsAccessScopeAnalysesInputDict) + ) + client.describe_network_insights_access_scopes() + client.describe_network_insights_access_scopes( + **_request(DescribeNetworkInsightsAccessScopesInputDict) + ) + client.describe_network_insights_access_scopes( + _request(DescribeNetworkInsightsAccessScopesInput) + ) + client.describe_network_insights_access_scopes( + _request(DescribeNetworkInsightsAccessScopesInputDict) + ) + client.describe_network_insights_analyses() + client.describe_network_insights_analyses( + **_request(DescribeNetworkInsightsAnalysesInputDict) + ) + client.describe_network_insights_analyses( + _request(DescribeNetworkInsightsAnalysesInput) + ) + client.describe_network_insights_analyses( + _request(DescribeNetworkInsightsAnalysesInputDict) + ) + client.describe_network_insights_paths() + client.describe_network_insights_paths( + **_request(DescribeNetworkInsightsPathsInputDict) + ) + client.describe_network_insights_paths(_request(DescribeNetworkInsightsPathsInput)) + client.describe_network_insights_paths( + _request(DescribeNetworkInsightsPathsInputDict) + ) + client.describe_network_interface_attribute(network_interface_id=_) + client.describe_network_interface_attribute( + **_request(DescribeNetworkInterfaceAttributeInputDict) + ) + client.describe_network_interface_attribute( + _request(DescribeNetworkInterfaceAttributeInput) + ) + client.describe_network_interface_attribute( + _request(DescribeNetworkInterfaceAttributeInputDict) + ) + client.describe_network_interface_permissions() + client.describe_network_interface_permissions( + **_request(DescribeNetworkInterfacePermissionsInputDict) + ) + client.describe_network_interface_permissions( + _request(DescribeNetworkInterfacePermissionsInput) + ) + client.describe_network_interface_permissions( + _request(DescribeNetworkInterfacePermissionsInputDict) + ) + client.describe_network_interfaces() + client.describe_network_interfaces(**_request(DescribeNetworkInterfacesInputDict)) + client.describe_network_interfaces(_request(DescribeNetworkInterfacesInput)) + client.describe_network_interfaces(_request(DescribeNetworkInterfacesInputDict)) + client.describe_outpost_lags() + client.describe_outpost_lags(**_request(DescribeOutpostLagsInputDict)) + client.describe_outpost_lags(_request(DescribeOutpostLagsInput)) + client.describe_outpost_lags(_request(DescribeOutpostLagsInputDict)) + client.describe_placement_groups() + client.describe_placement_groups(**_request(DescribePlacementGroupsInputDict)) + client.describe_placement_groups(_request(DescribePlacementGroupsInput)) + client.describe_placement_groups(_request(DescribePlacementGroupsInputDict)) + client.describe_prefix_lists() + client.describe_prefix_lists(**_request(DescribePrefixListsInputDict)) + client.describe_prefix_lists(_request(DescribePrefixListsInput)) + client.describe_prefix_lists(_request(DescribePrefixListsInputDict)) + client.describe_principal_id_format() + client.describe_principal_id_format(**_request(DescribePrincipalIdFormatInputDict)) + client.describe_principal_id_format(_request(DescribePrincipalIdFormatInput)) + client.describe_principal_id_format(_request(DescribePrincipalIdFormatInputDict)) + client.describe_public_ipv4_pools() + client.describe_public_ipv4_pools(**_request(DescribePublicIpv4PoolsInputDict)) + client.describe_public_ipv4_pools(_request(DescribePublicIpv4PoolsInput)) + client.describe_public_ipv4_pools(_request(DescribePublicIpv4PoolsInputDict)) + client.describe_regions() + client.describe_regions(**_request(DescribeRegionsInputDict)) + client.describe_regions(_request(DescribeRegionsInput)) + client.describe_regions(_request(DescribeRegionsInputDict)) + client.describe_replace_root_volume_tasks() + client.describe_replace_root_volume_tasks( + **_request(DescribeReplaceRootVolumeTasksInputDict) + ) + client.describe_replace_root_volume_tasks( + _request(DescribeReplaceRootVolumeTasksInput) + ) + client.describe_replace_root_volume_tasks( + _request(DescribeReplaceRootVolumeTasksInputDict) + ) + client.describe_reserved_instances() + client.describe_reserved_instances(**_request(DescribeReservedInstancesInputDict)) + client.describe_reserved_instances(_request(DescribeReservedInstancesInput)) + client.describe_reserved_instances(_request(DescribeReservedInstancesInputDict)) + client.describe_reserved_instances_listings() + client.describe_reserved_instances_listings( + **_request(DescribeReservedInstancesListingsInputDict) + ) + client.describe_reserved_instances_listings( + _request(DescribeReservedInstancesListingsInput) + ) + client.describe_reserved_instances_listings( + _request(DescribeReservedInstancesListingsInputDict) + ) + client.describe_reserved_instances_modifications() + client.describe_reserved_instances_modifications( + **_request(DescribeReservedInstancesModificationsInputDict) + ) + client.describe_reserved_instances_modifications( + _request(DescribeReservedInstancesModificationsInput) + ) + client.describe_reserved_instances_modifications( + _request(DescribeReservedInstancesModificationsInputDict) + ) + client.describe_reserved_instances_offerings() + client.describe_reserved_instances_offerings( + **_request(DescribeReservedInstancesOfferingsInputDict) + ) + client.describe_reserved_instances_offerings( + _request(DescribeReservedInstancesOfferingsInput) + ) + client.describe_reserved_instances_offerings( + _request(DescribeReservedInstancesOfferingsInputDict) + ) + client.describe_route_server_endpoints() + client.describe_route_server_endpoints( + **_request(DescribeRouteServerEndpointsInputDict) + ) + client.describe_route_server_endpoints(_request(DescribeRouteServerEndpointsInput)) + client.describe_route_server_endpoints( + _request(DescribeRouteServerEndpointsInputDict) + ) + client.describe_route_server_peers() + client.describe_route_server_peers(**_request(DescribeRouteServerPeersInputDict)) + client.describe_route_server_peers(_request(DescribeRouteServerPeersInput)) + client.describe_route_server_peers(_request(DescribeRouteServerPeersInputDict)) + client.describe_route_servers() + client.describe_route_servers(**_request(DescribeRouteServersInputDict)) + client.describe_route_servers(_request(DescribeRouteServersInput)) + client.describe_route_servers(_request(DescribeRouteServersInputDict)) + client.describe_route_tables() + client.describe_route_tables(**_request(DescribeRouteTablesInputDict)) + client.describe_route_tables(_request(DescribeRouteTablesInput)) + client.describe_route_tables(_request(DescribeRouteTablesInputDict)) + client.describe_scheduled_instance_availability( + first_slot_start_time_range=_, recurrence=_ + ) + client.describe_scheduled_instance_availability( + **_request(DescribeScheduledInstanceAvailabilityInputDict) + ) + client.describe_scheduled_instance_availability( + _request(DescribeScheduledInstanceAvailabilityInput) + ) + client.describe_scheduled_instance_availability( + _request(DescribeScheduledInstanceAvailabilityInputDict) + ) + client.describe_scheduled_instances() + client.describe_scheduled_instances(**_request(DescribeScheduledInstancesInputDict)) + client.describe_scheduled_instances(_request(DescribeScheduledInstancesInput)) + client.describe_scheduled_instances(_request(DescribeScheduledInstancesInputDict)) + client.describe_secondary_interfaces() + client.describe_secondary_interfaces( + **_request(DescribeSecondaryInterfacesInputDict) + ) + client.describe_secondary_interfaces(_request(DescribeSecondaryInterfacesInput)) + client.describe_secondary_interfaces(_request(DescribeSecondaryInterfacesInputDict)) + client.describe_secondary_networks() + client.describe_secondary_networks(**_request(DescribeSecondaryNetworksInputDict)) + client.describe_secondary_networks(_request(DescribeSecondaryNetworksInput)) + client.describe_secondary_networks(_request(DescribeSecondaryNetworksInputDict)) + client.describe_secondary_subnets() + client.describe_secondary_subnets(**_request(DescribeSecondarySubnetsInputDict)) + client.describe_secondary_subnets(_request(DescribeSecondarySubnetsInput)) + client.describe_secondary_subnets(_request(DescribeSecondarySubnetsInputDict)) + client.describe_security_group_references(group_id=_) + client.describe_security_group_references( + **_request(DescribeSecurityGroupReferencesInputDict) + ) + client.describe_security_group_references( + _request(DescribeSecurityGroupReferencesInput) + ) + client.describe_security_group_references( + _request(DescribeSecurityGroupReferencesInputDict) + ) + client.describe_security_group_rules() + client.describe_security_group_rules( + **_request(DescribeSecurityGroupRulesInputDict) + ) + client.describe_security_group_rules(_request(DescribeSecurityGroupRulesInput)) + client.describe_security_group_rules(_request(DescribeSecurityGroupRulesInputDict)) + client.describe_security_groups() + client.describe_security_groups(**_request(DescribeSecurityGroupsInputDict)) + client.describe_security_groups(_request(DescribeSecurityGroupsInput)) + client.describe_security_groups(_request(DescribeSecurityGroupsInputDict)) + client.describe_security_group_vpc_associations() + client.describe_security_group_vpc_associations( + **_request(DescribeSecurityGroupVpcAssociationsInputDict) + ) + client.describe_security_group_vpc_associations( + _request(DescribeSecurityGroupVpcAssociationsInput) + ) + client.describe_security_group_vpc_associations( + _request(DescribeSecurityGroupVpcAssociationsInputDict) + ) + client.describe_service_link_virtual_interfaces() + client.describe_service_link_virtual_interfaces( + **_request(DescribeServiceLinkVirtualInterfacesInputDict) + ) + client.describe_service_link_virtual_interfaces( + _request(DescribeServiceLinkVirtualInterfacesInput) + ) + client.describe_service_link_virtual_interfaces( + _request(DescribeServiceLinkVirtualInterfacesInputDict) + ) + client.describe_snapshot_attribute(attribute=_, snapshot_id=_) + client.describe_snapshot_attribute(**_request(DescribeSnapshotAttributeInputDict)) + client.describe_snapshot_attribute(_request(DescribeSnapshotAttributeInput)) + client.describe_snapshot_attribute(_request(DescribeSnapshotAttributeInputDict)) + client.describe_snapshots() + client.describe_snapshots(**_request(DescribeSnapshotsInputDict)) + client.describe_snapshots(_request(DescribeSnapshotsInput)) + client.describe_snapshots(_request(DescribeSnapshotsInputDict)) + client.describe_snapshot_tier_status() + client.describe_snapshot_tier_status( + **_request(DescribeSnapshotTierStatusInputDict) + ) + client.describe_snapshot_tier_status(_request(DescribeSnapshotTierStatusInput)) + client.describe_snapshot_tier_status(_request(DescribeSnapshotTierStatusInputDict)) + client.describe_spot_datafeed_subscription() + client.describe_spot_datafeed_subscription( + **_request(DescribeSpotDatafeedSubscriptionInputDict) + ) + client.describe_spot_datafeed_subscription( + _request(DescribeSpotDatafeedSubscriptionInput) + ) + client.describe_spot_datafeed_subscription( + _request(DescribeSpotDatafeedSubscriptionInputDict) + ) + client.describe_spot_fleet_instances(spot_fleet_request_id=_) + client.describe_spot_fleet_instances( + **_request(DescribeSpotFleetInstancesInputDict) + ) + client.describe_spot_fleet_instances(_request(DescribeSpotFleetInstancesInput)) + client.describe_spot_fleet_instances(_request(DescribeSpotFleetInstancesInputDict)) + client.describe_spot_fleet_request_history(spot_fleet_request_id=_, start_time=_) + client.describe_spot_fleet_request_history( + **_request(DescribeSpotFleetRequestHistoryInputDict) + ) + client.describe_spot_fleet_request_history( + _request(DescribeSpotFleetRequestHistoryInput) + ) + client.describe_spot_fleet_request_history( + _request(DescribeSpotFleetRequestHistoryInputDict) + ) + client.describe_spot_fleet_requests() + client.describe_spot_fleet_requests(**_request(DescribeSpotFleetRequestsInputDict)) + client.describe_spot_fleet_requests(_request(DescribeSpotFleetRequestsInput)) + client.describe_spot_fleet_requests(_request(DescribeSpotFleetRequestsInputDict)) + client.describe_spot_instance_requests() + client.describe_spot_instance_requests( + **_request(DescribeSpotInstanceRequestsInputDict) + ) + client.describe_spot_instance_requests(_request(DescribeSpotInstanceRequestsInput)) + client.describe_spot_instance_requests( + _request(DescribeSpotInstanceRequestsInputDict) + ) + client.describe_spot_price_history() + client.describe_spot_price_history(**_request(DescribeSpotPriceHistoryInputDict)) + client.describe_spot_price_history(_request(DescribeSpotPriceHistoryInput)) + client.describe_spot_price_history(_request(DescribeSpotPriceHistoryInputDict)) + client.describe_stale_security_groups(vpc_id=_) + client.describe_stale_security_groups( + **_request(DescribeStaleSecurityGroupsInputDict) + ) + client.describe_stale_security_groups(_request(DescribeStaleSecurityGroupsInput)) + client.describe_stale_security_groups( + _request(DescribeStaleSecurityGroupsInputDict) + ) + client.describe_store_image_tasks() + client.describe_store_image_tasks(**_request(DescribeStoreImageTasksInputDict)) + client.describe_store_image_tasks(_request(DescribeStoreImageTasksInput)) + client.describe_store_image_tasks(_request(DescribeStoreImageTasksInputDict)) + client.describe_subnets() + client.describe_subnets(**_request(DescribeSubnetsInputDict)) + client.describe_subnets(_request(DescribeSubnetsInput)) + client.describe_subnets(_request(DescribeSubnetsInputDict)) + client.describe_tags() + client.describe_tags(**_request(DescribeTagsInputDict)) + client.describe_tags(_request(DescribeTagsInput)) + client.describe_tags(_request(DescribeTagsInputDict)) + client.describe_traffic_mirror_filter_rules() + client.describe_traffic_mirror_filter_rules( + **_request(DescribeTrafficMirrorFilterRulesInputDict) + ) + client.describe_traffic_mirror_filter_rules( + _request(DescribeTrafficMirrorFilterRulesInput) + ) + client.describe_traffic_mirror_filter_rules( + _request(DescribeTrafficMirrorFilterRulesInputDict) + ) + client.describe_traffic_mirror_filters() + client.describe_traffic_mirror_filters( + **_request(DescribeTrafficMirrorFiltersInputDict) + ) + client.describe_traffic_mirror_filters(_request(DescribeTrafficMirrorFiltersInput)) + client.describe_traffic_mirror_filters( + _request(DescribeTrafficMirrorFiltersInputDict) + ) + client.describe_traffic_mirror_sessions() + client.describe_traffic_mirror_sessions( + **_request(DescribeTrafficMirrorSessionsInputDict) + ) + client.describe_traffic_mirror_sessions( + _request(DescribeTrafficMirrorSessionsInput) + ) + client.describe_traffic_mirror_sessions( + _request(DescribeTrafficMirrorSessionsInputDict) + ) + client.describe_traffic_mirror_targets() + client.describe_traffic_mirror_targets( + **_request(DescribeTrafficMirrorTargetsInputDict) + ) + client.describe_traffic_mirror_targets(_request(DescribeTrafficMirrorTargetsInput)) + client.describe_traffic_mirror_targets( + _request(DescribeTrafficMirrorTargetsInputDict) + ) + client.describe_transit_gateway_attachments() + client.describe_transit_gateway_attachments( + **_request(DescribeTransitGatewayAttachmentsInputDict) + ) + client.describe_transit_gateway_attachments( + _request(DescribeTransitGatewayAttachmentsInput) + ) + client.describe_transit_gateway_attachments( + _request(DescribeTransitGatewayAttachmentsInputDict) + ) + client.describe_transit_gateway_connect_peers() + client.describe_transit_gateway_connect_peers( + **_request(DescribeTransitGatewayConnectPeersInputDict) + ) + client.describe_transit_gateway_connect_peers( + _request(DescribeTransitGatewayConnectPeersInput) + ) + client.describe_transit_gateway_connect_peers( + _request(DescribeTransitGatewayConnectPeersInputDict) + ) + client.describe_transit_gateway_connects() + client.describe_transit_gateway_connects( + **_request(DescribeTransitGatewayConnectsInputDict) + ) + client.describe_transit_gateway_connects( + _request(DescribeTransitGatewayConnectsInput) + ) + client.describe_transit_gateway_connects( + _request(DescribeTransitGatewayConnectsInputDict) + ) + client.describe_transit_gateway_metering_policies() + client.describe_transit_gateway_metering_policies( + **_request(DescribeTransitGatewayMeteringPoliciesInputDict) + ) + client.describe_transit_gateway_metering_policies( + _request(DescribeTransitGatewayMeteringPoliciesInput) + ) + client.describe_transit_gateway_metering_policies( + _request(DescribeTransitGatewayMeteringPoliciesInputDict) + ) + client.describe_transit_gateway_multicast_domains() + client.describe_transit_gateway_multicast_domains( + **_request(DescribeTransitGatewayMulticastDomainsInputDict) + ) + client.describe_transit_gateway_multicast_domains( + _request(DescribeTransitGatewayMulticastDomainsInput) + ) + client.describe_transit_gateway_multicast_domains( + _request(DescribeTransitGatewayMulticastDomainsInputDict) + ) + client.describe_transit_gateway_peering_attachments() + client.describe_transit_gateway_peering_attachments( + **_request(DescribeTransitGatewayPeeringAttachmentsInputDict) + ) + client.describe_transit_gateway_peering_attachments( + _request(DescribeTransitGatewayPeeringAttachmentsInput) + ) + client.describe_transit_gateway_peering_attachments( + _request(DescribeTransitGatewayPeeringAttachmentsInputDict) + ) + client.describe_transit_gateway_policy_tables() + client.describe_transit_gateway_policy_tables( + **_request(DescribeTransitGatewayPolicyTablesInputDict) + ) + client.describe_transit_gateway_policy_tables( + _request(DescribeTransitGatewayPolicyTablesInput) + ) + client.describe_transit_gateway_policy_tables( + _request(DescribeTransitGatewayPolicyTablesInputDict) + ) + client.describe_transit_gateway_route_table_announcements() + client.describe_transit_gateway_route_table_announcements( + **_request(DescribeTransitGatewayRouteTableAnnouncementsInputDict) + ) + client.describe_transit_gateway_route_table_announcements( + _request(DescribeTransitGatewayRouteTableAnnouncementsInput) + ) + client.describe_transit_gateway_route_table_announcements( + _request(DescribeTransitGatewayRouteTableAnnouncementsInputDict) + ) + client.describe_transit_gateway_route_tables() + client.describe_transit_gateway_route_tables( + **_request(DescribeTransitGatewayRouteTablesInputDict) + ) + client.describe_transit_gateway_route_tables( + _request(DescribeTransitGatewayRouteTablesInput) + ) + client.describe_transit_gateway_route_tables( + _request(DescribeTransitGatewayRouteTablesInputDict) + ) + client.describe_transit_gateways() + client.describe_transit_gateways(**_request(DescribeTransitGatewaysInputDict)) + client.describe_transit_gateways(_request(DescribeTransitGatewaysInput)) + client.describe_transit_gateways(_request(DescribeTransitGatewaysInputDict)) + client.describe_transit_gateway_vpc_attachments() + client.describe_transit_gateway_vpc_attachments( + **_request(DescribeTransitGatewayVpcAttachmentsInputDict) + ) + client.describe_transit_gateway_vpc_attachments( + _request(DescribeTransitGatewayVpcAttachmentsInput) + ) + client.describe_transit_gateway_vpc_attachments( + _request(DescribeTransitGatewayVpcAttachmentsInputDict) + ) + client.describe_trunk_interface_associations() + client.describe_trunk_interface_associations( + **_request(DescribeTrunkInterfaceAssociationsInputDict) + ) + client.describe_trunk_interface_associations( + _request(DescribeTrunkInterfaceAssociationsInput) + ) + client.describe_trunk_interface_associations( + _request(DescribeTrunkInterfaceAssociationsInputDict) + ) + client.describe_verified_access_endpoints() + client.describe_verified_access_endpoints( + **_request(DescribeVerifiedAccessEndpointsInputDict) + ) + client.describe_verified_access_endpoints( + _request(DescribeVerifiedAccessEndpointsInput) + ) + client.describe_verified_access_endpoints( + _request(DescribeVerifiedAccessEndpointsInputDict) + ) + client.describe_verified_access_groups() + client.describe_verified_access_groups( + **_request(DescribeVerifiedAccessGroupsInputDict) + ) + client.describe_verified_access_groups(_request(DescribeVerifiedAccessGroupsInput)) + client.describe_verified_access_groups( + _request(DescribeVerifiedAccessGroupsInputDict) + ) + client.describe_verified_access_instance_logging_configurations() + client.describe_verified_access_instance_logging_configurations( + **_request(DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict) + ) + client.describe_verified_access_instance_logging_configurations( + _request(DescribeVerifiedAccessInstanceLoggingConfigurationsInput) + ) + client.describe_verified_access_instance_logging_configurations( + _request(DescribeVerifiedAccessInstanceLoggingConfigurationsInputDict) + ) + client.describe_verified_access_instances() + client.describe_verified_access_instances( + **_request(DescribeVerifiedAccessInstancesInputDict) + ) + client.describe_verified_access_instances( + _request(DescribeVerifiedAccessInstancesInput) + ) + client.describe_verified_access_instances( + _request(DescribeVerifiedAccessInstancesInputDict) + ) + client.describe_verified_access_trust_providers() + client.describe_verified_access_trust_providers( + **_request(DescribeVerifiedAccessTrustProvidersInputDict) + ) + client.describe_verified_access_trust_providers( + _request(DescribeVerifiedAccessTrustProvidersInput) + ) + client.describe_verified_access_trust_providers( + _request(DescribeVerifiedAccessTrustProvidersInputDict) + ) + client.describe_volume_attribute(attribute=_, volume_id=_) + client.describe_volume_attribute(**_request(DescribeVolumeAttributeInputDict)) + client.describe_volume_attribute(_request(DescribeVolumeAttributeInput)) + client.describe_volume_attribute(_request(DescribeVolumeAttributeInputDict)) + client.describe_volumes() + client.describe_volumes(**_request(DescribeVolumesInputDict)) + client.describe_volumes(_request(DescribeVolumesInput)) + client.describe_volumes(_request(DescribeVolumesInputDict)) + client.describe_volumes_modifications() + client.describe_volumes_modifications( + **_request(DescribeVolumesModificationsInputDict) + ) + client.describe_volumes_modifications(_request(DescribeVolumesModificationsInput)) + client.describe_volumes_modifications( + _request(DescribeVolumesModificationsInputDict) + ) + client.describe_volume_status() + client.describe_volume_status(**_request(DescribeVolumeStatusInputDict)) + client.describe_volume_status(_request(DescribeVolumeStatusInput)) + client.describe_volume_status(_request(DescribeVolumeStatusInputDict)) + client.describe_vpc_attribute(attribute=_, vpc_id=_) + client.describe_vpc_attribute(**_request(DescribeVpcAttributeInputDict)) + client.describe_vpc_attribute(_request(DescribeVpcAttributeInput)) + client.describe_vpc_attribute(_request(DescribeVpcAttributeInputDict)) + client.describe_vpc_block_public_access_exclusions() + client.describe_vpc_block_public_access_exclusions( + **_request(DescribeVpcBlockPublicAccessExclusionsInputDict) + ) + client.describe_vpc_block_public_access_exclusions( + _request(DescribeVpcBlockPublicAccessExclusionsInput) + ) + client.describe_vpc_block_public_access_exclusions( + _request(DescribeVpcBlockPublicAccessExclusionsInputDict) + ) + client.describe_vpc_block_public_access_options() + client.describe_vpc_block_public_access_options( + **_request(DescribeVpcBlockPublicAccessOptionsInputDict) + ) + client.describe_vpc_block_public_access_options( + _request(DescribeVpcBlockPublicAccessOptionsInput) + ) + client.describe_vpc_block_public_access_options( + _request(DescribeVpcBlockPublicAccessOptionsInputDict) + ) + client.describe_vpc_classic_link() + client.describe_vpc_classic_link(**_request(DescribeVpcClassicLinkInputDict)) + client.describe_vpc_classic_link(_request(DescribeVpcClassicLinkInput)) + client.describe_vpc_classic_link(_request(DescribeVpcClassicLinkInputDict)) + client.describe_vpc_classic_link_dns_support() + client.describe_vpc_classic_link_dns_support( + **_request(DescribeVpcClassicLinkDnsSupportInputDict) + ) + client.describe_vpc_classic_link_dns_support( + _request(DescribeVpcClassicLinkDnsSupportInput) + ) + client.describe_vpc_classic_link_dns_support( + _request(DescribeVpcClassicLinkDnsSupportInputDict) + ) + client.describe_vpc_encryption_controls() + client.describe_vpc_encryption_controls( + **_request(DescribeVpcEncryptionControlsInputDict) + ) + client.describe_vpc_encryption_controls( + _request(DescribeVpcEncryptionControlsInput) + ) + client.describe_vpc_encryption_controls( + _request(DescribeVpcEncryptionControlsInputDict) + ) + client.describe_vpc_endpoint_associations() + client.describe_vpc_endpoint_associations( + **_request(DescribeVpcEndpointAssociationsInputDict) + ) + client.describe_vpc_endpoint_associations( + _request(DescribeVpcEndpointAssociationsInput) + ) + client.describe_vpc_endpoint_associations( + _request(DescribeVpcEndpointAssociationsInputDict) + ) + client.describe_vpc_endpoint_connection_notifications() + client.describe_vpc_endpoint_connection_notifications( + **_request(DescribeVpcEndpointConnectionNotificationsInputDict) + ) + client.describe_vpc_endpoint_connection_notifications( + _request(DescribeVpcEndpointConnectionNotificationsInput) + ) + client.describe_vpc_endpoint_connection_notifications( + _request(DescribeVpcEndpointConnectionNotificationsInputDict) + ) + client.describe_vpc_endpoint_connections() + client.describe_vpc_endpoint_connections( + **_request(DescribeVpcEndpointConnectionsInputDict) + ) + client.describe_vpc_endpoint_connections( + _request(DescribeVpcEndpointConnectionsInput) + ) + client.describe_vpc_endpoint_connections( + _request(DescribeVpcEndpointConnectionsInputDict) + ) + client.describe_vpc_endpoints() + client.describe_vpc_endpoints(**_request(DescribeVpcEndpointsInputDict)) + client.describe_vpc_endpoints(_request(DescribeVpcEndpointsInput)) + client.describe_vpc_endpoints(_request(DescribeVpcEndpointsInputDict)) + client.describe_vpc_endpoint_service_configurations() + client.describe_vpc_endpoint_service_configurations( + **_request(DescribeVpcEndpointServiceConfigurationsInputDict) + ) + client.describe_vpc_endpoint_service_configurations( + _request(DescribeVpcEndpointServiceConfigurationsInput) + ) + client.describe_vpc_endpoint_service_configurations( + _request(DescribeVpcEndpointServiceConfigurationsInputDict) + ) + client.describe_vpc_endpoint_service_permissions(service_id=_) + client.describe_vpc_endpoint_service_permissions( + **_request(DescribeVpcEndpointServicePermissionsInputDict) + ) + client.describe_vpc_endpoint_service_permissions( + _request(DescribeVpcEndpointServicePermissionsInput) + ) + client.describe_vpc_endpoint_service_permissions( + _request(DescribeVpcEndpointServicePermissionsInputDict) + ) + client.describe_vpc_endpoint_services() + client.describe_vpc_endpoint_services( + **_request(DescribeVpcEndpointServicesInputDict) + ) + client.describe_vpc_endpoint_services(_request(DescribeVpcEndpointServicesInput)) + client.describe_vpc_endpoint_services( + _request(DescribeVpcEndpointServicesInputDict) + ) + client.describe_vpc_peering_connections() + client.describe_vpc_peering_connections( + **_request(DescribeVpcPeeringConnectionsInputDict) + ) + client.describe_vpc_peering_connections( + _request(DescribeVpcPeeringConnectionsInput) + ) + client.describe_vpc_peering_connections( + _request(DescribeVpcPeeringConnectionsInputDict) + ) + client.describe_vpcs() + client.describe_vpcs(**_request(DescribeVpcsInputDict)) + client.describe_vpcs(_request(DescribeVpcsInput)) + client.describe_vpcs(_request(DescribeVpcsInputDict)) + client.describe_vpn_concentrators() + client.describe_vpn_concentrators(**_request(DescribeVpnConcentratorsInputDict)) + client.describe_vpn_concentrators(_request(DescribeVpnConcentratorsInput)) + client.describe_vpn_concentrators(_request(DescribeVpnConcentratorsInputDict)) + client.describe_vpn_connections() + client.describe_vpn_connections(**_request(DescribeVpnConnectionsInputDict)) + client.describe_vpn_connections(_request(DescribeVpnConnectionsInput)) + client.describe_vpn_connections(_request(DescribeVpnConnectionsInputDict)) + client.describe_vpn_gateways() + client.describe_vpn_gateways(**_request(DescribeVpnGatewaysInputDict)) + client.describe_vpn_gateways(_request(DescribeVpnGatewaysInput)) + client.describe_vpn_gateways(_request(DescribeVpnGatewaysInputDict)) + client.detach_classic_link_vpc(instance_id=_, vpc_id=_) + client.detach_classic_link_vpc(**_request(DetachClassicLinkVpcInputDict)) + client.detach_classic_link_vpc(_request(DetachClassicLinkVpcInput)) + client.detach_classic_link_vpc(_request(DetachClassicLinkVpcInputDict)) + client.detach_image_watermark(image_id=_, watermark_key=_) + client.detach_image_watermark(**_request(DetachImageWatermarkInputDict)) + client.detach_image_watermark(_request(DetachImageWatermarkInput)) + client.detach_image_watermark(_request(DetachImageWatermarkInputDict)) + client.detach_internet_gateway(internet_gateway_id=_, vpc_id=_) + client.detach_internet_gateway(**_request(DetachInternetGatewayInputDict)) + client.detach_internet_gateway(_request(DetachInternetGatewayInput)) + client.detach_internet_gateway(_request(DetachInternetGatewayInputDict)) + client.detach_network_interface(attachment_id=_) + client.detach_network_interface(**_request(DetachNetworkInterfaceInputDict)) + client.detach_network_interface(_request(DetachNetworkInterfaceInput)) + client.detach_network_interface(_request(DetachNetworkInterfaceInputDict)) + client.detach_verified_access_trust_provider( + verified_access_instance_id=_, verified_access_trust_provider_id=_ + ) + client.detach_verified_access_trust_provider( + **_request(DetachVerifiedAccessTrustProviderInputDict) + ) + client.detach_verified_access_trust_provider( + _request(DetachVerifiedAccessTrustProviderInput) + ) + client.detach_verified_access_trust_provider( + _request(DetachVerifiedAccessTrustProviderInputDict) + ) + client.detach_volume(volume_id=_) + client.detach_volume(**_request(DetachVolumeInputDict)) + client.detach_volume(_request(DetachVolumeInput)) + client.detach_volume(_request(DetachVolumeInputDict)) + client.detach_vpn_gateway(vpc_id=_, vpn_gateway_id=_) + client.detach_vpn_gateway(**_request(DetachVpnGatewayInputDict)) + client.detach_vpn_gateway(_request(DetachVpnGatewayInput)) + client.detach_vpn_gateway(_request(DetachVpnGatewayInputDict)) + client.disable_address_transfer(allocation_id=_) + client.disable_address_transfer(**_request(DisableAddressTransferInputDict)) + client.disable_address_transfer(_request(DisableAddressTransferInput)) + client.disable_address_transfer(_request(DisableAddressTransferInputDict)) + client.disable_allowed_images_settings() + client.disable_allowed_images_settings( + **_request(DisableAllowedImagesSettingsInputDict) + ) + client.disable_allowed_images_settings(_request(DisableAllowedImagesSettingsInput)) + client.disable_allowed_images_settings( + _request(DisableAllowedImagesSettingsInputDict) + ) + client.disable_application_status_check_suppression() + client.disable_application_status_check_suppression( + **_request(DisableApplicationStatusCheckSuppressionInputDict) + ) + client.disable_application_status_check_suppression( + _request(DisableApplicationStatusCheckSuppressionInput) + ) + client.disable_application_status_check_suppression( + _request(DisableApplicationStatusCheckSuppressionInputDict) + ) + client.disable_aws_network_performance_metric_subscription() + client.disable_aws_network_performance_metric_subscription( + **_request(DisableAwsNetworkPerformanceMetricSubscriptionInputDict) + ) + client.disable_aws_network_performance_metric_subscription( + _request(DisableAwsNetworkPerformanceMetricSubscriptionInput) + ) + client.disable_aws_network_performance_metric_subscription( + _request(DisableAwsNetworkPerformanceMetricSubscriptionInputDict) + ) + client.disable_capacity_manager() + client.disable_capacity_manager(**_request(DisableCapacityManagerInputDict)) + client.disable_capacity_manager(_request(DisableCapacityManagerInput)) + client.disable_capacity_manager(_request(DisableCapacityManagerInputDict)) + client.disable_ebs_encryption_by_default() + client.disable_ebs_encryption_by_default( + **_request(DisableEbsEncryptionByDefaultInputDict) + ) + client.disable_ebs_encryption_by_default( + _request(DisableEbsEncryptionByDefaultInput) + ) + client.disable_ebs_encryption_by_default( + _request(DisableEbsEncryptionByDefaultInputDict) + ) + client.disable_fast_launch(image_id=_) + client.disable_fast_launch(**_request(DisableFastLaunchInputDict)) + client.disable_fast_launch(_request(DisableFastLaunchInput)) + client.disable_fast_launch(_request(DisableFastLaunchInputDict)) + client.disable_fast_snapshot_restores(source_snapshot_ids=_) + client.disable_fast_snapshot_restores( + **_request(DisableFastSnapshotRestoresInputDict) + ) + client.disable_fast_snapshot_restores(_request(DisableFastSnapshotRestoresInput)) + client.disable_fast_snapshot_restores( + _request(DisableFastSnapshotRestoresInputDict) + ) + client.disable_image(image_id=_) + client.disable_image(**_request(DisableImageInputDict)) + client.disable_image(_request(DisableImageInput)) + client.disable_image(_request(DisableImageInputDict)) + client.disable_image_block_public_access() + client.disable_image_block_public_access( + **_request(DisableImageBlockPublicAccessInputDict) + ) + client.disable_image_block_public_access( + _request(DisableImageBlockPublicAccessInput) + ) + client.disable_image_block_public_access( + _request(DisableImageBlockPublicAccessInputDict) + ) + client.disable_image_deprecation(image_id=_) + client.disable_image_deprecation(**_request(DisableImageDeprecationInputDict)) + client.disable_image_deprecation(_request(DisableImageDeprecationInput)) + client.disable_image_deprecation(_request(DisableImageDeprecationInputDict)) + client.disable_image_deregistration_protection(image_id=_) + client.disable_image_deregistration_protection( + **_request(DisableImageDeregistrationProtectionInputDict) + ) + client.disable_image_deregistration_protection( + _request(DisableImageDeregistrationProtectionInput) + ) + client.disable_image_deregistration_protection( + _request(DisableImageDeregistrationProtectionInputDict) + ) + client.disable_instance_sql_ha_standby_detections(instance_ids=_) + client.disable_instance_sql_ha_standby_detections( + **_request(DisableInstanceSqlHaStandbyDetectionsInputDict) + ) + client.disable_instance_sql_ha_standby_detections( + _request(DisableInstanceSqlHaStandbyDetectionsInput) + ) + client.disable_instance_sql_ha_standby_detections( + _request(DisableInstanceSqlHaStandbyDetectionsInputDict) + ) + client.disable_ipam_organization_admin_account(delegated_admin_account_id=_) + client.disable_ipam_organization_admin_account( + **_request(DisableIpamOrganizationAdminAccountInputDict) + ) + client.disable_ipam_organization_admin_account( + _request(DisableIpamOrganizationAdminAccountInput) + ) + client.disable_ipam_organization_admin_account( + _request(DisableIpamOrganizationAdminAccountInputDict) + ) + client.disable_ipam_policy(ipam_policy_id=_) + client.disable_ipam_policy(**_request(DisableIpamPolicyInputDict)) + client.disable_ipam_policy(_request(DisableIpamPolicyInput)) + client.disable_ipam_policy(_request(DisableIpamPolicyInputDict)) + client.disable_route_server_propagation(route_server_id=_, route_table_id=_) + client.disable_route_server_propagation( + **_request(DisableRouteServerPropagationInputDict) + ) + client.disable_route_server_propagation( + _request(DisableRouteServerPropagationInput) + ) + client.disable_route_server_propagation( + _request(DisableRouteServerPropagationInputDict) + ) + client.disable_serial_console_access() + client.disable_serial_console_access( + **_request(DisableSerialConsoleAccessInputDict) + ) + client.disable_serial_console_access(_request(DisableSerialConsoleAccessInput)) + client.disable_serial_console_access(_request(DisableSerialConsoleAccessInputDict)) + client.disable_snapshot_block_public_access() + client.disable_snapshot_block_public_access( + **_request(DisableSnapshotBlockPublicAccessInputDict) + ) + client.disable_snapshot_block_public_access( + _request(DisableSnapshotBlockPublicAccessInput) + ) + client.disable_snapshot_block_public_access( + _request(DisableSnapshotBlockPublicAccessInputDict) + ) + client.disable_transit_gateway_route_table_propagation( + transit_gateway_route_table_id=_ + ) + client.disable_transit_gateway_route_table_propagation( + **_request(DisableTransitGatewayRouteTablePropagationInputDict) + ) + client.disable_transit_gateway_route_table_propagation( + _request(DisableTransitGatewayRouteTablePropagationInput) + ) + client.disable_transit_gateway_route_table_propagation( + _request(DisableTransitGatewayRouteTablePropagationInputDict) + ) + client.disable_vgw_route_propagation(gateway_id=_, route_table_id=_) + client.disable_vgw_route_propagation( + **_request(DisableVgwRoutePropagationInputDict) + ) + client.disable_vgw_route_propagation(_request(DisableVgwRoutePropagationInput)) + client.disable_vgw_route_propagation(_request(DisableVgwRoutePropagationInputDict)) + client.disable_vpc_classic_link(vpc_id=_) + client.disable_vpc_classic_link(**_request(DisableVpcClassicLinkInputDict)) + client.disable_vpc_classic_link(_request(DisableVpcClassicLinkInput)) + client.disable_vpc_classic_link(_request(DisableVpcClassicLinkInputDict)) + client.disable_vpc_classic_link_dns_support() + client.disable_vpc_classic_link_dns_support( + **_request(DisableVpcClassicLinkDnsSupportInputDict) + ) + client.disable_vpc_classic_link_dns_support( + _request(DisableVpcClassicLinkDnsSupportInput) + ) + client.disable_vpc_classic_link_dns_support( + _request(DisableVpcClassicLinkDnsSupportInputDict) + ) + client.disassociate_address() + client.disassociate_address(**_request(DisassociateAddressInputDict)) + client.disassociate_address(_request(DisassociateAddressInput)) + client.disassociate_address(_request(DisassociateAddressInputDict)) + client.disassociate_application_status_check(application_status_check_id=_) + client.disassociate_application_status_check( + **_request(DisassociateApplicationStatusCheckInputDict) + ) + client.disassociate_application_status_check( + _request(DisassociateApplicationStatusCheckInput) + ) + client.disassociate_application_status_check( + _request(DisassociateApplicationStatusCheckInputDict) + ) + client.disassociate_capacity_reservation_billing_owner( + capacity_reservation_id=_, unused_reservation_billing_owner_id=_ + ) + client.disassociate_capacity_reservation_billing_owner( + **_request(DisassociateCapacityReservationBillingOwnerInputDict) + ) + client.disassociate_capacity_reservation_billing_owner( + _request(DisassociateCapacityReservationBillingOwnerInput) + ) + client.disassociate_capacity_reservation_billing_owner( + _request(DisassociateCapacityReservationBillingOwnerInputDict) + ) + client.disassociate_client_vpn_target_network( + client_vpn_endpoint_id=_, association_id=_ + ) + client.disassociate_client_vpn_target_network( + **_request(DisassociateClientVpnTargetNetworkInputDict) + ) + client.disassociate_client_vpn_target_network( + _request(DisassociateClientVpnTargetNetworkInput) + ) + client.disassociate_client_vpn_target_network( + _request(DisassociateClientVpnTargetNetworkInputDict) + ) + client.disassociate_enclave_certificate_iam_role(certificate_arn=_, role_arn=_) + client.disassociate_enclave_certificate_iam_role( + **_request(DisassociateEnclaveCertificateIamRoleInputDict) + ) + client.disassociate_enclave_certificate_iam_role( + _request(DisassociateEnclaveCertificateIamRoleInput) + ) + client.disassociate_enclave_certificate_iam_role( + _request(DisassociateEnclaveCertificateIamRoleInputDict) + ) + client.disassociate_iam_instance_profile(association_id=_) + client.disassociate_iam_instance_profile( + **_request(DisassociateIamInstanceProfileInputDict) + ) + client.disassociate_iam_instance_profile( + _request(DisassociateIamInstanceProfileInput) + ) + client.disassociate_iam_instance_profile( + _request(DisassociateIamInstanceProfileInputDict) + ) + client.disassociate_instance_event_window( + instance_event_window_id=_, association_target=_ + ) + client.disassociate_instance_event_window( + **_request(DisassociateInstanceEventWindowInputDict) + ) + client.disassociate_instance_event_window( + _request(DisassociateInstanceEventWindowInput) + ) + client.disassociate_instance_event_window( + _request(DisassociateInstanceEventWindowInputDict) + ) + client.disassociate_ipam_byoasn(asn=_, cidr=_) + client.disassociate_ipam_byoasn(**_request(DisassociateIpamByoasnInputDict)) + client.disassociate_ipam_byoasn(_request(DisassociateIpamByoasnInput)) + client.disassociate_ipam_byoasn(_request(DisassociateIpamByoasnInputDict)) + client.disassociate_ipam_resource_discovery( + ipam_resource_discovery_association_id=_ + ) + client.disassociate_ipam_resource_discovery( + **_request(DisassociateIpamResourceDiscoveryInputDict) + ) + client.disassociate_ipam_resource_discovery( + _request(DisassociateIpamResourceDiscoveryInput) + ) + client.disassociate_ipam_resource_discovery( + _request(DisassociateIpamResourceDiscoveryInputDict) + ) + client.disassociate_nat_gateway_address(nat_gateway_id=_, association_ids=_) + client.disassociate_nat_gateway_address( + **_request(DisassociateNatGatewayAddressInputDict) + ) + client.disassociate_nat_gateway_address( + _request(DisassociateNatGatewayAddressInput) + ) + client.disassociate_nat_gateway_address( + _request(DisassociateNatGatewayAddressInputDict) + ) + client.disassociate_route_server(route_server_id=_, vpc_id=_) + client.disassociate_route_server(**_request(DisassociateRouteServerInputDict)) + client.disassociate_route_server(_request(DisassociateRouteServerInput)) + client.disassociate_route_server(_request(DisassociateRouteServerInputDict)) + client.disassociate_route_table(association_id=_) + client.disassociate_route_table(**_request(DisassociateRouteTableInputDict)) + client.disassociate_route_table(_request(DisassociateRouteTableInput)) + client.disassociate_route_table(_request(DisassociateRouteTableInputDict)) + client.disassociate_security_group_vpc(group_id=_, vpc_id=_) + client.disassociate_security_group_vpc( + **_request(DisassociateSecurityGroupVpcInputDict) + ) + client.disassociate_security_group_vpc(_request(DisassociateSecurityGroupVpcInput)) + client.disassociate_security_group_vpc( + _request(DisassociateSecurityGroupVpcInputDict) + ) + client.disassociate_subnet_cidr_block(association_id=_) + client.disassociate_subnet_cidr_block( + **_request(DisassociateSubnetCidrBlockInputDict) + ) + client.disassociate_subnet_cidr_block(_request(DisassociateSubnetCidrBlockInput)) + client.disassociate_subnet_cidr_block( + _request(DisassociateSubnetCidrBlockInputDict) + ) + client.disassociate_transit_gateway_multicast_domain( + transit_gateway_multicast_domain_id=_, + transit_gateway_attachment_id=_, + subnet_ids=_, + ) + client.disassociate_transit_gateway_multicast_domain( + **_request(DisassociateTransitGatewayMulticastDomainInputDict) + ) + client.disassociate_transit_gateway_multicast_domain( + _request(DisassociateTransitGatewayMulticastDomainInput) + ) + client.disassociate_transit_gateway_multicast_domain( + _request(DisassociateTransitGatewayMulticastDomainInputDict) + ) + client.disassociate_transit_gateway_policy_table( + transit_gateway_policy_table_id=_, transit_gateway_attachment_id=_ + ) + client.disassociate_transit_gateway_policy_table( + **_request(DisassociateTransitGatewayPolicyTableInputDict) + ) + client.disassociate_transit_gateway_policy_table( + _request(DisassociateTransitGatewayPolicyTableInput) + ) + client.disassociate_transit_gateway_policy_table( + _request(DisassociateTransitGatewayPolicyTableInputDict) + ) + client.disassociate_transit_gateway_route_table( + transit_gateway_route_table_id=_, transit_gateway_attachment_id=_ + ) + client.disassociate_transit_gateway_route_table( + **_request(DisassociateTransitGatewayRouteTableInputDict) + ) + client.disassociate_transit_gateway_route_table( + _request(DisassociateTransitGatewayRouteTableInput) + ) + client.disassociate_transit_gateway_route_table( + _request(DisassociateTransitGatewayRouteTableInputDict) + ) + client.disassociate_trunk_interface(association_id=_) + client.disassociate_trunk_interface(**_request(DisassociateTrunkInterfaceInputDict)) + client.disassociate_trunk_interface(_request(DisassociateTrunkInterfaceInput)) + client.disassociate_trunk_interface(_request(DisassociateTrunkInterfaceInputDict)) + client.disassociate_vpc_cidr_block(association_id=_) + client.disassociate_vpc_cidr_block(**_request(DisassociateVpcCidrBlockInputDict)) + client.disassociate_vpc_cidr_block(_request(DisassociateVpcCidrBlockInput)) + client.disassociate_vpc_cidr_block(_request(DisassociateVpcCidrBlockInputDict)) + client.enable_address_transfer(allocation_id=_, transfer_account_id=_) + client.enable_address_transfer(**_request(EnableAddressTransferInputDict)) + client.enable_address_transfer(_request(EnableAddressTransferInput)) + client.enable_address_transfer(_request(EnableAddressTransferInputDict)) + client.enable_allowed_images_settings(allowed_images_settings_state=_) + client.enable_allowed_images_settings( + **_request(EnableAllowedImagesSettingsInputDict) + ) + client.enable_allowed_images_settings(_request(EnableAllowedImagesSettingsInput)) + client.enable_allowed_images_settings( + _request(EnableAllowedImagesSettingsInputDict) + ) + client.enable_application_status_check_suppression() + client.enable_application_status_check_suppression( + **_request(EnableApplicationStatusCheckSuppressionInputDict) + ) + client.enable_application_status_check_suppression( + _request(EnableApplicationStatusCheckSuppressionInput) + ) + client.enable_application_status_check_suppression( + _request(EnableApplicationStatusCheckSuppressionInputDict) + ) + client.enable_aws_network_performance_metric_subscription() + client.enable_aws_network_performance_metric_subscription( + **_request(EnableAwsNetworkPerformanceMetricSubscriptionInputDict) + ) + client.enable_aws_network_performance_metric_subscription( + _request(EnableAwsNetworkPerformanceMetricSubscriptionInput) + ) + client.enable_aws_network_performance_metric_subscription( + _request(EnableAwsNetworkPerformanceMetricSubscriptionInputDict) + ) + client.enable_capacity_manager() + client.enable_capacity_manager(**_request(EnableCapacityManagerInputDict)) + client.enable_capacity_manager(_request(EnableCapacityManagerInput)) + client.enable_capacity_manager(_request(EnableCapacityManagerInputDict)) + client.enable_ebs_encryption_by_default() + client.enable_ebs_encryption_by_default( + **_request(EnableEbsEncryptionByDefaultInputDict) + ) + client.enable_ebs_encryption_by_default(_request(EnableEbsEncryptionByDefaultInput)) + client.enable_ebs_encryption_by_default( + _request(EnableEbsEncryptionByDefaultInputDict) + ) + client.enable_fast_launch(image_id=_) + client.enable_fast_launch(**_request(EnableFastLaunchInputDict)) + client.enable_fast_launch(_request(EnableFastLaunchInput)) + client.enable_fast_launch(_request(EnableFastLaunchInputDict)) + client.enable_fast_snapshot_restores(source_snapshot_ids=_) + client.enable_fast_snapshot_restores( + **_request(EnableFastSnapshotRestoresInputDict) + ) + client.enable_fast_snapshot_restores(_request(EnableFastSnapshotRestoresInput)) + client.enable_fast_snapshot_restores(_request(EnableFastSnapshotRestoresInputDict)) + client.enable_image(image_id=_) + client.enable_image(**_request(EnableImageInputDict)) + client.enable_image(_request(EnableImageInput)) + client.enable_image(_request(EnableImageInputDict)) + client.enable_image_block_public_access(image_block_public_access_state=_) + client.enable_image_block_public_access( + **_request(EnableImageBlockPublicAccessInputDict) + ) + client.enable_image_block_public_access(_request(EnableImageBlockPublicAccessInput)) + client.enable_image_block_public_access( + _request(EnableImageBlockPublicAccessInputDict) + ) + client.enable_image_deprecation(image_id=_, deprecate_at=_) + client.enable_image_deprecation(**_request(EnableImageDeprecationInputDict)) + client.enable_image_deprecation(_request(EnableImageDeprecationInput)) + client.enable_image_deprecation(_request(EnableImageDeprecationInputDict)) + client.enable_image_deregistration_protection(image_id=_) + client.enable_image_deregistration_protection( + **_request(EnableImageDeregistrationProtectionInputDict) + ) + client.enable_image_deregistration_protection( + _request(EnableImageDeregistrationProtectionInput) + ) + client.enable_image_deregistration_protection( + _request(EnableImageDeregistrationProtectionInputDict) + ) + client.enable_instance_sql_ha_standby_detections(instance_ids=_) + client.enable_instance_sql_ha_standby_detections( + **_request(EnableInstanceSqlHaStandbyDetectionsInputDict) + ) + client.enable_instance_sql_ha_standby_detections( + _request(EnableInstanceSqlHaStandbyDetectionsInput) + ) + client.enable_instance_sql_ha_standby_detections( + _request(EnableInstanceSqlHaStandbyDetectionsInputDict) + ) + client.enable_ipam_internet_registry_association( + ipam_internet_registry_association_id=_, + rpki_version=_, + service_uri=_, + child_handle=_, + parent_handle=_, + parent_bpki_ta=_, + ) + client.enable_ipam_internet_registry_association( + **_request(EnableIpamInternetRegistryAssociationInputDict) + ) + client.enable_ipam_internet_registry_association( + _request(EnableIpamInternetRegistryAssociationInput) + ) + client.enable_ipam_internet_registry_association( + _request(EnableIpamInternetRegistryAssociationInputDict) + ) + client.enable_ipam_organization_admin_account(delegated_admin_account_id=_) + client.enable_ipam_organization_admin_account( + **_request(EnableIpamOrganizationAdminAccountInputDict) + ) + client.enable_ipam_organization_admin_account( + _request(EnableIpamOrganizationAdminAccountInput) + ) + client.enable_ipam_organization_admin_account( + _request(EnableIpamOrganizationAdminAccountInputDict) + ) + client.enable_ipam_policy(ipam_policy_id=_) + client.enable_ipam_policy(**_request(EnableIpamPolicyInputDict)) + client.enable_ipam_policy(_request(EnableIpamPolicyInput)) + client.enable_ipam_policy(_request(EnableIpamPolicyInputDict)) + client.enable_reachability_analyzer_organization_sharing() + client.enable_reachability_analyzer_organization_sharing( + **_request(EnableReachabilityAnalyzerOrganizationSharingInputDict) + ) + client.enable_reachability_analyzer_organization_sharing( + _request(EnableReachabilityAnalyzerOrganizationSharingInput) + ) + client.enable_reachability_analyzer_organization_sharing( + _request(EnableReachabilityAnalyzerOrganizationSharingInputDict) + ) + client.enable_route_server_propagation(route_server_id=_, route_table_id=_) + client.enable_route_server_propagation( + **_request(EnableRouteServerPropagationInputDict) + ) + client.enable_route_server_propagation(_request(EnableRouteServerPropagationInput)) + client.enable_route_server_propagation( + _request(EnableRouteServerPropagationInputDict) + ) + client.enable_serial_console_access() + client.enable_serial_console_access(**_request(EnableSerialConsoleAccessInputDict)) + client.enable_serial_console_access(_request(EnableSerialConsoleAccessInput)) + client.enable_serial_console_access(_request(EnableSerialConsoleAccessInputDict)) + client.enable_snapshot_block_public_access(state=_) + client.enable_snapshot_block_public_access( + **_request(EnableSnapshotBlockPublicAccessInputDict) + ) + client.enable_snapshot_block_public_access( + _request(EnableSnapshotBlockPublicAccessInput) + ) + client.enable_snapshot_block_public_access( + _request(EnableSnapshotBlockPublicAccessInputDict) + ) + client.enable_transit_gateway_route_table_propagation( + transit_gateway_route_table_id=_ + ) + client.enable_transit_gateway_route_table_propagation( + **_request(EnableTransitGatewayRouteTablePropagationInputDict) + ) + client.enable_transit_gateway_route_table_propagation( + _request(EnableTransitGatewayRouteTablePropagationInput) + ) + client.enable_transit_gateway_route_table_propagation( + _request(EnableTransitGatewayRouteTablePropagationInputDict) + ) + client.enable_vgw_route_propagation(gateway_id=_, route_table_id=_) + client.enable_vgw_route_propagation(**_request(EnableVgwRoutePropagationInputDict)) + client.enable_vgw_route_propagation(_request(EnableVgwRoutePropagationInput)) + client.enable_vgw_route_propagation(_request(EnableVgwRoutePropagationInputDict)) + client.enable_volume_io(volume_id=_) + client.enable_volume_io(**_request(EnableVolumeIOInputDict)) + client.enable_volume_io(_request(EnableVolumeIOInput)) + client.enable_volume_io(_request(EnableVolumeIOInputDict)) + client.enable_vpc_classic_link(vpc_id=_) + client.enable_vpc_classic_link(**_request(EnableVpcClassicLinkInputDict)) + client.enable_vpc_classic_link(_request(EnableVpcClassicLinkInput)) + client.enable_vpc_classic_link(_request(EnableVpcClassicLinkInputDict)) + client.enable_vpc_classic_link_dns_support() + client.enable_vpc_classic_link_dns_support( + **_request(EnableVpcClassicLinkDnsSupportInputDict) + ) + client.enable_vpc_classic_link_dns_support( + _request(EnableVpcClassicLinkDnsSupportInput) + ) + client.enable_vpc_classic_link_dns_support( + _request(EnableVpcClassicLinkDnsSupportInputDict) + ) + client.export_client_vpn_client_certificate_revocation_list( + client_vpn_endpoint_id=_ + ) + client.export_client_vpn_client_certificate_revocation_list( + **_request(ExportClientVpnClientCertificateRevocationListInputDict) + ) + client.export_client_vpn_client_certificate_revocation_list( + _request(ExportClientVpnClientCertificateRevocationListInput) + ) + client.export_client_vpn_client_certificate_revocation_list( + _request(ExportClientVpnClientCertificateRevocationListInputDict) + ) + client.export_client_vpn_client_configuration(client_vpn_endpoint_id=_) + client.export_client_vpn_client_configuration( + **_request(ExportClientVpnClientConfigurationInputDict) + ) + client.export_client_vpn_client_configuration( + _request(ExportClientVpnClientConfigurationInput) + ) + client.export_client_vpn_client_configuration( + _request(ExportClientVpnClientConfigurationInputDict) + ) + client.export_image(disk_image_format=_, image_id=_, s3_export_location=_) + client.export_image(**_request(ExportImageInputDict)) + client.export_image(_request(ExportImageInput)) + client.export_image(_request(ExportImageInputDict)) + client.export_transit_gateway_routes(transit_gateway_route_table_id=_, s3_bucket=_) + client.export_transit_gateway_routes( + **_request(ExportTransitGatewayRoutesInputDict) + ) + client.export_transit_gateway_routes(_request(ExportTransitGatewayRoutesInput)) + client.export_transit_gateway_routes(_request(ExportTransitGatewayRoutesInputDict)) + client.export_verified_access_instance_client_configuration( + verified_access_instance_id=_ + ) + client.export_verified_access_instance_client_configuration( + **_request(ExportVerifiedAccessInstanceClientConfigurationInputDict) + ) + client.export_verified_access_instance_client_configuration( + _request(ExportVerifiedAccessInstanceClientConfigurationInput) + ) + client.export_verified_access_instance_client_configuration( + _request(ExportVerifiedAccessInstanceClientConfigurationInputDict) + ) + client.get_active_vpn_tunnel_status( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_ + ) + client.get_active_vpn_tunnel_status(**_request(GetActiveVpnTunnelStatusInputDict)) + client.get_active_vpn_tunnel_status(_request(GetActiveVpnTunnelStatusInput)) + client.get_active_vpn_tunnel_status(_request(GetActiveVpnTunnelStatusInputDict)) + client.get_allowed_images_settings() + client.get_allowed_images_settings(**_request(GetAllowedImagesSettingsInputDict)) + client.get_allowed_images_settings(_request(GetAllowedImagesSettingsInput)) + client.get_allowed_images_settings(_request(GetAllowedImagesSettingsInputDict)) + client.get_associated_enclave_certificate_iam_roles(certificate_arn=_) + client.get_associated_enclave_certificate_iam_roles( + **_request(GetAssociatedEnclaveCertificateIamRolesInputDict) + ) + client.get_associated_enclave_certificate_iam_roles( + _request(GetAssociatedEnclaveCertificateIamRolesInput) + ) + client.get_associated_enclave_certificate_iam_roles( + _request(GetAssociatedEnclaveCertificateIamRolesInputDict) + ) + client.get_associated_ipv6_pool_cidrs(pool_id=_) + client.get_associated_ipv6_pool_cidrs( + **_request(GetAssociatedIpv6PoolCidrsInputDict) + ) + client.get_associated_ipv6_pool_cidrs(_request(GetAssociatedIpv6PoolCidrsInput)) + client.get_associated_ipv6_pool_cidrs(_request(GetAssociatedIpv6PoolCidrsInputDict)) + client.get_aws_network_performance_data() + client.get_aws_network_performance_data( + **_request(GetAwsNetworkPerformanceDataInputDict) + ) + client.get_aws_network_performance_data(_request(GetAwsNetworkPerformanceDataInput)) + client.get_aws_network_performance_data( + _request(GetAwsNetworkPerformanceDataInputDict) + ) + client.get_capacity_manager_attributes() + client.get_capacity_manager_attributes( + **_request(GetCapacityManagerAttributesInputDict) + ) + client.get_capacity_manager_attributes(_request(GetCapacityManagerAttributesInput)) + client.get_capacity_manager_attributes( + _request(GetCapacityManagerAttributesInputDict) + ) + client.get_capacity_manager_metric_data( + metric_names=_, start_time=_, end_time=_, period=_ + ) + client.get_capacity_manager_metric_data( + **_request(GetCapacityManagerMetricDataInputDict) + ) + client.get_capacity_manager_metric_data(_request(GetCapacityManagerMetricDataInput)) + client.get_capacity_manager_metric_data( + _request(GetCapacityManagerMetricDataInputDict) + ) + client.get_capacity_manager_metric_dimensions( + group_by=_, start_time=_, end_time=_, metric_names=_ + ) + client.get_capacity_manager_metric_dimensions( + **_request(GetCapacityManagerMetricDimensionsInputDict) + ) + client.get_capacity_manager_metric_dimensions( + _request(GetCapacityManagerMetricDimensionsInput) + ) + client.get_capacity_manager_metric_dimensions( + _request(GetCapacityManagerMetricDimensionsInputDict) + ) + client.get_capacity_manager_monitored_tag_keys() + client.get_capacity_manager_monitored_tag_keys( + **_request(GetCapacityManagerMonitoredTagKeysInputDict) + ) + client.get_capacity_manager_monitored_tag_keys( + _request(GetCapacityManagerMonitoredTagKeysInput) + ) + client.get_capacity_manager_monitored_tag_keys( + _request(GetCapacityManagerMonitoredTagKeysInputDict) + ) + client.get_capacity_manager_supportability_scores( + market_type=_, + capacity_amount=_, + capacity_unit=_, + capacity_availability_zone_ids=_, + ) + client.get_capacity_manager_supportability_scores( + **_request(GetCapacityManagerSupportabilityScoresInputDict) + ) + client.get_capacity_manager_supportability_scores( + _request(GetCapacityManagerSupportabilityScoresInput) + ) + client.get_capacity_manager_supportability_scores( + _request(GetCapacityManagerSupportabilityScoresInputDict) + ) + client.get_capacity_reservation_usage(capacity_reservation_id=_) + client.get_capacity_reservation_usage( + **_request(GetCapacityReservationUsageInputDict) + ) + client.get_capacity_reservation_usage(_request(GetCapacityReservationUsageInput)) + client.get_capacity_reservation_usage( + _request(GetCapacityReservationUsageInputDict) + ) + client.get_client_vpn_endpoint_authorization_policy(client_vpn_endpoint_id=_) + client.get_client_vpn_endpoint_authorization_policy( + **_request(GetClientVpnEndpointAuthorizationPolicyInputDict) + ) + client.get_client_vpn_endpoint_authorization_policy( + _request(GetClientVpnEndpointAuthorizationPolicyInput) + ) + client.get_client_vpn_endpoint_authorization_policy( + _request(GetClientVpnEndpointAuthorizationPolicyInputDict) + ) + client.get_coip_pool_usage(pool_id=_) + client.get_coip_pool_usage(**_request(GetCoipPoolUsageInputDict)) + client.get_coip_pool_usage(_request(GetCoipPoolUsageInput)) + client.get_coip_pool_usage(_request(GetCoipPoolUsageInputDict)) + client.get_console_output(instance_id=_) + client.get_console_output(**_request(GetConsoleOutputInputDict)) + client.get_console_output(_request(GetConsoleOutputInput)) + client.get_console_output(_request(GetConsoleOutputInputDict)) + client.get_console_screenshot(instance_id=_) + client.get_console_screenshot(**_request(GetConsoleScreenshotInputDict)) + client.get_console_screenshot(_request(GetConsoleScreenshotInput)) + client.get_console_screenshot(_request(GetConsoleScreenshotInputDict)) + client.get_declarative_policies_report_summary(report_id=_) + client.get_declarative_policies_report_summary( + **_request(GetDeclarativePoliciesReportSummaryInputDict) + ) + client.get_declarative_policies_report_summary( + _request(GetDeclarativePoliciesReportSummaryInput) + ) + client.get_declarative_policies_report_summary( + _request(GetDeclarativePoliciesReportSummaryInputDict) + ) + client.get_default_credit_specification(instance_family=_) + client.get_default_credit_specification( + **_request(GetDefaultCreditSpecificationInputDict) + ) + client.get_default_credit_specification( + _request(GetDefaultCreditSpecificationInput) + ) + client.get_default_credit_specification( + _request(GetDefaultCreditSpecificationInputDict) + ) + client.get_ebs_default_kms_key_id() + client.get_ebs_default_kms_key_id(**_request(GetEbsDefaultKmsKeyIdInputDict)) + client.get_ebs_default_kms_key_id(_request(GetEbsDefaultKmsKeyIdInput)) + client.get_ebs_default_kms_key_id(_request(GetEbsDefaultKmsKeyIdInputDict)) + client.get_ebs_encryption_by_default() + client.get_ebs_encryption_by_default(**_request(GetEbsEncryptionByDefaultInputDict)) + client.get_ebs_encryption_by_default(_request(GetEbsEncryptionByDefaultInput)) + client.get_ebs_encryption_by_default(_request(GetEbsEncryptionByDefaultInputDict)) + client.get_enabled_ipam_policy() + client.get_enabled_ipam_policy(**_request(GetEnabledIpamPolicyInputDict)) + client.get_enabled_ipam_policy(_request(GetEnabledIpamPolicyInput)) + client.get_enabled_ipam_policy(_request(GetEnabledIpamPolicyInputDict)) + client.get_flow_logs_integration_template( + flow_log_id=_, config_delivery_s3_destination_arn=_, integrate_services=_ + ) + client.get_flow_logs_integration_template( + **_request(GetFlowLogsIntegrationTemplateInputDict) + ) + client.get_flow_logs_integration_template( + _request(GetFlowLogsIntegrationTemplateInput) + ) + client.get_flow_logs_integration_template( + _request(GetFlowLogsIntegrationTemplateInputDict) + ) + client.get_groups_for_capacity_reservation(capacity_reservation_id=_) + client.get_groups_for_capacity_reservation( + **_request(GetGroupsForCapacityReservationInputDict) + ) + client.get_groups_for_capacity_reservation( + _request(GetGroupsForCapacityReservationInput) + ) + client.get_groups_for_capacity_reservation( + _request(GetGroupsForCapacityReservationInputDict) + ) + client.get_host_reservation_purchase_preview(host_id_set=_, offering_id=_) + client.get_host_reservation_purchase_preview( + **_request(GetHostReservationPurchasePreviewInputDict) + ) + client.get_host_reservation_purchase_preview( + _request(GetHostReservationPurchasePreviewInput) + ) + client.get_host_reservation_purchase_preview( + _request(GetHostReservationPurchasePreviewInputDict) + ) + client.get_image_ancestry(image_id=_) + client.get_image_ancestry(**_request(GetImageAncestryInputDict)) + client.get_image_ancestry(_request(GetImageAncestryInput)) + client.get_image_ancestry(_request(GetImageAncestryInputDict)) + client.get_image_block_public_access_state() + client.get_image_block_public_access_state( + **_request(GetImageBlockPublicAccessStateInputDict) + ) + client.get_image_block_public_access_state( + _request(GetImageBlockPublicAccessStateInput) + ) + client.get_image_block_public_access_state( + _request(GetImageBlockPublicAccessStateInputDict) + ) + client.get_image_findings(image_id=_) + client.get_image_findings(**_request(GetImageFindingsInputDict)) + client.get_image_findings(_request(GetImageFindingsInput)) + client.get_image_findings(_request(GetImageFindingsInputDict)) + client.get_instance_metadata_defaults() + client.get_instance_metadata_defaults( + **_request(GetInstanceMetadataDefaultsInputDict) + ) + client.get_instance_metadata_defaults(_request(GetInstanceMetadataDefaultsInput)) + client.get_instance_metadata_defaults( + _request(GetInstanceMetadataDefaultsInputDict) + ) + client.get_instance_tpm_ek_pub(instance_id=_, key_type=_, key_format=_) + client.get_instance_tpm_ek_pub(**_request(GetInstanceTpmEkPubInputDict)) + client.get_instance_tpm_ek_pub(_request(GetInstanceTpmEkPubInput)) + client.get_instance_tpm_ek_pub(_request(GetInstanceTpmEkPubInputDict)) + client.get_instance_types_from_instance_requirements( + architecture_types=_, virtualization_types=_, instance_requirements=_ + ) + client.get_instance_types_from_instance_requirements( + **_request(GetInstanceTypesFromInstanceRequirementsInputDict) + ) + client.get_instance_types_from_instance_requirements( + _request(GetInstanceTypesFromInstanceRequirementsInput) + ) + client.get_instance_types_from_instance_requirements( + _request(GetInstanceTypesFromInstanceRequirementsInputDict) + ) + client.get_instance_uefi_data(instance_id=_) + client.get_instance_uefi_data(**_request(GetInstanceUefiDataInputDict)) + client.get_instance_uefi_data(_request(GetInstanceUefiDataInput)) + client.get_instance_uefi_data(_request(GetInstanceUefiDataInputDict)) + client.get_ipam_address_history(cidr=_, ipam_scope_id=_) + client.get_ipam_address_history(**_request(GetIpamAddressHistoryInputDict)) + client.get_ipam_address_history(_request(GetIpamAddressHistoryInput)) + client.get_ipam_address_history(_request(GetIpamAddressHistoryInputDict)) + client.get_ipam_discovered_accounts( + ipam_resource_discovery_id=_, discovery_region=_ + ) + client.get_ipam_discovered_accounts(**_request(GetIpamDiscoveredAccountsInputDict)) + client.get_ipam_discovered_accounts(_request(GetIpamDiscoveredAccountsInput)) + client.get_ipam_discovered_accounts(_request(GetIpamDiscoveredAccountsInputDict)) + client.get_ipam_discovered_public_addresses( + ipam_resource_discovery_id=_, address_region=_ + ) + client.get_ipam_discovered_public_addresses( + **_request(GetIpamDiscoveredPublicAddressesInputDict) + ) + client.get_ipam_discovered_public_addresses( + _request(GetIpamDiscoveredPublicAddressesInput) + ) + client.get_ipam_discovered_public_addresses( + _request(GetIpamDiscoveredPublicAddressesInputDict) + ) + client.get_ipam_discovered_resource_cidrs( + ipam_resource_discovery_id=_, resource_region=_ + ) + client.get_ipam_discovered_resource_cidrs( + **_request(GetIpamDiscoveredResourceCidrsInputDict) + ) + client.get_ipam_discovered_resource_cidrs( + _request(GetIpamDiscoveredResourceCidrsInput) + ) + client.get_ipam_discovered_resource_cidrs( + _request(GetIpamDiscoveredResourceCidrsInputDict) + ) + client.get_ipam_discovered_routes(ipam_resource_discovery_id=_, resource_region=_) + client.get_ipam_discovered_routes(**_request(GetIpamDiscoveredRoutesInputDict)) + client.get_ipam_discovered_routes(_request(GetIpamDiscoveredRoutesInput)) + client.get_ipam_discovered_routes(_request(GetIpamDiscoveredRoutesInputDict)) + client.get_ipam_internet_registry_association_asns( + ipam_internet_registry_association_id=_ + ) + client.get_ipam_internet_registry_association_asns( + **_request(GetIpamInternetRegistryAssociationAsnsInputDict) + ) + client.get_ipam_internet_registry_association_asns( + _request(GetIpamInternetRegistryAssociationAsnsInput) + ) + client.get_ipam_internet_registry_association_asns( + _request(GetIpamInternetRegistryAssociationAsnsInputDict) + ) + client.get_ipam_internet_registry_association_cidrs( + ipam_internet_registry_association_id=_ + ) + client.get_ipam_internet_registry_association_cidrs( + **_request(GetIpamInternetRegistryAssociationCidrsInputDict) + ) + client.get_ipam_internet_registry_association_cidrs( + _request(GetIpamInternetRegistryAssociationCidrsInput) + ) + client.get_ipam_internet_registry_association_cidrs( + _request(GetIpamInternetRegistryAssociationCidrsInputDict) + ) + client.get_ipam_policy_allocation_rules(ipam_policy_id=_) + client.get_ipam_policy_allocation_rules( + **_request(GetIpamPolicyAllocationRulesInputDict) + ) + client.get_ipam_policy_allocation_rules(_request(GetIpamPolicyAllocationRulesInput)) + client.get_ipam_policy_allocation_rules( + _request(GetIpamPolicyAllocationRulesInputDict) + ) + client.get_ipam_policy_organization_targets(ipam_policy_id=_) + client.get_ipam_policy_organization_targets( + **_request(GetIpamPolicyOrganizationTargetsInputDict) + ) + client.get_ipam_policy_organization_targets( + _request(GetIpamPolicyOrganizationTargetsInput) + ) + client.get_ipam_policy_organization_targets( + _request(GetIpamPolicyOrganizationTargetsInputDict) + ) + client.get_ipam_pool_allocations(ipam_pool_id=_) + client.get_ipam_pool_allocations(**_request(GetIpamPoolAllocationsInputDict)) + client.get_ipam_pool_allocations(_request(GetIpamPoolAllocationsInput)) + client.get_ipam_pool_allocations(_request(GetIpamPoolAllocationsInputDict)) + client.get_ipam_pool_cidrs(ipam_pool_id=_) + client.get_ipam_pool_cidrs(**_request(GetIpamPoolCidrsInputDict)) + client.get_ipam_pool_cidrs(_request(GetIpamPoolCidrsInput)) + client.get_ipam_pool_cidrs(_request(GetIpamPoolCidrsInputDict)) + client.get_ipam_prefix_list_resolver_rules(ipam_prefix_list_resolver_id=_) + client.get_ipam_prefix_list_resolver_rules( + **_request(GetIpamPrefixListResolverRulesInputDict) + ) + client.get_ipam_prefix_list_resolver_rules( + _request(GetIpamPrefixListResolverRulesInput) + ) + client.get_ipam_prefix_list_resolver_rules( + _request(GetIpamPrefixListResolverRulesInputDict) + ) + client.get_ipam_prefix_list_resolver_version_entries( + ipam_prefix_list_resolver_id=_, ipam_prefix_list_resolver_version=_ + ) + client.get_ipam_prefix_list_resolver_version_entries( + **_request(GetIpamPrefixListResolverVersionEntriesInputDict) + ) + client.get_ipam_prefix_list_resolver_version_entries( + _request(GetIpamPrefixListResolverVersionEntriesInput) + ) + client.get_ipam_prefix_list_resolver_version_entries( + _request(GetIpamPrefixListResolverVersionEntriesInputDict) + ) + client.get_ipam_prefix_list_resolver_versions(ipam_prefix_list_resolver_id=_) + client.get_ipam_prefix_list_resolver_versions( + **_request(GetIpamPrefixListResolverVersionsInputDict) + ) + client.get_ipam_prefix_list_resolver_versions( + _request(GetIpamPrefixListResolverVersionsInput) + ) + client.get_ipam_prefix_list_resolver_versions( + _request(GetIpamPrefixListResolverVersionsInputDict) + ) + client.get_ipam_resource_cidrs(ipam_scope_id=_) + client.get_ipam_resource_cidrs(**_request(GetIpamResourceCidrsInputDict)) + client.get_ipam_resource_cidrs(_request(GetIpamResourceCidrsInput)) + client.get_ipam_resource_cidrs(_request(GetIpamResourceCidrsInputDict)) + client.get_ipam_route_origin_authorizations(ipam_internet_registry_association_id=_) + client.get_ipam_route_origin_authorizations( + **_request(GetIpamRouteOriginAuthorizationsInputDict) + ) + client.get_ipam_route_origin_authorizations( + _request(GetIpamRouteOriginAuthorizationsInput) + ) + client.get_ipam_route_origin_authorizations( + _request(GetIpamRouteOriginAuthorizationsInputDict) + ) + client.get_ipam_route_protection_findings(ipam_id=_) + client.get_ipam_route_protection_findings( + **_request(GetIpamRouteProtectionFindingsInputDict) + ) + client.get_ipam_route_protection_findings( + _request(GetIpamRouteProtectionFindingsInput) + ) + client.get_ipam_route_protection_findings( + _request(GetIpamRouteProtectionFindingsInputDict) + ) + client.get_ipam_routing_policy_registration_deltas( + ipam_internet_registry_association_id=_ + ) + client.get_ipam_routing_policy_registration_deltas( + **_request(GetIpamRoutingPolicyRegistrationDeltasInputDict) + ) + client.get_ipam_routing_policy_registration_deltas( + _request(GetIpamRoutingPolicyRegistrationDeltasInput) + ) + client.get_ipam_routing_policy_registration_deltas( + _request(GetIpamRoutingPolicyRegistrationDeltasInputDict) + ) + client.get_ipam_routing_policy_registrations( + ipam_internet_registry_association_id=_ + ) + client.get_ipam_routing_policy_registrations( + **_request(GetIpamRoutingPolicyRegistrationsInputDict) + ) + client.get_ipam_routing_policy_registrations( + _request(GetIpamRoutingPolicyRegistrationsInput) + ) + client.get_ipam_routing_policy_registrations( + _request(GetIpamRoutingPolicyRegistrationsInputDict) + ) + client.get_launch_template_data(instance_id=_) + client.get_launch_template_data(**_request(GetLaunchTemplateDataInputDict)) + client.get_launch_template_data(_request(GetLaunchTemplateDataInput)) + client.get_launch_template_data(_request(GetLaunchTemplateDataInputDict)) + client.get_managed_prefix_list_associations(prefix_list_id=_) + client.get_managed_prefix_list_associations( + **_request(GetManagedPrefixListAssociationsInputDict) + ) + client.get_managed_prefix_list_associations( + _request(GetManagedPrefixListAssociationsInput) + ) + client.get_managed_prefix_list_associations( + _request(GetManagedPrefixListAssociationsInputDict) + ) + client.get_managed_prefix_list_entries(prefix_list_id=_) + client.get_managed_prefix_list_entries( + **_request(GetManagedPrefixListEntriesInputDict) + ) + client.get_managed_prefix_list_entries(_request(GetManagedPrefixListEntriesInput)) + client.get_managed_prefix_list_entries( + _request(GetManagedPrefixListEntriesInputDict) + ) + client.get_managed_resource_visibility() + client.get_managed_resource_visibility( + **_request(GetManagedResourceVisibilityInputDict) + ) + client.get_managed_resource_visibility(_request(GetManagedResourceVisibilityInput)) + client.get_managed_resource_visibility( + _request(GetManagedResourceVisibilityInputDict) + ) + client.get_network_insights_access_scope_analysis_findings( + network_insights_access_scope_analysis_id=_ + ) + client.get_network_insights_access_scope_analysis_findings( + **_request(GetNetworkInsightsAccessScopeAnalysisFindingsInputDict) + ) + client.get_network_insights_access_scope_analysis_findings( + _request(GetNetworkInsightsAccessScopeAnalysisFindingsInput) + ) + client.get_network_insights_access_scope_analysis_findings( + _request(GetNetworkInsightsAccessScopeAnalysisFindingsInputDict) + ) + client.get_network_insights_access_scope_content(network_insights_access_scope_id=_) + client.get_network_insights_access_scope_content( + **_request(GetNetworkInsightsAccessScopeContentInputDict) + ) + client.get_network_insights_access_scope_content( + _request(GetNetworkInsightsAccessScopeContentInput) + ) + client.get_network_insights_access_scope_content( + _request(GetNetworkInsightsAccessScopeContentInputDict) + ) + client.get_password_data(instance_id=_) + client.get_password_data(**_request(GetPasswordDataInputDict)) + client.get_password_data(_request(GetPasswordDataInput)) + client.get_password_data(_request(GetPasswordDataInputDict)) + client.get_reserved_instances_exchange_quote(reserved_instance_ids=_) + client.get_reserved_instances_exchange_quote( + **_request(GetReservedInstancesExchangeQuoteInputDict) + ) + client.get_reserved_instances_exchange_quote( + _request(GetReservedInstancesExchangeQuoteInput) + ) + client.get_reserved_instances_exchange_quote( + _request(GetReservedInstancesExchangeQuoteInputDict) + ) + client.get_route_server_associations(route_server_id=_) + client.get_route_server_associations( + **_request(GetRouteServerAssociationsInputDict) + ) + client.get_route_server_associations(_request(GetRouteServerAssociationsInput)) + client.get_route_server_associations(_request(GetRouteServerAssociationsInputDict)) + client.get_route_server_propagations(route_server_id=_) + client.get_route_server_propagations( + **_request(GetRouteServerPropagationsInputDict) + ) + client.get_route_server_propagations(_request(GetRouteServerPropagationsInput)) + client.get_route_server_propagations(_request(GetRouteServerPropagationsInputDict)) + client.get_route_server_routing_database(route_server_id=_) + client.get_route_server_routing_database( + **_request(GetRouteServerRoutingDatabaseInputDict) + ) + client.get_route_server_routing_database( + _request(GetRouteServerRoutingDatabaseInput) + ) + client.get_route_server_routing_database( + _request(GetRouteServerRoutingDatabaseInputDict) + ) + client.get_security_groups_for_vpc(vpc_id=_) + client.get_security_groups_for_vpc(**_request(GetSecurityGroupsForVpcInputDict)) + client.get_security_groups_for_vpc(_request(GetSecurityGroupsForVpcInput)) + client.get_security_groups_for_vpc(_request(GetSecurityGroupsForVpcInputDict)) + client.get_serial_console_access_status() + client.get_serial_console_access_status( + **_request(GetSerialConsoleAccessStatusInputDict) + ) + client.get_serial_console_access_status(_request(GetSerialConsoleAccessStatusInput)) + client.get_serial_console_access_status( + _request(GetSerialConsoleAccessStatusInputDict) + ) + client.get_snapshot_block_public_access_state() + client.get_snapshot_block_public_access_state( + **_request(GetSnapshotBlockPublicAccessStateInputDict) + ) + client.get_snapshot_block_public_access_state( + _request(GetSnapshotBlockPublicAccessStateInput) + ) + client.get_snapshot_block_public_access_state( + _request(GetSnapshotBlockPublicAccessStateInputDict) + ) + client.get_spot_placement_scores(target_capacity=_) + client.get_spot_placement_scores(**_request(GetSpotPlacementScoresInputDict)) + client.get_spot_placement_scores(_request(GetSpotPlacementScoresInput)) + client.get_spot_placement_scores(_request(GetSpotPlacementScoresInputDict)) + client.get_subnet_cidr_reservations(subnet_id=_) + client.get_subnet_cidr_reservations(**_request(GetSubnetCidrReservationsInputDict)) + client.get_subnet_cidr_reservations(_request(GetSubnetCidrReservationsInput)) + client.get_subnet_cidr_reservations(_request(GetSubnetCidrReservationsInputDict)) + client.get_transit_gateway_attachment_nat_configuration( + transit_gateway_attachment_id=_ + ) + client.get_transit_gateway_attachment_nat_configuration( + **_request(GetTransitGatewayAttachmentNatConfigurationInputDict) + ) + client.get_transit_gateway_attachment_nat_configuration( + _request(GetTransitGatewayAttachmentNatConfigurationInput) + ) + client.get_transit_gateway_attachment_nat_configuration( + _request(GetTransitGatewayAttachmentNatConfigurationInputDict) + ) + client.get_transit_gateway_attachment_propagations(transit_gateway_attachment_id=_) + client.get_transit_gateway_attachment_propagations( + **_request(GetTransitGatewayAttachmentPropagationsInputDict) + ) + client.get_transit_gateway_attachment_propagations( + _request(GetTransitGatewayAttachmentPropagationsInput) + ) + client.get_transit_gateway_attachment_propagations( + _request(GetTransitGatewayAttachmentPropagationsInputDict) + ) + client.get_transit_gateway_metering_policy_entries( + transit_gateway_metering_policy_id=_ + ) + client.get_transit_gateway_metering_policy_entries( + **_request(GetTransitGatewayMeteringPolicyEntriesInputDict) + ) + client.get_transit_gateway_metering_policy_entries( + _request(GetTransitGatewayMeteringPolicyEntriesInput) + ) + client.get_transit_gateway_metering_policy_entries( + _request(GetTransitGatewayMeteringPolicyEntriesInputDict) + ) + client.get_transit_gateway_multicast_domain_associations( + transit_gateway_multicast_domain_id=_ + ) + client.get_transit_gateway_multicast_domain_associations( + **_request(GetTransitGatewayMulticastDomainAssociationsInputDict) + ) + client.get_transit_gateway_multicast_domain_associations( + _request(GetTransitGatewayMulticastDomainAssociationsInput) + ) + client.get_transit_gateway_multicast_domain_associations( + _request(GetTransitGatewayMulticastDomainAssociationsInputDict) + ) + client.get_transit_gateway_policy_table_associations( + transit_gateway_policy_table_id=_ + ) + client.get_transit_gateway_policy_table_associations( + **_request(GetTransitGatewayPolicyTableAssociationsInputDict) + ) + client.get_transit_gateway_policy_table_associations( + _request(GetTransitGatewayPolicyTableAssociationsInput) + ) + client.get_transit_gateway_policy_table_associations( + _request(GetTransitGatewayPolicyTableAssociationsInputDict) + ) + client.get_transit_gateway_policy_table_entries(transit_gateway_policy_table_id=_) + client.get_transit_gateway_policy_table_entries( + **_request(GetTransitGatewayPolicyTableEntriesInputDict) + ) + client.get_transit_gateway_policy_table_entries( + _request(GetTransitGatewayPolicyTableEntriesInput) + ) + client.get_transit_gateway_policy_table_entries( + _request(GetTransitGatewayPolicyTableEntriesInputDict) + ) + client.get_transit_gateway_prefix_list_references(transit_gateway_route_table_id=_) + client.get_transit_gateway_prefix_list_references( + **_request(GetTransitGatewayPrefixListReferencesInputDict) + ) + client.get_transit_gateway_prefix_list_references( + _request(GetTransitGatewayPrefixListReferencesInput) + ) + client.get_transit_gateway_prefix_list_references( + _request(GetTransitGatewayPrefixListReferencesInputDict) + ) + client.get_transit_gateway_route_table_associations( + transit_gateway_route_table_id=_ + ) + client.get_transit_gateway_route_table_associations( + **_request(GetTransitGatewayRouteTableAssociationsInputDict) + ) + client.get_transit_gateway_route_table_associations( + _request(GetTransitGatewayRouteTableAssociationsInput) + ) + client.get_transit_gateway_route_table_associations( + _request(GetTransitGatewayRouteTableAssociationsInputDict) + ) + client.get_transit_gateway_route_table_propagations( + transit_gateway_route_table_id=_ + ) + client.get_transit_gateway_route_table_propagations( + **_request(GetTransitGatewayRouteTablePropagationsInputDict) + ) + client.get_transit_gateway_route_table_propagations( + _request(GetTransitGatewayRouteTablePropagationsInput) + ) + client.get_transit_gateway_route_table_propagations( + _request(GetTransitGatewayRouteTablePropagationsInputDict) + ) + client.get_verified_access_endpoint_policy(verified_access_endpoint_id=_) + client.get_verified_access_endpoint_policy( + **_request(GetVerifiedAccessEndpointPolicyInputDict) + ) + client.get_verified_access_endpoint_policy( + _request(GetVerifiedAccessEndpointPolicyInput) + ) + client.get_verified_access_endpoint_policy( + _request(GetVerifiedAccessEndpointPolicyInputDict) + ) + client.get_verified_access_endpoint_targets(verified_access_endpoint_id=_) + client.get_verified_access_endpoint_targets( + **_request(GetVerifiedAccessEndpointTargetsInputDict) + ) + client.get_verified_access_endpoint_targets( + _request(GetVerifiedAccessEndpointTargetsInput) + ) + client.get_verified_access_endpoint_targets( + _request(GetVerifiedAccessEndpointTargetsInputDict) + ) + client.get_verified_access_group_policy(verified_access_group_id=_) + client.get_verified_access_group_policy( + **_request(GetVerifiedAccessGroupPolicyInputDict) + ) + client.get_verified_access_group_policy(_request(GetVerifiedAccessGroupPolicyInput)) + client.get_verified_access_group_policy( + _request(GetVerifiedAccessGroupPolicyInputDict) + ) + client.get_vpc_resources_blocking_encryption_enforcement(vpc_id=_) + client.get_vpc_resources_blocking_encryption_enforcement( + **_request(GetVpcResourcesBlockingEncryptionEnforcementInputDict) + ) + client.get_vpc_resources_blocking_encryption_enforcement( + _request(GetVpcResourcesBlockingEncryptionEnforcementInput) + ) + client.get_vpc_resources_blocking_encryption_enforcement( + _request(GetVpcResourcesBlockingEncryptionEnforcementInputDict) + ) + client.get_vpn_connection_device_sample_configuration( + vpn_connection_id=_, vpn_connection_device_type_id=_ + ) + client.get_vpn_connection_device_sample_configuration( + **_request(GetVpnConnectionDeviceSampleConfigurationInputDict) + ) + client.get_vpn_connection_device_sample_configuration( + _request(GetVpnConnectionDeviceSampleConfigurationInput) + ) + client.get_vpn_connection_device_sample_configuration( + _request(GetVpnConnectionDeviceSampleConfigurationInputDict) + ) + client.get_vpn_connection_device_types() + client.get_vpn_connection_device_types( + **_request(GetVpnConnectionDeviceTypesInputDict) + ) + client.get_vpn_connection_device_types(_request(GetVpnConnectionDeviceTypesInput)) + client.get_vpn_connection_device_types( + _request(GetVpnConnectionDeviceTypesInputDict) + ) + client.get_vpn_tunnel_replacement_status( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_ + ) + client.get_vpn_tunnel_replacement_status( + **_request(GetVpnTunnelReplacementStatusInputDict) + ) + client.get_vpn_tunnel_replacement_status( + _request(GetVpnTunnelReplacementStatusInput) + ) + client.get_vpn_tunnel_replacement_status( + _request(GetVpnTunnelReplacementStatusInputDict) + ) + client.import_client_vpn_client_certificate_revocation_list( + client_vpn_endpoint_id=_, certificate_revocation_list=_ + ) + client.import_client_vpn_client_certificate_revocation_list( + **_request(ImportClientVpnClientCertificateRevocationListInputDict) + ) + client.import_client_vpn_client_certificate_revocation_list( + _request(ImportClientVpnClientCertificateRevocationListInput) + ) + client.import_client_vpn_client_certificate_revocation_list( + _request(ImportClientVpnClientCertificateRevocationListInputDict) + ) + client.import_image() + client.import_image(**_request(ImportImageInputDict)) + client.import_image(_request(ImportImageInput)) + client.import_image(_request(ImportImageInputDict)) + client.import_instance(platform=_) + client.import_instance(**_request(ImportInstanceInputDict)) + client.import_instance(_request(ImportInstanceInput)) + client.import_instance(_request(ImportInstanceInputDict)) + client.import_key_pair(key_name=_, public_key_material=_) + client.import_key_pair(**_request(ImportKeyPairInputDict)) + client.import_key_pair(_request(ImportKeyPairInput)) + client.import_key_pair(_request(ImportKeyPairInputDict)) + client.import_snapshot() + client.import_snapshot(**_request(ImportSnapshotInputDict)) + client.import_snapshot(_request(ImportSnapshotInput)) + client.import_snapshot(_request(ImportSnapshotInputDict)) + client.import_volume(image=_, volume=_) + client.import_volume(**_request(ImportVolumeInputDict)) + client.import_volume(_request(ImportVolumeInput)) + client.import_volume(_request(ImportVolumeInputDict)) + client.list_images_in_recycle_bin() + client.list_images_in_recycle_bin(**_request(ListImagesInRecycleBinInputDict)) + client.list_images_in_recycle_bin(_request(ListImagesInRecycleBinInput)) + client.list_images_in_recycle_bin(_request(ListImagesInRecycleBinInputDict)) + client.list_snapshots_in_recycle_bin() + client.list_snapshots_in_recycle_bin(**_request(ListSnapshotsInRecycleBinInputDict)) + client.list_snapshots_in_recycle_bin(_request(ListSnapshotsInRecycleBinInput)) + client.list_snapshots_in_recycle_bin(_request(ListSnapshotsInRecycleBinInputDict)) + client.list_volumes_in_recycle_bin() + client.list_volumes_in_recycle_bin(**_request(ListVolumesInRecycleBinInputDict)) + client.list_volumes_in_recycle_bin(_request(ListVolumesInRecycleBinInput)) + client.list_volumes_in_recycle_bin(_request(ListVolumesInRecycleBinInputDict)) + client.lock_snapshot(snapshot_id=_, lock_mode=_) + client.lock_snapshot(**_request(LockSnapshotInputDict)) + client.lock_snapshot(_request(LockSnapshotInput)) + client.lock_snapshot(_request(LockSnapshotInputDict)) + client.modify_account_vpc_encryption_control() + client.modify_account_vpc_encryption_control( + **_request(ModifyAccountVpcEncryptionControlInputDict) + ) + client.modify_account_vpc_encryption_control( + _request(ModifyAccountVpcEncryptionControlInput) + ) + client.modify_account_vpc_encryption_control( + _request(ModifyAccountVpcEncryptionControlInputDict) + ) + client.modify_address_attribute(allocation_id=_) + client.modify_address_attribute(**_request(ModifyAddressAttributeInputDict)) + client.modify_address_attribute(_request(ModifyAddressAttributeInput)) + client.modify_address_attribute(_request(ModifyAddressAttributeInputDict)) + client.modify_application_status_check(application_status_check_id=_) + client.modify_application_status_check( + **_request(ModifyApplicationStatusCheckInputDict) + ) + client.modify_application_status_check(_request(ModifyApplicationStatusCheckInput)) + client.modify_application_status_check( + _request(ModifyApplicationStatusCheckInputDict) + ) + client.modify_availability_zone_group(group_name=_, opt_in_status=_) + client.modify_availability_zone_group( + **_request(ModifyAvailabilityZoneGroupInputDict) + ) + client.modify_availability_zone_group(_request(ModifyAvailabilityZoneGroupInput)) + client.modify_availability_zone_group( + _request(ModifyAvailabilityZoneGroupInputDict) + ) + client.modify_capacity_reservation(capacity_reservation_id=_) + client.modify_capacity_reservation(**_request(ModifyCapacityReservationInputDict)) + client.modify_capacity_reservation(_request(ModifyCapacityReservationInput)) + client.modify_capacity_reservation(_request(ModifyCapacityReservationInputDict)) + client.modify_capacity_reservation_fleet(capacity_reservation_fleet_id=_) + client.modify_capacity_reservation_fleet( + **_request(ModifyCapacityReservationFleetInputDict) + ) + client.modify_capacity_reservation_fleet( + _request(ModifyCapacityReservationFleetInput) + ) + client.modify_capacity_reservation_fleet( + _request(ModifyCapacityReservationFleetInputDict) + ) + client.modify_client_vpn_endpoint(client_vpn_endpoint_id=_) + client.modify_client_vpn_endpoint(**_request(ModifyClientVpnEndpointInputDict)) + client.modify_client_vpn_endpoint(_request(ModifyClientVpnEndpointInput)) + client.modify_client_vpn_endpoint(_request(ModifyClientVpnEndpointInputDict)) + client.modify_client_vpn_endpoint_authorization_policy(client_vpn_endpoint_id=_) + client.modify_client_vpn_endpoint_authorization_policy( + **_request(ModifyClientVpnEndpointAuthorizationPolicyInputDict) + ) + client.modify_client_vpn_endpoint_authorization_policy( + _request(ModifyClientVpnEndpointAuthorizationPolicyInput) + ) + client.modify_client_vpn_endpoint_authorization_policy( + _request(ModifyClientVpnEndpointAuthorizationPolicyInputDict) + ) + client.modify_default_credit_specification(instance_family=_, cpu_credits=_) + client.modify_default_credit_specification( + **_request(ModifyDefaultCreditSpecificationInputDict) + ) + client.modify_default_credit_specification( + _request(ModifyDefaultCreditSpecificationInput) + ) + client.modify_default_credit_specification( + _request(ModifyDefaultCreditSpecificationInputDict) + ) + client.modify_ebs_default_kms_key_id(kms_key_id=_) + client.modify_ebs_default_kms_key_id(**_request(ModifyEbsDefaultKmsKeyIdInputDict)) + client.modify_ebs_default_kms_key_id(_request(ModifyEbsDefaultKmsKeyIdInput)) + client.modify_ebs_default_kms_key_id(_request(ModifyEbsDefaultKmsKeyIdInputDict)) + client.modify_fleet(fleet_id=_) + client.modify_fleet(**_request(ModifyFleetInputDict)) + client.modify_fleet(_request(ModifyFleetInput)) + client.modify_fleet(_request(ModifyFleetInputDict)) + client.modify_fpga_image_attribute(fpga_image_id=_) + client.modify_fpga_image_attribute(**_request(ModifyFpgaImageAttributeInputDict)) + client.modify_fpga_image_attribute(_request(ModifyFpgaImageAttributeInput)) + client.modify_fpga_image_attribute(_request(ModifyFpgaImageAttributeInputDict)) + client.modify_hosts(host_ids=_) + client.modify_hosts(**_request(ModifyHostsInputDict)) + client.modify_hosts(_request(ModifyHostsInput)) + client.modify_hosts(_request(ModifyHostsInputDict)) + client.modify_identity_id_format(resource=_, use_long_ids=_, principal_arn=_) + client.modify_identity_id_format(**_request(ModifyIdentityIdFormatInputDict)) + client.modify_identity_id_format(_request(ModifyIdentityIdFormatInput)) + client.modify_identity_id_format(_request(ModifyIdentityIdFormatInputDict)) + client.modify_id_format(resource=_, use_long_ids=_) + client.modify_id_format(**_request(ModifyIdFormatInputDict)) + client.modify_id_format(_request(ModifyIdFormatInput)) + client.modify_id_format(_request(ModifyIdFormatInputDict)) + client.modify_image_attribute(image_id=_) + client.modify_image_attribute(**_request(ModifyImageAttributeInputDict)) + client.modify_image_attribute(_request(ModifyImageAttributeInput)) + client.modify_image_attribute(_request(ModifyImageAttributeInputDict)) + client.modify_instance_attribute(instance_id=_) + client.modify_instance_attribute(**_request(ModifyInstanceAttributeInputDict)) + client.modify_instance_attribute(_request(ModifyInstanceAttributeInput)) + client.modify_instance_attribute(_request(ModifyInstanceAttributeInputDict)) + client.modify_instance_capacity_reservation_attributes( + instance_id=_, capacity_reservation_specification=_ + ) + client.modify_instance_capacity_reservation_attributes( + **_request(ModifyInstanceCapacityReservationAttributesInputDict) + ) + client.modify_instance_capacity_reservation_attributes( + _request(ModifyInstanceCapacityReservationAttributesInput) + ) + client.modify_instance_capacity_reservation_attributes( + _request(ModifyInstanceCapacityReservationAttributesInputDict) + ) + client.modify_instance_connect_endpoint(instance_connect_endpoint_id=_) + client.modify_instance_connect_endpoint( + **_request(ModifyInstanceConnectEndpointInputDict) + ) + client.modify_instance_connect_endpoint( + _request(ModifyInstanceConnectEndpointInput) + ) + client.modify_instance_connect_endpoint( + _request(ModifyInstanceConnectEndpointInputDict) + ) + client.modify_instance_cpu_options(instance_id=_) + client.modify_instance_cpu_options(**_request(ModifyInstanceCpuOptionsInputDict)) + client.modify_instance_cpu_options(_request(ModifyInstanceCpuOptionsInput)) + client.modify_instance_cpu_options(_request(ModifyInstanceCpuOptionsInputDict)) + client.modify_instance_credit_specification(instance_credit_specifications=_) + client.modify_instance_credit_specification( + **_request(ModifyInstanceCreditSpecificationInputDict) + ) + client.modify_instance_credit_specification( + _request(ModifyInstanceCreditSpecificationInput) + ) + client.modify_instance_credit_specification( + _request(ModifyInstanceCreditSpecificationInputDict) + ) + client.modify_instance_event_start_time( + instance_id=_, instance_event_id=_, not_before=_ + ) + client.modify_instance_event_start_time( + **_request(ModifyInstanceEventStartTimeInputDict) + ) + client.modify_instance_event_start_time(_request(ModifyInstanceEventStartTimeInput)) + client.modify_instance_event_start_time( + _request(ModifyInstanceEventStartTimeInputDict) + ) + client.modify_instance_event_window(instance_event_window_id=_) + client.modify_instance_event_window(**_request(ModifyInstanceEventWindowInputDict)) + client.modify_instance_event_window(_request(ModifyInstanceEventWindowInput)) + client.modify_instance_event_window(_request(ModifyInstanceEventWindowInputDict)) + client.modify_instance_maintenance_options(instance_id=_) + client.modify_instance_maintenance_options( + **_request(ModifyInstanceMaintenanceOptionsInputDict) + ) + client.modify_instance_maintenance_options( + _request(ModifyInstanceMaintenanceOptionsInput) + ) + client.modify_instance_maintenance_options( + _request(ModifyInstanceMaintenanceOptionsInputDict) + ) + client.modify_instance_metadata_defaults() + client.modify_instance_metadata_defaults( + **_request(ModifyInstanceMetadataDefaultsInputDict) + ) + client.modify_instance_metadata_defaults( + _request(ModifyInstanceMetadataDefaultsInput) + ) + client.modify_instance_metadata_defaults( + _request(ModifyInstanceMetadataDefaultsInputDict) + ) + client.modify_instance_metadata_options(instance_id=_) + client.modify_instance_metadata_options( + **_request(ModifyInstanceMetadataOptionsInputDict) + ) + client.modify_instance_metadata_options( + _request(ModifyInstanceMetadataOptionsInput) + ) + client.modify_instance_metadata_options( + _request(ModifyInstanceMetadataOptionsInputDict) + ) + client.modify_instance_network_performance_options( + instance_id=_, bandwidth_weighting=_ + ) + client.modify_instance_network_performance_options( + **_request(ModifyInstanceNetworkPerformanceOptionsInputDict) + ) + client.modify_instance_network_performance_options( + _request(ModifyInstanceNetworkPerformanceOptionsInput) + ) + client.modify_instance_network_performance_options( + _request(ModifyInstanceNetworkPerformanceOptionsInputDict) + ) + client.modify_instance_placement(instance_id=_) + client.modify_instance_placement(**_request(ModifyInstancePlacementInputDict)) + client.modify_instance_placement(_request(ModifyInstancePlacementInput)) + client.modify_instance_placement(_request(ModifyInstancePlacementInputDict)) + client.modify_ipam(ipam_id=_) + client.modify_ipam(**_request(ModifyIpamInputDict)) + client.modify_ipam(_request(ModifyIpamInput)) + client.modify_ipam(_request(ModifyIpamInputDict)) + client.modify_ipam_policy_allocation_rules( + ipam_policy_id=_, locale=_, resource_type=_ + ) + client.modify_ipam_policy_allocation_rules( + **_request(ModifyIpamPolicyAllocationRulesInputDict) + ) + client.modify_ipam_policy_allocation_rules( + _request(ModifyIpamPolicyAllocationRulesInput) + ) + client.modify_ipam_policy_allocation_rules( + _request(ModifyIpamPolicyAllocationRulesInputDict) + ) + client.modify_ipam_pool(ipam_pool_id=_) + client.modify_ipam_pool(**_request(ModifyIpamPoolInputDict)) + client.modify_ipam_pool(_request(ModifyIpamPoolInput)) + client.modify_ipam_pool(_request(ModifyIpamPoolInputDict)) + client.modify_ipam_pool_allocation(ipam_pool_allocation_id=_) + client.modify_ipam_pool_allocation(**_request(ModifyIpamPoolAllocationInputDict)) + client.modify_ipam_pool_allocation(_request(ModifyIpamPoolAllocationInput)) + client.modify_ipam_pool_allocation(_request(ModifyIpamPoolAllocationInputDict)) + client.modify_ipam_prefix_list_resolver(ipam_prefix_list_resolver_id=_) + client.modify_ipam_prefix_list_resolver( + **_request(ModifyIpamPrefixListResolverInputDict) + ) + client.modify_ipam_prefix_list_resolver(_request(ModifyIpamPrefixListResolverInput)) + client.modify_ipam_prefix_list_resolver( + _request(ModifyIpamPrefixListResolverInputDict) + ) + client.modify_ipam_prefix_list_resolver_target( + ipam_prefix_list_resolver_target_id=_ + ) + client.modify_ipam_prefix_list_resolver_target( + **_request(ModifyIpamPrefixListResolverTargetInputDict) + ) + client.modify_ipam_prefix_list_resolver_target( + _request(ModifyIpamPrefixListResolverTargetInput) + ) + client.modify_ipam_prefix_list_resolver_target( + _request(ModifyIpamPrefixListResolverTargetInputDict) + ) + client.modify_ipam_resource_cidr( + resource_id=_, + resource_cidr=_, + resource_region=_, + current_ipam_scope_id=_, + monitored=_, + ) + client.modify_ipam_resource_cidr(**_request(ModifyIpamResourceCidrInputDict)) + client.modify_ipam_resource_cidr(_request(ModifyIpamResourceCidrInput)) + client.modify_ipam_resource_cidr(_request(ModifyIpamResourceCidrInputDict)) + client.modify_ipam_resource_discovery(ipam_resource_discovery_id=_) + client.modify_ipam_resource_discovery( + **_request(ModifyIpamResourceDiscoveryInputDict) + ) + client.modify_ipam_resource_discovery(_request(ModifyIpamResourceDiscoveryInput)) + client.modify_ipam_resource_discovery( + _request(ModifyIpamResourceDiscoveryInputDict) + ) + client.modify_ipam_routing_policy_registration( + ipam_internet_registry_association_id=_, cidr=_, asns=_ + ) + client.modify_ipam_routing_policy_registration( + **_request(ModifyIpamRoutingPolicyRegistrationInputDict) + ) + client.modify_ipam_routing_policy_registration( + _request(ModifyIpamRoutingPolicyRegistrationInput) + ) + client.modify_ipam_routing_policy_registration( + _request(ModifyIpamRoutingPolicyRegistrationInputDict) + ) + client.modify_ipam_scope(ipam_scope_id=_) + client.modify_ipam_scope(**_request(ModifyIpamScopeInputDict)) + client.modify_ipam_scope(_request(ModifyIpamScopeInput)) + client.modify_ipam_scope(_request(ModifyIpamScopeInputDict)) + client.modify_launch_template() + client.modify_launch_template(**_request(ModifyLaunchTemplateInputDict)) + client.modify_launch_template(_request(ModifyLaunchTemplateInput)) + client.modify_launch_template(_request(ModifyLaunchTemplateInputDict)) + client.modify_local_gateway_route(local_gateway_route_table_id=_) + client.modify_local_gateway_route(**_request(ModifyLocalGatewayRouteInputDict)) + client.modify_local_gateway_route(_request(ModifyLocalGatewayRouteInput)) + client.modify_local_gateway_route(_request(ModifyLocalGatewayRouteInputDict)) + client.modify_managed_prefix_list(prefix_list_id=_) + client.modify_managed_prefix_list(**_request(ModifyManagedPrefixListInputDict)) + client.modify_managed_prefix_list(_request(ModifyManagedPrefixListInput)) + client.modify_managed_prefix_list(_request(ModifyManagedPrefixListInputDict)) + client.modify_managed_resource_visibility(default_visibility=_) + client.modify_managed_resource_visibility( + **_request(ModifyManagedResourceVisibilityInputDict) + ) + client.modify_managed_resource_visibility( + _request(ModifyManagedResourceVisibilityInput) + ) + client.modify_managed_resource_visibility( + _request(ModifyManagedResourceVisibilityInputDict) + ) + client.modify_network_interface_attribute(network_interface_id=_) + client.modify_network_interface_attribute( + **_request(ModifyNetworkInterfaceAttributeInputDict) + ) + client.modify_network_interface_attribute( + _request(ModifyNetworkInterfaceAttributeInput) + ) + client.modify_network_interface_attribute( + _request(ModifyNetworkInterfaceAttributeInputDict) + ) + client.modify_private_dns_name_options(instance_id=_) + client.modify_private_dns_name_options( + **_request(ModifyPrivateDnsNameOptionsInputDict) + ) + client.modify_private_dns_name_options(_request(ModifyPrivateDnsNameOptionsInput)) + client.modify_private_dns_name_options( + _request(ModifyPrivateDnsNameOptionsInputDict) + ) + client.modify_public_ip_dns_name_options(network_interface_id=_, hostname_type=_) + client.modify_public_ip_dns_name_options( + **_request(ModifyPublicIpDnsNameOptionsInputDict) + ) + client.modify_public_ip_dns_name_options( + _request(ModifyPublicIpDnsNameOptionsInput) + ) + client.modify_public_ip_dns_name_options( + _request(ModifyPublicIpDnsNameOptionsInputDict) + ) + client.modify_reserved_instances(reserved_instances_ids=_, target_configurations=_) + client.modify_reserved_instances(**_request(ModifyReservedInstancesInputDict)) + client.modify_reserved_instances(_request(ModifyReservedInstancesInput)) + client.modify_reserved_instances(_request(ModifyReservedInstancesInputDict)) + client.modify_route_server(route_server_id=_) + client.modify_route_server(**_request(ModifyRouteServerInputDict)) + client.modify_route_server(_request(ModifyRouteServerInput)) + client.modify_route_server(_request(ModifyRouteServerInputDict)) + client.modify_security_group_rules(group_id=_, security_group_rules=_) + client.modify_security_group_rules(**_request(ModifySecurityGroupRulesInputDict)) + client.modify_security_group_rules(_request(ModifySecurityGroupRulesInput)) + client.modify_security_group_rules(_request(ModifySecurityGroupRulesInputDict)) + client.modify_snapshot_attribute(snapshot_id=_) + client.modify_snapshot_attribute(**_request(ModifySnapshotAttributeInputDict)) + client.modify_snapshot_attribute(_request(ModifySnapshotAttributeInput)) + client.modify_snapshot_attribute(_request(ModifySnapshotAttributeInputDict)) + client.modify_snapshot_tier(snapshot_id=_) + client.modify_snapshot_tier(**_request(ModifySnapshotTierInputDict)) + client.modify_snapshot_tier(_request(ModifySnapshotTierInput)) + client.modify_snapshot_tier(_request(ModifySnapshotTierInputDict)) + client.modify_spot_fleet_request(spot_fleet_request_id=_) + client.modify_spot_fleet_request(**_request(ModifySpotFleetRequestInputDict)) + client.modify_spot_fleet_request(_request(ModifySpotFleetRequestInput)) + client.modify_spot_fleet_request(_request(ModifySpotFleetRequestInputDict)) + client.modify_subnet_attribute(subnet_id=_) + client.modify_subnet_attribute(**_request(ModifySubnetAttributeInputDict)) + client.modify_subnet_attribute(_request(ModifySubnetAttributeInput)) + client.modify_subnet_attribute(_request(ModifySubnetAttributeInputDict)) + client.modify_traffic_mirror_filter_network_services(traffic_mirror_filter_id=_) + client.modify_traffic_mirror_filter_network_services( + **_request(ModifyTrafficMirrorFilterNetworkServicesInputDict) + ) + client.modify_traffic_mirror_filter_network_services( + _request(ModifyTrafficMirrorFilterNetworkServicesInput) + ) + client.modify_traffic_mirror_filter_network_services( + _request(ModifyTrafficMirrorFilterNetworkServicesInputDict) + ) + client.modify_traffic_mirror_filter_rule(traffic_mirror_filter_rule_id=_) + client.modify_traffic_mirror_filter_rule( + **_request(ModifyTrafficMirrorFilterRuleInputDict) + ) + client.modify_traffic_mirror_filter_rule( + _request(ModifyTrafficMirrorFilterRuleInput) + ) + client.modify_traffic_mirror_filter_rule( + _request(ModifyTrafficMirrorFilterRuleInputDict) + ) + client.modify_traffic_mirror_session(traffic_mirror_session_id=_) + client.modify_traffic_mirror_session( + **_request(ModifyTrafficMirrorSessionInputDict) + ) + client.modify_traffic_mirror_session(_request(ModifyTrafficMirrorSessionInput)) + client.modify_traffic_mirror_session(_request(ModifyTrafficMirrorSessionInputDict)) + client.modify_transit_gateway(transit_gateway_id=_) + client.modify_transit_gateway(**_request(ModifyTransitGatewayInputDict)) + client.modify_transit_gateway(_request(ModifyTransitGatewayInput)) + client.modify_transit_gateway(_request(ModifyTransitGatewayInputDict)) + client.modify_transit_gateway_attachment_nat_configuration( + transit_gateway_attachment_id=_ + ) + client.modify_transit_gateway_attachment_nat_configuration( + **_request(ModifyTransitGatewayAttachmentNatConfigurationInputDict) + ) + client.modify_transit_gateway_attachment_nat_configuration( + _request(ModifyTransitGatewayAttachmentNatConfigurationInput) + ) + client.modify_transit_gateway_attachment_nat_configuration( + _request(ModifyTransitGatewayAttachmentNatConfigurationInputDict) + ) + client.modify_transit_gateway_metering_policy(transit_gateway_metering_policy_id=_) + client.modify_transit_gateway_metering_policy( + **_request(ModifyTransitGatewayMeteringPolicyInputDict) + ) + client.modify_transit_gateway_metering_policy( + _request(ModifyTransitGatewayMeteringPolicyInput) + ) + client.modify_transit_gateway_metering_policy( + _request(ModifyTransitGatewayMeteringPolicyInputDict) + ) + client.modify_transit_gateway_policy_table_entry( + transit_gateway_policy_table_id=_, policy_rule_number=_ + ) + client.modify_transit_gateway_policy_table_entry( + **_request(ModifyTransitGatewayPolicyTableEntryInputDict) + ) + client.modify_transit_gateway_policy_table_entry( + _request(ModifyTransitGatewayPolicyTableEntryInput) + ) + client.modify_transit_gateway_policy_table_entry( + _request(ModifyTransitGatewayPolicyTableEntryInputDict) + ) + client.modify_transit_gateway_prefix_list_reference( + transit_gateway_route_table_id=_, prefix_list_id=_ + ) + client.modify_transit_gateway_prefix_list_reference( + **_request(ModifyTransitGatewayPrefixListReferenceInputDict) + ) + client.modify_transit_gateway_prefix_list_reference( + _request(ModifyTransitGatewayPrefixListReferenceInput) + ) + client.modify_transit_gateway_prefix_list_reference( + _request(ModifyTransitGatewayPrefixListReferenceInputDict) + ) + client.modify_transit_gateway_vpc_attachment(transit_gateway_attachment_id=_) + client.modify_transit_gateway_vpc_attachment( + **_request(ModifyTransitGatewayVpcAttachmentInputDict) + ) + client.modify_transit_gateway_vpc_attachment( + _request(ModifyTransitGatewayVpcAttachmentInput) + ) + client.modify_transit_gateway_vpc_attachment( + _request(ModifyTransitGatewayVpcAttachmentInputDict) + ) + client.modify_verified_access_endpoint(verified_access_endpoint_id=_) + client.modify_verified_access_endpoint( + **_request(ModifyVerifiedAccessEndpointInputDict) + ) + client.modify_verified_access_endpoint(_request(ModifyVerifiedAccessEndpointInput)) + client.modify_verified_access_endpoint( + _request(ModifyVerifiedAccessEndpointInputDict) + ) + client.modify_verified_access_endpoint_policy(verified_access_endpoint_id=_) + client.modify_verified_access_endpoint_policy( + **_request(ModifyVerifiedAccessEndpointPolicyInputDict) + ) + client.modify_verified_access_endpoint_policy( + _request(ModifyVerifiedAccessEndpointPolicyInput) + ) + client.modify_verified_access_endpoint_policy( + _request(ModifyVerifiedAccessEndpointPolicyInputDict) + ) + client.modify_verified_access_group(verified_access_group_id=_) + client.modify_verified_access_group(**_request(ModifyVerifiedAccessGroupInputDict)) + client.modify_verified_access_group(_request(ModifyVerifiedAccessGroupInput)) + client.modify_verified_access_group(_request(ModifyVerifiedAccessGroupInputDict)) + client.modify_verified_access_group_policy(verified_access_group_id=_) + client.modify_verified_access_group_policy( + **_request(ModifyVerifiedAccessGroupPolicyInputDict) + ) + client.modify_verified_access_group_policy( + _request(ModifyVerifiedAccessGroupPolicyInput) + ) + client.modify_verified_access_group_policy( + _request(ModifyVerifiedAccessGroupPolicyInputDict) + ) + client.modify_verified_access_instance(verified_access_instance_id=_) + client.modify_verified_access_instance( + **_request(ModifyVerifiedAccessInstanceInputDict) + ) + client.modify_verified_access_instance(_request(ModifyVerifiedAccessInstanceInput)) + client.modify_verified_access_instance( + _request(ModifyVerifiedAccessInstanceInputDict) + ) + client.modify_verified_access_instance_logging_configuration( + verified_access_instance_id=_, access_logs=_ + ) + client.modify_verified_access_instance_logging_configuration( + **_request(ModifyVerifiedAccessInstanceLoggingConfigurationInputDict) + ) + client.modify_verified_access_instance_logging_configuration( + _request(ModifyVerifiedAccessInstanceLoggingConfigurationInput) + ) + client.modify_verified_access_instance_logging_configuration( + _request(ModifyVerifiedAccessInstanceLoggingConfigurationInputDict) + ) + client.modify_verified_access_trust_provider(verified_access_trust_provider_id=_) + client.modify_verified_access_trust_provider( + **_request(ModifyVerifiedAccessTrustProviderInputDict) + ) + client.modify_verified_access_trust_provider( + _request(ModifyVerifiedAccessTrustProviderInput) + ) + client.modify_verified_access_trust_provider( + _request(ModifyVerifiedAccessTrustProviderInputDict) + ) + client.modify_volume(volume_id=_) + client.modify_volume(**_request(ModifyVolumeInputDict)) + client.modify_volume(_request(ModifyVolumeInput)) + client.modify_volume(_request(ModifyVolumeInputDict)) + client.modify_volume_attribute(volume_id=_) + client.modify_volume_attribute(**_request(ModifyVolumeAttributeInputDict)) + client.modify_volume_attribute(_request(ModifyVolumeAttributeInput)) + client.modify_volume_attribute(_request(ModifyVolumeAttributeInputDict)) + client.modify_vpc_attribute(vpc_id=_) + client.modify_vpc_attribute(**_request(ModifyVpcAttributeInputDict)) + client.modify_vpc_attribute(_request(ModifyVpcAttributeInput)) + client.modify_vpc_attribute(_request(ModifyVpcAttributeInputDict)) + client.modify_vpc_block_public_access_exclusion( + exclusion_id=_, internet_gateway_exclusion_mode=_ + ) + client.modify_vpc_block_public_access_exclusion( + **_request(ModifyVpcBlockPublicAccessExclusionInputDict) + ) + client.modify_vpc_block_public_access_exclusion( + _request(ModifyVpcBlockPublicAccessExclusionInput) + ) + client.modify_vpc_block_public_access_exclusion( + _request(ModifyVpcBlockPublicAccessExclusionInputDict) + ) + client.modify_vpc_block_public_access_options(internet_gateway_block_mode=_) + client.modify_vpc_block_public_access_options( + **_request(ModifyVpcBlockPublicAccessOptionsInputDict) + ) + client.modify_vpc_block_public_access_options( + _request(ModifyVpcBlockPublicAccessOptionsInput) + ) + client.modify_vpc_block_public_access_options( + _request(ModifyVpcBlockPublicAccessOptionsInputDict) + ) + client.modify_vpc_encryption_control(vpc_encryption_control_id=_) + client.modify_vpc_encryption_control( + **_request(ModifyVpcEncryptionControlInputDict) + ) + client.modify_vpc_encryption_control(_request(ModifyVpcEncryptionControlInput)) + client.modify_vpc_encryption_control(_request(ModifyVpcEncryptionControlInputDict)) + client.modify_vpc_endpoint(vpc_endpoint_id=_) + client.modify_vpc_endpoint(**_request(ModifyVpcEndpointInputDict)) + client.modify_vpc_endpoint(_request(ModifyVpcEndpointInput)) + client.modify_vpc_endpoint(_request(ModifyVpcEndpointInputDict)) + client.modify_vpc_endpoint_connection_notification(connection_notification_id=_) + client.modify_vpc_endpoint_connection_notification( + **_request(ModifyVpcEndpointConnectionNotificationInputDict) + ) + client.modify_vpc_endpoint_connection_notification( + _request(ModifyVpcEndpointConnectionNotificationInput) + ) + client.modify_vpc_endpoint_connection_notification( + _request(ModifyVpcEndpointConnectionNotificationInputDict) + ) + client.modify_vpc_endpoint_payer_responsibility( + vpc_endpoint_id=_, payer_responsibility=_, scope=_ + ) + client.modify_vpc_endpoint_payer_responsibility( + **_request(ModifyVpcEndpointPayerResponsibilityInputDict) + ) + client.modify_vpc_endpoint_payer_responsibility( + _request(ModifyVpcEndpointPayerResponsibilityInput) + ) + client.modify_vpc_endpoint_payer_responsibility( + _request(ModifyVpcEndpointPayerResponsibilityInputDict) + ) + client.modify_vpc_endpoint_service_configuration(service_id=_) + client.modify_vpc_endpoint_service_configuration( + **_request(ModifyVpcEndpointServiceConfigurationInputDict) + ) + client.modify_vpc_endpoint_service_configuration( + _request(ModifyVpcEndpointServiceConfigurationInput) + ) + client.modify_vpc_endpoint_service_configuration( + _request(ModifyVpcEndpointServiceConfigurationInputDict) + ) + client.modify_vpc_endpoint_service_payer_responsibility( + service_id=_, payer_responsibility=_ + ) + client.modify_vpc_endpoint_service_payer_responsibility( + **_request(ModifyVpcEndpointServicePayerResponsibilityInputDict) + ) + client.modify_vpc_endpoint_service_payer_responsibility( + _request(ModifyVpcEndpointServicePayerResponsibilityInput) + ) + client.modify_vpc_endpoint_service_payer_responsibility( + _request(ModifyVpcEndpointServicePayerResponsibilityInputDict) + ) + client.modify_vpc_endpoint_service_permissions(service_id=_) + client.modify_vpc_endpoint_service_permissions( + **_request(ModifyVpcEndpointServicePermissionsInputDict) + ) + client.modify_vpc_endpoint_service_permissions( + _request(ModifyVpcEndpointServicePermissionsInput) + ) + client.modify_vpc_endpoint_service_permissions( + _request(ModifyVpcEndpointServicePermissionsInputDict) + ) + client.modify_vpc_peering_connection_options(vpc_peering_connection_id=_) + client.modify_vpc_peering_connection_options( + **_request(ModifyVpcPeeringConnectionOptionsInputDict) + ) + client.modify_vpc_peering_connection_options( + _request(ModifyVpcPeeringConnectionOptionsInput) + ) + client.modify_vpc_peering_connection_options( + _request(ModifyVpcPeeringConnectionOptionsInputDict) + ) + client.modify_vpc_tenancy(vpc_id=_, instance_tenancy=_) + client.modify_vpc_tenancy(**_request(ModifyVpcTenancyInputDict)) + client.modify_vpc_tenancy(_request(ModifyVpcTenancyInput)) + client.modify_vpc_tenancy(_request(ModifyVpcTenancyInputDict)) + client.modify_vpn_connection(vpn_connection_id=_) + client.modify_vpn_connection(**_request(ModifyVpnConnectionInputDict)) + client.modify_vpn_connection(_request(ModifyVpnConnectionInput)) + client.modify_vpn_connection(_request(ModifyVpnConnectionInputDict)) + client.modify_vpn_connection_options(vpn_connection_id=_) + client.modify_vpn_connection_options( + **_request(ModifyVpnConnectionOptionsInputDict) + ) + client.modify_vpn_connection_options(_request(ModifyVpnConnectionOptionsInput)) + client.modify_vpn_connection_options(_request(ModifyVpnConnectionOptionsInputDict)) + client.modify_vpn_tunnel_certificate( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_ + ) + client.modify_vpn_tunnel_certificate( + **_request(ModifyVpnTunnelCertificateInputDict) + ) + client.modify_vpn_tunnel_certificate(_request(ModifyVpnTunnelCertificateInput)) + client.modify_vpn_tunnel_certificate(_request(ModifyVpnTunnelCertificateInputDict)) + client.modify_vpn_tunnel_options( + vpn_connection_id=_, vpn_tunnel_outside_ip_address=_, tunnel_options=_ + ) + client.modify_vpn_tunnel_options(**_request(ModifyVpnTunnelOptionsInputDict)) + client.modify_vpn_tunnel_options(_request(ModifyVpnTunnelOptionsInput)) + client.modify_vpn_tunnel_options(_request(ModifyVpnTunnelOptionsInputDict)) + client.monitor_instances(instance_ids=_) + client.monitor_instances(**_request(MonitorInstancesInputDict)) + client.monitor_instances(_request(MonitorInstancesInput)) + client.monitor_instances(_request(MonitorInstancesInputDict)) + client.move_address_to_vpc(public_ip=_) + client.move_address_to_vpc(**_request(MoveAddressToVpcInputDict)) + client.move_address_to_vpc(_request(MoveAddressToVpcInput)) + client.move_address_to_vpc(_request(MoveAddressToVpcInputDict)) + client.move_byoip_cidr_to_ipam(cidr=_, ipam_pool_id=_, ipam_pool_owner=_) + client.move_byoip_cidr_to_ipam(**_request(MoveByoipCidrToIpamInputDict)) + client.move_byoip_cidr_to_ipam(_request(MoveByoipCidrToIpamInput)) + client.move_byoip_cidr_to_ipam(_request(MoveByoipCidrToIpamInputDict)) + client.move_capacity_reservation_instances( + source_capacity_reservation_id=_, + destination_capacity_reservation_id=_, + instance_count=_, + ) + client.move_capacity_reservation_instances( + **_request(MoveCapacityReservationInstancesInputDict) + ) + client.move_capacity_reservation_instances( + _request(MoveCapacityReservationInstancesInput) + ) + client.move_capacity_reservation_instances( + _request(MoveCapacityReservationInstancesInputDict) + ) + client.provision_byoip_cidr(cidr=_) + client.provision_byoip_cidr(**_request(ProvisionByoipCidrInputDict)) + client.provision_byoip_cidr(_request(ProvisionByoipCidrInput)) + client.provision_byoip_cidr(_request(ProvisionByoipCidrInputDict)) + client.provision_ipam_byoasn(ipam_id=_, asn=_, asn_authorization_context=_) + client.provision_ipam_byoasn(**_request(ProvisionIpamByoasnInputDict)) + client.provision_ipam_byoasn(_request(ProvisionIpamByoasnInput)) + client.provision_ipam_byoasn(_request(ProvisionIpamByoasnInputDict)) + client.provision_ipam_pool_cidr(ipam_pool_id=_) + client.provision_ipam_pool_cidr(**_request(ProvisionIpamPoolCidrInputDict)) + client.provision_ipam_pool_cidr(_request(ProvisionIpamPoolCidrInput)) + client.provision_ipam_pool_cidr(_request(ProvisionIpamPoolCidrInputDict)) + client.provision_public_ipv4_pool_cidr(ipam_pool_id=_, pool_id=_, netmask_length=_) + client.provision_public_ipv4_pool_cidr( + **_request(ProvisionPublicIpv4PoolCidrInputDict) + ) + client.provision_public_ipv4_pool_cidr(_request(ProvisionPublicIpv4PoolCidrInput)) + client.provision_public_ipv4_pool_cidr( + _request(ProvisionPublicIpv4PoolCidrInputDict) + ) + client.purchase_capacity_block(capacity_block_offering_id=_, instance_platform=_) + client.purchase_capacity_block(**_request(PurchaseCapacityBlockInputDict)) + client.purchase_capacity_block(_request(PurchaseCapacityBlockInput)) + client.purchase_capacity_block(_request(PurchaseCapacityBlockInputDict)) + client.purchase_capacity_block_extension( + capacity_block_extension_offering_id=_, capacity_reservation_id=_ + ) + client.purchase_capacity_block_extension( + **_request(PurchaseCapacityBlockExtensionInputDict) + ) + client.purchase_capacity_block_extension( + _request(PurchaseCapacityBlockExtensionInput) + ) + client.purchase_capacity_block_extension( + _request(PurchaseCapacityBlockExtensionInputDict) + ) + client.purchase_host_reservation(host_id_set=_, offering_id=_) + client.purchase_host_reservation(**_request(PurchaseHostReservationInputDict)) + client.purchase_host_reservation(_request(PurchaseHostReservationInput)) + client.purchase_host_reservation(_request(PurchaseHostReservationInputDict)) + client.purchase_reserved_instances_offering( + instance_count=_, reserved_instances_offering_id=_ + ) + client.purchase_reserved_instances_offering( + **_request(PurchaseReservedInstancesOfferingInputDict) + ) + client.purchase_reserved_instances_offering( + _request(PurchaseReservedInstancesOfferingInput) + ) + client.purchase_reserved_instances_offering( + _request(PurchaseReservedInstancesOfferingInputDict) + ) + client.purchase_scheduled_instances(purchase_requests=_) + client.purchase_scheduled_instances(**_request(PurchaseScheduledInstancesInputDict)) + client.purchase_scheduled_instances(_request(PurchaseScheduledInstancesInput)) + client.purchase_scheduled_instances(_request(PurchaseScheduledInstancesInputDict)) + client.reboot_instances(instance_ids=_) + client.reboot_instances(**_request(RebootInstancesInputDict)) + client.reboot_instances(_request(RebootInstancesInput)) + client.reboot_instances(_request(RebootInstancesInputDict)) + client.register_image(name=_) + client.register_image(**_request(RegisterImageInputDict)) + client.register_image(_request(RegisterImageInput)) + client.register_image(_request(RegisterImageInputDict)) + client.register_instance_event_notification_attributes(instance_tag_attribute=_) + client.register_instance_event_notification_attributes( + **_request(RegisterInstanceEventNotificationAttributesInputDict) + ) + client.register_instance_event_notification_attributes( + _request(RegisterInstanceEventNotificationAttributesInput) + ) + client.register_instance_event_notification_attributes( + _request(RegisterInstanceEventNotificationAttributesInputDict) + ) + client.register_transit_gateway_multicast_group_members( + transit_gateway_multicast_domain_id=_, network_interface_ids=_ + ) + client.register_transit_gateway_multicast_group_members( + **_request(RegisterTransitGatewayMulticastGroupMembersInputDict) + ) + client.register_transit_gateway_multicast_group_members( + _request(RegisterTransitGatewayMulticastGroupMembersInput) + ) + client.register_transit_gateway_multicast_group_members( + _request(RegisterTransitGatewayMulticastGroupMembersInputDict) + ) + client.register_transit_gateway_multicast_group_sources( + transit_gateway_multicast_domain_id=_, network_interface_ids=_ + ) + client.register_transit_gateway_multicast_group_sources( + **_request(RegisterTransitGatewayMulticastGroupSourcesInputDict) + ) + client.register_transit_gateway_multicast_group_sources( + _request(RegisterTransitGatewayMulticastGroupSourcesInput) + ) + client.register_transit_gateway_multicast_group_sources( + _request(RegisterTransitGatewayMulticastGroupSourcesInputDict) + ) + client.reject_capacity_reservation_billing_ownership(capacity_reservation_id=_) + client.reject_capacity_reservation_billing_ownership( + **_request(RejectCapacityReservationBillingOwnershipInputDict) + ) + client.reject_capacity_reservation_billing_ownership( + _request(RejectCapacityReservationBillingOwnershipInput) + ) + client.reject_capacity_reservation_billing_ownership( + _request(RejectCapacityReservationBillingOwnershipInputDict) + ) + client.reject_transit_gateway_client_vpn_attachment(transit_gateway_attachment_id=_) + client.reject_transit_gateway_client_vpn_attachment( + **_request(RejectTransitGatewayClientVpnAttachmentInputDict) + ) + client.reject_transit_gateway_client_vpn_attachment( + _request(RejectTransitGatewayClientVpnAttachmentInput) + ) + client.reject_transit_gateway_client_vpn_attachment( + _request(RejectTransitGatewayClientVpnAttachmentInputDict) + ) + client.reject_transit_gateway_multicast_domain_associations() + client.reject_transit_gateway_multicast_domain_associations( + **_request(RejectTransitGatewayMulticastDomainAssociationsInputDict) + ) + client.reject_transit_gateway_multicast_domain_associations( + _request(RejectTransitGatewayMulticastDomainAssociationsInput) + ) + client.reject_transit_gateway_multicast_domain_associations( + _request(RejectTransitGatewayMulticastDomainAssociationsInputDict) + ) + client.reject_transit_gateway_peering_attachment(transit_gateway_attachment_id=_) + client.reject_transit_gateway_peering_attachment( + **_request(RejectTransitGatewayPeeringAttachmentInputDict) + ) + client.reject_transit_gateway_peering_attachment( + _request(RejectTransitGatewayPeeringAttachmentInput) + ) + client.reject_transit_gateway_peering_attachment( + _request(RejectTransitGatewayPeeringAttachmentInputDict) + ) + client.reject_transit_gateway_vpc_attachment(transit_gateway_attachment_id=_) + client.reject_transit_gateway_vpc_attachment( + **_request(RejectTransitGatewayVpcAttachmentInputDict) + ) + client.reject_transit_gateway_vpc_attachment( + _request(RejectTransitGatewayVpcAttachmentInput) + ) + client.reject_transit_gateway_vpc_attachment( + _request(RejectTransitGatewayVpcAttachmentInputDict) + ) + client.reject_vpc_endpoint_connections(service_id=_, vpc_endpoint_ids=_) + client.reject_vpc_endpoint_connections( + **_request(RejectVpcEndpointConnectionsInputDict) + ) + client.reject_vpc_endpoint_connections(_request(RejectVpcEndpointConnectionsInput)) + client.reject_vpc_endpoint_connections( + _request(RejectVpcEndpointConnectionsInputDict) + ) + client.reject_vpc_peering_connection(vpc_peering_connection_id=_) + client.reject_vpc_peering_connection( + **_request(RejectVpcPeeringConnectionInputDict) + ) + client.reject_vpc_peering_connection(_request(RejectVpcPeeringConnectionInput)) + client.reject_vpc_peering_connection(_request(RejectVpcPeeringConnectionInputDict)) + client.release_address() + client.release_address(**_request(ReleaseAddressInputDict)) + client.release_address(_request(ReleaseAddressInput)) + client.release_address(_request(ReleaseAddressInputDict)) + client.release_hosts(host_ids=_) + client.release_hosts(**_request(ReleaseHostsInputDict)) + client.release_hosts(_request(ReleaseHostsInput)) + client.release_hosts(_request(ReleaseHostsInputDict)) + client.release_ipam_pool_allocation( + ipam_pool_id=_, cidr=_, ipam_pool_allocation_id=_ + ) + client.release_ipam_pool_allocation(**_request(ReleaseIpamPoolAllocationInputDict)) + client.release_ipam_pool_allocation(_request(ReleaseIpamPoolAllocationInput)) + client.release_ipam_pool_allocation(_request(ReleaseIpamPoolAllocationInputDict)) + client.replace_iam_instance_profile_association( + iam_instance_profile=_, association_id=_ + ) + client.replace_iam_instance_profile_association( + **_request(ReplaceIamInstanceProfileAssociationInputDict) + ) + client.replace_iam_instance_profile_association( + _request(ReplaceIamInstanceProfileAssociationInput) + ) + client.replace_iam_instance_profile_association( + _request(ReplaceIamInstanceProfileAssociationInputDict) + ) + client.replace_image_criteria_in_allowed_images_settings() + client.replace_image_criteria_in_allowed_images_settings( + **_request(ReplaceImageCriteriaInAllowedImagesSettingsInputDict) + ) + client.replace_image_criteria_in_allowed_images_settings( + _request(ReplaceImageCriteriaInAllowedImagesSettingsInput) + ) + client.replace_image_criteria_in_allowed_images_settings( + _request(ReplaceImageCriteriaInAllowedImagesSettingsInputDict) + ) + client.replace_image_instance_type_specification(image_id=_) + client.replace_image_instance_type_specification( + **_request(ReplaceImageInstanceTypeSpecificationInputDict) + ) + client.replace_image_instance_type_specification( + _request(ReplaceImageInstanceTypeSpecificationInput) + ) + client.replace_image_instance_type_specification( + _request(ReplaceImageInstanceTypeSpecificationInputDict) + ) + client.replace_network_acl_association(association_id=_, network_acl_id=_) + client.replace_network_acl_association( + **_request(ReplaceNetworkAclAssociationInputDict) + ) + client.replace_network_acl_association(_request(ReplaceNetworkAclAssociationInput)) + client.replace_network_acl_association( + _request(ReplaceNetworkAclAssociationInputDict) + ) + client.replace_network_acl_entry( + network_acl_id=_, rule_number=_, protocol=_, rule_action=_, egress=_ + ) + client.replace_network_acl_entry(**_request(ReplaceNetworkAclEntryInputDict)) + client.replace_network_acl_entry(_request(ReplaceNetworkAclEntryInput)) + client.replace_network_acl_entry(_request(ReplaceNetworkAclEntryInputDict)) + client.replace_route(route_table_id=_) + client.replace_route(**_request(ReplaceRouteInputDict)) + client.replace_route(_request(ReplaceRouteInput)) + client.replace_route(_request(ReplaceRouteInputDict)) + client.replace_route_table_association(association_id=_, route_table_id=_) + client.replace_route_table_association( + **_request(ReplaceRouteTableAssociationInputDict) + ) + client.replace_route_table_association(_request(ReplaceRouteTableAssociationInput)) + client.replace_route_table_association( + _request(ReplaceRouteTableAssociationInputDict) + ) + client.replace_transit_gateway_route( + destination_cidr_block=_, transit_gateway_route_table_id=_ + ) + client.replace_transit_gateway_route( + **_request(ReplaceTransitGatewayRouteInputDict) + ) + client.replace_transit_gateway_route(_request(ReplaceTransitGatewayRouteInput)) + client.replace_transit_gateway_route(_request(ReplaceTransitGatewayRouteInputDict)) + client.replace_vpn_tunnel(vpn_connection_id=_, vpn_tunnel_outside_ip_address=_) + client.replace_vpn_tunnel(**_request(ReplaceVpnTunnelInputDict)) + client.replace_vpn_tunnel(_request(ReplaceVpnTunnelInput)) + client.replace_vpn_tunnel(_request(ReplaceVpnTunnelInputDict)) + client.report_instance_status(instances=_, status=_, reason_codes=_) + client.report_instance_status(**_request(ReportInstanceStatusInputDict)) + client.report_instance_status(_request(ReportInstanceStatusInput)) + client.report_instance_status(_request(ReportInstanceStatusInputDict)) + client.request_spot_fleet(spot_fleet_request_config=_) + client.request_spot_fleet(**_request(RequestSpotFleetInputDict)) + client.request_spot_fleet(_request(RequestSpotFleetInput)) + client.request_spot_fleet(_request(RequestSpotFleetInputDict)) + client.request_spot_instances() + client.request_spot_instances(**_request(RequestSpotInstancesInputDict)) + client.request_spot_instances(_request(RequestSpotInstancesInput)) + client.request_spot_instances(_request(RequestSpotInstancesInputDict)) + client.reset_address_attribute(allocation_id=_, attribute=_) + client.reset_address_attribute(**_request(ResetAddressAttributeInputDict)) + client.reset_address_attribute(_request(ResetAddressAttributeInput)) + client.reset_address_attribute(_request(ResetAddressAttributeInputDict)) + client.reset_ebs_default_kms_key_id() + client.reset_ebs_default_kms_key_id(**_request(ResetEbsDefaultKmsKeyIdInputDict)) + client.reset_ebs_default_kms_key_id(_request(ResetEbsDefaultKmsKeyIdInput)) + client.reset_ebs_default_kms_key_id(_request(ResetEbsDefaultKmsKeyIdInputDict)) + client.reset_fpga_image_attribute(fpga_image_id=_) + client.reset_fpga_image_attribute(**_request(ResetFpgaImageAttributeInputDict)) + client.reset_fpga_image_attribute(_request(ResetFpgaImageAttributeInput)) + client.reset_fpga_image_attribute(_request(ResetFpgaImageAttributeInputDict)) + client.reset_image_attribute(attribute=_, image_id=_) + client.reset_image_attribute(**_request(ResetImageAttributeInputDict)) + client.reset_image_attribute(_request(ResetImageAttributeInput)) + client.reset_image_attribute(_request(ResetImageAttributeInputDict)) + client.reset_instance_attribute(instance_id=_, attribute=_) + client.reset_instance_attribute(**_request(ResetInstanceAttributeInputDict)) + client.reset_instance_attribute(_request(ResetInstanceAttributeInput)) + client.reset_instance_attribute(_request(ResetInstanceAttributeInputDict)) + client.reset_network_interface_attribute(network_interface_id=_) + client.reset_network_interface_attribute( + **_request(ResetNetworkInterfaceAttributeInputDict) + ) + client.reset_network_interface_attribute( + _request(ResetNetworkInterfaceAttributeInput) + ) + client.reset_network_interface_attribute( + _request(ResetNetworkInterfaceAttributeInputDict) + ) + client.reset_snapshot_attribute(attribute=_, snapshot_id=_) + client.reset_snapshot_attribute(**_request(ResetSnapshotAttributeInputDict)) + client.reset_snapshot_attribute(_request(ResetSnapshotAttributeInput)) + client.reset_snapshot_attribute(_request(ResetSnapshotAttributeInputDict)) + client.restore_address_to_classic(public_ip=_) + client.restore_address_to_classic(**_request(RestoreAddressToClassicInputDict)) + client.restore_address_to_classic(_request(RestoreAddressToClassicInput)) + client.restore_address_to_classic(_request(RestoreAddressToClassicInputDict)) + client.restore_image_from_recycle_bin(image_id=_) + client.restore_image_from_recycle_bin( + **_request(RestoreImageFromRecycleBinInputDict) + ) + client.restore_image_from_recycle_bin(_request(RestoreImageFromRecycleBinInput)) + client.restore_image_from_recycle_bin(_request(RestoreImageFromRecycleBinInputDict)) + client.restore_managed_prefix_list_version( + prefix_list_id=_, previous_version=_, current_version=_ + ) + client.restore_managed_prefix_list_version( + **_request(RestoreManagedPrefixListVersionInputDict) + ) + client.restore_managed_prefix_list_version( + _request(RestoreManagedPrefixListVersionInput) + ) + client.restore_managed_prefix_list_version( + _request(RestoreManagedPrefixListVersionInputDict) + ) + client.restore_snapshot_from_recycle_bin(snapshot_id=_) + client.restore_snapshot_from_recycle_bin( + **_request(RestoreSnapshotFromRecycleBinInputDict) + ) + client.restore_snapshot_from_recycle_bin( + _request(RestoreSnapshotFromRecycleBinInput) + ) + client.restore_snapshot_from_recycle_bin( + _request(RestoreSnapshotFromRecycleBinInputDict) + ) + client.restore_snapshot_tier(snapshot_id=_) + client.restore_snapshot_tier(**_request(RestoreSnapshotTierInputDict)) + client.restore_snapshot_tier(_request(RestoreSnapshotTierInput)) + client.restore_snapshot_tier(_request(RestoreSnapshotTierInputDict)) + client.restore_volume_from_recycle_bin(volume_id=_) + client.restore_volume_from_recycle_bin( + **_request(RestoreVolumeFromRecycleBinInputDict) + ) + client.restore_volume_from_recycle_bin(_request(RestoreVolumeFromRecycleBinInput)) + client.restore_volume_from_recycle_bin( + _request(RestoreVolumeFromRecycleBinInputDict) + ) + client.revoke_client_vpn_ingress(client_vpn_endpoint_id=_, target_network_cidr=_) + client.revoke_client_vpn_ingress(**_request(RevokeClientVpnIngressInputDict)) + client.revoke_client_vpn_ingress(_request(RevokeClientVpnIngressInput)) + client.revoke_client_vpn_ingress(_request(RevokeClientVpnIngressInputDict)) + client.revoke_security_group_egress(group_id=_) + client.revoke_security_group_egress(**_request(RevokeSecurityGroupEgressInputDict)) + client.revoke_security_group_egress(_request(RevokeSecurityGroupEgressInput)) + client.revoke_security_group_egress(_request(RevokeSecurityGroupEgressInputDict)) + client.revoke_security_group_ingress() + client.revoke_security_group_ingress( + **_request(RevokeSecurityGroupIngressInputDict) + ) + client.revoke_security_group_ingress(_request(RevokeSecurityGroupIngressInput)) + client.revoke_security_group_ingress(_request(RevokeSecurityGroupIngressInputDict)) + client.run_instances(max_count=_, min_count=_) + client.run_instances(**_request(RunInstancesInputDict)) + client.run_instances(_request(RunInstancesInput)) + client.run_instances(_request(RunInstancesInputDict)) + client.run_scheduled_instances(launch_specification=_, scheduled_instance_id=_) + client.run_scheduled_instances(**_request(RunScheduledInstancesInputDict)) + client.run_scheduled_instances(_request(RunScheduledInstancesInput)) + client.run_scheduled_instances(_request(RunScheduledInstancesInputDict)) + client.search_local_gateway_routes(local_gateway_route_table_id=_) + client.search_local_gateway_routes(**_request(SearchLocalGatewayRoutesInputDict)) + client.search_local_gateway_routes(_request(SearchLocalGatewayRoutesInput)) + client.search_local_gateway_routes(_request(SearchLocalGatewayRoutesInputDict)) + client.search_transit_gateway_multicast_groups( + transit_gateway_multicast_domain_id=_ + ) + client.search_transit_gateway_multicast_groups( + **_request(SearchTransitGatewayMulticastGroupsInputDict) + ) + client.search_transit_gateway_multicast_groups( + _request(SearchTransitGatewayMulticastGroupsInput) + ) + client.search_transit_gateway_multicast_groups( + _request(SearchTransitGatewayMulticastGroupsInputDict) + ) + client.search_transit_gateway_routes(transit_gateway_route_table_id=_, filters=_) + client.search_transit_gateway_routes( + **_request(SearchTransitGatewayRoutesInputDict) + ) + client.search_transit_gateway_routes(_request(SearchTransitGatewayRoutesInput)) + client.search_transit_gateway_routes(_request(SearchTransitGatewayRoutesInputDict)) + client.send_diagnostic_interrupt(instance_id=_) + client.send_diagnostic_interrupt(**_request(SendDiagnosticInterruptInputDict)) + client.send_diagnostic_interrupt(_request(SendDiagnosticInterruptInput)) + client.send_diagnostic_interrupt(_request(SendDiagnosticInterruptInputDict)) + client.start_declarative_policies_report(s3_bucket=_, target_id=_) + client.start_declarative_policies_report( + **_request(StartDeclarativePoliciesReportInputDict) + ) + client.start_declarative_policies_report( + _request(StartDeclarativePoliciesReportInput) + ) + client.start_declarative_policies_report( + _request(StartDeclarativePoliciesReportInputDict) + ) + client.start_instances(instance_ids=_) + client.start_instances(**_request(StartInstancesInputDict)) + client.start_instances(_request(StartInstancesInput)) + client.start_instances(_request(StartInstancesInputDict)) + client.start_network_insights_access_scope_analysis( + network_insights_access_scope_id=_ + ) + client.start_network_insights_access_scope_analysis( + **_request(StartNetworkInsightsAccessScopeAnalysisInputDict) + ) + client.start_network_insights_access_scope_analysis( + _request(StartNetworkInsightsAccessScopeAnalysisInput) + ) + client.start_network_insights_access_scope_analysis( + _request(StartNetworkInsightsAccessScopeAnalysisInputDict) + ) + client.start_network_insights_analysis(network_insights_path_id=_) + client.start_network_insights_analysis( + **_request(StartNetworkInsightsAnalysisInputDict) + ) + client.start_network_insights_analysis(_request(StartNetworkInsightsAnalysisInput)) + client.start_network_insights_analysis( + _request(StartNetworkInsightsAnalysisInputDict) + ) + client.start_vpc_endpoint_service_private_dns_verification(service_id=_) + client.start_vpc_endpoint_service_private_dns_verification( + **_request(StartVpcEndpointServicePrivateDnsVerificationInputDict) + ) + client.start_vpc_endpoint_service_private_dns_verification( + _request(StartVpcEndpointServicePrivateDnsVerificationInput) + ) + client.start_vpc_endpoint_service_private_dns_verification( + _request(StartVpcEndpointServicePrivateDnsVerificationInputDict) + ) + client.stop_instances(instance_ids=_) + client.stop_instances(**_request(StopInstancesInputDict)) + client.stop_instances(_request(StopInstancesInput)) + client.stop_instances(_request(StopInstancesInputDict)) + client.terminate_client_vpn_connections(client_vpn_endpoint_id=_) + client.terminate_client_vpn_connections( + **_request(TerminateClientVpnConnectionsInputDict) + ) + client.terminate_client_vpn_connections( + _request(TerminateClientVpnConnectionsInput) + ) + client.terminate_client_vpn_connections( + _request(TerminateClientVpnConnectionsInputDict) + ) + client.terminate_instances(instance_ids=_) + client.terminate_instances(**_request(TerminateInstancesInputDict)) + client.terminate_instances(_request(TerminateInstancesInput)) + client.terminate_instances(_request(TerminateInstancesInputDict)) + client.unassign_ipv6_addresses(network_interface_id=_) + client.unassign_ipv6_addresses(**_request(UnassignIpv6AddressesInputDict)) + client.unassign_ipv6_addresses(_request(UnassignIpv6AddressesInput)) + client.unassign_ipv6_addresses(_request(UnassignIpv6AddressesInputDict)) + client.unassign_private_ip_addresses(network_interface_id=_) + client.unassign_private_ip_addresses( + **_request(UnassignPrivateIpAddressesInputDict) + ) + client.unassign_private_ip_addresses(_request(UnassignPrivateIpAddressesInput)) + client.unassign_private_ip_addresses(_request(UnassignPrivateIpAddressesInputDict)) + client.unassign_private_nat_gateway_address( + nat_gateway_id=_, private_ip_addresses=_ + ) + client.unassign_private_nat_gateway_address( + **_request(UnassignPrivateNatGatewayAddressInputDict) + ) + client.unassign_private_nat_gateway_address( + _request(UnassignPrivateNatGatewayAddressInput) + ) + client.unassign_private_nat_gateway_address( + _request(UnassignPrivateNatGatewayAddressInputDict) + ) + client.unlock_snapshot(snapshot_id=_) + client.unlock_snapshot(**_request(UnlockSnapshotInputDict)) + client.unlock_snapshot(_request(UnlockSnapshotInput)) + client.unlock_snapshot(_request(UnlockSnapshotInputDict)) + client.unmonitor_instances(instance_ids=_) + client.unmonitor_instances(**_request(UnmonitorInstancesInputDict)) + client.unmonitor_instances(_request(UnmonitorInstancesInput)) + client.unmonitor_instances(_request(UnmonitorInstancesInputDict)) + client.update_capacity_manager_monitored_tag_keys() + client.update_capacity_manager_monitored_tag_keys( + **_request(UpdateCapacityManagerMonitoredTagKeysInputDict) + ) + client.update_capacity_manager_monitored_tag_keys( + _request(UpdateCapacityManagerMonitoredTagKeysInput) + ) + client.update_capacity_manager_monitored_tag_keys( + _request(UpdateCapacityManagerMonitoredTagKeysInputDict) + ) + client.update_capacity_manager_organizations_access(organizations_access=_) + client.update_capacity_manager_organizations_access( + **_request(UpdateCapacityManagerOrganizationsAccessInputDict) + ) + client.update_capacity_manager_organizations_access( + _request(UpdateCapacityManagerOrganizationsAccessInput) + ) + client.update_capacity_manager_organizations_access( + _request(UpdateCapacityManagerOrganizationsAccessInputDict) + ) + client.update_interruptible_capacity_reservation_allocation( + capacity_reservation_id=_ + ) + client.update_interruptible_capacity_reservation_allocation( + **_request(UpdateInterruptibleCapacityReservationAllocationInputDict) + ) + client.update_interruptible_capacity_reservation_allocation( + _request(UpdateInterruptibleCapacityReservationAllocationInput) + ) + client.update_interruptible_capacity_reservation_allocation( + _request(UpdateInterruptibleCapacityReservationAllocationInputDict) + ) + client.update_security_group_rule_descriptions_egress() + client.update_security_group_rule_descriptions_egress( + **_request(UpdateSecurityGroupRuleDescriptionsEgressInputDict) + ) + client.update_security_group_rule_descriptions_egress( + _request(UpdateSecurityGroupRuleDescriptionsEgressInput) + ) + client.update_security_group_rule_descriptions_egress( + _request(UpdateSecurityGroupRuleDescriptionsEgressInputDict) + ) + client.update_security_group_rule_descriptions_ingress() + client.update_security_group_rule_descriptions_ingress( + **_request(UpdateSecurityGroupRuleDescriptionsIngressInputDict) + ) + client.update_security_group_rule_descriptions_ingress( + _request(UpdateSecurityGroupRuleDescriptionsIngressInput) + ) + client.update_security_group_rule_descriptions_ingress( + _request(UpdateSecurityGroupRuleDescriptionsIngressInputDict) + ) + client.validate_security_group_quotas_for_interface(security_group_ids=_) + client.validate_security_group_quotas_for_interface( + **_request(ValidateSecurityGroupQuotasForInterfaceInputDict) + ) + client.validate_security_group_quotas_for_interface( + _request(ValidateSecurityGroupQuotasForInterfaceInput) + ) + client.validate_security_group_quotas_for_interface( + _request(ValidateSecurityGroupQuotasForInterfaceInputDict) + ) + client.withdraw_byoip_cidr(cidr=_) + client.withdraw_byoip_cidr(**_request(WithdrawByoipCidrInputDict)) + client.withdraw_byoip_cidr(_request(WithdrawByoipCidrInput)) + client.withdraw_byoip_cidr(_request(WithdrawByoipCidrInputDict)) diff --git a/clients/aws-sdk-ecs/pyproject.toml b/clients/aws-sdk-ecs/pyproject.toml index 9c34d1312..dfcb21b71 100644 --- a/clients/aws-sdk-ecs/pyproject.toml +++ b/clients/aws-sdk-ecs/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_0.pyi b/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_0.pyi index 06487cac9..61e833f2d 100644 --- a/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_0.pyi +++ b/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,28 +13,43 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( GatewayConnectorHealthCheckMatcher, + GatewayConnectorHealthCheckMatcherDict, GatewayElbAccessLogConfiguration, GatewayElbNetworkConfiguration, GatewayResourceFailure, GatewayResources, GatewayRoute, GatewayTestTrafficHeader, + GatewayTestTrafficHeaderDict, GpuDevice, HealthCheck, + HealthCheckDict, HostEntry, + HostEntryDict, HostSharedAlbConfiguration, + HostSharedAlbConfigurationDict, HostVolumeProperties, + HostVolumePropertiesDict, InfrastructureOptimization, + InfrastructureOptimizationDict, IngressPathSummary, InstanceHealthCheckResult, InstanceLaunchTemplate, + InstanceLaunchTemplateDict, KernelCapabilities, + KernelCapabilitiesDict, KeyValuePair, + KeyValuePairDict, LinearConfiguration, + LinearConfigurationDict, LinuxParameters, + LinuxParametersDict, LoadBalancer, + LoadBalancerDict, LogConfiguration, + LogConfigurationDict, LogDriverVolumeConfiguration, + LogDriverVolumeConfigurationDict, ManagedAgent, ManagedAutoScaling, ManagedIngressPath, @@ -41,43 +57,66 @@ from ..models import ( ManagedLogGroup, ManagedMetricAlarm, ManagedScaling, + ManagedScalingDict, ManagedSecurityGroup, ManagedStorageConfiguration, + ManagedStorageConfigurationDict, MonitoringConfiguration, + MonitoringConfigurationDict, MountPoint, + MountPointDict, NetworkBinding, + NetworkBindingDict, NetworkConfiguration, + NetworkConfigurationDict, NetworkInterface, PlacementConstraint, + PlacementConstraintDict, PlacementStrategy, + PlacementStrategyDict, PortMapping, + PortMappingDict, RepositoryCredentials, + RepositoryCredentialsDict, Resource, ResourceRequirement, + ResourceRequirementDict, Scale, + ScaleDict, Secret, + SecretDict, Service, ServiceConnectConfiguration, + ServiceConnectConfigurationDict, ServiceConnectServiceResource, ServiceDeployment, ServiceError, ServiceRegistry, + ServiceRegistryDict, ServiceRevision, ServiceVolumeConfiguration, + ServiceVolumeConfigurationDict, Session, Setting, SharingStrategy, SystemControl, + SystemControlDict, Tag, + TagDict, Task, TaskDefinition, TaskSet, ThresholdConfiguration, + ThresholdConfigurationDict, Tmpfs, + TmpfsDict, Ulimit, + UlimitDict, VersionInfo, VolumeFrom, + VolumeFromDict, VpcLatticeConfiguration, + VpcLatticeConfigurationDict, _SerdeShape, ) @@ -100,6 +139,20 @@ class AcceleratorCountRequest(_SerdeShape): accelerators are excluded from selection. """ +class AcceleratorCountRequestDict(TypedDict, total=False): + """Dictionary form of `AcceleratorCountRequest`.""" + + min: int | None + """ + The minimum number of accelerators. Instance types with fewer + accelerators are excluded from selection. + """ + max: int | None + """ + The maximum number of accelerators. Instance types with more + accelerators are excluded from selection. + """ + class AcceleratorManufacturer(UnknownEnumMixin, StrEnum): AMAZON_WEB_SERVICES = "amazon-web-services" AMD = "amd" @@ -142,6 +195,20 @@ class AcceleratorTotalMemoryMiBRequest(_SerdeShape): accelerator memory are excluded from selection. """ +class AcceleratorTotalMemoryMiBRequestDict(TypedDict, total=False): + """Dictionary form of `AcceleratorTotalMemoryMiBRequest`.""" + + min: int | None + """ + The minimum total accelerator memory in MiB. Instance types with less + accelerator memory are excluded from selection. + """ + max: int | None + """ + The maximum total accelerator memory in MiB. Instance types with more + accelerator memory are excluded from selection. + """ + class AcceleratorType(UnknownEnumMixin, StrEnum): GPU = "gpu" FPGA = "fpga" @@ -206,6 +273,34 @@ class AdvancedConfiguration(_SerdeShape): permission to call the Elastic Load Balancing APIs for you. """ +class AdvancedConfigurationDict(TypedDict, total=False): + """Dictionary form of `AdvancedConfiguration`.""" + + alternate_target_group_arn: str | None + """ + The Amazon Resource Name (ARN) of the alternate target group for Amazon + ECS blue/green deployments. + """ + production_listener_rule: str | None + """ + The Amazon Resource Name (ARN) that that identifies the production + listener rule (in the case of an Application Load Balancer) or listener + (in the case for an Network Load Balancer) for routing production + traffic. + """ + test_listener_rule: str | None + """ + The Amazon Resource Name (ARN) that identifies ) that identifies the + test listener rule (in the case of an Application Load Balancer) or + listener (in the case for an Network Load Balancer) for routing test + traffic. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that grants Amazon ECS + permission to call the Elastic Load Balancing APIs for you. + """ + class AgentUpdateStatus(UnknownEnumMixin, StrEnum): PENDING = "PENDING" STAGING = "STAGING" @@ -235,6 +330,17 @@ class AssociateGatewayWithClusterInput(_SerdeShape): gateway with. """ +class AssociateGatewayWithClusterInputDict(TypedDict, total=False): + """Dictionary form of `AssociateGatewayWithClusterInput`.""" + + gateway: Required[str] + """The name or Amazon Resource Name (ARN) of the gateway to associate.""" + cluster: Required[str] + """ + The name or Amazon Resource Name (ARN) of the cluster to associate the + gateway with. + """ + @dataclass(kw_only=True) class AssociateGatewayWithClusterOutput(_SerdeShape): """Dataclass for AssociateGatewayWithClusterOutput structure.""" @@ -294,6 +400,14 @@ class AttachmentStateChange(_SerdeShape): status: str """The status of the attachment.""" +class AttachmentStateChangeDict(TypedDict, total=False): + """Dictionary form of `AttachmentStateChange`.""" + + attachment_arn: Required[str] + """The Amazon Resource Name (ARN) of the attachment.""" + status: Required[str] + """The status of the attachment.""" + class AttestationPolicyStatus(UnknownEnumMixin, StrEnum): """ The status of the attestation policy for a task that uses the @@ -340,6 +454,36 @@ class Attribute(_SerdeShape): or the full Amazon Resource Name (ARN). """ +class AttributeDict(TypedDict, total=False): + """Dictionary form of `Attribute`.""" + + name: Required[str] + """ + The name of the attribute. The `name` must contain between 1 and 128 + characters. The name may contain letters (uppercase and lowercase), + numbers, hyphens (-), underscores (_), forward slashes (/), back + slashes (\\), or periods (.). + """ + value: str | None + """ + The value of the attribute. The `value` must contain between 1 and 128 + characters. It can contain letters (uppercase and lowercase), numbers, + hyphens (-), underscores (_), periods (.), at signs (@), forward + slashes (/), back slashes (\\), colons (:), or spaces. The value can't + start or end with a space. + """ + target_type: str | None + """ + The type of the target to attach the attribute with. This parameter is + required if you use the short form ID for a resource instead of the full + ARN. + """ + target_id: str | None + """ + The ID of the target. You can specify the short form ID for a resource + or the full Amazon Resource Name (ARN). + """ + @dataclass(kw_only=True) class AttributeLimitExceededException(ServiceError, _SerdeShape): """ @@ -381,6 +525,18 @@ class AutoRepairConfiguration(_SerdeShape): impaired instances. """ +class AutoRepairConfigurationDict(TypedDict, total=False): + """Dictionary form of `AutoRepairConfiguration`.""" + + actions_status: str | None + """ + The status of auto repair actions for the capacity provider. When set to + `ENABLED`, Amazon ECS automatically replaces container instances with an + `IMPAIRED` health status. When set to `DISABLED`, Amazon ECS still + monitors container instance health but does not automatically replace + impaired instances. + """ + @dataclass(kw_only=True) class AutoScalingGroupProvider(_SerdeShape): """The details of the Auto Scaling group for the capacity provider.""" @@ -425,6 +581,49 @@ class AutoScalingGroupProvider(_SerdeShape): provider. """ +class AutoScalingGroupProviderDict(TypedDict, total=False): + """Dictionary form of `AutoScalingGroupProvider`.""" + + auto_scaling_group_arn: Required[str] + """ + The Amazon Resource Name (ARN) that identifies the Auto Scaling group, + or the Auto Scaling group name. + """ + managed_scaling: ManagedScaling | ManagedScalingDict | None + """ + The managed scaling settings for the Auto Scaling group capacity + provider. + """ + managed_termination_protection: str | None + """ + The managed termination protection setting to use for the Auto Scaling + group capacity provider. This determines whether the Auto Scaling group + has managed termination protection. The default is off. + + Warning: + When using managed termination protection, managed scaling must also be + used otherwise managed termination protection doesn't work. + + When managed termination protection is on, Amazon ECS prevents the + Amazon EC2 instances in an Auto Scaling group that contain tasks from + being terminated during a scale-in action. The Auto Scaling group and + each instance in the Auto Scaling group must have instance protection + from scale-in actions on as well. For more information, see [Instance + Protection](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) + in the *Auto Scaling User Guide*. + + When managed termination protection is off, your Amazon EC2 instances + aren't protected from termination when the Auto Scaling group scales + in. + """ + managed_draining: str | None + """ + The managed draining option for the Auto Scaling group capacity + provider. When you enable this, Amazon ECS manages and gracefully drains + the EC2 container instances that are in the Auto Scaling group capacity + provider. + """ + @dataclass(kw_only=True) class AutoScalingGroupProviderUpdate(_SerdeShape): """The details of the Auto Scaling group capacity provider to update.""" @@ -464,6 +663,44 @@ class AutoScalingGroupProviderUpdate(_SerdeShape): provider. """ +class AutoScalingGroupProviderUpdateDict(TypedDict, total=False): + """Dictionary form of `AutoScalingGroupProviderUpdate`.""" + + managed_scaling: ManagedScaling | ManagedScalingDict | None + """ + The managed scaling settings for the Auto Scaling group capacity + provider. + """ + managed_termination_protection: str | None + """ + The managed termination protection setting to use for the Auto Scaling + group capacity provider. This determines whether the Auto Scaling group + has managed termination protection. + + Warning: + When using managed termination protection, managed scaling must also be + used otherwise managed termination protection doesn't work. + + When managed termination protection is on, Amazon ECS prevents the + Amazon EC2 instances in an Auto Scaling group that contain tasks from + being terminated during a scale-in action. The Auto Scaling group and + each instance in the Auto Scaling group must have instance protection + from scale-in actions on. For more information, see [Instance + Protection](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) + in the *Auto Scaling User Guide*. + + When managed termination protection is off, your Amazon EC2 instances + aren't protected from termination when the Auto Scaling group scales + in. + """ + managed_draining: str | None + """ + The managed draining option for the Auto Scaling group capacity + provider. When you enable this, Amazon ECS manages and gracefully drains + the EC2 container instances that are in the Auto Scaling group capacity + provider. + """ + class AvailabilityZoneRebalancing(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -508,6 +745,41 @@ class AwsVpcConfiguration(_SerdeShape): `DISABLED`. """ +class AwsVpcConfigurationDict(TypedDict, total=False): + """Dictionary form of `AwsVpcConfiguration`.""" + + subnets: Required[Sequence[str]] + """ + The IDs of the subnets associated with the task or service. There's a + limit of 16 subnets that can be specified. + + Note: + All specified subnets must be from the same VPC. + """ + security_groups: Sequence[str] | None + """ + The IDs of the security groups associated with the task or service. If + you don't specify a security group, the default security group for the + VPC is used. There's a limit of 5 security groups that can be + specified. + + Note: + All specified security groups must be from the same VPC. + """ + assign_public_ip: str | None + """ + Whether the task's elastic network interface receives a public IP + address. + + Consider the following when you set this value: + + - When you use `create-service` or `update-service`, the default is + `DISABLED`. + + - When the service `deploymentController` is `ECS`, the value must be + `DISABLED`. + """ + class BareMetal(UnknownEnumMixin, StrEnum): INCLUDED = "included" REQUIRED = "required" @@ -532,6 +804,20 @@ class BaselineEbsBandwidthMbpsRequest(_SerdeShape): higher Amazon EBS bandwidth are excluded from selection. """ +class BaselineEbsBandwidthMbpsRequestDict(TypedDict, total=False): + """Dictionary form of `BaselineEbsBandwidthMbpsRequest`.""" + + min: int | None + """ + The minimum baseline Amazon EBS bandwidth in Mbps. Instance types with + lower Amazon EBS bandwidth are excluded from selection. + """ + max: int | None + """ + The maximum baseline Amazon EBS bandwidth in Mbps. Instance types with + higher Amazon EBS bandwidth are excluded from selection. + """ + @dataclass(kw_only=True) class BlockedException(ServiceError, _SerdeShape): """ @@ -578,6 +864,22 @@ class CanaryConfiguration(_SerdeShape): Valid values are 0 to 1440 minutes (24 hours). The default value is 10. """ +class CanaryConfigurationDict(TypedDict, total=False): + """Dictionary form of `CanaryConfiguration`.""" + + canary_percent: float | None + """ + The percentage of production traffic to shift to the new service + revision during the canary phase. Valid values are multiples of 0.1 from + 0.1 to 100.0. The default value is 5.0. + """ + canary_bake_time_in_minutes: int | None + """ + The amount of time in minutes to wait during the canary phase before + shifting the remaining production traffic to the new service revision. + Valid values are 0 to 1440 minutes (24 hours). The default value is 10. + """ + class CapacityOptionType(UnknownEnumMixin, StrEnum): ON_DEMAND = "ON_DEMAND" SPOT = "SPOT" @@ -620,17 +922,17 @@ class CapacityProvider(_SerdeShape): DELETE_IN_PROGRESS - : The capacity provider is in the process of being deleted. + : The capacity provider is in the process of being deleted. DELETE_COMPLETE - : The capacity provider was successfully deleted and has an `INACTIVE` - status. + : The capacity provider was successfully deleted and has an `INACTIVE` + status. DELETE_FAILED - : The capacity provider can't be deleted. The update status reason - provides further details about why the delete failed. + : The capacity provider can't be deleted. The update status reason + provides further details about why the delete failed. """ update_status_reason: str | None = ... """ @@ -787,45 +1089,139 @@ class CapacityProviderStrategyItem(_SerdeShape): - Base requirements are satisfied first before weight distribution """ -class CapacityProviderType(UnknownEnumMixin, StrEnum): - EC2_AUTOSCALING = "EC2_AUTOSCALING" - MANAGED_INSTANCES = "MANAGED_INSTANCES" - FARGATE = "FARGATE" - FARGATE_SPOT = "FARGATE_SPOT" - -class CapacityProviderUpdateStatus(UnknownEnumMixin, StrEnum): - CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS" - CREATE_COMPLETE = "CREATE_COMPLETE" - CREATE_FAILED = "CREATE_FAILED" - DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS" - DELETE_COMPLETE = "DELETE_COMPLETE" - DELETE_FAILED = "DELETE_FAILED" - UPDATE_IN_PROGRESS = "UPDATE_IN_PROGRESS" - UPDATE_COMPLETE = "UPDATE_COMPLETE" - UPDATE_FAILED = "UPDATE_FAILED" - -class CapacityReservationPreference(UnknownEnumMixin, StrEnum): - RESERVATIONS_ONLY = "RESERVATIONS_ONLY" - RESERVATIONS_FIRST = "RESERVATIONS_FIRST" - RESERVATIONS_EXCLUDED = "RESERVATIONS_EXCLUDED" +class CapacityProviderStrategyItemDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderStrategyItem`.""" -@dataclass(kw_only=True) -class CapacityReservationRequest(_SerdeShape): - """ - The Capacity Reservation configurations to be used when using the - `RESERVED` capacity option type. + capacity_provider: Required[str] + """The short name of the capacity provider.""" + weight: int | None """ + The *weight* value designates the relative percentage of the total + number of tasks launched that should use the specified capacity + provider. The `weight` value is taken into consideration after the + `base` value, if defined, is satisfied. - reservation_group_arn: str | None = ... - """ - The ARN of the Capacity Reservation resource group in which to run the - instance. - """ - reservation_preference: str | None = ... - """ - The preference on when capacity reservations should be used. + If no `weight` value is specified, the default value of `0` is used. + When multiple capacity providers are specified within a capacity + provider strategy, at least one of the capacity providers must have a + weight value greater than zero and any capacity providers with a weight + of `0` can't be used to place tasks. If you specify multiple capacity + providers in a strategy that all have a weight of `0`, any `RunTask` or + `CreateService` actions using the capacity provider strategy will fail. - Valid values are: + Weight value characteristics: + + - Weight is considered after the base value is satisfied + + - The default value is `0` if not specified + + - The valid range is 0 to 1,000 + + - At least one capacity provider must have a weight greater than zero + + - Capacity providers with weight of `0` cannot place tasks + + Task distribution logic: + + 1. Base satisfaction: The minimum number of tasks specified by the base + value are placed on that capacity provider + + 2. Weight distribution: After base requirements are met, additional + tasks are distributed according to weight ratios + + Examples: + + Equal Distribution: Two capacity providers both with weight `1` will + split tasks evenly after base requirements are met. + + Weighted Distribution: If capacityProviderA has weight `1` and + capacityProviderB has weight `4`, then for every 1 task on A, 4 tasks + will run on B. + """ + base: int | None + """ + The *base* value designates how many tasks, at a minimum, to run on the + specified capacity provider for each service. Only one capacity provider + in a capacity provider strategy can have a *base* defined. If no value + is specified, the default value of `0` is used. + + Base value characteristics: + + - Only one capacity provider in a strategy can have a base defined + + - The default value is `0` if not specified + + - The valid range is 0 to 100,000 + + - Base requirements are satisfied first before weight distribution + """ + +class CapacityProviderType(UnknownEnumMixin, StrEnum): + EC2_AUTOSCALING = "EC2_AUTOSCALING" + MANAGED_INSTANCES = "MANAGED_INSTANCES" + FARGATE = "FARGATE" + FARGATE_SPOT = "FARGATE_SPOT" + +class CapacityProviderUpdateStatus(UnknownEnumMixin, StrEnum): + CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS" + CREATE_COMPLETE = "CREATE_COMPLETE" + CREATE_FAILED = "CREATE_FAILED" + DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS" + DELETE_COMPLETE = "DELETE_COMPLETE" + DELETE_FAILED = "DELETE_FAILED" + UPDATE_IN_PROGRESS = "UPDATE_IN_PROGRESS" + UPDATE_COMPLETE = "UPDATE_COMPLETE" + UPDATE_FAILED = "UPDATE_FAILED" + +class CapacityReservationPreference(UnknownEnumMixin, StrEnum): + RESERVATIONS_ONLY = "RESERVATIONS_ONLY" + RESERVATIONS_FIRST = "RESERVATIONS_FIRST" + RESERVATIONS_EXCLUDED = "RESERVATIONS_EXCLUDED" + +@dataclass(kw_only=True) +class CapacityReservationRequest(_SerdeShape): + """ + The Capacity Reservation configurations to be used when using the + `RESERVED` capacity option type. + """ + + reservation_group_arn: str | None = ... + """ + The ARN of the Capacity Reservation resource group in which to run the + instance. + """ + reservation_preference: str | None = ... + """ + The preference on when capacity reservations should be used. + + Valid values are: + + - `RESERVATIONS_ONLY` - Exclusively launch instances into capacity + reservations that match the instance requirements configured for the + capacity provider. If none exist, instances will fail to provision. + + - `RESERVATIONS_FIRST` - Prefer to launch instances into a capacity + reservation if any exist that match the instance requirements + configured for the capacity provider. If none exist, fall back to + launching instances On-Demand. + + - `RESERVATIONS_EXCLUDED` - Avoid using capacity reservations and launch + exclusively On-Demand. + """ + +class CapacityReservationRequestDict(TypedDict, total=False): + """Dictionary form of `CapacityReservationRequest`.""" + + reservation_group_arn: str | None + """ + The ARN of the Capacity Reservation resource group in which to run the + instance. + """ + reservation_preference: str | None + """ + The preference on when capacity reservations should be used. + + Valid values are: - `RESERVATIONS_ONLY` - Exclusively launch instances into capacity reservations that match the instance requirements configured for the @@ -884,30 +1280,31 @@ class Cluster(_SerdeShape): ACTIVE - : The cluster is ready to accept tasks and if applicable you can - register container instances with the cluster. + : The cluster is ready to accept tasks and if applicable you can + register container instances with the cluster. PROVISIONING - : The cluster has capacity providers that are associated with it and the - resources needed for the capacity provider are being created. + : The cluster has capacity providers that are associated with it and + the resources needed for the capacity provider are being created. DEPROVISIONING - : The cluster has capacity providers that are associated with it and the - resources needed for the capacity provider are being deleted. + : The cluster has capacity providers that are associated with it and + the resources needed for the capacity provider are being deleted. FAILED - : The cluster has capacity providers that are associated with it and the - resources needed for the capacity provider have failed to create. + : The cluster has capacity providers that are associated with it and + the resources needed for the capacity provider have failed to + create. INACTIVE - : The cluster has been deleted. Clusters with an `INACTIVE` status may - remain discoverable in your account for a period of time. However, - this behavior is subject to change in the future. We don't recommend - that you rely on `INACTIVE` clusters persisting. + : The cluster has been deleted. Clusters with an `INACTIVE` status may + remain discoverable in your account for a period of time. However, + this behavior is subject to change in the future. We don't + recommend that you rely on `INACTIVE` clusters persisting. """ registered_container_instances_count: int = ... """ @@ -1002,15 +1399,15 @@ class Cluster(_SerdeShape): UPDATE_IN_PROGRESS - : The available capacity providers for the cluster are updating. + : The available capacity providers for the cluster are updating. UPDATE_COMPLETE - : The capacity providers have successfully updated. + : The capacity providers have successfully updated. UPDATE_FAILED - : The capacity provider updates failed. + : The capacity provider updates failed. """ service_connect_defaults: ClusterServiceConnectDefaults | None = ... """ @@ -1042,6 +1439,18 @@ class ClusterConfiguration(_SerdeShape): managed_storage_configuration: ManagedStorageConfiguration | None = ... """The details of the managed storage configuration.""" +class ClusterConfigurationDict(TypedDict, total=False): + """Dictionary form of `ClusterConfiguration`.""" + + execute_command_configuration: ( + ExecuteCommandConfiguration | ExecuteCommandConfigurationDict | None + ) + """The details of the execute command configuration.""" + managed_storage_configuration: ( + ManagedStorageConfiguration | ManagedStorageConfigurationDict | None + ) + """The details of the managed storage configuration.""" + @dataclass(kw_only=True) class ClusterContainsCapacityProviderException(ServiceError, _SerdeShape): """ @@ -1211,6 +1620,37 @@ class ClusterServiceConnectDefaultsRequest(_SerdeShape): in the *Cloud Map Developer Guide*. """ +class ClusterServiceConnectDefaultsRequestDict(TypedDict, total=False): + """Dictionary form of `ClusterServiceConnectDefaultsRequest`.""" + + namespace: Required[str] + """ + The namespace name or full Amazon Resource Name (ARN) of the Cloud Map + namespace that's used when you create a service and don't specify a + Service Connect configuration. The namespace name can include up to 1024 + characters. The name is case-sensitive. The name can't include greater + than (>), less than (<), double quotation marks (\"), or slash (/). + + If you enter an existing namespace name or ARN, then that namespace will + be used. Any namespace type is supported. The namespace must be in this + account and this Amazon Web Services Region. + + If you enter a new name, a Cloud Map namespace will be created. Amazon + ECS creates a Cloud Map namespace with the \"API calls\" method of + instance discovery only. This instance discovery method is the \"HTTP\" + namespace type in the Command Line Interface. Other types of instance + discovery aren't used by Service Connect. + + If you update the cluster with an empty string `""` for the namespace + name, the cluster configuration for Service Connect is removed. Note + that the namespace will remain in Cloud Map and must be deleted + separately. + + For more information about Cloud Map, see [Working with + Services](https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html) + in the *Cloud Map Developer Guide*. + """ + @dataclass(kw_only=True) class ClusterSetting(_SerdeShape): """ @@ -1254,6 +1694,29 @@ class ClusterSetting(_SerdeShape): [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html). """ +class ClusterSettingDict(TypedDict, total=False): + """Dictionary form of `ClusterSetting`.""" + + name: str | None + """The name of the cluster setting. The value is `containerInsights`.""" + value: str | None + """ + The value to set for the cluster setting. The supported values are + `enhanced`, `enabled`, and `disabled`. + + To use Container Insights with enhanced observability, set the + `containerInsights` account setting to `enhanced`. + + To use Container Insights, set the `containerInsights` account setting + to `enabled`. + + If a cluster value is specified, it will override the + `containerInsights` value set with + [PutAccountSetting](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html) + or + [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html). + """ + class ClusterSettingName(UnknownEnumMixin, StrEnum): CONTAINER_INSIGHTS = "containerInsights" @@ -2063,23 +2526,23 @@ class ContainerDefinition(_SerdeShape): credentialspecdomainless:MyARN - : You use `credentialspecdomainless:MyARN` to provide a `CredSpec` with - an additional section for a secret in Secrets Manager. You provide the - login credentials to the domain in the secret. + : You use `credentialspecdomainless:MyARN` to provide a `CredSpec` + with an additional section for a secret in Secrets Manager. You + provide the login credentials to the domain in the secret. - Each task that runs on any container instance can join different - domains. + Each task that runs on any container instance can join different + domains. - You can use this format without joining the container instance to a - domain. + You can use this format without joining the container instance to a + domain. credentialspec:MyARN - : You use `credentialspec:MyARN` to provide a `CredSpec` for a single - domain. + : You use `credentialspec:MyARN` to provide a `CredSpec` for a single + domain. - You must join the container instance to the domain before you start - any tasks that use this task definition. + You must join the container instance to the domain before you start + any tasks that use this task definition. In both formats, replace `MyARN` with the ARN in SSM or Amazon S3. @@ -2096,224 +2559,1766 @@ class ContainerDefinition(_SerdeShape): Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html). """ -@dataclass(kw_only=True) -class ContainerDependency(_SerdeShape): +class ContainerDefinitionDict(TypedDict, total=False): + """Dictionary form of `ContainerDefinition`.""" + + name: str | None """ - The dependencies defined for container startup and shutdown. A container - can contain multiple dependencies. When a dependency is defined for - container startup, for container shutdown it is reversed. + The name of a container. If you're linking multiple containers together + in a task definition, the `name` of one container can be entered in the + `links` of another container to connect the containers. Up to 255 + letters (uppercase and lowercase), numbers, underscores, and hyphens are + allowed. This parameter maps to `name` in the docker container create + command and the `--name` option to docker run. + """ + image: str | None + """ + The image used to start a container. This string is passed directly to + the Docker daemon. By default, images in the Docker Hub registry are + available. Other repositories are specified with either + ` `*`repository-url`*`/`*`image`*`:`*`tag`*` ` or + ` `*`repository-url`*`/`*`image`*`@`*`digest`*` `. For images using tags + (repository-url/image:tag), up to 255 characters total are allowed, + including letters (uppercase and lowercase), numbers, hyphens, + underscores, colons, periods, forward slashes, and number signs (#). For + images using digests (repository-url/image@digest), the 255 character + limit applies only to the repository URL and image name (everything + before the @ sign). The only supported hash function is sha256, and the + hash value after sha256: must be exactly 64 characters (only letters + A-F, a-f, and numbers 0-9 are allowed). This parameter maps to `Image` + in the docker container create command and the `IMAGE` parameter of + docker run. - Your Amazon ECS container instances require at least version 1.26.0 of - the container agent to use container dependencies. However, we recommend - using the latest container agent version. For information about checking - your agent version and updating to the latest version, see [Updating the - Amazon ECS Container - Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) - in the *Amazon Elastic Container Service Developer Guide*. If you're - using an Amazon ECS-optimized Linux AMI, your instance needs at least - version 1.26.0-1 of the `ecs-init` package. If your container instances - are launched from version `20190301` or later, then they contain the - required versions of the container agent and `ecs-init`. For more - information, see [Amazon ECS-optimized Linux - AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) - in the *Amazon Elastic Container Service Developer Guide*. + - When a new task starts, the Amazon ECS container agent pulls the + latest version of the specified image and tag for the container to + use. However, subsequent updates to a repository image aren't + propagated to already running tasks. - Note: - For tasks that use the Fargate launch type, the task or service requires - the following platforms: + - Images in Amazon ECR repositories can be specified by either using the + full `registry/repository:tag` or `registry/repository@digest`. For + example, + `012345678910.dkr.ecr..amazonaws.com/:latest` + or + `012345678910.dkr.ecr..amazonaws.com/@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE`. - - Linux platform version `1.3.0` or later. + - Images in official repositories on Docker Hub use a single name (for + example, `ubuntu` or `mongo`). - - Windows platform version `1.0.0` or later. + - Images in other repositories on Docker Hub are qualified with an + organization name (for example, `amazon/amazon-ecs-agent`). - For more information about how to create a container dependency, see - [Container - dependency](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/example_task_definitions.html#example_task_definition-containerdependency) - in the *Amazon Elastic Container Service Developer Guide*. + - Images in other online repositories are qualified further by a domain + name (for example, `quay.io/assemblyline/ubuntu`). """ - - container_name: str - """The name of a container.""" - condition: str + repository_credentials: RepositoryCredentials | RepositoryCredentialsDict | None + """The private repository authentication credentials to use.""" + cpu: int | None """ - The dependency condition of the container. The following are the - available conditions and their behavior: - - - `START` - This condition emulates the behavior of links and volumes - today. It validates that a dependent container is started before - permitting other containers to start. + The number of `cpu` units reserved for the container. This parameter + maps to `CpuShares` in the docker container create command and the + `--cpu-shares` option to docker run. - - `COMPLETE` - This condition validates that a dependent container runs - to completion (exits) before permitting other containers to start. - This can be useful for nonessential containers that run a script and - then exit. This condition can't be set on an essential container. + This field is optional for tasks using the Fargate launch type, and the + only requirement is that the total amount of CPU reserved for all + containers within a task be lower than the task-level `cpu` value. - - `SUCCESS` - This condition is the same as `COMPLETE`, but it also - requires that the container exits with a `zero` status. This condition - can't be set on an essential container. + Note: + You can determine the number of CPU units that are available per EC2 + instance type by multiplying the vCPUs listed for that instance type on + the [Amazon EC2 Instances](http://aws.amazon.com/ec2/instance-types/) + detail page by 1,024. - - `HEALTHY` - This condition validates that the dependent container + Linux containers share unallocated CPU units with other containers on + the container instance with the same ratio as their allocated amount. + For example, if you run a single-container task on a single-core + instance type with 512 CPU units specified for that container, and + that's the only task running on the container instance, that container + could use the full 1,024 CPU unit share at any given time. However, if + you launched another copy of the same task on that container instance, + each task is guaranteed a minimum of 512 CPU units when needed. + Moreover, each container could float to higher CPU usage if the other + container was not using it. If both tasks were 100% active all of the + time, they would be limited to 512 CPU units. + + On Linux container instances, the Docker daemon on the container + instance uses the CPU value to calculate the relative CPU share ratios + for running containers. The minimum valid CPU share value that the Linux + kernel allows is 2, and the maximum valid CPU share value that the Linux + kernel allows is 262144. However, the CPU parameter isn't required, and + you can use CPU values below 2 or above 262144 in your container + definitions. For CPU values below 2 (including null) or above 262144, + the behavior varies based on your Amazon ECS container agent version: + + - **Agent versions less than or equal to 1.1.0:** Null and zero CPU + values are passed to Docker as 0, which Docker then converts to 1,024 + CPU shares. CPU values of 1 are passed to Docker as 1, which the Linux + kernel converts to two CPU shares. + + - **Agent versions greater than or equal to 1.2.0:** Null, zero, and CPU + values of 1 are passed to Docker as 2. + + - **Agent versions greater than or equal to 1.84.0:** CPU values greater + than 256 vCPU are passed to Docker as 256, which is equivalent to + 262144 CPU shares. + + On Windows container instances, the CPU limit is enforced as an absolute + limit, or a quota. Windows containers only have access to the specified + amount of CPU that's described in the task definition. A null or zero + CPU value is passed to Docker as `0`, which Windows interprets as 1% of + one CPU. + """ + memory: int | None + """ + The amount (in MiB) of memory to present to the container. If your + container attempts to exceed the memory specified here, the container is + killed. The total amount of memory reserved for all containers within a + task must be lower than the task `memory` value, if one is specified. + This parameter maps to `Memory` in the docker container create command + and the `--memory` option to docker run. + + If using the Fargate launch type, this parameter is optional. + + If using the EC2 launch type, you must specify either a task-level + memory value or a container-level memory value. If you specify both a + container-level `memory` and `memoryReservation` value, `memory` must be + greater than `memoryReservation`. If you specify `memoryReservation`, + then that value is subtracted from the available memory resources for + the container instance where the container is placed. Otherwise, the + value of `memory` is used. + + The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory + for a container. So, don't specify less than 6 MiB of memory for your + containers. + + The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of + memory for a container. So, don't specify less than 4 MiB of memory for + your containers. + """ + memory_reservation: int | None + """ + The soft limit (in MiB) of memory to reserve for the container. When + system memory is under heavy contention, Docker attempts to keep the + container memory to this soft limit. However, your container can consume + more memory when it needs to, up to either the hard limit specified with + the `memory` parameter (if applicable), or all of the available memory + on the container instance, whichever comes first. This parameter maps to + `MemoryReservation` in the docker container create command and the + `--memory-reservation` option to docker run. + + If a task-level memory value is not specified, you must specify a + non-zero integer for one or both of `memory` or `memoryReservation` in a + container definition. If you specify both, `memory` must be greater than + `memoryReservation`. If you specify `memoryReservation`, then that value + is subtracted from the available memory resources for the container + instance where the container is placed. Otherwise, the value of `memory` + is used. + + For example, if your container normally uses 128 MiB of memory, but + occasionally bursts to 256 MiB of memory for short periods of time, you + can set a `memoryReservation` of 128 MiB, and a `memory` hard limit of + 300 MiB. This configuration would allow the container to only reserve + 128 MiB of memory from the remaining resources on the container + instance, but also allow the container to consume more memory resources + when needed. + + The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory + for a container. So, don't specify less than 6 MiB of memory for your + containers. + + The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of + memory for a container. So, don't specify less than 4 MiB of memory for + your containers. + """ + links: Sequence[str] | None + """ + The `links` parameter allows containers to communicate with each other + without the need for port mappings. This parameter is only supported if + the network mode of a task definition is `bridge`. The + `name:internalName` construct is analogous to `name:alias` in Docker + links. Up to 255 letters (uppercase and lowercase), numbers, + underscores, and hyphens are allowed.. This parameter maps to `Links` in + the docker container create command and the `--link` option to docker + run. + + Note: + This parameter is not supported for Windows containers. + Warning: + Containers that are collocated on a single container instance may be + able to communicate with each other without requiring links or host port + mappings. Network isolation is achieved on the container instance using + security groups and VPC settings. + """ + port_mappings: Sequence[PortMapping | PortMappingDict] | None + """ + The list of port mappings for the container. Port mappings allow + containers to access ports on the host container instance to send or + receive traffic. + + For task definitions that use the `awsvpc` network mode, only specify + the `containerPort`. The `hostPort` can be left blank or it must be the + same value as the `containerPort`. + + Port mappings on Windows use the `NetNAT` gateway address rather than + `localhost`. There's no loopback for port mappings on Windows, so you + can't access a container's mapped port from the host itself. + + This parameter maps to `PortBindings` in the docker container create + command and the `--publish` option to docker run. If the network mode of + a task definition is set to `none`, then you can't specify port + mappings. If the network mode of a task definition is set to `host`, + then host ports must either be undefined or they must match the + container port in the port mapping. + + Note: + After a task reaches the `RUNNING` status, manual and automatic host and + container port assignments are visible in the **Network Bindings** + section of a container description for a selected task in the Amazon ECS + console. The assignments are also visible in the `networkBindings` + section + [DescribeTasks](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html) + responses. + """ + essential: bool | None + """ + If the `essential` parameter of a container is marked as `true`, and + that container fails or stops for any reason, all other containers that + are part of the task are stopped. If the `essential` parameter of a + container is marked as `false`, its failure doesn't affect the rest of + the containers in a task. If this parameter is omitted, a container is + assumed to be essential. + + All tasks must have at least one essential container. If you have an + application that's composed of multiple containers, group containers + that are used for a common purpose into components, and separate the + different components into multiple task definitions. For more + information, see [Application + Architecture](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + restart_policy: ContainerRestartPolicy | ContainerRestartPolicyDict | None + """ + The restart policy for a container. When you set up a restart policy, + Amazon ECS can restart the container without needing to replace the + task. For more information, see [Restart individual containers in Amazon + ECS tasks with container restart + policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + entry_point: Sequence[str] | None + """ + Warning: + Early versions of the Amazon ECS container agent don't properly handle + `entryPoint` parameters. If you have problems using `entryPoint`, update + your container agent or enter your commands and arguments as `command` + array items instead. + + The entry point that's passed to the container. This parameter maps to + `Entrypoint` in the docker container create command and the + `--entrypoint` option to docker run. + """ + command: Sequence[str] | None + """ + The command that's passed to the container. This parameter maps to + `Cmd` in the docker container create command and the `COMMAND` parameter + to docker run. If there are multiple arguments, each argument is a + separated string in the array. + """ + environment: Sequence[KeyValuePair | KeyValuePairDict] | None + """ + The environment variables to pass to a container. This parameter maps to + `Env` in the docker container create command and the `--env` option to + docker run. + + Warning: + We don't recommend that you use plaintext environment variables for + sensitive information, such as credential data. + """ + environment_files: Sequence[EnvironmentFile | EnvironmentFileDict] | None + """ + A list of files containing the environment variables to pass to a + container. This parameter maps to the `--env-file` option to docker run. + + You can specify up to ten environment files. The file must have a `.env` + file extension. Each line in an environment file contains an environment + variable in `VARIABLE=VALUE` format. Lines beginning with `#` are + treated as comments and are ignored. + + If there are environment variables specified using the `environment` + parameter in a container definition, they take precedence over the + variables contained within an environment file. If multiple environment + files are specified that contain the same variable, they're processed + from the top down. We recommend that you use unique variable names. For + more information, see [Specifying Environment + Variables](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + mount_points: Sequence[MountPoint | MountPointDict] | None + """ + The mount points for data volumes in your container. + + This parameter maps to `Volumes` in the docker container create command + and the `--volume` option to docker run. + + Windows containers can mount whole directories on the same drive as + `$env:ProgramData`. Windows containers can't mount directories on a + different drive, and mount point can't be across drives. + """ + volumes_from: Sequence[VolumeFrom | VolumeFromDict] | None + """ + Data volumes to mount from another container. This parameter maps to + `VolumesFrom` in the docker container create command and the + `--volumes-from` option to docker run. + """ + linux_parameters: LinuxParameters | LinuxParametersDict | None + """ + Linux-specific modifications that are applied to the default Docker + container configuration, such as Linux kernel capabilities. For more + information see + [KernelCapabilities](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html). + + Note: + This parameter is not supported for Windows containers. + """ + secrets: Sequence[Secret | SecretDict] | None + """ + The secrets to pass to the container. For more information, see + [Specifying Sensitive + Data](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + depends_on: Sequence[ContainerDependency | ContainerDependencyDict] | None + """ + The dependencies defined for container startup and shutdown. A container + can contain multiple dependencies on other containers in a task + definition. When a dependency is defined for container startup, for + container shutdown it is reversed. + + For tasks using the EC2 launch type, the container instances require at + least version 1.26.0 of the container agent to turn on container + dependencies. However, we recommend using the latest container agent + version. For information about checking your agent version and updating + to the latest version, see [Updating the Amazon ECS Container + Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) + in the *Amazon Elastic Container Service Developer Guide*. If you're + using an Amazon ECS-optimized Linux AMI, your instance needs at least + version 1.26.0-1 of the `ecs-init` package. If your container instances + are launched from version `20190301` or later, then they contain the + required versions of the container agent and `ecs-init`. For more + information, see [Amazon ECS-optimized Linux + AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) + in the *Amazon Elastic Container Service Developer Guide*. + + For tasks using the Fargate launch type, the task or service requires + the following platforms: + + - Linux platform version `1.3.0` or later. + + - Windows platform version `1.0.0` or later. + """ + start_timeout: int | None + """ + Time duration (in seconds) to wait before giving up on resolving + dependencies for a container. For example, you specify two containers in + a task definition with containerA having a dependency on containerB + reaching a `COMPLETE`, `SUCCESS`, or `HEALTHY` status. If a + `startTimeout` value is specified for containerB and it doesn't reach + the desired status within that time then containerA gives up and not + start. This results in the task transitioning to a `STOPPED` state. + + Note: + When the `ECS_CONTAINER_START_TIMEOUT` container agent configuration + variable is used, it's enforced independently from this start timeout + value. + + For tasks using the Fargate launch type, the task or service requires + the following platforms: + + - Linux platform version `1.3.0` or later. + + - Windows platform version `1.0.0` or later. + + For tasks using the EC2 launch type, your container instances require at + least version `1.26.0` of the container agent to use a container start + timeout value. However, we recommend using the latest container agent + version. For information about checking your agent version and updating + to the latest version, see [Updating the Amazon ECS Container + Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) + in the *Amazon Elastic Container Service Developer Guide*. If you're + using an Amazon ECS-optimized Linux AMI, your instance needs at least + version `1.26.0-1` of the `ecs-init` package. If your container + instances are launched from version `20190301` or later, then they + contain the required versions of the container agent and `ecs-init`. For + more information, see [Amazon ECS-optimized Linux + AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) + in the *Amazon Elastic Container Service Developer Guide*. + + The valid values for Fargate are 2-120 seconds. + """ + stop_timeout: int | None + """ + Time duration (in seconds) to wait before the container is forcefully + killed if it doesn't exit normally on its own. + + For tasks using the Fargate launch type, the task or service requires + the following platforms: + + - Linux platform version `1.3.0` or later. + + - Windows platform version `1.0.0` or later. + + For tasks that use the Fargate launch type, the max stop timeout value + is 120 seconds and if the parameter is not specified, the default value + of 30 seconds is used. + + For tasks that use the EC2 launch type, if the `stopTimeout` parameter + isn't specified, the value set for the Amazon ECS container agent + configuration variable `ECS_CONTAINER_STOP_TIMEOUT` is used. If neither + the `stopTimeout` parameter or the `ECS_CONTAINER_STOP_TIMEOUT` agent + configuration variable are set, then the default values of 30 seconds + for Linux containers and 30 seconds on Windows containers are used. Your + container instances require at least version 1.26.0 of the container + agent to use a container stop timeout value. However, we recommend using + the latest container agent version. For information about checking your + agent version and updating to the latest version, see [Updating the + Amazon ECS Container + Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) + in the *Amazon Elastic Container Service Developer Guide*. If you're + using an Amazon ECS-optimized Linux AMI, your instance needs at least + version 1.26.0-1 of the `ecs-init` package. If your container instances + are launched from version `20190301` or later, then they contain the + required versions of the container agent and `ecs-init`. For more + information, see [Amazon ECS-optimized Linux + AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) + in the *Amazon Elastic Container Service Developer Guide*. + + The valid values for Fargate are 2-120 seconds. + """ + version_consistency: str | None + """ + Specifies whether Amazon ECS will resolve the container image tag + provided in the container definition to an image digest. By default, the + value is `enabled`. If you set the value for a container as `disabled`, + Amazon ECS will not resolve the provided container image tag to a digest + and will use the original image URI specified in the container + definition for deployment. For more information about container image + resolution, see [Container image + resolution](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html#deployment-container-image-stability) + in the *Amazon ECS Developer Guide*. + """ + hostname: str | None + """ + The hostname to use for your container. This parameter maps to + `Hostname` in the docker container create command and the `--hostname` + option to docker run. + + Note: + The `hostname` parameter is not supported if you're using the `awsvpc` + network mode. + """ + user: str | None + """ + The user to use inside the container. This parameter maps to `User` in + the docker container create command and the `--user` option to docker + run. + + Warning: + When running tasks using the `host` network mode, don't run containers + using the root user (UID 0). We recommend using a non-root user for + better security. + + You can specify the `user` using the following formats. If specifying a + UID or GID, you must specify it as a positive integer. + + - `user` + + - `user:group` + + - `uid` + + - `uid:gid` + + - `user:gid` + + - `uid:group` + + Note: + This parameter is not supported for Windows containers. + """ + working_directory: str | None + """ + The working directory to run commands inside the container in. This + parameter maps to `WorkingDir` in the docker container create command + and the `--workdir` option to docker run. + """ + disable_networking: bool | None + """ + When this parameter is true, networking is off within the container. + This parameter maps to `NetworkDisabled` in the docker container create + command. + + Note: + This parameter is not supported for Windows containers. + """ + privileged: bool | None + """ + When this parameter is true, the container is given elevated privileges + on the host container instance (similar to the `root` user). This + parameter maps to `Privileged` in the docker container create command + and the `--privileged` option to docker run + + Note: + This parameter is not supported for Windows containers or tasks run on + Fargate. + """ + readonly_root_filesystem: bool | None + """ + When this parameter is true, the container is given read-only access to + its root file system. This parameter maps to `ReadonlyRootfs` in the + docker container create command and the `--read-only` option to docker + run. + + Note: + This parameter is not supported for Windows containers. + """ + dns_servers: Sequence[str] | None + """ + A list of DNS servers that are presented to the container. This + parameter maps to `Dns` in the docker container create command and the + `--dns` option to docker run. + + Note: + This parameter is not supported for Windows containers. + """ + dns_search_domains: Sequence[str] | None + """ + A list of DNS search domains that are presented to the container. This + parameter maps to `DnsSearch` in the docker container create command and + the `--dns-search` option to docker run. + + Note: + This parameter is not supported for Windows containers. + """ + extra_hosts: Sequence[HostEntry | HostEntryDict] | None + """ + A list of hostnames and IP address mappings to append to the + `/etc/hosts` file on the container. This parameter maps to `ExtraHosts` + in the docker container create command and the `--add-host` option to + docker run. + + Note: + This parameter isn't supported for Windows containers or tasks that use + the `awsvpc` network mode. + """ + docker_security_options: Sequence[str] | None + """ + A list of strings to provide custom configuration for multiple security + systems. This field isn't valid for containers in tasks using the + Fargate launch type. + + For Linux tasks on EC2, this parameter can be used to reference custom + labels for SELinux and AppArmor multi-level security systems. + + For any tasks on EC2, this parameter can be used to reference a + credential spec file that configures a container for Active Directory + authentication. For more information, see [Using gMSAs for Windows + Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html) + and [Using gMSAs for Linux + Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html) + in the *Amazon Elastic Container Service Developer Guide*. + + This parameter maps to `SecurityOpt` in the docker container create + command and the `--security-opt` option to docker run. + + Note: + The Amazon ECS container agent running on a container instance must + register with the `ECS_SELINUX_CAPABLE=true` or + `ECS_APPARMOR_CAPABLE=true` environment variables before containers + placed on that instance can use these security options. For more + information, see [Amazon ECS Container Agent + Configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) + in the *Amazon Elastic Container Service Developer Guide*. + + Valid values: \"no-new-privileges\" | \"apparmor:PROFILE\" | + \"label:value\" | \"credentialspec:CredentialSpecFilePath\" + """ + interactive: bool | None + """ + When this parameter is `true`, you can deploy containerized applications + that require `stdin` or a `tty` to be allocated. This parameter maps to + `OpenStdin` in the docker container create command and the + `--interactive` option to docker run. + """ + pseudo_terminal: bool | None + """ + When this parameter is `true`, a TTY is allocated. This parameter maps + to `Tty` in the docker container create command and the `--tty` option + to docker run. + """ + docker_labels: Mapping[str, str] | None + """ + A key/value map of labels to add to the container. This parameter maps + to `Labels` in the docker container create command and the `--label` + option to docker run. This parameter requires version 1.18 of the Docker + Remote API or greater on your container instance. To check the Docker + Remote API version on your container instance, log in to your container + instance and run the following command: + `sudo docker version --format '{{.Server.APIVersion}}'` + """ + ulimits: Sequence[Ulimit | UlimitDict] | None + """ + A list of `ulimits` to set in the container. If a `ulimit` value is + specified in a task definition, it overrides the default values set by + Docker. This parameter maps to `Ulimits` in the docker container create + command and the `--ulimit` option to docker run. Valid naming values are + displayed in the + [Ulimit](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Ulimit.html) + data type. + + Amazon ECS tasks hosted on Fargate use the default resource limit values + set by the operating system with the exception of the `nofile` resource + limit parameter which Fargate overrides. The `nofile` resource limit + sets a restriction on the number of open files that a container can use. + The default `nofile` soft limit is ` 65535` and the default hard limit + is `65535`. + + This parameter requires version 1.18 of the Docker Remote API or greater + on your container instance. To check the Docker Remote API version on + your container instance, log in to your container instance and run the + following command: + `sudo docker version --format '{{.Server.APIVersion}}'` + + Note: + This parameter is not supported for Windows containers. + """ + log_configuration: LogConfiguration | LogConfigurationDict | None + """ + The log configuration specification for the container. + + This parameter maps to `LogConfig` in the docker container create + command and the `--log-driver` option to docker run. By default, + containers use the same logging driver that the Docker daemon uses. + However the container can use a different logging driver than the Docker + daemon by specifying a log driver with this parameter in the container + definition. To use a different logging driver for a container, the log + system must be configured properly on the container instance (or on a + different log server for remote logging options). + + Note: + Amazon ECS currently supports a subset of the logging drivers available + to the Docker daemon (shown in the + [LogConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html) + data type). Additional log drivers may be available in future releases + of the Amazon ECS container agent. + + This parameter requires version 1.18 of the Docker Remote API or greater + on your container instance. To check the Docker Remote API version on + your container instance, log in to your container instance and run the + following command: + `sudo docker version --format '{{.Server.APIVersion}}'` + + Note: + The Amazon ECS container agent running on a container instance must + register the logging drivers available on that instance with the + `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before containers + placed on that instance can use these log configuration options. For + more information, see [Amazon ECS Container Agent + Configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + health_check: HealthCheck | HealthCheckDict | None + """ + The container health check command and associated configuration + parameters for the container. This parameter maps to `HealthCheck` in + the docker container create command and the `HEALTHCHECK` parameter of + docker run. + """ + system_controls: Sequence[SystemControl | SystemControlDict] | None + """ + A list of namespaced kernel parameters to set in the container. This + parameter maps to `Sysctls` in the docker container create command and + the `--sysctl` option to docker run. For example, you can configure + `net.ipv4.tcp_keepalive_time` setting to maintain longer lived + connections. + """ + resource_requirements: ( + Sequence[ResourceRequirement | ResourceRequirementDict] | None + ) + """ + The type and amount of a resource to assign to a container. The + supported resources are GPUs and Neuron devices. + """ + firelens_configuration: FirelensConfiguration | FirelensConfigurationDict | None + """ + The FireLens configuration for the container. This is used to specify + and configure a log router for container logs. For more information, see + [Custom Log + Routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + credential_specs: Sequence[str] | None + """ + A list of ARNs in SSM or Amazon S3 to a credential spec (`CredSpec`) + file that configures the container for Active Directory authentication. + We recommend that you use this parameter instead of the + `dockerSecurityOptions`. The maximum number of ARNs is 1. + + There are two formats for each ARN. + + credentialspecdomainless:MyARN + + : You use `credentialspecdomainless:MyARN` to provide a `CredSpec` + with an additional section for a secret in Secrets Manager. You + provide the login credentials to the domain in the secret. + + Each task that runs on any container instance can join different + domains. + + You can use this format without joining the container instance to a + domain. + + credentialspec:MyARN + + : You use `credentialspec:MyARN` to provide a `CredSpec` for a single + domain. + + You must join the container instance to the domain before you start + any tasks that use this task definition. + + In both formats, replace `MyARN` with the ARN in SSM or Amazon S3. + + If you provide a `credentialspecdomainless:MyARN`, the `credspec` must + provide a ARN in Secrets Manager for a secret containing the username, + password, and the domain to connect to. For better security, the + instance isn't joined to the domain for domainless authentication. + Other applications on the instance can't use the domainless + credentials. You can use this parameter to run tasks on the same + instance, even it the tasks need to join different domains. For more + information, see [Using gMSAs for Windows + Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html) + and [Using gMSAs for Linux + Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html). + """ + +@dataclass(kw_only=True) +class ContainerDependency(_SerdeShape): + """ + The dependencies defined for container startup and shutdown. A container + can contain multiple dependencies. When a dependency is defined for + container startup, for container shutdown it is reversed. + + Your Amazon ECS container instances require at least version 1.26.0 of + the container agent to use container dependencies. However, we recommend + using the latest container agent version. For information about checking + your agent version and updating to the latest version, see [Updating the + Amazon ECS Container + Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) + in the *Amazon Elastic Container Service Developer Guide*. If you're + using an Amazon ECS-optimized Linux AMI, your instance needs at least + version 1.26.0-1 of the `ecs-init` package. If your container instances + are launched from version `20190301` or later, then they contain the + required versions of the container agent and `ecs-init`. For more + information, see [Amazon ECS-optimized Linux + AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) + in the *Amazon Elastic Container Service Developer Guide*. + + Note: + For tasks that use the Fargate launch type, the task or service requires + the following platforms: + + - Linux platform version `1.3.0` or later. + + - Windows platform version `1.0.0` or later. + + For more information about how to create a container dependency, see + [Container + dependency](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/example_task_definitions.html#example_task_definition-containerdependency) + in the *Amazon Elastic Container Service Developer Guide*. + """ + + container_name: str + """The name of a container.""" + condition: str + """ + The dependency condition of the container. The following are the + available conditions and their behavior: + + - `START` - This condition emulates the behavior of links and volumes + today. It validates that a dependent container is started before + permitting other containers to start. + + - `COMPLETE` - This condition validates that a dependent container runs + to completion (exits) before permitting other containers to start. + This can be useful for nonessential containers that run a script and + then exit. This condition can't be set on an essential container. + + - `SUCCESS` - This condition is the same as `COMPLETE`, but it also + requires that the container exits with a `zero` status. This condition + can't be set on an essential container. + + - `HEALTHY` - This condition validates that the dependent container + passes its Docker health check before permitting other containers to + start. This requires that the dependent container has health checks + configured. This condition is confirmed only at task startup. + """ + +class ContainerDependencyDict(TypedDict, total=False): + """Dictionary form of `ContainerDependency`.""" + + container_name: Required[str] + """The name of a container.""" + condition: Required[str] + """ + The dependency condition of the container. The following are the + available conditions and their behavior: + + - `START` - This condition emulates the behavior of links and volumes + today. It validates that a dependent container is started before + permitting other containers to start. + + - `COMPLETE` - This condition validates that a dependent container runs + to completion (exits) before permitting other containers to start. + This can be useful for nonessential containers that run a script and + then exit. This condition can't be set on an essential container. + + - `SUCCESS` - This condition is the same as `COMPLETE`, but it also + requires that the container exits with a `zero` status. This condition + can't be set on an essential container. + + - `HEALTHY` - This condition validates that the dependent container passes its Docker health check before permitting other containers to start. This requires that the dependent container has health checks configured. This condition is confirmed only at task startup. """ -@dataclass(kw_only=True) -class ContainerImage(_SerdeShape): +@dataclass(kw_only=True) +class ContainerImage(_SerdeShape): + """ + The details about the container image a service revision uses. + + To ensure that all tasks in a service use the same container image, + Amazon ECS resolves container image names and any image tags specified + in the task definition to container image digests. + + After the container image digest has been established, Amazon ECS uses + the digest to start any other desired tasks, and for any future service + and service revision updates. This leads to all tasks in a service + always running identical container images, resulting in version + consistency for your software. For more information, see [Container + image + resolution](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html#deployment-container-image-stability) + in the Amazon ECS Developer Guide. + """ + + container_name: str | None = ... + """The name of the container.""" + image_digest: str | None = ... + """The container image digest.""" + image: str | None = ... + """The container image.""" + +@dataclass(kw_only=True) +class ContainerInstance(_SerdeShape): + """ + An Amazon EC2 or External instance that's running the Amazon ECS agent + and has been registered with a cluster. + """ + + container_instance_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the container instance. For more + information about the ARN format, see [Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids) + in the *Amazon ECS Developer Guide*. + """ + ec2_instance_id: str | None = ... + """ + The ID of the container instance. For Amazon EC2 instances, this value + is the Amazon EC2 instance ID. For external instances, this value is the + Amazon Web Services Systems Manager managed instance ID. + """ + capacity_provider_name: str | None = ... + """The capacity provider that's associated with the container instance.""" + version: int = ... + """ + The version counter for the container instance. Every time a container + instance experiences a change that triggers a CloudWatch event, the + version counter is incremented. If you're replicating your Amazon ECS + container instance state with CloudWatch Events, you can compare the + version of a container instance reported by the Amazon ECS APIs with the + version reported in CloudWatch Events for the container instance (inside + the `detail` object) to verify that the version in your event stream is + current. + """ + version_info: VersionInfo | None = ... + """ + The version information for the Amazon ECS container agent and Docker + daemon running on the container instance. + """ + remaining_resources: list[Resource] | None = ... + """ + For CPU and memory resource types, this parameter describes the + remaining CPU and memory that wasn't already allocated to tasks and is + therefore available for new tasks. For port resource types, this + parameter describes the ports that were reserved by the Amazon ECS + container agent (at instance registration time) and any task containers + that have reserved port mappings on the host (with the `host` or + `bridge` network mode). Any port that's not specified here is available + for new tasks. + """ + registered_resources: list[Resource] | None = ... + """ + For CPU and memory resource types, this parameter describes the amount + of each resource that was available on the container instance when the + container agent registered it with Amazon ECS. This value represents the + total amount of CPU and memory that can be allocated on this container + instance to tasks. For port resource types, this parameter describes the + ports that were reserved by the Amazon ECS container agent when it + registered the container instance with Amazon ECS. + """ + status: str | None = ... + """ + The status of the container instance. The valid values are + `REGISTERING`, `REGISTRATION_FAILED`, `ACTIVE`, `INACTIVE`, + `DEREGISTERING`, or `DRAINING`. + + If your account has opted in to the `awsvpcTrunking` account setting, + then any newly registered container instance will transition to a + `REGISTERING` status while the trunk elastic network interface is + provisioned for the instance. If the registration fails, the instance + will transition to a `REGISTRATION_FAILED` status. You can describe the + container instance and see the reason for failure in the `statusReason` + parameter. Once the container instance is terminated, the instance + transitions to a `DEREGISTERING` status while the trunk elastic network + interface is deprovisioned. The instance then transitions to an + `INACTIVE` status. + + The `ACTIVE` status indicates that the container instance can accept + tasks. The `DRAINING` indicates that new tasks aren't placed on the + container instance and any service tasks running on the container + instance are removed if possible. For more information, see [Container + instance + draining](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-instance-draining.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + status_reason: str | None = ... + """The reason that the container instance reached its current status.""" + agent_connected: bool = ... + """ + This parameter returns `true` if the agent is connected to Amazon ECS. + An instance with an agent that may be unhealthy or stopped return + `false`. Only instances connected to an agent can accept task placement + requests. + """ + running_tasks_count: int = ... + """ + The number of tasks on the container instance that have a desired status + (`desiredStatus`) of `RUNNING`. + """ + pending_tasks_count: int = ... + """ + The number of tasks on the container instance that are in the `PENDING` + status. + """ + agent_update_status: str | None = ... + """ + The status of the most recent agent update. If an update wasn't ever + requested, this value is `NULL`. + """ + attributes: list[Attribute] | None = ... + """ + The attributes set for the container instance, either by the Amazon ECS + container agent at instance registration or manually with the + [PutAttributes](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAttributes.html) + operation. + """ + registered_at: datetime | None = ... + """ + The Unix timestamp for the time when the container instance was + registered. + """ + attachments: list[Attachment] | None = ... + """ + The resources attached to a container instance, such as an elastic + network interface. + """ + tags: list[Tag] | None = ... + """ + The metadata that you apply to the container instance to help you + categorize and organize them. Each tag consists of a key and an optional + value. You define both. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + health_status: ContainerInstanceHealthStatus | None = ... + """An object representing the health status of the container instance.""" + gpu_devices: list[GpuDevice] | None = ... + """ + The state of each GPU on the container instance, including its sharing + mode and available memory. This field is present only for container + instances that support GPU sharing. + """ + +class ContainerInstanceField(UnknownEnumMixin, StrEnum): + TAGS = "TAGS" + CONTAINER_INSTANCE_HEALTH = "CONTAINER_INSTANCE_HEALTH" + +@dataclass(kw_only=True) +class ContainerInstanceHealthStatus(_SerdeShape): + """An object representing the health status of the container instance.""" + + overall_status: str | None = ... + """ + The overall health status of the container instance. This is an + aggregate status of all container instance health checks. + """ + details: list[InstanceHealthCheckResult] | None = ... + """ + An array of objects representing the details of the container instance + health status. + """ + +class ContainerInstanceStatus(UnknownEnumMixin, StrEnum): + ACTIVE = "ACTIVE" + DRAINING = "DRAINING" + REGISTERING = "REGISTERING" + DEREGISTERING = "DEREGISTERING" + REGISTRATION_FAILED = "REGISTRATION_FAILED" + +@dataclass(kw_only=True) +class ContainerOverride(_SerdeShape): + """ + The overrides that are sent to a container. An empty container override + can be passed in. An example of an empty container override is + `{"containerOverrides": [ ] }`. If a non-empty container override is + specified, the `name` parameter must be included. + + You can use Secrets Manager or Amazon Web Services Systems Manager + Parameter Store to store the sensitive data. For more information, see + [Retrieve secrets through environment + variables](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/secrets-envvar.html) + in the Amazon ECS Developer Guide. + """ + + name: str | None = ... + """ + The name of the container that receives the override. This parameter is + required if any override is specified. + """ + command: list[str] | None = ... + """ + The command to send to the container that overrides the default command + from the Docker image or the task definition. You must also specify a + container name. + """ + environment: list[KeyValuePair] | None = ... + """ + The environment variables to send to the container. You can add new + environment variables, which are added to the container at launch, or + you can override the existing environment variables from the Docker + image or the task definition. You must also specify a container name. + """ + environment_files: list[EnvironmentFile] | None = ... + """ + A list of files containing the environment variables to pass to a + container, instead of the value from the container definition. + """ + cpu: int | None = ... + """ + The number of `cpu` units reserved for the container, instead of the + default value from the task definition. You must also specify a + container name. + """ + memory: int | None = ... + """ + The hard limit (in MiB) of memory to present to the container, instead + of the default value from the task definition. If your container + attempts to exceed the memory specified here, the container is killed. + You must also specify a container name. + """ + memory_reservation: int | None = ... + """ + The soft limit (in MiB) of memory to reserve for the container, instead + of the default value from the task definition. You must also specify a + container name. + """ + resource_requirements: list[ResourceRequirement] | None = ... + """ + The type and amount of a resource to assign to a container, instead of + the default value from the task definition. The supported resources are + GPUs and Neuron devices. + """ + +class ContainerOverrideDict(TypedDict, total=False): + """Dictionary form of `ContainerOverride`.""" + + name: str | None + """ + The name of the container that receives the override. This parameter is + required if any override is specified. + """ + command: Sequence[str] | None + """ + The command to send to the container that overrides the default command + from the Docker image or the task definition. You must also specify a + container name. + """ + environment: Sequence[KeyValuePair | KeyValuePairDict] | None + """ + The environment variables to send to the container. You can add new + environment variables, which are added to the container at launch, or + you can override the existing environment variables from the Docker + image or the task definition. You must also specify a container name. + """ + environment_files: Sequence[EnvironmentFile | EnvironmentFileDict] | None + """ + A list of files containing the environment variables to pass to a + container, instead of the value from the container definition. + """ + cpu: int | None + """ + The number of `cpu` units reserved for the container, instead of the + default value from the task definition. You must also specify a + container name. + """ + memory: int | None + """ + The hard limit (in MiB) of memory to present to the container, instead + of the default value from the task definition. If your container + attempts to exceed the memory specified here, the container is killed. + You must also specify a container name. + """ + memory_reservation: int | None + """ + The soft limit (in MiB) of memory to reserve for the container, instead + of the default value from the task definition. You must also specify a + container name. + """ + resource_requirements: ( + Sequence[ResourceRequirement | ResourceRequirementDict] | None + ) + """ + The type and amount of a resource to assign to a container, instead of + the default value from the task definition. The supported resources are + GPUs and Neuron devices. + """ + +@dataclass(kw_only=True) +class ContainerRestartPolicy(_SerdeShape): + """ + You can enable a restart policy for each container defined in your task + definition, to overcome transient failures faster and maintain task + availability. When you enable a restart policy for a container, Amazon + ECS can restart the container if it exits, without needing to replace + the task. For more information, see [Restart individual containers in + Amazon ECS tasks with container restart + policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + + enabled: bool + """Specifies whether a restart policy is enabled for the container.""" + ignored_exit_codes: list[int] | None = ... + """ + A list of exit codes that Amazon ECS will ignore and not attempt a + restart on. You can specify a maximum of 50 container exit codes. By + default, Amazon ECS does not ignore any exit codes. + """ + restart_attempt_period: int | None = ... + """ + A period of time (in seconds) that the container must run for before a + restart can be attempted. A container can be restarted only once every + `restartAttemptPeriod` seconds. If a container isn't able to run for + this time period and exits early, it will not be restarted. You can set + a minimum `restartAttemptPeriod` of 60 seconds and a maximum + `restartAttemptPeriod` of 1800 seconds. By default, a container must run + for 300 seconds before it can be restarted. + """ + +class ContainerRestartPolicyDict(TypedDict, total=False): + """Dictionary form of `ContainerRestartPolicy`.""" + + enabled: Required[bool] + """Specifies whether a restart policy is enabled for the container.""" + ignored_exit_codes: Sequence[int] | None + """ + A list of exit codes that Amazon ECS will ignore and not attempt a + restart on. You can specify a maximum of 50 container exit codes. By + default, Amazon ECS does not ignore any exit codes. + """ + restart_attempt_period: int | None + """ + A period of time (in seconds) that the container must run for before a + restart can be attempted. A container can be restarted only once every + `restartAttemptPeriod` seconds. If a container isn't able to run for + this time period and exits early, it will not be restarted. You can set + a minimum `restartAttemptPeriod` of 60 seconds and a maximum + `restartAttemptPeriod` of 1800 seconds. By default, a container must run + for 300 seconds before it can be restarted. + """ + +@dataclass(kw_only=True) +class ContainerStateChange(_SerdeShape): + """An object that represents a change in state for a container.""" + + container_name: str | None = ... + """The name of the container.""" + image_digest: str | None = ... + """The container image SHA 256 digest.""" + runtime_id: str | None = ... + """The ID of the Docker container.""" + exit_code: int | None = ... + """ + The exit code for the container, if the state change is a result of the + container exiting. + """ + network_bindings: list[NetworkBinding] | None = ... + """Any network bindings that are associated with the container.""" + reason: str | None = ... + """The reason for the state change.""" + status: str | None = ... + """The status of the container.""" + +class ContainerStateChangeDict(TypedDict, total=False): + """Dictionary form of `ContainerStateChange`.""" + + container_name: str | None + """The name of the container.""" + image_digest: str | None + """The container image SHA 256 digest.""" + runtime_id: str | None + """The ID of the Docker container.""" + exit_code: int | None + """ + The exit code for the container, if the state change is a result of the + container exiting. + """ + network_bindings: Sequence[NetworkBinding | NetworkBindingDict] | None + """Any network bindings that are associated with the container.""" + reason: str | None + """The reason for the state change.""" + status: str | None + """The status of the container.""" + +@dataclass(kw_only=True) +class ContinueServiceDeploymentInput(_SerdeShape): + """Dataclass for ContinueServiceDeploymentInput structure.""" + + service_deployment_arn: str | None = ... + """The ARN of the service deployment to continue or roll back.""" + hook_id: str | None = ... + """ + The ID of the paused lifecycle hook to act on. You can find the `hookId` + by calling + [DescribeServiceDeployments](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html) + and inspecting the `lifecycleHookDetails` field of the service + deployment. + """ + action: str | None = ... + """ + The action to take on the paused lifecycle hook. Valid values are: + + - `CONTINUE` - Proceeds the deployment to the next lifecycle stage. + + - `ROLLBACK` - Rolls back the deployment to the previous service + revision. + + If no value is specified, the default action is `CONTINUE`. + """ + +class ContinueServiceDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `ContinueServiceDeploymentInput`.""" + + service_deployment_arn: Required[str] + """The ARN of the service deployment to continue or roll back.""" + hook_id: Required[str] + """ + The ID of the paused lifecycle hook to act on. You can find the `hookId` + by calling + [DescribeServiceDeployments](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html) + and inspecting the `lifecycleHookDetails` field of the service + deployment. + """ + action: str | None + """ + The action to take on the paused lifecycle hook. Valid values are: + + - `CONTINUE` - Proceeds the deployment to the next lifecycle stage. + + - `ROLLBACK` - Rolls back the deployment to the previous service + revision. + + If no value is specified, the default action is `CONTINUE`. + """ + +@dataclass(kw_only=True) +class ContinueServiceDeploymentOutput(_SerdeShape): + """Dataclass for ContinueServiceDeploymentOutput structure.""" + + service_deployment_arn: str | None = ... + """The ARN of the service deployment that was continued or rolled back.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class CPUArchitecture(UnknownEnumMixin, StrEnum): + X86_64 = "X86_64" + ARM64 = "ARM64" + +class CpuManufacturer(UnknownEnumMixin, StrEnum): + INTEL = "intel" + AMD = "amd" + AMAZON_WEB_SERVICES = "amazon-web-services" + +@dataclass(kw_only=True) +class CreateCapacityProviderInput(_SerdeShape): + """Dataclass for CreateCapacityProviderInput structure.""" + + name: str | None = ... + """ + The name of the capacity provider. Up to 255 characters are allowed. + They include letters (both upper and lowercase letters), numbers, + underscores (_), and hyphens (-). The name can't be prefixed with + \"`aws`\", \"`ecs`\", or \"`fargate`\". + """ + cluster: str | None = ... + """ + The name of the cluster to associate with the capacity provider. When + you create a capacity provider with Amazon ECS Managed Instances, it + becomes available only within the specified cluster. + """ + auto_scaling_group_provider: AutoScalingGroupProvider | None = ... + """The details of the Auto Scaling group for the capacity provider.""" + managed_instances_provider: CreateManagedInstancesProviderConfiguration | None = ... + """ + The configuration for the Amazon ECS Managed Instances provider. This + configuration specifies how Amazon ECS manages Amazon EC2 instances on + your behalf, including the infrastructure role, instance launch + template, and tag propagation settings. + """ + tags: list[Tag] | None = ... + """ + The metadata that you apply to the capacity provider to categorize and + organize them more conveniently. Each tag consists of a key and an + optional value. You define both of them. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + +class CreateCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityProviderInput`.""" + + name: Required[str] """ - The details about the container image a service revision uses. + The name of the capacity provider. Up to 255 characters are allowed. + They include letters (both upper and lowercase letters), numbers, + underscores (_), and hyphens (-). The name can't be prefixed with + \"`aws`\", \"`ecs`\", or \"`fargate`\". + """ + cluster: str | None + """ + The name of the cluster to associate with the capacity provider. When + you create a capacity provider with Amazon ECS Managed Instances, it + becomes available only within the specified cluster. + """ + auto_scaling_group_provider: ( + AutoScalingGroupProvider | AutoScalingGroupProviderDict | None + ) + """The details of the Auto Scaling group for the capacity provider.""" + managed_instances_provider: ( + CreateManagedInstancesProviderConfiguration + | CreateManagedInstancesProviderConfigurationDict + | None + ) + """ + The configuration for the Amazon ECS Managed Instances provider. This + configuration specifies how Amazon ECS manages Amazon EC2 instances on + your behalf, including the infrastructure role, instance launch + template, and tag propagation settings. + """ + tags: Sequence[Tag | TagDict] | None + """ + The metadata that you apply to the capacity provider to categorize and + organize them more conveniently. Each tag consists of a key and an + optional value. You define both of them. - To ensure that all tasks in a service use the same container image, - Amazon ECS resolves container image names and any image tags specified - in the task definition to container image digests. + The following basic restrictions apply to tags: - After the container image digest has been established, Amazon ECS uses - the digest to start any other desired tasks, and for any future service - and service revision updates. This leads to all tasks in a service - always running identical container images, resulting in version - consistency for your software. For more information, see [Container - image - resolution](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html#deployment-container-image-stability) - in the Amazon ECS Developer Guide. + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. """ - container_name: str | None = ... - """The name of the container.""" - image_digest: str | None = ... - """The container image digest.""" - image: str | None = ... - """The container image.""" +@dataclass(kw_only=True) +class CreateCapacityProviderOutput(_SerdeShape): + """Dataclass for CreateCapacityProviderOutput structure.""" + + capacity_provider: CapacityProvider | None = ... + """The full description of the new capacity provider.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ @dataclass(kw_only=True) -class ContainerInstance(_SerdeShape): +class CreateClusterInput(_SerdeShape): + """""" + + cluster_name: str | None = ... """ - An Amazon EC2 or External instance that's running the Amazon ECS agent - and has been registered with a cluster. + The name of your cluster. If you don't specify a name for your cluster, + you create a cluster that's named `default`. Up to 255 letters + (uppercase and lowercase), numbers, underscores, and hyphens are + allowed. + """ + tags: list[Tag] | None = ... """ + The metadata that you apply to the cluster to help you categorize and + organize them. Each tag consists of a key and an optional value. You + define both. - container_instance_arn: str | None = ... + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. """ - The Amazon Resource Name (ARN) of the container instance. For more - information about the ARN format, see [Amazon Resource Name - (ARN)](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids) - in the *Amazon ECS Developer Guide*. + settings: list[ClusterSetting] | None = ... """ - ec2_instance_id: str | None = ... + The setting to use when creating a cluster. This parameter is used to + turn on CloudWatch Container Insights for a cluster. If this value is + specified, it overrides the `containerInsights` value set with + [PutAccountSetting](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html) + or + [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html). """ - The ID of the container instance. For Amazon EC2 instances, this value - is the Amazon EC2 instance ID. For external instances, this value is the - Amazon Web Services Systems Manager managed instance ID. + configuration: ClusterConfiguration | None = ... + """The `execute` command configuration for the cluster.""" + capacity_providers: list[str] | None = ... """ - capacity_provider_name: str | None = ... - """The capacity provider that's associated with the container instance.""" - version: int = ... + The short name of one or more capacity providers to associate with the + cluster. A capacity provider must be associated with a cluster before it + can be included as part of the default capacity provider strategy of the + cluster or used in a capacity provider strategy when calling the + [CreateService](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html) + or + [RunTask](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html) + actions. + + If specifying a capacity provider that uses an Auto Scaling group, the + capacity provider must be created but not associated with another + cluster. New Auto Scaling group capacity providers can be created with + the + [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) + API operation. + + To use a Fargate capacity provider, specify either the `FARGATE` or + `FARGATE_SPOT` capacity providers. The Fargate capacity providers are + available to all accounts and only need to be associated with a cluster + to be used. + + The + [PutCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutCapacityProvider.html) + API operation is used to update the list of available capacity providers + for a cluster after the cluster is created. """ - The version counter for the container instance. Every time a container - instance experiences a change that triggers a CloudWatch event, the - version counter is incremented. If you're replicating your Amazon ECS - container instance state with CloudWatch Events, you can compare the - version of a container instance reported by the Amazon ECS APIs with the - version reported in CloudWatch Events for the container instance (inside - the `detail` object) to verify that the version in your event stream is - current. + default_capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... """ - version_info: VersionInfo | None = ... + The capacity provider strategy to set as the default for the cluster. + After a default capacity provider strategy is set for a cluster, when + you call the + [CreateService](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html) + or + [RunTask](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html) + APIs with no capacity provider strategy or launch type specified, the + default capacity provider strategy for the cluster is used. + + If a default capacity provider strategy isn't defined for a cluster + when it was created, it can be defined later with the + [PutClusterCapacityProviders](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html) + API operation. """ - The version information for the Amazon ECS container agent and Docker - daemon running on the container instance. + service_connect_defaults: ClusterServiceConnectDefaultsRequest | None = ... """ - remaining_resources: list[Resource] | None = ... + Use this parameter to set a default Service Connect namespace. After you + set a default Service Connect namespace, any new services with Service + Connect turned on that are created in the cluster are added as client + services in the namespace. This setting only applies to new services + that set the `enabled` parameter to `true` in the + `ServiceConnectConfiguration`. You can set the namespace of each service + individually in the `ServiceConnectConfiguration` to override this + default parameter. + + Tasks that run in a namespace can use short names to connect to services + in the namespace. Tasks can connect to services across all of the + clusters in the namespace. Tasks connect through a managed proxy + container that collects logs and metrics for increased visibility. Only + the tasks that Amazon ECS services create are supported with Service + Connect. For more information, see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - For CPU and memory resource types, this parameter describes the - remaining CPU and memory that wasn't already allocated to tasks and is - therefore available for new tasks. For port resource types, this - parameter describes the ports that were reserved by the Amazon ECS - container agent (at instance registration time) and any task containers - that have reserved port mappings on the host (with the `host` or - `bridge` network mode). Any port that's not specified here is available - for new tasks. + +class CreateClusterInputDict(TypedDict, total=False): + """Dictionary form of `CreateClusterInput`.""" + + cluster_name: str | None + """ + The name of your cluster. If you don't specify a name for your cluster, + you create a cluster that's named `default`. Up to 255 letters + (uppercase and lowercase), numbers, underscores, and hyphens are + allowed. + """ + tags: Sequence[Tag | TagDict] | None + """ + The metadata that you apply to the cluster to help you categorize and + organize them. Each tag consists of a key and an optional value. You + define both. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. """ - registered_resources: list[Resource] | None = ... + settings: Sequence[ClusterSetting | ClusterSettingDict] | None """ - For CPU and memory resource types, this parameter describes the amount - of each resource that was available on the container instance when the - container agent registered it with Amazon ECS. This value represents the - total amount of CPU and memory that can be allocated on this container - instance to tasks. For port resource types, this parameter describes the - ports that were reserved by the Amazon ECS container agent when it - registered the container instance with Amazon ECS. + The setting to use when creating a cluster. This parameter is used to + turn on CloudWatch Container Insights for a cluster. If this value is + specified, it overrides the `containerInsights` value set with + [PutAccountSetting](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html) + or + [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html). """ - status: str | None = ... + configuration: ClusterConfiguration | ClusterConfigurationDict | None + """The `execute` command configuration for the cluster.""" + capacity_providers: Sequence[str] | None """ - The status of the container instance. The valid values are - `REGISTERING`, `REGISTRATION_FAILED`, `ACTIVE`, `INACTIVE`, - `DEREGISTERING`, or `DRAINING`. + The short name of one or more capacity providers to associate with the + cluster. A capacity provider must be associated with a cluster before it + can be included as part of the default capacity provider strategy of the + cluster or used in a capacity provider strategy when calling the + [CreateService](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html) + or + [RunTask](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html) + actions. - If your account has opted in to the `awsvpcTrunking` account setting, - then any newly registered container instance will transition to a - `REGISTERING` status while the trunk elastic network interface is - provisioned for the instance. If the registration fails, the instance - will transition to a `REGISTRATION_FAILED` status. You can describe the - container instance and see the reason for failure in the `statusReason` - parameter. Once the container instance is terminated, the instance - transitions to a `DEREGISTERING` status while the trunk elastic network - interface is deprovisioned. The instance then transitions to an - `INACTIVE` status. + If specifying a capacity provider that uses an Auto Scaling group, the + capacity provider must be created but not associated with another + cluster. New Auto Scaling group capacity providers can be created with + the + [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) + API operation. - The `ACTIVE` status indicates that the container instance can accept - tasks. The `DRAINING` indicates that new tasks aren't placed on the - container instance and any service tasks running on the container - instance are removed if possible. For more information, see [Container - instance - draining](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-instance-draining.html) - in the *Amazon Elastic Container Service Developer Guide*. + To use a Fargate capacity provider, specify either the `FARGATE` or + `FARGATE_SPOT` capacity providers. The Fargate capacity providers are + available to all accounts and only need to be associated with a cluster + to be used. + + The + [PutCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutCapacityProvider.html) + API operation is used to update the list of available capacity providers + for a cluster after the cluster is created. """ - status_reason: str | None = ... - """The reason that the container instance reached its current status.""" - agent_connected: bool = ... + default_capacity_provider_strategy: ( + Sequence[CapacityProviderStrategyItem | CapacityProviderStrategyItemDict] | None + ) """ - This parameter returns `true` if the agent is connected to Amazon ECS. - An instance with an agent that may be unhealthy or stopped return - `false`. Only instances connected to an agent can accept task placement - requests. + The capacity provider strategy to set as the default for the cluster. + After a default capacity provider strategy is set for a cluster, when + you call the + [CreateService](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html) + or + [RunTask](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html) + APIs with no capacity provider strategy or launch type specified, the + default capacity provider strategy for the cluster is used. + + If a default capacity provider strategy isn't defined for a cluster + when it was created, it can be defined later with the + [PutClusterCapacityProviders](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html) + API operation. """ - running_tasks_count: int = ... + service_connect_defaults: ( + ClusterServiceConnectDefaultsRequest + | ClusterServiceConnectDefaultsRequestDict + | None + ) """ - The number of tasks on the container instance that have a desired status - (`desiredStatus`) of `RUNNING`. + Use this parameter to set a default Service Connect namespace. After you + set a default Service Connect namespace, any new services with Service + Connect turned on that are created in the cluster are added as client + services in the namespace. This setting only applies to new services + that set the `enabled` parameter to `true` in the + `ServiceConnectConfiguration`. You can set the namespace of each service + individually in the `ServiceConnectConfiguration` to override this + default parameter. + + Tasks that run in a namespace can use short names to connect to services + in the namespace. Tasks can connect to services across all of the + clusters in the namespace. Tasks connect through a managed proxy + container that collects logs and metrics for increased visibility. Only + the tasks that Amazon ECS services create are supported with Service + Connect. For more information, see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - pending_tasks_count: int = ... + +@dataclass(kw_only=True) +class CreateClusterOutput(_SerdeShape): + """""" + + cluster: Cluster | None = ... + """The full description of your new cluster.""" + response_metadata: ResponseMetadata = ... """ - The number of tasks on the container instance that are in the `PENDING` - status. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - agent_update_status: str | None = ... + +@dataclass(kw_only=True) +class CreateDaemonInput(_SerdeShape): + """Dataclass for CreateDaemonInput structure.""" + + daemon_name: str | None = ... """ - The status of the most recent agent update. If an update wasn't ever - requested, this value is `NULL`. + The name of the daemon. Up to 255 letters (uppercase and lowercase), + numbers, underscores, and hyphens are allowed. """ - attributes: list[Attribute] | None = ... + cluster_arn: str | None = ... + """The Amazon Resource Name (ARN) of the cluster to create the daemon in.""" + daemon_task_definition_arn: str | None = ... """ - The attributes set for the container instance, either by the Amazon ECS - container agent at instance registration or manually with the - [PutAttributes](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAttributes.html) - operation. + The Amazon Resource Name (ARN) of the daemon task definition to use for + the daemon. """ - registered_at: datetime | None = ... + capacity_provider_arns: list[str] | None = ... """ - The Unix timestamp for the time when the container instance was - registered. + The Amazon Resource Names (ARNs) of the capacity providers to associate + with the daemon. The daemon deploys tasks on container instances managed + by these capacity providers. """ - attachments: list[Attachment] | None = ... + deployment_configuration: DaemonDeploymentConfiguration | None = ... """ - The resources attached to a container instance, such as an elastic - network interface. + Optional deployment parameters that control how the daemon rolls out + updates, including the drain percentage, alarm-based rollback, and bake + time. """ tags: list[Tag] | None = ... """ - The metadata that you apply to the container instance to help you - categorize and organize them. Each tag consists of a key and an optional - value. You define both. + The metadata that you apply to the daemon to help you categorize and + organize them. Each tag consists of a key and an optional value. You + define both of them. The following basic restrictions apply to tags: @@ -2340,404 +4345,546 @@ class ContainerInstance(_SerdeShape): with this prefix. Tags with this prefix do not count against your tags per resource limit. """ - health_status: ContainerInstanceHealthStatus | None = ... - """An object representing the health status of the container instance.""" - gpu_devices: list[GpuDevice] | None = ... + propagate_tags: str | None = ... """ - The state of each GPU on the container instance, including its sharing - mode and available memory. This field is present only for container - instances that support GPU sharing. + Specifies whether to propagate the tags from the daemon to the daemon + tasks. If you don't specify a value, the tags aren't propagated. You + can only propagate tags to daemon tasks during task creation. To add + tags to a task after task creation, use the + [TagResource](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html) + API action. + """ + enable_ecs_managed_tags: bool = ... + """ + Specifies whether to turn on Amazon ECS managed tags for the tasks in + the daemon. For more information, see [Tagging your Amazon ECS + resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + enable_execute_command: bool = ... + """ + Determines whether the execute command functionality is turned on for + the daemon. If `true`, the execute command functionality is turned on + for all tasks in the daemon. + """ + client_token: str | None = ... + """ + An identifier that you provide to ensure the idempotency of the request. + It must be unique and is case sensitive. Up to 36 ASCII characters in + the range of 33-126 (inclusive) are allowed. + """ + critical: bool | None = ... """ + If the `critical` parameter of a daemon is `true`, and the daemon task + fails, stops, or becomes unhealthy, Amazon ECS drains the container + instance and stops the other tasks running on it. If the `critical` + parameter is `false`, the daemon task failure doesn't affect the other + tasks on the instance. The default value is `true`. -class ContainerInstanceField(UnknownEnumMixin, StrEnum): - TAGS = "TAGS" - CONTAINER_INSTANCE_HEALTH = "CONTAINER_INSTANCE_HEALTH" + A non-critical daemon doesn't block instance registration. The + container instance becomes active and continues to run your other tasks, + whether the daemon task fails during scale-out or during a deployment. -@dataclass(kw_only=True) -class ContainerInstanceHealthStatus(_SerdeShape): - """An object representing the health status of the container instance.""" + Amazon ECS emits an EventBridge event when a daemon task fails to start, + for both critical and non-critical daemons. - overall_status: str | None = ... + Daemon task launch failures during a deployment are still counted by the + deployment circuit breaker. The circuit breaker can roll back an + unstable target revision. """ - The overall health status of the container instance. This is an - aggregate status of all container instance health checks. + +class CreateDaemonInputDict(TypedDict, total=False): + """Dictionary form of `CreateDaemonInput`.""" + + daemon_name: Required[str] """ - details: list[InstanceHealthCheckResult] | None = ... + The name of the daemon. Up to 255 letters (uppercase and lowercase), + numbers, underscores, and hyphens are allowed. """ - An array of objects representing the details of the container instance - health status. + cluster_arn: str | None + """The Amazon Resource Name (ARN) of the cluster to create the daemon in.""" + daemon_task_definition_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the daemon task definition to use for + the daemon. """ + capacity_provider_arns: Required[Sequence[str]] + """ + The Amazon Resource Names (ARNs) of the capacity providers to associate + with the daemon. The daemon deploys tasks on container instances managed + by these capacity providers. + """ + deployment_configuration: ( + DaemonDeploymentConfiguration | DaemonDeploymentConfigurationDict | None + ) + """ + Optional deployment parameters that control how the daemon rolls out + updates, including the drain percentage, alarm-based rollback, and bake + time. + """ + tags: Sequence[Tag | TagDict] | None + """ + The metadata that you apply to the daemon to help you categorize and + organize them. Each tag consists of a key and an optional value. You + define both of them. -class ContainerInstanceStatus(UnknownEnumMixin, StrEnum): - ACTIVE = "ACTIVE" - DRAINING = "DRAINING" - REGISTERING = "REGISTERING" - DEREGISTERING = "DEREGISTERING" - REGISTRATION_FAILED = "REGISTRATION_FAILED" + The following basic restrictions apply to tags: -@dataclass(kw_only=True) -class ContainerOverride(_SerdeShape): - """ - The overrides that are sent to a container. An empty container override - can be passed in. An example of an empty container override is - `{"containerOverrides": [ ] }`. If a non-empty container override is - specified, the `name` parameter must be included. + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. - You can use Secrets Manager or Amazon Web Services Systems Manager - Parameter Store to store the sensitive data. For more information, see - [Retrieve secrets through environment - variables](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/secrets-envvar.html) - in the Amazon ECS Developer Guide. - """ + - Maximum key length - 128 Unicode characters in UTF-8 - name: str | None = ... - """ - The name of the container that receives the override. This parameter is - required if any override is specified. + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. """ - command: list[str] | None = ... + propagate_tags: str | None """ - The command to send to the container that overrides the default command - from the Docker image or the task definition. You must also specify a - container name. + Specifies whether to propagate the tags from the daemon to the daemon + tasks. If you don't specify a value, the tags aren't propagated. You + can only propagate tags to daemon tasks during task creation. To add + tags to a task after task creation, use the + [TagResource](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html) + API action. """ - environment: list[KeyValuePair] | None = ... + enable_ecs_managed_tags: bool | None """ - The environment variables to send to the container. You can add new - environment variables, which are added to the container at launch, or - you can override the existing environment variables from the Docker - image or the task definition. You must also specify a container name. + Specifies whether to turn on Amazon ECS managed tags for the tasks in + the daemon. For more information, see [Tagging your Amazon ECS + resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - environment_files: list[EnvironmentFile] | None = ... + enable_execute_command: bool | None """ - A list of files containing the environment variables to pass to a - container, instead of the value from the container definition. + Determines whether the execute command functionality is turned on for + the daemon. If `true`, the execute command functionality is turned on + for all tasks in the daemon. """ - cpu: int | None = ... + client_token: str | None """ - The number of `cpu` units reserved for the container, instead of the - default value from the task definition. You must also specify a - container name. + An identifier that you provide to ensure the idempotency of the request. + It must be unique and is case sensitive. Up to 36 ASCII characters in + the range of 33-126 (inclusive) are allowed. """ - memory: int | None = ... + critical: bool | None """ - The hard limit (in MiB) of memory to present to the container, instead - of the default value from the task definition. If your container - attempts to exceed the memory specified here, the container is killed. - You must also specify a container name. + If the `critical` parameter of a daemon is `true`, and the daemon task + fails, stops, or becomes unhealthy, Amazon ECS drains the container + instance and stops the other tasks running on it. If the `critical` + parameter is `false`, the daemon task failure doesn't affect the other + tasks on the instance. The default value is `true`. + + A non-critical daemon doesn't block instance registration. The + container instance becomes active and continues to run your other tasks, + whether the daemon task fails during scale-out or during a deployment. + + Amazon ECS emits an EventBridge event when a daemon task fails to start, + for both critical and non-critical daemons. + + Daemon task launch failures during a deployment are still counted by the + deployment circuit breaker. The circuit breaker can roll back an + unstable target revision. """ - memory_reservation: int | None = ... + +@dataclass(kw_only=True) +class CreateDaemonOutput(_SerdeShape): + """Dataclass for CreateDaemonOutput structure.""" + + daemon_arn: str | None = ... + """The Amazon Resource Name (ARN) of the daemon.""" + status: str | None = ... + """The status of the daemon.""" + created_at: datetime | None = ... + """The Unix timestamp for the time when the daemon was created.""" + deployment_arn: str | None = ... """ - The soft limit (in MiB) of memory to reserve for the container, instead - of the default value from the task definition. You must also specify a - container name. + The Amazon Resource Name (ARN) of the initial daemon deployment. This + deployment places daemon tasks on each container instance of the + specified capacity providers. """ - resource_requirements: list[ResourceRequirement] | None = ... + response_metadata: ResponseMetadata = ... """ - The type and amount of a resource to assign to a container, instead of - the default value from the task definition. The supported resources are - GPUs and Neuron devices. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) -class ContainerRestartPolicy(_SerdeShape): +class CreatedAt(_SerdeShape): """ - You can enable a restart policy for each container defined in your task - definition, to overcome transient failures faster and maintain task - availability. When you enable a restart policy for a container, Amazon - ECS can restart the container if it exits, without needing to replace - the task. For more information, see [Restart individual containers in - Amazon ECS tasks with container restart - policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) - in the *Amazon Elastic Container Service Developer Guide*. + The optional filter to narrow the `ListServiceDeployment` results. + + If you do not specify a value, service deployments that were created + before the current time are included in the result. """ - enabled: bool - """Specifies whether a restart policy is enabled for the container.""" - ignored_exit_codes: list[int] | None = ... + before: datetime | None = ... """ - A list of exit codes that Amazon ECS will ignore and not attempt a - restart on. You can specify a maximum of 50 container exit codes. By - default, Amazon ECS does not ignore any exit codes. + Include service deployments in the result that were created before this + time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS. """ - restart_attempt_period: int | None = ... + after: datetime | None = ... """ - A period of time (in seconds) that the container must run for before a - restart can be attempted. A container can be restarted only once every - `restartAttemptPeriod` seconds. If a container isn't able to run for - this time period and exits early, it will not be restarted. You can set - a minimum `restartAttemptPeriod` of 60 seconds and a maximum - `restartAttemptPeriod` of 1800 seconds. By default, a container must run - for 300 seconds before it can be restarted. + Include service deployments in the result that were created after this + time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS. """ -@dataclass(kw_only=True) -class ContainerStateChange(_SerdeShape): - """An object that represents a change in state for a container.""" +class CreatedAtDict(TypedDict, total=False): + """Dictionary form of `CreatedAt`.""" - container_name: str | None = ... - """The name of the container.""" - image_digest: str | None = ... - """The container image SHA 256 digest.""" - runtime_id: str | None = ... - """The ID of the Docker container.""" - exit_code: int | None = ... + before: datetime | None """ - The exit code for the container, if the state change is a result of the - container exiting. + Include service deployments in the result that were created before this + time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS. + """ + after: datetime | None + """ + Include service deployments in the result that were created after this + time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS. """ - network_bindings: list[NetworkBinding] | None = ... - """Any network bindings that are associated with the container.""" - reason: str | None = ... - """The reason for the state change.""" - status: str | None = ... - """The status of the container.""" @dataclass(kw_only=True) -class ContinueServiceDeploymentInput(_SerdeShape): - """Dataclass for ContinueServiceDeploymentInput structure.""" +class CreateExpressGatewayServiceInput(_SerdeShape): + """Dataclass for CreateExpressGatewayServiceInput structure.""" - service_deployment_arn: str | None = ... - """The ARN of the service deployment to continue or roll back.""" - hook_id: str | None = ... + execution_role_arn: str | None = ... """ - The ID of the paused lifecycle hook to act on. You can find the `hookId` - by calling - [DescribeServiceDeployments](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html) - and inspecting the `lifecycleHookDetails` field of the service - deployment. + The Amazon Resource Name (ARN) of the task execution role that grants + the Amazon ECS container agent permission to make Amazon Web Services + API calls on your behalf. This role is required for Amazon ECS to pull + container images from Amazon ECR, send container logs to Amazon + CloudWatch Logs, and retrieve sensitive data from Amazon Web Services + Systems Manager Parameter Store or Amazon Web Services Secrets Manager. + + The execution role must include the `AmazonECSTaskExecutionRolePolicy` + managed policy or equivalent permissions. For Express services, this + role is used during task startup and runtime for container management + operations. """ - action: str | None = ... + infrastructure_role_arn: str | None = ... """ - The action to take on the paused lifecycle hook. Valid values are: - - - `CONTINUE` - Proceeds the deployment to the next lifecycle stage. - - - `ROLLBACK` - Rolls back the deployment to the previous service - revision. + The Amazon Resource Name (ARN) of the infrastructure role that grants + Amazon ECS permission to create and manage Amazon Web Services resources + on your behalf for the Express service. This role is used to provision + and manage Application Load Balancers, target groups, security groups, + auto-scaling policies, and other Amazon Web Services infrastructure + components. - If no value is specified, the default action is `CONTINUE`. + The infrastructure role must include permissions for Elastic Load + Balancing, Application Auto Scaling, Amazon EC2 (for security groups), + and other services required for managed infrastructure. This role is + only used during Express service creation, updates, and deletion + operations. """ + service_name: str | None = ... + """ + The name of the Express service. This name must be unique within the + specified cluster and can contain up to 255 letters (uppercase and + lowercase), numbers, underscores, and hyphens. The name is used to + identify the service in the Amazon ECS console and API operations. -@dataclass(kw_only=True) -class ContinueServiceDeploymentOutput(_SerdeShape): - """Dataclass for ContinueServiceDeploymentOutput structure.""" - - service_deployment_arn: str | None = ... - """The ARN of the service deployment that was continued or rolled back.""" - response_metadata: ResponseMetadata = ... + If you don't specify a service name, Amazon ECS generates a unique name + for the service. The service name becomes part of the service ARN and + cannot be changed after the service is created. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + cluster: str | None = ... """ + The short name or full Amazon Resource Name (ARN) of the cluster on + which to create the Express service. If you do not specify a cluster, + the `default` cluster is assumed. + """ + health_check_path: str | None = ... + """ + The path on the container that the Application Load Balancer uses for + health checks. This should be a valid HTTP endpoint that returns a + successful response (HTTP 200) when the application is healthy. -class CPUArchitecture(UnknownEnumMixin, StrEnum): - X86_64 = "X86_64" - ARM64 = "ARM64" - -class CpuManufacturer(UnknownEnumMixin, StrEnum): - INTEL = "intel" - AMD = "amd" - AMAZON_WEB_SERVICES = "amazon-web-services" + If not specified, the default health check path is `/ping`. The health + check path must start with a forward slash and can include query + parameters. Examples: `/health`, `/api/status`, `/ping?format=json`. + """ + primary_container: ExpressGatewayContainer | None = ... + """ + The primary container configuration for the Express service. This + defines the main application container that will receive traffic from + the Application Load Balancer. -@dataclass(kw_only=True) -class CreateCapacityProviderInput(_SerdeShape): - """Dataclass for CreateCapacityProviderInput structure.""" + The primary container must specify at minimum a container image. You can + also configure the container port (defaults to 80), logging + configuration, environment variables, secrets, and startup commands. The + container image can be from Amazon ECR, Docker Hub, or any other + container registry accessible to your execution role. + """ + task_role_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the IAM role that containers in this + task can assume. This role allows your application code to access other + Amazon Web Services services securely. - name: str | None = ... + The task role is different from the execution role. While the execution + role is used by the Amazon ECS agent to set up the task, the task role + is used by your application code running inside the container to make + Amazon Web Services API calls. If your application doesn't need to + access Amazon Web Services services, you can omit this parameter. """ - The name of the capacity provider. Up to 255 characters are allowed. - They include letters (both upper and lowercase letters), numbers, - underscores (_), and hyphens (-). The name can't be prefixed with - \"`aws`\", \"`ecs`\", or \"`fargate`\". + network_configuration: ExpressGatewayServiceNetworkConfiguration | None = ... """ - cluster: str | None = ... + The network configuration for the Express service tasks. This specifies + the VPC subnets and security groups for the tasks. + + For Express services, you can specify custom security groups and + subnets. If not provided, Amazon ECS will use the default VPC + configuration and create appropriate security groups automatically. The + network configuration determines how your service integrates with your + VPC and what network access it has. """ - The name of the cluster to associate with the capacity provider. When - you create a capacity provider with Amazon ECS Managed Instances, it - becomes available only within the specified cluster. + cpu: str | None = ... """ - auto_scaling_group_provider: AutoScalingGroupProvider | None = ... - """The details of the Auto Scaling group for the capacity provider.""" - managed_instances_provider: CreateManagedInstancesProviderConfiguration | None = ... + The number of CPU units used by the task. This parameter determines the + CPU allocation for each task in the Express service. The default value + for an Express service is 256 (.25 vCPU). """ - The configuration for the Amazon ECS Managed Instances provider. This - configuration specifies how Amazon ECS manages Amazon EC2 instances on - your behalf, including the infrastructure role, instance launch - template, and tag propagation settings. + memory: str | None = ... """ - tags: list[Tag] | None = ... + The amount of memory (in MiB) used by the task. This parameter + determines the memory allocation for each task in the Express service. + The default value for an express service is 512 MiB. """ - The metadata that you apply to the capacity provider to categorize and - organize them more conveniently. Each tag consists of a key and an - optional value. You define both of them. + cpu_architecture: str | None = ... + """ + The CPU architecture that the task runs on. If you don't specify a + value, the default is `X86_64`. - The following basic restrictions apply to tags: + Valid values: - - Maximum number of tags per resource - 50 + - `X86_64` - The x86 64-bit architecture. - - For each resource, each tag key must be unique, and each tag key can - have only one value. + - `ARM64` - The 64-bit ARM architecture. - - Maximum key length - 128 Unicode characters in UTF-8 + Ensure that the container image you specify supports the architecture + you choose. The operating system family for an Express service is always + `LINUX`. - - Maximum value length - 256 Unicode characters in UTF-8 + You can't specify `cpuArchitecture` together with `taskDefinitionArn`. + """ + scaling_target: ExpressGatewayScalingTarget | None = ... + """ + The auto-scaling configuration for the Express service. This defines how + the service automatically adjusts the number of running tasks based on + demand. - - If your tagging schema is used across multiple services and resources, - remember that other services may have restrictions on allowed - characters. Generally allowed characters are: letters, numbers, and - spaces representable in UTF-8, and the following characters: + - = . - _ : / @. + You can specify the minimum and maximum number of tasks, the scaling + metric (CPU utilization, memory utilization, or request count per + target), and the target value for the metric. If not specified, the + default target value for an Express service is 60. + """ + tags: list[Tag] | None = ... + """ + The metadata that you apply to the Express service to help categorize + and organize it. Each tag consists of a key and an optional value. You + can apply up to 50 tags to a service. + """ + task_definition_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of a task definition to use to create the + Express Gateway service. This allows you to manage your own task + definition, giving you more control over the service configuration such + as adding sidecar containers. - - Tag keys and values are case-sensitive. + The task definition must have a container named `Main` with a single TCP + port mapping that includes a container port and port name. The task + definition must also have `FARGATE` compatibility. - - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of - such as a prefix for either keys or values as it is reserved for - Amazon Web Services use. You cannot edit or delete tag keys or values - with this prefix. Tags with this prefix do not count against your tags - per resource limit. + If you provide a task definition ARN, you cannot also specify + `primaryContainer`, `executionRoleArn`, `taskRoleArn`, `cpu`, `memory`, + or `cpuArchitecture`. """ -@dataclass(kw_only=True) -class CreateCapacityProviderOutput(_SerdeShape): - """Dataclass for CreateCapacityProviderOutput structure.""" +class CreateExpressGatewayServiceInputDict(TypedDict, total=False): + """Dictionary form of `CreateExpressGatewayServiceInput`.""" - capacity_provider: CapacityProvider | None = ... - """The full description of the new capacity provider.""" - response_metadata: ResponseMetadata = ... + execution_role_arn: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The Amazon Resource Name (ARN) of the task execution role that grants + the Amazon ECS container agent permission to make Amazon Web Services + API calls on your behalf. This role is required for Amazon ECS to pull + container images from Amazon ECR, send container logs to Amazon + CloudWatch Logs, and retrieve sensitive data from Amazon Web Services + Systems Manager Parameter Store or Amazon Web Services Secrets Manager. + + The execution role must include the `AmazonECSTaskExecutionRolePolicy` + managed policy or equivalent permissions. For Express services, this + role is used during task startup and runtime for container management + operations. """ + infrastructure_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the infrastructure role that grants + Amazon ECS permission to create and manage Amazon Web Services resources + on your behalf for the Express service. This role is used to provision + and manage Application Load Balancers, target groups, security groups, + auto-scaling policies, and other Amazon Web Services infrastructure + components. -@dataclass(kw_only=True) -class CreateClusterInput(_SerdeShape): - """""" + The infrastructure role must include permissions for Elastic Load + Balancing, Application Auto Scaling, Amazon EC2 (for security groups), + and other services required for managed infrastructure. This role is + only used during Express service creation, updates, and deletion + operations. + """ + service_name: str | None + """ + The name of the Express service. This name must be unique within the + specified cluster and can contain up to 255 letters (uppercase and + lowercase), numbers, underscores, and hyphens. The name is used to + identify the service in the Amazon ECS console and API operations. - cluster_name: str | None = ... + If you don't specify a service name, Amazon ECS generates a unique name + for the service. The service name becomes part of the service ARN and + cannot be changed after the service is created. """ - The name of your cluster. If you don't specify a name for your cluster, - you create a cluster that's named `default`. Up to 255 letters - (uppercase and lowercase), numbers, underscores, and hyphens are - allowed. + cluster: str | None """ - tags: list[Tag] | None = ... + The short name or full Amazon Resource Name (ARN) of the cluster on + which to create the Express service. If you do not specify a cluster, + the `default` cluster is assumed. """ - The metadata that you apply to the cluster to help you categorize and - organize them. Each tag consists of a key and an optional value. You - define both. - - The following basic restrictions apply to tags: - - - Maximum number of tags per resource - 50 - - - For each resource, each tag key must be unique, and each tag key can - have only one value. - - - Maximum key length - 128 Unicode characters in UTF-8 + health_check_path: str | None + """ + The path on the container that the Application Load Balancer uses for + health checks. This should be a valid HTTP endpoint that returns a + successful response (HTTP 200) when the application is healthy. - - Maximum value length - 256 Unicode characters in UTF-8 + If not specified, the default health check path is `/ping`. The health + check path must start with a forward slash and can include query + parameters. Examples: `/health`, `/api/status`, `/ping?format=json`. + """ + primary_container: ExpressGatewayContainer | ExpressGatewayContainerDict | None + """ + The primary container configuration for the Express service. This + defines the main application container that will receive traffic from + the Application Load Balancer. - - If your tagging schema is used across multiple services and resources, - remember that other services may have restrictions on allowed - characters. Generally allowed characters are: letters, numbers, and - spaces representable in UTF-8, and the following characters: + - = . - _ : / @. + The primary container must specify at minimum a container image. You can + also configure the container port (defaults to 80), logging + configuration, environment variables, secrets, and startup commands. The + container image can be from Amazon ECR, Docker Hub, or any other + container registry accessible to your execution role. + """ + task_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that containers in this + task can assume. This role allows your application code to access other + Amazon Web Services services securely. - - Tag keys and values are case-sensitive. + The task role is different from the execution role. While the execution + role is used by the Amazon ECS agent to set up the task, the task role + is used by your application code running inside the container to make + Amazon Web Services API calls. If your application doesn't need to + access Amazon Web Services services, you can omit this parameter. + """ + network_configuration: ( + ExpressGatewayServiceNetworkConfiguration + | ExpressGatewayServiceNetworkConfigurationDict + | None + ) + """ + The network configuration for the Express service tasks. This specifies + the VPC subnets and security groups for the tasks. - - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of - such as a prefix for either keys or values as it is reserved for - Amazon Web Services use. You cannot edit or delete tag keys or values - with this prefix. Tags with this prefix do not count against your tags - per resource limit. + For Express services, you can specify custom security groups and + subnets. If not provided, Amazon ECS will use the default VPC + configuration and create appropriate security groups automatically. The + network configuration determines how your service integrates with your + VPC and what network access it has. """ - settings: list[ClusterSetting] | None = ... + cpu: str | None """ - The setting to use when creating a cluster. This parameter is used to - turn on CloudWatch Container Insights for a cluster. If this value is - specified, it overrides the `containerInsights` value set with - [PutAccountSetting](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html) - or - [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html). + The number of CPU units used by the task. This parameter determines the + CPU allocation for each task in the Express service. The default value + for an Express service is 256 (.25 vCPU). """ - configuration: ClusterConfiguration | None = ... - """The `execute` command configuration for the cluster.""" - capacity_providers: list[str] | None = ... + memory: str | None """ - The short name of one or more capacity providers to associate with the - cluster. A capacity provider must be associated with a cluster before it - can be included as part of the default capacity provider strategy of the - cluster or used in a capacity provider strategy when calling the - [CreateService](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html) - or - [RunTask](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html) - actions. + The amount of memory (in MiB) used by the task. This parameter + determines the memory allocation for each task in the Express service. + The default value for an express service is 512 MiB. + """ + cpu_architecture: str | None + """ + The CPU architecture that the task runs on. If you don't specify a + value, the default is `X86_64`. + + Valid values: - If specifying a capacity provider that uses an Auto Scaling group, the - capacity provider must be created but not associated with another - cluster. New Auto Scaling group capacity providers can be created with - the - [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) - API operation. + - `X86_64` - The x86 64-bit architecture. - To use a Fargate capacity provider, specify either the `FARGATE` or - `FARGATE_SPOT` capacity providers. The Fargate capacity providers are - available to all accounts and only need to be associated with a cluster - to be used. + - `ARM64` - The 64-bit ARM architecture. - The - [PutCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutCapacityProvider.html) - API operation is used to update the list of available capacity providers - for a cluster after the cluster is created. + Ensure that the container image you specify supports the architecture + you choose. The operating system family for an Express service is always + `LINUX`. + + You can't specify `cpuArchitecture` together with `taskDefinitionArn`. """ - default_capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + scaling_target: ExpressGatewayScalingTarget | ExpressGatewayScalingTargetDict | None """ - The capacity provider strategy to set as the default for the cluster. - After a default capacity provider strategy is set for a cluster, when - you call the - [CreateService](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html) - or - [RunTask](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html) - APIs with no capacity provider strategy or launch type specified, the - default capacity provider strategy for the cluster is used. + The auto-scaling configuration for the Express service. This defines how + the service automatically adjusts the number of running tasks based on + demand. - If a default capacity provider strategy isn't defined for a cluster - when it was created, it can be defined later with the - [PutClusterCapacityProviders](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html) - API operation. + You can specify the minimum and maximum number of tasks, the scaling + metric (CPU utilization, memory utilization, or request count per + target), and the target value for the metric. If not specified, the + default target value for an Express service is 60. """ - service_connect_defaults: ClusterServiceConnectDefaultsRequest | None = ... + tags: Sequence[Tag | TagDict] | None """ - Use this parameter to set a default Service Connect namespace. After you - set a default Service Connect namespace, any new services with Service - Connect turned on that are created in the cluster are added as client - services in the namespace. This setting only applies to new services - that set the `enabled` parameter to `true` in the - `ServiceConnectConfiguration`. You can set the namespace of each service - individually in the `ServiceConnectConfiguration` to override this - default parameter. + The metadata that you apply to the Express service to help categorize + and organize it. Each tag consists of a key and an optional value. You + can apply up to 50 tags to a service. + """ + task_definition_arn: str | None + """ + The Amazon Resource Name (ARN) of a task definition to use to create the + Express Gateway service. This allows you to manage your own task + definition, giving you more control over the service configuration such + as adding sidecar containers. - Tasks that run in a namespace can use short names to connect to services - in the namespace. Tasks can connect to services across all of the - clusters in the namespace. Tasks connect through a managed proxy - container that collects logs and metrics for increased visibility. Only - the tasks that Amazon ECS services create are supported with Service - Connect. For more information, see [Service - Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) - in the *Amazon Elastic Container Service Developer Guide*. + The task definition must have a container named `Main` with a single TCP + port mapping that includes a container port and port name. The task + definition must also have `FARGATE` compatibility. + + If you provide a task definition ARN, you cannot also specify + `primaryContainer`, `executionRoleArn`, `taskRoleArn`, `cpu`, `memory`, + or `cpuArchitecture`. """ @dataclass(kw_only=True) -class CreateClusterOutput(_SerdeShape): - """""" +class CreateExpressGatewayServiceOutput(_SerdeShape): + """Dataclass for CreateExpressGatewayServiceOutput structure.""" - cluster: Cluster | None = ... - """The full description of your new cluster.""" + service: ECSExpressGatewayService | None = ... + """ + The full description of your Express service following the create + operation. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2747,128 +4894,112 @@ class CreateClusterOutput(_SerdeShape): """ @dataclass(kw_only=True) -class CreateDaemonInput(_SerdeShape): - """Dataclass for CreateDaemonInput structure.""" +class CreateGatewayInput(_SerdeShape): + """Dataclass for CreateGatewayInput structure.""" - daemon_name: str | None = ... + name: str | None = ... """ - The name of the daemon. Up to 255 letters (uppercase and lowercase), - numbers, underscores, and hyphens are allowed. + The name for the gateway. The name must be unique within your account + and can be up to 255 characters. """ - cluster_arn: str | None = ... - """The Amazon Resource Name (ARN) of the cluster to create the daemon in.""" - daemon_task_definition_arn: str | None = ... + infrastructure_role_arn: str | None = ... """ - The Amazon Resource Name (ARN) of the daemon task definition to use for - the daemon. + The Amazon Resource Name (ARN) of the IAM role that the gateway assumes + to create and manage infrastructure on your behalf. """ - capacity_provider_arns: list[str] | None = ... + client_token: str | None = ... """ - The Amazon Resource Names (ARNs) of the capacity providers to associate - with the daemon. The daemon deploys tasks on container instances managed - by these capacity providers. + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If this token matches a + previous request, the service ignores the request, but does not return + an error. + + This field is autopopulated if not provided. """ - deployment_configuration: DaemonDeploymentConfiguration | None = ... + deletion_protection: bool | None = ... """ - Optional deployment parameters that control how the daemon rolls out - updates, including the drain percentage, alarm-based rollback, and bake - time. + Specifies whether to enable deletion protection for the gateway. When + enabled, the gateway can't be deleted, and the gateway propagates this + setting to the load balancers it manages. The default is `true`. + """ + configuration: GatewayConfiguration | None = ... + """ + The type-specific configuration for the gateway. Exactly one + configuration variant must be set, and it determines the gateway type. + For example, `hostSharedAlb` configures a gateway that uses Application + Load Balancers with host-based routing. """ tags: list[Tag] | None = ... """ - The metadata that you apply to the daemon to help you categorize and - organize them. Each tag consists of a key and an optional value. You - define both of them. - - The following basic restrictions apply to tags: - - - Maximum number of tags per resource - 50 - - - For each resource, each tag key must be unique, and each tag key can - have only one value. - - - Maximum key length - 128 Unicode characters in UTF-8 - - - Maximum value length - 256 Unicode characters in UTF-8 - - - If your tagging schema is used across multiple services and resources, - remember that other services may have restrictions on allowed - characters. Generally allowed characters are: letters, numbers, and - spaces representable in UTF-8, and the following characters: + - = . - _ : / @. + The metadata that you apply to the gateway to help you categorize and + organize it. Each tag consists of a key and an optional value. Depending + on `propagateTags`, these tags can be applied to the infrastructure the + gateway manages. + """ + propagate_tags: str | None = ... + """ + Specifies whether to propagate the tags from the gateway to the + infrastructure that the gateway manages. The default is `GATEWAY`. + """ - - Tag keys and values are case-sensitive. +class CreateGatewayInputDict(TypedDict, total=False): + """Dictionary form of `CreateGatewayInput`.""" - - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of - such as a prefix for either keys or values as it is reserved for - Amazon Web Services use. You cannot edit or delete tag keys or values - with this prefix. Tags with this prefix do not count against your tags - per resource limit. + name: Required[str] """ - propagate_tags: str | None = ... + The name for the gateway. The name must be unique within your account + and can be up to 255 characters. """ - Specifies whether to propagate the tags from the daemon to the daemon - tasks. If you don't specify a value, the tags aren't propagated. You - can only propagate tags to daemon tasks during task creation. To add - tags to a task after task creation, use the - [TagResource](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html) - API action. + infrastructure_role_arn: Required[str] """ - enable_ecs_managed_tags: bool = ... + The Amazon Resource Name (ARN) of the IAM role that the gateway assumes + to create and manage infrastructure on your behalf. """ - Specifies whether to turn on Amazon ECS managed tags for the tasks in - the daemon. For more information, see [Tagging your Amazon ECS - resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) - in the *Amazon Elastic Container Service Developer Guide*. + client_token: str | None """ - enable_execute_command: bool = ... + A unique, case-sensitive identifier that you provide to ensure that the + operation completes no more than one time. If this token matches a + previous request, the service ignores the request, but does not return + an error. + + This field is autopopulated if not provided. """ - Determines whether the execute command functionality is turned on for - the daemon. If `true`, the execute command functionality is turned on - for all tasks in the daemon. + deletion_protection: bool | None """ - client_token: str | None = ... + Specifies whether to enable deletion protection for the gateway. When + enabled, the gateway can't be deleted, and the gateway propagates this + setting to the load balancers it manages. The default is `true`. """ - An identifier that you provide to ensure the idempotency of the request. - It must be unique and is case sensitive. Up to 36 ASCII characters in - the range of 33-126 (inclusive) are allowed. + configuration: Required[GatewayConfiguration | GatewayConfigurationDict] """ - critical: bool | None = ... + The type-specific configuration for the gateway. Exactly one + configuration variant must be set, and it determines the gateway type. + For example, `hostSharedAlb` configures a gateway that uses Application + Load Balancers with host-based routing. """ - If the `critical` parameter of a daemon is `true`, and the daemon task - fails, stops, or becomes unhealthy, Amazon ECS drains the container - instance and stops the other tasks running on it. If the `critical` - parameter is `false`, the daemon task failure doesn't affect the other - tasks on the instance. The default value is `true`. - - A non-critical daemon doesn't block instance registration. The - container instance becomes active and continues to run your other tasks, - whether the daemon task fails during scale-out or during a deployment. - - Amazon ECS emits an EventBridge event when a daemon task fails to start, - for both critical and non-critical daemons. - - Daemon task launch failures during a deployment are still counted by the - deployment circuit breaker. The circuit breaker can roll back an - unstable target revision. + tags: Sequence[Tag | TagDict] | None + """ + The metadata that you apply to the gateway to help you categorize and + organize it. Each tag consists of a key and an optional value. Depending + on `propagateTags`, these tags can be applied to the infrastructure the + gateway manages. + """ + propagate_tags: str | None + """ + Specifies whether to propagate the tags from the gateway to the + infrastructure that the gateway manages. The default is `GATEWAY`. """ @dataclass(kw_only=True) -class CreateDaemonOutput(_SerdeShape): - """Dataclass for CreateDaemonOutput structure.""" +class CreateGatewayOutput(_SerdeShape): + """Dataclass for CreateGatewayOutput structure.""" - daemon_arn: str | None = ... - """The Amazon Resource Name (ARN) of the daemon.""" + gateway_arn: str | None = ... + """The Amazon Resource Name (ARN) of the gateway.""" + name: str | None = ... + """The name of the gateway.""" status: str | None = ... - """The status of the daemon.""" - created_at: datetime | None = ... - """The Unix timestamp for the time when the daemon was created.""" - deployment_arn: str | None = ... - """ - The Amazon Resource Name (ARN) of the initial daemon deployment. This - deployment places daemon tasks on each container instance of the - specified capacity providers. - """ + """The status of the gateway. A newly created gateway is always `ACTIVE`.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2877,339 +5008,517 @@ class CreateDaemonOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class CreatedAt(_SerdeShape): +@dataclass(kw_only=True) +class CreateManagedInstancesProviderConfiguration(_SerdeShape): + """ + The configuration for creating a Amazon ECS Managed Instances provider. + This specifies how Amazon ECS should manage Amazon EC2 instances, + including the infrastructure role, instance launch template, and whether + to propagate tags from the capacity provider to the instances. + """ + + infrastructure_role_arn: str """ - The optional filter to narrow the `ListServiceDeployment` results. + The Amazon Resource Name (ARN) of the infrastructure role that Amazon + ECS uses to manage instances on your behalf. This role must have + permissions to launch, terminate, and manage Amazon EC2 instances, as + well as access to other Amazon Web Services services required for Amazon + ECS Managed Instances functionality. - If you do not specify a value, service deployments that were created - before the current time are included in the result. + For more information, see [Amazon ECS infrastructure IAM + role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) + in the *Amazon ECS Developer Guide*. """ + instance_launch_template: InstanceLaunchTemplate + """ + The launch template configuration that specifies how Amazon ECS should + launch Amazon EC2 instances. This includes the instance profile, network + configuration, storage settings, and instance requirements for + attribute-based instance type selection. - before: datetime | None = ... + For more information, see [Store instance launch parameters in Amazon + EC2 launch + templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) + in the *Amazon EC2 User Guide*. """ - Include service deployments in the result that were created before this - time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS. + propagate_tags: str | None = ... """ - after: datetime | None = ... + Specifies whether to propagate tags from the capacity provider to the + Amazon ECS Managed Instances. When enabled, tags applied to the capacity + provider are automatically applied to all instances launched by this + provider. """ - Include service deployments in the result that were created after this - time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS. + infrastructure_optimization: InfrastructureOptimization | None = ... + """ + Defines how Amazon ECS Managed Instances optimizes the infrastastructure + in your capacity provider. Provides control over the delay between when + EC2 instances become idle or underutilized and when Amazon ECS optimizes + them. + """ + auto_repair_configuration: AutoRepairConfiguration | None = ... + """ + The auto repair configuration for the Amazon ECS Managed Instances + capacity provider. Use this to enable or disable automatic replacement + of container instances that are detected as unhealthy. """ -@dataclass(kw_only=True) -class CreateExpressGatewayServiceInput(_SerdeShape): - """Dataclass for CreateExpressGatewayServiceInput structure.""" +class CreateManagedInstancesProviderConfigurationDict(TypedDict, total=False): + """Dictionary form of `CreateManagedInstancesProviderConfiguration`.""" - execution_role_arn: str | None = ... + infrastructure_role_arn: Required[str] """ - The Amazon Resource Name (ARN) of the task execution role that grants - the Amazon ECS container agent permission to make Amazon Web Services - API calls on your behalf. This role is required for Amazon ECS to pull - container images from Amazon ECR, send container logs to Amazon - CloudWatch Logs, and retrieve sensitive data from Amazon Web Services - Systems Manager Parameter Store or Amazon Web Services Secrets Manager. + The Amazon Resource Name (ARN) of the infrastructure role that Amazon + ECS uses to manage instances on your behalf. This role must have + permissions to launch, terminate, and manage Amazon EC2 instances, as + well as access to other Amazon Web Services services required for Amazon + ECS Managed Instances functionality. - The execution role must include the `AmazonECSTaskExecutionRolePolicy` - managed policy or equivalent permissions. For Express services, this - role is used during task startup and runtime for container management - operations. + For more information, see [Amazon ECS infrastructure IAM + role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) + in the *Amazon ECS Developer Guide*. """ - infrastructure_role_arn: str | None = ... + instance_launch_template: Required[ + InstanceLaunchTemplate | InstanceLaunchTemplateDict + ] """ - The Amazon Resource Name (ARN) of the infrastructure role that grants - Amazon ECS permission to create and manage Amazon Web Services resources - on your behalf for the Express service. This role is used to provision - and manage Application Load Balancers, target groups, security groups, - auto-scaling policies, and other Amazon Web Services infrastructure - components. + The launch template configuration that specifies how Amazon ECS should + launch Amazon EC2 instances. This includes the instance profile, network + configuration, storage settings, and instance requirements for + attribute-based instance type selection. - The infrastructure role must include permissions for Elastic Load - Balancing, Application Auto Scaling, Amazon EC2 (for security groups), - and other services required for managed infrastructure. This role is - only used during Express service creation, updates, and deletion - operations. + For more information, see [Store instance launch parameters in Amazon + EC2 launch + templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) + in the *Amazon EC2 User Guide*. """ - service_name: str | None = ... + propagate_tags: str | None """ - The name of the Express service. This name must be unique within the - specified cluster and can contain up to 255 letters (uppercase and - lowercase), numbers, underscores, and hyphens. The name is used to - identify the service in the Amazon ECS console and API operations. - - If you don't specify a service name, Amazon ECS generates a unique name - for the service. The service name becomes part of the service ARN and - cannot be changed after the service is created. + Specifies whether to propagate tags from the capacity provider to the + Amazon ECS Managed Instances. When enabled, tags applied to the capacity + provider are automatically applied to all instances launched by this + provider. """ - cluster: str | None = ... + infrastructure_optimization: ( + InfrastructureOptimization | InfrastructureOptimizationDict | None + ) """ - The short name or full Amazon Resource Name (ARN) of the cluster on - which to create the Express service. If you do not specify a cluster, - the `default` cluster is assumed. + Defines how Amazon ECS Managed Instances optimizes the infrastastructure + in your capacity provider. Provides control over the delay between when + EC2 instances become idle or underutilized and when Amazon ECS optimizes + them. """ - health_check_path: str | None = ... + auto_repair_configuration: ( + AutoRepairConfiguration | AutoRepairConfigurationDict | None + ) + """ + The auto repair configuration for the Amazon ECS Managed Instances + capacity provider. Use this to enable or disable automatic replacement + of container instances that are detected as unhealthy. """ - The path on the container that the Application Load Balancer uses for - health checks. This should be a valid HTTP endpoint that returns a - successful response (HTTP 200) when the application is healthy. - If not specified, the default health check path is `/ping`. The health - check path must start with a forward slash and can include query - parameters. Examples: `/health`, `/api/status`, `/ping?format=json`. +@dataclass(kw_only=True) +class CreateServiceInput(_SerdeShape): + """""" + + cluster: str | None = ... """ - primary_container: ExpressGatewayContainer | None = ... + The short name or full Amazon Resource Name (ARN) of the cluster that + you run your service on. If you do not specify a cluster, the default + cluster is assumed. """ - The primary container configuration for the Express service. This - defines the main application container that will receive traffic from - the Application Load Balancer. + service_name: str | None = ... + """ + The name of your service. Up to 255 letters (uppercase and lowercase), + numbers, underscores, and hyphens are allowed. Service names must be + unique within a cluster, but you can have similarly named services in + multiple clusters within a Region or across multiple Regions. + """ + task_definition: str | None = ... + """ + The `family` and `revision` (`family:revision`) or full ARN of the task + definition to run in your service. If a `revision` isn't specified, the + latest `ACTIVE` revision is used. - The primary container must specify at minimum a container image. You can - also configure the container port (defaults to 80), logging - configuration, environment variables, secrets, and startup commands. The - container image can be from Amazon ECR, Docker Hub, or any other - container registry accessible to your execution role. + A task definition must be specified if the service uses either the `ECS` + or `CODE_DEPLOY` deployment controllers. + + For more information about deployment types, see [Amazon ECS deployment + types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html). """ - task_role_arn: str | None = ... + availability_zone_rebalancing: str | None = ... """ - The Amazon Resource Name (ARN) of the IAM role that containers in this - task can assume. This role allows your application code to access other - Amazon Web Services services securely. + Indicates whether to use Availability Zone rebalancing for the service. - The task role is different from the execution role. While the execution - role is used by the Amazon ECS agent to set up the task, the task role - is used by your application code running inside the container to make - Amazon Web Services API calls. If your application doesn't need to - access Amazon Web Services services, you can omit this parameter. + For more information, see [Balancing an Amazon ECS service across + Availability + Zones](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html) + in the Amazon Elastic Container Service Developer Guide . + + The default behavior of `AvailabilityZoneRebalancing` differs between + create and update requests: + + - For create service requests, when no value is specified for + `AvailabilityZoneRebalancing`, Amazon ECS defaults the value to + `ENABLED`. + + - For update service requests, when no value is specified for + `AvailabilityZoneRebalancing`, Amazon ECS defaults to the existing + service's `AvailabilityZoneRebalancing` value. If the service never + had an `AvailabilityZoneRebalancing` value set, Amazon ECS treats this + as `DISABLED`. """ - network_configuration: ExpressGatewayServiceNetworkConfiguration | None = ... + load_balancers: list[LoadBalancer] | None = ... """ - The network configuration for the Express service tasks. This specifies - the VPC subnets and security groups for the tasks. + A load balancer object representing the load balancers to use with your + service. For more information, see [Service load + balancing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html) + in the *Amazon Elastic Container Service Developer Guide*. - For Express services, you can specify custom security groups and - subnets. If not provided, Amazon ECS will use the default VPC - configuration and create appropriate security groups automatically. The - network configuration determines how your service integrates with your - VPC and what network access it has. + If the service uses the `ECS` deployment controller and using either an + Application Load Balancer or Network Load Balancer, you must specify one + or more target group ARNs to attach to the service. The service-linked + role is required for services that use multiple target groups. For more + information, see [Using service-linked roles for Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html) + in the *Amazon Elastic Container Service Developer Guide*. + + If the service uses the `CODE_DEPLOY` deployment controller, the service + is required to use either an Application Load Balancer or Network Load + Balancer. When creating an CodeDeploy deployment group, you specify two + target groups (referred to as a `targetGroupPair`). During a deployment, + CodeDeploy determines which task set in your service has the status + `PRIMARY`, and it associates one target group with it. Then, it also + associates the other target group with the replacement task set. The + load balancer can also have up to two listeners: a required listener for + production traffic and an optional listener that you can use to perform + validation tests with Lambda functions before routing production traffic + to it. + + If you use the `CODE_DEPLOY` deployment controller, these values can be + changed when updating the service. + + For Application Load Balancers and Network Load Balancers, this object + must contain the load balancer target group ARN, the container name, and + the container port to access from the load balancer. The container name + must be as it appears in a container definition. The load balancer name + parameter must be omitted. When a task from this service is placed on a + container instance, the container instance and port combination is + registered as a target in the target group that's specified here. + + For Classic Load Balancers, this object must contain the load balancer + name, the container name , and the container port to access from the + load balancer. The container name must be as it appears in a container + definition. The target group ARN parameter must be omitted. When a task + from this service is placed on a container instance, the container + instance is registered with the load balancer that's specified here. + + Services with tasks that use the `awsvpc` network mode (for example, + those with the Fargate launch type) only support Application Load + Balancers and Network Load Balancers. Classic Load Balancers aren't + supported. Also, when you create any target groups for these services, + you must choose `ip` as the target type, not `instance`. This is because + tasks that use the `awsvpc` network mode are associated with an elastic + network interface, not an Amazon EC2 instance. """ - cpu: str | None = ... + service_registries: list[ServiceRegistry] | None = ... """ - The number of CPU units used by the task. This parameter determines the - CPU allocation for each task in the Express service. The default value - for an Express service is 256 (.25 vCPU). + The details of the service discovery registry to associate with this + service. For more information, see [Service + discovery](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html). + + Note: + Each service may be associated with one service registry. Multiple + service registries for each service isn't supported. + """ + desired_count: int | None = ... """ - memory: str | None = ... + The number of instantiations of the specified task definition to place + and keep running in your service. + + This is required if `schedulingStrategy` is `REPLICA` or isn't + specified. If `schedulingStrategy` is `DAEMON` then this isn't + required. """ - The amount of memory (in MiB) used by the task. This parameter - determines the memory allocation for each task in the Express service. - The default value for an express service is 512 MiB. + client_token: str | None = ... """ - cpu_architecture: str | None = ... + An identifier that you provide to ensure the idempotency of the request. + It must be unique and is case sensitive. Up to 36 ASCII characters in + the range of 33-126 (inclusive) are allowed. """ - The CPU architecture that the task runs on. If you don't specify a - value, the default is `X86_64`. + launch_type: str | None = ... + """ + The infrastructure that you run your service on. For more information, + see [Amazon ECS launch + types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + in the *Amazon Elastic Container Service Developer Guide*. - Valid values: + Note: + If you want to use Amazon ECS Managed Instances, you must use the + `capacityProviderStrategy` request parameter and omit the `launchType` + request parameter. - - `X86_64` - The x86 64-bit architecture. + The `FARGATE` launch type runs your tasks on Fargate On-Demand + infrastructure. - - `ARM64` - The 64-bit ARM architecture. + Note: + Fargate Spot infrastructure is available for use but a capacity provider + strategy must be used. For more information, see [Fargate capacity + providers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-capacity-providers.html) + in the *Amazon ECS Developer Guide*. - Ensure that the container image you specify supports the architecture - you choose. The operating system family for an Express service is always - `LINUX`. + The `EC2` launch type runs your tasks on Amazon EC2 instances registered + to your cluster. - You can't specify `cpuArchitecture` together with `taskDefinitionArn`. + The `EXTERNAL` launch type runs your tasks on your on-premises server or + virtual machine (VM) capacity registered to your cluster. + + A service can use either a launch type or a capacity provider strategy. + If a `launchType` is specified, the `capacityProviderStrategy` parameter + must be omitted. """ - scaling_target: ExpressGatewayScalingTarget | None = ... + capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... """ - The auto-scaling configuration for the Express service. This defines how - the service automatically adjusts the number of running tasks based on - demand. + The capacity provider strategy to use for the service. - You can specify the minimum and maximum number of tasks, the scaling - metric (CPU utilization, memory utilization, or request count per - target), and the target value for the metric. If not specified, the - default target value for an Express service is 60. + Note: + If you want to use Amazon ECS Managed Instances, you must use the + `capacityProviderStrategy` request parameter and omit the `launchType` + request parameter. + + If a `capacityProviderStrategy` is specified, the `launchType` parameter + must be omitted. If no `capacityProviderStrategy` or `launchType` is + specified, the `defaultCapacityProviderStrategy` for the cluster is + used. + + A capacity provider strategy can contain a maximum of 20 capacity + providers. """ - tags: list[Tag] | None = ... + platform_version: str | None = ... """ - The metadata that you apply to the Express service to help categorize - and organize it. Each tag consists of a key and an optional value. You - can apply up to 50 tags to a service. + The platform version that your tasks in the service are running on. A + platform version is specified only for tasks using the Fargate launch + type. If one isn't specified, the `LATEST` platform version is used. + For more information, see [Fargate platform + versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - task_definition_arn: str | None = ... + role: str | None = ... """ - The Amazon Resource Name (ARN) of a task definition to use to create the - Express Gateway service. This allows you to manage your own task - definition, giving you more control over the service configuration such - as adding sidecar containers. + The name or full Amazon Resource Name (ARN) of the IAM role that allows + Amazon ECS to make calls to your load balancer on your behalf. This + parameter is only permitted if you are using a load balancer with your + service and your task definition doesn't use the `awsvpc` network mode. + If you specify the `role` parameter, you must also specify a load + balancer object with the `loadBalancers` parameter. - The task definition must have a container named `Main` with a single TCP - port mapping that includes a container port and port name. The task - definition must also have `FARGATE` compatibility. + Warning: + If your account has already created the Amazon ECS service-linked role, + that role is used for your service unless you specify a role here. The + service-linked role is required if your task definition uses the + `awsvpc` network mode or if the service is configured to use service + discovery, an external deployment controller, multiple target groups, or + Elastic Inference accelerators in which case you don't specify a role + here. For more information, see [Using service-linked roles for Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html) + in the *Amazon Elastic Container Service Developer Guide*. - If you provide a task definition ARN, you cannot also specify - `primaryContainer`, `executionRoleArn`, `taskRoleArn`, `cpu`, `memory`, - or `cpuArchitecture`. + If your specified role has a path other than `/`, then you must either + specify the full role ARN (this is recommended) or prefix the role name + with the path. For example, if a role with the name `bar` has a path of + `/foo/` then you would specify `/foo/bar` as the role name. For more + information, see [Friendly names and + paths](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) + in the *IAM User Guide*. """ - -@dataclass(kw_only=True) -class CreateExpressGatewayServiceOutput(_SerdeShape): - """Dataclass for CreateExpressGatewayServiceOutput structure.""" - - service: ECSExpressGatewayService | None = ... + deployment_configuration: DeploymentConfiguration | None = ... """ - The full description of your Express service following the create - operation. + Optional deployment parameters that control how many tasks run during + the deployment and the ordering of stopping and starting tasks. """ - response_metadata: ResponseMetadata = ... + placement_constraints: list[PlacementConstraint] | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + An array of placement constraint objects to use for tasks in your + service. You can specify a maximum of 10 constraints for each task. This + limit includes constraints in the task definition and those specified at + runtime. """ - -@dataclass(kw_only=True) -class CreateGatewayInput(_SerdeShape): - """Dataclass for CreateGatewayInput structure.""" - - name: str | None = ... + placement_strategy: list[PlacementStrategy] | None = ... """ - The name for the gateway. The name must be unique within your account - and can be up to 255 characters. + The placement strategy objects to use for tasks in your service. You can + specify a maximum of 5 strategy rules for each service. """ - infrastructure_role_arn: str | None = ... + network_configuration: NetworkConfiguration | None = ... """ - The Amazon Resource Name (ARN) of the IAM role that the gateway assumes - to create and manage infrastructure on your behalf. + The network configuration for the service. This parameter is required + for task definitions that use the `awsvpc` network mode to receive their + own elastic network interface, and it isn't supported for other network + modes. For more information, see [Task + networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - client_token: str | None = ... + health_check_grace_period_seconds: int | None = ... """ - A unique, case-sensitive identifier that you provide to ensure that the - operation completes no more than one time. If this token matches a - previous request, the service ignores the request, but does not return - an error. + The period of time, in seconds, that the Amazon ECS service scheduler + ignores unhealthy Elastic Load Balancing, VPC Lattice, and container + health checks after a task has first started. If you do not specify a + health check grace period value, the default value of 0 is used. If you + do not use any of the health checks, then + `healthCheckGracePeriodSeconds` is unused. - This field is autopopulated if not provided. + If your service has more running tasks than desired, unhealthy tasks in + the grace period might be stopped to reach the desired count. """ - deletion_protection: bool | None = ... + scheduling_strategy: str | None = ... """ - Specifies whether to enable deletion protection for the gateway. When - enabled, the gateway can't be deleted, and the gateway propagates this - setting to the load balancers it manages. The default is `true`. + The scheduling strategy to use for the service. For more information, + see + [Services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html). + + There are two service scheduler strategies available: + + - `REPLICA`-The replica scheduling strategy places and maintains the + desired number of tasks across your cluster. By default, the service + scheduler spreads tasks across Availability Zones. You can use task + placement strategies and constraints to customize task placement + decisions. This scheduler strategy is required if the service uses the + `CODE_DEPLOY` or `EXTERNAL` deployment controller types. + + - `DAEMON`-The daemon scheduling strategy deploys exactly one task on + each active container instance that meets all of the task placement + constraints that you specify in your cluster. The service scheduler + also evaluates the task placement constraints for running tasks and + will stop tasks that don't meet the placement constraints. When + you're using this strategy, you don't need to specify a desired + number of tasks, a task placement strategy, or use Service Auto + Scaling policies. + + Note: + Tasks using the Fargate launch type or the `CODE_DEPLOY` or `EXTERNAL` + deployment controller types don't support the `DAEMON` scheduling + strategy. """ - configuration: GatewayConfiguration | None = ... + deployment_controller: DeploymentController | None = ... """ - The type-specific configuration for the gateway. Exactly one - configuration variant must be set, and it determines the gateway type. - For example, `hostSharedAlb` configures a gateway that uses Application - Load Balancers with host-based routing. + The deployment controller to use for the service. If no deployment + controller is specified, the default value of `ECS` is used. """ tags: list[Tag] | None = ... """ - The metadata that you apply to the gateway to help you categorize and - organize it. Each tag consists of a key and an optional value. Depending - on `propagateTags`, these tags can be applied to the infrastructure the - gateway manages. - """ - propagate_tags: str | None = ... - """ - Specifies whether to propagate the tags from the gateway to the - infrastructure that the gateway manages. The default is `GATEWAY`. - """ + The metadata that you apply to the service to help you categorize and + organize them. Each tag consists of a key and an optional value, both of + which you define. When a service is deleted, the tags are deleted as + well. -@dataclass(kw_only=True) -class CreateGatewayOutput(_SerdeShape): - """Dataclass for CreateGatewayOutput structure.""" + The following basic restrictions apply to tags: - gateway_arn: str | None = ... - """The Amazon Resource Name (ARN) of the gateway.""" - name: str | None = ... - """The name of the gateway.""" - status: str | None = ... - """The status of the gateway. A newly created gateway is always `ACTIVE`.""" - response_metadata: ResponseMetadata = ... + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + enable_ecs_managed_tags: bool = ... """ + Specifies whether to turn on Amazon ECS managed tags for the tasks + within the service. For more information, see [Tagging your Amazon ECS + resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) + in the *Amazon Elastic Container Service Developer Guide*. -@dataclass(kw_only=True) -class CreateManagedInstancesProviderConfiguration(_SerdeShape): + When you use Amazon ECS managed tags, you must set the `propagateTags` + request parameter. """ - The configuration for creating a Amazon ECS Managed Instances provider. - This specifies how Amazon ECS should manage Amazon EC2 instances, - including the infrastructure role, instance launch template, and whether - to propagate tags from the capacity provider to the instances. + propagate_tags: str | None = ... """ + Specifies whether to propagate the tags from the task definition to the + task. If no value is specified, the tags aren't propagated. Tags can + only be propagated to the task during task creation. To add tags to a + task after task creation, use the + [TagResource](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html) + API action. - infrastructure_role_arn: str - """ - The Amazon Resource Name (ARN) of the infrastructure role that Amazon - ECS uses to manage instances on your behalf. This role must have - permissions to launch, terminate, and manage Amazon EC2 instances, as - well as access to other Amazon Web Services services required for Amazon - ECS Managed Instances functionality. + You must set this to a value other than `NONE` when you use Cost + Explorer. For more information, see [Amazon ECS usage + reports](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/usage-reports.html) + in the *Amazon Elastic Container Service Developer Guide*. - For more information, see [Amazon ECS infrastructure IAM - role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) - in the *Amazon ECS Developer Guide*. + The default is `NONE`. """ - instance_launch_template: InstanceLaunchTemplate + enable_execute_command: bool = ... """ - The launch template configuration that specifies how Amazon ECS should - launch Amazon EC2 instances. This includes the instance profile, network - configuration, storage settings, and instance requirements for - attribute-based instance type selection. + Determines whether the execute command functionality is turned on for + the service. If `true`, this enables execute command functionality on + all containers in the service tasks. + """ + service_connect_configuration: ServiceConnectConfiguration | None = ... + """ + The configuration for this service to discover and connect to services, + and be discovered by, and connected from, other services within a + namespace. - For more information, see [Store instance launch parameters in Amazon - EC2 launch - templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) - in the *Amazon EC2 User Guide*. + Tasks that run in a namespace can use short names to connect to services + in the namespace. Tasks can connect to services across all of the + clusters in the namespace. Tasks connect through a managed proxy + container that collects logs and metrics for increased visibility. Only + the tasks that Amazon ECS services create are supported with Service + Connect. For more information, see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - propagate_tags: str | None = ... + volume_configurations: list[ServiceVolumeConfiguration] | None = ... """ - Specifies whether to propagate tags from the capacity provider to the - Amazon ECS Managed Instances. When enabled, tags applied to the capacity - provider are automatically applied to all instances launched by this - provider. + The configuration for a volume specified in the task definition as a + volume that is configured at launch time. Currently, the only supported + volume type is an Amazon EBS volume. """ - infrastructure_optimization: InfrastructureOptimization | None = ... + vpc_lattice_configurations: list[VpcLatticeConfiguration] | None = ... + """The VPC Lattice configuration for the service being created.""" + gateway_connectors: list[GatewayConnector] | None = ... """ - Defines how Amazon ECS Managed Instances optimizes the infrastastructure - in your capacity provider. Provides control over the delay between when - EC2 instances become idle or underutilized and when Amazon ECS optimizes - them. + The gateway connectors that attach the service to a gateway ingress + path. You can specify at most one gateway connector. """ - auto_repair_configuration: AutoRepairConfiguration | None = ... + monitoring: MonitoringConfiguration | None = ... """ - The auto repair configuration for the Amazon ECS Managed Instances - capacity provider. Use this to enable or disable automatic replacement - of container instances that are detected as unhealthy. + The optional monitoring configuration for the service, which defines the + resolution for the service-level `CPUUtilization` and + `MemoryUtilization` Amazon CloudWatch metrics. When not specified, + Amazon ECS uses the default resolution of `60` seconds. """ -@dataclass(kw_only=True) -class CreateServiceInput(_SerdeShape): - """""" +class CreateServiceInputDict(TypedDict, total=False): + """Dictionary form of `CreateServiceInput`.""" - cluster: str | None = ... + cluster: str | None """ The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. If you do not specify a cluster, the default cluster is assumed. """ - service_name: str | None = ... + service_name: Required[str] """ The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a Region or across multiple Regions. """ - task_definition: str | None = ... + task_definition: str | None """ The `family` and `revision` (`family:revision`) or full ARN of the task definition to run in your service. If a `revision` isn't specified, the @@ -3221,7 +5530,7 @@ class CreateServiceInput(_SerdeShape): For more information about deployment types, see [Amazon ECS deployment types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html). """ - availability_zone_rebalancing: str | None = ... + availability_zone_rebalancing: str | None """ Indicates whether to use Availability Zone rebalancing for the service. @@ -3243,7 +5552,7 @@ class CreateServiceInput(_SerdeShape): had an `AvailabilityZoneRebalancing` value set, Amazon ECS treats this as `DISABLED`. """ - load_balancers: list[LoadBalancer] | None = ... + load_balancers: Sequence[LoadBalancer | LoadBalancerDict] | None """ A load balancer object representing the load balancers to use with your service. For more information, see [Service load @@ -3296,7 +5605,7 @@ class CreateServiceInput(_SerdeShape): tasks that use the `awsvpc` network mode are associated with an elastic network interface, not an Amazon EC2 instance. """ - service_registries: list[ServiceRegistry] | None = ... + service_registries: Sequence[ServiceRegistry | ServiceRegistryDict] | None """ The details of the service discovery registry to associate with this service. For more information, see [Service @@ -3306,7 +5615,7 @@ class CreateServiceInput(_SerdeShape): Each service may be associated with one service registry. Multiple service registries for each service isn't supported. """ - desired_count: int | None = ... + desired_count: int | None """ The number of instantiations of the specified task definition to place and keep running in your service. @@ -3315,13 +5624,13 @@ class CreateServiceInput(_SerdeShape): specified. If `schedulingStrategy` is `DAEMON` then this isn't required. """ - client_token: str | None = ... + client_token: str | None """ An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed. """ - launch_type: str | None = ... + launch_type: str | None """ The infrastructure that you run your service on. For more information, see [Amazon ECS launch @@ -3352,7 +5661,9 @@ class CreateServiceInput(_SerdeShape): If a `launchType` is specified, the `capacityProviderStrategy` parameter must be omitted. """ - capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + capacity_provider_strategy: ( + Sequence[CapacityProviderStrategyItem | CapacityProviderStrategyItemDict] | None + ) """ The capacity provider strategy to use for the service. @@ -3369,7 +5680,7 @@ class CreateServiceInput(_SerdeShape): A capacity provider strategy can contain a maximum of 20 capacity providers. """ - platform_version: str | None = ... + platform_version: str | None """ The platform version that your tasks in the service are running on. A platform version is specified only for tasks using the Fargate launch @@ -3378,7 +5689,7 @@ class CreateServiceInput(_SerdeShape): versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) in the *Amazon Elastic Container Service Developer Guide*. """ - role: str | None = ... + role: str | None """ The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This @@ -3406,24 +5717,28 @@ class CreateServiceInput(_SerdeShape): paths](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) in the *IAM User Guide*. """ - deployment_configuration: DeploymentConfiguration | None = ... + deployment_configuration: ( + DeploymentConfiguration | DeploymentConfigurationDict | None + ) """ Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks. """ - placement_constraints: list[PlacementConstraint] | None = ... + placement_constraints: ( + Sequence[PlacementConstraint | PlacementConstraintDict] | None + ) """ An array of placement constraint objects to use for tasks in your service. You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime. """ - placement_strategy: list[PlacementStrategy] | None = ... + placement_strategy: Sequence[PlacementStrategy | PlacementStrategyDict] | None """ The placement strategy objects to use for tasks in your service. You can specify a maximum of 5 strategy rules for each service. """ - network_configuration: NetworkConfiguration | None = ... + network_configuration: NetworkConfiguration | NetworkConfigurationDict | None """ The network configuration for the service. This parameter is required for task definitions that use the `awsvpc` network mode to receive their @@ -3432,7 +5747,7 @@ class CreateServiceInput(_SerdeShape): networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in the *Amazon Elastic Container Service Developer Guide*. """ - health_check_grace_period_seconds: int | None = ... + health_check_grace_period_seconds: int | None """ The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container @@ -3444,7 +5759,7 @@ class CreateServiceInput(_SerdeShape): If your service has more running tasks than desired, unhealthy tasks in the grace period might be stopped to reach the desired count. """ - scheduling_strategy: str | None = ... + scheduling_strategy: str | None """ The scheduling strategy to use for the service. For more information, see @@ -3473,12 +5788,12 @@ class CreateServiceInput(_SerdeShape): deployment controller types don't support the `DAEMON` scheduling strategy. """ - deployment_controller: DeploymentController | None = ... + deployment_controller: DeploymentController | DeploymentControllerDict | None """ The deployment controller to use for the service. If no deployment controller is specified, the default value of `ECS` is used. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ The metadata that you apply to the service to help you categorize and organize them. Each tag consists of a key and an optional value, both of @@ -3510,7 +5825,7 @@ class CreateServiceInput(_SerdeShape): with this prefix. Tags with this prefix do not count against your tags per resource limit. """ - enable_ecs_managed_tags: bool = ... + enable_ecs_managed_tags: bool | None """ Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more information, see [Tagging your Amazon ECS @@ -3520,7 +5835,7 @@ class CreateServiceInput(_SerdeShape): When you use Amazon ECS managed tags, you must set the `propagateTags` request parameter. """ - propagate_tags: str | None = ... + propagate_tags: str | None """ Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags aren't propagated. Tags can @@ -3536,13 +5851,15 @@ class CreateServiceInput(_SerdeShape): The default is `NONE`. """ - enable_execute_command: bool = ... + enable_execute_command: bool | None """ Determines whether the execute command functionality is turned on for the service. If `true`, this enables execute command functionality on all containers in the service tasks. """ - service_connect_configuration: ServiceConnectConfiguration | None = ... + service_connect_configuration: ( + ServiceConnectConfiguration | ServiceConnectConfigurationDict | None + ) """ The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a @@ -3557,20 +5874,24 @@ class CreateServiceInput(_SerdeShape): Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) in the *Amazon Elastic Container Service Developer Guide*. """ - volume_configurations: list[ServiceVolumeConfiguration] | None = ... + volume_configurations: ( + Sequence[ServiceVolumeConfiguration | ServiceVolumeConfigurationDict] | None + ) """ The configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume. """ - vpc_lattice_configurations: list[VpcLatticeConfiguration] | None = ... + vpc_lattice_configurations: ( + Sequence[VpcLatticeConfiguration | VpcLatticeConfigurationDict] | None + ) """The VPC Lattice configuration for the service being created.""" - gateway_connectors: list[GatewayConnector] | None = ... + gateway_connectors: Sequence[GatewayConnector | GatewayConnectorDict] | None """ The gateway connectors that attach the service to a gateway ingress path. You can specify at most one gateway connector. """ - monitoring: MonitoringConfiguration | None = ... + monitoring: MonitoringConfiguration | MonitoringConfigurationDict | None """ The optional monitoring configuration for the service, which defines the resolution for the service-level `CPUUtilization` and @@ -3611,21 +5932,153 @@ class CreateServiceOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class CreateTaskSetInput(_SerdeShape): - """Dataclass for CreateTaskSetInput structure.""" +@dataclass(kw_only=True) +class CreateTaskSetInput(_SerdeShape): + """Dataclass for CreateTaskSetInput structure.""" + + service: str | None = ... + """ + The short name or full Amazon Resource Name (ARN) of the service to + create the task set in. + """ + cluster: str | None = ... + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the service to create the task set in. + """ + external_id: str | None = ... + """ + An optional non-unique tag that identifies this task set in external + systems. If the task set is associated with a service discovery + registry, the tasks in this task set will have the + `ECS_TASK_SET_EXTERNAL_ID` Cloud Map attribute set to the provided + value. + """ + task_definition: str | None = ... + """ + The task definition for the tasks in the task set to use. If a revision + isn't specified, the latest `ACTIVE` revision is used. + """ + network_configuration: NetworkConfiguration | None = ... + """An object representing the network configuration for a task set.""" + load_balancers: list[LoadBalancer] | None = ... + """ + A load balancer object representing the load balancer to use with the + task set. The supported load balancer types are either an Application + Load Balancer or a Network Load Balancer. + """ + service_registries: list[ServiceRegistry] | None = ... + """ + The details of the service discovery registries to assign to this task + set. For more information, see [Service + discovery](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html). + """ + launch_type: str | None = ... + """ + The launch type that new tasks in the task set uses. For more + information, see [Amazon ECS launch + types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + in the *Amazon Elastic Container Service Developer Guide*. + + If a `launchType` is specified, the `capacityProviderStrategy` parameter + must be omitted. + """ + capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + """ + The capacity provider strategy to use for the task set. + + A capacity provider strategy consists of one or more capacity providers + along with the `base` and `weight` to assign to them. A capacity + provider must be associated with the cluster to be used in a capacity + provider strategy. The + [PutClusterCapacityProviders](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html) + API is used to associate a capacity provider with a cluster. Only + capacity providers with an `ACTIVE` or `UPDATING` status can be used. + + If a `capacityProviderStrategy` is specified, the `launchType` parameter + must be omitted. If no `capacityProviderStrategy` or `launchType` is + specified, the `defaultCapacityProviderStrategy` for the cluster is + used. + + If specifying a capacity provider that uses an Auto Scaling group, the + capacity provider must already be created. New capacity providers can be + created with the + [CreateCapacityProviderProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProviderProvider.html)API + operation. + + To use a Fargate capacity provider, specify either the `FARGATE` or + `FARGATE_SPOT` capacity providers. The Fargate capacity providers are + available to all accounts and only need to be associated with a cluster + to be used. + + The + [PutClusterCapacityProviders](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html) + API operation is used to update the list of available capacity providers + for a cluster after the cluster is created. + """ + platform_version: str | None = ... + """ + The platform version that the tasks in the task set uses. A platform + version is specified only for tasks using the Fargate launch type. If + one isn't specified, the `LATEST` platform version is used. + """ + scale: Scale | None = ... + """ + A floating-point percentage of the desired number of tasks to place and + keep running in the task set. + """ + client_token: str | None = ... + """ + An identifier that you provide to ensure the idempotency of the request. + It must be unique and is case sensitive. Up to 36 ASCII characters in + the range of 33-126 (inclusive) are allowed. + """ + tags: list[Tag] | None = ... + """ + The metadata that you apply to the task set to help you categorize and + organize them. Each tag consists of a key and an optional value. You + define both. When a service is deleted, the tags are deleted. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + +class CreateTaskSetInputDict(TypedDict, total=False): + """Dictionary form of `CreateTaskSetInput`.""" - service: str | None = ... + service: Required[str] """ The short name or full Amazon Resource Name (ARN) of the service to create the task set in. """ - cluster: str | None = ... + cluster: Required[str] """ The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in. """ - external_id: str | None = ... + external_id: str | None """ An optional non-unique tag that identifies this task set in external systems. If the task set is associated with a service discovery @@ -3633,26 +6086,26 @@ class CreateTaskSetInput(_SerdeShape): `ECS_TASK_SET_EXTERNAL_ID` Cloud Map attribute set to the provided value. """ - task_definition: str | None = ... + task_definition: Required[str] """ The task definition for the tasks in the task set to use. If a revision isn't specified, the latest `ACTIVE` revision is used. """ - network_configuration: NetworkConfiguration | None = ... + network_configuration: NetworkConfiguration | NetworkConfigurationDict | None """An object representing the network configuration for a task set.""" - load_balancers: list[LoadBalancer] | None = ... + load_balancers: Sequence[LoadBalancer | LoadBalancerDict] | None """ A load balancer object representing the load balancer to use with the task set. The supported load balancer types are either an Application Load Balancer or a Network Load Balancer. """ - service_registries: list[ServiceRegistry] | None = ... + service_registries: Sequence[ServiceRegistry | ServiceRegistryDict] | None """ The details of the service discovery registries to assign to this task set. For more information, see [Service discovery](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html). """ - launch_type: str | None = ... + launch_type: str | None """ The launch type that new tasks in the task set uses. For more information, see [Amazon ECS launch @@ -3662,7 +6115,9 @@ class CreateTaskSetInput(_SerdeShape): If a `launchType` is specified, the `capacityProviderStrategy` parameter must be omitted. """ - capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + capacity_provider_strategy: ( + Sequence[CapacityProviderStrategyItem | CapacityProviderStrategyItemDict] | None + ) """ The capacity provider strategy to use for the task set. @@ -3695,24 +6150,24 @@ class CreateTaskSetInput(_SerdeShape): API operation is used to update the list of available capacity providers for a cluster after the cluster is created. """ - platform_version: str | None = ... + platform_version: str | None """ The platform version that the tasks in the task set uses. A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the `LATEST` platform version is used. """ - scale: Scale | None = ... + scale: Scale | ScaleDict | None """ A floating-point percentage of the desired number of tasks to place and keep running in the task set. """ - client_token: str | None = ... + client_token: str | None """ An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You @@ -3778,6 +6233,17 @@ class DaemonAlarmConfiguration(_SerdeShape): deployment process. The default value is `false`. """ +class DaemonAlarmConfigurationDict(TypedDict, total=False): + """Dictionary form of `DaemonAlarmConfiguration`.""" + + alarm_names: Sequence[str] | None + """The CloudWatch alarm names to monitor during a daemon deployment.""" + enable: bool | None + """ + Determines whether to use the CloudWatch alarm option in the daemon + deployment process. The default value is `false`. + """ + @dataclass(kw_only=True) class DaemonCapacityProvider(_SerdeShape): """Information about a capacity provider associated with a daemon revision.""" @@ -3934,6 +6400,120 @@ class DaemonContainerDefinition(_SerdeShape): task. """ +class DaemonContainerDefinitionDict(TypedDict, total=False): + """Dictionary form of `DaemonContainerDefinition`.""" + + name: str | None + """ + The name of the container. Up to 255 letters (uppercase and lowercase), + numbers, underscores, and hyphens are allowed. + """ + image: Required[str] + """ + The image used to start the container. This string is passed directly to + the Docker daemon. Images in the Docker Hub registry are available by + default. Other repositories are specified with either + ` `*`repository-url`*`/`*`image`*`:`*`tag`*` ` or + ` `*`repository-url`*`/`*`image`*`@`*`digest`*` `. + """ + memory: int | None + """ + The amount (in MiB) of memory to present to the container. If the + container attempts to exceed the memory specified here, the container is + killed. + """ + memory_reservation: int | None + """The soft limit (in MiB) of memory to reserve for the container.""" + repository_credentials: RepositoryCredentials | RepositoryCredentialsDict | None + """The private repository authentication credentials to use.""" + health_check: HealthCheck | HealthCheckDict | None + """ + The container health check command and associated configuration + parameters for the container. + """ + cpu: int | None + """The number of `cpu` units reserved for the container.""" + essential: bool | None + """ + If the `essential` parameter of a container is marked as `true`, and + that container fails or stops for any reason, all other containers that + are part of the task are stopped. + """ + entry_point: Sequence[str] | None + """The entry point that's passed to the container.""" + command: Sequence[str] | None + """The command that's passed to the container.""" + working_directory: str | None + """The working directory to run commands inside the container in.""" + environment_files: Sequence[EnvironmentFile | EnvironmentFileDict] | None + """ + A list of files containing the environment variables to pass to a + container. + """ + environment: Sequence[KeyValuePair | KeyValuePairDict] | None + """The environment variables to pass to a container.""" + secrets: Sequence[Secret | SecretDict] | None + """The secrets to pass to the container.""" + readonly_root_filesystem: bool | None + """ + When this parameter is true, the container is given read-only access to + its root file system. + """ + mount_points: Sequence[MountPoint | MountPointDict] | None + """The mount points for data volumes in your container.""" + log_configuration: LogConfiguration | LogConfigurationDict | None + """The log configuration specification for the container.""" + firelens_configuration: FirelensConfiguration | FirelensConfigurationDict | None + """ + The FireLens configuration for the container. This is used to specify + and configure a log router for container logs. + """ + privileged: bool | None + """ + When this parameter is true, the container is given elevated privileges + on the host container instance (similar to the `root` user). + """ + user: str | None + """The user to use inside the container.""" + ulimits: Sequence[Ulimit | UlimitDict] | None + """A list of `ulimits` to set in the container.""" + linux_parameters: DaemonLinuxParameters | DaemonLinuxParametersDict | None + """ + Linux-specific modifications that are applied to the container + configuration, such as Linux kernel capabilities. + """ + depends_on: Sequence[ContainerDependency | ContainerDependencyDict] | None + """ + The dependencies defined for container startup and shutdown. A container + can contain multiple dependencies on other containers in a task + definition. + """ + start_timeout: int | None + """ + Time duration (in seconds) to wait before giving up on resolving + dependencies for a container. + """ + stop_timeout: int | None + """ + Time duration (in seconds) to wait before the container is forcefully + killed if it doesn't exit normally on its own. + """ + system_controls: Sequence[SystemControl | SystemControlDict] | None + """A list of namespaced kernel parameters to set in the container.""" + interactive: bool | None + """ + When this parameter is `true`, you can deploy containerized applications + that require `stdin` or a `tty` to be allocated. + """ + pseudo_terminal: bool | None + """When this parameter is `true`, a TTY is allocated.""" + restart_policy: ContainerRestartPolicy | ContainerRestartPolicyDict | None + """ + The restart policy for the container. When you set up a restart policy, + Amazon ECS can restart the container without needing to replace the + task. + """ + @dataclass(kw_only=True) class DaemonContainerImage(_SerdeShape): """The details about the container image a daemon revision uses.""" @@ -4064,6 +6644,27 @@ class DaemonDeploymentConfiguration(_SerdeShape): continuing. The default value is 0. """ +class DaemonDeploymentConfigurationDict(TypedDict, total=False): + """Dictionary form of `DaemonDeploymentConfiguration`.""" + + drain_percent: float | None + """ + The percentage of container instances to drain simultaneously during a + daemon deployment. Valid values are between 0.0 and 100.0. + """ + alarms: DaemonAlarmConfiguration | DaemonAlarmConfigurationDict | None + """ + The CloudWatch alarm configuration for the daemon deployment. When + alarms are triggered during a deployment, the deployment can be + automatically rolled back. + """ + bake_time_in_minutes: int | None + """ + The amount of time (in minutes) to wait after a successful deployment + step before proceeding. This allows time to monitor for issues before + continuing. The default value is 0. + """ + @dataclass(kw_only=True) class DaemonDeploymentRevisionDetail(_SerdeShape): """ @@ -4189,6 +6790,24 @@ class DaemonLinuxParameters(_SerdeShape): tmpfs: list[Tmpfs] | None = ... """The container path, mount options, and size (in MiB) of the tmpfs mount.""" +class DaemonLinuxParametersDict(TypedDict, total=False): + """Dictionary form of `DaemonLinuxParameters`.""" + + capabilities: KernelCapabilities | KernelCapabilitiesDict | None + """ + The Linux capabilities for the container that are added to or dropped + from the default configuration provided by Docker. + """ + devices: Sequence[Device | DeviceDict] | None + """Any host devices to expose to the container.""" + init_process_enabled: bool | None + """ + Run an `init` process inside the container that forwards signals and + reaps processes. + """ + tmpfs: Sequence[Tmpfs | TmpfsDict] | None + """The container path, mount options, and size (in MiB) of the tmpfs mount.""" + @dataclass(kw_only=True) class DaemonNotActiveException(ServiceError, _SerdeShape): """ @@ -4486,6 +7105,35 @@ class DaemonVolume(_SerdeShape): You can't specify both for the same volume. """ +class DaemonVolumeDict(TypedDict, total=False): + """Dictionary form of `DaemonVolume`.""" + + name: str | None + """ + The name of the volume. Up to 255 letters (uppercase and lowercase), + numbers, underscores, and hyphens are allowed. + """ + host: HostVolumeProperties | HostVolumePropertiesDict | None + """ + The contents of the `host` parameter determine whether your bind mount + host volume persists on the host container instance and where it's + stored. + """ + log_driver_volume_configuration: ( + LogDriverVolumeConfiguration | LogDriverVolumeConfigurationDict | None + ) + """ + The log driver volume configuration. With a log driver volume, the + containers in a daemon task can read the log files that a log driver + writes for the other tasks on the container instance. To read the log + files, mount the volume into a container in the daemon task with + `mountPoints`. + + Use `host` to bind mount a path on the container instance. Use + `logDriverVolumeConfiguration` to read the log output of other tasks. + You can't specify both for the same volume. + """ + @dataclass(kw_only=True) class DeleteAccountSettingInput(_SerdeShape): """Dataclass for DeleteAccountSettingInput structure.""" @@ -4513,6 +7161,32 @@ class DeleteAccountSettingInput(_SerdeShape): principal. """ +class DeleteAccountSettingInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAccountSettingInput`.""" + + name: Required[str] + """ + The resource name to disable the account setting for. If + `serviceLongArnFormat` is specified, the ARN for your Amazon ECS + services is affected. If `taskLongArnFormat` is specified, the ARN and + resource ID for your Amazon ECS tasks is affected. If + `containerInstanceLongArnFormat` is specified, the ARN and resource ID + for your Amazon ECS container instances is affected. If `awsvpcTrunking` + is specified, the ENI limit for your Amazon ECS container instances is + affected. + """ + principal_arn: str | None + """ + The Amazon Resource Name (ARN) of the principal. It can be a user, role, + or the root user. If you specify the root user, it disables the account + setting for all users, roles, and the root user of the account unless a + user or role explicitly overrides these settings. If this field is + omitted, the setting is changed only for the authenticated user. + + In order to use this parameter, you must be the root user, or the + principal. + """ + @dataclass(kw_only=True) class DeleteAccountSettingOutput(_SerdeShape): """Dataclass for DeleteAccountSettingOutput structure.""" @@ -4546,6 +7220,24 @@ class DeleteAttributesInput(_SerdeShape): target type. """ +class DeleteAttributesInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAttributesInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + contains the resource to delete attributes. If you do not specify a + cluster, the default cluster is assumed. + """ + attributes: Required[Sequence[Attribute | AttributeDict]] + """ + The attributes to delete from your resource. You can specify up to 10 + attributes for each request. For custom attributes, specify the + attribute name and target ID, but don't specify the value. If you + specify the target ID using the short form, you must also specify the + target type. + """ + @dataclass(kw_only=True) class DeleteAttributesOutput(_SerdeShape): """""" @@ -4579,6 +7271,21 @@ class DeleteCapacityProviderInput(_SerdeShape): deleted from their associated cluster. """ +class DeleteCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCapacityProviderInput`.""" + + capacity_provider: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the capacity + provider to delete. + """ + cluster: str | None + """ + The name of the cluster that contains the capacity provider to delete. + Managed instances capacity providers are cluster-scoped and can only be + deleted from their associated cluster. + """ + @dataclass(kw_only=True) class DeleteCapacityProviderOutput(_SerdeShape): """Dataclass for DeleteCapacityProviderOutput structure.""" @@ -4603,6 +7310,15 @@ class DeleteClusterInput(_SerdeShape): delete. """ +class DeleteClusterInputDict(TypedDict, total=False): + """Dictionary form of `DeleteClusterInput`.""" + + cluster: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the cluster to + delete. + """ + @dataclass(kw_only=True) class DeleteClusterOutput(_SerdeShape): """""" @@ -4624,6 +7340,12 @@ class DeleteDaemonInput(_SerdeShape): daemon_arn: str | None = ... """The Amazon Resource Name (ARN) of the daemon to delete.""" +class DeleteDaemonInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDaemonInput`.""" + + daemon_arn: Required[str] + """The Amazon Resource Name (ARN) of the daemon to delete.""" + @dataclass(kw_only=True) class DeleteDaemonOutput(_SerdeShape): """Dataclass for DeleteDaemonOutput structure.""" @@ -4663,6 +7385,15 @@ class DeleteDaemonTaskDefinitionInput(_SerdeShape): Name (ARN) of the daemon task definition to delete. """ +class DeleteDaemonTaskDefinitionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDaemonTaskDefinitionInput`.""" + + daemon_task_definition: Required[str] + """ + The `family` and `revision` (`family:revision`) or full Amazon Resource + Name (ARN) of the daemon task definition to delete. + """ + @dataclass(kw_only=True) class DeleteDaemonTaskDefinitionOutput(_SerdeShape): """Dataclass for DeleteDaemonTaskDefinitionOutput structure.""" @@ -4691,6 +7422,16 @@ class DeleteExpressGatewayServiceInput(_SerdeShape): and region. """ +class DeleteExpressGatewayServiceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteExpressGatewayServiceInput`.""" + + service_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Express service to delete. The ARN + uniquely identifies the service within your Amazon Web Services account + and region. + """ + @dataclass(kw_only=True) class DeleteExpressGatewayServiceOutput(_SerdeShape): """Dataclass for DeleteExpressGatewayServiceOutput structure.""" @@ -4712,6 +7453,12 @@ class DeleteGatewayInput(_SerdeShape): gateway: str | None = ... """The name or Amazon Resource Name (ARN) of the gateway to delete.""" +class DeleteGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGatewayInput`.""" + + gateway: Required[str] + """The name or Amazon Resource Name (ARN) of the gateway to delete.""" + @dataclass(kw_only=True) class DeleteGatewayOutput(_SerdeShape): """Dataclass for DeleteGatewayOutput structure.""" @@ -4752,6 +7499,24 @@ class DeleteServiceInput(_SerdeShape): `REPLICA` scheduling strategy. """ +class DeleteServiceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteServiceInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the service to delete. If you do not specify a cluster, the + default cluster is assumed. + """ + service: Required[str] + """The name of the service to delete.""" + force: bool | None + """ + If `true`, allows you to delete a service even if it wasn't scaled down + to zero tasks. It's only necessary to use this if the service uses the + `REPLICA` scheduling strategy. + """ + @dataclass(kw_only=True) class DeleteServiceOutput(_SerdeShape): """""" @@ -4770,7 +7535,19 @@ class DeleteServiceOutput(_SerdeShape): class DeleteTaskDefinitionsInput(_SerdeShape): """Dataclass for DeleteTaskDefinitionsInput structure.""" - task_definitions: list[str] | None = ... + task_definitions: list[str] | None = ... + """ + The `family` and `revision` (`family:revision`) or full Amazon Resource + Name (ARN) of the task definition to delete. You must specify a + `revision`. + + You can specify up to 10 task definitions as a comma separated list. + """ + +class DeleteTaskDefinitionsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTaskDefinitionsInput`.""" + + task_definitions: Required[Sequence[str]] """ The `family` and `revision` (`family:revision`) or full Amazon Resource Name (ARN) of the task definition to delete. You must specify a @@ -4820,6 +7597,30 @@ class DeleteTaskSetInput(_SerdeShape): to zero. """ +class DeleteTaskSetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTaskSetInput`.""" + + cluster: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the service that the task set found in to delete. + """ + service: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the service that + hosts the task set to delete. + """ + task_set: Required[str] + """ + The task set ID or full Amazon Resource Name (ARN) of the task set to + delete. + """ + force: bool | None + """ + If `true`, you can delete a task set even if it hasn't been scaled down + to zero. + """ + @dataclass(kw_only=True) class DeleteTaskSetOutput(_SerdeShape): """Dataclass for DeleteTaskSetOutput structure.""" @@ -4849,16 +7650,16 @@ class Deployment(_SerdeShape): PRIMARY - : The most recent deployment of a service. + : The most recent deployment of a service. ACTIVE - : A service deployment that still has running tasks, but are in the - process of being replaced with a new `PRIMARY` deployment. + : A service deployment that still has running tasks, but are in the + process of being replaced with a new `PRIMARY` deployment. INACTIVE - : A deployment that has been completely replaced. + : A deployment that has been completely replaced. """ task_definition: str | None = ... """ @@ -4994,82 +7795,338 @@ class DeploymentAlarms(_SerdeShape): You can only use the `DeploymentAlarms` method to detect failures when the `DeploymentController` is set to `ECS`. - For more information, see [Rolling - update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) - in the Amazon Elastic Container Service Developer Guide . - """ + For more information, see [Rolling + update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) + in the Amazon Elastic Container Service Developer Guide . + """ + + alarm_names: list[str] + """One or more CloudWatch alarm names. Use a \",\" to separate the alarms.""" + rollback: bool = ... + """ + Determines whether to configure Amazon ECS to roll back the service if a + service deployment fails. If rollback is used, when a service deployment + fails, the service is rolled back to the last deployment that completed + successfully. + """ + enable: bool = ... + """ + Determines whether to use the CloudWatch alarm option in the service + deployment process. + """ + +class DeploymentAlarmsDict(TypedDict, total=False): + """Dictionary form of `DeploymentAlarms`.""" + + alarm_names: Required[Sequence[str]] + """One or more CloudWatch alarm names. Use a \",\" to separate the alarms.""" + rollback: bool | None + """ + Determines whether to configure Amazon ECS to roll back the service if a + service deployment fails. If rollback is used, when a service deployment + fails, the service is rolled back to the last deployment that completed + successfully. + """ + enable: bool | None + """ + Determines whether to use the CloudWatch alarm option in the service + deployment process. + """ + +@dataclass(kw_only=True) +class DeploymentCircuitBreaker(_SerdeShape): + """ + Note: + The deployment circuit breaker can only be used for services using the + rolling update (`ECS`) deployment type. + + The **deployment circuit breaker** determines whether a service + deployment will fail if the service can't reach a steady state. If it + is turned on, a service deployment will transition to a failed state and + stop launching new tasks. You can also configure Amazon ECS to roll back + your service to the last completed deployment after a failure. For more + information, see [Rolling + update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) + in the *Amazon Elastic Container Service Developer Guide*. + + For more information about API failure reasons, see [API failure + reasons](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + + enable: bool = ... + """ + Determines whether to use the deployment circuit breaker logic for the + service. + """ + rollback: bool = ... + """ + Determines whether to configure Amazon ECS to roll back the service if a + service deployment fails. If rollback is on, when a service deployment + fails, the service is rolled back to the last deployment that completed + successfully. + """ + reset_on_healthy_task: bool | None = ... + """ + Specifies whether the deployment circuit breaker resets its failure + count when a task reaches a healthy state. When set to `true`, a task + that reaches a healthy state resets the failure count to `0`. When set + to `false`, Amazon ECS does not reset the failure count. The default is + `true`. + """ + threshold_configuration: ThresholdConfiguration | None = ... + """ + The threshold configuration that controls when the deployment circuit + breaker triggers. The `type` and `value` together determine how many + task failures are tolerated before the circuit breaker activates. + """ + +class DeploymentCircuitBreakerDict(TypedDict, total=False): + """Dictionary form of `DeploymentCircuitBreaker`.""" + + enable: bool | None + """ + Determines whether to use the deployment circuit breaker logic for the + service. + """ + rollback: bool | None + """ + Determines whether to configure Amazon ECS to roll back the service if a + service deployment fails. If rollback is on, when a service deployment + fails, the service is rolled back to the last deployment that completed + successfully. + """ + reset_on_healthy_task: bool | None + """ + Specifies whether the deployment circuit breaker resets its failure + count when a task reaches a healthy state. When set to `true`, a task + that reaches a healthy state resets the failure count to `0`. When set + to `false`, Amazon ECS does not reset the failure count. The default is + `true`. + """ + threshold_configuration: ThresholdConfiguration | ThresholdConfigurationDict | None + """ + The threshold configuration that controls when the deployment circuit + breaker triggers. The `type` and `value` together determine how many + task failures are tolerated before the circuit breaker activates. + """ + +@dataclass(kw_only=True) +class DeploymentConfiguration(_SerdeShape): + """ + Optional deployment parameters that control how many tasks run during a + deployment and the ordering of stopping and starting tasks. + """ + + deployment_circuit_breaker: DeploymentCircuitBreaker | None = ... + """ + Note: + The deployment circuit breaker can only be used for services using the + rolling update (`ECS`) deployment type. + + The **deployment circuit breaker** determines whether a service + deployment will fail if the service can't reach a steady state. If you + use the deployment circuit breaker, a service deployment will transition + to a failed state and stop launching new tasks. If you use the rollback + option, when a service deployment fails, the service is rolled back to + the last deployment that completed successfully. For more information, + see [Rolling + update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) + in the *Amazon Elastic Container Service Developer Guide* + """ + maximum_percent: int | None = ... + """ + If a service is using the rolling update (`ECS`) deployment type, the + `maximumPercent` parameter represents an upper limit on the number of + your service's tasks that are allowed in the `RUNNING` or `PENDING` + state during a deployment, as a percentage of the `desiredCount` + (rounded down to the nearest integer). This parameter enables you to + define the deployment batch size. For example, if your service is using + the `REPLICA` service scheduler and has a `desiredCount` of four tasks + and a `maximumPercent` value of 200%, the scheduler may start four new + tasks before stopping the four older tasks (provided that the cluster + resources required to do this are available). The default + `maximumPercent` value for a service using the `REPLICA` service + scheduler is 200%. + + The Amazon ECS scheduler uses this parameter to replace unhealthy tasks + by starting replacement tasks first and then stopping the unhealthy + tasks, as long as cluster resources for starting replacement tasks are + available. For more information about how the scheduler replaces + unhealthy tasks, see [Amazon ECS + services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html). + + If a service is using either the blue/green (`CODE_DEPLOY`) or + `EXTERNAL` deployment types, and tasks in the service use the EC2 launch + type, the **maximum percent** value is set to the default value. The + **maximum percent** value is used to define the upper limit on the + number of the tasks in the service that remain in the `RUNNING` state + while the container instances are in the `DRAINING` state. + + Note: + You can't specify a custom `maximumPercent` value for a service that + uses either the blue/green (`CODE_DEPLOY`) or `EXTERNAL` deployment + types and has tasks that use the EC2 launch type. + + If the service uses either the blue/green (`CODE_DEPLOY`) or `EXTERNAL` + deployment types, and the tasks in the service use the Fargate launch + type, the maximum percent value is not used. The value is still returned + when describing your service. + """ + minimum_healthy_percent: int | None = ... + """ + If a service is using the rolling update (`ECS`) deployment type, the + `minimumHealthyPercent` represents a lower limit on the number of your + service's tasks that must remain in the `RUNNING` state during a + deployment, as a percentage of the `desiredCount` (rounded up to the + nearest integer). This parameter enables you to deploy without using + additional cluster capacity. For example, if your service has a + `desiredCount` of four tasks and a `minimumHealthyPercent` of 50%, the + service scheduler may stop two existing tasks to free up cluster + capacity before starting two new tasks. + + If any tasks are unhealthy and if `maximumPercent` doesn't allow the + Amazon ECS scheduler to start replacement tasks, the scheduler stops the + unhealthy tasks one-by-one --- using the `minimumHealthyPercent` as a + constraint --- to clear up capacity to launch replacement tasks. For + more information about how the scheduler replaces unhealthy tasks, see + [Amazon ECS + services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html). + + For services that *do not* use a load balancer, the following should be + noted: + + - A service is considered healthy if all essential containers within the + tasks in the service pass their health checks. + + - If a task has no essential containers with a health check defined, the + service scheduler will wait for 40 seconds after a task reaches a + `RUNNING` state before the task is counted towards the minimum healthy + percent total. + + - If a task has one or more essential containers with a health check + defined, the service scheduler will wait for the task to reach a + healthy status before counting it towards the minimum healthy percent + total. A task is considered healthy when all essential containers + within the task have passed their health checks. The amount of time + the service scheduler can wait for is determined by the container + health check settings. + + For services that *do* use a load balancer, the following should be + noted: + + - If a task has no essential containers with a health check defined, the + service scheduler will wait for the load balancer target group health + check to return a healthy status before counting the task towards the + minimum healthy percent total. + + - If a task has an essential container with a health check defined, the + service scheduler will wait for both the task to reach a healthy + status and the load balancer target group health check to return a + healthy status before counting the task towards the minimum healthy + percent total. + + The default value for a replica service for `minimumHealthyPercent` is + 100%. The default `minimumHealthyPercent` value for a service using the + `DAEMON` service schedule is 0% for the CLI, the Amazon Web Services + SDKs, and the APIs and 50% for the Amazon Web Services Management + Console. + + The minimum number of healthy tasks during a deployment is the + `desiredCount` multiplied by the `minimumHealthyPercent`/100, rounded up + to the nearest integer value. + + If a service is using either the blue/green (`CODE_DEPLOY`) or + `EXTERNAL` deployment types and is running tasks that use the EC2 launch + type, the **minimum healthy percent** value is set to the default value. + The **minimum healthy percent** value is used to define the lower limit + on the number of the tasks in the service that remain in the `RUNNING` + state while the container instances are in the `DRAINING` state. + + Note: + You can't specify a custom `minimumHealthyPercent` value for a service + that uses either the blue/green (`CODE_DEPLOY`) or `EXTERNAL` deployment + types and has tasks that use the EC2 launch type. - alarm_names: list[str] - """One or more CloudWatch alarm names. Use a \",\" to separate the alarms.""" - rollback: bool = ... - """ - Determines whether to configure Amazon ECS to roll back the service if a - service deployment fails. If rollback is used, when a service deployment - fails, the service is rolled back to the last deployment that completed - successfully. - """ - enable: bool = ... + If a service is using either the blue/green (`CODE_DEPLOY`) or + `EXTERNAL` deployment types and is running tasks that use the Fargate + launch type, the minimum healthy percent value is not used, although it + is returned when describing your service. """ - Determines whether to use the CloudWatch alarm option in the service - deployment process. + alarms: DeploymentAlarms | None = ... + """Information about the CloudWatch alarms.""" + strategy: str | None = ... """ + The deployment strategy for the service. Choose from these valid values: -@dataclass(kw_only=True) -class DeploymentCircuitBreaker(_SerdeShape): - """ - Note: - The deployment circuit breaker can only be used for services using the - rolling update (`ECS`) deployment type. + - `ROLLING` - When you create a service which uses the rolling update + (`ROLLING`) deployment strategy, the Amazon ECS service scheduler + replaces the currently running tasks with new tasks. The number of + tasks that Amazon ECS adds or removes from the service during a + rolling update is controlled by the service deployment configuration. - The **deployment circuit breaker** determines whether a service - deployment will fail if the service can't reach a steady state. If it - is turned on, a service deployment will transition to a failed state and - stop launching new tasks. You can also configure Amazon ECS to roll back - your service to the last completed deployment after a failure. For more - information, see [Rolling - update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) - in the *Amazon Elastic Container Service Developer Guide*. + - `BLUE_GREEN` - A blue/green deployment strategy (`BLUE_GREEN`) is a + release methodology that reduces downtime and risk by running two + identical production environments called blue and green. With Amazon + ECS blue/green deployments, you can validate new service revisions + before directing production traffic to them. This approach provides a + safer way to deploy changes with the ability to quickly roll back if + needed. - For more information about API failure reasons, see [API failure - reasons](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html) - in the *Amazon Elastic Container Service Developer Guide*. - """ + - `LINEAR` - A *linear* deployment strategy (`LINEAR`) gradually shifts + traffic from the current production environment to a new environment + in equal percentages over time. With Amazon ECS linear deployments, + you can control the pace of traffic shifting and validate new service + revisions with increasing amounts of production traffic. - enable: bool = ... + - `CANARY` - A *canary* deployment strategy (`CANARY`) shifts a small + percentage of traffic to the new service revision first, then shifts + the remaining traffic all at once after a specified time period. This + allows you to test the new version with a subset of users before full + deployment. """ - Determines whether to use the deployment circuit breaker logic for the - service. + bake_time_in_minutes: int | None = ... """ - rollback: bool = ... + The time period when both blue and green service revisions are running + simultaneously after the production traffic has shifted. + + You must provide this parameter when you use the `BLUE_GREEN` deployment + strategy. """ - Determines whether to configure Amazon ECS to roll back the service if a - service deployment fails. If rollback is on, when a service deployment - fails, the service is rolled back to the last deployment that completed - successfully. + lifecycle_hooks: list[DeploymentLifecycleHook] | None = ... """ - reset_on_healthy_task: bool | None = ... + An array of deployment lifecycle hook objects to run custom logic or + pause the deployment at specific stages of the deployment lifecycle. """ - Specifies whether the deployment circuit breaker resets its failure - count when a task reaches a healthy state. When set to `true`, a task - that reaches a healthy state resets the failure count to `0`. When set - to `false`, Amazon ECS does not reset the failure count. The default is - `true`. + linear_configuration: LinearConfiguration | None = ... """ - threshold_configuration: ThresholdConfiguration | None = ... + Configuration for linear deployment strategy. Only valid when the + deployment strategy is `LINEAR`. This configuration enables progressive + traffic shifting in equal percentage increments with configurable bake + times between each step. """ - The threshold configuration that controls when the deployment circuit - breaker triggers. The `type` and `value` together determine how many - task failures are tolerated before the circuit breaker activates. + canary_configuration: CanaryConfiguration | None = ... """ - -@dataclass(kw_only=True) -class DeploymentConfiguration(_SerdeShape): + Configuration for canary deployment strategy. Only valid when the + deployment strategy is `CANARY`. This configuration enables shifting a + fixed percentage of traffic for testing, followed by shifting the + remaining traffic after a bake period. """ - Optional deployment parameters that control how many tasks run during a - deployment and the ordering of stopping and starting tasks. + early_success_criteria: DeploymentEarlySuccessCriteria | None = ... + """ + The early success criteria configuration for a rolling deployment. With + early success criteria, you can configure an Amazon ECS deployment to + complete faster. Amazon ECS declares a deployment successful once a + target percentage of tasks are healthy, instead of waiting for the + service to fully stabilize. """ - deployment_circuit_breaker: DeploymentCircuitBreaker | None = ... +class DeploymentConfigurationDict(TypedDict, total=False): + """Dictionary form of `DeploymentConfiguration`.""" + + deployment_circuit_breaker: ( + DeploymentCircuitBreaker | DeploymentCircuitBreakerDict | None + ) """ Note: The deployment circuit breaker can only be used for services using the @@ -5085,7 +8142,7 @@ class DeploymentConfiguration(_SerdeShape): update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) in the *Amazon Elastic Container Service Developer Guide* """ - maximum_percent: int | None = ... + maximum_percent: int | None """ If a service is using the rolling update (`ECS`) deployment type, the `maximumPercent` parameter represents an upper limit on the number of @@ -5124,7 +8181,7 @@ class DeploymentConfiguration(_SerdeShape): type, the maximum percent value is not used. The value is still returned when describing your service. """ - minimum_healthy_percent: int | None = ... + minimum_healthy_percent: int | None """ If a service is using the rolling update (`ECS`) deployment type, the `minimumHealthyPercent` represents a lower limit on the number of your @@ -5204,9 +8261,9 @@ class DeploymentConfiguration(_SerdeShape): launch type, the minimum healthy percent value is not used, although it is returned when describing your service. """ - alarms: DeploymentAlarms | None = ... + alarms: DeploymentAlarms | DeploymentAlarmsDict | None """Information about the CloudWatch alarms.""" - strategy: str | None = ... + strategy: str | None """ The deployment strategy for the service. Choose from these valid values: @@ -5236,7 +8293,7 @@ class DeploymentConfiguration(_SerdeShape): allows you to test the new version with a subset of users before full deployment. """ - bake_time_in_minutes: int | None = ... + bake_time_in_minutes: int | None """ The time period when both blue and green service revisions are running simultaneously after the production traffic has shifted. @@ -5244,26 +8301,30 @@ class DeploymentConfiguration(_SerdeShape): You must provide this parameter when you use the `BLUE_GREEN` deployment strategy. """ - lifecycle_hooks: list[DeploymentLifecycleHook] | None = ... + lifecycle_hooks: ( + Sequence[DeploymentLifecycleHook | DeploymentLifecycleHookDict] | None + ) """ An array of deployment lifecycle hook objects to run custom logic or pause the deployment at specific stages of the deployment lifecycle. """ - linear_configuration: LinearConfiguration | None = ... + linear_configuration: LinearConfiguration | LinearConfigurationDict | None """ Configuration for linear deployment strategy. Only valid when the deployment strategy is `LINEAR`. This configuration enables progressive traffic shifting in equal percentage increments with configurable bake times between each step. """ - canary_configuration: CanaryConfiguration | None = ... + canary_configuration: CanaryConfiguration | CanaryConfigurationDict | None """ Configuration for canary deployment strategy. Only valid when the deployment strategy is `CANARY`. This configuration enables shifting a fixed percentage of traffic for testing, followed by shifting the remaining traffic after a bake period. """ - early_success_criteria: DeploymentEarlySuccessCriteria | None = ... + early_success_criteria: ( + DeploymentEarlySuccessCriteria | DeploymentEarlySuccessCriteriaDict | None + ) """ The early success criteria configuration for a rolling deployment. With early success criteria, you can configure an Amazon ECS deployment to @@ -5367,6 +8428,100 @@ class DeploymentController(_SerdeShape): production traffic to it. """ +class DeploymentControllerDict(TypedDict, total=False): + """Dictionary form of `DeploymentController`.""" + + type: Required[str] + """ + The deployment controller type to use. + + The deployment controller is the mechanism that determines how tasks are + deployed for your service. The valid options are: + + - ECS + + When you create a service which uses the `ECS` deployment controller, + you can choose between the following deployment strategies: + + - `ROLLING`: When you create a service which uses the *rolling update* + (`ROLLING`) deployment strategy, the Amazon ECS service scheduler + replaces the currently running tasks with new tasks. The number of + tasks that Amazon ECS adds or removes from the service during a + rolling update is controlled by the service deployment + configuration. + + Rolling update deployments are best suited for the following + scenarios: + + - Gradual service updates: You need to update your service + incrementally without taking the entire service offline at once. + + - Limited resource requirements: You want to avoid the additional + resource costs of running two complete environments simultaneously + (as required by blue/green deployments). + + - Acceptable deployment time: Your application can tolerate a longer + deployment process, as rolling updates replace tasks one by one. + + - No need for instant roll back: Your service can tolerate a + rollback process that takes minutes rather than seconds. + + - Simple deployment process: You prefer a straightforward deployment + approach without the complexity of managing multiple environments, + target groups, and listeners. + + - No load balancer requirement: Your service doesn't use or require + a load balancer, Application Load Balancer, Network Load Balancer, + or Service Connect (which are required for blue/green + deployments). + + - Stateful applications: Your application maintains state that makes + it difficult to run two parallel environments. + + - Cost sensitivity: You want to minimize deployment costs by not + running duplicate environments during deployment. + + Rolling updates are the default deployment strategy for services and + provide a balance between deployment safety and resource efficiency + for many common application scenarios. + + - `BLUE_GREEN`: A *blue/green* deployment strategy (`BLUE_GREEN`) is a + release methodology that reduces downtime and risk by running two + identical production environments called blue and green. With Amazon + ECS blue/green deployments, you can validate new service revisions + before directing production traffic to them. This approach provides + a safer way to deploy changes with the ability to quickly roll back + if needed. + + Amazon ECS blue/green deployments are best suited for the following + scenarios: + + - Service validation: When you need to validate new service + revisions before directing production traffic to them + + - Zero downtime: When your service requires zero-downtime + deployments + + - Instant roll back: When you need the ability to quickly roll back + if issues are detected + + - Load balancer requirement: When your service uses Application Load + Balancer, Network Load Balancer, or Service Connect + + - External + + Use a third-party deployment controller. + + - Blue/green deployment (powered by CodeDeploy) + + CodeDeploy installs an updated version of the application as a new + replacement task set and reroutes production traffic from the original + application task set to the replacement task set. The original task + set is terminated after a successful deployment. Use this deployment + controller to verify a new deployment of a service before sending + production traffic to it. + """ + class DeploymentControllerType(UnknownEnumMixin, StrEnum): ECS = "ECS" CODE_DEPLOY = "CODE_DEPLOY" @@ -5410,7 +8565,46 @@ class DeploymentEarlySuccessCriteria(_SerdeShape): Amazon ECS completes the deployment. Amazon ECS continues to scale the target service revision to 100 percent in the background. """ - source_service_revision_cleanup: str | None = ... + source_service_revision_cleanup: str | None = ... + """ + The time when Amazon ECS removes the source revisions' tasks relative + to deployment completion. The valid values are: + + - `BLOCKING`---Amazon ECS removes the previous tasks before it marks the + deployment as successful. + + - `DEFERRED`---Amazon ECS marks the deployment successful, and then + removes the previous tasks in the background. + """ + +class DeploymentEarlySuccessCriteriaDict(TypedDict, total=False): + """Dictionary form of `DeploymentEarlySuccessCriteria`.""" + + enable: bool | None + """ + Specifies whether to use the early success criteria for the service + deployment. When set to `false`, the deployment uses the default + behavior, where Amazon ECS considers the deployment successful when the + target service revision fully stabilizes and the previous tasks are + removed. The default value is `false`. + + When set to `true`, Amazon ECS monitors the deployment to meet early + success criteria. You must also specify `healthyPercent` and + `sourceServiceRevisionCleanup`. + """ + healthy_percent: int | None + """ + The percentage of healthy tasks that the target service revision must + reach before Amazon ECS considers the deployment successful. This + percentage is relative to the service's `desiredCount` and must be an + integer between `0` and `100`. This value must be greater than or equal + to the `minimumHealthyPercent` value. + + After this percentage of tasks is healthy and the bake time elapses, + Amazon ECS completes the deployment. Amazon ECS continues to scale the + target service revision to 100 percent in the background. + """ + source_service_revision_cleanup: str | None """ The time when Amazon ECS removes the source revisions' tasks relative to deployment completion. The valid values are: @@ -5561,6 +8755,130 @@ class DeploymentLifecycleHook(_SerdeShape): not resolved. """ +class DeploymentLifecycleHookDict(TypedDict, total=False): + """Dictionary form of `DeploymentLifecycleHook`.""" + + target_type: str | None + """ + The type of action the lifecycle hook performs. Valid values are: + + - `AWS_LAMBDA` - Invokes a Lambda function at the specified lifecycle + stage. This is the default value. + + - `PAUSE` - Pauses the deployment at the specified lifecycle stage until + you call `ContinueServiceDeployment` to continue or roll back. + + This field is optional. If not specified, the default value is + `AWS_LAMBDA`. + """ + hook_target_arn: str | None + """ + The Amazon Resource Name (ARN) of the hook target. For `AWS_LAMBDA` + hooks, this is the Lambda function ARN. This field is not applicable for + `PAUSE` hooks. + + You must provide this parameter when configuring an `AWS_LAMBDA` + lifecycle hook. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that grants Amazon ECS + permission to call Lambda functions on your behalf. + + For more information, see [Permissions required for Lambda functions in + Amazon ECS blue/green + deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-permissions.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + lifecycle_stages: Sequence[str] | None + """ + The lifecycle stages at which to run the hook. Choose from these valid + values: + + - RECONCILE_SERVICE + + The reconciliation stage that only happens when you start a new + service deployment with more than 1 service revision in an ACTIVE + state. + + You can use a lifecycle hook for this stage. + + - PRE_SCALE_UP + + The green service revision has not started. The blue service revision + is handling 100% of the production traffic. There is no test traffic. + + You can use a lifecycle hook for this stage. + + - POST_SCALE_UP + + The green service revision has started. The blue service revision is + handling 100% of the production traffic. There is no test traffic. + + You can use a lifecycle hook for this stage. + + - TEST_TRAFFIC_SHIFT + + The blue and green service revisions are running. The blue service + revision handles 100% of the production traffic. The green service + revision is migrating from 0% to 100% of test traffic. + + You can use a lifecycle hook for this stage. + + - POST_TEST_TRAFFIC_SHIFT + + The test traffic shift is complete. The green service revision handles + 100% of the test traffic. + + You can use a lifecycle hook for this stage. + + - PRE_PRODUCTION_TRAFFIC_SHIFT + + Occurs before production traffic shift. For linear and canary + deployments, this stage is invoked before every traffic shift step. + + You can use a lifecycle hook for this stage. + + - PRODUCTION_TRAFFIC_SHIFT + + Production traffic is shifting to the green service revision. The + green service revision is migrating from 0% to 100% of production + traffic. For linear and canary deployments, this stage is invoked at + every traffic shift step. + + You can use a lifecycle hook for this stage. + + - POST_PRODUCTION_TRAFFIC_SHIFT + + The production traffic shift is complete. + + You can use a lifecycle hook for this stage. + + Note: + `PAUSE` hooks cannot be configured at `TEST_TRAFFIC_SHIFT` or + `PRODUCTION_TRAFFIC_SHIFT` stages. These stages are only valid for + `AWS_LAMBDA` hooks. + + You must provide this parameter when configuring a deployment lifecycle + hook. + """ + hook_details: Document | None + """ + Use this field to specify custom parameters that Amazon ECS passes to + your Lambda function on each invocation. This field is not used for + `PAUSE` hooks. + """ + timeout_configuration: ( + DeploymentLifecycleHookTimeoutConfiguration + | DeploymentLifecycleHookTimeoutConfigurationDict + | None + ) + """ + The timeout configuration for the lifecycle hook. This specifies how + long Amazon ECS waits before taking the timeout action if the hook is + not resolved. + """ + class DeploymentLifecycleHookAction(UnknownEnumMixin, StrEnum): ROLLBACK = "ROLLBACK" CONTINUE_ = "CONTINUE" @@ -5658,6 +8976,29 @@ class DeploymentLifecycleHookTimeoutConfiguration(_SerdeShape): Default: `ROLLBACK` """ +class DeploymentLifecycleHookTimeoutConfigurationDict(TypedDict, total=False): + """Dictionary form of `DeploymentLifecycleHookTimeoutConfiguration`.""" + + timeout_in_minutes: int | None + """ + The number of minutes Amazon ECS waits for the lifecycle hook to + complete before taking the timeout action. + + Default: 1440 (24 hours) + """ + action: str | None + """ + The action Amazon ECS takes when the lifecycle hook times out. Valid + values are: + + - `CONTINUE` - Proceeds the deployment to the next lifecycle stage. + + - `ROLLBACK` - Rolls back the deployment to the previous service + revision. + + Default: `ROLLBACK` + """ + class DeploymentRolloutState(UnknownEnumMixin, StrEnum): COMPLETED = "COMPLETED" FAILED = "FAILED" @@ -5704,6 +9045,40 @@ class DeregisterContainerInstanceInput(_SerdeShape): on the load balancer or target group. """ +class DeregisterContainerInstanceInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterContainerInstanceInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the container instance to deregister. If you do not specify a + cluster, the default cluster is assumed. + """ + container_instance: Required[str] + """ + The container instance ID or full ARN of the container instance to + deregister. For more information about the ARN format, see [Amazon + Resource Name + (ARN)](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids) + in the *Amazon ECS Developer Guide*. + """ + force: bool | None + """ + Forces the container instance to be deregistered. If you have tasks + running on the container instance when you deregister it with the + `force` option, these tasks remain running until you terminate the + instance or the tasks stop through some other means, but they're + orphaned (no longer monitored or accounted for by Amazon ECS). If an + orphaned task on your container instance is part of an Amazon ECS + service, then the service scheduler starts another copy of that task, on + a different container instance if possible. + + Any containers in orphaned service tasks that are registered with a + Classic Load Balancer or an Application Load Balancer target group are + deregistered. They begin connection draining according to the settings + on the load balancer or target group. + """ + @dataclass(kw_only=True) class DeregisterContainerInstanceOutput(_SerdeShape): """""" @@ -5729,6 +9104,16 @@ class DeregisterTaskDefinitionInput(_SerdeShape): `revision`. """ +class DeregisterTaskDefinitionInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterTaskDefinitionInput`.""" + + task_definition: Required[str] + """ + The `family` and `revision` (`family:revision`) or full Amazon Resource + Name (ARN) of the task definition to deregister. You must specify a + `revision`. + """ + @dataclass(kw_only=True) class DeregisterTaskDefinitionOutput(_SerdeShape): """""" @@ -5791,6 +9176,53 @@ class DescribeCapacityProvidersInput(_SerdeShape): purposes. """ +class DescribeCapacityProvidersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCapacityProvidersInput`.""" + + capacity_providers: Sequence[str] | None + """ + The short name or full Amazon Resource Name (ARN) of one or more + capacity providers. Up to `100` capacity providers can be described in + an action. + """ + cluster: str | None + """ + The name of the cluster to describe capacity providers for. When + specified, only capacity providers associated with this cluster are + returned, including Amazon ECS Managed Instances capacity providers. + """ + include: Sequence[str] | None + """ + Specifies whether or not you want to see the resource tags for the + capacity provider. If `TAGS` is specified, the tags are included in the + response. If this field is omitted, tags aren't included in the + response. + """ + max_results: int | None + """ + The maximum number of account setting results returned by + `DescribeCapacityProviders` in paginated output. When this parameter is + used, `DescribeCapacityProviders` only returns `maxResults` results in a + single page along with a `nextToken` response element. The remaining + results of the initial request can be seen by sending another + `DescribeCapacityProviders` request with the returned `nextToken` value. + This value can be between 1 and 10. If this parameter is not used, then + `DescribeCapacityProviders` returns up to 10 results and a `nextToken` + value if applicable. + """ + next_token: str | None + """ + The `nextToken` value returned from a previous paginated + `DescribeCapacityProviders` request where `maxResults` was used and the + results exceeded the value of that parameter. Pagination continues from + the end of the previous results that returned the `nextToken` value. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + @dataclass(kw_only=True) class DescribeCapacityProvidersOutput(_SerdeShape): """Dataclass for DescribeCapacityProvidersOutput structure.""" @@ -5846,6 +9278,37 @@ class DescribeClustersInput(_SerdeShape): are included. """ +class DescribeClustersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeClustersInput`.""" + + clusters: Sequence[str] | None + """ + A list of up to 100 cluster names or full cluster Amazon Resource Name + (ARN) entries. If you do not specify a cluster, the default cluster is + assumed. + """ + include: Sequence[str] | None + """ + Determines whether to include additional information about the clusters + in the response. If this field is omitted, this information isn't + included. + + If `ATTACHMENTS` is specified, the attachments for the container + instances or tasks within the cluster are included, for example the + capacity providers. + + If `SETTINGS` is specified, the settings for the cluster are included. + + If `CONFIGURATIONS` is specified, the configuration for the cluster is + included. + + If `STATISTICS` is specified, the task and service count is included, + separated by launch type. + + If `TAGS` is specified, the metadata tags associated with the cluster + are included. + """ + @dataclass(kw_only=True) class DescribeClustersOutput(_SerdeShape): """""" @@ -5879,7 +9342,32 @@ class DescribeContainerInstancesInput(_SerdeShape): A list of up to 100 container instance IDs or full Amazon Resource Name (ARN) entries. """ - include: list[str] | None = ... + include: list[str] | None = ... + """ + Specifies whether you want to see the resource tags for the container + instance. If `TAGS` is specified, the tags are included in the response. + If `CONTAINER_INSTANCE_HEALTH` is specified, the container instance + health is included in the response. If this field is omitted, tags and + container instance health status aren't included in the response. + """ + +class DescribeContainerInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeContainerInstancesInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the container instances to describe. If you do not specify a + cluster, the default cluster is assumed. This parameter is required if + the container instance or container instances you are describing were + launched in any cluster other than the default cluster. + """ + container_instances: Required[Sequence[str]] + """ + A list of up to 100 container instance IDs or full Amazon Resource Name + (ARN) entries. + """ + include: Sequence[str] | None """ Specifies whether you want to see the resource tags for the container instance. If `TAGS` is specified, the tags are included in the response. @@ -5914,6 +9402,15 @@ class DescribeDaemonDeploymentsInput(_SerdeShape): ARNs. """ +class DescribeDaemonDeploymentsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDaemonDeploymentsInput`.""" + + daemon_deployment_arns: Required[Sequence[str]] + """ + The ARN of the daemon deployments to describe. You can specify up to 20 + ARNs. + """ + @dataclass(kw_only=True) class DescribeDaemonDeploymentsOutput(_SerdeShape): """Dataclass for DescribeDaemonDeploymentsOutput structure.""" @@ -5937,6 +9434,12 @@ class DescribeDaemonInput(_SerdeShape): daemon_arn: str | None = ... """The Amazon Resource Name (ARN) of the daemon to describe.""" +class DescribeDaemonInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDaemonInput`.""" + + daemon_arn: Required[str] + """The Amazon Resource Name (ARN) of the daemon to describe.""" + @dataclass(kw_only=True) class DescribeDaemonOutput(_SerdeShape): """Dataclass for DescribeDaemonOutput structure.""" @@ -5964,6 +9467,15 @@ class DescribeDaemonRevisionsInput(_SerdeShape): ARNs. """ +class DescribeDaemonRevisionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDaemonRevisionsInput`.""" + + daemon_revision_arns: Required[Sequence[str]] + """ + The ARN of the daemon revisions to describe. You can specify up to 20 + ARNs. + """ + @dataclass(kw_only=True) class DescribeDaemonRevisionsOutput(_SerdeShape): """Dataclass for DescribeDaemonRevisionsOutput structure.""" @@ -5991,6 +9503,16 @@ class DescribeDaemonTaskDefinitionInput(_SerdeShape): Amazon Resource Name (ARN) of the daemon task definition to describe. """ +class DescribeDaemonTaskDefinitionInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDaemonTaskDefinitionInput`.""" + + daemon_task_definition: Required[str] + """ + The `family` for the latest `ACTIVE` revision, `family` and `revision` + (`family:revision`) for a specific revision in the family, or full + Amazon Resource Name (ARN) of the daemon task definition to describe. + """ + @dataclass(kw_only=True) class DescribeDaemonTaskDefinitionOutput(_SerdeShape): """Dataclass for DescribeDaemonTaskDefinitionOutput structure.""" @@ -6022,6 +9544,22 @@ class DescribeExpressGatewayServiceInput(_SerdeShape): service. """ +class DescribeExpressGatewayServiceInputDict(TypedDict, total=False): + """Dictionary form of `DescribeExpressGatewayServiceInput`.""" + + service_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Express service to describe. The + ARN uniquely identifies the service within your Amazon Web Services + account and region. + """ + include: Sequence[str] | None + """ + Specifies additional information to include in the response. Valid + values are `TAGS` to include resource tags associated with the Express + service. + """ + @dataclass(kw_only=True) class DescribeExpressGatewayServiceOutput(_SerdeShape): """Dataclass for DescribeExpressGatewayServiceOutput structure.""" @@ -6131,6 +9669,12 @@ class DescribeGatewayInput(_SerdeShape): gateway: str | None = ... """The name or Amazon Resource Name (ARN) of the gateway to describe.""" +class DescribeGatewayInputDict(TypedDict, total=False): + """Dictionary form of `DescribeGatewayInput`.""" + + gateway: Required[str] + """The name or Amazon Resource Name (ARN) of the gateway to describe.""" + @dataclass(kw_only=True) class DescribeGatewayOutput(_SerdeShape): """Dataclass for DescribeGatewayOutput structure.""" @@ -6159,6 +9703,19 @@ class DescribeGatewayResourcesInput(_SerdeShape): next_token: str | None = ... """The `nextToken` value returned from a previous paginated request.""" +class DescribeGatewayResourcesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeGatewayResourcesInput`.""" + + gateway: Required[str] + """The name or Amazon Resource Name (ARN) of the gateway.""" + max_results: int | None + """ + The maximum number of results that the operation returns in a single + page. The maximum value is 20 and the default is 10. + """ + next_token: str | None + """The `nextToken` value returned from a previous paginated request.""" + @dataclass(kw_only=True) class DescribeGatewayResourcesOutput(_SerdeShape): """Dataclass for DescribeGatewayResourcesOutput structure.""" @@ -6189,6 +9746,12 @@ class DescribeGatewayRouteInput(_SerdeShape): gateway_route_arn: str | None = ... """The Amazon Resource Name (ARN) of the gateway route to describe.""" +class DescribeGatewayRouteInputDict(TypedDict, total=False): + """Dictionary form of `DescribeGatewayRouteInput`.""" + + gateway_route_arn: Required[str] + """The Amazon Resource Name (ARN) of the gateway route to describe.""" + @dataclass(kw_only=True) class DescribeGatewayRouteOutput(_SerdeShape): """Dataclass for DescribeGatewayRouteOutput structure.""" @@ -6214,6 +9777,16 @@ class DescribeServiceDeploymentsInput(_SerdeShape): You can specify a maximum of 20 ARNs. """ +class DescribeServiceDeploymentsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeServiceDeploymentsInput`.""" + + service_deployment_arns: Required[Sequence[str]] + """ + The ARN of the service deployment. + + You can specify a maximum of 20 ARNs. + """ + @dataclass(kw_only=True) class DescribeServiceDeploymentsOutput(_SerdeShape): """Dataclass for DescribeServiceDeploymentsOutput structure.""" @@ -6251,6 +9824,20 @@ class DescribeServiceRevisionsInput(_SerdeShape): to get the ARNs. """ +class DescribeServiceRevisionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeServiceRevisionsInput`.""" + + service_revision_arns: Required[Sequence[str]] + """ + The ARN of the service revision. + + You can specify a maximum of 20 ARNs. + + You can call + [ListServiceDeployments](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServiceDeployments.html) + to get the ARNs. + """ + @dataclass(kw_only=True) class DescribeServiceRevisionsOutput(_SerdeShape): """Dataclass for DescribeServiceRevisionsOutput structure.""" @@ -6291,6 +9878,29 @@ class DescribeServicesInput(_SerdeShape): field is omitted, tags aren't included in the response. """ +class DescribeServicesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeServicesInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN)the cluster that hosts + the service to describe. If you do not specify a cluster, the default + cluster is assumed. This parameter is required if the service or + services you are describing were launched in any cluster other than the + default cluster. + """ + services: Required[Sequence[str]] + """ + A list of services to describe. You may specify up to 10 services to + describe in a single operation. + """ + include: Sequence[str] | None + """ + Determines whether you want to see the resource tags for the service. If + `TAGS` is specified, the tags are included in the response. If this + field is omitted, tags aren't included in the response. + """ + @dataclass(kw_only=True) class DescribeServicesOutput(_SerdeShape): """""" @@ -6324,6 +9934,22 @@ class DescribeTaskDefinitionInput(_SerdeShape): field is omitted, tags aren't included in the response. """ +class DescribeTaskDefinitionInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTaskDefinitionInput`.""" + + task_definition: Required[str] + """ + The `family` for the latest `ACTIVE` revision, `family` and `revision` + (`family:revision`) for a specific revision in the family, or full + Amazon Resource Name (ARN) of the task definition to describe. + """ + include: Sequence[str] | None + """ + Determines whether to see the resource tags for the task definition. If + `TAGS` is specified, the tags are included in the response. If this + field is omitted, tags aren't included in the response. + """ + @dataclass(kw_only=True) class DescribeTaskDefinitionOutput(_SerdeShape): """""" @@ -6392,6 +10018,28 @@ class DescribeTaskSetsInput(_SerdeShape): omitted, tags aren't included in the response. """ +class DescribeTaskSetsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTaskSetsInput`.""" + + cluster: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the service that the task sets exist in. + """ + service: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the service that + the task sets exist in. + """ + task_sets: Sequence[str] | None + """The ID or full Amazon Resource Name (ARN) of task sets to describe.""" + include: Sequence[str] | None + """ + Specifies whether to see the resource tags for the task set. If `TAGS` + is specified, the tags are included in the response. If this field is + omitted, tags aren't included in the response. + """ + @dataclass(kw_only=True) class DescribeTaskSetsOutput(_SerdeShape): """Dataclass for DescribeTaskSetsOutput structure.""" @@ -6427,6 +10075,24 @@ class DescribeTasksInput(_SerdeShape): field is omitted, tags aren't included in the response. """ +class DescribeTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTasksInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the task or tasks to describe. If you do not specify a cluster, + the default cluster is assumed. + """ + tasks: Required[Sequence[str]] + """A list of up to 100 task IDs or full ARN entries.""" + include: Sequence[str] | None + """ + Specifies whether you want to see the resource tags for the task. If + `TAGS` is specified, the tags are included in the response. If this + field is omitted, tags aren't included in the response. + """ + @dataclass(kw_only=True) class DescribeTasksOutput(_SerdeShape): """""" @@ -6463,6 +10129,20 @@ class Device(_SerdeShape): for the device. """ +class DeviceDict(TypedDict, total=False): + """Dictionary form of `Device`.""" + + host_path: Required[str] + """The path for the device on the host container instance.""" + container_path: str | None + """The path inside the container at which to expose the host device.""" + permissions: Sequence[str] | None + """ + The explicit permissions to provide to the container for the device. By + default, the container has permissions for `read`, `write`, and `mknod` + for the device. + """ + class DeviceCgroupPermission(UnknownEnumMixin, StrEnum): READ = "read" WRITE = "write" @@ -6480,6 +10160,17 @@ class DisassociateGatewayFromClusterInput(_SerdeShape): the gateway from. """ +class DisassociateGatewayFromClusterInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateGatewayFromClusterInput`.""" + + gateway: Required[str] + """The name or Amazon Resource Name (ARN) of the gateway to disassociate.""" + cluster: Required[str] + """ + The name or Amazon Resource Name (ARN) of the cluster to disassociate + the gateway from. + """ + @dataclass(kw_only=True) class DisassociateGatewayFromClusterOutput(_SerdeShape): """Dataclass for DisassociateGatewayFromClusterOutput structure.""" @@ -6519,6 +10210,22 @@ class DiscoverPollEndpointInput(_SerdeShape): the container instance belongs to. """ +class DiscoverPollEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DiscoverPollEndpointInput`.""" + + container_instance: str | None + """ + The container instance ID or full ARN of the container instance. For + more information about the ARN format, see [Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids) + in the *Amazon ECS Developer Guide*. + """ + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + the container instance belongs to. + """ + @dataclass(kw_only=True) class DiscoverPollEndpointOutput(_SerdeShape): """""" @@ -6590,6 +10297,48 @@ class DockerVolumeConfiguration(_SerdeShape): to docker volume create. """ +class DockerVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `DockerVolumeConfiguration`.""" + + scope: str | None + """ + The scope for the Docker volume that determines its lifecycle. Docker + volumes that are scoped to a `task` are automatically provisioned when + the task starts and destroyed when the task stops. Docker volumes that + are scoped as `shared` persist after the task stops. + """ + autoprovision: bool | None + """ + If this value is `true`, the Docker volume is created if it doesn't + already exist. + + Note: + This field is only used if the `scope` is `shared`. + """ + driver: str | None + """ + The Docker volume driver to use. The driver value must match the driver + name provided by Docker because it is used for task placement. If the + driver was installed using the Docker plugin CLI, use `docker plugin ls` + to retrieve the driver name from your container instance. If the driver + was installed using another method, use Docker plugin discovery to + retrieve the driver name. This parameter maps to `Driver` in the docker + container create command and the `xxdriver` option to docker volume + create. + """ + driver_opts: Mapping[str, str] | None + """ + A map of Docker driver-specific options passed through. This parameter + maps to `DriverOpts` in the docker create-volume command and the `xxopt` + option to docker volume create. + """ + labels: Mapping[str, str] | None + """ + Custom metadata to add to your Docker volume. This parameter maps to + `Labels` in the docker container create command and the `xxlabel` option + to docker volume create. + """ + class EBSResourceType(UnknownEnumMixin, StrEnum): VOLUME = "volume" @@ -6612,6 +10361,24 @@ class EBSTagSpecification(_SerdeShape): propagated. """ +class EBSTagSpecificationDict(TypedDict, total=False): + """Dictionary form of `EBSTagSpecification`.""" + + resource_type: Required[str] + """The type of volume resource.""" + tags: Sequence[Tag | TagDict] | None + """ + The tags applied to this Amazon EBS volume. `AmazonECSCreated` and + `AmazonECSManaged` are reserved tags that can't be used. + """ + propagate_tags: str | None + """ + Determines whether to propagate the tags from the task definition to the + Amazon EBS volume. Tags can only propagate to a `SERVICE` specified in + `ServiceVolumeConfiguration`. If no value is specified, the tags aren't + propagated. + """ + @dataclass(kw_only=True) class ECSExpressGatewayService(_SerdeShape): """ @@ -6706,6 +10473,31 @@ class EFSAuthorizationConfig(_SerdeShape): in the *Amazon Elastic Container Service Developer Guide*. """ +class EFSAuthorizationConfigDict(TypedDict, total=False): + """Dictionary form of `EFSAuthorizationConfig`.""" + + access_point_id: str | None + """ + The Amazon EFS access point ID to use. If an access point is specified, + the root directory value specified in the `EFSVolumeConfiguration` must + either be omitted or set to `/` which will enforce the path set on the + EFS access point. If an access point is used, transit encryption must be + on in the `EFSVolumeConfiguration`. For more information, see [Working + with Amazon EFS access + points](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) + in the *Amazon Elastic File System User Guide*. + """ + iam: str | None + """ + Determines whether to use the Amazon ECS task role defined in a task + definition when mounting the Amazon EFS file system. If it is turned on, + transit encryption must be turned on in the `EFSVolumeConfiguration`. If + this parameter is omitted, the default value of `DISABLED` is used. For + more information, see [Using Amazon EFS access + points](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html#efs-volume-accesspoints) + in the *Amazon Elastic Container Service Developer Guide*. + """ + class EFSAuthorizationConfigIAM(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -6724,9 +10516,48 @@ class EFSVolumeConfiguration(_SerdeShape): in the *Amazon Elastic Container Service Developer Guide*. """ - file_system_id: str + file_system_id: str + """The Amazon EFS file system ID to use.""" + root_directory: str | None = ... + """ + The directory within the Amazon EFS file system to mount as the root + directory inside the host. If this parameter is omitted, the root of the + Amazon EFS volume will be used. Specifying `/` will have the same effect + as omitting this parameter. + + Warning: + If an EFS access point is specified in the `authorizationConfig`, the + root directory parameter must either be omitted or set to `/` which will + enforce the path set on the EFS access point. + """ + transit_encryption: str | None = ... + """ + Determines whether to use encryption for Amazon EFS data in transit + between the Amazon ECS host and the Amazon EFS server. Transit + encryption must be turned on if Amazon EFS IAM authorization is used. If + this parameter is omitted, the default value of `DISABLED` is used. For + more information, see [Encrypting data in + transit](https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html) + in the *Amazon Elastic File System User Guide*. + """ + transit_encryption_port: int | None = ... + """ + The port to use when sending encrypted data between the Amazon ECS host + and the Amazon EFS server. If you do not specify a transit encryption + port, it will use the port selection strategy that the Amazon EFS mount + helper uses. For more information, see [EFS mount + helper](https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html) + in the *Amazon Elastic File System User Guide*. + """ + authorization_config: EFSAuthorizationConfig | None = ... + """The authorization configuration details for the Amazon EFS file system.""" + +class EFSVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `EFSVolumeConfiguration`.""" + + file_system_id: Required[str] """The Amazon EFS file system ID to use.""" - root_directory: str | None = ... + root_directory: str | None """ The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the @@ -6738,7 +10569,7 @@ class EFSVolumeConfiguration(_SerdeShape): root directory parameter must either be omitted or set to `/` which will enforce the path set on the EFS access point. """ - transit_encryption: str | None = ... + transit_encryption: str | None """ Determines whether to use encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit @@ -6748,7 +10579,7 @@ class EFSVolumeConfiguration(_SerdeShape): transit](https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html) in the *Amazon Elastic File System User Guide*. """ - transit_encryption_port: int | None = ... + transit_encryption_port: int | None """ The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you do not specify a transit encryption @@ -6757,7 +10588,7 @@ class EFSVolumeConfiguration(_SerdeShape): helper](https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html) in the *Amazon Elastic File System User Guide*. """ - authorization_config: EFSAuthorizationConfig | None = ... + authorization_config: EFSAuthorizationConfig | EFSAuthorizationConfigDict | None """The authorization configuration details for the Amazon EFS file system.""" @dataclass(kw_only=True) @@ -6824,6 +10655,20 @@ class EnvironmentFile(_SerdeShape): only supported value is `s3`. """ +class EnvironmentFileDict(TypedDict, total=False): + """Dictionary form of `EnvironmentFile`.""" + + value: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon S3 object containing the + environment variable file. + """ + type: Required[str] + """ + The file type to use. Environment files are objects in Amazon S3. The + only supported value is `s3`. + """ + class EnvironmentFileType(UnknownEnumMixin, StrEnum): S3 = "s3" @@ -6851,6 +10696,16 @@ class EphemeralStorage(_SerdeShape): `200` GiB. """ +class EphemeralStorageDict(TypedDict, total=False): + """Dictionary form of `EphemeralStorage`.""" + + size_in_gi_b: int | None + """ + The total amount, in GiB, of ephemeral storage to set for the task. The + minimum supported value is `21` GiB and the maximum supported value is + `200` GiB. + """ + @dataclass(kw_only=True) class ExecuteCommandConfiguration(_SerdeShape): """The details of the execute command configuration.""" @@ -6883,6 +10738,39 @@ class ExecuteCommandConfiguration(_SerdeShape): `logging=OVERRIDE` is specified, a `logConfiguration` must be provided. """ +class ExecuteCommandConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExecuteCommandConfiguration`.""" + + kms_key_id: str | None + """ + Specify an Key Management Service key ID to encrypt the data between the + local client and the container. + """ + logging: str | None + """ + The log setting to use for redirecting logs for your execute command + results. The following log settings are available. + + - `NONE`: The execute command session is not logged. + + - `DEFAULT`: The `awslogs` configuration in the task definition is used. + If no logging parameter is specified, it defaults to this value. If no + `awslogs` log driver is configured in the task definition, the output + won't be logged. + + - `OVERRIDE`: Specify the logging details as a part of + `logConfiguration`. If the `OVERRIDE` logging option is specified, the + `logConfiguration` is required. + """ + log_configuration: ( + ExecuteCommandLogConfiguration | ExecuteCommandLogConfigurationDict | None + ) + """ + The log configuration for the results of the execute command actions. + The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When + `logging=OVERRIDE` is specified, a `logConfiguration` must be provided. + """ + @dataclass(kw_only=True) class ExecuteCommandInput(_SerdeShape): """Dataclass for ExecuteCommandInput structure.""" @@ -6908,6 +10796,30 @@ class ExecuteCommandInput(_SerdeShape): of. """ +class ExecuteCommandInputDict(TypedDict, total=False): + """Dictionary form of `ExecuteCommandInput`.""" + + cluster: str | None + """ + The Amazon Resource Name (ARN) or short name of the cluster the task is + running in. If you do not specify a cluster, the default cluster is + assumed. + """ + container: str | None + """ + The name of the container to execute the command on. A container name + only needs to be specified for tasks containing multiple containers. + """ + command: Required[str] + """The command to run on the container.""" + interactive: bool | None + """Use this flag to run your command in interactive mode.""" + task: Required[str] + """ + The Amazon Resource Name (ARN) or ID of the task the container is part + of. + """ + @dataclass(kw_only=True) class ExecuteCommandLogConfiguration(_SerdeShape): """ @@ -6942,6 +10854,36 @@ class ExecuteCommandLogConfiguration(_SerdeShape): s3_key_prefix: str | None = ... """An optional folder in the S3 bucket to place logs in.""" +class ExecuteCommandLogConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExecuteCommandLogConfiguration`.""" + + cloud_watch_log_group_name: str | None + """ + The name of the CloudWatch log group to send logs to. + + Note: + The CloudWatch log group must already be created. + """ + cloud_watch_encryption_enabled: bool | None + """ + Determines whether to use encryption on the CloudWatch logs. If not + specified, encryption will be off. + """ + s3_bucket_name: str | None + """ + The name of the S3 bucket to send logs to. + + Note: + The S3 bucket must already be created. + """ + s3_encryption_enabled: bool | None + """ + Determines whether to use encryption on the S3 logs. If not specified, + encryption is not used. + """ + s3_key_prefix: str | None + """An optional folder in the S3 bucket to place logs in.""" + class ExecuteCommandLogging(UnknownEnumMixin, StrEnum): NONE = "NONE" DEFAULT = "DEFAULT" @@ -7026,6 +10968,48 @@ class ExpressGatewayContainer(_SerdeShape): secrets: list[Secret] | None = ... """The secrets to pass to the container.""" +class ExpressGatewayContainerDict(TypedDict, total=False): + """Dictionary form of `ExpressGatewayContainer`.""" + + image: Required[str] + """ + The image used to start a container. This string is passed directly to + the Docker daemon. Images in the Docker Hub registry are available by + default. Other repositories are specified with either + `repository-url/image:tag` or `repository-url/image@digest`. + + For Express services, the image typically contains a web application + that listens on the specified container port. The image can be stored in + Amazon ECR, Docker Hub, or any other container registry accessible to + your execution role. + """ + container_port: int | None + """ + The port number on the container that receives traffic from the load + balancer. Default is 80. + """ + aws_logs_configuration: ( + ExpressGatewayServiceAwsLogsConfiguration + | ExpressGatewayServiceAwsLogsConfigurationDict + | None + ) + """The log configuration for the container.""" + repository_credentials: ( + ExpressGatewayRepositoryCredentials + | ExpressGatewayRepositoryCredentialsDict + | None + ) + """ + The configuration for repository credentials for private registry + authentication. + """ + command: Sequence[str] | None + """The command that is passed to the container.""" + environment: Sequence[KeyValuePair | KeyValuePairDict] | None + """The environment variables to pass to the container.""" + secrets: Sequence[Secret | SecretDict] | None + """The secrets to pass to the container.""" + @dataclass(kw_only=True) class ExpressGatewayRepositoryCredentials(_SerdeShape): """ @@ -7039,6 +11023,15 @@ class ExpressGatewayRepositoryCredentials(_SerdeShape): repository credentials. """ +class ExpressGatewayRepositoryCredentialsDict(TypedDict, total=False): + """Dictionary form of `ExpressGatewayRepositoryCredentials`.""" + + credentials_parameter: str | None + """ + The Amazon Resource Name (ARN) of the secret containing the private + repository credentials. + """ + @dataclass(kw_only=True) class ExpressGatewayScalingTarget(_SerdeShape): """ @@ -7068,6 +11061,24 @@ class ExpressGatewayScalingTarget(_SerdeShape): Express service is 60. """ +class ExpressGatewayScalingTargetDict(TypedDict, total=False): + """Dictionary form of `ExpressGatewayScalingTarget`.""" + + min_task_count: int | None + """The minimum number of tasks to run in the Express service.""" + max_task_count: int | None + """The maximum number of tasks to run in the Express service.""" + auto_scaling_metric: str | None + """ + The metric used for auto-scaling decisions. The default metric used for + an Express service is `CPUUtilization`. + """ + auto_scaling_target_value: int | None + """ + The target value for the auto-scaling metric. The default value for an + Express service is 60. + """ + @dataclass(kw_only=True) class ExpressGatewayServiceAwsLogsConfiguration(_SerdeShape): """ @@ -7083,6 +11094,17 @@ class ExpressGatewayServiceAwsLogsConfiguration(_SerdeShape): Express service is `ecs`. """ +class ExpressGatewayServiceAwsLogsConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExpressGatewayServiceAwsLogsConfiguration`.""" + + log_group: Required[str] + """The name of the CloudWatch Logs log group to send container logs to.""" + log_stream_prefix: Required[str] + """ + The prefix for the CloudWatch Logs log stream names. The default for an + Express service is `ecs`. + """ + @dataclass(kw_only=True) class ExpressGatewayServiceConfiguration(_SerdeShape): """ @@ -7149,6 +11171,14 @@ class ExpressGatewayServiceNetworkConfiguration(_SerdeShape): subnets: list[str] | None = ... """The IDs of the subnets associated with the Express service.""" +class ExpressGatewayServiceNetworkConfigurationDict(TypedDict, total=False): + """Dictionary form of `ExpressGatewayServiceNetworkConfiguration`.""" + + security_groups: Sequence[str] | None + """The IDs of the security groups associated with the Express service.""" + subnets: Sequence[str] | None + """The IDs of the subnets associated with the Express service.""" + class ExpressGatewayServiceScalingMetric(UnknownEnumMixin, StrEnum): AVERAGE_CPU_UTILIZATION = "AVERAGE_CPU" AVERAGE_MEMORY_UTILIZATION = "AVERAGE_MEMORY" @@ -7215,6 +11245,28 @@ class FirelensConfiguration(_SerdeShape): Tasks hosted on Fargate only support the `file` configuration file type. """ +class FirelensConfigurationDict(TypedDict, total=False): + """Dictionary form of `FirelensConfiguration`.""" + + type: Required[str] + """The log router to use. The valid values are `fluentd` or `fluentbit`.""" + options: Mapping[str, str] | None + """ + The options to use when configuring the log router. This field is + optional and can be used to specify a custom configuration file or to + add additional metadata, such as the task, task definition, cluster, and + container instance details to the log event. If specified, the syntax to + use is + `"options":{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"}`. + For more information, see [Creating a task definition that uses a + FireLens + configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef) + in the *Amazon Elastic Container Service Developer Guide*. + + Note: + Tasks hosted on Fargate only support the `file` configuration file type. + """ + class FirelensConfigurationType(UnknownEnumMixin, StrEnum): FLUENTD = "fluentd" FLUENTBIT = "fluentbit" @@ -7247,6 +11299,23 @@ class FSxWindowsFileServerAuthorizationConfig(_SerdeShape): Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. """ +class FSxWindowsFileServerAuthorizationConfigDict(TypedDict, total=False): + """Dictionary form of `FSxWindowsFileServerAuthorizationConfig`.""" + + credentials_parameter: Required[str] + """ + The authorization credential option to use. The authorization credential + options can be provided using either the Amazon Resource Name (ARN) of + an Secrets Manager secret or SSM Parameter Store parameter. The ARN + refers to the stored credentials. + """ + domain: Required[str] + """ + A fully qualified domain name hosted by an [Directory + Service](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) + Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. + """ + @dataclass(kw_only=True) class FSxWindowsFileServerVolumeConfiguration(_SerdeShape): """ @@ -7274,6 +11343,25 @@ class FSxWindowsFileServerVolumeConfiguration(_SerdeShape): File Server file system. """ +class FSxWindowsFileServerVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `FSxWindowsFileServerVolumeConfiguration`.""" + + file_system_id: Required[str] + """The Amazon FSx for Windows File Server file system ID to use.""" + root_directory: Required[str] + """ + The directory within the Amazon FSx for Windows File Server file system + to mount as the root directory inside the host. + """ + authorization_config: Required[ + FSxWindowsFileServerAuthorizationConfig + | FSxWindowsFileServerAuthorizationConfigDict + ] + """ + The authorization configuration details for the Amazon FSx for Windows + File Server file system. + """ + @dataclass(kw_only=True) class Gateway(_SerdeShape): """ @@ -7370,6 +11458,12 @@ class GatewayAlbTestTrafficRules(_SerdeShape): header: GatewayTestTrafficHeader | None = ... """The header-based rule that identifies test traffic.""" +class GatewayAlbTestTrafficRulesDict(TypedDict, total=False): + """Dictionary form of `GatewayAlbTestTrafficRules`.""" + + header: GatewayTestTrafficHeader | GatewayTestTrafficHeaderDict | None + """The header-based rule that identifies test traffic.""" + class GatewayClusterAssociationStatus(UnknownEnumMixin, StrEnum): """The status of an association between a gateway and a cluster.""" @@ -7425,6 +11519,20 @@ type. class _GatewayConfigurationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> GatewayConfiguration: ... +class GatewayConfigurationHostSharedAlbDict(TypedDict): + host_shared_alb: HostSharedAlbConfiguration | HostSharedAlbConfigurationDict + """ + The configuration for a host-based, shared Application Load Balancer + gateway. Each service that uses the gateway is assigned a unique DNS + host name. + """ + +GatewayConfigurationDict = Union[GatewayConfigurationHostSharedAlbDict] +""" +Dictionary form of `GatewayConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class GatewayConnection(_SerdeShape): """ @@ -7557,6 +11665,22 @@ class GatewayConnector(_SerdeShape): applies to. """ +class GatewayConnectorDict(TypedDict, total=False): + """Dictionary form of `GatewayConnector`.""" + + port_name: Required[str] + """The name of the service port that the gateway routes ingress traffic to.""" + health_check: GatewayConnectorHealthCheck | GatewayConnectorHealthCheckDict | None + """ + The health check that the gateway uses to determine whether the targets + for this connector are healthy. + """ + filters: GatewayConnectorFilters | GatewayConnectorFiltersDict | None + """ + The filters that control which gateway ingress paths the connector + applies to. + """ + @dataclass(kw_only=True) class GatewayConnectorFilters(_SerdeShape): """ @@ -7576,6 +11700,21 @@ class GatewayConnectorFilters(_SerdeShape): - `PRIVATE` - The ingress path is only accessible privately. """ +class GatewayConnectorFiltersDict(TypedDict, total=False): + """Dictionary form of `GatewayConnectorFilters`.""" + + access_types: Sequence[str] | None + """ + The access types of the gateway ingress paths that the connector applies + to. + + The access type can be one of the following values: + + - `PUBLIC` - The ingress path is publicly accessible. + + - `PRIVATE` - The ingress path is only accessible privately. + """ + @dataclass(kw_only=True) class GatewayConnectorHealthCheck(_SerdeShape): """ @@ -7622,3 +11761,50 @@ class GatewayConnectorHealthCheck(_SerdeShape): The HTTP or gRPC codes that indicate a successful health check response from a target. """ + +class GatewayConnectorHealthCheckDict(TypedDict, total=False): + """Dictionary form of `GatewayConnectorHealthCheck`.""" + + health_check_protocol: str | None + """ + The protocol that the gateway uses to perform health checks. + + Valid values: + + - `HTTP` - Health checks are performed over HTTP. + + - `HTTPS` - Health checks are performed over HTTPS. + """ + health_check_port: int | None + """The port that the gateway uses to perform health checks on the targets.""" + health_check_path: str | None + """The destination path for health check requests.""" + health_check_timeout_seconds: int | None + """ + The amount of time, in seconds, during which no response from a target + means a failed health check. + """ + health_check_interval_seconds: int | None + """ + The approximate amount of time, in seconds, between health checks of an + individual target. + """ + healthy_threshold_count: int | None + """ + The number of consecutive successful health checks that a target must + pass before the gateway considers it healthy. + """ + unhealthy_threshold_count: int | None + """ + The number of consecutive failed health checks that a target must fail + before the gateway considers it unhealthy. + """ + matcher: ( + GatewayConnectorHealthCheckMatcher + | GatewayConnectorHealthCheckMatcherDict + | None + ) + """ + The HTTP or gRPC codes that indicate a successful health check response + from a target. + """ diff --git a/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_1.pyi b/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_1.pyi index a7b1aefff..4286f4a24 100644 --- a/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_1.pyi +++ b/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_1.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.response import ResponseMetadata @@ -11,56 +12,84 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( AcceleratorCountRequest, + AcceleratorCountRequestDict, AcceleratorTotalMemoryMiBRequest, + AcceleratorTotalMemoryMiBRequestDict, AdvancedConfiguration, + AdvancedConfigurationDict, Attachment, AttachmentStateChange, + AttachmentStateChangeDict, Attribute, + AttributeDict, AutoRepairConfiguration, AwsVpcConfiguration, + AwsVpcConfigurationDict, BaselineEbsBandwidthMbpsRequest, + BaselineEbsBandwidthMbpsRequestDict, CapacityProviderStrategyItem, + CapacityProviderStrategyItemDict, CapacityReservationRequest, + CapacityReservationRequestDict, Cluster, Container, ContainerDefinition, + ContainerDefinitionDict, ContainerImage, ContainerInstance, ContainerStateChange, + ContainerStateChangeDict, CreatedAt, + CreatedAtDict, DaemonContainerDefinition, + DaemonContainerDefinitionDict, DaemonDeploymentSummary, DaemonSummary, DaemonTaskDefinitionSummary, DaemonVolume, + DaemonVolumeDict, Deployment, DeploymentConfiguration, DeploymentController, DeploymentEphemeralStorage, DeploymentLifecycleHookDetail, Device, + DeviceDict, EBSTagSpecification, + EBSTagSpecificationDict, ECSManagedResources, ElbGatewayResources, EphemeralStorage, + EphemeralStorageDict, Failure, GatewayAlbTestTrafficRules, + GatewayAlbTestTrafficRulesDict, GatewayClusterAssociationSummary, GatewayConnector, ServiceError, TaskDefinitionPlacementConstraint, + TaskDefinitionPlacementConstraintDict, TaskEphemeralStorage, TaskOverride, + TaskOverrideDict, TaskSet, TaskVolumeConfiguration, + TaskVolumeConfigurationDict, TimeoutConfiguration, + TimeoutConfigurationDict, Tmpfs, + TmpfsDict, TotalLocalStorageGBRequest, + TotalLocalStorageGBRequestDict, TrustedExecutionConfiguration, + TrustedExecutionConfigurationDict, TrustedExecutionSummary, VCpuCountRangeRequest, + VCpuCountRangeRequestDict, VersionInfo, + VersionInfoDict, Volume, + VolumeDict, VpcLatticeConfiguration, _SerdeShape, ) @@ -77,6 +106,14 @@ class GatewayConnectorHealthCheckMatcher(_SerdeShape): grpc_code: str | None = ... """The gRPC codes that indicate a successful response from a target.""" +class GatewayConnectorHealthCheckMatcherDict(TypedDict, total=False): + """Dictionary form of `GatewayConnectorHealthCheckMatcher`.""" + + http_code: str | None + """The HTTP codes that indicate a successful response from a target.""" + grpc_code: str | None + """The gRPC codes that indicate a successful response from a target.""" + class GatewayConnectorHealthCheckProtocol(UnknownEnumMixin, StrEnum): """ The protocol that a gateway uses to perform health checks on connector @@ -98,6 +135,14 @@ class GatewayElbAccessLogConfiguration(_SerdeShape): destination: GatewayElbAccessLogDestination | None = ... """The destination where access logs are delivered.""" +class GatewayElbAccessLogConfigurationDict(TypedDict, total=False): + """Dictionary form of `GatewayElbAccessLogConfiguration`.""" + + destination: ( + GatewayElbAccessLogDestination | GatewayElbAccessLogDestinationDict | None + ) + """The destination where access logs are delivered.""" + @dataclass class GatewayElbAccessLogDestinationS3(_SerdeShape): """The Amazon S3 destination for access logs.""" @@ -127,6 +172,16 @@ class _GatewayElbAccessLogDestinationDeserializer: self, deserializer: ShapeDeserializer ) -> GatewayElbAccessLogDestination: ... +class GatewayElbAccessLogDestinationS3Dict(TypedDict): + s3: GatewayElbAccessLogS3Destination | GatewayElbAccessLogS3DestinationDict + """The Amazon S3 destination for access logs.""" + +GatewayElbAccessLogDestinationDict = Union[GatewayElbAccessLogDestinationS3Dict] +""" +Dictionary form of `GatewayElbAccessLogDestination`, setting exactly +one variant. +""" + @dataclass(kw_only=True) class GatewayElbAccessLogS3Destination(_SerdeShape): """ @@ -139,6 +194,14 @@ class GatewayElbAccessLogS3Destination(_SerdeShape): prefix: str | None = ... """The object key prefix for the access logs in the Amazon S3 bucket.""" +class GatewayElbAccessLogS3DestinationDict(TypedDict, total=False): + """Dictionary form of `GatewayElbAccessLogS3Destination`.""" + + bucket: Required[str] + """The name of the Amazon S3 bucket where access logs are delivered.""" + prefix: str | None + """The object key prefix for the access logs in the Amazon S3 bucket.""" + class GatewayElbIpAddressType(UnknownEnumMixin, StrEnum): """The IP address type for the load balancers that a gateway manages.""" @@ -174,6 +237,27 @@ class GatewayElbNetworkConfiguration(_SerdeShape): default is `dualstack`. """ +class GatewayElbNetworkConfigurationDict(TypedDict, total=False): + """Dictionary form of `GatewayElbNetworkConfiguration`.""" + + inbound_security_group: str | None + """ + The ID of a security group that you provide to control inbound traffic + to the load balancers that the gateway manages. When you specify a + security group, the gateway doesn't create inbound rules on the + security group it manages. + """ + subnets: Sequence[str] | None + """ + The subnets for the load balancers that the gateway manages. The default + is the subnets in the default VPC. + """ + ip_address_type: str | None + """ + The IP address type for the load balancers that the gateway manages. The + default is `dualstack`. + """ + class GatewayElbScheme(UnknownEnumMixin, StrEnum): """ Specifies whether the load balancers that a gateway manages are @@ -459,6 +543,14 @@ class GatewayTestTrafficHeader(_SerdeShape): values: list[str] """The header values to match for test traffic routing.""" +class GatewayTestTrafficHeaderDict(TypedDict, total=False): + """Dictionary form of `GatewayTestTrafficHeader`.""" + + name: Required[str] + """The name of the header to match for test traffic routing.""" + values: Required[Sequence[str]] + """The header values to match for test traffic routing.""" + @dataclass(kw_only=True) class GetTaskProtectionInput(_SerdeShape): """Dataclass for GetTaskProtectionInput structure.""" @@ -471,6 +563,17 @@ class GetTaskProtectionInput(_SerdeShape): tasks: list[str] | None = ... """A list of up to 100 task IDs or full ARN entries.""" +class GetTaskProtectionInputDict(TypedDict, total=False): + """Dictionary form of `GetTaskProtectionInput`.""" + + cluster: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the service that the task sets exist in. + """ + tasks: Sequence[str] | None + """A list of up to 100 task IDs or full ARN entries.""" + @dataclass(kw_only=True) class GetTaskProtectionOutput(_SerdeShape): """Dataclass for GetTaskProtectionOutput structure.""" @@ -786,6 +889,64 @@ class HealthCheck(_SerdeShape): maximum number of retries. """ +class HealthCheckDict(TypedDict, total=False): + """Dictionary form of `HealthCheck`.""" + + command: Required[Sequence[str]] + """ + A string array representing the command that the container runs to + determine if it is healthy. The string array must start with `CMD` to + run the command arguments directly, or `CMD-SHELL` to run the command + with the container's default shell. + + When you use the Amazon Web Services Management Console JSON panel, the + Command Line Interface, or the APIs, enclose the list of commands in + double quotes and brackets. + + `[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ]` + + You don't include the double quotes and brackets when you use the + Amazon Web Services Management Console. + + ` CMD-SHELL, curl -f http://localhost/ || exit 1` + + An exit code of 0 indicates success, and non-zero exit code indicates + failure. For more information, see `HealthCheck` in the docker container + create command. + """ + interval: int | None + """ + The time period in seconds between each health check execution. You may + specify between 5 and 300 seconds. The default value is 30 seconds. This + value applies only when you specify a `command`. + """ + timeout: int | None + """ + The time period in seconds to wait for a health check to succeed before + it is considered a failure. You may specify between 2 and 60 seconds. + The default value is 5. This value applies only when you specify a + `command`. + """ + retries: int | None + """ + The number of times to retry a failed health check before the container + is considered unhealthy. You may specify between 1 and 10 retries. The + default value is 3. This value applies only when you specify a + `command`. + """ + start_period: int | None + """ + The optional grace period to provide containers time to bootstrap before + failed health checks count towards the maximum number of retries. You + can specify between 0 and 300 seconds. By default, the `startPeriod` is + off. This value applies only when you specify a `command`. + + Note: + If a health check succeeds within the `startPeriod`, then the container + is considered healthy and any subsequent failures count toward the + maximum number of retries. + """ + class HealthStatus(UnknownEnumMixin, StrEnum): HEALTHY = "HEALTHY" UNHEALTHY = "UNHEALTHY" @@ -804,6 +965,14 @@ class HostEntry(_SerdeShape): ip_address: str """The IP address to use in the `/etc/hosts` entry.""" +class HostEntryDict(TypedDict, total=False): + """Dictionary form of `HostEntry`.""" + + hostname: Required[str] + """The hostname to use in the `/etc/hosts` entry.""" + ip_address: Required[str] + """The IP address to use in the `/etc/hosts` entry.""" + @dataclass(kw_only=True) class HostSharedAlbConfiguration(_SerdeShape): """ @@ -861,6 +1030,64 @@ class HostSharedAlbConfiguration(_SerdeShape): production traffic shifts to it. """ +class HostSharedAlbConfigurationDict(TypedDict, total=False): + """Dictionary form of `HostSharedAlbConfiguration`.""" + + network_configuration: ( + GatewayElbNetworkConfiguration | GatewayElbNetworkConfigurationDict | None + ) + """ + The network configuration for the load balancers that the gateway + manages. + """ + scheme: str | None + """ + Specifies whether the load balancers the gateway manages are + `internet-facing` or `internal`. The default is `internet-facing`. + """ + web_acl_arn: str | None + """ + The Amazon Resource Name (ARN) of the WAF web ACL to associate with the + load balancers that the gateway manages. + """ + access_logs: ( + GatewayElbAccessLogConfiguration | GatewayElbAccessLogConfigurationDict | None + ) + """ + The access log configuration for the load balancers that the gateway + manages. + """ + port: int | None + """ + The port that the load balancer listener uses is 443. The gateway + supports only HTTPS at port 443. + """ + protocol: str | None + """ + The protocol for the load balancer listener is `HTTPS`. No other + protocol is supported. + """ + max_alb_count: int | None + """ + The maximum number of Application Load Balancers that the gateway + manages. The default is 10. + """ + http_desync: str | None + """ + The desync mitigation mode for the load balancers that the gateway + manages, which determines how the load balancers handle requests that + might pose a security risk. The default is `defensive`. + """ + test_traffic_rules: ( + GatewayAlbTestTrafficRules | GatewayAlbTestTrafficRulesDict | None + ) + """ + The rules that route test traffic for progressive deployments. During a + progressive deployment, requests whose headers match these rules are + routed to the new service revision so that it can be validated before + production traffic shifts to it. + """ + @dataclass(kw_only=True) class HostVolumeProperties(_SerdeShape): """Details on a container instance bind mount host volume.""" @@ -881,6 +1108,25 @@ class HostVolumeProperties(_SerdeShape): not supported. """ +class HostVolumePropertiesDict(TypedDict, total=False): + """Dictionary form of `HostVolumeProperties`.""" + + source_path: str | None + """ + When the `host` parameter is used, specify a `sourcePath` to declare the + path on the host container instance that's presented to the container. + If this parameter is empty, then the Docker daemon has assigned a host + path for you. If the `host` parameter contains a `sourcePath` file + location, then the data volume persists at the specified location on the + host container instance until you delete it manually. If the + `sourcePath` value doesn't exist on the host container instance, the + Docker daemon creates it. If the location does exist, the contents of + the source path folder are exported. + + If you're using the Fargate launch type, the `sourcePath` parameter is + not supported. + """ + @dataclass(kw_only=True) class InferenceAccelerator(_SerdeShape): """ @@ -899,6 +1145,18 @@ class InferenceAccelerator(_SerdeShape): device_type: str """The Elastic Inference accelerator type to use.""" +class InferenceAcceleratorDict(TypedDict, total=False): + """Dictionary form of `InferenceAccelerator`.""" + + device_name: Required[str] + """ + The Elastic Inference accelerator device name. The `deviceName` must + also be referenced in a container definition as a + [ResourceRequirement](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ResourceRequirement.html). + """ + device_type: Required[str] + """The Elastic Inference accelerator type to use.""" + @dataclass(kw_only=True) class InferenceAcceleratorOverride(_SerdeShape): """ @@ -919,6 +1177,18 @@ class InferenceAcceleratorOverride(_SerdeShape): device_type: str | None = ... """The Elastic Inference accelerator type to use.""" +class InferenceAcceleratorOverrideDict(TypedDict, total=False): + """Dictionary form of `InferenceAcceleratorOverride`.""" + + device_name: str | None + """ + The Elastic Inference accelerator device name to override for the task. + This parameter must match a `deviceName` specified in the task + definition. + """ + device_type: str | None + """The Elastic Inference accelerator type to use.""" + @dataclass(kw_only=True) class InfrastructureOptimization(_SerdeShape): """ @@ -945,6 +1215,28 @@ class InfrastructureOptimization(_SerdeShape): seconds to wait before optimizing instances. """ +class InfrastructureOptimizationDict(TypedDict, total=False): + """Dictionary form of `InfrastructureOptimization`.""" + + scale_in_after: int | None + """ + This parameter defines the number of seconds Amazon ECS Managed + Instances waits before optimizing EC2 instances that have become idle or + underutilized. A longer delay increases the likelihood of placing new + tasks on idle or underutilized instances instances, reducing startup + time. A shorter delay helps reduce infrastructure costs by optimizing + idle or underutilized instances,instances more quickly. + + Valid values are: + + - `null` - Uses the default optimization behavior. + + - `-1` - Disables automatic infrastructure optimization. + + - A value between `0` and `3600` (inclusive) - Specifies the number of + seconds to wait before optimizing instances. + """ + @dataclass(kw_only=True) class IngressPathSummary(_SerdeShape): """The entry point into an Express service.""" @@ -1142,66 +1434,48 @@ class InstanceLaunchTemplate(_SerdeShape): in *Amazon Elastic Container Service Developer Guide*. """ -@dataclass(kw_only=True) -class InstanceLaunchTemplateUpdate(_SerdeShape): - """ - The updated launch template configuration for Amazon ECS Managed - Instances. You can modify the instance profile, network configuration, - storage settings, and instance requirements. Changes apply to new - instances launched after the update. - - For more information, see [Store instance launch parameters in Amazon - EC2 launch - templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) - in the *Amazon EC2 User Guide*. - """ +class InstanceLaunchTemplateDict(TypedDict, total=False): + """Dictionary form of `InstanceLaunchTemplate`.""" - ec2_instance_profile_arn: str | None = ... + ec2_instance_profile_arn: Required[str] """ - The updated Amazon Resource Name (ARN) of the instance profile. The new - instance profile must have the necessary permissions for your tasks. + The Amazon Resource Name (ARN) of the instance profile that Amazon ECS + applies to Amazon ECS Managed Instances. This instance profile must + include the necessary permissions for your tasks to access Amazon Web + Services services and resources. For more information, see [Amazon ECS instance profile for Managed Instances](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/managed-instances-instance-profile.html) in the *Amazon ECS Developer Guide*. """ - network_configuration: ManagedInstancesNetworkConfiguration | None = ... - """ - The updated network configuration for Amazon ECS Managed Instances. - Changes to subnets and security groups affect new instances launched - after the update. - """ - storage_configuration: ManagedInstancesStorageConfiguration | None = ... + network_configuration: Required[ + ManagedInstancesNetworkConfiguration | ManagedInstancesNetworkConfigurationDict + ] """ - The updated storage configuration for Amazon ECS Managed Instances. - Changes to storage settings apply to new instances launched after the - update. + The network configuration for Amazon ECS Managed Instances. This + specifies the subnets and security groups that instances use for network + connectivity. """ - instance_metadata_tags_propagation: bool | None = ... + storage_configuration: ( + ManagedInstancesStorageConfiguration + | ManagedInstancesStorageConfigurationDict + | None + ) """ - Determines whether tags are propagated to the instance metadata service - (IMDS) for Amazon EC2 instances launched by the Managed Instances - capacity provider. When enabled, all tags associated with the instance - are available through the instance metadata service. When disabled, tags - are not propagated to IMDS. - - Disable this setting if your tags contain characters that are not - compatible with IMDS, such as `/`. IMDS requires tag keys to match the - pattern `[0-9a-zA-Z\\-_+=,.@:]{1,255}`. - - The default value is `true`. - - For more information, see [Work with instance tags in instance - metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS) - in the *Amazon EC2 User Guide*. + The storage configuration for Amazon ECS Managed Instances. This defines + the data volume properties for the instances. """ - local_storage_configuration: ManagedInstancesLocalStorageConfiguration | None = ... + local_storage_configuration: ( + ManagedInstancesLocalStorageConfiguration + | ManagedInstancesLocalStorageConfigurationDict + | None + ) """ - The updated local storage configuration for Amazon ECS Managed - Instances. Changes to local storage settings apply to new instances - launched after the update. + The local storage configuration for Amazon ECS Managed Instances. This + defines how ECS uses instance store volumes available on the container + instance. """ - monitoring: str | None = ... + monitoring: str | None """ CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for @@ -1213,13 +1487,275 @@ class InstanceLaunchTemplateUpdate(_SerdeShape): Instances](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/detailed-monitoring-managed-instances.html) in the Amazon ECS Developer Guide. """ - instance_requirements: InstanceRequirementsRequest | None = ... - """ - The updated instance requirements for attribute-based instance type - selection. Changes to instance requirements affect which instance types - Amazon ECS selects for new instances. - """ - capacity_reservations: CapacityReservationRequest | None = ... + capacity_option_type: str | None + """ + The capacity option type. This determines whether Amazon ECS launches + On-Demand, Spot or Capacity Reservation Instances for your managed + instance capacity provider. + + Valid values are: + + - `ON_DEMAND` - Launches standard On-Demand Instances. On-Demand + Instances provide predictable pricing and availability. + + - `SPOT` - Launches Spot Instances that use spare Amazon EC2 capacity at + reduced cost. Spot Instances can be interrupted by Amazon EC2 with a + two-minute notification when the capacity is needed back. + + - `RESERVED` - Launches Instances using Amazon EC2 Capacity + Reservations. Capacity Reservations allow you to reserve compute + capacity for Amazon EC2 instances in a specific Availability Zone. + + The default is On-Demand + + For more information about Amazon EC2 capacity options, see [Instance + purchasing + options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html) + in the *Amazon EC2 User Guide*. + """ + instance_metadata_tags_propagation: bool | None + """ + Determines whether tags are propagated to the instance metadata service + (IMDS) for Amazon EC2 instances launched by the Managed Instances + capacity provider. When enabled, all tags associated with the instance + are available through the instance metadata service. When disabled, tags + are not propagated to IMDS. + + Disable this setting if your tags contain characters that are not + compatible with IMDS, such as `/`. IMDS requires tag keys to match the + pattern `[0-9a-zA-Z\\-_+=,.@:]{1,255}`. + + The default value is `true`. + + For more information, see [Work with instance tags in instance + metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS) + in the *Amazon EC2 User Guide*. + """ + instance_requirements: ( + InstanceRequirementsRequest | InstanceRequirementsRequestDict | None + ) + """ + The instance requirements. You can specify: + + - The instance types + + - Instance requirements such as vCPU count, memory, network performance, + and accelerator specifications + + Amazon ECS automatically selects the instances that match the specified + criteria. + """ + fips_enabled: bool | None + """ + Determines whether to enable FIPS 140-2 validated cryptographic modules + on EC2 instances launched by the capacity provider. If `true`, instances + use FIPS-compliant cryptographic algorithms and modules for enhanced + security compliance. If `false`, instances use standard cryptographic + implementations. + + If not specified, instances are launched with FIPS enabled in Amazon Web + Services GovCloud (US) regions and FIPS disabled in other regions. + """ + capacity_reservations: ( + CapacityReservationRequest | CapacityReservationRequestDict | None + ) + """ + Capacity reservation specifications. You can specify: + + - Capacity reservation preference + + - Reservation resource group to be used for targeted capacity + reservations + + Amazon ECS will launch instances according to the specified criteria. + """ + nitro_enclaves_enabled: bool | None + """ + Specifies whether instances that this capacity provider launches have + [Nitro + Sandbox](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-ec2-nitro-sandboxes.html) + enabled. Enable this setting to run tasks that use the + `ISOLATED_SANDBOX` or `CONFIDENTIAL_SANDBOX` isolation mode. + + When you enable this setting, the capacity provider must include at + least one instance type that supports Nitro Sandbox. You can't enable + this setting together with local storage (the `useLocalStorage` setting + in `localStorageConfiguration`). + + The default value is `false`. + + For more information, see [Isolated and confidential + tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/isolated-confidential-tasks.html) + in *Amazon Elastic Container Service Developer Guide*. + """ + +@dataclass(kw_only=True) +class InstanceLaunchTemplateUpdate(_SerdeShape): + """ + The updated launch template configuration for Amazon ECS Managed + Instances. You can modify the instance profile, network configuration, + storage settings, and instance requirements. Changes apply to new + instances launched after the update. + + For more information, see [Store instance launch parameters in Amazon + EC2 launch + templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) + in the *Amazon EC2 User Guide*. + """ + + ec2_instance_profile_arn: str | None = ... + """ + The updated Amazon Resource Name (ARN) of the instance profile. The new + instance profile must have the necessary permissions for your tasks. + + For more information, see [Amazon ECS instance profile for Managed + Instances](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/managed-instances-instance-profile.html) + in the *Amazon ECS Developer Guide*. + """ + network_configuration: ManagedInstancesNetworkConfiguration | None = ... + """ + The updated network configuration for Amazon ECS Managed Instances. + Changes to subnets and security groups affect new instances launched + after the update. + """ + storage_configuration: ManagedInstancesStorageConfiguration | None = ... + """ + The updated storage configuration for Amazon ECS Managed Instances. + Changes to storage settings apply to new instances launched after the + update. + """ + instance_metadata_tags_propagation: bool | None = ... + """ + Determines whether tags are propagated to the instance metadata service + (IMDS) for Amazon EC2 instances launched by the Managed Instances + capacity provider. When enabled, all tags associated with the instance + are available through the instance metadata service. When disabled, tags + are not propagated to IMDS. + + Disable this setting if your tags contain characters that are not + compatible with IMDS, such as `/`. IMDS requires tag keys to match the + pattern `[0-9a-zA-Z\\-_+=,.@:]{1,255}`. + + The default value is `true`. + + For more information, see [Work with instance tags in instance + metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS) + in the *Amazon EC2 User Guide*. + """ + local_storage_configuration: ManagedInstancesLocalStorageConfiguration | None = ... + """ + The updated local storage configuration for Amazon ECS Managed + Instances. Changes to local storage settings apply to new instances + launched after the update. + """ + monitoring: str | None = ... + """ + CloudWatch provides two categories of monitoring: basic monitoring and + detailed monitoring. By default, your managed instance is configured for + basic monitoring. You can optionally enable detailed monitoring to help + you more quickly identify and act on operational issues. You can enable + or turn off detailed monitoring at launch or when the managed instance + is running or stopped. For more information, see [Detailed monitoring + for Amazon ECS Managed + Instances](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/detailed-monitoring-managed-instances.html) + in the Amazon ECS Developer Guide. + """ + instance_requirements: InstanceRequirementsRequest | None = ... + """ + The updated instance requirements for attribute-based instance type + selection. Changes to instance requirements affect which instance types + Amazon ECS selects for new instances. + """ + capacity_reservations: CapacityReservationRequest | None = ... + """ + The updated capacity reservations specifications for Amazon ECS Managed + Instances. Changes to capacity reservations settings apply to new + instances launched after the update. + """ + +class InstanceLaunchTemplateUpdateDict(TypedDict, total=False): + """Dictionary form of `InstanceLaunchTemplateUpdate`.""" + + ec2_instance_profile_arn: str | None + """ + The updated Amazon Resource Name (ARN) of the instance profile. The new + instance profile must have the necessary permissions for your tasks. + + For more information, see [Amazon ECS instance profile for Managed + Instances](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/managed-instances-instance-profile.html) + in the *Amazon ECS Developer Guide*. + """ + network_configuration: ( + ManagedInstancesNetworkConfiguration + | ManagedInstancesNetworkConfigurationDict + | None + ) + """ + The updated network configuration for Amazon ECS Managed Instances. + Changes to subnets and security groups affect new instances launched + after the update. + """ + storage_configuration: ( + ManagedInstancesStorageConfiguration + | ManagedInstancesStorageConfigurationDict + | None + ) + """ + The updated storage configuration for Amazon ECS Managed Instances. + Changes to storage settings apply to new instances launched after the + update. + """ + instance_metadata_tags_propagation: bool | None + """ + Determines whether tags are propagated to the instance metadata service + (IMDS) for Amazon EC2 instances launched by the Managed Instances + capacity provider. When enabled, all tags associated with the instance + are available through the instance metadata service. When disabled, tags + are not propagated to IMDS. + + Disable this setting if your tags contain characters that are not + compatible with IMDS, such as `/`. IMDS requires tag keys to match the + pattern `[0-9a-zA-Z\\-_+=,.@:]{1,255}`. + + The default value is `true`. + + For more information, see [Work with instance tags in instance + metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS) + in the *Amazon EC2 User Guide*. + """ + local_storage_configuration: ( + ManagedInstancesLocalStorageConfiguration + | ManagedInstancesLocalStorageConfigurationDict + | None + ) + """ + The updated local storage configuration for Amazon ECS Managed + Instances. Changes to local storage settings apply to new instances + launched after the update. + """ + monitoring: str | None + """ + CloudWatch provides two categories of monitoring: basic monitoring and + detailed monitoring. By default, your managed instance is configured for + basic monitoring. You can optionally enable detailed monitoring to help + you more quickly identify and act on operational issues. You can enable + or turn off detailed monitoring at launch or when the managed instance + is running or stopped. For more information, see [Detailed monitoring + for Amazon ECS Managed + Instances](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/detailed-monitoring-managed-instances.html) + in the Amazon ECS Developer Guide. + """ + instance_requirements: ( + InstanceRequirementsRequest | InstanceRequirementsRequestDict | None + ) + """ + The updated instance requirements for attribute-based instance type + selection. Changes to instance requirements affect which instance types + Amazon ECS selects for new instances. + """ + capacity_reservations: ( + CapacityReservationRequest | CapacityReservationRequestDict | None + ) """ The updated capacity reservations specifications for Amazon ECS Managed Instances. Changes to capacity reservations settings apply to new @@ -1385,31 +1921,192 @@ class InstanceRequirementsRequest(_SerdeShape): instance selection. """ -@dataclass(kw_only=True) -class InvalidParameterException(ServiceError, _SerdeShape): - """ - The specified parameter isn't valid. Review the available parameters - for the API request. +class InstanceRequirementsRequestDict(TypedDict, total=False): + """Dictionary form of `InstanceRequirementsRequest`.""" - For more information about service event errors, see [Amazon ECS service - event - messages](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html). + v_cpu_count: Required[VCpuCountRangeRequest | VCpuCountRangeRequestDict] """ - - response_metadata: ResponseMetadata = ... + The minimum and maximum number of vCPUs for the instance types. Amazon + ECS selects instance types that have vCPU counts within this range. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + memory_mi_b: Required[MemoryMiBRequest | MemoryMiBRequestDict] """ - -class IpcMode(UnknownEnumMixin, StrEnum): - HOST = "host" - TASK = "task" - NONE = "none" - -class IsolationMode(UnknownEnumMixin, StrEnum): + The minimum and maximum amount of memory in mebibytes (MiB) for the + instance types. Amazon ECS selects instance types that have memory + within this range. + """ + cpu_manufacturers: Sequence[str] | None + """ + The CPU manufacturers to include or exclude. You can specify `intel`, + `amd`, or `amazon-web-services` to control which CPU types are used for + your workloads. + """ + memory_gi_b_per_v_cpu: MemoryGiBPerVCpuRequest | MemoryGiBPerVCpuRequestDict | None + """ + The minimum and maximum amount of memory per vCPU in gibibytes (GiB). + This helps ensure that instance types have the appropriate memory-to-CPU + ratio for your workloads. + """ + excluded_instance_types: Sequence[str] | None + """ + The instance types to exclude from selection. Use this to prevent Amazon + ECS from selecting specific instance types that may not be suitable for + your workloads. + """ + instance_generations: Sequence[str] | None + """ + The instance generations to include. You can specify `current` to use + the latest generation instances, or `previous` to include previous + generation instances for cost optimization. + """ + spot_max_price_percentage_over_lowest_price: int | None + """ + The maximum price for Spot instances as a percentage over the lowest + priced On-Demand instance. This helps control Spot instance costs while + maintaining access to capacity. + """ + on_demand_max_price_percentage_over_lowest_price: int | None + """ + The price protection threshold for On-Demand Instances, as a percentage + higher than an identified On-Demand price. The identified On-Demand + price is the price of the lowest priced current generation C, M, or R + instance type with your specified attributes. If no current generation + C, M, or R instance type matches your attributes, then the identified + price is from either the lowest priced current generation instance types + or, failing that, the lowest priced previous generation instance types + that match your attributes. When Amazon ECS selects instance types with + your attributes, we will exclude instance types whose price exceeds your + specified threshold. + """ + bare_metal: str | None + """ + Indicates whether to include bare metal instance types. Set to + `included` to allow bare metal instances, `excluded` to exclude them, or + `required` to use only bare metal instances. + """ + burstable_performance: str | None + """ + Indicates whether to include burstable performance instance types (T2, + T3, T3a, T4g). Set to `included` to allow burstable instances, + `excluded` to exclude them, or `required` to use only burstable + instances. + """ + require_hibernate_support: bool | None + """ + Indicates whether the instance types must support hibernation. When set + to `true`, only instance types that support hibernation are selected. + """ + network_interface_count: ( + NetworkInterfaceCountRequest | NetworkInterfaceCountRequestDict | None + ) + """ + The minimum and maximum number of network interfaces for the instance + types. This is useful for workloads that require multiple network + interfaces. + """ + local_storage: str | None + """ + Indicates whether to include instance types with local storage. Set to + `included` to allow local storage, `excluded` to exclude it, or + `required` to use only instances with local storage. + """ + local_storage_types: Sequence[str] | None + """ + The local storage types to include. You can specify `hdd` for hard disk + drives, `ssd` for solid state drives, or both. + """ + total_local_storage_gb: ( + TotalLocalStorageGBRequest | TotalLocalStorageGBRequestDict | None + ) + """ + The minimum and maximum total local storage in gigabytes (GB) for + instance types with local storage. + """ + baseline_ebs_bandwidth_mbps: ( + BaselineEbsBandwidthMbpsRequest | BaselineEbsBandwidthMbpsRequestDict | None + ) + """ + The minimum and maximum baseline Amazon EBS bandwidth in megabits per + second (Mbps). This is important for workloads with high storage I/O + requirements. + """ + accelerator_types: Sequence[str] | None + """ + The accelerator types to include. You can specify `gpu` for graphics + processing units, `fpga` for field programmable gate arrays, or + `inference` for machine learning inference accelerators. + """ + accelerator_count: AcceleratorCountRequest | AcceleratorCountRequestDict | None + """ + The minimum and maximum number of accelerators for the instance types. + This is used when you need instances with specific numbers of GPUs or + other accelerators. + """ + accelerator_manufacturers: Sequence[str] | None + """ + The accelerator manufacturers to include. You can specify `nvidia`, + `amd`, `amazon-web-services`, or `xilinx` depending on your accelerator + requirements. + """ + accelerator_names: Sequence[str] | None + """ + The specific accelerator names to include. For example, you can specify + `a100`, `v100`, `k80`, or other specific accelerator models. + """ + accelerator_total_memory_mi_b: ( + AcceleratorTotalMemoryMiBRequest | AcceleratorTotalMemoryMiBRequestDict | None + ) + """ + The minimum and maximum total accelerator memory in mebibytes (MiB). + This is important for GPU workloads that require specific amounts of + video memory. + """ + network_bandwidth_gbps: ( + NetworkBandwidthGbpsRequest | NetworkBandwidthGbpsRequestDict | None + ) + """ + The minimum and maximum network bandwidth in gigabits per second (Gbps). + This is crucial for network-intensive workloads that require high + throughput. + """ + allowed_instance_types: Sequence[str] | None + """ + The instance types to include in the selection. When specified, Amazon + ECS only considers these instance types, subject to the other + requirements specified. + """ + max_spot_price_as_percentage_of_optimal_on_demand_price: int | None + """ + The maximum price for Spot instances as a percentage of the optimal + On-Demand price. This provides more precise cost control for Spot + instance selection. + """ + +@dataclass(kw_only=True) +class InvalidParameterException(ServiceError, _SerdeShape): + """ + The specified parameter isn't valid. Review the available parameters + for the API request. + + For more information about service event errors, see [Amazon ECS service + event + messages](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html). + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class IpcMode(UnknownEnumMixin, StrEnum): + HOST = "host" + TASK = "task" + NONE = "none" + +class IsolationMode(UnknownEnumMixin, StrEnum): """ The isolation mode determines how a task is isolated from other tasks on the same Amazon EC2 instance. @@ -1505,6 +2202,34 @@ class KernelCapabilities(_SerdeShape): `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"` """ +class KernelCapabilitiesDict(TypedDict, total=False): + """Dictionary form of `KernelCapabilities`.""" + + add: Sequence[str] | None + """ + The Linux capabilities for the container that have been added to the + default configuration provided by Docker. This parameter maps to + `CapAdd` in the docker container create command and the `--cap-add` + option to docker run. + + Note: + Tasks launched on Fargate only support adding the `SYS_PTRACE` kernel + capability. + + Valid values: + `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"` + """ + drop: Sequence[str] | None + """ + The Linux capabilities for the container that have been removed from the + default configuration provided by Docker. This parameter maps to + `CapDrop` in the docker container create command and the `--cap-drop` + option to docker run. + + Valid values: + `"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"` + """ + @dataclass(kw_only=True) class KeyValuePair(_SerdeShape): """A key-value pair object.""" @@ -1520,6 +2245,20 @@ class KeyValuePair(_SerdeShape): value of the environment variable. """ +class KeyValuePairDict(TypedDict, total=False): + """Dictionary form of `KeyValuePair`.""" + + name: str | None + """ + The name of the key-value pair. For environment variables, this is the + name of the environment variable. + """ + value: str | None + """ + The value of the key-value pair. For environment variables, this is the + value of the environment variable. + """ + class LaunchType(UnknownEnumMixin, StrEnum): EC2 = "EC2" FARGATE = "FARGATE" @@ -1563,6 +2302,23 @@ class LinearConfiguration(_SerdeShape): reaching 100 percent traffic. """ +class LinearConfigurationDict(TypedDict, total=False): + """Dictionary form of `LinearConfiguration`.""" + + step_percent: float | None + """ + The percentage of production traffic to shift in each step during a + linear deployment. Valid values are multiples of 0.1 from 3.0 to 100.0. + The default value is 10.0. + """ + step_bake_time_in_minutes: int | None + """ + The amount of time in minutes to wait between each traffic shifting step + during a linear deployment. Valid values are 0 to 1440 minutes (24 + hours). The default value is 6. This bake time is not applied after + reaching 100 percent traffic. + """ + @dataclass(kw_only=True) class LinuxParameters(_SerdeShape): """ @@ -1654,60 +2410,201 @@ class LinuxParameters(_SerdeShape): isn't supported. """ -@dataclass(kw_only=True) -class ListAccountSettingsInput(_SerdeShape): - """Dataclass for ListAccountSettingsInput structure.""" +class LinuxParametersDict(TypedDict, total=False): + """Dictionary form of `LinuxParameters`.""" - name: str | None = ... - """The name of the account setting you want to list the settings for.""" - value: str | None = ... + capabilities: KernelCapabilities | KernelCapabilitiesDict | None """ - The value of the account settings to filter results with. You must also - specify an account setting name to use this parameter. + The Linux capabilities for the container that are added to or dropped + from the default configuration provided by Docker. + + Note: + For tasks that use the Fargate launch type, `capabilities` is supported + for all platform versions but the `add` parameter is only supported if + using platform version 1.4.0 or later. """ - principal_arn: str | None = ... + devices: Sequence[Device | DeviceDict] | None """ - The ARN of the principal, which can be a user, role, or the root user. - If this field is omitted, the account settings are listed only for the - authenticated user. - - In order to use this parameter, you must be the root user, or the - principal. + Any host devices to expose to the container. This parameter maps to + `Devices` in the docker container create command and the `--device` + option to docker run. Note: - Federated users assume the account setting of the root user and can't - have explicit account settings set for them. + If you're using tasks that use the Fargate launch type, the `devices` + parameter isn't supported. """ - effective_settings: bool = ... + init_process_enabled: bool | None """ - Determines whether to return the effective settings. If `true`, the - account settings for the root user or the default setting for the - `principalArn` are returned. If `false`, the account settings for the - `principalArn` are returned if they're set. Otherwise, no account - settings are returned. + Run an `init` process inside the container that forwards signals and + reaps processes. This parameter maps to the `--init` option to docker + run. This parameter requires version 1.25 of the Docker Remote API or + greater on your container instance. To check the Docker Remote API + version on your container instance, log in to your container instance + and run the following command: + `sudo docker version --format '{{.Server.APIVersion}}'` """ - next_token: str | None = ... + shared_memory_size: int | None """ - The `nextToken` value returned from a `ListAccountSettings` request - indicating that more results are available to fulfill the request and - further calls will be needed. If `maxResults` was provided, it's - possible the number of results to be fewer than `maxResults`. + The value for the size (in MiB) of the `/dev/shm` volume. This parameter + maps to the `--shm-size` option to docker run. Note: - This token should be treated as an opaque identifier that is only used - to retrieve the next items in a list and not for other programmatic - purposes. + If you are using tasks that use the Fargate launch type, the + `sharedMemorySize` parameter is not supported. """ - max_results: int = ... + tmpfs: Sequence[Tmpfs | TmpfsDict] | None """ - The maximum number of account setting results returned by - `ListAccountSettings` in paginated output. When this parameter is used, - `ListAccountSettings` only returns `maxResults` results in a single page - along with a `nextToken` response element. The remaining results of the - initial request can be seen by sending another `ListAccountSettings` - request with the returned `nextToken` value. This value can be between 1 - and 10. If this parameter isn't used, then `ListAccountSettings` - returns up to 10 results and a `nextToken` value if applicable. + The container path, mount options, and size (in MiB) of the tmpfs mount. + This parameter maps to the `--tmpfs` option to docker run. + """ + max_swap: int | None + """ + The total amount of swap memory (in MiB) a container can use. This + parameter will be translated to the `--memory-swap` option to docker run + where the value would be the sum of the container memory plus the + `maxSwap` value. + + If a `maxSwap` value of `0` is specified, the container will not use + swap. Accepted values are `0` or any positive integer. If the `maxSwap` + parameter is omitted, the container will use the swap configuration for + the container instance it is running on. A `maxSwap` value must be set + for the `swappiness` parameter to be used. + + Note: + If you're using tasks that use the Fargate launch type, the `maxSwap` + parameter isn't supported. + + If you're using tasks on Amazon Linux 2023 the `swappiness` parameter + isn't supported. + """ + swappiness: int | None + """ + This allows you to tune a container's memory swappiness behavior. A + `swappiness` value of `0` will cause swapping to not happen unless + absolutely necessary. A `swappiness` value of `100` will cause pages to + be swapped very aggressively. Accepted values are whole numbers between + `0` and `100`. If the `swappiness` parameter is not specified, a default + value of `60` is used. If a value is not specified for `maxSwap` then + this parameter is ignored. This parameter maps to the + `--memory-swappiness` option to docker run. + + Note: + If you're using tasks that use the Fargate launch type, the + `swappiness` parameter isn't supported. + + If you're using tasks on Amazon Linux 2023 the `swappiness` parameter + isn't supported. + """ + +@dataclass(kw_only=True) +class ListAccountSettingsInput(_SerdeShape): + """Dataclass for ListAccountSettingsInput structure.""" + + name: str | None = ... + """The name of the account setting you want to list the settings for.""" + value: str | None = ... + """ + The value of the account settings to filter results with. You must also + specify an account setting name to use this parameter. + """ + principal_arn: str | None = ... + """ + The ARN of the principal, which can be a user, role, or the root user. + If this field is omitted, the account settings are listed only for the + authenticated user. + + In order to use this parameter, you must be the root user, or the + principal. + + Note: + Federated users assume the account setting of the root user and can't + have explicit account settings set for them. + """ + effective_settings: bool = ... + """ + Determines whether to return the effective settings. If `true`, the + account settings for the root user or the default setting for the + `principalArn` are returned. If `false`, the account settings for the + `principalArn` are returned if they're set. Otherwise, no account + settings are returned. + """ + next_token: str | None = ... + """ + The `nextToken` value returned from a `ListAccountSettings` request + indicating that more results are available to fulfill the request and + further calls will be needed. If `maxResults` was provided, it's + possible the number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int = ... + """ + The maximum number of account setting results returned by + `ListAccountSettings` in paginated output. When this parameter is used, + `ListAccountSettings` only returns `maxResults` results in a single page + along with a `nextToken` response element. The remaining results of the + initial request can be seen by sending another `ListAccountSettings` + request with the returned `nextToken` value. This value can be between 1 + and 10. If this parameter isn't used, then `ListAccountSettings` + returns up to 10 results and a `nextToken` value if applicable. + """ + +class ListAccountSettingsInputDict(TypedDict, total=False): + """Dictionary form of `ListAccountSettingsInput`.""" + + name: str | None + """The name of the account setting you want to list the settings for.""" + value: str | None + """ + The value of the account settings to filter results with. You must also + specify an account setting name to use this parameter. + """ + principal_arn: str | None + """ + The ARN of the principal, which can be a user, role, or the root user. + If this field is omitted, the account settings are listed only for the + authenticated user. + + In order to use this parameter, you must be the root user, or the + principal. + + Note: + Federated users assume the account setting of the root user and can't + have explicit account settings set for them. + """ + effective_settings: bool | None + """ + Determines whether to return the effective settings. If `true`, the + account settings for the root user or the default setting for the + `principalArn` are returned. If `false`, the account settings for the + `principalArn` are returned if they're set. Otherwise, no account + settings are returned. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListAccountSettings` request + indicating that more results are available to fulfill the request and + further calls will be needed. If `maxResults` was provided, it's + possible the number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of account setting results returned by + `ListAccountSettings` in paginated output. When this parameter is used, + `ListAccountSettings` only returns `maxResults` results in a single page + along with a `nextToken` response element. The remaining results of the + initial request can be seen by sending another `ListAccountSettings` + request with the returned `nextToken` value. This value can be between 1 + and 10. If this parameter isn't used, then `ListAccountSettings` + returns up to 10 results and a `nextToken` value if applicable. """ @dataclass(kw_only=True) @@ -1774,6 +2671,48 @@ class ListAttributesInput(_SerdeShape): and a `nextToken` value if applicable. """ +class ListAttributesInputDict(TypedDict, total=False): + """Dictionary form of `ListAttributesInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster to list + attributes. If you do not specify a cluster, the default cluster is + assumed. + """ + target_type: Required[str] + """The type of the target to list attributes with.""" + attribute_name: str | None + """The name of the attribute to filter the results with.""" + attribute_value: str | None + """ + The value of the attribute to filter results with. You must also specify + an attribute name to use this parameter. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListAttributes` request + indicating that more results are available to fulfill the request and + further calls are needed. If `maxResults` was provided, it's possible + the number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of cluster results that `ListAttributes` returned in + paginated output. When this parameter is used, `ListAttributes` only + returns `maxResults` results in a single page along with a `nextToken` + response element. The remaining results of the initial request can be + seen by sending another `ListAttributes` request with the returned + `nextToken` value. This value can be between 1 and 100. If this + parameter isn't used, then `ListAttributes` returns up to 100 results + and a `nextToken` value if applicable. + """ + @dataclass(kw_only=True) class ListAttributesOutput(_SerdeShape): """""" @@ -1823,6 +2762,33 @@ class ListClustersInput(_SerdeShape): a `nextToken` value if applicable. """ +class ListClustersInputDict(TypedDict, total=False): + """Dictionary form of `ListClustersInput`.""" + + next_token: str | None + """ + The `nextToken` value returned from a `ListClusters` request indicating + that more results are available to fulfill the request and further calls + are needed. If `maxResults` was provided, it's possible the number of + results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of cluster results that `ListClusters` returned in + paginated output. When this parameter is used, `ListClusters` only + returns `maxResults` results in a single page along with a `nextToken` + response element. The remaining results of the initial request can be + seen by sending another `ListClusters` request with the returned + `nextToken` value. This value can be between 1 and 100. If this + parameter isn't used, then `ListClusters` returns up to 100 results and + a `nextToken` value if applicable. + """ + @dataclass(kw_only=True) class ListClustersOutput(_SerdeShape): """""" @@ -1899,6 +2865,57 @@ class ListContainerInstancesInput(_SerdeShape): container instances set to all states other than `INACTIVE`. """ +class ListContainerInstancesInputDict(TypedDict, total=False): + """Dictionary form of `ListContainerInstancesInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the container instances to list. If you do not specify a cluster, + the default cluster is assumed. + """ + filter: str | None + """ + You can filter the results of a `ListContainerInstances` operation with + cluster query language statements. For more information, see [Cluster + Query + Language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListContainerInstances` request + indicating that more results are available to fulfill the request and + further calls are needed. If `maxResults` was provided, it's possible + the number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of container instance results that + `ListContainerInstances` returned in paginated output. When this + parameter is used, `ListContainerInstances` only returns `maxResults` + results in a single page along with a `nextToken` response element. The + remaining results of the initial request can be seen by sending another + `ListContainerInstances` request with the returned `nextToken` value. + This value can be between 1 and 100. If this parameter isn't used, then + `ListContainerInstances` returns up to 100 results and a `nextToken` + value if applicable. + """ + status: str | None + """ + Filters the container instances by status. For example, if you specify + the `DRAINING` status, the results include only container instances that + have been set to `DRAINING` using + [UpdateContainerInstancesState](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateContainerInstancesState.html). + If you don't specify this parameter, the The default is to include + container instances set to all states other than `INACTIVE`. + """ + @dataclass(kw_only=True) class ListContainerInstancesOutput(_SerdeShape): """""" @@ -1966,22 +2983,64 @@ class ListDaemonDeploymentsInput(_SerdeShape): purposes. """ -@dataclass(kw_only=True) -class ListDaemonDeploymentsOutput(_SerdeShape): - """Dataclass for ListDaemonDeploymentsOutput structure.""" +class ListDaemonDeploymentsInputDict(TypedDict, total=False): + """Dictionary form of `ListDaemonDeploymentsInput`.""" - next_token: str | None = ... + daemon_arn: Required[str] + """The Amazon Resource Name (ARN) of the daemon to list deployments for.""" + status: Sequence[str] | None """ - The `nextToken` value to include in a future `ListDaemonDeployments` - request. When the results of a `ListDaemonDeployments` request exceed - `maxResults`, this value can be used to retrieve the next page of - results. + An optional filter to narrow the `ListDaemonDeployments` results by + deployment status. If you don't specify a status, all deployments are + returned. """ - daemon_deployments: list[DaemonDeploymentSummary] | None = ... - """The list of daemon deployment summaries.""" - response_metadata: ResponseMetadata = ... + created_at: CreatedAt | CreatedAtDict | None """ - Metadata about the response that produced this output. Use this to + An optional filter to narrow the `ListDaemonDeployments` results by + creation time. If you don't specify a time range, all deployments are + returned. + """ + max_results: int | None + """ + The maximum number of daemon deployment results that + `ListDaemonDeployments` returned in paginated output. When this + parameter is used, `ListDaemonDeployments` only returns `maxResults` + results in a single page along with a `nextToken` response element. The + remaining results of the initial request can be seen by sending another + `ListDaemonDeployments` request with the returned `nextToken` value. + This value can be between 1 and 100. If this parameter isn't used, then + `ListDaemonDeployments` returns up to 20 results and a `nextToken` value + if applicable. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListDaemonDeployments` request + indicating that more results are available to fulfill the request and + further calls will be needed. If `maxResults` was provided, it's + possible for the number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + +@dataclass(kw_only=True) +class ListDaemonDeploymentsOutput(_SerdeShape): + """Dataclass for ListDaemonDeploymentsOutput structure.""" + + next_token: str | None = ... + """ + The `nextToken` value to include in a future `ListDaemonDeployments` + request. When the results of a `ListDaemonDeployments` request exceed + `maxResults`, this value can be used to retrieve the next page of + results. + """ + daemon_deployments: list[DaemonDeploymentSummary] | None = ... + """The list of daemon deployment summaries.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. @@ -2026,6 +3085,44 @@ class ListDaemonsInput(_SerdeShape): purposes. """ +class ListDaemonsInputDict(TypedDict, total=False): + """Dictionary form of `ListDaemonsInput`.""" + + cluster_arn: str | None + """ + The Amazon Resource Name (ARN) of the cluster to filter daemons by. If + you do not specify a cluster, the default cluster is assumed. + """ + capacity_provider_arns: Sequence[str] | None + """ + The Amazon Resource Names (ARNs) of the capacity providers to filter + daemons by. Only daemons associated with the specified capacity + providers are returned. + """ + max_results: int | None + """ + The maximum number of daemon results that `ListDaemons` returned in + paginated output. When this parameter is used, `ListDaemons` only + returns `maxResults` results in a single page along with a `nextToken` + response element. The remaining results of the initial request can be + seen by sending another `ListDaemons` request with the returned + `nextToken` value. This value can be between 1 and 100. If this + parameter isn't used, then `ListDaemons` returns up to 100 results and + a `nextToken` value if applicable. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListDaemons` request indicating + that more results are available to fulfill the request and further calls + will be needed. If `maxResults` was provided, it's possible for the + number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + @dataclass(kw_only=True) class ListDaemonsOutput(_SerdeShape): """Dataclass for ListDaemonsOutput structure.""" @@ -2107,6 +3204,66 @@ class ListDaemonTaskDefinitionsInput(_SerdeShape): value if applicable. """ +class ListDaemonTaskDefinitionsInputDict(TypedDict, total=False): + """Dictionary form of `ListDaemonTaskDefinitionsInput`.""" + + family_prefix: str | None + """ + The full family name to filter the `ListDaemonTaskDefinitions` results + with. Specifying a `familyPrefix` limits the listed daemon task + definitions to daemon task definition families that start with the + `familyPrefix` string. + """ + family: str | None + """ + The exact name of the daemon task definition family to filter results + with. + """ + revision: str | None + """ + The revision filter to apply. Specify `LAST_REGISTERED` to return only + the last registered revision for each daemon task definition family. + """ + status: str | None + """ + The daemon task definition status to filter the + `ListDaemonTaskDefinitions` results with. By default, only `ACTIVE` + daemon task definitions are listed. If you set this parameter to + `DELETE_IN_PROGRESS`, only daemon task definitions that are in the + process of being deleted are listed. If you set this parameter to `ALL`, + all daemon task definitions are listed regardless of status. + """ + sort: str | None + """ + The order to sort the results. Valid values are `ASC` and `DESC`. By + default (`ASC`), daemon task definitions are listed in ascending order + by family name and revision number. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListDaemonTaskDefinitions` + request indicating that more results are available to fulfill the + request and further calls will be needed. If `maxResults` was provided, + it's possible for the number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of daemon task definition results that + `ListDaemonTaskDefinitions` returned in paginated output. When this + parameter is used, `ListDaemonTaskDefinitions` only returns `maxResults` + results in a single page along with a `nextToken` response element. The + remaining results of the initial request can be seen by sending another + `ListDaemonTaskDefinitions` request with the returned `nextToken` value. + This value can be between 1 and 100. If this parameter isn't used, then + `ListDaemonTaskDefinitions` returns up to 100 results and a `nextToken` + value if applicable. + """ + @dataclass(kw_only=True) class ListDaemonTaskDefinitionsOutput(_SerdeShape): """Dataclass for ListDaemonTaskDefinitionsOutput structure.""" @@ -2152,6 +3309,29 @@ class ListGatewayClusterAssociationsInput(_SerdeShape): next_token: str | None = ... """The `nextToken` value returned from a previous paginated request.""" +class ListGatewayClusterAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `ListGatewayClusterAssociationsInput`.""" + + gateway: str | None + """ + The name or Amazon Resource Name (ARN) of a gateway to filter the + results by. + """ + cluster: str | None + """ + The name or Amazon Resource Name (ARN) of a cluster to filter the + results by. + """ + status: Sequence[str] | None + """The association status to filter the results by.""" + max_results: int | None + """ + The maximum number of results that the operation returns in a single + page. The default is 100. + """ + next_token: str | None + """The `nextToken` value returned from a previous paginated request.""" + @dataclass(kw_only=True) class ListGatewayClusterAssociationsOutput(_SerdeShape): """Dataclass for ListGatewayClusterAssociationsOutput structure.""" @@ -2204,6 +3384,37 @@ class ListGatewayRoutesInput(_SerdeShape): next_token: str | None = ... """The `nextToken` value returned from a previous paginated request.""" +class ListGatewayRoutesInputDict(TypedDict, total=False): + """Dictionary form of `ListGatewayRoutesInput`.""" + + gateway: str | None + """ + The name or Amazon Resource Name (ARN) of a gateway to filter the + results by. + """ + cluster: str | None + """ + The name or Amazon Resource Name (ARN) of a cluster to filter the + results by. + """ + service: str | None + """ + The name or Amazon Resource Name (ARN) of a service to filter the + results by. Because services can span clusters, a service name isn't + necessarily unique and can match multiple services. + """ + service_container_port_name: str | None + """The name of a task definition container port to filter the results by.""" + status: Sequence[str] | None + """The gateway route status to filter the results by.""" + max_results: int | None + """ + The maximum number of results that the operation returns in a single + page. The default is 100. + """ + next_token: str | None + """The `nextToken` value returned from a previous paginated request.""" + @dataclass(kw_only=True) class ListGatewayRoutesOutput(_SerdeShape): """Dataclass for ListGatewayRoutesOutput structure.""" @@ -2248,6 +3459,29 @@ class ListGatewaysInput(_SerdeShape): results. """ +class ListGatewaysInputDict(TypedDict, total=False): + """Dictionary form of `ListGatewaysInput`.""" + + names: Sequence[str] | None + """ + The gateway names to filter the results by. You can specify up to 10 + names. + """ + status: Sequence[str] | None + """The gateway statuses to filter the results by.""" + max_results: int | None + """ + The maximum number of gateway results that `ListGateways` returns in a + single page. The default is 100. + """ + next_token: str | None + """ + The `nextToken` value returned from a previous paginated `ListGateways` + request where `maxResults` was used and the results exceeded the value + of that parameter. Pagination continues from the end of the previous + results. + """ + @dataclass(kw_only=True) class ListGatewaysOutput(_SerdeShape): """Dataclass for ListGatewaysOutput structure.""" @@ -2315,6 +3549,51 @@ class ListServiceDeploymentsInput(_SerdeShape): value if applicable. """ +class ListServiceDeploymentsInputDict(TypedDict, total=False): + """Dictionary form of `ListServiceDeploymentsInput`.""" + + service: Required[str] + """The ARN or name of the service""" + cluster: str | None + """ + The cluster that hosts the service. This can either be the cluster name + or ARN. Starting April 15, 2023, Amazon Web Services will not onboard + new customers to Amazon Elastic Inference (EI), and will help current + customers migrate their workloads to options that offer better price and + performance. If you don't specify a cluster, `default` is used. + """ + status: Sequence[str] | None + """ + An optional filter you can use to narrow the results. If you do not + specify a status, then all status values are included in the result. + """ + created_at: CreatedAt | CreatedAtDict | None + """ + An optional filter you can use to narrow the results by the service + creation date. If you do not specify a value, the result includes all + services created before the current time. The format is yyyy-MM-dd + HH:mm:ss.SSSSSS. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListServiceDeployments` request + indicating that more results are available to fulfill the request and + further calls are needed. If you provided `maxResults`, it's possible + the number of results is fewer than `maxResults`. + """ + max_results: int | None + """ + The maximum number of service deployment results that + `ListServiceDeployments` returned in paginated output. When this + parameter is used, `ListServiceDeployments` only returns `maxResults` + results in a single page along with a `nextToken` response element. The + remaining results of the initial request can be seen by sending another + `ListServiceDeployments` request with the returned `nextToken` value. + This value can be between 1 and 100. If this parameter isn't used, then + `ListServiceDeployments` returns up to 20 results and a `nextToken` + value if applicable. + """ + @dataclass(kw_only=True) class ListServiceDeploymentsOutput(_SerdeShape): """Dataclass for ListServiceDeploymentsOutput structure.""" @@ -2394,6 +3673,43 @@ class ListServicesByNamespaceInput(_SerdeShape): value if applicable. """ +class ListServicesByNamespaceInputDict(TypedDict, total=False): + """Dictionary form of `ListServicesByNamespaceInput`.""" + + namespace: Required[str] + """ + The namespace name or full Amazon Resource Name (ARN) of the Cloud Map + namespace to list the services in. + + Tasks that run in a namespace can use short names to connect to services + in the namespace. Tasks can connect to services across all of the + clusters in the namespace. Tasks connect through a managed proxy + container that collects logs and metrics for increased visibility. Only + the tasks that Amazon ECS services create are supported with Service + Connect. For more information, see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + next_token: str | None + """ + The `nextToken` value that's returned from a `ListServicesByNamespace` + request. It indicates that more results are available to fulfill the + request and further calls are needed. If `maxResults` is returned, it is + possible the number of results is less than `maxResults`. + """ + max_results: int | None + """ + The maximum number of service results that `ListServicesByNamespace` + returns in paginated output. When this parameter is used, + `ListServicesByNamespace` only returns `maxResults` results in a single + page along with a `nextToken` response element. The remaining results of + the initial request can be seen by sending another + `ListServicesByNamespace` request with the returned `nextToken` value. + This value can be between 1 and 100. If this parameter isn't used, then + `ListServicesByNamespace` returns up to 10 results and a `nextToken` + value if applicable. + """ + @dataclass(kw_only=True) class ListServicesByNamespaceOutput(_SerdeShape): """Dataclass for ListServicesByNamespaceOutput structure.""" @@ -2464,14 +3780,59 @@ class ListServicesInput(_SerdeShape): results. """ -@dataclass(kw_only=True) -class ListServicesOutput(_SerdeShape): - """""" +class ListServicesInputDict(TypedDict, total=False): + """Dictionary form of `ListServicesInput`.""" - service_arns: list[str] | None = ... + cluster: str | None """ - The list of full ARN entries for each service that's associated with - the specified cluster. + The short name or full Amazon Resource Name (ARN) of the cluster to use + when filtering the `ListServices` results. If you do not specify a + cluster, the default cluster is assumed. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListServices` request indicating + that more results are available to fulfill the request and further calls + will be needed. If `maxResults` was provided, it is possible the number + of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of service results that `ListServices` returned in + paginated output. When this parameter is used, `ListServices` only + returns `maxResults` results in a single page along with a `nextToken` + response element. The remaining results of the initial request can be + seen by sending another `ListServices` request with the returned + `nextToken` value. This value can be between 1 and 100. If this + parameter isn't used, then `ListServices` returns up to 10 results and + a `nextToken` value if applicable. + """ + launch_type: str | None + """The launch type to use when filtering the `ListServices` results.""" + scheduling_strategy: str | None + """ + The scheduling strategy to use when filtering the `ListServices` + results. + """ + resource_management_type: str | None + """ + The resourceManagementType type to use when filtering the `ListServices` + results. + """ + +@dataclass(kw_only=True) +class ListServicesOutput(_SerdeShape): + """""" + + service_arns: list[str] | None = ... + """ + The list of full ARN entries for each service that's associated with + the specified cluster. """ next_token: str | None = ... """ @@ -2499,6 +3860,16 @@ class ListTagsForResourceInput(_SerdeShape): services, task definitions, clusters, and container instances. """ +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) that identifies the resource to list the + tags for. Currently, the supported resources are Amazon ECS tasks, + services, task definitions, clusters, and container instances. + """ + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -2561,6 +3932,53 @@ class ListTaskDefinitionFamiliesInput(_SerdeShape): `nextToken` value if applicable. """ +class ListTaskDefinitionFamiliesInputDict(TypedDict, total=False): + """Dictionary form of `ListTaskDefinitionFamiliesInput`.""" + + family_prefix: str | None + """ + The `familyPrefix` is a string that's used to filter the results of + `ListTaskDefinitionFamilies`. If you specify a `familyPrefix`, only task + definition family names that begin with the `familyPrefix` string are + returned. + """ + status: str | None + """ + The task definition family status to filter the + `ListTaskDefinitionFamilies` results with. By default, both `ACTIVE` and + `INACTIVE` task definition families are listed. If this parameter is set + to `ACTIVE`, only task definition families that have an `ACTIVE` task + definition revision are returned. If this parameter is set to + `INACTIVE`, only task definition families that do not have any `ACTIVE` + task definition revisions are returned. If you paginate the resulting + output, be sure to keep the `status` value constant in each subsequent + request. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListTaskDefinitionFamilies` + request indicating that more results are available to fulfill the + request and further calls will be needed. If `maxResults` was provided, + it is possible the number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of task definition family results that + `ListTaskDefinitionFamilies` returned in paginated output. When this + parameter is used, `ListTaskDefinitions` only returns `maxResults` + results in a single page along with a `nextToken` response element. The + remaining results of the initial request can be seen by sending another + `ListTaskDefinitionFamilies` request with the returned `nextToken` + value. This value can be between 1 and 100. If this parameter isn't + used, then `ListTaskDefinitionFamilies` returns up to 100 results and a + `nextToken` value if applicable. + """ + @dataclass(kw_only=True) class ListTaskDefinitionFamiliesOutput(_SerdeShape): """""" @@ -2638,6 +4056,57 @@ class ListTaskDefinitionsInput(_SerdeShape): returns up to 100 results and a `nextToken` value if applicable. """ +class ListTaskDefinitionsInputDict(TypedDict, total=False): + """Dictionary form of `ListTaskDefinitionsInput`.""" + + family_prefix: str | None + """ + The full family name to filter the `ListTaskDefinitions` results with. + Specifying a `familyPrefix` limits the listed task definitions to task + definition revisions that belong to that family. + """ + status: str | None + """ + The task definition status to filter the `ListTaskDefinitions` results + with. By default, only `ACTIVE` task definitions are listed. By setting + this parameter to `INACTIVE`, you can view task definitions that are + `INACTIVE` as long as an active task or service still references them. + If you paginate the resulting output, be sure to keep the `status` value + constant in each subsequent request. + """ + sort: str | None + """ + The order to sort the results in. Valid values are `ASC` and `DESC`. By + default, (`ASC`) task definitions are listed lexicographically by family + name and in ascending numerical order by revision so that the newest + task definitions in a family are listed last. Setting this parameter to + `DESC` reverses the sort order on family name and revision. This is so + that the newest task definitions in a family are listed first. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListTaskDefinitions` request + indicating that more results are available to fulfill the request and + further calls will be needed. If `maxResults` was provided, it is + possible the number of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of task definition results that `ListTaskDefinitions` + returned in paginated output. When this parameter is used, + `ListTaskDefinitions` only returns `maxResults` results in a single page + along with a `nextToken` response element. The remaining results of the + initial request can be seen by sending another `ListTaskDefinitions` + request with the returned `nextToken` value. This value can be between 1 + and 100. If this parameter isn't used, then `ListTaskDefinitions` + returns up to 100 results and a `nextToken` value if applicable. + """ + @dataclass(kw_only=True) class ListTaskDefinitionsOutput(_SerdeShape): """""" @@ -2746,6 +4215,89 @@ class ListTasksInput(_SerdeShape): that daemon. """ +class ListTasksInputDict(TypedDict, total=False): + """Dictionary form of `ListTasksInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster to use + when filtering the `ListTasks` results. If you do not specify a cluster, + the default cluster is assumed. + """ + container_instance: str | None + """ + The container instance ID or full ARN of the container instance to use + when filtering the `ListTasks` results. Specifying a `containerInstance` + limits the results to tasks that belong to that container instance. + """ + family: str | None + """ + The name of the task definition family to use when filtering the + `ListTasks` results. Specifying a `family` limits the results to tasks + that belong to that family. + """ + next_token: str | None + """ + The `nextToken` value returned from a `ListTasks` request indicating + that more results are available to fulfill the request and further calls + will be needed. If `maxResults` was provided, it's possible the number + of results to be fewer than `maxResults`. + + Note: + This token should be treated as an opaque identifier that is only used + to retrieve the next items in a list and not for other programmatic + purposes. + """ + max_results: int | None + """ + The maximum number of task results that `ListTasks` returned in + paginated output. When this parameter is used, `ListTasks` only returns + `maxResults` results in a single page along with a `nextToken` response + element. The remaining results of the initial request can be seen by + sending another `ListTasks` request with the returned `nextToken` value. + This value can be between 1 and 100. If this parameter isn't used, then + `ListTasks` returns up to 100 results and a `nextToken` value if + applicable. + """ + started_by: str | None + """ + The `startedBy` value to filter the task results with. Specifying a + `startedBy` value limits the results to tasks that were started with + that value. + + When you specify `startedBy` as the filter, it must be the only filter + that you use. + """ + service_name: str | None + """ + The name of the service to use when filtering the `ListTasks` results. + Specifying a `serviceName` limits the results to tasks that belong to + that service. + """ + desired_status: str | None + """ + The task desired status to use when filtering the `ListTasks` results. + Specifying a `desiredStatus` of `STOPPED` limits the results to tasks + that Amazon ECS has set the desired status to `STOPPED`. This can be + useful for debugging tasks that aren't starting properly or have died + or finished. The default status filter is `RUNNING`, which shows tasks + that Amazon ECS has set the desired status to `RUNNING`. + + Note: + Although you can filter results based on a desired status of `PENDING`, + this doesn't return any results. Amazon ECS never sets the desired + status of a task to that value (only a task's `lastStatus` may have a + value of `PENDING`). + """ + launch_type: str | None + """The launch type to use when filtering the `ListTasks` results.""" + daemon_name: str | None + """ + The name of the daemon to use when filtering the `ListTasks` results. + Specifying a `daemonName` limits the results to tasks that belong to + that daemon. + """ + @dataclass(kw_only=True) class ListTasksOutput(_SerdeShape): """""" @@ -2844,39 +4396,100 @@ class LoadBalancer(_SerdeShape): role required for traffic shifting during blue/green deployments. """ -class LocalStorage(UnknownEnumMixin, StrEnum): - INCLUDED = "included" - REQUIRED = "required" - EXCLUDED = "excluded" - -class LocalStorageType(UnknownEnumMixin, StrEnum): - HDD = "hdd" - SSD = "ssd" +class LoadBalancerDict(TypedDict, total=False): + """Dictionary form of `LoadBalancer`.""" -@dataclass(kw_only=True) -class LogConfiguration(_SerdeShape): + target_group_arn: str | None """ - The log configuration for the container. This parameter maps to - `LogConfig` in the docker container create command and the - `--log-driver` option to docker run. + The full Amazon Resource Name (ARN) of the Elastic Load Balancing target + group or groups associated with a service or task set. - By default, containers use the same logging driver that the Docker - daemon uses. However, the container might use a different logging driver - than the Docker daemon by specifying a log driver configuration in the - container definition. + A target group ARN is only specified when using an Application Load + Balancer or Network Load Balancer. - Understand the following when specifying a log configuration for your - containers. + For services using the `ECS` deployment controller, you can specify one + or multiple target groups. For more information, see [Registering + multiple target groups with a + service](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html) + in the *Amazon Elastic Container Service Developer Guide*. - - Amazon ECS currently supports a subset of the logging drivers - available to the Docker daemon. Additional log drivers may be - available in future releases of the Amazon ECS container agent. + For services using the `CODE_DEPLOY` deployment controller, you're + required to define two target groups for the load balancer. For more + information, see [Blue/green deployment with + CodeDeploy](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html) + in the *Amazon Elastic Container Service Developer Guide*. - For tasks on Fargate, the supported log drivers are `awslogs`, - `splunk`, and `awsfirelens`. + Warning: + If your service's task definition uses the `awsvpc` network mode, you + must choose `ip` as the target type, not `instance`. Do this when + creating your target groups because tasks that use the `awsvpc` network + mode are associated with an elastic network interface, not an Amazon EC2 + instance. This network mode is required for the Fargate launch type. + """ + load_balancer_name: str | None + """ + The name of the load balancer to associate with the Amazon ECS service + or task set. - For tasks hosted on Amazon EC2 instances, the supported log drivers - are `awslogs`, `fluentd`, `gelf`, `json-file`, `journald`,`syslog`, + If you are using an Application Load Balancer or a Network Load Balancer + the load balancer name parameter should be omitted. + """ + container_name: str | None + """ + The name of the container (as it appears in a container definition) to + associate with the load balancer. + + You need to specify the container name when configuring the target group + for an Amazon ECS load balancer. + """ + container_port: int | None + """ + The port on the container to associate with the load balancer. This port + must correspond to a `containerPort` in the task definition the tasks in + the service are using. For tasks that use the EC2 launch type, the + container instance they're launched on must allow ingress traffic on + the `hostPort` of the port mapping. + """ + advanced_configuration: AdvancedConfiguration | AdvancedConfigurationDict | None + """ + The advanced settings for the load balancer used in blue/green + deployments. Specify the alternate target group, listener rules, and IAM + role required for traffic shifting during blue/green deployments. + """ + +class LocalStorage(UnknownEnumMixin, StrEnum): + INCLUDED = "included" + REQUIRED = "required" + EXCLUDED = "excluded" + +class LocalStorageType(UnknownEnumMixin, StrEnum): + HDD = "hdd" + SSD = "ssd" + +@dataclass(kw_only=True) +class LogConfiguration(_SerdeShape): + """ + The log configuration for the container. This parameter maps to + `LogConfig` in the docker container create command and the + `--log-driver` option to docker run. + + By default, containers use the same logging driver that the Docker + daemon uses. However, the container might use a different logging driver + than the Docker daemon by specifying a log driver configuration in the + container definition. + + Understand the following when specifying a log configuration for your + containers. + + - Amazon ECS currently supports a subset of the logging drivers + available to the Docker daemon. Additional log drivers may be + available in future releases of the Amazon ECS container agent. + + For tasks on Fargate, the supported log drivers are `awslogs`, + `splunk`, and `awsfirelens`. + + For tasks hosted on Amazon EC2 instances, the supported log drivers + are `awslogs`, `fluentd`, `gelf`, `json-file`, `journald`,`syslog`, `splunk`, and `awsfirelens`. For tasks on Amazon ECS Managed Instances, the supported log drivers @@ -2941,149 +4554,149 @@ class LogConfiguration(_SerdeShape): awslogs-create-group - : Required: No + : Required: No - Specify whether you want the log group to be created automatically. If - this option isn't specified, it defaults to `false`. + Specify whether you want the log group to be created automatically. + If this option isn't specified, it defaults to `false`. - Note: + Note: Your IAM policy must include the `logs:CreateLogGroup` permission before you attempt to use `awslogs-create-group`. awslogs-region - : Required: Yes + : Required: Yes - Specify the Amazon Web Services Region that the `awslogs` log driver - is to send your Docker logs to. You can choose to send all of your - logs from clusters in different Regions to a single region in - CloudWatch Logs. This is so that they're all visible in one location. - Otherwise, you can separate them by Region for more granularity. Make - sure that the specified log group exists in the Region that you - specify with this option. + Specify the Amazon Web Services Region that the `awslogs` log driver + is to send your Docker logs to. You can choose to send all of your + logs from clusters in different Regions to a single region in + CloudWatch Logs. This is so that they're all visible in one + location. Otherwise, you can separate them by Region for more + granularity. Make sure that the specified log group exists in the + Region that you specify with this option. awslogs-group - : Required: Yes + : Required: Yes - Make sure to specify a log group that the `awslogs` log driver sends - its log streams to. + Make sure to specify a log group that the `awslogs` log driver sends + its log streams to. awslogs-stream-prefix - : Required: Yes, when using Fargate.Optional when using EC2. + : Required: Yes, when using Fargate.Optional when using EC2. - Use the `awslogs-stream-prefix` option to associate a log stream with - the specified prefix, the container name, and the ID of the Amazon ECS - task that the container belongs to. If you specify a prefix with this - option, then the log stream takes the format - `prefix-name/container-name/ecs-task-id`. + Use the `awslogs-stream-prefix` option to associate a log stream + with the specified prefix, the container name, and the ID of the + Amazon ECS task that the container belongs to. If you specify a + prefix with this option, then the log stream takes the format + `prefix-name/container-name/ecs-task-id`. - If you don't specify a prefix with this option, then the log stream - is named after the container ID that's assigned by the Docker daemon - on the container instance. Because it's difficult to trace logs back - to the container that sent them with just the Docker container ID - (which is only available on the container instance), we recommend that - you specify a prefix with this option. + If you don't specify a prefix with this option, then the log stream + is named after the container ID that's assigned by the Docker + daemon on the container instance. Because it's difficult to trace + logs back to the container that sent them with just the Docker + container ID (which is only available on the container instance), we + recommend that you specify a prefix with this option. - For Amazon ECS services, you can use the service name as the prefix. - Doing so, you can trace log streams to the service that the container - belongs to, the name of the container that sent them, and the ID of - the task that the container belongs to. + For Amazon ECS services, you can use the service name as the prefix. + Doing so, you can trace log streams to the service that the + container belongs to, the name of the container that sent them, and + the ID of the task that the container belongs to. - You must specify a stream-prefix for your logs to have your logs - appear in the Log pane when using the Amazon ECS console. + You must specify a stream-prefix for your logs to have your logs + appear in the Log pane when using the Amazon ECS console. awslogs-datetime-format - : Required: No + : Required: No - This option defines a multiline start pattern in Python `strftime` - format. A log message consists of a line that matches the pattern and - any following lines that don't match the pattern. The matched line is - the delimiter between log messages. + This option defines a multiline start pattern in Python `strftime` + format. A log message consists of a line that matches the pattern + and any following lines that don't match the pattern. The matched + line is the delimiter between log messages. - One example of a use case for using this format is for parsing output - such as a stack dump, which might otherwise be logged in multiple - entries. The correct pattern allows it to be captured in a single - entry. + One example of a use case for using this format is for parsing + output such as a stack dump, which might otherwise be logged in + multiple entries. The correct pattern allows it to be captured in a + single entry. - For more information, see - [awslogs-datetime-format](https://docs.docker.com/config/containers/logging/awslogs/#awslogs-datetime-format). + For more information, see + [awslogs-datetime-format](https://docs.docker.com/config/containers/logging/awslogs/#awslogs-datetime-format). - You cannot configure both the `awslogs-datetime-format` and - `awslogs-multiline-pattern` options. + You cannot configure both the `awslogs-datetime-format` and + `awslogs-multiline-pattern` options. - Note: - Multiline logging performs regular expression parsing and matching of - all log messages. This might have a negative impact on logging + Note: + Multiline logging performs regular expression parsing and matching + of all log messages. This might have a negative impact on logging performance. awslogs-multiline-pattern - : Required: No + : Required: No - This option defines a multiline start pattern that uses a regular - expression. A log message consists of a line that matches the pattern - and any following lines that don't match the pattern. The matched line - is the delimiter between log messages. + This option defines a multiline start pattern that uses a regular + expression. A log message consists of a line that matches the + pattern and any following lines that don't match the pattern. The + matched line is the delimiter between log messages. - For more information, see - [awslogs-multiline-pattern](https://docs.docker.com/config/containers/logging/awslogs/#awslogs-multiline-pattern). + For more information, see + [awslogs-multiline-pattern](https://docs.docker.com/config/containers/logging/awslogs/#awslogs-multiline-pattern). - This option is ignored if `awslogs-datetime-format` is also - configured. + This option is ignored if `awslogs-datetime-format` is also + configured. - You cannot configure both the `awslogs-datetime-format` and - `awslogs-multiline-pattern` options. + You cannot configure both the `awslogs-datetime-format` and + `awslogs-multiline-pattern` options. - Note: - Multiline logging performs regular expression parsing and matching of - all log messages. This might have a negative impact on logging + Note: + Multiline logging performs regular expression parsing and matching + of all log messages. This might have a negative impact on logging performance. The following options apply to all supported log drivers. mode - : Required: No - - Valid values: `non-blocking` | `blocking` - - This option defines the delivery mode of log messages from the - container to the log driver specified using `logDriver`. The delivery - mode you choose affects application availability when the flow of logs - from container is interrupted. - - If you use the `blocking` mode and the flow of logs is interrupted, - calls from container code to write to the `stdout` and `stderr` - streams will block. The logging thread of the application will block - as a result. This may cause the application to become unresponsive and - lead to container healthcheck failure. - - If you use the `non-blocking` mode, the container's logs are instead - stored in an in-memory intermediate buffer configured with the - `max-buffer-size` option. This prevents the application from becoming - unresponsive when logs cannot be sent. We recommend using this mode if - you want to ensure service availability and are okay with some log - loss. For more information, see [Preventing log loss with non-blocking - mode in the `awslogs` container log - driver](http://aws.amazon.com/blogs/containers/preventing-log-loss-with-non-blocking-mode-in-the-awslogs-container-log-driver/). - - You can set a default `mode` for all containers in a specific Amazon - Web Services Region by using the `defaultLogDriverMode` account - setting. If you don't specify the `mode` option or configure the - account setting, Amazon ECS will default to the `non-blocking` mode. - For more information about the account setting, see [Default log - driver - mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#default-log-driver-mode) - in the *Amazon Elastic Container Service Developer Guide*. - - Note: - On June 25, 2025, Amazon ECS changed the default log driver mode from - `blocking` to `non-blocking` to prioritize task availability over - logging. To continue using the `blocking` mode after this change, do - one of the following: + : Required: No + + Valid values: `non-blocking` | `blocking` + + This option defines the delivery mode of log messages from the + container to the log driver specified using `logDriver`. The + delivery mode you choose affects application availability when the + flow of logs from container is interrupted. + + If you use the `blocking` mode and the flow of logs is interrupted, + calls from container code to write to the `stdout` and `stderr` + streams will block. The logging thread of the application will block + as a result. This may cause the application to become unresponsive + and lead to container healthcheck failure. + + If you use the `non-blocking` mode, the container's logs are + instead stored in an in-memory intermediate buffer configured with + the `max-buffer-size` option. This prevents the application from + becoming unresponsive when logs cannot be sent. We recommend using + this mode if you want to ensure service availability and are okay + with some log loss. For more information, see [Preventing log loss + with non-blocking mode in the `awslogs` container log + driver](http://aws.amazon.com/blogs/containers/preventing-log-loss-with-non-blocking-mode-in-the-awslogs-container-log-driver/). + + You can set a default `mode` for all containers in a specific Amazon + Web Services Region by using the `defaultLogDriverMode` account + setting. If you don't specify the `mode` option or configure the + account setting, Amazon ECS will default to the `non-blocking` mode. + For more information about the account setting, see [Default log + driver + mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#default-log-driver-mode) + in the *Amazon Elastic Container Service Developer Guide*. + + Note: + On June 25, 2025, Amazon ECS changed the default log driver mode + from `blocking` to `non-blocking` to prioritize task availability + over logging. To continue using the `blocking` mode after this + change, do one of the following: - Set the `mode` option in your container definition's `logConfiguration` as `blocking`. @@ -3092,15 +4705,15 @@ class LogConfiguration(_SerdeShape): max-buffer-size - : Required: No + : Required: No - Default value: `10m` + Default value: `10m` - When `non-blocking` mode is used, the `max-buffer-size` log option - controls the size of the buffer that's used for intermediate message - storage. Make sure to specify an adequate buffer size based on your - application. When the buffer fills up, further logs cannot be stored. - Logs that cannot be stored are lost. + When `non-blocking` mode is used, the `max-buffer-size` log option + controls the size of the buffer that's used for intermediate + message storage. Make sure to specify an adequate buffer size based + on your application. When the buffer fills up, further logs cannot + be stored. Logs that cannot be stored are lost. To route logs using the `splunk` log router, you need to specify a `splunk-token` and a `splunk-url`. @@ -3147,6 +4760,256 @@ class LogConfiguration(_SerdeShape): in the *Amazon Elastic Container Service Developer Guide*. """ +class LogConfigurationDict(TypedDict, total=False): + """Dictionary form of `LogConfiguration`.""" + + log_driver: Required[str] + """ + The log driver to use for the container. + + For tasks on Fargate, the supported log drivers are `awslogs`, `splunk`, + and `awsfirelens`. + + For tasks hosted on Amazon EC2 instances, the supported log drivers are + `awslogs`, `fluentd`, `gelf`, `json-file`, `journald`, `syslog`, + `splunk`, and `awsfirelens`. + + For tasks on Amazon ECS Managed Instances, the supported log drivers are + `awslogs`, `splunk`, `awsfirelens`, and `json-file`. + + For more information about using the `awslogs` log driver, see [Send + Amazon ECS logs to + CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) + in the *Amazon Elastic Container Service Developer Guide*. + + For more information about using the `awsfirelens` log driver, see [Send + Amazon ECS logs to an Amazon Web Services service or Amazon Web Services + Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html). + + Note: + If you have a custom driver that isn't listed, you can fork the Amazon + ECS container agent project that's [available on + GitHub](https://github.com/aws/amazon-ecs-agent) and customize it to + work with that driver. We encourage you to submit pull requests for + changes that you would like to have included. However, we don't + currently provide support for running modified copies of this software. + """ + options: Mapping[str, str] | None + """ + The configuration options to send to the log driver. + + The options you can specify depend on the log driver. Some of the + options you can specify when you use the `awslogs` log driver to route + logs to Amazon CloudWatch include the following: + + awslogs-create-group + + : Required: No + + Specify whether you want the log group to be created automatically. + If this option isn't specified, it defaults to `false`. + + Note: + Your IAM policy must include the `logs:CreateLogGroup` permission + before you attempt to use `awslogs-create-group`. + + awslogs-region + + : Required: Yes + + Specify the Amazon Web Services Region that the `awslogs` log driver + is to send your Docker logs to. You can choose to send all of your + logs from clusters in different Regions to a single region in + CloudWatch Logs. This is so that they're all visible in one + location. Otherwise, you can separate them by Region for more + granularity. Make sure that the specified log group exists in the + Region that you specify with this option. + + awslogs-group + + : Required: Yes + + Make sure to specify a log group that the `awslogs` log driver sends + its log streams to. + + awslogs-stream-prefix + + : Required: Yes, when using Fargate.Optional when using EC2. + + Use the `awslogs-stream-prefix` option to associate a log stream + with the specified prefix, the container name, and the ID of the + Amazon ECS task that the container belongs to. If you specify a + prefix with this option, then the log stream takes the format + `prefix-name/container-name/ecs-task-id`. + + If you don't specify a prefix with this option, then the log stream + is named after the container ID that's assigned by the Docker + daemon on the container instance. Because it's difficult to trace + logs back to the container that sent them with just the Docker + container ID (which is only available on the container instance), we + recommend that you specify a prefix with this option. + + For Amazon ECS services, you can use the service name as the prefix. + Doing so, you can trace log streams to the service that the + container belongs to, the name of the container that sent them, and + the ID of the task that the container belongs to. + + You must specify a stream-prefix for your logs to have your logs + appear in the Log pane when using the Amazon ECS console. + + awslogs-datetime-format + + : Required: No + + This option defines a multiline start pattern in Python `strftime` + format. A log message consists of a line that matches the pattern + and any following lines that don't match the pattern. The matched + line is the delimiter between log messages. + + One example of a use case for using this format is for parsing + output such as a stack dump, which might otherwise be logged in + multiple entries. The correct pattern allows it to be captured in a + single entry. + + For more information, see + [awslogs-datetime-format](https://docs.docker.com/config/containers/logging/awslogs/#awslogs-datetime-format). + + You cannot configure both the `awslogs-datetime-format` and + `awslogs-multiline-pattern` options. + + Note: + Multiline logging performs regular expression parsing and matching + of all log messages. This might have a negative impact on logging + performance. + + awslogs-multiline-pattern + + : Required: No + + This option defines a multiline start pattern that uses a regular + expression. A log message consists of a line that matches the + pattern and any following lines that don't match the pattern. The + matched line is the delimiter between log messages. + + For more information, see + [awslogs-multiline-pattern](https://docs.docker.com/config/containers/logging/awslogs/#awslogs-multiline-pattern). + + This option is ignored if `awslogs-datetime-format` is also + configured. + + You cannot configure both the `awslogs-datetime-format` and + `awslogs-multiline-pattern` options. + + Note: + Multiline logging performs regular expression parsing and matching + of all log messages. This might have a negative impact on logging + performance. + + The following options apply to all supported log drivers. + + mode + + : Required: No + + Valid values: `non-blocking` | `blocking` + + This option defines the delivery mode of log messages from the + container to the log driver specified using `logDriver`. The + delivery mode you choose affects application availability when the + flow of logs from container is interrupted. + + If you use the `blocking` mode and the flow of logs is interrupted, + calls from container code to write to the `stdout` and `stderr` + streams will block. The logging thread of the application will block + as a result. This may cause the application to become unresponsive + and lead to container healthcheck failure. + + If you use the `non-blocking` mode, the container's logs are + instead stored in an in-memory intermediate buffer configured with + the `max-buffer-size` option. This prevents the application from + becoming unresponsive when logs cannot be sent. We recommend using + this mode if you want to ensure service availability and are okay + with some log loss. For more information, see [Preventing log loss + with non-blocking mode in the `awslogs` container log + driver](http://aws.amazon.com/blogs/containers/preventing-log-loss-with-non-blocking-mode-in-the-awslogs-container-log-driver/). + + You can set a default `mode` for all containers in a specific Amazon + Web Services Region by using the `defaultLogDriverMode` account + setting. If you don't specify the `mode` option or configure the + account setting, Amazon ECS will default to the `non-blocking` mode. + For more information about the account setting, see [Default log + driver + mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#default-log-driver-mode) + in the *Amazon Elastic Container Service Developer Guide*. + + Note: + On June 25, 2025, Amazon ECS changed the default log driver mode + from `blocking` to `non-blocking` to prioritize task availability + over logging. To continue using the `blocking` mode after this + change, do one of the following: + + - Set the `mode` option in your container definition's + `logConfiguration` as `blocking`. + + - Set the `defaultLogDriverMode` account setting to `blocking`. + + max-buffer-size + + : Required: No + + Default value: `10m` + + When `non-blocking` mode is used, the `max-buffer-size` log option + controls the size of the buffer that's used for intermediate + message storage. Make sure to specify an adequate buffer size based + on your application. When the buffer fills up, further logs cannot + be stored. Logs that cannot be stored are lost. + + To route logs using the `splunk` log router, you need to specify a + `splunk-token` and a `splunk-url`. + + When you use the `awsfirelens` log router to route logs to an Amazon Web + Services Service or Amazon Web Services Partner Network destination for + log storage and analytics, you can set the `log-driver-buffer-limit` + option to limit the number of events that are buffered in memory, before + being sent to the log router container. It can help to resolve potential + log loss issue because high throughput might result in memory running + out for the buffer inside of Docker. + + Other options you can specify when using `awsfirelens` to route logs + depend on the destination. When you export logs to Amazon Data Firehose, + you can specify the Amazon Web Services Region with `region` and a name + for the log stream with `delivery_stream`. + + When you export logs to Amazon Kinesis Data Streams, you can specify an + Amazon Web Services Region with `region` and a data stream name with + `stream`. + + When you export logs to Amazon OpenSearch Service, you can specify + options like `Name`, `Host` (OpenSearch Service endpoint without + protocol), `Port`, `Index`, `Type`, `Aws_auth`, `Aws_region`, + `Suppress_Type_Name`, and `tls`. For more information, see [Under the + hood: FireLens for Amazon ECS + Tasks](http://aws.amazon.com/blogs/containers/under-the-hood-firelens-for-amazon-ecs-tasks/). + + When you export logs to Amazon S3, you can specify the bucket using the + `bucket` option. You can also specify `region`, `total_file_size`, + `upload_timeout`, and `use_put_object` as options. + + This parameter requires version 1.19 of the Docker Remote API or greater + on your container instance. To check the Docker Remote API version on + your container instance, log in to your container instance and run the + following command: + `sudo docker version --format '{{.Server.APIVersion}}'` + """ + secret_options: Sequence[Secret | SecretDict] | None + """ + The secrets to pass to the log configuration. For more information, see + [Specifying sensitive + data](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + class LogDriver(UnknownEnumMixin, StrEnum): JSON_FILE = "json-file" SYSLOG = "syslog" @@ -3180,6 +5043,15 @@ class LogDriverVolumeConfiguration(_SerdeShape): value is `json-file`. """ +class LogDriverVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `LogDriverVolumeConfiguration`.""" + + driver: Required[str] + """ + The log driver whose log files the volume contains. The only supported + value is `json-file`. + """ + @dataclass(kw_only=True) class ManagedAgent(_SerdeShape): """Details about the managed agent status for the container.""" @@ -3212,6 +5084,18 @@ class ManagedAgentStateChange(_SerdeShape): reason: str | None = ... """The reason for the status of the managed agent.""" +class ManagedAgentStateChangeDict(TypedDict, total=False): + """Dictionary form of `ManagedAgentStateChange`.""" + + container_name: Required[str] + """The name of the container that's associated with the managed agent.""" + managed_agent_name: Required[str] + """The name of the managed agent.""" + status: Required[str] + """The status of the managed agent.""" + reason: str | None + """The reason for the status of the managed agent.""" + @dataclass(kw_only=True) class ManagedApplicationAutoScalingPolicy(_SerdeShape): """ @@ -3328,6 +5212,18 @@ class ManagedInstancesLocalStorageConfiguration(_SerdeShape): `localStorageTypes` and `totalLocalStorageGB` properties. """ +class ManagedInstancesLocalStorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedInstancesLocalStorageConfiguration`.""" + + use_local_storage: bool | None + """ + Use instance store volumes for data storage when available. EBS volumes + are not provisioned for data storage. If the container instance has + multiple instance store volumes, a single data volume is created. + Consider defining instance store requirements using the `localStorage`, + `localStorageTypes` and `totalLocalStorageGB` properties. + """ + class ManagedInstancesMonitoringOptions(UnknownEnumMixin, StrEnum): BASIC = "BASIC" DETAILED = "DETAILED" @@ -3357,6 +5253,22 @@ class ManagedInstancesNetworkConfiguration(_SerdeShape): the instances. """ +class ManagedInstancesNetworkConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedInstancesNetworkConfiguration`.""" + + subnets: Sequence[str] | None + """ + The list of subnet IDs where Amazon ECS can launch Amazon ECS Managed + Instances. Instances are distributed across the specified subnets for + high availability. All subnets must be in the same VPC. + """ + security_groups: Sequence[str] | None + """ + The list of security group IDs to apply to Amazon ECS Managed Instances. + These security groups control the network traffic allowed to and from + the instances. + """ + @dataclass(kw_only=True) class ManagedInstancesProvider(_SerdeShape): """ @@ -3421,6 +5333,12 @@ class ManagedInstancesStorageConfiguration(_SerdeShape): storage_size_gi_b: int | None = ... """The size of the data volume.""" +class ManagedInstancesStorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedInstancesStorageConfiguration`.""" + + storage_size_gi_b: int | None + """The size of the data volume.""" + @dataclass(kw_only=True) class ManagedListener(_SerdeShape): """ @@ -3607,24 +5525,62 @@ class ManagedScaling(_SerdeShape): this parameter is omitted, the default value of `300` seconds is used. """ -class ManagedScalingStatus(UnknownEnumMixin, StrEnum): - ENABLED = "ENABLED" - DISABLED = "DISABLED" - -@dataclass(kw_only=True) -class ManagedSecurityGroup(_SerdeShape): - """A security group associated with the Express service.""" - - arn: str | None = ... - """The ARN of the security group.""" - status: str - """The status of the security group.""" - status_reason: str | None = ... - """Information about why the security group is in the current status.""" - updated_at: datetime - """The Unix timestamp for when the security group was last updated.""" +class ManagedScalingDict(TypedDict, total=False): + """Dictionary form of `ManagedScaling`.""" -@dataclass(kw_only=True) + status: str | None + """Determines whether to use managed scaling for the capacity provider.""" + target_capacity: int | None + """ + The target capacity utilization as a percentage for the capacity + provider. The specified value must be greater than `0` and less than or + equal to `100`. For example, if you want the capacity provider to + maintain 10% spare capacity, then that means the utilization is 90%, so + use a `targetCapacity` of `90`. The default value of `100` percent + results in the Amazon EC2 instances in your Auto Scaling group being + completely used. + """ + minimum_scaling_step_size: int | None + """ + The minimum number of Amazon EC2 instances that Amazon ECS will scale + out at one time. The scale in process is not affected by this parameter + If this parameter is omitted, the default value of `1` is used. + + When additional capacity is required, Amazon ECS will scale up the + minimum scaling step size even if the actual demand is less than the + minimum scaling step size. + """ + maximum_scaling_step_size: int | None + """ + The maximum number of Amazon EC2 instances that Amazon ECS will scale + out at one time. If this parameter is omitted, the default value of + `10000` is used. + """ + instance_warmup_period: int | None + """ + The period of time, in seconds, after a newly launched Amazon EC2 + instance can contribute to CloudWatch metrics for Auto Scaling group. If + this parameter is omitted, the default value of `300` seconds is used. + """ + +class ManagedScalingStatus(UnknownEnumMixin, StrEnum): + ENABLED = "ENABLED" + DISABLED = "DISABLED" + +@dataclass(kw_only=True) +class ManagedSecurityGroup(_SerdeShape): + """A security group associated with the Express service.""" + + arn: str | None = ... + """The ARN of the security group.""" + status: str + """The status of the security group.""" + status_reason: str | None = ... + """Information about why the security group is in the current status.""" + updated_at: datetime + """The Unix timestamp for when the security group was last updated.""" + +@dataclass(kw_only=True) class ManagedStorageConfiguration(_SerdeShape): """The managed storage configuration for the cluster.""" @@ -3659,6 +5615,40 @@ class ManagedStorageConfiguration(_SerdeShape): The key must be a single Region key. """ +class ManagedStorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `ManagedStorageConfiguration`.""" + + kms_key_id: str | None + """ + Specify a Key Management Service key ID to encrypt Amazon ECS managed + storage. + + When you specify a `kmsKeyId`, Amazon ECS uses the key to encrypt data + volumes managed by Amazon ECS that are attached to tasks in the cluster. + The following data volumes are managed by Amazon ECS: Amazon EBS. For + more information about encryption of Amazon EBS volumes attached to + Amazon ECS tasks, see [Encrypt data stored in Amazon EBS volumes for + Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-kms-encryption.html) + in the *Amazon Elastic Container Service Developer Guide*. + + The key must be a single Region key. + """ + fargate_ephemeral_storage_kms_key_id: str | None + """ + Specify the Key Management Service key ID for Fargate ephemeral storage. + + When you specify a `fargateEphemeralStorageKmsKeyId`, Amazon Web + Services Fargate uses the key to encrypt data at rest in ephemeral + storage. For more information about Fargate ephemeral storage + encryption, see [Customer managed keys for Amazon Web Services Fargate + ephemeral storage for Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-storage-encryption.html) + in the *Amazon Elastic Container Service Developer Guide*. + + The key must be a single Region key. + """ + @dataclass(kw_only=True) class ManagedTargetGroup(_SerdeShape): """ @@ -3709,6 +5699,20 @@ class MemoryGiBPerVCpuRequest(_SerdeShape): higher memory-to-vCPU ratio are excluded from selection. """ +class MemoryGiBPerVCpuRequestDict(TypedDict, total=False): + """Dictionary form of `MemoryGiBPerVCpuRequest`.""" + + min: float | None + """ + The minimum amount of memory per vCPU in GiB. Instance types with a + lower memory-to-vCPU ratio are excluded from selection. + """ + max: float | None + """ + The maximum amount of memory per vCPU in GiB. Instance types with a + higher memory-to-vCPU ratio are excluded from selection. + """ + @dataclass(kw_only=True) class MemoryMiBRequest(_SerdeShape): """ @@ -3728,6 +5732,20 @@ class MemoryMiBRequest(_SerdeShape): than this value are excluded from selection. """ +class MemoryMiBRequestDict(TypedDict, total=False): + """Dictionary form of `MemoryMiBRequest`.""" + + min: Required[int] + """ + The minimum amount of memory in MiB. Instance types with less memory + than this value are excluded from selection. + """ + max: int | None + """ + The maximum amount of memory in MiB. Instance types with more memory + than this value are excluded from selection. + """ + @dataclass(kw_only=True) class MetricConfiguration(_SerdeShape): """ @@ -3746,6 +5764,20 @@ class MetricConfiguration(_SerdeShape): values are `20` and `60`. """ +class MetricConfigurationDict(TypedDict, total=False): + """Dictionary form of `MetricConfiguration`.""" + + metric_names: Required[Sequence[str]] + """ + The list of metric names to configure. The supported metric names are + `CPUUtilization` and `MemoryUtilization`. + """ + resolution_seconds: Required[int] + """ + The resolution, in seconds, at which to collect the metrics. The valid + values are `20` and `60`. + """ + @dataclass(kw_only=True) class MissingVersionException(ServiceError, _SerdeShape): """ @@ -3776,6 +5808,14 @@ class MonitoringConfiguration(_SerdeShape): metric_configurations: list[MetricConfiguration] | None = ... """The list of metric configurations for the service monitoring.""" +class MonitoringConfigurationDict(TypedDict, total=False): + """Dictionary form of `MonitoringConfiguration`.""" + + metric_configurations: ( + Sequence[MetricConfiguration | MetricConfigurationDict] | None + ) + """The list of metric configurations for the service monitoring.""" + @dataclass(kw_only=True) class MountPoint(_SerdeShape): """ @@ -3797,6 +5837,23 @@ class MountPoint(_SerdeShape): volume. The default value is `false`. """ +class MountPointDict(TypedDict, total=False): + """Dictionary form of `MountPoint`.""" + + source_volume: str | None + """ + The name of the volume to mount. Must be a volume name referenced in the + `name` parameter of task definition `volume`. + """ + container_path: str | None + """The path on the container to mount the host volume at.""" + read_only: bool | None + """ + If this value is `true`, the container has read-only access to the + volume. If this value is `false`, then the container can write to the + volume. The default value is `false`. + """ + @dataclass(kw_only=True) class NamespaceNotFoundException(ServiceError, _SerdeShape): """The specified namespace wasn't found.""" @@ -3828,6 +5885,20 @@ class NetworkBandwidthGbpsRequest(_SerdeShape): network bandwidth are excluded from selection. """ +class NetworkBandwidthGbpsRequestDict(TypedDict, total=False): + """Dictionary form of `NetworkBandwidthGbpsRequest`.""" + + min: float | None + """ + The minimum network bandwidth in Gbps. Instance types with lower network + bandwidth are excluded from selection. + """ + max: float | None + """ + The maximum network bandwidth in Gbps. Instance types with higher + network bandwidth are excluded from selection. + """ + @dataclass(kw_only=True) class NetworkBinding(_SerdeShape): """ @@ -3911,6 +5982,81 @@ class NetworkBinding(_SerdeShape): agent. """ +class NetworkBindingDict(TypedDict, total=False): + """Dictionary form of `NetworkBinding`.""" + + bind_ip: str | None + """The IP address that the container is bound to on the container instance.""" + container_port: int | None + """The port number on the container that's used with the network binding.""" + host_port: int | None + """The port number on the host that's used with the network binding.""" + protocol: str | None + """The protocol used for the network binding.""" + container_port_range: str | None + """ + The port number range on the container that's bound to the dynamically + mapped host port range. + + The following rules apply when you specify a `containerPortRange`: + + - You must use either the `bridge` network mode or the `awsvpc` network + mode. + + - This parameter is available for both the EC2 and Fargate launch types. + + - This parameter is available for both the Linux and Windows operating + systems. + + - The container instance must have at least version 1.67.0 of the + container agent and at least version 1.67.0-1 of the `ecs-init` + package + + - You can specify a maximum of 100 port ranges per container. + + - You do not specify a `hostPortRange`. The value of the `hostPortRange` + is set as follows: + + - For containers in a task with the `awsvpc` network mode, the + `hostPortRange` is set to the same value as the + `containerPortRange`. This is a static mapping strategy. + + - For containers in a task with the `bridge` network mode, the Amazon + ECS agent finds open host ports from the default ephemeral range and + passes it to docker to bind them to the container ports. + + - The `containerPortRange` valid values are between 1 and 65535. + + - A port can only be included in one port mapping per container. + + - You cannot specify overlapping port ranges. + + - The first port in the range must be less than last port in the range. + + - Docker recommends that you turn off the docker-proxy in the Docker + daemon config file when you have a large number of ports. + + For more information, see [Issue + #11185](https://github.com/moby/moby/issues/11185) on the Github + website. + + For information about how to turn off the docker-proxy in the Docker + daemon config file, see [Docker + daemon](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/bootstrap_container_instance.html#bootstrap_docker_daemon) + in the *Amazon ECS Developer Guide*. + + You can call + [`DescribeTasks`](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html) + to view the `hostPortRange` which are the host ports that are bound to + the container ports. + """ + host_port_range: str | None + """ + The port number range on the host that's used with the network binding. + This is assigned is assigned by Docker and delivered by the Amazon ECS + agent. + """ + @dataclass(kw_only=True) class NetworkConfiguration(_SerdeShape): """The network configuration for a task or service.""" @@ -3923,6 +6069,17 @@ class NetworkConfiguration(_SerdeShape): All specified subnets and security groups must be from the same VPC. """ +class NetworkConfigurationDict(TypedDict, total=False): + """Dictionary form of `NetworkConfiguration`.""" + + awsvpc_configuration: AwsVpcConfiguration | AwsVpcConfigurationDict | None + """ + The VPC subnets and security groups that are associated with a task. + + Note: + All specified subnets and security groups must be from the same VPC. + """ + @dataclass(kw_only=True) class NetworkInterface(_SerdeShape): """ @@ -3956,6 +6113,20 @@ class NetworkInterfaceCountRequest(_SerdeShape): more network interfaces are excluded from selection. """ +class NetworkInterfaceCountRequestDict(TypedDict, total=False): + """Dictionary form of `NetworkInterfaceCountRequest`.""" + + min: int | None + """ + The minimum number of network interfaces. Instance types that support + fewer network interfaces are excluded from selection. + """ + max: int | None + """ + The maximum number of network interfaces. Instance types that support + more network interfaces are excluded from selection. + """ + class NetworkMode(UnknownEnumMixin, StrEnum): BRIDGE = "bridge" HOST = "host" @@ -4011,6 +6182,32 @@ class NvidiaMpsAllocation(_SerdeShape): 100 percent. """ +class NvidiaMpsAllocationDict(TypedDict, total=False): + """Dictionary form of `NvidiaMpsAllocation`.""" + + memory: Required[int] + """ + The amount of GPU memory, in MiB, to allocate to the container. Amazon + ECS assigns the container a GPU that has at least the specified amount + of memory available, and sets the `CUDA_MPS_PINNED_DEVICE_MEM_LIMIT` + environment variable in the container to limit its memory to this + amount. The memory must be available on a single GPU. If more than one + container in a task uses `nvidiaMps`, Amazon ECS assigns them the same + GPU, which must have enough memory available for all of them. + """ + max_compute_percent: int | None + """ + The maximum percentage of the GPU's compute capacity that the container + can use. Amazon ECS sets the `CUDA_MPS_ACTIVE_THREAD_PERCENTAGE` + environment variable in the container to this value. This value is a + limit, not a reservation. + + If you don't specify this parameter, Amazon ECS doesn't set + `CUDA_MPS_ACTIVE_THREAD_PERCENTAGE`, and the active thread percentage of + the MPS server on the container instance applies. By default, this is + 100 percent. + """ + class OSFamily(UnknownEnumMixin, StrEnum): WINDOWS_SERVER_2019_FULL = "WINDOWS_SERVER_2019_FULL" WINDOWS_SERVER_2019_CORE = "WINDOWS_SERVER_2019_CORE" @@ -4056,6 +6253,25 @@ class PlacementConstraint(_SerdeShape): in the *Amazon Elastic Container Service Developer Guide*. """ +class PlacementConstraintDict(TypedDict, total=False): + """Dictionary form of `PlacementConstraint`.""" + + type: str | None + """ + The type of constraint. Use `distinctInstance` to ensure that each task + in a particular group is running on a different container instance. Use + `memberOf` to restrict the selection to a group of valid candidates. + """ + expression: str | None + """ + A cluster query language expression to apply to the constraint. The + expression can have a maximum length of 2000 characters. You can't + specify an expression if the constraint type is `distinctInstance`. For + more information, see [Cluster query + language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + class PlacementConstraintType(UnknownEnumMixin, StrEnum): DISTINCT_INSTANCE = "distinctInstance" MEMBER_OF = "memberOf" @@ -4090,7 +6306,31 @@ class PlacementStrategy(_SerdeShape): the `random` placement strategy, this field is not used. """ -class PlacementStrategyType(UnknownEnumMixin, StrEnum): +class PlacementStrategyDict(TypedDict, total=False): + """Dictionary form of `PlacementStrategy`.""" + + type: str | None + """ + The type of placement strategy. The `random` placement strategy randomly + places tasks on available candidates. The `spread` placement strategy + spreads placement across available candidates evenly based on the + `field` parameter. The `binpack` strategy places tasks on available + candidates that have the least available amount of the resource that's + specified with the `field` parameter. For example, if you binpack on + memory, a task is placed on the instance with the least amount of + remaining memory but still enough to run the task. + """ + field: str | None + """ + The field to apply the placement strategy against. For the `spread` + placement strategy, valid values are `instanceId` (or `host`, which has + the same effect), or any platform or custom attribute that's applied to + a container instance, such as `attribute:ecs.availability-zone`. For the + `binpack` placement strategy, valid values are `cpu` and `memory`. For + the `random` placement strategy, this field is not used. + """ + +class PlacementStrategyType(UnknownEnumMixin, StrEnum): RANDOM = "random" SPREAD = "spread" BINPACK = "binpack" @@ -4116,6 +6356,23 @@ class PlatformDevice(_SerdeShape): supported values are `GPU` and `NEURON_DEVICE`. """ +class PlatformDeviceDict(TypedDict, total=False): + """Dictionary form of `PlatformDevice`.""" + + id: Required[str] + """ + The ID for the GPU or Neuron device on the container instance. For GPUs, + the available GPU IDs can also be obtained on the container instance in + the `/var/lib/ecs/gpu/nvidia_gpu_info.json` file. For Neuron devices, + the ID corresponds to the device index (for example, `0` for + `/dev/neuron0`). + """ + type: Required[str] + """ + The type of device that's available on the container instance. The + supported values are `GPU` and `NEURON_DEVICE`. + """ + class PlatformDeviceType(UnknownEnumMixin, StrEnum): GPU = "GPU" NEURON_DEVICE = "NEURON_DEVICE" @@ -4334,6 +6591,168 @@ class PortMapping(_SerdeShape): the container ports. """ +class PortMappingDict(TypedDict, total=False): + """Dictionary form of `PortMapping`.""" + + container_port: int | None + """ + The port number on the container that's bound to the user-specified or + automatically assigned host port. + + If you use containers in a task with the `awsvpc` or `host` network + mode, specify the exposed ports using `containerPort`. + + If you use containers in a task with the `bridge` network mode and you + specify a container port and not a host port, your container + automatically receives a host port in the ephemeral port range. For more + information, see `hostPort`. Port mappings that are automatically + assigned in this way do not count toward the 100 reserved ports limit of + a container instance. + """ + host_port: int | None + """ + The port number on the container instance to reserve for your container. + + If you specify a `containerPortRange`, leave this field empty and the + value of the `hostPort` is set as follows: + + - For containers in a task with the `awsvpc` network mode, the + `hostPort` is set to the same value as the `containerPort`. This is a + static mapping strategy. + + - For containers in a task with the `bridge` network mode, the Amazon + ECS agent finds open ports on the host and automatically binds them to + the container ports. This is a dynamic mapping strategy. + + If you use containers in a task with the `awsvpc` or `host` network + mode, the `hostPort` can either be left blank or set to the same value + as the `containerPort`. + + If you use containers in a task with the `bridge` network mode, you can + specify a non-reserved host port for your container port mapping, or you + can omit the `hostPort` (or set it to `0`) while specifying a + `containerPort` and your container automatically receives a port in the + ephemeral port range for your container instance operating system and + Docker version. + + The default ephemeral port range for Docker version 1.6.0 and later is + listed on the instance under `/proc/sys/net/ipv4/ip_local_port_range`. + If this kernel parameter is unavailable, the default ephemeral port + range from 49153 through 65535 (Linux) or 49152 through 65535 (Windows) + is used. Do not attempt to specify a host port in the ephemeral port + range as these are reserved for automatic assignment. In general, ports + below 32768 are outside of the ephemeral port range. + + The default reserved ports are 22 for SSH, the Docker ports 2375 and + 2376, and the Amazon ECS container agent ports 51678-51680. Any host + port that was previously specified in a running task is also reserved + while the task is running. That is, after a task stops, the host port is + released. The current reserved ports are displayed in the + `remainingResources` of + [DescribeContainerInstances](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeContainerInstances.html) + output. A container instance can have up to 100 reserved ports at a + time. This number includes the default reserved ports. Automatically + assigned ports aren't included in the 100 reserved ports quota. + """ + protocol: str | None + """ + The protocol that's used for the port mapping. Valid values are `tcp` + and `udp` (case-sensitive). The default is `tcp`. Amazon ECS treats any + other specified value as `tcp`. `protocol` is immutable in a Service + Connect service. To update this field, you must delete and redeploy the + service. + """ + name: str | None + """ + The name that's used for the port mapping. This parameter is the name + that you use in the `serviceConnectConfiguration` and the + `vpcLatticeConfigurations` of a service. The name can include up to 64 + characters. The characters can include lowercase letters, numbers, + underscores (_), and hyphens (-). The name can't start with a hyphen. + """ + app_protocol: str | None + """ + The application protocol that's used for the port mapping. This + parameter only applies to Service Connect. We recommend that you set + this parameter to be consistent with the protocol that your application + uses. If you set this parameter, Amazon ECS adds protocol-specific + connection handling to the Service Connect proxy. If you set this + parameter, Amazon ECS adds protocol-specific telemetry in the Amazon ECS + console and CloudWatch. + + If you don't set a value for this parameter, then TCP is used. However, + Amazon ECS doesn't add protocol-specific telemetry for TCP. + + `appProtocol` is immutable in a Service Connect service. Updating this + field requires a service deletion and redeployment. + + Tasks that run in a namespace can use short names to connect to services + in the namespace. Tasks can connect to services across all of the + clusters in the namespace. Tasks connect through a managed proxy + container that collects logs and metrics for increased visibility. Only + the tasks that Amazon ECS services create are supported with Service + Connect. For more information, see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + container_port_range: str | None + """ + The port number range on the container that's bound to the dynamically + mapped host port range. + + The following rules apply when you specify a `containerPortRange`: + + - You must use either the `bridge` network mode or the `awsvpc` network + mode. + + - This parameter is available for both the EC2 and Fargate launch types. + + - This parameter is available for both the Linux and Windows operating + systems. + + - The container instance must have at least version 1.67.0 of the + container agent and at least version 1.67.0-1 of the `ecs-init` + package + + - You can specify a maximum of 100 port ranges per container. + + - You do not specify a `hostPortRange`. The value of the `hostPortRange` + is set as follows: + + - For containers in a task with the `awsvpc` network mode, the + `hostPortRange` is set to the same value as the + `containerPortRange`. This is a static mapping strategy. + + - For containers in a task with the `bridge` network mode, the Amazon + ECS agent finds open host ports from the default ephemeral range and + passes it to docker to bind them to the container ports. + + - The `containerPortRange` valid values are between 1 and 65535. + + - A port can only be included in one port mapping per container. + + - You cannot specify overlapping port ranges. + + - The first port in the range must be less than last port in the range. + + - Docker recommends that you turn off the docker-proxy in the Docker + daemon config file when you have a large number of ports. + + For more information, see [Issue + #11185](https://github.com/moby/moby/issues/11185) on the Github + website. + + For information about how to turn off the docker-proxy in the Docker + daemon config file, see [Docker + daemon](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/bootstrap_container_instance.html#bootstrap_docker_daemon) + in the *Amazon ECS Developer Guide*. + + You can call + [`DescribeTasks`](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html) + to view the `hostPortRange` which are the host ports that are bound to + the container ports. + """ + class PropagateGatewayTags(UnknownEnumMixin, StrEnum): """ Specifies whether the tags on a gateway are propagated to the @@ -4431,6 +6850,47 @@ class ProxyConfiguration(_SerdeShape): `ProxyEgressPort`. It can be an empty list. """ +class ProxyConfigurationDict(TypedDict, total=False): + """Dictionary form of `ProxyConfiguration`.""" + + type: str | None + """The proxy type. The only supported value is `APPMESH`.""" + container_name: Required[str] + """The name of the container that will serve as the App Mesh proxy.""" + properties: Sequence[KeyValuePair | KeyValuePairDict] | None + """ + The set of network configuration parameters to provide the Container + Network Interface (CNI) plugin, specified as key-value pairs. + + - `IgnoredUID` - (Required) The user ID (UID) of the proxy container as + defined by the `user` parameter in a container definition. This is + used to ensure the proxy ignores its own traffic. If `IgnoredGID` is + specified, this field can be empty. + + - `IgnoredGID` - (Required) The group ID (GID) of the proxy container as + defined by the `user` parameter in a container definition. This is + used to ensure the proxy ignores its own traffic. If `IgnoredUID` is + specified, this field can be empty. + + - `AppPorts` - (Required) The list of ports that the application uses. + Network traffic to these ports is forwarded to the `ProxyIngressPort` + and `ProxyEgressPort`. + + - `ProxyIngressPort` - (Required) Specifies the port that incoming + traffic to the `AppPorts` is directed to. + + - `ProxyEgressPort` - (Required) Specifies the port that outgoing + traffic from the `AppPorts` is directed to. + + - `EgressIgnoredPorts` - (Required) The egress traffic going to the + specified ports is ignored and not redirected to the + `ProxyEgressPort`. It can be an empty list. + + - `EgressIgnoredIPs` - (Required) The egress traffic going to the + specified IP addresses is ignored and not redirected to the + `ProxyEgressPort`. It can be an empty list. + """ + class ProxyConfigurationType(UnknownEnumMixin, StrEnum): APPMESH = "APPMESH" @@ -4590,27 +7050,12 @@ class PutAccountSettingDefaultInput(_SerdeShape): calendar days to retire the tasks. """ -@dataclass(kw_only=True) -class PutAccountSettingDefaultOutput(_SerdeShape): - """Dataclass for PutAccountSettingDefaultOutput structure.""" - - setting: Setting | None = ... - """The current setting for a resource.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class PutAccountSettingInput(_SerdeShape): - """Dataclass for PutAccountSettingInput structure.""" +class PutAccountSettingDefaultInputDict(TypedDict, total=False): + """Dictionary form of `PutAccountSettingDefaultInput`.""" - name: str | None = ... + name: Required[str] """ - The Amazon ECS account setting name to modify. + The resource name for which to modify the account setting. The following are the valid values for the account setting name. @@ -4680,6 +7125,9 @@ class PutAccountSettingInput(_SerdeShape): [Using a VPC in dual-stack mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-task-networking.html#fargate-task-networking-vpc-dual-stack). + - `fargateFIPSMode` - If you specify `fargateFIPSMode`, Fargate FIPS 140 + compliance is affected. + - `fargateTaskRetirementWaitPeriod` - When Amazon Web Services determines that a security or infrastructure update is needed for an Amazon ECS task hosted on Fargate, the tasks need to be stopped and @@ -4708,9 +7156,9 @@ class PutAccountSettingInput(_SerdeShape): creation](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/supported-iam-actions-tagging.html) in the *Amazon ECS Developer Guide*. - - `defaultLogDriverMode` - Amazon ECS supports setting a default - delivery mode of log messages from a container to the `logDriver` that - you specify in the container's `logConfiguration`. The delivery mode + - `defaultLogDriverMode` -Amazon ECS supports setting a default delivery + mode of log messages from a container to the `logDriver` that you + specify in the container's `logConfiguration`. The delivery mode affects application stability when the flow of logs from the container to the log driver is interrupted. The `defaultLogDriverMode` setting supports two values: `blocking` and `non-blocking`. If you don't @@ -4739,10 +7187,177 @@ class PutAccountSettingInput(_SerdeShape): with Amazon ECS Runtime Monitoring](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html). """ - value: str | None = ... + value: Required[str] """ The account setting value for the specified principal ARN. Accepted - values are `enabled`, `disabled`, `enhanced`, `on`, and `off`. + values are `enabled`, `disabled`, `on`, `enhanced`, and `off`. + + When you specify `fargateTaskRetirementWaitPeriod` for the `name`, the + following are the valid values: + + - `0` - Amazon Web Services sends the notification, and immediately + retires the affected tasks. + + - `7` - Amazon Web Services sends the notification, and waits 7 calendar + days to retire the tasks. + + - `14` - Amazon Web Services sends the notification, and waits 14 + calendar days to retire the tasks. + """ + +@dataclass(kw_only=True) +class PutAccountSettingDefaultOutput(_SerdeShape): + """Dataclass for PutAccountSettingDefaultOutput structure.""" + + setting: Setting | None = ... + """The current setting for a resource.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutAccountSettingInput(_SerdeShape): + """Dataclass for PutAccountSettingInput structure.""" + + name: str | None = ... + """ + The Amazon ECS account setting name to modify. + + The following are the valid values for the account setting name. + + - `serviceLongArnFormat` - When modified, the Amazon Resource Name (ARN) + and resource ID format of the resource type for a specified user, + role, or the root user for an account is affected. The opt-in and + opt-out account setting must be set for each Amazon ECS resource + separately. The ARN and resource ID format of a resource is defined by + the opt-in status of the user or role that created the resource. You + must turn on this setting to use Amazon ECS features such as resource + tagging. + + - `taskLongArnFormat` - When modified, the Amazon Resource Name (ARN) + and resource ID format of the resource type for a specified user, + role, or the root user for an account is affected. The opt-in and + opt-out account setting must be set for each Amazon ECS resource + separately. The ARN and resource ID format of a resource is defined by + the opt-in status of the user or role that created the resource. You + must turn on this setting to use Amazon ECS features such as resource + tagging. + + - `containerInstanceLongArnFormat` - When modified, the Amazon Resource + Name (ARN) and resource ID format of the resource type for a specified + user, role, or the root user for an account is affected. The opt-in + and opt-out account setting must be set for each Amazon ECS resource + separately. The ARN and resource ID format of a resource is defined by + the opt-in status of the user or role that created the resource. You + must turn on this setting to use Amazon ECS features such as resource + tagging. + + - `awsvpcTrunking` - When modified, the elastic network interface (ENI) + limit for any new container instances that support the feature is + changed. If `awsvpcTrunking` is turned on, any new container instances + that support the feature are launched have the increased ENI limits + available to them. For more information, see [Elastic Network + Interface + Trunking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-instance-eni.html) + in the *Amazon Elastic Container Service Developer Guide*. + + - `containerInsights` - Container Insights with enhanced observability + provides all the Container Insights metrics, plus additional task and + container metrics. This version supports enhanced observability for + Amazon ECS clusters using the Amazon EC2 and Fargate launch types. + After you configure Container Insights with enhanced observability on + Amazon ECS, Container Insights auto-collects detailed infrastructure + telemetry from the cluster level down to the container level in your + environment and displays these critical performance data in curated + dashboards removing the heavy lifting in observability set-up. + + To use Container Insights with enhanced observability, set the + `containerInsights` account setting to `enhanced`. + + To use Container Insights, set the `containerInsights` account setting + to `enabled`. + + For more information, see [Monitor Amazon ECS containers using + Container Insights with enhanced + observability](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html) + in the *Amazon Elastic Container Service Developer Guide*. + + - `dualStackIPv6` - When turned on, when using a VPC in dual stack mode, + your tasks using the `awsvpc` network mode can have an IPv6 address + assigned. For more information on using IPv6 with tasks launched on + Amazon EC2 instances, see [Using a VPC in dual-stack + mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking-awsvpc.html#task-networking-vpc-dual-stack). + For more information on using IPv6 with tasks launched on Fargate, see + [Using a VPC in dual-stack + mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-task-networking.html#fargate-task-networking-vpc-dual-stack). + + - `fargateTaskRetirementWaitPeriod` - When Amazon Web Services + determines that a security or infrastructure update is needed for an + Amazon ECS task hosted on Fargate, the tasks need to be stopped and + new tasks launched to replace them. Use + `fargateTaskRetirementWaitPeriod` to configure the wait time to retire + a Fargate task. For information about the Fargate tasks maintenance, + see [Amazon Web Services Fargate task + maintenance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html) + in the *Amazon ECS Developer Guide*. + + - `fargateEventWindows` - When Amazon Web Services determines that a + security or infrastructure update is needed for an Amazon ECS task + hosted on Fargate, the tasks need to be stopped and new tasks launched + to replace them. Use `fargateEventWindows` to use EC2 Event Windows + associated with Fargate tasks to configure time windows for task + retirement. + + - `tagResourceAuthorization` - Amazon ECS is introducing tagging + authorization for resource creation. Users must have permissions for + actions that create the resource, such as `ecsCreateCluster`. If tags + are specified when you create a resource, Amazon Web Services performs + additional authorization to verify if users or roles have permissions + to create tags. Therefore, you must grant explicit permissions to use + the `ecs:TagResource` action. For more information, see [Grant + permission to tag resources on + creation](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/supported-iam-actions-tagging.html) + in the *Amazon ECS Developer Guide*. + + - `defaultLogDriverMode` - Amazon ECS supports setting a default + delivery mode of log messages from a container to the `logDriver` that + you specify in the container's `logConfiguration`. The delivery mode + affects application stability when the flow of logs from the container + to the log driver is interrupted. The `defaultLogDriverMode` setting + supports two values: `blocking` and `non-blocking`. If you don't + specify a delivery mode in your container definition's + `logConfiguration`, the mode you specify using this account setting + will be used as the default. For more information about log delivery + modes, see + [LogConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html). + + Note: + On June 25, 2025, Amazon ECS changed the default log driver mode from + `blocking` to `non-blocking` to prioritize task availability over + logging. To continue using the `blocking` mode after this change, do + one of the following: + + - Set the `mode` option in your container definition's + `logConfiguration` as `blocking`. + + - Set the `defaultLogDriverMode` account setting to `blocking`. + + - `guardDutyActivate` - The `guardDutyActivate` parameter is read-only + in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is + enabled or disabled by your security administrator in your Amazon ECS + account. Amazon GuardDuty controls this account setting on your + behalf. For more information, see [Protecting Amazon ECS workloads + with Amazon ECS Runtime + Monitoring](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html). + """ + value: str | None = ... + """ + The account setting value for the specified principal ARN. Accepted + values are `enabled`, `disabled`, `enhanced`, `on`, and `off`. When you specify `fargateTaskRetirementWaitPeriod` for the `name`, the following are the valid values: @@ -4775,164 +7390,1209 @@ class PutAccountSettingInput(_SerdeShape): have explicit account settings set for them. """ -@dataclass(kw_only=True) -class PutAccountSettingOutput(_SerdeShape): - """Dataclass for PutAccountSettingOutput structure.""" +class PutAccountSettingInputDict(TypedDict, total=False): + """Dictionary form of `PutAccountSettingInput`.""" - setting: Setting | None = ... - """The current account setting for a resource.""" - response_metadata: ResponseMetadata = ... + name: Required[str] + """ + The Amazon ECS account setting name to modify. + + The following are the valid values for the account setting name. + + - `serviceLongArnFormat` - When modified, the Amazon Resource Name (ARN) + and resource ID format of the resource type for a specified user, + role, or the root user for an account is affected. The opt-in and + opt-out account setting must be set for each Amazon ECS resource + separately. The ARN and resource ID format of a resource is defined by + the opt-in status of the user or role that created the resource. You + must turn on this setting to use Amazon ECS features such as resource + tagging. + + - `taskLongArnFormat` - When modified, the Amazon Resource Name (ARN) + and resource ID format of the resource type for a specified user, + role, or the root user for an account is affected. The opt-in and + opt-out account setting must be set for each Amazon ECS resource + separately. The ARN and resource ID format of a resource is defined by + the opt-in status of the user or role that created the resource. You + must turn on this setting to use Amazon ECS features such as resource + tagging. + + - `containerInstanceLongArnFormat` - When modified, the Amazon Resource + Name (ARN) and resource ID format of the resource type for a specified + user, role, or the root user for an account is affected. The opt-in + and opt-out account setting must be set for each Amazon ECS resource + separately. The ARN and resource ID format of a resource is defined by + the opt-in status of the user or role that created the resource. You + must turn on this setting to use Amazon ECS features such as resource + tagging. + + - `awsvpcTrunking` - When modified, the elastic network interface (ENI) + limit for any new container instances that support the feature is + changed. If `awsvpcTrunking` is turned on, any new container instances + that support the feature are launched have the increased ENI limits + available to them. For more information, see [Elastic Network + Interface + Trunking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-instance-eni.html) + in the *Amazon Elastic Container Service Developer Guide*. + + - `containerInsights` - Container Insights with enhanced observability + provides all the Container Insights metrics, plus additional task and + container metrics. This version supports enhanced observability for + Amazon ECS clusters using the Amazon EC2 and Fargate launch types. + After you configure Container Insights with enhanced observability on + Amazon ECS, Container Insights auto-collects detailed infrastructure + telemetry from the cluster level down to the container level in your + environment and displays these critical performance data in curated + dashboards removing the heavy lifting in observability set-up. + + To use Container Insights with enhanced observability, set the + `containerInsights` account setting to `enhanced`. + + To use Container Insights, set the `containerInsights` account setting + to `enabled`. + + For more information, see [Monitor Amazon ECS containers using + Container Insights with enhanced + observability](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html) + in the *Amazon Elastic Container Service Developer Guide*. + + - `dualStackIPv6` - When turned on, when using a VPC in dual stack mode, + your tasks using the `awsvpc` network mode can have an IPv6 address + assigned. For more information on using IPv6 with tasks launched on + Amazon EC2 instances, see [Using a VPC in dual-stack + mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking-awsvpc.html#task-networking-vpc-dual-stack). + For more information on using IPv6 with tasks launched on Fargate, see + [Using a VPC in dual-stack + mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-task-networking.html#fargate-task-networking-vpc-dual-stack). + + - `fargateTaskRetirementWaitPeriod` - When Amazon Web Services + determines that a security or infrastructure update is needed for an + Amazon ECS task hosted on Fargate, the tasks need to be stopped and + new tasks launched to replace them. Use + `fargateTaskRetirementWaitPeriod` to configure the wait time to retire + a Fargate task. For information about the Fargate tasks maintenance, + see [Amazon Web Services Fargate task + maintenance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-maintenance.html) + in the *Amazon ECS Developer Guide*. + + - `fargateEventWindows` - When Amazon Web Services determines that a + security or infrastructure update is needed for an Amazon ECS task + hosted on Fargate, the tasks need to be stopped and new tasks launched + to replace them. Use `fargateEventWindows` to use EC2 Event Windows + associated with Fargate tasks to configure time windows for task + retirement. + + - `tagResourceAuthorization` - Amazon ECS is introducing tagging + authorization for resource creation. Users must have permissions for + actions that create the resource, such as `ecsCreateCluster`. If tags + are specified when you create a resource, Amazon Web Services performs + additional authorization to verify if users or roles have permissions + to create tags. Therefore, you must grant explicit permissions to use + the `ecs:TagResource` action. For more information, see [Grant + permission to tag resources on + creation](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/supported-iam-actions-tagging.html) + in the *Amazon ECS Developer Guide*. + + - `defaultLogDriverMode` - Amazon ECS supports setting a default + delivery mode of log messages from a container to the `logDriver` that + you specify in the container's `logConfiguration`. The delivery mode + affects application stability when the flow of logs from the container + to the log driver is interrupted. The `defaultLogDriverMode` setting + supports two values: `blocking` and `non-blocking`. If you don't + specify a delivery mode in your container definition's + `logConfiguration`, the mode you specify using this account setting + will be used as the default. For more information about log delivery + modes, see + [LogConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html). + + Note: + On June 25, 2025, Amazon ECS changed the default log driver mode from + `blocking` to `non-blocking` to prioritize task availability over + logging. To continue using the `blocking` mode after this change, do + one of the following: + + - Set the `mode` option in your container definition's + `logConfiguration` as `blocking`. + + - Set the `defaultLogDriverMode` account setting to `blocking`. + + - `guardDutyActivate` - The `guardDutyActivate` parameter is read-only + in Amazon ECS and indicates whether Amazon ECS Runtime Monitoring is + enabled or disabled by your security administrator in your Amazon ECS + account. Amazon GuardDuty controls this account setting on your + behalf. For more information, see [Protecting Amazon ECS workloads + with Amazon ECS Runtime + Monitoring](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-guard-duty-integration.html). + """ + value: Required[str] + """ + The account setting value for the specified principal ARN. Accepted + values are `enabled`, `disabled`, `enhanced`, `on`, and `off`. + + When you specify `fargateTaskRetirementWaitPeriod` for the `name`, the + following are the valid values: + + - `0` - Amazon Web Services sends the notification, and immediately + retires the affected tasks. + + - `7` - Amazon Web Services sends the notification, and waits 7 calendar + days to retire the tasks. + + - `14` - Amazon Web Services sends the notification, and waits 14 + calendar days to retire the tasks. + """ + principal_arn: str | None + """ + The ARN of the principal, which can be a user, role, or the root user. + If you specify the root user, it modifies the account setting for all + users, roles, and the root user of the account unless a user or role + explicitly overrides these settings. If this field is omitted, the + setting is changed only for the authenticated user. + + In order to use this parameter, you must be the root user, or the + principal. + + Note: + You must use the root user when you set the Fargate wait time + (`fargateTaskRetirementWaitPeriod`). + + Federated users assume the account setting of the root user and can't + have explicit account settings set for them. + """ + +@dataclass(kw_only=True) +class PutAccountSettingOutput(_SerdeShape): + """Dataclass for PutAccountSettingOutput structure.""" + + setting: Setting | None = ... + """The current account setting for a resource.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutAttributesInput(_SerdeShape): + """""" + + cluster: str | None = ... + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + contains the resource to apply attributes. If you do not specify a + cluster, the default cluster is assumed. + """ + attributes: list[Attribute] | None = ... + """ + The attributes to apply to your resource. You can specify up to 10 + custom attributes for each resource. You can specify up to 10 attributes + in a single call. + """ + +class PutAttributesInputDict(TypedDict, total=False): + """Dictionary form of `PutAttributesInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + contains the resource to apply attributes. If you do not specify a + cluster, the default cluster is assumed. + """ + attributes: Required[Sequence[Attribute | AttributeDict]] + """ + The attributes to apply to your resource. You can specify up to 10 + custom attributes for each resource. You can specify up to 10 attributes + in a single call. + """ + +@dataclass(kw_only=True) +class PutAttributesOutput(_SerdeShape): + """""" + + attributes: list[Attribute] | None = ... + """The attributes applied to your resource.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutClusterCapacityProvidersInput(_SerdeShape): + """Dataclass for PutClusterCapacityProvidersInput structure.""" + + cluster: str | None = ... + """ + The short name or full Amazon Resource Name (ARN) of the cluster to + modify the capacity provider settings for. If you don't specify a + cluster, the default cluster is assumed. + """ + capacity_providers: list[str] | None = ... + """ + The name of one or more capacity providers to associate with the + cluster. + + If specifying a capacity provider that uses an Auto Scaling group, the + capacity provider must already be created. New capacity providers can be + created with the + [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) + API operation. + + To use a Fargate capacity provider, specify either the `FARGATE` or + `FARGATE_SPOT` capacity providers. The Fargate capacity providers are + available to all accounts and only need to be associated with a cluster + to be used. + """ + default_capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + """ + The capacity provider strategy to use by default for the cluster. + + When creating a service or running a task on a cluster, if no capacity + provider or launch type is specified then the default capacity provider + strategy for the cluster is used. + + A capacity provider strategy consists of one or more capacity providers + along with the `base` and `weight` to assign to them. A capacity + provider must be associated with the cluster to be used in a capacity + provider strategy. The + [PutClusterCapacityProviders](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html) + API is used to associate a capacity provider with a cluster. Only + capacity providers with an `ACTIVE` or `UPDATING` status can be used. + + If specifying a capacity provider that uses an Auto Scaling group, the + capacity provider must already be created. New capacity providers can be + created with the + [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) + API operation. + + To use a Fargate capacity provider, specify either the `FARGATE` or + `FARGATE_SPOT` capacity providers. The Fargate capacity providers are + available to all accounts and only need to be associated with a cluster + to be used. + """ + +class PutClusterCapacityProvidersInputDict(TypedDict, total=False): + """Dictionary form of `PutClusterCapacityProvidersInput`.""" + + cluster: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the cluster to + modify the capacity provider settings for. If you don't specify a + cluster, the default cluster is assumed. + """ + capacity_providers: Required[Sequence[str]] + """ + The name of one or more capacity providers to associate with the + cluster. + + If specifying a capacity provider that uses an Auto Scaling group, the + capacity provider must already be created. New capacity providers can be + created with the + [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) + API operation. + + To use a Fargate capacity provider, specify either the `FARGATE` or + `FARGATE_SPOT` capacity providers. The Fargate capacity providers are + available to all accounts and only need to be associated with a cluster + to be used. + """ + default_capacity_provider_strategy: Required[ + Sequence[CapacityProviderStrategyItem | CapacityProviderStrategyItemDict] + ] + """ + The capacity provider strategy to use by default for the cluster. + + When creating a service or running a task on a cluster, if no capacity + provider or launch type is specified then the default capacity provider + strategy for the cluster is used. + + A capacity provider strategy consists of one or more capacity providers + along with the `base` and `weight` to assign to them. A capacity + provider must be associated with the cluster to be used in a capacity + provider strategy. The + [PutClusterCapacityProviders](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html) + API is used to associate a capacity provider with a cluster. Only + capacity providers with an `ACTIVE` or `UPDATING` status can be used. + + If specifying a capacity provider that uses an Auto Scaling group, the + capacity provider must already be created. New capacity providers can be + created with the + [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) + API operation. + + To use a Fargate capacity provider, specify either the `FARGATE` or + `FARGATE_SPOT` capacity providers. The Fargate capacity providers are + available to all accounts and only need to be associated with a cluster + to be used. + """ + +@dataclass(kw_only=True) +class PutClusterCapacityProvidersOutput(_SerdeShape): + """Dataclass for PutClusterCapacityProvidersOutput structure.""" + + cluster: Cluster | None = ... + """Details about the cluster.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RegisterContainerInstanceInput(_SerdeShape): + """""" + + cluster: str | None = ... + """ + The short name or full Amazon Resource Name (ARN) of the cluster to + register your container instance with. If you do not specify a cluster, + the default cluster is assumed. + """ + instance_identity_document: str | None = ... + """ + The instance identity document for the EC2 instance to register. This + document can be found by running the following command from the + instance: + `curl http://169.254.169.254/latest/dynamic/instance-identity/document/` + """ + instance_identity_document_signature: str | None = ... + """ + The instance identity document signature for the EC2 instance to + register. This signature can be found by running the following command + from the instance: + `curl http://169.254.169.254/latest/dynamic/instance-identity/signature/` + """ + total_resources: list[Resource] | None = ... + """The resources available on the instance.""" + version_info: VersionInfo | None = ... + """ + The version information for the Amazon ECS container agent and Docker + daemon that runs on the container instance. + """ + container_instance_arn: str | None = ... + """The ARN of the container instance (if it was previously registered).""" + attributes: list[Attribute] | None = ... + """The container instance attributes that this container instance supports.""" + platform_devices: list[PlatformDevice] | None = ... + """ + The devices that are available on the container instance. The supported + device types are GPUs and Neuron devices. + """ + tags: list[Tag] | None = ... + """ + The metadata that you apply to the container instance to help you + categorize and organize them. Each tag consists of a key and an optional + value. You define both. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + +class RegisterContainerInstanceInputDict(TypedDict, total=False): + """Dictionary form of `RegisterContainerInstanceInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster to + register your container instance with. If you do not specify a cluster, + the default cluster is assumed. + """ + instance_identity_document: str | None + """ + The instance identity document for the EC2 instance to register. This + document can be found by running the following command from the + instance: + `curl http://169.254.169.254/latest/dynamic/instance-identity/document/` + """ + instance_identity_document_signature: str | None + """ + The instance identity document signature for the EC2 instance to + register. This signature can be found by running the following command + from the instance: + `curl http://169.254.169.254/latest/dynamic/instance-identity/signature/` + """ + total_resources: Sequence[Resource | ResourceDict] | None + """The resources available on the instance.""" + version_info: VersionInfo | VersionInfoDict | None + """ + The version information for the Amazon ECS container agent and Docker + daemon that runs on the container instance. + """ + container_instance_arn: str | None + """The ARN of the container instance (if it was previously registered).""" + attributes: Sequence[Attribute | AttributeDict] | None + """The container instance attributes that this container instance supports.""" + platform_devices: Sequence[PlatformDevice | PlatformDeviceDict] | None + """ + The devices that are available on the container instance. The supported + device types are GPUs and Neuron devices. + """ + tags: Sequence[Tag | TagDict] | None + """ + The metadata that you apply to the container instance to help you + categorize and organize them. Each tag consists of a key and an optional + value. You define both. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + +@dataclass(kw_only=True) +class RegisterContainerInstanceOutput(_SerdeShape): + """""" + + container_instance: ContainerInstance | None = ... + """The container instance that was registered.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RegisterDaemonTaskDefinitionInput(_SerdeShape): + """Dataclass for RegisterDaemonTaskDefinitionInput structure.""" + + family: str | None = ... + """ + You must specify a `family` for a daemon task definition. This family is + used as a name for your daemon task definition. Up to 255 letters + (uppercase and lowercase), numbers, underscores, and hyphens are + allowed. + """ + task_role_arn: str | None = ... + """ + The short name or full Amazon Resource Name (ARN) of the IAM role that + containers in this daemon task can assume. All containers in this daemon + task are granted the permissions that are specified in this role. + """ + execution_role_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the task execution role that grants + the Amazon ECS container agent permission to make Amazon Web Services + API calls on your behalf. The task execution role is required for daemon + tasks that pull container images from Amazon ECR or send container logs + to CloudWatch. + """ + container_definitions: list[DaemonContainerDefinition] | None = ... + """ + A list of container definitions in JSON format that describe the + containers that make up your daemon task. + """ + cpu: str | None = ... + """ + The number of CPU units used by the daemon task. It can be expressed as + an integer using CPU units (for example, `1024`). + """ + memory: str | None = ... + """ + The amount of memory (in MiB) used by the daemon task. It can be + expressed as an integer using MiB (for example, `1024`). + """ + volumes: list[DaemonVolume] | None = ... + """ + A list of volume definitions in JSON format that containers in your + daemon task can use. + """ + tags: list[Tag] | None = ... + """ + The metadata that you apply to the daemon task definition to help you + categorize and organize them. Each tag consists of a key and an optional + value. You define both of them. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + pid_mode: str | None = ... + """ + The PID namespace mode for the daemon. The valid values are `none` and + `shared`. The default is `none`. + + If `none` is specified or no value is provided, the daemon runs with its + own PID namespace, isolated from other tasks. If `shared` is specified, + the daemon joins the host PID namespace, making it accessible to + non-daemon tasks that use `pidMode: "host"` or other daemons that use + `pidMode: "shared"`. + """ + ipc_mode: str | None = ... + """ + The IPC namespace mode for the daemon. The valid values are `none` and + `shared`. The default is `none`. + + If `none` is specified or no value is provided, the daemon runs with its + own IPC namespace, isolated from other tasks. If `shared` is specified, + the daemon joins the host IPC namespace, making it accessible to + non-daemon tasks that use `ipcMode: "host"` or other daemons that use + `ipcMode: "shared"`. + """ + +class RegisterDaemonTaskDefinitionInputDict(TypedDict, total=False): + """Dictionary form of `RegisterDaemonTaskDefinitionInput`.""" + + family: Required[str] + """ + You must specify a `family` for a daemon task definition. This family is + used as a name for your daemon task definition. Up to 255 letters + (uppercase and lowercase), numbers, underscores, and hyphens are + allowed. + """ + task_role_arn: str | None + """ + The short name or full Amazon Resource Name (ARN) of the IAM role that + containers in this daemon task can assume. All containers in this daemon + task are granted the permissions that are specified in this role. + """ + execution_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the task execution role that grants + the Amazon ECS container agent permission to make Amazon Web Services + API calls on your behalf. The task execution role is required for daemon + tasks that pull container images from Amazon ECR or send container logs + to CloudWatch. + """ + container_definitions: Required[ + Sequence[DaemonContainerDefinition | DaemonContainerDefinitionDict] + ] + """ + A list of container definitions in JSON format that describe the + containers that make up your daemon task. + """ + cpu: str | None + """ + The number of CPU units used by the daemon task. It can be expressed as + an integer using CPU units (for example, `1024`). + """ + memory: str | None + """ + The amount of memory (in MiB) used by the daemon task. It can be + expressed as an integer using MiB (for example, `1024`). + """ + volumes: Sequence[DaemonVolume | DaemonVolumeDict] | None + """ + A list of volume definitions in JSON format that containers in your + daemon task can use. + """ + tags: Sequence[Tag | TagDict] | None + """ + The metadata that you apply to the daemon task definition to help you + categorize and organize them. Each tag consists of a key and an optional + value. You define both of them. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + pid_mode: str | None + """ + The PID namespace mode for the daemon. The valid values are `none` and + `shared`. The default is `none`. + + If `none` is specified or no value is provided, the daemon runs with its + own PID namespace, isolated from other tasks. If `shared` is specified, + the daemon joins the host PID namespace, making it accessible to + non-daemon tasks that use `pidMode: "host"` or other daemons that use + `pidMode: "shared"`. + """ + ipc_mode: str | None + """ + The IPC namespace mode for the daemon. The valid values are `none` and + `shared`. The default is `none`. + + If `none` is specified or no value is provided, the daemon runs with its + own IPC namespace, isolated from other tasks. If `shared` is specified, + the daemon joins the host IPC namespace, making it accessible to + non-daemon tasks that use `ipcMode: "host"` or other daemons that use + `ipcMode: "shared"`. + """ + +@dataclass(kw_only=True) +class RegisterDaemonTaskDefinitionOutput(_SerdeShape): + """Dataclass for RegisterDaemonTaskDefinitionOutput structure.""" + + daemon_task_definition_arn: str | None = ... + """ + The full Amazon Resource Name (ARN) of the registered daemon task + definition. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RegisterTaskDefinitionInput(_SerdeShape): + """""" + + family: str | None = ... + """ + You must specify a `family` for a task definition. You can use it track + multiple versions of the same task definition. The `family` is used as a + name for your task definition. Up to 255 letters (uppercase and + lowercase), numbers, underscores, and hyphens are allowed. + """ + task_role_arn: str | None = ... + """ + The short name or full Amazon Resource Name (ARN) of the IAM role that + containers in this task can assume. All containers in this task are + granted the permissions that are specified in this role. For more + information, see [IAM Roles for + Tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + execution_role_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the task execution role that grants + the Amazon ECS container agent permission to make Amazon Web Services + API calls on your behalf. For informationabout the required IAM roles + for Amazon ECS, see [IAM roles for Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + network_mode: str | None = ... + """ + The Docker networking mode to use for the containers in the task. The + valid values are `none`, `bridge`, `awsvpc`, and `host`. If no network + mode is specified, the default is `bridge`. + + For Amazon ECS tasks on Fargate, the `awsvpc` network mode is required. + For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can + be used. For Amazon ECS tasks on Amazon EC2 Windows instances, + `` or `awsvpc` can be used. If the network mode is set to + `none`, you cannot specify port mappings in your container definitions, + and the tasks containers do not have external connectivity. The `host` + and `awsvpc` network modes offer the highest networking performance for + containers because they use the EC2 network stack instead of the + virtualized network stack provided by the `bridge` mode. + + With the `host` and `awsvpc` network modes, exposed container ports are + mapped directly to the corresponding host port (for the `host` network + mode) or the attached elastic network interface port (for the `awsvpc` + network mode), so you cannot take advantage of dynamic host port + mappings. + + Warning: + When using the `host` network mode, you should not run containers using + the root user (UID 0). It is considered best practice to use a non-root + user. + + If the network mode is `awsvpc`, the task is allocated an elastic + network interface, and you must specify a + [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + value when you create a service or run a task with the task definition. + For more information, see [Task + Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) + in the *Amazon Elastic Container Service Developer Guide*. + + If the network mode is `host`, you cannot run multiple instantiations of + the same task on a single container instance when port mappings are + used. + """ + container_definitions: list[ContainerDefinition] | None = ... + """ + A list of container definitions in JSON format that describe the + different containers that make up your task. + """ + volumes: list[Volume] | None = ... + """ + A list of volume definitions in JSON format that containers in your task + might use. + """ + placement_constraints: list[TaskDefinitionPlacementConstraint] | None = ... + """ + An array of placement constraint objects to use for the task. You can + specify a maximum of 10 constraints for each task. This limit includes + constraints in the task definition and those specified at runtime. + """ + requires_compatibilities: list[str] | None = ... + """ + The task launch type that Amazon ECS validates the task definition + against. A client exception is returned if the task definition doesn't + validate against the compatibilities specified. If no value is + specified, the parameter is omitted from the response. + """ + cpu: str | None = ... + """ + The number of CPU units used by the task. It can be expressed as an + integer using CPU units (for example, `1024`) or as a string using vCPUs + (for example, `1 vCPU` or `1 vcpu`) in a task definition. String values + are converted to an integer indicating the CPU units when the task + definition is registered. + + Note: + Task-level CPU and memory parameters are ignored for Windows containers. + We recommend specifying container-level resources for Windows + containers. + + If you're using the EC2 launch type or external launch type, this field + is optional. Supported values are between `128` CPU units (`0.125` + vCPUs) and `196608` CPU units (`192` vCPUs). If you do not specify a + value, the parameter is ignored. + + This field is required for Fargate. For information about the valid + values, see [Task + size](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size) + in the *Amazon Elastic Container Service Developer Guide*. + """ + memory: str | None = ... + """ + The amount of memory (in MiB) used by the task. It can be expressed as + an integer using MiB (for example ,`1024`) or as a string using GB (for + example, `1GB` or `1 GB`) in a task definition. String values are + converted to an integer indicating the MiB when the task definition is + registered. + + Note: + Task-level CPU and memory parameters are ignored for Windows containers. + We recommend specifying container-level resources for Windows + containers. + + If using the EC2 launch type, this field is optional. + + If using the Fargate launch type, this field is required and you must + use one of the following values. This determines your range of supported + values for the `cpu` parameter. + + The CPU units cannot be less than 1 vCPU when you use Windows containers + on Fargate. + + - 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available `cpu` values: 256 + (.25 vCPU) + + - 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available `cpu` + values: 512 (.5 vCPU) + + - 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 + (7 GB), 8192 (8 GB) - Available `cpu` values: 1024 (1 vCPU) + + - Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - + Available `cpu` values: 2048 (2 vCPU) + + - Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - + Available `cpu` values: 4096 (4 vCPU) + + - Between 16 GB and 60 GB in 4 GB increments - Available `cpu` values: + 8192 (8 vCPU) + + This option requires Linux platform `1.4.0` or later. + + - Between 32GB and 120 GB in 8 GB increments - Available `cpu` values: + 16384 (16 vCPU) + + This option requires Linux platform `1.4.0` or later. + """ + tags: list[Tag] | None = ... + """ + The metadata that you apply to the task definition to help you + categorize and organize them. Each tag consists of a key and an optional + value. You define both of them. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + pid_mode: str | None = ... + """ + The process namespace to use for the containers in the task. The valid + values are `host` or `task`. On Fargate for Linux containers, the only + valid value is `task`. For example, monitoring sidecars might need + `pidMode` to access information about other containers running in the + same task. + + If `host` is specified, all containers within the tasks that specified + the `host` PID mode on the same container instance share the same + process namespace with the host Amazon EC2 instance. + + If `task` is specified, all containers within the specified task share + the same process namespace. + + If no value is specified, the The default is a private namespace for + each container. + + If the `host` PID mode is used, there's a heightened risk of undesired + process namespace exposure. + + Note: + This parameter is not supported for Windows containers. + Note: + This parameter is only supported for tasks that are hosted on Fargate if + the tasks are using platform version `1.4.0` or later (Linux). This + isn't supported for Windows containers on Fargate. + """ + ipc_mode: str | None = ... + """ + The IPC resource namespace to use for the containers in the task. The + valid values are `host`, `task`, or `none`. If `host` is specified, then + all containers within the tasks that specified the `host` IPC mode on + the same container instance share the same IPC resources with the host + Amazon EC2 instance. If `task` is specified, all containers within the + specified task share the same IPC resources. If `none` is specified, + then IPC resources within the containers of a task are private and not + shared with other containers in a task or on the container instance. If + no value is specified, then the IPC resource namespace sharing depends + on the Docker daemon setting on the container instance. + + If the `host` IPC mode is used, be aware that there is a heightened risk + of undesired IPC namespace expose. + + If you are setting namespaced kernel parameters using `systemControls` + for the containers in the task, the following will apply to your IPC + resource namespace. For more information, see [System + Controls](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) + in the *Amazon Elastic Container Service Developer Guide*. + + - For tasks that use the `host` IPC mode, IPC namespace related + `systemControls` are not supported. + + - For tasks that use the `task` IPC mode, IPC namespace related + `systemControls` will apply to all containers within a task. + + Note: + This parameter is not supported for Windows containers or tasks run on + Fargate. + """ + proxy_configuration: ProxyConfiguration | None = ... + """ + The configuration details for the App Mesh proxy. + + For tasks hosted on Amazon EC2 instances, the container instances + require at least version `1.26.0` of the container agent and at least + version `1.26.0-1` of the `ecs-init` package to use a proxy + configuration. If your container instances are launched from the Amazon + ECS-optimized AMI version `20190301` or later, then they contain the + required versions of the container agent and `ecs-init`. For more + information, see [Amazon ECS-optimized AMI + versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-versions.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + inference_accelerators: list[InferenceAccelerator] | None = ... + """ + The Elastic Inference accelerators to use for the containers in the + task. + """ + ephemeral_storage: EphemeralStorage | None = ... """ + The amount of ephemeral storage to allocate for the task. This parameter + is used to expand the total amount of ephemeral storage available, + beyond the default amount, for tasks hosted on Fargate. For more + information, see [Using data volumes in + tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) + in the *Amazon ECS Developer Guide*. -@dataclass(kw_only=True) -class PutAttributesInput(_SerdeShape): - """""" + Note: + For tasks using the Fargate launch type, the task requires the following + platforms: - cluster: str | None = ... + - Linux platform version `1.4.0` or later. """ - The short name or full Amazon Resource Name (ARN) of the cluster that - contains the resource to apply attributes. If you do not specify a - cluster, the default cluster is assumed. + runtime_platform: RuntimePlatform | None = ... + """The operating system that your tasks definitions run on.""" + enable_fault_injection: bool | None = ... """ - attributes: list[Attribute] | None = ... + Enables fault injection when you register your task definition and + allows for fault injection requests to be accepted from the task's + containers. The default value is `false`. """ - The attributes to apply to your resource. You can specify up to 10 - custom attributes for each resource. You can specify up to 10 attributes - in a single call. + trusted_execution_configuration: TrustedExecutionConfiguration | None = ... """ + The trusted execution configuration for tasks that use this task + definition, including the isolation mode and, if configured, an + attestation policy. -@dataclass(kw_only=True) -class PutAttributesOutput(_SerdeShape): - """""" - - attributes: list[Attribute] | None = ... - """The attributes applied to your resource.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Note: + Trusted execution is supported only for Amazon ECS Managed Instances. """ -@dataclass(kw_only=True) -class PutClusterCapacityProvidersInput(_SerdeShape): - """Dataclass for PutClusterCapacityProvidersInput structure.""" +class RegisterTaskDefinitionInputDict(TypedDict, total=False): + """Dictionary form of `RegisterTaskDefinitionInput`.""" - cluster: str | None = ... + family: Required[str] """ - The short name or full Amazon Resource Name (ARN) of the cluster to - modify the capacity provider settings for. If you don't specify a - cluster, the default cluster is assumed. + You must specify a `family` for a task definition. You can use it track + multiple versions of the same task definition. The `family` is used as a + name for your task definition. Up to 255 letters (uppercase and + lowercase), numbers, underscores, and hyphens are allowed. """ - capacity_providers: list[str] | None = ... + task_role_arn: str | None """ - The name of one or more capacity providers to associate with the - cluster. - - If specifying a capacity provider that uses an Auto Scaling group, the - capacity provider must already be created. New capacity providers can be - created with the - [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) - API operation. - - To use a Fargate capacity provider, specify either the `FARGATE` or - `FARGATE_SPOT` capacity providers. The Fargate capacity providers are - available to all accounts and only need to be associated with a cluster - to be used. + The short name or full Amazon Resource Name (ARN) of the IAM role that + containers in this task can assume. All containers in this task are + granted the permissions that are specified in this role. For more + information, see [IAM Roles for + Tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - default_capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + execution_role_arn: str | None """ - The capacity provider strategy to use by default for the cluster. - - When creating a service or running a task on a cluster, if no capacity - provider or launch type is specified then the default capacity provider - strategy for the cluster is used. + The Amazon Resource Name (ARN) of the task execution role that grants + the Amazon ECS container agent permission to make Amazon Web Services + API calls on your behalf. For informationabout the required IAM roles + for Amazon ECS, see [IAM roles for Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + network_mode: str | None + """ + The Docker networking mode to use for the containers in the task. The + valid values are `none`, `bridge`, `awsvpc`, and `host`. If no network + mode is specified, the default is `bridge`. - A capacity provider strategy consists of one or more capacity providers - along with the `base` and `weight` to assign to them. A capacity - provider must be associated with the cluster to be used in a capacity - provider strategy. The - [PutClusterCapacityProviders](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html) - API is used to associate a capacity provider with a cluster. Only - capacity providers with an `ACTIVE` or `UPDATING` status can be used. + For Amazon ECS tasks on Fargate, the `awsvpc` network mode is required. + For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can + be used. For Amazon ECS tasks on Amazon EC2 Windows instances, + `` or `awsvpc` can be used. If the network mode is set to + `none`, you cannot specify port mappings in your container definitions, + and the tasks containers do not have external connectivity. The `host` + and `awsvpc` network modes offer the highest networking performance for + containers because they use the EC2 network stack instead of the + virtualized network stack provided by the `bridge` mode. - If specifying a capacity provider that uses an Auto Scaling group, the - capacity provider must already be created. New capacity providers can be - created with the - [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) - API operation. + With the `host` and `awsvpc` network modes, exposed container ports are + mapped directly to the corresponding host port (for the `host` network + mode) or the attached elastic network interface port (for the `awsvpc` + network mode), so you cannot take advantage of dynamic host port + mappings. - To use a Fargate capacity provider, specify either the `FARGATE` or - `FARGATE_SPOT` capacity providers. The Fargate capacity providers are - available to all accounts and only need to be associated with a cluster - to be used. - """ + Warning: + When using the `host` network mode, you should not run containers using + the root user (UID 0). It is considered best practice to use a non-root + user. -@dataclass(kw_only=True) -class PutClusterCapacityProvidersOutput(_SerdeShape): - """Dataclass for PutClusterCapacityProvidersOutput structure.""" + If the network mode is `awsvpc`, the task is allocated an elastic + network interface, and you must specify a + [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) + value when you create a service or run a task with the task definition. + For more information, see [Task + Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) + in the *Amazon Elastic Container Service Developer Guide*. - cluster: Cluster | None = ... - """Details about the cluster.""" - response_metadata: ResponseMetadata = ... + If the network mode is `host`, you cannot run multiple instantiations of + the same task on a single container instance when port mappings are + used. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + container_definitions: Required[ + Sequence[ContainerDefinition | ContainerDefinitionDict] + ] """ - -@dataclass(kw_only=True) -class RegisterContainerInstanceInput(_SerdeShape): - """""" - - cluster: str | None = ... + A list of container definitions in JSON format that describe the + different containers that make up your task. """ - The short name or full Amazon Resource Name (ARN) of the cluster to - register your container instance with. If you do not specify a cluster, - the default cluster is assumed. + volumes: Sequence[Volume | VolumeDict] | None """ - instance_identity_document: str | None = ... + A list of volume definitions in JSON format that containers in your task + might use. """ - The instance identity document for the EC2 instance to register. This - document can be found by running the following command from the - instance: - `curl http://169.254.169.254/latest/dynamic/instance-identity/document/` + placement_constraints: ( + Sequence[ + TaskDefinitionPlacementConstraint | TaskDefinitionPlacementConstraintDict + ] + | None + ) """ - instance_identity_document_signature: str | None = ... + An array of placement constraint objects to use for the task. You can + specify a maximum of 10 constraints for each task. This limit includes + constraints in the task definition and those specified at runtime. """ - The instance identity document signature for the EC2 instance to - register. This signature can be found by running the following command - from the instance: - `curl http://169.254.169.254/latest/dynamic/instance-identity/signature/` + requires_compatibilities: Sequence[str] | None """ - total_resources: list[Resource] | None = ... - """The resources available on the instance.""" - version_info: VersionInfo | None = ... + The task launch type that Amazon ECS validates the task definition + against. A client exception is returned if the task definition doesn't + validate against the compatibilities specified. If no value is + specified, the parameter is omitted from the response. """ - The version information for the Amazon ECS container agent and Docker - daemon that runs on the container instance. + cpu: str | None """ - container_instance_arn: str | None = ... - """The ARN of the container instance (if it was previously registered).""" - attributes: list[Attribute] | None = ... - """The container instance attributes that this container instance supports.""" - platform_devices: list[PlatformDevice] | None = ... + The number of CPU units used by the task. It can be expressed as an + integer using CPU units (for example, `1024`) or as a string using vCPUs + (for example, `1 vCPU` or `1 vcpu`) in a task definition. String values + are converted to an integer indicating the CPU units when the task + definition is registered. + + Note: + Task-level CPU and memory parameters are ignored for Windows containers. + We recommend specifying container-level resources for Windows + containers. + + If you're using the EC2 launch type or external launch type, this field + is optional. Supported values are between `128` CPU units (`0.125` + vCPUs) and `196608` CPU units (`192` vCPUs). If you do not specify a + value, the parameter is ignored. + + This field is required for Fargate. For information about the valid + values, see [Task + size](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size) + in the *Amazon Elastic Container Service Developer Guide*. """ - The devices that are available on the container instance. The supported - device types are GPUs and Neuron devices. + memory: str | None + """ + The amount of memory (in MiB) used by the task. It can be expressed as + an integer using MiB (for example ,`1024`) or as a string using GB (for + example, `1GB` or `1 GB`) in a task definition. String values are + converted to an integer indicating the MiB when the task definition is + registered. + + Note: + Task-level CPU and memory parameters are ignored for Windows containers. + We recommend specifying container-level resources for Windows + containers. + + If using the EC2 launch type, this field is optional. + + If using the Fargate launch type, this field is required and you must + use one of the following values. This determines your range of supported + values for the `cpu` parameter. + + The CPU units cannot be less than 1 vCPU when you use Windows containers + on Fargate. + + - 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available `cpu` values: 256 + (.25 vCPU) + + - 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available `cpu` + values: 512 (.5 vCPU) + + - 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 + (7 GB), 8192 (8 GB) - Available `cpu` values: 1024 (1 vCPU) + + - Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - + Available `cpu` values: 2048 (2 vCPU) + + - Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - + Available `cpu` values: 4096 (4 vCPU) + + - Between 16 GB and 60 GB in 4 GB increments - Available `cpu` values: + 8192 (8 vCPU) + + This option requires Linux platform `1.4.0` or later. + + - Between 32GB and 120 GB in 8 GB increments - Available `cpu` values: + 16384 (16 vCPU) + + This option requires Linux platform `1.4.0` or later. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ - The metadata that you apply to the container instance to help you + The metadata that you apply to the task definition to help you categorize and organize them. Each tag consists of a key and an optional - value. You define both. + value. You define both of them. The following basic restrictions apply to tags: @@ -4959,639 +8619,656 @@ class RegisterContainerInstanceInput(_SerdeShape): with this prefix. Tags with this prefix do not count against your tags per resource limit. """ + pid_mode: str | None + """ + The process namespace to use for the containers in the task. The valid + values are `host` or `task`. On Fargate for Linux containers, the only + valid value is `task`. For example, monitoring sidecars might need + `pidMode` to access information about other containers running in the + same task. -@dataclass(kw_only=True) -class RegisterContainerInstanceOutput(_SerdeShape): - """""" + If `host` is specified, all containers within the tasks that specified + the `host` PID mode on the same container instance share the same + process namespace with the host Amazon EC2 instance. - container_instance: ContainerInstance | None = ... - """The container instance that was registered.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + If `task` is specified, all containers within the specified task share + the same process namespace. -@dataclass(kw_only=True) -class RegisterDaemonTaskDefinitionInput(_SerdeShape): - """Dataclass for RegisterDaemonTaskDefinitionInput structure.""" + If no value is specified, the The default is a private namespace for + each container. - family: str | None = ... - """ - You must specify a `family` for a daemon task definition. This family is - used as a name for your daemon task definition. Up to 255 letters - (uppercase and lowercase), numbers, underscores, and hyphens are - allowed. + If the `host` PID mode is used, there's a heightened risk of undesired + process namespace exposure. + + Note: + This parameter is not supported for Windows containers. + Note: + This parameter is only supported for tasks that are hosted on Fargate if + the tasks are using platform version `1.4.0` or later (Linux). This + isn't supported for Windows containers on Fargate. """ - task_role_arn: str | None = ... + ipc_mode: str | None """ - The short name or full Amazon Resource Name (ARN) of the IAM role that - containers in this daemon task can assume. All containers in this daemon - task are granted the permissions that are specified in this role. + The IPC resource namespace to use for the containers in the task. The + valid values are `host`, `task`, or `none`. If `host` is specified, then + all containers within the tasks that specified the `host` IPC mode on + the same container instance share the same IPC resources with the host + Amazon EC2 instance. If `task` is specified, all containers within the + specified task share the same IPC resources. If `none` is specified, + then IPC resources within the containers of a task are private and not + shared with other containers in a task or on the container instance. If + no value is specified, then the IPC resource namespace sharing depends + on the Docker daemon setting on the container instance. + + If the `host` IPC mode is used, be aware that there is a heightened risk + of undesired IPC namespace expose. + + If you are setting namespaced kernel parameters using `systemControls` + for the containers in the task, the following will apply to your IPC + resource namespace. For more information, see [System + Controls](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) + in the *Amazon Elastic Container Service Developer Guide*. + + - For tasks that use the `host` IPC mode, IPC namespace related + `systemControls` are not supported. + + - For tasks that use the `task` IPC mode, IPC namespace related + `systemControls` will apply to all containers within a task. + + Note: + This parameter is not supported for Windows containers or tasks run on + Fargate. """ - execution_role_arn: str | None = ... + proxy_configuration: ProxyConfiguration | ProxyConfigurationDict | None """ - The Amazon Resource Name (ARN) of the task execution role that grants - the Amazon ECS container agent permission to make Amazon Web Services - API calls on your behalf. The task execution role is required for daemon - tasks that pull container images from Amazon ECR or send container logs - to CloudWatch. + The configuration details for the App Mesh proxy. + + For tasks hosted on Amazon EC2 instances, the container instances + require at least version `1.26.0` of the container agent and at least + version `1.26.0-1` of the `ecs-init` package to use a proxy + configuration. If your container instances are launched from the Amazon + ECS-optimized AMI version `20190301` or later, then they contain the + required versions of the container agent and `ecs-init`. For more + information, see [Amazon ECS-optimized AMI + versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-versions.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - container_definitions: list[DaemonContainerDefinition] | None = ... + inference_accelerators: ( + Sequence[InferenceAccelerator | InferenceAcceleratorDict] | None + ) """ - A list of container definitions in JSON format that describe the - containers that make up your daemon task. + The Elastic Inference accelerators to use for the containers in the + task. """ - cpu: str | None = ... + ephemeral_storage: EphemeralStorage | EphemeralStorageDict | None """ - The number of CPU units used by the daemon task. It can be expressed as - an integer using CPU units (for example, `1024`). + The amount of ephemeral storage to allocate for the task. This parameter + is used to expand the total amount of ephemeral storage available, + beyond the default amount, for tasks hosted on Fargate. For more + information, see [Using data volumes in + tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) + in the *Amazon ECS Developer Guide*. + + Note: + For tasks using the Fargate launch type, the task requires the following + platforms: + + - Linux platform version `1.4.0` or later. """ - memory: str | None = ... + runtime_platform: RuntimePlatform | RuntimePlatformDict | None + """The operating system that your tasks definitions run on.""" + enable_fault_injection: bool | None """ - The amount of memory (in MiB) used by the daemon task. It can be - expressed as an integer using MiB (for example, `1024`). + Enables fault injection when you register your task definition and + allows for fault injection requests to be accepted from the task's + containers. The default value is `false`. """ - volumes: list[DaemonVolume] | None = ... + trusted_execution_configuration: ( + TrustedExecutionConfiguration | TrustedExecutionConfigurationDict | None + ) """ - A list of volume definitions in JSON format that containers in your - daemon task can use. + The trusted execution configuration for tasks that use this task + definition, including the isolation mode and, if configured, an + attestation policy. + + Note: + Trusted execution is supported only for Amazon ECS Managed Instances. """ + +@dataclass(kw_only=True) +class RegisterTaskDefinitionOutput(_SerdeShape): + """""" + + task_definition: TaskDefinition | None = ... + """The full description of the registered task definition.""" tags: list[Tag] | None = ... + """The list of tags associated with the task definition.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - The metadata that you apply to the daemon task definition to help you - categorize and organize them. Each tag consists of a key and an optional - value. You define both of them. - - The following basic restrictions apply to tags: - - Maximum number of tags per resource - 50 +@dataclass(kw_only=True) +class RepositoryCredentials(_SerdeShape): + """The repository credentials for private registry authentication.""" - - For each resource, each tag key must be unique, and each tag key can - have only one value. + credentials_parameter: str + """ + The Amazon Resource Name (ARN) of the secret containing the private + repository credentials. - - Maximum key length - 128 Unicode characters in UTF-8 + Note: + When you use the Amazon ECS API, CLI, or Amazon Web Services SDK, if the + secret exists in the same Region as the task that you're launching then + you can use either the full ARN or the name of the secret. When you use + the Amazon Web Services Management Console, you must specify the full + ARN of the secret. + """ - - Maximum value length - 256 Unicode characters in UTF-8 +class RepositoryCredentialsDict(TypedDict, total=False): + """Dictionary form of `RepositoryCredentials`.""" - - If your tagging schema is used across multiple services and resources, - remember that other services may have restrictions on allowed - characters. Generally allowed characters are: letters, numbers, and - spaces representable in UTF-8, and the following characters: + - = . - _ : / @. + credentials_parameter: Required[str] + """ + The Amazon Resource Name (ARN) of the secret containing the private + repository credentials. - - Tag keys and values are case-sensitive. + Note: + When you use the Amazon ECS API, CLI, or Amazon Web Services SDK, if the + secret exists in the same Region as the task that you're launching then + you can use either the full ARN or the name of the secret. When you use + the Amazon Web Services Management Console, you must specify the full + ARN of the secret. + """ - - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of - such as a prefix for either keys or values as it is reserved for - Amazon Web Services use. You cannot edit or delete tag keys or values - with this prefix. Tags with this prefix do not count against your tags - per resource limit. +@dataclass(kw_only=True) +class ResolvedConfiguration(_SerdeShape): """ - pid_mode: str | None = ... + The resolved configuration for a service revision, which contains the + actual resources your service revision uses, such as which target groups + serve traffic. """ - The PID namespace mode for the daemon. The valid values are `none` and - `shared`. The default is `none`. - If `none` is specified or no value is provided, the daemon runs with its - own PID namespace, isolated from other tasks. If `shared` is specified, - the daemon joins the host PID namespace, making it accessible to - non-daemon tasks that use `pidMode: "host"` or other daemons that use - `pidMode: "shared"`. + load_balancers: list[ServiceRevisionLoadBalancer] | None = ... """ - ipc_mode: str | None = ... + The resolved load balancer configuration for the service revision. This + includes information about which target groups serve traffic and which + listener rules direct traffic to them. """ - The IPC namespace mode for the daemon. The valid values are `none` and - `shared`. The default is `none`. - - If `none` is specified or no value is provided, the daemon runs with its - own IPC namespace, isolated from other tasks. If `shared` is specified, - the daemon joins the host IPC namespace, making it accessible to - non-daemon tasks that use `ipcMode: "host"` or other daemons that use - `ipcMode: "shared"`. + vpc_lattice_configurations: ( + list[ServiceRevisionVpcLatticeConfiguration] | None + ) = ... + """ + The resolved VPC Lattice configuration for the service revision. This + includes information about which target groups serve traffic and which + listener rules direct traffic to them. """ @dataclass(kw_only=True) -class RegisterDaemonTaskDefinitionOutput(_SerdeShape): - """Dataclass for RegisterDaemonTaskDefinitionOutput structure.""" +class Resource(_SerdeShape): + """Describes the resources available for a container instance.""" - daemon_task_definition_arn: str | None = ... + name: str | None = ... """ - The full Amazon Resource Name (ARN) of the registered daemon task - definition. + The name of the resource, such as `CPU`, `MEMORY`, `PORTS`, `PORTS_UDP`, + or a user-defined resource. """ - response_metadata: ResponseMetadata = ... + type: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The type of the resource. Valid values: `INTEGER`, `DOUBLE`, `LONG`, or + `STRINGSET`. + """ + double_value: float = ... """ - -@dataclass(kw_only=True) -class RegisterTaskDefinitionInput(_SerdeShape): - """""" - - family: str | None = ... + When the `doubleValue` type is set, the value of the resource must be a + double precision floating-point type. """ - You must specify a `family` for a task definition. You can use it track - multiple versions of the same task definition. The `family` is used as a - name for your task definition. Up to 255 letters (uppercase and - lowercase), numbers, underscores, and hyphens are allowed. + long_value: int = ... """ - task_role_arn: str | None = ... + When the `longValue` type is set, the value of the resource must be an + extended precision floating-point type. """ - The short name or full Amazon Resource Name (ARN) of the IAM role that - containers in this task can assume. All containers in this task are - granted the permissions that are specified in this role. For more - information, see [IAM Roles for - Tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) - in the *Amazon Elastic Container Service Developer Guide*. + integer_value: int = ... """ - execution_role_arn: str | None = ... + When the `integerValue` type is set, the value of the resource must be + an integer. """ - The Amazon Resource Name (ARN) of the task execution role that grants - the Amazon ECS container agent permission to make Amazon Web Services - API calls on your behalf. For informationabout the required IAM roles - for Amazon ECS, see [IAM roles for Amazon - ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) - in the *Amazon Elastic Container Service Developer Guide*. + string_set_value: list[str] | None = ... """ - network_mode: str | None = ... + When the `stringSetValue` type is set, the value of the resource must be + a string type. """ - The Docker networking mode to use for the containers in the task. The - valid values are `none`, `bridge`, `awsvpc`, and `host`. If no network - mode is specified, the default is `bridge`. - - For Amazon ECS tasks on Fargate, the `awsvpc` network mode is required. - For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can - be used. For Amazon ECS tasks on Amazon EC2 Windows instances, - `` or `awsvpc` can be used. If the network mode is set to - `none`, you cannot specify port mappings in your container definitions, - and the tasks containers do not have external connectivity. The `host` - and `awsvpc` network modes offer the highest networking performance for - containers because they use the EC2 network stack instead of the - virtualized network stack provided by the `bridge` mode. - - With the `host` and `awsvpc` network modes, exposed container ports are - mapped directly to the corresponding host port (for the `host` network - mode) or the attached elastic network interface port (for the `awsvpc` - network mode), so you cannot take advantage of dynamic host port - mappings. - Warning: - When using the `host` network mode, you should not run containers using - the root user (UID 0). It is considered best practice to use a non-root - user. - - If the network mode is `awsvpc`, the task is allocated an elastic - network interface, and you must specify a - [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) - value when you create a service or run a task with the task definition. - For more information, see [Task - Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) - in the *Amazon Elastic Container Service Developer Guide*. +class ResourceDict(TypedDict, total=False): + """Dictionary form of `Resource`.""" - If the network mode is `host`, you cannot run multiple instantiations of - the same task on a single container instance when port mappings are - used. + name: str | None """ - container_definitions: list[ContainerDefinition] | None = ... + The name of the resource, such as `CPU`, `MEMORY`, `PORTS`, `PORTS_UDP`, + or a user-defined resource. """ - A list of container definitions in JSON format that describe the - different containers that make up your task. + type: str | None """ - volumes: list[Volume] | None = ... + The type of the resource. Valid values: `INTEGER`, `DOUBLE`, `LONG`, or + `STRINGSET`. """ - A list of volume definitions in JSON format that containers in your task - might use. + double_value: float | None """ - placement_constraints: list[TaskDefinitionPlacementConstraint] | None = ... + When the `doubleValue` type is set, the value of the resource must be a + double precision floating-point type. """ - An array of placement constraint objects to use for the task. You can - specify a maximum of 10 constraints for each task. This limit includes - constraints in the task definition and those specified at runtime. + long_value: int | None """ - requires_compatibilities: list[str] | None = ... + When the `longValue` type is set, the value of the resource must be an + extended precision floating-point type. """ - The task launch type that Amazon ECS validates the task definition - against. A client exception is returned if the task definition doesn't - validate against the compatibilities specified. If no value is - specified, the parameter is omitted from the response. + integer_value: int | None """ - cpu: str | None = ... + When the `integerValue` type is set, the value of the resource must be + an integer. """ - The number of CPU units used by the task. It can be expressed as an - integer using CPU units (for example, `1024`) or as a string using vCPUs - (for example, `1 vCPU` or `1 vcpu`) in a task definition. String values - are converted to an integer indicating the CPU units when the task - definition is registered. - - Note: - Task-level CPU and memory parameters are ignored for Windows containers. - We recommend specifying container-level resources for Windows - containers. - - If you're using the EC2 launch type or external launch type, this field - is optional. Supported values are between `128` CPU units (`0.125` - vCPUs) and `196608` CPU units (`192` vCPUs). If you do not specify a - value, the parameter is ignored. - - This field is required for Fargate. For information about the valid - values, see [Task - size](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size) - in the *Amazon Elastic Container Service Developer Guide*. + string_set_value: Sequence[str] | None """ - memory: str | None = ... + When the `stringSetValue` type is set, the value of the resource must be + a string type. """ - The amount of memory (in MiB) used by the task. It can be expressed as - an integer using MiB (for example ,`1024`) or as a string using GB (for - example, `1GB` or `1 GB`) in a task definition. String values are - converted to an integer indicating the MiB when the task definition is - registered. - - Note: - Task-level CPU and memory parameters are ignored for Windows containers. - We recommend specifying container-level resources for Windows - containers. - - If using the EC2 launch type, this field is optional. - If using the Fargate launch type, this field is required and you must - use one of the following values. This determines your range of supported - values for the `cpu` parameter. +@dataclass(kw_only=True) +class ResourceInUseException(ServiceError, _SerdeShape): + """The specified resource is in-use and can't be removed.""" - The CPU units cannot be less than 1 vCPU when you use Windows containers - on Fargate. + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - - 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available `cpu` values: 256 - (.25 vCPU) +class ResourceManagementType(UnknownEnumMixin, StrEnum): + CUSTOMER = "CUSTOMER" + ECS = "ECS" - - 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available `cpu` - values: 512 (.5 vCPU) +@dataclass(kw_only=True) +class ResourceNotFoundException(ServiceError, _SerdeShape): + """The specified resource wasn't found.""" - - 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 - (7 GB), 8192 (8 GB) - Available `cpu` values: 1024 (1 vCPU) + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - - Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - - Available `cpu` values: 2048 (2 vCPU) +@dataclass(kw_only=True) +class ResourceRequirement(_SerdeShape): + """ + The type and amount of a resource to assign to a container. The + supported resource types are GPUs, Neuron devices, and Elastic Inference + accelerators. For more information, see [Working with GPUs on Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-gpu.html) + or [Working with Amazon Elastic Inference on Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-inference.html) + in the *Amazon Elastic Container Service Developer Guide* + """ - - Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - - Available `cpu` values: 4096 (4 vCPU) + value: str = ... + """ + The value for the specified resource type. - - Between 16 GB and 60 GB in 4 GB increments - Available `cpu` values: - 8192 (8 vCPU) + You must specify this parameter unless the type is `GPU` and you specify + `sharingStrategy`. - This option requires Linux platform `1.4.0` or later. + When the type is `GPU`, the value is the number of physical `GPUs` the + Amazon ECS container agent reserves for the container. The number of + GPUs that's reserved for all containers in a task can't exceed the + number of available GPUs on the container instance that the task is + launched on. You can also specify `ALL` to allocate all available GPUs + on the instance to the container. - - Between 32GB and 120 GB in 8 GB increments - Available `cpu` values: - 16384 (16 vCPU) + When the type is `NeuronDevice`, the value must be `ALL`. This allocates + all available Neuron devices on the instance to the container. Only one + container in a task can specify `NeuronDevice` resources. This resource + type is only supported on Managed Instances. - This option requires Linux platform `1.4.0` or later. + When the type is `InferenceAccelerator`, the `value` matches the + `deviceName` for an + [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) + specified in a task definition. """ - tags: list[Tag] | None = ... + type: str + """The type of resource to assign to a container.""" + sharing_strategy: SharingStrategy | None = ... """ - The metadata that you apply to the task definition to help you - categorize and organize them. Each tag consists of a key and an optional - value. You define both of them. - - The following basic restrictions apply to tags: + The strategy that the container uses to share a GPU with other + containers. Specify a sharing strategy only when the type is `GPU`. For + a GPU resource requirement, specify either `value` or `sharingStrategy`, + but not both. If you don't specify a sharing strategy, the container + has exclusive use of each GPU that Amazon ECS assigns to it. The + containers in a task that request GPUs must all use the same option. - - Maximum number of tags per resource - 50 + You can use GPU sharing with tasks that run on Amazon EC2 instances or + Amazon ECS Managed Instances. Task definitions that require `EXTERNAL` + compatibility don't support GPU sharing. + """ - - For each resource, each tag key must be unique, and each tag key can - have only one value. +class ResourceRequirementDict(TypedDict, total=False): + """Dictionary form of `ResourceRequirement`.""" - - Maximum key length - 128 Unicode characters in UTF-8 + value: str | None + """ + The value for the specified resource type. - - Maximum value length - 256 Unicode characters in UTF-8 + You must specify this parameter unless the type is `GPU` and you specify + `sharingStrategy`. - - If your tagging schema is used across multiple services and resources, - remember that other services may have restrictions on allowed - characters. Generally allowed characters are: letters, numbers, and - spaces representable in UTF-8, and the following characters: + - = . - _ : / @. + When the type is `GPU`, the value is the number of physical `GPUs` the + Amazon ECS container agent reserves for the container. The number of + GPUs that's reserved for all containers in a task can't exceed the + number of available GPUs on the container instance that the task is + launched on. You can also specify `ALL` to allocate all available GPUs + on the instance to the container. - - Tag keys and values are case-sensitive. + When the type is `NeuronDevice`, the value must be `ALL`. This allocates + all available Neuron devices on the instance to the container. Only one + container in a task can specify `NeuronDevice` resources. This resource + type is only supported on Managed Instances. - - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of - such as a prefix for either keys or values as it is reserved for - Amazon Web Services use. You cannot edit or delete tag keys or values - with this prefix. Tags with this prefix do not count against your tags - per resource limit. + When the type is `InferenceAccelerator`, the `value` matches the + `deviceName` for an + [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) + specified in a task definition. """ - pid_mode: str | None = ... + type: Required[str] + """The type of resource to assign to a container.""" + sharing_strategy: SharingStrategy | SharingStrategyDict | None """ - The process namespace to use for the containers in the task. The valid - values are `host` or `task`. On Fargate for Linux containers, the only - valid value is `task`. For example, monitoring sidecars might need - `pidMode` to access information about other containers running in the - same task. - - If `host` is specified, all containers within the tasks that specified - the `host` PID mode on the same container instance share the same - process namespace with the host Amazon EC2 instance. + The strategy that the container uses to share a GPU with other + containers. Specify a sharing strategy only when the type is `GPU`. For + a GPU resource requirement, specify either `value` or `sharingStrategy`, + but not both. If you don't specify a sharing strategy, the container + has exclusive use of each GPU that Amazon ECS assigns to it. The + containers in a task that request GPUs must all use the same option. - If `task` is specified, all containers within the specified task share - the same process namespace. + You can use GPU sharing with tasks that run on Amazon EC2 instances or + Amazon ECS Managed Instances. Task definitions that require `EXTERNAL` + compatibility don't support GPU sharing. + """ - If no value is specified, the The default is a private namespace for - each container. +class ResourceType(UnknownEnumMixin, StrEnum): + GPU = "GPU" + INFERENCE_ACCELERATOR = "InferenceAccelerator" + NEURON_DEVICE = "NeuronDevice" - If the `host` PID mode is used, there's a heightened risk of undesired - process namespace exposure. +@dataclass(kw_only=True) +class Rollback(_SerdeShape): + """Information about the service deployment rollback.""" - Note: - This parameter is not supported for Windows containers. - Note: - This parameter is only supported for tasks that are hosted on Fargate if - the tasks are using platform version `1.4.0` or later (Linux). This - isn't supported for Windows containers on Fargate. + reason: str | None = ... """ - ipc_mode: str | None = ... + The reason the rollback happened. For example, the circuit breaker + initiated the rollback operation. """ - The IPC resource namespace to use for the containers in the task. The - valid values are `host`, `task`, or `none`. If `host` is specified, then - all containers within the tasks that specified the `host` IPC mode on - the same container instance share the same IPC resources with the host - Amazon EC2 instance. If `task` is specified, all containers within the - specified task share the same IPC resources. If `none` is specified, - then IPC resources within the containers of a task are private and not - shared with other containers in a task or on the container instance. If - no value is specified, then the IPC resource namespace sharing depends - on the Docker daemon setting on the container instance. + started_at: datetime | None = ... + """ + Time time that the rollback started. The format is yyyy-MM-dd + HH:mm:ss.SSSSSS. + """ + service_revision_arn: str | None = ... + """The ARN of the service revision deployed as part of the rollback.""" - If the `host` IPC mode is used, be aware that there is a heightened risk - of undesired IPC namespace expose. +@dataclass(kw_only=True) +class RunTaskInput(_SerdeShape): + """""" - If you are setting namespaced kernel parameters using `systemControls` - for the containers in the task, the following will apply to your IPC - resource namespace. For more information, see [System - Controls](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) - in the *Amazon Elastic Container Service Developer Guide*. + capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + """ + The capacity provider strategy to use for the task. - - For tasks that use the `host` IPC mode, IPC namespace related - `systemControls` are not supported. + Note: + If you want to use Amazon ECS Managed Instances, you must use the + `capacityProviderStrategy` request parameter and omit the `launchType` + request parameter. - - For tasks that use the `task` IPC mode, IPC namespace related - `systemControls` will apply to all containers within a task. + If a `capacityProviderStrategy` is specified, the `launchType` parameter + must be omitted. If no `capacityProviderStrategy` or `launchType` is + specified, the `defaultCapacityProviderStrategy` for the cluster is + used. - Note: - This parameter is not supported for Windows containers or tasks run on - Fargate. + When you use cluster auto scaling, you must specify + `capacityProviderStrategy` and not `launchType`. + + A capacity provider strategy can contain a maximum of 20 capacity + providers. """ - proxy_configuration: ProxyConfiguration | None = ... + cluster: str | None = ... """ - The configuration details for the App Mesh proxy. + The short name or full Amazon Resource Name (ARN) of the cluster to run + your task on. If you do not specify a cluster, the default cluster is + assumed. - For tasks hosted on Amazon EC2 instances, the container instances - require at least version `1.26.0` of the container agent and at least - version `1.26.0-1` of the `ecs-init` package to use a proxy - configuration. If your container instances are launched from the Amazon - ECS-optimized AMI version `20190301` or later, then they contain the - required versions of the container agent and `ecs-init`. For more - information, see [Amazon ECS-optimized AMI - versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-versions.html) - in the *Amazon Elastic Container Service Developer Guide*. + Each account receives a default cluster the first time you use the + service, but you may also create other clusters. """ - inference_accelerators: list[InferenceAccelerator] | None = ... + count: int | None = ... """ - The Elastic Inference accelerators to use for the containers in the - task. + The number of instantiations of the specified task to place on your + cluster. You can specify up to 10 tasks for each call. """ - ephemeral_storage: EphemeralStorage | None = ... + enable_ecs_managed_tags: bool = ... """ - The amount of ephemeral storage to allocate for the task. This parameter - is used to expand the total amount of ephemeral storage available, - beyond the default amount, for tasks hosted on Fargate. For more - information, see [Using data volumes in - tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) - in the *Amazon ECS Developer Guide*. - - Note: - For tasks using the Fargate launch type, the task requires the following - platforms: + Specifies whether to use Amazon ECS managed tags for the task. For more + information, see [Tagging Your Amazon ECS + Resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + enable_execute_command: bool = ... + """ + Determines whether to use the execute command functionality for the + containers in this task. If `true`, this enables execute command + functionality on all containers in the task. - - Linux platform version `1.4.0` or later. + If `true`, then the task definition must have a task role, or you must + provide one as an override. """ - runtime_platform: RuntimePlatform | None = ... - """The operating system that your tasks definitions run on.""" - enable_fault_injection: bool | None = ... + group: str | None = ... """ - Enables fault injection when you register your task definition and - allows for fault injection requests to be accepted from the task's - containers. The default value is `false`. + The name of the task group to associate with the task. The default value + is the family name of the task definition (for example, + `family:my-family-name`). """ - trusted_execution_configuration: TrustedExecutionConfiguration | None = ... + launch_type: str | None = ... """ - The trusted execution configuration for tasks that use this task - definition, including the isolation mode and, if configured, an - attestation policy. + The infrastructure to run your standalone task on. For more information, + see [Amazon ECS launch + types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + in the *Amazon Elastic Container Service Developer Guide*. Note: - Trusted execution is supported only for Amazon ECS Managed Instances. - """ - -@dataclass(kw_only=True) -class RegisterTaskDefinitionOutput(_SerdeShape): - """""" + If you want to use Amazon ECS Managed Instances, you must use the + `capacityProviderStrategy` request parameter and omit the `launchType` + request parameter. - task_definition: TaskDefinition | None = ... - """The full description of the registered task definition.""" - tags: list[Tag] | None = ... - """The list of tags associated with the task definition.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + The `FARGATE` launch type runs your tasks on Fargate On-Demand + infrastructure. -@dataclass(kw_only=True) -class RepositoryCredentials(_SerdeShape): - """The repository credentials for private registry authentication.""" + Note: + Fargate Spot infrastructure is available for use but a capacity provider + strategy must be used. For more information, see [Fargate capacity + providers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-capacity-providers.html) + in the *Amazon ECS Developer Guide*. - credentials_parameter: str - """ - The Amazon Resource Name (ARN) of the secret containing the private - repository credentials. + The `EC2` launch type runs your tasks on Amazon EC2 instances registered + to your cluster. - Note: - When you use the Amazon ECS API, CLI, or Amazon Web Services SDK, if the - secret exists in the same Region as the task that you're launching then - you can use either the full ARN or the name of the secret. When you use - the Amazon Web Services Management Console, you must specify the full - ARN of the secret. - """ + The `EXTERNAL` launch type runs your tasks on your on-premises server or + virtual machine (VM) capacity registered to your cluster. -@dataclass(kw_only=True) -class ResolvedConfiguration(_SerdeShape): - """ - The resolved configuration for a service revision, which contains the - actual resources your service revision uses, such as which target groups - serve traffic. - """ + A task can use either a launch type or a capacity provider strategy. If + a `launchType` is specified, the `capacityProviderStrategy` parameter + must be omitted. - load_balancers: list[ServiceRevisionLoadBalancer] | None = ... + When you use cluster auto scaling, you must specify + `capacityProviderStrategy` and not `launchType`. """ - The resolved load balancer configuration for the service revision. This - includes information about which target groups serve traffic and which - listener rules direct traffic to them. + network_configuration: NetworkConfiguration | None = ... """ - vpc_lattice_configurations: ( - list[ServiceRevisionVpcLatticeConfiguration] | None - ) = ... + The network configuration for the task. This parameter is required for + task definitions that use the `awsvpc` network mode to receive their own + elastic network interface, and it isn't supported for other network + modes. For more information, see [Task + networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - The resolved VPC Lattice configuration for the service revision. This - includes information about which target groups serve traffic and which - listener rules direct traffic to them. + overrides: TaskOverride | None = ... """ + A list of container overrides in JSON format that specify the name of a + container in the specified task definition and the overrides it should + receive. You can override the default command for a container (that's + specified in the task definition or Docker image) with a `command` + override. You can also override existing environment variables (that are + specified in the task definition or Docker image) on a container or add + new environment variables to it with an `environment` override. -@dataclass(kw_only=True) -class Resource(_SerdeShape): - """Describes the resources available for a container instance.""" - - name: str | None = ... - """ - The name of the resource, such as `CPU`, `MEMORY`, `PORTS`, `PORTS_UDP`, - or a user-defined resource. + A total of 8192 characters are allowed for overrides. This limit + includes the JSON formatting characters of the override structure. """ - type: str | None = ... + placement_constraints: list[PlacementConstraint] | None = ... """ - The type of the resource. Valid values: `INTEGER`, `DOUBLE`, `LONG`, or - `STRINGSET`. + An array of placement constraint objects to use for the task. You can + specify up to 10 constraints for each task (including constraints in the + task definition and those specified at runtime). """ - double_value: float = ... + placement_strategy: list[PlacementStrategy] | None = ... """ - When the `doubleValue` type is set, the value of the resource must be a - double precision floating-point type. + The placement strategy objects to use for the task. You can specify a + maximum of 5 strategy rules for each task. """ - long_value: int = ... + platform_version: str | None = ... """ - When the `longValue` type is set, the value of the resource must be an - extended precision floating-point type. + The platform version the task uses. A platform version is only specified + for tasks hosted on Fargate. If one isn't specified, the `LATEST` + platform version is used. For more information, see [Fargate platform + versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + in the *Amazon Elastic Container Service Developer Guide*. """ - integer_value: int = ... + propagate_tags: str | None = ... """ - When the `integerValue` type is set, the value of the resource must be - an integer. + Specifies whether to propagate the tags from the task definition to the + task. If no value is specified, the tags aren't propagated. Tags can + only be propagated to the task during task creation. To add tags to a + task after task creation, use + the[TagResource](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html) + API action. + + Note: + An error will be received if you specify the `SERVICE` option when + running a task. """ - string_set_value: list[str] | None = ... + reference_id: str | None = ... """ - When the `stringSetValue` type is set, the value of the resource must be - a string type. + This parameter is only used by Amazon ECS. It is not intended for use by + customers. """ + started_by: str | None = ... + """ + An optional tag specified when a task is started. For example, if you + automatically trigger a task to run a batch process job, you could apply + a unique identifier for that job to your task with the `startedBy` + parameter. You can then identify which tasks belong to that job by + filtering the results of a + [ListTasks](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html) + call with the `startedBy` value. Up to 128 letters (uppercase and + lowercase), numbers, hyphens (-), forward slash (/), and underscores + (_) are allowed. -@dataclass(kw_only=True) -class ResourceInUseException(ServiceError, _SerdeShape): - """The specified resource is in-use and can't be removed.""" - - response_metadata: ResponseMetadata = ... + If a task is started by an Amazon ECS service, then the `startedBy` + parameter contains the deployment ID of the service that starts it. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + tags: list[Tag] | None = ... """ + The metadata that you apply to the task to help you categorize and + organize them. Each tag consists of a key and an optional value, both of + which you define. -class ResourceManagementType(UnknownEnumMixin, StrEnum): - CUSTOMER = "CUSTOMER" - ECS = "ECS" - -@dataclass(kw_only=True) -class ResourceNotFoundException(ServiceError, _SerdeShape): - """The specified resource wasn't found.""" + The following basic restrictions apply to tags: - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - Maximum number of tags per resource - 50 -@dataclass(kw_only=True) -class ResourceRequirement(_SerdeShape): - """ - The type and amount of a resource to assign to a container. The - supported resource types are GPUs, Neuron devices, and Elastic Inference - accelerators. For more information, see [Working with GPUs on Amazon - ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-gpu.html) - or [Working with Amazon Elastic Inference on Amazon - ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-inference.html) - in the *Amazon Elastic Container Service Developer Guide* - """ + - For each resource, each tag key must be unique, and each tag key can + have only one value. - value: str = ... - """ - The value for the specified resource type. + - Maximum key length - 128 Unicode characters in UTF-8 - You must specify this parameter unless the type is `GPU` and you specify - `sharingStrategy`. + - Maximum value length - 256 Unicode characters in UTF-8 - When the type is `GPU`, the value is the number of physical `GPUs` the - Amazon ECS container agent reserves for the container. The number of - GPUs that's reserved for all containers in a task can't exceed the - number of available GPUs on the container instance that the task is - launched on. You can also specify `ALL` to allocate all available GPUs - on the instance to the container. + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. - When the type is `NeuronDevice`, the value must be `ALL`. This allocates - all available Neuron devices on the instance to the container. Only one - container in a task can specify `NeuronDevice` resources. This resource - type is only supported on Managed Instances. + - Tag keys and values are case-sensitive. - When the type is `InferenceAccelerator`, the `value` matches the - `deviceName` for an - [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) - specified in a task definition. + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. """ - type: str - """The type of resource to assign to a container.""" - sharing_strategy: SharingStrategy | None = ... + task_definition: str | None = ... """ - The strategy that the container uses to share a GPU with other - containers. Specify a sharing strategy only when the type is `GPU`. For - a GPU resource requirement, specify either `value` or `sharingStrategy`, - but not both. If you don't specify a sharing strategy, the container - has exclusive use of each GPU that Amazon ECS assigns to it. The - containers in a task that request GPUs must all use the same option. + The `family` and `revision` (`family:revision`) or full ARN of the task + definition to run. If a `revision` isn't specified, the latest `ACTIVE` + revision is used. - You can use GPU sharing with tasks that run on Amazon EC2 instances or - Amazon ECS Managed Instances. Task definitions that require `EXTERNAL` - compatibility don't support GPU sharing. - """ + The full ARN value must match the value that you specified as the + `Resource` of the principal's permissions policy. -class ResourceType(UnknownEnumMixin, StrEnum): - GPU = "GPU" - INFERENCE_ACCELERATOR = "InferenceAccelerator" - NEURON_DEVICE = "NeuronDevice" + When you specify a task definition, you must either specify a specific + revision, or all revisions in the ARN. -@dataclass(kw_only=True) -class Rollback(_SerdeShape): - """Information about the service deployment rollback.""" + To specify a specific revision, include the revision number in the ARN. + For example, to specify revision 2, use + `arn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:2`. - reason: str | None = ... + To specify all revisions, use the wildcard (*) in the ARN. For example, + to specify all revisions, use + `arn:aws:ecs:us-east-1:111122223333:task-definition/TaskFamilyName:*`. + + For more information, see [Policy Resources for Amazon + ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-resources) + in the Amazon Elastic Container Service Developer Guide. """ - The reason the rollback happened. For example, the circuit breaker - initiated the rollback operation. + client_token: str | None = ... """ - started_at: datetime | None = ... + An identifier that you provide to ensure the idempotency of the request. + It must be unique and is case sensitive. Up to 64 characters are + allowed. The valid characters are characters in the range of 33-126, + inclusive. For more information, see [Ensuring + idempotency](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/ECS_Idempotency.html). + + This field is autopopulated if not provided. """ - Time time that the rollback started. The format is yyyy-MM-dd - HH:mm:ss.SSSSSS. + volume_configurations: list[TaskVolumeConfiguration] | None = ... + """ + The details of the volume that was `configuredAtLaunch`. You can + configure the size, volumeType, IOPS, throughput, snapshot and + encryption in + [TaskManagedEBSVolumeConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskManagedEBSVolumeConfiguration.html). + The `name` of the volume must match the `name` from the task definition. """ - service_revision_arn: str | None = ... - """The ARN of the service revision deployed as part of the rollback.""" -@dataclass(kw_only=True) -class RunTaskInput(_SerdeShape): - """""" +class RunTaskInputDict(TypedDict, total=False): + """Dictionary form of `RunTaskInput`.""" - capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + capacity_provider_strategy: ( + Sequence[CapacityProviderStrategyItem | CapacityProviderStrategyItemDict] | None + ) """ The capacity provider strategy to use for the task. @@ -5611,7 +9288,7 @@ class RunTaskInput(_SerdeShape): A capacity provider strategy can contain a maximum of 20 capacity providers. """ - cluster: str | None = ... + cluster: str | None """ The short name or full Amazon Resource Name (ARN) of the cluster to run your task on. If you do not specify a cluster, the default cluster is @@ -5620,19 +9297,19 @@ class RunTaskInput(_SerdeShape): Each account receives a default cluster the first time you use the service, but you may also create other clusters. """ - count: int | None = ... + count: int | None """ The number of instantiations of the specified task to place on your cluster. You can specify up to 10 tasks for each call. """ - enable_ecs_managed_tags: bool = ... + enable_ecs_managed_tags: bool | None """ Specifies whether to use Amazon ECS managed tags for the task. For more information, see [Tagging Your Amazon ECS Resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) in the *Amazon Elastic Container Service Developer Guide*. """ - enable_execute_command: bool = ... + enable_execute_command: bool | None """ Determines whether to use the execute command functionality for the containers in this task. If `true`, this enables execute command @@ -5641,13 +9318,13 @@ class RunTaskInput(_SerdeShape): If `true`, then the task definition must have a task role, or you must provide one as an override. """ - group: str | None = ... + group: str | None """ The name of the task group to associate with the task. The default value is the family name of the task definition (for example, `family:my-family-name`). """ - launch_type: str | None = ... + launch_type: str | None """ The infrastructure to run your standalone task on. For more information, see [Amazon ECS launch @@ -5681,7 +9358,7 @@ class RunTaskInput(_SerdeShape): When you use cluster auto scaling, you must specify `capacityProviderStrategy` and not `launchType`. """ - network_configuration: NetworkConfiguration | None = ... + network_configuration: NetworkConfiguration | NetworkConfigurationDict | None """ The network configuration for the task. This parameter is required for task definitions that use the `awsvpc` network mode to receive their own @@ -5690,7 +9367,7 @@ class RunTaskInput(_SerdeShape): networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in the *Amazon Elastic Container Service Developer Guide*. """ - overrides: TaskOverride | None = ... + overrides: TaskOverride | TaskOverrideDict | None """ A list of container overrides in JSON format that specify the name of a container in the specified task definition and the overrides it should @@ -5703,18 +9380,20 @@ class RunTaskInput(_SerdeShape): A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure. """ - placement_constraints: list[PlacementConstraint] | None = ... + placement_constraints: ( + Sequence[PlacementConstraint | PlacementConstraintDict] | None + ) """ An array of placement constraint objects to use for the task. You can specify up to 10 constraints for each task (including constraints in the task definition and those specified at runtime). """ - placement_strategy: list[PlacementStrategy] | None = ... + placement_strategy: Sequence[PlacementStrategy | PlacementStrategyDict] | None """ The placement strategy objects to use for the task. You can specify a maximum of 5 strategy rules for each task. """ - platform_version: str | None = ... + platform_version: str | None """ The platform version the task uses. A platform version is only specified for tasks hosted on Fargate. If one isn't specified, the `LATEST` @@ -5722,7 +9401,7 @@ class RunTaskInput(_SerdeShape): versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) in the *Amazon Elastic Container Service Developer Guide*. """ - propagate_tags: str | None = ... + propagate_tags: str | None """ Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags aren't propagated. Tags can @@ -5735,12 +9414,12 @@ class RunTaskInput(_SerdeShape): An error will be received if you specify the `SERVICE` option when running a task. """ - reference_id: str | None = ... + reference_id: str | None """ This parameter is only used by Amazon ECS. It is not intended for use by customers. """ - started_by: str | None = ... + started_by: str | None """ An optional tag specified when a task is started. For example, if you automatically trigger a task to run a batch process job, you could apply @@ -5755,7 +9434,7 @@ class RunTaskInput(_SerdeShape): If a task is started by an Amazon ECS service, then the `startedBy` parameter contains the deployment ID of the service that starts it. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of @@ -5786,7 +9465,7 @@ class RunTaskInput(_SerdeShape): with this prefix. Tags with this prefix do not count against your tags per resource limit. """ - task_definition: str | None = ... + task_definition: Required[str] """ The `family` and `revision` (`family:revision`) or full ARN of the task definition to run. If a `revision` isn't specified, the latest `ACTIVE` @@ -5810,7 +9489,7 @@ class RunTaskInput(_SerdeShape): ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-resources) in the Amazon Elastic Container Service Developer Guide. """ - client_token: str | None = ... + client_token: str | None """ An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 64 characters are @@ -5820,7 +9499,9 @@ class RunTaskInput(_SerdeShape): This field is autopopulated if not provided. """ - volume_configurations: list[TaskVolumeConfiguration] | None = ... + volume_configurations: ( + Sequence[TaskVolumeConfiguration | TaskVolumeConfigurationDict] | None + ) """ The details of the volume that was `configuredAtLaunch`. You can configure the size, volumeType, IOPS, throughput, snapshot and @@ -5878,6 +9559,21 @@ class RuntimePlatform(_SerdeShape): operating_system_family: str | None = ... """The operating system.""" +class RuntimePlatformDict(TypedDict, total=False): + """Dictionary form of `RuntimePlatform`.""" + + cpu_architecture: str | None + """ + The CPU architecture. + + You can run your Linux tasks on an ARM-based platform by setting the + value to `ARM64`. This option is available for tasks that run on Linux + Amazon EC2 instance, Amazon ECS Managed Instances, or Linux containers + on Fargate. + """ + operating_system_family: str | None + """The operating system.""" + @dataclass(kw_only=True) class RuntimePlatformOverride(_SerdeShape): """ @@ -5916,9 +9612,44 @@ class S3FilesVolumeConfiguration(_SerdeShape): for required permissions. """ - file_system_arn: str + file_system_arn: str + """The full ARN of the S3 Files file system to mount.""" + root_directory: str | None = ... + """ + The directory within the Amazon S3 Files file system to mount as the + root directory. If this parameter is omitted, the root of the Amazon S3 + Files file system will be used. Specifying `/` will have the same effect + as omitting this parameter. + + Warning: + If a S3 Files access point is specified in the `accessPointArn`, the + root directory parameter must either be omitted or set to `/` which will + enforce the path set on the S3 Files access point. + """ + transit_encryption_port: int | None = ... + """ + The port to use for sending encrypted data between the ECS host and the + S3 Files file system. If you do not specify a transit encryption port, + it will use the port selection strategy that the Amazon S3 Files mount + helper uses. For more information, see [S3 Files mount + helper](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-mounting.html). + """ + access_point_arn: str | None = ... + """ + The full ARN of the S3 Files access point to use. If an access point is + specified, the root directory value specified in the + `S3FilesVolumeConfiguration` must either be omitted or set to `/` which + will enforce the path set on the S3 Files access point. For more + information, see [Creating S3 Files access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-access-points-creating.html). + """ + +class S3FilesVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3FilesVolumeConfiguration`.""" + + file_system_arn: Required[str] """The full ARN of the S3 Files file system to mount.""" - root_directory: str | None = ... + root_directory: str | None """ The directory within the Amazon S3 Files file system to mount as the root directory. If this parameter is omitted, the root of the Amazon S3 @@ -5930,7 +9661,7 @@ class S3FilesVolumeConfiguration(_SerdeShape): root directory parameter must either be omitted or set to `/` which will enforce the path set on the S3 Files access point. """ - transit_encryption_port: int | None = ... + transit_encryption_port: int | None """ The port to use for sending encrypted data between the ECS host and the S3 Files file system. If you do not specify a transit encryption port, @@ -5938,7 +9669,7 @@ class S3FilesVolumeConfiguration(_SerdeShape): helper uses. For more information, see [S3 Files mount helper](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-mounting.html). """ - access_point_arn: str | None = ... + access_point_arn: str | None """ The full ARN of the S3 Files access point to use. If an access point is specified, the root directory value specified in the @@ -5963,6 +9694,17 @@ class Scale(_SerdeShape): unit: str | None = ... """The unit of measure for the scale value.""" +class ScaleDict(TypedDict, total=False): + """Dictionary form of `Scale`.""" + + value: float | None + """ + The value, specified as a percent total of a service's `desiredCount`, + to scale the task set. Accepted values are numbers between 0 and 100. + """ + unit: str | None + """The unit of measure for the scale value.""" + class ScaleUnit(UnknownEnumMixin, StrEnum): PERCENT = "PERCENT" @@ -6014,6 +9756,32 @@ class Secret(_SerdeShape): full ARN must be specified. """ +class SecretDict(TypedDict, total=False): + """Dictionary form of `Secret`.""" + + name: Required[str] + """The name of the secret.""" + value_from: Required[str] + """ + The secret to expose to the container. The supported values are either + the full ARN of the Secrets Manager secret or the full ARN of the + parameter in the SSM Parameter Store. + + For information about the require Identity and Access Management + permissions, see [Required IAM permissions for Amazon ECS + secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-secrets.html#secrets-iam) + (for Secrets Manager) or [Required IAM permissions for Amazon ECS + secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-parameters.html) + (for Systems Manager Parameter store) in the *Amazon Elastic Container + Service Developer Guide*. + + Note: + If the SSM Parameter Store parameter exists in the same Region as the + task you're launching, then you can use either the full ARN or name of + the parameter. If the parameter exists in a different Region, then the + full ARN must be specified. + """ + @dataclass(kw_only=True) class ServerException(ServiceError, _SerdeShape): """These errors are usually caused by a server issue.""" @@ -6302,6 +10070,26 @@ class ServiceConnectAccessLogConfiguration(_SerdeShape): as request IDs and tokens. By default, this parameter is `DISABLED`. """ +class ServiceConnectAccessLogConfigurationDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectAccessLogConfiguration`.""" + + format: Required[str] + """ + The format for Service Connect access log output. Choose TEXT for + human-readable logs or JSON for structured data that integrates well + with log analysis tools. + """ + include_query_parameters: str | None + """ + Specifies whether to include query parameters in Service Connect access + logs. + + When enabled, query parameters from HTTP requests are included in the + access logs. Consider security and privacy implications when enabling + this feature, as query parameters may contain sensitive information such + as request IDs and tokens. By default, this parameter is `DISABLED`. + """ + class ServiceConnectAccessLoggingFormat(UnknownEnumMixin, StrEnum): """ The format for Service Connect access log output. Choose TEXT for @@ -6370,6 +10158,51 @@ class ServiceConnectClientAlias(_SerdeShape): testing before shifting all production traffic. """ +class ServiceConnectClientAliasDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectClientAlias`.""" + + port: Required[int] + """ + The listening port number for the Service Connect proxy. This port is + available inside of all of the tasks within the same namespace. + + To avoid changing your applications in client Amazon ECS services, set + this to the same port that the client application uses by default. For + more information, see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + dns_name: str | None + """ + The `dnsName` is the name that you use in the applications of client + tasks to connect to this service. The name must be a valid DNS name but + doesn't need to be fully-qualified. The name can include up to 127 + characters. The name can include lowercase letters, numbers, underscores + (_), hyphens (-), and periods (.). The name can't start with a hyphen. + + If this parameter isn't specified, the default value of + `discoveryName.namespace` is used. If the `discoveryName` isn't + specified, the port mapping name from the task definition is used in + `portName.namespace`. + + To avoid changing your applications in client Amazon ECS services, set + this to the same name that the client application uses by default. For + example, a few common names are `database`, `db`, or the lowercase name + of a database, such as `mysql` or `redis`. For more information, see + [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + test_traffic_rules: ( + ServiceConnectTestTrafficRules | ServiceConnectTestTrafficRulesDict | None + ) + """ + The configuration for test traffic routing rules used during blue/green + deployments with Amazon ECS Service Connect. This allows you to route a + portion of traffic to the new service revision of your service for + testing before shifting all production traffic. + """ + @dataclass(kw_only=True) class ServiceConnectConfiguration(_SerdeShape): """ @@ -6487,6 +10320,119 @@ class ServiceConnectConfiguration(_SerdeShape): defaults. """ +class ServiceConnectConfigurationDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectConfiguration`.""" + + enabled: bool | None + """Specifies whether to use Service Connect with this service.""" + namespace: str | None + """ + The namespace name or full Amazon Resource Name (ARN) of the Cloud Map + namespace for use with Service Connect. The namespace must be in the + same Amazon Web Services Region as the Amazon ECS service and cluster. + The type of namespace doesn't affect Service Connect. For more + information about Cloud Map, see [Working with + Services](https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html) + in the *Cloud Map Developer Guide*. + """ + services: Sequence[ServiceConnectService | ServiceConnectServiceDict] | None + """ + The list of Service Connect service objects. These are names and aliases + (also known as endpoints) that are used by other Amazon ECS services to + connect to this service. + + This field is not required for a \"client\" Amazon ECS service that's a + member of a namespace only to connect to other services within the + namespace. An example of this would be a frontend application that + accepts incoming requests from either a load balancer that's attached + to the service or by other means. + + An object selects a port from the task definition, assigns a name for + the Cloud Map service, and a list of aliases (endpoints) and ports for + client applications to refer to this service. + """ + log_configuration: LogConfiguration | LogConfigurationDict | None + """ + The log configuration for the container. This parameter maps to + `LogConfig` in the docker container create command and the + `--log-driver` option to docker run. + + By default, containers use the same logging driver that the Docker + daemon uses. However, the container might use a different logging driver + than the Docker daemon by specifying a log driver configuration in the + container definition. + + Understand the following when specifying a log configuration for your + containers. + + - Amazon ECS currently supports a subset of the logging drivers + available to the Docker daemon. Additional log drivers may be + available in future releases of the Amazon ECS container agent. + + For tasks on Fargate, the supported log drivers are `awslogs`, + `splunk`, and `awsfirelens`. + + For tasks hosted on Amazon EC2 instances, the supported log drivers + are `awslogs`, `fluentd`, `gelf`, `json-file`, `journald`,`syslog`, + `splunk`, and `awsfirelens`. + + For tasks on Amazon ECS Managed Instances, the supported log drivers + are `awslogs`, `splunk`, `awsfirelens`, and `json-file`. + + - This parameter requires version 1.18 of the Docker Remote API or + greater on your container instance. + + - For tasks that are hosted on Amazon EC2 instances, the Amazon ECS + container agent must register the available logging drivers with the + `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before containers + placed on that instance can use these log configuration options. For + more information, see [Amazon ECS container agent + configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) + in the *Amazon Elastic Container Service Developer Guide*. + + - For tasks that are on Fargate, because you don't have access to the + underlying infrastructure your tasks are hosted on, any additional + software needed must be installed outside of the task. For example, + the Fluentd output aggregators or a remote host running Logstash to + send Gelf logs to. + """ + access_log_configuration: ( + ServiceConnectAccessLogConfiguration + | ServiceConnectAccessLogConfigurationDict + | None + ) + """ + The configuration for Service Connect access logging. Access logs + capture detailed information about requests made to your service, + including request patterns, response codes, and timing data. They can be + useful for debugging connectivity issues, monitoring service + performance, and auditing service-to-service communication for security + and compliance purposes. + + Note: + To enable access logs, you must also specify a `logConfiguration` in the + `serviceConnectConfiguration`. + """ + container_configurations: ( + Sequence[ + ServiceConnectContainerConfiguration + | ServiceConnectContainerConfigurationDict + ] + | None + ) + """ + The settings for the Service Connect proxy container that Amazon ECS + adds to each task in this service. Each object in the list sets exactly + one setting, and each setting can appear only once in the list. + + Your changes to these settings apply only to tasks that Amazon ECS + launches after you update the service. Your running tasks keep their + existing settings until Amazon ECS replaces them. If you update the + `serviceConnectConfiguration` of your service and don't include + `containerConfigurations`, the proxy container settings return to their + defaults. + """ + @dataclass class ServiceConnectContainerConfigurationLogLevel(_SerdeShape): """ @@ -6525,6 +10471,25 @@ class _ServiceConnectContainerConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> ServiceConnectContainerConfiguration: ... +class ServiceConnectContainerConfigurationLogLevelDict(TypedDict): + log_level: str + """ + The log level of the Service Connect proxy container. Set the log level + to `debug` to collect more detailed proxy logs when you troubleshoot + connectivity issues between services, and set it back to `info` when you + finish. Debug logging increases the volume of logs that the proxy + container writes. If you don't specify a log level, the default is + `info`. + """ + +ServiceConnectContainerConfigurationDict = Union[ + ServiceConnectContainerConfigurationLogLevelDict +] +""" +Dictionary form of `ServiceConnectContainerConfiguration`, setting +exactly one variant. +""" + class ServiceConnectContainerLogLevel(UnknownEnumMixin, StrEnum): """ The log level of the Service Connect proxy container. @@ -6546,25 +10511,83 @@ class ServiceConnectIncludeQueryParameters(UnknownEnumMixin, StrEnum): logs. Consider security and privacy implications when enabling this feature. By default, this parameter is `DISABLED`. """ - - DISABLED = "DISABLED" - ENABLED = "ENABLED" - -@dataclass(kw_only=True) -class ServiceConnectService(_SerdeShape): + + DISABLED = "DISABLED" + ENABLED = "ENABLED" + +@dataclass(kw_only=True) +class ServiceConnectService(_SerdeShape): + """ + The Service Connect service object configuration. For more information, + see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + + port_name: str + """ + The `portName` must match the name of one of the `portMappings` from all + the containers in the task definition of this Amazon ECS service. + """ + discovery_name: str | None = ... + """ + The `discoveryName` is the name of the new Cloud Map service that Amazon + ECS creates for this Amazon ECS service. This must be unique within the + Cloud Map namespace. The name can contain up to 64 characters. The name + can include lowercase letters, numbers, underscores (_), and hyphens + (-). The name can't start with a hyphen. + + If the `discoveryName` isn't specified, the port mapping name from the + task definition is used in `portName.namespace`. + """ + client_aliases: list[ServiceConnectClientAlias] | None = ... + """ + The list of client aliases for this Service Connect service. You use + these to assign names that can be used by client applications. The + maximum number of client aliases that you can have in this list is 1. + + Each alias (\"endpoint\") is a fully-qualified name and port number that + other Amazon ECS tasks (\"clients\") can use to connect to this service. + + Each name and port mapping must be unique within the namespace. + + For each `ServiceConnectService`, you must provide at least one + `clientAlias` with one `port`. + """ + ingress_port_override: int | None = ... + """ + The port number for the Service Connect proxy to listen on. + + Use the value of this field to bypass the proxy for traffic on the port + number specified in the named `portMapping` in the task definition of + this application, and then use it in your VPC security groups to allow + traffic into the proxy for this Amazon ECS service. + + In `awsvpc` mode and Fargate, the default value is the container port + number. The container port number is in the `portMapping` in the task + definition. In bridge mode, the default value is the ephemeral port of + the Service Connect proxy. + """ + timeout: TimeoutConfiguration | None = ... + """ + A reference to an object that represents the configured timeouts for + Service Connect. + """ + tls: ServiceConnectTlsConfiguration | None = ... """ - The Service Connect service object configuration. For more information, - see [Service - Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) - in the *Amazon Elastic Container Service Developer Guide*. + A reference to an object that represents a Transport Layer Security + (TLS) configuration. """ - port_name: str +class ServiceConnectServiceDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectService`.""" + + port_name: Required[str] """ The `portName` must match the name of one of the `portMappings` from all the containers in the task definition of this Amazon ECS service. """ - discovery_name: str | None = ... + discovery_name: str | None """ The `discoveryName` is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the @@ -6575,7 +10598,9 @@ class ServiceConnectService(_SerdeShape): If the `discoveryName` isn't specified, the port mapping name from the task definition is used in `portName.namespace`. """ - client_aliases: list[ServiceConnectClientAlias] | None = ... + client_aliases: ( + Sequence[ServiceConnectClientAlias | ServiceConnectClientAliasDict] | None + ) """ The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The @@ -6589,7 +10614,7 @@ class ServiceConnectService(_SerdeShape): For each `ServiceConnectService`, you must provide at least one `clientAlias` with one `port`. """ - ingress_port_override: int | None = ... + ingress_port_override: int | None """ The port number for the Service Connect proxy to listen on. @@ -6603,12 +10628,12 @@ class ServiceConnectService(_SerdeShape): definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy. """ - timeout: TimeoutConfiguration | None = ... + timeout: TimeoutConfiguration | TimeoutConfigurationDict | None """ A reference to an object that represents the configured timeouts for Service Connect. """ - tls: ServiceConnectTlsConfiguration | None = ... + tls: ServiceConnectTlsConfiguration | ServiceConnectTlsConfigurationDict | None """ A reference to an object that represents a Transport Layer Security (TLS) configuration. @@ -6665,6 +10690,16 @@ class ServiceConnectTestTrafficHeaderMatchRules(_SerdeShape): are routed to the new service revision during blue/green deployments. """ +class ServiceConnectTestTrafficHeaderMatchRulesDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectTestTrafficHeaderMatchRules`.""" + + exact: Required[str] + """ + The exact value that the HTTP header must match for the test traffic + routing rule to apply. This provides precise control over which requests + are routed to the new service revision during blue/green deployments. + """ + @dataclass(kw_only=True) class ServiceConnectTestTrafficHeaderRules(_SerdeShape): """ @@ -6689,6 +10724,25 @@ class ServiceConnectTestTrafficHeaderRules(_SerdeShape): header value is evaluated for test traffic routing decisions. """ +class ServiceConnectTestTrafficHeaderRulesDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectTestTrafficHeaderRules`.""" + + name: Required[str] + """ + The name of the HTTP header to examine for test traffic routing. Common + examples include custom headers like `X-Test-Version` or + `X-Canary-Request` that can be used to identify test traffic. + """ + value: ( + ServiceConnectTestTrafficHeaderMatchRules + | ServiceConnectTestTrafficHeaderMatchRulesDict + | None + ) + """ + The header value matching configuration that determines how the HTTP + header value is evaluated for test traffic routing decisions. + """ + @dataclass(kw_only=True) class ServiceConnectTestTrafficRules(_SerdeShape): """ @@ -6710,6 +10764,19 @@ class ServiceConnectTestTrafficRules(_SerdeShape): routing based on request headers. """ +class ServiceConnectTestTrafficRulesDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectTestTrafficRules`.""" + + header: Required[ + ServiceConnectTestTrafficHeaderRules | ServiceConnectTestTrafficHeaderRulesDict + ] + """ + The HTTP header-based routing rules that determine which requests should + be routed to the new service version during blue/green deployment + testing. These rules provide fine-grained control over test traffic + routing based on request headers. + """ + @dataclass(kw_only=True) class ServiceConnectTlsCertificateAuthority(_SerdeShape): """The certificate root authority that secures your service.""" @@ -6720,6 +10787,15 @@ class ServiceConnectTlsCertificateAuthority(_SerdeShape): certificate. """ +class ServiceConnectTlsCertificateAuthorityDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectTlsCertificateAuthority`.""" + + aws_pca_authority_arn: str | None + """ + The ARN of the Amazon Web Services Private Certificate Authority + certificate. + """ + @dataclass(kw_only=True) class ServiceConnectTlsConfiguration(_SerdeShape): """ @@ -6737,6 +10813,22 @@ class ServiceConnectTlsConfiguration(_SerdeShape): the Service Connect TLS. """ +class ServiceConnectTlsConfigurationDict(TypedDict, total=False): + """Dictionary form of `ServiceConnectTlsConfiguration`.""" + + issuer_certificate_authority: Required[ + ServiceConnectTlsCertificateAuthority + | ServiceConnectTlsCertificateAuthorityDict + ] + """The signer certificate authority.""" + kms_key: str | None + """The Amazon Web Services Key Management Service key.""" + role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that's associated with + the Service Connect TLS. + """ + @dataclass(kw_only=True) class ServiceCurrentRevisionSummary(_SerdeShape): """The summary of the current service revision configuration""" @@ -7234,6 +11326,168 @@ class ServiceManagedEBSVolumeConfiguration(_SerdeShape): The available Windows filesystem types are `NTFS`. """ +class ServiceManagedEBSVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `ServiceManagedEBSVolumeConfiguration`.""" + + encrypted: bool | None + """ + Indicates whether the volume should be encrypted. If you turn on + Region-level Amazon EBS encryption by default but set this value as + `false`, the setting is overridden and the volume is encrypted with the + KMS key specified for Amazon EBS encryption by default. This parameter + maps 1:1 with the `Encrypted` parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + """ + kms_key_id: str | None + """ + The Amazon Resource Name (ARN) identifier of the Amazon Web Services Key + Management Service key to use for Amazon EBS encryption. When a key is + specified using this parameter, it overrides Amazon EBS default + encryption or any KMS key that you specified for cluster-level managed + storage encryption. This parameter maps 1:1 with the `KmsKeyId` + parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. For more information about encrypting + Amazon EBS volumes attached to tasks, see [Encrypt data stored in Amazon + EBS volumes attached to Amazon ECS + tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-kms-encryption.html). + + Warning: + Amazon Web Services authenticates the Amazon Web Services Key Management + Service key asynchronously. Therefore, if you specify an ID, alias, or + ARN that is invalid, the action can appear to complete, but eventually + fails. + """ + volume_type: str | None + """ + The volume type. This parameter maps 1:1 with the `VolumeType` parameter + of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. For more information, see [Amazon EBS + volume + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html) + in the *Amazon EC2 User Guide*. + + The following are the supported volume types. + + - General Purpose SSD: `gp2`|`gp3` + + - Provisioned IOPS SSD: `io1`|`io2` + + - Throughput Optimized HDD: `st1` + + - Cold HDD: `sc1` + + - Magnetic: `standard` + + Note: + The magnetic volume type is not supported on Fargate. + """ + size_in_gi_b: int | None + """ + The size of the volume in GiB. You must specify either a volume size or + a snapshot ID. If you specify a snapshot ID, the snapshot size is used + for the volume size by default. You can optionally specify a volume size + greater than or equal to the snapshot size. This parameter maps 1:1 with + the `Size` parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + + The following are the supported volume size values for each volume type. + + - `gp2` and `gp3`: 1-16,384 + + - `io1` and `io2`: 4-16,384 + + - `st1` and `sc1`: 125-16,384 + + - `standard`: 1-1,024 + """ + snapshot_id: str | None + """ + The snapshot that Amazon ECS uses to create volumes for attachment to + tasks maintained by the service. You must specify either `snapshotId` or + `sizeInGiB` in your volume configuration. This parameter maps 1:1 with + the `SnapshotId` parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + """ + volume_initialization_rate: int | None + """ + The rate, in MiB/s, at which data is fetched from a snapshot of an + existing EBS volume to create new volumes for attachment to the tasks + maintained by the service. This property can be specified only if you + specify a `snapshotId`. For more information, see [Initialize Amazon EBS + volumes](https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html) + in the *Amazon EBS User Guide*. + """ + iops: int | None + """ + The number of I/O operations per second (IOPS). For `gp3`, `io1`, and + `io2` volumes, this represents the number of IOPS that are provisioned + for the volume. For `gp2` volumes, this represents the baseline + performance of the volume and the rate at which the volume accumulates + I/O credits for bursting. + + The following are the supported values for each volume type. + + - `gp3`: 3,000 - 16,000 IOPS + + - `io1`: 100 - 64,000 IOPS + + - `io2`: 100 - 256,000 IOPS + + This parameter is required for `io1` and `io2` volume types. The default + for `gp3` volumes is `3,000 IOPS`. This parameter is not supported for + `st1`, `sc1`, or `standard` volume types. + + This parameter maps 1:1 with the `Iops` parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + """ + throughput: int | None + """ + The throughput to provision for a volume, in MiB/s, with a maximum of + 1,000 MiB/s. This parameter maps 1:1 with the `Throughput` parameter of + the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + + Warning: + This parameter is only supported for the `gp3` volume type. + """ + tag_specifications: Sequence[EBSTagSpecification | EBSTagSpecificationDict] | None + """ + The tags to apply to the volume. Amazon ECS applies service-managed tags + by default. This parameter maps 1:1 with the `TagSpecifications.N` + parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + """ + role_arn: Required[str] + """ + The ARN of the IAM role to associate with this volume. This is the + Amazon ECS infrastructure IAM role that is used to manage your Amazon + Web Services infrastructure. We recommend using the Amazon ECS-managed + `AmazonECSInfrastructureRolePolicyForVolumes` IAM policy with this role. + For more information, see [Amazon ECS infrastructure IAM + role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) + in the *Amazon ECS Developer Guide*. + """ + filesystem_type: str | None + """ + The filesystem type for the volume. For volumes created from a snapshot, + you must specify the same filesystem type that the volume was using when + the snapshot was created. If there is a filesystem type mismatch, the + tasks will fail to start. + + The available Linux filesystem types are `ext3`, `ext4`, and `xfs`. If + no value is specified, the `xfs` filesystem type is used by default. + + The available Windows filesystem types are `NTFS`. + """ + @dataclass(kw_only=True) class ServiceNotActiveException(ServiceError, _SerdeShape): """ @@ -7316,6 +11570,44 @@ class ServiceRegistry(_SerdeShape): `port` value. However, you can't specify both. """ +class ServiceRegistryDict(TypedDict, total=False): + """Dictionary form of `ServiceRegistry`.""" + + registry_arn: str | None + """ + The Amazon Resource Name (ARN) of the service registry. The currently + supported service registry is Cloud Map. For more information, see + [CreateService](https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html). + """ + port: int | None + """ + The port value used if your service discovery service specified an SRV + record. This field might be used if both the `awsvpc` network mode and + SRV records are used. + """ + container_name: str | None + """ + The container name value to be used for your service discovery service. + It's already specified in the task definition. If the task definition + that your service task specifies uses the `bridge` or `host` network + mode, you must specify a `containerName` and `containerPort` combination + from the task definition. If the task definition that your service task + specifies uses the `awsvpc` network mode and a type SRV DNS record is + used, you must specify either a `containerName` and `containerPort` + combination or a `port` value. However, you can't specify both. + """ + container_port: int | None + """ + The port value to be used for your service discovery service. It's + already specified in the task definition. If the task definition your + service task specifies uses the `bridge` or `host` network mode, you + must specify a `containerName` and `containerPort` combination from the + task definition. If the task definition your service task specifies uses + the `awsvpc` network mode and a type SRV DNS record is used, you must + specify either a `containerName` and `containerPort` combination or a + `port` value. However, you can't specify both. + """ + @dataclass(kw_only=True) class ServiceRevision(_SerdeShape): """ @@ -7528,7 +11820,28 @@ class ServiceVolumeConfiguration(_SerdeShape): The name of the volume. This value must match the volume name from the `Volume` object in the task definition. """ - managed_ebs_volume: ServiceManagedEBSVolumeConfiguration | None = ... + managed_ebs_volume: ServiceManagedEBSVolumeConfiguration | None = ... + """ + The configuration for the Amazon EBS volume that Amazon ECS creates and + manages on your behalf. These settings are used to create each Amazon + EBS volume, with one volume created for each task in the service. The + Amazon EBS volumes are visible in your account in the Amazon EC2 console + once they are created. + """ + +class ServiceVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `ServiceVolumeConfiguration`.""" + + name: Required[str] + """ + The name of the volume. This value must match the volume name from the + `Volume` object in the task definition. + """ + managed_ebs_volume: ( + ServiceManagedEBSVolumeConfiguration + | ServiceManagedEBSVolumeConfigurationDict + | None + ) """ The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon @@ -7628,6 +11941,18 @@ Specify exactly one member. class _SharingStrategyDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> SharingStrategy: ... +class SharingStrategyNvidiaMpsDict(TypedDict): + nvidia_mps: NvidiaMpsAllocation | NvidiaMpsAllocationDict + """ + Shares a GPU between containers by using NVIDIA Multi-Process Service + (MPS). You specify the GPU memory to allocate to the container and, + optionally, the maximum percentage of the GPU's compute capacity that + the container can use. + """ + +SharingStrategyDict = Union[SharingStrategyNvidiaMpsDict] +"""Dictionary form of `SharingStrategy`, setting exactly one variant.""" + class SortOrder(UnknownEnumMixin, StrEnum): ASC = "ASC" DESC = "DESC" @@ -7763,6 +12088,134 @@ class StartTaskInput(_SerdeShape): The `name` of the volume must match the `name` from the task definition. """ +class StartTaskInputDict(TypedDict, total=False): + """Dictionary form of `StartTaskInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster where + to start your task. If you do not specify a cluster, the default cluster + is assumed. + """ + container_instances: Required[Sequence[str]] + """ + The container instance IDs or full ARN entries for the container + instances where you would like to place your task. You can specify up to + 10 container instances. + """ + enable_ecs_managed_tags: bool | None + """ + Specifies whether to use Amazon ECS managed tags for the task. For more + information, see [Tagging Your Amazon ECS + Resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + enable_execute_command: bool | None + """ + Whether or not the execute command functionality is turned on for the + task. If `true`, this turns on the execute command functionality on all + containers in the task. + """ + group: str | None + """ + The name of the task group to associate with the task. The default value + is the family name of the task definition (for example, + family:my-family-name). + """ + network_configuration: NetworkConfiguration | NetworkConfigurationDict | None + """ + The VPC subnet and security group configuration for tasks that receive + their own elastic network interface by using the `awsvpc` networking + mode. + """ + overrides: TaskOverride | TaskOverrideDict | None + """ + A list of container overrides in JSON format that specify the name of a + container in the specified task definition and the overrides it + receives. You can override the default command for a container (that's + specified in the task definition or Docker image) with a `command` + override. You can also override existing environment variables (that are + specified in the task definition or Docker image) on a container or add + new environment variables to it with an `environment` override. + + Note: + A total of 8192 characters are allowed for overrides. This limit + includes the JSON formatting characters of the override structure. + """ + propagate_tags: str | None + """ + Specifies whether to propagate the tags from the task definition or the + service to the task. If no value is specified, the tags aren't + propagated. + """ + reference_id: str | None + """ + This parameter is only used by Amazon ECS. It is not intended for use by + customers. + """ + started_by: str | None + """ + An optional tag specified when a task is started. For example, if you + automatically trigger a task to run a batch process job, you could apply + a unique identifier for that job to your task with the `startedBy` + parameter. You can then identify which tasks belong to that job by + filtering the results of a + [ListTasks](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html) + call with the `startedBy` value. Up to 36 letters (uppercase and + lowercase), numbers, hyphens (-), forward slash (/), and underscores + (_) are allowed. + + If a task is started by an Amazon ECS service, the `startedBy` parameter + contains the deployment ID of the service that starts it. + """ + tags: Sequence[Tag | TagDict] | None + """ + The metadata that you apply to the task to help you categorize and + organize them. Each tag consists of a key and an optional value, both of + which you define. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + task_definition: Required[str] + """ + The `family` and `revision` (`family:revision`) or full ARN of the task + definition to start. If a `revision` isn't specified, the latest + `ACTIVE` revision is used. + """ + volume_configurations: ( + Sequence[TaskVolumeConfiguration | TaskVolumeConfigurationDict] | None + ) + """ + The details of the volume that was `configuredAtLaunch`. You can + configure the size, volumeType, IOPS, throughput, snapshot and + encryption in + [TaskManagedEBSVolumeConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskManagedEBSVolumeConfiguration.html). + The `name` of the volume must match the `name` from the task definition. + """ + @dataclass(kw_only=True) class StartTaskOutput(_SerdeShape): """""" @@ -7795,6 +12248,18 @@ class StopServiceDeploymentInput(_SerdeShape): The valid values are `ROLLBACK`. """ +class StopServiceDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `StopServiceDeploymentInput`.""" + + service_deployment_arn: Required[str] + """The ARN of the service deployment that you want to stop.""" + stop_type: str | None + """ + How you want Amazon ECS to stop the service. + + The valid values are `ROLLBACK`. + """ + @dataclass(kw_only=True) class StopServiceDeploymentOutput(_SerdeShape): """Dataclass for StopServiceDeploymentOutput structure.""" @@ -7835,6 +12300,27 @@ class StopTaskInput(_SerdeShape): API operations on this task. """ +class StopTaskInputDict(TypedDict, total=False): + """Dictionary form of `StopTaskInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the task to stop. If you do not specify a cluster, the default + cluster is assumed. + """ + task: Required[str] + """Thefull Amazon Resource Name (ARN) of the task.""" + reason: str | None + """ + An optional message specified when a task is stopped. For example, if + you're using a custom scheduler, you can use this parameter to specify + the reason for stopping the task here, and the message appears in + subsequent + [DescribeTasks](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html)> + API operations on this task. + """ + @dataclass(kw_only=True) class StopTaskOutput(_SerdeShape): """""" @@ -7861,6 +12347,17 @@ class SubmitAttachmentStateChangesInput(_SerdeShape): attachments: list[AttachmentStateChange] | None = ... """Any attachments associated with the state change request.""" +class SubmitAttachmentStateChangesInputDict(TypedDict, total=False): + """Dictionary form of `SubmitAttachmentStateChangesInput`.""" + + cluster: str | None + """ + The short name or full ARN of the cluster that hosts the container + instance the attachment belongs to. + """ + attachments: Required[Sequence[AttachmentStateChange | AttachmentStateChangeDict]] + """Any attachments associated with the state change request.""" + @dataclass(kw_only=True) class SubmitAttachmentStateChangesOutput(_SerdeShape): """Dataclass for SubmitAttachmentStateChangesOutput structure.""" @@ -7899,6 +12396,29 @@ class SubmitContainerStateChangeInput(_SerdeShape): network_bindings: list[NetworkBinding] | None = ... """The network bindings of the container.""" +class SubmitContainerStateChangeInputDict(TypedDict, total=False): + """Dictionary form of `SubmitContainerStateChangeInput`.""" + + cluster: str | None + """The short name or full ARN of the cluster that hosts the container.""" + task: str | None + """ + The task ID or full Amazon Resource Name (ARN) of the task that hosts + the container. + """ + container_name: str | None + """The name of the container.""" + runtime_id: str | None + """The ID of the Docker container.""" + status: str | None + """The status of the state change request.""" + exit_code: int | None + """The exit code that's returned for the state change request.""" + reason: str | None + """The reason for the state change request.""" + network_bindings: Sequence[NetworkBinding | NetworkBindingDict] | None + """The network bindings of the container.""" + @dataclass(kw_only=True) class SubmitContainerStateChangeOutput(_SerdeShape): """""" @@ -7941,6 +12461,35 @@ class SubmitTaskStateChangeInput(_SerdeShape): execution_stopped_at: datetime | None = ... """The Unix timestamp for the time when the task execution stopped.""" +class SubmitTaskStateChangeInputDict(TypedDict, total=False): + """Dictionary form of `SubmitTaskStateChangeInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the task. + """ + task: str | None + """The task ID or full ARN of the task in the state change request.""" + status: str | None + """The status of the state change request.""" + reason: str | None + """The reason for the state change request.""" + containers: Sequence[ContainerStateChange | ContainerStateChangeDict] | None + """Any containers that's associated with the state change request.""" + attachments: Sequence[AttachmentStateChange | AttachmentStateChangeDict] | None + """Any attachments associated with the state change request.""" + managed_agents: ( + Sequence[ManagedAgentStateChange | ManagedAgentStateChangeDict] | None + ) + """The details for the managed agent that's associated with the task.""" + pull_started_at: datetime | None + """The Unix timestamp for the time when the container image pull started.""" + pull_stopped_at: datetime | None + """The Unix timestamp for the time when the container image pull completed.""" + execution_stopped_at: datetime | None + """The Unix timestamp for the time when the task execution stopped.""" + @dataclass(kw_only=True) class SubmitTaskStateChangeOutput(_SerdeShape): """""" @@ -8014,6 +12563,26 @@ class SystemControl(_SerdeShape): All of these values are supported by Fargate. """ +class SystemControlDict(TypedDict, total=False): + """Dictionary form of `SystemControl`.""" + + namespace: str | None + """The namespaced kernel parameter to set a `value` for.""" + value: str | None + """ + The namespaced kernel parameter to set a `value` for. + + Valid IPC namespace values: + `"kernel.msgmax" | "kernel.msgmnb" | "kernel.msgmni" | "kernel.sem" | "kernel.shmall" | "kernel.shmmax" | "kernel.shmmni" | "kernel.shm_rmid_forced"`, + and `Sysctls` that start with `"fs.mqueue.*"` + + Valid network namespace values: `Sysctls` that start with `"net.*"`. + Only namespaced `Sysctls` that exist within the container starting with + \"net.* are accepted. + + All of these values are supported by Fargate. + """ + @dataclass(kw_only=True) class Tag(_SerdeShape): """ @@ -8058,6 +12627,20 @@ class Tag(_SerdeShape): as a descriptor within a tag category (key). """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: str | None + """ + One part of a key-value pair that make up a tag. A `key` is a general + label that acts like a category for more specific tag values. + """ + value: str | None + """ + The optional part of a key-value pair that make up a tag. A `value` acts + as a descriptor within a tag category (key). + """ + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -8114,6 +12697,61 @@ class TagResourceInput(_SerdeShape): per resource limit. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource to add tags to. + Currently, the supported resources are Amazon ECS capacity providers, + tasks, services, task definitions, clusters, and container instances. + + In order to tag a service that has the following ARN format, you need to + migrate the service to the long ARN. For more information, see [Migrate + an Amazon ECS short service ARN to a long + ARN](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-arn-migration.html) + in the *Amazon Elastic Container Service Developer Guide*. + + `arn:aws:ecs:region:aws_account_id:service/service-name` + + After the migration is complete, the service has the long ARN format, as + shown below. Use this ARN to tag the service. + + `arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name` + + If you try to tag a service with a short ARN, you receive an + `InvalidParameterException` error. + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The tags to add to the resource. A tag is an array of key-value pairs. + + The following basic restrictions apply to tags: + + - Maximum number of tags per resource - 50 + + - For each resource, each tag key must be unique, and each tag key can + have only one value. + + - Maximum key length - 128 Unicode characters in UTF-8 + + - Maximum value length - 256 Unicode characters in UTF-8 + + - If your tagging schema is used across multiple services and resources, + remember that other services may have restrictions on allowed + characters. Generally allowed characters are: letters, numbers, and + spaces representable in UTF-8, and the following characters: + - = . + _ : / @. + + - Tag keys and values are case-sensitive. + + - Do not use `aws:`, `AWS:`, or any upper or lowercase combination of + such as a prefix for either keys or values as it is reserved for + Amazon Web Services use. You cannot edit or delete tag keys or values + with this prefix. Tags with this prefix do not count against your tags + per resource limit. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" diff --git a/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_2.pyi b/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_2.pyi index d8f5d64a0..4734d79b0 100644 --- a/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_2.pyi +++ b/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/models_2.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.response import ResponseMetadata @@ -11,50 +12,85 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( AutoRepairConfiguration, + AutoRepairConfigurationDict, AutoScalingGroupProviderUpdate, + AutoScalingGroupProviderUpdateDict, CapacityProvider, CapacityProviderStrategyItem, + CapacityProviderStrategyItemDict, Cluster, ClusterConfiguration, + ClusterConfigurationDict, ClusterServiceConnectDefaultsRequest, + ClusterServiceConnectDefaultsRequestDict, ClusterSetting, + ClusterSettingDict, ContainerInstance, ContainerOverride, + ContainerOverrideDict, DaemonDeploymentConfiguration, + DaemonDeploymentConfigurationDict, DeploymentConfiguration, + DeploymentConfigurationDict, DeploymentController, + DeploymentControllerDict, DeploymentEphemeralStorage, DockerVolumeConfiguration, + DockerVolumeConfigurationDict, EBSTagSpecification, + EBSTagSpecificationDict, EFSVolumeConfiguration, + EFSVolumeConfigurationDict, EphemeralStorage, + EphemeralStorageDict, ExpressGatewayContainer, + ExpressGatewayContainerDict, ExpressGatewayScalingTarget, + ExpressGatewayScalingTargetDict, ExpressGatewayServiceConfiguration, ExpressGatewayServiceNetworkConfiguration, + ExpressGatewayServiceNetworkConfigurationDict, ExpressGatewayServiceStatus, FSxWindowsFileServerVolumeConfiguration, + FSxWindowsFileServerVolumeConfigurationDict, Failure, GatewayAlbTestTrafficRules, + GatewayAlbTestTrafficRulesDict, GatewayConnector, + GatewayConnectorDict, GatewayElbAccessLogConfiguration, + GatewayElbAccessLogConfigurationDict, HostVolumeProperties, + HostVolumePropertiesDict, InferenceAcceleratorOverride, + InferenceAcceleratorOverrideDict, InfrastructureOptimization, + InfrastructureOptimizationDict, InstanceLaunchTemplateUpdate, + InstanceLaunchTemplateUpdateDict, LoadBalancer, + LoadBalancerDict, MonitoringConfiguration, + MonitoringConfigurationDict, NetworkConfiguration, + NetworkConfigurationDict, PlacementConstraint, + PlacementConstraintDict, PlacementStrategy, + PlacementStrategyDict, ProtectedTask, S3FilesVolumeConfiguration, + S3FilesVolumeConfigurationDict, Scale, + ScaleDict, Service, ServiceConnectConfiguration, + ServiceConnectConfigurationDict, ServiceError, ServiceRegistry, + ServiceRegistryDict, ServiceVolumeConfiguration, + ServiceVolumeConfigurationDict, Tag, _SerdeShape, ) @@ -87,6 +123,22 @@ class TaskDefinitionPlacementConstraint(_SerdeShape): in the *Amazon Elastic Container Service Developer Guide*. """ +class TaskDefinitionPlacementConstraintDict(TypedDict, total=False): + """Dictionary form of `TaskDefinitionPlacementConstraint`.""" + + type: str | None + """ + The type of constraint. The `MemberOf` constraint restricts selection to + be from a group of valid candidates. + """ + expression: str | None + """ + A cluster query language expression to apply to the constraint. For more + information, see [Cluster query + language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + class TaskDefinitionPlacementConstraintType(UnknownEnumMixin, StrEnum): MEMBER_OF = "memberOf" @@ -290,6 +342,175 @@ class TaskManagedEBSVolumeConfiguration(_SerdeShape): value is specified, the `xfs` filesystem type is used by default. """ +class TaskManagedEBSVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `TaskManagedEBSVolumeConfiguration`.""" + + encrypted: bool | None + """ + Indicates whether the volume should be encrypted. If you turn on + Region-level Amazon EBS encryption by default but set this value as + `false`, the setting is overridden and the volume is encrypted with the + KMS key specified for Amazon EBS encryption by default. This parameter + maps 1:1 with the `Encrypted` parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + """ + kms_key_id: str | None + """ + The Amazon Resource Name (ARN) identifier of the Amazon Web Services Key + Management Service key to use for Amazon EBS encryption. When a key is + specified using this parameter, it overrides Amazon EBS default + encryption or any KMS key that you specified for cluster-level managed + storage encryption. This parameter maps 1:1 with the `KmsKeyId` + parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. For more information about encrypting + Amazon EBS volumes attached to a task, see [Encrypt data stored in + Amazon EBS volumes attached to Amazon ECS + tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-kms-encryption.html). + + Warning: + Amazon Web Services authenticates the Amazon Web Services Key Management + Service key asynchronously. Therefore, if you specify an ID, alias, or + ARN that is invalid, the action can appear to complete, but eventually + fails. + """ + volume_type: str | None + """ + The volume type. This parameter maps 1:1 with the `VolumeType` parameter + of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. For more information, see [Amazon EBS + volume + types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html) + in the *Amazon EC2 User Guide*. + + The following are the supported volume types. + + - General Purpose SSD: `gp2`|`gp3` + + - Provisioned IOPS SSD: `io1`|`io2` + + - Throughput Optimized HDD: `st1` + + - Cold HDD: `sc1` + + - Magnetic: `standard` + + Note: + The magnetic volume type is not supported on Fargate. + """ + size_in_gi_b: int | None + """ + The size of the volume in GiB. You must specify either a volume size or + a snapshot ID. If you specify a snapshot ID, the snapshot size is used + for the volume size by default. You can optionally specify a volume size + greater than or equal to the snapshot size. This parameter maps 1:1 with + the `Size` parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + + The following are the supported volume size values for each volume type. + + - `gp2` and `gp3`: 1-16,384 + + - `io1` and `io2`: 4-16,384 + + - `st1` and `sc1`: 125-16,384 + + - `standard`: 1-1,024 + """ + snapshot_id: str | None + """ + The snapshot that Amazon ECS uses to create the volume. You must specify + either a snapshot ID or a volume size. This parameter maps 1:1 with the + `SnapshotId` parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + """ + volume_initialization_rate: int | None + """ + The rate, in MiB/s, at which data is fetched from a snapshot of an + existing Amazon EBS volume to create a new volume for attachment to the + task. This property can be specified only if you specify a `snapshotId`. + For more information, see [Initialize Amazon EBS + volumes](https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html) + in the *Amazon EBS User Guide*. + """ + iops: int | None + """ + The number of I/O operations per second (IOPS). For `gp3`, `io1`, and + `io2` volumes, this represents the number of IOPS that are provisioned + for the volume. For `gp2` volumes, this represents the baseline + performance of the volume and the rate at which the volume accumulates + I/O credits for bursting. + + The following are the supported values for each volume type. + + - `gp3`: 3,000 - 16,000 IOPS + + - `io1`: 100 - 64,000 IOPS + + - `io2`: 100 - 256,000 IOPS + + This parameter is required for `io1` and `io2` volume types. The default + for `gp3` volumes is `3,000 IOPS`. This parameter is not supported for + `st1`, `sc1`, or `standard` volume types. + + This parameter maps 1:1 with the `Iops` parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + """ + throughput: int | None + """ + The throughput to provision for a volume, in MiB/s, with a maximum of + 1,000 MiB/s. This parameter maps 1:1 with the `Throughput` parameter of + the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + + Warning: + This parameter is only supported for the `gp3` volume type. + """ + tag_specifications: Sequence[EBSTagSpecification | EBSTagSpecificationDict] | None + """ + The tags to apply to the volume. Amazon ECS applies service-managed tags + by default. This parameter maps 1:1 with the `TagSpecifications.N` + parameter of the [CreateVolume + API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) + in the *Amazon EC2 API Reference*. + """ + role_arn: Required[str] + """ + The ARN of the IAM role to associate with this volume. This is the + Amazon ECS infrastructure IAM role that is used to manage your Amazon + Web Services infrastructure. We recommend using the Amazon ECS-managed + `AmazonECSInfrastructureRolePolicyForVolumes` IAM policy with this role. + For more information, see [Amazon ECS infrastructure IAM + role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) + in the *Amazon ECS Developer Guide*. + """ + termination_policy: ( + TaskManagedEBSVolumeTerminationPolicy + | TaskManagedEBSVolumeTerminationPolicyDict + | None + ) + """ + The termination policy for the volume when the task exits. This provides + a way to control whether Amazon ECS terminates the Amazon EBS volume + when the task stops. + """ + filesystem_type: str | None + """ + The Linux filesystem type for the volume. For volumes created from a + snapshot, you must specify the same filesystem type that the volume was + using when the snapshot was created. If there is a filesystem type + mismatch, the task will fail to start. + + The available filesystem types are `ext3`, `ext4`, and `xfs`. If no + value is specified, the `xfs` filesystem type is used by default. + """ + @dataclass(kw_only=True) class TaskManagedEBSVolumeTerminationPolicy(_SerdeShape): """ @@ -307,6 +528,18 @@ class TaskManagedEBSVolumeTerminationPolicy(_SerdeShape): `false`, Amazon ECS leaves the volume in your account. """ +class TaskManagedEBSVolumeTerminationPolicyDict(TypedDict, total=False): + """Dictionary form of `TaskManagedEBSVolumeTerminationPolicy`.""" + + delete_on_termination: Required[bool] + """ + Indicates whether the volume should be deleted on when the task stops. + If a value of `true` is specified, Amazon ECS deletes the Amazon EBS + volume on your behalf when the task goes into the `STOPPED` state. If no + value is specified, the default value is `true` is used. When set to + `false`, Amazon ECS leaves the volume in your account. + """ + @dataclass(kw_only=True) class TaskOverride(_SerdeShape): """The overrides that are associated with a task.""" @@ -345,6 +578,45 @@ class TaskOverride(_SerdeShape): - Linux platform version `1.4.0` or later. """ +class TaskOverrideDict(TypedDict, total=False): + """Dictionary form of `TaskOverride`.""" + + container_overrides: Sequence[ContainerOverride | ContainerOverrideDict] | None + """One or more container overrides that are sent to a task.""" + cpu: str | None + """The CPU override for the task.""" + inference_accelerator_overrides: ( + Sequence[InferenceAcceleratorOverride | InferenceAcceleratorOverrideDict] | None + ) + """The Elastic Inference accelerator override for the task.""" + execution_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the task execution role override for + the task. For more information, see [Amazon ECS task execution IAM + role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + memory: str | None + """The memory override for the task.""" + task_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the role that containers in this task + can assume. All containers in this task are granted the permissions that + are specified in this role. For more information, see [IAM Role for + Tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + ephemeral_storage: EphemeralStorage | EphemeralStorageDict | None + """ + The ephemeral storage setting override for the task. + + Note: + This parameter is only supported for tasks hosted on Fargate that use + the following platform versions: + + - Linux platform version `1.4.0` or later. + """ + @dataclass(kw_only=True) class TaskSet(_SerdeShape): """ @@ -389,16 +661,16 @@ class TaskSet(_SerdeShape): PRIMARY - : The task set is serving production traffic. + : The task set is serving production traffic. ACTIVE - : The task set isn't serving production traffic. + : The task set isn't serving production traffic. DRAINING - : The tasks in the task set are being stopped, and their corresponding - targets are being deregistered from their target group. + : The tasks in the task set are being stopped, and their corresponding + targets are being deregistered from their target group. """ task_definition: str | None = ... """The task definition that the task set is using.""" @@ -575,6 +847,25 @@ class TaskVolumeConfiguration(_SerdeShape): are created. """ +class TaskVolumeConfigurationDict(TypedDict, total=False): + """Dictionary form of `TaskVolumeConfiguration`.""" + + name: Required[str] + """ + The name of the volume. This value must match the volume name from the + `Volume` object in the task definition. + """ + managed_ebs_volume: ( + TaskManagedEBSVolumeConfiguration | TaskManagedEBSVolumeConfigurationDict | None + ) + """ + The configuration for the Amazon EBS volume that Amazon ECS creates and + manages on your behalf. These settings are used to create each Amazon + EBS volume, with one volume created for each task. The Amazon EBS + volumes are visible in your account in the Amazon EC2 console once they + are created. + """ + @dataclass(kw_only=True) class ThresholdConfiguration(_SerdeShape): """ @@ -604,6 +895,26 @@ class ThresholdConfiguration(_SerdeShape): threshold. The default is `50`. """ +class ThresholdConfigurationDict(TypedDict, total=False): + """Dictionary form of `ThresholdConfiguration`.""" + + type: Required[str] + """ + Determines how Amazon ECS uses `value` to calculate the failure + threshold. For the percentage types (`BOUNDED_PERCENT` and + `UNBOUNDED_PERCENT`), Amazon ECS multiplies `value` by the latest + service desired count. For `COUNT`, Amazon ECS uses `value` directly as + the threshold. The default is `BOUNDED_PERCENT`. + """ + value: int | None + """ + Specifies the integer that Amazon ECS uses to calculate the failure + threshold. When `type` is `COUNT`, this value is the failure threshold + itself. When `type` is a percentage type, Amazon ECS multiplies this + value by the latest service desired count to produce the failure + threshold. The default is `50`. + """ + class ThresholdType(UnknownEnumMixin, StrEnum): """ Determines how the deployment circuit breaker calculates the number of @@ -661,6 +972,27 @@ class TimeoutConfiguration(_SerdeShape): `TCP` `appProtocol`. """ +class TimeoutConfigurationDict(TypedDict, total=False): + """Dictionary form of `TimeoutConfiguration`.""" + + idle_timeout_seconds: int | None + """ + The amount of time in seconds a connection will stay active while idle. + A value of `0` can be set to disable `idleTimeout`. + + The `idleTimeout` default for `HTTP`/`HTTP2`/`GRPC` is 5 minutes. + + The `idleTimeout` default for `TCP` is 1 hour. + """ + per_request_timeout_seconds: int | None + """ + The amount of time waiting for the upstream to respond with a complete + response per request. A value of `0` can be set to disable + `perRequestTimeout`. `perRequestTimeout` can only be set if Service + Connect `appProtocol` isn't `TCP`. Only `idleTimeout` is allowed for + `TCP` `appProtocol`. + """ + @dataclass(kw_only=True) class Tmpfs(_SerdeShape): """The container path, mount options, and size of the tmpfs mount.""" @@ -677,6 +1009,21 @@ class Tmpfs(_SerdeShape): `"defaults" | "ro" | "rw" | "suid" | "nosuid" | "dev" | "nodev" | "exec" | "noexec" | "sync" | "async" | "dirsync" | "remount" | "mand" | "nomand" | "atime" | "noatime" | "diratime" | "nodiratime" | "bind" | "rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime" | "norelatime" | "strictatime" | "nostrictatime" | "mode" | "uid" | "gid" | "nr_inodes" | "nr_blocks" | "mpol"` """ +class TmpfsDict(TypedDict, total=False): + """Dictionary form of `Tmpfs`.""" + + container_path: Required[str] + """The absolute file path where the tmpfs volume is to be mounted.""" + size: int | None + """The maximum size (in MiB) of the tmpfs volume.""" + mount_options: Sequence[str] | None + """ + The list of tmpfs volume mount options. + + Valid values: + `"defaults" | "ro" | "rw" | "suid" | "nosuid" | "dev" | "nodev" | "exec" | "noexec" | "sync" | "async" | "dirsync" | "remount" | "mand" | "nomand" | "atime" | "noatime" | "diratime" | "nodiratime" | "bind" | "rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime" | "norelatime" | "strictatime" | "nostrictatime" | "mode" | "uid" | "gid" | "nr_inodes" | "nr_blocks" | "mpol"` + """ + @dataclass(kw_only=True) class TotalLocalStorageGBRequest(_SerdeShape): """ @@ -696,6 +1043,20 @@ class TotalLocalStorageGBRequest(_SerdeShape): storage are excluded from selection. """ +class TotalLocalStorageGBRequestDict(TypedDict, total=False): + """Dictionary form of `TotalLocalStorageGBRequest`.""" + + min: float | None + """ + The minimum total local storage in GB. Instance types with less local + storage are excluded from selection. + """ + max: float | None + """ + The maximum total local storage in GB. Instance types with more local + storage are excluded from selection. + """ + class TransportProtocol(UnknownEnumMixin, StrEnum): TCP = "tcp" UDP = "udp" @@ -748,6 +1109,46 @@ class TrustedExecutionConfiguration(_SerdeShape): required when `isolationMode` is `CONFIDENTIAL_SANDBOX`. """ +class TrustedExecutionConfigurationDict(TypedDict, total=False): + """Dictionary form of `TrustedExecutionConfiguration`.""" + + isolation_mode: Required[str] + """ + The isolation mode for tasks that use this task definition. The + isolation mode determines how a task is isolated from other tasks on the + same Amazon EC2 instance. + + - `SHARED`: The task shares the underlying Amazon EC2 instance with + other tasks. This is the default isolation mode. + + - `ISOLATED_SANDBOX`: The task runs in its own [Nitro + Sandbox](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-ec2-nitro-sandboxes.html), + which is a lightweight virtual machine that is isolated by the Amazon + Web Services Nitro System. Each task's sandbox is isolated from every + other task's sandbox on the same Amazon EC2 instance, so one task + can't access another task's memory or storage. For more information, + see [Isolated and confidential + tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/isolated-confidential-tasks.html) + in *Amazon Elastic Container Service Developer Guide*. + + - `CONFIDENTIAL_SANDBOX`: The task runs in its own [Nitro + Sandbox](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-ec2-nitro-sandboxes.html), + which is a lightweight virtual machine that is isolated by the Amazon + Web Services Nitro System, with cryptographic attestation. The host + can't access the sandbox's memory or storage, and only the approved + workload can decrypt data that you encrypt with your Key Management + Service key. For more information, see [Isolated and confidential + tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/isolated-confidential-tasks.html) + in *Amazon Elastic Container Service Developer Guide*. + """ + attestation_policy: str | None + """ + The base64-encoded attestation policy envelope for the task. The policy + specifies which containers are allowed to run and the runtime + configuration that is cryptographically attested. This parameter is + required when `isolationMode` is `CONFIDENTIAL_SANDBOX`. + """ + @dataclass(kw_only=True) class TrustedExecutionSummary(_SerdeShape): """ @@ -826,6 +1227,22 @@ class Ulimit(_SerdeShape): bytes, seconds, or as a count, depending on the `type` of the `ulimit`. """ +class UlimitDict(TypedDict, total=False): + """Dictionary form of `Ulimit`.""" + + name: Required[str] + """The `type` of the `ulimit`.""" + soft_limit: int | None + """ + The soft limit for the `ulimit` type. The value can be specified in + bytes, seconds, or as a count, depending on the `type` of the `ulimit`. + """ + hard_limit: int | None + """ + The hard limit for the `ulimit` type. The value can be specified in + bytes, seconds, or as a count, depending on the `type` of the `ulimit`. + """ + class UlimitName(UnknownEnumMixin, StrEnum): CORE = "core" CPU = "cpu" @@ -868,6 +1285,18 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The keys of the tags to be removed.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource to delete tags from. + Currently, the supported resources are Amazon ECS capacity providers, + tasks, services, task definitions, clusters, and container instances. + """ + tag_keys: Required[Sequence[str]] + """The keys of the tags to be removed.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -905,6 +1334,36 @@ class UpdateCapacityProviderInput(_SerdeShape): after the update. """ +class UpdateCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCapacityProviderInput`.""" + + name: Required[str] + """The name of the capacity provider to update.""" + cluster: str | None + """ + The name of the cluster that contains the capacity provider to update. + Managed instances capacity providers are cluster-scoped and can only be + updated within their associated cluster. + """ + auto_scaling_group_provider: ( + AutoScalingGroupProviderUpdate | AutoScalingGroupProviderUpdateDict | None + ) + """ + An object that represent the parameters to update for the Auto Scaling + group capacity provider. + """ + managed_instances_provider: ( + UpdateManagedInstancesProviderConfiguration + | UpdateManagedInstancesProviderConfigurationDict + | None + ) + """ + The updated configuration for the Amazon ECS Managed Instances provider. + You can modify the infrastructure role, instance launch template, and + tag propagation settings. Changes take effect for new instances launched + after the update. + """ + @dataclass(kw_only=True) class UpdateCapacityProviderOutput(_SerdeShape): """Dataclass for UpdateCapacityProviderOutput structure.""" @@ -950,6 +1409,40 @@ class UpdateClusterInput(_SerdeShape): in the *Amazon Elastic Container Service Developer Guide*. """ +class UpdateClusterInputDict(TypedDict, total=False): + """Dictionary form of `UpdateClusterInput`.""" + + cluster: Required[str] + """The name of the cluster to modify the settings for.""" + settings: Sequence[ClusterSetting | ClusterSettingDict] | None + """The cluster settings for your cluster.""" + configuration: ClusterConfiguration | ClusterConfigurationDict | None + """The execute command configuration for the cluster.""" + service_connect_defaults: ( + ClusterServiceConnectDefaultsRequest + | ClusterServiceConnectDefaultsRequestDict + | None + ) + """ + Use this parameter to set a default Service Connect namespace. After you + set a default Service Connect namespace, any new services with Service + Connect turned on that are created in the cluster are added as client + services in the namespace. This setting only applies to new services + that set the `enabled` parameter to `true` in the + `ServiceConnectConfiguration`. You can set the namespace of each service + individually in the `ServiceConnectConfiguration` to override this + default parameter. + + Tasks that run in a namespace can use short names to connect to services + in the namespace. Tasks can connect to services across all of the + clusters in the namespace. Tasks connect through a managed proxy + container that collects logs and metrics for increased visibility. Only + the tasks that Amazon ECS services create are supported with Service + Connect. For more information, see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + @dataclass(kw_only=True) class UpdateClusterOutput(_SerdeShape): """Dataclass for UpdateClusterOutput structure.""" @@ -988,6 +1481,29 @@ class UpdateClusterSettingsInput(_SerdeShape): before you can re-create it. """ +class UpdateClusterSettingsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateClusterSettingsInput`.""" + + cluster: Required[str] + """The name of the cluster to modify the settings for.""" + settings: Required[Sequence[ClusterSetting | ClusterSettingDict]] + """ + The setting to use by default for a cluster. This parameter is used to + turn on CloudWatch Container Insights for a cluster. If this value is + specified, it overrides the `containerInsights` value set with + [PutAccountSetting](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html) + or + [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html). + + Warning: + Currently, if you delete an existing cluster that does not have + Container Insights turned on, and then create a new cluster with the + same name with Container Insights tuned on, Container Insights will not + actually be turned on. If you want to preserve the same name for your + existing cluster and turn on Container Insights, you must wait 7 days + before you can re-create it. + """ + @dataclass(kw_only=True) class UpdateClusterSettingsOutput(_SerdeShape): """Dataclass for UpdateClusterSettingsOutput structure.""" @@ -1018,6 +1534,21 @@ class UpdateContainerAgentInput(_SerdeShape): where you would like to update the Amazon ECS container agent. """ +class UpdateContainerAgentInputDict(TypedDict, total=False): + """Dictionary form of `UpdateContainerAgentInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + your container instance is running on. If you do not specify a cluster, + the default cluster is assumed. + """ + container_instance: Required[str] + """ + The container instance ID or full ARN entries for the container instance + where you would like to update the Amazon ECS container agent. + """ + @dataclass(kw_only=True) class UpdateContainerAgentOutput(_SerdeShape): """""" @@ -1054,6 +1585,27 @@ class UpdateContainerInstancesStateInput(_SerdeShape): container instance but can't update the container instance state. """ +class UpdateContainerInstancesStateInputDict(TypedDict, total=False): + """Dictionary form of `UpdateContainerInstancesStateInput`.""" + + cluster: str | None + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the container instance to update. If you do not specify a cluster, + the default cluster is assumed. + """ + container_instances: Required[Sequence[str]] + """A list of up to 10 container instance IDs or full ARN entries.""" + status: Required[str] + """ + The container instance state to update the container instance with. The + only valid values for this action are `ACTIVE` and `DRAINING`. A + container instance can only be updated to `DRAINING` status once it has + reached an `ACTIVE` state. If a container instance is in `REGISTERING`, + `DEREGISTERING`, or `REGISTRATION_FAILED` state you can describe the + container instance but can't update the container instance state. + """ + @dataclass(kw_only=True) class UpdateContainerInstancesStateOutput(_SerdeShape): """""" @@ -1131,6 +1683,68 @@ class UpdateDaemonInput(_SerdeShape): unstable target revision. """ +class UpdateDaemonInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDaemonInput`.""" + + daemon_arn: Required[str] + """The Amazon Resource Name (ARN) of the daemon to update.""" + daemon_task_definition_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the daemon task definition to use for + the updated daemon. + """ + capacity_provider_arns: Required[Sequence[str]] + """ + The Amazon Resource Names (ARNs) of the capacity providers to associate + with the daemon. + """ + deployment_configuration: ( + DaemonDeploymentConfiguration | DaemonDeploymentConfigurationDict | None + ) + """ + Optional deployment parameters that control how the daemon rolls out + updates, including the drain percentage, alarm-based rollback, and bake + time. + """ + propagate_tags: str | None + """ + Specifies whether to propagate the tags from the daemon to the daemon + tasks. If you don't specify a value, the tags aren't propagated. You + can only propagate tags to daemon tasks during task creation. + """ + enable_ecs_managed_tags: bool | None + """ + Specifies whether to turn on Amazon ECS managed tags for the tasks in + the daemon. For more information, see [Tagging your Amazon ECS + resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ + enable_execute_command: bool | None + """ + If `true`, the execute command functionality is turned on for all tasks + in the daemon. If `false`, the execute command functionality is turned + off. + """ + critical: bool | None + """ + If the `critical` parameter of a daemon is `true`, and the daemon task + fails, stops, or becomes unhealthy, Amazon ECS drains the container + instance and stops the other tasks running on it. If the `critical` + parameter is `false`, the daemon task failure doesn't affect the other + tasks on the instance. The default value is `true`. + + A non-critical daemon doesn't block instance registration. The + container instance becomes active and continues to run your other tasks, + whether the daemon task fails during scale-out or during a deployment. + + Amazon ECS emits an EventBridge event when a daemon task fails to start, + for both critical and non-critical daemons. + + Daemon task launch failures during a deployment are still counted by the + deployment circuit breaker. The circuit breaker can roll back an + unstable target revision. + """ + @dataclass(kw_only=True) class UpdateDaemonOutput(_SerdeShape): """Dataclass for UpdateDaemonOutput structure.""" @@ -1249,6 +1863,74 @@ class UpdateExpressGatewayServiceInput(_SerdeShape): or `cpuArchitecture`. """ +class UpdateExpressGatewayServiceInputDict(TypedDict, total=False): + """Dictionary form of `UpdateExpressGatewayServiceInput`.""" + + service_arn: Required[str] + """The Amazon Resource Name (ARN) of the Express service to update.""" + execution_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the task execution role for the + Express service. + """ + health_check_path: str | None + """The path on the container for Application Load Balancer health checks.""" + primary_container: ExpressGatewayContainer | ExpressGatewayContainerDict | None + """The primary container configuration for the Express service.""" + task_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role for containers in this + task. + """ + network_configuration: ( + ExpressGatewayServiceNetworkConfiguration + | ExpressGatewayServiceNetworkConfigurationDict + | None + ) + """ + The network configuration for the Express service tasks. By default, the + network configuration for an Express service uses the default VPC. + """ + cpu: str | None + """The number of CPU units used by the task.""" + memory: str | None + """The amount of memory (in MiB) used by the task.""" + cpu_architecture: str | None + """ + The CPU architecture that the task runs on. If you don't specify a + value, the service keeps its current architecture. + + Valid values: + + - `X86_64` - The x86 64-bit architecture. + + - `ARM64` - The 64-bit ARM architecture. + + Changing the architecture starts a new deployment that replaces the + running tasks. Ensure that the container image you specify supports the + architecture you choose. The operating system family for an Express + service is always `LINUX`. + + You can't specify `cpuArchitecture` together with `taskDefinitionArn`. + """ + scaling_target: ExpressGatewayScalingTarget | ExpressGatewayScalingTargetDict | None + """The auto-scaling configuration for the Express service.""" + task_definition_arn: str | None + """ + The Amazon Resource Name (ARN) of a task definition to use to update the + Express Gateway service. This allows you to manage your own task + definition, giving you more control over the service configuration such + as adding sidecar containers. + + The task definition must have a container named `Main` with a single TCP + port mapping that includes a container port and port name. The task + definition must also have `FARGATE` compatibility. + + If you provide a task definition ARN, you cannot also specify + `primaryContainer`, `executionRoleArn`, `taskRoleArn`, `cpu`, `memory`, + or `cpuArchitecture`. + """ + @dataclass(kw_only=True) class UpdateExpressGatewayServiceOutput(_SerdeShape): """Dataclass for UpdateExpressGatewayServiceOutput structure.""" @@ -1302,8 +1984,45 @@ class UpdateGatewayAlbConfiguration(_SerdeShape): test_traffic_rules: GatewayAlbTestTrafficRules | None = ... """The rules that route test traffic for progressive deployments.""" -@dataclass -class UpdateGatewayConfigurationHostSharedAlb(_SerdeShape): +class UpdateGatewayAlbConfigurationDict(TypedDict, total=False): + """Dictionary form of `UpdateGatewayAlbConfiguration`.""" + + network_configuration: ( + UpdateGatewayNetworkConfiguration | UpdateGatewayNetworkConfigurationDict | None + ) + """ + The mutable network configuration for the load balancers that the + gateway manages. + """ + max_alb_count: int | None + """ + The maximum number of Application Load Balancers that the gateway + manages. + """ + web_acl_arn: str | None + """ + The Amazon Resource Name (ARN) of the WAF web ACL to associate with the + load balancers that the gateway manages. + """ + access_logs: ( + GatewayElbAccessLogConfiguration | GatewayElbAccessLogConfigurationDict | None + ) + """ + The access log configuration for the load balancers that the gateway + manages. + """ + http_desync: str | None + """ + The desync mitigation mode for the load balancers that the gateway + manages. + """ + test_traffic_rules: ( + GatewayAlbTestTrafficRules | GatewayAlbTestTrafficRulesDict | None + ) + """The rules that route test traffic for progressive deployments.""" + +@dataclass +class UpdateGatewayConfigurationHostSharedAlb(_SerdeShape): """ The mutable configuration for a host-based, shared Application Load Balancer gateway. @@ -1334,6 +2053,19 @@ class _UpdateGatewayConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> UpdateGatewayConfiguration: ... +class UpdateGatewayConfigurationHostSharedAlbDict(TypedDict): + host_shared_alb: UpdateGatewayAlbConfiguration | UpdateGatewayAlbConfigurationDict + """ + The mutable configuration for a host-based, shared Application Load + Balancer gateway. + """ + +UpdateGatewayConfigurationDict = Union[UpdateGatewayConfigurationHostSharedAlbDict] +""" +Dictionary form of `UpdateGatewayConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class UpdateGatewayInput(_SerdeShape): """Dataclass for UpdateGatewayInput structure.""" @@ -1363,6 +2095,34 @@ class UpdateGatewayInput(_SerdeShape): the gateway's existing setting is unchanged. """ +class UpdateGatewayInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGatewayInput`.""" + + gateway: Required[str] + """The name or Amazon Resource Name (ARN) of the gateway to update.""" + infrastructure_role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that the gateway assumes + to manage infrastructure on your behalf. + """ + deletion_protection: bool | None + """ + Specifies whether to enable deletion protection for the gateway. When + enabled, the gateway can't be deleted. + """ + configuration: UpdateGatewayConfiguration | UpdateGatewayConfigurationDict | None + """ + The updated type-specific configuration for the gateway. The + configuration variant must match the gateway's existing type, and only + mutable fields can be changed. + """ + propagate_tags: str | None + """ + Specifies whether to propagate the tags from the gateway to the + infrastructure that the gateway manages. If you don't specify a value, + the gateway's existing setting is unchanged. + """ + @dataclass(kw_only=True) class UpdateGatewayNetworkConfiguration(_SerdeShape): """ @@ -1378,6 +2138,17 @@ class UpdateGatewayNetworkConfiguration(_SerdeShape): security group it manages. """ +class UpdateGatewayNetworkConfigurationDict(TypedDict, total=False): + """Dictionary form of `UpdateGatewayNetworkConfiguration`.""" + + inbound_security_group: str | None + """ + The ID of a security group that you provide to control inbound traffic + to the load balancers that the gateway manages. When you specify a + security group, the gateway doesn't create inbound rules on the + security group it manages. + """ + @dataclass(kw_only=True) class UpdateGatewayOutput(_SerdeShape): """Dataclass for UpdateGatewayOutput structure.""" @@ -1437,33 +2208,403 @@ class UpdateManagedInstancesProviderConfiguration(_SerdeShape): role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) in the *Amazon ECS Developer Guide*. """ - instance_launch_template: InstanceLaunchTemplateUpdate + instance_launch_template: InstanceLaunchTemplateUpdate + """ + The updated launch template configuration. Changes to the launch + template affect new instances launched after the update, while existing + instances continue to use their original configuration. + """ + propagate_tags: str | None = ... + """ + The updated tag propagation setting. When changed, this affects only new + instances launched after the update. + """ + infrastructure_optimization: InfrastructureOptimization | None = ... + """ + The updated infrastructure optimization configuration. Changes to this + setting affect how Amazon ECS optimizes instances going forward. + """ + auto_repair_configuration: AutoRepairConfiguration | None = ... + """ + The updated auto repair configuration for the Amazon ECS Managed + Instances capacity provider. + """ + +class UpdateManagedInstancesProviderConfigurationDict(TypedDict, total=False): + """Dictionary form of `UpdateManagedInstancesProviderConfiguration`.""" + + infrastructure_role_arn: Required[str] + """ + The updated Amazon Resource Name (ARN) of the infrastructure role. The + new role must have the necessary permissions to manage instances and + access required Amazon Web Services services. + + For more information, see [Amazon ECS infrastructure IAM + role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) + in the *Amazon ECS Developer Guide*. + """ + instance_launch_template: Required[ + InstanceLaunchTemplateUpdate | InstanceLaunchTemplateUpdateDict + ] + """ + The updated launch template configuration. Changes to the launch + template affect new instances launched after the update, while existing + instances continue to use their original configuration. + """ + propagate_tags: str | None + """ + The updated tag propagation setting. When changed, this affects only new + instances launched after the update. + """ + infrastructure_optimization: ( + InfrastructureOptimization | InfrastructureOptimizationDict | None + ) + """ + The updated infrastructure optimization configuration. Changes to this + setting affect how Amazon ECS optimizes instances going forward. + """ + auto_repair_configuration: ( + AutoRepairConfiguration | AutoRepairConfigurationDict | None + ) + """ + The updated auto repair configuration for the Amazon ECS Managed + Instances capacity provider. + """ + +@dataclass(kw_only=True) +class UpdateServiceInput(_SerdeShape): + """""" + + cluster: str | None = ... + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + your service runs on. If you do not specify a cluster, the default + cluster is assumed. + + You can't change the cluster name. + """ + service: str | None = ... + """The name of the service to update.""" + desired_count: int | None = ... + """ + The number of instantiations of the task to place and keep running in + your service. + + This parameter doesn't trigger a new service deployment. + """ + task_definition: str | None = ... + """ + The `family` and `revision` (`family:revision`) or full ARN of the task + definition to run in your service. If a `revision` is not specified, the + latest `ACTIVE` revision is used. If you modify the task definition with + `UpdateService`, Amazon ECS spawns a task with the new version of the + task definition and then stops an old task after the new version is + running. + + This parameter triggers a new service deployment. + """ + capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + """ + The details of a capacity provider strategy. You can set a capacity + provider when you create a cluster, run a task, or update a service. + + Note: + If you want to use Amazon ECS Managed Instances, you must use the + `capacityProviderStrategy` request parameter. + + When you use Fargate, the capacity providers are `FARGATE` or + `FARGATE_SPOT`. + + When you use Amazon EC2, the capacity providers are Auto Scaling groups. + + You can change capacity providers for rolling deployments and blue/green + deployments. + + The following list provides the valid transitions: + + - Update the Fargate launch type to an Auto Scaling group capacity + provider. + + - Update the Amazon EC2 launch type to a Fargate capacity provider. + + - Update the Fargate capacity provider to an Auto Scaling group capacity + provider. + + - Update the Amazon EC2 capacity provider to a Fargate capacity + provider. + + - Update the Auto Scaling group or Fargate capacity provider back to the + launch type. + + Pass an empty list in the `capacityProviderStrategy` parameter. + + For information about Amazon Web Services CDK considerations, see + [Amazon Web Services CDK + considerations](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html). + + This parameter doesn't trigger a new service deployment. + """ + deployment_configuration: DeploymentConfiguration | None = ... + """ + Optional deployment parameters that control how many tasks run during + the deployment and the ordering of stopping and starting tasks. + + This parameter doesn't trigger a new service deployment. + """ + availability_zone_rebalancing: str | None = ... + """ + Indicates whether to use Availability Zone rebalancing for the service. + + For more information, see [Balancing an Amazon ECS service across + Availability + Zones](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html) + in the Amazon Elastic Container Service Developer Guide . + + The default behavior of `AvailabilityZoneRebalancing` differs between + create and update requests: + + - For create service requests, when no value is specified for + `AvailabilityZoneRebalancing`, Amazon ECS defaults the value to + `ENABLED`. + + - For update service requests, when no value is specified for + `AvailabilityZoneRebalancing`, Amazon ECS defaults to the existing + service's `AvailabilityZoneRebalancing` value. If the service never + had an `AvailabilityZoneRebalancing` value set, Amazon ECS treats this + as `DISABLED`. + + This parameter doesn't trigger a new service deployment. + """ + network_configuration: NetworkConfiguration | None = ... + """ + An object representing the network configuration for the service. + + This parameter triggers a new service deployment. + """ + placement_constraints: list[PlacementConstraint] | None = ... + """ + An array of task placement constraint objects to update the service to + use. If no value is specified, the existing placement constraints for + the service will remain unchanged. If this value is specified, it will + override any existing placement constraints defined for the service. To + remove all existing placement constraints, specify an empty array. + + You can specify a maximum of 10 constraints for each task. This limit + includes constraints in the task definition and those specified at + runtime. + + This parameter doesn't trigger a new service deployment. + """ + placement_strategy: list[PlacementStrategy] | None = ... + """ + The task placement strategy objects to update the service to use. If no + value is specified, the existing placement strategy for the service will + remain unchanged. If this value is specified, it will override the + existing placement strategy defined for the service. To remove an + existing placement strategy, specify an empty object. + + You can specify a maximum of five strategy rules for each service. + + This parameter doesn't trigger a new service deployment. + """ + platform_version: str | None = ... + """ + The platform version that your tasks in the service run on. A platform + version is only specified for tasks using the Fargate launch type. If a + platform version is not specified, the `LATEST` platform version is + used. For more information, see [Fargate Platform + Versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + in the *Amazon Elastic Container Service Developer Guide*. + + This parameter triggers a new service deployment. + """ + force_new_deployment: bool = ... + """ + Determines whether to force a new deployment of the service. By default, + deployments aren't forced. You can use this option to start a new + deployment with no service definition changes. For example, you can + update a service's tasks to use a newer Docker image with the same + image/tag combination (`my_image:latest`) or to roll Fargate tasks onto + a newer platform version. + """ + health_check_grace_period_seconds: int | None = ... + """ + The period of time, in seconds, that the Amazon ECS service scheduler + ignores unhealthy Elastic Load Balancing, VPC Lattice, and container + health checks after a task has first started. If you don't specify a + health check grace period value, the default value of `0` is used. If + you don't use any of the health checks, then + `healthCheckGracePeriodSeconds` is unused. + + If your service's tasks take a while to start and respond to health + checks, you can specify a health check grace period of up to + 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS + service scheduler ignores health check status. This grace period can + prevent the service scheduler from marking tasks as unhealthy and + stopping them before they have time to come up. + + If your service has more running tasks than desired, unhealthy tasks in + the grace period might be stopped to reach the desired count. + + This parameter doesn't trigger a new service deployment. + """ + deployment_controller: DeploymentController | None = ... + """The deployment controller to use for the service.""" + enable_execute_command: bool | None = ... + """ + If `true`, this enables execute command functionality on all task + containers. + + If you do not want to override the value that was set when the service + was created, you can set this to `null` when performing this action. + + This parameter doesn't trigger a new service deployment. + """ + enable_ecs_managed_tags: bool | None = ... + """ + Determines whether to turn on Amazon ECS managed tags for the tasks in + the service. For more information, see [Tagging Your Amazon ECS + Resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) + in the *Amazon Elastic Container Service Developer Guide*. + + Only tasks launched after the update will reflect the update. To update + the tags on all tasks, set `forceNewDeployment` to `true`, so that + Amazon ECS starts new tasks with the updated tags. + + This parameter doesn't trigger a new service deployment. + """ + load_balancers: list[LoadBalancer] | None = ... + """ + Note: + You must have a service-linked role when you update this property + + A list of Elastic Load Balancing load balancer objects. It contains the + load balancer name, the container name, and the container port to access + from the load balancer. The container name is as it appears in a + container definition. + + When you add, update, or remove a load balancer configuration, Amazon + ECS starts new tasks with the updated Elastic Load Balancing + configuration, and then stops the old tasks when the new tasks are + running. + + For services that use rolling updates, you can add, update, or remove + Elastic Load Balancing target groups. You can update from a single + target group to multiple target groups and from multiple target groups + to a single target group. + + For services that use blue/green deployments, you can update Elastic + Load Balancing target groups by using + ` `[`CreateDeployment`](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html)` ` + through CodeDeploy. Note that multiple target groups are not supported + for blue/green deployments. For more information see [Register multiple + target groups with a + service](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html) + in the *Amazon Elastic Container Service Developer Guide*. + + For services that use the external deployment controller, you can add, + update, or remove load balancers by using + [CreateTaskSet](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html). + Note that multiple target groups are not supported for external + deployments. For more information see [Register multiple target groups + with a + service](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html) + in the *Amazon Elastic Container Service Developer Guide*. + + You can remove existing `loadBalancers` by passing an empty list. + + This parameter triggers a new service deployment. + """ + propagate_tags: str | None = ... + """ + Determines whether to propagate the tags from the task definition or the + service to the task. If no value is specified, the tags aren't + propagated. + + Only tasks launched after the update will reflect the update. To update + the tags on all tasks, set `forceNewDeployment` to `true`, so that + Amazon ECS starts new tasks with the updated tags. + + This parameter doesn't trigger a new service deployment. + """ + service_registries: list[ServiceRegistry] | None = ... + """ + Note: + You must have a service-linked role when you update this property. + + For more information about the role see the `CreateService` request + parameter + [`role`](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role) + . + + The details for the service discovery registries to assign to this + service. For more information, see [Service + Discovery](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html). + + When you add, update, or remove the service registries configuration, + Amazon ECS starts new tasks with the updated service registries + configuration, and then stops the old tasks when the new tasks are + running. + + You can remove existing `serviceRegistries` by passing an empty list. + + This parameter triggers a new service deployment. + """ + service_connect_configuration: ServiceConnectConfiguration | None = ... + """ + The configuration for this service to discover and connect to services, + and be discovered by, and connected from, other services within a + namespace. + + Tasks that run in a namespace can use short names to connect to services + in the namespace. Tasks can connect to services across all of the + clusters in the namespace. Tasks connect through a managed proxy + container that collects logs and metrics for increased visibility. Only + the tasks that Amazon ECS services create are supported with Service + Connect. For more information, see [Service + Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) + in the *Amazon Elastic Container Service Developer Guide*. + + This parameter triggers a new service deployment. + """ + volume_configurations: list[ServiceVolumeConfiguration] | None = ... """ - The updated launch template configuration. Changes to the launch - template affect new instances launched after the update, while existing - instances continue to use their original configuration. + The details of the volume that was `configuredAtLaunch`. You can + configure the size, volumeType, IOPS, throughput, snapshot and + encryption in + [ServiceManagedEBSVolumeConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceManagedEBSVolumeConfiguration.html). + The `name` of the volume must match the `name` from the task definition. + If set to null, no new deployment is triggered. Otherwise, if this + configuration differs from the existing one, it triggers a new + deployment. + + This parameter triggers a new service deployment. """ - propagate_tags: str | None = ... + vpc_lattice_configurations: list[VpcLatticeConfiguration] | None = ... """ - The updated tag propagation setting. When changed, this affects only new - instances launched after the update. + An object representing the VPC Lattice configuration for the service + being updated. + + This parameter triggers a new service deployment. """ - infrastructure_optimization: InfrastructureOptimization | None = ... + gateway_connectors: list[GatewayConnector] | None = ... """ - The updated infrastructure optimization configuration. Changes to this - setting affect how Amazon ECS optimizes instances going forward. + The updated set of gateway connectors that connect the service to a + gateway ingress path. A service supports no more than one gateway + connector. """ - auto_repair_configuration: AutoRepairConfiguration | None = ... + monitoring: MonitoringConfiguration | None = ... """ - The updated auto repair configuration for the Amazon ECS Managed - Instances capacity provider. + The optional monitoring configuration for the service, which defines the + resolution for the service-level `CPUUtilization` and + `MemoryUtilization` Amazon CloudWatch metrics. When not specified, + Amazon ECS uses the default resolution of `60` seconds. """ -@dataclass(kw_only=True) -class UpdateServiceInput(_SerdeShape): - """""" +class UpdateServiceInputDict(TypedDict, total=False): + """Dictionary form of `UpdateServiceInput`.""" - cluster: str | None = ... + cluster: str | None """ The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on. If you do not specify a cluster, the default @@ -1471,16 +2612,16 @@ class UpdateServiceInput(_SerdeShape): You can't change the cluster name. """ - service: str | None = ... + service: Required[str] """The name of the service to update.""" - desired_count: int | None = ... + desired_count: int | None """ The number of instantiations of the task to place and keep running in your service. This parameter doesn't trigger a new service deployment. """ - task_definition: str | None = ... + task_definition: str | None """ The `family` and `revision` (`family:revision`) or full ARN of the task definition to run in your service. If a `revision` is not specified, the @@ -1491,7 +2632,9 @@ class UpdateServiceInput(_SerdeShape): This parameter triggers a new service deployment. """ - capacity_provider_strategy: list[CapacityProviderStrategyItem] | None = ... + capacity_provider_strategy: ( + Sequence[CapacityProviderStrategyItem | CapacityProviderStrategyItemDict] | None + ) """ The details of a capacity provider strategy. You can set a capacity provider when you create a cluster, run a task, or update a service. @@ -1532,14 +2675,16 @@ class UpdateServiceInput(_SerdeShape): This parameter doesn't trigger a new service deployment. """ - deployment_configuration: DeploymentConfiguration | None = ... + deployment_configuration: ( + DeploymentConfiguration | DeploymentConfigurationDict | None + ) """ Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks. This parameter doesn't trigger a new service deployment. """ - availability_zone_rebalancing: str | None = ... + availability_zone_rebalancing: str | None """ Indicates whether to use Availability Zone rebalancing for the service. @@ -1563,13 +2708,15 @@ class UpdateServiceInput(_SerdeShape): This parameter doesn't trigger a new service deployment. """ - network_configuration: NetworkConfiguration | None = ... + network_configuration: NetworkConfiguration | NetworkConfigurationDict | None """ An object representing the network configuration for the service. This parameter triggers a new service deployment. """ - placement_constraints: list[PlacementConstraint] | None = ... + placement_constraints: ( + Sequence[PlacementConstraint | PlacementConstraintDict] | None + ) """ An array of task placement constraint objects to update the service to use. If no value is specified, the existing placement constraints for @@ -1583,7 +2730,7 @@ class UpdateServiceInput(_SerdeShape): This parameter doesn't trigger a new service deployment. """ - placement_strategy: list[PlacementStrategy] | None = ... + placement_strategy: Sequence[PlacementStrategy | PlacementStrategyDict] | None """ The task placement strategy objects to update the service to use. If no value is specified, the existing placement strategy for the service will @@ -1595,7 +2742,7 @@ class UpdateServiceInput(_SerdeShape): This parameter doesn't trigger a new service deployment. """ - platform_version: str | None = ... + platform_version: str | None """ The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If a @@ -1606,7 +2753,7 @@ class UpdateServiceInput(_SerdeShape): This parameter triggers a new service deployment. """ - force_new_deployment: bool = ... + force_new_deployment: bool | None """ Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new @@ -1615,7 +2762,7 @@ class UpdateServiceInput(_SerdeShape): image/tag combination (`my_image:latest`) or to roll Fargate tasks onto a newer platform version. """ - health_check_grace_period_seconds: int | None = ... + health_check_grace_period_seconds: int | None """ The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container @@ -1636,9 +2783,9 @@ class UpdateServiceInput(_SerdeShape): This parameter doesn't trigger a new service deployment. """ - deployment_controller: DeploymentController | None = ... + deployment_controller: DeploymentController | DeploymentControllerDict | None """The deployment controller to use for the service.""" - enable_execute_command: bool | None = ... + enable_execute_command: bool | None """ If `true`, this enables execute command functionality on all task containers. @@ -1648,7 +2795,7 @@ class UpdateServiceInput(_SerdeShape): This parameter doesn't trigger a new service deployment. """ - enable_ecs_managed_tags: bool | None = ... + enable_ecs_managed_tags: bool | None """ Determines whether to turn on Amazon ECS managed tags for the tasks in the service. For more information, see [Tagging Your Amazon ECS @@ -1661,7 +2808,7 @@ class UpdateServiceInput(_SerdeShape): This parameter doesn't trigger a new service deployment. """ - load_balancers: list[LoadBalancer] | None = ... + load_balancers: Sequence[LoadBalancer | LoadBalancerDict] | None """ Note: You must have a service-linked role when you update this property @@ -1703,7 +2850,7 @@ class UpdateServiceInput(_SerdeShape): This parameter triggers a new service deployment. """ - propagate_tags: str | None = ... + propagate_tags: str | None """ Determines whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't @@ -1715,7 +2862,7 @@ class UpdateServiceInput(_SerdeShape): This parameter doesn't trigger a new service deployment. """ - service_registries: list[ServiceRegistry] | None = ... + service_registries: Sequence[ServiceRegistry | ServiceRegistryDict] | None """ Note: You must have a service-linked role when you update this property. @@ -1738,7 +2885,9 @@ class UpdateServiceInput(_SerdeShape): This parameter triggers a new service deployment. """ - service_connect_configuration: ServiceConnectConfiguration | None = ... + service_connect_configuration: ( + ServiceConnectConfiguration | ServiceConnectConfigurationDict | None + ) """ The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a @@ -1755,7 +2904,9 @@ class UpdateServiceInput(_SerdeShape): This parameter triggers a new service deployment. """ - volume_configurations: list[ServiceVolumeConfiguration] | None = ... + volume_configurations: ( + Sequence[ServiceVolumeConfiguration | ServiceVolumeConfigurationDict] | None + ) """ The details of the volume that was `configuredAtLaunch`. You can configure the size, volumeType, IOPS, throughput, snapshot and @@ -1768,20 +2919,22 @@ class UpdateServiceInput(_SerdeShape): This parameter triggers a new service deployment. """ - vpc_lattice_configurations: list[VpcLatticeConfiguration] | None = ... + vpc_lattice_configurations: ( + Sequence[VpcLatticeConfiguration | VpcLatticeConfigurationDict] | None + ) """ An object representing the VPC Lattice configuration for the service being updated. This parameter triggers a new service deployment. """ - gateway_connectors: list[GatewayConnector] | None = ... + gateway_connectors: Sequence[GatewayConnector | GatewayConnectorDict] | None """ The updated set of gateway connectors that connect the service to a gateway ingress path. A service supports no more than one gateway connector. """ - monitoring: MonitoringConfiguration | None = ... + monitoring: MonitoringConfiguration | MonitoringConfigurationDict | None """ The optional monitoring configuration for the service, which defines the resolution for the service-level `CPUUtilization` and @@ -1831,6 +2984,25 @@ class UpdateServicePrimaryTaskSetInput(_SerdeShape): as the primary task set in the deployment. """ +class UpdateServicePrimaryTaskSetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateServicePrimaryTaskSetInput`.""" + + cluster: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the service that the task set exists in. + """ + service: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the service that + the task set exists in. + """ + primary_task_set: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the task set to set + as the primary task set in the deployment. + """ + @dataclass(kw_only=True) class UpdateServicePrimaryTaskSetOutput(_SerdeShape): """Dataclass for UpdateServicePrimaryTaskSetOutput structure.""" @@ -1874,6 +3046,34 @@ class UpdateTaskProtectionInput(_SerdeShape): for 120 minutes (2 hours). """ +class UpdateTaskProtectionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTaskProtectionInput`.""" + + cluster: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the service that the task sets exist in. + """ + tasks: Required[Sequence[str]] + """A list of up to 10 task IDs or full ARN entries.""" + protection_enabled: bool | None + """ + Specify `true` to mark a task for protection and `false` to unset + protection, making it eligible for termination. + """ + expires_in_minutes: int | None + """ + If you set `protectionEnabled` to `true`, you can specify the duration + for task protection in minutes. You can specify a value from 1 minute to + up to 2,880 minutes (48 hours). During this time, your task will not be + terminated by scale-in events from Service Auto Scaling or deployments. + After this time period lapses, `protectionEnabled` will be reset to + `false`. + + If you don't specify the time, then the task is automatically protected + for 120 minutes (2 hours). + """ + @dataclass(kw_only=True) class UpdateTaskProtectionOutput(_SerdeShape): """Dataclass for UpdateTaskProtectionOutput structure.""" @@ -1926,6 +3126,30 @@ class UpdateTaskSetInput(_SerdeShape): keep running in the task set. """ +class UpdateTaskSetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTaskSetInput`.""" + + cluster: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the cluster that + hosts the service that the task set is found in. + """ + service: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the service that + the task set is found in. + """ + task_set: Required[str] + """ + The short name or full Amazon Resource Name (ARN) of the task set to + update. + """ + scale: Required[Scale | ScaleDict] + """ + A floating-point percentage of the desired number of tasks to place and + keep running in the task set. + """ + @dataclass(kw_only=True) class UpdateTaskSetOutput(_SerdeShape): """Dataclass for UpdateTaskSetOutput structure.""" @@ -1959,6 +3183,20 @@ class VCpuCountRangeRequest(_SerdeShape): value are excluded from selection. """ +class VCpuCountRangeRequestDict(TypedDict, total=False): + """Dictionary form of `VCpuCountRangeRequest`.""" + + min: Required[int] + """ + The minimum number of vCPUs. Instance types with fewer vCPUs than this + value are excluded from selection. + """ + max: int | None + """ + The maximum number of vCPUs. Instance types with more vCPUs than this + value are excluded from selection. + """ + class VersionConsistency(UnknownEnumMixin, StrEnum): ENABLED = "enabled" DISABLED = "disabled" @@ -1981,6 +3219,20 @@ class VersionInfo(_SerdeShape): docker_version: str | None = ... """The Docker version that's running on the container instance.""" +class VersionInfoDict(TypedDict, total=False): + """Dictionary form of `VersionInfo`.""" + + agent_version: str | None + """The version number of the Amazon ECS container agent.""" + agent_hash: str | None + """ + The Git commit hash for the Amazon ECS container agent build on the + [amazon-ecs-agent](https://github.com/aws/amazon-ecs-agent) GitHub + repository. + """ + docker_version: str | None + """The Docker version that's running on the container instance.""" + @dataclass(kw_only=True) class Volume(_SerdeShape): """ @@ -2029,7 +3281,7 @@ class Volume(_SerdeShape): Windows containers can mount whole directories on the same drive as `$env:ProgramData`. Windows containers can't mount directories on a different drive, and mount point can't be across drives. For example, - you can mount `C:\\my\\path:C:\\my\\path` and `D:\\:D:`, but not + you can mount `C:\\my\\path:C:\\my\\path` and `D:\\:D:\\`, but not `D:\\my\\path:C:\\my\\path` or `D:\\:C:\\my\\path`. """ docker_volume_configuration: DockerVolumeConfiguration | None = ... @@ -2071,6 +3323,89 @@ class Volume(_SerdeShape): `CreateService`, `UpdateService`, `RunTask` or `StartTask` APIs. """ +class VolumeDict(TypedDict, total=False): + """Dictionary form of `Volume`.""" + + name: str | None + """ + The name of the volume. Up to 255 letters (uppercase and lowercase), + numbers, underscores, and hyphens are allowed. + + When using a volume configured at launch, the `name` is required and + must also be specified as the volume name in the + `ServiceVolumeConfiguration` or `TaskVolumeConfiguration` parameter when + creating your service or standalone task. + + For all other types of volumes, this name is referenced in the + `sourceVolume` parameter of the `mountPoints` object in the container + definition. + + When a volume is using the `efsVolumeConfiguration`, the name is + required. + + When a volume is using the `s3filesVolumeConfiguration`, the name is + required. + """ + host: HostVolumeProperties | HostVolumePropertiesDict | None + """ + This parameter is specified when you use bind mount host volumes. The + contents of the `host` parameter determine whether your bind mount host + volume persists on the host container instance and where it's stored. + If the `host` parameter is empty, then the Docker daemon assigns a host + path for your data volume. However, the data isn't guaranteed to + persist after the containers that are associated with it stop running. + + Windows containers can mount whole directories on the same drive as + `$env:ProgramData`. Windows containers can't mount directories on a + different drive, and mount point can't be across drives. For example, + you can mount `C:\\my\\path:C:\\my\\path` and `D:\\:D:\\`, but not + `D:\\my\\path:C:\\my\\path` or `D:\\:C:\\my\\path`. + """ + docker_volume_configuration: ( + DockerVolumeConfiguration | DockerVolumeConfigurationDict | None + ) + """ + This parameter is specified when you use Docker volumes. + + Windows containers only support the use of the `local` driver. To use + bind mounts, specify the `host` parameter instead. + + Note: + Docker volumes aren't supported by tasks run on Fargate. + """ + efs_volume_configuration: EFSVolumeConfiguration | EFSVolumeConfigurationDict | None + """ + This parameter is specified when you use an Amazon Elastic File System + file system for task storage. + """ + s3files_volume_configuration: ( + S3FilesVolumeConfiguration | S3FilesVolumeConfigurationDict | None + ) + """ + This parameter is specified when you use an Amazon S3 Files file system + for task storage. + """ + fsx_windows_file_server_volume_configuration: ( + FSxWindowsFileServerVolumeConfiguration + | FSxWindowsFileServerVolumeConfigurationDict + | None + ) + """ + This parameter is specified when you use Amazon FSx for Windows File + Server file system for task storage. + """ + configured_at_launch: bool | None + """ + Indicates whether the volume should be configured at launch time. This + is used to create Amazon EBS volumes for standalone tasks or tasks + created as part of a service. Each task definition revision may only + have one volume configured at launch in the volume configuration. + + To configure a volume at launch time, use this task definition revision + and specify a `volumeConfigurations` object when calling the + `CreateService`, `UpdateService`, `RunTask` or `StartTask` APIs. + """ + @dataclass(kw_only=True) class VolumeFrom(_SerdeShape): """ @@ -2090,6 +3425,21 @@ class VolumeFrom(_SerdeShape): volume. The default value is `false`. """ +class VolumeFromDict(TypedDict, total=False): + """Dictionary form of `VolumeFrom`.""" + + source_container: str | None + """ + The name of another container within the same task definition to mount + volumes from. + """ + read_only: bool | None + """ + If this value is `true`, the container has read-only access to the + volume. If this value is `false`, then the container can write to the + volume. The default value is `false`. + """ + @dataclass(kw_only=True) class VpcLatticeAdvancedConfiguration(_SerdeShape): """ @@ -2118,6 +3468,26 @@ class VpcLatticeAdvancedConfiguration(_SerdeShape): listener for routing test traffic. """ +class VpcLatticeAdvancedConfigurationDict(TypedDict, total=False): + """Dictionary form of `VpcLatticeAdvancedConfiguration`.""" + + alternate_target_group_arn: str | None + """ + The Amazon Resource Name (ARN) of the alternate target group associated + with the VPC Lattice Configuration for Amazon ECS blue/green + deployments. + """ + production_listener_rule: str | None + """ + The Amazon Resource Name (ARN) that identifies the production listener + rule or listener for routing production traffic. + """ + test_listener_rule: str | None + """ + The Amazon Resource Name (ARN) that identifies the test listener rule or + listener for routing test traffic. + """ + @dataclass(kw_only=True) class VpcLatticeConfiguration(_SerdeShape): """ @@ -2153,3 +3523,36 @@ class VpcLatticeConfiguration(_SerdeShape): deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-deployment-implementation.html) in the *Amazon Elastic Container Service Developer Guide*. """ + +class VpcLatticeConfigurationDict(TypedDict, total=False): + """Dictionary form of `VpcLatticeConfiguration`.""" + + role_arn: Required[str] + """ + The ARN of the IAM role to associate with this VPC Lattice + configuration. This is the Amazon ECS infrastructure IAM role that is + used to manage your VPC Lattice infrastructure. + """ + target_group_arn: Required[str] + """ + The full Amazon Resource Name (ARN) of the target group or groups + associated with the VPC Lattice configuration that the Amazon ECS tasks + will be registered to. + """ + port_name: Required[str] + """ + The name of the port mapping to register in the VPC Lattice target + group. This is the name of the `portMapping` you defined in your task + definition. + """ + advanced_configuration: ( + VpcLatticeAdvancedConfiguration | VpcLatticeAdvancedConfigurationDict | None + ) + """ + The advanced settings for VPC Lattice used in blue/green deployments. + Specify the alternate target group and listener rules required for + traffic shifting during blue/green deployments. For more information, + see [Required resources for Amazon ECS blue/green + deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-deployment-implementation.html) + in the *Amazon Elastic Container Service Developer Guide*. + """ diff --git a/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/schemas.py b/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/schemas.py index 6595c6530..adb730a3b 100644 --- a/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/schemas.py +++ b/clients/aws-sdk-ecs/src/aws_sdk_ecs/_private/schemas.py @@ -863,7 +863,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-ecs/src/aws_sdk_ecs/aio/client.py b/clients/aws-sdk-ecs/src/aws_sdk_ecs/aio/client.py index 8bf5e5b45..941905260 100644 --- a/clients/aws-sdk-ecs/src/aws_sdk_ecs/aio/client.py +++ b/clients/aws-sdk-ecs/src/aws_sdk_ecs/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,181 +20,93 @@ if TYPE_CHECKING: from ..models import ( - AssociateGatewayWithClusterInput, AssociateGatewayWithClusterOutput, - ContinueServiceDeploymentInput, ContinueServiceDeploymentOutput, - CreateCapacityProviderInput, CreateCapacityProviderOutput, - CreateClusterInput, CreateClusterOutput, - CreateDaemonInput, CreateDaemonOutput, - CreateExpressGatewayServiceInput, CreateExpressGatewayServiceOutput, - CreateGatewayInput, CreateGatewayOutput, - CreateServiceInput, CreateServiceOutput, - CreateTaskSetInput, CreateTaskSetOutput, - DeleteAccountSettingInput, DeleteAccountSettingOutput, - DeleteAttributesInput, DeleteAttributesOutput, - DeleteCapacityProviderInput, DeleteCapacityProviderOutput, - DeleteClusterInput, DeleteClusterOutput, - DeleteDaemonInput, DeleteDaemonOutput, - DeleteDaemonTaskDefinitionInput, DeleteDaemonTaskDefinitionOutput, - DeleteExpressGatewayServiceInput, DeleteExpressGatewayServiceOutput, - DeleteGatewayInput, DeleteGatewayOutput, - DeleteServiceInput, DeleteServiceOutput, - DeleteTaskDefinitionsInput, DeleteTaskDefinitionsOutput, - DeleteTaskSetInput, DeleteTaskSetOutput, - DeregisterContainerInstanceInput, DeregisterContainerInstanceOutput, - DeregisterTaskDefinitionInput, DeregisterTaskDefinitionOutput, - DescribeCapacityProvidersInput, DescribeCapacityProvidersOutput, - DescribeClustersInput, DescribeClustersOutput, - DescribeContainerInstancesInput, DescribeContainerInstancesOutput, - DescribeDaemonDeploymentsInput, DescribeDaemonDeploymentsOutput, - DescribeDaemonInput, DescribeDaemonOutput, - DescribeDaemonRevisionsInput, DescribeDaemonRevisionsOutput, - DescribeDaemonTaskDefinitionInput, DescribeDaemonTaskDefinitionOutput, - DescribeExpressGatewayServiceInput, DescribeExpressGatewayServiceOutput, - DescribeGatewayInput, DescribeGatewayOutput, - DescribeGatewayResourcesInput, DescribeGatewayResourcesOutput, - DescribeGatewayRouteInput, DescribeGatewayRouteOutput, - DescribeServiceDeploymentsInput, DescribeServiceDeploymentsOutput, - DescribeServiceRevisionsInput, DescribeServiceRevisionsOutput, - DescribeServicesInput, DescribeServicesOutput, - DescribeTaskDefinitionInput, DescribeTaskDefinitionOutput, - DescribeTaskSetsInput, DescribeTaskSetsOutput, - DescribeTasksInput, DescribeTasksOutput, - DisassociateGatewayFromClusterInput, DisassociateGatewayFromClusterOutput, - DiscoverPollEndpointInput, DiscoverPollEndpointOutput, - ExecuteCommandInput, ExecuteCommandOutput, - GetTaskProtectionInput, GetTaskProtectionOutput, - ListAccountSettingsInput, ListAccountSettingsOutput, - ListAttributesInput, ListAttributesOutput, - ListClustersInput, ListClustersOutput, - ListContainerInstancesInput, ListContainerInstancesOutput, - ListDaemonDeploymentsInput, ListDaemonDeploymentsOutput, - ListDaemonTaskDefinitionsInput, ListDaemonTaskDefinitionsOutput, - ListDaemonsInput, ListDaemonsOutput, - ListGatewayClusterAssociationsInput, ListGatewayClusterAssociationsOutput, - ListGatewayRoutesInput, ListGatewayRoutesOutput, - ListGatewaysInput, ListGatewaysOutput, - ListServiceDeploymentsInput, ListServiceDeploymentsOutput, - ListServicesByNamespaceInput, ListServicesByNamespaceOutput, - ListServicesInput, ListServicesOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListTaskDefinitionFamiliesInput, ListTaskDefinitionFamiliesOutput, - ListTaskDefinitionsInput, ListTaskDefinitionsOutput, - ListTasksInput, ListTasksOutput, - PutAccountSettingDefaultInput, PutAccountSettingDefaultOutput, - PutAccountSettingInput, PutAccountSettingOutput, - PutAttributesInput, PutAttributesOutput, - PutClusterCapacityProvidersInput, PutClusterCapacityProvidersOutput, - RegisterContainerInstanceInput, RegisterContainerInstanceOutput, - RegisterDaemonTaskDefinitionInput, RegisterDaemonTaskDefinitionOutput, - RegisterTaskDefinitionInput, RegisterTaskDefinitionOutput, - RunTaskInput, RunTaskOutput, - StartTaskInput, StartTaskOutput, - StopServiceDeploymentInput, StopServiceDeploymentOutput, - StopTaskInput, StopTaskOutput, - SubmitAttachmentStateChangesInput, SubmitAttachmentStateChangesOutput, - SubmitContainerStateChangeInput, SubmitContainerStateChangeOutput, - SubmitTaskStateChangeInput, SubmitTaskStateChangeOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateCapacityProviderInput, UpdateCapacityProviderOutput, - UpdateClusterInput, UpdateClusterOutput, - UpdateClusterSettingsInput, UpdateClusterSettingsOutput, - UpdateContainerAgentInput, UpdateContainerAgentOutput, - UpdateContainerInstancesStateInput, UpdateContainerInstancesStateOutput, - UpdateDaemonInput, UpdateDaemonOutput, - UpdateExpressGatewayServiceInput, UpdateExpressGatewayServiceOutput, - UpdateGatewayInput, UpdateGatewayOutput, - UpdateServiceInput, UpdateServiceOutput, - UpdateServicePrimaryTaskSetInput, UpdateServicePrimaryTaskSetOutput, - UpdateTaskProtectionInput, UpdateTaskProtectionOutput, - UpdateTaskSetInput, UpdateTaskSetOutput, ) @@ -224,12 +136,25 @@ class AsyncECSClient(AsyncClient[AsyncECSConfig]): also don't need to worry about scaling your management infrastructure. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def associate_gateway_with_cluster( self, - input: AssociateGatewayWithClusterInput, + request: _models.AssociateGatewayWithClusterInput + | _models.AssociateGatewayWithClusterInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssociateGatewayWithClusterOutput: ... + + @_overload + async def associate_gateway_with_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateGatewayWithClusterInputDict], ) -> AssociateGatewayWithClusterOutput: """ Associates a gateway with an Amazon ECS cluster. After a cluster is @@ -239,8 +164,6 @@ async def associate_gateway_with_cluster( to 5 gateways. Args: - input: - An instance of `AssociateGatewayWithClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -250,12 +173,34 @@ async def associate_gateway_with_cluster( Returns: An instance of `AssociateGatewayWithClusterOutput`. """ + + async def associate_gateway_with_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateGatewayWithClusterOutput: return await self._invoke( - input, _models.ASSOCIATE_GATEWAY_WITH_CLUSTER, [], plugins + self._select_input(_models.ASSOCIATE_GATEWAY_WITH_CLUSTER, args, kwargs), + _models.ASSOCIATE_GATEWAY_WITH_CLUSTER, + [], + plugins, ) + @_overload + async def continue_service_deployment( + self, + request: _models.ContinueServiceDeploymentInput + | _models.ContinueServiceDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ContinueServiceDeploymentOutput: ... + + @_overload async def continue_service_deployment( - self, input: ContinueServiceDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ContinueServiceDeploymentInputDict], ) -> ContinueServiceDeploymentOutput: """ Continues or rolls back an Amazon ECS service deployment that is paused @@ -275,8 +220,6 @@ async def continue_service_deployment( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `ContinueServiceDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -286,12 +229,34 @@ async def continue_service_deployment( Returns: An instance of `ContinueServiceDeploymentOutput`. """ + + async def continue_service_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ContinueServiceDeploymentOutput: return await self._invoke( - input, _models.CONTINUE_SERVICE_DEPLOYMENT, [], plugins + self._select_input(_models.CONTINUE_SERVICE_DEPLOYMENT, args, kwargs), + _models.CONTINUE_SERVICE_DEPLOYMENT, + [], + plugins, ) + @_overload async def create_capacity_provider( - self, input: CreateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateCapacityProviderInput + | _models.CreateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityProviderOutput: ... + + @_overload + async def create_capacity_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityProviderInputDict], ) -> CreateCapacityProviderOutput: """ Creates a capacity provider. Capacity providers are associated with a @@ -301,8 +266,6 @@ async def create_capacity_provider( `FARGATE` and `FARGATE_SPOT` capacity providers. Args: - input: - An instance of `CreateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -312,10 +275,33 @@ async def create_capacity_provider( Returns: An instance of `CreateCapacityProviderOutput`. """ - return await self._invoke(input, _models.CREATE_CAPACITY_PROVIDER, [], plugins) + async def create_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.CREATE_CAPACITY_PROVIDER, args, kwargs), + _models.CREATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def create_cluster( + self, + request: _models.CreateClusterInput | _models.CreateClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateClusterOutput: ... + + @_overload async def create_cluster( - self, input: CreateClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateClusterInputDict], ) -> CreateClusterOutput: """ Creates a new Amazon ECS cluster. By default, your account receives a @@ -335,8 +321,6 @@ async def create_cluster( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `CreateClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -346,10 +330,33 @@ async def create_cluster( Returns: An instance of `CreateClusterOutput`. """ - return await self._invoke(input, _models.CREATE_CLUSTER, [], plugins) + async def create_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateClusterOutput: + return await self._invoke( + self._select_input(_models.CREATE_CLUSTER, args, kwargs), + _models.CREATE_CLUSTER, + [], + plugins, + ) + + @_overload + async def create_daemon( + self, + request: _models.CreateDaemonInput | _models.CreateDaemonInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDaemonOutput: ... + + @_overload async def create_daemon( - self, input: CreateDaemonInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDaemonInputDict], ) -> CreateDaemonOutput: """ Creates a new daemon in the specified cluster and capacity providers. A @@ -370,8 +377,6 @@ async def create_daemon( Capacity Providers. Args: - input: - An instance of `CreateDaemonInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -381,12 +386,34 @@ async def create_daemon( Returns: An instance of `CreateDaemonOutput`. """ - return await self._invoke(input, _models.CREATE_DAEMON, [], plugins) + async def create_daemon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDaemonOutput: + return await self._invoke( + self._select_input(_models.CREATE_DAEMON, args, kwargs), + _models.CREATE_DAEMON, + [], + plugins, + ) + + @_overload + async def create_express_gateway_service( + self, + request: _models.CreateExpressGatewayServiceInput + | _models.CreateExpressGatewayServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateExpressGatewayServiceOutput: ... + + @_overload async def create_express_gateway_service( self, - input: CreateExpressGatewayServiceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateExpressGatewayServiceInputDict], ) -> CreateExpressGatewayServiceOutput: """ Creates an Express service that simplifies deploying containerized web @@ -404,8 +431,6 @@ async def create_express_gateway_service( for managing Amazon Web Services resources on your behalf. Args: - input: - An instance of `CreateExpressGatewayServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -415,12 +440,33 @@ async def create_express_gateway_service( Returns: An instance of `CreateExpressGatewayServiceOutput`. """ + + async def create_express_gateway_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateExpressGatewayServiceOutput: return await self._invoke( - input, _models.CREATE_EXPRESS_GATEWAY_SERVICE, [], plugins + self._select_input(_models.CREATE_EXPRESS_GATEWAY_SERVICE, args, kwargs), + _models.CREATE_EXPRESS_GATEWAY_SERVICE, + [], + plugins, ) + @_overload async def create_gateway( - self, input: CreateGatewayInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateGatewayInput | _models.CreateGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayOutput: ... + + @_overload + async def create_gateway( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayInputDict], ) -> CreateGatewayOutput: """ Creates a gateway. A gateway defines and dynamically manages ingress @@ -435,8 +481,6 @@ async def create_gateway( the infrastructure role that you specify in `infrastructureRoleArn`. Args: - input: - An instance of `CreateGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -446,10 +490,33 @@ async def create_gateway( Returns: An instance of `CreateGatewayOutput`. """ - return await self._invoke(input, _models.CREATE_GATEWAY, [], plugins) + async def create_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayOutput: + return await self._invoke( + self._select_input(_models.CREATE_GATEWAY, args, kwargs), + _models.CREATE_GATEWAY, + [], + plugins, + ) + + @_overload + async def create_service( + self, + request: _models.CreateServiceInput | _models.CreateServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateServiceOutput: ... + + @_overload async def create_service( - self, input: CreateServiceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateServiceInputDict], ) -> CreateServiceOutput: """ Runs and maintains your desired number of tasks from a specified task @@ -654,8 +721,6 @@ async def create_service( in the *Amazon Elastic Container Service Developer Guide* Args: - input: - An instance of `CreateServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -665,10 +730,33 @@ async def create_service( Returns: An instance of `CreateServiceOutput`. """ - return await self._invoke(input, _models.CREATE_SERVICE, [], plugins) + async def create_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateServiceOutput: + return await self._invoke( + self._select_input(_models.CREATE_SERVICE, args, kwargs), + _models.CREATE_SERVICE, + [], + plugins, + ) + + @_overload + async def create_task_set( + self, + request: _models.CreateTaskSetInput | _models.CreateTaskSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTaskSetOutput: ... + + @_overload async def create_task_set( - self, input: CreateTaskSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTaskSetInputDict], ) -> CreateTaskSetOutput: """ Create a task set in the specified cluster and service. This is used @@ -689,8 +777,6 @@ async def create_task_set( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `CreateTaskSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -700,18 +786,40 @@ async def create_task_set( Returns: An instance of `CreateTaskSetOutput`. """ - return await self._invoke(input, _models.CREATE_TASK_SET, [], plugins) + async def create_task_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTaskSetOutput: + return await self._invoke( + self._select_input(_models.CREATE_TASK_SET, args, kwargs), + _models.CREATE_TASK_SET, + [], + plugins, + ) + + @_overload + async def delete_account_setting( + self, + request: _models.DeleteAccountSettingInput + | _models.DeleteAccountSettingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAccountSettingOutput: ... + + @_overload async def delete_account_setting( - self, input: DeleteAccountSettingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAccountSettingInputDict], ) -> DeleteAccountSettingOutput: """ Disables an account setting for a specified user, role, or the root user for an account. Args: - input: - An instance of `DeleteAccountSettingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -721,17 +829,38 @@ async def delete_account_setting( Returns: An instance of `DeleteAccountSettingOutput`. """ - return await self._invoke(input, _models.DELETE_ACCOUNT_SETTING, [], plugins) + async def delete_account_setting( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAccountSettingOutput: + return await self._invoke( + self._select_input(_models.DELETE_ACCOUNT_SETTING, args, kwargs), + _models.DELETE_ACCOUNT_SETTING, + [], + plugins, + ) + + @_overload + async def delete_attributes( + self, + request: _models.DeleteAttributesInput | _models.DeleteAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAttributesOutput: ... + + @_overload async def delete_attributes( - self, input: DeleteAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAttributesInputDict], ) -> DeleteAttributesOutput: """ Deletes one or more custom attributes from an Amazon ECS resource. Args: - input: - An instance of `DeleteAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -741,10 +870,34 @@ async def delete_attributes( Returns: An instance of `DeleteAttributesOutput`. """ - return await self._invoke(input, _models.DELETE_ATTRIBUTES, [], plugins) + async def delete_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAttributesOutput: + return await self._invoke( + self._select_input(_models.DELETE_ATTRIBUTES, args, kwargs), + _models.DELETE_ATTRIBUTES, + [], + plugins, + ) + + @_overload + async def delete_capacity_provider( + self, + request: _models.DeleteCapacityProviderInput + | _models.DeleteCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCapacityProviderOutput: ... + + @_overload async def delete_capacity_provider( - self, input: DeleteCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityProviderInputDict], ) -> DeleteCapacityProviderOutput: """ Deletes the specified capacity provider. @@ -769,8 +922,6 @@ async def delete_capacity_provider( or delete the cluster. Args: - input: - An instance of `DeleteCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -780,10 +931,33 @@ async def delete_capacity_provider( Returns: An instance of `DeleteCapacityProviderOutput`. """ - return await self._invoke(input, _models.DELETE_CAPACITY_PROVIDER, [], plugins) + async def delete_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.DELETE_CAPACITY_PROVIDER, args, kwargs), + _models.DELETE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def delete_cluster( + self, + request: _models.DeleteClusterInput | _models.DeleteClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClusterOutput: ... + + @_overload async def delete_cluster( - self, input: DeleteClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClusterInputDict], ) -> DeleteClusterOutput: """ Deletes the specified cluster. The cluster transitions to the `INACTIVE` @@ -799,8 +973,6 @@ async def delete_cluster( [DeregisterContainerInstance](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterContainerInstance.html). Args: - input: - An instance of `DeleteClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -810,10 +982,33 @@ async def delete_cluster( Returns: An instance of `DeleteClusterOutput`. """ - return await self._invoke(input, _models.DELETE_CLUSTER, [], plugins) + async def delete_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClusterOutput: + return await self._invoke( + self._select_input(_models.DELETE_CLUSTER, args, kwargs), + _models.DELETE_CLUSTER, + [], + plugins, + ) + + @_overload + async def delete_daemon( + self, + request: _models.DeleteDaemonInput | _models.DeleteDaemonInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDaemonOutput: ... + + @_overload async def delete_daemon( - self, input: DeleteDaemonInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDaemonInputDict], ) -> DeleteDaemonOutput: """ Deletes the specified daemon. The daemon must be in an `ACTIVE` state to @@ -828,8 +1023,6 @@ async def delete_daemon( Capacity Providers. Args: - input: - An instance of `DeleteDaemonInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -839,12 +1032,34 @@ async def delete_daemon( Returns: An instance of `DeleteDaemonOutput`. """ - return await self._invoke(input, _models.DELETE_DAEMON, [], plugins) + async def delete_daemon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDaemonOutput: + return await self._invoke( + self._select_input(_models.DELETE_DAEMON, args, kwargs), + _models.DELETE_DAEMON, + [], + plugins, + ) + + @_overload async def delete_daemon_task_definition( self, - input: DeleteDaemonTaskDefinitionInput, + request: _models.DeleteDaemonTaskDefinitionInput + | _models.DeleteDaemonTaskDefinitionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteDaemonTaskDefinitionOutput: ... + + @_overload + async def delete_daemon_task_definition( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDaemonTaskDefinitionInputDict], ) -> DeleteDaemonTaskDefinitionOutput: """ Deletes the specified daemon task definition. After a daemon task @@ -855,8 +1070,6 @@ async def delete_daemon_task_definition( A daemon task definition must be in an `ACTIVE` state to be deleted. Args: - input: - An instance of `DeleteDaemonTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -866,14 +1079,34 @@ async def delete_daemon_task_definition( Returns: An instance of `DeleteDaemonTaskDefinitionOutput`. """ + + async def delete_daemon_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDaemonTaskDefinitionOutput: return await self._invoke( - input, _models.DELETE_DAEMON_TASK_DEFINITION, [], plugins + self._select_input(_models.DELETE_DAEMON_TASK_DEFINITION, args, kwargs), + _models.DELETE_DAEMON_TASK_DEFINITION, + [], + plugins, ) + @_overload + async def delete_express_gateway_service( + self, + request: _models.DeleteExpressGatewayServiceInput + | _models.DeleteExpressGatewayServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteExpressGatewayServiceOutput: ... + + @_overload async def delete_express_gateway_service( self, - input: DeleteExpressGatewayServiceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteExpressGatewayServiceInputDict], ) -> DeleteExpressGatewayServiceOutput: """ Deletes an Express service and removes all associated Amazon Web @@ -889,8 +1122,6 @@ async def delete_express_gateway_service( service is no longer needed before deletion. Args: - input: - An instance of `DeleteExpressGatewayServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -900,12 +1131,33 @@ async def delete_express_gateway_service( Returns: An instance of `DeleteExpressGatewayServiceOutput`. """ + + async def delete_express_gateway_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteExpressGatewayServiceOutput: return await self._invoke( - input, _models.DELETE_EXPRESS_GATEWAY_SERVICE, [], plugins + self._select_input(_models.DELETE_EXPRESS_GATEWAY_SERVICE, args, kwargs), + _models.DELETE_EXPRESS_GATEWAY_SERVICE, + [], + plugins, ) + @_overload + async def delete_gateway( + self, + request: _models.DeleteGatewayInput | _models.DeleteGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayOutput: ... + + @_overload async def delete_gateway( - self, input: DeleteGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayInputDict], ) -> DeleteGatewayOutput: """ Deletes a gateway. Before you can delete a gateway, deletion protection @@ -916,8 +1168,6 @@ async def delete_gateway( subsequent requests for it return a `GatewayNotFoundException`. Args: - input: - An instance of `DeleteGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -927,10 +1177,33 @@ async def delete_gateway( Returns: An instance of `DeleteGatewayOutput`. """ - return await self._invoke(input, _models.DELETE_GATEWAY, [], plugins) + async def delete_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayOutput: + return await self._invoke( + self._select_input(_models.DELETE_GATEWAY, args, kwargs), + _models.DELETE_GATEWAY, + [], + plugins, + ) + + @_overload + async def delete_service( + self, + request: _models.DeleteServiceInput | _models.DeleteServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteServiceOutput: ... + + @_overload async def delete_service( - self, input: DeleteServiceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteServiceInputDict], ) -> DeleteServiceOutput: """ Deletes a specified service within a cluster. You can delete a service @@ -959,8 +1232,6 @@ async def delete_service( service in either `ACTIVE` or `DRAINING` status, you receive an error. Args: - input: - An instance of `DeleteServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -970,10 +1241,34 @@ async def delete_service( Returns: An instance of `DeleteServiceOutput`. """ - return await self._invoke(input, _models.DELETE_SERVICE, [], plugins) + async def delete_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteServiceOutput: + return await self._invoke( + self._select_input(_models.DELETE_SERVICE, args, kwargs), + _models.DELETE_SERVICE, + [], + plugins, + ) + + @_overload + async def delete_task_definitions( + self, + request: _models.DeleteTaskDefinitionsInput + | _models.DeleteTaskDefinitionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTaskDefinitionsOutput: ... + + @_overload async def delete_task_definitions( - self, input: DeleteTaskDefinitionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTaskDefinitionsInputDict], ) -> DeleteTaskDefinitionsOutput: """ Deletes one or more task definitions. @@ -1005,8 +1300,6 @@ async def delete_task_definitions( that name. Args: - input: - An instance of `DeleteTaskDefinitionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1016,10 +1309,33 @@ async def delete_task_definitions( Returns: An instance of `DeleteTaskDefinitionsOutput`. """ - return await self._invoke(input, _models.DELETE_TASK_DEFINITIONS, [], plugins) + async def delete_task_definitions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTaskDefinitionsOutput: + return await self._invoke( + self._select_input(_models.DELETE_TASK_DEFINITIONS, args, kwargs), + _models.DELETE_TASK_DEFINITIONS, + [], + plugins, + ) + + @_overload + async def delete_task_set( + self, + request: _models.DeleteTaskSetInput | _models.DeleteTaskSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTaskSetOutput: ... + + @_overload async def delete_task_set( - self, input: DeleteTaskSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTaskSetInputDict], ) -> DeleteTaskSetOutput: """ Deletes a specified task set within a service. This is used when a @@ -1029,8 +1345,6 @@ async def delete_task_set( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `DeleteTaskSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1040,12 +1354,34 @@ async def delete_task_set( Returns: An instance of `DeleteTaskSetOutput`. """ - return await self._invoke(input, _models.DELETE_TASK_SET, [], plugins) + async def delete_task_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTaskSetOutput: + return await self._invoke( + self._select_input(_models.DELETE_TASK_SET, args, kwargs), + _models.DELETE_TASK_SET, + [], + plugins, + ) + + @_overload + async def deregister_container_instance( + self, + request: _models.DeregisterContainerInstanceInput + | _models.DeregisterContainerInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterContainerInstanceOutput: ... + + @_overload async def deregister_container_instance( self, - input: DeregisterContainerInstanceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterContainerInstanceInputDict], ) -> DeregisterContainerInstanceOutput: """ Deregisters an Amazon ECS container instance from the specified cluster. @@ -1068,8 +1404,6 @@ async def deregister_container_instance( when terminated). Args: - input: - An instance of `DeregisterContainerInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1079,12 +1413,34 @@ async def deregister_container_instance( Returns: An instance of `DeregisterContainerInstanceOutput`. """ + + async def deregister_container_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterContainerInstanceOutput: return await self._invoke( - input, _models.DEREGISTER_CONTAINER_INSTANCE, [], plugins + self._select_input(_models.DEREGISTER_CONTAINER_INSTANCE, args, kwargs), + _models.DEREGISTER_CONTAINER_INSTANCE, + [], + plugins, ) + @_overload + async def deregister_task_definition( + self, + request: _models.DeregisterTaskDefinitionInput + | _models.DeregisterTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterTaskDefinitionOutput: ... + + @_overload async def deregister_task_definition( - self, input: DeregisterTaskDefinitionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterTaskDefinitionInputDict], ) -> DeregisterTaskDefinitionOutput: """ Deregisters the specified task definition by family and revision. Upon @@ -1112,8 +1468,6 @@ async def deregister_task_definition( [DeleteTaskDefinitions](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskDefinitions.html). Args: - input: - An instance of `DeregisterTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1123,19 +1477,39 @@ async def deregister_task_definition( Returns: An instance of `DeregisterTaskDefinitionOutput`. """ + + async def deregister_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterTaskDefinitionOutput: return await self._invoke( - input, _models.DEREGISTER_TASK_DEFINITION, [], plugins + self._select_input(_models.DEREGISTER_TASK_DEFINITION, args, kwargs), + _models.DEREGISTER_TASK_DEFINITION, + [], + plugins, ) + @_overload + async def describe_capacity_providers( + self, + request: _models.DescribeCapacityProvidersInput + | _models.DescribeCapacityProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityProvidersOutput: ... + + @_overload async def describe_capacity_providers( - self, input: DescribeCapacityProvidersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityProvidersInputDict], ) -> DescribeCapacityProvidersOutput: """ Describes one or more of your capacity providers. Args: - input: - An instance of `DescribeCapacityProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1145,12 +1519,33 @@ async def describe_capacity_providers( Returns: An instance of `DescribeCapacityProvidersOutput`. """ + + async def describe_capacity_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityProvidersOutput: return await self._invoke( - input, _models.DESCRIBE_CAPACITY_PROVIDERS, [], plugins + self._select_input(_models.DESCRIBE_CAPACITY_PROVIDERS, args, kwargs), + _models.DESCRIBE_CAPACITY_PROVIDERS, + [], + plugins, ) + @_overload + async def describe_clusters( + self, + request: _models.DescribeClustersInput | _models.DescribeClustersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClustersOutput: ... + + @_overload async def describe_clusters( - self, input: DescribeClustersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClustersInputDict], ) -> DescribeClustersOutput: """ Describes one or more of your clusters. @@ -1160,8 +1555,6 @@ async def describe_clusters( on GitHub. Args: - input: - An instance of `DescribeClustersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1171,20 +1564,40 @@ async def describe_clusters( Returns: An instance of `DescribeClustersOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CLUSTERS, [], plugins) + async def describe_clusters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClustersOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CLUSTERS, args, kwargs), + _models.DESCRIBE_CLUSTERS, + [], + plugins, + ) + + @_overload + async def describe_container_instances( + self, + request: _models.DescribeContainerInstancesInput + | _models.DescribeContainerInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeContainerInstancesOutput: ... + + @_overload async def describe_container_instances( self, - input: DescribeContainerInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeContainerInstancesInputDict], ) -> DescribeContainerInstancesOutput: """ Describes one or more container instances. Returns metadata about each container instance requested. Args: - input: - An instance of `DescribeContainerInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1194,19 +1607,38 @@ async def describe_container_instances( Returns: An instance of `DescribeContainerInstancesOutput`. """ + + async def describe_container_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeContainerInstancesOutput: return await self._invoke( - input, _models.DESCRIBE_CONTAINER_INSTANCES, [], plugins + self._select_input(_models.DESCRIBE_CONTAINER_INSTANCES, args, kwargs), + _models.DESCRIBE_CONTAINER_INSTANCES, + [], + plugins, ) + @_overload + async def describe_daemon( + self, + request: _models.DescribeDaemonInput | _models.DescribeDaemonInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDaemonOutput: ... + + @_overload async def describe_daemon( - self, input: DescribeDaemonInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDaemonInputDict], ) -> DescribeDaemonOutput: """ Describes the specified daemon. Args: - input: - An instance of `DescribeDaemonInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1216,10 +1648,34 @@ async def describe_daemon( Returns: An instance of `DescribeDaemonOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DAEMON, [], plugins) + async def describe_daemon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDaemonOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DAEMON, args, kwargs), + _models.DESCRIBE_DAEMON, + [], + plugins, + ) + + @_overload async def describe_daemon_deployments( - self, input: DescribeDaemonDeploymentsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeDaemonDeploymentsInput + | _models.DescribeDaemonDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDaemonDeploymentsOutput: ... + + @_overload + async def describe_daemon_deployments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDaemonDeploymentsInputDict], ) -> DescribeDaemonDeploymentsOutput: """ Describes one or more of your daemon deployments. @@ -1230,8 +1686,6 @@ async def describe_daemon_deployments( rollback capabilities. Args: - input: - An instance of `DescribeDaemonDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1241,12 +1695,34 @@ async def describe_daemon_deployments( Returns: An instance of `DescribeDaemonDeploymentsOutput`. """ + + async def describe_daemon_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDaemonDeploymentsOutput: return await self._invoke( - input, _models.DESCRIBE_DAEMON_DEPLOYMENTS, [], plugins + self._select_input(_models.DESCRIBE_DAEMON_DEPLOYMENTS, args, kwargs), + _models.DESCRIBE_DAEMON_DEPLOYMENTS, + [], + plugins, ) + @_overload async def describe_daemon_revisions( - self, input: DescribeDaemonRevisionsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeDaemonRevisionsInput + | _models.DescribeDaemonRevisionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDaemonRevisionsOutput: ... + + @_overload + async def describe_daemon_revisions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDaemonRevisionsInputDict], ) -> DescribeDaemonRevisionsOutput: """ Describes one or more of your daemon revisions. @@ -1257,8 +1733,6 @@ async def describe_daemon_revisions( revisions are immutable. Args: - input: - An instance of `DescribeDaemonRevisionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1268,12 +1742,34 @@ async def describe_daemon_revisions( Returns: An instance of `DescribeDaemonRevisionsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DAEMON_REVISIONS, [], plugins) + async def describe_daemon_revisions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDaemonRevisionsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DAEMON_REVISIONS, args, kwargs), + _models.DESCRIBE_DAEMON_REVISIONS, + [], + plugins, + ) + + @_overload async def describe_daemon_task_definition( self, - input: DescribeDaemonTaskDefinitionInput, + request: _models.DescribeDaemonTaskDefinitionInput + | _models.DescribeDaemonTaskDefinitionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDaemonTaskDefinitionOutput: ... + + @_overload + async def describe_daemon_task_definition( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDaemonTaskDefinitionInputDict], ) -> DescribeDaemonTaskDefinitionOutput: """ Describes a daemon task definition. You can specify a `family` and @@ -1282,8 +1778,6 @@ async def describe_daemon_task_definition( revision in that family. Args: - input: - An instance of `DescribeDaemonTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1293,14 +1787,34 @@ async def describe_daemon_task_definition( Returns: An instance of `DescribeDaemonTaskDefinitionOutput`. """ + + async def describe_daemon_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDaemonTaskDefinitionOutput: return await self._invoke( - input, _models.DESCRIBE_DAEMON_TASK_DEFINITION, [], plugins + self._select_input(_models.DESCRIBE_DAEMON_TASK_DEFINITION, args, kwargs), + _models.DESCRIBE_DAEMON_TASK_DEFINITION, + [], + plugins, ) + @_overload async def describe_express_gateway_service( self, - input: DescribeExpressGatewayServiceInput, + request: _models.DescribeExpressGatewayServiceInput + | _models.DescribeExpressGatewayServiceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeExpressGatewayServiceOutput: ... + + @_overload + async def describe_express_gateway_service( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExpressGatewayServiceInputDict], ) -> DescribeExpressGatewayServiceOutput: """ Retrieves detailed information about an Express service, including @@ -1315,8 +1829,6 @@ async def describe_express_gateway_service( resource tags. Args: - input: - An instance of `DescribeExpressGatewayServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1326,20 +1838,39 @@ async def describe_express_gateway_service( Returns: An instance of `DescribeExpressGatewayServiceOutput`. """ + + async def describe_express_gateway_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExpressGatewayServiceOutput: return await self._invoke( - input, _models.DESCRIBE_EXPRESS_GATEWAY_SERVICE, [], plugins + self._select_input(_models.DESCRIBE_EXPRESS_GATEWAY_SERVICE, args, kwargs), + _models.DESCRIBE_EXPRESS_GATEWAY_SERVICE, + [], + plugins, ) + @_overload async def describe_gateway( - self, input: DescribeGatewayInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeGatewayInput | _models.DescribeGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGatewayOutput: ... + + @_overload + async def describe_gateway( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGatewayInputDict], ) -> DescribeGatewayOutput: """ Describes a gateway, including its configuration, status, and the type-specific infrastructure settings that it uses. Args: - input: - An instance of `DescribeGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1349,10 +1880,34 @@ async def describe_gateway( Returns: An instance of `DescribeGatewayOutput`. """ - return await self._invoke(input, _models.DESCRIBE_GATEWAY, [], plugins) + async def describe_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGatewayOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_GATEWAY, args, kwargs), + _models.DESCRIBE_GATEWAY, + [], + plugins, + ) + + @_overload async def describe_gateway_resources( - self, input: DescribeGatewayResourcesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeGatewayResourcesInput + | _models.DescribeGatewayResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGatewayResourcesOutput: ... + + @_overload + async def describe_gateway_resources( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGatewayResourcesInputDict], ) -> DescribeGatewayResourcesOutput: """ Returns the infrastructure that a gateway has created and manages, so @@ -1365,8 +1920,6 @@ async def describe_gateway_resources( The results are paginated. Args: - input: - An instance of `DescribeGatewayResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1376,12 +1929,34 @@ async def describe_gateway_resources( Returns: An instance of `DescribeGatewayResourcesOutput`. """ + + async def describe_gateway_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGatewayResourcesOutput: return await self._invoke( - input, _models.DESCRIBE_GATEWAY_RESOURCES, [], plugins + self._select_input(_models.DESCRIBE_GATEWAY_RESOURCES, args, kwargs), + _models.DESCRIBE_GATEWAY_RESOURCES, + [], + plugins, ) + @_overload async def describe_gateway_route( - self, input: DescribeGatewayRouteInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeGatewayRouteInput + | _models.DescribeGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGatewayRouteOutput: ... + + @_overload + async def describe_gateway_route( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGatewayRouteInputDict], ) -> DescribeGatewayRouteOutput: """ Describes a gateway route, including its status, the service it routes @@ -1389,8 +1964,6 @@ async def describe_gateway_route( groups and listener rules, that the gateway manages for it. Args: - input: - An instance of `DescribeGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1400,12 +1973,34 @@ async def describe_gateway_route( Returns: An instance of `DescribeGatewayRouteOutput`. """ - return await self._invoke(input, _models.DESCRIBE_GATEWAY_ROUTE, [], plugins) + async def describe_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGatewayRouteOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_GATEWAY_ROUTE, args, kwargs), + _models.DESCRIBE_GATEWAY_ROUTE, + [], + plugins, + ) + + @_overload async def describe_service_deployments( self, - input: DescribeServiceDeploymentsInput, + request: _models.DescribeServiceDeploymentsInput + | _models.DescribeServiceDeploymentsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeServiceDeploymentsOutput: ... + + @_overload + async def describe_service_deployments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServiceDeploymentsInputDict], ) -> DescribeServiceDeploymentsOutput: """ Describes one or more of your service deployments. @@ -1416,8 +2011,6 @@ async def describe_service_deployments( deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployment.html). Args: - input: - An instance of `DescribeServiceDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1427,12 +2020,34 @@ async def describe_service_deployments( Returns: An instance of `DescribeServiceDeploymentsOutput`. """ + + async def describe_service_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServiceDeploymentsOutput: return await self._invoke( - input, _models.DESCRIBE_SERVICE_DEPLOYMENTS, [], plugins + self._select_input(_models.DESCRIBE_SERVICE_DEPLOYMENTS, args, kwargs), + _models.DESCRIBE_SERVICE_DEPLOYMENTS, + [], + plugins, ) + @_overload async def describe_service_revisions( - self, input: DescribeServiceRevisionsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeServiceRevisionsInput + | _models.DescribeServiceRevisionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeServiceRevisionsOutput: ... + + @_overload + async def describe_service_revisions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServiceRevisionsInputDict], ) -> DescribeServiceRevisionsOutput: """ Describes one or more service revisions. @@ -1447,8 +2062,6 @@ async def describe_service_revisions( 25, 2024. Args: - input: - An instance of `DescribeServiceRevisionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1458,19 +2071,38 @@ async def describe_service_revisions( Returns: An instance of `DescribeServiceRevisionsOutput`. """ + + async def describe_service_revisions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServiceRevisionsOutput: return await self._invoke( - input, _models.DESCRIBE_SERVICE_REVISIONS, [], plugins + self._select_input(_models.DESCRIBE_SERVICE_REVISIONS, args, kwargs), + _models.DESCRIBE_SERVICE_REVISIONS, + [], + plugins, ) + @_overload + async def describe_services( + self, + request: _models.DescribeServicesInput | _models.DescribeServicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeServicesOutput: ... + + @_overload async def describe_services( - self, input: DescribeServicesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServicesInputDict], ) -> DescribeServicesOutput: """ Describes the specified services running in your cluster. Args: - input: - An instance of `DescribeServicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1480,10 +2112,34 @@ async def describe_services( Returns: An instance of `DescribeServicesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_SERVICES, [], plugins) + async def describe_services( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServicesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_SERVICES, args, kwargs), + _models.DESCRIBE_SERVICES, + [], + plugins, + ) + + @_overload + async def describe_task_definition( + self, + request: _models.DescribeTaskDefinitionInput + | _models.DescribeTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTaskDefinitionOutput: ... + + @_overload async def describe_task_definition( - self, input: DescribeTaskDefinitionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTaskDefinitionInputDict], ) -> DescribeTaskDefinitionOutput: """ Describes a task definition. You can specify a `family` and `revision` @@ -1495,8 +2151,6 @@ async def describe_task_definition( or service references them. Args: - input: - An instance of `DescribeTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1506,10 +2160,33 @@ async def describe_task_definition( Returns: An instance of `DescribeTaskDefinitionOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TASK_DEFINITION, [], plugins) + async def describe_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTaskDefinitionOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TASK_DEFINITION, args, kwargs), + _models.DESCRIBE_TASK_DEFINITION, + [], + plugins, + ) + + @_overload + async def describe_tasks( + self, + request: _models.DescribeTasksInput | _models.DescribeTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTasksOutput: ... + + @_overload async def describe_tasks( - self, input: DescribeTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTasksInputDict], ) -> DescribeTasksOutput: """ Describes a specified task or tasks. @@ -1523,8 +2200,6 @@ async def describe_tasks( the response. Args: - input: - An instance of `DescribeTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1534,10 +2209,33 @@ async def describe_tasks( Returns: An instance of `DescribeTasksOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TASKS, [], plugins) + async def describe_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTasksOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TASKS, args, kwargs), + _models.DESCRIBE_TASKS, + [], + plugins, + ) + + @_overload + async def describe_task_sets( + self, + request: _models.DescribeTaskSetsInput | _models.DescribeTaskSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTaskSetsOutput: ... + + @_overload async def describe_task_sets( - self, input: DescribeTaskSetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTaskSetsInputDict], ) -> DescribeTaskSetsOutput: """ Describes the task sets in the specified cluster and service. This is @@ -1547,8 +2245,6 @@ async def describe_task_sets( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `DescribeTaskSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1558,12 +2254,34 @@ async def describe_task_sets( Returns: An instance of `DescribeTaskSetsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TASK_SETS, [], plugins) + async def describe_task_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTaskSetsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TASK_SETS, args, kwargs), + _models.DESCRIBE_TASK_SETS, + [], + plugins, + ) + + @_overload + async def disassociate_gateway_from_cluster( + self, + request: _models.DisassociateGatewayFromClusterInput + | _models.DisassociateGatewayFromClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateGatewayFromClusterOutput: ... + + @_overload async def disassociate_gateway_from_cluster( self, - input: DisassociateGatewayFromClusterInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateGatewayFromClusterInputDict], ) -> DisassociateGatewayFromClusterOutput: """ Removes the association between a gateway and an Amazon ECS cluster. The @@ -1574,8 +2292,6 @@ async def disassociate_gateway_from_cluster( changes are made until the affected services are updated. Args: - input: - An instance of `DisassociateGatewayFromClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1585,12 +2301,34 @@ async def disassociate_gateway_from_cluster( Returns: An instance of `DisassociateGatewayFromClusterOutput`. """ + + async def disassociate_gateway_from_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateGatewayFromClusterOutput: return await self._invoke( - input, _models.DISASSOCIATE_GATEWAY_FROM_CLUSTER, [], plugins + self._select_input(_models.DISASSOCIATE_GATEWAY_FROM_CLUSTER, args, kwargs), + _models.DISASSOCIATE_GATEWAY_FROM_CLUSTER, + [], + plugins, ) + @_overload + async def discover_poll_endpoint( + self, + request: _models.DiscoverPollEndpointInput + | _models.DiscoverPollEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DiscoverPollEndpointOutput: ... + + @_overload async def discover_poll_endpoint( - self, input: DiscoverPollEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DiscoverPollEndpointInputDict], ) -> DiscoverPollEndpointOutput: """ Note: @@ -1600,8 +2338,6 @@ async def discover_poll_endpoint( Returns an endpoint for the Amazon ECS agent to poll for updates. Args: - input: - An instance of `DiscoverPollEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1611,10 +2347,33 @@ async def discover_poll_endpoint( Returns: An instance of `DiscoverPollEndpointOutput`. """ - return await self._invoke(input, _models.DISCOVER_POLL_ENDPOINT, [], plugins) + async def discover_poll_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DiscoverPollEndpointOutput: + return await self._invoke( + self._select_input(_models.DISCOVER_POLL_ENDPOINT, args, kwargs), + _models.DISCOVER_POLL_ENDPOINT, + [], + plugins, + ) + + @_overload + async def execute_command( + self, + request: _models.ExecuteCommandInput | _models.ExecuteCommandInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteCommandOutput: ... + + @_overload async def execute_command( - self, input: ExecuteCommandInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteCommandInputDict], ) -> ExecuteCommandOutput: """ Runs a command remotely on a container within a task. @@ -1630,8 +2389,6 @@ async def execute_command( in the *Amazon ECS Developer Guide*. Args: - input: - An instance of `ExecuteCommandInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1641,17 +2398,38 @@ async def execute_command( Returns: An instance of `ExecuteCommandOutput`. """ - return await self._invoke(input, _models.EXECUTE_COMMAND, [], plugins) + async def execute_command( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteCommandOutput: + return await self._invoke( + self._select_input(_models.EXECUTE_COMMAND, args, kwargs), + _models.EXECUTE_COMMAND, + [], + plugins, + ) + + @_overload + async def get_task_protection( + self, + request: _models.GetTaskProtectionInput | _models.GetTaskProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTaskProtectionOutput: ... + + @_overload async def get_task_protection( - self, input: GetTaskProtectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTaskProtectionInputDict], ) -> GetTaskProtectionOutput: """ Retrieves the protection status of tasks in an Amazon ECS service. Args: - input: - An instance of `GetTaskProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1661,17 +2439,39 @@ async def get_task_protection( Returns: An instance of `GetTaskProtectionOutput`. """ - return await self._invoke(input, _models.GET_TASK_PROTECTION, [], plugins) + async def get_task_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTaskProtectionOutput: + return await self._invoke( + self._select_input(_models.GET_TASK_PROTECTION, args, kwargs), + _models.GET_TASK_PROTECTION, + [], + plugins, + ) + + @_overload + async def list_account_settings( + self, + request: _models.ListAccountSettingsInput + | _models.ListAccountSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAccountSettingsOutput: ... + + @_overload async def list_account_settings( - self, input: ListAccountSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAccountSettingsInputDict], ) -> ListAccountSettingsOutput: """ Lists the account settings for a specified principal. Args: - input: - An instance of `ListAccountSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1681,10 +2481,33 @@ async def list_account_settings( Returns: An instance of `ListAccountSettingsOutput`. """ - return await self._invoke(input, _models.LIST_ACCOUNT_SETTINGS, [], plugins) + async def list_account_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAccountSettingsOutput: + return await self._invoke( + self._select_input(_models.LIST_ACCOUNT_SETTINGS, args, kwargs), + _models.LIST_ACCOUNT_SETTINGS, + [], + plugins, + ) + + @_overload + async def list_attributes( + self, + request: _models.ListAttributesInput | _models.ListAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttributesOutput: ... + + @_overload async def list_attributes( - self, input: ListAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttributesInputDict], ) -> ListAttributesOutput: """ Lists the attributes for Amazon ECS resources within a specified target @@ -1697,8 +2520,6 @@ async def list_attributes( running a Linux AMI (`ecs.os-type=linux`). Args: - input: - An instance of `ListAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1708,17 +2529,38 @@ async def list_attributes( Returns: An instance of `ListAttributesOutput`. """ - return await self._invoke(input, _models.LIST_ATTRIBUTES, [], plugins) + async def list_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttributesOutput: + return await self._invoke( + self._select_input(_models.LIST_ATTRIBUTES, args, kwargs), + _models.LIST_ATTRIBUTES, + [], + plugins, + ) + + @_overload + async def list_clusters( + self, + request: _models.ListClustersInput | _models.ListClustersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListClustersOutput: ... + + @_overload async def list_clusters( - self, input: ListClustersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListClustersInputDict], ) -> ListClustersOutput: """ Returns a list of existing clusters. Args: - input: - An instance of `ListClustersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1728,10 +2570,34 @@ async def list_clusters( Returns: An instance of `ListClustersOutput`. """ - return await self._invoke(input, _models.LIST_CLUSTERS, [], plugins) + async def list_clusters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListClustersOutput: + return await self._invoke( + self._select_input(_models.LIST_CLUSTERS, args, kwargs), + _models.LIST_CLUSTERS, + [], + plugins, + ) + + @_overload async def list_container_instances( - self, input: ListContainerInstancesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListContainerInstancesInput + | _models.ListContainerInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListContainerInstancesOutput: ... + + @_overload + async def list_container_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListContainerInstancesInputDict], ) -> ListContainerInstancesOutput: """ Returns a list of container instances in a specified cluster. You can @@ -1742,8 +2608,6 @@ async def list_container_instances( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `ListContainerInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1753,18 +2617,40 @@ async def list_container_instances( Returns: An instance of `ListContainerInstancesOutput`. """ - return await self._invoke(input, _models.LIST_CONTAINER_INSTANCES, [], plugins) + async def list_container_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListContainerInstancesOutput: + return await self._invoke( + self._select_input(_models.LIST_CONTAINER_INSTANCES, args, kwargs), + _models.LIST_CONTAINER_INSTANCES, + [], + plugins, + ) + + @_overload async def list_daemon_deployments( - self, input: ListDaemonDeploymentsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDaemonDeploymentsInput + | _models.ListDaemonDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDaemonDeploymentsOutput: ... + + @_overload + async def list_daemon_deployments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDaemonDeploymentsInputDict], ) -> ListDaemonDeploymentsOutput: """ Returns a list of daemon deployments for a specified daemon. You can filter the results by status or creation time. Args: - input: - An instance of `ListDaemonDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1774,18 +2660,39 @@ async def list_daemon_deployments( Returns: An instance of `ListDaemonDeploymentsOutput`. """ - return await self._invoke(input, _models.LIST_DAEMON_DEPLOYMENTS, [], plugins) + async def list_daemon_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDaemonDeploymentsOutput: + return await self._invoke( + self._select_input(_models.LIST_DAEMON_DEPLOYMENTS, args, kwargs), + _models.LIST_DAEMON_DEPLOYMENTS, + [], + plugins, + ) + + @_overload async def list_daemons( - self, input: ListDaemonsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDaemonsInput | _models.ListDaemonsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDaemonsOutput: ... + + @_overload + async def list_daemons( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDaemonsInputDict], ) -> ListDaemonsOutput: """ Returns a list of daemons. You can filter the results by cluster or capacity provider. Args: - input: - An instance of `ListDaemonsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1795,10 +2702,34 @@ async def list_daemons( Returns: An instance of `ListDaemonsOutput`. """ - return await self._invoke(input, _models.LIST_DAEMONS, [], plugins) + async def list_daemons( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDaemonsOutput: + return await self._invoke( + self._select_input(_models.LIST_DAEMONS, args, kwargs), + _models.LIST_DAEMONS, + [], + plugins, + ) + + @_overload async def list_daemon_task_definitions( - self, input: ListDaemonTaskDefinitionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDaemonTaskDefinitionsInput + | _models.ListDaemonTaskDefinitionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDaemonTaskDefinitionsOutput: ... + + @_overload + async def list_daemon_task_definitions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDaemonTaskDefinitionsInputDict], ) -> ListDaemonTaskDefinitionsOutput: """ Returns a list of daemon task definitions that are registered to your @@ -1806,8 +2737,6 @@ async def list_daemon_task_definitions( find daemon task definitions that match your criteria. Args: - input: - An instance of `ListDaemonTaskDefinitionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1817,14 +2746,34 @@ async def list_daemon_task_definitions( Returns: An instance of `ListDaemonTaskDefinitionsOutput`. """ + + async def list_daemon_task_definitions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDaemonTaskDefinitionsOutput: return await self._invoke( - input, _models.LIST_DAEMON_TASK_DEFINITIONS, [], plugins + self._select_input(_models.LIST_DAEMON_TASK_DEFINITIONS, args, kwargs), + _models.LIST_DAEMON_TASK_DEFINITIONS, + [], + plugins, ) + @_overload async def list_gateway_cluster_associations( self, - input: ListGatewayClusterAssociationsInput, + request: _models.ListGatewayClusterAssociationsInput + | _models.ListGatewayClusterAssociationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListGatewayClusterAssociationsOutput: ... + + @_overload + async def list_gateway_cluster_associations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayClusterAssociationsInputDict], ) -> ListGatewayClusterAssociationsOutput: """ Returns a list of the associations between gateways and clusters. You @@ -1833,8 +2782,6 @@ async def list_gateway_cluster_associations( operation returns quickly and successfully. Args: - input: - An instance of `ListGatewayClusterAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1844,12 +2791,33 @@ async def list_gateway_cluster_associations( Returns: An instance of `ListGatewayClusterAssociationsOutput`. """ + + async def list_gateway_cluster_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayClusterAssociationsOutput: return await self._invoke( - input, _models.LIST_GATEWAY_CLUSTER_ASSOCIATIONS, [], plugins + self._select_input(_models.LIST_GATEWAY_CLUSTER_ASSOCIATIONS, args, kwargs), + _models.LIST_GATEWAY_CLUSTER_ASSOCIATIONS, + [], + plugins, ) + @_overload async def list_gateway_routes( - self, input: ListGatewayRoutesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGatewayRoutesInput | _models.ListGatewayRoutesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewayRoutesOutput: ... + + @_overload + async def list_gateway_routes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayRoutesInputDict], ) -> ListGatewayRoutesOutput: """ Returns a list of gateway routes. A gateway route represents the @@ -1860,8 +2828,6 @@ async def list_gateway_routes( operation returns quickly and successfully. Args: - input: - An instance of `ListGatewayRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1871,10 +2837,33 @@ async def list_gateway_routes( Returns: An instance of `ListGatewayRoutesOutput`. """ - return await self._invoke(input, _models.LIST_GATEWAY_ROUTES, [], plugins) + async def list_gateway_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayRoutesOutput: + return await self._invoke( + self._select_input(_models.LIST_GATEWAY_ROUTES, args, kwargs), + _models.LIST_GATEWAY_ROUTES, + [], + plugins, + ) + + @_overload + async def list_gateways( + self, + request: _models.ListGatewaysInput | _models.ListGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewaysOutput: ... + + @_overload async def list_gateways( - self, input: ListGatewaysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewaysInputDict], ) -> ListGatewaysOutput: """ Returns a list of gateways in your account. You can filter the results @@ -1883,8 +2872,6 @@ async def list_gateways( successfully. Args: - input: - An instance of `ListGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1894,10 +2881,34 @@ async def list_gateways( Returns: An instance of `ListGatewaysOutput`. """ - return await self._invoke(input, _models.LIST_GATEWAYS, [], plugins) + async def list_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewaysOutput: + return await self._invoke( + self._select_input(_models.LIST_GATEWAYS, args, kwargs), + _models.LIST_GATEWAYS, + [], + plugins, + ) + + @_overload + async def list_service_deployments( + self, + request: _models.ListServiceDeploymentsInput + | _models.ListServiceDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServiceDeploymentsOutput: ... + + @_overload async def list_service_deployments( - self, input: ListServiceDeploymentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServiceDeploymentsInputDict], ) -> ListServiceDeploymentsOutput: """ This operation lists all the service deployments that meet the specified @@ -1911,8 +2922,6 @@ async def list_service_deployments( [DescribeServiceRevisions](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceRevisions.html). Args: - input: - An instance of `ListServiceDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1922,18 +2931,39 @@ async def list_service_deployments( Returns: An instance of `ListServiceDeploymentsOutput`. """ - return await self._invoke(input, _models.LIST_SERVICE_DEPLOYMENTS, [], plugins) + async def list_service_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServiceDeploymentsOutput: + return await self._invoke( + self._select_input(_models.LIST_SERVICE_DEPLOYMENTS, args, kwargs), + _models.LIST_SERVICE_DEPLOYMENTS, + [], + plugins, + ) + + @_overload async def list_services( - self, input: ListServicesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListServicesInput | _models.ListServicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServicesOutput: ... + + @_overload + async def list_services( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServicesInputDict], ) -> ListServicesOutput: """ Returns a list of services. You can filter the results by cluster, launch type, and scheduling strategy. Args: - input: - An instance of `ListServicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1943,10 +2973,34 @@ async def list_services( Returns: An instance of `ListServicesOutput`. """ - return await self._invoke(input, _models.LIST_SERVICES, [], plugins) + async def list_services( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServicesOutput: + return await self._invoke( + self._select_input(_models.LIST_SERVICES, args, kwargs), + _models.LIST_SERVICES, + [], + plugins, + ) + + @_overload async def list_services_by_namespace( - self, input: ListServicesByNamespaceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListServicesByNamespaceInput + | _models.ListServicesByNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServicesByNamespaceOutput: ... + + @_overload + async def list_services_by_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServicesByNamespaceInputDict], ) -> ListServicesByNamespaceOutput: """ This operation lists all of the services that are associated with a @@ -1959,8 +3013,6 @@ async def list_services_by_namespace( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `ListServicesByNamespaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1970,19 +3022,39 @@ async def list_services_by_namespace( Returns: An instance of `ListServicesByNamespaceOutput`. """ + + async def list_services_by_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServicesByNamespaceOutput: return await self._invoke( - input, _models.LIST_SERVICES_BY_NAMESPACE, [], plugins + self._select_input(_models.LIST_SERVICES_BY_NAMESPACE, args, kwargs), + _models.LIST_SERVICES_BY_NAMESPACE, + [], + plugins, ) + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List the tags for an Amazon ECS resource. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1992,12 +3064,34 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def list_task_definition_families( + self, + request: _models.ListTaskDefinitionFamiliesInput + | _models.ListTaskDefinitionFamiliesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTaskDefinitionFamiliesOutput: ... + + @_overload async def list_task_definition_families( self, - input: ListTaskDefinitionFamiliesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTaskDefinitionFamiliesInputDict], ) -> ListTaskDefinitionFamiliesOutput: """ Returns a list of task definition families that are registered to your @@ -2010,8 +3104,6 @@ async def list_task_definition_families( parameter. Args: - input: - An instance of `ListTaskDefinitionFamiliesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2021,12 +3113,34 @@ async def list_task_definition_families( Returns: An instance of `ListTaskDefinitionFamiliesOutput`. """ + + async def list_task_definition_families( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTaskDefinitionFamiliesOutput: return await self._invoke( - input, _models.LIST_TASK_DEFINITION_FAMILIES, [], plugins + self._select_input(_models.LIST_TASK_DEFINITION_FAMILIES, args, kwargs), + _models.LIST_TASK_DEFINITION_FAMILIES, + [], + plugins, ) + @_overload + async def list_task_definitions( + self, + request: _models.ListTaskDefinitionsInput + | _models.ListTaskDefinitionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTaskDefinitionsOutput: ... + + @_overload async def list_task_definitions( - self, input: ListTaskDefinitionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTaskDefinitionsInputDict], ) -> ListTaskDefinitionsOutput: """ Returns a list of task definitions that are registered to your account. @@ -2034,8 +3148,6 @@ async def list_task_definitions( parameter or by status with the `status` parameter. Args: - input: - An instance of `ListTaskDefinitionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2045,10 +3157,33 @@ async def list_task_definitions( Returns: An instance of `ListTaskDefinitionsOutput`. """ - return await self._invoke(input, _models.LIST_TASK_DEFINITIONS, [], plugins) + async def list_task_definitions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTaskDefinitionsOutput: + return await self._invoke( + self._select_input(_models.LIST_TASK_DEFINITIONS, args, kwargs), + _models.LIST_TASK_DEFINITIONS, + [], + plugins, + ) + + @_overload + async def list_tasks( + self, + request: _models.ListTasksInput | _models.ListTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTasksOutput: ... + + @_overload async def list_tasks( - self, input: ListTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTasksInputDict], ) -> ListTasksOutput: """ Returns a list of tasks. You can filter the results by cluster, task @@ -2058,8 +3193,6 @@ async def list_tasks( Recently stopped tasks might appear in the returned results. Args: - input: - An instance of `ListTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2069,10 +3202,33 @@ async def list_tasks( Returns: An instance of `ListTasksOutput`. """ - return await self._invoke(input, _models.LIST_TASKS, [], plugins) + async def list_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTasksOutput: + return await self._invoke( + self._select_input(_models.LIST_TASKS, args, kwargs), + _models.LIST_TASKS, + [], + plugins, + ) + + @_overload + async def put_account_setting( + self, + request: _models.PutAccountSettingInput | _models.PutAccountSettingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountSettingOutput: ... + + @_overload async def put_account_setting( - self, input: PutAccountSettingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountSettingInputDict], ) -> PutAccountSettingOutput: """ Modifies an account setting. Account settings are set on a per-Region @@ -2085,8 +3241,6 @@ async def put_account_setting( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `PutAccountSettingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2096,10 +3250,34 @@ async def put_account_setting( Returns: An instance of `PutAccountSettingOutput`. """ - return await self._invoke(input, _models.PUT_ACCOUNT_SETTING, [], plugins) + async def put_account_setting( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountSettingOutput: + return await self._invoke( + self._select_input(_models.PUT_ACCOUNT_SETTING, args, kwargs), + _models.PUT_ACCOUNT_SETTING, + [], + plugins, + ) + + @_overload + async def put_account_setting_default( + self, + request: _models.PutAccountSettingDefaultInput + | _models.PutAccountSettingDefaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountSettingDefaultOutput: ... + + @_overload async def put_account_setting_default( - self, input: PutAccountSettingDefaultInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountSettingDefaultInputDict], ) -> PutAccountSettingDefaultOutput: """ Modifies an account setting for all users on an account for whom no @@ -2107,8 +3285,6 @@ async def put_account_setting_default( on a per-Region basis. Args: - input: - An instance of `PutAccountSettingDefaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2118,12 +3294,33 @@ async def put_account_setting_default( Returns: An instance of `PutAccountSettingDefaultOutput`. """ + + async def put_account_setting_default( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountSettingDefaultOutput: return await self._invoke( - input, _models.PUT_ACCOUNT_SETTING_DEFAULT, [], plugins + self._select_input(_models.PUT_ACCOUNT_SETTING_DEFAULT, args, kwargs), + _models.PUT_ACCOUNT_SETTING_DEFAULT, + [], + plugins, ) + @_overload async def put_attributes( - self, input: PutAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.PutAttributesInput | _models.PutAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAttributesOutput: ... + + @_overload + async def put_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAttributesInputDict], ) -> PutAttributesOutput: """ Create or update an attribute on an Amazon ECS resource. If the @@ -2135,8 +3332,6 @@ async def put_attributes( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `PutAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2146,12 +3341,34 @@ async def put_attributes( Returns: An instance of `PutAttributesOutput`. """ - return await self._invoke(input, _models.PUT_ATTRIBUTES, [], plugins) + async def put_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAttributesOutput: + return await self._invoke( + self._select_input(_models.PUT_ATTRIBUTES, args, kwargs), + _models.PUT_ATTRIBUTES, + [], + plugins, + ) + + @_overload + async def put_cluster_capacity_providers( + self, + request: _models.PutClusterCapacityProvidersInput + | _models.PutClusterCapacityProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutClusterCapacityProvidersOutput: ... + + @_overload async def put_cluster_capacity_providers( self, - input: PutClusterCapacityProvidersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutClusterCapacityProvidersInputDict], ) -> PutClusterCapacityProvidersOutput: """ Modifies the available capacity providers and the default capacity @@ -2179,8 +3396,6 @@ async def put_cluster_capacity_providers( available only within the specified cluster. Args: - input: - An instance of `PutClusterCapacityProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2190,12 +3405,34 @@ async def put_cluster_capacity_providers( Returns: An instance of `PutClusterCapacityProvidersOutput`. """ + + async def put_cluster_capacity_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutClusterCapacityProvidersOutput: return await self._invoke( - input, _models.PUT_CLUSTER_CAPACITY_PROVIDERS, [], plugins + self._select_input(_models.PUT_CLUSTER_CAPACITY_PROVIDERS, args, kwargs), + _models.PUT_CLUSTER_CAPACITY_PROVIDERS, + [], + plugins, ) + @_overload + async def register_container_instance( + self, + request: _models.RegisterContainerInstanceInput + | _models.RegisterContainerInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterContainerInstanceOutput: ... + + @_overload async def register_container_instance( - self, input: RegisterContainerInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterContainerInstanceInputDict], ) -> RegisterContainerInstanceOutput: """ Note: @@ -2206,8 +3443,6 @@ async def register_container_instance( becomes available to place containers on. Args: - input: - An instance of `RegisterContainerInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2217,14 +3452,34 @@ async def register_container_instance( Returns: An instance of `RegisterContainerInstanceOutput`. """ + + async def register_container_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterContainerInstanceOutput: return await self._invoke( - input, _models.REGISTER_CONTAINER_INSTANCE, [], plugins + self._select_input(_models.REGISTER_CONTAINER_INSTANCE, args, kwargs), + _models.REGISTER_CONTAINER_INSTANCE, + [], + plugins, ) + @_overload + async def register_daemon_task_definition( + self, + request: _models.RegisterDaemonTaskDefinitionInput + | _models.RegisterDaemonTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterDaemonTaskDefinitionOutput: ... + + @_overload async def register_daemon_task_definition( self, - input: RegisterDaemonTaskDefinitionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterDaemonTaskDefinitionInputDict], ) -> RegisterDaemonTaskDefinitionOutput: """ Registers a new daemon task definition from the supplied `family` and @@ -2244,8 +3499,6 @@ async def register_daemon_task_definition( you register it. Args: - input: - An instance of `RegisterDaemonTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2255,12 +3508,34 @@ async def register_daemon_task_definition( Returns: An instance of `RegisterDaemonTaskDefinitionOutput`. """ + + async def register_daemon_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterDaemonTaskDefinitionOutput: return await self._invoke( - input, _models.REGISTER_DAEMON_TASK_DEFINITION, [], plugins + self._select_input(_models.REGISTER_DAEMON_TASK_DEFINITION, args, kwargs), + _models.REGISTER_DAEMON_TASK_DEFINITION, + [], + plugins, ) + @_overload + async def register_task_definition( + self, + request: _models.RegisterTaskDefinitionInput + | _models.RegisterTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterTaskDefinitionOutput: ... + + @_overload async def register_task_definition( - self, input: RegisterTaskDefinitionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterTaskDefinitionInputDict], ) -> RegisterTaskDefinitionOutput: """ Registers a new task definition from the supplied `family` and @@ -2289,8 +3564,6 @@ async def register_task_definition( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `RegisterTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2300,10 +3573,33 @@ async def register_task_definition( Returns: An instance of `RegisterTaskDefinitionOutput`. """ - return await self._invoke(input, _models.REGISTER_TASK_DEFINITION, [], plugins) + async def register_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterTaskDefinitionOutput: + return await self._invoke( + self._select_input(_models.REGISTER_TASK_DEFINITION, args, kwargs), + _models.REGISTER_TASK_DEFINITION, + [], + plugins, + ) + + @_overload + async def run_task( + self, + request: _models.RunTaskInput | _models.RunTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RunTaskOutput: ... + + @_overload async def run_task( - self, input: RunTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RunTaskInputDict], ) -> RunTaskOutput: """ Starts a new task using the specified task definition. @@ -2372,8 +3668,6 @@ async def run_task( quotas](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html). Args: - input: - An instance of `RunTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2383,10 +3677,33 @@ async def run_task( Returns: An instance of `RunTaskOutput`. """ - return await self._invoke(input, _models.RUN_TASK, [], plugins) + async def run_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RunTaskOutput: + return await self._invoke( + self._select_input(_models.RUN_TASK, args, kwargs), + _models.RUN_TASK, + [], + plugins, + ) + + @_overload async def start_task( - self, input: StartTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.StartTaskInput | _models.StartTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartTaskOutput: ... + + @_overload + async def start_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartTaskInputDict], ) -> StartTaskOutput: """ Starts a new task from the specified task definition on the specified @@ -2412,8 +3729,6 @@ async def start_task( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `StartTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2423,10 +3738,34 @@ async def start_task( Returns: An instance of `StartTaskOutput`. """ - return await self._invoke(input, _models.START_TASK, [], plugins) + async def start_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartTaskOutput: + return await self._invoke( + self._select_input(_models.START_TASK, args, kwargs), + _models.START_TASK, + [], + plugins, + ) + + @_overload + async def stop_service_deployment( + self, + request: _models.StopServiceDeploymentInput + | _models.StopServiceDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopServiceDeploymentOutput: ... + + @_overload async def stop_service_deployment( - self, input: StopServiceDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopServiceDeploymentInputDict], ) -> StopServiceDeploymentOutput: """ Stops an ongoing service deployment. @@ -2444,8 +3783,6 @@ async def stop_service_deployment( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `StopServiceDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2455,10 +3792,33 @@ async def stop_service_deployment( Returns: An instance of `StopServiceDeploymentOutput`. """ - return await self._invoke(input, _models.STOP_SERVICE_DEPLOYMENT, [], plugins) + async def stop_service_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopServiceDeploymentOutput: + return await self._invoke( + self._select_input(_models.STOP_SERVICE_DEPLOYMENT, args, kwargs), + _models.STOP_SERVICE_DEPLOYMENT, + [], + plugins, + ) + + @_overload + async def stop_task( + self, + request: _models.StopTaskInput | _models.StopTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopTaskOutput: ... + + @_overload async def stop_task( - self, input: StopTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopTaskInputDict], ) -> StopTaskOutput: """ Stops a running task. Any tags associated with the task will be deleted. @@ -2485,8 +3845,6 @@ async def stop_task( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `StopTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2496,12 +3854,34 @@ async def stop_task( Returns: An instance of `StopTaskOutput`. """ - return await self._invoke(input, _models.STOP_TASK, [], plugins) + async def stop_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopTaskOutput: + return await self._invoke( + self._select_input(_models.STOP_TASK, args, kwargs), + _models.STOP_TASK, + [], + plugins, + ) + + @_overload + async def submit_attachment_state_changes( + self, + request: _models.SubmitAttachmentStateChangesInput + | _models.SubmitAttachmentStateChangesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubmitAttachmentStateChangesOutput: ... + + @_overload async def submit_attachment_state_changes( self, - input: SubmitAttachmentStateChangesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubmitAttachmentStateChangesInputDict], ) -> SubmitAttachmentStateChangesOutput: """ Note: @@ -2511,8 +3891,6 @@ async def submit_attachment_state_changes( Sent to acknowledge that an attachment changed states. Args: - input: - An instance of `SubmitAttachmentStateChangesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2522,14 +3900,34 @@ async def submit_attachment_state_changes( Returns: An instance of `SubmitAttachmentStateChangesOutput`. """ + + async def submit_attachment_state_changes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubmitAttachmentStateChangesOutput: return await self._invoke( - input, _models.SUBMIT_ATTACHMENT_STATE_CHANGES, [], plugins + self._select_input(_models.SUBMIT_ATTACHMENT_STATE_CHANGES, args, kwargs), + _models.SUBMIT_ATTACHMENT_STATE_CHANGES, + [], + plugins, ) + @_overload async def submit_container_state_change( self, - input: SubmitContainerStateChangeInput, + request: _models.SubmitContainerStateChangeInput + | _models.SubmitContainerStateChangeInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> SubmitContainerStateChangeOutput: ... + + @_overload + async def submit_container_state_change( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubmitContainerStateChangeInputDict], ) -> SubmitContainerStateChangeOutput: """ Note: @@ -2539,8 +3937,6 @@ async def submit_container_state_change( Sent to acknowledge that a container changed states. Args: - input: - An instance of `SubmitContainerStateChangeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2550,12 +3946,34 @@ async def submit_container_state_change( Returns: An instance of `SubmitContainerStateChangeOutput`. """ + + async def submit_container_state_change( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubmitContainerStateChangeOutput: return await self._invoke( - input, _models.SUBMIT_CONTAINER_STATE_CHANGE, [], plugins + self._select_input(_models.SUBMIT_CONTAINER_STATE_CHANGE, args, kwargs), + _models.SUBMIT_CONTAINER_STATE_CHANGE, + [], + plugins, ) + @_overload + async def submit_task_state_change( + self, + request: _models.SubmitTaskStateChangeInput + | _models.SubmitTaskStateChangeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubmitTaskStateChangeOutput: ... + + @_overload async def submit_task_state_change( - self, input: SubmitTaskStateChangeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubmitTaskStateChangeInputDict], ) -> SubmitTaskStateChangeOutput: """ Note: @@ -2565,8 +3983,6 @@ async def submit_task_state_change( Sent to acknowledge that a task changed states. Args: - input: - An instance of `SubmitTaskStateChangeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2576,10 +3992,33 @@ async def submit_task_state_change( Returns: An instance of `SubmitTaskStateChangeOutput`. """ - return await self._invoke(input, _models.SUBMIT_TASK_STATE_CHANGE, [], plugins) + async def submit_task_state_change( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubmitTaskStateChangeOutput: + return await self._invoke( + self._select_input(_models.SUBMIT_TASK_STATE_CHANGE, args, kwargs), + _models.SUBMIT_TASK_STATE_CHANGE, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associates the specified tags to a resource with the specified @@ -2588,8 +4027,6 @@ async def tag_resource( the tags that are associated with that resource are deleted as well. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2599,17 +4036,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Deletes specified tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2619,10 +4077,34 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload async def update_capacity_provider( - self, input: UpdateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateCapacityProviderInput + | _models.UpdateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCapacityProviderOutput: ... + + @_overload + async def update_capacity_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityProviderInputDict], ) -> UpdateCapacityProviderOutput: """ Modifies the parameters for a capacity provider. @@ -2631,8 +4113,6 @@ async def update_capacity_provider( instances, not existing ones. Args: - input: - An instance of `UpdateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2642,17 +4122,38 @@ async def update_capacity_provider( Returns: An instance of `UpdateCapacityProviderOutput`. """ - return await self._invoke(input, _models.UPDATE_CAPACITY_PROVIDER, [], plugins) + async def update_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CAPACITY_PROVIDER, args, kwargs), + _models.UPDATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def update_cluster( + self, + request: _models.UpdateClusterInput | _models.UpdateClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateClusterOutput: ... + + @_overload async def update_cluster( - self, input: UpdateClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateClusterInputDict], ) -> UpdateClusterOutput: """ Updates the cluster. Args: - input: - An instance of `UpdateClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2662,17 +4163,39 @@ async def update_cluster( Returns: An instance of `UpdateClusterOutput`. """ - return await self._invoke(input, _models.UPDATE_CLUSTER, [], plugins) + async def update_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateClusterOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CLUSTER, args, kwargs), + _models.UPDATE_CLUSTER, + [], + plugins, + ) + + @_overload + async def update_cluster_settings( + self, + request: _models.UpdateClusterSettingsInput + | _models.UpdateClusterSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateClusterSettingsOutput: ... + + @_overload async def update_cluster_settings( - self, input: UpdateClusterSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateClusterSettingsInputDict], ) -> UpdateClusterSettingsOutput: """ Modifies the settings to use for a cluster. Args: - input: - An instance of `UpdateClusterSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2682,10 +4205,34 @@ async def update_cluster_settings( Returns: An instance of `UpdateClusterSettingsOutput`. """ - return await self._invoke(input, _models.UPDATE_CLUSTER_SETTINGS, [], plugins) + async def update_cluster_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateClusterSettingsOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CLUSTER_SETTINGS, args, kwargs), + _models.UPDATE_CLUSTER_SETTINGS, + [], + plugins, + ) + + @_overload + async def update_container_agent( + self, + request: _models.UpdateContainerAgentInput + | _models.UpdateContainerAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContainerAgentOutput: ... + + @_overload async def update_container_agent( - self, input: UpdateContainerAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContainerAgentInputDict], ) -> UpdateContainerAgentOutput: """ Updates the Amazon ECS container agent on a specified container @@ -2716,8 +4263,6 @@ async def update_container_agent( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `UpdateContainerAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2727,12 +4272,34 @@ async def update_container_agent( Returns: An instance of `UpdateContainerAgentOutput`. """ - return await self._invoke(input, _models.UPDATE_CONTAINER_AGENT, [], plugins) + async def update_container_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContainerAgentOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CONTAINER_AGENT, args, kwargs), + _models.UPDATE_CONTAINER_AGENT, + [], + plugins, + ) + + @_overload + async def update_container_instances_state( + self, + request: _models.UpdateContainerInstancesStateInput + | _models.UpdateContainerInstancesStateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContainerInstancesStateOutput: ... + + @_overload async def update_container_instances_state( self, - input: UpdateContainerInstancesStateInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContainerInstancesStateInputDict], ) -> UpdateContainerInstancesStateOutput: """ Modifies the status of an Amazon ECS container instance. @@ -2791,8 +4358,6 @@ async def update_container_instances_state( Amazon ECS scheduler can begin scheduling tasks on the instance again. Args: - input: - An instance of `UpdateContainerInstancesStateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2802,12 +4367,33 @@ async def update_container_instances_state( Returns: An instance of `UpdateContainerInstancesStateOutput`. """ + + async def update_container_instances_state( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContainerInstancesStateOutput: return await self._invoke( - input, _models.UPDATE_CONTAINER_INSTANCES_STATE, [], plugins + self._select_input(_models.UPDATE_CONTAINER_INSTANCES_STATE, args, kwargs), + _models.UPDATE_CONTAINER_INSTANCES_STATE, + [], + plugins, ) + @_overload + async def update_daemon( + self, + request: _models.UpdateDaemonInput | _models.UpdateDaemonInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDaemonOutput: ... + + @_overload async def update_daemon( - self, input: UpdateDaemonInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDaemonInputDict], ) -> UpdateDaemonOutput: """ Updates the specified daemon. When you update a daemon, a new deployment @@ -2830,8 +4416,6 @@ async def update_daemon( Capacity Providers. Args: - input: - An instance of `UpdateDaemonInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2841,12 +4425,34 @@ async def update_daemon( Returns: An instance of `UpdateDaemonOutput`. """ - return await self._invoke(input, _models.UPDATE_DAEMON, [], plugins) + async def update_daemon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDaemonOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DAEMON, args, kwargs), + _models.UPDATE_DAEMON, + [], + plugins, + ) + + @_overload + async def update_express_gateway_service( + self, + request: _models.UpdateExpressGatewayServiceInput + | _models.UpdateExpressGatewayServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateExpressGatewayServiceOutput: ... + + @_overload async def update_express_gateway_service( self, - input: UpdateExpressGatewayServiceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateExpressGatewayServiceInputDict], ) -> UpdateExpressGatewayServiceOutput: """ Updates an existing Express service configuration. Modifies container @@ -2861,8 +4467,6 @@ async def update_express_gateway_service( service creation and require creating a new service. Args: - input: - An instance of `UpdateExpressGatewayServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2872,12 +4476,33 @@ async def update_express_gateway_service( Returns: An instance of `UpdateExpressGatewayServiceOutput`. """ + + async def update_express_gateway_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateExpressGatewayServiceOutput: return await self._invoke( - input, _models.UPDATE_EXPRESS_GATEWAY_SERVICE, [], plugins + self._select_input(_models.UPDATE_EXPRESS_GATEWAY_SERVICE, args, kwargs), + _models.UPDATE_EXPRESS_GATEWAY_SERVICE, + [], + plugins, ) + @_overload + async def update_gateway( + self, + request: _models.UpdateGatewayInput | _models.UpdateGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayOutput: ... + + @_overload async def update_gateway( - self, input: UpdateGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayInputDict], ) -> UpdateGatewayOutput: """ Modifies the configuration of a gateway. You can change only the @@ -2896,8 +4521,6 @@ async def update_gateway( permission for that role. Args: - input: - An instance of `UpdateGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2907,10 +4530,33 @@ async def update_gateway( Returns: An instance of `UpdateGatewayOutput`. """ - return await self._invoke(input, _models.UPDATE_GATEWAY, [], plugins) + async def update_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GATEWAY, args, kwargs), + _models.UPDATE_GATEWAY, + [], + plugins, + ) + + @_overload async def update_service( - self, input: UpdateServiceInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateServiceInput | _models.UpdateServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateServiceOutput: ... + + @_overload + async def update_service( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateServiceInputDict], ) -> UpdateServiceOutput: """ Modifies the parameters of a service. @@ -3052,8 +4698,6 @@ async def update_service( largest number of running tasks for this service. Args: - input: - An instance of `UpdateServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3063,12 +4707,34 @@ async def update_service( Returns: An instance of `UpdateServiceOutput`. """ - return await self._invoke(input, _models.UPDATE_SERVICE, [], plugins) + async def update_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateServiceOutput: + return await self._invoke( + self._select_input(_models.UPDATE_SERVICE, args, kwargs), + _models.UPDATE_SERVICE, + [], + plugins, + ) + + @_overload + async def update_service_primary_task_set( + self, + request: _models.UpdateServicePrimaryTaskSetInput + | _models.UpdateServicePrimaryTaskSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateServicePrimaryTaskSetOutput: ... + + @_overload async def update_service_primary_task_set( self, - input: UpdateServicePrimaryTaskSetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateServicePrimaryTaskSetInputDict], ) -> UpdateServicePrimaryTaskSetOutput: """ Modifies which task set in a service is the primary task set. Any @@ -3080,8 +4746,6 @@ async def update_service_primary_task_set( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `UpdateServicePrimaryTaskSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3091,12 +4755,34 @@ async def update_service_primary_task_set( Returns: An instance of `UpdateServicePrimaryTaskSetOutput`. """ + + async def update_service_primary_task_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateServicePrimaryTaskSetOutput: return await self._invoke( - input, _models.UPDATE_SERVICE_PRIMARY_TASK_SET, [], plugins + self._select_input(_models.UPDATE_SERVICE_PRIMARY_TASK_SET, args, kwargs), + _models.UPDATE_SERVICE_PRIMARY_TASK_SET, + [], + plugins, ) + @_overload + async def update_task_protection( + self, + request: _models.UpdateTaskProtectionInput + | _models.UpdateTaskProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTaskProtectionOutput: ... + + @_overload async def update_task_protection( - self, input: UpdateTaskProtectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTaskProtectionInputDict], ) -> UpdateTaskProtectionOutput: """ Updates the protection status of a task. You can set `protectionEnabled` @@ -3133,8 +4819,6 @@ async def update_task_protection( endpoint](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-scale-in-protection-endpoint.html). Args: - input: - An instance of `UpdateTaskProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3144,10 +4828,33 @@ async def update_task_protection( Returns: An instance of `UpdateTaskProtectionOutput`. """ - return await self._invoke(input, _models.UPDATE_TASK_PROTECTION, [], plugins) + async def update_task_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTaskProtectionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_TASK_PROTECTION, args, kwargs), + _models.UPDATE_TASK_PROTECTION, + [], + plugins, + ) + + @_overload + async def update_task_set( + self, + request: _models.UpdateTaskSetInput | _models.UpdateTaskSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTaskSetOutput: ... + + @_overload async def update_task_set( - self, input: UpdateTaskSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTaskSetInputDict], ) -> UpdateTaskSetOutput: """ Modifies a task set. This is used when a service uses the `EXTERNAL` @@ -3157,8 +4864,6 @@ async def update_task_set( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `UpdateTaskSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3168,7 +4873,16 @@ async def update_task_set( Returns: An instance of `UpdateTaskSetOutput`. """ - return await self._invoke(input, _models.UPDATE_TASK_SET, [], plugins) + + async def update_task_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTaskSetOutput: + return await self._invoke( + self._select_input(_models.UPDATE_TASK_SET, args, kwargs), + _models.UPDATE_TASK_SET, + [], + plugins, + ) async def _new_config(self) -> AsyncECSConfig: return await AsyncECSConfig.resolve() diff --git a/clients/aws-sdk-ecs/src/aws_sdk_ecs/client.py b/clients/aws-sdk-ecs/src/aws_sdk_ecs/client.py index 8c0c651f3..b3b82140a 100644 --- a/clients/aws-sdk-ecs/src/aws_sdk_ecs/client.py +++ b/clients/aws-sdk-ecs/src/aws_sdk_ecs/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,181 +20,93 @@ if TYPE_CHECKING: from .models import ( - AssociateGatewayWithClusterInput, AssociateGatewayWithClusterOutput, - ContinueServiceDeploymentInput, ContinueServiceDeploymentOutput, - CreateCapacityProviderInput, CreateCapacityProviderOutput, - CreateClusterInput, CreateClusterOutput, - CreateDaemonInput, CreateDaemonOutput, - CreateExpressGatewayServiceInput, CreateExpressGatewayServiceOutput, - CreateGatewayInput, CreateGatewayOutput, - CreateServiceInput, CreateServiceOutput, - CreateTaskSetInput, CreateTaskSetOutput, - DeleteAccountSettingInput, DeleteAccountSettingOutput, - DeleteAttributesInput, DeleteAttributesOutput, - DeleteCapacityProviderInput, DeleteCapacityProviderOutput, - DeleteClusterInput, DeleteClusterOutput, - DeleteDaemonInput, DeleteDaemonOutput, - DeleteDaemonTaskDefinitionInput, DeleteDaemonTaskDefinitionOutput, - DeleteExpressGatewayServiceInput, DeleteExpressGatewayServiceOutput, - DeleteGatewayInput, DeleteGatewayOutput, - DeleteServiceInput, DeleteServiceOutput, - DeleteTaskDefinitionsInput, DeleteTaskDefinitionsOutput, - DeleteTaskSetInput, DeleteTaskSetOutput, - DeregisterContainerInstanceInput, DeregisterContainerInstanceOutput, - DeregisterTaskDefinitionInput, DeregisterTaskDefinitionOutput, - DescribeCapacityProvidersInput, DescribeCapacityProvidersOutput, - DescribeClustersInput, DescribeClustersOutput, - DescribeContainerInstancesInput, DescribeContainerInstancesOutput, - DescribeDaemonDeploymentsInput, DescribeDaemonDeploymentsOutput, - DescribeDaemonInput, DescribeDaemonOutput, - DescribeDaemonRevisionsInput, DescribeDaemonRevisionsOutput, - DescribeDaemonTaskDefinitionInput, DescribeDaemonTaskDefinitionOutput, - DescribeExpressGatewayServiceInput, DescribeExpressGatewayServiceOutput, - DescribeGatewayInput, DescribeGatewayOutput, - DescribeGatewayResourcesInput, DescribeGatewayResourcesOutput, - DescribeGatewayRouteInput, DescribeGatewayRouteOutput, - DescribeServiceDeploymentsInput, DescribeServiceDeploymentsOutput, - DescribeServiceRevisionsInput, DescribeServiceRevisionsOutput, - DescribeServicesInput, DescribeServicesOutput, - DescribeTaskDefinitionInput, DescribeTaskDefinitionOutput, - DescribeTaskSetsInput, DescribeTaskSetsOutput, - DescribeTasksInput, DescribeTasksOutput, - DisassociateGatewayFromClusterInput, DisassociateGatewayFromClusterOutput, - DiscoverPollEndpointInput, DiscoverPollEndpointOutput, - ExecuteCommandInput, ExecuteCommandOutput, - GetTaskProtectionInput, GetTaskProtectionOutput, - ListAccountSettingsInput, ListAccountSettingsOutput, - ListAttributesInput, ListAttributesOutput, - ListClustersInput, ListClustersOutput, - ListContainerInstancesInput, ListContainerInstancesOutput, - ListDaemonDeploymentsInput, ListDaemonDeploymentsOutput, - ListDaemonTaskDefinitionsInput, ListDaemonTaskDefinitionsOutput, - ListDaemonsInput, ListDaemonsOutput, - ListGatewayClusterAssociationsInput, ListGatewayClusterAssociationsOutput, - ListGatewayRoutesInput, ListGatewayRoutesOutput, - ListGatewaysInput, ListGatewaysOutput, - ListServiceDeploymentsInput, ListServiceDeploymentsOutput, - ListServicesByNamespaceInput, ListServicesByNamespaceOutput, - ListServicesInput, ListServicesOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListTaskDefinitionFamiliesInput, ListTaskDefinitionFamiliesOutput, - ListTaskDefinitionsInput, ListTaskDefinitionsOutput, - ListTasksInput, ListTasksOutput, - PutAccountSettingDefaultInput, PutAccountSettingDefaultOutput, - PutAccountSettingInput, PutAccountSettingOutput, - PutAttributesInput, PutAttributesOutput, - PutClusterCapacityProvidersInput, PutClusterCapacityProvidersOutput, - RegisterContainerInstanceInput, RegisterContainerInstanceOutput, - RegisterDaemonTaskDefinitionInput, RegisterDaemonTaskDefinitionOutput, - RegisterTaskDefinitionInput, RegisterTaskDefinitionOutput, - RunTaskInput, RunTaskOutput, - StartTaskInput, StartTaskOutput, - StopServiceDeploymentInput, StopServiceDeploymentOutput, - StopTaskInput, StopTaskOutput, - SubmitAttachmentStateChangesInput, SubmitAttachmentStateChangesOutput, - SubmitContainerStateChangeInput, SubmitContainerStateChangeOutput, - SubmitTaskStateChangeInput, SubmitTaskStateChangeOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateCapacityProviderInput, UpdateCapacityProviderOutput, - UpdateClusterInput, UpdateClusterOutput, - UpdateClusterSettingsInput, UpdateClusterSettingsOutput, - UpdateContainerAgentInput, UpdateContainerAgentOutput, - UpdateContainerInstancesStateInput, UpdateContainerInstancesStateOutput, - UpdateDaemonInput, UpdateDaemonOutput, - UpdateExpressGatewayServiceInput, UpdateExpressGatewayServiceOutput, - UpdateGatewayInput, UpdateGatewayOutput, - UpdateServiceInput, UpdateServiceOutput, - UpdateServicePrimaryTaskSetInput, UpdateServicePrimaryTaskSetOutput, - UpdateTaskProtectionInput, UpdateTaskProtectionOutput, - UpdateTaskSetInput, UpdateTaskSetOutput, ) @@ -224,12 +136,25 @@ class ECSClient(Client[ECSConfig]): also don't need to worry about scaling your management infrastructure. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def associate_gateway_with_cluster( self, - input: AssociateGatewayWithClusterInput, + request: _models.AssociateGatewayWithClusterInput + | _models.AssociateGatewayWithClusterInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AssociateGatewayWithClusterOutput: ... + + @_overload + def associate_gateway_with_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateGatewayWithClusterInputDict], ) -> AssociateGatewayWithClusterOutput: """ Associates a gateway with an Amazon ECS cluster. After a cluster is @@ -239,8 +164,6 @@ def associate_gateway_with_cluster( to 5 gateways. Args: - input: - An instance of `AssociateGatewayWithClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -250,10 +173,34 @@ def associate_gateway_with_cluster( Returns: An instance of `AssociateGatewayWithClusterOutput`. """ - return self._invoke(input, _models.ASSOCIATE_GATEWAY_WITH_CLUSTER, [], plugins) + def associate_gateway_with_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateGatewayWithClusterOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_GATEWAY_WITH_CLUSTER, args, kwargs), + _models.ASSOCIATE_GATEWAY_WITH_CLUSTER, + [], + plugins, + ) + + @_overload + def continue_service_deployment( + self, + request: _models.ContinueServiceDeploymentInput + | _models.ContinueServiceDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ContinueServiceDeploymentOutput: ... + + @_overload def continue_service_deployment( - self, input: ContinueServiceDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ContinueServiceDeploymentInputDict], ) -> ContinueServiceDeploymentOutput: """ Continues or rolls back an Amazon ECS service deployment that is paused @@ -273,8 +220,6 @@ def continue_service_deployment( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `ContinueServiceDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -284,10 +229,34 @@ def continue_service_deployment( Returns: An instance of `ContinueServiceDeploymentOutput`. """ - return self._invoke(input, _models.CONTINUE_SERVICE_DEPLOYMENT, [], plugins) + def continue_service_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ContinueServiceDeploymentOutput: + return self._invoke( + self._select_input(_models.CONTINUE_SERVICE_DEPLOYMENT, args, kwargs), + _models.CONTINUE_SERVICE_DEPLOYMENT, + [], + plugins, + ) + + @_overload + def create_capacity_provider( + self, + request: _models.CreateCapacityProviderInput + | _models.CreateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityProviderOutput: ... + + @_overload def create_capacity_provider( - self, input: CreateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityProviderInputDict], ) -> CreateCapacityProviderOutput: """ Creates a capacity provider. Capacity providers are associated with a @@ -297,8 +266,6 @@ def create_capacity_provider( `FARGATE` and `FARGATE_SPOT` capacity providers. Args: - input: - An instance of `CreateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -308,12 +275,33 @@ def create_capacity_provider( Returns: An instance of `CreateCapacityProviderOutput`. """ - return self._invoke(input, _models.CREATE_CAPACITY_PROVIDER, [], plugins) + def create_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityProviderOutput: + return self._invoke( + self._select_input(_models.CREATE_CAPACITY_PROVIDER, args, kwargs), + _models.CREATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def create_cluster( + self, + request: _models.CreateClusterInput | _models.CreateClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateClusterOutput: ... + + @_overload def create_cluster( self, - input: CreateClusterInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateClusterInputDict], ) -> CreateClusterOutput: """ Creates a new Amazon ECS cluster. By default, your account receives a @@ -333,8 +321,6 @@ def create_cluster( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `CreateClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -344,10 +330,33 @@ def create_cluster( Returns: An instance of `CreateClusterOutput`. """ - return self._invoke(input, _models.CREATE_CLUSTER, [], plugins) + def create_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateClusterOutput: + return self._invoke( + self._select_input(_models.CREATE_CLUSTER, args, kwargs), + _models.CREATE_CLUSTER, + [], + plugins, + ) + + @_overload def create_daemon( - self, input: CreateDaemonInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDaemonInput | _models.CreateDaemonInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDaemonOutput: ... + + @_overload + def create_daemon( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDaemonInputDict], ) -> CreateDaemonOutput: """ Creates a new daemon in the specified cluster and capacity providers. A @@ -368,8 +377,6 @@ def create_daemon( Capacity Providers. Args: - input: - An instance of `CreateDaemonInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -379,12 +386,34 @@ def create_daemon( Returns: An instance of `CreateDaemonOutput`. """ - return self._invoke(input, _models.CREATE_DAEMON, [], plugins) + def create_daemon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDaemonOutput: + return self._invoke( + self._select_input(_models.CREATE_DAEMON, args, kwargs), + _models.CREATE_DAEMON, + [], + plugins, + ) + + @_overload + def create_express_gateway_service( + self, + request: _models.CreateExpressGatewayServiceInput + | _models.CreateExpressGatewayServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateExpressGatewayServiceOutput: ... + + @_overload def create_express_gateway_service( self, - input: CreateExpressGatewayServiceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateExpressGatewayServiceInputDict], ) -> CreateExpressGatewayServiceOutput: """ Creates an Express service that simplifies deploying containerized web @@ -402,8 +431,6 @@ def create_express_gateway_service( for managing Amazon Web Services resources on your behalf. Args: - input: - An instance of `CreateExpressGatewayServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -413,10 +440,33 @@ def create_express_gateway_service( Returns: An instance of `CreateExpressGatewayServiceOutput`. """ - return self._invoke(input, _models.CREATE_EXPRESS_GATEWAY_SERVICE, [], plugins) + def create_express_gateway_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateExpressGatewayServiceOutput: + return self._invoke( + self._select_input(_models.CREATE_EXPRESS_GATEWAY_SERVICE, args, kwargs), + _models.CREATE_EXPRESS_GATEWAY_SERVICE, + [], + plugins, + ) + + @_overload + def create_gateway( + self, + request: _models.CreateGatewayInput | _models.CreateGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGatewayOutput: ... + + @_overload def create_gateway( - self, input: CreateGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGatewayInputDict], ) -> CreateGatewayOutput: """ Creates a gateway. A gateway defines and dynamically manages ingress @@ -431,8 +481,6 @@ def create_gateway( the infrastructure role that you specify in `infrastructureRoleArn`. Args: - input: - An instance of `CreateGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -442,10 +490,33 @@ def create_gateway( Returns: An instance of `CreateGatewayOutput`. """ - return self._invoke(input, _models.CREATE_GATEWAY, [], plugins) + def create_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGatewayOutput: + return self._invoke( + self._select_input(_models.CREATE_GATEWAY, args, kwargs), + _models.CREATE_GATEWAY, + [], + plugins, + ) + + @_overload + def create_service( + self, + request: _models.CreateServiceInput | _models.CreateServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateServiceOutput: ... + + @_overload def create_service( - self, input: CreateServiceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateServiceInputDict], ) -> CreateServiceOutput: """ Runs and maintains your desired number of tasks from a specified task @@ -650,8 +721,6 @@ def create_service( in the *Amazon Elastic Container Service Developer Guide* Args: - input: - An instance of `CreateServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -661,10 +730,33 @@ def create_service( Returns: An instance of `CreateServiceOutput`. """ - return self._invoke(input, _models.CREATE_SERVICE, [], plugins) + def create_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateServiceOutput: + return self._invoke( + self._select_input(_models.CREATE_SERVICE, args, kwargs), + _models.CREATE_SERVICE, + [], + plugins, + ) + + @_overload + def create_task_set( + self, + request: _models.CreateTaskSetInput | _models.CreateTaskSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTaskSetOutput: ... + + @_overload def create_task_set( - self, input: CreateTaskSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTaskSetInputDict], ) -> CreateTaskSetOutput: """ Create a task set in the specified cluster and service. This is used @@ -685,8 +777,6 @@ def create_task_set( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `CreateTaskSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -696,18 +786,40 @@ def create_task_set( Returns: An instance of `CreateTaskSetOutput`. """ - return self._invoke(input, _models.CREATE_TASK_SET, [], plugins) + def create_task_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTaskSetOutput: + return self._invoke( + self._select_input(_models.CREATE_TASK_SET, args, kwargs), + _models.CREATE_TASK_SET, + [], + plugins, + ) + + @_overload + def delete_account_setting( + self, + request: _models.DeleteAccountSettingInput + | _models.DeleteAccountSettingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAccountSettingOutput: ... + + @_overload def delete_account_setting( - self, input: DeleteAccountSettingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAccountSettingInputDict], ) -> DeleteAccountSettingOutput: """ Disables an account setting for a specified user, role, or the root user for an account. Args: - input: - An instance of `DeleteAccountSettingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -717,17 +829,38 @@ def delete_account_setting( Returns: An instance of `DeleteAccountSettingOutput`. """ - return self._invoke(input, _models.DELETE_ACCOUNT_SETTING, [], plugins) + def delete_account_setting( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAccountSettingOutput: + return self._invoke( + self._select_input(_models.DELETE_ACCOUNT_SETTING, args, kwargs), + _models.DELETE_ACCOUNT_SETTING, + [], + plugins, + ) + + @_overload def delete_attributes( - self, input: DeleteAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteAttributesInput | _models.DeleteAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAttributesOutput: ... + + @_overload + def delete_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAttributesInputDict], ) -> DeleteAttributesOutput: """ Deletes one or more custom attributes from an Amazon ECS resource. Args: - input: - An instance of `DeleteAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -737,10 +870,34 @@ def delete_attributes( Returns: An instance of `DeleteAttributesOutput`. """ - return self._invoke(input, _models.DELETE_ATTRIBUTES, [], plugins) + def delete_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAttributesOutput: + return self._invoke( + self._select_input(_models.DELETE_ATTRIBUTES, args, kwargs), + _models.DELETE_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def delete_capacity_provider( + self, + request: _models.DeleteCapacityProviderInput + | _models.DeleteCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCapacityProviderOutput: ... + + @_overload def delete_capacity_provider( - self, input: DeleteCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityProviderInputDict], ) -> DeleteCapacityProviderOutput: """ Deletes the specified capacity provider. @@ -765,8 +922,6 @@ def delete_capacity_provider( or delete the cluster. Args: - input: - An instance of `DeleteCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -776,10 +931,33 @@ def delete_capacity_provider( Returns: An instance of `DeleteCapacityProviderOutput`. """ - return self._invoke(input, _models.DELETE_CAPACITY_PROVIDER, [], plugins) + def delete_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityProviderOutput: + return self._invoke( + self._select_input(_models.DELETE_CAPACITY_PROVIDER, args, kwargs), + _models.DELETE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def delete_cluster( + self, + request: _models.DeleteClusterInput | _models.DeleteClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteClusterOutput: ... + + @_overload def delete_cluster( - self, input: DeleteClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteClusterInputDict], ) -> DeleteClusterOutput: """ Deletes the specified cluster. The cluster transitions to the `INACTIVE` @@ -795,8 +973,6 @@ def delete_cluster( [DeregisterContainerInstance](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterContainerInstance.html). Args: - input: - An instance of `DeleteClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -806,10 +982,33 @@ def delete_cluster( Returns: An instance of `DeleteClusterOutput`. """ - return self._invoke(input, _models.DELETE_CLUSTER, [], plugins) + def delete_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteClusterOutput: + return self._invoke( + self._select_input(_models.DELETE_CLUSTER, args, kwargs), + _models.DELETE_CLUSTER, + [], + plugins, + ) + + @_overload + def delete_daemon( + self, + request: _models.DeleteDaemonInput | _models.DeleteDaemonInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDaemonOutput: ... + + @_overload def delete_daemon( - self, input: DeleteDaemonInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDaemonInputDict], ) -> DeleteDaemonOutput: """ Deletes the specified daemon. The daemon must be in an `ACTIVE` state to @@ -824,8 +1023,6 @@ def delete_daemon( Capacity Providers. Args: - input: - An instance of `DeleteDaemonInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -835,12 +1032,34 @@ def delete_daemon( Returns: An instance of `DeleteDaemonOutput`. """ - return self._invoke(input, _models.DELETE_DAEMON, [], plugins) + def delete_daemon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDaemonOutput: + return self._invoke( + self._select_input(_models.DELETE_DAEMON, args, kwargs), + _models.DELETE_DAEMON, + [], + plugins, + ) + + @_overload + def delete_daemon_task_definition( + self, + request: _models.DeleteDaemonTaskDefinitionInput + | _models.DeleteDaemonTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDaemonTaskDefinitionOutput: ... + + @_overload def delete_daemon_task_definition( self, - input: DeleteDaemonTaskDefinitionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDaemonTaskDefinitionInputDict], ) -> DeleteDaemonTaskDefinitionOutput: """ Deletes the specified daemon task definition. After a daemon task @@ -851,8 +1070,6 @@ def delete_daemon_task_definition( A daemon task definition must be in an `ACTIVE` state to be deleted. Args: - input: - An instance of `DeleteDaemonTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -862,12 +1079,34 @@ def delete_daemon_task_definition( Returns: An instance of `DeleteDaemonTaskDefinitionOutput`. """ - return self._invoke(input, _models.DELETE_DAEMON_TASK_DEFINITION, [], plugins) + def delete_daemon_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDaemonTaskDefinitionOutput: + return self._invoke( + self._select_input(_models.DELETE_DAEMON_TASK_DEFINITION, args, kwargs), + _models.DELETE_DAEMON_TASK_DEFINITION, + [], + plugins, + ) + + @_overload + def delete_express_gateway_service( + self, + request: _models.DeleteExpressGatewayServiceInput + | _models.DeleteExpressGatewayServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteExpressGatewayServiceOutput: ... + + @_overload def delete_express_gateway_service( self, - input: DeleteExpressGatewayServiceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteExpressGatewayServiceInputDict], ) -> DeleteExpressGatewayServiceOutput: """ Deletes an Express service and removes all associated Amazon Web @@ -883,8 +1122,6 @@ def delete_express_gateway_service( service is no longer needed before deletion. Args: - input: - An instance of `DeleteExpressGatewayServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -894,10 +1131,33 @@ def delete_express_gateway_service( Returns: An instance of `DeleteExpressGatewayServiceOutput`. """ - return self._invoke(input, _models.DELETE_EXPRESS_GATEWAY_SERVICE, [], plugins) + def delete_express_gateway_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteExpressGatewayServiceOutput: + return self._invoke( + self._select_input(_models.DELETE_EXPRESS_GATEWAY_SERVICE, args, kwargs), + _models.DELETE_EXPRESS_GATEWAY_SERVICE, + [], + plugins, + ) + + @_overload + def delete_gateway( + self, + request: _models.DeleteGatewayInput | _models.DeleteGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGatewayOutput: ... + + @_overload def delete_gateway( - self, input: DeleteGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGatewayInputDict], ) -> DeleteGatewayOutput: """ Deletes a gateway. Before you can delete a gateway, deletion protection @@ -908,8 +1168,6 @@ def delete_gateway( subsequent requests for it return a `GatewayNotFoundException`. Args: - input: - An instance of `DeleteGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -919,10 +1177,33 @@ def delete_gateway( Returns: An instance of `DeleteGatewayOutput`. """ - return self._invoke(input, _models.DELETE_GATEWAY, [], plugins) + def delete_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGatewayOutput: + return self._invoke( + self._select_input(_models.DELETE_GATEWAY, args, kwargs), + _models.DELETE_GATEWAY, + [], + plugins, + ) + + @_overload + def delete_service( + self, + request: _models.DeleteServiceInput | _models.DeleteServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteServiceOutput: ... + + @_overload def delete_service( - self, input: DeleteServiceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteServiceInputDict], ) -> DeleteServiceOutput: """ Deletes a specified service within a cluster. You can delete a service @@ -951,8 +1232,6 @@ def delete_service( service in either `ACTIVE` or `DRAINING` status, you receive an error. Args: - input: - An instance of `DeleteServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -962,10 +1241,34 @@ def delete_service( Returns: An instance of `DeleteServiceOutput`. """ - return self._invoke(input, _models.DELETE_SERVICE, [], plugins) + def delete_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteServiceOutput: + return self._invoke( + self._select_input(_models.DELETE_SERVICE, args, kwargs), + _models.DELETE_SERVICE, + [], + plugins, + ) + + @_overload + def delete_task_definitions( + self, + request: _models.DeleteTaskDefinitionsInput + | _models.DeleteTaskDefinitionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTaskDefinitionsOutput: ... + + @_overload def delete_task_definitions( - self, input: DeleteTaskDefinitionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTaskDefinitionsInputDict], ) -> DeleteTaskDefinitionsOutput: """ Deletes one or more task definitions. @@ -997,8 +1300,6 @@ def delete_task_definitions( that name. Args: - input: - An instance of `DeleteTaskDefinitionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1008,10 +1309,33 @@ def delete_task_definitions( Returns: An instance of `DeleteTaskDefinitionsOutput`. """ - return self._invoke(input, _models.DELETE_TASK_DEFINITIONS, [], plugins) + def delete_task_definitions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTaskDefinitionsOutput: + return self._invoke( + self._select_input(_models.DELETE_TASK_DEFINITIONS, args, kwargs), + _models.DELETE_TASK_DEFINITIONS, + [], + plugins, + ) + + @_overload + def delete_task_set( + self, + request: _models.DeleteTaskSetInput | _models.DeleteTaskSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTaskSetOutput: ... + + @_overload def delete_task_set( - self, input: DeleteTaskSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTaskSetInputDict], ) -> DeleteTaskSetOutput: """ Deletes a specified task set within a service. This is used when a @@ -1021,8 +1345,6 @@ def delete_task_set( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `DeleteTaskSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1032,12 +1354,34 @@ def delete_task_set( Returns: An instance of `DeleteTaskSetOutput`. """ - return self._invoke(input, _models.DELETE_TASK_SET, [], plugins) + def delete_task_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTaskSetOutput: + return self._invoke( + self._select_input(_models.DELETE_TASK_SET, args, kwargs), + _models.DELETE_TASK_SET, + [], + plugins, + ) + + @_overload + def deregister_container_instance( + self, + request: _models.DeregisterContainerInstanceInput + | _models.DeregisterContainerInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterContainerInstanceOutput: ... + + @_overload def deregister_container_instance( self, - input: DeregisterContainerInstanceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterContainerInstanceInputDict], ) -> DeregisterContainerInstanceOutput: """ Deregisters an Amazon ECS container instance from the specified cluster. @@ -1060,8 +1404,6 @@ def deregister_container_instance( when terminated). Args: - input: - An instance of `DeregisterContainerInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1071,10 +1413,34 @@ def deregister_container_instance( Returns: An instance of `DeregisterContainerInstanceOutput`. """ - return self._invoke(input, _models.DEREGISTER_CONTAINER_INSTANCE, [], plugins) + def deregister_container_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterContainerInstanceOutput: + return self._invoke( + self._select_input(_models.DEREGISTER_CONTAINER_INSTANCE, args, kwargs), + _models.DEREGISTER_CONTAINER_INSTANCE, + [], + plugins, + ) + + @_overload + def deregister_task_definition( + self, + request: _models.DeregisterTaskDefinitionInput + | _models.DeregisterTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterTaskDefinitionOutput: ... + + @_overload def deregister_task_definition( - self, input: DeregisterTaskDefinitionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterTaskDefinitionInputDict], ) -> DeregisterTaskDefinitionOutput: """ Deregisters the specified task definition by family and revision. Upon @@ -1102,8 +1468,6 @@ def deregister_task_definition( [DeleteTaskDefinitions](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskDefinitions.html). Args: - input: - An instance of `DeregisterTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1113,19 +1477,39 @@ def deregister_task_definition( Returns: An instance of `DeregisterTaskDefinitionOutput`. """ - return self._invoke(input, _models.DEREGISTER_TASK_DEFINITION, [], plugins) + def deregister_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterTaskDefinitionOutput: + return self._invoke( + self._select_input(_models.DEREGISTER_TASK_DEFINITION, args, kwargs), + _models.DEREGISTER_TASK_DEFINITION, + [], + plugins, + ) + + @_overload + def describe_capacity_providers( + self, + request: _models.DescribeCapacityProvidersInput + | _models.DescribeCapacityProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCapacityProvidersOutput: ... + + @_overload def describe_capacity_providers( self, - input: DescribeCapacityProvidersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCapacityProvidersInputDict], ) -> DescribeCapacityProvidersOutput: """ Describes one or more of your capacity providers. Args: - input: - An instance of `DescribeCapacityProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1135,12 +1519,33 @@ def describe_capacity_providers( Returns: An instance of `DescribeCapacityProvidersOutput`. """ - return self._invoke(input, _models.DESCRIBE_CAPACITY_PROVIDERS, [], plugins) + def describe_capacity_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCapacityProvidersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CAPACITY_PROVIDERS, args, kwargs), + _models.DESCRIBE_CAPACITY_PROVIDERS, + [], + plugins, + ) + + @_overload + def describe_clusters( + self, + request: _models.DescribeClustersInput | _models.DescribeClustersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeClustersOutput: ... + + @_overload def describe_clusters( self, - input: DescribeClustersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeClustersInputDict], ) -> DescribeClustersOutput: """ Describes one or more of your clusters. @@ -1150,8 +1555,6 @@ def describe_clusters( on GitHub. Args: - input: - An instance of `DescribeClustersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1161,20 +1564,40 @@ def describe_clusters( Returns: An instance of `DescribeClustersOutput`. """ - return self._invoke(input, _models.DESCRIBE_CLUSTERS, [], plugins) + def describe_clusters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeClustersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CLUSTERS, args, kwargs), + _models.DESCRIBE_CLUSTERS, + [], + plugins, + ) + + @_overload def describe_container_instances( self, - input: DescribeContainerInstancesInput, + request: _models.DescribeContainerInstancesInput + | _models.DescribeContainerInstancesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeContainerInstancesOutput: ... + + @_overload + def describe_container_instances( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeContainerInstancesInputDict], ) -> DescribeContainerInstancesOutput: """ Describes one or more container instances. Returns metadata about each container instance requested. Args: - input: - An instance of `DescribeContainerInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1184,17 +1607,38 @@ def describe_container_instances( Returns: An instance of `DescribeContainerInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_CONTAINER_INSTANCES, [], plugins) - def describe_daemon( - self, input: DescribeDaemonInput, plugins: list[Plugin] | None = None - ) -> DescribeDaemonOutput: - """ - Describes the specified daemon. + def describe_container_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeContainerInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CONTAINER_INSTANCES, args, kwargs), + _models.DESCRIBE_CONTAINER_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_daemon( + self, + request: _models.DescribeDaemonInput | _models.DescribeDaemonInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDaemonOutput: ... + + @_overload + def describe_daemon( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDaemonInputDict], + ) -> DescribeDaemonOutput: + """ + Describes the specified daemon. Args: - input: - An instance of `DescribeDaemonInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1204,10 +1648,34 @@ def describe_daemon( Returns: An instance of `DescribeDaemonOutput`. """ - return self._invoke(input, _models.DESCRIBE_DAEMON, [], plugins) + def describe_daemon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDaemonOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DAEMON, args, kwargs), + _models.DESCRIBE_DAEMON, + [], + plugins, + ) + + @_overload + def describe_daemon_deployments( + self, + request: _models.DescribeDaemonDeploymentsInput + | _models.DescribeDaemonDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDaemonDeploymentsOutput: ... + + @_overload def describe_daemon_deployments( - self, input: DescribeDaemonDeploymentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDaemonDeploymentsInputDict], ) -> DescribeDaemonDeploymentsOutput: """ Describes one or more of your daemon deployments. @@ -1218,8 +1686,6 @@ def describe_daemon_deployments( rollback capabilities. Args: - input: - An instance of `DescribeDaemonDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1229,10 +1695,34 @@ def describe_daemon_deployments( Returns: An instance of `DescribeDaemonDeploymentsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DAEMON_DEPLOYMENTS, [], plugins) + def describe_daemon_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDaemonDeploymentsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DAEMON_DEPLOYMENTS, args, kwargs), + _models.DESCRIBE_DAEMON_DEPLOYMENTS, + [], + plugins, + ) + + @_overload def describe_daemon_revisions( - self, input: DescribeDaemonRevisionsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeDaemonRevisionsInput + | _models.DescribeDaemonRevisionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDaemonRevisionsOutput: ... + + @_overload + def describe_daemon_revisions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDaemonRevisionsInputDict], ) -> DescribeDaemonRevisionsOutput: """ Describes one or more of your daemon revisions. @@ -1243,8 +1733,6 @@ def describe_daemon_revisions( revisions are immutable. Args: - input: - An instance of `DescribeDaemonRevisionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1254,12 +1742,34 @@ def describe_daemon_revisions( Returns: An instance of `DescribeDaemonRevisionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DAEMON_REVISIONS, [], plugins) + def describe_daemon_revisions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDaemonRevisionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DAEMON_REVISIONS, args, kwargs), + _models.DESCRIBE_DAEMON_REVISIONS, + [], + plugins, + ) + + @_overload + def describe_daemon_task_definition( + self, + request: _models.DescribeDaemonTaskDefinitionInput + | _models.DescribeDaemonTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDaemonTaskDefinitionOutput: ... + + @_overload def describe_daemon_task_definition( self, - input: DescribeDaemonTaskDefinitionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDaemonTaskDefinitionInputDict], ) -> DescribeDaemonTaskDefinitionOutput: """ Describes a daemon task definition. You can specify a `family` and @@ -1268,8 +1778,6 @@ def describe_daemon_task_definition( revision in that family. Args: - input: - An instance of `DescribeDaemonTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1279,12 +1787,34 @@ def describe_daemon_task_definition( Returns: An instance of `DescribeDaemonTaskDefinitionOutput`. """ - return self._invoke(input, _models.DESCRIBE_DAEMON_TASK_DEFINITION, [], plugins) + def describe_daemon_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDaemonTaskDefinitionOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DAEMON_TASK_DEFINITION, args, kwargs), + _models.DESCRIBE_DAEMON_TASK_DEFINITION, + [], + plugins, + ) + + @_overload def describe_express_gateway_service( self, - input: DescribeExpressGatewayServiceInput, + request: _models.DescribeExpressGatewayServiceInput + | _models.DescribeExpressGatewayServiceInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeExpressGatewayServiceOutput: ... + + @_overload + def describe_express_gateway_service( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExpressGatewayServiceInputDict], ) -> DescribeExpressGatewayServiceOutput: """ Retrieves detailed information about an Express service, including @@ -1299,8 +1829,6 @@ def describe_express_gateway_service( resource tags. Args: - input: - An instance of `DescribeExpressGatewayServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1310,20 +1838,39 @@ def describe_express_gateway_service( Returns: An instance of `DescribeExpressGatewayServiceOutput`. """ + + def describe_express_gateway_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExpressGatewayServiceOutput: return self._invoke( - input, _models.DESCRIBE_EXPRESS_GATEWAY_SERVICE, [], plugins + self._select_input(_models.DESCRIBE_EXPRESS_GATEWAY_SERVICE, args, kwargs), + _models.DESCRIBE_EXPRESS_GATEWAY_SERVICE, + [], + plugins, ) + @_overload + def describe_gateway( + self, + request: _models.DescribeGatewayInput | _models.DescribeGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGatewayOutput: ... + + @_overload def describe_gateway( - self, input: DescribeGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGatewayInputDict], ) -> DescribeGatewayOutput: """ Describes a gateway, including its configuration, status, and the type-specific infrastructure settings that it uses. Args: - input: - An instance of `DescribeGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1333,10 +1880,34 @@ def describe_gateway( Returns: An instance of `DescribeGatewayOutput`. """ - return self._invoke(input, _models.DESCRIBE_GATEWAY, [], plugins) + def describe_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGatewayOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_GATEWAY, args, kwargs), + _models.DESCRIBE_GATEWAY, + [], + plugins, + ) + + @_overload + def describe_gateway_resources( + self, + request: _models.DescribeGatewayResourcesInput + | _models.DescribeGatewayResourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGatewayResourcesOutput: ... + + @_overload def describe_gateway_resources( - self, input: DescribeGatewayResourcesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGatewayResourcesInputDict], ) -> DescribeGatewayResourcesOutput: """ Returns the infrastructure that a gateway has created and manages, so @@ -1349,8 +1920,6 @@ def describe_gateway_resources( The results are paginated. Args: - input: - An instance of `DescribeGatewayResourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1360,10 +1929,34 @@ def describe_gateway_resources( Returns: An instance of `DescribeGatewayResourcesOutput`. """ - return self._invoke(input, _models.DESCRIBE_GATEWAY_RESOURCES, [], plugins) + def describe_gateway_resources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGatewayResourcesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_GATEWAY_RESOURCES, args, kwargs), + _models.DESCRIBE_GATEWAY_RESOURCES, + [], + plugins, + ) + + @_overload def describe_gateway_route( - self, input: DescribeGatewayRouteInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeGatewayRouteInput + | _models.DescribeGatewayRouteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGatewayRouteOutput: ... + + @_overload + def describe_gateway_route( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGatewayRouteInputDict], ) -> DescribeGatewayRouteOutput: """ Describes a gateway route, including its status, the service it routes @@ -1371,8 +1964,6 @@ def describe_gateway_route( groups and listener rules, that the gateway manages for it. Args: - input: - An instance of `DescribeGatewayRouteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1382,12 +1973,34 @@ def describe_gateway_route( Returns: An instance of `DescribeGatewayRouteOutput`. """ - return self._invoke(input, _models.DESCRIBE_GATEWAY_ROUTE, [], plugins) + def describe_gateway_route( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGatewayRouteOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_GATEWAY_ROUTE, args, kwargs), + _models.DESCRIBE_GATEWAY_ROUTE, + [], + plugins, + ) + + @_overload + def describe_service_deployments( + self, + request: _models.DescribeServiceDeploymentsInput + | _models.DescribeServiceDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeServiceDeploymentsOutput: ... + + @_overload def describe_service_deployments( self, - input: DescribeServiceDeploymentsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServiceDeploymentsInputDict], ) -> DescribeServiceDeploymentsOutput: """ Describes one or more of your service deployments. @@ -1398,8 +2011,6 @@ def describe_service_deployments( deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployment.html). Args: - input: - An instance of `DescribeServiceDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1409,10 +2020,34 @@ def describe_service_deployments( Returns: An instance of `DescribeServiceDeploymentsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SERVICE_DEPLOYMENTS, [], plugins) + def describe_service_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServiceDeploymentsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SERVICE_DEPLOYMENTS, args, kwargs), + _models.DESCRIBE_SERVICE_DEPLOYMENTS, + [], + plugins, + ) + + @_overload def describe_service_revisions( - self, input: DescribeServiceRevisionsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeServiceRevisionsInput + | _models.DescribeServiceRevisionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeServiceRevisionsOutput: ... + + @_overload + def describe_service_revisions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServiceRevisionsInputDict], ) -> DescribeServiceRevisionsOutput: """ Describes one or more service revisions. @@ -1427,8 +2062,6 @@ def describe_service_revisions( 25, 2024. Args: - input: - An instance of `DescribeServiceRevisionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1438,17 +2071,38 @@ def describe_service_revisions( Returns: An instance of `DescribeServiceRevisionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SERVICE_REVISIONS, [], plugins) + def describe_service_revisions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServiceRevisionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SERVICE_REVISIONS, args, kwargs), + _models.DESCRIBE_SERVICE_REVISIONS, + [], + plugins, + ) + + @_overload def describe_services( - self, input: DescribeServicesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeServicesInput | _models.DescribeServicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeServicesOutput: ... + + @_overload + def describe_services( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServicesInputDict], ) -> DescribeServicesOutput: """ Describes the specified services running in your cluster. Args: - input: - An instance of `DescribeServicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1458,10 +2112,34 @@ def describe_services( Returns: An instance of `DescribeServicesOutput`. """ - return self._invoke(input, _models.DESCRIBE_SERVICES, [], plugins) + def describe_services( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServicesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SERVICES, args, kwargs), + _models.DESCRIBE_SERVICES, + [], + plugins, + ) + + @_overload def describe_task_definition( - self, input: DescribeTaskDefinitionInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeTaskDefinitionInput + | _models.DescribeTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTaskDefinitionOutput: ... + + @_overload + def describe_task_definition( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTaskDefinitionInputDict], ) -> DescribeTaskDefinitionOutput: """ Describes a task definition. You can specify a `family` and `revision` @@ -1473,8 +2151,6 @@ def describe_task_definition( or service references them. Args: - input: - An instance of `DescribeTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1484,10 +2160,33 @@ def describe_task_definition( Returns: An instance of `DescribeTaskDefinitionOutput`. """ - return self._invoke(input, _models.DESCRIBE_TASK_DEFINITION, [], plugins) + def describe_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTaskDefinitionOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TASK_DEFINITION, args, kwargs), + _models.DESCRIBE_TASK_DEFINITION, + [], + plugins, + ) + + @_overload + def describe_tasks( + self, + request: _models.DescribeTasksInput | _models.DescribeTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTasksOutput: ... + + @_overload def describe_tasks( - self, input: DescribeTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTasksInputDict], ) -> DescribeTasksOutput: """ Describes a specified task or tasks. @@ -1501,8 +2200,6 @@ def describe_tasks( the response. Args: - input: - An instance of `DescribeTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1512,10 +2209,33 @@ def describe_tasks( Returns: An instance of `DescribeTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_TASKS, [], plugins) + def describe_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TASKS, args, kwargs), + _models.DESCRIBE_TASKS, + [], + plugins, + ) + + @_overload def describe_task_sets( - self, input: DescribeTaskSetsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeTaskSetsInput | _models.DescribeTaskSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTaskSetsOutput: ... + + @_overload + def describe_task_sets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTaskSetsInputDict], ) -> DescribeTaskSetsOutput: """ Describes the task sets in the specified cluster and service. This is @@ -1525,8 +2245,6 @@ def describe_task_sets( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `DescribeTaskSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1536,12 +2254,34 @@ def describe_task_sets( Returns: An instance of `DescribeTaskSetsOutput`. """ - return self._invoke(input, _models.DESCRIBE_TASK_SETS, [], plugins) + def describe_task_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTaskSetsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TASK_SETS, args, kwargs), + _models.DESCRIBE_TASK_SETS, + [], + plugins, + ) + + @_overload + def disassociate_gateway_from_cluster( + self, + request: _models.DisassociateGatewayFromClusterInput + | _models.DisassociateGatewayFromClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateGatewayFromClusterOutput: ... + + @_overload def disassociate_gateway_from_cluster( self, - input: DisassociateGatewayFromClusterInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateGatewayFromClusterInputDict], ) -> DisassociateGatewayFromClusterOutput: """ Removes the association between a gateway and an Amazon ECS cluster. The @@ -1552,8 +2292,6 @@ def disassociate_gateway_from_cluster( changes are made until the affected services are updated. Args: - input: - An instance of `DisassociateGatewayFromClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1563,14 +2301,34 @@ def disassociate_gateway_from_cluster( Returns: An instance of `DisassociateGatewayFromClusterOutput`. """ + + def disassociate_gateway_from_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateGatewayFromClusterOutput: return self._invoke( - input, _models.DISASSOCIATE_GATEWAY_FROM_CLUSTER, [], plugins + self._select_input(_models.DISASSOCIATE_GATEWAY_FROM_CLUSTER, args, kwargs), + _models.DISASSOCIATE_GATEWAY_FROM_CLUSTER, + [], + plugins, ) + @_overload + def discover_poll_endpoint( + self, + request: _models.DiscoverPollEndpointInput + | _models.DiscoverPollEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DiscoverPollEndpointOutput: ... + + @_overload def discover_poll_endpoint( self, - input: DiscoverPollEndpointInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DiscoverPollEndpointInputDict], ) -> DiscoverPollEndpointOutput: """ Note: @@ -1580,8 +2338,6 @@ def discover_poll_endpoint( Returns an endpoint for the Amazon ECS agent to poll for updates. Args: - input: - An instance of `DiscoverPollEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1591,10 +2347,33 @@ def discover_poll_endpoint( Returns: An instance of `DiscoverPollEndpointOutput`. """ - return self._invoke(input, _models.DISCOVER_POLL_ENDPOINT, [], plugins) + def discover_poll_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DiscoverPollEndpointOutput: + return self._invoke( + self._select_input(_models.DISCOVER_POLL_ENDPOINT, args, kwargs), + _models.DISCOVER_POLL_ENDPOINT, + [], + plugins, + ) + + @_overload def execute_command( - self, input: ExecuteCommandInput, plugins: list[Plugin] | None = None + self, + request: _models.ExecuteCommandInput | _models.ExecuteCommandInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ExecuteCommandOutput: ... + + @_overload + def execute_command( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ExecuteCommandInputDict], ) -> ExecuteCommandOutput: """ Runs a command remotely on a container within a task. @@ -1610,8 +2389,6 @@ def execute_command( in the *Amazon ECS Developer Guide*. Args: - input: - An instance of `ExecuteCommandInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1621,17 +2398,38 @@ def execute_command( Returns: An instance of `ExecuteCommandOutput`. """ - return self._invoke(input, _models.EXECUTE_COMMAND, [], plugins) + def execute_command( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ExecuteCommandOutput: + return self._invoke( + self._select_input(_models.EXECUTE_COMMAND, args, kwargs), + _models.EXECUTE_COMMAND, + [], + plugins, + ) + + @_overload + def get_task_protection( + self, + request: _models.GetTaskProtectionInput | _models.GetTaskProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTaskProtectionOutput: ... + + @_overload def get_task_protection( - self, input: GetTaskProtectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTaskProtectionInputDict], ) -> GetTaskProtectionOutput: """ Retrieves the protection status of tasks in an Amazon ECS service. Args: - input: - An instance of `GetTaskProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1641,19 +2439,39 @@ def get_task_protection( Returns: An instance of `GetTaskProtectionOutput`. """ - return self._invoke(input, _models.GET_TASK_PROTECTION, [], plugins) + def get_task_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTaskProtectionOutput: + return self._invoke( + self._select_input(_models.GET_TASK_PROTECTION, args, kwargs), + _models.GET_TASK_PROTECTION, + [], + plugins, + ) + + @_overload + def list_account_settings( + self, + request: _models.ListAccountSettingsInput + | _models.ListAccountSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAccountSettingsOutput: ... + + @_overload def list_account_settings( self, - input: ListAccountSettingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAccountSettingsInputDict], ) -> ListAccountSettingsOutput: """ Lists the account settings for a specified principal. Args: - input: - An instance of `ListAccountSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1663,10 +2481,33 @@ def list_account_settings( Returns: An instance of `ListAccountSettingsOutput`. """ - return self._invoke(input, _models.LIST_ACCOUNT_SETTINGS, [], plugins) + def list_account_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAccountSettingsOutput: + return self._invoke( + self._select_input(_models.LIST_ACCOUNT_SETTINGS, args, kwargs), + _models.LIST_ACCOUNT_SETTINGS, + [], + plugins, + ) + + @_overload def list_attributes( - self, input: ListAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAttributesInput | _models.ListAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttributesOutput: ... + + @_overload + def list_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttributesInputDict], ) -> ListAttributesOutput: """ Lists the attributes for Amazon ECS resources within a specified target @@ -1679,8 +2520,6 @@ def list_attributes( running a Linux AMI (`ecs.os-type=linux`). Args: - input: - An instance of `ListAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1690,19 +2529,38 @@ def list_attributes( Returns: An instance of `ListAttributesOutput`. """ - return self._invoke(input, _models.LIST_ATTRIBUTES, [], plugins) + def list_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttributesOutput: + return self._invoke( + self._select_input(_models.LIST_ATTRIBUTES, args, kwargs), + _models.LIST_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def list_clusters( + self, + request: _models.ListClustersInput | _models.ListClustersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListClustersOutput: ... + + @_overload def list_clusters( self, - input: ListClustersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListClustersInputDict], ) -> ListClustersOutput: """ Returns a list of existing clusters. Args: - input: - An instance of `ListClustersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1712,12 +2570,34 @@ def list_clusters( Returns: An instance of `ListClustersOutput`. """ - return self._invoke(input, _models.LIST_CLUSTERS, [], plugins) + def list_clusters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListClustersOutput: + return self._invoke( + self._select_input(_models.LIST_CLUSTERS, args, kwargs), + _models.LIST_CLUSTERS, + [], + plugins, + ) + + @_overload + def list_container_instances( + self, + request: _models.ListContainerInstancesInput + | _models.ListContainerInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListContainerInstancesOutput: ... + + @_overload def list_container_instances( self, - input: ListContainerInstancesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListContainerInstancesInputDict], ) -> ListContainerInstancesOutput: """ Returns a list of container instances in a specified cluster. You can @@ -1728,8 +2608,6 @@ def list_container_instances( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `ListContainerInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1739,18 +2617,40 @@ def list_container_instances( Returns: An instance of `ListContainerInstancesOutput`. """ - return self._invoke(input, _models.LIST_CONTAINER_INSTANCES, [], plugins) + def list_container_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListContainerInstancesOutput: + return self._invoke( + self._select_input(_models.LIST_CONTAINER_INSTANCES, args, kwargs), + _models.LIST_CONTAINER_INSTANCES, + [], + plugins, + ) + + @_overload + def list_daemon_deployments( + self, + request: _models.ListDaemonDeploymentsInput + | _models.ListDaemonDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDaemonDeploymentsOutput: ... + + @_overload def list_daemon_deployments( - self, input: ListDaemonDeploymentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDaemonDeploymentsInputDict], ) -> ListDaemonDeploymentsOutput: """ Returns a list of daemon deployments for a specified daemon. You can filter the results by status or creation time. Args: - input: - An instance of `ListDaemonDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1760,18 +2660,39 @@ def list_daemon_deployments( Returns: An instance of `ListDaemonDeploymentsOutput`. """ - return self._invoke(input, _models.LIST_DAEMON_DEPLOYMENTS, [], plugins) + def list_daemon_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDaemonDeploymentsOutput: + return self._invoke( + self._select_input(_models.LIST_DAEMON_DEPLOYMENTS, args, kwargs), + _models.LIST_DAEMON_DEPLOYMENTS, + [], + plugins, + ) + + @_overload + def list_daemons( + self, + request: _models.ListDaemonsInput | _models.ListDaemonsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDaemonsOutput: ... + + @_overload def list_daemons( - self, input: ListDaemonsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDaemonsInputDict], ) -> ListDaemonsOutput: """ Returns a list of daemons. You can filter the results by cluster or capacity provider. Args: - input: - An instance of `ListDaemonsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1781,12 +2702,34 @@ def list_daemons( Returns: An instance of `ListDaemonsOutput`. """ - return self._invoke(input, _models.LIST_DAEMONS, [], plugins) + def list_daemons( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDaemonsOutput: + return self._invoke( + self._select_input(_models.LIST_DAEMONS, args, kwargs), + _models.LIST_DAEMONS, + [], + plugins, + ) + + @_overload + def list_daemon_task_definitions( + self, + request: _models.ListDaemonTaskDefinitionsInput + | _models.ListDaemonTaskDefinitionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDaemonTaskDefinitionsOutput: ... + + @_overload def list_daemon_task_definitions( self, - input: ListDaemonTaskDefinitionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDaemonTaskDefinitionsInputDict], ) -> ListDaemonTaskDefinitionsOutput: """ Returns a list of daemon task definitions that are registered to your @@ -1794,8 +2737,6 @@ def list_daemon_task_definitions( find daemon task definitions that match your criteria. Args: - input: - An instance of `ListDaemonTaskDefinitionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1805,12 +2746,34 @@ def list_daemon_task_definitions( Returns: An instance of `ListDaemonTaskDefinitionsOutput`. """ - return self._invoke(input, _models.LIST_DAEMON_TASK_DEFINITIONS, [], plugins) + def list_daemon_task_definitions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDaemonTaskDefinitionsOutput: + return self._invoke( + self._select_input(_models.LIST_DAEMON_TASK_DEFINITIONS, args, kwargs), + _models.LIST_DAEMON_TASK_DEFINITIONS, + [], + plugins, + ) + + @_overload + def list_gateway_cluster_associations( + self, + request: _models.ListGatewayClusterAssociationsInput + | _models.ListGatewayClusterAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewayClusterAssociationsOutput: ... + + @_overload def list_gateway_cluster_associations( self, - input: ListGatewayClusterAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayClusterAssociationsInputDict], ) -> ListGatewayClusterAssociationsOutput: """ Returns a list of the associations between gateways and clusters. You @@ -1819,8 +2782,6 @@ def list_gateway_cluster_associations( operation returns quickly and successfully. Args: - input: - An instance of `ListGatewayClusterAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1830,14 +2791,33 @@ def list_gateway_cluster_associations( Returns: An instance of `ListGatewayClusterAssociationsOutput`. """ + + def list_gateway_cluster_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayClusterAssociationsOutput: return self._invoke( - input, _models.LIST_GATEWAY_CLUSTER_ASSOCIATIONS, [], plugins + self._select_input(_models.LIST_GATEWAY_CLUSTER_ASSOCIATIONS, args, kwargs), + _models.LIST_GATEWAY_CLUSTER_ASSOCIATIONS, + [], + plugins, ) + @_overload def list_gateway_routes( self, - input: ListGatewayRoutesInput | None = None, + request: _models.ListGatewayRoutesInput | _models.ListGatewayRoutesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListGatewayRoutesOutput: ... + + @_overload + def list_gateway_routes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewayRoutesInputDict], ) -> ListGatewayRoutesOutput: """ Returns a list of gateway routes. A gateway route represents the @@ -1848,8 +2828,6 @@ def list_gateway_routes( operation returns quickly and successfully. Args: - input: - An instance of `ListGatewayRoutesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1859,12 +2837,33 @@ def list_gateway_routes( Returns: An instance of `ListGatewayRoutesOutput`. """ - return self._invoke(input, _models.LIST_GATEWAY_ROUTES, [], plugins) + def list_gateway_routes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewayRoutesOutput: + return self._invoke( + self._select_input(_models.LIST_GATEWAY_ROUTES, args, kwargs), + _models.LIST_GATEWAY_ROUTES, + [], + plugins, + ) + + @_overload + def list_gateways( + self, + request: _models.ListGatewaysInput | _models.ListGatewaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGatewaysOutput: ... + + @_overload def list_gateways( self, - input: ListGatewaysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGatewaysInputDict], ) -> ListGatewaysOutput: """ Returns a list of gateways in your account. You can filter the results @@ -1873,8 +2872,6 @@ def list_gateways( successfully. Args: - input: - An instance of `ListGatewaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1884,10 +2881,34 @@ def list_gateways( Returns: An instance of `ListGatewaysOutput`. """ - return self._invoke(input, _models.LIST_GATEWAYS, [], plugins) + def list_gateways( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGatewaysOutput: + return self._invoke( + self._select_input(_models.LIST_GATEWAYS, args, kwargs), + _models.LIST_GATEWAYS, + [], + plugins, + ) + + @_overload def list_service_deployments( - self, input: ListServiceDeploymentsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListServiceDeploymentsInput + | _models.ListServiceDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServiceDeploymentsOutput: ... + + @_overload + def list_service_deployments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServiceDeploymentsInputDict], ) -> ListServiceDeploymentsOutput: """ This operation lists all the service deployments that meet the specified @@ -1901,8 +2922,6 @@ def list_service_deployments( [DescribeServiceRevisions](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceRevisions.html). Args: - input: - An instance of `ListServiceDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1912,20 +2931,39 @@ def list_service_deployments( Returns: An instance of `ListServiceDeploymentsOutput`. """ - return self._invoke(input, _models.LIST_SERVICE_DEPLOYMENTS, [], plugins) + def list_service_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServiceDeploymentsOutput: + return self._invoke( + self._select_input(_models.LIST_SERVICE_DEPLOYMENTS, args, kwargs), + _models.LIST_SERVICE_DEPLOYMENTS, + [], + plugins, + ) + + @_overload def list_services( self, - input: ListServicesInput | None = None, + request: _models.ListServicesInput | _models.ListServicesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListServicesOutput: ... + + @_overload + def list_services( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServicesInputDict], ) -> ListServicesOutput: """ Returns a list of services. You can filter the results by cluster, launch type, and scheduling strategy. Args: - input: - An instance of `ListServicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1935,10 +2973,34 @@ def list_services( Returns: An instance of `ListServicesOutput`. """ - return self._invoke(input, _models.LIST_SERVICES, [], plugins) + def list_services( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServicesOutput: + return self._invoke( + self._select_input(_models.LIST_SERVICES, args, kwargs), + _models.LIST_SERVICES, + [], + plugins, + ) + + @_overload + def list_services_by_namespace( + self, + request: _models.ListServicesByNamespaceInput + | _models.ListServicesByNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServicesByNamespaceOutput: ... + + @_overload def list_services_by_namespace( - self, input: ListServicesByNamespaceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServicesByNamespaceInputDict], ) -> ListServicesByNamespaceOutput: """ This operation lists all of the services that are associated with a @@ -1951,8 +3013,6 @@ def list_services_by_namespace( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `ListServicesByNamespaceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1962,17 +3022,39 @@ def list_services_by_namespace( Returns: An instance of `ListServicesByNamespaceOutput`. """ - return self._invoke(input, _models.LIST_SERVICES_BY_NAMESPACE, [], plugins) + def list_services_by_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServicesByNamespaceOutput: + return self._invoke( + self._select_input(_models.LIST_SERVICES_BY_NAMESPACE, args, kwargs), + _models.LIST_SERVICES_BY_NAMESPACE, + [], + plugins, + ) + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List the tags for an Amazon ECS resource. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1982,12 +3064,34 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def list_task_definition_families( + self, + request: _models.ListTaskDefinitionFamiliesInput + | _models.ListTaskDefinitionFamiliesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTaskDefinitionFamiliesOutput: ... + + @_overload def list_task_definition_families( self, - input: ListTaskDefinitionFamiliesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTaskDefinitionFamiliesInputDict], ) -> ListTaskDefinitionFamiliesOutput: """ Returns a list of task definition families that are registered to your @@ -2000,8 +3104,6 @@ def list_task_definition_families( parameter. Args: - input: - An instance of `ListTaskDefinitionFamiliesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2011,12 +3113,34 @@ def list_task_definition_families( Returns: An instance of `ListTaskDefinitionFamiliesOutput`. """ - return self._invoke(input, _models.LIST_TASK_DEFINITION_FAMILIES, [], plugins) + def list_task_definition_families( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTaskDefinitionFamiliesOutput: + return self._invoke( + self._select_input(_models.LIST_TASK_DEFINITION_FAMILIES, args, kwargs), + _models.LIST_TASK_DEFINITION_FAMILIES, + [], + plugins, + ) + + @_overload + def list_task_definitions( + self, + request: _models.ListTaskDefinitionsInput + | _models.ListTaskDefinitionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTaskDefinitionsOutput: ... + + @_overload def list_task_definitions( self, - input: ListTaskDefinitionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTaskDefinitionsInputDict], ) -> ListTaskDefinitionsOutput: """ Returns a list of task definitions that are registered to your account. @@ -2024,8 +3148,6 @@ def list_task_definitions( parameter or by status with the `status` parameter. Args: - input: - An instance of `ListTaskDefinitionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2035,10 +3157,33 @@ def list_task_definitions( Returns: An instance of `ListTaskDefinitionsOutput`. """ - return self._invoke(input, _models.LIST_TASK_DEFINITIONS, [], plugins) + def list_task_definitions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTaskDefinitionsOutput: + return self._invoke( + self._select_input(_models.LIST_TASK_DEFINITIONS, args, kwargs), + _models.LIST_TASK_DEFINITIONS, + [], + plugins, + ) + + @_overload + def list_tasks( + self, + request: _models.ListTasksInput | _models.ListTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTasksOutput: ... + + @_overload def list_tasks( - self, input: ListTasksInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTasksInputDict], ) -> ListTasksOutput: """ Returns a list of tasks. You can filter the results by cluster, task @@ -2048,8 +3193,6 @@ def list_tasks( Recently stopped tasks might appear in the returned results. Args: - input: - An instance of `ListTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2059,10 +3202,33 @@ def list_tasks( Returns: An instance of `ListTasksOutput`. """ - return self._invoke(input, _models.LIST_TASKS, [], plugins) + def list_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTasksOutput: + return self._invoke( + self._select_input(_models.LIST_TASKS, args, kwargs), + _models.LIST_TASKS, + [], + plugins, + ) + + @_overload + def put_account_setting( + self, + request: _models.PutAccountSettingInput | _models.PutAccountSettingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountSettingOutput: ... + + @_overload def put_account_setting( - self, input: PutAccountSettingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountSettingInputDict], ) -> PutAccountSettingOutput: """ Modifies an account setting. Account settings are set on a per-Region @@ -2075,8 +3241,6 @@ def put_account_setting( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `PutAccountSettingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2086,10 +3250,34 @@ def put_account_setting( Returns: An instance of `PutAccountSettingOutput`. """ - return self._invoke(input, _models.PUT_ACCOUNT_SETTING, [], plugins) + def put_account_setting( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountSettingOutput: + return self._invoke( + self._select_input(_models.PUT_ACCOUNT_SETTING, args, kwargs), + _models.PUT_ACCOUNT_SETTING, + [], + plugins, + ) + + @_overload + def put_account_setting_default( + self, + request: _models.PutAccountSettingDefaultInput + | _models.PutAccountSettingDefaultInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountSettingDefaultOutput: ... + + @_overload def put_account_setting_default( - self, input: PutAccountSettingDefaultInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountSettingDefaultInputDict], ) -> PutAccountSettingDefaultOutput: """ Modifies an account setting for all users on an account for whom no @@ -2097,8 +3285,6 @@ def put_account_setting_default( on a per-Region basis. Args: - input: - An instance of `PutAccountSettingDefaultInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2108,10 +3294,33 @@ def put_account_setting_default( Returns: An instance of `PutAccountSettingDefaultOutput`. """ - return self._invoke(input, _models.PUT_ACCOUNT_SETTING_DEFAULT, [], plugins) + def put_account_setting_default( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountSettingDefaultOutput: + return self._invoke( + self._select_input(_models.PUT_ACCOUNT_SETTING_DEFAULT, args, kwargs), + _models.PUT_ACCOUNT_SETTING_DEFAULT, + [], + plugins, + ) + + @_overload + def put_attributes( + self, + request: _models.PutAttributesInput | _models.PutAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAttributesOutput: ... + + @_overload def put_attributes( - self, input: PutAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAttributesInputDict], ) -> PutAttributesOutput: """ Create or update an attribute on an Amazon ECS resource. If the @@ -2123,8 +3332,6 @@ def put_attributes( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `PutAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2134,12 +3341,34 @@ def put_attributes( Returns: An instance of `PutAttributesOutput`. """ - return self._invoke(input, _models.PUT_ATTRIBUTES, [], plugins) + def put_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAttributesOutput: + return self._invoke( + self._select_input(_models.PUT_ATTRIBUTES, args, kwargs), + _models.PUT_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def put_cluster_capacity_providers( + self, + request: _models.PutClusterCapacityProvidersInput + | _models.PutClusterCapacityProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutClusterCapacityProvidersOutput: ... + + @_overload def put_cluster_capacity_providers( self, - input: PutClusterCapacityProvidersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutClusterCapacityProvidersInputDict], ) -> PutClusterCapacityProvidersOutput: """ Modifies the available capacity providers and the default capacity @@ -2167,8 +3396,6 @@ def put_cluster_capacity_providers( available only within the specified cluster. Args: - input: - An instance of `PutClusterCapacityProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2178,12 +3405,34 @@ def put_cluster_capacity_providers( Returns: An instance of `PutClusterCapacityProvidersOutput`. """ - return self._invoke(input, _models.PUT_CLUSTER_CAPACITY_PROVIDERS, [], plugins) + def put_cluster_capacity_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutClusterCapacityProvidersOutput: + return self._invoke( + self._select_input(_models.PUT_CLUSTER_CAPACITY_PROVIDERS, args, kwargs), + _models.PUT_CLUSTER_CAPACITY_PROVIDERS, + [], + plugins, + ) + + @_overload + def register_container_instance( + self, + request: _models.RegisterContainerInstanceInput + | _models.RegisterContainerInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterContainerInstanceOutput: ... + + @_overload def register_container_instance( self, - input: RegisterContainerInstanceInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterContainerInstanceInputDict], ) -> RegisterContainerInstanceOutput: """ Note: @@ -2194,8 +3443,6 @@ def register_container_instance( becomes available to place containers on. Args: - input: - An instance of `RegisterContainerInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2205,12 +3452,34 @@ def register_container_instance( Returns: An instance of `RegisterContainerInstanceOutput`. """ - return self._invoke(input, _models.REGISTER_CONTAINER_INSTANCE, [], plugins) + def register_container_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterContainerInstanceOutput: + return self._invoke( + self._select_input(_models.REGISTER_CONTAINER_INSTANCE, args, kwargs), + _models.REGISTER_CONTAINER_INSTANCE, + [], + plugins, + ) + + @_overload + def register_daemon_task_definition( + self, + request: _models.RegisterDaemonTaskDefinitionInput + | _models.RegisterDaemonTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterDaemonTaskDefinitionOutput: ... + + @_overload def register_daemon_task_definition( self, - input: RegisterDaemonTaskDefinitionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterDaemonTaskDefinitionInputDict], ) -> RegisterDaemonTaskDefinitionOutput: """ Registers a new daemon task definition from the supplied `family` and @@ -2230,8 +3499,6 @@ def register_daemon_task_definition( you register it. Args: - input: - An instance of `RegisterDaemonTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2241,10 +3508,34 @@ def register_daemon_task_definition( Returns: An instance of `RegisterDaemonTaskDefinitionOutput`. """ - return self._invoke(input, _models.REGISTER_DAEMON_TASK_DEFINITION, [], plugins) + def register_daemon_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterDaemonTaskDefinitionOutput: + return self._invoke( + self._select_input(_models.REGISTER_DAEMON_TASK_DEFINITION, args, kwargs), + _models.REGISTER_DAEMON_TASK_DEFINITION, + [], + plugins, + ) + + @_overload + def register_task_definition( + self, + request: _models.RegisterTaskDefinitionInput + | _models.RegisterTaskDefinitionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterTaskDefinitionOutput: ... + + @_overload def register_task_definition( - self, input: RegisterTaskDefinitionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterTaskDefinitionInputDict], ) -> RegisterTaskDefinitionOutput: """ Registers a new task definition from the supplied `family` and @@ -2273,8 +3564,6 @@ def register_task_definition( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `RegisterTaskDefinitionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2284,10 +3573,33 @@ def register_task_definition( Returns: An instance of `RegisterTaskDefinitionOutput`. """ - return self._invoke(input, _models.REGISTER_TASK_DEFINITION, [], plugins) + def register_task_definition( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterTaskDefinitionOutput: + return self._invoke( + self._select_input(_models.REGISTER_TASK_DEFINITION, args, kwargs), + _models.REGISTER_TASK_DEFINITION, + [], + plugins, + ) + + @_overload + def run_task( + self, + request: _models.RunTaskInput | _models.RunTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RunTaskOutput: ... + + @_overload def run_task( - self, input: RunTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RunTaskInputDict], ) -> RunTaskOutput: """ Starts a new task using the specified task definition. @@ -2356,8 +3668,6 @@ def run_task( quotas](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html). Args: - input: - An instance of `RunTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2367,10 +3677,33 @@ def run_task( Returns: An instance of `RunTaskOutput`. """ - return self._invoke(input, _models.RUN_TASK, [], plugins) + def run_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RunTaskOutput: + return self._invoke( + self._select_input(_models.RUN_TASK, args, kwargs), + _models.RUN_TASK, + [], + plugins, + ) + + @_overload + def start_task( + self, + request: _models.StartTaskInput | _models.StartTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartTaskOutput: ... + + @_overload def start_task( - self, input: StartTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartTaskInputDict], ) -> StartTaskOutput: """ Starts a new task from the specified task definition on the specified @@ -2396,8 +3729,6 @@ def start_task( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `StartTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2407,10 +3738,34 @@ def start_task( Returns: An instance of `StartTaskOutput`. """ - return self._invoke(input, _models.START_TASK, [], plugins) + def start_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartTaskOutput: + return self._invoke( + self._select_input(_models.START_TASK, args, kwargs), + _models.START_TASK, + [], + plugins, + ) + + @_overload + def stop_service_deployment( + self, + request: _models.StopServiceDeploymentInput + | _models.StopServiceDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopServiceDeploymentOutput: ... + + @_overload def stop_service_deployment( - self, input: StopServiceDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopServiceDeploymentInputDict], ) -> StopServiceDeploymentOutput: """ Stops an ongoing service deployment. @@ -2428,8 +3783,6 @@ def stop_service_deployment( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `StopServiceDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2439,10 +3792,33 @@ def stop_service_deployment( Returns: An instance of `StopServiceDeploymentOutput`. """ - return self._invoke(input, _models.STOP_SERVICE_DEPLOYMENT, [], plugins) + def stop_service_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopServiceDeploymentOutput: + return self._invoke( + self._select_input(_models.STOP_SERVICE_DEPLOYMENT, args, kwargs), + _models.STOP_SERVICE_DEPLOYMENT, + [], + plugins, + ) + + @_overload def stop_task( - self, input: StopTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.StopTaskInput | _models.StopTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopTaskOutput: ... + + @_overload + def stop_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopTaskInputDict], ) -> StopTaskOutput: """ Stops a running task. Any tags associated with the task will be deleted. @@ -2469,8 +3845,6 @@ def stop_task( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `StopTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2480,12 +3854,34 @@ def stop_task( Returns: An instance of `StopTaskOutput`. """ - return self._invoke(input, _models.STOP_TASK, [], plugins) + def stop_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopTaskOutput: + return self._invoke( + self._select_input(_models.STOP_TASK, args, kwargs), + _models.STOP_TASK, + [], + plugins, + ) + + @_overload + def submit_attachment_state_changes( + self, + request: _models.SubmitAttachmentStateChangesInput + | _models.SubmitAttachmentStateChangesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubmitAttachmentStateChangesOutput: ... + + @_overload def submit_attachment_state_changes( self, - input: SubmitAttachmentStateChangesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubmitAttachmentStateChangesInputDict], ) -> SubmitAttachmentStateChangesOutput: """ Note: @@ -2495,8 +3891,6 @@ def submit_attachment_state_changes( Sent to acknowledge that an attachment changed states. Args: - input: - An instance of `SubmitAttachmentStateChangesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2506,12 +3900,34 @@ def submit_attachment_state_changes( Returns: An instance of `SubmitAttachmentStateChangesOutput`. """ - return self._invoke(input, _models.SUBMIT_ATTACHMENT_STATE_CHANGES, [], plugins) + def submit_attachment_state_changes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubmitAttachmentStateChangesOutput: + return self._invoke( + self._select_input(_models.SUBMIT_ATTACHMENT_STATE_CHANGES, args, kwargs), + _models.SUBMIT_ATTACHMENT_STATE_CHANGES, + [], + plugins, + ) + + @_overload + def submit_container_state_change( + self, + request: _models.SubmitContainerStateChangeInput + | _models.SubmitContainerStateChangeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubmitContainerStateChangeOutput: ... + + @_overload def submit_container_state_change( self, - input: SubmitContainerStateChangeInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubmitContainerStateChangeInputDict], ) -> SubmitContainerStateChangeOutput: """ Note: @@ -2521,8 +3937,6 @@ def submit_container_state_change( Sent to acknowledge that a container changed states. Args: - input: - An instance of `SubmitContainerStateChangeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2532,12 +3946,34 @@ def submit_container_state_change( Returns: An instance of `SubmitContainerStateChangeOutput`. """ - return self._invoke(input, _models.SUBMIT_CONTAINER_STATE_CHANGE, [], plugins) + def submit_container_state_change( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubmitContainerStateChangeOutput: + return self._invoke( + self._select_input(_models.SUBMIT_CONTAINER_STATE_CHANGE, args, kwargs), + _models.SUBMIT_CONTAINER_STATE_CHANGE, + [], + plugins, + ) + + @_overload + def submit_task_state_change( + self, + request: _models.SubmitTaskStateChangeInput + | _models.SubmitTaskStateChangeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubmitTaskStateChangeOutput: ... + + @_overload def submit_task_state_change( self, - input: SubmitTaskStateChangeInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubmitTaskStateChangeInputDict], ) -> SubmitTaskStateChangeOutput: """ Note: @@ -2547,8 +3983,6 @@ def submit_task_state_change( Sent to acknowledge that a task changed states. Args: - input: - An instance of `SubmitTaskStateChangeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2558,10 +3992,33 @@ def submit_task_state_change( Returns: An instance of `SubmitTaskStateChangeOutput`. """ - return self._invoke(input, _models.SUBMIT_TASK_STATE_CHANGE, [], plugins) + def submit_task_state_change( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubmitTaskStateChangeOutput: + return self._invoke( + self._select_input(_models.SUBMIT_TASK_STATE_CHANGE, args, kwargs), + _models.SUBMIT_TASK_STATE_CHANGE, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Associates the specified tags to a resource with the specified @@ -2570,8 +4027,6 @@ def tag_resource( the tags that are associated with that resource are deleted as well. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2581,17 +4036,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Deletes specified tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2601,10 +4077,34 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_capacity_provider( + self, + request: _models.UpdateCapacityProviderInput + | _models.UpdateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCapacityProviderOutput: ... + + @_overload def update_capacity_provider( - self, input: UpdateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityProviderInputDict], ) -> UpdateCapacityProviderOutput: """ Modifies the parameters for a capacity provider. @@ -2613,8 +4113,6 @@ def update_capacity_provider( instances, not existing ones. Args: - input: - An instance of `UpdateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2624,17 +4122,38 @@ def update_capacity_provider( Returns: An instance of `UpdateCapacityProviderOutput`. """ - return self._invoke(input, _models.UPDATE_CAPACITY_PROVIDER, [], plugins) + def update_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityProviderOutput: + return self._invoke( + self._select_input(_models.UPDATE_CAPACITY_PROVIDER, args, kwargs), + _models.UPDATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def update_cluster( + self, + request: _models.UpdateClusterInput | _models.UpdateClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateClusterOutput: ... + + @_overload def update_cluster( - self, input: UpdateClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateClusterInputDict], ) -> UpdateClusterOutput: """ Updates the cluster. Args: - input: - An instance of `UpdateClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2644,17 +4163,39 @@ def update_cluster( Returns: An instance of `UpdateClusterOutput`. """ - return self._invoke(input, _models.UPDATE_CLUSTER, [], plugins) + def update_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateClusterOutput: + return self._invoke( + self._select_input(_models.UPDATE_CLUSTER, args, kwargs), + _models.UPDATE_CLUSTER, + [], + plugins, + ) + + @_overload + def update_cluster_settings( + self, + request: _models.UpdateClusterSettingsInput + | _models.UpdateClusterSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateClusterSettingsOutput: ... + + @_overload def update_cluster_settings( - self, input: UpdateClusterSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateClusterSettingsInputDict], ) -> UpdateClusterSettingsOutput: """ Modifies the settings to use for a cluster. Args: - input: - An instance of `UpdateClusterSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2664,10 +4205,34 @@ def update_cluster_settings( Returns: An instance of `UpdateClusterSettingsOutput`. """ - return self._invoke(input, _models.UPDATE_CLUSTER_SETTINGS, [], plugins) + def update_cluster_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateClusterSettingsOutput: + return self._invoke( + self._select_input(_models.UPDATE_CLUSTER_SETTINGS, args, kwargs), + _models.UPDATE_CLUSTER_SETTINGS, + [], + plugins, + ) + + @_overload + def update_container_agent( + self, + request: _models.UpdateContainerAgentInput + | _models.UpdateContainerAgentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateContainerAgentOutput: ... + + @_overload def update_container_agent( - self, input: UpdateContainerAgentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContainerAgentInputDict], ) -> UpdateContainerAgentOutput: """ Updates the Amazon ECS container agent on a specified container @@ -2698,8 +4263,6 @@ def update_container_agent( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `UpdateContainerAgentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2709,12 +4272,34 @@ def update_container_agent( Returns: An instance of `UpdateContainerAgentOutput`. """ - return self._invoke(input, _models.UPDATE_CONTAINER_AGENT, [], plugins) + def update_container_agent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContainerAgentOutput: + return self._invoke( + self._select_input(_models.UPDATE_CONTAINER_AGENT, args, kwargs), + _models.UPDATE_CONTAINER_AGENT, + [], + plugins, + ) + + @_overload def update_container_instances_state( self, - input: UpdateContainerInstancesStateInput, + request: _models.UpdateContainerInstancesStateInput + | _models.UpdateContainerInstancesStateInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateContainerInstancesStateOutput: ... + + @_overload + def update_container_instances_state( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateContainerInstancesStateInputDict], ) -> UpdateContainerInstancesStateOutput: """ Modifies the status of an Amazon ECS container instance. @@ -2773,8 +4358,6 @@ def update_container_instances_state( Amazon ECS scheduler can begin scheduling tasks on the instance again. Args: - input: - An instance of `UpdateContainerInstancesStateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2784,12 +4367,33 @@ def update_container_instances_state( Returns: An instance of `UpdateContainerInstancesStateOutput`. """ + + def update_container_instances_state( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateContainerInstancesStateOutput: return self._invoke( - input, _models.UPDATE_CONTAINER_INSTANCES_STATE, [], plugins + self._select_input(_models.UPDATE_CONTAINER_INSTANCES_STATE, args, kwargs), + _models.UPDATE_CONTAINER_INSTANCES_STATE, + [], + plugins, ) + @_overload + def update_daemon( + self, + request: _models.UpdateDaemonInput | _models.UpdateDaemonInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDaemonOutput: ... + + @_overload def update_daemon( - self, input: UpdateDaemonInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDaemonInputDict], ) -> UpdateDaemonOutput: """ Updates the specified daemon. When you update a daemon, a new deployment @@ -2812,8 +4416,6 @@ def update_daemon( Capacity Providers. Args: - input: - An instance of `UpdateDaemonInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2823,12 +4425,34 @@ def update_daemon( Returns: An instance of `UpdateDaemonOutput`. """ - return self._invoke(input, _models.UPDATE_DAEMON, [], plugins) + def update_daemon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDaemonOutput: + return self._invoke( + self._select_input(_models.UPDATE_DAEMON, args, kwargs), + _models.UPDATE_DAEMON, + [], + plugins, + ) + + @_overload + def update_express_gateway_service( + self, + request: _models.UpdateExpressGatewayServiceInput + | _models.UpdateExpressGatewayServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateExpressGatewayServiceOutput: ... + + @_overload def update_express_gateway_service( self, - input: UpdateExpressGatewayServiceInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateExpressGatewayServiceInputDict], ) -> UpdateExpressGatewayServiceOutput: """ Updates an existing Express service configuration. Modifies container @@ -2843,8 +4467,6 @@ def update_express_gateway_service( service creation and require creating a new service. Args: - input: - An instance of `UpdateExpressGatewayServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2854,10 +4476,33 @@ def update_express_gateway_service( Returns: An instance of `UpdateExpressGatewayServiceOutput`. """ - return self._invoke(input, _models.UPDATE_EXPRESS_GATEWAY_SERVICE, [], plugins) + def update_express_gateway_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateExpressGatewayServiceOutput: + return self._invoke( + self._select_input(_models.UPDATE_EXPRESS_GATEWAY_SERVICE, args, kwargs), + _models.UPDATE_EXPRESS_GATEWAY_SERVICE, + [], + plugins, + ) + + @_overload + def update_gateway( + self, + request: _models.UpdateGatewayInput | _models.UpdateGatewayInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGatewayOutput: ... + + @_overload def update_gateway( - self, input: UpdateGatewayInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGatewayInputDict], ) -> UpdateGatewayOutput: """ Modifies the configuration of a gateway. You can change only the @@ -2876,8 +4521,6 @@ def update_gateway( permission for that role. Args: - input: - An instance of `UpdateGatewayInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2887,10 +4530,33 @@ def update_gateway( Returns: An instance of `UpdateGatewayOutput`. """ - return self._invoke(input, _models.UPDATE_GATEWAY, [], plugins) + def update_gateway( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGatewayOutput: + return self._invoke( + self._select_input(_models.UPDATE_GATEWAY, args, kwargs), + _models.UPDATE_GATEWAY, + [], + plugins, + ) + + @_overload + def update_service( + self, + request: _models.UpdateServiceInput | _models.UpdateServiceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateServiceOutput: ... + + @_overload def update_service( - self, input: UpdateServiceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateServiceInputDict], ) -> UpdateServiceOutput: """ Modifies the parameters of a service. @@ -3032,8 +4698,6 @@ def update_service( largest number of running tasks for this service. Args: - input: - An instance of `UpdateServiceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3043,12 +4707,34 @@ def update_service( Returns: An instance of `UpdateServiceOutput`. """ - return self._invoke(input, _models.UPDATE_SERVICE, [], plugins) + def update_service( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateServiceOutput: + return self._invoke( + self._select_input(_models.UPDATE_SERVICE, args, kwargs), + _models.UPDATE_SERVICE, + [], + plugins, + ) + + @_overload + def update_service_primary_task_set( + self, + request: _models.UpdateServicePrimaryTaskSetInput + | _models.UpdateServicePrimaryTaskSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateServicePrimaryTaskSetOutput: ... + + @_overload def update_service_primary_task_set( self, - input: UpdateServicePrimaryTaskSetInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateServicePrimaryTaskSetInputDict], ) -> UpdateServicePrimaryTaskSetOutput: """ Modifies which task set in a service is the primary task set. Any @@ -3060,8 +4746,6 @@ def update_service_primary_task_set( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `UpdateServicePrimaryTaskSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3071,10 +4755,34 @@ def update_service_primary_task_set( Returns: An instance of `UpdateServicePrimaryTaskSetOutput`. """ - return self._invoke(input, _models.UPDATE_SERVICE_PRIMARY_TASK_SET, [], plugins) + def update_service_primary_task_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateServicePrimaryTaskSetOutput: + return self._invoke( + self._select_input(_models.UPDATE_SERVICE_PRIMARY_TASK_SET, args, kwargs), + _models.UPDATE_SERVICE_PRIMARY_TASK_SET, + [], + plugins, + ) + + @_overload + def update_task_protection( + self, + request: _models.UpdateTaskProtectionInput + | _models.UpdateTaskProtectionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTaskProtectionOutput: ... + + @_overload def update_task_protection( - self, input: UpdateTaskProtectionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTaskProtectionInputDict], ) -> UpdateTaskProtectionOutput: """ Updates the protection status of a task. You can set `protectionEnabled` @@ -3111,8 +4819,6 @@ def update_task_protection( endpoint](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-scale-in-protection-endpoint.html). Args: - input: - An instance of `UpdateTaskProtectionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3122,10 +4828,33 @@ def update_task_protection( Returns: An instance of `UpdateTaskProtectionOutput`. """ - return self._invoke(input, _models.UPDATE_TASK_PROTECTION, [], plugins) + def update_task_protection( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTaskProtectionOutput: + return self._invoke( + self._select_input(_models.UPDATE_TASK_PROTECTION, args, kwargs), + _models.UPDATE_TASK_PROTECTION, + [], + plugins, + ) + + @_overload + def update_task_set( + self, + request: _models.UpdateTaskSetInput | _models.UpdateTaskSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTaskSetOutput: ... + + @_overload def update_task_set( - self, input: UpdateTaskSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTaskSetInputDict], ) -> UpdateTaskSetOutput: """ Modifies a task set. This is used when a service uses the `EXTERNAL` @@ -3135,8 +4864,6 @@ def update_task_set( in the *Amazon Elastic Container Service Developer Guide*. Args: - input: - An instance of `UpdateTaskSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3146,7 +4873,16 @@ def update_task_set( Returns: An instance of `UpdateTaskSetOutput`. """ - return self._invoke(input, _models.UPDATE_TASK_SET, [], plugins) + + def update_task_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTaskSetOutput: + return self._invoke( + self._select_input(_models.UPDATE_TASK_SET, args, kwargs), + _models.UPDATE_TASK_SET, + [], + plugins, + ) def _new_config(self) -> ECSConfig: return ECSConfig.resolve() diff --git a/clients/aws-sdk-ecs/src/aws_sdk_ecs/models.pyi b/clients/aws-sdk-ecs/src/aws_sdk_ecs/models.pyi index c9ca6934f..0b3928704 100644 --- a/clients/aws-sdk-ecs/src/aws_sdk_ecs/models.pyi +++ b/clients/aws-sdk-ecs/src/aws_sdk_ecs/models.pyi @@ -9,46 +9,61 @@ from smithy_core.serializers import ShapeSerializer from ._private.models_0 import ( AcceleratorCountRequest as AcceleratorCountRequest, + AcceleratorCountRequestDict as AcceleratorCountRequestDict, AcceleratorManufacturer as AcceleratorManufacturer, AcceleratorName as AcceleratorName, AcceleratorTotalMemoryMiBRequest as AcceleratorTotalMemoryMiBRequest, + AcceleratorTotalMemoryMiBRequestDict as AcceleratorTotalMemoryMiBRequestDict, AcceleratorType as AcceleratorType, AccessDeniedException as AccessDeniedException, AccessType as AccessType, AdvancedConfiguration as AdvancedConfiguration, + AdvancedConfigurationDict as AdvancedConfigurationDict, AgentUpdateStatus as AgentUpdateStatus, ApplicationProtocol as ApplicationProtocol, AssignPublicIp as AssignPublicIp, AssociateGatewayWithClusterInput as AssociateGatewayWithClusterInput, + AssociateGatewayWithClusterInputDict as AssociateGatewayWithClusterInputDict, AssociateGatewayWithClusterOutput as AssociateGatewayWithClusterOutput, Attachment as Attachment, AttachmentStateChange as AttachmentStateChange, + AttachmentStateChangeDict as AttachmentStateChangeDict, AttestationPolicyStatus as AttestationPolicyStatus, Attribute as Attribute, + AttributeDict as AttributeDict, AttributeLimitExceededException as AttributeLimitExceededException, AutoRepairActionsStatus as AutoRepairActionsStatus, AutoRepairConfiguration as AutoRepairConfiguration, + AutoRepairConfigurationDict as AutoRepairConfigurationDict, AutoScalingGroupProvider as AutoScalingGroupProvider, + AutoScalingGroupProviderDict as AutoScalingGroupProviderDict, AutoScalingGroupProviderUpdate as AutoScalingGroupProviderUpdate, + AutoScalingGroupProviderUpdateDict as AutoScalingGroupProviderUpdateDict, AvailabilityZoneRebalancing as AvailabilityZoneRebalancing, AwsVpcConfiguration as AwsVpcConfiguration, + AwsVpcConfigurationDict as AwsVpcConfigurationDict, BareMetal as BareMetal, BaselineEbsBandwidthMbpsRequest as BaselineEbsBandwidthMbpsRequest, + BaselineEbsBandwidthMbpsRequestDict as BaselineEbsBandwidthMbpsRequestDict, BlockedException as BlockedException, BurstablePerformance as BurstablePerformance, CanaryConfiguration as CanaryConfiguration, + CanaryConfigurationDict as CanaryConfigurationDict, CapacityOptionType as CapacityOptionType, CapacityProvider as CapacityProvider, CapacityProviderField as CapacityProviderField, CapacityProviderStatus as CapacityProviderStatus, CapacityProviderStrategyItem as CapacityProviderStrategyItem, + CapacityProviderStrategyItemDict as CapacityProviderStrategyItemDict, CapacityProviderType as CapacityProviderType, CapacityProviderUpdateStatus as CapacityProviderUpdateStatus, CapacityReservationPreference as CapacityReservationPreference, CapacityReservationRequest as CapacityReservationRequest, + CapacityReservationRequestDict as CapacityReservationRequestDict, ClientException as ClientException, Cluster as Cluster, ClusterConfiguration as ClusterConfiguration, + ClusterConfigurationDict as ClusterConfigurationDict, ClusterContainsCapacityProviderException as ClusterContainsCapacityProviderException, ClusterContainsContainerInstancesException as ClusterContainsContainerInstancesException, ClusterContainsServicesException as ClusterContainsServicesException, @@ -57,7 +72,9 @@ from ._private.models_0 import ( ClusterNotFoundException as ClusterNotFoundException, ClusterServiceConnectDefaults as ClusterServiceConnectDefaults, ClusterServiceConnectDefaultsRequest as ClusterServiceConnectDefaultsRequest, + ClusterServiceConnectDefaultsRequestDict as ClusterServiceConnectDefaultsRequestDict, ClusterSetting as ClusterSetting, + ClusterSettingDict as ClusterSettingDict, ClusterSettingName as ClusterSettingName, Compatibility as Compatibility, ConflictException as ConflictException, @@ -65,44 +82,62 @@ from ._private.models_0 import ( Container as Container, ContainerCondition as ContainerCondition, ContainerDefinition as ContainerDefinition, + ContainerDefinitionDict as ContainerDefinitionDict, ContainerDependency as ContainerDependency, + ContainerDependencyDict as ContainerDependencyDict, ContainerImage as ContainerImage, ContainerInstance as ContainerInstance, ContainerInstanceField as ContainerInstanceField, ContainerInstanceHealthStatus as ContainerInstanceHealthStatus, ContainerInstanceStatus as ContainerInstanceStatus, ContainerOverride as ContainerOverride, + ContainerOverrideDict as ContainerOverrideDict, ContainerRestartPolicy as ContainerRestartPolicy, + ContainerRestartPolicyDict as ContainerRestartPolicyDict, ContainerStateChange as ContainerStateChange, + ContainerStateChangeDict as ContainerStateChangeDict, ContinueServiceDeploymentInput as ContinueServiceDeploymentInput, + ContinueServiceDeploymentInputDict as ContinueServiceDeploymentInputDict, ContinueServiceDeploymentOutput as ContinueServiceDeploymentOutput, CPUArchitecture as CPUArchitecture, CpuManufacturer as CpuManufacturer, CreateCapacityProviderInput as CreateCapacityProviderInput, + CreateCapacityProviderInputDict as CreateCapacityProviderInputDict, CreateCapacityProviderOutput as CreateCapacityProviderOutput, CreateClusterInput as CreateClusterInput, + CreateClusterInputDict as CreateClusterInputDict, CreateClusterOutput as CreateClusterOutput, CreateDaemonInput as CreateDaemonInput, + CreateDaemonInputDict as CreateDaemonInputDict, CreateDaemonOutput as CreateDaemonOutput, CreatedAt as CreatedAt, + CreatedAtDict as CreatedAtDict, CreateExpressGatewayServiceInput as CreateExpressGatewayServiceInput, + CreateExpressGatewayServiceInputDict as CreateExpressGatewayServiceInputDict, CreateExpressGatewayServiceOutput as CreateExpressGatewayServiceOutput, CreateGatewayInput as CreateGatewayInput, + CreateGatewayInputDict as CreateGatewayInputDict, CreateGatewayOutput as CreateGatewayOutput, CreateManagedInstancesProviderConfiguration as CreateManagedInstancesProviderConfiguration, + CreateManagedInstancesProviderConfigurationDict as CreateManagedInstancesProviderConfigurationDict, CreateServiceInput as CreateServiceInput, + CreateServiceInputDict as CreateServiceInputDict, CreateServiceOutput as CreateServiceOutput, CreateTaskSetInput as CreateTaskSetInput, + CreateTaskSetInputDict as CreateTaskSetInputDict, CreateTaskSetOutput as CreateTaskSetOutput, DaemonAlarmConfiguration as DaemonAlarmConfiguration, + DaemonAlarmConfigurationDict as DaemonAlarmConfigurationDict, DaemonCapacityProvider as DaemonCapacityProvider, DaemonCircuitBreaker as DaemonCircuitBreaker, DaemonContainerDefinition as DaemonContainerDefinition, + DaemonContainerDefinitionDict as DaemonContainerDefinitionDict, DaemonContainerImage as DaemonContainerImage, DaemonDeployment as DaemonDeployment, DaemonDeploymentAlarms as DaemonDeploymentAlarms, DaemonDeploymentCapacityProvider as DaemonDeploymentCapacityProvider, DaemonDeploymentConfiguration as DaemonDeploymentConfiguration, + DaemonDeploymentConfigurationDict as DaemonDeploymentConfigurationDict, DaemonDeploymentRevisionDetail as DaemonDeploymentRevisionDetail, DaemonDeploymentRollbackMonitorsStatus as DaemonDeploymentRollbackMonitorsStatus, DaemonDeploymentStatus as DaemonDeploymentStatus, @@ -110,6 +145,7 @@ from ._private.models_0 import ( DaemonDetail as DaemonDetail, DaemonIpcMode as DaemonIpcMode, DaemonLinuxParameters as DaemonLinuxParameters, + DaemonLinuxParametersDict as DaemonLinuxParametersDict, DaemonNotActiveException as DaemonNotActiveException, DaemonNotFoundException as DaemonNotFoundException, DaemonPidMode as DaemonPidMode, @@ -125,64 +161,93 @@ from ._private.models_0 import ( DaemonTaskDefinitionStatusFilter as DaemonTaskDefinitionStatusFilter, DaemonTaskDefinitionSummary as DaemonTaskDefinitionSummary, DaemonVolume as DaemonVolume, + DaemonVolumeDict as DaemonVolumeDict, DeleteAccountSettingInput as DeleteAccountSettingInput, + DeleteAccountSettingInputDict as DeleteAccountSettingInputDict, DeleteAccountSettingOutput as DeleteAccountSettingOutput, DeleteAttributesInput as DeleteAttributesInput, + DeleteAttributesInputDict as DeleteAttributesInputDict, DeleteAttributesOutput as DeleteAttributesOutput, DeleteCapacityProviderInput as DeleteCapacityProviderInput, + DeleteCapacityProviderInputDict as DeleteCapacityProviderInputDict, DeleteCapacityProviderOutput as DeleteCapacityProviderOutput, DeleteClusterInput as DeleteClusterInput, + DeleteClusterInputDict as DeleteClusterInputDict, DeleteClusterOutput as DeleteClusterOutput, DeleteDaemonInput as DeleteDaemonInput, + DeleteDaemonInputDict as DeleteDaemonInputDict, DeleteDaemonOutput as DeleteDaemonOutput, DeleteDaemonTaskDefinitionInput as DeleteDaemonTaskDefinitionInput, + DeleteDaemonTaskDefinitionInputDict as DeleteDaemonTaskDefinitionInputDict, DeleteDaemonTaskDefinitionOutput as DeleteDaemonTaskDefinitionOutput, DeleteExpressGatewayServiceInput as DeleteExpressGatewayServiceInput, + DeleteExpressGatewayServiceInputDict as DeleteExpressGatewayServiceInputDict, DeleteExpressGatewayServiceOutput as DeleteExpressGatewayServiceOutput, DeleteGatewayInput as DeleteGatewayInput, + DeleteGatewayInputDict as DeleteGatewayInputDict, DeleteGatewayOutput as DeleteGatewayOutput, DeleteServiceInput as DeleteServiceInput, + DeleteServiceInputDict as DeleteServiceInputDict, DeleteServiceOutput as DeleteServiceOutput, DeleteTaskDefinitionsInput as DeleteTaskDefinitionsInput, + DeleteTaskDefinitionsInputDict as DeleteTaskDefinitionsInputDict, DeleteTaskDefinitionsOutput as DeleteTaskDefinitionsOutput, DeleteTaskSetInput as DeleteTaskSetInput, + DeleteTaskSetInputDict as DeleteTaskSetInputDict, DeleteTaskSetOutput as DeleteTaskSetOutput, Deployment as Deployment, DeploymentAlarms as DeploymentAlarms, + DeploymentAlarmsDict as DeploymentAlarmsDict, DeploymentCircuitBreaker as DeploymentCircuitBreaker, + DeploymentCircuitBreakerDict as DeploymentCircuitBreakerDict, DeploymentConfiguration as DeploymentConfiguration, + DeploymentConfigurationDict as DeploymentConfigurationDict, DeploymentController as DeploymentController, + DeploymentControllerDict as DeploymentControllerDict, DeploymentControllerType as DeploymentControllerType, DeploymentEarlySuccessCriteria as DeploymentEarlySuccessCriteria, + DeploymentEarlySuccessCriteriaDict as DeploymentEarlySuccessCriteriaDict, DeploymentEphemeralStorage as DeploymentEphemeralStorage, DeploymentLifecycleHook as DeploymentLifecycleHook, + DeploymentLifecycleHookDict as DeploymentLifecycleHookDict, DeploymentLifecycleHookAction as DeploymentLifecycleHookAction, DeploymentLifecycleHookDetail as DeploymentLifecycleHookDetail, DeploymentLifecycleHookStage as DeploymentLifecycleHookStage, DeploymentLifecycleHookStatus as DeploymentLifecycleHookStatus, DeploymentLifecycleHookTargetType as DeploymentLifecycleHookTargetType, DeploymentLifecycleHookTimeoutConfiguration as DeploymentLifecycleHookTimeoutConfiguration, + DeploymentLifecycleHookTimeoutConfigurationDict as DeploymentLifecycleHookTimeoutConfigurationDict, DeploymentRolloutState as DeploymentRolloutState, DeploymentStrategy as DeploymentStrategy, DeregisterContainerInstanceInput as DeregisterContainerInstanceInput, + DeregisterContainerInstanceInputDict as DeregisterContainerInstanceInputDict, DeregisterContainerInstanceOutput as DeregisterContainerInstanceOutput, DeregisterTaskDefinitionInput as DeregisterTaskDefinitionInput, + DeregisterTaskDefinitionInputDict as DeregisterTaskDefinitionInputDict, DeregisterTaskDefinitionOutput as DeregisterTaskDefinitionOutput, DescribeCapacityProvidersInput as DescribeCapacityProvidersInput, + DescribeCapacityProvidersInputDict as DescribeCapacityProvidersInputDict, DescribeCapacityProvidersOutput as DescribeCapacityProvidersOutput, DescribeClustersInput as DescribeClustersInput, + DescribeClustersInputDict as DescribeClustersInputDict, DescribeClustersOutput as DescribeClustersOutput, DescribeContainerInstancesInput as DescribeContainerInstancesInput, + DescribeContainerInstancesInputDict as DescribeContainerInstancesInputDict, DescribeContainerInstancesOutput as DescribeContainerInstancesOutput, DescribeDaemonDeploymentsInput as DescribeDaemonDeploymentsInput, + DescribeDaemonDeploymentsInputDict as DescribeDaemonDeploymentsInputDict, DescribeDaemonDeploymentsOutput as DescribeDaemonDeploymentsOutput, DescribeDaemonInput as DescribeDaemonInput, + DescribeDaemonInputDict as DescribeDaemonInputDict, DescribeDaemonOutput as DescribeDaemonOutput, DescribeDaemonRevisionsInput as DescribeDaemonRevisionsInput, + DescribeDaemonRevisionsInputDict as DescribeDaemonRevisionsInputDict, DescribeDaemonRevisionsOutput as DescribeDaemonRevisionsOutput, DescribeDaemonTaskDefinitionInput as DescribeDaemonTaskDefinitionInput, + DescribeDaemonTaskDefinitionInputDict as DescribeDaemonTaskDefinitionInputDict, DescribeDaemonTaskDefinitionOutput as DescribeDaemonTaskDefinitionOutput, DescribeExpressGatewayServiceInput as DescribeExpressGatewayServiceInput, + DescribeExpressGatewayServiceInputDict as DescribeExpressGatewayServiceInputDict, DescribeExpressGatewayServiceOutput as DescribeExpressGatewayServiceOutput, DescribeGatewayAlbConfiguration as DescribeGatewayAlbConfiguration, DescribeGatewayConfigurationHostSharedAlb as DescribeGatewayConfigurationHostSharedAlb, @@ -190,74 +255,106 @@ from ._private.models_0 import ( DescribeGatewayConfiguration as DescribeGatewayConfiguration, _DescribeGatewayConfigurationDeserializer as _DescribeGatewayConfigurationDeserializer, DescribeGatewayInput as DescribeGatewayInput, + DescribeGatewayInputDict as DescribeGatewayInputDict, DescribeGatewayOutput as DescribeGatewayOutput, DescribeGatewayResourcesInput as DescribeGatewayResourcesInput, + DescribeGatewayResourcesInputDict as DescribeGatewayResourcesInputDict, DescribeGatewayResourcesOutput as DescribeGatewayResourcesOutput, DescribeGatewayRouteInput as DescribeGatewayRouteInput, + DescribeGatewayRouteInputDict as DescribeGatewayRouteInputDict, DescribeGatewayRouteOutput as DescribeGatewayRouteOutput, DescribeServiceDeploymentsInput as DescribeServiceDeploymentsInput, + DescribeServiceDeploymentsInputDict as DescribeServiceDeploymentsInputDict, DescribeServiceDeploymentsOutput as DescribeServiceDeploymentsOutput, DescribeServiceRevisionsInput as DescribeServiceRevisionsInput, + DescribeServiceRevisionsInputDict as DescribeServiceRevisionsInputDict, DescribeServiceRevisionsOutput as DescribeServiceRevisionsOutput, DescribeServicesInput as DescribeServicesInput, + DescribeServicesInputDict as DescribeServicesInputDict, DescribeServicesOutput as DescribeServicesOutput, DescribeTaskDefinitionInput as DescribeTaskDefinitionInput, + DescribeTaskDefinitionInputDict as DescribeTaskDefinitionInputDict, DescribeTaskDefinitionOutput as DescribeTaskDefinitionOutput, DescribeTaskSetsInput as DescribeTaskSetsInput, + DescribeTaskSetsInputDict as DescribeTaskSetsInputDict, DescribeTaskSetsOutput as DescribeTaskSetsOutput, DescribeTasksInput as DescribeTasksInput, + DescribeTasksInputDict as DescribeTasksInputDict, DescribeTasksOutput as DescribeTasksOutput, DesiredStatus as DesiredStatus, Device as Device, + DeviceDict as DeviceDict, DeviceCgroupPermission as DeviceCgroupPermission, DisassociateGatewayFromClusterInput as DisassociateGatewayFromClusterInput, + DisassociateGatewayFromClusterInputDict as DisassociateGatewayFromClusterInputDict, DisassociateGatewayFromClusterOutput as DisassociateGatewayFromClusterOutput, DiscoverPollEndpointInput as DiscoverPollEndpointInput, + DiscoverPollEndpointInputDict as DiscoverPollEndpointInputDict, DiscoverPollEndpointOutput as DiscoverPollEndpointOutput, DockerVolumeConfiguration as DockerVolumeConfiguration, + DockerVolumeConfigurationDict as DockerVolumeConfigurationDict, EBSResourceType as EBSResourceType, EBSTagSpecification as EBSTagSpecification, + EBSTagSpecificationDict as EBSTagSpecificationDict, ECSExpressGatewayService as ECSExpressGatewayService, ECSManagedResources as ECSManagedResources, EFSAuthorizationConfig as EFSAuthorizationConfig, + EFSAuthorizationConfigDict as EFSAuthorizationConfigDict, EFSAuthorizationConfigIAM as EFSAuthorizationConfigIAM, EFSTransitEncryption as EFSTransitEncryption, EFSVolumeConfiguration as EFSVolumeConfiguration, + EFSVolumeConfigurationDict as EFSVolumeConfigurationDict, ElbGatewayResources as ElbGatewayResources, EnvironmentFile as EnvironmentFile, + EnvironmentFileDict as EnvironmentFileDict, EnvironmentFileType as EnvironmentFileType, EphemeralStorage as EphemeralStorage, + EphemeralStorageDict as EphemeralStorageDict, ExecuteCommandConfiguration as ExecuteCommandConfiguration, + ExecuteCommandConfigurationDict as ExecuteCommandConfigurationDict, ExecuteCommandInput as ExecuteCommandInput, + ExecuteCommandInputDict as ExecuteCommandInputDict, ExecuteCommandLogConfiguration as ExecuteCommandLogConfiguration, + ExecuteCommandLogConfigurationDict as ExecuteCommandLogConfigurationDict, ExecuteCommandLogging as ExecuteCommandLogging, ExecuteCommandOutput as ExecuteCommandOutput, ExpressCpuArchitecture as ExpressCpuArchitecture, ExpressGatewayContainer as ExpressGatewayContainer, + ExpressGatewayContainerDict as ExpressGatewayContainerDict, ExpressGatewayRepositoryCredentials as ExpressGatewayRepositoryCredentials, + ExpressGatewayRepositoryCredentialsDict as ExpressGatewayRepositoryCredentialsDict, ExpressGatewayScalingTarget as ExpressGatewayScalingTarget, + ExpressGatewayScalingTargetDict as ExpressGatewayScalingTargetDict, ExpressGatewayServiceAwsLogsConfiguration as ExpressGatewayServiceAwsLogsConfiguration, + ExpressGatewayServiceAwsLogsConfigurationDict as ExpressGatewayServiceAwsLogsConfigurationDict, ExpressGatewayServiceConfiguration as ExpressGatewayServiceConfiguration, ExpressGatewayServiceInclude as ExpressGatewayServiceInclude, ExpressGatewayServiceNetworkConfiguration as ExpressGatewayServiceNetworkConfiguration, + ExpressGatewayServiceNetworkConfigurationDict as ExpressGatewayServiceNetworkConfigurationDict, ExpressGatewayServiceScalingMetric as ExpressGatewayServiceScalingMetric, ExpressGatewayServiceStatus as ExpressGatewayServiceStatus, ExpressGatewayServiceStatusCode as ExpressGatewayServiceStatusCode, Failure as Failure, FirelensConfiguration as FirelensConfiguration, + FirelensConfigurationDict as FirelensConfigurationDict, FirelensConfigurationType as FirelensConfigurationType, FSxWindowsFileServerAuthorizationConfig as FSxWindowsFileServerAuthorizationConfig, + FSxWindowsFileServerAuthorizationConfigDict as FSxWindowsFileServerAuthorizationConfigDict, FSxWindowsFileServerVolumeConfiguration as FSxWindowsFileServerVolumeConfiguration, + FSxWindowsFileServerVolumeConfigurationDict as FSxWindowsFileServerVolumeConfigurationDict, Gateway as Gateway, GatewayAlbDesyncMitigationMode as GatewayAlbDesyncMitigationMode, GatewayAlbProtocol as GatewayAlbProtocol, GatewayAlbTestTrafficRules as GatewayAlbTestTrafficRules, + GatewayAlbTestTrafficRulesDict as GatewayAlbTestTrafficRulesDict, GatewayClusterAssociationStatus as GatewayClusterAssociationStatus, GatewayClusterAssociationSummary as GatewayClusterAssociationSummary, GatewayConfigurationHostSharedAlb as GatewayConfigurationHostSharedAlb, GatewayConfigurationUnknown as GatewayConfigurationUnknown, GatewayConfiguration as GatewayConfiguration, _GatewayConfigurationDeserializer as _GatewayConfigurationDeserializer, + GatewayConfigurationHostSharedAlbDict as GatewayConfigurationHostSharedAlbDict, + GatewayConfigurationDict as GatewayConfigurationDict, GatewayConnection as GatewayConnection, GatewayConnectionAlbResources as GatewayConnectionAlbResources, GatewayConnectionResourcesHostSharedAlb as GatewayConnectionResourcesHostSharedAlb, @@ -265,21 +362,30 @@ from ._private.models_0 import ( GatewayConnectionResources as GatewayConnectionResources, _GatewayConnectionResourcesDeserializer as _GatewayConnectionResourcesDeserializer, GatewayConnector as GatewayConnector, + GatewayConnectorDict as GatewayConnectorDict, GatewayConnectorFilters as GatewayConnectorFilters, + GatewayConnectorFiltersDict as GatewayConnectorFiltersDict, GatewayConnectorHealthCheck as GatewayConnectorHealthCheck, + GatewayConnectorHealthCheckDict as GatewayConnectorHealthCheckDict, ) from ._private.models_1 import ( GatewayConnectorHealthCheckMatcher as GatewayConnectorHealthCheckMatcher, + GatewayConnectorHealthCheckMatcherDict as GatewayConnectorHealthCheckMatcherDict, GatewayConnectorHealthCheckProtocol as GatewayConnectorHealthCheckProtocol, GatewayElbAccessLogConfiguration as GatewayElbAccessLogConfiguration, + GatewayElbAccessLogConfigurationDict as GatewayElbAccessLogConfigurationDict, GatewayElbAccessLogDestinationS3 as GatewayElbAccessLogDestinationS3, GatewayElbAccessLogDestinationUnknown as GatewayElbAccessLogDestinationUnknown, GatewayElbAccessLogDestination as GatewayElbAccessLogDestination, _GatewayElbAccessLogDestinationDeserializer as _GatewayElbAccessLogDestinationDeserializer, + GatewayElbAccessLogDestinationS3Dict as GatewayElbAccessLogDestinationS3Dict, + GatewayElbAccessLogDestinationDict as GatewayElbAccessLogDestinationDict, GatewayElbAccessLogS3Destination as GatewayElbAccessLogS3Destination, + GatewayElbAccessLogS3DestinationDict as GatewayElbAccessLogS3DestinationDict, GatewayElbIpAddressType as GatewayElbIpAddressType, GatewayElbNetworkConfiguration as GatewayElbNetworkConfiguration, + GatewayElbNetworkConfigurationDict as GatewayElbNetworkConfigurationDict, GatewayElbScheme as GatewayElbScheme, GatewayInfrastructureResourcesHostSharedAlb as GatewayInfrastructureResourcesHostSharedAlb, GatewayInfrastructureResourcesUnknown as GatewayInfrastructureResourcesUnknown, @@ -301,88 +407,128 @@ from ._private.models_1 import ( GatewayStatus as GatewayStatus, GatewaySummary as GatewaySummary, GatewayTestTrafficHeader as GatewayTestTrafficHeader, + GatewayTestTrafficHeaderDict as GatewayTestTrafficHeaderDict, GetTaskProtectionInput as GetTaskProtectionInput, + GetTaskProtectionInputDict as GetTaskProtectionInputDict, GetTaskProtectionOutput as GetTaskProtectionOutput, GpuDevice as GpuDevice, GpuSharingMode as GpuSharingMode, HealthCheck as HealthCheck, + HealthCheckDict as HealthCheckDict, HealthStatus as HealthStatus, HostEntry as HostEntry, + HostEntryDict as HostEntryDict, HostSharedAlbConfiguration as HostSharedAlbConfiguration, + HostSharedAlbConfigurationDict as HostSharedAlbConfigurationDict, HostVolumeProperties as HostVolumeProperties, + HostVolumePropertiesDict as HostVolumePropertiesDict, InferenceAccelerator as InferenceAccelerator, + InferenceAcceleratorDict as InferenceAcceleratorDict, InferenceAcceleratorOverride as InferenceAcceleratorOverride, + InferenceAcceleratorOverrideDict as InferenceAcceleratorOverrideDict, InfrastructureOptimization as InfrastructureOptimization, + InfrastructureOptimizationDict as InfrastructureOptimizationDict, IngressPathSummary as IngressPathSummary, InstanceGeneration as InstanceGeneration, InstanceHealthCheckResult as InstanceHealthCheckResult, InstanceHealthCheckState as InstanceHealthCheckState, InstanceHealthCheckType as InstanceHealthCheckType, InstanceLaunchTemplate as InstanceLaunchTemplate, + InstanceLaunchTemplateDict as InstanceLaunchTemplateDict, InstanceLaunchTemplateUpdate as InstanceLaunchTemplateUpdate, + InstanceLaunchTemplateUpdateDict as InstanceLaunchTemplateUpdateDict, InstanceRequirementsRequest as InstanceRequirementsRequest, + InstanceRequirementsRequestDict as InstanceRequirementsRequestDict, InvalidParameterException as InvalidParameterException, IpcMode as IpcMode, IsolationMode as IsolationMode, KernelCapabilities as KernelCapabilities, + KernelCapabilitiesDict as KernelCapabilitiesDict, KeyValuePair as KeyValuePair, + KeyValuePairDict as KeyValuePairDict, LaunchType as LaunchType, LimitExceededException as LimitExceededException, LinearConfiguration as LinearConfiguration, + LinearConfigurationDict as LinearConfigurationDict, LinuxParameters as LinuxParameters, + LinuxParametersDict as LinuxParametersDict, ListAccountSettingsInput as ListAccountSettingsInput, + ListAccountSettingsInputDict as ListAccountSettingsInputDict, ListAccountSettingsOutput as ListAccountSettingsOutput, ListAttributesInput as ListAttributesInput, + ListAttributesInputDict as ListAttributesInputDict, ListAttributesOutput as ListAttributesOutput, ListClustersInput as ListClustersInput, + ListClustersInputDict as ListClustersInputDict, ListClustersOutput as ListClustersOutput, ListContainerInstancesInput as ListContainerInstancesInput, + ListContainerInstancesInputDict as ListContainerInstancesInputDict, ListContainerInstancesOutput as ListContainerInstancesOutput, ListDaemonDeploymentsInput as ListDaemonDeploymentsInput, + ListDaemonDeploymentsInputDict as ListDaemonDeploymentsInputDict, ListDaemonDeploymentsOutput as ListDaemonDeploymentsOutput, ListDaemonsInput as ListDaemonsInput, + ListDaemonsInputDict as ListDaemonsInputDict, ListDaemonsOutput as ListDaemonsOutput, ListDaemonTaskDefinitionsInput as ListDaemonTaskDefinitionsInput, + ListDaemonTaskDefinitionsInputDict as ListDaemonTaskDefinitionsInputDict, ListDaemonTaskDefinitionsOutput as ListDaemonTaskDefinitionsOutput, ListGatewayClusterAssociationsInput as ListGatewayClusterAssociationsInput, + ListGatewayClusterAssociationsInputDict as ListGatewayClusterAssociationsInputDict, ListGatewayClusterAssociationsOutput as ListGatewayClusterAssociationsOutput, ListGatewayRoutesInput as ListGatewayRoutesInput, + ListGatewayRoutesInputDict as ListGatewayRoutesInputDict, ListGatewayRoutesOutput as ListGatewayRoutesOutput, ListGatewaysInput as ListGatewaysInput, + ListGatewaysInputDict as ListGatewaysInputDict, ListGatewaysOutput as ListGatewaysOutput, ListServiceDeploymentsInput as ListServiceDeploymentsInput, + ListServiceDeploymentsInputDict as ListServiceDeploymentsInputDict, ListServiceDeploymentsOutput as ListServiceDeploymentsOutput, ListServicesByNamespaceInput as ListServicesByNamespaceInput, + ListServicesByNamespaceInputDict as ListServicesByNamespaceInputDict, ListServicesByNamespaceOutput as ListServicesByNamespaceOutput, ListServicesInput as ListServicesInput, + ListServicesInputDict as ListServicesInputDict, ListServicesOutput as ListServicesOutput, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, ListTaskDefinitionFamiliesInput as ListTaskDefinitionFamiliesInput, + ListTaskDefinitionFamiliesInputDict as ListTaskDefinitionFamiliesInputDict, ListTaskDefinitionFamiliesOutput as ListTaskDefinitionFamiliesOutput, ListTaskDefinitionsInput as ListTaskDefinitionsInput, + ListTaskDefinitionsInputDict as ListTaskDefinitionsInputDict, ListTaskDefinitionsOutput as ListTaskDefinitionsOutput, ListTasksInput as ListTasksInput, + ListTasksInputDict as ListTasksInputDict, ListTasksOutput as ListTasksOutput, LoadBalancer as LoadBalancer, + LoadBalancerDict as LoadBalancerDict, LocalStorage as LocalStorage, LocalStorageType as LocalStorageType, LogConfiguration as LogConfiguration, + LogConfigurationDict as LogConfigurationDict, LogDriver as LogDriver, LogDriverVolumeConfiguration as LogDriverVolumeConfiguration, + LogDriverVolumeConfigurationDict as LogDriverVolumeConfigurationDict, ManagedAgent as ManagedAgent, ManagedAgentName as ManagedAgentName, ManagedAgentStateChange as ManagedAgentStateChange, + ManagedAgentStateChangeDict as ManagedAgentStateChangeDict, ManagedApplicationAutoScalingPolicy as ManagedApplicationAutoScalingPolicy, ManagedAutoScaling as ManagedAutoScaling, ManagedCertificate as ManagedCertificate, ManagedDraining as ManagedDraining, ManagedIngressPath as ManagedIngressPath, ManagedInstancesLocalStorageConfiguration as ManagedInstancesLocalStorageConfiguration, + ManagedInstancesLocalStorageConfigurationDict as ManagedInstancesLocalStorageConfigurationDict, ManagedInstancesMonitoringOptions as ManagedInstancesMonitoringOptions, ManagedInstancesNetworkConfiguration as ManagedInstancesNetworkConfiguration, + ManagedInstancesNetworkConfigurationDict as ManagedInstancesNetworkConfigurationDict, ManagedInstancesProvider as ManagedInstancesProvider, ManagedInstancesStorageConfiguration as ManagedInstancesStorageConfiguration, + ManagedInstancesStorageConfigurationDict as ManagedInstancesStorageConfigurationDict, ManagedListener as ManagedListener, ManagedListenerRule as ManagedListenerRule, ManagedLoadBalancer as ManagedLoadBalancer, @@ -391,95 +537,138 @@ from ._private.models_1 import ( ManagedResourceStatus as ManagedResourceStatus, ManagedScalableTarget as ManagedScalableTarget, ManagedScaling as ManagedScaling, + ManagedScalingDict as ManagedScalingDict, ManagedScalingStatus as ManagedScalingStatus, ManagedSecurityGroup as ManagedSecurityGroup, ManagedStorageConfiguration as ManagedStorageConfiguration, + ManagedStorageConfigurationDict as ManagedStorageConfigurationDict, ManagedTargetGroup as ManagedTargetGroup, ManagedTerminationProtection as ManagedTerminationProtection, MemoryGiBPerVCpuRequest as MemoryGiBPerVCpuRequest, + MemoryGiBPerVCpuRequestDict as MemoryGiBPerVCpuRequestDict, MemoryMiBRequest as MemoryMiBRequest, + MemoryMiBRequestDict as MemoryMiBRequestDict, MetricConfiguration as MetricConfiguration, + MetricConfigurationDict as MetricConfigurationDict, MissingVersionException as MissingVersionException, MonitoringConfiguration as MonitoringConfiguration, + MonitoringConfigurationDict as MonitoringConfigurationDict, MountPoint as MountPoint, + MountPointDict as MountPointDict, NamespaceNotFoundException as NamespaceNotFoundException, NetworkBandwidthGbpsRequest as NetworkBandwidthGbpsRequest, + NetworkBandwidthGbpsRequestDict as NetworkBandwidthGbpsRequestDict, NetworkBinding as NetworkBinding, + NetworkBindingDict as NetworkBindingDict, NetworkConfiguration as NetworkConfiguration, + NetworkConfigurationDict as NetworkConfigurationDict, NetworkInterface as NetworkInterface, NetworkInterfaceCountRequest as NetworkInterfaceCountRequest, + NetworkInterfaceCountRequestDict as NetworkInterfaceCountRequestDict, NetworkMode as NetworkMode, NoUpdateAvailableException as NoUpdateAvailableException, NvidiaMpsAllocation as NvidiaMpsAllocation, + NvidiaMpsAllocationDict as NvidiaMpsAllocationDict, OSFamily as OSFamily, PidMode as PidMode, PlacementConstraint as PlacementConstraint, + PlacementConstraintDict as PlacementConstraintDict, PlacementConstraintType as PlacementConstraintType, PlacementStrategy as PlacementStrategy, + PlacementStrategyDict as PlacementStrategyDict, PlacementStrategyType as PlacementStrategyType, PlatformDevice as PlatformDevice, + PlatformDeviceDict as PlatformDeviceDict, PlatformDeviceType as PlatformDeviceType, PlatformTaskDefinitionIncompatibilityException as PlatformTaskDefinitionIncompatibilityException, PlatformUnknownException as PlatformUnknownException, PortMapping as PortMapping, + PortMappingDict as PortMappingDict, PropagateGatewayTags as PropagateGatewayTags, PropagateMITags as PropagateMITags, PropagateTags as PropagateTags, ProtectedTask as ProtectedTask, ProxyConfiguration as ProxyConfiguration, + ProxyConfigurationDict as ProxyConfigurationDict, ProxyConfigurationType as ProxyConfigurationType, PutAccountSettingDefaultInput as PutAccountSettingDefaultInput, + PutAccountSettingDefaultInputDict as PutAccountSettingDefaultInputDict, PutAccountSettingDefaultOutput as PutAccountSettingDefaultOutput, PutAccountSettingInput as PutAccountSettingInput, + PutAccountSettingInputDict as PutAccountSettingInputDict, PutAccountSettingOutput as PutAccountSettingOutput, PutAttributesInput as PutAttributesInput, + PutAttributesInputDict as PutAttributesInputDict, PutAttributesOutput as PutAttributesOutput, PutClusterCapacityProvidersInput as PutClusterCapacityProvidersInput, + PutClusterCapacityProvidersInputDict as PutClusterCapacityProvidersInputDict, PutClusterCapacityProvidersOutput as PutClusterCapacityProvidersOutput, RegisterContainerInstanceInput as RegisterContainerInstanceInput, + RegisterContainerInstanceInputDict as RegisterContainerInstanceInputDict, RegisterContainerInstanceOutput as RegisterContainerInstanceOutput, RegisterDaemonTaskDefinitionInput as RegisterDaemonTaskDefinitionInput, + RegisterDaemonTaskDefinitionInputDict as RegisterDaemonTaskDefinitionInputDict, RegisterDaemonTaskDefinitionOutput as RegisterDaemonTaskDefinitionOutput, RegisterTaskDefinitionInput as RegisterTaskDefinitionInput, + RegisterTaskDefinitionInputDict as RegisterTaskDefinitionInputDict, RegisterTaskDefinitionOutput as RegisterTaskDefinitionOutput, RepositoryCredentials as RepositoryCredentials, + RepositoryCredentialsDict as RepositoryCredentialsDict, ResolvedConfiguration as ResolvedConfiguration, Resource as Resource, + ResourceDict as ResourceDict, ResourceInUseException as ResourceInUseException, ResourceManagementType as ResourceManagementType, ResourceNotFoundException as ResourceNotFoundException, ResourceRequirement as ResourceRequirement, + ResourceRequirementDict as ResourceRequirementDict, ResourceType as ResourceType, Rollback as Rollback, RunTaskInput as RunTaskInput, + RunTaskInputDict as RunTaskInputDict, RunTaskOutput as RunTaskOutput, RuntimePlatform as RuntimePlatform, + RuntimePlatformDict as RuntimePlatformDict, RuntimePlatformOverride as RuntimePlatformOverride, S3FilesVolumeConfiguration as S3FilesVolumeConfiguration, + S3FilesVolumeConfigurationDict as S3FilesVolumeConfigurationDict, Scale as Scale, + ScaleDict as ScaleDict, ScaleUnit as ScaleUnit, SchedulingStrategy as SchedulingStrategy, Scope as Scope, Secret as Secret, + SecretDict as SecretDict, ServerException as ServerException, Service as Service, ServiceConnectAccessLogConfiguration as ServiceConnectAccessLogConfiguration, + ServiceConnectAccessLogConfigurationDict as ServiceConnectAccessLogConfigurationDict, ServiceConnectAccessLoggingFormat as ServiceConnectAccessLoggingFormat, ServiceConnectClientAlias as ServiceConnectClientAlias, + ServiceConnectClientAliasDict as ServiceConnectClientAliasDict, ServiceConnectConfiguration as ServiceConnectConfiguration, + ServiceConnectConfigurationDict as ServiceConnectConfigurationDict, ServiceConnectContainerConfigurationLogLevel as ServiceConnectContainerConfigurationLogLevel, ServiceConnectContainerConfigurationUnknown as ServiceConnectContainerConfigurationUnknown, ServiceConnectContainerConfiguration as ServiceConnectContainerConfiguration, _ServiceConnectContainerConfigurationDeserializer as _ServiceConnectContainerConfigurationDeserializer, + ServiceConnectContainerConfigurationLogLevelDict as ServiceConnectContainerConfigurationLogLevelDict, + ServiceConnectContainerConfigurationDict as ServiceConnectContainerConfigurationDict, ServiceConnectContainerLogLevel as ServiceConnectContainerLogLevel, ServiceConnectIncludeQueryParameters as ServiceConnectIncludeQueryParameters, ServiceConnectService as ServiceConnectService, + ServiceConnectServiceDict as ServiceConnectServiceDict, ServiceConnectServiceResource as ServiceConnectServiceResource, ServiceConnectTestTrafficHeaderMatchRules as ServiceConnectTestTrafficHeaderMatchRules, + ServiceConnectTestTrafficHeaderMatchRulesDict as ServiceConnectTestTrafficHeaderMatchRulesDict, ServiceConnectTestTrafficHeaderRules as ServiceConnectTestTrafficHeaderRules, + ServiceConnectTestTrafficHeaderRulesDict as ServiceConnectTestTrafficHeaderRulesDict, ServiceConnectTestTrafficRules as ServiceConnectTestTrafficRules, + ServiceConnectTestTrafficRulesDict as ServiceConnectTestTrafficRulesDict, ServiceConnectTlsCertificateAuthority as ServiceConnectTlsCertificateAuthority, + ServiceConnectTlsCertificateAuthorityDict as ServiceConnectTlsCertificateAuthorityDict, ServiceConnectTlsConfiguration as ServiceConnectTlsConfiguration, + ServiceConnectTlsConfigurationDict as ServiceConnectTlsConfigurationDict, ServiceCurrentRevisionSummary as ServiceCurrentRevisionSummary, ServiceDeployment as ServiceDeployment, ServiceDeploymentAlarms as ServiceDeploymentAlarms, @@ -492,9 +681,11 @@ from ._private.models_1 import ( ServiceEvent as ServiceEvent, ServiceField as ServiceField, ServiceManagedEBSVolumeConfiguration as ServiceManagedEBSVolumeConfiguration, + ServiceManagedEBSVolumeConfigurationDict as ServiceManagedEBSVolumeConfigurationDict, ServiceNotActiveException as ServiceNotActiveException, ServiceNotFoundException as ServiceNotFoundException, ServiceRegistry as ServiceRegistry, + ServiceRegistryDict as ServiceRegistryDict, ServiceRevision as ServiceRevision, ServiceRevisionCleanup as ServiceRevisionCleanup, ServiceRevisionLoadBalancer as ServiceRevisionLoadBalancer, @@ -502,6 +693,7 @@ from ._private.models_1 import ( ServiceRevisionSummary as ServiceRevisionSummary, ServiceRevisionVpcLatticeConfiguration as ServiceRevisionVpcLatticeConfiguration, ServiceVolumeConfiguration as ServiceVolumeConfiguration, + ServiceVolumeConfigurationDict as ServiceVolumeConfigurationDict, Session as Session, Setting as Setting, SettingName as SettingName, @@ -510,24 +702,35 @@ from ._private.models_1 import ( SharingStrategyUnknown as SharingStrategyUnknown, SharingStrategy as SharingStrategy, _SharingStrategyDeserializer as _SharingStrategyDeserializer, + SharingStrategyNvidiaMpsDict as SharingStrategyNvidiaMpsDict, + SharingStrategyDict as SharingStrategyDict, SortOrder as SortOrder, StabilityStatus as StabilityStatus, StartTaskInput as StartTaskInput, + StartTaskInputDict as StartTaskInputDict, StartTaskOutput as StartTaskOutput, StopServiceDeploymentInput as StopServiceDeploymentInput, + StopServiceDeploymentInputDict as StopServiceDeploymentInputDict, StopServiceDeploymentOutput as StopServiceDeploymentOutput, StopServiceDeploymentStopType as StopServiceDeploymentStopType, StopTaskInput as StopTaskInput, + StopTaskInputDict as StopTaskInputDict, StopTaskOutput as StopTaskOutput, SubmitAttachmentStateChangesInput as SubmitAttachmentStateChangesInput, + SubmitAttachmentStateChangesInputDict as SubmitAttachmentStateChangesInputDict, SubmitAttachmentStateChangesOutput as SubmitAttachmentStateChangesOutput, SubmitContainerStateChangeInput as SubmitContainerStateChangeInput, + SubmitContainerStateChangeInputDict as SubmitContainerStateChangeInputDict, SubmitContainerStateChangeOutput as SubmitContainerStateChangeOutput, SubmitTaskStateChangeInput as SubmitTaskStateChangeInput, + SubmitTaskStateChangeInputDict as SubmitTaskStateChangeInputDict, SubmitTaskStateChangeOutput as SubmitTaskStateChangeOutput, SystemControl as SystemControl, + SystemControlDict as SystemControlDict, Tag as Tag, + TagDict as TagDict, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, TargetNotConnectedException as TargetNotConnectedException, TargetNotFoundException as TargetNotFoundException, @@ -540,72 +743,107 @@ from ._private.models_1 import ( from ._private.models_2 import ( TaskDefinitionField as TaskDefinitionField, TaskDefinitionPlacementConstraint as TaskDefinitionPlacementConstraint, + TaskDefinitionPlacementConstraintDict as TaskDefinitionPlacementConstraintDict, TaskDefinitionPlacementConstraintType as TaskDefinitionPlacementConstraintType, TaskDefinitionStatus as TaskDefinitionStatus, TaskEphemeralStorage as TaskEphemeralStorage, TaskField as TaskField, TaskFilesystemType as TaskFilesystemType, TaskManagedEBSVolumeConfiguration as TaskManagedEBSVolumeConfiguration, + TaskManagedEBSVolumeConfigurationDict as TaskManagedEBSVolumeConfigurationDict, TaskManagedEBSVolumeTerminationPolicy as TaskManagedEBSVolumeTerminationPolicy, + TaskManagedEBSVolumeTerminationPolicyDict as TaskManagedEBSVolumeTerminationPolicyDict, TaskOverride as TaskOverride, + TaskOverrideDict as TaskOverrideDict, TaskSet as TaskSet, TaskSetField as TaskSetField, TaskSetNotFoundException as TaskSetNotFoundException, TaskStopCode as TaskStopCode, TaskVolumeConfiguration as TaskVolumeConfiguration, + TaskVolumeConfigurationDict as TaskVolumeConfigurationDict, ThresholdConfiguration as ThresholdConfiguration, + ThresholdConfigurationDict as ThresholdConfigurationDict, ThresholdType as ThresholdType, TimeoutConfiguration as TimeoutConfiguration, + TimeoutConfigurationDict as TimeoutConfigurationDict, Tmpfs as Tmpfs, + TmpfsDict as TmpfsDict, TotalLocalStorageGBRequest as TotalLocalStorageGBRequest, + TotalLocalStorageGBRequestDict as TotalLocalStorageGBRequestDict, TransportProtocol as TransportProtocol, TrustedExecutionConfiguration as TrustedExecutionConfiguration, + TrustedExecutionConfigurationDict as TrustedExecutionConfigurationDict, TrustedExecutionSummary as TrustedExecutionSummary, Ulimit as Ulimit, + UlimitDict as UlimitDict, UlimitName as UlimitName, UnsupportedFeatureException as UnsupportedFeatureException, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateCapacityProviderInput as UpdateCapacityProviderInput, + UpdateCapacityProviderInputDict as UpdateCapacityProviderInputDict, UpdateCapacityProviderOutput as UpdateCapacityProviderOutput, UpdateClusterInput as UpdateClusterInput, + UpdateClusterInputDict as UpdateClusterInputDict, UpdateClusterOutput as UpdateClusterOutput, UpdateClusterSettingsInput as UpdateClusterSettingsInput, + UpdateClusterSettingsInputDict as UpdateClusterSettingsInputDict, UpdateClusterSettingsOutput as UpdateClusterSettingsOutput, UpdateContainerAgentInput as UpdateContainerAgentInput, + UpdateContainerAgentInputDict as UpdateContainerAgentInputDict, UpdateContainerAgentOutput as UpdateContainerAgentOutput, UpdateContainerInstancesStateInput as UpdateContainerInstancesStateInput, + UpdateContainerInstancesStateInputDict as UpdateContainerInstancesStateInputDict, UpdateContainerInstancesStateOutput as UpdateContainerInstancesStateOutput, UpdateDaemonInput as UpdateDaemonInput, + UpdateDaemonInputDict as UpdateDaemonInputDict, UpdateDaemonOutput as UpdateDaemonOutput, UpdatedExpressGatewayService as UpdatedExpressGatewayService, UpdateExpressGatewayServiceInput as UpdateExpressGatewayServiceInput, + UpdateExpressGatewayServiceInputDict as UpdateExpressGatewayServiceInputDict, UpdateExpressGatewayServiceOutput as UpdateExpressGatewayServiceOutput, UpdateGatewayAlbConfiguration as UpdateGatewayAlbConfiguration, + UpdateGatewayAlbConfigurationDict as UpdateGatewayAlbConfigurationDict, UpdateGatewayConfigurationHostSharedAlb as UpdateGatewayConfigurationHostSharedAlb, UpdateGatewayConfigurationUnknown as UpdateGatewayConfigurationUnknown, UpdateGatewayConfiguration as UpdateGatewayConfiguration, _UpdateGatewayConfigurationDeserializer as _UpdateGatewayConfigurationDeserializer, + UpdateGatewayConfigurationHostSharedAlbDict as UpdateGatewayConfigurationHostSharedAlbDict, + UpdateGatewayConfigurationDict as UpdateGatewayConfigurationDict, UpdateGatewayInput as UpdateGatewayInput, + UpdateGatewayInputDict as UpdateGatewayInputDict, UpdateGatewayNetworkConfiguration as UpdateGatewayNetworkConfiguration, + UpdateGatewayNetworkConfigurationDict as UpdateGatewayNetworkConfigurationDict, UpdateGatewayOutput as UpdateGatewayOutput, UpdateInProgressException as UpdateInProgressException, UpdateManagedInstancesProviderConfiguration as UpdateManagedInstancesProviderConfiguration, + UpdateManagedInstancesProviderConfigurationDict as UpdateManagedInstancesProviderConfigurationDict, UpdateServiceInput as UpdateServiceInput, + UpdateServiceInputDict as UpdateServiceInputDict, UpdateServiceOutput as UpdateServiceOutput, UpdateServicePrimaryTaskSetInput as UpdateServicePrimaryTaskSetInput, + UpdateServicePrimaryTaskSetInputDict as UpdateServicePrimaryTaskSetInputDict, UpdateServicePrimaryTaskSetOutput as UpdateServicePrimaryTaskSetOutput, UpdateTaskProtectionInput as UpdateTaskProtectionInput, + UpdateTaskProtectionInputDict as UpdateTaskProtectionInputDict, UpdateTaskProtectionOutput as UpdateTaskProtectionOutput, UpdateTaskSetInput as UpdateTaskSetInput, + UpdateTaskSetInputDict as UpdateTaskSetInputDict, UpdateTaskSetOutput as UpdateTaskSetOutput, VCpuCountRangeRequest as VCpuCountRangeRequest, + VCpuCountRangeRequestDict as VCpuCountRangeRequestDict, VersionConsistency as VersionConsistency, VersionInfo as VersionInfo, + VersionInfoDict as VersionInfoDict, Volume as Volume, + VolumeDict as VolumeDict, VolumeFrom as VolumeFrom, + VolumeFromDict as VolumeFromDict, VpcLatticeAdvancedConfiguration as VpcLatticeAdvancedConfiguration, + VpcLatticeAdvancedConfigurationDict as VpcLatticeAdvancedConfigurationDict, VpcLatticeConfiguration as VpcLatticeConfiguration, + VpcLatticeConfigurationDict as VpcLatticeConfigurationDict, ) class _SerdeShape: diff --git a/clients/aws-sdk-ecs/src/aws_sdk_ecs/py.typed b/clients/aws-sdk-ecs/src/aws_sdk_ecs/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-ecs/tests/_typecheck.py b/clients/aws-sdk-ecs/tests/_typecheck.py index a4e10dfe9..b9d484321 100644 --- a/clients/aws-sdk-ecs/tests/_typecheck.py +++ b/clients/aws-sdk-ecs/tests/_typecheck.py @@ -2,69 +2,107 @@ from typing import Any +from aws_sdk_ecs.aio.client import AsyncECSClient +from aws_sdk_ecs.client import ECSClient from aws_sdk_ecs.models import ( AcceleratorCountRequest, + AcceleratorCountRequestDict, AcceleratorTotalMemoryMiBRequest, + AcceleratorTotalMemoryMiBRequestDict, AdvancedConfiguration, + AdvancedConfigurationDict, AssociateGatewayWithClusterInput, + AssociateGatewayWithClusterInputDict, AssociateGatewayWithClusterOutput, Attachment, AttachmentStateChange, + AttachmentStateChangeDict, Attribute, + AttributeDict, AutoRepairConfiguration, + AutoRepairConfigurationDict, AutoScalingGroupProvider, + AutoScalingGroupProviderDict, AutoScalingGroupProviderUpdate, + AutoScalingGroupProviderUpdateDict, AwsVpcConfiguration, + AwsVpcConfigurationDict, BaselineEbsBandwidthMbpsRequest, + BaselineEbsBandwidthMbpsRequestDict, CanaryConfiguration, + CanaryConfigurationDict, CapacityProvider, CapacityProviderStrategyItem, + CapacityProviderStrategyItemDict, CapacityReservationRequest, + CapacityReservationRequestDict, Cluster, ClusterConfiguration, + ClusterConfigurationDict, ClusterServiceConnectDefaults, ClusterServiceConnectDefaultsRequest, + ClusterServiceConnectDefaultsRequestDict, ClusterSetting, + ClusterSettingDict, Container, ContainerDefinition, + ContainerDefinitionDict, ContainerDependency, + ContainerDependencyDict, ContainerImage, ContainerInstance, ContainerInstanceHealthStatus, ContainerOverride, + ContainerOverrideDict, ContainerRestartPolicy, + ContainerRestartPolicyDict, ContainerStateChange, + ContainerStateChangeDict, ContinueServiceDeploymentInput, + ContinueServiceDeploymentInputDict, ContinueServiceDeploymentOutput, CreateCapacityProviderInput, + CreateCapacityProviderInputDict, CreateCapacityProviderOutput, CreateClusterInput, + CreateClusterInputDict, CreateClusterOutput, CreateDaemonInput, + CreateDaemonInputDict, CreateDaemonOutput, CreateExpressGatewayServiceInput, + CreateExpressGatewayServiceInputDict, CreateExpressGatewayServiceOutput, CreateGatewayInput, + CreateGatewayInputDict, CreateGatewayOutput, CreateManagedInstancesProviderConfiguration, + CreateManagedInstancesProviderConfigurationDict, CreateServiceInput, + CreateServiceInputDict, CreateServiceOutput, CreateTaskSetInput, + CreateTaskSetInputDict, CreateTaskSetOutput, CreatedAt, + CreatedAtDict, DaemonAlarmConfiguration, + DaemonAlarmConfigurationDict, DaemonCapacityProvider, DaemonCircuitBreaker, DaemonContainerDefinition, + DaemonContainerDefinitionDict, DaemonContainerImage, DaemonDeployment, DaemonDeploymentAlarms, DaemonDeploymentCapacityProvider, DaemonDeploymentConfiguration, + DaemonDeploymentConfigurationDict, DaemonDeploymentRevisionDetail, DaemonDeploymentSummary, DaemonDetail, DaemonLinuxParameters, + DaemonLinuxParametersDict, DaemonRevision, DaemonRevisionDetail, DaemonRollback, @@ -72,118 +110,186 @@ DaemonTaskDefinition, DaemonTaskDefinitionSummary, DaemonVolume, + DaemonVolumeDict, DeleteAccountSettingInput, + DeleteAccountSettingInputDict, DeleteAccountSettingOutput, DeleteAttributesInput, + DeleteAttributesInputDict, DeleteAttributesOutput, DeleteCapacityProviderInput, + DeleteCapacityProviderInputDict, DeleteCapacityProviderOutput, DeleteClusterInput, + DeleteClusterInputDict, DeleteClusterOutput, DeleteDaemonInput, + DeleteDaemonInputDict, DeleteDaemonOutput, DeleteDaemonTaskDefinitionInput, + DeleteDaemonTaskDefinitionInputDict, DeleteDaemonTaskDefinitionOutput, DeleteExpressGatewayServiceInput, + DeleteExpressGatewayServiceInputDict, DeleteExpressGatewayServiceOutput, DeleteGatewayInput, + DeleteGatewayInputDict, DeleteGatewayOutput, DeleteServiceInput, + DeleteServiceInputDict, DeleteServiceOutput, DeleteTaskDefinitionsInput, + DeleteTaskDefinitionsInputDict, DeleteTaskDefinitionsOutput, DeleteTaskSetInput, + DeleteTaskSetInputDict, DeleteTaskSetOutput, Deployment, DeploymentAlarms, + DeploymentAlarmsDict, DeploymentCircuitBreaker, + DeploymentCircuitBreakerDict, DeploymentConfiguration, + DeploymentConfigurationDict, DeploymentController, + DeploymentControllerDict, DeploymentEarlySuccessCriteria, + DeploymentEarlySuccessCriteriaDict, DeploymentEphemeralStorage, DeploymentLifecycleHook, DeploymentLifecycleHookDetail, + DeploymentLifecycleHookDict, DeploymentLifecycleHookTimeoutConfiguration, + DeploymentLifecycleHookTimeoutConfigurationDict, DeregisterContainerInstanceInput, + DeregisterContainerInstanceInputDict, DeregisterContainerInstanceOutput, DeregisterTaskDefinitionInput, + DeregisterTaskDefinitionInputDict, DeregisterTaskDefinitionOutput, DescribeCapacityProvidersInput, + DescribeCapacityProvidersInputDict, DescribeCapacityProvidersOutput, DescribeClustersInput, + DescribeClustersInputDict, DescribeClustersOutput, DescribeContainerInstancesInput, + DescribeContainerInstancesInputDict, DescribeContainerInstancesOutput, DescribeDaemonDeploymentsInput, + DescribeDaemonDeploymentsInputDict, DescribeDaemonDeploymentsOutput, DescribeDaemonInput, + DescribeDaemonInputDict, DescribeDaemonOutput, DescribeDaemonRevisionsInput, + DescribeDaemonRevisionsInputDict, DescribeDaemonRevisionsOutput, DescribeDaemonTaskDefinitionInput, + DescribeDaemonTaskDefinitionInputDict, DescribeDaemonTaskDefinitionOutput, DescribeExpressGatewayServiceInput, + DescribeExpressGatewayServiceInputDict, DescribeExpressGatewayServiceOutput, DescribeGatewayAlbConfiguration, DescribeGatewayInput, + DescribeGatewayInputDict, DescribeGatewayOutput, DescribeGatewayResourcesInput, + DescribeGatewayResourcesInputDict, DescribeGatewayResourcesOutput, DescribeGatewayRouteInput, + DescribeGatewayRouteInputDict, DescribeGatewayRouteOutput, DescribeServiceDeploymentsInput, + DescribeServiceDeploymentsInputDict, DescribeServiceDeploymentsOutput, DescribeServiceRevisionsInput, + DescribeServiceRevisionsInputDict, DescribeServiceRevisionsOutput, DescribeServicesInput, + DescribeServicesInputDict, DescribeServicesOutput, DescribeTaskDefinitionInput, + DescribeTaskDefinitionInputDict, DescribeTaskDefinitionOutput, DescribeTaskSetsInput, + DescribeTaskSetsInputDict, DescribeTaskSetsOutput, DescribeTasksInput, + DescribeTasksInputDict, DescribeTasksOutput, Device, + DeviceDict, DisassociateGatewayFromClusterInput, + DisassociateGatewayFromClusterInputDict, DisassociateGatewayFromClusterOutput, DiscoverPollEndpointInput, + DiscoverPollEndpointInputDict, DiscoverPollEndpointOutput, DockerVolumeConfiguration, + DockerVolumeConfigurationDict, EBSTagSpecification, + EBSTagSpecificationDict, ECSExpressGatewayService, ECSManagedResources, EFSAuthorizationConfig, + EFSAuthorizationConfigDict, EFSVolumeConfiguration, + EFSVolumeConfigurationDict, ElbGatewayResources, EnvironmentFile, + EnvironmentFileDict, EphemeralStorage, + EphemeralStorageDict, ExecuteCommandConfiguration, + ExecuteCommandConfigurationDict, ExecuteCommandInput, + ExecuteCommandInputDict, ExecuteCommandLogConfiguration, + ExecuteCommandLogConfigurationDict, ExecuteCommandOutput, ExpressGatewayContainer, + ExpressGatewayContainerDict, ExpressGatewayRepositoryCredentials, + ExpressGatewayRepositoryCredentialsDict, ExpressGatewayScalingTarget, + ExpressGatewayScalingTargetDict, ExpressGatewayServiceAwsLogsConfiguration, + ExpressGatewayServiceAwsLogsConfigurationDict, ExpressGatewayServiceConfiguration, ExpressGatewayServiceNetworkConfiguration, + ExpressGatewayServiceNetworkConfigurationDict, ExpressGatewayServiceStatus, FSxWindowsFileServerAuthorizationConfig, + FSxWindowsFileServerAuthorizationConfigDict, FSxWindowsFileServerVolumeConfiguration, + FSxWindowsFileServerVolumeConfigurationDict, Failure, FirelensConfiguration, + FirelensConfigurationDict, Gateway, GatewayAlbTestTrafficRules, + GatewayAlbTestTrafficRulesDict, GatewayClusterAssociationSummary, + GatewayConfigurationDict, GatewayConnection, GatewayConnectionAlbResources, GatewayConnector, + GatewayConnectorDict, GatewayConnectorFilters, + GatewayConnectorFiltersDict, GatewayConnectorHealthCheck, + GatewayConnectorHealthCheckDict, GatewayConnectorHealthCheckMatcher, + GatewayConnectorHealthCheckMatcherDict, GatewayElbAccessLogConfiguration, + GatewayElbAccessLogConfigurationDict, + GatewayElbAccessLogDestinationDict, GatewayElbAccessLogS3Destination, + GatewayElbAccessLogS3DestinationDict, GatewayElbNetworkConfiguration, + GatewayElbNetworkConfigurationDict, GatewayOperationError, GatewayResourceFailure, GatewayResources, @@ -193,72 +299,112 @@ GatewayRouteSummary, GatewaySummary, GatewayTestTrafficHeader, + GatewayTestTrafficHeaderDict, GetTaskProtectionInput, + GetTaskProtectionInputDict, GetTaskProtectionOutput, GpuDevice, HealthCheck, + HealthCheckDict, HostEntry, + HostEntryDict, HostSharedAlbConfiguration, + HostSharedAlbConfigurationDict, HostVolumeProperties, + HostVolumePropertiesDict, InferenceAccelerator, + InferenceAcceleratorDict, InferenceAcceleratorOverride, + InferenceAcceleratorOverrideDict, InfrastructureOptimization, + InfrastructureOptimizationDict, IngressPathSummary, InstanceHealthCheckResult, InstanceLaunchTemplate, + InstanceLaunchTemplateDict, InstanceLaunchTemplateUpdate, + InstanceLaunchTemplateUpdateDict, InstanceRequirementsRequest, + InstanceRequirementsRequestDict, KernelCapabilities, + KernelCapabilitiesDict, KeyValuePair, + KeyValuePairDict, LinearConfiguration, + LinearConfigurationDict, LinuxParameters, + LinuxParametersDict, ListAccountSettingsInput, + ListAccountSettingsInputDict, ListAccountSettingsOutput, ListAttributesInput, + ListAttributesInputDict, ListAttributesOutput, ListClustersInput, + ListClustersInputDict, ListClustersOutput, ListContainerInstancesInput, + ListContainerInstancesInputDict, ListContainerInstancesOutput, ListDaemonDeploymentsInput, + ListDaemonDeploymentsInputDict, ListDaemonDeploymentsOutput, ListDaemonTaskDefinitionsInput, + ListDaemonTaskDefinitionsInputDict, ListDaemonTaskDefinitionsOutput, ListDaemonsInput, + ListDaemonsInputDict, ListDaemonsOutput, ListGatewayClusterAssociationsInput, + ListGatewayClusterAssociationsInputDict, ListGatewayClusterAssociationsOutput, ListGatewayRoutesInput, + ListGatewayRoutesInputDict, ListGatewayRoutesOutput, ListGatewaysInput, + ListGatewaysInputDict, ListGatewaysOutput, ListServiceDeploymentsInput, + ListServiceDeploymentsInputDict, ListServiceDeploymentsOutput, ListServicesByNamespaceInput, + ListServicesByNamespaceInputDict, ListServicesByNamespaceOutput, ListServicesInput, + ListServicesInputDict, ListServicesOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ListTaskDefinitionFamiliesInput, + ListTaskDefinitionFamiliesInputDict, ListTaskDefinitionFamiliesOutput, ListTaskDefinitionsInput, + ListTaskDefinitionsInputDict, ListTaskDefinitionsOutput, ListTasksInput, + ListTasksInputDict, ListTasksOutput, LoadBalancer, + LoadBalancerDict, LogConfiguration, + LogConfigurationDict, LogDriverVolumeConfiguration, + LogDriverVolumeConfigurationDict, ManagedAgent, ManagedAgentStateChange, + ManagedAgentStateChangeDict, ManagedApplicationAutoScalingPolicy, ManagedAutoScaling, ManagedCertificate, ManagedIngressPath, ManagedInstancesLocalStorageConfiguration, + ManagedInstancesLocalStorageConfigurationDict, ManagedInstancesNetworkConfiguration, + ManagedInstancesNetworkConfigurationDict, ManagedInstancesProvider, ManagedInstancesStorageConfiguration, + ManagedInstancesStorageConfigurationDict, ManagedListener, ManagedListenerRule, ManagedLoadBalancer, @@ -266,63 +412,105 @@ ManagedMetricAlarm, ManagedScalableTarget, ManagedScaling, + ManagedScalingDict, ManagedSecurityGroup, ManagedStorageConfiguration, + ManagedStorageConfigurationDict, ManagedTargetGroup, MemoryGiBPerVCpuRequest, + MemoryGiBPerVCpuRequestDict, MemoryMiBRequest, + MemoryMiBRequestDict, MetricConfiguration, + MetricConfigurationDict, MonitoringConfiguration, + MonitoringConfigurationDict, MountPoint, + MountPointDict, NetworkBandwidthGbpsRequest, + NetworkBandwidthGbpsRequestDict, NetworkBinding, + NetworkBindingDict, NetworkConfiguration, + NetworkConfigurationDict, NetworkInterface, NetworkInterfaceCountRequest, + NetworkInterfaceCountRequestDict, NvidiaMpsAllocation, + NvidiaMpsAllocationDict, PlacementConstraint, + PlacementConstraintDict, PlacementStrategy, + PlacementStrategyDict, PlatformDevice, + PlatformDeviceDict, PortMapping, + PortMappingDict, ProtectedTask, ProxyConfiguration, + ProxyConfigurationDict, PutAccountSettingDefaultInput, + PutAccountSettingDefaultInputDict, PutAccountSettingDefaultOutput, PutAccountSettingInput, + PutAccountSettingInputDict, PutAccountSettingOutput, PutAttributesInput, + PutAttributesInputDict, PutAttributesOutput, PutClusterCapacityProvidersInput, + PutClusterCapacityProvidersInputDict, PutClusterCapacityProvidersOutput, RegisterContainerInstanceInput, + RegisterContainerInstanceInputDict, RegisterContainerInstanceOutput, RegisterDaemonTaskDefinitionInput, + RegisterDaemonTaskDefinitionInputDict, RegisterDaemonTaskDefinitionOutput, RegisterTaskDefinitionInput, + RegisterTaskDefinitionInputDict, RegisterTaskDefinitionOutput, RepositoryCredentials, + RepositoryCredentialsDict, ResolvedConfiguration, Resource, + ResourceDict, ResourceRequirement, + ResourceRequirementDict, Rollback, RunTaskInput, + RunTaskInputDict, RunTaskOutput, RuntimePlatform, + RuntimePlatformDict, RuntimePlatformOverride, S3FilesVolumeConfiguration, + S3FilesVolumeConfigurationDict, Scale, + ScaleDict, Secret, + SecretDict, Service, ServiceConnectAccessLogConfiguration, + ServiceConnectAccessLogConfigurationDict, ServiceConnectClientAlias, + ServiceConnectClientAliasDict, ServiceConnectConfiguration, + ServiceConnectConfigurationDict, + ServiceConnectContainerConfigurationDict, ServiceConnectService, + ServiceConnectServiceDict, ServiceConnectServiceResource, ServiceConnectTestTrafficHeaderMatchRules, + ServiceConnectTestTrafficHeaderMatchRulesDict, ServiceConnectTestTrafficHeaderRules, + ServiceConnectTestTrafficHeaderRulesDict, ServiceConnectTestTrafficRules, + ServiceConnectTestTrafficRulesDict, ServiceConnectTlsCertificateAuthority, + ServiceConnectTlsCertificateAuthorityDict, ServiceConnectTlsConfiguration, + ServiceConnectTlsConfigurationDict, ServiceCurrentRevisionSummary, ServiceDeployment, ServiceDeploymentAlarms, @@ -330,88 +518,136 @@ ServiceDeploymentCircuitBreaker, ServiceEvent, ServiceManagedEBSVolumeConfiguration, + ServiceManagedEBSVolumeConfigurationDict, ServiceRegistry, + ServiceRegistryDict, ServiceRevision, ServiceRevisionLoadBalancer, ServiceRevisionOverrides, ServiceRevisionSummary, ServiceRevisionVpcLatticeConfiguration, ServiceVolumeConfiguration, + ServiceVolumeConfigurationDict, Session, Setting, + SharingStrategyDict, StartTaskInput, + StartTaskInputDict, StartTaskOutput, StopServiceDeploymentInput, + StopServiceDeploymentInputDict, StopServiceDeploymentOutput, StopTaskInput, + StopTaskInputDict, StopTaskOutput, SubmitAttachmentStateChangesInput, + SubmitAttachmentStateChangesInputDict, SubmitAttachmentStateChangesOutput, SubmitContainerStateChangeInput, + SubmitContainerStateChangeInputDict, SubmitContainerStateChangeOutput, SubmitTaskStateChangeInput, + SubmitTaskStateChangeInputDict, SubmitTaskStateChangeOutput, SystemControl, + SystemControlDict, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, Task, TaskDefinition, TaskDefinitionPlacementConstraint, + TaskDefinitionPlacementConstraintDict, TaskEphemeralStorage, TaskManagedEBSVolumeConfiguration, + TaskManagedEBSVolumeConfigurationDict, TaskManagedEBSVolumeTerminationPolicy, + TaskManagedEBSVolumeTerminationPolicyDict, TaskOverride, + TaskOverrideDict, TaskSet, TaskVolumeConfiguration, + TaskVolumeConfigurationDict, ThresholdConfiguration, + ThresholdConfigurationDict, TimeoutConfiguration, + TimeoutConfigurationDict, Tmpfs, + TmpfsDict, TotalLocalStorageGBRequest, + TotalLocalStorageGBRequestDict, TrustedExecutionConfiguration, + TrustedExecutionConfigurationDict, TrustedExecutionSummary, Ulimit, + UlimitDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateCapacityProviderInput, + UpdateCapacityProviderInputDict, UpdateCapacityProviderOutput, UpdateClusterInput, + UpdateClusterInputDict, UpdateClusterOutput, UpdateClusterSettingsInput, + UpdateClusterSettingsInputDict, UpdateClusterSettingsOutput, UpdateContainerAgentInput, + UpdateContainerAgentInputDict, UpdateContainerAgentOutput, UpdateContainerInstancesStateInput, + UpdateContainerInstancesStateInputDict, UpdateContainerInstancesStateOutput, UpdateDaemonInput, + UpdateDaemonInputDict, UpdateDaemonOutput, UpdateExpressGatewayServiceInput, + UpdateExpressGatewayServiceInputDict, UpdateExpressGatewayServiceOutput, UpdateGatewayAlbConfiguration, + UpdateGatewayAlbConfigurationDict, + UpdateGatewayConfigurationDict, UpdateGatewayInput, + UpdateGatewayInputDict, UpdateGatewayNetworkConfiguration, + UpdateGatewayNetworkConfigurationDict, UpdateGatewayOutput, UpdateManagedInstancesProviderConfiguration, + UpdateManagedInstancesProviderConfigurationDict, UpdateServiceInput, + UpdateServiceInputDict, UpdateServiceOutput, UpdateServicePrimaryTaskSetInput, + UpdateServicePrimaryTaskSetInputDict, UpdateServicePrimaryTaskSetOutput, UpdateTaskProtectionInput, + UpdateTaskProtectionInputDict, UpdateTaskProtectionOutput, UpdateTaskSetInput, + UpdateTaskSetInputDict, UpdateTaskSetOutput, UpdatedExpressGatewayService, VCpuCountRangeRequest, + VCpuCountRangeRequestDict, VersionInfo, + VersionInfoDict, Volume, + VolumeDict, VolumeFrom, + VolumeFromDict, VpcLatticeAdvancedConfiguration, + VpcLatticeAdvancedConfigurationDict, VpcLatticeConfiguration, + VpcLatticeConfigurationDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -825,3 +1061,1237 @@ VolumeFrom() VpcLatticeAdvancedConfiguration() VpcLatticeConfiguration(role_arn=_, target_group_arn=_, port_name=_) +_params_0: AcceleratorCountRequestDict = {} +_params_1: AcceleratorTotalMemoryMiBRequestDict = {} +_params_2: AdvancedConfigurationDict = {} +_params_3: AssociateGatewayWithClusterInputDict = {"gateway": _, "cluster": _} +_params_4: AttachmentStateChangeDict = {"attachment_arn": _, "status": _} +_params_5: AttributeDict = {"name": _} +_params_6: AutoRepairConfigurationDict = {} +_params_7: AutoScalingGroupProviderDict = {"auto_scaling_group_arn": _} +_params_8: AutoScalingGroupProviderUpdateDict = {} +_params_9: AwsVpcConfigurationDict = {"subnets": _} +_params_10: BaselineEbsBandwidthMbpsRequestDict = {} +_params_11: CanaryConfigurationDict = {} +_params_12: CapacityProviderStrategyItemDict = {"capacity_provider": _} +_params_13: CapacityReservationRequestDict = {} +_params_14: ClusterConfigurationDict = {} +_params_15: ClusterServiceConnectDefaultsRequestDict = {"namespace": _} +_params_16: ClusterSettingDict = {} +_params_17: ContainerDefinitionDict = {} +_params_18: ContainerDependencyDict = {"container_name": _, "condition": _} +_params_19: ContainerOverrideDict = {} +_params_20: ContainerRestartPolicyDict = {"enabled": _} +_params_21: ContainerStateChangeDict = {} +_params_22: ContinueServiceDeploymentInputDict = { + "service_deployment_arn": _, + "hook_id": _, +} +_params_23: CreateCapacityProviderInputDict = {"name": _} +_params_24: CreateClusterInputDict = {} +_params_25: CreateDaemonInputDict = { + "daemon_name": _, + "daemon_task_definition_arn": _, + "capacity_provider_arns": _, +} +_params_26: CreatedAtDict = {} +_params_27: CreateExpressGatewayServiceInputDict = {"infrastructure_role_arn": _} +_params_28: CreateGatewayInputDict = { + "name": _, + "infrastructure_role_arn": _, + "configuration": _, +} +_params_29: CreateManagedInstancesProviderConfigurationDict = { + "infrastructure_role_arn": _, + "instance_launch_template": _, +} +_params_30: CreateServiceInputDict = {"service_name": _} +_params_31: CreateTaskSetInputDict = {"service": _, "cluster": _, "task_definition": _} +_params_32: DaemonAlarmConfigurationDict = {} +_params_33: DaemonContainerDefinitionDict = {"image": _} +_params_34: DaemonDeploymentConfigurationDict = {} +_params_35: DaemonLinuxParametersDict = {} +_params_36: DaemonVolumeDict = {} +_params_37: DeleteAccountSettingInputDict = {"name": _} +_params_38: DeleteAttributesInputDict = {"attributes": _} +_params_39: DeleteCapacityProviderInputDict = {"capacity_provider": _} +_params_40: DeleteClusterInputDict = {"cluster": _} +_params_41: DeleteDaemonInputDict = {"daemon_arn": _} +_params_42: DeleteDaemonTaskDefinitionInputDict = {"daemon_task_definition": _} +_params_43: DeleteExpressGatewayServiceInputDict = {"service_arn": _} +_params_44: DeleteGatewayInputDict = {"gateway": _} +_params_45: DeleteServiceInputDict = {"service": _} +_params_46: DeleteTaskDefinitionsInputDict = {"task_definitions": _} +_params_47: DeleteTaskSetInputDict = {"cluster": _, "service": _, "task_set": _} +_params_48: DeploymentAlarmsDict = {"alarm_names": _} +_params_49: DeploymentCircuitBreakerDict = {} +_params_50: DeploymentConfigurationDict = {} +_params_51: DeploymentControllerDict = {"type": _} +_params_52: DeploymentEarlySuccessCriteriaDict = {} +_params_53: DeploymentLifecycleHookDict = {} +_params_54: DeploymentLifecycleHookTimeoutConfigurationDict = {} +_params_55: DeregisterContainerInstanceInputDict = {"container_instance": _} +_params_56: DeregisterTaskDefinitionInputDict = {"task_definition": _} +_params_57: DescribeCapacityProvidersInputDict = {} +_params_58: DescribeClustersInputDict = {} +_params_59: DescribeContainerInstancesInputDict = {"container_instances": _} +_params_60: DescribeDaemonDeploymentsInputDict = {"daemon_deployment_arns": _} +_params_61: DescribeDaemonInputDict = {"daemon_arn": _} +_params_62: DescribeDaemonRevisionsInputDict = {"daemon_revision_arns": _} +_params_63: DescribeDaemonTaskDefinitionInputDict = {"daemon_task_definition": _} +_params_64: DescribeExpressGatewayServiceInputDict = {"service_arn": _} +_params_65: DescribeGatewayInputDict = {"gateway": _} +_params_66: DescribeGatewayResourcesInputDict = {"gateway": _} +_params_67: DescribeGatewayRouteInputDict = {"gateway_route_arn": _} +_params_68: DescribeServiceDeploymentsInputDict = {"service_deployment_arns": _} +_params_69: DescribeServiceRevisionsInputDict = {"service_revision_arns": _} +_params_70: DescribeServicesInputDict = {"services": _} +_params_71: DescribeTaskDefinitionInputDict = {"task_definition": _} +_params_72: DescribeTaskSetsInputDict = {"cluster": _, "service": _} +_params_73: DescribeTasksInputDict = {"tasks": _} +_params_74: DeviceDict = {"host_path": _} +_params_75: DisassociateGatewayFromClusterInputDict = {"gateway": _, "cluster": _} +_params_76: DiscoverPollEndpointInputDict = {} +_params_77: DockerVolumeConfigurationDict = {} +_params_78: EBSTagSpecificationDict = {"resource_type": _} +_params_79: EFSAuthorizationConfigDict = {} +_params_80: EFSVolumeConfigurationDict = {"file_system_id": _} +_params_81: EnvironmentFileDict = {"value": _, "type": _} +_params_82: EphemeralStorageDict = {} +_params_83: ExecuteCommandConfigurationDict = {} +_params_84: ExecuteCommandInputDict = {"command": _, "task": _} +_params_85: ExecuteCommandLogConfigurationDict = {} +_params_86: ExpressGatewayContainerDict = {"image": _} +_params_87: ExpressGatewayRepositoryCredentialsDict = {} +_params_88: ExpressGatewayScalingTargetDict = {} +_params_89: ExpressGatewayServiceAwsLogsConfigurationDict = { + "log_group": _, + "log_stream_prefix": _, +} +_params_90: ExpressGatewayServiceNetworkConfigurationDict = {} +_params_91: FirelensConfigurationDict = {"type": _} +_params_92: FSxWindowsFileServerAuthorizationConfigDict = { + "credentials_parameter": _, + "domain": _, +} +_params_93: FSxWindowsFileServerVolumeConfigurationDict = { + "file_system_id": _, + "root_directory": _, + "authorization_config": _, +} +_params_94: GatewayAlbTestTrafficRulesDict = {} +_params_95: GatewayConfigurationDict = {"host_shared_alb": _} +_params_96: GatewayConnectorDict = {"port_name": _} +_params_97: GatewayConnectorFiltersDict = {} +_params_98: GatewayConnectorHealthCheckDict = {} +_params_99: GatewayConnectorHealthCheckMatcherDict = {} +_params_100: GatewayElbAccessLogConfigurationDict = {} +_params_101: GatewayElbAccessLogDestinationDict = {"s3": _} +_params_102: GatewayElbAccessLogS3DestinationDict = {"bucket": _} +_params_103: GatewayElbNetworkConfigurationDict = {} +_params_104: GatewayTestTrafficHeaderDict = {"name": _, "values": _} +_params_105: GetTaskProtectionInputDict = {"cluster": _} +_params_106: HealthCheckDict = {"command": _} +_params_107: HostEntryDict = {"hostname": _, "ip_address": _} +_params_108: HostSharedAlbConfigurationDict = {} +_params_109: HostVolumePropertiesDict = {} +_params_110: InferenceAcceleratorDict = {"device_name": _, "device_type": _} +_params_111: InferenceAcceleratorOverrideDict = {} +_params_112: InfrastructureOptimizationDict = {} +_params_113: InstanceLaunchTemplateDict = { + "ec2_instance_profile_arn": _, + "network_configuration": _, +} +_params_114: InstanceLaunchTemplateUpdateDict = {} +_params_115: InstanceRequirementsRequestDict = {"v_cpu_count": _, "memory_mi_b": _} +_params_116: KernelCapabilitiesDict = {} +_params_117: KeyValuePairDict = {} +_params_118: LinearConfigurationDict = {} +_params_119: LinuxParametersDict = {} +_params_120: ListAccountSettingsInputDict = {} +_params_121: ListAttributesInputDict = {"target_type": _} +_params_122: ListClustersInputDict = {} +_params_123: ListContainerInstancesInputDict = {} +_params_124: ListDaemonDeploymentsInputDict = {"daemon_arn": _} +_params_125: ListDaemonsInputDict = {} +_params_126: ListDaemonTaskDefinitionsInputDict = {} +_params_127: ListGatewayClusterAssociationsInputDict = {} +_params_128: ListGatewayRoutesInputDict = {} +_params_129: ListGatewaysInputDict = {} +_params_130: ListServiceDeploymentsInputDict = {"service": _} +_params_131: ListServicesByNamespaceInputDict = {"namespace": _} +_params_132: ListServicesInputDict = {} +_params_133: ListTagsForResourceInputDict = {"resource_arn": _} +_params_134: ListTaskDefinitionFamiliesInputDict = {} +_params_135: ListTaskDefinitionsInputDict = {} +_params_136: ListTasksInputDict = {} +_params_137: LoadBalancerDict = {} +_params_138: LogConfigurationDict = {"log_driver": _} +_params_139: LogDriverVolumeConfigurationDict = {"driver": _} +_params_140: ManagedAgentStateChangeDict = { + "container_name": _, + "managed_agent_name": _, + "status": _, +} +_params_141: ManagedInstancesLocalStorageConfigurationDict = {} +_params_142: ManagedInstancesNetworkConfigurationDict = {} +_params_143: ManagedInstancesStorageConfigurationDict = {} +_params_144: ManagedScalingDict = {} +_params_145: ManagedStorageConfigurationDict = {} +_params_146: MemoryGiBPerVCpuRequestDict = {} +_params_147: MemoryMiBRequestDict = {"min": _} +_params_148: MetricConfigurationDict = {"metric_names": _, "resolution_seconds": _} +_params_149: MonitoringConfigurationDict = {} +_params_150: MountPointDict = {} +_params_151: NetworkBandwidthGbpsRequestDict = {} +_params_152: NetworkBindingDict = {} +_params_153: NetworkConfigurationDict = {} +_params_154: NetworkInterfaceCountRequestDict = {} +_params_155: NvidiaMpsAllocationDict = {"memory": _} +_params_156: PlacementConstraintDict = {} +_params_157: PlacementStrategyDict = {} +_params_158: PlatformDeviceDict = {"id": _, "type": _} +_params_159: PortMappingDict = {} +_params_160: ProxyConfigurationDict = {"container_name": _} +_params_161: PutAccountSettingDefaultInputDict = {"name": _, "value": _} +_params_162: PutAccountSettingInputDict = {"name": _, "value": _} +_params_163: PutAttributesInputDict = {"attributes": _} +_params_164: PutClusterCapacityProvidersInputDict = { + "cluster": _, + "capacity_providers": _, + "default_capacity_provider_strategy": _, +} +_params_165: RegisterContainerInstanceInputDict = {} +_params_166: RegisterDaemonTaskDefinitionInputDict = { + "family": _, + "container_definitions": _, +} +_params_167: RegisterTaskDefinitionInputDict = {"family": _, "container_definitions": _} +_params_168: RepositoryCredentialsDict = {"credentials_parameter": _} +_params_169: ResourceDict = {} +_params_170: ResourceRequirementDict = {"type": _} +_params_171: RunTaskInputDict = {"task_definition": _} +_params_172: RuntimePlatformDict = {} +_params_173: S3FilesVolumeConfigurationDict = {"file_system_arn": _} +_params_174: ScaleDict = {} +_params_175: SecretDict = {"name": _, "value_from": _} +_params_176: ServiceConnectAccessLogConfigurationDict = {"format": _} +_params_177: ServiceConnectClientAliasDict = {"port": _} +_params_178: ServiceConnectConfigurationDict = {} +_params_179: ServiceConnectContainerConfigurationDict = {"log_level": _} +_params_180: ServiceConnectServiceDict = {"port_name": _} +_params_181: ServiceConnectTestTrafficHeaderMatchRulesDict = {"exact": _} +_params_182: ServiceConnectTestTrafficHeaderRulesDict = {"name": _} +_params_183: ServiceConnectTestTrafficRulesDict = {"header": _} +_params_184: ServiceConnectTlsCertificateAuthorityDict = {} +_params_185: ServiceConnectTlsConfigurationDict = {"issuer_certificate_authority": _} +_params_186: ServiceManagedEBSVolumeConfigurationDict = {"role_arn": _} +_params_187: ServiceRegistryDict = {} +_params_188: ServiceVolumeConfigurationDict = {"name": _} +_params_189: SharingStrategyDict = {"nvidia_mps": _} +_params_190: StartTaskInputDict = {"container_instances": _, "task_definition": _} +_params_191: StopServiceDeploymentInputDict = {"service_deployment_arn": _} +_params_192: StopTaskInputDict = {"task": _} +_params_193: SubmitAttachmentStateChangesInputDict = {"attachments": _} +_params_194: SubmitContainerStateChangeInputDict = {} +_params_195: SubmitTaskStateChangeInputDict = {} +_params_196: SystemControlDict = {} +_params_197: TagDict = {} +_params_198: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_199: TaskDefinitionPlacementConstraintDict = {} +_params_200: TaskManagedEBSVolumeConfigurationDict = {"role_arn": _} +_params_201: TaskManagedEBSVolumeTerminationPolicyDict = {"delete_on_termination": _} +_params_202: TaskOverrideDict = {} +_params_203: TaskVolumeConfigurationDict = {"name": _} +_params_204: ThresholdConfigurationDict = {"type": _} +_params_205: TimeoutConfigurationDict = {} +_params_206: TmpfsDict = {"container_path": _} +_params_207: TotalLocalStorageGBRequestDict = {} +_params_208: TrustedExecutionConfigurationDict = {"isolation_mode": _} +_params_209: UlimitDict = {"name": _} +_params_210: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_211: UpdateCapacityProviderInputDict = {"name": _} +_params_212: UpdateClusterInputDict = {"cluster": _} +_params_213: UpdateClusterSettingsInputDict = {"cluster": _, "settings": _} +_params_214: UpdateContainerAgentInputDict = {"container_instance": _} +_params_215: UpdateContainerInstancesStateInputDict = { + "container_instances": _, + "status": _, +} +_params_216: UpdateDaemonInputDict = { + "daemon_arn": _, + "daemon_task_definition_arn": _, + "capacity_provider_arns": _, +} +_params_217: UpdateExpressGatewayServiceInputDict = {"service_arn": _} +_params_218: UpdateGatewayAlbConfigurationDict = {} +_params_219: UpdateGatewayConfigurationDict = {"host_shared_alb": _} +_params_220: UpdateGatewayInputDict = {"gateway": _} +_params_221: UpdateGatewayNetworkConfigurationDict = {} +_params_222: UpdateManagedInstancesProviderConfigurationDict = { + "infrastructure_role_arn": _, + "instance_launch_template": _, +} +_params_223: UpdateServiceInputDict = {"service": _} +_params_224: UpdateServicePrimaryTaskSetInputDict = { + "cluster": _, + "service": _, + "primary_task_set": _, +} +_params_225: UpdateTaskProtectionInputDict = {"cluster": _, "tasks": _} +_params_226: UpdateTaskSetInputDict = { + "cluster": _, + "service": _, + "task_set": _, + "scale": _, +} +_params_227: VCpuCountRangeRequestDict = {"min": _} +_params_228: VersionInfoDict = {} +_params_229: VolumeDict = {} +_params_230: VolumeFromDict = {} +_params_231: VpcLatticeAdvancedConfigurationDict = {} +_params_232: VpcLatticeConfigurationDict = { + "role_arn": _, + "target_group_arn": _, + "port_name": _, +} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncECSClient) -> None: + pass + await client.associate_gateway_with_cluster(gateway=_, cluster=_) + await client.associate_gateway_with_cluster( + **_request(AssociateGatewayWithClusterInputDict) + ) + await client.associate_gateway_with_cluster( + _request(AssociateGatewayWithClusterInput) + ) + await client.associate_gateway_with_cluster( + _request(AssociateGatewayWithClusterInputDict) + ) + await client.continue_service_deployment(service_deployment_arn=_, hook_id=_) + await client.continue_service_deployment( + **_request(ContinueServiceDeploymentInputDict) + ) + await client.continue_service_deployment(_request(ContinueServiceDeploymentInput)) + await client.continue_service_deployment( + _request(ContinueServiceDeploymentInputDict) + ) + await client.create_capacity_provider(name=_) + await client.create_capacity_provider(**_request(CreateCapacityProviderInputDict)) + await client.create_capacity_provider(_request(CreateCapacityProviderInput)) + await client.create_capacity_provider(_request(CreateCapacityProviderInputDict)) + await client.create_cluster() + await client.create_cluster(**_request(CreateClusterInputDict)) + await client.create_cluster(_request(CreateClusterInput)) + await client.create_cluster(_request(CreateClusterInputDict)) + await client.create_daemon( + daemon_name=_, daemon_task_definition_arn=_, capacity_provider_arns=_ + ) + await client.create_daemon(**_request(CreateDaemonInputDict)) + await client.create_daemon(_request(CreateDaemonInput)) + await client.create_daemon(_request(CreateDaemonInputDict)) + await client.create_express_gateway_service(infrastructure_role_arn=_) + await client.create_express_gateway_service( + **_request(CreateExpressGatewayServiceInputDict) + ) + await client.create_express_gateway_service( + _request(CreateExpressGatewayServiceInput) + ) + await client.create_express_gateway_service( + _request(CreateExpressGatewayServiceInputDict) + ) + await client.create_gateway(name=_, infrastructure_role_arn=_, configuration=_) + await client.create_gateway(**_request(CreateGatewayInputDict)) + await client.create_gateway(_request(CreateGatewayInput)) + await client.create_gateway(_request(CreateGatewayInputDict)) + await client.create_service(service_name=_) + await client.create_service(**_request(CreateServiceInputDict)) + await client.create_service(_request(CreateServiceInput)) + await client.create_service(_request(CreateServiceInputDict)) + await client.create_task_set(service=_, cluster=_, task_definition=_) + await client.create_task_set(**_request(CreateTaskSetInputDict)) + await client.create_task_set(_request(CreateTaskSetInput)) + await client.create_task_set(_request(CreateTaskSetInputDict)) + await client.delete_account_setting(name=_) + await client.delete_account_setting(**_request(DeleteAccountSettingInputDict)) + await client.delete_account_setting(_request(DeleteAccountSettingInput)) + await client.delete_account_setting(_request(DeleteAccountSettingInputDict)) + await client.delete_attributes(attributes=_) + await client.delete_attributes(**_request(DeleteAttributesInputDict)) + await client.delete_attributes(_request(DeleteAttributesInput)) + await client.delete_attributes(_request(DeleteAttributesInputDict)) + await client.delete_capacity_provider(capacity_provider=_) + await client.delete_capacity_provider(**_request(DeleteCapacityProviderInputDict)) + await client.delete_capacity_provider(_request(DeleteCapacityProviderInput)) + await client.delete_capacity_provider(_request(DeleteCapacityProviderInputDict)) + await client.delete_cluster(cluster=_) + await client.delete_cluster(**_request(DeleteClusterInputDict)) + await client.delete_cluster(_request(DeleteClusterInput)) + await client.delete_cluster(_request(DeleteClusterInputDict)) + await client.delete_daemon(daemon_arn=_) + await client.delete_daemon(**_request(DeleteDaemonInputDict)) + await client.delete_daemon(_request(DeleteDaemonInput)) + await client.delete_daemon(_request(DeleteDaemonInputDict)) + await client.delete_daemon_task_definition(daemon_task_definition=_) + await client.delete_daemon_task_definition( + **_request(DeleteDaemonTaskDefinitionInputDict) + ) + await client.delete_daemon_task_definition( + _request(DeleteDaemonTaskDefinitionInput) + ) + await client.delete_daemon_task_definition( + _request(DeleteDaemonTaskDefinitionInputDict) + ) + await client.delete_express_gateway_service(service_arn=_) + await client.delete_express_gateway_service( + **_request(DeleteExpressGatewayServiceInputDict) + ) + await client.delete_express_gateway_service( + _request(DeleteExpressGatewayServiceInput) + ) + await client.delete_express_gateway_service( + _request(DeleteExpressGatewayServiceInputDict) + ) + await client.delete_gateway(gateway=_) + await client.delete_gateway(**_request(DeleteGatewayInputDict)) + await client.delete_gateway(_request(DeleteGatewayInput)) + await client.delete_gateway(_request(DeleteGatewayInputDict)) + await client.delete_service(service=_) + await client.delete_service(**_request(DeleteServiceInputDict)) + await client.delete_service(_request(DeleteServiceInput)) + await client.delete_service(_request(DeleteServiceInputDict)) + await client.delete_task_definitions(task_definitions=_) + await client.delete_task_definitions(**_request(DeleteTaskDefinitionsInputDict)) + await client.delete_task_definitions(_request(DeleteTaskDefinitionsInput)) + await client.delete_task_definitions(_request(DeleteTaskDefinitionsInputDict)) + await client.delete_task_set(cluster=_, service=_, task_set=_) + await client.delete_task_set(**_request(DeleteTaskSetInputDict)) + await client.delete_task_set(_request(DeleteTaskSetInput)) + await client.delete_task_set(_request(DeleteTaskSetInputDict)) + await client.deregister_container_instance(container_instance=_) + await client.deregister_container_instance( + **_request(DeregisterContainerInstanceInputDict) + ) + await client.deregister_container_instance( + _request(DeregisterContainerInstanceInput) + ) + await client.deregister_container_instance( + _request(DeregisterContainerInstanceInputDict) + ) + await client.deregister_task_definition(task_definition=_) + await client.deregister_task_definition( + **_request(DeregisterTaskDefinitionInputDict) + ) + await client.deregister_task_definition(_request(DeregisterTaskDefinitionInput)) + await client.deregister_task_definition(_request(DeregisterTaskDefinitionInputDict)) + await client.describe_capacity_providers() + await client.describe_capacity_providers( + **_request(DescribeCapacityProvidersInputDict) + ) + await client.describe_capacity_providers(_request(DescribeCapacityProvidersInput)) + await client.describe_capacity_providers( + _request(DescribeCapacityProvidersInputDict) + ) + await client.describe_clusters() + await client.describe_clusters(**_request(DescribeClustersInputDict)) + await client.describe_clusters(_request(DescribeClustersInput)) + await client.describe_clusters(_request(DescribeClustersInputDict)) + await client.describe_container_instances(container_instances=_) + await client.describe_container_instances( + **_request(DescribeContainerInstancesInputDict) + ) + await client.describe_container_instances(_request(DescribeContainerInstancesInput)) + await client.describe_container_instances( + _request(DescribeContainerInstancesInputDict) + ) + await client.describe_daemon(daemon_arn=_) + await client.describe_daemon(**_request(DescribeDaemonInputDict)) + await client.describe_daemon(_request(DescribeDaemonInput)) + await client.describe_daemon(_request(DescribeDaemonInputDict)) + await client.describe_daemon_deployments(daemon_deployment_arns=_) + await client.describe_daemon_deployments( + **_request(DescribeDaemonDeploymentsInputDict) + ) + await client.describe_daemon_deployments(_request(DescribeDaemonDeploymentsInput)) + await client.describe_daemon_deployments( + _request(DescribeDaemonDeploymentsInputDict) + ) + await client.describe_daemon_revisions(daemon_revision_arns=_) + await client.describe_daemon_revisions(**_request(DescribeDaemonRevisionsInputDict)) + await client.describe_daemon_revisions(_request(DescribeDaemonRevisionsInput)) + await client.describe_daemon_revisions(_request(DescribeDaemonRevisionsInputDict)) + await client.describe_daemon_task_definition(daemon_task_definition=_) + await client.describe_daemon_task_definition( + **_request(DescribeDaemonTaskDefinitionInputDict) + ) + await client.describe_daemon_task_definition( + _request(DescribeDaemonTaskDefinitionInput) + ) + await client.describe_daemon_task_definition( + _request(DescribeDaemonTaskDefinitionInputDict) + ) + await client.describe_express_gateway_service(service_arn=_) + await client.describe_express_gateway_service( + **_request(DescribeExpressGatewayServiceInputDict) + ) + await client.describe_express_gateway_service( + _request(DescribeExpressGatewayServiceInput) + ) + await client.describe_express_gateway_service( + _request(DescribeExpressGatewayServiceInputDict) + ) + await client.describe_gateway(gateway=_) + await client.describe_gateway(**_request(DescribeGatewayInputDict)) + await client.describe_gateway(_request(DescribeGatewayInput)) + await client.describe_gateway(_request(DescribeGatewayInputDict)) + await client.describe_gateway_resources(gateway=_) + await client.describe_gateway_resources( + **_request(DescribeGatewayResourcesInputDict) + ) + await client.describe_gateway_resources(_request(DescribeGatewayResourcesInput)) + await client.describe_gateway_resources(_request(DescribeGatewayResourcesInputDict)) + await client.describe_gateway_route(gateway_route_arn=_) + await client.describe_gateway_route(**_request(DescribeGatewayRouteInputDict)) + await client.describe_gateway_route(_request(DescribeGatewayRouteInput)) + await client.describe_gateway_route(_request(DescribeGatewayRouteInputDict)) + await client.describe_service_deployments(service_deployment_arns=_) + await client.describe_service_deployments( + **_request(DescribeServiceDeploymentsInputDict) + ) + await client.describe_service_deployments(_request(DescribeServiceDeploymentsInput)) + await client.describe_service_deployments( + _request(DescribeServiceDeploymentsInputDict) + ) + await client.describe_service_revisions(service_revision_arns=_) + await client.describe_service_revisions( + **_request(DescribeServiceRevisionsInputDict) + ) + await client.describe_service_revisions(_request(DescribeServiceRevisionsInput)) + await client.describe_service_revisions(_request(DescribeServiceRevisionsInputDict)) + await client.describe_services(services=_) + await client.describe_services(**_request(DescribeServicesInputDict)) + await client.describe_services(_request(DescribeServicesInput)) + await client.describe_services(_request(DescribeServicesInputDict)) + await client.describe_task_definition(task_definition=_) + await client.describe_task_definition(**_request(DescribeTaskDefinitionInputDict)) + await client.describe_task_definition(_request(DescribeTaskDefinitionInput)) + await client.describe_task_definition(_request(DescribeTaskDefinitionInputDict)) + await client.describe_tasks(tasks=_) + await client.describe_tasks(**_request(DescribeTasksInputDict)) + await client.describe_tasks(_request(DescribeTasksInput)) + await client.describe_tasks(_request(DescribeTasksInputDict)) + await client.describe_task_sets(cluster=_, service=_) + await client.describe_task_sets(**_request(DescribeTaskSetsInputDict)) + await client.describe_task_sets(_request(DescribeTaskSetsInput)) + await client.describe_task_sets(_request(DescribeTaskSetsInputDict)) + await client.disassociate_gateway_from_cluster(gateway=_, cluster=_) + await client.disassociate_gateway_from_cluster( + **_request(DisassociateGatewayFromClusterInputDict) + ) + await client.disassociate_gateway_from_cluster( + _request(DisassociateGatewayFromClusterInput) + ) + await client.disassociate_gateway_from_cluster( + _request(DisassociateGatewayFromClusterInputDict) + ) + await client.discover_poll_endpoint() + await client.discover_poll_endpoint(**_request(DiscoverPollEndpointInputDict)) + await client.discover_poll_endpoint(_request(DiscoverPollEndpointInput)) + await client.discover_poll_endpoint(_request(DiscoverPollEndpointInputDict)) + await client.execute_command(command=_, task=_) + await client.execute_command(**_request(ExecuteCommandInputDict)) + await client.execute_command(_request(ExecuteCommandInput)) + await client.execute_command(_request(ExecuteCommandInputDict)) + await client.get_task_protection(cluster=_) + await client.get_task_protection(**_request(GetTaskProtectionInputDict)) + await client.get_task_protection(_request(GetTaskProtectionInput)) + await client.get_task_protection(_request(GetTaskProtectionInputDict)) + await client.list_account_settings() + await client.list_account_settings(**_request(ListAccountSettingsInputDict)) + await client.list_account_settings(_request(ListAccountSettingsInput)) + await client.list_account_settings(_request(ListAccountSettingsInputDict)) + await client.list_attributes(target_type=_) + await client.list_attributes(**_request(ListAttributesInputDict)) + await client.list_attributes(_request(ListAttributesInput)) + await client.list_attributes(_request(ListAttributesInputDict)) + await client.list_clusters() + await client.list_clusters(**_request(ListClustersInputDict)) + await client.list_clusters(_request(ListClustersInput)) + await client.list_clusters(_request(ListClustersInputDict)) + await client.list_container_instances() + await client.list_container_instances(**_request(ListContainerInstancesInputDict)) + await client.list_container_instances(_request(ListContainerInstancesInput)) + await client.list_container_instances(_request(ListContainerInstancesInputDict)) + await client.list_daemon_deployments(daemon_arn=_) + await client.list_daemon_deployments(**_request(ListDaemonDeploymentsInputDict)) + await client.list_daemon_deployments(_request(ListDaemonDeploymentsInput)) + await client.list_daemon_deployments(_request(ListDaemonDeploymentsInputDict)) + await client.list_daemons() + await client.list_daemons(**_request(ListDaemonsInputDict)) + await client.list_daemons(_request(ListDaemonsInput)) + await client.list_daemons(_request(ListDaemonsInputDict)) + await client.list_daemon_task_definitions() + await client.list_daemon_task_definitions( + **_request(ListDaemonTaskDefinitionsInputDict) + ) + await client.list_daemon_task_definitions(_request(ListDaemonTaskDefinitionsInput)) + await client.list_daemon_task_definitions( + _request(ListDaemonTaskDefinitionsInputDict) + ) + await client.list_gateway_cluster_associations() + await client.list_gateway_cluster_associations( + **_request(ListGatewayClusterAssociationsInputDict) + ) + await client.list_gateway_cluster_associations( + _request(ListGatewayClusterAssociationsInput) + ) + await client.list_gateway_cluster_associations( + _request(ListGatewayClusterAssociationsInputDict) + ) + await client.list_gateway_routes() + await client.list_gateway_routes(**_request(ListGatewayRoutesInputDict)) + await client.list_gateway_routes(_request(ListGatewayRoutesInput)) + await client.list_gateway_routes(_request(ListGatewayRoutesInputDict)) + await client.list_gateways() + await client.list_gateways(**_request(ListGatewaysInputDict)) + await client.list_gateways(_request(ListGatewaysInput)) + await client.list_gateways(_request(ListGatewaysInputDict)) + await client.list_service_deployments(service=_) + await client.list_service_deployments(**_request(ListServiceDeploymentsInputDict)) + await client.list_service_deployments(_request(ListServiceDeploymentsInput)) + await client.list_service_deployments(_request(ListServiceDeploymentsInputDict)) + await client.list_services() + await client.list_services(**_request(ListServicesInputDict)) + await client.list_services(_request(ListServicesInput)) + await client.list_services(_request(ListServicesInputDict)) + await client.list_services_by_namespace(namespace=_) + await client.list_services_by_namespace( + **_request(ListServicesByNamespaceInputDict) + ) + await client.list_services_by_namespace(_request(ListServicesByNamespaceInput)) + await client.list_services_by_namespace(_request(ListServicesByNamespaceInputDict)) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.list_task_definition_families() + await client.list_task_definition_families( + **_request(ListTaskDefinitionFamiliesInputDict) + ) + await client.list_task_definition_families( + _request(ListTaskDefinitionFamiliesInput) + ) + await client.list_task_definition_families( + _request(ListTaskDefinitionFamiliesInputDict) + ) + await client.list_task_definitions() + await client.list_task_definitions(**_request(ListTaskDefinitionsInputDict)) + await client.list_task_definitions(_request(ListTaskDefinitionsInput)) + await client.list_task_definitions(_request(ListTaskDefinitionsInputDict)) + await client.list_tasks() + await client.list_tasks(**_request(ListTasksInputDict)) + await client.list_tasks(_request(ListTasksInput)) + await client.list_tasks(_request(ListTasksInputDict)) + await client.put_account_setting(name=_, value=_) + await client.put_account_setting(**_request(PutAccountSettingInputDict)) + await client.put_account_setting(_request(PutAccountSettingInput)) + await client.put_account_setting(_request(PutAccountSettingInputDict)) + await client.put_account_setting_default(name=_, value=_) + await client.put_account_setting_default( + **_request(PutAccountSettingDefaultInputDict) + ) + await client.put_account_setting_default(_request(PutAccountSettingDefaultInput)) + await client.put_account_setting_default( + _request(PutAccountSettingDefaultInputDict) + ) + await client.put_attributes(attributes=_) + await client.put_attributes(**_request(PutAttributesInputDict)) + await client.put_attributes(_request(PutAttributesInput)) + await client.put_attributes(_request(PutAttributesInputDict)) + await client.put_cluster_capacity_providers( + cluster=_, capacity_providers=_, default_capacity_provider_strategy=_ + ) + await client.put_cluster_capacity_providers( + **_request(PutClusterCapacityProvidersInputDict) + ) + await client.put_cluster_capacity_providers( + _request(PutClusterCapacityProvidersInput) + ) + await client.put_cluster_capacity_providers( + _request(PutClusterCapacityProvidersInputDict) + ) + await client.register_container_instance() + await client.register_container_instance( + **_request(RegisterContainerInstanceInputDict) + ) + await client.register_container_instance(_request(RegisterContainerInstanceInput)) + await client.register_container_instance( + _request(RegisterContainerInstanceInputDict) + ) + await client.register_daemon_task_definition(family=_, container_definitions=_) + await client.register_daemon_task_definition( + **_request(RegisterDaemonTaskDefinitionInputDict) + ) + await client.register_daemon_task_definition( + _request(RegisterDaemonTaskDefinitionInput) + ) + await client.register_daemon_task_definition( + _request(RegisterDaemonTaskDefinitionInputDict) + ) + await client.register_task_definition(family=_, container_definitions=_) + await client.register_task_definition(**_request(RegisterTaskDefinitionInputDict)) + await client.register_task_definition(_request(RegisterTaskDefinitionInput)) + await client.register_task_definition(_request(RegisterTaskDefinitionInputDict)) + await client.run_task(task_definition=_) + await client.run_task(**_request(RunTaskInputDict)) + await client.run_task(_request(RunTaskInput)) + await client.run_task(_request(RunTaskInputDict)) + await client.start_task(container_instances=_, task_definition=_) + await client.start_task(**_request(StartTaskInputDict)) + await client.start_task(_request(StartTaskInput)) + await client.start_task(_request(StartTaskInputDict)) + await client.stop_service_deployment(service_deployment_arn=_) + await client.stop_service_deployment(**_request(StopServiceDeploymentInputDict)) + await client.stop_service_deployment(_request(StopServiceDeploymentInput)) + await client.stop_service_deployment(_request(StopServiceDeploymentInputDict)) + await client.stop_task(task=_) + await client.stop_task(**_request(StopTaskInputDict)) + await client.stop_task(_request(StopTaskInput)) + await client.stop_task(_request(StopTaskInputDict)) + await client.submit_attachment_state_changes(attachments=_) + await client.submit_attachment_state_changes( + **_request(SubmitAttachmentStateChangesInputDict) + ) + await client.submit_attachment_state_changes( + _request(SubmitAttachmentStateChangesInput) + ) + await client.submit_attachment_state_changes( + _request(SubmitAttachmentStateChangesInputDict) + ) + await client.submit_container_state_change() + await client.submit_container_state_change( + **_request(SubmitContainerStateChangeInputDict) + ) + await client.submit_container_state_change( + _request(SubmitContainerStateChangeInput) + ) + await client.submit_container_state_change( + _request(SubmitContainerStateChangeInputDict) + ) + await client.submit_task_state_change() + await client.submit_task_state_change(**_request(SubmitTaskStateChangeInputDict)) + await client.submit_task_state_change(_request(SubmitTaskStateChangeInput)) + await client.submit_task_state_change(_request(SubmitTaskStateChangeInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_capacity_provider(name=_) + await client.update_capacity_provider(**_request(UpdateCapacityProviderInputDict)) + await client.update_capacity_provider(_request(UpdateCapacityProviderInput)) + await client.update_capacity_provider(_request(UpdateCapacityProviderInputDict)) + await client.update_cluster(cluster=_) + await client.update_cluster(**_request(UpdateClusterInputDict)) + await client.update_cluster(_request(UpdateClusterInput)) + await client.update_cluster(_request(UpdateClusterInputDict)) + await client.update_cluster_settings(cluster=_, settings=_) + await client.update_cluster_settings(**_request(UpdateClusterSettingsInputDict)) + await client.update_cluster_settings(_request(UpdateClusterSettingsInput)) + await client.update_cluster_settings(_request(UpdateClusterSettingsInputDict)) + await client.update_container_agent(container_instance=_) + await client.update_container_agent(**_request(UpdateContainerAgentInputDict)) + await client.update_container_agent(_request(UpdateContainerAgentInput)) + await client.update_container_agent(_request(UpdateContainerAgentInputDict)) + await client.update_container_instances_state(container_instances=_, status=_) + await client.update_container_instances_state( + **_request(UpdateContainerInstancesStateInputDict) + ) + await client.update_container_instances_state( + _request(UpdateContainerInstancesStateInput) + ) + await client.update_container_instances_state( + _request(UpdateContainerInstancesStateInputDict) + ) + await client.update_daemon( + daemon_arn=_, daemon_task_definition_arn=_, capacity_provider_arns=_ + ) + await client.update_daemon(**_request(UpdateDaemonInputDict)) + await client.update_daemon(_request(UpdateDaemonInput)) + await client.update_daemon(_request(UpdateDaemonInputDict)) + await client.update_express_gateway_service(service_arn=_) + await client.update_express_gateway_service( + **_request(UpdateExpressGatewayServiceInputDict) + ) + await client.update_express_gateway_service( + _request(UpdateExpressGatewayServiceInput) + ) + await client.update_express_gateway_service( + _request(UpdateExpressGatewayServiceInputDict) + ) + await client.update_gateway(gateway=_) + await client.update_gateway(**_request(UpdateGatewayInputDict)) + await client.update_gateway(_request(UpdateGatewayInput)) + await client.update_gateway(_request(UpdateGatewayInputDict)) + await client.update_service(service=_) + await client.update_service(**_request(UpdateServiceInputDict)) + await client.update_service(_request(UpdateServiceInput)) + await client.update_service(_request(UpdateServiceInputDict)) + await client.update_service_primary_task_set( + cluster=_, service=_, primary_task_set=_ + ) + await client.update_service_primary_task_set( + **_request(UpdateServicePrimaryTaskSetInputDict) + ) + await client.update_service_primary_task_set( + _request(UpdateServicePrimaryTaskSetInput) + ) + await client.update_service_primary_task_set( + _request(UpdateServicePrimaryTaskSetInputDict) + ) + await client.update_task_protection(cluster=_, tasks=_) + await client.update_task_protection(**_request(UpdateTaskProtectionInputDict)) + await client.update_task_protection(_request(UpdateTaskProtectionInput)) + await client.update_task_protection(_request(UpdateTaskProtectionInputDict)) + await client.update_task_set(cluster=_, service=_, task_set=_, scale=_) + await client.update_task_set(**_request(UpdateTaskSetInputDict)) + await client.update_task_set(_request(UpdateTaskSetInput)) + await client.update_task_set(_request(UpdateTaskSetInputDict)) + + +def check_sync_calls(client: ECSClient) -> None: + pass + client.associate_gateway_with_cluster(gateway=_, cluster=_) + client.associate_gateway_with_cluster( + **_request(AssociateGatewayWithClusterInputDict) + ) + client.associate_gateway_with_cluster(_request(AssociateGatewayWithClusterInput)) + client.associate_gateway_with_cluster( + _request(AssociateGatewayWithClusterInputDict) + ) + client.continue_service_deployment(service_deployment_arn=_, hook_id=_) + client.continue_service_deployment(**_request(ContinueServiceDeploymentInputDict)) + client.continue_service_deployment(_request(ContinueServiceDeploymentInput)) + client.continue_service_deployment(_request(ContinueServiceDeploymentInputDict)) + client.create_capacity_provider(name=_) + client.create_capacity_provider(**_request(CreateCapacityProviderInputDict)) + client.create_capacity_provider(_request(CreateCapacityProviderInput)) + client.create_capacity_provider(_request(CreateCapacityProviderInputDict)) + client.create_cluster() + client.create_cluster(**_request(CreateClusterInputDict)) + client.create_cluster(_request(CreateClusterInput)) + client.create_cluster(_request(CreateClusterInputDict)) + client.create_daemon( + daemon_name=_, daemon_task_definition_arn=_, capacity_provider_arns=_ + ) + client.create_daemon(**_request(CreateDaemonInputDict)) + client.create_daemon(_request(CreateDaemonInput)) + client.create_daemon(_request(CreateDaemonInputDict)) + client.create_express_gateway_service(infrastructure_role_arn=_) + client.create_express_gateway_service( + **_request(CreateExpressGatewayServiceInputDict) + ) + client.create_express_gateway_service(_request(CreateExpressGatewayServiceInput)) + client.create_express_gateway_service( + _request(CreateExpressGatewayServiceInputDict) + ) + client.create_gateway(name=_, infrastructure_role_arn=_, configuration=_) + client.create_gateway(**_request(CreateGatewayInputDict)) + client.create_gateway(_request(CreateGatewayInput)) + client.create_gateway(_request(CreateGatewayInputDict)) + client.create_service(service_name=_) + client.create_service(**_request(CreateServiceInputDict)) + client.create_service(_request(CreateServiceInput)) + client.create_service(_request(CreateServiceInputDict)) + client.create_task_set(service=_, cluster=_, task_definition=_) + client.create_task_set(**_request(CreateTaskSetInputDict)) + client.create_task_set(_request(CreateTaskSetInput)) + client.create_task_set(_request(CreateTaskSetInputDict)) + client.delete_account_setting(name=_) + client.delete_account_setting(**_request(DeleteAccountSettingInputDict)) + client.delete_account_setting(_request(DeleteAccountSettingInput)) + client.delete_account_setting(_request(DeleteAccountSettingInputDict)) + client.delete_attributes(attributes=_) + client.delete_attributes(**_request(DeleteAttributesInputDict)) + client.delete_attributes(_request(DeleteAttributesInput)) + client.delete_attributes(_request(DeleteAttributesInputDict)) + client.delete_capacity_provider(capacity_provider=_) + client.delete_capacity_provider(**_request(DeleteCapacityProviderInputDict)) + client.delete_capacity_provider(_request(DeleteCapacityProviderInput)) + client.delete_capacity_provider(_request(DeleteCapacityProviderInputDict)) + client.delete_cluster(cluster=_) + client.delete_cluster(**_request(DeleteClusterInputDict)) + client.delete_cluster(_request(DeleteClusterInput)) + client.delete_cluster(_request(DeleteClusterInputDict)) + client.delete_daemon(daemon_arn=_) + client.delete_daemon(**_request(DeleteDaemonInputDict)) + client.delete_daemon(_request(DeleteDaemonInput)) + client.delete_daemon(_request(DeleteDaemonInputDict)) + client.delete_daemon_task_definition(daemon_task_definition=_) + client.delete_daemon_task_definition( + **_request(DeleteDaemonTaskDefinitionInputDict) + ) + client.delete_daemon_task_definition(_request(DeleteDaemonTaskDefinitionInput)) + client.delete_daemon_task_definition(_request(DeleteDaemonTaskDefinitionInputDict)) + client.delete_express_gateway_service(service_arn=_) + client.delete_express_gateway_service( + **_request(DeleteExpressGatewayServiceInputDict) + ) + client.delete_express_gateway_service(_request(DeleteExpressGatewayServiceInput)) + client.delete_express_gateway_service( + _request(DeleteExpressGatewayServiceInputDict) + ) + client.delete_gateway(gateway=_) + client.delete_gateway(**_request(DeleteGatewayInputDict)) + client.delete_gateway(_request(DeleteGatewayInput)) + client.delete_gateway(_request(DeleteGatewayInputDict)) + client.delete_service(service=_) + client.delete_service(**_request(DeleteServiceInputDict)) + client.delete_service(_request(DeleteServiceInput)) + client.delete_service(_request(DeleteServiceInputDict)) + client.delete_task_definitions(task_definitions=_) + client.delete_task_definitions(**_request(DeleteTaskDefinitionsInputDict)) + client.delete_task_definitions(_request(DeleteTaskDefinitionsInput)) + client.delete_task_definitions(_request(DeleteTaskDefinitionsInputDict)) + client.delete_task_set(cluster=_, service=_, task_set=_) + client.delete_task_set(**_request(DeleteTaskSetInputDict)) + client.delete_task_set(_request(DeleteTaskSetInput)) + client.delete_task_set(_request(DeleteTaskSetInputDict)) + client.deregister_container_instance(container_instance=_) + client.deregister_container_instance( + **_request(DeregisterContainerInstanceInputDict) + ) + client.deregister_container_instance(_request(DeregisterContainerInstanceInput)) + client.deregister_container_instance(_request(DeregisterContainerInstanceInputDict)) + client.deregister_task_definition(task_definition=_) + client.deregister_task_definition(**_request(DeregisterTaskDefinitionInputDict)) + client.deregister_task_definition(_request(DeregisterTaskDefinitionInput)) + client.deregister_task_definition(_request(DeregisterTaskDefinitionInputDict)) + client.describe_capacity_providers() + client.describe_capacity_providers(**_request(DescribeCapacityProvidersInputDict)) + client.describe_capacity_providers(_request(DescribeCapacityProvidersInput)) + client.describe_capacity_providers(_request(DescribeCapacityProvidersInputDict)) + client.describe_clusters() + client.describe_clusters(**_request(DescribeClustersInputDict)) + client.describe_clusters(_request(DescribeClustersInput)) + client.describe_clusters(_request(DescribeClustersInputDict)) + client.describe_container_instances(container_instances=_) + client.describe_container_instances(**_request(DescribeContainerInstancesInputDict)) + client.describe_container_instances(_request(DescribeContainerInstancesInput)) + client.describe_container_instances(_request(DescribeContainerInstancesInputDict)) + client.describe_daemon(daemon_arn=_) + client.describe_daemon(**_request(DescribeDaemonInputDict)) + client.describe_daemon(_request(DescribeDaemonInput)) + client.describe_daemon(_request(DescribeDaemonInputDict)) + client.describe_daemon_deployments(daemon_deployment_arns=_) + client.describe_daemon_deployments(**_request(DescribeDaemonDeploymentsInputDict)) + client.describe_daemon_deployments(_request(DescribeDaemonDeploymentsInput)) + client.describe_daemon_deployments(_request(DescribeDaemonDeploymentsInputDict)) + client.describe_daemon_revisions(daemon_revision_arns=_) + client.describe_daemon_revisions(**_request(DescribeDaemonRevisionsInputDict)) + client.describe_daemon_revisions(_request(DescribeDaemonRevisionsInput)) + client.describe_daemon_revisions(_request(DescribeDaemonRevisionsInputDict)) + client.describe_daemon_task_definition(daemon_task_definition=_) + client.describe_daemon_task_definition( + **_request(DescribeDaemonTaskDefinitionInputDict) + ) + client.describe_daemon_task_definition(_request(DescribeDaemonTaskDefinitionInput)) + client.describe_daemon_task_definition( + _request(DescribeDaemonTaskDefinitionInputDict) + ) + client.describe_express_gateway_service(service_arn=_) + client.describe_express_gateway_service( + **_request(DescribeExpressGatewayServiceInputDict) + ) + client.describe_express_gateway_service( + _request(DescribeExpressGatewayServiceInput) + ) + client.describe_express_gateway_service( + _request(DescribeExpressGatewayServiceInputDict) + ) + client.describe_gateway(gateway=_) + client.describe_gateway(**_request(DescribeGatewayInputDict)) + client.describe_gateway(_request(DescribeGatewayInput)) + client.describe_gateway(_request(DescribeGatewayInputDict)) + client.describe_gateway_resources(gateway=_) + client.describe_gateway_resources(**_request(DescribeGatewayResourcesInputDict)) + client.describe_gateway_resources(_request(DescribeGatewayResourcesInput)) + client.describe_gateway_resources(_request(DescribeGatewayResourcesInputDict)) + client.describe_gateway_route(gateway_route_arn=_) + client.describe_gateway_route(**_request(DescribeGatewayRouteInputDict)) + client.describe_gateway_route(_request(DescribeGatewayRouteInput)) + client.describe_gateway_route(_request(DescribeGatewayRouteInputDict)) + client.describe_service_deployments(service_deployment_arns=_) + client.describe_service_deployments(**_request(DescribeServiceDeploymentsInputDict)) + client.describe_service_deployments(_request(DescribeServiceDeploymentsInput)) + client.describe_service_deployments(_request(DescribeServiceDeploymentsInputDict)) + client.describe_service_revisions(service_revision_arns=_) + client.describe_service_revisions(**_request(DescribeServiceRevisionsInputDict)) + client.describe_service_revisions(_request(DescribeServiceRevisionsInput)) + client.describe_service_revisions(_request(DescribeServiceRevisionsInputDict)) + client.describe_services(services=_) + client.describe_services(**_request(DescribeServicesInputDict)) + client.describe_services(_request(DescribeServicesInput)) + client.describe_services(_request(DescribeServicesInputDict)) + client.describe_task_definition(task_definition=_) + client.describe_task_definition(**_request(DescribeTaskDefinitionInputDict)) + client.describe_task_definition(_request(DescribeTaskDefinitionInput)) + client.describe_task_definition(_request(DescribeTaskDefinitionInputDict)) + client.describe_tasks(tasks=_) + client.describe_tasks(**_request(DescribeTasksInputDict)) + client.describe_tasks(_request(DescribeTasksInput)) + client.describe_tasks(_request(DescribeTasksInputDict)) + client.describe_task_sets(cluster=_, service=_) + client.describe_task_sets(**_request(DescribeTaskSetsInputDict)) + client.describe_task_sets(_request(DescribeTaskSetsInput)) + client.describe_task_sets(_request(DescribeTaskSetsInputDict)) + client.disassociate_gateway_from_cluster(gateway=_, cluster=_) + client.disassociate_gateway_from_cluster( + **_request(DisassociateGatewayFromClusterInputDict) + ) + client.disassociate_gateway_from_cluster( + _request(DisassociateGatewayFromClusterInput) + ) + client.disassociate_gateway_from_cluster( + _request(DisassociateGatewayFromClusterInputDict) + ) + client.discover_poll_endpoint() + client.discover_poll_endpoint(**_request(DiscoverPollEndpointInputDict)) + client.discover_poll_endpoint(_request(DiscoverPollEndpointInput)) + client.discover_poll_endpoint(_request(DiscoverPollEndpointInputDict)) + client.execute_command(command=_, task=_) + client.execute_command(**_request(ExecuteCommandInputDict)) + client.execute_command(_request(ExecuteCommandInput)) + client.execute_command(_request(ExecuteCommandInputDict)) + client.get_task_protection(cluster=_) + client.get_task_protection(**_request(GetTaskProtectionInputDict)) + client.get_task_protection(_request(GetTaskProtectionInput)) + client.get_task_protection(_request(GetTaskProtectionInputDict)) + client.list_account_settings() + client.list_account_settings(**_request(ListAccountSettingsInputDict)) + client.list_account_settings(_request(ListAccountSettingsInput)) + client.list_account_settings(_request(ListAccountSettingsInputDict)) + client.list_attributes(target_type=_) + client.list_attributes(**_request(ListAttributesInputDict)) + client.list_attributes(_request(ListAttributesInput)) + client.list_attributes(_request(ListAttributesInputDict)) + client.list_clusters() + client.list_clusters(**_request(ListClustersInputDict)) + client.list_clusters(_request(ListClustersInput)) + client.list_clusters(_request(ListClustersInputDict)) + client.list_container_instances() + client.list_container_instances(**_request(ListContainerInstancesInputDict)) + client.list_container_instances(_request(ListContainerInstancesInput)) + client.list_container_instances(_request(ListContainerInstancesInputDict)) + client.list_daemon_deployments(daemon_arn=_) + client.list_daemon_deployments(**_request(ListDaemonDeploymentsInputDict)) + client.list_daemon_deployments(_request(ListDaemonDeploymentsInput)) + client.list_daemon_deployments(_request(ListDaemonDeploymentsInputDict)) + client.list_daemons() + client.list_daemons(**_request(ListDaemonsInputDict)) + client.list_daemons(_request(ListDaemonsInput)) + client.list_daemons(_request(ListDaemonsInputDict)) + client.list_daemon_task_definitions() + client.list_daemon_task_definitions(**_request(ListDaemonTaskDefinitionsInputDict)) + client.list_daemon_task_definitions(_request(ListDaemonTaskDefinitionsInput)) + client.list_daemon_task_definitions(_request(ListDaemonTaskDefinitionsInputDict)) + client.list_gateway_cluster_associations() + client.list_gateway_cluster_associations( + **_request(ListGatewayClusterAssociationsInputDict) + ) + client.list_gateway_cluster_associations( + _request(ListGatewayClusterAssociationsInput) + ) + client.list_gateway_cluster_associations( + _request(ListGatewayClusterAssociationsInputDict) + ) + client.list_gateway_routes() + client.list_gateway_routes(**_request(ListGatewayRoutesInputDict)) + client.list_gateway_routes(_request(ListGatewayRoutesInput)) + client.list_gateway_routes(_request(ListGatewayRoutesInputDict)) + client.list_gateways() + client.list_gateways(**_request(ListGatewaysInputDict)) + client.list_gateways(_request(ListGatewaysInput)) + client.list_gateways(_request(ListGatewaysInputDict)) + client.list_service_deployments(service=_) + client.list_service_deployments(**_request(ListServiceDeploymentsInputDict)) + client.list_service_deployments(_request(ListServiceDeploymentsInput)) + client.list_service_deployments(_request(ListServiceDeploymentsInputDict)) + client.list_services() + client.list_services(**_request(ListServicesInputDict)) + client.list_services(_request(ListServicesInput)) + client.list_services(_request(ListServicesInputDict)) + client.list_services_by_namespace(namespace=_) + client.list_services_by_namespace(**_request(ListServicesByNamespaceInputDict)) + client.list_services_by_namespace(_request(ListServicesByNamespaceInput)) + client.list_services_by_namespace(_request(ListServicesByNamespaceInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.list_task_definition_families() + client.list_task_definition_families( + **_request(ListTaskDefinitionFamiliesInputDict) + ) + client.list_task_definition_families(_request(ListTaskDefinitionFamiliesInput)) + client.list_task_definition_families(_request(ListTaskDefinitionFamiliesInputDict)) + client.list_task_definitions() + client.list_task_definitions(**_request(ListTaskDefinitionsInputDict)) + client.list_task_definitions(_request(ListTaskDefinitionsInput)) + client.list_task_definitions(_request(ListTaskDefinitionsInputDict)) + client.list_tasks() + client.list_tasks(**_request(ListTasksInputDict)) + client.list_tasks(_request(ListTasksInput)) + client.list_tasks(_request(ListTasksInputDict)) + client.put_account_setting(name=_, value=_) + client.put_account_setting(**_request(PutAccountSettingInputDict)) + client.put_account_setting(_request(PutAccountSettingInput)) + client.put_account_setting(_request(PutAccountSettingInputDict)) + client.put_account_setting_default(name=_, value=_) + client.put_account_setting_default(**_request(PutAccountSettingDefaultInputDict)) + client.put_account_setting_default(_request(PutAccountSettingDefaultInput)) + client.put_account_setting_default(_request(PutAccountSettingDefaultInputDict)) + client.put_attributes(attributes=_) + client.put_attributes(**_request(PutAttributesInputDict)) + client.put_attributes(_request(PutAttributesInput)) + client.put_attributes(_request(PutAttributesInputDict)) + client.put_cluster_capacity_providers( + cluster=_, capacity_providers=_, default_capacity_provider_strategy=_ + ) + client.put_cluster_capacity_providers( + **_request(PutClusterCapacityProvidersInputDict) + ) + client.put_cluster_capacity_providers(_request(PutClusterCapacityProvidersInput)) + client.put_cluster_capacity_providers( + _request(PutClusterCapacityProvidersInputDict) + ) + client.register_container_instance() + client.register_container_instance(**_request(RegisterContainerInstanceInputDict)) + client.register_container_instance(_request(RegisterContainerInstanceInput)) + client.register_container_instance(_request(RegisterContainerInstanceInputDict)) + client.register_daemon_task_definition(family=_, container_definitions=_) + client.register_daemon_task_definition( + **_request(RegisterDaemonTaskDefinitionInputDict) + ) + client.register_daemon_task_definition(_request(RegisterDaemonTaskDefinitionInput)) + client.register_daemon_task_definition( + _request(RegisterDaemonTaskDefinitionInputDict) + ) + client.register_task_definition(family=_, container_definitions=_) + client.register_task_definition(**_request(RegisterTaskDefinitionInputDict)) + client.register_task_definition(_request(RegisterTaskDefinitionInput)) + client.register_task_definition(_request(RegisterTaskDefinitionInputDict)) + client.run_task(task_definition=_) + client.run_task(**_request(RunTaskInputDict)) + client.run_task(_request(RunTaskInput)) + client.run_task(_request(RunTaskInputDict)) + client.start_task(container_instances=_, task_definition=_) + client.start_task(**_request(StartTaskInputDict)) + client.start_task(_request(StartTaskInput)) + client.start_task(_request(StartTaskInputDict)) + client.stop_service_deployment(service_deployment_arn=_) + client.stop_service_deployment(**_request(StopServiceDeploymentInputDict)) + client.stop_service_deployment(_request(StopServiceDeploymentInput)) + client.stop_service_deployment(_request(StopServiceDeploymentInputDict)) + client.stop_task(task=_) + client.stop_task(**_request(StopTaskInputDict)) + client.stop_task(_request(StopTaskInput)) + client.stop_task(_request(StopTaskInputDict)) + client.submit_attachment_state_changes(attachments=_) + client.submit_attachment_state_changes( + **_request(SubmitAttachmentStateChangesInputDict) + ) + client.submit_attachment_state_changes(_request(SubmitAttachmentStateChangesInput)) + client.submit_attachment_state_changes( + _request(SubmitAttachmentStateChangesInputDict) + ) + client.submit_container_state_change() + client.submit_container_state_change( + **_request(SubmitContainerStateChangeInputDict) + ) + client.submit_container_state_change(_request(SubmitContainerStateChangeInput)) + client.submit_container_state_change(_request(SubmitContainerStateChangeInputDict)) + client.submit_task_state_change() + client.submit_task_state_change(**_request(SubmitTaskStateChangeInputDict)) + client.submit_task_state_change(_request(SubmitTaskStateChangeInput)) + client.submit_task_state_change(_request(SubmitTaskStateChangeInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_capacity_provider(name=_) + client.update_capacity_provider(**_request(UpdateCapacityProviderInputDict)) + client.update_capacity_provider(_request(UpdateCapacityProviderInput)) + client.update_capacity_provider(_request(UpdateCapacityProviderInputDict)) + client.update_cluster(cluster=_) + client.update_cluster(**_request(UpdateClusterInputDict)) + client.update_cluster(_request(UpdateClusterInput)) + client.update_cluster(_request(UpdateClusterInputDict)) + client.update_cluster_settings(cluster=_, settings=_) + client.update_cluster_settings(**_request(UpdateClusterSettingsInputDict)) + client.update_cluster_settings(_request(UpdateClusterSettingsInput)) + client.update_cluster_settings(_request(UpdateClusterSettingsInputDict)) + client.update_container_agent(container_instance=_) + client.update_container_agent(**_request(UpdateContainerAgentInputDict)) + client.update_container_agent(_request(UpdateContainerAgentInput)) + client.update_container_agent(_request(UpdateContainerAgentInputDict)) + client.update_container_instances_state(container_instances=_, status=_) + client.update_container_instances_state( + **_request(UpdateContainerInstancesStateInputDict) + ) + client.update_container_instances_state( + _request(UpdateContainerInstancesStateInput) + ) + client.update_container_instances_state( + _request(UpdateContainerInstancesStateInputDict) + ) + client.update_daemon( + daemon_arn=_, daemon_task_definition_arn=_, capacity_provider_arns=_ + ) + client.update_daemon(**_request(UpdateDaemonInputDict)) + client.update_daemon(_request(UpdateDaemonInput)) + client.update_daemon(_request(UpdateDaemonInputDict)) + client.update_express_gateway_service(service_arn=_) + client.update_express_gateway_service( + **_request(UpdateExpressGatewayServiceInputDict) + ) + client.update_express_gateway_service(_request(UpdateExpressGatewayServiceInput)) + client.update_express_gateway_service( + _request(UpdateExpressGatewayServiceInputDict) + ) + client.update_gateway(gateway=_) + client.update_gateway(**_request(UpdateGatewayInputDict)) + client.update_gateway(_request(UpdateGatewayInput)) + client.update_gateway(_request(UpdateGatewayInputDict)) + client.update_service(service=_) + client.update_service(**_request(UpdateServiceInputDict)) + client.update_service(_request(UpdateServiceInput)) + client.update_service(_request(UpdateServiceInputDict)) + client.update_service_primary_task_set(cluster=_, service=_, primary_task_set=_) + client.update_service_primary_task_set( + **_request(UpdateServicePrimaryTaskSetInputDict) + ) + client.update_service_primary_task_set(_request(UpdateServicePrimaryTaskSetInput)) + client.update_service_primary_task_set( + _request(UpdateServicePrimaryTaskSetInputDict) + ) + client.update_task_protection(cluster=_, tasks=_) + client.update_task_protection(**_request(UpdateTaskProtectionInputDict)) + client.update_task_protection(_request(UpdateTaskProtectionInput)) + client.update_task_protection(_request(UpdateTaskProtectionInputDict)) + client.update_task_set(cluster=_, service=_, task_set=_, scale=_) + client.update_task_set(**_request(UpdateTaskSetInputDict)) + client.update_task_set(_request(UpdateTaskSetInput)) + client.update_task_set(_request(UpdateTaskSetInputDict)) diff --git a/clients/aws-sdk-guardduty/pyproject.toml b/clients/aws-sdk-guardduty/pyproject.toml index 74af2cb0f..7a422f281 100644 --- a/clients/aws-sdk-guardduty/pyproject.toml +++ b/clients/aws-sdk-guardduty/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_0.pyi b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_0.pyi index 37d162d65..e883bd495 100644 --- a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_0.pyi +++ b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_0.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence as _collections_abc_Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -12,15 +14,18 @@ from ..models import ( Investigation, KubernetesApiCallAction, KubernetesConfiguration, + KubernetesConfigurationDict, KubernetesConfigurationResult, KubernetesDataSourceFreeTrial, KubernetesPermissionCheckedDetails, KubernetesRoleBindingDetails, KubernetesRoleDetails, MalwareProtectionConfiguration, + MalwareProtectionConfigurationDict, MalwareProtectionConfigurationResult, MalwareProtectionDataSourceFreeTrial, MalwareProtectionPlanActions, + MalwareProtectionPlanActionsDict, MalwareProtectionPlanStatusReason, NetworkConnectionAction, Observations, @@ -36,17 +41,19 @@ from ..models import ( ResourceStatistics, RuleDetail, S3LogsConfiguration, + S3LogsConfigurationDict, S3LogsConfigurationResult, Scan, ScanDetections, SecurityContext, SecurityGroup, - Sequence, + Sequence as _aws_sdk_guardduty_models_Sequence, Service, ServiceError, Session, SeverityStatistics, SortCriteria, + SortCriteriaDict, Tag, ThreatIntelligenceDetail, UnprocessedAccount, @@ -75,6 +82,22 @@ class AcceptAdministratorInvitationInput(_SerdeShape): member account. """ +class AcceptAdministratorInvitationInputDict(TypedDict, total=False): + """Dictionary form of `AcceptAdministratorInvitationInput`.""" + + detector_id: Required[str] + """The unique ID of the detector of the GuardDuty member account.""" + administrator_id: Required[str] + """ + The account ID of the GuardDuty administrator account whose invitation + you're accepting. + """ + invitation_id: Required[str] + """ + The value that is used to validate the administrator account to the + member account. + """ + @dataclass(kw_only=True) class AcceptAdministratorInvitationOutput(_SerdeShape): """Dataclass for AcceptAdministratorInvitationOutput structure.""" @@ -111,6 +134,29 @@ class AcceptInvitationInput(_SerdeShape): member account. """ +class AcceptInvitationInputDict(TypedDict, total=False): + """Dictionary form of `AcceptInvitationInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty member account. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + master_id: Required[str] + """ + The account ID of the GuardDuty administrator account whose invitation + you're accepting. + """ + invitation_id: Required[str] + """ + The value that is used to validate the administrator account to the + member account. + """ + @dataclass(kw_only=True) class AcceptInvitationOutput(_SerdeShape): """Dataclass for AcceptInvitationOutput structure.""" @@ -227,6 +273,38 @@ class AccountDetail(_SerdeShape): - The domain name must contain at least one dot. """ +class AccountDetailDict(TypedDict, total=False): + """Dictionary form of `AccountDetail`.""" + + account_id: Required[str] + """The member account ID.""" + email: Required[str] + """ + The email address of the member account. The following list includes the + rules for a valid email address: + + - The email address must be a minimum of 6 and a maximum of 64 + characters long. + + - All characters must be 7-bit ASCII characters. + + - There must be one and only one @ symbol, which separates the local + name from the domain name. + + - The local name can't contain any of the following characters: + + whitespace, \" ' ( ) < > [ ] : ' , \\ | % & + + - The local name can't begin with a dot (.). + + - The domain name can consist of only the characters [a-z], [A-Z], + [0-9], hyphen (-), or dot (.). + + - The domain name can't begin or end with a dot (.) or hyphen (-). + + - The domain name must contain at least one dot. + """ + @dataclass(kw_only=True) class AccountFreeTrialInfo(_SerdeShape): """ @@ -496,6 +574,22 @@ class ArchiveFindingsInput(_SerdeShape): finding_ids: list[str] | None = ... """The IDs of the findings that you want to archive.""" +class ArchiveFindingsInputDict(TypedDict, total=False): + """Dictionary form of `ArchiveFindingsInput`.""" + + detector_id: Required[str] + """ + The ID of the detector that specifies the GuardDuty service whose + findings you want to archive. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + finding_ids: Required[_collections_abc_Sequence[str]] + """The IDs of the findings that you want to archive.""" + @dataclass(kw_only=True) class ArchiveFindingsOutput(_SerdeShape): """Dataclass for ArchiveFindingsOutput structure.""" @@ -902,6 +996,96 @@ class Condition(_SerdeShape): update-filter APIs. """ +class ConditionDict(TypedDict, total=False): + """Dictionary form of `Condition`.""" + + eq: _collections_abc_Sequence[str] | None + """ + Represents the *equal* condition to be applied to a single field when + querying for findings. + + Max values: 50 + """ + neq: _collections_abc_Sequence[str] | None + """ + Represents the *not equal* condition to be applied to a single field + when querying for findings. + + Max values: 50 + """ + gt: int | None + """ + Represents a *greater than* condition to be applied to a single field + when querying for findings. + """ + gte: int | None + """ + Represents a *greater than or equal* condition to be applied to a single + field when querying for findings. + """ + lt: int | None + """ + Represents a *less than* condition to be applied to a single field when + querying for findings. + """ + lte: int | None + """ + Represents a *less than or equal* condition to be applied to a single + field when querying for findings. + """ + equals: _collections_abc_Sequence[str] | None + """ + Represents an *equal* condition to be applied to a single field when + querying for findings. + + Max values: 50 + """ + not_equals: _collections_abc_Sequence[str] | None + """ + Represents a *not equal* condition to be applied to a single field when + querying for findings. + + Max values: 50 + """ + greater_than: int | None + """ + Represents a *greater than* condition to be applied to a single field + when querying for findings. + """ + greater_than_or_equal: int | None + """ + Represents a *greater than or equal* condition to be applied to a single + field when querying for findings. + """ + less_than: int | None + """ + Represents a *less than* condition to be applied to a single field when + querying for findings. + """ + less_than_or_equal: int | None + """ + Represents a *less than or equal* condition to be applied to a single + field when querying for findings. + """ + matches: _collections_abc_Sequence[str] | None + """ + Represents the *match* condition to be applied to a single field when + querying for findings. + + Note: + The *matches* condition is available only for create-filter and + update-filter APIs. + """ + not_matches: _collections_abc_Sequence[str] | None + """ + Represents the *not match* condition to be applied to a single field + when querying for findings. + + Note: + The *not-matches* condition is available only for create-filter and + update-filter APIs. + """ + class Confidence(UnknownEnumMixin, StrEnum): UNKNOWN = "Unknown" LOW = "Low" @@ -1029,6 +1213,17 @@ class ContinuousScanDetails(_SerdeShape): end_time: datetime """The timestamp representing the end of the time range to scan.""" +class ContinuousScanDetailsDict(TypedDict, total=False): + """Dictionary form of `ContinuousScanDetails`.""" + + start_time: datetime | None + """ + The timestamp representing the start of the time range to scan. Reserved + for internal use. + """ + end_time: Required[datetime] + """The timestamp representing the end of the time range to scan.""" + @dataclass(kw_only=True) class Country(_SerdeShape): """ @@ -1136,6 +1331,20 @@ class CoverageFilterCondition(_SerdeShape): retrieving the coverage details. """ +class CoverageFilterConditionDict(TypedDict, total=False): + """Dictionary form of `CoverageFilterCondition`.""" + + equals: _collections_abc_Sequence[str] | None + """ + Represents an equal condition that is applied to a single field while + retrieving the coverage details. + """ + not_equals: _collections_abc_Sequence[str] | None + """ + Represents a not equal condition that is applied to a single field while + retrieving the coverage details. + """ + @dataclass(kw_only=True) class CoverageFilterCriteria(_SerdeShape): """Represents the criteria used in the filter.""" @@ -1146,6 +1355,18 @@ class CoverageFilterCriteria(_SerdeShape): of the operation. """ +class CoverageFilterCriteriaDict(TypedDict, total=False): + """Dictionary form of `CoverageFilterCriteria`.""" + + filter_criterion: ( + _collections_abc_Sequence[CoverageFilterCriterion | CoverageFilterCriterionDict] + | None + ) + """ + Represents a condition that when matched will be added to the response + of the operation. + """ + @dataclass(kw_only=True) class CoverageFilterCriterion(_SerdeShape): """ @@ -1164,6 +1385,20 @@ class CoverageFilterCriterion(_SerdeShape): filter_condition: CoverageFilterCondition | None = ... """Contains information about the condition.""" +class CoverageFilterCriterionDict(TypedDict, total=False): + """Dictionary form of `CoverageFilterCriterion`.""" + + criterion_key: str | None + """ + An enum value representing possible filter fields. + + Note: + Replace the enum value `CLUSTER_NAME` with `EKS_CLUSTER_NAME`. + `CLUSTER_NAME` has been deprecated. + """ + filter_condition: CoverageFilterCondition | CoverageFilterConditionDict | None + """Contains information about the condition.""" + class CoverageFilterCriterionKey(UnknownEnumMixin, StrEnum): ACCOUNT_ID = "ACCOUNT_ID" RESOURCE_TYPE = "RESOURCE_TYPE" @@ -1236,6 +1471,20 @@ class CoverageSortCriteria(_SerdeShape): order_by: str | None = ... """The order in which the sorted findings are to be displayed.""" +class CoverageSortCriteriaDict(TypedDict, total=False): + """Dictionary form of `CoverageSortCriteria`.""" + + attribute_name: str | None + """ + Represents the field name used to sort the coverage details. + + Note: + Replace the enum value `CLUSTER_NAME` with `EKS_CLUSTER_NAME`. + `CLUSTER_NAME` has been deprecated. + """ + order_by: str | None + """The order in which the sorted findings are to be displayed.""" + class CoverageSortKey(UnknownEnumMixin, StrEnum): ACCOUNT_ID = "ACCOUNT_ID" COVERAGE_STATUS = "COVERAGE_STATUS" @@ -1291,6 +1540,26 @@ class CreateCustomDetectionRuleAssociationInput(_SerdeShape): resource. """ +class CreateCustomDetectionRuleAssociationInputDict(TypedDict, total=False): + """Dictionary form of `CreateCustomDetectionRuleAssociationInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + mode: Required[str] + """The rule execution mode. Valid values: `LIVE` | `DRY_RUN`.""" + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. Maximum 64 characters. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """ + The tags to be added to the new custom detection rule association + resource. + """ + @dataclass(kw_only=True) class CreateCustomDetectionRuleAssociationOutput(_SerdeShape): """Dataclass for CreateCustomDetectionRuleAssociationOutput structure.""" @@ -1334,6 +1603,34 @@ class CreateCustomDetectionRuleOrgConfigurationInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateCustomDetectionRuleOrgConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `CreateCustomDetectionRuleOrgConfigurationInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + mode: Required[str] + """ + The execution mode of the organization configuration. Valid values: + `LIVE` | `DRY_RUN`. + """ + include_account_ids: _collections_abc_Sequence[str] | None + """ + The account IDs to include in the organization configuration. Mutually + exclusive with `ExcludeAccountIds`. + """ + exclude_account_ids: _collections_abc_Sequence[str] | None + """ + The account IDs to exclude from the organization configuration. Mutually + exclusive with `IncludeAccountIds`. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure that the operation + completes no more than one time. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateCustomDetectionRuleOrgConfigurationOutput(_SerdeShape): """Dataclass for CreateCustomDetectionRuleOrgConfigurationOutput structure.""" @@ -1374,6 +1671,38 @@ class CreateDetectorInput(_SerdeShape): features: list[DetectorFeatureConfiguration] | None = ... """A list of features that will be configured for the detector.""" +class CreateDetectorInputDict(TypedDict, total=False): + """Dictionary form of `CreateDetectorInput`.""" + + enable: Required[bool] + """A Boolean value that specifies whether the detector is to be enabled.""" + client_token: str | None + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. + """ + finding_publishing_frequency: str | None + """A value that specifies how frequently updated findings are exported.""" + data_sources: DataSourceConfigurations | DataSourceConfigurationsDict | None + """ + Describes which data sources will be enabled for the detector. + + There might be regional differences because some data sources might not + be available in all the Amazon Web Services Regions where GuardDuty is + presently supported. For more information, see [Regions and + endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). + """ + tags: Mapping[str, str] | None + """The tags to be added to a new detector resource.""" + features: ( + _collections_abc_Sequence[ + DetectorFeatureConfiguration | DetectorFeatureConfigurationDict + ] + | None + ) + """A list of features that will be configured for the detector.""" + @dataclass(kw_only=True) class CreateDetectorOutput(_SerdeShape): """Dataclass for CreateDetectorOutput structure.""" @@ -2762,23 +3091,1391 @@ class CreateFilterInput(_SerdeShape): tags: dict[str, str] | None = ... """The tags to be added to a new filter resource.""" -@dataclass(kw_only=True) -class CreateFilterOutput(_SerdeShape): - """Dataclass for CreateFilterOutput structure.""" +class CreateFilterInputDict(TypedDict, total=False): + """Dictionary form of `CreateFilterInput`.""" - name: str | None = ... - """The name of the successfully created filter.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + detector_id: Required[str] """ + The detector ID associated with the GuardDuty account for which you want + to create a filter. -@dataclass(kw_only=True) -class CreateInvestigationInput(_SerdeShape): - """Dataclass for CreateInvestigationInput structure.""" + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + name: Required[str] + """ + The name of the filter. Valid characters include period (.), underscore + (_), dash (-), and alphanumeric characters. A whitespace is considered + to be an invalid character. + """ + description: str | None + """ + The description of the filter. Valid characters include alphanumeric + characters, and special characters such as hyphen, period, colon, + underscore, parentheses (`{ }`, `[ ]`, and `( )`), forward slash, + horizontal tab, vertical tab, newline, form feed, return, and + whitespace. + """ + action: str | None + """ + Specifies the action that is to be applied to the findings that match + the filter. + + Default: NOOP + """ + rank: int | None + """ + Specifies the position of the filter in the list of current filters. + Also specifies the order in which this filter is applied to the + findings. + """ + finding_criteria: Required[FindingCriteria | FindingCriteriaDict] + """ + Represents the criteria to be used in the filter for querying findings. + The following fields are available for filtering: + + - accountId + + - arn + + - associatedAttackSequenceArn + + - confidence + + - createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - id + + - partition + + - region + + - resource.accessKeyDetails.accessKeyId + + - resource.accessKeyDetails.principalId + + - resource.accessKeyDetails.userIdentity.accessKeyId + + - resource.accessKeyDetails.userIdentity.accountId + + - resource.accessKeyDetails.userIdentity.arn + + - resource.accessKeyDetails.userIdentity.principalId + + - resource.accessKeyDetails.userIdentity.sessionContext.attributes.mfaAuthenticated + + - resource.accessKeyDetails.userIdentity.sessionContext.ec2RoleDelivery + + - resource.accessKeyDetails.userIdentity.sessionContext.invokedBy + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.accountId + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.arn + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.principalId + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.type + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.userName + + - resource.accessKeyDetails.userIdentity.sessionContext.sourceIdentity + + - resource.accessKeyDetails.userIdentity.sessionContext.webIdFederationData.attributes + + - resource.accessKeyDetails.userIdentity.sessionContext.webIdFederationData.federatedProvider + + - resource.accessKeyDetails.userIdentity.type + + - resource.accessKeyDetails.userIdentity.userName + + - resource.accessKeyDetails.userName + + - resource.accessKeyDetails.userType + + - resource.bedrockGuardrailDetails.guardrailArn + + - resource.bedrockGuardrailDetails.guardrailVersion + + - resource.containerDetails.containerRuntime + + - resource.containerDetails.id + + - resource.containerDetails.image + + - resource.containerDetails.imagePrefix + + - resource.containerDetails.name + + - resource.containerDetails.securityContext.allowPrivilegeEscalation + + - resource.containerDetails.securityContext.privileged + + - resource.containerDetails.volumeMounts.mountPath + + - resource.containerDetails.volumeMounts.name + + - resource.ebsSnapshotDetails.snapshotArn + + - resource.ebsVolumeDetails.scannedVolumeDetails.deviceName + + - resource.ebsVolumeDetails.scannedVolumeDetails.encryptionType + + - resource.ebsVolumeDetails.scannedVolumeDetails.kmsKeyArn + + - resource.ebsVolumeDetails.scannedVolumeDetails.snapshotArn + + - resource.ebsVolumeDetails.scannedVolumeDetails.volumeArn + + - resource.ebsVolumeDetails.scannedVolumeDetails.volumeSizeInGB + + - resource.ebsVolumeDetails.scannedVolumeDetails.volumeType + + - resource.ebsVolumeDetails.skippedVolumeDetails.deviceName + + - resource.ebsVolumeDetails.skippedVolumeDetails.encryptionType + + - resource.ebsVolumeDetails.skippedVolumeDetails.kmsKeyArn + + - resource.ebsVolumeDetails.skippedVolumeDetails.snapshotArn + + - resource.ebsVolumeDetails.skippedVolumeDetails.volumeArn + + - resource.ebsVolumeDetails.skippedVolumeDetails.volumeSizeInGB + + - resource.ebsVolumeDetails.skippedVolumeDetails.volumeType + + - resource.ec2ImageDetails.imageArn + + - resource.ecsClusterDetails.activeServicesCount + + - resource.ecsClusterDetails.arn + + - resource.ecsClusterDetails.name + + - resource.ecsClusterDetails.registeredContainerInstancesCount + + - resource.ecsClusterDetails.runningTasksCount + + - resource.ecsClusterDetails.status + + - resource.ecsClusterDetails.tags.key + + - resource.ecsClusterDetails.tags.value + + - resource.ecsClusterDetails.taskDetails.arn + + - resource.ecsClusterDetails.taskDetails.containers.containerRuntime + + - resource.ecsClusterDetails.taskDetails.containers.id + + - resource.ecsClusterDetails.taskDetails.containers.image + + - resource.ecsClusterDetails.taskDetails.containers.imagePrefix + + - resource.ecsClusterDetails.taskDetails.containers.name + + - resource.ecsClusterDetails.taskDetails.containers.securityContext.allowPrivilegeEscalation + + - resource.ecsClusterDetails.taskDetails.containers.securityContext.privileged + + - resource.ecsClusterDetails.taskDetails.containers.volumeMounts.mountPath + + - resource.ecsClusterDetails.taskDetails.containers.volumeMounts.name + + - resource.ecsClusterDetails.taskDetails.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.ecsClusterDetails.taskDetails.definitionArn + + - resource.ecsClusterDetails.taskDetails.group + + - resource.ecsClusterDetails.taskDetails.launchType + + - resource.ecsClusterDetails.taskDetails.startedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.ecsClusterDetails.taskDetails.startedBy + + - resource.ecsClusterDetails.taskDetails.tags.key + + - resource.ecsClusterDetails.taskDetails.tags.value + + - resource.ecsClusterDetails.taskDetails.version + + - resource.ecsClusterDetails.taskDetails.volumes.hostPath.path + + - resource.ecsClusterDetails.taskDetails.volumes.name + + - resource.eksClusterDetails.arn + + - resource.eksClusterDetails.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.eksClusterDetails.name + + - resource.eksClusterDetails.status + + - resource.eksClusterDetails.tags.key + + - resource.eksClusterDetails.tags.value + + - resource.eksClusterDetails.vpcId + + - resource.instanceDetails.availabilityZone + + - resource.instanceDetails.iamInstanceProfile.arn + + - resource.instanceDetails.iamInstanceProfile.id + + - resource.instanceDetails.imageDescription + + - resource.instanceDetails.imageId + + - resource.instanceDetails.instanceId + + - resource.instanceDetails.instanceState + + - resource.instanceDetails.instanceType + + - resource.instanceDetails.launchTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.instanceDetails.networkInterfaces.ipv6Addresses + + - resource.instanceDetails.networkInterfaces.networkInterfaceId + + - resource.instanceDetails.networkInterfaces.privateDnsName + + - resource.instanceDetails.networkInterfaces.privateIpAddress + + - resource.instanceDetails.networkInterfaces.privateIpAddresses.privateDnsName + + - resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress + + - resource.instanceDetails.networkInterfaces.publicDnsName + + - resource.instanceDetails.networkInterfaces.publicIp + + - resource.instanceDetails.networkInterfaces.securityGroups.groupId + + - resource.instanceDetails.networkInterfaces.securityGroups.groupName + + - resource.instanceDetails.networkInterfaces.subnetId + + - resource.instanceDetails.networkInterfaces.vpcId + + - resource.instanceDetails.outpostArn + + - resource.instanceDetails.platform + + - resource.instanceDetails.productCodes.productCodeId + + - resource.instanceDetails.productCodes.productCodeType + + - resource.instanceDetails.tags.key + + - resource.instanceDetails.tags.value + + - resource.kubernetesDetails.kubernetesUserDetails.groups + + - resource.kubernetesDetails.kubernetesUserDetails.impersonatedUser.groups + + - resource.kubernetesDetails.kubernetesUserDetails.impersonatedUser.username + + - resource.kubernetesDetails.kubernetesUserDetails.sessionName + + - resource.kubernetesDetails.kubernetesUserDetails.uid + + - resource.kubernetesDetails.kubernetesUserDetails.username + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.containerRuntime + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.id + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.image + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.imagePrefix + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.name + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.securityContext.allowPrivilegeEscalation + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.securityContext.privileged + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.volumeMounts.mountPath + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.volumeMounts.name + + - resource.kubernetesDetails.kubernetesWorkloadDetails.hostIpc + + - resource.kubernetesDetails.kubernetesWorkloadDetails.hostNetwork + + - resource.kubernetesDetails.kubernetesWorkloadDetails.hostPid + + - resource.kubernetesDetails.kubernetesWorkloadDetails.name + + - resource.kubernetesDetails.kubernetesWorkloadDetails.namespace + + - resource.kubernetesDetails.kubernetesWorkloadDetails.serviceAccountName + + - resource.kubernetesDetails.kubernetesWorkloadDetails.type + + - resource.kubernetesDetails.kubernetesWorkloadDetails.uid + + - resource.kubernetesDetails.kubernetesWorkloadDetails.volumes.hostPath.path + + - resource.kubernetesDetails.kubernetesWorkloadDetails.volumes.name + + - resource.lambdaDetails.description + + - resource.lambdaDetails.functionArn + + - resource.lambdaDetails.functionName + + - resource.lambdaDetails.functionVersion + + - resource.lambdaDetails.lastModifiedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.lambdaDetails.revisionId + + - resource.lambdaDetails.role + + - resource.lambdaDetails.tags.key + + - resource.lambdaDetails.tags.value + + - resource.lambdaDetails.vpcConfig.securityGroups.groupId + + - resource.lambdaDetails.vpcConfig.securityGroups.groupName + + - resource.lambdaDetails.vpcConfig.subnetIds + + - resource.lambdaDetails.vpcConfig.vpcId + + - resource.rdsDbInstanceDetails.dbClusterIdentifier + + - resource.rdsDbInstanceDetails.dbInstanceArn + + - resource.rdsDbInstanceDetails.dbInstanceIdentifier + + - resource.rdsDbInstanceDetails.dbSecurityGroups.name + + - resource.rdsDbInstanceDetails.dbSecurityGroups.status + + - resource.rdsDbInstanceDetails.dbiResourceId + + - resource.rdsDbInstanceDetails.engine + + - resource.rdsDbInstanceDetails.engineVersion + + - resource.rdsDbInstanceDetails.iamDatabaseAuthenticationEnabled + + - resource.rdsDbInstanceDetails.publiclyAccessible + + - resource.rdsDbInstanceDetails.vpcId + + - resource.rdsDbInstanceDetails.vpcSecurityGroups.status + + - resource.rdsDbInstanceDetails.vpcSecurityGroups.vpcSecurityGroupId + + - resource.rdsDbUserDetails.application + + - resource.rdsDbUserDetails.authMethod + + - resource.rdsDbUserDetails.database + + - resource.rdsDbUserDetails.ssl + + - resource.rdsDbUserDetails.user + + - resource.rdsLimitlessDbDetails.dbClusterIdentifier + + - resource.rdsLimitlessDbDetails.dbShardGroupArn + + - resource.rdsLimitlessDbDetails.dbShardGroupIdentifier + + - resource.rdsLimitlessDbDetails.dbShardGroupResourceId + + - resource.rdsLimitlessDbDetails.engine + + - resource.rdsLimitlessDbDetails.engineVersion + + - resource.rdsLimitlessDbDetails.tags.key + + - resource.rdsLimitlessDbDetails.tags.value + + - resource.recoveryPointDetails.backupVaultName + + - resource.recoveryPointDetails.recoveryPointArn + + - resource.resourceType + + - resource.s3BucketDetails.arn + + - resource.s3BucketDetails.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.s3BucketDetails.defaultServerSideEncryption.encryptionType + + - resource.s3BucketDetails.defaultServerSideEncryption.kmsMasterKeyArn + + - resource.s3BucketDetails.name + + - resource.s3BucketDetails.owner.id + + - resource.s3BucketDetails.publicAccess.effectivePermission + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.accountLevelPermissions.blockPublicAccess.blockPublicAcls + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.accountLevelPermissions.blockPublicAccess.blockPublicPolicy + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.accountLevelPermissions.blockPublicAccess.ignorePublicAcls + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.accountLevelPermissions.blockPublicAccess.restrictPublicBuckets + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.accessControlList.allowsPublicReadAccess + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.accessControlList.allowsPublicWriteAccess + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.blockPublicAccess.blockPublicAcls + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.blockPublicAccess.blockPublicPolicy + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.blockPublicAccess.ignorePublicAcls + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.blockPublicAccess.restrictPublicBuckets + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.bucketPolicy.allowsPublicReadAccess + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.bucketPolicy.allowsPublicWriteAccess + + - resource.s3BucketDetails.s3ObjectDetails.eTag + + - resource.s3BucketDetails.s3ObjectDetails.hash + + - resource.s3BucketDetails.s3ObjectDetails.key + + - resource.s3BucketDetails.s3ObjectDetails.objectArn + + - resource.s3BucketDetails.s3ObjectDetails.versionId + + - resource.s3BucketDetails.tags.key + + - resource.s3BucketDetails.tags.value + + - resource.s3BucketDetails.type + + - schemaVersion + + - service.action.actionType + + - service.action.awsApiCallAction.api + + - service.action.awsApiCallAction.callerType + + - service.action.awsApiCallAction.domainDetails.domain + + - service.action.awsApiCallAction.errorCode + + - service.action.awsApiCallAction.remoteAccountDetails.accountId + + - service.action.awsApiCallAction.remoteAccountDetails.affiliated + + - service.action.awsApiCallAction.remoteAccountDetails.awsServiceName + + - service.action.awsApiCallAction.remoteIpDetails.city.cityName + + - service.action.awsApiCallAction.remoteIpDetails.country.countryCode + + - service.action.awsApiCallAction.remoteIpDetails.country.countryName + + - service.action.awsApiCallAction.remoteIpDetails.geoLocation.lat + + - service.action.awsApiCallAction.remoteIpDetails.geoLocation.lon + + - service.action.awsApiCallAction.remoteIpDetails.ipAddressV4 + + - service.action.awsApiCallAction.remoteIpDetails.ipAddressV6 + + - service.action.awsApiCallAction.remoteIpDetails.organization.asn + + - service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg + + - service.action.awsApiCallAction.remoteIpDetails.organization.isp + + - service.action.awsApiCallAction.remoteIpDetails.organization.org + + - service.action.awsApiCallAction.serviceName + + - service.action.awsApiCallAction.userAgent + + - service.action.dnsRequestAction.blocked + + - service.action.dnsRequestAction.domain + + - service.action.dnsRequestAction.domainWithSuffix + + - service.action.dnsRequestAction.protocol + + - service.action.dnsRequestAction.vpcOwnerAccountId + + - service.action.kubernetesApiCallAction.namespace + + - service.action.kubernetesApiCallAction.parameters + + - service.action.kubernetesApiCallAction.remoteIpDetails.city.cityName + + - service.action.kubernetesApiCallAction.remoteIpDetails.country.countryCode + + - service.action.kubernetesApiCallAction.remoteIpDetails.country.countryName + + - service.action.kubernetesApiCallAction.remoteIpDetails.geoLocation.lat + + - service.action.kubernetesApiCallAction.remoteIpDetails.geoLocation.lon + + - service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4 + + - service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV6 + + - service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn + + - service.action.kubernetesApiCallAction.remoteIpDetails.organization.asnOrg + + - service.action.kubernetesApiCallAction.remoteIpDetails.organization.isp + + - service.action.kubernetesApiCallAction.remoteIpDetails.organization.org + + - service.action.kubernetesApiCallAction.requestUri + + - service.action.kubernetesApiCallAction.resource + + - service.action.kubernetesApiCallAction.resourceName + + - service.action.kubernetesApiCallAction.sourceIPs + + - service.action.kubernetesApiCallAction.statusCode + + - service.action.kubernetesApiCallAction.subresource + + - service.action.kubernetesApiCallAction.userAgent + + - service.action.kubernetesApiCallAction.verb + + - service.action.kubernetesPermissionCheckedDetails.allowed + + - service.action.kubernetesPermissionCheckedDetails.namespace + + - service.action.kubernetesPermissionCheckedDetails.resource + + - service.action.kubernetesPermissionCheckedDetails.verb + + - service.action.kubernetesRoleBindingDetails.kind + + - service.action.kubernetesRoleBindingDetails.name + + - service.action.kubernetesRoleBindingDetails.roleRefKind + + - service.action.kubernetesRoleBindingDetails.roleRefName + + - service.action.kubernetesRoleBindingDetails.uid + + - service.action.kubernetesRoleDetails.kind + + - service.action.kubernetesRoleDetails.name + + - service.action.kubernetesRoleDetails.uid + + - service.action.networkConnectionAction.blocked + + - service.action.networkConnectionAction.connectionDirection + + - service.action.networkConnectionAction.localIpDetails.ipAddressV4 + + - service.action.networkConnectionAction.localIpDetails.ipAddressV6 + + - service.action.networkConnectionAction.localNetworkInterface + + - service.action.networkConnectionAction.localPortDetails.port + + - service.action.networkConnectionAction.localPortDetails.portName + + - service.action.networkConnectionAction.protocol + + - service.action.networkConnectionAction.remoteIpDetails.city.cityName + + - service.action.networkConnectionAction.remoteIpDetails.country.countryCode + + - service.action.networkConnectionAction.remoteIpDetails.country.countryName + + - service.action.networkConnectionAction.remoteIpDetails.geoLocation.lat + + - service.action.networkConnectionAction.remoteIpDetails.geoLocation.lon + + - service.action.networkConnectionAction.remoteIpDetails.ipAddressV4 + + - service.action.networkConnectionAction.remoteIpDetails.ipAddressV6 + + - service.action.networkConnectionAction.remoteIpDetails.organization.asn + + - service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg + + - service.action.networkConnectionAction.remoteIpDetails.organization.isp + + - service.action.networkConnectionAction.remoteIpDetails.organization.org + + - service.action.networkConnectionAction.remotePortDetails.port + + - service.action.networkConnectionAction.remotePortDetails.portName + + - service.action.portProbeAction.blocked + + - service.action.portProbeAction.portProbeDetails.localIpDetails.ipAddressV4 + + - service.action.portProbeAction.portProbeDetails.localIpDetails.ipAddressV6 + + - service.action.portProbeAction.portProbeDetails.localPortDetails.port + + - service.action.portProbeAction.portProbeDetails.localPortDetails.portName + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.city.cityName + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.country.countryCode + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.country.countryName + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.geoLocation.lat + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.geoLocation.lon + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.ipAddressV4 + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.ipAddressV6 + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.organization.asn + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.organization.asnOrg + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.organization.isp + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.organization.org + + - service.action.rdsLoginAttemptAction.loginAttributes.application + + - service.action.rdsLoginAttemptAction.loginAttributes.failedLoginAttempts + + - service.action.rdsLoginAttemptAction.loginAttributes.successfulLoginAttempts + + - service.action.rdsLoginAttemptAction.loginAttributes.user + + - service.action.rdsLoginAttemptAction.remoteIpDetails.city.cityName + + - service.action.rdsLoginAttemptAction.remoteIpDetails.country.countryCode + + - service.action.rdsLoginAttemptAction.remoteIpDetails.country.countryName + + - service.action.rdsLoginAttemptAction.remoteIpDetails.geoLocation.lat + + - service.action.rdsLoginAttemptAction.remoteIpDetails.geoLocation.lon + + - service.action.rdsLoginAttemptAction.remoteIpDetails.ipAddressV4 + + - service.action.rdsLoginAttemptAction.remoteIpDetails.ipAddressV6 + + - service.action.rdsLoginAttemptAction.remoteIpDetails.organization.asn + + - service.action.rdsLoginAttemptAction.remoteIpDetails.organization.asnOrg + + - service.action.rdsLoginAttemptAction.remoteIpDetails.organization.isp + + - service.action.rdsLoginAttemptAction.remoteIpDetails.organization.org + + - service.additionalInfo.agentDetails.agentId + + - service.additionalInfo.agentDetails.agentVersion + + - service.additionalInfo.anomalies.anomalousAPIs + + - service.additionalInfo.authenticationMethod + + - service.additionalInfo.averagePacketSizeIn + + - service.additionalInfo.averagePacketSizeOut + + - service.additionalInfo.context + + - service.additionalInfo.domain + + - service.additionalInfo.inBytes + + - service.additionalInfo.localNetworkInterfaceOwner + + - service.additionalInfo.localPort + + - service.additionalInfo.outBytes + + - service.additionalInfo.packetsIn + + - service.additionalInfo.packetsOut + + - service.additionalInfo.policyArn + + - service.additionalInfo.policyName + + - service.additionalInfo.remotePort + + - service.additionalInfo.sample + + - service.additionalInfo.scannedPort + + - service.additionalInfo.threatFileSha256 + + - service.additionalInfo.threatListName + + - service.additionalInfo.threatName + + - service.additionalInfo.totalBytesIn + + - service.additionalInfo.totalBytesOut + + - service.additionalInfo.type + + - service.additionalInfo.unusual.asnOrg + + - service.additionalInfo.unusual.port + + - service.additionalInfo.unusualProtocol + + - service.additionalInfo.userAgent.fullUserAgent + + - service.additionalInfo.userAgent.userAgentCategory + + - service.additionalInfo.value + + - service.additionalInfo.vpcOwnerAccountId + + - service.archived + + - service.count + + - service.detection.sequence.actors.id + + - service.detection.sequence.actors.process.name + + - service.detection.sequence.actors.process.path + + - service.detection.sequence.actors.process.sha256 + + - service.detection.sequence.actors.session.createdTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.actors.session.issuer + + - service.detection.sequence.actors.session.mfaStatus + + - service.detection.sequence.actors.session.uid + + - service.detection.sequence.actors.user.account.account + + - service.detection.sequence.actors.user.account.uid + + - service.detection.sequence.actors.user.credentialUid + + - service.detection.sequence.actors.user.name + + - service.detection.sequence.actors.user.type + + - service.detection.sequence.actors.user.uid + + - service.detection.sequence.additionalSequenceTypes + + - service.detection.sequence.description + + - service.detection.sequence.endpoints.autonomousSystem.name + + - service.detection.sequence.endpoints.autonomousSystem.number + + - service.detection.sequence.endpoints.connection.direction + + - service.detection.sequence.endpoints.domain + + - service.detection.sequence.endpoints.id + + - service.detection.sequence.endpoints.ip + + - service.detection.sequence.endpoints.location.city + + - service.detection.sequence.endpoints.location.country + + - service.detection.sequence.endpoints.location.lat + + - service.detection.sequence.endpoints.location.lon + + - service.detection.sequence.endpoints.port + + - service.detection.sequence.resources.accountId + + - service.detection.sequence.resources.cloudPartition + + - service.detection.sequence.resources.data.accessKey.principalId + + - service.detection.sequence.resources.data.accessKey.userName + + - service.detection.sequence.resources.data.accessKey.userType + + - service.detection.sequence.resources.data.autoscalingAutoScalingGroup.ec2InstanceUids + + - service.detection.sequence.resources.data.cloudformationStack.ec2InstanceUids + + - service.detection.sequence.resources.data.container.image + + - service.detection.sequence.resources.data.container.imageUid + + - service.detection.sequence.resources.data.ec2Image.ec2InstanceUids + + - service.detection.sequence.resources.data.ec2Instance.availabilityZone + + - service.detection.sequence.resources.data.ec2Instance.ec2NetworkInterfaceUids + + - service.detection.sequence.resources.data.ec2Instance.iamInstanceProfile.arn + + - service.detection.sequence.resources.data.ec2Instance.iamInstanceProfile.id + + - service.detection.sequence.resources.data.ec2Instance.imageDescription + + - service.detection.sequence.resources.data.ec2Instance.instanceState + + - service.detection.sequence.resources.data.ec2Instance.instanceType + + - service.detection.sequence.resources.data.ec2Instance.outpostArn + + - service.detection.sequence.resources.data.ec2Instance.platform + + - service.detection.sequence.resources.data.ec2Instance.productCodes.productCodeId + + - service.detection.sequence.resources.data.ec2Instance.productCodes.productCodeType + + - service.detection.sequence.resources.data.ec2LaunchTemplate.ec2InstanceUids + + - service.detection.sequence.resources.data.ec2LaunchTemplate.version + + - service.detection.sequence.resources.data.ec2NetworkInterface.ipv6Addresses + + - service.detection.sequence.resources.data.ec2NetworkInterface.privateIpAddresses.privateDnsName + + - service.detection.sequence.resources.data.ec2NetworkInterface.privateIpAddresses.privateIpAddress + + - service.detection.sequence.resources.data.ec2NetworkInterface.publicIp + + - service.detection.sequence.resources.data.ec2NetworkInterface.securityGroups.groupId + + - service.detection.sequence.resources.data.ec2NetworkInterface.securityGroups.groupName + + - service.detection.sequence.resources.data.ec2NetworkInterface.subNetId + + - service.detection.sequence.resources.data.ec2NetworkInterface.vpcId + + - service.detection.sequence.resources.data.ec2Vpc.ec2InstanceUids + + - service.detection.sequence.resources.data.ecsCluster.ec2InstanceUids + + - service.detection.sequence.resources.data.ecsCluster.status + + - service.detection.sequence.resources.data.ecsTask.containerUids + + - service.detection.sequence.resources.data.ecsTask.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.resources.data.ecsTask.launchType + + - service.detection.sequence.resources.data.ecsTask.taskDefinitionArn + + - service.detection.sequence.resources.data.eksCluster.arn + + - service.detection.sequence.resources.data.eksCluster.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.resources.data.eksCluster.ec2InstanceUids + + - service.detection.sequence.resources.data.eksCluster.status + + - service.detection.sequence.resources.data.eksCluster.vpcId + + - service.detection.sequence.resources.data.iamInstanceProfile.ec2InstanceUids + + - service.detection.sequence.resources.data.iamInstanceProfile.id + + - service.detection.sequence.resources.data.kubernetesWorkload.containerUids + + - service.detection.sequence.resources.data.kubernetesWorkload.namespace + + - service.detection.sequence.resources.data.kubernetesWorkload.type + + - service.detection.sequence.resources.data.s3Bucket.accountPublicAccess.publicAclAccess + + - service.detection.sequence.resources.data.s3Bucket.accountPublicAccess.publicAclIgnoreBehavior + + - service.detection.sequence.resources.data.s3Bucket.accountPublicAccess.publicBucketRestrictBehavior + + - service.detection.sequence.resources.data.s3Bucket.accountPublicAccess.publicPolicyAccess + + - service.detection.sequence.resources.data.s3Bucket.bucketPublicAccess.publicAclAccess + + - service.detection.sequence.resources.data.s3Bucket.bucketPublicAccess.publicAclIgnoreBehavior + + - service.detection.sequence.resources.data.s3Bucket.bucketPublicAccess.publicBucketRestrictBehavior + + - service.detection.sequence.resources.data.s3Bucket.bucketPublicAccess.publicPolicyAccess + + - service.detection.sequence.resources.data.s3Bucket.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.resources.data.s3Bucket.effectivePermission + + - service.detection.sequence.resources.data.s3Bucket.encryptionKeyArn + + - service.detection.sequence.resources.data.s3Bucket.encryptionType + + - service.detection.sequence.resources.data.s3Bucket.ownerId + + - service.detection.sequence.resources.data.s3Bucket.publicReadAccess + + - service.detection.sequence.resources.data.s3Bucket.publicWriteAccess + + - service.detection.sequence.resources.data.s3Bucket.s3ObjectUids + + - service.detection.sequence.resources.data.s3Object.eTag + + - service.detection.sequence.resources.data.s3Object.key + + - service.detection.sequence.resources.data.s3Object.versionId + + - service.detection.sequence.resources.name + + - service.detection.sequence.resources.region + + - service.detection.sequence.resources.resourceType + + - service.detection.sequence.resources.service + + - service.detection.sequence.resources.tags.key + + - service.detection.sequence.resources.tags.value + + - service.detection.sequence.resources.uid + + - service.detection.sequence.sequenceIndicators.key + + - service.detection.sequence.sequenceIndicators.title + + - service.detection.sequence.sequenceIndicators.values + + - service.detection.sequence.signals.actorIds + + - service.detection.sequence.signals.count + + - service.detection.sequence.signals.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.signals.description + + - service.detection.sequence.signals.endpointIds + + - service.detection.sequence.signals.firstSeenAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.signals.lastSeenAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.signals.name + + - service.detection.sequence.signals.resourceUids + + - service.detection.sequence.signals.severity + + - service.detection.sequence.signals.signalIndicators.key + + - service.detection.sequence.signals.signalIndicators.title + + - service.detection.sequence.signals.signalIndicators.values + + - service.detection.sequence.signals.type + + - service.detection.sequence.signals.uid + + - service.detection.sequence.signals.updatedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.uid + + - service.detectorId + + - service.ebsVolumeScanDetails.scanCompletedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.ebsVolumeScanDetails.scanDetections.highestSeverityThreatDetails.count + + - service.ebsVolumeScanDetails.scanDetections.highestSeverityThreatDetails.severity + + - service.ebsVolumeScanDetails.scanDetections.highestSeverityThreatDetails.threatName + + - service.ebsVolumeScanDetails.scanDetections.scannedItemCount.files + + - service.ebsVolumeScanDetails.scanDetections.scannedItemCount.totalGb + + - service.ebsVolumeScanDetails.scanDetections.scannedItemCount.volumes + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.itemCount + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.shortened + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.fileName + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.filePath + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.volumeArn + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.itemCount + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.name + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.uniqueThreatNameCount + + - service.ebsVolumeScanDetails.scanDetections.threatsDetectedItemCount.files + + - service.ebsVolumeScanDetails.scanId + + - service.ebsVolumeScanDetails.scanStartedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.ebsVolumeScanDetails.scanType + + - service.ebsVolumeScanDetails.sources + + - service.ebsVolumeScanDetails.triggerFindingId + + - service.eventFirstSeen + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.eventLastSeen + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.evidence.threatIntelligenceDetails.threatFileSha256 + + - service.evidence.threatIntelligenceDetails.threatListName + + - service.evidence.threatIntelligenceDetails.threatNames + + - service.featureName + + - service.malwareScanDetails.scanCategory + + - service.malwareScanDetails.scanConfiguration.incrementalScanDetails.baselineResourceArn + + - service.malwareScanDetails.scanConfiguration.triggerType + + - service.malwareScanDetails.scanId + + - service.malwareScanDetails.scanType + + - service.malwareScanDetails.threats.count + + - service.malwareScanDetails.threats.hash + + - service.malwareScanDetails.threats.itemDetails.additionalInfo.deviceName + + - service.malwareScanDetails.threats.itemDetails.additionalInfo.versionId + + - service.malwareScanDetails.threats.itemDetails.hash + + - service.malwareScanDetails.threats.itemDetails.itemPath + + - service.malwareScanDetails.threats.itemDetails.resourceArn + + - service.malwareScanDetails.threats.itemPaths.hash + + - service.malwareScanDetails.threats.itemPaths.nestedItemPath + + - service.malwareScanDetails.threats.name + + - service.malwareScanDetails.threats.source + + - service.malwareScanDetails.uniqueThreatCount + + - service.resourceRole + + - service.runtimeDetails.context.addressFamily + + - service.runtimeDetails.context.commandLineExample + + - service.runtimeDetails.context.fileOperation + + - service.runtimeDetails.context.filePath + + - service.runtimeDetails.context.fileSystemType + + - service.runtimeDetails.context.flags + + - service.runtimeDetails.context.ianaProtocolNumber + + - service.runtimeDetails.context.ldPreloadValue + + - service.runtimeDetails.context.libraryPath + + - service.runtimeDetails.context.memoryRegions + + - service.runtimeDetails.context.modifiedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.modifyingProcess.euid + + - service.runtimeDetails.context.modifyingProcess.executablePath + + - service.runtimeDetails.context.modifyingProcess.executableSha256 + + - service.runtimeDetails.context.modifyingProcess.lineage.euid + + - service.runtimeDetails.context.modifyingProcess.lineage.executablePath + + - service.runtimeDetails.context.modifyingProcess.lineage.name + + - service.runtimeDetails.context.modifyingProcess.lineage.namespacePid + + - service.runtimeDetails.context.modifyingProcess.lineage.parentUuid + + - service.runtimeDetails.context.modifyingProcess.lineage.pid + + - service.runtimeDetails.context.modifyingProcess.lineage.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.modifyingProcess.lineage.userId + + - service.runtimeDetails.context.modifyingProcess.lineage.uuid + + - service.runtimeDetails.context.modifyingProcess.name + + - service.runtimeDetails.context.modifyingProcess.namespacePid + + - service.runtimeDetails.context.modifyingProcess.parentUuid + + - service.runtimeDetails.context.modifyingProcess.pid + + - service.runtimeDetails.context.modifyingProcess.pwd + + - service.runtimeDetails.context.modifyingProcess.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.modifyingProcess.user + + - service.runtimeDetails.context.modifyingProcess.userId + + - service.runtimeDetails.context.modifyingProcess.uuid + + - service.runtimeDetails.context.moduleFilePath + + - service.runtimeDetails.context.moduleName + + - service.runtimeDetails.context.moduleSha256 + + - service.runtimeDetails.context.mountSource + + - service.runtimeDetails.context.mountTarget + + - service.runtimeDetails.context.relatedFilePaths + + - service.runtimeDetails.context.releaseAgentPath + + - service.runtimeDetails.context.runcBinaryPath + + - service.runtimeDetails.context.scriptPath + + - service.runtimeDetails.context.serviceName + + - service.runtimeDetails.context.shellHistoryFilePath + + - service.runtimeDetails.context.socketPath + + - service.runtimeDetails.context.targetProcess.euid + + - service.runtimeDetails.context.targetProcess.executablePath + + - service.runtimeDetails.context.targetProcess.executableSha256 + + - service.runtimeDetails.context.targetProcess.lineage.euid + + - service.runtimeDetails.context.targetProcess.lineage.executablePath + + - service.runtimeDetails.context.targetProcess.lineage.name + + - service.runtimeDetails.context.targetProcess.lineage.namespacePid + + - service.runtimeDetails.context.targetProcess.lineage.parentUuid + + - service.runtimeDetails.context.targetProcess.lineage.pid + + - service.runtimeDetails.context.targetProcess.lineage.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.targetProcess.lineage.userId + + - service.runtimeDetails.context.targetProcess.lineage.uuid + + - service.runtimeDetails.context.targetProcess.name + + - service.runtimeDetails.context.targetProcess.namespacePid + + - service.runtimeDetails.context.targetProcess.parentUuid + + - service.runtimeDetails.context.targetProcess.pid + + - service.runtimeDetails.context.targetProcess.pwd + + - service.runtimeDetails.context.targetProcess.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.targetProcess.user + + - service.runtimeDetails.context.targetProcess.userId + + - service.runtimeDetails.context.targetProcess.uuid + + - service.runtimeDetails.context.threatFilePath + + - service.runtimeDetails.context.toolCategory + + - service.runtimeDetails.context.toolName + + - service.runtimeDetails.process.euid + + - service.runtimeDetails.process.executablePath + + - service.runtimeDetails.process.executableSha256 + + - service.runtimeDetails.process.lineage.euid + + - service.runtimeDetails.process.lineage.executablePath + + - service.runtimeDetails.process.lineage.name + + - service.runtimeDetails.process.lineage.namespacePid + + - service.runtimeDetails.process.lineage.parentUuid + + - service.runtimeDetails.process.lineage.pid + + - service.runtimeDetails.process.lineage.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.process.lineage.userId + + - service.runtimeDetails.process.lineage.uuid + + - service.runtimeDetails.process.name + + - service.runtimeDetails.process.namespacePid + + - service.runtimeDetails.process.parentUuid + + - service.runtimeDetails.process.pid + + - service.runtimeDetails.process.pwd + + - service.runtimeDetails.process.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.process.user + + - service.runtimeDetails.process.userId + + - service.runtimeDetails.process.uuid + + - service.serviceName + + - service.userFeedback + + - severity + + To configure severity based filters, use the following for the + [FindingCriteria](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_FindingCriteria.html) + condition: + + - **Low**: `["1", "2", "3"]` + + - **Medium**: `["4", "5", "6"]` + + - **High**: `["7", "8"]` + + - **Critical**: `["9", "10"]` + + For more information, see [Findings severity + levels](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-severity.html) + in the *Amazon GuardDuty User Guide*. + + - type + + - updatedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + """ + client_token: str | None + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """The tags to be added to a new filter resource.""" + +@dataclass(kw_only=True) +class CreateFilterOutput(_SerdeShape): + """Dataclass for CreateFilterOutput structure.""" + + name: str | None = ... + """The name of the successfully created filter.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateInvestigationInput(_SerdeShape): + """Dataclass for CreateInvestigationInput structure.""" detector_id: str | None = ... """ @@ -2807,6 +4504,36 @@ class CreateInvestigationInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateInvestigationInputDict(TypedDict, total=False): + """Dictionary form of `CreateInvestigationInput`.""" + + detector_id: Required[str] + """ + The unique ID of the GuardDuty detector for the account in which the + investigation is created. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + trigger_prompt: Required[str] + """ + A natural-language description of what to investigate. For example: + + - `"Investigate finding 1ab2c3d4e5f6a7b8c9d0e1f2a3b4c5d6 in account 123456789012"` + + - `"Analyze findings in account with id 123456789012"` + + - `"Analyze findings in my organization"` + """ + client_token: str | None + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateInvestigationOutput(_SerdeShape): """Dataclass for CreateInvestigationOutput structure.""" @@ -2865,6 +4592,49 @@ class CreateIPSetInput(_SerdeShape): specified in the **location** parameter. """ +class CreateIPSetInputDict(TypedDict, total=False): + """Dictionary form of `CreateIPSetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty account for which you + want to create an IPSet. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + name: Required[str] + """ + The user-friendly name to identify the IPSet. + + Allowed characters are alphanumeric, whitespace, dash (-), and + underscores (_). + """ + format: Required[str] + """The format of the file that contains the IPSet.""" + location: Required[str] + """The URI of the file that contains the IPSet.""" + activate: Required[bool] + """ + A Boolean value that indicates whether GuardDuty is to start using the + uploaded IPSet. + """ + client_token: str | None + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """The tags to be added to a new IP set resource.""" + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. + """ + @dataclass(kw_only=True) class CreateIPSetOutput(_SerdeShape): """Dataclass for CreateIPSetOutput structure.""" @@ -2908,6 +4678,34 @@ class CreateMalwareProtectionPlanInput(_SerdeShape): tags: dict[str, str] | None = ... """Tags added to the Malware Protection plan resource.""" +class CreateMalwareProtectionPlanInputDict(TypedDict, total=False): + """Dictionary form of `CreateMalwareProtectionPlanInput`.""" + + client_token: str | None + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. + """ + role: Required[str] + """ + Amazon Resource Name (ARN) of the IAM role that has the permissions to + scan and add tags to the associated protected resource. + """ + protected_resource: Required[CreateProtectedResource | CreateProtectedResourceDict] + """ + Information about the protected resource that is associated with the + created Malware Protection plan. Presently, `S3Bucket` is the only + supported protected resource. + """ + actions: MalwareProtectionPlanActions | MalwareProtectionPlanActionsDict | None + """ + Information about whether the tags will be added to the S3 object after + scanning. + """ + tags: Mapping[str, str] | None + """Tags added to the Malware Protection plan resource.""" + @dataclass(kw_only=True) class CreateMalwareProtectionPlanOutput(_SerdeShape): """Dataclass for CreateMalwareProtectionPlanOutput structure.""" @@ -2945,6 +4743,27 @@ class CreateMembersInput(_SerdeShape): want to associate with the GuardDuty administrator account. """ +class CreateMembersInputDict(TypedDict, total=False): + """Dictionary form of `CreateMembersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty account for which you + want to associate member accounts. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_details: Required[ + _collections_abc_Sequence[AccountDetail | AccountDetailDict] + ] + """ + A list of account ID and email address pairs of the accounts that you + want to associate with the GuardDuty administrator account. + """ + @dataclass(kw_only=True) class CreateMembersOutput(_SerdeShape): """Dataclass for CreateMembersOutput structure.""" @@ -2973,6 +4792,12 @@ class CreateProtectedResource(_SerdeShape): s3_bucket: CreateS3BucketResource | None = ... """Information about the protected S3 bucket resource.""" +class CreateProtectedResourceDict(TypedDict, total=False): + """Dictionary form of `CreateProtectedResource`.""" + + s3_bucket: CreateS3BucketResource | CreateS3BucketResourceDict | None + """Information about the protected S3 bucket resource.""" + @dataclass(kw_only=True) class CreatePublishingDestinationInput(_SerdeShape): """Dataclass for CreatePublishingDestinationInput structure.""" @@ -3006,6 +4831,38 @@ class CreatePublishingDestinationInput(_SerdeShape): tags: dict[str, str] | None = ... """The tags to be added to a new publishing destination resource.""" +class CreatePublishingDestinationInputDict(TypedDict, total=False): + """Dictionary form of `CreatePublishingDestinationInput`.""" + + detector_id: Required[str] + """ + The ID of the GuardDuty detector associated with the publishing + destination. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + destination_type: Required[str] + """ + The type of resource for the publishing destination. Currently only + Amazon S3 buckets are supported. + """ + destination_properties: Required[DestinationProperties | DestinationPropertiesDict] + """ + The properties of the publishing destination, including the ARNs for the + destination and the KMS key used for encryption. + """ + client_token: str | None + """ + The idempotency token for the request. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """The tags to be added to a new publishing destination resource.""" + @dataclass(kw_only=True) class CreatePublishingDestinationOutput(_SerdeShape): """Dataclass for CreatePublishingDestinationOutput structure.""" @@ -3032,6 +4889,17 @@ class CreateS3BucketResource(_SerdeShape): scanned only if it belongs to any of the specified object prefixes. """ +class CreateS3BucketResourceDict(TypedDict, total=False): + """Dictionary form of `CreateS3BucketResource`.""" + + bucket_name: str | None + """Name of the S3 bucket.""" + object_prefixes: _collections_abc_Sequence[str] | None + """ + Information about the specified object prefixes. The S3 object will be + scanned only if it belongs to any of the specified object prefixes. + """ + @dataclass(kw_only=True) class CreateSampleFindingsInput(_SerdeShape): """Dataclass for CreateSampleFindingsInput structure.""" @@ -3048,6 +4916,21 @@ class CreateSampleFindingsInput(_SerdeShape): finding_types: list[str] | None = ... """The types of sample findings to generate.""" +class CreateSampleFindingsInputDict(TypedDict, total=False): + """Dictionary form of `CreateSampleFindingsInput`.""" + + detector_id: Required[str] + """ + The ID of the detector for which you need to create sample findings. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + finding_types: _collections_abc_Sequence[str] | None + """The types of sample findings to generate.""" + @dataclass(kw_only=True) class CreateSampleFindingsOutput(_SerdeShape): """Dataclass for CreateSampleFindingsOutput structure.""" @@ -3113,6 +4996,58 @@ class CreateThreatEntitySetInput(_SerdeShape): tags: dict[str, str] | None = ... """The tags to be added to a new threat entity set resource.""" +class CreateThreatEntitySetInputDict(TypedDict, total=False): + """Dictionary form of `CreateThreatEntitySetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty account for which you + want to create a threat entity set. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + name: Required[str] + """ + A user-friendly name to identify the threat entity set. + + The name of your list can include lowercase letters, uppercase letters, + numbers, dash (-), and underscore (_). + """ + format: Required[str] + """The format of the file that contains the threat entity set.""" + location: Required[str] + """ + The URI of the file that contains the threat entity set. The format of + the `Location` URL must be a valid Amazon S3 URL format. Invalid URL + formats will result in an error, regardless of whether you activate the + entity set or not. For more information about format of the location + URLs, see [Format of location URL under Step 2: Adding trusted or threat + intelligence + data](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty-lists-create-activate.html) + in the *Amazon GuardDuty User Guide*. + """ + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. + """ + activate: Required[bool] + """ + A boolean value that indicates whether GuardDuty should start using the + uploaded threat entity set to generate findings. + """ + client_token: str | None + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """The tags to be added to a new threat entity set resource.""" + @dataclass(kw_only=True) class CreateThreatEntitySetOutput(_SerdeShape): """Dataclass for CreateThreatEntitySetOutput structure.""" @@ -3122,19 +5057,61 @@ class CreateThreatEntitySetOutput(_SerdeShape): The ID returned by GuardDuty after creation of the threat entity set resource. """ - response_metadata: ResponseMetadata = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateThreatIntelSetInput(_SerdeShape): + """Dataclass for CreateThreatIntelSetInput structure.""" + + detector_id: str | None = ... + """ + The unique ID of the detector of the GuardDuty account for which you + want to create a `threatIntelSet`. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + name: str | None = ... + """ + A user-friendly ThreatIntelSet name displayed in all findings that are + generated by activity that involves IP addresses included in this + ThreatIntelSet. + """ + format: str | None = ... + """The format of the file that contains the ThreatIntelSet.""" + location: str | None = ... + """The URI of the file that contains the ThreatIntelSet.""" + activate: bool | None = ... + """ + A Boolean value that indicates whether GuardDuty is to start using the + uploaded ThreatIntelSet. + """ + client_token: str | None = ... + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + tags: dict[str, str] | None = ... + """The tags to be added to a new threat list resource.""" + expected_bucket_owner: str | None = ... + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. """ -@dataclass(kw_only=True) -class CreateThreatIntelSetInput(_SerdeShape): - """Dataclass for CreateThreatIntelSetInput structure.""" +class CreateThreatIntelSetInputDict(TypedDict, total=False): + """Dictionary form of `CreateThreatIntelSetInput`.""" - detector_id: str | None = ... + detector_id: Required[str] """ The unique ID of the detector of the GuardDuty account for which you want to create a `threatIntelSet`. @@ -3144,30 +5121,30 @@ class CreateThreatIntelSetInput(_SerdeShape): [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) API. """ - name: str | None = ... + name: Required[str] """ A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet. """ - format: str | None = ... + format: Required[str] """The format of the file that contains the ThreatIntelSet.""" - location: str | None = ... + location: Required[str] """The URI of the file that contains the ThreatIntelSet.""" - activate: bool | None = ... + activate: Required[bool] """ A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. """ - client_token: str | None = ... + client_token: str | None """ The idempotency token for the create request. This field is autopopulated if not provided. """ - tags: dict[str, str] | None = ... + tags: Mapping[str, str] | None """The tags to be added to a new threat list resource.""" - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The Amazon Web Services account ID that owns the Amazon S3 bucket specified in the **location** parameter. @@ -3240,6 +5217,58 @@ class CreateTrustedEntitySetInput(_SerdeShape): tags: dict[str, str] | None = ... """The tags to be added to a new trusted entity set resource.""" +class CreateTrustedEntitySetInputDict(TypedDict, total=False): + """Dictionary form of `CreateTrustedEntitySetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty account for which you + want to create a trusted entity set. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + name: Required[str] + """ + A user-friendly name to identify the trusted entity set. + + The name of your list can include lowercase letters, uppercase letters, + numbers, dash (-), and underscore (_). + """ + format: Required[str] + """The format of the file that contains the trusted entity set.""" + location: Required[str] + """ + The URI of the file that contains the threat entity set. The format of + the `Location` URL must be a valid Amazon S3 URL format. Invalid URL + formats will result in an error, regardless of whether you activate the + entity set or not. For more information about format of the location + URLs, see [Format of location URL under Step 2: Adding trusted or threat + intelligence + data](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty-lists-create-activate.html) + in the *Amazon GuardDuty User Guide*. + """ + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. + """ + activate: Required[bool] + """ + A boolean value that indicates whether GuardDuty is to start using the + uploaded trusted entity set. + """ + client_token: str | None + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. + """ + tags: Mapping[str, str] | None + """The tags to be added to a new trusted entity set resource.""" + @dataclass(kw_only=True) class CreateTrustedEntitySetOutput(_SerdeShape): """Dataclass for CreateTrustedEntitySetOutput structure.""" @@ -3285,6 +5314,18 @@ class DataSourceConfigurations(_SerdeShape): malware_protection: MalwareProtectionConfiguration | None = ... """Describes whether Malware Protection is enabled as a data source.""" +class DataSourceConfigurationsDict(TypedDict, total=False): + """Dictionary form of `DataSourceConfigurations`.""" + + s3_logs: S3LogsConfiguration | S3LogsConfigurationDict | None + """Describes whether S3 data event logs are enabled as a data source.""" + kubernetes: KubernetesConfiguration | KubernetesConfigurationDict | None + """Describes whether any Kubernetes logs are enabled as data sources.""" + malware_protection: ( + MalwareProtectionConfiguration | MalwareProtectionConfigurationDict | None + ) + """Describes whether Malware Protection is enabled as a data source.""" + @dataclass(kw_only=True) class DataSourceConfigurationsResult(_SerdeShape): """Contains information on the status of data sources for the detector.""" @@ -3395,6 +5436,16 @@ class DeclineInvitationsInput(_SerdeShape): invitations from. """ +class DeclineInvitationsInputDict(TypedDict, total=False): + """Dictionary form of `DeclineInvitationsInput`.""" + + account_ids: Required[_collections_abc_Sequence[str]] + """ + A list of account IDs of the Amazon Web Services accounts that sent + invitations to the current member account that you want to decline + invitations from. + """ + @dataclass(kw_only=True) class DeclineInvitationsOutput(_SerdeShape): """Dataclass for DeclineInvitationsOutput structure.""" @@ -3438,6 +5489,14 @@ class DeleteCustomDetectionRuleAssociationInput(_SerdeShape): association_id: str | None = ... """The unique identifier for the association to delete.""" +class DeleteCustomDetectionRuleAssociationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCustomDetectionRuleAssociationInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + association_id: Required[str] + """The unique identifier for the association to delete.""" + @dataclass(kw_only=True) class DeleteCustomDetectionRuleAssociationOutput(_SerdeShape): """Dataclass for DeleteCustomDetectionRuleAssociationOutput structure.""" @@ -3462,6 +5521,17 @@ class DeleteCustomDetectionRuleOrgConfigurationInput(_SerdeShape): values: `LIVE` | `DRY_RUN`. """ +class DeleteCustomDetectionRuleOrgConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCustomDetectionRuleOrgConfigurationInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + mode: Required[str] + """ + The execution mode of the organization configuration to delete. Valid + values: `LIVE` | `DRY_RUN`. + """ + @dataclass(kw_only=True) class DeleteCustomDetectionRuleOrgConfigurationOutput(_SerdeShape): """Dataclass for DeleteCustomDetectionRuleOrgConfigurationOutput structure.""" @@ -3488,6 +5558,19 @@ class DeleteDetectorInput(_SerdeShape): API. """ +class DeleteDetectorInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDetectorInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that you want to delete. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + @dataclass(kw_only=True) class DeleteDetectorOutput(_SerdeShape): """Dataclass for DeleteDetectorOutput structure.""" @@ -3516,6 +5599,21 @@ class DeleteFilterInput(_SerdeShape): filter_name: str | None = ... """The name of the filter that you want to delete.""" +class DeleteFilterInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFilterInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with the filter. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + filter_name: Required[str] + """The name of the filter that you want to delete.""" + @dataclass(kw_only=True) class DeleteFilterOutput(_SerdeShape): """Dataclass for DeleteFilterOutput structure.""" @@ -3539,6 +5637,16 @@ class DeleteInvitationsInput(_SerdeShape): invitations from. """ +class DeleteInvitationsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteInvitationsInput`.""" + + account_ids: Required[_collections_abc_Sequence[str]] + """ + A list of account IDs of the Amazon Web Services accounts that sent + invitations to the current member account that you want to delete + invitations from. + """ + @dataclass(kw_only=True) class DeleteInvitationsOutput(_SerdeShape): """Dataclass for DeleteInvitationsOutput structure.""" @@ -3572,6 +5680,21 @@ class DeleteIPSetInput(_SerdeShape): ip_set_id: str | None = ... """The unique ID of the IPSet to delete.""" +class DeleteIPSetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIPSetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector associated with the IPSet. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + ip_set_id: Required[str] + """The unique ID of the IPSet to delete.""" + @dataclass(kw_only=True) class DeleteIPSetOutput(_SerdeShape): """Dataclass for DeleteIPSetOutput structure.""" @@ -3591,6 +5714,12 @@ class DeleteMalwareProtectionPlanInput(_SerdeShape): malware_protection_plan_id: str | None = ... """A unique identifier associated with Malware Protection plan resource.""" +class DeleteMalwareProtectionPlanInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMalwareProtectionPlanInput`.""" + + malware_protection_plan_id: Required[str] + """A unique identifier associated with Malware Protection plan resource.""" + @dataclass(kw_only=True) class DeleteMalwareProtectionPlanOutput(_SerdeShape): """Dataclass for DeleteMalwareProtectionPlanOutput structure.""" @@ -3623,6 +5752,25 @@ class DeleteMembersInput(_SerdeShape): delete. """ +class DeleteMembersInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMembersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty account whose members you + want to delete. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_ids: Required[_collections_abc_Sequence[str]] + """ + A list of account IDs of the GuardDuty member accounts that you want to + delete. + """ + @dataclass(kw_only=True) class DeleteMembersOutput(_SerdeShape): """Dataclass for DeleteMembersOutput structure.""" @@ -3654,6 +5802,22 @@ class DeletePublishingDestinationInput(_SerdeShape): destination_id: str | None = ... """The ID of the publishing destination to delete.""" +class DeletePublishingDestinationInputDict(TypedDict, total=False): + """Dictionary form of `DeletePublishingDestinationInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector associated with the publishing destination + to delete. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + destination_id: Required[str] + """The ID of the publishing destination to delete.""" + @dataclass(kw_only=True) class DeletePublishingDestinationOutput(_SerdeShape): """Dataclass for DeletePublishingDestinationOutput structure.""" @@ -3686,6 +5850,25 @@ class DeleteThreatEntitySetInput(_SerdeShape): needs to be deleted. """ +class DeleteThreatEntitySetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteThreatEntitySetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector associated with the threat entity set + resource. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + threat_entity_set_id: Required[str] + """ + The unique ID that helps GuardDuty identify which threat entity set + needs to be deleted. + """ + @dataclass(kw_only=True) class DeleteThreatEntitySetOutput(_SerdeShape): """Dataclass for DeleteThreatEntitySetOutput structure.""" @@ -3715,6 +5898,22 @@ class DeleteThreatIntelSetInput(_SerdeShape): threat_intel_set_id: str | None = ... """The unique ID of the threatIntelSet that you want to delete.""" +class DeleteThreatIntelSetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteThreatIntelSetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with the + threatIntelSet. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + threat_intel_set_id: Required[str] + """The unique ID of the threatIntelSet that you want to delete.""" + @dataclass(kw_only=True) class DeleteThreatIntelSetOutput(_SerdeShape): """Dataclass for DeleteThreatIntelSetOutput structure.""" @@ -3747,6 +5946,25 @@ class DeleteTrustedEntitySetInput(_SerdeShape): needs to be deleted. """ +class DeleteTrustedEntitySetInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTrustedEntitySetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector associated with the trusted entity set + resource. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + trusted_entity_set_id: Required[str] + """ + The unique ID that helps GuardDuty identify which trusted entity set + needs to be deleted. + """ + @dataclass(kw_only=True) class DeleteTrustedEntitySetOutput(_SerdeShape): """Dataclass for DeleteTrustedEntitySetOutput structure.""" @@ -3797,6 +6015,43 @@ class DescribeMalwareScansInput(_SerdeShape): is required and it must be `scanStartTime`. """ +class DescribeMalwareScansInputDict(TypedDict, total=False): + """Dictionary form of `DescribeMalwareScansInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that the request is associated with. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items that + you want in the response. The default value is 50. The maximum value is + 50. + """ + filter_criteria: FilterCriteria | FilterCriteriaDict | None + """ + Represents the criteria to be used in the filter for describing scan + entries. + """ + sort_criteria: SortCriteria | SortCriteriaDict | None + """ + Represents the criteria used for sorting scan entries. The + [`attributeName`](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_SortCriteria.html#guardduty-Type-SortCriteria-attributeName) + is required and it must be `scanStartTime`. + """ + @dataclass(kw_only=True) class DescribeMalwareScansOutput(_SerdeShape): """Dataclass for DescribeMalwareScansOutput structure.""" @@ -3819,11 +6074,38 @@ class DescribeMalwareScansOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class DescribeOrganizationConfigurationInput(_SerdeShape): - """Dataclass for DescribeOrganizationConfigurationInput structure.""" +@dataclass(kw_only=True) +class DescribeOrganizationConfigurationInput(_SerdeShape): + """Dataclass for DescribeOrganizationConfigurationInput structure.""" + + detector_id: str | None = ... + """ + The detector ID of the delegated administrator for which you need to + retrieve the information. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + max_results: int | None = ... + """ + You can use this parameter to indicate the maximum number of items that + you want in the response. + """ + next_token: str | None = ... + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill `nextToken` in the request with the + value of `NextToken` from the previous response to continue listing + data. + """ + +class DescribeOrganizationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DescribeOrganizationConfigurationInput`.""" - detector_id: str | None = ... + detector_id: Required[str] """ The detector ID of the delegated administrator for which you need to retrieve the information. @@ -3833,12 +6115,12 @@ class DescribeOrganizationConfigurationInput(_SerdeShape): [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) API. """ - max_results: int | None = ... + max_results: int | None """ You can use this parameter to indicate the maximum number of items that you want in the response. """ - next_token: str | None = ... + next_token: str | None """ You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For @@ -3929,6 +6211,22 @@ class DescribePublishingDestinationInput(_SerdeShape): destination_id: str | None = ... """The ID of the publishing destination to retrieve.""" +class DescribePublishingDestinationInputDict(TypedDict, total=False): + """Dictionary form of `DescribePublishingDestinationInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector associated with the publishing destination + to retrieve. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + destination_id: Required[str] + """The ID of the publishing destination to retrieve.""" + @dataclass(kw_only=True) class DescribePublishingDestinationOutput(_SerdeShape): """Dataclass for DescribePublishingDestinationOutput structure.""" @@ -4021,6 +6319,43 @@ class DestinationProperties(_SerdeShape): in the *Amazon GuardDuty User Guide*. """ +class DestinationPropertiesDict(TypedDict, total=False): + """Dictionary form of `DestinationProperties`.""" + + destination_arn: str | None + """ + The ARN of the resource to publish to. + + To specify an S3 bucket folder use the following format: + `arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/` + """ + kms_key_arn: str | None + """The ARN of the KMS key to use for encryption.""" + expected_bucket_owner: str | None + """ + The 12-digit Amazon Web Services account ID of the account that owns the + Amazon S3 bucket specified in the `DestinationArn` parameter. + + When you provide this value, GuardDuty verifies that the specified + account owns the bucket before it exports findings. If the account ID + doesn't match the actual owner of the bucket, GuardDuty doesn't export + findings to that bucket. This helps prevent GuardDuty from exporting + your findings to a bucket that a different Amazon Web Services account + owns (for example, if the original bucket was deleted and its name was + later claimed by another account). If you don't specify this value, + GuardDuty doesn't perform this verification. GuardDuty strongly + recommends that you provide the expected bucket owner when possible. + + When you update a publishing destination, omitting this field leaves the + currently stored value unchanged. This field appears in the response + only if it was provided when the publishing destination was created or + updated. + + For more information, see [Verifying the Amazon S3 bucket + owner](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_exportfindings.html#guardduty-exportfindings-expected-bucket-owner) + in the *Amazon GuardDuty User Guide*. + """ + class DestinationType(UnknownEnumMixin, StrEnum): S3 = "S3" @@ -4033,7 +6368,7 @@ class Detection(_SerdeShape): The details about the anomalous activity that caused GuardDuty to generate the finding. """ - sequence: Sequence | None = ... + sequence: _aws_sdk_guardduty_models_Sequence | None = ... """The details about the attack sequence.""" class DetectionRuleConfigurationStatus(UnknownEnumMixin, StrEnum): @@ -4101,6 +6436,19 @@ class DetectionRuleFilter(_SerdeShape): `CONTAINS`. """ +class DetectionRuleFilterDict(TypedDict, total=False): + """Dictionary form of `DetectionRuleFilter`.""" + + name: Required[str] + """The name of the field to filter by.""" + values: Required[_collections_abc_Sequence[str]] + """The values to match against the specified filter name.""" + condition: str | None + """ + The condition to apply to the filter. For example, `EQUALS` or + `CONTAINS`. + """ + class DetectionRuleFilterCondition(UnknownEnumMixin, StrEnum): EQUALS = "EQUALS" CONTAINS = "CONTAINS" @@ -4222,6 +6570,14 @@ class DetectorAdditionalConfiguration(_SerdeShape): status: str | None = ... """Status of the additional configuration.""" +class DetectorAdditionalConfigurationDict(TypedDict, total=False): + """Dictionary form of `DetectorAdditionalConfiguration`.""" + + name: str | None + """Name of the additional configuration.""" + status: str | None + """Status of the additional configuration.""" + @dataclass(kw_only=True) class DetectorAdditionalConfigurationResult(_SerdeShape): """Information about the additional configuration.""" @@ -4273,6 +6629,21 @@ class DetectorFeatureConfiguration(_SerdeShape): additional_configuration: list[DetectorAdditionalConfiguration] | None = ... """Additional configuration for a resource.""" +class DetectorFeatureConfigurationDict(TypedDict, total=False): + """Dictionary form of `DetectorFeatureConfiguration`.""" + + name: str | None + """The name of the feature.""" + status: str | None + """The status of the feature.""" + additional_configuration: ( + _collections_abc_Sequence[ + DetectorAdditionalConfiguration | DetectorAdditionalConfigurationDict + ] + | None + ) + """Additional configuration for a resource.""" + @dataclass(kw_only=True) class DetectorFeatureConfigurationResult(_SerdeShape): """ @@ -4328,6 +6699,15 @@ class DisableOrganizationAdminAccountInput(_SerdeShape): disabled as a GuardDuty delegated administrator. """ +class DisableOrganizationAdminAccountInputDict(TypedDict, total=False): + """Dictionary form of `DisableOrganizationAdminAccountInput`.""" + + admin_account_id: Required[str] + """ + The Amazon Web Services Account ID for the organizations account to be + disabled as a GuardDuty delegated administrator. + """ + @dataclass(kw_only=True) class DisableOrganizationAdminAccountOutput(_SerdeShape): """Dataclass for DisableOrganizationAdminAccountOutput structure.""" @@ -4347,6 +6727,12 @@ class DisassociateFromAdministratorAccountInput(_SerdeShape): detector_id: str | None = ... """The unique ID of the detector of the GuardDuty member account.""" +class DisassociateFromAdministratorAccountInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateFromAdministratorAccountInput`.""" + + detector_id: Required[str] + """The unique ID of the detector of the GuardDuty member account.""" + @dataclass(kw_only=True) class DisassociateFromAdministratorAccountOutput(_SerdeShape): """Dataclass for DisassociateFromAdministratorAccountOutput structure.""" @@ -4366,6 +6752,12 @@ class DisassociateFromMasterAccountInput(_SerdeShape): detector_id: str | None = ... """The unique ID of the detector of the GuardDuty member account.""" +class DisassociateFromMasterAccountInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateFromMasterAccountInput`.""" + + detector_id: Required[str] + """The unique ID of the detector of the GuardDuty member account.""" + @dataclass(kw_only=True) class DisassociateFromMasterAccountOutput(_SerdeShape): """Dataclass for DisassociateFromMasterAccountOutput structure.""" @@ -4393,6 +6785,20 @@ class DisassociateMembersInput(_SerdeShape): disassociate from the administrator account. """ +class DisassociateMembersInputDict(TypedDict, total=False): + """Dictionary form of `DisassociateMembersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty account whose members you + want to disassociate from the administrator account. + """ + account_ids: Required[_collections_abc_Sequence[str]] + """ + A list of account IDs of the GuardDuty member accounts that you want to + disassociate from the administrator account. + """ + @dataclass(kw_only=True) class DisassociateMembersOutput(_SerdeShape): """Dataclass for DisassociateMembersOutput structure.""" @@ -4779,6 +7185,15 @@ class EnableOrganizationAdminAccountInput(_SerdeShape): enabled as a GuardDuty delegated administrator. """ +class EnableOrganizationAdminAccountInputDict(TypedDict, total=False): + """Dictionary form of `EnableOrganizationAdminAccountInput`.""" + + admin_account_id: Required[str] + """ + The Amazon Web Services account ID for the organization account to be + enabled as a GuardDuty delegated administrator. + """ + @dataclass(kw_only=True) class EnableOrganizationAdminAccountOutput(_SerdeShape): """Dataclass for EnableOrganizationAdminAccountOutput structure.""" @@ -4868,6 +7283,25 @@ class FilterCondition(_SerdeShape): querying for scan entries. """ +class FilterConditionDict(TypedDict, total=False): + """Dictionary form of `FilterCondition`.""" + + equals_value: str | None + """ + Represents an *equal* condition to be applied to a single field when + querying for scan entries. + """ + greater_than: int | None + """ + Represents a *greater than* condition to be applied to a single field + when querying for scan entries. + """ + less_than: int | None + """ + Represents a *less than* condition to be applied to a single field when + querying for scan entries. + """ + @dataclass(kw_only=True) class FilterCriteria(_SerdeShape): """ @@ -4881,6 +7315,17 @@ class FilterCriteria(_SerdeShape): of the operation. """ +class FilterCriteriaDict(TypedDict, total=False): + """Dictionary form of `FilterCriteria`.""" + + filter_criterion: ( + _collections_abc_Sequence[FilterCriterion | FilterCriterionDict] | None + ) + """ + Represents a condition that when matched will be added to the response + of the operation. + """ + @dataclass(kw_only=True) class FilterCriterion(_SerdeShape): """ @@ -4899,6 +7344,17 @@ class FilterCriterion(_SerdeShape): filter_condition: FilterCondition | None = ... """Contains information about the condition.""" +class FilterCriterionDict(TypedDict, total=False): + """Dictionary form of `FilterCriterion`.""" + + criterion_key: str | None + """ + An enum value representing possible scan properties to match with given + scan entries. + """ + filter_condition: FilterCondition | FilterConditionDict | None + """Contains information about the condition.""" + class FilterFieldName(UnknownEnumMixin, StrEnum): NAME = "name" DESCRIPTION = "description" @@ -4972,6 +7428,15 @@ class FindingCriteria(_SerdeShape): and values when querying findings. """ +class FindingCriteriaDict(TypedDict, total=False): + """Dictionary form of `FindingCriteria`.""" + + criterion: Mapping[str, Condition | ConditionDict] | None + """ + Represents a map of finding properties that match specified conditions + and values when querying findings. + """ + class FindingPublishingFrequency(UnknownEnumMixin, StrEnum): FIFTEEN_MINUTES = "FIFTEEN_MINUTES" ONE_HOUR = "ONE_HOUR" @@ -5131,6 +7596,12 @@ class GetAdministratorAccountInput(_SerdeShape): detector_id: str | None = ... """The unique ID of the detector of the GuardDuty member account.""" +class GetAdministratorAccountInputDict(TypedDict, total=False): + """Dictionary form of `GetAdministratorAccountInput`.""" + + detector_id: Required[str] + """The unique ID of the detector of the GuardDuty member account.""" + @dataclass(kw_only=True) class GetAdministratorAccountOutput(_SerdeShape): """Dataclass for GetAdministratorAccountOutput structure.""" @@ -5163,6 +7634,23 @@ class GetCoverageStatisticsInput(_SerdeShape): statistics_type: list[str] | None = ... """Represents the statistics type used to aggregate the coverage details.""" +class GetCoverageStatisticsInputDict(TypedDict, total=False): + """Dictionary form of `GetCoverageStatisticsInput`.""" + + detector_id: Required[str] + """ + The unique ID of the GuardDuty detector. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + filter_criteria: CoverageFilterCriteria | CoverageFilterCriteriaDict | None + """Represents the criteria used to filter the coverage statistics.""" + statistics_type: Required[_collections_abc_Sequence[str]] + """Represents the statistics type used to aggregate the coverage details.""" + @dataclass(kw_only=True) class GetCoverageStatisticsOutput(_SerdeShape): """Dataclass for GetCoverageStatisticsOutput structure.""" @@ -5186,6 +7674,14 @@ class GetCustomDetectionRuleAssociationInput(_SerdeShape): association_id: str | None = ... """The unique identifier for the association.""" +class GetCustomDetectionRuleAssociationInputDict(TypedDict, total=False): + """Dictionary form of `GetCustomDetectionRuleAssociationInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + association_id: Required[str] + """The unique identifier for the association.""" + @dataclass(kw_only=True) class GetCustomDetectionRuleAssociationOutput(_SerdeShape): """Dataclass for GetCustomDetectionRuleAssociationOutput structure.""" @@ -5209,6 +7705,12 @@ class GetCustomDetectionRuleInput(_SerdeShape): rule_id: str | None = ... """The unique identifier for the custom detection rule.""" +class GetCustomDetectionRuleInputDict(TypedDict, total=False): + """Dictionary form of `GetCustomDetectionRuleInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + @dataclass(kw_only=True) class GetCustomDetectionRuleOrgConfigurationInput(_SerdeShape): """Dataclass for GetCustomDetectionRuleOrgConfigurationInput structure.""" @@ -5221,6 +7723,17 @@ class GetCustomDetectionRuleOrgConfigurationInput(_SerdeShape): values: `LIVE` | `DRY_RUN`. """ +class GetCustomDetectionRuleOrgConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetCustomDetectionRuleOrgConfigurationInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + mode: Required[str] + """ + The execution mode of the organization configuration to retrieve. Valid + values: `LIVE` | `DRY_RUN`. + """ + @dataclass(kw_only=True) class GetCustomDetectionRuleOrgConfigurationOutput(_SerdeShape): """Dataclass for GetCustomDetectionRuleOrgConfigurationOutput structure.""" @@ -5263,6 +7776,19 @@ class GetDetectorInput(_SerdeShape): API. """ +class GetDetectorInputDict(TypedDict, total=False): + """Dictionary form of `GetDetectorInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that you want to get. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + @dataclass(kw_only=True) class GetDetectorOutput(_SerdeShape): """Dataclass for GetDetectorOutput structure.""" @@ -5307,6 +7833,21 @@ class GetFilterInput(_SerdeShape): filter_name: str | None = ... """The name of the filter you want to get.""" +class GetFilterInputDict(TypedDict, total=False): + """Dictionary form of `GetFilterInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with this filter. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + filter_name: Required[str] + """The name of the filter you want to get.""" + @dataclass(kw_only=True) class GetFilterOutput(_SerdeShape): """Dataclass for GetFilterOutput structure.""" @@ -5375,6 +7916,24 @@ class GetFindingsInput(_SerdeShape): sort_criteria: SortCriteria | None = ... """Represents the criteria used for sorting findings.""" +class GetFindingsInputDict(TypedDict, total=False): + """Dictionary form of `GetFindingsInput`.""" + + detector_id: Required[str] + """ + The ID of the detector that specifies the GuardDuty service whose + findings you want to retrieve. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + finding_ids: Required[_collections_abc_Sequence[str]] + """The IDs of the findings that you want to retrieve.""" + sort_criteria: SortCriteria | SortCriteriaDict | None + """Represents the criteria used for sorting findings.""" + @dataclass(kw_only=True) class GetFindingsOutput(_SerdeShape): """Dataclass for GetFindingsOutput structure.""" @@ -5426,6 +7985,42 @@ class GetFindingsStatisticsInput(_SerdeShape): You can use this parameter only with the `groupBy` parameter. """ +class GetFindingsStatisticsInputDict(TypedDict, total=False): + """Dictionary form of `GetFindingsStatisticsInput`.""" + + detector_id: Required[str] + """ + The ID of the detector whose findings statistics you want to retrieve. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + finding_statistic_types: _collections_abc_Sequence[str] | None + """The types of finding statistics to retrieve.""" + finding_criteria: FindingCriteria | FindingCriteriaDict | None + """Represents the criteria that is used for querying findings.""" + group_by: str | None + """ + Displays the findings statistics grouped by one of the listed valid + values. + """ + order_by: str | None + """ + Displays the sorted findings in the requested order. The default value + of `orderBy` is `DESC`. + + You can use this parameter only with the `groupBy` parameter. + """ + max_results: int | None + """ + The maximum number of results to be returned in the response. The + default value is 25. + + You can use this parameter only with the `groupBy` parameter. + """ + @dataclass(kw_only=True) class GetFindingsStatisticsOutput(_SerdeShape): """Dataclass for GetFindingsStatisticsOutput structure.""" @@ -5464,6 +8059,22 @@ class GetInvestigationInput(_SerdeShape): investigation_id: str | None = ... """The unique identifier of the investigation to retrieve.""" +class GetInvestigationInputDict(TypedDict, total=False): + """Dictionary form of `GetInvestigationInput`.""" + + detector_id: Required[str] + """ + The unique ID of the GuardDuty detector associated with the + investigation. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + investigation_id: Required[str] + """The unique identifier of the investigation to retrieve.""" + @dataclass(kw_only=True) class GetInvestigationOutput(_SerdeShape): """Dataclass for GetInvestigationOutput structure.""" @@ -5482,6 +8093,9 @@ class GetInvestigationOutput(_SerdeShape): class GetInvitationsCountInput(_SerdeShape): """Dataclass for GetInvitationsCountInput structure.""" +class GetInvitationsCountInputDict(TypedDict, total=False): + """Dictionary form of `GetInvitationsCountInput`.""" + @dataclass(kw_only=True) class GetInvitationsCountOutput(_SerdeShape): """Dataclass for GetInvitationsCountOutput structure.""" @@ -5512,6 +8126,21 @@ class GetIPSetInput(_SerdeShape): ip_set_id: str | None = ... """The unique ID of the IPSet to retrieve.""" +class GetIPSetInputDict(TypedDict, total=False): + """Dictionary form of `GetIPSetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with the IPSet. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + ip_set_id: Required[str] + """The unique ID of the IPSet to retrieve.""" + @dataclass(kw_only=True) class GetIPSetOutput(_SerdeShape): """Dataclass for GetIPSetOutput structure.""" @@ -5547,6 +8176,12 @@ class GetMalwareProtectionPlanInput(_SerdeShape): malware_protection_plan_id: str | None = ... """A unique identifier associated with Malware Protection plan resource.""" +class GetMalwareProtectionPlanInputDict(TypedDict, total=False): + """Dictionary form of `GetMalwareProtectionPlanInput`.""" + + malware_protection_plan_id: Required[str] + """A unique identifier associated with Malware Protection plan resource.""" + @dataclass(kw_only=True) class GetMalwareProtectionPlanOutput(_SerdeShape): """Dataclass for GetMalwareProtectionPlanOutput structure.""" @@ -5598,3 +8233,13 @@ class GetMalwareScanInput(_SerdeShape): any error. Each malware scan has a corresponding scan ID. Using this scan ID, you can monitor the status of your malware scan. """ + +class GetMalwareScanInputDict(TypedDict, total=False): + """Dictionary form of `GetMalwareScanInput`.""" + + scan_id: Required[str] + """ + A unique identifier that gets generated when you invoke the API without + any error. Each malware scan has a corresponding scan ID. Using this + scan ID, you can monitor the status of your malware scan. + """ diff --git a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_1.pyi b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_1.pyi index 7daf85c87..d99329c75 100644 --- a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_1.pyi +++ b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_1.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence as _Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -29,16 +31,20 @@ from ..models import ( Container, ContainerFindingResource, ContinuousScanDetails, + ContinuousScanDetailsDict, Country, CoverageFilterCriteria, + CoverageFilterCriteriaDict, CoverageResource, CoverageSortCriteria, + CoverageSortCriteriaDict, DataSourceConfigurationsResult, DataSourceFreeTrial, DefaultServerSideEncryption, Destination, Detection, DetectionRuleFilter, + DetectionRuleFilterDict, DetectionRuleOrgConfigurationSummary, DetectionRuleRuntimeMonitoringDetails, EbsSnapshot, @@ -59,10 +65,13 @@ from ..models import ( EksClusterDetails, Evidence, FilterCondition, + FilterConditionDict, FindingCriteria, + FindingCriteriaDict, GeoLocation, ServiceError, SortCriteria, + SortCriteriaDict, Tag, Threat, ThreatDetectedByName, @@ -70,6 +79,7 @@ from ..models import ( TriggerDetails, UnprocessedAccount, UsageCriteria, + UsageCriteriaDict, UsageStatistics, Volume, VolumeDetail, @@ -192,6 +202,19 @@ class GetMalwareScanSettingsInput(_SerdeShape): API. """ +class GetMalwareScanSettingsInputDict(TypedDict, total=False): + """Dictionary form of `GetMalwareScanSettingsInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with this scan. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + @dataclass(kw_only=True) class GetMalwareScanSettingsOutput(_SerdeShape): """Dataclass for GetMalwareScanSettingsOutput structure.""" @@ -222,6 +245,19 @@ class GetMasterAccountInput(_SerdeShape): API. """ +class GetMasterAccountInputDict(TypedDict, total=False): + """Dictionary form of `GetMasterAccountInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty member account. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + @dataclass(kw_only=True) class GetMasterAccountOutput(_SerdeShape): """Dataclass for GetMasterAccountOutput structure.""" @@ -252,6 +288,21 @@ class GetMemberDetectorsInput(_SerdeShape): account_ids: list[str] | None = ... """A list of member account IDs.""" +class GetMemberDetectorsInputDict(TypedDict, total=False): + """Dictionary form of `GetMemberDetectorsInput`.""" + + detector_id: Required[str] + """ + The detector ID for the administrator account. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_ids: Required[_Sequence[str]] + """A list of member account IDs.""" + @dataclass(kw_only=True) class GetMemberDetectorsOutput(_SerdeShape): """Dataclass for GetMemberDetectorsOutput structure.""" @@ -294,6 +345,25 @@ class GetMembersInput(_SerdeShape): describe. """ +class GetMembersInputDict(TypedDict, total=False): + """Dictionary form of `GetMembersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty account whose members you + want to retrieve. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_ids: Required[_Sequence[str]] + """ + A list of account IDs of the GuardDuty member accounts that you want to + describe. + """ + @dataclass(kw_only=True) class GetMembersOutput(_SerdeShape): """Dataclass for GetMembersOutput structure.""" @@ -317,6 +387,9 @@ class GetMembersOutput(_SerdeShape): class GetOrganizationStatisticsInput(_SerdeShape): """Dataclass for GetOrganizationStatisticsInput structure.""" +class GetOrganizationStatisticsInputDict(TypedDict, total=False): + """Dictionary form of `GetOrganizationStatisticsInput`.""" + @dataclass(kw_only=True) class GetOrganizationStatisticsOutput(_SerdeShape): """Dataclass for GetOrganizationStatisticsOutput structure.""" @@ -347,6 +420,21 @@ class GetRemainingFreeTrialDaysInput(_SerdeShape): account_ids: list[str] | None = ... """A list of account identifiers of the GuardDuty member account.""" +class GetRemainingFreeTrialDaysInputDict(TypedDict, total=False): + """Dictionary form of `GetRemainingFreeTrialDaysInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty member account. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_ids: Required[_Sequence[str]] + """A list of account identifiers of the GuardDuty member account.""" + @dataclass(kw_only=True) class GetRemainingFreeTrialDaysOutput(_SerdeShape): """Dataclass for GetRemainingFreeTrialDaysOutput structure.""" @@ -386,6 +474,22 @@ class GetThreatEntitySetInput(_SerdeShape): threat_entity_set_id: str | None = ... """The unique ID that helps GuardDuty identify the threat entity set.""" +class GetThreatEntitySetInputDict(TypedDict, total=False): + """Dictionary form of `GetThreatEntitySetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector associated with the threat entity set + resource. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + threat_entity_set_id: Required[str] + """The unique ID that helps GuardDuty identify the threat entity set.""" + @dataclass(kw_only=True) class GetThreatEntitySetOutput(_SerdeShape): """Dataclass for GetThreatEntitySetOutput structure.""" @@ -439,6 +543,22 @@ class GetThreatIntelSetInput(_SerdeShape): threat_intel_set_id: str | None = ... """The unique ID of the threatIntelSet that you want to get.""" +class GetThreatIntelSetInputDict(TypedDict, total=False): + """Dictionary form of `GetThreatIntelSetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with the + threatIntelSet. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + threat_intel_set_id: Required[str] + """The unique ID of the threatIntelSet that you want to get.""" + @dataclass(kw_only=True) class GetThreatIntelSetOutput(_SerdeShape): """Dataclass for GetThreatIntelSetOutput structure.""" @@ -484,6 +604,17 @@ class GetTrustedEntitySetInput(_SerdeShape): trusted_entity_set_id: str | None = ... """The unique ID that helps GuardDuty identify the trusted entity set.""" +class GetTrustedEntitySetInputDict(TypedDict, total=False): + """Dictionary form of `GetTrustedEntitySetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the GuardDuty detector associated with this trusted + entity set. + """ + trusted_entity_set_id: Required[str] + """The unique ID that helps GuardDuty identify the trusted entity set.""" + @dataclass(kw_only=True) class GetTrustedEntitySetOutput(_SerdeShape): """Dataclass for GetTrustedEntitySetOutput structure.""" @@ -553,6 +684,38 @@ class GetUsageStatisticsInput(_SerdeShape): previous request to continue listing results after the first page. """ +class GetUsageStatisticsInputDict(TypedDict, total=False): + """Dictionary form of `GetUsageStatisticsInput`.""" + + detector_id: Required[str] + """ + The ID of the detector that specifies the GuardDuty service whose usage + statistics you want to retrieve. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + usage_statistic_type: Required[str] + """The type of usage statistics to retrieve.""" + usage_criteria: Required[UsageCriteria | UsageCriteriaDict] + """Represents the criteria used for querying usage.""" + unit: str | None + """ + The currency unit you would like to view your usage statistics in. + Current valid values are USD. + """ + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """ + A token to use for paginating results that are returned in the response. + Set the value of this parameter to null for the first request to a list + action. For subsequent calls, use the NextToken value returned from the + previous request to continue listing results after the first page. + """ + @dataclass(kw_only=True) class GetUsageStatisticsOutput(_SerdeShape): """Dataclass for GetUsageStatisticsOutput structure.""" @@ -663,6 +826,16 @@ class IncrementalScanDetails(_SerdeShape): resource was created. """ +class IncrementalScanDetailsDict(TypedDict, total=False): + """Dictionary form of `IncrementalScanDetails`.""" + + baseline_resource_arn: Required[str] + """ + Amazon Resource Name (ARN) of the baseline resource used for incremental + scanning. The scan will only process changes since this baseline + resource was created. + """ + @dataclass(kw_only=True) class Indicator(_SerdeShape): """ @@ -826,6 +999,14 @@ class InvestigationSortCriteria(_SerdeShape): order_by: str | None = ... """The order in which the sorted results are to be displayed.""" +class InvestigationSortCriteriaDict(TypedDict, total=False): + """Dictionary form of `InvestigationSortCriteria`.""" + + attribute_name: str | None + """The attribute by which to sort investigations.""" + order_by: str | None + """The order in which the sorted results are to be displayed.""" + class InvestigationSortField(UnknownEnumMixin, StrEnum): START_TIME = "START_TIME" END_TIME = "END_TIME" @@ -908,6 +1089,36 @@ class InviteMembersInput(_SerdeShape): you're inviting to GuardDuty as members. """ +class InviteMembersInputDict(TypedDict, total=False): + """Dictionary form of `InviteMembersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty account with which you + want to invite members. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_ids: Required[_Sequence[str]] + """ + A list of account IDs of the accounts that you want to invite to + GuardDuty as members. + """ + disable_email_notification: bool | None + """ + A Boolean value that specifies whether you want to disable email + notification to the accounts that you are inviting to GuardDuty as + members. + """ + message: str | None + """ + The invitation message that you want to send to the accounts that + you're inviting to GuardDuty as members. + """ + @dataclass(kw_only=True) class InviteMembersOutput(_SerdeShape): """Dataclass for InviteMembersOutput structure.""" @@ -1013,6 +1224,12 @@ class KubernetesAuditLogsConfiguration(_SerdeShape): enable: bool | None = ... """The status of Kubernetes audit logs as a data source.""" +class KubernetesAuditLogsConfigurationDict(TypedDict, total=False): + """Dictionary form of `KubernetesAuditLogsConfiguration`.""" + + enable: Required[bool] + """The status of Kubernetes audit logs as a data source.""" + @dataclass(kw_only=True) class KubernetesAuditLogsConfigurationResult(_SerdeShape): """Describes whether Kubernetes audit logs are enabled as a data source.""" @@ -1030,6 +1247,14 @@ class KubernetesConfiguration(_SerdeShape): audit_logs: KubernetesAuditLogsConfiguration | None = ... """The status of Kubernetes audit logs as a data source.""" +class KubernetesConfigurationDict(TypedDict, total=False): + """Dictionary form of `KubernetesConfiguration`.""" + + audit_logs: Required[ + KubernetesAuditLogsConfiguration | KubernetesAuditLogsConfigurationDict + ] + """The status of Kubernetes audit logs as a data source.""" + @dataclass(kw_only=True) class KubernetesConfigurationResult(_SerdeShape): """Describes whether any Kubernetes logs will be enabled as a data source.""" @@ -1285,6 +1510,33 @@ class ListCoverageInput(_SerdeShape): sort_criteria: CoverageSortCriteria | None = ... """Represents the criteria used to sort the coverage details.""" +class ListCoverageInputDict(TypedDict, total=False): + """Dictionary form of `ListCoverageInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector whose coverage details you want to + retrieve. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + next_token: str | None + """ + A token to use for paginating results that are returned in the response. + Set the value of this parameter to null for the first request to a list + action. For subsequent calls, use the NextToken value returned from the + previous request to continue listing results after the first page. + """ + max_results: int | None + """The maximum number of results to return in the response.""" + filter_criteria: CoverageFilterCriteria | CoverageFilterCriteriaDict | None + """Represents the criteria used to filter the coverage details.""" + sort_criteria: CoverageSortCriteria | CoverageSortCriteriaDict | None + """Represents the criteria used to sort the coverage details.""" + @dataclass(kw_only=True) class ListCoverageOutput(_SerdeShape): """Dataclass for ListCoverageOutput structure.""" @@ -1326,6 +1578,27 @@ class ListCustomDetectionRuleAssociationsInput(_SerdeShape): mode: str | None = ... """The rule execution mode to filter associations by.""" +class ListCustomDetectionRuleAssociationsInputDict(TypedDict, total=False): + """Dictionary form of `ListCustomDetectionRuleAssociationsInput`.""" + + max_results: int | None + """ + The maximum number of results to return in a single page. Minimum value + of 1, maximum value of 100. + """ + next_token: str | None + """ + A pagination token from a previous response. Use this token to retrieve + the next page of results. + """ + rule_id: str | None + """ + The unique identifier for the custom detection rule to filter + associations by. + """ + mode: str | None + """The rule execution mode to filter associations by.""" + @dataclass(kw_only=True) class ListCustomDetectionRuleAssociationsOutput(_SerdeShape): """Dataclass for ListCustomDetectionRuleAssociationsOutput structure.""" @@ -1362,6 +1635,22 @@ class ListCustomDetectionRuleOrgConfigurationsInput(_SerdeShape): status: str | None = ... """The configuration status to filter by.""" +class ListCustomDetectionRuleOrgConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `ListCustomDetectionRuleOrgConfigurationsInput`.""" + + max_results: int | None + """ + The maximum number of results to return in a single page. Minimum value + of 1, maximum value of 100. + """ + next_token: str | None + """ + A pagination token from a previous response. Use this token to retrieve + the next page of results. + """ + status: str | None + """The configuration status to filter by.""" + @dataclass(kw_only=True) class ListCustomDetectionRuleOrgConfigurationsOutput(_SerdeShape): """Dataclass for ListCustomDetectionRuleOrgConfigurationsOutput structure.""" @@ -1398,6 +1687,22 @@ class ListCustomDetectionRulesInput(_SerdeShape): filters: list[DetectionRuleFilter] | None = ... """A list of filter criteria to apply when listing custom detection rules.""" +class ListCustomDetectionRulesInputDict(TypedDict, total=False): + """Dictionary form of `ListCustomDetectionRulesInput`.""" + + max_results: int | None + """ + The maximum number of results to return in a single page. Minimum value + of 1, maximum value of 100. + """ + next_token: str | None + """ + A pagination token from a previous response. Use this token to retrieve + the next page of results. + """ + filters: _Sequence[DetectionRuleFilter | DetectionRuleFilterDict] | None + """A list of filter criteria to apply when listing custom detection rules.""" + @dataclass(kw_only=True) class ListCustomDetectionRulesOutput(_SerdeShape): """Dataclass for ListCustomDetectionRulesOutput structure.""" @@ -1435,6 +1740,23 @@ class ListDetectorsInput(_SerdeShape): value of NextToken from the previous response to continue listing data. """ +class ListDetectorsInputDict(TypedDict, total=False): + """Dictionary form of `ListDetectorsInput`.""" + + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items that + you want in the response. The default value is 50. The maximum value is + 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + @dataclass(kw_only=True) class ListDetectorsOutput(_SerdeShape): """Dataclass for ListDetectorsOutput structure.""" @@ -1481,6 +1803,32 @@ class ListFiltersInput(_SerdeShape): value of NextToken from the previous response to continue listing data. """ +class ListFiltersInputDict(TypedDict, total=False): + """Dictionary form of `ListFiltersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with the filter. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items that + you want in the response. The default value is 50. The maximum value is + 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + @dataclass(kw_only=True) class ListFiltersOutput(_SerdeShape): """Dataclass for ListFiltersOutput structure.""" @@ -1641,18 +1989,158 @@ class ListFindingsInput(_SerdeShape): value of NextToken from the previous response to continue listing data. """ -@dataclass(kw_only=True) -class ListFindingsOutput(_SerdeShape): - """Dataclass for ListFindingsOutput structure.""" +class ListFindingsInputDict(TypedDict, total=False): + """Dictionary form of `ListFindingsInput`.""" - finding_ids: list[str] | None = ... - """The IDs of the findings that you're listing.""" - next_token: str | None = ... - """ - The pagination parameter to be used on the next list operation to - retrieve more items. - """ - response_metadata: ResponseMetadata = ... + detector_id: Required[str] + """ + The ID of the detector that specifies the GuardDuty service whose + findings you want to list. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + finding_criteria: FindingCriteria | FindingCriteriaDict | None + """ + Represents the criteria used for querying findings. Valid values + include: + + - JSON field name + + - accountId + + - region + + - confidence + + - id + + - resource.accessKeyDetails.accessKeyId + + - resource.accessKeyDetails.principalId + + - resource.accessKeyDetails.userName + + - resource.accessKeyDetails.userType + + - resource.instanceDetails.iamInstanceProfile.id + + - resource.instanceDetails.imageId + + - resource.instanceDetails.instanceId + + - resource.instanceDetails.networkInterfaces.ipv6Addresses + + - resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress + + - resource.instanceDetails.networkInterfaces.publicDnsName + + - resource.instanceDetails.networkInterfaces.publicIp + + - resource.instanceDetails.networkInterfaces.securityGroups.groupId + + - resource.instanceDetails.networkInterfaces.securityGroups.groupName + + - resource.instanceDetails.networkInterfaces.subnetId + + - resource.instanceDetails.networkInterfaces.vpcId + + - resource.instanceDetails.tags.key + + - resource.instanceDetails.tags.value + + - resource.resourceType + + - service.action.actionType + + - service.action.awsApiCallAction.api + + - service.action.awsApiCallAction.callerType + + - service.action.awsApiCallAction.remoteIpDetails.city.cityName + + - service.action.awsApiCallAction.remoteIpDetails.country.countryName + + - service.action.awsApiCallAction.remoteIpDetails.ipAddressV4 + + - service.action.awsApiCallAction.remoteIpDetails.organization.asn + + - service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg + + - service.action.awsApiCallAction.serviceName + + - service.action.dnsRequestAction.domain + + - service.action.dnsRequestAction.domainWithSuffix + + - service.action.networkConnectionAction.blocked + + - service.action.networkConnectionAction.connectionDirection + + - service.action.networkConnectionAction.localPortDetails.port + + - service.action.networkConnectionAction.protocol + + - service.action.networkConnectionAction.remoteIpDetails.country.countryName + + - service.action.networkConnectionAction.remoteIpDetails.ipAddressV4 + + - service.action.networkConnectionAction.remoteIpDetails.organization.asn + + - service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg + + - service.action.networkConnectionAction.remotePortDetails.port + + - service.additionalInfo.threatListName + + - service.archived + + When this attribute is set to 'true', only archived findings are + listed. When it's set to 'false', only unarchived findings are + listed. When this attribute is not set, all existing findings are + listed. + + - service.ebsVolumeScanDetails.scanId + + - service.resourceRole + + - severity + + - type + + - updatedAt + + Type: Timestamp in Unix Epoch millisecond format: 1486685375000 + """ + sort_criteria: SortCriteria | SortCriteriaDict | None + """Represents the criteria used for sorting findings.""" + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items you + want in the response. The default value is 50. The maximum value is 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + +@dataclass(kw_only=True) +class ListFindingsOutput(_SerdeShape): + """Dataclass for ListFindingsOutput structure.""" + + finding_ids: list[str] | None = ... + """The IDs of the findings that you're listing.""" + next_token: str | None = ... + """ + The pagination parameter to be used on the next list operation to + retrieve more items. + """ + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order @@ -1689,6 +2177,34 @@ class ListInvestigationsInput(_SerdeShape): value of NextToken from the previous response to continue listing data. """ +class ListInvestigationsInputDict(TypedDict, total=False): + """Dictionary form of `ListInvestigationsInput`.""" + + detector_id: Required[str] + """ + The unique ID of the GuardDuty detector whose investigations you want to + list. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + sort_criteria: InvestigationSortCriteria | InvestigationSortCriteriaDict | None + """Represents the criteria used for sorting investigations.""" + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items you + want in the response. The default value is 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + @dataclass(kw_only=True) class ListInvestigationsOutput(_SerdeShape): """Dataclass for ListInvestigationsOutput structure.""" @@ -1729,6 +2245,23 @@ class ListInvitationsInput(_SerdeShape): value of NextToken from the previous response to continue listing data. """ +class ListInvitationsInputDict(TypedDict, total=False): + """Dictionary form of `ListInvitationsInput`.""" + + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items that + you want in the response. The default value is 50. The maximum value is + 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + @dataclass(kw_only=True) class ListInvitationsOutput(_SerdeShape): """Dataclass for ListInvitationsOutput structure.""" @@ -1774,6 +2307,31 @@ class ListIPSetsInput(_SerdeShape): value of NextToken from the previous response to continue listing data. """ +class ListIPSetsInputDict(TypedDict, total=False): + """Dictionary form of `ListIPSetsInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with IPSet. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items you + want in the response. The default value is 50. The maximum value is 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + @dataclass(kw_only=True) class ListIPSetsOutput(_SerdeShape): """Dataclass for ListIPSetsOutput structure.""" @@ -1806,6 +2364,18 @@ class ListMalwareProtectionPlansInput(_SerdeShape): data. The default page size is 100 plans. """ +class ListMalwareProtectionPlansInputDict(TypedDict, total=False): + """Dictionary form of `ListMalwareProtectionPlansInput`.""" + + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of `NextToken` from the previous response to continue listing + data. The default page size is 100 plans. + """ + @dataclass(kw_only=True) class ListMalwareProtectionPlansOutput(_SerdeShape): """Dataclass for ListMalwareProtectionPlansOutput structure.""" @@ -1853,6 +2423,18 @@ class ListMalwareScansFilterCriteria(_SerdeShape): of the operation. """ +class ListMalwareScansFilterCriteriaDict(TypedDict, total=False): + """Dictionary form of `ListMalwareScansFilterCriteria`.""" + + list_malware_scans_filter_criterion: ( + _Sequence[ListMalwareScansFilterCriterion | ListMalwareScansFilterCriterionDict] + | None + ) + """ + Represents a condition that when matched will be added to the response + of the operation. + """ + @dataclass(kw_only=True) class ListMalwareScansFilterCriterion(_SerdeShape): """ @@ -1871,6 +2453,17 @@ class ListMalwareScansFilterCriterion(_SerdeShape): filter_condition: FilterCondition | None = ... """Contains information about the condition.""" +class ListMalwareScansFilterCriterionDict(TypedDict, total=False): + """Dictionary form of `ListMalwareScansFilterCriterion`.""" + + list_malware_scans_criterion_key: str | None + """ + An enum value representing possible scan properties to match with given + scan entries. + """ + filter_condition: FilterCondition | FilterConditionDict | None + """Contains information about the condition.""" + @dataclass(kw_only=True) class ListMalwareScansInput(_SerdeShape): """Dataclass for ListMalwareScansInput structure.""" @@ -1894,6 +2487,30 @@ class ListMalwareScansInput(_SerdeShape): sort_criteria: SortCriteria | None = ... """Represents the criteria used for sorting malware scan entries.""" +class ListMalwareScansInputDict(TypedDict, total=False): + """Dictionary form of `ListMalwareScansInput`.""" + + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items that + you want in the response. The default value is 50. The maximum value is + 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing + results. + """ + filter_criteria: ( + ListMalwareScansFilterCriteria | ListMalwareScansFilterCriteriaDict | None + ) + """Represents the criteria used to filter the malware scan entries.""" + sort_criteria: SortCriteria | SortCriteriaDict | None + """Represents the criteria used for sorting malware scan entries.""" + @dataclass(kw_only=True) class ListMalwareScansOutput(_SerdeShape): """Dataclass for ListMalwareScansOutput structure.""" @@ -1948,6 +2565,40 @@ class ListMembersInput(_SerdeShape): . """ +class ListMembersInputDict(TypedDict, total=False): + """Dictionary form of `ListMembersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with the member. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items you + want in the response. The default value is 50. The maximum value is 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + only_associated: str | None + """ + Specifies whether to only return associated members or to return all + members (including members who haven't been invited yet or have been + disassociated). Member accounts must have been previously associated + with the GuardDuty administrator account using + [`Create Members`](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_CreateMembers.html) + . + """ + @dataclass(kw_only=True) class ListMembersOutput(_SerdeShape): """Dataclass for ListMembersOutput structure.""" @@ -1987,6 +2638,19 @@ class ListOrganizationAdminAccountsInput(_SerdeShape): the previous request to continue listing results after the first page. """ +class ListOrganizationAdminAccountsInputDict(TypedDict, total=False): + """Dictionary form of `ListOrganizationAdminAccountsInput`.""" + + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """ + A token to use for paginating results that are returned in the response. + Set the value of this parameter to null for the first request to a list + action. For subsequent calls, use the `NextToken` value returned from + the previous request to continue listing results after the first page. + """ + @dataclass(kw_only=True) class ListOrganizationAdminAccountsOutput(_SerdeShape): """Dataclass for ListOrganizationAdminAccountsOutput structure.""" @@ -2030,6 +2694,29 @@ class ListPublishingDestinationsInput(_SerdeShape): the previous request to continue listing results after the first page. """ +class ListPublishingDestinationsInputDict(TypedDict, total=False): + """Dictionary form of `ListPublishingDestinationsInput`.""" + + detector_id: Required[str] + """ + The detector ID for which you want to retrieve the publishing + destination. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + max_results: int | None + """The maximum number of results to return in the response.""" + next_token: str | None + """ + A token to use for paginating results that are returned in the response. + Set the value of this parameter to null for the first request to a list + action. For subsequent calls, use the `NextToken` value returned from + the previous request to continue listing results after the first page. + """ + @dataclass(kw_only=True) class ListPublishingDestinationsOutput(_SerdeShape): """Dataclass for ListPublishingDestinationsOutput structure.""" @@ -2061,6 +2748,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """The Amazon Resource Name (ARN) for the given GuardDuty resource.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) for the given GuardDuty resource.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -2069,17 +2762,43 @@ class ListTagsForResourceOutput(_SerdeShape): """The tags associated with the resource.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListThreatEntitySetsInput(_SerdeShape): + """Dataclass for ListThreatEntitySetsInput structure.""" + + detector_id: str | None = ... + """ + The unique ID of the GuardDuty detector that is associated with this + threat entity set. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + max_results: int | None = ... + """ + You can use this parameter to indicate the maximum number of items you + want in the response. The default value is 50. + """ + next_token: str | None = ... + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. """ -@dataclass(kw_only=True) -class ListThreatEntitySetsInput(_SerdeShape): - """Dataclass for ListThreatEntitySetsInput structure.""" +class ListThreatEntitySetsInputDict(TypedDict, total=False): + """Dictionary form of `ListThreatEntitySetsInput`.""" - detector_id: str | None = ... + detector_id: Required[str] """ The unique ID of the GuardDuty detector that is associated with this threat entity set. @@ -2089,12 +2808,12 @@ class ListThreatEntitySetsInput(_SerdeShape): [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) API. """ - max_results: int | None = ... + max_results: int | None """ You can use this parameter to indicate the maximum number of items you want in the response. The default value is 50. """ - next_token: str | None = ... + next_token: str | None """ You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For @@ -2150,6 +2869,34 @@ class ListThreatIntelSetsInput(_SerdeShape): data. """ +class ListThreatIntelSetsInputDict(TypedDict, total=False): + """Dictionary form of `ListThreatIntelSetsInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that is associated with the + threatIntelSet. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items that + you want in the response. The default value is 50. The maximum value is + 50. + """ + next_token: str | None + """ + You can use this parameter to paginate results in the response. Set the + value of this parameter to null on your first call to the list action. + For subsequent calls to the action, fill nextToken in the request with + the value of NextToken from the previous response to continue listing + data. + """ + @dataclass(kw_only=True) class ListThreatIntelSetsOutput(_SerdeShape): """Dataclass for ListThreatIntelSetsOutput structure.""" @@ -2196,6 +2943,32 @@ class ListTrustedEntitySetsInput(_SerdeShape): value of NextToken from the previous response to continue listing data. """ +class ListTrustedEntitySetsInputDict(TypedDict, total=False): + """Dictionary form of `ListTrustedEntitySetsInput`.""" + + detector_id: Required[str] + """ + The unique ID of the GuardDuty detector that is associated with this + threat entity set. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + max_results: int | None + """ + You can use this parameter to indicate the maximum number of items you + want in the response. The default value is 50. + """ + next_token: str | None + """ + You can use this parameter when paginating results. Set the value of + this parameter to null on your first call to the list action. For + subsequent calls to the action, fill nextToken in the request with the + value of NextToken from the previous response to continue listing data. + """ + @dataclass(kw_only=True) class ListTrustedEntitySetsOutput(_SerdeShape): """Dataclass for ListTrustedEntitySetsOutput structure.""" @@ -2262,6 +3035,17 @@ class MalwareProtectionConfiguration(_SerdeShape): findings. """ +class MalwareProtectionConfigurationDict(TypedDict, total=False): + """Dictionary form of `MalwareProtectionConfiguration`.""" + + scan_ec2_instance_with_findings: ( + ScanEc2InstanceWithFindings | ScanEc2InstanceWithFindingsDict | None + ) + """ + Describes the configuration of Malware Protection for EC2 instances with + findings. + """ + @dataclass(kw_only=True) class MalwareProtectionConfigurationResult(_SerdeShape): """ @@ -2312,6 +3096,19 @@ class MalwareProtectionPlanActions(_SerdeShape): result. """ +class MalwareProtectionPlanActionsDict(TypedDict, total=False): + """Dictionary form of `MalwareProtectionPlanActions`.""" + + tagging: ( + MalwareProtectionPlanTaggingAction + | MalwareProtectionPlanTaggingActionDict + | None + ) + """ + Indicates whether the scanned S3 object will have tags about the scan + result. + """ + class MalwareProtectionPlanStatus(UnknownEnumMixin, StrEnum): ACTIVE = "ACTIVE" WARNING = "WARNING" @@ -2352,6 +3149,12 @@ class MalwareProtectionPlanTaggingAction(_SerdeShape): status: str | None = ... """Indicates whether or not the tags will added.""" +class MalwareProtectionPlanTaggingActionDict(TypedDict, total=False): + """Dictionary form of `MalwareProtectionPlanTaggingAction`.""" + + status: str | None + """Indicates whether or not the tags will added.""" + class MalwareProtectionPlanTaggingActionStatus(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -2481,6 +3284,14 @@ class MemberAdditionalConfiguration(_SerdeShape): status: str | None = ... """Status of the additional configuration.""" +class MemberAdditionalConfigurationDict(TypedDict, total=False): + """Dictionary form of `MemberAdditionalConfiguration`.""" + + name: str | None + """Name of the additional configuration.""" + status: str | None + """Status of the additional configuration.""" + @dataclass(kw_only=True) class MemberAdditionalConfigurationResult(_SerdeShape): """Information about the additional configuration for the member account.""" @@ -2535,6 +3346,19 @@ class MemberFeaturesConfiguration(_SerdeShape): additional_configuration: list[MemberAdditionalConfiguration] | None = ... """Additional configuration of the feature for the member account.""" +class MemberFeaturesConfigurationDict(TypedDict, total=False): + """Dictionary form of `MemberFeaturesConfiguration`.""" + + name: str | None + """The name of the feature.""" + status: str | None + """The status of the feature.""" + additional_configuration: ( + _Sequence[MemberAdditionalConfiguration | MemberAdditionalConfigurationDict] + | None + ) + """Additional configuration of the feature for the member account.""" + @dataclass(kw_only=True) class MemberFeaturesConfigurationResult(_SerdeShape): """Contains information about the features for the member account.""" @@ -2739,6 +3563,38 @@ class OrganizationAdditionalConfiguration(_SerdeShape): account individually. """ +class OrganizationAdditionalConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrganizationAdditionalConfiguration`.""" + + name: str | None + """ + The name of the additional configuration that will be configured for the + organization. These values are applicable to only Runtime Monitoring + protection plan. + """ + auto_enable: str | None + """ + The status of the additional configuration that will be configured for + the organization. Use one of the following values to configure the + feature status for the entire organization: + + - `NEW`: Indicates that when a new account joins the organization, they + will have the additional configuration enabled automatically. + + - `ALL`: Indicates that all accounts in the organization have the + additional configuration enabled automatically. This includes `NEW` + accounts that join the organization and accounts that may have been + suspended or removed from the organization in GuardDuty. + + It may take up to 24 hours to update the configuration for all the + member accounts. + + - `NONE`: Indicates that the additional configuration will not be + automatically enabled for any account in the organization. The + administrator must manage the additional configuration for each + account individually. + """ + @dataclass(kw_only=True) class OrganizationAdditionalConfigurationResult(_SerdeShape): """ @@ -2799,6 +3655,35 @@ class OrganizationDataSourceConfigurations(_SerdeShape): organization. """ +class OrganizationDataSourceConfigurationsDict(TypedDict, total=False): + """Dictionary form of `OrganizationDataSourceConfigurations`.""" + + s3_logs: ( + OrganizationS3LogsConfiguration | OrganizationS3LogsConfigurationDict | None + ) + """ + Describes whether S3 data event logs are enabled for new members of the + organization. + """ + kubernetes: ( + OrganizationKubernetesConfiguration + | OrganizationKubernetesConfigurationDict + | None + ) + """ + Describes the configuration of Kubernetes data sources for new members + of the organization. + """ + malware_protection: ( + OrganizationMalwareProtectionConfiguration + | OrganizationMalwareProtectionConfigurationDict + | None + ) + """ + Describes the configuration of Malware Protection for new members of the + organization. + """ + @dataclass(kw_only=True) class OrganizationDataSourceConfigurationsResult(_SerdeShape): """ @@ -2844,6 +3729,15 @@ class OrganizationEbsVolumes(_SerdeShape): joining the organization. """ +class OrganizationEbsVolumesDict(TypedDict, total=False): + """Dictionary form of `OrganizationEbsVolumes`.""" + + auto_enable: bool | None + """ + Whether scanning EBS volumes should be auto-enabled for new members + joining the organization. + """ + @dataclass(kw_only=True) class OrganizationEbsVolumesResult(_SerdeShape): """ @@ -2887,6 +3781,41 @@ class OrganizationFeatureConfiguration(_SerdeShape): additional_configuration: list[OrganizationAdditionalConfiguration] | None = ... """The additional information that will be configured for the organization.""" +class OrganizationFeatureConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrganizationFeatureConfiguration`.""" + + name: str | None + """The name of the feature that will be configured for the organization.""" + auto_enable: str | None + """ + Describes the status of the feature that is configured for the member + accounts within the organization. One of the following values is the + status for the entire organization: + + - `NEW`: Indicates that when a new account joins the organization, they + will have the feature enabled automatically. + + - `ALL`: Indicates that all accounts in the organization have the + feature enabled automatically. This includes `NEW` accounts that join + the organization and accounts that may have been suspended or removed + from the organization in GuardDuty. + + It may take up to 24 hours to update the configuration for all the + member accounts. + + - `NONE`: Indicates that the feature will not be automatically enabled + for any account in the organization. The administrator must manage the + feature for each account individually. + """ + additional_configuration: ( + _Sequence[ + OrganizationAdditionalConfiguration + | OrganizationAdditionalConfigurationDict + ] + | None + ) + """The additional information that will be configured for the organization.""" + @dataclass(kw_only=True) class OrganizationFeatureConfigurationResult(_SerdeShape): """A list of features which will be configured for the organization.""" @@ -2959,6 +3888,15 @@ class OrganizationKubernetesAuditLogsConfiguration(_SerdeShape): should be enabled automatically as a data source for the organization. """ +class OrganizationKubernetesAuditLogsConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrganizationKubernetesAuditLogsConfiguration`.""" + + auto_enable: Required[bool] + """ + A value that contains information on whether Kubernetes audit logs + should be enabled automatically as a data source for the organization. + """ + @dataclass(kw_only=True) class OrganizationKubernetesAuditLogsConfigurationResult(_SerdeShape): """ @@ -2982,6 +3920,18 @@ class OrganizationKubernetesConfiguration(_SerdeShape): members joining the organization. """ +class OrganizationKubernetesConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrganizationKubernetesConfiguration`.""" + + audit_logs: Required[ + OrganizationKubernetesAuditLogsConfiguration + | OrganizationKubernetesAuditLogsConfigurationDict + ] + """ + Whether Kubernetes audit logs data source should be auto-enabled for new + members joining the organization. + """ + @dataclass(kw_only=True) class OrganizationKubernetesConfigurationResult(_SerdeShape): """ @@ -3007,6 +3957,19 @@ class OrganizationMalwareProtectionConfiguration(_SerdeShape): auto-enabled for new members joining the organization. """ +class OrganizationMalwareProtectionConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrganizationMalwareProtectionConfiguration`.""" + + scan_ec2_instance_with_findings: ( + OrganizationScanEc2InstanceWithFindings + | OrganizationScanEc2InstanceWithFindingsDict + | None + ) + """ + Whether Malware Protection for EC2 instances with findings should be + auto-enabled for new members joining the organization. + """ + @dataclass(kw_only=True) class OrganizationMalwareProtectionConfigurationResult(_SerdeShape): """ @@ -3035,6 +3998,15 @@ class OrganizationS3LogsConfiguration(_SerdeShape): enabled automatically as a data source for the organization. """ +class OrganizationS3LogsConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrganizationS3LogsConfiguration`.""" + + auto_enable: Required[bool] + """ + A value that contains information on whether S3 data event logs will be + enabled automatically as a data source for the organization. + """ + @dataclass(kw_only=True) class OrganizationS3LogsConfigurationResult(_SerdeShape): """ @@ -3058,6 +4030,15 @@ class OrganizationScanEc2InstanceWithFindings(_SerdeShape): joining the organization. """ +class OrganizationScanEc2InstanceWithFindingsDict(TypedDict, total=False): + """Dictionary form of `OrganizationScanEc2InstanceWithFindings`.""" + + ebs_volumes: OrganizationEbsVolumes | OrganizationEbsVolumesDict | None + """ + Whether scanning EBS volumes should be auto-enabled for new members + joining the organization. + """ + @dataclass(kw_only=True) class OrganizationScanEc2InstanceWithFindingsResult(_SerdeShape): """ @@ -3433,6 +4414,20 @@ class RecoveryPoint(_SerdeShape): in Amazon Web Services Backup to scan. """ +class RecoveryPointDict(TypedDict, total=False): + """Dictionary form of `RecoveryPoint`.""" + + backup_vault_name: Required[str] + """ + The name of the Amazon Web Services Backup vault that contains the name + of the recovery point to be scanned. + """ + continuous_scan_details: ContinuousScanDetails | ContinuousScanDetailsDict | None + """ + Contains information about the time range within the continuous backup + in Amazon Web Services Backup to scan. + """ + @dataclass(kw_only=True) class RecoveryPointDetails(_SerdeShape): """Contains details about the backup recovery point.""" @@ -4039,6 +5034,12 @@ class S3LogsConfiguration(_SerdeShape): enable: bool | None = ... """The status of S3 data event logs as a data source.""" +class S3LogsConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3LogsConfiguration`.""" + + enable: Required[bool] + """The status of S3 data event logs as a data source.""" + @dataclass(kw_only=True) class S3LogsConfigurationResult(_SerdeShape): """Describes whether S3 data event logs will be enabled as a data source.""" @@ -4104,6 +5105,25 @@ class S3ObjectForSendObjectMalwareScan(_SerdeShape): version of the object is scanned. """ +class S3ObjectForSendObjectMalwareScanDict(TypedDict, total=False): + """Dictionary form of `S3ObjectForSendObjectMalwareScan`.""" + + bucket: str | None + """ + The name of the S3 bucket containing the object to scan. The bucket must + have GuardDuty Malware Protection enabled. + """ + key: str | None + """ + The key (name) of the S3 object to scan for malware. This must be the + full key path of the object within the bucket. + """ + version_id: str | None + """ + The version ID of the S3 object to scan. If not specified, the latest + version of the object is scanned. + """ + @dataclass(kw_only=True) class Scan(_SerdeShape): """ @@ -4175,6 +5195,15 @@ class ScanCondition(_SerdeShape): triggering for malware scan. """ +class ScanConditionDict(TypedDict, total=False): + """Dictionary form of `ScanCondition`.""" + + map_equals: Required[_Sequence[ScanConditionPair | ScanConditionPairDict]] + """ + Represents an *mapEqual* condition to be applied to a single field when + triggering for malware scan. + """ + @dataclass(kw_only=True) class ScanConditionPair(_SerdeShape): """ @@ -4190,6 +5219,17 @@ class ScanConditionPair(_SerdeShape): only the **key** will be matched. """ +class ScanConditionPairDict(TypedDict, total=False): + """Dictionary form of `ScanConditionPair`.""" + + key: Required[str] + """Represents the **key** in the map condition.""" + value: str | None + """ + Represents optional **value** in the map condition. If not specified, + only the **key** will be matched. + """ + @dataclass(kw_only=True) class ScanConfiguration(_SerdeShape): """Contains information about the configuration used for the malware scan.""" @@ -4274,6 +5314,12 @@ class ScanEc2InstanceWithFindings(_SerdeShape): ebs_volumes: bool | None = ... """Describes the configuration for scanning EBS volumes as data source.""" +class ScanEc2InstanceWithFindingsDict(TypedDict, total=False): + """Dictionary form of `ScanEc2InstanceWithFindings`.""" + + ebs_volumes: bool | None + """Describes the configuration for scanning EBS volumes as data source.""" + @dataclass(kw_only=True) class ScanEc2InstanceWithFindingsResult(_SerdeShape): """ @@ -4357,6 +5403,20 @@ class ScanResourceCriteria(_SerdeShape): certain resource. """ +class ScanResourceCriteriaDict(TypedDict, total=False): + """Dictionary form of `ScanResourceCriteria`.""" + + include: Mapping[str, ScanCondition | ScanConditionDict] | None + """ + Represents condition that when matched will allow a malware scan for a + certain resource. + """ + exclude: Mapping[str, ScanCondition | ScanConditionDict] | None + """ + Represents condition that when matched will prevent a malware scan for a + certain resource. + """ + class ScanResult(UnknownEnumMixin, StrEnum): CLEAN = "CLEAN" INFECTED = "INFECTED" @@ -4469,6 +5529,17 @@ class SendObjectMalwareScanInput(_SerdeShape): must have a Malware Protection plan configured to use this API. """ +class SendObjectMalwareScanInputDict(TypedDict, total=False): + """Dictionary form of `SendObjectMalwareScanInput`.""" + + s3_object: ( + S3ObjectForSendObjectMalwareScan | S3ObjectForSendObjectMalwareScanDict | None + ) + """ + The S3 object information for the object you want to scan. The bucket + must have a Malware Protection plan configured to use this API. + """ + @dataclass(kw_only=True) class SendObjectMalwareScanOutput(_SerdeShape): """Dataclass for SendObjectMalwareScanOutput structure.""" diff --git a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_2.pyi b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_2.pyi index a0998e5fc..7a7e193f3 100644 --- a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_2.pyi +++ b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/models_2.pyi @@ -1,7 +1,9 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -9,20 +11,31 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( Account, DataSourceConfigurations, + DataSourceConfigurationsDict, DestinationProperties, + DestinationPropertiesDict, DetectorFeatureConfiguration, + DetectorFeatureConfigurationDict, FindingCriteria, + FindingCriteriaDict, HostPath, IncrementalScanDetails, + IncrementalScanDetailsDict, ItemDetails, ItemPath, MalwareProtectionConfigurationResult, MalwareProtectionPlanActions, + MalwareProtectionPlanActionsDict, MemberFeaturesConfiguration, + MemberFeaturesConfigurationDict, OrganizationDataSourceConfigurations, + OrganizationDataSourceConfigurationsDict, OrganizationFeatureConfiguration, + OrganizationFeatureConfigurationDict, RecoveryPoint, + RecoveryPointDict, ScanResourceCriteria, + ScanResourceCriteriaDict, ScanThreatName, SecurityGroup, _SerdeShape, @@ -40,6 +53,17 @@ class SortCriteria(_SerdeShape): order_by: str | None = ... """The order by which the sorted findings are to be displayed.""" +class SortCriteriaDict(TypedDict, total=False): + """Dictionary form of `SortCriteria`.""" + + attribute_name: str | None + """ + Represents the finding attribute, such as `accountId`, that sorts the + findings. + """ + order_by: str | None + """The order by which the sorted findings are to be displayed.""" + @dataclass(kw_only=True) class StartMalwareScanConfiguration(_SerdeShape): """ @@ -64,6 +88,26 @@ class StartMalwareScanConfiguration(_SerdeShape): requested scan. """ +class StartMalwareScanConfigurationDict(TypedDict, total=False): + """Dictionary form of `StartMalwareScanConfiguration`.""" + + role: Required[str] + """ + Amazon Resource Name (ARN) of the IAM role that is used for scanning the + resource. + """ + incremental_scan_details: IncrementalScanDetails | IncrementalScanDetailsDict | None + """ + Contains information about the incremental scan configuration. When + specified, the scan will only process changes since the baseline + resource. + """ + recovery_point: RecoveryPoint | RecoveryPointDict | None + """ + Contains information about the recovery point configuration for the + requested scan. + """ + @dataclass(kw_only=True) class StartMalwareScanInput(_SerdeShape): """Dataclass for StartMalwareScanInput structure.""" @@ -85,6 +129,28 @@ class StartMalwareScanInput(_SerdeShape): scan. """ +class StartMalwareScanInputDict(TypedDict, total=False): + """Dictionary form of `StartMalwareScanInput`.""" + + resource_arn: Required[str] + """ + Amazon Resource Name (ARN) of the resource for which you invoked the + API. + """ + client_token: str | None + """ + The idempotency token for the create request. + + This field is autopopulated if not provided. + """ + scan_configuration: ( + StartMalwareScanConfiguration | StartMalwareScanConfigurationDict | None + ) + """ + Contains information about the configuration to be used for the malware + scan. + """ + @dataclass(kw_only=True) class StartMalwareScanOutput(_SerdeShape): """Dataclass for StartMalwareScanOutput structure.""" @@ -123,6 +189,25 @@ class StartMonitoringMembersInput(_SerdeShape): monitoring. """ +class StartMonitoringMembersInputDict(TypedDict, total=False): + """Dictionary form of `StartMonitoringMembersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector of the GuardDuty administrator account + associated with the member accounts to monitor. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_ids: Required[Sequence[str]] + """ + A list of account IDs of the GuardDuty member accounts to start + monitoring. + """ + @dataclass(kw_only=True) class StartMonitoringMembersOutput(_SerdeShape): """Dataclass for StartMonitoringMembersOutput structure.""" @@ -157,6 +242,22 @@ class StopMonitoringMembersInput(_SerdeShape): account_ids: list[str] | None = ... """A list of account IDs for the member accounts to stop monitoring.""" +class StopMonitoringMembersInputDict(TypedDict, total=False): + """Dictionary form of `StopMonitoringMembersInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector associated with the GuardDuty + administrator account that is monitoring member accounts. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_ids: Required[Sequence[str]] + """A list of account IDs for the member accounts to stop monitoring.""" + @dataclass(kw_only=True) class StopMonitoringMembersOutput(_SerdeShape): """Dataclass for StopMonitoringMembersOutput structure.""" @@ -196,6 +297,17 @@ class TagResourceInput(_SerdeShape): tags: dict[str, str] | None = ... """The tags to be added to a resource.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) for the GuardDuty resource to apply a tag + to. + """ + tags: Required[Mapping[str, str]] + """The tags to be added to a resource.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -374,6 +486,21 @@ class UnarchiveFindingsInput(_SerdeShape): finding_ids: list[str] | None = ... """The IDs of the findings to unarchive.""" +class UnarchiveFindingsInputDict(TypedDict, total=False): + """Dictionary form of `UnarchiveFindingsInput`.""" + + detector_id: Required[str] + """ + The ID of the detector associated with the findings to unarchive. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + finding_ids: Required[Sequence[str]] + """The IDs of the findings to unarchive.""" + @dataclass(kw_only=True) class UnarchiveFindingsOutput(_SerdeShape): """Dataclass for UnarchiveFindingsOutput structure.""" @@ -414,6 +541,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The tag keys to remove from the resource.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) for the resource to remove tags from.""" + tag_keys: Required[Sequence[str]] + """The tag keys to remove from the resource.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -437,6 +572,16 @@ class UpdateCustomDetectionRuleAssociationInput(_SerdeShape): mode: str | None = ... """The rule execution mode. Valid values: `LIVE` | `DRY_RUN`.""" +class UpdateCustomDetectionRuleAssociationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCustomDetectionRuleAssociationInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + association_id: Required[str] + """The unique identifier for the association to update.""" + mode: Required[str] + """The rule execution mode. Valid values: `LIVE` | `DRY_RUN`.""" + @dataclass(kw_only=True) class UpdateCustomDetectionRuleAssociationOutput(_SerdeShape): """Dataclass for UpdateCustomDetectionRuleAssociationOutput structure.""" @@ -471,6 +616,27 @@ class UpdateCustomDetectionRuleOrgConfigurationInput(_SerdeShape): exclusive with `IncludeAccountIds`. """ +class UpdateCustomDetectionRuleOrgConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCustomDetectionRuleOrgConfigurationInput`.""" + + rule_id: Required[str] + """The unique identifier for the custom detection rule.""" + mode: Required[str] + """ + The execution mode of the organization configuration. Valid values: + `LIVE` | `DRY_RUN`. + """ + include_account_ids: Sequence[str] | None + """ + The account IDs to include in the organization configuration. Mutually + exclusive with `ExcludeAccountIds`. + """ + exclude_account_ids: Sequence[str] | None + """ + The account IDs to exclude from the organization configuration. Mutually + exclusive with `IncludeAccountIds`. + """ + @dataclass(kw_only=True) class UpdateCustomDetectionRuleOrgConfigurationOutput(_SerdeShape): """Dataclass for UpdateCustomDetectionRuleOrgConfigurationOutput structure.""" @@ -515,6 +681,39 @@ class UpdateDetectorInput(_SerdeShape): features: list[DetectorFeatureConfiguration] | None = ... """Provides the features that will be updated for the detector.""" +class UpdateDetectorInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDetectorInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector to update. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + enable: bool | None + """Specifies whether the detector is enabled or not enabled.""" + finding_publishing_frequency: str | None + """ + An enum value that specifies how frequently findings are exported, such + as to CloudWatch Events. + """ + data_sources: DataSourceConfigurations | DataSourceConfigurationsDict | None + """ + Describes which data sources will be updated. + + There might be regional differences because some data sources might not + be available in all the Amazon Web Services Regions where GuardDuty is + presently supported. For more information, see [Regions and + endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). + """ + features: ( + Sequence[DetectorFeatureConfiguration | DetectorFeatureConfigurationDict] | None + ) + """Provides the features that will be updated for the detector.""" + @dataclass(kw_only=True) class UpdateDetectorOutput(_SerdeShape): """Dataclass for UpdateDetectorOutput structure.""" @@ -1884,130 +2083,1558 @@ class UpdateFilterInput(_SerdeShape): Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 """ -@dataclass(kw_only=True) -class UpdateFilterOutput(_SerdeShape): - """Dataclass for UpdateFilterOutput structure.""" - - name: str | None = ... - """The name of the filter.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class UpdateFindingsFeedbackInput(_SerdeShape): - """Dataclass for UpdateFindingsFeedbackInput structure.""" +class UpdateFilterInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFilterInput`.""" - detector_id: str | None = ... + detector_id: Required[str] """ - The ID of the detector that is associated with the findings for which - you want to update the feedback. + The unique ID of the detector that specifies the GuardDuty service where + you want to update a filter. To find the `detectorId` in the current Region, see the Settings page in the GuardDuty console, or run the [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) API. """ - finding_ids: list[str] | None = ... - """The IDs of the findings that you want to mark as useful or not useful.""" - feedback: str | None = ... - """The feedback for the finding.""" - comments: str | None = ... - """Additional feedback about the GuardDuty findings.""" - -@dataclass(kw_only=True) -class UpdateFindingsFeedbackOutput(_SerdeShape): - """Dataclass for UpdateFindingsFeedbackOutput structure.""" - - response_metadata: ResponseMetadata = ... + filter_name: Required[str] + """The name of the filter.""" + description: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The description of the filter. Valid characters include alphanumeric + characters, and special characters such as hyphen, period, colon, + underscore, parentheses (`{ }`, `[ ]`, and `( )`), forward slash, + horizontal tab, vertical tab, newline, form feed, return, and + whitespace. """ - -@dataclass(kw_only=True) -class UpdateIPSetInput(_SerdeShape): - """Dataclass for UpdateIPSetInput structure.""" - - detector_id: str | None = ... + action: str | None """ - The detectorID that specifies the GuardDuty service whose IPSet you want - to update. + Specifies the action that is to be applied to the findings that match + the filter. - To find the `detectorId` in the current Region, see the Settings page in - the GuardDuty console, or run the - [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) - API. - """ - ip_set_id: str | None = ... - """The unique ID that specifies the IPSet that you want to update.""" - name: str | None = ... - """The unique ID that specifies the IPSet that you want to update.""" - location: str | None = ... - """The updated URI of the file that contains the IPSet.""" - activate: bool | None = ... + Default: NOOP """ - The updated Boolean value that specifies whether the IPSet is active or - not. + rank: int | None """ - expected_bucket_owner: str | None = ... + Specifies the position of the filter in the list of current filters. + Also specifies the order in which this filter is applied to the + findings. """ - The Amazon Web Services account ID that owns the Amazon S3 bucket - specified in the **location** parameter. + finding_criteria: FindingCriteria | FindingCriteriaDict | None """ + Represents the criteria to be used in the filter for querying findings. + The following fields are available for filtering: -@dataclass(kw_only=True) -class UpdateIPSetOutput(_SerdeShape): - """Dataclass for UpdateIPSetOutput structure.""" + - accountId - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - arn -@dataclass(kw_only=True) -class UpdateMalwareProtectionPlanInput(_SerdeShape): - """Dataclass for UpdateMalwareProtectionPlanInput structure.""" + - associatedAttackSequenceArn - malware_protection_plan_id: str | None = ... - """A unique identifier associated with the Malware Protection plan.""" - role: str | None = ... - """ - Amazon Resource Name (ARN) of the IAM role with permissions to scan and - add tags to the associated protected resource. - """ - actions: MalwareProtectionPlanActions | None = ... - """ - Information about whether the tags will be added to the S3 object after - scanning. - """ - protected_resource: UpdateProtectedResource | None = ... - """ - Information about the protected resource that is associated with the - created Malware Protection plan. Presently, `S3Bucket` is the only - supported protected resource. - """ + - confidence -@dataclass(kw_only=True) -class UpdateMalwareProtectionPlanOutput(_SerdeShape): - """Dataclass for UpdateMalwareProtectionPlanOutput structure.""" + - createdAt - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - id + + - partition + + - region + + - resource.accessKeyDetails.accessKeyId + + - resource.accessKeyDetails.principalId + + - resource.accessKeyDetails.userIdentity.accessKeyId + + - resource.accessKeyDetails.userIdentity.accountId + + - resource.accessKeyDetails.userIdentity.arn + + - resource.accessKeyDetails.userIdentity.principalId + + - resource.accessKeyDetails.userIdentity.sessionContext.attributes.mfaAuthenticated + + - resource.accessKeyDetails.userIdentity.sessionContext.ec2RoleDelivery + + - resource.accessKeyDetails.userIdentity.sessionContext.invokedBy + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.accountId + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.arn + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.principalId + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.type + + - resource.accessKeyDetails.userIdentity.sessionContext.sessionIssuer.userName + + - resource.accessKeyDetails.userIdentity.sessionContext.sourceIdentity + + - resource.accessKeyDetails.userIdentity.sessionContext.webIdFederationData.attributes + + - resource.accessKeyDetails.userIdentity.sessionContext.webIdFederationData.federatedProvider + + - resource.accessKeyDetails.userIdentity.type + + - resource.accessKeyDetails.userIdentity.userName + + - resource.accessKeyDetails.userName + + - resource.accessKeyDetails.userType + + - resource.bedrockGuardrailDetails.guardrailArn + + - resource.bedrockGuardrailDetails.guardrailVersion + + - resource.containerDetails.containerRuntime + + - resource.containerDetails.id + + - resource.containerDetails.image + + - resource.containerDetails.imagePrefix + + - resource.containerDetails.name + + - resource.containerDetails.securityContext.allowPrivilegeEscalation + + - resource.containerDetails.securityContext.privileged + + - resource.containerDetails.volumeMounts.mountPath + + - resource.containerDetails.volumeMounts.name + + - resource.ebsSnapshotDetails.snapshotArn + + - resource.ebsVolumeDetails.scannedVolumeDetails.deviceName + + - resource.ebsVolumeDetails.scannedVolumeDetails.encryptionType + + - resource.ebsVolumeDetails.scannedVolumeDetails.kmsKeyArn + + - resource.ebsVolumeDetails.scannedVolumeDetails.snapshotArn + + - resource.ebsVolumeDetails.scannedVolumeDetails.volumeArn + + - resource.ebsVolumeDetails.scannedVolumeDetails.volumeSizeInGB + + - resource.ebsVolumeDetails.scannedVolumeDetails.volumeType + + - resource.ebsVolumeDetails.skippedVolumeDetails.deviceName + + - resource.ebsVolumeDetails.skippedVolumeDetails.encryptionType + + - resource.ebsVolumeDetails.skippedVolumeDetails.kmsKeyArn + + - resource.ebsVolumeDetails.skippedVolumeDetails.snapshotArn + + - resource.ebsVolumeDetails.skippedVolumeDetails.volumeArn + + - resource.ebsVolumeDetails.skippedVolumeDetails.volumeSizeInGB + + - resource.ebsVolumeDetails.skippedVolumeDetails.volumeType + + - resource.ec2ImageDetails.imageArn + + - resource.ecsClusterDetails.activeServicesCount + + - resource.ecsClusterDetails.arn + + - resource.ecsClusterDetails.name + + - resource.ecsClusterDetails.registeredContainerInstancesCount + + - resource.ecsClusterDetails.runningTasksCount + + - resource.ecsClusterDetails.status + + - resource.ecsClusterDetails.tags.key + + - resource.ecsClusterDetails.tags.value + + - resource.ecsClusterDetails.taskDetails.arn + + - resource.ecsClusterDetails.taskDetails.containers.containerRuntime + + - resource.ecsClusterDetails.taskDetails.containers.id + + - resource.ecsClusterDetails.taskDetails.containers.image + + - resource.ecsClusterDetails.taskDetails.containers.imagePrefix + + - resource.ecsClusterDetails.taskDetails.containers.name + + - resource.ecsClusterDetails.taskDetails.containers.securityContext.allowPrivilegeEscalation + + - resource.ecsClusterDetails.taskDetails.containers.securityContext.privileged + + - resource.ecsClusterDetails.taskDetails.containers.volumeMounts.mountPath + + - resource.ecsClusterDetails.taskDetails.containers.volumeMounts.name + + - resource.ecsClusterDetails.taskDetails.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.ecsClusterDetails.taskDetails.definitionArn + + - resource.ecsClusterDetails.taskDetails.group + + - resource.ecsClusterDetails.taskDetails.launchType + + - resource.ecsClusterDetails.taskDetails.startedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.ecsClusterDetails.taskDetails.startedBy + + - resource.ecsClusterDetails.taskDetails.tags.key + + - resource.ecsClusterDetails.taskDetails.tags.value + + - resource.ecsClusterDetails.taskDetails.version + + - resource.ecsClusterDetails.taskDetails.volumes.hostPath.path + + - resource.ecsClusterDetails.taskDetails.volumes.name + + - resource.eksClusterDetails.arn + + - resource.eksClusterDetails.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.eksClusterDetails.name + + - resource.eksClusterDetails.status + + - resource.eksClusterDetails.tags.key + + - resource.eksClusterDetails.tags.value + + - resource.eksClusterDetails.vpcId + + - resource.instanceDetails.availabilityZone + + - resource.instanceDetails.iamInstanceProfile.arn + + - resource.instanceDetails.iamInstanceProfile.id + + - resource.instanceDetails.imageDescription + + - resource.instanceDetails.imageId + + - resource.instanceDetails.instanceId + + - resource.instanceDetails.instanceState + + - resource.instanceDetails.instanceType + + - resource.instanceDetails.launchTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.instanceDetails.networkInterfaces.ipv6Addresses + + - resource.instanceDetails.networkInterfaces.networkInterfaceId + + - resource.instanceDetails.networkInterfaces.privateDnsName + + - resource.instanceDetails.networkInterfaces.privateIpAddress + + - resource.instanceDetails.networkInterfaces.privateIpAddresses.privateDnsName + + - resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress + + - resource.instanceDetails.networkInterfaces.publicDnsName + + - resource.instanceDetails.networkInterfaces.publicIp + + - resource.instanceDetails.networkInterfaces.securityGroups.groupId + + - resource.instanceDetails.networkInterfaces.securityGroups.groupName + + - resource.instanceDetails.networkInterfaces.subnetId + + - resource.instanceDetails.networkInterfaces.vpcId + + - resource.instanceDetails.outpostArn + + - resource.instanceDetails.platform + + - resource.instanceDetails.productCodes.productCodeId + + - resource.instanceDetails.productCodes.productCodeType + + - resource.instanceDetails.tags.key + + - resource.instanceDetails.tags.value + + - resource.kubernetesDetails.kubernetesUserDetails.groups + + - resource.kubernetesDetails.kubernetesUserDetails.impersonatedUser.groups + + - resource.kubernetesDetails.kubernetesUserDetails.impersonatedUser.username + + - resource.kubernetesDetails.kubernetesUserDetails.sessionName + + - resource.kubernetesDetails.kubernetesUserDetails.uid + + - resource.kubernetesDetails.kubernetesUserDetails.username + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.containerRuntime + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.id + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.image + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.imagePrefix + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.name + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.securityContext.allowPrivilegeEscalation + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.securityContext.privileged + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.volumeMounts.mountPath + + - resource.kubernetesDetails.kubernetesWorkloadDetails.containers.volumeMounts.name + + - resource.kubernetesDetails.kubernetesWorkloadDetails.hostIpc + + - resource.kubernetesDetails.kubernetesWorkloadDetails.hostNetwork + + - resource.kubernetesDetails.kubernetesWorkloadDetails.hostPid + + - resource.kubernetesDetails.kubernetesWorkloadDetails.name + + - resource.kubernetesDetails.kubernetesWorkloadDetails.namespace + + - resource.kubernetesDetails.kubernetesWorkloadDetails.serviceAccountName + + - resource.kubernetesDetails.kubernetesWorkloadDetails.type + + - resource.kubernetesDetails.kubernetesWorkloadDetails.uid + + - resource.kubernetesDetails.kubernetesWorkloadDetails.volumes.hostPath.path + + - resource.kubernetesDetails.kubernetesWorkloadDetails.volumes.name + + - resource.lambdaDetails.description + + - resource.lambdaDetails.functionArn + + - resource.lambdaDetails.functionName + + - resource.lambdaDetails.functionVersion + + - resource.lambdaDetails.lastModifiedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.lambdaDetails.revisionId + + - resource.lambdaDetails.role + + - resource.lambdaDetails.tags.key + + - resource.lambdaDetails.tags.value + + - resource.lambdaDetails.vpcConfig.securityGroups.groupId + + - resource.lambdaDetails.vpcConfig.securityGroups.groupName + + - resource.lambdaDetails.vpcConfig.subnetIds + + - resource.lambdaDetails.vpcConfig.vpcId + + - resource.rdsDbInstanceDetails.dbClusterIdentifier + + - resource.rdsDbInstanceDetails.dbInstanceArn + + - resource.rdsDbInstanceDetails.dbInstanceIdentifier + + - resource.rdsDbInstanceDetails.dbSecurityGroups.name + + - resource.rdsDbInstanceDetails.dbSecurityGroups.status + + - resource.rdsDbInstanceDetails.dbiResourceId + + - resource.rdsDbInstanceDetails.engine + + - resource.rdsDbInstanceDetails.engineVersion + + - resource.rdsDbInstanceDetails.iamDatabaseAuthenticationEnabled + + - resource.rdsDbInstanceDetails.publiclyAccessible + + - resource.rdsDbInstanceDetails.vpcId + + - resource.rdsDbInstanceDetails.vpcSecurityGroups.status + + - resource.rdsDbInstanceDetails.vpcSecurityGroups.vpcSecurityGroupId + + - resource.rdsDbUserDetails.application + + - resource.rdsDbUserDetails.authMethod + + - resource.rdsDbUserDetails.database + + - resource.rdsDbUserDetails.ssl + + - resource.rdsDbUserDetails.user + + - resource.rdsLimitlessDbDetails.dbClusterIdentifier + + - resource.rdsLimitlessDbDetails.dbShardGroupArn + + - resource.rdsLimitlessDbDetails.dbShardGroupIdentifier + + - resource.rdsLimitlessDbDetails.dbShardGroupResourceId + + - resource.rdsLimitlessDbDetails.engine + + - resource.rdsLimitlessDbDetails.engineVersion + + - resource.rdsLimitlessDbDetails.tags.key + + - resource.rdsLimitlessDbDetails.tags.value + + - resource.recoveryPointDetails.backupVaultName + + - resource.recoveryPointDetails.recoveryPointArn + + - resource.resourceType + + - resource.s3BucketDetails.arn + + - resource.s3BucketDetails.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - resource.s3BucketDetails.defaultServerSideEncryption.encryptionType + + - resource.s3BucketDetails.defaultServerSideEncryption.kmsMasterKeyArn + + - resource.s3BucketDetails.name + + - resource.s3BucketDetails.owner.id + + - resource.s3BucketDetails.publicAccess.effectivePermission + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.accountLevelPermissions.blockPublicAccess.blockPublicAcls + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.accountLevelPermissions.blockPublicAccess.blockPublicPolicy + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.accountLevelPermissions.blockPublicAccess.ignorePublicAcls + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.accountLevelPermissions.blockPublicAccess.restrictPublicBuckets + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.accessControlList.allowsPublicReadAccess + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.accessControlList.allowsPublicWriteAccess + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.blockPublicAccess.blockPublicAcls + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.blockPublicAccess.blockPublicPolicy + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.blockPublicAccess.ignorePublicAcls + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.blockPublicAccess.restrictPublicBuckets + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.bucketPolicy.allowsPublicReadAccess + + - resource.s3BucketDetails.publicAccess.permissionConfiguration.bucketLevelPermissions.bucketPolicy.allowsPublicWriteAccess + + - resource.s3BucketDetails.s3ObjectDetails.eTag + + - resource.s3BucketDetails.s3ObjectDetails.hash + + - resource.s3BucketDetails.s3ObjectDetails.key + + - resource.s3BucketDetails.s3ObjectDetails.objectArn + + - resource.s3BucketDetails.s3ObjectDetails.versionId + + - resource.s3BucketDetails.tags.key + + - resource.s3BucketDetails.tags.value + + - resource.s3BucketDetails.type + + - schemaVersion + + - service.action.actionType + + - service.action.awsApiCallAction.api + + - service.action.awsApiCallAction.callerType + + - service.action.awsApiCallAction.domainDetails.domain + + - service.action.awsApiCallAction.errorCode + + - service.action.awsApiCallAction.remoteAccountDetails.accountId + + - service.action.awsApiCallAction.remoteAccountDetails.affiliated + + - service.action.awsApiCallAction.remoteAccountDetails.awsServiceName + + - service.action.awsApiCallAction.remoteIpDetails.city.cityName + + - service.action.awsApiCallAction.remoteIpDetails.country.countryCode + + - service.action.awsApiCallAction.remoteIpDetails.country.countryName + + - service.action.awsApiCallAction.remoteIpDetails.geoLocation.lat + + - service.action.awsApiCallAction.remoteIpDetails.geoLocation.lon + + - service.action.awsApiCallAction.remoteIpDetails.ipAddressV4 + + - service.action.awsApiCallAction.remoteIpDetails.ipAddressV6 + + - service.action.awsApiCallAction.remoteIpDetails.organization.asn + + - service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg + + - service.action.awsApiCallAction.remoteIpDetails.organization.isp + + - service.action.awsApiCallAction.remoteIpDetails.organization.org + + - service.action.awsApiCallAction.serviceName + + - service.action.awsApiCallAction.userAgent + + - service.action.dnsRequestAction.blocked + + - service.action.dnsRequestAction.domain + + - service.action.dnsRequestAction.domainWithSuffix + + - service.action.dnsRequestAction.protocol + + - service.action.dnsRequestAction.vpcOwnerAccountId + + - service.action.kubernetesApiCallAction.namespace + + - service.action.kubernetesApiCallAction.parameters + + - service.action.kubernetesApiCallAction.remoteIpDetails.city.cityName + + - service.action.kubernetesApiCallAction.remoteIpDetails.country.countryCode + + - service.action.kubernetesApiCallAction.remoteIpDetails.country.countryName + + - service.action.kubernetesApiCallAction.remoteIpDetails.geoLocation.lat + + - service.action.kubernetesApiCallAction.remoteIpDetails.geoLocation.lon + + - service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4 + + - service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV6 + + - service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn + + - service.action.kubernetesApiCallAction.remoteIpDetails.organization.asnOrg + + - service.action.kubernetesApiCallAction.remoteIpDetails.organization.isp + + - service.action.kubernetesApiCallAction.remoteIpDetails.organization.org + + - service.action.kubernetesApiCallAction.requestUri + + - service.action.kubernetesApiCallAction.resource + + - service.action.kubernetesApiCallAction.resourceName + + - service.action.kubernetesApiCallAction.sourceIPs + + - service.action.kubernetesApiCallAction.statusCode + + - service.action.kubernetesApiCallAction.subresource + + - service.action.kubernetesApiCallAction.userAgent + + - service.action.kubernetesApiCallAction.verb + + - service.action.kubernetesPermissionCheckedDetails.allowed + + - service.action.kubernetesPermissionCheckedDetails.namespace + + - service.action.kubernetesPermissionCheckedDetails.resource + + - service.action.kubernetesPermissionCheckedDetails.verb + + - service.action.kubernetesRoleBindingDetails.kind + + - service.action.kubernetesRoleBindingDetails.name + + - service.action.kubernetesRoleBindingDetails.roleRefKind + + - service.action.kubernetesRoleBindingDetails.roleRefName + + - service.action.kubernetesRoleBindingDetails.uid + + - service.action.kubernetesRoleDetails.kind + + - service.action.kubernetesRoleDetails.name + + - service.action.kubernetesRoleDetails.uid + + - service.action.networkConnectionAction.blocked + + - service.action.networkConnectionAction.connectionDirection + + - service.action.networkConnectionAction.localIpDetails.ipAddressV4 + + - service.action.networkConnectionAction.localIpDetails.ipAddressV6 + + - service.action.networkConnectionAction.localNetworkInterface + + - service.action.networkConnectionAction.localPortDetails.port + + - service.action.networkConnectionAction.localPortDetails.portName + + - service.action.networkConnectionAction.protocol + + - service.action.networkConnectionAction.remoteIpDetails.city.cityName + + - service.action.networkConnectionAction.remoteIpDetails.country.countryCode + + - service.action.networkConnectionAction.remoteIpDetails.country.countryName + + - service.action.networkConnectionAction.remoteIpDetails.geoLocation.lat + + - service.action.networkConnectionAction.remoteIpDetails.geoLocation.lon + + - service.action.networkConnectionAction.remoteIpDetails.ipAddressV4 + + - service.action.networkConnectionAction.remoteIpDetails.ipAddressV6 + + - service.action.networkConnectionAction.remoteIpDetails.organization.asn + + - service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg + + - service.action.networkConnectionAction.remoteIpDetails.organization.isp + + - service.action.networkConnectionAction.remoteIpDetails.organization.org + + - service.action.networkConnectionAction.remotePortDetails.port + + - service.action.networkConnectionAction.remotePortDetails.portName + + - service.action.portProbeAction.blocked + + - service.action.portProbeAction.portProbeDetails.localIpDetails.ipAddressV4 + + - service.action.portProbeAction.portProbeDetails.localIpDetails.ipAddressV6 + + - service.action.portProbeAction.portProbeDetails.localPortDetails.port + + - service.action.portProbeAction.portProbeDetails.localPortDetails.portName + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.city.cityName + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.country.countryCode + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.country.countryName + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.geoLocation.lat + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.geoLocation.lon + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.ipAddressV4 + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.ipAddressV6 + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.organization.asn + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.organization.asnOrg + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.organization.isp + + - service.action.portProbeAction.portProbeDetails.remoteIpDetails.organization.org + + - service.action.rdsLoginAttemptAction.loginAttributes.application + + - service.action.rdsLoginAttemptAction.loginAttributes.failedLoginAttempts + + - service.action.rdsLoginAttemptAction.loginAttributes.successfulLoginAttempts + + - service.action.rdsLoginAttemptAction.loginAttributes.user + + - service.action.rdsLoginAttemptAction.remoteIpDetails.city.cityName + + - service.action.rdsLoginAttemptAction.remoteIpDetails.country.countryCode + + - service.action.rdsLoginAttemptAction.remoteIpDetails.country.countryName + + - service.action.rdsLoginAttemptAction.remoteIpDetails.geoLocation.lat + + - service.action.rdsLoginAttemptAction.remoteIpDetails.geoLocation.lon + + - service.action.rdsLoginAttemptAction.remoteIpDetails.ipAddressV4 + + - service.action.rdsLoginAttemptAction.remoteIpDetails.ipAddressV6 + + - service.action.rdsLoginAttemptAction.remoteIpDetails.organization.asn + + - service.action.rdsLoginAttemptAction.remoteIpDetails.organization.asnOrg + + - service.action.rdsLoginAttemptAction.remoteIpDetails.organization.isp + + - service.action.rdsLoginAttemptAction.remoteIpDetails.organization.org + + - service.additionalInfo.agentDetails.agentId + + - service.additionalInfo.agentDetails.agentVersion + + - service.additionalInfo.anomalies.anomalousAPIs + + - service.additionalInfo.authenticationMethod + + - service.additionalInfo.averagePacketSizeIn + + - service.additionalInfo.averagePacketSizeOut + + - service.additionalInfo.context + + - service.additionalInfo.domain + + - service.additionalInfo.inBytes + + - service.additionalInfo.localNetworkInterfaceOwner + + - service.additionalInfo.localPort + + - service.additionalInfo.outBytes + + - service.additionalInfo.packetsIn + + - service.additionalInfo.packetsOut + + - service.additionalInfo.policyArn + + - service.additionalInfo.policyName + + - service.additionalInfo.remotePort + + - service.additionalInfo.sample + + - service.additionalInfo.scannedPort + + - service.additionalInfo.threatFileSha256 + + - service.additionalInfo.threatListName + + - service.additionalInfo.threatName + + - service.additionalInfo.totalBytesIn + + - service.additionalInfo.totalBytesOut + + - service.additionalInfo.type + + - service.additionalInfo.unusual.asnOrg + + - service.additionalInfo.unusual.port + + - service.additionalInfo.unusualProtocol + + - service.additionalInfo.userAgent.fullUserAgent + + - service.additionalInfo.userAgent.userAgentCategory + + - service.additionalInfo.value + + - service.additionalInfo.vpcOwnerAccountId + + - service.archived + + - service.count + + - service.detection.sequence.actors.id + + - service.detection.sequence.actors.process.name + + - service.detection.sequence.actors.process.path + + - service.detection.sequence.actors.process.sha256 + + - service.detection.sequence.actors.session.createdTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.actors.session.issuer + + - service.detection.sequence.actors.session.mfaStatus + + - service.detection.sequence.actors.session.uid + + - service.detection.sequence.actors.user.account.account + + - service.detection.sequence.actors.user.account.uid + + - service.detection.sequence.actors.user.credentialUid + + - service.detection.sequence.actors.user.name + + - service.detection.sequence.actors.user.type + + - service.detection.sequence.actors.user.uid + + - service.detection.sequence.additionalSequenceTypes + + - service.detection.sequence.description + + - service.detection.sequence.endpoints.autonomousSystem.name + + - service.detection.sequence.endpoints.autonomousSystem.number + + - service.detection.sequence.endpoints.connection.direction + + - service.detection.sequence.endpoints.domain + + - service.detection.sequence.endpoints.id + + - service.detection.sequence.endpoints.ip + + - service.detection.sequence.endpoints.location.city + + - service.detection.sequence.endpoints.location.country + + - service.detection.sequence.endpoints.location.lat + + - service.detection.sequence.endpoints.location.lon + + - service.detection.sequence.endpoints.port + + - service.detection.sequence.resources.accountId + + - service.detection.sequence.resources.cloudPartition + + - service.detection.sequence.resources.data.accessKey.principalId + + - service.detection.sequence.resources.data.accessKey.userName + + - service.detection.sequence.resources.data.accessKey.userType + + - service.detection.sequence.resources.data.autoscalingAutoScalingGroup.ec2InstanceUids + + - service.detection.sequence.resources.data.cloudformationStack.ec2InstanceUids + + - service.detection.sequence.resources.data.container.image + + - service.detection.sequence.resources.data.container.imageUid + + - service.detection.sequence.resources.data.ec2Image.ec2InstanceUids + + - service.detection.sequence.resources.data.ec2Instance.availabilityZone + + - service.detection.sequence.resources.data.ec2Instance.ec2NetworkInterfaceUids + + - service.detection.sequence.resources.data.ec2Instance.iamInstanceProfile.arn + + - service.detection.sequence.resources.data.ec2Instance.iamInstanceProfile.id + + - service.detection.sequence.resources.data.ec2Instance.imageDescription + + - service.detection.sequence.resources.data.ec2Instance.instanceState + + - service.detection.sequence.resources.data.ec2Instance.instanceType + + - service.detection.sequence.resources.data.ec2Instance.outpostArn + + - service.detection.sequence.resources.data.ec2Instance.platform + + - service.detection.sequence.resources.data.ec2Instance.productCodes.productCodeId + + - service.detection.sequence.resources.data.ec2Instance.productCodes.productCodeType + + - service.detection.sequence.resources.data.ec2LaunchTemplate.ec2InstanceUids + + - service.detection.sequence.resources.data.ec2LaunchTemplate.version + + - service.detection.sequence.resources.data.ec2NetworkInterface.ipv6Addresses + + - service.detection.sequence.resources.data.ec2NetworkInterface.privateIpAddresses.privateDnsName + + - service.detection.sequence.resources.data.ec2NetworkInterface.privateIpAddresses.privateIpAddress + + - service.detection.sequence.resources.data.ec2NetworkInterface.publicIp + + - service.detection.sequence.resources.data.ec2NetworkInterface.securityGroups.groupId + + - service.detection.sequence.resources.data.ec2NetworkInterface.securityGroups.groupName + + - service.detection.sequence.resources.data.ec2NetworkInterface.subNetId + + - service.detection.sequence.resources.data.ec2NetworkInterface.vpcId + + - service.detection.sequence.resources.data.ec2Vpc.ec2InstanceUids + + - service.detection.sequence.resources.data.ecsCluster.ec2InstanceUids + + - service.detection.sequence.resources.data.ecsCluster.status + + - service.detection.sequence.resources.data.ecsTask.containerUids + + - service.detection.sequence.resources.data.ecsTask.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.resources.data.ecsTask.launchType + + - service.detection.sequence.resources.data.ecsTask.taskDefinitionArn + + - service.detection.sequence.resources.data.eksCluster.arn + + - service.detection.sequence.resources.data.eksCluster.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.resources.data.eksCluster.ec2InstanceUids + + - service.detection.sequence.resources.data.eksCluster.status + + - service.detection.sequence.resources.data.eksCluster.vpcId + + - service.detection.sequence.resources.data.iamInstanceProfile.ec2InstanceUids + + - service.detection.sequence.resources.data.iamInstanceProfile.id + + - service.detection.sequence.resources.data.kubernetesWorkload.containerUids + + - service.detection.sequence.resources.data.kubernetesWorkload.namespace + + - service.detection.sequence.resources.data.kubernetesWorkload.type + + - service.detection.sequence.resources.data.s3Bucket.accountPublicAccess.publicAclAccess + + - service.detection.sequence.resources.data.s3Bucket.accountPublicAccess.publicAclIgnoreBehavior + + - service.detection.sequence.resources.data.s3Bucket.accountPublicAccess.publicBucketRestrictBehavior + + - service.detection.sequence.resources.data.s3Bucket.accountPublicAccess.publicPolicyAccess + + - service.detection.sequence.resources.data.s3Bucket.bucketPublicAccess.publicAclAccess + + - service.detection.sequence.resources.data.s3Bucket.bucketPublicAccess.publicAclIgnoreBehavior + + - service.detection.sequence.resources.data.s3Bucket.bucketPublicAccess.publicBucketRestrictBehavior + + - service.detection.sequence.resources.data.s3Bucket.bucketPublicAccess.publicPolicyAccess + + - service.detection.sequence.resources.data.s3Bucket.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.resources.data.s3Bucket.effectivePermission + + - service.detection.sequence.resources.data.s3Bucket.encryptionKeyArn + + - service.detection.sequence.resources.data.s3Bucket.encryptionType + + - service.detection.sequence.resources.data.s3Bucket.ownerId + + - service.detection.sequence.resources.data.s3Bucket.publicReadAccess + + - service.detection.sequence.resources.data.s3Bucket.publicWriteAccess + + - service.detection.sequence.resources.data.s3Bucket.s3ObjectUids + + - service.detection.sequence.resources.data.s3Object.eTag + + - service.detection.sequence.resources.data.s3Object.key + + - service.detection.sequence.resources.data.s3Object.versionId + + - service.detection.sequence.resources.name + + - service.detection.sequence.resources.region + + - service.detection.sequence.resources.resourceType + + - service.detection.sequence.resources.service + + - service.detection.sequence.resources.tags.key + + - service.detection.sequence.resources.tags.value + + - service.detection.sequence.resources.uid + + - service.detection.sequence.sequenceIndicators.key + + - service.detection.sequence.sequenceIndicators.title + + - service.detection.sequence.sequenceIndicators.values + + - service.detection.sequence.signals.actorIds + + - service.detection.sequence.signals.count + + - service.detection.sequence.signals.createdAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.signals.description + + - service.detection.sequence.signals.endpointIds + + - service.detection.sequence.signals.firstSeenAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.signals.lastSeenAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.signals.name + + - service.detection.sequence.signals.resourceUids + + - service.detection.sequence.signals.severity + + - service.detection.sequence.signals.signalIndicators.key + + - service.detection.sequence.signals.signalIndicators.title + + - service.detection.sequence.signals.signalIndicators.values + + - service.detection.sequence.signals.type + + - service.detection.sequence.signals.uid + + - service.detection.sequence.signals.updatedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.detection.sequence.uid + + - service.detectorId + + - service.ebsVolumeScanDetails.scanCompletedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.ebsVolumeScanDetails.scanDetections.highestSeverityThreatDetails.count + + - service.ebsVolumeScanDetails.scanDetections.highestSeverityThreatDetails.severity + + - service.ebsVolumeScanDetails.scanDetections.highestSeverityThreatDetails.threatName + + - service.ebsVolumeScanDetails.scanDetections.scannedItemCount.files + + - service.ebsVolumeScanDetails.scanDetections.scannedItemCount.totalGb + + - service.ebsVolumeScanDetails.scanDetections.scannedItemCount.volumes + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.itemCount + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.shortened + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.fileName + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.filePath + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.volumeArn + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.itemCount + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.name + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity + + - service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.uniqueThreatNameCount + + - service.ebsVolumeScanDetails.scanDetections.threatsDetectedItemCount.files + + - service.ebsVolumeScanDetails.scanId + + - service.ebsVolumeScanDetails.scanStartedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.ebsVolumeScanDetails.scanType + + - service.ebsVolumeScanDetails.sources + + - service.ebsVolumeScanDetails.triggerFindingId + + - service.eventFirstSeen + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.eventLastSeen + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.evidence.threatIntelligenceDetails.threatFileSha256 + + - service.evidence.threatIntelligenceDetails.threatListName + + - service.evidence.threatIntelligenceDetails.threatNames + + - service.featureName + + - service.malwareScanDetails.scanCategory + + - service.malwareScanDetails.scanConfiguration.incrementalScanDetails.baselineResourceArn + + - service.malwareScanDetails.scanConfiguration.triggerType + + - service.malwareScanDetails.scanId + + - service.malwareScanDetails.scanType + + - service.malwareScanDetails.threats.count + + - service.malwareScanDetails.threats.hash + + - service.malwareScanDetails.threats.itemDetails.additionalInfo.deviceName + + - service.malwareScanDetails.threats.itemDetails.additionalInfo.versionId + + - service.malwareScanDetails.threats.itemDetails.hash + + - service.malwareScanDetails.threats.itemDetails.itemPath + + - service.malwareScanDetails.threats.itemDetails.resourceArn + + - service.malwareScanDetails.threats.itemPaths.hash + + - service.malwareScanDetails.threats.itemPaths.nestedItemPath + + - service.malwareScanDetails.threats.name + + - service.malwareScanDetails.threats.source + + - service.malwareScanDetails.uniqueThreatCount + + - service.resourceRole + + - service.runtimeDetails.context.addressFamily + + - service.runtimeDetails.context.commandLineExample + + - service.runtimeDetails.context.fileOperation + + - service.runtimeDetails.context.filePath + + - service.runtimeDetails.context.fileSystemType + + - service.runtimeDetails.context.flags + + - service.runtimeDetails.context.ianaProtocolNumber + + - service.runtimeDetails.context.ldPreloadValue + + - service.runtimeDetails.context.libraryPath + + - service.runtimeDetails.context.memoryRegions + + - service.runtimeDetails.context.modifiedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.modifyingProcess.euid + + - service.runtimeDetails.context.modifyingProcess.executablePath + + - service.runtimeDetails.context.modifyingProcess.executableSha256 + + - service.runtimeDetails.context.modifyingProcess.lineage.euid + + - service.runtimeDetails.context.modifyingProcess.lineage.executablePath + + - service.runtimeDetails.context.modifyingProcess.lineage.name + + - service.runtimeDetails.context.modifyingProcess.lineage.namespacePid + + - service.runtimeDetails.context.modifyingProcess.lineage.parentUuid + + - service.runtimeDetails.context.modifyingProcess.lineage.pid + + - service.runtimeDetails.context.modifyingProcess.lineage.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.modifyingProcess.lineage.userId + + - service.runtimeDetails.context.modifyingProcess.lineage.uuid + + - service.runtimeDetails.context.modifyingProcess.name + + - service.runtimeDetails.context.modifyingProcess.namespacePid + + - service.runtimeDetails.context.modifyingProcess.parentUuid + + - service.runtimeDetails.context.modifyingProcess.pid + + - service.runtimeDetails.context.modifyingProcess.pwd + + - service.runtimeDetails.context.modifyingProcess.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.modifyingProcess.user + + - service.runtimeDetails.context.modifyingProcess.userId + + - service.runtimeDetails.context.modifyingProcess.uuid + + - service.runtimeDetails.context.moduleFilePath + + - service.runtimeDetails.context.moduleName + + - service.runtimeDetails.context.moduleSha256 + + - service.runtimeDetails.context.mountSource + + - service.runtimeDetails.context.mountTarget + + - service.runtimeDetails.context.relatedFilePaths + + - service.runtimeDetails.context.releaseAgentPath + + - service.runtimeDetails.context.runcBinaryPath + + - service.runtimeDetails.context.scriptPath + + - service.runtimeDetails.context.serviceName + + - service.runtimeDetails.context.shellHistoryFilePath + + - service.runtimeDetails.context.socketPath + + - service.runtimeDetails.context.targetProcess.euid + + - service.runtimeDetails.context.targetProcess.executablePath + + - service.runtimeDetails.context.targetProcess.executableSha256 + + - service.runtimeDetails.context.targetProcess.lineage.euid + + - service.runtimeDetails.context.targetProcess.lineage.executablePath + + - service.runtimeDetails.context.targetProcess.lineage.name + + - service.runtimeDetails.context.targetProcess.lineage.namespacePid + + - service.runtimeDetails.context.targetProcess.lineage.parentUuid + + - service.runtimeDetails.context.targetProcess.lineage.pid + + - service.runtimeDetails.context.targetProcess.lineage.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.targetProcess.lineage.userId + + - service.runtimeDetails.context.targetProcess.lineage.uuid + + - service.runtimeDetails.context.targetProcess.name + + - service.runtimeDetails.context.targetProcess.namespacePid + + - service.runtimeDetails.context.targetProcess.parentUuid + + - service.runtimeDetails.context.targetProcess.pid + + - service.runtimeDetails.context.targetProcess.pwd + + - service.runtimeDetails.context.targetProcess.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.context.targetProcess.user + + - service.runtimeDetails.context.targetProcess.userId + + - service.runtimeDetails.context.targetProcess.uuid + + - service.runtimeDetails.context.threatFilePath + + - service.runtimeDetails.context.toolCategory + + - service.runtimeDetails.context.toolName + + - service.runtimeDetails.process.euid + + - service.runtimeDetails.process.executablePath + + - service.runtimeDetails.process.executableSha256 + + - service.runtimeDetails.process.lineage.euid + + - service.runtimeDetails.process.lineage.executablePath + + - service.runtimeDetails.process.lineage.name + + - service.runtimeDetails.process.lineage.namespacePid + + - service.runtimeDetails.process.lineage.parentUuid + + - service.runtimeDetails.process.lineage.pid + + - service.runtimeDetails.process.lineage.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.process.lineage.userId + + - service.runtimeDetails.process.lineage.uuid + + - service.runtimeDetails.process.name + + - service.runtimeDetails.process.namespacePid + + - service.runtimeDetails.process.parentUuid + + - service.runtimeDetails.process.pid + + - service.runtimeDetails.process.pwd + + - service.runtimeDetails.process.startTime + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + + - service.runtimeDetails.process.user + + - service.runtimeDetails.process.userId + + - service.runtimeDetails.process.uuid + + - service.serviceName + + - service.userFeedback + + - severity + + To configure severity based filters, use the following for the + [FindingCriteria](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_FindingCriteria.html) + condition: + + - **Low**: `["1", "2", "3"]` + + - **Medium**: `["4", "5", "6"]` + + - **High**: `["7", "8"]` + + - **Critical**: `["9", "10"]` + + For more information, see [Findings severity + levels](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-severity.html) + in the *Amazon GuardDuty User Guide*. + + - type + + - updatedAt + + Type: Timestamp in Unix Epoch millisecond format. Ex: 1486685375000 + """ + +@dataclass(kw_only=True) +class UpdateFilterOutput(_SerdeShape): + """Dataclass for UpdateFilterOutput structure.""" + + name: str | None = ... + """The name of the filter.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class UpdateFindingsFeedbackInput(_SerdeShape): + """Dataclass for UpdateFindingsFeedbackInput structure.""" + + detector_id: str | None = ... + """ + The ID of the detector that is associated with the findings for which + you want to update the feedback. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + finding_ids: list[str] | None = ... + """The IDs of the findings that you want to mark as useful or not useful.""" + feedback: str | None = ... + """The feedback for the finding.""" + comments: str | None = ... + """Additional feedback about the GuardDuty findings.""" + +class UpdateFindingsFeedbackInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFindingsFeedbackInput`.""" + + detector_id: Required[str] + """ + The ID of the detector that is associated with the findings for which + you want to update the feedback. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + finding_ids: Required[Sequence[str]] + """The IDs of the findings that you want to mark as useful or not useful.""" + feedback: Required[str] + """The feedback for the finding.""" + comments: str | None + """Additional feedback about the GuardDuty findings.""" + +@dataclass(kw_only=True) +class UpdateFindingsFeedbackOutput(_SerdeShape): + """Dataclass for UpdateFindingsFeedbackOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class UpdateIPSetInput(_SerdeShape): + """Dataclass for UpdateIPSetInput structure.""" + + detector_id: str | None = ... + """ + The detectorID that specifies the GuardDuty service whose IPSet you want + to update. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + ip_set_id: str | None = ... + """The unique ID that specifies the IPSet that you want to update.""" + name: str | None = ... + """The unique ID that specifies the IPSet that you want to update.""" + location: str | None = ... + """The updated URI of the file that contains the IPSet.""" + activate: bool | None = ... + """ + The updated Boolean value that specifies whether the IPSet is active or + not. + """ + expected_bucket_owner: str | None = ... + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. + """ + +class UpdateIPSetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateIPSetInput`.""" + + detector_id: Required[str] + """ + The detectorID that specifies the GuardDuty service whose IPSet you want + to update. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + ip_set_id: Required[str] + """The unique ID that specifies the IPSet that you want to update.""" + name: str | None + """The unique ID that specifies the IPSet that you want to update.""" + location: str | None + """The updated URI of the file that contains the IPSet.""" + activate: bool | None + """ + The updated Boolean value that specifies whether the IPSet is active or + not. + """ + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. + """ + +@dataclass(kw_only=True) +class UpdateIPSetOutput(_SerdeShape): + """Dataclass for UpdateIPSetOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class UpdateMalwareProtectionPlanInput(_SerdeShape): + """Dataclass for UpdateMalwareProtectionPlanInput structure.""" + + malware_protection_plan_id: str | None = ... + """A unique identifier associated with the Malware Protection plan.""" + role: str | None = ... + """ + Amazon Resource Name (ARN) of the IAM role with permissions to scan and + add tags to the associated protected resource. + """ + actions: MalwareProtectionPlanActions | None = ... + """ + Information about whether the tags will be added to the S3 object after + scanning. + """ + protected_resource: UpdateProtectedResource | None = ... + """ + Information about the protected resource that is associated with the + created Malware Protection plan. Presently, `S3Bucket` is the only + supported protected resource. + """ + +class UpdateMalwareProtectionPlanInputDict(TypedDict, total=False): + """Dictionary form of `UpdateMalwareProtectionPlanInput`.""" + + malware_protection_plan_id: Required[str] + """A unique identifier associated with the Malware Protection plan.""" + role: str | None + """ + Amazon Resource Name (ARN) of the IAM role with permissions to scan and + add tags to the associated protected resource. + """ + actions: MalwareProtectionPlanActions | MalwareProtectionPlanActionsDict | None + """ + Information about whether the tags will be added to the S3 object after + scanning. + """ + protected_resource: UpdateProtectedResource | UpdateProtectedResourceDict | None + """ + Information about the protected resource that is associated with the + created Malware Protection plan. Presently, `S3Bucket` is the only + supported protected resource. + """ + +@dataclass(kw_only=True) +class UpdateMalwareProtectionPlanOutput(_SerdeShape): + """Dataclass for UpdateMalwareProtectionPlanOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ @dataclass(kw_only=True) class UpdateMalwareScanSettingsInput(_SerdeShape): @@ -2031,6 +3658,27 @@ class UpdateMalwareScanSettingsInput(_SerdeShape): ebs_snapshot_preservation: str | None = ... """An enum value representing possible snapshot preservation settings.""" +class UpdateMalwareScanSettingsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateMalwareScanSettingsInput`.""" + + detector_id: Required[str] + """ + The unique ID of the detector that specifies the GuardDuty service where + you want to update scan settings. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + scan_resource_criteria: ScanResourceCriteria | ScanResourceCriteriaDict | None + """ + Represents the criteria to be used in the filter for selecting resources + to scan. + """ + ebs_snapshot_preservation: str | None + """An enum value representing possible snapshot preservation settings.""" + @dataclass(kw_only=True) class UpdateMalwareScanSettingsOutput(_SerdeShape): """Dataclass for UpdateMalwareScanSettingsOutput structure.""" @@ -2066,6 +3714,30 @@ class UpdateMemberDetectorsInput(_SerdeShape): accounts. """ +class UpdateMemberDetectorsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateMemberDetectorsInput`.""" + + detector_id: Required[str] + """ + The detector ID of the administrator account. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + account_ids: Required[Sequence[str]] + """A list of member account IDs to be updated.""" + data_sources: DataSourceConfigurations | DataSourceConfigurationsDict | None + """Describes which data sources will be updated.""" + features: ( + Sequence[MemberFeaturesConfiguration | MemberFeaturesConfigurationDict] | None + ) + """ + A list of features that will be updated for the specified member + accounts. + """ + @dataclass(kw_only=True) class UpdateMemberDetectorsOutput(_SerdeShape): """Dataclass for UpdateMemberDetectorsOutput structure.""" @@ -2143,6 +3815,74 @@ class UpdateOrganizationConfigurationInput(_SerdeShape): no new account will have the corresponding option as enabled. """ +class UpdateOrganizationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateOrganizationConfigurationInput`.""" + + detector_id: Required[str] + """ + The ID of the detector that configures the delegated administrator. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + auto_enable: bool | None + """ + Represents whether to automatically enable member accounts in the + organization. This applies to only new member accounts, not the existing + member accounts. When a new account joins the organization, the chosen + features will be enabled for them by default. + + Even though this is still supported, we recommend using + `AutoEnableOrganizationMembers` to achieve the similar results. You must + provide a value for either `autoEnableOrganizationMembers` or + `autoEnable`. + """ + data_sources: ( + OrganizationDataSourceConfigurations + | OrganizationDataSourceConfigurationsDict + | None + ) + """Describes which data sources will be updated.""" + features: ( + Sequence[ + OrganizationFeatureConfiguration | OrganizationFeatureConfigurationDict + ] + | None + ) + """A list of features that will be configured for the organization.""" + auto_enable_organization_members: str | None + """ + Indicates the auto-enablement configuration of GuardDuty for the member + accounts in the organization. You must provide a value for either + `autoEnableOrganizationMembers` or `autoEnable`. + + Use one of the following configuration values for + `autoEnableOrganizationMembers`: + + - `NEW`: Indicates that when a new account joins the organization, they + will have GuardDuty enabled automatically. + + - `ALL`: Indicates that all accounts in the organization have GuardDuty + enabled automatically. This includes `NEW` accounts that join the + organization and accounts that may have been suspended or removed from + the organization in GuardDuty. + + It may take up to 24 hours to update the configuration for all the + member accounts. + + - `NONE`: Indicates that GuardDuty will not be automatically enabled for + any account in the organization. The administrator must manage + GuardDuty for each account in the organization individually. + + When you update the auto-enable setting from `ALL` or `NEW` to `NONE`, + this action doesn't disable the corresponding option for your + existing accounts. This configuration will apply to the new accounts + that join the organization. After you update the auto-enable settings, + no new account will have the corresponding option as enabled. + """ + @dataclass(kw_only=True) class UpdateOrganizationConfigurationOutput(_SerdeShape): """Dataclass for UpdateOrganizationConfigurationOutput structure.""" @@ -2166,6 +3906,12 @@ class UpdateProtectedResource(_SerdeShape): s3_bucket: UpdateS3BucketResource | None = ... """Information about the protected S3 bucket resource.""" +class UpdateProtectedResourceDict(TypedDict, total=False): + """Dictionary form of `UpdateProtectedResource`.""" + + s3_bucket: UpdateS3BucketResource | UpdateS3BucketResourceDict | None + """Information about the protected S3 bucket resource.""" + @dataclass(kw_only=True) class UpdatePublishingDestinationInput(_SerdeShape): """Dataclass for UpdatePublishingDestinationInput structure.""" @@ -2188,6 +3934,27 @@ class UpdatePublishingDestinationInput(_SerdeShape): `KmsKeyArn` of the publishing destination. """ +class UpdatePublishingDestinationInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePublishingDestinationInput`.""" + + detector_id: Required[str] + """ + The ID of the detector associated with the publishing destinations to + update. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + destination_id: Required[str] + """The ID of the publishing destination to update.""" + destination_properties: DestinationProperties | DestinationPropertiesDict | None + """ + A `DestinationProperties` object that includes the `DestinationArn` and + `KmsKeyArn` of the publishing destination. + """ + @dataclass(kw_only=True) class UpdatePublishingDestinationOutput(_SerdeShape): """Dataclass for UpdatePublishingDestinationOutput structure.""" @@ -2210,6 +3977,15 @@ class UpdateS3BucketResource(_SerdeShape): scanned only if it belongs to any of the specified object prefixes. """ +class UpdateS3BucketResourceDict(TypedDict, total=False): + """Dictionary form of `UpdateS3BucketResource`.""" + + object_prefixes: Sequence[str] | None + """ + Information about the specified object prefixes. The S3 object will be + scanned only if it belongs to any of the specified object prefixes. + """ + @dataclass(kw_only=True) class UpdateThreatEntitySetInput(_SerdeShape): """Dataclass for UpdateThreatEntitySetInput structure.""" @@ -2251,6 +4027,46 @@ class UpdateThreatEntitySetInput(_SerdeShape): entity set to be effective. """ +class UpdateThreatEntitySetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateThreatEntitySetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the GuardDuty detector associated with the threat + entity set that you want to update. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + threat_entity_set_id: Required[str] + """ + The ID returned by GuardDuty after updating the threat entity set + resource. + """ + name: str | None + """ + A user-friendly name to identify the trusted entity set. + + The name of your list can include lowercase letters, uppercase letters, + numbers, dash (-), and underscore (_). + """ + location: str | None + """The URI of the file that contains the trusted entity set.""" + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. + """ + activate: bool | None + """ + A boolean value that indicates whether GuardDuty is to start using this + updated threat entity set. After you update an entity set, you will need + to activate it again. It might take up to 15 minutes for the updated + entity set to be effective. + """ + @dataclass(kw_only=True) class UpdateThreatEntitySetOutput(_SerdeShape): """Dataclass for UpdateThreatEntitySetOutput structure.""" @@ -2294,6 +4110,36 @@ class UpdateThreatIntelSetInput(_SerdeShape): specified in the **location** parameter. """ +class UpdateThreatIntelSetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateThreatIntelSetInput`.""" + + detector_id: Required[str] + """ + The detectorID that specifies the GuardDuty service whose ThreatIntelSet + you want to update. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + threat_intel_set_id: Required[str] + """The unique ID that specifies the ThreatIntelSet that you want to update.""" + name: str | None + """The unique ID that specifies the ThreatIntelSet that you want to update.""" + location: str | None + """The updated URI of the file that contains the ThreateIntelSet.""" + activate: bool | None + """ + The updated Boolean value that specifies whether the ThreateIntelSet is + active or not. + """ + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. + """ + @dataclass(kw_only=True) class UpdateThreatIntelSetOutput(_SerdeShape): """Dataclass for UpdateThreatIntelSetOutput structure.""" @@ -2347,6 +4193,46 @@ class UpdateTrustedEntitySetInput(_SerdeShape): updated entity set to be effective. """ +class UpdateTrustedEntitySetInputDict(TypedDict, total=False): + """Dictionary form of `UpdateTrustedEntitySetInput`.""" + + detector_id: Required[str] + """ + The unique ID of the GuardDuty detector associated with the threat + entity set that you want to update. + + To find the `detectorId` in the current Region, see the Settings page in + the GuardDuty console, or run the + [ListDetectors](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html) + API. + """ + trusted_entity_set_id: Required[str] + """ + The ID returned by GuardDuty after updating the trusted entity set + resource. + """ + name: str | None + """ + A user-friendly name to identify the trusted entity set. + + The name of your list can include lowercase letters, uppercase letters, + numbers, dash (-), and underscore (_). + """ + location: str | None + """The URI of the file that contains the trusted entity set.""" + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID that owns the Amazon S3 bucket + specified in the **location** parameter. + """ + activate: bool | None + """ + A boolean value that indicates whether GuardDuty is to start using this + updated trusted entity set. After you update an entity set, you will + need to activate it again. It might take up to 15 minutes for the + updated entity set to be effective. + """ + @dataclass(kw_only=True) class UpdateTrustedEntitySetOutput(_SerdeShape): """Dataclass for UpdateTrustedEntitySetOutput structure.""" @@ -2384,6 +4270,21 @@ class UsageCriteria(_SerdeShape): features: list[str] | None = ... """The features to aggregate usage statistics from.""" +class UsageCriteriaDict(TypedDict, total=False): + """Dictionary form of `UsageCriteria`.""" + + account_ids: Sequence[str] | None + """The account IDs to aggregate usage statistics from.""" + data_sources: Sequence[str] | None + """The data sources to aggregate usage statistics from.""" + resources: Sequence[str] | None + """ + The resources to aggregate usage statistics from. Only accepts exact + resource names. + """ + features: Sequence[str] | None + """The features to aggregate usage statistics from.""" + @dataclass(kw_only=True) class UsageDataSourceResult(_SerdeShape): """Contains information on the result of usage based on data source type.""" diff --git a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/schemas.py b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/schemas.py index 7c60a3023..bf68f53a8 100644 --- a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/schemas.py +++ b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/_private/schemas.py @@ -915,7 +915,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/aio/client.py b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/aio/client.py index f0d27ce26..3a921c758 100644 --- a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/aio/client.py +++ b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,209 +20,107 @@ if TYPE_CHECKING: from ..models import ( - AcceptAdministratorInvitationInput, AcceptAdministratorInvitationOutput, - AcceptInvitationInput, AcceptInvitationOutput, - ArchiveFindingsInput, ArchiveFindingsOutput, - CreateCustomDetectionRuleAssociationInput, CreateCustomDetectionRuleAssociationOutput, - CreateCustomDetectionRuleOrgConfigurationInput, CreateCustomDetectionRuleOrgConfigurationOutput, - CreateDetectorInput, CreateDetectorOutput, - CreateFilterInput, CreateFilterOutput, - CreateIPSetInput, CreateIPSetOutput, - CreateInvestigationInput, CreateInvestigationOutput, - CreateMalwareProtectionPlanInput, CreateMalwareProtectionPlanOutput, - CreateMembersInput, CreateMembersOutput, - CreatePublishingDestinationInput, CreatePublishingDestinationOutput, - CreateSampleFindingsInput, CreateSampleFindingsOutput, - CreateThreatEntitySetInput, CreateThreatEntitySetOutput, - CreateThreatIntelSetInput, CreateThreatIntelSetOutput, - CreateTrustedEntitySetInput, CreateTrustedEntitySetOutput, - DeclineInvitationsInput, DeclineInvitationsOutput, - DeleteCustomDetectionRuleAssociationInput, DeleteCustomDetectionRuleAssociationOutput, - DeleteCustomDetectionRuleOrgConfigurationInput, DeleteCustomDetectionRuleOrgConfigurationOutput, - DeleteDetectorInput, DeleteDetectorOutput, - DeleteFilterInput, DeleteFilterOutput, - DeleteIPSetInput, DeleteIPSetOutput, - DeleteInvitationsInput, DeleteInvitationsOutput, - DeleteMalwareProtectionPlanInput, DeleteMalwareProtectionPlanOutput, - DeleteMembersInput, DeleteMembersOutput, - DeletePublishingDestinationInput, DeletePublishingDestinationOutput, - DeleteThreatEntitySetInput, DeleteThreatEntitySetOutput, - DeleteThreatIntelSetInput, DeleteThreatIntelSetOutput, - DeleteTrustedEntitySetInput, DeleteTrustedEntitySetOutput, - DescribeMalwareScansInput, DescribeMalwareScansOutput, - DescribeOrganizationConfigurationInput, DescribeOrganizationConfigurationOutput, - DescribePublishingDestinationInput, DescribePublishingDestinationOutput, - DisableOrganizationAdminAccountInput, DisableOrganizationAdminAccountOutput, - DisassociateFromAdministratorAccountInput, DisassociateFromAdministratorAccountOutput, - DisassociateFromMasterAccountInput, DisassociateFromMasterAccountOutput, - DisassociateMembersInput, DisassociateMembersOutput, - EnableOrganizationAdminAccountInput, EnableOrganizationAdminAccountOutput, - GetAdministratorAccountInput, GetAdministratorAccountOutput, - GetCoverageStatisticsInput, GetCoverageStatisticsOutput, - GetCustomDetectionRuleAssociationInput, GetCustomDetectionRuleAssociationOutput, - GetCustomDetectionRuleInput, - GetCustomDetectionRuleOrgConfigurationInput, GetCustomDetectionRuleOrgConfigurationOutput, GetCustomDetectionRuleOutput, - GetDetectorInput, GetDetectorOutput, - GetFilterInput, GetFilterOutput, - GetFindingsInput, GetFindingsOutput, - GetFindingsStatisticsInput, GetFindingsStatisticsOutput, - GetIPSetInput, GetIPSetOutput, - GetInvestigationInput, GetInvestigationOutput, - GetInvitationsCountInput, GetInvitationsCountOutput, - GetMalwareProtectionPlanInput, GetMalwareProtectionPlanOutput, - GetMalwareScanInput, GetMalwareScanOutput, - GetMalwareScanSettingsInput, GetMalwareScanSettingsOutput, - GetMasterAccountInput, GetMasterAccountOutput, - GetMemberDetectorsInput, GetMemberDetectorsOutput, - GetMembersInput, GetMembersOutput, - GetOrganizationStatisticsInput, GetOrganizationStatisticsOutput, - GetRemainingFreeTrialDaysInput, GetRemainingFreeTrialDaysOutput, - GetThreatEntitySetInput, GetThreatEntitySetOutput, - GetThreatIntelSetInput, GetThreatIntelSetOutput, - GetTrustedEntitySetInput, GetTrustedEntitySetOutput, - GetUsageStatisticsInput, GetUsageStatisticsOutput, - InviteMembersInput, InviteMembersOutput, - ListCoverageInput, ListCoverageOutput, - ListCustomDetectionRuleAssociationsInput, ListCustomDetectionRuleAssociationsOutput, - ListCustomDetectionRuleOrgConfigurationsInput, ListCustomDetectionRuleOrgConfigurationsOutput, - ListCustomDetectionRulesInput, ListCustomDetectionRulesOutput, - ListDetectorsInput, ListDetectorsOutput, - ListFiltersInput, ListFiltersOutput, - ListFindingsInput, ListFindingsOutput, - ListIPSetsInput, ListIPSetsOutput, - ListInvestigationsInput, ListInvestigationsOutput, - ListInvitationsInput, ListInvitationsOutput, - ListMalwareProtectionPlansInput, ListMalwareProtectionPlansOutput, - ListMalwareScansInput, ListMalwareScansOutput, - ListMembersInput, ListMembersOutput, - ListOrganizationAdminAccountsInput, ListOrganizationAdminAccountsOutput, - ListPublishingDestinationsInput, ListPublishingDestinationsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListThreatEntitySetsInput, ListThreatEntitySetsOutput, - ListThreatIntelSetsInput, ListThreatIntelSetsOutput, - ListTrustedEntitySetsInput, ListTrustedEntitySetsOutput, - SendObjectMalwareScanInput, SendObjectMalwareScanOutput, - StartMalwareScanInput, StartMalwareScanOutput, - StartMonitoringMembersInput, StartMonitoringMembersOutput, - StopMonitoringMembersInput, StopMonitoringMembersOutput, - TagResourceInput, TagResourceOutput, - UnarchiveFindingsInput, UnarchiveFindingsOutput, - UntagResourceInput, UntagResourceOutput, - UpdateCustomDetectionRuleAssociationInput, UpdateCustomDetectionRuleAssociationOutput, - UpdateCustomDetectionRuleOrgConfigurationInput, UpdateCustomDetectionRuleOrgConfigurationOutput, - UpdateDetectorInput, UpdateDetectorOutput, - UpdateFilterInput, UpdateFilterOutput, - UpdateFindingsFeedbackInput, UpdateFindingsFeedbackOutput, - UpdateIPSetInput, UpdateIPSetOutput, - UpdateMalwareProtectionPlanInput, UpdateMalwareProtectionPlanOutput, - UpdateMalwareScanSettingsInput, UpdateMalwareScanSettingsOutput, - UpdateMemberDetectorsInput, UpdateMemberDetectorsOutput, - UpdateOrganizationConfigurationInput, UpdateOrganizationConfigurationOutput, - UpdatePublishingDestinationInput, UpdatePublishingDestinationOutput, - UpdateThreatEntitySetInput, UpdateThreatEntitySetOutput, - UpdateThreatIntelSetInput, UpdateThreatIntelSetOutput, - UpdateTrustedEntitySetInput, UpdateTrustedEntitySetOutput, ) @@ -262,20 +160,31 @@ class AsyncGuardDutyClient(AsyncClient[AsyncGuardDutyConfig]): . """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def accept_administrator_invitation( self, - input: AcceptAdministratorInvitationInput, + request: _models.AcceptAdministratorInvitationInput + | _models.AcceptAdministratorInvitationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AcceptAdministratorInvitationOutput: ... + + @_overload + async def accept_administrator_invitation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptAdministratorInvitationInputDict], ) -> AcceptAdministratorInvitationOutput: """ Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation. Args: - input: - An instance of `AcceptAdministratorInvitationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -285,20 +194,39 @@ async def accept_administrator_invitation( Returns: An instance of `AcceptAdministratorInvitationOutput`. """ + + async def accept_administrator_invitation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptAdministratorInvitationOutput: return await self._invoke( - input, _models.ACCEPT_ADMINISTRATOR_INVITATION, [], plugins + self._select_input(_models.ACCEPT_ADMINISTRATOR_INVITATION, args, kwargs), + _models.ACCEPT_ADMINISTRATOR_INVITATION, + [], + plugins, ) + @_overload + async def accept_invitation( + self, + request: _models.AcceptInvitationInput | _models.AcceptInvitationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptInvitationOutput: ... + + @_overload async def accept_invitation( - self, input: AcceptInvitationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptInvitationInputDict], ) -> AcceptInvitationOutput: """ Accepts the invitation to be monitored by a GuardDuty administrator account. Args: - input: - An instance of `AcceptInvitationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -308,10 +236,33 @@ async def accept_invitation( Returns: An instance of `AcceptInvitationOutput`. """ - return await self._invoke(input, _models.ACCEPT_INVITATION, [], plugins) + async def accept_invitation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptInvitationOutput: + return await self._invoke( + self._select_input(_models.ACCEPT_INVITATION, args, kwargs), + _models.ACCEPT_INVITATION, + [], + plugins, + ) + + @_overload + async def archive_findings( + self, + request: _models.ArchiveFindingsInput | _models.ArchiveFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ArchiveFindingsOutput: ... + + @_overload async def archive_findings( - self, input: ArchiveFindingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ArchiveFindingsInputDict], ) -> ArchiveFindingsOutput: """ Archives GuardDuty findings that are specified by the list of finding @@ -322,8 +273,6 @@ async def archive_findings( don't have permission to archive findings from their accounts. Args: - input: - An instance of `ArchiveFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -333,20 +282,40 @@ async def archive_findings( Returns: An instance of `ArchiveFindingsOutput`. """ - return await self._invoke(input, _models.ARCHIVE_FINDINGS, [], plugins) + async def archive_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ArchiveFindingsOutput: + return await self._invoke( + self._select_input(_models.ARCHIVE_FINDINGS, args, kwargs), + _models.ARCHIVE_FINDINGS, + [], + plugins, + ) + + @_overload + async def create_custom_detection_rule_association( + self, + request: _models.CreateCustomDetectionRuleAssociationInput + | _models.CreateCustomDetectionRuleAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomDetectionRuleAssociationOutput: ... + + @_overload async def create_custom_detection_rule_association( self, - input: CreateCustomDetectionRuleAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomDetectionRuleAssociationInputDict], ) -> CreateCustomDetectionRuleAssociationOutput: """ Enables a custom detection rule for your account by creating an association. You specify the rule and the mode in which it operates. Args: - input: - An instance of `CreateCustomDetectionRuleAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -356,14 +325,36 @@ async def create_custom_detection_rule_association( Returns: An instance of `CreateCustomDetectionRuleAssociationOutput`. """ + + async def create_custom_detection_rule_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomDetectionRuleAssociationOutput: return await self._invoke( - input, _models.CREATE_CUSTOM_DETECTION_RULE_ASSOCIATION, [], plugins + self._select_input( + _models.CREATE_CUSTOM_DETECTION_RULE_ASSOCIATION, args, kwargs + ), + _models.CREATE_CUSTOM_DETECTION_RULE_ASSOCIATION, + [], + plugins, ) + @_overload + async def create_custom_detection_rule_org_configuration( + self, + request: _models.CreateCustomDetectionRuleOrgConfigurationInput + | _models.CreateCustomDetectionRuleOrgConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomDetectionRuleOrgConfigurationOutput: ... + + @_overload async def create_custom_detection_rule_org_configuration( self, - input: CreateCustomDetectionRuleOrgConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomDetectionRuleOrgConfigurationInputDict], ) -> CreateCustomDetectionRuleOrgConfigurationOutput: """ Creates an organization-level configuration that enables a custom @@ -371,8 +362,6 @@ async def create_custom_detection_rule_org_configuration( only to the delegated administrator account. Args: - input: - An instance of `CreateCustomDetectionRuleOrgConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -382,12 +371,35 @@ async def create_custom_detection_rule_org_configuration( Returns: An instance of `CreateCustomDetectionRuleOrgConfigurationOutput`. """ + + async def create_custom_detection_rule_org_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomDetectionRuleOrgConfigurationOutput: return await self._invoke( - input, _models.CREATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, args, kwargs + ), + _models.CREATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, + [], + plugins, ) + @_overload + async def create_detector( + self, + request: _models.CreateDetectorInput | _models.CreateDetectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDetectorOutput: ... + + @_overload async def create_detector( - self, input: CreateDetectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDetectorInputDict], ) -> CreateDetectorOutput: """ Creates a single GuardDuty detector. A detector is a resource that @@ -417,8 +429,6 @@ async def create_detector( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `CreateDetectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -428,10 +438,33 @@ async def create_detector( Returns: An instance of `CreateDetectorOutput`. """ - return await self._invoke(input, _models.CREATE_DETECTOR, [], plugins) + async def create_detector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDetectorOutput: + return await self._invoke( + self._select_input(_models.CREATE_DETECTOR, args, kwargs), + _models.CREATE_DETECTOR, + [], + plugins, + ) + + @_overload + async def create_filter( + self, + request: _models.CreateFilterInput | _models.CreateFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFilterOutput: ... + + @_overload async def create_filter( - self, input: CreateFilterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFilterInputDict], ) -> CreateFilterOutput: """ Creates a filter using the specified finding criteria. The maximum @@ -440,8 +473,6 @@ async def create_filter( GuardDuty](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_limits.html). Args: - input: - An instance of `CreateFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -451,10 +482,34 @@ async def create_filter( Returns: An instance of `CreateFilterOutput`. """ - return await self._invoke(input, _models.CREATE_FILTER, [], plugins) + async def create_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFilterOutput: + return await self._invoke( + self._select_input(_models.CREATE_FILTER, args, kwargs), + _models.CREATE_FILTER, + [], + plugins, + ) + + @_overload + async def create_investigation( + self, + request: _models.CreateInvestigationInput + | _models.CreateInvestigationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInvestigationOutput: ... + + @_overload async def create_investigation( - self, input: CreateInvestigationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInvestigationInputDict], ) -> CreateInvestigationOutput: """ This API is currently available as a preview. During the preview, you @@ -490,8 +545,6 @@ async def create_investigation( Investigation](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty-investigation.html). Args: - input: - An instance of `CreateInvestigationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -501,10 +554,33 @@ async def create_investigation( Returns: An instance of `CreateInvestigationOutput`. """ - return await self._invoke(input, _models.CREATE_INVESTIGATION, [], plugins) + async def create_investigation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInvestigationOutput: + return await self._invoke( + self._select_input(_models.CREATE_INVESTIGATION, args, kwargs), + _models.CREATE_INVESTIGATION, + [], + plugins, + ) + + @_overload + async def create_ip_set( + self, + request: _models.CreateIPSetInput | _models.CreateIPSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIPSetOutput: ... + + @_overload async def create_ip_set( - self, input: CreateIPSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIPSetInputDict], ) -> CreateIPSetOutput: """ Creates a new IPSet, which is called a trusted IP list in the console @@ -515,8 +591,6 @@ async def create_ip_set( use this operation. Args: - input: - An instance of `CreateIPSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -526,12 +600,34 @@ async def create_ip_set( Returns: An instance of `CreateIPSetOutput`. """ - return await self._invoke(input, _models.CREATE_IP_SET, [], plugins) + async def create_ip_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIPSetOutput: + return await self._invoke( + self._select_input(_models.CREATE_IP_SET, args, kwargs), + _models.CREATE_IP_SET, + [], + plugins, + ) + + @_overload + async def create_malware_protection_plan( + self, + request: _models.CreateMalwareProtectionPlanInput + | _models.CreateMalwareProtectionPlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMalwareProtectionPlanOutput: ... + + @_overload async def create_malware_protection_plan( self, - input: CreateMalwareProtectionPlanInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMalwareProtectionPlanInputDict], ) -> CreateMalwareProtectionPlanOutput: """ Creates a new Malware Protection plan for the protected resource. @@ -543,8 +639,6 @@ async def create_malware_protection_plan( Protection](http://aws.amazon.com/service-terms/#87._Amazon_GuardDuty). Args: - input: - An instance of `CreateMalwareProtectionPlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -554,12 +648,33 @@ async def create_malware_protection_plan( Returns: An instance of `CreateMalwareProtectionPlanOutput`. """ + + async def create_malware_protection_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMalwareProtectionPlanOutput: return await self._invoke( - input, _models.CREATE_MALWARE_PROTECTION_PLAN, [], plugins + self._select_input(_models.CREATE_MALWARE_PROTECTION_PLAN, args, kwargs), + _models.CREATE_MALWARE_PROTECTION_PLAN, + [], + plugins, ) + @_overload + async def create_members( + self, + request: _models.CreateMembersInput | _models.CreateMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMembersOutput: ... + + @_overload async def create_members( - self, input: CreateMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMembersInputDict], ) -> CreateMembersOutput: """ Creates member accounts of the current Amazon Web Services account by @@ -596,8 +711,6 @@ async def create_members( accounts again only by calling the CreateMembers API. Args: - input: - An instance of `CreateMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -607,12 +720,34 @@ async def create_members( Returns: An instance of `CreateMembersOutput`. """ - return await self._invoke(input, _models.CREATE_MEMBERS, [], plugins) + async def create_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMembersOutput: + return await self._invoke( + self._select_input(_models.CREATE_MEMBERS, args, kwargs), + _models.CREATE_MEMBERS, + [], + plugins, + ) + + @_overload + async def create_publishing_destination( + self, + request: _models.CreatePublishingDestinationInput + | _models.CreatePublishingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePublishingDestinationOutput: ... + + @_overload async def create_publishing_destination( self, - input: CreatePublishingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePublishingDestinationInputDict], ) -> CreatePublishingDestinationOutput: """ Creates a publishing destination where you can export your GuardDuty @@ -620,8 +755,6 @@ async def create_publishing_destination( resource must exist. Args: - input: - An instance of `CreatePublishingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -631,12 +764,34 @@ async def create_publishing_destination( Returns: An instance of `CreatePublishingDestinationOutput`. """ + + async def create_publishing_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePublishingDestinationOutput: return await self._invoke( - input, _models.CREATE_PUBLISHING_DESTINATION, [], plugins + self._select_input(_models.CREATE_PUBLISHING_DESTINATION, args, kwargs), + _models.CREATE_PUBLISHING_DESTINATION, + [], + plugins, ) + @_overload async def create_sample_findings( - self, input: CreateSampleFindingsInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateSampleFindingsInput + | _models.CreateSampleFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSampleFindingsOutput: ... + + @_overload + async def create_sample_findings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSampleFindingsInputDict], ) -> CreateSampleFindingsOutput: """ Generates sample findings of types specified by the list of finding @@ -644,8 +799,6 @@ async def create_sample_findings( sample findings of all supported finding types. Args: - input: - An instance of `CreateSampleFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -655,10 +808,34 @@ async def create_sample_findings( Returns: An instance of `CreateSampleFindingsOutput`. """ - return await self._invoke(input, _models.CREATE_SAMPLE_FINDINGS, [], plugins) + async def create_sample_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSampleFindingsOutput: + return await self._invoke( + self._select_input(_models.CREATE_SAMPLE_FINDINGS, args, kwargs), + _models.CREATE_SAMPLE_FINDINGS, + [], + plugins, + ) + + @_overload + async def create_threat_entity_set( + self, + request: _models.CreateThreatEntitySetInput + | _models.CreateThreatEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateThreatEntitySetOutput: ... + + @_overload async def create_threat_entity_set( - self, input: CreateThreatEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateThreatEntitySetInputDict], ) -> CreateThreatEntitySetOutput: """ Creates a new threat entity set. In a threat entity set, you can provide @@ -668,8 +845,6 @@ async def create_threat_entity_set( entity sets, which automatically apply to member accounts. Args: - input: - An instance of `CreateThreatEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -679,10 +854,34 @@ async def create_threat_entity_set( Returns: An instance of `CreateThreatEntitySetOutput`. """ - return await self._invoke(input, _models.CREATE_THREAT_ENTITY_SET, [], plugins) + async def create_threat_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateThreatEntitySetOutput: + return await self._invoke( + self._select_input(_models.CREATE_THREAT_ENTITY_SET, args, kwargs), + _models.CREATE_THREAT_ENTITY_SET, + [], + plugins, + ) + + @_overload + async def create_threat_intel_set( + self, + request: _models.CreateThreatIntelSetInput + | _models.CreateThreatIntelSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateThreatIntelSetOutput: ... + + @_overload async def create_threat_intel_set( - self, input: CreateThreatIntelSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateThreatIntelSetInputDict], ) -> CreateThreatIntelSetOutput: """ Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious @@ -690,8 +889,6 @@ async def create_threat_intel_set( Only users of the administrator account can use this operation. Args: - input: - An instance of `CreateThreatIntelSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -701,10 +898,34 @@ async def create_threat_intel_set( Returns: An instance of `CreateThreatIntelSetOutput`. """ - return await self._invoke(input, _models.CREATE_THREAT_INTEL_SET, [], plugins) + async def create_threat_intel_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateThreatIntelSetOutput: + return await self._invoke( + self._select_input(_models.CREATE_THREAT_INTEL_SET, args, kwargs), + _models.CREATE_THREAT_INTEL_SET, + [], + plugins, + ) + + @_overload + async def create_trusted_entity_set( + self, + request: _models.CreateTrustedEntitySetInput + | _models.CreateTrustedEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrustedEntitySetOutput: ... + + @_overload async def create_trusted_entity_set( - self, input: CreateTrustedEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrustedEntitySetInputDict], ) -> CreateTrustedEntitySetOutput: """ Creates a new trusted entity set. In the trusted entity set, you can @@ -717,8 +938,6 @@ async def create_trusted_entity_set( which automatically apply to member accounts. Args: - input: - An instance of `CreateTrustedEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -728,18 +947,39 @@ async def create_trusted_entity_set( Returns: An instance of `CreateTrustedEntitySetOutput`. """ - return await self._invoke(input, _models.CREATE_TRUSTED_ENTITY_SET, [], plugins) + async def create_trusted_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrustedEntitySetOutput: + return await self._invoke( + self._select_input(_models.CREATE_TRUSTED_ENTITY_SET, args, kwargs), + _models.CREATE_TRUSTED_ENTITY_SET, + [], + plugins, + ) + + @_overload + async def decline_invitations( + self, + request: _models.DeclineInvitationsInput | _models.DeclineInvitationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeclineInvitationsOutput: ... + + @_overload async def decline_invitations( - self, input: DeclineInvitationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeclineInvitationsInputDict], ) -> DeclineInvitationsOutput: """ Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs. Args: - input: - An instance of `DeclineInvitationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -749,20 +989,40 @@ async def decline_invitations( Returns: An instance of `DeclineInvitationsOutput`. """ - return await self._invoke(input, _models.DECLINE_INVITATIONS, [], plugins) + async def decline_invitations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeclineInvitationsOutput: + return await self._invoke( + self._select_input(_models.DECLINE_INVITATIONS, args, kwargs), + _models.DECLINE_INVITATIONS, + [], + plugins, + ) + + @_overload + async def delete_custom_detection_rule_association( + self, + request: _models.DeleteCustomDetectionRuleAssociationInput + | _models.DeleteCustomDetectionRuleAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomDetectionRuleAssociationOutput: ... + + @_overload async def delete_custom_detection_rule_association( self, - input: DeleteCustomDetectionRuleAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomDetectionRuleAssociationInputDict], ) -> DeleteCustomDetectionRuleAssociationOutput: """ Disables a custom detection rule by deleting its association. This operation is idempotent. Args: - input: - An instance of `DeleteCustomDetectionRuleAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -772,14 +1032,36 @@ async def delete_custom_detection_rule_association( Returns: An instance of `DeleteCustomDetectionRuleAssociationOutput`. """ + + async def delete_custom_detection_rule_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomDetectionRuleAssociationOutput: return await self._invoke( - input, _models.DELETE_CUSTOM_DETECTION_RULE_ASSOCIATION, [], plugins + self._select_input( + _models.DELETE_CUSTOM_DETECTION_RULE_ASSOCIATION, args, kwargs + ), + _models.DELETE_CUSTOM_DETECTION_RULE_ASSOCIATION, + [], + plugins, ) + @_overload + async def delete_custom_detection_rule_org_configuration( + self, + request: _models.DeleteCustomDetectionRuleOrgConfigurationInput + | _models.DeleteCustomDetectionRuleOrgConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomDetectionRuleOrgConfigurationOutput: ... + + @_overload async def delete_custom_detection_rule_org_configuration( self, - input: DeleteCustomDetectionRuleOrgConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomDetectionRuleOrgConfigurationInputDict], ) -> DeleteCustomDetectionRuleOrgConfigurationOutput: """ Deletes the organization-level configuration for a custom detection @@ -787,8 +1069,6 @@ async def delete_custom_detection_rule_org_configuration( account. Args: - input: - An instance of `DeleteCustomDetectionRuleOrgConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -798,20 +1078,41 @@ async def delete_custom_detection_rule_org_configuration( Returns: An instance of `DeleteCustomDetectionRuleOrgConfigurationOutput`. """ + + async def delete_custom_detection_rule_org_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomDetectionRuleOrgConfigurationOutput: return await self._invoke( - input, _models.DELETE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, args, kwargs + ), + _models.DELETE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_detector( + self, + request: _models.DeleteDetectorInput | _models.DeleteDetectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDetectorOutput: ... + + @_overload async def delete_detector( - self, input: DeleteDetectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDetectorInputDict], ) -> DeleteDetectorOutput: """ Deletes an Amazon GuardDuty detector that is specified by the detector ID. Args: - input: - An instance of `DeleteDetectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -821,17 +1122,38 @@ async def delete_detector( Returns: An instance of `DeleteDetectorOutput`. """ - return await self._invoke(input, _models.DELETE_DETECTOR, [], plugins) + async def delete_detector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDetectorOutput: + return await self._invoke( + self._select_input(_models.DELETE_DETECTOR, args, kwargs), + _models.DELETE_DETECTOR, + [], + plugins, + ) + + @_overload async def delete_filter( - self, input: DeleteFilterInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteFilterInput | _models.DeleteFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFilterOutput: ... + + @_overload + async def delete_filter( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFilterInputDict], ) -> DeleteFilterOutput: """ Deletes the filter specified by the filter name. Args: - input: - An instance of `DeleteFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -841,18 +1163,39 @@ async def delete_filter( Returns: An instance of `DeleteFilterOutput`. """ - return await self._invoke(input, _models.DELETE_FILTER, [], plugins) + async def delete_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFilterOutput: + return await self._invoke( + self._select_input(_models.DELETE_FILTER, args, kwargs), + _models.DELETE_FILTER, + [], + plugins, + ) + + @_overload + async def delete_invitations( + self, + request: _models.DeleteInvitationsInput | _models.DeleteInvitationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInvitationsOutput: ... + + @_overload async def delete_invitations( - self, input: DeleteInvitationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInvitationsInputDict], ) -> DeleteInvitationsOutput: """ Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs. Args: - input: - An instance of `DeleteInvitationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -862,18 +1205,39 @@ async def delete_invitations( Returns: An instance of `DeleteInvitationsOutput`. """ - return await self._invoke(input, _models.DELETE_INVITATIONS, [], plugins) + async def delete_invitations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInvitationsOutput: + return await self._invoke( + self._select_input(_models.DELETE_INVITATIONS, args, kwargs), + _models.DELETE_INVITATIONS, + [], + plugins, + ) + + @_overload + async def delete_ip_set( + self, + request: _models.DeleteIPSetInput | _models.DeleteIPSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIPSetOutput: ... + + @_overload async def delete_ip_set( - self, input: DeleteIPSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIPSetInputDict], ) -> DeleteIPSetOutput: """ Deletes the IPSet specified by the `ipSetId`. IPSets are called trusted IP lists in the console user interface. Args: - input: - An instance of `DeleteIPSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -883,12 +1247,34 @@ async def delete_ip_set( Returns: An instance of `DeleteIPSetOutput`. """ - return await self._invoke(input, _models.DELETE_IP_SET, [], plugins) + async def delete_ip_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIPSetOutput: + return await self._invoke( + self._select_input(_models.DELETE_IP_SET, args, kwargs), + _models.DELETE_IP_SET, + [], + plugins, + ) + + @_overload + async def delete_malware_protection_plan( + self, + request: _models.DeleteMalwareProtectionPlanInput + | _models.DeleteMalwareProtectionPlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMalwareProtectionPlanOutput: ... + + @_overload async def delete_malware_protection_plan( self, - input: DeleteMalwareProtectionPlanInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMalwareProtectionPlanInputDict], ) -> DeleteMalwareProtectionPlanOutput: """ Deletes the Malware Protection plan ID associated with the Malware @@ -896,8 +1282,6 @@ async def delete_malware_protection_plan( protect the resource associated with this Malware Protection plan ID. Args: - input: - An instance of `DeleteMalwareProtectionPlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -907,12 +1291,33 @@ async def delete_malware_protection_plan( Returns: An instance of `DeleteMalwareProtectionPlanOutput`. """ + + async def delete_malware_protection_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMalwareProtectionPlanOutput: return await self._invoke( - input, _models.DELETE_MALWARE_PROTECTION_PLAN, [], plugins + self._select_input(_models.DELETE_MALWARE_PROTECTION_PLAN, args, kwargs), + _models.DELETE_MALWARE_PROTECTION_PLAN, + [], + plugins, ) + @_overload async def delete_members( - self, input: DeleteMembersInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteMembersInput | _models.DeleteMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMembersOutput: ... + + @_overload + async def delete_members( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMembersInputDict], ) -> DeleteMembersOutput: """ Deletes GuardDuty member accounts (to the current GuardDuty @@ -923,8 +1328,6 @@ async def delete_members( GuardDuty for a member account in your organization. Args: - input: - An instance of `DeleteMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -934,19 +1337,39 @@ async def delete_members( Returns: An instance of `DeleteMembersOutput`. """ - return await self._invoke(input, _models.DELETE_MEMBERS, [], plugins) + async def delete_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMembersOutput: + return await self._invoke( + self._select_input(_models.DELETE_MEMBERS, args, kwargs), + _models.DELETE_MEMBERS, + [], + plugins, + ) + + @_overload + async def delete_publishing_destination( + self, + request: _models.DeletePublishingDestinationInput + | _models.DeletePublishingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePublishingDestinationOutput: ... + + @_overload async def delete_publishing_destination( self, - input: DeletePublishingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePublishingDestinationInputDict], ) -> DeletePublishingDestinationOutput: """ Deletes the publishing definition with the specified `destinationId`. Args: - input: - An instance of `DeletePublishingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -956,20 +1379,40 @@ async def delete_publishing_destination( Returns: An instance of `DeletePublishingDestinationOutput`. """ + + async def delete_publishing_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePublishingDestinationOutput: return await self._invoke( - input, _models.DELETE_PUBLISHING_DESTINATION, [], plugins + self._select_input(_models.DELETE_PUBLISHING_DESTINATION, args, kwargs), + _models.DELETE_PUBLISHING_DESTINATION, + [], + plugins, ) + @_overload + async def delete_threat_entity_set( + self, + request: _models.DeleteThreatEntitySetInput + | _models.DeleteThreatEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteThreatEntitySetOutput: ... + + @_overload async def delete_threat_entity_set( - self, input: DeleteThreatEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteThreatEntitySetInputDict], ) -> DeleteThreatEntitySetOutput: """ Deletes the threat entity set that is associated with the specified `threatEntitySetId`. Args: - input: - An instance of `DeleteThreatEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -979,17 +1422,39 @@ async def delete_threat_entity_set( Returns: An instance of `DeleteThreatEntitySetOutput`. """ - return await self._invoke(input, _models.DELETE_THREAT_ENTITY_SET, [], plugins) + async def delete_threat_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteThreatEntitySetOutput: + return await self._invoke( + self._select_input(_models.DELETE_THREAT_ENTITY_SET, args, kwargs), + _models.DELETE_THREAT_ENTITY_SET, + [], + plugins, + ) + + @_overload + async def delete_threat_intel_set( + self, + request: _models.DeleteThreatIntelSetInput + | _models.DeleteThreatIntelSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteThreatIntelSetOutput: ... + + @_overload async def delete_threat_intel_set( - self, input: DeleteThreatIntelSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteThreatIntelSetInputDict], ) -> DeleteThreatIntelSetOutput: """ Deletes the ThreatIntelSet specified by the ThreatIntelSet ID. Args: - input: - An instance of `DeleteThreatIntelSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -999,18 +1464,40 @@ async def delete_threat_intel_set( Returns: An instance of `DeleteThreatIntelSetOutput`. """ - return await self._invoke(input, _models.DELETE_THREAT_INTEL_SET, [], plugins) + async def delete_threat_intel_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteThreatIntelSetOutput: + return await self._invoke( + self._select_input(_models.DELETE_THREAT_INTEL_SET, args, kwargs), + _models.DELETE_THREAT_INTEL_SET, + [], + plugins, + ) + + @_overload async def delete_trusted_entity_set( - self, input: DeleteTrustedEntitySetInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteTrustedEntitySetInput + | _models.DeleteTrustedEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrustedEntitySetOutput: ... + + @_overload + async def delete_trusted_entity_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrustedEntitySetInputDict], ) -> DeleteTrustedEntitySetOutput: """ Deletes the trusted entity set that is associated with the specified `trustedEntitySetId`. Args: - input: - An instance of `DeleteTrustedEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1020,10 +1507,34 @@ async def delete_trusted_entity_set( Returns: An instance of `DeleteTrustedEntitySetOutput`. """ - return await self._invoke(input, _models.DELETE_TRUSTED_ENTITY_SET, [], plugins) + async def delete_trusted_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrustedEntitySetOutput: + return await self._invoke( + self._select_input(_models.DELETE_TRUSTED_ENTITY_SET, args, kwargs), + _models.DELETE_TRUSTED_ENTITY_SET, + [], + plugins, + ) + + @_overload + async def describe_malware_scans( + self, + request: _models.DescribeMalwareScansInput + | _models.DescribeMalwareScansInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeMalwareScansOutput: ... + + @_overload async def describe_malware_scans( - self, input: DescribeMalwareScansInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeMalwareScansInputDict], ) -> DescribeMalwareScansOutput: """ Returns a list of malware scans. Each member account can view the @@ -1036,8 +1547,6 @@ async def describe_malware_scans( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `DescribeMalwareScansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1047,12 +1556,34 @@ async def describe_malware_scans( Returns: An instance of `DescribeMalwareScansOutput`. """ - return await self._invoke(input, _models.DESCRIBE_MALWARE_SCANS, [], plugins) + async def describe_malware_scans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeMalwareScansOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_MALWARE_SCANS, args, kwargs), + _models.DESCRIBE_MALWARE_SCANS, + [], + plugins, + ) + + @_overload + async def describe_organization_configuration( + self, + request: _models.DescribeOrganizationConfigurationInput + | _models.DescribeOrganizationConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOrganizationConfigurationOutput: ... + + @_overload async def describe_organization_configuration( self, - input: DescribeOrganizationConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOrganizationConfigurationInputDict], ) -> DescribeOrganizationConfigurationOutput: """ Returns information about the account selected as the delegated @@ -1064,8 +1595,6 @@ async def describe_organization_configuration( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `DescribeOrganizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1075,22 +1604,42 @@ async def describe_organization_configuration( Returns: An instance of `DescribeOrganizationConfigurationOutput`. """ + + async def describe_organization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOrganizationConfigurationOutput: return await self._invoke( - input, _models.DESCRIBE_ORGANIZATION_CONFIGURATION, [], plugins + self._select_input( + _models.DESCRIBE_ORGANIZATION_CONFIGURATION, args, kwargs + ), + _models.DESCRIBE_ORGANIZATION_CONFIGURATION, + [], + plugins, ) + @_overload + async def describe_publishing_destination( + self, + request: _models.DescribePublishingDestinationInput + | _models.DescribePublishingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePublishingDestinationOutput: ... + + @_overload async def describe_publishing_destination( self, - input: DescribePublishingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePublishingDestinationInputDict], ) -> DescribePublishingDestinationOutput: """ Returns information about the publishing destination specified by the provided `destinationId`. Args: - input: - An instance of `DescribePublishingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1100,14 +1649,34 @@ async def describe_publishing_destination( Returns: An instance of `DescribePublishingDestinationOutput`. """ + + async def describe_publishing_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePublishingDestinationOutput: return await self._invoke( - input, _models.DESCRIBE_PUBLISHING_DESTINATION, [], plugins + self._select_input(_models.DESCRIBE_PUBLISHING_DESTINATION, args, kwargs), + _models.DESCRIBE_PUBLISHING_DESTINATION, + [], + plugins, ) + @_overload + async def disable_organization_admin_account( + self, + request: _models.DisableOrganizationAdminAccountInput + | _models.DisableOrganizationAdminAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableOrganizationAdminAccountOutput: ... + + @_overload async def disable_organization_admin_account( self, - input: DisableOrganizationAdminAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableOrganizationAdminAccountInputDict], ) -> DisableOrganizationAdminAccountOutput: """ Removes the existing GuardDuty delegated administrator of the @@ -1115,8 +1684,6 @@ async def disable_organization_admin_account( API operation. Args: - input: - An instance of `DisableOrganizationAdminAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1126,14 +1693,36 @@ async def disable_organization_admin_account( Returns: An instance of `DisableOrganizationAdminAccountOutput`. """ + + async def disable_organization_admin_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableOrganizationAdminAccountOutput: return await self._invoke( - input, _models.DISABLE_ORGANIZATION_ADMIN_ACCOUNT, [], plugins + self._select_input( + _models.DISABLE_ORGANIZATION_ADMIN_ACCOUNT, args, kwargs + ), + _models.DISABLE_ORGANIZATION_ADMIN_ACCOUNT, + [], + plugins, ) + @_overload + async def disassociate_from_administrator_account( + self, + request: _models.DisassociateFromAdministratorAccountInput + | _models.DisassociateFromAdministratorAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateFromAdministratorAccountOutput: ... + + @_overload async def disassociate_from_administrator_account( self, - input: DisassociateFromAdministratorAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateFromAdministratorAccountInputDict], ) -> DisassociateFromAdministratorAccountOutput: """ Disassociates the current GuardDuty member account from its @@ -1156,8 +1745,6 @@ async def disassociate_from_administrator_account( GuardDuty in a member account. Args: - input: - An instance of `DisassociateFromAdministratorAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1167,14 +1754,36 @@ async def disassociate_from_administrator_account( Returns: An instance of `DisassociateFromAdministratorAccountOutput`. """ + + async def disassociate_from_administrator_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateFromAdministratorAccountOutput: return await self._invoke( - input, _models.DISASSOCIATE_FROM_ADMINISTRATOR_ACCOUNT, [], plugins + self._select_input( + _models.DISASSOCIATE_FROM_ADMINISTRATOR_ACCOUNT, args, kwargs + ), + _models.DISASSOCIATE_FROM_ADMINISTRATOR_ACCOUNT, + [], + plugins, ) + @_overload + async def disassociate_from_master_account( + self, + request: _models.DisassociateFromMasterAccountInput + | _models.DisassociateFromMasterAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateFromMasterAccountOutput: ... + + @_overload async def disassociate_from_master_account( self, - input: DisassociateFromMasterAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateFromMasterAccountInputDict], ) -> DisassociateFromMasterAccountOutput: """ Disassociates the current GuardDuty member account from its @@ -1193,8 +1802,6 @@ async def disassociate_from_master_account( API. Args: - input: - An instance of `DisassociateFromMasterAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1204,12 +1811,34 @@ async def disassociate_from_master_account( Returns: An instance of `DisassociateFromMasterAccountOutput`. """ + + async def disassociate_from_master_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateFromMasterAccountOutput: return await self._invoke( - input, _models.DISASSOCIATE_FROM_MASTER_ACCOUNT, [], plugins + self._select_input(_models.DISASSOCIATE_FROM_MASTER_ACCOUNT, args, kwargs), + _models.DISASSOCIATE_FROM_MASTER_ACCOUNT, + [], + plugins, ) + @_overload + async def disassociate_members( + self, + request: _models.DisassociateMembersInput + | _models.DisassociateMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateMembersOutput: ... + + @_overload async def disassociate_members( - self, input: DisassociateMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateMembersInputDict], ) -> DisassociateMembersOutput: """ Disassociates GuardDuty member accounts (from the current administrator @@ -1248,8 +1877,6 @@ async def disassociate_members( accounts again only by calling the CreateMembers API. Args: - input: - An instance of `DisassociateMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1259,12 +1886,34 @@ async def disassociate_members( Returns: An instance of `DisassociateMembersOutput`. """ - return await self._invoke(input, _models.DISASSOCIATE_MEMBERS, [], plugins) + async def disassociate_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateMembersOutput: + return await self._invoke( + self._select_input(_models.DISASSOCIATE_MEMBERS, args, kwargs), + _models.DISASSOCIATE_MEMBERS, + [], + plugins, + ) + + @_overload + async def enable_organization_admin_account( + self, + request: _models.EnableOrganizationAdminAccountInput + | _models.EnableOrganizationAdminAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableOrganizationAdminAccountOutput: ... + + @_overload async def enable_organization_admin_account( self, - input: EnableOrganizationAdminAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableOrganizationAdminAccountInputDict], ) -> EnableOrganizationAdminAccountOutput: """ Designates an Amazon Web Services account within the organization as @@ -1272,8 +1921,6 @@ async def enable_organization_admin_account( management account can run this API operation. Args: - input: - An instance of `EnableOrganizationAdminAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1283,12 +1930,34 @@ async def enable_organization_admin_account( Returns: An instance of `EnableOrganizationAdminAccountOutput`. """ + + async def enable_organization_admin_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableOrganizationAdminAccountOutput: return await self._invoke( - input, _models.ENABLE_ORGANIZATION_ADMIN_ACCOUNT, [], plugins + self._select_input(_models.ENABLE_ORGANIZATION_ADMIN_ACCOUNT, args, kwargs), + _models.ENABLE_ORGANIZATION_ADMIN_ACCOUNT, + [], + plugins, ) + @_overload + async def get_administrator_account( + self, + request: _models.GetAdministratorAccountInput + | _models.GetAdministratorAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAdministratorAccountOutput: ... + + @_overload async def get_administrator_account( - self, input: GetAdministratorAccountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAdministratorAccountInputDict], ) -> GetAdministratorAccountOutput: """ Provides the details of the GuardDuty administrator account associated @@ -1308,8 +1977,6 @@ async def get_administrator_account( this API, it will return success (`HTTP 200`) but no content. Args: - input: - An instance of `GetAdministratorAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1319,10 +1986,34 @@ async def get_administrator_account( Returns: An instance of `GetAdministratorAccountOutput`. """ - return await self._invoke(input, _models.GET_ADMINISTRATOR_ACCOUNT, [], plugins) + async def get_administrator_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAdministratorAccountOutput: + return await self._invoke( + self._select_input(_models.GET_ADMINISTRATOR_ACCOUNT, args, kwargs), + _models.GET_ADMINISTRATOR_ACCOUNT, + [], + plugins, + ) + + @_overload + async def get_coverage_statistics( + self, + request: _models.GetCoverageStatisticsInput + | _models.GetCoverageStatisticsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCoverageStatisticsOutput: ... + + @_overload async def get_coverage_statistics( - self, input: GetCoverageStatisticsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCoverageStatisticsInputDict], ) -> GetCoverageStatisticsOutput: """ Retrieves aggregated statistics for your account. If you are a GuardDuty @@ -1332,8 +2023,6 @@ async def get_coverage_statistics( on their resources. Args: - input: - An instance of `GetCoverageStatisticsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1343,18 +2032,40 @@ async def get_coverage_statistics( Returns: An instance of `GetCoverageStatisticsOutput`. """ - return await self._invoke(input, _models.GET_COVERAGE_STATISTICS, [], plugins) + async def get_coverage_statistics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCoverageStatisticsOutput: + return await self._invoke( + self._select_input(_models.GET_COVERAGE_STATISTICS, args, kwargs), + _models.GET_COVERAGE_STATISTICS, + [], + plugins, + ) + + @_overload + async def get_custom_detection_rule( + self, + request: _models.GetCustomDetectionRuleInput + | _models.GetCustomDetectionRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomDetectionRuleOutput: ... + + @_overload async def get_custom_detection_rule( - self, input: GetCustomDetectionRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomDetectionRuleInputDict], ) -> GetCustomDetectionRuleOutput: """ Returns details for a custom detection rule in GuardDuty, including its detection logic. Args: - input: - An instance of `GetCustomDetectionRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1364,19 +2075,39 @@ async def get_custom_detection_rule( Returns: An instance of `GetCustomDetectionRuleOutput`. """ - return await self._invoke(input, _models.GET_CUSTOM_DETECTION_RULE, [], plugins) + async def get_custom_detection_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomDetectionRuleOutput: + return await self._invoke( + self._select_input(_models.GET_CUSTOM_DETECTION_RULE, args, kwargs), + _models.GET_CUSTOM_DETECTION_RULE, + [], + plugins, + ) + + @_overload + async def get_custom_detection_rule_association( + self, + request: _models.GetCustomDetectionRuleAssociationInput + | _models.GetCustomDetectionRuleAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomDetectionRuleAssociationOutput: ... + + @_overload async def get_custom_detection_rule_association( self, - input: GetCustomDetectionRuleAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomDetectionRuleAssociationInputDict], ) -> GetCustomDetectionRuleAssociationOutput: """ Returns details for a custom detection rule association. Args: - input: - An instance of `GetCustomDetectionRuleAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1386,22 +2117,42 @@ async def get_custom_detection_rule_association( Returns: An instance of `GetCustomDetectionRuleAssociationOutput`. """ + + async def get_custom_detection_rule_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomDetectionRuleAssociationOutput: return await self._invoke( - input, _models.GET_CUSTOM_DETECTION_RULE_ASSOCIATION, [], plugins + self._select_input( + _models.GET_CUSTOM_DETECTION_RULE_ASSOCIATION, args, kwargs + ), + _models.GET_CUSTOM_DETECTION_RULE_ASSOCIATION, + [], + plugins, ) + @_overload + async def get_custom_detection_rule_org_configuration( + self, + request: _models.GetCustomDetectionRuleOrgConfigurationInput + | _models.GetCustomDetectionRuleOrgConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomDetectionRuleOrgConfigurationOutput: ... + + @_overload async def get_custom_detection_rule_org_configuration( self, - input: GetCustomDetectionRuleOrgConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomDetectionRuleOrgConfigurationInputDict], ) -> GetCustomDetectionRuleOrgConfigurationOutput: """ Returns the organization-level configuration for a custom detection rule. Args: - input: - An instance of `GetCustomDetectionRuleOrgConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1411,12 +2162,35 @@ async def get_custom_detection_rule_org_configuration( Returns: An instance of `GetCustomDetectionRuleOrgConfigurationOutput`. """ + + async def get_custom_detection_rule_org_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomDetectionRuleOrgConfigurationOutput: return await self._invoke( - input, _models.GET_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, [], plugins + self._select_input( + _models.GET_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, args, kwargs + ), + _models.GET_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_detector( + self, + request: _models.GetDetectorInput | _models.GetDetectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDetectorOutput: ... + + @_overload async def get_detector( - self, input: GetDetectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDetectorInputDict], ) -> GetDetectorOutput: """ Retrieves a GuardDuty detector specified by the detectorId. @@ -1427,8 +2201,6 @@ async def get_detector( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetDetectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1438,17 +2210,38 @@ async def get_detector( Returns: An instance of `GetDetectorOutput`. """ - return await self._invoke(input, _models.GET_DETECTOR, [], plugins) + async def get_detector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDetectorOutput: + return await self._invoke( + self._select_input(_models.GET_DETECTOR, args, kwargs), + _models.GET_DETECTOR, + [], + plugins, + ) + + @_overload + async def get_filter( + self, + request: _models.GetFilterInput | _models.GetFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFilterOutput: ... + + @_overload async def get_filter( - self, input: GetFilterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFilterInputDict], ) -> GetFilterOutput: """ Returns the details of the filter specified by the filter name. Args: - input: - An instance of `GetFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1458,17 +2251,38 @@ async def get_filter( Returns: An instance of `GetFilterOutput`. """ - return await self._invoke(input, _models.GET_FILTER, [], plugins) + async def get_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFilterOutput: + return await self._invoke( + self._select_input(_models.GET_FILTER, args, kwargs), + _models.GET_FILTER, + [], + plugins, + ) + + @_overload async def get_findings( - self, input: GetFindingsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFindingsInput | _models.GetFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFindingsOutput: ... + + @_overload + async def get_findings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFindingsInputDict], ) -> GetFindingsOutput: """ Describes Amazon GuardDuty findings specified by finding IDs. Args: - input: - An instance of `GetFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1478,10 +2292,34 @@ async def get_findings( Returns: An instance of `GetFindingsOutput`. """ - return await self._invoke(input, _models.GET_FINDINGS, [], plugins) + async def get_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFindingsOutput: + return await self._invoke( + self._select_input(_models.GET_FINDINGS, args, kwargs), + _models.GET_FINDINGS, + [], + plugins, + ) + + @_overload + async def get_findings_statistics( + self, + request: _models.GetFindingsStatisticsInput + | _models.GetFindingsStatisticsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFindingsStatisticsOutput: ... + + @_overload async def get_findings_statistics( - self, input: GetFindingsStatisticsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFindingsStatisticsInputDict], ) -> GetFindingsStatisticsOutput: """ Lists GuardDuty findings statistics for the specified detector ID. @@ -1496,8 +2334,6 @@ async def get_findings_statistics( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetFindingsStatisticsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1507,10 +2343,33 @@ async def get_findings_statistics( Returns: An instance of `GetFindingsStatisticsOutput`. """ - return await self._invoke(input, _models.GET_FINDINGS_STATISTICS, [], plugins) + async def get_findings_statistics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFindingsStatisticsOutput: + return await self._invoke( + self._select_input(_models.GET_FINDINGS_STATISTICS, args, kwargs), + _models.GET_FINDINGS_STATISTICS, + [], + plugins, + ) + + @_overload + async def get_investigation( + self, + request: _models.GetInvestigationInput | _models.GetInvestigationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvestigationOutput: ... + + @_overload async def get_investigation( - self, input: GetInvestigationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvestigationInputDict], ) -> GetInvestigationOutput: """ This API is currently available as a preview. This feature is available @@ -1526,8 +2385,6 @@ async def get_investigation( belong to them. Args: - input: - An instance of `GetInvestigationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1537,18 +2394,40 @@ async def get_investigation( Returns: An instance of `GetInvestigationOutput`. """ - return await self._invoke(input, _models.GET_INVESTIGATION, [], plugins) + async def get_investigation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvestigationOutput: + return await self._invoke( + self._select_input(_models.GET_INVESTIGATION, args, kwargs), + _models.GET_INVESTIGATION, + [], + plugins, + ) + + @_overload + async def get_invitations_count( + self, + request: _models.GetInvitationsCountInput + | _models.GetInvitationsCountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvitationsCountOutput: ... + + @_overload async def get_invitations_count( - self, input: GetInvitationsCountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvitationsCountInputDict], ) -> GetInvitationsCountOutput: """ Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation. Args: - input: - An instance of `GetInvitationsCountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1558,17 +2437,38 @@ async def get_invitations_count( Returns: An instance of `GetInvitationsCountOutput`. """ - return await self._invoke(input, _models.GET_INVITATIONS_COUNT, [], plugins) + async def get_invitations_count( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvitationsCountOutput: + return await self._invoke( + self._select_input(_models.GET_INVITATIONS_COUNT, args, kwargs), + _models.GET_INVITATIONS_COUNT, + [], + plugins, + ) + + @_overload + async def get_ip_set( + self, + request: _models.GetIPSetInput | _models.GetIPSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIPSetOutput: ... + + @_overload async def get_ip_set( - self, input: GetIPSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIPSetInputDict], ) -> GetIPSetOutput: """ Retrieves the IPSet specified by the `ipSetId`. Args: - input: - An instance of `GetIPSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1578,18 +2478,40 @@ async def get_ip_set( Returns: An instance of `GetIPSetOutput`. """ - return await self._invoke(input, _models.GET_IP_SET, [], plugins) + async def get_ip_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIPSetOutput: + return await self._invoke( + self._select_input(_models.GET_IP_SET, args, kwargs), + _models.GET_IP_SET, + [], + plugins, + ) + + @_overload + async def get_malware_protection_plan( + self, + request: _models.GetMalwareProtectionPlanInput + | _models.GetMalwareProtectionPlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMalwareProtectionPlanOutput: ... + + @_overload async def get_malware_protection_plan( - self, input: GetMalwareProtectionPlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMalwareProtectionPlanInputDict], ) -> GetMalwareProtectionPlanOutput: """ Retrieves the Malware Protection plan details associated with a Malware Protection plan ID. Args: - input: - An instance of `GetMalwareProtectionPlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1599,12 +2521,33 @@ async def get_malware_protection_plan( Returns: An instance of `GetMalwareProtectionPlanOutput`. """ + + async def get_malware_protection_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMalwareProtectionPlanOutput: return await self._invoke( - input, _models.GET_MALWARE_PROTECTION_PLAN, [], plugins + self._select_input(_models.GET_MALWARE_PROTECTION_PLAN, args, kwargs), + _models.GET_MALWARE_PROTECTION_PLAN, + [], + plugins, ) + @_overload async def get_malware_scan( - self, input: GetMalwareScanInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMalwareScanInput | _models.GetMalwareScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMalwareScanOutput: ... + + @_overload + async def get_malware_scan( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMalwareScanInputDict], ) -> GetMalwareScanOutput: """ Retrieves the detailed information for a specific malware scan. Each @@ -1618,8 +2561,6 @@ async def get_malware_scan( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetMalwareScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1629,10 +2570,34 @@ async def get_malware_scan( Returns: An instance of `GetMalwareScanOutput`. """ - return await self._invoke(input, _models.GET_MALWARE_SCAN, [], plugins) + async def get_malware_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMalwareScanOutput: + return await self._invoke( + self._select_input(_models.GET_MALWARE_SCAN, args, kwargs), + _models.GET_MALWARE_SCAN, + [], + plugins, + ) + + @_overload + async def get_malware_scan_settings( + self, + request: _models.GetMalwareScanSettingsInput + | _models.GetMalwareScanSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMalwareScanSettingsOutput: ... + + @_overload async def get_malware_scan_settings( - self, input: GetMalwareScanSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMalwareScanSettingsInputDict], ) -> GetMalwareScanSettingsOutput: """ Returns the details of the malware scan settings. @@ -1643,8 +2608,6 @@ async def get_malware_scan_settings( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetMalwareScanSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1654,18 +2617,39 @@ async def get_malware_scan_settings( Returns: An instance of `GetMalwareScanSettingsOutput`. """ - return await self._invoke(input, _models.GET_MALWARE_SCAN_SETTINGS, [], plugins) + async def get_malware_scan_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMalwareScanSettingsOutput: + return await self._invoke( + self._select_input(_models.GET_MALWARE_SCAN_SETTINGS, args, kwargs), + _models.GET_MALWARE_SCAN_SETTINGS, + [], + plugins, + ) + + @_overload + async def get_master_account( + self, + request: _models.GetMasterAccountInput | _models.GetMasterAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMasterAccountOutput: ... + + @_overload async def get_master_account( - self, input: GetMasterAccountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMasterAccountInputDict], ) -> GetMasterAccountOutput: """ Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account. Args: - input: - An instance of `GetMasterAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1675,13 +2659,36 @@ async def get_master_account( Returns: An instance of `GetMasterAccountOutput`. """ - return await self._invoke(input, _models.GET_MASTER_ACCOUNT, [], plugins) - async def get_member_detectors( - self, input: GetMemberDetectorsInput, plugins: list[Plugin] | None = None - ) -> GetMemberDetectorsOutput: - """ - Describes which data sources are enabled for the member account's + async def get_master_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMasterAccountOutput: + return await self._invoke( + self._select_input(_models.GET_MASTER_ACCOUNT, args, kwargs), + _models.GET_MASTER_ACCOUNT, + [], + plugins, + ) + + @_overload + async def get_member_detectors( + self, + request: _models.GetMemberDetectorsInput | _models.GetMemberDetectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMemberDetectorsOutput: ... + + @_overload + async def get_member_detectors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMemberDetectorsInputDict], + ) -> GetMemberDetectorsOutput: + """ + Describes which data sources are enabled for the member account's detector. There might be regional differences because some data sources might not @@ -1690,8 +2697,6 @@ async def get_member_detectors( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetMemberDetectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1701,18 +2706,39 @@ async def get_member_detectors( Returns: An instance of `GetMemberDetectorsOutput`. """ - return await self._invoke(input, _models.GET_MEMBER_DETECTORS, [], plugins) + async def get_member_detectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMemberDetectorsOutput: + return await self._invoke( + self._select_input(_models.GET_MEMBER_DETECTORS, args, kwargs), + _models.GET_MEMBER_DETECTORS, + [], + plugins, + ) + + @_overload + async def get_members( + self, + request: _models.GetMembersInput | _models.GetMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMembersOutput: ... + + @_overload async def get_members( - self, input: GetMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMembersInputDict], ) -> GetMembersOutput: """ Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs. Args: - input: - An instance of `GetMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1722,10 +2748,34 @@ async def get_members( Returns: An instance of `GetMembersOutput`. """ - return await self._invoke(input, _models.GET_MEMBERS, [], plugins) + async def get_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMembersOutput: + return await self._invoke( + self._select_input(_models.GET_MEMBERS, args, kwargs), + _models.GET_MEMBERS, + [], + plugins, + ) + + @_overload async def get_organization_statistics( - self, input: GetOrganizationStatisticsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetOrganizationStatisticsInput + | _models.GetOrganizationStatisticsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOrganizationStatisticsOutput: ... + + @_overload + async def get_organization_statistics( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOrganizationStatisticsInputDict], ) -> GetOrganizationStatisticsOutput: """ Retrieves how many active member accounts have each feature enabled @@ -1736,8 +2786,6 @@ async def get_organization_statistics( generate the statistics for the entire organization. Args: - input: - An instance of `GetOrganizationStatisticsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1747,20 +2795,40 @@ async def get_organization_statistics( Returns: An instance of `GetOrganizationStatisticsOutput`. """ + + async def get_organization_statistics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOrganizationStatisticsOutput: return await self._invoke( - input, _models.GET_ORGANIZATION_STATISTICS, [], plugins + self._select_input(_models.GET_ORGANIZATION_STATISTICS, args, kwargs), + _models.GET_ORGANIZATION_STATISTICS, + [], + plugins, ) + @_overload async def get_remaining_free_trial_days( - self, input: GetRemainingFreeTrialDaysInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRemainingFreeTrialDaysInput + | _models.GetRemainingFreeTrialDaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRemainingFreeTrialDaysOutput: ... + + @_overload + async def get_remaining_free_trial_days( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRemainingFreeTrialDaysInputDict], ) -> GetRemainingFreeTrialDaysOutput: """ Provides the number of days left for each data source used in the free trial period. Args: - input: - An instance of `GetRemainingFreeTrialDaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1770,20 +2838,39 @@ async def get_remaining_free_trial_days( Returns: An instance of `GetRemainingFreeTrialDaysOutput`. """ + + async def get_remaining_free_trial_days( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRemainingFreeTrialDaysOutput: return await self._invoke( - input, _models.GET_REMAINING_FREE_TRIAL_DAYS, [], plugins + self._select_input(_models.GET_REMAINING_FREE_TRIAL_DAYS, args, kwargs), + _models.GET_REMAINING_FREE_TRIAL_DAYS, + [], + plugins, ) + @_overload + async def get_threat_entity_set( + self, + request: _models.GetThreatEntitySetInput | _models.GetThreatEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetThreatEntitySetOutput: ... + + @_overload async def get_threat_entity_set( - self, input: GetThreatEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetThreatEntitySetInputDict], ) -> GetThreatEntitySetOutput: """ Retrieves the threat entity set associated with the specified `threatEntitySetId`. Args: - input: - An instance of `GetThreatEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1793,17 +2880,38 @@ async def get_threat_entity_set( Returns: An instance of `GetThreatEntitySetOutput`. """ - return await self._invoke(input, _models.GET_THREAT_ENTITY_SET, [], plugins) + async def get_threat_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetThreatEntitySetOutput: + return await self._invoke( + self._select_input(_models.GET_THREAT_ENTITY_SET, args, kwargs), + _models.GET_THREAT_ENTITY_SET, + [], + plugins, + ) + + @_overload async def get_threat_intel_set( - self, input: GetThreatIntelSetInput, plugins: list[Plugin] | None = None + self, + request: _models.GetThreatIntelSetInput | _models.GetThreatIntelSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetThreatIntelSetOutput: ... + + @_overload + async def get_threat_intel_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetThreatIntelSetInputDict], ) -> GetThreatIntelSetOutput: """ Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID. Args: - input: - An instance of `GetThreatIntelSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1813,18 +2921,40 @@ async def get_threat_intel_set( Returns: An instance of `GetThreatIntelSetOutput`. """ - return await self._invoke(input, _models.GET_THREAT_INTEL_SET, [], plugins) + async def get_threat_intel_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetThreatIntelSetOutput: + return await self._invoke( + self._select_input(_models.GET_THREAT_INTEL_SET, args, kwargs), + _models.GET_THREAT_INTEL_SET, + [], + plugins, + ) + + @_overload async def get_trusted_entity_set( - self, input: GetTrustedEntitySetInput, plugins: list[Plugin] | None = None + self, + request: _models.GetTrustedEntitySetInput + | _models.GetTrustedEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTrustedEntitySetOutput: ... + + @_overload + async def get_trusted_entity_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTrustedEntitySetInputDict], ) -> GetTrustedEntitySetOutput: """ Retrieves the trusted entity set associated with the specified `trustedEntitySetId`. Args: - input: - An instance of `GetTrustedEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1834,10 +2964,33 @@ async def get_trusted_entity_set( Returns: An instance of `GetTrustedEntitySetOutput`. """ - return await self._invoke(input, _models.GET_TRUSTED_ENTITY_SET, [], plugins) + async def get_trusted_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTrustedEntitySetOutput: + return await self._invoke( + self._select_input(_models.GET_TRUSTED_ENTITY_SET, args, kwargs), + _models.GET_TRUSTED_ENTITY_SET, + [], + plugins, + ) + + @_overload + async def get_usage_statistics( + self, + request: _models.GetUsageStatisticsInput | _models.GetUsageStatisticsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsageStatisticsOutput: ... + + @_overload async def get_usage_statistics( - self, input: GetUsageStatisticsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsageStatisticsInputDict], ) -> GetUsageStatisticsOutput: """ Lists Amazon GuardDuty usage statistics over the last 30 days for the @@ -1849,8 +3002,6 @@ async def get_usage_statistics( Calculated](https://docs.aws.amazon.com/guardduty/latest/ug/monitoring_costs.html#usage-calculations). Args: - input: - An instance of `GetUsageStatisticsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1860,10 +3011,33 @@ async def get_usage_statistics( Returns: An instance of `GetUsageStatisticsOutput`. """ - return await self._invoke(input, _models.GET_USAGE_STATISTICS, [], plugins) + async def get_usage_statistics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsageStatisticsOutput: + return await self._invoke( + self._select_input(_models.GET_USAGE_STATISTICS, args, kwargs), + _models.GET_USAGE_STATISTICS, + [], + plugins, + ) + + @_overload + async def invite_members( + self, + request: _models.InviteMembersInput | _models.InviteMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InviteMembersOutput: ... + + @_overload async def invite_members( - self, input: InviteMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InviteMembersInputDict], ) -> InviteMembersOutput: """ Invites Amazon Web Services accounts to become members of an @@ -1912,8 +3086,6 @@ async def invite_members( accounts again only by calling the CreateMembers API. Args: - input: - An instance of `InviteMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1923,10 +3095,33 @@ async def invite_members( Returns: An instance of `InviteMembersOutput`. """ - return await self._invoke(input, _models.INVITE_MEMBERS, [], plugins) + async def invite_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InviteMembersOutput: + return await self._invoke( + self._select_input(_models.INVITE_MEMBERS, args, kwargs), + _models.INVITE_MEMBERS, + [], + plugins, + ) + + @_overload + async def list_coverage( + self, + request: _models.ListCoverageInput | _models.ListCoverageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCoverageOutput: ... + + @_overload async def list_coverage( - self, input: ListCoverageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCoverageInputDict], ) -> ListCoverageOutput: """ Lists coverage details for your GuardDuty account. If you're a @@ -1937,8 +3132,6 @@ async def list_coverage( agent running on their resources. Args: - input: - An instance of `ListCoverageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1948,20 +3141,40 @@ async def list_coverage( Returns: An instance of `ListCoverageOutput`. """ - return await self._invoke(input, _models.LIST_COVERAGE, [], plugins) + async def list_coverage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCoverageOutput: + return await self._invoke( + self._select_input(_models.LIST_COVERAGE, args, kwargs), + _models.LIST_COVERAGE, + [], + plugins, + ) + + @_overload async def list_custom_detection_rule_associations( self, - input: ListCustomDetectionRuleAssociationsInput, + request: _models.ListCustomDetectionRuleAssociationsInput + | _models.ListCustomDetectionRuleAssociationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListCustomDetectionRuleAssociationsOutput: ... + + @_overload + async def list_custom_detection_rule_associations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomDetectionRuleAssociationsInputDict], ) -> ListCustomDetectionRuleAssociationsOutput: """ Returns all custom detection rule associations for your account. You can filter by rule ID and mode. Args: - input: - An instance of `ListCustomDetectionRuleAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1971,22 +3184,42 @@ async def list_custom_detection_rule_associations( Returns: An instance of `ListCustomDetectionRuleAssociationsOutput`. """ + + async def list_custom_detection_rule_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomDetectionRuleAssociationsOutput: return await self._invoke( - input, _models.LIST_CUSTOM_DETECTION_RULE_ASSOCIATIONS, [], plugins + self._select_input( + _models.LIST_CUSTOM_DETECTION_RULE_ASSOCIATIONS, args, kwargs + ), + _models.LIST_CUSTOM_DETECTION_RULE_ASSOCIATIONS, + [], + plugins, ) + @_overload + async def list_custom_detection_rule_org_configurations( + self, + request: _models.ListCustomDetectionRuleOrgConfigurationsInput + | _models.ListCustomDetectionRuleOrgConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCustomDetectionRuleOrgConfigurationsOutput: ... + + @_overload async def list_custom_detection_rule_org_configurations( self, - input: ListCustomDetectionRuleOrgConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomDetectionRuleOrgConfigurationsInputDict], ) -> ListCustomDetectionRuleOrgConfigurationsOutput: """ Returns all organization-level configurations for custom detection rules. You can filter the results by status. Args: - input: - An instance of `ListCustomDetectionRuleOrgConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1996,12 +3229,36 @@ async def list_custom_detection_rule_org_configurations( Returns: An instance of `ListCustomDetectionRuleOrgConfigurationsOutput`. """ + + async def list_custom_detection_rule_org_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomDetectionRuleOrgConfigurationsOutput: return await self._invoke( - input, _models.LIST_CUSTOM_DETECTION_RULE_ORG_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_CUSTOM_DETECTION_RULE_ORG_CONFIGURATIONS, args, kwargs + ), + _models.LIST_CUSTOM_DETECTION_RULE_ORG_CONFIGURATIONS, + [], + plugins, ) + @_overload + async def list_custom_detection_rules( + self, + request: _models.ListCustomDetectionRulesInput + | _models.ListCustomDetectionRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCustomDetectionRulesOutput: ... + + @_overload async def list_custom_detection_rules( - self, input: ListCustomDetectionRulesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomDetectionRulesInputDict], ) -> ListCustomDetectionRulesOutput: """ Returns all available custom detection rules in GuardDuty. You can @@ -2009,8 +3266,6 @@ async def list_custom_detection_rules( service. Args: - input: - An instance of `ListCustomDetectionRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2020,20 +3275,39 @@ async def list_custom_detection_rules( Returns: An instance of `ListCustomDetectionRulesOutput`. """ + + async def list_custom_detection_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomDetectionRulesOutput: return await self._invoke( - input, _models.LIST_CUSTOM_DETECTION_RULES, [], plugins + self._select_input(_models.LIST_CUSTOM_DETECTION_RULES, args, kwargs), + _models.LIST_CUSTOM_DETECTION_RULES, + [], + plugins, ) + @_overload + async def list_detectors( + self, + request: _models.ListDetectorsInput | _models.ListDetectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDetectorsOutput: ... + + @_overload async def list_detectors( - self, input: ListDetectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDetectorsInputDict], ) -> ListDetectorsOutput: """ Lists detectorIds of all the existing Amazon GuardDuty detector resources. Args: - input: - An instance of `ListDetectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2043,17 +3317,38 @@ async def list_detectors( Returns: An instance of `ListDetectorsOutput`. """ - return await self._invoke(input, _models.LIST_DETECTORS, [], plugins) + async def list_detectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDetectorsOutput: + return await self._invoke( + self._select_input(_models.LIST_DETECTORS, args, kwargs), + _models.LIST_DETECTORS, + [], + plugins, + ) + + @_overload async def list_filters( - self, input: ListFiltersInput, plugins: list[Plugin] | None = None + self, + request: _models.ListFiltersInput | _models.ListFiltersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFiltersOutput: ... + + @_overload + async def list_filters( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFiltersInputDict], ) -> ListFiltersOutput: """ Returns a paginated list of the current filters. Args: - input: - An instance of `ListFiltersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2063,10 +3358,33 @@ async def list_filters( Returns: An instance of `ListFiltersOutput`. """ - return await self._invoke(input, _models.LIST_FILTERS, [], plugins) + async def list_filters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFiltersOutput: + return await self._invoke( + self._select_input(_models.LIST_FILTERS, args, kwargs), + _models.LIST_FILTERS, + [], + plugins, + ) + + @_overload + async def list_findings( + self, + request: _models.ListFindingsInput | _models.ListFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFindingsOutput: ... + + @_overload async def list_findings( - self, input: ListFindingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFindingsInputDict], ) -> ListFindingsOutput: """ Lists GuardDuty findings for the specified detector ID. @@ -2077,8 +3395,6 @@ async def list_findings( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `ListFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2088,10 +3404,33 @@ async def list_findings( Returns: An instance of `ListFindingsOutput`. """ - return await self._invoke(input, _models.LIST_FINDINGS, [], plugins) + async def list_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFindingsOutput: + return await self._invoke( + self._select_input(_models.LIST_FINDINGS, args, kwargs), + _models.LIST_FINDINGS, + [], + plugins, + ) + + @_overload async def list_investigations( - self, input: ListInvestigationsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListInvestigationsInput | _models.ListInvestigationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvestigationsOutput: ... + + @_overload + async def list_investigations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvestigationsInputDict], ) -> ListInvestigationsOutput: """ This API is currently available as a preview. This feature is available @@ -2108,8 +3447,6 @@ async def list_investigations( them. Args: - input: - An instance of `ListInvestigationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2119,18 +3456,39 @@ async def list_investigations( Returns: An instance of `ListInvestigationsOutput`. """ - return await self._invoke(input, _models.LIST_INVESTIGATIONS, [], plugins) + async def list_investigations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvestigationsOutput: + return await self._invoke( + self._select_input(_models.LIST_INVESTIGATIONS, args, kwargs), + _models.LIST_INVESTIGATIONS, + [], + plugins, + ) + + @_overload async def list_invitations( - self, input: ListInvitationsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListInvitationsInput | _models.ListInvitationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvitationsOutput: ... + + @_overload + async def list_invitations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvitationsInputDict], ) -> ListInvitationsOutput: """ Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account. Args: - input: - An instance of `ListInvitationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2140,10 +3498,33 @@ async def list_invitations( Returns: An instance of `ListInvitationsOutput`. """ - return await self._invoke(input, _models.LIST_INVITATIONS, [], plugins) + async def list_invitations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvitationsOutput: + return await self._invoke( + self._select_input(_models.LIST_INVITATIONS, args, kwargs), + _models.LIST_INVITATIONS, + [], + plugins, + ) + + @_overload + async def list_ip_sets( + self, + request: _models.ListIPSetsInput | _models.ListIPSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIPSetsOutput: ... + + @_overload async def list_ip_sets( - self, input: ListIPSetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIPSetsInputDict], ) -> ListIPSetsOutput: """ Lists the IPSets of the GuardDuty service specified by the detector ID. @@ -2151,8 +3532,6 @@ async def list_ip_sets( the IPSets from the associated administrator account. Args: - input: - An instance of `ListIPSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2162,20 +3541,40 @@ async def list_ip_sets( Returns: An instance of `ListIPSetsOutput`. """ - return await self._invoke(input, _models.LIST_IP_SETS, [], plugins) + async def list_ip_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIPSetsOutput: + return await self._invoke( + self._select_input(_models.LIST_IP_SETS, args, kwargs), + _models.LIST_IP_SETS, + [], + plugins, + ) + + @_overload async def list_malware_protection_plans( self, - input: ListMalwareProtectionPlansInput, + request: _models.ListMalwareProtectionPlansInput + | _models.ListMalwareProtectionPlansInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListMalwareProtectionPlansOutput: ... + + @_overload + async def list_malware_protection_plans( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMalwareProtectionPlansInputDict], ) -> ListMalwareProtectionPlansOutput: """ Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account. Args: - input: - An instance of `ListMalwareProtectionPlansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2185,12 +3584,33 @@ async def list_malware_protection_plans( Returns: An instance of `ListMalwareProtectionPlansOutput`. """ + + async def list_malware_protection_plans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMalwareProtectionPlansOutput: return await self._invoke( - input, _models.LIST_MALWARE_PROTECTION_PLANS, [], plugins + self._select_input(_models.LIST_MALWARE_PROTECTION_PLANS, args, kwargs), + _models.LIST_MALWARE_PROTECTION_PLANS, + [], + plugins, ) + @_overload async def list_malware_scans( - self, input: ListMalwareScansInput, plugins: list[Plugin] | None = None + self, + request: _models.ListMalwareScansInput | _models.ListMalwareScansInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMalwareScansOutput: ... + + @_overload + async def list_malware_scans( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMalwareScansInputDict], ) -> ListMalwareScansOutput: """ Returns a list of malware scans. Each member account can view the @@ -2198,8 +3618,6 @@ async def list_malware_scans( malware scans for all of its members' accounts. Args: - input: - An instance of `ListMalwareScansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2209,18 +3627,39 @@ async def list_malware_scans( Returns: An instance of `ListMalwareScansOutput`. """ - return await self._invoke(input, _models.LIST_MALWARE_SCANS, [], plugins) + async def list_malware_scans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMalwareScansOutput: + return await self._invoke( + self._select_input(_models.LIST_MALWARE_SCANS, args, kwargs), + _models.LIST_MALWARE_SCANS, + [], + plugins, + ) + + @_overload + async def list_members( + self, + request: _models.ListMembersInput | _models.ListMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMembersOutput: ... + + @_overload async def list_members( - self, input: ListMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMembersInputDict], ) -> ListMembersOutput: """ Lists details about all member accounts for the current GuardDuty administrator account. Args: - input: - An instance of `ListMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2230,20 +3669,40 @@ async def list_members( Returns: An instance of `ListMembersOutput`. """ - return await self._invoke(input, _models.LIST_MEMBERS, [], plugins) + async def list_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMembersOutput: + return await self._invoke( + self._select_input(_models.LIST_MEMBERS, args, kwargs), + _models.LIST_MEMBERS, + [], + plugins, + ) + + @_overload async def list_organization_admin_accounts( self, - input: ListOrganizationAdminAccountsInput, + request: _models.ListOrganizationAdminAccountsInput + | _models.ListOrganizationAdminAccountsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListOrganizationAdminAccountsOutput: ... + + @_overload + async def list_organization_admin_accounts( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOrganizationAdminAccountsInputDict], ) -> ListOrganizationAdminAccountsOutput: """ Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API operation. Args: - input: - An instance of `ListOrganizationAdminAccountsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2253,22 +3712,40 @@ async def list_organization_admin_accounts( Returns: An instance of `ListOrganizationAdminAccountsOutput`. """ + + async def list_organization_admin_accounts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOrganizationAdminAccountsOutput: return await self._invoke( - input, _models.LIST_ORGANIZATION_ADMIN_ACCOUNTS, [], plugins + self._select_input(_models.LIST_ORGANIZATION_ADMIN_ACCOUNTS, args, kwargs), + _models.LIST_ORGANIZATION_ADMIN_ACCOUNTS, + [], + plugins, ) + @_overload async def list_publishing_destinations( self, - input: ListPublishingDestinationsInput, + request: _models.ListPublishingDestinationsInput + | _models.ListPublishingDestinationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListPublishingDestinationsOutput: ... + + @_overload + async def list_publishing_destinations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPublishingDestinationsInputDict], ) -> ListPublishingDestinationsOutput: """ Returns a list of publishing destinations associated with the specified `detectorId`. Args: - input: - An instance of `ListPublishingDestinationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2278,12 +3755,34 @@ async def list_publishing_destinations( Returns: An instance of `ListPublishingDestinationsOutput`. """ + + async def list_publishing_destinations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPublishingDestinationsOutput: return await self._invoke( - input, _models.LIST_PUBLISHING_DESTINATIONS, [], plugins + self._select_input(_models.LIST_PUBLISHING_DESTINATIONS, args, kwargs), + _models.LIST_PUBLISHING_DESTINATIONS, + [], + plugins, ) + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists tags for a resource. Tagging is currently supported for detectors, @@ -2292,8 +3791,6 @@ async def list_tags_for_resource( returns all assigned tags for a given resource. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2303,10 +3800,34 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload async def list_threat_entity_sets( - self, input: ListThreatEntitySetsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListThreatEntitySetsInput + | _models.ListThreatEntitySetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListThreatEntitySetsOutput: ... + + @_overload + async def list_threat_entity_sets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListThreatEntitySetsInputDict], ) -> ListThreatEntitySetsOutput: """ Lists the threat entity sets associated with the specified GuardDuty @@ -2315,8 +3836,6 @@ async def list_threat_entity_sets( account. Args: - input: - An instance of `ListThreatEntitySetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2326,10 +3845,34 @@ async def list_threat_entity_sets( Returns: An instance of `ListThreatEntitySetsOutput`. """ - return await self._invoke(input, _models.LIST_THREAT_ENTITY_SETS, [], plugins) + async def list_threat_entity_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListThreatEntitySetsOutput: + return await self._invoke( + self._select_input(_models.LIST_THREAT_ENTITY_SETS, args, kwargs), + _models.LIST_THREAT_ENTITY_SETS, + [], + plugins, + ) + + @_overload + async def list_threat_intel_sets( + self, + request: _models.ListThreatIntelSetsInput + | _models.ListThreatIntelSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListThreatIntelSetsOutput: ... + + @_overload async def list_threat_intel_sets( - self, input: ListThreatIntelSetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListThreatIntelSetsInputDict], ) -> ListThreatIntelSetsOutput: """ Lists the ThreatIntelSets of the GuardDuty service specified by the @@ -2337,8 +3880,6 @@ async def list_threat_intel_sets( ThreatIntelSets associated with the administrator account are returned. Args: - input: - An instance of `ListThreatIntelSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2348,10 +3889,34 @@ async def list_threat_intel_sets( Returns: An instance of `ListThreatIntelSetsOutput`. """ - return await self._invoke(input, _models.LIST_THREAT_INTEL_SETS, [], plugins) + async def list_threat_intel_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListThreatIntelSetsOutput: + return await self._invoke( + self._select_input(_models.LIST_THREAT_INTEL_SETS, args, kwargs), + _models.LIST_THREAT_INTEL_SETS, + [], + plugins, + ) + + @_overload async def list_trusted_entity_sets( - self, input: ListTrustedEntitySetsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTrustedEntitySetsInput + | _models.ListTrustedEntitySetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTrustedEntitySetsOutput: ... + + @_overload + async def list_trusted_entity_sets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTrustedEntitySetsInputDict], ) -> ListTrustedEntitySetsOutput: """ Lists the trusted entity sets associated with the specified GuardDuty @@ -2360,8 +3925,6 @@ async def list_trusted_entity_sets( administrator account. Args: - input: - An instance of `ListTrustedEntitySetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2371,10 +3934,34 @@ async def list_trusted_entity_sets( Returns: An instance of `ListTrustedEntitySetsOutput`. """ - return await self._invoke(input, _models.LIST_TRUSTED_ENTITY_SETS, [], plugins) + async def list_trusted_entity_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTrustedEntitySetsOutput: + return await self._invoke( + self._select_input(_models.LIST_TRUSTED_ENTITY_SETS, args, kwargs), + _models.LIST_TRUSTED_ENTITY_SETS, + [], + plugins, + ) + + @_overload + async def send_object_malware_scan( + self, + request: _models.SendObjectMalwareScanInput + | _models.SendObjectMalwareScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendObjectMalwareScanOutput: ... + + @_overload async def send_object_malware_scan( - self, input: SendObjectMalwareScanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendObjectMalwareScanInputDict], ) -> SendObjectMalwareScanOutput: """ Initiates a malware scan for a specific S3 object. This API allows you @@ -2387,8 +3974,6 @@ async def send_object_malware_scan( Protection](http://aws.amazon.com/service-terms/#87._Amazon_GuardDuty). Args: - input: - An instance of `SendObjectMalwareScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2398,10 +3983,33 @@ async def send_object_malware_scan( Returns: An instance of `SendObjectMalwareScanOutput`. """ - return await self._invoke(input, _models.SEND_OBJECT_MALWARE_SCAN, [], plugins) + async def send_object_malware_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendObjectMalwareScanOutput: + return await self._invoke( + self._select_input(_models.SEND_OBJECT_MALWARE_SCAN, args, kwargs), + _models.SEND_OBJECT_MALWARE_SCAN, + [], + plugins, + ) + + @_overload + async def start_malware_scan( + self, + request: _models.StartMalwareScanInput | _models.StartMalwareScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartMalwareScanOutput: ... + + @_overload async def start_malware_scan( - self, input: StartMalwareScanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMalwareScanInputDict], ) -> StartMalwareScanOutput: """ Initiates the malware scan. Invoking this API will automatically create @@ -2422,8 +4030,6 @@ async def start_malware_scan( Protection](http://aws.amazon.com/service-terms/#87._Amazon_GuardDuty). Args: - input: - An instance of `StartMalwareScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2433,10 +4039,34 @@ async def start_malware_scan( Returns: An instance of `StartMalwareScanOutput`. """ - return await self._invoke(input, _models.START_MALWARE_SCAN, [], plugins) + async def start_malware_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartMalwareScanOutput: + return await self._invoke( + self._select_input(_models.START_MALWARE_SCAN, args, kwargs), + _models.START_MALWARE_SCAN, + [], + plugins, + ) + + @_overload async def start_monitoring_members( - self, input: StartMonitoringMembersInput, plugins: list[Plugin] | None = None + self, + request: _models.StartMonitoringMembersInput + | _models.StartMonitoringMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartMonitoringMembersOutput: ... + + @_overload + async def start_monitoring_members( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMonitoringMembersInputDict], ) -> StartMonitoringMembersOutput: """ Turns on GuardDuty monitoring of the specified member accounts. Use this @@ -2446,8 +4076,6 @@ async def start_monitoring_members( operation. Args: - input: - An instance of `StartMonitoringMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2457,10 +4085,34 @@ async def start_monitoring_members( Returns: An instance of `StartMonitoringMembersOutput`. """ - return await self._invoke(input, _models.START_MONITORING_MEMBERS, [], plugins) + async def start_monitoring_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartMonitoringMembersOutput: + return await self._invoke( + self._select_input(_models.START_MONITORING_MEMBERS, args, kwargs), + _models.START_MONITORING_MEMBERS, + [], + plugins, + ) + + @_overload + async def stop_monitoring_members( + self, + request: _models.StopMonitoringMembersInput + | _models.StopMonitoringMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopMonitoringMembersOutput: ... + + @_overload async def stop_monitoring_members( - self, input: StopMonitoringMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopMonitoringMembersInputDict], ) -> StopMonitoringMembersOutput: """ Stops GuardDuty monitoring for the specified member accounts. Use the @@ -2472,8 +4124,6 @@ async def stop_monitoring_members( the member accounts in your organization. Args: - input: - An instance of `StopMonitoringMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2483,17 +4133,38 @@ async def stop_monitoring_members( Returns: An instance of `StopMonitoringMembersOutput`. """ - return await self._invoke(input, _models.STOP_MONITORING_MEMBERS, [], plugins) + async def stop_monitoring_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopMonitoringMembersOutput: + return await self._invoke( + self._select_input(_models.STOP_MONITORING_MEMBERS, args, kwargs), + _models.STOP_MONITORING_MEMBERS, + [], + plugins, + ) + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + async def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds tags to a resource. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2503,17 +4174,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def unarchive_findings( + self, + request: _models.UnarchiveFindingsInput | _models.UnarchiveFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnarchiveFindingsOutput: ... + + @_overload async def unarchive_findings( - self, input: UnarchiveFindingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnarchiveFindingsInputDict], ) -> UnarchiveFindingsOutput: """ Unarchives GuardDuty findings specified by the `findingIds`. Args: - input: - An instance of `UnarchiveFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2523,17 +4215,38 @@ async def unarchive_findings( Returns: An instance of `UnarchiveFindingsOutput`. """ - return await self._invoke(input, _models.UNARCHIVE_FINDINGS, [], plugins) + async def unarchive_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnarchiveFindingsOutput: + return await self._invoke( + self._select_input(_models.UNARCHIVE_FINDINGS, args, kwargs), + _models.UNARCHIVE_FINDINGS, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2543,19 +4256,39 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload async def update_custom_detection_rule_association( self, - input: UpdateCustomDetectionRuleAssociationInput, + request: _models.UpdateCustomDetectionRuleAssociationInput + | _models.UpdateCustomDetectionRuleAssociationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateCustomDetectionRuleAssociationOutput: ... + + @_overload + async def update_custom_detection_rule_association( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCustomDetectionRuleAssociationInputDict], ) -> UpdateCustomDetectionRuleAssociationOutput: """ Updates the mode of an existing custom detection rule association. Args: - input: - An instance of `UpdateCustomDetectionRuleAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2565,22 +4298,42 @@ async def update_custom_detection_rule_association( Returns: An instance of `UpdateCustomDetectionRuleAssociationOutput`. """ + + async def update_custom_detection_rule_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCustomDetectionRuleAssociationOutput: return await self._invoke( - input, _models.UPDATE_CUSTOM_DETECTION_RULE_ASSOCIATION, [], plugins + self._select_input( + _models.UPDATE_CUSTOM_DETECTION_RULE_ASSOCIATION, args, kwargs + ), + _models.UPDATE_CUSTOM_DETECTION_RULE_ASSOCIATION, + [], + plugins, ) + @_overload async def update_custom_detection_rule_org_configuration( self, - input: UpdateCustomDetectionRuleOrgConfigurationInput, + request: _models.UpdateCustomDetectionRuleOrgConfigurationInput + | _models.UpdateCustomDetectionRuleOrgConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateCustomDetectionRuleOrgConfigurationOutput: ... + + @_overload + async def update_custom_detection_rule_org_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCustomDetectionRuleOrgConfigurationInputDict], ) -> UpdateCustomDetectionRuleOrgConfigurationOutput: """ Updates the organization-level configuration for a custom detection rule, including the mode and include/exclude account lists. Args: - input: - An instance of `UpdateCustomDetectionRuleOrgConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2590,12 +4343,35 @@ async def update_custom_detection_rule_org_configuration( Returns: An instance of `UpdateCustomDetectionRuleOrgConfigurationOutput`. """ + + async def update_custom_detection_rule_org_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCustomDetectionRuleOrgConfigurationOutput: return await self._invoke( - input, _models.UPDATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, [], plugins + self._select_input( + _models.UPDATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, args, kwargs + ), + _models.UPDATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, + [], + plugins, ) + @_overload + async def update_detector( + self, + request: _models.UpdateDetectorInput | _models.UpdateDetectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDetectorOutput: ... + + @_overload async def update_detector( - self, input: UpdateDetectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDetectorInputDict], ) -> UpdateDetectorOutput: """ Updates the GuardDuty detector specified by the detector ID. @@ -2613,8 +4389,6 @@ async def update_detector( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `UpdateDetectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2624,17 +4398,38 @@ async def update_detector( Returns: An instance of `UpdateDetectorOutput`. """ - return await self._invoke(input, _models.UPDATE_DETECTOR, [], plugins) + async def update_detector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDetectorOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DETECTOR, args, kwargs), + _models.UPDATE_DETECTOR, + [], + plugins, + ) + + @_overload + async def update_filter( + self, + request: _models.UpdateFilterInput | _models.UpdateFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFilterOutput: ... + + @_overload async def update_filter( - self, input: UpdateFilterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFilterInputDict], ) -> UpdateFilterOutput: """ Updates the filter specified by the filter name. Args: - input: - An instance of `UpdateFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2644,17 +4439,39 @@ async def update_filter( Returns: An instance of `UpdateFilterOutput`. """ - return await self._invoke(input, _models.UPDATE_FILTER, [], plugins) + async def update_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFilterOutput: + return await self._invoke( + self._select_input(_models.UPDATE_FILTER, args, kwargs), + _models.UPDATE_FILTER, + [], + plugins, + ) + + @_overload async def update_findings_feedback( - self, input: UpdateFindingsFeedbackInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateFindingsFeedbackInput + | _models.UpdateFindingsFeedbackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFindingsFeedbackOutput: ... + + @_overload + async def update_findings_feedback( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFindingsFeedbackInputDict], ) -> UpdateFindingsFeedbackOutput: """ Marks the specified GuardDuty findings as useful or not useful. Args: - input: - An instance of `UpdateFindingsFeedbackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2664,17 +4481,38 @@ async def update_findings_feedback( Returns: An instance of `UpdateFindingsFeedbackOutput`. """ - return await self._invoke(input, _models.UPDATE_FINDINGS_FEEDBACK, [], plugins) + async def update_findings_feedback( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFindingsFeedbackOutput: + return await self._invoke( + self._select_input(_models.UPDATE_FINDINGS_FEEDBACK, args, kwargs), + _models.UPDATE_FINDINGS_FEEDBACK, + [], + plugins, + ) + + @_overload async def update_ip_set( - self, input: UpdateIPSetInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateIPSetInput | _models.UpdateIPSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIPSetOutput: ... + + @_overload + async def update_ip_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIPSetInputDict], ) -> UpdateIPSetOutput: """ Updates the IPSet specified by the IPSet ID. Args: - input: - An instance of `UpdateIPSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2684,19 +4522,39 @@ async def update_ip_set( Returns: An instance of `UpdateIPSetOutput`. """ - return await self._invoke(input, _models.UPDATE_IP_SET, [], plugins) + async def update_ip_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIPSetOutput: + return await self._invoke( + self._select_input(_models.UPDATE_IP_SET, args, kwargs), + _models.UPDATE_IP_SET, + [], + plugins, + ) + + @_overload + async def update_malware_protection_plan( + self, + request: _models.UpdateMalwareProtectionPlanInput + | _models.UpdateMalwareProtectionPlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMalwareProtectionPlanOutput: ... + + @_overload async def update_malware_protection_plan( self, - input: UpdateMalwareProtectionPlanInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMalwareProtectionPlanInputDict], ) -> UpdateMalwareProtectionPlanOutput: """ Updates an existing Malware Protection plan resource. Args: - input: - An instance of `UpdateMalwareProtectionPlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2706,12 +4564,34 @@ async def update_malware_protection_plan( Returns: An instance of `UpdateMalwareProtectionPlanOutput`. """ + + async def update_malware_protection_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMalwareProtectionPlanOutput: return await self._invoke( - input, _models.UPDATE_MALWARE_PROTECTION_PLAN, [], plugins + self._select_input(_models.UPDATE_MALWARE_PROTECTION_PLAN, args, kwargs), + _models.UPDATE_MALWARE_PROTECTION_PLAN, + [], + plugins, ) + @_overload async def update_malware_scan_settings( - self, input: UpdateMalwareScanSettingsInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateMalwareScanSettingsInput + | _models.UpdateMalwareScanSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMalwareScanSettingsOutput: ... + + @_overload + async def update_malware_scan_settings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMalwareScanSettingsInputDict], ) -> UpdateMalwareScanSettingsOutput: """ Updates the malware scan settings. @@ -2722,8 +4602,6 @@ async def update_malware_scan_settings( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `UpdateMalwareScanSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2733,12 +4611,34 @@ async def update_malware_scan_settings( Returns: An instance of `UpdateMalwareScanSettingsOutput`. """ + + async def update_malware_scan_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMalwareScanSettingsOutput: return await self._invoke( - input, _models.UPDATE_MALWARE_SCAN_SETTINGS, [], plugins + self._select_input(_models.UPDATE_MALWARE_SCAN_SETTINGS, args, kwargs), + _models.UPDATE_MALWARE_SCAN_SETTINGS, + [], + plugins, ) + @_overload + async def update_member_detectors( + self, + request: _models.UpdateMemberDetectorsInput + | _models.UpdateMemberDetectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMemberDetectorsOutput: ... + + @_overload async def update_member_detectors( - self, input: UpdateMemberDetectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMemberDetectorsInputDict], ) -> UpdateMemberDetectorsOutput: """ Contains information on member accounts to be updated. @@ -2756,8 +4656,6 @@ async def update_member_detectors( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `UpdateMemberDetectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2767,12 +4665,34 @@ async def update_member_detectors( Returns: An instance of `UpdateMemberDetectorsOutput`. """ - return await self._invoke(input, _models.UPDATE_MEMBER_DETECTORS, [], plugins) + async def update_member_detectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMemberDetectorsOutput: + return await self._invoke( + self._select_input(_models.UPDATE_MEMBER_DETECTORS, args, kwargs), + _models.UPDATE_MEMBER_DETECTORS, + [], + plugins, + ) + + @_overload async def update_organization_configuration( self, - input: UpdateOrganizationConfigurationInput, + request: _models.UpdateOrganizationConfigurationInput + | _models.UpdateOrganizationConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateOrganizationConfigurationOutput: ... + + @_overload + async def update_organization_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOrganizationConfigurationInputDict], ) -> UpdateOrganizationConfigurationOutput: """ Configures the delegated administrator account with the provided values. @@ -2792,8 +4712,6 @@ async def update_organization_configuration( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `UpdateOrganizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2803,22 +4721,40 @@ async def update_organization_configuration( Returns: An instance of `UpdateOrganizationConfigurationOutput`. """ + + async def update_organization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOrganizationConfigurationOutput: return await self._invoke( - input, _models.UPDATE_ORGANIZATION_CONFIGURATION, [], plugins + self._select_input(_models.UPDATE_ORGANIZATION_CONFIGURATION, args, kwargs), + _models.UPDATE_ORGANIZATION_CONFIGURATION, + [], + plugins, ) + @_overload async def update_publishing_destination( self, - input: UpdatePublishingDestinationInput, + request: _models.UpdatePublishingDestinationInput + | _models.UpdatePublishingDestinationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdatePublishingDestinationOutput: ... + + @_overload + async def update_publishing_destination( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePublishingDestinationInputDict], ) -> UpdatePublishingDestinationOutput: """ Updates information about the publishing destination specified by the `destinationId`. Args: - input: - An instance of `UpdatePublishingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2828,20 +4764,40 @@ async def update_publishing_destination( Returns: An instance of `UpdatePublishingDestinationOutput`. """ + + async def update_publishing_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePublishingDestinationOutput: return await self._invoke( - input, _models.UPDATE_PUBLISHING_DESTINATION, [], plugins + self._select_input(_models.UPDATE_PUBLISHING_DESTINATION, args, kwargs), + _models.UPDATE_PUBLISHING_DESTINATION, + [], + plugins, ) + @_overload + async def update_threat_entity_set( + self, + request: _models.UpdateThreatEntitySetInput + | _models.UpdateThreatEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateThreatEntitySetOutput: ... + + @_overload async def update_threat_entity_set( - self, input: UpdateThreatEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateThreatEntitySetInputDict], ) -> UpdateThreatEntitySetOutput: """ Updates the threat entity set associated with the specified `threatEntitySetId`. Args: - input: - An instance of `UpdateThreatEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2851,17 +4807,39 @@ async def update_threat_entity_set( Returns: An instance of `UpdateThreatEntitySetOutput`. """ - return await self._invoke(input, _models.UPDATE_THREAT_ENTITY_SET, [], plugins) + async def update_threat_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateThreatEntitySetOutput: + return await self._invoke( + self._select_input(_models.UPDATE_THREAT_ENTITY_SET, args, kwargs), + _models.UPDATE_THREAT_ENTITY_SET, + [], + plugins, + ) + + @_overload + async def update_threat_intel_set( + self, + request: _models.UpdateThreatIntelSetInput + | _models.UpdateThreatIntelSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateThreatIntelSetOutput: ... + + @_overload async def update_threat_intel_set( - self, input: UpdateThreatIntelSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateThreatIntelSetInputDict], ) -> UpdateThreatIntelSetOutput: """ Updates the ThreatIntelSet specified by the ThreatIntelSet ID. Args: - input: - An instance of `UpdateThreatIntelSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2871,18 +4849,40 @@ async def update_threat_intel_set( Returns: An instance of `UpdateThreatIntelSetOutput`. """ - return await self._invoke(input, _models.UPDATE_THREAT_INTEL_SET, [], plugins) + async def update_threat_intel_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateThreatIntelSetOutput: + return await self._invoke( + self._select_input(_models.UPDATE_THREAT_INTEL_SET, args, kwargs), + _models.UPDATE_THREAT_INTEL_SET, + [], + plugins, + ) + + @_overload + async def update_trusted_entity_set( + self, + request: _models.UpdateTrustedEntitySetInput + | _models.UpdateTrustedEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTrustedEntitySetOutput: ... + + @_overload async def update_trusted_entity_set( - self, input: UpdateTrustedEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTrustedEntitySetInputDict], ) -> UpdateTrustedEntitySetOutput: """ Updates the trusted entity set associated with the specified `trustedEntitySetId`. Args: - input: - An instance of `UpdateTrustedEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2892,7 +4892,16 @@ async def update_trusted_entity_set( Returns: An instance of `UpdateTrustedEntitySetOutput`. """ - return await self._invoke(input, _models.UPDATE_TRUSTED_ENTITY_SET, [], plugins) + + async def update_trusted_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTrustedEntitySetOutput: + return await self._invoke( + self._select_input(_models.UPDATE_TRUSTED_ENTITY_SET, args, kwargs), + _models.UPDATE_TRUSTED_ENTITY_SET, + [], + plugins, + ) async def _new_config(self) -> AsyncGuardDutyConfig: return await AsyncGuardDutyConfig.resolve() diff --git a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/client.py b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/client.py index 5f9db4ae7..156d696a7 100644 --- a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/client.py +++ b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,209 +20,107 @@ if TYPE_CHECKING: from .models import ( - AcceptAdministratorInvitationInput, AcceptAdministratorInvitationOutput, - AcceptInvitationInput, AcceptInvitationOutput, - ArchiveFindingsInput, ArchiveFindingsOutput, - CreateCustomDetectionRuleAssociationInput, CreateCustomDetectionRuleAssociationOutput, - CreateCustomDetectionRuleOrgConfigurationInput, CreateCustomDetectionRuleOrgConfigurationOutput, - CreateDetectorInput, CreateDetectorOutput, - CreateFilterInput, CreateFilterOutput, - CreateIPSetInput, CreateIPSetOutput, - CreateInvestigationInput, CreateInvestigationOutput, - CreateMalwareProtectionPlanInput, CreateMalwareProtectionPlanOutput, - CreateMembersInput, CreateMembersOutput, - CreatePublishingDestinationInput, CreatePublishingDestinationOutput, - CreateSampleFindingsInput, CreateSampleFindingsOutput, - CreateThreatEntitySetInput, CreateThreatEntitySetOutput, - CreateThreatIntelSetInput, CreateThreatIntelSetOutput, - CreateTrustedEntitySetInput, CreateTrustedEntitySetOutput, - DeclineInvitationsInput, DeclineInvitationsOutput, - DeleteCustomDetectionRuleAssociationInput, DeleteCustomDetectionRuleAssociationOutput, - DeleteCustomDetectionRuleOrgConfigurationInput, DeleteCustomDetectionRuleOrgConfigurationOutput, - DeleteDetectorInput, DeleteDetectorOutput, - DeleteFilterInput, DeleteFilterOutput, - DeleteIPSetInput, DeleteIPSetOutput, - DeleteInvitationsInput, DeleteInvitationsOutput, - DeleteMalwareProtectionPlanInput, DeleteMalwareProtectionPlanOutput, - DeleteMembersInput, DeleteMembersOutput, - DeletePublishingDestinationInput, DeletePublishingDestinationOutput, - DeleteThreatEntitySetInput, DeleteThreatEntitySetOutput, - DeleteThreatIntelSetInput, DeleteThreatIntelSetOutput, - DeleteTrustedEntitySetInput, DeleteTrustedEntitySetOutput, - DescribeMalwareScansInput, DescribeMalwareScansOutput, - DescribeOrganizationConfigurationInput, DescribeOrganizationConfigurationOutput, - DescribePublishingDestinationInput, DescribePublishingDestinationOutput, - DisableOrganizationAdminAccountInput, DisableOrganizationAdminAccountOutput, - DisassociateFromAdministratorAccountInput, DisassociateFromAdministratorAccountOutput, - DisassociateFromMasterAccountInput, DisassociateFromMasterAccountOutput, - DisassociateMembersInput, DisassociateMembersOutput, - EnableOrganizationAdminAccountInput, EnableOrganizationAdminAccountOutput, - GetAdministratorAccountInput, GetAdministratorAccountOutput, - GetCoverageStatisticsInput, GetCoverageStatisticsOutput, - GetCustomDetectionRuleAssociationInput, GetCustomDetectionRuleAssociationOutput, - GetCustomDetectionRuleInput, - GetCustomDetectionRuleOrgConfigurationInput, GetCustomDetectionRuleOrgConfigurationOutput, GetCustomDetectionRuleOutput, - GetDetectorInput, GetDetectorOutput, - GetFilterInput, GetFilterOutput, - GetFindingsInput, GetFindingsOutput, - GetFindingsStatisticsInput, GetFindingsStatisticsOutput, - GetIPSetInput, GetIPSetOutput, - GetInvestigationInput, GetInvestigationOutput, - GetInvitationsCountInput, GetInvitationsCountOutput, - GetMalwareProtectionPlanInput, GetMalwareProtectionPlanOutput, - GetMalwareScanInput, GetMalwareScanOutput, - GetMalwareScanSettingsInput, GetMalwareScanSettingsOutput, - GetMasterAccountInput, GetMasterAccountOutput, - GetMemberDetectorsInput, GetMemberDetectorsOutput, - GetMembersInput, GetMembersOutput, - GetOrganizationStatisticsInput, GetOrganizationStatisticsOutput, - GetRemainingFreeTrialDaysInput, GetRemainingFreeTrialDaysOutput, - GetThreatEntitySetInput, GetThreatEntitySetOutput, - GetThreatIntelSetInput, GetThreatIntelSetOutput, - GetTrustedEntitySetInput, GetTrustedEntitySetOutput, - GetUsageStatisticsInput, GetUsageStatisticsOutput, - InviteMembersInput, InviteMembersOutput, - ListCoverageInput, ListCoverageOutput, - ListCustomDetectionRuleAssociationsInput, ListCustomDetectionRuleAssociationsOutput, - ListCustomDetectionRuleOrgConfigurationsInput, ListCustomDetectionRuleOrgConfigurationsOutput, - ListCustomDetectionRulesInput, ListCustomDetectionRulesOutput, - ListDetectorsInput, ListDetectorsOutput, - ListFiltersInput, ListFiltersOutput, - ListFindingsInput, ListFindingsOutput, - ListIPSetsInput, ListIPSetsOutput, - ListInvestigationsInput, ListInvestigationsOutput, - ListInvitationsInput, ListInvitationsOutput, - ListMalwareProtectionPlansInput, ListMalwareProtectionPlansOutput, - ListMalwareScansInput, ListMalwareScansOutput, - ListMembersInput, ListMembersOutput, - ListOrganizationAdminAccountsInput, ListOrganizationAdminAccountsOutput, - ListPublishingDestinationsInput, ListPublishingDestinationsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListThreatEntitySetsInput, ListThreatEntitySetsOutput, - ListThreatIntelSetsInput, ListThreatIntelSetsOutput, - ListTrustedEntitySetsInput, ListTrustedEntitySetsOutput, - SendObjectMalwareScanInput, SendObjectMalwareScanOutput, - StartMalwareScanInput, StartMalwareScanOutput, - StartMonitoringMembersInput, StartMonitoringMembersOutput, - StopMonitoringMembersInput, StopMonitoringMembersOutput, - TagResourceInput, TagResourceOutput, - UnarchiveFindingsInput, UnarchiveFindingsOutput, - UntagResourceInput, UntagResourceOutput, - UpdateCustomDetectionRuleAssociationInput, UpdateCustomDetectionRuleAssociationOutput, - UpdateCustomDetectionRuleOrgConfigurationInput, UpdateCustomDetectionRuleOrgConfigurationOutput, - UpdateDetectorInput, UpdateDetectorOutput, - UpdateFilterInput, UpdateFilterOutput, - UpdateFindingsFeedbackInput, UpdateFindingsFeedbackOutput, - UpdateIPSetInput, UpdateIPSetOutput, - UpdateMalwareProtectionPlanInput, UpdateMalwareProtectionPlanOutput, - UpdateMalwareScanSettingsInput, UpdateMalwareScanSettingsOutput, - UpdateMemberDetectorsInput, UpdateMemberDetectorsOutput, - UpdateOrganizationConfigurationInput, UpdateOrganizationConfigurationOutput, - UpdatePublishingDestinationInput, UpdatePublishingDestinationOutput, - UpdateThreatEntitySetInput, UpdateThreatEntitySetOutput, - UpdateThreatIntelSetInput, UpdateThreatIntelSetOutput, - UpdateTrustedEntitySetInput, UpdateTrustedEntitySetOutput, ) @@ -262,20 +160,31 @@ class GuardDutyClient(Client[GuardDutyConfig]): . """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def accept_administrator_invitation( self, - input: AcceptAdministratorInvitationInput, + request: _models.AcceptAdministratorInvitationInput + | _models.AcceptAdministratorInvitationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> AcceptAdministratorInvitationOutput: ... + + @_overload + def accept_administrator_invitation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptAdministratorInvitationInputDict], ) -> AcceptAdministratorInvitationOutput: """ Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation. Args: - input: - An instance of `AcceptAdministratorInvitationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -285,18 +194,39 @@ def accept_administrator_invitation( Returns: An instance of `AcceptAdministratorInvitationOutput`. """ - return self._invoke(input, _models.ACCEPT_ADMINISTRATOR_INVITATION, [], plugins) + def accept_administrator_invitation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptAdministratorInvitationOutput: + return self._invoke( + self._select_input(_models.ACCEPT_ADMINISTRATOR_INVITATION, args, kwargs), + _models.ACCEPT_ADMINISTRATOR_INVITATION, + [], + plugins, + ) + + @_overload + def accept_invitation( + self, + request: _models.AcceptInvitationInput | _models.AcceptInvitationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptInvitationOutput: ... + + @_overload def accept_invitation( - self, input: AcceptInvitationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptInvitationInputDict], ) -> AcceptInvitationOutput: """ Accepts the invitation to be monitored by a GuardDuty administrator account. Args: - input: - An instance of `AcceptInvitationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -306,10 +236,33 @@ def accept_invitation( Returns: An instance of `AcceptInvitationOutput`. """ - return self._invoke(input, _models.ACCEPT_INVITATION, [], plugins) + def accept_invitation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptInvitationOutput: + return self._invoke( + self._select_input(_models.ACCEPT_INVITATION, args, kwargs), + _models.ACCEPT_INVITATION, + [], + plugins, + ) + + @_overload + def archive_findings( + self, + request: _models.ArchiveFindingsInput | _models.ArchiveFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ArchiveFindingsOutput: ... + + @_overload def archive_findings( - self, input: ArchiveFindingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ArchiveFindingsInputDict], ) -> ArchiveFindingsOutput: """ Archives GuardDuty findings that are specified by the list of finding @@ -320,8 +273,6 @@ def archive_findings( don't have permission to archive findings from their accounts. Args: - input: - An instance of `ArchiveFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -331,20 +282,40 @@ def archive_findings( Returns: An instance of `ArchiveFindingsOutput`. """ - return self._invoke(input, _models.ARCHIVE_FINDINGS, [], plugins) + def archive_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ArchiveFindingsOutput: + return self._invoke( + self._select_input(_models.ARCHIVE_FINDINGS, args, kwargs), + _models.ARCHIVE_FINDINGS, + [], + plugins, + ) + + @_overload + def create_custom_detection_rule_association( + self, + request: _models.CreateCustomDetectionRuleAssociationInput + | _models.CreateCustomDetectionRuleAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomDetectionRuleAssociationOutput: ... + + @_overload def create_custom_detection_rule_association( self, - input: CreateCustomDetectionRuleAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomDetectionRuleAssociationInputDict], ) -> CreateCustomDetectionRuleAssociationOutput: """ Enables a custom detection rule for your account by creating an association. You specify the rule and the mode in which it operates. Args: - input: - An instance of `CreateCustomDetectionRuleAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -354,14 +325,36 @@ def create_custom_detection_rule_association( Returns: An instance of `CreateCustomDetectionRuleAssociationOutput`. """ + + def create_custom_detection_rule_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomDetectionRuleAssociationOutput: return self._invoke( - input, _models.CREATE_CUSTOM_DETECTION_RULE_ASSOCIATION, [], plugins + self._select_input( + _models.CREATE_CUSTOM_DETECTION_RULE_ASSOCIATION, args, kwargs + ), + _models.CREATE_CUSTOM_DETECTION_RULE_ASSOCIATION, + [], + plugins, ) + @_overload + def create_custom_detection_rule_org_configuration( + self, + request: _models.CreateCustomDetectionRuleOrgConfigurationInput + | _models.CreateCustomDetectionRuleOrgConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomDetectionRuleOrgConfigurationOutput: ... + + @_overload def create_custom_detection_rule_org_configuration( self, - input: CreateCustomDetectionRuleOrgConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomDetectionRuleOrgConfigurationInputDict], ) -> CreateCustomDetectionRuleOrgConfigurationOutput: """ Creates an organization-level configuration that enables a custom @@ -369,8 +362,6 @@ def create_custom_detection_rule_org_configuration( only to the delegated administrator account. Args: - input: - An instance of `CreateCustomDetectionRuleOrgConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -380,12 +371,35 @@ def create_custom_detection_rule_org_configuration( Returns: An instance of `CreateCustomDetectionRuleOrgConfigurationOutput`. """ + + def create_custom_detection_rule_org_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomDetectionRuleOrgConfigurationOutput: return self._invoke( - input, _models.CREATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, args, kwargs + ), + _models.CREATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, + [], + plugins, ) + @_overload + def create_detector( + self, + request: _models.CreateDetectorInput | _models.CreateDetectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDetectorOutput: ... + + @_overload def create_detector( - self, input: CreateDetectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDetectorInputDict], ) -> CreateDetectorOutput: """ Creates a single GuardDuty detector. A detector is a resource that @@ -415,8 +429,6 @@ def create_detector( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `CreateDetectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -426,10 +438,33 @@ def create_detector( Returns: An instance of `CreateDetectorOutput`. """ - return self._invoke(input, _models.CREATE_DETECTOR, [], plugins) + def create_detector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDetectorOutput: + return self._invoke( + self._select_input(_models.CREATE_DETECTOR, args, kwargs), + _models.CREATE_DETECTOR, + [], + plugins, + ) + + @_overload def create_filter( - self, input: CreateFilterInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateFilterInput | _models.CreateFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFilterOutput: ... + + @_overload + def create_filter( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFilterInputDict], ) -> CreateFilterOutput: """ Creates a filter using the specified finding criteria. The maximum @@ -438,8 +473,6 @@ def create_filter( GuardDuty](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_limits.html). Args: - input: - An instance of `CreateFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -449,10 +482,34 @@ def create_filter( Returns: An instance of `CreateFilterOutput`. """ - return self._invoke(input, _models.CREATE_FILTER, [], plugins) + def create_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFilterOutput: + return self._invoke( + self._select_input(_models.CREATE_FILTER, args, kwargs), + _models.CREATE_FILTER, + [], + plugins, + ) + + @_overload + def create_investigation( + self, + request: _models.CreateInvestigationInput + | _models.CreateInvestigationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInvestigationOutput: ... + + @_overload def create_investigation( - self, input: CreateInvestigationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInvestigationInputDict], ) -> CreateInvestigationOutput: """ This API is currently available as a preview. During the preview, you @@ -488,8 +545,6 @@ def create_investigation( Investigation](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty-investigation.html). Args: - input: - An instance of `CreateInvestigationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -499,10 +554,33 @@ def create_investigation( Returns: An instance of `CreateInvestigationOutput`. """ - return self._invoke(input, _models.CREATE_INVESTIGATION, [], plugins) + def create_investigation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInvestigationOutput: + return self._invoke( + self._select_input(_models.CREATE_INVESTIGATION, args, kwargs), + _models.CREATE_INVESTIGATION, + [], + plugins, + ) + + @_overload + def create_ip_set( + self, + request: _models.CreateIPSetInput | _models.CreateIPSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIPSetOutput: ... + + @_overload def create_ip_set( - self, input: CreateIPSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIPSetInputDict], ) -> CreateIPSetOutput: """ Creates a new IPSet, which is called a trusted IP list in the console @@ -513,8 +591,6 @@ def create_ip_set( use this operation. Args: - input: - An instance of `CreateIPSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -524,12 +600,34 @@ def create_ip_set( Returns: An instance of `CreateIPSetOutput`. """ - return self._invoke(input, _models.CREATE_IP_SET, [], plugins) + def create_ip_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIPSetOutput: + return self._invoke( + self._select_input(_models.CREATE_IP_SET, args, kwargs), + _models.CREATE_IP_SET, + [], + plugins, + ) + + @_overload + def create_malware_protection_plan( + self, + request: _models.CreateMalwareProtectionPlanInput + | _models.CreateMalwareProtectionPlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMalwareProtectionPlanOutput: ... + + @_overload def create_malware_protection_plan( self, - input: CreateMalwareProtectionPlanInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMalwareProtectionPlanInputDict], ) -> CreateMalwareProtectionPlanOutput: """ Creates a new Malware Protection plan for the protected resource. @@ -541,8 +639,6 @@ def create_malware_protection_plan( Protection](http://aws.amazon.com/service-terms/#87._Amazon_GuardDuty). Args: - input: - An instance of `CreateMalwareProtectionPlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -552,10 +648,33 @@ def create_malware_protection_plan( Returns: An instance of `CreateMalwareProtectionPlanOutput`. """ - return self._invoke(input, _models.CREATE_MALWARE_PROTECTION_PLAN, [], plugins) + def create_malware_protection_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMalwareProtectionPlanOutput: + return self._invoke( + self._select_input(_models.CREATE_MALWARE_PROTECTION_PLAN, args, kwargs), + _models.CREATE_MALWARE_PROTECTION_PLAN, + [], + plugins, + ) + + @_overload + def create_members( + self, + request: _models.CreateMembersInput | _models.CreateMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMembersOutput: ... + + @_overload def create_members( - self, input: CreateMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMembersInputDict], ) -> CreateMembersOutput: """ Creates member accounts of the current Amazon Web Services account by @@ -592,8 +711,6 @@ def create_members( accounts again only by calling the CreateMembers API. Args: - input: - An instance of `CreateMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -603,12 +720,34 @@ def create_members( Returns: An instance of `CreateMembersOutput`. """ - return self._invoke(input, _models.CREATE_MEMBERS, [], plugins) + def create_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMembersOutput: + return self._invoke( + self._select_input(_models.CREATE_MEMBERS, args, kwargs), + _models.CREATE_MEMBERS, + [], + plugins, + ) + + @_overload + def create_publishing_destination( + self, + request: _models.CreatePublishingDestinationInput + | _models.CreatePublishingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePublishingDestinationOutput: ... + + @_overload def create_publishing_destination( self, - input: CreatePublishingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePublishingDestinationInputDict], ) -> CreatePublishingDestinationOutput: """ Creates a publishing destination where you can export your GuardDuty @@ -616,8 +755,6 @@ def create_publishing_destination( resource must exist. Args: - input: - An instance of `CreatePublishingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -627,10 +764,34 @@ def create_publishing_destination( Returns: An instance of `CreatePublishingDestinationOutput`. """ - return self._invoke(input, _models.CREATE_PUBLISHING_DESTINATION, [], plugins) + def create_publishing_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePublishingDestinationOutput: + return self._invoke( + self._select_input(_models.CREATE_PUBLISHING_DESTINATION, args, kwargs), + _models.CREATE_PUBLISHING_DESTINATION, + [], + plugins, + ) + + @_overload + def create_sample_findings( + self, + request: _models.CreateSampleFindingsInput + | _models.CreateSampleFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSampleFindingsOutput: ... + + @_overload def create_sample_findings( - self, input: CreateSampleFindingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSampleFindingsInputDict], ) -> CreateSampleFindingsOutput: """ Generates sample findings of types specified by the list of finding @@ -638,8 +799,6 @@ def create_sample_findings( sample findings of all supported finding types. Args: - input: - An instance of `CreateSampleFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -649,10 +808,34 @@ def create_sample_findings( Returns: An instance of `CreateSampleFindingsOutput`. """ - return self._invoke(input, _models.CREATE_SAMPLE_FINDINGS, [], plugins) + def create_sample_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSampleFindingsOutput: + return self._invoke( + self._select_input(_models.CREATE_SAMPLE_FINDINGS, args, kwargs), + _models.CREATE_SAMPLE_FINDINGS, + [], + plugins, + ) + + @_overload + def create_threat_entity_set( + self, + request: _models.CreateThreatEntitySetInput + | _models.CreateThreatEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateThreatEntitySetOutput: ... + + @_overload def create_threat_entity_set( - self, input: CreateThreatEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateThreatEntitySetInputDict], ) -> CreateThreatEntitySetOutput: """ Creates a new threat entity set. In a threat entity set, you can provide @@ -662,8 +845,6 @@ def create_threat_entity_set( entity sets, which automatically apply to member accounts. Args: - input: - An instance of `CreateThreatEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -673,10 +854,34 @@ def create_threat_entity_set( Returns: An instance of `CreateThreatEntitySetOutput`. """ - return self._invoke(input, _models.CREATE_THREAT_ENTITY_SET, [], plugins) + def create_threat_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateThreatEntitySetOutput: + return self._invoke( + self._select_input(_models.CREATE_THREAT_ENTITY_SET, args, kwargs), + _models.CREATE_THREAT_ENTITY_SET, + [], + plugins, + ) + + @_overload + def create_threat_intel_set( + self, + request: _models.CreateThreatIntelSetInput + | _models.CreateThreatIntelSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateThreatIntelSetOutput: ... + + @_overload def create_threat_intel_set( - self, input: CreateThreatIntelSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateThreatIntelSetInputDict], ) -> CreateThreatIntelSetOutput: """ Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious @@ -684,8 +889,6 @@ def create_threat_intel_set( Only users of the administrator account can use this operation. Args: - input: - An instance of `CreateThreatIntelSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -695,10 +898,34 @@ def create_threat_intel_set( Returns: An instance of `CreateThreatIntelSetOutput`. """ - return self._invoke(input, _models.CREATE_THREAT_INTEL_SET, [], plugins) + def create_threat_intel_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateThreatIntelSetOutput: + return self._invoke( + self._select_input(_models.CREATE_THREAT_INTEL_SET, args, kwargs), + _models.CREATE_THREAT_INTEL_SET, + [], + plugins, + ) + + @_overload + def create_trusted_entity_set( + self, + request: _models.CreateTrustedEntitySetInput + | _models.CreateTrustedEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTrustedEntitySetOutput: ... + + @_overload def create_trusted_entity_set( - self, input: CreateTrustedEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTrustedEntitySetInputDict], ) -> CreateTrustedEntitySetOutput: """ Creates a new trusted entity set. In the trusted entity set, you can @@ -711,8 +938,6 @@ def create_trusted_entity_set( which automatically apply to member accounts. Args: - input: - An instance of `CreateTrustedEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -722,18 +947,39 @@ def create_trusted_entity_set( Returns: An instance of `CreateTrustedEntitySetOutput`. """ - return self._invoke(input, _models.CREATE_TRUSTED_ENTITY_SET, [], plugins) + def create_trusted_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTrustedEntitySetOutput: + return self._invoke( + self._select_input(_models.CREATE_TRUSTED_ENTITY_SET, args, kwargs), + _models.CREATE_TRUSTED_ENTITY_SET, + [], + plugins, + ) + + @_overload + def decline_invitations( + self, + request: _models.DeclineInvitationsInput | _models.DeclineInvitationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeclineInvitationsOutput: ... + + @_overload def decline_invitations( - self, input: DeclineInvitationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeclineInvitationsInputDict], ) -> DeclineInvitationsOutput: """ Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs. Args: - input: - An instance of `DeclineInvitationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -743,20 +989,40 @@ def decline_invitations( Returns: An instance of `DeclineInvitationsOutput`. """ - return self._invoke(input, _models.DECLINE_INVITATIONS, [], plugins) + def decline_invitations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeclineInvitationsOutput: + return self._invoke( + self._select_input(_models.DECLINE_INVITATIONS, args, kwargs), + _models.DECLINE_INVITATIONS, + [], + plugins, + ) + + @_overload + def delete_custom_detection_rule_association( + self, + request: _models.DeleteCustomDetectionRuleAssociationInput + | _models.DeleteCustomDetectionRuleAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomDetectionRuleAssociationOutput: ... + + @_overload def delete_custom_detection_rule_association( self, - input: DeleteCustomDetectionRuleAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomDetectionRuleAssociationInputDict], ) -> DeleteCustomDetectionRuleAssociationOutput: """ Disables a custom detection rule by deleting its association. This operation is idempotent. Args: - input: - An instance of `DeleteCustomDetectionRuleAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -766,14 +1032,36 @@ def delete_custom_detection_rule_association( Returns: An instance of `DeleteCustomDetectionRuleAssociationOutput`. """ + + def delete_custom_detection_rule_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomDetectionRuleAssociationOutput: return self._invoke( - input, _models.DELETE_CUSTOM_DETECTION_RULE_ASSOCIATION, [], plugins + self._select_input( + _models.DELETE_CUSTOM_DETECTION_RULE_ASSOCIATION, args, kwargs + ), + _models.DELETE_CUSTOM_DETECTION_RULE_ASSOCIATION, + [], + plugins, ) + @_overload + def delete_custom_detection_rule_org_configuration( + self, + request: _models.DeleteCustomDetectionRuleOrgConfigurationInput + | _models.DeleteCustomDetectionRuleOrgConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomDetectionRuleOrgConfigurationOutput: ... + + @_overload def delete_custom_detection_rule_org_configuration( self, - input: DeleteCustomDetectionRuleOrgConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomDetectionRuleOrgConfigurationInputDict], ) -> DeleteCustomDetectionRuleOrgConfigurationOutput: """ Deletes the organization-level configuration for a custom detection @@ -781,8 +1069,6 @@ def delete_custom_detection_rule_org_configuration( account. Args: - input: - An instance of `DeleteCustomDetectionRuleOrgConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -792,20 +1078,41 @@ def delete_custom_detection_rule_org_configuration( Returns: An instance of `DeleteCustomDetectionRuleOrgConfigurationOutput`. """ + + def delete_custom_detection_rule_org_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomDetectionRuleOrgConfigurationOutput: return self._invoke( - input, _models.DELETE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, args, kwargs + ), + _models.DELETE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_detector( + self, + request: _models.DeleteDetectorInput | _models.DeleteDetectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDetectorOutput: ... + + @_overload def delete_detector( - self, input: DeleteDetectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDetectorInputDict], ) -> DeleteDetectorOutput: """ Deletes an Amazon GuardDuty detector that is specified by the detector ID. Args: - input: - An instance of `DeleteDetectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -815,17 +1122,38 @@ def delete_detector( Returns: An instance of `DeleteDetectorOutput`. """ - return self._invoke(input, _models.DELETE_DETECTOR, [], plugins) + def delete_detector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDetectorOutput: + return self._invoke( + self._select_input(_models.DELETE_DETECTOR, args, kwargs), + _models.DELETE_DETECTOR, + [], + plugins, + ) + + @_overload + def delete_filter( + self, + request: _models.DeleteFilterInput | _models.DeleteFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFilterOutput: ... + + @_overload def delete_filter( - self, input: DeleteFilterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFilterInputDict], ) -> DeleteFilterOutput: """ Deletes the filter specified by the filter name. Args: - input: - An instance of `DeleteFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -835,18 +1163,39 @@ def delete_filter( Returns: An instance of `DeleteFilterOutput`. """ - return self._invoke(input, _models.DELETE_FILTER, [], plugins) + def delete_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFilterOutput: + return self._invoke( + self._select_input(_models.DELETE_FILTER, args, kwargs), + _models.DELETE_FILTER, + [], + plugins, + ) + + @_overload + def delete_invitations( + self, + request: _models.DeleteInvitationsInput | _models.DeleteInvitationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInvitationsOutput: ... + + @_overload def delete_invitations( - self, input: DeleteInvitationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInvitationsInputDict], ) -> DeleteInvitationsOutput: """ Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs. Args: - input: - An instance of `DeleteInvitationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -856,18 +1205,39 @@ def delete_invitations( Returns: An instance of `DeleteInvitationsOutput`. """ - return self._invoke(input, _models.DELETE_INVITATIONS, [], plugins) + def delete_invitations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInvitationsOutput: + return self._invoke( + self._select_input(_models.DELETE_INVITATIONS, args, kwargs), + _models.DELETE_INVITATIONS, + [], + plugins, + ) + + @_overload + def delete_ip_set( + self, + request: _models.DeleteIPSetInput | _models.DeleteIPSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIPSetOutput: ... + + @_overload def delete_ip_set( - self, input: DeleteIPSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIPSetInputDict], ) -> DeleteIPSetOutput: """ Deletes the IPSet specified by the `ipSetId`. IPSets are called trusted IP lists in the console user interface. Args: - input: - An instance of `DeleteIPSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -877,12 +1247,34 @@ def delete_ip_set( Returns: An instance of `DeleteIPSetOutput`. """ - return self._invoke(input, _models.DELETE_IP_SET, [], plugins) + def delete_ip_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIPSetOutput: + return self._invoke( + self._select_input(_models.DELETE_IP_SET, args, kwargs), + _models.DELETE_IP_SET, + [], + plugins, + ) + + @_overload + def delete_malware_protection_plan( + self, + request: _models.DeleteMalwareProtectionPlanInput + | _models.DeleteMalwareProtectionPlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMalwareProtectionPlanOutput: ... + + @_overload def delete_malware_protection_plan( self, - input: DeleteMalwareProtectionPlanInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMalwareProtectionPlanInputDict], ) -> DeleteMalwareProtectionPlanOutput: """ Deletes the Malware Protection plan ID associated with the Malware @@ -890,8 +1282,6 @@ def delete_malware_protection_plan( protect the resource associated with this Malware Protection plan ID. Args: - input: - An instance of `DeleteMalwareProtectionPlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -901,10 +1291,33 @@ def delete_malware_protection_plan( Returns: An instance of `DeleteMalwareProtectionPlanOutput`. """ - return self._invoke(input, _models.DELETE_MALWARE_PROTECTION_PLAN, [], plugins) + def delete_malware_protection_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMalwareProtectionPlanOutput: + return self._invoke( + self._select_input(_models.DELETE_MALWARE_PROTECTION_PLAN, args, kwargs), + _models.DELETE_MALWARE_PROTECTION_PLAN, + [], + plugins, + ) + + @_overload def delete_members( - self, input: DeleteMembersInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteMembersInput | _models.DeleteMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMembersOutput: ... + + @_overload + def delete_members( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMembersInputDict], ) -> DeleteMembersOutput: """ Deletes GuardDuty member accounts (to the current GuardDuty @@ -915,8 +1328,6 @@ def delete_members( GuardDuty for a member account in your organization. Args: - input: - An instance of `DeleteMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -926,19 +1337,39 @@ def delete_members( Returns: An instance of `DeleteMembersOutput`. """ - return self._invoke(input, _models.DELETE_MEMBERS, [], plugins) + def delete_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMembersOutput: + return self._invoke( + self._select_input(_models.DELETE_MEMBERS, args, kwargs), + _models.DELETE_MEMBERS, + [], + plugins, + ) + + @_overload + def delete_publishing_destination( + self, + request: _models.DeletePublishingDestinationInput + | _models.DeletePublishingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePublishingDestinationOutput: ... + + @_overload def delete_publishing_destination( self, - input: DeletePublishingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePublishingDestinationInputDict], ) -> DeletePublishingDestinationOutput: """ Deletes the publishing definition with the specified `destinationId`. Args: - input: - An instance of `DeletePublishingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -948,18 +1379,40 @@ def delete_publishing_destination( Returns: An instance of `DeletePublishingDestinationOutput`. """ - return self._invoke(input, _models.DELETE_PUBLISHING_DESTINATION, [], plugins) - def delete_threat_entity_set( - self, input: DeleteThreatEntitySetInput, plugins: list[Plugin] | None = None + def delete_publishing_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePublishingDestinationOutput: + return self._invoke( + self._select_input(_models.DELETE_PUBLISHING_DESTINATION, args, kwargs), + _models.DELETE_PUBLISHING_DESTINATION, + [], + plugins, + ) + + @_overload + def delete_threat_entity_set( + self, + request: _models.DeleteThreatEntitySetInput + | _models.DeleteThreatEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteThreatEntitySetOutput: ... + + @_overload + def delete_threat_entity_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteThreatEntitySetInputDict], ) -> DeleteThreatEntitySetOutput: """ Deletes the threat entity set that is associated with the specified `threatEntitySetId`. Args: - input: - An instance of `DeleteThreatEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -969,17 +1422,39 @@ def delete_threat_entity_set( Returns: An instance of `DeleteThreatEntitySetOutput`. """ - return self._invoke(input, _models.DELETE_THREAT_ENTITY_SET, [], plugins) + def delete_threat_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteThreatEntitySetOutput: + return self._invoke( + self._select_input(_models.DELETE_THREAT_ENTITY_SET, args, kwargs), + _models.DELETE_THREAT_ENTITY_SET, + [], + plugins, + ) + + @_overload + def delete_threat_intel_set( + self, + request: _models.DeleteThreatIntelSetInput + | _models.DeleteThreatIntelSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteThreatIntelSetOutput: ... + + @_overload def delete_threat_intel_set( - self, input: DeleteThreatIntelSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteThreatIntelSetInputDict], ) -> DeleteThreatIntelSetOutput: """ Deletes the ThreatIntelSet specified by the ThreatIntelSet ID. Args: - input: - An instance of `DeleteThreatIntelSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -989,18 +1464,40 @@ def delete_threat_intel_set( Returns: An instance of `DeleteThreatIntelSetOutput`. """ - return self._invoke(input, _models.DELETE_THREAT_INTEL_SET, [], plugins) + def delete_threat_intel_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteThreatIntelSetOutput: + return self._invoke( + self._select_input(_models.DELETE_THREAT_INTEL_SET, args, kwargs), + _models.DELETE_THREAT_INTEL_SET, + [], + plugins, + ) + + @_overload + def delete_trusted_entity_set( + self, + request: _models.DeleteTrustedEntitySetInput + | _models.DeleteTrustedEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTrustedEntitySetOutput: ... + + @_overload def delete_trusted_entity_set( - self, input: DeleteTrustedEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTrustedEntitySetInputDict], ) -> DeleteTrustedEntitySetOutput: """ Deletes the trusted entity set that is associated with the specified `trustedEntitySetId`. Args: - input: - An instance of `DeleteTrustedEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1010,10 +1507,34 @@ def delete_trusted_entity_set( Returns: An instance of `DeleteTrustedEntitySetOutput`. """ - return self._invoke(input, _models.DELETE_TRUSTED_ENTITY_SET, [], plugins) + def delete_trusted_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTrustedEntitySetOutput: + return self._invoke( + self._select_input(_models.DELETE_TRUSTED_ENTITY_SET, args, kwargs), + _models.DELETE_TRUSTED_ENTITY_SET, + [], + plugins, + ) + + @_overload + def describe_malware_scans( + self, + request: _models.DescribeMalwareScansInput + | _models.DescribeMalwareScansInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeMalwareScansOutput: ... + + @_overload def describe_malware_scans( - self, input: DescribeMalwareScansInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeMalwareScansInputDict], ) -> DescribeMalwareScansOutput: """ Returns a list of malware scans. Each member account can view the @@ -1026,8 +1547,6 @@ def describe_malware_scans( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `DescribeMalwareScansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1037,12 +1556,34 @@ def describe_malware_scans( Returns: An instance of `DescribeMalwareScansOutput`. """ - return self._invoke(input, _models.DESCRIBE_MALWARE_SCANS, [], plugins) + def describe_malware_scans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeMalwareScansOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_MALWARE_SCANS, args, kwargs), + _models.DESCRIBE_MALWARE_SCANS, + [], + plugins, + ) + + @_overload + def describe_organization_configuration( + self, + request: _models.DescribeOrganizationConfigurationInput + | _models.DescribeOrganizationConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOrganizationConfigurationOutput: ... + + @_overload def describe_organization_configuration( self, - input: DescribeOrganizationConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOrganizationConfigurationInputDict], ) -> DescribeOrganizationConfigurationOutput: """ Returns information about the account selected as the delegated @@ -1054,8 +1595,6 @@ def describe_organization_configuration( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `DescribeOrganizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1065,22 +1604,42 @@ def describe_organization_configuration( Returns: An instance of `DescribeOrganizationConfigurationOutput`. """ + + def describe_organization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOrganizationConfigurationOutput: return self._invoke( - input, _models.DESCRIBE_ORGANIZATION_CONFIGURATION, [], plugins + self._select_input( + _models.DESCRIBE_ORGANIZATION_CONFIGURATION, args, kwargs + ), + _models.DESCRIBE_ORGANIZATION_CONFIGURATION, + [], + plugins, ) + @_overload + def describe_publishing_destination( + self, + request: _models.DescribePublishingDestinationInput + | _models.DescribePublishingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePublishingDestinationOutput: ... + + @_overload def describe_publishing_destination( self, - input: DescribePublishingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePublishingDestinationInputDict], ) -> DescribePublishingDestinationOutput: """ Returns information about the publishing destination specified by the provided `destinationId`. Args: - input: - An instance of `DescribePublishingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1090,12 +1649,34 @@ def describe_publishing_destination( Returns: An instance of `DescribePublishingDestinationOutput`. """ - return self._invoke(input, _models.DESCRIBE_PUBLISHING_DESTINATION, [], plugins) + def describe_publishing_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePublishingDestinationOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_PUBLISHING_DESTINATION, args, kwargs), + _models.DESCRIBE_PUBLISHING_DESTINATION, + [], + plugins, + ) + + @_overload + def disable_organization_admin_account( + self, + request: _models.DisableOrganizationAdminAccountInput + | _models.DisableOrganizationAdminAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableOrganizationAdminAccountOutput: ... + + @_overload def disable_organization_admin_account( self, - input: DisableOrganizationAdminAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableOrganizationAdminAccountInputDict], ) -> DisableOrganizationAdminAccountOutput: """ Removes the existing GuardDuty delegated administrator of the @@ -1103,8 +1684,6 @@ def disable_organization_admin_account( API operation. Args: - input: - An instance of `DisableOrganizationAdminAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1114,14 +1693,36 @@ def disable_organization_admin_account( Returns: An instance of `DisableOrganizationAdminAccountOutput`. """ + + def disable_organization_admin_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableOrganizationAdminAccountOutput: return self._invoke( - input, _models.DISABLE_ORGANIZATION_ADMIN_ACCOUNT, [], plugins + self._select_input( + _models.DISABLE_ORGANIZATION_ADMIN_ACCOUNT, args, kwargs + ), + _models.DISABLE_ORGANIZATION_ADMIN_ACCOUNT, + [], + plugins, ) + @_overload + def disassociate_from_administrator_account( + self, + request: _models.DisassociateFromAdministratorAccountInput + | _models.DisassociateFromAdministratorAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateFromAdministratorAccountOutput: ... + + @_overload def disassociate_from_administrator_account( self, - input: DisassociateFromAdministratorAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateFromAdministratorAccountInputDict], ) -> DisassociateFromAdministratorAccountOutput: """ Disassociates the current GuardDuty member account from its @@ -1144,8 +1745,6 @@ def disassociate_from_administrator_account( GuardDuty in a member account. Args: - input: - An instance of `DisassociateFromAdministratorAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1155,14 +1754,36 @@ def disassociate_from_administrator_account( Returns: An instance of `DisassociateFromAdministratorAccountOutput`. """ + + def disassociate_from_administrator_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateFromAdministratorAccountOutput: return self._invoke( - input, _models.DISASSOCIATE_FROM_ADMINISTRATOR_ACCOUNT, [], plugins + self._select_input( + _models.DISASSOCIATE_FROM_ADMINISTRATOR_ACCOUNT, args, kwargs + ), + _models.DISASSOCIATE_FROM_ADMINISTRATOR_ACCOUNT, + [], + plugins, ) + @_overload def disassociate_from_master_account( self, - input: DisassociateFromMasterAccountInput, + request: _models.DisassociateFromMasterAccountInput + | _models.DisassociateFromMasterAccountInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisassociateFromMasterAccountOutput: ... + + @_overload + def disassociate_from_master_account( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateFromMasterAccountInputDict], ) -> DisassociateFromMasterAccountOutput: """ Disassociates the current GuardDuty member account from its @@ -1181,8 +1802,6 @@ def disassociate_from_master_account( API. Args: - input: - An instance of `DisassociateFromMasterAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1192,12 +1811,34 @@ def disassociate_from_master_account( Returns: An instance of `DisassociateFromMasterAccountOutput`. """ + + def disassociate_from_master_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateFromMasterAccountOutput: return self._invoke( - input, _models.DISASSOCIATE_FROM_MASTER_ACCOUNT, [], plugins + self._select_input(_models.DISASSOCIATE_FROM_MASTER_ACCOUNT, args, kwargs), + _models.DISASSOCIATE_FROM_MASTER_ACCOUNT, + [], + plugins, ) + @_overload + def disassociate_members( + self, + request: _models.DisassociateMembersInput + | _models.DisassociateMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociateMembersOutput: ... + + @_overload def disassociate_members( - self, input: DisassociateMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociateMembersInputDict], ) -> DisassociateMembersOutput: """ Disassociates GuardDuty member accounts (from the current administrator @@ -1236,8 +1877,6 @@ def disassociate_members( accounts again only by calling the CreateMembers API. Args: - input: - An instance of `DisassociateMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1247,12 +1886,34 @@ def disassociate_members( Returns: An instance of `DisassociateMembersOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_MEMBERS, [], plugins) + def disassociate_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociateMembersOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_MEMBERS, args, kwargs), + _models.DISASSOCIATE_MEMBERS, + [], + plugins, + ) + + @_overload + def enable_organization_admin_account( + self, + request: _models.EnableOrganizationAdminAccountInput + | _models.EnableOrganizationAdminAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableOrganizationAdminAccountOutput: ... + + @_overload def enable_organization_admin_account( self, - input: EnableOrganizationAdminAccountInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableOrganizationAdminAccountInputDict], ) -> EnableOrganizationAdminAccountOutput: """ Designates an Amazon Web Services account within the organization as @@ -1260,8 +1921,6 @@ def enable_organization_admin_account( management account can run this API operation. Args: - input: - An instance of `EnableOrganizationAdminAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1271,12 +1930,34 @@ def enable_organization_admin_account( Returns: An instance of `EnableOrganizationAdminAccountOutput`. """ + + def enable_organization_admin_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableOrganizationAdminAccountOutput: return self._invoke( - input, _models.ENABLE_ORGANIZATION_ADMIN_ACCOUNT, [], plugins + self._select_input(_models.ENABLE_ORGANIZATION_ADMIN_ACCOUNT, args, kwargs), + _models.ENABLE_ORGANIZATION_ADMIN_ACCOUNT, + [], + plugins, ) + @_overload + def get_administrator_account( + self, + request: _models.GetAdministratorAccountInput + | _models.GetAdministratorAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAdministratorAccountOutput: ... + + @_overload def get_administrator_account( - self, input: GetAdministratorAccountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAdministratorAccountInputDict], ) -> GetAdministratorAccountOutput: """ Provides the details of the GuardDuty administrator account associated @@ -1296,8 +1977,6 @@ def get_administrator_account( this API, it will return success (`HTTP 200`) but no content. Args: - input: - An instance of `GetAdministratorAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1307,10 +1986,34 @@ def get_administrator_account( Returns: An instance of `GetAdministratorAccountOutput`. """ - return self._invoke(input, _models.GET_ADMINISTRATOR_ACCOUNT, [], plugins) + def get_administrator_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAdministratorAccountOutput: + return self._invoke( + self._select_input(_models.GET_ADMINISTRATOR_ACCOUNT, args, kwargs), + _models.GET_ADMINISTRATOR_ACCOUNT, + [], + plugins, + ) + + @_overload + def get_coverage_statistics( + self, + request: _models.GetCoverageStatisticsInput + | _models.GetCoverageStatisticsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCoverageStatisticsOutput: ... + + @_overload def get_coverage_statistics( - self, input: GetCoverageStatisticsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCoverageStatisticsInputDict], ) -> GetCoverageStatisticsOutput: """ Retrieves aggregated statistics for your account. If you are a GuardDuty @@ -1320,8 +2023,6 @@ def get_coverage_statistics( on their resources. Args: - input: - An instance of `GetCoverageStatisticsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1331,18 +2032,40 @@ def get_coverage_statistics( Returns: An instance of `GetCoverageStatisticsOutput`. """ - return self._invoke(input, _models.GET_COVERAGE_STATISTICS, [], plugins) + def get_coverage_statistics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCoverageStatisticsOutput: + return self._invoke( + self._select_input(_models.GET_COVERAGE_STATISTICS, args, kwargs), + _models.GET_COVERAGE_STATISTICS, + [], + plugins, + ) + + @_overload + def get_custom_detection_rule( + self, + request: _models.GetCustomDetectionRuleInput + | _models.GetCustomDetectionRuleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomDetectionRuleOutput: ... + + @_overload def get_custom_detection_rule( - self, input: GetCustomDetectionRuleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomDetectionRuleInputDict], ) -> GetCustomDetectionRuleOutput: """ Returns details for a custom detection rule in GuardDuty, including its detection logic. Args: - input: - An instance of `GetCustomDetectionRuleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1352,19 +2075,39 @@ def get_custom_detection_rule( Returns: An instance of `GetCustomDetectionRuleOutput`. """ - return self._invoke(input, _models.GET_CUSTOM_DETECTION_RULE, [], plugins) + def get_custom_detection_rule( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomDetectionRuleOutput: + return self._invoke( + self._select_input(_models.GET_CUSTOM_DETECTION_RULE, args, kwargs), + _models.GET_CUSTOM_DETECTION_RULE, + [], + plugins, + ) + + @_overload + def get_custom_detection_rule_association( + self, + request: _models.GetCustomDetectionRuleAssociationInput + | _models.GetCustomDetectionRuleAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomDetectionRuleAssociationOutput: ... + + @_overload def get_custom_detection_rule_association( self, - input: GetCustomDetectionRuleAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomDetectionRuleAssociationInputDict], ) -> GetCustomDetectionRuleAssociationOutput: """ Returns details for a custom detection rule association. Args: - input: - An instance of `GetCustomDetectionRuleAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1374,22 +2117,42 @@ def get_custom_detection_rule_association( Returns: An instance of `GetCustomDetectionRuleAssociationOutput`. """ + + def get_custom_detection_rule_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomDetectionRuleAssociationOutput: return self._invoke( - input, _models.GET_CUSTOM_DETECTION_RULE_ASSOCIATION, [], plugins + self._select_input( + _models.GET_CUSTOM_DETECTION_RULE_ASSOCIATION, args, kwargs + ), + _models.GET_CUSTOM_DETECTION_RULE_ASSOCIATION, + [], + plugins, ) + @_overload + def get_custom_detection_rule_org_configuration( + self, + request: _models.GetCustomDetectionRuleOrgConfigurationInput + | _models.GetCustomDetectionRuleOrgConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCustomDetectionRuleOrgConfigurationOutput: ... + + @_overload def get_custom_detection_rule_org_configuration( self, - input: GetCustomDetectionRuleOrgConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCustomDetectionRuleOrgConfigurationInputDict], ) -> GetCustomDetectionRuleOrgConfigurationOutput: """ Returns the organization-level configuration for a custom detection rule. Args: - input: - An instance of `GetCustomDetectionRuleOrgConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1399,12 +2162,35 @@ def get_custom_detection_rule_org_configuration( Returns: An instance of `GetCustomDetectionRuleOrgConfigurationOutput`. """ + + def get_custom_detection_rule_org_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCustomDetectionRuleOrgConfigurationOutput: return self._invoke( - input, _models.GET_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, [], plugins + self._select_input( + _models.GET_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, args, kwargs + ), + _models.GET_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, + [], + plugins, ) + @_overload def get_detector( - self, input: GetDetectorInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDetectorInput | _models.GetDetectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDetectorOutput: ... + + @_overload + def get_detector( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDetectorInputDict], ) -> GetDetectorOutput: """ Retrieves a GuardDuty detector specified by the detectorId. @@ -1415,8 +2201,6 @@ def get_detector( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetDetectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1426,17 +2210,38 @@ def get_detector( Returns: An instance of `GetDetectorOutput`. """ - return self._invoke(input, _models.GET_DETECTOR, [], plugins) + def get_detector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDetectorOutput: + return self._invoke( + self._select_input(_models.GET_DETECTOR, args, kwargs), + _models.GET_DETECTOR, + [], + plugins, + ) + + @_overload + def get_filter( + self, + request: _models.GetFilterInput | _models.GetFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFilterOutput: ... + + @_overload def get_filter( - self, input: GetFilterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFilterInputDict], ) -> GetFilterOutput: """ Returns the details of the filter specified by the filter name. Args: - input: - An instance of `GetFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1446,17 +2251,38 @@ def get_filter( Returns: An instance of `GetFilterOutput`. """ - return self._invoke(input, _models.GET_FILTER, [], plugins) + def get_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFilterOutput: + return self._invoke( + self._select_input(_models.GET_FILTER, args, kwargs), + _models.GET_FILTER, + [], + plugins, + ) + + @_overload + def get_findings( + self, + request: _models.GetFindingsInput | _models.GetFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFindingsOutput: ... + + @_overload def get_findings( - self, input: GetFindingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFindingsInputDict], ) -> GetFindingsOutput: """ Describes Amazon GuardDuty findings specified by finding IDs. Args: - input: - An instance of `GetFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1466,10 +2292,34 @@ def get_findings( Returns: An instance of `GetFindingsOutput`. """ - return self._invoke(input, _models.GET_FINDINGS, [], plugins) + def get_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFindingsOutput: + return self._invoke( + self._select_input(_models.GET_FINDINGS, args, kwargs), + _models.GET_FINDINGS, + [], + plugins, + ) + + @_overload + def get_findings_statistics( + self, + request: _models.GetFindingsStatisticsInput + | _models.GetFindingsStatisticsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFindingsStatisticsOutput: ... + + @_overload def get_findings_statistics( - self, input: GetFindingsStatisticsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFindingsStatisticsInputDict], ) -> GetFindingsStatisticsOutput: """ Lists GuardDuty findings statistics for the specified detector ID. @@ -1484,8 +2334,6 @@ def get_findings_statistics( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetFindingsStatisticsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1495,10 +2343,33 @@ def get_findings_statistics( Returns: An instance of `GetFindingsStatisticsOutput`. """ - return self._invoke(input, _models.GET_FINDINGS_STATISTICS, [], plugins) + def get_findings_statistics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFindingsStatisticsOutput: + return self._invoke( + self._select_input(_models.GET_FINDINGS_STATISTICS, args, kwargs), + _models.GET_FINDINGS_STATISTICS, + [], + plugins, + ) + + @_overload + def get_investigation( + self, + request: _models.GetInvestigationInput | _models.GetInvestigationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvestigationOutput: ... + + @_overload def get_investigation( - self, input: GetInvestigationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvestigationInputDict], ) -> GetInvestigationOutput: """ This API is currently available as a preview. This feature is available @@ -1514,8 +2385,6 @@ def get_investigation( belong to them. Args: - input: - An instance of `GetInvestigationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1525,20 +2394,40 @@ def get_investigation( Returns: An instance of `GetInvestigationOutput`. """ - return self._invoke(input, _models.GET_INVESTIGATION, [], plugins) + def get_investigation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvestigationOutput: + return self._invoke( + self._select_input(_models.GET_INVESTIGATION, args, kwargs), + _models.GET_INVESTIGATION, + [], + plugins, + ) + + @_overload + def get_invitations_count( + self, + request: _models.GetInvitationsCountInput + | _models.GetInvitationsCountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInvitationsCountOutput: ... + + @_overload def get_invitations_count( self, - input: GetInvitationsCountInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInvitationsCountInputDict], ) -> GetInvitationsCountOutput: """ Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation. Args: - input: - An instance of `GetInvitationsCountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1548,17 +2437,38 @@ def get_invitations_count( Returns: An instance of `GetInvitationsCountOutput`. """ - return self._invoke(input, _models.GET_INVITATIONS_COUNT, [], plugins) + def get_invitations_count( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInvitationsCountOutput: + return self._invoke( + self._select_input(_models.GET_INVITATIONS_COUNT, args, kwargs), + _models.GET_INVITATIONS_COUNT, + [], + plugins, + ) + + @_overload def get_ip_set( - self, input: GetIPSetInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIPSetInput | _models.GetIPSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIPSetOutput: ... + + @_overload + def get_ip_set( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIPSetInputDict], ) -> GetIPSetOutput: """ Retrieves the IPSet specified by the `ipSetId`. Args: - input: - An instance of `GetIPSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1568,18 +2478,40 @@ def get_ip_set( Returns: An instance of `GetIPSetOutput`. """ - return self._invoke(input, _models.GET_IP_SET, [], plugins) + def get_ip_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIPSetOutput: + return self._invoke( + self._select_input(_models.GET_IP_SET, args, kwargs), + _models.GET_IP_SET, + [], + plugins, + ) + + @_overload + def get_malware_protection_plan( + self, + request: _models.GetMalwareProtectionPlanInput + | _models.GetMalwareProtectionPlanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMalwareProtectionPlanOutput: ... + + @_overload def get_malware_protection_plan( - self, input: GetMalwareProtectionPlanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMalwareProtectionPlanInputDict], ) -> GetMalwareProtectionPlanOutput: """ Retrieves the Malware Protection plan details associated with a Malware Protection plan ID. Args: - input: - An instance of `GetMalwareProtectionPlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1589,10 +2521,33 @@ def get_malware_protection_plan( Returns: An instance of `GetMalwareProtectionPlanOutput`. """ - return self._invoke(input, _models.GET_MALWARE_PROTECTION_PLAN, [], plugins) + def get_malware_protection_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMalwareProtectionPlanOutput: + return self._invoke( + self._select_input(_models.GET_MALWARE_PROTECTION_PLAN, args, kwargs), + _models.GET_MALWARE_PROTECTION_PLAN, + [], + plugins, + ) + + @_overload + def get_malware_scan( + self, + request: _models.GetMalwareScanInput | _models.GetMalwareScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMalwareScanOutput: ... + + @_overload def get_malware_scan( - self, input: GetMalwareScanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMalwareScanInputDict], ) -> GetMalwareScanOutput: """ Retrieves the detailed information for a specific malware scan. Each @@ -1606,8 +2561,6 @@ def get_malware_scan( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetMalwareScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1617,10 +2570,34 @@ def get_malware_scan( Returns: An instance of `GetMalwareScanOutput`. """ - return self._invoke(input, _models.GET_MALWARE_SCAN, [], plugins) + def get_malware_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMalwareScanOutput: + return self._invoke( + self._select_input(_models.GET_MALWARE_SCAN, args, kwargs), + _models.GET_MALWARE_SCAN, + [], + plugins, + ) + + @_overload + def get_malware_scan_settings( + self, + request: _models.GetMalwareScanSettingsInput + | _models.GetMalwareScanSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMalwareScanSettingsOutput: ... + + @_overload def get_malware_scan_settings( - self, input: GetMalwareScanSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMalwareScanSettingsInputDict], ) -> GetMalwareScanSettingsOutput: """ Returns the details of the malware scan settings. @@ -1631,8 +2608,6 @@ def get_malware_scan_settings( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetMalwareScanSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1642,18 +2617,39 @@ def get_malware_scan_settings( Returns: An instance of `GetMalwareScanSettingsOutput`. """ - return self._invoke(input, _models.GET_MALWARE_SCAN_SETTINGS, [], plugins) - def get_master_account( - self, input: GetMasterAccountInput, plugins: list[Plugin] | None = None + def get_malware_scan_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMalwareScanSettingsOutput: + return self._invoke( + self._select_input(_models.GET_MALWARE_SCAN_SETTINGS, args, kwargs), + _models.GET_MALWARE_SCAN_SETTINGS, + [], + plugins, + ) + + @_overload + def get_master_account( + self, + request: _models.GetMasterAccountInput | _models.GetMasterAccountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMasterAccountOutput: ... + + @_overload + def get_master_account( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMasterAccountInputDict], ) -> GetMasterAccountOutput: """ Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account. Args: - input: - An instance of `GetMasterAccountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1663,10 +2659,33 @@ def get_master_account( Returns: An instance of `GetMasterAccountOutput`. """ - return self._invoke(input, _models.GET_MASTER_ACCOUNT, [], plugins) + def get_master_account( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMasterAccountOutput: + return self._invoke( + self._select_input(_models.GET_MASTER_ACCOUNT, args, kwargs), + _models.GET_MASTER_ACCOUNT, + [], + plugins, + ) + + @_overload + def get_member_detectors( + self, + request: _models.GetMemberDetectorsInput | _models.GetMemberDetectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMemberDetectorsOutput: ... + + @_overload def get_member_detectors( - self, input: GetMemberDetectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMemberDetectorsInputDict], ) -> GetMemberDetectorsOutput: """ Describes which data sources are enabled for the member account's @@ -1678,8 +2697,6 @@ def get_member_detectors( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `GetMemberDetectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1689,18 +2706,39 @@ def get_member_detectors( Returns: An instance of `GetMemberDetectorsOutput`. """ - return self._invoke(input, _models.GET_MEMBER_DETECTORS, [], plugins) + def get_member_detectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMemberDetectorsOutput: + return self._invoke( + self._select_input(_models.GET_MEMBER_DETECTORS, args, kwargs), + _models.GET_MEMBER_DETECTORS, + [], + plugins, + ) + + @_overload + def get_members( + self, + request: _models.GetMembersInput | _models.GetMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMembersOutput: ... + + @_overload def get_members( - self, input: GetMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMembersInputDict], ) -> GetMembersOutput: """ Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs. Args: - input: - An instance of `GetMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1710,12 +2748,34 @@ def get_members( Returns: An instance of `GetMembersOutput`. """ - return self._invoke(input, _models.GET_MEMBERS, [], plugins) + def get_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMembersOutput: + return self._invoke( + self._select_input(_models.GET_MEMBERS, args, kwargs), + _models.GET_MEMBERS, + [], + plugins, + ) + + @_overload + def get_organization_statistics( + self, + request: _models.GetOrganizationStatisticsInput + | _models.GetOrganizationStatisticsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOrganizationStatisticsOutput: ... + + @_overload def get_organization_statistics( self, - input: GetOrganizationStatisticsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOrganizationStatisticsInputDict], ) -> GetOrganizationStatisticsOutput: """ Retrieves how many active member accounts have each feature enabled @@ -1726,8 +2786,6 @@ def get_organization_statistics( generate the statistics for the entire organization. Args: - input: - An instance of `GetOrganizationStatisticsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1737,18 +2795,40 @@ def get_organization_statistics( Returns: An instance of `GetOrganizationStatisticsOutput`. """ - return self._invoke(input, _models.GET_ORGANIZATION_STATISTICS, [], plugins) + def get_organization_statistics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOrganizationStatisticsOutput: + return self._invoke( + self._select_input(_models.GET_ORGANIZATION_STATISTICS, args, kwargs), + _models.GET_ORGANIZATION_STATISTICS, + [], + plugins, + ) + + @_overload def get_remaining_free_trial_days( - self, input: GetRemainingFreeTrialDaysInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRemainingFreeTrialDaysInput + | _models.GetRemainingFreeTrialDaysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRemainingFreeTrialDaysOutput: ... + + @_overload + def get_remaining_free_trial_days( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRemainingFreeTrialDaysInputDict], ) -> GetRemainingFreeTrialDaysOutput: """ Provides the number of days left for each data source used in the free trial period. Args: - input: - An instance of `GetRemainingFreeTrialDaysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1758,18 +2838,39 @@ def get_remaining_free_trial_days( Returns: An instance of `GetRemainingFreeTrialDaysOutput`. """ - return self._invoke(input, _models.GET_REMAINING_FREE_TRIAL_DAYS, [], plugins) + def get_remaining_free_trial_days( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRemainingFreeTrialDaysOutput: + return self._invoke( + self._select_input(_models.GET_REMAINING_FREE_TRIAL_DAYS, args, kwargs), + _models.GET_REMAINING_FREE_TRIAL_DAYS, + [], + plugins, + ) + + @_overload + def get_threat_entity_set( + self, + request: _models.GetThreatEntitySetInput | _models.GetThreatEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetThreatEntitySetOutput: ... + + @_overload def get_threat_entity_set( - self, input: GetThreatEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetThreatEntitySetInputDict], ) -> GetThreatEntitySetOutput: """ Retrieves the threat entity set associated with the specified `threatEntitySetId`. Args: - input: - An instance of `GetThreatEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1779,17 +2880,38 @@ def get_threat_entity_set( Returns: An instance of `GetThreatEntitySetOutput`. """ - return self._invoke(input, _models.GET_THREAT_ENTITY_SET, [], plugins) + def get_threat_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetThreatEntitySetOutput: + return self._invoke( + self._select_input(_models.GET_THREAT_ENTITY_SET, args, kwargs), + _models.GET_THREAT_ENTITY_SET, + [], + plugins, + ) + + @_overload + def get_threat_intel_set( + self, + request: _models.GetThreatIntelSetInput | _models.GetThreatIntelSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetThreatIntelSetOutput: ... + + @_overload def get_threat_intel_set( - self, input: GetThreatIntelSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetThreatIntelSetInputDict], ) -> GetThreatIntelSetOutput: """ Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID. Args: - input: - An instance of `GetThreatIntelSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1799,18 +2921,40 @@ def get_threat_intel_set( Returns: An instance of `GetThreatIntelSetOutput`. """ - return self._invoke(input, _models.GET_THREAT_INTEL_SET, [], plugins) + def get_threat_intel_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetThreatIntelSetOutput: + return self._invoke( + self._select_input(_models.GET_THREAT_INTEL_SET, args, kwargs), + _models.GET_THREAT_INTEL_SET, + [], + plugins, + ) + + @_overload + def get_trusted_entity_set( + self, + request: _models.GetTrustedEntitySetInput + | _models.GetTrustedEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTrustedEntitySetOutput: ... + + @_overload def get_trusted_entity_set( - self, input: GetTrustedEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTrustedEntitySetInputDict], ) -> GetTrustedEntitySetOutput: """ Retrieves the trusted entity set associated with the specified `trustedEntitySetId`. Args: - input: - An instance of `GetTrustedEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1820,10 +2964,33 @@ def get_trusted_entity_set( Returns: An instance of `GetTrustedEntitySetOutput`. """ - return self._invoke(input, _models.GET_TRUSTED_ENTITY_SET, [], plugins) + def get_trusted_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTrustedEntitySetOutput: + return self._invoke( + self._select_input(_models.GET_TRUSTED_ENTITY_SET, args, kwargs), + _models.GET_TRUSTED_ENTITY_SET, + [], + plugins, + ) + + @_overload + def get_usage_statistics( + self, + request: _models.GetUsageStatisticsInput | _models.GetUsageStatisticsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUsageStatisticsOutput: ... + + @_overload def get_usage_statistics( - self, input: GetUsageStatisticsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUsageStatisticsInputDict], ) -> GetUsageStatisticsOutput: """ Lists Amazon GuardDuty usage statistics over the last 30 days for the @@ -1835,8 +3002,6 @@ def get_usage_statistics( Calculated](https://docs.aws.amazon.com/guardduty/latest/ug/monitoring_costs.html#usage-calculations). Args: - input: - An instance of `GetUsageStatisticsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1846,10 +3011,33 @@ def get_usage_statistics( Returns: An instance of `GetUsageStatisticsOutput`. """ - return self._invoke(input, _models.GET_USAGE_STATISTICS, [], plugins) + def get_usage_statistics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUsageStatisticsOutput: + return self._invoke( + self._select_input(_models.GET_USAGE_STATISTICS, args, kwargs), + _models.GET_USAGE_STATISTICS, + [], + plugins, + ) + + @_overload + def invite_members( + self, + request: _models.InviteMembersInput | _models.InviteMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InviteMembersOutput: ... + + @_overload def invite_members( - self, input: InviteMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InviteMembersInputDict], ) -> InviteMembersOutput: """ Invites Amazon Web Services accounts to become members of an @@ -1898,8 +3086,6 @@ def invite_members( accounts again only by calling the CreateMembers API. Args: - input: - An instance of `InviteMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1909,10 +3095,33 @@ def invite_members( Returns: An instance of `InviteMembersOutput`. """ - return self._invoke(input, _models.INVITE_MEMBERS, [], plugins) + def invite_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InviteMembersOutput: + return self._invoke( + self._select_input(_models.INVITE_MEMBERS, args, kwargs), + _models.INVITE_MEMBERS, + [], + plugins, + ) + + @_overload + def list_coverage( + self, + request: _models.ListCoverageInput | _models.ListCoverageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCoverageOutput: ... + + @_overload def list_coverage( - self, input: ListCoverageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCoverageInputDict], ) -> ListCoverageOutput: """ Lists coverage details for your GuardDuty account. If you're a @@ -1923,8 +3132,6 @@ def list_coverage( agent running on their resources. Args: - input: - An instance of `ListCoverageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1934,20 +3141,40 @@ def list_coverage( Returns: An instance of `ListCoverageOutput`. """ - return self._invoke(input, _models.LIST_COVERAGE, [], plugins) + def list_coverage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCoverageOutput: + return self._invoke( + self._select_input(_models.LIST_COVERAGE, args, kwargs), + _models.LIST_COVERAGE, + [], + plugins, + ) + + @_overload + def list_custom_detection_rule_associations( + self, + request: _models.ListCustomDetectionRuleAssociationsInput + | _models.ListCustomDetectionRuleAssociationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCustomDetectionRuleAssociationsOutput: ... + + @_overload def list_custom_detection_rule_associations( self, - input: ListCustomDetectionRuleAssociationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomDetectionRuleAssociationsInputDict], ) -> ListCustomDetectionRuleAssociationsOutput: """ Returns all custom detection rule associations for your account. You can filter by rule ID and mode. Args: - input: - An instance of `ListCustomDetectionRuleAssociationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1957,22 +3184,42 @@ def list_custom_detection_rule_associations( Returns: An instance of `ListCustomDetectionRuleAssociationsOutput`. """ + + def list_custom_detection_rule_associations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomDetectionRuleAssociationsOutput: return self._invoke( - input, _models.LIST_CUSTOM_DETECTION_RULE_ASSOCIATIONS, [], plugins + self._select_input( + _models.LIST_CUSTOM_DETECTION_RULE_ASSOCIATIONS, args, kwargs + ), + _models.LIST_CUSTOM_DETECTION_RULE_ASSOCIATIONS, + [], + plugins, ) + @_overload + def list_custom_detection_rule_org_configurations( + self, + request: _models.ListCustomDetectionRuleOrgConfigurationsInput + | _models.ListCustomDetectionRuleOrgConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCustomDetectionRuleOrgConfigurationsOutput: ... + + @_overload def list_custom_detection_rule_org_configurations( self, - input: ListCustomDetectionRuleOrgConfigurationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomDetectionRuleOrgConfigurationsInputDict], ) -> ListCustomDetectionRuleOrgConfigurationsOutput: """ Returns all organization-level configurations for custom detection rules. You can filter the results by status. Args: - input: - An instance of `ListCustomDetectionRuleOrgConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1982,14 +3229,36 @@ def list_custom_detection_rule_org_configurations( Returns: An instance of `ListCustomDetectionRuleOrgConfigurationsOutput`. """ + + def list_custom_detection_rule_org_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomDetectionRuleOrgConfigurationsOutput: return self._invoke( - input, _models.LIST_CUSTOM_DETECTION_RULE_ORG_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_CUSTOM_DETECTION_RULE_ORG_CONFIGURATIONS, args, kwargs + ), + _models.LIST_CUSTOM_DETECTION_RULE_ORG_CONFIGURATIONS, + [], + plugins, ) + @_overload + def list_custom_detection_rules( + self, + request: _models.ListCustomDetectionRulesInput + | _models.ListCustomDetectionRulesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCustomDetectionRulesOutput: ... + + @_overload def list_custom_detection_rules( self, - input: ListCustomDetectionRulesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCustomDetectionRulesInputDict], ) -> ListCustomDetectionRulesOutput: """ Returns all available custom detection rules in GuardDuty. You can @@ -1997,8 +3266,6 @@ def list_custom_detection_rules( service. Args: - input: - An instance of `ListCustomDetectionRulesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2008,20 +3275,39 @@ def list_custom_detection_rules( Returns: An instance of `ListCustomDetectionRulesOutput`. """ - return self._invoke(input, _models.LIST_CUSTOM_DETECTION_RULES, [], plugins) + def list_custom_detection_rules( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCustomDetectionRulesOutput: + return self._invoke( + self._select_input(_models.LIST_CUSTOM_DETECTION_RULES, args, kwargs), + _models.LIST_CUSTOM_DETECTION_RULES, + [], + plugins, + ) + + @_overload + def list_detectors( + self, + request: _models.ListDetectorsInput | _models.ListDetectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDetectorsOutput: ... + + @_overload def list_detectors( self, - input: ListDetectorsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDetectorsInputDict], ) -> ListDetectorsOutput: """ Lists detectorIds of all the existing Amazon GuardDuty detector resources. Args: - input: - An instance of `ListDetectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2031,17 +3317,38 @@ def list_detectors( Returns: An instance of `ListDetectorsOutput`. """ - return self._invoke(input, _models.LIST_DETECTORS, [], plugins) + def list_detectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDetectorsOutput: + return self._invoke( + self._select_input(_models.LIST_DETECTORS, args, kwargs), + _models.LIST_DETECTORS, + [], + plugins, + ) + + @_overload + def list_filters( + self, + request: _models.ListFiltersInput | _models.ListFiltersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFiltersOutput: ... + + @_overload def list_filters( - self, input: ListFiltersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFiltersInputDict], ) -> ListFiltersOutput: """ Returns a paginated list of the current filters. Args: - input: - An instance of `ListFiltersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2051,10 +3358,33 @@ def list_filters( Returns: An instance of `ListFiltersOutput`. """ - return self._invoke(input, _models.LIST_FILTERS, [], plugins) + def list_filters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFiltersOutput: + return self._invoke( + self._select_input(_models.LIST_FILTERS, args, kwargs), + _models.LIST_FILTERS, + [], + plugins, + ) + + @_overload def list_findings( - self, input: ListFindingsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListFindingsInput | _models.ListFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFindingsOutput: ... + + @_overload + def list_findings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFindingsInputDict], ) -> ListFindingsOutput: """ Lists GuardDuty findings for the specified detector ID. @@ -2065,8 +3395,6 @@ def list_findings( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `ListFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2076,10 +3404,33 @@ def list_findings( Returns: An instance of `ListFindingsOutput`. """ - return self._invoke(input, _models.LIST_FINDINGS, [], plugins) + def list_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFindingsOutput: + return self._invoke( + self._select_input(_models.LIST_FINDINGS, args, kwargs), + _models.LIST_FINDINGS, + [], + plugins, + ) + + @_overload + def list_investigations( + self, + request: _models.ListInvestigationsInput | _models.ListInvestigationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvestigationsOutput: ... + + @_overload def list_investigations( - self, input: ListInvestigationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvestigationsInputDict], ) -> ListInvestigationsOutput: """ This API is currently available as a preview. This feature is available @@ -2096,8 +3447,6 @@ def list_investigations( them. Args: - input: - An instance of `ListInvestigationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2107,20 +3456,39 @@ def list_investigations( Returns: An instance of `ListInvestigationsOutput`. """ - return self._invoke(input, _models.LIST_INVESTIGATIONS, [], plugins) + def list_investigations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvestigationsOutput: + return self._invoke( + self._select_input(_models.LIST_INVESTIGATIONS, args, kwargs), + _models.LIST_INVESTIGATIONS, + [], + plugins, + ) + + @_overload + def list_invitations( + self, + request: _models.ListInvitationsInput | _models.ListInvitationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInvitationsOutput: ... + + @_overload def list_invitations( self, - input: ListInvitationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInvitationsInputDict], ) -> ListInvitationsOutput: """ Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account. Args: - input: - An instance of `ListInvitationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2130,10 +3498,33 @@ def list_invitations( Returns: An instance of `ListInvitationsOutput`. """ - return self._invoke(input, _models.LIST_INVITATIONS, [], plugins) + def list_invitations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInvitationsOutput: + return self._invoke( + self._select_input(_models.LIST_INVITATIONS, args, kwargs), + _models.LIST_INVITATIONS, + [], + plugins, + ) + + @_overload + def list_ip_sets( + self, + request: _models.ListIPSetsInput | _models.ListIPSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIPSetsOutput: ... + + @_overload def list_ip_sets( - self, input: ListIPSetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIPSetsInputDict], ) -> ListIPSetsOutput: """ Lists the IPSets of the GuardDuty service specified by the detector ID. @@ -2141,8 +3532,6 @@ def list_ip_sets( the IPSets from the associated administrator account. Args: - input: - An instance of `ListIPSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2152,20 +3541,40 @@ def list_ip_sets( Returns: An instance of `ListIPSetsOutput`. """ - return self._invoke(input, _models.LIST_IP_SETS, [], plugins) + def list_ip_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIPSetsOutput: + return self._invoke( + self._select_input(_models.LIST_IP_SETS, args, kwargs), + _models.LIST_IP_SETS, + [], + plugins, + ) + + @_overload + def list_malware_protection_plans( + self, + request: _models.ListMalwareProtectionPlansInput + | _models.ListMalwareProtectionPlansInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMalwareProtectionPlansOutput: ... + + @_overload def list_malware_protection_plans( self, - input: ListMalwareProtectionPlansInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMalwareProtectionPlansInputDict], ) -> ListMalwareProtectionPlansOutput: """ Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account. Args: - input: - An instance of `ListMalwareProtectionPlansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2175,12 +3584,33 @@ def list_malware_protection_plans( Returns: An instance of `ListMalwareProtectionPlansOutput`. """ - return self._invoke(input, _models.LIST_MALWARE_PROTECTION_PLANS, [], plugins) + def list_malware_protection_plans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMalwareProtectionPlansOutput: + return self._invoke( + self._select_input(_models.LIST_MALWARE_PROTECTION_PLANS, args, kwargs), + _models.LIST_MALWARE_PROTECTION_PLANS, + [], + plugins, + ) + + @_overload + def list_malware_scans( + self, + request: _models.ListMalwareScansInput | _models.ListMalwareScansInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMalwareScansOutput: ... + + @_overload def list_malware_scans( self, - input: ListMalwareScansInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMalwareScansInputDict], ) -> ListMalwareScansOutput: """ Returns a list of malware scans. Each member account can view the @@ -2188,8 +3618,6 @@ def list_malware_scans( malware scans for all of its members' accounts. Args: - input: - An instance of `ListMalwareScansInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2199,18 +3627,39 @@ def list_malware_scans( Returns: An instance of `ListMalwareScansOutput`. """ - return self._invoke(input, _models.LIST_MALWARE_SCANS, [], plugins) + def list_malware_scans( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMalwareScansOutput: + return self._invoke( + self._select_input(_models.LIST_MALWARE_SCANS, args, kwargs), + _models.LIST_MALWARE_SCANS, + [], + plugins, + ) + + @_overload + def list_members( + self, + request: _models.ListMembersInput | _models.ListMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMembersOutput: ... + + @_overload def list_members( - self, input: ListMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMembersInputDict], ) -> ListMembersOutput: """ Lists details about all member accounts for the current GuardDuty administrator account. Args: - input: - An instance of `ListMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2220,20 +3669,40 @@ def list_members( Returns: An instance of `ListMembersOutput`. """ - return self._invoke(input, _models.LIST_MEMBERS, [], plugins) + def list_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMembersOutput: + return self._invoke( + self._select_input(_models.LIST_MEMBERS, args, kwargs), + _models.LIST_MEMBERS, + [], + plugins, + ) + + @_overload + def list_organization_admin_accounts( + self, + request: _models.ListOrganizationAdminAccountsInput + | _models.ListOrganizationAdminAccountsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOrganizationAdminAccountsOutput: ... + + @_overload def list_organization_admin_accounts( self, - input: ListOrganizationAdminAccountsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOrganizationAdminAccountsInputDict], ) -> ListOrganizationAdminAccountsOutput: """ Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API operation. Args: - input: - An instance of `ListOrganizationAdminAccountsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2243,22 +3712,40 @@ def list_organization_admin_accounts( Returns: An instance of `ListOrganizationAdminAccountsOutput`. """ + + def list_organization_admin_accounts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOrganizationAdminAccountsOutput: return self._invoke( - input, _models.LIST_ORGANIZATION_ADMIN_ACCOUNTS, [], plugins + self._select_input(_models.LIST_ORGANIZATION_ADMIN_ACCOUNTS, args, kwargs), + _models.LIST_ORGANIZATION_ADMIN_ACCOUNTS, + [], + plugins, ) + @_overload + def list_publishing_destinations( + self, + request: _models.ListPublishingDestinationsInput + | _models.ListPublishingDestinationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPublishingDestinationsOutput: ... + + @_overload def list_publishing_destinations( self, - input: ListPublishingDestinationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPublishingDestinationsInputDict], ) -> ListPublishingDestinationsOutput: """ Returns a list of publishing destinations associated with the specified `detectorId`. Args: - input: - An instance of `ListPublishingDestinationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2268,10 +3755,34 @@ def list_publishing_destinations( Returns: An instance of `ListPublishingDestinationsOutput`. """ - return self._invoke(input, _models.LIST_PUBLISHING_DESTINATIONS, [], plugins) + def list_publishing_destinations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPublishingDestinationsOutput: + return self._invoke( + self._select_input(_models.LIST_PUBLISHING_DESTINATIONS, args, kwargs), + _models.LIST_PUBLISHING_DESTINATIONS, + [], + plugins, + ) + + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists tags for a resource. Tagging is currently supported for detectors, @@ -2280,8 +3791,6 @@ def list_tags_for_resource( returns all assigned tags for a given resource. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2291,10 +3800,34 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def list_threat_entity_sets( + self, + request: _models.ListThreatEntitySetsInput + | _models.ListThreatEntitySetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListThreatEntitySetsOutput: ... + + @_overload def list_threat_entity_sets( - self, input: ListThreatEntitySetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListThreatEntitySetsInputDict], ) -> ListThreatEntitySetsOutput: """ Lists the threat entity sets associated with the specified GuardDuty @@ -2303,8 +3836,6 @@ def list_threat_entity_sets( account. Args: - input: - An instance of `ListThreatEntitySetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2314,10 +3845,34 @@ def list_threat_entity_sets( Returns: An instance of `ListThreatEntitySetsOutput`. """ - return self._invoke(input, _models.LIST_THREAT_ENTITY_SETS, [], plugins) + def list_threat_entity_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListThreatEntitySetsOutput: + return self._invoke( + self._select_input(_models.LIST_THREAT_ENTITY_SETS, args, kwargs), + _models.LIST_THREAT_ENTITY_SETS, + [], + plugins, + ) + + @_overload + def list_threat_intel_sets( + self, + request: _models.ListThreatIntelSetsInput + | _models.ListThreatIntelSetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListThreatIntelSetsOutput: ... + + @_overload def list_threat_intel_sets( - self, input: ListThreatIntelSetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListThreatIntelSetsInputDict], ) -> ListThreatIntelSetsOutput: """ Lists the ThreatIntelSets of the GuardDuty service specified by the @@ -2325,8 +3880,6 @@ def list_threat_intel_sets( ThreatIntelSets associated with the administrator account are returned. Args: - input: - An instance of `ListThreatIntelSetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2336,10 +3889,34 @@ def list_threat_intel_sets( Returns: An instance of `ListThreatIntelSetsOutput`. """ - return self._invoke(input, _models.LIST_THREAT_INTEL_SETS, [], plugins) + def list_threat_intel_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListThreatIntelSetsOutput: + return self._invoke( + self._select_input(_models.LIST_THREAT_INTEL_SETS, args, kwargs), + _models.LIST_THREAT_INTEL_SETS, + [], + plugins, + ) + + @_overload def list_trusted_entity_sets( - self, input: ListTrustedEntitySetsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTrustedEntitySetsInput + | _models.ListTrustedEntitySetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTrustedEntitySetsOutput: ... + + @_overload + def list_trusted_entity_sets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTrustedEntitySetsInputDict], ) -> ListTrustedEntitySetsOutput: """ Lists the trusted entity sets associated with the specified GuardDuty @@ -2348,8 +3925,6 @@ def list_trusted_entity_sets( administrator account. Args: - input: - An instance of `ListTrustedEntitySetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2359,12 +3934,34 @@ def list_trusted_entity_sets( Returns: An instance of `ListTrustedEntitySetsOutput`. """ - return self._invoke(input, _models.LIST_TRUSTED_ENTITY_SETS, [], plugins) + def list_trusted_entity_sets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTrustedEntitySetsOutput: + return self._invoke( + self._select_input(_models.LIST_TRUSTED_ENTITY_SETS, args, kwargs), + _models.LIST_TRUSTED_ENTITY_SETS, + [], + plugins, + ) + + @_overload + def send_object_malware_scan( + self, + request: _models.SendObjectMalwareScanInput + | _models.SendObjectMalwareScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendObjectMalwareScanOutput: ... + + @_overload def send_object_malware_scan( self, - input: SendObjectMalwareScanInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendObjectMalwareScanInputDict], ) -> SendObjectMalwareScanOutput: """ Initiates a malware scan for a specific S3 object. This API allows you @@ -2377,8 +3974,6 @@ def send_object_malware_scan( Protection](http://aws.amazon.com/service-terms/#87._Amazon_GuardDuty). Args: - input: - An instance of `SendObjectMalwareScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2388,10 +3983,33 @@ def send_object_malware_scan( Returns: An instance of `SendObjectMalwareScanOutput`. """ - return self._invoke(input, _models.SEND_OBJECT_MALWARE_SCAN, [], plugins) + def send_object_malware_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendObjectMalwareScanOutput: + return self._invoke( + self._select_input(_models.SEND_OBJECT_MALWARE_SCAN, args, kwargs), + _models.SEND_OBJECT_MALWARE_SCAN, + [], + plugins, + ) + + @_overload + def start_malware_scan( + self, + request: _models.StartMalwareScanInput | _models.StartMalwareScanInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartMalwareScanOutput: ... + + @_overload def start_malware_scan( - self, input: StartMalwareScanInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMalwareScanInputDict], ) -> StartMalwareScanOutput: """ Initiates the malware scan. Invoking this API will automatically create @@ -2412,8 +4030,6 @@ def start_malware_scan( Protection](http://aws.amazon.com/service-terms/#87._Amazon_GuardDuty). Args: - input: - An instance of `StartMalwareScanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2423,10 +4039,34 @@ def start_malware_scan( Returns: An instance of `StartMalwareScanOutput`. """ - return self._invoke(input, _models.START_MALWARE_SCAN, [], plugins) + def start_malware_scan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartMalwareScanOutput: + return self._invoke( + self._select_input(_models.START_MALWARE_SCAN, args, kwargs), + _models.START_MALWARE_SCAN, + [], + plugins, + ) + + @_overload + def start_monitoring_members( + self, + request: _models.StartMonitoringMembersInput + | _models.StartMonitoringMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartMonitoringMembersOutput: ... + + @_overload def start_monitoring_members( - self, input: StartMonitoringMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMonitoringMembersInputDict], ) -> StartMonitoringMembersOutput: """ Turns on GuardDuty monitoring of the specified member accounts. Use this @@ -2436,8 +4076,6 @@ def start_monitoring_members( operation. Args: - input: - An instance of `StartMonitoringMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2447,10 +4085,34 @@ def start_monitoring_members( Returns: An instance of `StartMonitoringMembersOutput`. """ - return self._invoke(input, _models.START_MONITORING_MEMBERS, [], plugins) + def start_monitoring_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartMonitoringMembersOutput: + return self._invoke( + self._select_input(_models.START_MONITORING_MEMBERS, args, kwargs), + _models.START_MONITORING_MEMBERS, + [], + plugins, + ) + + @_overload + def stop_monitoring_members( + self, + request: _models.StopMonitoringMembersInput + | _models.StopMonitoringMembersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopMonitoringMembersOutput: ... + + @_overload def stop_monitoring_members( - self, input: StopMonitoringMembersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopMonitoringMembersInputDict], ) -> StopMonitoringMembersOutput: """ Stops GuardDuty monitoring for the specified member accounts. Use the @@ -2462,8 +4124,6 @@ def stop_monitoring_members( the member accounts in your organization. Args: - input: - An instance of `StopMonitoringMembersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2473,17 +4133,38 @@ def stop_monitoring_members( Returns: An instance of `StopMonitoringMembersOutput`. """ - return self._invoke(input, _models.STOP_MONITORING_MEMBERS, [], plugins) + def stop_monitoring_members( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopMonitoringMembersOutput: + return self._invoke( + self._select_input(_models.STOP_MONITORING_MEMBERS, args, kwargs), + _models.STOP_MONITORING_MEMBERS, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds tags to a resource. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2493,17 +4174,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload def unarchive_findings( - self, input: UnarchiveFindingsInput, plugins: list[Plugin] | None = None + self, + request: _models.UnarchiveFindingsInput | _models.UnarchiveFindingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnarchiveFindingsOutput: ... + + @_overload + def unarchive_findings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnarchiveFindingsInputDict], ) -> UnarchiveFindingsOutput: """ Unarchives GuardDuty findings specified by the `findingIds`. Args: - input: - An instance of `UnarchiveFindingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2513,17 +4215,38 @@ def unarchive_findings( Returns: An instance of `UnarchiveFindingsOutput`. """ - return self._invoke(input, _models.UNARCHIVE_FINDINGS, [], plugins) + def unarchive_findings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnarchiveFindingsOutput: + return self._invoke( + self._select_input(_models.UNARCHIVE_FINDINGS, args, kwargs), + _models.UNARCHIVE_FINDINGS, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2533,19 +4256,39 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_custom_detection_rule_association( + self, + request: _models.UpdateCustomDetectionRuleAssociationInput + | _models.UpdateCustomDetectionRuleAssociationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCustomDetectionRuleAssociationOutput: ... + + @_overload def update_custom_detection_rule_association( self, - input: UpdateCustomDetectionRuleAssociationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCustomDetectionRuleAssociationInputDict], ) -> UpdateCustomDetectionRuleAssociationOutput: """ Updates the mode of an existing custom detection rule association. Args: - input: - An instance of `UpdateCustomDetectionRuleAssociationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2555,22 +4298,42 @@ def update_custom_detection_rule_association( Returns: An instance of `UpdateCustomDetectionRuleAssociationOutput`. """ + + def update_custom_detection_rule_association( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCustomDetectionRuleAssociationOutput: return self._invoke( - input, _models.UPDATE_CUSTOM_DETECTION_RULE_ASSOCIATION, [], plugins + self._select_input( + _models.UPDATE_CUSTOM_DETECTION_RULE_ASSOCIATION, args, kwargs + ), + _models.UPDATE_CUSTOM_DETECTION_RULE_ASSOCIATION, + [], + plugins, ) + @_overload + def update_custom_detection_rule_org_configuration( + self, + request: _models.UpdateCustomDetectionRuleOrgConfigurationInput + | _models.UpdateCustomDetectionRuleOrgConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCustomDetectionRuleOrgConfigurationOutput: ... + + @_overload def update_custom_detection_rule_org_configuration( self, - input: UpdateCustomDetectionRuleOrgConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCustomDetectionRuleOrgConfigurationInputDict], ) -> UpdateCustomDetectionRuleOrgConfigurationOutput: """ Updates the organization-level configuration for a custom detection rule, including the mode and include/exclude account lists. Args: - input: - An instance of `UpdateCustomDetectionRuleOrgConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2580,12 +4343,35 @@ def update_custom_detection_rule_org_configuration( Returns: An instance of `UpdateCustomDetectionRuleOrgConfigurationOutput`. """ + + def update_custom_detection_rule_org_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCustomDetectionRuleOrgConfigurationOutput: return self._invoke( - input, _models.UPDATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, [], plugins + self._select_input( + _models.UPDATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, args, kwargs + ), + _models.UPDATE_CUSTOM_DETECTION_RULE_ORG_CONFIGURATION, + [], + plugins, ) + @_overload + def update_detector( + self, + request: _models.UpdateDetectorInput | _models.UpdateDetectorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDetectorOutput: ... + + @_overload def update_detector( - self, input: UpdateDetectorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDetectorInputDict], ) -> UpdateDetectorOutput: """ Updates the GuardDuty detector specified by the detector ID. @@ -2603,8 +4389,6 @@ def update_detector( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `UpdateDetectorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2614,17 +4398,38 @@ def update_detector( Returns: An instance of `UpdateDetectorOutput`. """ - return self._invoke(input, _models.UPDATE_DETECTOR, [], plugins) + def update_detector( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDetectorOutput: + return self._invoke( + self._select_input(_models.UPDATE_DETECTOR, args, kwargs), + _models.UPDATE_DETECTOR, + [], + plugins, + ) + + @_overload + def update_filter( + self, + request: _models.UpdateFilterInput | _models.UpdateFilterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFilterOutput: ... + + @_overload def update_filter( - self, input: UpdateFilterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFilterInputDict], ) -> UpdateFilterOutput: """ Updates the filter specified by the filter name. Args: - input: - An instance of `UpdateFilterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2634,17 +4439,39 @@ def update_filter( Returns: An instance of `UpdateFilterOutput`. """ - return self._invoke(input, _models.UPDATE_FILTER, [], plugins) + def update_filter( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFilterOutput: + return self._invoke( + self._select_input(_models.UPDATE_FILTER, args, kwargs), + _models.UPDATE_FILTER, + [], + plugins, + ) + + @_overload + def update_findings_feedback( + self, + request: _models.UpdateFindingsFeedbackInput + | _models.UpdateFindingsFeedbackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFindingsFeedbackOutput: ... + + @_overload def update_findings_feedback( - self, input: UpdateFindingsFeedbackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFindingsFeedbackInputDict], ) -> UpdateFindingsFeedbackOutput: """ Marks the specified GuardDuty findings as useful or not useful. Args: - input: - An instance of `UpdateFindingsFeedbackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2654,17 +4481,38 @@ def update_findings_feedback( Returns: An instance of `UpdateFindingsFeedbackOutput`. """ - return self._invoke(input, _models.UPDATE_FINDINGS_FEEDBACK, [], plugins) + def update_findings_feedback( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFindingsFeedbackOutput: + return self._invoke( + self._select_input(_models.UPDATE_FINDINGS_FEEDBACK, args, kwargs), + _models.UPDATE_FINDINGS_FEEDBACK, + [], + plugins, + ) + + @_overload + def update_ip_set( + self, + request: _models.UpdateIPSetInput | _models.UpdateIPSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIPSetOutput: ... + + @_overload def update_ip_set( - self, input: UpdateIPSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIPSetInputDict], ) -> UpdateIPSetOutput: """ Updates the IPSet specified by the IPSet ID. Args: - input: - An instance of `UpdateIPSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2674,19 +4522,39 @@ def update_ip_set( Returns: An instance of `UpdateIPSetOutput`. """ - return self._invoke(input, _models.UPDATE_IP_SET, [], plugins) + def update_ip_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIPSetOutput: + return self._invoke( + self._select_input(_models.UPDATE_IP_SET, args, kwargs), + _models.UPDATE_IP_SET, + [], + plugins, + ) + + @_overload def update_malware_protection_plan( self, - input: UpdateMalwareProtectionPlanInput, + request: _models.UpdateMalwareProtectionPlanInput + | _models.UpdateMalwareProtectionPlanInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateMalwareProtectionPlanOutput: ... + + @_overload + def update_malware_protection_plan( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMalwareProtectionPlanInputDict], ) -> UpdateMalwareProtectionPlanOutput: """ Updates an existing Malware Protection plan resource. Args: - input: - An instance of `UpdateMalwareProtectionPlanInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2696,10 +4564,34 @@ def update_malware_protection_plan( Returns: An instance of `UpdateMalwareProtectionPlanOutput`. """ - return self._invoke(input, _models.UPDATE_MALWARE_PROTECTION_PLAN, [], plugins) + def update_malware_protection_plan( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMalwareProtectionPlanOutput: + return self._invoke( + self._select_input(_models.UPDATE_MALWARE_PROTECTION_PLAN, args, kwargs), + _models.UPDATE_MALWARE_PROTECTION_PLAN, + [], + plugins, + ) + + @_overload + def update_malware_scan_settings( + self, + request: _models.UpdateMalwareScanSettingsInput + | _models.UpdateMalwareScanSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMalwareScanSettingsOutput: ... + + @_overload def update_malware_scan_settings( - self, input: UpdateMalwareScanSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMalwareScanSettingsInputDict], ) -> UpdateMalwareScanSettingsOutput: """ Updates the malware scan settings. @@ -2710,8 +4602,6 @@ def update_malware_scan_settings( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `UpdateMalwareScanSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2721,10 +4611,34 @@ def update_malware_scan_settings( Returns: An instance of `UpdateMalwareScanSettingsOutput`. """ - return self._invoke(input, _models.UPDATE_MALWARE_SCAN_SETTINGS, [], plugins) + def update_malware_scan_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMalwareScanSettingsOutput: + return self._invoke( + self._select_input(_models.UPDATE_MALWARE_SCAN_SETTINGS, args, kwargs), + _models.UPDATE_MALWARE_SCAN_SETTINGS, + [], + plugins, + ) + + @_overload + def update_member_detectors( + self, + request: _models.UpdateMemberDetectorsInput + | _models.UpdateMemberDetectorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMemberDetectorsOutput: ... + + @_overload def update_member_detectors( - self, input: UpdateMemberDetectorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMemberDetectorsInputDict], ) -> UpdateMemberDetectorsOutput: """ Contains information on member accounts to be updated. @@ -2742,8 +4656,6 @@ def update_member_detectors( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `UpdateMemberDetectorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2753,12 +4665,34 @@ def update_member_detectors( Returns: An instance of `UpdateMemberDetectorsOutput`. """ - return self._invoke(input, _models.UPDATE_MEMBER_DETECTORS, [], plugins) + def update_member_detectors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMemberDetectorsOutput: + return self._invoke( + self._select_input(_models.UPDATE_MEMBER_DETECTORS, args, kwargs), + _models.UPDATE_MEMBER_DETECTORS, + [], + plugins, + ) + + @_overload + def update_organization_configuration( + self, + request: _models.UpdateOrganizationConfigurationInput + | _models.UpdateOrganizationConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOrganizationConfigurationOutput: ... + + @_overload def update_organization_configuration( self, - input: UpdateOrganizationConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOrganizationConfigurationInputDict], ) -> UpdateOrganizationConfigurationOutput: """ Configures the delegated administrator account with the provided values. @@ -2778,8 +4712,6 @@ def update_organization_configuration( endpoints](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html). Args: - input: - An instance of `UpdateOrganizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2789,22 +4721,40 @@ def update_organization_configuration( Returns: An instance of `UpdateOrganizationConfigurationOutput`. """ + + def update_organization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOrganizationConfigurationOutput: return self._invoke( - input, _models.UPDATE_ORGANIZATION_CONFIGURATION, [], plugins + self._select_input(_models.UPDATE_ORGANIZATION_CONFIGURATION, args, kwargs), + _models.UPDATE_ORGANIZATION_CONFIGURATION, + [], + plugins, ) + @_overload + def update_publishing_destination( + self, + request: _models.UpdatePublishingDestinationInput + | _models.UpdatePublishingDestinationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePublishingDestinationOutput: ... + + @_overload def update_publishing_destination( self, - input: UpdatePublishingDestinationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePublishingDestinationInputDict], ) -> UpdatePublishingDestinationOutput: """ Updates information about the publishing destination specified by the `destinationId`. Args: - input: - An instance of `UpdatePublishingDestinationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2814,18 +4764,40 @@ def update_publishing_destination( Returns: An instance of `UpdatePublishingDestinationOutput`. """ - return self._invoke(input, _models.UPDATE_PUBLISHING_DESTINATION, [], plugins) + def update_publishing_destination( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePublishingDestinationOutput: + return self._invoke( + self._select_input(_models.UPDATE_PUBLISHING_DESTINATION, args, kwargs), + _models.UPDATE_PUBLISHING_DESTINATION, + [], + plugins, + ) + + @_overload + def update_threat_entity_set( + self, + request: _models.UpdateThreatEntitySetInput + | _models.UpdateThreatEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateThreatEntitySetOutput: ... + + @_overload def update_threat_entity_set( - self, input: UpdateThreatEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateThreatEntitySetInputDict], ) -> UpdateThreatEntitySetOutput: """ Updates the threat entity set associated with the specified `threatEntitySetId`. Args: - input: - An instance of `UpdateThreatEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2835,17 +4807,39 @@ def update_threat_entity_set( Returns: An instance of `UpdateThreatEntitySetOutput`. """ - return self._invoke(input, _models.UPDATE_THREAT_ENTITY_SET, [], plugins) + def update_threat_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateThreatEntitySetOutput: + return self._invoke( + self._select_input(_models.UPDATE_THREAT_ENTITY_SET, args, kwargs), + _models.UPDATE_THREAT_ENTITY_SET, + [], + plugins, + ) + + @_overload + def update_threat_intel_set( + self, + request: _models.UpdateThreatIntelSetInput + | _models.UpdateThreatIntelSetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateThreatIntelSetOutput: ... + + @_overload def update_threat_intel_set( - self, input: UpdateThreatIntelSetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateThreatIntelSetInputDict], ) -> UpdateThreatIntelSetOutput: """ Updates the ThreatIntelSet specified by the ThreatIntelSet ID. Args: - input: - An instance of `UpdateThreatIntelSetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2855,18 +4849,40 @@ def update_threat_intel_set( Returns: An instance of `UpdateThreatIntelSetOutput`. """ - return self._invoke(input, _models.UPDATE_THREAT_INTEL_SET, [], plugins) + def update_threat_intel_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateThreatIntelSetOutput: + return self._invoke( + self._select_input(_models.UPDATE_THREAT_INTEL_SET, args, kwargs), + _models.UPDATE_THREAT_INTEL_SET, + [], + plugins, + ) + + @_overload + def update_trusted_entity_set( + self, + request: _models.UpdateTrustedEntitySetInput + | _models.UpdateTrustedEntitySetInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateTrustedEntitySetOutput: ... + + @_overload def update_trusted_entity_set( - self, input: UpdateTrustedEntitySetInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateTrustedEntitySetInputDict], ) -> UpdateTrustedEntitySetOutput: """ Updates the trusted entity set associated with the specified `trustedEntitySetId`. Args: - input: - An instance of `UpdateTrustedEntitySetInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2876,7 +4892,16 @@ def update_trusted_entity_set( Returns: An instance of `UpdateTrustedEntitySetOutput`. """ - return self._invoke(input, _models.UPDATE_TRUSTED_ENTITY_SET, [], plugins) + + def update_trusted_entity_set( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateTrustedEntitySetOutput: + return self._invoke( + self._select_input(_models.UPDATE_TRUSTED_ENTITY_SET, args, kwargs), + _models.UPDATE_TRUSTED_ENTITY_SET, + [], + plugins, + ) def _new_config(self) -> GuardDutyConfig: return GuardDutyConfig.resolve() diff --git a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/models.pyi b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/models.pyi index 540de2900..006b8825d 100644 --- a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/models.pyi +++ b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/models.pyi @@ -9,8 +9,10 @@ from smithy_core.serializers import ShapeSerializer from ._private.models_0 import ( AcceptAdministratorInvitationInput as AcceptAdministratorInvitationInput, + AcceptAdministratorInvitationInputDict as AcceptAdministratorInvitationInputDict, AcceptAdministratorInvitationOutput as AcceptAdministratorInvitationOutput, AcceptInvitationInput as AcceptInvitationInput, + AcceptInvitationInputDict as AcceptInvitationInputDict, AcceptInvitationOutput as AcceptInvitationOutput, AccessControlList as AccessControlList, AccessDeniedException as AccessDeniedException, @@ -18,6 +20,7 @@ from ._private.models_0 import ( AccessKeyDetails as AccessKeyDetails, Account as Account, AccountDetail as AccountDetail, + AccountDetailDict as AccountDetailDict, AccountFreeTrialInfo as AccountFreeTrialInfo, AccountLevelPermissions as AccountLevelPermissions, AccountStatistics as AccountStatistics, @@ -37,6 +40,7 @@ from ._private.models_0 import ( AnomalyUnusual as AnomalyUnusual, ApiCall as ApiCall, ArchiveFindingsInput as ArchiveFindingsInput, + ArchiveFindingsInputDict as ArchiveFindingsInputDict, ArchiveFindingsOutput as ArchiveFindingsOutput, AssociationDetail as AssociationDetail, AssociationMode as AssociationMode, @@ -59,6 +63,7 @@ from ._private.models_0 import ( CloudTrailConfigurationResult as CloudTrailConfigurationResult, ClusterStatus as ClusterStatus, Condition as Condition, + ConditionDict as ConditionDict, Confidence as Confidence, ConfidenceLevel as ConfidenceLevel, ConflictException as ConflictException, @@ -69,92 +74,130 @@ from ._private.models_0 import ( ContentPolicyFilterAction as ContentPolicyFilterAction, ContentPolicyFilterType as ContentPolicyFilterType, ContinuousScanDetails as ContinuousScanDetails, + ContinuousScanDetailsDict as ContinuousScanDetailsDict, Country as Country, CoverageEc2InstanceDetails as CoverageEc2InstanceDetails, CoverageEcsClusterDetails as CoverageEcsClusterDetails, CoverageEksClusterDetails as CoverageEksClusterDetails, CoverageFilterCondition as CoverageFilterCondition, + CoverageFilterConditionDict as CoverageFilterConditionDict, CoverageFilterCriteria as CoverageFilterCriteria, + CoverageFilterCriteriaDict as CoverageFilterCriteriaDict, CoverageFilterCriterion as CoverageFilterCriterion, + CoverageFilterCriterionDict as CoverageFilterCriterionDict, CoverageFilterCriterionKey as CoverageFilterCriterionKey, CoverageResource as CoverageResource, CoverageResourceDetails as CoverageResourceDetails, CoverageSortCriteria as CoverageSortCriteria, + CoverageSortCriteriaDict as CoverageSortCriteriaDict, CoverageSortKey as CoverageSortKey, CoverageStatistics as CoverageStatistics, CoverageStatisticsType as CoverageStatisticsType, CoverageStatus as CoverageStatus, CreateCustomDetectionRuleAssociationInput as CreateCustomDetectionRuleAssociationInput, + CreateCustomDetectionRuleAssociationInputDict as CreateCustomDetectionRuleAssociationInputDict, CreateCustomDetectionRuleAssociationOutput as CreateCustomDetectionRuleAssociationOutput, CreateCustomDetectionRuleOrgConfigurationInput as CreateCustomDetectionRuleOrgConfigurationInput, + CreateCustomDetectionRuleOrgConfigurationInputDict as CreateCustomDetectionRuleOrgConfigurationInputDict, CreateCustomDetectionRuleOrgConfigurationOutput as CreateCustomDetectionRuleOrgConfigurationOutput, CreateDetectorInput as CreateDetectorInput, + CreateDetectorInputDict as CreateDetectorInputDict, CreateDetectorOutput as CreateDetectorOutput, CreateFilterInput as CreateFilterInput, + CreateFilterInputDict as CreateFilterInputDict, CreateFilterOutput as CreateFilterOutput, CreateInvestigationInput as CreateInvestigationInput, + CreateInvestigationInputDict as CreateInvestigationInputDict, CreateInvestigationOutput as CreateInvestigationOutput, CreateIPSetInput as CreateIPSetInput, + CreateIPSetInputDict as CreateIPSetInputDict, CreateIPSetOutput as CreateIPSetOutput, CreateMalwareProtectionPlanInput as CreateMalwareProtectionPlanInput, + CreateMalwareProtectionPlanInputDict as CreateMalwareProtectionPlanInputDict, CreateMalwareProtectionPlanOutput as CreateMalwareProtectionPlanOutput, CreateMembersInput as CreateMembersInput, + CreateMembersInputDict as CreateMembersInputDict, CreateMembersOutput as CreateMembersOutput, CreateProtectedResource as CreateProtectedResource, + CreateProtectedResourceDict as CreateProtectedResourceDict, CreatePublishingDestinationInput as CreatePublishingDestinationInput, + CreatePublishingDestinationInputDict as CreatePublishingDestinationInputDict, CreatePublishingDestinationOutput as CreatePublishingDestinationOutput, CreateS3BucketResource as CreateS3BucketResource, + CreateS3BucketResourceDict as CreateS3BucketResourceDict, CreateSampleFindingsInput as CreateSampleFindingsInput, + CreateSampleFindingsInputDict as CreateSampleFindingsInputDict, CreateSampleFindingsOutput as CreateSampleFindingsOutput, CreateThreatEntitySetInput as CreateThreatEntitySetInput, + CreateThreatEntitySetInputDict as CreateThreatEntitySetInputDict, CreateThreatEntitySetOutput as CreateThreatEntitySetOutput, CreateThreatIntelSetInput as CreateThreatIntelSetInput, + CreateThreatIntelSetInputDict as CreateThreatIntelSetInputDict, CreateThreatIntelSetOutput as CreateThreatIntelSetOutput, CreateTrustedEntitySetInput as CreateTrustedEntitySetInput, + CreateTrustedEntitySetInputDict as CreateTrustedEntitySetInputDict, CreateTrustedEntitySetOutput as CreateTrustedEntitySetOutput, CriterionKey as CriterionKey, DataSource as DataSource, DataSourceConfigurations as DataSourceConfigurations, + DataSourceConfigurationsDict as DataSourceConfigurationsDict, DataSourceConfigurationsResult as DataSourceConfigurationsResult, DataSourceFreeTrial as DataSourceFreeTrial, DataSourcesFreeTrial as DataSourcesFreeTrial, DataSourceStatus as DataSourceStatus, DateStatistics as DateStatistics, DeclineInvitationsInput as DeclineInvitationsInput, + DeclineInvitationsInputDict as DeclineInvitationsInputDict, DeclineInvitationsOutput as DeclineInvitationsOutput, DefaultServerSideEncryption as DefaultServerSideEncryption, DeleteCustomDetectionRuleAssociationInput as DeleteCustomDetectionRuleAssociationInput, + DeleteCustomDetectionRuleAssociationInputDict as DeleteCustomDetectionRuleAssociationInputDict, DeleteCustomDetectionRuleAssociationOutput as DeleteCustomDetectionRuleAssociationOutput, DeleteCustomDetectionRuleOrgConfigurationInput as DeleteCustomDetectionRuleOrgConfigurationInput, + DeleteCustomDetectionRuleOrgConfigurationInputDict as DeleteCustomDetectionRuleOrgConfigurationInputDict, DeleteCustomDetectionRuleOrgConfigurationOutput as DeleteCustomDetectionRuleOrgConfigurationOutput, DeleteDetectorInput as DeleteDetectorInput, + DeleteDetectorInputDict as DeleteDetectorInputDict, DeleteDetectorOutput as DeleteDetectorOutput, DeleteFilterInput as DeleteFilterInput, + DeleteFilterInputDict as DeleteFilterInputDict, DeleteFilterOutput as DeleteFilterOutput, DeleteInvitationsInput as DeleteInvitationsInput, + DeleteInvitationsInputDict as DeleteInvitationsInputDict, DeleteInvitationsOutput as DeleteInvitationsOutput, DeleteIPSetInput as DeleteIPSetInput, + DeleteIPSetInputDict as DeleteIPSetInputDict, DeleteIPSetOutput as DeleteIPSetOutput, DeleteMalwareProtectionPlanInput as DeleteMalwareProtectionPlanInput, + DeleteMalwareProtectionPlanInputDict as DeleteMalwareProtectionPlanInputDict, DeleteMalwareProtectionPlanOutput as DeleteMalwareProtectionPlanOutput, DeleteMembersInput as DeleteMembersInput, + DeleteMembersInputDict as DeleteMembersInputDict, DeleteMembersOutput as DeleteMembersOutput, DeletePublishingDestinationInput as DeletePublishingDestinationInput, + DeletePublishingDestinationInputDict as DeletePublishingDestinationInputDict, DeletePublishingDestinationOutput as DeletePublishingDestinationOutput, DeleteThreatEntitySetInput as DeleteThreatEntitySetInput, + DeleteThreatEntitySetInputDict as DeleteThreatEntitySetInputDict, DeleteThreatEntitySetOutput as DeleteThreatEntitySetOutput, DeleteThreatIntelSetInput as DeleteThreatIntelSetInput, + DeleteThreatIntelSetInputDict as DeleteThreatIntelSetInputDict, DeleteThreatIntelSetOutput as DeleteThreatIntelSetOutput, DeleteTrustedEntitySetInput as DeleteTrustedEntitySetInput, + DeleteTrustedEntitySetInputDict as DeleteTrustedEntitySetInputDict, DeleteTrustedEntitySetOutput as DeleteTrustedEntitySetOutput, DescribeMalwareScansInput as DescribeMalwareScansInput, + DescribeMalwareScansInputDict as DescribeMalwareScansInputDict, DescribeMalwareScansOutput as DescribeMalwareScansOutput, DescribeOrganizationConfigurationInput as DescribeOrganizationConfigurationInput, + DescribeOrganizationConfigurationInputDict as DescribeOrganizationConfigurationInputDict, DescribeOrganizationConfigurationOutput as DescribeOrganizationConfigurationOutput, DescribePublishingDestinationInput as DescribePublishingDestinationInput, + DescribePublishingDestinationInputDict as DescribePublishingDestinationInputDict, DescribePublishingDestinationOutput as DescribePublishingDestinationOutput, Destination as Destination, DestinationProperties as DestinationProperties, + DestinationPropertiesDict as DestinationPropertiesDict, DestinationType as DestinationType, Detection as Detection, DetectionRuleConfigurationStatus as DetectionRuleConfigurationStatus, @@ -163,6 +206,7 @@ from ._private.models_0 import ( DetectionRuleEcsFargateRequirements as DetectionRuleEcsFargateRequirements, DetectionRuleEksRequirements as DetectionRuleEksRequirements, DetectionRuleFilter as DetectionRuleFilter, + DetectionRuleFilterDict as DetectionRuleFilterDict, DetectionRuleFilterCondition as DetectionRuleFilterCondition, DetectionRuleOrgConfiguration as DetectionRuleOrgConfiguration, DetectionRuleOrgConfigurationSummary as DetectionRuleOrgConfigurationSummary, @@ -171,19 +215,25 @@ from ._private.models_0 import ( DetectionRuleSeverity as DetectionRuleSeverity, DetectionSource as DetectionSource, DetectorAdditionalConfiguration as DetectorAdditionalConfiguration, + DetectorAdditionalConfigurationDict as DetectorAdditionalConfigurationDict, DetectorAdditionalConfigurationResult as DetectorAdditionalConfigurationResult, DetectorFeature as DetectorFeature, DetectorFeatureConfiguration as DetectorFeatureConfiguration, + DetectorFeatureConfigurationDict as DetectorFeatureConfigurationDict, DetectorFeatureConfigurationResult as DetectorFeatureConfigurationResult, DetectorFeatureResult as DetectorFeatureResult, DetectorStatus as DetectorStatus, DisableOrganizationAdminAccountInput as DisableOrganizationAdminAccountInput, + DisableOrganizationAdminAccountInputDict as DisableOrganizationAdminAccountInputDict, DisableOrganizationAdminAccountOutput as DisableOrganizationAdminAccountOutput, DisassociateFromAdministratorAccountInput as DisassociateFromAdministratorAccountInput, + DisassociateFromAdministratorAccountInputDict as DisassociateFromAdministratorAccountInputDict, DisassociateFromAdministratorAccountOutput as DisassociateFromAdministratorAccountOutput, DisassociateFromMasterAccountInput as DisassociateFromMasterAccountInput, + DisassociateFromMasterAccountInputDict as DisassociateFromMasterAccountInputDict, DisassociateFromMasterAccountOutput as DisassociateFromMasterAccountOutput, DisassociateMembersInput as DisassociateMembersInput, + DisassociateMembersInputDict as DisassociateMembersInputDict, DisassociateMembersOutput as DisassociateMembersOutput, DNSLogsConfigurationResult as DNSLogsConfigurationResult, DnsRequestAction as DnsRequestAction, @@ -209,6 +259,7 @@ from ._private.models_0 import ( EksCluster as EksCluster, EksClusterDetails as EksClusterDetails, EnableOrganizationAdminAccountInput as EnableOrganizationAdminAccountInput, + EnableOrganizationAdminAccountInputDict as EnableOrganizationAdminAccountInputDict, EnableOrganizationAdminAccountOutput as EnableOrganizationAdminAccountOutput, Evidence as Evidence, FargateDetails as FargateDetails, @@ -217,11 +268,15 @@ from ._private.models_0 import ( Feedback as Feedback, FilterAction as FilterAction, FilterCondition as FilterCondition, + FilterConditionDict as FilterConditionDict, FilterCriteria as FilterCriteria, + FilterCriteriaDict as FilterCriteriaDict, FilterCriterion as FilterCriterion, + FilterCriterionDict as FilterCriterionDict, FilterFieldName as FilterFieldName, Finding as Finding, FindingCriteria as FindingCriteria, + FindingCriteriaDict as FindingCriteriaDict, FindingPublishingFrequency as FindingPublishingFrequency, FindingResourceType as FindingResourceType, FindingStatistics as FindingStatistics, @@ -232,56 +287,80 @@ from ._private.models_0 import ( FreeTrialFeatureResult as FreeTrialFeatureResult, GeoLocation as GeoLocation, GetAdministratorAccountInput as GetAdministratorAccountInput, + GetAdministratorAccountInputDict as GetAdministratorAccountInputDict, GetAdministratorAccountOutput as GetAdministratorAccountOutput, GetCoverageStatisticsInput as GetCoverageStatisticsInput, + GetCoverageStatisticsInputDict as GetCoverageStatisticsInputDict, GetCoverageStatisticsOutput as GetCoverageStatisticsOutput, GetCustomDetectionRuleAssociationInput as GetCustomDetectionRuleAssociationInput, + GetCustomDetectionRuleAssociationInputDict as GetCustomDetectionRuleAssociationInputDict, GetCustomDetectionRuleAssociationOutput as GetCustomDetectionRuleAssociationOutput, GetCustomDetectionRuleInput as GetCustomDetectionRuleInput, + GetCustomDetectionRuleInputDict as GetCustomDetectionRuleInputDict, GetCustomDetectionRuleOrgConfigurationInput as GetCustomDetectionRuleOrgConfigurationInput, + GetCustomDetectionRuleOrgConfigurationInputDict as GetCustomDetectionRuleOrgConfigurationInputDict, GetCustomDetectionRuleOrgConfigurationOutput as GetCustomDetectionRuleOrgConfigurationOutput, GetCustomDetectionRuleOutput as GetCustomDetectionRuleOutput, GetDetectorInput as GetDetectorInput, + GetDetectorInputDict as GetDetectorInputDict, GetDetectorOutput as GetDetectorOutput, GetFilterInput as GetFilterInput, + GetFilterInputDict as GetFilterInputDict, GetFilterOutput as GetFilterOutput, GetFindingsInput as GetFindingsInput, + GetFindingsInputDict as GetFindingsInputDict, GetFindingsOutput as GetFindingsOutput, GetFindingsStatisticsInput as GetFindingsStatisticsInput, + GetFindingsStatisticsInputDict as GetFindingsStatisticsInputDict, GetFindingsStatisticsOutput as GetFindingsStatisticsOutput, GetInvestigationInput as GetInvestigationInput, + GetInvestigationInputDict as GetInvestigationInputDict, GetInvestigationOutput as GetInvestigationOutput, GetInvitationsCountInput as GetInvitationsCountInput, + GetInvitationsCountInputDict as GetInvitationsCountInputDict, GetInvitationsCountOutput as GetInvitationsCountOutput, GetIPSetInput as GetIPSetInput, + GetIPSetInputDict as GetIPSetInputDict, GetIPSetOutput as GetIPSetOutput, GetMalwareProtectionPlanInput as GetMalwareProtectionPlanInput, + GetMalwareProtectionPlanInputDict as GetMalwareProtectionPlanInputDict, GetMalwareProtectionPlanOutput as GetMalwareProtectionPlanOutput, GetMalwareScanInput as GetMalwareScanInput, + GetMalwareScanInputDict as GetMalwareScanInputDict, ) from ._private.models_1 import ( GetMalwareScanOutput as GetMalwareScanOutput, GetMalwareScanResultDetails as GetMalwareScanResultDetails, GetMalwareScanSettingsInput as GetMalwareScanSettingsInput, + GetMalwareScanSettingsInputDict as GetMalwareScanSettingsInputDict, GetMalwareScanSettingsOutput as GetMalwareScanSettingsOutput, GetMasterAccountInput as GetMasterAccountInput, + GetMasterAccountInputDict as GetMasterAccountInputDict, GetMasterAccountOutput as GetMasterAccountOutput, GetMemberDetectorsInput as GetMemberDetectorsInput, + GetMemberDetectorsInputDict as GetMemberDetectorsInputDict, GetMemberDetectorsOutput as GetMemberDetectorsOutput, GetMembersInput as GetMembersInput, + GetMembersInputDict as GetMembersInputDict, GetMembersOutput as GetMembersOutput, GetOrganizationStatisticsInput as GetOrganizationStatisticsInput, + GetOrganizationStatisticsInputDict as GetOrganizationStatisticsInputDict, GetOrganizationStatisticsOutput as GetOrganizationStatisticsOutput, GetRemainingFreeTrialDaysInput as GetRemainingFreeTrialDaysInput, + GetRemainingFreeTrialDaysInputDict as GetRemainingFreeTrialDaysInputDict, GetRemainingFreeTrialDaysOutput as GetRemainingFreeTrialDaysOutput, GetThreatEntitySetInput as GetThreatEntitySetInput, + GetThreatEntitySetInputDict as GetThreatEntitySetInputDict, GetThreatEntitySetOutput as GetThreatEntitySetOutput, GetThreatIntelSetInput as GetThreatIntelSetInput, + GetThreatIntelSetInputDict as GetThreatIntelSetInputDict, GetThreatIntelSetOutput as GetThreatIntelSetOutput, GetTrustedEntitySetInput as GetTrustedEntitySetInput, + GetTrustedEntitySetInputDict as GetTrustedEntitySetInputDict, GetTrustedEntitySetOutput as GetTrustedEntitySetOutput, GetUsageStatisticsInput as GetUsageStatisticsInput, + GetUsageStatisticsInputDict as GetUsageStatisticsInputDict, GetUsageStatisticsOutput as GetUsageStatisticsOutput, GroupByType as GroupByType, GuardrailAction as GuardrailAction, @@ -292,6 +371,7 @@ from ._private.models_1 import ( IamInstanceProfileV2 as IamInstanceProfileV2, ImpersonatedUser as ImpersonatedUser, IncrementalScanDetails as IncrementalScanDetails, + IncrementalScanDetailsDict as IncrementalScanDetailsDict, Indicator as Indicator, IndicatorType as IndicatorType, InstanceDetails as InstanceDetails, @@ -299,11 +379,13 @@ from ._private.models_1 import ( Investigation as Investigation, InvestigationMetadata as InvestigationMetadata, InvestigationSortCriteria as InvestigationSortCriteria, + InvestigationSortCriteriaDict as InvestigationSortCriteriaDict, InvestigationSortField as InvestigationSortField, InvestigationStatus as InvestigationStatus, InvestigationSummary as InvestigationSummary, Invitation as Invitation, InviteMembersInput as InviteMembersInput, + InviteMembersInputDict as InviteMembersInputDict, InviteMembersOutput as InviteMembersOutput, IpSetFormat as IpSetFormat, IpSetStatus as IpSetStatus, @@ -311,8 +393,10 @@ from ._private.models_1 import ( ItemPath as ItemPath, KubernetesApiCallAction as KubernetesApiCallAction, KubernetesAuditLogsConfiguration as KubernetesAuditLogsConfiguration, + KubernetesAuditLogsConfigurationDict as KubernetesAuditLogsConfigurationDict, KubernetesAuditLogsConfigurationResult as KubernetesAuditLogsConfigurationResult, KubernetesConfiguration as KubernetesConfiguration, + KubernetesConfigurationDict as KubernetesConfigurationDict, KubernetesConfigurationResult as KubernetesConfigurationResult, KubernetesDataSourceFreeTrial as KubernetesDataSourceFreeTrial, KubernetesDetails as KubernetesDetails, @@ -326,58 +410,82 @@ from ._private.models_1 import ( LambdaDetails as LambdaDetails, LineageObject as LineageObject, ListCoverageInput as ListCoverageInput, + ListCoverageInputDict as ListCoverageInputDict, ListCoverageOutput as ListCoverageOutput, ListCustomDetectionRuleAssociationsInput as ListCustomDetectionRuleAssociationsInput, + ListCustomDetectionRuleAssociationsInputDict as ListCustomDetectionRuleAssociationsInputDict, ListCustomDetectionRuleAssociationsOutput as ListCustomDetectionRuleAssociationsOutput, ListCustomDetectionRuleOrgConfigurationsInput as ListCustomDetectionRuleOrgConfigurationsInput, + ListCustomDetectionRuleOrgConfigurationsInputDict as ListCustomDetectionRuleOrgConfigurationsInputDict, ListCustomDetectionRuleOrgConfigurationsOutput as ListCustomDetectionRuleOrgConfigurationsOutput, ListCustomDetectionRulesInput as ListCustomDetectionRulesInput, + ListCustomDetectionRulesInputDict as ListCustomDetectionRulesInputDict, ListCustomDetectionRulesOutput as ListCustomDetectionRulesOutput, ListDetectorsInput as ListDetectorsInput, + ListDetectorsInputDict as ListDetectorsInputDict, ListDetectorsOutput as ListDetectorsOutput, ListFiltersInput as ListFiltersInput, + ListFiltersInputDict as ListFiltersInputDict, ListFiltersOutput as ListFiltersOutput, ListFindingsInput as ListFindingsInput, + ListFindingsInputDict as ListFindingsInputDict, ListFindingsOutput as ListFindingsOutput, ListInvestigationsInput as ListInvestigationsInput, + ListInvestigationsInputDict as ListInvestigationsInputDict, ListInvestigationsOutput as ListInvestigationsOutput, ListInvitationsInput as ListInvitationsInput, + ListInvitationsInputDict as ListInvitationsInputDict, ListInvitationsOutput as ListInvitationsOutput, ListIPSetsInput as ListIPSetsInput, + ListIPSetsInputDict as ListIPSetsInputDict, ListIPSetsOutput as ListIPSetsOutput, ListMalwareProtectionPlansInput as ListMalwareProtectionPlansInput, + ListMalwareProtectionPlansInputDict as ListMalwareProtectionPlansInputDict, ListMalwareProtectionPlansOutput as ListMalwareProtectionPlansOutput, ListMalwareScansCriterionKey as ListMalwareScansCriterionKey, ListMalwareScansFilterCriteria as ListMalwareScansFilterCriteria, + ListMalwareScansFilterCriteriaDict as ListMalwareScansFilterCriteriaDict, ListMalwareScansFilterCriterion as ListMalwareScansFilterCriterion, + ListMalwareScansFilterCriterionDict as ListMalwareScansFilterCriterionDict, ListMalwareScansInput as ListMalwareScansInput, + ListMalwareScansInputDict as ListMalwareScansInputDict, ListMalwareScansOutput as ListMalwareScansOutput, ListMembersInput as ListMembersInput, + ListMembersInputDict as ListMembersInputDict, ListMembersOutput as ListMembersOutput, ListOrganizationAdminAccountsInput as ListOrganizationAdminAccountsInput, + ListOrganizationAdminAccountsInputDict as ListOrganizationAdminAccountsInputDict, ListOrganizationAdminAccountsOutput as ListOrganizationAdminAccountsOutput, ListPublishingDestinationsInput as ListPublishingDestinationsInput, + ListPublishingDestinationsInputDict as ListPublishingDestinationsInputDict, ListPublishingDestinationsOutput as ListPublishingDestinationsOutput, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, ListThreatEntitySetsInput as ListThreatEntitySetsInput, + ListThreatEntitySetsInputDict as ListThreatEntitySetsInputDict, ListThreatEntitySetsOutput as ListThreatEntitySetsOutput, ListThreatIntelSetsInput as ListThreatIntelSetsInput, + ListThreatIntelSetsInputDict as ListThreatIntelSetsInputDict, ListThreatIntelSetsOutput as ListThreatIntelSetsOutput, ListTrustedEntitySetsInput as ListTrustedEntitySetsInput, + ListTrustedEntitySetsInputDict as ListTrustedEntitySetsInputDict, ListTrustedEntitySetsOutput as ListTrustedEntitySetsOutput, LocalIpDetails as LocalIpDetails, LocalPortDetails as LocalPortDetails, LoginAttribute as LoginAttribute, MalwareProtectionConfiguration as MalwareProtectionConfiguration, + MalwareProtectionConfigurationDict as MalwareProtectionConfigurationDict, MalwareProtectionConfigurationResult as MalwareProtectionConfigurationResult, MalwareProtectionDataSourceFreeTrial as MalwareProtectionDataSourceFreeTrial, MalwareProtectionFindingsScanConfiguration as MalwareProtectionFindingsScanConfiguration, MalwareProtectionPlanActions as MalwareProtectionPlanActions, + MalwareProtectionPlanActionsDict as MalwareProtectionPlanActionsDict, MalwareProtectionPlanStatus as MalwareProtectionPlanStatus, MalwareProtectionPlanStatusReason as MalwareProtectionPlanStatusReason, MalwareProtectionPlanSummary as MalwareProtectionPlanSummary, MalwareProtectionPlanTaggingAction as MalwareProtectionPlanTaggingAction, + MalwareProtectionPlanTaggingActionDict as MalwareProtectionPlanTaggingActionDict, MalwareProtectionPlanTaggingActionStatus as MalwareProtectionPlanTaggingActionStatus, MalwareProtectionResourceType as MalwareProtectionResourceType, MalwareProtectionScanStatus as MalwareProtectionScanStatus, @@ -389,9 +497,11 @@ from ._private.models_1 import ( Master as Master, Member as Member, MemberAdditionalConfiguration as MemberAdditionalConfiguration, + MemberAdditionalConfigurationDict as MemberAdditionalConfigurationDict, MemberAdditionalConfigurationResult as MemberAdditionalConfigurationResult, MemberDataSourceConfiguration as MemberDataSourceConfiguration, MemberFeaturesConfiguration as MemberFeaturesConfiguration, + MemberFeaturesConfigurationDict as MemberFeaturesConfigurationDict, MemberFeaturesConfigurationResult as MemberFeaturesConfigurationResult, MfaStatus as MfaStatus, ModelDetail as ModelDetail, @@ -405,25 +515,34 @@ from ._private.models_1 import ( OrderBy as OrderBy, Organization as Organization, OrganizationAdditionalConfiguration as OrganizationAdditionalConfiguration, + OrganizationAdditionalConfigurationDict as OrganizationAdditionalConfigurationDict, OrganizationAdditionalConfigurationResult as OrganizationAdditionalConfigurationResult, OrganizationDataSourceConfigurations as OrganizationDataSourceConfigurations, + OrganizationDataSourceConfigurationsDict as OrganizationDataSourceConfigurationsDict, OrganizationDataSourceConfigurationsResult as OrganizationDataSourceConfigurationsResult, OrganizationDetails as OrganizationDetails, OrganizationEbsVolumes as OrganizationEbsVolumes, + OrganizationEbsVolumesDict as OrganizationEbsVolumesDict, OrganizationEbsVolumesResult as OrganizationEbsVolumesResult, OrganizationFeatureConfiguration as OrganizationFeatureConfiguration, + OrganizationFeatureConfigurationDict as OrganizationFeatureConfigurationDict, OrganizationFeatureConfigurationResult as OrganizationFeatureConfigurationResult, OrganizationFeatureStatistics as OrganizationFeatureStatistics, OrganizationFeatureStatisticsAdditionalConfiguration as OrganizationFeatureStatisticsAdditionalConfiguration, OrganizationKubernetesAuditLogsConfiguration as OrganizationKubernetesAuditLogsConfiguration, + OrganizationKubernetesAuditLogsConfigurationDict as OrganizationKubernetesAuditLogsConfigurationDict, OrganizationKubernetesAuditLogsConfigurationResult as OrganizationKubernetesAuditLogsConfigurationResult, OrganizationKubernetesConfiguration as OrganizationKubernetesConfiguration, + OrganizationKubernetesConfigurationDict as OrganizationKubernetesConfigurationDict, OrganizationKubernetesConfigurationResult as OrganizationKubernetesConfigurationResult, OrganizationMalwareProtectionConfiguration as OrganizationMalwareProtectionConfiguration, + OrganizationMalwareProtectionConfigurationDict as OrganizationMalwareProtectionConfigurationDict, OrganizationMalwareProtectionConfigurationResult as OrganizationMalwareProtectionConfigurationResult, OrganizationS3LogsConfiguration as OrganizationS3LogsConfiguration, + OrganizationS3LogsConfigurationDict as OrganizationS3LogsConfigurationDict, OrganizationS3LogsConfigurationResult as OrganizationS3LogsConfigurationResult, OrganizationScanEc2InstanceWithFindings as OrganizationScanEc2InstanceWithFindings, + OrganizationScanEc2InstanceWithFindingsDict as OrganizationScanEc2InstanceWithFindingsDict, OrganizationScanEc2InstanceWithFindingsResult as OrganizationScanEc2InstanceWithFindingsResult, OrganizationStatistics as OrganizationStatistics, OrgFeature as OrgFeature, @@ -450,6 +569,7 @@ from ._private.models_1 import ( RdsLimitlessDbDetails as RdsLimitlessDbDetails, RdsLoginAttemptAction as RdsLoginAttemptAction, RecoveryPoint as RecoveryPoint, + RecoveryPointDict as RecoveryPointDict, RecoveryPointDetails as RecoveryPointDetails, RemoteAccountDetails as RemoteAccountDetails, RemoteIpDetails as RemoteIpDetails, @@ -472,26 +592,32 @@ from ._private.models_1 import ( S3Bucket as S3Bucket, S3BucketDetail as S3BucketDetail, S3LogsConfiguration as S3LogsConfiguration, + S3LogsConfigurationDict as S3LogsConfigurationDict, S3LogsConfigurationResult as S3LogsConfigurationResult, S3Object as S3Object, S3ObjectDetail as S3ObjectDetail, S3ObjectForSendObjectMalwareScan as S3ObjectForSendObjectMalwareScan, + S3ObjectForSendObjectMalwareScanDict as S3ObjectForSendObjectMalwareScanDict, Scan as Scan, ScanCategory as ScanCategory, ScanCondition as ScanCondition, + ScanConditionDict as ScanConditionDict, ScanConditionPair as ScanConditionPair, + ScanConditionPairDict as ScanConditionPairDict, ScanConfiguration as ScanConfiguration, ScanConfigurationContinuousScanDetails as ScanConfigurationContinuousScanDetails, ScanConfigurationRecoveryPoint as ScanConfigurationRecoveryPoint, ScanCriterionKey as ScanCriterionKey, ScanDetections as ScanDetections, ScanEc2InstanceWithFindings as ScanEc2InstanceWithFindings, + ScanEc2InstanceWithFindingsDict as ScanEc2InstanceWithFindingsDict, ScanEc2InstanceWithFindingsResult as ScanEc2InstanceWithFindingsResult, ScanFilePath as ScanFilePath, ScannedItemCount as ScannedItemCount, ScannedResource as ScannedResource, ScannedResourceDetails as ScannedResourceDetails, ScanResourceCriteria as ScanResourceCriteria, + ScanResourceCriteriaDict as ScanResourceCriteriaDict, ScanResult as ScanResult, ScanResultDetails as ScanResultDetails, ScanResultStatus as ScanResultStatus, @@ -503,6 +629,7 @@ from ._private.models_1 import ( SecurityContext as SecurityContext, SecurityGroup as SecurityGroup, SendObjectMalwareScanInput as SendObjectMalwareScanInput, + SendObjectMalwareScanInputDict as SendObjectMalwareScanInputDict, SendObjectMalwareScanOutput as SendObjectMalwareScanOutput, Sequence as Sequence, Service as Service, @@ -515,15 +642,21 @@ from ._private.models_1 import ( from ._private.models_2 import ( SortCriteria as SortCriteria, + SortCriteriaDict as SortCriteriaDict, StartMalwareScanConfiguration as StartMalwareScanConfiguration, + StartMalwareScanConfigurationDict as StartMalwareScanConfigurationDict, StartMalwareScanInput as StartMalwareScanInput, + StartMalwareScanInputDict as StartMalwareScanInputDict, StartMalwareScanOutput as StartMalwareScanOutput, StartMonitoringMembersInput as StartMonitoringMembersInput, + StartMonitoringMembersInputDict as StartMonitoringMembersInputDict, StartMonitoringMembersOutput as StartMonitoringMembersOutput, StopMonitoringMembersInput as StopMonitoringMembersInput, + StopMonitoringMembersInputDict as StopMonitoringMembersInputDict, StopMonitoringMembersOutput as StopMonitoringMembersOutput, Tag as Tag, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, Threat as Threat, ThreatDetectedByName as ThreatDetectedByName, @@ -539,43 +672,62 @@ from ._private.models_2 import ( TrustedEntitySetFormat as TrustedEntitySetFormat, TrustedEntitySetStatus as TrustedEntitySetStatus, UnarchiveFindingsInput as UnarchiveFindingsInput, + UnarchiveFindingsInputDict as UnarchiveFindingsInputDict, UnarchiveFindingsOutput as UnarchiveFindingsOutput, UnprocessedAccount as UnprocessedAccount, UnprocessedDataSourcesResult as UnprocessedDataSourcesResult, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateCustomDetectionRuleAssociationInput as UpdateCustomDetectionRuleAssociationInput, + UpdateCustomDetectionRuleAssociationInputDict as UpdateCustomDetectionRuleAssociationInputDict, UpdateCustomDetectionRuleAssociationOutput as UpdateCustomDetectionRuleAssociationOutput, UpdateCustomDetectionRuleOrgConfigurationInput as UpdateCustomDetectionRuleOrgConfigurationInput, + UpdateCustomDetectionRuleOrgConfigurationInputDict as UpdateCustomDetectionRuleOrgConfigurationInputDict, UpdateCustomDetectionRuleOrgConfigurationOutput as UpdateCustomDetectionRuleOrgConfigurationOutput, UpdateDetectorInput as UpdateDetectorInput, + UpdateDetectorInputDict as UpdateDetectorInputDict, UpdateDetectorOutput as UpdateDetectorOutput, UpdateFilterInput as UpdateFilterInput, + UpdateFilterInputDict as UpdateFilterInputDict, UpdateFilterOutput as UpdateFilterOutput, UpdateFindingsFeedbackInput as UpdateFindingsFeedbackInput, + UpdateFindingsFeedbackInputDict as UpdateFindingsFeedbackInputDict, UpdateFindingsFeedbackOutput as UpdateFindingsFeedbackOutput, UpdateIPSetInput as UpdateIPSetInput, + UpdateIPSetInputDict as UpdateIPSetInputDict, UpdateIPSetOutput as UpdateIPSetOutput, UpdateMalwareProtectionPlanInput as UpdateMalwareProtectionPlanInput, + UpdateMalwareProtectionPlanInputDict as UpdateMalwareProtectionPlanInputDict, UpdateMalwareProtectionPlanOutput as UpdateMalwareProtectionPlanOutput, UpdateMalwareScanSettingsInput as UpdateMalwareScanSettingsInput, + UpdateMalwareScanSettingsInputDict as UpdateMalwareScanSettingsInputDict, UpdateMalwareScanSettingsOutput as UpdateMalwareScanSettingsOutput, UpdateMemberDetectorsInput as UpdateMemberDetectorsInput, + UpdateMemberDetectorsInputDict as UpdateMemberDetectorsInputDict, UpdateMemberDetectorsOutput as UpdateMemberDetectorsOutput, UpdateOrganizationConfigurationInput as UpdateOrganizationConfigurationInput, + UpdateOrganizationConfigurationInputDict as UpdateOrganizationConfigurationInputDict, UpdateOrganizationConfigurationOutput as UpdateOrganizationConfigurationOutput, UpdateProtectedResource as UpdateProtectedResource, + UpdateProtectedResourceDict as UpdateProtectedResourceDict, UpdatePublishingDestinationInput as UpdatePublishingDestinationInput, + UpdatePublishingDestinationInputDict as UpdatePublishingDestinationInputDict, UpdatePublishingDestinationOutput as UpdatePublishingDestinationOutput, UpdateS3BucketResource as UpdateS3BucketResource, + UpdateS3BucketResourceDict as UpdateS3BucketResourceDict, UpdateThreatEntitySetInput as UpdateThreatEntitySetInput, + UpdateThreatEntitySetInputDict as UpdateThreatEntitySetInputDict, UpdateThreatEntitySetOutput as UpdateThreatEntitySetOutput, UpdateThreatIntelSetInput as UpdateThreatIntelSetInput, + UpdateThreatIntelSetInputDict as UpdateThreatIntelSetInputDict, UpdateThreatIntelSetOutput as UpdateThreatIntelSetOutput, UpdateTrustedEntitySetInput as UpdateTrustedEntitySetInput, + UpdateTrustedEntitySetInputDict as UpdateTrustedEntitySetInputDict, UpdateTrustedEntitySetOutput as UpdateTrustedEntitySetOutput, UsageAccountResult as UsageAccountResult, UsageCriteria as UsageCriteria, + UsageCriteriaDict as UsageCriteriaDict, UsageDataSourceResult as UsageDataSourceResult, UsageFeature as UsageFeature, UsageFeatureResult as UsageFeatureResult, diff --git a/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/py.typed b/clients/aws-sdk-guardduty/src/aws_sdk_guardduty/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-guardduty/tests/_typecheck.py b/clients/aws-sdk-guardduty/tests/_typecheck.py index 4db35f600..6dee883a8 100644 --- a/clients/aws-sdk-guardduty/tests/_typecheck.py +++ b/clients/aws-sdk-guardduty/tests/_typecheck.py @@ -2,16 +2,21 @@ from typing import Any +from aws_sdk_guardduty.aio.client import AsyncGuardDutyClient +from aws_sdk_guardduty.client import GuardDutyClient from aws_sdk_guardduty.models import ( AcceptAdministratorInvitationInput, + AcceptAdministratorInvitationInputDict, AcceptAdministratorInvitationOutput, AcceptInvitationInput, + AcceptInvitationInputDict, AcceptInvitationOutput, AccessControlList, AccessKey, AccessKeyDetails, Account, AccountDetail, + AccountDetailDict, AccountFreeTrialInfo, AccountLevelPermissions, AccountStatistics, @@ -29,6 +34,7 @@ AnomalyUnusual, ApiCall, ArchiveFindingsInput, + ArchiveFindingsInputDict, ArchiveFindingsOutput, AssociationDetail, AssociationSummary, @@ -46,111 +52,157 @@ CloudTrailConfigurationResult, CloudformationStack, Condition, + ConditionDict, Container, ContainerFindingResource, ContainerInstanceDetails, ContentPolicyFilter, ContinuousScanDetails, + ContinuousScanDetailsDict, Country, CoverageEc2InstanceDetails, CoverageEcsClusterDetails, CoverageEksClusterDetails, CoverageFilterCondition, + CoverageFilterConditionDict, CoverageFilterCriteria, + CoverageFilterCriteriaDict, CoverageFilterCriterion, + CoverageFilterCriterionDict, CoverageResource, CoverageResourceDetails, CoverageSortCriteria, + CoverageSortCriteriaDict, CoverageStatistics, CreateCustomDetectionRuleAssociationInput, + CreateCustomDetectionRuleAssociationInputDict, CreateCustomDetectionRuleAssociationOutput, CreateCustomDetectionRuleOrgConfigurationInput, + CreateCustomDetectionRuleOrgConfigurationInputDict, CreateCustomDetectionRuleOrgConfigurationOutput, CreateDetectorInput, + CreateDetectorInputDict, CreateDetectorOutput, CreateFilterInput, + CreateFilterInputDict, CreateFilterOutput, CreateIPSetInput, + CreateIPSetInputDict, CreateIPSetOutput, CreateInvestigationInput, + CreateInvestigationInputDict, CreateInvestigationOutput, CreateMalwareProtectionPlanInput, + CreateMalwareProtectionPlanInputDict, CreateMalwareProtectionPlanOutput, CreateMembersInput, + CreateMembersInputDict, CreateMembersOutput, CreateProtectedResource, + CreateProtectedResourceDict, CreatePublishingDestinationInput, + CreatePublishingDestinationInputDict, CreatePublishingDestinationOutput, CreateS3BucketResource, + CreateS3BucketResourceDict, CreateSampleFindingsInput, + CreateSampleFindingsInputDict, CreateSampleFindingsOutput, CreateThreatEntitySetInput, + CreateThreatEntitySetInputDict, CreateThreatEntitySetOutput, CreateThreatIntelSetInput, + CreateThreatIntelSetInputDict, CreateThreatIntelSetOutput, CreateTrustedEntitySetInput, + CreateTrustedEntitySetInputDict, CreateTrustedEntitySetOutput, DNSLogsConfigurationResult, DataSourceConfigurations, + DataSourceConfigurationsDict, DataSourceConfigurationsResult, DataSourceFreeTrial, DataSourcesFreeTrial, DateStatistics, DeclineInvitationsInput, + DeclineInvitationsInputDict, DeclineInvitationsOutput, DefaultServerSideEncryption, DeleteCustomDetectionRuleAssociationInput, + DeleteCustomDetectionRuleAssociationInputDict, DeleteCustomDetectionRuleAssociationOutput, DeleteCustomDetectionRuleOrgConfigurationInput, + DeleteCustomDetectionRuleOrgConfigurationInputDict, DeleteCustomDetectionRuleOrgConfigurationOutput, DeleteDetectorInput, + DeleteDetectorInputDict, DeleteDetectorOutput, DeleteFilterInput, + DeleteFilterInputDict, DeleteFilterOutput, DeleteIPSetInput, + DeleteIPSetInputDict, DeleteIPSetOutput, DeleteInvitationsInput, + DeleteInvitationsInputDict, DeleteInvitationsOutput, DeleteMalwareProtectionPlanInput, + DeleteMalwareProtectionPlanInputDict, DeleteMalwareProtectionPlanOutput, DeleteMembersInput, + DeleteMembersInputDict, DeleteMembersOutput, DeletePublishingDestinationInput, + DeletePublishingDestinationInputDict, DeletePublishingDestinationOutput, DeleteThreatEntitySetInput, + DeleteThreatEntitySetInputDict, DeleteThreatEntitySetOutput, DeleteThreatIntelSetInput, + DeleteThreatIntelSetInputDict, DeleteThreatIntelSetOutput, DeleteTrustedEntitySetInput, + DeleteTrustedEntitySetInputDict, DeleteTrustedEntitySetOutput, DescribeMalwareScansInput, + DescribeMalwareScansInputDict, DescribeMalwareScansOutput, DescribeOrganizationConfigurationInput, + DescribeOrganizationConfigurationInputDict, DescribeOrganizationConfigurationOutput, DescribePublishingDestinationInput, + DescribePublishingDestinationInputDict, DescribePublishingDestinationOutput, Destination, DestinationProperties, + DestinationPropertiesDict, Detection, DetectionRuleEc2Requirements, DetectionRuleEcsFargateRequirements, DetectionRuleEksRequirements, DetectionRuleFilter, + DetectionRuleFilterDict, DetectionRuleOrgConfiguration, DetectionRuleOrgConfigurationSummary, DetectionRuleRuntimeMonitoringDetails, DetectionRuleRuntimePlatforms, DetectorAdditionalConfiguration, + DetectorAdditionalConfigurationDict, DetectorAdditionalConfigurationResult, DetectorFeatureConfiguration, + DetectorFeatureConfigurationDict, DetectorFeatureConfigurationResult, DisableOrganizationAdminAccountInput, + DisableOrganizationAdminAccountInputDict, DisableOrganizationAdminAccountOutput, DisassociateFromAdministratorAccountInput, + DisassociateFromAdministratorAccountInputDict, DisassociateFromAdministratorAccountOutput, DisassociateFromMasterAccountInput, + DisassociateFromMasterAccountInputDict, DisassociateFromMasterAccountOutput, DisassociateMembersInput, + DisassociateMembersInputDict, DisassociateMembersOutput, DnsRequestAction, DomainDetails, @@ -172,67 +224,96 @@ EksCluster, EksClusterDetails, EnableOrganizationAdminAccountInput, + EnableOrganizationAdminAccountInputDict, EnableOrganizationAdminAccountOutput, Evidence, FargateDetails, FilterCondition, + FilterConditionDict, FilterCriteria, + FilterCriteriaDict, FilterCriterion, + FilterCriterionDict, Finding, FindingCriteria, + FindingCriteriaDict, FindingStatistics, FindingTypeStatistics, FlowLogsConfigurationResult, FreeTrialFeatureConfigurationResult, GeoLocation, GetAdministratorAccountInput, + GetAdministratorAccountInputDict, GetAdministratorAccountOutput, GetCoverageStatisticsInput, + GetCoverageStatisticsInputDict, GetCoverageStatisticsOutput, GetCustomDetectionRuleAssociationInput, + GetCustomDetectionRuleAssociationInputDict, GetCustomDetectionRuleAssociationOutput, GetCustomDetectionRuleInput, + GetCustomDetectionRuleInputDict, GetCustomDetectionRuleOrgConfigurationInput, + GetCustomDetectionRuleOrgConfigurationInputDict, GetCustomDetectionRuleOrgConfigurationOutput, GetCustomDetectionRuleOutput, GetDetectorInput, + GetDetectorInputDict, GetDetectorOutput, GetFilterInput, + GetFilterInputDict, GetFilterOutput, GetFindingsInput, + GetFindingsInputDict, GetFindingsOutput, GetFindingsStatisticsInput, + GetFindingsStatisticsInputDict, GetFindingsStatisticsOutput, GetIPSetInput, + GetIPSetInputDict, GetIPSetOutput, GetInvestigationInput, + GetInvestigationInputDict, GetInvestigationOutput, GetInvitationsCountInput, + GetInvitationsCountInputDict, GetInvitationsCountOutput, GetMalwareProtectionPlanInput, + GetMalwareProtectionPlanInputDict, GetMalwareProtectionPlanOutput, GetMalwareScanInput, + GetMalwareScanInputDict, GetMalwareScanOutput, GetMalwareScanResultDetails, GetMalwareScanSettingsInput, + GetMalwareScanSettingsInputDict, GetMalwareScanSettingsOutput, GetMasterAccountInput, + GetMasterAccountInputDict, GetMasterAccountOutput, GetMemberDetectorsInput, + GetMemberDetectorsInputDict, GetMemberDetectorsOutput, GetMembersInput, + GetMembersInputDict, GetMembersOutput, GetOrganizationStatisticsInput, + GetOrganizationStatisticsInputDict, GetOrganizationStatisticsOutput, GetRemainingFreeTrialDaysInput, + GetRemainingFreeTrialDaysInputDict, GetRemainingFreeTrialDaysOutput, GetThreatEntitySetInput, + GetThreatEntitySetInputDict, GetThreatEntitySetOutput, GetThreatIntelSetInput, + GetThreatIntelSetInputDict, GetThreatIntelSetOutput, GetTrustedEntitySetInput, + GetTrustedEntitySetInputDict, GetTrustedEntitySetOutput, GetUsageStatisticsInput, + GetUsageStatisticsInputDict, GetUsageStatisticsOutput, HighestSeverityThreatDetails, HostPath, @@ -240,21 +321,26 @@ IamInstanceProfileV2, ImpersonatedUser, IncrementalScanDetails, + IncrementalScanDetailsDict, Indicator, InstanceDetails, Investigation, InvestigationMetadata, InvestigationSortCriteria, + InvestigationSortCriteriaDict, InvestigationSummary, Invitation, InviteMembersInput, + InviteMembersInputDict, InviteMembersOutput, ItemDetails, ItemPath, KubernetesApiCallAction, KubernetesAuditLogsConfiguration, + KubernetesAuditLogsConfigurationDict, KubernetesAuditLogsConfigurationResult, KubernetesConfiguration, + KubernetesConfigurationDict, KubernetesConfigurationResult, KubernetesDataSourceFreeTrial, KubernetesDetails, @@ -267,64 +353,90 @@ LambdaDetails, LineageObject, ListCoverageInput, + ListCoverageInputDict, ListCoverageOutput, ListCustomDetectionRuleAssociationsInput, + ListCustomDetectionRuleAssociationsInputDict, ListCustomDetectionRuleAssociationsOutput, ListCustomDetectionRuleOrgConfigurationsInput, + ListCustomDetectionRuleOrgConfigurationsInputDict, ListCustomDetectionRuleOrgConfigurationsOutput, ListCustomDetectionRulesInput, + ListCustomDetectionRulesInputDict, ListCustomDetectionRulesOutput, ListDetectorsInput, + ListDetectorsInputDict, ListDetectorsOutput, ListFiltersInput, + ListFiltersInputDict, ListFiltersOutput, ListFindingsInput, + ListFindingsInputDict, ListFindingsOutput, ListIPSetsInput, + ListIPSetsInputDict, ListIPSetsOutput, ListInvestigationsInput, + ListInvestigationsInputDict, ListInvestigationsOutput, ListInvitationsInput, + ListInvitationsInputDict, ListInvitationsOutput, ListMalwareProtectionPlansInput, + ListMalwareProtectionPlansInputDict, ListMalwareProtectionPlansOutput, ListMalwareScansFilterCriteria, + ListMalwareScansFilterCriteriaDict, ListMalwareScansFilterCriterion, + ListMalwareScansFilterCriterionDict, ListMalwareScansInput, + ListMalwareScansInputDict, ListMalwareScansOutput, ListMembersInput, + ListMembersInputDict, ListMembersOutput, ListOrganizationAdminAccountsInput, + ListOrganizationAdminAccountsInputDict, ListOrganizationAdminAccountsOutput, ListPublishingDestinationsInput, + ListPublishingDestinationsInputDict, ListPublishingDestinationsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ListThreatEntitySetsInput, + ListThreatEntitySetsInputDict, ListThreatEntitySetsOutput, ListThreatIntelSetsInput, + ListThreatIntelSetsInputDict, ListThreatIntelSetsOutput, ListTrustedEntitySetsInput, + ListTrustedEntitySetsInputDict, ListTrustedEntitySetsOutput, LocalIpDetails, LocalPortDetails, LoginAttribute, MalwareProtectionConfiguration, + MalwareProtectionConfigurationDict, MalwareProtectionConfigurationResult, MalwareProtectionDataSourceFreeTrial, MalwareProtectionFindingsScanConfiguration, MalwareProtectionPlanActions, + MalwareProtectionPlanActionsDict, MalwareProtectionPlanStatusReason, MalwareProtectionPlanSummary, MalwareProtectionPlanTaggingAction, + MalwareProtectionPlanTaggingActionDict, MalwareScan, MalwareScanDetails, Master, Member, MemberAdditionalConfiguration, + MemberAdditionalConfigurationDict, MemberAdditionalConfigurationResult, MemberDataSourceConfiguration, MemberFeaturesConfiguration, + MemberFeaturesConfigurationDict, MemberFeaturesConfigurationResult, ModelDetail, NetworkConnection, @@ -335,25 +447,34 @@ Observations, Organization, OrganizationAdditionalConfiguration, + OrganizationAdditionalConfigurationDict, OrganizationAdditionalConfigurationResult, OrganizationDataSourceConfigurations, + OrganizationDataSourceConfigurationsDict, OrganizationDataSourceConfigurationsResult, OrganizationDetails, OrganizationEbsVolumes, + OrganizationEbsVolumesDict, OrganizationEbsVolumesResult, OrganizationFeatureConfiguration, + OrganizationFeatureConfigurationDict, OrganizationFeatureConfigurationResult, OrganizationFeatureStatistics, OrganizationFeatureStatisticsAdditionalConfiguration, OrganizationKubernetesAuditLogsConfiguration, + OrganizationKubernetesAuditLogsConfigurationDict, OrganizationKubernetesAuditLogsConfigurationResult, OrganizationKubernetesConfiguration, + OrganizationKubernetesConfigurationDict, OrganizationKubernetesConfigurationResult, OrganizationMalwareProtectionConfiguration, + OrganizationMalwareProtectionConfigurationDict, OrganizationMalwareProtectionConfigurationResult, OrganizationS3LogsConfiguration, + OrganizationS3LogsConfigurationDict, OrganizationS3LogsConfigurationResult, OrganizationScanEc2InstanceWithFindings, + OrganizationScanEc2InstanceWithFindingsDict, OrganizationScanEc2InstanceWithFindingsResult, OrganizationStatistics, Owner, @@ -372,6 +493,7 @@ RdsLoginAttemptAction, RecoveryPoint, RecoveryPointDetails, + RecoveryPointDict, RemoteAccountDetails, RemoteIpDetails, RemotePortDetails, @@ -388,21 +510,27 @@ S3Bucket, S3BucketDetail, S3LogsConfiguration, + S3LogsConfigurationDict, S3LogsConfigurationResult, S3Object, S3ObjectDetail, S3ObjectForSendObjectMalwareScan, + S3ObjectForSendObjectMalwareScanDict, Scan, ScanCondition, + ScanConditionDict, ScanConditionPair, + ScanConditionPairDict, ScanConfiguration, ScanConfigurationContinuousScanDetails, ScanConfigurationRecoveryPoint, ScanDetections, ScanEc2InstanceWithFindings, + ScanEc2InstanceWithFindingsDict, ScanEc2InstanceWithFindingsResult, ScanFilePath, ScanResourceCriteria, + ScanResourceCriteriaDict, ScanResultDetails, ScanResultThreat, ScanThreatName, @@ -412,6 +540,7 @@ SecurityContext, SecurityGroup, SendObjectMalwareScanInput, + SendObjectMalwareScanInputDict, SendObjectMalwareScanOutput, Sequence, Service, @@ -420,15 +549,21 @@ SeverityStatistics, Signal, SortCriteria, + SortCriteriaDict, StartMalwareScanConfiguration, + StartMalwareScanConfigurationDict, StartMalwareScanInput, + StartMalwareScanInputDict, StartMalwareScanOutput, StartMonitoringMembersInput, + StartMonitoringMembersInputDict, StartMonitoringMembersOutput, StopMonitoringMembersInput, + StopMonitoringMembersInputDict, StopMonitoringMembersOutput, Tag, TagResourceInput, + TagResourceInputDict, TagResourceOutput, Threat, ThreatDetectedByName, @@ -437,43 +572,62 @@ Total, TriggerDetails, UnarchiveFindingsInput, + UnarchiveFindingsInputDict, UnarchiveFindingsOutput, UnprocessedAccount, UnprocessedDataSourcesResult, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateCustomDetectionRuleAssociationInput, + UpdateCustomDetectionRuleAssociationInputDict, UpdateCustomDetectionRuleAssociationOutput, UpdateCustomDetectionRuleOrgConfigurationInput, + UpdateCustomDetectionRuleOrgConfigurationInputDict, UpdateCustomDetectionRuleOrgConfigurationOutput, UpdateDetectorInput, + UpdateDetectorInputDict, UpdateDetectorOutput, UpdateFilterInput, + UpdateFilterInputDict, UpdateFilterOutput, UpdateFindingsFeedbackInput, + UpdateFindingsFeedbackInputDict, UpdateFindingsFeedbackOutput, UpdateIPSetInput, + UpdateIPSetInputDict, UpdateIPSetOutput, UpdateMalwareProtectionPlanInput, + UpdateMalwareProtectionPlanInputDict, UpdateMalwareProtectionPlanOutput, UpdateMalwareScanSettingsInput, + UpdateMalwareScanSettingsInputDict, UpdateMalwareScanSettingsOutput, UpdateMemberDetectorsInput, + UpdateMemberDetectorsInputDict, UpdateMemberDetectorsOutput, UpdateOrganizationConfigurationInput, + UpdateOrganizationConfigurationInputDict, UpdateOrganizationConfigurationOutput, UpdateProtectedResource, + UpdateProtectedResourceDict, UpdatePublishingDestinationInput, + UpdatePublishingDestinationInputDict, UpdatePublishingDestinationOutput, UpdateS3BucketResource, + UpdateS3BucketResourceDict, UpdateThreatEntitySetInput, + UpdateThreatEntitySetInputDict, UpdateThreatEntitySetOutput, UpdateThreatIntelSetInput, + UpdateThreatIntelSetInputDict, UpdateThreatIntelSetOutput, UpdateTrustedEntitySetInput, + UpdateTrustedEntitySetInputDict, UpdateTrustedEntitySetOutput, UsageAccountResult, UsageCriteria, + UsageCriteriaDict, UsageDataSourceResult, UsageFeatureResult, UsageResourceResult, @@ -488,8 +642,9 @@ ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -975,3 +1130,1407 @@ VolumeDetail() VolumeMount() VpcConfig() +_params_0: AcceptAdministratorInvitationInputDict = { + "detector_id": _, + "administrator_id": _, + "invitation_id": _, +} +_params_1: AcceptInvitationInputDict = { + "detector_id": _, + "master_id": _, + "invitation_id": _, +} +_params_2: AccountDetailDict = {"account_id": _, "email": _} +_params_3: ArchiveFindingsInputDict = {"detector_id": _, "finding_ids": _} +_params_4: ConditionDict = {} +_params_5: ContinuousScanDetailsDict = {"end_time": _} +_params_6: CoverageFilterConditionDict = {} +_params_7: CoverageFilterCriteriaDict = {} +_params_8: CoverageFilterCriterionDict = {} +_params_9: CoverageSortCriteriaDict = {} +_params_10: CreateCustomDetectionRuleAssociationInputDict = {"rule_id": _, "mode": _} +_params_11: CreateCustomDetectionRuleOrgConfigurationInputDict = { + "rule_id": _, + "mode": _, +} +_params_12: CreateDetectorInputDict = {"enable": _} +_params_13: CreateFilterInputDict = {"detector_id": _, "name": _, "finding_criteria": _} +_params_14: CreateInvestigationInputDict = {"detector_id": _, "trigger_prompt": _} +_params_15: CreateIPSetInputDict = { + "detector_id": _, + "name": _, + "format": _, + "location": _, + "activate": _, +} +_params_16: CreateMalwareProtectionPlanInputDict = {"role": _, "protected_resource": _} +_params_17: CreateMembersInputDict = {"detector_id": _, "account_details": _} +_params_18: CreateProtectedResourceDict = {} +_params_19: CreatePublishingDestinationInputDict = { + "detector_id": _, + "destination_type": _, + "destination_properties": _, +} +_params_20: CreateS3BucketResourceDict = {} +_params_21: CreateSampleFindingsInputDict = {"detector_id": _} +_params_22: CreateThreatEntitySetInputDict = { + "detector_id": _, + "name": _, + "format": _, + "location": _, + "activate": _, +} +_params_23: CreateThreatIntelSetInputDict = { + "detector_id": _, + "name": _, + "format": _, + "location": _, + "activate": _, +} +_params_24: CreateTrustedEntitySetInputDict = { + "detector_id": _, + "name": _, + "format": _, + "location": _, + "activate": _, +} +_params_25: DataSourceConfigurationsDict = {} +_params_26: DeclineInvitationsInputDict = {"account_ids": _} +_params_27: DeleteCustomDetectionRuleAssociationInputDict = { + "rule_id": _, + "association_id": _, +} +_params_28: DeleteCustomDetectionRuleOrgConfigurationInputDict = { + "rule_id": _, + "mode": _, +} +_params_29: DeleteDetectorInputDict = {"detector_id": _} +_params_30: DeleteFilterInputDict = {"detector_id": _, "filter_name": _} +_params_31: DeleteInvitationsInputDict = {"account_ids": _} +_params_32: DeleteIPSetInputDict = {"detector_id": _, "ip_set_id": _} +_params_33: DeleteMalwareProtectionPlanInputDict = {"malware_protection_plan_id": _} +_params_34: DeleteMembersInputDict = {"detector_id": _, "account_ids": _} +_params_35: DeletePublishingDestinationInputDict = { + "detector_id": _, + "destination_id": _, +} +_params_36: DeleteThreatEntitySetInputDict = { + "detector_id": _, + "threat_entity_set_id": _, +} +_params_37: DeleteThreatIntelSetInputDict = {"detector_id": _, "threat_intel_set_id": _} +_params_38: DeleteTrustedEntitySetInputDict = { + "detector_id": _, + "trusted_entity_set_id": _, +} +_params_39: DescribeMalwareScansInputDict = {"detector_id": _} +_params_40: DescribeOrganizationConfigurationInputDict = {"detector_id": _} +_params_41: DescribePublishingDestinationInputDict = { + "detector_id": _, + "destination_id": _, +} +_params_42: DestinationPropertiesDict = {} +_params_43: DetectionRuleFilterDict = {"name": _, "values": _} +_params_44: DetectorAdditionalConfigurationDict = {} +_params_45: DetectorFeatureConfigurationDict = {} +_params_46: DisableOrganizationAdminAccountInputDict = {"admin_account_id": _} +_params_47: DisassociateFromAdministratorAccountInputDict = {"detector_id": _} +_params_48: DisassociateFromMasterAccountInputDict = {"detector_id": _} +_params_49: DisassociateMembersInputDict = {"detector_id": _, "account_ids": _} +_params_50: EnableOrganizationAdminAccountInputDict = {"admin_account_id": _} +_params_51: FilterConditionDict = {} +_params_52: FilterCriteriaDict = {} +_params_53: FilterCriterionDict = {} +_params_54: FindingCriteriaDict = {} +_params_55: GetAdministratorAccountInputDict = {"detector_id": _} +_params_56: GetCoverageStatisticsInputDict = {"detector_id": _, "statistics_type": _} +_params_57: GetCustomDetectionRuleAssociationInputDict = { + "rule_id": _, + "association_id": _, +} +_params_58: GetCustomDetectionRuleInputDict = {"rule_id": _} +_params_59: GetCustomDetectionRuleOrgConfigurationInputDict = {"rule_id": _, "mode": _} +_params_60: GetDetectorInputDict = {"detector_id": _} +_params_61: GetFilterInputDict = {"detector_id": _, "filter_name": _} +_params_62: GetFindingsInputDict = {"detector_id": _, "finding_ids": _} +_params_63: GetFindingsStatisticsInputDict = {"detector_id": _} +_params_64: GetInvestigationInputDict = {"detector_id": _, "investigation_id": _} +_params_65: GetInvitationsCountInputDict = {} +_params_66: GetIPSetInputDict = {"detector_id": _, "ip_set_id": _} +_params_67: GetMalwareProtectionPlanInputDict = {"malware_protection_plan_id": _} +_params_68: GetMalwareScanInputDict = {"scan_id": _} +_params_69: GetMalwareScanSettingsInputDict = {"detector_id": _} +_params_70: GetMasterAccountInputDict = {"detector_id": _} +_params_71: GetMemberDetectorsInputDict = {"detector_id": _, "account_ids": _} +_params_72: GetMembersInputDict = {"detector_id": _, "account_ids": _} +_params_73: GetOrganizationStatisticsInputDict = {} +_params_74: GetRemainingFreeTrialDaysInputDict = {"detector_id": _, "account_ids": _} +_params_75: GetThreatEntitySetInputDict = {"detector_id": _, "threat_entity_set_id": _} +_params_76: GetThreatIntelSetInputDict = {"detector_id": _, "threat_intel_set_id": _} +_params_77: GetTrustedEntitySetInputDict = { + "detector_id": _, + "trusted_entity_set_id": _, +} +_params_78: GetUsageStatisticsInputDict = { + "detector_id": _, + "usage_statistic_type": _, + "usage_criteria": _, +} +_params_79: IncrementalScanDetailsDict = {"baseline_resource_arn": _} +_params_80: InvestigationSortCriteriaDict = {} +_params_81: InviteMembersInputDict = {"detector_id": _, "account_ids": _} +_params_82: KubernetesAuditLogsConfigurationDict = {"enable": _} +_params_83: KubernetesConfigurationDict = {"audit_logs": _} +_params_84: ListCoverageInputDict = {"detector_id": _} +_params_85: ListCustomDetectionRuleAssociationsInputDict = {} +_params_86: ListCustomDetectionRuleOrgConfigurationsInputDict = {} +_params_87: ListCustomDetectionRulesInputDict = {} +_params_88: ListDetectorsInputDict = {} +_params_89: ListFiltersInputDict = {"detector_id": _} +_params_90: ListFindingsInputDict = {"detector_id": _} +_params_91: ListInvestigationsInputDict = {"detector_id": _} +_params_92: ListInvitationsInputDict = {} +_params_93: ListIPSetsInputDict = {"detector_id": _} +_params_94: ListMalwareProtectionPlansInputDict = {} +_params_95: ListMalwareScansFilterCriteriaDict = {} +_params_96: ListMalwareScansFilterCriterionDict = {} +_params_97: ListMalwareScansInputDict = {} +_params_98: ListMembersInputDict = {"detector_id": _} +_params_99: ListOrganizationAdminAccountsInputDict = {} +_params_100: ListPublishingDestinationsInputDict = {"detector_id": _} +_params_101: ListTagsForResourceInputDict = {"resource_arn": _} +_params_102: ListThreatEntitySetsInputDict = {"detector_id": _} +_params_103: ListThreatIntelSetsInputDict = {"detector_id": _} +_params_104: ListTrustedEntitySetsInputDict = {"detector_id": _} +_params_105: MalwareProtectionConfigurationDict = {} +_params_106: MalwareProtectionPlanActionsDict = {} +_params_107: MalwareProtectionPlanTaggingActionDict = {} +_params_108: MemberAdditionalConfigurationDict = {} +_params_109: MemberFeaturesConfigurationDict = {} +_params_110: OrganizationAdditionalConfigurationDict = {} +_params_111: OrganizationDataSourceConfigurationsDict = {} +_params_112: OrganizationEbsVolumesDict = {} +_params_113: OrganizationFeatureConfigurationDict = {} +_params_114: OrganizationKubernetesAuditLogsConfigurationDict = {"auto_enable": _} +_params_115: OrganizationKubernetesConfigurationDict = {"audit_logs": _} +_params_116: OrganizationMalwareProtectionConfigurationDict = {} +_params_117: OrganizationS3LogsConfigurationDict = {"auto_enable": _} +_params_118: OrganizationScanEc2InstanceWithFindingsDict = {} +_params_119: RecoveryPointDict = {"backup_vault_name": _} +_params_120: S3LogsConfigurationDict = {"enable": _} +_params_121: S3ObjectForSendObjectMalwareScanDict = {} +_params_122: ScanConditionDict = {"map_equals": _} +_params_123: ScanConditionPairDict = {"key": _} +_params_124: ScanEc2InstanceWithFindingsDict = {} +_params_125: ScanResourceCriteriaDict = {} +_params_126: SendObjectMalwareScanInputDict = {} +_params_127: SortCriteriaDict = {} +_params_128: StartMalwareScanConfigurationDict = {"role": _} +_params_129: StartMalwareScanInputDict = {"resource_arn": _} +_params_130: StartMonitoringMembersInputDict = {"detector_id": _, "account_ids": _} +_params_131: StopMonitoringMembersInputDict = {"detector_id": _, "account_ids": _} +_params_132: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_133: UnarchiveFindingsInputDict = {"detector_id": _, "finding_ids": _} +_params_134: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_135: UpdateCustomDetectionRuleAssociationInputDict = { + "rule_id": _, + "association_id": _, + "mode": _, +} +_params_136: UpdateCustomDetectionRuleOrgConfigurationInputDict = { + "rule_id": _, + "mode": _, +} +_params_137: UpdateDetectorInputDict = {"detector_id": _} +_params_138: UpdateFilterInputDict = {"detector_id": _, "filter_name": _} +_params_139: UpdateFindingsFeedbackInputDict = { + "detector_id": _, + "finding_ids": _, + "feedback": _, +} +_params_140: UpdateIPSetInputDict = {"detector_id": _, "ip_set_id": _} +_params_141: UpdateMalwareProtectionPlanInputDict = {"malware_protection_plan_id": _} +_params_142: UpdateMalwareScanSettingsInputDict = {"detector_id": _} +_params_143: UpdateMemberDetectorsInputDict = {"detector_id": _, "account_ids": _} +_params_144: UpdateOrganizationConfigurationInputDict = {"detector_id": _} +_params_145: UpdateProtectedResourceDict = {} +_params_146: UpdatePublishingDestinationInputDict = { + "detector_id": _, + "destination_id": _, +} +_params_147: UpdateS3BucketResourceDict = {} +_params_148: UpdateThreatEntitySetInputDict = { + "detector_id": _, + "threat_entity_set_id": _, +} +_params_149: UpdateThreatIntelSetInputDict = { + "detector_id": _, + "threat_intel_set_id": _, +} +_params_150: UpdateTrustedEntitySetInputDict = { + "detector_id": _, + "trusted_entity_set_id": _, +} +_params_151: UsageCriteriaDict = {} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncGuardDutyClient) -> None: + pass + await client.accept_administrator_invitation( + detector_id=_, administrator_id=_, invitation_id=_ + ) + await client.accept_administrator_invitation( + **_request(AcceptAdministratorInvitationInputDict) + ) + await client.accept_administrator_invitation( + _request(AcceptAdministratorInvitationInput) + ) + await client.accept_administrator_invitation( + _request(AcceptAdministratorInvitationInputDict) + ) + await client.accept_invitation(detector_id=_, master_id=_, invitation_id=_) + await client.accept_invitation(**_request(AcceptInvitationInputDict)) + await client.accept_invitation(_request(AcceptInvitationInput)) + await client.accept_invitation(_request(AcceptInvitationInputDict)) + await client.archive_findings(detector_id=_, finding_ids=_) + await client.archive_findings(**_request(ArchiveFindingsInputDict)) + await client.archive_findings(_request(ArchiveFindingsInput)) + await client.archive_findings(_request(ArchiveFindingsInputDict)) + await client.create_custom_detection_rule_association(rule_id=_, mode=_) + await client.create_custom_detection_rule_association( + **_request(CreateCustomDetectionRuleAssociationInputDict) + ) + await client.create_custom_detection_rule_association( + _request(CreateCustomDetectionRuleAssociationInput) + ) + await client.create_custom_detection_rule_association( + _request(CreateCustomDetectionRuleAssociationInputDict) + ) + await client.create_custom_detection_rule_org_configuration(rule_id=_, mode=_) + await client.create_custom_detection_rule_org_configuration( + **_request(CreateCustomDetectionRuleOrgConfigurationInputDict) + ) + await client.create_custom_detection_rule_org_configuration( + _request(CreateCustomDetectionRuleOrgConfigurationInput) + ) + await client.create_custom_detection_rule_org_configuration( + _request(CreateCustomDetectionRuleOrgConfigurationInputDict) + ) + await client.create_detector(enable=_) + await client.create_detector(**_request(CreateDetectorInputDict)) + await client.create_detector(_request(CreateDetectorInput)) + await client.create_detector(_request(CreateDetectorInputDict)) + await client.create_filter(detector_id=_, name=_, finding_criteria=_) + await client.create_filter(**_request(CreateFilterInputDict)) + await client.create_filter(_request(CreateFilterInput)) + await client.create_filter(_request(CreateFilterInputDict)) + await client.create_investigation(detector_id=_, trigger_prompt=_) + await client.create_investigation(**_request(CreateInvestigationInputDict)) + await client.create_investigation(_request(CreateInvestigationInput)) + await client.create_investigation(_request(CreateInvestigationInputDict)) + await client.create_ip_set(detector_id=_, name=_, format=_, location=_, activate=_) + await client.create_ip_set(**_request(CreateIPSetInputDict)) + await client.create_ip_set(_request(CreateIPSetInput)) + await client.create_ip_set(_request(CreateIPSetInputDict)) + await client.create_malware_protection_plan(role=_, protected_resource=_) + await client.create_malware_protection_plan( + **_request(CreateMalwareProtectionPlanInputDict) + ) + await client.create_malware_protection_plan( + _request(CreateMalwareProtectionPlanInput) + ) + await client.create_malware_protection_plan( + _request(CreateMalwareProtectionPlanInputDict) + ) + await client.create_members(detector_id=_, account_details=_) + await client.create_members(**_request(CreateMembersInputDict)) + await client.create_members(_request(CreateMembersInput)) + await client.create_members(_request(CreateMembersInputDict)) + await client.create_publishing_destination( + detector_id=_, destination_type=_, destination_properties=_ + ) + await client.create_publishing_destination( + **_request(CreatePublishingDestinationInputDict) + ) + await client.create_publishing_destination( + _request(CreatePublishingDestinationInput) + ) + await client.create_publishing_destination( + _request(CreatePublishingDestinationInputDict) + ) + await client.create_sample_findings(detector_id=_) + await client.create_sample_findings(**_request(CreateSampleFindingsInputDict)) + await client.create_sample_findings(_request(CreateSampleFindingsInput)) + await client.create_sample_findings(_request(CreateSampleFindingsInputDict)) + await client.create_threat_entity_set( + detector_id=_, name=_, format=_, location=_, activate=_ + ) + await client.create_threat_entity_set(**_request(CreateThreatEntitySetInputDict)) + await client.create_threat_entity_set(_request(CreateThreatEntitySetInput)) + await client.create_threat_entity_set(_request(CreateThreatEntitySetInputDict)) + await client.create_threat_intel_set( + detector_id=_, name=_, format=_, location=_, activate=_ + ) + await client.create_threat_intel_set(**_request(CreateThreatIntelSetInputDict)) + await client.create_threat_intel_set(_request(CreateThreatIntelSetInput)) + await client.create_threat_intel_set(_request(CreateThreatIntelSetInputDict)) + await client.create_trusted_entity_set( + detector_id=_, name=_, format=_, location=_, activate=_ + ) + await client.create_trusted_entity_set(**_request(CreateTrustedEntitySetInputDict)) + await client.create_trusted_entity_set(_request(CreateTrustedEntitySetInput)) + await client.create_trusted_entity_set(_request(CreateTrustedEntitySetInputDict)) + await client.decline_invitations(account_ids=_) + await client.decline_invitations(**_request(DeclineInvitationsInputDict)) + await client.decline_invitations(_request(DeclineInvitationsInput)) + await client.decline_invitations(_request(DeclineInvitationsInputDict)) + await client.delete_custom_detection_rule_association(rule_id=_, association_id=_) + await client.delete_custom_detection_rule_association( + **_request(DeleteCustomDetectionRuleAssociationInputDict) + ) + await client.delete_custom_detection_rule_association( + _request(DeleteCustomDetectionRuleAssociationInput) + ) + await client.delete_custom_detection_rule_association( + _request(DeleteCustomDetectionRuleAssociationInputDict) + ) + await client.delete_custom_detection_rule_org_configuration(rule_id=_, mode=_) + await client.delete_custom_detection_rule_org_configuration( + **_request(DeleteCustomDetectionRuleOrgConfigurationInputDict) + ) + await client.delete_custom_detection_rule_org_configuration( + _request(DeleteCustomDetectionRuleOrgConfigurationInput) + ) + await client.delete_custom_detection_rule_org_configuration( + _request(DeleteCustomDetectionRuleOrgConfigurationInputDict) + ) + await client.delete_detector(detector_id=_) + await client.delete_detector(**_request(DeleteDetectorInputDict)) + await client.delete_detector(_request(DeleteDetectorInput)) + await client.delete_detector(_request(DeleteDetectorInputDict)) + await client.delete_filter(detector_id=_, filter_name=_) + await client.delete_filter(**_request(DeleteFilterInputDict)) + await client.delete_filter(_request(DeleteFilterInput)) + await client.delete_filter(_request(DeleteFilterInputDict)) + await client.delete_invitations(account_ids=_) + await client.delete_invitations(**_request(DeleteInvitationsInputDict)) + await client.delete_invitations(_request(DeleteInvitationsInput)) + await client.delete_invitations(_request(DeleteInvitationsInputDict)) + await client.delete_ip_set(detector_id=_, ip_set_id=_) + await client.delete_ip_set(**_request(DeleteIPSetInputDict)) + await client.delete_ip_set(_request(DeleteIPSetInput)) + await client.delete_ip_set(_request(DeleteIPSetInputDict)) + await client.delete_malware_protection_plan(malware_protection_plan_id=_) + await client.delete_malware_protection_plan( + **_request(DeleteMalwareProtectionPlanInputDict) + ) + await client.delete_malware_protection_plan( + _request(DeleteMalwareProtectionPlanInput) + ) + await client.delete_malware_protection_plan( + _request(DeleteMalwareProtectionPlanInputDict) + ) + await client.delete_members(detector_id=_, account_ids=_) + await client.delete_members(**_request(DeleteMembersInputDict)) + await client.delete_members(_request(DeleteMembersInput)) + await client.delete_members(_request(DeleteMembersInputDict)) + await client.delete_publishing_destination(detector_id=_, destination_id=_) + await client.delete_publishing_destination( + **_request(DeletePublishingDestinationInputDict) + ) + await client.delete_publishing_destination( + _request(DeletePublishingDestinationInput) + ) + await client.delete_publishing_destination( + _request(DeletePublishingDestinationInputDict) + ) + await client.delete_threat_entity_set(detector_id=_, threat_entity_set_id=_) + await client.delete_threat_entity_set(**_request(DeleteThreatEntitySetInputDict)) + await client.delete_threat_entity_set(_request(DeleteThreatEntitySetInput)) + await client.delete_threat_entity_set(_request(DeleteThreatEntitySetInputDict)) + await client.delete_threat_intel_set(detector_id=_, threat_intel_set_id=_) + await client.delete_threat_intel_set(**_request(DeleteThreatIntelSetInputDict)) + await client.delete_threat_intel_set(_request(DeleteThreatIntelSetInput)) + await client.delete_threat_intel_set(_request(DeleteThreatIntelSetInputDict)) + await client.delete_trusted_entity_set(detector_id=_, trusted_entity_set_id=_) + await client.delete_trusted_entity_set(**_request(DeleteTrustedEntitySetInputDict)) + await client.delete_trusted_entity_set(_request(DeleteTrustedEntitySetInput)) + await client.delete_trusted_entity_set(_request(DeleteTrustedEntitySetInputDict)) + await client.describe_malware_scans(detector_id=_) + await client.describe_malware_scans(**_request(DescribeMalwareScansInputDict)) + await client.describe_malware_scans(_request(DescribeMalwareScansInput)) + await client.describe_malware_scans(_request(DescribeMalwareScansInputDict)) + await client.describe_organization_configuration(detector_id=_) + await client.describe_organization_configuration( + **_request(DescribeOrganizationConfigurationInputDict) + ) + await client.describe_organization_configuration( + _request(DescribeOrganizationConfigurationInput) + ) + await client.describe_organization_configuration( + _request(DescribeOrganizationConfigurationInputDict) + ) + await client.describe_publishing_destination(detector_id=_, destination_id=_) + await client.describe_publishing_destination( + **_request(DescribePublishingDestinationInputDict) + ) + await client.describe_publishing_destination( + _request(DescribePublishingDestinationInput) + ) + await client.describe_publishing_destination( + _request(DescribePublishingDestinationInputDict) + ) + await client.disable_organization_admin_account(admin_account_id=_) + await client.disable_organization_admin_account( + **_request(DisableOrganizationAdminAccountInputDict) + ) + await client.disable_organization_admin_account( + _request(DisableOrganizationAdminAccountInput) + ) + await client.disable_organization_admin_account( + _request(DisableOrganizationAdminAccountInputDict) + ) + await client.disassociate_from_administrator_account(detector_id=_) + await client.disassociate_from_administrator_account( + **_request(DisassociateFromAdministratorAccountInputDict) + ) + await client.disassociate_from_administrator_account( + _request(DisassociateFromAdministratorAccountInput) + ) + await client.disassociate_from_administrator_account( + _request(DisassociateFromAdministratorAccountInputDict) + ) + await client.disassociate_from_master_account(detector_id=_) + await client.disassociate_from_master_account( + **_request(DisassociateFromMasterAccountInputDict) + ) + await client.disassociate_from_master_account( + _request(DisassociateFromMasterAccountInput) + ) + await client.disassociate_from_master_account( + _request(DisassociateFromMasterAccountInputDict) + ) + await client.disassociate_members(detector_id=_, account_ids=_) + await client.disassociate_members(**_request(DisassociateMembersInputDict)) + await client.disassociate_members(_request(DisassociateMembersInput)) + await client.disassociate_members(_request(DisassociateMembersInputDict)) + await client.enable_organization_admin_account(admin_account_id=_) + await client.enable_organization_admin_account( + **_request(EnableOrganizationAdminAccountInputDict) + ) + await client.enable_organization_admin_account( + _request(EnableOrganizationAdminAccountInput) + ) + await client.enable_organization_admin_account( + _request(EnableOrganizationAdminAccountInputDict) + ) + await client.get_administrator_account(detector_id=_) + await client.get_administrator_account(**_request(GetAdministratorAccountInputDict)) + await client.get_administrator_account(_request(GetAdministratorAccountInput)) + await client.get_administrator_account(_request(GetAdministratorAccountInputDict)) + await client.get_coverage_statistics(detector_id=_, statistics_type=_) + await client.get_coverage_statistics(**_request(GetCoverageStatisticsInputDict)) + await client.get_coverage_statistics(_request(GetCoverageStatisticsInput)) + await client.get_coverage_statistics(_request(GetCoverageStatisticsInputDict)) + await client.get_custom_detection_rule(rule_id=_) + await client.get_custom_detection_rule(**_request(GetCustomDetectionRuleInputDict)) + await client.get_custom_detection_rule(_request(GetCustomDetectionRuleInput)) + await client.get_custom_detection_rule(_request(GetCustomDetectionRuleInputDict)) + await client.get_custom_detection_rule_association(rule_id=_, association_id=_) + await client.get_custom_detection_rule_association( + **_request(GetCustomDetectionRuleAssociationInputDict) + ) + await client.get_custom_detection_rule_association( + _request(GetCustomDetectionRuleAssociationInput) + ) + await client.get_custom_detection_rule_association( + _request(GetCustomDetectionRuleAssociationInputDict) + ) + await client.get_custom_detection_rule_org_configuration(rule_id=_, mode=_) + await client.get_custom_detection_rule_org_configuration( + **_request(GetCustomDetectionRuleOrgConfigurationInputDict) + ) + await client.get_custom_detection_rule_org_configuration( + _request(GetCustomDetectionRuleOrgConfigurationInput) + ) + await client.get_custom_detection_rule_org_configuration( + _request(GetCustomDetectionRuleOrgConfigurationInputDict) + ) + await client.get_detector(detector_id=_) + await client.get_detector(**_request(GetDetectorInputDict)) + await client.get_detector(_request(GetDetectorInput)) + await client.get_detector(_request(GetDetectorInputDict)) + await client.get_filter(detector_id=_, filter_name=_) + await client.get_filter(**_request(GetFilterInputDict)) + await client.get_filter(_request(GetFilterInput)) + await client.get_filter(_request(GetFilterInputDict)) + await client.get_findings(detector_id=_, finding_ids=_) + await client.get_findings(**_request(GetFindingsInputDict)) + await client.get_findings(_request(GetFindingsInput)) + await client.get_findings(_request(GetFindingsInputDict)) + await client.get_findings_statistics(detector_id=_) + await client.get_findings_statistics(**_request(GetFindingsStatisticsInputDict)) + await client.get_findings_statistics(_request(GetFindingsStatisticsInput)) + await client.get_findings_statistics(_request(GetFindingsStatisticsInputDict)) + await client.get_investigation(detector_id=_, investigation_id=_) + await client.get_investigation(**_request(GetInvestigationInputDict)) + await client.get_investigation(_request(GetInvestigationInput)) + await client.get_investigation(_request(GetInvestigationInputDict)) + await client.get_invitations_count() + await client.get_invitations_count(**_request(GetInvitationsCountInputDict)) + await client.get_invitations_count(_request(GetInvitationsCountInput)) + await client.get_invitations_count(_request(GetInvitationsCountInputDict)) + await client.get_ip_set(detector_id=_, ip_set_id=_) + await client.get_ip_set(**_request(GetIPSetInputDict)) + await client.get_ip_set(_request(GetIPSetInput)) + await client.get_ip_set(_request(GetIPSetInputDict)) + await client.get_malware_protection_plan(malware_protection_plan_id=_) + await client.get_malware_protection_plan( + **_request(GetMalwareProtectionPlanInputDict) + ) + await client.get_malware_protection_plan(_request(GetMalwareProtectionPlanInput)) + await client.get_malware_protection_plan( + _request(GetMalwareProtectionPlanInputDict) + ) + await client.get_malware_scan(scan_id=_) + await client.get_malware_scan(**_request(GetMalwareScanInputDict)) + await client.get_malware_scan(_request(GetMalwareScanInput)) + await client.get_malware_scan(_request(GetMalwareScanInputDict)) + await client.get_malware_scan_settings(detector_id=_) + await client.get_malware_scan_settings(**_request(GetMalwareScanSettingsInputDict)) + await client.get_malware_scan_settings(_request(GetMalwareScanSettingsInput)) + await client.get_malware_scan_settings(_request(GetMalwareScanSettingsInputDict)) + await client.get_master_account(detector_id=_) + await client.get_master_account(**_request(GetMasterAccountInputDict)) + await client.get_master_account(_request(GetMasterAccountInput)) + await client.get_master_account(_request(GetMasterAccountInputDict)) + await client.get_member_detectors(detector_id=_, account_ids=_) + await client.get_member_detectors(**_request(GetMemberDetectorsInputDict)) + await client.get_member_detectors(_request(GetMemberDetectorsInput)) + await client.get_member_detectors(_request(GetMemberDetectorsInputDict)) + await client.get_members(detector_id=_, account_ids=_) + await client.get_members(**_request(GetMembersInputDict)) + await client.get_members(_request(GetMembersInput)) + await client.get_members(_request(GetMembersInputDict)) + await client.get_organization_statistics() + await client.get_organization_statistics( + **_request(GetOrganizationStatisticsInputDict) + ) + await client.get_organization_statistics(_request(GetOrganizationStatisticsInput)) + await client.get_organization_statistics( + _request(GetOrganizationStatisticsInputDict) + ) + await client.get_remaining_free_trial_days(detector_id=_, account_ids=_) + await client.get_remaining_free_trial_days( + **_request(GetRemainingFreeTrialDaysInputDict) + ) + await client.get_remaining_free_trial_days(_request(GetRemainingFreeTrialDaysInput)) + await client.get_remaining_free_trial_days( + _request(GetRemainingFreeTrialDaysInputDict) + ) + await client.get_threat_entity_set(detector_id=_, threat_entity_set_id=_) + await client.get_threat_entity_set(**_request(GetThreatEntitySetInputDict)) + await client.get_threat_entity_set(_request(GetThreatEntitySetInput)) + await client.get_threat_entity_set(_request(GetThreatEntitySetInputDict)) + await client.get_threat_intel_set(detector_id=_, threat_intel_set_id=_) + await client.get_threat_intel_set(**_request(GetThreatIntelSetInputDict)) + await client.get_threat_intel_set(_request(GetThreatIntelSetInput)) + await client.get_threat_intel_set(_request(GetThreatIntelSetInputDict)) + await client.get_trusted_entity_set(detector_id=_, trusted_entity_set_id=_) + await client.get_trusted_entity_set(**_request(GetTrustedEntitySetInputDict)) + await client.get_trusted_entity_set(_request(GetTrustedEntitySetInput)) + await client.get_trusted_entity_set(_request(GetTrustedEntitySetInputDict)) + await client.get_usage_statistics( + detector_id=_, usage_statistic_type=_, usage_criteria=_ + ) + await client.get_usage_statistics(**_request(GetUsageStatisticsInputDict)) + await client.get_usage_statistics(_request(GetUsageStatisticsInput)) + await client.get_usage_statistics(_request(GetUsageStatisticsInputDict)) + await client.invite_members(detector_id=_, account_ids=_) + await client.invite_members(**_request(InviteMembersInputDict)) + await client.invite_members(_request(InviteMembersInput)) + await client.invite_members(_request(InviteMembersInputDict)) + await client.list_coverage(detector_id=_) + await client.list_coverage(**_request(ListCoverageInputDict)) + await client.list_coverage(_request(ListCoverageInput)) + await client.list_coverage(_request(ListCoverageInputDict)) + await client.list_custom_detection_rule_associations() + await client.list_custom_detection_rule_associations( + **_request(ListCustomDetectionRuleAssociationsInputDict) + ) + await client.list_custom_detection_rule_associations( + _request(ListCustomDetectionRuleAssociationsInput) + ) + await client.list_custom_detection_rule_associations( + _request(ListCustomDetectionRuleAssociationsInputDict) + ) + await client.list_custom_detection_rule_org_configurations() + await client.list_custom_detection_rule_org_configurations( + **_request(ListCustomDetectionRuleOrgConfigurationsInputDict) + ) + await client.list_custom_detection_rule_org_configurations( + _request(ListCustomDetectionRuleOrgConfigurationsInput) + ) + await client.list_custom_detection_rule_org_configurations( + _request(ListCustomDetectionRuleOrgConfigurationsInputDict) + ) + await client.list_custom_detection_rules() + await client.list_custom_detection_rules( + **_request(ListCustomDetectionRulesInputDict) + ) + await client.list_custom_detection_rules(_request(ListCustomDetectionRulesInput)) + await client.list_custom_detection_rules( + _request(ListCustomDetectionRulesInputDict) + ) + await client.list_detectors() + await client.list_detectors(**_request(ListDetectorsInputDict)) + await client.list_detectors(_request(ListDetectorsInput)) + await client.list_detectors(_request(ListDetectorsInputDict)) + await client.list_filters(detector_id=_) + await client.list_filters(**_request(ListFiltersInputDict)) + await client.list_filters(_request(ListFiltersInput)) + await client.list_filters(_request(ListFiltersInputDict)) + await client.list_findings(detector_id=_) + await client.list_findings(**_request(ListFindingsInputDict)) + await client.list_findings(_request(ListFindingsInput)) + await client.list_findings(_request(ListFindingsInputDict)) + await client.list_investigations(detector_id=_) + await client.list_investigations(**_request(ListInvestigationsInputDict)) + await client.list_investigations(_request(ListInvestigationsInput)) + await client.list_investigations(_request(ListInvestigationsInputDict)) + await client.list_invitations() + await client.list_invitations(**_request(ListInvitationsInputDict)) + await client.list_invitations(_request(ListInvitationsInput)) + await client.list_invitations(_request(ListInvitationsInputDict)) + await client.list_ip_sets(detector_id=_) + await client.list_ip_sets(**_request(ListIPSetsInputDict)) + await client.list_ip_sets(_request(ListIPSetsInput)) + await client.list_ip_sets(_request(ListIPSetsInputDict)) + await client.list_malware_protection_plans() + await client.list_malware_protection_plans( + **_request(ListMalwareProtectionPlansInputDict) + ) + await client.list_malware_protection_plans( + _request(ListMalwareProtectionPlansInput) + ) + await client.list_malware_protection_plans( + _request(ListMalwareProtectionPlansInputDict) + ) + await client.list_malware_scans() + await client.list_malware_scans(**_request(ListMalwareScansInputDict)) + await client.list_malware_scans(_request(ListMalwareScansInput)) + await client.list_malware_scans(_request(ListMalwareScansInputDict)) + await client.list_members(detector_id=_) + await client.list_members(**_request(ListMembersInputDict)) + await client.list_members(_request(ListMembersInput)) + await client.list_members(_request(ListMembersInputDict)) + await client.list_organization_admin_accounts() + await client.list_organization_admin_accounts( + **_request(ListOrganizationAdminAccountsInputDict) + ) + await client.list_organization_admin_accounts( + _request(ListOrganizationAdminAccountsInput) + ) + await client.list_organization_admin_accounts( + _request(ListOrganizationAdminAccountsInputDict) + ) + await client.list_publishing_destinations(detector_id=_) + await client.list_publishing_destinations( + **_request(ListPublishingDestinationsInputDict) + ) + await client.list_publishing_destinations(_request(ListPublishingDestinationsInput)) + await client.list_publishing_destinations( + _request(ListPublishingDestinationsInputDict) + ) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.list_threat_entity_sets(detector_id=_) + await client.list_threat_entity_sets(**_request(ListThreatEntitySetsInputDict)) + await client.list_threat_entity_sets(_request(ListThreatEntitySetsInput)) + await client.list_threat_entity_sets(_request(ListThreatEntitySetsInputDict)) + await client.list_threat_intel_sets(detector_id=_) + await client.list_threat_intel_sets(**_request(ListThreatIntelSetsInputDict)) + await client.list_threat_intel_sets(_request(ListThreatIntelSetsInput)) + await client.list_threat_intel_sets(_request(ListThreatIntelSetsInputDict)) + await client.list_trusted_entity_sets(detector_id=_) + await client.list_trusted_entity_sets(**_request(ListTrustedEntitySetsInputDict)) + await client.list_trusted_entity_sets(_request(ListTrustedEntitySetsInput)) + await client.list_trusted_entity_sets(_request(ListTrustedEntitySetsInputDict)) + await client.send_object_malware_scan() + await client.send_object_malware_scan(**_request(SendObjectMalwareScanInputDict)) + await client.send_object_malware_scan(_request(SendObjectMalwareScanInput)) + await client.send_object_malware_scan(_request(SendObjectMalwareScanInputDict)) + await client.start_malware_scan(resource_arn=_) + await client.start_malware_scan(**_request(StartMalwareScanInputDict)) + await client.start_malware_scan(_request(StartMalwareScanInput)) + await client.start_malware_scan(_request(StartMalwareScanInputDict)) + await client.start_monitoring_members(detector_id=_, account_ids=_) + await client.start_monitoring_members(**_request(StartMonitoringMembersInputDict)) + await client.start_monitoring_members(_request(StartMonitoringMembersInput)) + await client.start_monitoring_members(_request(StartMonitoringMembersInputDict)) + await client.stop_monitoring_members(detector_id=_, account_ids=_) + await client.stop_monitoring_members(**_request(StopMonitoringMembersInputDict)) + await client.stop_monitoring_members(_request(StopMonitoringMembersInput)) + await client.stop_monitoring_members(_request(StopMonitoringMembersInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.unarchive_findings(detector_id=_, finding_ids=_) + await client.unarchive_findings(**_request(UnarchiveFindingsInputDict)) + await client.unarchive_findings(_request(UnarchiveFindingsInput)) + await client.unarchive_findings(_request(UnarchiveFindingsInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_custom_detection_rule_association( + rule_id=_, association_id=_, mode=_ + ) + await client.update_custom_detection_rule_association( + **_request(UpdateCustomDetectionRuleAssociationInputDict) + ) + await client.update_custom_detection_rule_association( + _request(UpdateCustomDetectionRuleAssociationInput) + ) + await client.update_custom_detection_rule_association( + _request(UpdateCustomDetectionRuleAssociationInputDict) + ) + await client.update_custom_detection_rule_org_configuration(rule_id=_, mode=_) + await client.update_custom_detection_rule_org_configuration( + **_request(UpdateCustomDetectionRuleOrgConfigurationInputDict) + ) + await client.update_custom_detection_rule_org_configuration( + _request(UpdateCustomDetectionRuleOrgConfigurationInput) + ) + await client.update_custom_detection_rule_org_configuration( + _request(UpdateCustomDetectionRuleOrgConfigurationInputDict) + ) + await client.update_detector(detector_id=_) + await client.update_detector(**_request(UpdateDetectorInputDict)) + await client.update_detector(_request(UpdateDetectorInput)) + await client.update_detector(_request(UpdateDetectorInputDict)) + await client.update_filter(detector_id=_, filter_name=_) + await client.update_filter(**_request(UpdateFilterInputDict)) + await client.update_filter(_request(UpdateFilterInput)) + await client.update_filter(_request(UpdateFilterInputDict)) + await client.update_findings_feedback(detector_id=_, finding_ids=_, feedback=_) + await client.update_findings_feedback(**_request(UpdateFindingsFeedbackInputDict)) + await client.update_findings_feedback(_request(UpdateFindingsFeedbackInput)) + await client.update_findings_feedback(_request(UpdateFindingsFeedbackInputDict)) + await client.update_ip_set(detector_id=_, ip_set_id=_) + await client.update_ip_set(**_request(UpdateIPSetInputDict)) + await client.update_ip_set(_request(UpdateIPSetInput)) + await client.update_ip_set(_request(UpdateIPSetInputDict)) + await client.update_malware_protection_plan(malware_protection_plan_id=_) + await client.update_malware_protection_plan( + **_request(UpdateMalwareProtectionPlanInputDict) + ) + await client.update_malware_protection_plan( + _request(UpdateMalwareProtectionPlanInput) + ) + await client.update_malware_protection_plan( + _request(UpdateMalwareProtectionPlanInputDict) + ) + await client.update_malware_scan_settings(detector_id=_) + await client.update_malware_scan_settings( + **_request(UpdateMalwareScanSettingsInputDict) + ) + await client.update_malware_scan_settings(_request(UpdateMalwareScanSettingsInput)) + await client.update_malware_scan_settings( + _request(UpdateMalwareScanSettingsInputDict) + ) + await client.update_member_detectors(detector_id=_, account_ids=_) + await client.update_member_detectors(**_request(UpdateMemberDetectorsInputDict)) + await client.update_member_detectors(_request(UpdateMemberDetectorsInput)) + await client.update_member_detectors(_request(UpdateMemberDetectorsInputDict)) + await client.update_organization_configuration(detector_id=_) + await client.update_organization_configuration( + **_request(UpdateOrganizationConfigurationInputDict) + ) + await client.update_organization_configuration( + _request(UpdateOrganizationConfigurationInput) + ) + await client.update_organization_configuration( + _request(UpdateOrganizationConfigurationInputDict) + ) + await client.update_publishing_destination(detector_id=_, destination_id=_) + await client.update_publishing_destination( + **_request(UpdatePublishingDestinationInputDict) + ) + await client.update_publishing_destination( + _request(UpdatePublishingDestinationInput) + ) + await client.update_publishing_destination( + _request(UpdatePublishingDestinationInputDict) + ) + await client.update_threat_entity_set(detector_id=_, threat_entity_set_id=_) + await client.update_threat_entity_set(**_request(UpdateThreatEntitySetInputDict)) + await client.update_threat_entity_set(_request(UpdateThreatEntitySetInput)) + await client.update_threat_entity_set(_request(UpdateThreatEntitySetInputDict)) + await client.update_threat_intel_set(detector_id=_, threat_intel_set_id=_) + await client.update_threat_intel_set(**_request(UpdateThreatIntelSetInputDict)) + await client.update_threat_intel_set(_request(UpdateThreatIntelSetInput)) + await client.update_threat_intel_set(_request(UpdateThreatIntelSetInputDict)) + await client.update_trusted_entity_set(detector_id=_, trusted_entity_set_id=_) + await client.update_trusted_entity_set(**_request(UpdateTrustedEntitySetInputDict)) + await client.update_trusted_entity_set(_request(UpdateTrustedEntitySetInput)) + await client.update_trusted_entity_set(_request(UpdateTrustedEntitySetInputDict)) + + +def check_sync_calls(client: GuardDutyClient) -> None: + pass + client.accept_administrator_invitation( + detector_id=_, administrator_id=_, invitation_id=_ + ) + client.accept_administrator_invitation( + **_request(AcceptAdministratorInvitationInputDict) + ) + client.accept_administrator_invitation(_request(AcceptAdministratorInvitationInput)) + client.accept_administrator_invitation( + _request(AcceptAdministratorInvitationInputDict) + ) + client.accept_invitation(detector_id=_, master_id=_, invitation_id=_) + client.accept_invitation(**_request(AcceptInvitationInputDict)) + client.accept_invitation(_request(AcceptInvitationInput)) + client.accept_invitation(_request(AcceptInvitationInputDict)) + client.archive_findings(detector_id=_, finding_ids=_) + client.archive_findings(**_request(ArchiveFindingsInputDict)) + client.archive_findings(_request(ArchiveFindingsInput)) + client.archive_findings(_request(ArchiveFindingsInputDict)) + client.create_custom_detection_rule_association(rule_id=_, mode=_) + client.create_custom_detection_rule_association( + **_request(CreateCustomDetectionRuleAssociationInputDict) + ) + client.create_custom_detection_rule_association( + _request(CreateCustomDetectionRuleAssociationInput) + ) + client.create_custom_detection_rule_association( + _request(CreateCustomDetectionRuleAssociationInputDict) + ) + client.create_custom_detection_rule_org_configuration(rule_id=_, mode=_) + client.create_custom_detection_rule_org_configuration( + **_request(CreateCustomDetectionRuleOrgConfigurationInputDict) + ) + client.create_custom_detection_rule_org_configuration( + _request(CreateCustomDetectionRuleOrgConfigurationInput) + ) + client.create_custom_detection_rule_org_configuration( + _request(CreateCustomDetectionRuleOrgConfigurationInputDict) + ) + client.create_detector(enable=_) + client.create_detector(**_request(CreateDetectorInputDict)) + client.create_detector(_request(CreateDetectorInput)) + client.create_detector(_request(CreateDetectorInputDict)) + client.create_filter(detector_id=_, name=_, finding_criteria=_) + client.create_filter(**_request(CreateFilterInputDict)) + client.create_filter(_request(CreateFilterInput)) + client.create_filter(_request(CreateFilterInputDict)) + client.create_investigation(detector_id=_, trigger_prompt=_) + client.create_investigation(**_request(CreateInvestigationInputDict)) + client.create_investigation(_request(CreateInvestigationInput)) + client.create_investigation(_request(CreateInvestigationInputDict)) + client.create_ip_set(detector_id=_, name=_, format=_, location=_, activate=_) + client.create_ip_set(**_request(CreateIPSetInputDict)) + client.create_ip_set(_request(CreateIPSetInput)) + client.create_ip_set(_request(CreateIPSetInputDict)) + client.create_malware_protection_plan(role=_, protected_resource=_) + client.create_malware_protection_plan( + **_request(CreateMalwareProtectionPlanInputDict) + ) + client.create_malware_protection_plan(_request(CreateMalwareProtectionPlanInput)) + client.create_malware_protection_plan( + _request(CreateMalwareProtectionPlanInputDict) + ) + client.create_members(detector_id=_, account_details=_) + client.create_members(**_request(CreateMembersInputDict)) + client.create_members(_request(CreateMembersInput)) + client.create_members(_request(CreateMembersInputDict)) + client.create_publishing_destination( + detector_id=_, destination_type=_, destination_properties=_ + ) + client.create_publishing_destination( + **_request(CreatePublishingDestinationInputDict) + ) + client.create_publishing_destination(_request(CreatePublishingDestinationInput)) + client.create_publishing_destination(_request(CreatePublishingDestinationInputDict)) + client.create_sample_findings(detector_id=_) + client.create_sample_findings(**_request(CreateSampleFindingsInputDict)) + client.create_sample_findings(_request(CreateSampleFindingsInput)) + client.create_sample_findings(_request(CreateSampleFindingsInputDict)) + client.create_threat_entity_set( + detector_id=_, name=_, format=_, location=_, activate=_ + ) + client.create_threat_entity_set(**_request(CreateThreatEntitySetInputDict)) + client.create_threat_entity_set(_request(CreateThreatEntitySetInput)) + client.create_threat_entity_set(_request(CreateThreatEntitySetInputDict)) + client.create_threat_intel_set( + detector_id=_, name=_, format=_, location=_, activate=_ + ) + client.create_threat_intel_set(**_request(CreateThreatIntelSetInputDict)) + client.create_threat_intel_set(_request(CreateThreatIntelSetInput)) + client.create_threat_intel_set(_request(CreateThreatIntelSetInputDict)) + client.create_trusted_entity_set( + detector_id=_, name=_, format=_, location=_, activate=_ + ) + client.create_trusted_entity_set(**_request(CreateTrustedEntitySetInputDict)) + client.create_trusted_entity_set(_request(CreateTrustedEntitySetInput)) + client.create_trusted_entity_set(_request(CreateTrustedEntitySetInputDict)) + client.decline_invitations(account_ids=_) + client.decline_invitations(**_request(DeclineInvitationsInputDict)) + client.decline_invitations(_request(DeclineInvitationsInput)) + client.decline_invitations(_request(DeclineInvitationsInputDict)) + client.delete_custom_detection_rule_association(rule_id=_, association_id=_) + client.delete_custom_detection_rule_association( + **_request(DeleteCustomDetectionRuleAssociationInputDict) + ) + client.delete_custom_detection_rule_association( + _request(DeleteCustomDetectionRuleAssociationInput) + ) + client.delete_custom_detection_rule_association( + _request(DeleteCustomDetectionRuleAssociationInputDict) + ) + client.delete_custom_detection_rule_org_configuration(rule_id=_, mode=_) + client.delete_custom_detection_rule_org_configuration( + **_request(DeleteCustomDetectionRuleOrgConfigurationInputDict) + ) + client.delete_custom_detection_rule_org_configuration( + _request(DeleteCustomDetectionRuleOrgConfigurationInput) + ) + client.delete_custom_detection_rule_org_configuration( + _request(DeleteCustomDetectionRuleOrgConfigurationInputDict) + ) + client.delete_detector(detector_id=_) + client.delete_detector(**_request(DeleteDetectorInputDict)) + client.delete_detector(_request(DeleteDetectorInput)) + client.delete_detector(_request(DeleteDetectorInputDict)) + client.delete_filter(detector_id=_, filter_name=_) + client.delete_filter(**_request(DeleteFilterInputDict)) + client.delete_filter(_request(DeleteFilterInput)) + client.delete_filter(_request(DeleteFilterInputDict)) + client.delete_invitations(account_ids=_) + client.delete_invitations(**_request(DeleteInvitationsInputDict)) + client.delete_invitations(_request(DeleteInvitationsInput)) + client.delete_invitations(_request(DeleteInvitationsInputDict)) + client.delete_ip_set(detector_id=_, ip_set_id=_) + client.delete_ip_set(**_request(DeleteIPSetInputDict)) + client.delete_ip_set(_request(DeleteIPSetInput)) + client.delete_ip_set(_request(DeleteIPSetInputDict)) + client.delete_malware_protection_plan(malware_protection_plan_id=_) + client.delete_malware_protection_plan( + **_request(DeleteMalwareProtectionPlanInputDict) + ) + client.delete_malware_protection_plan(_request(DeleteMalwareProtectionPlanInput)) + client.delete_malware_protection_plan( + _request(DeleteMalwareProtectionPlanInputDict) + ) + client.delete_members(detector_id=_, account_ids=_) + client.delete_members(**_request(DeleteMembersInputDict)) + client.delete_members(_request(DeleteMembersInput)) + client.delete_members(_request(DeleteMembersInputDict)) + client.delete_publishing_destination(detector_id=_, destination_id=_) + client.delete_publishing_destination( + **_request(DeletePublishingDestinationInputDict) + ) + client.delete_publishing_destination(_request(DeletePublishingDestinationInput)) + client.delete_publishing_destination(_request(DeletePublishingDestinationInputDict)) + client.delete_threat_entity_set(detector_id=_, threat_entity_set_id=_) + client.delete_threat_entity_set(**_request(DeleteThreatEntitySetInputDict)) + client.delete_threat_entity_set(_request(DeleteThreatEntitySetInput)) + client.delete_threat_entity_set(_request(DeleteThreatEntitySetInputDict)) + client.delete_threat_intel_set(detector_id=_, threat_intel_set_id=_) + client.delete_threat_intel_set(**_request(DeleteThreatIntelSetInputDict)) + client.delete_threat_intel_set(_request(DeleteThreatIntelSetInput)) + client.delete_threat_intel_set(_request(DeleteThreatIntelSetInputDict)) + client.delete_trusted_entity_set(detector_id=_, trusted_entity_set_id=_) + client.delete_trusted_entity_set(**_request(DeleteTrustedEntitySetInputDict)) + client.delete_trusted_entity_set(_request(DeleteTrustedEntitySetInput)) + client.delete_trusted_entity_set(_request(DeleteTrustedEntitySetInputDict)) + client.describe_malware_scans(detector_id=_) + client.describe_malware_scans(**_request(DescribeMalwareScansInputDict)) + client.describe_malware_scans(_request(DescribeMalwareScansInput)) + client.describe_malware_scans(_request(DescribeMalwareScansInputDict)) + client.describe_organization_configuration(detector_id=_) + client.describe_organization_configuration( + **_request(DescribeOrganizationConfigurationInputDict) + ) + client.describe_organization_configuration( + _request(DescribeOrganizationConfigurationInput) + ) + client.describe_organization_configuration( + _request(DescribeOrganizationConfigurationInputDict) + ) + client.describe_publishing_destination(detector_id=_, destination_id=_) + client.describe_publishing_destination( + **_request(DescribePublishingDestinationInputDict) + ) + client.describe_publishing_destination(_request(DescribePublishingDestinationInput)) + client.describe_publishing_destination( + _request(DescribePublishingDestinationInputDict) + ) + client.disable_organization_admin_account(admin_account_id=_) + client.disable_organization_admin_account( + **_request(DisableOrganizationAdminAccountInputDict) + ) + client.disable_organization_admin_account( + _request(DisableOrganizationAdminAccountInput) + ) + client.disable_organization_admin_account( + _request(DisableOrganizationAdminAccountInputDict) + ) + client.disassociate_from_administrator_account(detector_id=_) + client.disassociate_from_administrator_account( + **_request(DisassociateFromAdministratorAccountInputDict) + ) + client.disassociate_from_administrator_account( + _request(DisassociateFromAdministratorAccountInput) + ) + client.disassociate_from_administrator_account( + _request(DisassociateFromAdministratorAccountInputDict) + ) + client.disassociate_from_master_account(detector_id=_) + client.disassociate_from_master_account( + **_request(DisassociateFromMasterAccountInputDict) + ) + client.disassociate_from_master_account( + _request(DisassociateFromMasterAccountInput) + ) + client.disassociate_from_master_account( + _request(DisassociateFromMasterAccountInputDict) + ) + client.disassociate_members(detector_id=_, account_ids=_) + client.disassociate_members(**_request(DisassociateMembersInputDict)) + client.disassociate_members(_request(DisassociateMembersInput)) + client.disassociate_members(_request(DisassociateMembersInputDict)) + client.enable_organization_admin_account(admin_account_id=_) + client.enable_organization_admin_account( + **_request(EnableOrganizationAdminAccountInputDict) + ) + client.enable_organization_admin_account( + _request(EnableOrganizationAdminAccountInput) + ) + client.enable_organization_admin_account( + _request(EnableOrganizationAdminAccountInputDict) + ) + client.get_administrator_account(detector_id=_) + client.get_administrator_account(**_request(GetAdministratorAccountInputDict)) + client.get_administrator_account(_request(GetAdministratorAccountInput)) + client.get_administrator_account(_request(GetAdministratorAccountInputDict)) + client.get_coverage_statistics(detector_id=_, statistics_type=_) + client.get_coverage_statistics(**_request(GetCoverageStatisticsInputDict)) + client.get_coverage_statistics(_request(GetCoverageStatisticsInput)) + client.get_coverage_statistics(_request(GetCoverageStatisticsInputDict)) + client.get_custom_detection_rule(rule_id=_) + client.get_custom_detection_rule(**_request(GetCustomDetectionRuleInputDict)) + client.get_custom_detection_rule(_request(GetCustomDetectionRuleInput)) + client.get_custom_detection_rule(_request(GetCustomDetectionRuleInputDict)) + client.get_custom_detection_rule_association(rule_id=_, association_id=_) + client.get_custom_detection_rule_association( + **_request(GetCustomDetectionRuleAssociationInputDict) + ) + client.get_custom_detection_rule_association( + _request(GetCustomDetectionRuleAssociationInput) + ) + client.get_custom_detection_rule_association( + _request(GetCustomDetectionRuleAssociationInputDict) + ) + client.get_custom_detection_rule_org_configuration(rule_id=_, mode=_) + client.get_custom_detection_rule_org_configuration( + **_request(GetCustomDetectionRuleOrgConfigurationInputDict) + ) + client.get_custom_detection_rule_org_configuration( + _request(GetCustomDetectionRuleOrgConfigurationInput) + ) + client.get_custom_detection_rule_org_configuration( + _request(GetCustomDetectionRuleOrgConfigurationInputDict) + ) + client.get_detector(detector_id=_) + client.get_detector(**_request(GetDetectorInputDict)) + client.get_detector(_request(GetDetectorInput)) + client.get_detector(_request(GetDetectorInputDict)) + client.get_filter(detector_id=_, filter_name=_) + client.get_filter(**_request(GetFilterInputDict)) + client.get_filter(_request(GetFilterInput)) + client.get_filter(_request(GetFilterInputDict)) + client.get_findings(detector_id=_, finding_ids=_) + client.get_findings(**_request(GetFindingsInputDict)) + client.get_findings(_request(GetFindingsInput)) + client.get_findings(_request(GetFindingsInputDict)) + client.get_findings_statistics(detector_id=_) + client.get_findings_statistics(**_request(GetFindingsStatisticsInputDict)) + client.get_findings_statistics(_request(GetFindingsStatisticsInput)) + client.get_findings_statistics(_request(GetFindingsStatisticsInputDict)) + client.get_investigation(detector_id=_, investigation_id=_) + client.get_investigation(**_request(GetInvestigationInputDict)) + client.get_investigation(_request(GetInvestigationInput)) + client.get_investigation(_request(GetInvestigationInputDict)) + client.get_invitations_count() + client.get_invitations_count(**_request(GetInvitationsCountInputDict)) + client.get_invitations_count(_request(GetInvitationsCountInput)) + client.get_invitations_count(_request(GetInvitationsCountInputDict)) + client.get_ip_set(detector_id=_, ip_set_id=_) + client.get_ip_set(**_request(GetIPSetInputDict)) + client.get_ip_set(_request(GetIPSetInput)) + client.get_ip_set(_request(GetIPSetInputDict)) + client.get_malware_protection_plan(malware_protection_plan_id=_) + client.get_malware_protection_plan(**_request(GetMalwareProtectionPlanInputDict)) + client.get_malware_protection_plan(_request(GetMalwareProtectionPlanInput)) + client.get_malware_protection_plan(_request(GetMalwareProtectionPlanInputDict)) + client.get_malware_scan(scan_id=_) + client.get_malware_scan(**_request(GetMalwareScanInputDict)) + client.get_malware_scan(_request(GetMalwareScanInput)) + client.get_malware_scan(_request(GetMalwareScanInputDict)) + client.get_malware_scan_settings(detector_id=_) + client.get_malware_scan_settings(**_request(GetMalwareScanSettingsInputDict)) + client.get_malware_scan_settings(_request(GetMalwareScanSettingsInput)) + client.get_malware_scan_settings(_request(GetMalwareScanSettingsInputDict)) + client.get_master_account(detector_id=_) + client.get_master_account(**_request(GetMasterAccountInputDict)) + client.get_master_account(_request(GetMasterAccountInput)) + client.get_master_account(_request(GetMasterAccountInputDict)) + client.get_member_detectors(detector_id=_, account_ids=_) + client.get_member_detectors(**_request(GetMemberDetectorsInputDict)) + client.get_member_detectors(_request(GetMemberDetectorsInput)) + client.get_member_detectors(_request(GetMemberDetectorsInputDict)) + client.get_members(detector_id=_, account_ids=_) + client.get_members(**_request(GetMembersInputDict)) + client.get_members(_request(GetMembersInput)) + client.get_members(_request(GetMembersInputDict)) + client.get_organization_statistics() + client.get_organization_statistics(**_request(GetOrganizationStatisticsInputDict)) + client.get_organization_statistics(_request(GetOrganizationStatisticsInput)) + client.get_organization_statistics(_request(GetOrganizationStatisticsInputDict)) + client.get_remaining_free_trial_days(detector_id=_, account_ids=_) + client.get_remaining_free_trial_days(**_request(GetRemainingFreeTrialDaysInputDict)) + client.get_remaining_free_trial_days(_request(GetRemainingFreeTrialDaysInput)) + client.get_remaining_free_trial_days(_request(GetRemainingFreeTrialDaysInputDict)) + client.get_threat_entity_set(detector_id=_, threat_entity_set_id=_) + client.get_threat_entity_set(**_request(GetThreatEntitySetInputDict)) + client.get_threat_entity_set(_request(GetThreatEntitySetInput)) + client.get_threat_entity_set(_request(GetThreatEntitySetInputDict)) + client.get_threat_intel_set(detector_id=_, threat_intel_set_id=_) + client.get_threat_intel_set(**_request(GetThreatIntelSetInputDict)) + client.get_threat_intel_set(_request(GetThreatIntelSetInput)) + client.get_threat_intel_set(_request(GetThreatIntelSetInputDict)) + client.get_trusted_entity_set(detector_id=_, trusted_entity_set_id=_) + client.get_trusted_entity_set(**_request(GetTrustedEntitySetInputDict)) + client.get_trusted_entity_set(_request(GetTrustedEntitySetInput)) + client.get_trusted_entity_set(_request(GetTrustedEntitySetInputDict)) + client.get_usage_statistics(detector_id=_, usage_statistic_type=_, usage_criteria=_) + client.get_usage_statistics(**_request(GetUsageStatisticsInputDict)) + client.get_usage_statistics(_request(GetUsageStatisticsInput)) + client.get_usage_statistics(_request(GetUsageStatisticsInputDict)) + client.invite_members(detector_id=_, account_ids=_) + client.invite_members(**_request(InviteMembersInputDict)) + client.invite_members(_request(InviteMembersInput)) + client.invite_members(_request(InviteMembersInputDict)) + client.list_coverage(detector_id=_) + client.list_coverage(**_request(ListCoverageInputDict)) + client.list_coverage(_request(ListCoverageInput)) + client.list_coverage(_request(ListCoverageInputDict)) + client.list_custom_detection_rule_associations() + client.list_custom_detection_rule_associations( + **_request(ListCustomDetectionRuleAssociationsInputDict) + ) + client.list_custom_detection_rule_associations( + _request(ListCustomDetectionRuleAssociationsInput) + ) + client.list_custom_detection_rule_associations( + _request(ListCustomDetectionRuleAssociationsInputDict) + ) + client.list_custom_detection_rule_org_configurations() + client.list_custom_detection_rule_org_configurations( + **_request(ListCustomDetectionRuleOrgConfigurationsInputDict) + ) + client.list_custom_detection_rule_org_configurations( + _request(ListCustomDetectionRuleOrgConfigurationsInput) + ) + client.list_custom_detection_rule_org_configurations( + _request(ListCustomDetectionRuleOrgConfigurationsInputDict) + ) + client.list_custom_detection_rules() + client.list_custom_detection_rules(**_request(ListCustomDetectionRulesInputDict)) + client.list_custom_detection_rules(_request(ListCustomDetectionRulesInput)) + client.list_custom_detection_rules(_request(ListCustomDetectionRulesInputDict)) + client.list_detectors() + client.list_detectors(**_request(ListDetectorsInputDict)) + client.list_detectors(_request(ListDetectorsInput)) + client.list_detectors(_request(ListDetectorsInputDict)) + client.list_filters(detector_id=_) + client.list_filters(**_request(ListFiltersInputDict)) + client.list_filters(_request(ListFiltersInput)) + client.list_filters(_request(ListFiltersInputDict)) + client.list_findings(detector_id=_) + client.list_findings(**_request(ListFindingsInputDict)) + client.list_findings(_request(ListFindingsInput)) + client.list_findings(_request(ListFindingsInputDict)) + client.list_investigations(detector_id=_) + client.list_investigations(**_request(ListInvestigationsInputDict)) + client.list_investigations(_request(ListInvestigationsInput)) + client.list_investigations(_request(ListInvestigationsInputDict)) + client.list_invitations() + client.list_invitations(**_request(ListInvitationsInputDict)) + client.list_invitations(_request(ListInvitationsInput)) + client.list_invitations(_request(ListInvitationsInputDict)) + client.list_ip_sets(detector_id=_) + client.list_ip_sets(**_request(ListIPSetsInputDict)) + client.list_ip_sets(_request(ListIPSetsInput)) + client.list_ip_sets(_request(ListIPSetsInputDict)) + client.list_malware_protection_plans() + client.list_malware_protection_plans( + **_request(ListMalwareProtectionPlansInputDict) + ) + client.list_malware_protection_plans(_request(ListMalwareProtectionPlansInput)) + client.list_malware_protection_plans(_request(ListMalwareProtectionPlansInputDict)) + client.list_malware_scans() + client.list_malware_scans(**_request(ListMalwareScansInputDict)) + client.list_malware_scans(_request(ListMalwareScansInput)) + client.list_malware_scans(_request(ListMalwareScansInputDict)) + client.list_members(detector_id=_) + client.list_members(**_request(ListMembersInputDict)) + client.list_members(_request(ListMembersInput)) + client.list_members(_request(ListMembersInputDict)) + client.list_organization_admin_accounts() + client.list_organization_admin_accounts( + **_request(ListOrganizationAdminAccountsInputDict) + ) + client.list_organization_admin_accounts( + _request(ListOrganizationAdminAccountsInput) + ) + client.list_organization_admin_accounts( + _request(ListOrganizationAdminAccountsInputDict) + ) + client.list_publishing_destinations(detector_id=_) + client.list_publishing_destinations(**_request(ListPublishingDestinationsInputDict)) + client.list_publishing_destinations(_request(ListPublishingDestinationsInput)) + client.list_publishing_destinations(_request(ListPublishingDestinationsInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.list_threat_entity_sets(detector_id=_) + client.list_threat_entity_sets(**_request(ListThreatEntitySetsInputDict)) + client.list_threat_entity_sets(_request(ListThreatEntitySetsInput)) + client.list_threat_entity_sets(_request(ListThreatEntitySetsInputDict)) + client.list_threat_intel_sets(detector_id=_) + client.list_threat_intel_sets(**_request(ListThreatIntelSetsInputDict)) + client.list_threat_intel_sets(_request(ListThreatIntelSetsInput)) + client.list_threat_intel_sets(_request(ListThreatIntelSetsInputDict)) + client.list_trusted_entity_sets(detector_id=_) + client.list_trusted_entity_sets(**_request(ListTrustedEntitySetsInputDict)) + client.list_trusted_entity_sets(_request(ListTrustedEntitySetsInput)) + client.list_trusted_entity_sets(_request(ListTrustedEntitySetsInputDict)) + client.send_object_malware_scan() + client.send_object_malware_scan(**_request(SendObjectMalwareScanInputDict)) + client.send_object_malware_scan(_request(SendObjectMalwareScanInput)) + client.send_object_malware_scan(_request(SendObjectMalwareScanInputDict)) + client.start_malware_scan(resource_arn=_) + client.start_malware_scan(**_request(StartMalwareScanInputDict)) + client.start_malware_scan(_request(StartMalwareScanInput)) + client.start_malware_scan(_request(StartMalwareScanInputDict)) + client.start_monitoring_members(detector_id=_, account_ids=_) + client.start_monitoring_members(**_request(StartMonitoringMembersInputDict)) + client.start_monitoring_members(_request(StartMonitoringMembersInput)) + client.start_monitoring_members(_request(StartMonitoringMembersInputDict)) + client.stop_monitoring_members(detector_id=_, account_ids=_) + client.stop_monitoring_members(**_request(StopMonitoringMembersInputDict)) + client.stop_monitoring_members(_request(StopMonitoringMembersInput)) + client.stop_monitoring_members(_request(StopMonitoringMembersInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.unarchive_findings(detector_id=_, finding_ids=_) + client.unarchive_findings(**_request(UnarchiveFindingsInputDict)) + client.unarchive_findings(_request(UnarchiveFindingsInput)) + client.unarchive_findings(_request(UnarchiveFindingsInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_custom_detection_rule_association(rule_id=_, association_id=_, mode=_) + client.update_custom_detection_rule_association( + **_request(UpdateCustomDetectionRuleAssociationInputDict) + ) + client.update_custom_detection_rule_association( + _request(UpdateCustomDetectionRuleAssociationInput) + ) + client.update_custom_detection_rule_association( + _request(UpdateCustomDetectionRuleAssociationInputDict) + ) + client.update_custom_detection_rule_org_configuration(rule_id=_, mode=_) + client.update_custom_detection_rule_org_configuration( + **_request(UpdateCustomDetectionRuleOrgConfigurationInputDict) + ) + client.update_custom_detection_rule_org_configuration( + _request(UpdateCustomDetectionRuleOrgConfigurationInput) + ) + client.update_custom_detection_rule_org_configuration( + _request(UpdateCustomDetectionRuleOrgConfigurationInputDict) + ) + client.update_detector(detector_id=_) + client.update_detector(**_request(UpdateDetectorInputDict)) + client.update_detector(_request(UpdateDetectorInput)) + client.update_detector(_request(UpdateDetectorInputDict)) + client.update_filter(detector_id=_, filter_name=_) + client.update_filter(**_request(UpdateFilterInputDict)) + client.update_filter(_request(UpdateFilterInput)) + client.update_filter(_request(UpdateFilterInputDict)) + client.update_findings_feedback(detector_id=_, finding_ids=_, feedback=_) + client.update_findings_feedback(**_request(UpdateFindingsFeedbackInputDict)) + client.update_findings_feedback(_request(UpdateFindingsFeedbackInput)) + client.update_findings_feedback(_request(UpdateFindingsFeedbackInputDict)) + client.update_ip_set(detector_id=_, ip_set_id=_) + client.update_ip_set(**_request(UpdateIPSetInputDict)) + client.update_ip_set(_request(UpdateIPSetInput)) + client.update_ip_set(_request(UpdateIPSetInputDict)) + client.update_malware_protection_plan(malware_protection_plan_id=_) + client.update_malware_protection_plan( + **_request(UpdateMalwareProtectionPlanInputDict) + ) + client.update_malware_protection_plan(_request(UpdateMalwareProtectionPlanInput)) + client.update_malware_protection_plan( + _request(UpdateMalwareProtectionPlanInputDict) + ) + client.update_malware_scan_settings(detector_id=_) + client.update_malware_scan_settings(**_request(UpdateMalwareScanSettingsInputDict)) + client.update_malware_scan_settings(_request(UpdateMalwareScanSettingsInput)) + client.update_malware_scan_settings(_request(UpdateMalwareScanSettingsInputDict)) + client.update_member_detectors(detector_id=_, account_ids=_) + client.update_member_detectors(**_request(UpdateMemberDetectorsInputDict)) + client.update_member_detectors(_request(UpdateMemberDetectorsInput)) + client.update_member_detectors(_request(UpdateMemberDetectorsInputDict)) + client.update_organization_configuration(detector_id=_) + client.update_organization_configuration( + **_request(UpdateOrganizationConfigurationInputDict) + ) + client.update_organization_configuration( + _request(UpdateOrganizationConfigurationInput) + ) + client.update_organization_configuration( + _request(UpdateOrganizationConfigurationInputDict) + ) + client.update_publishing_destination(detector_id=_, destination_id=_) + client.update_publishing_destination( + **_request(UpdatePublishingDestinationInputDict) + ) + client.update_publishing_destination(_request(UpdatePublishingDestinationInput)) + client.update_publishing_destination(_request(UpdatePublishingDestinationInputDict)) + client.update_threat_entity_set(detector_id=_, threat_entity_set_id=_) + client.update_threat_entity_set(**_request(UpdateThreatEntitySetInputDict)) + client.update_threat_entity_set(_request(UpdateThreatEntitySetInput)) + client.update_threat_entity_set(_request(UpdateThreatEntitySetInputDict)) + client.update_threat_intel_set(detector_id=_, threat_intel_set_id=_) + client.update_threat_intel_set(**_request(UpdateThreatIntelSetInputDict)) + client.update_threat_intel_set(_request(UpdateThreatIntelSetInput)) + client.update_threat_intel_set(_request(UpdateThreatIntelSetInputDict)) + client.update_trusted_entity_set(detector_id=_, trusted_entity_set_id=_) + client.update_trusted_entity_set(**_request(UpdateTrustedEntitySetInputDict)) + client.update_trusted_entity_set(_request(UpdateTrustedEntitySetInput)) + client.update_trusted_entity_set(_request(UpdateTrustedEntitySetInputDict)) diff --git a/clients/aws-sdk-iam/pyproject.toml b/clients/aws-sdk-iam/pyproject.toml index d040ef05e..a71f6c7e2 100644 --- a/clients/aws-sdk-iam/pyproject.toml +++ b/clients/aws-sdk-iam/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[xml]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[xml]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-iam/src/aws_sdk_iam/_private/models_0.pyi b/clients/aws-sdk-iam/src/aws_sdk_iam/_private/models_0.pyi index cb92ed015..3f29dd6aa 100644 --- a/clients/aws-sdk-iam/src/aws_sdk_iam/_private/models_0.pyi +++ b/clients/aws-sdk-iam/src/aws_sdk_iam/_private/models_0.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -17,10 +19,12 @@ from ..models import ( PolicyDetail, PolicyGroup, PolicyParameter, + PolicyParameterDict, PolicyRole, PolicyUser, PolicyVersion, ReplacementValueEntry, + ReplacementValueEntryDict, ResourceSpecificResult, Role, RoleDetail, @@ -34,6 +38,7 @@ from ..models import ( ServiceSpecificCredential, Statement, Tag, + TagDict, User, UserDetail, VirtualMFADevice, @@ -47,6 +52,12 @@ class AcceptDelegationRequestInput(_SerdeShape): delegation_request_id: str | None = ... """The unique identifier of the delegation request to accept.""" +class AcceptDelegationRequestInputDict(TypedDict, total=False): + """Dictionary form of `AcceptDelegationRequestInput`.""" + + delegation_request_id: Required[str] + """The unique identifier of the delegation request to accept.""" + @dataclass(kw_only=True) class AcceptDelegationRequestOutput(_SerdeShape): """Dataclass for AcceptDelegationRequestOutput structure.""" @@ -284,6 +295,33 @@ class AcquireRoleInput(_SerdeShape): that parameter. """ +class AcquireRoleInputDict(TypedDict, total=False): + """Dictionary form of `AcquireRoleInput`.""" + + template_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the role template to create the role + from. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + template_minor_version: int | None + """ + The minor version of the role template to use. If you do not specify a + minor version, the service uses the template's default minor version. + """ + replacement_values: ( + Mapping[str, ReplacementValueEntry | ReplacementValueEntryDict] | None + ) + """ + A map of values to substitute for the parameters that are defined in the + role template version. Each key is a parameter name from the template, + and each value is a structure that contains the replacement values for + that parameter. + """ + @dataclass(kw_only=True) class AcquireRoleOutput(_SerdeShape): """Dataclass for AcquireRoleOutput structure.""" @@ -316,6 +354,23 @@ class AddClientIDToOpenIDConnectProviderInput(_SerdeShape): provider resource. """ +class AddClientIDToOpenIDConnectProviderInputDict(TypedDict, total=False): + """Dictionary form of `AddClientIDToOpenIDConnectProviderInput`.""" + + open_id_connect_provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider + resource to add the client ID to. You can get a list of OIDC provider + ARNs by using the + [ListOpenIDConnectProviders](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListOpenIDConnectProviders.html) + operation. + """ + client_id: Required[str] + """ + The client ID (also known as audience) to add to the IAM OpenID Connect + provider resource. + """ + @dataclass(kw_only=True) class AddClientIDToOpenIDConnectProviderOutput(_SerdeShape): """Dataclass for AddClientIDToOpenIDConnectProviderOutput structure.""" @@ -351,6 +406,28 @@ class AddRoleToInstanceProfileInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class AddRoleToInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `AddRoleToInstanceProfileInput`.""" + + instance_profile_name: Required[str] + """ + The name of the instance profile to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + role_name: Required[str] + """ + The name of the role to add. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class AddRoleToInstanceProfileOutput(_SerdeShape): """Dataclass for AddRoleToInstanceProfileOutput structure.""" @@ -386,6 +463,28 @@ class AddUserToGroupInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class AddUserToGroupInputDict(TypedDict, total=False): + """Dictionary form of `AddUserToGroupInput`.""" + + group_name: Required[str] + """ + The name of the group to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + user_name: Required[str] + """ + The name of the user to add. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class AddUserToGroupOutput(_SerdeShape): """Dataclass for AddUserToGroupOutput structure.""" @@ -414,6 +513,12 @@ class AssociateDelegationRequestInput(_SerdeShape): delegation_request_id: str | None = ... """The unique identifier of the delegation request to associate.""" +class AssociateDelegationRequestInputDict(TypedDict, total=False): + """Dictionary form of `AssociateDelegationRequestInput`.""" + + delegation_request_id: Required[str] + """The unique identifier of the delegation request to associate.""" + @dataclass(kw_only=True) class AssociateDelegationRequestOutput(_SerdeShape): """Dataclass for AssociateDelegationRequestOutput structure.""" @@ -506,6 +611,27 @@ class AttachGroupPolicyInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class AttachGroupPolicyInputDict(TypedDict, total=False): + """Dictionary form of `AttachGroupPolicyInput`.""" + + group_name: Required[str] + """ + The name (friendly name, not ARN) of the group to attach the policy to. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy you want to attach. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class AttachGroupPolicyOutput(_SerdeShape): """Dataclass for AttachGroupPolicyOutput structure.""" @@ -545,6 +671,27 @@ class AttachRolePolicyInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class AttachRolePolicyInputDict(TypedDict, total=False): + """Dictionary form of `AttachRolePolicyInput`.""" + + role_name: Required[str] + """ + The name (friendly name, not ARN) of the role to attach the policy to. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy you want to attach. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class AttachRolePolicyOutput(_SerdeShape): """Dataclass for AttachRolePolicyOutput structure.""" @@ -580,6 +727,28 @@ class AttachUserPolicyInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class AttachUserPolicyInputDict(TypedDict, total=False): + """Dictionary form of `AttachUserPolicyInput`.""" + + user_name: Required[str] + """ + The name (friendly name, not ARN) of the IAM user to attach the policy + to. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy you want to attach. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class AttachUserPolicyOutput(_SerdeShape): """Dataclass for AttachUserPolicyOutput structure.""" @@ -620,10 +789,31 @@ class ChangePasswordInput(_SerdeShape): The [regex pattern](http://wikipedia.org/wiki/regex) that is used to validate this parameter is a string of characters. That string can - include almost any printable ASCII character from the space (`\u0020`) - through the end of the ASCII character range (`\u00ff`). You can also - include the tab (`\u0009`), line feed (`\u000a`), and carriage return - (`\u000d`) characters. Any of these characters are valid in a password. + include almost any printable ASCII character from the space (`\\u0020`) + through the end of the ASCII character range (`\\u00FF`). You can also + include the tab (`\\u0009`), line feed (`\\u000A`), and carriage return + (`\\u000D`) characters. Any of these characters are valid in a password. + However, many tools, such as the Amazon Web Services Management Console, + might restrict the ability to type certain characters because they have + special meaning within that tool. + """ + +class ChangePasswordInputDict(TypedDict, total=False): + """Dictionary form of `ChangePasswordInput`.""" + + old_password: Required[str] + """The IAM user's current password.""" + new_password: Required[str] + """ + The new password. The new password must conform to the Amazon Web + Services account's password policy, if one exists. + + The [regex pattern](http://wikipedia.org/wiki/regex) that is used to + validate this parameter is a string of characters. That string can + include almost any printable ASCII character from the space (`\\u0020`) + through the end of the ASCII character range (`\\u00FF`). You can also + include the tab (`\\u0009`), line feed (`\\u000A`), and carriage return + (`\\u000D`) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool. @@ -688,6 +878,26 @@ class ContextEntry(_SerdeShape): `ContextKeyValues` parameter. """ +class ContextEntryDict(TypedDict, total=False): + """Dictionary form of `ContextEntry`.""" + + context_key_name: str | None + """ + The full name of a condition context key, including the service prefix. + For example, `aws:SourceIp` or `s3:VersionId`. + """ + context_key_values: Sequence[str] | None + """ + The value (or values, if the condition context key supports multiple + values) to provide to the simulation when the key is referenced by a + `Condition` element in an input policy. + """ + context_key_type: str | None + """ + The data type of the value (or values) specified in the + `ContextKeyValues` parameter. + """ + class ContextKeyTypeEnum(UnknownEnumMixin, StrEnum): STRING = "string" STRING_LIST = "stringList" @@ -716,6 +926,19 @@ class CreateAccessKeyInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class CreateAccessKeyInputDict(TypedDict, total=False): + """Dictionary form of `CreateAccessKeyInput`.""" + + user_name: str | None + """ + The name of the IAM user that the new key will belong to. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class CreateAccessKeyOutput(_SerdeShape): """ @@ -748,6 +971,19 @@ class CreateAccountAliasInput(_SerdeShape): finish with a dash, nor can you have two dashes in a row. """ +class CreateAccountAliasInputDict(TypedDict, total=False): + """Dictionary form of `CreateAccountAliasInput`.""" + + account_alias: Required[str] + """ + The account alias to create. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of lowercase letters, digits, and dashes. You cannot start or + finish with a dash, nor can you have two dashes in a row. + """ + @dataclass(kw_only=True) class CreateAccountAliasOutput(_SerdeShape): """Dataclass for CreateAccountAliasOutput structure.""" @@ -841,6 +1077,86 @@ class CreateDelegationRequestInput(_SerdeShape): delegation permissions. """ +class CreateDelegationRequestInputDict(TypedDict, total=False): + """Dictionary form of `CreateDelegationRequestInput`.""" + + owner_account_id: str | None + """ + The Amazon Web Services account ID this delegation request is targeted + to. + + If the account ID is not known, this parameter can be omitted, resulting + in a request that can be associated by any account. If the account ID + passed, then the created delegation request can only be associated with + an identity of that target account. + """ + description: Required[str] + """A description of the delegation request.""" + permissions: Required[DelegationPermission | DelegationPermissionDict] + """The permissions to be delegated in this delegation request.""" + request_message: str | None + """ + A message explaining the reason for the delegation request. + + Requesters can utilize this field to add a custom note to the delegation + request. This field is different from the description such that this is + to be utilized for a custom messaging on a case-by-case basis. + + For example, if the current delegation request is in response to a + previous request being rejected, this explanation can be added to the + request via this field. + """ + requestor_workflow_id: Required[str] + """ + The workflow ID associated with the requestor. + + This is the unique identifier on the partner side that can be used to + track the progress of the request. + + IAM maintains a uniqueness check on this workflow id for each request - + if a workflow id for an existing request is passed, this API call will + fail. + """ + redirect_url: str | None + """ + The URL to redirect to after the delegation request is processed. + + This URL is used by the IAM console to show a link to the customer to + re-load the partner workflow. + """ + notification_channel: Required[str] + """ + The notification channel for updates about the delegation request. + + At this time,only SNS topic ARNs are accepted for notification. This + topic ARN must have a resource policy granting `SNS:Publish` permission + to the IAM service principal (`iam.amazonaws.com`). See [partner + onboarding + documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation-partner-guide.html) + for more details. + """ + session_duration: Required[int] + """ + The duration for which the delegated session should remain active, in + seconds. + + The active time window for the session starts when the customer calls + the + [SendDelegationToken](https://docs.aws.amazon.com/IAM/latest/APIReference/API_SendDelegationToken.html) + API. + """ + only_send_by_owner: bool | None + """ + Specifies whether the delegation token should only be sent by the owner. + + This flag prevents any party other than the owner from calling + `SendDelegationToken` API for this delegation request. This behavior + becomes useful when the delegation request owner needs to be present for + subsequent partner interactions, but the delegation request was sent to + a more privileged user for approval due to the owner lacking sufficient + delegation permissions. + """ + @dataclass(kw_only=True) class CreateDelegationRequestOutput(_SerdeShape): """Dataclass for CreateDelegationRequestOutput structure.""" @@ -883,8 +1199,8 @@ class CreateGroupInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ group_name: str | None = ... @@ -896,20 +1212,49 @@ class CreateGroupInput(_SerdeShape): create resources named both \"MyResource\" and \"myresource\". """ -@dataclass(kw_only=True) -class CreateGroupOutput(_SerdeShape): - """ - Contains the response to a successful - [CreateGroup](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateGroup.html) - request. - """ +class CreateGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateGroupInput`.""" - group: Group - """A structure containing details about the new group.""" - response_metadata: ResponseMetadata = ... + path: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order + The path to the group. For more information about paths, see [IAM + identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) + in the *IAM User Guide*. + + This parameter is optional. If it is not included, it defaults to a + slash (/). + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + group_name: Required[str] + """ + The name of the group to create. Do not include the path in this value. + + IAM user, group, role, and policy names must be unique within the + account. Names are not distinguished by case. For example, you cannot + create resources named both \"MyResource\" and \"myresource\". + """ + +@dataclass(kw_only=True) +class CreateGroupOutput(_SerdeShape): + """ + Contains the response to a successful + [CreateGroup](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateGroup.html) + request. + """ + + group: Group + """A structure containing details about the new group.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. """ @@ -941,8 +1286,8 @@ class CreateInstanceProfileInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ tags: list[Tag] | None = ... @@ -959,6 +1304,50 @@ class CreateInstanceProfileInput(_SerdeShape): created. """ +class CreateInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `CreateInstanceProfileInput`.""" + + instance_profile_name: Required[str] + """ + The name of the instance profile to create. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + path: str | None + """ + The path to the instance profile. For more information about paths, see + [IAM + Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) + in the *IAM User Guide*. + + This parameter is optional. If it is not included, it defaults to a + slash (/). + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags that you want to attach to the newly created IAM instance + profile. Each tag consists of a key name and an associated value. For + more information about tagging, see [Tagging IAM + resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + in the *IAM User Guide*. + + Note: + If any one of the tags is invalid or if you exceed the allowed maximum + number of tags, then the entire request fails and the resource is not + created. + """ + @dataclass(kw_only=True) class CreateInstanceProfileOutput(_SerdeShape): """ @@ -1007,10 +1396,10 @@ class CreateLoginProfileInput(_SerdeShape): The [regex pattern](http://wikipedia.org/wiki/regex) that is used to validate this parameter is a string of characters. That string can - include almost any printable ASCII character from the space (`\u0020`) - through the end of the ASCII character range (`\u00ff`). You can also - include the tab (`\u0009`), line feed (`\u000a`), and carriage return - (`\u000d`) characters. Any of these characters are valid in a password. + include almost any printable ASCII character from the space (`\\u0020`) + through the end of the ASCII character range (`\\u00FF`). You can also + include the tab (`\\u0009`), line feed (`\\u000A`), and carriage return + (`\\u000D`) characters. Any of these characters are valid in a password. However, many tools, such as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have special meaning within that tool. @@ -1021,6 +1410,49 @@ class CreateLoginProfileInput(_SerdeShape): sign-in. """ +class CreateLoginProfileInputDict(TypedDict, total=False): + """Dictionary form of `CreateLoginProfileInput`.""" + + user_name: str | None + """ + The name of the IAM user to create a password for. The user must already + exist. + + This parameter is optional. If no user name is included, it defaults to + the principal making the request. When you make this request with root + user credentials, you must use an + [AssumeRoot](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoot.html) + session to omit the user name. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + password: str | None + """ + The new password for the user. + + This parameter must be omitted when you make the request with an + [AssumeRoot](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoot.html) + session. It is required in all other cases. + + The [regex pattern](http://wikipedia.org/wiki/regex) that is used to + validate this parameter is a string of characters. That string can + include almost any printable ASCII character from the space (`\\u0020`) + through the end of the ASCII character range (`\\u00FF`). You can also + include the tab (`\\u0009`), line feed (`\\u000A`), and carriage return + (`\\u000D`) characters. Any of these characters are valid in a password. + However, many tools, such as the Amazon Web Services Management Console, + might restrict the ability to type certain characters because they have + special meaning within that tool. + """ + password_reset_required: bool | None + """ + Specifies whether the user is required to set a new password on next + sign-in. + """ + @dataclass(kw_only=True) class CreateLoginProfileOutput(_SerdeShape): """ @@ -1119,6 +1551,85 @@ class CreateOpenIDConnectProviderInput(_SerdeShape): created. """ +class CreateOpenIDConnectProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreateOpenIDConnectProviderInput`.""" + + url: Required[str] + """ + The URL of the identity provider. The URL must begin with `https://` and + should correspond to the `iss` claim in the provider's OpenID Connect + ID tokens. Per the OIDC standard, path components are allowed but query + parameters are not. Typically the URL consists of only a hostname, like + `https://server.example.org` or `https://example.com`. The URL should + not contain a port number. + + You cannot register the same provider multiple times in a single Amazon + Web Services account. If you try to submit a URL that has already been + used for an OpenID Connect provider in the Amazon Web Services account, + you will get an error. + """ + client_id_list: Sequence[str] | None + """ + Provides a list of client IDs, also known as audiences. When a mobile or + web app registers with an OpenID Connect provider, they establish a + value that identifies the application. This is the value that's sent as + the `client_id` parameter on OAuth requests. + + You can register multiple client IDs with the same provider. For + example, you might have multiple applications that use the same OIDC + provider. You cannot register more than 100 client IDs with a single IAM + OIDC provider. + + There is no defined format for a client ID. The + `CreateOpenIDConnectProviderRequest` operation accepts client IDs up to + 255 characters long. + """ + thumbprint_list: Sequence[str] | None + """ + A list of server certificate thumbprints for the OpenID Connect (OIDC) + identity provider's server certificates. Typically this list includes + only one entry. However, IAM lets you have up to five thumbprints for an + OIDC provider. This lets you maintain multiple thumbprints if the + identity provider is rotating certificates. + + This parameter is optional. If it is not included, IAM will retrieve and + use the top intermediate certificate authority (CA) thumbprint of the + OpenID Connect identity provider server certificate. + + The server certificate thumbprint is the hex-encoded SHA-1 hash value of + the X.509 certificate used by the domain where the OpenID Connect + provider makes its keys available. It is always a 40-character string. + + For example, assume that the OIDC provider is `server.example.com` and + the provider stores its keys at + https://keys.server.example.com/openid-connect. In that case, the + thumbprint string would be the hex-encoded SHA-1 hash value of the + certificate used by `https://keys.server.example.com.` + + For more information about obtaining the OIDC provider thumbprint, see + [Obtaining the thumbprint for an OpenID Connect + provider](https://docs.aws.amazon.com/IAM/latest/UserGuide/identity-providers-oidc-obtain-thumbprint.html) + in the *IAM user Guide*. + + Note: + If your OIDC provider's discovery endpoint and JWKS endpoint + (`jwks_uri`) use different certificates or hosts, include the + thumbprints for both endpoints in this list. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags that you want to attach to the new IAM OpenID Connect + (OIDC) provider. Each tag consists of a key name and an associated + value. For more information about tagging, see [Tagging IAM + resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + in the *IAM User Guide*. + + Note: + If any one of the tags is invalid or if you exceed the allowed maximum + number of tags, then the entire request fails and the resource is not + created. + """ + @dataclass(kw_only=True) class CreateOpenIDConnectProviderOutput(_SerdeShape): """ @@ -1176,8 +1687,8 @@ class CreatePolicyInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. Note: @@ -1208,13 +1719,13 @@ class CreatePolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ description: str | None = ... """ @@ -1240,6 +1751,96 @@ class CreatePolicyInput(_SerdeShape): created. """ +class CreatePolicyInputDict(TypedDict, total=False): + """Dictionary form of `CreatePolicyInput`.""" + + policy_name: Required[str] + """ + The friendly name of the policy. + + IAM user, group, role, and policy names must be unique within the + account. Names are not distinguished by case. For example, you cannot + create resources named both \"MyResource\" and \"myresource\". + """ + path: str | None + """ + The path for the policy. + + For more information about paths, see [IAM + identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) + in the *IAM User Guide*. + + This parameter is optional. If it is not included, it defaults to a + slash (/). + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + + Note: + You cannot use an asterisk (*) in the path name. + """ + policy_document: Required[str] + """ + The JSON policy document that you want to use as the content for the new + policy. + + You must provide policies in JSON format in IAM. However, for + CloudFormation templates formatted in YAML, you can provide the policy + in JSON or YAML format. CloudFormation always converts a YAML policy to + JSON format before submitting it to IAM. + + The maximum length of the policy document that you can pass in this + operation, including whitespace, is listed below. To view the maximum + character counts of a managed policy with no whitespaces, see [IAM and + STS character + quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). + + To learn more about JSON policy grammar, see [Grammar of the IAM JSON + policy + language](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_grammar.html) + in the *IAM User Guide*. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + description: str | None + """ + A friendly description of the policy. + + Typically used to store information about the permissions defined in the + policy. For example, \"Grants access to production DynamoDB tables.\" + + The policy description is immutable. After a value is assigned, it + cannot be changed. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags that you want to attach to the new IAM customer managed + policy. Each tag consists of a key name and an associated value. For + more information about tagging, see [Tagging IAM + resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + in the *IAM User Guide*. + + Note: + If any one of the tags is invalid or if you exceed the allowed maximum + number of tags, then the entire request fails and the resource is not + created. + """ + @dataclass(kw_only=True) class CreatePolicyOutput(_SerdeShape): """ @@ -1291,13 +1892,13 @@ class CreatePolicyVersionInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ set_as_default: bool = ... """ @@ -1313,6 +1914,60 @@ class CreatePolicyVersionInput(_SerdeShape): in the *IAM User Guide*. """ +class CreatePolicyVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreatePolicyVersionInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy to which you want to + add a new version. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + policy_document: Required[str] + """ + The JSON policy document that you want to use as the content for this + new version of the policy. + + You must provide policies in JSON format in IAM. However, for + CloudFormation templates formatted in YAML, you can provide the policy + in JSON or YAML format. CloudFormation always converts a YAML policy to + JSON format before submitting it to IAM. + + The maximum length of the policy document that you can pass in this + operation, including whitespace, is listed below. To view the maximum + character counts of a managed policy with no whitespaces, see [IAM and + STS character + quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + set_as_default: bool | None + """ + Specifies whether to set this version as the policy's default version. + + When this parameter is `true`, the new policy version becomes the + operative version. That is, it becomes the version that is in effect for + the IAM users, groups, and roles that the policy is attached to. + + For more information about managed policy versions, see [Versioning for + managed + policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) + in the *IAM User Guide*. + """ + @dataclass(kw_only=True) class CreatePolicyVersionOutput(_SerdeShape): """ @@ -1348,8 +2003,8 @@ class CreateRoleInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ role_name: str | None = ... @@ -1379,13 +2034,13 @@ class CreateRoleInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) Upon success, the response includes the same trust policy in JSON format. @@ -1442,6 +2097,116 @@ class CreateRoleInput(_SerdeShape): created. """ +class CreateRoleInputDict(TypedDict, total=False): + """Dictionary form of `CreateRoleInput`.""" + + path: str | None + """ + The path to the role. For more information about paths, see [IAM + Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) + in the *IAM User Guide*. + + This parameter is optional. If it is not included, it defaults to a + slash (/). + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + role_name: Required[str] + """ + The name of the role to create. + + IAM user, group, role, and policy names must be unique within the + account. Names are not distinguished by case. For example, you cannot + create resources named both \"MyResource\" and \"myresource\". + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + assume_role_policy_document: Required[str] + """ + The trust relationship policy document that grants an entity permission + to assume the role. + + In IAM, you must provide a JSON policy that has been converted to a + string. However, for CloudFormation templates formatted in YAML, you can + provide the policy in JSON or YAML format. CloudFormation always + converts a YAML policy to JSON format before submitting it to IAM. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + + Upon success, the response includes the same trust policy in JSON + format. + """ + description: str | None + """A description of the role.""" + max_session_duration: int | None + """ + The maximum session duration (in seconds) that you want to set for the + specified role. If you do not specify a value for this setting, the + default value of one hour is applied. This setting can have a value from + 1 hour to 12 hours. + + Anyone who assumes the role from the CLI or API can use the + `DurationSeconds` API parameter or the `duration-seconds` CLI parameter + to request a longer session. The `MaxSessionDuration` setting determines + the maximum duration that can be requested using the `DurationSeconds` + parameter. If users don't specify a value for the `DurationSeconds` + parameter, their security credentials are valid for one hour by default. + This applies when you use the `AssumeRole*` API operations or the + `assume-role*` CLI operations but does not apply when you use those + operations to create a console URL. For more information, see [Using IAM + roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html) + in the *IAM User Guide*. + """ + permissions_boundary: str | None + """ + The ARN of the managed policy that is used to set the permissions + boundary for the role. + + A permissions boundary policy defines the maximum permissions that + identity-based policies can grant to an entity, but does not grant + permissions. Permissions boundaries do not define the maximum + permissions that a resource-based policy can grant to an entity. To + learn more, see [Permissions boundaries for IAM + entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) + in the *IAM User Guide*. + + For more information about policy types, see [Policy + types](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policy-types) + in the *IAM User Guide*. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags that you want to attach to the new role. Each tag + consists of a key name and an associated value. For more information + about tagging, see [Tagging IAM + resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + in the *IAM User Guide*. + + Note: + If any one of the tags is invalid or if you exceed the allowed maximum + number of tags, then the entire request fails and the resource is not + created. + """ + @dataclass(kw_only=True) class CreateRoleOutput(_SerdeShape): """ @@ -1508,6 +2273,53 @@ class CreateSAMLProviderInput(_SerdeShape): algorithm to decrypt SAML assertions. """ +class CreateSAMLProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreateSAMLProviderInput`.""" + + saml_metadata_document: Required[str] + """ + An XML document generated by an identity provider (IdP) that supports + SAML 2.0. The document includes the issuer's name, expiration + information, and keys that can be used to validate the SAML + authentication response (assertions) that are received from the IdP. You + must generate the metadata document using the identity management + software that is used as your organization's IdP. + + For more information, see [About SAML 2.0-based + federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) + in the *IAM User Guide* + """ + name: Required[str] + """ + The name of the provider to create. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags that you want to attach to the new IAM SAML provider. + Each tag consists of a key name and an associated value. For more + information about tagging, see [Tagging IAM + resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + in the *IAM User Guide*. + + Note: + If any one of the tags is invalid or if you exceed the allowed maximum + number of tags, then the entire request fails and the resource is not + created. + """ + assertion_encryption_mode: str | None + """Specifies the encryption setting for the SAML provider.""" + add_private_key: str | None + """ + The private key generated from your external identity provider. The + private key must be a .pem file that uses AES-GCM or AES-CBC encryption + algorithm to decrypt SAML assertions. + """ + @dataclass(kw_only=True) class CreateSAMLProviderOutput(_SerdeShape): """ @@ -1567,6 +2379,38 @@ class CreateServiceLinkedRoleInput(_SerdeShape): again without the suffix. """ +class CreateServiceLinkedRoleInputDict(TypedDict, total=False): + """Dictionary form of `CreateServiceLinkedRoleInput`.""" + + aws_service_name: Required[str] + """ + The service principal for the Amazon Web Services service to which this + role is attached. You use a string similar to a URL but without the + http:// in front. For example: `elasticbeanstalk.amazonaws.com`. + + Service principals are unique and case-sensitive. To find the exact + service principal for your service-linked role, see [Amazon Web Services + services that work with + IAM](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html) + in the *IAM User Guide*. Look for the services that have **Yes** in the + **Service-Linked Role** column. Choose the **Yes** link to view the + service-linked role documentation for that service. + """ + description: str | None + """The description of the role.""" + custom_suffix: str | None + """ + A string that you provide, which is combined with the service-provided + prefix to form the complete role name. If you make multiple requests for + the same service, then you must supply a different `CustomSuffix` for + each request. Otherwise the request fails with a duplicate role name + error. For example, you could add `-1` or `-debug` to the suffix. + + Some services do not support the `CustomSuffix` parameter. If you + provide an optional suffix and the operation fails, try the operation + again without the suffix. + """ + @dataclass(kw_only=True) class CreateServiceLinkedRoleOutput(_SerdeShape): """Dataclass for CreateServiceLinkedRoleOutput structure.""" @@ -1589,7 +2433,41 @@ class CreateServiceLinkedRoleOutput(_SerdeShape): class CreateServiceSpecificCredentialInput(_SerdeShape): """Dataclass for CreateServiceSpecificCredentialInput structure.""" - user_name: str | None = ... + user_name: str | None = ... + """ + The name of the IAM user that is to be associated with the credentials. + The new service-specific credentials have the same permissions as the + associated user except that they can be used only to access the + specified service. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + service_name: str | None = ... + """ + The name of the Amazon Web Services service that is to be associated + with the credentials. The service you specify here is the only service + that can be accessed using these credentials. + """ + credential_age_days: int | None = ... + """ + The number of days until the service specific credential expires. This + field is only valid for services that support long-term API keys and + must be a positive integer. When not specified, the credential will not + expire. + + To see which services support long-term API keys, refer to [API keys for + Amazon Web Services + services](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_api_keys_for_aws_services.html) + in the *IAM User Guide*. + """ + +class CreateServiceSpecificCredentialInputDict(TypedDict, total=False): + """Dictionary form of `CreateServiceSpecificCredentialInput`.""" + + user_name: Required[str] """ The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the @@ -1601,13 +2479,13 @@ class CreateServiceSpecificCredentialInput(_SerdeShape): consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ - service_name: str | None = ... + service_name: Required[str] """ The name of the Amazon Web Services service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials. """ - credential_age_days: int | None = ... + credential_age_days: int | None """ The number of days until the service specific credential expires. This field is only valid for services that support long-term API keys and @@ -1660,8 +2538,8 @@ class CreateUserInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ user_name: str | None = ... @@ -1703,6 +2581,65 @@ class CreateUserInput(_SerdeShape): created. """ +class CreateUserInputDict(TypedDict, total=False): + """Dictionary form of `CreateUserInput`.""" + + path: str | None + """ + The path for the user name. For more information about paths, see [IAM + identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) + in the *IAM User Guide*. + + This parameter is optional. If it is not included, it defaults to a + slash (/). + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + user_name: Required[str] + """ + The name of the user to create. + + IAM user, group, role, and policy names must be unique within the + account. Names are not distinguished by case. For example, you cannot + create resources named both \"MyResource\" and \"myresource\". + """ + permissions_boundary: str | None + """ + The ARN of the managed policy that is used to set the permissions + boundary for the user. + + A permissions boundary policy defines the maximum permissions that + identity-based policies can grant to an entity, but does not grant + permissions. Permissions boundaries do not define the maximum + permissions that a resource-based policy can grant to an entity. To + learn more, see [Permissions boundaries for IAM + entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) + in the *IAM User Guide*. + + For more information about policy types, see [Policy + types](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policy-types) + in the *IAM User Guide*. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags that you want to attach to the new user. Each tag + consists of a key name and an associated value. For more information + about tagging, see [Tagging IAM + resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + in the *IAM User Guide*. + + Note: + If any one of the tags is invalid or if you exceed the allowed maximum + number of tags, then the entire request fails and the resource is not + created. + """ + @dataclass(kw_only=True) class CreateUserOutput(_SerdeShape): """ @@ -1739,8 +2676,8 @@ class CreateVirtualMFADeviceInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ virtual_mfa_device_name: str | None = ... @@ -1767,6 +2704,51 @@ class CreateVirtualMFADeviceInput(_SerdeShape): created. """ +class CreateVirtualMFADeviceInputDict(TypedDict, total=False): + """Dictionary form of `CreateVirtualMFADeviceInput`.""" + + path: str | None + """ + The path for the virtual MFA device. For more information about paths, + see [IAM + identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) + in the *IAM User Guide*. + + This parameter is optional. If it is not included, it defaults to a + slash (/). + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + virtual_mfa_device_name: Required[str] + """ + The name of the virtual MFA device, which must be unique. Use with path + to uniquely identify a virtual MFA device. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags that you want to attach to the new IAM virtual MFA + device. Each tag consists of a key name and an associated value. For + more information about tagging, see [Tagging IAM + resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + in the *IAM User Guide*. + + Note: + If any one of the tags is invalid or if you exceed the allowed maximum + number of tags, then the entire request fails and the resource is not + created. + """ + @dataclass(kw_only=True) class CreateVirtualMFADeviceOutput(_SerdeShape): """ @@ -1866,6 +2848,35 @@ class DeactivateMFADeviceInput(_SerdeShape): spaces. You can also include any of the following characters: =,.@:/- """ +class DeactivateMFADeviceInputDict(TypedDict, total=False): + """Dictionary form of `DeactivateMFADeviceInput`.""" + + user_name: str | None + """ + The name of the user whose MFA device you want to deactivate. + + This parameter is optional. If no user name is included, it defaults to + the principal making the request. When you make this request with root + user credentials, you must use an + [AssumeRoot](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoot.html) + session to omit the user name. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + serial_number: Required[str] + """ + The serial number that uniquely identifies the MFA device. For virtual + MFA devices, the serial number is the device ARN. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: =,.@:/- + """ + @dataclass(kw_only=True) class DeactivateMFADeviceOutput(_SerdeShape): """Dataclass for DeactivateMFADeviceOutput structure.""" @@ -1897,6 +2908,21 @@ class DelegationPermission(_SerdeShape): delegated permissions. """ +class DelegationPermissionDict(TypedDict, total=False): + """Dictionary form of `DelegationPermission`.""" + + policy_template_arn: str | None + """ + This ARN maps to a pre-registered policy content for this partner. See + the [partner onboarding documentation]() to understand how to create a + delegation template. + """ + parameters: Sequence[PolicyParameter | PolicyParameterDict] | None + """ + A list of policy parameters that define the scope and constraints of the + delegated permissions. + """ + @dataclass(kw_only=True) class DelegationRequest(_SerdeShape): """ @@ -2031,6 +3057,28 @@ class DeleteAccessKeyInput(_SerdeShape): can consist of any upper or lowercased letter or digit. """ +class DeleteAccessKeyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAccessKeyInput`.""" + + user_name: str | None + """ + The name of the user whose access key pair you want to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + access_key_id: Required[str] + """ + The access key ID for the access key ID and secret access key you want + to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + @dataclass(kw_only=True) class DeleteAccessKeyOutput(_SerdeShape): """Dataclass for DeleteAccessKeyOutput structure.""" @@ -2057,6 +3105,19 @@ class DeleteAccountAliasInput(_SerdeShape): finish with a dash, nor can you have two dashes in a row. """ +class DeleteAccountAliasInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAccountAliasInput`.""" + + account_alias: Required[str] + """ + The name of the account alias to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of lowercase letters, digits, and dashes. You cannot start or + finish with a dash, nor can you have two dashes in a row. + """ + @dataclass(kw_only=True) class DeleteAccountAliasOutput(_SerdeShape): """Dataclass for DeleteAccountAliasOutput structure.""" @@ -2073,6 +3134,9 @@ class DeleteAccountAliasOutput(_SerdeShape): class DeleteAccountPasswordPolicyInput(_SerdeShape): """Dataclass for DeleteAccountPasswordPolicyInput structure.""" +class DeleteAccountPasswordPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAccountPasswordPolicyInput`.""" + @dataclass(kw_only=True) class DeleteAccountPasswordPolicyOutput(_SerdeShape): """Dataclass for DeleteAccountPasswordPolicyOutput structure.""" @@ -2115,6 +3179,19 @@ class DeleteGroupInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGroupInput`.""" + + group_name: Required[str] + """ + The name of the IAM group to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteGroupOutput(_SerdeShape): """Dataclass for DeleteGroupOutput structure.""" @@ -2151,6 +3228,29 @@ class DeleteGroupPolicyInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteGroupPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGroupPolicyInput`.""" + + group_name: Required[str] + """ + The name (friendly name, not ARN) identifying the group that the policy + is embedded in. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_name: Required[str] + """ + The name identifying the policy document to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteGroupPolicyOutput(_SerdeShape): """Dataclass for DeleteGroupPolicyOutput structure.""" @@ -2177,6 +3277,19 @@ class DeleteInstanceProfileInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `DeleteInstanceProfileInput`.""" + + instance_profile_name: Required[str] + """ + The name of the instance profile to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteInstanceProfileOutput(_SerdeShape): """Dataclass for DeleteInstanceProfileOutput structure.""" @@ -2209,6 +3322,25 @@ class DeleteLoginProfileInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteLoginProfileInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLoginProfileInput`.""" + + user_name: str | None + """ + The name of the user whose password you want to delete. + + This parameter is optional. If no user name is included, it defaults to + the principal making the request. When you make this request with root + user credentials, you must use an + [AssumeRoot](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoot.html) + session to omit the user name. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteLoginProfileOutput(_SerdeShape): """Dataclass for DeleteLoginProfileOutput structure.""" @@ -2234,6 +3366,18 @@ class DeleteOpenIDConnectProviderInput(_SerdeShape): operation. """ +class DeleteOpenIDConnectProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeleteOpenIDConnectProviderInput`.""" + + open_id_connect_provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM OpenID Connect provider + resource object to delete. You can get a list of OpenID Connect provider + resource ARNs by using the + [ListOpenIDConnectProviders](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListOpenIDConnectProviders.html) + operation. + """ + @dataclass(kw_only=True) class DeleteOpenIDConnectProviderOutput(_SerdeShape): """Dataclass for DeleteOpenIDConnectProviderOutput structure.""" @@ -2259,6 +3403,18 @@ class DeletePolicyInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class DeletePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeletePolicyInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy you want to delete. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class DeletePolicyOutput(_SerdeShape): """Dataclass for DeletePolicyOutput structure.""" @@ -2284,7 +3440,35 @@ class DeletePolicyVersionInput(_SerdeShape): (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *Amazon Web Services General Reference*. """ - version_id: str | None = ... + version_id: str | None = ... + """ + The policy version to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + consists of the lowercase letter 'v' followed by one or two digits, + and optionally followed by a period '.' and a string of letters and + digits. + + For more information about managed policy versions, see [Versioning for + managed + policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) + in the *IAM User Guide*. + """ + +class DeletePolicyVersionInputDict(TypedDict, total=False): + """Dictionary form of `DeletePolicyVersionInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy from which you want to + delete a version. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + version_id: Required[str] """ The policy version to delete. @@ -2326,6 +3510,19 @@ class DeleteRoleInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteRoleInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRoleInput`.""" + + role_name: Required[str] + """ + The name of the role to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteRoleOutput(_SerdeShape): """Dataclass for DeleteRoleOutput structure.""" @@ -2348,6 +3545,15 @@ class DeleteRolePermissionsBoundaryInput(_SerdeShape): remove the permissions boundary. """ +class DeleteRolePermissionsBoundaryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRolePermissionsBoundaryInput`.""" + + role_name: Required[str] + """ + The name (friendly name, not ARN) of the IAM role from which you want to + remove the permissions boundary. + """ + @dataclass(kw_only=True) class DeleteRolePermissionsBoundaryOutput(_SerdeShape): """Dataclass for DeleteRolePermissionsBoundaryOutput structure.""" @@ -2384,6 +3590,29 @@ class DeleteRolePolicyInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteRolePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRolePolicyInput`.""" + + role_name: Required[str] + """ + The name (friendly name, not ARN) identifying the role that the policy + is embedded in. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_name: Required[str] + """ + The name of the inline policy to delete from the specified IAM role. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteRolePolicyOutput(_SerdeShape): """Dataclass for DeleteRolePolicyOutput structure.""" @@ -2403,6 +3632,12 @@ class DeleteSAMLProviderInput(_SerdeShape): saml_provider_arn: str | None = ... """The Amazon Resource Name (ARN) of the SAML provider to delete.""" +class DeleteSAMLProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSAMLProviderInput`.""" + + saml_provider_arn: Required[str] + """The Amazon Resource Name (ARN) of the SAML provider to delete.""" + @dataclass(kw_only=True) class DeleteSAMLProviderOutput(_SerdeShape): """Dataclass for DeleteSAMLProviderOutput structure.""" @@ -2429,6 +3664,19 @@ class DeleteServerCertificateInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteServerCertificateInputDict(TypedDict, total=False): + """Dictionary form of `DeleteServerCertificateInput`.""" + + server_certificate_name: Required[str] + """ + The name of the server certificate you want to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteServerCertificateOutput(_SerdeShape): """Dataclass for DeleteServerCertificateOutput structure.""" @@ -2448,6 +3696,12 @@ class DeleteServiceLinkedRoleInput(_SerdeShape): role_name: str | None = ... """The name of the service-linked role to be deleted.""" +class DeleteServiceLinkedRoleInputDict(TypedDict, total=False): + """Dictionary form of `DeleteServiceLinkedRoleInput`.""" + + role_name: Required[str] + """The name of the service-linked role to be deleted.""" + @dataclass(kw_only=True) class DeleteServiceLinkedRoleOutput(_SerdeShape): """Dataclass for DeleteServiceLinkedRoleOutput structure.""" @@ -2492,6 +3746,31 @@ class DeleteServiceSpecificCredentialInput(_SerdeShape): can consist of any upper or lowercased letter or digit. """ +class DeleteServiceSpecificCredentialInputDict(TypedDict, total=False): + """Dictionary form of `DeleteServiceSpecificCredentialInput`.""" + + user_name: str | None + """ + The name of the IAM user associated with the service-specific + credential. If this value is not specified, then the operation assumes + the user whose credentials are used to call the operation. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + service_specific_credential_id: Required[str] + """ + The unique identifier of the service-specific credential. You can get + this value by calling + [ListServiceSpecificCredentials](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListServiceSpecificCredentials.html). + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + @dataclass(kw_only=True) class DeleteServiceSpecificCredentialOutput(_SerdeShape): """Dataclass for DeleteServiceSpecificCredentialOutput structure.""" @@ -2526,6 +3805,27 @@ class DeleteSigningCertificateInput(_SerdeShape): characters that can be upper- or lower-cased letters or digits. """ +class DeleteSigningCertificateInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSigningCertificateInput`.""" + + user_name: str | None + """ + The name of the user the signing certificate belongs to. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + certificate_id: Required[str] + """ + The ID of the signing certificate to delete. + + The format of this parameter, as described by its + [regex](http://wikipedia.org/wiki/regex) pattern, is a string of + characters that can be upper- or lower-cased letters or digits. + """ + @dataclass(kw_only=True) class DeleteSigningCertificateOutput(_SerdeShape): """Dataclass for DeleteSigningCertificateOutput structure.""" @@ -2560,6 +3860,27 @@ class DeleteSSHPublicKeyInput(_SerdeShape): can consist of any upper or lowercased letter or digit. """ +class DeleteSSHPublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSSHPublicKeyInput`.""" + + user_name: Required[str] + """ + The name of the IAM user associated with the SSH public key. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + ssh_public_key_id: Required[str] + """ + The unique identifier for the SSH public key. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + @dataclass(kw_only=True) class DeleteSSHPublicKeyOutput(_SerdeShape): """Dataclass for DeleteSSHPublicKeyOutput structure.""" @@ -2586,6 +3907,19 @@ class DeleteUserInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteUserInputDict(TypedDict, total=False): + """Dictionary form of `DeleteUserInput`.""" + + user_name: Required[str] + """ + The name of the user to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteUserOutput(_SerdeShape): """Dataclass for DeleteUserOutput structure.""" @@ -2608,6 +3942,15 @@ class DeleteUserPermissionsBoundaryInput(_SerdeShape): remove the permissions boundary. """ +class DeleteUserPermissionsBoundaryInputDict(TypedDict, total=False): + """Dictionary form of `DeleteUserPermissionsBoundaryInput`.""" + + user_name: Required[str] + """ + The name (friendly name, not ARN) of the IAM user from which you want to + remove the permissions boundary. + """ + @dataclass(kw_only=True) class DeleteUserPermissionsBoundaryOutput(_SerdeShape): """Dataclass for DeleteUserPermissionsBoundaryOutput structure.""" @@ -2644,6 +3987,29 @@ class DeleteUserPolicyInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class DeleteUserPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteUserPolicyInput`.""" + + user_name: Required[str] + """ + The name (friendly name, not ARN) identifying the user that the policy + is embedded in. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_name: Required[str] + """ + The name identifying the policy document to delete. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class DeleteUserPolicyOutput(_SerdeShape): """Dataclass for DeleteUserPolicyOutput structure.""" @@ -2671,6 +4037,20 @@ class DeleteVirtualMFADeviceInput(_SerdeShape): spaces. You can also include any of the following characters: =,.@:/- """ +class DeleteVirtualMFADeviceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteVirtualMFADeviceInput`.""" + + serial_number: Required[str] + """ + The serial number that uniquely identifies the MFA device. For virtual + MFA devices, the serial number is the same as the ARN. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: =,.@:/- + """ + @dataclass(kw_only=True) class DeleteVirtualMFADeviceOutput(_SerdeShape): """Dataclass for DeleteVirtualMFADeviceOutput structure.""" @@ -2738,6 +4118,28 @@ class DetachGroupPolicyInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class DetachGroupPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DetachGroupPolicyInput`.""" + + group_name: Required[str] + """ + The name (friendly name, not ARN) of the IAM group to detach the policy + from. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy you want to detach. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class DetachGroupPolicyOutput(_SerdeShape): """Dataclass for DetachGroupPolicyOutput structure.""" @@ -2773,6 +4175,28 @@ class DetachRolePolicyInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class DetachRolePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DetachRolePolicyInput`.""" + + role_name: Required[str] + """ + The name (friendly name, not ARN) of the IAM role to detach the policy + from. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy you want to detach. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class DetachRolePolicyOutput(_SerdeShape): """Dataclass for DetachRolePolicyOutput structure.""" @@ -2808,6 +4232,28 @@ class DetachUserPolicyInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class DetachUserPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DetachUserPolicyInput`.""" + + user_name: Required[str] + """ + The name (friendly name, not ARN) of the IAM user to detach the policy + from. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy you want to detach. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class DetachUserPolicyOutput(_SerdeShape): """Dataclass for DetachUserPolicyOutput structure.""" @@ -2827,6 +4273,9 @@ class DisableOrganizationsRootCredentialsManagementInput(_SerdeShape): structure. """ +class DisableOrganizationsRootCredentialsManagementInputDict(TypedDict, total=False): + """Dictionary form of `DisableOrganizationsRootCredentialsManagementInput`.""" + @dataclass(kw_only=True) class DisableOrganizationsRootCredentialsManagementOutput(_SerdeShape): """ @@ -2853,6 +4302,9 @@ class DisableOrganizationsRootCredentialsManagementOutput(_SerdeShape): class DisableOrganizationsRootSessionsInput(_SerdeShape): """Dataclass for DisableOrganizationsRootSessionsInput structure.""" +class DisableOrganizationsRootSessionsInputDict(TypedDict, total=False): + """Dictionary form of `DisableOrganizationsRootSessionsInput`.""" + @dataclass(kw_only=True) class DisableOrganizationsRootSessionsOutput(_SerdeShape): """Dataclass for DisableOrganizationsRootSessionsOutput structure.""" @@ -2876,6 +4328,9 @@ class DisableOrganizationsRootSessionsOutput(_SerdeShape): class DisableOutboundWebIdentityFederationInput(_SerdeShape): """Dataclass for DisableOutboundWebIdentityFederationInput structure.""" +class DisableOutboundWebIdentityFederationInputDict(TypedDict, total=False): + """Dictionary form of `DisableOutboundWebIdentityFederationInput`.""" + @dataclass(kw_only=True) class DisableOutboundWebIdentityFederationOutput(_SerdeShape): """Dataclass for DisableOutboundWebIdentityFederationOutput structure.""" @@ -2918,11 +4373,64 @@ class DuplicateSSHPublicKeyException(ServiceError, _SerdeShape): optional. """ -@dataclass(kw_only=True) -class EnableMFADeviceInput(_SerdeShape): - """Dataclass for EnableMFADeviceInput structure.""" +@dataclass(kw_only=True) +class EnableMFADeviceInput(_SerdeShape): + """Dataclass for EnableMFADeviceInput structure.""" + + user_name: str | None = ... + """ + The name of the IAM user for whom you want to enable the MFA device. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + serial_number: str | None = ... + """ + The serial number that uniquely identifies the MFA device. For virtual + MFA devices, the serial number is the device ARN. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: =,.@:/- + """ + authentication_code1: str | None = ... + """ + An authentication code emitted by the device. + + The format for this parameter is a string of six digits. + + Warning: + Submit your request immediately after generating the authentication + codes. If you generate the codes and then wait too long to submit the + request, the MFA device successfully associates with the user but the + MFA device becomes out of sync. This happens because time-based one-time + passwords (TOTP) expire after a short period of time. If this happens, + you can [resync the + device](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_sync.html). + """ + authentication_code2: str | None = ... + """ + A subsequent authentication code emitted by the device. + + The format for this parameter is a string of six digits. + + Warning: + Submit your request immediately after generating the authentication + codes. If you generate the codes and then wait too long to submit the + request, the MFA device successfully associates with the user but the + MFA device becomes out of sync. This happens because time-based one-time + passwords (TOTP) expire after a short period of time. If this happens, + you can [resync the + device](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_sync.html). + """ + +class EnableMFADeviceInputDict(TypedDict, total=False): + """Dictionary form of `EnableMFADeviceInput`.""" - user_name: str | None = ... + user_name: Required[str] """ The name of the IAM user for whom you want to enable the MFA device. @@ -2931,7 +4439,7 @@ class EnableMFADeviceInput(_SerdeShape): consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ - serial_number: str | None = ... + serial_number: Required[str] """ The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN. @@ -2941,7 +4449,7 @@ class EnableMFADeviceInput(_SerdeShape): consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/- """ - authentication_code1: str | None = ... + authentication_code1: Required[str] """ An authentication code emitted by the device. @@ -2956,7 +4464,7 @@ class EnableMFADeviceInput(_SerdeShape): you can [resync the device](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_sync.html). """ - authentication_code2: str | None = ... + authentication_code2: Required[str] """ A subsequent authentication code emitted by the device. @@ -2991,6 +4499,9 @@ class EnableOrganizationsRootCredentialsManagementInput(_SerdeShape): structure. """ +class EnableOrganizationsRootCredentialsManagementInputDict(TypedDict, total=False): + """Dictionary form of `EnableOrganizationsRootCredentialsManagementInput`.""" + @dataclass(kw_only=True) class EnableOrganizationsRootCredentialsManagementOutput(_SerdeShape): """ @@ -3014,6 +4525,9 @@ class EnableOrganizationsRootCredentialsManagementOutput(_SerdeShape): class EnableOrganizationsRootSessionsInput(_SerdeShape): """Dataclass for EnableOrganizationsRootSessionsInput structure.""" +class EnableOrganizationsRootSessionsInputDict(TypedDict, total=False): + """Dictionary form of `EnableOrganizationsRootSessionsInput`.""" + @dataclass(kw_only=True) class EnableOrganizationsRootSessionsOutput(_SerdeShape): """Dataclass for EnableOrganizationsRootSessionsOutput structure.""" @@ -3034,6 +4548,9 @@ class EnableOrganizationsRootSessionsOutput(_SerdeShape): class EnableOutboundWebIdentityFederationInput(_SerdeShape): """Dataclass for EnableOutboundWebIdentityFederationInput structure.""" +class EnableOutboundWebIdentityFederationInputDict(TypedDict, total=False): + """Dictionary form of `EnableOutboundWebIdentityFederationInput`.""" + @dataclass(kw_only=True) class EnableOutboundWebIdentityFederationOutput(_SerdeShape): """Dataclass for EnableOutboundWebIdentityFederationOutput structure.""" @@ -3346,6 +4863,9 @@ class FeatureType(UnknownEnumMixin, StrEnum): class GenerateCredentialReportInput(_SerdeShape): """Dataclass for GenerateCredentialReportInput structure.""" +class GenerateCredentialReportInputDict(TypedDict, total=False): + """Dictionary form of `GenerateCredentialReportInput`.""" + @dataclass(kw_only=True) class GenerateCredentialReportOutput(_SerdeShape): """ @@ -3390,6 +4910,29 @@ class GenerateOrganizationsAccessReportInput(_SerdeShape): service. """ +class GenerateOrganizationsAccessReportInputDict(TypedDict, total=False): + """Dictionary form of `GenerateOrganizationsAccessReportInput`.""" + + entity_path: Required[str] + """ + The path of the Organizations entity (root, OU, or account). You can + build an entity path using the known structure of your organization. For + example, assume that your account ID is `123456789012` and its parent OU + ID is `ou-rge0-awsabcde`. The organization root ID is + `r-f6g7h8i9j0example` and your organization ID is `o-a1b2c3d4e5`. Your + entity path is + `o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-rge0-awsabcde/123456789012`. + """ + organizations_policy_id: str | None + """ + The identifier of the Organizations service control policy (SCP). This + parameter is optional. + + This ID is used to generate information about when an account principal + that is limited by the SCP attempted to access an Amazon Web Services + service. + """ + @dataclass(kw_only=True) class GenerateOrganizationsAccessReportOutput(_SerdeShape): """Dataclass for GenerateOrganizationsAccessReportOutput structure.""" @@ -3428,6 +4971,25 @@ class GenerateServiceLastAccessedDetailsInput(_SerdeShape): this optional parameter, the operation generates service data. """ +class GenerateServiceLastAccessedDetailsInputDict(TypedDict, total=False): + """Dictionary form of `GenerateServiceLastAccessedDetailsInput`.""" + + arn: Required[str] + """ + The ARN of the IAM resource (user, group, role, or managed policy) used + to generate information about when the resource was last used in an + attempt to access an Amazon Web Services service. + """ + granularity: str | None + """ + The level of detail that you want to generate. You can specify whether + you want to generate information about the last attempt to access + services or actions. If you specify service-level granularity, this + operation generates only service data. If you specify action-level + granularity, it generates service and action data. If you don't include + this optional parameter, the operation generates service data. + """ + @dataclass(kw_only=True) class GenerateServiceLastAccessedDetailsOutput(_SerdeShape): """Dataclass for GenerateServiceLastAccessedDetailsOutput structure.""" @@ -3463,6 +5025,18 @@ class GetAccessKeyLastUsedInput(_SerdeShape): can consist of any upper or lowercased letter or digit. """ +class GetAccessKeyLastUsedInputDict(TypedDict, total=False): + """Dictionary form of `GetAccessKeyLastUsedInput`.""" + + access_key_id: Required[str] + """ + The identifier of an access key. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + @dataclass(kw_only=True) class GetAccessKeyLastUsedOutput(_SerdeShape): """ @@ -3521,6 +5095,39 @@ class GetAccountAuthorizationDetailsInput(_SerdeShape): indicate where the next call should start. """ +class GetAccountAuthorizationDetailsInputDict(TypedDict, total=False): + """Dictionary form of `GetAccountAuthorizationDetailsInput`.""" + + filter: Sequence[str] | None + """ + A list of entity types used to filter the results. Only the entities + that match the types you specify are included in the output. Use the + value `LocalManagedPolicy` to include customer managed policies. + + The format for this parameter is a comma-separated (if more than one) + list of strings. Each string value in the list must be one of the valid + values listed below. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + @dataclass(kw_only=True) class GetAccountAuthorizationDetailsOutput(_SerdeShape): """ @@ -3565,6 +5172,9 @@ class GetAccountAuthorizationDetailsOutput(_SerdeShape): class GetAccountPasswordPolicyInput(_SerdeShape): """Dataclass for GetAccountPasswordPolicyInput structure.""" +class GetAccountPasswordPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetAccountPasswordPolicyInput`.""" + @dataclass(kw_only=True) class GetAccountPasswordPolicyOutput(_SerdeShape): """ @@ -3587,6 +5197,9 @@ class GetAccountPasswordPolicyOutput(_SerdeShape): class GetAccountPropertiesInput(_SerdeShape): """Dataclass for GetAccountPropertiesInput structure.""" +class GetAccountPropertiesInputDict(TypedDict, total=False): + """Dictionary form of `GetAccountPropertiesInput`.""" + @dataclass(kw_only=True) class GetAccountPropertiesOutput(_SerdeShape): """Dataclass for GetAccountPropertiesOutput structure.""" @@ -3608,6 +5221,9 @@ class GetAccountPropertiesOutput(_SerdeShape): class GetAccountSummaryInput(_SerdeShape): """Dataclass for GetAccountSummaryInput structure.""" +class GetAccountSummaryInputDict(TypedDict, total=False): + """Dictionary form of `GetAccountSummaryInput`.""" + @dataclass(kw_only=True) class GetAccountSummaryOutput(_SerdeShape): """ @@ -3643,13 +5259,35 @@ class GetContextKeysForCustomPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + +class GetContextKeysForCustomPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetContextKeysForCustomPolicyInput`.""" + + policy_input_list: Required[Sequence[str]] + """ + A list of policies for which you want the list of context keys + referenced in those policies. Each document is specified as a string + containing the complete, valid JSON text of an IAM policy. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ @dataclass(kw_only=True) @@ -3700,13 +5338,49 @@ class GetContextKeysForPrincipalPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + +class GetContextKeysForPrincipalPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetContextKeysForPrincipalPolicyInput`.""" + + policy_source_arn: Required[str] + """ + The ARN of a user, group, or role whose policies contain the context + keys that you want listed. If you specify a user, the list includes + context keys that are found in all policies that are attached to the + user. The list also includes all groups that the user is a member of. If + you pick a group or a role, then it includes only those context keys + that are found in policies attached to that entity. Note that all + parameters are shown in unencoded form here for clarity, but must be URL + encoded to be included as a part of a real HTML request. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + policy_input_list: Sequence[str] | None + """ + An optional list of additional policies for which you want the list of + context keys that are referenced. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ @dataclass(kw_only=True) @@ -3733,6 +5407,9 @@ class GetContextKeysForPrincipalPolicyOutput(_SerdeShape): class GetCredentialReportInput(_SerdeShape): """Dataclass for GetCredentialReportInput structure.""" +class GetCredentialReportInputDict(TypedDict, total=False): + """Dictionary form of `GetCredentialReportInput`.""" + @dataclass(kw_only=True) class GetCredentialReportOutput(_SerdeShape): """ @@ -3778,6 +5455,25 @@ class GetDelegationRequestInput(_SerdeShape): `PermissionCheckResult` response attributes for further details. """ +class GetDelegationRequestInputDict(TypedDict, total=False): + """Dictionary form of `GetDelegationRequestInput`.""" + + delegation_request_id: Required[str] + """The unique identifier of the delegation request to retrieve.""" + delegation_permission_check: bool | None + """ + Specifies whether to perform a permission check for the delegation + request. + + If set to true, the `GetDelegationRequest` API call will start a + permission check process. This process calculates whether the caller has + sufficient permissions to cover the asks from this delegation request. + + Setting this parameter to true does not guarantee an answer in the + response. See the `PermissionCheckStatus` and the + `PermissionCheckResult` response attributes for further details. + """ + @dataclass(kw_only=True) class GetDelegationRequestOutput(_SerdeShape): """Dataclass for GetDelegationRequestOutput structure.""" @@ -3857,6 +5553,38 @@ class GetGroupInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class GetGroupInputDict(TypedDict, total=False): + """Dictionary form of `GetGroupInput`.""" + + group_name: Required[str] + """ + The name of the group. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class GetGroupOutput(_SerdeShape): """ @@ -3916,6 +5644,28 @@ class GetGroupPolicyInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class GetGroupPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetGroupPolicyInput`.""" + + group_name: Required[str] + """ + The name of the group the policy is associated with. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_name: Required[str] + """ + The name of the policy document to get. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class GetGroupPolicyOutput(_SerdeShape): """ @@ -3963,6 +5713,23 @@ class GetHumanReadableSummaryInput(_SerdeShape): . """ +class GetHumanReadableSummaryInputDict(TypedDict, total=False): + """Dictionary form of `GetHumanReadableSummaryInput`.""" + + entity_arn: Required[str] + """ + Arn of the entity to be summarized. At this time, the only supported + entity type is `delegation-request` + """ + locale: str | None + """ + A string representing the locale to use for the summary generation. The + supported locale strings are based on the [Supported languages of the + Amazon Web Services Management + Console](/awsconsolehelpdocs/latest/gsg/change-language.html#supported-languages) + . + """ + @dataclass(kw_only=True) class GetHumanReadableSummaryOutput(_SerdeShape): """Dataclass for GetHumanReadableSummaryOutput structure.""" @@ -4004,6 +5771,19 @@ class GetInstanceProfileInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class GetInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `GetInstanceProfileInput`.""" + + instance_profile_name: Required[str] + """ + The name of the instance profile to get information about. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class GetInstanceProfileOutput(_SerdeShape): """ @@ -4042,6 +5822,25 @@ class GetLoginProfileInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class GetLoginProfileInputDict(TypedDict, total=False): + """Dictionary form of `GetLoginProfileInput`.""" + + user_name: str | None + """ + The name of the user whose login profile you want to retrieve. + + This parameter is optional. If no user name is included, it defaults to + the principal making the request. When you make this request with root + user credentials, you must use an + [AssumeRoot](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoot.html) + session to omit the user name. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class GetLoginProfileOutput(_SerdeShape): """ @@ -4076,6 +5875,18 @@ class GetMFADeviceInput(_SerdeShape): user_name: str | None = ... """The friendly name identifying the user.""" +class GetMFADeviceInputDict(TypedDict, total=False): + """Dictionary form of `GetMFADeviceInput`.""" + + serial_number: Required[str] + """ + Serial number that uniquely identifies the MFA device. For this API, we + only accept FIDO security key + [ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html). + """ + user_name: str | None + """The friendly name identifying the user.""" + @dataclass(kw_only=True) class GetMFADeviceOutput(_SerdeShape): """Dataclass for GetMFADeviceOutput structure.""" @@ -4105,11 +5916,27 @@ class GetMFADeviceOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetOpenIDConnectProviderInput(_SerdeShape): - """Dataclass for GetOpenIDConnectProviderInput structure.""" +@dataclass(kw_only=True) +class GetOpenIDConnectProviderInput(_SerdeShape): + """Dataclass for GetOpenIDConnectProviderInput structure.""" + + open_id_connect_provider_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the OIDC provider resource object in + IAM to get information for. You can get a list of OIDC provider resource + ARNs by using the + [ListOpenIDConnectProviders](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListOpenIDConnectProviders.html) + operation. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + +class GetOpenIDConnectProviderInputDict(TypedDict, total=False): + """Dictionary form of `GetOpenIDConnectProviderInput`.""" - open_id_connect_provider_arn: str | None = ... + open_id_connect_provider_arn: Required[str] """ The Amazon Resource Name (ARN) of the OIDC provider resource object in IAM to get information for. You can get a list of OIDC provider resource @@ -4206,6 +6033,41 @@ class GetOrganizationsAccessReportInput(_SerdeShape): time key, the results are sorted numerically by the date and time. """ +class GetOrganizationsAccessReportInputDict(TypedDict, total=False): + """Dictionary form of `GetOrganizationsAccessReportInput`.""" + + job_id: Required[str] + """ + The identifier of the request generated by the + [GenerateOrganizationsAccessReport](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GenerateOrganizationsAccessReport.html) + operation. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + sort_key: str | None + """ + The key that is used to sort the results. If you choose the namespace + key, the results are returned in alphabetical order. If you choose the + time key, the results are sorted numerically by the date and time. + """ + @dataclass(kw_only=True) class GetOrganizationsAccessReportOutput(_SerdeShape): """Dataclass for GetOrganizationsAccessReportOutput structure.""" @@ -4281,6 +6143,9 @@ class GetOrganizationsAccessReportOutput(_SerdeShape): class GetOutboundWebIdentityFederationInfoInput(_SerdeShape): """Dataclass for GetOutboundWebIdentityFederationInfoInput structure.""" +class GetOutboundWebIdentityFederationInfoInputDict(TypedDict, total=False): + """Dictionary form of `GetOutboundWebIdentityFederationInfoInput`.""" + @dataclass(kw_only=True) class GetOutboundWebIdentityFederationInfoOutput(_SerdeShape): """Dataclass for GetOutboundWebIdentityFederationInfoOutput structure.""" @@ -4322,6 +6187,19 @@ class GetPolicyInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class GetPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the managed policy that you want + information about. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class GetPolicyOutput(_SerdeShape): """ @@ -4364,6 +6242,29 @@ class GetPolicyVersionInput(_SerdeShape): digits. """ +class GetPolicyVersionInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyVersionInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the managed policy that you want + information about. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + version_id: Required[str] + """ + Identifies the policy version to retrieve. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + consists of the lowercase letter 'v' followed by one or two digits, + and optionally followed by a period '.' and a string of letters and + digits. + """ + @dataclass(kw_only=True) class GetPolicyVersionOutput(_SerdeShape): """ @@ -4396,6 +6297,19 @@ class GetRoleInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class GetRoleInputDict(TypedDict, total=False): + """Dictionary form of `GetRoleInput`.""" + + role_name: Required[str] + """ + The name of the IAM role to get information about. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class GetRoleOutput(_SerdeShape): """ @@ -4437,6 +6351,28 @@ class GetRolePolicyInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class GetRolePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetRolePolicyInput`.""" + + role_name: Required[str] + """ + The name of the role associated with the policy. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_name: Required[str] + """ + The name of the policy document to get. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class GetRolePolicyOutput(_SerdeShape): """ @@ -4486,6 +6422,25 @@ class GetRoleTemplateVersionInput(_SerdeShape): minor version. """ +class GetRoleTemplateVersionInputDict(TypedDict, total=False): + """Dictionary form of `GetRoleTemplateVersionInput`.""" + + template_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the role template whose version you + want to retrieve. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + minor_version: int | None + """ + The minor version of the role template to retrieve. If you do not + specify a minor version, the service returns the template's default + minor version. + """ + @dataclass(kw_only=True) class GetRoleTemplateVersionOutput(_SerdeShape): """Dataclass for GetRoleTemplateVersionOutput structure.""" @@ -4517,6 +6472,19 @@ class GetSAMLProviderInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class GetSAMLProviderInputDict(TypedDict, total=False): + """Dictionary form of `GetSAMLProviderInput`.""" + + saml_provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the SAML provider resource object in + IAM to get information about. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class GetSAMLProviderOutput(_SerdeShape): """ @@ -4571,6 +6539,20 @@ class GetServerCertificateInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class GetServerCertificateInputDict(TypedDict, total=False): + """Dictionary form of `GetServerCertificateInput`.""" + + server_certificate_name: Required[str] + """ + The name of the server certificate you want to retrieve information + about. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class GetServerCertificateOutput(_SerdeShape): """ @@ -4621,6 +6603,37 @@ class GetServiceLastAccessedDetailsInput(_SerdeShape): indicate where the next call should start. """ +class GetServiceLastAccessedDetailsInputDict(TypedDict, total=False): + """Dictionary form of `GetServiceLastAccessedDetailsInput`.""" + + job_id: Required[str] + """ + The ID of the request generated by the + [GenerateServiceLastAccessedDetails](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GenerateServiceLastAccessedDetails.html) + operation. The `JobId` returned by `GenerateServiceLastAccessedDetail` + must be used by the same role within a session, or by the same user when + used to call `GetServiceLastAccessedDetail`. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + @dataclass(kw_only=True) class GetServiceLastAccessedDetailsOutput(_SerdeShape): """Dataclass for GetServiceLastAccessedDetailsOutput structure.""" @@ -4724,6 +6737,50 @@ class GetServiceLastAccessedDetailsWithEntitiesInput(_SerdeShape): indicate where the next call should start. """ +class GetServiceLastAccessedDetailsWithEntitiesInputDict(TypedDict, total=False): + """Dictionary form of `GetServiceLastAccessedDetailsWithEntitiesInput`.""" + + job_id: Required[str] + """ + The ID of the request generated by the + `GenerateServiceLastAccessedDetails` operation. + """ + service_namespace: Required[str] + """ + The service namespace for an Amazon Web Services service. Provide the + service namespace to learn when the IAM entity last attempted to access + the specified service. + + To learn the service namespace for a service, see [Actions, resources, + and condition keys for Amazon Web Services + services](https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html) + in the *IAM User Guide*. Choose the name of the service to view details + for that service. In the first paragraph, find the service prefix. For + example, `(service prefix: a4b)`. For more information about service + namespaces, see [Amazon Web Services service + namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + in the *Amazon Web Services General Reference*. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + @dataclass(kw_only=True) class GetServiceLastAccessedDetailsWithEntitiesOutput(_SerdeShape): """Dataclass for GetServiceLastAccessedDetailsWithEntitiesOutput structure.""" @@ -4789,6 +6846,17 @@ class GetServiceLinkedRoleDeletionStatusInput(_SerdeShape): `task/aws-service-role/```{=html}`/```{=html}`/```{=html}. """ +class GetServiceLinkedRoleDeletionStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetServiceLinkedRoleDeletionStatusInput`.""" + + deletion_task_id: Required[str] + """ + The deletion task identifier. This identifier is returned by the + [DeleteServiceLinkedRole](https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeleteServiceLinkedRole.html) + operation in the format + `task/aws-service-role/```{=html}`/```{=html}`/```{=html}. + """ + @dataclass(kw_only=True) class GetServiceLinkedRoleDeletionStatusOutput(_SerdeShape): """Dataclass for GetServiceLinkedRoleDeletionStatusOutput structure.""" @@ -4833,6 +6901,33 @@ class GetSSHPublicKeyInput(_SerdeShape): public key in PEM format, use `PEM`. """ +class GetSSHPublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `GetSSHPublicKeyInput`.""" + + user_name: Required[str] + """ + The name of the IAM user associated with the SSH public key. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + ssh_public_key_id: Required[str] + """ + The unique identifier for the SSH public key. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + encoding: Required[str] + """ + Specifies the public key encoding format to use in the response. To + retrieve the public key in ssh-rsa format, use `SSH`. To retrieve the + public key in PEM format, use `PEM`. + """ + @dataclass(kw_only=True) class GetSSHPublicKeyOutput(_SerdeShape): """ @@ -4866,6 +6961,20 @@ class GetUserInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class GetUserInputDict(TypedDict, total=False): + """Dictionary form of `GetUserInput`.""" + + user_name: str | None + """ + The name of the user to get information about. + + This parameter is optional. If it is not included, it defaults to the + user making the request. This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class GetUserOutput(_SerdeShape): """ @@ -4907,11 +7016,33 @@ class GetUserOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetUserPolicyInput(_SerdeShape): - """Dataclass for GetUserPolicyInput structure.""" +@dataclass(kw_only=True) +class GetUserPolicyInput(_SerdeShape): + """Dataclass for GetUserPolicyInput structure.""" + + user_name: str | None = ... + """ + The name of the user who the policy is associated with. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_name: str | None = ... + """ + The name of the policy document to get. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + +class GetUserPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetUserPolicyInput`.""" - user_name: str | None = ... + user_name: Required[str] """ The name of the user who the policy is associated with. @@ -4920,7 +7051,7 @@ class GetUserPolicyInput(_SerdeShape): consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ - policy_name: str | None = ... + policy_name: Required[str] """ The name of the policy document to get. @@ -5086,6 +7217,22 @@ class InlinePolicyIdentifierType(_SerdeShape): character). """ +class InlinePolicyIdentifierTypeDict(TypedDict, total=False): + """Dictionary form of `InlinePolicyIdentifierType`.""" + + policy_name: Required[str] + """The name of the inline policy.""" + attachment_type: Required[str] + """The type of IAM entity that the inline policy is attached to.""" + attachment_name: Required[str] + """ + The name of the IAM user, group, or role that the inline policy is + attached to. Wildcard characters are supported to match multiple + entities: use at most one `*` (matches any sequence of characters, + including none), and any number of `?` (each matches exactly one + character). + """ + @dataclass(kw_only=True) class InstanceProfile(_SerdeShape): """ @@ -5279,6 +7426,38 @@ class ListAccessKeysInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListAccessKeysInputDict(TypedDict, total=False): + """Dictionary form of `ListAccessKeysInput`.""" + + user_name: str | None + """ + The name of the user. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListAccessKeysOutput(_SerdeShape): """ @@ -5337,6 +7516,29 @@ class ListAccountAliasesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListAccountAliasesInputDict(TypedDict, total=False): + """Dictionary form of `ListAccountAliasesInput`.""" + + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListAccountAliasesOutput(_SerdeShape): """ @@ -5397,8 +7599,8 @@ class ListAttachedGroupPoliciesInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ marker: str | None = ... @@ -5421,6 +7623,52 @@ class ListAttachedGroupPoliciesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListAttachedGroupPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListAttachedGroupPoliciesInput`.""" + + group_name: Required[str] + """ + The name (friendly name, not ARN) of the group to list attached policies + for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + path_prefix: str | None + """ + The path prefix for filtering the results. This parameter is optional. + If it is not included, it defaults to a slash (/), listing all policies. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListAttachedGroupPoliciesOutput(_SerdeShape): """ @@ -5478,8 +7726,8 @@ class ListAttachedRolePoliciesInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ marker: str | None = ... @@ -5502,6 +7750,52 @@ class ListAttachedRolePoliciesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListAttachedRolePoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListAttachedRolePoliciesInput`.""" + + role_name: Required[str] + """ + The name (friendly name, not ARN) of the role to list attached policies + for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + path_prefix: str | None + """ + The path prefix for filtering the results. This parameter is optional. + If it is not included, it defaults to a slash (/), listing all policies. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListAttachedRolePoliciesOutput(_SerdeShape): """ @@ -5559,8 +7853,8 @@ class ListAttachedUserPoliciesInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ marker: str | None = ... @@ -5583,6 +7877,52 @@ class ListAttachedUserPoliciesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListAttachedUserPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListAttachedUserPoliciesInput`.""" + + user_name: Required[str] + """ + The name (friendly name, not ARN) of the user to list attached policies + for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + path_prefix: str | None + """ + The path prefix for filtering the results. This parameter is optional. + If it is not included, it defaults to a slash (/), listing all policies. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListAttachedUserPoliciesOutput(_SerdeShape): """ @@ -5643,6 +7983,31 @@ class ListDelegationRequestsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListDelegationRequestsInputDict(TypedDict, total=False): + """Dictionary form of `ListDelegationRequestsInput`.""" + + owner_id: str | None + """The owner ID to filter delegation requests by.""" + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM may return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListDelegationRequestsOutput(_SerdeShape): """Dataclass for ListDelegationRequestsOutput structure.""" @@ -5701,8 +8066,8 @@ class ListEntitiesForPolicyInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ policy_usage_filter: str | None = ... @@ -5736,6 +8101,72 @@ class ListEntitiesForPolicyInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListEntitiesForPolicyInputDict(TypedDict, total=False): + """Dictionary form of `ListEntitiesForPolicyInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy for which you want the + versions. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + entity_filter: str | None + """ + The entity type to use for filtering the results. + + For example, when `EntityFilter` is `Role`, only the roles that are + attached to the specified policy are returned. This parameter is + optional. If it is not included, all attached entities (users, groups, + and roles) are returned. The argument for this parameter must be one of + the valid values listed below. + """ + path_prefix: str | None + """ + The path prefix for filtering the results. This parameter is optional. + If it is not included, it defaults to a slash (/), listing all entities. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + policy_usage_filter: str | None + """ + The policy usage method to use for filtering the results. + + To list only permissions policies, set `PolicyUsageFilter` to + `PermissionsPolicy`. To list only the policies used to set permissions + boundaries, set the value to `PermissionsBoundary`. + + This parameter is optional. If it is not included, all policies are + returned. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListEntitiesForPolicyOutput(_SerdeShape): """ diff --git a/clients/aws-sdk-iam/src/aws_sdk_iam/_private/models_1.pyi b/clients/aws-sdk-iam/src/aws_sdk_iam/_private/models_1.pyi index d25694dca..c9bcb0260 100644 --- a/clients/aws-sdk-iam/src/aws_sdk_iam/_private/models_1.pyi +++ b/clients/aws-sdk-iam/src/aws_sdk_iam/_private/models_1.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.response import ResponseMetadata @@ -13,10 +14,12 @@ from ..models import ( AttachedPermissionsBoundary, AttachedPolicy, ContextEntry, + ContextEntryDict, EvaluationResult, Group, InlinePolicy, InlinePolicyIdentifierType, + InlinePolicyIdentifierTypeDict, InstanceProfile, ServiceError, _SerdeShape, @@ -55,6 +58,38 @@ class ListGroupPoliciesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListGroupPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListGroupPoliciesInput`.""" + + group_name: Required[str] + """ + The name of the group to list policies for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListGroupPoliciesOutput(_SerdeShape): """ @@ -129,6 +164,38 @@ class ListGroupsForUserInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListGroupsForUserInputDict(TypedDict, total=False): + """Dictionary form of `ListGroupsForUserInput`.""" + + user_name: Required[str] + """ + The name of the user to list groups for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListGroupsForUserOutput(_SerdeShape): """ @@ -178,8 +245,8 @@ class ListGroupsInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ marker: str | None = ... @@ -202,6 +269,44 @@ class ListGroupsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListGroupsInputDict(TypedDict, total=False): + """Dictionary form of `ListGroupsInput`.""" + + path_prefix: str | None + """ + The path prefix for filtering the results. For example, the prefix + `/division_abc/subdivision_xyz/` gets all groups whose path starts with + `/division_abc/subdivision_xyz/`. + + This parameter is optional. If it is not included, it defaults to a + slash (/), listing all groups. This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListGroupsOutput(_SerdeShape): """ @@ -269,6 +374,38 @@ class ListInstanceProfilesForRoleInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListInstanceProfilesForRoleInputDict(TypedDict, total=False): + """Dictionary form of `ListInstanceProfilesForRoleInput`.""" + + role_name: Required[str] + """ + The name of the role to list instance profiles for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListInstanceProfilesForRoleOutput(_SerdeShape): """ @@ -318,8 +455,8 @@ class ListInstanceProfilesInput(_SerdeShape): its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can - contain any ASCII character from the ! (`\u0021`) through the DEL - character (`\u007f`), including most punctuation characters, digits, and + contain any ASCII character from the ! (`\\u0021`) through the DEL + character (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ marker: str | None = ... @@ -342,6 +479,44 @@ class ListInstanceProfilesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListInstanceProfilesInputDict(TypedDict, total=False): + """Dictionary form of `ListInstanceProfilesInput`.""" + + path_prefix: str | None + """ + The path prefix for filtering the results. For example, the prefix + `/application_abc/component_xyz/` gets all instance profiles whose path + starts with `/application_abc/component_xyz/`. + + This parameter is optional. If it is not included, it defaults to a + slash (/), listing all instance profiles. This parameter allows (through + its [regex pattern](http://wikipedia.org/wiki/regex)) a string of + characters consisting of either a forward slash (/) by itself or a + string that must begin and end with forward slashes. In addition, it can + contain any ASCII character from the ! (`\\u0021`) through the DEL + character (`\\u007F`), including most punctuation characters, digits, and + upper and lowercased letters. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListInstanceProfilesOutput(_SerdeShape): """ @@ -409,6 +584,38 @@ class ListInstanceProfileTagsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListInstanceProfileTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListInstanceProfileTagsInput`.""" + + instance_profile_name: Required[str] + """ + The name of the IAM instance profile whose tags you want to see. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListInstanceProfileTagsOutput(_SerdeShape): """Dataclass for ListInstanceProfileTagsOutput structure.""" @@ -477,6 +684,38 @@ class ListMFADevicesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListMFADevicesInputDict(TypedDict, total=False): + """Dictionary form of `ListMFADevicesInput`.""" + + user_name: str | None + """ + The name of the user whose MFA devices you want to list. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListMFADevicesOutput(_SerdeShape): """ @@ -546,6 +785,40 @@ class ListMFADeviceTagsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListMFADeviceTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListMFADeviceTagsInput`.""" + + serial_number: Required[str] + """ + The unique identifier for the IAM virtual MFA device whose tags you want + to see. For virtual MFA devices, the serial number is the same as the + ARN. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListMFADeviceTagsOutput(_SerdeShape): """Dataclass for ListMFADeviceTagsOutput structure.""" @@ -584,6 +857,9 @@ class ListMFADeviceTagsOutput(_SerdeShape): class ListOpenIDConnectProvidersInput(_SerdeShape): """Dataclass for ListOpenIDConnectProvidersInput structure.""" +class ListOpenIDConnectProvidersInputDict(TypedDict, total=False): + """Dictionary form of `ListOpenIDConnectProvidersInput`.""" + @dataclass(kw_only=True) class ListOpenIDConnectProvidersOutput(_SerdeShape): """ @@ -639,6 +915,39 @@ class ListOpenIDConnectProviderTagsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListOpenIDConnectProviderTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListOpenIDConnectProviderTagsInput`.""" + + open_id_connect_provider_arn: Required[str] + """ + The ARN of the OpenID Connect (OIDC) identity provider whose tags you + want to see. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListOpenIDConnectProviderTagsOutput(_SerdeShape): """Dataclass for ListOpenIDConnectProviderTagsOutput structure.""" @@ -678,6 +987,9 @@ class ListOpenIDConnectProviderTagsOutput(_SerdeShape): class ListOrganizationsFeaturesInput(_SerdeShape): """Dataclass for ListOrganizationsFeaturesInput structure.""" +class ListOrganizationsFeaturesInputDict(TypedDict, total=False): + """Dictionary form of `ListOrganizationsFeaturesInput`.""" + @dataclass(kw_only=True) class ListOrganizationsFeaturesOutput(_SerdeShape): """Dataclass for ListOrganizationsFeaturesOutput structure.""" @@ -760,6 +1072,37 @@ class ListPoliciesGrantingServiceAccessInput(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class ListPoliciesGrantingServiceAccessInputDict(TypedDict, total=False): + """Dictionary form of `ListPoliciesGrantingServiceAccessInput`.""" + + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + arn: Required[str] + """ + The ARN of the IAM identity (user, group, or role) whose policies you + want to list. + """ + service_namespaces: Required[Sequence[str]] + """ + The service namespace for the Amazon Web Services services whose + policies you want to list. + + To learn the service namespace for a service, see [Actions, resources, + and condition keys for Amazon Web Services + services](https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html) + in the *IAM User Guide*. Choose the name of the service to view details + for that service. In the first paragraph, find the service prefix. For + example, `(service prefix: a4b)`. For more information about service + namespaces, see [Amazon Web Services service + namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class ListPoliciesGrantingServiceAccessOutput(_SerdeShape): """Dataclass for ListPoliciesGrantingServiceAccessOutput structure.""" @@ -824,8 +1167,8 @@ class ListPoliciesInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ policy_usage_filter: str | None = ... @@ -859,6 +1202,72 @@ class ListPoliciesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListPoliciesInput`.""" + + scope: str | None + """ + The scope to use for filtering the results. + + To list only Amazon Web Services managed policies, set `Scope` to `AWS`. + To list only the customer managed policies in your Amazon Web Services + account, set `Scope` to `Local`. + + This parameter is optional. If it is not included, or if it is set to + `All`, all policies are returned. + """ + only_attached: bool | None + """ + A flag to filter the results to only the attached policies. + + When `OnlyAttached` is `true`, the returned list contains only the + policies that are attached to an IAM user, group, or role. When + `OnlyAttached` is `false`, or when the parameter is not included, all + policies are returned. + """ + path_prefix: str | None + """ + The path prefix for filtering the results. This parameter is optional. + If it is not included, it defaults to a slash (/), listing all policies. + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + policy_usage_filter: str | None + """ + The policy usage method to use for filtering the results. + + To list only permissions policies, set `PolicyUsageFilter` to + `PermissionsPolicy`. To list only the policies used to set permissions + boundaries, set the value to `PermissionsBoundary`. + + This parameter is optional. If it is not included, all policies are + returned. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListPoliciesOutput(_SerdeShape): """ @@ -926,6 +1335,38 @@ class ListPolicyTagsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListPolicyTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListPolicyTagsInput`.""" + + policy_arn: Required[str] + """ + The ARN of the IAM customer managed policy whose tags you want to see. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListPolicyTagsOutput(_SerdeShape): """Dataclass for ListPolicyTagsOutput structure.""" @@ -994,6 +1435,38 @@ class ListPolicyVersionsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListPolicyVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListPolicyVersionsInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy for which you want the + versions. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListPolicyVersionsOutput(_SerdeShape): """ @@ -1068,6 +1541,38 @@ class ListRolePoliciesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListRolePoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListRolePoliciesInput`.""" + + role_name: Required[str] + """ + The name of the role to list policies for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListRolePoliciesOutput(_SerdeShape): """ @@ -1117,8 +1622,8 @@ class ListRolesInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ marker: str | None = ... @@ -1141,6 +1646,44 @@ class ListRolesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListRolesInputDict(TypedDict, total=False): + """Dictionary form of `ListRolesInput`.""" + + path_prefix: str | None + """ + The path prefix for filtering the results. For example, the prefix + `/application_abc/component_xyz/` gets all roles whose path starts with + `/application_abc/component_xyz/`. + + This parameter is optional. If it is not included, it defaults to a + slash (/), listing all roles. This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListRolesOutput(_SerdeShape): """ @@ -1208,6 +1751,38 @@ class ListRoleTagsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListRoleTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListRoleTagsInput`.""" + + role_name: Required[str] + """ + The name of the IAM role for which you want to see the list of tags. + + This parameter accepts (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + consist of upper and lowercase alphanumeric characters with no spaces. + You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListRoleTagsOutput(_SerdeShape): """Dataclass for ListRoleTagsOutput structure.""" @@ -1246,6 +1821,9 @@ class ListRoleTagsOutput(_SerdeShape): class ListSAMLProvidersInput(_SerdeShape): """Dataclass for ListSAMLProvidersInput structure.""" +class ListSAMLProvidersInputDict(TypedDict, total=False): + """Dictionary form of `ListSAMLProvidersInput`.""" + @dataclass(kw_only=True) class ListSAMLProvidersOutput(_SerdeShape): """ @@ -1301,6 +1879,39 @@ class ListSAMLProviderTagsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListSAMLProviderTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListSAMLProviderTagsInput`.""" + + saml_provider_arn: Required[str] + """ + The ARN of the Security Assertion Markup Language (SAML) identity + provider whose tags you want to see. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListSAMLProviderTagsOutput(_SerdeShape): """Dataclass for ListSAMLProviderTagsOutput structure.""" @@ -1351,8 +1962,8 @@ class ListServerCertificatesInput(_SerdeShape): (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can - contain any ASCII character from the ! (`\u0021`) through the DEL - character (`\u007f`), including most punctuation characters, digits, and + contain any ASCII character from the ! (`\\u0021`) through the DEL + character (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ marker: str | None = ... @@ -1375,12 +1986,50 @@ class ListServerCertificatesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ -@dataclass(kw_only=True) -class ListServerCertificatesOutput(_SerdeShape): +class ListServerCertificatesInputDict(TypedDict, total=False): + """Dictionary form of `ListServerCertificatesInput`.""" + + path_prefix: str | None """ - Contains the response to a successful - [ListServerCertificates](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListServerCertificates.html) - request. + The path prefix for filtering the results. For example: + `/company/servercerts` would get all server certificates for which the + path starts with `/company/servercerts`. + + This parameter is optional. If it is not included, it defaults to a + slash (/), listing all server certificates. This parameter allows + (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string + of characters consisting of either a forward slash (/) by itself or a + string that must begin and end with forward slashes. In addition, it can + contain any ASCII character from the ! (`\\u0021`) through the DEL + character (`\\u007F`), including most punctuation characters, digits, and + upper and lowercased letters. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + +@dataclass(kw_only=True) +class ListServerCertificatesOutput(_SerdeShape): + """ + Contains the response to a successful + [ListServerCertificates](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListServerCertificates.html) + request. """ server_certificate_metadata_list: list[ServerCertificateMetadata] @@ -1442,6 +2091,38 @@ class ListServerCertificateTagsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListServerCertificateTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListServerCertificateTagsInput`.""" + + server_certificate_name: Required[str] + """ + The name of the IAM server certificate whose tags you want to see. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListServerCertificateTagsOutput(_SerdeShape): """Dataclass for ListServerCertificateTagsOutput structure.""" @@ -1518,6 +2199,46 @@ class ListServiceSpecificCredentialsInput(_SerdeShape): maximum you specify, the IsTruncated response element is true. """ +class ListServiceSpecificCredentialsInputDict(TypedDict, total=False): + """Dictionary form of `ListServiceSpecificCredentialsInput`.""" + + user_name: str | None + """ + The name of the user whose service-specific credentials you want + information about. If this value is not specified, then the operation + assumes the user whose credentials are used to call the operation. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + service_name: str | None + """ + Filters the returned results to only those for the specified Amazon Web + Services service. If not specified, then Amazon Web Services returns + service-specific credentials for all services. + """ + all_users: bool | None + """ + A flag indicating whether to list service specific credentials for all + users. This parameter cannot be specified together with UserName. When + true, returns all credentials associated with the specified service. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the Marker from the response that you received to indicate + where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the IsTruncated response element is true. + """ + @dataclass(kw_only=True) class ListServiceSpecificCredentialsOutput(_SerdeShape): """Dataclass for ListServiceSpecificCredentialsOutput structure.""" @@ -1579,6 +2300,38 @@ class ListSigningCertificatesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListSigningCertificatesInputDict(TypedDict, total=False): + """Dictionary form of `ListSigningCertificatesInput`.""" + + user_name: str | None + """ + The name of the IAM user whose signing certificates you want to examine. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListSigningCertificatesOutput(_SerdeShape): """ @@ -1648,6 +2401,40 @@ class ListSSHPublicKeysInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListSSHPublicKeysInputDict(TypedDict, total=False): + """Dictionary form of `ListSSHPublicKeysInput`.""" + + user_name: str | None + """ + The name of the IAM user to list SSH public keys for. If none is + specified, the `UserName` field is determined implicitly based on the + Amazon Web Services access key used to sign the request. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListSSHPublicKeysOutput(_SerdeShape): """ @@ -1715,6 +2502,38 @@ class ListUserPoliciesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListUserPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListUserPoliciesInput`.""" + + user_name: Required[str] + """ + The name of the user to list policies for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListUserPoliciesOutput(_SerdeShape): """ @@ -1764,8 +2583,8 @@ class ListUsersInput(_SerdeShape): [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ marker: str | None = ... @@ -1788,6 +2607,44 @@ class ListUsersInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListUsersInputDict(TypedDict, total=False): + """Dictionary form of `ListUsersInput`.""" + + path_prefix: str | None + """ + The path prefix for filtering the results. For example: + `/division_abc/subdivision_xyz/`, which would get all user names whose + path starts with `/division_abc/subdivision_xyz/`. + + This parameter is optional. If it is not included, it defaults to a + slash (/), listing all user names. This parameter allows (through its + [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListUsersOutput(_SerdeShape): """ @@ -1855,6 +2712,38 @@ class ListUserTagsInput(_SerdeShape): subsequent call that tells the service where to continue from. """ +class ListUserTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListUserTagsInput`.""" + + user_name: Required[str] + """ + The name of the IAM user whose tags you want to see. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + @dataclass(kw_only=True) class ListUserTagsOutput(_SerdeShape): """Dataclass for ListUserTagsOutput structure.""" @@ -1919,23 +2808,52 @@ class ListVirtualMFADevicesInput(_SerdeShape): subsequent call that tells the service where to continue from. """ -@dataclass(kw_only=True) -class ListVirtualMFADevicesOutput(_SerdeShape): +class ListVirtualMFADevicesInputDict(TypedDict, total=False): + """Dictionary form of `ListVirtualMFADevicesInput`.""" + + assignment_status: str | None """ - Contains the response to a successful - [ListVirtualMFADevices](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListVirtualMFADevices.html) - request. + The status (`Unassigned` or `Assigned`) of the devices to list. If you + do not specify an `AssignmentStatus`, the operation defaults to `Any`, + which lists both assigned and unassigned virtual MFA devices., """ - - virtual_mfa_devices: list[VirtualMFADevice] + marker: str | None """ - The list of virtual MFA devices in the current account that match the - `AssignmentStatus` value that was passed in the request. + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. """ - is_truncated: bool = ... + max_items: int | None """ - A flag that indicates whether there are more items to return. If your - results were truncated, you can make a subsequent pagination request + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + +@dataclass(kw_only=True) +class ListVirtualMFADevicesOutput(_SerdeShape): + """ + Contains the response to a successful + [ListVirtualMFADevices](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListVirtualMFADevices.html) + request. + """ + + virtual_mfa_devices: list[VirtualMFADevice] + """ + The list of virtual MFA devices in the current account that match the + `AssignmentStatus` value that was passed in the request. + """ + is_truncated: bool = ... + """ + A flag that indicates whether there are more items to return. If your + results were truncated, you can make a subsequent pagination request using the `Marker` request parameter to retrieve more items. Note that IAM might return fewer than the `MaxItems` number of results even when there are more results available. We recommend that you check @@ -2211,6 +3129,16 @@ class OrderedOrganizationPolicyType(_SerdeShape): complete, valid JSON text of an SCP. """ +class OrderedOrganizationPolicyTypeDict(TypedDict, total=False): + """Dictionary form of `OrderedOrganizationPolicyType`.""" + + service_control_policy_input_list: Sequence[str] | None + """ + A list of SCP documents that apply at this level of the Organizations + hierarchy. Each document is specified as a string containing the + complete, valid JSON text of an SCP. + """ + @dataclass(kw_only=True) class OrganizationNotFoundException(ServiceError, _SerdeShape): """ @@ -2693,6 +3621,45 @@ an inline policy and the entity it is attached to. class _PolicyIdentifierDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> PolicyIdentifier: ... +class PolicyIdentifier_PolicyTypeDict(TypedDict): + policy_type: str + """ + The policy type to identify. All policies of the specified type are + matched. + """ + +class PolicyIdentifierPolicyArnDict(TypedDict): + policy_arn: str + """ + The Amazon Resource Name (ARN) of an Amazon Web Services managed policy + or a customer managed policy that is attached to an IAM user, group, or + role. Wildcard characters are supported in the resource name portion of + the ARN to match multiple managed policies: use at most one `*` (matches + any sequence of characters, including none), and any number of `?` (each + matches exactly one character). + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + +class PolicyIdentifierInlinePolicyIdentifierDict(TypedDict): + inline_policy_identifier: ( + InlinePolicyIdentifierType | InlinePolicyIdentifierTypeDict + ) + """ + An inline policy identifier consisting of a policy name and the entity + it is attached to. Wildcard characters (`*` and `?`) in the entity name + can match multiple entities. + """ + +PolicyIdentifierDict = Union[ + PolicyIdentifier_PolicyTypeDict + | PolicyIdentifierPolicyArnDict + | PolicyIdentifierInlinePolicyIdentifierDict +] +"""Dictionary form of `PolicyIdentifier`, setting exactly one variant.""" + class PolicyIdentifierPolicyType(UnknownEnumMixin, StrEnum): INLINE = "inline" AWS_MANAGED = "aws-managed" @@ -2735,6 +3702,16 @@ class PolicyParameter(_SerdeShape): type: str | None = ... """The data type of the policy parameter value.""" +class PolicyParameterDict(TypedDict, total=False): + """Dictionary form of `PolicyParameter`.""" + + name: str | None + """The name of the policy parameter.""" + values: Sequence[str] | None + """The allowed values for the policy parameter.""" + type: str | None + """The data type of the policy parameter value.""" + class PolicyParameterTypeEnum(UnknownEnumMixin, StrEnum): STRING = "string" STRING_LIST = "stringList" @@ -2916,6 +3893,22 @@ class PutAccountPropertiesInput(_SerdeShape): type. For example, boolean properties expect `true` or `false`. """ +class PutAccountPropertiesInputDict(TypedDict, total=False): + """Dictionary form of `PutAccountPropertiesInput`.""" + + properties: Required[Mapping[str, str]] + """ + A map of property key-value pairs to set. All keys must belong to the + same namespace. + + Each key uses the format `Namespace/PropertyName`. The key must contain + exactly one `/` separating the namespace from the property name, and + cannot start or end with `/`. + + The service validates each value based on the property key's expected + type. For example, boolean properties expect `true` or `false`. + """ + @dataclass(kw_only=True) class PutAccountPropertiesOutput(_SerdeShape): """Dataclass for PutAccountPropertiesOutput structure.""" @@ -2963,13 +3956,56 @@ class PutGroupPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + +class PutGroupPolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutGroupPolicyInput`.""" + + group_name: Required[str] + """ + The name of the group to associate the policy with. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@-. + """ + policy_name: Required[str] + """ + The name of the policy document. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_document: Required[str] + """ + The policy document. + + You must provide policies in JSON format in IAM. However, for + CloudFormation templates formatted in YAML, you can provide the policy + in JSON or YAML format. CloudFormation always converts a YAML policy to + JSON format before submitting it to IAM. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ @dataclass(kw_only=True) @@ -3011,6 +4047,32 @@ class PutRolePermissionsBoundaryInput(_SerdeShape): in the *IAM User Guide*. """ +class PutRolePermissionsBoundaryInputDict(TypedDict, total=False): + """Dictionary form of `PutRolePermissionsBoundaryInput`.""" + + role_name: Required[str] + """ + The name (friendly name, not ARN) of the IAM role for which you want to + set the permissions boundary. + """ + permissions_boundary: Required[str] + """ + The ARN of the managed policy that is used to set the permissions + boundary for the role. + + A permissions boundary policy defines the maximum permissions that + identity-based policies can grant to an entity, but does not grant + permissions. Permissions boundaries do not define the maximum + permissions that a resource-based policy can grant to an entity. To + learn more, see [Permissions boundaries for IAM + entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) + in the *IAM User Guide*. + + For more information about policy types, see [Policy + types](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policy-types) + in the *IAM User Guide*. + """ + @dataclass(kw_only=True) class PutRolePermissionsBoundaryOutput(_SerdeShape): """Dataclass for PutRolePermissionsBoundaryOutput structure.""" @@ -3058,13 +4120,56 @@ class PutRolePolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + +class PutRolePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutRolePolicyInput`.""" + + role_name: Required[str] + """ + The name of the role to associate the policy with. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_name: Required[str] + """ + The name of the policy document. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_document: Required[str] + """ + The policy document. + + You must provide policies in JSON format in IAM. However, for + CloudFormation templates formatted in YAML, you can provide the policy + in JSON or YAML format. CloudFormation always converts a YAML policy to + JSON format before submitting it to IAM. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ @dataclass(kw_only=True) @@ -3106,6 +4211,32 @@ class PutUserPermissionsBoundaryInput(_SerdeShape): in the *IAM User Guide*. """ +class PutUserPermissionsBoundaryInputDict(TypedDict, total=False): + """Dictionary form of `PutUserPermissionsBoundaryInput`.""" + + user_name: Required[str] + """ + The name (friendly name, not ARN) of the IAM user for which you want to + set the permissions boundary. + """ + permissions_boundary: Required[str] + """ + The ARN of the managed policy that is used to set the permissions + boundary for the user. + + A permissions boundary policy defines the maximum permissions that + identity-based policies can grant to an entity, but does not grant + permissions. Permissions boundaries do not define the maximum + permissions that a resource-based policy can grant to an entity. To + learn more, see [Permissions boundaries for IAM + entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) + in the *IAM User Guide*. + + For more information about policy types, see [Policy + types](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policy-types) + in the *IAM User Guide*. + """ + @dataclass(kw_only=True) class PutUserPermissionsBoundaryOutput(_SerdeShape): """Dataclass for PutUserPermissionsBoundaryOutput structure.""" @@ -3153,13 +4284,56 @@ class PutUserPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + +class PutUserPolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutUserPolicyInput`.""" + + user_name: Required[str] + """ + The name of the user to associate the policy with. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_name: Required[str] + """ + The name of the policy document. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_document: Required[str] + """ + The policy document. + + You must provide policies in JSON format in IAM. However, for + CloudFormation templates formatted in YAML, you can provide the policy + in JSON or YAML format. CloudFormation always converts a YAML policy to + JSON format before submitting it to IAM. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ @dataclass(kw_only=True) @@ -3186,6 +4360,17 @@ class RejectDelegationRequestInput(_SerdeShape): request. """ +class RejectDelegationRequestInputDict(TypedDict, total=False): + """Dictionary form of `RejectDelegationRequestInput`.""" + + delegation_request_id: Required[str] + """The unique identifier of the delegation request to reject.""" + notes: str | None + """ + Optional notes explaining the reason for rejecting the delegation + request. + """ + @dataclass(kw_only=True) class RejectDelegationRequestOutput(_SerdeShape): """Dataclass for RejectDelegationRequestOutput structure.""" @@ -3221,6 +4406,28 @@ class RemoveClientIDFromOpenIDConnectProviderInput(_SerdeShape): [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html). """ +class RemoveClientIDFromOpenIDConnectProviderInputDict(TypedDict, total=False): + """Dictionary form of `RemoveClientIDFromOpenIDConnectProviderInput`.""" + + open_id_connect_provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM OIDC provider resource to + remove the client ID from. You can get a list of OIDC provider ARNs by + using the + [ListOpenIDConnectProviders](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListOpenIDConnectProviders.html) + operation. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + client_id: Required[str] + """ + The client ID (also known as audience) to remove from the IAM OIDC + provider resource. For more information about client IDs, see + [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html). + """ + @dataclass(kw_only=True) class RemoveClientIDFromOpenIDConnectProviderOutput(_SerdeShape): """Dataclass for RemoveClientIDFromOpenIDConnectProviderOutput structure.""" @@ -3256,13 +4463,35 @@ class RemoveRoleFromInstanceProfileInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ -@dataclass(kw_only=True) -class RemoveRoleFromInstanceProfileOutput(_SerdeShape): - """Dataclass for RemoveRoleFromInstanceProfileOutput structure.""" +class RemoveRoleFromInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `RemoveRoleFromInstanceProfileInput`.""" - response_metadata: ResponseMetadata = ... + instance_profile_name: Required[str] """ - Metadata about the response that produced this output. Use this to + The name of the instance profile to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + role_name: Required[str] + """ + The name of the role to remove. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + +@dataclass(kw_only=True) +class RemoveRoleFromInstanceProfileOutput(_SerdeShape): + """Dataclass for RemoveRoleFromInstanceProfileOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. @@ -3291,6 +4520,28 @@ class RemoveUserFromGroupInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class RemoveUserFromGroupInputDict(TypedDict, total=False): + """Dictionary form of `RemoveUserFromGroupInput`.""" + + group_name: Required[str] + """ + The name of the group to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + user_name: Required[str] + """ + The name of the user to remove. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class RemoveUserFromGroupOutput(_SerdeShape): """Dataclass for RemoveUserFromGroupOutput structure.""" @@ -3313,6 +4564,12 @@ class ReplacementValueEntry(_SerdeShape): values: list[str] """The list of replacement values for the template parameter.""" +class ReplacementValueEntryDict(TypedDict, total=False): + """Dictionary form of `ReplacementValueEntry`.""" + + values: Required[Sequence[str]] + """The list of replacement values for the template parameter.""" + class ReportFormatType(UnknownEnumMixin, StrEnum): TEXT_CSV = "text/csv" @@ -3360,6 +4617,29 @@ class ResetServiceSpecificCredentialInput(_SerdeShape): can consist of any upper or lowercased letter or digit. """ +class ResetServiceSpecificCredentialInputDict(TypedDict, total=False): + """Dictionary form of `ResetServiceSpecificCredentialInput`.""" + + user_name: str | None + """ + The name of the IAM user associated with the service-specific + credential. If this value is not specified, then the operation assumes + the user whose credentials are used to call the operation. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + service_specific_credential_id: Required[str] + """ + The unique identifier of the service-specific credential. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + @dataclass(kw_only=True) class ResetServiceSpecificCredentialOutput(_SerdeShape): """Dataclass for ResetServiceSpecificCredentialOutput structure.""" @@ -3472,6 +4752,40 @@ class ResyncMFADeviceInput(_SerdeShape): The format for this parameter is a sequence of six digits. """ +class ResyncMFADeviceInputDict(TypedDict, total=False): + """Dictionary form of `ResyncMFADeviceInput`.""" + + user_name: Required[str] + """ + The name of the user whose MFA device you want to resynchronize. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + serial_number: Required[str] + """ + Serial number that uniquely identifies the MFA device. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + authentication_code1: Required[str] + """ + An authentication code emitted by the device. + + The format for this parameter is a sequence of six digits. + """ + authentication_code2: Required[str] + """ + A subsequent authentication code emitted by the device. + + The format for this parameter is a sequence of six digits. + """ + @dataclass(kw_only=True) class ResyncMFADeviceOutput(_SerdeShape): """Dataclass for ResyncMFADeviceOutput structure.""" @@ -3896,6 +5210,15 @@ class SendDelegationTokenInput(_SerdeShape): token. """ +class SendDelegationTokenInputDict(TypedDict, total=False): + """Dictionary form of `SendDelegationTokenInput`.""" + + delegation_request_id: Required[str] + """ + The unique identifier of the delegation request for which to send the + token. + """ + @dataclass(kw_only=True) class SendDelegationTokenOutput(_SerdeShape): """Dataclass for SendDelegationTokenOutput structure.""" @@ -4213,6 +5536,28 @@ class SetDefaultPolicyVersionInput(_SerdeShape): in the *IAM User Guide*. """ +class SetDefaultPolicyVersionInputDict(TypedDict, total=False): + """Dictionary form of `SetDefaultPolicyVersionInput`.""" + + policy_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM policy whose default version + you want to set. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + version_id: Required[str] + """ + The version of the policy to set as the default (operative) version. + + For more information about managed policy versions, see [Versioning for + managed + policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) + in the *IAM User Guide*. + """ + @dataclass(kw_only=True) class SetDefaultPolicyVersionOutput(_SerdeShape): """Dataclass for SetDefaultPolicyVersionOutput structure.""" @@ -4244,6 +5589,24 @@ class SetSecurityTokenServicePreferencesInput(_SerdeShape): in the *IAM User Guide*. """ +class SetSecurityTokenServicePreferencesInputDict(TypedDict, total=False): + """Dictionary form of `SetSecurityTokenServicePreferencesInput`.""" + + global_endpoint_token_version: Required[str] + """ + The version of the global endpoint token. Version 1 tokens are valid + only in Amazon Web Services Regions that are available by default. These + tokens do not work in manually enabled Regions, such as Asia Pacific + (Hong Kong). Version 2 tokens are valid in all Regions. However, version + 2 tokens are longer and might affect systems where you temporarily store + tokens. + + For information, see [Activating and deactivating STS in an Amazon Web + Services + Region](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) + in the *IAM User Guide*. + """ + @dataclass(kw_only=True) class SetSecurityTokenServicePreferencesOutput(_SerdeShape): """Dataclass for SetSecurityTokenServicePreferencesOutput structure.""" @@ -4310,13 +5673,13 @@ class SimulateCustomPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ permissions_boundary_policy_input_list: list[str] | None = ... """ @@ -4339,13 +5702,13 @@ class SimulateCustomPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ ordered_organization_policy_input_list: ( list[OrderedOrganizationPolicyType] | None @@ -4415,13 +5778,13 @@ class SimulateCustomPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) Note: Simulation of resource-based policies isn't supported for IAM roles. @@ -4518,53 +5881,22 @@ class SimulateCustomPolicyInput(_SerdeShape): indicate where the next call should start. """ -@dataclass(kw_only=True) -class SimulateCustomPolicyOutput(_SerdeShape): - """ - Contains the response to a successful - [SimulatePrincipalPolicy](https://docs.aws.amazon.com/IAM/latest/APIReference/API_SimulatePrincipalPolicy.html) - or - [SimulateCustomPolicy](https://docs.aws.amazon.com/IAM/latest/APIReference/API_SimulateCustomPolicy.html) - request. - """ - - evaluation_results: list[EvaluationResult] | None = ... - """The results of the simulation.""" - is_truncated: bool = ... - """ - A flag that indicates whether there are more items to return. If your - results were truncated, you can make a subsequent pagination request - using the `Marker` request parameter to retrieve more items. Note that - IAM might return fewer than the `MaxItems` number of results even when - there are more results available. We recommend that you check - `IsTruncated` after every call to ensure that you receive all your - results. - """ - marker: str | None = ... - """ - When `IsTruncated` is `true`, this element is present and contains the - value to use for the `Marker` parameter in a subsequent pagination - request. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class SimulatePrincipalPolicyInput(_SerdeShape): - """Dataclass for SimulatePrincipalPolicyInput structure.""" +class SimulateCustomPolicyInputDict(TypedDict, total=False): + """Dictionary form of `SimulateCustomPolicyInput`.""" - policy_source_arn: str | None = ... + policy_input_list: Required[Sequence[str]] """ - The Amazon Resource Name (ARN) of a user, group, or role whose policies - you want to include in the simulation. If you specify a user, group, or - role, the simulation includes all policies that are associated with that - entity. If you specify a user, the simulation also includes all policies - that are attached to any groups the user belongs to. + A list of policy documents to include in the simulation. Each document + is specified as a string containing the complete, valid JSON text of an + IAM policy. Do not include any resource-based policies in this + parameter. Any resource-based policy must be submitted with the + `ResourcePolicy` parameter. The policies cannot be \"scope-down\" + policies, such as you could include in a call to + [GetFederationToken](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetFederationToken.html) + or one of the + [AssumeRole](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AssumeRole.html) + API operations. In other words, do not use policies designed to restrict + what a user can do while using the temporary credentials. The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum @@ -4572,43 +5904,28 @@ class SimulatePrincipalPolicyInput(_SerdeShape): STS character quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). - For more information about ARNs, see [Amazon Resource Names - (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - in the *Amazon Web Services General Reference*. - """ - policy_input_list: list[str] | None = ... - """ - An optional list of additional policy documents to include in the - simulation. Each document is specified as a string containing the - complete, valid JSON text of an IAM policy. - The [regex pattern](http://wikipedia.org/wiki/regex) used to validate this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ - permissions_boundary_policy_input_list: list[str] | None = ... + permissions_boundary_policy_input_list: Sequence[str] | None """ The IAM permissions boundary policy to simulate. The permissions - boundary sets the maximum permissions that the entity can have. You can - input only one permissions boundary when you pass a policy to this - operation. An IAM entity can only have one permissions boundary in - effect at a time. For example, if a permissions boundary is attached to - an entity and you pass in a different permissions boundary policy using - this parameter, then the new permissions boundary policy is used for the - simulation. For more information about permissions boundaries, see + boundary sets the maximum permissions that an IAM entity can have. You + can input only one permissions boundary when you pass a policy to this + operation. For more information about permissions boundaries, see [Permissions boundaries for IAM entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) - in the *IAM User Guide*. The policy input is specified as a string - containing the complete, valid JSON text of a permissions boundary - policy. + in the *IAM User Guide*. The policy input is specified as a string that + contains the complete, valid JSON text of a permissions boundary policy. The maximum length of the policy document that you can pass in this operation, including whitespace, is listed below. To view the maximum @@ -4620,41 +5937,41 @@ class SimulatePrincipalPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ - policy_exclusion_list: list[PolicyIdentifier] | None = ... + ordered_organization_policy_input_list: ( + Sequence[OrderedOrganizationPolicyType | OrderedOrganizationPolicyTypeDict] + | None + ) """ - A list of policies to exclude from the simulation. Use this parameter to - test what the simulation result would be if a policy were removed, - without changing which policies are actually attached to the principal - identified by `PolicySourceArn`. + An ordered list of service control policies (SCPs) to include in the + simulation. Each element represents one level of an Organizations + hierarchy, from the organization root to the account. - Each entry is a - [PolicyIdentifier](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PolicyIdentifier.html) - that identifies one or more policies to exclude by policy type, by - Amazon Resource Name (ARN), or by the name of an inline policy and the - entity it is attached to. + The simulator evaluates SCPs in the order that you provide, consistent + with how Organizations enforces SCPs. The first element must represent + the organization root, and the last element must represent the account. + Any elements between them represent organizational units (OUs) in + descending order. - Syntactically invalid identifiers, such as malformed ARNs or wildcards - in disallowed positions, cause the request to fail with an - `InvalidInput` error. Syntactically valid identifiers that don't match - any attached policy are ignored. Resource control policies (RCPs) are - not supported in this release; identifiers that target RCPs are also - ignored. + Use this parameter to simulate the effect of an SCP hierarchy without + calling + [SimulatePrincipalPolicy](https://docs.aws.amazon.com/IAM/latest/APIReference/API_SimulatePrincipalPolicy.html). """ - action_names: list[str] | None = ... + action_names: Required[Sequence[str]] """ A list of names of API operations to evaluate in the simulation. Each - operation is evaluated for each resource. Each operation must include - the service identifier, such as `iam:CreateUser`. + operation is evaluated against each resource. Each operation must + include the service identifier, such as `iam:CreateUser`. This operation + does not support using wildcards (*) in an action name. """ - resource_arns: list[str] | None = ... + resource_arns: Sequence[str] | None """ A list of ARNs of Amazon Web Services resources to include in the simulation. If this parameter is not provided, then the value defaults @@ -4669,6 +5986,10 @@ class SimulatePrincipalPolicyInput(_SerdeShape): simulation, then you must include the policy as a string in the `ResourcePolicy` parameter. + If you include a `ResourcePolicy`, then it must be applicable to all of + the resources included in the simulation or you receive an invalid input + error. + For more information about ARNs, see [Amazon Resource Names (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *Amazon Web Services General Reference*. @@ -4676,7 +5997,7 @@ class SimulatePrincipalPolicyInput(_SerdeShape): Note: Simulation of resource-based policies isn't supported for IAM roles. """ - resource_policy: str | None = ... + resource_policy: str | None """ A resource-based policy to include in the simulation provided as a string. Each resource in the simulation is treated as if it had this @@ -4693,22 +6014,549 @@ class SimulatePrincipalPolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) Note: Simulation of resource-based policies isn't supported for IAM roles. """ - resource_owner: str | None = ... + resource_owner: str | None """ - An Amazon Web Services account ID that specifies the owner of any - simulated resource that does not identify its owner in the resource ARN. - Examples of resource ARNs include an S3 bucket or object. If + An ARN representing the Amazon Web Services account ID that specifies + the owner of any simulated resource that does not identify its owner in + the resource ARN. Examples of resource ARNs include an S3 bucket or + object. If `ResourceOwner` is specified, it is also used as the account + owner of any `ResourcePolicy` included in the simulation. If the + `ResourceOwner` parameter is not specified, then the owner of the + resources and the resource policy defaults to the account of the + identity provided in `CallerArn`. This parameter is required only if you + specify a resource-based policy and account that owns the resource is + different from the account that owns the simulated calling user + `CallerArn`. + + The ARN for an account uses the following syntax: + `arn:aws:iam::`*`AWS-account-ID`*`:root`. For example, to represent the + account with the 112233445566 ID, use the following ARN: + `arn:aws:iam::112233445566-ID:root`. + """ + caller_arn: str | None + """ + The ARN of the IAM user, group, or role that you want to use as the + simulated caller of the API operations. `CallerArn` is required if you + include a `ResourcePolicy` so that the policy's `Principal` element has + a value to use in evaluating the policy. + + You cannot specify the ARN of an assumed role, federated user, or a + service principal. + """ + context_entries: Sequence[ContextEntry | ContextEntryDict] | None + """ + A list of context keys and corresponding values for the simulation to + use. Whenever a context key is evaluated in one of the simulated IAM + permissions policies, the corresponding value is supplied. + """ + resource_handling_option: str | None + """ + Specifies the type of simulation to run. Different API operations that + support resource-based policies require different combinations of + resources. By specifying the type of simulation to run, you enable the + policy simulator to enforce the presence of the required resources to + ensure reliable simulation results. If your simulation does not match + one of the following scenarios, then you can omit this parameter. The + following list shows each of the supported scenario values and the + resources that you must define to run the simulation. + + Each of the Amazon EC2 scenarios requires that you specify instance, + image, and security group resources. If your scenario includes an EBS + volume, then you must specify that volume as a resource. If the Amazon + EC2 scenario includes VPC, then you must supply the network interface + resource. If it includes an IP subnet, then you must specify the subnet + resource. For more information on the Amazon EC2 scenario options, see + [Supported + platforms](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) + in the *Amazon EC2 User Guide*. + + - **EC2-VPC-InstanceStore** + + instance, image, security group, network interface + + - **EC2-VPC-InstanceStore-Subnet** + + instance, image, security group, network interface, subnet + + - **EC2-VPC-EBS** + + instance, image, security group, network interface, volume + + - **EC2-VPC-EBS-Subnet** + + instance, image, security group, network interface, subnet, volume + """ + max_items: int | None + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + marker: str | None + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + +@dataclass(kw_only=True) +class SimulateCustomPolicyOutput(_SerdeShape): + """ + Contains the response to a successful + [SimulatePrincipalPolicy](https://docs.aws.amazon.com/IAM/latest/APIReference/API_SimulatePrincipalPolicy.html) + or + [SimulateCustomPolicy](https://docs.aws.amazon.com/IAM/latest/APIReference/API_SimulateCustomPolicy.html) + request. + """ + + evaluation_results: list[EvaluationResult] | None = ... + """The results of the simulation.""" + is_truncated: bool = ... + """ + A flag that indicates whether there are more items to return. If your + results were truncated, you can make a subsequent pagination request + using the `Marker` request parameter to retrieve more items. Note that + IAM might return fewer than the `MaxItems` number of results even when + there are more results available. We recommend that you check + `IsTruncated` after every call to ensure that you receive all your + results. + """ + marker: str | None = ... + """ + When `IsTruncated` is `true`, this element is present and contains the + value to use for the `Marker` parameter in a subsequent pagination + request. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class SimulatePrincipalPolicyInput(_SerdeShape): + """Dataclass for SimulatePrincipalPolicyInput structure.""" + + policy_source_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of a user, group, or role whose policies + you want to include in the simulation. If you specify a user, group, or + role, the simulation includes all policies that are associated with that + entity. If you specify a user, the simulation also includes all policies + that are attached to any groups the user belongs to. + + The maximum length of the policy document that you can pass in this + operation, including whitespace, is listed below. To view the maximum + character counts of a managed policy with no whitespaces, see [IAM and + STS character + quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + policy_input_list: list[str] | None = ... + """ + An optional list of additional policy documents to include in the + simulation. Each document is specified as a string containing the + complete, valid JSON text of an IAM policy. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + permissions_boundary_policy_input_list: list[str] | None = ... + """ + The IAM permissions boundary policy to simulate. The permissions + boundary sets the maximum permissions that the entity can have. You can + input only one permissions boundary when you pass a policy to this + operation. An IAM entity can only have one permissions boundary in + effect at a time. For example, if a permissions boundary is attached to + an entity and you pass in a different permissions boundary policy using + this parameter, then the new permissions boundary policy is used for the + simulation. For more information about permissions boundaries, see + [Permissions boundaries for IAM + entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) + in the *IAM User Guide*. The policy input is specified as a string + containing the complete, valid JSON text of a permissions boundary + policy. + + The maximum length of the policy document that you can pass in this + operation, including whitespace, is listed below. To view the maximum + character counts of a managed policy with no whitespaces, see [IAM and + STS character + quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + policy_exclusion_list: list[PolicyIdentifier] | None = ... + """ + A list of policies to exclude from the simulation. Use this parameter to + test what the simulation result would be if a policy were removed, + without changing which policies are actually attached to the principal + identified by `PolicySourceArn`. + + Each entry is a + [PolicyIdentifier](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PolicyIdentifier.html) + that identifies one or more policies to exclude by policy type, by + Amazon Resource Name (ARN), or by the name of an inline policy and the + entity it is attached to. + + Syntactically invalid identifiers, such as malformed ARNs or wildcards + in disallowed positions, cause the request to fail with an + `InvalidInput` error. Syntactically valid identifiers that don't match + any attached policy are ignored. Resource control policies (RCPs) are + not supported in this release; identifiers that target RCPs are also + ignored. + """ + action_names: list[str] | None = ... + """ + A list of names of API operations to evaluate in the simulation. Each + operation is evaluated for each resource. Each operation must include + the service identifier, such as `iam:CreateUser`. + """ + resource_arns: list[str] | None = ... + """ + A list of ARNs of Amazon Web Services resources to include in the + simulation. If this parameter is not provided, then the value defaults + to `*` (all resources). Each API in the `ActionNames` parameter is + evaluated for each resource in this list. The simulation determines the + access result (allowed or denied) of each combination and reports it in + the response. You can simulate resources that don't exist in your + account. + + The simulation does not automatically retrieve policies for the + specified resources. If you want to include a resource policy in the + simulation, then you must include the policy as a string in the + `ResourcePolicy` parameter. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + + Note: + Simulation of resource-based policies isn't supported for IAM roles. + """ + resource_policy: str | None = ... + """ + A resource-based policy to include in the simulation provided as a + string. Each resource in the simulation is treated as if it had this + policy attached. You can include only one resource-based policy in a + simulation. + + The maximum length of the policy document that you can pass in this + operation, including whitespace, is listed below. To view the maximum + character counts of a managed policy with no whitespaces, see [IAM and + STS character + quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + + Note: + Simulation of resource-based policies isn't supported for IAM roles. + """ + resource_owner: str | None = ... + """ + An Amazon Web Services account ID that specifies the owner of any + simulated resource that does not identify its owner in the resource ARN. + Examples of resource ARNs include an S3 bucket or object. If + `ResourceOwner` is specified, it is also used as the account owner of + any `ResourcePolicy` included in the simulation. If the `ResourceOwner` + parameter is not specified, then the owner of the resources and the + resource policy defaults to the account of the identity provided in + `CallerArn`. This parameter is required only if you specify a + resource-based policy and account that owns the resource is different + from the account that owns the simulated calling user `CallerArn`. + """ + caller_arn: str | None = ... + """ + The ARN of the IAM user, group, or role that you want to specify as the + simulated caller of the API operations. If you do not specify a + `CallerArn`, it defaults to the ARN of the user, group, or role that you + specify in `PolicySourceArn`. If you include both a `PolicySourceArn` + (for example, `arn:aws:iam::123456789012:user/David`) and a `CallerArn` + (for example, `arn:aws:iam::123456789012:user/Bob`), the result is that + you simulate calling the API operations as Bob, as if Bob had David's + policies. + + You can specify the ARN of an IAM user, group, or role. You cannot + specify the ARN of an assumed role, federated user, or a service + principal. + + `CallerArn` is required if you include a `ResourcePolicy` and the + `PolicySourceArn` is not the ARN for an IAM user, group, or role. This + is required so that the resource-based policy's `Principal` element has + a value to use in evaluating the policy. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + context_entries: list[ContextEntry] | None = ... + """ + A list of context keys and corresponding values for the simulation to + use. Whenever a context key is evaluated in one of the simulated IAM + permissions policies, the corresponding value is supplied. + """ + resource_handling_option: str | None = ... + """ + Specifies the type of simulation to run. Different API operations that + support resource-based policies require different combinations of + resources. By specifying the type of simulation to run, you enable the + policy simulator to enforce the presence of the required resources to + ensure reliable simulation results. If your simulation does not match + one of the following scenarios, then you can omit this parameter. The + following list shows each of the supported scenario values and the + resources that you must define to run the simulation. + + Each of the Amazon EC2 scenarios requires that you specify instance, + image, and security group resources. If your scenario includes an EBS + volume, then you must specify that volume as a resource. If the Amazon + EC2 scenario includes VPC, then you must supply the network interface + resource. If it includes an IP subnet, then you must specify the subnet + resource. For more information on the Amazon EC2 scenario options, see + [Supported + platforms](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) + in the *Amazon EC2 User Guide*. + + - **EC2-VPC-InstanceStore** + + instance, image, security group, network interface + + - **EC2-VPC-InstanceStore-Subnet** + + instance, image, security group, network interface, subnet + + - **EC2-VPC-EBS** + + instance, image, security group, network interface, volume + + - **EC2-VPC-EBS-Subnet** + + instance, image, security group, network interface, subnet, volume + """ + max_items: int | None = ... + """ + Use this only when paginating results to indicate the maximum number of + items you want in the response. If additional items exist beyond the + maximum you specify, the `IsTruncated` response element is `true`. + + If you do not include this parameter, the number of items defaults to + 100. Note that IAM might return fewer results, even when there are more + results available. In that case, the `IsTruncated` response element + returns `true`, and `Marker` contains a value to include in the + subsequent call that tells the service where to continue from. + """ + marker: str | None = ... + """ + Use this parameter only when paginating results and only after you + receive a response indicating that the results are truncated. Set it to + the value of the `Marker` element in the response that you received to + indicate where the next call should start. + """ + +class SimulatePrincipalPolicyInputDict(TypedDict, total=False): + """Dictionary form of `SimulatePrincipalPolicyInput`.""" + + policy_source_arn: Required[str] + """ + The Amazon Resource Name (ARN) of a user, group, or role whose policies + you want to include in the simulation. If you specify a user, group, or + role, the simulation includes all policies that are associated with that + entity. If you specify a user, the simulation also includes all policies + that are attached to any groups the user belongs to. + + The maximum length of the policy document that you can pass in this + operation, including whitespace, is listed below. To view the maximum + character counts of a managed policy with no whitespaces, see [IAM and + STS character + quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + policy_input_list: Sequence[str] | None + """ + An optional list of additional policy documents to include in the + simulation. Each document is specified as a string containing the + complete, valid JSON text of an IAM policy. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + permissions_boundary_policy_input_list: Sequence[str] | None + """ + The IAM permissions boundary policy to simulate. The permissions + boundary sets the maximum permissions that the entity can have. You can + input only one permissions boundary when you pass a policy to this + operation. An IAM entity can only have one permissions boundary in + effect at a time. For example, if a permissions boundary is attached to + an entity and you pass in a different permissions boundary policy using + this parameter, then the new permissions boundary policy is used for the + simulation. For more information about permissions boundaries, see + [Permissions boundaries for IAM + entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html) + in the *IAM User Guide*. The policy input is specified as a string + containing the complete, valid JSON text of a permissions boundary + policy. + + The maximum length of the policy document that you can pass in this + operation, including whitespace, is listed below. To view the maximum + character counts of a managed policy with no whitespaces, see [IAM and + STS character + quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + policy_exclusion_list: Sequence[PolicyIdentifier | PolicyIdentifierDict] | None + """ + A list of policies to exclude from the simulation. Use this parameter to + test what the simulation result would be if a policy were removed, + without changing which policies are actually attached to the principal + identified by `PolicySourceArn`. + + Each entry is a + [PolicyIdentifier](https://docs.aws.amazon.com/IAM/latest/APIReference/API_PolicyIdentifier.html) + that identifies one or more policies to exclude by policy type, by + Amazon Resource Name (ARN), or by the name of an inline policy and the + entity it is attached to. + + Syntactically invalid identifiers, such as malformed ARNs or wildcards + in disallowed positions, cause the request to fail with an + `InvalidInput` error. Syntactically valid identifiers that don't match + any attached policy are ignored. Resource control policies (RCPs) are + not supported in this release; identifiers that target RCPs are also + ignored. + """ + action_names: Required[Sequence[str]] + """ + A list of names of API operations to evaluate in the simulation. Each + operation is evaluated for each resource. Each operation must include + the service identifier, such as `iam:CreateUser`. + """ + resource_arns: Sequence[str] | None + """ + A list of ARNs of Amazon Web Services resources to include in the + simulation. If this parameter is not provided, then the value defaults + to `*` (all resources). Each API in the `ActionNames` parameter is + evaluated for each resource in this list. The simulation determines the + access result (allowed or denied) of each combination and reports it in + the response. You can simulate resources that don't exist in your + account. + + The simulation does not automatically retrieve policies for the + specified resources. If you want to include a resource policy in the + simulation, then you must include the policy as a string in the + `ResourcePolicy` parameter. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + + Note: + Simulation of resource-based policies isn't supported for IAM roles. + """ + resource_policy: str | None + """ + A resource-based policy to include in the simulation provided as a + string. Each resource in the simulation is treated as if it had this + policy attached. You can include only one resource-based policy in a + simulation. + + The maximum length of the policy document that you can pass in this + operation, including whitespace, is listed below. To view the maximum + character counts of a managed policy with no whitespaces, see [IAM and + STS character + quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-quotas-entity-length). + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + + Note: + Simulation of resource-based policies isn't supported for IAM roles. + """ + resource_owner: str | None + """ + An Amazon Web Services account ID that specifies the owner of any + simulated resource that does not identify its owner in the resource ARN. + Examples of resource ARNs include an S3 bucket or object. If `ResourceOwner` is specified, it is also used as the account owner of any `ResourcePolicy` included in the simulation. If the `ResourceOwner` parameter is not specified, then the owner of the resources and the @@ -4717,7 +6565,7 @@ class SimulatePrincipalPolicyInput(_SerdeShape): resource-based policy and account that owns the resource is different from the account that owns the simulated calling user `CallerArn`. """ - caller_arn: str | None = ... + caller_arn: str | None """ The ARN of the IAM user, group, or role that you want to specify as the simulated caller of the API operations. If you do not specify a @@ -4741,13 +6589,13 @@ class SimulatePrincipalPolicyInput(_SerdeShape): (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *Amazon Web Services General Reference*. """ - context_entries: list[ContextEntry] | None = ... + context_entries: Sequence[ContextEntry | ContextEntryDict] | None """ A list of context keys and corresponding values for the simulation to use. Whenever a context key is evaluated in one of the simulated IAM permissions policies, the corresponding value is supplied. """ - resource_handling_option: str | None = ... + resource_handling_option: str | None """ Specifies the type of simulation to run. Different API operations that support resource-based policies require different combinations of @@ -4784,7 +6632,7 @@ class SimulatePrincipalPolicyInput(_SerdeShape): instance, image, security group, network interface, subnet, volume """ - max_items: int | None = ... + max_items: int | None """ Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the @@ -4796,7 +6644,7 @@ class SimulatePrincipalPolicyInput(_SerdeShape): returns `true`, and `Marker` contains a value to include in the subsequent call that tells the service where to continue from. """ - marker: str | None = ... + marker: str | None """ Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to @@ -5015,19 +6863,55 @@ class Tag(_SerdeShape): """ value: str """ - The value associated with this tag. For example, tags with a key name of - `Department` could have values such as `Human Resources`, `Accounting`, - and `Support`. Tags with a key name of `Cost Center` might have values - that consist of the number associated with the different cost centers in - your company. Typically, many resources have tags with the same key name - but with different values. + The value associated with this tag. For example, tags with a key name of + `Department` could have values such as `Human Resources`, `Accounting`, + and `Support`. Tags with a key name of `Cost Center` might have values + that consist of the number associated with the different cost centers in + your company. Typically, many resources have tags with the same key name + but with different values. + """ + +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """ + The key name that can be used to look up or retrieve the associated + value. For example, `Department` or `Cost Center` are common choices. + """ + value: Required[str] + """ + The value associated with this tag. For example, tags with a key name of + `Department` could have values such as `Human Resources`, `Accounting`, + and `Support`. Tags with a key name of `Cost Center` might have values + that consist of the number associated with the different cost centers in + your company. Typically, many resources have tags with the same key name + but with different values. + """ + +@dataclass(kw_only=True) +class TagInstanceProfileInput(_SerdeShape): + """Dataclass for TagInstanceProfileInput structure.""" + + instance_profile_name: str | None = ... + """ + The name of the IAM instance profile to which you want to add tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: list[Tag] | None = ... + """ + The list of tags that you want to attach to the IAM instance profile. + Each tag consists of a key name and an associated value. """ -@dataclass(kw_only=True) -class TagInstanceProfileInput(_SerdeShape): - """Dataclass for TagInstanceProfileInput structure.""" +class TagInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `TagInstanceProfileInput`.""" - instance_profile_name: str | None = ... + instance_profile_name: Required[str] """ The name of the IAM instance profile to which you want to add tags. @@ -5036,7 +6920,7 @@ class TagInstanceProfileInput(_SerdeShape): consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- """ - tags: list[Tag] | None = ... + tags: Required[Sequence[Tag | TagDict]] """ The list of tags that you want to attach to the IAM instance profile. Each tag consists of a key name and an associated value. @@ -5075,6 +6959,26 @@ class TagMFADeviceInput(_SerdeShape): Each tag consists of a key name and an associated value. """ +class TagMFADeviceInputDict(TypedDict, total=False): + """Dictionary form of `TagMFADeviceInput`.""" + + serial_number: Required[str] + """ + The unique identifier for the IAM virtual MFA device to which you want + to add tags. For virtual MFA devices, the serial number is the same as + the ARN. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The list of tags that you want to attach to the IAM virtual MFA device. + Each tag consists of a key name and an associated value. + """ + @dataclass(kw_only=True) class TagMFADeviceOutput(_SerdeShape): """Dataclass for TagMFADeviceOutput structure.""" @@ -5107,6 +7011,25 @@ class TagOpenIDConnectProviderInput(_SerdeShape): in IAM. Each tag consists of a key name and an associated value. """ +class TagOpenIDConnectProviderInputDict(TypedDict, total=False): + """Dictionary form of `TagOpenIDConnectProviderInput`.""" + + open_id_connect_provider_arn: Required[str] + """ + The ARN of the OIDC identity provider in IAM to which you want to add + tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The list of tags that you want to attach to the OIDC identity provider + in IAM. Each tag consists of a key name and an associated value. + """ + @dataclass(kw_only=True) class TagOpenIDConnectProviderOutput(_SerdeShape): """Dataclass for TagOpenIDConnectProviderOutput structure.""" @@ -5139,6 +7062,25 @@ class TagPolicyInput(_SerdeShape): policy. Each tag consists of a key name and an associated value. """ +class TagPolicyInputDict(TypedDict, total=False): + """Dictionary form of `TagPolicyInput`.""" + + policy_arn: Required[str] + """ + The ARN of the IAM customer managed policy to which you want to add + tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The list of tags that you want to attach to the IAM customer managed + policy. Each tag consists of a key name and an associated value. + """ + @dataclass(kw_only=True) class TagPolicyOutput(_SerdeShape): """Dataclass for TagPolicyOutput structure.""" @@ -5170,6 +7112,24 @@ class TagRoleInput(_SerdeShape): consists of a key name and an associated value. """ +class TagRoleInputDict(TypedDict, total=False): + """Dictionary form of `TagRoleInput`.""" + + role_name: Required[str] + """ + The name of the IAM role to which you want to add tags. + + This parameter accepts (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + consist of upper and lowercase alphanumeric characters with no spaces. + You can also include any of the following characters: _+=,.@- + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The list of tags that you want to attach to the IAM role. Each tag + consists of a key name and an associated value. + """ + @dataclass(kw_only=True) class TagRoleOutput(_SerdeShape): """Dataclass for TagRoleOutput structure.""" @@ -5202,6 +7162,25 @@ class TagSAMLProviderInput(_SerdeShape): in IAM. Each tag consists of a key name and an associated value. """ +class TagSAMLProviderInputDict(TypedDict, total=False): + """Dictionary form of `TagSAMLProviderInput`.""" + + saml_provider_arn: Required[str] + """ + The ARN of the SAML identity provider in IAM to which you want to add + tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The list of tags that you want to attach to the SAML identity provider + in IAM. Each tag consists of a key name and an associated value. + """ + @dataclass(kw_only=True) class TagSAMLProviderOutput(_SerdeShape): """Dataclass for TagSAMLProviderOutput structure.""" @@ -5233,6 +7212,24 @@ class TagServerCertificateInput(_SerdeShape): Each tag consists of a key name and an associated value. """ +class TagServerCertificateInputDict(TypedDict, total=False): + """Dictionary form of `TagServerCertificateInput`.""" + + server_certificate_name: Required[str] + """ + The name of the IAM server certificate to which you want to add tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The list of tags that you want to attach to the IAM server certificate. + Each tag consists of a key name and an associated value. + """ + @dataclass(kw_only=True) class TagServerCertificateOutput(_SerdeShape): """Dataclass for TagServerCertificateOutput structure.""" @@ -5277,6 +7274,24 @@ class TagUserInput(_SerdeShape): consists of a key name and an associated value. """ +class TagUserInputDict(TypedDict, total=False): + """Dictionary form of `TagUserInput`.""" + + user_name: Required[str] + """ + The name of the IAM user to which you want to add tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The list of tags that you want to attach to the IAM user. Each tag + consists of a key name and an associated value. + """ + @dataclass(kw_only=True) class TagUserOutput(_SerdeShape): """Dataclass for TagUserOutput structure.""" @@ -5388,6 +7403,24 @@ class UntagInstanceProfileInput(_SerdeShape): keys are removed from the specified instance profile. """ +class UntagInstanceProfileInputDict(TypedDict, total=False): + """Dictionary form of `UntagInstanceProfileInput`.""" + + instance_profile_name: Required[str] + """ + The name of the IAM instance profile from which you want to remove tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tag_keys: Required[Sequence[str]] + """ + A list of key names as a simple array of strings. The tags with matching + keys are removed from the specified instance profile. + """ + @dataclass(kw_only=True) class UntagInstanceProfileOutput(_SerdeShape): """Dataclass for UntagInstanceProfileOutput structure.""" @@ -5421,6 +7454,26 @@ class UntagMFADeviceInput(_SerdeShape): keys are removed from the specified instance profile. """ +class UntagMFADeviceInputDict(TypedDict, total=False): + """Dictionary form of `UntagMFADeviceInput`.""" + + serial_number: Required[str] + """ + The unique identifier for the IAM virtual MFA device from which you want + to remove tags. For virtual MFA devices, the serial number is the same + as the ARN. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tag_keys: Required[Sequence[str]] + """ + A list of key names as a simple array of strings. The tags with matching + keys are removed from the specified instance profile. + """ + @dataclass(kw_only=True) class UntagMFADeviceOutput(_SerdeShape): """Dataclass for UntagMFADeviceOutput structure.""" @@ -5452,6 +7505,24 @@ class UntagOpenIDConnectProviderInput(_SerdeShape): keys are removed from the specified OIDC provider. """ +class UntagOpenIDConnectProviderInputDict(TypedDict, total=False): + """Dictionary form of `UntagOpenIDConnectProviderInput`.""" + + open_id_connect_provider_arn: Required[str] + """ + The ARN of the OIDC provider in IAM from which you want to remove tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tag_keys: Required[Sequence[str]] + """ + A list of key names as a simple array of strings. The tags with matching + keys are removed from the specified OIDC provider. + """ + @dataclass(kw_only=True) class UntagOpenIDConnectProviderOutput(_SerdeShape): """Dataclass for UntagOpenIDConnectProviderOutput structure.""" @@ -5484,6 +7555,25 @@ class UntagPolicyInput(_SerdeShape): keys are removed from the specified policy. """ +class UntagPolicyInputDict(TypedDict, total=False): + """Dictionary form of `UntagPolicyInput`.""" + + policy_arn: Required[str] + """ + The ARN of the IAM customer managed policy from which you want to remove + tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tag_keys: Required[Sequence[str]] + """ + A list of key names as a simple array of strings. The tags with matching + keys are removed from the specified policy. + """ + @dataclass(kw_only=True) class UntagPolicyOutput(_SerdeShape): """Dataclass for UntagPolicyOutput structure.""" @@ -5515,6 +7605,24 @@ class UntagRoleInput(_SerdeShape): keys are removed from the specified role. """ +class UntagRoleInputDict(TypedDict, total=False): + """Dictionary form of `UntagRoleInput`.""" + + role_name: Required[str] + """ + The name of the IAM role from which you want to remove tags. + + This parameter accepts (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + consist of upper and lowercase alphanumeric characters with no spaces. + You can also include any of the following characters: _+=,.@- + """ + tag_keys: Required[Sequence[str]] + """ + A list of key names as a simple array of strings. The tags with matching + keys are removed from the specified role. + """ + @dataclass(kw_only=True) class UntagRoleOutput(_SerdeShape): """Dataclass for UntagRoleOutput structure.""" @@ -5547,6 +7655,25 @@ class UntagSAMLProviderInput(_SerdeShape): keys are removed from the specified SAML identity provider. """ +class UntagSAMLProviderInputDict(TypedDict, total=False): + """Dictionary form of `UntagSAMLProviderInput`.""" + + saml_provider_arn: Required[str] + """ + The ARN of the SAML identity provider in IAM from which you want to + remove tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tag_keys: Required[Sequence[str]] + """ + A list of key names as a simple array of strings. The tags with matching + keys are removed from the specified SAML identity provider. + """ + @dataclass(kw_only=True) class UntagSAMLProviderOutput(_SerdeShape): """Dataclass for UntagSAMLProviderOutput structure.""" @@ -5579,6 +7706,25 @@ class UntagServerCertificateInput(_SerdeShape): keys are removed from the specified IAM server certificate. """ +class UntagServerCertificateInputDict(TypedDict, total=False): + """Dictionary form of `UntagServerCertificateInput`.""" + + server_certificate_name: Required[str] + """ + The name of the IAM server certificate from which you want to remove + tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tag_keys: Required[Sequence[str]] + """ + A list of key names as a simple array of strings. The tags with matching + keys are removed from the specified IAM server certificate. + """ + @dataclass(kw_only=True) class UntagServerCertificateOutput(_SerdeShape): """Dataclass for UntagServerCertificateOutput structure.""" @@ -5610,6 +7756,24 @@ class UntagUserInput(_SerdeShape): keys are removed from the specified user. """ +class UntagUserInputDict(TypedDict, total=False): + """Dictionary form of `UntagUserInput`.""" + + user_name: Required[str] + """ + The name of the IAM user from which you want to remove tags. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + tag_keys: Required[Sequence[str]] + """ + A list of key names as a simple array of strings. The tags with matching + keys are removed from the specified user. + """ + @dataclass(kw_only=True) class UntagUserOutput(_SerdeShape): """Dataclass for UntagUserOutput structure.""" @@ -5643,7 +7807,34 @@ class UpdateAccessKeyInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters that can consist of any upper or lowercased letter or digit. """ - status: str | None = ... + status: str | None = ... + """ + The status you want to assign to the secret access key. `Active` means + that the key can be used for programmatic calls to Amazon Web Services, + while `Inactive` means that the key cannot be used. + """ + +class UpdateAccessKeyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAccessKeyInput`.""" + + user_name: str | None + """ + The name of the user whose key you want to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + access_key_id: Required[str] + """ + The access key ID of the secret access key you want to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + status: Required[str] """ The status you want to assign to the secret access key. `Active` means that the key can be used for programmatic calls to Amazon Web Services, @@ -5764,6 +7955,107 @@ class UpdateAccountPasswordPolicyInput(_SerdeShape): own expired console password using the CLI or API. """ +class UpdateAccountPasswordPolicyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAccountPasswordPolicyInput`.""" + + minimum_password_length: int | None + """ + The minimum number of characters allowed in an IAM user password. + + If you do not specify a value for this parameter, then the operation + uses the default value of `6`. + """ + require_symbols: bool | None + """ + Specifies whether IAM user passwords must contain at least one of the + following non-alphanumeric characters: + + ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' + + If you do not specify a value for this parameter, then the operation + uses the default value of `false`. The result is that passwords do not + require at least one symbol character. + """ + require_numbers: bool | None + """ + Specifies whether IAM user passwords must contain at least one numeric + character (0 to 9). + + If you do not specify a value for this parameter, then the operation + uses the default value of `false`. The result is that passwords do not + require at least one numeric character. + """ + require_uppercase_characters: bool | None + """ + Specifies whether IAM user passwords must contain at least one uppercase + character from the ISO basic Latin alphabet (A to Z). + + If you do not specify a value for this parameter, then the operation + uses the default value of `false`. The result is that passwords do not + require at least one uppercase character. + """ + require_lowercase_characters: bool | None + """ + Specifies whether IAM user passwords must contain at least one lowercase + character from the ISO basic Latin alphabet (a to z). + + If you do not specify a value for this parameter, then the operation + uses the default value of `false`. The result is that passwords do not + require at least one lowercase character. + """ + allow_users_to_change_password: bool | None + """ + Allows all IAM users in your account to use the Amazon Web Services + Management Console to change their own passwords. For more information, + see [Permitting IAM users to change their own + passwords](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_enable-user-change.html) + in the *IAM User Guide*. + + If you do not specify a value for this parameter, then the operation + uses the default value of `false`. The result is that IAM users in the + account do not automatically have permissions to change their own + password. + """ + max_password_age: int | None + """ + The number of days that an IAM user password is valid. + + If you do not specify a value for this parameter, then the operation + uses the default value of `0`. The result is that IAM user passwords + never expire. + """ + password_reuse_prevention: int | None + """ + Specifies the number of previous passwords that IAM users are prevented + from reusing. + + If you do not specify a value for this parameter, then the operation + uses the default value of `0`. The result is that IAM users are not + prevented from reusing previous passwords. + """ + hard_expiry: bool | None + """ + Prevents IAM users who are accessing the account via the Amazon Web + Services Management Console from setting a new console password after + their password has expired. The IAM user cannot access the console until + an administrator resets the password. + + If you do not specify a value for this parameter, then the operation + uses the default value of `false`. The result is that IAM users can + change their passwords after they expire and continue to sign in as the + user. + + Note: + In the Amazon Web Services Management Console, the custom password + policy option **Allow users to change their own password** gives IAM + users permissions to `iam:ChangePassword` for only their user and to the + `iam:GetAccountPasswordPolicy` action. This option does not attach a + permissions policy to each user, rather the permissions are applied at + the account-level for all users by IAM. IAM users with + `iam:ChangePassword` permission and active access keys can reset their + own expired console password using the CLI or API. + """ + @dataclass(kw_only=True) class UpdateAccountPasswordPolicyOutput(_SerdeShape): """Dataclass for UpdateAccountPasswordPolicyOutput structure.""" @@ -5802,13 +8094,47 @@ class UpdateAssumeRolePolicyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + +class UpdateAssumeRolePolicyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAssumeRolePolicyInput`.""" + + role_name: Required[str] + """ + The name of the role to update with the new policy. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + policy_document: Required[str] + """ + The policy that grants an entity permission to assume the role. + + You must provide policies in JSON format in IAM. However, for + CloudFormation templates formatted in YAML, you can provide the policy + in JSON or YAML format. CloudFormation always converts a YAML policy to + JSON format before submitting it to IAM. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ @dataclass(kw_only=True) @@ -5832,6 +8158,14 @@ class UpdateDelegationRequestInput(_SerdeShape): notes: str | None = ... """Additional notes or comments to add to the delegation request.""" +class UpdateDelegationRequestInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDelegationRequestInput`.""" + + delegation_request_id: Required[str] + """The unique identifier of the delegation request to update.""" + notes: str | None + """Additional notes or comments to add to the delegation request.""" + @dataclass(kw_only=True) class UpdateDelegationRequestOutput(_SerdeShape): """Dataclass for UpdateDelegationRequestOutput structure.""" @@ -5867,8 +8201,8 @@ class UpdateGroupInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ new_group_name: str | None = ... @@ -5881,6 +8215,42 @@ class UpdateGroupInput(_SerdeShape): create resources named both \"MyResource\" and \"myresource\". """ +class UpdateGroupInputDict(TypedDict, total=False): + """Dictionary form of `UpdateGroupInput`.""" + + group_name: Required[str] + """ + Name of the IAM group to update. If you're changing the name of the + group, this is the original name. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + new_path: str | None + """ + New path for the IAM group. Only include this if changing the group's + path. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + new_group_name: str | None + """ + New name for the IAM group. Only include this if changing the group's + name. + + IAM user, group, role, and policy names must be unique within the + account. Names are not distinguished by case. For example, you cannot + create resources named both \"MyResource\" and \"myresource\". + """ + @dataclass(kw_only=True) class UpdateGroupOutput(_SerdeShape): """Dataclass for UpdateGroupOutput structure.""" @@ -5914,13 +8284,13 @@ class UpdateLoginProfileInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) However, the format can be further restricted by the account administrator by setting a password policy on the Amazon Web Services @@ -5933,6 +8303,45 @@ class UpdateLoginProfileInput(_SerdeShape): IAM user to set a new password on next sign-in. """ +class UpdateLoginProfileInputDict(TypedDict, total=False): + """Dictionary form of `UpdateLoginProfileInput`.""" + + user_name: Required[str] + """ + The name of the user whose password you want to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + password: str | None + """ + The new password for the specified IAM user. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + + However, the format can be further restricted by the account + administrator by setting a password policy on the Amazon Web Services + account. For more information, see + [UpdateAccountPasswordPolicy](https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAccountPasswordPolicy.html). + """ + password_reset_required: bool | None + """ + Allows this new password to be used only once by requiring the specified + IAM user to set a new password on next sign-in. + """ + @dataclass(kw_only=True) class UpdateLoginProfileOutput(_SerdeShape): """Dataclass for UpdateLoginProfileOutput structure.""" @@ -5968,6 +8377,28 @@ class UpdateOpenIDConnectProviderThumbprintInput(_SerdeShape): [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html). """ +class UpdateOpenIDConnectProviderThumbprintInputDict(TypedDict, total=False): + """Dictionary form of `UpdateOpenIDConnectProviderThumbprintInput`.""" + + open_id_connect_provider_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM OIDC provider resource object + for which you want to update the thumbprint. You can get a list of OIDC + provider ARNs by using the + [ListOpenIDConnectProviders](https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListOpenIDConnectProviders.html) + operation. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + thumbprint_list: Required[Sequence[str]] + """ + A list of certificate thumbprints that are associated with the specified + IAM OpenID Connect provider. For more information, see + [CreateOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html). + """ + @dataclass(kw_only=True) class UpdateOpenIDConnectProviderThumbprintOutput(_SerdeShape): """Dataclass for UpdateOpenIDConnectProviderThumbprintOutput structure.""" @@ -5989,6 +8420,14 @@ class UpdateRoleDescriptionInput(_SerdeShape): description: str | None = ... """The new description that you want to apply to the specified role.""" +class UpdateRoleDescriptionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRoleDescriptionInput`.""" + + role_name: Required[str] + """The name of the role that you want to modify.""" + description: Required[str] + """The new description that you want to apply to the specified role.""" + @dataclass(kw_only=True) class UpdateRoleDescriptionOutput(_SerdeShape): """Dataclass for UpdateRoleDescriptionOutput structure.""" @@ -6035,6 +8474,37 @@ class UpdateRoleInput(_SerdeShape): role are not subject to the specified maximum session duration. """ +class UpdateRoleInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRoleInput`.""" + + role_name: Required[str] + """The name of the role that you want to modify.""" + description: str | None + """The new description that you want to apply to the specified role.""" + max_session_duration: int | None + """ + The maximum session duration (in seconds) that you want to set for the + specified role. If you do not specify a value for this setting, the + default value of one hour is applied. This setting can have a value from + 1 hour to 12 hours. + + Anyone who assumes the role from the CLI or API can use the + `DurationSeconds` API parameter or the `duration-seconds` CLI parameter + to request a longer session. The `MaxSessionDuration` setting determines + the maximum duration that can be requested using the `DurationSeconds` + parameter. If users don't specify a value for the `DurationSeconds` + parameter, their security credentials are valid for one hour by default. + This applies when you use the `AssumeRole*` API operations or the + `assume-role*` CLI operations but does not apply when you use those + operations to create a console URL. For more information, see [Using IAM + roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html) + in the *IAM User Guide*. + + Note: + IAM role credentials provided by Amazon EC2 instances assigned to the + role are not subject to the specified maximum session duration. + """ + @dataclass(kw_only=True) class UpdateRoleOutput(_SerdeShape): """Dataclass for UpdateRoleOutput structure.""" @@ -6047,11 +8517,42 @@ class UpdateRoleOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class UpdateSAMLProviderInput(_SerdeShape): - """Dataclass for UpdateSAMLProviderInput structure.""" +@dataclass(kw_only=True) +class UpdateSAMLProviderInput(_SerdeShape): + """Dataclass for UpdateSAMLProviderInput structure.""" + + saml_metadata_document: str | None = ... + """ + An XML document generated by an identity provider (IdP) that supports + SAML 2.0. The document includes the issuer's name, expiration + information, and keys that can be used to validate the SAML + authentication response (assertions) that are received from the IdP. You + must generate the metadata document using the identity management + software that is used as your IdP. + """ + saml_provider_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the SAML provider to update. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + assertion_encryption_mode: str | None = ... + """Specifies the encryption setting for the SAML provider.""" + add_private_key: str | None = ... + """ + Specifies the new private key from your external identity provider. The + private key must be a .pem file that uses AES-GCM or AES-CBC encryption + algorithm to decrypt SAML assertions. + """ + remove_private_key: str | None = ... + """The Key ID of the private key to remove.""" + +class UpdateSAMLProviderInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSAMLProviderInput`.""" - saml_metadata_document: str | None = ... + saml_metadata_document: str | None """ An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration @@ -6060,7 +8561,7 @@ class UpdateSAMLProviderInput(_SerdeShape): must generate the metadata document using the identity management software that is used as your IdP. """ - saml_provider_arn: str | None = ... + saml_provider_arn: Required[str] """ The Amazon Resource Name (ARN) of the SAML provider to update. @@ -6068,15 +8569,15 @@ class UpdateSAMLProviderInput(_SerdeShape): (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *Amazon Web Services General Reference*. """ - assertion_encryption_mode: str | None = ... + assertion_encryption_mode: str | None """Specifies the encryption setting for the SAML provider.""" - add_private_key: str | None = ... + add_private_key: str | None """ Specifies the new private key from your external identity provider. The private key must be a .pem file that uses AES-GCM or AES-CBC encryption algorithm to decrypt SAML assertions. """ - remove_private_key: str | None = ... + remove_private_key: str | None """The Key ID of the private key to remove.""" @dataclass(kw_only=True) @@ -6119,8 +8620,8 @@ class UpdateServerCertificateInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ new_server_certificate_name: str | None = ... @@ -6135,6 +8636,43 @@ class UpdateServerCertificateInput(_SerdeShape): spaces. You can also include any of the following characters: _+=,.@- """ +class UpdateServerCertificateInputDict(TypedDict, total=False): + """Dictionary form of `UpdateServerCertificateInput`.""" + + server_certificate_name: Required[str] + """ + The name of the server certificate that you want to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + new_path: str | None + """ + The new path for the server certificate. Include this only if you are + updating the server certificate's path. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + new_server_certificate_name: str | None + """ + The new name for the server certificate. Include this only if you are + updating the server certificate's name. The name of the certificate + cannot contain any spaces. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + @dataclass(kw_only=True) class UpdateServerCertificateOutput(_SerdeShape): """Dataclass for UpdateServerCertificateOutput structure.""" @@ -6173,6 +8711,31 @@ class UpdateServiceSpecificCredentialInput(_SerdeShape): status: str | None = ... """The status to be assigned to the service-specific credential.""" +class UpdateServiceSpecificCredentialInputDict(TypedDict, total=False): + """Dictionary form of `UpdateServiceSpecificCredentialInput`.""" + + user_name: str | None + """ + The name of the IAM user associated with the service-specific + credential. If you do not specify this value, then the operation assumes + the user whose credentials are used to call the operation. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + service_specific_credential_id: Required[str] + """ + The unique identifier of the service-specific credential. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + status: Required[str] + """The status to be assigned to the service-specific credential.""" + @dataclass(kw_only=True) class UpdateServiceSpecificCredentialOutput(_SerdeShape): """Dataclass for UpdateServiceSpecificCredentialOutput structure.""" @@ -6213,6 +8776,33 @@ class UpdateSigningCertificateInput(_SerdeShape): Services `Inactive` means that the certificate cannot be used. """ +class UpdateSigningCertificateInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSigningCertificateInput`.""" + + user_name: str | None + """ + The name of the IAM user the signing certificate belongs to. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + certificate_id: Required[str] + """ + The ID of the signing certificate you want to update. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + status: Required[str] + """ + The status you want to assign to the certificate. `Active` means that + the certificate can be used for programmatic calls to Amazon Web + Services `Inactive` means that the certificate cannot be used. + """ + @dataclass(kw_only=True) class UpdateSigningCertificateOutput(_SerdeShape): """Dataclass for UpdateSigningCertificateOutput structure.""" @@ -6253,6 +8843,33 @@ class UpdateSSHPublicKeyInput(_SerdeShape): means that the key cannot be used. """ +class UpdateSSHPublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSSHPublicKeyInput`.""" + + user_name: Required[str] + """ + The name of the IAM user associated with the SSH public key. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + ssh_public_key_id: Required[str] + """ + The unique identifier for the SSH public key. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters that + can consist of any upper or lowercased letter or digit. + """ + status: Required[str] + """ + The status to assign to the SSH public key. `Active` means that the key + can be used for authentication with an CodeCommit repository. `Inactive` + means that the key cannot be used. + """ + @dataclass(kw_only=True) class UpdateSSHPublicKeyOutput(_SerdeShape): """Dataclass for UpdateSSHPublicKeyOutput structure.""" @@ -6288,8 +8905,8 @@ class UpdateUserInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. """ new_user_name: str | None = ... @@ -6302,6 +8919,42 @@ class UpdateUserInput(_SerdeShape): create resources named both \"MyResource\" and \"myresource\". """ +class UpdateUserInputDict(TypedDict, total=False): + """Dictionary form of `UpdateUserInput`.""" + + user_name: Required[str] + """ + Name of the user to update. If you're changing the name of the user, + this is the original user name. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + new_path: str | None + """ + New path for the IAM user. Include this parameter only if you're + changing the user's path. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + """ + new_user_name: str | None + """ + New name for the user. Include this parameter only if you're changing + the user's name. + + IAM user, group, role, and policy names must be unique within the + account. Names are not distinguished by case. For example, you cannot + create resources named both \"MyResource\" and \"myresource\". + """ + @dataclass(kw_only=True) class UpdateUserOutput(_SerdeShape): """Dataclass for UpdateUserOutput structure.""" @@ -6330,8 +8983,8 @@ class UploadServerCertificateInput(_SerdeShape): pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any - ASCII character from the ! (`\u0021`) through the DEL character - (`\u007f`), including most punctuation characters, digits, and upper and + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and lowercased letters. Note: @@ -6358,13 +9011,13 @@ class UploadServerCertificateInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ private_key: str | None = ... """ @@ -6374,13 +9027,13 @@ class UploadServerCertificateInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ certificate_chain: str | None = ... """ @@ -6391,13 +9044,13 @@ class UploadServerCertificateInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ tags: list[Tag] | None = ... """ @@ -6413,6 +9066,104 @@ class UploadServerCertificateInput(_SerdeShape): created. """ +class UploadServerCertificateInputDict(TypedDict, total=False): + """Dictionary form of `UploadServerCertificateInput`.""" + + path: str | None + """ + The path for the server certificate. For more information about paths, + see [IAM + identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) + in the *IAM User Guide*. + + This parameter is optional. If it is not included, it defaults to a + slash (/). This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of either a forward slash (/) by itself or a string that must + begin and end with forward slashes. In addition, it can contain any + ASCII character from the ! (`\\u0021`) through the DEL character + (`\\u007F`), including most punctuation characters, digits, and upper and + lowercased letters. + + Note: + If you are uploading a server certificate specifically for use with + Amazon CloudFront distributions, you must specify a path using the + `path` parameter. The path must begin with `/cloudfront` and must + include a trailing slash (for example, `/cloudfront/test/`). + """ + server_certificate_name: Required[str] + """ + The name for the server certificate. Do not include the path in this + value. The name of the certificate cannot contain any spaces. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + certificate_body: Required[str] + """ + The contents of the public key certificate in PEM-encoded format. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + private_key: Required[str] + """ + The contents of the private key in PEM-encoded format. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + certificate_chain: str | None + """ + The contents of the certificate chain. This is typically a concatenation + of the PEM-encoded public key certificates of the chain. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags that you want to attach to the new IAM server certificate + resource. Each tag consists of a key name and an associated value. For + more information about tagging, see [Tagging IAM + resources](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + in the *IAM User Guide*. + + Note: + If any one of the tags is invalid or if you exceed the allowed maximum + number of tags, then the entire request fails and the resource is not + created. + """ + @dataclass(kw_only=True) class UploadServerCertificateOutput(_SerdeShape): """ @@ -6463,13 +9214,42 @@ class UploadSigningCertificateInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + +class UploadSigningCertificateInputDict(TypedDict, total=False): + """Dictionary form of `UploadSigningCertificateInput`.""" + + user_name: str | None + """ + The name of the user the signing certificate is for. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + certificate_body: Required[str] + """ + The contents of the signing certificate. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ @dataclass(kw_only=True) @@ -6514,13 +9294,45 @@ class UploadSSHPublicKeyInput(_SerdeShape): this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character - (`\u0020`) through the end of the ASCII character range + (`\\u0020`) through the end of the ASCII character range + + - The printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`) + + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) + """ + +class UploadSSHPublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `UploadSSHPublicKeyInput`.""" + + user_name: Required[str] + """ + The name of the IAM user to associate the SSH public key with. + + This parameter allows (through its [regex + pattern](http://wikipedia.org/wiki/regex)) a string of characters + consisting of upper and lowercase alphanumeric characters with no + spaces. You can also include any of the following characters: _+=,.@- + """ + ssh_public_key_body: Required[str] + """ + The SSH public key. The public key must be encoded in ssh-rsa format or + PEM format. The minimum bit-length of the public key is 2048 bits. For + example, you can generate a 2048-bit key, and the resulting PEM file is + 1679 bytes long. + + The [regex pattern](http://wikipedia.org/wiki/regex) used to validate + this parameter is a string of characters consisting of the following: + + - Any printable ASCII character ranging from the space character + (`\\u0020`) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`) + character set (through `\\u00FF`) - - The special characters tab (`\u0009`), line feed (`\u000a`), and - carriage return (`\u000d`) + - The special characters tab (`\\u0009`), line feed (`\\u000A`), and + carriage return (`\\u000D`) """ @dataclass(kw_only=True) diff --git a/clients/aws-sdk-iam/src/aws_sdk_iam/_private/schemas.py b/clients/aws-sdk-iam/src/aws_sdk_iam/_private/schemas.py index d0a0a3b81..2fbbc32d8 100644 --- a/clients/aws-sdk-iam/src/aws_sdk_iam/_private/schemas.py +++ b/clients/aws-sdk-iam/src/aws_sdk_iam/_private/schemas.py @@ -931,7 +931,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-iam/src/aws_sdk_iam/aio/client.py b/clients/aws-sdk-iam/src/aws_sdk_iam/aio/client.py index ea5ae9895..be038d617 100644 --- a/clients/aws-sdk-iam/src/aws_sdk_iam/aio/client.py +++ b/clients/aws-sdk-iam/src/aws_sdk_iam/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,365 +20,185 @@ if TYPE_CHECKING: from ..models import ( - AcceptDelegationRequestInput, AcceptDelegationRequestOutput, - AcquireRoleInput, AcquireRoleOutput, - AddClientIDToOpenIDConnectProviderInput, AddClientIDToOpenIDConnectProviderOutput, - AddRoleToInstanceProfileInput, AddRoleToInstanceProfileOutput, - AddUserToGroupInput, AddUserToGroupOutput, - AssociateDelegationRequestInput, AssociateDelegationRequestOutput, - AttachGroupPolicyInput, AttachGroupPolicyOutput, - AttachRolePolicyInput, AttachRolePolicyOutput, - AttachUserPolicyInput, AttachUserPolicyOutput, - ChangePasswordInput, ChangePasswordOutput, - CreateAccessKeyInput, CreateAccessKeyOutput, - CreateAccountAliasInput, CreateAccountAliasOutput, - CreateDelegationRequestInput, CreateDelegationRequestOutput, - CreateGroupInput, CreateGroupOutput, - CreateInstanceProfileInput, CreateInstanceProfileOutput, - CreateLoginProfileInput, CreateLoginProfileOutput, - CreateOpenIDConnectProviderInput, CreateOpenIDConnectProviderOutput, - CreatePolicyInput, CreatePolicyOutput, - CreatePolicyVersionInput, CreatePolicyVersionOutput, - CreateRoleInput, CreateRoleOutput, - CreateSAMLProviderInput, CreateSAMLProviderOutput, - CreateServiceLinkedRoleInput, CreateServiceLinkedRoleOutput, - CreateServiceSpecificCredentialInput, CreateServiceSpecificCredentialOutput, - CreateUserInput, CreateUserOutput, - CreateVirtualMFADeviceInput, CreateVirtualMFADeviceOutput, - DeactivateMFADeviceInput, DeactivateMFADeviceOutput, - DeleteAccessKeyInput, DeleteAccessKeyOutput, - DeleteAccountAliasInput, DeleteAccountAliasOutput, - DeleteAccountPasswordPolicyInput, DeleteAccountPasswordPolicyOutput, - DeleteGroupInput, DeleteGroupOutput, - DeleteGroupPolicyInput, DeleteGroupPolicyOutput, - DeleteInstanceProfileInput, DeleteInstanceProfileOutput, - DeleteLoginProfileInput, DeleteLoginProfileOutput, - DeleteOpenIDConnectProviderInput, DeleteOpenIDConnectProviderOutput, - DeletePolicyInput, DeletePolicyOutput, - DeletePolicyVersionInput, DeletePolicyVersionOutput, - DeleteRoleInput, DeleteRoleOutput, - DeleteRolePermissionsBoundaryInput, DeleteRolePermissionsBoundaryOutput, - DeleteRolePolicyInput, DeleteRolePolicyOutput, - DeleteSAMLProviderInput, DeleteSAMLProviderOutput, - DeleteSSHPublicKeyInput, DeleteSSHPublicKeyOutput, - DeleteServerCertificateInput, DeleteServerCertificateOutput, - DeleteServiceLinkedRoleInput, DeleteServiceLinkedRoleOutput, - DeleteServiceSpecificCredentialInput, DeleteServiceSpecificCredentialOutput, - DeleteSigningCertificateInput, DeleteSigningCertificateOutput, - DeleteUserInput, DeleteUserOutput, - DeleteUserPermissionsBoundaryInput, DeleteUserPermissionsBoundaryOutput, - DeleteUserPolicyInput, DeleteUserPolicyOutput, - DeleteVirtualMFADeviceInput, DeleteVirtualMFADeviceOutput, - DetachGroupPolicyInput, DetachGroupPolicyOutput, - DetachRolePolicyInput, DetachRolePolicyOutput, - DetachUserPolicyInput, DetachUserPolicyOutput, - DisableOrganizationsRootCredentialsManagementInput, DisableOrganizationsRootCredentialsManagementOutput, - DisableOrganizationsRootSessionsInput, DisableOrganizationsRootSessionsOutput, - DisableOutboundWebIdentityFederationInput, DisableOutboundWebIdentityFederationOutput, - EnableMFADeviceInput, EnableMFADeviceOutput, - EnableOrganizationsRootCredentialsManagementInput, EnableOrganizationsRootCredentialsManagementOutput, - EnableOrganizationsRootSessionsInput, EnableOrganizationsRootSessionsOutput, - EnableOutboundWebIdentityFederationInput, EnableOutboundWebIdentityFederationOutput, - GenerateCredentialReportInput, GenerateCredentialReportOutput, - GenerateOrganizationsAccessReportInput, GenerateOrganizationsAccessReportOutput, - GenerateServiceLastAccessedDetailsInput, GenerateServiceLastAccessedDetailsOutput, - GetAccessKeyLastUsedInput, GetAccessKeyLastUsedOutput, - GetAccountAuthorizationDetailsInput, GetAccountAuthorizationDetailsOutput, - GetAccountPasswordPolicyInput, GetAccountPasswordPolicyOutput, - GetAccountPropertiesInput, GetAccountPropertiesOutput, - GetAccountSummaryInput, GetAccountSummaryOutput, - GetContextKeysForCustomPolicyInput, GetContextKeysForCustomPolicyOutput, - GetContextKeysForPrincipalPolicyInput, GetContextKeysForPrincipalPolicyOutput, - GetCredentialReportInput, GetCredentialReportOutput, - GetDelegationRequestInput, GetDelegationRequestOutput, - GetGroupInput, GetGroupOutput, - GetGroupPolicyInput, GetGroupPolicyOutput, - GetHumanReadableSummaryInput, GetHumanReadableSummaryOutput, - GetInstanceProfileInput, GetInstanceProfileOutput, - GetLoginProfileInput, GetLoginProfileOutput, - GetMFADeviceInput, GetMFADeviceOutput, - GetOpenIDConnectProviderInput, GetOpenIDConnectProviderOutput, - GetOrganizationsAccessReportInput, GetOrganizationsAccessReportOutput, - GetOutboundWebIdentityFederationInfoInput, GetOutboundWebIdentityFederationInfoOutput, - GetPolicyInput, GetPolicyOutput, - GetPolicyVersionInput, GetPolicyVersionOutput, - GetRoleInput, GetRoleOutput, - GetRolePolicyInput, GetRolePolicyOutput, - GetRoleTemplateVersionInput, GetRoleTemplateVersionOutput, - GetSAMLProviderInput, GetSAMLProviderOutput, - GetSSHPublicKeyInput, GetSSHPublicKeyOutput, - GetServerCertificateInput, GetServerCertificateOutput, - GetServiceLastAccessedDetailsInput, GetServiceLastAccessedDetailsOutput, - GetServiceLastAccessedDetailsWithEntitiesInput, GetServiceLastAccessedDetailsWithEntitiesOutput, - GetServiceLinkedRoleDeletionStatusInput, GetServiceLinkedRoleDeletionStatusOutput, - GetUserInput, GetUserOutput, - GetUserPolicyInput, GetUserPolicyOutput, - ListAccessKeysInput, ListAccessKeysOutput, - ListAccountAliasesInput, ListAccountAliasesOutput, - ListAttachedGroupPoliciesInput, ListAttachedGroupPoliciesOutput, - ListAttachedRolePoliciesInput, ListAttachedRolePoliciesOutput, - ListAttachedUserPoliciesInput, ListAttachedUserPoliciesOutput, - ListDelegationRequestsInput, ListDelegationRequestsOutput, - ListEntitiesForPolicyInput, ListEntitiesForPolicyOutput, - ListGroupPoliciesInput, ListGroupPoliciesOutput, - ListGroupsForUserInput, ListGroupsForUserOutput, - ListGroupsInput, ListGroupsOutput, - ListInstanceProfileTagsInput, ListInstanceProfileTagsOutput, - ListInstanceProfilesForRoleInput, ListInstanceProfilesForRoleOutput, - ListInstanceProfilesInput, ListInstanceProfilesOutput, - ListMFADeviceTagsInput, ListMFADeviceTagsOutput, - ListMFADevicesInput, ListMFADevicesOutput, - ListOpenIDConnectProviderTagsInput, ListOpenIDConnectProviderTagsOutput, - ListOpenIDConnectProvidersInput, ListOpenIDConnectProvidersOutput, - ListOrganizationsFeaturesInput, ListOrganizationsFeaturesOutput, - ListPoliciesGrantingServiceAccessInput, ListPoliciesGrantingServiceAccessOutput, - ListPoliciesInput, ListPoliciesOutput, - ListPolicyTagsInput, ListPolicyTagsOutput, - ListPolicyVersionsInput, ListPolicyVersionsOutput, - ListRolePoliciesInput, ListRolePoliciesOutput, - ListRoleTagsInput, ListRoleTagsOutput, - ListRolesInput, ListRolesOutput, - ListSAMLProviderTagsInput, ListSAMLProviderTagsOutput, - ListSAMLProvidersInput, ListSAMLProvidersOutput, - ListSSHPublicKeysInput, ListSSHPublicKeysOutput, - ListServerCertificateTagsInput, ListServerCertificateTagsOutput, - ListServerCertificatesInput, ListServerCertificatesOutput, - ListServiceSpecificCredentialsInput, ListServiceSpecificCredentialsOutput, - ListSigningCertificatesInput, ListSigningCertificatesOutput, - ListUserPoliciesInput, ListUserPoliciesOutput, - ListUserTagsInput, ListUserTagsOutput, - ListUsersInput, ListUsersOutput, - ListVirtualMFADevicesInput, ListVirtualMFADevicesOutput, - PutAccountPropertiesInput, PutAccountPropertiesOutput, - PutGroupPolicyInput, PutGroupPolicyOutput, - PutRolePermissionsBoundaryInput, PutRolePermissionsBoundaryOutput, - PutRolePolicyInput, PutRolePolicyOutput, - PutUserPermissionsBoundaryInput, PutUserPermissionsBoundaryOutput, - PutUserPolicyInput, PutUserPolicyOutput, - RejectDelegationRequestInput, RejectDelegationRequestOutput, - RemoveClientIDFromOpenIDConnectProviderInput, RemoveClientIDFromOpenIDConnectProviderOutput, - RemoveRoleFromInstanceProfileInput, RemoveRoleFromInstanceProfileOutput, - RemoveUserFromGroupInput, RemoveUserFromGroupOutput, - ResetServiceSpecificCredentialInput, ResetServiceSpecificCredentialOutput, - ResyncMFADeviceInput, ResyncMFADeviceOutput, - SendDelegationTokenInput, SendDelegationTokenOutput, - SetDefaultPolicyVersionInput, SetDefaultPolicyVersionOutput, - SetSecurityTokenServicePreferencesInput, SetSecurityTokenServicePreferencesOutput, - SimulateCustomPolicyInput, SimulateCustomPolicyOutput, - SimulatePrincipalPolicyInput, SimulatePrincipalPolicyOutput, - TagInstanceProfileInput, TagInstanceProfileOutput, - TagMFADeviceInput, TagMFADeviceOutput, - TagOpenIDConnectProviderInput, TagOpenIDConnectProviderOutput, - TagPolicyInput, TagPolicyOutput, - TagRoleInput, TagRoleOutput, - TagSAMLProviderInput, TagSAMLProviderOutput, - TagServerCertificateInput, TagServerCertificateOutput, - TagUserInput, TagUserOutput, - UntagInstanceProfileInput, UntagInstanceProfileOutput, - UntagMFADeviceInput, UntagMFADeviceOutput, - UntagOpenIDConnectProviderInput, UntagOpenIDConnectProviderOutput, - UntagPolicyInput, UntagPolicyOutput, - UntagRoleInput, UntagRoleOutput, - UntagSAMLProviderInput, UntagSAMLProviderOutput, - UntagServerCertificateInput, UntagServerCertificateOutput, - UntagUserInput, UntagUserOutput, - UpdateAccessKeyInput, UpdateAccessKeyOutput, - UpdateAccountPasswordPolicyInput, UpdateAccountPasswordPolicyOutput, - UpdateAssumeRolePolicyInput, UpdateAssumeRolePolicyOutput, - UpdateDelegationRequestInput, UpdateDelegationRequestOutput, - UpdateGroupInput, UpdateGroupOutput, - UpdateLoginProfileInput, UpdateLoginProfileOutput, - UpdateOpenIDConnectProviderThumbprintInput, UpdateOpenIDConnectProviderThumbprintOutput, - UpdateRoleDescriptionInput, UpdateRoleDescriptionOutput, - UpdateRoleInput, UpdateRoleOutput, - UpdateSAMLProviderInput, UpdateSAMLProviderOutput, - UpdateSSHPublicKeyInput, UpdateSSHPublicKeyOutput, - UpdateServerCertificateInput, UpdateServerCertificateOutput, - UpdateServiceSpecificCredentialInput, UpdateServiceSpecificCredentialOutput, - UpdateSigningCertificateInput, UpdateSigningCertificateOutput, - UpdateUserInput, UpdateUserOutput, - UploadSSHPublicKeyInput, UploadSSHPublicKeyOutput, - UploadServerCertificateInput, UploadServerCertificateOutput, - UploadSigningCertificateInput, UploadSigningCertificateOutput, ) @@ -453,10 +273,25 @@ class AsyncIAMClient(AsyncClient[AsyncIAMConfig]): using an access key ID and secret access key. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def accept_delegation_request( - self, input: AcceptDelegationRequestInput, plugins: list[Plugin] | None = None + self, + request: _models.AcceptDelegationRequestInput + | _models.AcceptDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptDelegationRequestOutput: ... + + @_overload + async def accept_delegation_request( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptDelegationRequestInputDict], ) -> AcceptDelegationRequestOutput: """ Accepts a delegation request, granting the requested temporary access. @@ -474,8 +309,6 @@ async def accept_delegation_request( the partner. Args: - input: - An instance of `AcceptDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -485,10 +318,33 @@ async def accept_delegation_request( Returns: An instance of `AcceptDelegationRequestOutput`. """ - return await self._invoke(input, _models.ACCEPT_DELEGATION_REQUEST, [], plugins) + async def accept_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptDelegationRequestOutput: + return await self._invoke( + self._select_input(_models.ACCEPT_DELEGATION_REQUEST, args, kwargs), + _models.ACCEPT_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + async def acquire_role( + self, + request: _models.AcquireRoleInput | _models.AcquireRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcquireRoleOutput: ... + + @_overload async def acquire_role( - self, input: AcquireRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcquireRoleInputDict], ) -> AcquireRoleOutput: """ Creates an IAM role from the specified role template. The new role takes @@ -504,8 +360,6 @@ async def acquire_role( role during creation. Args: - input: - An instance of `AcquireRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -515,12 +369,34 @@ async def acquire_role( Returns: An instance of `AcquireRoleOutput`. """ - return await self._invoke(input, _models.ACQUIRE_ROLE, [], plugins) + async def acquire_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcquireRoleOutput: + return await self._invoke( + self._select_input(_models.ACQUIRE_ROLE, args, kwargs), + _models.ACQUIRE_ROLE, + [], + plugins, + ) + + @_overload + async def add_client_id_to_open_id_connect_provider( + self, + request: _models.AddClientIDToOpenIDConnectProviderInput + | _models.AddClientIDToOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddClientIDToOpenIDConnectProviderOutput: ... + + @_overload async def add_client_id_to_open_id_connect_provider( self, - input: AddClientIDToOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddClientIDToOpenIDConnectProviderInputDict], ) -> AddClientIDToOpenIDConnectProviderOutput: """ Adds a new client ID (also known as audience) to the list of client IDs @@ -531,8 +407,6 @@ async def add_client_id_to_open_id_connect_provider( add an existing client ID to the provider. Args: - input: - An instance of `AddClientIDToOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -542,12 +416,36 @@ async def add_client_id_to_open_id_connect_provider( Returns: An instance of `AddClientIDToOpenIDConnectProviderOutput`. """ + + async def add_client_id_to_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddClientIDToOpenIDConnectProviderOutput: return await self._invoke( - input, _models.ADD_CLIENT_ID_TO_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input( + _models.ADD_CLIENT_ID_TO_OPEN_ID_CONNECT_PROVIDER, args, kwargs + ), + _models.ADD_CLIENT_ID_TO_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload + async def add_role_to_instance_profile( + self, + request: _models.AddRoleToInstanceProfileInput + | _models.AddRoleToInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddRoleToInstanceProfileOutput: ... + + @_overload async def add_role_to_instance_profile( - self, input: AddRoleToInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddRoleToInstanceProfileInputDict], ) -> AddRoleToInstanceProfileOutput: """ Adds the specified IAM role to the specified instance profile. An @@ -584,8 +482,6 @@ async def add_role_to_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `AddRoleToInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -595,19 +491,38 @@ async def add_role_to_instance_profile( Returns: An instance of `AddRoleToInstanceProfileOutput`. """ + + async def add_role_to_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddRoleToInstanceProfileOutput: return await self._invoke( - input, _models.ADD_ROLE_TO_INSTANCE_PROFILE, [], plugins + self._select_input(_models.ADD_ROLE_TO_INSTANCE_PROFILE, args, kwargs), + _models.ADD_ROLE_TO_INSTANCE_PROFILE, + [], + plugins, ) + @_overload + async def add_user_to_group( + self, + request: _models.AddUserToGroupInput | _models.AddUserToGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddUserToGroupOutput: ... + + @_overload async def add_user_to_group( - self, input: AddUserToGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddUserToGroupInputDict], ) -> AddUserToGroupOutput: """ Adds the specified user to the specified group. Args: - input: - An instance of `AddUserToGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -617,12 +532,34 @@ async def add_user_to_group( Returns: An instance of `AddUserToGroupOutput`. """ - return await self._invoke(input, _models.ADD_USER_TO_GROUP, [], plugins) + async def add_user_to_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddUserToGroupOutput: + return await self._invoke( + self._select_input(_models.ADD_USER_TO_GROUP, args, kwargs), + _models.ADD_USER_TO_GROUP, + [], + plugins, + ) + + @_overload + async def associate_delegation_request( + self, + request: _models.AssociateDelegationRequestInput + | _models.AssociateDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateDelegationRequestOutput: ... + + @_overload async def associate_delegation_request( self, - input: AssociateDelegationRequestInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateDelegationRequestInputDict], ) -> AssociateDelegationRequestOutput: """ Associates a delegation request with the current identity. @@ -646,8 +583,6 @@ async def associate_delegation_request( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `AssociateDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -657,12 +592,33 @@ async def associate_delegation_request( Returns: An instance of `AssociateDelegationRequestOutput`. """ + + async def associate_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateDelegationRequestOutput: return await self._invoke( - input, _models.ASSOCIATE_DELEGATION_REQUEST, [], plugins + self._select_input(_models.ASSOCIATE_DELEGATION_REQUEST, args, kwargs), + _models.ASSOCIATE_DELEGATION_REQUEST, + [], + plugins, ) + @_overload + async def attach_group_policy( + self, + request: _models.AttachGroupPolicyInput | _models.AttachGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachGroupPolicyOutput: ... + + @_overload async def attach_group_policy( - self, input: AttachGroupPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachGroupPolicyInputDict], ) -> AttachGroupPolicyOutput: """ Attaches the specified managed policy to the specified IAM group. @@ -682,8 +638,6 @@ async def attach_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `AttachGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -693,10 +647,33 @@ async def attach_group_policy( Returns: An instance of `AttachGroupPolicyOutput`. """ - return await self._invoke(input, _models.ATTACH_GROUP_POLICY, [], plugins) + async def attach_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachGroupPolicyOutput: + return await self._invoke( + self._select_input(_models.ATTACH_GROUP_POLICY, args, kwargs), + _models.ATTACH_GROUP_POLICY, + [], + plugins, + ) + + @_overload + async def attach_role_policy( + self, + request: _models.AttachRolePolicyInput | _models.AttachRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachRolePolicyOutput: ... + + @_overload async def attach_role_policy( - self, input: AttachRolePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachRolePolicyInputDict], ) -> AttachRolePolicyOutput: """ Attaches the specified managed policy to the specified IAM role. When @@ -724,8 +701,6 @@ async def attach_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `AttachRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -735,10 +710,33 @@ async def attach_role_policy( Returns: An instance of `AttachRolePolicyOutput`. """ - return await self._invoke(input, _models.ATTACH_ROLE_POLICY, [], plugins) + async def attach_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachRolePolicyOutput: + return await self._invoke( + self._select_input(_models.ATTACH_ROLE_POLICY, args, kwargs), + _models.ATTACH_ROLE_POLICY, + [], + plugins, + ) + + @_overload + async def attach_user_policy( + self, + request: _models.AttachUserPolicyInput | _models.AttachUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachUserPolicyOutput: ... + + @_overload async def attach_user_policy( - self, input: AttachUserPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachUserPolicyInputDict], ) -> AttachUserPolicyOutput: """ Attaches the specified managed policy to the specified user. @@ -758,8 +756,6 @@ async def attach_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `AttachUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -769,10 +765,33 @@ async def attach_user_policy( Returns: An instance of `AttachUserPolicyOutput`. """ - return await self._invoke(input, _models.ATTACH_USER_POLICY, [], plugins) + async def attach_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachUserPolicyOutput: + return await self._invoke( + self._select_input(_models.ATTACH_USER_POLICY, args, kwargs), + _models.ATTACH_USER_POLICY, + [], + plugins, + ) + + @_overload + async def change_password( + self, + request: _models.ChangePasswordInput | _models.ChangePasswordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ChangePasswordOutput: ... + + @_overload async def change_password( - self, input: ChangePasswordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChangePasswordInputDict], ) -> ChangePasswordOutput: """ Changes the password of the IAM user who is calling this operation. This @@ -790,8 +809,6 @@ async def change_password( in the *IAM User Guide*. Args: - input: - An instance of `ChangePasswordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -801,10 +818,33 @@ async def change_password( Returns: An instance of `ChangePasswordOutput`. """ - return await self._invoke(input, _models.CHANGE_PASSWORD, [], plugins) + async def change_password( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ChangePasswordOutput: + return await self._invoke( + self._select_input(_models.CHANGE_PASSWORD, args, kwargs), + _models.CHANGE_PASSWORD, + [], + plugins, + ) + + @_overload async def create_access_key( - self, input: CreateAccessKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateAccessKeyInput | _models.CreateAccessKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAccessKeyOutput: ... + + @_overload + async def create_access_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAccessKeyInputDict], ) -> CreateAccessKeyOutput: """ Creates a new Amazon Web Services secret access key and corresponding @@ -831,8 +871,6 @@ async def create_access_key( for the associated user and then create new keys. Args: - input: - An instance of `CreateAccessKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -842,10 +880,33 @@ async def create_access_key( Returns: An instance of `CreateAccessKeyOutput`. """ - return await self._invoke(input, _models.CREATE_ACCESS_KEY, [], plugins) + async def create_access_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAccessKeyOutput: + return await self._invoke( + self._select_input(_models.CREATE_ACCESS_KEY, args, kwargs), + _models.CREATE_ACCESS_KEY, + [], + plugins, + ) + + @_overload + async def create_account_alias( + self, + request: _models.CreateAccountAliasInput | _models.CreateAccountAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAccountAliasOutput: ... + + @_overload async def create_account_alias( - self, input: CreateAccountAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAccountAliasInputDict], ) -> CreateAccountAliasOutput: """ Creates an alias for your Amazon Web Services account. For information @@ -855,8 +916,6 @@ async def create_account_alias( in the *Amazon Web Services Sign-In User Guide*. Args: - input: - An instance of `CreateAccountAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -866,10 +925,34 @@ async def create_account_alias( Returns: An instance of `CreateAccountAliasOutput`. """ - return await self._invoke(input, _models.CREATE_ACCOUNT_ALIAS, [], plugins) + async def create_account_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAccountAliasOutput: + return await self._invoke( + self._select_input(_models.CREATE_ACCOUNT_ALIAS, args, kwargs), + _models.CREATE_ACCOUNT_ALIAS, + [], + plugins, + ) + + @_overload + async def create_delegation_request( + self, + request: _models.CreateDelegationRequestInput + | _models.CreateDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDelegationRequestOutput: ... + + @_overload async def create_delegation_request( - self, input: CreateDelegationRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDelegationRequestInputDict], ) -> CreateDelegationRequestOutput: """ Creates an IAM delegation request for temporary access delegation. @@ -880,8 +963,6 @@ async def create_delegation_request( documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation-partner-guide.html). Args: - input: - An instance of `CreateDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -891,10 +972,33 @@ async def create_delegation_request( Returns: An instance of `CreateDelegationRequestOutput`. """ - return await self._invoke(input, _models.CREATE_DELEGATION_REQUEST, [], plugins) + async def create_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDelegationRequestOutput: + return await self._invoke( + self._select_input(_models.CREATE_DELEGATION_REQUEST, args, kwargs), + _models.CREATE_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + async def create_group( + self, + request: _models.CreateGroupInput | _models.CreateGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGroupOutput: ... + + @_overload async def create_group( - self, input: CreateGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGroupInputDict], ) -> CreateGroupOutput: """ Creates a new group. @@ -905,8 +1009,6 @@ async def create_group( in the *IAM User Guide*. Args: - input: - An instance of `CreateGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -916,10 +1018,34 @@ async def create_group( Returns: An instance of `CreateGroupOutput`. """ - return await self._invoke(input, _models.CREATE_GROUP, [], plugins) + async def create_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_GROUP, args, kwargs), + _models.CREATE_GROUP, + [], + plugins, + ) + + @_overload + async def create_instance_profile( + self, + request: _models.CreateInstanceProfileInput + | _models.CreateInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInstanceProfileOutput: ... + + @_overload async def create_instance_profile( - self, input: CreateInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInstanceProfileInputDict], ) -> CreateInstanceProfileOutput: """ Creates a new instance profile. For information about instance profiles, @@ -935,8 +1061,6 @@ async def create_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `CreateInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -946,10 +1070,33 @@ async def create_instance_profile( Returns: An instance of `CreateInstanceProfileOutput`. """ - return await self._invoke(input, _models.CREATE_INSTANCE_PROFILE, [], plugins) + async def create_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInstanceProfileOutput: + return await self._invoke( + self._select_input(_models.CREATE_INSTANCE_PROFILE, args, kwargs), + _models.CREATE_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + async def create_login_profile( + self, + request: _models.CreateLoginProfileInput | _models.CreateLoginProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLoginProfileOutput: ... + + @_overload async def create_login_profile( - self, input: CreateLoginProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLoginProfileInputDict], ) -> CreateLoginProfileOutput: """ Creates a password for the specified IAM user. A password allows an IAM @@ -967,8 +1114,6 @@ async def create_login_profile( in the *IAM User Guide*. Args: - input: - An instance of `CreateLoginProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -978,12 +1123,34 @@ async def create_login_profile( Returns: An instance of `CreateLoginProfileOutput`. """ - return await self._invoke(input, _models.CREATE_LOGIN_PROFILE, [], plugins) + async def create_login_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLoginProfileOutput: + return await self._invoke( + self._select_input(_models.CREATE_LOGIN_PROFILE, args, kwargs), + _models.CREATE_LOGIN_PROFILE, + [], + plugins, + ) + + @_overload + async def create_open_id_connect_provider( + self, + request: _models.CreateOpenIDConnectProviderInput + | _models.CreateOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOpenIDConnectProviderOutput: ... + + @_overload async def create_open_id_connect_provider( self, - input: CreateOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOpenIDConnectProviderInputDict], ) -> CreateOpenIDConnectProviderOutput: """ Creates an IAM entity to describe an identity provider (IdP) that @@ -1032,8 +1199,6 @@ async def create_open_id_connect_provider( operation to highly privileged users. Args: - input: - An instance of `CreateOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1043,12 +1208,33 @@ async def create_open_id_connect_provider( Returns: An instance of `CreateOpenIDConnectProviderOutput`. """ + + async def create_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOpenIDConnectProviderOutput: return await self._invoke( - input, _models.CREATE_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input(_models.CREATE_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.CREATE_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload + async def create_policy( + self, + request: _models.CreatePolicyInput | _models.CreatePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePolicyOutput: ... + + @_overload async def create_policy( - self, input: CreatePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePolicyInputDict], ) -> CreatePolicyOutput: """ Creates a new managed policy for your Amazon Web Services account. @@ -1070,8 +1256,6 @@ async def create_policy( in the *IAM User Guide*. Args: - input: - An instance of `CreatePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1081,10 +1265,34 @@ async def create_policy( Returns: An instance of `CreatePolicyOutput`. """ - return await self._invoke(input, _models.CREATE_POLICY, [], plugins) + async def create_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePolicyOutput: + return await self._invoke( + self._select_input(_models.CREATE_POLICY, args, kwargs), + _models.CREATE_POLICY, + [], + plugins, + ) + + @_overload + async def create_policy_version( + self, + request: _models.CreatePolicyVersionInput + | _models.CreatePolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePolicyVersionOutput: ... + + @_overload async def create_policy_version( - self, input: CreatePolicyVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePolicyVersionInputDict], ) -> CreatePolicyVersionOutput: """ Creates a new version of the specified managed policy. To update a @@ -1104,8 +1312,6 @@ async def create_policy_version( in the *IAM User Guide*. Args: - input: - An instance of `CreatePolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1115,10 +1321,33 @@ async def create_policy_version( Returns: An instance of `CreatePolicyVersionOutput`. """ - return await self._invoke(input, _models.CREATE_POLICY_VERSION, [], plugins) + async def create_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePolicyVersionOutput: + return await self._invoke( + self._select_input(_models.CREATE_POLICY_VERSION, args, kwargs), + _models.CREATE_POLICY_VERSION, + [], + plugins, + ) + + @_overload + async def create_role( + self, + request: _models.CreateRoleInput | _models.CreateRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRoleOutput: ... + + @_overload async def create_role( - self, input: CreateRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRoleInputDict], ) -> CreateRoleOutput: """ Creates a new role for your Amazon Web Services account. @@ -1131,8 +1360,6 @@ async def create_role( in the *IAM User Guide*. Args: - input: - An instance of `CreateRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1142,10 +1369,33 @@ async def create_role( Returns: An instance of `CreateRoleOutput`. """ - return await self._invoke(input, _models.CREATE_ROLE, [], plugins) + async def create_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRoleOutput: + return await self._invoke( + self._select_input(_models.CREATE_ROLE, args, kwargs), + _models.CREATE_ROLE, + [], + plugins, + ) + + @_overload + async def create_saml_provider( + self, + request: _models.CreateSAMLProviderInput | _models.CreateSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSAMLProviderOutput: ... + + @_overload async def create_saml_provider( - self, input: CreateSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSAMLProviderInputDict], ) -> CreateSAMLProviderOutput: """ Creates an IAM resource that describes an identity provider (IdP) that @@ -1177,8 +1427,6 @@ async def create_saml_provider( in the *IAM User Guide*. Args: - input: - An instance of `CreateSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1188,13 +1436,37 @@ async def create_saml_provider( Returns: An instance of `CreateSAMLProviderOutput`. """ - return await self._invoke(input, _models.CREATE_SAML_PROVIDER, [], plugins) - async def create_service_linked_role( - self, input: CreateServiceLinkedRoleInput, plugins: list[Plugin] | None = None - ) -> CreateServiceLinkedRoleOutput: - """ - Creates an IAM role that is linked to a specific Amazon Web Services + async def create_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSAMLProviderOutput: + return await self._invoke( + self._select_input(_models.CREATE_SAML_PROVIDER, args, kwargs), + _models.CREATE_SAML_PROVIDER, + [], + plugins, + ) + + @_overload + async def create_service_linked_role( + self, + request: _models.CreateServiceLinkedRoleInput + | _models.CreateServiceLinkedRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateServiceLinkedRoleOutput: ... + + @_overload + async def create_service_linked_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateServiceLinkedRoleInputDict], + ) -> CreateServiceLinkedRoleOutput: + """ + Creates an IAM role that is linked to a specific Amazon Web Services service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your Amazon Web @@ -1209,8 +1481,6 @@ async def create_service_linked_role( request using the Amazon Web Services service that depends on this role. Args: - input: - An instance of `CreateServiceLinkedRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1220,14 +1490,34 @@ async def create_service_linked_role( Returns: An instance of `CreateServiceLinkedRoleOutput`. """ + + async def create_service_linked_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateServiceLinkedRoleOutput: return await self._invoke( - input, _models.CREATE_SERVICE_LINKED_ROLE, [], plugins + self._select_input(_models.CREATE_SERVICE_LINKED_ROLE, args, kwargs), + _models.CREATE_SERVICE_LINKED_ROLE, + [], + plugins, ) + @_overload + async def create_service_specific_credential( + self, + request: _models.CreateServiceSpecificCredentialInput + | _models.CreateServiceSpecificCredentialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateServiceSpecificCredentialOutput: ... + + @_overload async def create_service_specific_credential( self, - input: CreateServiceSpecificCredentialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateServiceSpecificCredentialInputDict], ) -> CreateServiceSpecificCredentialOutput: """ Generates a set of credentials consisting of a user name and password @@ -1262,8 +1552,6 @@ async def create_service_specific_credential( in the *IAM User Guide*. Args: - input: - An instance of `CreateServiceSpecificCredentialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1273,12 +1561,35 @@ async def create_service_specific_credential( Returns: An instance of `CreateServiceSpecificCredentialOutput`. """ + + async def create_service_specific_credential( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateServiceSpecificCredentialOutput: return await self._invoke( - input, _models.CREATE_SERVICE_SPECIFIC_CREDENTIAL, [], plugins + self._select_input( + _models.CREATE_SERVICE_SPECIFIC_CREDENTIAL, args, kwargs + ), + _models.CREATE_SERVICE_SPECIFIC_CREDENTIAL, + [], + plugins, ) + @_overload + async def create_user( + self, + request: _models.CreateUserInput | _models.CreateUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateUserOutput: ... + + @_overload async def create_user( - self, input: CreateUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateUserInputDict], ) -> CreateUserOutput: """ Creates a new IAM user for your Amazon Web Services account. @@ -1289,8 +1600,6 @@ async def create_user( in the *IAM User Guide*. Args: - input: - An instance of `CreateUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1300,10 +1609,34 @@ async def create_user( Returns: An instance of `CreateUserOutput`. """ - return await self._invoke(input, _models.CREATE_USER, [], plugins) + async def create_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateUserOutput: + return await self._invoke( + self._select_input(_models.CREATE_USER, args, kwargs), + _models.CREATE_USER, + [], + plugins, + ) + + @_overload async def create_virtual_mfa_device( - self, input: CreateVirtualMFADeviceInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateVirtualMFADeviceInput + | _models.CreateVirtualMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVirtualMFADeviceOutput: ... + + @_overload + async def create_virtual_mfa_device( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVirtualMFADeviceInputDict], ) -> CreateVirtualMFADeviceOutput: """ Creates a new virtual MFA device for the Amazon Web Services account. @@ -1328,8 +1661,6 @@ async def create_virtual_mfa_device( secure procedures. Args: - input: - An instance of `CreateVirtualMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1339,10 +1670,34 @@ async def create_virtual_mfa_device( Returns: An instance of `CreateVirtualMFADeviceOutput`. """ - return await self._invoke(input, _models.CREATE_VIRTUAL_MFA_DEVICE, [], plugins) + async def create_virtual_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVirtualMFADeviceOutput: + return await self._invoke( + self._select_input(_models.CREATE_VIRTUAL_MFA_DEVICE, args, kwargs), + _models.CREATE_VIRTUAL_MFA_DEVICE, + [], + plugins, + ) + + @_overload async def deactivate_mfa_device( - self, input: DeactivateMFADeviceInput, plugins: list[Plugin] | None = None + self, + request: _models.DeactivateMFADeviceInput + | _models.DeactivateMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeactivateMFADeviceOutput: ... + + @_overload + async def deactivate_mfa_device( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeactivateMFADeviceInputDict], ) -> DeactivateMFADeviceOutput: """ Deactivates the specified MFA device and removes it from association @@ -1354,8 +1709,6 @@ async def deactivate_mfa_device( in the *IAM User Guide*. Args: - input: - An instance of `DeactivateMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1365,10 +1718,33 @@ async def deactivate_mfa_device( Returns: An instance of `DeactivateMFADeviceOutput`. """ - return await self._invoke(input, _models.DEACTIVATE_MFA_DEVICE, [], plugins) + async def deactivate_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeactivateMFADeviceOutput: + return await self._invoke( + self._select_input(_models.DEACTIVATE_MFA_DEVICE, args, kwargs), + _models.DEACTIVATE_MFA_DEVICE, + [], + plugins, + ) + + @_overload + async def delete_access_key( + self, + request: _models.DeleteAccessKeyInput | _models.DeleteAccessKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAccessKeyOutput: ... + + @_overload async def delete_access_key( - self, input: DeleteAccessKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAccessKeyInputDict], ) -> DeleteAccessKeyOutput: """ Deletes the access key pair associated with the specified IAM user. @@ -1381,8 +1757,6 @@ async def delete_access_key( Services account has no associated users. Args: - input: - An instance of `DeleteAccessKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1392,10 +1766,33 @@ async def delete_access_key( Returns: An instance of `DeleteAccessKeyOutput`. """ - return await self._invoke(input, _models.DELETE_ACCESS_KEY, [], plugins) + async def delete_access_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAccessKeyOutput: + return await self._invoke( + self._select_input(_models.DELETE_ACCESS_KEY, args, kwargs), + _models.DELETE_ACCESS_KEY, + [], + plugins, + ) + + @_overload async def delete_account_alias( - self, input: DeleteAccountAliasInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteAccountAliasInput | _models.DeleteAccountAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAccountAliasOutput: ... + + @_overload + async def delete_account_alias( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAccountAliasInputDict], ) -> DeleteAccountAliasOutput: """ Deletes the specified Amazon Web Services account alias. For information @@ -1405,8 +1802,6 @@ async def delete_account_alias( in the *Amazon Web Services Sign-In User Guide*. Args: - input: - An instance of `DeleteAccountAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1416,20 +1811,40 @@ async def delete_account_alias( Returns: An instance of `DeleteAccountAliasOutput`. """ - return await self._invoke(input, _models.DELETE_ACCOUNT_ALIAS, [], plugins) + async def delete_account_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAccountAliasOutput: + return await self._invoke( + self._select_input(_models.DELETE_ACCOUNT_ALIAS, args, kwargs), + _models.DELETE_ACCOUNT_ALIAS, + [], + plugins, + ) + + @_overload + async def delete_account_password_policy( + self, + request: _models.DeleteAccountPasswordPolicyInput + | _models.DeleteAccountPasswordPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAccountPasswordPolicyOutput: ... + + @_overload async def delete_account_password_policy( self, - input: DeleteAccountPasswordPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAccountPasswordPolicyInputDict], ) -> DeleteAccountPasswordPolicyOutput: """ Deletes the password policy for the Amazon Web Services account. There are no parameters. Args: - input: - An instance of `DeleteAccountPasswordPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1439,20 +1854,39 @@ async def delete_account_password_policy( Returns: An instance of `DeleteAccountPasswordPolicyOutput`. """ + + async def delete_account_password_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAccountPasswordPolicyOutput: return await self._invoke( - input, _models.DELETE_ACCOUNT_PASSWORD_POLICY, [], plugins + self._select_input(_models.DELETE_ACCOUNT_PASSWORD_POLICY, args, kwargs), + _models.DELETE_ACCOUNT_PASSWORD_POLICY, + [], + plugins, ) + @_overload + async def delete_group( + self, + request: _models.DeleteGroupInput | _models.DeleteGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGroupOutput: ... + + @_overload async def delete_group( - self, input: DeleteGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGroupInputDict], ) -> DeleteGroupOutput: """ Deletes the specified IAM group. The group must not contain any users or have any attached policies. Args: - input: - An instance of `DeleteGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1462,10 +1896,33 @@ async def delete_group( Returns: An instance of `DeleteGroupOutput`. """ - return await self._invoke(input, _models.DELETE_GROUP, [], plugins) + async def delete_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_GROUP, args, kwargs), + _models.DELETE_GROUP, + [], + plugins, + ) + + @_overload + async def delete_group_policy( + self, + request: _models.DeleteGroupPolicyInput | _models.DeleteGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGroupPolicyOutput: ... + + @_overload async def delete_group_policy( - self, input: DeleteGroupPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGroupPolicyInputDict], ) -> DeleteGroupPolicyOutput: """ Deletes the specified inline policy that is embedded in the specified @@ -1480,8 +1937,6 @@ async def delete_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `DeleteGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1491,10 +1946,34 @@ async def delete_group_policy( Returns: An instance of `DeleteGroupPolicyOutput`. """ - return await self._invoke(input, _models.DELETE_GROUP_POLICY, [], plugins) + async def delete_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGroupPolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_GROUP_POLICY, args, kwargs), + _models.DELETE_GROUP_POLICY, + [], + plugins, + ) + + @_overload async def delete_instance_profile( - self, input: DeleteInstanceProfileInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteInstanceProfileInput + | _models.DeleteInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInstanceProfileOutput: ... + + @_overload + async def delete_instance_profile( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInstanceProfileInputDict], ) -> DeleteInstanceProfileOutput: """ Deletes the specified instance profile. The instance profile must not @@ -1511,8 +1990,6 @@ async def delete_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `DeleteInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1522,10 +1999,33 @@ async def delete_instance_profile( Returns: An instance of `DeleteInstanceProfileOutput`. """ - return await self._invoke(input, _models.DELETE_INSTANCE_PROFILE, [], plugins) + async def delete_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInstanceProfileOutput: + return await self._invoke( + self._select_input(_models.DELETE_INSTANCE_PROFILE, args, kwargs), + _models.DELETE_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + async def delete_login_profile( + self, + request: _models.DeleteLoginProfileInput | _models.DeleteLoginProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLoginProfileOutput: ... + + @_overload async def delete_login_profile( - self, input: DeleteLoginProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLoginProfileInputDict], ) -> DeleteLoginProfileOutput: """ Deletes the password for the specified IAM user or root user, For more @@ -1549,8 +2049,6 @@ async def delete_login_profile( [DeleteAccessKey](https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeleteAccessKey.html). Args: - input: - An instance of `DeleteLoginProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1560,12 +2058,34 @@ async def delete_login_profile( Returns: An instance of `DeleteLoginProfileOutput`. """ - return await self._invoke(input, _models.DELETE_LOGIN_PROFILE, [], plugins) + async def delete_login_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLoginProfileOutput: + return await self._invoke( + self._select_input(_models.DELETE_LOGIN_PROFILE, args, kwargs), + _models.DELETE_LOGIN_PROFILE, + [], + plugins, + ) + + @_overload async def delete_open_id_connect_provider( self, - input: DeleteOpenIDConnectProviderInput, + request: _models.DeleteOpenIDConnectProviderInput + | _models.DeleteOpenIDConnectProviderInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteOpenIDConnectProviderOutput: ... + + @_overload + async def delete_open_id_connect_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOpenIDConnectProviderInputDict], ) -> DeleteOpenIDConnectProviderOutput: """ Deletes an OpenID Connect identity provider (IdP) resource object in @@ -1579,8 +2099,6 @@ async def delete_open_id_connect_provider( call the operation for a provider that does not exist. Args: - input: - An instance of `DeleteOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1590,12 +2108,33 @@ async def delete_open_id_connect_provider( Returns: An instance of `DeleteOpenIDConnectProviderOutput`. """ + + async def delete_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOpenIDConnectProviderOutput: return await self._invoke( - input, _models.DELETE_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input(_models.DELETE_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.DELETE_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload async def delete_policy( - self, input: DeletePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePolicyInput | _models.DeletePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePolicyOutput: ... + + @_overload + async def delete_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePolicyInputDict], ) -> DeletePolicyOutput: """ Deletes the specified managed policy. @@ -1632,8 +2171,6 @@ async def delete_policy( in the *IAM User Guide*. Args: - input: - An instance of `DeletePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1643,10 +2180,34 @@ async def delete_policy( Returns: An instance of `DeletePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_POLICY, [], plugins) + async def delete_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_POLICY, args, kwargs), + _models.DELETE_POLICY, + [], + plugins, + ) + + @_overload + async def delete_policy_version( + self, + request: _models.DeletePolicyVersionInput + | _models.DeletePolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePolicyVersionOutput: ... + + @_overload async def delete_policy_version( - self, input: DeletePolicyVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePolicyVersionInputDict], ) -> DeletePolicyVersionOutput: """ Deletes the specified version from the specified managed policy. @@ -1664,8 +2225,6 @@ async def delete_policy_version( in the *IAM User Guide*. Args: - input: - An instance of `DeletePolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1675,10 +2234,33 @@ async def delete_policy_version( Returns: An instance of `DeletePolicyVersionOutput`. """ - return await self._invoke(input, _models.DELETE_POLICY_VERSION, [], plugins) + async def delete_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePolicyVersionOutput: + return await self._invoke( + self._select_input(_models.DELETE_POLICY_VERSION, args, kwargs), + _models.DELETE_POLICY_VERSION, + [], + plugins, + ) + + @_overload async def delete_role( - self, input: DeleteRoleInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRoleInput | _models.DeleteRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRoleOutput: ... + + @_overload + async def delete_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRoleInputDict], ) -> DeleteRoleOutput: """ Deletes the specified role. Unlike the Amazon Web Services Management @@ -1708,8 +2290,6 @@ async def delete_role( running on the instance. Args: - input: - An instance of `DeleteRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1719,12 +2299,34 @@ async def delete_role( Returns: An instance of `DeleteRoleOutput`. """ - return await self._invoke(input, _models.DELETE_ROLE, [], plugins) + async def delete_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRoleOutput: + return await self._invoke( + self._select_input(_models.DELETE_ROLE, args, kwargs), + _models.DELETE_ROLE, + [], + plugins, + ) + + @_overload async def delete_role_permissions_boundary( self, - input: DeleteRolePermissionsBoundaryInput, + request: _models.DeleteRolePermissionsBoundaryInput + | _models.DeleteRolePermissionsBoundaryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteRolePermissionsBoundaryOutput: ... + + @_overload + async def delete_role_permissions_boundary( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRolePermissionsBoundaryInputDict], ) -> DeleteRolePermissionsBoundaryOutput: """ Deletes the permissions boundary for the specified IAM role. @@ -1737,8 +2339,6 @@ async def delete_role_permissions_boundary( perform all the actions granted in its permissions policies. Args: - input: - An instance of `DeleteRolePermissionsBoundaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1748,12 +2348,33 @@ async def delete_role_permissions_boundary( Returns: An instance of `DeleteRolePermissionsBoundaryOutput`. """ + + async def delete_role_permissions_boundary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRolePermissionsBoundaryOutput: return await self._invoke( - input, _models.DELETE_ROLE_PERMISSIONS_BOUNDARY, [], plugins + self._select_input(_models.DELETE_ROLE_PERMISSIONS_BOUNDARY, args, kwargs), + _models.DELETE_ROLE_PERMISSIONS_BOUNDARY, + [], + plugins, ) + @_overload async def delete_role_policy( - self, input: DeleteRolePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRolePolicyInput | _models.DeleteRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRolePolicyOutput: ... + + @_overload + async def delete_role_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRolePolicyInputDict], ) -> DeleteRolePolicyOutput: """ Deletes the specified inline policy that is embedded in the specified @@ -1768,8 +2389,6 @@ async def delete_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `DeleteRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1779,10 +2398,33 @@ async def delete_role_policy( Returns: An instance of `DeleteRolePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_ROLE_POLICY, [], plugins) + async def delete_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRolePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_ROLE_POLICY, args, kwargs), + _models.DELETE_ROLE_POLICY, + [], + plugins, + ) + + @_overload async def delete_saml_provider( - self, input: DeleteSAMLProviderInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSAMLProviderInput | _models.DeleteSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSAMLProviderOutput: ... + + @_overload + async def delete_saml_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSAMLProviderInputDict], ) -> DeleteSAMLProviderOutput: """ Deletes a SAML provider resource in IAM. @@ -1797,8 +2439,6 @@ async def delete_saml_provider( 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). Args: - input: - An instance of `DeleteSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1808,10 +2448,34 @@ async def delete_saml_provider( Returns: An instance of `DeleteSAMLProviderOutput`. """ - return await self._invoke(input, _models.DELETE_SAML_PROVIDER, [], plugins) + async def delete_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSAMLProviderOutput: + return await self._invoke( + self._select_input(_models.DELETE_SAML_PROVIDER, args, kwargs), + _models.DELETE_SAML_PROVIDER, + [], + plugins, + ) + + @_overload async def delete_server_certificate( - self, input: DeleteServerCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteServerCertificateInput + | _models.DeleteServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteServerCertificateOutput: ... + + @_overload + async def delete_server_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteServerCertificateInputDict], ) -> DeleteServerCertificateOutput: """ Deletes the specified server certificate. @@ -1836,8 +2500,6 @@ async def delete_server_certificate( in the *Elastic Load Balancing API Reference*. Args: - input: - An instance of `DeleteServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1847,10 +2509,34 @@ async def delete_server_certificate( Returns: An instance of `DeleteServerCertificateOutput`. """ - return await self._invoke(input, _models.DELETE_SERVER_CERTIFICATE, [], plugins) + async def delete_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteServerCertificateOutput: + return await self._invoke( + self._select_input(_models.DELETE_SERVER_CERTIFICATE, args, kwargs), + _models.DELETE_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def delete_service_linked_role( + self, + request: _models.DeleteServiceLinkedRoleInput + | _models.DeleteServiceLinkedRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteServiceLinkedRoleOutput: ... + + @_overload async def delete_service_linked_role( - self, input: DeleteServiceLinkedRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteServiceLinkedRoleInputDict], ) -> DeleteServiceLinkedRoleOutput: """ Submits a service-linked role deletion request and returns a @@ -1879,8 +2565,6 @@ async def delete_service_linked_role( in the *IAM User Guide*. Args: - input: - An instance of `DeleteServiceLinkedRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1890,21 +2574,39 @@ async def delete_service_linked_role( Returns: An instance of `DeleteServiceLinkedRoleOutput`. """ + + async def delete_service_linked_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteServiceLinkedRoleOutput: return await self._invoke( - input, _models.DELETE_SERVICE_LINKED_ROLE, [], plugins + self._select_input(_models.DELETE_SERVICE_LINKED_ROLE, args, kwargs), + _models.DELETE_SERVICE_LINKED_ROLE, + [], + plugins, ) + @_overload + async def delete_service_specific_credential( + self, + request: _models.DeleteServiceSpecificCredentialInput + | _models.DeleteServiceSpecificCredentialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteServiceSpecificCredentialOutput: ... + + @_overload async def delete_service_specific_credential( self, - input: DeleteServiceSpecificCredentialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteServiceSpecificCredentialInputDict], ) -> DeleteServiceSpecificCredentialOutput: """ Deletes the specified service-specific credential. Args: - input: - An instance of `DeleteServiceSpecificCredentialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1914,12 +2616,36 @@ async def delete_service_specific_credential( Returns: An instance of `DeleteServiceSpecificCredentialOutput`. """ + + async def delete_service_specific_credential( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteServiceSpecificCredentialOutput: return await self._invoke( - input, _models.DELETE_SERVICE_SPECIFIC_CREDENTIAL, [], plugins + self._select_input( + _models.DELETE_SERVICE_SPECIFIC_CREDENTIAL, args, kwargs + ), + _models.DELETE_SERVICE_SPECIFIC_CREDENTIAL, + [], + plugins, ) + @_overload async def delete_signing_certificate( - self, input: DeleteSigningCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSigningCertificateInput + | _models.DeleteSigningCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSigningCertificateOutput: ... + + @_overload + async def delete_signing_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSigningCertificateInputDict], ) -> DeleteSigningCertificateOutput: """ Deletes a signing certificate associated with the specified IAM user. @@ -1932,8 +2658,6 @@ async def delete_signing_certificate( Services account has no associated IAM users. Args: - input: - An instance of `DeleteSigningCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1943,12 +2667,33 @@ async def delete_signing_certificate( Returns: An instance of `DeleteSigningCertificateOutput`. """ + + async def delete_signing_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSigningCertificateOutput: return await self._invoke( - input, _models.DELETE_SIGNING_CERTIFICATE, [], plugins + self._select_input(_models.DELETE_SIGNING_CERTIFICATE, args, kwargs), + _models.DELETE_SIGNING_CERTIFICATE, + [], + plugins, ) + @_overload async def delete_ssh_public_key( - self, input: DeleteSSHPublicKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSSHPublicKeyInput | _models.DeleteSSHPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSSHPublicKeyOutput: ... + + @_overload + async def delete_ssh_public_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSSHPublicKeyInputDict], ) -> DeleteSSHPublicKeyOutput: """ Deletes the specified SSH public key. @@ -1961,8 +2706,6 @@ async def delete_ssh_public_key( in the *CodeCommit User Guide*. Args: - input: - An instance of `DeleteSSHPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1972,10 +2715,33 @@ async def delete_ssh_public_key( Returns: An instance of `DeleteSSHPublicKeyOutput`. """ - return await self._invoke(input, _models.DELETE_SSH_PUBLIC_KEY, [], plugins) + async def delete_ssh_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSSHPublicKeyOutput: + return await self._invoke( + self._select_input(_models.DELETE_SSH_PUBLIC_KEY, args, kwargs), + _models.DELETE_SSH_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + async def delete_user( + self, + request: _models.DeleteUserInput | _models.DeleteUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUserOutput: ... + + @_overload async def delete_user( - self, input: DeleteUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUserInputDict], ) -> DeleteUserOutput: """ Deletes the specified IAM user. Unlike the Amazon Web Services @@ -2014,8 +2780,6 @@ async def delete_user( ([RemoveUserFromGroup](https://docs.aws.amazon.com/IAM/latest/APIReference/API_RemoveUserFromGroup.html)) Args: - input: - An instance of `DeleteUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2025,12 +2789,34 @@ async def delete_user( Returns: An instance of `DeleteUserOutput`. """ - return await self._invoke(input, _models.DELETE_USER, [], plugins) + async def delete_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUserOutput: + return await self._invoke( + self._select_input(_models.DELETE_USER, args, kwargs), + _models.DELETE_USER, + [], + plugins, + ) + + @_overload + async def delete_user_permissions_boundary( + self, + request: _models.DeleteUserPermissionsBoundaryInput + | _models.DeleteUserPermissionsBoundaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUserPermissionsBoundaryOutput: ... + + @_overload async def delete_user_permissions_boundary( self, - input: DeleteUserPermissionsBoundaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUserPermissionsBoundaryInputDict], ) -> DeleteUserPermissionsBoundaryOutput: """ Deletes the permissions boundary for the specified IAM user. @@ -2041,8 +2827,6 @@ async def delete_user_permissions_boundary( its permissions policies. Args: - input: - An instance of `DeleteUserPermissionsBoundaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2052,12 +2836,33 @@ async def delete_user_permissions_boundary( Returns: An instance of `DeleteUserPermissionsBoundaryOutput`. """ + + async def delete_user_permissions_boundary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUserPermissionsBoundaryOutput: return await self._invoke( - input, _models.DELETE_USER_PERMISSIONS_BOUNDARY, [], plugins + self._select_input(_models.DELETE_USER_PERMISSIONS_BOUNDARY, args, kwargs), + _models.DELETE_USER_PERMISSIONS_BOUNDARY, + [], + plugins, ) + @_overload async def delete_user_policy( - self, input: DeleteUserPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteUserPolicyInput | _models.DeleteUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUserPolicyOutput: ... + + @_overload + async def delete_user_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUserPolicyInputDict], ) -> DeleteUserPolicyOutput: """ Deletes the specified inline policy that is embedded in the specified @@ -2072,8 +2877,6 @@ async def delete_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `DeleteUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2083,10 +2886,34 @@ async def delete_user_policy( Returns: An instance of `DeleteUserPolicyOutput`. """ - return await self._invoke(input, _models.DELETE_USER_POLICY, [], plugins) + async def delete_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUserPolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_USER_POLICY, args, kwargs), + _models.DELETE_USER_POLICY, + [], + plugins, + ) + + @_overload + async def delete_virtual_mfa_device( + self, + request: _models.DeleteVirtualMFADeviceInput + | _models.DeleteVirtualMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVirtualMFADeviceOutput: ... + + @_overload async def delete_virtual_mfa_device( - self, input: DeleteVirtualMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVirtualMFADeviceInputDict], ) -> DeleteVirtualMFADeviceOutput: """ Deletes a virtual MFA device. @@ -2097,8 +2924,6 @@ async def delete_virtual_mfa_device( [DeactivateMFADevice](https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeactivateMFADevice.html). Args: - input: - An instance of `DeleteVirtualMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2108,10 +2933,33 @@ async def delete_virtual_mfa_device( Returns: An instance of `DeleteVirtualMFADeviceOutput`. """ - return await self._invoke(input, _models.DELETE_VIRTUAL_MFA_DEVICE, [], plugins) + async def delete_virtual_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVirtualMFADeviceOutput: + return await self._invoke( + self._select_input(_models.DELETE_VIRTUAL_MFA_DEVICE, args, kwargs), + _models.DELETE_VIRTUAL_MFA_DEVICE, + [], + plugins, + ) + + @_overload async def detach_group_policy( - self, input: DetachGroupPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DetachGroupPolicyInput | _models.DetachGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachGroupPolicyOutput: ... + + @_overload + async def detach_group_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachGroupPolicyInputDict], ) -> DetachGroupPolicyOutput: """ Removes the specified managed policy from the specified IAM group. @@ -2124,8 +2972,6 @@ async def detach_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `DetachGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2135,10 +2981,33 @@ async def detach_group_policy( Returns: An instance of `DetachGroupPolicyOutput`. """ - return await self._invoke(input, _models.DETACH_GROUP_POLICY, [], plugins) + async def detach_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachGroupPolicyOutput: + return await self._invoke( + self._select_input(_models.DETACH_GROUP_POLICY, args, kwargs), + _models.DETACH_GROUP_POLICY, + [], + plugins, + ) + + @_overload async def detach_role_policy( - self, input: DetachRolePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DetachRolePolicyInput | _models.DetachRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachRolePolicyOutput: ... + + @_overload + async def detach_role_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachRolePolicyInputDict], ) -> DetachRolePolicyOutput: """ Removes the specified managed policy from the specified role. @@ -2151,8 +3020,6 @@ async def detach_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `DetachRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2162,10 +3029,33 @@ async def detach_role_policy( Returns: An instance of `DetachRolePolicyOutput`. """ - return await self._invoke(input, _models.DETACH_ROLE_POLICY, [], plugins) + async def detach_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachRolePolicyOutput: + return await self._invoke( + self._select_input(_models.DETACH_ROLE_POLICY, args, kwargs), + _models.DETACH_ROLE_POLICY, + [], + plugins, + ) + + @_overload + async def detach_user_policy( + self, + request: _models.DetachUserPolicyInput | _models.DetachUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachUserPolicyOutput: ... + + @_overload async def detach_user_policy( - self, input: DetachUserPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachUserPolicyInputDict], ) -> DetachUserPolicyOutput: """ Removes the specified managed policy from the specified user. @@ -2178,8 +3068,6 @@ async def detach_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `DetachUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2189,12 +3077,36 @@ async def detach_user_policy( Returns: An instance of `DetachUserPolicyOutput`. """ - return await self._invoke(input, _models.DETACH_USER_POLICY, [], plugins) + async def detach_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachUserPolicyOutput: + return await self._invoke( + self._select_input(_models.DETACH_USER_POLICY, args, kwargs), + _models.DETACH_USER_POLICY, + [], + plugins, + ) + + @_overload + async def disable_organizations_root_credentials_management( + self, + request: _models.DisableOrganizationsRootCredentialsManagementInput + | _models.DisableOrganizationsRootCredentialsManagementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableOrganizationsRootCredentialsManagementOutput: ... + + @_overload async def disable_organizations_root_credentials_management( self, - input: DisableOrganizationsRootCredentialsManagementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DisableOrganizationsRootCredentialsManagementInputDict + ], ) -> DisableOrganizationsRootCredentialsManagementOutput: """ Disables the management of privileged root user credentials across @@ -2203,8 +3115,6 @@ async def disable_organizations_root_credentials_management( manage root user credentials for member accounts in your organization. Args: - input: - An instance of `DisableOrganizationsRootCredentialsManagementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2214,17 +3124,36 @@ async def disable_organizations_root_credentials_management( Returns: An instance of `DisableOrganizationsRootCredentialsManagementOutput`. """ + + async def disable_organizations_root_credentials_management( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableOrganizationsRootCredentialsManagementOutput: return await self._invoke( - input, + self._select_input( + _models.DISABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, args, kwargs + ), _models.DISABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, [], plugins, ) + @_overload + async def disable_organizations_root_sessions( + self, + request: _models.DisableOrganizationsRootSessionsInput + | _models.DisableOrganizationsRootSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableOrganizationsRootSessionsOutput: ... + + @_overload async def disable_organizations_root_sessions( self, - input: DisableOrganizationsRootSessionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableOrganizationsRootSessionsInputDict], ) -> DisableOrganizationsRootSessionsOutput: """ Disables root user sessions for privileged tasks across member accounts @@ -2233,8 +3162,6 @@ async def disable_organizations_root_sessions( privileged tasks on member accounts in your organization. Args: - input: - An instance of `DisableOrganizationsRootSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2244,14 +3171,36 @@ async def disable_organizations_root_sessions( Returns: An instance of `DisableOrganizationsRootSessionsOutput`. """ + + async def disable_organizations_root_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableOrganizationsRootSessionsOutput: return await self._invoke( - input, _models.DISABLE_ORGANIZATIONS_ROOT_SESSIONS, [], plugins + self._select_input( + _models.DISABLE_ORGANIZATIONS_ROOT_SESSIONS, args, kwargs + ), + _models.DISABLE_ORGANIZATIONS_ROOT_SESSIONS, + [], + plugins, ) + @_overload + async def disable_outbound_web_identity_federation( + self, + request: _models.DisableOutboundWebIdentityFederationInput + | _models.DisableOutboundWebIdentityFederationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableOutboundWebIdentityFederationOutput: ... + + @_overload async def disable_outbound_web_identity_federation( self, - input: DisableOutboundWebIdentityFederationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableOutboundWebIdentityFederationInputDict], ) -> DisableOutboundWebIdentityFederationOutput: """ Disables the outbound identity federation feature for your Amazon Web @@ -2261,8 +3210,6 @@ async def disable_outbound_web_identity_federation( tokens that were issued before the feature was disabled. Args: - input: - An instance of `DisableOutboundWebIdentityFederationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2272,12 +3219,35 @@ async def disable_outbound_web_identity_federation( Returns: An instance of `DisableOutboundWebIdentityFederationOutput`. """ + + async def disable_outbound_web_identity_federation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableOutboundWebIdentityFederationOutput: return await self._invoke( - input, _models.DISABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, [], plugins + self._select_input( + _models.DISABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, args, kwargs + ), + _models.DISABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, + [], + plugins, ) + @_overload + async def enable_mfa_device( + self, + request: _models.EnableMFADeviceInput | _models.EnableMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableMFADeviceOutput: ... + + @_overload async def enable_mfa_device( - self, input: EnableMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableMFADeviceInputDict], ) -> EnableMFADeviceOutput: """ Enables the specified MFA device and associates it with the specified @@ -2285,8 +3255,6 @@ async def enable_mfa_device( login by the IAM user associated with the device. Args: - input: - An instance of `EnableMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2296,12 +3264,36 @@ async def enable_mfa_device( Returns: An instance of `EnableMFADeviceOutput`. """ - return await self._invoke(input, _models.ENABLE_MFA_DEVICE, [], plugins) + async def enable_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableMFADeviceOutput: + return await self._invoke( + self._select_input(_models.ENABLE_MFA_DEVICE, args, kwargs), + _models.ENABLE_MFA_DEVICE, + [], + plugins, + ) + + @_overload + async def enable_organizations_root_credentials_management( + self, + request: _models.EnableOrganizationsRootCredentialsManagementInput + | _models.EnableOrganizationsRootCredentialsManagementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableOrganizationsRootCredentialsManagementOutput: ... + + @_overload async def enable_organizations_root_credentials_management( self, - input: EnableOrganizationsRootCredentialsManagementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.EnableOrganizationsRootCredentialsManagementInputDict + ], ) -> EnableOrganizationsRootCredentialsManagementOutput: """ Enables the management of privileged root user credentials across member @@ -2323,8 +3315,6 @@ async def enable_organizations_root_credentials_management( in the *Organizations User Guide*. Args: - input: - An instance of `EnableOrganizationsRootCredentialsManagementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2334,14 +3324,36 @@ async def enable_organizations_root_credentials_management( Returns: An instance of `EnableOrganizationsRootCredentialsManagementOutput`. """ + + async def enable_organizations_root_credentials_management( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableOrganizationsRootCredentialsManagementOutput: return await self._invoke( - input, _models.ENABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, [], plugins + self._select_input( + _models.ENABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, args, kwargs + ), + _models.ENABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, + [], + plugins, ) + @_overload + async def enable_organizations_root_sessions( + self, + request: _models.EnableOrganizationsRootSessionsInput + | _models.EnableOrganizationsRootSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableOrganizationsRootSessionsOutput: ... + + @_overload async def enable_organizations_root_sessions( self, - input: EnableOrganizationsRootSessionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableOrganizationsRootSessionsInputDict], ) -> EnableOrganizationsRootSessionsOutput: """ Allows the management account or delegated administrator to perform @@ -2362,8 +3374,6 @@ async def enable_organizations_root_sessions( in the *Organizations User Guide*. Args: - input: - An instance of `EnableOrganizationsRootSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2373,14 +3383,36 @@ async def enable_organizations_root_sessions( Returns: An instance of `EnableOrganizationsRootSessionsOutput`. """ + + async def enable_organizations_root_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableOrganizationsRootSessionsOutput: return await self._invoke( - input, _models.ENABLE_ORGANIZATIONS_ROOT_SESSIONS, [], plugins + self._select_input( + _models.ENABLE_ORGANIZATIONS_ROOT_SESSIONS, args, kwargs + ), + _models.ENABLE_ORGANIZATIONS_ROOT_SESSIONS, + [], + plugins, ) + @_overload + async def enable_outbound_web_identity_federation( + self, + request: _models.EnableOutboundWebIdentityFederationInput + | _models.EnableOutboundWebIdentityFederationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableOutboundWebIdentityFederationOutput: ... + + @_overload async def enable_outbound_web_identity_federation( self, - input: EnableOutboundWebIdentityFederationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableOutboundWebIdentityFederationInputDict], ) -> EnableOutboundWebIdentityFederationOutput: """ Enables the outbound identity federation feature for your Amazon Web @@ -2390,8 +3422,6 @@ async def enable_outbound_web_identity_federation( generates a unique issuer URL for your Amazon Web Services account. Args: - input: - An instance of `EnableOutboundWebIdentityFederationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2401,12 +3431,36 @@ async def enable_outbound_web_identity_federation( Returns: An instance of `EnableOutboundWebIdentityFederationOutput`. """ + + async def enable_outbound_web_identity_federation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableOutboundWebIdentityFederationOutput: return await self._invoke( - input, _models.ENABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, [], plugins + self._select_input( + _models.ENABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, args, kwargs + ), + _models.ENABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, + [], + plugins, ) + @_overload + async def generate_credential_report( + self, + request: _models.GenerateCredentialReportInput + | _models.GenerateCredentialReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateCredentialReportOutput: ... + + @_overload async def generate_credential_report( - self, input: GenerateCredentialReportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateCredentialReportInputDict], ) -> GenerateCredentialReportOutput: """ Generates a credential report for the Amazon Web Services account. For @@ -2415,8 +3469,6 @@ async def generate_credential_report( in the *IAM User Guide*. Args: - input: - An instance of `GenerateCredentialReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2426,14 +3478,34 @@ async def generate_credential_report( Returns: An instance of `GenerateCredentialReportOutput`. """ + + async def generate_credential_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateCredentialReportOutput: return await self._invoke( - input, _models.GENERATE_CREDENTIAL_REPORT, [], plugins + self._select_input(_models.GENERATE_CREDENTIAL_REPORT, args, kwargs), + _models.GENERATE_CREDENTIAL_REPORT, + [], + plugins, ) + @_overload async def generate_organizations_access_report( self, - input: GenerateOrganizationsAccessReportInput, + request: _models.GenerateOrganizationsAccessReportInput + | _models.GenerateOrganizationsAccessReportInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GenerateOrganizationsAccessReportOutput: ... + + @_overload + async def generate_organizations_access_report( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateOrganizationsAccessReportInputDict], ) -> GenerateOrganizationsAccessReportOutput: """ Generates a report for service last accessed data for Organizations. You @@ -2569,8 +3641,6 @@ async def generate_organizations_access_report( in the *IAM User Guide*. Args: - input: - An instance of `GenerateOrganizationsAccessReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2580,14 +3650,36 @@ async def generate_organizations_access_report( Returns: An instance of `GenerateOrganizationsAccessReportOutput`. """ + + async def generate_organizations_access_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateOrganizationsAccessReportOutput: return await self._invoke( - input, _models.GENERATE_ORGANIZATIONS_ACCESS_REPORT, [], plugins + self._select_input( + _models.GENERATE_ORGANIZATIONS_ACCESS_REPORT, args, kwargs + ), + _models.GENERATE_ORGANIZATIONS_ACCESS_REPORT, + [], + plugins, ) + @_overload + async def generate_service_last_accessed_details( + self, + request: _models.GenerateServiceLastAccessedDetailsInput + | _models.GenerateServiceLastAccessedDetailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateServiceLastAccessedDetailsOutput: ... + + @_overload async def generate_service_last_accessed_details( self, - input: GenerateServiceLastAccessedDetailsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateServiceLastAccessedDetailsInputDict], ) -> GenerateServiceLastAccessedDetailsOutput: """ Generates a report that includes details about when an IAM resource @@ -2660,8 +3752,6 @@ async def generate_service_last_accessed_details( in the *IAM User Guide*. Args: - input: - An instance of `GenerateServiceLastAccessedDetailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2671,12 +3761,36 @@ async def generate_service_last_accessed_details( Returns: An instance of `GenerateServiceLastAccessedDetailsOutput`. """ + + async def generate_service_last_accessed_details( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateServiceLastAccessedDetailsOutput: return await self._invoke( - input, _models.GENERATE_SERVICE_LAST_ACCESSED_DETAILS, [], plugins + self._select_input( + _models.GENERATE_SERVICE_LAST_ACCESSED_DETAILS, args, kwargs + ), + _models.GENERATE_SERVICE_LAST_ACCESSED_DETAILS, + [], + plugins, ) + @_overload + async def get_access_key_last_used( + self, + request: _models.GetAccessKeyLastUsedInput + | _models.GetAccessKeyLastUsedInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccessKeyLastUsedOutput: ... + + @_overload async def get_access_key_last_used( - self, input: GetAccessKeyLastUsedInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccessKeyLastUsedInputDict], ) -> GetAccessKeyLastUsedOutput: """ Retrieves information about when the specified access key was last used. @@ -2685,8 +3799,6 @@ async def get_access_key_last_used( request made with that key. Args: - input: - An instance of `GetAccessKeyLastUsedInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2696,12 +3808,34 @@ async def get_access_key_last_used( Returns: An instance of `GetAccessKeyLastUsedOutput`. """ - return await self._invoke(input, _models.GET_ACCESS_KEY_LAST_USED, [], plugins) + async def get_access_key_last_used( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccessKeyLastUsedOutput: + return await self._invoke( + self._select_input(_models.GET_ACCESS_KEY_LAST_USED, args, kwargs), + _models.GET_ACCESS_KEY_LAST_USED, + [], + plugins, + ) + + @_overload + async def get_account_authorization_details( + self, + request: _models.GetAccountAuthorizationDetailsInput + | _models.GetAccountAuthorizationDetailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountAuthorizationDetailsOutput: ... + + @_overload async def get_account_authorization_details( self, - input: GetAccountAuthorizationDetailsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountAuthorizationDetailsInputDict], ) -> GetAccountAuthorizationDetailsOutput: """ Retrieves information about all IAM users, groups, roles, and policies @@ -2723,8 +3857,6 @@ async def get_account_authorization_details( can paginate the results using the `MaxItems` and `Marker` parameters. Args: - input: - An instance of `GetAccountAuthorizationDetailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2734,12 +3866,34 @@ async def get_account_authorization_details( Returns: An instance of `GetAccountAuthorizationDetailsOutput`. """ + + async def get_account_authorization_details( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountAuthorizationDetailsOutput: return await self._invoke( - input, _models.GET_ACCOUNT_AUTHORIZATION_DETAILS, [], plugins + self._select_input(_models.GET_ACCOUNT_AUTHORIZATION_DETAILS, args, kwargs), + _models.GET_ACCOUNT_AUTHORIZATION_DETAILS, + [], + plugins, ) + @_overload async def get_account_password_policy( - self, input: GetAccountPasswordPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAccountPasswordPolicyInput + | _models.GetAccountPasswordPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountPasswordPolicyOutput: ... + + @_overload + async def get_account_password_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountPasswordPolicyInputDict], ) -> GetAccountPasswordPolicyOutput: """ Retrieves the password policy for the Amazon Web Services account. This @@ -2749,8 +3903,6 @@ async def get_account_password_policy( policy](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html). Args: - input: - An instance of `GetAccountPasswordPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2760,12 +3912,34 @@ async def get_account_password_policy( Returns: An instance of `GetAccountPasswordPolicyOutput`. """ + + async def get_account_password_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountPasswordPolicyOutput: return await self._invoke( - input, _models.GET_ACCOUNT_PASSWORD_POLICY, [], plugins + self._select_input(_models.GET_ACCOUNT_PASSWORD_POLICY, args, kwargs), + _models.GET_ACCOUNT_PASSWORD_POLICY, + [], + plugins, ) + @_overload + async def get_account_properties( + self, + request: _models.GetAccountPropertiesInput + | _models.GetAccountPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountPropertiesOutput: ... + + @_overload async def get_account_properties( - self, input: GetAccountPropertiesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountPropertiesInputDict], ) -> GetAccountPropertiesOutput: """ Retrieves the account-level properties for the caller's Amazon Web @@ -2779,8 +3953,6 @@ async def get_account_properties( to modify these properties. Args: - input: - An instance of `GetAccountPropertiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2790,10 +3962,33 @@ async def get_account_properties( Returns: An instance of `GetAccountPropertiesOutput`. """ - return await self._invoke(input, _models.GET_ACCOUNT_PROPERTIES, [], plugins) + async def get_account_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountPropertiesOutput: + return await self._invoke( + self._select_input(_models.GET_ACCOUNT_PROPERTIES, args, kwargs), + _models.GET_ACCOUNT_PROPERTIES, + [], + plugins, + ) + + @_overload async def get_account_summary( - self, input: GetAccountSummaryInput, plugins: list[Plugin] | None = None + self, + request: _models.GetAccountSummaryInput | _models.GetAccountSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountSummaryOutput: ... + + @_overload + async def get_account_summary( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountSummaryInputDict], ) -> GetAccountSummaryOutput: """ Retrieves information about IAM entity usage and IAM quotas in the @@ -2804,8 +3999,6 @@ async def get_account_summary( in the *IAM User Guide*. Args: - input: - An instance of `GetAccountSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2815,12 +4008,34 @@ async def get_account_summary( Returns: An instance of `GetAccountSummaryOutput`. """ - return await self._invoke(input, _models.GET_ACCOUNT_SUMMARY, [], plugins) + async def get_account_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountSummaryOutput: + return await self._invoke( + self._select_input(_models.GET_ACCOUNT_SUMMARY, args, kwargs), + _models.GET_ACCOUNT_SUMMARY, + [], + plugins, + ) + + @_overload + async def get_context_keys_for_custom_policy( + self, + request: _models.GetContextKeysForCustomPolicyInput + | _models.GetContextKeysForCustomPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetContextKeysForCustomPolicyOutput: ... + + @_overload async def get_context_keys_for_custom_policy( self, - input: GetContextKeysForCustomPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetContextKeysForCustomPolicyInputDict], ) -> GetContextKeysForCustomPolicyOutput: """ Gets a list of all of the context keys referenced in the input policies. @@ -2839,8 +4054,6 @@ async def get_context_keys_for_custom_policy( but must be URL encoded to be included as a part of a real HTML request. Args: - input: - An instance of `GetContextKeysForCustomPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2850,14 +4063,36 @@ async def get_context_keys_for_custom_policy( Returns: An instance of `GetContextKeysForCustomPolicyOutput`. """ + + async def get_context_keys_for_custom_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetContextKeysForCustomPolicyOutput: return await self._invoke( - input, _models.GET_CONTEXT_KEYS_FOR_CUSTOM_POLICY, [], plugins + self._select_input( + _models.GET_CONTEXT_KEYS_FOR_CUSTOM_POLICY, args, kwargs + ), + _models.GET_CONTEXT_KEYS_FOR_CUSTOM_POLICY, + [], + plugins, ) + @_overload + async def get_context_keys_for_principal_policy( + self, + request: _models.GetContextKeysForPrincipalPolicyInput + | _models.GetContextKeysForPrincipalPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetContextKeysForPrincipalPolicyOutput: ... + + @_overload async def get_context_keys_for_principal_policy( self, - input: GetContextKeysForPrincipalPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetContextKeysForPrincipalPolicyInputDict], ) -> GetContextKeysForPrincipalPolicyOutput: """ Gets a list of all of the context keys referenced in all the IAM @@ -2891,8 +4126,6 @@ async def get_context_keys_for_principal_policy( additional policies that you provide, are included. Args: - input: - An instance of `GetContextKeysForPrincipalPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2902,12 +4135,36 @@ async def get_context_keys_for_principal_policy( Returns: An instance of `GetContextKeysForPrincipalPolicyOutput`. """ + + async def get_context_keys_for_principal_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetContextKeysForPrincipalPolicyOutput: return await self._invoke( - input, _models.GET_CONTEXT_KEYS_FOR_PRINCIPAL_POLICY, [], plugins + self._select_input( + _models.GET_CONTEXT_KEYS_FOR_PRINCIPAL_POLICY, args, kwargs + ), + _models.GET_CONTEXT_KEYS_FOR_PRINCIPAL_POLICY, + [], + plugins, ) + @_overload + async def get_credential_report( + self, + request: _models.GetCredentialReportInput + | _models.GetCredentialReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCredentialReportOutput: ... + + @_overload async def get_credential_report( - self, input: GetCredentialReportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCredentialReportInputDict], ) -> GetCredentialReportOutput: """ Retrieves a credential report for the Amazon Web Services account. For @@ -2916,8 +4173,6 @@ async def get_credential_report( in the *IAM User Guide*. Args: - input: - An instance of `GetCredentialReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2927,10 +4182,34 @@ async def get_credential_report( Returns: An instance of `GetCredentialReportOutput`. """ - return await self._invoke(input, _models.GET_CREDENTIAL_REPORT, [], plugins) + async def get_credential_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCredentialReportOutput: + return await self._invoke( + self._select_input(_models.GET_CREDENTIAL_REPORT, args, kwargs), + _models.GET_CREDENTIAL_REPORT, + [], + plugins, + ) + + @_overload + async def get_delegation_request( + self, + request: _models.GetDelegationRequestInput + | _models.GetDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDelegationRequestOutput: ... + + @_overload async def get_delegation_request( - self, input: GetDelegationRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDelegationRequestInputDict], ) -> GetDelegationRequestOutput: """ Retrieves information about a specific delegation request. @@ -2945,8 +4224,6 @@ async def get_delegation_request( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `GetDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2956,18 +4233,39 @@ async def get_delegation_request( Returns: An instance of `GetDelegationRequestOutput`. """ - return await self._invoke(input, _models.GET_DELEGATION_REQUEST, [], plugins) + async def get_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDelegationRequestOutput: + return await self._invoke( + self._select_input(_models.GET_DELEGATION_REQUEST, args, kwargs), + _models.GET_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + async def get_group( + self, + request: _models.GetGroupInput | _models.GetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGroupOutput: ... + + @_overload async def get_group( - self, input: GetGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGroupInputDict], ) -> GetGroupOutput: """ Returns a list of IAM users that are in the specified IAM group. You can paginate the results using the `MaxItems` and `Marker` parameters. Args: - input: - An instance of `GetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2977,10 +4275,33 @@ async def get_group( Returns: An instance of `GetGroupOutput`. """ - return await self._invoke(input, _models.GET_GROUP, [], plugins) + async def get_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGroupOutput: + return await self._invoke( + self._select_input(_models.GET_GROUP, args, kwargs), + _models.GET_GROUP, + [], + plugins, + ) + + @_overload + async def get_group_policy( + self, + request: _models.GetGroupPolicyInput | _models.GetGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGroupPolicyOutput: ... + + @_overload async def get_group_policy( - self, input: GetGroupPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGroupPolicyInputDict], ) -> GetGroupPolicyOutput: """ Retrieves the specified inline policy document that is embedded in the @@ -3007,8 +4328,6 @@ async def get_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `GetGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3018,10 +4337,34 @@ async def get_group_policy( Returns: An instance of `GetGroupPolicyOutput`. """ - return await self._invoke(input, _models.GET_GROUP_POLICY, [], plugins) + async def get_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGroupPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_GROUP_POLICY, args, kwargs), + _models.GET_GROUP_POLICY, + [], + plugins, + ) + + @_overload + async def get_human_readable_summary( + self, + request: _models.GetHumanReadableSummaryInput + | _models.GetHumanReadableSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHumanReadableSummaryOutput: ... + + @_overload async def get_human_readable_summary( - self, input: GetHumanReadableSummaryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHumanReadableSummaryInputDict], ) -> GetHumanReadableSummaryOutput: """ Retrieves a human readable summary for a given entity. At this time, the @@ -3045,8 +4388,6 @@ async def get_human_readable_summary( readable summary for that request. Args: - input: - An instance of `GetHumanReadableSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3056,12 +4397,33 @@ async def get_human_readable_summary( Returns: An instance of `GetHumanReadableSummaryOutput`. """ + + async def get_human_readable_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHumanReadableSummaryOutput: return await self._invoke( - input, _models.GET_HUMAN_READABLE_SUMMARY, [], plugins + self._select_input(_models.GET_HUMAN_READABLE_SUMMARY, args, kwargs), + _models.GET_HUMAN_READABLE_SUMMARY, + [], + plugins, ) + @_overload + async def get_instance_profile( + self, + request: _models.GetInstanceProfileInput | _models.GetInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceProfileOutput: ... + + @_overload async def get_instance_profile( - self, input: GetInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceProfileInputDict], ) -> GetInstanceProfileOutput: """ Retrieves information about the specified instance profile, including @@ -3071,8 +4433,6 @@ async def get_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `GetInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3082,10 +4442,33 @@ async def get_instance_profile( Returns: An instance of `GetInstanceProfileOutput`. """ - return await self._invoke(input, _models.GET_INSTANCE_PROFILE, [], plugins) + async def get_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceProfileOutput: + return await self._invoke( + self._select_input(_models.GET_INSTANCE_PROFILE, args, kwargs), + _models.GET_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + async def get_login_profile( + self, + request: _models.GetLoginProfileInput | _models.GetLoginProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLoginProfileOutput: ... + + @_overload async def get_login_profile( - self, input: GetLoginProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLoginProfileInputDict], ) -> GetLoginProfileOutput: """ Retrieves the user name for the specified IAM user. A login profile is @@ -3104,8 +4487,6 @@ async def get_login_profile( Management Console. Args: - input: - An instance of `GetLoginProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3115,17 +4496,38 @@ async def get_login_profile( Returns: An instance of `GetLoginProfileOutput`. """ - return await self._invoke(input, _models.GET_LOGIN_PROFILE, [], plugins) + async def get_login_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLoginProfileOutput: + return await self._invoke( + self._select_input(_models.GET_LOGIN_PROFILE, args, kwargs), + _models.GET_LOGIN_PROFILE, + [], + plugins, + ) + + @_overload async def get_mfa_device( - self, input: GetMFADeviceInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMFADeviceInput | _models.GetMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMFADeviceOutput: ... + + @_overload + async def get_mfa_device( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMFADeviceInputDict], ) -> GetMFADeviceOutput: """ Retrieves information about an MFA device for a specified user. Args: - input: - An instance of `GetMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3135,18 +4537,40 @@ async def get_mfa_device( Returns: An instance of `GetMFADeviceOutput`. """ - return await self._invoke(input, _models.GET_MFA_DEVICE, [], plugins) + async def get_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMFADeviceOutput: + return await self._invoke( + self._select_input(_models.GET_MFA_DEVICE, args, kwargs), + _models.GET_MFA_DEVICE, + [], + plugins, + ) + + @_overload + async def get_open_id_connect_provider( + self, + request: _models.GetOpenIDConnectProviderInput + | _models.GetOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOpenIDConnectProviderOutput: ... + + @_overload async def get_open_id_connect_provider( - self, input: GetOpenIDConnectProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOpenIDConnectProviderInputDict], ) -> GetOpenIDConnectProviderOutput: """ Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM. Args: - input: - An instance of `GetOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3156,14 +4580,34 @@ async def get_open_id_connect_provider( Returns: An instance of `GetOpenIDConnectProviderOutput`. """ + + async def get_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOpenIDConnectProviderOutput: return await self._invoke( - input, _models.GET_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input(_models.GET_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.GET_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload async def get_organizations_access_report( self, - input: GetOrganizationsAccessReportInput, + request: _models.GetOrganizationsAccessReportInput + | _models.GetOrganizationsAccessReportInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetOrganizationsAccessReportOutput: ... + + @_overload + async def get_organizations_access_report( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOrganizationsAccessReportInputDict], ) -> GetOrganizationsAccessReportOutput: """ Retrieves the service last accessed data report for Organizations that @@ -3193,8 +4637,6 @@ async def get_organizations_access_report( By default, the list is sorted by service namespace. Args: - input: - An instance of `GetOrganizationsAccessReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3204,14 +4646,34 @@ async def get_organizations_access_report( Returns: An instance of `GetOrganizationsAccessReportOutput`. """ + + async def get_organizations_access_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOrganizationsAccessReportOutput: return await self._invoke( - input, _models.GET_ORGANIZATIONS_ACCESS_REPORT, [], plugins + self._select_input(_models.GET_ORGANIZATIONS_ACCESS_REPORT, args, kwargs), + _models.GET_ORGANIZATIONS_ACCESS_REPORT, + [], + plugins, ) + @_overload + async def get_outbound_web_identity_federation_info( + self, + request: _models.GetOutboundWebIdentityFederationInfoInput + | _models.GetOutboundWebIdentityFederationInfoInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOutboundWebIdentityFederationInfoOutput: ... + + @_overload async def get_outbound_web_identity_federation_info( self, - input: GetOutboundWebIdentityFederationInfoInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOutboundWebIdentityFederationInfoInputDict], ) -> GetOutboundWebIdentityFederationInfoOutput: """ Retrieves the configuration information for the outbound identity @@ -3222,8 +4684,6 @@ async def get_outbound_web_identity_federation_info( with external services. Args: - input: - An instance of `GetOutboundWebIdentityFederationInfoInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3233,12 +4693,35 @@ async def get_outbound_web_identity_federation_info( Returns: An instance of `GetOutboundWebIdentityFederationInfoOutput`. """ + + async def get_outbound_web_identity_federation_info( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOutboundWebIdentityFederationInfoOutput: return await self._invoke( - input, _models.GET_OUTBOUND_WEB_IDENTITY_FEDERATION_INFO, [], plugins + self._select_input( + _models.GET_OUTBOUND_WEB_IDENTITY_FEDERATION_INFO, args, kwargs + ), + _models.GET_OUTBOUND_WEB_IDENTITY_FEDERATION_INFO, + [], + plugins, ) + @_overload + async def get_policy( + self, + request: _models.GetPolicyInput | _models.GetPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyOutput: ... + + @_overload async def get_policy( - self, input: GetPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyInputDict], ) -> GetPolicyOutput: """ Retrieves information about the specified managed policy, including the @@ -3263,8 +4746,6 @@ async def get_policy( in the *IAM User Guide*. Args: - input: - An instance of `GetPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3274,10 +4755,33 @@ async def get_policy( Returns: An instance of `GetPolicyOutput`. """ - return await self._invoke(input, _models.GET_POLICY, [], plugins) + async def get_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY, args, kwargs), + _models.GET_POLICY, + [], + plugins, + ) + + @_overload + async def get_policy_version( + self, + request: _models.GetPolicyVersionInput | _models.GetPolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyVersionOutput: ... + + @_overload async def get_policy_version( - self, input: GetPolicyVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyVersionInputDict], ) -> GetPolicyVersionOutput: """ Retrieves information about the specified version of the specified @@ -3314,8 +4818,6 @@ async def get_policy_version( in the *IAM User Guide*. Args: - input: - An instance of `GetPolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3325,10 +4827,33 @@ async def get_policy_version( Returns: An instance of `GetPolicyVersionOutput`. """ - return await self._invoke(input, _models.GET_POLICY_VERSION, [], plugins) + async def get_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyVersionOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY_VERSION, args, kwargs), + _models.GET_POLICY_VERSION, + [], + plugins, + ) + + @_overload + async def get_role( + self, + request: _models.GetRoleInput | _models.GetRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRoleOutput: ... + + @_overload async def get_role( - self, input: GetRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRoleInputDict], ) -> GetRoleOutput: """ Retrieves information about the specified role, including the role's @@ -3347,8 +4872,6 @@ async def get_role( automatically. Args: - input: - An instance of `GetRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3358,10 +4881,33 @@ async def get_role( Returns: An instance of `GetRoleOutput`. """ - return await self._invoke(input, _models.GET_ROLE, [], plugins) + async def get_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRoleOutput: + return await self._invoke( + self._select_input(_models.GET_ROLE, args, kwargs), + _models.GET_ROLE, + [], + plugins, + ) + + @_overload + async def get_role_policy( + self, + request: _models.GetRolePolicyInput | _models.GetRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRolePolicyOutput: ... + + @_overload async def get_role_policy( - self, input: GetRolePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRolePolicyInputDict], ) -> GetRolePolicyOutput: """ Retrieves the specified inline policy document that is embedded with the @@ -3392,8 +4938,6 @@ async def get_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `GetRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3403,10 +4947,34 @@ async def get_role_policy( Returns: An instance of `GetRolePolicyOutput`. """ - return await self._invoke(input, _models.GET_ROLE_POLICY, [], plugins) + async def get_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRolePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_ROLE_POLICY, args, kwargs), + _models.GET_ROLE_POLICY, + [], + plugins, + ) + + @_overload + async def get_role_template_version( + self, + request: _models.GetRoleTemplateVersionInput + | _models.GetRoleTemplateVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRoleTemplateVersionOutput: ... + + @_overload async def get_role_template_version( - self, input: GetRoleTemplateVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRoleTemplateVersionInputDict], ) -> GetRoleTemplateVersionOutput: """ Retrieves information about a version of the specified role template. @@ -3420,8 +4988,6 @@ async def get_role_template_version( template's default minor version. Args: - input: - An instance of `GetRoleTemplateVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3431,10 +4997,33 @@ async def get_role_template_version( Returns: An instance of `GetRoleTemplateVersionOutput`. """ - return await self._invoke(input, _models.GET_ROLE_TEMPLATE_VERSION, [], plugins) + async def get_role_template_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRoleTemplateVersionOutput: + return await self._invoke( + self._select_input(_models.GET_ROLE_TEMPLATE_VERSION, args, kwargs), + _models.GET_ROLE_TEMPLATE_VERSION, + [], + plugins, + ) + + @_overload + async def get_saml_provider( + self, + request: _models.GetSAMLProviderInput | _models.GetSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSAMLProviderOutput: ... + + @_overload async def get_saml_provider( - self, input: GetSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSAMLProviderInputDict], ) -> GetSAMLProviderOutput: """ Returns the SAML provider metadocument that was uploaded when the IAM @@ -3445,8 +5034,6 @@ async def get_saml_provider( 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). Args: - input: - An instance of `GetSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3456,10 +5043,34 @@ async def get_saml_provider( Returns: An instance of `GetSAMLProviderOutput`. """ - return await self._invoke(input, _models.GET_SAML_PROVIDER, [], plugins) + async def get_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSAMLProviderOutput: + return await self._invoke( + self._select_input(_models.GET_SAML_PROVIDER, args, kwargs), + _models.GET_SAML_PROVIDER, + [], + plugins, + ) + + @_overload async def get_server_certificate( - self, input: GetServerCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.GetServerCertificateInput + | _models.GetServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetServerCertificateOutput: ... + + @_overload + async def get_server_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetServerCertificateInputDict], ) -> GetServerCertificateOutput: """ Retrieves information about the specified server certificate stored in @@ -3473,8 +5084,6 @@ async def get_server_certificate( with IAM. Args: - input: - An instance of `GetServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3484,12 +5093,34 @@ async def get_server_certificate( Returns: An instance of `GetServerCertificateOutput`. """ - return await self._invoke(input, _models.GET_SERVER_CERTIFICATE, [], plugins) + async def get_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetServerCertificateOutput: + return await self._invoke( + self._select_input(_models.GET_SERVER_CERTIFICATE, args, kwargs), + _models.GET_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def get_service_last_accessed_details( + self, + request: _models.GetServiceLastAccessedDetailsInput + | _models.GetServiceLastAccessedDetailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetServiceLastAccessedDetailsOutput: ... + + @_overload async def get_service_last_accessed_details( self, - input: GetServiceLastAccessedDetailsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetServiceLastAccessedDetailsInputDict], ) -> GetServiceLastAccessedDetailsOutput: """ Retrieves a service last accessed report that was created using the @@ -3546,8 +5177,6 @@ async def get_service_last_accessed_details( in the *IAM User Guide*. Args: - input: - An instance of `GetServiceLastAccessedDetailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3557,14 +5186,34 @@ async def get_service_last_accessed_details( Returns: An instance of `GetServiceLastAccessedDetailsOutput`. """ + + async def get_service_last_accessed_details( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetServiceLastAccessedDetailsOutput: return await self._invoke( - input, _models.GET_SERVICE_LAST_ACCESSED_DETAILS, [], plugins + self._select_input(_models.GET_SERVICE_LAST_ACCESSED_DETAILS, args, kwargs), + _models.GET_SERVICE_LAST_ACCESSED_DETAILS, + [], + plugins, ) + @_overload + async def get_service_last_accessed_details_with_entities( + self, + request: _models.GetServiceLastAccessedDetailsWithEntitiesInput + | _models.GetServiceLastAccessedDetailsWithEntitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetServiceLastAccessedDetailsWithEntitiesOutput: ... + + @_overload async def get_service_last_accessed_details_with_entities( self, - input: GetServiceLastAccessedDetailsWithEntitiesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetServiceLastAccessedDetailsWithEntitiesInputDict], ) -> GetServiceLastAccessedDetailsWithEntitiesOutput: """ After you generate a group or policy report using the @@ -3592,8 +5241,6 @@ async def get_service_last_accessed_details_with_entities( most recent access listed first. Args: - input: - An instance of `GetServiceLastAccessedDetailsWithEntitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3603,14 +5250,36 @@ async def get_service_last_accessed_details_with_entities( Returns: An instance of `GetServiceLastAccessedDetailsWithEntitiesOutput`. """ + + async def get_service_last_accessed_details_with_entities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetServiceLastAccessedDetailsWithEntitiesOutput: return await self._invoke( - input, _models.GET_SERVICE_LAST_ACCESSED_DETAILS_WITH_ENTITIES, [], plugins + self._select_input( + _models.GET_SERVICE_LAST_ACCESSED_DETAILS_WITH_ENTITIES, args, kwargs + ), + _models.GET_SERVICE_LAST_ACCESSED_DETAILS_WITH_ENTITIES, + [], + plugins, ) + @_overload + async def get_service_linked_role_deletion_status( + self, + request: _models.GetServiceLinkedRoleDeletionStatusInput + | _models.GetServiceLinkedRoleDeletionStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetServiceLinkedRoleDeletionStatusOutput: ... + + @_overload async def get_service_linked_role_deletion_status( self, - input: GetServiceLinkedRoleDeletionStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetServiceLinkedRoleDeletionStatusInputDict], ) -> GetServiceLinkedRoleDeletionStatusOutput: """ Retrieves the status of your service-linked role deletion. After you use @@ -3622,8 +5291,6 @@ async def get_service_linked_role_deletion_status( the service. Args: - input: - An instance of `GetServiceLinkedRoleDeletionStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3633,12 +5300,35 @@ async def get_service_linked_role_deletion_status( Returns: An instance of `GetServiceLinkedRoleDeletionStatusOutput`. """ + + async def get_service_linked_role_deletion_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetServiceLinkedRoleDeletionStatusOutput: return await self._invoke( - input, _models.GET_SERVICE_LINKED_ROLE_DELETION_STATUS, [], plugins + self._select_input( + _models.GET_SERVICE_LINKED_ROLE_DELETION_STATUS, args, kwargs + ), + _models.GET_SERVICE_LINKED_ROLE_DELETION_STATUS, + [], + plugins, ) + @_overload async def get_ssh_public_key( - self, input: GetSSHPublicKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSSHPublicKeyInput | _models.GetSSHPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSSHPublicKeyOutput: ... + + @_overload + async def get_ssh_public_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSSHPublicKeyInputDict], ) -> GetSSHPublicKeyOutput: """ Retrieves the specified SSH public key, including metadata about the @@ -3652,8 +5342,6 @@ async def get_ssh_public_key( in the *CodeCommit User Guide*. Args: - input: - An instance of `GetSSHPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3663,10 +5351,33 @@ async def get_ssh_public_key( Returns: An instance of `GetSSHPublicKeyOutput`. """ - return await self._invoke(input, _models.GET_SSH_PUBLIC_KEY, [], plugins) + async def get_ssh_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSSHPublicKeyOutput: + return await self._invoke( + self._select_input(_models.GET_SSH_PUBLIC_KEY, args, kwargs), + _models.GET_SSH_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + async def get_user( + self, + request: _models.GetUserInput | _models.GetUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUserOutput: ... + + @_overload async def get_user( - self, input: GetUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUserInputDict], ) -> GetUserOutput: """ Retrieves information about the specified IAM user, including the @@ -3677,8 +5388,6 @@ async def get_user( the request to this operation. Args: - input: - An instance of `GetUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3688,10 +5397,33 @@ async def get_user( Returns: An instance of `GetUserOutput`. """ - return await self._invoke(input, _models.GET_USER, [], plugins) + async def get_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUserOutput: + return await self._invoke( + self._select_input(_models.GET_USER, args, kwargs), + _models.GET_USER, + [], + plugins, + ) + + @_overload + async def get_user_policy( + self, + request: _models.GetUserPolicyInput | _models.GetUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUserPolicyOutput: ... + + @_overload async def get_user_policy( - self, input: GetUserPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUserPolicyInputDict], ) -> GetUserPolicyOutput: """ Retrieves the specified inline policy document that is embedded in the @@ -3718,8 +5450,6 @@ async def get_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `GetUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3729,10 +5459,33 @@ async def get_user_policy( Returns: An instance of `GetUserPolicyOutput`. """ - return await self._invoke(input, _models.GET_USER_POLICY, [], plugins) + async def get_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUserPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_USER_POLICY, args, kwargs), + _models.GET_USER_POLICY, + [], + plugins, + ) + + @_overload + async def list_access_keys( + self, + request: _models.ListAccessKeysInput | _models.ListAccessKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAccessKeysOutput: ... + + @_overload async def list_access_keys( - self, input: ListAccessKeysInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAccessKeysInputDict], ) -> ListAccessKeysOutput: """ Returns information about the access key IDs associated with the @@ -3757,8 +5510,6 @@ async def list_access_keys( access key is accessible only during key and user creation. Args: - input: - An instance of `ListAccessKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3768,10 +5519,33 @@ async def list_access_keys( Returns: An instance of `ListAccessKeysOutput`. """ - return await self._invoke(input, _models.LIST_ACCESS_KEYS, [], plugins) + async def list_access_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAccessKeysOutput: + return await self._invoke( + self._select_input(_models.LIST_ACCESS_KEYS, args, kwargs), + _models.LIST_ACCESS_KEYS, + [], + plugins, + ) + + @_overload + async def list_account_aliases( + self, + request: _models.ListAccountAliasesInput | _models.ListAccountAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAccountAliasesOutput: ... + + @_overload async def list_account_aliases( - self, input: ListAccountAliasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAccountAliasesInputDict], ) -> ListAccountAliasesOutput: """ Lists the account alias associated with the Amazon Web Services account @@ -3782,8 +5556,6 @@ async def list_account_aliases( in the *IAM User Guide*. Args: - input: - An instance of `ListAccountAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3793,10 +5565,34 @@ async def list_account_aliases( Returns: An instance of `ListAccountAliasesOutput`. """ - return await self._invoke(input, _models.LIST_ACCOUNT_ALIASES, [], plugins) + async def list_account_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAccountAliasesOutput: + return await self._invoke( + self._select_input(_models.LIST_ACCOUNT_ALIASES, args, kwargs), + _models.LIST_ACCOUNT_ALIASES, + [], + plugins, + ) + + @_overload + async def list_attached_group_policies( + self, + request: _models.ListAttachedGroupPoliciesInput + | _models.ListAttachedGroupPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttachedGroupPoliciesOutput: ... + + @_overload async def list_attached_group_policies( - self, input: ListAttachedGroupPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttachedGroupPoliciesInputDict], ) -> ListAttachedGroupPoliciesOutput: """ Lists all managed policies that are attached to the specified IAM group. @@ -3815,8 +5611,6 @@ async def list_attached_group_policies( specified path prefix), the operation returns an empty list. Args: - input: - An instance of `ListAttachedGroupPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3826,12 +5620,34 @@ async def list_attached_group_policies( Returns: An instance of `ListAttachedGroupPoliciesOutput`. """ + + async def list_attached_group_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttachedGroupPoliciesOutput: return await self._invoke( - input, _models.LIST_ATTACHED_GROUP_POLICIES, [], plugins + self._select_input(_models.LIST_ATTACHED_GROUP_POLICIES, args, kwargs), + _models.LIST_ATTACHED_GROUP_POLICIES, + [], + plugins, ) + @_overload + async def list_attached_role_policies( + self, + request: _models.ListAttachedRolePoliciesInput + | _models.ListAttachedRolePoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttachedRolePoliciesOutput: ... + + @_overload async def list_attached_role_policies( - self, input: ListAttachedRolePoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttachedRolePoliciesInputDict], ) -> ListAttachedRolePoliciesOutput: """ Lists all managed policies that are attached to the specified IAM role. @@ -3850,8 +5666,6 @@ async def list_attached_role_policies( specified path prefix), the operation returns an empty list. Args: - input: - An instance of `ListAttachedRolePoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3861,12 +5675,34 @@ async def list_attached_role_policies( Returns: An instance of `ListAttachedRolePoliciesOutput`. """ + + async def list_attached_role_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttachedRolePoliciesOutput: return await self._invoke( - input, _models.LIST_ATTACHED_ROLE_POLICIES, [], plugins + self._select_input(_models.LIST_ATTACHED_ROLE_POLICIES, args, kwargs), + _models.LIST_ATTACHED_ROLE_POLICIES, + [], + plugins, ) + @_overload + async def list_attached_user_policies( + self, + request: _models.ListAttachedUserPoliciesInput + | _models.ListAttachedUserPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttachedUserPoliciesOutput: ... + + @_overload async def list_attached_user_policies( - self, input: ListAttachedUserPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttachedUserPoliciesInputDict], ) -> ListAttachedUserPoliciesOutput: """ Lists all managed policies that are attached to the specified IAM user. @@ -3885,8 +5721,6 @@ async def list_attached_user_policies( specified path prefix), the operation returns an empty list. Args: - input: - An instance of `ListAttachedUserPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3896,12 +5730,34 @@ async def list_attached_user_policies( Returns: An instance of `ListAttachedUserPoliciesOutput`. """ + + async def list_attached_user_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttachedUserPoliciesOutput: return await self._invoke( - input, _models.LIST_ATTACHED_USER_POLICIES, [], plugins + self._select_input(_models.LIST_ATTACHED_USER_POLICIES, args, kwargs), + _models.LIST_ATTACHED_USER_POLICIES, + [], + plugins, ) + @_overload + async def list_delegation_requests( + self, + request: _models.ListDelegationRequestsInput + | _models.ListDelegationRequestsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDelegationRequestsOutput: ... + + @_overload async def list_delegation_requests( - self, input: ListDelegationRequestsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDelegationRequestsInputDict], ) -> ListDelegationRequestsOutput: """ Lists delegation requests based on the specified criteria. @@ -3914,8 +5770,6 @@ async def list_delegation_requests( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `ListDelegationRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3925,10 +5779,34 @@ async def list_delegation_requests( Returns: An instance of `ListDelegationRequestsOutput`. """ - return await self._invoke(input, _models.LIST_DELEGATION_REQUESTS, [], plugins) + async def list_delegation_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDelegationRequestsOutput: + return await self._invoke( + self._select_input(_models.LIST_DELEGATION_REQUESTS, args, kwargs), + _models.LIST_DELEGATION_REQUESTS, + [], + plugins, + ) + + @_overload + async def list_entities_for_policy( + self, + request: _models.ListEntitiesForPolicyInput + | _models.ListEntitiesForPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEntitiesForPolicyOutput: ... + + @_overload async def list_entities_for_policy( - self, input: ListEntitiesForPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEntitiesForPolicyInputDict], ) -> ListEntitiesForPolicyOutput: """ Lists all IAM users, groups, and roles that the specified managed policy @@ -3943,8 +5821,6 @@ async def list_entities_for_policy( parameters. Args: - input: - An instance of `ListEntitiesForPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3954,10 +5830,33 @@ async def list_entities_for_policy( Returns: An instance of `ListEntitiesForPolicyOutput`. """ - return await self._invoke(input, _models.LIST_ENTITIES_FOR_POLICY, [], plugins) + async def list_entities_for_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEntitiesForPolicyOutput: + return await self._invoke( + self._select_input(_models.LIST_ENTITIES_FOR_POLICY, args, kwargs), + _models.LIST_ENTITIES_FOR_POLICY, + [], + plugins, + ) + + @_overload + async def list_group_policies( + self, + request: _models.ListGroupPoliciesInput | _models.ListGroupPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGroupPoliciesOutput: ... + + @_overload async def list_group_policies( - self, input: ListGroupPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGroupPoliciesInputDict], ) -> ListGroupPoliciesOutput: """ Lists the names of the inline policies that are embedded in the @@ -3975,8 +5874,6 @@ async def list_group_policies( group, the operation returns an empty list. Args: - input: - An instance of `ListGroupPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3986,10 +5883,33 @@ async def list_group_policies( Returns: An instance of `ListGroupPoliciesOutput`. """ - return await self._invoke(input, _models.LIST_GROUP_POLICIES, [], plugins) + async def list_group_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGroupPoliciesOutput: + return await self._invoke( + self._select_input(_models.LIST_GROUP_POLICIES, args, kwargs), + _models.LIST_GROUP_POLICIES, + [], + plugins, + ) + + @_overload + async def list_groups( + self, + request: _models.ListGroupsInput | _models.ListGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGroupsOutput: ... + + @_overload async def list_groups( - self, input: ListGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGroupsInputDict], ) -> ListGroupsOutput: """ Lists the IAM groups that have the specified path prefix. @@ -3998,8 +5918,6 @@ async def list_groups( parameters. Args: - input: - An instance of `ListGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4009,10 +5927,33 @@ async def list_groups( Returns: An instance of `ListGroupsOutput`. """ - return await self._invoke(input, _models.LIST_GROUPS, [], plugins) + async def list_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGroupsOutput: + return await self._invoke( + self._select_input(_models.LIST_GROUPS, args, kwargs), + _models.LIST_GROUPS, + [], + plugins, + ) + + @_overload + async def list_groups_for_user( + self, + request: _models.ListGroupsForUserInput | _models.ListGroupsForUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGroupsForUserOutput: ... + + @_overload async def list_groups_for_user( - self, input: ListGroupsForUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGroupsForUserInputDict], ) -> ListGroupsForUserOutput: """ Lists the IAM groups that the specified IAM user belongs to. @@ -4021,8 +5962,6 @@ async def list_groups_for_user( parameters. Args: - input: - An instance of `ListGroupsForUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4032,10 +5971,34 @@ async def list_groups_for_user( Returns: An instance of `ListGroupsForUserOutput`. """ - return await self._invoke(input, _models.LIST_GROUPS_FOR_USER, [], plugins) + async def list_groups_for_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGroupsForUserOutput: + return await self._invoke( + self._select_input(_models.LIST_GROUPS_FOR_USER, args, kwargs), + _models.LIST_GROUPS_FOR_USER, + [], + plugins, + ) + + @_overload + async def list_instance_profiles( + self, + request: _models.ListInstanceProfilesInput + | _models.ListInstanceProfilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInstanceProfilesOutput: ... + + @_overload async def list_instance_profiles( - self, input: ListInstanceProfilesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInstanceProfilesInputDict], ) -> ListInstanceProfilesOutput: """ Lists the instance profiles that have the specified path prefix. If @@ -4055,8 +6018,6 @@ async def list_instance_profiles( parameters. Args: - input: - An instance of `ListInstanceProfilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4066,12 +6027,34 @@ async def list_instance_profiles( Returns: An instance of `ListInstanceProfilesOutput`. """ - return await self._invoke(input, _models.LIST_INSTANCE_PROFILES, [], plugins) + async def list_instance_profiles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInstanceProfilesOutput: + return await self._invoke( + self._select_input(_models.LIST_INSTANCE_PROFILES, args, kwargs), + _models.LIST_INSTANCE_PROFILES, + [], + plugins, + ) + + @_overload async def list_instance_profiles_for_role( self, - input: ListInstanceProfilesForRoleInput, + request: _models.ListInstanceProfilesForRoleInput + | _models.ListInstanceProfilesForRoleInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListInstanceProfilesForRoleOutput: ... + + @_overload + async def list_instance_profiles_for_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInstanceProfilesForRoleInputDict], ) -> ListInstanceProfilesForRoleOutput: """ Lists the instance profiles that have the specified associated IAM role. @@ -4084,8 +6067,6 @@ async def list_instance_profiles_for_role( parameters. Args: - input: - An instance of `ListInstanceProfilesForRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4095,12 +6076,34 @@ async def list_instance_profiles_for_role( Returns: An instance of `ListInstanceProfilesForRoleOutput`. """ + + async def list_instance_profiles_for_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInstanceProfilesForRoleOutput: return await self._invoke( - input, _models.LIST_INSTANCE_PROFILES_FOR_ROLE, [], plugins + self._select_input(_models.LIST_INSTANCE_PROFILES_FOR_ROLE, args, kwargs), + _models.LIST_INSTANCE_PROFILES_FOR_ROLE, + [], + plugins, ) + @_overload + async def list_instance_profile_tags( + self, + request: _models.ListInstanceProfileTagsInput + | _models.ListInstanceProfileTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInstanceProfileTagsOutput: ... + + @_overload async def list_instance_profile_tags( - self, input: ListInstanceProfileTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInstanceProfileTagsInputDict], ) -> ListInstanceProfileTagsOutput: """ Lists the tags that are attached to the specified IAM instance profile. @@ -4110,8 +6113,6 @@ async def list_instance_profile_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListInstanceProfileTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4121,12 +6122,33 @@ async def list_instance_profile_tags( Returns: An instance of `ListInstanceProfileTagsOutput`. """ + + async def list_instance_profile_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInstanceProfileTagsOutput: return await self._invoke( - input, _models.LIST_INSTANCE_PROFILE_TAGS, [], plugins + self._select_input(_models.LIST_INSTANCE_PROFILE_TAGS, args, kwargs), + _models.LIST_INSTANCE_PROFILE_TAGS, + [], + plugins, ) + @_overload + async def list_mfa_devices( + self, + request: _models.ListMFADevicesInput | _models.ListMFADevicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMFADevicesOutput: ... + + @_overload async def list_mfa_devices( - self, input: ListMFADevicesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMFADevicesInputDict], ) -> ListMFADevicesOutput: """ Lists the MFA devices for an IAM user. If the request includes a IAM @@ -4139,8 +6161,6 @@ async def list_mfa_devices( parameters. Args: - input: - An instance of `ListMFADevicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4150,10 +6170,33 @@ async def list_mfa_devices( Returns: An instance of `ListMFADevicesOutput`. """ - return await self._invoke(input, _models.LIST_MFA_DEVICES, [], plugins) + async def list_mfa_devices( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMFADevicesOutput: + return await self._invoke( + self._select_input(_models.LIST_MFA_DEVICES, args, kwargs), + _models.LIST_MFA_DEVICES, + [], + plugins, + ) + + @_overload + async def list_mfa_device_tags( + self, + request: _models.ListMFADeviceTagsInput | _models.ListMFADeviceTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMFADeviceTagsOutput: ... + + @_overload async def list_mfa_device_tags( - self, input: ListMFADeviceTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMFADeviceTagsInputDict], ) -> ListMFADeviceTagsOutput: """ Lists the tags that are attached to the specified IAM virtual @@ -4163,8 +6206,6 @@ async def list_mfa_device_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListMFADeviceTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4174,12 +6215,34 @@ async def list_mfa_device_tags( Returns: An instance of `ListMFADeviceTagsOutput`. """ - return await self._invoke(input, _models.LIST_MFA_DEVICE_TAGS, [], plugins) + async def list_mfa_device_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMFADeviceTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_MFA_DEVICE_TAGS, args, kwargs), + _models.LIST_MFA_DEVICE_TAGS, + [], + plugins, + ) + + @_overload + async def list_open_id_connect_providers( + self, + request: _models.ListOpenIDConnectProvidersInput + | _models.ListOpenIDConnectProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOpenIDConnectProvidersOutput: ... + + @_overload async def list_open_id_connect_providers( self, - input: ListOpenIDConnectProvidersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOpenIDConnectProvidersInputDict], ) -> ListOpenIDConnectProvidersOutput: """ Lists information about the IAM OpenID Connect (OIDC) provider resource @@ -4193,8 +6256,6 @@ async def list_open_id_connect_providers( [GetOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetOpenIDConnectProvider.html). Args: - input: - An instance of `ListOpenIDConnectProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4204,14 +6265,34 @@ async def list_open_id_connect_providers( Returns: An instance of `ListOpenIDConnectProvidersOutput`. """ + + async def list_open_id_connect_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOpenIDConnectProvidersOutput: return await self._invoke( - input, _models.LIST_OPEN_ID_CONNECT_PROVIDERS, [], plugins + self._select_input(_models.LIST_OPEN_ID_CONNECT_PROVIDERS, args, kwargs), + _models.LIST_OPEN_ID_CONNECT_PROVIDERS, + [], + plugins, ) + @_overload + async def list_open_id_connect_provider_tags( + self, + request: _models.ListOpenIDConnectProviderTagsInput + | _models.ListOpenIDConnectProviderTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOpenIDConnectProviderTagsOutput: ... + + @_overload async def list_open_id_connect_provider_tags( self, - input: ListOpenIDConnectProviderTagsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOpenIDConnectProviderTagsInputDict], ) -> ListOpenIDConnectProviderTagsOutput: """ Lists the tags that are attached to the specified OpenID Connect @@ -4224,8 +6305,6 @@ async def list_open_id_connect_provider_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListOpenIDConnectProviderTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4235,12 +6314,36 @@ async def list_open_id_connect_provider_tags( Returns: An instance of `ListOpenIDConnectProviderTagsOutput`. """ + + async def list_open_id_connect_provider_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOpenIDConnectProviderTagsOutput: return await self._invoke( - input, _models.LIST_OPEN_ID_CONNECT_PROVIDER_TAGS, [], plugins + self._select_input( + _models.LIST_OPEN_ID_CONNECT_PROVIDER_TAGS, args, kwargs + ), + _models.LIST_OPEN_ID_CONNECT_PROVIDER_TAGS, + [], + plugins, ) + @_overload async def list_organizations_features( - self, input: ListOrganizationsFeaturesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListOrganizationsFeaturesInput + | _models.ListOrganizationsFeaturesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOrganizationsFeaturesOutput: ... + + @_overload + async def list_organizations_features( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOrganizationsFeaturesInputDict], ) -> ListOrganizationsFeaturesOutput: """ Lists the centralized root access features enabled for your @@ -4249,8 +6352,6 @@ async def list_organizations_features( accounts](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html#id_root-user-access-management). Args: - input: - An instance of `ListOrganizationsFeaturesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4260,12 +6361,33 @@ async def list_organizations_features( Returns: An instance of `ListOrganizationsFeaturesOutput`. """ + + async def list_organizations_features( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOrganizationsFeaturesOutput: return await self._invoke( - input, _models.LIST_ORGANIZATIONS_FEATURES, [], plugins + self._select_input(_models.LIST_ORGANIZATIONS_FEATURES, args, kwargs), + _models.LIST_ORGANIZATIONS_FEATURES, + [], + plugins, ) + @_overload + async def list_policies( + self, + request: _models.ListPoliciesInput | _models.ListPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPoliciesOutput: ... + + @_overload async def list_policies( - self, input: ListPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPoliciesInputDict], ) -> ListPoliciesOutput: """ Lists all the managed policies that are available in your Amazon Web @@ -4294,8 +6416,6 @@ async def list_policies( [GetPolicy](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetPolicy.html). Args: - input: - An instance of `ListPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4305,12 +6425,34 @@ async def list_policies( Returns: An instance of `ListPoliciesOutput`. """ - return await self._invoke(input, _models.LIST_POLICIES, [], plugins) + async def list_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPoliciesOutput: + return await self._invoke( + self._select_input(_models.LIST_POLICIES, args, kwargs), + _models.LIST_POLICIES, + [], + plugins, + ) + + @_overload async def list_policies_granting_service_access( self, - input: ListPoliciesGrantingServiceAccessInput, + request: _models.ListPoliciesGrantingServiceAccessInput + | _models.ListPoliciesGrantingServiceAccessInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListPoliciesGrantingServiceAccessOutput: ... + + @_overload + async def list_policies_granting_service_access( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPoliciesGrantingServiceAccessInputDict], ) -> ListPoliciesGrantingServiceAccessOutput: """ Retrieves a list of policies that the IAM identity (user, group, or @@ -4357,8 +6499,6 @@ async def list_policies_granting_service_access( operations. Args: - input: - An instance of `ListPoliciesGrantingServiceAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4368,12 +6508,35 @@ async def list_policies_granting_service_access( Returns: An instance of `ListPoliciesGrantingServiceAccessOutput`. """ + + async def list_policies_granting_service_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPoliciesGrantingServiceAccessOutput: return await self._invoke( - input, _models.LIST_POLICIES_GRANTING_SERVICE_ACCESS, [], plugins + self._select_input( + _models.LIST_POLICIES_GRANTING_SERVICE_ACCESS, args, kwargs + ), + _models.LIST_POLICIES_GRANTING_SERVICE_ACCESS, + [], + plugins, ) + @_overload + async def list_policy_tags( + self, + request: _models.ListPolicyTagsInput | _models.ListPolicyTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyTagsOutput: ... + + @_overload async def list_policy_tags( - self, input: ListPolicyTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyTagsInputDict], ) -> ListPolicyTagsOutput: """ Lists the tags that are attached to the specified IAM customer managed @@ -4383,8 +6546,6 @@ async def list_policy_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListPolicyTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4394,10 +6555,33 @@ async def list_policy_tags( Returns: An instance of `ListPolicyTagsOutput`. """ - return await self._invoke(input, _models.LIST_POLICY_TAGS, [], plugins) + async def list_policy_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_POLICY_TAGS, args, kwargs), + _models.LIST_POLICY_TAGS, + [], + plugins, + ) + + @_overload + async def list_policy_versions( + self, + request: _models.ListPolicyVersionsInput | _models.ListPolicyVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyVersionsOutput: ... + + @_overload async def list_policy_versions( - self, input: ListPolicyVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyVersionsInputDict], ) -> ListPolicyVersionsOutput: """ Lists information about the versions of the specified managed policy, @@ -4410,8 +6594,6 @@ async def list_policy_versions( in the *IAM User Guide*. Args: - input: - An instance of `ListPolicyVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4421,10 +6603,33 @@ async def list_policy_versions( Returns: An instance of `ListPolicyVersionsOutput`. """ - return await self._invoke(input, _models.LIST_POLICY_VERSIONS, [], plugins) + async def list_policy_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyVersionsOutput: + return await self._invoke( + self._select_input(_models.LIST_POLICY_VERSIONS, args, kwargs), + _models.LIST_POLICY_VERSIONS, + [], + plugins, + ) + + @_overload + async def list_role_policies( + self, + request: _models.ListRolePoliciesInput | _models.ListRolePoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRolePoliciesOutput: ... + + @_overload async def list_role_policies( - self, input: ListRolePoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRolePoliciesInputDict], ) -> ListRolePoliciesOutput: """ Lists the names of the inline policies that are embedded in the @@ -4442,8 +6647,6 @@ async def list_role_policies( role, the operation returns an empty list. Args: - input: - An instance of `ListRolePoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4453,10 +6656,33 @@ async def list_role_policies( Returns: An instance of `ListRolePoliciesOutput`. """ - return await self._invoke(input, _models.LIST_ROLE_POLICIES, [], plugins) + async def list_role_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRolePoliciesOutput: + return await self._invoke( + self._select_input(_models.LIST_ROLE_POLICIES, args, kwargs), + _models.LIST_ROLE_POLICIES, + [], + plugins, + ) + + @_overload async def list_roles( - self, input: ListRolesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListRolesInput | _models.ListRolesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRolesOutput: ... + + @_overload + async def list_roles( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRolesInputDict], ) -> ListRolesOutput: """ Lists the IAM roles that have the specified path prefix. If there are @@ -4484,21 +6710,42 @@ async def list_roles( parameters. Args: - input: - An instance of `ListRolesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ListRolesOutput`. - """ - return await self._invoke(input, _models.LIST_ROLES, [], plugins) + Returns: + An instance of `ListRolesOutput`. + """ + + async def list_roles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRolesOutput: + return await self._invoke( + self._select_input(_models.LIST_ROLES, args, kwargs), + _models.LIST_ROLES, + [], + plugins, + ) + + @_overload + async def list_role_tags( + self, + request: _models.ListRoleTagsInput | _models.ListRoleTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRoleTagsOutput: ... + @_overload async def list_role_tags( - self, input: ListRoleTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRoleTagsInputDict], ) -> ListRoleTagsOutput: """ Lists the tags that are attached to the specified role. The returned @@ -4508,8 +6755,6 @@ async def list_role_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListRoleTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4519,10 +6764,33 @@ async def list_role_tags( Returns: An instance of `ListRoleTagsOutput`. """ - return await self._invoke(input, _models.LIST_ROLE_TAGS, [], plugins) + async def list_role_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRoleTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_ROLE_TAGS, args, kwargs), + _models.LIST_ROLE_TAGS, + [], + plugins, + ) + + @_overload async def list_saml_providers( - self, input: ListSAMLProvidersInput, plugins: list[Plugin] | None = None + self, + request: _models.ListSAMLProvidersInput | _models.ListSAMLProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSAMLProvidersOutput: ... + + @_overload + async def list_saml_providers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSAMLProvidersInputDict], ) -> ListSAMLProvidersOutput: """ Lists the SAML provider resource objects defined in IAM in the account. @@ -4537,8 +6805,6 @@ async def list_saml_providers( 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). Args: - input: - An instance of `ListSAMLProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4548,10 +6814,34 @@ async def list_saml_providers( Returns: An instance of `ListSAMLProvidersOutput`. """ - return await self._invoke(input, _models.LIST_SAML_PROVIDERS, [], plugins) + async def list_saml_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSAMLProvidersOutput: + return await self._invoke( + self._select_input(_models.LIST_SAML_PROVIDERS, args, kwargs), + _models.LIST_SAML_PROVIDERS, + [], + plugins, + ) + + @_overload + async def list_saml_provider_tags( + self, + request: _models.ListSAMLProviderTagsInput + | _models.ListSAMLProviderTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSAMLProviderTagsOutput: ... + + @_overload async def list_saml_provider_tags( - self, input: ListSAMLProviderTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSAMLProviderTagsInputDict], ) -> ListSAMLProviderTagsOutput: """ Lists the tags that are attached to the specified Security Assertion @@ -4564,8 +6854,6 @@ async def list_saml_provider_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListSAMLProviderTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4575,10 +6863,34 @@ async def list_saml_provider_tags( Returns: An instance of `ListSAMLProviderTagsOutput`. """ - return await self._invoke(input, _models.LIST_SAML_PROVIDER_TAGS, [], plugins) + async def list_saml_provider_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSAMLProviderTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_SAML_PROVIDER_TAGS, args, kwargs), + _models.LIST_SAML_PROVIDER_TAGS, + [], + plugins, + ) + + @_overload + async def list_server_certificates( + self, + request: _models.ListServerCertificatesInput + | _models.ListServerCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServerCertificatesOutput: ... + + @_overload async def list_server_certificates( - self, input: ListServerCertificatesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServerCertificatesInputDict], ) -> ListServerCertificatesOutput: """ Lists the server certificates stored in IAM that have the specified path @@ -4602,8 +6914,6 @@ async def list_server_certificates( [GetServerCertificate](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetServerCertificate.html). Args: - input: - An instance of `ListServerCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4613,10 +6923,34 @@ async def list_server_certificates( Returns: An instance of `ListServerCertificatesOutput`. """ - return await self._invoke(input, _models.LIST_SERVER_CERTIFICATES, [], plugins) + async def list_server_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServerCertificatesOutput: + return await self._invoke( + self._select_input(_models.LIST_SERVER_CERTIFICATES, args, kwargs), + _models.LIST_SERVER_CERTIFICATES, + [], + plugins, + ) + + @_overload + async def list_server_certificate_tags( + self, + request: _models.ListServerCertificateTagsInput + | _models.ListServerCertificateTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServerCertificateTagsOutput: ... + + @_overload async def list_server_certificate_tags( - self, input: ListServerCertificateTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServerCertificateTagsInputDict], ) -> ListServerCertificateTagsOutput: """ Lists the tags that are attached to the specified IAM server @@ -4634,8 +6968,6 @@ async def list_server_certificate_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListServerCertificateTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4645,14 +6977,34 @@ async def list_server_certificate_tags( Returns: An instance of `ListServerCertificateTagsOutput`. """ + + async def list_server_certificate_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServerCertificateTagsOutput: return await self._invoke( - input, _models.LIST_SERVER_CERTIFICATE_TAGS, [], plugins + self._select_input(_models.LIST_SERVER_CERTIFICATE_TAGS, args, kwargs), + _models.LIST_SERVER_CERTIFICATE_TAGS, + [], + plugins, ) + @_overload + async def list_service_specific_credentials( + self, + request: _models.ListServiceSpecificCredentialsInput + | _models.ListServiceSpecificCredentialsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServiceSpecificCredentialsOutput: ... + + @_overload async def list_service_specific_credentials( self, - input: ListServiceSpecificCredentialsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServiceSpecificCredentialsInputDict], ) -> ListServiceSpecificCredentialsOutput: """ Returns information about the service-specific credentials associated @@ -4680,8 +7032,6 @@ async def list_service_specific_credentials( in the *IAM User Guide*. Args: - input: - An instance of `ListServiceSpecificCredentialsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4691,12 +7041,34 @@ async def list_service_specific_credentials( Returns: An instance of `ListServiceSpecificCredentialsOutput`. """ + + async def list_service_specific_credentials( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServiceSpecificCredentialsOutput: return await self._invoke( - input, _models.LIST_SERVICE_SPECIFIC_CREDENTIALS, [], plugins + self._select_input(_models.LIST_SERVICE_SPECIFIC_CREDENTIALS, args, kwargs), + _models.LIST_SERVICE_SPECIFIC_CREDENTIALS, + [], + plugins, ) + @_overload + async def list_signing_certificates( + self, + request: _models.ListSigningCertificatesInput + | _models.ListSigningCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSigningCertificatesOutput: ... + + @_overload async def list_signing_certificates( - self, input: ListSigningCertificatesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSigningCertificatesInputDict], ) -> ListSigningCertificatesOutput: """ Returns information about the signing certificates associated with the @@ -4714,8 +7086,6 @@ async def list_signing_certificates( even if the Amazon Web Services account has no associated users. Args: - input: - An instance of `ListSigningCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4725,10 +7095,33 @@ async def list_signing_certificates( Returns: An instance of `ListSigningCertificatesOutput`. """ - return await self._invoke(input, _models.LIST_SIGNING_CERTIFICATES, [], plugins) + async def list_signing_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSigningCertificatesOutput: + return await self._invoke( + self._select_input(_models.LIST_SIGNING_CERTIFICATES, args, kwargs), + _models.LIST_SIGNING_CERTIFICATES, + [], + plugins, + ) + + @_overload async def list_ssh_public_keys( - self, input: ListSSHPublicKeysInput, plugins: list[Plugin] | None = None + self, + request: _models.ListSSHPublicKeysInput | _models.ListSSHPublicKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSSHPublicKeysOutput: ... + + @_overload + async def list_ssh_public_keys( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSSHPublicKeysInputDict], ) -> ListSSHPublicKeysOutput: """ Returns information about the SSH public keys associated with the @@ -4745,8 +7138,6 @@ async def list_ssh_public_keys( paginate the results using the `MaxItems` and `Marker` parameters. Args: - input: - An instance of `ListSSHPublicKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4756,10 +7147,33 @@ async def list_ssh_public_keys( Returns: An instance of `ListSSHPublicKeysOutput`. """ - return await self._invoke(input, _models.LIST_SSH_PUBLIC_KEYS, [], plugins) + async def list_ssh_public_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSSHPublicKeysOutput: + return await self._invoke( + self._select_input(_models.LIST_SSH_PUBLIC_KEYS, args, kwargs), + _models.LIST_SSH_PUBLIC_KEYS, + [], + plugins, + ) + + @_overload + async def list_user_policies( + self, + request: _models.ListUserPoliciesInput | _models.ListUserPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListUserPoliciesOutput: ... + + @_overload async def list_user_policies( - self, input: ListUserPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListUserPoliciesInputDict], ) -> ListUserPoliciesOutput: """ Lists the names of the inline policies embedded in the specified IAM @@ -4777,8 +7191,6 @@ async def list_user_policies( user, the operation returns an empty list. Args: - input: - An instance of `ListUserPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4788,10 +7200,33 @@ async def list_user_policies( Returns: An instance of `ListUserPoliciesOutput`. """ - return await self._invoke(input, _models.LIST_USER_POLICIES, [], plugins) + async def list_user_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListUserPoliciesOutput: + return await self._invoke( + self._select_input(_models.LIST_USER_POLICIES, args, kwargs), + _models.LIST_USER_POLICIES, + [], + plugins, + ) + + @_overload + async def list_users( + self, + request: _models.ListUsersInput | _models.ListUsersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListUsersOutput: ... + + @_overload async def list_users( - self, input: ListUsersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListUsersInputDict], ) -> ListUsersOutput: """ Lists the IAM users that have the specified path prefix. If no path @@ -4816,8 +7251,6 @@ async def list_users( parameters. Args: - input: - An instance of `ListUsersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4827,10 +7260,33 @@ async def list_users( Returns: An instance of `ListUsersOutput`. """ - return await self._invoke(input, _models.LIST_USERS, [], plugins) + async def list_users( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListUsersOutput: + return await self._invoke( + self._select_input(_models.LIST_USERS, args, kwargs), + _models.LIST_USERS, + [], + plugins, + ) + + @_overload + async def list_user_tags( + self, + request: _models.ListUserTagsInput | _models.ListUserTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListUserTagsOutput: ... + + @_overload async def list_user_tags( - self, input: ListUserTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListUserTagsInputDict], ) -> ListUserTagsOutput: """ Lists the tags that are attached to the specified IAM user. The returned @@ -4840,8 +7296,6 @@ async def list_user_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListUserTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4851,10 +7305,34 @@ async def list_user_tags( Returns: An instance of `ListUserTagsOutput`. """ - return await self._invoke(input, _models.LIST_USER_TAGS, [], plugins) + async def list_user_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListUserTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_USER_TAGS, args, kwargs), + _models.LIST_USER_TAGS, + [], + plugins, + ) + + @_overload + async def list_virtual_mfa_devices( + self, + request: _models.ListVirtualMFADevicesInput + | _models.ListVirtualMFADevicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVirtualMFADevicesOutput: ... + + @_overload async def list_virtual_mfa_devices( - self, input: ListVirtualMFADevicesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVirtualMFADevicesInputDict], ) -> ListVirtualMFADevicesOutput: """ Lists the virtual MFA devices defined in the Amazon Web Services account @@ -4873,8 +7351,6 @@ async def list_virtual_mfa_devices( parameters. Args: - input: - An instance of `ListVirtualMFADevicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4884,10 +7360,34 @@ async def list_virtual_mfa_devices( Returns: An instance of `ListVirtualMFADevicesOutput`. """ - return await self._invoke(input, _models.LIST_VIRTUAL_MFA_DEVICES, [], plugins) + async def list_virtual_mfa_devices( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVirtualMFADevicesOutput: + return await self._invoke( + self._select_input(_models.LIST_VIRTUAL_MFA_DEVICES, args, kwargs), + _models.LIST_VIRTUAL_MFA_DEVICES, + [], + plugins, + ) + + @_overload + async def put_account_properties( + self, + request: _models.PutAccountPropertiesInput + | _models.PutAccountPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountPropertiesOutput: ... + + @_overload async def put_account_properties( - self, input: PutAccountPropertiesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountPropertiesInputDict], ) -> PutAccountPropertiesOutput: """ Sets account-level properties for the caller's Amazon Web Services @@ -4901,8 +7401,6 @@ async def put_account_properties( to view the current properties. Args: - input: - An instance of `PutAccountPropertiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4912,10 +7410,33 @@ async def put_account_properties( Returns: An instance of `PutAccountPropertiesOutput`. """ - return await self._invoke(input, _models.PUT_ACCOUNT_PROPERTIES, [], plugins) + async def put_account_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountPropertiesOutput: + return await self._invoke( + self._select_input(_models.PUT_ACCOUNT_PROPERTIES, args, kwargs), + _models.PUT_ACCOUNT_PROPERTIES, + [], + plugins, + ) + + @_overload + async def put_group_policy( + self, + request: _models.PutGroupPolicyInput | _models.PutGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutGroupPolicyOutput: ... + + @_overload async def put_group_policy( - self, input: PutGroupPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutGroupPolicyInputDict], ) -> PutGroupPolicyOutput: """ Adds or updates an inline policy document that is embedded in the @@ -4943,8 +7464,6 @@ async def put_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `PutGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4954,12 +7473,34 @@ async def put_group_policy( Returns: An instance of `PutGroupPolicyOutput`. """ - return await self._invoke(input, _models.PUT_GROUP_POLICY, [], plugins) + async def put_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutGroupPolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_GROUP_POLICY, args, kwargs), + _models.PUT_GROUP_POLICY, + [], + plugins, + ) + + @_overload + async def put_role_permissions_boundary( + self, + request: _models.PutRolePermissionsBoundaryInput + | _models.PutRolePermissionsBoundaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRolePermissionsBoundaryOutput: ... + + @_overload async def put_role_permissions_boundary( self, - input: PutRolePermissionsBoundaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRolePermissionsBoundaryInputDict], ) -> PutRolePermissionsBoundaryOutput: """ Adds or updates the policy that is specified as the IAM role's @@ -4980,8 +7521,6 @@ async def put_role_permissions_boundary( in the IAM User Guide. Args: - input: - An instance of `PutRolePermissionsBoundaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4991,12 +7530,33 @@ async def put_role_permissions_boundary( Returns: An instance of `PutRolePermissionsBoundaryOutput`. """ + + async def put_role_permissions_boundary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRolePermissionsBoundaryOutput: return await self._invoke( - input, _models.PUT_ROLE_PERMISSIONS_BOUNDARY, [], plugins + self._select_input(_models.PUT_ROLE_PERMISSIONS_BOUNDARY, args, kwargs), + _models.PUT_ROLE_PERMISSIONS_BOUNDARY, + [], + plugins, ) + @_overload + async def put_role_policy( + self, + request: _models.PutRolePolicyInput | _models.PutRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRolePolicyOutput: ... + + @_overload async def put_role_policy( - self, input: PutRolePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRolePolicyInputDict], ) -> PutRolePolicyOutput: """ Adds or updates an inline policy document that is embedded in the @@ -5034,8 +7594,6 @@ async def put_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `PutRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5045,12 +7603,34 @@ async def put_role_policy( Returns: An instance of `PutRolePolicyOutput`. """ - return await self._invoke(input, _models.PUT_ROLE_POLICY, [], plugins) + async def put_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRolePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_ROLE_POLICY, args, kwargs), + _models.PUT_ROLE_POLICY, + [], + plugins, + ) + + @_overload + async def put_user_permissions_boundary( + self, + request: _models.PutUserPermissionsBoundaryInput + | _models.PutUserPermissionsBoundaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutUserPermissionsBoundaryOutput: ... + + @_overload async def put_user_permissions_boundary( self, - input: PutUserPermissionsBoundaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutUserPermissionsBoundaryInputDict], ) -> PutUserPermissionsBoundaryOutput: """ Adds or updates the policy that is specified as the IAM user's @@ -5069,8 +7649,6 @@ async def put_user_permissions_boundary( in the IAM User Guide. Args: - input: - An instance of `PutUserPermissionsBoundaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5080,12 +7658,33 @@ async def put_user_permissions_boundary( Returns: An instance of `PutUserPermissionsBoundaryOutput`. """ + + async def put_user_permissions_boundary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutUserPermissionsBoundaryOutput: return await self._invoke( - input, _models.PUT_USER_PERMISSIONS_BOUNDARY, [], plugins + self._select_input(_models.PUT_USER_PERMISSIONS_BOUNDARY, args, kwargs), + _models.PUT_USER_PERMISSIONS_BOUNDARY, + [], + plugins, ) + @_overload + async def put_user_policy( + self, + request: _models.PutUserPolicyInput | _models.PutUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutUserPolicyOutput: ... + + @_overload async def put_user_policy( - self, input: PutUserPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutUserPolicyInputDict], ) -> PutUserPolicyOutput: """ Adds or updates an inline policy document that is embedded in the @@ -5113,8 +7712,6 @@ async def put_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `PutUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5124,10 +7721,34 @@ async def put_user_policy( Returns: An instance of `PutUserPolicyOutput`. """ - return await self._invoke(input, _models.PUT_USER_POLICY, [], plugins) + async def put_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutUserPolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_USER_POLICY, args, kwargs), + _models.PUT_USER_POLICY, + [], + plugins, + ) + + @_overload + async def reject_delegation_request( + self, + request: _models.RejectDelegationRequestInput + | _models.RejectDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectDelegationRequestOutput: ... + + @_overload async def reject_delegation_request( - self, input: RejectDelegationRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectDelegationRequestInputDict], ) -> RejectDelegationRequestOutput: """ Rejects a delegation request, denying the requested temporary access. @@ -5142,8 +7763,6 @@ async def reject_delegation_request( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `RejectDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5153,12 +7772,34 @@ async def reject_delegation_request( Returns: An instance of `RejectDelegationRequestOutput`. """ - return await self._invoke(input, _models.REJECT_DELEGATION_REQUEST, [], plugins) + async def reject_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectDelegationRequestOutput: + return await self._invoke( + self._select_input(_models.REJECT_DELEGATION_REQUEST, args, kwargs), + _models.REJECT_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + async def remove_client_id_from_open_id_connect_provider( + self, + request: _models.RemoveClientIDFromOpenIDConnectProviderInput + | _models.RemoveClientIDFromOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveClientIDFromOpenIDConnectProviderOutput: ... + + @_overload async def remove_client_id_from_open_id_connect_provider( self, - input: RemoveClientIDFromOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveClientIDFromOpenIDConnectProviderInputDict], ) -> RemoveClientIDFromOpenIDConnectProviderOutput: """ Removes the specified client ID (also known as audience) from the list @@ -5169,8 +7810,6 @@ async def remove_client_id_from_open_id_connect_provider( try to remove a client ID that does not exist. Args: - input: - An instance of `RemoveClientIDFromOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5180,14 +7819,36 @@ async def remove_client_id_from_open_id_connect_provider( Returns: An instance of `RemoveClientIDFromOpenIDConnectProviderOutput`. """ + + async def remove_client_id_from_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveClientIDFromOpenIDConnectProviderOutput: return await self._invoke( - input, _models.REMOVE_CLIENT_ID_FROM_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input( + _models.REMOVE_CLIENT_ID_FROM_OPEN_ID_CONNECT_PROVIDER, args, kwargs + ), + _models.REMOVE_CLIENT_ID_FROM_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload + async def remove_role_from_instance_profile( + self, + request: _models.RemoveRoleFromInstanceProfileInput + | _models.RemoveRoleFromInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveRoleFromInstanceProfileOutput: ... + + @_overload async def remove_role_from_instance_profile( self, - input: RemoveRoleFromInstanceProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveRoleFromInstanceProfileInputDict], ) -> RemoveRoleFromInstanceProfileOutput: """ Removes the specified IAM role from the specified Amazon EC2 instance @@ -5207,8 +7868,6 @@ async def remove_role_from_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `RemoveRoleFromInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5218,19 +7877,39 @@ async def remove_role_from_instance_profile( Returns: An instance of `RemoveRoleFromInstanceProfileOutput`. """ + + async def remove_role_from_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveRoleFromInstanceProfileOutput: return await self._invoke( - input, _models.REMOVE_ROLE_FROM_INSTANCE_PROFILE, [], plugins + self._select_input(_models.REMOVE_ROLE_FROM_INSTANCE_PROFILE, args, kwargs), + _models.REMOVE_ROLE_FROM_INSTANCE_PROFILE, + [], + plugins, ) + @_overload + async def remove_user_from_group( + self, + request: _models.RemoveUserFromGroupInput + | _models.RemoveUserFromGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveUserFromGroupOutput: ... + + @_overload async def remove_user_from_group( - self, input: RemoveUserFromGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveUserFromGroupInputDict], ) -> RemoveUserFromGroupOutput: """ Removes the specified user from the specified group. Args: - input: - An instance of `RemoveUserFromGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5240,12 +7919,34 @@ async def remove_user_from_group( Returns: An instance of `RemoveUserFromGroupOutput`. """ - return await self._invoke(input, _models.REMOVE_USER_FROM_GROUP, [], plugins) + async def remove_user_from_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveUserFromGroupOutput: + return await self._invoke( + self._select_input(_models.REMOVE_USER_FROM_GROUP, args, kwargs), + _models.REMOVE_USER_FROM_GROUP, + [], + plugins, + ) + + @_overload + async def reset_service_specific_credential( + self, + request: _models.ResetServiceSpecificCredentialInput + | _models.ResetServiceSpecificCredentialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetServiceSpecificCredentialOutput: ... + + @_overload async def reset_service_specific_credential( self, - input: ResetServiceSpecificCredentialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetServiceSpecificCredentialInputDict], ) -> ResetServiceSpecificCredentialOutput: """ Resets the password for a service-specific credential. The new password @@ -5254,8 +7955,6 @@ async def reset_service_specific_credential( invalidates the previous password associated with this user. Args: - input: - An instance of `ResetServiceSpecificCredentialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5265,12 +7964,33 @@ async def reset_service_specific_credential( Returns: An instance of `ResetServiceSpecificCredentialOutput`. """ + + async def reset_service_specific_credential( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetServiceSpecificCredentialOutput: return await self._invoke( - input, _models.RESET_SERVICE_SPECIFIC_CREDENTIAL, [], plugins + self._select_input(_models.RESET_SERVICE_SPECIFIC_CREDENTIAL, args, kwargs), + _models.RESET_SERVICE_SPECIFIC_CREDENTIAL, + [], + plugins, ) + @_overload + async def resync_mfa_device( + self, + request: _models.ResyncMFADeviceInput | _models.ResyncMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResyncMFADeviceOutput: ... + + @_overload async def resync_mfa_device( - self, input: ResyncMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResyncMFADeviceInputDict], ) -> ResyncMFADeviceOutput: """ Synchronizes the specified MFA device with its IAM resource object on @@ -5282,8 +8002,6 @@ async def resync_mfa_device( in the *IAM User Guide*. Args: - input: - An instance of `ResyncMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5293,10 +8011,34 @@ async def resync_mfa_device( Returns: An instance of `ResyncMFADeviceOutput`. """ - return await self._invoke(input, _models.RESYNC_MFA_DEVICE, [], plugins) + async def resync_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResyncMFADeviceOutput: + return await self._invoke( + self._select_input(_models.RESYNC_MFA_DEVICE, args, kwargs), + _models.RESYNC_MFA_DEVICE, + [], + plugins, + ) + + @_overload + async def send_delegation_token( + self, + request: _models.SendDelegationTokenInput + | _models.SendDelegationTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendDelegationTokenOutput: ... + + @_overload async def send_delegation_token( - self, input: SendDelegationTokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDelegationTokenInputDict], ) -> SendDelegationTokenOutput: """ Sends the exchange token for an accepted delegation request. @@ -5314,8 +8056,6 @@ async def send_delegation_token( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `SendDelegationTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5325,10 +8065,34 @@ async def send_delegation_token( Returns: An instance of `SendDelegationTokenOutput`. """ - return await self._invoke(input, _models.SEND_DELEGATION_TOKEN, [], plugins) + async def send_delegation_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDelegationTokenOutput: + return await self._invoke( + self._select_input(_models.SEND_DELEGATION_TOKEN, args, kwargs), + _models.SEND_DELEGATION_TOKEN, + [], + plugins, + ) + + @_overload + async def set_default_policy_version( + self, + request: _models.SetDefaultPolicyVersionInput + | _models.SetDefaultPolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetDefaultPolicyVersionOutput: ... + + @_overload async def set_default_policy_version( - self, input: SetDefaultPolicyVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetDefaultPolicyVersionInputDict], ) -> SetDefaultPolicyVersionOutput: """ Sets the specified version of the specified policy as the policy's @@ -5344,8 +8108,6 @@ async def set_default_policy_version( in the *IAM User Guide*. Args: - input: - An instance of `SetDefaultPolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5355,14 +8117,34 @@ async def set_default_policy_version( Returns: An instance of `SetDefaultPolicyVersionOutput`. """ + + async def set_default_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetDefaultPolicyVersionOutput: return await self._invoke( - input, _models.SET_DEFAULT_POLICY_VERSION, [], plugins + self._select_input(_models.SET_DEFAULT_POLICY_VERSION, args, kwargs), + _models.SET_DEFAULT_POLICY_VERSION, + [], + plugins, ) + @_overload + async def set_security_token_service_preferences( + self, + request: _models.SetSecurityTokenServicePreferencesInput + | _models.SetSecurityTokenServicePreferencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetSecurityTokenServicePreferencesOutput: ... + + @_overload async def set_security_token_service_preferences( self, - input: SetSecurityTokenServicePreferencesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetSecurityTokenServicePreferencesInputDict], ) -> SetSecurityTokenServicePreferencesOutput: """ Sets the specified version of the global endpoint token as the token @@ -5395,8 +8177,6 @@ async def set_security_token_service_preferences( operation. Args: - input: - An instance of `SetSecurityTokenServicePreferencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5406,12 +8186,36 @@ async def set_security_token_service_preferences( Returns: An instance of `SetSecurityTokenServicePreferencesOutput`. """ + + async def set_security_token_service_preferences( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetSecurityTokenServicePreferencesOutput: return await self._invoke( - input, _models.SET_SECURITY_TOKEN_SERVICE_PREFERENCES, [], plugins + self._select_input( + _models.SET_SECURITY_TOKEN_SERVICE_PREFERENCES, args, kwargs + ), + _models.SET_SECURITY_TOKEN_SERVICE_PREFERENCES, + [], + plugins, ) + @_overload + async def simulate_custom_policy( + self, + request: _models.SimulateCustomPolicyInput + | _models.SimulateCustomPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SimulateCustomPolicyOutput: ... + + @_overload async def simulate_custom_policy( - self, input: SimulateCustomPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SimulateCustomPolicyInputDict], ) -> SimulateCustomPolicyOutput: """ Simulate how a set of IAM policies and optionally a resource-based @@ -5453,8 +8257,6 @@ async def simulate_custom_policy( in the *IAM User Guide*. Args: - input: - An instance of `SimulateCustomPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5464,10 +8266,34 @@ async def simulate_custom_policy( Returns: An instance of `SimulateCustomPolicyOutput`. """ - return await self._invoke(input, _models.SIMULATE_CUSTOM_POLICY, [], plugins) + async def simulate_custom_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SimulateCustomPolicyOutput: + return await self._invoke( + self._select_input(_models.SIMULATE_CUSTOM_POLICY, args, kwargs), + _models.SIMULATE_CUSTOM_POLICY, + [], + plugins, + ) + + @_overload + async def simulate_principal_policy( + self, + request: _models.SimulatePrincipalPolicyInput + | _models.SimulatePrincipalPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SimulatePrincipalPolicyOutput: ... + + @_overload async def simulate_principal_policy( - self, input: SimulatePrincipalPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SimulatePrincipalPolicyInputDict], ) -> SimulatePrincipalPolicyOutput: """ Simulate how a set of IAM policies attached to an IAM entity works with @@ -5527,8 +8353,6 @@ async def simulate_principal_policy( in the *IAM User Guide*. Args: - input: - An instance of `SimulatePrincipalPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5538,10 +8362,33 @@ async def simulate_principal_policy( Returns: An instance of `SimulatePrincipalPolicyOutput`. """ - return await self._invoke(input, _models.SIMULATE_PRINCIPAL_POLICY, [], plugins) + async def simulate_principal_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SimulatePrincipalPolicyOutput: + return await self._invoke( + self._select_input(_models.SIMULATE_PRINCIPAL_POLICY, args, kwargs), + _models.SIMULATE_PRINCIPAL_POLICY, + [], + plugins, + ) + + @_overload + async def tag_instance_profile( + self, + request: _models.TagInstanceProfileInput | _models.TagInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagInstanceProfileOutput: ... + + @_overload async def tag_instance_profile( - self, input: TagInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagInstanceProfileInputDict], ) -> TagInstanceProfileOutput: """ Adds one or more tags to an IAM instance profile. If a tag with the same @@ -5578,8 +8425,6 @@ async def tag_instance_profile( code. Args: - input: - An instance of `TagInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5589,10 +8434,33 @@ async def tag_instance_profile( Returns: An instance of `TagInstanceProfileOutput`. """ - return await self._invoke(input, _models.TAG_INSTANCE_PROFILE, [], plugins) + async def tag_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagInstanceProfileOutput: + return await self._invoke( + self._select_input(_models.TAG_INSTANCE_PROFILE, args, kwargs), + _models.TAG_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + async def tag_mfa_device( + self, + request: _models.TagMFADeviceInput | _models.TagMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagMFADeviceOutput: ... + + @_overload async def tag_mfa_device( - self, input: TagMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagMFADeviceInputDict], ) -> TagMFADeviceOutput: """ Adds one or more tags to an IAM virtual multi-factor authentication @@ -5629,8 +8497,6 @@ async def tag_mfa_device( code. Args: - input: - An instance of `TagMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5640,10 +8506,34 @@ async def tag_mfa_device( Returns: An instance of `TagMFADeviceOutput`. """ - return await self._invoke(input, _models.TAG_MFA_DEVICE, [], plugins) + async def tag_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagMFADeviceOutput: + return await self._invoke( + self._select_input(_models.TAG_MFA_DEVICE, args, kwargs), + _models.TAG_MFA_DEVICE, + [], + plugins, + ) + + @_overload + async def tag_open_id_connect_provider( + self, + request: _models.TagOpenIDConnectProviderInput + | _models.TagOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagOpenIDConnectProviderOutput: ... + + @_overload async def tag_open_id_connect_provider( - self, input: TagOpenIDConnectProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagOpenIDConnectProviderInputDict], ) -> TagOpenIDConnectProviderOutput: """ Adds one or more tags to an OpenID Connect (OIDC)-compatible identity @@ -5683,8 +8573,6 @@ async def tag_open_id_connect_provider( code. Args: - input: - An instance of `TagOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5694,12 +8582,33 @@ async def tag_open_id_connect_provider( Returns: An instance of `TagOpenIDConnectProviderOutput`. """ + + async def tag_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagOpenIDConnectProviderOutput: return await self._invoke( - input, _models.TAG_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input(_models.TAG_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.TAG_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload + async def tag_policy( + self, + request: _models.TagPolicyInput | _models.TagPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagPolicyOutput: ... + + @_overload async def tag_policy( - self, input: TagPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagPolicyInputDict], ) -> TagPolicyOutput: """ Adds one or more tags to an IAM customer managed policy. If a tag with @@ -5736,8 +8645,6 @@ async def tag_policy( code. Args: - input: - An instance of `TagPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5747,10 +8654,33 @@ async def tag_policy( Returns: An instance of `TagPolicyOutput`. """ - return await self._invoke(input, _models.TAG_POLICY, [], plugins) + async def tag_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagPolicyOutput: + return await self._invoke( + self._select_input(_models.TAG_POLICY, args, kwargs), + _models.TAG_POLICY, + [], + plugins, + ) + + @_overload + async def tag_role( + self, + request: _models.TagRoleInput | _models.TagRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagRoleOutput: ... + + @_overload async def tag_role( - self, input: TagRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagRoleInputDict], ) -> TagRoleOutput: """ Adds one or more tags to an IAM role. The role can be a regular role or @@ -5795,8 +8725,6 @@ async def tag_role( in the *IAM User Guide*. Args: - input: - An instance of `TagRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5806,10 +8734,33 @@ async def tag_role( Returns: An instance of `TagRoleOutput`. """ - return await self._invoke(input, _models.TAG_ROLE, [], plugins) + async def tag_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagRoleOutput: + return await self._invoke( + self._select_input(_models.TAG_ROLE, args, kwargs), + _models.TAG_ROLE, + [], + plugins, + ) + + @_overload + async def tag_saml_provider( + self, + request: _models.TagSAMLProviderInput | _models.TagSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagSAMLProviderOutput: ... + + @_overload async def tag_saml_provider( - self, input: TagSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagSAMLProviderInputDict], ) -> TagSAMLProviderOutput: """ Adds one or more tags to a Security Assertion Markup Language (SAML) @@ -5849,8 +8800,6 @@ async def tag_saml_provider( code. Args: - input: - An instance of `TagSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5860,10 +8809,34 @@ async def tag_saml_provider( Returns: An instance of `TagSAMLProviderOutput`. """ - return await self._invoke(input, _models.TAG_SAML_PROVIDER, [], plugins) + async def tag_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagSAMLProviderOutput: + return await self._invoke( + self._select_input(_models.TAG_SAML_PROVIDER, args, kwargs), + _models.TAG_SAML_PROVIDER, + [], + plugins, + ) + + @_overload async def tag_server_certificate( - self, input: TagServerCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.TagServerCertificateInput + | _models.TagServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagServerCertificateOutput: ... + + @_overload + async def tag_server_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagServerCertificateInputDict], ) -> TagServerCertificateOutput: """ Adds one or more tags to an IAM server certificate. If a tag with the @@ -5911,8 +8884,6 @@ async def tag_server_certificate( code. Args: - input: - An instance of `TagServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5922,10 +8893,33 @@ async def tag_server_certificate( Returns: An instance of `TagServerCertificateOutput`. """ - return await self._invoke(input, _models.TAG_SERVER_CERTIFICATE, [], plugins) + async def tag_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagServerCertificateOutput: + return await self._invoke( + self._select_input(_models.TAG_SERVER_CERTIFICATE, args, kwargs), + _models.TAG_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def tag_user( + self, + request: _models.TagUserInput | _models.TagUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagUserOutput: ... + + @_overload async def tag_user( - self, input: TagUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagUserInputDict], ) -> TagUserOutput: """ Adds one or more tags to an IAM user. If a tag with the same key name @@ -5969,8 +8963,6 @@ async def tag_user( in the *IAM User Guide*. Args: - input: - An instance of `TagUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5980,10 +8972,34 @@ async def tag_user( Returns: An instance of `TagUserOutput`. """ - return await self._invoke(input, _models.TAG_USER, [], plugins) + async def tag_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagUserOutput: + return await self._invoke( + self._select_input(_models.TAG_USER, args, kwargs), + _models.TAG_USER, + [], + plugins, + ) + + @_overload + async def untag_instance_profile( + self, + request: _models.UntagInstanceProfileInput + | _models.UntagInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagInstanceProfileOutput: ... + + @_overload async def untag_instance_profile( - self, input: UntagInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagInstanceProfileInputDict], ) -> UntagInstanceProfileOutput: """ Removes the specified tags from the IAM instance profile. For more @@ -5992,8 +9008,6 @@ async def untag_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `UntagInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6003,10 +9017,33 @@ async def untag_instance_profile( Returns: An instance of `UntagInstanceProfileOutput`. """ - return await self._invoke(input, _models.UNTAG_INSTANCE_PROFILE, [], plugins) + async def untag_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagInstanceProfileOutput: + return await self._invoke( + self._select_input(_models.UNTAG_INSTANCE_PROFILE, args, kwargs), + _models.UNTAG_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + async def untag_mfa_device( + self, + request: _models.UntagMFADeviceInput | _models.UntagMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagMFADeviceOutput: ... + + @_overload async def untag_mfa_device( - self, input: UntagMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagMFADeviceInputDict], ) -> UntagMFADeviceOutput: """ Removes the specified tags from the IAM virtual multi-factor @@ -6016,8 +9053,6 @@ async def untag_mfa_device( in the *IAM User Guide*. Args: - input: - An instance of `UntagMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6027,12 +9062,34 @@ async def untag_mfa_device( Returns: An instance of `UntagMFADeviceOutput`. """ - return await self._invoke(input, _models.UNTAG_MFA_DEVICE, [], plugins) + async def untag_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagMFADeviceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_MFA_DEVICE, args, kwargs), + _models.UNTAG_MFA_DEVICE, + [], + plugins, + ) + + @_overload + async def untag_open_id_connect_provider( + self, + request: _models.UntagOpenIDConnectProviderInput + | _models.UntagOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagOpenIDConnectProviderOutput: ... + + @_overload async def untag_open_id_connect_provider( self, - input: UntagOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagOpenIDConnectProviderInputDict], ) -> UntagOpenIDConnectProviderOutput: """ Removes the specified tags from the specified OpenID Connect @@ -6044,8 +9101,6 @@ async def untag_open_id_connect_provider( in the *IAM User Guide*. Args: - input: - An instance of `UntagOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6055,12 +9110,33 @@ async def untag_open_id_connect_provider( Returns: An instance of `UntagOpenIDConnectProviderOutput`. """ + + async def untag_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagOpenIDConnectProviderOutput: return await self._invoke( - input, _models.UNTAG_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input(_models.UNTAG_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.UNTAG_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload + async def untag_policy( + self, + request: _models.UntagPolicyInput | _models.UntagPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagPolicyOutput: ... + + @_overload async def untag_policy( - self, input: UntagPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagPolicyInputDict], ) -> UntagPolicyOutput: """ Removes the specified tags from the customer managed policy. For more @@ -6069,8 +9145,6 @@ async def untag_policy( in the *IAM User Guide*. Args: - input: - An instance of `UntagPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6080,10 +9154,33 @@ async def untag_policy( Returns: An instance of `UntagPolicyOutput`. """ - return await self._invoke(input, _models.UNTAG_POLICY, [], plugins) + async def untag_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagPolicyOutput: + return await self._invoke( + self._select_input(_models.UNTAG_POLICY, args, kwargs), + _models.UNTAG_POLICY, + [], + plugins, + ) + + @_overload + async def untag_role( + self, + request: _models.UntagRoleInput | _models.UntagRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagRoleOutput: ... + + @_overload async def untag_role( - self, input: UntagRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagRoleInputDict], ) -> UntagRoleOutput: """ Removes the specified tags from the role. For more information about @@ -6092,8 +9189,6 @@ async def untag_role( in the *IAM User Guide*. Args: - input: - An instance of `UntagRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6103,10 +9198,33 @@ async def untag_role( Returns: An instance of `UntagRoleOutput`. """ - return await self._invoke(input, _models.UNTAG_ROLE, [], plugins) + async def untag_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagRoleOutput: + return await self._invoke( + self._select_input(_models.UNTAG_ROLE, args, kwargs), + _models.UNTAG_ROLE, + [], + plugins, + ) + + @_overload + async def untag_saml_provider( + self, + request: _models.UntagSAMLProviderInput | _models.UntagSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagSAMLProviderOutput: ... + + @_overload async def untag_saml_provider( - self, input: UntagSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagSAMLProviderInputDict], ) -> UntagSAMLProviderOutput: """ Removes the specified tags from the specified Security Assertion Markup @@ -6118,8 +9236,6 @@ async def untag_saml_provider( in the *IAM User Guide*. Args: - input: - An instance of `UntagSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6129,10 +9245,34 @@ async def untag_saml_provider( Returns: An instance of `UntagSAMLProviderOutput`. """ - return await self._invoke(input, _models.UNTAG_SAML_PROVIDER, [], plugins) + async def untag_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagSAMLProviderOutput: + return await self._invoke( + self._select_input(_models.UNTAG_SAML_PROVIDER, args, kwargs), + _models.UNTAG_SAML_PROVIDER, + [], + plugins, + ) + + @_overload + async def untag_server_certificate( + self, + request: _models.UntagServerCertificateInput + | _models.UntagServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagServerCertificateOutput: ... + + @_overload async def untag_server_certificate( - self, input: UntagServerCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagServerCertificateInputDict], ) -> UntagServerCertificateOutput: """ Removes the specified tags from the IAM server certificate. For more @@ -6149,8 +9289,6 @@ async def untag_server_certificate( in the *IAM User Guide*. Args: - input: - An instance of `UntagServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6160,10 +9298,33 @@ async def untag_server_certificate( Returns: An instance of `UntagServerCertificateOutput`. """ - return await self._invoke(input, _models.UNTAG_SERVER_CERTIFICATE, [], plugins) + async def untag_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagServerCertificateOutput: + return await self._invoke( + self._select_input(_models.UNTAG_SERVER_CERTIFICATE, args, kwargs), + _models.UNTAG_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def untag_user( + self, + request: _models.UntagUserInput | _models.UntagUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagUserOutput: ... + + @_overload async def untag_user( - self, input: UntagUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagUserInputDict], ) -> UntagUserOutput: """ Removes the specified tags from the user. For more information about @@ -6172,8 +9333,6 @@ async def untag_user( in the *IAM User Guide*. Args: - input: - An instance of `UntagUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6183,10 +9342,33 @@ async def untag_user( Returns: An instance of `UntagUserOutput`. """ - return await self._invoke(input, _models.UNTAG_USER, [], plugins) + async def untag_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagUserOutput: + return await self._invoke( + self._select_input(_models.UNTAG_USER, args, kwargs), + _models.UNTAG_USER, + [], + plugins, + ) + + @_overload + async def update_access_key( + self, + request: _models.UpdateAccessKeyInput | _models.UpdateAccessKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAccessKeyOutput: ... + + @_overload async def update_access_key( - self, input: UpdateAccessKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAccessKeyInputDict], ) -> UpdateAccessKeyOutput: """ Changes the status of the specified access key from Active to Inactive, @@ -6207,8 +9389,6 @@ async def update_access_key( in the *IAM User Guide*. Args: - input: - An instance of `UpdateAccessKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6218,12 +9398,34 @@ async def update_access_key( Returns: An instance of `UpdateAccessKeyOutput`. """ - return await self._invoke(input, _models.UPDATE_ACCESS_KEY, [], plugins) + async def update_access_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAccessKeyOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ACCESS_KEY, args, kwargs), + _models.UPDATE_ACCESS_KEY, + [], + plugins, + ) + + @_overload + async def update_account_password_policy( + self, + request: _models.UpdateAccountPasswordPolicyInput + | _models.UpdateAccountPasswordPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAccountPasswordPolicyOutput: ... + + @_overload async def update_account_password_policy( self, - input: UpdateAccountPasswordPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAccountPasswordPolicyInputDict], ) -> UpdateAccountPasswordPolicyOutput: """ Updates the password policy settings for the Amazon Web Services @@ -6244,8 +9446,6 @@ async def update_account_password_policy( in the *IAM User Guide*. Args: - input: - An instance of `UpdateAccountPasswordPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6255,12 +9455,34 @@ async def update_account_password_policy( Returns: An instance of `UpdateAccountPasswordPolicyOutput`. """ + + async def update_account_password_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAccountPasswordPolicyOutput: return await self._invoke( - input, _models.UPDATE_ACCOUNT_PASSWORD_POLICY, [], plugins + self._select_input(_models.UPDATE_ACCOUNT_PASSWORD_POLICY, args, kwargs), + _models.UPDATE_ACCOUNT_PASSWORD_POLICY, + [], + plugins, ) + @_overload + async def update_assume_role_policy( + self, + request: _models.UpdateAssumeRolePolicyInput + | _models.UpdateAssumeRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAssumeRolePolicyOutput: ... + + @_overload async def update_assume_role_policy( - self, input: UpdateAssumeRolePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAssumeRolePolicyInputDict], ) -> UpdateAssumeRolePolicyOutput: """ Updates the policy that grants an IAM entity permission to assume a @@ -6270,8 +9492,6 @@ async def update_assume_role_policy( identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). Args: - input: - An instance of `UpdateAssumeRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6281,10 +9501,34 @@ async def update_assume_role_policy( Returns: An instance of `UpdateAssumeRolePolicyOutput`. """ - return await self._invoke(input, _models.UPDATE_ASSUME_ROLE_POLICY, [], plugins) + async def update_assume_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAssumeRolePolicyOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ASSUME_ROLE_POLICY, args, kwargs), + _models.UPDATE_ASSUME_ROLE_POLICY, + [], + plugins, + ) + + @_overload + async def update_delegation_request( + self, + request: _models.UpdateDelegationRequestInput + | _models.UpdateDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDelegationRequestOutput: ... + + @_overload async def update_delegation_request( - self, input: UpdateDelegationRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDelegationRequestInputDict], ) -> UpdateDelegationRequestOutput: """ Updates an existing delegation request with additional information. When @@ -6297,8 +9541,6 @@ async def update_delegation_request( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `UpdateDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6308,10 +9550,33 @@ async def update_delegation_request( Returns: An instance of `UpdateDelegationRequestOutput`. """ - return await self._invoke(input, _models.UPDATE_DELEGATION_REQUEST, [], plugins) + async def update_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDelegationRequestOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DELEGATION_REQUEST, args, kwargs), + _models.UPDATE_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + async def update_group( + self, + request: _models.UpdateGroupInput | _models.UpdateGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGroupOutput: ... + + @_overload async def update_group( - self, input: UpdateGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGroupInputDict], ) -> UpdateGroupOutput: """ Updates the name and/or the path of the specified IAM group. @@ -6332,8 +9597,6 @@ async def update_group( management](https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html). Args: - input: - An instance of `UpdateGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6343,10 +9606,33 @@ async def update_group( Returns: An instance of `UpdateGroupOutput`. """ - return await self._invoke(input, _models.UPDATE_GROUP, [], plugins) + async def update_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGroupOutput: + return await self._invoke( + self._select_input(_models.UPDATE_GROUP, args, kwargs), + _models.UPDATE_GROUP, + [], + plugins, + ) + + @_overload + async def update_login_profile( + self, + request: _models.UpdateLoginProfileInput | _models.UpdateLoginProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateLoginProfileOutput: ... + + @_overload async def update_login_profile( - self, input: UpdateLoginProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateLoginProfileInputDict], ) -> UpdateLoginProfileOutput: """ Changes the password for the specified IAM user. You can use the CLI, @@ -6361,8 +9647,6 @@ async def update_login_profile( in the *IAM User Guide*. Args: - input: - An instance of `UpdateLoginProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6372,12 +9656,34 @@ async def update_login_profile( Returns: An instance of `UpdateLoginProfileOutput`. """ - return await self._invoke(input, _models.UPDATE_LOGIN_PROFILE, [], plugins) + async def update_login_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateLoginProfileOutput: + return await self._invoke( + self._select_input(_models.UPDATE_LOGIN_PROFILE, args, kwargs), + _models.UPDATE_LOGIN_PROFILE, + [], + plugins, + ) + + @_overload async def update_open_id_connect_provider_thumbprint( self, - input: UpdateOpenIDConnectProviderThumbprintInput, + request: _models.UpdateOpenIDConnectProviderThumbprintInput + | _models.UpdateOpenIDConnectProviderThumbprintInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateOpenIDConnectProviderThumbprintOutput: ... + + @_overload + async def update_open_id_connect_provider_thumbprint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOpenIDConnectProviderThumbprintInputDict], ) -> UpdateOpenIDConnectProviderThumbprintOutput: """ Replaces the existing list of server certificate thumbprints associated @@ -6407,8 +9713,6 @@ async def update_open_id_connect_provider_thumbprint( privileged users. Args: - input: - An instance of `UpdateOpenIDConnectProviderThumbprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6418,19 +9722,40 @@ async def update_open_id_connect_provider_thumbprint( Returns: An instance of `UpdateOpenIDConnectProviderThumbprintOutput`. """ + + async def update_open_id_connect_provider_thumbprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOpenIDConnectProviderThumbprintOutput: return await self._invoke( - input, _models.UPDATE_OPEN_ID_CONNECT_PROVIDER_THUMBPRINT, [], plugins + self._select_input( + _models.UPDATE_OPEN_ID_CONNECT_PROVIDER_THUMBPRINT, args, kwargs + ), + _models.UPDATE_OPEN_ID_CONNECT_PROVIDER_THUMBPRINT, + [], + plugins, ) + @_overload + async def update_role( + self, + request: _models.UpdateRoleInput | _models.UpdateRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRoleOutput: ... + + @_overload async def update_role( - self, input: UpdateRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRoleInputDict], ) -> UpdateRoleOutput: """ Updates the description or maximum session duration setting of a role. Args: - input: - An instance of `UpdateRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6440,10 +9765,34 @@ async def update_role( Returns: An instance of `UpdateRoleOutput`. """ - return await self._invoke(input, _models.UPDATE_ROLE, [], plugins) + async def update_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRoleOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ROLE, args, kwargs), + _models.UPDATE_ROLE, + [], + plugins, + ) + + @_overload + async def update_role_description( + self, + request: _models.UpdateRoleDescriptionInput + | _models.UpdateRoleDescriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRoleDescriptionOutput: ... + + @_overload async def update_role_description( - self, input: UpdateRoleDescriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRoleDescriptionInputDict], ) -> UpdateRoleDescriptionOutput: """ Use @@ -6455,8 +9804,6 @@ async def update_role_description( operation. Args: - input: - An instance of `UpdateRoleDescriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6466,10 +9813,33 @@ async def update_role_description( Returns: An instance of `UpdateRoleDescriptionOutput`. """ - return await self._invoke(input, _models.UPDATE_ROLE_DESCRIPTION, [], plugins) + async def update_role_description( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRoleDescriptionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ROLE_DESCRIPTION, args, kwargs), + _models.UPDATE_ROLE_DESCRIPTION, + [], + plugins, + ) + + @_overload + async def update_saml_provider( + self, + request: _models.UpdateSAMLProviderInput | _models.UpdateSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSAMLProviderOutput: ... + + @_overload async def update_saml_provider( - self, input: UpdateSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSAMLProviderInputDict], ) -> UpdateSAMLProviderOutput: """ Updates the metadata document, SAML encryption settings, and private @@ -6477,8 +9847,6 @@ async def update_saml_provider( private key and then remove the old key in a separate request. Args: - input: - An instance of `UpdateSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6488,10 +9856,34 @@ async def update_saml_provider( Returns: An instance of `UpdateSAMLProviderOutput`. """ - return await self._invoke(input, _models.UPDATE_SAML_PROVIDER, [], plugins) + async def update_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSAMLProviderOutput: + return await self._invoke( + self._select_input(_models.UPDATE_SAML_PROVIDER, args, kwargs), + _models.UPDATE_SAML_PROVIDER, + [], + plugins, + ) + + @_overload async def update_server_certificate( - self, input: UpdateServerCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateServerCertificateInput + | _models.UpdateServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateServerCertificateOutput: ... + + @_overload + async def update_server_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateServerCertificateInputDict], ) -> UpdateServerCertificateOutput: """ Updates the name and/or the path of the specified server certificate @@ -6522,8 +9914,6 @@ async def update_server_certificate( in the *IAM User Guide*. Args: - input: - An instance of `UpdateServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6533,12 +9923,34 @@ async def update_server_certificate( Returns: An instance of `UpdateServerCertificateOutput`. """ - return await self._invoke(input, _models.UPDATE_SERVER_CERTIFICATE, [], plugins) + async def update_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateServerCertificateOutput: + return await self._invoke( + self._select_input(_models.UPDATE_SERVER_CERTIFICATE, args, kwargs), + _models.UPDATE_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + async def update_service_specific_credential( + self, + request: _models.UpdateServiceSpecificCredentialInput + | _models.UpdateServiceSpecificCredentialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateServiceSpecificCredentialOutput: ... + + @_overload async def update_service_specific_credential( self, - input: UpdateServiceSpecificCredentialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateServiceSpecificCredentialInputDict], ) -> UpdateServiceSpecificCredentialOutput: """ Sets the status of a service-specific credential to `Active` or @@ -6548,8 +9960,6 @@ async def update_service_specific_credential( rotation work flow. Args: - input: - An instance of `UpdateServiceSpecificCredentialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6559,12 +9969,36 @@ async def update_service_specific_credential( Returns: An instance of `UpdateServiceSpecificCredentialOutput`. """ + + async def update_service_specific_credential( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateServiceSpecificCredentialOutput: return await self._invoke( - input, _models.UPDATE_SERVICE_SPECIFIC_CREDENTIAL, [], plugins + self._select_input( + _models.UPDATE_SERVICE_SPECIFIC_CREDENTIAL, args, kwargs + ), + _models.UPDATE_SERVICE_SPECIFIC_CREDENTIAL, + [], + plugins, ) + @_overload + async def update_signing_certificate( + self, + request: _models.UpdateSigningCertificateInput + | _models.UpdateSigningCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSigningCertificateOutput: ... + + @_overload async def update_signing_certificate( - self, input: UpdateSigningCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSigningCertificateInputDict], ) -> UpdateSigningCertificateOutput: """ Changes the status of the specified user signing certificate from active @@ -6579,8 +10013,6 @@ async def update_signing_certificate( Services account has no associated users. Args: - input: - An instance of `UpdateSigningCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6590,12 +10022,33 @@ async def update_signing_certificate( Returns: An instance of `UpdateSigningCertificateOutput`. """ + + async def update_signing_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSigningCertificateOutput: return await self._invoke( - input, _models.UPDATE_SIGNING_CERTIFICATE, [], plugins + self._select_input(_models.UPDATE_SIGNING_CERTIFICATE, args, kwargs), + _models.UPDATE_SIGNING_CERTIFICATE, + [], + plugins, ) + @_overload + async def update_ssh_public_key( + self, + request: _models.UpdateSSHPublicKeyInput | _models.UpdateSSHPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSSHPublicKeyOutput: ... + + @_overload async def update_ssh_public_key( - self, input: UpdateSSHPublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSSHPublicKeyInputDict], ) -> UpdateSSHPublicKeyOutput: """ Sets the status of an IAM user's SSH public key to active or inactive. @@ -6611,8 +10064,6 @@ async def update_ssh_public_key( in the *CodeCommit User Guide*. Args: - input: - An instance of `UpdateSSHPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6622,10 +10073,33 @@ async def update_ssh_public_key( Returns: An instance of `UpdateSSHPublicKeyOutput`. """ - return await self._invoke(input, _models.UPDATE_SSH_PUBLIC_KEY, [], plugins) + async def update_ssh_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSSHPublicKeyOutput: + return await self._invoke( + self._select_input(_models.UPDATE_SSH_PUBLIC_KEY, args, kwargs), + _models.UPDATE_SSH_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + async def update_user( + self, + request: _models.UpdateUserInput | _models.UpdateUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateUserOutput: ... + + @_overload async def update_user( - self, input: UpdateUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateUserInputDict], ) -> UpdateUserOutput: """ Updates the name and/or the path of the specified IAM user. @@ -6646,8 +10120,6 @@ async def update_user( policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). Args: - input: - An instance of `UpdateUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6657,10 +10129,34 @@ async def update_user( Returns: An instance of `UpdateUserOutput`. """ - return await self._invoke(input, _models.UPDATE_USER, [], plugins) + async def update_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateUserOutput: + return await self._invoke( + self._select_input(_models.UPDATE_USER, args, kwargs), + _models.UPDATE_USER, + [], + plugins, + ) + + @_overload + async def upload_server_certificate( + self, + request: _models.UploadServerCertificateInput + | _models.UploadServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadServerCertificateOutput: ... + + @_overload async def upload_server_certificate( - self, input: UploadServerCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadServerCertificateInputDict], ) -> UploadServerCertificateOutput: """ Uploads a server certificate entity for the Amazon Web Services account. @@ -6702,8 +10198,6 @@ async def upload_server_certificate( in the *IAM User Guide*. Args: - input: - An instance of `UploadServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6713,10 +10207,34 @@ async def upload_server_certificate( Returns: An instance of `UploadServerCertificateOutput`. """ - return await self._invoke(input, _models.UPLOAD_SERVER_CERTIFICATE, [], plugins) + async def upload_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadServerCertificateOutput: + return await self._invoke( + self._select_input(_models.UPLOAD_SERVER_CERTIFICATE, args, kwargs), + _models.UPLOAD_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload async def upload_signing_certificate( - self, input: UploadSigningCertificateInput, plugins: list[Plugin] | None = None + self, + request: _models.UploadSigningCertificateInput + | _models.UploadSigningCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadSigningCertificateOutput: ... + + @_overload + async def upload_signing_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadSigningCertificateInputDict], ) -> UploadSigningCertificateOutput: """ Uploads an X.509 signing certificate and associates it with the @@ -6749,8 +10267,6 @@ async def upload_signing_certificate( in the *IAM User Guide*. Args: - input: - An instance of `UploadSigningCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6760,12 +10276,33 @@ async def upload_signing_certificate( Returns: An instance of `UploadSigningCertificateOutput`. """ + + async def upload_signing_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadSigningCertificateOutput: return await self._invoke( - input, _models.UPLOAD_SIGNING_CERTIFICATE, [], plugins + self._select_input(_models.UPLOAD_SIGNING_CERTIFICATE, args, kwargs), + _models.UPLOAD_SIGNING_CERTIFICATE, + [], + plugins, ) + @_overload + async def upload_ssh_public_key( + self, + request: _models.UploadSSHPublicKeyInput | _models.UploadSSHPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadSSHPublicKeyOutput: ... + + @_overload async def upload_ssh_public_key( - self, input: UploadSSHPublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadSSHPublicKeyInputDict], ) -> UploadSSHPublicKeyOutput: """ Uploads an SSH public key and associates it with the specified IAM user. @@ -6778,8 +10315,6 @@ async def upload_ssh_public_key( in the *CodeCommit User Guide*. Args: - input: - An instance of `UploadSSHPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6789,7 +10324,16 @@ async def upload_ssh_public_key( Returns: An instance of `UploadSSHPublicKeyOutput`. """ - return await self._invoke(input, _models.UPLOAD_SSH_PUBLIC_KEY, [], plugins) + + async def upload_ssh_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadSSHPublicKeyOutput: + return await self._invoke( + self._select_input(_models.UPLOAD_SSH_PUBLIC_KEY, args, kwargs), + _models.UPLOAD_SSH_PUBLIC_KEY, + [], + plugins, + ) async def _new_config(self) -> AsyncIAMConfig: return await AsyncIAMConfig.resolve() diff --git a/clients/aws-sdk-iam/src/aws_sdk_iam/client.py b/clients/aws-sdk-iam/src/aws_sdk_iam/client.py index b488ab4b8..a32327f24 100644 --- a/clients/aws-sdk-iam/src/aws_sdk_iam/client.py +++ b/clients/aws-sdk-iam/src/aws_sdk_iam/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,365 +20,185 @@ if TYPE_CHECKING: from .models import ( - AcceptDelegationRequestInput, AcceptDelegationRequestOutput, - AcquireRoleInput, AcquireRoleOutput, - AddClientIDToOpenIDConnectProviderInput, AddClientIDToOpenIDConnectProviderOutput, - AddRoleToInstanceProfileInput, AddRoleToInstanceProfileOutput, - AddUserToGroupInput, AddUserToGroupOutput, - AssociateDelegationRequestInput, AssociateDelegationRequestOutput, - AttachGroupPolicyInput, AttachGroupPolicyOutput, - AttachRolePolicyInput, AttachRolePolicyOutput, - AttachUserPolicyInput, AttachUserPolicyOutput, - ChangePasswordInput, ChangePasswordOutput, - CreateAccessKeyInput, CreateAccessKeyOutput, - CreateAccountAliasInput, CreateAccountAliasOutput, - CreateDelegationRequestInput, CreateDelegationRequestOutput, - CreateGroupInput, CreateGroupOutput, - CreateInstanceProfileInput, CreateInstanceProfileOutput, - CreateLoginProfileInput, CreateLoginProfileOutput, - CreateOpenIDConnectProviderInput, CreateOpenIDConnectProviderOutput, - CreatePolicyInput, CreatePolicyOutput, - CreatePolicyVersionInput, CreatePolicyVersionOutput, - CreateRoleInput, CreateRoleOutput, - CreateSAMLProviderInput, CreateSAMLProviderOutput, - CreateServiceLinkedRoleInput, CreateServiceLinkedRoleOutput, - CreateServiceSpecificCredentialInput, CreateServiceSpecificCredentialOutput, - CreateUserInput, CreateUserOutput, - CreateVirtualMFADeviceInput, CreateVirtualMFADeviceOutput, - DeactivateMFADeviceInput, DeactivateMFADeviceOutput, - DeleteAccessKeyInput, DeleteAccessKeyOutput, - DeleteAccountAliasInput, DeleteAccountAliasOutput, - DeleteAccountPasswordPolicyInput, DeleteAccountPasswordPolicyOutput, - DeleteGroupInput, DeleteGroupOutput, - DeleteGroupPolicyInput, DeleteGroupPolicyOutput, - DeleteInstanceProfileInput, DeleteInstanceProfileOutput, - DeleteLoginProfileInput, DeleteLoginProfileOutput, - DeleteOpenIDConnectProviderInput, DeleteOpenIDConnectProviderOutput, - DeletePolicyInput, DeletePolicyOutput, - DeletePolicyVersionInput, DeletePolicyVersionOutput, - DeleteRoleInput, DeleteRoleOutput, - DeleteRolePermissionsBoundaryInput, DeleteRolePermissionsBoundaryOutput, - DeleteRolePolicyInput, DeleteRolePolicyOutput, - DeleteSAMLProviderInput, DeleteSAMLProviderOutput, - DeleteSSHPublicKeyInput, DeleteSSHPublicKeyOutput, - DeleteServerCertificateInput, DeleteServerCertificateOutput, - DeleteServiceLinkedRoleInput, DeleteServiceLinkedRoleOutput, - DeleteServiceSpecificCredentialInput, DeleteServiceSpecificCredentialOutput, - DeleteSigningCertificateInput, DeleteSigningCertificateOutput, - DeleteUserInput, DeleteUserOutput, - DeleteUserPermissionsBoundaryInput, DeleteUserPermissionsBoundaryOutput, - DeleteUserPolicyInput, DeleteUserPolicyOutput, - DeleteVirtualMFADeviceInput, DeleteVirtualMFADeviceOutput, - DetachGroupPolicyInput, DetachGroupPolicyOutput, - DetachRolePolicyInput, DetachRolePolicyOutput, - DetachUserPolicyInput, DetachUserPolicyOutput, - DisableOrganizationsRootCredentialsManagementInput, DisableOrganizationsRootCredentialsManagementOutput, - DisableOrganizationsRootSessionsInput, DisableOrganizationsRootSessionsOutput, - DisableOutboundWebIdentityFederationInput, DisableOutboundWebIdentityFederationOutput, - EnableMFADeviceInput, EnableMFADeviceOutput, - EnableOrganizationsRootCredentialsManagementInput, EnableOrganizationsRootCredentialsManagementOutput, - EnableOrganizationsRootSessionsInput, EnableOrganizationsRootSessionsOutput, - EnableOutboundWebIdentityFederationInput, EnableOutboundWebIdentityFederationOutput, - GenerateCredentialReportInput, GenerateCredentialReportOutput, - GenerateOrganizationsAccessReportInput, GenerateOrganizationsAccessReportOutput, - GenerateServiceLastAccessedDetailsInput, GenerateServiceLastAccessedDetailsOutput, - GetAccessKeyLastUsedInput, GetAccessKeyLastUsedOutput, - GetAccountAuthorizationDetailsInput, GetAccountAuthorizationDetailsOutput, - GetAccountPasswordPolicyInput, GetAccountPasswordPolicyOutput, - GetAccountPropertiesInput, GetAccountPropertiesOutput, - GetAccountSummaryInput, GetAccountSummaryOutput, - GetContextKeysForCustomPolicyInput, GetContextKeysForCustomPolicyOutput, - GetContextKeysForPrincipalPolicyInput, GetContextKeysForPrincipalPolicyOutput, - GetCredentialReportInput, GetCredentialReportOutput, - GetDelegationRequestInput, GetDelegationRequestOutput, - GetGroupInput, GetGroupOutput, - GetGroupPolicyInput, GetGroupPolicyOutput, - GetHumanReadableSummaryInput, GetHumanReadableSummaryOutput, - GetInstanceProfileInput, GetInstanceProfileOutput, - GetLoginProfileInput, GetLoginProfileOutput, - GetMFADeviceInput, GetMFADeviceOutput, - GetOpenIDConnectProviderInput, GetOpenIDConnectProviderOutput, - GetOrganizationsAccessReportInput, GetOrganizationsAccessReportOutput, - GetOutboundWebIdentityFederationInfoInput, GetOutboundWebIdentityFederationInfoOutput, - GetPolicyInput, GetPolicyOutput, - GetPolicyVersionInput, GetPolicyVersionOutput, - GetRoleInput, GetRoleOutput, - GetRolePolicyInput, GetRolePolicyOutput, - GetRoleTemplateVersionInput, GetRoleTemplateVersionOutput, - GetSAMLProviderInput, GetSAMLProviderOutput, - GetSSHPublicKeyInput, GetSSHPublicKeyOutput, - GetServerCertificateInput, GetServerCertificateOutput, - GetServiceLastAccessedDetailsInput, GetServiceLastAccessedDetailsOutput, - GetServiceLastAccessedDetailsWithEntitiesInput, GetServiceLastAccessedDetailsWithEntitiesOutput, - GetServiceLinkedRoleDeletionStatusInput, GetServiceLinkedRoleDeletionStatusOutput, - GetUserInput, GetUserOutput, - GetUserPolicyInput, GetUserPolicyOutput, - ListAccessKeysInput, ListAccessKeysOutput, - ListAccountAliasesInput, ListAccountAliasesOutput, - ListAttachedGroupPoliciesInput, ListAttachedGroupPoliciesOutput, - ListAttachedRolePoliciesInput, ListAttachedRolePoliciesOutput, - ListAttachedUserPoliciesInput, ListAttachedUserPoliciesOutput, - ListDelegationRequestsInput, ListDelegationRequestsOutput, - ListEntitiesForPolicyInput, ListEntitiesForPolicyOutput, - ListGroupPoliciesInput, ListGroupPoliciesOutput, - ListGroupsForUserInput, ListGroupsForUserOutput, - ListGroupsInput, ListGroupsOutput, - ListInstanceProfileTagsInput, ListInstanceProfileTagsOutput, - ListInstanceProfilesForRoleInput, ListInstanceProfilesForRoleOutput, - ListInstanceProfilesInput, ListInstanceProfilesOutput, - ListMFADeviceTagsInput, ListMFADeviceTagsOutput, - ListMFADevicesInput, ListMFADevicesOutput, - ListOpenIDConnectProviderTagsInput, ListOpenIDConnectProviderTagsOutput, - ListOpenIDConnectProvidersInput, ListOpenIDConnectProvidersOutput, - ListOrganizationsFeaturesInput, ListOrganizationsFeaturesOutput, - ListPoliciesGrantingServiceAccessInput, ListPoliciesGrantingServiceAccessOutput, - ListPoliciesInput, ListPoliciesOutput, - ListPolicyTagsInput, ListPolicyTagsOutput, - ListPolicyVersionsInput, ListPolicyVersionsOutput, - ListRolePoliciesInput, ListRolePoliciesOutput, - ListRoleTagsInput, ListRoleTagsOutput, - ListRolesInput, ListRolesOutput, - ListSAMLProviderTagsInput, ListSAMLProviderTagsOutput, - ListSAMLProvidersInput, ListSAMLProvidersOutput, - ListSSHPublicKeysInput, ListSSHPublicKeysOutput, - ListServerCertificateTagsInput, ListServerCertificateTagsOutput, - ListServerCertificatesInput, ListServerCertificatesOutput, - ListServiceSpecificCredentialsInput, ListServiceSpecificCredentialsOutput, - ListSigningCertificatesInput, ListSigningCertificatesOutput, - ListUserPoliciesInput, ListUserPoliciesOutput, - ListUserTagsInput, ListUserTagsOutput, - ListUsersInput, ListUsersOutput, - ListVirtualMFADevicesInput, ListVirtualMFADevicesOutput, - PutAccountPropertiesInput, PutAccountPropertiesOutput, - PutGroupPolicyInput, PutGroupPolicyOutput, - PutRolePermissionsBoundaryInput, PutRolePermissionsBoundaryOutput, - PutRolePolicyInput, PutRolePolicyOutput, - PutUserPermissionsBoundaryInput, PutUserPermissionsBoundaryOutput, - PutUserPolicyInput, PutUserPolicyOutput, - RejectDelegationRequestInput, RejectDelegationRequestOutput, - RemoveClientIDFromOpenIDConnectProviderInput, RemoveClientIDFromOpenIDConnectProviderOutput, - RemoveRoleFromInstanceProfileInput, RemoveRoleFromInstanceProfileOutput, - RemoveUserFromGroupInput, RemoveUserFromGroupOutput, - ResetServiceSpecificCredentialInput, ResetServiceSpecificCredentialOutput, - ResyncMFADeviceInput, ResyncMFADeviceOutput, - SendDelegationTokenInput, SendDelegationTokenOutput, - SetDefaultPolicyVersionInput, SetDefaultPolicyVersionOutput, - SetSecurityTokenServicePreferencesInput, SetSecurityTokenServicePreferencesOutput, - SimulateCustomPolicyInput, SimulateCustomPolicyOutput, - SimulatePrincipalPolicyInput, SimulatePrincipalPolicyOutput, - TagInstanceProfileInput, TagInstanceProfileOutput, - TagMFADeviceInput, TagMFADeviceOutput, - TagOpenIDConnectProviderInput, TagOpenIDConnectProviderOutput, - TagPolicyInput, TagPolicyOutput, - TagRoleInput, TagRoleOutput, - TagSAMLProviderInput, TagSAMLProviderOutput, - TagServerCertificateInput, TagServerCertificateOutput, - TagUserInput, TagUserOutput, - UntagInstanceProfileInput, UntagInstanceProfileOutput, - UntagMFADeviceInput, UntagMFADeviceOutput, - UntagOpenIDConnectProviderInput, UntagOpenIDConnectProviderOutput, - UntagPolicyInput, UntagPolicyOutput, - UntagRoleInput, UntagRoleOutput, - UntagSAMLProviderInput, UntagSAMLProviderOutput, - UntagServerCertificateInput, UntagServerCertificateOutput, - UntagUserInput, UntagUserOutput, - UpdateAccessKeyInput, UpdateAccessKeyOutput, - UpdateAccountPasswordPolicyInput, UpdateAccountPasswordPolicyOutput, - UpdateAssumeRolePolicyInput, UpdateAssumeRolePolicyOutput, - UpdateDelegationRequestInput, UpdateDelegationRequestOutput, - UpdateGroupInput, UpdateGroupOutput, - UpdateLoginProfileInput, UpdateLoginProfileOutput, - UpdateOpenIDConnectProviderThumbprintInput, UpdateOpenIDConnectProviderThumbprintOutput, - UpdateRoleDescriptionInput, UpdateRoleDescriptionOutput, - UpdateRoleInput, UpdateRoleOutput, - UpdateSAMLProviderInput, UpdateSAMLProviderOutput, - UpdateSSHPublicKeyInput, UpdateSSHPublicKeyOutput, - UpdateServerCertificateInput, UpdateServerCertificateOutput, - UpdateServiceSpecificCredentialInput, UpdateServiceSpecificCredentialOutput, - UpdateSigningCertificateInput, UpdateSigningCertificateOutput, - UpdateUserInput, UpdateUserOutput, - UploadSSHPublicKeyInput, UploadSSHPublicKeyOutput, - UploadServerCertificateInput, UploadServerCertificateOutput, - UploadSigningCertificateInput, UploadSigningCertificateOutput, ) @@ -453,10 +273,25 @@ class IAMClient(Client[IAMConfig]): using an access key ID and secret access key. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def accept_delegation_request( - self, input: AcceptDelegationRequestInput, plugins: list[Plugin] | None = None + self, + request: _models.AcceptDelegationRequestInput + | _models.AcceptDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcceptDelegationRequestOutput: ... + + @_overload + def accept_delegation_request( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcceptDelegationRequestInputDict], ) -> AcceptDelegationRequestOutput: """ Accepts a delegation request, granting the requested temporary access. @@ -474,8 +309,6 @@ def accept_delegation_request( the partner. Args: - input: - An instance of `AcceptDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -485,10 +318,33 @@ def accept_delegation_request( Returns: An instance of `AcceptDelegationRequestOutput`. """ - return self._invoke(input, _models.ACCEPT_DELEGATION_REQUEST, [], plugins) + def accept_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcceptDelegationRequestOutput: + return self._invoke( + self._select_input(_models.ACCEPT_DELEGATION_REQUEST, args, kwargs), + _models.ACCEPT_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + def acquire_role( + self, + request: _models.AcquireRoleInput | _models.AcquireRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AcquireRoleOutput: ... + + @_overload def acquire_role( - self, input: AcquireRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AcquireRoleInputDict], ) -> AcquireRoleOutput: """ Creates an IAM role from the specified role template. The new role takes @@ -504,8 +360,6 @@ def acquire_role( role during creation. Args: - input: - An instance of `AcquireRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -515,12 +369,34 @@ def acquire_role( Returns: An instance of `AcquireRoleOutput`. """ - return self._invoke(input, _models.ACQUIRE_ROLE, [], plugins) + def acquire_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AcquireRoleOutput: + return self._invoke( + self._select_input(_models.ACQUIRE_ROLE, args, kwargs), + _models.ACQUIRE_ROLE, + [], + plugins, + ) + + @_overload + def add_client_id_to_open_id_connect_provider( + self, + request: _models.AddClientIDToOpenIDConnectProviderInput + | _models.AddClientIDToOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddClientIDToOpenIDConnectProviderOutput: ... + + @_overload def add_client_id_to_open_id_connect_provider( self, - input: AddClientIDToOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddClientIDToOpenIDConnectProviderInputDict], ) -> AddClientIDToOpenIDConnectProviderOutput: """ Adds a new client ID (also known as audience) to the list of client IDs @@ -531,8 +407,6 @@ def add_client_id_to_open_id_connect_provider( add an existing client ID to the provider. Args: - input: - An instance of `AddClientIDToOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -542,12 +416,36 @@ def add_client_id_to_open_id_connect_provider( Returns: An instance of `AddClientIDToOpenIDConnectProviderOutput`. """ + + def add_client_id_to_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddClientIDToOpenIDConnectProviderOutput: return self._invoke( - input, _models.ADD_CLIENT_ID_TO_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input( + _models.ADD_CLIENT_ID_TO_OPEN_ID_CONNECT_PROVIDER, args, kwargs + ), + _models.ADD_CLIENT_ID_TO_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload + def add_role_to_instance_profile( + self, + request: _models.AddRoleToInstanceProfileInput + | _models.AddRoleToInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddRoleToInstanceProfileOutput: ... + + @_overload def add_role_to_instance_profile( - self, input: AddRoleToInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddRoleToInstanceProfileInputDict], ) -> AddRoleToInstanceProfileOutput: """ Adds the specified IAM role to the specified instance profile. An @@ -584,8 +482,6 @@ def add_role_to_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `AddRoleToInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -595,17 +491,38 @@ def add_role_to_instance_profile( Returns: An instance of `AddRoleToInstanceProfileOutput`. """ - return self._invoke(input, _models.ADD_ROLE_TO_INSTANCE_PROFILE, [], plugins) + def add_role_to_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddRoleToInstanceProfileOutput: + return self._invoke( + self._select_input(_models.ADD_ROLE_TO_INSTANCE_PROFILE, args, kwargs), + _models.ADD_ROLE_TO_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload def add_user_to_group( - self, input: AddUserToGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.AddUserToGroupInput | _models.AddUserToGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddUserToGroupOutput: ... + + @_overload + def add_user_to_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddUserToGroupInputDict], ) -> AddUserToGroupOutput: """ Adds the specified user to the specified group. Args: - input: - An instance of `AddUserToGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -615,12 +532,34 @@ def add_user_to_group( Returns: An instance of `AddUserToGroupOutput`. """ - return self._invoke(input, _models.ADD_USER_TO_GROUP, [], plugins) + def add_user_to_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddUserToGroupOutput: + return self._invoke( + self._select_input(_models.ADD_USER_TO_GROUP, args, kwargs), + _models.ADD_USER_TO_GROUP, + [], + plugins, + ) + + @_overload + def associate_delegation_request( + self, + request: _models.AssociateDelegationRequestInput + | _models.AssociateDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociateDelegationRequestOutput: ... + + @_overload def associate_delegation_request( self, - input: AssociateDelegationRequestInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociateDelegationRequestInputDict], ) -> AssociateDelegationRequestOutput: """ Associates a delegation request with the current identity. @@ -644,8 +583,6 @@ def associate_delegation_request( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `AssociateDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -655,10 +592,33 @@ def associate_delegation_request( Returns: An instance of `AssociateDelegationRequestOutput`. """ - return self._invoke(input, _models.ASSOCIATE_DELEGATION_REQUEST, [], plugins) + def associate_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociateDelegationRequestOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_DELEGATION_REQUEST, args, kwargs), + _models.ASSOCIATE_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload def attach_group_policy( - self, input: AttachGroupPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.AttachGroupPolicyInput | _models.AttachGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachGroupPolicyOutput: ... + + @_overload + def attach_group_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachGroupPolicyInputDict], ) -> AttachGroupPolicyOutput: """ Attaches the specified managed policy to the specified IAM group. @@ -678,8 +638,6 @@ def attach_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `AttachGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -689,10 +647,33 @@ def attach_group_policy( Returns: An instance of `AttachGroupPolicyOutput`. """ - return self._invoke(input, _models.ATTACH_GROUP_POLICY, [], plugins) + def attach_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachGroupPolicyOutput: + return self._invoke( + self._select_input(_models.ATTACH_GROUP_POLICY, args, kwargs), + _models.ATTACH_GROUP_POLICY, + [], + plugins, + ) + + @_overload + def attach_role_policy( + self, + request: _models.AttachRolePolicyInput | _models.AttachRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachRolePolicyOutput: ... + + @_overload def attach_role_policy( - self, input: AttachRolePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachRolePolicyInputDict], ) -> AttachRolePolicyOutput: """ Attaches the specified managed policy to the specified IAM role. When @@ -720,8 +701,6 @@ def attach_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `AttachRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -731,10 +710,33 @@ def attach_role_policy( Returns: An instance of `AttachRolePolicyOutput`. """ - return self._invoke(input, _models.ATTACH_ROLE_POLICY, [], plugins) + def attach_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachRolePolicyOutput: + return self._invoke( + self._select_input(_models.ATTACH_ROLE_POLICY, args, kwargs), + _models.ATTACH_ROLE_POLICY, + [], + plugins, + ) + + @_overload + def attach_user_policy( + self, + request: _models.AttachUserPolicyInput | _models.AttachUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AttachUserPolicyOutput: ... + + @_overload def attach_user_policy( - self, input: AttachUserPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AttachUserPolicyInputDict], ) -> AttachUserPolicyOutput: """ Attaches the specified managed policy to the specified user. @@ -754,8 +756,6 @@ def attach_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `AttachUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -765,10 +765,33 @@ def attach_user_policy( Returns: An instance of `AttachUserPolicyOutput`. """ - return self._invoke(input, _models.ATTACH_USER_POLICY, [], plugins) + def attach_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AttachUserPolicyOutput: + return self._invoke( + self._select_input(_models.ATTACH_USER_POLICY, args, kwargs), + _models.ATTACH_USER_POLICY, + [], + plugins, + ) + + @_overload + def change_password( + self, + request: _models.ChangePasswordInput | _models.ChangePasswordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ChangePasswordOutput: ... + + @_overload def change_password( - self, input: ChangePasswordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChangePasswordInputDict], ) -> ChangePasswordOutput: """ Changes the password of the IAM user who is calling this operation. This @@ -786,8 +809,6 @@ def change_password( in the *IAM User Guide*. Args: - input: - An instance of `ChangePasswordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -797,12 +818,33 @@ def change_password( Returns: An instance of `ChangePasswordOutput`. """ - return self._invoke(input, _models.CHANGE_PASSWORD, [], plugins) + def change_password( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ChangePasswordOutput: + return self._invoke( + self._select_input(_models.CHANGE_PASSWORD, args, kwargs), + _models.CHANGE_PASSWORD, + [], + plugins, + ) + + @_overload + def create_access_key( + self, + request: _models.CreateAccessKeyInput | _models.CreateAccessKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAccessKeyOutput: ... + + @_overload def create_access_key( self, - input: CreateAccessKeyInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAccessKeyInputDict], ) -> CreateAccessKeyOutput: """ Creates a new Amazon Web Services secret access key and corresponding @@ -829,8 +871,6 @@ def create_access_key( for the associated user and then create new keys. Args: - input: - An instance of `CreateAccessKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -840,10 +880,33 @@ def create_access_key( Returns: An instance of `CreateAccessKeyOutput`. """ - return self._invoke(input, _models.CREATE_ACCESS_KEY, [], plugins) + def create_access_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAccessKeyOutput: + return self._invoke( + self._select_input(_models.CREATE_ACCESS_KEY, args, kwargs), + _models.CREATE_ACCESS_KEY, + [], + plugins, + ) + + @_overload + def create_account_alias( + self, + request: _models.CreateAccountAliasInput | _models.CreateAccountAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAccountAliasOutput: ... + + @_overload def create_account_alias( - self, input: CreateAccountAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAccountAliasInputDict], ) -> CreateAccountAliasOutput: """ Creates an alias for your Amazon Web Services account. For information @@ -853,8 +916,6 @@ def create_account_alias( in the *Amazon Web Services Sign-In User Guide*. Args: - input: - An instance of `CreateAccountAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -864,10 +925,34 @@ def create_account_alias( Returns: An instance of `CreateAccountAliasOutput`. """ - return self._invoke(input, _models.CREATE_ACCOUNT_ALIAS, [], plugins) + def create_account_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAccountAliasOutput: + return self._invoke( + self._select_input(_models.CREATE_ACCOUNT_ALIAS, args, kwargs), + _models.CREATE_ACCOUNT_ALIAS, + [], + plugins, + ) + + @_overload + def create_delegation_request( + self, + request: _models.CreateDelegationRequestInput + | _models.CreateDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDelegationRequestOutput: ... + + @_overload def create_delegation_request( - self, input: CreateDelegationRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDelegationRequestInputDict], ) -> CreateDelegationRequestOutput: """ Creates an IAM delegation request for temporary access delegation. @@ -878,8 +963,6 @@ def create_delegation_request( documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation-partner-guide.html). Args: - input: - An instance of `CreateDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -889,10 +972,33 @@ def create_delegation_request( Returns: An instance of `CreateDelegationRequestOutput`. """ - return self._invoke(input, _models.CREATE_DELEGATION_REQUEST, [], plugins) + def create_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDelegationRequestOutput: + return self._invoke( + self._select_input(_models.CREATE_DELEGATION_REQUEST, args, kwargs), + _models.CREATE_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + def create_group( + self, + request: _models.CreateGroupInput | _models.CreateGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGroupOutput: ... + + @_overload def create_group( - self, input: CreateGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGroupInputDict], ) -> CreateGroupOutput: """ Creates a new group. @@ -903,8 +1009,6 @@ def create_group( in the *IAM User Guide*. Args: - input: - An instance of `CreateGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -914,10 +1018,34 @@ def create_group( Returns: An instance of `CreateGroupOutput`. """ - return self._invoke(input, _models.CREATE_GROUP, [], plugins) + def create_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_GROUP, args, kwargs), + _models.CREATE_GROUP, + [], + plugins, + ) + + @_overload + def create_instance_profile( + self, + request: _models.CreateInstanceProfileInput + | _models.CreateInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateInstanceProfileOutput: ... + + @_overload def create_instance_profile( - self, input: CreateInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateInstanceProfileInputDict], ) -> CreateInstanceProfileOutput: """ Creates a new instance profile. For information about instance profiles, @@ -933,8 +1061,6 @@ def create_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `CreateInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -944,12 +1070,33 @@ def create_instance_profile( Returns: An instance of `CreateInstanceProfileOutput`. """ - return self._invoke(input, _models.CREATE_INSTANCE_PROFILE, [], plugins) + def create_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateInstanceProfileOutput: + return self._invoke( + self._select_input(_models.CREATE_INSTANCE_PROFILE, args, kwargs), + _models.CREATE_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + def create_login_profile( + self, + request: _models.CreateLoginProfileInput | _models.CreateLoginProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateLoginProfileOutput: ... + + @_overload def create_login_profile( self, - input: CreateLoginProfileInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateLoginProfileInputDict], ) -> CreateLoginProfileOutput: """ Creates a password for the specified IAM user. A password allows an IAM @@ -967,8 +1114,6 @@ def create_login_profile( in the *IAM User Guide*. Args: - input: - An instance of `CreateLoginProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -978,12 +1123,34 @@ def create_login_profile( Returns: An instance of `CreateLoginProfileOutput`. """ - return self._invoke(input, _models.CREATE_LOGIN_PROFILE, [], plugins) + def create_login_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateLoginProfileOutput: + return self._invoke( + self._select_input(_models.CREATE_LOGIN_PROFILE, args, kwargs), + _models.CREATE_LOGIN_PROFILE, + [], + plugins, + ) + + @_overload + def create_open_id_connect_provider( + self, + request: _models.CreateOpenIDConnectProviderInput + | _models.CreateOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOpenIDConnectProviderOutput: ... + + @_overload def create_open_id_connect_provider( self, - input: CreateOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOpenIDConnectProviderInputDict], ) -> CreateOpenIDConnectProviderOutput: """ Creates an IAM entity to describe an identity provider (IdP) that @@ -1032,8 +1199,6 @@ def create_open_id_connect_provider( operation to highly privileged users. Args: - input: - An instance of `CreateOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1043,10 +1208,33 @@ def create_open_id_connect_provider( Returns: An instance of `CreateOpenIDConnectProviderOutput`. """ - return self._invoke(input, _models.CREATE_OPEN_ID_CONNECT_PROVIDER, [], plugins) + def create_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOpenIDConnectProviderOutput: + return self._invoke( + self._select_input(_models.CREATE_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.CREATE_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, + ) + + @_overload + def create_policy( + self, + request: _models.CreatePolicyInput | _models.CreatePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePolicyOutput: ... + + @_overload def create_policy( - self, input: CreatePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePolicyInputDict], ) -> CreatePolicyOutput: """ Creates a new managed policy for your Amazon Web Services account. @@ -1068,8 +1256,6 @@ def create_policy( in the *IAM User Guide*. Args: - input: - An instance of `CreatePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1079,10 +1265,34 @@ def create_policy( Returns: An instance of `CreatePolicyOutput`. """ - return self._invoke(input, _models.CREATE_POLICY, [], plugins) + def create_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePolicyOutput: + return self._invoke( + self._select_input(_models.CREATE_POLICY, args, kwargs), + _models.CREATE_POLICY, + [], + plugins, + ) + + @_overload + def create_policy_version( + self, + request: _models.CreatePolicyVersionInput + | _models.CreatePolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePolicyVersionOutput: ... + + @_overload def create_policy_version( - self, input: CreatePolicyVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePolicyVersionInputDict], ) -> CreatePolicyVersionOutput: """ Creates a new version of the specified managed policy. To update a @@ -1102,8 +1312,6 @@ def create_policy_version( in the *IAM User Guide*. Args: - input: - An instance of `CreatePolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1113,10 +1321,33 @@ def create_policy_version( Returns: An instance of `CreatePolicyVersionOutput`. """ - return self._invoke(input, _models.CREATE_POLICY_VERSION, [], plugins) + def create_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePolicyVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_POLICY_VERSION, args, kwargs), + _models.CREATE_POLICY_VERSION, + [], + plugins, + ) + + @_overload + def create_role( + self, + request: _models.CreateRoleInput | _models.CreateRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRoleOutput: ... + + @_overload def create_role( - self, input: CreateRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRoleInputDict], ) -> CreateRoleOutput: """ Creates a new role for your Amazon Web Services account. @@ -1129,8 +1360,6 @@ def create_role( in the *IAM User Guide*. Args: - input: - An instance of `CreateRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1140,10 +1369,33 @@ def create_role( Returns: An instance of `CreateRoleOutput`. """ - return self._invoke(input, _models.CREATE_ROLE, [], plugins) + def create_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRoleOutput: + return self._invoke( + self._select_input(_models.CREATE_ROLE, args, kwargs), + _models.CREATE_ROLE, + [], + plugins, + ) + + @_overload def create_saml_provider( - self, input: CreateSAMLProviderInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateSAMLProviderInput | _models.CreateSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSAMLProviderOutput: ... + + @_overload + def create_saml_provider( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSAMLProviderInputDict], ) -> CreateSAMLProviderOutput: """ Creates an IAM resource that describes an identity provider (IdP) that @@ -1175,8 +1427,6 @@ def create_saml_provider( in the *IAM User Guide*. Args: - input: - An instance of `CreateSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1186,11 +1436,35 @@ def create_saml_provider( Returns: An instance of `CreateSAMLProviderOutput`. """ - return self._invoke(input, _models.CREATE_SAML_PROVIDER, [], plugins) - def create_service_linked_role( - self, input: CreateServiceLinkedRoleInput, plugins: list[Plugin] | None = None - ) -> CreateServiceLinkedRoleOutput: + def create_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSAMLProviderOutput: + return self._invoke( + self._select_input(_models.CREATE_SAML_PROVIDER, args, kwargs), + _models.CREATE_SAML_PROVIDER, + [], + plugins, + ) + + @_overload + def create_service_linked_role( + self, + request: _models.CreateServiceLinkedRoleInput + | _models.CreateServiceLinkedRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateServiceLinkedRoleOutput: ... + + @_overload + def create_service_linked_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateServiceLinkedRoleInputDict], + ) -> CreateServiceLinkedRoleOutput: """ Creates an IAM role that is linked to a specific Amazon Web Services service. The service controls the attached policies and when the role @@ -1207,8 +1481,6 @@ def create_service_linked_role( request using the Amazon Web Services service that depends on this role. Args: - input: - An instance of `CreateServiceLinkedRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1218,12 +1490,34 @@ def create_service_linked_role( Returns: An instance of `CreateServiceLinkedRoleOutput`. """ - return self._invoke(input, _models.CREATE_SERVICE_LINKED_ROLE, [], plugins) + def create_service_linked_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateServiceLinkedRoleOutput: + return self._invoke( + self._select_input(_models.CREATE_SERVICE_LINKED_ROLE, args, kwargs), + _models.CREATE_SERVICE_LINKED_ROLE, + [], + plugins, + ) + + @_overload + def create_service_specific_credential( + self, + request: _models.CreateServiceSpecificCredentialInput + | _models.CreateServiceSpecificCredentialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateServiceSpecificCredentialOutput: ... + + @_overload def create_service_specific_credential( self, - input: CreateServiceSpecificCredentialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateServiceSpecificCredentialInputDict], ) -> CreateServiceSpecificCredentialOutput: """ Generates a set of credentials consisting of a user name and password @@ -1258,8 +1552,6 @@ def create_service_specific_credential( in the *IAM User Guide*. Args: - input: - An instance of `CreateServiceSpecificCredentialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1269,12 +1561,35 @@ def create_service_specific_credential( Returns: An instance of `CreateServiceSpecificCredentialOutput`. """ + + def create_service_specific_credential( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateServiceSpecificCredentialOutput: return self._invoke( - input, _models.CREATE_SERVICE_SPECIFIC_CREDENTIAL, [], plugins + self._select_input( + _models.CREATE_SERVICE_SPECIFIC_CREDENTIAL, args, kwargs + ), + _models.CREATE_SERVICE_SPECIFIC_CREDENTIAL, + [], + plugins, ) + @_overload + def create_user( + self, + request: _models.CreateUserInput | _models.CreateUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateUserOutput: ... + + @_overload def create_user( - self, input: CreateUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateUserInputDict], ) -> CreateUserOutput: """ Creates a new IAM user for your Amazon Web Services account. @@ -1285,8 +1600,6 @@ def create_user( in the *IAM User Guide*. Args: - input: - An instance of `CreateUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1296,10 +1609,34 @@ def create_user( Returns: An instance of `CreateUserOutput`. """ - return self._invoke(input, _models.CREATE_USER, [], plugins) + def create_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateUserOutput: + return self._invoke( + self._select_input(_models.CREATE_USER, args, kwargs), + _models.CREATE_USER, + [], + plugins, + ) + + @_overload + def create_virtual_mfa_device( + self, + request: _models.CreateVirtualMFADeviceInput + | _models.CreateVirtualMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateVirtualMFADeviceOutput: ... + + @_overload def create_virtual_mfa_device( - self, input: CreateVirtualMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateVirtualMFADeviceInputDict], ) -> CreateVirtualMFADeviceOutput: """ Creates a new virtual MFA device for the Amazon Web Services account. @@ -1324,8 +1661,6 @@ def create_virtual_mfa_device( secure procedures. Args: - input: - An instance of `CreateVirtualMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1335,10 +1670,34 @@ def create_virtual_mfa_device( Returns: An instance of `CreateVirtualMFADeviceOutput`. """ - return self._invoke(input, _models.CREATE_VIRTUAL_MFA_DEVICE, [], plugins) + def create_virtual_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateVirtualMFADeviceOutput: + return self._invoke( + self._select_input(_models.CREATE_VIRTUAL_MFA_DEVICE, args, kwargs), + _models.CREATE_VIRTUAL_MFA_DEVICE, + [], + plugins, + ) + + @_overload + def deactivate_mfa_device( + self, + request: _models.DeactivateMFADeviceInput + | _models.DeactivateMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeactivateMFADeviceOutput: ... + + @_overload def deactivate_mfa_device( - self, input: DeactivateMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeactivateMFADeviceInputDict], ) -> DeactivateMFADeviceOutput: """ Deactivates the specified MFA device and removes it from association @@ -1350,8 +1709,6 @@ def deactivate_mfa_device( in the *IAM User Guide*. Args: - input: - An instance of `DeactivateMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1361,10 +1718,33 @@ def deactivate_mfa_device( Returns: An instance of `DeactivateMFADeviceOutput`. """ - return self._invoke(input, _models.DEACTIVATE_MFA_DEVICE, [], plugins) + def deactivate_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeactivateMFADeviceOutput: + return self._invoke( + self._select_input(_models.DEACTIVATE_MFA_DEVICE, args, kwargs), + _models.DEACTIVATE_MFA_DEVICE, + [], + plugins, + ) + + @_overload + def delete_access_key( + self, + request: _models.DeleteAccessKeyInput | _models.DeleteAccessKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAccessKeyOutput: ... + + @_overload def delete_access_key( - self, input: DeleteAccessKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAccessKeyInputDict], ) -> DeleteAccessKeyOutput: """ Deletes the access key pair associated with the specified IAM user. @@ -1377,8 +1757,6 @@ def delete_access_key( Services account has no associated users. Args: - input: - An instance of `DeleteAccessKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1388,10 +1766,33 @@ def delete_access_key( Returns: An instance of `DeleteAccessKeyOutput`. """ - return self._invoke(input, _models.DELETE_ACCESS_KEY, [], plugins) + def delete_access_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAccessKeyOutput: + return self._invoke( + self._select_input(_models.DELETE_ACCESS_KEY, args, kwargs), + _models.DELETE_ACCESS_KEY, + [], + plugins, + ) + + @_overload + def delete_account_alias( + self, + request: _models.DeleteAccountAliasInput | _models.DeleteAccountAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAccountAliasOutput: ... + + @_overload def delete_account_alias( - self, input: DeleteAccountAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAccountAliasInputDict], ) -> DeleteAccountAliasOutput: """ Deletes the specified Amazon Web Services account alias. For information @@ -1401,8 +1802,6 @@ def delete_account_alias( in the *Amazon Web Services Sign-In User Guide*. Args: - input: - An instance of `DeleteAccountAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1412,20 +1811,40 @@ def delete_account_alias( Returns: An instance of `DeleteAccountAliasOutput`. """ - return self._invoke(input, _models.DELETE_ACCOUNT_ALIAS, [], plugins) + def delete_account_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAccountAliasOutput: + return self._invoke( + self._select_input(_models.DELETE_ACCOUNT_ALIAS, args, kwargs), + _models.DELETE_ACCOUNT_ALIAS, + [], + plugins, + ) + + @_overload def delete_account_password_policy( self, - input: DeleteAccountPasswordPolicyInput | None = None, + request: _models.DeleteAccountPasswordPolicyInput + | _models.DeleteAccountPasswordPolicyInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteAccountPasswordPolicyOutput: ... + + @_overload + def delete_account_password_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAccountPasswordPolicyInputDict], ) -> DeleteAccountPasswordPolicyOutput: """ Deletes the password policy for the Amazon Web Services account. There are no parameters. Args: - input: - An instance of `DeleteAccountPasswordPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1435,18 +1854,39 @@ def delete_account_password_policy( Returns: An instance of `DeleteAccountPasswordPolicyOutput`. """ - return self._invoke(input, _models.DELETE_ACCOUNT_PASSWORD_POLICY, [], plugins) + def delete_account_password_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAccountPasswordPolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_ACCOUNT_PASSWORD_POLICY, args, kwargs), + _models.DELETE_ACCOUNT_PASSWORD_POLICY, + [], + plugins, + ) + + @_overload + def delete_group( + self, + request: _models.DeleteGroupInput | _models.DeleteGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGroupOutput: ... + + @_overload def delete_group( - self, input: DeleteGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGroupInputDict], ) -> DeleteGroupOutput: """ Deletes the specified IAM group. The group must not contain any users or have any attached policies. Args: - input: - An instance of `DeleteGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1456,10 +1896,33 @@ def delete_group( Returns: An instance of `DeleteGroupOutput`. """ - return self._invoke(input, _models.DELETE_GROUP, [], plugins) + def delete_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_GROUP, args, kwargs), + _models.DELETE_GROUP, + [], + plugins, + ) + + @_overload def delete_group_policy( - self, input: DeleteGroupPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteGroupPolicyInput | _models.DeleteGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGroupPolicyOutput: ... + + @_overload + def delete_group_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGroupPolicyInputDict], ) -> DeleteGroupPolicyOutput: """ Deletes the specified inline policy that is embedded in the specified @@ -1474,8 +1937,6 @@ def delete_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `DeleteGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1485,10 +1946,34 @@ def delete_group_policy( Returns: An instance of `DeleteGroupPolicyOutput`. """ - return self._invoke(input, _models.DELETE_GROUP_POLICY, [], plugins) + def delete_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGroupPolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_GROUP_POLICY, args, kwargs), + _models.DELETE_GROUP_POLICY, + [], + plugins, + ) + + @_overload + def delete_instance_profile( + self, + request: _models.DeleteInstanceProfileInput + | _models.DeleteInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteInstanceProfileOutput: ... + + @_overload def delete_instance_profile( - self, input: DeleteInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteInstanceProfileInputDict], ) -> DeleteInstanceProfileOutput: """ Deletes the specified instance profile. The instance profile must not @@ -1505,8 +1990,6 @@ def delete_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `DeleteInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1516,12 +1999,33 @@ def delete_instance_profile( Returns: An instance of `DeleteInstanceProfileOutput`. """ - return self._invoke(input, _models.DELETE_INSTANCE_PROFILE, [], plugins) + def delete_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteInstanceProfileOutput: + return self._invoke( + self._select_input(_models.DELETE_INSTANCE_PROFILE, args, kwargs), + _models.DELETE_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + def delete_login_profile( + self, + request: _models.DeleteLoginProfileInput | _models.DeleteLoginProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLoginProfileOutput: ... + + @_overload def delete_login_profile( self, - input: DeleteLoginProfileInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLoginProfileInputDict], ) -> DeleteLoginProfileOutput: """ Deletes the password for the specified IAM user or root user, For more @@ -1545,8 +2049,6 @@ def delete_login_profile( [DeleteAccessKey](https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeleteAccessKey.html). Args: - input: - An instance of `DeleteLoginProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1556,12 +2058,34 @@ def delete_login_profile( Returns: An instance of `DeleteLoginProfileOutput`. """ - return self._invoke(input, _models.DELETE_LOGIN_PROFILE, [], plugins) + def delete_login_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLoginProfileOutput: + return self._invoke( + self._select_input(_models.DELETE_LOGIN_PROFILE, args, kwargs), + _models.DELETE_LOGIN_PROFILE, + [], + plugins, + ) + + @_overload + def delete_open_id_connect_provider( + self, + request: _models.DeleteOpenIDConnectProviderInput + | _models.DeleteOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOpenIDConnectProviderOutput: ... + + @_overload def delete_open_id_connect_provider( self, - input: DeleteOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOpenIDConnectProviderInputDict], ) -> DeleteOpenIDConnectProviderOutput: """ Deletes an OpenID Connect identity provider (IdP) resource object in @@ -1575,8 +2099,6 @@ def delete_open_id_connect_provider( call the operation for a provider that does not exist. Args: - input: - An instance of `DeleteOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1586,10 +2108,33 @@ def delete_open_id_connect_provider( Returns: An instance of `DeleteOpenIDConnectProviderOutput`. """ - return self._invoke(input, _models.DELETE_OPEN_ID_CONNECT_PROVIDER, [], plugins) + def delete_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOpenIDConnectProviderOutput: + return self._invoke( + self._select_input(_models.DELETE_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.DELETE_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, + ) + + @_overload def delete_policy( - self, input: DeletePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePolicyInput | _models.DeletePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePolicyOutput: ... + + @_overload + def delete_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePolicyInputDict], ) -> DeletePolicyOutput: """ Deletes the specified managed policy. @@ -1626,8 +2171,6 @@ def delete_policy( in the *IAM User Guide*. Args: - input: - An instance of `DeletePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1637,10 +2180,34 @@ def delete_policy( Returns: An instance of `DeletePolicyOutput`. """ - return self._invoke(input, _models.DELETE_POLICY, [], plugins) + def delete_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_POLICY, args, kwargs), + _models.DELETE_POLICY, + [], + plugins, + ) + + @_overload + def delete_policy_version( + self, + request: _models.DeletePolicyVersionInput + | _models.DeletePolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePolicyVersionOutput: ... + + @_overload def delete_policy_version( - self, input: DeletePolicyVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePolicyVersionInputDict], ) -> DeletePolicyVersionOutput: """ Deletes the specified version from the specified managed policy. @@ -1658,8 +2225,6 @@ def delete_policy_version( in the *IAM User Guide*. Args: - input: - An instance of `DeletePolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1669,10 +2234,33 @@ def delete_policy_version( Returns: An instance of `DeletePolicyVersionOutput`. """ - return self._invoke(input, _models.DELETE_POLICY_VERSION, [], plugins) + def delete_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePolicyVersionOutput: + return self._invoke( + self._select_input(_models.DELETE_POLICY_VERSION, args, kwargs), + _models.DELETE_POLICY_VERSION, + [], + plugins, + ) + + @_overload + def delete_role( + self, + request: _models.DeleteRoleInput | _models.DeleteRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRoleOutput: ... + + @_overload def delete_role( - self, input: DeleteRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRoleInputDict], ) -> DeleteRoleOutput: """ Deletes the specified role. Unlike the Amazon Web Services Management @@ -1702,8 +2290,6 @@ def delete_role( running on the instance. Args: - input: - An instance of `DeleteRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1713,12 +2299,34 @@ def delete_role( Returns: An instance of `DeleteRoleOutput`. """ - return self._invoke(input, _models.DELETE_ROLE, [], plugins) + def delete_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRoleOutput: + return self._invoke( + self._select_input(_models.DELETE_ROLE, args, kwargs), + _models.DELETE_ROLE, + [], + plugins, + ) + + @_overload + def delete_role_permissions_boundary( + self, + request: _models.DeleteRolePermissionsBoundaryInput + | _models.DeleteRolePermissionsBoundaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRolePermissionsBoundaryOutput: ... + + @_overload def delete_role_permissions_boundary( self, - input: DeleteRolePermissionsBoundaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRolePermissionsBoundaryInputDict], ) -> DeleteRolePermissionsBoundaryOutput: """ Deletes the permissions boundary for the specified IAM role. @@ -1731,8 +2339,6 @@ def delete_role_permissions_boundary( perform all the actions granted in its permissions policies. Args: - input: - An instance of `DeleteRolePermissionsBoundaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1742,12 +2348,33 @@ def delete_role_permissions_boundary( Returns: An instance of `DeleteRolePermissionsBoundaryOutput`. """ + + def delete_role_permissions_boundary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRolePermissionsBoundaryOutput: return self._invoke( - input, _models.DELETE_ROLE_PERMISSIONS_BOUNDARY, [], plugins + self._select_input(_models.DELETE_ROLE_PERMISSIONS_BOUNDARY, args, kwargs), + _models.DELETE_ROLE_PERMISSIONS_BOUNDARY, + [], + plugins, ) + @_overload def delete_role_policy( - self, input: DeleteRolePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRolePolicyInput | _models.DeleteRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRolePolicyOutput: ... + + @_overload + def delete_role_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRolePolicyInputDict], ) -> DeleteRolePolicyOutput: """ Deletes the specified inline policy that is embedded in the specified @@ -1762,8 +2389,6 @@ def delete_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `DeleteRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1773,10 +2398,33 @@ def delete_role_policy( Returns: An instance of `DeleteRolePolicyOutput`. """ - return self._invoke(input, _models.DELETE_ROLE_POLICY, [], plugins) + def delete_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRolePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_ROLE_POLICY, args, kwargs), + _models.DELETE_ROLE_POLICY, + [], + plugins, + ) + + @_overload + def delete_saml_provider( + self, + request: _models.DeleteSAMLProviderInput | _models.DeleteSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSAMLProviderOutput: ... + + @_overload def delete_saml_provider( - self, input: DeleteSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSAMLProviderInputDict], ) -> DeleteSAMLProviderOutput: """ Deletes a SAML provider resource in IAM. @@ -1791,8 +2439,6 @@ def delete_saml_provider( 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). Args: - input: - An instance of `DeleteSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1802,10 +2448,34 @@ def delete_saml_provider( Returns: An instance of `DeleteSAMLProviderOutput`. """ - return self._invoke(input, _models.DELETE_SAML_PROVIDER, [], plugins) + def delete_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSAMLProviderOutput: + return self._invoke( + self._select_input(_models.DELETE_SAML_PROVIDER, args, kwargs), + _models.DELETE_SAML_PROVIDER, + [], + plugins, + ) + + @_overload + def delete_server_certificate( + self, + request: _models.DeleteServerCertificateInput + | _models.DeleteServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteServerCertificateOutput: ... + + @_overload def delete_server_certificate( - self, input: DeleteServerCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteServerCertificateInputDict], ) -> DeleteServerCertificateOutput: """ Deletes the specified server certificate. @@ -1830,8 +2500,6 @@ def delete_server_certificate( in the *Elastic Load Balancing API Reference*. Args: - input: - An instance of `DeleteServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1841,11 +2509,35 @@ def delete_server_certificate( Returns: An instance of `DeleteServerCertificateOutput`. """ - return self._invoke(input, _models.DELETE_SERVER_CERTIFICATE, [], plugins) + def delete_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteServerCertificateOutput: + return self._invoke( + self._select_input(_models.DELETE_SERVER_CERTIFICATE, args, kwargs), + _models.DELETE_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload def delete_service_linked_role( - self, input: DeleteServiceLinkedRoleInput, plugins: list[Plugin] | None = None - ) -> DeleteServiceLinkedRoleOutput: + self, + request: _models.DeleteServiceLinkedRoleInput + | _models.DeleteServiceLinkedRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteServiceLinkedRoleOutput: ... + + @_overload + def delete_service_linked_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteServiceLinkedRoleInputDict], + ) -> DeleteServiceLinkedRoleOutput: """ Submits a service-linked role deletion request and returns a `DeletionTaskId`, which you can use to check the status of the deletion. @@ -1873,8 +2565,6 @@ def delete_service_linked_role( in the *IAM User Guide*. Args: - input: - An instance of `DeleteServiceLinkedRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1884,19 +2574,39 @@ def delete_service_linked_role( Returns: An instance of `DeleteServiceLinkedRoleOutput`. """ - return self._invoke(input, _models.DELETE_SERVICE_LINKED_ROLE, [], plugins) + def delete_service_linked_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteServiceLinkedRoleOutput: + return self._invoke( + self._select_input(_models.DELETE_SERVICE_LINKED_ROLE, args, kwargs), + _models.DELETE_SERVICE_LINKED_ROLE, + [], + plugins, + ) + + @_overload + def delete_service_specific_credential( + self, + request: _models.DeleteServiceSpecificCredentialInput + | _models.DeleteServiceSpecificCredentialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteServiceSpecificCredentialOutput: ... + + @_overload def delete_service_specific_credential( self, - input: DeleteServiceSpecificCredentialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteServiceSpecificCredentialInputDict], ) -> DeleteServiceSpecificCredentialOutput: """ Deletes the specified service-specific credential. Args: - input: - An instance of `DeleteServiceSpecificCredentialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1906,12 +2616,36 @@ def delete_service_specific_credential( Returns: An instance of `DeleteServiceSpecificCredentialOutput`. """ + + def delete_service_specific_credential( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteServiceSpecificCredentialOutput: return self._invoke( - input, _models.DELETE_SERVICE_SPECIFIC_CREDENTIAL, [], plugins + self._select_input( + _models.DELETE_SERVICE_SPECIFIC_CREDENTIAL, args, kwargs + ), + _models.DELETE_SERVICE_SPECIFIC_CREDENTIAL, + [], + plugins, ) + @_overload + def delete_signing_certificate( + self, + request: _models.DeleteSigningCertificateInput + | _models.DeleteSigningCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSigningCertificateOutput: ... + + @_overload def delete_signing_certificate( - self, input: DeleteSigningCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSigningCertificateInputDict], ) -> DeleteSigningCertificateOutput: """ Deletes a signing certificate associated with the specified IAM user. @@ -1924,8 +2658,6 @@ def delete_signing_certificate( Services account has no associated IAM users. Args: - input: - An instance of `DeleteSigningCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1935,10 +2667,33 @@ def delete_signing_certificate( Returns: An instance of `DeleteSigningCertificateOutput`. """ - return self._invoke(input, _models.DELETE_SIGNING_CERTIFICATE, [], plugins) + def delete_signing_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSigningCertificateOutput: + return self._invoke( + self._select_input(_models.DELETE_SIGNING_CERTIFICATE, args, kwargs), + _models.DELETE_SIGNING_CERTIFICATE, + [], + plugins, + ) + + @_overload + def delete_ssh_public_key( + self, + request: _models.DeleteSSHPublicKeyInput | _models.DeleteSSHPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSSHPublicKeyOutput: ... + + @_overload def delete_ssh_public_key( - self, input: DeleteSSHPublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSSHPublicKeyInputDict], ) -> DeleteSSHPublicKeyOutput: """ Deletes the specified SSH public key. @@ -1951,8 +2706,6 @@ def delete_ssh_public_key( in the *CodeCommit User Guide*. Args: - input: - An instance of `DeleteSSHPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1962,10 +2715,33 @@ def delete_ssh_public_key( Returns: An instance of `DeleteSSHPublicKeyOutput`. """ - return self._invoke(input, _models.DELETE_SSH_PUBLIC_KEY, [], plugins) + def delete_ssh_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSSHPublicKeyOutput: + return self._invoke( + self._select_input(_models.DELETE_SSH_PUBLIC_KEY, args, kwargs), + _models.DELETE_SSH_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + def delete_user( + self, + request: _models.DeleteUserInput | _models.DeleteUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUserOutput: ... + + @_overload def delete_user( - self, input: DeleteUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUserInputDict], ) -> DeleteUserOutput: """ Deletes the specified IAM user. Unlike the Amazon Web Services @@ -2004,8 +2780,6 @@ def delete_user( ([RemoveUserFromGroup](https://docs.aws.amazon.com/IAM/latest/APIReference/API_RemoveUserFromGroup.html)) Args: - input: - An instance of `DeleteUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2015,12 +2789,34 @@ def delete_user( Returns: An instance of `DeleteUserOutput`. """ - return self._invoke(input, _models.DELETE_USER, [], plugins) + def delete_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUserOutput: + return self._invoke( + self._select_input(_models.DELETE_USER, args, kwargs), + _models.DELETE_USER, + [], + plugins, + ) + + @_overload + def delete_user_permissions_boundary( + self, + request: _models.DeleteUserPermissionsBoundaryInput + | _models.DeleteUserPermissionsBoundaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUserPermissionsBoundaryOutput: ... + + @_overload def delete_user_permissions_boundary( self, - input: DeleteUserPermissionsBoundaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUserPermissionsBoundaryInputDict], ) -> DeleteUserPermissionsBoundaryOutput: """ Deletes the permissions boundary for the specified IAM user. @@ -2031,8 +2827,6 @@ def delete_user_permissions_boundary( its permissions policies. Args: - input: - An instance of `DeleteUserPermissionsBoundaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2042,12 +2836,33 @@ def delete_user_permissions_boundary( Returns: An instance of `DeleteUserPermissionsBoundaryOutput`. """ + + def delete_user_permissions_boundary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUserPermissionsBoundaryOutput: return self._invoke( - input, _models.DELETE_USER_PERMISSIONS_BOUNDARY, [], plugins + self._select_input(_models.DELETE_USER_PERMISSIONS_BOUNDARY, args, kwargs), + _models.DELETE_USER_PERMISSIONS_BOUNDARY, + [], + plugins, ) + @_overload + def delete_user_policy( + self, + request: _models.DeleteUserPolicyInput | _models.DeleteUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUserPolicyOutput: ... + + @_overload def delete_user_policy( - self, input: DeleteUserPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUserPolicyInputDict], ) -> DeleteUserPolicyOutput: """ Deletes the specified inline policy that is embedded in the specified @@ -2062,8 +2877,6 @@ def delete_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `DeleteUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2073,10 +2886,34 @@ def delete_user_policy( Returns: An instance of `DeleteUserPolicyOutput`. """ - return self._invoke(input, _models.DELETE_USER_POLICY, [], plugins) + def delete_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUserPolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_USER_POLICY, args, kwargs), + _models.DELETE_USER_POLICY, + [], + plugins, + ) + + @_overload + def delete_virtual_mfa_device( + self, + request: _models.DeleteVirtualMFADeviceInput + | _models.DeleteVirtualMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteVirtualMFADeviceOutput: ... + + @_overload def delete_virtual_mfa_device( - self, input: DeleteVirtualMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteVirtualMFADeviceInputDict], ) -> DeleteVirtualMFADeviceOutput: """ Deletes a virtual MFA device. @@ -2087,8 +2924,6 @@ def delete_virtual_mfa_device( [DeactivateMFADevice](https://docs.aws.amazon.com/IAM/latest/APIReference/API_DeactivateMFADevice.html). Args: - input: - An instance of `DeleteVirtualMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2098,10 +2933,33 @@ def delete_virtual_mfa_device( Returns: An instance of `DeleteVirtualMFADeviceOutput`. """ - return self._invoke(input, _models.DELETE_VIRTUAL_MFA_DEVICE, [], plugins) + def delete_virtual_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteVirtualMFADeviceOutput: + return self._invoke( + self._select_input(_models.DELETE_VIRTUAL_MFA_DEVICE, args, kwargs), + _models.DELETE_VIRTUAL_MFA_DEVICE, + [], + plugins, + ) + + @_overload + def detach_group_policy( + self, + request: _models.DetachGroupPolicyInput | _models.DetachGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachGroupPolicyOutput: ... + + @_overload def detach_group_policy( - self, input: DetachGroupPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachGroupPolicyInputDict], ) -> DetachGroupPolicyOutput: """ Removes the specified managed policy from the specified IAM group. @@ -2114,8 +2972,6 @@ def detach_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `DetachGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2125,10 +2981,33 @@ def detach_group_policy( Returns: An instance of `DetachGroupPolicyOutput`. """ - return self._invoke(input, _models.DETACH_GROUP_POLICY, [], plugins) + def detach_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachGroupPolicyOutput: + return self._invoke( + self._select_input(_models.DETACH_GROUP_POLICY, args, kwargs), + _models.DETACH_GROUP_POLICY, + [], + plugins, + ) + + @_overload + def detach_role_policy( + self, + request: _models.DetachRolePolicyInput | _models.DetachRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachRolePolicyOutput: ... + + @_overload def detach_role_policy( - self, input: DetachRolePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachRolePolicyInputDict], ) -> DetachRolePolicyOutput: """ Removes the specified managed policy from the specified role. @@ -2141,8 +3020,6 @@ def detach_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `DetachRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2152,10 +3029,33 @@ def detach_role_policy( Returns: An instance of `DetachRolePolicyOutput`. """ - return self._invoke(input, _models.DETACH_ROLE_POLICY, [], plugins) + def detach_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachRolePolicyOutput: + return self._invoke( + self._select_input(_models.DETACH_ROLE_POLICY, args, kwargs), + _models.DETACH_ROLE_POLICY, + [], + plugins, + ) + + @_overload + def detach_user_policy( + self, + request: _models.DetachUserPolicyInput | _models.DetachUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DetachUserPolicyOutput: ... + + @_overload def detach_user_policy( - self, input: DetachUserPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DetachUserPolicyInputDict], ) -> DetachUserPolicyOutput: """ Removes the specified managed policy from the specified user. @@ -2168,8 +3068,6 @@ def detach_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `DetachUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2179,12 +3077,36 @@ def detach_user_policy( Returns: An instance of `DetachUserPolicyOutput`. """ - return self._invoke(input, _models.DETACH_USER_POLICY, [], plugins) + def detach_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DetachUserPolicyOutput: + return self._invoke( + self._select_input(_models.DETACH_USER_POLICY, args, kwargs), + _models.DETACH_USER_POLICY, + [], + plugins, + ) + + @_overload def disable_organizations_root_credentials_management( self, - input: DisableOrganizationsRootCredentialsManagementInput | None = None, + request: _models.DisableOrganizationsRootCredentialsManagementInput + | _models.DisableOrganizationsRootCredentialsManagementInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisableOrganizationsRootCredentialsManagementOutput: ... + + @_overload + def disable_organizations_root_credentials_management( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.DisableOrganizationsRootCredentialsManagementInputDict + ], ) -> DisableOrganizationsRootCredentialsManagementOutput: """ Disables the management of privileged root user credentials across @@ -2193,8 +3115,6 @@ def disable_organizations_root_credentials_management( manage root user credentials for member accounts in your organization. Args: - input: - An instance of `DisableOrganizationsRootCredentialsManagementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2204,17 +3124,36 @@ def disable_organizations_root_credentials_management( Returns: An instance of `DisableOrganizationsRootCredentialsManagementOutput`. """ + + def disable_organizations_root_credentials_management( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableOrganizationsRootCredentialsManagementOutput: return self._invoke( - input, + self._select_input( + _models.DISABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, args, kwargs + ), _models.DISABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, [], plugins, ) + @_overload + def disable_organizations_root_sessions( + self, + request: _models.DisableOrganizationsRootSessionsInput + | _models.DisableOrganizationsRootSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableOrganizationsRootSessionsOutput: ... + + @_overload def disable_organizations_root_sessions( self, - input: DisableOrganizationsRootSessionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableOrganizationsRootSessionsInputDict], ) -> DisableOrganizationsRootSessionsOutput: """ Disables root user sessions for privileged tasks across member accounts @@ -2223,8 +3162,6 @@ def disable_organizations_root_sessions( privileged tasks on member accounts in your organization. Args: - input: - An instance of `DisableOrganizationsRootSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2234,14 +3171,36 @@ def disable_organizations_root_sessions( Returns: An instance of `DisableOrganizationsRootSessionsOutput`. """ + + def disable_organizations_root_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableOrganizationsRootSessionsOutput: return self._invoke( - input, _models.DISABLE_ORGANIZATIONS_ROOT_SESSIONS, [], plugins + self._select_input( + _models.DISABLE_ORGANIZATIONS_ROOT_SESSIONS, args, kwargs + ), + _models.DISABLE_ORGANIZATIONS_ROOT_SESSIONS, + [], + plugins, ) + @_overload def disable_outbound_web_identity_federation( self, - input: DisableOutboundWebIdentityFederationInput | None = None, + request: _models.DisableOutboundWebIdentityFederationInput + | _models.DisableOutboundWebIdentityFederationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DisableOutboundWebIdentityFederationOutput: ... + + @_overload + def disable_outbound_web_identity_federation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableOutboundWebIdentityFederationInputDict], ) -> DisableOutboundWebIdentityFederationOutput: """ Disables the outbound identity federation feature for your Amazon Web @@ -2251,8 +3210,6 @@ def disable_outbound_web_identity_federation( tokens that were issued before the feature was disabled. Args: - input: - An instance of `DisableOutboundWebIdentityFederationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2262,12 +3219,35 @@ def disable_outbound_web_identity_federation( Returns: An instance of `DisableOutboundWebIdentityFederationOutput`. """ + + def disable_outbound_web_identity_federation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableOutboundWebIdentityFederationOutput: return self._invoke( - input, _models.DISABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, [], plugins + self._select_input( + _models.DISABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, args, kwargs + ), + _models.DISABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, + [], + plugins, ) + @_overload + def enable_mfa_device( + self, + request: _models.EnableMFADeviceInput | _models.EnableMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableMFADeviceOutput: ... + + @_overload def enable_mfa_device( - self, input: EnableMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableMFADeviceInputDict], ) -> EnableMFADeviceOutput: """ Enables the specified MFA device and associates it with the specified @@ -2275,8 +3255,6 @@ def enable_mfa_device( login by the IAM user associated with the device. Args: - input: - An instance of `EnableMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2286,12 +3264,36 @@ def enable_mfa_device( Returns: An instance of `EnableMFADeviceOutput`. """ - return self._invoke(input, _models.ENABLE_MFA_DEVICE, [], plugins) + def enable_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableMFADeviceOutput: + return self._invoke( + self._select_input(_models.ENABLE_MFA_DEVICE, args, kwargs), + _models.ENABLE_MFA_DEVICE, + [], + plugins, + ) + + @_overload + def enable_organizations_root_credentials_management( + self, + request: _models.EnableOrganizationsRootCredentialsManagementInput + | _models.EnableOrganizationsRootCredentialsManagementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableOrganizationsRootCredentialsManagementOutput: ... + + @_overload def enable_organizations_root_credentials_management( self, - input: EnableOrganizationsRootCredentialsManagementInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.EnableOrganizationsRootCredentialsManagementInputDict + ], ) -> EnableOrganizationsRootCredentialsManagementOutput: """ Enables the management of privileged root user credentials across member @@ -2313,8 +3315,6 @@ def enable_organizations_root_credentials_management( in the *Organizations User Guide*. Args: - input: - An instance of `EnableOrganizationsRootCredentialsManagementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2324,14 +3324,36 @@ def enable_organizations_root_credentials_management( Returns: An instance of `EnableOrganizationsRootCredentialsManagementOutput`. """ + + def enable_organizations_root_credentials_management( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableOrganizationsRootCredentialsManagementOutput: return self._invoke( - input, _models.ENABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, [], plugins + self._select_input( + _models.ENABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, args, kwargs + ), + _models.ENABLE_ORGANIZATIONS_ROOT_CREDENTIALS_MANAGEMENT, + [], + plugins, ) + @_overload + def enable_organizations_root_sessions( + self, + request: _models.EnableOrganizationsRootSessionsInput + | _models.EnableOrganizationsRootSessionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableOrganizationsRootSessionsOutput: ... + + @_overload def enable_organizations_root_sessions( self, - input: EnableOrganizationsRootSessionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableOrganizationsRootSessionsInputDict], ) -> EnableOrganizationsRootSessionsOutput: """ Allows the management account or delegated administrator to perform @@ -2352,8 +3374,6 @@ def enable_organizations_root_sessions( in the *Organizations User Guide*. Args: - input: - An instance of `EnableOrganizationsRootSessionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2363,14 +3383,36 @@ def enable_organizations_root_sessions( Returns: An instance of `EnableOrganizationsRootSessionsOutput`. """ + + def enable_organizations_root_sessions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableOrganizationsRootSessionsOutput: return self._invoke( - input, _models.ENABLE_ORGANIZATIONS_ROOT_SESSIONS, [], plugins + self._select_input( + _models.ENABLE_ORGANIZATIONS_ROOT_SESSIONS, args, kwargs + ), + _models.ENABLE_ORGANIZATIONS_ROOT_SESSIONS, + [], + plugins, ) + @_overload def enable_outbound_web_identity_federation( self, - input: EnableOutboundWebIdentityFederationInput | None = None, + request: _models.EnableOutboundWebIdentityFederationInput + | _models.EnableOutboundWebIdentityFederationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> EnableOutboundWebIdentityFederationOutput: ... + + @_overload + def enable_outbound_web_identity_federation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableOutboundWebIdentityFederationInputDict], ) -> EnableOutboundWebIdentityFederationOutput: """ Enables the outbound identity federation feature for your Amazon Web @@ -2380,8 +3422,6 @@ def enable_outbound_web_identity_federation( generates a unique issuer URL for your Amazon Web Services account. Args: - input: - An instance of `EnableOutboundWebIdentityFederationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2391,14 +3431,36 @@ def enable_outbound_web_identity_federation( Returns: An instance of `EnableOutboundWebIdentityFederationOutput`. """ + + def enable_outbound_web_identity_federation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableOutboundWebIdentityFederationOutput: return self._invoke( - input, _models.ENABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, [], plugins + self._select_input( + _models.ENABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, args, kwargs + ), + _models.ENABLE_OUTBOUND_WEB_IDENTITY_FEDERATION, + [], + plugins, ) + @_overload + def generate_credential_report( + self, + request: _models.GenerateCredentialReportInput + | _models.GenerateCredentialReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateCredentialReportOutput: ... + + @_overload def generate_credential_report( self, - input: GenerateCredentialReportInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateCredentialReportInputDict], ) -> GenerateCredentialReportOutput: """ Generates a credential report for the Amazon Web Services account. For @@ -2407,8 +3469,6 @@ def generate_credential_report( in the *IAM User Guide*. Args: - input: - An instance of `GenerateCredentialReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2418,12 +3478,34 @@ def generate_credential_report( Returns: An instance of `GenerateCredentialReportOutput`. """ - return self._invoke(input, _models.GENERATE_CREDENTIAL_REPORT, [], plugins) + def generate_credential_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateCredentialReportOutput: + return self._invoke( + self._select_input(_models.GENERATE_CREDENTIAL_REPORT, args, kwargs), + _models.GENERATE_CREDENTIAL_REPORT, + [], + plugins, + ) + + @_overload + def generate_organizations_access_report( + self, + request: _models.GenerateOrganizationsAccessReportInput + | _models.GenerateOrganizationsAccessReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateOrganizationsAccessReportOutput: ... + + @_overload def generate_organizations_access_report( self, - input: GenerateOrganizationsAccessReportInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateOrganizationsAccessReportInputDict], ) -> GenerateOrganizationsAccessReportOutput: """ Generates a report for service last accessed data for Organizations. You @@ -2559,8 +3641,6 @@ def generate_organizations_access_report( in the *IAM User Guide*. Args: - input: - An instance of `GenerateOrganizationsAccessReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2570,14 +3650,36 @@ def generate_organizations_access_report( Returns: An instance of `GenerateOrganizationsAccessReportOutput`. """ + + def generate_organizations_access_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateOrganizationsAccessReportOutput: return self._invoke( - input, _models.GENERATE_ORGANIZATIONS_ACCESS_REPORT, [], plugins + self._select_input( + _models.GENERATE_ORGANIZATIONS_ACCESS_REPORT, args, kwargs + ), + _models.GENERATE_ORGANIZATIONS_ACCESS_REPORT, + [], + plugins, ) + @_overload + def generate_service_last_accessed_details( + self, + request: _models.GenerateServiceLastAccessedDetailsInput + | _models.GenerateServiceLastAccessedDetailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateServiceLastAccessedDetailsOutput: ... + + @_overload def generate_service_last_accessed_details( self, - input: GenerateServiceLastAccessedDetailsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateServiceLastAccessedDetailsInputDict], ) -> GenerateServiceLastAccessedDetailsOutput: """ Generates a report that includes details about when an IAM resource @@ -2650,8 +3752,6 @@ def generate_service_last_accessed_details( in the *IAM User Guide*. Args: - input: - An instance of `GenerateServiceLastAccessedDetailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2661,12 +3761,36 @@ def generate_service_last_accessed_details( Returns: An instance of `GenerateServiceLastAccessedDetailsOutput`. """ + + def generate_service_last_accessed_details( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateServiceLastAccessedDetailsOutput: return self._invoke( - input, _models.GENERATE_SERVICE_LAST_ACCESSED_DETAILS, [], plugins + self._select_input( + _models.GENERATE_SERVICE_LAST_ACCESSED_DETAILS, args, kwargs + ), + _models.GENERATE_SERVICE_LAST_ACCESSED_DETAILS, + [], + plugins, ) + @_overload + def get_access_key_last_used( + self, + request: _models.GetAccessKeyLastUsedInput + | _models.GetAccessKeyLastUsedInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccessKeyLastUsedOutput: ... + + @_overload def get_access_key_last_used( - self, input: GetAccessKeyLastUsedInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccessKeyLastUsedInputDict], ) -> GetAccessKeyLastUsedOutput: """ Retrieves information about when the specified access key was last used. @@ -2675,8 +3799,6 @@ def get_access_key_last_used( request made with that key. Args: - input: - An instance of `GetAccessKeyLastUsedInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2686,12 +3808,34 @@ def get_access_key_last_used( Returns: An instance of `GetAccessKeyLastUsedOutput`. """ - return self._invoke(input, _models.GET_ACCESS_KEY_LAST_USED, [], plugins) + def get_access_key_last_used( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccessKeyLastUsedOutput: + return self._invoke( + self._select_input(_models.GET_ACCESS_KEY_LAST_USED, args, kwargs), + _models.GET_ACCESS_KEY_LAST_USED, + [], + plugins, + ) + + @_overload + def get_account_authorization_details( + self, + request: _models.GetAccountAuthorizationDetailsInput + | _models.GetAccountAuthorizationDetailsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountAuthorizationDetailsOutput: ... + + @_overload def get_account_authorization_details( self, - input: GetAccountAuthorizationDetailsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountAuthorizationDetailsInputDict], ) -> GetAccountAuthorizationDetailsOutput: """ Retrieves information about all IAM users, groups, roles, and policies @@ -2713,8 +3857,6 @@ def get_account_authorization_details( can paginate the results using the `MaxItems` and `Marker` parameters. Args: - input: - An instance of `GetAccountAuthorizationDetailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2724,14 +3866,34 @@ def get_account_authorization_details( Returns: An instance of `GetAccountAuthorizationDetailsOutput`. """ + + def get_account_authorization_details( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountAuthorizationDetailsOutput: return self._invoke( - input, _models.GET_ACCOUNT_AUTHORIZATION_DETAILS, [], plugins + self._select_input(_models.GET_ACCOUNT_AUTHORIZATION_DETAILS, args, kwargs), + _models.GET_ACCOUNT_AUTHORIZATION_DETAILS, + [], + plugins, ) + @_overload + def get_account_password_policy( + self, + request: _models.GetAccountPasswordPolicyInput + | _models.GetAccountPasswordPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountPasswordPolicyOutput: ... + + @_overload def get_account_password_policy( self, - input: GetAccountPasswordPolicyInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountPasswordPolicyInputDict], ) -> GetAccountPasswordPolicyOutput: """ Retrieves the password policy for the Amazon Web Services account. This @@ -2741,8 +3903,6 @@ def get_account_password_policy( policy](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html). Args: - input: - An instance of `GetAccountPasswordPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2752,12 +3912,34 @@ def get_account_password_policy( Returns: An instance of `GetAccountPasswordPolicyOutput`. """ - return self._invoke(input, _models.GET_ACCOUNT_PASSWORD_POLICY, [], plugins) + def get_account_password_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountPasswordPolicyOutput: + return self._invoke( + self._select_input(_models.GET_ACCOUNT_PASSWORD_POLICY, args, kwargs), + _models.GET_ACCOUNT_PASSWORD_POLICY, + [], + plugins, + ) + + @_overload + def get_account_properties( + self, + request: _models.GetAccountPropertiesInput + | _models.GetAccountPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountPropertiesOutput: ... + + @_overload def get_account_properties( self, - input: GetAccountPropertiesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountPropertiesInputDict], ) -> GetAccountPropertiesOutput: """ Retrieves the account-level properties for the caller's Amazon Web @@ -2771,8 +3953,6 @@ def get_account_properties( to modify these properties. Args: - input: - An instance of `GetAccountPropertiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2782,12 +3962,33 @@ def get_account_properties( Returns: An instance of `GetAccountPropertiesOutput`. """ - return self._invoke(input, _models.GET_ACCOUNT_PROPERTIES, [], plugins) + def get_account_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountPropertiesOutput: + return self._invoke( + self._select_input(_models.GET_ACCOUNT_PROPERTIES, args, kwargs), + _models.GET_ACCOUNT_PROPERTIES, + [], + plugins, + ) + + @_overload + def get_account_summary( + self, + request: _models.GetAccountSummaryInput | _models.GetAccountSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountSummaryOutput: ... + + @_overload def get_account_summary( self, - input: GetAccountSummaryInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountSummaryInputDict], ) -> GetAccountSummaryOutput: """ Retrieves information about IAM entity usage and IAM quotas in the @@ -2798,8 +3999,6 @@ def get_account_summary( in the *IAM User Guide*. Args: - input: - An instance of `GetAccountSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2809,12 +4008,34 @@ def get_account_summary( Returns: An instance of `GetAccountSummaryOutput`. """ - return self._invoke(input, _models.GET_ACCOUNT_SUMMARY, [], plugins) + def get_account_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountSummaryOutput: + return self._invoke( + self._select_input(_models.GET_ACCOUNT_SUMMARY, args, kwargs), + _models.GET_ACCOUNT_SUMMARY, + [], + plugins, + ) + + @_overload + def get_context_keys_for_custom_policy( + self, + request: _models.GetContextKeysForCustomPolicyInput + | _models.GetContextKeysForCustomPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetContextKeysForCustomPolicyOutput: ... + + @_overload def get_context_keys_for_custom_policy( self, - input: GetContextKeysForCustomPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetContextKeysForCustomPolicyInputDict], ) -> GetContextKeysForCustomPolicyOutput: """ Gets a list of all of the context keys referenced in the input policies. @@ -2833,8 +4054,6 @@ def get_context_keys_for_custom_policy( but must be URL encoded to be included as a part of a real HTML request. Args: - input: - An instance of `GetContextKeysForCustomPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2844,14 +4063,36 @@ def get_context_keys_for_custom_policy( Returns: An instance of `GetContextKeysForCustomPolicyOutput`. """ + + def get_context_keys_for_custom_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetContextKeysForCustomPolicyOutput: return self._invoke( - input, _models.GET_CONTEXT_KEYS_FOR_CUSTOM_POLICY, [], plugins + self._select_input( + _models.GET_CONTEXT_KEYS_FOR_CUSTOM_POLICY, args, kwargs + ), + _models.GET_CONTEXT_KEYS_FOR_CUSTOM_POLICY, + [], + plugins, ) + @_overload + def get_context_keys_for_principal_policy( + self, + request: _models.GetContextKeysForPrincipalPolicyInput + | _models.GetContextKeysForPrincipalPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetContextKeysForPrincipalPolicyOutput: ... + + @_overload def get_context_keys_for_principal_policy( self, - input: GetContextKeysForPrincipalPolicyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetContextKeysForPrincipalPolicyInputDict], ) -> GetContextKeysForPrincipalPolicyOutput: """ Gets a list of all of the context keys referenced in all the IAM @@ -2885,8 +4126,6 @@ def get_context_keys_for_principal_policy( additional policies that you provide, are included. Args: - input: - An instance of `GetContextKeysForPrincipalPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2896,14 +4135,36 @@ def get_context_keys_for_principal_policy( Returns: An instance of `GetContextKeysForPrincipalPolicyOutput`. """ + + def get_context_keys_for_principal_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetContextKeysForPrincipalPolicyOutput: return self._invoke( - input, _models.GET_CONTEXT_KEYS_FOR_PRINCIPAL_POLICY, [], plugins + self._select_input( + _models.GET_CONTEXT_KEYS_FOR_PRINCIPAL_POLICY, args, kwargs + ), + _models.GET_CONTEXT_KEYS_FOR_PRINCIPAL_POLICY, + [], + plugins, ) + @_overload + def get_credential_report( + self, + request: _models.GetCredentialReportInput + | _models.GetCredentialReportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCredentialReportOutput: ... + + @_overload def get_credential_report( self, - input: GetCredentialReportInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCredentialReportInputDict], ) -> GetCredentialReportOutput: """ Retrieves a credential report for the Amazon Web Services account. For @@ -2912,8 +4173,6 @@ def get_credential_report( in the *IAM User Guide*. Args: - input: - An instance of `GetCredentialReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2923,10 +4182,34 @@ def get_credential_report( Returns: An instance of `GetCredentialReportOutput`. """ - return self._invoke(input, _models.GET_CREDENTIAL_REPORT, [], plugins) + def get_credential_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCredentialReportOutput: + return self._invoke( + self._select_input(_models.GET_CREDENTIAL_REPORT, args, kwargs), + _models.GET_CREDENTIAL_REPORT, + [], + plugins, + ) + + @_overload + def get_delegation_request( + self, + request: _models.GetDelegationRequestInput + | _models.GetDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDelegationRequestOutput: ... + + @_overload def get_delegation_request( - self, input: GetDelegationRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDelegationRequestInputDict], ) -> GetDelegationRequestOutput: """ Retrieves information about a specific delegation request. @@ -2941,8 +4224,6 @@ def get_delegation_request( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `GetDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2952,18 +4233,39 @@ def get_delegation_request( Returns: An instance of `GetDelegationRequestOutput`. """ - return self._invoke(input, _models.GET_DELEGATION_REQUEST, [], plugins) + def get_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDelegationRequestOutput: + return self._invoke( + self._select_input(_models.GET_DELEGATION_REQUEST, args, kwargs), + _models.GET_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + def get_group( + self, + request: _models.GetGroupInput | _models.GetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGroupOutput: ... + + @_overload def get_group( - self, input: GetGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGroupInputDict], ) -> GetGroupOutput: """ Returns a list of IAM users that are in the specified IAM group. You can paginate the results using the `MaxItems` and `Marker` parameters. Args: - input: - An instance of `GetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2973,10 +4275,33 @@ def get_group( Returns: An instance of `GetGroupOutput`. """ - return self._invoke(input, _models.GET_GROUP, [], plugins) + def get_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGroupOutput: + return self._invoke( + self._select_input(_models.GET_GROUP, args, kwargs), + _models.GET_GROUP, + [], + plugins, + ) + + @_overload + def get_group_policy( + self, + request: _models.GetGroupPolicyInput | _models.GetGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGroupPolicyOutput: ... + + @_overload def get_group_policy( - self, input: GetGroupPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGroupPolicyInputDict], ) -> GetGroupPolicyOutput: """ Retrieves the specified inline policy document that is embedded in the @@ -3003,8 +4328,6 @@ def get_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `GetGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3014,10 +4337,34 @@ def get_group_policy( Returns: An instance of `GetGroupPolicyOutput`. """ - return self._invoke(input, _models.GET_GROUP_POLICY, [], plugins) + def get_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGroupPolicyOutput: + return self._invoke( + self._select_input(_models.GET_GROUP_POLICY, args, kwargs), + _models.GET_GROUP_POLICY, + [], + plugins, + ) + + @_overload + def get_human_readable_summary( + self, + request: _models.GetHumanReadableSummaryInput + | _models.GetHumanReadableSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetHumanReadableSummaryOutput: ... + + @_overload def get_human_readable_summary( - self, input: GetHumanReadableSummaryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetHumanReadableSummaryInputDict], ) -> GetHumanReadableSummaryOutput: """ Retrieves a human readable summary for a given entity. At this time, the @@ -3041,8 +4388,6 @@ def get_human_readable_summary( readable summary for that request. Args: - input: - An instance of `GetHumanReadableSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3052,10 +4397,33 @@ def get_human_readable_summary( Returns: An instance of `GetHumanReadableSummaryOutput`. """ - return self._invoke(input, _models.GET_HUMAN_READABLE_SUMMARY, [], plugins) + def get_human_readable_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetHumanReadableSummaryOutput: + return self._invoke( + self._select_input(_models.GET_HUMAN_READABLE_SUMMARY, args, kwargs), + _models.GET_HUMAN_READABLE_SUMMARY, + [], + plugins, + ) + + @_overload + def get_instance_profile( + self, + request: _models.GetInstanceProfileInput | _models.GetInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetInstanceProfileOutput: ... + + @_overload def get_instance_profile( - self, input: GetInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetInstanceProfileInputDict], ) -> GetInstanceProfileOutput: """ Retrieves information about the specified instance profile, including @@ -3065,8 +4433,6 @@ def get_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `GetInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3076,12 +4442,33 @@ def get_instance_profile( Returns: An instance of `GetInstanceProfileOutput`. """ - return self._invoke(input, _models.GET_INSTANCE_PROFILE, [], plugins) + def get_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetInstanceProfileOutput: + return self._invoke( + self._select_input(_models.GET_INSTANCE_PROFILE, args, kwargs), + _models.GET_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + def get_login_profile( + self, + request: _models.GetLoginProfileInput | _models.GetLoginProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLoginProfileOutput: ... + + @_overload def get_login_profile( self, - input: GetLoginProfileInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLoginProfileInputDict], ) -> GetLoginProfileOutput: """ Retrieves the user name for the specified IAM user. A login profile is @@ -3100,8 +4487,6 @@ def get_login_profile( Management Console. Args: - input: - An instance of `GetLoginProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3111,17 +4496,38 @@ def get_login_profile( Returns: An instance of `GetLoginProfileOutput`. """ - return self._invoke(input, _models.GET_LOGIN_PROFILE, [], plugins) + def get_login_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLoginProfileOutput: + return self._invoke( + self._select_input(_models.GET_LOGIN_PROFILE, args, kwargs), + _models.GET_LOGIN_PROFILE, + [], + plugins, + ) + + @_overload + def get_mfa_device( + self, + request: _models.GetMFADeviceInput | _models.GetMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMFADeviceOutput: ... + + @_overload def get_mfa_device( - self, input: GetMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMFADeviceInputDict], ) -> GetMFADeviceOutput: """ Retrieves information about an MFA device for a specified user. Args: - input: - An instance of `GetMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3131,18 +4537,40 @@ def get_mfa_device( Returns: An instance of `GetMFADeviceOutput`. """ - return self._invoke(input, _models.GET_MFA_DEVICE, [], plugins) + def get_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMFADeviceOutput: + return self._invoke( + self._select_input(_models.GET_MFA_DEVICE, args, kwargs), + _models.GET_MFA_DEVICE, + [], + plugins, + ) + + @_overload + def get_open_id_connect_provider( + self, + request: _models.GetOpenIDConnectProviderInput + | _models.GetOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOpenIDConnectProviderOutput: ... + + @_overload def get_open_id_connect_provider( - self, input: GetOpenIDConnectProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOpenIDConnectProviderInputDict], ) -> GetOpenIDConnectProviderOutput: """ Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM. Args: - input: - An instance of `GetOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3152,12 +4580,34 @@ def get_open_id_connect_provider( Returns: An instance of `GetOpenIDConnectProviderOutput`. """ - return self._invoke(input, _models.GET_OPEN_ID_CONNECT_PROVIDER, [], plugins) + def get_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOpenIDConnectProviderOutput: + return self._invoke( + self._select_input(_models.GET_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.GET_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, + ) + + @_overload def get_organizations_access_report( self, - input: GetOrganizationsAccessReportInput, + request: _models.GetOrganizationsAccessReportInput + | _models.GetOrganizationsAccessReportInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetOrganizationsAccessReportOutput: ... + + @_overload + def get_organizations_access_report( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOrganizationsAccessReportInputDict], ) -> GetOrganizationsAccessReportOutput: """ Retrieves the service last accessed data report for Organizations that @@ -3187,8 +4637,6 @@ def get_organizations_access_report( By default, the list is sorted by service namespace. Args: - input: - An instance of `GetOrganizationsAccessReportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3198,12 +4646,34 @@ def get_organizations_access_report( Returns: An instance of `GetOrganizationsAccessReportOutput`. """ - return self._invoke(input, _models.GET_ORGANIZATIONS_ACCESS_REPORT, [], plugins) + def get_organizations_access_report( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOrganizationsAccessReportOutput: + return self._invoke( + self._select_input(_models.GET_ORGANIZATIONS_ACCESS_REPORT, args, kwargs), + _models.GET_ORGANIZATIONS_ACCESS_REPORT, + [], + plugins, + ) + + @_overload + def get_outbound_web_identity_federation_info( + self, + request: _models.GetOutboundWebIdentityFederationInfoInput + | _models.GetOutboundWebIdentityFederationInfoInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetOutboundWebIdentityFederationInfoOutput: ... + + @_overload def get_outbound_web_identity_federation_info( self, - input: GetOutboundWebIdentityFederationInfoInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetOutboundWebIdentityFederationInfoInputDict], ) -> GetOutboundWebIdentityFederationInfoOutput: """ Retrieves the configuration information for the outbound identity @@ -3214,8 +4684,6 @@ def get_outbound_web_identity_federation_info( with external services. Args: - input: - An instance of `GetOutboundWebIdentityFederationInfoInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3225,12 +4693,35 @@ def get_outbound_web_identity_federation_info( Returns: An instance of `GetOutboundWebIdentityFederationInfoOutput`. """ + + def get_outbound_web_identity_federation_info( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetOutboundWebIdentityFederationInfoOutput: return self._invoke( - input, _models.GET_OUTBOUND_WEB_IDENTITY_FEDERATION_INFO, [], plugins + self._select_input( + _models.GET_OUTBOUND_WEB_IDENTITY_FEDERATION_INFO, args, kwargs + ), + _models.GET_OUTBOUND_WEB_IDENTITY_FEDERATION_INFO, + [], + plugins, ) + @_overload + def get_policy( + self, + request: _models.GetPolicyInput | _models.GetPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyOutput: ... + + @_overload def get_policy( - self, input: GetPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyInputDict], ) -> GetPolicyOutput: """ Retrieves information about the specified managed policy, including the @@ -3255,8 +4746,6 @@ def get_policy( in the *IAM User Guide*. Args: - input: - An instance of `GetPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3266,10 +4755,33 @@ def get_policy( Returns: An instance of `GetPolicyOutput`. """ - return self._invoke(input, _models.GET_POLICY, [], plugins) + def get_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyOutput: + return self._invoke( + self._select_input(_models.GET_POLICY, args, kwargs), + _models.GET_POLICY, + [], + plugins, + ) + + @_overload + def get_policy_version( + self, + request: _models.GetPolicyVersionInput | _models.GetPolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyVersionOutput: ... + + @_overload def get_policy_version( - self, input: GetPolicyVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyVersionInputDict], ) -> GetPolicyVersionOutput: """ Retrieves information about the specified version of the specified @@ -3306,8 +4818,6 @@ def get_policy_version( in the *IAM User Guide*. Args: - input: - An instance of `GetPolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3317,10 +4827,33 @@ def get_policy_version( Returns: An instance of `GetPolicyVersionOutput`. """ - return self._invoke(input, _models.GET_POLICY_VERSION, [], plugins) + def get_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyVersionOutput: + return self._invoke( + self._select_input(_models.GET_POLICY_VERSION, args, kwargs), + _models.GET_POLICY_VERSION, + [], + plugins, + ) + + @_overload + def get_role( + self, + request: _models.GetRoleInput | _models.GetRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRoleOutput: ... + + @_overload def get_role( - self, input: GetRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRoleInputDict], ) -> GetRoleOutput: """ Retrieves information about the specified role, including the role's @@ -3339,8 +4872,6 @@ def get_role( automatically. Args: - input: - An instance of `GetRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3350,10 +4881,33 @@ def get_role( Returns: An instance of `GetRoleOutput`. """ - return self._invoke(input, _models.GET_ROLE, [], plugins) + def get_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRoleOutput: + return self._invoke( + self._select_input(_models.GET_ROLE, args, kwargs), + _models.GET_ROLE, + [], + plugins, + ) + + @_overload + def get_role_policy( + self, + request: _models.GetRolePolicyInput | _models.GetRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRolePolicyOutput: ... + + @_overload def get_role_policy( - self, input: GetRolePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRolePolicyInputDict], ) -> GetRolePolicyOutput: """ Retrieves the specified inline policy document that is embedded with the @@ -3384,8 +4938,6 @@ def get_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `GetRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3395,10 +4947,34 @@ def get_role_policy( Returns: An instance of `GetRolePolicyOutput`. """ - return self._invoke(input, _models.GET_ROLE_POLICY, [], plugins) + def get_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRolePolicyOutput: + return self._invoke( + self._select_input(_models.GET_ROLE_POLICY, args, kwargs), + _models.GET_ROLE_POLICY, + [], + plugins, + ) + + @_overload def get_role_template_version( - self, input: GetRoleTemplateVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRoleTemplateVersionInput + | _models.GetRoleTemplateVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRoleTemplateVersionOutput: ... + + @_overload + def get_role_template_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRoleTemplateVersionInputDict], ) -> GetRoleTemplateVersionOutput: """ Retrieves information about a version of the specified role template. @@ -3412,8 +4988,6 @@ def get_role_template_version( template's default minor version. Args: - input: - An instance of `GetRoleTemplateVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3423,10 +4997,33 @@ def get_role_template_version( Returns: An instance of `GetRoleTemplateVersionOutput`. """ - return self._invoke(input, _models.GET_ROLE_TEMPLATE_VERSION, [], plugins) + def get_role_template_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRoleTemplateVersionOutput: + return self._invoke( + self._select_input(_models.GET_ROLE_TEMPLATE_VERSION, args, kwargs), + _models.GET_ROLE_TEMPLATE_VERSION, + [], + plugins, + ) + + @_overload + def get_saml_provider( + self, + request: _models.GetSAMLProviderInput | _models.GetSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSAMLProviderOutput: ... + + @_overload def get_saml_provider( - self, input: GetSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSAMLProviderInputDict], ) -> GetSAMLProviderOutput: """ Returns the SAML provider metadocument that was uploaded when the IAM @@ -3437,8 +5034,6 @@ def get_saml_provider( 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). Args: - input: - An instance of `GetSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3448,14 +5043,38 @@ def get_saml_provider( Returns: An instance of `GetSAMLProviderOutput`. """ - return self._invoke(input, _models.GET_SAML_PROVIDER, [], plugins) - def get_server_certificate( - self, input: GetServerCertificateInput, plugins: list[Plugin] | None = None - ) -> GetServerCertificateOutput: - """ - Retrieves information about the specified server certificate stored in - IAM. + def get_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSAMLProviderOutput: + return self._invoke( + self._select_input(_models.GET_SAML_PROVIDER, args, kwargs), + _models.GET_SAML_PROVIDER, + [], + plugins, + ) + + @_overload + def get_server_certificate( + self, + request: _models.GetServerCertificateInput + | _models.GetServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetServerCertificateOutput: ... + + @_overload + def get_server_certificate( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetServerCertificateInputDict], + ) -> GetServerCertificateOutput: + """ + Retrieves information about the specified server certificate stored in + IAM. For more information about working with server certificates, see [Working with server @@ -3465,8 +5084,6 @@ def get_server_certificate( with IAM. Args: - input: - An instance of `GetServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3476,12 +5093,34 @@ def get_server_certificate( Returns: An instance of `GetServerCertificateOutput`. """ - return self._invoke(input, _models.GET_SERVER_CERTIFICATE, [], plugins) + def get_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetServerCertificateOutput: + return self._invoke( + self._select_input(_models.GET_SERVER_CERTIFICATE, args, kwargs), + _models.GET_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload def get_service_last_accessed_details( self, - input: GetServiceLastAccessedDetailsInput, + request: _models.GetServiceLastAccessedDetailsInput + | _models.GetServiceLastAccessedDetailsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetServiceLastAccessedDetailsOutput: ... + + @_overload + def get_service_last_accessed_details( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetServiceLastAccessedDetailsInputDict], ) -> GetServiceLastAccessedDetailsOutput: """ Retrieves a service last accessed report that was created using the @@ -3538,8 +5177,6 @@ def get_service_last_accessed_details( in the *IAM User Guide*. Args: - input: - An instance of `GetServiceLastAccessedDetailsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3549,14 +5186,34 @@ def get_service_last_accessed_details( Returns: An instance of `GetServiceLastAccessedDetailsOutput`. """ + + def get_service_last_accessed_details( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetServiceLastAccessedDetailsOutput: return self._invoke( - input, _models.GET_SERVICE_LAST_ACCESSED_DETAILS, [], plugins + self._select_input(_models.GET_SERVICE_LAST_ACCESSED_DETAILS, args, kwargs), + _models.GET_SERVICE_LAST_ACCESSED_DETAILS, + [], + plugins, ) + @_overload + def get_service_last_accessed_details_with_entities( + self, + request: _models.GetServiceLastAccessedDetailsWithEntitiesInput + | _models.GetServiceLastAccessedDetailsWithEntitiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetServiceLastAccessedDetailsWithEntitiesOutput: ... + + @_overload def get_service_last_accessed_details_with_entities( self, - input: GetServiceLastAccessedDetailsWithEntitiesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetServiceLastAccessedDetailsWithEntitiesInputDict], ) -> GetServiceLastAccessedDetailsWithEntitiesOutput: """ After you generate a group or policy report using the @@ -3584,8 +5241,6 @@ def get_service_last_accessed_details_with_entities( most recent access listed first. Args: - input: - An instance of `GetServiceLastAccessedDetailsWithEntitiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3595,14 +5250,36 @@ def get_service_last_accessed_details_with_entities( Returns: An instance of `GetServiceLastAccessedDetailsWithEntitiesOutput`. """ + + def get_service_last_accessed_details_with_entities( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetServiceLastAccessedDetailsWithEntitiesOutput: return self._invoke( - input, _models.GET_SERVICE_LAST_ACCESSED_DETAILS_WITH_ENTITIES, [], plugins + self._select_input( + _models.GET_SERVICE_LAST_ACCESSED_DETAILS_WITH_ENTITIES, args, kwargs + ), + _models.GET_SERVICE_LAST_ACCESSED_DETAILS_WITH_ENTITIES, + [], + plugins, ) + @_overload + def get_service_linked_role_deletion_status( + self, + request: _models.GetServiceLinkedRoleDeletionStatusInput + | _models.GetServiceLinkedRoleDeletionStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetServiceLinkedRoleDeletionStatusOutput: ... + + @_overload def get_service_linked_role_deletion_status( self, - input: GetServiceLinkedRoleDeletionStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetServiceLinkedRoleDeletionStatusInputDict], ) -> GetServiceLinkedRoleDeletionStatusOutput: """ Retrieves the status of your service-linked role deletion. After you use @@ -3614,8 +5291,6 @@ def get_service_linked_role_deletion_status( the service. Args: - input: - An instance of `GetServiceLinkedRoleDeletionStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3625,12 +5300,35 @@ def get_service_linked_role_deletion_status( Returns: An instance of `GetServiceLinkedRoleDeletionStatusOutput`. """ + + def get_service_linked_role_deletion_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetServiceLinkedRoleDeletionStatusOutput: return self._invoke( - input, _models.GET_SERVICE_LINKED_ROLE_DELETION_STATUS, [], plugins + self._select_input( + _models.GET_SERVICE_LINKED_ROLE_DELETION_STATUS, args, kwargs + ), + _models.GET_SERVICE_LINKED_ROLE_DELETION_STATUS, + [], + plugins, ) + @_overload def get_ssh_public_key( - self, input: GetSSHPublicKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSSHPublicKeyInput | _models.GetSSHPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSSHPublicKeyOutput: ... + + @_overload + def get_ssh_public_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSSHPublicKeyInputDict], ) -> GetSSHPublicKeyOutput: """ Retrieves the specified SSH public key, including metadata about the @@ -3644,8 +5342,6 @@ def get_ssh_public_key( in the *CodeCommit User Guide*. Args: - input: - An instance of `GetSSHPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3655,10 +5351,33 @@ def get_ssh_public_key( Returns: An instance of `GetSSHPublicKeyOutput`. """ - return self._invoke(input, _models.GET_SSH_PUBLIC_KEY, [], plugins) + def get_ssh_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSSHPublicKeyOutput: + return self._invoke( + self._select_input(_models.GET_SSH_PUBLIC_KEY, args, kwargs), + _models.GET_SSH_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + def get_user( + self, + request: _models.GetUserInput | _models.GetUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUserOutput: ... + + @_overload def get_user( - self, input: GetUserInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUserInputDict], ) -> GetUserOutput: """ Retrieves information about the specified IAM user, including the @@ -3669,8 +5388,6 @@ def get_user( the request to this operation. Args: - input: - An instance of `GetUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3680,10 +5397,33 @@ def get_user( Returns: An instance of `GetUserOutput`. """ - return self._invoke(input, _models.GET_USER, [], plugins) + def get_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUserOutput: + return self._invoke( + self._select_input(_models.GET_USER, args, kwargs), + _models.GET_USER, + [], + plugins, + ) + + @_overload + def get_user_policy( + self, + request: _models.GetUserPolicyInput | _models.GetUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUserPolicyOutput: ... + + @_overload def get_user_policy( - self, input: GetUserPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUserPolicyInputDict], ) -> GetUserPolicyOutput: """ Retrieves the specified inline policy document that is embedded in the @@ -3710,8 +5450,6 @@ def get_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `GetUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3721,12 +5459,33 @@ def get_user_policy( Returns: An instance of `GetUserPolicyOutput`. """ - return self._invoke(input, _models.GET_USER_POLICY, [], plugins) + def get_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUserPolicyOutput: + return self._invoke( + self._select_input(_models.GET_USER_POLICY, args, kwargs), + _models.GET_USER_POLICY, + [], + plugins, + ) + + @_overload + def list_access_keys( + self, + request: _models.ListAccessKeysInput | _models.ListAccessKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAccessKeysOutput: ... + + @_overload def list_access_keys( self, - input: ListAccessKeysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAccessKeysInputDict], ) -> ListAccessKeysOutput: """ Returns information about the access key IDs associated with the @@ -3751,8 +5510,6 @@ def list_access_keys( access key is accessible only during key and user creation. Args: - input: - An instance of `ListAccessKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3762,12 +5519,33 @@ def list_access_keys( Returns: An instance of `ListAccessKeysOutput`. """ - return self._invoke(input, _models.LIST_ACCESS_KEYS, [], plugins) + def list_access_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAccessKeysOutput: + return self._invoke( + self._select_input(_models.LIST_ACCESS_KEYS, args, kwargs), + _models.LIST_ACCESS_KEYS, + [], + plugins, + ) + + @_overload + def list_account_aliases( + self, + request: _models.ListAccountAliasesInput | _models.ListAccountAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAccountAliasesOutput: ... + + @_overload def list_account_aliases( self, - input: ListAccountAliasesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAccountAliasesInputDict], ) -> ListAccountAliasesOutput: """ Lists the account alias associated with the Amazon Web Services account @@ -3778,8 +5556,6 @@ def list_account_aliases( in the *IAM User Guide*. Args: - input: - An instance of `ListAccountAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3789,10 +5565,34 @@ def list_account_aliases( Returns: An instance of `ListAccountAliasesOutput`. """ - return self._invoke(input, _models.LIST_ACCOUNT_ALIASES, [], plugins) + def list_account_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAccountAliasesOutput: + return self._invoke( + self._select_input(_models.LIST_ACCOUNT_ALIASES, args, kwargs), + _models.LIST_ACCOUNT_ALIASES, + [], + plugins, + ) + + @_overload + def list_attached_group_policies( + self, + request: _models.ListAttachedGroupPoliciesInput + | _models.ListAttachedGroupPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttachedGroupPoliciesOutput: ... + + @_overload def list_attached_group_policies( - self, input: ListAttachedGroupPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttachedGroupPoliciesInputDict], ) -> ListAttachedGroupPoliciesOutput: """ Lists all managed policies that are attached to the specified IAM group. @@ -3811,8 +5611,6 @@ def list_attached_group_policies( specified path prefix), the operation returns an empty list. Args: - input: - An instance of `ListAttachedGroupPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3822,10 +5620,34 @@ def list_attached_group_policies( Returns: An instance of `ListAttachedGroupPoliciesOutput`. """ - return self._invoke(input, _models.LIST_ATTACHED_GROUP_POLICIES, [], plugins) + def list_attached_group_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttachedGroupPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_ATTACHED_GROUP_POLICIES, args, kwargs), + _models.LIST_ATTACHED_GROUP_POLICIES, + [], + plugins, + ) + + @_overload + def list_attached_role_policies( + self, + request: _models.ListAttachedRolePoliciesInput + | _models.ListAttachedRolePoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttachedRolePoliciesOutput: ... + + @_overload def list_attached_role_policies( - self, input: ListAttachedRolePoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttachedRolePoliciesInputDict], ) -> ListAttachedRolePoliciesOutput: """ Lists all managed policies that are attached to the specified IAM role. @@ -3844,8 +5666,6 @@ def list_attached_role_policies( specified path prefix), the operation returns an empty list. Args: - input: - An instance of `ListAttachedRolePoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3855,10 +5675,34 @@ def list_attached_role_policies( Returns: An instance of `ListAttachedRolePoliciesOutput`. """ - return self._invoke(input, _models.LIST_ATTACHED_ROLE_POLICIES, [], plugins) + def list_attached_role_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttachedRolePoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_ATTACHED_ROLE_POLICIES, args, kwargs), + _models.LIST_ATTACHED_ROLE_POLICIES, + [], + plugins, + ) + + @_overload + def list_attached_user_policies( + self, + request: _models.ListAttachedUserPoliciesInput + | _models.ListAttachedUserPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttachedUserPoliciesOutput: ... + + @_overload def list_attached_user_policies( - self, input: ListAttachedUserPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttachedUserPoliciesInputDict], ) -> ListAttachedUserPoliciesOutput: """ Lists all managed policies that are attached to the specified IAM user. @@ -3877,8 +5721,6 @@ def list_attached_user_policies( specified path prefix), the operation returns an empty list. Args: - input: - An instance of `ListAttachedUserPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3888,12 +5730,34 @@ def list_attached_user_policies( Returns: An instance of `ListAttachedUserPoliciesOutput`. """ - return self._invoke(input, _models.LIST_ATTACHED_USER_POLICIES, [], plugins) + def list_attached_user_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttachedUserPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_ATTACHED_USER_POLICIES, args, kwargs), + _models.LIST_ATTACHED_USER_POLICIES, + [], + plugins, + ) + + @_overload def list_delegation_requests( self, - input: ListDelegationRequestsInput | None = None, + request: _models.ListDelegationRequestsInput + | _models.ListDelegationRequestsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDelegationRequestsOutput: ... + + @_overload + def list_delegation_requests( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDelegationRequestsInputDict], ) -> ListDelegationRequestsOutput: """ Lists delegation requests based on the specified criteria. @@ -3906,8 +5770,6 @@ def list_delegation_requests( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `ListDelegationRequestsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3917,10 +5779,34 @@ def list_delegation_requests( Returns: An instance of `ListDelegationRequestsOutput`. """ - return self._invoke(input, _models.LIST_DELEGATION_REQUESTS, [], plugins) + def list_delegation_requests( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDelegationRequestsOutput: + return self._invoke( + self._select_input(_models.LIST_DELEGATION_REQUESTS, args, kwargs), + _models.LIST_DELEGATION_REQUESTS, + [], + plugins, + ) + + @_overload + def list_entities_for_policy( + self, + request: _models.ListEntitiesForPolicyInput + | _models.ListEntitiesForPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEntitiesForPolicyOutput: ... + + @_overload def list_entities_for_policy( - self, input: ListEntitiesForPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEntitiesForPolicyInputDict], ) -> ListEntitiesForPolicyOutput: """ Lists all IAM users, groups, and roles that the specified managed policy @@ -3935,8 +5821,6 @@ def list_entities_for_policy( parameters. Args: - input: - An instance of `ListEntitiesForPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3946,10 +5830,33 @@ def list_entities_for_policy( Returns: An instance of `ListEntitiesForPolicyOutput`. """ - return self._invoke(input, _models.LIST_ENTITIES_FOR_POLICY, [], plugins) + def list_entities_for_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEntitiesForPolicyOutput: + return self._invoke( + self._select_input(_models.LIST_ENTITIES_FOR_POLICY, args, kwargs), + _models.LIST_ENTITIES_FOR_POLICY, + [], + plugins, + ) + + @_overload + def list_group_policies( + self, + request: _models.ListGroupPoliciesInput | _models.ListGroupPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGroupPoliciesOutput: ... + + @_overload def list_group_policies( - self, input: ListGroupPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGroupPoliciesInputDict], ) -> ListGroupPoliciesOutput: """ Lists the names of the inline policies that are embedded in the @@ -3967,8 +5874,6 @@ def list_group_policies( group, the operation returns an empty list. Args: - input: - An instance of `ListGroupPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3978,10 +5883,33 @@ def list_group_policies( Returns: An instance of `ListGroupPoliciesOutput`. """ - return self._invoke(input, _models.LIST_GROUP_POLICIES, [], plugins) + def list_group_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGroupPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_GROUP_POLICIES, args, kwargs), + _models.LIST_GROUP_POLICIES, + [], + plugins, + ) + + @_overload + def list_groups( + self, + request: _models.ListGroupsInput | _models.ListGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGroupsOutput: ... + + @_overload def list_groups( - self, input: ListGroupsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGroupsInputDict], ) -> ListGroupsOutput: """ Lists the IAM groups that have the specified path prefix. @@ -3990,8 +5918,6 @@ def list_groups( parameters. Args: - input: - An instance of `ListGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4001,10 +5927,33 @@ def list_groups( Returns: An instance of `ListGroupsOutput`. """ - return self._invoke(input, _models.LIST_GROUPS, [], plugins) + def list_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGroupsOutput: + return self._invoke( + self._select_input(_models.LIST_GROUPS, args, kwargs), + _models.LIST_GROUPS, + [], + plugins, + ) + + @_overload def list_groups_for_user( - self, input: ListGroupsForUserInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGroupsForUserInput | _models.ListGroupsForUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGroupsForUserOutput: ... + + @_overload + def list_groups_for_user( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGroupsForUserInputDict], ) -> ListGroupsForUserOutput: """ Lists the IAM groups that the specified IAM user belongs to. @@ -4013,8 +5962,6 @@ def list_groups_for_user( parameters. Args: - input: - An instance of `ListGroupsForUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4024,12 +5971,34 @@ def list_groups_for_user( Returns: An instance of `ListGroupsForUserOutput`. """ - return self._invoke(input, _models.LIST_GROUPS_FOR_USER, [], plugins) + def list_groups_for_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGroupsForUserOutput: + return self._invoke( + self._select_input(_models.LIST_GROUPS_FOR_USER, args, kwargs), + _models.LIST_GROUPS_FOR_USER, + [], + plugins, + ) + + @_overload + def list_instance_profiles( + self, + request: _models.ListInstanceProfilesInput + | _models.ListInstanceProfilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInstanceProfilesOutput: ... + + @_overload def list_instance_profiles( self, - input: ListInstanceProfilesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInstanceProfilesInputDict], ) -> ListInstanceProfilesOutput: """ Lists the instance profiles that have the specified path prefix. If @@ -4049,8 +6018,6 @@ def list_instance_profiles( parameters. Args: - input: - An instance of `ListInstanceProfilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4060,12 +6027,34 @@ def list_instance_profiles( Returns: An instance of `ListInstanceProfilesOutput`. """ - return self._invoke(input, _models.LIST_INSTANCE_PROFILES, [], plugins) + def list_instance_profiles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInstanceProfilesOutput: + return self._invoke( + self._select_input(_models.LIST_INSTANCE_PROFILES, args, kwargs), + _models.LIST_INSTANCE_PROFILES, + [], + plugins, + ) + + @_overload def list_instance_profiles_for_role( self, - input: ListInstanceProfilesForRoleInput, + request: _models.ListInstanceProfilesForRoleInput + | _models.ListInstanceProfilesForRoleInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListInstanceProfilesForRoleOutput: ... + + @_overload + def list_instance_profiles_for_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInstanceProfilesForRoleInputDict], ) -> ListInstanceProfilesForRoleOutput: """ Lists the instance profiles that have the specified associated IAM role. @@ -4078,8 +6067,6 @@ def list_instance_profiles_for_role( parameters. Args: - input: - An instance of `ListInstanceProfilesForRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4089,10 +6076,34 @@ def list_instance_profiles_for_role( Returns: An instance of `ListInstanceProfilesForRoleOutput`. """ - return self._invoke(input, _models.LIST_INSTANCE_PROFILES_FOR_ROLE, [], plugins) + def list_instance_profiles_for_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInstanceProfilesForRoleOutput: + return self._invoke( + self._select_input(_models.LIST_INSTANCE_PROFILES_FOR_ROLE, args, kwargs), + _models.LIST_INSTANCE_PROFILES_FOR_ROLE, + [], + plugins, + ) + + @_overload + def list_instance_profile_tags( + self, + request: _models.ListInstanceProfileTagsInput + | _models.ListInstanceProfileTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListInstanceProfileTagsOutput: ... + + @_overload def list_instance_profile_tags( - self, input: ListInstanceProfileTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListInstanceProfileTagsInputDict], ) -> ListInstanceProfileTagsOutput: """ Lists the tags that are attached to the specified IAM instance profile. @@ -4102,8 +6113,6 @@ def list_instance_profile_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListInstanceProfileTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4113,12 +6122,33 @@ def list_instance_profile_tags( Returns: An instance of `ListInstanceProfileTagsOutput`. """ - return self._invoke(input, _models.LIST_INSTANCE_PROFILE_TAGS, [], plugins) + def list_instance_profile_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListInstanceProfileTagsOutput: + return self._invoke( + self._select_input(_models.LIST_INSTANCE_PROFILE_TAGS, args, kwargs), + _models.LIST_INSTANCE_PROFILE_TAGS, + [], + plugins, + ) + + @_overload + def list_mfa_devices( + self, + request: _models.ListMFADevicesInput | _models.ListMFADevicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMFADevicesOutput: ... + + @_overload def list_mfa_devices( self, - input: ListMFADevicesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMFADevicesInputDict], ) -> ListMFADevicesOutput: """ Lists the MFA devices for an IAM user. If the request includes a IAM @@ -4131,8 +6161,6 @@ def list_mfa_devices( parameters. Args: - input: - An instance of `ListMFADevicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4142,10 +6170,33 @@ def list_mfa_devices( Returns: An instance of `ListMFADevicesOutput`. """ - return self._invoke(input, _models.LIST_MFA_DEVICES, [], plugins) + def list_mfa_devices( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMFADevicesOutput: + return self._invoke( + self._select_input(_models.LIST_MFA_DEVICES, args, kwargs), + _models.LIST_MFA_DEVICES, + [], + plugins, + ) + + @_overload + def list_mfa_device_tags( + self, + request: _models.ListMFADeviceTagsInput | _models.ListMFADeviceTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMFADeviceTagsOutput: ... + + @_overload def list_mfa_device_tags( - self, input: ListMFADeviceTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMFADeviceTagsInputDict], ) -> ListMFADeviceTagsOutput: """ Lists the tags that are attached to the specified IAM virtual @@ -4155,8 +6206,6 @@ def list_mfa_device_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListMFADeviceTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4166,12 +6215,34 @@ def list_mfa_device_tags( Returns: An instance of `ListMFADeviceTagsOutput`. """ - return self._invoke(input, _models.LIST_MFA_DEVICE_TAGS, [], plugins) + def list_mfa_device_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMFADeviceTagsOutput: + return self._invoke( + self._select_input(_models.LIST_MFA_DEVICE_TAGS, args, kwargs), + _models.LIST_MFA_DEVICE_TAGS, + [], + plugins, + ) + + @_overload + def list_open_id_connect_providers( + self, + request: _models.ListOpenIDConnectProvidersInput + | _models.ListOpenIDConnectProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOpenIDConnectProvidersOutput: ... + + @_overload def list_open_id_connect_providers( self, - input: ListOpenIDConnectProvidersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOpenIDConnectProvidersInputDict], ) -> ListOpenIDConnectProvidersOutput: """ Lists information about the IAM OpenID Connect (OIDC) provider resource @@ -4185,8 +6256,6 @@ def list_open_id_connect_providers( [GetOpenIDConnectProvider](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetOpenIDConnectProvider.html). Args: - input: - An instance of `ListOpenIDConnectProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4196,12 +6265,34 @@ def list_open_id_connect_providers( Returns: An instance of `ListOpenIDConnectProvidersOutput`. """ - return self._invoke(input, _models.LIST_OPEN_ID_CONNECT_PROVIDERS, [], plugins) + def list_open_id_connect_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOpenIDConnectProvidersOutput: + return self._invoke( + self._select_input(_models.LIST_OPEN_ID_CONNECT_PROVIDERS, args, kwargs), + _models.LIST_OPEN_ID_CONNECT_PROVIDERS, + [], + plugins, + ) + + @_overload + def list_open_id_connect_provider_tags( + self, + request: _models.ListOpenIDConnectProviderTagsInput + | _models.ListOpenIDConnectProviderTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOpenIDConnectProviderTagsOutput: ... + + @_overload def list_open_id_connect_provider_tags( self, - input: ListOpenIDConnectProviderTagsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOpenIDConnectProviderTagsInputDict], ) -> ListOpenIDConnectProviderTagsOutput: """ Lists the tags that are attached to the specified OpenID Connect @@ -4214,8 +6305,6 @@ def list_open_id_connect_provider_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListOpenIDConnectProviderTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4225,14 +6314,36 @@ def list_open_id_connect_provider_tags( Returns: An instance of `ListOpenIDConnectProviderTagsOutput`. """ + + def list_open_id_connect_provider_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOpenIDConnectProviderTagsOutput: return self._invoke( - input, _models.LIST_OPEN_ID_CONNECT_PROVIDER_TAGS, [], plugins + self._select_input( + _models.LIST_OPEN_ID_CONNECT_PROVIDER_TAGS, args, kwargs + ), + _models.LIST_OPEN_ID_CONNECT_PROVIDER_TAGS, + [], + plugins, ) + @_overload def list_organizations_features( self, - input: ListOrganizationsFeaturesInput | None = None, + request: _models.ListOrganizationsFeaturesInput + | _models.ListOrganizationsFeaturesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListOrganizationsFeaturesOutput: ... + + @_overload + def list_organizations_features( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOrganizationsFeaturesInputDict], ) -> ListOrganizationsFeaturesOutput: """ Lists the centralized root access features enabled for your @@ -4241,8 +6352,6 @@ def list_organizations_features( accounts](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html#id_root-user-access-management). Args: - input: - An instance of `ListOrganizationsFeaturesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4252,12 +6361,33 @@ def list_organizations_features( Returns: An instance of `ListOrganizationsFeaturesOutput`. """ - return self._invoke(input, _models.LIST_ORGANIZATIONS_FEATURES, [], plugins) + def list_organizations_features( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOrganizationsFeaturesOutput: + return self._invoke( + self._select_input(_models.LIST_ORGANIZATIONS_FEATURES, args, kwargs), + _models.LIST_ORGANIZATIONS_FEATURES, + [], + plugins, + ) + + @_overload + def list_policies( + self, + request: _models.ListPoliciesInput | _models.ListPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPoliciesOutput: ... + + @_overload def list_policies( self, - input: ListPoliciesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPoliciesInputDict], ) -> ListPoliciesOutput: """ Lists all the managed policies that are available in your Amazon Web @@ -4286,8 +6416,6 @@ def list_policies( [GetPolicy](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetPolicy.html). Args: - input: - An instance of `ListPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4297,12 +6425,34 @@ def list_policies( Returns: An instance of `ListPoliciesOutput`. """ - return self._invoke(input, _models.LIST_POLICIES, [], plugins) + def list_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_POLICIES, args, kwargs), + _models.LIST_POLICIES, + [], + plugins, + ) + + @_overload + def list_policies_granting_service_access( + self, + request: _models.ListPoliciesGrantingServiceAccessInput + | _models.ListPoliciesGrantingServiceAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPoliciesGrantingServiceAccessOutput: ... + + @_overload def list_policies_granting_service_access( self, - input: ListPoliciesGrantingServiceAccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPoliciesGrantingServiceAccessInputDict], ) -> ListPoliciesGrantingServiceAccessOutput: """ Retrieves a list of policies that the IAM identity (user, group, or @@ -4349,8 +6499,6 @@ def list_policies_granting_service_access( operations. Args: - input: - An instance of `ListPoliciesGrantingServiceAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4360,12 +6508,35 @@ def list_policies_granting_service_access( Returns: An instance of `ListPoliciesGrantingServiceAccessOutput`. """ + + def list_policies_granting_service_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPoliciesGrantingServiceAccessOutput: return self._invoke( - input, _models.LIST_POLICIES_GRANTING_SERVICE_ACCESS, [], plugins + self._select_input( + _models.LIST_POLICIES_GRANTING_SERVICE_ACCESS, args, kwargs + ), + _models.LIST_POLICIES_GRANTING_SERVICE_ACCESS, + [], + plugins, ) + @_overload + def list_policy_tags( + self, + request: _models.ListPolicyTagsInput | _models.ListPolicyTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyTagsOutput: ... + + @_overload def list_policy_tags( - self, input: ListPolicyTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyTagsInputDict], ) -> ListPolicyTagsOutput: """ Lists the tags that are attached to the specified IAM customer managed @@ -4375,8 +6546,6 @@ def list_policy_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListPolicyTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4386,10 +6555,33 @@ def list_policy_tags( Returns: An instance of `ListPolicyTagsOutput`. """ - return self._invoke(input, _models.LIST_POLICY_TAGS, [], plugins) + def list_policy_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyTagsOutput: + return self._invoke( + self._select_input(_models.LIST_POLICY_TAGS, args, kwargs), + _models.LIST_POLICY_TAGS, + [], + plugins, + ) + + @_overload + def list_policy_versions( + self, + request: _models.ListPolicyVersionsInput | _models.ListPolicyVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPolicyVersionsOutput: ... + + @_overload def list_policy_versions( - self, input: ListPolicyVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPolicyVersionsInputDict], ) -> ListPolicyVersionsOutput: """ Lists information about the versions of the specified managed policy, @@ -4402,8 +6594,6 @@ def list_policy_versions( in the *IAM User Guide*. Args: - input: - An instance of `ListPolicyVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4413,10 +6603,33 @@ def list_policy_versions( Returns: An instance of `ListPolicyVersionsOutput`. """ - return self._invoke(input, _models.LIST_POLICY_VERSIONS, [], plugins) + def list_policy_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPolicyVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_POLICY_VERSIONS, args, kwargs), + _models.LIST_POLICY_VERSIONS, + [], + plugins, + ) + + @_overload def list_role_policies( - self, input: ListRolePoliciesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListRolePoliciesInput | _models.ListRolePoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRolePoliciesOutput: ... + + @_overload + def list_role_policies( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRolePoliciesInputDict], ) -> ListRolePoliciesOutput: """ Lists the names of the inline policies that are embedded in the @@ -4434,8 +6647,6 @@ def list_role_policies( role, the operation returns an empty list. Args: - input: - An instance of `ListRolePoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4445,10 +6656,33 @@ def list_role_policies( Returns: An instance of `ListRolePoliciesOutput`. """ - return self._invoke(input, _models.LIST_ROLE_POLICIES, [], plugins) + def list_role_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRolePoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_ROLE_POLICIES, args, kwargs), + _models.LIST_ROLE_POLICIES, + [], + plugins, + ) + + @_overload def list_roles( - self, input: ListRolesInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListRolesInput | _models.ListRolesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRolesOutput: ... + + @_overload + def list_roles( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRolesInputDict], ) -> ListRolesOutput: """ Lists the IAM roles that have the specified path prefix. If there are @@ -4476,8 +6710,6 @@ def list_roles( parameters. Args: - input: - An instance of `ListRolesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4487,10 +6719,33 @@ def list_roles( Returns: An instance of `ListRolesOutput`. """ - return self._invoke(input, _models.LIST_ROLES, [], plugins) + def list_roles( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRolesOutput: + return self._invoke( + self._select_input(_models.LIST_ROLES, args, kwargs), + _models.LIST_ROLES, + [], + plugins, + ) + + @_overload + def list_role_tags( + self, + request: _models.ListRoleTagsInput | _models.ListRoleTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRoleTagsOutput: ... + + @_overload def list_role_tags( - self, input: ListRoleTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRoleTagsInputDict], ) -> ListRoleTagsOutput: """ Lists the tags that are attached to the specified role. The returned @@ -4500,23 +6755,42 @@ def list_role_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListRoleTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ListRoleTagsOutput`. - """ - return self._invoke(input, _models.LIST_ROLE_TAGS, [], plugins) + Returns: + An instance of `ListRoleTagsOutput`. + """ + + def list_role_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRoleTagsOutput: + return self._invoke( + self._select_input(_models.LIST_ROLE_TAGS, args, kwargs), + _models.LIST_ROLE_TAGS, + [], + plugins, + ) + + @_overload + def list_saml_providers( + self, + request: _models.ListSAMLProvidersInput | _models.ListSAMLProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSAMLProvidersOutput: ... + @_overload def list_saml_providers( self, - input: ListSAMLProvidersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSAMLProvidersInputDict], ) -> ListSAMLProvidersOutput: """ Lists the SAML provider resource objects defined in IAM in the account. @@ -4531,8 +6805,6 @@ def list_saml_providers( 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). Args: - input: - An instance of `ListSAMLProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4542,10 +6814,34 @@ def list_saml_providers( Returns: An instance of `ListSAMLProvidersOutput`. """ - return self._invoke(input, _models.LIST_SAML_PROVIDERS, [], plugins) + def list_saml_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSAMLProvidersOutput: + return self._invoke( + self._select_input(_models.LIST_SAML_PROVIDERS, args, kwargs), + _models.LIST_SAML_PROVIDERS, + [], + plugins, + ) + + @_overload + def list_saml_provider_tags( + self, + request: _models.ListSAMLProviderTagsInput + | _models.ListSAMLProviderTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSAMLProviderTagsOutput: ... + + @_overload def list_saml_provider_tags( - self, input: ListSAMLProviderTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSAMLProviderTagsInputDict], ) -> ListSAMLProviderTagsOutput: """ Lists the tags that are attached to the specified Security Assertion @@ -4558,8 +6854,6 @@ def list_saml_provider_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListSAMLProviderTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4569,12 +6863,34 @@ def list_saml_provider_tags( Returns: An instance of `ListSAMLProviderTagsOutput`. """ - return self._invoke(input, _models.LIST_SAML_PROVIDER_TAGS, [], plugins) + def list_saml_provider_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSAMLProviderTagsOutput: + return self._invoke( + self._select_input(_models.LIST_SAML_PROVIDER_TAGS, args, kwargs), + _models.LIST_SAML_PROVIDER_TAGS, + [], + plugins, + ) + + @_overload + def list_server_certificates( + self, + request: _models.ListServerCertificatesInput + | _models.ListServerCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServerCertificatesOutput: ... + + @_overload def list_server_certificates( self, - input: ListServerCertificatesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServerCertificatesInputDict], ) -> ListServerCertificatesOutput: """ Lists the server certificates stored in IAM that have the specified path @@ -4598,8 +6914,6 @@ def list_server_certificates( [GetServerCertificate](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetServerCertificate.html). Args: - input: - An instance of `ListServerCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4609,10 +6923,34 @@ def list_server_certificates( Returns: An instance of `ListServerCertificatesOutput`. """ - return self._invoke(input, _models.LIST_SERVER_CERTIFICATES, [], plugins) + def list_server_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServerCertificatesOutput: + return self._invoke( + self._select_input(_models.LIST_SERVER_CERTIFICATES, args, kwargs), + _models.LIST_SERVER_CERTIFICATES, + [], + plugins, + ) + + @_overload + def list_server_certificate_tags( + self, + request: _models.ListServerCertificateTagsInput + | _models.ListServerCertificateTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServerCertificateTagsOutput: ... + + @_overload def list_server_certificate_tags( - self, input: ListServerCertificateTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServerCertificateTagsInputDict], ) -> ListServerCertificateTagsOutput: """ Lists the tags that are attached to the specified IAM server @@ -4630,8 +6968,6 @@ def list_server_certificate_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListServerCertificateTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4641,12 +6977,34 @@ def list_server_certificate_tags( Returns: An instance of `ListServerCertificateTagsOutput`. """ - return self._invoke(input, _models.LIST_SERVER_CERTIFICATE_TAGS, [], plugins) + def list_server_certificate_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServerCertificateTagsOutput: + return self._invoke( + self._select_input(_models.LIST_SERVER_CERTIFICATE_TAGS, args, kwargs), + _models.LIST_SERVER_CERTIFICATE_TAGS, + [], + plugins, + ) + + @_overload + def list_service_specific_credentials( + self, + request: _models.ListServiceSpecificCredentialsInput + | _models.ListServiceSpecificCredentialsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListServiceSpecificCredentialsOutput: ... + + @_overload def list_service_specific_credentials( self, - input: ListServiceSpecificCredentialsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListServiceSpecificCredentialsInputDict], ) -> ListServiceSpecificCredentialsOutput: """ Returns information about the service-specific credentials associated @@ -4674,8 +7032,6 @@ def list_service_specific_credentials( in the *IAM User Guide*. Args: - input: - An instance of `ListServiceSpecificCredentialsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4685,14 +7041,34 @@ def list_service_specific_credentials( Returns: An instance of `ListServiceSpecificCredentialsOutput`. """ + + def list_service_specific_credentials( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListServiceSpecificCredentialsOutput: return self._invoke( - input, _models.LIST_SERVICE_SPECIFIC_CREDENTIALS, [], plugins + self._select_input(_models.LIST_SERVICE_SPECIFIC_CREDENTIALS, args, kwargs), + _models.LIST_SERVICE_SPECIFIC_CREDENTIALS, + [], + plugins, ) + @_overload + def list_signing_certificates( + self, + request: _models.ListSigningCertificatesInput + | _models.ListSigningCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSigningCertificatesOutput: ... + + @_overload def list_signing_certificates( self, - input: ListSigningCertificatesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSigningCertificatesInputDict], ) -> ListSigningCertificatesOutput: """ Returns information about the signing certificates associated with the @@ -4710,8 +7086,6 @@ def list_signing_certificates( even if the Amazon Web Services account has no associated users. Args: - input: - An instance of `ListSigningCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4721,12 +7095,33 @@ def list_signing_certificates( Returns: An instance of `ListSigningCertificatesOutput`. """ - return self._invoke(input, _models.LIST_SIGNING_CERTIFICATES, [], plugins) + def list_signing_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSigningCertificatesOutput: + return self._invoke( + self._select_input(_models.LIST_SIGNING_CERTIFICATES, args, kwargs), + _models.LIST_SIGNING_CERTIFICATES, + [], + plugins, + ) + + @_overload + def list_ssh_public_keys( + self, + request: _models.ListSSHPublicKeysInput | _models.ListSSHPublicKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSSHPublicKeysOutput: ... + + @_overload def list_ssh_public_keys( self, - input: ListSSHPublicKeysInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSSHPublicKeysInputDict], ) -> ListSSHPublicKeysOutput: """ Returns information about the SSH public keys associated with the @@ -4743,8 +7138,6 @@ def list_ssh_public_keys( paginate the results using the `MaxItems` and `Marker` parameters. Args: - input: - An instance of `ListSSHPublicKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4754,10 +7147,33 @@ def list_ssh_public_keys( Returns: An instance of `ListSSHPublicKeysOutput`. """ - return self._invoke(input, _models.LIST_SSH_PUBLIC_KEYS, [], plugins) + def list_ssh_public_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSSHPublicKeysOutput: + return self._invoke( + self._select_input(_models.LIST_SSH_PUBLIC_KEYS, args, kwargs), + _models.LIST_SSH_PUBLIC_KEYS, + [], + plugins, + ) + + @_overload + def list_user_policies( + self, + request: _models.ListUserPoliciesInput | _models.ListUserPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListUserPoliciesOutput: ... + + @_overload def list_user_policies( - self, input: ListUserPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListUserPoliciesInputDict], ) -> ListUserPoliciesOutput: """ Lists the names of the inline policies embedded in the specified IAM @@ -4775,8 +7191,6 @@ def list_user_policies( user, the operation returns an empty list. Args: - input: - An instance of `ListUserPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4786,10 +7200,33 @@ def list_user_policies( Returns: An instance of `ListUserPoliciesOutput`. """ - return self._invoke(input, _models.LIST_USER_POLICIES, [], plugins) + def list_user_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListUserPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_USER_POLICIES, args, kwargs), + _models.LIST_USER_POLICIES, + [], + plugins, + ) + + @_overload + def list_users( + self, + request: _models.ListUsersInput | _models.ListUsersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListUsersOutput: ... + + @_overload def list_users( - self, input: ListUsersInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListUsersInputDict], ) -> ListUsersOutput: """ Lists the IAM users that have the specified path prefix. If no path @@ -4814,8 +7251,6 @@ def list_users( parameters. Args: - input: - An instance of `ListUsersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4825,10 +7260,33 @@ def list_users( Returns: An instance of `ListUsersOutput`. """ - return self._invoke(input, _models.LIST_USERS, [], plugins) + def list_users( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListUsersOutput: + return self._invoke( + self._select_input(_models.LIST_USERS, args, kwargs), + _models.LIST_USERS, + [], + plugins, + ) + + @_overload + def list_user_tags( + self, + request: _models.ListUserTagsInput | _models.ListUserTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListUserTagsOutput: ... + + @_overload def list_user_tags( - self, input: ListUserTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListUserTagsInputDict], ) -> ListUserTagsOutput: """ Lists the tags that are attached to the specified IAM user. The returned @@ -4838,8 +7296,6 @@ def list_user_tags( in the *IAM User Guide*. Args: - input: - An instance of `ListUserTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4849,12 +7305,34 @@ def list_user_tags( Returns: An instance of `ListUserTagsOutput`. """ - return self._invoke(input, _models.LIST_USER_TAGS, [], plugins) + def list_user_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListUserTagsOutput: + return self._invoke( + self._select_input(_models.LIST_USER_TAGS, args, kwargs), + _models.LIST_USER_TAGS, + [], + plugins, + ) + + @_overload def list_virtual_mfa_devices( self, - input: ListVirtualMFADevicesInput | None = None, + request: _models.ListVirtualMFADevicesInput + | _models.ListVirtualMFADevicesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListVirtualMFADevicesOutput: ... + + @_overload + def list_virtual_mfa_devices( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVirtualMFADevicesInputDict], ) -> ListVirtualMFADevicesOutput: """ Lists the virtual MFA devices defined in the Amazon Web Services account @@ -4873,8 +7351,6 @@ def list_virtual_mfa_devices( parameters. Args: - input: - An instance of `ListVirtualMFADevicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4884,10 +7360,34 @@ def list_virtual_mfa_devices( Returns: An instance of `ListVirtualMFADevicesOutput`. """ - return self._invoke(input, _models.LIST_VIRTUAL_MFA_DEVICES, [], plugins) + def list_virtual_mfa_devices( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVirtualMFADevicesOutput: + return self._invoke( + self._select_input(_models.LIST_VIRTUAL_MFA_DEVICES, args, kwargs), + _models.LIST_VIRTUAL_MFA_DEVICES, + [], + plugins, + ) + + @_overload + def put_account_properties( + self, + request: _models.PutAccountPropertiesInput + | _models.PutAccountPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutAccountPropertiesOutput: ... + + @_overload def put_account_properties( - self, input: PutAccountPropertiesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutAccountPropertiesInputDict], ) -> PutAccountPropertiesOutput: """ Sets account-level properties for the caller's Amazon Web Services @@ -4901,8 +7401,6 @@ def put_account_properties( to view the current properties. Args: - input: - An instance of `PutAccountPropertiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4912,10 +7410,33 @@ def put_account_properties( Returns: An instance of `PutAccountPropertiesOutput`. """ - return self._invoke(input, _models.PUT_ACCOUNT_PROPERTIES, [], plugins) + def put_account_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutAccountPropertiesOutput: + return self._invoke( + self._select_input(_models.PUT_ACCOUNT_PROPERTIES, args, kwargs), + _models.PUT_ACCOUNT_PROPERTIES, + [], + plugins, + ) + + @_overload def put_group_policy( - self, input: PutGroupPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutGroupPolicyInput | _models.PutGroupPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutGroupPolicyOutput: ... + + @_overload + def put_group_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutGroupPolicyInputDict], ) -> PutGroupPolicyOutput: """ Adds or updates an inline policy document that is embedded in the @@ -4943,8 +7464,6 @@ def put_group_policy( in the *IAM User Guide*. Args: - input: - An instance of `PutGroupPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4954,12 +7473,34 @@ def put_group_policy( Returns: An instance of `PutGroupPolicyOutput`. """ - return self._invoke(input, _models.PUT_GROUP_POLICY, [], plugins) + def put_group_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutGroupPolicyOutput: + return self._invoke( + self._select_input(_models.PUT_GROUP_POLICY, args, kwargs), + _models.PUT_GROUP_POLICY, + [], + plugins, + ) + + @_overload + def put_role_permissions_boundary( + self, + request: _models.PutRolePermissionsBoundaryInput + | _models.PutRolePermissionsBoundaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRolePermissionsBoundaryOutput: ... + + @_overload def put_role_permissions_boundary( self, - input: PutRolePermissionsBoundaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRolePermissionsBoundaryInputDict], ) -> PutRolePermissionsBoundaryOutput: """ Adds or updates the policy that is specified as the IAM role's @@ -4980,8 +7521,6 @@ def put_role_permissions_boundary( in the IAM User Guide. Args: - input: - An instance of `PutRolePermissionsBoundaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4991,10 +7530,33 @@ def put_role_permissions_boundary( Returns: An instance of `PutRolePermissionsBoundaryOutput`. """ - return self._invoke(input, _models.PUT_ROLE_PERMISSIONS_BOUNDARY, [], plugins) + def put_role_permissions_boundary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRolePermissionsBoundaryOutput: + return self._invoke( + self._select_input(_models.PUT_ROLE_PERMISSIONS_BOUNDARY, args, kwargs), + _models.PUT_ROLE_PERMISSIONS_BOUNDARY, + [], + plugins, + ) + + @_overload def put_role_policy( - self, input: PutRolePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutRolePolicyInput | _models.PutRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRolePolicyOutput: ... + + @_overload + def put_role_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRolePolicyInputDict], ) -> PutRolePolicyOutput: """ Adds or updates an inline policy document that is embedded in the @@ -5032,8 +7594,6 @@ def put_role_policy( in the *IAM User Guide*. Args: - input: - An instance of `PutRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5043,12 +7603,34 @@ def put_role_policy( Returns: An instance of `PutRolePolicyOutput`. """ - return self._invoke(input, _models.PUT_ROLE_POLICY, [], plugins) + def put_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRolePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_ROLE_POLICY, args, kwargs), + _models.PUT_ROLE_POLICY, + [], + plugins, + ) + + @_overload + def put_user_permissions_boundary( + self, + request: _models.PutUserPermissionsBoundaryInput + | _models.PutUserPermissionsBoundaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutUserPermissionsBoundaryOutput: ... + + @_overload def put_user_permissions_boundary( self, - input: PutUserPermissionsBoundaryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutUserPermissionsBoundaryInputDict], ) -> PutUserPermissionsBoundaryOutput: """ Adds or updates the policy that is specified as the IAM user's @@ -5067,8 +7649,6 @@ def put_user_permissions_boundary( in the IAM User Guide. Args: - input: - An instance of `PutUserPermissionsBoundaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5078,10 +7658,33 @@ def put_user_permissions_boundary( Returns: An instance of `PutUserPermissionsBoundaryOutput`. """ - return self._invoke(input, _models.PUT_USER_PERMISSIONS_BOUNDARY, [], plugins) + def put_user_permissions_boundary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutUserPermissionsBoundaryOutput: + return self._invoke( + self._select_input(_models.PUT_USER_PERMISSIONS_BOUNDARY, args, kwargs), + _models.PUT_USER_PERMISSIONS_BOUNDARY, + [], + plugins, + ) + + @_overload def put_user_policy( - self, input: PutUserPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutUserPolicyInput | _models.PutUserPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutUserPolicyOutput: ... + + @_overload + def put_user_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutUserPolicyInputDict], ) -> PutUserPolicyOutput: """ Adds or updates an inline policy document that is embedded in the @@ -5109,8 +7712,6 @@ def put_user_policy( in the *IAM User Guide*. Args: - input: - An instance of `PutUserPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5120,10 +7721,34 @@ def put_user_policy( Returns: An instance of `PutUserPolicyOutput`. """ - return self._invoke(input, _models.PUT_USER_POLICY, [], plugins) + def put_user_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutUserPolicyOutput: + return self._invoke( + self._select_input(_models.PUT_USER_POLICY, args, kwargs), + _models.PUT_USER_POLICY, + [], + plugins, + ) + + @_overload + def reject_delegation_request( + self, + request: _models.RejectDelegationRequestInput + | _models.RejectDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RejectDelegationRequestOutput: ... + + @_overload def reject_delegation_request( - self, input: RejectDelegationRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RejectDelegationRequestInputDict], ) -> RejectDelegationRequestOutput: """ Rejects a delegation request, denying the requested temporary access. @@ -5138,8 +7763,6 @@ def reject_delegation_request( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `RejectDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5149,12 +7772,34 @@ def reject_delegation_request( Returns: An instance of `RejectDelegationRequestOutput`. """ - return self._invoke(input, _models.REJECT_DELEGATION_REQUEST, [], plugins) + def reject_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RejectDelegationRequestOutput: + return self._invoke( + self._select_input(_models.REJECT_DELEGATION_REQUEST, args, kwargs), + _models.REJECT_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + def remove_client_id_from_open_id_connect_provider( + self, + request: _models.RemoveClientIDFromOpenIDConnectProviderInput + | _models.RemoveClientIDFromOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveClientIDFromOpenIDConnectProviderOutput: ... + + @_overload def remove_client_id_from_open_id_connect_provider( self, - input: RemoveClientIDFromOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveClientIDFromOpenIDConnectProviderInputDict], ) -> RemoveClientIDFromOpenIDConnectProviderOutput: """ Removes the specified client ID (also known as audience) from the list @@ -5165,8 +7810,6 @@ def remove_client_id_from_open_id_connect_provider( try to remove a client ID that does not exist. Args: - input: - An instance of `RemoveClientIDFromOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5176,14 +7819,36 @@ def remove_client_id_from_open_id_connect_provider( Returns: An instance of `RemoveClientIDFromOpenIDConnectProviderOutput`. """ + + def remove_client_id_from_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveClientIDFromOpenIDConnectProviderOutput: return self._invoke( - input, _models.REMOVE_CLIENT_ID_FROM_OPEN_ID_CONNECT_PROVIDER, [], plugins + self._select_input( + _models.REMOVE_CLIENT_ID_FROM_OPEN_ID_CONNECT_PROVIDER, args, kwargs + ), + _models.REMOVE_CLIENT_ID_FROM_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, ) + @_overload + def remove_role_from_instance_profile( + self, + request: _models.RemoveRoleFromInstanceProfileInput + | _models.RemoveRoleFromInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveRoleFromInstanceProfileOutput: ... + + @_overload def remove_role_from_instance_profile( self, - input: RemoveRoleFromInstanceProfileInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveRoleFromInstanceProfileInputDict], ) -> RemoveRoleFromInstanceProfileOutput: """ Removes the specified IAM role from the specified Amazon EC2 instance @@ -5203,8 +7868,6 @@ def remove_role_from_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `RemoveRoleFromInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5214,19 +7877,39 @@ def remove_role_from_instance_profile( Returns: An instance of `RemoveRoleFromInstanceProfileOutput`. """ + + def remove_role_from_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveRoleFromInstanceProfileOutput: return self._invoke( - input, _models.REMOVE_ROLE_FROM_INSTANCE_PROFILE, [], plugins + self._select_input(_models.REMOVE_ROLE_FROM_INSTANCE_PROFILE, args, kwargs), + _models.REMOVE_ROLE_FROM_INSTANCE_PROFILE, + [], + plugins, ) + @_overload + def remove_user_from_group( + self, + request: _models.RemoveUserFromGroupInput + | _models.RemoveUserFromGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveUserFromGroupOutput: ... + + @_overload def remove_user_from_group( - self, input: RemoveUserFromGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveUserFromGroupInputDict], ) -> RemoveUserFromGroupOutput: """ Removes the specified user from the specified group. Args: - input: - An instance of `RemoveUserFromGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5236,12 +7919,34 @@ def remove_user_from_group( Returns: An instance of `RemoveUserFromGroupOutput`. """ - return self._invoke(input, _models.REMOVE_USER_FROM_GROUP, [], plugins) + def remove_user_from_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveUserFromGroupOutput: + return self._invoke( + self._select_input(_models.REMOVE_USER_FROM_GROUP, args, kwargs), + _models.REMOVE_USER_FROM_GROUP, + [], + plugins, + ) + + @_overload + def reset_service_specific_credential( + self, + request: _models.ResetServiceSpecificCredentialInput + | _models.ResetServiceSpecificCredentialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetServiceSpecificCredentialOutput: ... + + @_overload def reset_service_specific_credential( self, - input: ResetServiceSpecificCredentialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetServiceSpecificCredentialInputDict], ) -> ResetServiceSpecificCredentialOutput: """ Resets the password for a service-specific credential. The new password @@ -5250,8 +7955,6 @@ def reset_service_specific_credential( invalidates the previous password associated with this user. Args: - input: - An instance of `ResetServiceSpecificCredentialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5261,12 +7964,33 @@ def reset_service_specific_credential( Returns: An instance of `ResetServiceSpecificCredentialOutput`. """ + + def reset_service_specific_credential( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetServiceSpecificCredentialOutput: return self._invoke( - input, _models.RESET_SERVICE_SPECIFIC_CREDENTIAL, [], plugins + self._select_input(_models.RESET_SERVICE_SPECIFIC_CREDENTIAL, args, kwargs), + _models.RESET_SERVICE_SPECIFIC_CREDENTIAL, + [], + plugins, ) + @_overload + def resync_mfa_device( + self, + request: _models.ResyncMFADeviceInput | _models.ResyncMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResyncMFADeviceOutput: ... + + @_overload def resync_mfa_device( - self, input: ResyncMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResyncMFADeviceInputDict], ) -> ResyncMFADeviceOutput: """ Synchronizes the specified MFA device with its IAM resource object on @@ -5278,8 +8002,6 @@ def resync_mfa_device( in the *IAM User Guide*. Args: - input: - An instance of `ResyncMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5289,10 +8011,34 @@ def resync_mfa_device( Returns: An instance of `ResyncMFADeviceOutput`. """ - return self._invoke(input, _models.RESYNC_MFA_DEVICE, [], plugins) + def resync_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResyncMFADeviceOutput: + return self._invoke( + self._select_input(_models.RESYNC_MFA_DEVICE, args, kwargs), + _models.RESYNC_MFA_DEVICE, + [], + plugins, + ) + + @_overload + def send_delegation_token( + self, + request: _models.SendDelegationTokenInput + | _models.SendDelegationTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendDelegationTokenOutput: ... + + @_overload def send_delegation_token( - self, input: SendDelegationTokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDelegationTokenInputDict], ) -> SendDelegationTokenOutput: """ Sends the exchange token for an accepted delegation request. @@ -5310,8 +8056,6 @@ def send_delegation_token( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `SendDelegationTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5321,10 +8065,34 @@ def send_delegation_token( Returns: An instance of `SendDelegationTokenOutput`. """ - return self._invoke(input, _models.SEND_DELEGATION_TOKEN, [], plugins) + def send_delegation_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDelegationTokenOutput: + return self._invoke( + self._select_input(_models.SEND_DELEGATION_TOKEN, args, kwargs), + _models.SEND_DELEGATION_TOKEN, + [], + plugins, + ) + + @_overload + def set_default_policy_version( + self, + request: _models.SetDefaultPolicyVersionInput + | _models.SetDefaultPolicyVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetDefaultPolicyVersionOutput: ... + + @_overload def set_default_policy_version( - self, input: SetDefaultPolicyVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetDefaultPolicyVersionInputDict], ) -> SetDefaultPolicyVersionOutput: """ Sets the specified version of the specified policy as the policy's @@ -5340,8 +8108,6 @@ def set_default_policy_version( in the *IAM User Guide*. Args: - input: - An instance of `SetDefaultPolicyVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5351,12 +8117,34 @@ def set_default_policy_version( Returns: An instance of `SetDefaultPolicyVersionOutput`. """ - return self._invoke(input, _models.SET_DEFAULT_POLICY_VERSION, [], plugins) + def set_default_policy_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetDefaultPolicyVersionOutput: + return self._invoke( + self._select_input(_models.SET_DEFAULT_POLICY_VERSION, args, kwargs), + _models.SET_DEFAULT_POLICY_VERSION, + [], + plugins, + ) + + @_overload + def set_security_token_service_preferences( + self, + request: _models.SetSecurityTokenServicePreferencesInput + | _models.SetSecurityTokenServicePreferencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetSecurityTokenServicePreferencesOutput: ... + + @_overload def set_security_token_service_preferences( self, - input: SetSecurityTokenServicePreferencesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetSecurityTokenServicePreferencesInputDict], ) -> SetSecurityTokenServicePreferencesOutput: """ Sets the specified version of the global endpoint token as the token @@ -5389,8 +8177,6 @@ def set_security_token_service_preferences( operation. Args: - input: - An instance of `SetSecurityTokenServicePreferencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5400,12 +8186,36 @@ def set_security_token_service_preferences( Returns: An instance of `SetSecurityTokenServicePreferencesOutput`. """ + + def set_security_token_service_preferences( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetSecurityTokenServicePreferencesOutput: return self._invoke( - input, _models.SET_SECURITY_TOKEN_SERVICE_PREFERENCES, [], plugins + self._select_input( + _models.SET_SECURITY_TOKEN_SERVICE_PREFERENCES, args, kwargs + ), + _models.SET_SECURITY_TOKEN_SERVICE_PREFERENCES, + [], + plugins, ) + @_overload + def simulate_custom_policy( + self, + request: _models.SimulateCustomPolicyInput + | _models.SimulateCustomPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SimulateCustomPolicyOutput: ... + + @_overload def simulate_custom_policy( - self, input: SimulateCustomPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SimulateCustomPolicyInputDict], ) -> SimulateCustomPolicyOutput: """ Simulate how a set of IAM policies and optionally a resource-based @@ -5447,8 +8257,6 @@ def simulate_custom_policy( in the *IAM User Guide*. Args: - input: - An instance of `SimulateCustomPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5458,10 +8266,34 @@ def simulate_custom_policy( Returns: An instance of `SimulateCustomPolicyOutput`. """ - return self._invoke(input, _models.SIMULATE_CUSTOM_POLICY, [], plugins) + def simulate_custom_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SimulateCustomPolicyOutput: + return self._invoke( + self._select_input(_models.SIMULATE_CUSTOM_POLICY, args, kwargs), + _models.SIMULATE_CUSTOM_POLICY, + [], + plugins, + ) + + @_overload + def simulate_principal_policy( + self, + request: _models.SimulatePrincipalPolicyInput + | _models.SimulatePrincipalPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SimulatePrincipalPolicyOutput: ... + + @_overload def simulate_principal_policy( - self, input: SimulatePrincipalPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SimulatePrincipalPolicyInputDict], ) -> SimulatePrincipalPolicyOutput: """ Simulate how a set of IAM policies attached to an IAM entity works with @@ -5521,8 +8353,6 @@ def simulate_principal_policy( in the *IAM User Guide*. Args: - input: - An instance of `SimulatePrincipalPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5532,10 +8362,33 @@ def simulate_principal_policy( Returns: An instance of `SimulatePrincipalPolicyOutput`. """ - return self._invoke(input, _models.SIMULATE_PRINCIPAL_POLICY, [], plugins) + def simulate_principal_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SimulatePrincipalPolicyOutput: + return self._invoke( + self._select_input(_models.SIMULATE_PRINCIPAL_POLICY, args, kwargs), + _models.SIMULATE_PRINCIPAL_POLICY, + [], + plugins, + ) + + @_overload + def tag_instance_profile( + self, + request: _models.TagInstanceProfileInput | _models.TagInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagInstanceProfileOutput: ... + + @_overload def tag_instance_profile( - self, input: TagInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagInstanceProfileInputDict], ) -> TagInstanceProfileOutput: """ Adds one or more tags to an IAM instance profile. If a tag with the same @@ -5572,8 +8425,6 @@ def tag_instance_profile( code. Args: - input: - An instance of `TagInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5583,10 +8434,33 @@ def tag_instance_profile( Returns: An instance of `TagInstanceProfileOutput`. """ - return self._invoke(input, _models.TAG_INSTANCE_PROFILE, [], plugins) + def tag_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagInstanceProfileOutput: + return self._invoke( + self._select_input(_models.TAG_INSTANCE_PROFILE, args, kwargs), + _models.TAG_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + def tag_mfa_device( + self, + request: _models.TagMFADeviceInput | _models.TagMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagMFADeviceOutput: ... + + @_overload def tag_mfa_device( - self, input: TagMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagMFADeviceInputDict], ) -> TagMFADeviceOutput: """ Adds one or more tags to an IAM virtual multi-factor authentication @@ -5623,8 +8497,6 @@ def tag_mfa_device( code. Args: - input: - An instance of `TagMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5634,10 +8506,34 @@ def tag_mfa_device( Returns: An instance of `TagMFADeviceOutput`. """ - return self._invoke(input, _models.TAG_MFA_DEVICE, [], plugins) + def tag_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagMFADeviceOutput: + return self._invoke( + self._select_input(_models.TAG_MFA_DEVICE, args, kwargs), + _models.TAG_MFA_DEVICE, + [], + plugins, + ) + + @_overload + def tag_open_id_connect_provider( + self, + request: _models.TagOpenIDConnectProviderInput + | _models.TagOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagOpenIDConnectProviderOutput: ... + + @_overload def tag_open_id_connect_provider( - self, input: TagOpenIDConnectProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagOpenIDConnectProviderInputDict], ) -> TagOpenIDConnectProviderOutput: """ Adds one or more tags to an OpenID Connect (OIDC)-compatible identity @@ -5677,8 +8573,6 @@ def tag_open_id_connect_provider( code. Args: - input: - An instance of `TagOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5688,10 +8582,33 @@ def tag_open_id_connect_provider( Returns: An instance of `TagOpenIDConnectProviderOutput`. """ - return self._invoke(input, _models.TAG_OPEN_ID_CONNECT_PROVIDER, [], plugins) + def tag_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagOpenIDConnectProviderOutput: + return self._invoke( + self._select_input(_models.TAG_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.TAG_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, + ) + + @_overload + def tag_policy( + self, + request: _models.TagPolicyInput | _models.TagPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagPolicyOutput: ... + + @_overload def tag_policy( - self, input: TagPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagPolicyInputDict], ) -> TagPolicyOutput: """ Adds one or more tags to an IAM customer managed policy. If a tag with @@ -5728,8 +8645,6 @@ def tag_policy( code. Args: - input: - An instance of `TagPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5739,10 +8654,33 @@ def tag_policy( Returns: An instance of `TagPolicyOutput`. """ - return self._invoke(input, _models.TAG_POLICY, [], plugins) + def tag_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagPolicyOutput: + return self._invoke( + self._select_input(_models.TAG_POLICY, args, kwargs), + _models.TAG_POLICY, + [], + plugins, + ) + + @_overload def tag_role( - self, input: TagRoleInput, plugins: list[Plugin] | None = None + self, + request: _models.TagRoleInput | _models.TagRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagRoleOutput: ... + + @_overload + def tag_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagRoleInputDict], ) -> TagRoleOutput: """ Adds one or more tags to an IAM role. The role can be a regular role or @@ -5787,8 +8725,6 @@ def tag_role( in the *IAM User Guide*. Args: - input: - An instance of `TagRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5798,10 +8734,33 @@ def tag_role( Returns: An instance of `TagRoleOutput`. """ - return self._invoke(input, _models.TAG_ROLE, [], plugins) + def tag_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagRoleOutput: + return self._invoke( + self._select_input(_models.TAG_ROLE, args, kwargs), + _models.TAG_ROLE, + [], + plugins, + ) + + @_overload + def tag_saml_provider( + self, + request: _models.TagSAMLProviderInput | _models.TagSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagSAMLProviderOutput: ... + + @_overload def tag_saml_provider( - self, input: TagSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagSAMLProviderInputDict], ) -> TagSAMLProviderOutput: """ Adds one or more tags to a Security Assertion Markup Language (SAML) @@ -5841,8 +8800,6 @@ def tag_saml_provider( code. Args: - input: - An instance of `TagSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5852,10 +8809,34 @@ def tag_saml_provider( Returns: An instance of `TagSAMLProviderOutput`. """ - return self._invoke(input, _models.TAG_SAML_PROVIDER, [], plugins) + def tag_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagSAMLProviderOutput: + return self._invoke( + self._select_input(_models.TAG_SAML_PROVIDER, args, kwargs), + _models.TAG_SAML_PROVIDER, + [], + plugins, + ) + + @_overload + def tag_server_certificate( + self, + request: _models.TagServerCertificateInput + | _models.TagServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagServerCertificateOutput: ... + + @_overload def tag_server_certificate( - self, input: TagServerCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagServerCertificateInputDict], ) -> TagServerCertificateOutput: """ Adds one or more tags to an IAM server certificate. If a tag with the @@ -5903,8 +8884,6 @@ def tag_server_certificate( code. Args: - input: - An instance of `TagServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5914,10 +8893,33 @@ def tag_server_certificate( Returns: An instance of `TagServerCertificateOutput`. """ - return self._invoke(input, _models.TAG_SERVER_CERTIFICATE, [], plugins) + def tag_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagServerCertificateOutput: + return self._invoke( + self._select_input(_models.TAG_SERVER_CERTIFICATE, args, kwargs), + _models.TAG_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + def tag_user( + self, + request: _models.TagUserInput | _models.TagUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagUserOutput: ... + + @_overload def tag_user( - self, input: TagUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagUserInputDict], ) -> TagUserOutput: """ Adds one or more tags to an IAM user. If a tag with the same key name @@ -5961,8 +8963,6 @@ def tag_user( in the *IAM User Guide*. Args: - input: - An instance of `TagUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5972,10 +8972,34 @@ def tag_user( Returns: An instance of `TagUserOutput`. """ - return self._invoke(input, _models.TAG_USER, [], plugins) + def tag_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagUserOutput: + return self._invoke( + self._select_input(_models.TAG_USER, args, kwargs), + _models.TAG_USER, + [], + plugins, + ) + + @_overload + def untag_instance_profile( + self, + request: _models.UntagInstanceProfileInput + | _models.UntagInstanceProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagInstanceProfileOutput: ... + + @_overload def untag_instance_profile( - self, input: UntagInstanceProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagInstanceProfileInputDict], ) -> UntagInstanceProfileOutput: """ Removes the specified tags from the IAM instance profile. For more @@ -5984,8 +9008,6 @@ def untag_instance_profile( in the *IAM User Guide*. Args: - input: - An instance of `UntagInstanceProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5995,10 +9017,33 @@ def untag_instance_profile( Returns: An instance of `UntagInstanceProfileOutput`. """ - return self._invoke(input, _models.UNTAG_INSTANCE_PROFILE, [], plugins) + def untag_instance_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagInstanceProfileOutput: + return self._invoke( + self._select_input(_models.UNTAG_INSTANCE_PROFILE, args, kwargs), + _models.UNTAG_INSTANCE_PROFILE, + [], + plugins, + ) + + @_overload + def untag_mfa_device( + self, + request: _models.UntagMFADeviceInput | _models.UntagMFADeviceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagMFADeviceOutput: ... + + @_overload def untag_mfa_device( - self, input: UntagMFADeviceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagMFADeviceInputDict], ) -> UntagMFADeviceOutput: """ Removes the specified tags from the IAM virtual multi-factor @@ -6008,8 +9053,6 @@ def untag_mfa_device( in the *IAM User Guide*. Args: - input: - An instance of `UntagMFADeviceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6019,12 +9062,34 @@ def untag_mfa_device( Returns: An instance of `UntagMFADeviceOutput`. """ - return self._invoke(input, _models.UNTAG_MFA_DEVICE, [], plugins) + def untag_mfa_device( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagMFADeviceOutput: + return self._invoke( + self._select_input(_models.UNTAG_MFA_DEVICE, args, kwargs), + _models.UNTAG_MFA_DEVICE, + [], + plugins, + ) + + @_overload + def untag_open_id_connect_provider( + self, + request: _models.UntagOpenIDConnectProviderInput + | _models.UntagOpenIDConnectProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagOpenIDConnectProviderOutput: ... + + @_overload def untag_open_id_connect_provider( self, - input: UntagOpenIDConnectProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagOpenIDConnectProviderInputDict], ) -> UntagOpenIDConnectProviderOutput: """ Removes the specified tags from the specified OpenID Connect @@ -6036,8 +9101,6 @@ def untag_open_id_connect_provider( in the *IAM User Guide*. Args: - input: - An instance of `UntagOpenIDConnectProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6047,10 +9110,33 @@ def untag_open_id_connect_provider( Returns: An instance of `UntagOpenIDConnectProviderOutput`. """ - return self._invoke(input, _models.UNTAG_OPEN_ID_CONNECT_PROVIDER, [], plugins) + def untag_open_id_connect_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagOpenIDConnectProviderOutput: + return self._invoke( + self._select_input(_models.UNTAG_OPEN_ID_CONNECT_PROVIDER, args, kwargs), + _models.UNTAG_OPEN_ID_CONNECT_PROVIDER, + [], + plugins, + ) + + @_overload + def untag_policy( + self, + request: _models.UntagPolicyInput | _models.UntagPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagPolicyOutput: ... + + @_overload def untag_policy( - self, input: UntagPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagPolicyInputDict], ) -> UntagPolicyOutput: """ Removes the specified tags from the customer managed policy. For more @@ -6059,8 +9145,6 @@ def untag_policy( in the *IAM User Guide*. Args: - input: - An instance of `UntagPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6070,10 +9154,33 @@ def untag_policy( Returns: An instance of `UntagPolicyOutput`. """ - return self._invoke(input, _models.UNTAG_POLICY, [], plugins) + def untag_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagPolicyOutput: + return self._invoke( + self._select_input(_models.UNTAG_POLICY, args, kwargs), + _models.UNTAG_POLICY, + [], + plugins, + ) + + @_overload + def untag_role( + self, + request: _models.UntagRoleInput | _models.UntagRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagRoleOutput: ... + + @_overload def untag_role( - self, input: UntagRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagRoleInputDict], ) -> UntagRoleOutput: """ Removes the specified tags from the role. For more information about @@ -6082,8 +9189,6 @@ def untag_role( in the *IAM User Guide*. Args: - input: - An instance of `UntagRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6093,10 +9198,33 @@ def untag_role( Returns: An instance of `UntagRoleOutput`. """ - return self._invoke(input, _models.UNTAG_ROLE, [], plugins) + def untag_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagRoleOutput: + return self._invoke( + self._select_input(_models.UNTAG_ROLE, args, kwargs), + _models.UNTAG_ROLE, + [], + plugins, + ) + + @_overload + def untag_saml_provider( + self, + request: _models.UntagSAMLProviderInput | _models.UntagSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagSAMLProviderOutput: ... + + @_overload def untag_saml_provider( - self, input: UntagSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagSAMLProviderInputDict], ) -> UntagSAMLProviderOutput: """ Removes the specified tags from the specified Security Assertion Markup @@ -6108,21 +9236,43 @@ def untag_saml_provider( in the *IAM User Guide*. Args: - input: - An instance of `UntagSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `UntagSAMLProviderOutput`. - """ - return self._invoke(input, _models.UNTAG_SAML_PROVIDER, [], plugins) + Returns: + An instance of `UntagSAMLProviderOutput`. + """ + + def untag_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagSAMLProviderOutput: + return self._invoke( + self._select_input(_models.UNTAG_SAML_PROVIDER, args, kwargs), + _models.UNTAG_SAML_PROVIDER, + [], + plugins, + ) + + @_overload + def untag_server_certificate( + self, + request: _models.UntagServerCertificateInput + | _models.UntagServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagServerCertificateOutput: ... + @_overload def untag_server_certificate( - self, input: UntagServerCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagServerCertificateInputDict], ) -> UntagServerCertificateOutput: """ Removes the specified tags from the IAM server certificate. For more @@ -6139,8 +9289,6 @@ def untag_server_certificate( in the *IAM User Guide*. Args: - input: - An instance of `UntagServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6150,10 +9298,33 @@ def untag_server_certificate( Returns: An instance of `UntagServerCertificateOutput`. """ - return self._invoke(input, _models.UNTAG_SERVER_CERTIFICATE, [], plugins) + def untag_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagServerCertificateOutput: + return self._invoke( + self._select_input(_models.UNTAG_SERVER_CERTIFICATE, args, kwargs), + _models.UNTAG_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + def untag_user( + self, + request: _models.UntagUserInput | _models.UntagUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagUserOutput: ... + + @_overload def untag_user( - self, input: UntagUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagUserInputDict], ) -> UntagUserOutput: """ Removes the specified tags from the user. For more information about @@ -6162,8 +9333,6 @@ def untag_user( in the *IAM User Guide*. Args: - input: - An instance of `UntagUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6173,10 +9342,33 @@ def untag_user( Returns: An instance of `UntagUserOutput`. """ - return self._invoke(input, _models.UNTAG_USER, [], plugins) + def untag_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagUserOutput: + return self._invoke( + self._select_input(_models.UNTAG_USER, args, kwargs), + _models.UNTAG_USER, + [], + plugins, + ) + + @_overload def update_access_key( - self, input: UpdateAccessKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateAccessKeyInput | _models.UpdateAccessKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAccessKeyOutput: ... + + @_overload + def update_access_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAccessKeyInputDict], ) -> UpdateAccessKeyOutput: """ Changes the status of the specified access key from Active to Inactive, @@ -6197,8 +9389,6 @@ def update_access_key( in the *IAM User Guide*. Args: - input: - An instance of `UpdateAccessKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6208,12 +9398,34 @@ def update_access_key( Returns: An instance of `UpdateAccessKeyOutput`. """ - return self._invoke(input, _models.UPDATE_ACCESS_KEY, [], plugins) + def update_access_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAccessKeyOutput: + return self._invoke( + self._select_input(_models.UPDATE_ACCESS_KEY, args, kwargs), + _models.UPDATE_ACCESS_KEY, + [], + plugins, + ) + + @_overload + def update_account_password_policy( + self, + request: _models.UpdateAccountPasswordPolicyInput + | _models.UpdateAccountPasswordPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAccountPasswordPolicyOutput: ... + + @_overload def update_account_password_policy( self, - input: UpdateAccountPasswordPolicyInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAccountPasswordPolicyInputDict], ) -> UpdateAccountPasswordPolicyOutput: """ Updates the password policy settings for the Amazon Web Services @@ -6234,8 +9446,6 @@ def update_account_password_policy( in the *IAM User Guide*. Args: - input: - An instance of `UpdateAccountPasswordPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6245,10 +9455,34 @@ def update_account_password_policy( Returns: An instance of `UpdateAccountPasswordPolicyOutput`. """ - return self._invoke(input, _models.UPDATE_ACCOUNT_PASSWORD_POLICY, [], plugins) + def update_account_password_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAccountPasswordPolicyOutput: + return self._invoke( + self._select_input(_models.UPDATE_ACCOUNT_PASSWORD_POLICY, args, kwargs), + _models.UPDATE_ACCOUNT_PASSWORD_POLICY, + [], + plugins, + ) + + @_overload def update_assume_role_policy( - self, input: UpdateAssumeRolePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateAssumeRolePolicyInput + | _models.UpdateAssumeRolePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAssumeRolePolicyOutput: ... + + @_overload + def update_assume_role_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAssumeRolePolicyInputDict], ) -> UpdateAssumeRolePolicyOutput: """ Updates the policy that grants an IAM entity permission to assume a @@ -6258,8 +9492,6 @@ def update_assume_role_policy( identities](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). Args: - input: - An instance of `UpdateAssumeRolePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6269,10 +9501,34 @@ def update_assume_role_policy( Returns: An instance of `UpdateAssumeRolePolicyOutput`. """ - return self._invoke(input, _models.UPDATE_ASSUME_ROLE_POLICY, [], plugins) + def update_assume_role_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAssumeRolePolicyOutput: + return self._invoke( + self._select_input(_models.UPDATE_ASSUME_ROLE_POLICY, args, kwargs), + _models.UPDATE_ASSUME_ROLE_POLICY, + [], + plugins, + ) + + @_overload + def update_delegation_request( + self, + request: _models.UpdateDelegationRequestInput + | _models.UpdateDelegationRequestInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDelegationRequestOutput: ... + + @_overload def update_delegation_request( - self, input: UpdateDelegationRequestInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDelegationRequestInputDict], ) -> UpdateDelegationRequestOutput: """ Updates an existing delegation request with additional information. When @@ -6285,8 +9541,6 @@ def update_delegation_request( Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions). Args: - input: - An instance of `UpdateDelegationRequestInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6296,10 +9550,33 @@ def update_delegation_request( Returns: An instance of `UpdateDelegationRequestOutput`. """ - return self._invoke(input, _models.UPDATE_DELEGATION_REQUEST, [], plugins) + def update_delegation_request( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDelegationRequestOutput: + return self._invoke( + self._select_input(_models.UPDATE_DELEGATION_REQUEST, args, kwargs), + _models.UPDATE_DELEGATION_REQUEST, + [], + plugins, + ) + + @_overload + def update_group( + self, + request: _models.UpdateGroupInput | _models.UpdateGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateGroupOutput: ... + + @_overload def update_group( - self, input: UpdateGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateGroupInputDict], ) -> UpdateGroupOutput: """ Updates the name and/or the path of the specified IAM group. @@ -6320,8 +9597,6 @@ def update_group( management](https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html). Args: - input: - An instance of `UpdateGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6331,10 +9606,33 @@ def update_group( Returns: An instance of `UpdateGroupOutput`. """ - return self._invoke(input, _models.UPDATE_GROUP, [], plugins) + def update_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateGroupOutput: + return self._invoke( + self._select_input(_models.UPDATE_GROUP, args, kwargs), + _models.UPDATE_GROUP, + [], + plugins, + ) + + @_overload + def update_login_profile( + self, + request: _models.UpdateLoginProfileInput | _models.UpdateLoginProfileInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateLoginProfileOutput: ... + + @_overload def update_login_profile( - self, input: UpdateLoginProfileInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateLoginProfileInputDict], ) -> UpdateLoginProfileOutput: """ Changes the password for the specified IAM user. You can use the CLI, @@ -6349,8 +9647,6 @@ def update_login_profile( in the *IAM User Guide*. Args: - input: - An instance of `UpdateLoginProfileInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6360,12 +9656,34 @@ def update_login_profile( Returns: An instance of `UpdateLoginProfileOutput`. """ - return self._invoke(input, _models.UPDATE_LOGIN_PROFILE, [], plugins) + def update_login_profile( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateLoginProfileOutput: + return self._invoke( + self._select_input(_models.UPDATE_LOGIN_PROFILE, args, kwargs), + _models.UPDATE_LOGIN_PROFILE, + [], + plugins, + ) + + @_overload + def update_open_id_connect_provider_thumbprint( + self, + request: _models.UpdateOpenIDConnectProviderThumbprintInput + | _models.UpdateOpenIDConnectProviderThumbprintInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateOpenIDConnectProviderThumbprintOutput: ... + + @_overload def update_open_id_connect_provider_thumbprint( self, - input: UpdateOpenIDConnectProviderThumbprintInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateOpenIDConnectProviderThumbprintInputDict], ) -> UpdateOpenIDConnectProviderThumbprintOutput: """ Replaces the existing list of server certificate thumbprints associated @@ -6395,8 +9713,6 @@ def update_open_id_connect_provider_thumbprint( privileged users. Args: - input: - An instance of `UpdateOpenIDConnectProviderThumbprintInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6406,19 +9722,40 @@ def update_open_id_connect_provider_thumbprint( Returns: An instance of `UpdateOpenIDConnectProviderThumbprintOutput`. """ + + def update_open_id_connect_provider_thumbprint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateOpenIDConnectProviderThumbprintOutput: return self._invoke( - input, _models.UPDATE_OPEN_ID_CONNECT_PROVIDER_THUMBPRINT, [], plugins + self._select_input( + _models.UPDATE_OPEN_ID_CONNECT_PROVIDER_THUMBPRINT, args, kwargs + ), + _models.UPDATE_OPEN_ID_CONNECT_PROVIDER_THUMBPRINT, + [], + plugins, ) + @_overload + def update_role( + self, + request: _models.UpdateRoleInput | _models.UpdateRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRoleOutput: ... + + @_overload def update_role( - self, input: UpdateRoleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRoleInputDict], ) -> UpdateRoleOutput: """ Updates the description or maximum session duration setting of a role. Args: - input: - An instance of `UpdateRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6428,10 +9765,34 @@ def update_role( Returns: An instance of `UpdateRoleOutput`. """ - return self._invoke(input, _models.UPDATE_ROLE, [], plugins) + def update_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRoleOutput: + return self._invoke( + self._select_input(_models.UPDATE_ROLE, args, kwargs), + _models.UPDATE_ROLE, + [], + plugins, + ) + + @_overload + def update_role_description( + self, + request: _models.UpdateRoleDescriptionInput + | _models.UpdateRoleDescriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRoleDescriptionOutput: ... + + @_overload def update_role_description( - self, input: UpdateRoleDescriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRoleDescriptionInputDict], ) -> UpdateRoleDescriptionOutput: """ Use @@ -6443,8 +9804,6 @@ def update_role_description( operation. Args: - input: - An instance of `UpdateRoleDescriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6454,10 +9813,33 @@ def update_role_description( Returns: An instance of `UpdateRoleDescriptionOutput`. """ - return self._invoke(input, _models.UPDATE_ROLE_DESCRIPTION, [], plugins) + def update_role_description( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRoleDescriptionOutput: + return self._invoke( + self._select_input(_models.UPDATE_ROLE_DESCRIPTION, args, kwargs), + _models.UPDATE_ROLE_DESCRIPTION, + [], + plugins, + ) + + @_overload + def update_saml_provider( + self, + request: _models.UpdateSAMLProviderInput | _models.UpdateSAMLProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSAMLProviderOutput: ... + + @_overload def update_saml_provider( - self, input: UpdateSAMLProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSAMLProviderInputDict], ) -> UpdateSAMLProviderOutput: """ Updates the metadata document, SAML encryption settings, and private @@ -6465,8 +9847,6 @@ def update_saml_provider( private key and then remove the old key in a separate request. Args: - input: - An instance of `UpdateSAMLProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6476,10 +9856,34 @@ def update_saml_provider( Returns: An instance of `UpdateSAMLProviderOutput`. """ - return self._invoke(input, _models.UPDATE_SAML_PROVIDER, [], plugins) + def update_saml_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSAMLProviderOutput: + return self._invoke( + self._select_input(_models.UPDATE_SAML_PROVIDER, args, kwargs), + _models.UPDATE_SAML_PROVIDER, + [], + plugins, + ) + + @_overload + def update_server_certificate( + self, + request: _models.UpdateServerCertificateInput + | _models.UpdateServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateServerCertificateOutput: ... + + @_overload def update_server_certificate( - self, input: UpdateServerCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateServerCertificateInputDict], ) -> UpdateServerCertificateOutput: """ Updates the name and/or the path of the specified server certificate @@ -6510,8 +9914,6 @@ def update_server_certificate( in the *IAM User Guide*. Args: - input: - An instance of `UpdateServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6521,12 +9923,34 @@ def update_server_certificate( Returns: An instance of `UpdateServerCertificateOutput`. """ - return self._invoke(input, _models.UPDATE_SERVER_CERTIFICATE, [], plugins) + def update_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateServerCertificateOutput: + return self._invoke( + self._select_input(_models.UPDATE_SERVER_CERTIFICATE, args, kwargs), + _models.UPDATE_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + def update_service_specific_credential( + self, + request: _models.UpdateServiceSpecificCredentialInput + | _models.UpdateServiceSpecificCredentialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateServiceSpecificCredentialOutput: ... + + @_overload def update_service_specific_credential( self, - input: UpdateServiceSpecificCredentialInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateServiceSpecificCredentialInputDict], ) -> UpdateServiceSpecificCredentialOutput: """ Sets the status of a service-specific credential to `Active` or @@ -6536,8 +9960,6 @@ def update_service_specific_credential( rotation work flow. Args: - input: - An instance of `UpdateServiceSpecificCredentialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6547,12 +9969,36 @@ def update_service_specific_credential( Returns: An instance of `UpdateServiceSpecificCredentialOutput`. """ + + def update_service_specific_credential( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateServiceSpecificCredentialOutput: return self._invoke( - input, _models.UPDATE_SERVICE_SPECIFIC_CREDENTIAL, [], plugins + self._select_input( + _models.UPDATE_SERVICE_SPECIFIC_CREDENTIAL, args, kwargs + ), + _models.UPDATE_SERVICE_SPECIFIC_CREDENTIAL, + [], + plugins, ) + @_overload + def update_signing_certificate( + self, + request: _models.UpdateSigningCertificateInput + | _models.UpdateSigningCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSigningCertificateOutput: ... + + @_overload def update_signing_certificate( - self, input: UpdateSigningCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSigningCertificateInputDict], ) -> UpdateSigningCertificateOutput: """ Changes the status of the specified user signing certificate from active @@ -6567,8 +10013,6 @@ def update_signing_certificate( Services account has no associated users. Args: - input: - An instance of `UpdateSigningCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6578,10 +10022,33 @@ def update_signing_certificate( Returns: An instance of `UpdateSigningCertificateOutput`. """ - return self._invoke(input, _models.UPDATE_SIGNING_CERTIFICATE, [], plugins) + def update_signing_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSigningCertificateOutput: + return self._invoke( + self._select_input(_models.UPDATE_SIGNING_CERTIFICATE, args, kwargs), + _models.UPDATE_SIGNING_CERTIFICATE, + [], + plugins, + ) + + @_overload + def update_ssh_public_key( + self, + request: _models.UpdateSSHPublicKeyInput | _models.UpdateSSHPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSSHPublicKeyOutput: ... + + @_overload def update_ssh_public_key( - self, input: UpdateSSHPublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSSHPublicKeyInputDict], ) -> UpdateSSHPublicKeyOutput: """ Sets the status of an IAM user's SSH public key to active or inactive. @@ -6597,8 +10064,6 @@ def update_ssh_public_key( in the *CodeCommit User Guide*. Args: - input: - An instance of `UpdateSSHPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6608,10 +10073,33 @@ def update_ssh_public_key( Returns: An instance of `UpdateSSHPublicKeyOutput`. """ - return self._invoke(input, _models.UPDATE_SSH_PUBLIC_KEY, [], plugins) + def update_ssh_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSSHPublicKeyOutput: + return self._invoke( + self._select_input(_models.UPDATE_SSH_PUBLIC_KEY, args, kwargs), + _models.UPDATE_SSH_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + def update_user( + self, + request: _models.UpdateUserInput | _models.UpdateUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateUserOutput: ... + + @_overload def update_user( - self, input: UpdateUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateUserInputDict], ) -> UpdateUserOutput: """ Updates the name and/or the path of the specified IAM user. @@ -6632,8 +10120,6 @@ def update_user( policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). Args: - input: - An instance of `UpdateUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6643,10 +10129,34 @@ def update_user( Returns: An instance of `UpdateUserOutput`. """ - return self._invoke(input, _models.UPDATE_USER, [], plugins) + def update_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateUserOutput: + return self._invoke( + self._select_input(_models.UPDATE_USER, args, kwargs), + _models.UPDATE_USER, + [], + plugins, + ) + + @_overload + def upload_server_certificate( + self, + request: _models.UploadServerCertificateInput + | _models.UploadServerCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadServerCertificateOutput: ... + + @_overload def upload_server_certificate( - self, input: UploadServerCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadServerCertificateInputDict], ) -> UploadServerCertificateOutput: """ Uploads a server certificate entity for the Amazon Web Services account. @@ -6688,8 +10198,6 @@ def upload_server_certificate( in the *IAM User Guide*. Args: - input: - An instance of `UploadServerCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6699,10 +10207,34 @@ def upload_server_certificate( Returns: An instance of `UploadServerCertificateOutput`. """ - return self._invoke(input, _models.UPLOAD_SERVER_CERTIFICATE, [], plugins) + def upload_server_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadServerCertificateOutput: + return self._invoke( + self._select_input(_models.UPLOAD_SERVER_CERTIFICATE, args, kwargs), + _models.UPLOAD_SERVER_CERTIFICATE, + [], + plugins, + ) + + @_overload + def upload_signing_certificate( + self, + request: _models.UploadSigningCertificateInput + | _models.UploadSigningCertificateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadSigningCertificateOutput: ... + + @_overload def upload_signing_certificate( - self, input: UploadSigningCertificateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadSigningCertificateInputDict], ) -> UploadSigningCertificateOutput: """ Uploads an X.509 signing certificate and associates it with the @@ -6735,8 +10267,6 @@ def upload_signing_certificate( in the *IAM User Guide*. Args: - input: - An instance of `UploadSigningCertificateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6746,10 +10276,33 @@ def upload_signing_certificate( Returns: An instance of `UploadSigningCertificateOutput`. """ - return self._invoke(input, _models.UPLOAD_SIGNING_CERTIFICATE, [], plugins) + def upload_signing_certificate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadSigningCertificateOutput: + return self._invoke( + self._select_input(_models.UPLOAD_SIGNING_CERTIFICATE, args, kwargs), + _models.UPLOAD_SIGNING_CERTIFICATE, + [], + plugins, + ) + + @_overload + def upload_ssh_public_key( + self, + request: _models.UploadSSHPublicKeyInput | _models.UploadSSHPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadSSHPublicKeyOutput: ... + + @_overload def upload_ssh_public_key( - self, input: UploadSSHPublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadSSHPublicKeyInputDict], ) -> UploadSSHPublicKeyOutput: """ Uploads an SSH public key and associates it with the specified IAM user. @@ -6762,8 +10315,6 @@ def upload_ssh_public_key( in the *CodeCommit User Guide*. Args: - input: - An instance of `UploadSSHPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6773,7 +10324,16 @@ def upload_ssh_public_key( Returns: An instance of `UploadSSHPublicKeyOutput`. """ - return self._invoke(input, _models.UPLOAD_SSH_PUBLIC_KEY, [], plugins) + + def upload_ssh_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadSSHPublicKeyOutput: + return self._invoke( + self._select_input(_models.UPLOAD_SSH_PUBLIC_KEY, args, kwargs), + _models.UPLOAD_SSH_PUBLIC_KEY, + [], + plugins, + ) def _new_config(self) -> IAMConfig: return IAMConfig.resolve() diff --git a/clients/aws-sdk-iam/src/aws_sdk_iam/models.pyi b/clients/aws-sdk-iam/src/aws_sdk_iam/models.pyi index 0d56927de..5f2621fd5 100644 --- a/clients/aws-sdk-iam/src/aws_sdk_iam/models.pyi +++ b/clients/aws-sdk-iam/src/aws_sdk_iam/models.pyi @@ -9,6 +9,7 @@ from smithy_core.serializers import ShapeSerializer from ._private.models_0 import ( AcceptDelegationRequestInput as AcceptDelegationRequestInput, + AcceptDelegationRequestInputDict as AcceptDelegationRequestInputDict, AcceptDelegationRequestOutput as AcceptDelegationRequestOutput, AccessAdvisorUsageGranularityType as AccessAdvisorUsageGranularityType, AccessDetail as AccessDetail, @@ -17,139 +18,199 @@ from ._private.models_0 import ( AccessKeyMetadata as AccessKeyMetadata, AccountNotManagementOrDelegatedAdministratorException as AccountNotManagementOrDelegatedAdministratorException, AcquireRoleInput as AcquireRoleInput, + AcquireRoleInputDict as AcquireRoleInputDict, AcquireRoleOutput as AcquireRoleOutput, AddClientIDToOpenIDConnectProviderInput as AddClientIDToOpenIDConnectProviderInput, + AddClientIDToOpenIDConnectProviderInputDict as AddClientIDToOpenIDConnectProviderInputDict, AddClientIDToOpenIDConnectProviderOutput as AddClientIDToOpenIDConnectProviderOutput, AddRoleToInstanceProfileInput as AddRoleToInstanceProfileInput, + AddRoleToInstanceProfileInputDict as AddRoleToInstanceProfileInputDict, AddRoleToInstanceProfileOutput as AddRoleToInstanceProfileOutput, AddUserToGroupInput as AddUserToGroupInput, + AddUserToGroupInputDict as AddUserToGroupInputDict, AddUserToGroupOutput as AddUserToGroupOutput, AssertionEncryptionModeType as AssertionEncryptionModeType, AssignmentStatusType as AssignmentStatusType, AssociateDelegationRequestInput as AssociateDelegationRequestInput, + AssociateDelegationRequestInputDict as AssociateDelegationRequestInputDict, AssociateDelegationRequestOutput as AssociateDelegationRequestOutput, AttachedPermissionsBoundary as AttachedPermissionsBoundary, AttachedPolicy as AttachedPolicy, AttachGroupPolicyInput as AttachGroupPolicyInput, + AttachGroupPolicyInputDict as AttachGroupPolicyInputDict, AttachGroupPolicyOutput as AttachGroupPolicyOutput, AttachmentType as AttachmentType, AttachRolePolicyInput as AttachRolePolicyInput, + AttachRolePolicyInputDict as AttachRolePolicyInputDict, AttachRolePolicyOutput as AttachRolePolicyOutput, AttachUserPolicyInput as AttachUserPolicyInput, + AttachUserPolicyInputDict as AttachUserPolicyInputDict, AttachUserPolicyOutput as AttachUserPolicyOutput, CallerIsNotManagementAccountException as CallerIsNotManagementAccountException, ChangePasswordInput as ChangePasswordInput, + ChangePasswordInputDict as ChangePasswordInputDict, ChangePasswordOutput as ChangePasswordOutput, ConcurrentModificationException as ConcurrentModificationException, ContextEntry as ContextEntry, + ContextEntryDict as ContextEntryDict, ContextKeyTypeEnum as ContextKeyTypeEnum, CreateAccessKeyInput as CreateAccessKeyInput, + CreateAccessKeyInputDict as CreateAccessKeyInputDict, CreateAccessKeyOutput as CreateAccessKeyOutput, CreateAccountAliasInput as CreateAccountAliasInput, + CreateAccountAliasInputDict as CreateAccountAliasInputDict, CreateAccountAliasOutput as CreateAccountAliasOutput, CreateDelegationRequestInput as CreateDelegationRequestInput, + CreateDelegationRequestInputDict as CreateDelegationRequestInputDict, CreateDelegationRequestOutput as CreateDelegationRequestOutput, CreateGroupInput as CreateGroupInput, + CreateGroupInputDict as CreateGroupInputDict, CreateGroupOutput as CreateGroupOutput, CreateInstanceProfileInput as CreateInstanceProfileInput, + CreateInstanceProfileInputDict as CreateInstanceProfileInputDict, CreateInstanceProfileOutput as CreateInstanceProfileOutput, CreateLoginProfileInput as CreateLoginProfileInput, + CreateLoginProfileInputDict as CreateLoginProfileInputDict, CreateLoginProfileOutput as CreateLoginProfileOutput, CreateOpenIDConnectProviderInput as CreateOpenIDConnectProviderInput, + CreateOpenIDConnectProviderInputDict as CreateOpenIDConnectProviderInputDict, CreateOpenIDConnectProviderOutput as CreateOpenIDConnectProviderOutput, CreatePolicyInput as CreatePolicyInput, + CreatePolicyInputDict as CreatePolicyInputDict, CreatePolicyOutput as CreatePolicyOutput, CreatePolicyVersionInput as CreatePolicyVersionInput, + CreatePolicyVersionInputDict as CreatePolicyVersionInputDict, CreatePolicyVersionOutput as CreatePolicyVersionOutput, CreateRoleInput as CreateRoleInput, + CreateRoleInputDict as CreateRoleInputDict, CreateRoleOutput as CreateRoleOutput, CreateSAMLProviderInput as CreateSAMLProviderInput, + CreateSAMLProviderInputDict as CreateSAMLProviderInputDict, CreateSAMLProviderOutput as CreateSAMLProviderOutput, CreateServiceLinkedRoleInput as CreateServiceLinkedRoleInput, + CreateServiceLinkedRoleInputDict as CreateServiceLinkedRoleInputDict, CreateServiceLinkedRoleOutput as CreateServiceLinkedRoleOutput, CreateServiceSpecificCredentialInput as CreateServiceSpecificCredentialInput, + CreateServiceSpecificCredentialInputDict as CreateServiceSpecificCredentialInputDict, CreateServiceSpecificCredentialOutput as CreateServiceSpecificCredentialOutput, CreateUserInput as CreateUserInput, + CreateUserInputDict as CreateUserInputDict, CreateUserOutput as CreateUserOutput, CreateVirtualMFADeviceInput as CreateVirtualMFADeviceInput, + CreateVirtualMFADeviceInputDict as CreateVirtualMFADeviceInputDict, CreateVirtualMFADeviceOutput as CreateVirtualMFADeviceOutput, CredentialReportExpiredException as CredentialReportExpiredException, CredentialReportNotPresentException as CredentialReportNotPresentException, CredentialReportNotReadyException as CredentialReportNotReadyException, DeactivateMFADeviceInput as DeactivateMFADeviceInput, + DeactivateMFADeviceInputDict as DeactivateMFADeviceInputDict, DeactivateMFADeviceOutput as DeactivateMFADeviceOutput, DelegationPermission as DelegationPermission, + DelegationPermissionDict as DelegationPermissionDict, DelegationRequest as DelegationRequest, DeleteAccessKeyInput as DeleteAccessKeyInput, + DeleteAccessKeyInputDict as DeleteAccessKeyInputDict, DeleteAccessKeyOutput as DeleteAccessKeyOutput, DeleteAccountAliasInput as DeleteAccountAliasInput, + DeleteAccountAliasInputDict as DeleteAccountAliasInputDict, DeleteAccountAliasOutput as DeleteAccountAliasOutput, DeleteAccountPasswordPolicyInput as DeleteAccountPasswordPolicyInput, + DeleteAccountPasswordPolicyInputDict as DeleteAccountPasswordPolicyInputDict, DeleteAccountPasswordPolicyOutput as DeleteAccountPasswordPolicyOutput, DeleteConflictException as DeleteConflictException, DeleteGroupInput as DeleteGroupInput, + DeleteGroupInputDict as DeleteGroupInputDict, DeleteGroupOutput as DeleteGroupOutput, DeleteGroupPolicyInput as DeleteGroupPolicyInput, + DeleteGroupPolicyInputDict as DeleteGroupPolicyInputDict, DeleteGroupPolicyOutput as DeleteGroupPolicyOutput, DeleteInstanceProfileInput as DeleteInstanceProfileInput, + DeleteInstanceProfileInputDict as DeleteInstanceProfileInputDict, DeleteInstanceProfileOutput as DeleteInstanceProfileOutput, DeleteLoginProfileInput as DeleteLoginProfileInput, + DeleteLoginProfileInputDict as DeleteLoginProfileInputDict, DeleteLoginProfileOutput as DeleteLoginProfileOutput, DeleteOpenIDConnectProviderInput as DeleteOpenIDConnectProviderInput, + DeleteOpenIDConnectProviderInputDict as DeleteOpenIDConnectProviderInputDict, DeleteOpenIDConnectProviderOutput as DeleteOpenIDConnectProviderOutput, DeletePolicyInput as DeletePolicyInput, + DeletePolicyInputDict as DeletePolicyInputDict, DeletePolicyOutput as DeletePolicyOutput, DeletePolicyVersionInput as DeletePolicyVersionInput, + DeletePolicyVersionInputDict as DeletePolicyVersionInputDict, DeletePolicyVersionOutput as DeletePolicyVersionOutput, DeleteRoleInput as DeleteRoleInput, + DeleteRoleInputDict as DeleteRoleInputDict, DeleteRoleOutput as DeleteRoleOutput, DeleteRolePermissionsBoundaryInput as DeleteRolePermissionsBoundaryInput, + DeleteRolePermissionsBoundaryInputDict as DeleteRolePermissionsBoundaryInputDict, DeleteRolePermissionsBoundaryOutput as DeleteRolePermissionsBoundaryOutput, DeleteRolePolicyInput as DeleteRolePolicyInput, + DeleteRolePolicyInputDict as DeleteRolePolicyInputDict, DeleteRolePolicyOutput as DeleteRolePolicyOutput, DeleteSAMLProviderInput as DeleteSAMLProviderInput, + DeleteSAMLProviderInputDict as DeleteSAMLProviderInputDict, DeleteSAMLProviderOutput as DeleteSAMLProviderOutput, DeleteServerCertificateInput as DeleteServerCertificateInput, + DeleteServerCertificateInputDict as DeleteServerCertificateInputDict, DeleteServerCertificateOutput as DeleteServerCertificateOutput, DeleteServiceLinkedRoleInput as DeleteServiceLinkedRoleInput, + DeleteServiceLinkedRoleInputDict as DeleteServiceLinkedRoleInputDict, DeleteServiceLinkedRoleOutput as DeleteServiceLinkedRoleOutput, DeleteServiceSpecificCredentialInput as DeleteServiceSpecificCredentialInput, + DeleteServiceSpecificCredentialInputDict as DeleteServiceSpecificCredentialInputDict, DeleteServiceSpecificCredentialOutput as DeleteServiceSpecificCredentialOutput, DeleteSigningCertificateInput as DeleteSigningCertificateInput, + DeleteSigningCertificateInputDict as DeleteSigningCertificateInputDict, DeleteSigningCertificateOutput as DeleteSigningCertificateOutput, DeleteSSHPublicKeyInput as DeleteSSHPublicKeyInput, + DeleteSSHPublicKeyInputDict as DeleteSSHPublicKeyInputDict, DeleteSSHPublicKeyOutput as DeleteSSHPublicKeyOutput, DeleteUserInput as DeleteUserInput, + DeleteUserInputDict as DeleteUserInputDict, DeleteUserOutput as DeleteUserOutput, DeleteUserPermissionsBoundaryInput as DeleteUserPermissionsBoundaryInput, + DeleteUserPermissionsBoundaryInputDict as DeleteUserPermissionsBoundaryInputDict, DeleteUserPermissionsBoundaryOutput as DeleteUserPermissionsBoundaryOutput, DeleteUserPolicyInput as DeleteUserPolicyInput, + DeleteUserPolicyInputDict as DeleteUserPolicyInputDict, DeleteUserPolicyOutput as DeleteUserPolicyOutput, DeleteVirtualMFADeviceInput as DeleteVirtualMFADeviceInput, + DeleteVirtualMFADeviceInputDict as DeleteVirtualMFADeviceInputDict, DeleteVirtualMFADeviceOutput as DeleteVirtualMFADeviceOutput, DeletionTaskFailureReasonType as DeletionTaskFailureReasonType, DeletionTaskStatusType as DeletionTaskStatusType, DetachGroupPolicyInput as DetachGroupPolicyInput, + DetachGroupPolicyInputDict as DetachGroupPolicyInputDict, DetachGroupPolicyOutput as DetachGroupPolicyOutput, DetachRolePolicyInput as DetachRolePolicyInput, + DetachRolePolicyInputDict as DetachRolePolicyInputDict, DetachRolePolicyOutput as DetachRolePolicyOutput, DetachUserPolicyInput as DetachUserPolicyInput, + DetachUserPolicyInputDict as DetachUserPolicyInputDict, DetachUserPolicyOutput as DetachUserPolicyOutput, DisableOrganizationsRootCredentialsManagementInput as DisableOrganizationsRootCredentialsManagementInput, + DisableOrganizationsRootCredentialsManagementInputDict as DisableOrganizationsRootCredentialsManagementInputDict, DisableOrganizationsRootCredentialsManagementOutput as DisableOrganizationsRootCredentialsManagementOutput, DisableOrganizationsRootSessionsInput as DisableOrganizationsRootSessionsInput, + DisableOrganizationsRootSessionsInputDict as DisableOrganizationsRootSessionsInputDict, DisableOrganizationsRootSessionsOutput as DisableOrganizationsRootSessionsOutput, DisableOutboundWebIdentityFederationInput as DisableOutboundWebIdentityFederationInput, + DisableOutboundWebIdentityFederationInputDict as DisableOutboundWebIdentityFederationInputDict, DisableOutboundWebIdentityFederationOutput as DisableOutboundWebIdentityFederationOutput, DuplicateCertificateException as DuplicateCertificateException, DuplicateSSHPublicKeyException as DuplicateSSHPublicKeyException, EnableMFADeviceInput as EnableMFADeviceInput, + EnableMFADeviceInputDict as EnableMFADeviceInputDict, EnableMFADeviceOutput as EnableMFADeviceOutput, EnableOrganizationsRootCredentialsManagementInput as EnableOrganizationsRootCredentialsManagementInput, + EnableOrganizationsRootCredentialsManagementInputDict as EnableOrganizationsRootCredentialsManagementInputDict, EnableOrganizationsRootCredentialsManagementOutput as EnableOrganizationsRootCredentialsManagementOutput, EnableOrganizationsRootSessionsInput as EnableOrganizationsRootSessionsInput, + EnableOrganizationsRootSessionsInputDict as EnableOrganizationsRootSessionsInputDict, EnableOrganizationsRootSessionsOutput as EnableOrganizationsRootSessionsOutput, EnableOutboundWebIdentityFederationInput as EnableOutboundWebIdentityFederationInput, + EnableOutboundWebIdentityFederationInputDict as EnableOutboundWebIdentityFederationInputDict, EnableOutboundWebIdentityFederationOutput as EnableOutboundWebIdentityFederationOutput, EncodingType as EncodingType, EntityAlreadyExistsException as EntityAlreadyExistsException, @@ -163,78 +224,113 @@ from ._private.models_0 import ( FeatureEnabledException as FeatureEnabledException, FeatureType as FeatureType, GenerateCredentialReportInput as GenerateCredentialReportInput, + GenerateCredentialReportInputDict as GenerateCredentialReportInputDict, GenerateCredentialReportOutput as GenerateCredentialReportOutput, GenerateOrganizationsAccessReportInput as GenerateOrganizationsAccessReportInput, + GenerateOrganizationsAccessReportInputDict as GenerateOrganizationsAccessReportInputDict, GenerateOrganizationsAccessReportOutput as GenerateOrganizationsAccessReportOutput, GenerateServiceLastAccessedDetailsInput as GenerateServiceLastAccessedDetailsInput, + GenerateServiceLastAccessedDetailsInputDict as GenerateServiceLastAccessedDetailsInputDict, GenerateServiceLastAccessedDetailsOutput as GenerateServiceLastAccessedDetailsOutput, GetAccessKeyLastUsedInput as GetAccessKeyLastUsedInput, + GetAccessKeyLastUsedInputDict as GetAccessKeyLastUsedInputDict, GetAccessKeyLastUsedOutput as GetAccessKeyLastUsedOutput, GetAccountAuthorizationDetailsInput as GetAccountAuthorizationDetailsInput, + GetAccountAuthorizationDetailsInputDict as GetAccountAuthorizationDetailsInputDict, GetAccountAuthorizationDetailsOutput as GetAccountAuthorizationDetailsOutput, GetAccountPasswordPolicyInput as GetAccountPasswordPolicyInput, + GetAccountPasswordPolicyInputDict as GetAccountPasswordPolicyInputDict, GetAccountPasswordPolicyOutput as GetAccountPasswordPolicyOutput, GetAccountPropertiesInput as GetAccountPropertiesInput, + GetAccountPropertiesInputDict as GetAccountPropertiesInputDict, GetAccountPropertiesOutput as GetAccountPropertiesOutput, GetAccountSummaryInput as GetAccountSummaryInput, + GetAccountSummaryInputDict as GetAccountSummaryInputDict, GetAccountSummaryOutput as GetAccountSummaryOutput, GetContextKeysForCustomPolicyInput as GetContextKeysForCustomPolicyInput, + GetContextKeysForCustomPolicyInputDict as GetContextKeysForCustomPolicyInputDict, GetContextKeysForCustomPolicyOutput as GetContextKeysForCustomPolicyOutput, GetContextKeysForPrincipalPolicyInput as GetContextKeysForPrincipalPolicyInput, + GetContextKeysForPrincipalPolicyInputDict as GetContextKeysForPrincipalPolicyInputDict, GetContextKeysForPrincipalPolicyOutput as GetContextKeysForPrincipalPolicyOutput, GetCredentialReportInput as GetCredentialReportInput, + GetCredentialReportInputDict as GetCredentialReportInputDict, GetCredentialReportOutput as GetCredentialReportOutput, GetDelegationRequestInput as GetDelegationRequestInput, + GetDelegationRequestInputDict as GetDelegationRequestInputDict, GetDelegationRequestOutput as GetDelegationRequestOutput, GetGroupInput as GetGroupInput, + GetGroupInputDict as GetGroupInputDict, GetGroupOutput as GetGroupOutput, GetGroupPolicyInput as GetGroupPolicyInput, + GetGroupPolicyInputDict as GetGroupPolicyInputDict, GetGroupPolicyOutput as GetGroupPolicyOutput, GetHumanReadableSummaryInput as GetHumanReadableSummaryInput, + GetHumanReadableSummaryInputDict as GetHumanReadableSummaryInputDict, GetHumanReadableSummaryOutput as GetHumanReadableSummaryOutput, GetInstanceProfileInput as GetInstanceProfileInput, + GetInstanceProfileInputDict as GetInstanceProfileInputDict, GetInstanceProfileOutput as GetInstanceProfileOutput, GetLoginProfileInput as GetLoginProfileInput, + GetLoginProfileInputDict as GetLoginProfileInputDict, GetLoginProfileOutput as GetLoginProfileOutput, GetMFADeviceInput as GetMFADeviceInput, + GetMFADeviceInputDict as GetMFADeviceInputDict, GetMFADeviceOutput as GetMFADeviceOutput, GetOpenIDConnectProviderInput as GetOpenIDConnectProviderInput, + GetOpenIDConnectProviderInputDict as GetOpenIDConnectProviderInputDict, GetOpenIDConnectProviderOutput as GetOpenIDConnectProviderOutput, GetOrganizationsAccessReportInput as GetOrganizationsAccessReportInput, + GetOrganizationsAccessReportInputDict as GetOrganizationsAccessReportInputDict, GetOrganizationsAccessReportOutput as GetOrganizationsAccessReportOutput, GetOutboundWebIdentityFederationInfoInput as GetOutboundWebIdentityFederationInfoInput, + GetOutboundWebIdentityFederationInfoInputDict as GetOutboundWebIdentityFederationInfoInputDict, GetOutboundWebIdentityFederationInfoOutput as GetOutboundWebIdentityFederationInfoOutput, GetPolicyInput as GetPolicyInput, + GetPolicyInputDict as GetPolicyInputDict, GetPolicyOutput as GetPolicyOutput, GetPolicyVersionInput as GetPolicyVersionInput, + GetPolicyVersionInputDict as GetPolicyVersionInputDict, GetPolicyVersionOutput as GetPolicyVersionOutput, GetRoleInput as GetRoleInput, + GetRoleInputDict as GetRoleInputDict, GetRoleOutput as GetRoleOutput, GetRolePolicyInput as GetRolePolicyInput, + GetRolePolicyInputDict as GetRolePolicyInputDict, GetRolePolicyOutput as GetRolePolicyOutput, GetRoleTemplateVersionInput as GetRoleTemplateVersionInput, + GetRoleTemplateVersionInputDict as GetRoleTemplateVersionInputDict, GetRoleTemplateVersionOutput as GetRoleTemplateVersionOutput, GetSAMLProviderInput as GetSAMLProviderInput, + GetSAMLProviderInputDict as GetSAMLProviderInputDict, GetSAMLProviderOutput as GetSAMLProviderOutput, GetServerCertificateInput as GetServerCertificateInput, + GetServerCertificateInputDict as GetServerCertificateInputDict, GetServerCertificateOutput as GetServerCertificateOutput, GetServiceLastAccessedDetailsInput as GetServiceLastAccessedDetailsInput, + GetServiceLastAccessedDetailsInputDict as GetServiceLastAccessedDetailsInputDict, GetServiceLastAccessedDetailsOutput as GetServiceLastAccessedDetailsOutput, GetServiceLastAccessedDetailsWithEntitiesInput as GetServiceLastAccessedDetailsWithEntitiesInput, + GetServiceLastAccessedDetailsWithEntitiesInputDict as GetServiceLastAccessedDetailsWithEntitiesInputDict, GetServiceLastAccessedDetailsWithEntitiesOutput as GetServiceLastAccessedDetailsWithEntitiesOutput, GetServiceLinkedRoleDeletionStatusInput as GetServiceLinkedRoleDeletionStatusInput, + GetServiceLinkedRoleDeletionStatusInputDict as GetServiceLinkedRoleDeletionStatusInputDict, GetServiceLinkedRoleDeletionStatusOutput as GetServiceLinkedRoleDeletionStatusOutput, GetSSHPublicKeyInput as GetSSHPublicKeyInput, + GetSSHPublicKeyInputDict as GetSSHPublicKeyInputDict, GetSSHPublicKeyOutput as GetSSHPublicKeyOutput, GetUserInput as GetUserInput, + GetUserInputDict as GetUserInputDict, GetUserOutput as GetUserOutput, GetUserPolicyInput as GetUserPolicyInput, + GetUserPolicyInputDict as GetUserPolicyInputDict, GetUserPolicyOutput as GetUserPolicyOutput, GlobalEndpointTokenVersion as GlobalEndpointTokenVersion, Group as Group, GroupDetail as GroupDetail, InlinePolicy as InlinePolicy, InlinePolicyIdentifierType as InlinePolicyIdentifierType, + InlinePolicyIdentifierTypeDict as InlinePolicyIdentifierTypeDict, InstanceProfile as InstanceProfile, InvalidAuthenticationCodeException as InvalidAuthenticationCodeException, InvalidCertificateException as InvalidCertificateException, @@ -245,80 +341,116 @@ from ._private.models_0 import ( KeyPairMismatchException as KeyPairMismatchException, LimitExceededException as LimitExceededException, ListAccessKeysInput as ListAccessKeysInput, + ListAccessKeysInputDict as ListAccessKeysInputDict, ListAccessKeysOutput as ListAccessKeysOutput, ListAccountAliasesInput as ListAccountAliasesInput, + ListAccountAliasesInputDict as ListAccountAliasesInputDict, ListAccountAliasesOutput as ListAccountAliasesOutput, ListAttachedGroupPoliciesInput as ListAttachedGroupPoliciesInput, + ListAttachedGroupPoliciesInputDict as ListAttachedGroupPoliciesInputDict, ListAttachedGroupPoliciesOutput as ListAttachedGroupPoliciesOutput, ListAttachedRolePoliciesInput as ListAttachedRolePoliciesInput, + ListAttachedRolePoliciesInputDict as ListAttachedRolePoliciesInputDict, ListAttachedRolePoliciesOutput as ListAttachedRolePoliciesOutput, ListAttachedUserPoliciesInput as ListAttachedUserPoliciesInput, + ListAttachedUserPoliciesInputDict as ListAttachedUserPoliciesInputDict, ListAttachedUserPoliciesOutput as ListAttachedUserPoliciesOutput, ListDelegationRequestsInput as ListDelegationRequestsInput, + ListDelegationRequestsInputDict as ListDelegationRequestsInputDict, ListDelegationRequestsOutput as ListDelegationRequestsOutput, ListEntitiesForPolicyInput as ListEntitiesForPolicyInput, + ListEntitiesForPolicyInputDict as ListEntitiesForPolicyInputDict, ListEntitiesForPolicyOutput as ListEntitiesForPolicyOutput, ) from ._private.models_1 import ( ListGroupPoliciesInput as ListGroupPoliciesInput, + ListGroupPoliciesInputDict as ListGroupPoliciesInputDict, ListGroupPoliciesOutput as ListGroupPoliciesOutput, ListGroupsForUserInput as ListGroupsForUserInput, + ListGroupsForUserInputDict as ListGroupsForUserInputDict, ListGroupsForUserOutput as ListGroupsForUserOutput, ListGroupsInput as ListGroupsInput, + ListGroupsInputDict as ListGroupsInputDict, ListGroupsOutput as ListGroupsOutput, ListInstanceProfilesForRoleInput as ListInstanceProfilesForRoleInput, + ListInstanceProfilesForRoleInputDict as ListInstanceProfilesForRoleInputDict, ListInstanceProfilesForRoleOutput as ListInstanceProfilesForRoleOutput, ListInstanceProfilesInput as ListInstanceProfilesInput, + ListInstanceProfilesInputDict as ListInstanceProfilesInputDict, ListInstanceProfilesOutput as ListInstanceProfilesOutput, ListInstanceProfileTagsInput as ListInstanceProfileTagsInput, + ListInstanceProfileTagsInputDict as ListInstanceProfileTagsInputDict, ListInstanceProfileTagsOutput as ListInstanceProfileTagsOutput, ListMFADevicesInput as ListMFADevicesInput, + ListMFADevicesInputDict as ListMFADevicesInputDict, ListMFADevicesOutput as ListMFADevicesOutput, ListMFADeviceTagsInput as ListMFADeviceTagsInput, + ListMFADeviceTagsInputDict as ListMFADeviceTagsInputDict, ListMFADeviceTagsOutput as ListMFADeviceTagsOutput, ListOpenIDConnectProvidersInput as ListOpenIDConnectProvidersInput, + ListOpenIDConnectProvidersInputDict as ListOpenIDConnectProvidersInputDict, ListOpenIDConnectProvidersOutput as ListOpenIDConnectProvidersOutput, ListOpenIDConnectProviderTagsInput as ListOpenIDConnectProviderTagsInput, + ListOpenIDConnectProviderTagsInputDict as ListOpenIDConnectProviderTagsInputDict, ListOpenIDConnectProviderTagsOutput as ListOpenIDConnectProviderTagsOutput, ListOrganizationsFeaturesInput as ListOrganizationsFeaturesInput, + ListOrganizationsFeaturesInputDict as ListOrganizationsFeaturesInputDict, ListOrganizationsFeaturesOutput as ListOrganizationsFeaturesOutput, ListPoliciesGrantingServiceAccessEntry as ListPoliciesGrantingServiceAccessEntry, ListPoliciesGrantingServiceAccessInput as ListPoliciesGrantingServiceAccessInput, + ListPoliciesGrantingServiceAccessInputDict as ListPoliciesGrantingServiceAccessInputDict, ListPoliciesGrantingServiceAccessOutput as ListPoliciesGrantingServiceAccessOutput, ListPoliciesInput as ListPoliciesInput, + ListPoliciesInputDict as ListPoliciesInputDict, ListPoliciesOutput as ListPoliciesOutput, ListPolicyTagsInput as ListPolicyTagsInput, + ListPolicyTagsInputDict as ListPolicyTagsInputDict, ListPolicyTagsOutput as ListPolicyTagsOutput, ListPolicyVersionsInput as ListPolicyVersionsInput, + ListPolicyVersionsInputDict as ListPolicyVersionsInputDict, ListPolicyVersionsOutput as ListPolicyVersionsOutput, ListRolePoliciesInput as ListRolePoliciesInput, + ListRolePoliciesInputDict as ListRolePoliciesInputDict, ListRolePoliciesOutput as ListRolePoliciesOutput, ListRolesInput as ListRolesInput, + ListRolesInputDict as ListRolesInputDict, ListRolesOutput as ListRolesOutput, ListRoleTagsInput as ListRoleTagsInput, + ListRoleTagsInputDict as ListRoleTagsInputDict, ListRoleTagsOutput as ListRoleTagsOutput, ListSAMLProvidersInput as ListSAMLProvidersInput, + ListSAMLProvidersInputDict as ListSAMLProvidersInputDict, ListSAMLProvidersOutput as ListSAMLProvidersOutput, ListSAMLProviderTagsInput as ListSAMLProviderTagsInput, + ListSAMLProviderTagsInputDict as ListSAMLProviderTagsInputDict, ListSAMLProviderTagsOutput as ListSAMLProviderTagsOutput, ListServerCertificatesInput as ListServerCertificatesInput, + ListServerCertificatesInputDict as ListServerCertificatesInputDict, ListServerCertificatesOutput as ListServerCertificatesOutput, ListServerCertificateTagsInput as ListServerCertificateTagsInput, + ListServerCertificateTagsInputDict as ListServerCertificateTagsInputDict, ListServerCertificateTagsOutput as ListServerCertificateTagsOutput, ListServiceSpecificCredentialsInput as ListServiceSpecificCredentialsInput, + ListServiceSpecificCredentialsInputDict as ListServiceSpecificCredentialsInputDict, ListServiceSpecificCredentialsOutput as ListServiceSpecificCredentialsOutput, ListSigningCertificatesInput as ListSigningCertificatesInput, + ListSigningCertificatesInputDict as ListSigningCertificatesInputDict, ListSigningCertificatesOutput as ListSigningCertificatesOutput, ListSSHPublicKeysInput as ListSSHPublicKeysInput, + ListSSHPublicKeysInputDict as ListSSHPublicKeysInputDict, ListSSHPublicKeysOutput as ListSSHPublicKeysOutput, ListUserPoliciesInput as ListUserPoliciesInput, + ListUserPoliciesInputDict as ListUserPoliciesInputDict, ListUserPoliciesOutput as ListUserPoliciesOutput, ListUsersInput as ListUsersInput, + ListUsersInputDict as ListUsersInputDict, ListUsersOutput as ListUsersOutput, ListUserTagsInput as ListUserTagsInput, + ListUserTagsInputDict as ListUserTagsInputDict, ListUserTagsOutput as ListUserTagsOutput, ListVirtualMFADevicesInput as ListVirtualMFADevicesInput, + ListVirtualMFADevicesInputDict as ListVirtualMFADevicesInputDict, ListVirtualMFADevicesOutput as ListVirtualMFADevicesOutput, LoginProfile as LoginProfile, MalformedCertificateException as MalformedCertificateException, @@ -331,6 +463,7 @@ from ._private.models_1 import ( OpenIDConnectProviderListEntry as OpenIDConnectProviderListEntry, OpenIdIdpCommunicationErrorException as OpenIdIdpCommunicationErrorException, OrderedOrganizationPolicyType as OrderedOrganizationPolicyType, + OrderedOrganizationPolicyTypeDict as OrderedOrganizationPolicyTypeDict, OrganizationNotFoundException as OrganizationNotFoundException, OrganizationNotInAllFeaturesModeException as OrganizationNotInAllFeaturesModeException, OrganizationsDecisionDetail as OrganizationsDecisionDetail, @@ -354,10 +487,15 @@ from ._private.models_1 import ( PolicyIdentifierUnknown as PolicyIdentifierUnknown, PolicyIdentifier as PolicyIdentifier, _PolicyIdentifierDeserializer as _PolicyIdentifierDeserializer, + PolicyIdentifier_PolicyTypeDict as PolicyIdentifier_PolicyTypeDict, + PolicyIdentifierPolicyArnDict as PolicyIdentifierPolicyArnDict, + PolicyIdentifierInlinePolicyIdentifierDict as PolicyIdentifierInlinePolicyIdentifierDict, + PolicyIdentifierDict as PolicyIdentifierDict, PolicyIdentifierPolicyType as PolicyIdentifierPolicyType, PolicyNotAttachableException as PolicyNotAttachableException, PolicyOwnerEntityType as PolicyOwnerEntityType, PolicyParameter as PolicyParameter, + PolicyParameterDict as PolicyParameterDict, PolicyParameterTypeEnum as PolicyParameterTypeEnum, PolicyRole as PolicyRole, PolicyScopeType as PolicyScopeType, @@ -368,33 +506,46 @@ from ._private.models_1 import ( PolicyVersion as PolicyVersion, Position as Position, PutAccountPropertiesInput as PutAccountPropertiesInput, + PutAccountPropertiesInputDict as PutAccountPropertiesInputDict, PutAccountPropertiesOutput as PutAccountPropertiesOutput, PutGroupPolicyInput as PutGroupPolicyInput, + PutGroupPolicyInputDict as PutGroupPolicyInputDict, PutGroupPolicyOutput as PutGroupPolicyOutput, PutRolePermissionsBoundaryInput as PutRolePermissionsBoundaryInput, + PutRolePermissionsBoundaryInputDict as PutRolePermissionsBoundaryInputDict, PutRolePermissionsBoundaryOutput as PutRolePermissionsBoundaryOutput, PutRolePolicyInput as PutRolePolicyInput, + PutRolePolicyInputDict as PutRolePolicyInputDict, PutRolePolicyOutput as PutRolePolicyOutput, PutUserPermissionsBoundaryInput as PutUserPermissionsBoundaryInput, + PutUserPermissionsBoundaryInputDict as PutUserPermissionsBoundaryInputDict, PutUserPermissionsBoundaryOutput as PutUserPermissionsBoundaryOutput, PutUserPolicyInput as PutUserPolicyInput, + PutUserPolicyInputDict as PutUserPolicyInputDict, PutUserPolicyOutput as PutUserPolicyOutput, RejectDelegationRequestInput as RejectDelegationRequestInput, + RejectDelegationRequestInputDict as RejectDelegationRequestInputDict, RejectDelegationRequestOutput as RejectDelegationRequestOutput, RemoveClientIDFromOpenIDConnectProviderInput as RemoveClientIDFromOpenIDConnectProviderInput, + RemoveClientIDFromOpenIDConnectProviderInputDict as RemoveClientIDFromOpenIDConnectProviderInputDict, RemoveClientIDFromOpenIDConnectProviderOutput as RemoveClientIDFromOpenIDConnectProviderOutput, RemoveRoleFromInstanceProfileInput as RemoveRoleFromInstanceProfileInput, + RemoveRoleFromInstanceProfileInputDict as RemoveRoleFromInstanceProfileInputDict, RemoveRoleFromInstanceProfileOutput as RemoveRoleFromInstanceProfileOutput, RemoveUserFromGroupInput as RemoveUserFromGroupInput, + RemoveUserFromGroupInputDict as RemoveUserFromGroupInputDict, RemoveUserFromGroupOutput as RemoveUserFromGroupOutput, ReplacementValueEntry as ReplacementValueEntry, + ReplacementValueEntryDict as ReplacementValueEntryDict, ReportFormatType as ReportFormatType, ReportGenerationLimitExceededException as ReportGenerationLimitExceededException, ReportStateType as ReportStateType, ResetServiceSpecificCredentialInput as ResetServiceSpecificCredentialInput, + ResetServiceSpecificCredentialInputDict as ResetServiceSpecificCredentialInputDict, ResetServiceSpecificCredentialOutput as ResetServiceSpecificCredentialOutput, ResourceSpecificResult as ResourceSpecificResult, ResyncMFADeviceInput as ResyncMFADeviceInput, + ResyncMFADeviceInputDict as ResyncMFADeviceInputDict, ResyncMFADeviceOutput as ResyncMFADeviceOutput, Role as Role, RoleDetail as RoleDetail, @@ -406,6 +557,7 @@ from ._private.models_1 import ( SAMLPrivateKey as SAMLPrivateKey, SAMLProviderListEntry as SAMLProviderListEntry, SendDelegationTokenInput as SendDelegationTokenInput, + SendDelegationTokenInputDict as SendDelegationTokenInputDict, SendDelegationTokenOutput as SendDelegationTokenOutput, ServerCertificate as ServerCertificate, ServerCertificateMetadata as ServerCertificateMetadata, @@ -416,13 +568,17 @@ from ._private.models_1 import ( ServiceSpecificCredential as ServiceSpecificCredential, ServiceSpecificCredentialMetadata as ServiceSpecificCredentialMetadata, SetDefaultPolicyVersionInput as SetDefaultPolicyVersionInput, + SetDefaultPolicyVersionInputDict as SetDefaultPolicyVersionInputDict, SetDefaultPolicyVersionOutput as SetDefaultPolicyVersionOutput, SetSecurityTokenServicePreferencesInput as SetSecurityTokenServicePreferencesInput, + SetSecurityTokenServicePreferencesInputDict as SetSecurityTokenServicePreferencesInputDict, SetSecurityTokenServicePreferencesOutput as SetSecurityTokenServicePreferencesOutput, SigningCertificate as SigningCertificate, SimulateCustomPolicyInput as SimulateCustomPolicyInput, + SimulateCustomPolicyInputDict as SimulateCustomPolicyInputDict, SimulateCustomPolicyOutput as SimulateCustomPolicyOutput, SimulatePrincipalPolicyInput as SimulatePrincipalPolicyInput, + SimulatePrincipalPolicyInputDict as SimulatePrincipalPolicyInputDict, SimulatePrincipalPolicyOutput as SimulatePrincipalPolicyOutput, SortKeyType as SortKeyType, SourceRoleTemplate as SourceRoleTemplate, @@ -434,77 +590,112 @@ from ._private.models_1 import ( SummaryKeyType as SummaryKeyType, SummaryStateType as SummaryStateType, Tag as Tag, + TagDict as TagDict, TagInstanceProfileInput as TagInstanceProfileInput, + TagInstanceProfileInputDict as TagInstanceProfileInputDict, TagInstanceProfileOutput as TagInstanceProfileOutput, TagMFADeviceInput as TagMFADeviceInput, + TagMFADeviceInputDict as TagMFADeviceInputDict, TagMFADeviceOutput as TagMFADeviceOutput, TagOpenIDConnectProviderInput as TagOpenIDConnectProviderInput, + TagOpenIDConnectProviderInputDict as TagOpenIDConnectProviderInputDict, TagOpenIDConnectProviderOutput as TagOpenIDConnectProviderOutput, TagPolicyInput as TagPolicyInput, + TagPolicyInputDict as TagPolicyInputDict, TagPolicyOutput as TagPolicyOutput, TagRoleInput as TagRoleInput, + TagRoleInputDict as TagRoleInputDict, TagRoleOutput as TagRoleOutput, TagSAMLProviderInput as TagSAMLProviderInput, + TagSAMLProviderInputDict as TagSAMLProviderInputDict, TagSAMLProviderOutput as TagSAMLProviderOutput, TagServerCertificateInput as TagServerCertificateInput, + TagServerCertificateInputDict as TagServerCertificateInputDict, TagServerCertificateOutput as TagServerCertificateOutput, TagTemplate as TagTemplate, TagUserInput as TagUserInput, + TagUserInputDict as TagUserInputDict, TagUserOutput as TagUserOutput, TrackedActionLastAccessed as TrackedActionLastAccessed, UnmodifiableEntityException as UnmodifiableEntityException, UnrecognizedPublicKeyEncodingException as UnrecognizedPublicKeyEncodingException, UntagInstanceProfileInput as UntagInstanceProfileInput, + UntagInstanceProfileInputDict as UntagInstanceProfileInputDict, UntagInstanceProfileOutput as UntagInstanceProfileOutput, UntagMFADeviceInput as UntagMFADeviceInput, + UntagMFADeviceInputDict as UntagMFADeviceInputDict, UntagMFADeviceOutput as UntagMFADeviceOutput, UntagOpenIDConnectProviderInput as UntagOpenIDConnectProviderInput, + UntagOpenIDConnectProviderInputDict as UntagOpenIDConnectProviderInputDict, UntagOpenIDConnectProviderOutput as UntagOpenIDConnectProviderOutput, UntagPolicyInput as UntagPolicyInput, + UntagPolicyInputDict as UntagPolicyInputDict, UntagPolicyOutput as UntagPolicyOutput, UntagRoleInput as UntagRoleInput, + UntagRoleInputDict as UntagRoleInputDict, UntagRoleOutput as UntagRoleOutput, UntagSAMLProviderInput as UntagSAMLProviderInput, + UntagSAMLProviderInputDict as UntagSAMLProviderInputDict, UntagSAMLProviderOutput as UntagSAMLProviderOutput, UntagServerCertificateInput as UntagServerCertificateInput, + UntagServerCertificateInputDict as UntagServerCertificateInputDict, UntagServerCertificateOutput as UntagServerCertificateOutput, UntagUserInput as UntagUserInput, + UntagUserInputDict as UntagUserInputDict, UntagUserOutput as UntagUserOutput, UpdateAccessKeyInput as UpdateAccessKeyInput, + UpdateAccessKeyInputDict as UpdateAccessKeyInputDict, UpdateAccessKeyOutput as UpdateAccessKeyOutput, UpdateAccountPasswordPolicyInput as UpdateAccountPasswordPolicyInput, + UpdateAccountPasswordPolicyInputDict as UpdateAccountPasswordPolicyInputDict, UpdateAccountPasswordPolicyOutput as UpdateAccountPasswordPolicyOutput, UpdateAssumeRolePolicyInput as UpdateAssumeRolePolicyInput, + UpdateAssumeRolePolicyInputDict as UpdateAssumeRolePolicyInputDict, UpdateAssumeRolePolicyOutput as UpdateAssumeRolePolicyOutput, UpdateDelegationRequestInput as UpdateDelegationRequestInput, + UpdateDelegationRequestInputDict as UpdateDelegationRequestInputDict, UpdateDelegationRequestOutput as UpdateDelegationRequestOutput, UpdateGroupInput as UpdateGroupInput, + UpdateGroupInputDict as UpdateGroupInputDict, UpdateGroupOutput as UpdateGroupOutput, UpdateLoginProfileInput as UpdateLoginProfileInput, + UpdateLoginProfileInputDict as UpdateLoginProfileInputDict, UpdateLoginProfileOutput as UpdateLoginProfileOutput, UpdateOpenIDConnectProviderThumbprintInput as UpdateOpenIDConnectProviderThumbprintInput, + UpdateOpenIDConnectProviderThumbprintInputDict as UpdateOpenIDConnectProviderThumbprintInputDict, UpdateOpenIDConnectProviderThumbprintOutput as UpdateOpenIDConnectProviderThumbprintOutput, UpdateRoleDescriptionInput as UpdateRoleDescriptionInput, + UpdateRoleDescriptionInputDict as UpdateRoleDescriptionInputDict, UpdateRoleDescriptionOutput as UpdateRoleDescriptionOutput, UpdateRoleInput as UpdateRoleInput, + UpdateRoleInputDict as UpdateRoleInputDict, UpdateRoleOutput as UpdateRoleOutput, UpdateSAMLProviderInput as UpdateSAMLProviderInput, + UpdateSAMLProviderInputDict as UpdateSAMLProviderInputDict, UpdateSAMLProviderOutput as UpdateSAMLProviderOutput, UpdateServerCertificateInput as UpdateServerCertificateInput, + UpdateServerCertificateInputDict as UpdateServerCertificateInputDict, UpdateServerCertificateOutput as UpdateServerCertificateOutput, UpdateServiceSpecificCredentialInput as UpdateServiceSpecificCredentialInput, + UpdateServiceSpecificCredentialInputDict as UpdateServiceSpecificCredentialInputDict, UpdateServiceSpecificCredentialOutput as UpdateServiceSpecificCredentialOutput, UpdateSigningCertificateInput as UpdateSigningCertificateInput, + UpdateSigningCertificateInputDict as UpdateSigningCertificateInputDict, UpdateSigningCertificateOutput as UpdateSigningCertificateOutput, UpdateSSHPublicKeyInput as UpdateSSHPublicKeyInput, + UpdateSSHPublicKeyInputDict as UpdateSSHPublicKeyInputDict, UpdateSSHPublicKeyOutput as UpdateSSHPublicKeyOutput, UpdateUserInput as UpdateUserInput, + UpdateUserInputDict as UpdateUserInputDict, UpdateUserOutput as UpdateUserOutput, UploadServerCertificateInput as UploadServerCertificateInput, + UploadServerCertificateInputDict as UploadServerCertificateInputDict, UploadServerCertificateOutput as UploadServerCertificateOutput, UploadSigningCertificateInput as UploadSigningCertificateInput, + UploadSigningCertificateInputDict as UploadSigningCertificateInputDict, UploadSigningCertificateOutput as UploadSigningCertificateOutput, UploadSSHPublicKeyInput as UploadSSHPublicKeyInput, + UploadSSHPublicKeyInputDict as UploadSSHPublicKeyInputDict, UploadSSHPublicKeyOutput as UploadSSHPublicKeyOutput, User as User, UserDetail as UserDetail, diff --git a/clients/aws-sdk-iam/src/aws_sdk_iam/py.typed b/clients/aws-sdk-iam/src/aws_sdk_iam/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-iam/tests/_typecheck.py b/clients/aws-sdk-iam/tests/_typecheck.py index 17162e1a8..a2e2ea859 100644 --- a/clients/aws-sdk-iam/tests/_typecheck.py +++ b/clients/aws-sdk-iam/tests/_typecheck.py @@ -2,290 +2,425 @@ from typing import Any +from aws_sdk_iam.aio.client import AsyncIAMClient +from aws_sdk_iam.client import IAMClient from aws_sdk_iam.models import ( AcceptDelegationRequestInput, + AcceptDelegationRequestInputDict, AcceptDelegationRequestOutput, AccessDetail, AccessKey, AccessKeyLastUsed, AccessKeyMetadata, AcquireRoleInput, + AcquireRoleInputDict, AcquireRoleOutput, AddClientIDToOpenIDConnectProviderInput, + AddClientIDToOpenIDConnectProviderInputDict, AddClientIDToOpenIDConnectProviderOutput, AddRoleToInstanceProfileInput, + AddRoleToInstanceProfileInputDict, AddRoleToInstanceProfileOutput, AddUserToGroupInput, + AddUserToGroupInputDict, AddUserToGroupOutput, AssociateDelegationRequestInput, + AssociateDelegationRequestInputDict, AssociateDelegationRequestOutput, AttachGroupPolicyInput, + AttachGroupPolicyInputDict, AttachGroupPolicyOutput, AttachRolePolicyInput, + AttachRolePolicyInputDict, AttachRolePolicyOutput, AttachUserPolicyInput, + AttachUserPolicyInputDict, AttachUserPolicyOutput, AttachedPermissionsBoundary, AttachedPolicy, ChangePasswordInput, + ChangePasswordInputDict, ChangePasswordOutput, ContextEntry, + ContextEntryDict, CreateAccessKeyInput, + CreateAccessKeyInputDict, CreateAccessKeyOutput, CreateAccountAliasInput, + CreateAccountAliasInputDict, CreateAccountAliasOutput, CreateDelegationRequestInput, + CreateDelegationRequestInputDict, CreateDelegationRequestOutput, CreateGroupInput, + CreateGroupInputDict, CreateGroupOutput, CreateInstanceProfileInput, + CreateInstanceProfileInputDict, CreateInstanceProfileOutput, CreateLoginProfileInput, + CreateLoginProfileInputDict, CreateLoginProfileOutput, CreateOpenIDConnectProviderInput, + CreateOpenIDConnectProviderInputDict, CreateOpenIDConnectProviderOutput, CreatePolicyInput, + CreatePolicyInputDict, CreatePolicyOutput, CreatePolicyVersionInput, + CreatePolicyVersionInputDict, CreatePolicyVersionOutput, CreateRoleInput, + CreateRoleInputDict, CreateRoleOutput, CreateSAMLProviderInput, + CreateSAMLProviderInputDict, CreateSAMLProviderOutput, CreateServiceLinkedRoleInput, + CreateServiceLinkedRoleInputDict, CreateServiceLinkedRoleOutput, CreateServiceSpecificCredentialInput, + CreateServiceSpecificCredentialInputDict, CreateServiceSpecificCredentialOutput, CreateUserInput, + CreateUserInputDict, CreateUserOutput, CreateVirtualMFADeviceInput, + CreateVirtualMFADeviceInputDict, CreateVirtualMFADeviceOutput, DeactivateMFADeviceInput, + DeactivateMFADeviceInputDict, DeactivateMFADeviceOutput, DelegationPermission, + DelegationPermissionDict, DelegationRequest, DeleteAccessKeyInput, + DeleteAccessKeyInputDict, DeleteAccessKeyOutput, DeleteAccountAliasInput, + DeleteAccountAliasInputDict, DeleteAccountAliasOutput, DeleteAccountPasswordPolicyInput, + DeleteAccountPasswordPolicyInputDict, DeleteAccountPasswordPolicyOutput, DeleteGroupInput, + DeleteGroupInputDict, DeleteGroupOutput, DeleteGroupPolicyInput, + DeleteGroupPolicyInputDict, DeleteGroupPolicyOutput, DeleteInstanceProfileInput, + DeleteInstanceProfileInputDict, DeleteInstanceProfileOutput, DeleteLoginProfileInput, + DeleteLoginProfileInputDict, DeleteLoginProfileOutput, DeleteOpenIDConnectProviderInput, + DeleteOpenIDConnectProviderInputDict, DeleteOpenIDConnectProviderOutput, DeletePolicyInput, + DeletePolicyInputDict, DeletePolicyOutput, DeletePolicyVersionInput, + DeletePolicyVersionInputDict, DeletePolicyVersionOutput, DeleteRoleInput, + DeleteRoleInputDict, DeleteRoleOutput, DeleteRolePermissionsBoundaryInput, + DeleteRolePermissionsBoundaryInputDict, DeleteRolePermissionsBoundaryOutput, DeleteRolePolicyInput, + DeleteRolePolicyInputDict, DeleteRolePolicyOutput, DeleteSAMLProviderInput, + DeleteSAMLProviderInputDict, DeleteSAMLProviderOutput, DeleteSSHPublicKeyInput, + DeleteSSHPublicKeyInputDict, DeleteSSHPublicKeyOutput, DeleteServerCertificateInput, + DeleteServerCertificateInputDict, DeleteServerCertificateOutput, DeleteServiceLinkedRoleInput, + DeleteServiceLinkedRoleInputDict, DeleteServiceLinkedRoleOutput, DeleteServiceSpecificCredentialInput, + DeleteServiceSpecificCredentialInputDict, DeleteServiceSpecificCredentialOutput, DeleteSigningCertificateInput, + DeleteSigningCertificateInputDict, DeleteSigningCertificateOutput, DeleteUserInput, + DeleteUserInputDict, DeleteUserOutput, DeleteUserPermissionsBoundaryInput, + DeleteUserPermissionsBoundaryInputDict, DeleteUserPermissionsBoundaryOutput, DeleteUserPolicyInput, + DeleteUserPolicyInputDict, DeleteUserPolicyOutput, DeleteVirtualMFADeviceInput, + DeleteVirtualMFADeviceInputDict, DeleteVirtualMFADeviceOutput, DeletionTaskFailureReasonType, DetachGroupPolicyInput, + DetachGroupPolicyInputDict, DetachGroupPolicyOutput, DetachRolePolicyInput, + DetachRolePolicyInputDict, DetachRolePolicyOutput, DetachUserPolicyInput, + DetachUserPolicyInputDict, DetachUserPolicyOutput, DisableOrganizationsRootCredentialsManagementInput, + DisableOrganizationsRootCredentialsManagementInputDict, DisableOrganizationsRootCredentialsManagementOutput, DisableOrganizationsRootSessionsInput, + DisableOrganizationsRootSessionsInputDict, DisableOrganizationsRootSessionsOutput, DisableOutboundWebIdentityFederationInput, + DisableOutboundWebIdentityFederationInputDict, DisableOutboundWebIdentityFederationOutput, EnableMFADeviceInput, + EnableMFADeviceInputDict, EnableMFADeviceOutput, EnableOrganizationsRootCredentialsManagementInput, + EnableOrganizationsRootCredentialsManagementInputDict, EnableOrganizationsRootCredentialsManagementOutput, EnableOrganizationsRootSessionsInput, + EnableOrganizationsRootSessionsInputDict, EnableOrganizationsRootSessionsOutput, EnableOutboundWebIdentityFederationInput, + EnableOutboundWebIdentityFederationInputDict, EnableOutboundWebIdentityFederationOutput, EntityDetails, EntityInfo, ErrorDetails, EvaluationResult, GenerateCredentialReportInput, + GenerateCredentialReportInputDict, GenerateCredentialReportOutput, GenerateOrganizationsAccessReportInput, + GenerateOrganizationsAccessReportInputDict, GenerateOrganizationsAccessReportOutput, GenerateServiceLastAccessedDetailsInput, + GenerateServiceLastAccessedDetailsInputDict, GenerateServiceLastAccessedDetailsOutput, GetAccessKeyLastUsedInput, + GetAccessKeyLastUsedInputDict, GetAccessKeyLastUsedOutput, GetAccountAuthorizationDetailsInput, + GetAccountAuthorizationDetailsInputDict, GetAccountAuthorizationDetailsOutput, GetAccountPasswordPolicyInput, + GetAccountPasswordPolicyInputDict, GetAccountPasswordPolicyOutput, GetAccountPropertiesInput, + GetAccountPropertiesInputDict, GetAccountPropertiesOutput, GetAccountSummaryInput, + GetAccountSummaryInputDict, GetAccountSummaryOutput, GetContextKeysForCustomPolicyInput, + GetContextKeysForCustomPolicyInputDict, GetContextKeysForCustomPolicyOutput, GetContextKeysForPrincipalPolicyInput, + GetContextKeysForPrincipalPolicyInputDict, GetContextKeysForPrincipalPolicyOutput, GetCredentialReportInput, + GetCredentialReportInputDict, GetCredentialReportOutput, GetDelegationRequestInput, + GetDelegationRequestInputDict, GetDelegationRequestOutput, GetGroupInput, + GetGroupInputDict, GetGroupOutput, GetGroupPolicyInput, + GetGroupPolicyInputDict, GetGroupPolicyOutput, GetHumanReadableSummaryInput, + GetHumanReadableSummaryInputDict, GetHumanReadableSummaryOutput, GetInstanceProfileInput, + GetInstanceProfileInputDict, GetInstanceProfileOutput, GetLoginProfileInput, + GetLoginProfileInputDict, GetLoginProfileOutput, GetMFADeviceInput, + GetMFADeviceInputDict, GetMFADeviceOutput, GetOpenIDConnectProviderInput, + GetOpenIDConnectProviderInputDict, GetOpenIDConnectProviderOutput, GetOrganizationsAccessReportInput, + GetOrganizationsAccessReportInputDict, GetOrganizationsAccessReportOutput, GetOutboundWebIdentityFederationInfoInput, + GetOutboundWebIdentityFederationInfoInputDict, GetOutboundWebIdentityFederationInfoOutput, GetPolicyInput, + GetPolicyInputDict, GetPolicyOutput, GetPolicyVersionInput, + GetPolicyVersionInputDict, GetPolicyVersionOutput, GetRoleInput, + GetRoleInputDict, GetRoleOutput, GetRolePolicyInput, + GetRolePolicyInputDict, GetRolePolicyOutput, GetRoleTemplateVersionInput, + GetRoleTemplateVersionInputDict, GetRoleTemplateVersionOutput, GetSAMLProviderInput, + GetSAMLProviderInputDict, GetSAMLProviderOutput, GetSSHPublicKeyInput, + GetSSHPublicKeyInputDict, GetSSHPublicKeyOutput, GetServerCertificateInput, + GetServerCertificateInputDict, GetServerCertificateOutput, GetServiceLastAccessedDetailsInput, + GetServiceLastAccessedDetailsInputDict, GetServiceLastAccessedDetailsOutput, GetServiceLastAccessedDetailsWithEntitiesInput, + GetServiceLastAccessedDetailsWithEntitiesInputDict, GetServiceLastAccessedDetailsWithEntitiesOutput, GetServiceLinkedRoleDeletionStatusInput, + GetServiceLinkedRoleDeletionStatusInputDict, GetServiceLinkedRoleDeletionStatusOutput, GetUserInput, + GetUserInputDict, GetUserOutput, GetUserPolicyInput, + GetUserPolicyInputDict, GetUserPolicyOutput, Group, GroupDetail, InlinePolicy, InlinePolicyIdentifierType, + InlinePolicyIdentifierTypeDict, InstanceProfile, ListAccessKeysInput, + ListAccessKeysInputDict, ListAccessKeysOutput, ListAccountAliasesInput, + ListAccountAliasesInputDict, ListAccountAliasesOutput, ListAttachedGroupPoliciesInput, + ListAttachedGroupPoliciesInputDict, ListAttachedGroupPoliciesOutput, ListAttachedRolePoliciesInput, + ListAttachedRolePoliciesInputDict, ListAttachedRolePoliciesOutput, ListAttachedUserPoliciesInput, + ListAttachedUserPoliciesInputDict, ListAttachedUserPoliciesOutput, ListDelegationRequestsInput, + ListDelegationRequestsInputDict, ListDelegationRequestsOutput, ListEntitiesForPolicyInput, + ListEntitiesForPolicyInputDict, ListEntitiesForPolicyOutput, ListGroupPoliciesInput, + ListGroupPoliciesInputDict, ListGroupPoliciesOutput, ListGroupsForUserInput, + ListGroupsForUserInputDict, ListGroupsForUserOutput, ListGroupsInput, + ListGroupsInputDict, ListGroupsOutput, ListInstanceProfileTagsInput, + ListInstanceProfileTagsInputDict, ListInstanceProfileTagsOutput, ListInstanceProfilesForRoleInput, + ListInstanceProfilesForRoleInputDict, ListInstanceProfilesForRoleOutput, ListInstanceProfilesInput, + ListInstanceProfilesInputDict, ListInstanceProfilesOutput, ListMFADeviceTagsInput, + ListMFADeviceTagsInputDict, ListMFADeviceTagsOutput, ListMFADevicesInput, + ListMFADevicesInputDict, ListMFADevicesOutput, ListOpenIDConnectProviderTagsInput, + ListOpenIDConnectProviderTagsInputDict, ListOpenIDConnectProviderTagsOutput, ListOpenIDConnectProvidersInput, + ListOpenIDConnectProvidersInputDict, ListOpenIDConnectProvidersOutput, ListOrganizationsFeaturesInput, + ListOrganizationsFeaturesInputDict, ListOrganizationsFeaturesOutput, ListPoliciesGrantingServiceAccessEntry, ListPoliciesGrantingServiceAccessInput, + ListPoliciesGrantingServiceAccessInputDict, ListPoliciesGrantingServiceAccessOutput, ListPoliciesInput, + ListPoliciesInputDict, ListPoliciesOutput, ListPolicyTagsInput, + ListPolicyTagsInputDict, ListPolicyTagsOutput, ListPolicyVersionsInput, + ListPolicyVersionsInputDict, ListPolicyVersionsOutput, ListRolePoliciesInput, + ListRolePoliciesInputDict, ListRolePoliciesOutput, ListRoleTagsInput, + ListRoleTagsInputDict, ListRoleTagsOutput, ListRolesInput, + ListRolesInputDict, ListRolesOutput, ListSAMLProviderTagsInput, + ListSAMLProviderTagsInputDict, ListSAMLProviderTagsOutput, ListSAMLProvidersInput, + ListSAMLProvidersInputDict, ListSAMLProvidersOutput, ListSSHPublicKeysInput, + ListSSHPublicKeysInputDict, ListSSHPublicKeysOutput, ListServerCertificateTagsInput, + ListServerCertificateTagsInputDict, ListServerCertificateTagsOutput, ListServerCertificatesInput, + ListServerCertificatesInputDict, ListServerCertificatesOutput, ListServiceSpecificCredentialsInput, + ListServiceSpecificCredentialsInputDict, ListServiceSpecificCredentialsOutput, ListSigningCertificatesInput, + ListSigningCertificatesInputDict, ListSigningCertificatesOutput, ListUserPoliciesInput, + ListUserPoliciesInputDict, ListUserPoliciesOutput, ListUserTagsInput, + ListUserTagsInputDict, ListUserTagsOutput, ListUsersInput, + ListUsersInputDict, ListUsersOutput, ListVirtualMFADevicesInput, + ListVirtualMFADevicesInputDict, ListVirtualMFADevicesOutput, LoginProfile, MFADevice, ManagedPolicyDetail, OpenIDConnectProviderListEntry, OrderedOrganizationPolicyType, + OrderedOrganizationPolicyTypeDict, OrganizationsDecisionDetail, ParameterDefinition, PasswordPolicy, @@ -294,36 +429,51 @@ PolicyDetail, PolicyGrantingServiceAccess, PolicyGroup, + PolicyIdentifierDict, PolicyParameter, + PolicyParameterDict, PolicyRole, PolicyUser, PolicyVersion, Position, PutAccountPropertiesInput, + PutAccountPropertiesInputDict, PutAccountPropertiesOutput, PutGroupPolicyInput, + PutGroupPolicyInputDict, PutGroupPolicyOutput, PutRolePermissionsBoundaryInput, + PutRolePermissionsBoundaryInputDict, PutRolePermissionsBoundaryOutput, PutRolePolicyInput, + PutRolePolicyInputDict, PutRolePolicyOutput, PutUserPermissionsBoundaryInput, + PutUserPermissionsBoundaryInputDict, PutUserPermissionsBoundaryOutput, PutUserPolicyInput, + PutUserPolicyInputDict, PutUserPolicyOutput, RejectDelegationRequestInput, + RejectDelegationRequestInputDict, RejectDelegationRequestOutput, RemoveClientIDFromOpenIDConnectProviderInput, + RemoveClientIDFromOpenIDConnectProviderInputDict, RemoveClientIDFromOpenIDConnectProviderOutput, RemoveRoleFromInstanceProfileInput, + RemoveRoleFromInstanceProfileInputDict, RemoveRoleFromInstanceProfileOutput, RemoveUserFromGroupInput, + RemoveUserFromGroupInputDict, RemoveUserFromGroupOutput, ReplacementValueEntry, + ReplacementValueEntryDict, ResetServiceSpecificCredentialInput, + ResetServiceSpecificCredentialInputDict, ResetServiceSpecificCredentialOutput, ResourceSpecificResult, ResyncMFADeviceInput, + ResyncMFADeviceInputDict, ResyncMFADeviceOutput, Role, RoleDetail, @@ -335,6 +485,7 @@ SSHPublicKey, SSHPublicKeyMetadata, SendDelegationTokenInput, + SendDelegationTokenInputDict, SendDelegationTokenOutput, ServerCertificate, ServerCertificateMetadata, @@ -342,86 +493,125 @@ ServiceSpecificCredential, ServiceSpecificCredentialMetadata, SetDefaultPolicyVersionInput, + SetDefaultPolicyVersionInputDict, SetDefaultPolicyVersionOutput, SetSecurityTokenServicePreferencesInput, + SetSecurityTokenServicePreferencesInputDict, SetSecurityTokenServicePreferencesOutput, SigningCertificate, SimulateCustomPolicyInput, + SimulateCustomPolicyInputDict, SimulateCustomPolicyOutput, SimulatePrincipalPolicyInput, + SimulatePrincipalPolicyInputDict, SimulatePrincipalPolicyOutput, SourceRoleTemplate, Statement, Tag, + TagDict, TagInstanceProfileInput, + TagInstanceProfileInputDict, TagInstanceProfileOutput, TagMFADeviceInput, + TagMFADeviceInputDict, TagMFADeviceOutput, TagOpenIDConnectProviderInput, + TagOpenIDConnectProviderInputDict, TagOpenIDConnectProviderOutput, TagPolicyInput, + TagPolicyInputDict, TagPolicyOutput, TagRoleInput, + TagRoleInputDict, TagRoleOutput, TagSAMLProviderInput, + TagSAMLProviderInputDict, TagSAMLProviderOutput, TagServerCertificateInput, + TagServerCertificateInputDict, TagServerCertificateOutput, TagTemplate, TagUserInput, + TagUserInputDict, TagUserOutput, TrackedActionLastAccessed, UntagInstanceProfileInput, + UntagInstanceProfileInputDict, UntagInstanceProfileOutput, UntagMFADeviceInput, + UntagMFADeviceInputDict, UntagMFADeviceOutput, UntagOpenIDConnectProviderInput, + UntagOpenIDConnectProviderInputDict, UntagOpenIDConnectProviderOutput, UntagPolicyInput, + UntagPolicyInputDict, UntagPolicyOutput, UntagRoleInput, + UntagRoleInputDict, UntagRoleOutput, UntagSAMLProviderInput, + UntagSAMLProviderInputDict, UntagSAMLProviderOutput, UntagServerCertificateInput, + UntagServerCertificateInputDict, UntagServerCertificateOutput, UntagUserInput, + UntagUserInputDict, UntagUserOutput, UpdateAccessKeyInput, + UpdateAccessKeyInputDict, UpdateAccessKeyOutput, UpdateAccountPasswordPolicyInput, + UpdateAccountPasswordPolicyInputDict, UpdateAccountPasswordPolicyOutput, UpdateAssumeRolePolicyInput, + UpdateAssumeRolePolicyInputDict, UpdateAssumeRolePolicyOutput, UpdateDelegationRequestInput, + UpdateDelegationRequestInputDict, UpdateDelegationRequestOutput, UpdateGroupInput, + UpdateGroupInputDict, UpdateGroupOutput, UpdateLoginProfileInput, + UpdateLoginProfileInputDict, UpdateLoginProfileOutput, UpdateOpenIDConnectProviderThumbprintInput, + UpdateOpenIDConnectProviderThumbprintInputDict, UpdateOpenIDConnectProviderThumbprintOutput, UpdateRoleDescriptionInput, + UpdateRoleDescriptionInputDict, UpdateRoleDescriptionOutput, UpdateRoleInput, + UpdateRoleInputDict, UpdateRoleOutput, UpdateSAMLProviderInput, + UpdateSAMLProviderInputDict, UpdateSAMLProviderOutput, UpdateSSHPublicKeyInput, + UpdateSSHPublicKeyInputDict, UpdateSSHPublicKeyOutput, UpdateServerCertificateInput, + UpdateServerCertificateInputDict, UpdateServerCertificateOutput, UpdateServiceSpecificCredentialInput, + UpdateServiceSpecificCredentialInputDict, UpdateServiceSpecificCredentialOutput, UpdateSigningCertificateInput, + UpdateSigningCertificateInputDict, UpdateSigningCertificateOutput, UpdateUserInput, + UpdateUserInputDict, UpdateUserOutput, UploadSSHPublicKeyInput, + UploadSSHPublicKeyInputDict, UploadSSHPublicKeyOutput, UploadServerCertificateInput, + UploadServerCertificateInputDict, UploadServerCertificateOutput, UploadSigningCertificateInput, + UploadSigningCertificateInputDict, UploadSigningCertificateOutput, User, UserDetail, @@ -429,8 +619,9 @@ ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -884,3 +1075,2284 @@ User(path=_, user_name=_, user_id=_, arn=_, create_date=_) UserDetail() VirtualMFADevice(serial_number=_) +_params_0: AcceptDelegationRequestInputDict = {"delegation_request_id": _} +_params_1: AcquireRoleInputDict = {"template_arn": _} +_params_2: AddClientIDToOpenIDConnectProviderInputDict = { + "open_id_connect_provider_arn": _, + "client_id": _, +} +_params_3: AddRoleToInstanceProfileInputDict = { + "instance_profile_name": _, + "role_name": _, +} +_params_4: AddUserToGroupInputDict = {"group_name": _, "user_name": _} +_params_5: AssociateDelegationRequestInputDict = {"delegation_request_id": _} +_params_6: AttachGroupPolicyInputDict = {"group_name": _, "policy_arn": _} +_params_7: AttachRolePolicyInputDict = {"role_name": _, "policy_arn": _} +_params_8: AttachUserPolicyInputDict = {"user_name": _, "policy_arn": _} +_params_9: ChangePasswordInputDict = {"old_password": _, "new_password": _} +_params_10: ContextEntryDict = {} +_params_11: CreateAccessKeyInputDict = {} +_params_12: CreateAccountAliasInputDict = {"account_alias": _} +_params_13: CreateDelegationRequestInputDict = { + "description": _, + "permissions": _, + "requestor_workflow_id": _, + "notification_channel": _, + "session_duration": _, +} +_params_14: CreateGroupInputDict = {"group_name": _} +_params_15: CreateInstanceProfileInputDict = {"instance_profile_name": _} +_params_16: CreateLoginProfileInputDict = {} +_params_17: CreateOpenIDConnectProviderInputDict = {"url": _} +_params_18: CreatePolicyInputDict = {"policy_name": _, "policy_document": _} +_params_19: CreatePolicyVersionInputDict = {"policy_arn": _, "policy_document": _} +_params_20: CreateRoleInputDict = {"role_name": _, "assume_role_policy_document": _} +_params_21: CreateSAMLProviderInputDict = {"saml_metadata_document": _, "name": _} +_params_22: CreateServiceLinkedRoleInputDict = {"aws_service_name": _} +_params_23: CreateServiceSpecificCredentialInputDict = { + "user_name": _, + "service_name": _, +} +_params_24: CreateUserInputDict = {"user_name": _} +_params_25: CreateVirtualMFADeviceInputDict = {"virtual_mfa_device_name": _} +_params_26: DeactivateMFADeviceInputDict = {"serial_number": _} +_params_27: DelegationPermissionDict = {} +_params_28: DeleteAccessKeyInputDict = {"access_key_id": _} +_params_29: DeleteAccountAliasInputDict = {"account_alias": _} +_params_30: DeleteAccountPasswordPolicyInputDict = {} +_params_31: DeleteGroupInputDict = {"group_name": _} +_params_32: DeleteGroupPolicyInputDict = {"group_name": _, "policy_name": _} +_params_33: DeleteInstanceProfileInputDict = {"instance_profile_name": _} +_params_34: DeleteLoginProfileInputDict = {} +_params_35: DeleteOpenIDConnectProviderInputDict = {"open_id_connect_provider_arn": _} +_params_36: DeletePolicyInputDict = {"policy_arn": _} +_params_37: DeletePolicyVersionInputDict = {"policy_arn": _, "version_id": _} +_params_38: DeleteRoleInputDict = {"role_name": _} +_params_39: DeleteRolePermissionsBoundaryInputDict = {"role_name": _} +_params_40: DeleteRolePolicyInputDict = {"role_name": _, "policy_name": _} +_params_41: DeleteSAMLProviderInputDict = {"saml_provider_arn": _} +_params_42: DeleteServerCertificateInputDict = {"server_certificate_name": _} +_params_43: DeleteServiceLinkedRoleInputDict = {"role_name": _} +_params_44: DeleteServiceSpecificCredentialInputDict = { + "service_specific_credential_id": _ +} +_params_45: DeleteSigningCertificateInputDict = {"certificate_id": _} +_params_46: DeleteSSHPublicKeyInputDict = {"user_name": _, "ssh_public_key_id": _} +_params_47: DeleteUserInputDict = {"user_name": _} +_params_48: DeleteUserPermissionsBoundaryInputDict = {"user_name": _} +_params_49: DeleteUserPolicyInputDict = {"user_name": _, "policy_name": _} +_params_50: DeleteVirtualMFADeviceInputDict = {"serial_number": _} +_params_51: DetachGroupPolicyInputDict = {"group_name": _, "policy_arn": _} +_params_52: DetachRolePolicyInputDict = {"role_name": _, "policy_arn": _} +_params_53: DetachUserPolicyInputDict = {"user_name": _, "policy_arn": _} +_params_54: DisableOrganizationsRootCredentialsManagementInputDict = {} +_params_55: DisableOrganizationsRootSessionsInputDict = {} +_params_56: DisableOutboundWebIdentityFederationInputDict = {} +_params_57: EnableMFADeviceInputDict = { + "user_name": _, + "serial_number": _, + "authentication_code1": _, + "authentication_code2": _, +} +_params_58: EnableOrganizationsRootCredentialsManagementInputDict = {} +_params_59: EnableOrganizationsRootSessionsInputDict = {} +_params_60: EnableOutboundWebIdentityFederationInputDict = {} +_params_61: GenerateCredentialReportInputDict = {} +_params_62: GenerateOrganizationsAccessReportInputDict = {"entity_path": _} +_params_63: GenerateServiceLastAccessedDetailsInputDict = {"arn": _} +_params_64: GetAccessKeyLastUsedInputDict = {"access_key_id": _} +_params_65: GetAccountAuthorizationDetailsInputDict = {} +_params_66: GetAccountPasswordPolicyInputDict = {} +_params_67: GetAccountPropertiesInputDict = {} +_params_68: GetAccountSummaryInputDict = {} +_params_69: GetContextKeysForCustomPolicyInputDict = {"policy_input_list": _} +_params_70: GetContextKeysForPrincipalPolicyInputDict = {"policy_source_arn": _} +_params_71: GetCredentialReportInputDict = {} +_params_72: GetDelegationRequestInputDict = {"delegation_request_id": _} +_params_73: GetGroupInputDict = {"group_name": _} +_params_74: GetGroupPolicyInputDict = {"group_name": _, "policy_name": _} +_params_75: GetHumanReadableSummaryInputDict = {"entity_arn": _} +_params_76: GetInstanceProfileInputDict = {"instance_profile_name": _} +_params_77: GetLoginProfileInputDict = {} +_params_78: GetMFADeviceInputDict = {"serial_number": _} +_params_79: GetOpenIDConnectProviderInputDict = {"open_id_connect_provider_arn": _} +_params_80: GetOrganizationsAccessReportInputDict = {"job_id": _} +_params_81: GetOutboundWebIdentityFederationInfoInputDict = {} +_params_82: GetPolicyInputDict = {"policy_arn": _} +_params_83: GetPolicyVersionInputDict = {"policy_arn": _, "version_id": _} +_params_84: GetRoleInputDict = {"role_name": _} +_params_85: GetRolePolicyInputDict = {"role_name": _, "policy_name": _} +_params_86: GetRoleTemplateVersionInputDict = {"template_arn": _} +_params_87: GetSAMLProviderInputDict = {"saml_provider_arn": _} +_params_88: GetServerCertificateInputDict = {"server_certificate_name": _} +_params_89: GetServiceLastAccessedDetailsInputDict = {"job_id": _} +_params_90: GetServiceLastAccessedDetailsWithEntitiesInputDict = { + "job_id": _, + "service_namespace": _, +} +_params_91: GetServiceLinkedRoleDeletionStatusInputDict = {"deletion_task_id": _} +_params_92: GetSSHPublicKeyInputDict = { + "user_name": _, + "ssh_public_key_id": _, + "encoding": _, +} +_params_93: GetUserInputDict = {} +_params_94: GetUserPolicyInputDict = {"user_name": _, "policy_name": _} +_params_95: InlinePolicyIdentifierTypeDict = { + "policy_name": _, + "attachment_type": _, + "attachment_name": _, +} +_params_96: ListAccessKeysInputDict = {} +_params_97: ListAccountAliasesInputDict = {} +_params_98: ListAttachedGroupPoliciesInputDict = {"group_name": _} +_params_99: ListAttachedRolePoliciesInputDict = {"role_name": _} +_params_100: ListAttachedUserPoliciesInputDict = {"user_name": _} +_params_101: ListDelegationRequestsInputDict = {} +_params_102: ListEntitiesForPolicyInputDict = {"policy_arn": _} +_params_103: ListGroupPoliciesInputDict = {"group_name": _} +_params_104: ListGroupsForUserInputDict = {"user_name": _} +_params_105: ListGroupsInputDict = {} +_params_106: ListInstanceProfilesForRoleInputDict = {"role_name": _} +_params_107: ListInstanceProfilesInputDict = {} +_params_108: ListInstanceProfileTagsInputDict = {"instance_profile_name": _} +_params_109: ListMFADevicesInputDict = {} +_params_110: ListMFADeviceTagsInputDict = {"serial_number": _} +_params_111: ListOpenIDConnectProvidersInputDict = {} +_params_112: ListOpenIDConnectProviderTagsInputDict = { + "open_id_connect_provider_arn": _ +} +_params_113: ListOrganizationsFeaturesInputDict = {} +_params_114: ListPoliciesGrantingServiceAccessInputDict = { + "arn": _, + "service_namespaces": _, +} +_params_115: ListPoliciesInputDict = {} +_params_116: ListPolicyTagsInputDict = {"policy_arn": _} +_params_117: ListPolicyVersionsInputDict = {"policy_arn": _} +_params_118: ListRolePoliciesInputDict = {"role_name": _} +_params_119: ListRolesInputDict = {} +_params_120: ListRoleTagsInputDict = {"role_name": _} +_params_121: ListSAMLProvidersInputDict = {} +_params_122: ListSAMLProviderTagsInputDict = {"saml_provider_arn": _} +_params_123: ListServerCertificatesInputDict = {} +_params_124: ListServerCertificateTagsInputDict = {"server_certificate_name": _} +_params_125: ListServiceSpecificCredentialsInputDict = {} +_params_126: ListSigningCertificatesInputDict = {} +_params_127: ListSSHPublicKeysInputDict = {} +_params_128: ListUserPoliciesInputDict = {"user_name": _} +_params_129: ListUsersInputDict = {} +_params_130: ListUserTagsInputDict = {"user_name": _} +_params_131: ListVirtualMFADevicesInputDict = {} +_params_132: OrderedOrganizationPolicyTypeDict = {} +_params_133: PolicyIdentifierDict = {"policy_type": _} +_params_134: PolicyParameterDict = {} +_params_135: PutAccountPropertiesInputDict = {"properties": _} +_params_136: PutGroupPolicyInputDict = { + "group_name": _, + "policy_name": _, + "policy_document": _, +} +_params_137: PutRolePermissionsBoundaryInputDict = { + "role_name": _, + "permissions_boundary": _, +} +_params_138: PutRolePolicyInputDict = { + "role_name": _, + "policy_name": _, + "policy_document": _, +} +_params_139: PutUserPermissionsBoundaryInputDict = { + "user_name": _, + "permissions_boundary": _, +} +_params_140: PutUserPolicyInputDict = { + "user_name": _, + "policy_name": _, + "policy_document": _, +} +_params_141: RejectDelegationRequestInputDict = {"delegation_request_id": _} +_params_142: RemoveClientIDFromOpenIDConnectProviderInputDict = { + "open_id_connect_provider_arn": _, + "client_id": _, +} +_params_143: RemoveRoleFromInstanceProfileInputDict = { + "instance_profile_name": _, + "role_name": _, +} +_params_144: RemoveUserFromGroupInputDict = {"group_name": _, "user_name": _} +_params_145: ReplacementValueEntryDict = {"values": _} +_params_146: ResetServiceSpecificCredentialInputDict = { + "service_specific_credential_id": _ +} +_params_147: ResyncMFADeviceInputDict = { + "user_name": _, + "serial_number": _, + "authentication_code1": _, + "authentication_code2": _, +} +_params_148: SendDelegationTokenInputDict = {"delegation_request_id": _} +_params_149: SetDefaultPolicyVersionInputDict = {"policy_arn": _, "version_id": _} +_params_150: SetSecurityTokenServicePreferencesInputDict = { + "global_endpoint_token_version": _ +} +_params_151: SimulateCustomPolicyInputDict = {"policy_input_list": _, "action_names": _} +_params_152: SimulatePrincipalPolicyInputDict = { + "policy_source_arn": _, + "action_names": _, +} +_params_153: TagDict = {"key": _, "value": _} +_params_154: TagInstanceProfileInputDict = {"instance_profile_name": _, "tags": _} +_params_155: TagMFADeviceInputDict = {"serial_number": _, "tags": _} +_params_156: TagOpenIDConnectProviderInputDict = { + "open_id_connect_provider_arn": _, + "tags": _, +} +_params_157: TagPolicyInputDict = {"policy_arn": _, "tags": _} +_params_158: TagRoleInputDict = {"role_name": _, "tags": _} +_params_159: TagSAMLProviderInputDict = {"saml_provider_arn": _, "tags": _} +_params_160: TagServerCertificateInputDict = {"server_certificate_name": _, "tags": _} +_params_161: TagUserInputDict = {"user_name": _, "tags": _} +_params_162: UntagInstanceProfileInputDict = {"instance_profile_name": _, "tag_keys": _} +_params_163: UntagMFADeviceInputDict = {"serial_number": _, "tag_keys": _} +_params_164: UntagOpenIDConnectProviderInputDict = { + "open_id_connect_provider_arn": _, + "tag_keys": _, +} +_params_165: UntagPolicyInputDict = {"policy_arn": _, "tag_keys": _} +_params_166: UntagRoleInputDict = {"role_name": _, "tag_keys": _} +_params_167: UntagSAMLProviderInputDict = {"saml_provider_arn": _, "tag_keys": _} +_params_168: UntagServerCertificateInputDict = { + "server_certificate_name": _, + "tag_keys": _, +} +_params_169: UntagUserInputDict = {"user_name": _, "tag_keys": _} +_params_170: UpdateAccessKeyInputDict = {"access_key_id": _, "status": _} +_params_171: UpdateAccountPasswordPolicyInputDict = {} +_params_172: UpdateAssumeRolePolicyInputDict = {"role_name": _, "policy_document": _} +_params_173: UpdateDelegationRequestInputDict = {"delegation_request_id": _} +_params_174: UpdateGroupInputDict = {"group_name": _} +_params_175: UpdateLoginProfileInputDict = {"user_name": _} +_params_176: UpdateOpenIDConnectProviderThumbprintInputDict = { + "open_id_connect_provider_arn": _, + "thumbprint_list": _, +} +_params_177: UpdateRoleDescriptionInputDict = {"role_name": _, "description": _} +_params_178: UpdateRoleInputDict = {"role_name": _} +_params_179: UpdateSAMLProviderInputDict = {"saml_provider_arn": _} +_params_180: UpdateServerCertificateInputDict = {"server_certificate_name": _} +_params_181: UpdateServiceSpecificCredentialInputDict = { + "service_specific_credential_id": _, + "status": _, +} +_params_182: UpdateSigningCertificateInputDict = {"certificate_id": _, "status": _} +_params_183: UpdateSSHPublicKeyInputDict = { + "user_name": _, + "ssh_public_key_id": _, + "status": _, +} +_params_184: UpdateUserInputDict = {"user_name": _} +_params_185: UploadServerCertificateInputDict = { + "server_certificate_name": _, + "certificate_body": _, + "private_key": _, +} +_params_186: UploadSigningCertificateInputDict = {"certificate_body": _} +_params_187: UploadSSHPublicKeyInputDict = {"user_name": _, "ssh_public_key_body": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncIAMClient) -> None: + pass + await client.accept_delegation_request(delegation_request_id=_) + await client.accept_delegation_request(**_request(AcceptDelegationRequestInputDict)) + await client.accept_delegation_request(_request(AcceptDelegationRequestInput)) + await client.accept_delegation_request(_request(AcceptDelegationRequestInputDict)) + await client.acquire_role(template_arn=_) + await client.acquire_role(**_request(AcquireRoleInputDict)) + await client.acquire_role(_request(AcquireRoleInput)) + await client.acquire_role(_request(AcquireRoleInputDict)) + await client.add_client_id_to_open_id_connect_provider( + open_id_connect_provider_arn=_, client_id=_ + ) + await client.add_client_id_to_open_id_connect_provider( + **_request(AddClientIDToOpenIDConnectProviderInputDict) + ) + await client.add_client_id_to_open_id_connect_provider( + _request(AddClientIDToOpenIDConnectProviderInput) + ) + await client.add_client_id_to_open_id_connect_provider( + _request(AddClientIDToOpenIDConnectProviderInputDict) + ) + await client.add_role_to_instance_profile(instance_profile_name=_, role_name=_) + await client.add_role_to_instance_profile( + **_request(AddRoleToInstanceProfileInputDict) + ) + await client.add_role_to_instance_profile(_request(AddRoleToInstanceProfileInput)) + await client.add_role_to_instance_profile( + _request(AddRoleToInstanceProfileInputDict) + ) + await client.add_user_to_group(group_name=_, user_name=_) + await client.add_user_to_group(**_request(AddUserToGroupInputDict)) + await client.add_user_to_group(_request(AddUserToGroupInput)) + await client.add_user_to_group(_request(AddUserToGroupInputDict)) + await client.associate_delegation_request(delegation_request_id=_) + await client.associate_delegation_request( + **_request(AssociateDelegationRequestInputDict) + ) + await client.associate_delegation_request(_request(AssociateDelegationRequestInput)) + await client.associate_delegation_request( + _request(AssociateDelegationRequestInputDict) + ) + await client.attach_group_policy(group_name=_, policy_arn=_) + await client.attach_group_policy(**_request(AttachGroupPolicyInputDict)) + await client.attach_group_policy(_request(AttachGroupPolicyInput)) + await client.attach_group_policy(_request(AttachGroupPolicyInputDict)) + await client.attach_role_policy(role_name=_, policy_arn=_) + await client.attach_role_policy(**_request(AttachRolePolicyInputDict)) + await client.attach_role_policy(_request(AttachRolePolicyInput)) + await client.attach_role_policy(_request(AttachRolePolicyInputDict)) + await client.attach_user_policy(user_name=_, policy_arn=_) + await client.attach_user_policy(**_request(AttachUserPolicyInputDict)) + await client.attach_user_policy(_request(AttachUserPolicyInput)) + await client.attach_user_policy(_request(AttachUserPolicyInputDict)) + await client.change_password(old_password=_, new_password=_) + await client.change_password(**_request(ChangePasswordInputDict)) + await client.change_password(_request(ChangePasswordInput)) + await client.change_password(_request(ChangePasswordInputDict)) + await client.create_access_key() + await client.create_access_key(**_request(CreateAccessKeyInputDict)) + await client.create_access_key(_request(CreateAccessKeyInput)) + await client.create_access_key(_request(CreateAccessKeyInputDict)) + await client.create_account_alias(account_alias=_) + await client.create_account_alias(**_request(CreateAccountAliasInputDict)) + await client.create_account_alias(_request(CreateAccountAliasInput)) + await client.create_account_alias(_request(CreateAccountAliasInputDict)) + await client.create_delegation_request( + description=_, + permissions=_, + requestor_workflow_id=_, + notification_channel=_, + session_duration=_, + ) + await client.create_delegation_request(**_request(CreateDelegationRequestInputDict)) + await client.create_delegation_request(_request(CreateDelegationRequestInput)) + await client.create_delegation_request(_request(CreateDelegationRequestInputDict)) + await client.create_group(group_name=_) + await client.create_group(**_request(CreateGroupInputDict)) + await client.create_group(_request(CreateGroupInput)) + await client.create_group(_request(CreateGroupInputDict)) + await client.create_instance_profile(instance_profile_name=_) + await client.create_instance_profile(**_request(CreateInstanceProfileInputDict)) + await client.create_instance_profile(_request(CreateInstanceProfileInput)) + await client.create_instance_profile(_request(CreateInstanceProfileInputDict)) + await client.create_login_profile() + await client.create_login_profile(**_request(CreateLoginProfileInputDict)) + await client.create_login_profile(_request(CreateLoginProfileInput)) + await client.create_login_profile(_request(CreateLoginProfileInputDict)) + await client.create_open_id_connect_provider(url=_) + await client.create_open_id_connect_provider( + **_request(CreateOpenIDConnectProviderInputDict) + ) + await client.create_open_id_connect_provider( + _request(CreateOpenIDConnectProviderInput) + ) + await client.create_open_id_connect_provider( + _request(CreateOpenIDConnectProviderInputDict) + ) + await client.create_policy(policy_name=_, policy_document=_) + await client.create_policy(**_request(CreatePolicyInputDict)) + await client.create_policy(_request(CreatePolicyInput)) + await client.create_policy(_request(CreatePolicyInputDict)) + await client.create_policy_version(policy_arn=_, policy_document=_) + await client.create_policy_version(**_request(CreatePolicyVersionInputDict)) + await client.create_policy_version(_request(CreatePolicyVersionInput)) + await client.create_policy_version(_request(CreatePolicyVersionInputDict)) + await client.create_role(role_name=_, assume_role_policy_document=_) + await client.create_role(**_request(CreateRoleInputDict)) + await client.create_role(_request(CreateRoleInput)) + await client.create_role(_request(CreateRoleInputDict)) + await client.create_saml_provider(saml_metadata_document=_, name=_) + await client.create_saml_provider(**_request(CreateSAMLProviderInputDict)) + await client.create_saml_provider(_request(CreateSAMLProviderInput)) + await client.create_saml_provider(_request(CreateSAMLProviderInputDict)) + await client.create_service_linked_role(aws_service_name=_) + await client.create_service_linked_role( + **_request(CreateServiceLinkedRoleInputDict) + ) + await client.create_service_linked_role(_request(CreateServiceLinkedRoleInput)) + await client.create_service_linked_role(_request(CreateServiceLinkedRoleInputDict)) + await client.create_service_specific_credential(user_name=_, service_name=_) + await client.create_service_specific_credential( + **_request(CreateServiceSpecificCredentialInputDict) + ) + await client.create_service_specific_credential( + _request(CreateServiceSpecificCredentialInput) + ) + await client.create_service_specific_credential( + _request(CreateServiceSpecificCredentialInputDict) + ) + await client.create_user(user_name=_) + await client.create_user(**_request(CreateUserInputDict)) + await client.create_user(_request(CreateUserInput)) + await client.create_user(_request(CreateUserInputDict)) + await client.create_virtual_mfa_device(virtual_mfa_device_name=_) + await client.create_virtual_mfa_device(**_request(CreateVirtualMFADeviceInputDict)) + await client.create_virtual_mfa_device(_request(CreateVirtualMFADeviceInput)) + await client.create_virtual_mfa_device(_request(CreateVirtualMFADeviceInputDict)) + await client.deactivate_mfa_device(serial_number=_) + await client.deactivate_mfa_device(**_request(DeactivateMFADeviceInputDict)) + await client.deactivate_mfa_device(_request(DeactivateMFADeviceInput)) + await client.deactivate_mfa_device(_request(DeactivateMFADeviceInputDict)) + await client.delete_access_key(access_key_id=_) + await client.delete_access_key(**_request(DeleteAccessKeyInputDict)) + await client.delete_access_key(_request(DeleteAccessKeyInput)) + await client.delete_access_key(_request(DeleteAccessKeyInputDict)) + await client.delete_account_alias(account_alias=_) + await client.delete_account_alias(**_request(DeleteAccountAliasInputDict)) + await client.delete_account_alias(_request(DeleteAccountAliasInput)) + await client.delete_account_alias(_request(DeleteAccountAliasInputDict)) + await client.delete_account_password_policy() + await client.delete_account_password_policy( + **_request(DeleteAccountPasswordPolicyInputDict) + ) + await client.delete_account_password_policy( + _request(DeleteAccountPasswordPolicyInput) + ) + await client.delete_account_password_policy( + _request(DeleteAccountPasswordPolicyInputDict) + ) + await client.delete_group(group_name=_) + await client.delete_group(**_request(DeleteGroupInputDict)) + await client.delete_group(_request(DeleteGroupInput)) + await client.delete_group(_request(DeleteGroupInputDict)) + await client.delete_group_policy(group_name=_, policy_name=_) + await client.delete_group_policy(**_request(DeleteGroupPolicyInputDict)) + await client.delete_group_policy(_request(DeleteGroupPolicyInput)) + await client.delete_group_policy(_request(DeleteGroupPolicyInputDict)) + await client.delete_instance_profile(instance_profile_name=_) + await client.delete_instance_profile(**_request(DeleteInstanceProfileInputDict)) + await client.delete_instance_profile(_request(DeleteInstanceProfileInput)) + await client.delete_instance_profile(_request(DeleteInstanceProfileInputDict)) + await client.delete_login_profile() + await client.delete_login_profile(**_request(DeleteLoginProfileInputDict)) + await client.delete_login_profile(_request(DeleteLoginProfileInput)) + await client.delete_login_profile(_request(DeleteLoginProfileInputDict)) + await client.delete_open_id_connect_provider(open_id_connect_provider_arn=_) + await client.delete_open_id_connect_provider( + **_request(DeleteOpenIDConnectProviderInputDict) + ) + await client.delete_open_id_connect_provider( + _request(DeleteOpenIDConnectProviderInput) + ) + await client.delete_open_id_connect_provider( + _request(DeleteOpenIDConnectProviderInputDict) + ) + await client.delete_policy(policy_arn=_) + await client.delete_policy(**_request(DeletePolicyInputDict)) + await client.delete_policy(_request(DeletePolicyInput)) + await client.delete_policy(_request(DeletePolicyInputDict)) + await client.delete_policy_version(policy_arn=_, version_id=_) + await client.delete_policy_version(**_request(DeletePolicyVersionInputDict)) + await client.delete_policy_version(_request(DeletePolicyVersionInput)) + await client.delete_policy_version(_request(DeletePolicyVersionInputDict)) + await client.delete_role(role_name=_) + await client.delete_role(**_request(DeleteRoleInputDict)) + await client.delete_role(_request(DeleteRoleInput)) + await client.delete_role(_request(DeleteRoleInputDict)) + await client.delete_role_permissions_boundary(role_name=_) + await client.delete_role_permissions_boundary( + **_request(DeleteRolePermissionsBoundaryInputDict) + ) + await client.delete_role_permissions_boundary( + _request(DeleteRolePermissionsBoundaryInput) + ) + await client.delete_role_permissions_boundary( + _request(DeleteRolePermissionsBoundaryInputDict) + ) + await client.delete_role_policy(role_name=_, policy_name=_) + await client.delete_role_policy(**_request(DeleteRolePolicyInputDict)) + await client.delete_role_policy(_request(DeleteRolePolicyInput)) + await client.delete_role_policy(_request(DeleteRolePolicyInputDict)) + await client.delete_saml_provider(saml_provider_arn=_) + await client.delete_saml_provider(**_request(DeleteSAMLProviderInputDict)) + await client.delete_saml_provider(_request(DeleteSAMLProviderInput)) + await client.delete_saml_provider(_request(DeleteSAMLProviderInputDict)) + await client.delete_server_certificate(server_certificate_name=_) + await client.delete_server_certificate(**_request(DeleteServerCertificateInputDict)) + await client.delete_server_certificate(_request(DeleteServerCertificateInput)) + await client.delete_server_certificate(_request(DeleteServerCertificateInputDict)) + await client.delete_service_linked_role(role_name=_) + await client.delete_service_linked_role( + **_request(DeleteServiceLinkedRoleInputDict) + ) + await client.delete_service_linked_role(_request(DeleteServiceLinkedRoleInput)) + await client.delete_service_linked_role(_request(DeleteServiceLinkedRoleInputDict)) + await client.delete_service_specific_credential(service_specific_credential_id=_) + await client.delete_service_specific_credential( + **_request(DeleteServiceSpecificCredentialInputDict) + ) + await client.delete_service_specific_credential( + _request(DeleteServiceSpecificCredentialInput) + ) + await client.delete_service_specific_credential( + _request(DeleteServiceSpecificCredentialInputDict) + ) + await client.delete_signing_certificate(certificate_id=_) + await client.delete_signing_certificate( + **_request(DeleteSigningCertificateInputDict) + ) + await client.delete_signing_certificate(_request(DeleteSigningCertificateInput)) + await client.delete_signing_certificate(_request(DeleteSigningCertificateInputDict)) + await client.delete_ssh_public_key(user_name=_, ssh_public_key_id=_) + await client.delete_ssh_public_key(**_request(DeleteSSHPublicKeyInputDict)) + await client.delete_ssh_public_key(_request(DeleteSSHPublicKeyInput)) + await client.delete_ssh_public_key(_request(DeleteSSHPublicKeyInputDict)) + await client.delete_user(user_name=_) + await client.delete_user(**_request(DeleteUserInputDict)) + await client.delete_user(_request(DeleteUserInput)) + await client.delete_user(_request(DeleteUserInputDict)) + await client.delete_user_permissions_boundary(user_name=_) + await client.delete_user_permissions_boundary( + **_request(DeleteUserPermissionsBoundaryInputDict) + ) + await client.delete_user_permissions_boundary( + _request(DeleteUserPermissionsBoundaryInput) + ) + await client.delete_user_permissions_boundary( + _request(DeleteUserPermissionsBoundaryInputDict) + ) + await client.delete_user_policy(user_name=_, policy_name=_) + await client.delete_user_policy(**_request(DeleteUserPolicyInputDict)) + await client.delete_user_policy(_request(DeleteUserPolicyInput)) + await client.delete_user_policy(_request(DeleteUserPolicyInputDict)) + await client.delete_virtual_mfa_device(serial_number=_) + await client.delete_virtual_mfa_device(**_request(DeleteVirtualMFADeviceInputDict)) + await client.delete_virtual_mfa_device(_request(DeleteVirtualMFADeviceInput)) + await client.delete_virtual_mfa_device(_request(DeleteVirtualMFADeviceInputDict)) + await client.detach_group_policy(group_name=_, policy_arn=_) + await client.detach_group_policy(**_request(DetachGroupPolicyInputDict)) + await client.detach_group_policy(_request(DetachGroupPolicyInput)) + await client.detach_group_policy(_request(DetachGroupPolicyInputDict)) + await client.detach_role_policy(role_name=_, policy_arn=_) + await client.detach_role_policy(**_request(DetachRolePolicyInputDict)) + await client.detach_role_policy(_request(DetachRolePolicyInput)) + await client.detach_role_policy(_request(DetachRolePolicyInputDict)) + await client.detach_user_policy(user_name=_, policy_arn=_) + await client.detach_user_policy(**_request(DetachUserPolicyInputDict)) + await client.detach_user_policy(_request(DetachUserPolicyInput)) + await client.detach_user_policy(_request(DetachUserPolicyInputDict)) + await client.disable_organizations_root_credentials_management() + await client.disable_organizations_root_credentials_management( + **_request(DisableOrganizationsRootCredentialsManagementInputDict) + ) + await client.disable_organizations_root_credentials_management( + _request(DisableOrganizationsRootCredentialsManagementInput) + ) + await client.disable_organizations_root_credentials_management( + _request(DisableOrganizationsRootCredentialsManagementInputDict) + ) + await client.disable_organizations_root_sessions() + await client.disable_organizations_root_sessions( + **_request(DisableOrganizationsRootSessionsInputDict) + ) + await client.disable_organizations_root_sessions( + _request(DisableOrganizationsRootSessionsInput) + ) + await client.disable_organizations_root_sessions( + _request(DisableOrganizationsRootSessionsInputDict) + ) + await client.disable_outbound_web_identity_federation() + await client.disable_outbound_web_identity_federation( + **_request(DisableOutboundWebIdentityFederationInputDict) + ) + await client.disable_outbound_web_identity_federation( + _request(DisableOutboundWebIdentityFederationInput) + ) + await client.disable_outbound_web_identity_federation( + _request(DisableOutboundWebIdentityFederationInputDict) + ) + await client.enable_mfa_device( + user_name=_, serial_number=_, authentication_code1=_, authentication_code2=_ + ) + await client.enable_mfa_device(**_request(EnableMFADeviceInputDict)) + await client.enable_mfa_device(_request(EnableMFADeviceInput)) + await client.enable_mfa_device(_request(EnableMFADeviceInputDict)) + await client.enable_organizations_root_credentials_management() + await client.enable_organizations_root_credentials_management( + **_request(EnableOrganizationsRootCredentialsManagementInputDict) + ) + await client.enable_organizations_root_credentials_management( + _request(EnableOrganizationsRootCredentialsManagementInput) + ) + await client.enable_organizations_root_credentials_management( + _request(EnableOrganizationsRootCredentialsManagementInputDict) + ) + await client.enable_organizations_root_sessions() + await client.enable_organizations_root_sessions( + **_request(EnableOrganizationsRootSessionsInputDict) + ) + await client.enable_organizations_root_sessions( + _request(EnableOrganizationsRootSessionsInput) + ) + await client.enable_organizations_root_sessions( + _request(EnableOrganizationsRootSessionsInputDict) + ) + await client.enable_outbound_web_identity_federation() + await client.enable_outbound_web_identity_federation( + **_request(EnableOutboundWebIdentityFederationInputDict) + ) + await client.enable_outbound_web_identity_federation( + _request(EnableOutboundWebIdentityFederationInput) + ) + await client.enable_outbound_web_identity_federation( + _request(EnableOutboundWebIdentityFederationInputDict) + ) + await client.generate_credential_report() + await client.generate_credential_report( + **_request(GenerateCredentialReportInputDict) + ) + await client.generate_credential_report(_request(GenerateCredentialReportInput)) + await client.generate_credential_report(_request(GenerateCredentialReportInputDict)) + await client.generate_organizations_access_report(entity_path=_) + await client.generate_organizations_access_report( + **_request(GenerateOrganizationsAccessReportInputDict) + ) + await client.generate_organizations_access_report( + _request(GenerateOrganizationsAccessReportInput) + ) + await client.generate_organizations_access_report( + _request(GenerateOrganizationsAccessReportInputDict) + ) + await client.generate_service_last_accessed_details(arn=_) + await client.generate_service_last_accessed_details( + **_request(GenerateServiceLastAccessedDetailsInputDict) + ) + await client.generate_service_last_accessed_details( + _request(GenerateServiceLastAccessedDetailsInput) + ) + await client.generate_service_last_accessed_details( + _request(GenerateServiceLastAccessedDetailsInputDict) + ) + await client.get_access_key_last_used(access_key_id=_) + await client.get_access_key_last_used(**_request(GetAccessKeyLastUsedInputDict)) + await client.get_access_key_last_used(_request(GetAccessKeyLastUsedInput)) + await client.get_access_key_last_used(_request(GetAccessKeyLastUsedInputDict)) + await client.get_account_authorization_details() + await client.get_account_authorization_details( + **_request(GetAccountAuthorizationDetailsInputDict) + ) + await client.get_account_authorization_details( + _request(GetAccountAuthorizationDetailsInput) + ) + await client.get_account_authorization_details( + _request(GetAccountAuthorizationDetailsInputDict) + ) + await client.get_account_password_policy() + await client.get_account_password_policy( + **_request(GetAccountPasswordPolicyInputDict) + ) + await client.get_account_password_policy(_request(GetAccountPasswordPolicyInput)) + await client.get_account_password_policy( + _request(GetAccountPasswordPolicyInputDict) + ) + await client.get_account_properties() + await client.get_account_properties(**_request(GetAccountPropertiesInputDict)) + await client.get_account_properties(_request(GetAccountPropertiesInput)) + await client.get_account_properties(_request(GetAccountPropertiesInputDict)) + await client.get_account_summary() + await client.get_account_summary(**_request(GetAccountSummaryInputDict)) + await client.get_account_summary(_request(GetAccountSummaryInput)) + await client.get_account_summary(_request(GetAccountSummaryInputDict)) + await client.get_context_keys_for_custom_policy(policy_input_list=_) + await client.get_context_keys_for_custom_policy( + **_request(GetContextKeysForCustomPolicyInputDict) + ) + await client.get_context_keys_for_custom_policy( + _request(GetContextKeysForCustomPolicyInput) + ) + await client.get_context_keys_for_custom_policy( + _request(GetContextKeysForCustomPolicyInputDict) + ) + await client.get_context_keys_for_principal_policy(policy_source_arn=_) + await client.get_context_keys_for_principal_policy( + **_request(GetContextKeysForPrincipalPolicyInputDict) + ) + await client.get_context_keys_for_principal_policy( + _request(GetContextKeysForPrincipalPolicyInput) + ) + await client.get_context_keys_for_principal_policy( + _request(GetContextKeysForPrincipalPolicyInputDict) + ) + await client.get_credential_report() + await client.get_credential_report(**_request(GetCredentialReportInputDict)) + await client.get_credential_report(_request(GetCredentialReportInput)) + await client.get_credential_report(_request(GetCredentialReportInputDict)) + await client.get_delegation_request(delegation_request_id=_) + await client.get_delegation_request(**_request(GetDelegationRequestInputDict)) + await client.get_delegation_request(_request(GetDelegationRequestInput)) + await client.get_delegation_request(_request(GetDelegationRequestInputDict)) + await client.get_group(group_name=_) + await client.get_group(**_request(GetGroupInputDict)) + await client.get_group(_request(GetGroupInput)) + await client.get_group(_request(GetGroupInputDict)) + await client.get_group_policy(group_name=_, policy_name=_) + await client.get_group_policy(**_request(GetGroupPolicyInputDict)) + await client.get_group_policy(_request(GetGroupPolicyInput)) + await client.get_group_policy(_request(GetGroupPolicyInputDict)) + await client.get_human_readable_summary(entity_arn=_) + await client.get_human_readable_summary( + **_request(GetHumanReadableSummaryInputDict) + ) + await client.get_human_readable_summary(_request(GetHumanReadableSummaryInput)) + await client.get_human_readable_summary(_request(GetHumanReadableSummaryInputDict)) + await client.get_instance_profile(instance_profile_name=_) + await client.get_instance_profile(**_request(GetInstanceProfileInputDict)) + await client.get_instance_profile(_request(GetInstanceProfileInput)) + await client.get_instance_profile(_request(GetInstanceProfileInputDict)) + await client.get_login_profile() + await client.get_login_profile(**_request(GetLoginProfileInputDict)) + await client.get_login_profile(_request(GetLoginProfileInput)) + await client.get_login_profile(_request(GetLoginProfileInputDict)) + await client.get_mfa_device(serial_number=_) + await client.get_mfa_device(**_request(GetMFADeviceInputDict)) + await client.get_mfa_device(_request(GetMFADeviceInput)) + await client.get_mfa_device(_request(GetMFADeviceInputDict)) + await client.get_open_id_connect_provider(open_id_connect_provider_arn=_) + await client.get_open_id_connect_provider( + **_request(GetOpenIDConnectProviderInputDict) + ) + await client.get_open_id_connect_provider(_request(GetOpenIDConnectProviderInput)) + await client.get_open_id_connect_provider( + _request(GetOpenIDConnectProviderInputDict) + ) + await client.get_organizations_access_report(job_id=_) + await client.get_organizations_access_report( + **_request(GetOrganizationsAccessReportInputDict) + ) + await client.get_organizations_access_report( + _request(GetOrganizationsAccessReportInput) + ) + await client.get_organizations_access_report( + _request(GetOrganizationsAccessReportInputDict) + ) + await client.get_outbound_web_identity_federation_info() + await client.get_outbound_web_identity_federation_info( + **_request(GetOutboundWebIdentityFederationInfoInputDict) + ) + await client.get_outbound_web_identity_federation_info( + _request(GetOutboundWebIdentityFederationInfoInput) + ) + await client.get_outbound_web_identity_federation_info( + _request(GetOutboundWebIdentityFederationInfoInputDict) + ) + await client.get_policy(policy_arn=_) + await client.get_policy(**_request(GetPolicyInputDict)) + await client.get_policy(_request(GetPolicyInput)) + await client.get_policy(_request(GetPolicyInputDict)) + await client.get_policy_version(policy_arn=_, version_id=_) + await client.get_policy_version(**_request(GetPolicyVersionInputDict)) + await client.get_policy_version(_request(GetPolicyVersionInput)) + await client.get_policy_version(_request(GetPolicyVersionInputDict)) + await client.get_role(role_name=_) + await client.get_role(**_request(GetRoleInputDict)) + await client.get_role(_request(GetRoleInput)) + await client.get_role(_request(GetRoleInputDict)) + await client.get_role_policy(role_name=_, policy_name=_) + await client.get_role_policy(**_request(GetRolePolicyInputDict)) + await client.get_role_policy(_request(GetRolePolicyInput)) + await client.get_role_policy(_request(GetRolePolicyInputDict)) + await client.get_role_template_version(template_arn=_) + await client.get_role_template_version(**_request(GetRoleTemplateVersionInputDict)) + await client.get_role_template_version(_request(GetRoleTemplateVersionInput)) + await client.get_role_template_version(_request(GetRoleTemplateVersionInputDict)) + await client.get_saml_provider(saml_provider_arn=_) + await client.get_saml_provider(**_request(GetSAMLProviderInputDict)) + await client.get_saml_provider(_request(GetSAMLProviderInput)) + await client.get_saml_provider(_request(GetSAMLProviderInputDict)) + await client.get_server_certificate(server_certificate_name=_) + await client.get_server_certificate(**_request(GetServerCertificateInputDict)) + await client.get_server_certificate(_request(GetServerCertificateInput)) + await client.get_server_certificate(_request(GetServerCertificateInputDict)) + await client.get_service_last_accessed_details(job_id=_) + await client.get_service_last_accessed_details( + **_request(GetServiceLastAccessedDetailsInputDict) + ) + await client.get_service_last_accessed_details( + _request(GetServiceLastAccessedDetailsInput) + ) + await client.get_service_last_accessed_details( + _request(GetServiceLastAccessedDetailsInputDict) + ) + await client.get_service_last_accessed_details_with_entities( + job_id=_, service_namespace=_ + ) + await client.get_service_last_accessed_details_with_entities( + **_request(GetServiceLastAccessedDetailsWithEntitiesInputDict) + ) + await client.get_service_last_accessed_details_with_entities( + _request(GetServiceLastAccessedDetailsWithEntitiesInput) + ) + await client.get_service_last_accessed_details_with_entities( + _request(GetServiceLastAccessedDetailsWithEntitiesInputDict) + ) + await client.get_service_linked_role_deletion_status(deletion_task_id=_) + await client.get_service_linked_role_deletion_status( + **_request(GetServiceLinkedRoleDeletionStatusInputDict) + ) + await client.get_service_linked_role_deletion_status( + _request(GetServiceLinkedRoleDeletionStatusInput) + ) + await client.get_service_linked_role_deletion_status( + _request(GetServiceLinkedRoleDeletionStatusInputDict) + ) + await client.get_ssh_public_key(user_name=_, ssh_public_key_id=_, encoding=_) + await client.get_ssh_public_key(**_request(GetSSHPublicKeyInputDict)) + await client.get_ssh_public_key(_request(GetSSHPublicKeyInput)) + await client.get_ssh_public_key(_request(GetSSHPublicKeyInputDict)) + await client.get_user() + await client.get_user(**_request(GetUserInputDict)) + await client.get_user(_request(GetUserInput)) + await client.get_user(_request(GetUserInputDict)) + await client.get_user_policy(user_name=_, policy_name=_) + await client.get_user_policy(**_request(GetUserPolicyInputDict)) + await client.get_user_policy(_request(GetUserPolicyInput)) + await client.get_user_policy(_request(GetUserPolicyInputDict)) + await client.list_access_keys() + await client.list_access_keys(**_request(ListAccessKeysInputDict)) + await client.list_access_keys(_request(ListAccessKeysInput)) + await client.list_access_keys(_request(ListAccessKeysInputDict)) + await client.list_account_aliases() + await client.list_account_aliases(**_request(ListAccountAliasesInputDict)) + await client.list_account_aliases(_request(ListAccountAliasesInput)) + await client.list_account_aliases(_request(ListAccountAliasesInputDict)) + await client.list_attached_group_policies(group_name=_) + await client.list_attached_group_policies( + **_request(ListAttachedGroupPoliciesInputDict) + ) + await client.list_attached_group_policies(_request(ListAttachedGroupPoliciesInput)) + await client.list_attached_group_policies( + _request(ListAttachedGroupPoliciesInputDict) + ) + await client.list_attached_role_policies(role_name=_) + await client.list_attached_role_policies( + **_request(ListAttachedRolePoliciesInputDict) + ) + await client.list_attached_role_policies(_request(ListAttachedRolePoliciesInput)) + await client.list_attached_role_policies( + _request(ListAttachedRolePoliciesInputDict) + ) + await client.list_attached_user_policies(user_name=_) + await client.list_attached_user_policies( + **_request(ListAttachedUserPoliciesInputDict) + ) + await client.list_attached_user_policies(_request(ListAttachedUserPoliciesInput)) + await client.list_attached_user_policies( + _request(ListAttachedUserPoliciesInputDict) + ) + await client.list_delegation_requests() + await client.list_delegation_requests(**_request(ListDelegationRequestsInputDict)) + await client.list_delegation_requests(_request(ListDelegationRequestsInput)) + await client.list_delegation_requests(_request(ListDelegationRequestsInputDict)) + await client.list_entities_for_policy(policy_arn=_) + await client.list_entities_for_policy(**_request(ListEntitiesForPolicyInputDict)) + await client.list_entities_for_policy(_request(ListEntitiesForPolicyInput)) + await client.list_entities_for_policy(_request(ListEntitiesForPolicyInputDict)) + await client.list_group_policies(group_name=_) + await client.list_group_policies(**_request(ListGroupPoliciesInputDict)) + await client.list_group_policies(_request(ListGroupPoliciesInput)) + await client.list_group_policies(_request(ListGroupPoliciesInputDict)) + await client.list_groups() + await client.list_groups(**_request(ListGroupsInputDict)) + await client.list_groups(_request(ListGroupsInput)) + await client.list_groups(_request(ListGroupsInputDict)) + await client.list_groups_for_user(user_name=_) + await client.list_groups_for_user(**_request(ListGroupsForUserInputDict)) + await client.list_groups_for_user(_request(ListGroupsForUserInput)) + await client.list_groups_for_user(_request(ListGroupsForUserInputDict)) + await client.list_instance_profiles() + await client.list_instance_profiles(**_request(ListInstanceProfilesInputDict)) + await client.list_instance_profiles(_request(ListInstanceProfilesInput)) + await client.list_instance_profiles(_request(ListInstanceProfilesInputDict)) + await client.list_instance_profiles_for_role(role_name=_) + await client.list_instance_profiles_for_role( + **_request(ListInstanceProfilesForRoleInputDict) + ) + await client.list_instance_profiles_for_role( + _request(ListInstanceProfilesForRoleInput) + ) + await client.list_instance_profiles_for_role( + _request(ListInstanceProfilesForRoleInputDict) + ) + await client.list_instance_profile_tags(instance_profile_name=_) + await client.list_instance_profile_tags( + **_request(ListInstanceProfileTagsInputDict) + ) + await client.list_instance_profile_tags(_request(ListInstanceProfileTagsInput)) + await client.list_instance_profile_tags(_request(ListInstanceProfileTagsInputDict)) + await client.list_mfa_devices() + await client.list_mfa_devices(**_request(ListMFADevicesInputDict)) + await client.list_mfa_devices(_request(ListMFADevicesInput)) + await client.list_mfa_devices(_request(ListMFADevicesInputDict)) + await client.list_mfa_device_tags(serial_number=_) + await client.list_mfa_device_tags(**_request(ListMFADeviceTagsInputDict)) + await client.list_mfa_device_tags(_request(ListMFADeviceTagsInput)) + await client.list_mfa_device_tags(_request(ListMFADeviceTagsInputDict)) + await client.list_open_id_connect_providers() + await client.list_open_id_connect_providers( + **_request(ListOpenIDConnectProvidersInputDict) + ) + await client.list_open_id_connect_providers( + _request(ListOpenIDConnectProvidersInput) + ) + await client.list_open_id_connect_providers( + _request(ListOpenIDConnectProvidersInputDict) + ) + await client.list_open_id_connect_provider_tags(open_id_connect_provider_arn=_) + await client.list_open_id_connect_provider_tags( + **_request(ListOpenIDConnectProviderTagsInputDict) + ) + await client.list_open_id_connect_provider_tags( + _request(ListOpenIDConnectProviderTagsInput) + ) + await client.list_open_id_connect_provider_tags( + _request(ListOpenIDConnectProviderTagsInputDict) + ) + await client.list_organizations_features() + await client.list_organizations_features( + **_request(ListOrganizationsFeaturesInputDict) + ) + await client.list_organizations_features(_request(ListOrganizationsFeaturesInput)) + await client.list_organizations_features( + _request(ListOrganizationsFeaturesInputDict) + ) + await client.list_policies() + await client.list_policies(**_request(ListPoliciesInputDict)) + await client.list_policies(_request(ListPoliciesInput)) + await client.list_policies(_request(ListPoliciesInputDict)) + await client.list_policies_granting_service_access(arn=_, service_namespaces=_) + await client.list_policies_granting_service_access( + **_request(ListPoliciesGrantingServiceAccessInputDict) + ) + await client.list_policies_granting_service_access( + _request(ListPoliciesGrantingServiceAccessInput) + ) + await client.list_policies_granting_service_access( + _request(ListPoliciesGrantingServiceAccessInputDict) + ) + await client.list_policy_tags(policy_arn=_) + await client.list_policy_tags(**_request(ListPolicyTagsInputDict)) + await client.list_policy_tags(_request(ListPolicyTagsInput)) + await client.list_policy_tags(_request(ListPolicyTagsInputDict)) + await client.list_policy_versions(policy_arn=_) + await client.list_policy_versions(**_request(ListPolicyVersionsInputDict)) + await client.list_policy_versions(_request(ListPolicyVersionsInput)) + await client.list_policy_versions(_request(ListPolicyVersionsInputDict)) + await client.list_role_policies(role_name=_) + await client.list_role_policies(**_request(ListRolePoliciesInputDict)) + await client.list_role_policies(_request(ListRolePoliciesInput)) + await client.list_role_policies(_request(ListRolePoliciesInputDict)) + await client.list_roles() + await client.list_roles(**_request(ListRolesInputDict)) + await client.list_roles(_request(ListRolesInput)) + await client.list_roles(_request(ListRolesInputDict)) + await client.list_role_tags(role_name=_) + await client.list_role_tags(**_request(ListRoleTagsInputDict)) + await client.list_role_tags(_request(ListRoleTagsInput)) + await client.list_role_tags(_request(ListRoleTagsInputDict)) + await client.list_saml_providers() + await client.list_saml_providers(**_request(ListSAMLProvidersInputDict)) + await client.list_saml_providers(_request(ListSAMLProvidersInput)) + await client.list_saml_providers(_request(ListSAMLProvidersInputDict)) + await client.list_saml_provider_tags(saml_provider_arn=_) + await client.list_saml_provider_tags(**_request(ListSAMLProviderTagsInputDict)) + await client.list_saml_provider_tags(_request(ListSAMLProviderTagsInput)) + await client.list_saml_provider_tags(_request(ListSAMLProviderTagsInputDict)) + await client.list_server_certificates() + await client.list_server_certificates(**_request(ListServerCertificatesInputDict)) + await client.list_server_certificates(_request(ListServerCertificatesInput)) + await client.list_server_certificates(_request(ListServerCertificatesInputDict)) + await client.list_server_certificate_tags(server_certificate_name=_) + await client.list_server_certificate_tags( + **_request(ListServerCertificateTagsInputDict) + ) + await client.list_server_certificate_tags(_request(ListServerCertificateTagsInput)) + await client.list_server_certificate_tags( + _request(ListServerCertificateTagsInputDict) + ) + await client.list_service_specific_credentials() + await client.list_service_specific_credentials( + **_request(ListServiceSpecificCredentialsInputDict) + ) + await client.list_service_specific_credentials( + _request(ListServiceSpecificCredentialsInput) + ) + await client.list_service_specific_credentials( + _request(ListServiceSpecificCredentialsInputDict) + ) + await client.list_signing_certificates() + await client.list_signing_certificates(**_request(ListSigningCertificatesInputDict)) + await client.list_signing_certificates(_request(ListSigningCertificatesInput)) + await client.list_signing_certificates(_request(ListSigningCertificatesInputDict)) + await client.list_ssh_public_keys() + await client.list_ssh_public_keys(**_request(ListSSHPublicKeysInputDict)) + await client.list_ssh_public_keys(_request(ListSSHPublicKeysInput)) + await client.list_ssh_public_keys(_request(ListSSHPublicKeysInputDict)) + await client.list_user_policies(user_name=_) + await client.list_user_policies(**_request(ListUserPoliciesInputDict)) + await client.list_user_policies(_request(ListUserPoliciesInput)) + await client.list_user_policies(_request(ListUserPoliciesInputDict)) + await client.list_users() + await client.list_users(**_request(ListUsersInputDict)) + await client.list_users(_request(ListUsersInput)) + await client.list_users(_request(ListUsersInputDict)) + await client.list_user_tags(user_name=_) + await client.list_user_tags(**_request(ListUserTagsInputDict)) + await client.list_user_tags(_request(ListUserTagsInput)) + await client.list_user_tags(_request(ListUserTagsInputDict)) + await client.list_virtual_mfa_devices() + await client.list_virtual_mfa_devices(**_request(ListVirtualMFADevicesInputDict)) + await client.list_virtual_mfa_devices(_request(ListVirtualMFADevicesInput)) + await client.list_virtual_mfa_devices(_request(ListVirtualMFADevicesInputDict)) + await client.put_account_properties(properties=_) + await client.put_account_properties(**_request(PutAccountPropertiesInputDict)) + await client.put_account_properties(_request(PutAccountPropertiesInput)) + await client.put_account_properties(_request(PutAccountPropertiesInputDict)) + await client.put_group_policy(group_name=_, policy_name=_, policy_document=_) + await client.put_group_policy(**_request(PutGroupPolicyInputDict)) + await client.put_group_policy(_request(PutGroupPolicyInput)) + await client.put_group_policy(_request(PutGroupPolicyInputDict)) + await client.put_role_permissions_boundary(role_name=_, permissions_boundary=_) + await client.put_role_permissions_boundary( + **_request(PutRolePermissionsBoundaryInputDict) + ) + await client.put_role_permissions_boundary( + _request(PutRolePermissionsBoundaryInput) + ) + await client.put_role_permissions_boundary( + _request(PutRolePermissionsBoundaryInputDict) + ) + await client.put_role_policy(role_name=_, policy_name=_, policy_document=_) + await client.put_role_policy(**_request(PutRolePolicyInputDict)) + await client.put_role_policy(_request(PutRolePolicyInput)) + await client.put_role_policy(_request(PutRolePolicyInputDict)) + await client.put_user_permissions_boundary(user_name=_, permissions_boundary=_) + await client.put_user_permissions_boundary( + **_request(PutUserPermissionsBoundaryInputDict) + ) + await client.put_user_permissions_boundary( + _request(PutUserPermissionsBoundaryInput) + ) + await client.put_user_permissions_boundary( + _request(PutUserPermissionsBoundaryInputDict) + ) + await client.put_user_policy(user_name=_, policy_name=_, policy_document=_) + await client.put_user_policy(**_request(PutUserPolicyInputDict)) + await client.put_user_policy(_request(PutUserPolicyInput)) + await client.put_user_policy(_request(PutUserPolicyInputDict)) + await client.reject_delegation_request(delegation_request_id=_) + await client.reject_delegation_request(**_request(RejectDelegationRequestInputDict)) + await client.reject_delegation_request(_request(RejectDelegationRequestInput)) + await client.reject_delegation_request(_request(RejectDelegationRequestInputDict)) + await client.remove_client_id_from_open_id_connect_provider( + open_id_connect_provider_arn=_, client_id=_ + ) + await client.remove_client_id_from_open_id_connect_provider( + **_request(RemoveClientIDFromOpenIDConnectProviderInputDict) + ) + await client.remove_client_id_from_open_id_connect_provider( + _request(RemoveClientIDFromOpenIDConnectProviderInput) + ) + await client.remove_client_id_from_open_id_connect_provider( + _request(RemoveClientIDFromOpenIDConnectProviderInputDict) + ) + await client.remove_role_from_instance_profile(instance_profile_name=_, role_name=_) + await client.remove_role_from_instance_profile( + **_request(RemoveRoleFromInstanceProfileInputDict) + ) + await client.remove_role_from_instance_profile( + _request(RemoveRoleFromInstanceProfileInput) + ) + await client.remove_role_from_instance_profile( + _request(RemoveRoleFromInstanceProfileInputDict) + ) + await client.remove_user_from_group(group_name=_, user_name=_) + await client.remove_user_from_group(**_request(RemoveUserFromGroupInputDict)) + await client.remove_user_from_group(_request(RemoveUserFromGroupInput)) + await client.remove_user_from_group(_request(RemoveUserFromGroupInputDict)) + await client.reset_service_specific_credential(service_specific_credential_id=_) + await client.reset_service_specific_credential( + **_request(ResetServiceSpecificCredentialInputDict) + ) + await client.reset_service_specific_credential( + _request(ResetServiceSpecificCredentialInput) + ) + await client.reset_service_specific_credential( + _request(ResetServiceSpecificCredentialInputDict) + ) + await client.resync_mfa_device( + user_name=_, serial_number=_, authentication_code1=_, authentication_code2=_ + ) + await client.resync_mfa_device(**_request(ResyncMFADeviceInputDict)) + await client.resync_mfa_device(_request(ResyncMFADeviceInput)) + await client.resync_mfa_device(_request(ResyncMFADeviceInputDict)) + await client.send_delegation_token(delegation_request_id=_) + await client.send_delegation_token(**_request(SendDelegationTokenInputDict)) + await client.send_delegation_token(_request(SendDelegationTokenInput)) + await client.send_delegation_token(_request(SendDelegationTokenInputDict)) + await client.set_default_policy_version(policy_arn=_, version_id=_) + await client.set_default_policy_version( + **_request(SetDefaultPolicyVersionInputDict) + ) + await client.set_default_policy_version(_request(SetDefaultPolicyVersionInput)) + await client.set_default_policy_version(_request(SetDefaultPolicyVersionInputDict)) + await client.set_security_token_service_preferences(global_endpoint_token_version=_) + await client.set_security_token_service_preferences( + **_request(SetSecurityTokenServicePreferencesInputDict) + ) + await client.set_security_token_service_preferences( + _request(SetSecurityTokenServicePreferencesInput) + ) + await client.set_security_token_service_preferences( + _request(SetSecurityTokenServicePreferencesInputDict) + ) + await client.simulate_custom_policy(policy_input_list=_, action_names=_) + await client.simulate_custom_policy(**_request(SimulateCustomPolicyInputDict)) + await client.simulate_custom_policy(_request(SimulateCustomPolicyInput)) + await client.simulate_custom_policy(_request(SimulateCustomPolicyInputDict)) + await client.simulate_principal_policy(policy_source_arn=_, action_names=_) + await client.simulate_principal_policy(**_request(SimulatePrincipalPolicyInputDict)) + await client.simulate_principal_policy(_request(SimulatePrincipalPolicyInput)) + await client.simulate_principal_policy(_request(SimulatePrincipalPolicyInputDict)) + await client.tag_instance_profile(instance_profile_name=_, tags=_) + await client.tag_instance_profile(**_request(TagInstanceProfileInputDict)) + await client.tag_instance_profile(_request(TagInstanceProfileInput)) + await client.tag_instance_profile(_request(TagInstanceProfileInputDict)) + await client.tag_mfa_device(serial_number=_, tags=_) + await client.tag_mfa_device(**_request(TagMFADeviceInputDict)) + await client.tag_mfa_device(_request(TagMFADeviceInput)) + await client.tag_mfa_device(_request(TagMFADeviceInputDict)) + await client.tag_open_id_connect_provider(open_id_connect_provider_arn=_, tags=_) + await client.tag_open_id_connect_provider( + **_request(TagOpenIDConnectProviderInputDict) + ) + await client.tag_open_id_connect_provider(_request(TagOpenIDConnectProviderInput)) + await client.tag_open_id_connect_provider( + _request(TagOpenIDConnectProviderInputDict) + ) + await client.tag_policy(policy_arn=_, tags=_) + await client.tag_policy(**_request(TagPolicyInputDict)) + await client.tag_policy(_request(TagPolicyInput)) + await client.tag_policy(_request(TagPolicyInputDict)) + await client.tag_role(role_name=_, tags=_) + await client.tag_role(**_request(TagRoleInputDict)) + await client.tag_role(_request(TagRoleInput)) + await client.tag_role(_request(TagRoleInputDict)) + await client.tag_saml_provider(saml_provider_arn=_, tags=_) + await client.tag_saml_provider(**_request(TagSAMLProviderInputDict)) + await client.tag_saml_provider(_request(TagSAMLProviderInput)) + await client.tag_saml_provider(_request(TagSAMLProviderInputDict)) + await client.tag_server_certificate(server_certificate_name=_, tags=_) + await client.tag_server_certificate(**_request(TagServerCertificateInputDict)) + await client.tag_server_certificate(_request(TagServerCertificateInput)) + await client.tag_server_certificate(_request(TagServerCertificateInputDict)) + await client.tag_user(user_name=_, tags=_) + await client.tag_user(**_request(TagUserInputDict)) + await client.tag_user(_request(TagUserInput)) + await client.tag_user(_request(TagUserInputDict)) + await client.untag_instance_profile(instance_profile_name=_, tag_keys=_) + await client.untag_instance_profile(**_request(UntagInstanceProfileInputDict)) + await client.untag_instance_profile(_request(UntagInstanceProfileInput)) + await client.untag_instance_profile(_request(UntagInstanceProfileInputDict)) + await client.untag_mfa_device(serial_number=_, tag_keys=_) + await client.untag_mfa_device(**_request(UntagMFADeviceInputDict)) + await client.untag_mfa_device(_request(UntagMFADeviceInput)) + await client.untag_mfa_device(_request(UntagMFADeviceInputDict)) + await client.untag_open_id_connect_provider( + open_id_connect_provider_arn=_, tag_keys=_ + ) + await client.untag_open_id_connect_provider( + **_request(UntagOpenIDConnectProviderInputDict) + ) + await client.untag_open_id_connect_provider( + _request(UntagOpenIDConnectProviderInput) + ) + await client.untag_open_id_connect_provider( + _request(UntagOpenIDConnectProviderInputDict) + ) + await client.untag_policy(policy_arn=_, tag_keys=_) + await client.untag_policy(**_request(UntagPolicyInputDict)) + await client.untag_policy(_request(UntagPolicyInput)) + await client.untag_policy(_request(UntagPolicyInputDict)) + await client.untag_role(role_name=_, tag_keys=_) + await client.untag_role(**_request(UntagRoleInputDict)) + await client.untag_role(_request(UntagRoleInput)) + await client.untag_role(_request(UntagRoleInputDict)) + await client.untag_saml_provider(saml_provider_arn=_, tag_keys=_) + await client.untag_saml_provider(**_request(UntagSAMLProviderInputDict)) + await client.untag_saml_provider(_request(UntagSAMLProviderInput)) + await client.untag_saml_provider(_request(UntagSAMLProviderInputDict)) + await client.untag_server_certificate(server_certificate_name=_, tag_keys=_) + await client.untag_server_certificate(**_request(UntagServerCertificateInputDict)) + await client.untag_server_certificate(_request(UntagServerCertificateInput)) + await client.untag_server_certificate(_request(UntagServerCertificateInputDict)) + await client.untag_user(user_name=_, tag_keys=_) + await client.untag_user(**_request(UntagUserInputDict)) + await client.untag_user(_request(UntagUserInput)) + await client.untag_user(_request(UntagUserInputDict)) + await client.update_access_key(access_key_id=_, status=_) + await client.update_access_key(**_request(UpdateAccessKeyInputDict)) + await client.update_access_key(_request(UpdateAccessKeyInput)) + await client.update_access_key(_request(UpdateAccessKeyInputDict)) + await client.update_account_password_policy() + await client.update_account_password_policy( + **_request(UpdateAccountPasswordPolicyInputDict) + ) + await client.update_account_password_policy( + _request(UpdateAccountPasswordPolicyInput) + ) + await client.update_account_password_policy( + _request(UpdateAccountPasswordPolicyInputDict) + ) + await client.update_assume_role_policy(role_name=_, policy_document=_) + await client.update_assume_role_policy(**_request(UpdateAssumeRolePolicyInputDict)) + await client.update_assume_role_policy(_request(UpdateAssumeRolePolicyInput)) + await client.update_assume_role_policy(_request(UpdateAssumeRolePolicyInputDict)) + await client.update_delegation_request(delegation_request_id=_) + await client.update_delegation_request(**_request(UpdateDelegationRequestInputDict)) + await client.update_delegation_request(_request(UpdateDelegationRequestInput)) + await client.update_delegation_request(_request(UpdateDelegationRequestInputDict)) + await client.update_group(group_name=_) + await client.update_group(**_request(UpdateGroupInputDict)) + await client.update_group(_request(UpdateGroupInput)) + await client.update_group(_request(UpdateGroupInputDict)) + await client.update_login_profile(user_name=_) + await client.update_login_profile(**_request(UpdateLoginProfileInputDict)) + await client.update_login_profile(_request(UpdateLoginProfileInput)) + await client.update_login_profile(_request(UpdateLoginProfileInputDict)) + await client.update_open_id_connect_provider_thumbprint( + open_id_connect_provider_arn=_, thumbprint_list=_ + ) + await client.update_open_id_connect_provider_thumbprint( + **_request(UpdateOpenIDConnectProviderThumbprintInputDict) + ) + await client.update_open_id_connect_provider_thumbprint( + _request(UpdateOpenIDConnectProviderThumbprintInput) + ) + await client.update_open_id_connect_provider_thumbprint( + _request(UpdateOpenIDConnectProviderThumbprintInputDict) + ) + await client.update_role(role_name=_) + await client.update_role(**_request(UpdateRoleInputDict)) + await client.update_role(_request(UpdateRoleInput)) + await client.update_role(_request(UpdateRoleInputDict)) + await client.update_role_description(role_name=_, description=_) + await client.update_role_description(**_request(UpdateRoleDescriptionInputDict)) + await client.update_role_description(_request(UpdateRoleDescriptionInput)) + await client.update_role_description(_request(UpdateRoleDescriptionInputDict)) + await client.update_saml_provider(saml_provider_arn=_) + await client.update_saml_provider(**_request(UpdateSAMLProviderInputDict)) + await client.update_saml_provider(_request(UpdateSAMLProviderInput)) + await client.update_saml_provider(_request(UpdateSAMLProviderInputDict)) + await client.update_server_certificate(server_certificate_name=_) + await client.update_server_certificate(**_request(UpdateServerCertificateInputDict)) + await client.update_server_certificate(_request(UpdateServerCertificateInput)) + await client.update_server_certificate(_request(UpdateServerCertificateInputDict)) + await client.update_service_specific_credential( + service_specific_credential_id=_, status=_ + ) + await client.update_service_specific_credential( + **_request(UpdateServiceSpecificCredentialInputDict) + ) + await client.update_service_specific_credential( + _request(UpdateServiceSpecificCredentialInput) + ) + await client.update_service_specific_credential( + _request(UpdateServiceSpecificCredentialInputDict) + ) + await client.update_signing_certificate(certificate_id=_, status=_) + await client.update_signing_certificate( + **_request(UpdateSigningCertificateInputDict) + ) + await client.update_signing_certificate(_request(UpdateSigningCertificateInput)) + await client.update_signing_certificate(_request(UpdateSigningCertificateInputDict)) + await client.update_ssh_public_key(user_name=_, ssh_public_key_id=_, status=_) + await client.update_ssh_public_key(**_request(UpdateSSHPublicKeyInputDict)) + await client.update_ssh_public_key(_request(UpdateSSHPublicKeyInput)) + await client.update_ssh_public_key(_request(UpdateSSHPublicKeyInputDict)) + await client.update_user(user_name=_) + await client.update_user(**_request(UpdateUserInputDict)) + await client.update_user(_request(UpdateUserInput)) + await client.update_user(_request(UpdateUserInputDict)) + await client.upload_server_certificate( + server_certificate_name=_, certificate_body=_, private_key=_ + ) + await client.upload_server_certificate(**_request(UploadServerCertificateInputDict)) + await client.upload_server_certificate(_request(UploadServerCertificateInput)) + await client.upload_server_certificate(_request(UploadServerCertificateInputDict)) + await client.upload_signing_certificate(certificate_body=_) + await client.upload_signing_certificate( + **_request(UploadSigningCertificateInputDict) + ) + await client.upload_signing_certificate(_request(UploadSigningCertificateInput)) + await client.upload_signing_certificate(_request(UploadSigningCertificateInputDict)) + await client.upload_ssh_public_key(user_name=_, ssh_public_key_body=_) + await client.upload_ssh_public_key(**_request(UploadSSHPublicKeyInputDict)) + await client.upload_ssh_public_key(_request(UploadSSHPublicKeyInput)) + await client.upload_ssh_public_key(_request(UploadSSHPublicKeyInputDict)) + + +def check_sync_calls(client: IAMClient) -> None: + pass + client.accept_delegation_request(delegation_request_id=_) + client.accept_delegation_request(**_request(AcceptDelegationRequestInputDict)) + client.accept_delegation_request(_request(AcceptDelegationRequestInput)) + client.accept_delegation_request(_request(AcceptDelegationRequestInputDict)) + client.acquire_role(template_arn=_) + client.acquire_role(**_request(AcquireRoleInputDict)) + client.acquire_role(_request(AcquireRoleInput)) + client.acquire_role(_request(AcquireRoleInputDict)) + client.add_client_id_to_open_id_connect_provider( + open_id_connect_provider_arn=_, client_id=_ + ) + client.add_client_id_to_open_id_connect_provider( + **_request(AddClientIDToOpenIDConnectProviderInputDict) + ) + client.add_client_id_to_open_id_connect_provider( + _request(AddClientIDToOpenIDConnectProviderInput) + ) + client.add_client_id_to_open_id_connect_provider( + _request(AddClientIDToOpenIDConnectProviderInputDict) + ) + client.add_role_to_instance_profile(instance_profile_name=_, role_name=_) + client.add_role_to_instance_profile(**_request(AddRoleToInstanceProfileInputDict)) + client.add_role_to_instance_profile(_request(AddRoleToInstanceProfileInput)) + client.add_role_to_instance_profile(_request(AddRoleToInstanceProfileInputDict)) + client.add_user_to_group(group_name=_, user_name=_) + client.add_user_to_group(**_request(AddUserToGroupInputDict)) + client.add_user_to_group(_request(AddUserToGroupInput)) + client.add_user_to_group(_request(AddUserToGroupInputDict)) + client.associate_delegation_request(delegation_request_id=_) + client.associate_delegation_request(**_request(AssociateDelegationRequestInputDict)) + client.associate_delegation_request(_request(AssociateDelegationRequestInput)) + client.associate_delegation_request(_request(AssociateDelegationRequestInputDict)) + client.attach_group_policy(group_name=_, policy_arn=_) + client.attach_group_policy(**_request(AttachGroupPolicyInputDict)) + client.attach_group_policy(_request(AttachGroupPolicyInput)) + client.attach_group_policy(_request(AttachGroupPolicyInputDict)) + client.attach_role_policy(role_name=_, policy_arn=_) + client.attach_role_policy(**_request(AttachRolePolicyInputDict)) + client.attach_role_policy(_request(AttachRolePolicyInput)) + client.attach_role_policy(_request(AttachRolePolicyInputDict)) + client.attach_user_policy(user_name=_, policy_arn=_) + client.attach_user_policy(**_request(AttachUserPolicyInputDict)) + client.attach_user_policy(_request(AttachUserPolicyInput)) + client.attach_user_policy(_request(AttachUserPolicyInputDict)) + client.change_password(old_password=_, new_password=_) + client.change_password(**_request(ChangePasswordInputDict)) + client.change_password(_request(ChangePasswordInput)) + client.change_password(_request(ChangePasswordInputDict)) + client.create_access_key() + client.create_access_key(**_request(CreateAccessKeyInputDict)) + client.create_access_key(_request(CreateAccessKeyInput)) + client.create_access_key(_request(CreateAccessKeyInputDict)) + client.create_account_alias(account_alias=_) + client.create_account_alias(**_request(CreateAccountAliasInputDict)) + client.create_account_alias(_request(CreateAccountAliasInput)) + client.create_account_alias(_request(CreateAccountAliasInputDict)) + client.create_delegation_request( + description=_, + permissions=_, + requestor_workflow_id=_, + notification_channel=_, + session_duration=_, + ) + client.create_delegation_request(**_request(CreateDelegationRequestInputDict)) + client.create_delegation_request(_request(CreateDelegationRequestInput)) + client.create_delegation_request(_request(CreateDelegationRequestInputDict)) + client.create_group(group_name=_) + client.create_group(**_request(CreateGroupInputDict)) + client.create_group(_request(CreateGroupInput)) + client.create_group(_request(CreateGroupInputDict)) + client.create_instance_profile(instance_profile_name=_) + client.create_instance_profile(**_request(CreateInstanceProfileInputDict)) + client.create_instance_profile(_request(CreateInstanceProfileInput)) + client.create_instance_profile(_request(CreateInstanceProfileInputDict)) + client.create_login_profile() + client.create_login_profile(**_request(CreateLoginProfileInputDict)) + client.create_login_profile(_request(CreateLoginProfileInput)) + client.create_login_profile(_request(CreateLoginProfileInputDict)) + client.create_open_id_connect_provider(url=_) + client.create_open_id_connect_provider( + **_request(CreateOpenIDConnectProviderInputDict) + ) + client.create_open_id_connect_provider(_request(CreateOpenIDConnectProviderInput)) + client.create_open_id_connect_provider( + _request(CreateOpenIDConnectProviderInputDict) + ) + client.create_policy(policy_name=_, policy_document=_) + client.create_policy(**_request(CreatePolicyInputDict)) + client.create_policy(_request(CreatePolicyInput)) + client.create_policy(_request(CreatePolicyInputDict)) + client.create_policy_version(policy_arn=_, policy_document=_) + client.create_policy_version(**_request(CreatePolicyVersionInputDict)) + client.create_policy_version(_request(CreatePolicyVersionInput)) + client.create_policy_version(_request(CreatePolicyVersionInputDict)) + client.create_role(role_name=_, assume_role_policy_document=_) + client.create_role(**_request(CreateRoleInputDict)) + client.create_role(_request(CreateRoleInput)) + client.create_role(_request(CreateRoleInputDict)) + client.create_saml_provider(saml_metadata_document=_, name=_) + client.create_saml_provider(**_request(CreateSAMLProviderInputDict)) + client.create_saml_provider(_request(CreateSAMLProviderInput)) + client.create_saml_provider(_request(CreateSAMLProviderInputDict)) + client.create_service_linked_role(aws_service_name=_) + client.create_service_linked_role(**_request(CreateServiceLinkedRoleInputDict)) + client.create_service_linked_role(_request(CreateServiceLinkedRoleInput)) + client.create_service_linked_role(_request(CreateServiceLinkedRoleInputDict)) + client.create_service_specific_credential(user_name=_, service_name=_) + client.create_service_specific_credential( + **_request(CreateServiceSpecificCredentialInputDict) + ) + client.create_service_specific_credential( + _request(CreateServiceSpecificCredentialInput) + ) + client.create_service_specific_credential( + _request(CreateServiceSpecificCredentialInputDict) + ) + client.create_user(user_name=_) + client.create_user(**_request(CreateUserInputDict)) + client.create_user(_request(CreateUserInput)) + client.create_user(_request(CreateUserInputDict)) + client.create_virtual_mfa_device(virtual_mfa_device_name=_) + client.create_virtual_mfa_device(**_request(CreateVirtualMFADeviceInputDict)) + client.create_virtual_mfa_device(_request(CreateVirtualMFADeviceInput)) + client.create_virtual_mfa_device(_request(CreateVirtualMFADeviceInputDict)) + client.deactivate_mfa_device(serial_number=_) + client.deactivate_mfa_device(**_request(DeactivateMFADeviceInputDict)) + client.deactivate_mfa_device(_request(DeactivateMFADeviceInput)) + client.deactivate_mfa_device(_request(DeactivateMFADeviceInputDict)) + client.delete_access_key(access_key_id=_) + client.delete_access_key(**_request(DeleteAccessKeyInputDict)) + client.delete_access_key(_request(DeleteAccessKeyInput)) + client.delete_access_key(_request(DeleteAccessKeyInputDict)) + client.delete_account_alias(account_alias=_) + client.delete_account_alias(**_request(DeleteAccountAliasInputDict)) + client.delete_account_alias(_request(DeleteAccountAliasInput)) + client.delete_account_alias(_request(DeleteAccountAliasInputDict)) + client.delete_account_password_policy() + client.delete_account_password_policy( + **_request(DeleteAccountPasswordPolicyInputDict) + ) + client.delete_account_password_policy(_request(DeleteAccountPasswordPolicyInput)) + client.delete_account_password_policy( + _request(DeleteAccountPasswordPolicyInputDict) + ) + client.delete_group(group_name=_) + client.delete_group(**_request(DeleteGroupInputDict)) + client.delete_group(_request(DeleteGroupInput)) + client.delete_group(_request(DeleteGroupInputDict)) + client.delete_group_policy(group_name=_, policy_name=_) + client.delete_group_policy(**_request(DeleteGroupPolicyInputDict)) + client.delete_group_policy(_request(DeleteGroupPolicyInput)) + client.delete_group_policy(_request(DeleteGroupPolicyInputDict)) + client.delete_instance_profile(instance_profile_name=_) + client.delete_instance_profile(**_request(DeleteInstanceProfileInputDict)) + client.delete_instance_profile(_request(DeleteInstanceProfileInput)) + client.delete_instance_profile(_request(DeleteInstanceProfileInputDict)) + client.delete_login_profile() + client.delete_login_profile(**_request(DeleteLoginProfileInputDict)) + client.delete_login_profile(_request(DeleteLoginProfileInput)) + client.delete_login_profile(_request(DeleteLoginProfileInputDict)) + client.delete_open_id_connect_provider(open_id_connect_provider_arn=_) + client.delete_open_id_connect_provider( + **_request(DeleteOpenIDConnectProviderInputDict) + ) + client.delete_open_id_connect_provider(_request(DeleteOpenIDConnectProviderInput)) + client.delete_open_id_connect_provider( + _request(DeleteOpenIDConnectProviderInputDict) + ) + client.delete_policy(policy_arn=_) + client.delete_policy(**_request(DeletePolicyInputDict)) + client.delete_policy(_request(DeletePolicyInput)) + client.delete_policy(_request(DeletePolicyInputDict)) + client.delete_policy_version(policy_arn=_, version_id=_) + client.delete_policy_version(**_request(DeletePolicyVersionInputDict)) + client.delete_policy_version(_request(DeletePolicyVersionInput)) + client.delete_policy_version(_request(DeletePolicyVersionInputDict)) + client.delete_role(role_name=_) + client.delete_role(**_request(DeleteRoleInputDict)) + client.delete_role(_request(DeleteRoleInput)) + client.delete_role(_request(DeleteRoleInputDict)) + client.delete_role_permissions_boundary(role_name=_) + client.delete_role_permissions_boundary( + **_request(DeleteRolePermissionsBoundaryInputDict) + ) + client.delete_role_permissions_boundary( + _request(DeleteRolePermissionsBoundaryInput) + ) + client.delete_role_permissions_boundary( + _request(DeleteRolePermissionsBoundaryInputDict) + ) + client.delete_role_policy(role_name=_, policy_name=_) + client.delete_role_policy(**_request(DeleteRolePolicyInputDict)) + client.delete_role_policy(_request(DeleteRolePolicyInput)) + client.delete_role_policy(_request(DeleteRolePolicyInputDict)) + client.delete_saml_provider(saml_provider_arn=_) + client.delete_saml_provider(**_request(DeleteSAMLProviderInputDict)) + client.delete_saml_provider(_request(DeleteSAMLProviderInput)) + client.delete_saml_provider(_request(DeleteSAMLProviderInputDict)) + client.delete_server_certificate(server_certificate_name=_) + client.delete_server_certificate(**_request(DeleteServerCertificateInputDict)) + client.delete_server_certificate(_request(DeleteServerCertificateInput)) + client.delete_server_certificate(_request(DeleteServerCertificateInputDict)) + client.delete_service_linked_role(role_name=_) + client.delete_service_linked_role(**_request(DeleteServiceLinkedRoleInputDict)) + client.delete_service_linked_role(_request(DeleteServiceLinkedRoleInput)) + client.delete_service_linked_role(_request(DeleteServiceLinkedRoleInputDict)) + client.delete_service_specific_credential(service_specific_credential_id=_) + client.delete_service_specific_credential( + **_request(DeleteServiceSpecificCredentialInputDict) + ) + client.delete_service_specific_credential( + _request(DeleteServiceSpecificCredentialInput) + ) + client.delete_service_specific_credential( + _request(DeleteServiceSpecificCredentialInputDict) + ) + client.delete_signing_certificate(certificate_id=_) + client.delete_signing_certificate(**_request(DeleteSigningCertificateInputDict)) + client.delete_signing_certificate(_request(DeleteSigningCertificateInput)) + client.delete_signing_certificate(_request(DeleteSigningCertificateInputDict)) + client.delete_ssh_public_key(user_name=_, ssh_public_key_id=_) + client.delete_ssh_public_key(**_request(DeleteSSHPublicKeyInputDict)) + client.delete_ssh_public_key(_request(DeleteSSHPublicKeyInput)) + client.delete_ssh_public_key(_request(DeleteSSHPublicKeyInputDict)) + client.delete_user(user_name=_) + client.delete_user(**_request(DeleteUserInputDict)) + client.delete_user(_request(DeleteUserInput)) + client.delete_user(_request(DeleteUserInputDict)) + client.delete_user_permissions_boundary(user_name=_) + client.delete_user_permissions_boundary( + **_request(DeleteUserPermissionsBoundaryInputDict) + ) + client.delete_user_permissions_boundary( + _request(DeleteUserPermissionsBoundaryInput) + ) + client.delete_user_permissions_boundary( + _request(DeleteUserPermissionsBoundaryInputDict) + ) + client.delete_user_policy(user_name=_, policy_name=_) + client.delete_user_policy(**_request(DeleteUserPolicyInputDict)) + client.delete_user_policy(_request(DeleteUserPolicyInput)) + client.delete_user_policy(_request(DeleteUserPolicyInputDict)) + client.delete_virtual_mfa_device(serial_number=_) + client.delete_virtual_mfa_device(**_request(DeleteVirtualMFADeviceInputDict)) + client.delete_virtual_mfa_device(_request(DeleteVirtualMFADeviceInput)) + client.delete_virtual_mfa_device(_request(DeleteVirtualMFADeviceInputDict)) + client.detach_group_policy(group_name=_, policy_arn=_) + client.detach_group_policy(**_request(DetachGroupPolicyInputDict)) + client.detach_group_policy(_request(DetachGroupPolicyInput)) + client.detach_group_policy(_request(DetachGroupPolicyInputDict)) + client.detach_role_policy(role_name=_, policy_arn=_) + client.detach_role_policy(**_request(DetachRolePolicyInputDict)) + client.detach_role_policy(_request(DetachRolePolicyInput)) + client.detach_role_policy(_request(DetachRolePolicyInputDict)) + client.detach_user_policy(user_name=_, policy_arn=_) + client.detach_user_policy(**_request(DetachUserPolicyInputDict)) + client.detach_user_policy(_request(DetachUserPolicyInput)) + client.detach_user_policy(_request(DetachUserPolicyInputDict)) + client.disable_organizations_root_credentials_management() + client.disable_organizations_root_credentials_management( + **_request(DisableOrganizationsRootCredentialsManagementInputDict) + ) + client.disable_organizations_root_credentials_management( + _request(DisableOrganizationsRootCredentialsManagementInput) + ) + client.disable_organizations_root_credentials_management( + _request(DisableOrganizationsRootCredentialsManagementInputDict) + ) + client.disable_organizations_root_sessions() + client.disable_organizations_root_sessions( + **_request(DisableOrganizationsRootSessionsInputDict) + ) + client.disable_organizations_root_sessions( + _request(DisableOrganizationsRootSessionsInput) + ) + client.disable_organizations_root_sessions( + _request(DisableOrganizationsRootSessionsInputDict) + ) + client.disable_outbound_web_identity_federation() + client.disable_outbound_web_identity_federation( + **_request(DisableOutboundWebIdentityFederationInputDict) + ) + client.disable_outbound_web_identity_federation( + _request(DisableOutboundWebIdentityFederationInput) + ) + client.disable_outbound_web_identity_federation( + _request(DisableOutboundWebIdentityFederationInputDict) + ) + client.enable_mfa_device( + user_name=_, serial_number=_, authentication_code1=_, authentication_code2=_ + ) + client.enable_mfa_device(**_request(EnableMFADeviceInputDict)) + client.enable_mfa_device(_request(EnableMFADeviceInput)) + client.enable_mfa_device(_request(EnableMFADeviceInputDict)) + client.enable_organizations_root_credentials_management() + client.enable_organizations_root_credentials_management( + **_request(EnableOrganizationsRootCredentialsManagementInputDict) + ) + client.enable_organizations_root_credentials_management( + _request(EnableOrganizationsRootCredentialsManagementInput) + ) + client.enable_organizations_root_credentials_management( + _request(EnableOrganizationsRootCredentialsManagementInputDict) + ) + client.enable_organizations_root_sessions() + client.enable_organizations_root_sessions( + **_request(EnableOrganizationsRootSessionsInputDict) + ) + client.enable_organizations_root_sessions( + _request(EnableOrganizationsRootSessionsInput) + ) + client.enable_organizations_root_sessions( + _request(EnableOrganizationsRootSessionsInputDict) + ) + client.enable_outbound_web_identity_federation() + client.enable_outbound_web_identity_federation( + **_request(EnableOutboundWebIdentityFederationInputDict) + ) + client.enable_outbound_web_identity_federation( + _request(EnableOutboundWebIdentityFederationInput) + ) + client.enable_outbound_web_identity_federation( + _request(EnableOutboundWebIdentityFederationInputDict) + ) + client.generate_credential_report() + client.generate_credential_report(**_request(GenerateCredentialReportInputDict)) + client.generate_credential_report(_request(GenerateCredentialReportInput)) + client.generate_credential_report(_request(GenerateCredentialReportInputDict)) + client.generate_organizations_access_report(entity_path=_) + client.generate_organizations_access_report( + **_request(GenerateOrganizationsAccessReportInputDict) + ) + client.generate_organizations_access_report( + _request(GenerateOrganizationsAccessReportInput) + ) + client.generate_organizations_access_report( + _request(GenerateOrganizationsAccessReportInputDict) + ) + client.generate_service_last_accessed_details(arn=_) + client.generate_service_last_accessed_details( + **_request(GenerateServiceLastAccessedDetailsInputDict) + ) + client.generate_service_last_accessed_details( + _request(GenerateServiceLastAccessedDetailsInput) + ) + client.generate_service_last_accessed_details( + _request(GenerateServiceLastAccessedDetailsInputDict) + ) + client.get_access_key_last_used(access_key_id=_) + client.get_access_key_last_used(**_request(GetAccessKeyLastUsedInputDict)) + client.get_access_key_last_used(_request(GetAccessKeyLastUsedInput)) + client.get_access_key_last_used(_request(GetAccessKeyLastUsedInputDict)) + client.get_account_authorization_details() + client.get_account_authorization_details( + **_request(GetAccountAuthorizationDetailsInputDict) + ) + client.get_account_authorization_details( + _request(GetAccountAuthorizationDetailsInput) + ) + client.get_account_authorization_details( + _request(GetAccountAuthorizationDetailsInputDict) + ) + client.get_account_password_policy() + client.get_account_password_policy(**_request(GetAccountPasswordPolicyInputDict)) + client.get_account_password_policy(_request(GetAccountPasswordPolicyInput)) + client.get_account_password_policy(_request(GetAccountPasswordPolicyInputDict)) + client.get_account_properties() + client.get_account_properties(**_request(GetAccountPropertiesInputDict)) + client.get_account_properties(_request(GetAccountPropertiesInput)) + client.get_account_properties(_request(GetAccountPropertiesInputDict)) + client.get_account_summary() + client.get_account_summary(**_request(GetAccountSummaryInputDict)) + client.get_account_summary(_request(GetAccountSummaryInput)) + client.get_account_summary(_request(GetAccountSummaryInputDict)) + client.get_context_keys_for_custom_policy(policy_input_list=_) + client.get_context_keys_for_custom_policy( + **_request(GetContextKeysForCustomPolicyInputDict) + ) + client.get_context_keys_for_custom_policy( + _request(GetContextKeysForCustomPolicyInput) + ) + client.get_context_keys_for_custom_policy( + _request(GetContextKeysForCustomPolicyInputDict) + ) + client.get_context_keys_for_principal_policy(policy_source_arn=_) + client.get_context_keys_for_principal_policy( + **_request(GetContextKeysForPrincipalPolicyInputDict) + ) + client.get_context_keys_for_principal_policy( + _request(GetContextKeysForPrincipalPolicyInput) + ) + client.get_context_keys_for_principal_policy( + _request(GetContextKeysForPrincipalPolicyInputDict) + ) + client.get_credential_report() + client.get_credential_report(**_request(GetCredentialReportInputDict)) + client.get_credential_report(_request(GetCredentialReportInput)) + client.get_credential_report(_request(GetCredentialReportInputDict)) + client.get_delegation_request(delegation_request_id=_) + client.get_delegation_request(**_request(GetDelegationRequestInputDict)) + client.get_delegation_request(_request(GetDelegationRequestInput)) + client.get_delegation_request(_request(GetDelegationRequestInputDict)) + client.get_group(group_name=_) + client.get_group(**_request(GetGroupInputDict)) + client.get_group(_request(GetGroupInput)) + client.get_group(_request(GetGroupInputDict)) + client.get_group_policy(group_name=_, policy_name=_) + client.get_group_policy(**_request(GetGroupPolicyInputDict)) + client.get_group_policy(_request(GetGroupPolicyInput)) + client.get_group_policy(_request(GetGroupPolicyInputDict)) + client.get_human_readable_summary(entity_arn=_) + client.get_human_readable_summary(**_request(GetHumanReadableSummaryInputDict)) + client.get_human_readable_summary(_request(GetHumanReadableSummaryInput)) + client.get_human_readable_summary(_request(GetHumanReadableSummaryInputDict)) + client.get_instance_profile(instance_profile_name=_) + client.get_instance_profile(**_request(GetInstanceProfileInputDict)) + client.get_instance_profile(_request(GetInstanceProfileInput)) + client.get_instance_profile(_request(GetInstanceProfileInputDict)) + client.get_login_profile() + client.get_login_profile(**_request(GetLoginProfileInputDict)) + client.get_login_profile(_request(GetLoginProfileInput)) + client.get_login_profile(_request(GetLoginProfileInputDict)) + client.get_mfa_device(serial_number=_) + client.get_mfa_device(**_request(GetMFADeviceInputDict)) + client.get_mfa_device(_request(GetMFADeviceInput)) + client.get_mfa_device(_request(GetMFADeviceInputDict)) + client.get_open_id_connect_provider(open_id_connect_provider_arn=_) + client.get_open_id_connect_provider(**_request(GetOpenIDConnectProviderInputDict)) + client.get_open_id_connect_provider(_request(GetOpenIDConnectProviderInput)) + client.get_open_id_connect_provider(_request(GetOpenIDConnectProviderInputDict)) + client.get_organizations_access_report(job_id=_) + client.get_organizations_access_report( + **_request(GetOrganizationsAccessReportInputDict) + ) + client.get_organizations_access_report(_request(GetOrganizationsAccessReportInput)) + client.get_organizations_access_report( + _request(GetOrganizationsAccessReportInputDict) + ) + client.get_outbound_web_identity_federation_info() + client.get_outbound_web_identity_federation_info( + **_request(GetOutboundWebIdentityFederationInfoInputDict) + ) + client.get_outbound_web_identity_federation_info( + _request(GetOutboundWebIdentityFederationInfoInput) + ) + client.get_outbound_web_identity_federation_info( + _request(GetOutboundWebIdentityFederationInfoInputDict) + ) + client.get_policy(policy_arn=_) + client.get_policy(**_request(GetPolicyInputDict)) + client.get_policy(_request(GetPolicyInput)) + client.get_policy(_request(GetPolicyInputDict)) + client.get_policy_version(policy_arn=_, version_id=_) + client.get_policy_version(**_request(GetPolicyVersionInputDict)) + client.get_policy_version(_request(GetPolicyVersionInput)) + client.get_policy_version(_request(GetPolicyVersionInputDict)) + client.get_role(role_name=_) + client.get_role(**_request(GetRoleInputDict)) + client.get_role(_request(GetRoleInput)) + client.get_role(_request(GetRoleInputDict)) + client.get_role_policy(role_name=_, policy_name=_) + client.get_role_policy(**_request(GetRolePolicyInputDict)) + client.get_role_policy(_request(GetRolePolicyInput)) + client.get_role_policy(_request(GetRolePolicyInputDict)) + client.get_role_template_version(template_arn=_) + client.get_role_template_version(**_request(GetRoleTemplateVersionInputDict)) + client.get_role_template_version(_request(GetRoleTemplateVersionInput)) + client.get_role_template_version(_request(GetRoleTemplateVersionInputDict)) + client.get_saml_provider(saml_provider_arn=_) + client.get_saml_provider(**_request(GetSAMLProviderInputDict)) + client.get_saml_provider(_request(GetSAMLProviderInput)) + client.get_saml_provider(_request(GetSAMLProviderInputDict)) + client.get_server_certificate(server_certificate_name=_) + client.get_server_certificate(**_request(GetServerCertificateInputDict)) + client.get_server_certificate(_request(GetServerCertificateInput)) + client.get_server_certificate(_request(GetServerCertificateInputDict)) + client.get_service_last_accessed_details(job_id=_) + client.get_service_last_accessed_details( + **_request(GetServiceLastAccessedDetailsInputDict) + ) + client.get_service_last_accessed_details( + _request(GetServiceLastAccessedDetailsInput) + ) + client.get_service_last_accessed_details( + _request(GetServiceLastAccessedDetailsInputDict) + ) + client.get_service_last_accessed_details_with_entities( + job_id=_, service_namespace=_ + ) + client.get_service_last_accessed_details_with_entities( + **_request(GetServiceLastAccessedDetailsWithEntitiesInputDict) + ) + client.get_service_last_accessed_details_with_entities( + _request(GetServiceLastAccessedDetailsWithEntitiesInput) + ) + client.get_service_last_accessed_details_with_entities( + _request(GetServiceLastAccessedDetailsWithEntitiesInputDict) + ) + client.get_service_linked_role_deletion_status(deletion_task_id=_) + client.get_service_linked_role_deletion_status( + **_request(GetServiceLinkedRoleDeletionStatusInputDict) + ) + client.get_service_linked_role_deletion_status( + _request(GetServiceLinkedRoleDeletionStatusInput) + ) + client.get_service_linked_role_deletion_status( + _request(GetServiceLinkedRoleDeletionStatusInputDict) + ) + client.get_ssh_public_key(user_name=_, ssh_public_key_id=_, encoding=_) + client.get_ssh_public_key(**_request(GetSSHPublicKeyInputDict)) + client.get_ssh_public_key(_request(GetSSHPublicKeyInput)) + client.get_ssh_public_key(_request(GetSSHPublicKeyInputDict)) + client.get_user() + client.get_user(**_request(GetUserInputDict)) + client.get_user(_request(GetUserInput)) + client.get_user(_request(GetUserInputDict)) + client.get_user_policy(user_name=_, policy_name=_) + client.get_user_policy(**_request(GetUserPolicyInputDict)) + client.get_user_policy(_request(GetUserPolicyInput)) + client.get_user_policy(_request(GetUserPolicyInputDict)) + client.list_access_keys() + client.list_access_keys(**_request(ListAccessKeysInputDict)) + client.list_access_keys(_request(ListAccessKeysInput)) + client.list_access_keys(_request(ListAccessKeysInputDict)) + client.list_account_aliases() + client.list_account_aliases(**_request(ListAccountAliasesInputDict)) + client.list_account_aliases(_request(ListAccountAliasesInput)) + client.list_account_aliases(_request(ListAccountAliasesInputDict)) + client.list_attached_group_policies(group_name=_) + client.list_attached_group_policies(**_request(ListAttachedGroupPoliciesInputDict)) + client.list_attached_group_policies(_request(ListAttachedGroupPoliciesInput)) + client.list_attached_group_policies(_request(ListAttachedGroupPoliciesInputDict)) + client.list_attached_role_policies(role_name=_) + client.list_attached_role_policies(**_request(ListAttachedRolePoliciesInputDict)) + client.list_attached_role_policies(_request(ListAttachedRolePoliciesInput)) + client.list_attached_role_policies(_request(ListAttachedRolePoliciesInputDict)) + client.list_attached_user_policies(user_name=_) + client.list_attached_user_policies(**_request(ListAttachedUserPoliciesInputDict)) + client.list_attached_user_policies(_request(ListAttachedUserPoliciesInput)) + client.list_attached_user_policies(_request(ListAttachedUserPoliciesInputDict)) + client.list_delegation_requests() + client.list_delegation_requests(**_request(ListDelegationRequestsInputDict)) + client.list_delegation_requests(_request(ListDelegationRequestsInput)) + client.list_delegation_requests(_request(ListDelegationRequestsInputDict)) + client.list_entities_for_policy(policy_arn=_) + client.list_entities_for_policy(**_request(ListEntitiesForPolicyInputDict)) + client.list_entities_for_policy(_request(ListEntitiesForPolicyInput)) + client.list_entities_for_policy(_request(ListEntitiesForPolicyInputDict)) + client.list_group_policies(group_name=_) + client.list_group_policies(**_request(ListGroupPoliciesInputDict)) + client.list_group_policies(_request(ListGroupPoliciesInput)) + client.list_group_policies(_request(ListGroupPoliciesInputDict)) + client.list_groups() + client.list_groups(**_request(ListGroupsInputDict)) + client.list_groups(_request(ListGroupsInput)) + client.list_groups(_request(ListGroupsInputDict)) + client.list_groups_for_user(user_name=_) + client.list_groups_for_user(**_request(ListGroupsForUserInputDict)) + client.list_groups_for_user(_request(ListGroupsForUserInput)) + client.list_groups_for_user(_request(ListGroupsForUserInputDict)) + client.list_instance_profiles() + client.list_instance_profiles(**_request(ListInstanceProfilesInputDict)) + client.list_instance_profiles(_request(ListInstanceProfilesInput)) + client.list_instance_profiles(_request(ListInstanceProfilesInputDict)) + client.list_instance_profiles_for_role(role_name=_) + client.list_instance_profiles_for_role( + **_request(ListInstanceProfilesForRoleInputDict) + ) + client.list_instance_profiles_for_role(_request(ListInstanceProfilesForRoleInput)) + client.list_instance_profiles_for_role( + _request(ListInstanceProfilesForRoleInputDict) + ) + client.list_instance_profile_tags(instance_profile_name=_) + client.list_instance_profile_tags(**_request(ListInstanceProfileTagsInputDict)) + client.list_instance_profile_tags(_request(ListInstanceProfileTagsInput)) + client.list_instance_profile_tags(_request(ListInstanceProfileTagsInputDict)) + client.list_mfa_devices() + client.list_mfa_devices(**_request(ListMFADevicesInputDict)) + client.list_mfa_devices(_request(ListMFADevicesInput)) + client.list_mfa_devices(_request(ListMFADevicesInputDict)) + client.list_mfa_device_tags(serial_number=_) + client.list_mfa_device_tags(**_request(ListMFADeviceTagsInputDict)) + client.list_mfa_device_tags(_request(ListMFADeviceTagsInput)) + client.list_mfa_device_tags(_request(ListMFADeviceTagsInputDict)) + client.list_open_id_connect_providers() + client.list_open_id_connect_providers( + **_request(ListOpenIDConnectProvidersInputDict) + ) + client.list_open_id_connect_providers(_request(ListOpenIDConnectProvidersInput)) + client.list_open_id_connect_providers(_request(ListOpenIDConnectProvidersInputDict)) + client.list_open_id_connect_provider_tags(open_id_connect_provider_arn=_) + client.list_open_id_connect_provider_tags( + **_request(ListOpenIDConnectProviderTagsInputDict) + ) + client.list_open_id_connect_provider_tags( + _request(ListOpenIDConnectProviderTagsInput) + ) + client.list_open_id_connect_provider_tags( + _request(ListOpenIDConnectProviderTagsInputDict) + ) + client.list_organizations_features() + client.list_organizations_features(**_request(ListOrganizationsFeaturesInputDict)) + client.list_organizations_features(_request(ListOrganizationsFeaturesInput)) + client.list_organizations_features(_request(ListOrganizationsFeaturesInputDict)) + client.list_policies() + client.list_policies(**_request(ListPoliciesInputDict)) + client.list_policies(_request(ListPoliciesInput)) + client.list_policies(_request(ListPoliciesInputDict)) + client.list_policies_granting_service_access(arn=_, service_namespaces=_) + client.list_policies_granting_service_access( + **_request(ListPoliciesGrantingServiceAccessInputDict) + ) + client.list_policies_granting_service_access( + _request(ListPoliciesGrantingServiceAccessInput) + ) + client.list_policies_granting_service_access( + _request(ListPoliciesGrantingServiceAccessInputDict) + ) + client.list_policy_tags(policy_arn=_) + client.list_policy_tags(**_request(ListPolicyTagsInputDict)) + client.list_policy_tags(_request(ListPolicyTagsInput)) + client.list_policy_tags(_request(ListPolicyTagsInputDict)) + client.list_policy_versions(policy_arn=_) + client.list_policy_versions(**_request(ListPolicyVersionsInputDict)) + client.list_policy_versions(_request(ListPolicyVersionsInput)) + client.list_policy_versions(_request(ListPolicyVersionsInputDict)) + client.list_role_policies(role_name=_) + client.list_role_policies(**_request(ListRolePoliciesInputDict)) + client.list_role_policies(_request(ListRolePoliciesInput)) + client.list_role_policies(_request(ListRolePoliciesInputDict)) + client.list_roles() + client.list_roles(**_request(ListRolesInputDict)) + client.list_roles(_request(ListRolesInput)) + client.list_roles(_request(ListRolesInputDict)) + client.list_role_tags(role_name=_) + client.list_role_tags(**_request(ListRoleTagsInputDict)) + client.list_role_tags(_request(ListRoleTagsInput)) + client.list_role_tags(_request(ListRoleTagsInputDict)) + client.list_saml_providers() + client.list_saml_providers(**_request(ListSAMLProvidersInputDict)) + client.list_saml_providers(_request(ListSAMLProvidersInput)) + client.list_saml_providers(_request(ListSAMLProvidersInputDict)) + client.list_saml_provider_tags(saml_provider_arn=_) + client.list_saml_provider_tags(**_request(ListSAMLProviderTagsInputDict)) + client.list_saml_provider_tags(_request(ListSAMLProviderTagsInput)) + client.list_saml_provider_tags(_request(ListSAMLProviderTagsInputDict)) + client.list_server_certificates() + client.list_server_certificates(**_request(ListServerCertificatesInputDict)) + client.list_server_certificates(_request(ListServerCertificatesInput)) + client.list_server_certificates(_request(ListServerCertificatesInputDict)) + client.list_server_certificate_tags(server_certificate_name=_) + client.list_server_certificate_tags(**_request(ListServerCertificateTagsInputDict)) + client.list_server_certificate_tags(_request(ListServerCertificateTagsInput)) + client.list_server_certificate_tags(_request(ListServerCertificateTagsInputDict)) + client.list_service_specific_credentials() + client.list_service_specific_credentials( + **_request(ListServiceSpecificCredentialsInputDict) + ) + client.list_service_specific_credentials( + _request(ListServiceSpecificCredentialsInput) + ) + client.list_service_specific_credentials( + _request(ListServiceSpecificCredentialsInputDict) + ) + client.list_signing_certificates() + client.list_signing_certificates(**_request(ListSigningCertificatesInputDict)) + client.list_signing_certificates(_request(ListSigningCertificatesInput)) + client.list_signing_certificates(_request(ListSigningCertificatesInputDict)) + client.list_ssh_public_keys() + client.list_ssh_public_keys(**_request(ListSSHPublicKeysInputDict)) + client.list_ssh_public_keys(_request(ListSSHPublicKeysInput)) + client.list_ssh_public_keys(_request(ListSSHPublicKeysInputDict)) + client.list_user_policies(user_name=_) + client.list_user_policies(**_request(ListUserPoliciesInputDict)) + client.list_user_policies(_request(ListUserPoliciesInput)) + client.list_user_policies(_request(ListUserPoliciesInputDict)) + client.list_users() + client.list_users(**_request(ListUsersInputDict)) + client.list_users(_request(ListUsersInput)) + client.list_users(_request(ListUsersInputDict)) + client.list_user_tags(user_name=_) + client.list_user_tags(**_request(ListUserTagsInputDict)) + client.list_user_tags(_request(ListUserTagsInput)) + client.list_user_tags(_request(ListUserTagsInputDict)) + client.list_virtual_mfa_devices() + client.list_virtual_mfa_devices(**_request(ListVirtualMFADevicesInputDict)) + client.list_virtual_mfa_devices(_request(ListVirtualMFADevicesInput)) + client.list_virtual_mfa_devices(_request(ListVirtualMFADevicesInputDict)) + client.put_account_properties(properties=_) + client.put_account_properties(**_request(PutAccountPropertiesInputDict)) + client.put_account_properties(_request(PutAccountPropertiesInput)) + client.put_account_properties(_request(PutAccountPropertiesInputDict)) + client.put_group_policy(group_name=_, policy_name=_, policy_document=_) + client.put_group_policy(**_request(PutGroupPolicyInputDict)) + client.put_group_policy(_request(PutGroupPolicyInput)) + client.put_group_policy(_request(PutGroupPolicyInputDict)) + client.put_role_permissions_boundary(role_name=_, permissions_boundary=_) + client.put_role_permissions_boundary( + **_request(PutRolePermissionsBoundaryInputDict) + ) + client.put_role_permissions_boundary(_request(PutRolePermissionsBoundaryInput)) + client.put_role_permissions_boundary(_request(PutRolePermissionsBoundaryInputDict)) + client.put_role_policy(role_name=_, policy_name=_, policy_document=_) + client.put_role_policy(**_request(PutRolePolicyInputDict)) + client.put_role_policy(_request(PutRolePolicyInput)) + client.put_role_policy(_request(PutRolePolicyInputDict)) + client.put_user_permissions_boundary(user_name=_, permissions_boundary=_) + client.put_user_permissions_boundary( + **_request(PutUserPermissionsBoundaryInputDict) + ) + client.put_user_permissions_boundary(_request(PutUserPermissionsBoundaryInput)) + client.put_user_permissions_boundary(_request(PutUserPermissionsBoundaryInputDict)) + client.put_user_policy(user_name=_, policy_name=_, policy_document=_) + client.put_user_policy(**_request(PutUserPolicyInputDict)) + client.put_user_policy(_request(PutUserPolicyInput)) + client.put_user_policy(_request(PutUserPolicyInputDict)) + client.reject_delegation_request(delegation_request_id=_) + client.reject_delegation_request(**_request(RejectDelegationRequestInputDict)) + client.reject_delegation_request(_request(RejectDelegationRequestInput)) + client.reject_delegation_request(_request(RejectDelegationRequestInputDict)) + client.remove_client_id_from_open_id_connect_provider( + open_id_connect_provider_arn=_, client_id=_ + ) + client.remove_client_id_from_open_id_connect_provider( + **_request(RemoveClientIDFromOpenIDConnectProviderInputDict) + ) + client.remove_client_id_from_open_id_connect_provider( + _request(RemoveClientIDFromOpenIDConnectProviderInput) + ) + client.remove_client_id_from_open_id_connect_provider( + _request(RemoveClientIDFromOpenIDConnectProviderInputDict) + ) + client.remove_role_from_instance_profile(instance_profile_name=_, role_name=_) + client.remove_role_from_instance_profile( + **_request(RemoveRoleFromInstanceProfileInputDict) + ) + client.remove_role_from_instance_profile( + _request(RemoveRoleFromInstanceProfileInput) + ) + client.remove_role_from_instance_profile( + _request(RemoveRoleFromInstanceProfileInputDict) + ) + client.remove_user_from_group(group_name=_, user_name=_) + client.remove_user_from_group(**_request(RemoveUserFromGroupInputDict)) + client.remove_user_from_group(_request(RemoveUserFromGroupInput)) + client.remove_user_from_group(_request(RemoveUserFromGroupInputDict)) + client.reset_service_specific_credential(service_specific_credential_id=_) + client.reset_service_specific_credential( + **_request(ResetServiceSpecificCredentialInputDict) + ) + client.reset_service_specific_credential( + _request(ResetServiceSpecificCredentialInput) + ) + client.reset_service_specific_credential( + _request(ResetServiceSpecificCredentialInputDict) + ) + client.resync_mfa_device( + user_name=_, serial_number=_, authentication_code1=_, authentication_code2=_ + ) + client.resync_mfa_device(**_request(ResyncMFADeviceInputDict)) + client.resync_mfa_device(_request(ResyncMFADeviceInput)) + client.resync_mfa_device(_request(ResyncMFADeviceInputDict)) + client.send_delegation_token(delegation_request_id=_) + client.send_delegation_token(**_request(SendDelegationTokenInputDict)) + client.send_delegation_token(_request(SendDelegationTokenInput)) + client.send_delegation_token(_request(SendDelegationTokenInputDict)) + client.set_default_policy_version(policy_arn=_, version_id=_) + client.set_default_policy_version(**_request(SetDefaultPolicyVersionInputDict)) + client.set_default_policy_version(_request(SetDefaultPolicyVersionInput)) + client.set_default_policy_version(_request(SetDefaultPolicyVersionInputDict)) + client.set_security_token_service_preferences(global_endpoint_token_version=_) + client.set_security_token_service_preferences( + **_request(SetSecurityTokenServicePreferencesInputDict) + ) + client.set_security_token_service_preferences( + _request(SetSecurityTokenServicePreferencesInput) + ) + client.set_security_token_service_preferences( + _request(SetSecurityTokenServicePreferencesInputDict) + ) + client.simulate_custom_policy(policy_input_list=_, action_names=_) + client.simulate_custom_policy(**_request(SimulateCustomPolicyInputDict)) + client.simulate_custom_policy(_request(SimulateCustomPolicyInput)) + client.simulate_custom_policy(_request(SimulateCustomPolicyInputDict)) + client.simulate_principal_policy(policy_source_arn=_, action_names=_) + client.simulate_principal_policy(**_request(SimulatePrincipalPolicyInputDict)) + client.simulate_principal_policy(_request(SimulatePrincipalPolicyInput)) + client.simulate_principal_policy(_request(SimulatePrincipalPolicyInputDict)) + client.tag_instance_profile(instance_profile_name=_, tags=_) + client.tag_instance_profile(**_request(TagInstanceProfileInputDict)) + client.tag_instance_profile(_request(TagInstanceProfileInput)) + client.tag_instance_profile(_request(TagInstanceProfileInputDict)) + client.tag_mfa_device(serial_number=_, tags=_) + client.tag_mfa_device(**_request(TagMFADeviceInputDict)) + client.tag_mfa_device(_request(TagMFADeviceInput)) + client.tag_mfa_device(_request(TagMFADeviceInputDict)) + client.tag_open_id_connect_provider(open_id_connect_provider_arn=_, tags=_) + client.tag_open_id_connect_provider(**_request(TagOpenIDConnectProviderInputDict)) + client.tag_open_id_connect_provider(_request(TagOpenIDConnectProviderInput)) + client.tag_open_id_connect_provider(_request(TagOpenIDConnectProviderInputDict)) + client.tag_policy(policy_arn=_, tags=_) + client.tag_policy(**_request(TagPolicyInputDict)) + client.tag_policy(_request(TagPolicyInput)) + client.tag_policy(_request(TagPolicyInputDict)) + client.tag_role(role_name=_, tags=_) + client.tag_role(**_request(TagRoleInputDict)) + client.tag_role(_request(TagRoleInput)) + client.tag_role(_request(TagRoleInputDict)) + client.tag_saml_provider(saml_provider_arn=_, tags=_) + client.tag_saml_provider(**_request(TagSAMLProviderInputDict)) + client.tag_saml_provider(_request(TagSAMLProviderInput)) + client.tag_saml_provider(_request(TagSAMLProviderInputDict)) + client.tag_server_certificate(server_certificate_name=_, tags=_) + client.tag_server_certificate(**_request(TagServerCertificateInputDict)) + client.tag_server_certificate(_request(TagServerCertificateInput)) + client.tag_server_certificate(_request(TagServerCertificateInputDict)) + client.tag_user(user_name=_, tags=_) + client.tag_user(**_request(TagUserInputDict)) + client.tag_user(_request(TagUserInput)) + client.tag_user(_request(TagUserInputDict)) + client.untag_instance_profile(instance_profile_name=_, tag_keys=_) + client.untag_instance_profile(**_request(UntagInstanceProfileInputDict)) + client.untag_instance_profile(_request(UntagInstanceProfileInput)) + client.untag_instance_profile(_request(UntagInstanceProfileInputDict)) + client.untag_mfa_device(serial_number=_, tag_keys=_) + client.untag_mfa_device(**_request(UntagMFADeviceInputDict)) + client.untag_mfa_device(_request(UntagMFADeviceInput)) + client.untag_mfa_device(_request(UntagMFADeviceInputDict)) + client.untag_open_id_connect_provider(open_id_connect_provider_arn=_, tag_keys=_) + client.untag_open_id_connect_provider( + **_request(UntagOpenIDConnectProviderInputDict) + ) + client.untag_open_id_connect_provider(_request(UntagOpenIDConnectProviderInput)) + client.untag_open_id_connect_provider(_request(UntagOpenIDConnectProviderInputDict)) + client.untag_policy(policy_arn=_, tag_keys=_) + client.untag_policy(**_request(UntagPolicyInputDict)) + client.untag_policy(_request(UntagPolicyInput)) + client.untag_policy(_request(UntagPolicyInputDict)) + client.untag_role(role_name=_, tag_keys=_) + client.untag_role(**_request(UntagRoleInputDict)) + client.untag_role(_request(UntagRoleInput)) + client.untag_role(_request(UntagRoleInputDict)) + client.untag_saml_provider(saml_provider_arn=_, tag_keys=_) + client.untag_saml_provider(**_request(UntagSAMLProviderInputDict)) + client.untag_saml_provider(_request(UntagSAMLProviderInput)) + client.untag_saml_provider(_request(UntagSAMLProviderInputDict)) + client.untag_server_certificate(server_certificate_name=_, tag_keys=_) + client.untag_server_certificate(**_request(UntagServerCertificateInputDict)) + client.untag_server_certificate(_request(UntagServerCertificateInput)) + client.untag_server_certificate(_request(UntagServerCertificateInputDict)) + client.untag_user(user_name=_, tag_keys=_) + client.untag_user(**_request(UntagUserInputDict)) + client.untag_user(_request(UntagUserInput)) + client.untag_user(_request(UntagUserInputDict)) + client.update_access_key(access_key_id=_, status=_) + client.update_access_key(**_request(UpdateAccessKeyInputDict)) + client.update_access_key(_request(UpdateAccessKeyInput)) + client.update_access_key(_request(UpdateAccessKeyInputDict)) + client.update_account_password_policy() + client.update_account_password_policy( + **_request(UpdateAccountPasswordPolicyInputDict) + ) + client.update_account_password_policy(_request(UpdateAccountPasswordPolicyInput)) + client.update_account_password_policy( + _request(UpdateAccountPasswordPolicyInputDict) + ) + client.update_assume_role_policy(role_name=_, policy_document=_) + client.update_assume_role_policy(**_request(UpdateAssumeRolePolicyInputDict)) + client.update_assume_role_policy(_request(UpdateAssumeRolePolicyInput)) + client.update_assume_role_policy(_request(UpdateAssumeRolePolicyInputDict)) + client.update_delegation_request(delegation_request_id=_) + client.update_delegation_request(**_request(UpdateDelegationRequestInputDict)) + client.update_delegation_request(_request(UpdateDelegationRequestInput)) + client.update_delegation_request(_request(UpdateDelegationRequestInputDict)) + client.update_group(group_name=_) + client.update_group(**_request(UpdateGroupInputDict)) + client.update_group(_request(UpdateGroupInput)) + client.update_group(_request(UpdateGroupInputDict)) + client.update_login_profile(user_name=_) + client.update_login_profile(**_request(UpdateLoginProfileInputDict)) + client.update_login_profile(_request(UpdateLoginProfileInput)) + client.update_login_profile(_request(UpdateLoginProfileInputDict)) + client.update_open_id_connect_provider_thumbprint( + open_id_connect_provider_arn=_, thumbprint_list=_ + ) + client.update_open_id_connect_provider_thumbprint( + **_request(UpdateOpenIDConnectProviderThumbprintInputDict) + ) + client.update_open_id_connect_provider_thumbprint( + _request(UpdateOpenIDConnectProviderThumbprintInput) + ) + client.update_open_id_connect_provider_thumbprint( + _request(UpdateOpenIDConnectProviderThumbprintInputDict) + ) + client.update_role(role_name=_) + client.update_role(**_request(UpdateRoleInputDict)) + client.update_role(_request(UpdateRoleInput)) + client.update_role(_request(UpdateRoleInputDict)) + client.update_role_description(role_name=_, description=_) + client.update_role_description(**_request(UpdateRoleDescriptionInputDict)) + client.update_role_description(_request(UpdateRoleDescriptionInput)) + client.update_role_description(_request(UpdateRoleDescriptionInputDict)) + client.update_saml_provider(saml_provider_arn=_) + client.update_saml_provider(**_request(UpdateSAMLProviderInputDict)) + client.update_saml_provider(_request(UpdateSAMLProviderInput)) + client.update_saml_provider(_request(UpdateSAMLProviderInputDict)) + client.update_server_certificate(server_certificate_name=_) + client.update_server_certificate(**_request(UpdateServerCertificateInputDict)) + client.update_server_certificate(_request(UpdateServerCertificateInput)) + client.update_server_certificate(_request(UpdateServerCertificateInputDict)) + client.update_service_specific_credential( + service_specific_credential_id=_, status=_ + ) + client.update_service_specific_credential( + **_request(UpdateServiceSpecificCredentialInputDict) + ) + client.update_service_specific_credential( + _request(UpdateServiceSpecificCredentialInput) + ) + client.update_service_specific_credential( + _request(UpdateServiceSpecificCredentialInputDict) + ) + client.update_signing_certificate(certificate_id=_, status=_) + client.update_signing_certificate(**_request(UpdateSigningCertificateInputDict)) + client.update_signing_certificate(_request(UpdateSigningCertificateInput)) + client.update_signing_certificate(_request(UpdateSigningCertificateInputDict)) + client.update_ssh_public_key(user_name=_, ssh_public_key_id=_, status=_) + client.update_ssh_public_key(**_request(UpdateSSHPublicKeyInputDict)) + client.update_ssh_public_key(_request(UpdateSSHPublicKeyInput)) + client.update_ssh_public_key(_request(UpdateSSHPublicKeyInputDict)) + client.update_user(user_name=_) + client.update_user(**_request(UpdateUserInputDict)) + client.update_user(_request(UpdateUserInput)) + client.update_user(_request(UpdateUserInputDict)) + client.upload_server_certificate( + server_certificate_name=_, certificate_body=_, private_key=_ + ) + client.upload_server_certificate(**_request(UploadServerCertificateInputDict)) + client.upload_server_certificate(_request(UploadServerCertificateInput)) + client.upload_server_certificate(_request(UploadServerCertificateInputDict)) + client.upload_signing_certificate(certificate_body=_) + client.upload_signing_certificate(**_request(UploadSigningCertificateInputDict)) + client.upload_signing_certificate(_request(UploadSigningCertificateInput)) + client.upload_signing_certificate(_request(UploadSigningCertificateInputDict)) + client.upload_ssh_public_key(user_name=_, ssh_public_key_body=_) + client.upload_ssh_public_key(**_request(UploadSSHPublicKeyInputDict)) + client.upload_ssh_public_key(_request(UploadSSHPublicKeyInput)) + client.upload_ssh_public_key(_request(UploadSSHPublicKeyInputDict)) diff --git a/clients/aws-sdk-kinesis/pyproject.toml b/clients/aws-sdk-kinesis/pyproject.toml index 46fea93d2..c4eb1abce 100644 --- a/clients/aws-sdk-kinesis/pyproject.toml +++ b/clients/aws-sdk-kinesis/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/_private/schemas.py b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/_private/schemas.py index f29846701..c84f13a56 100644 --- a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/_private/schemas.py +++ b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/_private/schemas.py @@ -316,7 +316,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/aio/client.py b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/aio/client.py index 6b7c8e3cb..997d537e4 100644 --- a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/aio/client.py +++ b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -16,7 +16,6 @@ from .. import models as _models from ..models import ( SubscribeToShardEventStream, - SubscribeToShardInput, SubscribeToShardOutput, _SubscribeToShardEventStreamDeserializer, ) @@ -27,93 +26,49 @@ if TYPE_CHECKING: from ..models import ( - AddTagsToStreamInput, AddTagsToStreamOutput, - CreateChannelInput, CreateChannelOutput, - CreateStreamInput, CreateStreamOutput, - DecreaseStreamRetentionPeriodInput, DecreaseStreamRetentionPeriodOutput, - DeleteChannelInput, DeleteChannelOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteStreamInput, DeleteStreamOutput, - DeregisterStreamConsumerInput, DeregisterStreamConsumerOutput, - DescribeAccountSettingsInput, DescribeAccountSettingsOutput, - DescribeChannelInput, DescribeChannelOutput, - DescribeLimitsInput, DescribeLimitsOutput, - DescribeStreamConsumerInput, DescribeStreamConsumerOutput, - DescribeStreamInput, DescribeStreamOutput, - DescribeStreamSummaryInput, DescribeStreamSummaryOutput, - DisableEnhancedMonitoringInput, DisableEnhancedMonitoringOutput, - EnableEnhancedMonitoringInput, EnableEnhancedMonitoringOutput, - GetRecordsInput, GetRecordsOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetShardIteratorInput, GetShardIteratorOutput, - IncreaseStreamRetentionPeriodInput, IncreaseStreamRetentionPeriodOutput, - ListChannelsInput, ListChannelsOutput, - ListShardsInput, ListShardsOutput, - ListStreamConsumersInput, ListStreamConsumersOutput, - ListStreamsInput, ListStreamsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListTagsForStreamInput, ListTagsForStreamOutput, - MergeShardsInput, MergeShardsOutput, - PutRecordInput, PutRecordOutput, - PutRecordsInput, PutRecordsOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - RegisterStreamConsumerInput, RegisterStreamConsumerOutput, - RemoveTagsFromStreamInput, RemoveTagsFromStreamOutput, - SplitShardInput, SplitShardOutput, - StartStreamEncryptionInput, StartStreamEncryptionOutput, - StopStreamEncryptionInput, StopStreamEncryptionOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAccountSettingsInput, UpdateAccountSettingsOutput, - UpdateChannelInput, UpdateChannelOutput, - UpdateMaxRecordSizeInput, UpdateMaxRecordSizeOutput, - UpdateShardCountInput, UpdateShardCountOutput, - UpdateStreamModeInput, UpdateStreamModeOutput, - UpdateStreamRecordDistributionStrategyInput, UpdateStreamRecordDistributionStrategyOutput, - UpdateStreamWarmThroughputInput, UpdateStreamWarmThroughputOutput, ) @@ -127,10 +82,24 @@ class AsyncKinesisClient(AsyncClient[AsyncKinesisConfig]): for real-time processing of streaming big data. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def add_tags_to_stream( - self, input: AddTagsToStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.AddTagsToStreamInput | _models.AddTagsToStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddTagsToStreamOutput: ... + + @_overload + async def add_tags_to_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddTagsToStreamInputDict], ) -> AddTagsToStreamOutput: """ Adds or updates tags for the specified Kinesis data stream. You can @@ -147,8 +116,6 @@ async def add_tags_to_stream( AddTagsToStream has a limit of five transactions per second per account. Args: - input: - An instance of `AddTagsToStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -158,10 +125,33 @@ async def add_tags_to_stream( Returns: An instance of `AddTagsToStreamOutput`. """ - return await self._invoke(input, _models.ADD_TAGS_TO_STREAM, [], plugins) + async def add_tags_to_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddTagsToStreamOutput: + return await self._invoke( + self._select_input(_models.ADD_TAGS_TO_STREAM, args, kwargs), + _models.ADD_TAGS_TO_STREAM, + [], + plugins, + ) + + @_overload + async def create_channel( + self, + request: _models.CreateChannelInput | _models.CreateChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateChannelOutput: ... + + @_overload async def create_channel( - self, input: CreateChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateChannelInputDict], ) -> CreateChannelOutput: """ Creates a channel that delivers records from a Kinesis data stream to a @@ -190,8 +180,6 @@ async def create_channel( `LimitExceededException`. Args: - input: - An instance of `CreateChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -201,10 +189,33 @@ async def create_channel( Returns: An instance of `CreateChannelOutput`. """ - return await self._invoke(input, _models.CREATE_CHANNEL, [], plugins) + async def create_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateChannelOutput: + return await self._invoke( + self._select_input(_models.CREATE_CHANNEL, args, kwargs), + _models.CREATE_CHANNEL, + [], + plugins, + ) + + @_overload async def create_stream( - self, input: CreateStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateStreamInput | _models.CreateStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStreamOutput: ... + + @_overload + async def create_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStreamInputDict], ) -> CreateStreamOutput: """ Creates a Kinesis data stream. A stream captures and transports data @@ -277,8 +288,6 @@ async def create_stream( is in `ACTIVE` state. Args: - input: - An instance of `CreateStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -288,12 +297,34 @@ async def create_stream( Returns: An instance of `CreateStreamOutput`. """ - return await self._invoke(input, _models.CREATE_STREAM, [], plugins) + async def create_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStreamOutput: + return await self._invoke( + self._select_input(_models.CREATE_STREAM, args, kwargs), + _models.CREATE_STREAM, + [], + plugins, + ) + + @_overload + async def decrease_stream_retention_period( + self, + request: _models.DecreaseStreamRetentionPeriodInput + | _models.DecreaseStreamRetentionPeriodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DecreaseStreamRetentionPeriodOutput: ... + + @_overload async def decrease_stream_retention_period( self, - input: DecreaseStreamRetentionPeriodInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DecreaseStreamRetentionPeriodInputDict], ) -> DecreaseStreamRetentionPeriodOutput: """ Decreases the Kinesis data stream's retention period, which is the @@ -310,8 +341,6 @@ async def decrease_stream_retention_period( already in the stream that is older than 24 hours is inaccessible. Args: - input: - An instance of `DecreaseStreamRetentionPeriodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -321,12 +350,33 @@ async def decrease_stream_retention_period( Returns: An instance of `DecreaseStreamRetentionPeriodOutput`. """ + + async def decrease_stream_retention_period( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DecreaseStreamRetentionPeriodOutput: return await self._invoke( - input, _models.DECREASE_STREAM_RETENTION_PERIOD, [], plugins + self._select_input(_models.DECREASE_STREAM_RETENTION_PERIOD, args, kwargs), + _models.DECREASE_STREAM_RETENTION_PERIOD, + [], + plugins, ) + @_overload async def delete_channel( - self, input: DeleteChannelInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteChannelInput | _models.DeleteChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChannelOutput: ... + + @_overload + async def delete_channel( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChannelInputDict], ) -> DeleteChannelOutput: """ Deletes the specified channel. Deleting a channel stops delivery from @@ -342,8 +392,6 @@ async def delete_channel( `LimitExceededException`. Args: - input: - An instance of `DeleteChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -353,10 +401,34 @@ async def delete_channel( Returns: An instance of `DeleteChannelOutput`. """ - return await self._invoke(input, _models.DELETE_CHANNEL, [], plugins) + async def delete_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChannelOutput: + return await self._invoke( + self._select_input(_models.DELETE_CHANNEL, args, kwargs), + _models.DELETE_CHANNEL, + [], + plugins, + ) + + @_overload + async def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Delete a policy for the specified data stream or consumer. Request @@ -368,8 +440,6 @@ async def delete_resource_policy( `^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[0-9]+` Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -379,10 +449,33 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def delete_stream( + self, + request: _models.DeleteStreamInput | _models.DeleteStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStreamOutput: ... + + @_overload async def delete_stream( - self, input: DeleteStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStreamInputDict], ) -> DeleteStreamOutput: """ Deletes a Kinesis data stream and all its shards and data. You must shut @@ -412,8 +505,6 @@ async def delete_stream( DeleteStream has a limit of five transactions per second per account. Args: - input: - An instance of `DeleteStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -423,10 +514,34 @@ async def delete_stream( Returns: An instance of `DeleteStreamOutput`. """ - return await self._invoke(input, _models.DELETE_STREAM, [], plugins) + async def delete_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStreamOutput: + return await self._invoke( + self._select_input(_models.DELETE_STREAM, args, kwargs), + _models.DELETE_STREAM, + [], + plugins, + ) + + @_overload + async def deregister_stream_consumer( + self, + request: _models.DeregisterStreamConsumerInput + | _models.DeregisterStreamConsumerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterStreamConsumerOutput: ... + + @_overload async def deregister_stream_consumer( - self, input: DeregisterStreamConsumerInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterStreamConsumerInputDict], ) -> DeregisterStreamConsumerOutput: """ To deregister a consumer, provide its ARN. Alternatively, you can @@ -441,8 +556,6 @@ async def deregister_stream_consumer( This operation has a limit of five transactions per second per stream. Args: - input: - An instance of `DeregisterStreamConsumerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -452,12 +565,34 @@ async def deregister_stream_consumer( Returns: An instance of `DeregisterStreamConsumerOutput`. """ + + async def deregister_stream_consumer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterStreamConsumerOutput: return await self._invoke( - input, _models.DEREGISTER_STREAM_CONSUMER, [], plugins + self._select_input(_models.DEREGISTER_STREAM_CONSUMER, args, kwargs), + _models.DEREGISTER_STREAM_CONSUMER, + [], + plugins, ) + @_overload async def describe_account_settings( - self, input: DescribeAccountSettingsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeAccountSettingsInput + | _models.DescribeAccountSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountSettingsOutput: ... + + @_overload + async def describe_account_settings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountSettingsInputDict], ) -> DescribeAccountSettingsOutput: """ Describes the account-level settings for Amazon Kinesis Data Streams. @@ -469,8 +604,6 @@ async def describe_account_settings( `LimitExceededException`. Args: - input: - An instance of `DescribeAccountSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -480,10 +613,33 @@ async def describe_account_settings( Returns: An instance of `DescribeAccountSettingsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_ACCOUNT_SETTINGS, [], plugins) + async def describe_account_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountSettingsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_ACCOUNT_SETTINGS, args, kwargs), + _models.DESCRIBE_ACCOUNT_SETTINGS, + [], + plugins, + ) + + @_overload + async def describe_channel( + self, + request: _models.DescribeChannelInput | _models.DescribeChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeChannelOutput: ... + + @_overload async def describe_channel( - self, input: DescribeChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeChannelInputDict], ) -> DescribeChannelOutput: """ Describes the specified channel, including its configuration and current @@ -498,8 +654,6 @@ async def describe_channel( `LimitExceededException`. Args: - input: - An instance of `DescribeChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -509,10 +663,33 @@ async def describe_channel( Returns: An instance of `DescribeChannelOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CHANNEL, [], plugins) + async def describe_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeChannelOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CHANNEL, args, kwargs), + _models.DESCRIBE_CHANNEL, + [], + plugins, + ) + + @_overload async def describe_limits( - self, input: DescribeLimitsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeLimitsInput | _models.DescribeLimitsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeLimitsOutput: ... + + @_overload + async def describe_limits( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLimitsInputDict], ) -> DescribeLimitsOutput: """ Describes the shard limits and usage for the account. @@ -523,8 +700,6 @@ async def describe_limits( This operation has a limit of one transaction per second per account. Args: - input: - An instance of `DescribeLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -534,10 +709,33 @@ async def describe_limits( Returns: An instance of `DescribeLimitsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_LIMITS, [], plugins) + async def describe_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLimitsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_LIMITS, args, kwargs), + _models.DESCRIBE_LIMITS, + [], + plugins, + ) + + @_overload + async def describe_stream( + self, + request: _models.DescribeStreamInput | _models.DescribeStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStreamOutput: ... + + @_overload async def describe_stream( - self, input: DescribeStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStreamInputDict], ) -> DescribeStreamOutput: """ Describes the specified Kinesis data stream. @@ -572,8 +770,6 @@ async def describe_stream( This operation has a limit of 10 transactions per second per account. Args: - input: - An instance of `DescribeStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -583,10 +779,34 @@ async def describe_stream( Returns: An instance of `DescribeStreamOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STREAM, [], plugins) + async def describe_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStreamOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STREAM, args, kwargs), + _models.DESCRIBE_STREAM, + [], + plugins, + ) + + @_overload async def describe_stream_consumer( - self, input: DescribeStreamConsumerInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeStreamConsumerInput + | _models.DescribeStreamConsumerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStreamConsumerOutput: ... + + @_overload + async def describe_stream_consumer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStreamConsumerInputDict], ) -> DescribeStreamConsumerOutput: """ To get the description of a registered consumer, provide the ARN of the @@ -605,8 +825,6 @@ async def describe_stream_consumer( sure to provide the ARN of the consumer. Args: - input: - An instance of `DescribeStreamConsumerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -616,10 +834,34 @@ async def describe_stream_consumer( Returns: An instance of `DescribeStreamConsumerOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STREAM_CONSUMER, [], plugins) + async def describe_stream_consumer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStreamConsumerOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STREAM_CONSUMER, args, kwargs), + _models.DESCRIBE_STREAM_CONSUMER, + [], + plugins, + ) + + @_overload + async def describe_stream_summary( + self, + request: _models.DescribeStreamSummaryInput + | _models.DescribeStreamSummaryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStreamSummaryOutput: ... + + @_overload async def describe_stream_summary( - self, input: DescribeStreamSummaryInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStreamSummaryInputDict], ) -> DescribeStreamSummaryOutput: """ Provides a summarized description of the specified Kinesis data stream @@ -638,8 +880,6 @@ async def describe_stream_summary( account. Args: - input: - An instance of `DescribeStreamSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -649,10 +889,34 @@ async def describe_stream_summary( Returns: An instance of `DescribeStreamSummaryOutput`. """ - return await self._invoke(input, _models.DESCRIBE_STREAM_SUMMARY, [], plugins) + async def describe_stream_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStreamSummaryOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_STREAM_SUMMARY, args, kwargs), + _models.DESCRIBE_STREAM_SUMMARY, + [], + plugins, + ) + + @_overload async def disable_enhanced_monitoring( - self, input: DisableEnhancedMonitoringInput, plugins: list[Plugin] | None = None + self, + request: _models.DisableEnhancedMonitoringInput + | _models.DisableEnhancedMonitoringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableEnhancedMonitoringOutput: ... + + @_overload + async def disable_enhanced_monitoring( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableEnhancedMonitoringInputDict], ) -> DisableEnhancedMonitoringOutput: """ Disables enhanced monitoring. @@ -663,8 +927,6 @@ async def disable_enhanced_monitoring( `StreamARN` input parameter when you invoke this API. Args: - input: - An instance of `DisableEnhancedMonitoringInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -674,12 +936,34 @@ async def disable_enhanced_monitoring( Returns: An instance of `DisableEnhancedMonitoringOutput`. """ + + async def disable_enhanced_monitoring( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableEnhancedMonitoringOutput: return await self._invoke( - input, _models.DISABLE_ENHANCED_MONITORING, [], plugins + self._select_input(_models.DISABLE_ENHANCED_MONITORING, args, kwargs), + _models.DISABLE_ENHANCED_MONITORING, + [], + plugins, ) + @_overload async def enable_enhanced_monitoring( - self, input: EnableEnhancedMonitoringInput, plugins: list[Plugin] | None = None + self, + request: _models.EnableEnhancedMonitoringInput + | _models.EnableEnhancedMonitoringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableEnhancedMonitoringOutput: ... + + @_overload + async def enable_enhanced_monitoring( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableEnhancedMonitoringInputDict], ) -> EnableEnhancedMonitoringOutput: """ Enables enhanced Kinesis data stream monitoring for shard-level metrics. @@ -690,8 +974,6 @@ async def enable_enhanced_monitoring( `StreamARN` input parameter when you invoke this API. Args: - input: - An instance of `EnableEnhancedMonitoringInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -701,12 +983,33 @@ async def enable_enhanced_monitoring( Returns: An instance of `EnableEnhancedMonitoringOutput`. """ + + async def enable_enhanced_monitoring( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableEnhancedMonitoringOutput: return await self._invoke( - input, _models.ENABLE_ENHANCED_MONITORING, [], plugins + self._select_input(_models.ENABLE_ENHANCED_MONITORING, args, kwargs), + _models.ENABLE_ENHANCED_MONITORING, + [], + plugins, ) + @_overload + async def get_records( + self, + request: _models.GetRecordsInput | _models.GetRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRecordsOutput: ... + + @_overload async def get_records( - self, input: GetRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRecordsInputDict], ) -> GetRecordsOutput: """ Gets data records from a Kinesis data stream's shard. @@ -787,8 +1090,6 @@ async def get_records( This operation has a limit of five transactions per second per shard. Args: - input: - An instance of `GetRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -798,10 +1099,33 @@ async def get_records( Returns: An instance of `GetRecordsOutput`. """ - return await self._invoke(input, _models.GET_RECORDS, [], plugins) + async def get_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRecordsOutput: + return await self._invoke( + self._select_input(_models.GET_RECORDS, args, kwargs), + _models.GET_RECORDS, + [], + plugins, + ) + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload + async def get_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Returns a policy attached to the specified data stream or consumer. @@ -813,8 +1137,6 @@ async def get_resource_policy( `^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[0-9]+` Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -824,10 +1146,33 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def get_shard_iterator( + self, + request: _models.GetShardIteratorInput | _models.GetShardIteratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetShardIteratorOutput: ... + + @_overload async def get_shard_iterator( - self, input: GetShardIteratorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetShardIteratorInputDict], ) -> GetShardIteratorOutput: """ Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 @@ -879,8 +1224,6 @@ async def get_shard_iterator( per open shard. Args: - input: - An instance of `GetShardIteratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -890,12 +1233,34 @@ async def get_shard_iterator( Returns: An instance of `GetShardIteratorOutput`. """ - return await self._invoke(input, _models.GET_SHARD_ITERATOR, [], plugins) + async def get_shard_iterator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetShardIteratorOutput: + return await self._invoke( + self._select_input(_models.GET_SHARD_ITERATOR, args, kwargs), + _models.GET_SHARD_ITERATOR, + [], + plugins, + ) + + @_overload async def increase_stream_retention_period( self, - input: IncreaseStreamRetentionPeriodInput, + request: _models.IncreaseStreamRetentionPeriodInput + | _models.IncreaseStreamRetentionPeriodInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> IncreaseStreamRetentionPeriodOutput: ... + + @_overload + async def increase_stream_retention_period( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.IncreaseStreamRetentionPeriodInputDict], ) -> IncreaseStreamRetentionPeriodOutput: """ Increases the Kinesis data stream's retention period, which is the @@ -917,8 +1282,6 @@ async def increase_stream_retention_period( hours remains inaccessible to consumer applications. Args: - input: - An instance of `IncreaseStreamRetentionPeriodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -928,12 +1291,33 @@ async def increase_stream_retention_period( Returns: An instance of `IncreaseStreamRetentionPeriodOutput`. """ + + async def increase_stream_retention_period( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> IncreaseStreamRetentionPeriodOutput: return await self._invoke( - input, _models.INCREASE_STREAM_RETENTION_PERIOD, [], plugins + self._select_input(_models.INCREASE_STREAM_RETENTION_PERIOD, args, kwargs), + _models.INCREASE_STREAM_RETENTION_PERIOD, + [], + plugins, ) + @_overload async def list_channels( - self, input: ListChannelsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListChannelsInput | _models.ListChannelsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListChannelsOutput: ... + + @_overload + async def list_channels( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListChannelsInputDict], ) -> ListChannelsOutput: """ Lists the channels in your account. You can filter the results by source @@ -948,8 +1332,6 @@ async def list_channels( `LimitExceededException`. Args: - input: - An instance of `ListChannelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -959,10 +1341,33 @@ async def list_channels( Returns: An instance of `ListChannelsOutput`. """ - return await self._invoke(input, _models.LIST_CHANNELS, [], plugins) + async def list_channels( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListChannelsOutput: + return await self._invoke( + self._select_input(_models.LIST_CHANNELS, args, kwargs), + _models.LIST_CHANNELS, + [], + plugins, + ) + + @_overload async def list_shards( - self, input: ListShardsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListShardsInput | _models.ListShardsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListShardsOutput: ... + + @_overload + async def list_shards( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListShardsInputDict], ) -> ListShardsOutput: """ Lists the shards in a stream and provides information about each shard. @@ -987,8 +1392,6 @@ async def list_shards( IAM](https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html). Args: - input: - An instance of `ListShardsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -998,10 +1401,34 @@ async def list_shards( Returns: An instance of `ListShardsOutput`. """ - return await self._invoke(input, _models.LIST_SHARDS, [], plugins) + async def list_shards( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListShardsOutput: + return await self._invoke( + self._select_input(_models.LIST_SHARDS, args, kwargs), + _models.LIST_SHARDS, + [], + plugins, + ) + + @_overload + async def list_stream_consumers( + self, + request: _models.ListStreamConsumersInput + | _models.ListStreamConsumersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStreamConsumersOutput: ... + + @_overload async def list_stream_consumers( - self, input: ListStreamConsumersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStreamConsumersInputDict], ) -> ListStreamConsumersOutput: """ Lists the consumers registered to receive data from a stream using @@ -1010,8 +1437,6 @@ async def list_stream_consumers( This operation has a limit of 5 transactions per second per stream. Args: - input: - An instance of `ListStreamConsumersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1021,10 +1446,33 @@ async def list_stream_consumers( Returns: An instance of `ListStreamConsumersOutput`. """ - return await self._invoke(input, _models.LIST_STREAM_CONSUMERS, [], plugins) + async def list_stream_consumers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStreamConsumersOutput: + return await self._invoke( + self._select_input(_models.LIST_STREAM_CONSUMERS, args, kwargs), + _models.LIST_STREAM_CONSUMERS, + [], + plugins, + ) + + @_overload + async def list_streams( + self, + request: _models.ListStreamsInput | _models.ListStreamsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStreamsOutput: ... + + @_overload async def list_streams( - self, input: ListStreamsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStreamsInputDict], ) -> ListStreamsOutput: """ Lists your Kinesis data streams. @@ -1047,8 +1495,6 @@ async def list_streams( ListStreams has a limit of five transactions per second per account. Args: - input: - An instance of `ListStreamsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1058,10 +1504,34 @@ async def list_streams( Returns: An instance of `ListStreamsOutput`. """ - return await self._invoke(input, _models.LIST_STREAMS, [], plugins) + async def list_streams( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStreamsOutput: + return await self._invoke( + self._select_input(_models.LIST_STREAMS, args, kwargs), + _models.LIST_STREAMS, + [], + plugins, + ) + + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List all tags added to the specified Kinesis resource. Each tag is a @@ -1073,8 +1543,6 @@ async def list_tags_for_resource( resources](https://docs.aws.amazon.com/streams/latest/dev/tagging.html). Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1084,10 +1552,33 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload async def list_tags_for_stream( - self, input: ListTagsForStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForStreamInput | _models.ListTagsForStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForStreamOutput: ... + + @_overload + async def list_tags_for_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForStreamInputDict], ) -> ListTagsForStreamOutput: """ Lists the tags for the specified Kinesis data stream. This operation has @@ -1099,8 +1590,6 @@ async def list_tags_for_stream( `StreamARN` input parameter when you invoke this API. Args: - input: - An instance of `ListTagsForStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1110,10 +1599,33 @@ async def list_tags_for_stream( Returns: An instance of `ListTagsForStreamOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_STREAM, [], plugins) + async def list_tags_for_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForStreamOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_STREAM, args, kwargs), + _models.LIST_TAGS_FOR_STREAM, + [], + plugins, + ) + + @_overload async def merge_shards( - self, input: MergeShardsInput, plugins: list[Plugin] | None = None + self, + request: _models.MergeShardsInput | _models.MergeShardsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MergeShardsOutput: ... + + @_overload + async def merge_shards( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MergeShardsInputDict], ) -> MergeShardsOutput: """ Merges two adjacent shards in a Kinesis data stream and combines them @@ -1166,8 +1678,6 @@ async def merge_shards( `MergeShards` has a limit of five transactions per second per account. Args: - input: - An instance of `MergeShardsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1177,10 +1687,33 @@ async def merge_shards( Returns: An instance of `MergeShardsOutput`. """ - return await self._invoke(input, _models.MERGE_SHARDS, [], plugins) + async def merge_shards( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MergeShardsOutput: + return await self._invoke( + self._select_input(_models.MERGE_SHARDS, args, kwargs), + _models.MERGE_SHARDS, + [], + plugins, + ) + + @_overload async def put_record( - self, input: PutRecordInput, plugins: list[Plugin] | None = None + self, + request: _models.PutRecordInput | _models.PutRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRecordOutput: ... + + @_overload + async def put_record( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRecordInputDict], ) -> PutRecordOutput: """ Writes a single data record into an Amazon Kinesis data stream. Call @@ -1240,8 +1773,6 @@ async def put_record( DecreaseStreamRetentionPeriod to modify this retention period. Args: - input: - An instance of `PutRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1251,10 +1782,33 @@ async def put_record( Returns: An instance of `PutRecordOutput`. """ - return await self._invoke(input, _models.PUT_RECORD, [], plugins) + async def put_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRecordOutput: + return await self._invoke( + self._select_input(_models.PUT_RECORD, args, kwargs), + _models.PUT_RECORD, + [], + plugins, + ) + + @_overload + async def put_records( + self, + request: _models.PutRecordsInput | _models.PutRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRecordsOutput: ... + + @_overload async def put_records( - self, input: PutRecordsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRecordsInputDict], ) -> PutRecordsOutput: """ Writes multiple data records into a Kinesis data stream in a single call @@ -1337,8 +1891,6 @@ async def put_records( DecreaseStreamRetentionPeriod to modify this retention period. Args: - input: - An instance of `PutRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1348,10 +1900,33 @@ async def put_records( Returns: An instance of `PutRecordsOutput`. """ - return await self._invoke(input, _models.PUT_RECORDS, [], plugins) + async def put_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRecordsOutput: + return await self._invoke( + self._select_input(_models.PUT_RECORDS, args, kwargs), + _models.PUT_RECORDS, + [], + plugins, + ) + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload + async def put_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Attaches a resource-based policy to a data stream or registered @@ -1376,8 +1951,6 @@ async def put_resource_policy( IAM](https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html). Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1387,10 +1960,34 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload async def register_stream_consumer( - self, input: RegisterStreamConsumerInput, plugins: list[Plugin] | None = None + self, + request: _models.RegisterStreamConsumerInput + | _models.RegisterStreamConsumerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterStreamConsumerOutput: ... + + @_overload + async def register_stream_consumer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterStreamConsumerInputDict], ) -> RegisterStreamConsumerOutput: """ Registers a consumer with a Kinesis data stream. When you use this @@ -1425,8 +2022,6 @@ async def register_stream_consumer( a `CREATING` status results in a `LimitExceededException`. Args: - input: - An instance of `RegisterStreamConsumerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1436,10 +2031,34 @@ async def register_stream_consumer( Returns: An instance of `RegisterStreamConsumerOutput`. """ - return await self._invoke(input, _models.REGISTER_STREAM_CONSUMER, [], plugins) + async def register_stream_consumer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterStreamConsumerOutput: + return await self._invoke( + self._select_input(_models.REGISTER_STREAM_CONSUMER, args, kwargs), + _models.REGISTER_STREAM_CONSUMER, + [], + plugins, + ) + + @_overload + async def remove_tags_from_stream( + self, + request: _models.RemoveTagsFromStreamInput + | _models.RemoveTagsFromStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveTagsFromStreamOutput: ... + + @_overload async def remove_tags_from_stream( - self, input: RemoveTagsFromStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveTagsFromStreamInputDict], ) -> RemoveTagsFromStreamOutput: """ Removes tags from the specified Kinesis data stream. Removed tags are @@ -1457,8 +2076,6 @@ async def remove_tags_from_stream( account. Args: - input: - An instance of `RemoveTagsFromStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1468,10 +2085,33 @@ async def remove_tags_from_stream( Returns: An instance of `RemoveTagsFromStreamOutput`. """ - return await self._invoke(input, _models.REMOVE_TAGS_FROM_STREAM, [], plugins) + async def remove_tags_from_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveTagsFromStreamOutput: + return await self._invoke( + self._select_input(_models.REMOVE_TAGS_FROM_STREAM, args, kwargs), + _models.REMOVE_TAGS_FROM_STREAM, + [], + plugins, + ) + + @_overload async def split_shard( - self, input: SplitShardInput, plugins: list[Plugin] | None = None + self, + request: _models.SplitShardInput | _models.SplitShardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SplitShardOutput: ... + + @_overload + async def split_shard( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SplitShardInputDict], ) -> SplitShardOutput: """ Splits a shard into two new shards in the Kinesis data stream, to @@ -1534,8 +2174,6 @@ async def split_shard( `SplitShard` has a limit of five transactions per second per account. Args: - input: - An instance of `SplitShardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1545,10 +2183,34 @@ async def split_shard( Returns: An instance of `SplitShardOutput`. """ - return await self._invoke(input, _models.SPLIT_SHARD, [], plugins) + async def split_shard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SplitShardOutput: + return await self._invoke( + self._select_input(_models.SPLIT_SHARD, args, kwargs), + _models.SPLIT_SHARD, + [], + plugins, + ) + + @_overload async def start_stream_encryption( - self, input: StartStreamEncryptionInput, plugins: list[Plugin] | None = None + self, + request: _models.StartStreamEncryptionInput + | _models.StartStreamEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartStreamEncryptionOutput: ... + + @_overload + async def start_stream_encryption( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartStreamEncryptionInputDict], ) -> StartStreamEncryptionOutput: """ Enables or updates server-side encryption using an Amazon Web Services @@ -1577,8 +2239,6 @@ async def start_stream_encryption( inspecting the API response from `PutRecord` or `PutRecords`. Args: - input: - An instance of `StartStreamEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1588,10 +2248,34 @@ async def start_stream_encryption( Returns: An instance of `StartStreamEncryptionOutput`. """ - return await self._invoke(input, _models.START_STREAM_ENCRYPTION, [], plugins) + async def start_stream_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartStreamEncryptionOutput: + return await self._invoke( + self._select_input(_models.START_STREAM_ENCRYPTION, args, kwargs), + _models.START_STREAM_ENCRYPTION, + [], + plugins, + ) + + @_overload async def stop_stream_encryption( - self, input: StopStreamEncryptionInput, plugins: list[Plugin] | None = None + self, + request: _models.StopStreamEncryptionInput + | _models.StopStreamEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopStreamEncryptionOutput: ... + + @_overload + async def stop_stream_encryption( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopStreamEncryptionInputDict], ) -> StopStreamEncryptionOutput: """ Disables server-side encryption for a specified stream. @@ -1621,8 +2305,6 @@ async def stop_stream_encryption( `PutRecord` or `PutRecords`. Args: - input: - An instance of `StopStreamEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1632,10 +2314,35 @@ async def stop_stream_encryption( Returns: An instance of `StopStreamEncryptionOutput`. """ - return await self._invoke(input, _models.STOP_STREAM_ENCRYPTION, [], plugins) + async def stop_stream_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopStreamEncryptionOutput: + return await self._invoke( + self._select_input(_models.STOP_STREAM_ENCRYPTION, args, kwargs), + _models.STOP_STREAM_ENCRYPTION, + [], + plugins, + ) + + @_overload + async def subscribe_to_shard( + self, + request: _models.SubscribeToShardInput | _models.SubscribeToShardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + SubscribeToShardEventStream, SubscribeToShardOutput + ]: ... + + @_overload async def subscribe_to_shard( - self, input: SubscribeToShardInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubscribeToShardInputDict], ) -> AsyncOutputEventStream[SubscribeToShardEventStream, SubscribeToShardOutput]: """ This operation establishes an HTTP/2 connection between the consumer you @@ -1671,8 +2378,6 @@ async def subscribe_to_shard( API](https://docs.aws.amazon.com/streams/latest/dev/building-enhanced-consumers-api.html). Args: - input: - An instance of `SubscribeToShardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1682,8 +2387,15 @@ async def subscribe_to_shard( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def subscribe_to_shard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[SubscribeToShardEventStream, SubscribeToShardOutput]: pipeline, call = await self._prepare_call( - input, _models.SUBSCRIBE_TO_SHARD, [], plugins + self._select_input(_models.SUBSCRIBE_TO_SHARD, args, kwargs), + _models.SUBSCRIBE_TO_SHARD, + [], + plugins, ) return await pipeline.output_stream( call, @@ -1691,8 +2403,22 @@ async def subscribe_to_shard( _SubscribeToShardEventStreamDeserializer().deserialize, ) + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds or updates tags for the specified Kinesis resource. Each tag is a @@ -1701,8 +2427,6 @@ async def tag_resource( assign up to 50 tags to a Kinesis resource. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1712,10 +2436,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes tags from the specified Kinesis resource. Removed tags are @@ -1723,8 +2470,6 @@ async def untag_resource( successfully. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1734,10 +2479,34 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_account_settings( + self, + request: _models.UpdateAccountSettingsInput + | _models.UpdateAccountSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAccountSettingsOutput: ... + + @_overload async def update_account_settings( - self, input: UpdateAccountSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAccountSettingsInputDict], ) -> UpdateAccountSettingsOutput: """ Updates the account-level settings for Amazon Kinesis Data Streams. @@ -1757,8 +2526,6 @@ async def update_account_settings( `LimitExceededException`. Args: - input: - An instance of `UpdateAccountSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1768,10 +2535,33 @@ async def update_account_settings( Returns: An instance of `UpdateAccountSettingsOutput`. """ - return await self._invoke(input, _models.UPDATE_ACCOUNT_SETTINGS, [], plugins) + async def update_account_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAccountSettingsOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ACCOUNT_SETTINGS, args, kwargs), + _models.UPDATE_ACCOUNT_SETTINGS, + [], + plugins, + ) + + @_overload async def update_channel( - self, input: UpdateChannelInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateChannelInput | _models.UpdateChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateChannelOutput: ... + + @_overload + async def update_channel( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateChannelInputDict], ) -> UpdateChannelOutput: """ Updates the data freshness interval or the Amazon CloudWatch Logs @@ -1790,8 +2580,6 @@ async def update_channel( `LimitExceededException`. Args: - input: - An instance of `UpdateChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1801,10 +2589,34 @@ async def update_channel( Returns: An instance of `UpdateChannelOutput`. """ - return await self._invoke(input, _models.UPDATE_CHANNEL, [], plugins) + async def update_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateChannelOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CHANNEL, args, kwargs), + _models.UPDATE_CHANNEL, + [], + plugins, + ) + + @_overload + async def update_max_record_size( + self, + request: _models.UpdateMaxRecordSizeInput + | _models.UpdateMaxRecordSizeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMaxRecordSizeOutput: ... + + @_overload async def update_max_record_size( - self, input: UpdateMaxRecordSizeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMaxRecordSizeInputDict], ) -> UpdateMaxRecordSizeOutput: """ This allows you to update the `MaxRecordSize` of a single record that @@ -1812,8 +2624,6 @@ async def update_max_record_size( single records up to 10240 KiB. Args: - input: - An instance of `UpdateMaxRecordSizeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1823,10 +2633,33 @@ async def update_max_record_size( Returns: An instance of `UpdateMaxRecordSizeOutput`. """ - return await self._invoke(input, _models.UPDATE_MAX_RECORD_SIZE, [], plugins) + async def update_max_record_size( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMaxRecordSizeOutput: + return await self._invoke( + self._select_input(_models.UPDATE_MAX_RECORD_SIZE, args, kwargs), + _models.UPDATE_MAX_RECORD_SIZE, + [], + plugins, + ) + + @_overload async def update_shard_count( - self, input: UpdateShardCountInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateShardCountInput | _models.UpdateShardCountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateShardCountOutput: ... + + @_overload + async def update_shard_count( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateShardCountInputDict], ) -> UpdateShardCountOutput: """ Updates the shard count of the specified stream to the specified number @@ -1883,8 +2716,6 @@ async def update_shard_count( form](https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&limitType=service-code-kinesis). Args: - input: - An instance of `UpdateShardCountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1894,10 +2725,33 @@ async def update_shard_count( Returns: An instance of `UpdateShardCountOutput`. """ - return await self._invoke(input, _models.UPDATE_SHARD_COUNT, [], plugins) + async def update_shard_count( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateShardCountOutput: + return await self._invoke( + self._select_input(_models.UPDATE_SHARD_COUNT, args, kwargs), + _models.UPDATE_SHARD_COUNT, + [], + plugins, + ) + + @_overload + async def update_stream_mode( + self, + request: _models.UpdateStreamModeInput | _models.UpdateStreamModeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStreamModeOutput: ... + + @_overload async def update_stream_mode( - self, input: UpdateStreamModeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStreamModeInputDict], ) -> UpdateStreamModeOutput: """ Updates the capacity mode of the data stream. Currently, in Kinesis Data @@ -1912,8 +2766,6 @@ async def update_stream_mode( stream can support in writes. Args: - input: - An instance of `UpdateStreamModeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1923,12 +2775,34 @@ async def update_stream_mode( Returns: An instance of `UpdateStreamModeOutput`. """ - return await self._invoke(input, _models.UPDATE_STREAM_MODE, [], plugins) + async def update_stream_mode( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStreamModeOutput: + return await self._invoke( + self._select_input(_models.UPDATE_STREAM_MODE, args, kwargs), + _models.UPDATE_STREAM_MODE, + [], + plugins, + ) + + @_overload async def update_stream_record_distribution_strategy( self, - input: UpdateStreamRecordDistributionStrategyInput, + request: _models.UpdateStreamRecordDistributionStrategyInput + | _models.UpdateStreamRecordDistributionStrategyInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateStreamRecordDistributionStrategyOutput: ... + + @_overload + async def update_stream_record_distribution_strategy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStreamRecordDistributionStrategyInputDict], ) -> UpdateStreamRecordDistributionStrategyOutput: """ Updates the record distribution strategy for the specified Amazon @@ -1965,8 +2839,6 @@ async def update_stream_record_distribution_strategy( shard assignments and are not redistributed. Args: - input: - An instance of `UpdateStreamRecordDistributionStrategyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1976,14 +2848,36 @@ async def update_stream_record_distribution_strategy( Returns: An instance of `UpdateStreamRecordDistributionStrategyOutput`. """ + + async def update_stream_record_distribution_strategy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStreamRecordDistributionStrategyOutput: return await self._invoke( - input, _models.UPDATE_STREAM_RECORD_DISTRIBUTION_STRATEGY, [], plugins + self._select_input( + _models.UPDATE_STREAM_RECORD_DISTRIBUTION_STRATEGY, args, kwargs + ), + _models.UPDATE_STREAM_RECORD_DISTRIBUTION_STRATEGY, + [], + plugins, ) + @_overload async def update_stream_warm_throughput( self, - input: UpdateStreamWarmThroughputInput, + request: _models.UpdateStreamWarmThroughputInput + | _models.UpdateStreamWarmThroughputInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateStreamWarmThroughputOutput: ... + + @_overload + async def update_stream_warm_throughput( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStreamWarmThroughputInputDict], ) -> UpdateStreamWarmThroughputOutput: """ Updates the warm throughput configuration for the specified Amazon @@ -2031,8 +2925,6 @@ async def update_stream_warm_throughput( form](https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&limitType=service-code-kinesis). Args: - input: - An instance of `UpdateStreamWarmThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2042,8 +2934,15 @@ async def update_stream_warm_throughput( Returns: An instance of `UpdateStreamWarmThroughputOutput`. """ + + async def update_stream_warm_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStreamWarmThroughputOutput: return await self._invoke( - input, _models.UPDATE_STREAM_WARM_THROUGHPUT, [], plugins + self._select_input(_models.UPDATE_STREAM_WARM_THROUGHPUT, args, kwargs), + _models.UPDATE_STREAM_WARM_THROUGHPUT, + [], + plugins, ) async def _new_config(self) -> AsyncKinesisConfig: diff --git a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/client.py b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/client.py index c262e6e59..5bb81a5e9 100644 --- a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/client.py +++ b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,93 +20,49 @@ if TYPE_CHECKING: from .models import ( - AddTagsToStreamInput, AddTagsToStreamOutput, - CreateChannelInput, CreateChannelOutput, - CreateStreamInput, CreateStreamOutput, - DecreaseStreamRetentionPeriodInput, DecreaseStreamRetentionPeriodOutput, - DeleteChannelInput, DeleteChannelOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteStreamInput, DeleteStreamOutput, - DeregisterStreamConsumerInput, DeregisterStreamConsumerOutput, - DescribeAccountSettingsInput, DescribeAccountSettingsOutput, - DescribeChannelInput, DescribeChannelOutput, - DescribeLimitsInput, DescribeLimitsOutput, - DescribeStreamConsumerInput, DescribeStreamConsumerOutput, - DescribeStreamInput, DescribeStreamOutput, - DescribeStreamSummaryInput, DescribeStreamSummaryOutput, - DisableEnhancedMonitoringInput, DisableEnhancedMonitoringOutput, - EnableEnhancedMonitoringInput, EnableEnhancedMonitoringOutput, - GetRecordsInput, GetRecordsOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetShardIteratorInput, GetShardIteratorOutput, - IncreaseStreamRetentionPeriodInput, IncreaseStreamRetentionPeriodOutput, - ListChannelsInput, ListChannelsOutput, - ListShardsInput, ListShardsOutput, - ListStreamConsumersInput, ListStreamConsumersOutput, - ListStreamsInput, ListStreamsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListTagsForStreamInput, ListTagsForStreamOutput, - MergeShardsInput, MergeShardsOutput, - PutRecordInput, PutRecordOutput, - PutRecordsInput, PutRecordsOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - RegisterStreamConsumerInput, RegisterStreamConsumerOutput, - RemoveTagsFromStreamInput, RemoveTagsFromStreamOutput, - SplitShardInput, SplitShardOutput, - StartStreamEncryptionInput, StartStreamEncryptionOutput, - StopStreamEncryptionInput, StopStreamEncryptionOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAccountSettingsInput, UpdateAccountSettingsOutput, - UpdateChannelInput, UpdateChannelOutput, - UpdateMaxRecordSizeInput, UpdateMaxRecordSizeOutput, - UpdateShardCountInput, UpdateShardCountOutput, - UpdateStreamModeInput, UpdateStreamModeOutput, - UpdateStreamRecordDistributionStrategyInput, UpdateStreamRecordDistributionStrategyOutput, - UpdateStreamWarmThroughputInput, UpdateStreamWarmThroughputOutput, ) @@ -120,10 +76,24 @@ class KinesisClient(Client[KinesisConfig]): for real-time processing of streaming big data. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def add_tags_to_stream( - self, input: AddTagsToStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.AddTagsToStreamInput | _models.AddTagsToStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddTagsToStreamOutput: ... + + @_overload + def add_tags_to_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddTagsToStreamInputDict], ) -> AddTagsToStreamOutput: """ Adds or updates tags for the specified Kinesis data stream. You can @@ -140,8 +110,6 @@ def add_tags_to_stream( AddTagsToStream has a limit of five transactions per second per account. Args: - input: - An instance of `AddTagsToStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -151,10 +119,33 @@ def add_tags_to_stream( Returns: An instance of `AddTagsToStreamOutput`. """ - return self._invoke(input, _models.ADD_TAGS_TO_STREAM, [], plugins) + def add_tags_to_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddTagsToStreamOutput: + return self._invoke( + self._select_input(_models.ADD_TAGS_TO_STREAM, args, kwargs), + _models.ADD_TAGS_TO_STREAM, + [], + plugins, + ) + + @_overload + def create_channel( + self, + request: _models.CreateChannelInput | _models.CreateChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateChannelOutput: ... + + @_overload def create_channel( - self, input: CreateChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateChannelInputDict], ) -> CreateChannelOutput: """ Creates a channel that delivers records from a Kinesis data stream to a @@ -183,8 +174,6 @@ def create_channel( `LimitExceededException`. Args: - input: - An instance of `CreateChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -194,10 +183,33 @@ def create_channel( Returns: An instance of `CreateChannelOutput`. """ - return self._invoke(input, _models.CREATE_CHANNEL, [], plugins) + def create_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateChannelOutput: + return self._invoke( + self._select_input(_models.CREATE_CHANNEL, args, kwargs), + _models.CREATE_CHANNEL, + [], + plugins, + ) + + @_overload def create_stream( - self, input: CreateStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateStreamInput | _models.CreateStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateStreamOutput: ... + + @_overload + def create_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateStreamInputDict], ) -> CreateStreamOutput: """ Creates a Kinesis data stream. A stream captures and transports data @@ -270,8 +282,6 @@ def create_stream( is in `ACTIVE` state. Args: - input: - An instance of `CreateStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -281,12 +291,34 @@ def create_stream( Returns: An instance of `CreateStreamOutput`. """ - return self._invoke(input, _models.CREATE_STREAM, [], plugins) + def create_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateStreamOutput: + return self._invoke( + self._select_input(_models.CREATE_STREAM, args, kwargs), + _models.CREATE_STREAM, + [], + plugins, + ) + + @_overload + def decrease_stream_retention_period( + self, + request: _models.DecreaseStreamRetentionPeriodInput + | _models.DecreaseStreamRetentionPeriodInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DecreaseStreamRetentionPeriodOutput: ... + + @_overload def decrease_stream_retention_period( self, - input: DecreaseStreamRetentionPeriodInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DecreaseStreamRetentionPeriodInputDict], ) -> DecreaseStreamRetentionPeriodOutput: """ Decreases the Kinesis data stream's retention period, which is the @@ -303,8 +335,6 @@ def decrease_stream_retention_period( already in the stream that is older than 24 hours is inaccessible. Args: - input: - An instance of `DecreaseStreamRetentionPeriodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -314,12 +344,33 @@ def decrease_stream_retention_period( Returns: An instance of `DecreaseStreamRetentionPeriodOutput`. """ + + def decrease_stream_retention_period( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DecreaseStreamRetentionPeriodOutput: return self._invoke( - input, _models.DECREASE_STREAM_RETENTION_PERIOD, [], plugins + self._select_input(_models.DECREASE_STREAM_RETENTION_PERIOD, args, kwargs), + _models.DECREASE_STREAM_RETENTION_PERIOD, + [], + plugins, ) + @_overload + def delete_channel( + self, + request: _models.DeleteChannelInput | _models.DeleteChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChannelOutput: ... + + @_overload def delete_channel( - self, input: DeleteChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChannelInputDict], ) -> DeleteChannelOutput: """ Deletes the specified channel. Deleting a channel stops delivery from @@ -335,8 +386,6 @@ def delete_channel( `LimitExceededException`. Args: - input: - An instance of `DeleteChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -346,10 +395,34 @@ def delete_channel( Returns: An instance of `DeleteChannelOutput`. """ - return self._invoke(input, _models.DELETE_CHANNEL, [], plugins) + def delete_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChannelOutput: + return self._invoke( + self._select_input(_models.DELETE_CHANNEL, args, kwargs), + _models.DELETE_CHANNEL, + [], + plugins, + ) + + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload + def delete_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Delete a policy for the specified data stream or consumer. Request @@ -361,8 +434,6 @@ def delete_resource_policy( `^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[0-9]+` Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -372,12 +443,33 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def delete_stream( + self, + request: _models.DeleteStreamInput | _models.DeleteStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteStreamOutput: ... + + @_overload def delete_stream( self, - input: DeleteStreamInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteStreamInputDict], ) -> DeleteStreamOutput: """ Deletes a Kinesis data stream and all its shards and data. You must shut @@ -407,8 +499,6 @@ def delete_stream( DeleteStream has a limit of five transactions per second per account. Args: - input: - An instance of `DeleteStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -418,12 +508,34 @@ def delete_stream( Returns: An instance of `DeleteStreamOutput`. """ - return self._invoke(input, _models.DELETE_STREAM, [], plugins) + def delete_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteStreamOutput: + return self._invoke( + self._select_input(_models.DELETE_STREAM, args, kwargs), + _models.DELETE_STREAM, + [], + plugins, + ) + + @_overload def deregister_stream_consumer( self, - input: DeregisterStreamConsumerInput | None = None, + request: _models.DeregisterStreamConsumerInput + | _models.DeregisterStreamConsumerInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeregisterStreamConsumerOutput: ... + + @_overload + def deregister_stream_consumer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterStreamConsumerInputDict], ) -> DeregisterStreamConsumerOutput: """ To deregister a consumer, provide its ARN. Alternatively, you can @@ -438,8 +550,6 @@ def deregister_stream_consumer( This operation has a limit of five transactions per second per stream. Args: - input: - An instance of `DeregisterStreamConsumerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -449,12 +559,34 @@ def deregister_stream_consumer( Returns: An instance of `DeregisterStreamConsumerOutput`. """ - return self._invoke(input, _models.DEREGISTER_STREAM_CONSUMER, [], plugins) + def deregister_stream_consumer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterStreamConsumerOutput: + return self._invoke( + self._select_input(_models.DEREGISTER_STREAM_CONSUMER, args, kwargs), + _models.DEREGISTER_STREAM_CONSUMER, + [], + plugins, + ) + + @_overload def describe_account_settings( self, - input: DescribeAccountSettingsInput | None = None, + request: _models.DescribeAccountSettingsInput + | _models.DescribeAccountSettingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeAccountSettingsOutput: ... + + @_overload + def describe_account_settings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountSettingsInputDict], ) -> DescribeAccountSettingsOutput: """ Describes the account-level settings for Amazon Kinesis Data Streams. @@ -466,8 +598,6 @@ def describe_account_settings( `LimitExceededException`. Args: - input: - An instance of `DescribeAccountSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -477,10 +607,33 @@ def describe_account_settings( Returns: An instance of `DescribeAccountSettingsOutput`. """ - return self._invoke(input, _models.DESCRIBE_ACCOUNT_SETTINGS, [], plugins) + def describe_account_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountSettingsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ACCOUNT_SETTINGS, args, kwargs), + _models.DESCRIBE_ACCOUNT_SETTINGS, + [], + plugins, + ) + + @_overload + def describe_channel( + self, + request: _models.DescribeChannelInput | _models.DescribeChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeChannelOutput: ... + + @_overload def describe_channel( - self, input: DescribeChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeChannelInputDict], ) -> DescribeChannelOutput: """ Describes the specified channel, including its configuration and current @@ -495,8 +648,6 @@ def describe_channel( `LimitExceededException`. Args: - input: - An instance of `DescribeChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -506,12 +657,33 @@ def describe_channel( Returns: An instance of `DescribeChannelOutput`. """ - return self._invoke(input, _models.DESCRIBE_CHANNEL, [], plugins) + def describe_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeChannelOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CHANNEL, args, kwargs), + _models.DESCRIBE_CHANNEL, + [], + plugins, + ) + + @_overload def describe_limits( self, - input: DescribeLimitsInput | None = None, + request: _models.DescribeLimitsInput | _models.DescribeLimitsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeLimitsOutput: ... + + @_overload + def describe_limits( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeLimitsInputDict], ) -> DescribeLimitsOutput: """ Describes the shard limits and usage for the account. @@ -522,8 +694,6 @@ def describe_limits( This operation has a limit of one transaction per second per account. Args: - input: - An instance of `DescribeLimitsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -533,12 +703,33 @@ def describe_limits( Returns: An instance of `DescribeLimitsOutput`. """ - return self._invoke(input, _models.DESCRIBE_LIMITS, [], plugins) + def describe_limits( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeLimitsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_LIMITS, args, kwargs), + _models.DESCRIBE_LIMITS, + [], + plugins, + ) + + @_overload + def describe_stream( + self, + request: _models.DescribeStreamInput | _models.DescribeStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeStreamOutput: ... + + @_overload def describe_stream( self, - input: DescribeStreamInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStreamInputDict], ) -> DescribeStreamOutput: """ Describes the specified Kinesis data stream. @@ -573,8 +764,6 @@ def describe_stream( This operation has a limit of 10 transactions per second per account. Args: - input: - An instance of `DescribeStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -584,12 +773,34 @@ def describe_stream( Returns: An instance of `DescribeStreamOutput`. """ - return self._invoke(input, _models.DESCRIBE_STREAM, [], plugins) + def describe_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStreamOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STREAM, args, kwargs), + _models.DESCRIBE_STREAM, + [], + plugins, + ) + + @_overload def describe_stream_consumer( self, - input: DescribeStreamConsumerInput | None = None, + request: _models.DescribeStreamConsumerInput + | _models.DescribeStreamConsumerInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeStreamConsumerOutput: ... + + @_overload + def describe_stream_consumer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStreamConsumerInputDict], ) -> DescribeStreamConsumerOutput: """ To get the description of a registered consumer, provide the ARN of the @@ -608,8 +819,6 @@ def describe_stream_consumer( sure to provide the ARN of the consumer. Args: - input: - An instance of `DescribeStreamConsumerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -619,12 +828,34 @@ def describe_stream_consumer( Returns: An instance of `DescribeStreamConsumerOutput`. """ - return self._invoke(input, _models.DESCRIBE_STREAM_CONSUMER, [], plugins) + def describe_stream_consumer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStreamConsumerOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STREAM_CONSUMER, args, kwargs), + _models.DESCRIBE_STREAM_CONSUMER, + [], + plugins, + ) + + @_overload def describe_stream_summary( self, - input: DescribeStreamSummaryInput | None = None, + request: _models.DescribeStreamSummaryInput + | _models.DescribeStreamSummaryInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeStreamSummaryOutput: ... + + @_overload + def describe_stream_summary( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeStreamSummaryInputDict], ) -> DescribeStreamSummaryOutput: """ Provides a summarized description of the specified Kinesis data stream @@ -643,8 +874,6 @@ def describe_stream_summary( account. Args: - input: - An instance of `DescribeStreamSummaryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -654,10 +883,34 @@ def describe_stream_summary( Returns: An instance of `DescribeStreamSummaryOutput`. """ - return self._invoke(input, _models.DESCRIBE_STREAM_SUMMARY, [], plugins) + def describe_stream_summary( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeStreamSummaryOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_STREAM_SUMMARY, args, kwargs), + _models.DESCRIBE_STREAM_SUMMARY, + [], + plugins, + ) + + @_overload def disable_enhanced_monitoring( - self, input: DisableEnhancedMonitoringInput, plugins: list[Plugin] | None = None + self, + request: _models.DisableEnhancedMonitoringInput + | _models.DisableEnhancedMonitoringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableEnhancedMonitoringOutput: ... + + @_overload + def disable_enhanced_monitoring( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableEnhancedMonitoringInputDict], ) -> DisableEnhancedMonitoringOutput: """ Disables enhanced monitoring. @@ -668,8 +921,6 @@ def disable_enhanced_monitoring( `StreamARN` input parameter when you invoke this API. Args: - input: - An instance of `DisableEnhancedMonitoringInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -679,10 +930,34 @@ def disable_enhanced_monitoring( Returns: An instance of `DisableEnhancedMonitoringOutput`. """ - return self._invoke(input, _models.DISABLE_ENHANCED_MONITORING, [], plugins) + def disable_enhanced_monitoring( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableEnhancedMonitoringOutput: + return self._invoke( + self._select_input(_models.DISABLE_ENHANCED_MONITORING, args, kwargs), + _models.DISABLE_ENHANCED_MONITORING, + [], + plugins, + ) + + @_overload + def enable_enhanced_monitoring( + self, + request: _models.EnableEnhancedMonitoringInput + | _models.EnableEnhancedMonitoringInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableEnhancedMonitoringOutput: ... + + @_overload def enable_enhanced_monitoring( - self, input: EnableEnhancedMonitoringInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableEnhancedMonitoringInputDict], ) -> EnableEnhancedMonitoringOutput: """ Enables enhanced Kinesis data stream monitoring for shard-level metrics. @@ -693,8 +968,6 @@ def enable_enhanced_monitoring( `StreamARN` input parameter when you invoke this API. Args: - input: - An instance of `EnableEnhancedMonitoringInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -704,10 +977,33 @@ def enable_enhanced_monitoring( Returns: An instance of `EnableEnhancedMonitoringOutput`. """ - return self._invoke(input, _models.ENABLE_ENHANCED_MONITORING, [], plugins) + def enable_enhanced_monitoring( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableEnhancedMonitoringOutput: + return self._invoke( + self._select_input(_models.ENABLE_ENHANCED_MONITORING, args, kwargs), + _models.ENABLE_ENHANCED_MONITORING, + [], + plugins, + ) + + @_overload def get_records( - self, input: GetRecordsInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRecordsInput | _models.GetRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRecordsOutput: ... + + @_overload + def get_records( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRecordsInputDict], ) -> GetRecordsOutput: """ Gets data records from a Kinesis data stream's shard. @@ -788,8 +1084,6 @@ def get_records( This operation has a limit of five transactions per second per shard. Args: - input: - An instance of `GetRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -799,10 +1093,33 @@ def get_records( Returns: An instance of `GetRecordsOutput`. """ - return self._invoke(input, _models.GET_RECORDS, [], plugins) + def get_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRecordsOutput: + return self._invoke( + self._select_input(_models.GET_RECORDS, args, kwargs), + _models.GET_RECORDS, + [], + plugins, + ) + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload + def get_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Returns a policy attached to the specified data stream or consumer. @@ -814,8 +1131,6 @@ def get_resource_policy( `^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[0-9]+` Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -825,10 +1140,33 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def get_shard_iterator( + self, + request: _models.GetShardIteratorInput | _models.GetShardIteratorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetShardIteratorOutput: ... + + @_overload def get_shard_iterator( - self, input: GetShardIteratorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetShardIteratorInputDict], ) -> GetShardIteratorOutput: """ Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 @@ -880,8 +1218,6 @@ def get_shard_iterator( per open shard. Args: - input: - An instance of `GetShardIteratorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -891,12 +1227,34 @@ def get_shard_iterator( Returns: An instance of `GetShardIteratorOutput`. """ - return self._invoke(input, _models.GET_SHARD_ITERATOR, [], plugins) + def get_shard_iterator( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetShardIteratorOutput: + return self._invoke( + self._select_input(_models.GET_SHARD_ITERATOR, args, kwargs), + _models.GET_SHARD_ITERATOR, + [], + plugins, + ) + + @_overload def increase_stream_retention_period( self, - input: IncreaseStreamRetentionPeriodInput, + request: _models.IncreaseStreamRetentionPeriodInput + | _models.IncreaseStreamRetentionPeriodInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> IncreaseStreamRetentionPeriodOutput: ... + + @_overload + def increase_stream_retention_period( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.IncreaseStreamRetentionPeriodInputDict], ) -> IncreaseStreamRetentionPeriodOutput: """ Increases the Kinesis data stream's retention period, which is the @@ -918,8 +1276,6 @@ def increase_stream_retention_period( hours remains inaccessible to consumer applications. Args: - input: - An instance of `IncreaseStreamRetentionPeriodInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -929,14 +1285,33 @@ def increase_stream_retention_period( Returns: An instance of `IncreaseStreamRetentionPeriodOutput`. """ + + def increase_stream_retention_period( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> IncreaseStreamRetentionPeriodOutput: return self._invoke( - input, _models.INCREASE_STREAM_RETENTION_PERIOD, [], plugins + self._select_input(_models.INCREASE_STREAM_RETENTION_PERIOD, args, kwargs), + _models.INCREASE_STREAM_RETENTION_PERIOD, + [], + plugins, ) + @_overload def list_channels( self, - input: ListChannelsInput | None = None, + request: _models.ListChannelsInput | _models.ListChannelsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListChannelsOutput: ... + + @_overload + def list_channels( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListChannelsInputDict], ) -> ListChannelsOutput: """ Lists the channels in your account. You can filter the results by source @@ -951,8 +1326,6 @@ def list_channels( `LimitExceededException`. Args: - input: - An instance of `ListChannelsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -962,10 +1335,33 @@ def list_channels( Returns: An instance of `ListChannelsOutput`. """ - return self._invoke(input, _models.LIST_CHANNELS, [], plugins) + def list_channels( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListChannelsOutput: + return self._invoke( + self._select_input(_models.LIST_CHANNELS, args, kwargs), + _models.LIST_CHANNELS, + [], + plugins, + ) + + @_overload def list_shards( - self, input: ListShardsInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListShardsInput | _models.ListShardsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListShardsOutput: ... + + @_overload + def list_shards( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListShardsInputDict], ) -> ListShardsOutput: """ Lists the shards in a stream and provides information about each shard. @@ -990,8 +1386,6 @@ def list_shards( IAM](https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html). Args: - input: - An instance of `ListShardsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1001,10 +1395,34 @@ def list_shards( Returns: An instance of `ListShardsOutput`. """ - return self._invoke(input, _models.LIST_SHARDS, [], plugins) + def list_shards( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListShardsOutput: + return self._invoke( + self._select_input(_models.LIST_SHARDS, args, kwargs), + _models.LIST_SHARDS, + [], + plugins, + ) + + @_overload + def list_stream_consumers( + self, + request: _models.ListStreamConsumersInput + | _models.ListStreamConsumersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStreamConsumersOutput: ... + + @_overload def list_stream_consumers( - self, input: ListStreamConsumersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStreamConsumersInputDict], ) -> ListStreamConsumersOutput: """ Lists the consumers registered to receive data from a stream using @@ -1013,8 +1431,6 @@ def list_stream_consumers( This operation has a limit of 5 transactions per second per stream. Args: - input: - An instance of `ListStreamConsumersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1024,10 +1440,33 @@ def list_stream_consumers( Returns: An instance of `ListStreamConsumersOutput`. """ - return self._invoke(input, _models.LIST_STREAM_CONSUMERS, [], plugins) + def list_stream_consumers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStreamConsumersOutput: + return self._invoke( + self._select_input(_models.LIST_STREAM_CONSUMERS, args, kwargs), + _models.LIST_STREAM_CONSUMERS, + [], + plugins, + ) + + @_overload + def list_streams( + self, + request: _models.ListStreamsInput | _models.ListStreamsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListStreamsOutput: ... + + @_overload def list_streams( - self, input: ListStreamsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListStreamsInputDict], ) -> ListStreamsOutput: """ Lists your Kinesis data streams. @@ -1050,8 +1489,6 @@ def list_streams( ListStreams has a limit of five transactions per second per account. Args: - input: - An instance of `ListStreamsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1061,10 +1498,34 @@ def list_streams( Returns: An instance of `ListStreamsOutput`. """ - return self._invoke(input, _models.LIST_STREAMS, [], plugins) + def list_streams( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListStreamsOutput: + return self._invoke( + self._select_input(_models.LIST_STREAMS, args, kwargs), + _models.LIST_STREAMS, + [], + plugins, + ) + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List all tags added to the specified Kinesis resource. Each tag is a @@ -1076,8 +1537,6 @@ def list_tags_for_resource( resources](https://docs.aws.amazon.com/streams/latest/dev/tagging.html). Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1087,12 +1546,33 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def list_tags_for_stream( + self, + request: _models.ListTagsForStreamInput | _models.ListTagsForStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForStreamOutput: ... + + @_overload def list_tags_for_stream( self, - input: ListTagsForStreamInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForStreamInputDict], ) -> ListTagsForStreamOutput: """ Lists the tags for the specified Kinesis data stream. This operation has @@ -1104,8 +1584,6 @@ def list_tags_for_stream( `StreamARN` input parameter when you invoke this API. Args: - input: - An instance of `ListTagsForStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1115,10 +1593,33 @@ def list_tags_for_stream( Returns: An instance of `ListTagsForStreamOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_STREAM, [], plugins) + def list_tags_for_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForStreamOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_STREAM, args, kwargs), + _models.LIST_TAGS_FOR_STREAM, + [], + plugins, + ) + + @_overload + def merge_shards( + self, + request: _models.MergeShardsInput | _models.MergeShardsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> MergeShardsOutput: ... + + @_overload def merge_shards( - self, input: MergeShardsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.MergeShardsInputDict], ) -> MergeShardsOutput: """ Merges two adjacent shards in a Kinesis data stream and combines them @@ -1171,8 +1672,6 @@ def merge_shards( `MergeShards` has a limit of five transactions per second per account. Args: - input: - An instance of `MergeShardsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1182,10 +1681,33 @@ def merge_shards( Returns: An instance of `MergeShardsOutput`. """ - return self._invoke(input, _models.MERGE_SHARDS, [], plugins) + def merge_shards( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> MergeShardsOutput: + return self._invoke( + self._select_input(_models.MERGE_SHARDS, args, kwargs), + _models.MERGE_SHARDS, + [], + plugins, + ) + + @_overload def put_record( - self, input: PutRecordInput, plugins: list[Plugin] | None = None + self, + request: _models.PutRecordInput | _models.PutRecordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRecordOutput: ... + + @_overload + def put_record( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRecordInputDict], ) -> PutRecordOutput: """ Writes a single data record into an Amazon Kinesis data stream. Call @@ -1245,8 +1767,6 @@ def put_record( DecreaseStreamRetentionPeriod to modify this retention period. Args: - input: - An instance of `PutRecordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1256,10 +1776,33 @@ def put_record( Returns: An instance of `PutRecordOutput`. """ - return self._invoke(input, _models.PUT_RECORD, [], plugins) + def put_record( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRecordOutput: + return self._invoke( + self._select_input(_models.PUT_RECORD, args, kwargs), + _models.PUT_RECORD, + [], + plugins, + ) + + @_overload def put_records( - self, input: PutRecordsInput, plugins: list[Plugin] | None = None + self, + request: _models.PutRecordsInput | _models.PutRecordsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRecordsOutput: ... + + @_overload + def put_records( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRecordsInputDict], ) -> PutRecordsOutput: """ Writes multiple data records into a Kinesis data stream in a single call @@ -1342,8 +1885,6 @@ def put_records( DecreaseStreamRetentionPeriod to modify this retention period. Args: - input: - An instance of `PutRecordsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1353,10 +1894,33 @@ def put_records( Returns: An instance of `PutRecordsOutput`. """ - return self._invoke(input, _models.PUT_RECORDS, [], plugins) + def put_records( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRecordsOutput: + return self._invoke( + self._select_input(_models.PUT_RECORDS, args, kwargs), + _models.PUT_RECORDS, + [], + plugins, + ) + + @_overload + def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Attaches a resource-based policy to a data stream or registered @@ -1381,8 +1945,6 @@ def put_resource_policy( IAM](https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html). Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1392,10 +1954,34 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def register_stream_consumer( - self, input: RegisterStreamConsumerInput, plugins: list[Plugin] | None = None + self, + request: _models.RegisterStreamConsumerInput + | _models.RegisterStreamConsumerInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterStreamConsumerOutput: ... + + @_overload + def register_stream_consumer( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterStreamConsumerInputDict], ) -> RegisterStreamConsumerOutput: """ Registers a consumer with a Kinesis data stream. When you use this @@ -1430,8 +2016,6 @@ def register_stream_consumer( a `CREATING` status results in a `LimitExceededException`. Args: - input: - An instance of `RegisterStreamConsumerInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1441,10 +2025,34 @@ def register_stream_consumer( Returns: An instance of `RegisterStreamConsumerOutput`. """ - return self._invoke(input, _models.REGISTER_STREAM_CONSUMER, [], plugins) + def register_stream_consumer( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterStreamConsumerOutput: + return self._invoke( + self._select_input(_models.REGISTER_STREAM_CONSUMER, args, kwargs), + _models.REGISTER_STREAM_CONSUMER, + [], + plugins, + ) + + @_overload + def remove_tags_from_stream( + self, + request: _models.RemoveTagsFromStreamInput + | _models.RemoveTagsFromStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveTagsFromStreamOutput: ... + + @_overload def remove_tags_from_stream( - self, input: RemoveTagsFromStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveTagsFromStreamInputDict], ) -> RemoveTagsFromStreamOutput: """ Removes tags from the specified Kinesis data stream. Removed tags are @@ -1462,8 +2070,6 @@ def remove_tags_from_stream( account. Args: - input: - An instance of `RemoveTagsFromStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1473,10 +2079,33 @@ def remove_tags_from_stream( Returns: An instance of `RemoveTagsFromStreamOutput`. """ - return self._invoke(input, _models.REMOVE_TAGS_FROM_STREAM, [], plugins) + def remove_tags_from_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveTagsFromStreamOutput: + return self._invoke( + self._select_input(_models.REMOVE_TAGS_FROM_STREAM, args, kwargs), + _models.REMOVE_TAGS_FROM_STREAM, + [], + plugins, + ) + + @_overload def split_shard( - self, input: SplitShardInput, plugins: list[Plugin] | None = None + self, + request: _models.SplitShardInput | _models.SplitShardInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SplitShardOutput: ... + + @_overload + def split_shard( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SplitShardInputDict], ) -> SplitShardOutput: """ Splits a shard into two new shards in the Kinesis data stream, to @@ -1539,8 +2168,6 @@ def split_shard( `SplitShard` has a limit of five transactions per second per account. Args: - input: - An instance of `SplitShardInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1550,10 +2177,34 @@ def split_shard( Returns: An instance of `SplitShardOutput`. """ - return self._invoke(input, _models.SPLIT_SHARD, [], plugins) + def split_shard( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SplitShardOutput: + return self._invoke( + self._select_input(_models.SPLIT_SHARD, args, kwargs), + _models.SPLIT_SHARD, + [], + plugins, + ) + + @_overload + def start_stream_encryption( + self, + request: _models.StartStreamEncryptionInput + | _models.StartStreamEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartStreamEncryptionOutput: ... + + @_overload def start_stream_encryption( - self, input: StartStreamEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartStreamEncryptionInputDict], ) -> StartStreamEncryptionOutput: """ Enables or updates server-side encryption using an Amazon Web Services @@ -1582,8 +2233,6 @@ def start_stream_encryption( inspecting the API response from `PutRecord` or `PutRecords`. Args: - input: - An instance of `StartStreamEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1593,10 +2242,34 @@ def start_stream_encryption( Returns: An instance of `StartStreamEncryptionOutput`. """ - return self._invoke(input, _models.START_STREAM_ENCRYPTION, [], plugins) + def start_stream_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartStreamEncryptionOutput: + return self._invoke( + self._select_input(_models.START_STREAM_ENCRYPTION, args, kwargs), + _models.START_STREAM_ENCRYPTION, + [], + plugins, + ) + + @_overload def stop_stream_encryption( - self, input: StopStreamEncryptionInput, plugins: list[Plugin] | None = None + self, + request: _models.StopStreamEncryptionInput + | _models.StopStreamEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopStreamEncryptionOutput: ... + + @_overload + def stop_stream_encryption( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopStreamEncryptionInputDict], ) -> StopStreamEncryptionOutput: """ Disables server-side encryption for a specified stream. @@ -1626,8 +2299,6 @@ def stop_stream_encryption( `PutRecord` or `PutRecords`. Args: - input: - An instance of `StopStreamEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1637,10 +2308,33 @@ def stop_stream_encryption( Returns: An instance of `StopStreamEncryptionOutput`. """ - return self._invoke(input, _models.STOP_STREAM_ENCRYPTION, [], plugins) + def stop_stream_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopStreamEncryptionOutput: + return self._invoke( + self._select_input(_models.STOP_STREAM_ENCRYPTION, args, kwargs), + _models.STOP_STREAM_ENCRYPTION, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds or updates tags for the specified Kinesis resource. Each tag is a @@ -1649,8 +2343,6 @@ def tag_resource( assign up to 50 tags to a Kinesis resource. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1660,10 +2352,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes tags from the specified Kinesis resource. Removed tags are @@ -1671,8 +2386,6 @@ def untag_resource( successfully. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1682,10 +2395,34 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_account_settings( + self, + request: _models.UpdateAccountSettingsInput + | _models.UpdateAccountSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAccountSettingsOutput: ... + + @_overload def update_account_settings( - self, input: UpdateAccountSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAccountSettingsInputDict], ) -> UpdateAccountSettingsOutput: """ Updates the account-level settings for Amazon Kinesis Data Streams. @@ -1705,8 +2442,6 @@ def update_account_settings( `LimitExceededException`. Args: - input: - An instance of `UpdateAccountSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1716,10 +2451,33 @@ def update_account_settings( Returns: An instance of `UpdateAccountSettingsOutput`. """ - return self._invoke(input, _models.UPDATE_ACCOUNT_SETTINGS, [], plugins) + def update_account_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAccountSettingsOutput: + return self._invoke( + self._select_input(_models.UPDATE_ACCOUNT_SETTINGS, args, kwargs), + _models.UPDATE_ACCOUNT_SETTINGS, + [], + plugins, + ) + + @_overload + def update_channel( + self, + request: _models.UpdateChannelInput | _models.UpdateChannelInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateChannelOutput: ... + + @_overload def update_channel( - self, input: UpdateChannelInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateChannelInputDict], ) -> UpdateChannelOutput: """ Updates the data freshness interval or the Amazon CloudWatch Logs @@ -1738,8 +2496,6 @@ def update_channel( `LimitExceededException`. Args: - input: - An instance of `UpdateChannelInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1749,10 +2505,34 @@ def update_channel( Returns: An instance of `UpdateChannelOutput`. """ - return self._invoke(input, _models.UPDATE_CHANNEL, [], plugins) + def update_channel( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateChannelOutput: + return self._invoke( + self._select_input(_models.UPDATE_CHANNEL, args, kwargs), + _models.UPDATE_CHANNEL, + [], + plugins, + ) + + @_overload def update_max_record_size( - self, input: UpdateMaxRecordSizeInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateMaxRecordSizeInput + | _models.UpdateMaxRecordSizeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateMaxRecordSizeOutput: ... + + @_overload + def update_max_record_size( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateMaxRecordSizeInputDict], ) -> UpdateMaxRecordSizeOutput: """ This allows you to update the `MaxRecordSize` of a single record that @@ -1760,8 +2540,6 @@ def update_max_record_size( single records up to 10240 KiB. Args: - input: - An instance of `UpdateMaxRecordSizeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1771,10 +2549,33 @@ def update_max_record_size( Returns: An instance of `UpdateMaxRecordSizeOutput`. """ - return self._invoke(input, _models.UPDATE_MAX_RECORD_SIZE, [], plugins) + def update_max_record_size( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateMaxRecordSizeOutput: + return self._invoke( + self._select_input(_models.UPDATE_MAX_RECORD_SIZE, args, kwargs), + _models.UPDATE_MAX_RECORD_SIZE, + [], + plugins, + ) + + @_overload + def update_shard_count( + self, + request: _models.UpdateShardCountInput | _models.UpdateShardCountInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateShardCountOutput: ... + + @_overload def update_shard_count( - self, input: UpdateShardCountInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateShardCountInputDict], ) -> UpdateShardCountOutput: """ Updates the shard count of the specified stream to the specified number @@ -1831,8 +2632,6 @@ def update_shard_count( form](https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&limitType=service-code-kinesis). Args: - input: - An instance of `UpdateShardCountInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1842,10 +2641,33 @@ def update_shard_count( Returns: An instance of `UpdateShardCountOutput`. """ - return self._invoke(input, _models.UPDATE_SHARD_COUNT, [], plugins) + def update_shard_count( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateShardCountOutput: + return self._invoke( + self._select_input(_models.UPDATE_SHARD_COUNT, args, kwargs), + _models.UPDATE_SHARD_COUNT, + [], + plugins, + ) + + @_overload def update_stream_mode( - self, input: UpdateStreamModeInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateStreamModeInput | _models.UpdateStreamModeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStreamModeOutput: ... + + @_overload + def update_stream_mode( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStreamModeInputDict], ) -> UpdateStreamModeOutput: """ Updates the capacity mode of the data stream. Currently, in Kinesis Data @@ -1860,8 +2682,6 @@ def update_stream_mode( stream can support in writes. Args: - input: - An instance of `UpdateStreamModeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1871,12 +2691,34 @@ def update_stream_mode( Returns: An instance of `UpdateStreamModeOutput`. """ - return self._invoke(input, _models.UPDATE_STREAM_MODE, [], plugins) + def update_stream_mode( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStreamModeOutput: + return self._invoke( + self._select_input(_models.UPDATE_STREAM_MODE, args, kwargs), + _models.UPDATE_STREAM_MODE, + [], + plugins, + ) + + @_overload + def update_stream_record_distribution_strategy( + self, + request: _models.UpdateStreamRecordDistributionStrategyInput + | _models.UpdateStreamRecordDistributionStrategyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStreamRecordDistributionStrategyOutput: ... + + @_overload def update_stream_record_distribution_strategy( self, - input: UpdateStreamRecordDistributionStrategyInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStreamRecordDistributionStrategyInputDict], ) -> UpdateStreamRecordDistributionStrategyOutput: """ Updates the record distribution strategy for the specified Amazon @@ -1913,8 +2755,6 @@ def update_stream_record_distribution_strategy( shard assignments and are not redistributed. Args: - input: - An instance of `UpdateStreamRecordDistributionStrategyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1924,14 +2764,36 @@ def update_stream_record_distribution_strategy( Returns: An instance of `UpdateStreamRecordDistributionStrategyOutput`. """ + + def update_stream_record_distribution_strategy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStreamRecordDistributionStrategyOutput: return self._invoke( - input, _models.UPDATE_STREAM_RECORD_DISTRIBUTION_STRATEGY, [], plugins + self._select_input( + _models.UPDATE_STREAM_RECORD_DISTRIBUTION_STRATEGY, args, kwargs + ), + _models.UPDATE_STREAM_RECORD_DISTRIBUTION_STRATEGY, + [], + plugins, ) + @_overload + def update_stream_warm_throughput( + self, + request: _models.UpdateStreamWarmThroughputInput + | _models.UpdateStreamWarmThroughputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateStreamWarmThroughputOutput: ... + + @_overload def update_stream_warm_throughput( self, - input: UpdateStreamWarmThroughputInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateStreamWarmThroughputInputDict], ) -> UpdateStreamWarmThroughputOutput: """ Updates the warm throughput configuration for the specified Amazon @@ -1979,8 +2841,6 @@ def update_stream_warm_throughput( form](https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&limitType=service-code-kinesis). Args: - input: - An instance of `UpdateStreamWarmThroughputInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1990,7 +2850,16 @@ def update_stream_warm_throughput( Returns: An instance of `UpdateStreamWarmThroughputOutput`. """ - return self._invoke(input, _models.UPDATE_STREAM_WARM_THROUGHPUT, [], plugins) + + def update_stream_warm_throughput( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateStreamWarmThroughputOutput: + return self._invoke( + self._select_input(_models.UPDATE_STREAM_WARM_THROUGHPUT, args, kwargs), + _models.UPDATE_STREAM_WARM_THROUGHPUT, + [], + plugins, + ) def _new_config(self) -> KinesisConfig: return KinesisConfig.resolve() diff --git a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/models.pyi b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/models.pyi index 010125144..36b96a0e0 100644 --- a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/models.pyi +++ b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -58,6 +59,22 @@ class AddTagsToStreamInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class AddTagsToStreamInputDict(TypedDict, total=False): + """Dictionary form of `AddTagsToStreamInput`.""" + + stream_name: str | None + """The name of the stream.""" + tags: Required[Mapping[str, str]] + """ + A set of up to 50 key-value pairs to use to create the tags. A tag + consists of a required key and an optional value. You can add up to 50 + tags per resource. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class AddTagsToStreamOutput(_SerdeShape): """Dataclass for AddTagsToStreamOutput structure.""" @@ -144,6 +161,17 @@ class ChannelEncryptionConfiguration(_SerdeShape): cannot use the Amazon Kinesis Data Streams service key (`aws/kinesis`). """ +class ChannelEncryptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `ChannelEncryptionConfiguration`.""" + + encryption_type: Required[str] + """The encryption type. The only valid value is `KMS`.""" + key_id: Required[str] + """ + The identifier of the customer managed Amazon Web Services KMS key. You + cannot use the Amazon Kinesis Data Streams service key (`aws/kinesis`). + """ + class ChannelEncryptionType(UnknownEnumMixin, StrEnum): KMS = "KMS" @@ -154,6 +182,12 @@ class ChannelLoggingConfiguration(_SerdeShape): cloud_watch_logs: CloudWatchLogs """The Amazon CloudWatch Logs settings for the channel.""" +class ChannelLoggingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ChannelLoggingConfiguration`.""" + + cloud_watch_logs: Required[CloudWatchLogs | CloudWatchLogsDict] + """The Amazon CloudWatch Logs settings for the channel.""" + @dataclass(kw_only=True) class ChannelLoggingUpdateInput(_SerdeShape): """ @@ -167,6 +201,17 @@ class ChannelLoggingUpdateInput(_SerdeShape): is enabled and the target log group and log stream. """ +class ChannelLoggingUpdateInputDict(TypedDict, total=False): + """Dictionary form of `ChannelLoggingUpdateInput`.""" + + cloud_watch_logs: Required[ + CloudWatchLogsUpdateInput | CloudWatchLogsUpdateInputDict + ] + """ + The updated Amazon CloudWatch Logs settings, including whether logging + is enabled and the target log group and log stream. + """ + class ChannelStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" ACTIVE = "ACTIVE" @@ -186,6 +231,14 @@ class ChannelStreamConfiguration(_SerdeShape): record_configuration: RecordConfiguration """The record format configuration for the source stream.""" +class ChannelStreamConfigurationDict(TypedDict, total=False): + """Dictionary form of `ChannelStreamConfiguration`.""" + + stream_arn: Required[str] + """The Amazon Resource Name (ARN) of the source Kinesis data stream.""" + record_configuration: Required[RecordConfiguration | RecordConfigurationDict] + """The record format configuration for the source stream.""" + @dataclass(kw_only=True) class ChannelStreamDescription(_SerdeShape): """Describes the source stream of a channel.""" @@ -279,6 +332,22 @@ class CloudWatchLogs(_SerdeShape): `DestinationDelivery`. """ +class CloudWatchLogsDict(TypedDict, total=False): + """Dictionary form of `CloudWatchLogs`.""" + + enabled: Required[bool] + """Specifies whether logging to Amazon CloudWatch Logs is enabled.""" + log_group_name: str | None + """ + The name of the Amazon CloudWatch Logs log group. Defaults to + `/aws/kinesis/{channelName}/{channelId}`. + """ + log_stream_name: str | None + """ + The name of the Amazon CloudWatch Logs log stream. Defaults to + `DestinationDelivery`. + """ + @dataclass(kw_only=True) class CloudWatchLogsUpdateInput(_SerdeShape): """The updated Amazon CloudWatch Logs settings for a channel.""" @@ -290,6 +359,16 @@ class CloudWatchLogsUpdateInput(_SerdeShape): log_stream_name: str | None = ... """The name of the Amazon CloudWatch Logs log stream.""" +class CloudWatchLogsUpdateInputDict(TypedDict, total=False): + """Dictionary form of `CloudWatchLogsUpdateInput`.""" + + enabled: Required[bool] + """Specifies whether logging to Amazon CloudWatch Logs is enabled.""" + log_group_name: str | None + """The name of the Amazon CloudWatch Logs log group.""" + log_stream_name: str | None + """The name of the Amazon CloudWatch Logs log stream.""" + @dataclass(kw_only=True) class Consumer(_SerdeShape): """ @@ -401,6 +480,59 @@ class CreateChannelInput(_SerdeShape): logging_configuration: ChannelLoggingConfiguration | None = ... """The Amazon CloudWatch Logs configuration for the channel.""" +class CreateChannelInputDict(TypedDict, total=False): + """Dictionary form of `CreateChannelInput`.""" + + channel_name: Required[str] + """ + The name of the channel. The name is unique within your Amazon Web + Services account and Amazon Web Services Region. + """ + service_execution_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role that Amazon Kinesis Data + Streams assumes to write records to the destination. + """ + stream_configuration_list: Required[ + Sequence[ChannelStreamConfiguration | ChannelStreamConfigurationDict] + ] + """ + The source stream configuration for the channel. Currently, one stream + is supported per channel. + """ + s3_destination_configuration: ( + S3DestinationConfiguration | S3DestinationConfigurationDict | None + ) + """ + The configuration for delivery to a general purpose Amazon S3 bucket. + Specify this parameter when `S3TablesDestinationConfiguration` is not + specified. + """ + s3_tables_destination_configuration: ( + S3TablesDestinationConfiguration | S3TablesDestinationConfigurationDict | None + ) + """ + The configuration for delivery to streaming tables on Apache Iceberg in + Amazon S3 Tables. Specify this parameter when + `S3DestinationConfiguration` is not specified. + """ + encryption_configuration: ( + ChannelEncryptionConfiguration | ChannelEncryptionConfigurationDict | None + ) + """ + The server-side encryption configuration that uses an Amazon Web + Services KMS key to encrypt data delivered to the destination. + """ + tags: Mapping[str, str] | None + """ + A set of key-value pairs to assign to the channel. A tag consists of a + required key and an optional value. + """ + logging_configuration: ( + ChannelLoggingConfiguration | ChannelLoggingConfigurationDict | None + ) + """The Amazon CloudWatch Logs configuration for the channel.""" + @dataclass(kw_only=True) class CreateChannelOutput(_SerdeShape): """Dataclass for CreateChannelOutput structure.""" @@ -480,6 +612,66 @@ class CreateStreamInput(_SerdeShape): stream uses `USER_PARTITION_KEY`. """ +class CreateStreamInputDict(TypedDict, total=False): + """Dictionary form of `CreateStreamInput`.""" + + stream_name: Required[str] + """ + A name to identify the stream. The stream name is scoped to the Amazon + Web Services account used by the application that creates the stream. It + is also scoped by Amazon Web Services Region. That is, two streams in + two different Amazon Web Services accounts can have the same name. Two + streams in the same Amazon Web Services account but in two different + Regions can also have the same name. + """ + shard_count: int | None + """ + The number of shards that the stream will use. The throughput of the + stream is a function of the number of shards; more shards are required + for greater provisioned throughput. + """ + stream_mode_details: StreamModeDetails | StreamModeDetailsDict | None + """ + Indicates the capacity mode of the data stream. Currently, in Kinesis + Data Streams, you can choose between an **on-demand** capacity mode and + a **provisioned** capacity mode for your data streams. + """ + tags: Mapping[str, str] | None + """ + A set of up to 50 key-value pairs to use to create the tags. A tag + consists of a required key and an optional value. + """ + warm_throughput_mi_bps: int | None + """ + The target warm throughput in MB/s that the stream should be scaled to + handle. This represents the throughput capacity that will be immediately + available for write operations. + """ + max_record_size_in_ki_b: int | None + """ + The maximum record size of a single record in kibibyte (KiB) that you + can write to, and read from a stream. + """ + record_distribution_strategy: str | None + """ + The record distribution strategy for the stream, which determines how + Amazon Kinesis Data Streams distributes records across shards. Specify + one of the following values: + + - `AUTO` -- Amazon Kinesis Data Streams distributes records evenly + across shards and ignores any partition key and `ExplicitHashKey` that + producers supply. Use this value for stateless workloads that do not + require partition-key ordering. + + - `USER_PARTITION_KEY` -- Producers must supply a partition key, which + Amazon Kinesis Data Streams uses to determine shard placement. This is + the default. + + The record distribution strategy is only supported for streams that use + the on-demand capacity mode. If you do not specify this parameter, the + stream uses `USER_PARTITION_KEY`. + """ + @dataclass(kw_only=True) class CreateStreamOutput(_SerdeShape): """Dataclass for CreateStreamOutput structure.""" @@ -512,6 +704,22 @@ class DeadLetterQueueS3Configuration(_SerdeShape): error_output_prefix: str | None = ... """The Amazon S3 key prefix for error records.""" +class DeadLetterQueueS3ConfigurationDict(TypedDict, total=False): + """Dictionary form of `DeadLetterQueueS3Configuration`.""" + + bucket_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the dead-letter queue Amazon S3 + bucket. + """ + expected_bucket_owner: Required[str] + """ + The Amazon Web Services account ID of the expected owner of the + dead-letter queue bucket. + """ + error_output_prefix: str | None + """The Amazon S3 key prefix for error records.""" + @dataclass(kw_only=True) class DecreaseStreamRetentionPeriodInput(_SerdeShape): """Represents the input for DecreaseStreamRetentionPeriod.""" @@ -528,6 +736,21 @@ class DecreaseStreamRetentionPeriodInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class DecreaseStreamRetentionPeriodInputDict(TypedDict, total=False): + """Dictionary form of `DecreaseStreamRetentionPeriodInput`.""" + + stream_name: str | None + """The name of the stream to modify.""" + retention_period_hours: Required[int] + """ + The new retention period of the stream, in hours. Must be less than the + current retention period. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class DecreaseStreamRetentionPeriodOutput(_SerdeShape): """Dataclass for DecreaseStreamRetentionPeriodOutput structure.""" @@ -547,6 +770,12 @@ class DeleteChannelInput(_SerdeShape): channel_arn: str | None = ... """The Amazon Resource Name (ARN) of the channel to delete.""" +class DeleteChannelInputDict(TypedDict, total=False): + """Dictionary form of `DeleteChannelInput`.""" + + channel_arn: Required[str] + """The Amazon Resource Name (ARN) of the channel to delete.""" + @dataclass(kw_only=True) class DeleteChannelOutput(_SerdeShape): """Dataclass for DeleteChannelOutput structure.""" @@ -568,6 +797,14 @@ class DeleteResourcePolicyInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the data stream or consumer.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class DeleteResourcePolicyOutput(_SerdeShape): """Dataclass for DeleteResourcePolicyOutput structure.""" @@ -597,6 +834,22 @@ class DeleteStreamInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class DeleteStreamInputDict(TypedDict, total=False): + """Dictionary form of `DeleteStreamInput`.""" + + stream_name: str | None + """The name of the stream to delete.""" + enforce_consumer_deletion: bool | None + """ + If this parameter is unset (`null`) or if you set it to `false`, and the + stream has registered consumers, the call to `DeleteStream` fails with a + `ResourceInUseException`. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class DeleteStreamOutput(_SerdeShape): """Dataclass for DeleteStreamOutput structure.""" @@ -634,6 +887,30 @@ class DeregisterStreamConsumerInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class DeregisterStreamConsumerInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterStreamConsumerInput`.""" + + stream_arn: str | None + """ + The ARN of the Kinesis data stream that the consumer is registered with. + For more information, see [Amazon Resource Names (ARNs) and Amazon Web + Services Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). + """ + consumer_name: str | None + """The name that you gave to the consumer.""" + consumer_arn: str | None + """ + The ARN returned by Kinesis Data Streams when you registered the + consumer. If you don't know the ARN of the consumer that you want to + deregister, you can use the ListStreamConsumers operation to get a list + of the descriptions of all the consumers that are currently registered + with a given data stream. The description of a consumer contains its + ARN. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class DeregisterStreamConsumerOutput(_SerdeShape): """Dataclass for DeregisterStreamConsumerOutput structure.""" @@ -650,6 +927,9 @@ class DeregisterStreamConsumerOutput(_SerdeShape): class DescribeAccountSettingsInput(_SerdeShape): """Dataclass for DescribeAccountSettingsInput structure.""" +class DescribeAccountSettingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAccountSettingsInput`.""" + @dataclass(kw_only=True) class DescribeAccountSettingsOutput(_SerdeShape): """Dataclass for DescribeAccountSettingsOutput structure.""" @@ -676,6 +956,12 @@ class DescribeChannelInput(_SerdeShape): channel_arn: str | None = ... """The Amazon Resource Name (ARN) of the channel to describe.""" +class DescribeChannelInputDict(TypedDict, total=False): + """Dictionary form of `DescribeChannelInput`.""" + + channel_arn: Required[str] + """The Amazon Resource Name (ARN) of the channel to describe.""" + @dataclass(kw_only=True) class DescribeChannelOutput(_SerdeShape): """Dataclass for DescribeChannelOutput structure.""" @@ -697,6 +983,9 @@ class DescribeChannelOutput(_SerdeShape): class DescribeLimitsInput(_SerdeShape): """Dataclass for DescribeLimitsInput structure.""" +class DescribeLimitsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeLimitsInput`.""" + @dataclass(kw_only=True) class DescribeLimitsOutput(_SerdeShape): """Dataclass for DescribeLimitsOutput structure.""" @@ -742,6 +1031,26 @@ class DescribeStreamConsumerInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class DescribeStreamConsumerInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStreamConsumerInput`.""" + + stream_arn: str | None + """ + The ARN of the Kinesis data stream that the consumer is registered with. + For more information, see [Amazon Resource Names (ARNs) and Amazon Web + Services Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). + """ + consumer_name: str | None + """The name that you gave to the consumer.""" + consumer_arn: str | None + """ + The ARN returned by Kinesis Data Streams when you registered the + consumer. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class DescribeStreamConsumerOutput(_SerdeShape): """Dataclass for DescribeStreamConsumerOutput structure.""" @@ -785,6 +1094,34 @@ class DescribeStreamInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class DescribeStreamInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStreamInput`.""" + + stream_name: str | None + """The name of the stream to describe.""" + limit: int | None + """ + The maximum number of shards to return in a single call. The default + value is 100. If you specify a value greater than 100, at most 100 + results are returned. + """ + exclusive_start_shard_id: str | None + """ + The shard ID of the shard to start with. + + Specify this parameter to indicate that you want to describe the stream + starting with the shard whose ID immediately follows + `ExclusiveStartShardId`. + + If you don't specify this parameter, the default behavior for + `DescribeStream` is to describe the stream starting with the first shard + in the stream. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class DescribeStreamOutput(_SerdeShape): """Represents the output for `DescribeStream`.""" @@ -814,6 +1151,16 @@ class DescribeStreamSummaryInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class DescribeStreamSummaryInputDict(TypedDict, total=False): + """Dictionary form of `DescribeStreamSummaryInput`.""" + + stream_name: str | None + """The name of the stream to describe.""" + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class DescribeStreamSummaryOutput(_SerdeShape): """Dataclass for DescribeStreamSummaryOutput structure.""" @@ -870,33 +1217,74 @@ class DisableEnhancedMonitoringInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" -@dataclass(kw_only=True) -class DisableEnhancedMonitoringOutput(_SerdeShape): - """ - Represents the output for EnableEnhancedMonitoring and - DisableEnhancedMonitoring. - """ +class DisableEnhancedMonitoringInputDict(TypedDict, total=False): + """Dictionary form of `DisableEnhancedMonitoringInput`.""" - stream_name: str | None = ... - """The name of the Kinesis data stream.""" - current_shard_level_metrics: list[str] | None = ... - """ - Represents the current state of the metrics that are in the enhanced - state before the operation. - """ - desired_shard_level_metrics: list[str] | None = ... + stream_name: str | None """ - Represents the list of all the metrics that would be in the enhanced - state after the operation. - """ - stream_arn: str | None = ... - """The ARN of the stream.""" - response_metadata: ResponseMetadata = ... + The name of the Kinesis data stream for which to disable enhanced + monitoring. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + shard_level_metrics: Required[Sequence[str]] + """ + List of shard-level metrics to disable. + + The following are the valid shard-level metrics. The value \"`ALL`\" + disables every metric. + + - `IncomingBytes` + + - `IncomingRecords` + + - `OutgoingBytes` + + - `OutgoingRecords` + + - `WriteProvisionedThroughputExceeded` + + - `ReadProvisionedThroughputExceeded` + + - `IteratorAgeMilliseconds` + + - `ALL` + + For more information, see [Monitoring the Amazon Kinesis Data Streams + Service with Amazon + CloudWatch](https://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) + in the *Amazon Kinesis Data Streams Developer Guide*. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + +@dataclass(kw_only=True) +class DisableEnhancedMonitoringOutput(_SerdeShape): + """ + Represents the output for EnableEnhancedMonitoring and + DisableEnhancedMonitoring. + """ + + stream_name: str | None = ... + """The name of the Kinesis data stream.""" + current_shard_level_metrics: list[str] | None = ... + """ + Represents the current state of the metrics that are in the enhanced + state before the operation. + """ + desired_shard_level_metrics: list[str] | None = ... + """ + Represents the list of all the metrics that would be in the enhanced + state after the operation. + """ + stream_arn: str | None = ... + """The ARN of the stream.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) @@ -950,6 +1338,44 @@ class EnableEnhancedMonitoringInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class EnableEnhancedMonitoringInputDict(TypedDict, total=False): + """Dictionary form of `EnableEnhancedMonitoringInput`.""" + + stream_name: str | None + """The name of the stream for which to enable enhanced monitoring.""" + shard_level_metrics: Required[Sequence[str]] + """ + List of shard-level metrics to enable. + + The following are the valid shard-level metrics. The value \"`ALL`\" + enables every metric. + + - `IncomingBytes` + + - `IncomingRecords` + + - `OutgoingBytes` + + - `OutgoingRecords` + + - `WriteProvisionedThroughputExceeded` + + - `ReadProvisionedThroughputExceeded` + + - `IteratorAgeMilliseconds` + + - `ALL` + + For more information, see [Monitoring the Amazon Kinesis Data Streams + Service with Amazon + CloudWatch](https://docs.aws.amazon.com/kinesis/latest/dev/monitoring-with-cloudwatch.html) + in the *Amazon Kinesis Data Streams Developer Guide*. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class EnableEnhancedMonitoringOutput(_SerdeShape): """ @@ -1063,6 +1489,28 @@ class GetRecordsInput(_SerdeShape): dry_run: bool | None = ... """Checks if your request will succeed. `DryRun` is an optional parameter.""" +class GetRecordsInputDict(TypedDict, total=False): + """Dictionary form of `GetRecordsInput`.""" + + shard_iterator: Required[str] + """ + The position in the shard from which you want to start sequentially + reading data records. A shard iterator specifies this position using the + sequence number of a data record in the shard. + """ + limit: int | None + """ + The maximum number of records to return. Specify a value of up to + 10,000. If you specify a value that is greater than 10,000, GetRecords + throws `InvalidArgumentException`. The default value is 10,000. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + dry_run: bool | None + """Checks if your request will succeed. `DryRun` is an optional parameter.""" + @dataclass(kw_only=True) class GetRecordsOutput(_SerdeShape): """Represents the output for GetRecords.""" @@ -1105,6 +1553,14 @@ class GetResourcePolicyInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the data stream or consumer.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Dataclass for GetResourcePolicyOutput structure.""" @@ -1175,6 +1631,61 @@ class GetShardIteratorInput(_SerdeShape): dry_run: bool | None = ... """Checks if your request will succeed. `DryRun` is an optional parameter.""" +class GetShardIteratorInputDict(TypedDict, total=False): + """Dictionary form of `GetShardIteratorInput`.""" + + stream_name: str | None + """The name of the Amazon Kinesis data stream.""" + shard_id: Required[str] + """The shard ID of the Kinesis Data Streams shard to get the iterator for.""" + shard_iterator_type: Required[str] + """ + Determines how the shard iterator is used to start reading data records + from the shard. + + The following are the valid Amazon Kinesis shard iterator types: + + - AT_SEQUENCE_NUMBER - Start reading from the position denoted by a + specific sequence number, provided in the value + `StartingSequenceNumber`. + + - AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted + by a specific sequence number, provided in the value + `StartingSequenceNumber`. + + - AT_TIMESTAMP - Start reading from the position denoted by a specific + time stamp, provided in the value `Timestamp`. + + - TRIM_HORIZON - Start reading at the last untrimmed record in the shard + in the system, which is the oldest data record in the shard. + + - LATEST - Start reading just after the most recent record in the shard, + so that you always read the most recent data in the shard. + """ + starting_sequence_number: str | None + """ + The sequence number of the data record in the shard from which to start + reading. Used with shard iterator type AT_SEQUENCE_NUMBER and + AFTER_SEQUENCE_NUMBER. + """ + timestamp: datetime | None + """ + The time stamp of the data record from which to start reading. Used with + shard iterator type AT_TIMESTAMP. A time stamp is the Unix epoch date + with precision in milliseconds. For example, + `2016-04-04T19:58:46.480-00:00` or `1459799926.480`. If a record with + this exact time stamp does not exist, the iterator returned is for the + next (later) record. If the time stamp is older than the current trim + horizon, the iterator returned is for the oldest untrimmed data record + (TRIM_HORIZON). + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + dry_run: bool | None + """Checks if your request will succeed. `DryRun` is an optional parameter.""" + @dataclass(kw_only=True) class GetShardIteratorOutput(_SerdeShape): """Represents the output for `GetShardIterator`.""" @@ -1221,6 +1732,21 @@ class IncreaseStreamRetentionPeriodInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class IncreaseStreamRetentionPeriodInputDict(TypedDict, total=False): + """Dictionary form of `IncreaseStreamRetentionPeriodInput`.""" + + stream_name: str | None + """The name of the stream to modify.""" + retention_period_hours: Required[int] + """ + The new retention period of the stream, in hours. Must be more than the + current retention period. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class IncreaseStreamRetentionPeriodOutput(_SerdeShape): """Dataclass for IncreaseStreamRetentionPeriodOutput structure.""" @@ -1391,6 +1917,23 @@ class ListChannelsInput(_SerdeShape): retrieve the next page of results. """ +class ListChannelsInputDict(TypedDict, total=False): + """Dictionary form of `ListChannelsInput`.""" + + stream_filter: Sequence[StreamFilter | StreamFilterDict] | None + """Filters the results to channels associated with the specified streams.""" + max_results: int | None + """ + The maximum number of channels to return in a single call. The default + value is 100. If you specify a value greater than 100, at most 100 + results are returned. + """ + next_token: str | None + """ + The pagination token returned by a previous call. Specify this token to + retrieve the next page of results. + """ + @dataclass(kw_only=True) class ListChannelsOutput(_SerdeShape): """Dataclass for ListChannelsOutput structure.""" @@ -1511,28 +2054,34 @@ class ListShardsInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" -@dataclass(kw_only=True) -class ListShardsOutput(_SerdeShape): - """Dataclass for ListShardsOutput structure.""" +class ListShardsInputDict(TypedDict, total=False): + """Dictionary form of `ListShardsInput`.""" - shards: list[Shard] | None = ... + stream_name: str | None """ - An array of JSON objects. Each object represents one shard and specifies - the IDs of the shard, the shard's parent, and the shard that's - adjacent to the shard's parent. Each object also contains the starting - and ending hash keys and the starting and ending sequence numbers for - the shard. + The name of the data stream whose shards you want to list. + + You cannot specify this parameter if you specify the `NextToken` + parameter. """ - next_token: str | None = ... + next_token: str | None """ When the number of shards in the data stream is greater than the default value for the `MaxResults` parameter, or if you explicitly specify a value for `MaxResults` that is less than the number of shards in the data stream, the response includes a pagination token named `NextToken`. You can specify this `NextToken` value in a subsequent call to - `ListShards` to list the next set of shards. For more information about - the use of this pagination token when calling the `ListShards` - operation, see ListShardsInput$NextToken. + `ListShards` to list the next set of shards. + + Don't specify `StreamName` or `StreamCreationTimestamp` if you specify + `NextToken` because the latter unambiguously identifies the stream. + + You can optionally specify a value for the `MaxResults` parameter when + you specify `NextToken`. If you specify a `MaxResults` value that is + less than the number of shards that the operation returns if you don't + specify `MaxResults`, the response will contain a new `NextToken` value. + You can use the new `NextToken` value in a subsequent call to the + `ListShards` operation. Warning: Tokens expire after 300 seconds. When you obtain a value for `NextToken` @@ -1540,54 +2089,147 @@ class ListShardsOutput(_SerdeShape): that value. If you specify an expired token in a call to `ListShards`, you get `ExpiredNextTokenException`. """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + exclusive_start_shard_id: str | None """ + Specify this parameter to indicate that you want to list the shards + starting with the shard whose ID immediately follows + `ExclusiveStartShardId`. -@dataclass(kw_only=True) -class ListStreamConsumersInput(_SerdeShape): - """Dataclass for ListStreamConsumersInput structure.""" + If you don't specify this parameter, the default behavior is for + `ListShards` to list the shards starting with the first one in the + stream. - stream_arn: str | None = ... - """ - The ARN of the Kinesis data stream for which you want to list the - registered consumers. For more information, see [Amazon Resource Names - (ARNs) and Amazon Web Services Service - Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). + You cannot specify this parameter if you specify `NextToken`. """ - next_token: str | None = ... + max_results: int | None """ - When the number of consumers that are registered with the data stream is - greater than the default value for the `MaxResults` parameter, or if you - explicitly specify a value for `MaxResults` that is less than the number - of consumers that are registered with the data stream, the response - includes a pagination token named `NextToken`. You can specify this - `NextToken` value in a subsequent call to `ListStreamConsumers` to list - the next set of registered consumers. - - Don't specify `StreamName` or `StreamCreationTimestamp` if you specify - `NextToken` because the latter unambiguously identifies the stream. - - You can optionally specify a value for the `MaxResults` parameter when - you specify `NextToken`. If you specify a `MaxResults` value that is - less than the number of consumers that the operation returns if you - don't specify `MaxResults`, the response will contain a new `NextToken` - value. You can use the new `NextToken` value in a subsequent call to the - `ListStreamConsumers` operation to list the next set of consumers. + The maximum number of shards to return in a single call to `ListShards`. + The maximum number of shards to return in a single call. The default + value is 1000. If you specify a value greater than 1000, at most 1000 + results are returned. - Warning: - Tokens expire after 300 seconds. When you obtain a value for `NextToken` - in the response to a call to `ListStreamConsumers`, you have 300 seconds - to use that value. If you specify an expired token in a call to - `ListStreamConsumers`, you get `ExpiredNextTokenException`. + When the number of shards to be listed is greater than the value of + `MaxResults`, the response contains a `NextToken` value that you can use + in a subsequent call to `ListShards` to list the next set of shards. """ - max_results: int | None = ... + stream_creation_timestamp: datetime | None """ - The maximum number of consumers that you want a single call of + Specify this input parameter to distinguish data streams that have the + same name. For example, if you create a data stream and then delete it, + and you later create another data stream with the same name, you can use + this input parameter to specify which of the two streams you want to + list the shards for. + + You cannot specify this parameter if you specify the `NextToken` + parameter. + """ + shard_filter: ShardFilter | ShardFilterDict | None + """ + Enables you to filter out the response of the `ListShards` API. You can + only specify one filter at a time. + + If you use the `ShardFilter` parameter when invoking the ListShards API, + the `Type` is the required property and must be specified. If you + specify the `AT_TRIM_HORIZON`, `FROM_TRIM_HORIZON`, or `AT_LATEST` + types, you do not need to specify either the `ShardId` or the + `Timestamp` optional properties. + + If you specify the `AFTER_SHARD_ID` type, you must also provide the + value for the optional `ShardId` property. The `ShardId` property is + identical in fuctionality to the `ExclusiveStartShardId` parameter of + the `ListShards` API. When `ShardId` property is specified, the response + includes the shards starting with the shard whose ID immediately follows + the `ShardId` that you provided. + + If you specify the `AT_TIMESTAMP` or `FROM_TIMESTAMP_ID` type, you must + also provide the value for the optional `Timestamp` property. If you + specify the AT_TIMESTAMP type, then all shards that were open at the + provided timestamp are returned. If you specify the FROM_TIMESTAMP type, + then all shards starting from the provided timestamp to TIP are + returned. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + +@dataclass(kw_only=True) +class ListShardsOutput(_SerdeShape): + """Dataclass for ListShardsOutput structure.""" + + shards: list[Shard] | None = ... + """ + An array of JSON objects. Each object represents one shard and specifies + the IDs of the shard, the shard's parent, and the shard that's + adjacent to the shard's parent. Each object also contains the starting + and ending hash keys and the starting and ending sequence numbers for + the shard. + """ + next_token: str | None = ... + """ + When the number of shards in the data stream is greater than the default + value for the `MaxResults` parameter, or if you explicitly specify a + value for `MaxResults` that is less than the number of shards in the + data stream, the response includes a pagination token named `NextToken`. + You can specify this `NextToken` value in a subsequent call to + `ListShards` to list the next set of shards. For more information about + the use of this pagination token when calling the `ListShards` + operation, see ListShardsInput$NextToken. + + Warning: + Tokens expire after 300 seconds. When you obtain a value for `NextToken` + in the response to a call to `ListShards`, you have 300 seconds to use + that value. If you specify an expired token in a call to `ListShards`, + you get `ExpiredNextTokenException`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListStreamConsumersInput(_SerdeShape): + """Dataclass for ListStreamConsumersInput structure.""" + + stream_arn: str | None = ... + """ + The ARN of the Kinesis data stream for which you want to list the + registered consumers. For more information, see [Amazon Resource Names + (ARNs) and Amazon Web Services Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). + """ + next_token: str | None = ... + """ + When the number of consumers that are registered with the data stream is + greater than the default value for the `MaxResults` parameter, or if you + explicitly specify a value for `MaxResults` that is less than the number + of consumers that are registered with the data stream, the response + includes a pagination token named `NextToken`. You can specify this + `NextToken` value in a subsequent call to `ListStreamConsumers` to list + the next set of registered consumers. + + Don't specify `StreamName` or `StreamCreationTimestamp` if you specify + `NextToken` because the latter unambiguously identifies the stream. + + You can optionally specify a value for the `MaxResults` parameter when + you specify `NextToken`. If you specify a `MaxResults` value that is + less than the number of consumers that the operation returns if you + don't specify `MaxResults`, the response will contain a new `NextToken` + value. You can use the new `NextToken` value in a subsequent call to the + `ListStreamConsumers` operation to list the next set of consumers. + + Warning: + Tokens expire after 300 seconds. When you obtain a value for `NextToken` + in the response to a call to `ListStreamConsumers`, you have 300 seconds + to use that value. If you specify an expired token in a call to + `ListStreamConsumers`, you get `ExpiredNextTokenException`. + """ + max_results: int | None = ... + """ + The maximum number of consumers that you want a single call of `ListStreamConsumers` to return. The default value is 100. If you specify a value greater than 100, at most 100 results are returned. """ @@ -1605,6 +2247,62 @@ class ListStreamConsumersInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class ListStreamConsumersInputDict(TypedDict, total=False): + """Dictionary form of `ListStreamConsumersInput`.""" + + stream_arn: Required[str] + """ + The ARN of the Kinesis data stream for which you want to list the + registered consumers. For more information, see [Amazon Resource Names + (ARNs) and Amazon Web Services Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). + """ + next_token: str | None + """ + When the number of consumers that are registered with the data stream is + greater than the default value for the `MaxResults` parameter, or if you + explicitly specify a value for `MaxResults` that is less than the number + of consumers that are registered with the data stream, the response + includes a pagination token named `NextToken`. You can specify this + `NextToken` value in a subsequent call to `ListStreamConsumers` to list + the next set of registered consumers. + + Don't specify `StreamName` or `StreamCreationTimestamp` if you specify + `NextToken` because the latter unambiguously identifies the stream. + + You can optionally specify a value for the `MaxResults` parameter when + you specify `NextToken`. If you specify a `MaxResults` value that is + less than the number of consumers that the operation returns if you + don't specify `MaxResults`, the response will contain a new `NextToken` + value. You can use the new `NextToken` value in a subsequent call to the + `ListStreamConsumers` operation to list the next set of consumers. + + Warning: + Tokens expire after 300 seconds. When you obtain a value for `NextToken` + in the response to a call to `ListStreamConsumers`, you have 300 seconds + to use that value. If you specify an expired token in a call to + `ListStreamConsumers`, you get `ExpiredNextTokenException`. + """ + max_results: int | None + """ + The maximum number of consumers that you want a single call of + `ListStreamConsumers` to return. The default value is 100. If you + specify a value greater than 100, at most 100 results are returned. + """ + stream_creation_timestamp: datetime | None + """ + Specify this input parameter to distinguish data streams that have the + same name. For example, if you create a data stream and then delete it, + and you later create another data stream with the same name, you can use + this input parameter to specify which of the two streams you want to + list the consumers for. + + You can't specify this parameter if you specify the NextToken + parameter. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class ListStreamConsumersOutput(_SerdeShape): """Dataclass for ListStreamConsumersOutput structure.""" @@ -1654,6 +2352,19 @@ class ListStreamsInput(_SerdeShape): next_token: str | None = ... """""" +class ListStreamsInputDict(TypedDict, total=False): + """Dictionary form of `ListStreamsInput`.""" + + limit: int | None + """ + The maximum number of streams to list. The default value is 100. If you + specify a value greater than 100, at most 100 results are returned. + """ + exclusive_start_stream_name: str | None + """The name of the stream to start the list with.""" + next_token: str | None + """""" + @dataclass(kw_only=True) class ListStreamsOutput(_SerdeShape): """Represents the output for `ListStreams`.""" @@ -1689,6 +2400,17 @@ class ListTagsForResourceInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Kinesis resource for which to list + tags. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -1727,6 +2449,29 @@ class ListTagsForStreamInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class ListTagsForStreamInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForStreamInput`.""" + + stream_name: str | None + """The name of the stream.""" + exclusive_start_tag_key: str | None + """ + The key to use as the starting point for the list of tags. If this + parameter is set, `ListTagsForStream` gets all tags that occur after + `ExclusiveStartTagKey`. + """ + limit: int | None + """ + The number of tags to return. If this number is less than the total + number of tags associated with the stream, `HasMoreTags` is set to + `true`. To list additional tags, set `ExclusiveStartTagKey` to the last + key in the response. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class ListTagsForStreamOutput(_SerdeShape): """Represents the output for `ListTagsForStream`.""" @@ -1767,6 +2512,23 @@ class MergeShardsInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class MergeShardsInputDict(TypedDict, total=False): + """Dictionary form of `MergeShardsInput`.""" + + stream_name: str | None + """The name of the stream for the merge.""" + shard_to_merge: Required[str] + """ + The shard ID of the shard to combine with the adjacent shard for the + merge. + """ + adjacent_shard_to_merge: Required[str] + """The shard ID of the adjacent shard for the merge.""" + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class MergeShardsOutput(_SerdeShape): """Dataclass for MergeShardsOutput structure.""" @@ -1814,6 +2576,12 @@ class MinimumThroughputBillingCommitmentInput(_SerdeShape): status: str """The desired status of the minimum throughput billing commitment.""" +class MinimumThroughputBillingCommitmentInputDict(TypedDict, total=False): + """Dictionary form of `MinimumThroughputBillingCommitmentInput`.""" + + status: Required[str] + """The desired status of the minimum throughput billing commitment.""" + class MinimumThroughputBillingCommitmentInputStatus(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -1851,6 +2619,17 @@ class PartitionField(_SerdeShape): of the `timestamptz` type. """ +class PartitionFieldDict(TypedDict, total=False): + """Dictionary form of `PartitionField`.""" + + transform: Required[str] + """The partition transform to apply. The only valid value is `TIME_HOUR`.""" + source_name: Required[str] + """ + The name of the source column used for partitioning. This column must be + of the `timestamptz` type. + """ + @dataclass(kw_only=True) class PartitionSpec(_SerdeShape): """Specifies how the destination table is partitioned.""" @@ -1858,6 +2637,12 @@ class PartitionSpec(_SerdeShape): partition_fields: list[PartitionField] """The list of partition fields.""" +class PartitionSpecDict(TypedDict, total=False): + """Dictionary form of `PartitionSpec`.""" + + partition_fields: Required[Sequence[PartitionField | PartitionFieldDict]] + """The list of partition fields.""" + class PartitionTransform(UnknownEnumMixin, StrEnum): TIME_HOUR = "TIME_HOUR" @@ -1936,6 +2721,59 @@ class PutRecordInput(_SerdeShape): dry_run: bool | None = ... """Checks if your request will succeed. `DryRun` is an optional parameter.""" +class PutRecordInputDict(TypedDict, total=False): + """Dictionary form of `PutRecordInput`.""" + + stream_name: str | None + """The name of the stream to put the data record into.""" + data: Required[bytes] + """ + The data blob to put into the record, which is base64-encoded when the + blob is serialized. When the data blob (the payload before + base64-encoding) is added to the partition key size, the total size must + not exceed the maximum record size (10 MiB). + """ + partition_key: str | None + """ + Determines which shard in the stream the data record is assigned to. + Partition keys are Unicode strings with a maximum length limit of 256 + characters for each key. Amazon Kinesis Data Streams uses the partition + key as input to a hash function that maps the partition key and + associated data to a specific shard. Specifically, an MD5 hash function + is used to map partition keys to 128-bit integer values and to map + associated data records to shards. As a result of this hashing + mechanism, all data records with the same partition key map to the same + shard within the stream. + + If the stream uses the `USER_PARTITION_KEY` record distribution strategy + (the default), a partition key is required. If the stream uses the + `AUTO` record distribution strategy, the partition key is optional and + any value you provide is ignored, along with any `ExplicitHashKey` you + provide. In that case, Amazon Kinesis Data Streams distributes the + record across shards using service-managed algorithms. For more + information, see `UpdateStreamRecordDistributionStrategy`. + """ + explicit_hash_key: str | None + """ + The hash value used to explicitly determine the shard the data record is + assigned to by overriding the partition key hash. + """ + sequence_number_for_ordering: str | None + """ + Guarantees strictly increasing sequence numbers, for puts from the same + client and to the same partition key. Usage: set the + `SequenceNumberForOrdering` of record *n* to the sequence number of + record *n-1* (as returned in the result when putting record *n-1*). If + this parameter is not set, records are coarsely ordered based on arrival + time. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + dry_run: bool | None + """Checks if your request will succeed. `DryRun` is an optional parameter.""" + @dataclass(kw_only=True) class PutRecordOutput(_SerdeShape): """Represents the output for `PutRecord`.""" @@ -1982,6 +2820,20 @@ class PutRecordsInput(_SerdeShape): dry_run: bool | None = ... """Checks if your request will succeed. `DryRun` is an optional parameter.""" +class PutRecordsInputDict(TypedDict, total=False): + """Dictionary form of `PutRecordsInput`.""" + + records: Required[Sequence[PutRecordsRequestEntry | PutRecordsRequestEntryDict]] + """The records associated with the request.""" + stream_name: str | None + """The stream name associated with the request.""" + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + dry_run: bool | None + """Checks if your request will succeed. `DryRun` is an optional parameter.""" + @dataclass(kw_only=True) class PutRecordsOutput(_SerdeShape): """`PutRecords` results.""" @@ -2053,6 +2905,42 @@ class PutRecordsRequestEntry(_SerdeShape): more information, see `UpdateStreamRecordDistributionStrategy`. """ +class PutRecordsRequestEntryDict(TypedDict, total=False): + """Dictionary form of `PutRecordsRequestEntry`.""" + + data: Required[bytes] + """ + The data blob to put into the record, which is base64-encoded when the + blob is serialized. When the data blob (the payload before + base64-encoding) is added to the partition key size, the total size must + not exceed the maximum record size (10 MiB). + """ + explicit_hash_key: str | None + """ + The hash value used to determine explicitly the shard that the data + record is assigned to by overriding the partition key hash. + """ + partition_key: str | None + """ + Determines which shard in the stream the data record is assigned to. + Partition keys are Unicode strings with a maximum length limit of 256 + characters for each key. Amazon Kinesis Data Streams uses the partition + key as input to a hash function that maps the partition key and + associated data to a specific shard. Specifically, an MD5 hash function + is used to map partition keys to 128-bit integer values and to map + associated data records to shards. As a result of this hashing + mechanism, all data records with the same partition key map to the same + shard within the stream. + + If the stream uses the `USER_PARTITION_KEY` record distribution strategy + (the default), a partition key is required for each record. If the + stream uses the `AUTO` record distribution strategy, the partition key + is optional and any value you provide is ignored, along with any + `ExplicitHashKey` you provide. In that case, Amazon Kinesis Data Streams + distributes records across shards using service-managed algorithms. For + more information, see `UpdateStreamRecordDistributionStrategy`. + """ + @dataclass(kw_only=True) class PutRecordsResultEntry(_SerdeShape): """ @@ -2095,6 +2983,20 @@ class PutResourcePolicyInput(_SerdeShape): a JSON string. """ +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the data stream or consumer.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + policy: Required[str] + """ + Details of the resource policy. It must include the identity of the + principal and the actions allowed on this resource. This is formatted as + a JSON string. + """ + @dataclass(kw_only=True) class PutResourcePolicyOutput(_SerdeShape): """Dataclass for PutResourcePolicyOutput structure.""" @@ -2173,6 +3075,31 @@ class RecordConfiguration(_SerdeShape): destination is a streaming table. """ +class RecordConfigurationDict(TypedDict, total=False): + """Dictionary form of `RecordConfiguration`.""" + + record_format_type: Required[str] + """ + The format of records on the source stream. Valid values: + + - `GSR_JSON` - Supported only for streaming table (Amazon S3 Tables) + destinations. + + - `JSON` - Supported for both general purpose Amazon S3 and streaming + table destinations. + + - `STRING` - Supported only for general purpose Amazon S3 destinations. + + - `BYTE_ARRAY` - Supported only for general purpose Amazon S3 + destinations. + """ + gsr_schema_arn: str | None + """ + The Amazon Resource Name (ARN) of the Amazon Web Services Glue Schema + Registry schema used to validate records. Required when the channel + destination is a streaming table. + """ + class RecordDistributionStrategy(UnknownEnumMixin, StrEnum): AUTO = "AUTO" USER_PARTITION_KEY = "USER_PARTITION_KEY" @@ -2207,6 +3134,29 @@ class RegisterStreamConsumerInput(_SerdeShape): an optional value. """ +class RegisterStreamConsumerInputDict(TypedDict, total=False): + """Dictionary form of `RegisterStreamConsumerInput`.""" + + stream_arn: Required[str] + """ + The ARN of the Kinesis data stream that you want to register the + consumer with. For more info, see [Amazon Resource Names (ARNs) and + Amazon Web Services Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). + """ + consumer_name: Required[str] + """ + For a given Kinesis data stream, each consumer must have a unique name. + However, consumer names don't have to be unique across data streams. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + tags: Mapping[str, str] | None + """ + A set of up to 50 key-value pairs. A tag consists of a required key and + an optional value. + """ + @dataclass(kw_only=True) class RegisterStreamConsumerOutput(_SerdeShape): """Dataclass for RegisterStreamConsumerOutput structure.""" @@ -2238,6 +3188,18 @@ class RemoveTagsFromStreamInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class RemoveTagsFromStreamInputDict(TypedDict, total=False): + """Dictionary form of `RemoveTagsFromStreamInput`.""" + + stream_name: str | None + """The name of the stream.""" + tag_keys: Required[Sequence[str]] + """A list of tag keys. Each corresponding tag is removed from the stream.""" + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class RemoveTagsFromStreamOutput(_SerdeShape): """Dataclass for RemoveTagsFromStreamOutput structure.""" @@ -2306,6 +3268,25 @@ class S3DestinationConfiguration(_SerdeShape): storage_configuration: S3StorageConfiguration """The Amazon S3 storage configuration for the channel.""" +class S3DestinationConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3DestinationConfiguration`.""" + + data_freshness_in_seconds: int | None + """ + The maximum age, in seconds, of undelivered data before the channel + delivers it to the destination. The default value is 300 seconds. + """ + dead_letter_queue_s3_configuration: ( + DeadLetterQueueS3Configuration | DeadLetterQueueS3ConfigurationDict | None + ) + """ + The dead-letter queue configuration for records that cannot be + delivered. Optional for general purpose Amazon S3 destinations. If not + specified, it defaults to the destination bucket with an error prefix. + """ + storage_configuration: Required[S3StorageConfiguration | S3StorageConfigurationDict] + """The Amazon S3 storage configuration for the channel.""" + @dataclass(kw_only=True) class S3DestinationDescription(_SerdeShape): """ @@ -2336,6 +3317,15 @@ class S3DestinationUpdateInput(_SerdeShape): delivers it to the destination. """ +class S3DestinationUpdateInputDict(TypedDict, total=False): + """Dictionary form of `S3DestinationUpdateInput`.""" + + data_freshness_in_seconds: Required[int] + """ + The maximum age, in seconds, of undelivered data before the channel + delivers it to the destination. + """ + class S3StorageClass(UnknownEnumMixin, StrEnum): STANDARD = "STANDARD" INTELLIGENT_TIERING = "INTELLIGENT_TIERING" @@ -2384,6 +3374,45 @@ class S3StorageConfiguration(_SerdeShape): - `ZSTD` - Zstandard compression. """ +class S3StorageConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3StorageConfiguration`.""" + + bucket_arn: Required[str] + """The Amazon Resource Name (ARN) of the destination Amazon S3 bucket.""" + expected_bucket_owner: Required[str] + """ + The Amazon Web Services account ID of the expected owner of the + destination bucket. This value helps prevent delivery to an unintended + bucket if ownership changes. + """ + output_key_template: str | None + """ + The template used to construct the Amazon S3 object key for delivered + objects. If not specified, a default template is used. + """ + storage_class: str | None + """ + The Amazon S3 storage class for delivered objects. Valid values: + + - `STANDARD` - The default storage class, for frequently accessed data. + + - `INTELLIGENT_TIERING` - Automatically moves objects to the most + cost-effective access tier based on usage patterns. + + - `GLACIER_IR` - Low-cost storage for rarely accessed data that requires + millisecond retrieval. + """ + compression_type: Required[str] + """ + The compression applied to delivered objects. Valid values: + + - `NONE` - No compression. + + - `GZIP` - gzip compression. + + - `ZSTD` - Zstandard compression. + """ + class S3TablesCompressionType(UnknownEnumMixin, StrEnum): NONE = "NONE" ZSTD = "ZSTD" @@ -2415,6 +3444,31 @@ class S3TablesConfiguration(_SerdeShape): partition_spec: PartitionSpec | None = ... """The partitioning specification for the destination table.""" +class S3TablesConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3TablesConfiguration`.""" + + table_bucket_arn: Required[str] + """The Amazon Resource Name (ARN) of the Amazon S3 table bucket.""" + namespace: Required[str] + """The namespace (database) of the destination table.""" + table_name: Required[str] + """ + The name of the destination table. Amazon Kinesis Data Streams creates + this table in the specified table bucket. + """ + compression_type: Required[str] + """ + The compression applied to Parquet data files. Valid values: + + - `NONE` - No compression. + + - `ZSTD` - Zstandard compression. + + - `SNAPPY` - Snappy compression. + """ + partition_spec: PartitionSpec | PartitionSpecDict | None + """The partitioning specification for the destination table.""" + @dataclass(kw_only=True) class S3TablesDestinationConfiguration(_SerdeShape): """ @@ -2438,6 +3492,29 @@ class S3TablesDestinationConfiguration(_SerdeShape): supported per channel. """ +class S3TablesDestinationConfigurationDict(TypedDict, total=False): + """Dictionary form of `S3TablesDestinationConfiguration`.""" + + data_freshness_in_seconds: int | None + """ + The maximum age, in seconds, of undelivered data before the channel + delivers it to the destination. The default value is 300 seconds. + """ + dead_letter_queue_s3_configuration: Required[ + DeadLetterQueueS3Configuration | DeadLetterQueueS3ConfigurationDict + ] + """ + The dead-letter queue configuration for records that cannot be + delivered. Required for streaming table destinations. + """ + s3_tables_configuration_list: Required[ + Sequence[S3TablesConfiguration | S3TablesConfigurationDict] + ] + """ + The list of streaming table configurations. Currently, one table is + supported per channel. + """ + @dataclass(kw_only=True) class S3TablesDestinationDescription(_SerdeShape): """ @@ -2468,6 +3545,15 @@ class S3TablesDestinationUpdateInput(_SerdeShape): delivers it to the destination. """ +class S3TablesDestinationUpdateInputDict(TypedDict, total=False): + """Dictionary form of `S3TablesDestinationUpdateInput`.""" + + data_freshness_in_seconds: Required[int] + """ + The maximum age, in seconds, of undelivered data before the channel + delivers it to the destination. + """ + class ScalingType(UnknownEnumMixin, StrEnum): UNIFORM_SCALING = "UNIFORM_SCALING" @@ -2508,7 +3594,54 @@ class ShardFilter(_SerdeShape): `ListShards` API. """ - type: str + type: str + """ + The shard type specified in the `ShardFilter` parameter. This is a + required property of the `ShardFilter` parameter. + + You can specify the following valid values: + + - `AFTER_SHARD_ID` - the response includes all the shards, starting with + the shard whose ID immediately follows the `ShardId` that you + provided. + + - `AT_TRIM_HORIZON` - the response includes all the shards that were + open at `TRIM_HORIZON`. + + - `FROM_TRIM_HORIZON` - (default), the response includes all the shards + within the retention period of the data stream (trim to tip). + + - `AT_LATEST` - the response includes only the currently open shards of + the data stream. + + - `AT_TIMESTAMP` - the response includes all shards whose start + timestamp is less than or equal to the given timestamp and end + timestamp is greater than or equal to the given timestamp or still + open. + + - `FROM_TIMESTAMP` - the response incldues all closed shards whose end + timestamp is greater than or equal to the given timestamp and also all + open shards. Corrected to `TRIM_HORIZON` of the data stream if + `FROM_TIMESTAMP` is less than the `TRIM_HORIZON` value. + """ + shard_id: str | None = ... + """ + The exclusive start `shardID` speified in the `ShardFilter` parameter. + This property can only be used if the `AFTER_SHARD_ID` shard type is + specified. + """ + timestamp: datetime | None = ... + """ + The timestamps specified in the `ShardFilter` parameter. A timestamp is + a Unix epoch date with precision in milliseconds. For example, + 2016-04-04T19:58:46.480-00:00 or 1459799926.480. This property can only + be used if `FROM_TIMESTAMP` or `AT_TIMESTAMP` shard types are specified. + """ + +class ShardFilterDict(TypedDict, total=False): + """Dictionary form of `ShardFilter`.""" + + type: Required[str] """ The shard type specified in the `ShardFilter` parameter. This is a required property of the `ShardFilter` parameter. @@ -2538,13 +3671,13 @@ class ShardFilter(_SerdeShape): open shards. Corrected to `TRIM_HORIZON` of the data stream if `FROM_TIMESTAMP` is less than the `TRIM_HORIZON` value. """ - shard_id: str | None = ... + shard_id: str | None """ The exclusive start `shardID` speified in the `ShardFilter` parameter. This property can only be used if the `AFTER_SHARD_ID` shard type is specified. """ - timestamp: datetime | None = ... + timestamp: datetime | None """ The timestamps specified in the `ShardFilter` parameter. A timestamp is a Unix epoch date with precision in milliseconds. For example, @@ -2591,6 +3724,29 @@ class SplitShardInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class SplitShardInputDict(TypedDict, total=False): + """Dictionary form of `SplitShardInput`.""" + + stream_name: str | None + """The name of the stream for the shard split.""" + shard_to_split: Required[str] + """The shard ID of the shard to split.""" + new_starting_hash_key: Required[str] + """ + A hash key value for the starting hash key of one of the child shards + created by the split. The hash key range for a given shard constitutes a + set of ordered contiguous positive integers. The value for + `NewStartingHashKey` must be in the range of hash keys being mapped into + the shard. The `NewStartingHashKey` hash key value and all higher hash + key values in hash key range are distributed to one of the child shards. + All the lower hash key values in the range are distributed to the other + child shard. + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class SplitShardOutput(_SerdeShape): """Dataclass for SplitShardOutput structure.""" @@ -2644,6 +3800,46 @@ class StartingPosition(_SerdeShape): untrimmed data record (`TRIM_HORIZON`). """ +class StartingPositionDict(TypedDict, total=False): + """Dictionary form of `StartingPosition`.""" + + type: Required[str] + """ + You can set the starting position to one of the following values: + + `AT_SEQUENCE_NUMBER`: Start streaming from the position denoted by the + sequence number specified in the `SequenceNumber` field. + + `AFTER_SEQUENCE_NUMBER`: Start streaming right after the position + denoted by the sequence number specified in the `SequenceNumber` field. + + `AT_TIMESTAMP`: Start streaming from the position denoted by the time + stamp specified in the `Timestamp` field. + + `TRIM_HORIZON`: Start streaming at the last untrimmed record in the + shard, which is the oldest data record in the shard. + + `LATEST`: Start streaming just after the most recent record in the + shard, so that you always read the most recent data in the shard. + """ + sequence_number: str | None + """ + The sequence number of the data record in the shard from which to start + streaming. To specify a sequence number, set `StartingPosition` to + `AT_SEQUENCE_NUMBER` or `AFTER_SEQUENCE_NUMBER`. + """ + timestamp: datetime | None + """ + The time stamp of the data record from which to start reading. To + specify a time stamp, set `StartingPosition` to `Type AT_TIMESTAMP`. A + time stamp is the Unix epoch date with precision in milliseconds. For + example, `2016-04-04T19:58:46.480-00:00` or `1459799926.480`. If a + record with this exact time stamp does not exist, records will be + streamed from the next (later) record. If the time stamp is older than + the current trim horizon, records will be streamed from the oldest + untrimmed data record (`TRIM_HORIZON`). + """ + @dataclass(kw_only=True) class StartStreamEncryptionInput(_SerdeShape): """Dataclass for StartStreamEncryptionInput structure.""" @@ -2677,6 +3873,38 @@ class StartStreamEncryptionInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class StartStreamEncryptionInputDict(TypedDict, total=False): + """Dictionary form of `StartStreamEncryptionInput`.""" + + stream_name: str | None + """The name of the stream for which to start encrypting records.""" + encryption_type: Required[str] + """The encryption type to use. The only valid value is `KMS`.""" + key_id: Required[str] + """ + The GUID for the customer-managed Amazon Web Services KMS key to use for + encryption. This value can be a globally unique identifier, a fully + specified Amazon Resource Name (ARN) to either an alias or a key, or an + alias name prefixed by \"alias/\".You can also use a master key owned by + Kinesis Data Streams by specifying the alias `aws/kinesis`. + + - Key ARN example: + `arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012` + + - Alias ARN example: + `arn:aws:kms:us-east-1:123456789012:alias/MyAliasName` + + - Globally unique key ID example: `12345678-1234-1234-1234-123456789012` + + - Alias name example: `alias/MyAliasName` + + - Master key owned by Kinesis Data Streams: `alias/aws/kinesis` + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class StartStreamEncryptionOutput(_SerdeShape): """Dataclass for StartStreamEncryptionOutput structure.""" @@ -2722,6 +3950,38 @@ class StopStreamEncryptionInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class StopStreamEncryptionInputDict(TypedDict, total=False): + """Dictionary form of `StopStreamEncryptionInput`.""" + + stream_name: str | None + """The name of the stream on which to stop encrypting records.""" + encryption_type: Required[str] + """The encryption type. The only valid value is `KMS`.""" + key_id: Required[str] + """ + The GUID for the customer-managed Amazon Web Services KMS key to use for + encryption. This value can be a globally unique identifier, a fully + specified Amazon Resource Name (ARN) to either an alias or a key, or an + alias name prefixed by \"alias/\".You can also use a master key owned by + Kinesis Data Streams by specifying the alias `aws/kinesis`. + + - Key ARN example: + `arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012` + + - Alias ARN example: + `arn:aws:kms:us-east-1:123456789012:alias/MyAliasName` + + - Globally unique key ID example: `12345678-1234-1234-1234-123456789012` + + - Alias name example: `alias/MyAliasName` + + - Master key owned by Kinesis Data Streams: `alias/aws/kinesis` + """ + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class StopStreamEncryptionOutput(_SerdeShape): """Dataclass for StopStreamEncryptionOutput structure.""" @@ -2920,6 +4180,14 @@ class StreamFilter(_SerdeShape): stream_creation_timestamp: datetime | None = ... """The creation timestamp of the source stream.""" +class StreamFilterDict(TypedDict, total=False): + """Dictionary form of `StreamFilter`.""" + + stream_arn: Required[str] + """The Amazon Resource Name (ARN) of the source stream to filter by.""" + stream_creation_timestamp: datetime | None + """The creation timestamp of the source stream.""" + class StreamMode(UnknownEnumMixin, StrEnum): PROVISIONED = "PROVISIONED" ON_DEMAND = "ON_DEMAND" @@ -2941,6 +4209,17 @@ class StreamModeDetails(_SerdeShape): data streams. """ +class StreamModeDetailsDict(TypedDict, total=False): + """Dictionary form of `StreamModeDetails`.""" + + stream_mode: Required[str] + """ + Specifies the capacity mode to which you want to set your data stream. + Currently, in Kinesis Data Streams, you can choose between an + **on-demand** capacity mode and a **provisioned** capacity mode for your + data streams. + """ + class StreamStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" DELETING = "DELETING" @@ -3149,6 +4428,26 @@ class SubscribeToShardInput(_SerdeShape): dry_run: bool | None = ... """Checks if your request will succeed. `DryRun` is an optional parameter.""" +class SubscribeToShardInputDict(TypedDict, total=False): + """Dictionary form of `SubscribeToShardInput`.""" + + consumer_arn: Required[str] + """ + For this parameter, use the value you obtained when you called + RegisterStreamConsumer. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + shard_id: Required[str] + """ + The ID of the shard you want to subscribe to. To see a list of all the + shards for a given stream, use ListShards. + """ + starting_position: Required[StartingPosition | StartingPositionDict] + """The starting position in the data stream from which to start streaming.""" + dry_run: bool | None + """Checks if your request will succeed. `DryRun` is an optional parameter.""" + @dataclass(kw_only=True) class SubscribeToShardOutput(_SerdeShape): """Dataclass for SubscribeToShardOutput structure.""" @@ -3201,6 +4500,26 @@ class TagResourceInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + tags: Required[Mapping[str, str]] + """ + An array of tags to be added to the Kinesis resource. A tag consists of + a required key and an optional value. You can add up to 50 tags per + resource. + + Tags may only contain Unicode letters, digits, white space, or these + symbols: _ . : / = + - @. + """ + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Kinesis resource to which to add + tags. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -3230,6 +4549,22 @@ class UntagResourceInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + tag_keys: Required[Sequence[str]] + """ + A list of tag key-value pairs. Existing tags of the resource whose keys + are members of this list will be removed from the Kinesis resource. + """ + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Kinesis resource from which to + remove tags. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -3254,6 +4589,18 @@ class UpdateAccountSettingsInput(_SerdeShape): your account. """ +class UpdateAccountSettingsInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAccountSettingsInput`.""" + + minimum_throughput_billing_commitment: Required[ + MinimumThroughputBillingCommitmentInput + | MinimumThroughputBillingCommitmentInputDict + ] + """ + Specifies the minimum throughput billing commitment configuration for + your account. + """ + @dataclass(kw_only=True) class UpdateAccountSettingsOutput(_SerdeShape): """Dataclass for UpdateAccountSettingsOutput structure.""" @@ -3295,6 +4642,33 @@ class UpdateChannelInput(_SerdeShape): logging_configuration: ChannelLoggingUpdateInput | None = ... """The updated Amazon CloudWatch Logs configuration for the channel.""" +class UpdateChannelInputDict(TypedDict, total=False): + """Dictionary form of `UpdateChannelInput`.""" + + channel_arn: Required[str] + """The Amazon Resource Name (ARN) of the channel to update.""" + s3_destination_configuration: ( + S3DestinationUpdateInput | S3DestinationUpdateInputDict | None + ) + """ + The updated configuration for a general purpose Amazon S3 destination. + Specify this parameter when the channel delivers to a general purpose + Amazon S3 bucket. Only `DataFreshnessInSeconds` can be updated. + """ + s3_tables_destination_configuration: ( + S3TablesDestinationUpdateInput | S3TablesDestinationUpdateInputDict | None + ) + """ + The updated configuration for a streaming table destination. Specify + this parameter when the channel delivers to streaming tables on Apache + Iceberg in Amazon S3 Tables. Only `DataFreshnessInSeconds` can be + updated. + """ + logging_configuration: ( + ChannelLoggingUpdateInput | ChannelLoggingUpdateInputDict | None + ) + """The updated Amazon CloudWatch Logs configuration for the channel.""" + @dataclass(kw_only=True) class UpdateChannelOutput(_SerdeShape): """Dataclass for UpdateChannelOutput structure.""" @@ -3332,6 +4706,24 @@ class UpdateMaxRecordSizeInput(_SerdeShape): `UpdateMaxRecordSize` sends back an `ValidationException` message. """ +class UpdateMaxRecordSizeInputDict(TypedDict, total=False): + """Dictionary form of `UpdateMaxRecordSizeInput`.""" + + stream_arn: str | None + """ + The Amazon Resource Name (ARN) of the stream for the `MaxRecordSize` + update. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + max_record_size_in_ki_b: Required[int] + """ + The maximum record size of a single record in KiB that you can write to, + and read from a stream. Specify a value between 1024 and 10240 KiB (1 to + 10 MiB). If you specify a value that is out of this range, + `UpdateMaxRecordSize` sends back an `ValidationException` message. + """ + @dataclass(kw_only=True) class UpdateMaxRecordSizeOutput(_SerdeShape): """Dataclass for UpdateMaxRecordSizeOutput structure.""" @@ -3374,6 +4766,35 @@ class UpdateShardCountInput(_SerdeShape): stream_id: str | None = ... """Not Implemented. Reserved for future use.""" +class UpdateShardCountInputDict(TypedDict, total=False): + """Dictionary form of `UpdateShardCountInput`.""" + + stream_name: str | None + """The name of the stream.""" + target_shard_count: Required[int] + """ + The new number of shards. This value has the following default limits. + By default, you cannot do the following: + + - Set this value to more than double your current shard count for a + stream. + + - Set this value below half your current shard count for a stream. + + - Set this value to more than 10000 shards in a stream (the default + limit for shard count per stream is 10000 per account per region), + unless you request a limit increase. + + - Scale a stream with more than 10000 shards down unless you set this + value to less than 10000 shards. + """ + scaling_type: Required[str] + """The scaling type. Uniform scaling creates shards of equal size.""" + stream_arn: str | None + """The ARN of the stream.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + @dataclass(kw_only=True) class UpdateShardCountOutput(_SerdeShape): """Dataclass for UpdateShardCountOutput structure.""" @@ -3420,6 +4841,31 @@ class UpdateStreamModeInput(_SerdeShape): mode is being updated to on-demand. """ +class UpdateStreamModeInputDict(TypedDict, total=False): + """Dictionary form of `UpdateStreamModeInput`.""" + + stream_arn: Required[str] + """ + Specifies the ARN of the data stream whose capacity mode you want to + update. + """ + stream_id: str | None + """Not Implemented. Reserved for future use.""" + stream_mode_details: Required[StreamModeDetails | StreamModeDetailsDict] + """ + Specifies the capacity mode to which you want to set your data stream. + Currently, in Kinesis Data Streams, you can choose between an + **on-demand** capacity mode and a **provisioned** capacity mode for your + data streams. + """ + warm_throughput_mi_bps: int | None + """ + The target warm throughput in MB/s that the stream should be scaled to + handle. This represents the throughput capacity that will be immediately + available for write operations. This field is only valid when the stream + mode is being updated to on-demand. + """ + @dataclass(kw_only=True) class UpdateStreamModeOutput(_SerdeShape): """Dataclass for UpdateStreamModeOutput structure.""" @@ -3454,6 +4900,27 @@ class UpdateStreamRecordDistributionStrategyInput(_SerdeShape): the default. """ +class UpdateStreamRecordDistributionStrategyInputDict(TypedDict, total=False): + """Dictionary form of `UpdateStreamRecordDistributionStrategyInput`.""" + + stream_arn: Required[str] + """The Amazon Resource Name (ARN) of the stream to update.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + record_distribution_strategy: Required[str] + """ + The record distribution strategy to apply to the stream. Specify one of + the following values: + + - `AUTO` -- Amazon Kinesis Data Streams distributes records evenly + across shards and ignores any partition key and `ExplicitHashKey` that + producers supply. + + - `USER_PARTITION_KEY` -- Producers must supply a partition key, which + Amazon Kinesis Data Streams uses to determine shard placement. This is + the default. + """ + @dataclass(kw_only=True) class UpdateStreamRecordDistributionStrategyOutput(_SerdeShape): """Dataclass for UpdateStreamRecordDistributionStrategyOutput structure.""" @@ -3483,6 +4950,22 @@ class UpdateStreamWarmThroughputInput(_SerdeShape): available for write operations. """ +class UpdateStreamWarmThroughputInputDict(TypedDict, total=False): + """Dictionary form of `UpdateStreamWarmThroughputInput`.""" + + stream_arn: str | None + """The ARN of the stream to be updated.""" + stream_name: str | None + """The name of the stream to be updated.""" + stream_id: str | None + """Not Implemented. Reserved for future use.""" + warm_throughput_mi_bps: Required[int] + """ + The target warm throughput in MB/s that the stream should be scaled to + handle. This represents the throughput capacity that will be immediately + available for write operations. + """ + @dataclass(kw_only=True) class UpdateStreamWarmThroughputOutput(_SerdeShape): """Dataclass for UpdateStreamWarmThroughputOutput structure.""" diff --git a/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/py.typed b/clients/aws-sdk-kinesis/src/aws_sdk_kinesis/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-kinesis/tests/_typecheck.py b/clients/aws-sdk-kinesis/tests/_typecheck.py index ba6626fa8..7905d1661 100644 --- a/clients/aws-sdk-kinesis/tests/_typecheck.py +++ b/clients/aws-sdk-kinesis/tests/_typecheck.py @@ -2,146 +2,216 @@ from typing import Any +from aws_sdk_kinesis.aio.client import AsyncKinesisClient +from aws_sdk_kinesis.client import KinesisClient from aws_sdk_kinesis.models import ( AddTagsToStreamInput, + AddTagsToStreamInputDict, AddTagsToStreamOutput, ChannelDescription, ChannelEncryptionConfiguration, + ChannelEncryptionConfigurationDict, ChannelLoggingConfiguration, + ChannelLoggingConfigurationDict, ChannelLoggingUpdateInput, + ChannelLoggingUpdateInputDict, ChannelStreamConfiguration, + ChannelStreamConfigurationDict, ChannelStreamDescription, ChannelStreamIdentifier, ChannelSummary, ChildShard, CloudWatchLogs, + CloudWatchLogsDict, CloudWatchLogsUpdateInput, + CloudWatchLogsUpdateInputDict, Consumer, ConsumerDescription, CreateChannelInput, + CreateChannelInputDict, CreateChannelOutput, CreateStreamInput, + CreateStreamInputDict, CreateStreamOutput, DeadLetterQueueS3Configuration, + DeadLetterQueueS3ConfigurationDict, DecreaseStreamRetentionPeriodInput, + DecreaseStreamRetentionPeriodInputDict, DecreaseStreamRetentionPeriodOutput, DeleteChannelInput, + DeleteChannelInputDict, DeleteChannelOutput, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DeleteStreamInput, + DeleteStreamInputDict, DeleteStreamOutput, DeregisterStreamConsumerInput, + DeregisterStreamConsumerInputDict, DeregisterStreamConsumerOutput, DescribeAccountSettingsInput, + DescribeAccountSettingsInputDict, DescribeAccountSettingsOutput, DescribeChannelInput, + DescribeChannelInputDict, DescribeChannelOutput, DescribeLimitsInput, + DescribeLimitsInputDict, DescribeLimitsOutput, DescribeStreamConsumerInput, + DescribeStreamConsumerInputDict, DescribeStreamConsumerOutput, DescribeStreamInput, + DescribeStreamInputDict, DescribeStreamOutput, DescribeStreamSummaryInput, + DescribeStreamSummaryInputDict, DescribeStreamSummaryOutput, DisableEnhancedMonitoringInput, + DisableEnhancedMonitoringInputDict, DisableEnhancedMonitoringOutput, EnableEnhancedMonitoringInput, + EnableEnhancedMonitoringInputDict, EnableEnhancedMonitoringOutput, EnhancedMetrics, GetRecordsInput, + GetRecordsInputDict, GetRecordsOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GetShardIteratorInput, + GetShardIteratorInputDict, GetShardIteratorOutput, HashKeyRange, IncreaseStreamRetentionPeriodInput, + IncreaseStreamRetentionPeriodInputDict, IncreaseStreamRetentionPeriodOutput, ListChannelsInput, + ListChannelsInputDict, ListChannelsOutput, ListShardsInput, + ListShardsInputDict, ListShardsOutput, ListStreamConsumersInput, + ListStreamConsumersInputDict, ListStreamConsumersOutput, ListStreamsInput, + ListStreamsInputDict, ListStreamsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ListTagsForStreamInput, + ListTagsForStreamInputDict, ListTagsForStreamOutput, MergeShardsInput, + MergeShardsInputDict, MergeShardsOutput, MinimumThroughputBillingCommitmentInput, + MinimumThroughputBillingCommitmentInputDict, MinimumThroughputBillingCommitmentOutput, PartitionField, + PartitionFieldDict, PartitionSpec, + PartitionSpecDict, PutRecordInput, + PutRecordInputDict, PutRecordOutput, PutRecordsInput, + PutRecordsInputDict, PutRecordsOutput, PutRecordsRequestEntry, + PutRecordsRequestEntryDict, PutRecordsResultEntry, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, Record, RecordConfiguration, + RecordConfigurationDict, RegisterStreamConsumerInput, + RegisterStreamConsumerInputDict, RegisterStreamConsumerOutput, RemoveTagsFromStreamInput, + RemoveTagsFromStreamInputDict, RemoveTagsFromStreamOutput, S3DestinationConfiguration, + S3DestinationConfigurationDict, S3DestinationDescription, S3DestinationUpdateInput, + S3DestinationUpdateInputDict, S3StorageConfiguration, + S3StorageConfigurationDict, S3TablesConfiguration, + S3TablesConfigurationDict, S3TablesDestinationConfiguration, + S3TablesDestinationConfigurationDict, S3TablesDestinationDescription, S3TablesDestinationUpdateInput, + S3TablesDestinationUpdateInputDict, SequenceNumberRange, Shard, ShardFilter, + ShardFilterDict, SplitShardInput, + SplitShardInputDict, SplitShardOutput, StartStreamEncryptionInput, + StartStreamEncryptionInputDict, StartStreamEncryptionOutput, StartingPosition, + StartingPositionDict, StopStreamEncryptionInput, + StopStreamEncryptionInputDict, StopStreamEncryptionOutput, StreamDescription, StreamDescriptionSummary, StreamFilter, + StreamFilterDict, StreamModeDetails, + StreamModeDetailsDict, StreamSummary, SubscribeToShardEvent, SubscribeToShardInput, + SubscribeToShardInputDict, SubscribeToShardOutput, Tag, TagResourceInput, + TagResourceInputDict, TagResourceOutput, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAccountSettingsInput, + UpdateAccountSettingsInputDict, UpdateAccountSettingsOutput, UpdateChannelInput, + UpdateChannelInputDict, UpdateChannelOutput, UpdateMaxRecordSizeInput, + UpdateMaxRecordSizeInputDict, UpdateMaxRecordSizeOutput, UpdateShardCountInput, + UpdateShardCountInputDict, UpdateShardCountOutput, UpdateStreamModeInput, + UpdateStreamModeInputDict, UpdateStreamModeOutput, UpdateStreamRecordDistributionStrategyInput, + UpdateStreamRecordDistributionStrategyInputDict, UpdateStreamRecordDistributionStrategyOutput, UpdateStreamWarmThroughputInput, + UpdateStreamWarmThroughputInputDict, UpdateStreamWarmThroughputOutput, WarmThroughputObject, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -338,3 +408,526 @@ UpdateStreamWarmThroughputInput() UpdateStreamWarmThroughputOutput() WarmThroughputObject() +_params_0: AddTagsToStreamInputDict = {"tags": _} +_params_1: ChannelEncryptionConfigurationDict = {"encryption_type": _, "key_id": _} +_params_2: ChannelLoggingConfigurationDict = {"cloud_watch_logs": _} +_params_3: ChannelLoggingUpdateInputDict = {"cloud_watch_logs": _} +_params_4: ChannelStreamConfigurationDict = {"stream_arn": _, "record_configuration": _} +_params_5: CloudWatchLogsDict = {"enabled": _} +_params_6: CloudWatchLogsUpdateInputDict = {"enabled": _} +_params_7: CreateChannelInputDict = { + "channel_name": _, + "service_execution_role_arn": _, + "stream_configuration_list": _, +} +_params_8: CreateStreamInputDict = {"stream_name": _} +_params_9: DeadLetterQueueS3ConfigurationDict = { + "bucket_arn": _, + "expected_bucket_owner": _, +} +_params_10: DecreaseStreamRetentionPeriodInputDict = {"retention_period_hours": _} +_params_11: DeleteChannelInputDict = {"channel_arn": _} +_params_12: DeleteResourcePolicyInputDict = {"resource_arn": _} +_params_13: DeleteStreamInputDict = {} +_params_14: DeregisterStreamConsumerInputDict = {} +_params_15: DescribeAccountSettingsInputDict = {} +_params_16: DescribeChannelInputDict = {"channel_arn": _} +_params_17: DescribeLimitsInputDict = {} +_params_18: DescribeStreamConsumerInputDict = {} +_params_19: DescribeStreamInputDict = {} +_params_20: DescribeStreamSummaryInputDict = {} +_params_21: DisableEnhancedMonitoringInputDict = {"shard_level_metrics": _} +_params_22: EnableEnhancedMonitoringInputDict = {"shard_level_metrics": _} +_params_23: GetRecordsInputDict = {"shard_iterator": _} +_params_24: GetResourcePolicyInputDict = {"resource_arn": _} +_params_25: GetShardIteratorInputDict = {"shard_id": _, "shard_iterator_type": _} +_params_26: IncreaseStreamRetentionPeriodInputDict = {"retention_period_hours": _} +_params_27: ListChannelsInputDict = {} +_params_28: ListShardsInputDict = {} +_params_29: ListStreamConsumersInputDict = {"stream_arn": _} +_params_30: ListStreamsInputDict = {} +_params_31: ListTagsForResourceInputDict = {"resource_arn": _} +_params_32: ListTagsForStreamInputDict = {} +_params_33: MergeShardsInputDict = {"shard_to_merge": _, "adjacent_shard_to_merge": _} +_params_34: MinimumThroughputBillingCommitmentInputDict = {"status": _} +_params_35: PartitionFieldDict = {"transform": _, "source_name": _} +_params_36: PartitionSpecDict = {"partition_fields": _} +_params_37: PutRecordInputDict = {"data": _} +_params_38: PutRecordsInputDict = {"records": _} +_params_39: PutRecordsRequestEntryDict = {"data": _} +_params_40: PutResourcePolicyInputDict = {"resource_arn": _, "policy": _} +_params_41: RecordConfigurationDict = {"record_format_type": _} +_params_42: RegisterStreamConsumerInputDict = {"stream_arn": _, "consumer_name": _} +_params_43: RemoveTagsFromStreamInputDict = {"tag_keys": _} +_params_44: S3DestinationConfigurationDict = {"storage_configuration": _} +_params_45: S3DestinationUpdateInputDict = {"data_freshness_in_seconds": _} +_params_46: S3StorageConfigurationDict = { + "bucket_arn": _, + "expected_bucket_owner": _, + "compression_type": _, +} +_params_47: S3TablesConfigurationDict = { + "table_bucket_arn": _, + "namespace": _, + "table_name": _, + "compression_type": _, +} +_params_48: S3TablesDestinationConfigurationDict = { + "dead_letter_queue_s3_configuration": _, + "s3_tables_configuration_list": _, +} +_params_49: S3TablesDestinationUpdateInputDict = {"data_freshness_in_seconds": _} +_params_50: ShardFilterDict = {"type": _} +_params_51: SplitShardInputDict = {"shard_to_split": _, "new_starting_hash_key": _} +_params_52: StartingPositionDict = {"type": _} +_params_53: StartStreamEncryptionInputDict = {"encryption_type": _, "key_id": _} +_params_54: StopStreamEncryptionInputDict = {"encryption_type": _, "key_id": _} +_params_55: StreamFilterDict = {"stream_arn": _} +_params_56: StreamModeDetailsDict = {"stream_mode": _} +_params_57: SubscribeToShardInputDict = { + "consumer_arn": _, + "shard_id": _, + "starting_position": _, +} +_params_58: TagResourceInputDict = {"tags": _, "resource_arn": _} +_params_59: UntagResourceInputDict = {"tag_keys": _, "resource_arn": _} +_params_60: UpdateAccountSettingsInputDict = { + "minimum_throughput_billing_commitment": _ +} +_params_61: UpdateChannelInputDict = {"channel_arn": _} +_params_62: UpdateMaxRecordSizeInputDict = {"max_record_size_in_ki_b": _} +_params_63: UpdateShardCountInputDict = {"target_shard_count": _, "scaling_type": _} +_params_64: UpdateStreamModeInputDict = {"stream_arn": _, "stream_mode_details": _} +_params_65: UpdateStreamRecordDistributionStrategyInputDict = { + "stream_arn": _, + "record_distribution_strategy": _, +} +_params_66: UpdateStreamWarmThroughputInputDict = {"warm_throughput_mi_bps": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncKinesisClient) -> None: + pass + await client.add_tags_to_stream(tags=_) + await client.add_tags_to_stream(**_request(AddTagsToStreamInputDict)) + await client.add_tags_to_stream(_request(AddTagsToStreamInput)) + await client.add_tags_to_stream(_request(AddTagsToStreamInputDict)) + await client.create_channel( + channel_name=_, service_execution_role_arn=_, stream_configuration_list=_ + ) + await client.create_channel(**_request(CreateChannelInputDict)) + await client.create_channel(_request(CreateChannelInput)) + await client.create_channel(_request(CreateChannelInputDict)) + await client.create_stream(stream_name=_) + await client.create_stream(**_request(CreateStreamInputDict)) + await client.create_stream(_request(CreateStreamInput)) + await client.create_stream(_request(CreateStreamInputDict)) + await client.decrease_stream_retention_period(retention_period_hours=_) + await client.decrease_stream_retention_period( + **_request(DecreaseStreamRetentionPeriodInputDict) + ) + await client.decrease_stream_retention_period( + _request(DecreaseStreamRetentionPeriodInput) + ) + await client.decrease_stream_retention_period( + _request(DecreaseStreamRetentionPeriodInputDict) + ) + await client.delete_channel(channel_arn=_) + await client.delete_channel(**_request(DeleteChannelInputDict)) + await client.delete_channel(_request(DeleteChannelInput)) + await client.delete_channel(_request(DeleteChannelInputDict)) + await client.delete_resource_policy(resource_arn=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.delete_stream() + await client.delete_stream(**_request(DeleteStreamInputDict)) + await client.delete_stream(_request(DeleteStreamInput)) + await client.delete_stream(_request(DeleteStreamInputDict)) + await client.deregister_stream_consumer() + await client.deregister_stream_consumer( + **_request(DeregisterStreamConsumerInputDict) + ) + await client.deregister_stream_consumer(_request(DeregisterStreamConsumerInput)) + await client.deregister_stream_consumer(_request(DeregisterStreamConsumerInputDict)) + await client.describe_account_settings() + await client.describe_account_settings(**_request(DescribeAccountSettingsInputDict)) + await client.describe_account_settings(_request(DescribeAccountSettingsInput)) + await client.describe_account_settings(_request(DescribeAccountSettingsInputDict)) + await client.describe_channel(channel_arn=_) + await client.describe_channel(**_request(DescribeChannelInputDict)) + await client.describe_channel(_request(DescribeChannelInput)) + await client.describe_channel(_request(DescribeChannelInputDict)) + await client.describe_limits() + await client.describe_limits(**_request(DescribeLimitsInputDict)) + await client.describe_limits(_request(DescribeLimitsInput)) + await client.describe_limits(_request(DescribeLimitsInputDict)) + await client.describe_stream() + await client.describe_stream(**_request(DescribeStreamInputDict)) + await client.describe_stream(_request(DescribeStreamInput)) + await client.describe_stream(_request(DescribeStreamInputDict)) + await client.describe_stream_consumer() + await client.describe_stream_consumer(**_request(DescribeStreamConsumerInputDict)) + await client.describe_stream_consumer(_request(DescribeStreamConsumerInput)) + await client.describe_stream_consumer(_request(DescribeStreamConsumerInputDict)) + await client.describe_stream_summary() + await client.describe_stream_summary(**_request(DescribeStreamSummaryInputDict)) + await client.describe_stream_summary(_request(DescribeStreamSummaryInput)) + await client.describe_stream_summary(_request(DescribeStreamSummaryInputDict)) + await client.disable_enhanced_monitoring(shard_level_metrics=_) + await client.disable_enhanced_monitoring( + **_request(DisableEnhancedMonitoringInputDict) + ) + await client.disable_enhanced_monitoring(_request(DisableEnhancedMonitoringInput)) + await client.disable_enhanced_monitoring( + _request(DisableEnhancedMonitoringInputDict) + ) + await client.enable_enhanced_monitoring(shard_level_metrics=_) + await client.enable_enhanced_monitoring( + **_request(EnableEnhancedMonitoringInputDict) + ) + await client.enable_enhanced_monitoring(_request(EnableEnhancedMonitoringInput)) + await client.enable_enhanced_monitoring(_request(EnableEnhancedMonitoringInputDict)) + await client.get_records(shard_iterator=_) + await client.get_records(**_request(GetRecordsInputDict)) + await client.get_records(_request(GetRecordsInput)) + await client.get_records(_request(GetRecordsInputDict)) + await client.get_resource_policy(resource_arn=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.get_shard_iterator(shard_id=_, shard_iterator_type=_) + await client.get_shard_iterator(**_request(GetShardIteratorInputDict)) + await client.get_shard_iterator(_request(GetShardIteratorInput)) + await client.get_shard_iterator(_request(GetShardIteratorInputDict)) + await client.increase_stream_retention_period(retention_period_hours=_) + await client.increase_stream_retention_period( + **_request(IncreaseStreamRetentionPeriodInputDict) + ) + await client.increase_stream_retention_period( + _request(IncreaseStreamRetentionPeriodInput) + ) + await client.increase_stream_retention_period( + _request(IncreaseStreamRetentionPeriodInputDict) + ) + await client.list_channels() + await client.list_channels(**_request(ListChannelsInputDict)) + await client.list_channels(_request(ListChannelsInput)) + await client.list_channels(_request(ListChannelsInputDict)) + await client.list_shards() + await client.list_shards(**_request(ListShardsInputDict)) + await client.list_shards(_request(ListShardsInput)) + await client.list_shards(_request(ListShardsInputDict)) + await client.list_stream_consumers(stream_arn=_) + await client.list_stream_consumers(**_request(ListStreamConsumersInputDict)) + await client.list_stream_consumers(_request(ListStreamConsumersInput)) + await client.list_stream_consumers(_request(ListStreamConsumersInputDict)) + await client.list_streams() + await client.list_streams(**_request(ListStreamsInputDict)) + await client.list_streams(_request(ListStreamsInput)) + await client.list_streams(_request(ListStreamsInputDict)) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.list_tags_for_stream() + await client.list_tags_for_stream(**_request(ListTagsForStreamInputDict)) + await client.list_tags_for_stream(_request(ListTagsForStreamInput)) + await client.list_tags_for_stream(_request(ListTagsForStreamInputDict)) + await client.merge_shards(shard_to_merge=_, adjacent_shard_to_merge=_) + await client.merge_shards(**_request(MergeShardsInputDict)) + await client.merge_shards(_request(MergeShardsInput)) + await client.merge_shards(_request(MergeShardsInputDict)) + await client.put_record(data=_) + await client.put_record(**_request(PutRecordInputDict)) + await client.put_record(_request(PutRecordInput)) + await client.put_record(_request(PutRecordInputDict)) + await client.put_records(records=_) + await client.put_records(**_request(PutRecordsInputDict)) + await client.put_records(_request(PutRecordsInput)) + await client.put_records(_request(PutRecordsInputDict)) + await client.put_resource_policy(resource_arn=_, policy=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.register_stream_consumer(stream_arn=_, consumer_name=_) + await client.register_stream_consumer(**_request(RegisterStreamConsumerInputDict)) + await client.register_stream_consumer(_request(RegisterStreamConsumerInput)) + await client.register_stream_consumer(_request(RegisterStreamConsumerInputDict)) + await client.remove_tags_from_stream(tag_keys=_) + await client.remove_tags_from_stream(**_request(RemoveTagsFromStreamInputDict)) + await client.remove_tags_from_stream(_request(RemoveTagsFromStreamInput)) + await client.remove_tags_from_stream(_request(RemoveTagsFromStreamInputDict)) + await client.split_shard(shard_to_split=_, new_starting_hash_key=_) + await client.split_shard(**_request(SplitShardInputDict)) + await client.split_shard(_request(SplitShardInput)) + await client.split_shard(_request(SplitShardInputDict)) + await client.start_stream_encryption(encryption_type=_, key_id=_) + await client.start_stream_encryption(**_request(StartStreamEncryptionInputDict)) + await client.start_stream_encryption(_request(StartStreamEncryptionInput)) + await client.start_stream_encryption(_request(StartStreamEncryptionInputDict)) + await client.stop_stream_encryption(encryption_type=_, key_id=_) + await client.stop_stream_encryption(**_request(StopStreamEncryptionInputDict)) + await client.stop_stream_encryption(_request(StopStreamEncryptionInput)) + await client.stop_stream_encryption(_request(StopStreamEncryptionInputDict)) + await client.subscribe_to_shard(consumer_arn=_, shard_id=_, starting_position=_) + await client.subscribe_to_shard(**_request(SubscribeToShardInputDict)) + await client.subscribe_to_shard(_request(SubscribeToShardInput)) + await client.subscribe_to_shard(_request(SubscribeToShardInputDict)) + await client.tag_resource(tags=_, resource_arn=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(tag_keys=_, resource_arn=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_account_settings(minimum_throughput_billing_commitment=_) + await client.update_account_settings(**_request(UpdateAccountSettingsInputDict)) + await client.update_account_settings(_request(UpdateAccountSettingsInput)) + await client.update_account_settings(_request(UpdateAccountSettingsInputDict)) + await client.update_channel(channel_arn=_) + await client.update_channel(**_request(UpdateChannelInputDict)) + await client.update_channel(_request(UpdateChannelInput)) + await client.update_channel(_request(UpdateChannelInputDict)) + await client.update_max_record_size(max_record_size_in_ki_b=_) + await client.update_max_record_size(**_request(UpdateMaxRecordSizeInputDict)) + await client.update_max_record_size(_request(UpdateMaxRecordSizeInput)) + await client.update_max_record_size(_request(UpdateMaxRecordSizeInputDict)) + await client.update_shard_count(target_shard_count=_, scaling_type=_) + await client.update_shard_count(**_request(UpdateShardCountInputDict)) + await client.update_shard_count(_request(UpdateShardCountInput)) + await client.update_shard_count(_request(UpdateShardCountInputDict)) + await client.update_stream_mode(stream_arn=_, stream_mode_details=_) + await client.update_stream_mode(**_request(UpdateStreamModeInputDict)) + await client.update_stream_mode(_request(UpdateStreamModeInput)) + await client.update_stream_mode(_request(UpdateStreamModeInputDict)) + await client.update_stream_record_distribution_strategy( + stream_arn=_, record_distribution_strategy=_ + ) + await client.update_stream_record_distribution_strategy( + **_request(UpdateStreamRecordDistributionStrategyInputDict) + ) + await client.update_stream_record_distribution_strategy( + _request(UpdateStreamRecordDistributionStrategyInput) + ) + await client.update_stream_record_distribution_strategy( + _request(UpdateStreamRecordDistributionStrategyInputDict) + ) + await client.update_stream_warm_throughput(warm_throughput_mi_bps=_) + await client.update_stream_warm_throughput( + **_request(UpdateStreamWarmThroughputInputDict) + ) + await client.update_stream_warm_throughput( + _request(UpdateStreamWarmThroughputInput) + ) + await client.update_stream_warm_throughput( + _request(UpdateStreamWarmThroughputInputDict) + ) + + +def check_sync_calls(client: KinesisClient) -> None: + pass + client.add_tags_to_stream(tags=_) + client.add_tags_to_stream(**_request(AddTagsToStreamInputDict)) + client.add_tags_to_stream(_request(AddTagsToStreamInput)) + client.add_tags_to_stream(_request(AddTagsToStreamInputDict)) + client.create_channel( + channel_name=_, service_execution_role_arn=_, stream_configuration_list=_ + ) + client.create_channel(**_request(CreateChannelInputDict)) + client.create_channel(_request(CreateChannelInput)) + client.create_channel(_request(CreateChannelInputDict)) + client.create_stream(stream_name=_) + client.create_stream(**_request(CreateStreamInputDict)) + client.create_stream(_request(CreateStreamInput)) + client.create_stream(_request(CreateStreamInputDict)) + client.decrease_stream_retention_period(retention_period_hours=_) + client.decrease_stream_retention_period( + **_request(DecreaseStreamRetentionPeriodInputDict) + ) + client.decrease_stream_retention_period( + _request(DecreaseStreamRetentionPeriodInput) + ) + client.decrease_stream_retention_period( + _request(DecreaseStreamRetentionPeriodInputDict) + ) + client.delete_channel(channel_arn=_) + client.delete_channel(**_request(DeleteChannelInputDict)) + client.delete_channel(_request(DeleteChannelInput)) + client.delete_channel(_request(DeleteChannelInputDict)) + client.delete_resource_policy(resource_arn=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.delete_stream() + client.delete_stream(**_request(DeleteStreamInputDict)) + client.delete_stream(_request(DeleteStreamInput)) + client.delete_stream(_request(DeleteStreamInputDict)) + client.deregister_stream_consumer() + client.deregister_stream_consumer(**_request(DeregisterStreamConsumerInputDict)) + client.deregister_stream_consumer(_request(DeregisterStreamConsumerInput)) + client.deregister_stream_consumer(_request(DeregisterStreamConsumerInputDict)) + client.describe_account_settings() + client.describe_account_settings(**_request(DescribeAccountSettingsInputDict)) + client.describe_account_settings(_request(DescribeAccountSettingsInput)) + client.describe_account_settings(_request(DescribeAccountSettingsInputDict)) + client.describe_channel(channel_arn=_) + client.describe_channel(**_request(DescribeChannelInputDict)) + client.describe_channel(_request(DescribeChannelInput)) + client.describe_channel(_request(DescribeChannelInputDict)) + client.describe_limits() + client.describe_limits(**_request(DescribeLimitsInputDict)) + client.describe_limits(_request(DescribeLimitsInput)) + client.describe_limits(_request(DescribeLimitsInputDict)) + client.describe_stream() + client.describe_stream(**_request(DescribeStreamInputDict)) + client.describe_stream(_request(DescribeStreamInput)) + client.describe_stream(_request(DescribeStreamInputDict)) + client.describe_stream_consumer() + client.describe_stream_consumer(**_request(DescribeStreamConsumerInputDict)) + client.describe_stream_consumer(_request(DescribeStreamConsumerInput)) + client.describe_stream_consumer(_request(DescribeStreamConsumerInputDict)) + client.describe_stream_summary() + client.describe_stream_summary(**_request(DescribeStreamSummaryInputDict)) + client.describe_stream_summary(_request(DescribeStreamSummaryInput)) + client.describe_stream_summary(_request(DescribeStreamSummaryInputDict)) + client.disable_enhanced_monitoring(shard_level_metrics=_) + client.disable_enhanced_monitoring(**_request(DisableEnhancedMonitoringInputDict)) + client.disable_enhanced_monitoring(_request(DisableEnhancedMonitoringInput)) + client.disable_enhanced_monitoring(_request(DisableEnhancedMonitoringInputDict)) + client.enable_enhanced_monitoring(shard_level_metrics=_) + client.enable_enhanced_monitoring(**_request(EnableEnhancedMonitoringInputDict)) + client.enable_enhanced_monitoring(_request(EnableEnhancedMonitoringInput)) + client.enable_enhanced_monitoring(_request(EnableEnhancedMonitoringInputDict)) + client.get_records(shard_iterator=_) + client.get_records(**_request(GetRecordsInputDict)) + client.get_records(_request(GetRecordsInput)) + client.get_records(_request(GetRecordsInputDict)) + client.get_resource_policy(resource_arn=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.get_shard_iterator(shard_id=_, shard_iterator_type=_) + client.get_shard_iterator(**_request(GetShardIteratorInputDict)) + client.get_shard_iterator(_request(GetShardIteratorInput)) + client.get_shard_iterator(_request(GetShardIteratorInputDict)) + client.increase_stream_retention_period(retention_period_hours=_) + client.increase_stream_retention_period( + **_request(IncreaseStreamRetentionPeriodInputDict) + ) + client.increase_stream_retention_period( + _request(IncreaseStreamRetentionPeriodInput) + ) + client.increase_stream_retention_period( + _request(IncreaseStreamRetentionPeriodInputDict) + ) + client.list_channels() + client.list_channels(**_request(ListChannelsInputDict)) + client.list_channels(_request(ListChannelsInput)) + client.list_channels(_request(ListChannelsInputDict)) + client.list_shards() + client.list_shards(**_request(ListShardsInputDict)) + client.list_shards(_request(ListShardsInput)) + client.list_shards(_request(ListShardsInputDict)) + client.list_stream_consumers(stream_arn=_) + client.list_stream_consumers(**_request(ListStreamConsumersInputDict)) + client.list_stream_consumers(_request(ListStreamConsumersInput)) + client.list_stream_consumers(_request(ListStreamConsumersInputDict)) + client.list_streams() + client.list_streams(**_request(ListStreamsInputDict)) + client.list_streams(_request(ListStreamsInput)) + client.list_streams(_request(ListStreamsInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.list_tags_for_stream() + client.list_tags_for_stream(**_request(ListTagsForStreamInputDict)) + client.list_tags_for_stream(_request(ListTagsForStreamInput)) + client.list_tags_for_stream(_request(ListTagsForStreamInputDict)) + client.merge_shards(shard_to_merge=_, adjacent_shard_to_merge=_) + client.merge_shards(**_request(MergeShardsInputDict)) + client.merge_shards(_request(MergeShardsInput)) + client.merge_shards(_request(MergeShardsInputDict)) + client.put_record(data=_) + client.put_record(**_request(PutRecordInputDict)) + client.put_record(_request(PutRecordInput)) + client.put_record(_request(PutRecordInputDict)) + client.put_records(records=_) + client.put_records(**_request(PutRecordsInputDict)) + client.put_records(_request(PutRecordsInput)) + client.put_records(_request(PutRecordsInputDict)) + client.put_resource_policy(resource_arn=_, policy=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.register_stream_consumer(stream_arn=_, consumer_name=_) + client.register_stream_consumer(**_request(RegisterStreamConsumerInputDict)) + client.register_stream_consumer(_request(RegisterStreamConsumerInput)) + client.register_stream_consumer(_request(RegisterStreamConsumerInputDict)) + client.remove_tags_from_stream(tag_keys=_) + client.remove_tags_from_stream(**_request(RemoveTagsFromStreamInputDict)) + client.remove_tags_from_stream(_request(RemoveTagsFromStreamInput)) + client.remove_tags_from_stream(_request(RemoveTagsFromStreamInputDict)) + client.split_shard(shard_to_split=_, new_starting_hash_key=_) + client.split_shard(**_request(SplitShardInputDict)) + client.split_shard(_request(SplitShardInput)) + client.split_shard(_request(SplitShardInputDict)) + client.start_stream_encryption(encryption_type=_, key_id=_) + client.start_stream_encryption(**_request(StartStreamEncryptionInputDict)) + client.start_stream_encryption(_request(StartStreamEncryptionInput)) + client.start_stream_encryption(_request(StartStreamEncryptionInputDict)) + client.stop_stream_encryption(encryption_type=_, key_id=_) + client.stop_stream_encryption(**_request(StopStreamEncryptionInputDict)) + client.stop_stream_encryption(_request(StopStreamEncryptionInput)) + client.stop_stream_encryption(_request(StopStreamEncryptionInputDict)) + client.tag_resource(tags=_, resource_arn=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(tag_keys=_, resource_arn=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_account_settings(minimum_throughput_billing_commitment=_) + client.update_account_settings(**_request(UpdateAccountSettingsInputDict)) + client.update_account_settings(_request(UpdateAccountSettingsInput)) + client.update_account_settings(_request(UpdateAccountSettingsInputDict)) + client.update_channel(channel_arn=_) + client.update_channel(**_request(UpdateChannelInputDict)) + client.update_channel(_request(UpdateChannelInput)) + client.update_channel(_request(UpdateChannelInputDict)) + client.update_max_record_size(max_record_size_in_ki_b=_) + client.update_max_record_size(**_request(UpdateMaxRecordSizeInputDict)) + client.update_max_record_size(_request(UpdateMaxRecordSizeInput)) + client.update_max_record_size(_request(UpdateMaxRecordSizeInputDict)) + client.update_shard_count(target_shard_count=_, scaling_type=_) + client.update_shard_count(**_request(UpdateShardCountInputDict)) + client.update_shard_count(_request(UpdateShardCountInput)) + client.update_shard_count(_request(UpdateShardCountInputDict)) + client.update_stream_mode(stream_arn=_, stream_mode_details=_) + client.update_stream_mode(**_request(UpdateStreamModeInputDict)) + client.update_stream_mode(_request(UpdateStreamModeInput)) + client.update_stream_mode(_request(UpdateStreamModeInputDict)) + client.update_stream_record_distribution_strategy( + stream_arn=_, record_distribution_strategy=_ + ) + client.update_stream_record_distribution_strategy( + **_request(UpdateStreamRecordDistributionStrategyInputDict) + ) + client.update_stream_record_distribution_strategy( + _request(UpdateStreamRecordDistributionStrategyInput) + ) + client.update_stream_record_distribution_strategy( + _request(UpdateStreamRecordDistributionStrategyInputDict) + ) + client.update_stream_warm_throughput(warm_throughput_mi_bps=_) + client.update_stream_warm_throughput( + **_request(UpdateStreamWarmThroughputInputDict) + ) + client.update_stream_warm_throughput(_request(UpdateStreamWarmThroughputInput)) + client.update_stream_warm_throughput(_request(UpdateStreamWarmThroughputInputDict)) diff --git a/clients/aws-sdk-kinesis/tests/test_endpoints.py b/clients/aws-sdk-kinesis/tests/test_endpoints.py index d884607ca..8ad6e7e2c 100644 --- a/clients/aws-sdk-kinesis/tests/test_endpoints.py +++ b/clients/aws-sdk-kinesis/tests/test_endpoints.py @@ -1,7 +1,7 @@ # Code generated by smithy-python-codegen DO NOT EDIT. from collections.abc import Awaitable, Callable, Mapping -from typing import Any +from typing import Any, Concatenate from pytest import mark, param from smithy_aws_core.aio.identity.static import AsyncStaticCredentialsResolver @@ -18,20 +18,8 @@ from aws_sdk_kinesis.aio.config import AsyncKinesisConfig from aws_sdk_kinesis.models import ( ChannelStreamConfiguration, - CreateChannelInput, - CreateStreamInput, - DeleteChannelInput, - DescribeAccountSettingsInput, - DescribeChannelInput, - DescribeLimitsInput, - GetShardIteratorInput, - ListChannelsInput, - ListShardsInput, - ListStreamsInput, MinimumThroughputBillingCommitmentInput, RecordConfiguration, - UpdateAccountSettingsInput, - UpdateChannelInput, ) @@ -3221,11 +3209,11 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncKinesisClient.get_shard_iterator, - GetShardIteratorInput( - shard_id="shardId-000000000001", - shard_iterator_type="LATEST", - stream_id="af4lwng4k01746835071-xyz", - ), + { + "shard_id": "shardId-000000000001", + "shard_iterator_type": "LATEST", + "stream_id": "af4lwng4k01746835071-xyz", + }, { "endpoint": { "url": "https://af4lwng4k01746835071.xyz.data-kinesis.us-east-1.amazonaws.com" @@ -3236,7 +3224,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-1"}, AsyncKinesisClient.list_shards, - ListShardsInput(stream_id="af4lwng4k01746835071-xyz"), + {"stream_id": "af4lwng4k01746835071-xyz"}, { "endpoint": { "url": "https://af4lwng4k01746835071.xyz.control-kinesis.us-west-1.amazonaws.com" @@ -3247,9 +3235,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncKinesisClient.describe_channel, - DescribeChannelInput( - channel_arn="arn:aws:kinesis:us-east-1:298091445058:channel/apu0zt8ge6utbndxe" - ), + { + "channel_arn": "arn:aws:kinesis:us-east-1:298091445058:channel/apu0zt8ge6utbndxe" + }, { "endpoint": { "url": "https://apu0zt8ge6utbndxe.control-kinesis.us-east-1.amazonaws.com" @@ -3260,9 +3248,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncKinesisClient.delete_channel, - DeleteChannelInput( - channel_arn="arn:aws:kinesis:us-east-1:298091445058:channel/apu0zt8ge6utbndxe" - ), + { + "channel_arn": "arn:aws:kinesis:us-east-1:298091445058:channel/apu0zt8ge6utbndxe" + }, { "endpoint": { "url": "https://apu0zt8ge6utbndxe.control-kinesis-fips.us-east-1.amazonaws.com" @@ -3273,9 +3261,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_dualstack_endpoint": True}, AsyncKinesisClient.update_channel, - UpdateChannelInput( - channel_arn="arn:aws:kinesis:us-east-1:298091445058:channel/apu0zt8ge6utbndxe" - ), + { + "channel_arn": "arn:aws:kinesis:us-east-1:298091445058:channel/apu0zt8ge6utbndxe" + }, { "endpoint": { "url": "https://apu0zt8ge6utbndxe.control-kinesis.us-east-1.api.aws" @@ -3290,9 +3278,9 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.describe_channel, - DescribeChannelInput( - channel_arn="arn:aws:kinesis:us-east-1:298091445058:channel/apu0zt8ge6utbndxe" - ), + { + "channel_arn": "arn:aws:kinesis:us-east-1:298091445058:channel/apu0zt8ge6utbndxe" + }, { "endpoint": { "url": "https://apu0zt8ge6utbndxe.control-kinesis-fips.us-east-1.api.aws" @@ -3313,11 +3301,11 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncKinesisClient.get_shard_iterator, - GetShardIteratorInput( - stream_name="test-stream", - shard_id="shardId-000000000001", - shard_iterator_type="LATEST", - ), + { + "stream_name": "test-stream", + "shard_id": "shardId-000000000001", + "shard_iterator_type": "LATEST", + }, { "endpoint": { "url": "https://012345678901.data-kinesis.us-west-2.amazonaws.com", @@ -3340,7 +3328,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_fips_endpoint": True, }, AsyncKinesisClient.list_shards, - ListShardsInput(stream_name="testStream"), + {"stream_name": "testStream"}, { "endpoint": { "url": "https://123.control-kinesis-fips.us-west-2.amazonaws.com", @@ -3362,14 +3350,14 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncKinesisClient.list_shards, - ListShardsInput(stream_name="testStream"), + {"stream_name": "testStream"}, {"endpoint": {"url": "https://kinesis.us-west-2.amazonaws.com"}}, id="Account Id with account id endpoint mode disabled", ), param( {"region": "us-west-2", "account_id_endpoint_mode": "required"}, AsyncKinesisClient.list_shards, - ListShardsInput(stream_name="testStream"), + {"stream_name": "testStream"}, { "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded" }, @@ -3388,7 +3376,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncKinesisClient.create_stream, - CreateStreamInput(stream_name="test-stream", shard_count=1), + {"stream_name": "test-stream", "shard_count": 1}, { "endpoint": { "url": "https://123456789012.control-kinesis.us-east-1.amazonaws.com", @@ -3411,7 +3399,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_fips_endpoint": True, }, AsyncKinesisClient.create_stream, - CreateStreamInput(stream_name="test-stream", shard_count=1), + {"stream_name": "test-stream", "shard_count": 1}, { "endpoint": { "url": "https://123456789012.control-kinesis-fips.us-east-1.amazonaws.com", @@ -3433,7 +3421,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncKinesisClient.list_streams, - ListStreamsInput(), + {}, { "endpoint": { "url": "https://123456789012.control-kinesis.us-west-2.amazonaws.com", @@ -3457,7 +3445,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.list_streams, - ListStreamsInput(), + {}, { "endpoint": { "url": "https://123456789012.control-kinesis-fips.us-west-2.api.aws", @@ -3479,7 +3467,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncKinesisClient.describe_limits, - DescribeLimitsInput(), + {}, { "endpoint": { "url": "https://123456789012.control-kinesis.us-east-1.amazonaws.com", @@ -3502,7 +3490,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_fips_endpoint": True, }, AsyncKinesisClient.describe_limits, - DescribeLimitsInput(), + {}, { "endpoint": { "url": "https://123456789012.control-kinesis-fips.us-east-1.amazonaws.com", @@ -3524,7 +3512,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncKinesisClient.describe_account_settings, - DescribeAccountSettingsInput(), + {}, { "endpoint": { "url": "https://123456789012.control-kinesis.us-west-2.amazonaws.com", @@ -3548,7 +3536,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.describe_account_settings, - DescribeAccountSettingsInput(), + {}, { "endpoint": { "url": "https://123456789012.control-kinesis-fips.us-west-2.api.aws", @@ -3570,11 +3558,11 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncKinesisClient.update_account_settings, - UpdateAccountSettingsInput( - minimum_throughput_billing_commitment=MinimumThroughputBillingCommitmentInput( + { + "minimum_throughput_billing_commitment": MinimumThroughputBillingCommitmentInput( status="ENABLED" ) - ), + }, { "endpoint": { "url": "https://123456789012.control-kinesis.us-east-1.amazonaws.com", @@ -3597,11 +3585,11 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_fips_endpoint": True, }, AsyncKinesisClient.update_account_settings, - UpdateAccountSettingsInput( - minimum_throughput_billing_commitment=MinimumThroughputBillingCommitmentInput( + { + "minimum_throughput_billing_commitment": MinimumThroughputBillingCommitmentInput( status="ENABLED" ) - ), + }, { "endpoint": { "url": "https://123456789012.control-kinesis-fips.us-east-1.amazonaws.com", @@ -3623,7 +3611,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncKinesisClient.create_stream, - CreateStreamInput(stream_name="test-stream", shard_count=1), + {"stream_name": "test-stream", "shard_count": 1}, {"endpoint": {"url": "https://kinesis.us-east-1.amazonaws.com"}}, id="CreateStream: account id endpoint mode disabled falls back to regional endpoint", ), @@ -3640,7 +3628,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncKinesisClient.list_streams, - ListStreamsInput(), + {}, {"endpoint": {"url": "https://kinesis.us-west-2.amazonaws.com"}}, id="ListStreams: account id endpoint mode disabled falls back to regional endpoint", ), @@ -3657,7 +3645,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncKinesisClient.describe_limits, - DescribeLimitsInput(), + {}, {"endpoint": {"url": "https://kinesis.us-east-1.amazonaws.com"}}, id="DescribeLimits: account id endpoint mode disabled falls back to regional endpoint", ), @@ -3674,7 +3662,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncKinesisClient.describe_account_settings, - DescribeAccountSettingsInput(), + {}, {"endpoint": {"url": "https://kinesis.us-west-2.amazonaws.com"}}, id="DescribeAccountSettings: account id endpoint mode disabled falls back to regional endpoint", ), @@ -3691,11 +3679,11 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncKinesisClient.update_account_settings, - UpdateAccountSettingsInput( - minimum_throughput_billing_commitment=MinimumThroughputBillingCommitmentInput( + { + "minimum_throughput_billing_commitment": MinimumThroughputBillingCommitmentInput( status="ENABLED" ) - ), + }, {"endpoint": {"url": "https://kinesis.us-east-1.amazonaws.com"}}, id="UpdateAccountSettings: account id endpoint mode disabled falls back to regional endpoint", ), @@ -3713,7 +3701,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_fips_endpoint": True, }, AsyncKinesisClient.create_stream, - CreateStreamInput(stream_name="test-stream", shard_count=1), + {"stream_name": "test-stream", "shard_count": 1}, {"endpoint": {"url": "https://kinesis-fips.us-east-1.amazonaws.com"}}, id="CreateStream: account id endpoint mode disabled with FIPS falls back to regional FIPS endpoint", ), @@ -3731,7 +3719,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.create_stream, - CreateStreamInput(stream_name="test-stream", shard_count=1), + {"stream_name": "test-stream", "shard_count": 1}, {"endpoint": {"url": "https://kinesis.us-east-1.api.aws"}}, id="CreateStream: account id endpoint mode disabled with DualStack falls back to regional DualStack endpoint", ), @@ -3750,7 +3738,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.create_stream, - CreateStreamInput(stream_name="test-stream", shard_count=1), + {"stream_name": "test-stream", "shard_count": 1}, {"endpoint": {"url": "https://kinesis-fips.us-east-1.api.aws"}}, id="CreateStream: account id endpoint mode disabled with FIPS and DualStack falls back to regional FIPS DualStack endpoint", ), @@ -3767,16 +3755,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncKinesisClient.create_channel, - CreateChannelInput( - channel_name="test-channel", - service_execution_role_arn="arn:aws:iam::123456789012:role/test-role", - stream_configuration_list=[ + { + "channel_name": "test-channel", + "service_execution_role_arn": "arn:aws:iam::123456789012:role/test-role", + "stream_configuration_list": [ ChannelStreamConfiguration( stream_arn="arn:aws:kinesis:us-east-1:123456789012:stream/test-stream", record_configuration=RecordConfiguration(record_format_type="JSON"), ) ], - ), + }, { "endpoint": { "url": "https://123456789012.control-kinesis.us-east-1.amazonaws.com", @@ -3799,16 +3787,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_fips_endpoint": True, }, AsyncKinesisClient.create_channel, - CreateChannelInput( - channel_name="test-channel", - service_execution_role_arn="arn:aws:iam::123456789012:role/test-role", - stream_configuration_list=[ + { + "channel_name": "test-channel", + "service_execution_role_arn": "arn:aws:iam::123456789012:role/test-role", + "stream_configuration_list": [ ChannelStreamConfiguration( stream_arn="arn:aws:kinesis:us-east-1:123456789012:stream/test-stream", record_configuration=RecordConfiguration(record_format_type="JSON"), ) ], - ), + }, { "endpoint": { "url": "https://123456789012.control-kinesis-fips.us-east-1.amazonaws.com", @@ -3831,16 +3819,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.create_channel, - CreateChannelInput( - channel_name="test-channel", - service_execution_role_arn="arn:aws:iam::123456789012:role/test-role", - stream_configuration_list=[ + { + "channel_name": "test-channel", + "service_execution_role_arn": "arn:aws:iam::123456789012:role/test-role", + "stream_configuration_list": [ ChannelStreamConfiguration( stream_arn="arn:aws:kinesis:us-east-1:123456789012:stream/test-stream", record_configuration=RecordConfiguration(record_format_type="JSON"), ) ], - ), + }, { "endpoint": { "url": "https://123456789012.control-kinesis.us-east-1.api.aws", @@ -3864,16 +3852,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.create_channel, - CreateChannelInput( - channel_name="test-channel", - service_execution_role_arn="arn:aws:iam::123456789012:role/test-role", - stream_configuration_list=[ + { + "channel_name": "test-channel", + "service_execution_role_arn": "arn:aws:iam::123456789012:role/test-role", + "stream_configuration_list": [ ChannelStreamConfiguration( stream_arn="arn:aws:kinesis:us-east-1:123456789012:stream/test-stream", record_configuration=RecordConfiguration(record_format_type="JSON"), ) ], - ), + }, { "endpoint": { "url": "https://123456789012.control-kinesis-fips.us-east-1.api.aws", @@ -3895,16 +3883,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncKinesisClient.create_channel, - CreateChannelInput( - channel_name="test-channel", - service_execution_role_arn="arn:aws:iam::123456789012:role/test-role", - stream_configuration_list=[ + { + "channel_name": "test-channel", + "service_execution_role_arn": "arn:aws:iam::123456789012:role/test-role", + "stream_configuration_list": [ ChannelStreamConfiguration( stream_arn="arn:aws:kinesis:us-east-1:123456789012:stream/test-stream", record_configuration=RecordConfiguration(record_format_type="JSON"), ) ], - ), + }, {"endpoint": {"url": "https://kinesis.us-east-1.amazonaws.com"}}, id="CreateChannel: account id endpoint mode disabled falls back to regional endpoint", ), @@ -3922,16 +3910,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_fips_endpoint": True, }, AsyncKinesisClient.create_channel, - CreateChannelInput( - channel_name="test-channel", - service_execution_role_arn="arn:aws:iam::123456789012:role/test-role", - stream_configuration_list=[ + { + "channel_name": "test-channel", + "service_execution_role_arn": "arn:aws:iam::123456789012:role/test-role", + "stream_configuration_list": [ ChannelStreamConfiguration( stream_arn="arn:aws:kinesis:us-east-1:123456789012:stream/test-stream", record_configuration=RecordConfiguration(record_format_type="JSON"), ) ], - ), + }, {"endpoint": {"url": "https://kinesis-fips.us-east-1.amazonaws.com"}}, id="CreateChannel: account id endpoint mode disabled with FIPS falls back to regional FIPS endpoint", ), @@ -3949,16 +3937,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.create_channel, - CreateChannelInput( - channel_name="test-channel", - service_execution_role_arn="arn:aws:iam::123456789012:role/test-role", - stream_configuration_list=[ + { + "channel_name": "test-channel", + "service_execution_role_arn": "arn:aws:iam::123456789012:role/test-role", + "stream_configuration_list": [ ChannelStreamConfiguration( stream_arn="arn:aws:kinesis:us-east-1:123456789012:stream/test-stream", record_configuration=RecordConfiguration(record_format_type="JSON"), ) ], - ), + }, {"endpoint": {"url": "https://kinesis.us-east-1.api.aws"}}, id="CreateChannel: account id endpoint mode disabled with DualStack falls back to regional DualStack endpoint", ), @@ -3977,16 +3965,16 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.create_channel, - CreateChannelInput( - channel_name="test-channel", - service_execution_role_arn="arn:aws:iam::123456789012:role/test-role", - stream_configuration_list=[ + { + "channel_name": "test-channel", + "service_execution_role_arn": "arn:aws:iam::123456789012:role/test-role", + "stream_configuration_list": [ ChannelStreamConfiguration( stream_arn="arn:aws:kinesis:us-east-1:123456789012:stream/test-stream", record_configuration=RecordConfiguration(record_format_type="JSON"), ) ], - ), + }, {"endpoint": {"url": "https://kinesis-fips.us-east-1.api.aws"}}, id="CreateChannel: account id endpoint mode disabled with FIPS and DualStack falls back to regional FIPS DualStack endpoint", ), @@ -4003,7 +3991,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "preferred", }, AsyncKinesisClient.list_channels, - ListChannelsInput(), + {}, { "endpoint": { "url": "https://123456789012.control-kinesis.us-west-2.amazonaws.com", @@ -4027,7 +4015,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncKinesisClient.list_channels, - ListChannelsInput(), + {}, { "endpoint": { "url": "https://123456789012.control-kinesis-fips.us-west-2.api.aws", @@ -4049,7 +4037,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "account_id_endpoint_mode": "disabled", }, AsyncKinesisClient.list_channels, - ListChannelsInput(), + {}, {"endpoint": {"url": "https://kinesis.us-west-2.amazonaws.com"}}, id="ListChannels: account id endpoint mode disabled falls back to regional endpoint", ), @@ -4059,8 +4047,8 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> @mark.parametrize(("config", "operation", "input", "expect"), CLIENT_CASES) async def test_endpoint_client( config: dict[str, Any], - operation: Callable[[AsyncKinesisClient, Any], Awaitable[Any]], - input: Any, + operation: Callable[Concatenate[AsyncKinesisClient, ...], Awaitable[Any]], + input: dict[str, Any], expect: dict[str, Any], ) -> None: await check_client_case_async( diff --git a/clients/aws-sdk-kms/pyproject.toml b/clients/aws-sdk-kms/pyproject.toml index 861dfc7c4..4ab523a52 100644 --- a/clients/aws-sdk-kms/pyproject.toml +++ b/clients/aws-sdk-kms/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-kms/src/aws_sdk_kms/_private/schemas.py b/clients/aws-sdk-kms/src/aws_sdk_kms/_private/schemas.py index a09f56f8b..e30c14337 100644 --- a/clients/aws-sdk-kms/src/aws_sdk_kms/_private/schemas.py +++ b/clients/aws-sdk-kms/src/aws_sdk_kms/_private/schemas.py @@ -354,7 +354,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-kms/src/aws_sdk_kms/aio/client.py b/clients/aws-sdk-kms/src/aws_sdk_kms/aio/client.py index 2019f4977..f26e9906b 100644 --- a/clients/aws-sdk-kms/src/aws_sdk_kms/aio/client.py +++ b/clients/aws-sdk-kms/src/aws_sdk_kms/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,116 +20,60 @@ if TYPE_CHECKING: from ..models import ( - CancelKeyDeletionInput, CancelKeyDeletionOutput, - ConnectCustomKeyStoreInput, ConnectCustomKeyStoreOutput, - CreateAliasInput, CreateAliasOutput, - CreateCustomKeyStoreInput, CreateCustomKeyStoreOutput, - CreateGrantInput, CreateGrantOutput, - CreateKeyInput, CreateKeyOutput, - DecapsulateInput, DecapsulateOutput, - DecryptInput, DecryptOutput, - DeleteAliasInput, DeleteAliasOutput, - DeleteCustomKeyStoreInput, DeleteCustomKeyStoreOutput, - DeleteImportedKeyMaterialInput, DeleteImportedKeyMaterialOutput, - DeriveSharedSecretInput, DeriveSharedSecretOutput, - DescribeCustomKeyStoresInput, DescribeCustomKeyStoresOutput, - DescribeKeyInput, DescribeKeyOutput, - DisableKeyInput, DisableKeyOutput, - DisableKeyRotationInput, DisableKeyRotationOutput, - DisconnectCustomKeyStoreInput, DisconnectCustomKeyStoreOutput, - EnableKeyInput, EnableKeyOutput, - EnableKeyRotationInput, EnableKeyRotationOutput, - EncapsulateInput, EncapsulateOutput, - EncryptInput, EncryptOutput, - GenerateDataKeyInput, GenerateDataKeyOutput, - GenerateDataKeyPairInput, GenerateDataKeyPairOutput, - GenerateDataKeyPairWithoutPlaintextInput, GenerateDataKeyPairWithoutPlaintextOutput, - GenerateDataKeyWithoutPlaintextInput, GenerateDataKeyWithoutPlaintextOutput, - GenerateMacInput, GenerateMacOutput, - GenerateRandomInput, GenerateRandomOutput, - GetKeyLastUsageInput, GetKeyLastUsageOutput, - GetKeyPolicyInput, GetKeyPolicyOutput, - GetKeyRotationStatusInput, GetKeyRotationStatusOutput, - GetParametersForImportInput, GetParametersForImportOutput, - GetPublicKeyInput, GetPublicKeyOutput, - ImportKeyMaterialInput, ImportKeyMaterialOutput, - ListAliasesInput, ListAliasesOutput, - ListGrantsInput, ListGrantsOutput, - ListKeyPoliciesInput, ListKeyPoliciesOutput, - ListKeyRotationsInput, ListKeyRotationsOutput, - ListKeysInput, ListKeysOutput, - ListResourceTagsInput, ListResourceTagsOutput, - ListRetirableGrantsInput, ListRetirableGrantsOutput, - PutKeyPolicyInput, PutKeyPolicyOutput, - ReEncryptInput, ReEncryptOutput, - ReplicateKeyInput, ReplicateKeyOutput, - RetireGrantInput, RetireGrantOutput, - RevokeGrantInput, RevokeGrantOutput, - RotateKeyOnDemandInput, RotateKeyOnDemandOutput, - ScheduleKeyDeletionInput, ScheduleKeyDeletionOutput, - SignInput, SignOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAliasInput, UpdateAliasOutput, - UpdateCustomKeyStoreInput, UpdateCustomKeyStoreOutput, - UpdateKeyDescriptionInput, UpdateKeyDescriptionOutput, - UpdatePrimaryRegionInput, UpdatePrimaryRegionOutput, - VerifyInput, - VerifyMacInput, VerifyMacOutput, VerifyOutput, ) @@ -257,10 +201,24 @@ class AsyncKMSClient(AsyncClient[AsyncKMSConfig]): - GenerateDataKeyWithoutPlaintext """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def cancel_key_deletion( - self, input: CancelKeyDeletionInput, plugins: list[Plugin] | None = None + self, + request: _models.CancelKeyDeletionInput | _models.CancelKeyDeletionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelKeyDeletionOutput: ... + + @_overload + async def cancel_key_deletion( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelKeyDeletionInputDict], ) -> CancelKeyDeletionOutput: """ Cancels the deletion of a KMS key. When this operation succeeds, the key @@ -291,8 +249,6 @@ async def cancel_key_deletion( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CancelKeyDeletionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -302,10 +258,34 @@ async def cancel_key_deletion( Returns: An instance of `CancelKeyDeletionOutput`. """ - return await self._invoke(input, _models.CANCEL_KEY_DELETION, [], plugins) + async def cancel_key_deletion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelKeyDeletionOutput: + return await self._invoke( + self._select_input(_models.CANCEL_KEY_DELETION, args, kwargs), + _models.CANCEL_KEY_DELETION, + [], + plugins, + ) + + @_overload + async def connect_custom_key_store( + self, + request: _models.ConnectCustomKeyStoreInput + | _models.ConnectCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ConnectCustomKeyStoreOutput: ... + + @_overload async def connect_custom_key_store( - self, input: ConnectCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConnectCustomKeyStoreInputDict], ) -> ConnectCustomKeyStoreOutput: """ Connects or reconnects a [custom key @@ -412,8 +392,6 @@ async def connect_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ConnectCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -423,10 +401,33 @@ async def connect_custom_key_store( Returns: An instance of `ConnectCustomKeyStoreOutput`. """ - return await self._invoke(input, _models.CONNECT_CUSTOM_KEY_STORE, [], plugins) + async def connect_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ConnectCustomKeyStoreOutput: + return await self._invoke( + self._select_input(_models.CONNECT_CUSTOM_KEY_STORE, args, kwargs), + _models.CONNECT_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + async def create_alias( + self, + request: _models.CreateAliasInput | _models.CreateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAliasOutput: ... + + @_overload async def create_alias( - self, input: CreateAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAliasInputDict], ) -> CreateAliasOutput: """ Creates a friendly name for a KMS key. @@ -492,8 +493,6 @@ async def create_alias( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CreateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -503,10 +502,34 @@ async def create_alias( Returns: An instance of `CreateAliasOutput`. """ - return await self._invoke(input, _models.CREATE_ALIAS, [], plugins) + async def create_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAliasOutput: + return await self._invoke( + self._select_input(_models.CREATE_ALIAS, args, kwargs), + _models.CREATE_ALIAS, + [], + plugins, + ) + + @_overload + async def create_custom_key_store( + self, + request: _models.CreateCustomKeyStoreInput + | _models.CreateCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomKeyStoreOutput: ... + + @_overload async def create_custom_key_store( - self, input: CreateCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomKeyStoreInputDict], ) -> CreateCustomKeyStoreOutput: """ Creates a [custom key @@ -604,8 +627,6 @@ async def create_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CreateCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -615,10 +636,33 @@ async def create_custom_key_store( Returns: An instance of `CreateCustomKeyStoreOutput`. """ - return await self._invoke(input, _models.CREATE_CUSTOM_KEY_STORE, [], plugins) + async def create_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomKeyStoreOutput: + return await self._invoke( + self._select_input(_models.CREATE_CUSTOM_KEY_STORE, args, kwargs), + _models.CREATE_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + async def create_grant( + self, + request: _models.CreateGrantInput | _models.CreateGrantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGrantOutput: ... + + @_overload async def create_grant( - self, input: CreateGrantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGrantInputDict], ) -> CreateGrantOutput: """ Adds a grant to a KMS key. @@ -692,8 +736,6 @@ async def create_grant( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CreateGrantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -703,10 +745,33 @@ async def create_grant( Returns: An instance of `CreateGrantOutput`. """ - return await self._invoke(input, _models.CREATE_GRANT, [], plugins) + async def create_grant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGrantOutput: + return await self._invoke( + self._select_input(_models.CREATE_GRANT, args, kwargs), + _models.CREATE_GRANT, + [], + plugins, + ) + + @_overload + async def create_key( + self, + request: _models.CreateKeyInput | _models.CreateKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKeyOutput: ... + + @_overload async def create_key( - self, input: CreateKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKeyInputDict], ) -> CreateKeyOutput: """ Creates a unique customer managed [KMS @@ -734,167 +799,172 @@ async def create_key( Symmetric encryption KMS key - : By default, `CreateKey` creates a symmetric encryption KMS key with - key material that KMS generates. This is the basic and most widely - used type of KMS key, and provides the best performance. - - To create a symmetric encryption KMS key, you don't need to specify - any parameters. The default value for `KeySpec`, `SYMMETRIC_DEFAULT`, - the default value for `KeyUsage`, `ENCRYPT_DECRYPT`, and the default - value for `Origin`, `AWS_KMS`, create a symmetric encryption KMS key - with KMS key material. - - If you need a key for basic encryption and decryption or you are - creating a KMS key to protect your resources in an Amazon Web Services - service, create a symmetric encryption KMS key. The key material in a - symmetric encryption key never leaves KMS unencrypted. You can use a - symmetric encryption KMS key to encrypt and decrypt data up to 4,096 - bytes, but they are typically used to generate data keys and data keys - pairs. For details, see GenerateDataKey and GenerateDataKeyPair. + : By default, `CreateKey` creates a symmetric encryption KMS key with + key material that KMS generates. This is the basic and most widely + used type of KMS key, and provides the best performance. + + To create a symmetric encryption KMS key, you don't need to specify + any parameters. The default value for `KeySpec`, + `SYMMETRIC_DEFAULT`, the default value for `KeyUsage`, + `ENCRYPT_DECRYPT`, and the default value for `Origin`, `AWS_KMS`, + create a symmetric encryption KMS key with KMS key material. + + If you need a key for basic encryption and decryption or you are + creating a KMS key to protect your resources in an Amazon Web + Services service, create a symmetric encryption KMS key. The key + material in a symmetric encryption key never leaves KMS unencrypted. + You can use a symmetric encryption KMS key to encrypt and decrypt + data up to 4,096 bytes, but they are typically used to generate data + keys and data keys pairs. For details, see GenerateDataKey and + GenerateDataKeyPair. Asymmetric KMS keys - : To create an asymmetric KMS key, use the `KeySpec` parameter to - specify the type of key material in the KMS key. Then, use the - `KeyUsage` parameter to determine whether the KMS key will be used to - encrypt and decrypt or sign and verify. You can't change these - properties after the KMS key is created. - - Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key - pair, ML-DSA key pair or an SM2 key pair (China Regions only). The - private key in an asymmetric KMS key never leaves KMS unencrypted. - However, you can use the GetPublicKey operation to download the public - key so it can be used outside of KMS. Each KMS key can have only one - key usage. KMS keys with RSA key pairs can be used to encrypt and - decrypt data or sign and verify messages (but not both). KMS keys with - NIST-standard ECC key pairs can be used to sign and verify messages or - derive shared secrets (but not both). KMS keys with `ECC_SECG_P256K1` - can be used only to sign and verify messages. KMS keys with ML-DSA key - pairs can be used to sign and verify messages. KMS keys with SM2 key - pairs (China Regions only) can be used to either encrypt and decrypt - data, sign and verify messages, or derive shared secrets (you must - choose one key usage type). For information about asymmetric KMS keys, - see [Asymmetric KMS - keys](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) - in the *Key Management Service Developer Guide*. + : To create an asymmetric KMS key, use the `KeySpec` parameter to + specify the type of key material in the KMS key. Then, use the + `KeyUsage` parameter to determine whether the KMS key will be used + to encrypt and decrypt or sign and verify. You can't change these + properties after the KMS key is created. + + Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) + key pair, ML-DSA key pair or an SM2 key pair (China Regions only). + The private key in an asymmetric KMS key never leaves KMS + unencrypted. However, you can use the GetPublicKey operation to + download the public key so it can be used outside of KMS. Each KMS + key can have only one key usage. KMS keys with RSA key pairs can be + used to encrypt and decrypt data or sign and verify messages (but + not both). KMS keys with NIST-standard ECC key pairs can be used to + sign and verify messages or derive shared secrets (but not both). + KMS keys with `ECC_SECG_P256K1` can be used only to sign and verify + messages. KMS keys with ML-DSA key pairs can be used to sign and + verify messages. KMS keys with SM2 key pairs (China Regions only) + can be used to either encrypt and decrypt data, sign and verify + messages, or derive shared secrets (you must choose one key usage + type). For information about asymmetric KMS keys, see [Asymmetric + KMS + keys](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + in the *Key Management Service Developer Guide*. HMAC KMS key - : To create an HMAC KMS key, set the `KeySpec` parameter to a key spec - value for HMAC KMS keys. Then set the `KeyUsage` parameter to - `GENERATE_VERIFY_MAC`. You must set the key usage even though - `GENERATE_VERIFY_MAC` is the only valid key usage value for HMAC KMS - keys. You can't change these properties after the KMS key is created. + : To create an HMAC KMS key, set the `KeySpec` parameter to a key spec + value for HMAC KMS keys. Then set the `KeyUsage` parameter to + `GENERATE_VERIFY_MAC`. You must set the key usage even though + `GENERATE_VERIFY_MAC` is the only valid key usage value for HMAC KMS + keys. You can't change these properties after the KMS key is + created. - HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You - can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) - HMAC codes for messages up to 4096 bytes. + HMAC KMS keys are symmetric keys that never leave KMS unencrypted. + You can use HMAC keys to generate (GenerateMac) and verify + (VerifyMac) HMAC codes for messages up to 4096 bytes. Multi-Region primary keys - : To create a multi-Region *primary key* in the local Amazon Web - Services Region, use the `MultiRegion` parameter with a value of - `True`. To create a multi-Region *replica key*, that is, a KMS key - with the same key ID and key material as a primary key, but in a - different Amazon Web Services Region, use the ReplicateKey operation. - To change a replica key to a primary key, and its primary key to a - replica key, use the UpdatePrimaryRegion operation. - - You can create multi-Region KMS keys for all supported KMS key types: - symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption - KMS keys, and asymmetric signing KMS keys. You can also create - multi-Region keys with imported key material. However, you can't - create multi-Region keys in a custom key store. - - This operation supports *multi-Region keys*, an KMS feature that lets - you create multiple interoperable KMS keys in different Amazon Web - Services Regions. Because these KMS keys have the same key ID, key - material, and other metadata, you can use them interchangeably to - encrypt data in one Amazon Web Services Region and decrypt it in a - different Amazon Web Services Region without re-encrypting the data or - making a cross-Region call. For more information about multi-Region - keys, see [Multi-Region keys in - KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) - in the *Key Management Service Developer Guide*. + : To create a multi-Region *primary key* in the local Amazon Web + Services Region, use the `MultiRegion` parameter with a value of + `True`. To create a multi-Region *replica key*, that is, a KMS key + with the same key ID and key material as a primary key, but in a + different Amazon Web Services Region, use the ReplicateKey + operation. To change a replica key to a primary key, and its primary + key to a replica key, use the UpdatePrimaryRegion operation. + + You can create multi-Region KMS keys for all supported KMS key + types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric + encryption KMS keys, and asymmetric signing KMS keys. You can also + create multi-Region keys with imported key material. However, you + can't create multi-Region keys in a custom key store. + + This operation supports *multi-Region keys*, an KMS feature that + lets you create multiple interoperable KMS keys in different Amazon + Web Services Regions. Because these KMS keys have the same key ID, + key material, and other metadata, you can use them interchangeably + to encrypt data in one Amazon Web Services Region and decrypt it in + a different Amazon Web Services Region without re-encrypting the + data or making a cross-Region call. For more information about + multi-Region keys, see [Multi-Region keys in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. Imported key material - : To import your own key material into a KMS key, begin by creating a - KMS key with no key material. To do this, use the `Origin` parameter - of `CreateKey` with a value of `EXTERNAL`. Next, use - GetParametersForImport operation to get a public key and import token. - Use the wrapping public key to encrypt your key material. Then, use - ImportKeyMaterial with your import token to import the key material. - For step-by-step instructions, see [Importing Key - Material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) - in the Key Management Service Developer Guide . - - You can import key material into KMS keys of all supported KMS key - types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric - encryption KMS keys, and asymmetric signing KMS keys. You can also - create multi-Region keys with imported key material. However, you - can't import key material into a KMS key in a custom key store. - - To create a multi-Region primary key with imported key material, use - the `Origin` parameter of `CreateKey` with a value of `EXTERNAL` and - the `MultiRegion` parameter with a value of `True`. To create replicas - of the multi-Region primary key, use the ReplicateKey operation. For - instructions, see [Importing key material step - 1](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html). - For more information about multi-Region keys, see [Multi-Region keys - in - KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) - in the *Key Management Service Developer Guide*. + : To import your own key material into a KMS key, begin by creating a + KMS key with no key material. To do this, use the `Origin` parameter + of `CreateKey` with a value of `EXTERNAL`. Next, use + GetParametersForImport operation to get a public key and import + token. Use the wrapping public key to encrypt your key material. + Then, use ImportKeyMaterial with your import token to import the key + material. For step-by-step instructions, see [Importing Key + Material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) + in the Key Management Service Developer Guide . + + You can import key material into KMS keys of all supported KMS key + types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric + encryption KMS keys, and asymmetric signing KMS keys. You can also + create multi-Region keys with imported key material. However, you + can't import key material into a KMS key in a custom key store. + + To create a multi-Region primary key with imported key material, use + the `Origin` parameter of `CreateKey` with a value of `EXTERNAL` and + the `MultiRegion` parameter with a value of `True`. To create + replicas of the multi-Region primary key, use the ReplicateKey + operation. For instructions, see [Importing key material step + 1](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html). + For more information about multi-Region keys, see [Multi-Region keys + in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. Custom key store - : A [custom key - store](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) - lets you protect your Amazon Web Services resources using keys in a - backing key store that you own and manage. When you request a - cryptographic operation with a KMS key in a custom key store, the - operation is performed in the backing key store using its - cryptographic keys. - - KMS supports [CloudHSM key - stores](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html) - backed by an CloudHSM cluster and [external key - stores](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html) - backed by an external key manager outside of Amazon Web Services. When - you create a KMS key in an CloudHSM key store, KMS generates an - encryption key in the CloudHSM cluster and associates it with the KMS - key. When you create a KMS key in an external key store, you specify - an existing encryption key in the external key manager. + : A [custom key + store](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) + lets you protect your Amazon Web Services resources using keys in a + backing key store that you own and manage. When you request a + cryptographic operation with a KMS key in a custom key store, the + operation is performed in the backing key store using its + cryptographic keys. + + KMS supports [CloudHSM key + stores](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html) + backed by an CloudHSM cluster and [external key + stores](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html) + backed by an external key manager outside of Amazon Web Services. + When you create a KMS key in an CloudHSM key store, KMS generates an + encryption key in the CloudHSM cluster and associates it with the + KMS key. When you create a KMS key in an external key store, you + specify an existing encryption key in the external key manager. - Note: - Some external key managers provide a simpler method for creating a KMS - key in an external key store. For details, see your external key + Note: + Some external key managers provide a simpler method for creating a + KMS key in an external key store. For details, see your external key manager documentation. - Before you create a KMS key in a custom key store, the - `ConnectionState` of the key store must be `CONNECTED`. To connect the - custom key store, use the ConnectCustomKeyStore operation. To find the - `ConnectionState`, use the DescribeCustomKeyStores operation. - - To create a KMS key in a custom key store, use the `CustomKeyStoreId`. - Use the default `KeySpec` value, `SYMMETRIC_DEFAULT`, and the default - `KeyUsage` value, `ENCRYPT_DECRYPT` to create a symmetric encryption - key. No other key type is supported in a custom key store. - - To create a KMS key in an [CloudHSM key - store](https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html), - use the `Origin` parameter with a value of `AWS_CLOUDHSM`. The - CloudHSM cluster that is associated with the custom key store must - have at least two active HSMs in different Availability Zones in the - Amazon Web Services Region. - - To create a KMS key in an [external key - store](https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html), - use the `Origin` parameter with a value of `EXTERNAL_KEY_STORE` and an - `XksKeyId` parameter that identifies an existing external key. + Before you create a KMS key in a custom key store, the + `ConnectionState` of the key store must be `CONNECTED`. To connect + the custom key store, use the ConnectCustomKeyStore operation. To + find the `ConnectionState`, use the DescribeCustomKeyStores + operation. + + To create a KMS key in a custom key store, use the + `CustomKeyStoreId`. Use the default `KeySpec` value, + `SYMMETRIC_DEFAULT`, and the default `KeyUsage` value, + `ENCRYPT_DECRYPT` to create a symmetric encryption key. No other key + type is supported in a custom key store. + + To create a KMS key in an [CloudHSM key + store](https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html), + use the `Origin` parameter with a value of `AWS_CLOUDHSM`. The + CloudHSM cluster that is associated with the custom key store must + have at least two active HSMs in different Availability Zones in the + Amazon Web Services Region. + + To create a KMS key in an [external key + store](https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html), + use the `Origin` parameter with a value of `EXTERNAL_KEY_STORE` and + an `XksKeyId` parameter that identifies an existing external key. - Note: - Some external key managers provide a simpler method for creating a KMS - key in an external key store. For details, see your external key + Note: + Some external key managers provide a simpler method for creating a + KMS key in an external key store. For details, see your external key manager documentation. **Cross-account use**: No. You cannot use this operation to create a KMS @@ -922,8 +992,6 @@ async def create_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CreateKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -933,10 +1001,33 @@ async def create_key( Returns: An instance of `CreateKeyOutput`. """ - return await self._invoke(input, _models.CREATE_KEY, [], plugins) + async def create_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKeyOutput: + return await self._invoke( + self._select_input(_models.CREATE_KEY, args, kwargs), + _models.CREATE_KEY, + [], + plugins, + ) + + @_overload + async def decapsulate( + self, + request: _models.DecapsulateInput | _models.DecapsulateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DecapsulateOutput: ... + + @_overload async def decapsulate( - self, input: DecapsulateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DecapsulateInputDict], ) -> DecapsulateOutput: """ Recovers the shared secret that was encapsulated with the public key of @@ -996,8 +1087,6 @@ async def decapsulate( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DecapsulateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1007,10 +1096,33 @@ async def decapsulate( Returns: An instance of `DecapsulateOutput`. """ - return await self._invoke(input, _models.DECAPSULATE, [], plugins) + async def decapsulate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DecapsulateOutput: + return await self._invoke( + self._select_input(_models.DECAPSULATE, args, kwargs), + _models.DECAPSULATE, + [], + plugins, + ) + + @_overload async def decrypt( - self, input: DecryptInput, plugins: list[Plugin] | None = None + self, + request: _models.DecryptInput | _models.DecryptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DecryptOutput: ... + + @_overload + async def decrypt( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DecryptInputDict], ) -> DecryptOutput: """ Decrypts ciphertext that was encrypted by a KMS key using any of the @@ -1118,8 +1230,6 @@ async def decrypt( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DecryptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1129,10 +1239,33 @@ async def decrypt( Returns: An instance of `DecryptOutput`. """ - return await self._invoke(input, _models.DECRYPT, [], plugins) + async def decrypt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DecryptOutput: + return await self._invoke( + self._select_input(_models.DECRYPT, args, kwargs), + _models.DECRYPT, + [], + plugins, + ) + + @_overload + async def delete_alias( + self, + request: _models.DeleteAliasInput | _models.DeleteAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAliasOutput: ... + + @_overload async def delete_alias( - self, input: DeleteAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAliasInputDict], ) -> DeleteAliasOutput: """ Deletes the specified alias. @@ -1181,8 +1314,6 @@ async def delete_alias( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DeleteAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1192,10 +1323,34 @@ async def delete_alias( Returns: An instance of `DeleteAliasOutput`. """ - return await self._invoke(input, _models.DELETE_ALIAS, [], plugins) + async def delete_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAliasOutput: + return await self._invoke( + self._select_input(_models.DELETE_ALIAS, args, kwargs), + _models.DELETE_ALIAS, + [], + plugins, + ) + + @_overload + async def delete_custom_key_store( + self, + request: _models.DeleteCustomKeyStoreInput + | _models.DeleteCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomKeyStoreOutput: ... + + @_overload async def delete_custom_key_store( - self, input: DeleteCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomKeyStoreInputDict], ) -> DeleteCustomKeyStoreOutput: """ Deletes a [custom key @@ -1262,8 +1417,6 @@ async def delete_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DeleteCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1273,10 +1426,34 @@ async def delete_custom_key_store( Returns: An instance of `DeleteCustomKeyStoreOutput`. """ - return await self._invoke(input, _models.DELETE_CUSTOM_KEY_STORE, [], plugins) + async def delete_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomKeyStoreOutput: + return await self._invoke( + self._select_input(_models.DELETE_CUSTOM_KEY_STORE, args, kwargs), + _models.DELETE_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + async def delete_imported_key_material( + self, + request: _models.DeleteImportedKeyMaterialInput + | _models.DeleteImportedKeyMaterialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteImportedKeyMaterialOutput: ... + + @_overload async def delete_imported_key_material( - self, input: DeleteImportedKeyMaterialInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteImportedKeyMaterialInputDict], ) -> DeleteImportedKeyMaterialOutput: """ Deletes key material that was previously imported. This operation makes @@ -1325,8 +1502,6 @@ async def delete_imported_key_material( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DeleteImportedKeyMaterialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1336,12 +1511,33 @@ async def delete_imported_key_material( Returns: An instance of `DeleteImportedKeyMaterialOutput`. """ + + async def delete_imported_key_material( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteImportedKeyMaterialOutput: return await self._invoke( - input, _models.DELETE_IMPORTED_KEY_MATERIAL, [], plugins + self._select_input(_models.DELETE_IMPORTED_KEY_MATERIAL, args, kwargs), + _models.DELETE_IMPORTED_KEY_MATERIAL, + [], + plugins, ) + @_overload + async def derive_shared_secret( + self, + request: _models.DeriveSharedSecretInput | _models.DeriveSharedSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeriveSharedSecretOutput: ... + + @_overload async def derive_shared_secret( - self, input: DeriveSharedSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeriveSharedSecretInputDict], ) -> DeriveSharedSecretOutput: """ Derives a shared secret using a key agreement algorithm. @@ -1436,8 +1632,6 @@ async def derive_shared_secret( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DeriveSharedSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1447,10 +1641,34 @@ async def derive_shared_secret( Returns: An instance of `DeriveSharedSecretOutput`. """ - return await self._invoke(input, _models.DERIVE_SHARED_SECRET, [], plugins) + async def derive_shared_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeriveSharedSecretOutput: + return await self._invoke( + self._select_input(_models.DERIVE_SHARED_SECRET, args, kwargs), + _models.DERIVE_SHARED_SECRET, + [], + plugins, + ) + + @_overload + async def describe_custom_key_stores( + self, + request: _models.DescribeCustomKeyStoresInput + | _models.DescribeCustomKeyStoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCustomKeyStoresOutput: ... + + @_overload async def describe_custom_key_stores( - self, input: DescribeCustomKeyStoresInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCustomKeyStoresInputDict], ) -> DescribeCustomKeyStoresOutput: """ Gets information about [custom key @@ -1516,8 +1734,6 @@ async def describe_custom_key_stores( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DescribeCustomKeyStoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1527,12 +1743,33 @@ async def describe_custom_key_stores( Returns: An instance of `DescribeCustomKeyStoresOutput`. """ + + async def describe_custom_key_stores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCustomKeyStoresOutput: return await self._invoke( - input, _models.DESCRIBE_CUSTOM_KEY_STORES, [], plugins + self._select_input(_models.DESCRIBE_CUSTOM_KEY_STORES, args, kwargs), + _models.DESCRIBE_CUSTOM_KEY_STORES, + [], + plugins, ) + @_overload + async def describe_key( + self, + request: _models.DescribeKeyInput | _models.DescribeKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKeyOutput: ... + + @_overload async def describe_key( - self, input: DescribeKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKeyInputDict], ) -> DescribeKeyOutput: """ Provides detailed information about a KMS key. You can run `DescribeKey` @@ -1610,8 +1847,6 @@ async def describe_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DescribeKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1621,10 +1856,33 @@ async def describe_key( Returns: An instance of `DescribeKeyOutput`. """ - return await self._invoke(input, _models.DESCRIBE_KEY, [], plugins) + async def describe_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKeyOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_KEY, args, kwargs), + _models.DESCRIBE_KEY, + [], + plugins, + ) + + @_overload + async def disable_key( + self, + request: _models.DisableKeyInput | _models.DisableKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableKeyOutput: ... + + @_overload async def disable_key( - self, input: DisableKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableKeyInputDict], ) -> DisableKeyOutput: """ Sets the state of a KMS key to disabled. This change temporarily @@ -1651,8 +1909,6 @@ async def disable_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DisableKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1662,10 +1918,33 @@ async def disable_key( Returns: An instance of `DisableKeyOutput`. """ - return await self._invoke(input, _models.DISABLE_KEY, [], plugins) + async def disable_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableKeyOutput: + return await self._invoke( + self._select_input(_models.DISABLE_KEY, args, kwargs), + _models.DISABLE_KEY, + [], + plugins, + ) + + @_overload + async def disable_key_rotation( + self, + request: _models.DisableKeyRotationInput | _models.DisableKeyRotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableKeyRotationOutput: ... + + @_overload async def disable_key_rotation( - self, input: DisableKeyRotationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableKeyRotationInputDict], ) -> DisableKeyRotationOutput: """ Disables [automatic rotation of the key @@ -1728,8 +2007,6 @@ async def disable_key_rotation( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DisableKeyRotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1739,10 +2016,34 @@ async def disable_key_rotation( Returns: An instance of `DisableKeyRotationOutput`. """ - return await self._invoke(input, _models.DISABLE_KEY_ROTATION, [], plugins) + async def disable_key_rotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableKeyRotationOutput: + return await self._invoke( + self._select_input(_models.DISABLE_KEY_ROTATION, args, kwargs), + _models.DISABLE_KEY_ROTATION, + [], + plugins, + ) + + @_overload + async def disconnect_custom_key_store( + self, + request: _models.DisconnectCustomKeyStoreInput + | _models.DisconnectCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisconnectCustomKeyStoreOutput: ... + + @_overload async def disconnect_custom_key_store( - self, input: DisconnectCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisconnectCustomKeyStoreInputDict], ) -> DisconnectCustomKeyStoreOutput: """ Disconnects the [custom key @@ -1799,8 +2100,6 @@ async def disconnect_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DisconnectCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1810,12 +2109,33 @@ async def disconnect_custom_key_store( Returns: An instance of `DisconnectCustomKeyStoreOutput`. """ + + async def disconnect_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisconnectCustomKeyStoreOutput: return await self._invoke( - input, _models.DISCONNECT_CUSTOM_KEY_STORE, [], plugins + self._select_input(_models.DISCONNECT_CUSTOM_KEY_STORE, args, kwargs), + _models.DISCONNECT_CUSTOM_KEY_STORE, + [], + plugins, ) + @_overload async def enable_key( - self, input: EnableKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.EnableKeyInput | _models.EnableKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableKeyOutput: ... + + @_overload + async def enable_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableKeyInputDict], ) -> EnableKeyOutput: """ Sets the key state of a KMS key to enabled. This allows you to use the @@ -1841,8 +2161,6 @@ async def enable_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `EnableKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1852,10 +2170,33 @@ async def enable_key( Returns: An instance of `EnableKeyOutput`. """ - return await self._invoke(input, _models.ENABLE_KEY, [], plugins) + async def enable_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableKeyOutput: + return await self._invoke( + self._select_input(_models.ENABLE_KEY, args, kwargs), + _models.ENABLE_KEY, + [], + plugins, + ) + + @_overload + async def enable_key_rotation( + self, + request: _models.EnableKeyRotationInput | _models.EnableKeyRotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableKeyRotationOutput: ... + + @_overload async def enable_key_rotation( - self, input: EnableKeyRotationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableKeyRotationInputDict], ) -> EnableKeyRotationOutput: """ Enables [automatic rotation of the key @@ -1944,8 +2285,6 @@ async def enable_key_rotation( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `EnableKeyRotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1955,10 +2294,33 @@ async def enable_key_rotation( Returns: An instance of `EnableKeyRotationOutput`. """ - return await self._invoke(input, _models.ENABLE_KEY_ROTATION, [], plugins) + async def enable_key_rotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableKeyRotationOutput: + return await self._invoke( + self._select_input(_models.ENABLE_KEY_ROTATION, args, kwargs), + _models.ENABLE_KEY_ROTATION, + [], + plugins, + ) + + @_overload + async def encapsulate( + self, + request: _models.EncapsulateInput | _models.EncapsulateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EncapsulateOutput: ... + + @_overload async def encapsulate( - self, input: EncapsulateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EncapsulateInputDict], ) -> EncapsulateOutput: """ Generates a shared secret and its encapsulated (ciphertext) form using @@ -2005,8 +2367,6 @@ async def encapsulate( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `EncapsulateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2016,10 +2376,33 @@ async def encapsulate( Returns: An instance of `EncapsulateOutput`. """ - return await self._invoke(input, _models.ENCAPSULATE, [], plugins) + async def encapsulate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EncapsulateOutput: + return await self._invoke( + self._select_input(_models.ENCAPSULATE, args, kwargs), + _models.ENCAPSULATE, + [], + plugins, + ) + + @_overload + async def encrypt( + self, + request: _models.EncryptInput | _models.EncryptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EncryptOutput: ... + + @_overload async def encrypt( - self, input: EncryptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EncryptInputDict], ) -> EncryptOutput: """ Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a @@ -2110,8 +2493,6 @@ async def encrypt( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `EncryptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2121,10 +2502,33 @@ async def encrypt( Returns: An instance of `EncryptOutput`. """ - return await self._invoke(input, _models.ENCRYPT, [], plugins) + async def encrypt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EncryptOutput: + return await self._invoke( + self._select_input(_models.ENCRYPT, args, kwargs), + _models.ENCRYPT, + [], + plugins, + ) + + @_overload + async def generate_data_key( + self, + request: _models.GenerateDataKeyInput | _models.GenerateDataKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateDataKeyOutput: ... + + @_overload async def generate_data_key( - self, input: GenerateDataKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateDataKeyInputDict], ) -> GenerateDataKeyOutput: """ Returns a unique symmetric data key for use outside of KMS. This @@ -2242,8 +2646,6 @@ async def generate_data_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateDataKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2253,10 +2655,34 @@ async def generate_data_key( Returns: An instance of `GenerateDataKeyOutput`. """ - return await self._invoke(input, _models.GENERATE_DATA_KEY, [], plugins) + async def generate_data_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateDataKeyOutput: + return await self._invoke( + self._select_input(_models.GENERATE_DATA_KEY, args, kwargs), + _models.GENERATE_DATA_KEY, + [], + plugins, + ) + + @_overload + async def generate_data_key_pair( + self, + request: _models.GenerateDataKeyPairInput + | _models.GenerateDataKeyPairInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateDataKeyPairOutput: ... + + @_overload async def generate_data_key_pair( - self, input: GenerateDataKeyPairInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateDataKeyPairInputDict], ) -> GenerateDataKeyPairOutput: """ Returns a unique asymmetric data key pair for use outside of KMS. This @@ -2365,8 +2791,6 @@ async def generate_data_key_pair( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateDataKeyPairInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2376,12 +2800,34 @@ async def generate_data_key_pair( Returns: An instance of `GenerateDataKeyPairOutput`. """ - return await self._invoke(input, _models.GENERATE_DATA_KEY_PAIR, [], plugins) - async def generate_data_key_pair_without_plaintext( - self, - input: GenerateDataKeyPairWithoutPlaintextInput, - plugins: list[Plugin] | None = None, + async def generate_data_key_pair( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateDataKeyPairOutput: + return await self._invoke( + self._select_input(_models.GENERATE_DATA_KEY_PAIR, args, kwargs), + _models.GENERATE_DATA_KEY_PAIR, + [], + plugins, + ) + + @_overload + async def generate_data_key_pair_without_plaintext( + self, + request: _models.GenerateDataKeyPairWithoutPlaintextInput + | _models.GenerateDataKeyPairWithoutPlaintextInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateDataKeyPairWithoutPlaintextOutput: ... + + @_overload + async def generate_data_key_pair_without_plaintext( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateDataKeyPairWithoutPlaintextInputDict], ) -> GenerateDataKeyPairWithoutPlaintextOutput: """ Returns a unique asymmetric data key pair for use outside of KMS. This @@ -2459,8 +2905,6 @@ async def generate_data_key_pair_without_plaintext( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateDataKeyPairWithoutPlaintextInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2470,14 +2914,36 @@ async def generate_data_key_pair_without_plaintext( Returns: An instance of `GenerateDataKeyPairWithoutPlaintextOutput`. """ + + async def generate_data_key_pair_without_plaintext( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateDataKeyPairWithoutPlaintextOutput: return await self._invoke( - input, _models.GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT, [], plugins + self._select_input( + _models.GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT, args, kwargs + ), + _models.GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT, + [], + plugins, ) + @_overload async def generate_data_key_without_plaintext( self, - input: GenerateDataKeyWithoutPlaintextInput, + request: _models.GenerateDataKeyWithoutPlaintextInput + | _models.GenerateDataKeyWithoutPlaintextInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GenerateDataKeyWithoutPlaintextOutput: ... + + @_overload + async def generate_data_key_without_plaintext( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateDataKeyWithoutPlaintextInputDict], ) -> GenerateDataKeyWithoutPlaintextOutput: """ Returns a unique symmetric data key for use outside of KMS. This @@ -2561,8 +3027,6 @@ async def generate_data_key_without_plaintext( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateDataKeyWithoutPlaintextInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2572,12 +3036,35 @@ async def generate_data_key_without_plaintext( Returns: An instance of `GenerateDataKeyWithoutPlaintextOutput`. """ + + async def generate_data_key_without_plaintext( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateDataKeyWithoutPlaintextOutput: return await self._invoke( - input, _models.GENERATE_DATA_KEY_WITHOUT_PLAINTEXT, [], plugins + self._select_input( + _models.GENERATE_DATA_KEY_WITHOUT_PLAINTEXT, args, kwargs + ), + _models.GENERATE_DATA_KEY_WITHOUT_PLAINTEXT, + [], + plugins, ) + @_overload + async def generate_mac( + self, + request: _models.GenerateMacInput | _models.GenerateMacInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateMacOutput: ... + + @_overload async def generate_mac( - self, input: GenerateMacInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateMacInputDict], ) -> GenerateMacOutput: """ Generates a hash-based message authentication code (HMAC) for a message @@ -2624,8 +3111,6 @@ async def generate_mac( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateMacInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2635,10 +3120,33 @@ async def generate_mac( Returns: An instance of `GenerateMacOutput`. """ - return await self._invoke(input, _models.GENERATE_MAC, [], plugins) + async def generate_mac( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateMacOutput: + return await self._invoke( + self._select_input(_models.GENERATE_MAC, args, kwargs), + _models.GENERATE_MAC, + [], + plugins, + ) + + @_overload async def generate_random( - self, input: GenerateRandomInput, plugins: list[Plugin] | None = None + self, + request: _models.GenerateRandomInput | _models.GenerateRandomInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateRandomOutput: ... + + @_overload + async def generate_random( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateRandomInputDict], ) -> GenerateRandomOutput: """ Returns a random byte string that is cryptographically secure. @@ -2683,8 +3191,6 @@ async def generate_random( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateRandomInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2694,10 +3200,33 @@ async def generate_random( Returns: An instance of `GenerateRandomOutput`. """ - return await self._invoke(input, _models.GENERATE_RANDOM, [], plugins) + async def generate_random( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateRandomOutput: + return await self._invoke( + self._select_input(_models.GENERATE_RANDOM, args, kwargs), + _models.GENERATE_RANDOM, + [], + plugins, + ) + + @_overload async def get_key_last_usage( - self, input: GetKeyLastUsageInput, plugins: list[Plugin] | None = None + self, + request: _models.GetKeyLastUsageInput | _models.GetKeyLastUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyLastUsageOutput: ... + + @_overload + async def get_key_last_usage( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyLastUsageInputDict], ) -> GetKeyLastUsageOutput: """ Returns usage information about the last successful cryptographic @@ -2765,8 +3294,6 @@ async def get_key_last_usage( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetKeyLastUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2776,10 +3303,33 @@ async def get_key_last_usage( Returns: An instance of `GetKeyLastUsageOutput`. """ - return await self._invoke(input, _models.GET_KEY_LAST_USAGE, [], plugins) + async def get_key_last_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyLastUsageOutput: + return await self._invoke( + self._select_input(_models.GET_KEY_LAST_USAGE, args, kwargs), + _models.GET_KEY_LAST_USAGE, + [], + plugins, + ) + + @_overload async def get_key_policy( - self, input: GetKeyPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetKeyPolicyInput | _models.GetKeyPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyPolicyOutput: ... + + @_overload + async def get_key_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyPolicyInputDict], ) -> GetKeyPolicyOutput: """ Gets a key policy attached to the specified KMS key. @@ -2799,8 +3349,6 @@ async def get_key_policy( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetKeyPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2810,10 +3358,34 @@ async def get_key_policy( Returns: An instance of `GetKeyPolicyOutput`. """ - return await self._invoke(input, _models.GET_KEY_POLICY, [], plugins) + async def get_key_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_KEY_POLICY, args, kwargs), + _models.GET_KEY_POLICY, + [], + plugins, + ) + + @_overload async def get_key_rotation_status( - self, input: GetKeyRotationStatusInput, plugins: list[Plugin] | None = None + self, + request: _models.GetKeyRotationStatusInput + | _models.GetKeyRotationStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyRotationStatusOutput: ... + + @_overload + async def get_key_rotation_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyRotationStatusInputDict], ) -> GetKeyRotationStatusOutput: """ Provides detailed information about the rotation status for a KMS key, @@ -2898,8 +3470,6 @@ async def get_key_rotation_status( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetKeyRotationStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2909,10 +3479,34 @@ async def get_key_rotation_status( Returns: An instance of `GetKeyRotationStatusOutput`. """ - return await self._invoke(input, _models.GET_KEY_ROTATION_STATUS, [], plugins) + async def get_key_rotation_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyRotationStatusOutput: + return await self._invoke( + self._select_input(_models.GET_KEY_ROTATION_STATUS, args, kwargs), + _models.GET_KEY_ROTATION_STATUS, + [], + plugins, + ) + + @_overload + async def get_parameters_for_import( + self, + request: _models.GetParametersForImportInput + | _models.GetParametersForImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetParametersForImportOutput: ... + + @_overload async def get_parameters_for_import( - self, input: GetParametersForImportInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetParametersForImportInputDict], ) -> GetParametersForImportOutput: """ Returns the public key and an import token you need to import or @@ -2995,8 +3589,6 @@ async def get_parameters_for_import( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetParametersForImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3006,10 +3598,33 @@ async def get_parameters_for_import( Returns: An instance of `GetParametersForImportOutput`. """ - return await self._invoke(input, _models.GET_PARAMETERS_FOR_IMPORT, [], plugins) + async def get_parameters_for_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetParametersForImportOutput: + return await self._invoke( + self._select_input(_models.GET_PARAMETERS_FOR_IMPORT, args, kwargs), + _models.GET_PARAMETERS_FOR_IMPORT, + [], + plugins, + ) + + @_overload + async def get_public_key( + self, + request: _models.GetPublicKeyInput | _models.GetPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPublicKeyOutput: ... + + @_overload async def get_public_key( - self, input: GetPublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPublicKeyInputDict], ) -> GetPublicKeyOutput: """ Returns the public key of an asymmetric KMS key. Unlike the private key @@ -3082,8 +3697,6 @@ async def get_public_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3093,10 +3706,33 @@ async def get_public_key( Returns: An instance of `GetPublicKeyOutput`. """ - return await self._invoke(input, _models.GET_PUBLIC_KEY, [], plugins) + async def get_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPublicKeyOutput: + return await self._invoke( + self._select_input(_models.GET_PUBLIC_KEY, args, kwargs), + _models.GET_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + async def import_key_material( + self, + request: _models.ImportKeyMaterialInput | _models.ImportKeyMaterialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportKeyMaterialOutput: ... + + @_overload async def import_key_material( - self, input: ImportKeyMaterialInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportKeyMaterialInputDict], ) -> ImportKeyMaterialOutput: """ Imports or reimports key material into an existing KMS key that was @@ -3241,8 +3877,6 @@ async def import_key_material( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ImportKeyMaterialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3252,10 +3886,33 @@ async def import_key_material( Returns: An instance of `ImportKeyMaterialOutput`. """ - return await self._invoke(input, _models.IMPORT_KEY_MATERIAL, [], plugins) + async def import_key_material( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportKeyMaterialOutput: + return await self._invoke( + self._select_input(_models.IMPORT_KEY_MATERIAL, args, kwargs), + _models.IMPORT_KEY_MATERIAL, + [], + plugins, + ) + + @_overload + async def list_aliases( + self, + request: _models.ListAliasesInput | _models.ListAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAliasesOutput: ... + + @_overload async def list_aliases( - self, input: ListAliasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAliasesInputDict], ) -> ListAliasesOutput: """ Gets a list of aliases in the caller's Amazon Web Services account and @@ -3303,8 +3960,6 @@ async def list_aliases( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3314,10 +3969,33 @@ async def list_aliases( Returns: An instance of `ListAliasesOutput`. """ - return await self._invoke(input, _models.LIST_ALIASES, [], plugins) + async def list_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAliasesOutput: + return await self._invoke( + self._select_input(_models.LIST_ALIASES, args, kwargs), + _models.LIST_ALIASES, + [], + plugins, + ) + + @_overload + async def list_grants( + self, + request: _models.ListGrantsInput | _models.ListGrantsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGrantsOutput: ... + + @_overload async def list_grants( - self, input: ListGrantsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGrantsInputDict], ) -> ListGrantsOutput: """ Gets a list of all grants for the specified KMS key. @@ -3371,8 +4049,6 @@ async def list_grants( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListGrantsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3382,10 +4058,33 @@ async def list_grants( Returns: An instance of `ListGrantsOutput`. """ - return await self._invoke(input, _models.LIST_GRANTS, [], plugins) + async def list_grants( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGrantsOutput: + return await self._invoke( + self._select_input(_models.LIST_GRANTS, args, kwargs), + _models.LIST_GRANTS, + [], + plugins, + ) + + @_overload async def list_key_policies( - self, input: ListKeyPoliciesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListKeyPoliciesInput | _models.ListKeyPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeyPoliciesOutput: ... + + @_overload + async def list_key_policies( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeyPoliciesInputDict], ) -> ListKeyPoliciesOutput: """ Gets the names of the key policies that are attached to a KMS key. This @@ -3411,8 +4110,6 @@ async def list_key_policies( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListKeyPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3422,10 +4119,33 @@ async def list_key_policies( Returns: An instance of `ListKeyPoliciesOutput`. """ - return await self._invoke(input, _models.LIST_KEY_POLICIES, [], plugins) + async def list_key_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeyPoliciesOutput: + return await self._invoke( + self._select_input(_models.LIST_KEY_POLICIES, args, kwargs), + _models.LIST_KEY_POLICIES, + [], + plugins, + ) + + @_overload async def list_key_rotations( - self, input: ListKeyRotationsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListKeyRotationsInput | _models.ListKeyRotationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeyRotationsOutput: ... + + @_overload + async def list_key_rotations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeyRotationsInputDict], ) -> ListKeyRotationsOutput: """ Returns information about the key materials associated with the @@ -3466,8 +4186,6 @@ async def list_key_rotations( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListKeyRotationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3477,10 +4195,33 @@ async def list_key_rotations( Returns: An instance of `ListKeyRotationsOutput`. """ - return await self._invoke(input, _models.LIST_KEY_ROTATIONS, [], plugins) + async def list_key_rotations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeyRotationsOutput: + return await self._invoke( + self._select_input(_models.LIST_KEY_ROTATIONS, args, kwargs), + _models.LIST_KEY_ROTATIONS, + [], + plugins, + ) + + @_overload async def list_keys( - self, input: ListKeysInput, plugins: list[Plugin] | None = None + self, + request: _models.ListKeysInput | _models.ListKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeysOutput: ... + + @_overload + async def list_keys( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeysInputDict], ) -> ListKeysOutput: """ Gets a list of all KMS keys in the caller's Amazon Web Services account @@ -3508,8 +4249,6 @@ async def list_keys( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3519,10 +4258,33 @@ async def list_keys( Returns: An instance of `ListKeysOutput`. """ - return await self._invoke(input, _models.LIST_KEYS, [], plugins) + async def list_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeysOutput: + return await self._invoke( + self._select_input(_models.LIST_KEYS, args, kwargs), + _models.LIST_KEYS, + [], + plugins, + ) + + @_overload async def list_resource_tags( - self, input: ListResourceTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListResourceTagsInput | _models.ListResourceTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResourceTagsOutput: ... + + @_overload + async def list_resource_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourceTagsInputDict], ) -> ListResourceTagsOutput: """ Returns all tags on the specified KMS key. @@ -3556,8 +4318,6 @@ async def list_resource_tags( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListResourceTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3567,10 +4327,34 @@ async def list_resource_tags( Returns: An instance of `ListResourceTagsOutput`. """ - return await self._invoke(input, _models.LIST_RESOURCE_TAGS, [], plugins) + async def list_resource_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourceTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_RESOURCE_TAGS, args, kwargs), + _models.LIST_RESOURCE_TAGS, + [], + plugins, + ) + + @_overload async def list_retirable_grants( - self, input: ListRetirableGrantsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListRetirableGrantsInput + | _models.ListRetirableGrantsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRetirableGrantsOutput: ... + + @_overload + async def list_retirable_grants( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRetirableGrantsInputDict], ) -> ListRetirableGrantsOutput: """ Returns information about all grants in the Amazon Web Services account @@ -3630,8 +4414,6 @@ async def list_retirable_grants( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListRetirableGrantsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3641,10 +4423,33 @@ async def list_retirable_grants( Returns: An instance of `ListRetirableGrantsOutput`. """ - return await self._invoke(input, _models.LIST_RETIRABLE_GRANTS, [], plugins) + async def list_retirable_grants( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRetirableGrantsOutput: + return await self._invoke( + self._select_input(_models.LIST_RETIRABLE_GRANTS, args, kwargs), + _models.LIST_RETIRABLE_GRANTS, + [], + plugins, + ) + + @_overload + async def put_key_policy( + self, + request: _models.PutKeyPolicyInput | _models.PutKeyPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutKeyPolicyOutput: ... + + @_overload async def put_key_policy( - self, input: PutKeyPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutKeyPolicyInputDict], ) -> PutKeyPolicyOutput: """ Attaches a key policy to the specified KMS key. @@ -3674,8 +4479,6 @@ async def put_key_policy( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `PutKeyPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3685,10 +4488,33 @@ async def put_key_policy( Returns: An instance of `PutKeyPolicyOutput`. """ - return await self._invoke(input, _models.PUT_KEY_POLICY, [], plugins) + async def put_key_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutKeyPolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_KEY_POLICY, args, kwargs), + _models.PUT_KEY_POLICY, + [], + plugins, + ) + + @_overload async def re_encrypt( - self, input: ReEncryptInput, plugins: list[Plugin] | None = None + self, + request: _models.ReEncryptInput | _models.ReEncryptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReEncryptOutput: ... + + @_overload + async def re_encrypt( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReEncryptInputDict], ) -> ReEncryptOutput: """ Decrypts ciphertext and then reencrypts it entirely within KMS. You can @@ -3809,8 +4635,6 @@ async def re_encrypt( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ReEncryptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3820,10 +4644,33 @@ async def re_encrypt( Returns: An instance of `ReEncryptOutput`. """ - return await self._invoke(input, _models.RE_ENCRYPT, [], plugins) + async def re_encrypt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReEncryptOutput: + return await self._invoke( + self._select_input(_models.RE_ENCRYPT, args, kwargs), + _models.RE_ENCRYPT, + [], + plugins, + ) + + @_overload + async def replicate_key( + self, + request: _models.ReplicateKeyInput | _models.ReplicateKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplicateKeyOutput: ... + + @_overload async def replicate_key( - self, input: ReplicateKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplicateKeyInputDict], ) -> ReplicateKeyOutput: """ Replicates a multi-Region key into the specified Region. This operation @@ -3923,8 +4770,6 @@ async def replicate_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ReplicateKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3934,10 +4779,33 @@ async def replicate_key( Returns: An instance of `ReplicateKeyOutput`. """ - return await self._invoke(input, _models.REPLICATE_KEY, [], plugins) + async def replicate_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplicateKeyOutput: + return await self._invoke( + self._select_input(_models.REPLICATE_KEY, args, kwargs), + _models.REPLICATE_KEY, + [], + plugins, + ) + + @_overload async def retire_grant( - self, input: RetireGrantInput, plugins: list[Plugin] | None = None + self, + request: _models.RetireGrantInput | _models.RetireGrantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RetireGrantOutput: ... + + @_overload + async def retire_grant( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetireGrantInputDict], ) -> RetireGrantOutput: """ Deletes a grant. Typically, you retire a grant when you no longer need @@ -3983,8 +4851,6 @@ async def retire_grant( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `RetireGrantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3994,10 +4860,33 @@ async def retire_grant( Returns: An instance of `RetireGrantOutput`. """ - return await self._invoke(input, _models.RETIRE_GRANT, [], plugins) + async def retire_grant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RetireGrantOutput: + return await self._invoke( + self._select_input(_models.RETIRE_GRANT, args, kwargs), + _models.RETIRE_GRANT, + [], + plugins, + ) + + @_overload + async def revoke_grant( + self, + request: _models.RevokeGrantInput | _models.RevokeGrantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeGrantOutput: ... + + @_overload async def revoke_grant( - self, input: RevokeGrantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeGrantInputDict], ) -> RevokeGrantOutput: """ Deletes the specified grant. You revoke a grant to terminate the @@ -4044,8 +4933,6 @@ async def revoke_grant( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `RevokeGrantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4055,10 +4942,33 @@ async def revoke_grant( Returns: An instance of `RevokeGrantOutput`. """ - return await self._invoke(input, _models.REVOKE_GRANT, [], plugins) + async def revoke_grant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeGrantOutput: + return await self._invoke( + self._select_input(_models.REVOKE_GRANT, args, kwargs), + _models.REVOKE_GRANT, + [], + plugins, + ) + + @_overload + async def rotate_key_on_demand( + self, + request: _models.RotateKeyOnDemandInput | _models.RotateKeyOnDemandInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RotateKeyOnDemandOutput: ... + + @_overload async def rotate_key_on_demand( - self, input: RotateKeyOnDemandInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RotateKeyOnDemandInputDict], ) -> RotateKeyOnDemandOutput: """ Immediately initiates rotation of the key material of the specified @@ -4143,8 +5053,6 @@ async def rotate_key_on_demand( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `RotateKeyOnDemandInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4154,10 +5062,34 @@ async def rotate_key_on_demand( Returns: An instance of `RotateKeyOnDemandOutput`. """ - return await self._invoke(input, _models.ROTATE_KEY_ON_DEMAND, [], plugins) + async def rotate_key_on_demand( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RotateKeyOnDemandOutput: + return await self._invoke( + self._select_input(_models.ROTATE_KEY_ON_DEMAND, args, kwargs), + _models.ROTATE_KEY_ON_DEMAND, + [], + plugins, + ) + + @_overload + async def schedule_key_deletion( + self, + request: _models.ScheduleKeyDeletionInput + | _models.ScheduleKeyDeletionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ScheduleKeyDeletionOutput: ... + + @_overload async def schedule_key_deletion( - self, input: ScheduleKeyDeletionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ScheduleKeyDeletionInputDict], ) -> ScheduleKeyDeletionOutput: """ Schedules the deletion of a KMS key. By default, KMS applies a waiting @@ -4234,8 +5166,6 @@ async def schedule_key_deletion( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ScheduleKeyDeletionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4245,10 +5175,33 @@ async def schedule_key_deletion( Returns: An instance of `ScheduleKeyDeletionOutput`. """ - return await self._invoke(input, _models.SCHEDULE_KEY_DELETION, [], plugins) + async def schedule_key_deletion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ScheduleKeyDeletionOutput: + return await self._invoke( + self._select_input(_models.SCHEDULE_KEY_DELETION, args, kwargs), + _models.SCHEDULE_KEY_DELETION, + [], + plugins, + ) + + @_overload + async def sign( + self, + request: _models.SignInput | _models.SignInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SignOutput: ... + + @_overload async def sign( - self, input: SignInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SignInputDict], ) -> SignOutput: """ Creates a [digital @@ -4318,8 +5271,6 @@ async def sign( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `SignInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4329,10 +5280,30 @@ async def sign( Returns: An instance of `SignOutput`. """ - return await self._invoke(input, _models.SIGN, [], plugins) + async def sign( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SignOutput: + return await self._invoke( + self._select_input(_models.SIGN, args, kwargs), _models.SIGN, [], plugins + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds or edits tags on a [customer managed @@ -4397,8 +5368,6 @@ async def tag_resource( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4408,10 +5377,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Deletes tags from a [customer managed @@ -4463,8 +5455,6 @@ async def untag_resource( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4474,10 +5464,33 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_alias( + self, + request: _models.UpdateAliasInput | _models.UpdateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAliasOutput: ... + + @_overload async def update_alias( - self, input: UpdateAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAliasInputDict], ) -> UpdateAliasOutput: """ Associates an existing KMS alias with a different KMS key. Each alias is @@ -4543,8 +5556,6 @@ async def update_alias( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UpdateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4554,10 +5565,34 @@ async def update_alias( Returns: An instance of `UpdateAliasOutput`. """ - return await self._invoke(input, _models.UPDATE_ALIAS, [], plugins) + async def update_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAliasOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ALIAS, args, kwargs), + _models.UPDATE_ALIAS, + [], + plugins, + ) + + @_overload + async def update_custom_key_store( + self, + request: _models.UpdateCustomKeyStoreInput + | _models.UpdateCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCustomKeyStoreOutput: ... + + @_overload async def update_custom_key_store( - self, input: UpdateCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCustomKeyStoreInputDict], ) -> UpdateCustomKeyStoreOutput: """ Changes the properties of a custom key store. You can use this operation @@ -4658,8 +5693,6 @@ async def update_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UpdateCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4669,10 +5702,34 @@ async def update_custom_key_store( Returns: An instance of `UpdateCustomKeyStoreOutput`. """ - return await self._invoke(input, _models.UPDATE_CUSTOM_KEY_STORE, [], plugins) + async def update_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCustomKeyStoreOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CUSTOM_KEY_STORE, args, kwargs), + _models.UPDATE_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + async def update_key_description( + self, + request: _models.UpdateKeyDescriptionInput + | _models.UpdateKeyDescriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKeyDescriptionOutput: ... + + @_overload async def update_key_description( - self, input: UpdateKeyDescriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKeyDescriptionInputDict], ) -> UpdateKeyDescriptionOutput: """ Updates the description of a KMS key. To see the description of a KMS @@ -4701,8 +5758,6 @@ async def update_key_description( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UpdateKeyDescriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4712,10 +5767,34 @@ async def update_key_description( Returns: An instance of `UpdateKeyDescriptionOutput`. """ - return await self._invoke(input, _models.UPDATE_KEY_DESCRIPTION, [], plugins) + async def update_key_description( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKeyDescriptionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_KEY_DESCRIPTION, args, kwargs), + _models.UPDATE_KEY_DESCRIPTION, + [], + plugins, + ) + + @_overload async def update_primary_region( - self, input: UpdatePrimaryRegionInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdatePrimaryRegionInput + | _models.UpdatePrimaryRegionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePrimaryRegionOutput: ... + + @_overload + async def update_primary_region( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePrimaryRegionInputDict], ) -> UpdatePrimaryRegionOutput: """ Changes the primary key of a multi-Region key. @@ -4808,8 +5887,6 @@ async def update_primary_region( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UpdatePrimaryRegionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4819,10 +5896,33 @@ async def update_primary_region( Returns: An instance of `UpdatePrimaryRegionOutput`. """ - return await self._invoke(input, _models.UPDATE_PRIMARY_REGION, [], plugins) + async def update_primary_region( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePrimaryRegionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_PRIMARY_REGION, args, kwargs), + _models.UPDATE_PRIMARY_REGION, + [], + plugins, + ) + + @_overload async def verify( - self, input: VerifyInput, plugins: list[Plugin] | None = None + self, + request: _models.VerifyInput | _models.VerifyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> VerifyOutput: ... + + @_overload + async def verify( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.VerifyInputDict], ) -> VerifyOutput: """ Verifies a digital signature that was generated by the Sign operation. @@ -4882,8 +5982,6 @@ async def verify( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `VerifyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4893,10 +5991,33 @@ async def verify( Returns: An instance of `VerifyOutput`. """ - return await self._invoke(input, _models.VERIFY, [], plugins) + async def verify( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> VerifyOutput: + return await self._invoke( + self._select_input(_models.VERIFY, args, kwargs), + _models.VERIFY, + [], + plugins, + ) + + @_overload async def verify_mac( - self, input: VerifyMacInput, plugins: list[Plugin] | None = None + self, + request: _models.VerifyMacInput | _models.VerifyMacInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> VerifyMacOutput: ... + + @_overload + async def verify_mac( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.VerifyMacInputDict], ) -> VerifyMacOutput: """ Verifies the hash-based message authentication code (HMAC) for a @@ -4937,8 +6058,6 @@ async def verify_mac( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `VerifyMacInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4948,7 +6067,16 @@ async def verify_mac( Returns: An instance of `VerifyMacOutput`. """ - return await self._invoke(input, _models.VERIFY_MAC, [], plugins) + + async def verify_mac( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> VerifyMacOutput: + return await self._invoke( + self._select_input(_models.VERIFY_MAC, args, kwargs), + _models.VERIFY_MAC, + [], + plugins, + ) async def _new_config(self) -> AsyncKMSConfig: return await AsyncKMSConfig.resolve() diff --git a/clients/aws-sdk-kms/src/aws_sdk_kms/client.py b/clients/aws-sdk-kms/src/aws_sdk_kms/client.py index 1020a4e88..df3ab796e 100644 --- a/clients/aws-sdk-kms/src/aws_sdk_kms/client.py +++ b/clients/aws-sdk-kms/src/aws_sdk_kms/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,116 +20,60 @@ if TYPE_CHECKING: from .models import ( - CancelKeyDeletionInput, CancelKeyDeletionOutput, - ConnectCustomKeyStoreInput, ConnectCustomKeyStoreOutput, - CreateAliasInput, CreateAliasOutput, - CreateCustomKeyStoreInput, CreateCustomKeyStoreOutput, - CreateGrantInput, CreateGrantOutput, - CreateKeyInput, CreateKeyOutput, - DecapsulateInput, DecapsulateOutput, - DecryptInput, DecryptOutput, - DeleteAliasInput, DeleteAliasOutput, - DeleteCustomKeyStoreInput, DeleteCustomKeyStoreOutput, - DeleteImportedKeyMaterialInput, DeleteImportedKeyMaterialOutput, - DeriveSharedSecretInput, DeriveSharedSecretOutput, - DescribeCustomKeyStoresInput, DescribeCustomKeyStoresOutput, - DescribeKeyInput, DescribeKeyOutput, - DisableKeyInput, DisableKeyOutput, - DisableKeyRotationInput, DisableKeyRotationOutput, - DisconnectCustomKeyStoreInput, DisconnectCustomKeyStoreOutput, - EnableKeyInput, EnableKeyOutput, - EnableKeyRotationInput, EnableKeyRotationOutput, - EncapsulateInput, EncapsulateOutput, - EncryptInput, EncryptOutput, - GenerateDataKeyInput, GenerateDataKeyOutput, - GenerateDataKeyPairInput, GenerateDataKeyPairOutput, - GenerateDataKeyPairWithoutPlaintextInput, GenerateDataKeyPairWithoutPlaintextOutput, - GenerateDataKeyWithoutPlaintextInput, GenerateDataKeyWithoutPlaintextOutput, - GenerateMacInput, GenerateMacOutput, - GenerateRandomInput, GenerateRandomOutput, - GetKeyLastUsageInput, GetKeyLastUsageOutput, - GetKeyPolicyInput, GetKeyPolicyOutput, - GetKeyRotationStatusInput, GetKeyRotationStatusOutput, - GetParametersForImportInput, GetParametersForImportOutput, - GetPublicKeyInput, GetPublicKeyOutput, - ImportKeyMaterialInput, ImportKeyMaterialOutput, - ListAliasesInput, ListAliasesOutput, - ListGrantsInput, ListGrantsOutput, - ListKeyPoliciesInput, ListKeyPoliciesOutput, - ListKeyRotationsInput, ListKeyRotationsOutput, - ListKeysInput, ListKeysOutput, - ListResourceTagsInput, ListResourceTagsOutput, - ListRetirableGrantsInput, ListRetirableGrantsOutput, - PutKeyPolicyInput, PutKeyPolicyOutput, - ReEncryptInput, ReEncryptOutput, - ReplicateKeyInput, ReplicateKeyOutput, - RetireGrantInput, RetireGrantOutput, - RevokeGrantInput, RevokeGrantOutput, - RotateKeyOnDemandInput, RotateKeyOnDemandOutput, - ScheduleKeyDeletionInput, ScheduleKeyDeletionOutput, - SignInput, SignOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAliasInput, UpdateAliasOutput, - UpdateCustomKeyStoreInput, UpdateCustomKeyStoreOutput, - UpdateKeyDescriptionInput, UpdateKeyDescriptionOutput, - UpdatePrimaryRegionInput, UpdatePrimaryRegionOutput, - VerifyInput, - VerifyMacInput, VerifyMacOutput, VerifyOutput, ) @@ -257,10 +201,24 @@ class KMSClient(Client[KMSConfig]): - GenerateDataKeyWithoutPlaintext """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def cancel_key_deletion( - self, input: CancelKeyDeletionInput, plugins: list[Plugin] | None = None + self, + request: _models.CancelKeyDeletionInput | _models.CancelKeyDeletionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelKeyDeletionOutput: ... + + @_overload + def cancel_key_deletion( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelKeyDeletionInputDict], ) -> CancelKeyDeletionOutput: """ Cancels the deletion of a KMS key. When this operation succeeds, the key @@ -291,8 +249,6 @@ def cancel_key_deletion( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CancelKeyDeletionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -302,10 +258,34 @@ def cancel_key_deletion( Returns: An instance of `CancelKeyDeletionOutput`. """ - return self._invoke(input, _models.CANCEL_KEY_DELETION, [], plugins) + def cancel_key_deletion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelKeyDeletionOutput: + return self._invoke( + self._select_input(_models.CANCEL_KEY_DELETION, args, kwargs), + _models.CANCEL_KEY_DELETION, + [], + plugins, + ) + + @_overload + def connect_custom_key_store( + self, + request: _models.ConnectCustomKeyStoreInput + | _models.ConnectCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ConnectCustomKeyStoreOutput: ... + + @_overload def connect_custom_key_store( - self, input: ConnectCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConnectCustomKeyStoreInputDict], ) -> ConnectCustomKeyStoreOutput: """ Connects or reconnects a [custom key @@ -412,8 +392,6 @@ def connect_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ConnectCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -423,10 +401,33 @@ def connect_custom_key_store( Returns: An instance of `ConnectCustomKeyStoreOutput`. """ - return self._invoke(input, _models.CONNECT_CUSTOM_KEY_STORE, [], plugins) + def connect_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ConnectCustomKeyStoreOutput: + return self._invoke( + self._select_input(_models.CONNECT_CUSTOM_KEY_STORE, args, kwargs), + _models.CONNECT_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + def create_alias( + self, + request: _models.CreateAliasInput | _models.CreateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAliasOutput: ... + + @_overload def create_alias( - self, input: CreateAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAliasInputDict], ) -> CreateAliasOutput: """ Creates a friendly name for a KMS key. @@ -492,8 +493,6 @@ def create_alias( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CreateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -503,10 +502,34 @@ def create_alias( Returns: An instance of `CreateAliasOutput`. """ - return self._invoke(input, _models.CREATE_ALIAS, [], plugins) + def create_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAliasOutput: + return self._invoke( + self._select_input(_models.CREATE_ALIAS, args, kwargs), + _models.CREATE_ALIAS, + [], + plugins, + ) + + @_overload + def create_custom_key_store( + self, + request: _models.CreateCustomKeyStoreInput + | _models.CreateCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomKeyStoreOutput: ... + + @_overload def create_custom_key_store( - self, input: CreateCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomKeyStoreInputDict], ) -> CreateCustomKeyStoreOutput: """ Creates a [custom key @@ -604,8 +627,6 @@ def create_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CreateCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -615,10 +636,33 @@ def create_custom_key_store( Returns: An instance of `CreateCustomKeyStoreOutput`. """ - return self._invoke(input, _models.CREATE_CUSTOM_KEY_STORE, [], plugins) + def create_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomKeyStoreOutput: + return self._invoke( + self._select_input(_models.CREATE_CUSTOM_KEY_STORE, args, kwargs), + _models.CREATE_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + def create_grant( + self, + request: _models.CreateGrantInput | _models.CreateGrantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGrantOutput: ... + + @_overload def create_grant( - self, input: CreateGrantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGrantInputDict], ) -> CreateGrantOutput: """ Adds a grant to a KMS key. @@ -692,8 +736,6 @@ def create_grant( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CreateGrantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -703,10 +745,33 @@ def create_grant( Returns: An instance of `CreateGrantOutput`. """ - return self._invoke(input, _models.CREATE_GRANT, [], plugins) + def create_grant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGrantOutput: + return self._invoke( + self._select_input(_models.CREATE_GRANT, args, kwargs), + _models.CREATE_GRANT, + [], + plugins, + ) + + @_overload + def create_key( + self, + request: _models.CreateKeyInput | _models.CreateKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateKeyOutput: ... + + @_overload def create_key( - self, input: CreateKeyInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateKeyInputDict], ) -> CreateKeyOutput: """ Creates a unique customer managed [KMS @@ -734,167 +799,172 @@ def create_key( Symmetric encryption KMS key - : By default, `CreateKey` creates a symmetric encryption KMS key with - key material that KMS generates. This is the basic and most widely - used type of KMS key, and provides the best performance. - - To create a symmetric encryption KMS key, you don't need to specify - any parameters. The default value for `KeySpec`, `SYMMETRIC_DEFAULT`, - the default value for `KeyUsage`, `ENCRYPT_DECRYPT`, and the default - value for `Origin`, `AWS_KMS`, create a symmetric encryption KMS key - with KMS key material. - - If you need a key for basic encryption and decryption or you are - creating a KMS key to protect your resources in an Amazon Web Services - service, create a symmetric encryption KMS key. The key material in a - symmetric encryption key never leaves KMS unencrypted. You can use a - symmetric encryption KMS key to encrypt and decrypt data up to 4,096 - bytes, but they are typically used to generate data keys and data keys - pairs. For details, see GenerateDataKey and GenerateDataKeyPair. + : By default, `CreateKey` creates a symmetric encryption KMS key with + key material that KMS generates. This is the basic and most widely + used type of KMS key, and provides the best performance. + + To create a symmetric encryption KMS key, you don't need to specify + any parameters. The default value for `KeySpec`, + `SYMMETRIC_DEFAULT`, the default value for `KeyUsage`, + `ENCRYPT_DECRYPT`, and the default value for `Origin`, `AWS_KMS`, + create a symmetric encryption KMS key with KMS key material. + + If you need a key for basic encryption and decryption or you are + creating a KMS key to protect your resources in an Amazon Web + Services service, create a symmetric encryption KMS key. The key + material in a symmetric encryption key never leaves KMS unencrypted. + You can use a symmetric encryption KMS key to encrypt and decrypt + data up to 4,096 bytes, but they are typically used to generate data + keys and data keys pairs. For details, see GenerateDataKey and + GenerateDataKeyPair. Asymmetric KMS keys - : To create an asymmetric KMS key, use the `KeySpec` parameter to - specify the type of key material in the KMS key. Then, use the - `KeyUsage` parameter to determine whether the KMS key will be used to - encrypt and decrypt or sign and verify. You can't change these - properties after the KMS key is created. - - Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key - pair, ML-DSA key pair or an SM2 key pair (China Regions only). The - private key in an asymmetric KMS key never leaves KMS unencrypted. - However, you can use the GetPublicKey operation to download the public - key so it can be used outside of KMS. Each KMS key can have only one - key usage. KMS keys with RSA key pairs can be used to encrypt and - decrypt data or sign and verify messages (but not both). KMS keys with - NIST-standard ECC key pairs can be used to sign and verify messages or - derive shared secrets (but not both). KMS keys with `ECC_SECG_P256K1` - can be used only to sign and verify messages. KMS keys with ML-DSA key - pairs can be used to sign and verify messages. KMS keys with SM2 key - pairs (China Regions only) can be used to either encrypt and decrypt - data, sign and verify messages, or derive shared secrets (you must - choose one key usage type). For information about asymmetric KMS keys, - see [Asymmetric KMS - keys](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) - in the *Key Management Service Developer Guide*. + : To create an asymmetric KMS key, use the `KeySpec` parameter to + specify the type of key material in the KMS key. Then, use the + `KeyUsage` parameter to determine whether the KMS key will be used + to encrypt and decrypt or sign and verify. You can't change these + properties after the KMS key is created. + + Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) + key pair, ML-DSA key pair or an SM2 key pair (China Regions only). + The private key in an asymmetric KMS key never leaves KMS + unencrypted. However, you can use the GetPublicKey operation to + download the public key so it can be used outside of KMS. Each KMS + key can have only one key usage. KMS keys with RSA key pairs can be + used to encrypt and decrypt data or sign and verify messages (but + not both). KMS keys with NIST-standard ECC key pairs can be used to + sign and verify messages or derive shared secrets (but not both). + KMS keys with `ECC_SECG_P256K1` can be used only to sign and verify + messages. KMS keys with ML-DSA key pairs can be used to sign and + verify messages. KMS keys with SM2 key pairs (China Regions only) + can be used to either encrypt and decrypt data, sign and verify + messages, or derive shared secrets (you must choose one key usage + type). For information about asymmetric KMS keys, see [Asymmetric + KMS + keys](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + in the *Key Management Service Developer Guide*. HMAC KMS key - : To create an HMAC KMS key, set the `KeySpec` parameter to a key spec - value for HMAC KMS keys. Then set the `KeyUsage` parameter to - `GENERATE_VERIFY_MAC`. You must set the key usage even though - `GENERATE_VERIFY_MAC` is the only valid key usage value for HMAC KMS - keys. You can't change these properties after the KMS key is created. + : To create an HMAC KMS key, set the `KeySpec` parameter to a key spec + value for HMAC KMS keys. Then set the `KeyUsage` parameter to + `GENERATE_VERIFY_MAC`. You must set the key usage even though + `GENERATE_VERIFY_MAC` is the only valid key usage value for HMAC KMS + keys. You can't change these properties after the KMS key is + created. - HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You - can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) - HMAC codes for messages up to 4096 bytes. + HMAC KMS keys are symmetric keys that never leave KMS unencrypted. + You can use HMAC keys to generate (GenerateMac) and verify + (VerifyMac) HMAC codes for messages up to 4096 bytes. Multi-Region primary keys - : To create a multi-Region *primary key* in the local Amazon Web - Services Region, use the `MultiRegion` parameter with a value of - `True`. To create a multi-Region *replica key*, that is, a KMS key - with the same key ID and key material as a primary key, but in a - different Amazon Web Services Region, use the ReplicateKey operation. - To change a replica key to a primary key, and its primary key to a - replica key, use the UpdatePrimaryRegion operation. - - You can create multi-Region KMS keys for all supported KMS key types: - symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption - KMS keys, and asymmetric signing KMS keys. You can also create - multi-Region keys with imported key material. However, you can't - create multi-Region keys in a custom key store. - - This operation supports *multi-Region keys*, an KMS feature that lets - you create multiple interoperable KMS keys in different Amazon Web - Services Regions. Because these KMS keys have the same key ID, key - material, and other metadata, you can use them interchangeably to - encrypt data in one Amazon Web Services Region and decrypt it in a - different Amazon Web Services Region without re-encrypting the data or - making a cross-Region call. For more information about multi-Region - keys, see [Multi-Region keys in - KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) - in the *Key Management Service Developer Guide*. + : To create a multi-Region *primary key* in the local Amazon Web + Services Region, use the `MultiRegion` parameter with a value of + `True`. To create a multi-Region *replica key*, that is, a KMS key + with the same key ID and key material as a primary key, but in a + different Amazon Web Services Region, use the ReplicateKey + operation. To change a replica key to a primary key, and its primary + key to a replica key, use the UpdatePrimaryRegion operation. + + You can create multi-Region KMS keys for all supported KMS key + types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric + encryption KMS keys, and asymmetric signing KMS keys. You can also + create multi-Region keys with imported key material. However, you + can't create multi-Region keys in a custom key store. + + This operation supports *multi-Region keys*, an KMS feature that + lets you create multiple interoperable KMS keys in different Amazon + Web Services Regions. Because these KMS keys have the same key ID, + key material, and other metadata, you can use them interchangeably + to encrypt data in one Amazon Web Services Region and decrypt it in + a different Amazon Web Services Region without re-encrypting the + data or making a cross-Region call. For more information about + multi-Region keys, see [Multi-Region keys in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. Imported key material - : To import your own key material into a KMS key, begin by creating a - KMS key with no key material. To do this, use the `Origin` parameter - of `CreateKey` with a value of `EXTERNAL`. Next, use - GetParametersForImport operation to get a public key and import token. - Use the wrapping public key to encrypt your key material. Then, use - ImportKeyMaterial with your import token to import the key material. - For step-by-step instructions, see [Importing Key - Material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) - in the Key Management Service Developer Guide . - - You can import key material into KMS keys of all supported KMS key - types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric - encryption KMS keys, and asymmetric signing KMS keys. You can also - create multi-Region keys with imported key material. However, you - can't import key material into a KMS key in a custom key store. - - To create a multi-Region primary key with imported key material, use - the `Origin` parameter of `CreateKey` with a value of `EXTERNAL` and - the `MultiRegion` parameter with a value of `True`. To create replicas - of the multi-Region primary key, use the ReplicateKey operation. For - instructions, see [Importing key material step - 1](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html). - For more information about multi-Region keys, see [Multi-Region keys - in - KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) - in the *Key Management Service Developer Guide*. + : To import your own key material into a KMS key, begin by creating a + KMS key with no key material. To do this, use the `Origin` parameter + of `CreateKey` with a value of `EXTERNAL`. Next, use + GetParametersForImport operation to get a public key and import + token. Use the wrapping public key to encrypt your key material. + Then, use ImportKeyMaterial with your import token to import the key + material. For step-by-step instructions, see [Importing Key + Material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) + in the Key Management Service Developer Guide . + + You can import key material into KMS keys of all supported KMS key + types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric + encryption KMS keys, and asymmetric signing KMS keys. You can also + create multi-Region keys with imported key material. However, you + can't import key material into a KMS key in a custom key store. + + To create a multi-Region primary key with imported key material, use + the `Origin` parameter of `CreateKey` with a value of `EXTERNAL` and + the `MultiRegion` parameter with a value of `True`. To create + replicas of the multi-Region primary key, use the ReplicateKey + operation. For instructions, see [Importing key material step + 1](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html). + For more information about multi-Region keys, see [Multi-Region keys + in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. Custom key store - : A [custom key - store](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) - lets you protect your Amazon Web Services resources using keys in a - backing key store that you own and manage. When you request a - cryptographic operation with a KMS key in a custom key store, the - operation is performed in the backing key store using its - cryptographic keys. - - KMS supports [CloudHSM key - stores](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html) - backed by an CloudHSM cluster and [external key - stores](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html) - backed by an external key manager outside of Amazon Web Services. When - you create a KMS key in an CloudHSM key store, KMS generates an - encryption key in the CloudHSM cluster and associates it with the KMS - key. When you create a KMS key in an external key store, you specify - an existing encryption key in the external key manager. + : A [custom key + store](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) + lets you protect your Amazon Web Services resources using keys in a + backing key store that you own and manage. When you request a + cryptographic operation with a KMS key in a custom key store, the + operation is performed in the backing key store using its + cryptographic keys. + + KMS supports [CloudHSM key + stores](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html) + backed by an CloudHSM cluster and [external key + stores](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html) + backed by an external key manager outside of Amazon Web Services. + When you create a KMS key in an CloudHSM key store, KMS generates an + encryption key in the CloudHSM cluster and associates it with the + KMS key. When you create a KMS key in an external key store, you + specify an existing encryption key in the external key manager. - Note: - Some external key managers provide a simpler method for creating a KMS - key in an external key store. For details, see your external key + Note: + Some external key managers provide a simpler method for creating a + KMS key in an external key store. For details, see your external key manager documentation. - Before you create a KMS key in a custom key store, the - `ConnectionState` of the key store must be `CONNECTED`. To connect the - custom key store, use the ConnectCustomKeyStore operation. To find the - `ConnectionState`, use the DescribeCustomKeyStores operation. - - To create a KMS key in a custom key store, use the `CustomKeyStoreId`. - Use the default `KeySpec` value, `SYMMETRIC_DEFAULT`, and the default - `KeyUsage` value, `ENCRYPT_DECRYPT` to create a symmetric encryption - key. No other key type is supported in a custom key store. - - To create a KMS key in an [CloudHSM key - store](https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html), - use the `Origin` parameter with a value of `AWS_CLOUDHSM`. The - CloudHSM cluster that is associated with the custom key store must - have at least two active HSMs in different Availability Zones in the - Amazon Web Services Region. - - To create a KMS key in an [external key - store](https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html), - use the `Origin` parameter with a value of `EXTERNAL_KEY_STORE` and an - `XksKeyId` parameter that identifies an existing external key. + Before you create a KMS key in a custom key store, the + `ConnectionState` of the key store must be `CONNECTED`. To connect + the custom key store, use the ConnectCustomKeyStore operation. To + find the `ConnectionState`, use the DescribeCustomKeyStores + operation. + + To create a KMS key in a custom key store, use the + `CustomKeyStoreId`. Use the default `KeySpec` value, + `SYMMETRIC_DEFAULT`, and the default `KeyUsage` value, + `ENCRYPT_DECRYPT` to create a symmetric encryption key. No other key + type is supported in a custom key store. + + To create a KMS key in an [CloudHSM key + store](https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html), + use the `Origin` parameter with a value of `AWS_CLOUDHSM`. The + CloudHSM cluster that is associated with the custom key store must + have at least two active HSMs in different Availability Zones in the + Amazon Web Services Region. + + To create a KMS key in an [external key + store](https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html), + use the `Origin` parameter with a value of `EXTERNAL_KEY_STORE` and + an `XksKeyId` parameter that identifies an existing external key. - Note: - Some external key managers provide a simpler method for creating a KMS - key in an external key store. For details, see your external key + Note: + Some external key managers provide a simpler method for creating a + KMS key in an external key store. For details, see your external key manager documentation. **Cross-account use**: No. You cannot use this operation to create a KMS @@ -922,8 +992,6 @@ def create_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `CreateKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -933,10 +1001,33 @@ def create_key( Returns: An instance of `CreateKeyOutput`. """ - return self._invoke(input, _models.CREATE_KEY, [], plugins) + def create_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateKeyOutput: + return self._invoke( + self._select_input(_models.CREATE_KEY, args, kwargs), + _models.CREATE_KEY, + [], + plugins, + ) + + @_overload + def decapsulate( + self, + request: _models.DecapsulateInput | _models.DecapsulateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DecapsulateOutput: ... + + @_overload def decapsulate( - self, input: DecapsulateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DecapsulateInputDict], ) -> DecapsulateOutput: """ Recovers the shared secret that was encapsulated with the public key of @@ -996,8 +1087,6 @@ def decapsulate( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DecapsulateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1007,10 +1096,33 @@ def decapsulate( Returns: An instance of `DecapsulateOutput`. """ - return self._invoke(input, _models.DECAPSULATE, [], plugins) + def decapsulate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DecapsulateOutput: + return self._invoke( + self._select_input(_models.DECAPSULATE, args, kwargs), + _models.DECAPSULATE, + [], + plugins, + ) + + @_overload def decrypt( - self, input: DecryptInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.DecryptInput | _models.DecryptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DecryptOutput: ... + + @_overload + def decrypt( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DecryptInputDict], ) -> DecryptOutput: """ Decrypts ciphertext that was encrypted by a KMS key using any of the @@ -1118,8 +1230,6 @@ def decrypt( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DecryptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1129,10 +1239,33 @@ def decrypt( Returns: An instance of `DecryptOutput`. """ - return self._invoke(input, _models.DECRYPT, [], plugins) + def decrypt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DecryptOutput: + return self._invoke( + self._select_input(_models.DECRYPT, args, kwargs), + _models.DECRYPT, + [], + plugins, + ) + + @_overload + def delete_alias( + self, + request: _models.DeleteAliasInput | _models.DeleteAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAliasOutput: ... + + @_overload def delete_alias( - self, input: DeleteAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAliasInputDict], ) -> DeleteAliasOutput: """ Deletes the specified alias. @@ -1181,8 +1314,6 @@ def delete_alias( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DeleteAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1192,10 +1323,34 @@ def delete_alias( Returns: An instance of `DeleteAliasOutput`. """ - return self._invoke(input, _models.DELETE_ALIAS, [], plugins) + def delete_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAliasOutput: + return self._invoke( + self._select_input(_models.DELETE_ALIAS, args, kwargs), + _models.DELETE_ALIAS, + [], + plugins, + ) + + @_overload + def delete_custom_key_store( + self, + request: _models.DeleteCustomKeyStoreInput + | _models.DeleteCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomKeyStoreOutput: ... + + @_overload def delete_custom_key_store( - self, input: DeleteCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomKeyStoreInputDict], ) -> DeleteCustomKeyStoreOutput: """ Deletes a [custom key @@ -1262,8 +1417,6 @@ def delete_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DeleteCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1273,10 +1426,34 @@ def delete_custom_key_store( Returns: An instance of `DeleteCustomKeyStoreOutput`. """ - return self._invoke(input, _models.DELETE_CUSTOM_KEY_STORE, [], plugins) + def delete_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomKeyStoreOutput: + return self._invoke( + self._select_input(_models.DELETE_CUSTOM_KEY_STORE, args, kwargs), + _models.DELETE_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + def delete_imported_key_material( + self, + request: _models.DeleteImportedKeyMaterialInput + | _models.DeleteImportedKeyMaterialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteImportedKeyMaterialOutput: ... + + @_overload def delete_imported_key_material( - self, input: DeleteImportedKeyMaterialInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteImportedKeyMaterialInputDict], ) -> DeleteImportedKeyMaterialOutput: """ Deletes key material that was previously imported. This operation makes @@ -1325,8 +1502,6 @@ def delete_imported_key_material( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DeleteImportedKeyMaterialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1336,10 +1511,33 @@ def delete_imported_key_material( Returns: An instance of `DeleteImportedKeyMaterialOutput`. """ - return self._invoke(input, _models.DELETE_IMPORTED_KEY_MATERIAL, [], plugins) + def delete_imported_key_material( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteImportedKeyMaterialOutput: + return self._invoke( + self._select_input(_models.DELETE_IMPORTED_KEY_MATERIAL, args, kwargs), + _models.DELETE_IMPORTED_KEY_MATERIAL, + [], + plugins, + ) + + @_overload + def derive_shared_secret( + self, + request: _models.DeriveSharedSecretInput | _models.DeriveSharedSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeriveSharedSecretOutput: ... + + @_overload def derive_shared_secret( - self, input: DeriveSharedSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeriveSharedSecretInputDict], ) -> DeriveSharedSecretOutput: """ Derives a shared secret using a key agreement algorithm. @@ -1434,8 +1632,6 @@ def derive_shared_secret( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DeriveSharedSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1445,12 +1641,34 @@ def derive_shared_secret( Returns: An instance of `DeriveSharedSecretOutput`. """ - return self._invoke(input, _models.DERIVE_SHARED_SECRET, [], plugins) + def derive_shared_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeriveSharedSecretOutput: + return self._invoke( + self._select_input(_models.DERIVE_SHARED_SECRET, args, kwargs), + _models.DERIVE_SHARED_SECRET, + [], + plugins, + ) + + @_overload + def describe_custom_key_stores( + self, + request: _models.DescribeCustomKeyStoresInput + | _models.DescribeCustomKeyStoresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCustomKeyStoresOutput: ... + + @_overload def describe_custom_key_stores( self, - input: DescribeCustomKeyStoresInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCustomKeyStoresInputDict], ) -> DescribeCustomKeyStoresOutput: """ Gets information about [custom key @@ -1516,8 +1734,6 @@ def describe_custom_key_stores( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DescribeCustomKeyStoresInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1527,10 +1743,33 @@ def describe_custom_key_stores( Returns: An instance of `DescribeCustomKeyStoresOutput`. """ - return self._invoke(input, _models.DESCRIBE_CUSTOM_KEY_STORES, [], plugins) + def describe_custom_key_stores( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCustomKeyStoresOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CUSTOM_KEY_STORES, args, kwargs), + _models.DESCRIBE_CUSTOM_KEY_STORES, + [], + plugins, + ) + + @_overload def describe_key( - self, input: DescribeKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeKeyInput | _models.DescribeKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeKeyOutput: ... + + @_overload + def describe_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeKeyInputDict], ) -> DescribeKeyOutput: """ Provides detailed information about a KMS key. You can run `DescribeKey` @@ -1608,8 +1847,6 @@ def describe_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DescribeKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1619,10 +1856,33 @@ def describe_key( Returns: An instance of `DescribeKeyOutput`. """ - return self._invoke(input, _models.DESCRIBE_KEY, [], plugins) + def describe_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeKeyOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_KEY, args, kwargs), + _models.DESCRIBE_KEY, + [], + plugins, + ) + + @_overload + def disable_key( + self, + request: _models.DisableKeyInput | _models.DisableKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableKeyOutput: ... + + @_overload def disable_key( - self, input: DisableKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableKeyInputDict], ) -> DisableKeyOutput: """ Sets the state of a KMS key to disabled. This change temporarily @@ -1649,8 +1909,6 @@ def disable_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DisableKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1660,10 +1918,33 @@ def disable_key( Returns: An instance of `DisableKeyOutput`. """ - return self._invoke(input, _models.DISABLE_KEY, [], plugins) + def disable_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableKeyOutput: + return self._invoke( + self._select_input(_models.DISABLE_KEY, args, kwargs), + _models.DISABLE_KEY, + [], + plugins, + ) + + @_overload + def disable_key_rotation( + self, + request: _models.DisableKeyRotationInput | _models.DisableKeyRotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableKeyRotationOutput: ... + + @_overload def disable_key_rotation( - self, input: DisableKeyRotationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableKeyRotationInputDict], ) -> DisableKeyRotationOutput: """ Disables [automatic rotation of the key @@ -1726,8 +2007,6 @@ def disable_key_rotation( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DisableKeyRotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1737,10 +2016,34 @@ def disable_key_rotation( Returns: An instance of `DisableKeyRotationOutput`. """ - return self._invoke(input, _models.DISABLE_KEY_ROTATION, [], plugins) + def disable_key_rotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableKeyRotationOutput: + return self._invoke( + self._select_input(_models.DISABLE_KEY_ROTATION, args, kwargs), + _models.DISABLE_KEY_ROTATION, + [], + plugins, + ) + + @_overload + def disconnect_custom_key_store( + self, + request: _models.DisconnectCustomKeyStoreInput + | _models.DisconnectCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisconnectCustomKeyStoreOutput: ... + + @_overload def disconnect_custom_key_store( - self, input: DisconnectCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisconnectCustomKeyStoreInputDict], ) -> DisconnectCustomKeyStoreOutput: """ Disconnects the [custom key @@ -1797,8 +2100,6 @@ def disconnect_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `DisconnectCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1808,10 +2109,33 @@ def disconnect_custom_key_store( Returns: An instance of `DisconnectCustomKeyStoreOutput`. """ - return self._invoke(input, _models.DISCONNECT_CUSTOM_KEY_STORE, [], plugins) + def disconnect_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisconnectCustomKeyStoreOutput: + return self._invoke( + self._select_input(_models.DISCONNECT_CUSTOM_KEY_STORE, args, kwargs), + _models.DISCONNECT_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + def enable_key( + self, + request: _models.EnableKeyInput | _models.EnableKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableKeyOutput: ... + + @_overload def enable_key( - self, input: EnableKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableKeyInputDict], ) -> EnableKeyOutput: """ Sets the key state of a KMS key to enabled. This allows you to use the @@ -1837,8 +2161,6 @@ def enable_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `EnableKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1848,10 +2170,33 @@ def enable_key( Returns: An instance of `EnableKeyOutput`. """ - return self._invoke(input, _models.ENABLE_KEY, [], plugins) + def enable_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableKeyOutput: + return self._invoke( + self._select_input(_models.ENABLE_KEY, args, kwargs), + _models.ENABLE_KEY, + [], + plugins, + ) + + @_overload + def enable_key_rotation( + self, + request: _models.EnableKeyRotationInput | _models.EnableKeyRotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableKeyRotationOutput: ... + + @_overload def enable_key_rotation( - self, input: EnableKeyRotationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableKeyRotationInputDict], ) -> EnableKeyRotationOutput: """ Enables [automatic rotation of the key @@ -1940,8 +2285,6 @@ def enable_key_rotation( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `EnableKeyRotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1951,10 +2294,33 @@ def enable_key_rotation( Returns: An instance of `EnableKeyRotationOutput`. """ - return self._invoke(input, _models.ENABLE_KEY_ROTATION, [], plugins) + def enable_key_rotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableKeyRotationOutput: + return self._invoke( + self._select_input(_models.ENABLE_KEY_ROTATION, args, kwargs), + _models.ENABLE_KEY_ROTATION, + [], + plugins, + ) + + @_overload + def encapsulate( + self, + request: _models.EncapsulateInput | _models.EncapsulateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EncapsulateOutput: ... + + @_overload def encapsulate( - self, input: EncapsulateInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EncapsulateInputDict], ) -> EncapsulateOutput: """ Generates a shared secret and its encapsulated (ciphertext) form using @@ -2001,8 +2367,6 @@ def encapsulate( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `EncapsulateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2012,10 +2376,33 @@ def encapsulate( Returns: An instance of `EncapsulateOutput`. """ - return self._invoke(input, _models.ENCAPSULATE, [], plugins) + def encapsulate( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EncapsulateOutput: + return self._invoke( + self._select_input(_models.ENCAPSULATE, args, kwargs), + _models.ENCAPSULATE, + [], + plugins, + ) + + @_overload + def encrypt( + self, + request: _models.EncryptInput | _models.EncryptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EncryptOutput: ... + + @_overload def encrypt( - self, input: EncryptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EncryptInputDict], ) -> EncryptOutput: """ Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a @@ -2106,8 +2493,6 @@ def encrypt( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `EncryptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2117,10 +2502,33 @@ def encrypt( Returns: An instance of `EncryptOutput`. """ - return self._invoke(input, _models.ENCRYPT, [], plugins) + def encrypt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EncryptOutput: + return self._invoke( + self._select_input(_models.ENCRYPT, args, kwargs), + _models.ENCRYPT, + [], + plugins, + ) + + @_overload def generate_data_key( - self, input: GenerateDataKeyInput, plugins: list[Plugin] | None = None + self, + request: _models.GenerateDataKeyInput | _models.GenerateDataKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateDataKeyOutput: ... + + @_overload + def generate_data_key( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateDataKeyInputDict], ) -> GenerateDataKeyOutput: """ Returns a unique symmetric data key for use outside of KMS. This @@ -2238,8 +2646,6 @@ def generate_data_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateDataKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2249,15 +2655,39 @@ def generate_data_key( Returns: An instance of `GenerateDataKeyOutput`. """ - return self._invoke(input, _models.GENERATE_DATA_KEY, [], plugins) + def generate_data_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateDataKeyOutput: + return self._invoke( + self._select_input(_models.GENERATE_DATA_KEY, args, kwargs), + _models.GENERATE_DATA_KEY, + [], + plugins, + ) + + @_overload def generate_data_key_pair( - self, input: GenerateDataKeyPairInput, plugins: list[Plugin] | None = None - ) -> GenerateDataKeyPairOutput: - """ - Returns a unique asymmetric data key pair for use outside of KMS. This - operation returns a plaintext public key, a plaintext private key, and a - copy of the private key that is encrypted under the symmetric encryption + self, + request: _models.GenerateDataKeyPairInput + | _models.GenerateDataKeyPairInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateDataKeyPairOutput: ... + + @_overload + def generate_data_key_pair( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateDataKeyPairInputDict], + ) -> GenerateDataKeyPairOutput: + """ + Returns a unique asymmetric data key pair for use outside of KMS. This + operation returns a plaintext public key, a plaintext private key, and a + copy of the private key that is encrypted under the symmetric encryption KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS @@ -2361,8 +2791,6 @@ def generate_data_key_pair( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateDataKeyPairInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2372,12 +2800,34 @@ def generate_data_key_pair( Returns: An instance of `GenerateDataKeyPairOutput`. """ - return self._invoke(input, _models.GENERATE_DATA_KEY_PAIR, [], plugins) + def generate_data_key_pair( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateDataKeyPairOutput: + return self._invoke( + self._select_input(_models.GENERATE_DATA_KEY_PAIR, args, kwargs), + _models.GENERATE_DATA_KEY_PAIR, + [], + plugins, + ) + + @_overload def generate_data_key_pair_without_plaintext( self, - input: GenerateDataKeyPairWithoutPlaintextInput, + request: _models.GenerateDataKeyPairWithoutPlaintextInput + | _models.GenerateDataKeyPairWithoutPlaintextInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GenerateDataKeyPairWithoutPlaintextOutput: ... + + @_overload + def generate_data_key_pair_without_plaintext( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateDataKeyPairWithoutPlaintextInputDict], ) -> GenerateDataKeyPairWithoutPlaintextOutput: """ Returns a unique asymmetric data key pair for use outside of KMS. This @@ -2455,8 +2905,6 @@ def generate_data_key_pair_without_plaintext( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateDataKeyPairWithoutPlaintextInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2466,14 +2914,36 @@ def generate_data_key_pair_without_plaintext( Returns: An instance of `GenerateDataKeyPairWithoutPlaintextOutput`. """ + + def generate_data_key_pair_without_plaintext( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateDataKeyPairWithoutPlaintextOutput: return self._invoke( - input, _models.GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT, [], plugins + self._select_input( + _models.GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT, args, kwargs + ), + _models.GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT, + [], + plugins, ) + @_overload def generate_data_key_without_plaintext( self, - input: GenerateDataKeyWithoutPlaintextInput, + request: _models.GenerateDataKeyWithoutPlaintextInput + | _models.GenerateDataKeyWithoutPlaintextInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GenerateDataKeyWithoutPlaintextOutput: ... + + @_overload + def generate_data_key_without_plaintext( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateDataKeyWithoutPlaintextInputDict], ) -> GenerateDataKeyWithoutPlaintextOutput: """ Returns a unique symmetric data key for use outside of KMS. This @@ -2557,8 +3027,6 @@ def generate_data_key_without_plaintext( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateDataKeyWithoutPlaintextInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2568,12 +3036,35 @@ def generate_data_key_without_plaintext( Returns: An instance of `GenerateDataKeyWithoutPlaintextOutput`. """ + + def generate_data_key_without_plaintext( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateDataKeyWithoutPlaintextOutput: return self._invoke( - input, _models.GENERATE_DATA_KEY_WITHOUT_PLAINTEXT, [], plugins + self._select_input( + _models.GENERATE_DATA_KEY_WITHOUT_PLAINTEXT, args, kwargs + ), + _models.GENERATE_DATA_KEY_WITHOUT_PLAINTEXT, + [], + plugins, ) + @_overload + def generate_mac( + self, + request: _models.GenerateMacInput | _models.GenerateMacInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GenerateMacOutput: ... + + @_overload def generate_mac( - self, input: GenerateMacInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateMacInputDict], ) -> GenerateMacOutput: """ Generates a hash-based message authentication code (HMAC) for a message @@ -2620,8 +3111,6 @@ def generate_mac( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateMacInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2631,12 +3120,33 @@ def generate_mac( Returns: An instance of `GenerateMacOutput`. """ - return self._invoke(input, _models.GENERATE_MAC, [], plugins) + def generate_mac( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateMacOutput: + return self._invoke( + self._select_input(_models.GENERATE_MAC, args, kwargs), + _models.GENERATE_MAC, + [], + plugins, + ) + + @_overload def generate_random( self, - input: GenerateRandomInput | None = None, + request: _models.GenerateRandomInput | _models.GenerateRandomInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GenerateRandomOutput: ... + + @_overload + def generate_random( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GenerateRandomInputDict], ) -> GenerateRandomOutput: """ Returns a random byte string that is cryptographically secure. @@ -2681,8 +3191,6 @@ def generate_random( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GenerateRandomInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2692,10 +3200,33 @@ def generate_random( Returns: An instance of `GenerateRandomOutput`. """ - return self._invoke(input, _models.GENERATE_RANDOM, [], plugins) + def generate_random( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GenerateRandomOutput: + return self._invoke( + self._select_input(_models.GENERATE_RANDOM, args, kwargs), + _models.GENERATE_RANDOM, + [], + plugins, + ) + + @_overload + def get_key_last_usage( + self, + request: _models.GetKeyLastUsageInput | _models.GetKeyLastUsageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyLastUsageOutput: ... + + @_overload def get_key_last_usage( - self, input: GetKeyLastUsageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyLastUsageInputDict], ) -> GetKeyLastUsageOutput: """ Returns usage information about the last successful cryptographic @@ -2763,8 +3294,6 @@ def get_key_last_usage( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetKeyLastUsageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2774,10 +3303,33 @@ def get_key_last_usage( Returns: An instance of `GetKeyLastUsageOutput`. """ - return self._invoke(input, _models.GET_KEY_LAST_USAGE, [], plugins) + def get_key_last_usage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyLastUsageOutput: + return self._invoke( + self._select_input(_models.GET_KEY_LAST_USAGE, args, kwargs), + _models.GET_KEY_LAST_USAGE, + [], + plugins, + ) + + @_overload def get_key_policy( - self, input: GetKeyPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetKeyPolicyInput | _models.GetKeyPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyPolicyOutput: ... + + @_overload + def get_key_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyPolicyInputDict], ) -> GetKeyPolicyOutput: """ Gets a key policy attached to the specified KMS key. @@ -2797,8 +3349,6 @@ def get_key_policy( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetKeyPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2808,10 +3358,34 @@ def get_key_policy( Returns: An instance of `GetKeyPolicyOutput`. """ - return self._invoke(input, _models.GET_KEY_POLICY, [], plugins) + def get_key_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyPolicyOutput: + return self._invoke( + self._select_input(_models.GET_KEY_POLICY, args, kwargs), + _models.GET_KEY_POLICY, + [], + plugins, + ) + + @_overload def get_key_rotation_status( - self, input: GetKeyRotationStatusInput, plugins: list[Plugin] | None = None + self, + request: _models.GetKeyRotationStatusInput + | _models.GetKeyRotationStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetKeyRotationStatusOutput: ... + + @_overload + def get_key_rotation_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetKeyRotationStatusInputDict], ) -> GetKeyRotationStatusOutput: """ Provides detailed information about the rotation status for a KMS key, @@ -2896,8 +3470,6 @@ def get_key_rotation_status( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetKeyRotationStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2907,10 +3479,34 @@ def get_key_rotation_status( Returns: An instance of `GetKeyRotationStatusOutput`. """ - return self._invoke(input, _models.GET_KEY_ROTATION_STATUS, [], plugins) + def get_key_rotation_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetKeyRotationStatusOutput: + return self._invoke( + self._select_input(_models.GET_KEY_ROTATION_STATUS, args, kwargs), + _models.GET_KEY_ROTATION_STATUS, + [], + plugins, + ) + + @_overload def get_parameters_for_import( - self, input: GetParametersForImportInput, plugins: list[Plugin] | None = None + self, + request: _models.GetParametersForImportInput + | _models.GetParametersForImportInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetParametersForImportOutput: ... + + @_overload + def get_parameters_for_import( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetParametersForImportInputDict], ) -> GetParametersForImportOutput: """ Returns the public key and an import token you need to import or @@ -2993,8 +3589,6 @@ def get_parameters_for_import( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetParametersForImportInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3004,10 +3598,33 @@ def get_parameters_for_import( Returns: An instance of `GetParametersForImportOutput`. """ - return self._invoke(input, _models.GET_PARAMETERS_FOR_IMPORT, [], plugins) + def get_parameters_for_import( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetParametersForImportOutput: + return self._invoke( + self._select_input(_models.GET_PARAMETERS_FOR_IMPORT, args, kwargs), + _models.GET_PARAMETERS_FOR_IMPORT, + [], + plugins, + ) + + @_overload + def get_public_key( + self, + request: _models.GetPublicKeyInput | _models.GetPublicKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPublicKeyOutput: ... + + @_overload def get_public_key( - self, input: GetPublicKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPublicKeyInputDict], ) -> GetPublicKeyOutput: """ Returns the public key of an asymmetric KMS key. Unlike the private key @@ -3080,8 +3697,6 @@ def get_public_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `GetPublicKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3091,10 +3706,33 @@ def get_public_key( Returns: An instance of `GetPublicKeyOutput`. """ - return self._invoke(input, _models.GET_PUBLIC_KEY, [], plugins) + def get_public_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPublicKeyOutput: + return self._invoke( + self._select_input(_models.GET_PUBLIC_KEY, args, kwargs), + _models.GET_PUBLIC_KEY, + [], + plugins, + ) + + @_overload + def import_key_material( + self, + request: _models.ImportKeyMaterialInput | _models.ImportKeyMaterialInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ImportKeyMaterialOutput: ... + + @_overload def import_key_material( - self, input: ImportKeyMaterialInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ImportKeyMaterialInputDict], ) -> ImportKeyMaterialOutput: """ Imports or reimports key material into an existing KMS key that was @@ -3239,8 +3877,6 @@ def import_key_material( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ImportKeyMaterialInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3250,10 +3886,33 @@ def import_key_material( Returns: An instance of `ImportKeyMaterialOutput`. """ - return self._invoke(input, _models.IMPORT_KEY_MATERIAL, [], plugins) + def import_key_material( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ImportKeyMaterialOutput: + return self._invoke( + self._select_input(_models.IMPORT_KEY_MATERIAL, args, kwargs), + _models.IMPORT_KEY_MATERIAL, + [], + plugins, + ) + + @_overload + def list_aliases( + self, + request: _models.ListAliasesInput | _models.ListAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAliasesOutput: ... + + @_overload def list_aliases( - self, input: ListAliasesInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAliasesInputDict], ) -> ListAliasesOutput: """ Gets a list of aliases in the caller's Amazon Web Services account and @@ -3301,8 +3960,6 @@ def list_aliases( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3312,10 +3969,33 @@ def list_aliases( Returns: An instance of `ListAliasesOutput`. """ - return self._invoke(input, _models.LIST_ALIASES, [], plugins) + def list_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAliasesOutput: + return self._invoke( + self._select_input(_models.LIST_ALIASES, args, kwargs), + _models.LIST_ALIASES, + [], + plugins, + ) + + @_overload + def list_grants( + self, + request: _models.ListGrantsInput | _models.ListGrantsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGrantsOutput: ... + + @_overload def list_grants( - self, input: ListGrantsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGrantsInputDict], ) -> ListGrantsOutput: """ Gets a list of all grants for the specified KMS key. @@ -3369,8 +4049,6 @@ def list_grants( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListGrantsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3380,10 +4058,33 @@ def list_grants( Returns: An instance of `ListGrantsOutput`. """ - return self._invoke(input, _models.LIST_GRANTS, [], plugins) + def list_grants( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGrantsOutput: + return self._invoke( + self._select_input(_models.LIST_GRANTS, args, kwargs), + _models.LIST_GRANTS, + [], + plugins, + ) + + @_overload + def list_key_policies( + self, + request: _models.ListKeyPoliciesInput | _models.ListKeyPoliciesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeyPoliciesOutput: ... + + @_overload def list_key_policies( - self, input: ListKeyPoliciesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeyPoliciesInputDict], ) -> ListKeyPoliciesOutput: """ Gets the names of the key policies that are attached to a KMS key. This @@ -3409,8 +4110,6 @@ def list_key_policies( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListKeyPoliciesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3420,10 +4119,33 @@ def list_key_policies( Returns: An instance of `ListKeyPoliciesOutput`. """ - return self._invoke(input, _models.LIST_KEY_POLICIES, [], plugins) + def list_key_policies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeyPoliciesOutput: + return self._invoke( + self._select_input(_models.LIST_KEY_POLICIES, args, kwargs), + _models.LIST_KEY_POLICIES, + [], + plugins, + ) + + @_overload def list_key_rotations( - self, input: ListKeyRotationsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListKeyRotationsInput | _models.ListKeyRotationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeyRotationsOutput: ... + + @_overload + def list_key_rotations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeyRotationsInputDict], ) -> ListKeyRotationsOutput: """ Returns information about the key materials associated with the @@ -3464,8 +4186,6 @@ def list_key_rotations( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListKeyRotationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3475,10 +4195,33 @@ def list_key_rotations( Returns: An instance of `ListKeyRotationsOutput`. """ - return self._invoke(input, _models.LIST_KEY_ROTATIONS, [], plugins) + def list_key_rotations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeyRotationsOutput: + return self._invoke( + self._select_input(_models.LIST_KEY_ROTATIONS, args, kwargs), + _models.LIST_KEY_ROTATIONS, + [], + plugins, + ) + + @_overload def list_keys( - self, input: ListKeysInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListKeysInput | _models.ListKeysInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListKeysOutput: ... + + @_overload + def list_keys( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListKeysInputDict], ) -> ListKeysOutput: """ Gets a list of all KMS keys in the caller's Amazon Web Services account @@ -3506,8 +4249,6 @@ def list_keys( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListKeysInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3517,10 +4258,33 @@ def list_keys( Returns: An instance of `ListKeysOutput`. """ - return self._invoke(input, _models.LIST_KEYS, [], plugins) + def list_keys( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListKeysOutput: + return self._invoke( + self._select_input(_models.LIST_KEYS, args, kwargs), + _models.LIST_KEYS, + [], + plugins, + ) + + @_overload def list_resource_tags( - self, input: ListResourceTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListResourceTagsInput | _models.ListResourceTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResourceTagsOutput: ... + + @_overload + def list_resource_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourceTagsInputDict], ) -> ListResourceTagsOutput: """ Returns all tags on the specified KMS key. @@ -3554,8 +4318,6 @@ def list_resource_tags( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListResourceTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3565,12 +4327,34 @@ def list_resource_tags( Returns: An instance of `ListResourceTagsOutput`. """ - return self._invoke(input, _models.LIST_RESOURCE_TAGS, [], plugins) + def list_resource_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourceTagsOutput: + return self._invoke( + self._select_input(_models.LIST_RESOURCE_TAGS, args, kwargs), + _models.LIST_RESOURCE_TAGS, + [], + plugins, + ) + + @_overload def list_retirable_grants( self, - input: ListRetirableGrantsInput | None = None, + request: _models.ListRetirableGrantsInput + | _models.ListRetirableGrantsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListRetirableGrantsOutput: ... + + @_overload + def list_retirable_grants( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRetirableGrantsInputDict], ) -> ListRetirableGrantsOutput: """ Returns information about all grants in the Amazon Web Services account @@ -3630,8 +4414,6 @@ def list_retirable_grants( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ListRetirableGrantsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3641,10 +4423,33 @@ def list_retirable_grants( Returns: An instance of `ListRetirableGrantsOutput`. """ - return self._invoke(input, _models.LIST_RETIRABLE_GRANTS, [], plugins) + def list_retirable_grants( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRetirableGrantsOutput: + return self._invoke( + self._select_input(_models.LIST_RETIRABLE_GRANTS, args, kwargs), + _models.LIST_RETIRABLE_GRANTS, + [], + plugins, + ) + + @_overload def put_key_policy( - self, input: PutKeyPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutKeyPolicyInput | _models.PutKeyPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutKeyPolicyOutput: ... + + @_overload + def put_key_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutKeyPolicyInputDict], ) -> PutKeyPolicyOutput: """ Attaches a key policy to the specified KMS key. @@ -3674,8 +4479,6 @@ def put_key_policy( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `PutKeyPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3685,10 +4488,33 @@ def put_key_policy( Returns: An instance of `PutKeyPolicyOutput`. """ - return self._invoke(input, _models.PUT_KEY_POLICY, [], plugins) + def put_key_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutKeyPolicyOutput: + return self._invoke( + self._select_input(_models.PUT_KEY_POLICY, args, kwargs), + _models.PUT_KEY_POLICY, + [], + plugins, + ) + + @_overload + def re_encrypt( + self, + request: _models.ReEncryptInput | _models.ReEncryptInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReEncryptOutput: ... + + @_overload def re_encrypt( - self, input: ReEncryptInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReEncryptInputDict], ) -> ReEncryptOutput: """ Decrypts ciphertext and then reencrypts it entirely within KMS. You can @@ -3809,8 +4635,6 @@ def re_encrypt( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ReEncryptInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3820,10 +4644,33 @@ def re_encrypt( Returns: An instance of `ReEncryptOutput`. """ - return self._invoke(input, _models.RE_ENCRYPT, [], plugins) + def re_encrypt( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReEncryptOutput: + return self._invoke( + self._select_input(_models.RE_ENCRYPT, args, kwargs), + _models.RE_ENCRYPT, + [], + plugins, + ) + + @_overload + def replicate_key( + self, + request: _models.ReplicateKeyInput | _models.ReplicateKeyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplicateKeyOutput: ... + + @_overload def replicate_key( - self, input: ReplicateKeyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplicateKeyInputDict], ) -> ReplicateKeyOutput: """ Replicates a multi-Region key into the specified Region. This operation @@ -3923,8 +4770,6 @@ def replicate_key( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ReplicateKeyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3934,10 +4779,33 @@ def replicate_key( Returns: An instance of `ReplicateKeyOutput`. """ - return self._invoke(input, _models.REPLICATE_KEY, [], plugins) + def replicate_key( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplicateKeyOutput: + return self._invoke( + self._select_input(_models.REPLICATE_KEY, args, kwargs), + _models.REPLICATE_KEY, + [], + plugins, + ) + + @_overload + def retire_grant( + self, + request: _models.RetireGrantInput | _models.RetireGrantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RetireGrantOutput: ... + + @_overload def retire_grant( - self, input: RetireGrantInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RetireGrantInputDict], ) -> RetireGrantOutput: """ Deletes a grant. Typically, you retire a grant when you no longer need @@ -3983,8 +4851,6 @@ def retire_grant( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `RetireGrantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3994,10 +4860,33 @@ def retire_grant( Returns: An instance of `RetireGrantOutput`. """ - return self._invoke(input, _models.RETIRE_GRANT, [], plugins) + def retire_grant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RetireGrantOutput: + return self._invoke( + self._select_input(_models.RETIRE_GRANT, args, kwargs), + _models.RETIRE_GRANT, + [], + plugins, + ) + + @_overload + def revoke_grant( + self, + request: _models.RevokeGrantInput | _models.RevokeGrantInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeGrantOutput: ... + + @_overload def revoke_grant( - self, input: RevokeGrantInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeGrantInputDict], ) -> RevokeGrantOutput: """ Deletes the specified grant. You revoke a grant to terminate the @@ -4044,8 +4933,6 @@ def revoke_grant( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `RevokeGrantInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4055,10 +4942,33 @@ def revoke_grant( Returns: An instance of `RevokeGrantOutput`. """ - return self._invoke(input, _models.REVOKE_GRANT, [], plugins) + def revoke_grant( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeGrantOutput: + return self._invoke( + self._select_input(_models.REVOKE_GRANT, args, kwargs), + _models.REVOKE_GRANT, + [], + plugins, + ) + + @_overload def rotate_key_on_demand( - self, input: RotateKeyOnDemandInput, plugins: list[Plugin] | None = None + self, + request: _models.RotateKeyOnDemandInput | _models.RotateKeyOnDemandInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RotateKeyOnDemandOutput: ... + + @_overload + def rotate_key_on_demand( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RotateKeyOnDemandInputDict], ) -> RotateKeyOnDemandOutput: """ Immediately initiates rotation of the key material of the specified @@ -4143,8 +5053,6 @@ def rotate_key_on_demand( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `RotateKeyOnDemandInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4154,10 +5062,34 @@ def rotate_key_on_demand( Returns: An instance of `RotateKeyOnDemandOutput`. """ - return self._invoke(input, _models.ROTATE_KEY_ON_DEMAND, [], plugins) + def rotate_key_on_demand( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RotateKeyOnDemandOutput: + return self._invoke( + self._select_input(_models.ROTATE_KEY_ON_DEMAND, args, kwargs), + _models.ROTATE_KEY_ON_DEMAND, + [], + plugins, + ) + + @_overload def schedule_key_deletion( - self, input: ScheduleKeyDeletionInput, plugins: list[Plugin] | None = None + self, + request: _models.ScheduleKeyDeletionInput + | _models.ScheduleKeyDeletionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ScheduleKeyDeletionOutput: ... + + @_overload + def schedule_key_deletion( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ScheduleKeyDeletionInputDict], ) -> ScheduleKeyDeletionOutput: """ Schedules the deletion of a KMS key. By default, KMS applies a waiting @@ -4234,8 +5166,6 @@ def schedule_key_deletion( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `ScheduleKeyDeletionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4245,9 +5175,34 @@ def schedule_key_deletion( Returns: An instance of `ScheduleKeyDeletionOutput`. """ - return self._invoke(input, _models.SCHEDULE_KEY_DELETION, [], plugins) - def sign(self, input: SignInput, plugins: list[Plugin] | None = None) -> SignOutput: + def schedule_key_deletion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ScheduleKeyDeletionOutput: + return self._invoke( + self._select_input(_models.SCHEDULE_KEY_DELETION, args, kwargs), + _models.SCHEDULE_KEY_DELETION, + [], + plugins, + ) + + @_overload + def sign( + self, + request: _models.SignInput | _models.SignInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SignOutput: ... + + @_overload + def sign( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SignInputDict], + ) -> SignOutput: """ Creates a [digital signature](https://en.wikipedia.org/wiki/Digital_signature) for a @@ -4316,8 +5271,6 @@ def sign(self, input: SignInput, plugins: list[Plugin] | None = None) -> SignOut consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `SignInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4327,10 +5280,30 @@ def sign(self, input: SignInput, plugins: list[Plugin] | None = None) -> SignOut Returns: An instance of `SignOutput`. """ - return self._invoke(input, _models.SIGN, [], plugins) + def sign( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SignOutput: + return self._invoke( + self._select_input(_models.SIGN, args, kwargs), _models.SIGN, [], plugins + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds or edits tags on a [customer managed @@ -4395,8 +5368,6 @@ def tag_resource( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4406,10 +5377,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Deletes tags from a [customer managed @@ -4461,8 +5455,6 @@ def untag_resource( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4472,10 +5464,33 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_alias( + self, + request: _models.UpdateAliasInput | _models.UpdateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAliasOutput: ... + + @_overload def update_alias( - self, input: UpdateAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAliasInputDict], ) -> UpdateAliasOutput: """ Associates an existing KMS alias with a different KMS key. Each alias is @@ -4541,8 +5556,6 @@ def update_alias( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UpdateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4552,10 +5565,34 @@ def update_alias( Returns: An instance of `UpdateAliasOutput`. """ - return self._invoke(input, _models.UPDATE_ALIAS, [], plugins) + def update_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAliasOutput: + return self._invoke( + self._select_input(_models.UPDATE_ALIAS, args, kwargs), + _models.UPDATE_ALIAS, + [], + plugins, + ) + + @_overload + def update_custom_key_store( + self, + request: _models.UpdateCustomKeyStoreInput + | _models.UpdateCustomKeyStoreInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCustomKeyStoreOutput: ... + + @_overload def update_custom_key_store( - self, input: UpdateCustomKeyStoreInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCustomKeyStoreInputDict], ) -> UpdateCustomKeyStoreOutput: """ Changes the properties of a custom key store. You can use this operation @@ -4656,8 +5693,6 @@ def update_custom_key_store( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UpdateCustomKeyStoreInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4667,10 +5702,34 @@ def update_custom_key_store( Returns: An instance of `UpdateCustomKeyStoreOutput`. """ - return self._invoke(input, _models.UPDATE_CUSTOM_KEY_STORE, [], plugins) + def update_custom_key_store( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCustomKeyStoreOutput: + return self._invoke( + self._select_input(_models.UPDATE_CUSTOM_KEY_STORE, args, kwargs), + _models.UPDATE_CUSTOM_KEY_STORE, + [], + plugins, + ) + + @_overload + def update_key_description( + self, + request: _models.UpdateKeyDescriptionInput + | _models.UpdateKeyDescriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateKeyDescriptionOutput: ... + + @_overload def update_key_description( - self, input: UpdateKeyDescriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateKeyDescriptionInputDict], ) -> UpdateKeyDescriptionOutput: """ Updates the description of a KMS key. To see the description of a KMS @@ -4699,8 +5758,6 @@ def update_key_description( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UpdateKeyDescriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4710,10 +5767,34 @@ def update_key_description( Returns: An instance of `UpdateKeyDescriptionOutput`. """ - return self._invoke(input, _models.UPDATE_KEY_DESCRIPTION, [], plugins) + def update_key_description( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateKeyDescriptionOutput: + return self._invoke( + self._select_input(_models.UPDATE_KEY_DESCRIPTION, args, kwargs), + _models.UPDATE_KEY_DESCRIPTION, + [], + plugins, + ) + + @_overload def update_primary_region( - self, input: UpdatePrimaryRegionInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdatePrimaryRegionInput + | _models.UpdatePrimaryRegionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePrimaryRegionOutput: ... + + @_overload + def update_primary_region( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePrimaryRegionInputDict], ) -> UpdatePrimaryRegionOutput: """ Changes the primary key of a multi-Region key. @@ -4806,8 +5887,6 @@ def update_primary_region( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `UpdatePrimaryRegionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4817,10 +5896,33 @@ def update_primary_region( Returns: An instance of `UpdatePrimaryRegionOutput`. """ - return self._invoke(input, _models.UPDATE_PRIMARY_REGION, [], plugins) + def update_primary_region( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePrimaryRegionOutput: + return self._invoke( + self._select_input(_models.UPDATE_PRIMARY_REGION, args, kwargs), + _models.UPDATE_PRIMARY_REGION, + [], + plugins, + ) + + @_overload def verify( - self, input: VerifyInput, plugins: list[Plugin] | None = None + self, + request: _models.VerifyInput | _models.VerifyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> VerifyOutput: ... + + @_overload + def verify( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.VerifyInputDict], ) -> VerifyOutput: """ Verifies a digital signature that was generated by the Sign operation. @@ -4880,8 +5982,6 @@ def verify( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `VerifyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4891,10 +5991,33 @@ def verify( Returns: An instance of `VerifyOutput`. """ - return self._invoke(input, _models.VERIFY, [], plugins) + def verify( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> VerifyOutput: + return self._invoke( + self._select_input(_models.VERIFY, args, kwargs), + _models.VERIFY, + [], + plugins, + ) + + @_overload def verify_mac( - self, input: VerifyMacInput, plugins: list[Plugin] | None = None + self, + request: _models.VerifyMacInput | _models.VerifyMacInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> VerifyMacOutput: ... + + @_overload + def verify_mac( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.VerifyMacInputDict], ) -> VerifyMacOutput: """ Verifies the hash-based message authentication code (HMAC) for a @@ -4935,8 +6058,6 @@ def verify_mac( consistency](https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency). Args: - input: - An instance of `VerifyMacInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4946,7 +6067,16 @@ def verify_mac( Returns: An instance of `VerifyMacOutput`. """ - return self._invoke(input, _models.VERIFY_MAC, [], plugins) + + def verify_mac( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> VerifyMacOutput: + return self._invoke( + self._select_input(_models.VERIFY_MAC, args, kwargs), + _models.VERIFY_MAC, + [], + plugins, + ) def _new_config(self) -> KMSConfig: return KMSConfig.resolve() diff --git a/clients/aws-sdk-kms/src/aws_sdk_kms/models.pyi b/clients/aws-sdk-kms/src/aws_sdk_kms/models.pyi index 4910e64bb..582ffc4ba 100644 --- a/clients/aws-sdk-kms/src/aws_sdk_kms/models.pyi +++ b/clients/aws-sdk-kms/src/aws_sdk_kms/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self +from typing import Required, Self, TypedDict from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -94,6 +95,26 @@ class CancelKeyDeletionInput(_SerdeShape): DescribeKey. """ +class CancelKeyDeletionInputDict(TypedDict, total=False): + """Dictionary form of `CancelKeyDeletionInput`.""" + + key_id: Required[str] + """ + Identifies the KMS key whose deletion is being canceled. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + @dataclass(kw_only=True) class CancelKeyDeletionOutput(_SerdeShape): """Dataclass for CancelKeyDeletionOutput structure.""" @@ -275,6 +296,16 @@ class ConnectCustomKeyStoreInput(_SerdeShape): operation. """ +class ConnectCustomKeyStoreInputDict(TypedDict, total=False): + """Dictionary form of `ConnectCustomKeyStoreInput`.""" + + custom_key_store_id: Required[str] + """ + Enter the key store ID of the custom key store that you want to connect. + To find the ID of a custom key store, use the DescribeCustomKeyStores + operation. + """ + @dataclass(kw_only=True) class ConnectCustomKeyStoreOutput(_SerdeShape): """Dataclass for ConnectCustomKeyStoreOutput structure.""" @@ -361,6 +392,50 @@ class CreateAliasInput(_SerdeShape): DescribeKey. """ +class CreateAliasInputDict(TypedDict, total=False): + """Dictionary form of `CreateAliasInput`.""" + + alias_name: Required[str] + """ + Specifies the alias name. This value must begin with `alias/` followed + by a name, such as `alias/ExampleAlias`. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + The `AliasName` value must be string of 1-256 characters. It can contain + only alphanumeric characters, forward slashes (/), underscores (_), and + dashes (-). The alias name cannot begin with `alias/aws/`. The + `alias/aws/` prefix is reserved for [Amazon Web Services managed + keys](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-key). + """ + target_key_id: Required[str] + """ + Associates the alias with the specified [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-mgn-key). + The KMS key must be in the same Amazon Web Services Region. + + A valid key ID is required. If you supply a null or empty string value, + this operation returns an error. + + For help finding the key ID and ARN, see [Find the key ID and key + ARN](https://docs.aws.amazon.com/kms/latest/developerguide/find-cmk-id-arn.html) + in the Key Management Service Developer Guide . + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + @dataclass(kw_only=True) class CreateAliasOutput(_SerdeShape): """Dataclass for CreateAliasOutput structure.""" @@ -457,7 +532,7 @@ class CreateCustomKeyStoreInput(_SerdeShape): The value of this parameter must begin with `https://`. The remainder can contain upper and lower case letters (A-Z and a-z), numbers (0-9), - dots (`.`), and hyphens (`-`). Additional slashes (`/` and ``) are not + dots (`.`), and hyphens (`-`). Additional slashes (`/` and `\\`) are not permitted. **Uniqueness requirements:** @@ -569,6 +644,203 @@ class CreateCustomKeyStoreInput(_SerdeShape): outside of Amazon Web Services such as in your corporate data center. """ +class CreateCustomKeyStoreInputDict(TypedDict, total=False): + """Dictionary form of `CreateCustomKeyStoreInput`.""" + + custom_key_store_name: Required[str] + """ + Specifies a friendly name for the custom key store. The name must be + unique in your Amazon Web Services account and Region. This parameter is + required for all custom key stores. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + """ + cloud_hsm_cluster_id: str | None + """ + Identifies the CloudHSM cluster for an CloudHSM key store. This + parameter is required for custom key stores with `CustomKeyStoreType` of + `AWS_CLOUDHSM`. + + Enter the cluster ID of any active CloudHSM cluster that is not already + associated with a custom key store. To find the cluster ID, use the + [DescribeClusters](https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) + operation. + """ + trust_anchor_certificate: str | None + """ + Specifies the certificate for an CloudHSM key store. This parameter is + required for custom key stores with a `CustomKeyStoreType` of + `AWS_CLOUDHSM`. + + Enter the content of the trust anchor certificate for the CloudHSM + cluster. This is the content of the `customerCA.crt` file that you + created when you [initialized the + cluster](https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html). + """ + key_store_password: str | None + """ + Specifies the `kmsuser` password for an CloudHSM key store. This + parameter is required for custom key stores with a `CustomKeyStoreType` + of `AWS_CLOUDHSM`. + + Enter the password of the [`kmsuser` crypto user (CU) + account](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-cloudhsm.html#concept-kmsuser) + in the specified CloudHSM cluster. KMS logs into the cluster as this + user to manage key material on your behalf. + + The password must be a string of 7 to 32 characters. Its value is case + sensitive. + + This parameter tells KMS the `kmsuser` account password; it does not + change the password in the CloudHSM cluster. + """ + custom_key_store_type: str | None + """ + Specifies the type of custom key store. The default value is + `AWS_CLOUDHSM`. + + For a custom key store backed by an CloudHSM cluster, omit the parameter + or enter `AWS_CLOUDHSM`. For a custom key store backed by an external + key manager outside of Amazon Web Services, enter `EXTERNAL_KEY_STORE`. + You cannot change this property after the key store is created. + """ + xks_proxy_uri_endpoint: str | None + """ + Specifies the endpoint that KMS uses to send requests to the external + key store proxy (XKS proxy). This parameter is required for custom key + stores with a `CustomKeyStoreType` of `EXTERNAL_KEY_STORE`. + + The protocol must be HTTPS. KMS communicates on port 443. Do not specify + the port in the `XksProxyUriEndpoint` value. + + For external key stores with `XksProxyConnectivity` value of + `VPC_ENDPOINT_SERVICE`, specify `https://` followed by the private DNS + name of the VPC endpoint service. + + For external key stores with `PUBLIC_ENDPOINT` connectivity, this + endpoint must be reachable before you create the custom key store. KMS + connects to the external key store proxy while creating the custom key + store. For external key stores with `VPC_ENDPOINT_SERVICE` connectivity, + KMS connects when you call the ConnectCustomKeyStore operation. + + The value of this parameter must begin with `https://`. The remainder + can contain upper and lower case letters (A-Z and a-z), numbers (0-9), + dots (`.`), and hyphens (`-`). Additional slashes (`/` and `\\`) are not + permitted. + + **Uniqueness requirements:** + + - The combined `XksProxyUriEndpoint` and `XksProxyUriPath` values must + be unique in the Amazon Web Services account and Region. + + - An external key store with `PUBLIC_ENDPOINT` connectivity cannot use + the same `XksProxyUriEndpoint` value as an external key store with + `VPC_ENDPOINT_SERVICE` connectivity in this Amazon Web Services + Region. + + - Each external key store with `VPC_ENDPOINT_SERVICE` connectivity must + have its own private DNS name. The `XksProxyUriEndpoint` value for + external key stores with `VPC_ENDPOINT_SERVICE` connectivity (private + DNS name) must be unique in the Amazon Web Services account and + Region. + """ + xks_proxy_uri_path: str | None + """ + Specifies the base path to the proxy APIs for this external key store. + To find this value, see the documentation for your external key store + proxy. This parameter is required for all custom key stores with a + `CustomKeyStoreType` of `EXTERNAL_KEY_STORE`. + + The value must start with `/` and must end with `/kms/xks/v1` where `v1` + represents the version of the KMS external key store proxy API. This + path can include an optional prefix between the required elements such + as `/`*`prefix`*`/kms/xks/v1`. + + **Uniqueness requirements:** + + - The combined `XksProxyUriEndpoint` and `XksProxyUriPath` values must + be unique in the Amazon Web Services account and Region. + """ + xks_proxy_vpc_endpoint_service_name: str | None + """ + Specifies the name of the Amazon VPC endpoint service for interface + endpoints that is used to communicate with your external key store proxy + (XKS proxy). This parameter is required when the value of + `CustomKeyStoreType` is `EXTERNAL_KEY_STORE` and the value of + `XksProxyConnectivity` is `VPC_ENDPOINT_SERVICE`. + + The Amazon VPC endpoint service must [fulfill all + requirements](https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keystore.html#xks-requirements) + for use with an external key store. + + **Uniqueness requirements:** + + - External key stores with `VPC_ENDPOINT_SERVICE` connectivity can share + an Amazon VPC, but each external key store must have its own VPC + endpoint service and private DNS name. + """ + xks_proxy_vpc_endpoint_service_owner: str | None + """ + Specifies the Amazon Web Services account ID that owns the Amazon VPC + service endpoint for the interface that is used to communicate with your + external key store proxy (XKS proxy). This parameter is optional. If not + provided, the Amazon Web Services account ID calling the action will be + used. + """ + xks_proxy_authentication_credential: ( + XksProxyAuthenticationCredentialType + | XksProxyAuthenticationCredentialTypeDict + | None + ) + """ + Specifies an authentication credential for the external key store proxy + (XKS proxy). This parameter is required for all custom key stores with a + `CustomKeyStoreType` of `EXTERNAL_KEY_STORE`. + + The `XksProxyAuthenticationCredential` has two required elements: + `RawSecretAccessKey`, a secret key, and `AccessKeyId`, a unique + identifier for the `RawSecretAccessKey`. For character requirements, see + [XksProxyAuthenticationCredentialType](API_XksProxyAuthenticationCredentialType.html). + + KMS uses this authentication credential to sign requests to the external + key store proxy on your behalf. This credential is unrelated to Identity + and Access Management (IAM) and Amazon Web Services credentials. + + This parameter doesn't set or change the authentication credentials on + the XKS proxy. It just tells KMS the credential that you established on + your external key store proxy. If you rotate your proxy authentication + credential, use the UpdateCustomKeyStore operation to provide the new + credential to KMS. + """ + xks_proxy_connectivity: str | None + """ + Indicates how KMS communicates with the external key store proxy. This + parameter is required for custom key stores with a `CustomKeyStoreType` + of `EXTERNAL_KEY_STORE`. + + If the external key store proxy uses a public endpoint, specify + `PUBLIC_ENDPOINT`. If the external key store proxy uses a Amazon VPC + endpoint service for communication with KMS, specify + `VPC_ENDPOINT_SERVICE`. For help making this choice, see [Choosing a + connectivity + option](https://docs.aws.amazon.com/kms/latest/developerguide/choose-xks-connectivity.html) + in the *Key Management Service Developer Guide*. + + An Amazon VPC endpoint service keeps your communication with KMS in a + private address space entirely within Amazon Web Services, but it + requires more configuration, including establishing a Amazon VPC with + multiple subnets, a VPC endpoint service, a network load balancer, and a + verified private DNS name. A public endpoint is simpler to set up, but + it might be slower and might not fulfill your security requirements. You + might consider testing with a public endpoint, and then establishing a + VPC endpoint service for production tasks. Note that this choice does + not determine the location of the external key store proxy. Even if you + choose a VPC endpoint service, the proxy can be hosted within the VPC or + outside of Amazon Web Services such as in your corporate data center. + """ + @dataclass(kw_only=True) class CreateCustomKeyStoreOutput(_SerdeShape): """Dataclass for CreateCustomKeyStoreOutput structure.""" @@ -771,18 +1043,205 @@ class CreateGrantInput(_SerdeShape): `RetiringServicePrincipal`, but not both. """ -@dataclass(kw_only=True) -class CreateGrantOutput(_SerdeShape): - """Dataclass for CreateGrantOutput structure.""" +class CreateGrantInputDict(TypedDict, total=False): + """Dictionary form of `CreateGrantInput`.""" - grant_token: str | None = ... + key_id: Required[str] """ - The grant token. + Identifies the KMS key for the grant. The grant gives principals + permission to use this KMS key. - Use a grant token when your permission to call this operation comes from - a new grant that has not yet achieved *eventual consistency*. For more - information, see [Grant - token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + Specify the key ID or key ARN of the KMS key. To specify a KMS key in a + different Amazon Web Services account, you must use the key ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + grantee_principal: str | None + """ + The identity that gets the permissions specified in the grant. + + To specify the grantee principal, use the Amazon Resource Name (ARN) of + an Amazon Web Services principal. Valid principals include Amazon Web + Services accounts, IAM users, IAM roles, federated users, and assumed + role users. For help with the ARN syntax for a principal, see [IAM + ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns) + in the Identity and Access Management User Guide . + + You must specify either `GranteePrincipal` or `GranteeServicePrincipal`, + but not both. + """ + retiring_principal: str | None + """ + The principal that has permission to use the RetireGrant operation to + retire the grant. + + To specify the principal, use the [Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + of an Amazon Web Services principal. Valid principals include Amazon Web + Services accounts, IAM users, IAM roles, federated users, and assumed + role users. For help with the ARN syntax for a principal, see [IAM + ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns) + in the Identity and Access Management User Guide . + + The grant determines the retiring principal. Other principals might have + permission to retire the grant or revoke the grant. For details, see + RevokeGrant and [Retiring and revoking + grants](https://docs.aws.amazon.com/kms/latest/developerguide/grant-delete.html) + in the *Key Management Service Developer Guide*. + + You can specify either `RetiringPrincipal` or + `RetiringServicePrincipal`, but not both. + """ + operations: Required[Sequence[str]] + """ + A list of operations that the grant permits. + + This list must include only operations that are permitted in a grant. + Also, the operation must be supported on the KMS key. For example, you + cannot create a grant for a symmetric encryption KMS key that allows the + Sign operation, or a grant for an asymmetric KMS key that allows the + GenerateDataKey operation. If you try, KMS returns a `ValidationError` + exception. For details, see [Grant + operations](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations) + in the *Key Management Service Developer Guide*. + """ + constraints: GrantConstraints | GrantConstraintsDict | None + """ + Specifies a grant constraint. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + KMS supports the following grant constraints. + + - `EncryptionContextEquals` and `EncryptionContextSubset` --- These + encryption context grant constraints allow the permissions in the + grant only when the encryption context in the request matches + (`EncryptionContextEquals`) or includes (`EncryptionContextSubset`) + the encryption context specified in the constraint. + + Encryption context grant constraints are supported only on [grant + operations](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations) + that include an `EncryptionContext` parameter, such as cryptographic + operations on symmetric encryption KMS keys. You cannot use an + encryption context grant constraint for cryptographic operations with + asymmetric KMS keys or HMAC KMS keys. Operations with these keys + don't support an encryption context. Grants with encryption context + grant constraints can include the DescribeKey and RetireGrant + operations, but the constraint doesn't apply to these operations. If + a grant with an encryption context grant constraint includes the + `CreateGrant` operation, the constraint requires that any grants + created with the `CreateGrant` permission have an equally strict or + stricter encryption context constraint. + + Each constraint value can include up to 8 encryption context pairs. + The encryption context value in each constraint cannot exceed 384 + characters. For more information about encryption context, see + [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) + in the Key Management Service Developer Guide . + + - `SourceArn` --- This grant constraint allows the permissions in the + grant only when the request is made on behalf of a specific Amazon Web + Services resource, identified by its [Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + This is effectively the same as having the + [aws:SourceArn](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourcearn) + global condition key in the grant. The SourceArn constraint is + supported on grants for all types of KMS keys and can also be applied + to the DescribeKey operation when specified in the request. However, + it does not apply to RetireGrant operation. + + For information about grant constraints, see [Using grant + constraints](https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints) + in the *Key Management Service Developer Guide*. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + name: str | None + """ + A friendly name for the grant. Use this value to prevent the unintended + creation of duplicate grants when retrying this request. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + When this value is absent, all `CreateGrant` requests result in a new + grant with a unique `GrantId` even if all the supplied parameters are + identical. This can result in unintended duplicates when you retry the + `CreateGrant` request. + + When this value is present, you can retry a `CreateGrant` request with + identical parameters; if the grant already exists, the original + `GrantId` is returned without creating a new grant. Note that the + returned grant token is unique with every `CreateGrant` request, even + when a duplicate `GrantId` is returned. All grant tokens for the same + grant ID can be used interchangeably. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + grantee_service_principal: str | None + """ + The Amazon Web Services [service + principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services) + that gets the permissions specified in the grant. + + When you specify a `GranteeServicePrincipal`, you must also specify a + `SourceArn` grant constraint. In addition, you must specify either a + `RetiringPrincipal` or a `RetiringServicePrincipal`. + + You must specify either `GranteePrincipal` or `GranteeServicePrincipal`, + but not both. + """ + retiring_service_principal: str | None + """ + The Amazon Web Services [service + principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services) + that has permission to use the RetireGrant operation to retire the + grant. + + You can specify either `RetiringPrincipal` or + `RetiringServicePrincipal`, but not both. + """ + +@dataclass(kw_only=True) +class CreateGrantOutput(_SerdeShape): + """Dataclass for CreateGrantOutput structure.""" + + grant_token: str | None = ... + """ + The grant token. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) and [Using a grant token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. @@ -1174,60 +1633,431 @@ class CreateKeyInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ -@dataclass(kw_only=True) -class CreateKeyOutput(_SerdeShape): - """Dataclass for CreateKeyOutput structure.""" +class CreateKeyInputDict(TypedDict, total=False): + """Dictionary form of `CreateKeyInput`.""" - key_metadata: KeyMetadata | None = ... - """Metadata associated with the KMS key.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + policy: str | None """ + The key policy to attach to the KMS key. -class CustomerMasterKeySpec(UnknownEnumMixin, StrEnum): - RSA_2048 = "RSA_2048" - RSA_3072 = "RSA_3072" - RSA_4096 = "RSA_4096" - ECC_NIST_P256 = "ECC_NIST_P256" - ECC_NIST_P384 = "ECC_NIST_P384" - ECC_NIST_P521 = "ECC_NIST_P521" - ECC_SECG_P256_K1 = "ECC_SECG_P256K1" - SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT" - HMAC_224 = "HMAC_224" - HMAC_256 = "HMAC_256" - HMAC_384 = "HMAC_384" - HMAC_512 = "HMAC_512" - SM2 = "SM2" + If you provide a key policy, it must meet the following criteria: -@dataclass(kw_only=True) -class CustomKeyStoreHasCMKsException(ServiceError, _SerdeShape): - """ - The request was rejected because the custom key store contains KMS keys. - After verifying that you do not need to use the KMS keys, use the - ScheduleKeyDeletion operation to delete the KMS keys. After they are - deleted, you can delete the custom key store. - """ + - The key policy must allow the calling principal to make a subsequent + `PutKeyPolicy` request on the KMS key. This reduces the risk that the + KMS key becomes unmanageable. For more information, see [Default key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key) + in the *Key Management Service Developer Guide*. (To omit this + condition, set `BypassPolicyLockoutSafetyCheck` to true.) - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - Each statement in the key policy must contain one or more principals. + The principals in the key policy must exist and be visible to KMS. + When you create a new Amazon Web Services principal, you might need to + enforce a delay before including the new principal in a key policy + because the new principal might not be immediately visible to KMS. For + more information, see [Changes that I make are not always immediately + visible](https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) + in the *Amazon Web Services Identity and Access Management User + Guide*. -@dataclass(kw_only=True) -class CustomKeyStoreInvalidStateException(ServiceError, _SerdeShape): - """ - The request was rejected because of the `ConnectionState` of the custom - key store. To get the `ConnectionState` of a custom key store, use the - DescribeCustomKeyStores operation. + Note: + If either of the required `Resource` or `Action` elements are missing + from a key policy statement, the policy statement has no effect. When a + key policy statement is missing one of these elements, the KMS console + correctly reports an error, but the `CreateKey` and `PutKeyPolicy` API + requests succeed, even though the policy statement is ineffective. - This exception is thrown under the following conditions: + For more information on required key policy elements, see [Elements in a + key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-overview.html#key-policy-elements) + in the *Key Management Service Developer Guide*. + + If you do not provide a key policy, KMS attaches a default key policy to + the KMS key. For more information, see [Default key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html) + in the *Key Management Service Developer Guide*. + + Note: + If the key policy exceeds the length constraint, KMS returns a + `LimitExceededException`. + + For help writing and formatting a JSON policy document, see the [IAM + JSON Policy + Reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html) + in the Identity and Access Management User Guide . + """ + description: str | None + """ + A description of the KMS key. Use a description that helps you decide + whether the KMS key is appropriate for a task. The default value is an + empty string (no description). + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + To set or change the description after the key is created, use + UpdateKeyDescription. + """ + key_usage: str | None + """ + Determines the [cryptographic + operations](https://docs.aws.amazon.com/kms/latest/developerguide/kms-cryptography.html#cryptographic-operations) + for which you can use the KMS key. The default value is + `ENCRYPT_DECRYPT`. This parameter is optional when you are creating a + symmetric encryption KMS key; otherwise, it is required. You can't + change the + [`KeyUsage`](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html#key-usage) + value after the KMS key is created. Each KMS key can have only one key + usage. This follows key usage best practices according to [NIST SP + 800-57 Recommendations for Key + Management](https://csrc.nist.gov/pubs/sp/800/57/pt1/r5/final), section + 5.2, Key usage. + + Select only one valid value. + + - For symmetric encryption KMS keys, omit the parameter or specify + `ENCRYPT_DECRYPT`. + + - For HMAC KMS keys (symmetric), specify `GENERATE_VERIFY_MAC`. + + - For asymmetric KMS keys with RSA key pairs, specify `ENCRYPT_DECRYPT` + or `SIGN_VERIFY`. + + - For asymmetric KMS keys with NIST-standard elliptic curve key pairs, + specify `SIGN_VERIFY` or `KEY_AGREEMENT`. + + - For asymmetric KMS keys with `ECC_SECG_P256K1` key pairs, specify + `SIGN_VERIFY`. + + - For asymmetric KMS keys with ML-DSA key pairs, specify `SIGN_VERIFY`. + + - For asymmetric KMS keys with ML-KEM key pairs, specify + `ENCAPSULATE_DECAPSULATE`. + + - For asymmetric KMS keys with SM2 key pairs (China Regions only), + specify `ENCRYPT_DECRYPT`, `SIGN_VERIFY`, or `KEY_AGREEMENT`. + """ + customer_master_key_spec: str | None + """ + Instead, use the `KeySpec` parameter. + + The `KeySpec` and `CustomerMasterKeySpec` parameters work the same way. + Only the names differ. We recommend that you use `KeySpec` parameter in + your code. However, to avoid breaking changes, KMS supports both + parameters. + """ + key_spec: str | None + """ + Specifies the type of KMS key to create. The default value, + `SYMMETRIC_DEFAULT`, creates a KMS key with a 256-bit AES-GCM key that + is used for encryption and decryption, except in China Regions, where it + creates a 128-bit symmetric key that uses SM4 encryption. For a detailed + description of all supported key specs, see [Key spec + reference](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose-key-spec.html) + in the Key Management Service Developer Guide . + + The `KeySpec` determines whether the KMS key contains a symmetric key or + an asymmetric key pair. It also determines the algorithms that the KMS + key supports. You can't change the `KeySpec` after the KMS key is + created. To further restrict the algorithms that can be used with the + KMS key, use a condition key in its key policy or IAM policy. For more + information, see + [kms:EncryptionAlgorithm](https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-encryption-algorithm), + [kms:MacAlgorithm](https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-mac-algorithm), + [kms:KeyAgreementAlgorithm](https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-key-agreement-algorithm), + or + [kms:SigningAlgorithm](https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-signing-algorithm) + in the Key Management Service Developer Guide . + + Warning: + [Amazon Web Services services that are integrated with + KMS](http://aws.amazon.com/kms/features/#AWS_Service_Integration) use + symmetric encryption KMS keys to protect your data. These services do + not support asymmetric KMS keys or HMAC KMS keys. + + KMS supports the following key specs for KMS keys: + + - Symmetric encryption key (default) + + - `SYMMETRIC_DEFAULT` + + - HMAC keys (symmetric) + + - `HMAC_224` + + - `HMAC_256` + + - `HMAC_384` + + - `HMAC_512` + + - Asymmetric RSA key pairs (encryption and decryption -or- signing and + verification) + + - `RSA_2048` + + - `RSA_3072` + + - `RSA_4096` + + - Asymmetric NIST-standard elliptic curve key pairs (signing and + verification -or- deriving shared secrets) + + - `ECC_NIST_P256` (secp256r1) + + - `ECC_NIST_P384` (secp384r1) + + - `ECC_NIST_P521` (secp521r1) + + - `ECC_NIST_EDWARDS25519` (ed25519) - signing and verification only + + - **Note:** For ECC_NIST_EDWARDS25519 KMS keys, the ED25519_SHA_512 + signing algorithm requires + [`MessageType:RAW`](kms/latest/APIReference/API_Sign.html#KMS-Sign-request-MessageType) + , while ED25519_PH_SHA_512 requires + [`MessageType:DIGEST`](kms/latest/APIReference/API_Sign.html#KMS-Sign-request-MessageType) + . These message types cannot be used interchangeably. + + - Other asymmetric elliptic curve key pairs (signing and verification) + + - `ECC_SECG_P256K1` (secp256k1), commonly used for cryptocurrencies. + + - Asymmetric ML-DSA key pairs (signing and verification) + + - `ML_DSA_44` + + - `ML_DSA_65` + + - `ML_DSA_87` + + - Asymmetric ML-KEM key pairs (establishing shared secrets) + + - `ML_KEM_512` + + - `ML_KEM_768` + + - `ML_KEM_1024` + + The ML-KEM key specs are not available in China Regions. + + - SM2 key pairs (encryption and decryption -or- signing and verification + -or- deriving shared secrets) + + - `SM2` (China Regions only) + """ + origin: str | None + """ + The source of the key material for the KMS key. You cannot change the + origin after you create the KMS key. The default is `AWS_KMS`, which + means that KMS creates the key material. + + To [create a KMS key with no key + material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html) + (for imported key material), set this value to `EXTERNAL`. For more + information about importing key material into KMS, see [Importing Key + Material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) + in the *Key Management Service Developer Guide*. The `EXTERNAL` origin + value is valid only for symmetric KMS keys. + + To [create a KMS key in an CloudHSM key + store](https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html) + and create its key material in the associated CloudHSM cluster, set this + value to `AWS_CLOUDHSM`. You must also use the `CustomKeyStoreId` + parameter to identify the CloudHSM key store. The `KeySpec` value must + be `SYMMETRIC_DEFAULT`. + + To [create a KMS key in an external key + store](https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html), + set this value to `EXTERNAL_KEY_STORE`. You must also use the + `CustomKeyStoreId` parameter to identify the external key store and the + `XksKeyId` parameter to identify the associated external key. The + `KeySpec` value must be `SYMMETRIC_DEFAULT`. + """ + custom_key_store_id: str | None + """ + Creates the KMS key in the specified [custom key + store](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html). + The `ConnectionState` of the custom key store must be `CONNECTED`. To + find the CustomKeyStoreID and ConnectionState use the + DescribeCustomKeyStores operation. + + This parameter is valid only for symmetric encryption KMS keys in a + single Region. You cannot create any other type of KMS key in a custom + key store. + + When you create a KMS key in an CloudHSM key store, KMS generates a + non-exportable 256-bit symmetric key in its associated CloudHSM cluster + and associates it with the KMS key. When you create a KMS key in an + external key store, you must use the `XksKeyId` parameter to specify an + external key that serves as key material for the KMS key. + """ + bypass_policy_lockout_safety_check: bool | None + """ + Skips (\"bypasses\") the key policy lockout safety check. The default + value is false. + + Warning: + Setting this value to true increases the risk that the KMS key becomes + unmanageable. Do not set this value to true indiscriminately. + + For more information, see [Default key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key) + in the *Key Management Service Developer Guide*. + + Use this parameter only when you intend to prevent the principal that is + making the request from making a subsequent + [PutKeyPolicy](https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html) + request on the KMS key. + """ + tags: Sequence[Tag | TagDict] | None + """ + Assigns one or more tags to the KMS key. Use this parameter to tag the + KMS key when it is created. To tag an existing KMS key, use the + TagResource operation. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + Note: + Tagging or untagging a KMS key can allow or deny permission to the KMS + key. For details, see [ABAC for + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/abac.html) in + the *Key Management Service Developer Guide*. + + To use this parameter, you must have + [kms:TagResource](https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html) + permission in an IAM policy. + + Each tag consists of a tag key and a tag value. Both the tag key and the + tag value are required, but the tag value can be an empty (null) string. + You cannot have more than one tag on a KMS key with the same tag key. If + you specify an existing tag key with a different tag value, KMS replaces + the current tag value with the specified one. + + When you add tags to an Amazon Web Services resource, Amazon Web + Services generates a cost allocation report with usage and costs + aggregated by tags. Tags can also be used to control access to a KMS + key. For details, see [Tags in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html). + """ + multi_region: bool | None + """ + Creates a multi-Region primary key that you can replicate into other + Amazon Web Services Regions. You cannot change this value after you + create the KMS key. + + For a multi-Region key, set this parameter to `True`. For a + single-Region KMS key, omit this parameter or set it to `False`. The + default value is `False`. + + This operation supports *multi-Region keys*, an KMS feature that lets + you create multiple interoperable KMS keys in different Amazon Web + Services Regions. Because these KMS keys have the same key ID, key + material, and other metadata, you can use them interchangeably to + encrypt data in one Amazon Web Services Region and decrypt it in a + different Amazon Web Services Region without re-encrypting the data or + making a cross-Region call. For more information about multi-Region + keys, see [Multi-Region keys in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the *Key Management Service Developer Guide*. + + This value creates a *primary key*, not a replica. To create a *replica + key*, use the ReplicateKey operation. + + You can create a symmetric or asymmetric multi-Region key, and you can + create a multi-Region key with imported key material. However, you + cannot create a multi-Region key in a custom key store. + """ + xks_key_id: str | None + """ + Identifies the [external + key](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key) + that serves as key material for the KMS key in an [external key + store](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html). + Specify the ID that the [external key store + proxy](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-xks-proxy) + uses to refer to the external key. For help, see the documentation for + your external key store proxy. + + This parameter is required for a KMS key with an `Origin` value of + `EXTERNAL_KEY_STORE`. It is not valid for KMS keys with any other + `Origin` value. + + The external key must be an existing 256-bit AES symmetric encryption + key hosted outside of Amazon Web Services in an external key manager + associated with the external key store specified by the + `CustomKeyStoreId` parameter. This key must be enabled and configured to + perform encryption and decryption. Each KMS key in an external key store + must use a different external key. For details, see [Requirements for a + KMS key in an external key + store](https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html#xks-key-requirements) + in the *Key Management Service Developer Guide*. + + Each KMS key in an external key store is associated two backing keys. + One is key material that KMS generates. The other is the external key + specified by this parameter. When you use the KMS key in an external key + store to encrypt data, the encryption operation is performed first by + KMS using the KMS key material, and then by the external key manager + using the specified external key, a process known as *double + encryption*. For details, see [Double + encryption](https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-double-encryption) + in the *Key Management Service Developer Guide*. + """ + +@dataclass(kw_only=True) +class CreateKeyOutput(_SerdeShape): + """Dataclass for CreateKeyOutput structure.""" + + key_metadata: KeyMetadata | None = ... + """Metadata associated with the KMS key.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class CustomerMasterKeySpec(UnknownEnumMixin, StrEnum): + RSA_2048 = "RSA_2048" + RSA_3072 = "RSA_3072" + RSA_4096 = "RSA_4096" + ECC_NIST_P256 = "ECC_NIST_P256" + ECC_NIST_P384 = "ECC_NIST_P384" + ECC_NIST_P521 = "ECC_NIST_P521" + ECC_SECG_P256_K1 = "ECC_SECG_P256K1" + SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT" + HMAC_224 = "HMAC_224" + HMAC_256 = "HMAC_256" + HMAC_384 = "HMAC_384" + HMAC_512 = "HMAC_512" + SM2 = "SM2" + +@dataclass(kw_only=True) +class CustomKeyStoreHasCMKsException(ServiceError, _SerdeShape): + """ + The request was rejected because the custom key store contains KMS keys. + After verifying that you do not need to use the KMS keys, use the + ScheduleKeyDeletion operation to delete the KMS keys. After they are + deleted, you can delete the custom key store. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CustomKeyStoreInvalidStateException(ServiceError, _SerdeShape): + """ + The request was rejected because of the `ConnectionState` of the custom + key store. To get the `ConnectionState` of a custom key store, use the + DescribeCustomKeyStores operation. + + This exception is thrown under the following conditions: - You requested the ConnectCustomKeyStore operation on a custom key store with a `ConnectionState` of `DISCONNECTING` or `FAILED`. This @@ -1549,11 +2379,72 @@ class DataKeySpec(UnknownEnumMixin, StrEnum): AES_256 = "AES_256" AES_128 = "AES_128" -@dataclass(kw_only=True) -class DecapsulateInput(_SerdeShape): - """Dataclass for DecapsulateInput structure.""" +@dataclass(kw_only=True) +class DecapsulateInput(_SerdeShape): + """Dataclass for DecapsulateInput structure.""" + + key_id: str | None = ... + """ + Identifies the asymmetric ML-KEM KMS key whose public key was used to + produce the encapsulated shared secret. KMS uses the private key in the + specified key pair to decapsulate the shared secret. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + shared_secret_ciphertext_blob: bytes | None = ... + """ + The encapsulated (ciphertext) form of the shared secret to recover. This + is the `SharedSecretCiphertextBlob` value that the Encapsulate operation + returns. When you use the HTTP API or the Amazon Web Services CLI, the + value is Base64-encoded. Otherwise, it is not Base64-encoded. + """ + encapsulation_algorithm: str | None = ... + """ + Specifies the key encapsulation algorithm used to recover the shared + secret. The only valid value is `ML_KEM`. + """ + grant_tokens: list[str] | None = ... + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + dry_run: bool | None = ... + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + +class DecapsulateInputDict(TypedDict, total=False): + """Dictionary form of `DecapsulateInput`.""" - key_id: str | None = ... + key_id: Required[str] """ Identifies the asymmetric ML-KEM KMS key whose public key was used to produce the encapsulated shared secret. KMS uses the private key in the @@ -1578,19 +2469,19 @@ class DecapsulateInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases. """ - shared_secret_ciphertext_blob: bytes | None = ... + shared_secret_ciphertext_blob: Required[bytes] """ The encapsulated (ciphertext) form of the shared secret to recover. This is the `SharedSecretCiphertextBlob` value that the Encapsulate operation returns. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. """ - encapsulation_algorithm: str | None = ... + encapsulation_algorithm: Required[str] """ Specifies the key encapsulation algorithm used to recover the shared secret. The only valid value is `ML_KEM`. """ - grant_tokens: list[str] | None = ... + grant_tokens: Sequence[str] | None """ A list of grant tokens. @@ -1602,7 +2493,7 @@ class DecapsulateInput(_SerdeShape): token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks if your request will succeed. `DryRun` is an optional parameter. @@ -1777,6 +2668,145 @@ class DecryptInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class DecryptInputDict(TypedDict, total=False): + """Dictionary form of `DecryptInput`.""" + + ciphertext_blob: bytes | None + """ + Ciphertext to be decrypted. The blob includes metadata. + + This parameter is required in all cases except when `DryRun` is `true` + and `DryRunModifiers` is set to `IGNORE_CIPHERTEXT`. + """ + encryption_context: Mapping[str, str] | None + """ + Specifies the encryption context to use when decrypting the data. An + encryption context is valid only for [cryptographic + operations](https://docs.aws.amazon.com/kms/latest/developerguide/kms-cryptography.html#cryptographic-operations) + with a symmetric encryption KMS key. The standard asymmetric encryption + algorithms and HMAC algorithms that KMS uses do not support an + encryption context. + + An *encryption context* is a collection of non-secret key-value pairs + that represent additional authenticated data. When you use an encryption + context to encrypt data, you must specify the same (an exact + case-sensitive match) encryption context to decrypt the data. An + encryption context is supported only on operations with symmetric + encryption KMS keys. On operations with symmetric encryption KMS keys, + an encryption context is optional, but it is strongly recommended. + + For more information, see [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) + in the *Key Management Service Developer Guide*. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + key_id: str | None + """ + Specifies the KMS key that KMS uses to decrypt the ciphertext. + + Enter a key ID of the KMS key that was used to encrypt the ciphertext. + If you identify a different KMS key, the `Decrypt` operation throws an + `IncorrectKeyException`. + + This parameter is required only when the ciphertext was encrypted under + an asymmetric KMS key or when `DryRun` is `true` and `DryRunModifiers` + is set to `IGNORE_CIPHERTEXT`. If you used a symmetric encryption KMS + key, KMS can get the KMS key from metadata that it adds to the symmetric + ciphertext blob. However, it is always recommended as a best practice. + This practice ensures that you use the KMS key that you intend. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you should use the key + ARN or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + encryption_algorithm: str | None + """ + Specifies the encryption algorithm that will be used to decrypt the + ciphertext. Specify the same algorithm that was used to encrypt the + data. If you specify a different algorithm, the `Decrypt` operation + fails. + + This parameter is required only when the ciphertext was encrypted under + an asymmetric KMS key. The default value, `SYMMETRIC_DEFAULT`, + represents the only supported algorithm that is valid for symmetric + encryption KMS keys. + """ + recipient: RecipientInfo | RecipientInfoDict | None + """ + A signed [attestation + document](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-concepts.html#term-attestdoc) + from an Amazon Web Services Nitro enclave or NitroTPM, and the + encryption algorithm to use with the public key in the attestation + document. The only valid encryption algorithm is `RSAES_OAEP_SHA_256`. + + This parameter supports the [Amazon Web Services Nitro Enclaves + SDK](https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk) + or any Amazon Web Services SDK for Amazon Web Services Nitro Enclaves. + It supports any Amazon Web Services SDK for Amazon Web Services + NitroTPM. + + When you use this parameter, instead of returning the plaintext data, + KMS encrypts the plaintext data with the public key in the attestation + document, and returns the resulting ciphertext in the + `CiphertextForRecipient` field in the response. This ciphertext can be + decrypted only with the private key in the attested environment. The + `Plaintext` field in the response is null or empty. + + For information about the interaction between KMS and Amazon Web + Services Nitro Enclaves or Amazon Web Services NitroTPM, see + [Cryptographic attestation support in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + in the *Key Management Service Developer Guide*. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + dry_run_modifiers: Sequence[str] | None + """ + Specifies the modifiers to apply to the dry run operation. + `DryRunModifiers` is an optional parameter that only applies when + `DryRun` is set to `true`. + + When set to `IGNORE_CIPHERTEXT`, KMS performs only authorization + validation without ciphertext validation. This allows you to test + permissions without requiring a valid ciphertext blob. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class DecryptOutput(_SerdeShape): """Dataclass for DecryptOutput structure.""" @@ -1837,6 +2867,15 @@ class DeleteAliasInput(_SerdeShape): followed by the alias name, such as `alias/ExampleAlias`. """ +class DeleteAliasInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAliasInput`.""" + + alias_name: Required[str] + """ + The alias to be deleted. The alias name must begin with `alias/` + followed by the alias name, such as `alias/ExampleAlias`. + """ + @dataclass(kw_only=True) class DeleteAliasOutput(_SerdeShape): """Dataclass for DeleteAliasOutput structure.""" @@ -1859,6 +2898,15 @@ class DeleteCustomKeyStoreInput(_SerdeShape): of a custom key store, use the DescribeCustomKeyStores operation. """ +class DeleteCustomKeyStoreInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCustomKeyStoreInput`.""" + + custom_key_store_id: Required[str] + """ + Enter the ID of the custom key store you want to delete. To find the ID + of a custom key store, use the DescribeCustomKeyStores operation. + """ + @dataclass(kw_only=True) class DeleteCustomKeyStoreOutput(_SerdeShape): """Dataclass for DeleteCustomKeyStoreOutput structure.""" @@ -1903,6 +2951,37 @@ class DeleteImportedKeyMaterialInput(_SerdeShape): ListKeyRotations. """ +class DeleteImportedKeyMaterialInputDict(TypedDict, total=False): + """Dictionary form of `DeleteImportedKeyMaterialInput`.""" + + key_id: Required[str] + """ + Identifies the KMS key from which you are deleting imported key + material. The `Origin` of the KMS key must be `EXTERNAL`. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + key_material_id: str | None + """ + Identifies the imported key material you are deleting. + + Warning: + If no KeyMaterialId is specified, KMS deletes the current key material. + + To get the list of key material IDs associated with a KMS key, use + ListKeyRotations. + """ + @dataclass(kw_only=True) class DeleteImportedKeyMaterialOutput(_SerdeShape): """Dataclass for DeleteImportedKeyMaterialOutput structure.""" @@ -1917,32 +2996,146 @@ class DeleteImportedKeyMaterialOutput(_SerdeShape): """Identifies the deleted key material.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DependencyTimeoutException(ServiceError, _SerdeShape): + """ + The system timed out while trying to fulfill the request. You can retry + the request. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DeriveSharedSecretInput(_SerdeShape): + """Dataclass for DeriveSharedSecretInput structure.""" + + key_id: str | None = ... + """ + Identifies an asymmetric NIST-standard ECC or SM2 (China Regions only) + KMS key. KMS uses the private key in the specified key pair to derive + the shared secret. The key usage of the KMS key must be `KEY_AGREEMENT`. + To find the `KeyUsage` of a KMS key, use the DescribeKey operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + key_agreement_algorithm: str | None = ... + """ + Specifies the key agreement algorithm used to derive the shared secret. + The only valid value is `ECDH`. + """ + public_key: bytes | None = ... + """ + Specifies the public key in your peer's NIST-standard elliptic curve + (ECC) or SM2 (China Regions only) key pair. + + The public key must be a DER-encoded X.509 public key, also known as + `SubjectPublicKeyInfo` (SPKI), as defined in [RFC + 5280](https://tools.ietf.org/html/rfc5280). + + GetPublicKey returns the public key of an asymmetric KMS key pair in the + required DER-encoded format. + + Note: + If you use [Amazon Web Services CLI version + 1](https://docs.aws.amazon.com/cli/v1/userguide/cli-chap-welcome.html), + you must provide the DER-encoded X.509 public key in a file. Otherwise, + the Amazon Web Services CLI Base64-encodes the public key a second time, + resulting in a `ValidationException`. + + You can specify the public key as binary data in a file using fileb + (`fileb://```{=html}) or in-line using a Base64 encoded + string. + """ + grant_tokens: list[str] | None = ... """ + A list of grant tokens. -@dataclass(kw_only=True) -class DependencyTimeoutException(ServiceError, _SerdeShape): + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. """ - The system timed out while trying to fulfill the request. You can retry - the request. + dry_run: bool | None = ... """ + Checks if your request will succeed. `DryRun` is an optional parameter. - response_metadata: ResponseMetadata = ... + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + recipient: RecipientInfo | None = ... """ + A signed [attestation + document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc) + from an Amazon Web Services Nitro enclave or NitroTPM, and the + encryption algorithm to use with the public key in the attestation + document. The only valid encryption algorithm is `RSAES_OAEP_SHA_256`. -@dataclass(kw_only=True) -class DeriveSharedSecretInput(_SerdeShape): - """Dataclass for DeriveSharedSecretInput structure.""" + This parameter only supports attestation documents for Amazon Web + Services Nitro Enclaves or Amazon Web Services NitroTPM. To call + DeriveSharedSecret generate an attestation document use either [Amazon + Web Services Nitro Enclaves + SDK](https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk) + for an Amazon Web Services Nitro Enclaves or [Amazon Web Services + NitroTPM + tools](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/attestation-get-doc.html) + for Amazon Web Services NitroTPM. Then use the Recipient parameter from + any Amazon Web Services SDK to provide the attestation document for the + attested environment. - key_id: str | None = ... + When you use this parameter, instead of returning a plaintext copy of + the shared secret, KMS encrypts the plaintext shared secret under the + public key in the attestation document, and returns the resulting + ciphertext in the `CiphertextForRecipient` field in the response. This + ciphertext can be decrypted only with the private key in the attested + environment. The `CiphertextBlob` field in the response contains the + encrypted shared secret derived from the KMS key specified by the + `KeyId` parameter and public key specified by the `PublicKey` parameter. + The `SharedSecret` field in the response is null or empty. + + For information about the interaction between KMS and Amazon Web + Services Nitro Enclaves or Amazon Web Services NitroTPM, see + [Cryptographic attestation support in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + in the *Key Management Service Developer Guide*. + """ + +class DeriveSharedSecretInputDict(TypedDict, total=False): + """Dictionary form of `DeriveSharedSecretInput`.""" + + key_id: Required[str] """ Identifies an asymmetric NIST-standard ECC or SM2 (China Regions only) KMS key. KMS uses the private key in the specified key pair to derive @@ -1968,12 +3161,12 @@ class DeriveSharedSecretInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases. """ - key_agreement_algorithm: str | None = ... + key_agreement_algorithm: Required[str] """ Specifies the key agreement algorithm used to derive the shared secret. The only valid value is `ECDH`. """ - public_key: bytes | None = ... + public_key: Required[bytes] """ Specifies the public key in your peer's NIST-standard elliptic curve (ECC) or SM2 (China Regions only) key pair. @@ -1996,7 +3189,7 @@ class DeriveSharedSecretInput(_SerdeShape): (`fileb://```{=html}) or in-line using a Base64 encoded string. """ - grant_tokens: list[str] | None = ... + grant_tokens: Sequence[str] | None """ A list of grant tokens. @@ -2008,7 +3201,7 @@ class DeriveSharedSecretInput(_SerdeShape): token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks if your request will succeed. `DryRun` is an optional parameter. @@ -2016,7 +3209,7 @@ class DeriveSharedSecretInput(_SerdeShape): permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) in the *Key Management Service Developer Guide*. """ - recipient: RecipientInfo | None = ... + recipient: RecipientInfo | RecipientInfoDict | None """ A signed [attestation document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc) @@ -2140,6 +3333,42 @@ class DescribeCustomKeyStoresInput(_SerdeShape): truncated response you just received. """ +class DescribeCustomKeyStoresInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCustomKeyStoresInput`.""" + + custom_key_store_id: str | None + """ + Gets only information about the specified custom key store. Enter the + key store ID. + + By default, this operation gets information about all custom key stores + in the account and Region. To limit the output to a particular custom + key store, provide either the `CustomKeyStoreId` or `CustomKeyStoreName` + parameter, but not both. + """ + custom_key_store_name: str | None + """ + Gets only information about the specified custom key store. Enter the + friendly name of the custom key store. + + By default, this operation gets information about all custom key stores + in the account and Region. To limit the output to a particular custom + key store, provide either the `CustomKeyStoreId` or `CustomKeyStoreName` + parameter, but not both. + """ + limit: int | None + """ + Use this parameter to specify the maximum number of items to return. + When this value is present, KMS does not return more than the specified + number of items, but it might return fewer. + """ + marker: str | None + """ + Use this parameter in a subsequent request after you receive a response + with truncated results. Set it to the value of `NextMarker` from the + truncated response you just received. + """ + @dataclass(kw_only=True) class DescribeCustomKeyStoresOutput(_SerdeShape): """Dataclass for DescribeCustomKeyStoresOutput structure.""" @@ -2212,6 +3441,51 @@ class DescribeKeyInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class DescribeKeyInputDict(TypedDict, total=False): + """Dictionary form of `DescribeKeyInput`.""" + + key_id: Required[str] + """ + Describes the specified KMS key. + + If you specify a predefined Amazon Web Services alias (an Amazon Web + Services alias with no key ID), KMS associates the alias with an [Amazon + Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-key) + and returns its `KeyId` and `Arn` in the response. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class DescribeKeyOutput(_SerdeShape): """Dataclass for DescribeKeyOutput structure.""" @@ -2259,6 +3533,26 @@ class DisableKeyInput(_SerdeShape): DescribeKey. """ +class DisableKeyInputDict(TypedDict, total=False): + """Dictionary form of `DisableKeyInput`.""" + + key_id: Required[str] + """ + Identifies the KMS key to disable. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + @dataclass(kw_only=True) class DisableKeyOutput(_SerdeShape): """Dataclass for DisableKeyOutput structure.""" @@ -2300,6 +3594,34 @@ class DisableKeyRotationInput(_SerdeShape): DescribeKey. """ +class DisableKeyRotationInputDict(TypedDict, total=False): + """Dictionary form of `DisableKeyRotationInput`.""" + + key_id: Required[str] + """ + Identifies a symmetric encryption KMS key. You cannot enable or disable + automatic rotation of [asymmetric KMS + keys](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html#asymmetric-cmks), + [HMAC KMS + keys](https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html), + KMS keys with [imported key + material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html), + or KMS keys in a [custom key + store](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html). + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + @dataclass(kw_only=True) class DisableKeyRotationOutput(_SerdeShape): """Dataclass for DisableKeyRotationOutput structure.""" @@ -2322,6 +3644,15 @@ class DisconnectCustomKeyStoreInput(_SerdeShape): ID of a custom key store, use the DescribeCustomKeyStores operation. """ +class DisconnectCustomKeyStoreInputDict(TypedDict, total=False): + """Dictionary form of `DisconnectCustomKeyStoreInput`.""" + + custom_key_store_id: Required[str] + """ + Enter the ID of the custom key store you want to disconnect. To find the + ID of a custom key store, use the DescribeCustomKeyStores operation. + """ + @dataclass(kw_only=True) class DisconnectCustomKeyStoreOutput(_SerdeShape): """Dataclass for DisconnectCustomKeyStoreOutput structure.""" @@ -2370,23 +3701,89 @@ class EnableKeyInput(_SerdeShape): DescribeKey. """ +class EnableKeyInputDict(TypedDict, total=False): + """Dictionary form of `EnableKeyInput`.""" + + key_id: Required[str] + """ + Identifies the KMS key to enable. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + @dataclass(kw_only=True) class EnableKeyOutput(_SerdeShape): """Dataclass for EnableKeyOutput structure.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class EnableKeyRotationInput(_SerdeShape): + """Dataclass for EnableKeyRotationInput structure.""" + + key_id: str | None = ... + """ + Identifies a symmetric encryption KMS key. You cannot enable automatic + rotation of [asymmetric KMS + keys](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html), + [HMAC KMS + keys](https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html), + KMS keys with [imported key + material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html), + or KMS keys in a [custom key + store](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html). + To enable or disable automatic rotation of a set of related + [multi-Region + keys](https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#multi-region-rotate), + set the property on the primary key. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + rotation_period_in_days: int | None = ... + """ + Use this parameter to specify a custom period of time between each + rotation date. If no value is specified, the default value is 365 days. + + The rotation period defines the number of days after you enable + automatic key rotation that KMS will rotate your key material, and the + number of days between each automatic rotation thereafter. + + You can use the + [`kms:RotationPeriodInDays`](https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-rotation-period-in-days) + condition key to further constrain the values that principals can + specify in the `RotationPeriodInDays` parameter. """ -@dataclass(kw_only=True) -class EnableKeyRotationInput(_SerdeShape): - """Dataclass for EnableKeyRotationInput structure.""" +class EnableKeyRotationInputDict(TypedDict, total=False): + """Dictionary form of `EnableKeyRotationInput`.""" - key_id: str | None = ... + key_id: Required[str] """ Identifies a symmetric encryption KMS key. You cannot enable automatic rotation of [asymmetric KMS @@ -2414,7 +3811,7 @@ class EnableKeyRotationInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ - rotation_period_in_days: int | None = ... + rotation_period_in_days: int | None """ Use this parameter to specify a custom period of time between each rotation date. If no value is specified, the default value is 365 days. @@ -2498,6 +3895,62 @@ class EncapsulateInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class EncapsulateInputDict(TypedDict, total=False): + """Dictionary form of `EncapsulateInput`.""" + + key_id: Required[str] + """ + Identifies an asymmetric ML-KEM KMS key. KMS uses the public key in the + specified key pair to encapsulate the shared secret. ML-KEM KMS keys + have a `KeySpec` value of `ML_KEM_512`, `ML_KEM_768`, or `ML_KEM_1024` + and a `KeyUsage` value of `ENCAPSULATE_DECAPSULATE`. To find the + `KeySpec` and `KeyUsage` of a KMS key, use the DescribeKey operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + encapsulation_algorithm: Required[str] + """ + Specifies the key encapsulation algorithm used to generate the shared + secret and its encapsulated form. The only valid value is `ML_KEM`. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class EncapsulateOutput(_SerdeShape): """Dataclass for EncapsulateOutput structure.""" @@ -2629,6 +4082,95 @@ class EncryptInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class EncryptInputDict(TypedDict, total=False): + """Dictionary form of `EncryptInput`.""" + + key_id: Required[str] + """ + Identifies the KMS key to use in the encryption operation. The KMS key + must have a `KeyUsage` of `ENCRYPT_DECRYPT`. To find the `KeyUsage` of a + KMS key, use the DescribeKey operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + plaintext: Required[bytes] + """Data to be encrypted.""" + encryption_context: Mapping[str, str] | None + """ + Specifies the encryption context that will be used to encrypt the data. + An encryption context is valid only for [cryptographic + operations](https://docs.aws.amazon.com/kms/latest/developerguide/kms-cryptography.html#cryptographic-operations) + with a symmetric encryption KMS key. The standard asymmetric encryption + algorithms and HMAC algorithms that KMS uses do not support an + encryption context. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + An *encryption context* is a collection of non-secret key-value pairs + that represent additional authenticated data. When you use an encryption + context to encrypt data, you must specify the same (an exact + case-sensitive match) encryption context to decrypt the data. An + encryption context is supported only on operations with symmetric + encryption KMS keys. On operations with symmetric encryption KMS keys, + an encryption context is optional, but it is strongly recommended. + + For more information, see [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) + in the *Key Management Service Developer Guide*. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + encryption_algorithm: str | None + """ + Specifies the encryption algorithm that KMS will use to encrypt the + plaintext message. The algorithm must be compatible with the KMS key + that you specify. + + This parameter is required only for asymmetric KMS keys. The default + value, `SYMMETRIC_DEFAULT`, is the algorithm used for symmetric + encryption KMS keys. If you are using an asymmetric KMS key, we + recommend RSAES_OAEP_SHA_256. + + The SM2PKE algorithm is only available in China Regions. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + class EncryptionAlgorithmSpec(UnknownEnumMixin, StrEnum): SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT" RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1" @@ -2655,38 +4197,156 @@ class EncryptOutput(_SerdeShape): """The encryption algorithm that was used to encrypt the plaintext.""" response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +class ExpirationModelType(UnknownEnumMixin, StrEnum): + KEY_MATERIAL_EXPIRES = "KEY_MATERIAL_EXPIRES" + KEY_MATERIAL_DOES_NOT_EXPIRE = "KEY_MATERIAL_DOES_NOT_EXPIRE" + +@dataclass(kw_only=True) +class ExpiredImportTokenException(ServiceError, _SerdeShape): + """ + The request was rejected because the specified import token is expired. + Use GetParametersForImport to get a new import token and public key, use + the new public key to encrypt the key material, and then try the request + again. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GenerateDataKeyInput(_SerdeShape): + """Dataclass for GenerateDataKeyInput structure.""" + + key_id: str | None = ... + """ + Specifies the symmetric encryption KMS key that encrypts the data key. + You cannot specify an asymmetric KMS key or a KMS key in a custom key + store. To get the type and origin of your KMS key, use the DescribeKey + operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + encryption_context: dict[str, str] | None = ... + """ + Specifies the encryption context that will be used when encrypting the + data key. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + An *encryption context* is a collection of non-secret key-value pairs + that represent additional authenticated data. When you use an encryption + context to encrypt data, you must specify the same (an exact + case-sensitive match) encryption context to decrypt the data. An + encryption context is supported only on operations with symmetric + encryption KMS keys. On operations with symmetric encryption KMS keys, + an encryption context is optional, but it is strongly recommended. + + For more information, see [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) + in the *Key Management Service Developer Guide*. + """ + number_of_bytes: int | None = ... + """ + Specifies the length of the data key in bytes. For example, use the + value 64 to generate a 512-bit data key (64 bytes is 512 bits). For + 128-bit (16-byte) and 256-bit (32-byte) data keys, use the `KeySpec` + parameter. + + You must specify either the `KeySpec` or the `NumberOfBytes` parameter + (but not both) in every `GenerateDataKey` request. + """ + key_spec: str | None = ... + """ + Specifies the length of the data key. Use `AES_128` to generate a + 128-bit symmetric key, or `AES_256` to generate a 256-bit symmetric key. + + You must specify either the `KeySpec` or the `NumberOfBytes` parameter + (but not both) in every `GenerateDataKey` request. + """ + grant_tokens: list[str] | None = ... + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + recipient: RecipientInfo | None = ... """ + A signed [attestation + document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc) + from an Amazon Web Services Nitro enclave or NitroTPM, and the + encryption algorithm to use with the public key in the attestation + document. The only valid encryption algorithm is `RSAES_OAEP_SHA_256`. -class ExpirationModelType(UnknownEnumMixin, StrEnum): - KEY_MATERIAL_EXPIRES = "KEY_MATERIAL_EXPIRES" - KEY_MATERIAL_DOES_NOT_EXPIRE = "KEY_MATERIAL_DOES_NOT_EXPIRE" + This parameter supports the [Amazon Web Services Nitro Enclaves + SDK](https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk) + or any Amazon Web Services SDK for Amazon Web Services Nitro Enclaves. + It supports any Amazon Web Services SDK for Amazon Web Services + NitroTPM. -@dataclass(kw_only=True) -class ExpiredImportTokenException(ServiceError, _SerdeShape): + When you use this parameter, instead of returning the plaintext data + key, KMS encrypts the plaintext data key under the public key in the + attestation document, and returns the resulting ciphertext in the + `CiphertextForRecipient` field in the response. This ciphertext can be + decrypted only with the private key in the enclave. The `CiphertextBlob` + field in the response contains a copy of the data key encrypted under + the KMS key specified by the `KeyId` parameter. The `Plaintext` field in + the response is null or empty. + + For information about the interaction between KMS and Amazon Web + Services Nitro Enclaves or Amazon Web Services NitroTPM, see + [Cryptographic attestation support in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + in the *Key Management Service Developer Guide*. """ - The request was rejected because the specified import token is expired. - Use GetParametersForImport to get a new import token and public key, use - the new public key to encrypt the key material, and then try the request - again. + dry_run: bool | None = ... """ + Checks if your request will succeed. `DryRun` is an optional parameter. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. """ -@dataclass(kw_only=True) -class GenerateDataKeyInput(_SerdeShape): - """Dataclass for GenerateDataKeyInput structure.""" +class GenerateDataKeyInputDict(TypedDict, total=False): + """Dictionary form of `GenerateDataKeyInput`.""" - key_id: str | None = ... + key_id: Required[str] """ Specifies the symmetric encryption KMS key that encrypts the data key. You cannot specify an asymmetric KMS key or a KMS key in a custom key @@ -2712,7 +4372,7 @@ class GenerateDataKeyInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases. """ - encryption_context: dict[str, str] | None = ... + encryption_context: Mapping[str, str] | None """ Specifies the encryption context that will be used when encrypting the data key. @@ -2733,7 +4393,7 @@ class GenerateDataKeyInput(_SerdeShape): context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) in the *Key Management Service Developer Guide*. """ - number_of_bytes: int | None = ... + number_of_bytes: int | None """ Specifies the length of the data key in bytes. For example, use the value 64 to generate a 512-bit data key (64 bytes is 512 bits). For @@ -2743,7 +4403,7 @@ class GenerateDataKeyInput(_SerdeShape): You must specify either the `KeySpec` or the `NumberOfBytes` parameter (but not both) in every `GenerateDataKey` request. """ - key_spec: str | None = ... + key_spec: str | None """ Specifies the length of the data key. Use `AES_128` to generate a 128-bit symmetric key, or `AES_256` to generate a 256-bit symmetric key. @@ -2751,7 +4411,7 @@ class GenerateDataKeyInput(_SerdeShape): You must specify either the `KeySpec` or the `NumberOfBytes` parameter (but not both) in every `GenerateDataKey` request. """ - grant_tokens: list[str] | None = ... + grant_tokens: Sequence[str] | None """ A list of grant tokens. @@ -2763,7 +4423,7 @@ class GenerateDataKeyInput(_SerdeShape): token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. """ - recipient: RecipientInfo | None = ... + recipient: RecipientInfo | RecipientInfoDict | None """ A signed [attestation document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc) @@ -2792,7 +4452,7 @@ class GenerateDataKeyInput(_SerdeShape): KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) in the *Key Management Service Developer Guide*. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks if your request will succeed. `DryRun` is an optional parameter. @@ -2974,6 +4634,125 @@ class GenerateDataKeyPairInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class GenerateDataKeyPairInputDict(TypedDict, total=False): + """Dictionary form of `GenerateDataKeyPairInput`.""" + + encryption_context: Mapping[str, str] | None + """ + Specifies the encryption context that will be used when encrypting the + private key in the data key pair. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + An *encryption context* is a collection of non-secret key-value pairs + that represent additional authenticated data. When you use an encryption + context to encrypt data, you must specify the same (an exact + case-sensitive match) encryption context to decrypt the data. An + encryption context is supported only on operations with symmetric + encryption KMS keys. On operations with symmetric encryption KMS keys, + an encryption context is optional, but it is strongly recommended. + + For more information, see [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) + in the *Key Management Service Developer Guide*. + """ + key_id: Required[str] + """ + Specifies the symmetric encryption KMS key that encrypts the private key + in the data key pair. You cannot specify an asymmetric KMS key or a KMS + key in a custom key store. To get the type and origin of your KMS key, + use the DescribeKey operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + key_pair_spec: Required[str] + """ + Determines the type of data key pair that is generated. + + The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys + to encrypt and decrypt or to sign and verify (but not both), the rule + that permits you to use ECC KMS keys only to sign and verify, and the + rule that permits you to use ML-DSA key pairs to sign and verify only + are not effective on data key pairs, which are used outside of KMS. The + SM2 key spec is only available in China Regions. The ML-KEM key specs + are not available in China Regions. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + recipient: RecipientInfo | RecipientInfoDict | None + """ + A signed [attestation + document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc) + from an Amazon Web Services Nitro enclave or NitroTPM, and the + encryption algorithm to use with the public key in the attestation + document. The only valid encryption algorithm is `RSAES_OAEP_SHA_256`. + + This parameter only supports attestation documents for Amazon Web + Services Nitro Enclaves or Amazon Web Services NitroTPM. To call + GenerateDataKeyPair generate an attestation document use either [Amazon + Web Services Nitro Enclaves + SDK](https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk) + for an Amazon Web Services Nitro Enclaves or [Amazon Web Services + NitroTPM + tools](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/attestation-get-doc.html) + for Amazon Web Services NitroTPM. Then use the Recipient parameter from + any Amazon Web Services SDK to provide the attestation document for the + attested environment. + + When you use this parameter, instead of returning a plaintext copy of + the private data key, KMS encrypts the plaintext private data key under + the public key in the attestation document, and returns the resulting + ciphertext in the `CiphertextForRecipient` field in the response. This + ciphertext can be decrypted only with the private key in the attested + environment. The `CiphertextBlob` field in the response contains a copy + of the private data key encrypted under the KMS key specified by the + `KeyId` parameter. The `PrivateKeyPlaintext` field in the response is + null or empty. + + For information about the interaction between KMS and Amazon Web + Services Nitro Enclaves or Amazon Web Services NitroTPM, see + [Cryptographic attestation support in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + in the *Key Management Service Developer Guide*. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class GenerateDataKeyPairOutput(_SerdeShape): """Dataclass for GenerateDataKeyPairOutput structure.""" @@ -3009,33 +4788,116 @@ class GenerateDataKeyPairOutput(_SerdeShape): """The type of data key pair that was generated.""" ciphertext_for_recipient: bytes | None = ... """ - The plaintext private data key encrypted with the public key from the - attestation document. This ciphertext can be decrypted only by using a - private key from the attested environment. + The plaintext private data key encrypted with the public key from the + attestation document. This ciphertext can be decrypted only by using a + private key from the attested environment. + + This field is included in the response only when the `Recipient` + parameter in the request includes a valid attestation document from an + Amazon Web Services Nitro enclave or NitroTPM. For information about the + interaction between KMS and Amazon Web Services Nitro Enclaves or Amazon + Web Services NitroTPM, see [Cryptographic attestation support in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + in the *Key Management Service Developer Guide*. + """ + key_material_id: str | None = ... + """The identifier of the key material used to encrypt the private key.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GenerateDataKeyPairWithoutPlaintextInput(_SerdeShape): + """Dataclass for GenerateDataKeyPairWithoutPlaintextInput structure.""" + + encryption_context: dict[str, str] | None = ... + """ + Specifies the encryption context that will be used when encrypting the + private key in the data key pair. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + An *encryption context* is a collection of non-secret key-value pairs + that represent additional authenticated data. When you use an encryption + context to encrypt data, you must specify the same (an exact + case-sensitive match) encryption context to decrypt the data. An + encryption context is supported only on operations with symmetric + encryption KMS keys. On operations with symmetric encryption KMS keys, + an encryption context is optional, but it is strongly recommended. + + For more information, see [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) + in the *Key Management Service Developer Guide*. + """ + key_id: str | None = ... + """ + Specifies the symmetric encryption KMS key that encrypts the private key + in the data key pair. You cannot specify an asymmetric KMS key or a KMS + key in a custom key store. To get the type and origin of your KMS key, + use the DescribeKey operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + key_pair_spec: str | None = ... + """ + Determines the type of data key pair that is generated. + + The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys + to encrypt and decrypt or to sign and verify (but not both), the rule + that permits you to use ECC KMS keys only to sign and verify, and the + rule that permits you to use ML-DSA key pairs to sign and verify only + are not effective on data key pairs, which are used outside of KMS. The + SM2 key spec is only available in China Regions. The ML-KEM key specs + are not available in China Regions. + """ + grant_tokens: list[str] | None = ... + """ + A list of grant tokens. - This field is included in the response only when the `Recipient` - parameter in the request includes a valid attestation document from an - Amazon Web Services Nitro enclave or NitroTPM. For information about the - interaction between KMS and Amazon Web Services Nitro Enclaves or Amazon - Web Services NitroTPM, see [Cryptographic attestation support in - KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. """ - key_material_id: str | None = ... - """The identifier of the key material used to encrypt the private key.""" - response_metadata: ResponseMetadata = ... + dry_run: bool | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. """ -@dataclass(kw_only=True) -class GenerateDataKeyPairWithoutPlaintextInput(_SerdeShape): - """Dataclass for GenerateDataKeyPairWithoutPlaintextInput structure.""" +class GenerateDataKeyPairWithoutPlaintextInputDict(TypedDict, total=False): + """Dictionary form of `GenerateDataKeyPairWithoutPlaintextInput`.""" - encryption_context: dict[str, str] | None = ... + encryption_context: Mapping[str, str] | None """ Specifies the encryption context that will be used when encrypting the private key in the data key pair. @@ -3056,7 +4918,7 @@ class GenerateDataKeyPairWithoutPlaintextInput(_SerdeShape): context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) in the *Key Management Service Developer Guide*. """ - key_id: str | None = ... + key_id: Required[str] """ Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot specify an asymmetric KMS key or a KMS @@ -3082,7 +4944,7 @@ class GenerateDataKeyPairWithoutPlaintextInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases. """ - key_pair_spec: str | None = ... + key_pair_spec: Required[str] """ Determines the type of data key pair that is generated. @@ -3094,7 +4956,7 @@ class GenerateDataKeyPairWithoutPlaintextInput(_SerdeShape): SM2 key spec is only available in China Regions. The ML-KEM key specs are not available in China Regions. """ - grant_tokens: list[str] | None = ... + grant_tokens: Sequence[str] | None """ A list of grant tokens. @@ -3106,7 +4968,7 @@ class GenerateDataKeyPairWithoutPlaintextInput(_SerdeShape): token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks if your request will succeed. `DryRun` is an optional parameter. @@ -3233,6 +5095,89 @@ class GenerateDataKeyWithoutPlaintextInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class GenerateDataKeyWithoutPlaintextInputDict(TypedDict, total=False): + """Dictionary form of `GenerateDataKeyWithoutPlaintextInput`.""" + + key_id: Required[str] + """ + Specifies the symmetric encryption KMS key that encrypts the data key. + You cannot specify an asymmetric KMS key or a KMS key in a custom key + store. To get the type and origin of your KMS key, use the DescribeKey + operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + encryption_context: Mapping[str, str] | None + """ + Specifies the encryption context that will be used when encrypting the + data key. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + An *encryption context* is a collection of non-secret key-value pairs + that represent additional authenticated data. When you use an encryption + context to encrypt data, you must specify the same (an exact + case-sensitive match) encryption context to decrypt the data. An + encryption context is supported only on operations with symmetric + encryption KMS keys. On operations with symmetric encryption KMS keys, + an encryption context is optional, but it is strongly recommended. + + For more information, see [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) + in the *Key Management Service Developer Guide*. + """ + key_spec: str | None + """ + The length of the data key. Use `AES_128` to generate a 128-bit + symmetric key, or `AES_256` to generate a 256-bit symmetric key. + """ + number_of_bytes: int | None + """ + The length of the data key in bytes. For example, use the value 64 to + generate a 512-bit data key (64 bytes is 512 bits). For common key + lengths (128-bit and 256-bit symmetric keys), we recommend that you use + the `KeySpec` field instead of this one. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class GenerateDataKeyWithoutPlaintextOutput(_SerdeShape): """Dataclass for GenerateDataKeyWithoutPlaintextOutput structure.""" @@ -3310,6 +5255,56 @@ class GenerateMacInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class GenerateMacInputDict(TypedDict, total=False): + """Dictionary form of `GenerateMacInput`.""" + + message: Required[bytes] + """ + The message to be hashed. Specify a message of up to 4,096 bytes. + + `GenerateMac` and VerifyMac do not provide special handling for message + digests. If you generate an HMAC for a hash digest of a message, you + must verify the HMAC of the same hash digest. + """ + key_id: Required[str] + """ + The HMAC KMS key to use in the operation. The MAC algorithm computes the + HMAC for the message and the key as described in [RFC + 2104](https://datatracker.ietf.org/doc/html/rfc2104). + + To identify an HMAC KMS key, use the DescribeKey operation and see the + `KeySpec` field in the response. + """ + mac_algorithm: Required[str] + """ + The MAC algorithm used in the operation. + + The algorithm must be compatible with the HMAC KMS key that you specify. + To find the MAC algorithms that your HMAC KMS key supports, use the + DescribeKey operation and see the `MacAlgorithms` field in the + `DescribeKey` response. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class GenerateMacOutput(_SerdeShape): """Dataclass for GenerateMacOutput structure.""" @@ -3378,6 +5373,49 @@ class GenerateRandomInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class GenerateRandomInputDict(TypedDict, total=False): + """Dictionary form of `GenerateRandomInput`.""" + + number_of_bytes: int | None + """The length of the random byte string. This parameter is required.""" + custom_key_store_id: str | None + """ + Generates the random byte string in the CloudHSM cluster that is + associated with the specified CloudHSM key store. To find the ID of a + custom key store, use the DescribeCustomKeyStores operation. + + External key store IDs are not valid for this parameter. If you specify + the ID of an external key store, `GenerateRandom` throws an + `UnsupportedOperationException`. + """ + recipient: RecipientInfo | RecipientInfoDict | None + """ + A signed [attestation + document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitro-enclave-how.html#term-attestdoc) + from an Amazon Web Services Nitro enclave or NitroTPM, and the + encryption algorithm to use with the public key in the attestation + document. The only valid encryption algorithm is `RSAES_OAEP_SHA_256`. + + This parameter supports the [Amazon Web Services Nitro Enclaves + SDK](https://docs.aws.amazon.com/enclaves/latest/user/developing-applications.html#sdk) + or any Amazon Web Services SDK for Amazon Web Services Nitro Enclaves. + It supports any Amazon Web Services SDK for Amazon Web Services + NitroTPM. + + When you use this parameter, instead of returning plaintext bytes, KMS + encrypts the plaintext bytes under the public key in the attestation + document, and returns the resulting ciphertext in the + `CiphertextForRecipient` field in the response. This ciphertext can be + decrypted only with the private key in the attested environment. The + `Plaintext` field in the response is null or empty. + + For information about the interaction between KMS and Amazon Web + Services Nitro Enclaves or Amazon Web Services NitroTPM, see + [Cryptographic attestation support in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class GenerateRandomOutput(_SerdeShape): """Dataclass for GenerateRandomOutput structure.""" @@ -3435,6 +5473,27 @@ class GetKeyLastUsageInput(_SerdeShape): DescribeKey. """ +class GetKeyLastUsageInputDict(TypedDict, total=False): + """Dictionary form of `GetKeyLastUsageInput`.""" + + key_id: Required[str] + """ + Identifies the KMS key to get usage information for. To specify a KMS + key, use its key ID or key ARN. Alias names are not supported. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + @dataclass(kw_only=True) class GetKeyLastUsageOutput(_SerdeShape): """Dataclass for GetKeyLastUsageOutput structure.""" @@ -3489,6 +5548,32 @@ class GetKeyPolicyInput(_SerdeShape): the names of key policies, use ListKeyPolicies. """ +class GetKeyPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetKeyPolicyInput`.""" + + key_id: Required[str] + """ + Gets the key policy for the specified KMS key. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + policy_name: str | None + """ + Specifies the name of the key policy. If no policy name is specified, + the default value is `default`. The only valid name is `default`. To get + the names of key policies, use ListKeyPolicies. + """ + @dataclass(kw_only=True) class GetKeyPolicyOutput(_SerdeShape): """Dataclass for GetKeyPolicyOutput structure.""" @@ -3505,11 +5590,32 @@ class GetKeyPolicyOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetKeyRotationStatusInput(_SerdeShape): - """Dataclass for GetKeyRotationStatusInput structure.""" +@dataclass(kw_only=True) +class GetKeyRotationStatusInput(_SerdeShape): + """Dataclass for GetKeyRotationStatusInput structure.""" + + key_id: str | None = ... + """ + Gets the rotation status for the specified KMS key. + + Specify the key ID or key ARN of the KMS key. To specify a KMS key in a + different Amazon Web Services account, you must use the key ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + +class GetKeyRotationStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetKeyRotationStatusInput`.""" - key_id: str | None = ... + key_id: Required[str] """ Gets the rotation status for the specified KMS key. @@ -3636,6 +5742,80 @@ class GetParametersForImportInput(_SerdeShape): longer RSA public key. """ +class GetParametersForImportInputDict(TypedDict, total=False): + """Dictionary form of `GetParametersForImportInput`.""" + + key_id: Required[str] + """ + The identifier of the KMS key that will be associated with the imported + key material. The `Origin` of the KMS key must be `EXTERNAL`. + + All KMS key types are supported, including multi-Region keys. However, + you cannot import key material into a KMS key in a custom key store. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + wrapping_algorithm: Required[str] + """ + The algorithm you will use with the RSA public key (`PublicKey`) in the + response to protect your key material during import. For more + information, see [Select a wrapping + algorithm](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-get-public-key-and-token.html#select-wrapping-algorithm) + in the *Key Management Service Developer Guide*. + + For RSA_AES wrapping algorithms, you encrypt your key material with an + AES key that you generate, then encrypt your AES key with the RSA public + key from KMS. For RSAES wrapping algorithms, you encrypt your key + material directly with the RSA public key from KMS. + + The wrapping algorithms that you can use depend on the type of key + material that you are importing. To import an RSA private key, you must + use an RSA_AES wrapping algorithm. + + - **RSA_AES_KEY_WRAP_SHA_256** --- Supported for wrapping RSA and ECC + key material. + + - **RSA_AES_KEY_WRAP_SHA_1** --- Supported for wrapping RSA and ECC key + material. + + - **RSAES_OAEP_SHA_256** --- Supported for all types of key material, + except RSA key material (private key). + + You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the + RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material. + + - **RSAES_OAEP_SHA_1** --- Supported for all types of key material, + except RSA key material (private key). + + You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the + RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material. + + - **RSAES_PKCS1_V1_5** (Deprecated) --- As of October 10, 2023, KMS does + not support the RSAES_PKCS1_V1_5 wrapping algorithm. + """ + wrapping_key_spec: Required[str] + """ + The type of RSA public key to return in the response. You will use this + wrapping key with the specified wrapping algorithm to protect your key + material during import. + + Use the longest RSA wrapping key that is practical. + + You cannot use an RSA_2048 public key to directly wrap an ECC_NIST_P521 + private key. Instead, use an RSA_AES wrapping algorithm or choose a + longer RSA public key. + """ + @dataclass(kw_only=True) class GetParametersForImportOutput(_SerdeShape): """Dataclass for GetParametersForImportOutput structure.""" @@ -3709,6 +5889,45 @@ class GetPublicKeyInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class GetPublicKeyInputDict(TypedDict, total=False): + """Dictionary form of `GetPublicKeyInput`.""" + + key_id: Required[str] + """ + Identifies the asymmetric KMS key that includes the public key. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class GetPublicKeyOutput(_SerdeShape): """Dataclass for GetPublicKeyOutput structure.""" @@ -3864,6 +6083,39 @@ class GrantConstraints(_SerdeShape): behalf of the specified resource. """ +class GrantConstraintsDict(TypedDict, total=False): + """Dictionary form of `GrantConstraints`.""" + + encryption_context_subset: Mapping[str, str] | None + """ + A list of key-value pairs that must be included in the encryption + context of the [cryptographic + operation](https://docs.aws.amazon.com/kms/latest/developerguide/kms-cryptography.html#cryptographic-operations) + request. The grant allows the cryptographic operation only when the + encryption context in the request includes the key-value pairs specified + in this constraint, although it can include additional key-value pairs. + """ + encryption_context_equals: Mapping[str, str] | None + """ + A list of key-value pairs that must match the encryption context in the + [cryptographic + operation](https://docs.aws.amazon.com/kms/latest/developerguide/kms-cryptography.html#cryptographic-operations) + request. The grant allows the operation only when the encryption context + in the request is the same as the encryption context specified in this + constraint. + """ + source_arn: str | None + """ + The [Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + of an Amazon Web Services resource on behalf of which the request is + made. This is effectively the same as having the + [aws:SourceArn](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourcearn) + global condition key in the grant. The SourceArn constraint ensures that + the principal can use the KMS key only when the request is made on + behalf of the specified resource. + """ + @dataclass(kw_only=True) class GrantListEntry(_SerdeShape): """Contains information about a grant.""" @@ -3970,20 +6222,142 @@ class ImportKeyMaterialInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ - import_token: bytes | None = ... + import_token: bytes | None = ... + """ + The import token that you received in the response to a previous + GetParametersForImport request. It must be from the same response that + contained the public key that you used to encrypt the key material. + """ + encrypted_key_material: bytes | None = ... + """ + The encrypted key material to import. The key material must be encrypted + under the public wrapping key that GetParametersForImport returned, + using the wrapping algorithm that you specified in the same + `GetParametersForImport` request. + """ + valid_to: datetime | None = ... + """ + The date and time when the imported key material expires. This parameter + is required when the value of the `ExpirationModel` parameter is + `KEY_MATERIAL_EXPIRES`. Otherwise it is not valid. + + The value of this parameter must be a future date and time. The maximum + value is 365 days from the request date. + + When the key material expires, KMS deletes the key material from the KMS + key. Without its key material, the KMS key is unusable. To use the KMS + key in cryptographic operations, you must reimport the same key + material. + + You cannot change the `ExpirationModel` or `ValidTo` values for the + current import after the request completes. To change either value, you + must delete (DeleteImportedKeyMaterial) and reimport the key material. + """ + expiration_model: str | None = ... + """ + Specifies whether the key material expires. The default is + `KEY_MATERIAL_EXPIRES`. For help with this choice, see [Setting an + expiration + time](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-import-key-material.html#importing-keys-expiration) + in the *Key Management Service Developer Guide*. + + When the value of `ExpirationModel` is `KEY_MATERIAL_EXPIRES`, you must + specify a value for the `ValidTo` parameter. When value is + `KEY_MATERIAL_DOES_NOT_EXPIRE`, you must omit the `ValidTo` parameter. + + You cannot change the `ExpirationModel` or `ValidTo` values for the + current import after the request completes. To change either value, you + must reimport the key material. + """ + import_type: str | None = ... + """ + Indicates whether the key material being imported is previously + associated with this KMS key or not. This parameter is optional and only + usable with symmetric encryption keys. If no key material has ever been + imported into the KMS key, and this parameter is omitted, the parameter + defaults to `NEW_KEY_MATERIAL`. After the first key material is + imported, if this parameter is omitted then the parameter defaults to + `EXISTING_KEY_MATERIAL`. + + For multi-Region keys, you must first import new key material into the + primary Region key. You should use the `NEW_KEY_MATERIAL` import type + when importing key material into the primary Region key. Then, you can + import the same key material into the replica Region key. The import + type for the replica Region key should be `EXISTING_KEY_MATERIAL`. + """ + key_material_description: str | None = ... + """ + Description for the key material being imported. This parameter is + optional and only usable with symmetric encryption keys. If you do not + specify a key material description, KMS retains the value you specified + when you last imported the same key material into this KMS key. + """ + key_material_id: str | None = ... + """ + Identifies the key material being imported. This parameter is optional + and only usable with symmetric encryption keys. You cannot specify a key + material ID with `ImportType` set to `NEW_KEY_MATERIAL`. Whenever you + import key material into a symmetric encryption key, KMS assigns a + unique identifier to the key material based on the KMS key ID and the + imported key material. When you re-import key material with a specified + key material ID, KMS: + + - Computes the identifier for the key material + + - Matches the computed identifier against the specified key material ID + + - Verifies that the key material ID is already associated with the KMS + key + + To get the list of key material IDs associated with a KMS key, use + ListKeyRotations. + """ + +class ImportKeyMaterialInputDict(TypedDict, total=False): + """Dictionary form of `ImportKeyMaterialInput`.""" + + key_id: Required[str] + """ + The identifier of the KMS key that will be associated with the imported + key material. This must be the same KMS key specified in the `KeyID` + parameter of the corresponding GetParametersForImport request. The + `Origin` of the KMS key must be `EXTERNAL` and its `KeyState` must be + `PendingImport`. + + The KMS key can be a symmetric encryption KMS key, HMAC KMS key, + asymmetric encryption KMS key, or asymmetric signing KMS key, including + a [multi-Region + key](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + of any supported type. You cannot perform this operation on a KMS key in + a custom key store, or on a KMS key in a different Amazon Web Services + account. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + import_token: Required[bytes] """ The import token that you received in the response to a previous GetParametersForImport request. It must be from the same response that contained the public key that you used to encrypt the key material. """ - encrypted_key_material: bytes | None = ... + encrypted_key_material: Required[bytes] """ The encrypted key material to import. The key material must be encrypted under the public wrapping key that GetParametersForImport returned, using the wrapping algorithm that you specified in the same `GetParametersForImport` request. """ - valid_to: datetime | None = ... + valid_to: datetime | None """ The date and time when the imported key material expires. This parameter is required when the value of the `ExpirationModel` parameter is @@ -4001,7 +6375,7 @@ class ImportKeyMaterialInput(_SerdeShape): current import after the request completes. To change either value, you must delete (DeleteImportedKeyMaterial) and reimport the key material. """ - expiration_model: str | None = ... + expiration_model: str | None """ Specifies whether the key material expires. The default is `KEY_MATERIAL_EXPIRES`. For help with this choice, see [Setting an @@ -4017,7 +6391,7 @@ class ImportKeyMaterialInput(_SerdeShape): current import after the request completes. To change either value, you must reimport the key material. """ - import_type: str | None = ... + import_type: str | None """ Indicates whether the key material being imported is previously associated with this KMS key or not. This parameter is optional and only @@ -4033,14 +6407,14 @@ class ImportKeyMaterialInput(_SerdeShape): import the same key material into the replica Region key. The import type for the replica Region key should be `EXISTING_KEY_MATERIAL`. """ - key_material_description: str | None = ... + key_material_description: str | None """ Description for the key material being imported. This parameter is optional and only usable with symmetric encryption keys. If you do not specify a key material description, KMS retains the value you specified when you last imported the same key material into this KMS key. """ - key_material_id: str | None = ... + key_material_id: str | None """ Identifies the key material being imported. This parameter is optional and only usable with symmetric encryption keys. You cannot specify a key @@ -4763,6 +7137,45 @@ class ListAliasesInput(_SerdeShape): truncated response you just received. """ +class ListAliasesInputDict(TypedDict, total=False): + """Dictionary form of `ListAliasesInput`.""" + + key_id: str | None + """ + Lists only aliases that are associated with the specified KMS key. Enter + a KMS key in your Amazon Web Services account. + + This parameter is optional. If you omit it, `ListAliases` returns all + aliases in the account and Region. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + limit: int | None + """ + Use this parameter to specify the maximum number of items to return. + When this value is present, KMS does not return more than the specified + number of items, but it might return fewer. + + This value is optional. If you include a value, it must be between 1 and + 100, inclusive. If you do not include a value, it defaults to 50. + """ + marker: str | None + """ + Use this parameter in a subsequent request after you receive a response + with truncated results. Set it to the value of `NextMarker` from the + truncated response you just received. + """ + @dataclass(kw_only=True) class ListAliasesOutput(_SerdeShape): """Dataclass for ListAliasesOutput structure.""" @@ -4849,6 +7262,65 @@ class ListGrantsInput(_SerdeShape): but not both. """ +class ListGrantsInputDict(TypedDict, total=False): + """Dictionary form of `ListGrantsInput`.""" + + limit: int | None + """ + Use this parameter to specify the maximum number of items to return. + When this value is present, KMS does not return more than the specified + number of items, but it might return fewer. + + This value is optional. If you include a value, it must be between 1 and + 100, inclusive. If you do not include a value, it defaults to 50. + """ + marker: str | None + """ + Use this parameter in a subsequent request after you receive a response + with truncated results. Set it to the value of `NextMarker` from the + truncated response you just received. + """ + key_id: Required[str] + """ + Returns only grants for the specified KMS key. This parameter is + required. + + Specify the key ID or key ARN of the KMS key. To specify a KMS key in a + different Amazon Web Services account, you must use the key ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + grant_id: str | None + """ + Returns only the grant with the specified grant ID. The grant ID + uniquely identifies the grant. + """ + grantee_principal: str | None + """ + Returns only grants where the specified principal is the grantee + principal for the grant. + + You can specify either `GranteePrincipal` or `GranteeServicePrincipal`, + but not both. + """ + grantee_service_principal: str | None + """ + Returns only grants where the specified Amazon Web Services service + principal is the grantee service principal for the grant. This filter is + only usable by callers in a service principal. + + You can specify either `GranteePrincipal` or `GranteeServicePrincipal`, + but not both. + """ + @dataclass(kw_only=True) class ListGrantsOutput(_SerdeShape): """Dataclass for ListGrantsOutput structure.""" @@ -4913,6 +7385,43 @@ class ListKeyPoliciesInput(_SerdeShape): truncated response you just received. """ +class ListKeyPoliciesInputDict(TypedDict, total=False): + """Dictionary form of `ListKeyPoliciesInput`.""" + + key_id: Required[str] + """ + Gets the names of key policies for the specified KMS key. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + limit: int | None + """ + Use this parameter to specify the maximum number of items to return. + When this value is present, KMS does not return more than the specified + number of items, but it might return fewer. + + This value is optional. If you include a value, it must be between 1 and + 1000, inclusive. If you do not include a value, it defaults to 100. + + Only one policy can be attached to a key. + """ + marker: str | None + """ + Use this parameter in a subsequent request after you receive a response + with truncated results. Set it to the value of `NextMarker` from the + truncated response you just received. + """ + @dataclass(kw_only=True) class ListKeyPoliciesOutput(_SerdeShape): """Dataclass for ListKeyPoliciesOutput structure.""" @@ -4986,6 +7495,52 @@ class ListKeyRotationsInput(_SerdeShape): truncated response you just received. """ +class ListKeyRotationsInputDict(TypedDict, total=False): + """Dictionary form of `ListKeyRotationsInput`.""" + + key_id: Required[str] + """ + Gets the key rotations for the specified KMS key. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + include_key_material: str | None + """ + Use this optional parameter to control which key materials associated + with this key are listed in the response. The default value of this + parameter is `ROTATIONS_ONLY`. If you omit this parameter, KMS returns + information on the key materials created by automatic or on-demand key + rotation. When you specify a value of `ALL_KEY_MATERIAL`, KMS adds the + first key material and any imported key material pending rotation to the + response. This parameter can only be used with KMS keys that support + automatic or on-demand key rotation. + """ + limit: int | None + """ + Use this parameter to specify the maximum number of items to return. + When this value is present, KMS does not return more than the specified + number of items, but it might return fewer. + + This value is optional. If you include a value, it must be between 1 and + 1000, inclusive. If you do not include a value, it defaults to 100. + """ + marker: str | None + """ + Use this parameter in a subsequent request after you receive a response + with truncated results. Set it to the value of `NextMarker` from the + truncated response you just received. + """ + @dataclass(kw_only=True) class ListKeyRotationsOutput(_SerdeShape): """Dataclass for ListKeyRotationsOutput structure.""" @@ -5037,6 +7592,25 @@ class ListKeysInput(_SerdeShape): truncated response you just received. """ +class ListKeysInputDict(TypedDict, total=False): + """Dictionary form of `ListKeysInput`.""" + + limit: int | None + """ + Use this parameter to specify the maximum number of items to return. + When this value is present, KMS does not return more than the specified + number of items, but it might return fewer. + + This value is optional. If you include a value, it must be between 1 and + 1000, inclusive. If you do not include a value, it defaults to 100. + """ + marker: str | None + """ + Use this parameter in a subsequent request after you receive a response + with truncated results. Set it to the value of `NextMarker` from the + truncated response you just received. + """ + @dataclass(kw_only=True) class ListKeysOutput(_SerdeShape): """Dataclass for ListKeysOutput structure.""" @@ -5102,6 +7676,44 @@ class ListResourceTagsInput(_SerdeShape): `NextMarker` from the truncated response you just received. """ +class ListResourceTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListResourceTagsInput`.""" + + key_id: Required[str] + """ + Gets tags on the specified KMS key. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + limit: int | None + """ + Use this parameter to specify the maximum number of items to return. + When this value is present, KMS does not return more than the specified + number of items, but it might return fewer. + + This value is optional. If you include a value, it must be between 1 and + 50, inclusive. If you do not include a value, it defaults to 50. + """ + marker: str | None + """ + Use this parameter in a subsequent request after you receive a response + with truncated results. Set it to the value of `NextMarker` from the + truncated response you just received. + + Do not attempt to construct this value. Use only the value of + `NextMarker` from the truncated response you just received. + """ + @dataclass(kw_only=True) class ListResourceTagsOutput(_SerdeShape): """Dataclass for ListResourceTagsOutput structure.""" @@ -5138,11 +7750,54 @@ class ListResourceTagsOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class ListRetirableGrantsInput(_SerdeShape): - """Dataclass for ListRetirableGrantsInput structure.""" +@dataclass(kw_only=True) +class ListRetirableGrantsInput(_SerdeShape): + """Dataclass for ListRetirableGrantsInput structure.""" + + limit: int | None = ... + """ + Use this parameter to specify the maximum number of items to return. + When this value is present, KMS does not return more than the specified + number of items, but it might return fewer. + + This value is optional. If you include a value, it must be between 1 and + 100, inclusive. If you do not include a value, it defaults to 50. + """ + marker: str | None = ... + """ + Use this parameter in a subsequent request after you receive a response + with truncated results. Set it to the value of `NextMarker` from the + truncated response you just received. + """ + retiring_principal: str | None = ... + """ + The retiring principal for which to list grants. Enter a principal in + your Amazon Web Services account. + + To specify the retiring principal, use the [Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + of an Amazon Web Services principal. Valid principals include Amazon Web + Services accounts, IAM users, IAM roles, federated users, and assumed + role users. For help with the ARN syntax for a principal, see [IAM + ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns) + in the Identity and Access Management User Guide . + + You must specify either `RetiringPrincipal` or + `RetiringServicePrincipal`, but not both. + """ + retiring_service_principal: str | None = ... + """ + The retiring service principal for which to list grants. This filter is + only usable by callers in a service principal. + + You must specify either `RetiringPrincipal` or + `RetiringServicePrincipal`, but not both. + """ + +class ListRetirableGrantsInputDict(TypedDict, total=False): + """Dictionary form of `ListRetirableGrantsInput`.""" - limit: int | None = ... + limit: int | None """ Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified @@ -5151,13 +7806,13 @@ class ListRetirableGrantsInput(_SerdeShape): This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50. """ - marker: str | None = ... + marker: str | None """ Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of `NextMarker` from the truncated response you just received. """ - retiring_principal: str | None = ... + retiring_principal: str | None """ The retiring principal for which to list grants. Enter a principal in your Amazon Web Services account. @@ -5173,7 +7828,7 @@ class ListRetirableGrantsInput(_SerdeShape): You must specify either `RetiringPrincipal` or `RetiringServicePrincipal`, but not both. """ - retiring_service_principal: str | None = ... + retiring_service_principal: str | None """ The retiring service principal for which to list grants. This filter is only usable by callers in a service principal. @@ -5356,14 +8011,14 @@ class PutKeyPolicyInput(_SerdeShape): A key policy document can include only the following characters: - - Printable ASCII characters from the space character (`\u0020`) through + - Printable ASCII characters from the space character (`\\u0020`) through the end of the ASCII character range. - Printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`). + character set (through `\\u00FF`). - - The tab (`\u0009`), line feed (`\u000a`), and carriage return - (`\u000d`) special characters + - The tab (`\\u0009`), line feed (`\\u000A`), and carriage return + (`\\u000D`) special characters Note: If the key policy exceeds the length constraint, KMS returns a @@ -5389,63 +8044,348 @@ class PutKeyPolicyInput(_SerdeShape): policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key) in the *Key Management Service Developer Guide*. - Use this parameter only when you intend to prevent the principal that is - making the request from making a subsequent - [PutKeyPolicy](https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html) - request on the KMS key. + Use this parameter only when you intend to prevent the principal that is + making the request from making a subsequent + [PutKeyPolicy](https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html) + request on the KMS key. + """ + +class PutKeyPolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutKeyPolicyInput`.""" + + key_id: Required[str] + """ + Sets the key policy on the specified KMS key. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + policy_name: str | None + """ + The name of the key policy. If no policy name is specified, the default + value is `default`. The only valid value is `default`. + """ + policy: Required[str] + """ + The key policy to attach to the KMS key. + + The key policy must meet the following criteria: + + - The key policy must allow the calling principal to make a subsequent + `PutKeyPolicy` request on the KMS key. This reduces the risk that the + KMS key becomes unmanageable. For more information, see [Default key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key) + in the *Key Management Service Developer Guide*. (To omit this + condition, set `BypassPolicyLockoutSafetyCheck` to true.) + + - Each statement in the key policy must contain one or more principals. + The principals in the key policy must exist and be visible to KMS. + When you create a new Amazon Web Services principal, you might need to + enforce a delay before including the new principal in a key policy + because the new principal might not be immediately visible to KMS. For + more information, see [Changes that I make are not always immediately + visible](https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) + in the *Amazon Web Services Identity and Access Management User + Guide*. + + Note: + If either of the required `Resource` or `Action` elements are missing + from a key policy statement, the policy statement has no effect. When a + key policy statement is missing one of these elements, the KMS console + correctly reports an error, but the `PutKeyPolicy` API request succeeds, + even though the policy statement is ineffective. + + For more information on required key policy elements, see [Elements in a + key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-overview.html#key-policy-elements) + in the *Key Management Service Developer Guide*. + + A key policy document can include only the following characters: + + - Printable ASCII characters from the space character (`\\u0020`) through + the end of the ASCII character range. + + - Printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`). + + - The tab (`\\u0009`), line feed (`\\u000A`), and carriage return + (`\\u000D`) special characters + + Note: + If the key policy exceeds the length constraint, KMS returns a + `LimitExceededException`. + + For information about key policies, see [Key policies in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) + in the *Key Management Service Developer Guide*.For help writing and + formatting a JSON policy document, see the [IAM JSON Policy + Reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html) + in the Identity and Access Management User Guide . + """ + bypass_policy_lockout_safety_check: bool | None + """ + Skips (\"bypasses\") the key policy lockout safety check. The default + value is false. + + Warning: + Setting this value to true increases the risk that the KMS key becomes + unmanageable. Do not set this value to true indiscriminately. + + For more information, see [Default key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key) + in the *Key Management Service Developer Guide*. + + Use this parameter only when you intend to prevent the principal that is + making the request from making a subsequent + [PutKeyPolicy](https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html) + request on the KMS key. + """ + +@dataclass(kw_only=True) +class PutKeyPolicyOutput(_SerdeShape): + """Dataclass for PutKeyPolicyOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RecipientInfo(_SerdeShape): + """ + Contains information about the party that receives the response from the + API operation. + + This data type is designed to support Amazon Web Services Nitro Enclaves + and Amazon Web Services NitroTPM, which lets you create an attested + environment in Amazon EC2. For information about the interaction between + KMS and Amazon Web Services Nitro Enclaves or Amazon Web Services + NitroTPM, see [Cryptographic attestation support in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + in the *Key Management Service Developer Guide*. + """ + + key_encryption_algorithm: str | None = ... + """ + The encryption algorithm that KMS should use with the public key for an + Amazon Web Services Nitro Enclave or NitroTPM to encrypt plaintext + values for the response. The only valid value is `RSAES_OAEP_SHA_256`. + """ + attestation_document: bytes | None = ... + """ + The attestation document for an Amazon Web Services Nitro Enclave or a + NitroTPM. This document includes the enclave's public key. + """ + +class RecipientInfoDict(TypedDict, total=False): + """Dictionary form of `RecipientInfo`.""" + + key_encryption_algorithm: str | None + """ + The encryption algorithm that KMS should use with the public key for an + Amazon Web Services Nitro Enclave or NitroTPM to encrypt plaintext + values for the response. The only valid value is `RSAES_OAEP_SHA_256`. + """ + attestation_document: bytes | None + """ + The attestation document for an Amazon Web Services Nitro Enclave or a + NitroTPM. This document includes the enclave's public key. + """ + +@dataclass(kw_only=True) +class ReEncryptInput(_SerdeShape): + """Dataclass for ReEncryptInput structure.""" + + ciphertext_blob: bytes | None = ... + """ + Ciphertext of the data to reencrypt. + + This parameter is required in all cases except when `DryRun` is `true` + and `DryRunModifiers` is set to `IGNORE_CIPHERTEXT`. + """ + source_encryption_context: dict[str, str] | None = ... + """ + Specifies the encryption context to use to decrypt the ciphertext. Enter + the same encryption context that was used to encrypt the ciphertext. + + An *encryption context* is a collection of non-secret key-value pairs + that represent additional authenticated data. When you use an encryption + context to encrypt data, you must specify the same (an exact + case-sensitive match) encryption context to decrypt the data. An + encryption context is supported only on operations with symmetric + encryption KMS keys. On operations with symmetric encryption KMS keys, + an encryption context is optional, but it is strongly recommended. + + For more information, see [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) + in the *Key Management Service Developer Guide*. + """ + source_key_id: str | None = ... + """ + Specifies the KMS key that KMS will use to decrypt the ciphertext before + it is re-encrypted. + + Enter a key ID of the KMS key that was used to encrypt the ciphertext. + If you identify a different KMS key, the `ReEncrypt` operation throws an + `IncorrectKeyException`. + + This parameter is required only when the ciphertext was encrypted under + an asymmetric KMS key or when `DryRun` is `true` and `DryRunModifiers` + is set to `IGNORE_CIPHERTEXT`. If you used a symmetric encryption KMS + key, KMS can get the KMS key from metadata that it adds to the symmetric + ciphertext blob. However, it is always recommended as a best practice. + This practice ensures that you use the KMS key that you intend. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you should use the key + ARN or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + destination_key_id: str | None = ... + """ + A unique identifier for the KMS key that is used to reencrypt the data. + Specify a symmetric encryption KMS key or an asymmetric KMS key with a + `KeyUsage` value of `ENCRYPT_DECRYPT`. To find the `KeyUsage` value of a + KMS key, use the DescribeKey operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + destination_encryption_context: dict[str, str] | None = ... + """ + Specifies that encryption context to use when the reencrypting the data. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + A destination encryption context is valid only when the destination KMS + key is a symmetric encryption KMS key. The standard ciphertext format + for asymmetric KMS keys does not include fields for metadata. + + An *encryption context* is a collection of non-secret key-value pairs + that represent additional authenticated data. When you use an encryption + context to encrypt data, you must specify the same (an exact + case-sensitive match) encryption context to decrypt the data. An + encryption context is supported only on operations with symmetric + encryption KMS keys. On operations with symmetric encryption KMS keys, + an encryption context is optional, but it is strongly recommended. + + For more information, see [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) + in the *Key Management Service Developer Guide*. + """ + source_encryption_algorithm: str | None = ... """ + Specifies the encryption algorithm that KMS will use to decrypt the + ciphertext before it is reencrypted. The default value, + `SYMMETRIC_DEFAULT`, represents the algorithm used for symmetric + encryption KMS keys. -@dataclass(kw_only=True) -class PutKeyPolicyOutput(_SerdeShape): - """Dataclass for PutKeyPolicyOutput structure.""" + Specify the same algorithm that was used to encrypt the ciphertext. If + you specify a different algorithm, the decrypt attempt fails. - response_metadata: ResponseMetadata = ... + This parameter is required only when the ciphertext was encrypted under + an asymmetric KMS key. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + destination_encryption_algorithm: str | None = ... """ + Specifies the encryption algorithm that KMS will use to reecrypt the + data after it has decrypted it. The default value, `SYMMETRIC_DEFAULT`, + represents the encryption algorithm used for symmetric encryption KMS + keys. -@dataclass(kw_only=True) -class RecipientInfo(_SerdeShape): + This parameter is required only when the destination KMS key is an + asymmetric KMS key. """ - Contains information about the party that receives the response from the - API operation. + grant_tokens: list[str] | None = ... + """ + A list of grant tokens. - This data type is designed to support Amazon Web Services Nitro Enclaves - and Amazon Web Services NitroTPM, which lets you create an attested - environment in Amazon EC2. For information about the interaction between - KMS and Amazon Web Services Nitro Enclaves or Amazon Web Services - NitroTPM, see [Cryptographic attestation support in - KMS](https://docs.aws.amazon.com/kms/latest/developerguide/cryptographic-attestation.html) + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. """ - - key_encryption_algorithm: str | None = ... + dry_run: bool | None = ... """ - The encryption algorithm that KMS should use with the public key for an - Amazon Web Services Nitro Enclave or NitroTPM to encrypt plaintext - values for the response. The only valid value is `RSAES_OAEP_SHA_256`. + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. """ - attestation_document: bytes | None = ... + dry_run_modifiers: list[str] | None = ... """ - The attestation document for an Amazon Web Services Nitro Enclave or a - NitroTPM. This document includes the enclave's public key. + Specifies the modifiers to apply to the dry run operation. + `DryRunModifiers` is an optional parameter that only applies when + `DryRun` is set to `true`. + + When set to `IGNORE_CIPHERTEXT`, KMS performs only authorization + validation without ciphertext validation. This allows you to test + permissions without requiring a valid ciphertext blob. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. """ -@dataclass(kw_only=True) -class ReEncryptInput(_SerdeShape): - """Dataclass for ReEncryptInput structure.""" +class ReEncryptInputDict(TypedDict, total=False): + """Dictionary form of `ReEncryptInput`.""" - ciphertext_blob: bytes | None = ... + ciphertext_blob: bytes | None """ Ciphertext of the data to reencrypt. This parameter is required in all cases except when `DryRun` is `true` and `DryRunModifiers` is set to `IGNORE_CIPHERTEXT`. """ - source_encryption_context: dict[str, str] | None = ... + source_encryption_context: Mapping[str, str] | None """ Specifies the encryption context to use to decrypt the ciphertext. Enter the same encryption context that was used to encrypt the ciphertext. @@ -5462,7 +8402,7 @@ class ReEncryptInput(_SerdeShape): context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) in the *Key Management Service Developer Guide*. """ - source_key_id: str | None = ... + source_key_id: str | None """ Specifies the KMS key that KMS will use to decrypt the ciphertext before it is re-encrypted. @@ -5497,7 +8437,7 @@ class ReEncryptInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases. """ - destination_key_id: str | None = ... + destination_key_id: Required[str] """ A unique identifier for the KMS key that is used to reencrypt the data. Specify a symmetric encryption KMS key or an asymmetric KMS key with a @@ -5523,7 +8463,7 @@ class ReEncryptInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases. """ - destination_encryption_context: dict[str, str] | None = ... + destination_encryption_context: Mapping[str, str] | None """ Specifies that encryption context to use when the reencrypting the data. @@ -5547,7 +8487,7 @@ class ReEncryptInput(_SerdeShape): context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html) in the *Key Management Service Developer Guide*. """ - source_encryption_algorithm: str | None = ... + source_encryption_algorithm: str | None """ Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it is reencrypted. The default value, @@ -5560,7 +8500,7 @@ class ReEncryptInput(_SerdeShape): This parameter is required only when the ciphertext was encrypted under an asymmetric KMS key. """ - destination_encryption_algorithm: str | None = ... + destination_encryption_algorithm: str | None """ Specifies the encryption algorithm that KMS will use to reecrypt the data after it has decrypted it. The default value, `SYMMETRIC_DEFAULT`, @@ -5570,7 +8510,7 @@ class ReEncryptInput(_SerdeShape): This parameter is required only when the destination KMS key is an asymmetric KMS key. """ - grant_tokens: list[str] | None = ... + grant_tokens: Sequence[str] | None """ A list of grant tokens. @@ -5582,7 +8522,7 @@ class ReEncryptInput(_SerdeShape): token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks if your request will succeed. `DryRun` is an optional parameter. @@ -5590,7 +8530,7 @@ class ReEncryptInput(_SerdeShape): permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) in the *Key Management Service Developer Guide*. """ - dry_run_modifiers: list[str] | None = ... + dry_run_modifiers: Sequence[str] | None """ Specifies the modifiers to apply to the dry run operation. `DryRunModifiers` is an optional parameter that only applies when @@ -5650,11 +8590,174 @@ class ReEncryptOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class ReplicateKeyInput(_SerdeShape): - """Dataclass for ReplicateKeyInput structure.""" +@dataclass(kw_only=True) +class ReplicateKeyInput(_SerdeShape): + """Dataclass for ReplicateKeyInput structure.""" + + key_id: str | None = ... + """ + Identifies the multi-Region primary key that is being replicated. To + determine whether a KMS key is a multi-Region primary key, use the + DescribeKey operation to check the value of the `MultiRegionKeyType` + property. + + Specify the key ID or key ARN of a multi-Region primary key. + + For example: + + - Key ID: `mrk-1234abcd12ab34cd56ef1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + replica_region: str | None = ... + """ + The Region ID of the Amazon Web Services Region for this replica key. + + Enter the Region ID, such as `us-east-1` or `ap-southeast-2`. For a list + of Amazon Web Services Regions in which KMS is supported, see [KMS + service + endpoints](https://docs.aws.amazon.com/general/latest/gr/kms.html#kms_region) + in the *Amazon Web Services General Reference*. + + The replica must be in a different Amazon Web Services Region than its + primary key and other replicas of that primary key, but in the same + Amazon Web Services partition. KMS must be available in the replica + Region. If the Region is not enabled by default, the Amazon Web Services + account must be enabled in the Region. For information about Amazon Web + Services partitions, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. For information about + enabling and disabling Regions, see [Enabling a + Region](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable) + and [Disabling a + Region](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable) + in the *Amazon Web Services General Reference*. + """ + policy: str | None = ... + """ + The key policy to attach to the KMS key. This parameter is optional. If + you do not provide a key policy, KMS attaches the [default key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html) + to the KMS key. + + The key policy is not a shared property of multi-Region keys. You can + specify the same key policy or a different key policy for each key in a + set of related multi-Region keys. KMS does not synchronize this + property. + + If you provide a key policy, it must meet the following criteria: + + - The key policy must allow the calling principal to make a subsequent + `PutKeyPolicy` request on the KMS key. This reduces the risk that the + KMS key becomes unmanageable. For more information, see [Default key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key) + in the *Key Management Service Developer Guide*. (To omit this + condition, set `BypassPolicyLockoutSafetyCheck` to true.) + + - Each statement in the key policy must contain one or more principals. + The principals in the key policy must exist and be visible to KMS. + When you create a new Amazon Web Services principal, you might need to + enforce a delay before including the new principal in a key policy + because the new principal might not be immediately visible to KMS. For + more information, see [Changes that I make are not always immediately + visible](https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) + in the *Amazon Web Services Identity and Access Management User + Guide*. + + A key policy document can include only the following characters: + + - Printable ASCII characters from the space character (`\\u0020`) through + the end of the ASCII character range. + + - Printable characters in the Basic Latin and Latin-1 Supplement + character set (through `\\u00FF`). + + - The tab (`\\u0009`), line feed (`\\u000A`), and carriage return + (`\\u000D`) special characters + + For information about key policies, see [Key policies in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) + in the *Key Management Service Developer Guide*. For help writing and + formatting a JSON policy document, see the [IAM JSON Policy + Reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html) + in the Identity and Access Management User Guide . + """ + bypass_policy_lockout_safety_check: bool = ... + """ + Skips (\"bypasses\") the key policy lockout safety check. The default + value is false. + + Warning: + Setting this value to true increases the risk that the KMS key becomes + unmanageable. Do not set this value to true indiscriminately. + + For more information, see [Default key + policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key) + in the *Key Management Service Developer Guide*. + + Use this parameter only when you intend to prevent the principal that is + making the request from making a subsequent + [PutKeyPolicy](https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html) + request on the KMS key. + """ + description: str | None = ... + """ + A description of the KMS key. The default value is an empty string (no + description). + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + The description is not a shared property of multi-Region keys. You can + specify the same description or a different description for each key in + a set of related multi-Region keys. KMS does not synchronize this + property. + """ + tags: list[Tag] | None = ... + """ + Assigns one or more tags to the replica key. Use this parameter to tag + the KMS key when it is created. To tag an existing KMS key, use the + TagResource operation. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + Note: + Tagging or untagging a KMS key can allow or deny permission to the KMS + key. For details, see [ABAC for + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/abac.html) in + the *Key Management Service Developer Guide*. + + To use this parameter, you must have + [kms:TagResource](https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html) + permission in an IAM policy. + + Tags are not a shared property of multi-Region keys. You can specify the + same tags or different tags for each key in a set of related + multi-Region keys. KMS does not synchronize this property. + + Each tag consists of a tag key and a tag value. Both the tag key and the + tag value are required, but the tag value can be an empty (null) string. + You cannot have more than one tag on a KMS key with the same tag key. If + you specify an existing tag key with a different tag value, KMS replaces + the current tag value with the specified one. + + When you add tags to an Amazon Web Services resource, Amazon Web + Services generates a cost allocation report with usage and costs + aggregated by tags. Tags can also be used to control access to a KMS + key. For details, see [Tags in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html). + """ + +class ReplicateKeyInputDict(TypedDict, total=False): + """Dictionary form of `ReplicateKeyInput`.""" - key_id: str | None = ... + key_id: Required[str] """ Identifies the multi-Region primary key that is being replicated. To determine whether a KMS key is a multi-Region primary key, use the @@ -5673,7 +8776,7 @@ class ReplicateKeyInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. """ - replica_region: str | None = ... + replica_region: Required[str] """ The Region ID of the Amazon Web Services Region for this replica key. @@ -5697,7 +8800,7 @@ class ReplicateKeyInput(_SerdeShape): Region](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-disable) in the *Amazon Web Services General Reference*. """ - policy: str | None = ... + policy: str | None """ The key policy to attach to the KMS key. This parameter is optional. If you do not provide a key policy, KMS attaches the [default key @@ -5730,14 +8833,14 @@ class ReplicateKeyInput(_SerdeShape): A key policy document can include only the following characters: - - Printable ASCII characters from the space character (`\u0020`) through + - Printable ASCII characters from the space character (`\\u0020`) through the end of the ASCII character range. - Printable characters in the Basic Latin and Latin-1 Supplement - character set (through `\u00ff`). + character set (through `\\u00FF`). - - The tab (`\u0009`), line feed (`\u000a`), and carriage return - (`\u000d`) special characters + - The tab (`\\u0009`), line feed (`\\u000A`), and carriage return + (`\\u000D`) special characters For information about key policies, see [Key policies in KMS](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) @@ -5746,7 +8849,7 @@ class ReplicateKeyInput(_SerdeShape): Reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html) in the Identity and Access Management User Guide . """ - bypass_policy_lockout_safety_check: bool = ... + bypass_policy_lockout_safety_check: bool | None """ Skips (\"bypasses\") the key policy lockout safety check. The default value is false. @@ -5764,7 +8867,7 @@ class ReplicateKeyInput(_SerdeShape): [PutKeyPolicy](https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html) request on the KMS key. """ - description: str | None = ... + description: str | None """ A description of the KMS key. The default value is an empty string (no description). @@ -5778,7 +8881,7 @@ class ReplicateKeyInput(_SerdeShape): a set of related multi-Region keys. KMS does not synchronize this property. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To tag an existing KMS key, use the @@ -5887,6 +8990,46 @@ class RetireGrantInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class RetireGrantInputDict(TypedDict, total=False): + """Dictionary form of `RetireGrantInput`.""" + + grant_token: str | None + """ + Identifies the grant to be retired. You can use a grant token to + identify a new grant even before it has achieved eventual consistency. + + Only the CreateGrant operation returns a grant token. For details, see + [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Eventual + consistency](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency) + in the *Key Management Service Developer Guide*. + """ + key_id: str | None + """ + The key ARN KMS key associated with the grant. To find the key ARN, use + the ListKeys operation. + + For example: + `arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab` + """ + grant_id: str | None + """ + Identifies the grant to retire. To get the grant ID, use CreateGrant, + ListGrants, or ListRetirableGrants. + + - Grant ID Example - + 0123456789012345678901234567890123456789012345678901234567890123 + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class RetireGrantOutput(_SerdeShape): """Dataclass for RetireGrantOutput structure.""" @@ -5935,6 +9078,41 @@ class RevokeGrantInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class RevokeGrantInputDict(TypedDict, total=False): + """Dictionary form of `RevokeGrantInput`.""" + + key_id: Required[str] + """ + A unique identifier for the KMS key associated with the grant. To get + the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. + + Specify the key ID or key ARN of the KMS key. To specify a KMS key in a + different Amazon Web Services account, you must use the key ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + grant_id: Required[str] + """ + Identifies the grant to revoke. To get the grant ID, use CreateGrant, + ListGrants, or ListRetirableGrants. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class RevokeGrantOutput(_SerdeShape): """Dataclass for RevokeGrantOutput structure.""" @@ -5979,6 +9157,37 @@ class RotateKeyOnDemandInput(_SerdeShape): DescribeKey. """ +class RotateKeyOnDemandInputDict(TypedDict, total=False): + """Dictionary form of `RotateKeyOnDemandInput`.""" + + key_id: Required[str] + """ + Identifies a symmetric encryption KMS key. You cannot perform on-demand + rotation of [asymmetric KMS + keys](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html), + [HMAC KMS + keys](https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html), + multi-Region KMS keys with [imported key + material](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html), + or KMS keys in a [custom key + store](https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html). + To perform on-demand rotation of a set of related [multi-Region + keys](https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#multi-region-rotate), + invoke the on-demand rotation on the primary key. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + @dataclass(kw_only=True) class RotateKeyOnDemandOutput(_SerdeShape): """Dataclass for RotateKeyOnDemandOutput structure.""" @@ -6112,6 +9321,42 @@ class ScheduleKeyDeletionInput(_SerdeShape): specify in the `PendingWindowInDays` parameter. """ +class ScheduleKeyDeletionInputDict(TypedDict, total=False): + """Dictionary form of `ScheduleKeyDeletionInput`.""" + + key_id: Required[str] + """ + The unique identifier of the KMS key to delete. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + pending_window_in_days: int | None + """ + The waiting period, specified in number of days. After the waiting + period ends, KMS deletes the KMS key. + + If the KMS key is a multi-Region primary key with replica keys, the + waiting period begins when the last of its replica keys is deleted. + Otherwise, the waiting period begins immediately. + + This value is optional. If you include a value, it must be between 7 and + 30, inclusive. If you do not include a value, it defaults to 30. You can + use the + [`kms:ScheduleKeyDeletionPendingWindowInDays`](https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-schedule-key-deletion-pending-window-in-days) + condition key to further constrain the values that principals can + specify in the `PendingWindowInDays` parameter. + """ + @dataclass(kw_only=True) class ScheduleKeyDeletionOutput(_SerdeShape): """Dataclass for ScheduleKeyDeletionOutput structure.""" @@ -6170,11 +9415,142 @@ class SigningAlgorithmSpec(UnknownEnumMixin, StrEnum): ED25519_SHA_512 = "ED25519_SHA_512" ED25519_PH_SHA_512 = "ED25519_PH_SHA_512" -@dataclass(kw_only=True) -class SignInput(_SerdeShape): - """Dataclass for SignInput structure.""" +@dataclass(kw_only=True) +class SignInput(_SerdeShape): + """Dataclass for SignInput structure.""" + + key_id: str | None = ... + """ + Identifies an asymmetric KMS key. KMS uses the private key in the + asymmetric KMS key to sign the message. The `KeyUsage` type of the KMS + key must be `SIGN_VERIFY`. To find the `KeyUsage` of a KMS key, use the + DescribeKey operation. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + message: bytes | None = ... + """ + Specifies the message or message digest to sign. Messages can be 0-4096 + bytes. To sign a larger message, provide a message digest. + + If you provide a message digest, use the `DIGEST` value of `MessageType` + to prevent the digest from being hashed again while signing. + """ + message_type: str | None = ... + """ + Tells KMS whether the value of the `Message` parameter should be hashed + as part of the signing algorithm. Use `RAW` for unhashed messages; use + `DIGEST` for message digests, which are already hashed; use + `EXTERNAL_MU` for 64-byte representative μ used in ML-DSA signing as + defined in NIST FIPS 204 Section 6.2. + + When the value of `MessageType` is `RAW`, KMS uses the standard signing + algorithm, which begins with a hash function. When the value is + `DIGEST`, KMS skips the hashing step in the signing algorithm. When the + value is `EXTERNAL_MU` KMS skips the concatenated hashing of the public + key hash and the message done in the ML-DSA signing algorithm. + + Warning: + Use the `DIGEST` or `EXTERNAL_MU` value only when the value of the + `Message` parameter is a message digest. If you use the `DIGEST` value + with an unhashed message, the security of the signing operation can be + compromised. + + When using ECC_NIST_EDWARDS25519 KMS keys: + + - ED25519_SHA_512 signing algorithm requires KMS `MessageType:RAW` + + - ED25519_PH_SHA_512 signing algorithm requires KMS `MessageType:DIGEST` + + Warning: + When you specify the ED25519_PH_SHA_512 signing algorithm with + `MessageType:DIGEST`, KMS still performs the SHA-512 prehash described + in [Step 1 of Section 7.8.1 in FIPS + 186-5](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf#page=39). + This means the input is hashed twice: once by you and once by KMS. + + When the value of `MessageType` is `DIGEST`, the length of the `Message` + value must match the length of hashed messages for the specified signing + algorithm. + + When the value of `MessageType` is `EXTERNAL_MU` the length of the + `Message` value must be 64 bytes. + + You can submit a message digest and omit the `MessageType` or specify + `RAW` so the digest is hashed again while signing. However, this can + cause verification failures when verifying with a system that assumes a + single hash. + + The hashing algorithm that `Sign` uses is based on the + `SigningAlgorithm` value. + + - Signing algorithms that end in SHA_256 use the SHA_256 hashing + algorithm. + + - Signing algorithms that end in SHA_384 use the SHA_384 hashing + algorithm. + + - Signing algorithms that end in SHA_512 use the SHA_512 hashing + algorithm. + + - Signing algorithms that end in SHAKE_256 use the SHAKE_256 hashing + algorithm. + + - SM2DSA uses the SM3 hashing algorithm. For details, see [Offline + verification with SM2 key + pairs](https://docs.aws.amazon.com/kms/latest/developerguide/offline-operations.html#key-spec-sm-offline-verification). + """ + grant_tokens: list[str] | None = ... + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + signing_algorithm: str | None = ... + """ + Specifies the signing algorithm to use when signing the message. + + Choose an algorithm that is compatible with the type and size of the + specified asymmetric KMS key. When signing with RSA key pairs, + RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 + algorithms for compatibility with existing applications. + """ + dry_run: bool | None = ... + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ - key_id: str | None = ... +class SignInputDict(TypedDict, total=False): + """Dictionary form of `SignInput`.""" + + key_id: Required[str] """ Identifies an asymmetric KMS key. KMS uses the private key in the asymmetric KMS key to sign the message. The `KeyUsage` type of the KMS @@ -6200,7 +9576,7 @@ class SignInput(_SerdeShape): To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases. """ - message: bytes | None = ... + message: Required[bytes] """ Specifies the message or message digest to sign. Messages can be 0-4096 bytes. To sign a larger message, provide a message digest. @@ -6208,7 +9584,7 @@ class SignInput(_SerdeShape): If you provide a message digest, use the `DIGEST` value of `MessageType` to prevent the digest from being hashed again while signing. """ - message_type: str | None = ... + message_type: str | None """ Tells KMS whether the value of the `Message` parameter should be hashed as part of the signing algorithm. Use `RAW` for unhashed messages; use @@ -6272,7 +9648,7 @@ class SignInput(_SerdeShape): verification with SM2 key pairs](https://docs.aws.amazon.com/kms/latest/developerguide/offline-operations.html#key-spec-sm-offline-verification). """ - grant_tokens: list[str] | None = ... + grant_tokens: Sequence[str] | None """ A list of grant tokens. @@ -6284,7 +9660,7 @@ class SignInput(_SerdeShape): token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) in the *Key Management Service Developer Guide*. """ - signing_algorithm: str | None = ... + signing_algorithm: Required[str] """ Specifies the signing algorithm to use when signing the message. @@ -6293,7 +9669,7 @@ class SignInput(_SerdeShape): RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 algorithms for compatibility with existing applications. """ - dry_run: bool | None = ... + dry_run: bool | None """ Checks if your request will succeed. `DryRun` is an optional parameter. @@ -6361,6 +9737,14 @@ class Tag(_SerdeShape): tag_value: str """The value of the tag.""" +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + tag_key: Required[str] + """The key of the tag.""" + tag_value: Required[str] + """The value of the tag.""" + @dataclass(kw_only=True) class TagException(ServiceError, _SerdeShape): """The request was rejected because one or more tags are not valid.""" @@ -6407,6 +9791,39 @@ class TagResourceInput(_SerdeShape): the current tag value with the specified one. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + key_id: Required[str] + """ + Identifies a customer managed key in the account and Region. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + tags: Required[Sequence[Tag | TagDict]] + """ + One or more tags. Each tag consists of a tag key and a tag value. The + tag value can be an empty (null) string. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + You cannot have more than one tag on a KMS key with the same tag key. If + you specify an existing tag key with a different tag value, KMS replaces + the current tag value with the specified one. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -6457,6 +9874,28 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """One or more tag keys. Specify only the tag keys, not the tag values.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + key_id: Required[str] + """ + Identifies the KMS key from which you are removing tags. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + tag_keys: Required[Sequence[str]] + """One or more tag keys. Specify only the tag keys, not the tag values.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -6512,29 +9951,219 @@ class UpdateAliasInput(_SerdeShape): ListAliases. """ -@dataclass(kw_only=True) -class UpdateAliasOutput(_SerdeShape): - """Dataclass for UpdateAliasOutput structure.""" +class UpdateAliasInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAliasInput`.""" + + alias_name: Required[str] + """ + Identifies the alias that is changing its KMS key. This value must begin + with `alias/` followed by the alias name, such as `alias/ExampleAlias`. + You cannot use `UpdateAlias` to change the alias name. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + """ + target_key_id: Required[str] + """ + Identifies the [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-mgn-key) + to associate with the alias. You don't have permission to associate an + alias with an [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-key). + + The KMS key must be in the same Amazon Web Services account and Region + as the alias. Also, the new target KMS key must be the same type as the + current target KMS key (both symmetric or both asymmetric or both HMAC) + and they must have the same key usage. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + + To verify that the alias is mapped to the correct KMS key, use + ListAliases. + """ + +@dataclass(kw_only=True) +class UpdateAliasOutput(_SerdeShape): + """Dataclass for UpdateAliasOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class UpdateCustomKeyStoreInput(_SerdeShape): + """Dataclass for UpdateCustomKeyStoreInput structure.""" + + custom_key_store_id: str | None = ... + """ + Identifies the custom key store that you want to update. Enter the ID of + the custom key store. To find the ID of a custom key store, use the + DescribeCustomKeyStores operation. + """ + new_custom_key_store_name: str | None = ... + """ + Changes the friendly name of the custom key store to the value that you + specify. The custom key store name must be unique in the Amazon Web + Services account. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + + To change this value, the custom key store can be connected or + disconnected. + """ + key_store_password: str | None = ... + """ + Enter the current password of the `kmsuser` crypto user (CU) in the + CloudHSM cluster that is associated with the custom key store. This + parameter is valid only for custom key stores with a + `CustomKeyStoreType` of `AWS_CLOUDHSM`. + + This parameter tells KMS the current password of the `kmsuser` crypto + user (CU). It does not set or change the password of any users in the + CloudHSM cluster. + + To change this value, the CloudHSM key store must be disconnected. + """ + cloud_hsm_cluster_id: str | None = ... + """ + Associates the custom key store with a related CloudHSM cluster. This + parameter is valid only for custom key stores with a + `CustomKeyStoreType` of `AWS_CLOUDHSM`. + + Enter the cluster ID of the cluster that you used to create the custom + key store or a cluster that shares a backup history and has the same + cluster certificate as the original cluster. You cannot use this + parameter to associate a custom key store with an unrelated cluster. In + addition, the replacement cluster must [fulfill the + requirements](https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore) + for a cluster associated with a custom key store. To view the cluster + certificate of a cluster, use the + [DescribeClusters](https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) + operation. + + To change this value, the CloudHSM key store must be disconnected. + """ + xks_proxy_uri_endpoint: str | None = ... + """ + Changes the URI endpoint that KMS uses to connect to your external key + store proxy (XKS proxy). This parameter is valid only for custom key + stores with a `CustomKeyStoreType` of `EXTERNAL_KEY_STORE`. + + For external key stores with an `XksProxyConnectivity` value of + `PUBLIC_ENDPOINT`, the protocol must be HTTPS. + + For external key stores with an `XksProxyConnectivity` value of + `VPC_ENDPOINT_SERVICE`, specify `https://` followed by the private DNS + name associated with the VPC endpoint service. Each external key store + must use a different private DNS name. + + The combined `XksProxyUriEndpoint` and `XksProxyUriPath` values must be + unique in the Amazon Web Services account and Region. + + To change this value, the external key store must be disconnected. + """ + xks_proxy_uri_path: str | None = ... + """ + Changes the base path to the proxy APIs for this external key store. To + find this value, see the documentation for your external key manager and + external key store proxy (XKS proxy). This parameter is valid only for + custom key stores with a `CustomKeyStoreType` of `EXTERNAL_KEY_STORE`. + + The value must start with `/` and must end with `/kms/xks/v1`, where + `v1` represents the version of the KMS external key store proxy API. You + can include an optional prefix between the required elements such as + `/`*`example`*`/kms/xks/v1`. + + The combined `XksProxyUriEndpoint` and `XksProxyUriPath` values must be + unique in the Amazon Web Services account and Region. + + You can change this value when the external key store is connected or + disconnected. + """ + xks_proxy_vpc_endpoint_service_name: str | None = ... + """ + Changes the name that KMS uses to identify the Amazon VPC endpoint + service for your external key store proxy (XKS proxy). This parameter is + valid when the `CustomKeyStoreType` is `EXTERNAL_KEY_STORE` and the + `XksProxyConnectivity` is `VPC_ENDPOINT_SERVICE`. + + To change this value, the external key store must be disconnected. + """ + xks_proxy_vpc_endpoint_service_owner: str | None = ... + """ + Changes the Amazon Web Services account ID that KMS uses to identify the + Amazon VPC endpoint service for your external key store proxy (XKS + proxy). This parameter is optional. If not specified, the current Amazon + Web Services account ID for the VPC endpoint service will not be + updated. + + To change this value, the external key store must be disconnected. + """ + xks_proxy_authentication_credential: ( + XksProxyAuthenticationCredentialType | None + ) = ... + """ + Changes the credentials that KMS uses to sign requests to the external + key store proxy (XKS proxy). This parameter is valid only for custom key + stores with a `CustomKeyStoreType` of `EXTERNAL_KEY_STORE`. + + You must specify both the `AccessKeyId` and `SecretAccessKey` value in + the authentication credential, even if you are only updating one value. + + This parameter doesn't establish or change your authentication + credentials on the proxy. It just tells KMS the credential that you + established with your external key store proxy. For example, if you + rotate the credential on your external key store proxy, you can use this + parameter to update the credential in KMS. + + You can change this value when the external key store is connected or + disconnected. + """ + xks_proxy_connectivity: str | None = ... + """ + Changes the connectivity setting for the external key store. To indicate + that the external key store proxy uses a Amazon VPC endpoint service to + communicate with KMS, specify `VPC_ENDPOINT_SERVICE`. Otherwise, specify + `PUBLIC_ENDPOINT`. + + If you change the `XksProxyConnectivity` to `VPC_ENDPOINT_SERVICE`, you + must also change the `XksProxyUriEndpoint` and add an + `XksProxyVpcEndpointServiceName` value. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + If you change the `XksProxyConnectivity` to `PUBLIC_ENDPOINT`, you must + also change the `XksProxyUriEndpoint` and specify a null or empty string + for the `XksProxyVpcEndpointServiceName` value. + + To change this value, the external key store must be disconnected. """ -@dataclass(kw_only=True) -class UpdateCustomKeyStoreInput(_SerdeShape): - """Dataclass for UpdateCustomKeyStoreInput structure.""" +class UpdateCustomKeyStoreInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCustomKeyStoreInput`.""" - custom_key_store_id: str | None = ... + custom_key_store_id: Required[str] """ Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the ID of a custom key store, use the DescribeCustomKeyStores operation. """ - new_custom_key_store_name: str | None = ... + new_custom_key_store_name: str | None """ Changes the friendly name of the custom key store to the value that you specify. The custom key store name must be unique in the Amazon Web @@ -6547,7 +10176,7 @@ class UpdateCustomKeyStoreInput(_SerdeShape): To change this value, the custom key store can be connected or disconnected. """ - key_store_password: str | None = ... + key_store_password: str | None """ Enter the current password of the `kmsuser` crypto user (CU) in the CloudHSM cluster that is associated with the custom key store. This @@ -6560,7 +10189,7 @@ class UpdateCustomKeyStoreInput(_SerdeShape): To change this value, the CloudHSM key store must be disconnected. """ - cloud_hsm_cluster_id: str | None = ... + cloud_hsm_cluster_id: str | None """ Associates the custom key store with a related CloudHSM cluster. This parameter is valid only for custom key stores with a @@ -6579,7 +10208,7 @@ class UpdateCustomKeyStoreInput(_SerdeShape): To change this value, the CloudHSM key store must be disconnected. """ - xks_proxy_uri_endpoint: str | None = ... + xks_proxy_uri_endpoint: str | None """ Changes the URI endpoint that KMS uses to connect to your external key store proxy (XKS proxy). This parameter is valid only for custom key @@ -6598,7 +10227,7 @@ class UpdateCustomKeyStoreInput(_SerdeShape): To change this value, the external key store must be disconnected. """ - xks_proxy_uri_path: str | None = ... + xks_proxy_uri_path: str | None """ Changes the base path to the proxy APIs for this external key store. To find this value, see the documentation for your external key manager and @@ -6616,7 +10245,7 @@ class UpdateCustomKeyStoreInput(_SerdeShape): You can change this value when the external key store is connected or disconnected. """ - xks_proxy_vpc_endpoint_service_name: str | None = ... + xks_proxy_vpc_endpoint_service_name: str | None """ Changes the name that KMS uses to identify the Amazon VPC endpoint service for your external key store proxy (XKS proxy). This parameter is @@ -6625,7 +10254,7 @@ class UpdateCustomKeyStoreInput(_SerdeShape): To change this value, the external key store must be disconnected. """ - xks_proxy_vpc_endpoint_service_owner: str | None = ... + xks_proxy_vpc_endpoint_service_owner: str | None """ Changes the Amazon Web Services account ID that KMS uses to identify the Amazon VPC endpoint service for your external key store proxy (XKS @@ -6636,8 +10265,10 @@ class UpdateCustomKeyStoreInput(_SerdeShape): To change this value, the external key store must be disconnected. """ xks_proxy_authentication_credential: ( - XksProxyAuthenticationCredentialType | None - ) = ... + XksProxyAuthenticationCredentialType + | XksProxyAuthenticationCredentialTypeDict + | None + ) """ Changes the credentials that KMS uses to sign requests to the external key store proxy (XKS proxy). This parameter is valid only for custom key @@ -6655,7 +10286,7 @@ class UpdateCustomKeyStoreInput(_SerdeShape): You can change this value when the external key store is connected or disconnected. """ - xks_proxy_connectivity: str | None = ... + xks_proxy_connectivity: str | None """ Changes the connectivity setting for the external key store. To indicate that the external key store proxy uses a Amazon VPC endpoint service to @@ -6714,6 +10345,34 @@ class UpdateKeyDescriptionInput(_SerdeShape): field may be displayed in plaintext in CloudTrail logs and other output. """ +class UpdateKeyDescriptionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateKeyDescriptionInput`.""" + + key_id: Required[str] + """ + Updates the description of the specified KMS key. + + Specify the key ID or key ARN of the KMS key. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + description: Required[str] + """ + New description for the KMS key. + + Warning: + Do not include confidential or sensitive information in this field. This + field may be displayed in plaintext in CloudTrail logs and other output. + """ + @dataclass(kw_only=True) class UpdateKeyDescriptionOutput(_SerdeShape): """Dataclass for UpdateKeyDescriptionOutput structure.""" @@ -6757,6 +10416,36 @@ class UpdatePrimaryRegionInput(_SerdeShape): be the primary key. """ +class UpdatePrimaryRegionInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePrimaryRegionInput`.""" + + key_id: Required[str] + """ + Identifies the current primary key. When the operation completes, this + KMS key will be a replica key. + + Specify the key ID or key ARN of a multi-Region primary key. + + For example: + + - Key ID: `mrk-1234abcd12ab34cd56ef1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. + """ + primary_region: Required[str] + """ + The Amazon Web Services Region of the new primary key. Enter the Region + ID, such as `us-east-1` or `ap-southeast-2`. There must be an existing + replica key in this Region. + + When the operation completes, the multi-Region key in this Region will + be the primary key. + """ + @dataclass(kw_only=True) class UpdatePrimaryRegionOutput(_SerdeShape): """Dataclass for UpdatePrimaryRegionOutput structure.""" @@ -6901,6 +10590,137 @@ class VerifyInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class VerifyInputDict(TypedDict, total=False): + """Dictionary form of `VerifyInput`.""" + + key_id: Required[str] + """ + Identifies the asymmetric KMS key that will be used to verify the + signature. This must be the same KMS key that was used to generate the + signature. If you specify a different KMS key, the signature + verification fails. + + To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. + When using an alias name, prefix it with `"alias/"`. To specify a KMS + key in a different Amazon Web Services account, you must use the key ARN + or alias ARN. + + For example: + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Alias name: `alias/ExampleAlias` + + - Alias ARN: `arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias` + + To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey. To get the alias name and alias ARN, use ListAliases. + """ + message: Required[bytes] + """ + Specifies the message that was signed. You can submit a raw message of + up to 4096 bytes, or a hash digest of the message. If you submit a + digest, use the `MessageType` parameter with a value of `DIGEST`. + + If the message specified here is different from the message that was + signed, the signature verification fails. A message and its hash digest + are considered to be the same message. + """ + message_type: str | None + """ + Tells KMS whether the value of the `Message` parameter should be hashed + as part of the signing algorithm. Use `RAW` for unhashed messages; use + `DIGEST` for message digests, which are already hashed; use + `EXTERNAL_MU` for 64-byte representative μ used in ML-DSA signing as + defined in NIST FIPS 204 Section 6.2. + + When the value of `MessageType` is `RAW`, KMS uses the standard signing + algorithm, which begins with a hash function. When the value is + `DIGEST`, KMS skips the hashing step in the signing algorithm. When the + value is `EXTERNAL_MU` KMS skips the concatenated hashing of the public + key hash and the message done in the ML-DSA signing algorithm. + + Warning: + Use the `DIGEST` or `EXTERNAL_MU` value only when the value of the + `Message` parameter is a message digest. If you use the `DIGEST` value + with an unhashed message, the security of the signing operation can be + compromised. + + When using ECC_NIST_EDWARDS25519 KMS keys: + + - ED25519_SHA_512 signing algorithm requires KMS `MessageType:RAW` + + - ED25519_PH_SHA_512 signing algorithm requires KMS `MessageType:DIGEST` + + Warning: + When you specify the ED25519_PH_SHA_512 signing algorithm with + `MessageType:DIGEST`, KMS still performs the SHA-512 prehash described + in [Step 1 of Section 7.8.1 in FIPS + 186-5](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf#page=39). + This means the input is hashed twice: once by you and once by KMS. + + When the value of `MessageType` is `DIGEST`, the length of the `Message` + value must match the length of hashed messages for the specified signing + algorithm. + + When the value of `MessageType` is `EXTERNAL_MU` the length of the + `Message` value must be 64 bytes. + + You can submit a message digest and omit the `MessageType` or specify + `RAW` so the digest is hashed again while signing. However, if the + signed message is hashed once while signing, but twice while verifying, + verification fails, even when the message hasn't changed. + + The hashing algorithm that `Verify` uses is based on the + `SigningAlgorithm` value. + + - Signing algorithms that end in SHA_256 use the SHA_256 hashing + algorithm. + + - Signing algorithms that end in SHA_384 use the SHA_384 hashing + algorithm. + + - Signing algorithms that end in SHA_512 use the SHA_512 hashing + algorithm. + + - Signing algorithms that end in SHAKE_256 use the SHAKE_256 hashing + algorithm. + + - SM2DSA uses the SM3 hashing algorithm. For details, see [Offline + verification with SM2 key + pairs](https://docs.aws.amazon.com/kms/latest/developerguide/offline-operations.html#key-spec-sm-offline-verification). + """ + signature: Required[bytes] + """The signature that the `Sign` operation generated.""" + signing_algorithm: Required[str] + """ + The signing algorithm that was used to sign the message. If you submit a + different algorithm, the signature verification fails. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class VerifyMacInput(_SerdeShape): """Dataclass for VerifyMacInput structure.""" @@ -6954,6 +10774,58 @@ class VerifyMacInput(_SerdeShape): in the *Key Management Service Developer Guide*. """ +class VerifyMacInputDict(TypedDict, total=False): + """Dictionary form of `VerifyMacInput`.""" + + message: Required[bytes] + """ + The message that will be used in the verification. Enter the same + message that was used to generate the HMAC. + + GenerateMac and `VerifyMac` do not provide special handling for message + digests. If you generated an HMAC for a hash digest of a message, you + must verify the HMAC for the same hash digest. + """ + key_id: Required[str] + """ + The KMS key that will be used in the verification. + + Enter a key ID of the KMS key that was used to generate the HMAC. If you + identify a different KMS key, the `VerifyMac` operation fails. + """ + mac_algorithm: Required[str] + """ + The MAC algorithm that will be used in the verification. Enter the same + MAC algorithm that was used to compute the HMAC. This algorithm must be + supported by the HMAC KMS key identified by the `KeyId` parameter. + """ + mac: Required[bytes] + """ + The HMAC to verify. Enter the HMAC that was generated by the GenerateMac + operation when you specified the same message, HMAC KMS key, and MAC + algorithm as the values specified in this request. + """ + grant_tokens: Sequence[str] | None + """ + A list of grant tokens. + + Use a grant token when your permission to call this operation comes from + a new grant that has not yet achieved *eventual consistency*. For more + information, see [Grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and [Using a grant + token](https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html) + in the *Key Management Service Developer Guide*. + """ + dry_run: bool | None + """ + Checks if your request will succeed. `DryRun` is an optional parameter. + + To learn more about how to use this parameter, see [Testing your + permissions](https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html) + in the *Key Management Service Developer Guide*. + """ + @dataclass(kw_only=True) class VerifyMacOutput(_SerdeShape): """Dataclass for VerifyMacOutput structure.""" @@ -7115,6 +10987,17 @@ class XksProxyAuthenticationCredentialType(_SerdeShape): /, +, and =. """ +class XksProxyAuthenticationCredentialTypeDict(TypedDict, total=False): + """Dictionary form of `XksProxyAuthenticationCredentialType`.""" + + access_key_id: Required[str] + """A unique identifier for the raw secret access key.""" + raw_secret_access_key: Required[str] + """ + A secret string of 43-64 characters. Valid characters are a-z, A-Z, 0-9, + /, +, and =. + """ + @dataclass(kw_only=True) class XksProxyConfigurationType(_SerdeShape): """ diff --git a/clients/aws-sdk-kms/src/aws_sdk_kms/py.typed b/clients/aws-sdk-kms/src/aws_sdk_kms/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-kms/tests/_typecheck.py b/clients/aws-sdk-kms/tests/_typecheck.py index dc89606ed..0e5426b20 100644 --- a/clients/aws-sdk-kms/tests/_typecheck.py +++ b/clients/aws-sdk-kms/tests/_typecheck.py @@ -2,139 +2,202 @@ from typing import Any +from aws_sdk_kms.aio.client import AsyncKMSClient +from aws_sdk_kms.client import KMSClient from aws_sdk_kms.models import ( AliasListEntry, CancelKeyDeletionInput, + CancelKeyDeletionInputDict, CancelKeyDeletionOutput, ConnectCustomKeyStoreInput, + ConnectCustomKeyStoreInputDict, ConnectCustomKeyStoreOutput, CreateAliasInput, + CreateAliasInputDict, CreateAliasOutput, CreateCustomKeyStoreInput, + CreateCustomKeyStoreInputDict, CreateCustomKeyStoreOutput, CreateGrantInput, + CreateGrantInputDict, CreateGrantOutput, CreateKeyInput, + CreateKeyInputDict, CreateKeyOutput, CustomKeyStoresListEntry, DecapsulateInput, + DecapsulateInputDict, DecapsulateOutput, DecryptInput, + DecryptInputDict, DecryptOutput, DeleteAliasInput, + DeleteAliasInputDict, DeleteAliasOutput, DeleteCustomKeyStoreInput, + DeleteCustomKeyStoreInputDict, DeleteCustomKeyStoreOutput, DeleteImportedKeyMaterialInput, + DeleteImportedKeyMaterialInputDict, DeleteImportedKeyMaterialOutput, DeriveSharedSecretInput, + DeriveSharedSecretInputDict, DeriveSharedSecretOutput, DescribeCustomKeyStoresInput, + DescribeCustomKeyStoresInputDict, DescribeCustomKeyStoresOutput, DescribeKeyInput, + DescribeKeyInputDict, DescribeKeyOutput, DisableKeyInput, + DisableKeyInputDict, DisableKeyOutput, DisableKeyRotationInput, + DisableKeyRotationInputDict, DisableKeyRotationOutput, DisconnectCustomKeyStoreInput, + DisconnectCustomKeyStoreInputDict, DisconnectCustomKeyStoreOutput, EnableKeyInput, + EnableKeyInputDict, EnableKeyOutput, EnableKeyRotationInput, + EnableKeyRotationInputDict, EnableKeyRotationOutput, EncapsulateInput, + EncapsulateInputDict, EncapsulateOutput, EncryptInput, + EncryptInputDict, EncryptOutput, GenerateDataKeyInput, + GenerateDataKeyInputDict, GenerateDataKeyOutput, GenerateDataKeyPairInput, + GenerateDataKeyPairInputDict, GenerateDataKeyPairOutput, GenerateDataKeyPairWithoutPlaintextInput, + GenerateDataKeyPairWithoutPlaintextInputDict, GenerateDataKeyPairWithoutPlaintextOutput, GenerateDataKeyWithoutPlaintextInput, + GenerateDataKeyWithoutPlaintextInputDict, GenerateDataKeyWithoutPlaintextOutput, GenerateMacInput, + GenerateMacInputDict, GenerateMacOutput, GenerateRandomInput, + GenerateRandomInputDict, GenerateRandomOutput, GetKeyLastUsageInput, + GetKeyLastUsageInputDict, GetKeyLastUsageOutput, GetKeyPolicyInput, + GetKeyPolicyInputDict, GetKeyPolicyOutput, GetKeyRotationStatusInput, + GetKeyRotationStatusInputDict, GetKeyRotationStatusOutput, GetParametersForImportInput, + GetParametersForImportInputDict, GetParametersForImportOutput, GetPublicKeyInput, + GetPublicKeyInputDict, GetPublicKeyOutput, GrantConstraints, + GrantConstraintsDict, GrantListEntry, ImportKeyMaterialInput, + ImportKeyMaterialInputDict, ImportKeyMaterialOutput, KeyLastUsageData, KeyListEntry, KeyMetadata, ListAliasesInput, + ListAliasesInputDict, ListAliasesOutput, ListGrantsInput, + ListGrantsInputDict, ListGrantsOutput, ListKeyPoliciesInput, + ListKeyPoliciesInputDict, ListKeyPoliciesOutput, ListKeyRotationsInput, + ListKeyRotationsInputDict, ListKeyRotationsOutput, ListKeysInput, + ListKeysInputDict, ListKeysOutput, ListResourceTagsInput, + ListResourceTagsInputDict, ListResourceTagsOutput, ListRetirableGrantsInput, + ListRetirableGrantsInputDict, ListRetirableGrantsOutput, MultiRegionConfiguration, MultiRegionKey, PutKeyPolicyInput, + PutKeyPolicyInputDict, PutKeyPolicyOutput, ReEncryptInput, + ReEncryptInputDict, ReEncryptOutput, RecipientInfo, + RecipientInfoDict, ReplicateKeyInput, + ReplicateKeyInputDict, ReplicateKeyOutput, RetireGrantInput, + RetireGrantInputDict, RetireGrantOutput, RevokeGrantInput, + RevokeGrantInputDict, RevokeGrantOutput, RotateKeyOnDemandInput, + RotateKeyOnDemandInputDict, RotateKeyOnDemandOutput, RotationsListEntry, ScheduleKeyDeletionInput, + ScheduleKeyDeletionInputDict, ScheduleKeyDeletionOutput, SignInput, + SignInputDict, SignOutput, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAliasInput, + UpdateAliasInputDict, UpdateAliasOutput, UpdateCustomKeyStoreInput, + UpdateCustomKeyStoreInputDict, UpdateCustomKeyStoreOutput, UpdateKeyDescriptionInput, + UpdateKeyDescriptionInputDict, UpdateKeyDescriptionOutput, UpdatePrimaryRegionInput, + UpdatePrimaryRegionInputDict, UpdatePrimaryRegionOutput, VerifyInput, + VerifyInputDict, VerifyMacInput, + VerifyMacInputDict, VerifyMacOutput, VerifyOutput, XksKeyConfigurationType, XksProxyAuthenticationCredentialType, + XksProxyAuthenticationCredentialTypeDict, XksProxyConfigurationType, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -265,3 +328,597 @@ XksKeyConfigurationType() XksProxyAuthenticationCredentialType(access_key_id=_, raw_secret_access_key=_) XksProxyConfigurationType() +_params_0: CancelKeyDeletionInputDict = {"key_id": _} +_params_1: ConnectCustomKeyStoreInputDict = {"custom_key_store_id": _} +_params_2: CreateAliasInputDict = {"alias_name": _, "target_key_id": _} +_params_3: CreateCustomKeyStoreInputDict = {"custom_key_store_name": _} +_params_4: CreateGrantInputDict = {"key_id": _, "operations": _} +_params_5: CreateKeyInputDict = {} +_params_6: DecapsulateInputDict = { + "key_id": _, + "shared_secret_ciphertext_blob": _, + "encapsulation_algorithm": _, +} +_params_7: DecryptInputDict = {} +_params_8: DeleteAliasInputDict = {"alias_name": _} +_params_9: DeleteCustomKeyStoreInputDict = {"custom_key_store_id": _} +_params_10: DeleteImportedKeyMaterialInputDict = {"key_id": _} +_params_11: DeriveSharedSecretInputDict = { + "key_id": _, + "key_agreement_algorithm": _, + "public_key": _, +} +_params_12: DescribeCustomKeyStoresInputDict = {} +_params_13: DescribeKeyInputDict = {"key_id": _} +_params_14: DisableKeyInputDict = {"key_id": _} +_params_15: DisableKeyRotationInputDict = {"key_id": _} +_params_16: DisconnectCustomKeyStoreInputDict = {"custom_key_store_id": _} +_params_17: EnableKeyInputDict = {"key_id": _} +_params_18: EnableKeyRotationInputDict = {"key_id": _} +_params_19: EncapsulateInputDict = {"key_id": _, "encapsulation_algorithm": _} +_params_20: EncryptInputDict = {"key_id": _, "plaintext": _} +_params_21: GenerateDataKeyInputDict = {"key_id": _} +_params_22: GenerateDataKeyPairInputDict = {"key_id": _, "key_pair_spec": _} +_params_23: GenerateDataKeyPairWithoutPlaintextInputDict = { + "key_id": _, + "key_pair_spec": _, +} +_params_24: GenerateDataKeyWithoutPlaintextInputDict = {"key_id": _} +_params_25: GenerateMacInputDict = {"message": _, "key_id": _, "mac_algorithm": _} +_params_26: GenerateRandomInputDict = {} +_params_27: GetKeyLastUsageInputDict = {"key_id": _} +_params_28: GetKeyPolicyInputDict = {"key_id": _} +_params_29: GetKeyRotationStatusInputDict = {"key_id": _} +_params_30: GetParametersForImportInputDict = { + "key_id": _, + "wrapping_algorithm": _, + "wrapping_key_spec": _, +} +_params_31: GetPublicKeyInputDict = {"key_id": _} +_params_32: GrantConstraintsDict = {} +_params_33: ImportKeyMaterialInputDict = { + "key_id": _, + "import_token": _, + "encrypted_key_material": _, +} +_params_34: ListAliasesInputDict = {} +_params_35: ListGrantsInputDict = {"key_id": _} +_params_36: ListKeyPoliciesInputDict = {"key_id": _} +_params_37: ListKeyRotationsInputDict = {"key_id": _} +_params_38: ListKeysInputDict = {} +_params_39: ListResourceTagsInputDict = {"key_id": _} +_params_40: ListRetirableGrantsInputDict = {} +_params_41: PutKeyPolicyInputDict = {"key_id": _, "policy": _} +_params_42: RecipientInfoDict = {} +_params_43: ReEncryptInputDict = {"destination_key_id": _} +_params_44: ReplicateKeyInputDict = {"key_id": _, "replica_region": _} +_params_45: RetireGrantInputDict = {} +_params_46: RevokeGrantInputDict = {"key_id": _, "grant_id": _} +_params_47: RotateKeyOnDemandInputDict = {"key_id": _} +_params_48: ScheduleKeyDeletionInputDict = {"key_id": _} +_params_49: SignInputDict = {"key_id": _, "message": _, "signing_algorithm": _} +_params_50: TagDict = {"tag_key": _, "tag_value": _} +_params_51: TagResourceInputDict = {"key_id": _, "tags": _} +_params_52: UntagResourceInputDict = {"key_id": _, "tag_keys": _} +_params_53: UpdateAliasInputDict = {"alias_name": _, "target_key_id": _} +_params_54: UpdateCustomKeyStoreInputDict = {"custom_key_store_id": _} +_params_55: UpdateKeyDescriptionInputDict = {"key_id": _, "description": _} +_params_56: UpdatePrimaryRegionInputDict = {"key_id": _, "primary_region": _} +_params_57: VerifyInputDict = { + "key_id": _, + "message": _, + "signature": _, + "signing_algorithm": _, +} +_params_58: VerifyMacInputDict = { + "message": _, + "key_id": _, + "mac_algorithm": _, + "mac": _, +} +_params_59: XksProxyAuthenticationCredentialTypeDict = { + "access_key_id": _, + "raw_secret_access_key": _, +} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncKMSClient) -> None: + pass + await client.cancel_key_deletion(key_id=_) + await client.cancel_key_deletion(**_request(CancelKeyDeletionInputDict)) + await client.cancel_key_deletion(_request(CancelKeyDeletionInput)) + await client.cancel_key_deletion(_request(CancelKeyDeletionInputDict)) + await client.connect_custom_key_store(custom_key_store_id=_) + await client.connect_custom_key_store(**_request(ConnectCustomKeyStoreInputDict)) + await client.connect_custom_key_store(_request(ConnectCustomKeyStoreInput)) + await client.connect_custom_key_store(_request(ConnectCustomKeyStoreInputDict)) + await client.create_alias(alias_name=_, target_key_id=_) + await client.create_alias(**_request(CreateAliasInputDict)) + await client.create_alias(_request(CreateAliasInput)) + await client.create_alias(_request(CreateAliasInputDict)) + await client.create_custom_key_store(custom_key_store_name=_) + await client.create_custom_key_store(**_request(CreateCustomKeyStoreInputDict)) + await client.create_custom_key_store(_request(CreateCustomKeyStoreInput)) + await client.create_custom_key_store(_request(CreateCustomKeyStoreInputDict)) + await client.create_grant(key_id=_, operations=_) + await client.create_grant(**_request(CreateGrantInputDict)) + await client.create_grant(_request(CreateGrantInput)) + await client.create_grant(_request(CreateGrantInputDict)) + await client.create_key() + await client.create_key(**_request(CreateKeyInputDict)) + await client.create_key(_request(CreateKeyInput)) + await client.create_key(_request(CreateKeyInputDict)) + await client.decapsulate( + key_id=_, shared_secret_ciphertext_blob=_, encapsulation_algorithm=_ + ) + await client.decapsulate(**_request(DecapsulateInputDict)) + await client.decapsulate(_request(DecapsulateInput)) + await client.decapsulate(_request(DecapsulateInputDict)) + await client.decrypt() + await client.decrypt(**_request(DecryptInputDict)) + await client.decrypt(_request(DecryptInput)) + await client.decrypt(_request(DecryptInputDict)) + await client.delete_alias(alias_name=_) + await client.delete_alias(**_request(DeleteAliasInputDict)) + await client.delete_alias(_request(DeleteAliasInput)) + await client.delete_alias(_request(DeleteAliasInputDict)) + await client.delete_custom_key_store(custom_key_store_id=_) + await client.delete_custom_key_store(**_request(DeleteCustomKeyStoreInputDict)) + await client.delete_custom_key_store(_request(DeleteCustomKeyStoreInput)) + await client.delete_custom_key_store(_request(DeleteCustomKeyStoreInputDict)) + await client.delete_imported_key_material(key_id=_) + await client.delete_imported_key_material( + **_request(DeleteImportedKeyMaterialInputDict) + ) + await client.delete_imported_key_material(_request(DeleteImportedKeyMaterialInput)) + await client.delete_imported_key_material( + _request(DeleteImportedKeyMaterialInputDict) + ) + await client.derive_shared_secret(key_id=_, key_agreement_algorithm=_, public_key=_) + await client.derive_shared_secret(**_request(DeriveSharedSecretInputDict)) + await client.derive_shared_secret(_request(DeriveSharedSecretInput)) + await client.derive_shared_secret(_request(DeriveSharedSecretInputDict)) + await client.describe_custom_key_stores() + await client.describe_custom_key_stores( + **_request(DescribeCustomKeyStoresInputDict) + ) + await client.describe_custom_key_stores(_request(DescribeCustomKeyStoresInput)) + await client.describe_custom_key_stores(_request(DescribeCustomKeyStoresInputDict)) + await client.describe_key(key_id=_) + await client.describe_key(**_request(DescribeKeyInputDict)) + await client.describe_key(_request(DescribeKeyInput)) + await client.describe_key(_request(DescribeKeyInputDict)) + await client.disable_key(key_id=_) + await client.disable_key(**_request(DisableKeyInputDict)) + await client.disable_key(_request(DisableKeyInput)) + await client.disable_key(_request(DisableKeyInputDict)) + await client.disable_key_rotation(key_id=_) + await client.disable_key_rotation(**_request(DisableKeyRotationInputDict)) + await client.disable_key_rotation(_request(DisableKeyRotationInput)) + await client.disable_key_rotation(_request(DisableKeyRotationInputDict)) + await client.disconnect_custom_key_store(custom_key_store_id=_) + await client.disconnect_custom_key_store( + **_request(DisconnectCustomKeyStoreInputDict) + ) + await client.disconnect_custom_key_store(_request(DisconnectCustomKeyStoreInput)) + await client.disconnect_custom_key_store( + _request(DisconnectCustomKeyStoreInputDict) + ) + await client.enable_key(key_id=_) + await client.enable_key(**_request(EnableKeyInputDict)) + await client.enable_key(_request(EnableKeyInput)) + await client.enable_key(_request(EnableKeyInputDict)) + await client.enable_key_rotation(key_id=_) + await client.enable_key_rotation(**_request(EnableKeyRotationInputDict)) + await client.enable_key_rotation(_request(EnableKeyRotationInput)) + await client.enable_key_rotation(_request(EnableKeyRotationInputDict)) + await client.encapsulate(key_id=_, encapsulation_algorithm=_) + await client.encapsulate(**_request(EncapsulateInputDict)) + await client.encapsulate(_request(EncapsulateInput)) + await client.encapsulate(_request(EncapsulateInputDict)) + await client.encrypt(key_id=_, plaintext=_) + await client.encrypt(**_request(EncryptInputDict)) + await client.encrypt(_request(EncryptInput)) + await client.encrypt(_request(EncryptInputDict)) + await client.generate_data_key(key_id=_) + await client.generate_data_key(**_request(GenerateDataKeyInputDict)) + await client.generate_data_key(_request(GenerateDataKeyInput)) + await client.generate_data_key(_request(GenerateDataKeyInputDict)) + await client.generate_data_key_pair(key_id=_, key_pair_spec=_) + await client.generate_data_key_pair(**_request(GenerateDataKeyPairInputDict)) + await client.generate_data_key_pair(_request(GenerateDataKeyPairInput)) + await client.generate_data_key_pair(_request(GenerateDataKeyPairInputDict)) + await client.generate_data_key_pair_without_plaintext(key_id=_, key_pair_spec=_) + await client.generate_data_key_pair_without_plaintext( + **_request(GenerateDataKeyPairWithoutPlaintextInputDict) + ) + await client.generate_data_key_pair_without_plaintext( + _request(GenerateDataKeyPairWithoutPlaintextInput) + ) + await client.generate_data_key_pair_without_plaintext( + _request(GenerateDataKeyPairWithoutPlaintextInputDict) + ) + await client.generate_data_key_without_plaintext(key_id=_) + await client.generate_data_key_without_plaintext( + **_request(GenerateDataKeyWithoutPlaintextInputDict) + ) + await client.generate_data_key_without_plaintext( + _request(GenerateDataKeyWithoutPlaintextInput) + ) + await client.generate_data_key_without_plaintext( + _request(GenerateDataKeyWithoutPlaintextInputDict) + ) + await client.generate_mac(message=_, key_id=_, mac_algorithm=_) + await client.generate_mac(**_request(GenerateMacInputDict)) + await client.generate_mac(_request(GenerateMacInput)) + await client.generate_mac(_request(GenerateMacInputDict)) + await client.generate_random() + await client.generate_random(**_request(GenerateRandomInputDict)) + await client.generate_random(_request(GenerateRandomInput)) + await client.generate_random(_request(GenerateRandomInputDict)) + await client.get_key_last_usage(key_id=_) + await client.get_key_last_usage(**_request(GetKeyLastUsageInputDict)) + await client.get_key_last_usage(_request(GetKeyLastUsageInput)) + await client.get_key_last_usage(_request(GetKeyLastUsageInputDict)) + await client.get_key_policy(key_id=_) + await client.get_key_policy(**_request(GetKeyPolicyInputDict)) + await client.get_key_policy(_request(GetKeyPolicyInput)) + await client.get_key_policy(_request(GetKeyPolicyInputDict)) + await client.get_key_rotation_status(key_id=_) + await client.get_key_rotation_status(**_request(GetKeyRotationStatusInputDict)) + await client.get_key_rotation_status(_request(GetKeyRotationStatusInput)) + await client.get_key_rotation_status(_request(GetKeyRotationStatusInputDict)) + await client.get_parameters_for_import( + key_id=_, wrapping_algorithm=_, wrapping_key_spec=_ + ) + await client.get_parameters_for_import(**_request(GetParametersForImportInputDict)) + await client.get_parameters_for_import(_request(GetParametersForImportInput)) + await client.get_parameters_for_import(_request(GetParametersForImportInputDict)) + await client.get_public_key(key_id=_) + await client.get_public_key(**_request(GetPublicKeyInputDict)) + await client.get_public_key(_request(GetPublicKeyInput)) + await client.get_public_key(_request(GetPublicKeyInputDict)) + await client.import_key_material(key_id=_, import_token=_, encrypted_key_material=_) + await client.import_key_material(**_request(ImportKeyMaterialInputDict)) + await client.import_key_material(_request(ImportKeyMaterialInput)) + await client.import_key_material(_request(ImportKeyMaterialInputDict)) + await client.list_aliases() + await client.list_aliases(**_request(ListAliasesInputDict)) + await client.list_aliases(_request(ListAliasesInput)) + await client.list_aliases(_request(ListAliasesInputDict)) + await client.list_grants(key_id=_) + await client.list_grants(**_request(ListGrantsInputDict)) + await client.list_grants(_request(ListGrantsInput)) + await client.list_grants(_request(ListGrantsInputDict)) + await client.list_key_policies(key_id=_) + await client.list_key_policies(**_request(ListKeyPoliciesInputDict)) + await client.list_key_policies(_request(ListKeyPoliciesInput)) + await client.list_key_policies(_request(ListKeyPoliciesInputDict)) + await client.list_key_rotations(key_id=_) + await client.list_key_rotations(**_request(ListKeyRotationsInputDict)) + await client.list_key_rotations(_request(ListKeyRotationsInput)) + await client.list_key_rotations(_request(ListKeyRotationsInputDict)) + await client.list_keys() + await client.list_keys(**_request(ListKeysInputDict)) + await client.list_keys(_request(ListKeysInput)) + await client.list_keys(_request(ListKeysInputDict)) + await client.list_resource_tags(key_id=_) + await client.list_resource_tags(**_request(ListResourceTagsInputDict)) + await client.list_resource_tags(_request(ListResourceTagsInput)) + await client.list_resource_tags(_request(ListResourceTagsInputDict)) + await client.list_retirable_grants() + await client.list_retirable_grants(**_request(ListRetirableGrantsInputDict)) + await client.list_retirable_grants(_request(ListRetirableGrantsInput)) + await client.list_retirable_grants(_request(ListRetirableGrantsInputDict)) + await client.put_key_policy(key_id=_, policy=_) + await client.put_key_policy(**_request(PutKeyPolicyInputDict)) + await client.put_key_policy(_request(PutKeyPolicyInput)) + await client.put_key_policy(_request(PutKeyPolicyInputDict)) + await client.re_encrypt(destination_key_id=_) + await client.re_encrypt(**_request(ReEncryptInputDict)) + await client.re_encrypt(_request(ReEncryptInput)) + await client.re_encrypt(_request(ReEncryptInputDict)) + await client.replicate_key(key_id=_, replica_region=_) + await client.replicate_key(**_request(ReplicateKeyInputDict)) + await client.replicate_key(_request(ReplicateKeyInput)) + await client.replicate_key(_request(ReplicateKeyInputDict)) + await client.retire_grant() + await client.retire_grant(**_request(RetireGrantInputDict)) + await client.retire_grant(_request(RetireGrantInput)) + await client.retire_grant(_request(RetireGrantInputDict)) + await client.revoke_grant(key_id=_, grant_id=_) + await client.revoke_grant(**_request(RevokeGrantInputDict)) + await client.revoke_grant(_request(RevokeGrantInput)) + await client.revoke_grant(_request(RevokeGrantInputDict)) + await client.rotate_key_on_demand(key_id=_) + await client.rotate_key_on_demand(**_request(RotateKeyOnDemandInputDict)) + await client.rotate_key_on_demand(_request(RotateKeyOnDemandInput)) + await client.rotate_key_on_demand(_request(RotateKeyOnDemandInputDict)) + await client.schedule_key_deletion(key_id=_) + await client.schedule_key_deletion(**_request(ScheduleKeyDeletionInputDict)) + await client.schedule_key_deletion(_request(ScheduleKeyDeletionInput)) + await client.schedule_key_deletion(_request(ScheduleKeyDeletionInputDict)) + await client.sign(key_id=_, message=_, signing_algorithm=_) + await client.sign(**_request(SignInputDict)) + await client.sign(_request(SignInput)) + await client.sign(_request(SignInputDict)) + await client.tag_resource(key_id=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(key_id=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_alias(alias_name=_, target_key_id=_) + await client.update_alias(**_request(UpdateAliasInputDict)) + await client.update_alias(_request(UpdateAliasInput)) + await client.update_alias(_request(UpdateAliasInputDict)) + await client.update_custom_key_store(custom_key_store_id=_) + await client.update_custom_key_store(**_request(UpdateCustomKeyStoreInputDict)) + await client.update_custom_key_store(_request(UpdateCustomKeyStoreInput)) + await client.update_custom_key_store(_request(UpdateCustomKeyStoreInputDict)) + await client.update_key_description(key_id=_, description=_) + await client.update_key_description(**_request(UpdateKeyDescriptionInputDict)) + await client.update_key_description(_request(UpdateKeyDescriptionInput)) + await client.update_key_description(_request(UpdateKeyDescriptionInputDict)) + await client.update_primary_region(key_id=_, primary_region=_) + await client.update_primary_region(**_request(UpdatePrimaryRegionInputDict)) + await client.update_primary_region(_request(UpdatePrimaryRegionInput)) + await client.update_primary_region(_request(UpdatePrimaryRegionInputDict)) + await client.verify(key_id=_, message=_, signature=_, signing_algorithm=_) + await client.verify(**_request(VerifyInputDict)) + await client.verify(_request(VerifyInput)) + await client.verify(_request(VerifyInputDict)) + await client.verify_mac(message=_, key_id=_, mac_algorithm=_, mac=_) + await client.verify_mac(**_request(VerifyMacInputDict)) + await client.verify_mac(_request(VerifyMacInput)) + await client.verify_mac(_request(VerifyMacInputDict)) + + +def check_sync_calls(client: KMSClient) -> None: + pass + client.cancel_key_deletion(key_id=_) + client.cancel_key_deletion(**_request(CancelKeyDeletionInputDict)) + client.cancel_key_deletion(_request(CancelKeyDeletionInput)) + client.cancel_key_deletion(_request(CancelKeyDeletionInputDict)) + client.connect_custom_key_store(custom_key_store_id=_) + client.connect_custom_key_store(**_request(ConnectCustomKeyStoreInputDict)) + client.connect_custom_key_store(_request(ConnectCustomKeyStoreInput)) + client.connect_custom_key_store(_request(ConnectCustomKeyStoreInputDict)) + client.create_alias(alias_name=_, target_key_id=_) + client.create_alias(**_request(CreateAliasInputDict)) + client.create_alias(_request(CreateAliasInput)) + client.create_alias(_request(CreateAliasInputDict)) + client.create_custom_key_store(custom_key_store_name=_) + client.create_custom_key_store(**_request(CreateCustomKeyStoreInputDict)) + client.create_custom_key_store(_request(CreateCustomKeyStoreInput)) + client.create_custom_key_store(_request(CreateCustomKeyStoreInputDict)) + client.create_grant(key_id=_, operations=_) + client.create_grant(**_request(CreateGrantInputDict)) + client.create_grant(_request(CreateGrantInput)) + client.create_grant(_request(CreateGrantInputDict)) + client.create_key() + client.create_key(**_request(CreateKeyInputDict)) + client.create_key(_request(CreateKeyInput)) + client.create_key(_request(CreateKeyInputDict)) + client.decapsulate( + key_id=_, shared_secret_ciphertext_blob=_, encapsulation_algorithm=_ + ) + client.decapsulate(**_request(DecapsulateInputDict)) + client.decapsulate(_request(DecapsulateInput)) + client.decapsulate(_request(DecapsulateInputDict)) + client.decrypt() + client.decrypt(**_request(DecryptInputDict)) + client.decrypt(_request(DecryptInput)) + client.decrypt(_request(DecryptInputDict)) + client.delete_alias(alias_name=_) + client.delete_alias(**_request(DeleteAliasInputDict)) + client.delete_alias(_request(DeleteAliasInput)) + client.delete_alias(_request(DeleteAliasInputDict)) + client.delete_custom_key_store(custom_key_store_id=_) + client.delete_custom_key_store(**_request(DeleteCustomKeyStoreInputDict)) + client.delete_custom_key_store(_request(DeleteCustomKeyStoreInput)) + client.delete_custom_key_store(_request(DeleteCustomKeyStoreInputDict)) + client.delete_imported_key_material(key_id=_) + client.delete_imported_key_material(**_request(DeleteImportedKeyMaterialInputDict)) + client.delete_imported_key_material(_request(DeleteImportedKeyMaterialInput)) + client.delete_imported_key_material(_request(DeleteImportedKeyMaterialInputDict)) + client.derive_shared_secret(key_id=_, key_agreement_algorithm=_, public_key=_) + client.derive_shared_secret(**_request(DeriveSharedSecretInputDict)) + client.derive_shared_secret(_request(DeriveSharedSecretInput)) + client.derive_shared_secret(_request(DeriveSharedSecretInputDict)) + client.describe_custom_key_stores() + client.describe_custom_key_stores(**_request(DescribeCustomKeyStoresInputDict)) + client.describe_custom_key_stores(_request(DescribeCustomKeyStoresInput)) + client.describe_custom_key_stores(_request(DescribeCustomKeyStoresInputDict)) + client.describe_key(key_id=_) + client.describe_key(**_request(DescribeKeyInputDict)) + client.describe_key(_request(DescribeKeyInput)) + client.describe_key(_request(DescribeKeyInputDict)) + client.disable_key(key_id=_) + client.disable_key(**_request(DisableKeyInputDict)) + client.disable_key(_request(DisableKeyInput)) + client.disable_key(_request(DisableKeyInputDict)) + client.disable_key_rotation(key_id=_) + client.disable_key_rotation(**_request(DisableKeyRotationInputDict)) + client.disable_key_rotation(_request(DisableKeyRotationInput)) + client.disable_key_rotation(_request(DisableKeyRotationInputDict)) + client.disconnect_custom_key_store(custom_key_store_id=_) + client.disconnect_custom_key_store(**_request(DisconnectCustomKeyStoreInputDict)) + client.disconnect_custom_key_store(_request(DisconnectCustomKeyStoreInput)) + client.disconnect_custom_key_store(_request(DisconnectCustomKeyStoreInputDict)) + client.enable_key(key_id=_) + client.enable_key(**_request(EnableKeyInputDict)) + client.enable_key(_request(EnableKeyInput)) + client.enable_key(_request(EnableKeyInputDict)) + client.enable_key_rotation(key_id=_) + client.enable_key_rotation(**_request(EnableKeyRotationInputDict)) + client.enable_key_rotation(_request(EnableKeyRotationInput)) + client.enable_key_rotation(_request(EnableKeyRotationInputDict)) + client.encapsulate(key_id=_, encapsulation_algorithm=_) + client.encapsulate(**_request(EncapsulateInputDict)) + client.encapsulate(_request(EncapsulateInput)) + client.encapsulate(_request(EncapsulateInputDict)) + client.encrypt(key_id=_, plaintext=_) + client.encrypt(**_request(EncryptInputDict)) + client.encrypt(_request(EncryptInput)) + client.encrypt(_request(EncryptInputDict)) + client.generate_data_key(key_id=_) + client.generate_data_key(**_request(GenerateDataKeyInputDict)) + client.generate_data_key(_request(GenerateDataKeyInput)) + client.generate_data_key(_request(GenerateDataKeyInputDict)) + client.generate_data_key_pair(key_id=_, key_pair_spec=_) + client.generate_data_key_pair(**_request(GenerateDataKeyPairInputDict)) + client.generate_data_key_pair(_request(GenerateDataKeyPairInput)) + client.generate_data_key_pair(_request(GenerateDataKeyPairInputDict)) + client.generate_data_key_pair_without_plaintext(key_id=_, key_pair_spec=_) + client.generate_data_key_pair_without_plaintext( + **_request(GenerateDataKeyPairWithoutPlaintextInputDict) + ) + client.generate_data_key_pair_without_plaintext( + _request(GenerateDataKeyPairWithoutPlaintextInput) + ) + client.generate_data_key_pair_without_plaintext( + _request(GenerateDataKeyPairWithoutPlaintextInputDict) + ) + client.generate_data_key_without_plaintext(key_id=_) + client.generate_data_key_without_plaintext( + **_request(GenerateDataKeyWithoutPlaintextInputDict) + ) + client.generate_data_key_without_plaintext( + _request(GenerateDataKeyWithoutPlaintextInput) + ) + client.generate_data_key_without_plaintext( + _request(GenerateDataKeyWithoutPlaintextInputDict) + ) + client.generate_mac(message=_, key_id=_, mac_algorithm=_) + client.generate_mac(**_request(GenerateMacInputDict)) + client.generate_mac(_request(GenerateMacInput)) + client.generate_mac(_request(GenerateMacInputDict)) + client.generate_random() + client.generate_random(**_request(GenerateRandomInputDict)) + client.generate_random(_request(GenerateRandomInput)) + client.generate_random(_request(GenerateRandomInputDict)) + client.get_key_last_usage(key_id=_) + client.get_key_last_usage(**_request(GetKeyLastUsageInputDict)) + client.get_key_last_usage(_request(GetKeyLastUsageInput)) + client.get_key_last_usage(_request(GetKeyLastUsageInputDict)) + client.get_key_policy(key_id=_) + client.get_key_policy(**_request(GetKeyPolicyInputDict)) + client.get_key_policy(_request(GetKeyPolicyInput)) + client.get_key_policy(_request(GetKeyPolicyInputDict)) + client.get_key_rotation_status(key_id=_) + client.get_key_rotation_status(**_request(GetKeyRotationStatusInputDict)) + client.get_key_rotation_status(_request(GetKeyRotationStatusInput)) + client.get_key_rotation_status(_request(GetKeyRotationStatusInputDict)) + client.get_parameters_for_import( + key_id=_, wrapping_algorithm=_, wrapping_key_spec=_ + ) + client.get_parameters_for_import(**_request(GetParametersForImportInputDict)) + client.get_parameters_for_import(_request(GetParametersForImportInput)) + client.get_parameters_for_import(_request(GetParametersForImportInputDict)) + client.get_public_key(key_id=_) + client.get_public_key(**_request(GetPublicKeyInputDict)) + client.get_public_key(_request(GetPublicKeyInput)) + client.get_public_key(_request(GetPublicKeyInputDict)) + client.import_key_material(key_id=_, import_token=_, encrypted_key_material=_) + client.import_key_material(**_request(ImportKeyMaterialInputDict)) + client.import_key_material(_request(ImportKeyMaterialInput)) + client.import_key_material(_request(ImportKeyMaterialInputDict)) + client.list_aliases() + client.list_aliases(**_request(ListAliasesInputDict)) + client.list_aliases(_request(ListAliasesInput)) + client.list_aliases(_request(ListAliasesInputDict)) + client.list_grants(key_id=_) + client.list_grants(**_request(ListGrantsInputDict)) + client.list_grants(_request(ListGrantsInput)) + client.list_grants(_request(ListGrantsInputDict)) + client.list_key_policies(key_id=_) + client.list_key_policies(**_request(ListKeyPoliciesInputDict)) + client.list_key_policies(_request(ListKeyPoliciesInput)) + client.list_key_policies(_request(ListKeyPoliciesInputDict)) + client.list_key_rotations(key_id=_) + client.list_key_rotations(**_request(ListKeyRotationsInputDict)) + client.list_key_rotations(_request(ListKeyRotationsInput)) + client.list_key_rotations(_request(ListKeyRotationsInputDict)) + client.list_keys() + client.list_keys(**_request(ListKeysInputDict)) + client.list_keys(_request(ListKeysInput)) + client.list_keys(_request(ListKeysInputDict)) + client.list_resource_tags(key_id=_) + client.list_resource_tags(**_request(ListResourceTagsInputDict)) + client.list_resource_tags(_request(ListResourceTagsInput)) + client.list_resource_tags(_request(ListResourceTagsInputDict)) + client.list_retirable_grants() + client.list_retirable_grants(**_request(ListRetirableGrantsInputDict)) + client.list_retirable_grants(_request(ListRetirableGrantsInput)) + client.list_retirable_grants(_request(ListRetirableGrantsInputDict)) + client.put_key_policy(key_id=_, policy=_) + client.put_key_policy(**_request(PutKeyPolicyInputDict)) + client.put_key_policy(_request(PutKeyPolicyInput)) + client.put_key_policy(_request(PutKeyPolicyInputDict)) + client.re_encrypt(destination_key_id=_) + client.re_encrypt(**_request(ReEncryptInputDict)) + client.re_encrypt(_request(ReEncryptInput)) + client.re_encrypt(_request(ReEncryptInputDict)) + client.replicate_key(key_id=_, replica_region=_) + client.replicate_key(**_request(ReplicateKeyInputDict)) + client.replicate_key(_request(ReplicateKeyInput)) + client.replicate_key(_request(ReplicateKeyInputDict)) + client.retire_grant() + client.retire_grant(**_request(RetireGrantInputDict)) + client.retire_grant(_request(RetireGrantInput)) + client.retire_grant(_request(RetireGrantInputDict)) + client.revoke_grant(key_id=_, grant_id=_) + client.revoke_grant(**_request(RevokeGrantInputDict)) + client.revoke_grant(_request(RevokeGrantInput)) + client.revoke_grant(_request(RevokeGrantInputDict)) + client.rotate_key_on_demand(key_id=_) + client.rotate_key_on_demand(**_request(RotateKeyOnDemandInputDict)) + client.rotate_key_on_demand(_request(RotateKeyOnDemandInput)) + client.rotate_key_on_demand(_request(RotateKeyOnDemandInputDict)) + client.schedule_key_deletion(key_id=_) + client.schedule_key_deletion(**_request(ScheduleKeyDeletionInputDict)) + client.schedule_key_deletion(_request(ScheduleKeyDeletionInput)) + client.schedule_key_deletion(_request(ScheduleKeyDeletionInputDict)) + client.sign(key_id=_, message=_, signing_algorithm=_) + client.sign(**_request(SignInputDict)) + client.sign(_request(SignInput)) + client.sign(_request(SignInputDict)) + client.tag_resource(key_id=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(key_id=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_alias(alias_name=_, target_key_id=_) + client.update_alias(**_request(UpdateAliasInputDict)) + client.update_alias(_request(UpdateAliasInput)) + client.update_alias(_request(UpdateAliasInputDict)) + client.update_custom_key_store(custom_key_store_id=_) + client.update_custom_key_store(**_request(UpdateCustomKeyStoreInputDict)) + client.update_custom_key_store(_request(UpdateCustomKeyStoreInput)) + client.update_custom_key_store(_request(UpdateCustomKeyStoreInputDict)) + client.update_key_description(key_id=_, description=_) + client.update_key_description(**_request(UpdateKeyDescriptionInputDict)) + client.update_key_description(_request(UpdateKeyDescriptionInput)) + client.update_key_description(_request(UpdateKeyDescriptionInputDict)) + client.update_primary_region(key_id=_, primary_region=_) + client.update_primary_region(**_request(UpdatePrimaryRegionInputDict)) + client.update_primary_region(_request(UpdatePrimaryRegionInput)) + client.update_primary_region(_request(UpdatePrimaryRegionInputDict)) + client.verify(key_id=_, message=_, signature=_, signing_algorithm=_) + client.verify(**_request(VerifyInputDict)) + client.verify(_request(VerifyInput)) + client.verify(_request(VerifyInputDict)) + client.verify_mac(message=_, key_id=_, mac_algorithm=_, mac=_) + client.verify_mac(**_request(VerifyMacInputDict)) + client.verify_mac(_request(VerifyMacInput)) + client.verify_mac(_request(VerifyMacInputDict)) diff --git a/clients/aws-sdk-lambda/pyproject.toml b/clients/aws-sdk-lambda/pyproject.toml index 738dbddb4..a51980585 100644 --- a/clients/aws-sdk-lambda/pyproject.toml +++ b/clients/aws-sdk-lambda/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/models_0.pyi b/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/models_0.pyi index b58f1b487..159cf805c 100644 --- a/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/models_0.pyi +++ b/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/models_0.pyi @@ -1,43 +1,61 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.aio.interfaces import StreamingBlob from smithy_core.deserializers import ShapeDeserializer +from smithy_core.interfaces import StreamingBlob as SyncStreamingBlob from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin from ..models import ( LoggingConfig, + LoggingConfigDict, OnFailure, + OnFailureDict, OnSuccess, + OnSuccessDict, Operation, OperationUpdate, + OperationUpdateDict, PropagateTags, + PropagateTagsDict, ProvisionedPollerConfig, + ProvisionedPollerConfigDict, ResolvedS3Object, RuntimeVersionConfig, S3FilesConfig, + S3FilesConfigDict, ScalingConfig, + ScalingConfigDict, SelfManagedEventSource, + SelfManagedEventSourceDict, SelfManagedKafkaEventSourceConfig, + SelfManagedKafkaEventSourceConfigDict, ServiceError, SnapStart, + SnapStartDict, SnapStartResponse, SourceAccessConfiguration, + SourceAccessConfigurationDict, StepFailedDetails, StepStartedDetails, StepSucceededDetails, TagsError, TargetTrackingScalingPolicy, + TargetTrackingScalingPolicyDict, TenancyConfig, + TenancyConfigDict, TraceHeader, TracingConfig, + TracingConfigDict, TracingConfigResponse, VpcConfig, + VpcConfigDict, VpcConfigResponse, WaitCancelledDetails, WaitStartedDetails, @@ -126,6 +144,43 @@ class AddLayerVersionPermissionInput(_SerdeShape): read it. """ +class AddLayerVersionPermissionInputDict(TypedDict, total=False): + """Dictionary form of `AddLayerVersionPermissionInput`.""" + + layer_name: Required[str] + """The name or Amazon Resource Name (ARN) of the layer.""" + version_number: int | None + """The version number.""" + statement_id: Required[str] + """ + An identifier that distinguishes the policy from others on the same + layer version. + """ + action: Required[str] + """ + The API action that grants access to the layer. For example, + `lambda:GetLayerVersion`. + """ + principal: Required[str] + """ + An account ID, or `*` to grant layer usage permission to all accounts in + an organization, or all Amazon Web Services accounts (if + `organizationId` is not specified). For the last case, make sure that + you really do want all Amazon Web Services accounts to have usage + permission to this layer. + """ + organization_id: str | None + """ + With the principal set to `*`, grant permission to all accounts in the + specified organization. + """ + revision_id: str | None + """ + Only update the policy if the revision ID matches the ID specified. Use + this option to avoid modifying a policy that has changed since you last + read it. + """ + @dataclass(kw_only=True) class AddLayerVersionPermissionOutput(_SerdeShape): """Dataclass for AddLayerVersionPermissionOutput structure.""" @@ -231,6 +286,94 @@ class AddPermissionInput(_SerdeShape): organization. """ +class AddPermissionInputDict(TypedDict, total=False): + """Dictionary form of `AddPermissionInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** -- `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + statement_id: Required[str] + """ + A statement identifier that differentiates the statement from others in + the same policy. + """ + action: Required[str] + """ + The action that the principal can use on the function. For example, + `lambda:InvokeFunction` or `lambda:GetFunction`. + """ + principal: Required[str] + """ + The Amazon Web Services service, Amazon Web Services account, IAM user, + or IAM role that invokes the function. If you specify a service, use + `SourceArn` or `SourceAccount` to limit who can invoke the function + through that service. + """ + source_arn: str | None + """ + For Amazon Web Services services, the ARN of the Amazon Web Services + resource that invokes the function. For example, an Amazon S3 bucket or + Amazon SNS topic. + + Note that Lambda configures the comparison using the `StringLike` + operator. + """ + function_url_auth_type: str | None + """ + The type of authentication that your function URL uses. Set to `AWS_IAM` + if you want to restrict access to authenticated users only. Set to + `NONE` if you want to bypass IAM authentication to create a public + endpoint. For more information, see [Control access to Lambda function + URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + """ + invoked_via_function_url: bool | None + """ + Indicates whether the permission applies when the function is invoked + through a function URL. + """ + source_account: str | None + """ + For Amazon Web Services service, the ID of the Amazon Web Services + account that owns the resource. Use this together with `SourceArn` to + ensure that the specified account owns the resource. It is possible for + an Amazon S3 bucket to be deleted by its owner and recreated by another + account. + """ + event_source_token: str | None + """For Alexa Smart Home functions, a token that the invoker must supply.""" + qualifier: str | None + """ + Specify a version or alias to add permissions to a published version of + the function. + """ + revision_id: str | None + """ + Update the policy only if the revision ID matches the ID that's + specified. Use this option to avoid modifying a policy that has changed + since you last read it. + """ + principal_org_id: str | None + """ + The identifier for your organization in Organizations. Use this to grant + permissions to all the Amazon Web Services accounts under this + organization. + """ + @dataclass(kw_only=True) class AddPermissionOutput(_SerdeShape): """Dataclass for AddPermissionOutput structure.""" @@ -299,6 +442,12 @@ class AliasRoutingConfiguration(_SerdeShape): additional_version_weights: dict[str, float] | None = ... """The second version, and the percentage of traffic that's routed to it.""" +class AliasRoutingConfigurationDict(TypedDict, total=False): + """Dictionary form of `AliasRoutingConfiguration`.""" + + additional_version_weights: Mapping[str, float] | None + """The second version, and the percentage of traffic that's routed to it.""" + @dataclass(kw_only=True) class AllowedPublishers(_SerdeShape): """List of signing profiles that can sign a code package.""" @@ -309,6 +458,15 @@ class AllowedPublishers(_SerdeShape): signing profile defines a trusted user who can sign a code package. """ +class AllowedPublishersDict(TypedDict, total=False): + """Dictionary form of `AllowedPublishers`.""" + + signing_profile_version_arns: Required[Sequence[str]] + """ + The Amazon Resource Name (ARN) for each of the signing profiles. A + signing profile defines a trusted user who can sign a code package. + """ + @dataclass(kw_only=True) class AmazonManagedKafkaEventSourceConfig(_SerdeShape): """ @@ -328,6 +486,23 @@ class AmazonManagedKafkaEventSourceConfig(_SerdeShape): schema_registry_config: KafkaSchemaRegistryConfig | None = ... """Specific configuration settings for a Kafka schema registry.""" +class AmazonManagedKafkaEventSourceConfigDict(TypedDict, total=False): + """Dictionary form of `AmazonManagedKafkaEventSourceConfig`.""" + + consumer_group_id: str | None + """ + The identifier for the Kafka consumer group to join. The consumer group + ID must be unique among all your Kafka event sources. After creating a + Kafka event source mapping with the consumer group ID specified, you + cannot update this value. For more information, see [Customizable + consumer group + ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id). + """ + schema_registry_config: ( + KafkaSchemaRegistryConfig | KafkaSchemaRegistryConfigDict | None + ) + """Specific configuration settings for a Kafka schema registry.""" + class ApplicationLogLevel(UnknownEnumMixin, StrEnum): TRACE = "TRACE" DEBUG = "DEBUG" @@ -385,6 +560,20 @@ class CallbackOptions(_SerdeShape): specified or set to 0, heartbeat timeout is disabled. """ +class CallbackOptionsDict(TypedDict, total=False): + """Dictionary form of `CallbackOptions`.""" + + timeout_seconds: int | None + """ + The timeout for the callback operation in seconds. If not specified or + set to 0, the callback has no timeout. + """ + heartbeat_timeout_seconds: int | None + """ + The heartbeat timeout for the callback operation, in seconds. If not + specified or set to 0, heartbeat timeout is disabled. + """ + @dataclass(kw_only=True) class CallbackStartedDetails(_SerdeShape): """ @@ -491,6 +680,18 @@ class CapacityProviderConfig(_SerdeShape): provider. """ +class CapacityProviderConfigDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderConfig`.""" + + lambda_managed_instances_capacity_provider_config: Required[ + LambdaManagedInstancesCapacityProviderConfig + | LambdaManagedInstancesCapacityProviderConfigDict + ] + """ + Configuration for Lambda-managed instances used by the capacity + provider. + """ + @dataclass(kw_only=True) class CapacityProviderLimitExceededException(ServiceError, _SerdeShape): """ @@ -530,6 +731,26 @@ class CapacityProviderLoggingConfig(_SerdeShape): group name. """ +class CapacityProviderLoggingConfigDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderLoggingConfig`.""" + + system_log_level: str | None + """ + Set this property to filter the system logs for your capacity provider + that Lambda sends to CloudWatch. Lambda only sends system logs at the + selected level of detail and lower, where `DEBUG` is the highest level + and `WARN` is the lowest. + """ + log_group: str | None + """ + The name of the Amazon CloudWatch log group the capacity provider sends + logs to. By default, Lambda capacity providers send logs to a default + log group named + `/aws/lambda/capacity-provider/`. To use a + different log group, enter an existing log group or enter a new log + group name. + """ + @dataclass(kw_only=True) class CapacityProviderPermissionsConfig(_SerdeShape): """ @@ -543,6 +764,15 @@ class CapacityProviderPermissionsConfig(_SerdeShape): compute instances and other Amazon Web Services resources. """ +class CapacityProviderPermissionsConfigDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderPermissionsConfig`.""" + + capacity_provider_operator_role_arn: Required[str] + """ + The ARN of the IAM role that the capacity provider uses to manage + compute instances and other Amazon Web Services resources. + """ + class CapacityProviderPredefinedMetricType(UnknownEnumMixin, StrEnum): LAMBDA_CAPACITY_PROVIDER_AVERAGE_CPU_UTILIZATION = ( "LambdaCapacityProviderAverageCPUUtilization" @@ -571,6 +801,27 @@ class CapacityProviderScalingConfig(_SerdeShape): compute instances based on metrics and thresholds. """ +class CapacityProviderScalingConfigDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderScalingConfig`.""" + + max_v_cpu_count: int | None + """ + The maximum number of vCPUs that the capacity provider can provision + across all compute instances. + """ + scaling_mode: str | None + """ + The scaling mode that determines how the capacity provider responds to + changes in demand. + """ + scaling_policies: ( + Sequence[TargetTrackingScalingPolicy | TargetTrackingScalingPolicyDict] | None + ) + """ + A list of scaling policies that define how the capacity provider scales + compute instances based on metrics and thresholds. + """ + class CapacityProviderScalingMode(UnknownEnumMixin, StrEnum): AUTO = "Auto" MANUAL = "Manual" @@ -591,6 +842,14 @@ class CapacityProviderTelemetryConfig(_SerdeShape): logging_config: CapacityProviderLoggingConfig | None = ... """The capacity provider's Amazon CloudWatch Logs configuration settings.""" +class CapacityProviderTelemetryConfigDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderTelemetryConfig`.""" + + logging_config: ( + CapacityProviderLoggingConfig | CapacityProviderLoggingConfigDict | None + ) + """The capacity provider's Amazon CloudWatch Logs configuration settings.""" + @dataclass(kw_only=True) class CapacityProviderVpcConfig(_SerdeShape): """ @@ -609,6 +868,20 @@ class CapacityProviderVpcConfig(_SerdeShape): instances managed by the capacity provider. """ +class CapacityProviderVpcConfigDict(TypedDict, total=False): + """Dictionary form of `CapacityProviderVpcConfig`.""" + + subnet_ids: Required[Sequence[str]] + """ + A list of subnet IDs where the capacity provider launches compute + instances. + """ + security_group_ids: Required[Sequence[str]] + """ + A list of security group IDs that control network access for compute + instances managed by the capacity provider. + """ + @dataclass(kw_only=True) class ChainedInvokeDetails(_SerdeShape): """ @@ -654,6 +927,25 @@ class ChainedInvokeOptions(_SerdeShape): in the *X-Ray Developer Guide*. """ +class ChainedInvokeOptionsDict(TypedDict, total=False): + """Dictionary form of `ChainedInvokeOptions`.""" + + function_name: Required[str] + """The name or ARN of the Lambda function to invoke.""" + tenant_id: str | None + """The tenant identifier for the chained invocation.""" + x_amzn_trace_id: str | None + """ + The X-Ray trace header to use when starting the chained invocation. This + parameter is optional. If you omit this value, the child invocation + inherits the parent durable execution's trace header. + + Specify this value on the `START` update for the chained invocation + operation. For more information about the header format, see [Tracing + header](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader) + in the *X-Ray Developer Guide*. + """ + @dataclass(kw_only=True) class ChainedInvokeStartedDetails(_SerdeShape): """ @@ -722,6 +1014,34 @@ class CheckpointDurableExecutionInput(_SerdeShape): This field is autopopulated if not provided. """ +class CheckpointDurableExecutionInputDict(TypedDict, total=False): + """Dictionary form of `CheckpointDurableExecutionInput`.""" + + durable_execution_arn: Required[str] + """The Amazon Resource Name (ARN) of the durable execution.""" + checkpoint_token: Required[str] + """ + A unique token that identifies the current checkpoint state. This token + is provided by the Lambda runtime and must be used to ensure checkpoints + are applied in the correct order. Each checkpoint operation consumes + this token and returns a new one. + """ + updates: Sequence[OperationUpdate | OperationUpdateDict] | None + """ + An array of state updates to apply during this checkpoint. Each update + represents a change to the execution state, such as completing a step, + starting a callback, or scheduling a timer. Updates are applied + atomically as part of the checkpoint operation. + """ + client_token: str | None + """ + An optional idempotency token to ensure that duplicate checkpoint + requests are handled correctly. If provided, Lambda uses this token to + detect and handle duplicate requests within a 15-minute window. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CheckpointDurableExecutionOutput(_SerdeShape): """The response from the CheckpointDurableExecution operation.""" @@ -876,6 +1196,21 @@ class CodeSigningPolicies(_SerdeShape): Default value: `Warn` """ +class CodeSigningPoliciesDict(TypedDict, total=False): + """Dictionary form of `CodeSigningPolicies`.""" + + untrusted_artifact_on_deployment: str | None + """ + Code signing configuration policy for deployment validation failure. If + you set the policy to `Enforce`, Lambda blocks the deployment request if + signature validation checks fail. If you set the policy to `Warn`, + Lambda allows the deployment and issues a new Amazon CloudWatch metric + (`SignatureValidationErrors`) and also stores the warning in the + CloudTrail log. + + Default value: `Warn` + """ + class CodeSigningPolicy(UnknownEnumMixin, StrEnum): WARN = "Warn" ENFORCE = "Enforce" @@ -958,6 +1293,15 @@ class ContextOptions(_SerdeShape): included in the invoke payload and `GetDurableExecutionState` response. """ +class ContextOptionsDict(TypedDict, total=False): + """Dictionary form of `ContextOptions`.""" + + replay_children: bool | None + """ + Whether the state data of children of the completed context should be + included in the invoke payload and `GetDurableExecutionState` response. + """ + @dataclass(kw_only=True) class ContextStartedDetails(_SerdeShape): """Details about a context that has started.""" @@ -1016,19 +1360,59 @@ class Cors(_SerdeShape): means that the browser doesn't cache results. """ -@dataclass(kw_only=True) -class CreateAliasInput(_SerdeShape): - """Dataclass for CreateAliasInput structure.""" +class CorsDict(TypedDict, total=False): + """Dictionary form of `Cors`.""" - function_name: str | None = ... + allow_credentials: bool | None """ - The name or ARN of the Lambda function. - - **Name formats** - - - **Function name** - `MyFunction`. - - - **Function ARN** - + Whether to allow cookies or other credentials in requests to your + function URL. The default is `false`. + """ + allow_headers: Sequence[str] | None + """ + The HTTP headers that origins can include in requests to your function + URL. For example: `Date`, `Keep-Alive`, `X-Custom-Header`. + """ + allow_methods: Sequence[str] | None + """ + The HTTP methods that are allowed when calling your function URL. For + example: `GET`, `POST`, `DELETE`, or the wildcard character (`*`). + """ + allow_origins: Sequence[str] | None + """ + The origins that can access your function URL. You can list any number + of specific origins, separated by a comma. For example: + `https://www.example.com`, `http://localhost:60905`. + + Alternatively, you can grant access to all origins using the wildcard + character (`*`). + """ + expose_headers: Sequence[str] | None + """ + The HTTP headers in your function response that you want to expose to + origins that call your function URL. For example: `Date`, `Keep-Alive`, + `X-Custom-Header`. + """ + max_age: int | None + """ + The maximum amount of time, in seconds, that web browsers can cache + results of a preflight request. By default, this is set to `0`, which + means that the browser doesn't cache results. + """ + +@dataclass(kw_only=True) +class CreateAliasInput(_SerdeShape): + """Dataclass for CreateAliasInput structure.""" + + function_name: str | None = ... + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. - **Partial ARN** - `123456789012:function:MyFunction`. @@ -1049,6 +1433,38 @@ class CreateAliasInput(_SerdeShape): of the alias. """ +class CreateAliasInputDict(TypedDict, total=False): + """Dictionary form of `CreateAliasInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + name: Required[str] + """The name of the alias.""" + function_version: Required[str] + """The function version that the alias invokes.""" + description: str | None + """A description of the alias.""" + routing_config: AliasRoutingConfiguration | AliasRoutingConfigurationDict | None + """ + The [routing + configuration](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing) + of the alias. + """ + @dataclass(kw_only=True) class CreateAliasOutput(_SerdeShape): """ @@ -1125,6 +1541,56 @@ class CreateCapacityProviderInput(_SerdeShape): settings for managed resources. """ +class CreateCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `CreateCapacityProviderInput`.""" + + capacity_provider_name: Required[str] + """The name of the capacity provider.""" + vpc_config: Required[CapacityProviderVpcConfig | CapacityProviderVpcConfigDict] + """ + The VPC configuration for the capacity provider, including subnet IDs + and security group IDs where compute instances will be launched. + """ + permissions_config: Required[ + CapacityProviderPermissionsConfig | CapacityProviderPermissionsConfigDict + ] + """ + The permissions configuration that specifies the IAM role ARN used by + the capacity provider to manage compute resources. + """ + instance_requirements: InstanceRequirements | InstanceRequirementsDict | None + """ + The instance requirements that specify the compute instance + characteristics, including architectures and allowed or excluded + instance types. + """ + capacity_provider_scaling_config: ( + CapacityProviderScalingConfig | CapacityProviderScalingConfigDict | None + ) + """ + The scaling configuration that defines how the capacity provider scales + compute instances, including maximum vCPU count and scaling policies. + """ + kms_key_arn: str | None + """ + The ARN of the KMS key used to encrypt data associated with the capacity + provider. + """ + tags: Mapping[str, str] | None + """A list of tags to associate with the capacity provider.""" + propagate_tags: PropagateTags | PropagateTagsDict | None + """ + The tag propagation configuration for the capacity provider. Specifies + tags to apply to managed resources at launch. + """ + telemetry_config: ( + CapacityProviderTelemetryConfig | CapacityProviderTelemetryConfigDict | None + ) + """ + The telemetry configuration for the capacity provider. Specifies logging + settings for managed resources. + """ + @dataclass(kw_only=True) class CreateCapacityProviderOutput(_SerdeShape): """Dataclass for CreateCapacityProviderOutput structure.""" @@ -1155,6 +1621,21 @@ class CreateCodeSigningConfigInput(_SerdeShape): tags: dict[str, str] | None = ... """A list of tags to add to the code signing configuration.""" +class CreateCodeSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `CreateCodeSigningConfigInput`.""" + + description: str | None + """Descriptive name for this code signing configuration.""" + allowed_publishers: Required[AllowedPublishers | AllowedPublishersDict] + """Signing profiles for this code signing configuration.""" + code_signing_policies: CodeSigningPolicies | CodeSigningPoliciesDict | None + """ + The code signing policies define the actions to take if the validation + checks fail. + """ + tags: Mapping[str, str] | None + """A list of tags to add to the code signing configuration.""" + @dataclass(kw_only=True) class CreateCodeSigningConfigOutput(_SerdeShape): """Dataclass for CreateCodeSigningConfigOutput structure.""" @@ -1399,123 +1880,366 @@ class CreateEventSourceMappingInput(_SerdeShape): mode](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode). """ -@dataclass(kw_only=True) -class CreateEventSourceMappingOutput(_SerdeShape): - """ - A mapping between an Amazon Web Services resource and a Lambda function. - For details, see CreateEventSourceMapping. +class CreateEventSourceMappingInputDict(TypedDict, total=False): + """Dictionary form of `CreateEventSourceMappingInput`.""" + + event_source_arn: str | None """ + The Amazon Resource Name (ARN) of the event source. - uuid: str | None = ... - """The identifier of the event source mapping.""" - starting_position: str | None = ... + - **Amazon Kinesis** -- The ARN of the data stream or a stream consumer. + + - **Amazon DynamoDB Streams** -- The ARN of the stream. + + - **Amazon Simple Queue Service** -- The ARN of the queue. + + - **Amazon Managed Streaming for Apache Kafka** -- The ARN of the + cluster or the ARN of the VPC connection (for [cross-account event + source + mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc)). + + - **Amazon MQ** -- The ARN of the broker. + + - **Amazon DocumentDB** -- The ARN of the DocumentDB change stream. """ - The position in a stream from which to start reading. Required for - Amazon Kinesis and Amazon DynamoDB Stream event sources. `AT_TIMESTAMP` - is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon - MSK, and self-managed Apache Kafka. + function_name: Required[str] """ - starting_position_timestamp: datetime | None = ... + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `MyFunction`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Version or Alias ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`. + + - **Partial ARN** -- `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it's limited to 64 characters in length. """ - With `StartingPosition` set to `AT_TIMESTAMP`, the time from which to - start reading. `StartingPositionTimestamp` cannot be in the future. + enabled: bool | None """ - batch_size: int | None = ... + When true, the event source mapping is active. When false, Lambda pauses + polling and invocation. + + Default: True + """ + batch_size: int | None """ The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). - Default value: Varies by service. For Amazon SQS, the default is 10. For - all other services, the default is 100. + - **Amazon Kinesis** -- Default 100. Max 10,000. - Related setting: When you set `BatchSize` to a value greater than 10, - you must set `MaximumBatchingWindowInSeconds` to at least 1. - """ - maximum_batching_window_in_seconds: int | None = ... - """ - The maximum amount of time, in seconds, that Lambda spends gathering - records before invoking the function. You can configure - `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300 - seconds in increments of seconds. + - **Amazon DynamoDB Streams** -- Default 100. Max 10,000. - For streams and Amazon SQS event sources, the default batching window is - 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and - DocumentDB event sources, the default batching window is 500 ms. Note - that because you can only change `MaximumBatchingWindowInSeconds` in - increments of seconds, you cannot revert back to the 500 ms default - batching window after you have changed it. To restore the default - batching window, you must create a new event source mapping. + - **Amazon Simple Queue Service** -- Default 10. For standard queues the + max is 10,000. For FIFO queues the max is 10. - Related setting: For streams and Amazon SQS event sources, when you set - `BatchSize` to a value greater than 10, you must set - `MaximumBatchingWindowInSeconds` to at least 1. - """ - parallelization_factor: int | None = ... - """ - (Kinesis and DynamoDB Streams only) The number of batches to process - concurrently from each shard. The default value is 1. + - **Amazon Managed Streaming for Apache Kafka** -- Default 100. Max + 10,000. + + - **Self-managed Apache Kafka** -- Default 100. Max 10,000. + + - **Amazon MQ (ActiveMQ and RabbitMQ)** -- Default 100. Max 10,000. + + - **DocumentDB** -- Default 100. Max 10,000. """ - event_source_arn: str | None = ... - """The Amazon Resource Name (ARN) of the event source.""" - filter_criteria: FilterCriteria | None = ... + filter_criteria: FilterCriteria | FilterCriteriaDict | None """ An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see [Lambda event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). - - If filter criteria is encrypted, this field shows up as `null` in the - response of ListEventSourceMapping API calls. You can view this field in - plaintext in the response of GetEventSourceMapping and - DeleteEventSourceMapping calls if you have `kms:Decrypt` permissions for - the correct KMS key. - """ - filter_criteria_error: FilterCriteriaError | None = ... - """ - An object that contains details about an error related to filter - criteria encryption. """ - kms_key_arn: str | None = ... + kms_key_arn: str | None """ The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's [filter criteria](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics). + By default, Lambda does not encrypt your filter criteria object. Specify + this property to encrypt data using your own customer managed key. """ - metrics_config: EventSourceMappingMetricsConfig | None = ... + metrics_config: ( + EventSourceMappingMetricsConfig | EventSourceMappingMetricsConfigDict | None + ) """ The metrics configuration for your event source. For more information, see [Event source mapping metrics](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics). """ - logging_config: EventSourceMappingLoggingConfig | None = ... + logging_config: ( + EventSourceMappingLoggingConfig | EventSourceMappingLoggingConfigDict | None + ) """ (Amazon MSK, and self-managed Apache Kafka only) The logging configuration for your event source. For more information, see [Event source mapping logging](https://docs.aws.amazon.com/lambda/latest/dg/esm-logging.html). """ - scaling_config: ScalingConfig | None = ... + scaling_config: ScalingConfig | ScalingConfigDict | None """ (Amazon SQS only) The scaling configuration for the event source. For more information, see [Configuring maximum concurrency for Amazon SQS event sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency). """ - function_arn: str | None = ... - """The ARN of the Lambda function.""" - last_modified: datetime | None = ... + maximum_batching_window_in_seconds: int | None """ - The date that the event source mapping was last updated or that its - state changed. + The maximum amount of time, in seconds, that Lambda spends gathering + records before invoking the function. You can configure + `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300 + seconds in increments of seconds. + + For Kinesis, DynamoDB, and Amazon SQS event sources, the default + batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, + Amazon MQ, and DocumentDB event sources, the default batching window is + 500 ms. Note that because you can only change + `MaximumBatchingWindowInSeconds` in increments of seconds, you cannot + revert back to the 500 ms default batching window after you have changed + it. To restore the default batching window, you must create a new event + source mapping. + + Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, + when you set `BatchSize` to a value greater than 10, you must set + `MaximumBatchingWindowInSeconds` to at least 1. + + Not supported for Kafka event source mappings when `ConsumptionMode` is + `Queue`. """ - last_processing_result: str | None = ... - """The result of the event source mapping's last processing attempt.""" - state: str | None = ... + parallelization_factor: int | None """ - The state of the event source mapping. It can be one of the following: - `Creating`, `Enabling`, `Enabled`, `Disabling`, `Disabled`, `Updating`, - or `Deleting`. + (Kinesis and DynamoDB Streams only) The number of batches to process + from each shard concurrently. + """ + starting_position: str | None + """ + The position in a stream from which to start reading. Required for + Amazon Kinesis and Amazon DynamoDB Stream event sources. `AT_TIMESTAMP` + is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon + MSK, and self-managed Apache Kafka. + + Not supported for Kafka event source mappings when `ConsumptionMode` is + `Queue`. + """ + starting_position_timestamp: datetime | None + """ + With `StartingPosition` set to `AT_TIMESTAMP`, the time from which to + start reading. `StartingPositionTimestamp` cannot be in the future. + + Not supported for Kafka event source mappings when `ConsumptionMode` is + `Queue`. + """ + destination_config: DestinationConfig | DestinationConfigDict | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A + configuration object that specifies the destination of an event after + Lambda processes it. + """ + maximum_record_age_in_seconds: int | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + Discard records older than the specified age. The default value is + infinite (-1). + """ + bisect_batch_on_function_error: bool | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + If the function returns an error, split the batch in two and retry. + """ + maximum_retry_attempts: int | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + Discard records after the specified number of retries. The default value + is infinite (-1). When set to infinite (-1), failed records are retried + until the record expires. + + For Kafka `Stream` consumption mode, the default is `-1` (infinite + retries; capped at 10 when an on-failure destination is configured). For + Kafka `Queue` consumption mode, the default is `0`, and if no on-failure + destination is configured the Kafka broker performs retries. + """ + tags: Mapping[str, str] | None + """A list of tags to apply to the event source mapping.""" + tumbling_window_in_seconds: int | None + """ + (Kinesis and DynamoDB Streams only) The duration in seconds of a + processing window for DynamoDB and Kinesis Streams event sources. A + value of 0 seconds indicates no tumbling window. + """ + topics: Sequence[str] | None + """The name of the Kafka topic.""" + queues: Sequence[str] | None + """(MQ) The name of the Amazon MQ broker destination queue to consume.""" + source_access_configurations: ( + Sequence[SourceAccessConfiguration | SourceAccessConfigurationDict] | None + ) + """ + An array of authentication protocols or VPC components required to + secure your event source. + """ + self_managed_event_source: ( + SelfManagedEventSource | SelfManagedEventSourceDict | None + ) + """The self-managed Apache Kafka cluster to receive records from.""" + function_response_types: Sequence[str] | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and + Amazon SQS) A list of current response type enums applied to the event + source mapping. + """ + amazon_managed_kafka_event_source_config: ( + AmazonManagedKafkaEventSourceConfig + | AmazonManagedKafkaEventSourceConfigDict + | None + ) + """ + Specific configuration settings for an Amazon Managed Streaming for + Apache Kafka (Amazon MSK) event source. + """ + self_managed_kafka_event_source_config: ( + SelfManagedKafkaEventSourceConfig | SelfManagedKafkaEventSourceConfigDict | None + ) + """ + Specific configuration settings for a self-managed Apache Kafka event + source. + """ + document_db_event_source_config: ( + DocumentDBEventSourceConfig | DocumentDBEventSourceConfigDict | None + ) + """Specific configuration settings for a DocumentDB event source.""" + provisioned_poller_config: ( + ProvisionedPollerConfig | ProvisionedPollerConfigDict | None + ) + """ + (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The + provisioned mode configuration for the event source. For more + information, see [provisioned + mode](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode). + """ + +@dataclass(kw_only=True) +class CreateEventSourceMappingOutput(_SerdeShape): + """ + A mapping between an Amazon Web Services resource and a Lambda function. + For details, see CreateEventSourceMapping. + """ + + uuid: str | None = ... + """The identifier of the event source mapping.""" + starting_position: str | None = ... + """ + The position in a stream from which to start reading. Required for + Amazon Kinesis and Amazon DynamoDB Stream event sources. `AT_TIMESTAMP` + is supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon + MSK, and self-managed Apache Kafka. + """ + starting_position_timestamp: datetime | None = ... + """ + With `StartingPosition` set to `AT_TIMESTAMP`, the time from which to + start reading. `StartingPositionTimestamp` cannot be in the future. + """ + batch_size: int | None = ... + """ + The maximum number of records in each batch that Lambda pulls from your + stream or queue and sends to your function. Lambda passes all of the + records in the batch to the function in a single call, up to the payload + limit for synchronous invocation (6 MB). + + Default value: Varies by service. For Amazon SQS, the default is 10. For + all other services, the default is 100. + + Related setting: When you set `BatchSize` to a value greater than 10, + you must set `MaximumBatchingWindowInSeconds` to at least 1. + """ + maximum_batching_window_in_seconds: int | None = ... + """ + The maximum amount of time, in seconds, that Lambda spends gathering + records before invoking the function. You can configure + `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300 + seconds in increments of seconds. + + For streams and Amazon SQS event sources, the default batching window is + 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and + DocumentDB event sources, the default batching window is 500 ms. Note + that because you can only change `MaximumBatchingWindowInSeconds` in + increments of seconds, you cannot revert back to the 500 ms default + batching window after you have changed it. To restore the default + batching window, you must create a new event source mapping. + + Related setting: For streams and Amazon SQS event sources, when you set + `BatchSize` to a value greater than 10, you must set + `MaximumBatchingWindowInSeconds` to at least 1. + """ + parallelization_factor: int | None = ... + """ + (Kinesis and DynamoDB Streams only) The number of batches to process + concurrently from each shard. The default value is 1. + """ + event_source_arn: str | None = ... + """The Amazon Resource Name (ARN) of the event source.""" + filter_criteria: FilterCriteria | None = ... + """ + An object that defines the filter criteria that determine whether Lambda + should process an event. For more information, see [Lambda event + filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). + + If filter criteria is encrypted, this field shows up as `null` in the + response of ListEventSourceMapping API calls. You can view this field in + plaintext in the response of GetEventSourceMapping and + DeleteEventSourceMapping calls if you have `kms:Decrypt` permissions for + the correct KMS key. + """ + filter_criteria_error: FilterCriteriaError | None = ... + """ + An object that contains details about an error related to filter + criteria encryption. + """ + kms_key_arn: str | None = ... + """ + The ARN of the Key Management Service (KMS) customer managed key that + Lambda uses to encrypt your function's [filter + criteria](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics). + """ + metrics_config: EventSourceMappingMetricsConfig | None = ... + """ + The metrics configuration for your event source. For more information, + see [Event source mapping + metrics](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics). + """ + logging_config: EventSourceMappingLoggingConfig | None = ... + """ + (Amazon MSK, and self-managed Apache Kafka only) The logging + configuration for your event source. For more information, see [Event + source mapping + logging](https://docs.aws.amazon.com/lambda/latest/dg/esm-logging.html). + """ + scaling_config: ScalingConfig | None = ... + """ + (Amazon SQS only) The scaling configuration for the event source. For + more information, see [Configuring maximum concurrency for Amazon SQS + event + sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency). + """ + function_arn: str | None = ... + """The ARN of the Lambda function.""" + last_modified: datetime | None = ... + """ + The date that the event source mapping was last updated or that its + state changed. + """ + last_processing_result: str | None = ... + """The result of the event source mapping's last processing attempt.""" + state: str | None = ... + """ + The state of the event source mapping. It can be one of the following: + `Creating`, `Enabling`, `Enabled`, `Disabling`, `Disabled`, `Updating`, + or `Deleting`. """ state_transition_reason: str | None = ... """ @@ -1524,100 +2248,306 @@ class CreateEventSourceMappingOutput(_SerdeShape): """ destination_config: DestinationConfig | None = ... """ - (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A - configuration object that specifies the destination of an event after - Lambda processes it. + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A + configuration object that specifies the destination of an event after + Lambda processes it. + """ + topics: list[str] | None = ... + """The name of the Kafka topic.""" + queues: list[str] | None = ... + """ + (Amazon MQ) The name of the Amazon MQ broker destination queue to + consume. + """ + source_access_configurations: list[SourceAccessConfiguration] | None = ... + """ + An array of the authentication protocol, VPC components, or virtual host + to secure and define your event source. + """ + self_managed_event_source: SelfManagedEventSource | None = ... + """The self-managed Apache Kafka cluster for your event source.""" + maximum_record_age_in_seconds: int | None = ... + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + Discard records older than the specified age. The default value is -1, + which sets the maximum age to infinite. When the value is set to + infinite, Lambda never discards old records. + + Note: + The minimum valid value for maximum record age is 60s. Although values + less than 60 and greater than -1 fall within the parameter's absolute + range, they are not allowed + """ + bisect_batch_on_function_error: bool | None = ... + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + If the function returns an error, split the batch in two and retry. The + default value is false. + """ + maximum_retry_attempts: int | None = ... + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + Discard records after the specified number of retries. The default value + is -1, which sets the maximum number of retries to infinite. When + MaximumRetryAttempts is infinite, Lambda retries failed records until + the record expires in the event source. + """ + tumbling_window_in_seconds: int | None = ... + """ + (Kinesis and DynamoDB Streams only) The duration in seconds of a + processing window for DynamoDB and Kinesis Streams event sources. A + value of 0 seconds indicates no tumbling window. + """ + function_response_types: list[str] | None = ... + """ + (Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and + Amazon SQS) A list of current response type enums applied to the event + source mapping. + """ + amazon_managed_kafka_event_source_config: ( + AmazonManagedKafkaEventSourceConfig | None + ) = ... + """ + Specific configuration settings for an Amazon Managed Streaming for + Apache Kafka (Amazon MSK) event source. + """ + self_managed_kafka_event_source_config: ( + SelfManagedKafkaEventSourceConfig | None + ) = ... + """ + Specific configuration settings for a self-managed Apache Kafka event + source. + """ + document_db_event_source_config: DocumentDBEventSourceConfig | None = ... + """Specific configuration settings for a DocumentDB event source.""" + event_source_mapping_arn: str | None = ... + """The Amazon Resource Name (ARN) of the event source mapping.""" + provisioned_poller_config: ProvisionedPollerConfig | None = ... + """ + (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The + provisioned mode configuration for the event source. For more + information, see [provisioned + mode](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode). + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateFunctionInput(_SerdeShape): + """Dataclass for CreateFunctionInput structure.""" + + function_name: str | None = ... + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + runtime: str | None = ... + """ + The identifier of the function's + [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). + Runtime is required if the deployment package is a .zip file archive. + Specifying a runtime results in an error if you're deploying a function + using a container image. + + The following list includes deprecated runtimes. Lambda blocks creating + new functions and updating existing functions shortly after each runtime + is deprecated. For more information, see [Runtime use after + deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + + For a list of all currently supported runtimes, see [Supported + runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). + """ + role: str | None = ... + """The Amazon Resource Name (ARN) of the function's execution role.""" + handler: str | None = ... + """ + The name of the method within your code that Lambda calls to run your + function. Handler is required if the deployment package is a .zip file + archive. The format includes the file name. It can also include + namespaces and other qualifiers, depending on the runtime. For more + information, see [Lambda programming + model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). + """ + code: FunctionCode | None = ... + """The code for the function.""" + description: str | None = ... + """A description of the function.""" + timeout: int | None = ... + """ + The amount of time (in seconds) that Lambda allows a function to run + before stopping it. The default is 3 seconds, and the maximum allowed + value is 900 seconds. For functions using Lambda Managed Instances, + asynchronous invocations and event source mapping invocations (except + Amazon MQ and Amazon DocumentDB) support a maximum allowed value of + 5,400 seconds (90 minutes). For more information, see [Lambda execution + environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). + """ + memory_size: int | None = ... + """ + The amount of [memory available to the + function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) + at runtime. Increasing the function memory also increases its CPU + allocation. The default value is 128 MB. The value can be any multiple + of 1 MB. + """ + publish: bool = ... + """ + Set to true to publish the first version of the function during + creation. + """ + publish_to: str | None = ... + """Specifies where to publish the function version or configuration.""" + vpc_config: VpcConfig | None = ... + """ + For network connectivity to Amazon Web Services resources in a VPC, + specify a list of security groups and subnets in the VPC. When you + connect a function to a VPC, it can access resources and the internet + only through that VPC. For more information, see [Configuring a Lambda + function to access resources in a + VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + """ + package_type: str | None = ... + """ + The type of deployment package. Set to `Image` for container image and + set to `Zip` for .zip file archive. + """ + dead_letter_config: DeadLetterConfig | None = ... + """ + A dead-letter queue configuration that specifies the queue or topic + where Lambda sends asynchronous events when they fail processing. For + more information, see [Dead-letter + queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq). + """ + environment: Environment | None = ... + """ + Environment variables that are accessible from function code during + execution. + """ + kms_key_arn: str | None = ... + """ + The ARN of the Key Management Service (KMS) customer managed key that's + used to encrypt the following resources: + + - The function's [environment + variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + + - The function's [Lambda + SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) + snapshots. + + - When used with `SourceKMSKeyArn`, the unzipped version of the .zip + deployment package that's used for function invocations. For more + information, see [Specifying a customer managed key for + Lambda](https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption). + + - The optimized version of the container image that's used for function + invocations. Note that this is not the same key that's used to + protect your container image in the Amazon Elastic Container Registry + (Amazon ECR). For more information, see [Function + lifecycle](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle). + + If you don't provide a customer managed key, Lambda uses an [Amazon Web + Services owned + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) + or an [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). + """ + tracing_config: TracingConfig | None = ... + """ + Set `Mode` to `Active` to sample and trace a subset of incoming requests + with + [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html). """ - topics: list[str] | None = ... - """The name of the Kafka topic.""" - queues: list[str] | None = ... + tags: dict[str, str] | None = ... """ - (Amazon MQ) The name of the Amazon MQ broker destination queue to - consume. + A list of + [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to + apply to the function. """ - source_access_configurations: list[SourceAccessConfiguration] | None = ... + layers: list[str] | None = ... """ - An array of the authentication protocol, VPC components, or virtual host - to secure and define your event source. + A list of [function + layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) + to add to the function's execution environment. Specify each layer by + its ARN, including the version. """ - self_managed_event_source: SelfManagedEventSource | None = ... - """The self-managed Apache Kafka cluster for your event source.""" - maximum_record_age_in_seconds: int | None = ... + file_system_configs: list[FileSystemConfig] | None = ... """ - (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) - Discard records older than the specified age. The default value is -1, - which sets the maximum age to infinite. When the value is set to - infinite, Lambda never discards old records. - - Note: - The minimum valid value for maximum record age is 60s. Although values - less than 60 and greater than -1 fall within the parameter's absolute - range, they are not allowed + Connection settings for an Amazon EFS file system or an Amazon S3 Files + file system. """ - bisect_batch_on_function_error: bool | None = ... + code_signing_config_arn: str | None = ... """ - (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) - If the function returns an error, split the batch in two and retry. The - default value is false. + To enable code signing for this function, specify the ARN of a + code-signing configuration. A code-signing configuration includes a set + of signing profiles, which define the trusted publishers for this + function. """ - maximum_retry_attempts: int | None = ... + image_config: ImageConfig | None = ... """ - (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) - Discard records after the specified number of retries. The default value - is -1, which sets the maximum number of retries to infinite. When - MaximumRetryAttempts is infinite, Lambda retries failed records until - the record expires in the event source. + Container image [configuration + values](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) + that override the values in the container image Dockerfile. """ - tumbling_window_in_seconds: int | None = ... + architectures: list[str] | None = ... """ - (Kinesis and DynamoDB Streams only) The duration in seconds of a - processing window for DynamoDB and Kinesis Streams event sources. A - value of 0 seconds indicates no tumbling window. + The instruction set architecture that the function supports. Enter a + string array with one of the valid values (arm64 or x86_64). The default + value is `x86_64`. """ - function_response_types: list[str] | None = ... + ephemeral_storage: EphemeralStorage | None = ... """ - (Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and - Amazon SQS) A list of current response type enums applied to the event - source mapping. + The size of the function's `/tmp` directory in MB. The default value is + 512, but can be any whole number between 512 and 10,240 MB. For more + information, see [Configuring ephemeral storage + (console)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). """ - amazon_managed_kafka_event_source_config: ( - AmazonManagedKafkaEventSourceConfig | None - ) = ... + snap_start: SnapStart | None = ... """ - Specific configuration settings for an Amazon Managed Streaming for - Apache Kafka (Amazon MSK) event source. + The function's + [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + setting. """ - self_managed_kafka_event_source_config: ( - SelfManagedKafkaEventSourceConfig | None - ) = ... + logging_config: LoggingConfig | None = ... + """The function's Amazon CloudWatch Logs configuration settings.""" + tenancy_config: TenancyConfig | None = ... """ - Specific configuration settings for a self-managed Apache Kafka event - source. + Configuration for multi-tenant applications that use Lambda functions. + Defines tenant isolation settings and resource allocations. Required for + functions supporting multiple tenants. """ - document_db_event_source_config: DocumentDBEventSourceConfig | None = ... - """Specific configuration settings for a DocumentDB event source.""" - event_source_mapping_arn: str | None = ... - """The Amazon Resource Name (ARN) of the event source mapping.""" - provisioned_poller_config: ProvisionedPollerConfig | None = ... + capacity_provider_config: CapacityProviderConfig | None = ... """ - (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The - provisioned mode configuration for the event source. For more - information, see [provisioned - mode](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode). + Configuration for the capacity provider that manages compute resources + for Lambda functions. """ - response_metadata: ResponseMetadata = ... + durable_config: DurableConfig | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Configuration settings for durable functions. Enables creating functions + with durability that can remember their state and continue execution + even after interruptions. """ -@dataclass(kw_only=True) -class CreateFunctionInput(_SerdeShape): - """Dataclass for CreateFunctionInput structure.""" +class CreateFunctionInputDict(TypedDict, total=False): + """Dictionary form of `CreateFunctionInput`.""" - function_name: str | None = ... + function_name: Required[str] """ The name or ARN of the Lambda function. @@ -1633,7 +2563,7 @@ class CreateFunctionInput(_SerdeShape): The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. """ - runtime: str | None = ... + runtime: str | None """ The identifier of the function's [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). @@ -1649,9 +2579,9 @@ class CreateFunctionInput(_SerdeShape): For a list of all currently supported runtimes, see [Supported runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). """ - role: str | None = ... + role: Required[str] """The Amazon Resource Name (ARN) of the function's execution role.""" - handler: str | None = ... + handler: str | None """ The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file @@ -1660,11 +2590,11 @@ class CreateFunctionInput(_SerdeShape): information, see [Lambda programming model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). """ - code: FunctionCode | None = ... + code: Required[FunctionCode | FunctionCodeDict] """The code for the function.""" - description: str | None = ... + description: str | None """A description of the function.""" - timeout: int | None = ... + timeout: int | None """ The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds, and the maximum allowed @@ -1674,7 +2604,7 @@ class CreateFunctionInput(_SerdeShape): 5,400 seconds (90 minutes). For more information, see [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). """ - memory_size: int | None = ... + memory_size: int | None """ The amount of [memory available to the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) @@ -1682,14 +2612,14 @@ class CreateFunctionInput(_SerdeShape): allocation. The default value is 128 MB. The value can be any multiple of 1 MB. """ - publish: bool = ... + publish: bool | None """ Set to true to publish the first version of the function during creation. """ - publish_to: str | None = ... + publish_to: str | None """Specifies where to publish the function version or configuration.""" - vpc_config: VpcConfig | None = ... + vpc_config: VpcConfig | VpcConfigDict | None """ For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you @@ -1698,24 +2628,24 @@ class CreateFunctionInput(_SerdeShape): function to access resources in a VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). """ - package_type: str | None = ... + package_type: str | None """ The type of deployment package. Set to `Image` for container image and set to `Zip` for .zip file archive. """ - dead_letter_config: DeadLetterConfig | None = ... + dead_letter_config: DeadLetterConfig | DeadLetterConfigDict | None """ A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see [Dead-letter queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq). """ - environment: Environment | None = ... + environment: Environment | EnvironmentDict | None """ Environment variables that are accessible from function code during execution. """ - kms_key_arn: str | None = ... + kms_key_arn: str | None """ The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources: @@ -1744,76 +2674,76 @@ class CreateFunctionInput(_SerdeShape): or an [Amazon Web Services managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). """ - tracing_config: TracingConfig | None = ... + tracing_config: TracingConfig | TracingConfigDict | None """ Set `Mode` to `Active` to sample and trace a subset of incoming requests with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html). """ - tags: dict[str, str] | None = ... + tags: Mapping[str, str] | None """ A list of [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function. """ - layers: list[str] | None = ... + layers: Sequence[str] | None """ A list of [function layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add to the function's execution environment. Specify each layer by its ARN, including the version. """ - file_system_configs: list[FileSystemConfig] | None = ... + file_system_configs: Sequence[FileSystemConfig | FileSystemConfigDict] | None """ Connection settings for an Amazon EFS file system or an Amazon S3 Files file system. """ - code_signing_config_arn: str | None = ... + code_signing_config_arn: str | None """ To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function. """ - image_config: ImageConfig | None = ... + image_config: ImageConfig | ImageConfigDict | None """ Container image [configuration values](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) that override the values in the container image Dockerfile. """ - architectures: list[str] | None = ... + architectures: Sequence[str] | None """ The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is `x86_64`. """ - ephemeral_storage: EphemeralStorage | None = ... + ephemeral_storage: EphemeralStorage | EphemeralStorageDict | None """ The size of the function's `/tmp` directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see [Configuring ephemeral storage (console)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). """ - snap_start: SnapStart | None = ... + snap_start: SnapStart | SnapStartDict | None """ The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting. """ - logging_config: LoggingConfig | None = ... + logging_config: LoggingConfig | LoggingConfigDict | None """The function's Amazon CloudWatch Logs configuration settings.""" - tenancy_config: TenancyConfig | None = ... + tenancy_config: TenancyConfig | TenancyConfigDict | None """ Configuration for multi-tenant applications that use Lambda functions. Defines tenant isolation settings and resource allocations. Required for functions supporting multiple tenants. """ - capacity_provider_config: CapacityProviderConfig | None = ... + capacity_provider_config: CapacityProviderConfig | CapacityProviderConfigDict | None """ Configuration for the capacity provider that manages compute resources for Lambda functions. """ - durable_config: DurableConfig | None = ... + durable_config: DurableConfig | DurableConfigDict | None """ Configuration settings for durable functions. Enables creating functions with durability that can remember their state and continue execution @@ -2057,6 +2987,55 @@ class CreateFunctionUrlConfigInput(_SerdeShape): size is 200 MB. """ +class CreateFunctionUrlConfigInputDict(TypedDict, total=False): + """Dictionary form of `CreateFunctionUrlConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """The alias name.""" + auth_type: Required[str] + """ + The type of authentication that your function URL uses. Set to `AWS_IAM` + if you want to restrict access to authenticated users only. Set to + `NONE` if you want to bypass IAM authentication to create a public + endpoint. For more information, see [Control access to Lambda function + URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + """ + cors: Cors | CorsDict | None + """ + The [cross-origin resource sharing + (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings + for your function URL. + """ + invoke_mode: str | None + """ + Use one of the following options: + + - `BUFFERED` -- This is the default option. Lambda invokes your function + using the `Invoke` API operation. Invocation results are available + when the payload is complete. The maximum payload size is 6 MB. + + - `RESPONSE_STREAM` -- Your function streams payload results as they + become available. Lambda invokes your function using the + `InvokeWithResponseStream` API operation. The maximum response payload + size is 200 MB. + """ + @dataclass(kw_only=True) class CreateFunctionUrlConfigOutput(_SerdeShape): """Dataclass for CreateFunctionUrlConfigOutput structure.""" @@ -2119,6 +3098,15 @@ class DeadLetterConfig(_SerdeShape): topic. """ +class DeadLetterConfigDict(TypedDict, total=False): + """Dictionary form of `DeadLetterConfig`.""" + + target_arn: str | None + """ + The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS + topic. + """ + @dataclass(kw_only=True) class DeleteAliasInput(_SerdeShape): """Dataclass for DeleteAliasInput structure.""" @@ -2142,6 +3130,28 @@ class DeleteAliasInput(_SerdeShape): name: str | None = ... """The name of the alias.""" +class DeleteAliasInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAliasInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + name: Required[str] + """The name of the alias.""" + @dataclass(kw_only=True) class DeleteAliasOutput(_SerdeShape): """Dataclass for DeleteAliasOutput structure.""" @@ -2161,6 +3171,12 @@ class DeleteCapacityProviderInput(_SerdeShape): capacity_provider_name: str | None = ... """The name of the capacity provider to delete.""" +class DeleteCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCapacityProviderInput`.""" + + capacity_provider_name: Required[str] + """The name of the capacity provider to delete.""" + @dataclass(kw_only=True) class DeleteCapacityProviderOutput(_SerdeShape): """Dataclass for DeleteCapacityProviderOutput structure.""" @@ -2182,6 +3198,12 @@ class DeleteCodeSigningConfigInput(_SerdeShape): code_signing_config_arn: str | None = ... """The The Amazon Resource Name (ARN) of the code signing configuration.""" +class DeleteCodeSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCodeSigningConfigInput`.""" + + code_signing_config_arn: Required[str] + """The The Amazon Resource Name (ARN) of the code signing configuration.""" + @dataclass(kw_only=True) class DeleteCodeSigningConfigOutput(_SerdeShape): """Dataclass for DeleteCodeSigningConfigOutput structure.""" @@ -2201,6 +3223,12 @@ class DeleteEventSourceMappingInput(_SerdeShape): uuid: str | None = ... """The identifier of the event source mapping.""" +class DeleteEventSourceMappingInputDict(TypedDict, total=False): + """Dictionary form of `DeleteEventSourceMappingInput`.""" + + uuid: Required[str] + """The identifier of the event source mapping.""" + @dataclass(kw_only=True) class DeleteEventSourceMappingOutput(_SerdeShape): """ @@ -2436,6 +3464,26 @@ class DeleteFunctionCodeSigningConfigInput(_SerdeShape): the function name, it is limited to 64 characters in length. """ +class DeleteFunctionCodeSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFunctionCodeSigningConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + @dataclass(kw_only=True) class DeleteFunctionCodeSigningConfigOutput(_SerdeShape): """Dataclass for DeleteFunctionCodeSigningConfigOutput structure.""" @@ -2452,7 +3500,27 @@ class DeleteFunctionCodeSigningConfigOutput(_SerdeShape): class DeleteFunctionConcurrencyInput(_SerdeShape): """Dataclass for DeleteFunctionConcurrencyInput structure.""" - function_name: str | None = ... + function_name: str | None = ... + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + +class DeleteFunctionConcurrencyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFunctionConcurrencyInput`.""" + + function_name: Required[str] """ The name or ARN of the Lambda function. @@ -2506,6 +3574,30 @@ class DeleteFunctionEventInvokeConfigInput(_SerdeShape): qualifier: str | None = ... """A version number or alias name.""" +class DeleteFunctionEventInvokeConfigInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFunctionEventInvokeConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** - `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** - `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """A version number or alias name.""" + @dataclass(kw_only=True) class DeleteFunctionEventInvokeConfigOutput(_SerdeShape): """Dataclass for DeleteFunctionEventInvokeConfigOutput structure.""" @@ -2546,6 +3638,33 @@ class DeleteFunctionInput(_SerdeShape): references. """ +class DeleteFunctionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFunctionInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function or version. + + **Name formats** + + - **Function name** -- `my-function` (name-only), `my-function:1` (with + version). + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """ + Specify a version to delete. You can't delete a version that an alias + references. + """ + @dataclass(kw_only=True) class DeleteFunctionOutput(_SerdeShape): """Dataclass for DeleteFunctionOutput structure.""" @@ -2583,6 +3702,28 @@ class DeleteFunctionUrlConfigInput(_SerdeShape): qualifier: str | None = ... """The alias name.""" +class DeleteFunctionUrlConfigInputDict(TypedDict, total=False): + """Dictionary form of `DeleteFunctionUrlConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """The alias name.""" + @dataclass(kw_only=True) class DeleteFunctionUrlConfigOutput(_SerdeShape): """Dataclass for DeleteFunctionUrlConfigOutput structure.""" @@ -2604,6 +3745,14 @@ class DeleteLayerVersionInput(_SerdeShape): version_number: int | None = ... """The version number.""" +class DeleteLayerVersionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLayerVersionInput`.""" + + layer_name: Required[str] + """The name or Amazon Resource Name (ARN) of the layer.""" + version_number: int | None + """The version number.""" + @dataclass(kw_only=True) class DeleteLayerVersionOutput(_SerdeShape): """Dataclass for DeleteLayerVersionOutput structure.""" @@ -2639,6 +3788,28 @@ class DeleteProvisionedConcurrencyConfigInput(_SerdeShape): qualifier: str | None = ... """The version number or alias name.""" +class DeleteProvisionedConcurrencyConfigInputDict(TypedDict, total=False): + """Dictionary form of `DeleteProvisionedConcurrencyConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: Required[str] + """The version number or alias name.""" + @dataclass(kw_only=True) class DeleteProvisionedConcurrencyConfigOutput(_SerdeShape): """Dataclass for DeleteProvisionedConcurrencyConfigOutput structure.""" @@ -2670,6 +3841,24 @@ class DeleteResourcePolicyInput(_SerdeShape): ID, use the GetResourcePolicy operation. """ +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Lambda resource you want to delete + the policy from. You can use a qualified or an unqualified ARN. The + value must be a complete ARN, and the operation does not accept wildcard + characters. + """ + revision_id: str | None + """ + The revision ID that the existing policy must match for the deletion to + proceed. If the revision ID doesn't match, the operation fails with a + `PreconditionFailedException` error. To retrieve the current revision + ID, use the GetResourcePolicy operation. + """ + @dataclass(kw_only=True) class DeleteResourcePolicyOutput(_SerdeShape): """Dataclass for DeleteResourcePolicyOutput structure.""" @@ -2698,6 +3887,17 @@ class DestinationConfig(_SerdeShape): on_failure: OnFailure | None = ... """The destination configuration for failed invocations.""" +class DestinationConfigDict(TypedDict, total=False): + """Dictionary form of `DestinationConfig`.""" + + on_success: OnSuccess | OnSuccessDict | None + """ + The destination configuration for successful invocations. Not supported + in `CreateEventSourceMapping` or `UpdateEventSourceMapping`. + """ + on_failure: OnFailure | OnFailureDict | None + """The destination configuration for failed invocations.""" + class DirectS3Read(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -2723,6 +3923,25 @@ class DocumentDBEventSourceConfig(_SerdeShape): changes. """ +class DocumentDBEventSourceConfigDict(TypedDict, total=False): + """Dictionary form of `DocumentDBEventSourceConfig`.""" + + database_name: str | None + """The name of the database to consume within the DocumentDB cluster.""" + collection_name: str | None + """ + The name of the collection to consume within the database. If you do not + specify a collection, Lambda consumes all collections. + """ + full_document: str | None + """ + Determines what DocumentDB sends to your event stream during document + update operations. If set to UpdateLookup, DocumentDB sends a delta + describing the changes, along with a copy of the entire document. + Otherwise, DocumentDB sends only a partial document that contains the + changes. + """ + @dataclass(kw_only=True) class DurableConfig(_SerdeShape): """ @@ -2753,6 +3972,28 @@ class DurableConfig(_SerdeShape): individual function invocations. """ +class DurableConfigDict(TypedDict, total=False): + """Dictionary form of `DurableConfig`.""" + + kms_key_arn: str | None + """ + The ARN of the Key Management Service (KMS) customer managed key that is + used to encrypt your durable execution's payload data, including input, + output, and error payloads. + """ + retention_period_in_days: int | None + """ + The number of days to retain execution history after a durable execution + completes. After this period, execution history is no longer available + through the GetDurableExecutionHistory API. + """ + execution_timeout: int | None + """ + The maximum time (in seconds) that a durable execution can run before + timing out. This timeout applies to the entire durable execution, not + individual function invocations. + """ + @dataclass(kw_only=True) class DurableExecutionAlreadyStartedException(ServiceError, _SerdeShape): """ @@ -2940,6 +4181,16 @@ class Environment(_SerdeShape): variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). """ +class EnvironmentDict(TypedDict, total=False): + """Dictionary form of `Environment`.""" + + variables: Mapping[str, str] | None + """ + Environment variable key-value pairs. For more information, see [Using + Lambda environment + variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). + """ + @dataclass(kw_only=True) class EnvironmentError(_SerdeShape): """Error messages for environment variables that couldn't be applied.""" @@ -2974,6 +4225,12 @@ class EphemeralStorage(_SerdeShape): size: int """The size of the function's `/tmp` directory.""" +class EphemeralStorageDict(TypedDict, total=False): + """Dictionary form of `EphemeralStorage`.""" + + size: Required[int] + """The size of the function's `/tmp` directory.""" + @dataclass(kw_only=True) class ErrorObject(_SerdeShape): """An object that contains error information.""" @@ -2987,6 +4244,18 @@ class ErrorObject(_SerdeShape): stack_trace: list[str] | None = ... """Stack trace information for the error.""" +class ErrorObjectDict(TypedDict, total=False): + """Dictionary form of `ErrorObject`.""" + + error_message: str | None + """A human-readable error message.""" + error_type: str | None + """The error type.""" + error_data: str | None + """Machine-readable error data.""" + stack_trace: Sequence[str] | None + """Stack trace information for the error.""" + @dataclass(kw_only=True) class Event(_SerdeShape): """An event that occurred during the execution of a durable function.""" @@ -3329,6 +4598,18 @@ class EventSourceMappingLoggingConfig(_SerdeShape): logging](https://docs.aws.amazon.com/lambda/latest/dg/esm-logging.html). """ +class EventSourceMappingLoggingConfigDict(TypedDict, total=False): + """Dictionary form of `EventSourceMappingLoggingConfig`.""" + + system_log_level: str | None + """ + The log level you want your event source mapping to use. Lambda event + poller only sends system logs at the selected level of detail and lower, + where `DEBUG` is the highest level and `WARN` is the lowest. For more + information about these metrics, see [Event source mapping + logging](https://docs.aws.amazon.com/lambda/latest/dg/esm-logging.html). + """ + class EventSourceMappingMetric(UnknownEnumMixin, StrEnum): EVENT_COUNT = "EventCount" ERROR_COUNT = "ErrorCount" @@ -3361,6 +4642,28 @@ class EventSourceMappingMetricsConfig(_SerdeShape): metrics](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics). """ +class EventSourceMappingMetricsConfigDict(TypedDict, total=False): + """Dictionary form of `EventSourceMappingMetricsConfig`.""" + + metrics: Sequence[str] | None + """ + The metrics you want your event source mapping to produce, including + `EventCount`, `ErrorCount`, `KafkaMetrics`. + + - `EventCount` to receive metrics related to the number of events + processed by your event source mapping. + + - `ErrorCount` (Amazon MSK and self-managed Apache Kafka) to receive + metrics related to the number of errors in your event source mapping + processing. + + - `KafkaMetrics` (Amazon MSK and self-managed Apache Kafka) to receive + metrics related to the Kafka consumers from your event source mapping. + + For more information about these metrics, see [Event source mapping + metrics](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics). + """ + class EventSourceMappingSystemLogLevel(UnknownEnumMixin, StrEnum): DEBUG = "DEBUG" INFO = "INFO" @@ -3536,6 +4839,28 @@ class FileSystemConfig(_SerdeShape): `InvalidParameterException`. """ +class FileSystemConfigDict(TypedDict, total=False): + """Dictionary form of `FileSystemConfig`.""" + + arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon EFS or Amazon S3 Files + access point that provides access to the file system. + """ + local_mount_path: Required[str] + """ + The path where the function can access the file system, starting with + `/mnt/`. + """ + s3_files_config: S3FilesConfig | S3FilesConfigDict | None + """ + The configuration for how your function accesses data on an Amazon S3 + file system. Valid only when the file system access point ARN is an + Amazon S3 Files access point. If you specify a different access point + type (for example, Amazon Elastic File System), the operation returns an + `InvalidParameterException`. + """ + @dataclass(kw_only=True) class Filter(_SerdeShape): """ @@ -3550,6 +4875,16 @@ class Filter(_SerdeShape): syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax). """ +class FilterDict(TypedDict, total=False): + """Dictionary form of `Filter`.""" + + pattern: str | None + """ + A filter pattern. For more information on the syntax of a filter + pattern, see [Filter rule + syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax). + """ + @dataclass(kw_only=True) class FilterCriteria(_SerdeShape): """An object that contains the filters for an event source.""" @@ -3557,6 +4892,12 @@ class FilterCriteria(_SerdeShape): filters: list[Filter] | None = ... """A list of filters.""" +class FilterCriteriaDict(TypedDict, total=False): + """Dictionary form of `FilterCriteria`.""" + + filters: Sequence[Filter | FilterDict] | None + """A list of filters.""" + @dataclass(kw_only=True) class FilterCriteriaError(_SerdeShape): """ @@ -3569,39 +4910,84 @@ class FilterCriteriaError(_SerdeShape): The KMS exception that resulted from filter criteria encryption or decryption. """ - message: str | None = ... - """The error message.""" - -class FullDocument(UnknownEnumMixin, StrEnum): - UPDATE_LOOKUP = "UpdateLookup" - DEFAULT = "Default" - -@dataclass(kw_only=True) -class FunctionCode(_SerdeShape): + message: str | None = ... + """The error message.""" + +class FullDocument(UnknownEnumMixin, StrEnum): + UPDATE_LOOKUP = "UpdateLookup" + DEFAULT = "Default" + +@dataclass(kw_only=True) +class FunctionCode(_SerdeShape): + """ + The code for the Lambda function. You can either specify an object in + Amazon S3, upload a .zip file archive deployment package directly, or + specify the URI of a container image. + """ + + zip_file: bytes | None = ... + """ + The base64-encoded contents of the deployment package. Amazon Web + Services SDK and CLI clients handle the encoding for you. + """ + s3_bucket: str | None = ... + """ + An Amazon S3 bucket in the same Amazon Web Services Region as your + function. The bucket can be in a different Amazon Web Services account. + """ + s3_key: str | None = ... + """The Amazon S3 key of the deployment package.""" + s3_object_version: str | None = ... + """ + For versioned objects, the version of the deployment package object to + use. + """ + s3_object_storage_mode: str | None = ... + """ + Specifies how the deployment package is stored. Valid values: + + - `COPY` (default) -- Uploads a copy of your deployment package to + Lambda. + + - `REFERENCE` -- Lambda references the deployment package from the + specified Amazon S3 bucket. + """ + image_uri: str | None = ... + """ + URI of a [container + image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) + in the Amazon ECR registry. + """ + source_kms_key_arn: str | None = ... """ - The code for the Lambda function. You can either specify an object in - Amazon S3, upload a .zip file archive deployment package directly, or - specify the URI of a container image. + The ARN of the Key Management Service (KMS) customer managed key that's + used to encrypt your function's .zip deployment package. If you don't + provide a customer managed key, Lambda uses an [Amazon Web Services + owned + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk). """ - zip_file: bytes | None = ... +class FunctionCodeDict(TypedDict, total=False): + """Dictionary form of `FunctionCode`.""" + + zip_file: bytes | None """ The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you. """ - s3_bucket: str | None = ... + s3_bucket: str | None """ An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. """ - s3_key: str | None = ... + s3_key: str | None """The Amazon S3 key of the deployment package.""" - s3_object_version: str | None = ... + s3_object_version: str | None """ For versioned objects, the version of the deployment package object to use. """ - s3_object_storage_mode: str | None = ... + s3_object_storage_mode: str | None """ Specifies how the deployment package is stored. Valid values: @@ -3611,13 +4997,13 @@ class FunctionCode(_SerdeShape): - `REFERENCE` -- Lambda references the deployment package from the specified Amazon S3 bucket. """ - image_uri: str | None = ... + image_uri: str | None """ URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry. """ - source_kms_key_arn: str | None = ... + source_kms_key_arn: str | None """ The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't @@ -3911,6 +5297,20 @@ class FunctionScalingConfig(_SerdeShape): the function. """ +class FunctionScalingConfigDict(TypedDict, total=False): + """Dictionary form of `FunctionScalingConfig`.""" + + min_execution_environments: int | None + """ + The minimum number of execution environments to maintain for the + function. + """ + max_execution_environments: int | None + """ + The maximum number of execution environments that can be provisioned for + the function. + """ + class FunctionUrlAuthType(UnknownEnumMixin, StrEnum): NONE = "NONE" AWS_IAM = "AWS_IAM" @@ -4005,6 +5405,9 @@ class FunctionVersionsPerCapacityProviderLimitExceededException( class GetAccountSettingsInput(_SerdeShape): """Dataclass for GetAccountSettingsInput structure.""" +class GetAccountSettingsInputDict(TypedDict, total=False): + """Dictionary form of `GetAccountSettingsInput`.""" + @dataclass(kw_only=True) class GetAccountSettingsOutput(_SerdeShape): """Dataclass for GetAccountSettingsOutput structure.""" @@ -4044,6 +5447,28 @@ class GetAliasInput(_SerdeShape): name: str | None = ... """The name of the alias.""" +class GetAliasInputDict(TypedDict, total=False): + """Dictionary form of `GetAliasInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + name: Required[str] + """The name of the alias.""" + @dataclass(kw_only=True) class GetAliasOutput(_SerdeShape): """ @@ -4082,6 +5507,12 @@ class GetCapacityProviderInput(_SerdeShape): capacity_provider_name: str | None = ... """The name of the capacity provider to retrieve.""" +class GetCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `GetCapacityProviderInput`.""" + + capacity_provider_name: Required[str] + """The name of the capacity provider to retrieve.""" + @dataclass(kw_only=True) class GetCapacityProviderOutput(_SerdeShape): """Dataclass for GetCapacityProviderOutput structure.""" @@ -4106,6 +5537,12 @@ class GetCodeSigningConfigInput(_SerdeShape): code_signing_config_arn: str | None = ... """The The Amazon Resource Name (ARN) of the code signing configuration.""" +class GetCodeSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetCodeSigningConfigInput`.""" + + code_signing_config_arn: Required[str] + """The The Amazon Resource Name (ARN) of the code signing configuration.""" + @dataclass(kw_only=True) class GetCodeSigningConfigOutput(_SerdeShape): """Dataclass for GetCodeSigningConfigOutput structure.""" @@ -4152,6 +5589,37 @@ class GetDurableExecutionHistoryInput(_SerdeShape): order (oldest first). """ +class GetDurableExecutionHistoryInputDict(TypedDict, total=False): + """Dictionary form of `GetDurableExecutionHistoryInput`.""" + + durable_execution_arn: Required[str] + """The Amazon Resource Name (ARN) of the durable execution.""" + include_execution_data: bool | None + """ + Specifies whether to include execution data such as step results and + callback payloads in the history events. Set to `true` to include data, + or `false` to exclude it for a more compact response. The default is + `true`. + """ + max_items: int | None + """ + The maximum number of history events to return per call. You can use + `Marker` to retrieve additional pages of results. The default is 100 and + the maximum allowed is 1000. A value of 0 uses the default. + """ + marker: str | None + """ + If `NextMarker` was returned from a previous request, use this value to + retrieve the next page of results. Each pagination token expires after + 24 hours. + """ + reverse_order: bool | None + """ + When set to `true`, returns the history events in reverse chronological + order (newest first). By default, events are returned in chronological + order (oldest first). + """ + @dataclass(kw_only=True) class GetDurableExecutionHistoryOutput(_SerdeShape): """ @@ -4194,6 +5662,19 @@ class GetDurableExecutionInput(_SerdeShape): value is set to `true`. """ +class GetDurableExecutionInputDict(TypedDict, total=False): + """Dictionary form of `GetDurableExecutionInput`.""" + + durable_execution_arn: Required[str] + """The Amazon Resource Name (ARN) of the durable execution.""" + include_execution_data: bool | None + """ + Specifies whether to include execution data such as input payload, + result, and error information in the response. Set to `false` for a more + compact response that includes only execution metadata. The default + value is set to `true`. + """ + @dataclass(kw_only=True) class GetDurableExecutionOutput(_SerdeShape): """ @@ -4303,6 +5784,30 @@ class GetDurableExecutionStateInput(_SerdeShape): the maximum allowed is 1000. A value of 0 uses the default. """ +class GetDurableExecutionStateInputDict(TypedDict, total=False): + """Dictionary form of `GetDurableExecutionStateInput`.""" + + durable_execution_arn: Required[str] + """The Amazon Resource Name (ARN) of the durable execution.""" + checkpoint_token: Required[str] + """ + A checkpoint token that identifies the current state of the execution. + This token is provided by the Lambda runtime and ensures that state + retrieval is consistent with the current execution context. + """ + marker: str | None + """ + If `NextMarker` was returned from a previous request, use this value to + retrieve the next page of operations. Each pagination token expires + after 24 hours. + """ + max_items: int | None + """ + The maximum number of operations to return per call. You can use + `Marker` to retrieve additional pages of results. The default is 100 and + the maximum allowed is 1000. A value of 0 uses the default. + """ + @dataclass(kw_only=True) class GetDurableExecutionStateOutput(_SerdeShape): """ @@ -4337,6 +5842,12 @@ class GetEventSourceMappingInput(_SerdeShape): uuid: str | None = ... """The identifier of the event source mapping.""" +class GetEventSourceMappingInputDict(TypedDict, total=False): + """Dictionary form of `GetEventSourceMappingInput`.""" + + uuid: Required[str] + """The identifier of the event source mapping.""" + @dataclass(kw_only=True) class GetEventSourceMappingOutput(_SerdeShape): """ @@ -4572,6 +6083,26 @@ class GetFunctionCodeSigningConfigInput(_SerdeShape): the function name, it is limited to 64 characters in length. """ +class GetFunctionCodeSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionCodeSigningConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + @dataclass(kw_only=True) class GetFunctionCodeSigningConfigOutput(_SerdeShape): """Dataclass for GetFunctionCodeSigningConfigOutput structure.""" @@ -4623,6 +6154,26 @@ class GetFunctionConcurrencyInput(_SerdeShape): the function name, it is limited to 64 characters in length. """ +class GetFunctionConcurrencyInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionConcurrencyInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + @dataclass(kw_only=True) class GetFunctionConcurrencyOutput(_SerdeShape): """Dataclass for GetFunctionConcurrencyOutput structure.""" @@ -4668,6 +6219,33 @@ class GetFunctionConfigurationInput(_SerdeShape): the function. """ +class GetFunctionConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionConfigurationInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** -- `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """ + Specify a version or alias to get details about a published version of + the function. + """ + @dataclass(kw_only=True) class GetFunctionConfigurationOutput(_SerdeShape): """Details about a function's configuration.""" @@ -4880,6 +6458,30 @@ class GetFunctionEventInvokeConfigInput(_SerdeShape): qualifier: str | None = ... """A version number or alias name.""" +class GetFunctionEventInvokeConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionEventInvokeConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** - `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** - `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """A version number or alias name.""" + @dataclass(kw_only=True) class GetFunctionEventInvokeConfigOutput(_SerdeShape): """Dataclass for GetFunctionEventInvokeConfigOutput structure.""" @@ -4952,6 +6554,33 @@ class GetFunctionInput(_SerdeShape): the function. """ +class GetFunctionInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** -- `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """ + Specify a version or alias to get details about a published version of + the function. + """ + @dataclass(kw_only=True) class GetFunctionOutput(_SerdeShape): """Dataclass for GetFunctionOutput structure.""" @@ -4992,6 +6621,12 @@ class GetFunctionRecursionConfigInput(_SerdeShape): function_name: str | None = ... """The name of the function.""" +class GetFunctionRecursionConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionRecursionConfigInput`.""" + + function_name: Required[str] + """The name of the function.""" + @dataclass(kw_only=True) class GetFunctionRecursionConfigOutput(_SerdeShape): """Dataclass for GetFunctionRecursionConfigOutput structure.""" @@ -5030,6 +6665,17 @@ class GetFunctionScalingConfigInput(_SerdeShape): published version of the function. """ +class GetFunctionScalingConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionScalingConfigInput`.""" + + function_name: Required[str] + """The name or ARN of the Lambda function.""" + qualifier: Required[str] + """ + Specify a version or alias to get the scaling configuration for a + published version of the function. + """ + @dataclass(kw_only=True) class GetFunctionScalingConfigOutput(_SerdeShape): """Dataclass for GetFunctionScalingConfigOutput structure.""" @@ -5074,6 +6720,28 @@ class GetFunctionUrlConfigInput(_SerdeShape): qualifier: str | None = ... """The alias name.""" +class GetFunctionUrlConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetFunctionUrlConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """The alias name.""" + @dataclass(kw_only=True) class GetFunctionUrlConfigOutput(_SerdeShape): """Dataclass for GetFunctionUrlConfigOutput structure.""" @@ -5134,6 +6802,12 @@ class GetLayerVersionByArnInput(_SerdeShape): arn: str | None = ... """The ARN of the layer version.""" +class GetLayerVersionByArnInputDict(TypedDict, total=False): + """Dictionary form of `GetLayerVersionByArnInput`.""" + + arn: Required[str] + """The ARN of the layer version.""" + @dataclass(kw_only=True) class GetLayerVersionByArnOutput(_SerdeShape): """Dataclass for GetLayerVersionByArnOutput structure.""" @@ -5188,6 +6862,14 @@ class GetLayerVersionInput(_SerdeShape): version_number: int | None = ... """The version number.""" +class GetLayerVersionInputDict(TypedDict, total=False): + """Dictionary form of `GetLayerVersionInput`.""" + + layer_name: Required[str] + """The name or Amazon Resource Name (ARN) of the layer.""" + version_number: int | None + """The version number.""" + @dataclass(kw_only=True) class GetLayerVersionOutput(_SerdeShape): """Dataclass for GetLayerVersionOutput structure.""" @@ -5237,9 +6919,17 @@ class GetLayerVersionOutput(_SerdeShape): class GetLayerVersionPolicyInput(_SerdeShape): """Dataclass for GetLayerVersionPolicyInput structure.""" - layer_name: str | None = ... + layer_name: str | None = ... + """The name or Amazon Resource Name (ARN) of the layer.""" + version_number: int | None = ... + """The version number.""" + +class GetLayerVersionPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetLayerVersionPolicyInput`.""" + + layer_name: Required[str] """The name or Amazon Resource Name (ARN) of the layer.""" - version_number: int | None = ... + version_number: int | None """The version number.""" @dataclass(kw_only=True) @@ -5283,6 +6973,30 @@ class GetPolicyInput(_SerdeShape): qualifier: str | None = ... """Specify a version or alias to get the policy for that resource.""" +class GetPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** -- `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """Specify a version or alias to get the policy for that resource.""" + @dataclass(kw_only=True) class GetPolicyOutput(_SerdeShape): """Dataclass for GetPolicyOutput structure.""" @@ -5322,6 +7036,28 @@ class GetProvisionedConcurrencyConfigInput(_SerdeShape): qualifier: str | None = ... """The version number or alias name.""" +class GetProvisionedConcurrencyConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetProvisionedConcurrencyConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: Required[str] + """The version number or alias name.""" + @dataclass(kw_only=True) class GetProvisionedConcurrencyConfigOutput(_SerdeShape): """Dataclass for GetProvisionedConcurrencyConfigOutput structure.""" @@ -5369,6 +7105,17 @@ class GetResourcePolicyInput(_SerdeShape): wildcard characters. """ +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Lambda resource you want to + retrieve the policy for. You can use a qualified or an unqualified ARN. + The value must be a complete ARN, and the operation does not accept + wildcard characters. + """ + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Dataclass for GetResourcePolicyOutput structure.""" @@ -5416,6 +7163,32 @@ class GetRuntimeManagementConfigInput(_SerdeShape): `$LATEST` version is returned. """ +class GetRuntimeManagementConfigInputDict(TypedDict, total=False): + """Dictionary form of `GetRuntimeManagementConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """ + Specify a version of the function. This can be `$LATEST` or a published + version number. If no value is specified, the configuration for the + `$LATEST` version is returned. + """ + @dataclass(kw_only=True) class GetRuntimeManagementConfigOutput(_SerdeShape): """Dataclass for GetRuntimeManagementConfigOutput structure.""" @@ -5456,6 +7229,19 @@ class ImageConfig(_SerdeShape): working_directory: str | None = ... """Specifies the working directory.""" +class ImageConfigDict(TypedDict, total=False): + """Dictionary form of `ImageConfig`.""" + + entry_point: Sequence[str] | None + """ + Specifies the entry point to their application, which is typically the + location of the runtime executable. + """ + command: Sequence[str] | None + """Specifies parameters that you want to pass in with ENTRYPOINT.""" + working_directory: str | None + """Specifies the working directory.""" + @dataclass(kw_only=True) class ImageConfigError(_SerdeShape): """Error response to `GetFunctionConfiguration`.""" @@ -5497,6 +7283,25 @@ class InstanceRequirements(_SerdeShape): even if they meet other requirements. """ +class InstanceRequirementsDict(TypedDict, total=False): + """Dictionary form of `InstanceRequirements`.""" + + architectures: Sequence[str] | None + """ + A list of supported CPU architectures for compute instances. Valid + values include `x86_64` and `arm64`. + """ + allowed_instance_types: Sequence[str] | None + """ + A list of EC2 instance types that the capacity provider is allowed to + use. If not specified, all compatible instance types are allowed. + """ + excluded_instance_types: Sequence[str] | None + """ + A list of EC2 instance types that the capacity provider should not use, + even if they meet other requirements. + """ + @dataclass(kw_only=True) class InvalidCodeSignatureException(ServiceError, _SerdeShape): """ @@ -5651,6 +7456,57 @@ class InvokeAsyncInput(_SerdeShape): invoke_args: StreamingBlob | None = ... """The JSON that you want to provide to your Lambda function as input.""" +class InvokeAsyncInputDict(TypedDict, total=False): + """ + Dictionary form of `InvokeAsyncInput` that either client accepts. Its + streaming body is one a sync client can send. Use + `AsyncInvokeAsyncInputDict` for an async stream. + """ + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + invoke_args: Required[SyncStreamingBlob] + """The JSON that you want to provide to your Lambda function as input.""" + +class AsyncInvokeAsyncInputDict(TypedDict, total=False): + """ + Dictionary form of `InvokeAsyncInput` for the async client. Its + streaming body may also be an async stream. + """ + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + invoke_args: Required[StreamingBlob] + """The JSON that you want to provide to your Lambda function as input.""" + @dataclass(kw_only=True) class InvokeAsyncOutput(_SerdeShape): """ @@ -5748,6 +7604,85 @@ class InvokeInput(_SerdeShape): tenant_id: str | None = ... """The identifier of the tenant in a multi-tenant Lambda function.""" +class InvokeInputDict(TypedDict, total=False): + """Dictionary form of `InvokeInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** -- `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + invocation_type: str | None + """ + Choose from the following options. + + - `RequestResponse` (default) -- Invoke the function synchronously. Keep + the connection open until the function returns a response or times + out. The API response includes the function response and additional + data. + + - `Event` -- Invoke the function asynchronously. Send events that fail + multiple times to the function's dead-letter queue (if one is + configured). The API response only includes a status code. + + - `DryRun` -- Validate parameter values and verify that the user or role + has permission to invoke the function. + """ + log_type: str | None + """ + Set to `Tail` to include the execution log in the response. Applies to + synchronously invoked functions only. + """ + client_context: str | None + """ + Up to 3,583 bytes of base64-encoded data about the invoking client to + pass to the function in the context object. Lambda passes the + `ClientContext` object to your function for synchronous invocations + only. + """ + durable_execution_name: str | None + """ + A unique name for the durable execution. If you invoke a durable + function using a name that already exists with the same payload, Lambda + returns the existing execution instead of creating a duplicate. If the + payload differs, Lambda returns a + `DurableExecutionAlreadyStartedException` error. + + If not specified, Lambda generates a unique identifier automatically. + For more information, see [Execution + names](https://docs.aws.amazon.com/lambda/latest/dg/durable-execution-idempotency.html#durable-idempotency-execution-names). + """ + payload: bytes | None + """ + The JSON that you want to provide to your Lambda function as input. The + maximum payload size is 6 MB for synchronous invocations and 1 MB for + asynchronous invocations. + + You can enter the JSON directly. For example, + `--payload '{ "key": "value" }'`. You can also specify a file path. For + example, `--payload file://payload.json`. + """ + qualifier: str | None + """ + Specify a version or alias to invoke a published version of the + function. + """ + tenant_id: str | None + """The identifier of the tenant in a multi-tenant Lambda function.""" + class InvokeMode(UnknownEnumMixin, StrEnum): BUFFERED = "BUFFERED" RESPONSE_STREAM = "RESPONSE_STREAM" @@ -5798,22 +7733,76 @@ class InvokeResponseStreamUpdate(_SerdeShape): payload: bytes | None = ... """Data returned by your Lambda function.""" -@dataclass(kw_only=True) -class InvokeWithResponseStreamCompleteEvent(_SerdeShape): - """A response confirming that the event stream is complete.""" +@dataclass(kw_only=True) +class InvokeWithResponseStreamCompleteEvent(_SerdeShape): + """A response confirming that the event stream is complete.""" + + error_code: str | None = ... + """An error code.""" + error_details: str | None = ... + """The details of any returned error.""" + log_result: str | None = ... + """The last 4 KB of the execution log, which is base64-encoded.""" + +@dataclass(kw_only=True) +class InvokeWithResponseStreamInput(_SerdeShape): + """Dataclass for InvokeWithResponseStreamInput structure.""" + + function_name: str | None = ... + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + log_type: str | None = ... + """ + Set to `Tail` to include the execution log in the response. Applies to + synchronously invoked functions only. + """ + client_context: str | None = ... + """ + Up to 3,583 bytes of base64-encoded data about the invoking client to + pass to the function in the context object. + """ + qualifier: str | None = ... + """The alias name.""" + payload: bytes | None = ... + """ + The JSON that you want to provide to your Lambda function as input. + + You can enter the JSON directly. For example, + `--payload '{ "key": "value" }'`. You can also specify a file path. For + example, `--payload file://payload.json`. + """ + tenant_id: str | None = ... + """The identifier of the tenant in a multi-tenant Lambda function.""" + invocation_type: str | None = ... + """ + Use one of the following options: + + - `RequestResponse` (default) -- Invoke the function synchronously. Keep + the connection open until the function returns a response or times + out. The API operation response includes the function response and + additional data. - error_code: str | None = ... - """An error code.""" - error_details: str | None = ... - """The details of any returned error.""" - log_result: str | None = ... - """The last 4 KB of the execution log, which is base64-encoded.""" + - `DryRun` -- Validate parameter values and verify that the IAM user or + role has permission to invoke the function. + """ -@dataclass(kw_only=True) -class InvokeWithResponseStreamInput(_SerdeShape): - """Dataclass for InvokeWithResponseStreamInput structure.""" +class InvokeWithResponseStreamInputDict(TypedDict, total=False): + """Dictionary form of `InvokeWithResponseStreamInput`.""" - function_name: str | None = ... + function_name: Required[str] """ The name or ARN of the Lambda function. @@ -5829,19 +7818,19 @@ class InvokeWithResponseStreamInput(_SerdeShape): The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. """ - log_type: str | None = ... + log_type: str | None """ Set to `Tail` to include the execution log in the response. Applies to synchronously invoked functions only. """ - client_context: str | None = ... + client_context: str | None """ Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. """ - qualifier: str | None = ... + qualifier: str | None """The alias name.""" - payload: bytes | None = ... + payload: bytes | None """ The JSON that you want to provide to your Lambda function as input. @@ -5849,9 +7838,9 @@ class InvokeWithResponseStreamInput(_SerdeShape): `--payload '{ "key": "value" }'`. You can also specify a file path. For example, `--payload file://payload.json`. """ - tenant_id: str | None = ... + tenant_id: str | None """The identifier of the tenant in a multi-tenant Lambda function.""" - invocation_type: str | None = ... + invocation_type: str | None """ Use one of the following options: @@ -5977,6 +7966,37 @@ class KafkaSchemaRegistryAccessConfig(_SerdeShape): your schema registry. """ +class KafkaSchemaRegistryAccessConfigDict(TypedDict, total=False): + """Dictionary form of `KafkaSchemaRegistryAccessConfig`.""" + + type: str | None + """ + The type of authentication Lambda uses to access your schema registry. + + - `BASIC_AUTH` -- The Secrets Manager ARN of your secret key used for + basic authentication with your Confluent schema registry. + + - `CLIENT_CERTIFICATE_TLS_AUTH` -- The Secrets Manager ARN of your + secret key containing the certificate chain (X.509 PEM), private key + (PKCS#8 PEM), and private key password (optional) used for mutual TLS + authentication with your Confluent schema registry. + + - `SERVER_ROOT_CA_CERTIFICATE` -- The Secrets Manager ARN of your secret + key containing the root CA certificate (X.509 PEM) used for TLS + encryption with your Confluent schema registry. + + - `OAUTHBEARER_AUTH` -- The Secrets Manager ARN of your secret key + containing the OAuth 2.0 credentials that Lambda uses to acquire an + access token for your Confluent schema registry. For the contents of + the secret, see [Configuring the OAuth + secret](https://docs.aws.amazon.com/lambda/latest/dg/kafka-cluster-auth.html#smaa-auth-oauth-secret). + """ + uri: str | None + """ + The URI of the secret (Secrets Manager secret ARN) to authenticate with + your schema registry. + """ + class KafkaSchemaRegistryAuthType(UnknownEnumMixin, StrEnum): BASIC_AUTH = "BASIC_AUTH" CLIENT_CERTIFICATE_TLS_AUTH = "CLIENT_CERTIFICATE_TLS_AUTH" @@ -6020,6 +8040,47 @@ class KafkaSchemaRegistryConfig(_SerdeShape): registry. """ +class KafkaSchemaRegistryConfigDict(TypedDict, total=False): + """Dictionary form of `KafkaSchemaRegistryConfig`.""" + + schema_registry_uri: str | None + """ + The URI for your schema registry. The correct URI format depends on the + type of schema registry you're using. + + - For Glue schema registries, use the ARN of the registry. + + - For Confluent schema registries, use the URL of the registry. + """ + event_record_format: str | None + """ + The record format that Lambda delivers to your function after schema + validation. + + - Choose `JSON` to have Lambda deliver the record to your function as a + standard JSON object. + + - Choose `SOURCE` to have Lambda deliver the record to your function in + its original source format. Lambda removes all schema metadata, such + as the schema ID, before sending the record to your function. + """ + access_configs: ( + Sequence[KafkaSchemaRegistryAccessConfig | KafkaSchemaRegistryAccessConfigDict] + | None + ) + """ + An array of access configuration objects that tell Lambda how to + authenticate with your schema registry. + """ + schema_validation_configs: ( + Sequence[KafkaSchemaValidationConfig | KafkaSchemaValidationConfigDict] | None + ) + """ + An array of schema validation configuration objects, which tell Lambda + the message attributes you want to validate and filter using your schema + registry. + """ + class KafkaSchemaValidationAttribute(UnknownEnumMixin, StrEnum): KEY = "KEY" VALUE = "VALUE" @@ -6039,6 +8100,16 @@ class KafkaSchemaValidationConfig(_SerdeShape): deserializes the selected message attributes. """ +class KafkaSchemaValidationConfigDict(TypedDict, total=False): + """Dictionary form of `KafkaSchemaValidationConfig`.""" + + attribute: str | None + """ + The attributes you want your schema registry to validate and filter for. + If you selected `JSON` as the `EventRecordFormat`, Lambda also + deserializes the selected message attributes. + """ + @dataclass(kw_only=True) class KMSAccessDeniedException(ServiceError, _SerdeShape): """ @@ -6124,6 +8195,22 @@ class LambdaManagedInstancesCapacityProviderConfig(_SerdeShape): environments. """ +class LambdaManagedInstancesCapacityProviderConfigDict(TypedDict, total=False): + """Dictionary form of `LambdaManagedInstancesCapacityProviderConfig`.""" + + capacity_provider_arn: Required[str] + """The Amazon Resource Name (ARN) of the capacity provider.""" + per_execution_environment_max_concurrency: int | None + """ + The maximum number of concurrent execution environments that can run on + each compute instance. + """ + execution_environment_memory_gi_b_per_v_cpu: float | None + """ + The amount of memory in GiB allocated per vCPU for execution + environments. + """ + class LastUpdateStatus(UnknownEnumMixin, StrEnum): SUCCESSFUL = "Successful" FAILED = "Failed" @@ -6227,6 +8314,30 @@ class LayerVersionContentInput(_SerdeShape): SDK and Amazon Web Services CLI clients handle the encoding for you. """ +class LayerVersionContentInputDict(TypedDict, total=False): + """Dictionary form of `LayerVersionContentInput`.""" + + s3_bucket: str | None + """The Amazon S3 bucket of the layer archive.""" + s3_key: str | None + """The Amazon S3 key of the layer archive.""" + s3_object_version: str | None + """For versioned objects, the version of the layer archive object to use.""" + s3_object_storage_mode: str | None + """ + Specifies how the layer archive is stored. Valid values: + + - `COPY` (default) -- Uploads a copy of your layer archive to Lambda. + + - `REFERENCE` -- Lambda references the layer archive from the specified + Amazon S3 bucket. + """ + zip_file: bytes | None + """ + The base64-encoded contents of the layer archive. Amazon Web Services + SDK and Amazon Web Services CLI clients handle the encoding for you. + """ + @dataclass(kw_only=True) class LayerVersionContentOutput(_SerdeShape): """ @@ -6317,6 +8428,38 @@ class ListAliasesInput(_SerdeShape): max_items: int | None = ... """Limit the number of aliases returned.""" +class ListAliasesInputDict(TypedDict, total=False): + """Dictionary form of `ListAliasesInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + function_version: str | None + """ + Specify a function version to only list aliases that invoke that + version. + """ + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """Limit the number of aliases returned.""" + @dataclass(kw_only=True) class ListAliasesOutput(_SerdeShape): """Dataclass for ListAliasesOutput structure.""" @@ -6347,6 +8490,19 @@ class ListCapacityProvidersInput(_SerdeShape): max_items: int | None = ... """The maximum number of capacity providers to return.""" +class ListCapacityProvidersInputDict(TypedDict, total=False): + """Dictionary form of `ListCapacityProvidersInput`.""" + + state: str | None + """Filter capacity providers by their current state.""" + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """The maximum number of capacity providers to return.""" + @dataclass(kw_only=True) class ListCapacityProvidersOutput(_SerdeShape): """Dataclass for ListCapacityProvidersOutput structure.""" @@ -6375,6 +8531,17 @@ class ListCodeSigningConfigsInput(_SerdeShape): max_items: int | None = ... """Maximum number of items to return.""" +class ListCodeSigningConfigsInputDict(TypedDict, total=False): + """Dictionary form of `ListCodeSigningConfigsInput`.""" + + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """Maximum number of items to return.""" + @dataclass(kw_only=True) class ListCodeSigningConfigsOutput(_SerdeShape): """Dataclass for ListCodeSigningConfigsOutput structure.""" @@ -6430,6 +8597,44 @@ class ListDurableExecutionsByFunctionInput(_SerdeShape): max_items: int = ... """Maximum number of executions to return (1-1000). Default is 100.""" +class ListDurableExecutionsByFunctionInputDict(TypedDict, total=False): + """Dictionary form of `ListDurableExecutionsByFunctionInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. You can specify a function name, + a partial ARN, or a full ARN. + """ + qualifier: str | None + """ + The function version to filter executions by. If you don't specify a + qualifier, this operation returns executions across all versions of the + Lambda function. + """ + durable_execution_name: str | None + """ + Filter executions by name. Only executions with names that matches this + string are returned. + """ + statuses: Sequence[str] | None + """ + Filter executions by status. Valid values: RUNNING, SUCCEEDED, FAILED, + TIMED_OUT, STOPPED. + """ + started_after: datetime | None + """Filter executions that started after this timestamp (ISO 8601 format).""" + started_before: datetime | None + """Filter executions that started before this timestamp (ISO 8601 format).""" + reverse_order: bool | None + """ + Set to true to return results in chronological order (oldest first). + Default is false. + """ + marker: str | None + """Pagination token from a previous request to continue retrieving results.""" + max_items: int | None + """Maximum number of executions to return (1-1000). Default is 100.""" + @dataclass(kw_only=True) class ListDurableExecutionsByFunctionOutput(_SerdeShape): """ @@ -6503,6 +8708,56 @@ class ListEventSourceMappingsInput(_SerdeShape): even if you set the number higher. """ +class ListEventSourceMappingsInputDict(TypedDict, total=False): + """Dictionary form of `ListEventSourceMappingsInput`.""" + + event_source_arn: str | None + """ + The Amazon Resource Name (ARN) of the event source. + + - **Amazon Kinesis** -- The ARN of the data stream or a stream consumer. + + - **Amazon DynamoDB Streams** -- The ARN of the stream. + + - **Amazon Simple Queue Service** -- The ARN of the queue. + + - **Amazon Managed Streaming for Apache Kafka** -- The ARN of the + cluster or the ARN of the VPC connection (for [cross-account event + source + mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc)). + + - **Amazon MQ** -- The ARN of the broker. + + - **Amazon DocumentDB** -- The ARN of the DocumentDB change stream. + """ + function_name: str | None + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `MyFunction`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Version or Alias ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`. + + - **Partial ARN** -- `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it's limited to 64 characters in length. + """ + marker: str | None + """A pagination token returned by a previous call.""" + max_items: int | None + """ + The maximum number of event source mappings to return. Note that + ListEventSourceMappings returns a maximum of 100 items in each response, + even if you set the number higher. + """ + @dataclass(kw_only=True) class ListEventSourceMappingsOutput(_SerdeShape): """Dataclass for ListEventSourceMappingsOutput structure.""" @@ -6550,6 +8805,33 @@ class ListFunctionEventInvokeConfigsInput(_SerdeShape): max_items: int | None = ... """The maximum number of configurations to return.""" +class ListFunctionEventInvokeConfigsInputDict(TypedDict, total=False): + """Dictionary form of `ListFunctionEventInvokeConfigsInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `my-function`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** - `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """The maximum number of configurations to return.""" + @dataclass(kw_only=True) class ListFunctionEventInvokeConfigsOutput(_SerdeShape): """Dataclass for ListFunctionEventInvokeConfigsOutput structure.""" diff --git a/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/models_1.pyi b/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/models_1.pyi index 522a5b69c..e7bb7c581 100644 --- a/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/models_1.pyi +++ b/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/models_1.pyi @@ -1,54 +1,82 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin from ..models import ( AliasRoutingConfiguration, + AliasRoutingConfigurationDict, AllowedPublishers, + AllowedPublishersDict, AmazonManagedKafkaEventSourceConfig, + AmazonManagedKafkaEventSourceConfigDict, CallbackDetails, CallbackOptions, + CallbackOptionsDict, CapacityProvider, CapacityProviderConfig, + CapacityProviderConfigDict, CapacityProviderScalingConfig, + CapacityProviderScalingConfigDict, CapacityProviderTelemetryConfig, + CapacityProviderTelemetryConfigDict, ChainedInvokeDetails, ChainedInvokeOptions, + ChainedInvokeOptionsDict, CodeSigningConfig, CodeSigningPolicies, + CodeSigningPoliciesDict, ContextDetails, ContextOptions, + ContextOptionsDict, Cors, + CorsDict, DeadLetterConfig, + DeadLetterConfigDict, DestinationConfig, + DestinationConfigDict, DocumentDBEventSourceConfig, + DocumentDBEventSourceConfigDict, DurableConfig, + DurableConfigDict, Environment, + EnvironmentDict, EnvironmentResponse, EphemeralStorage, + EphemeralStorageDict, ErrorObject, + ErrorObjectDict, EventError, EventResult, EventSourceMappingLoggingConfig, + EventSourceMappingLoggingConfigDict, EventSourceMappingMetricsConfig, + EventSourceMappingMetricsConfigDict, ExecutionDetails, FileSystemConfig, + FileSystemConfigDict, FilterCriteria, + FilterCriteriaDict, FilterCriteriaError, FunctionConfiguration, FunctionScalingConfig, + FunctionScalingConfigDict, FunctionUrlConfig, FunctionVersionsByCapacityProviderListItem, ImageConfig, + ImageConfigDict, ImageConfigResponse, KafkaSchemaRegistryConfig, + KafkaSchemaRegistryConfigDict, Layer, LayerVersionContentInput, + LayerVersionContentInputDict, LayerVersionContentOutput, LayerVersionsListItem, LayersListItem, @@ -70,6 +98,19 @@ class ListFunctionsByCodeSigningConfigInput(_SerdeShape): max_items: int | None = ... """Maximum number of items to return.""" +class ListFunctionsByCodeSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `ListFunctionsByCodeSigningConfigInput`.""" + + code_signing_config_arn: Required[str] + """The The Amazon Resource Name (ARN) of the code signing configuration.""" + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """Maximum number of items to return.""" + @dataclass(kw_only=True) class ListFunctionsByCodeSigningConfigOutput(_SerdeShape): """Dataclass for ListFunctionsByCodeSigningConfigOutput structure.""" @@ -115,6 +156,34 @@ class ListFunctionsInput(_SerdeShape): you set the number higher. """ +class ListFunctionsInputDict(TypedDict, total=False): + """Dictionary form of `ListFunctionsInput`.""" + + master_region: str | None + """ + For Lambda@Edge functions, the Amazon Web Services Region of the master + function. For example, `us-east-1` filters the list of functions to + include only Lambda@Edge functions replicated from a master function in + US East (N. Virginia). If specified, you must set `FunctionVersion` to + `ALL`. + """ + function_version: str | None + """ + Set to `ALL` to include entries for all published versions of each + function. + """ + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """ + The maximum number of functions to return in the response. Note that + `ListFunctions` returns a maximum of 50 items in each response, even if + you set the number higher. + """ + @dataclass(kw_only=True) class ListFunctionsOutput(_SerdeShape): """A list of Lambda functions.""" @@ -163,6 +232,37 @@ class ListFunctionUrlConfigsInput(_SerdeShape): even if you set the number higher. """ +class ListFunctionUrlConfigsInputDict(TypedDict, total=False): + """Dictionary form of `ListFunctionUrlConfigsInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """ + The maximum number of function URLs to return in the response. Note that + `ListFunctionUrlConfigs` returns a maximum of 50 items in each response, + even if you set the number higher. + """ + @dataclass(kw_only=True) class ListFunctionUrlConfigsOutput(_SerdeShape): """Dataclass for ListFunctionUrlConfigsOutput structure.""" @@ -193,6 +293,19 @@ class ListFunctionVersionsByCapacityProviderInput(_SerdeShape): max_items: int | None = ... """The maximum number of function versions to return in the response.""" +class ListFunctionVersionsByCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `ListFunctionVersionsByCapacityProviderInput`.""" + + capacity_provider_name: Required[str] + """The name of the capacity provider to list function versions for.""" + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """The maximum number of function versions to return in the response.""" + @dataclass(kw_only=True) class ListFunctionVersionsByCapacityProviderOutput(_SerdeShape): """Dataclass for ListFunctionVersionsByCapacityProviderOutput structure.""" @@ -236,6 +349,30 @@ class ListLayersInput(_SerdeShape): max_items: int | None = ... """The maximum number of layers to return.""" +class ListLayersInputDict(TypedDict, total=False): + """Dictionary form of `ListLayersInput`.""" + + compatible_architecture: str | None + """ + The compatible [instruction set + architecture](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html). + """ + compatible_runtime: str | None + """ + A runtime identifier. + + The following list includes deprecated runtimes. For more information, + see [Runtime use after + deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + + For a list of all currently supported runtimes, see [Supported + runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). + """ + marker: str | None + """A pagination token returned by a previous call.""" + max_items: int | None + """The maximum number of layers to return.""" + @dataclass(kw_only=True) class ListLayersOutput(_SerdeShape): """Dataclass for ListLayersOutput structure.""" @@ -282,6 +419,32 @@ class ListLayerVersionsInput(_SerdeShape): max_items: int | None = ... """The maximum number of versions to return.""" +class ListLayerVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListLayerVersionsInput`.""" + + compatible_architecture: str | None + """ + The compatible [instruction set + architecture](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html). + """ + compatible_runtime: str | None + """ + A runtime identifier. + + The following list includes deprecated runtimes. For more information, + see [Runtime use after + deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + + For a list of all currently supported runtimes, see [Supported + runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). + """ + layer_name: Required[str] + """The name or Amazon Resource Name (ARN) of the layer.""" + marker: str | None + """A pagination token returned by a previous call.""" + max_items: int | None + """The maximum number of versions to return.""" + @dataclass(kw_only=True) class ListLayerVersionsOutput(_SerdeShape): """Dataclass for ListLayerVersionsOutput structure.""" @@ -329,6 +492,33 @@ class ListProvisionedConcurrencyConfigsInput(_SerdeShape): max_items: int | None = ... """Specify a number to limit the number of configurations returned.""" +class ListProvisionedConcurrencyConfigsInputDict(TypedDict, total=False): + """Dictionary form of `ListProvisionedConcurrencyConfigsInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """Specify a number to limit the number of configurations returned.""" + @dataclass(kw_only=True) class ListProvisionedConcurrencyConfigsOutput(_SerdeShape): """Dataclass for ListProvisionedConcurrencyConfigsOutput structure.""" @@ -357,6 +547,15 @@ class ListTagsInput(_SerdeShape): support adding tags to function aliases or versions. """ +class ListTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsInput`.""" + + resource: Required[str] + """ + The resource's Amazon Resource Name (ARN). Note: Lambda does not + support adding tags to function aliases or versions. + """ + @dataclass(kw_only=True) class ListTagsOutput(_SerdeShape): """Dataclass for ListTagsOutput structure.""" @@ -403,6 +602,37 @@ class ListVersionsByFunctionInput(_SerdeShape): even if you set the number higher. """ +class ListVersionsByFunctionInputDict(TypedDict, total=False): + """Dictionary form of `ListVersionsByFunctionInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + marker: str | None + """ + Specify the pagination token that's returned by a previous request to + retrieve the next page of results. + """ + max_items: int | None + """ + The maximum number of versions to return. Note that + `ListVersionsByFunction` returns a maximum of 50 items in each response, + even if you set the number higher. + """ + @dataclass(kw_only=True) class ListVersionsByFunctionOutput(_SerdeShape): """Dataclass for ListVersionsByFunctionOutput structure.""" @@ -454,6 +684,36 @@ class LoggingConfig(_SerdeShape): existing log group or enter a new log group name. """ +class LoggingConfigDict(TypedDict, total=False): + """Dictionary form of `LoggingConfig`.""" + + log_format: str | None + """ + The format in which Lambda sends your function's application and system + logs to CloudWatch. Select between plain text and structured JSON. + """ + application_log_level: str | None + """ + Set this property to filter the application logs for your function that + Lambda sends to CloudWatch. Lambda only sends application logs at the + selected level of detail and lower, where `TRACE` is the highest level + and `FATAL` is the lowest. + """ + system_log_level: str | None + """ + Set this property to filter the system logs for your function that + Lambda sends to CloudWatch. Lambda only sends system logs at the + selected level of detail and lower, where `DEBUG` is the highest level + and `WARN` is the lowest. + """ + log_group: str | None + """ + The name of the Amazon CloudWatch log group the function sends logs to. + By default, Lambda functions send logs to a default log group named + `/aws/lambda/`. To use a different log group, enter an + existing log group or enter a new log group name. + """ + class LogType(UnknownEnumMixin, StrEnum): NONE = "None" TAIL = "Tail" @@ -533,6 +793,42 @@ class OnFailure(_SerdeShape): bucket as the destination. """ +class OnFailureDict(TypedDict, total=False): + """Dictionary form of `OnFailure`.""" + + destination: str | None + """ + The Amazon Resource Name (ARN) of the destination resource. + + To retain records of failed invocations from + [Kinesis](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html), + [DynamoDB](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html), + [self-managed Apache + Kafka](https://docs.aws.amazon.com/lambda/latest/dg/kafka-on-failure.html), + or [Amazon + MSK](https://docs.aws.amazon.com/lambda/latest/dg/kafka-on-failure.html), + you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 + bucket, or Kafka topic as the destination. + + Note: + Amazon SNS destinations have a message size limit of 256 KB. If the + combined size of the function request and response payload exceeds the + limit, Lambda will drop the payload when sending `OnFailure` event to + the destination. For details on this behavior, refer to [Retaining + records of asynchronous + invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html). + + To retain records of failed invocations from + [Kinesis](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html), + [DynamoDB](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html), + [self-managed + Kafka](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination) + or [Amazon + MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination), + you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 + bucket as the destination. + """ + @dataclass(kw_only=True) class OnSuccess(_SerdeShape): """ @@ -561,6 +857,22 @@ class OnSuccess(_SerdeShape): invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html). """ +class OnSuccessDict(TypedDict, total=False): + """Dictionary form of `OnSuccess`.""" + + destination: str | None + """ + The Amazon Resource Name (ARN) of the destination resource. + + Note: + Amazon SNS destinations have a message size limit of 256 KB. If the + combined size of the function request and response payload exceeds the + limit, Lambda will drop the payload when sending `OnFailure` event to + the destination. For details on this behavior, refer to [Retaining + records of asynchronous + invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html). + """ + @dataclass(kw_only=True) class Operation(_SerdeShape): """Information about an operation within a durable execution.""" @@ -682,32 +994,79 @@ class OperationUpdate(_SerdeShape): executions, including retry settings and timeout configuration. """ -class PackageType(UnknownEnumMixin, StrEnum): - ZIP = "Zip" - IMAGE = "Image" +class OperationUpdateDict(TypedDict, total=False): + """Dictionary form of `OperationUpdate`.""" -@dataclass(kw_only=True) -class PolicyLengthExceededException(ServiceError, _SerdeShape): + id: Required[str] + """The unique identifier for this operation.""" + parent_id: str | None """ - The permissions policy for the resource is too large. For more - information, see [Lambda - quotas](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html). + The unique identifier of the parent operation, if this operation is + running within a child context. """ - - type: str | None = ... - response_metadata: ResponseMetadata = ... + name: str | None + """The customer-provided name for this operation.""" + type: Required[str] + """The type of operation to update.""" + sub_type: str | None + """The subtype of the operation, providing additional categorization.""" + action: Required[str] + """The action to take on the operation.""" + payload: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The payload for successful operations. The maximum payload size is 6 MB + for synchronous `EXECUTION` operations (RequestResponse invocationType), + and 1 MB for asynchronous `EXECUTION` (Event invocationType), + `CHAINED_INVOKE`, `CONTEXT`, `STEP`, `WAIT`, and `CALLBACK` operations. """ - -@dataclass(kw_only=True) -class PreconditionFailedException(ServiceError, _SerdeShape): + error: ErrorObject | ErrorObjectDict | None """ - The RevisionId provided does not match the latest RevisionId for the - Lambda function or alias. + The error information for failed operations. The combined size of all + error fields is limited to 1 MB. + """ + context_options: ContextOptions | ContextOptionsDict | None + """Options for context operations.""" + step_options: StepOptions | StepOptionsDict | None + """Options for step operations.""" + wait_options: WaitOptions | WaitOptionsDict | None + """Options for wait operations.""" + callback_options: CallbackOptions | CallbackOptionsDict | None + """ + Configuration options for callback operations in durable executions, + including timeout settings and retry behavior. + """ + chained_invoke_options: ChainedInvokeOptions | ChainedInvokeOptionsDict | None + """ + Configuration options for chained function invocations in durable + executions, including retry settings and timeout configuration. + """ + +class PackageType(UnknownEnumMixin, StrEnum): + ZIP = "Zip" + IMAGE = "Image" + +@dataclass(kw_only=True) +class PolicyLengthExceededException(ServiceError, _SerdeShape): + """ + The permissions policy for the resource is too large. For more + information, see [Lambda + quotas](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html). + """ + + type: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PreconditionFailedException(ServiceError, _SerdeShape): + """ + The RevisionId provided does not match the latest RevisionId for the + Lambda function or alias. - **For AddPermission and RemovePermission API operations:** Call `GetPolicy` to retrieve the latest RevisionId for your resource. @@ -745,6 +1104,21 @@ class PropagateTags(_SerdeShape): `Explicit`. You can specify up to 40 tags. """ +class PropagateTagsDict(TypedDict, total=False): + """Dictionary form of `PropagateTags`.""" + + mode: str | None + """ + The tag propagation mode. Set to `Explicit` to propagate the tags + specified in `ExplicitTags` to managed resources. Set to `None` to + disable tag propagation. + """ + explicit_tags: Mapping[str, str] | None + """ + A list of tags to apply to managed resources when `Mode` is set to + `Explicit`. You can specify up to 40 tags. + """ + class PropagateTagsMode(UnknownEnumMixin, StrEnum): NONE = "None" """Tag propagation is disabled. No tags are applied to managed resources.""" @@ -839,6 +1213,34 @@ class ProvisionedPollerConfig(_SerdeShape): across all ESMs in a group cannot exceed 2000. """ +class ProvisionedPollerConfigDict(TypedDict, total=False): + """Dictionary form of `ProvisionedPollerConfig`.""" + + minimum_pollers: int | None + """ + The minimum number of event pollers this event source can scale down to. + For Amazon SQS events source mappings, default is 2, and minimum 2 + required. For Amazon MSK and self-managed Apache Kafka event source + mappings, default is 1. + """ + maximum_pollers: int | None + """ + The maximum number of event pollers this event source can scale up to. + For Amazon SQS event source mappings, the accepted range is between 2 + and 10,000, with a default of 200. For Amazon MSK and self-managed + Apache Kafka event source mappings, the accepted range is between 1 and + 2,000, with a default of 200. + """ + poller_group_name: str | None + """ + (Amazon MSK and self-managed Apache Kafka) The name of the provisioned + poller group. Use this option to group multiple ESMs within the event + source's VPC to share Event Poller Unit (EPU) capacity. You can use + this option to optimize Provisioned mode costs for your ESMs. You can + group up to 100 ESMs per poller group and aggregate maximum pollers + across all ESMs in a group cannot exceed 2000. + """ + @dataclass(kw_only=True) class PublicPolicyException(ServiceError, _SerdeShape): """ @@ -894,6 +1296,43 @@ class PublishLayerVersionInput(_SerdeShape): - The full text of the license. """ +class PublishLayerVersionInputDict(TypedDict, total=False): + """Dictionary form of `PublishLayerVersionInput`.""" + + layer_name: Required[str] + """The name or Amazon Resource Name (ARN) of the layer.""" + description: str | None + """The description of the version.""" + content: Required[LayerVersionContentInput | LayerVersionContentInputDict] + """The function layer archive.""" + compatible_architectures: Sequence[str] | None + """ + A list of compatible [instruction set + architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html). + """ + compatible_runtimes: Sequence[str] | None + """ + A list of compatible [function + runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). + Used for filtering with ListLayers and ListLayerVersions. + + The following list includes deprecated runtimes. For more information, + see [Runtime deprecation + policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy). + """ + license_info: str | None + """ + The layer's software license. It can be any of the following: + + - An [SPDX license identifier](https://spdx.org/licenses/). For example, + `MIT`. + + - The URL of a license hosted on the internet. For example, + `https://opensource.org/licenses/MIT`. + + - The full text of the license. + """ + @dataclass(kw_only=True) class PublishLayerVersionOutput(_SerdeShape): """Dataclass for PublishLayerVersionOutput structure.""" @@ -980,6 +1419,46 @@ class PublishVersionInput(_SerdeShape): publish_to: str | None = ... """Specifies where to publish the function version or configuration.""" +class PublishVersionInputDict(TypedDict, total=False): + """Dictionary form of `PublishVersionInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + code_sha256: str | None + """ + Only publish a version if the hash value matches the value that's + specified. Use this option to avoid publishing a version if the function + code has changed since you last updated it. You can get the hash for the + version that you uploaded from the output of UpdateFunctionCode. + """ + description: str | None + """ + A description for the version to override the description in the + function configuration. + """ + revision_id: str | None + """ + Only update the function if the revision ID matches the ID that's + specified. Use this option to avoid publishing a version if the function + configuration has changed since you last updated it. + """ + publish_to: str | None + """Specifies where to publish the function version or configuration.""" + @dataclass(kw_only=True) class PublishVersionOutput(_SerdeShape): """Details about a function's configuration.""" @@ -1190,6 +1669,28 @@ class PutFunctionCodeSigningConfigInput(_SerdeShape): the function name, it is limited to 64 characters in length. """ +class PutFunctionCodeSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `PutFunctionCodeSigningConfigInput`.""" + + code_signing_config_arn: Required[str] + """The The Amazon Resource Name (ARN) of the code signing configuration.""" + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + @dataclass(kw_only=True) class PutFunctionCodeSigningConfigOutput(_SerdeShape): """Dataclass for PutFunctionCodeSigningConfigOutput structure.""" @@ -1243,6 +1744,28 @@ class PutFunctionConcurrencyInput(_SerdeShape): reserved_concurrent_executions: int | None = ... """The number of simultaneous executions to reserve for the function.""" +class PutFunctionConcurrencyInputDict(TypedDict, total=False): + """Dictionary form of `PutFunctionConcurrencyInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + reserved_concurrent_executions: Required[int] + """The number of simultaneous executions to reserve for the function.""" + @dataclass(kw_only=True) class PutFunctionConcurrencyOutput(_SerdeShape): """Dataclass for PutFunctionConcurrencyOutput structure.""" @@ -1314,6 +1837,58 @@ class PutFunctionEventInvokeConfigInput(_SerdeShape): records of successful invocations, use another destination type. """ +class PutFunctionEventInvokeConfigInputDict(TypedDict, total=False): + """Dictionary form of `PutFunctionEventInvokeConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** - `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** - `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """A version number or alias name.""" + maximum_retry_attempts: int | None + """The maximum number of times to retry when the function returns an error.""" + maximum_event_age_in_seconds: int | None + """ + The maximum age of a request that Lambda sends to a function for + processing. + """ + destination_config: DestinationConfig | DestinationConfigDict | None + """ + A destination for events after they have been sent to a function for + processing. + + **Destinations** + + - **Function** - The Amazon Resource Name (ARN) of a Lambda function. + + - **Queue** - The ARN of a standard SQS queue. + + - **Bucket** - The ARN of an Amazon S3 bucket. + + - **Topic** - The ARN of a standard SNS topic. + + - **Event Bus** - The ARN of an Amazon EventBridge event bus. + + Note: + S3 buckets are supported only for on-failure destinations. To retain + records of successful invocations, use another destination type. + """ + @dataclass(kw_only=True) class PutFunctionEventInvokeConfigOutput(_SerdeShape): """Dataclass for PutFunctionEventInvokeConfigOutput structure.""" @@ -1404,43 +1979,104 @@ class PutFunctionRecursionConfigInput(_SerdeShape): in Serverless Land. """ -@dataclass(kw_only=True) -class PutFunctionRecursionConfigOutput(_SerdeShape): - """Dataclass for PutFunctionRecursionConfigOutput structure.""" +class PutFunctionRecursionConfigInputDict(TypedDict, total=False): + """Dictionary form of `PutFunctionRecursionConfigInput`.""" - recursive_loop: str | None = ... + function_name: Required[str] """ - The status of your function's recursive loop detection configuration. + The name or ARN of the Lambda function. - When this value is set to `Allow`and Lambda detects your function being - invoked as part of a recursive loop, it doesn't take any action. + **Name formats** - When this value is set to `Terminate` and Lambda detects your function - being invoked as part of a recursive loop, it stops your function being - invoked and notifies you. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - **Function name** -- `my-function`. -@dataclass(kw_only=True) -class PutFunctionScalingConfigInput(_SerdeShape): - """Dataclass for PutFunctionScalingConfigInput structure.""" + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. - function_name: str | None = ... - """The name or ARN of the Lambda function.""" - qualifier: str | None = ... - """ - Specify a version or alias to set the scaling configuration for a - published version of the function. + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. """ - function_scaling_config: FunctionScalingConfig | None = ... + recursive_loop: Required[str] """ - The scaling configuration to apply to the function, including minimum + If you set your function's recursive loop detection configuration to + `Allow`, Lambda doesn't take any action when it detects your function + being invoked as part of a recursive loop. We recommend that you only + use this setting if your design intentionally uses a Lambda function to + write data back to the same Amazon Web Services resource that invokes + it. + + If you set your function's recursive loop detection configuration to + `Terminate`, Lambda stops your function being invoked and notifies you + when it detects your function being invoked as part of a recursive loop. + + By default, Lambda sets your function's configuration to `Terminate`. + + Warning: + If your design intentionally uses a Lambda function to write data back + to the same Amazon Web Services resource that invokes the function, then + use caution and implement suitable guard rails to prevent unexpected + charges being billed to your Amazon Web Services account. To learn more + about best practices for using recursive invocation patterns, see + [Recursive patterns that cause run-away Lambda + functions](https://serverlessland.com/content/service/lambda/guides/aws-lambda-operator-guide/recursive-runaway) + in Serverless Land. + """ + +@dataclass(kw_only=True) +class PutFunctionRecursionConfigOutput(_SerdeShape): + """Dataclass for PutFunctionRecursionConfigOutput structure.""" + + recursive_loop: str | None = ... + """ + The status of your function's recursive loop detection configuration. + + When this value is set to `Allow`and Lambda detects your function being + invoked as part of a recursive loop, it doesn't take any action. + + When this value is set to `Terminate` and Lambda detects your function + being invoked as part of a recursive loop, it stops your function being + invoked and notifies you. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutFunctionScalingConfigInput(_SerdeShape): + """Dataclass for PutFunctionScalingConfigInput structure.""" + + function_name: str | None = ... + """The name or ARN of the Lambda function.""" + qualifier: str | None = ... + """ + Specify a version or alias to set the scaling configuration for a + published version of the function. + """ + function_scaling_config: FunctionScalingConfig | None = ... + """ + The scaling configuration to apply to the function, including minimum + and maximum execution environment limits. + """ + +class PutFunctionScalingConfigInputDict(TypedDict, total=False): + """Dictionary form of `PutFunctionScalingConfigInput`.""" + + function_name: Required[str] + """The name or ARN of the Lambda function.""" + qualifier: Required[str] + """ + Specify a version or alias to set the scaling configuration for a + published version of the function. + """ + function_scaling_config: FunctionScalingConfig | FunctionScalingConfigDict | None + """ + The scaling configuration to apply to the function, including minimum and maximum execution environment limits. """ @@ -1489,6 +2125,33 @@ class PutProvisionedConcurrencyConfigInput(_SerdeShape): alias. """ +class PutProvisionedConcurrencyConfigInputDict(TypedDict, total=False): + """Dictionary form of `PutProvisionedConcurrencyConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: Required[str] + """The version number or alias name.""" + provisioned_concurrent_executions: Required[int] + """ + The amount of provisioned concurrency to allocate for the version or + alias. + """ + @dataclass(kw_only=True) class PutProvisionedConcurrencyConfigOutput(_SerdeShape): """Dataclass for PutProvisionedConcurrencyConfigOutput structure.""" @@ -1552,6 +2215,33 @@ class PutResourcePolicyInput(_SerdeShape): ID, use the GetResourcePolicy operation. """ +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Lambda resource you want to add + the policy to. You can use a qualified or an unqualified ARN. The value + must be a complete ARN, and the operation does not accept wildcard + characters. + """ + policy: Required[str] + """ + The policy document you want to add to your Lambda resource. This is + formatted as a JSON string. + + For more information, see [Working with resource-based policies in + Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) + in the *Lambda Developer Guide*. + """ + revision_id: str | None + """ + The revision ID that the existing policy must match for the replacement + to proceed. If the revision ID doesn't match, the operation fails with + a `PreconditionFailedException` error. To retrieve the current revision + ID, use the GetResourcePolicy operation. + """ + @dataclass(kw_only=True) class PutResourcePolicyOutput(_SerdeShape): """Dataclass for PutResourcePolicyOutput structure.""" @@ -1629,6 +2319,66 @@ class PutRuntimeManagementConfigInput(_SerdeShape): mode. """ +class PutRuntimeManagementConfigInputDict(TypedDict, total=False): + """Dictionary form of `PutRuntimeManagementConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """ + Specify a version of the function. This can be `$LATEST` or a published + version number. If no value is specified, the configuration for the + `$LATEST` version is returned. + """ + update_runtime_on: Required[str] + """ + Specify the runtime update mode. + + - **Auto (default)** - Automatically update to the most recent and + secure runtime version using a [Two-phase runtime version + rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). + This is the best choice for most customers to ensure they always + benefit from runtime updates. + + - **Function update** - Lambda updates the runtime of your function to + the most recent and secure runtime version when you update your + function. This approach synchronizes runtime updates with function + deployments, giving you control over when runtime updates are applied + and allowing you to detect and mitigate rare runtime update + incompatibilities early. When using this setting, you need to + regularly update your functions to keep their runtime up-to-date. + + - **Manual** - You specify a runtime version in your function + configuration. The function will use this runtime version + indefinitely. In the rare case where a new runtime version is + incompatible with an existing function, this allows you to roll back + your function to an earlier runtime version. For more information, see + [Roll back a runtime + version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback). + """ + runtime_version_arn: str | None + """ + The ARN of the runtime version you want the function to use. + + Note: + This is only required if you're using the **Manual** runtime update + mode. + """ + @dataclass(kw_only=True) class PutRuntimeManagementConfigOutput(_SerdeShape): """Dataclass for PutRuntimeManagementConfigOutput structure.""" @@ -1690,6 +2440,22 @@ class RemoveLayerVersionPermissionInput(_SerdeShape): read it. """ +class RemoveLayerVersionPermissionInputDict(TypedDict, total=False): + """Dictionary form of `RemoveLayerVersionPermissionInput`.""" + + layer_name: Required[str] + """The name or Amazon Resource Name (ARN) of the layer.""" + version_number: int | None + """The version number.""" + statement_id: Required[str] + """The identifier that was specified when the statement was added.""" + revision_id: str | None + """ + Only update the policy if the revision ID matches the ID specified. Use + this option to avoid modifying a policy that has changed since you last + read it. + """ + @dataclass(kw_only=True) class RemoveLayerVersionPermissionOutput(_SerdeShape): """Dataclass for RemoveLayerVersionPermissionOutput structure.""" @@ -1738,6 +2504,41 @@ class RemovePermissionInput(_SerdeShape): since you last read it. """ +class RemovePermissionInputDict(TypedDict, total=False): + """Dictionary form of `RemovePermissionInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** -- `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + statement_id: Required[str] + """Statement ID of the permission to remove.""" + qualifier: str | None + """ + Specify a version or alias to remove permissions from a published + version of the function. + """ + revision_id: str | None + """ + Update the policy only if the revision ID matches the ID that's + specified. Use this option to avoid modifying a policy that has changed + since you last read it. + """ + @dataclass(kw_only=True) class RemovePermissionOutput(_SerdeShape): """Dataclass for RemovePermissionOutput structure.""" @@ -1960,6 +2761,30 @@ class S3FilesConfig(_SerdeShape): system. """ +class S3FilesConfigDict(TypedDict, total=False): + """Dictionary form of `S3FilesConfig`.""" + + direct_s3_read: str | None + """ + Specifies if a function reads from the file system for the lowest + latency, or through Amazon S3 Files feature \"direct Amazon S3 bucket + reads\" for the highest throughput. Valid values: + + - `AUTO` (default) -- Direct reads are active for functions you + configure with 512 MB or more of memory. + + - `ENABLED` -- Enforces all reads are directly from the Amazon S3 + bucket, regardless of available memory (less than 512 MB). + + - `DISABLED` -- Routes all reads through the file system, regardless of + memory configuration. + + To use direct reads, you must grant the execution role the + `s3:GetObject` and `s3:GetObjectVersion` permissions. If a direct read + fails, Lambda automatically falls back to reading through the file + system. + """ + @dataclass(kw_only=True) class S3FilesMountConnectivityException(ServiceError, _SerdeShape): """ @@ -2042,6 +2867,15 @@ class ScalingConfig(_SerdeShape): source can invoke. """ +class ScalingConfigDict(TypedDict, total=False): + """Dictionary form of `ScalingConfig`.""" + + maximum_concurrency: int | None + """ + Limits the number of concurrent instances that the Amazon SQS event + source can invoke. + """ + class SchemaRegistryEventRecordFormat(UnknownEnumMixin, StrEnum): JSON = "JSON" SOURCE = "SOURCE" @@ -2057,6 +2891,16 @@ class SelfManagedEventSource(_SerdeShape): `"KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]`. """ +class SelfManagedEventSourceDict(TypedDict, total=False): + """Dictionary form of `SelfManagedEventSource`.""" + + endpoints: Mapping[str, Sequence[str]] | None + """ + The list of bootstrap servers for your Kafka brokers in the following + format: + `"KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]`. + """ + @dataclass(kw_only=True) class SelfManagedKafkaEventSourceConfig(_SerdeShape): """ @@ -2099,22 +2943,73 @@ class SelfManagedKafkaEventSourceConfig(_SerdeShape): parameters are not supported. """ -@dataclass(kw_only=True) -class SendDurableExecutionCallbackFailureInput(_SerdeShape): - """Dataclass for SendDurableExecutionCallbackFailureInput structure.""" +class SelfManagedKafkaEventSourceConfigDict(TypedDict, total=False): + """Dictionary form of `SelfManagedKafkaEventSourceConfig`.""" - callback_id: str | None = ... - """The unique identifier for the callback operation.""" - error: ErrorObject | None = ... - """ - Error details describing why the callback operation failed. The combined - size of all error fields is limited to 1 MB. + consumer_group_id: str | None + """ + The identifier for the Kafka consumer group to join. The consumer group + ID must be unique among all your Kafka event sources. After creating a + Kafka event source mapping with the consumer group ID specified, you + cannot update this value. For more information, see [Customizable + consumer group + ID](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka-process.html#services-smaa-topic-add). + """ + schema_registry_config: ( + KafkaSchemaRegistryConfig | KafkaSchemaRegistryConfigDict | None + ) + """Specific configuration settings for a Kafka schema registry.""" + consumption_mode: str | None + """ + The mode that Lambda uses to consume records from your self-managed + Apache Kafka topic. The default is `Stream`. + + - `Stream` -- Lambda consumes records using a Kafka consumer group and + preserves the order of records within each partition. This is the + default when you omit `ConsumptionMode`. + + - `Queue` -- Lambda consumes records using a Kafka share group. Multiple + consumers can process records from the same partitions concurrently. + Queue mode does not preserve per-partition order. Queue mode requires + an Apache Kafka cluster running version 4.2 or later with share groups + enabled. + + You cannot change `ConsumptionMode` after you create the event source + mapping. To use a different consumption mode, create a new event source + mapping. + + When `ConsumptionMode` is `Queue`, the `StartingPosition`, + `StartingPositionTimestamp`, and `MaximumBatchingWindowInSeconds` + parameters are not supported. """ -@dataclass(kw_only=True) -class SendDurableExecutionCallbackFailureOutput(_SerdeShape): - """Dataclass for SendDurableExecutionCallbackFailureOutput structure.""" - +@dataclass(kw_only=True) +class SendDurableExecutionCallbackFailureInput(_SerdeShape): + """Dataclass for SendDurableExecutionCallbackFailureInput structure.""" + + callback_id: str | None = ... + """The unique identifier for the callback operation.""" + error: ErrorObject | None = ... + """ + Error details describing why the callback operation failed. The combined + size of all error fields is limited to 1 MB. + """ + +class SendDurableExecutionCallbackFailureInputDict(TypedDict, total=False): + """Dictionary form of `SendDurableExecutionCallbackFailureInput`.""" + + callback_id: Required[str] + """The unique identifier for the callback operation.""" + error: ErrorObject | ErrorObjectDict | None + """ + Error details describing why the callback operation failed. The combined + size of all error fields is limited to 1 MB. + """ + +@dataclass(kw_only=True) +class SendDurableExecutionCallbackFailureOutput(_SerdeShape): + """Dataclass for SendDurableExecutionCallbackFailureOutput structure.""" + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -2130,6 +3025,12 @@ class SendDurableExecutionCallbackHeartbeatInput(_SerdeShape): callback_id: str | None = ... """The unique identifier for the callback operation.""" +class SendDurableExecutionCallbackHeartbeatInputDict(TypedDict, total=False): + """Dictionary form of `SendDurableExecutionCallbackHeartbeatInput`.""" + + callback_id: Required[str] + """The unique identifier for the callback operation.""" + @dataclass(kw_only=True) class SendDurableExecutionCallbackHeartbeatOutput(_SerdeShape): """Dataclass for SendDurableExecutionCallbackHeartbeatOutput structure.""" @@ -2154,6 +3055,17 @@ class SendDurableExecutionCallbackSuccessInput(_SerdeShape): 1 MB. """ +class SendDurableExecutionCallbackSuccessInputDict(TypedDict, total=False): + """Dictionary form of `SendDurableExecutionCallbackSuccessInput`.""" + + callback_id: Required[str] + """The unique identifier for the callback operation.""" + result: bytes | None + """ + The result data from the successful callback operation. Maximum size is + 1 MB. + """ + @dataclass(kw_only=True) class SendDurableExecutionCallbackSuccessOutput(_SerdeShape): """Dataclass for SendDurableExecutionCallbackSuccessOutput structure.""" @@ -2233,6 +3145,15 @@ class SnapStart(_SerdeShape): execution environment when you publish a function version. """ +class SnapStartDict(TypedDict, total=False): + """Dictionary form of `SnapStart`.""" + + apply_on: str | None + """ + Set to `PublishedVersions` to create a snapshot of the initialized + execution environment when you publish a function version. + """ + class SnapStartApplyOn(UnknownEnumMixin, StrEnum): PUBLISHED_VERSIONS = "PublishedVersions" NONE = "None" @@ -2426,6 +3347,96 @@ class SourceAccessConfiguration(_SerdeShape): `"URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"`. """ +class SourceAccessConfigurationDict(TypedDict, total=False): + """Dictionary form of `SourceAccessConfiguration`.""" + + type: str | None + """ + The type of authentication protocol, VPC components, or virtual host for + your event source. For example: `"Type":"SASL_SCRAM_512_AUTH"`. + + - `BASIC_AUTH` -- (Amazon MQ) The Secrets Manager secret that stores + your broker credentials. + + - `BASIC_AUTH` -- (Self-managed Apache Kafka) The Secrets Manager ARN of + your secret key used for SASL/PLAIN authentication of your Apache + Kafka brokers. + + - `VPC_SUBNET` -- (Self-managed Apache Kafka) The subnets associated + with your VPC. Lambda connects to these subnets to fetch data from + your self-managed Apache Kafka cluster. + + - `VPC_SECURITY_GROUP` -- (Self-managed Apache Kafka) The VPC security + group used to manage access to your self-managed Apache Kafka brokers. + + - `SASL_SCRAM_256_AUTH` -- (Self-managed Apache Kafka) The Secrets + Manager ARN of your secret key used for SASL SCRAM-256 authentication + of your self-managed Apache Kafka brokers. + + - `SASL_SCRAM_512_AUTH` -- (Amazon MSK, Self-managed Apache Kafka) The + Secrets Manager ARN of your secret key used for SASL SCRAM-512 + authentication of your self-managed Apache Kafka brokers. + + - `VIRTUAL_HOST` --- (RabbitMQ) The name of the virtual host in your + RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. + This property cannot be specified in an UpdateEventSourceMapping API + call. + + - `CLIENT_CERTIFICATE_TLS_AUTH` -- (Amazon MSK, self-managed Apache + Kafka) The Secrets Manager ARN of your secret key containing the + certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private + key password (optional) used for mutual TLS authentication of your + MSK/Apache Kafka brokers. + + - `SERVER_ROOT_CA_CERTIFICATE` -- (Self-managed Apache Kafka) The + Secrets Manager ARN of your secret key containing the root CA + certificate (X.509 PEM) used for TLS encryption of your Apache Kafka + brokers. + + - `OAUTHBEARER_AUTH` -- (Self-managed Apache Kafka) The Secrets Manager + ARN of your secret key containing the OAuth 2.0 credentials that + Lambda uses for SASL/OAUTHBEARER authentication with your Apache Kafka + brokers. For the contents of the secret, see [Configuring the OAuth + secret](https://docs.aws.amazon.com/lambda/latest/dg/kafka-cluster-auth.html#smaa-auth-oauth-secret). + + - `OAUTHBEARER_SCOPE` -- (Self-managed Apache Kafka) The OAuth 2.0 scope + that Lambda requests when it acquires an access token. The `URI` field + holds the scope value, not a secret ARN. This type requires + `OAUTHBEARER_AUTH`. + + - `OAUTHBEARER_AUDIENCE` -- (Self-managed Apache Kafka) The OAuth 2.0 + audience that Lambda requests when it acquires an access token. The + `URI` field holds the audience value, not a secret ARN. This type + requires either `OAUTHBEARER_AUTH` or `IAM_OAUTHBEARER_AUTH`. + + - `OAUTHBEARER_LOGICAL_CLUSTER` -- (Self-managed Apache Kafka) The + logical cluster identifier that Lambda sends to a Confluent Cloud + broker. The `URI` field holds the identifier, not a secret ARN. This + type requires `OAUTHBEARER_AUTH`. + + - `OAUTHBEARER_IDENTITY_POOL` -- (Self-managed Apache Kafka) The + identity pool identifier that Lambda sends to a Confluent Cloud + broker. The `URI` field holds the identifier, not a secret ARN. This + type requires `OAUTHBEARER_AUTH`. + + - `IAM_AUTH` -- (Self-managed Apache Kafka) Authenticate with Identity + and Access Management (IAM). Your function's execution role signs + each connection, so there is no secret to provide. Omit the `URI` + field for this type. + + - `IAM_OAUTHBEARER_AUTH` -- (Self-managed Apache Kafka) Authenticate + with an Amazon Web Services web identity token over SASL/OAUTHBEARER. + Lambda requests the token for your function's execution role, so + there is no secret to provide. Omit the `URI` field for this type. + This type requires `OAUTHBEARER_AUDIENCE` and does not support the + other `OAUTHBEARER` types. + """ + uri: str | None + """ + The value for your chosen configuration in `Type`. For example: + `"URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"`. + """ + class SourceAccessType(UnknownEnumMixin, StrEnum): BASIC_AUTH = "BASIC_AUTH" VPC_SUBNET = "VPC_SUBNET" @@ -2528,6 +3539,12 @@ class StepOptions(_SerdeShape): next_attempt_delay_seconds: int | None = ... """The delay in seconds before the next retry attempt.""" +class StepOptionsDict(TypedDict, total=False): + """Dictionary form of `StepOptions`.""" + + next_attempt_delay_seconds: int | None + """The delay in seconds before the next retry attempt.""" + @dataclass(kw_only=True) class StepStartedDetails(_SerdeShape): """Details about a step that has started.""" @@ -2553,6 +3570,17 @@ class StopDurableExecutionInput(_SerdeShape): The combined size of all error fields is limited to 1 MB. """ +class StopDurableExecutionInputDict(TypedDict, total=False): + """Dictionary form of `StopDurableExecutionInput`.""" + + durable_execution_arn: Required[str] + """The Amazon Resource Name (ARN) of the durable execution.""" + error: ErrorObject | ErrorObjectDict | None + """ + Optional error details explaining why the execution is being stopped. + The combined size of all error fields is limited to 1 MB. + """ + @dataclass(kw_only=True) class StopDurableExecutionOutput(_SerdeShape): """Dataclass for StopDurableExecutionOutput structure.""" @@ -2597,6 +3625,14 @@ class TagResourceInput(_SerdeShape): tags: dict[str, str] | None = ... """A list of tags to apply to the resource.""" +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource: Required[str] + """The resource's Amazon Resource Name (ARN).""" + tags: Required[Mapping[str, str]] + """A list of tags to apply to the resource.""" + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -2636,6 +3672,17 @@ class TargetTrackingScalingPolicy(_SerdeShape): maintain through scaling actions. """ +class TargetTrackingScalingPolicyDict(TypedDict, total=False): + """Dictionary form of `TargetTrackingScalingPolicy`.""" + + predefined_metric_type: Required[str] + """The predefined metric type to track for scaling decisions.""" + target_value: Required[float] + """ + The target value for the metric that the scaling policy attempts to + maintain through scaling actions. + """ + @dataclass(kw_only=True) class TenancyConfig(_SerdeShape): """ @@ -2651,6 +3698,15 @@ class TenancyConfig(_SerdeShape): corresponding execution environment dedicated to a specific tenant ID. """ +class TenancyConfigDict(TypedDict, total=False): + """Dictionary form of `TenancyConfig`.""" + + tenant_isolation_mode: Required[str] + """ + Tenant isolation mode allows for invocation to be sent to a + corresponding execution environment dedicated to a specific tenant ID. + """ + class TenantIsolationMode(UnknownEnumMixin, StrEnum): PER_TENANT = "PER_TENANT" @@ -2705,6 +3761,12 @@ class TracingConfig(_SerdeShape): mode: str | None = ... """The tracing mode.""" +class TracingConfigDict(TypedDict, total=False): + """Dictionary form of `TracingConfig`.""" + + mode: str | None + """The tracing mode.""" + @dataclass(kw_only=True) class TracingConfigResponse(_SerdeShape): """The function's X-Ray tracing configuration.""" @@ -2738,6 +3800,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """A list of tag keys to remove from the resource.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource: Required[str] + """The resource's Amazon Resource Name (ARN).""" + tag_keys: Required[Sequence[str]] + """A list of tag keys to remove from the resource.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -2789,6 +3859,44 @@ class UpdateAliasInput(_SerdeShape): since you last read it. """ +class UpdateAliasInputDict(TypedDict, total=False): + """Dictionary form of `UpdateAliasInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** - `MyFunction`. + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Partial ARN** - `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + name: Required[str] + """The name of the alias.""" + function_version: str | None + """The function version that the alias invokes.""" + description: str | None + """A description of the alias.""" + routing_config: AliasRoutingConfiguration | AliasRoutingConfigurationDict | None + """ + The [routing + configuration](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing) + of the alias. + """ + revision_id: str | None + """ + Only update the alias if the revision ID matches the ID that's + specified. Use this option to avoid modifying an alias that has changed + since you last read it. + """ + @dataclass(kw_only=True) class UpdateAliasOutput(_SerdeShape): """ @@ -2836,6 +3944,25 @@ class UpdateCapacityProviderInput(_SerdeShape): telemetry_config: CapacityProviderTelemetryConfig | None = ... """The updated telemetry configuration for the capacity provider.""" +class UpdateCapacityProviderInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCapacityProviderInput`.""" + + capacity_provider_name: Required[str] + """The name of the capacity provider to update.""" + capacity_provider_scaling_config: ( + CapacityProviderScalingConfig | CapacityProviderScalingConfigDict | None + ) + """The updated scaling configuration for the capacity provider.""" + propagate_tags: PropagateTags | PropagateTagsDict | None + """ + Configuration for tag propagation to managed resources launched by the + capacity provider. + """ + telemetry_config: ( + CapacityProviderTelemetryConfig | CapacityProviderTelemetryConfigDict | None + ) + """The updated telemetry configuration for the capacity provider.""" + @dataclass(kw_only=True) class UpdateCapacityProviderOutput(_SerdeShape): """Dataclass for UpdateCapacityProviderOutput structure.""" @@ -2863,6 +3990,18 @@ class UpdateCodeSigningConfigInput(_SerdeShape): code_signing_policies: CodeSigningPolicies | None = ... """The code signing policy.""" +class UpdateCodeSigningConfigInputDict(TypedDict, total=False): + """Dictionary form of `UpdateCodeSigningConfigInput`.""" + + code_signing_config_arn: Required[str] + """The The Amazon Resource Name (ARN) of the code signing configuration.""" + description: str | None + """Descriptive name for this code signing configuration.""" + allowed_publishers: AllowedPublishers | AllowedPublishersDict | None + """Signing profiles for this code signing configuration.""" + code_signing_policies: CodeSigningPolicies | CodeSigningPoliciesDict | None + """The code signing policy.""" + @dataclass(kw_only=True) class UpdateCodeSigningConfigOutput(_SerdeShape): """Dataclass for UpdateCodeSigningConfigOutput structure.""" @@ -3063,6 +4202,203 @@ class UpdateEventSourceMappingInput(_SerdeShape): mode](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode). """ +class UpdateEventSourceMappingInputDict(TypedDict, total=False): + """Dictionary form of `UpdateEventSourceMappingInput`.""" + + uuid: Required[str] + """The identifier of the event source mapping.""" + function_name: str | None + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `MyFunction`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`. + + - **Version or Alias ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`. + + - **Partial ARN** -- `123456789012:function:MyFunction`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it's limited to 64 characters in length. + """ + enabled: bool | None + """ + When true, the event source mapping is active. When false, Lambda pauses + polling and invocation. + + Default: True + """ + batch_size: int | None + """ + The maximum number of records in each batch that Lambda pulls from your + stream or queue and sends to your function. Lambda passes all of the + records in the batch to the function in a single call, up to the payload + limit for synchronous invocation (6 MB). + + - **Amazon Kinesis** -- Default 100. Max 10,000. + + - **Amazon DynamoDB Streams** -- Default 100. Max 10,000. + + - **Amazon Simple Queue Service** -- Default 10. For standard queues the + max is 10,000. For FIFO queues the max is 10. + + - **Amazon Managed Streaming for Apache Kafka** -- Default 100. Max + 10,000. + + - **Self-managed Apache Kafka** -- Default 100. Max 10,000. + + - **Amazon MQ (ActiveMQ and RabbitMQ)** -- Default 100. Max 10,000. + + - **DocumentDB** -- Default 100. Max 10,000. + """ + filter_criteria: FilterCriteria | FilterCriteriaDict | None + """ + An object that defines the filter criteria that determine whether Lambda + should process an event. For more information, see [Lambda event + filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). + """ + kms_key_arn: str | None + """ + The ARN of the Key Management Service (KMS) customer managed key that + Lambda uses to encrypt your function's [filter + criteria](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics). + By default, Lambda does not encrypt your filter criteria object. Specify + this property to encrypt data using your own customer managed key. + """ + metrics_config: ( + EventSourceMappingMetricsConfig | EventSourceMappingMetricsConfigDict | None + ) + """ + The metrics configuration for your event source. For more information, + see [Event source mapping + metrics](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics). + """ + logging_config: ( + EventSourceMappingLoggingConfig | EventSourceMappingLoggingConfigDict | None + ) + """ + (Amazon MSK, and self-managed Apache Kafka only) The logging + configuration for your event source. Use this configuration object to + define the level of logs for your event source mapping. + """ + scaling_config: ScalingConfig | ScalingConfigDict | None + """ + (Amazon SQS only) The scaling configuration for the event source. For + more information, see [Configuring maximum concurrency for Amazon SQS + event + sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency). + """ + maximum_batching_window_in_seconds: int | None + """ + The maximum amount of time, in seconds, that Lambda spends gathering + records before invoking the function. You can configure + `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300 + seconds in increments of seconds. + + For Kinesis, DynamoDB, and Amazon SQS event sources, the default + batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, + Amazon MQ, and DocumentDB event sources, the default batching window is + 500 ms. Note that because you can only change + `MaximumBatchingWindowInSeconds` in increments of seconds, you cannot + revert back to the 500 ms default batching window after you have changed + it. To restore the default batching window, you must create a new event + source mapping. + + Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, + when you set `BatchSize` to a value greater than 10, you must set + `MaximumBatchingWindowInSeconds` to at least 1. + + Not supported for Kafka event source mappings when `ConsumptionMode` is + `Queue`. + """ + parallelization_factor: int | None + """ + (Kinesis and DynamoDB Streams only) The number of batches to process + from each shard concurrently. + """ + destination_config: DestinationConfig | DestinationConfigDict | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A + configuration object that specifies the destination of an event after + Lambda processes it. + """ + maximum_record_age_in_seconds: int | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + Discard records older than the specified age. The default value is + infinite (-1). + """ + bisect_batch_on_function_error: bool | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + If the function returns an error, split the batch in two and retry. + """ + maximum_retry_attempts: int | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) + Discard records after the specified number of retries. The default value + is infinite (-1). When set to infinite (-1), failed records are retried + until the record expires. + + For Kafka `Stream` consumption mode, the default is `-1` (infinite + retries; capped at 10 when an on-failure destination is configured). For + Kafka `Queue` consumption mode, the default is `0`, and if no on-failure + destination is configured the Kafka broker performs retries. + """ + tumbling_window_in_seconds: int | None + """ + (Kinesis and DynamoDB Streams only) The duration in seconds of a + processing window for DynamoDB and Kinesis Streams event sources. A + value of 0 seconds indicates no tumbling window. + """ + source_access_configurations: ( + Sequence[SourceAccessConfiguration | SourceAccessConfigurationDict] | None + ) + """ + An array of authentication protocols or VPC components required to + secure your event source. + """ + function_response_types: Sequence[str] | None + """ + (Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and + Amazon SQS) A list of current response type enums applied to the event + source mapping. + """ + amazon_managed_kafka_event_source_config: ( + AmazonManagedKafkaEventSourceConfig + | AmazonManagedKafkaEventSourceConfigDict + | None + ) + """ + Specific configuration settings for an Amazon Managed Streaming for + Apache Kafka (Amazon MSK) event source. + """ + self_managed_kafka_event_source_config: ( + SelfManagedKafkaEventSourceConfig | SelfManagedKafkaEventSourceConfigDict | None + ) + """ + Specific configuration settings for a self-managed Apache Kafka event + source. + """ + document_db_event_source_config: ( + DocumentDBEventSourceConfig | DocumentDBEventSourceConfigDict | None + ) + """Specific configuration settings for a DocumentDB event source.""" + provisioned_poller_config: ( + ProvisionedPollerConfig | ProvisionedPollerConfigDict | None + ) + """ + (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The + provisioned mode configuration for the event source. For more + information, see [provisioned + mode](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode). + """ + @dataclass(kw_only=True) class UpdateEventSourceMappingOutput(_SerdeShape): """ @@ -3341,25 +4677,114 @@ class UpdateFunctionCodeInput(_SerdeShape): string array with one of the valid values (arm64 or x86_64). The default value is `x86_64`. """ - publish: bool = ... + publish: bool = ... + """ + Set to true to publish a new version of the function after updating the + code. This has the same effect as calling PublishVersion separately. + """ + publish_to: str | None = ... + """Specifies where to publish the function version or configuration.""" + dry_run: bool = ... + """ + Set to true to validate the request parameters and access permissions + without modifying the function code. + """ + revision_id: str | None = ... + """ + Update the function only if the revision ID matches the ID that's + specified. Use this option to avoid modifying a function that has + changed since you last read it. + """ + source_kms_key_arn: str | None = ... + """ + The ARN of the Key Management Service (KMS) customer managed key that's + used to encrypt your function's .zip deployment package. If you don't + provide a customer managed key, Lambda uses an Amazon Web Services + managed key. + """ + +class UpdateFunctionCodeInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFunctionCodeInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + zip_file: bytes | None + """ + The base64-encoded contents of the deployment package. Amazon Web + Services SDK and CLI clients handle the encoding for you. Use only with + a function defined with a .zip file archive deployment package. + """ + s3_bucket: str | None + """ + An Amazon S3 bucket in the same Amazon Web Services Region as your + function. The bucket can be in a different Amazon Web Services account. + Use only with a function defined with a .zip file archive deployment + package. + """ + s3_key: str | None + """ + The Amazon S3 key of the deployment package. Use only with a function + defined with a .zip file archive deployment package. + """ + s3_object_version: str | None + """ + For versioned objects, the version of the deployment package object to + use. + """ + s3_object_storage_mode: str | None + """ + Specifies how the deployment package is stored. Valid values: + + - `COPY` (default) -- Uploads a copy of your deployment package to + Lambda. + + - `REFERENCE` -- Lambda references the deployment package from the + specified Amazon S3 bucket. + """ + image_uri: str | None + """ + URI of a container image in the Amazon ECR registry. Do not use for a + function defined with a .zip file archive. + """ + architectures: Sequence[str] | None + """ + The instruction set architecture that the function supports. Enter a + string array with one of the valid values (arm64 or x86_64). The default + value is `x86_64`. + """ + publish: bool | None """ Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately. """ - publish_to: str | None = ... + publish_to: str | None """Specifies where to publish the function version or configuration.""" - dry_run: bool = ... + dry_run: bool | None """ Set to true to validate the request parameters and access permissions without modifying the function code. """ - revision_id: str | None = ... + revision_id: str | None """ Update the function only if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it. """ - source_kms_key_arn: str | None = ... + source_kms_key_arn: str | None """ The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't @@ -3731,6 +5156,182 @@ class UpdateFunctionConfigurationInput(_SerdeShape): including input, output, and error payloads. """ +class UpdateFunctionConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFunctionConfigurationInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + role: str | None + """The Amazon Resource Name (ARN) of the function's execution role.""" + handler: str | None + """ + The name of the method within your code that Lambda calls to run your + function. Handler is required if the deployment package is a .zip file + archive. The format includes the file name. It can also include + namespaces and other qualifiers, depending on the runtime. For more + information, see [Lambda programming + model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). + """ + description: str | None + """A description of the function.""" + timeout: int | None + """ + The amount of time (in seconds) that Lambda allows a function to run + before stopping it. The default is 3 seconds, and the maximum allowed + value is 900 seconds. For functions using Lambda Managed Instances, + asynchronous invocations and event source mapping invocations (except + Amazon MQ and Amazon DocumentDB) support a maximum allowed value of + 5,400 seconds (90 minutes). For more information, see [Lambda execution + environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). + """ + memory_size: int | None + """ + The amount of [memory available to the + function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) + at runtime. Increasing the function memory also increases its CPU + allocation. The default value is 128 MB. The value can be any multiple + of 1 MB. + """ + vpc_config: VpcConfig | VpcConfigDict | None + """ + For network connectivity to Amazon Web Services resources in a VPC, + specify a list of security groups and subnets in the VPC. When you + connect a function to a VPC, it can access resources and the internet + only through that VPC. For more information, see [Configuring a Lambda + function to access resources in a + VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). + """ + environment: Environment | EnvironmentDict | None + """ + Environment variables that are accessible from function code during + execution. + """ + runtime: str | None + """ + The identifier of the function's + [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). + Runtime is required if the deployment package is a .zip file archive. + Specifying a runtime results in an error if you're deploying a function + using a container image. + + The following list includes deprecated runtimes. Lambda blocks creating + new functions and updating existing functions shortly after each runtime + is deprecated. For more information, see [Runtime use after + deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels). + + For a list of all currently supported runtimes, see [Supported + runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported). + """ + dead_letter_config: DeadLetterConfig | DeadLetterConfigDict | None + """ + A dead-letter queue configuration that specifies the queue or topic + where Lambda sends asynchronous events when they fail processing. For + more information, see [Dead-letter + queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq). + """ + kms_key_arn: str | None + """ + The ARN of the Key Management Service (KMS) customer managed key that's + used to encrypt the following resources: + + - The function's [environment + variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). + + - The function's [Lambda + SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) + snapshots. + + - When used with `SourceKMSKeyArn`, the unzipped version of the .zip + deployment package that's used for function invocations. For more + information, see [Specifying a customer managed key for + Lambda](https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption). + + - The optimized version of the container image that's used for function + invocations. Note that this is not the same key that's used to + protect your container image in the Amazon Elastic Container Registry + (Amazon ECR). For more information, see [Function + lifecycle](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle). + + If you don't provide a customer managed key, Lambda uses an [Amazon Web + Services owned + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) + or an [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk). + """ + tracing_config: TracingConfig | TracingConfigDict | None + """ + Set `Mode` to `Active` to sample and trace a subset of incoming requests + with + [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html). + """ + revision_id: str | None + """ + Update the function only if the revision ID matches the ID that's + specified. Use this option to avoid modifying a function that has + changed since you last read it. + """ + layers: Sequence[str] | None + """ + A list of [function + layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) + to add to the function's execution environment. Specify each layer by + its ARN, including the version. + """ + file_system_configs: Sequence[FileSystemConfig | FileSystemConfigDict] | None + """ + Connection settings for an Amazon EFS file system or an Amazon S3 Files + file system. + """ + image_config: ImageConfig | ImageConfigDict | None + """ + [Container image configuration + values](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) + that override the values in the container image Docker file. + """ + ephemeral_storage: EphemeralStorage | EphemeralStorageDict | None + """ + The size of the function's `/tmp` directory in MB. The default value is + 512, but can be any whole number between 512 and 10,240 MB. For more + information, see [Configuring ephemeral storage + (console)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). + """ + snap_start: SnapStart | SnapStartDict | None + """ + The function's + [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) + setting. + """ + logging_config: LoggingConfig | LoggingConfigDict | None + """The function's Amazon CloudWatch Logs configuration settings.""" + capacity_provider_config: CapacityProviderConfig | CapacityProviderConfigDict | None + """ + Configuration for the capacity provider that manages compute resources + for Lambda functions. + """ + durable_config: DurableConfig | DurableConfigDict | None + """ + Configuration settings for [durable + functions](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html), + including execution timeout, retention period for execution history, and + an optional ARN of the Key Management Service (KMS) customer managed key + that is used to encrypt your durable execution's payload data, + including input, output, and error payloads. + """ + @dataclass(kw_only=True) class UpdateFunctionConfigurationOutput(_SerdeShape): """Details about a function's configuration.""" @@ -3971,6 +5572,58 @@ class UpdateFunctionEventInvokeConfigInput(_SerdeShape): records of successful invocations, use another destination type. """ +class UpdateFunctionEventInvokeConfigInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFunctionEventInvokeConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function, version, or alias. + + **Name formats** + + - **Function name** - `my-function` (name-only), `my-function:v1` (with + alias). + + - **Function ARN** - + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** - `123456789012:function:my-function`. + + You can append a version number or alias to any of the formats. The + length constraint applies only to the full ARN. If you specify only the + function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """A version number or alias name.""" + maximum_retry_attempts: int | None + """The maximum number of times to retry when the function returns an error.""" + maximum_event_age_in_seconds: int | None + """ + The maximum age of a request that Lambda sends to a function for + processing. + """ + destination_config: DestinationConfig | DestinationConfigDict | None + """ + A destination for events after they have been sent to a function for + processing. + + **Destinations** + + - **Function** - The Amazon Resource Name (ARN) of a Lambda function. + + - **Queue** - The ARN of a standard SQS queue. + + - **Bucket** - The ARN of an Amazon S3 bucket. + + - **Topic** - The ARN of a standard SNS topic. + + - **Event Bus** - The ARN of an Amazon EventBridge event bus. + + Note: + S3 buckets are supported only for on-failure destinations. To retain + records of successful invocations, use another destination type. + """ + @dataclass(kw_only=True) class UpdateFunctionEventInvokeConfigOutput(_SerdeShape): """Dataclass for UpdateFunctionEventInvokeConfigOutput structure.""" @@ -4065,6 +5718,55 @@ class UpdateFunctionUrlConfigInput(_SerdeShape): size is 200 MB. """ +class UpdateFunctionUrlConfigInputDict(TypedDict, total=False): + """Dictionary form of `UpdateFunctionUrlConfigInput`.""" + + function_name: Required[str] + """ + The name or ARN of the Lambda function. + + **Name formats** + + - **Function name** -- `my-function`. + + - **Function ARN** -- + `arn:aws:lambda:us-west-2:123456789012:function:my-function`. + + - **Partial ARN** -- `123456789012:function:my-function`. + + The length constraint applies only to the full ARN. If you specify only + the function name, it is limited to 64 characters in length. + """ + qualifier: str | None + """The alias name.""" + auth_type: str | None + """ + The type of authentication that your function URL uses. Set to `AWS_IAM` + if you want to restrict access to authenticated users only. Set to + `NONE` if you want to bypass IAM authentication to create a public + endpoint. For more information, see [Control access to Lambda function + URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). + """ + cors: Cors | CorsDict | None + """ + The [cross-origin resource sharing + (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings + for your function URL. + """ + invoke_mode: str | None + """ + Use one of the following options: + + - `BUFFERED` -- This is the default option. Lambda invokes your function + using the `Invoke` API operation. Invocation results are available + when the payload is complete. The maximum payload size is 6 MB. + + - `RESPONSE_STREAM` -- Your function streams payload results as they + become available. Lambda invokes your function using the + `InvokeWithResponseStream` API operation. The maximum response payload + size is 200 MB. + """ + @dataclass(kw_only=True) class UpdateFunctionUrlConfigOutput(_SerdeShape): """Dataclass for UpdateFunctionUrlConfigOutput structure.""" @@ -4142,6 +5844,19 @@ class VpcConfig(_SerdeShape): dual-stack subnets. """ +class VpcConfigDict(TypedDict, total=False): + """Dictionary form of `VpcConfig`.""" + + subnet_ids: Sequence[str] | None + """A list of VPC subnet IDs.""" + security_group_ids: Sequence[str] | None + """A list of VPC security group IDs.""" + ipv6_allowed_for_dual_stack: bool | None + """ + Allows outbound IPv6 traffic on VPC functions that are connected to + dual-stack subnets. + """ + @dataclass(kw_only=True) class VpcConfigResponse(_SerdeShape): """ @@ -4186,6 +5901,12 @@ class WaitOptions(_SerdeShape): wait_seconds: int | None = ... """The duration to wait, in seconds.""" +class WaitOptionsDict(TypedDict, total=False): + """Dictionary form of `WaitOptions`.""" + + wait_seconds: int | None + """The duration to wait, in seconds.""" + @dataclass(kw_only=True) class WaitStartedDetails(_SerdeShape): """Details about a wait operation that has started.""" diff --git a/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/schemas.py b/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/schemas.py index a647fb6c8..7eaf44646 100644 --- a/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/schemas.py +++ b/clients/aws-sdk-lambda/src/aws_sdk_lambda/_private/schemas.py @@ -736,7 +736,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-lambda/src/aws_sdk_lambda/aio/client.py b/clients/aws-sdk-lambda/src/aws_sdk_lambda/aio/client.py index 0df72310a..e9287797c 100644 --- a/clients/aws-sdk-lambda/src/aws_sdk_lambda/aio/client.py +++ b/clients/aws-sdk-lambda/src/aws_sdk_lambda/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -15,7 +15,6 @@ from .. import models as _models from ..models import ( - InvokeWithResponseStreamInput, InvokeWithResponseStreamOutput, InvokeWithResponseStreamResponseEvent, _InvokeWithResponseStreamResponseEventDeserializer, @@ -27,179 +26,92 @@ if TYPE_CHECKING: from ..models import ( - AddLayerVersionPermissionInput, AddLayerVersionPermissionOutput, - AddPermissionInput, AddPermissionOutput, - CheckpointDurableExecutionInput, CheckpointDurableExecutionOutput, - CreateAliasInput, CreateAliasOutput, - CreateCapacityProviderInput, CreateCapacityProviderOutput, - CreateCodeSigningConfigInput, CreateCodeSigningConfigOutput, - CreateEventSourceMappingInput, CreateEventSourceMappingOutput, - CreateFunctionInput, CreateFunctionOutput, - CreateFunctionUrlConfigInput, CreateFunctionUrlConfigOutput, - DeleteAliasInput, DeleteAliasOutput, - DeleteCapacityProviderInput, DeleteCapacityProviderOutput, - DeleteCodeSigningConfigInput, DeleteCodeSigningConfigOutput, - DeleteEventSourceMappingInput, DeleteEventSourceMappingOutput, - DeleteFunctionCodeSigningConfigInput, DeleteFunctionCodeSigningConfigOutput, - DeleteFunctionConcurrencyInput, DeleteFunctionConcurrencyOutput, - DeleteFunctionEventInvokeConfigInput, DeleteFunctionEventInvokeConfigOutput, - DeleteFunctionInput, DeleteFunctionOutput, - DeleteFunctionUrlConfigInput, DeleteFunctionUrlConfigOutput, - DeleteLayerVersionInput, DeleteLayerVersionOutput, - DeleteProvisionedConcurrencyConfigInput, DeleteProvisionedConcurrencyConfigOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - GetAccountSettingsInput, GetAccountSettingsOutput, - GetAliasInput, GetAliasOutput, - GetCapacityProviderInput, GetCapacityProviderOutput, - GetCodeSigningConfigInput, GetCodeSigningConfigOutput, - GetDurableExecutionHistoryInput, GetDurableExecutionHistoryOutput, - GetDurableExecutionInput, GetDurableExecutionOutput, - GetDurableExecutionStateInput, GetDurableExecutionStateOutput, - GetEventSourceMappingInput, GetEventSourceMappingOutput, - GetFunctionCodeSigningConfigInput, GetFunctionCodeSigningConfigOutput, - GetFunctionConcurrencyInput, GetFunctionConcurrencyOutput, - GetFunctionConfigurationInput, GetFunctionConfigurationOutput, - GetFunctionEventInvokeConfigInput, GetFunctionEventInvokeConfigOutput, - GetFunctionInput, GetFunctionOutput, - GetFunctionRecursionConfigInput, GetFunctionRecursionConfigOutput, - GetFunctionScalingConfigInput, GetFunctionScalingConfigOutput, - GetFunctionUrlConfigInput, GetFunctionUrlConfigOutput, - GetLayerVersionByArnInput, GetLayerVersionByArnOutput, - GetLayerVersionInput, GetLayerVersionOutput, - GetLayerVersionPolicyInput, GetLayerVersionPolicyOutput, - GetPolicyInput, GetPolicyOutput, - GetProvisionedConcurrencyConfigInput, GetProvisionedConcurrencyConfigOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetRuntimeManagementConfigInput, GetRuntimeManagementConfigOutput, - InvokeAsyncInput, InvokeAsyncOutput, - InvokeInput, InvokeOutput, - ListAliasesInput, ListAliasesOutput, - ListCapacityProvidersInput, ListCapacityProvidersOutput, - ListCodeSigningConfigsInput, ListCodeSigningConfigsOutput, - ListDurableExecutionsByFunctionInput, ListDurableExecutionsByFunctionOutput, - ListEventSourceMappingsInput, ListEventSourceMappingsOutput, - ListFunctionEventInvokeConfigsInput, ListFunctionEventInvokeConfigsOutput, - ListFunctionUrlConfigsInput, ListFunctionUrlConfigsOutput, - ListFunctionVersionsByCapacityProviderInput, ListFunctionVersionsByCapacityProviderOutput, - ListFunctionsByCodeSigningConfigInput, ListFunctionsByCodeSigningConfigOutput, - ListFunctionsInput, ListFunctionsOutput, - ListLayerVersionsInput, ListLayerVersionsOutput, - ListLayersInput, ListLayersOutput, - ListProvisionedConcurrencyConfigsInput, ListProvisionedConcurrencyConfigsOutput, - ListTagsInput, ListTagsOutput, - ListVersionsByFunctionInput, ListVersionsByFunctionOutput, - PublishLayerVersionInput, PublishLayerVersionOutput, - PublishVersionInput, PublishVersionOutput, - PutFunctionCodeSigningConfigInput, PutFunctionCodeSigningConfigOutput, - PutFunctionConcurrencyInput, PutFunctionConcurrencyOutput, - PutFunctionEventInvokeConfigInput, PutFunctionEventInvokeConfigOutput, - PutFunctionRecursionConfigInput, PutFunctionRecursionConfigOutput, - PutFunctionScalingConfigInput, PutFunctionScalingConfigOutput, - PutProvisionedConcurrencyConfigInput, PutProvisionedConcurrencyConfigOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - PutRuntimeManagementConfigInput, PutRuntimeManagementConfigOutput, - RemoveLayerVersionPermissionInput, RemoveLayerVersionPermissionOutput, - RemovePermissionInput, RemovePermissionOutput, - SendDurableExecutionCallbackFailureInput, SendDurableExecutionCallbackFailureOutput, - SendDurableExecutionCallbackHeartbeatInput, SendDurableExecutionCallbackHeartbeatOutput, - SendDurableExecutionCallbackSuccessInput, SendDurableExecutionCallbackSuccessOutput, - StopDurableExecutionInput, StopDurableExecutionOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAliasInput, UpdateAliasOutput, - UpdateCapacityProviderInput, UpdateCapacityProviderOutput, - UpdateCodeSigningConfigInput, UpdateCodeSigningConfigOutput, - UpdateEventSourceMappingInput, UpdateEventSourceMappingOutput, - UpdateFunctionCodeInput, UpdateFunctionCodeOutput, - UpdateFunctionConfigurationInput, UpdateFunctionConfigurationOutput, - UpdateFunctionEventInvokeConfigInput, UpdateFunctionEventInvokeConfigOutput, - UpdateFunctionUrlConfigInput, UpdateFunctionUrlConfigOutput, ) @@ -293,10 +205,25 @@ class AsyncLambdaClient(AsyncClient[AsyncLambdaConfig]): FAQs.](http://aws.amazon.com/certificate-manager/faqs/#certificates) """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def add_layer_version_permission( - self, input: AddLayerVersionPermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.AddLayerVersionPermissionInput + | _models.AddLayerVersionPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddLayerVersionPermissionOutput: ... + + @_overload + async def add_layer_version_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddLayerVersionPermissionInputDict], ) -> AddLayerVersionPermissionOutput: """ Adds permissions to the resource-based policy of a version of an [Lambda @@ -309,8 +236,6 @@ async def add_layer_version_permission( statement ID that you specified when you added it. Args: - input: - An instance of `AddLayerVersionPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -320,12 +245,33 @@ async def add_layer_version_permission( Returns: An instance of `AddLayerVersionPermissionOutput`. """ + + async def add_layer_version_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddLayerVersionPermissionOutput: return await self._invoke( - input, _models.ADD_LAYER_VERSION_PERMISSION, [], plugins + self._select_input(_models.ADD_LAYER_VERSION_PERMISSION, args, kwargs), + _models.ADD_LAYER_VERSION_PERMISSION, + [], + plugins, ) + @_overload + async def add_permission( + self, + request: _models.AddPermissionInput | _models.AddPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddPermissionOutput: ... + + @_overload async def add_permission( - self, input: AddPermissionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddPermissionInputDict], ) -> AddPermissionOutput: """ Grants a @@ -334,7 +280,7 @@ async def add_permission( level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. - Note: Lambda does not support adding policies to version $$LATEST. + Note: Lambda does not support adding policies to version $LATEST. To grant permission to another account, specify the account ID as the `Principal`. To grant permission to an organization defined in @@ -353,8 +299,6 @@ async def add_permission( Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html). Args: - input: - An instance of `AddPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -364,12 +308,34 @@ async def add_permission( Returns: An instance of `AddPermissionOutput`. """ - return await self._invoke(input, _models.ADD_PERMISSION, [], plugins) + async def add_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddPermissionOutput: + return await self._invoke( + self._select_input(_models.ADD_PERMISSION, args, kwargs), + _models.ADD_PERMISSION, + [], + plugins, + ) + + @_overload + async def checkpoint_durable_execution( + self, + request: _models.CheckpointDurableExecutionInput + | _models.CheckpointDurableExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CheckpointDurableExecutionOutput: ... + + @_overload async def checkpoint_durable_execution( self, - input: CheckpointDurableExecutionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CheckpointDurableExecutionInputDict], ) -> CheckpointDurableExecutionOutput: """ Saves the progress of a [durable @@ -385,8 +351,6 @@ async def checkpoint_durable_execution( state updates. Args: - input: - An instance of `CheckpointDurableExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -396,12 +360,33 @@ async def checkpoint_durable_execution( Returns: An instance of `CheckpointDurableExecutionOutput`. """ + + async def checkpoint_durable_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CheckpointDurableExecutionOutput: return await self._invoke( - input, _models.CHECKPOINT_DURABLE_EXECUTION, [], plugins + self._select_input(_models.CHECKPOINT_DURABLE_EXECUTION, args, kwargs), + _models.CHECKPOINT_DURABLE_EXECUTION, + [], + plugins, ) + @_overload + async def create_alias( + self, + request: _models.CreateAliasInput | _models.CreateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAliasOutput: ... + + @_overload async def create_alias( - self, input: CreateAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAliasInputDict], ) -> CreateAliasOutput: """ Creates an @@ -414,8 +399,6 @@ async def create_alias( and the percentage of invocation requests that it receives. Args: - input: - An instance of `CreateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -425,18 +408,40 @@ async def create_alias( Returns: An instance of `CreateAliasOutput`. """ - return await self._invoke(input, _models.CREATE_ALIAS, [], plugins) + async def create_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAliasOutput: + return await self._invoke( + self._select_input(_models.CREATE_ALIAS, args, kwargs), + _models.CREATE_ALIAS, + [], + plugins, + ) + + @_overload + async def create_capacity_provider( + self, + request: _models.CreateCapacityProviderInput + | _models.CreateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityProviderOutput: ... + + @_overload async def create_capacity_provider( - self, input: CreateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityProviderInputDict], ) -> CreateCapacityProviderOutput: """ Creates a capacity provider that manages compute resources for Lambda Event Functions Args: - input: - An instance of `CreateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -446,10 +451,34 @@ async def create_capacity_provider( Returns: An instance of `CreateCapacityProviderOutput`. """ - return await self._invoke(input, _models.CREATE_CAPACITY_PROVIDER, [], plugins) + async def create_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.CREATE_CAPACITY_PROVIDER, args, kwargs), + _models.CREATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def create_code_signing_config( + self, + request: _models.CreateCodeSigningConfigInput + | _models.CreateCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCodeSigningConfigOutput: ... + + @_overload async def create_code_signing_config( - self, input: CreateCodeSigningConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCodeSigningConfigInputDict], ) -> CreateCodeSigningConfigOutput: """ Creates a code signing configuration. A [code signing @@ -459,8 +488,6 @@ async def create_code_signing_config( fail). Args: - input: - An instance of `CreateCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -470,12 +497,34 @@ async def create_code_signing_config( Returns: An instance of `CreateCodeSigningConfigOutput`. """ + + async def create_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCodeSigningConfigOutput: return await self._invoke( - input, _models.CREATE_CODE_SIGNING_CONFIG, [], plugins + self._select_input(_models.CREATE_CODE_SIGNING_CONFIG, args, kwargs), + _models.CREATE_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + async def create_event_source_mapping( + self, + request: _models.CreateEventSourceMappingInput + | _models.CreateEventSourceMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEventSourceMappingOutput: ... + + @_overload async def create_event_source_mapping( - self, input: CreateEventSourceMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEventSourceMappingInputDict], ) -> CreateEventSourceMappingOutput: """ Creates a mapping between an event source and an Lambda Event Function. @@ -555,8 +604,6 @@ async def create_event_source_mapping( DocumentDB](https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration) Args: - input: - An instance of `CreateEventSourceMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -566,12 +613,33 @@ async def create_event_source_mapping( Returns: An instance of `CreateEventSourceMappingOutput`. """ + + async def create_event_source_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEventSourceMappingOutput: return await self._invoke( - input, _models.CREATE_EVENT_SOURCE_MAPPING, [], plugins + self._select_input(_models.CREATE_EVENT_SOURCE_MAPPING, args, kwargs), + _models.CREATE_EVENT_SOURCE_MAPPING, + [], + plugins, ) + @_overload + async def create_function( + self, + request: _models.CreateFunctionInput | _models.CreateFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFunctionOutput: ... + + @_overload async def create_function( - self, input: CreateFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFunctionInputDict], ) -> CreateFunctionOutput: """ Creates a Lambda Event Function. To create a function, you need a @@ -644,8 +712,6 @@ async def create_function( functions](https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html). Args: - input: - An instance of `CreateFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -655,10 +721,34 @@ async def create_function( Returns: An instance of `CreateFunctionOutput`. """ - return await self._invoke(input, _models.CREATE_FUNCTION, [], plugins) + async def create_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFunctionOutput: + return await self._invoke( + self._select_input(_models.CREATE_FUNCTION, args, kwargs), + _models.CREATE_FUNCTION, + [], + plugins, + ) + + @_overload + async def create_function_url_config( + self, + request: _models.CreateFunctionUrlConfigInput + | _models.CreateFunctionUrlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFunctionUrlConfigOutput: ... + + @_overload async def create_function_url_config( - self, input: CreateFunctionUrlConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFunctionUrlConfigInputDict], ) -> CreateFunctionUrlConfigOutput: """ Creates a Lambda function URL with the specified configuration @@ -666,8 +756,6 @@ async def create_function_url_config( use to invoke your function. Args: - input: - An instance of `CreateFunctionUrlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -677,20 +765,39 @@ async def create_function_url_config( Returns: An instance of `CreateFunctionUrlConfigOutput`. """ + + async def create_function_url_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFunctionUrlConfigOutput: return await self._invoke( - input, _models.CREATE_FUNCTION_URL_CONFIG, [], plugins + self._select_input(_models.CREATE_FUNCTION_URL_CONFIG, args, kwargs), + _models.CREATE_FUNCTION_URL_CONFIG, + [], + plugins, ) + @_overload + async def delete_alias( + self, + request: _models.DeleteAliasInput | _models.DeleteAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAliasOutput: ... + + @_overload async def delete_alias( - self, input: DeleteAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAliasInputDict], ) -> DeleteAliasOutput: """ Deletes a Lambda Event Function [alias](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). Args: - input: - An instance of `DeleteAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -700,18 +807,40 @@ async def delete_alias( Returns: An instance of `DeleteAliasOutput`. """ - return await self._invoke(input, _models.DELETE_ALIAS, [], plugins) + async def delete_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAliasOutput: + return await self._invoke( + self._select_input(_models.DELETE_ALIAS, args, kwargs), + _models.DELETE_ALIAS, + [], + plugins, + ) + + @_overload + async def delete_capacity_provider( + self, + request: _models.DeleteCapacityProviderInput + | _models.DeleteCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCapacityProviderOutput: ... + + @_overload async def delete_capacity_provider( - self, input: DeleteCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityProviderInputDict], ) -> DeleteCapacityProviderOutput: """ Deletes a capacity provider. You cannot delete a capacity provider that is currently being used by Lambda functions. Args: - input: - An instance of `DeleteCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -721,18 +850,40 @@ async def delete_capacity_provider( Returns: An instance of `DeleteCapacityProviderOutput`. """ - return await self._invoke(input, _models.DELETE_CAPACITY_PROVIDER, [], plugins) + async def delete_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.DELETE_CAPACITY_PROVIDER, args, kwargs), + _models.DELETE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def delete_code_signing_config( + self, + request: _models.DeleteCodeSigningConfigInput + | _models.DeleteCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCodeSigningConfigOutput: ... + + @_overload async def delete_code_signing_config( - self, input: DeleteCodeSigningConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCodeSigningConfigInputDict], ) -> DeleteCodeSigningConfigOutput: """ Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it. Args: - input: - An instance of `DeleteCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -742,12 +893,34 @@ async def delete_code_signing_config( Returns: An instance of `DeleteCodeSigningConfigOutput`. """ + + async def delete_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCodeSigningConfigOutput: return await self._invoke( - input, _models.DELETE_CODE_SIGNING_CONFIG, [], plugins + self._select_input(_models.DELETE_CODE_SIGNING_CONFIG, args, kwargs), + _models.DELETE_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + async def delete_event_source_mapping( + self, + request: _models.DeleteEventSourceMappingInput + | _models.DeleteEventSourceMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEventSourceMappingOutput: ... + + @_overload async def delete_event_source_mapping( - self, input: DeleteEventSourceMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEventSourceMappingInputDict], ) -> DeleteEventSourceMappingOutput: """ Deletes an [event source @@ -759,8 +932,6 @@ async def delete_event_source_mapping( and might not be completely deleted for several seconds. Args: - input: - An instance of `DeleteEventSourceMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -770,12 +941,33 @@ async def delete_event_source_mapping( Returns: An instance of `DeleteEventSourceMappingOutput`. """ + + async def delete_event_source_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEventSourceMappingOutput: return await self._invoke( - input, _models.DELETE_EVENT_SOURCE_MAPPING, [], plugins + self._select_input(_models.DELETE_EVENT_SOURCE_MAPPING, args, kwargs), + _models.DELETE_EVENT_SOURCE_MAPPING, + [], + plugins, ) + @_overload + async def delete_function( + self, + request: _models.DeleteFunctionInput | _models.DeleteFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionOutput: ... + + @_overload async def delete_function( - self, input: DeleteFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionInputDict], ) -> DeleteFunctionOutput: """ Deletes a Lambda Event Function. To delete a specific function version, @@ -793,8 +985,6 @@ async def delete_function( where you originally configured it. Args: - input: - An instance of `DeleteFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -804,19 +994,39 @@ async def delete_function( Returns: An instance of `DeleteFunctionOutput`. """ - return await self._invoke(input, _models.DELETE_FUNCTION, [], plugins) + async def delete_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionOutput: + return await self._invoke( + self._select_input(_models.DELETE_FUNCTION, args, kwargs), + _models.DELETE_FUNCTION, + [], + plugins, + ) + + @_overload + async def delete_function_code_signing_config( + self, + request: _models.DeleteFunctionCodeSigningConfigInput + | _models.DeleteFunctionCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionCodeSigningConfigOutput: ... + + @_overload async def delete_function_code_signing_config( self, - input: DeleteFunctionCodeSigningConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionCodeSigningConfigInputDict], ) -> DeleteFunctionCodeSigningConfigOutput: """ Removes the code signing configuration from the function. Args: - input: - An instance of `DeleteFunctionCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -826,19 +1036,41 @@ async def delete_function_code_signing_config( Returns: An instance of `DeleteFunctionCodeSigningConfigOutput`. """ + + async def delete_function_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionCodeSigningConfigOutput: return await self._invoke( - input, _models.DELETE_FUNCTION_CODE_SIGNING_CONFIG, [], plugins + self._select_input( + _models.DELETE_FUNCTION_CODE_SIGNING_CONFIG, args, kwargs + ), + _models.DELETE_FUNCTION_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + async def delete_function_concurrency( + self, + request: _models.DeleteFunctionConcurrencyInput + | _models.DeleteFunctionConcurrencyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionConcurrencyOutput: ... + + @_overload async def delete_function_concurrency( - self, input: DeleteFunctionConcurrencyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionConcurrencyInputDict], ) -> DeleteFunctionConcurrencyOutput: """ Removes a concurrent execution limit from a Lambda Event Function. Args: - input: - An instance of `DeleteFunctionConcurrencyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -848,14 +1080,34 @@ async def delete_function_concurrency( Returns: An instance of `DeleteFunctionConcurrencyOutput`. """ + + async def delete_function_concurrency( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionConcurrencyOutput: return await self._invoke( - input, _models.DELETE_FUNCTION_CONCURRENCY, [], plugins + self._select_input(_models.DELETE_FUNCTION_CONCURRENCY, args, kwargs), + _models.DELETE_FUNCTION_CONCURRENCY, + [], + plugins, ) + @_overload + async def delete_function_event_invoke_config( + self, + request: _models.DeleteFunctionEventInvokeConfigInput + | _models.DeleteFunctionEventInvokeConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionEventInvokeConfigOutput: ... + + @_overload async def delete_function_event_invoke_config( self, - input: DeleteFunctionEventInvokeConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionEventInvokeConfigInputDict], ) -> DeleteFunctionEventInvokeConfigOutput: """ Deletes the configuration for asynchronous invocation for a function, @@ -865,8 +1117,6 @@ async def delete_function_event_invoke_config( PutFunctionEventInvokeConfig. Args: - input: - An instance of `DeleteFunctionEventInvokeConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -876,12 +1126,36 @@ async def delete_function_event_invoke_config( Returns: An instance of `DeleteFunctionEventInvokeConfigOutput`. """ + + async def delete_function_event_invoke_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionEventInvokeConfigOutput: return await self._invoke( - input, _models.DELETE_FUNCTION_EVENT_INVOKE_CONFIG, [], plugins + self._select_input( + _models.DELETE_FUNCTION_EVENT_INVOKE_CONFIG, args, kwargs + ), + _models.DELETE_FUNCTION_EVENT_INVOKE_CONFIG, + [], + plugins, ) + @_overload + async def delete_function_url_config( + self, + request: _models.DeleteFunctionUrlConfigInput + | _models.DeleteFunctionUrlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionUrlConfigOutput: ... + + @_overload async def delete_function_url_config( - self, input: DeleteFunctionUrlConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionUrlConfigInputDict], ) -> DeleteFunctionUrlConfigOutput: """ Deletes a Lambda function URL. When you delete a function URL, you @@ -889,8 +1163,6 @@ async def delete_function_url_config( URL address. Args: - input: - An instance of `DeleteFunctionUrlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -900,12 +1172,33 @@ async def delete_function_url_config( Returns: An instance of `DeleteFunctionUrlConfigOutput`. """ + + async def delete_function_url_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionUrlConfigOutput: return await self._invoke( - input, _models.DELETE_FUNCTION_URL_CONFIG, [], plugins + self._select_input(_models.DELETE_FUNCTION_URL_CONFIG, args, kwargs), + _models.DELETE_FUNCTION_URL_CONFIG, + [], + plugins, ) + @_overload + async def delete_layer_version( + self, + request: _models.DeleteLayerVersionInput | _models.DeleteLayerVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLayerVersionOutput: ... + + @_overload async def delete_layer_version( - self, input: DeleteLayerVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLayerVersionInputDict], ) -> DeleteLayerVersionOutput: """ Deletes a version of an [Lambda @@ -915,8 +1208,6 @@ async def delete_layer_version( functions refer to it. Args: - input: - An instance of `DeleteLayerVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -926,19 +1217,39 @@ async def delete_layer_version( Returns: An instance of `DeleteLayerVersionOutput`. """ - return await self._invoke(input, _models.DELETE_LAYER_VERSION, [], plugins) + async def delete_layer_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLayerVersionOutput: + return await self._invoke( + self._select_input(_models.DELETE_LAYER_VERSION, args, kwargs), + _models.DELETE_LAYER_VERSION, + [], + plugins, + ) + + @_overload + async def delete_provisioned_concurrency_config( + self, + request: _models.DeleteProvisionedConcurrencyConfigInput + | _models.DeleteProvisionedConcurrencyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteProvisionedConcurrencyConfigOutput: ... + + @_overload async def delete_provisioned_concurrency_config( self, - input: DeleteProvisionedConcurrencyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteProvisionedConcurrencyConfigInputDict], ) -> DeleteProvisionedConcurrencyConfigOutput: """ Deletes the provisioned concurrency configuration for a function. Args: - input: - An instance of `DeleteProvisionedConcurrencyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -948,12 +1259,36 @@ async def delete_provisioned_concurrency_config( Returns: An instance of `DeleteProvisionedConcurrencyConfigOutput`. """ + + async def delete_provisioned_concurrency_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteProvisionedConcurrencyConfigOutput: return await self._invoke( - input, _models.DELETE_PROVISIONED_CONCURRENCY_CONFIG, [], plugins + self._select_input( + _models.DELETE_PROVISIONED_CONCURRENCY_CONFIG, args, kwargs + ), + _models.DELETE_PROVISIONED_CONCURRENCY_CONFIG, + [], + plugins, ) + @_overload + async def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes a [resource-based @@ -961,8 +1296,6 @@ async def delete_resource_policy( from a Lambda resource. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -972,10 +1305,33 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def get_account_settings( + self, + request: _models.GetAccountSettingsInput | _models.GetAccountSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountSettingsOutput: ... + + @_overload async def get_account_settings( - self, input: GetAccountSettingsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountSettingsInputDict], ) -> GetAccountSettingsOutput: """ Retrieves details about your account's @@ -983,8 +1339,6 @@ async def get_account_settings( usage in an Amazon Web Services Region. Args: - input: - An instance of `GetAccountSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -994,18 +1348,39 @@ async def get_account_settings( Returns: An instance of `GetAccountSettingsOutput`. """ - return await self._invoke(input, _models.GET_ACCOUNT_SETTINGS, [], plugins) + async def get_account_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountSettingsOutput: + return await self._invoke( + self._select_input(_models.GET_ACCOUNT_SETTINGS, args, kwargs), + _models.GET_ACCOUNT_SETTINGS, + [], + plugins, + ) + + @_overload + async def get_alias( + self, + request: _models.GetAliasInput | _models.GetAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAliasOutput: ... + + @_overload async def get_alias( - self, input: GetAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAliasInputDict], ) -> GetAliasOutput: """ Returns details about a Lambda Event Function [alias](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). Args: - input: - An instance of `GetAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1015,18 +1390,40 @@ async def get_alias( Returns: An instance of `GetAliasOutput`. """ - return await self._invoke(input, _models.GET_ALIAS, [], plugins) + async def get_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAliasOutput: + return await self._invoke( + self._select_input(_models.GET_ALIAS, args, kwargs), + _models.GET_ALIAS, + [], + plugins, + ) + + @_overload + async def get_capacity_provider( + self, + request: _models.GetCapacityProviderInput + | _models.GetCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityProviderOutput: ... + + @_overload async def get_capacity_provider( - self, input: GetCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityProviderInputDict], ) -> GetCapacityProviderOutput: """ Retrieves information about a specific capacity provider, including its configuration, state, and associated resources. Args: - input: - An instance of `GetCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1036,17 +1433,39 @@ async def get_capacity_provider( Returns: An instance of `GetCapacityProviderOutput`. """ - return await self._invoke(input, _models.GET_CAPACITY_PROVIDER, [], plugins) + async def get_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.GET_CAPACITY_PROVIDER, args, kwargs), + _models.GET_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload async def get_code_signing_config( - self, input: GetCodeSigningConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCodeSigningConfigInput + | _models.GetCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCodeSigningConfigOutput: ... + + @_overload + async def get_code_signing_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCodeSigningConfigInputDict], ) -> GetCodeSigningConfigOutput: """ Returns information about the specified code signing configuration. Args: - input: - An instance of `GetCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1056,10 +1475,34 @@ async def get_code_signing_config( Returns: An instance of `GetCodeSigningConfigOutput`. """ - return await self._invoke(input, _models.GET_CODE_SIGNING_CONFIG, [], plugins) + async def get_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCodeSigningConfigOutput: + return await self._invoke( + self._select_input(_models.GET_CODE_SIGNING_CONFIG, args, kwargs), + _models.GET_CODE_SIGNING_CONFIG, + [], + plugins, + ) + + @_overload + async def get_durable_execution( + self, + request: _models.GetDurableExecutionInput + | _models.GetDurableExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDurableExecutionOutput: ... + + @_overload async def get_durable_execution( - self, input: GetDurableExecutionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDurableExecutionInputDict], ) -> GetDurableExecutionOutput: """ Retrieves detailed information about a specific [durable @@ -1069,8 +1512,6 @@ async def get_durable_execution( statistics. Args: - input: - An instance of `GetDurableExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1080,14 +1521,36 @@ async def get_durable_execution( Returns: An instance of `GetDurableExecutionOutput`. """ - return await self._invoke(input, _models.GET_DURABLE_EXECUTION, [], plugins) + async def get_durable_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDurableExecutionOutput: + return await self._invoke( + self._select_input(_models.GET_DURABLE_EXECUTION, args, kwargs), + _models.GET_DURABLE_EXECUTION, + [], + plugins, + ) + + @_overload async def get_durable_execution_history( self, - input: GetDurableExecutionHistoryInput, + request: _models.GetDurableExecutionHistoryInput + | _models.GetDurableExecutionHistoryInputDict, + /, + *, plugins: list[Plugin] | None = None, - ) -> GetDurableExecutionHistoryOutput: - """ + ) -> GetDurableExecutionHistoryOutput: ... + + @_overload + async def get_durable_execution_history( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDurableExecutionHistoryInputDict], + ) -> GetDurableExecutionHistoryOutput: + """ Retrieves the execution history for a [durable execution](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html), showing all the steps, callbacks, and events that occurred during the @@ -1100,8 +1563,6 @@ async def get_durable_execution_history( callback payloads. Args: - input: - An instance of `GetDurableExecutionHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1111,12 +1572,34 @@ async def get_durable_execution_history( Returns: An instance of `GetDurableExecutionHistoryOutput`. """ + + async def get_durable_execution_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDurableExecutionHistoryOutput: return await self._invoke( - input, _models.GET_DURABLE_EXECUTION_HISTORY, [], plugins + self._select_input(_models.GET_DURABLE_EXECUTION_HISTORY, args, kwargs), + _models.GET_DURABLE_EXECUTION_HISTORY, + [], + plugins, ) + @_overload async def get_durable_execution_state( - self, input: GetDurableExecutionStateInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDurableExecutionStateInput + | _models.GetDurableExecutionStateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDurableExecutionStateOutput: ... + + @_overload + async def get_durable_execution_state( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDurableExecutionStateInputDict], ) -> GetDurableExecutionStateOutput: """ Retrieves the current execution state required for the replay process @@ -1131,8 +1614,6 @@ async def get_durable_execution_state( operation details since they don't need to be replayed. Args: - input: - An instance of `GetDurableExecutionStateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1142,20 +1623,40 @@ async def get_durable_execution_state( Returns: An instance of `GetDurableExecutionStateOutput`. """ + + async def get_durable_execution_state( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDurableExecutionStateOutput: return await self._invoke( - input, _models.GET_DURABLE_EXECUTION_STATE, [], plugins + self._select_input(_models.GET_DURABLE_EXECUTION_STATE, args, kwargs), + _models.GET_DURABLE_EXECUTION_STATE, + [], + plugins, ) + @_overload async def get_event_source_mapping( - self, input: GetEventSourceMappingInput, plugins: list[Plugin] | None = None + self, + request: _models.GetEventSourceMappingInput + | _models.GetEventSourceMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventSourceMappingOutput: ... + + @_overload + async def get_event_source_mapping( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventSourceMappingInputDict], ) -> GetEventSourceMappingOutput: """ Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. Args: - input: - An instance of `GetEventSourceMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1165,10 +1666,33 @@ async def get_event_source_mapping( Returns: An instance of `GetEventSourceMappingOutput`. """ - return await self._invoke(input, _models.GET_EVENT_SOURCE_MAPPING, [], plugins) + async def get_event_source_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventSourceMappingOutput: + return await self._invoke( + self._select_input(_models.GET_EVENT_SOURCE_MAPPING, args, kwargs), + _models.GET_EVENT_SOURCE_MAPPING, + [], + plugins, + ) + + @_overload + async def get_function( + self, + request: _models.GetFunctionInput | _models.GetFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionOutput: ... + + @_overload async def get_function( - self, input: GetFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionInputDict], ) -> GetFunctionOutput: """ Returns information about a Lambda Event Function or function version, @@ -1177,8 +1701,6 @@ async def get_function( specific to that version are returned. Args: - input: - An instance of `GetFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1188,19 +1710,39 @@ async def get_function( Returns: An instance of `GetFunctionOutput`. """ - return await self._invoke(input, _models.GET_FUNCTION, [], plugins) + async def get_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionOutput: + return await self._invoke( + self._select_input(_models.GET_FUNCTION, args, kwargs), + _models.GET_FUNCTION, + [], + plugins, + ) + + @_overload + async def get_function_code_signing_config( + self, + request: _models.GetFunctionCodeSigningConfigInput + | _models.GetFunctionCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionCodeSigningConfigOutput: ... + + @_overload async def get_function_code_signing_config( self, - input: GetFunctionCodeSigningConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionCodeSigningConfigInputDict], ) -> GetFunctionCodeSigningConfigOutput: """ Returns the code signing configuration for the specified function. Args: - input: - An instance of `GetFunctionCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1210,12 +1752,34 @@ async def get_function_code_signing_config( Returns: An instance of `GetFunctionCodeSigningConfigOutput`. """ + + async def get_function_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionCodeSigningConfigOutput: return await self._invoke( - input, _models.GET_FUNCTION_CODE_SIGNING_CONFIG, [], plugins + self._select_input(_models.GET_FUNCTION_CODE_SIGNING_CONFIG, args, kwargs), + _models.GET_FUNCTION_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload async def get_function_concurrency( - self, input: GetFunctionConcurrencyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFunctionConcurrencyInput + | _models.GetFunctionConcurrencyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionConcurrencyOutput: ... + + @_overload + async def get_function_concurrency( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionConcurrencyInputDict], ) -> GetFunctionConcurrencyOutput: """ Returns details about the reserved concurrency configuration for a @@ -1223,8 +1787,6 @@ async def get_function_concurrency( PutFunctionConcurrency. Args: - input: - An instance of `GetFunctionConcurrencyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1234,10 +1796,34 @@ async def get_function_concurrency( Returns: An instance of `GetFunctionConcurrencyOutput`. """ - return await self._invoke(input, _models.GET_FUNCTION_CONCURRENCY, [], plugins) + async def get_function_concurrency( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionConcurrencyOutput: + return await self._invoke( + self._select_input(_models.GET_FUNCTION_CONCURRENCY, args, kwargs), + _models.GET_FUNCTION_CONCURRENCY, + [], + plugins, + ) + + @_overload + async def get_function_configuration( + self, + request: _models.GetFunctionConfigurationInput + | _models.GetFunctionConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionConfigurationOutput: ... + + @_overload async def get_function_configuration( - self, input: GetFunctionConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionConfigurationInputDict], ) -> GetFunctionConfigurationOutput: """ Returns the version-specific settings of a Lambda Event Function or @@ -1249,8 +1835,6 @@ async def get_function_configuration( use GetFunction. Args: - input: - An instance of `GetFunctionConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1260,14 +1844,34 @@ async def get_function_configuration( Returns: An instance of `GetFunctionConfigurationOutput`. """ + + async def get_function_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionConfigurationOutput: return await self._invoke( - input, _models.GET_FUNCTION_CONFIGURATION, [], plugins + self._select_input(_models.GET_FUNCTION_CONFIGURATION, args, kwargs), + _models.GET_FUNCTION_CONFIGURATION, + [], + plugins, ) + @_overload async def get_function_event_invoke_config( self, - input: GetFunctionEventInvokeConfigInput, + request: _models.GetFunctionEventInvokeConfigInput + | _models.GetFunctionEventInvokeConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetFunctionEventInvokeConfigOutput: ... + + @_overload + async def get_function_event_invoke_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionEventInvokeConfigInputDict], ) -> GetFunctionEventInvokeConfigOutput: """ Retrieves the configuration for asynchronous invocation for a function, @@ -1277,8 +1881,6 @@ async def get_function_event_invoke_config( PutFunctionEventInvokeConfig. Args: - input: - An instance of `GetFunctionEventInvokeConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1288,14 +1890,34 @@ async def get_function_event_invoke_config( Returns: An instance of `GetFunctionEventInvokeConfigOutput`. """ + + async def get_function_event_invoke_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionEventInvokeConfigOutput: return await self._invoke( - input, _models.GET_FUNCTION_EVENT_INVOKE_CONFIG, [], plugins + self._select_input(_models.GET_FUNCTION_EVENT_INVOKE_CONFIG, args, kwargs), + _models.GET_FUNCTION_EVENT_INVOKE_CONFIG, + [], + plugins, ) + @_overload + async def get_function_recursion_config( + self, + request: _models.GetFunctionRecursionConfigInput + | _models.GetFunctionRecursionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionRecursionConfigOutput: ... + + @_overload async def get_function_recursion_config( self, - input: GetFunctionRecursionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionRecursionConfigInputDict], ) -> GetFunctionRecursionConfigOutput: """ Returns your function's [recursive loop @@ -1303,8 +1925,6 @@ async def get_function_recursion_config( configuration. Args: - input: - An instance of `GetFunctionRecursionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1314,20 +1934,40 @@ async def get_function_recursion_config( Returns: An instance of `GetFunctionRecursionConfigOutput`. """ + + async def get_function_recursion_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionRecursionConfigOutput: return await self._invoke( - input, _models.GET_FUNCTION_RECURSION_CONFIG, [], plugins + self._select_input(_models.GET_FUNCTION_RECURSION_CONFIG, args, kwargs), + _models.GET_FUNCTION_RECURSION_CONFIG, + [], + plugins, ) + @_overload async def get_function_scaling_config( - self, input: GetFunctionScalingConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFunctionScalingConfigInput + | _models.GetFunctionScalingConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionScalingConfigOutput: ... + + @_overload + async def get_function_scaling_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionScalingConfigInputDict], ) -> GetFunctionScalingConfigOutput: """ Retrieves the scaling configuration for a Lambda Managed Instances function. Args: - input: - An instance of `GetFunctionScalingConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1337,19 +1977,39 @@ async def get_function_scaling_config( Returns: An instance of `GetFunctionScalingConfigOutput`. """ + + async def get_function_scaling_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionScalingConfigOutput: return await self._invoke( - input, _models.GET_FUNCTION_SCALING_CONFIG, [], plugins + self._select_input(_models.GET_FUNCTION_SCALING_CONFIG, args, kwargs), + _models.GET_FUNCTION_SCALING_CONFIG, + [], + plugins, ) + @_overload async def get_function_url_config( - self, input: GetFunctionUrlConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFunctionUrlConfigInput + | _models.GetFunctionUrlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionUrlConfigOutput: ... + + @_overload + async def get_function_url_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionUrlConfigInputDict], ) -> GetFunctionUrlConfigOutput: """ Returns details about a Lambda function URL. Args: - input: - An instance of `GetFunctionUrlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1359,10 +2019,33 @@ async def get_function_url_config( Returns: An instance of `GetFunctionUrlConfigOutput`. """ - return await self._invoke(input, _models.GET_FUNCTION_URL_CONFIG, [], plugins) + async def get_function_url_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionUrlConfigOutput: + return await self._invoke( + self._select_input(_models.GET_FUNCTION_URL_CONFIG, args, kwargs), + _models.GET_FUNCTION_URL_CONFIG, + [], + plugins, + ) + + @_overload async def get_layer_version( - self, input: GetLayerVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLayerVersionInput | _models.GetLayerVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLayerVersionOutput: ... + + @_overload + async def get_layer_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLayerVersionInputDict], ) -> GetLayerVersionOutput: """ Returns information about a version of an [Lambda @@ -1370,8 +2053,6 @@ async def get_layer_version( with a link to download the layer archive that's valid for 10 minutes. Args: - input: - An instance of `GetLayerVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1381,10 +2062,34 @@ async def get_layer_version( Returns: An instance of `GetLayerVersionOutput`. """ - return await self._invoke(input, _models.GET_LAYER_VERSION, [], plugins) + async def get_layer_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLayerVersionOutput: + return await self._invoke( + self._select_input(_models.GET_LAYER_VERSION, args, kwargs), + _models.GET_LAYER_VERSION, + [], + plugins, + ) + + @_overload + async def get_layer_version_by_arn( + self, + request: _models.GetLayerVersionByArnInput + | _models.GetLayerVersionByArnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLayerVersionByArnOutput: ... + + @_overload async def get_layer_version_by_arn( - self, input: GetLayerVersionByArnInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLayerVersionByArnInputDict], ) -> GetLayerVersionByArnOutput: """ Returns information about a version of an [Lambda @@ -1392,8 +2097,6 @@ async def get_layer_version_by_arn( with a link to download the layer archive that's valid for 10 minutes. Args: - input: - An instance of `GetLayerVersionByArnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1403,10 +2106,34 @@ async def get_layer_version_by_arn( Returns: An instance of `GetLayerVersionByArnOutput`. """ - return await self._invoke(input, _models.GET_LAYER_VERSION_BY_ARN, [], plugins) + async def get_layer_version_by_arn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLayerVersionByArnOutput: + return await self._invoke( + self._select_input(_models.GET_LAYER_VERSION_BY_ARN, args, kwargs), + _models.GET_LAYER_VERSION_BY_ARN, + [], + plugins, + ) + + @_overload async def get_layer_version_policy( - self, input: GetLayerVersionPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLayerVersionPolicyInput + | _models.GetLayerVersionPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLayerVersionPolicyOutput: ... + + @_overload + async def get_layer_version_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLayerVersionPolicyInputDict], ) -> GetLayerVersionPolicyOutput: """ Returns the permission policy for a version of an [Lambda @@ -1414,8 +2141,6 @@ async def get_layer_version_policy( For more information, see AddLayerVersionPermission. Args: - input: - An instance of `GetLayerVersionPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1425,10 +2150,33 @@ async def get_layer_version_policy( Returns: An instance of `GetLayerVersionPolicyOutput`. """ - return await self._invoke(input, _models.GET_LAYER_VERSION_POLICY, [], plugins) + async def get_layer_version_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLayerVersionPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_LAYER_VERSION_POLICY, args, kwargs), + _models.GET_LAYER_VERSION_POLICY, + [], + plugins, + ) + + @_overload + async def get_policy( + self, + request: _models.GetPolicyInput | _models.GetPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyOutput: ... + + @_overload async def get_policy( - self, input: GetPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyInputDict], ) -> GetPolicyOutput: """ Returns the [resource-based IAM @@ -1436,8 +2184,6 @@ async def get_policy( for a function, version, or alias. Args: - input: - An instance of `GetPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1447,20 +2193,40 @@ async def get_policy( Returns: An instance of `GetPolicyOutput`. """ - return await self._invoke(input, _models.GET_POLICY, [], plugins) + async def get_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY, args, kwargs), + _models.GET_POLICY, + [], + plugins, + ) + + @_overload + async def get_provisioned_concurrency_config( + self, + request: _models.GetProvisionedConcurrencyConfigInput + | _models.GetProvisionedConcurrencyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetProvisionedConcurrencyConfigOutput: ... + + @_overload async def get_provisioned_concurrency_config( self, - input: GetProvisionedConcurrencyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetProvisionedConcurrencyConfigInputDict], ) -> GetProvisionedConcurrencyConfigOutput: """ Retrieves the provisioned concurrency configuration for a function's alias or version. Args: - input: - An instance of `GetProvisionedConcurrencyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1470,12 +2236,35 @@ async def get_provisioned_concurrency_config( Returns: An instance of `GetProvisionedConcurrencyConfigOutput`. """ + + async def get_provisioned_concurrency_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetProvisionedConcurrencyConfigOutput: return await self._invoke( - input, _models.GET_PROVISIONED_CONCURRENCY_CONFIG, [], plugins + self._select_input( + _models.GET_PROVISIONED_CONCURRENCY_CONFIG, args, kwargs + ), + _models.GET_PROVISIONED_CONCURRENCY_CONFIG, + [], + plugins, ) + @_overload + async def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the [resource-based @@ -1483,8 +2272,6 @@ async def get_resource_policy( attached to a Lambda resource. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1494,12 +2281,34 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload async def get_runtime_management_config( self, - input: GetRuntimeManagementConfigInput, + request: _models.GetRuntimeManagementConfigInput + | _models.GetRuntimeManagementConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetRuntimeManagementConfigOutput: ... + + @_overload + async def get_runtime_management_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRuntimeManagementConfigInputDict], ) -> GetRuntimeManagementConfigOutput: """ Retrieves the runtime management configuration for a function's @@ -1511,8 +2320,6 @@ async def get_runtime_management_config( updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). Args: - input: - An instance of `GetRuntimeManagementConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1522,12 +2329,33 @@ async def get_runtime_management_config( Returns: An instance of `GetRuntimeManagementConfigOutput`. """ + + async def get_runtime_management_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRuntimeManagementConfigOutput: return await self._invoke( - input, _models.GET_RUNTIME_MANAGEMENT_CONFIG, [], plugins + self._select_input(_models.GET_RUNTIME_MANAGEMENT_CONFIG, args, kwargs), + _models.GET_RUNTIME_MANAGEMENT_CONFIG, + [], + plugins, ) + @_overload + async def invoke( + self, + request: _models.InvokeInput | _models.InvokeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeOutput: ... + + @_overload async def invoke( - self, input: InvokeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeInputDict], ) -> InvokeOutput: """ Invokes a Lambda Event Function. You can invoke a function synchronously @@ -1587,8 +2415,6 @@ async def invoke( accounts](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke). Args: - input: - An instance of `InvokeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1598,10 +2424,35 @@ async def invoke( Returns: An instance of `InvokeOutput`. """ - return await self._invoke(input, _models.INVOKE, [], plugins) + async def invoke( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeOutput: + return await self._invoke( + self._select_input(_models.INVOKE, args, kwargs), + _models.INVOKE, + [], + plugins, + ) + + @_overload async def invoke_async( - self, input: InvokeAsyncInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeAsyncInput + | _models.InvokeAsyncInputDict + | _models.AsyncInvokeAsyncInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeAsyncOutput: ... + + @_overload + async def invoke_async( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AsyncInvokeAsyncInputDict], ) -> InvokeAsyncOutput: """ Note: @@ -1618,8 +2469,6 @@ async def invoke_async( even if X-Ray active tracing is turned on. Args: - input: - An instance of `InvokeAsyncInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1629,10 +2478,36 @@ async def invoke_async( Returns: An instance of `InvokeAsyncOutput`. """ - return await self._invoke(input, _models.INVOKE_ASYNC, [], plugins) + async def invoke_async( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeAsyncOutput: + return await self._invoke( + self._select_input(_models.INVOKE_ASYNC, args, kwargs), + _models.INVOKE_ASYNC, + [], + plugins, + ) + + @_overload + async def invoke_with_response_stream( + self, + request: _models.InvokeWithResponseStreamInput + | _models.InvokeWithResponseStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamOutput + ]: ... + + @_overload async def invoke_with_response_stream( - self, input: InvokeWithResponseStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeWithResponseStreamInputDict], ) -> AsyncOutputEventStream[ InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamOutput ]: @@ -1649,8 +2524,6 @@ async def invoke_with_response_stream( accounts](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke). Args: - input: - An instance of `InvokeWithResponseStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1660,8 +2533,17 @@ async def invoke_with_response_stream( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def invoke_with_response_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ + InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamOutput + ]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_WITH_RESPONSE_STREAM, [], plugins + self._select_input(_models.INVOKE_WITH_RESPONSE_STREAM, args, kwargs), + _models.INVOKE_WITH_RESPONSE_STREAM, + [], + plugins, ) return await pipeline.output_stream( call, @@ -1669,8 +2551,22 @@ async def invoke_with_response_stream( _InvokeWithResponseStreamResponseEventDeserializer().deserialize, ) + @_overload + async def list_aliases( + self, + request: _models.ListAliasesInput | _models.ListAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAliasesOutput: ... + + @_overload async def list_aliases( - self, input: ListAliasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAliasesInputDict], ) -> ListAliasesOutput: """ Returns a list of @@ -1678,8 +2574,6 @@ async def list_aliases( for a Lambda Event Function. Args: - input: - An instance of `ListAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1689,17 +2583,39 @@ async def list_aliases( Returns: An instance of `ListAliasesOutput`. """ - return await self._invoke(input, _models.LIST_ALIASES, [], plugins) + async def list_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAliasesOutput: + return await self._invoke( + self._select_input(_models.LIST_ALIASES, args, kwargs), + _models.LIST_ALIASES, + [], + plugins, + ) + + @_overload + async def list_capacity_providers( + self, + request: _models.ListCapacityProvidersInput + | _models.ListCapacityProvidersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCapacityProvidersOutput: ... + + @_overload async def list_capacity_providers( - self, input: ListCapacityProvidersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCapacityProvidersInputDict], ) -> ListCapacityProvidersOutput: """ Returns a list of capacity providers in your account. Args: - input: - An instance of `ListCapacityProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1709,10 +2625,34 @@ async def list_capacity_providers( Returns: An instance of `ListCapacityProvidersOutput`. """ - return await self._invoke(input, _models.LIST_CAPACITY_PROVIDERS, [], plugins) + async def list_capacity_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCapacityProvidersOutput: + return await self._invoke( + self._select_input(_models.LIST_CAPACITY_PROVIDERS, args, kwargs), + _models.LIST_CAPACITY_PROVIDERS, + [], + plugins, + ) + + @_overload + async def list_code_signing_configs( + self, + request: _models.ListCodeSigningConfigsInput + | _models.ListCodeSigningConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCodeSigningConfigsOutput: ... + + @_overload async def list_code_signing_configs( - self, input: ListCodeSigningConfigsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCodeSigningConfigsInputDict], ) -> ListCodeSigningConfigsOutput: """ Returns a list of [code signing @@ -1721,8 +2661,6 @@ async def list_code_signing_configs( `MaxItems` parameter to return fewer configurations per call. Args: - input: - An instance of `ListCodeSigningConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1732,12 +2670,34 @@ async def list_code_signing_configs( Returns: An instance of `ListCodeSigningConfigsOutput`. """ - return await self._invoke(input, _models.LIST_CODE_SIGNING_CONFIGS, [], plugins) + async def list_code_signing_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCodeSigningConfigsOutput: + return await self._invoke( + self._select_input(_models.LIST_CODE_SIGNING_CONFIGS, args, kwargs), + _models.LIST_CODE_SIGNING_CONFIGS, + [], + plugins, + ) + + @_overload + async def list_durable_executions_by_function( + self, + request: _models.ListDurableExecutionsByFunctionInput + | _models.ListDurableExecutionsByFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDurableExecutionsByFunctionOutput: ... + + @_overload async def list_durable_executions_by_function( self, - input: ListDurableExecutionsByFunctionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDurableExecutionsByFunctionInputDict], ) -> ListDurableExecutionsByFunctionOutput: """ Returns a list of [durable @@ -1747,8 +2707,6 @@ async def list_durable_executions_by_function( large result sets. Args: - input: - An instance of `ListDurableExecutionsByFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1758,20 +2716,42 @@ async def list_durable_executions_by_function( Returns: An instance of `ListDurableExecutionsByFunctionOutput`. """ + + async def list_durable_executions_by_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDurableExecutionsByFunctionOutput: return await self._invoke( - input, _models.LIST_DURABLE_EXECUTIONS_BY_FUNCTION, [], plugins + self._select_input( + _models.LIST_DURABLE_EXECUTIONS_BY_FUNCTION, args, kwargs + ), + _models.LIST_DURABLE_EXECUTIONS_BY_FUNCTION, + [], + plugins, ) + @_overload async def list_event_source_mappings( - self, input: ListEventSourceMappingsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListEventSourceMappingsInput + | _models.ListEventSourceMappingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEventSourceMappingsOutput: ... + + @_overload + async def list_event_source_mappings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEventSourceMappingsInputDict], ) -> ListEventSourceMappingsOutput: """ Lists event source mappings. Specify an `EventSourceArn` to show only event source mappings for a single event source. Args: - input: - An instance of `ListEventSourceMappingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1781,14 +2761,34 @@ async def list_event_source_mappings( Returns: An instance of `ListEventSourceMappingsOutput`. """ + + async def list_event_source_mappings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEventSourceMappingsOutput: return await self._invoke( - input, _models.LIST_EVENT_SOURCE_MAPPINGS, [], plugins + self._select_input(_models.LIST_EVENT_SOURCE_MAPPINGS, args, kwargs), + _models.LIST_EVENT_SOURCE_MAPPINGS, + [], + plugins, ) + @_overload async def list_function_event_invoke_configs( self, - input: ListFunctionEventInvokeConfigsInput, + request: _models.ListFunctionEventInvokeConfigsInput + | _models.ListFunctionEventInvokeConfigsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListFunctionEventInvokeConfigsOutput: ... + + @_overload + async def list_function_event_invoke_configs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionEventInvokeConfigsInputDict], ) -> ListFunctionEventInvokeConfigsOutput: """ Retrieves a list of configurations for asynchronous invocation for a @@ -1799,8 +2799,6 @@ async def list_function_event_invoke_configs( PutFunctionEventInvokeConfig. Args: - input: - An instance of `ListFunctionEventInvokeConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1810,12 +2808,35 @@ async def list_function_event_invoke_configs( Returns: An instance of `ListFunctionEventInvokeConfigsOutput`. """ + + async def list_function_event_invoke_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionEventInvokeConfigsOutput: return await self._invoke( - input, _models.LIST_FUNCTION_EVENT_INVOKE_CONFIGS, [], plugins + self._select_input( + _models.LIST_FUNCTION_EVENT_INVOKE_CONFIGS, args, kwargs + ), + _models.LIST_FUNCTION_EVENT_INVOKE_CONFIGS, + [], + plugins, ) + @_overload async def list_functions( - self, input: ListFunctionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListFunctionsInput | _models.ListFunctionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionsOutput: ... + + @_overload + async def list_functions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionsInputDict], ) -> ListFunctionsOutput: """ Returns a list of Lambda Event Functions, with the version-specific @@ -1832,8 +2853,6 @@ async def list_functions( version, use GetFunction. Args: - input: - An instance of `ListFunctionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1843,12 +2862,34 @@ async def list_functions( Returns: An instance of `ListFunctionsOutput`. """ - return await self._invoke(input, _models.LIST_FUNCTIONS, [], plugins) + async def list_functions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionsOutput: + return await self._invoke( + self._select_input(_models.LIST_FUNCTIONS, args, kwargs), + _models.LIST_FUNCTIONS, + [], + plugins, + ) + + @_overload + async def list_functions_by_code_signing_config( + self, + request: _models.ListFunctionsByCodeSigningConfigInput + | _models.ListFunctionsByCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionsByCodeSigningConfigOutput: ... + + @_overload async def list_functions_by_code_signing_config( self, - input: ListFunctionsByCodeSigningConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionsByCodeSigningConfigInputDict], ) -> ListFunctionsByCodeSigningConfigOutput: """ List the functions that use the specified code signing configuration. @@ -1856,8 +2897,6 @@ async def list_functions_by_code_signing_config( to verify that no functions are using it. Args: - input: - An instance of `ListFunctionsByCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1867,19 +2906,41 @@ async def list_functions_by_code_signing_config( Returns: An instance of `ListFunctionsByCodeSigningConfigOutput`. """ + + async def list_functions_by_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionsByCodeSigningConfigOutput: return await self._invoke( - input, _models.LIST_FUNCTIONS_BY_CODE_SIGNING_CONFIG, [], plugins + self._select_input( + _models.LIST_FUNCTIONS_BY_CODE_SIGNING_CONFIG, args, kwargs + ), + _models.LIST_FUNCTIONS_BY_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + async def list_function_url_configs( + self, + request: _models.ListFunctionUrlConfigsInput + | _models.ListFunctionUrlConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionUrlConfigsOutput: ... + + @_overload async def list_function_url_configs( - self, input: ListFunctionUrlConfigsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionUrlConfigsInputDict], ) -> ListFunctionUrlConfigsOutput: """ Returns a list of Lambda function URLs for the specified function. Args: - input: - An instance of `ListFunctionUrlConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1889,20 +2950,40 @@ async def list_function_url_configs( Returns: An instance of `ListFunctionUrlConfigsOutput`. """ - return await self._invoke(input, _models.LIST_FUNCTION_URL_CONFIGS, [], plugins) + async def list_function_url_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionUrlConfigsOutput: + return await self._invoke( + self._select_input(_models.LIST_FUNCTION_URL_CONFIGS, args, kwargs), + _models.LIST_FUNCTION_URL_CONFIGS, + [], + plugins, + ) + + @_overload + async def list_function_versions_by_capacity_provider( + self, + request: _models.ListFunctionVersionsByCapacityProviderInput + | _models.ListFunctionVersionsByCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionVersionsByCapacityProviderOutput: ... + + @_overload async def list_function_versions_by_capacity_provider( self, - input: ListFunctionVersionsByCapacityProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionVersionsByCapacityProviderInputDict], ) -> ListFunctionVersionsByCapacityProviderOutput: """ Returns a list of function versions that are configured to use a specific capacity provider. Args: - input: - An instance of `ListFunctionVersionsByCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1912,12 +2993,35 @@ async def list_function_versions_by_capacity_provider( Returns: An instance of `ListFunctionVersionsByCapacityProviderOutput`. """ + + async def list_function_versions_by_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionVersionsByCapacityProviderOutput: return await self._invoke( - input, _models.LIST_FUNCTION_VERSIONS_BY_CAPACITY_PROVIDER, [], plugins + self._select_input( + _models.LIST_FUNCTION_VERSIONS_BY_CAPACITY_PROVIDER, args, kwargs + ), + _models.LIST_FUNCTION_VERSIONS_BY_CAPACITY_PROVIDER, + [], + plugins, ) + @_overload + async def list_layers( + self, + request: _models.ListLayersInput | _models.ListLayersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListLayersOutput: ... + + @_overload async def list_layers( - self, input: ListLayersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListLayersInputDict], ) -> ListLayersOutput: """ Lists [Lambda @@ -1931,8 +3035,6 @@ async def list_layers( architecture](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html). Args: - input: - An instance of `ListLayersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1942,10 +3044,33 @@ async def list_layers( Returns: An instance of `ListLayersOutput`. """ - return await self._invoke(input, _models.LIST_LAYERS, [], plugins) + async def list_layers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListLayersOutput: + return await self._invoke( + self._select_input(_models.LIST_LAYERS, args, kwargs), + _models.LIST_LAYERS, + [], + plugins, + ) + + @_overload + async def list_layer_versions( + self, + request: _models.ListLayerVersionsInput | _models.ListLayerVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListLayerVersionsOutput: ... + + @_overload async def list_layer_versions( - self, input: ListLayerVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListLayerVersionsInputDict], ) -> ListLayerVersionsOutput: """ Lists the versions of an [Lambda @@ -1957,8 +3082,6 @@ async def list_layer_versions( versions that are compatible with that architecture. Args: - input: - An instance of `ListLayerVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1968,20 +3091,40 @@ async def list_layer_versions( Returns: An instance of `ListLayerVersionsOutput`. """ - return await self._invoke(input, _models.LIST_LAYER_VERSIONS, [], plugins) + async def list_layer_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListLayerVersionsOutput: + return await self._invoke( + self._select_input(_models.LIST_LAYER_VERSIONS, args, kwargs), + _models.LIST_LAYER_VERSIONS, + [], + plugins, + ) + + @_overload + async def list_provisioned_concurrency_configs( + self, + request: _models.ListProvisionedConcurrencyConfigsInput + | _models.ListProvisionedConcurrencyConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListProvisionedConcurrencyConfigsOutput: ... + + @_overload async def list_provisioned_concurrency_configs( self, - input: ListProvisionedConcurrencyConfigsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListProvisionedConcurrencyConfigsInputDict], ) -> ListProvisionedConcurrencyConfigsOutput: """ Retrieves a list of provisioned concurrency configurations for a function. Args: - input: - An instance of `ListProvisionedConcurrencyConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1991,12 +3134,35 @@ async def list_provisioned_concurrency_configs( Returns: An instance of `ListProvisionedConcurrencyConfigsOutput`. """ + + async def list_provisioned_concurrency_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListProvisionedConcurrencyConfigsOutput: return await self._invoke( - input, _models.LIST_PROVISIONED_CONCURRENCY_CONFIGS, [], plugins + self._select_input( + _models.LIST_PROVISIONED_CONCURRENCY_CONFIGS, args, kwargs + ), + _models.LIST_PROVISIONED_CONCURRENCY_CONFIGS, + [], + plugins, ) + @_overload async def list_tags( - self, input: ListTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsInput | _models.ListTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsOutput: ... + + @_overload + async def list_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsInputDict], ) -> ListTagsOutput: """ Returns a function, event source mapping, or code signing @@ -2005,8 +3171,6 @@ async def list_tags( can also view function tags with GetFunction. Args: - input: - An instance of `ListTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2016,10 +3180,34 @@ async def list_tags( Returns: An instance of `ListTagsOutput`. """ - return await self._invoke(input, _models.LIST_TAGS, [], plugins) + async def list_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS, args, kwargs), + _models.LIST_TAGS, + [], + plugins, + ) + + @_overload + async def list_versions_by_function( + self, + request: _models.ListVersionsByFunctionInput + | _models.ListVersionsByFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVersionsByFunctionOutput: ... + + @_overload async def list_versions_by_function( - self, input: ListVersionsByFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVersionsByFunctionInputDict], ) -> ListVersionsByFunctionOutput: """ Returns a list of @@ -2028,8 +3216,6 @@ async def list_versions_by_function( each. Lambda returns up to 50 versions per call. Args: - input: - An instance of `ListVersionsByFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2039,10 +3225,34 @@ async def list_versions_by_function( Returns: An instance of `ListVersionsByFunctionOutput`. """ - return await self._invoke(input, _models.LIST_VERSIONS_BY_FUNCTION, [], plugins) + async def list_versions_by_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVersionsByFunctionOutput: + return await self._invoke( + self._select_input(_models.LIST_VERSIONS_BY_FUNCTION, args, kwargs), + _models.LIST_VERSIONS_BY_FUNCTION, + [], + plugins, + ) + + @_overload + async def publish_layer_version( + self, + request: _models.PublishLayerVersionInput + | _models.PublishLayerVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishLayerVersionOutput: ... + + @_overload async def publish_layer_version( - self, input: PublishLayerVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishLayerVersionInputDict], ) -> PublishLayerVersionOutput: """ Creates an [Lambda @@ -2054,8 +3264,6 @@ async def publish_layer_version( UpdateFunctionConfiguration. Args: - input: - An instance of `PublishLayerVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2065,10 +3273,33 @@ async def publish_layer_version( Returns: An instance of `PublishLayerVersionOutput`. """ - return await self._invoke(input, _models.PUBLISH_LAYER_VERSION, [], plugins) + async def publish_layer_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishLayerVersionOutput: + return await self._invoke( + self._select_input(_models.PUBLISH_LAYER_VERSION, args, kwargs), + _models.PUBLISH_LAYER_VERSION, + [], + plugins, + ) + + @_overload + async def publish_version( + self, + request: _models.PublishVersionInput | _models.PublishVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishVersionOutput: ... + + @_overload async def publish_version( - self, input: PublishVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishVersionInputDict], ) -> PublishVersionOutput: """ Creates a @@ -2086,8 +3317,6 @@ async def publish_version( alias, use CreateAlias. Args: - input: - An instance of `PublishVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2097,12 +3326,34 @@ async def publish_version( Returns: An instance of `PublishVersionOutput`. """ - return await self._invoke(input, _models.PUBLISH_VERSION, [], plugins) + async def publish_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishVersionOutput: + return await self._invoke( + self._select_input(_models.PUBLISH_VERSION, args, kwargs), + _models.PUBLISH_VERSION, + [], + plugins, + ) + + @_overload + async def put_function_code_signing_config( + self, + request: _models.PutFunctionCodeSigningConfigInput + | _models.PutFunctionCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionCodeSigningConfigOutput: ... + + @_overload async def put_function_code_signing_config( self, - input: PutFunctionCodeSigningConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionCodeSigningConfigInputDict], ) -> PutFunctionCodeSigningConfigOutput: """ Update the code signing configuration for the function. Changes to the @@ -2110,8 +3361,6 @@ async def put_function_code_signing_config( deploy a code package to the function. Args: - input: - An instance of `PutFunctionCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2121,12 +3370,34 @@ async def put_function_code_signing_config( Returns: An instance of `PutFunctionCodeSigningConfigOutput`. """ + + async def put_function_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionCodeSigningConfigOutput: return await self._invoke( - input, _models.PUT_FUNCTION_CODE_SIGNING_CONFIG, [], plugins + self._select_input(_models.PUT_FUNCTION_CODE_SIGNING_CONFIG, args, kwargs), + _models.PUT_FUNCTION_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + async def put_function_concurrency( + self, + request: _models.PutFunctionConcurrencyInput + | _models.PutFunctionConcurrencyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionConcurrencyOutput: ... + + @_overload async def put_function_concurrency( - self, input: PutFunctionConcurrencyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionConcurrencyInputDict], ) -> PutFunctionConcurrencyOutput: """ Sets the maximum number of simultaneous executions for a Lambda Event @@ -2146,8 +3417,6 @@ async def put_function_concurrency( scaling](https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html). Args: - input: - An instance of `PutFunctionConcurrencyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2157,12 +3426,34 @@ async def put_function_concurrency( Returns: An instance of `PutFunctionConcurrencyOutput`. """ - return await self._invoke(input, _models.PUT_FUNCTION_CONCURRENCY, [], plugins) + async def put_function_concurrency( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionConcurrencyOutput: + return await self._invoke( + self._select_input(_models.PUT_FUNCTION_CONCURRENCY, args, kwargs), + _models.PUT_FUNCTION_CONCURRENCY, + [], + plugins, + ) + + @_overload + async def put_function_event_invoke_config( + self, + request: _models.PutFunctionEventInvokeConfigInput + | _models.PutFunctionEventInvokeConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionEventInvokeConfigOutput: ... + + @_overload async def put_function_event_invoke_config( self, - input: PutFunctionEventInvokeConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionEventInvokeConfigInputDict], ) -> PutFunctionEventInvokeConfigOutput: """ Configures options for [asynchronous @@ -2193,8 +3484,6 @@ async def put_function_event_invoke_config( records of successful invocations, use another destination type. Args: - input: - An instance of `PutFunctionEventInvokeConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2204,14 +3493,34 @@ async def put_function_event_invoke_config( Returns: An instance of `PutFunctionEventInvokeConfigOutput`. """ + + async def put_function_event_invoke_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionEventInvokeConfigOutput: return await self._invoke( - input, _models.PUT_FUNCTION_EVENT_INVOKE_CONFIG, [], plugins + self._select_input(_models.PUT_FUNCTION_EVENT_INVOKE_CONFIG, args, kwargs), + _models.PUT_FUNCTION_EVENT_INVOKE_CONFIG, + [], + plugins, ) + @_overload + async def put_function_recursion_config( + self, + request: _models.PutFunctionRecursionConfigInput + | _models.PutFunctionRecursionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionRecursionConfigOutput: ... + + @_overload async def put_function_recursion_config( self, - input: PutFunctionRecursionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionRecursionConfigInputDict], ) -> PutFunctionRecursionConfigOutput: """ Sets the [recursive loop @@ -2231,8 +3540,6 @@ async def put_function_recursion_config( your function being invoked and notifies you. Args: - input: - An instance of `PutFunctionRecursionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2242,12 +3549,34 @@ async def put_function_recursion_config( Returns: An instance of `PutFunctionRecursionConfigOutput`. """ + + async def put_function_recursion_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionRecursionConfigOutput: return await self._invoke( - input, _models.PUT_FUNCTION_RECURSION_CONFIG, [], plugins + self._select_input(_models.PUT_FUNCTION_RECURSION_CONFIG, args, kwargs), + _models.PUT_FUNCTION_RECURSION_CONFIG, + [], + plugins, ) + @_overload + async def put_function_scaling_config( + self, + request: _models.PutFunctionScalingConfigInput + | _models.PutFunctionScalingConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionScalingConfigOutput: ... + + @_overload async def put_function_scaling_config( - self, input: PutFunctionScalingConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionScalingConfigInputDict], ) -> PutFunctionScalingConfigOutput: """ Sets the scaling configuration for a Lambda Managed Instances function. @@ -2256,8 +3585,6 @@ async def put_function_scaling_config( allowing you to control scaling behavior and resource allocation. Args: - input: - An instance of `PutFunctionScalingConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2267,22 +3594,40 @@ async def put_function_scaling_config( Returns: An instance of `PutFunctionScalingConfigOutput`. """ + + async def put_function_scaling_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionScalingConfigOutput: return await self._invoke( - input, _models.PUT_FUNCTION_SCALING_CONFIG, [], plugins + self._select_input(_models.PUT_FUNCTION_SCALING_CONFIG, args, kwargs), + _models.PUT_FUNCTION_SCALING_CONFIG, + [], + plugins, ) + @_overload + async def put_provisioned_concurrency_config( + self, + request: _models.PutProvisionedConcurrencyConfigInput + | _models.PutProvisionedConcurrencyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutProvisionedConcurrencyConfigOutput: ... + + @_overload async def put_provisioned_concurrency_config( self, - input: PutProvisionedConcurrencyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutProvisionedConcurrencyConfigInputDict], ) -> PutProvisionedConcurrencyConfigOutput: """ Adds a provisioned concurrency configuration to a function's alias or version. Args: - input: - An instance of `PutProvisionedConcurrencyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2292,12 +3637,35 @@ async def put_provisioned_concurrency_config( Returns: An instance of `PutProvisionedConcurrencyConfigOutput`. """ + + async def put_provisioned_concurrency_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutProvisionedConcurrencyConfigOutput: return await self._invoke( - input, _models.PUT_PROVISIONED_CONCURRENCY_CONFIG, [], plugins + self._select_input( + _models.PUT_PROVISIONED_CONCURRENCY_CONFIG, args, kwargs + ), + _models.PUT_PROVISIONED_CONCURRENCY_CONFIG, + [], + plugins, ) + @_overload + async def put_resource_policy( + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Adds a [resource-based @@ -2317,8 +3685,6 @@ async def put_resource_policy( new policy overwrites those permissions. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2328,12 +3694,34 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def put_runtime_management_config( + self, + request: _models.PutRuntimeManagementConfigInput + | _models.PutRuntimeManagementConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRuntimeManagementConfigOutput: ... + + @_overload async def put_runtime_management_config( self, - input: PutRuntimeManagementConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRuntimeManagementConfigInputDict], ) -> PutRuntimeManagementConfigOutput: """ Sets the runtime management configuration for a function's version. For @@ -2341,8 +3729,6 @@ async def put_runtime_management_config( updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). Args: - input: - An instance of `PutRuntimeManagementConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2352,14 +3738,34 @@ async def put_runtime_management_config( Returns: An instance of `PutRuntimeManagementConfigOutput`. """ + + async def put_runtime_management_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRuntimeManagementConfigOutput: return await self._invoke( - input, _models.PUT_RUNTIME_MANAGEMENT_CONFIG, [], plugins + self._select_input(_models.PUT_RUNTIME_MANAGEMENT_CONFIG, args, kwargs), + _models.PUT_RUNTIME_MANAGEMENT_CONFIG, + [], + plugins, ) + @_overload + async def remove_layer_version_permission( + self, + request: _models.RemoveLayerVersionPermissionInput + | _models.RemoveLayerVersionPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveLayerVersionPermissionOutput: ... + + @_overload async def remove_layer_version_permission( self, - input: RemoveLayerVersionPermissionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveLayerVersionPermissionInputDict], ) -> RemoveLayerVersionPermissionOutput: """ Removes a statement from the permissions policy for a version of an @@ -2368,8 +3774,6 @@ async def remove_layer_version_permission( For more information, see AddLayerVersionPermission. Args: - input: - An instance of `RemoveLayerVersionPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2379,12 +3783,33 @@ async def remove_layer_version_permission( Returns: An instance of `RemoveLayerVersionPermissionOutput`. """ + + async def remove_layer_version_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveLayerVersionPermissionOutput: return await self._invoke( - input, _models.REMOVE_LAYER_VERSION_PERMISSION, [], plugins + self._select_input(_models.REMOVE_LAYER_VERSION_PERMISSION, args, kwargs), + _models.REMOVE_LAYER_VERSION_PERMISSION, + [], + plugins, ) + @_overload + async def remove_permission( + self, + request: _models.RemovePermissionInput | _models.RemovePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemovePermissionOutput: ... + + @_overload async def remove_permission( - self, input: RemovePermissionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemovePermissionInputDict], ) -> RemovePermissionOutput: """ Revokes function-use permission from an Amazon Web Services service or @@ -2392,8 +3817,6 @@ async def remove_permission( from the output of GetPolicy. Args: - input: - An instance of `RemovePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2403,12 +3826,34 @@ async def remove_permission( Returns: An instance of `RemovePermissionOutput`. """ - return await self._invoke(input, _models.REMOVE_PERMISSION, [], plugins) + async def remove_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemovePermissionOutput: + return await self._invoke( + self._select_input(_models.REMOVE_PERMISSION, args, kwargs), + _models.REMOVE_PERMISSION, + [], + plugins, + ) + + @_overload async def send_durable_execution_callback_failure( self, - input: SendDurableExecutionCallbackFailureInput, + request: _models.SendDurableExecutionCallbackFailureInput + | _models.SendDurableExecutionCallbackFailureInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> SendDurableExecutionCallbackFailureOutput: ... + + @_overload + async def send_durable_execution_callback_failure( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDurableExecutionCallbackFailureInputDict], ) -> SendDurableExecutionCallbackFailureOutput: """ Sends a failure response for a callback operation in a durable @@ -2416,8 +3861,6 @@ async def send_durable_execution_callback_failure( callback operation successfully. Args: - input: - An instance of `SendDurableExecutionCallbackFailureInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2427,14 +3870,36 @@ async def send_durable_execution_callback_failure( Returns: An instance of `SendDurableExecutionCallbackFailureOutput`. """ + + async def send_durable_execution_callback_failure( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDurableExecutionCallbackFailureOutput: return await self._invoke( - input, _models.SEND_DURABLE_EXECUTION_CALLBACK_FAILURE, [], plugins + self._select_input( + _models.SEND_DURABLE_EXECUTION_CALLBACK_FAILURE, args, kwargs + ), + _models.SEND_DURABLE_EXECUTION_CALLBACK_FAILURE, + [], + plugins, ) + @_overload + async def send_durable_execution_callback_heartbeat( + self, + request: _models.SendDurableExecutionCallbackHeartbeatInput + | _models.SendDurableExecutionCallbackHeartbeatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendDurableExecutionCallbackHeartbeatOutput: ... + + @_overload async def send_durable_execution_callback_heartbeat( self, - input: SendDurableExecutionCallbackHeartbeatInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDurableExecutionCallbackHeartbeatInputDict], ) -> SendDurableExecutionCallbackHeartbeatOutput: """ Sends a heartbeat signal for a long-running callback operation to @@ -2442,8 +3907,6 @@ async def send_durable_execution_callback_heartbeat( while the external operation is still in progress. Args: - input: - An instance of `SendDurableExecutionCallbackHeartbeatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2453,14 +3916,36 @@ async def send_durable_execution_callback_heartbeat( Returns: An instance of `SendDurableExecutionCallbackHeartbeatOutput`. """ + + async def send_durable_execution_callback_heartbeat( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDurableExecutionCallbackHeartbeatOutput: return await self._invoke( - input, _models.SEND_DURABLE_EXECUTION_CALLBACK_HEARTBEAT, [], plugins + self._select_input( + _models.SEND_DURABLE_EXECUTION_CALLBACK_HEARTBEAT, args, kwargs + ), + _models.SEND_DURABLE_EXECUTION_CALLBACK_HEARTBEAT, + [], + plugins, ) + @_overload + async def send_durable_execution_callback_success( + self, + request: _models.SendDurableExecutionCallbackSuccessInput + | _models.SendDurableExecutionCallbackSuccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendDurableExecutionCallbackSuccessOutput: ... + + @_overload async def send_durable_execution_callback_success( self, - input: SendDurableExecutionCallbackSuccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDurableExecutionCallbackSuccessInputDict], ) -> SendDurableExecutionCallbackSuccessOutput: """ Sends a successful completion response for a callback operation in a @@ -2468,8 +3953,6 @@ async def send_durable_execution_callback_success( completed a callback operation. Args: - input: - An instance of `SendDurableExecutionCallbackSuccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2479,12 +3962,36 @@ async def send_durable_execution_callback_success( Returns: An instance of `SendDurableExecutionCallbackSuccessOutput`. """ + + async def send_durable_execution_callback_success( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDurableExecutionCallbackSuccessOutput: return await self._invoke( - input, _models.SEND_DURABLE_EXECUTION_CALLBACK_SUCCESS, [], plugins + self._select_input( + _models.SEND_DURABLE_EXECUTION_CALLBACK_SUCCESS, args, kwargs + ), + _models.SEND_DURABLE_EXECUTION_CALLBACK_SUCCESS, + [], + plugins, ) + @_overload + async def stop_durable_execution( + self, + request: _models.StopDurableExecutionInput + | _models.StopDurableExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDurableExecutionOutput: ... + + @_overload async def stop_durable_execution( - self, input: StopDurableExecutionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDurableExecutionInputDict], ) -> StopDurableExecutionOutput: """ Stops a running [durable @@ -2493,8 +4000,6 @@ async def stop_durable_execution( in-progress operations are terminated. Args: - input: - An instance of `StopDurableExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2504,18 +4009,39 @@ async def stop_durable_execution( Returns: An instance of `StopDurableExecutionOutput`. """ - return await self._invoke(input, _models.STOP_DURABLE_EXECUTION, [], plugins) + async def stop_durable_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDurableExecutionOutput: + return await self._invoke( + self._select_input(_models.STOP_DURABLE_EXECUTION, args, kwargs), + _models.STOP_DURABLE_EXECUTION, + [], + plugins, + ) + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + async def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to a function, event source mapping, or code signing configuration. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2525,10 +4051,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes @@ -2536,8 +4085,6 @@ async def untag_resource( function, event source mapping, or code signing configuration. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2547,18 +4094,39 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_alias( + self, + request: _models.UpdateAliasInput | _models.UpdateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAliasOutput: ... + + @_overload async def update_alias( - self, input: UpdateAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAliasInputDict], ) -> UpdateAliasOutput: """ Updates the configuration of a Lambda Event Function [alias](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). Args: - input: - An instance of `UpdateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2568,17 +4136,39 @@ async def update_alias( Returns: An instance of `UpdateAliasOutput`. """ - return await self._invoke(input, _models.UPDATE_ALIAS, [], plugins) + async def update_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAliasOutput: + return await self._invoke( + self._select_input(_models.UPDATE_ALIAS, args, kwargs), + _models.UPDATE_ALIAS, + [], + plugins, + ) + + @_overload + async def update_capacity_provider( + self, + request: _models.UpdateCapacityProviderInput + | _models.UpdateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCapacityProviderOutput: ... + + @_overload async def update_capacity_provider( - self, input: UpdateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityProviderInputDict], ) -> UpdateCapacityProviderOutput: """ Updates the configuration of an existing capacity provider. Args: - input: - An instance of `UpdateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2588,10 +4178,34 @@ async def update_capacity_provider( Returns: An instance of `UpdateCapacityProviderOutput`. """ - return await self._invoke(input, _models.UPDATE_CAPACITY_PROVIDER, [], plugins) + async def update_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityProviderOutput: + return await self._invoke( + self._select_input(_models.UPDATE_CAPACITY_PROVIDER, args, kwargs), + _models.UPDATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + async def update_code_signing_config( + self, + request: _models.UpdateCodeSigningConfigInput + | _models.UpdateCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCodeSigningConfigOutput: ... + + @_overload async def update_code_signing_config( - self, input: UpdateCodeSigningConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCodeSigningConfigInputDict], ) -> UpdateCodeSigningConfigOutput: """ Update the code signing configuration. Changes to the code signing @@ -2599,8 +4213,6 @@ async def update_code_signing_config( package to the function. Args: - input: - An instance of `UpdateCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2610,12 +4222,34 @@ async def update_code_signing_config( Returns: An instance of `UpdateCodeSigningConfigOutput`. """ + + async def update_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCodeSigningConfigOutput: return await self._invoke( - input, _models.UPDATE_CODE_SIGNING_CONFIG, [], plugins + self._select_input(_models.UPDATE_CODE_SIGNING_CONFIG, args, kwargs), + _models.UPDATE_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + async def update_event_source_mapping( + self, + request: _models.UpdateEventSourceMappingInput + | _models.UpdateEventSourceMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateEventSourceMappingOutput: ... + + @_overload async def update_event_source_mapping( - self, input: UpdateEventSourceMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateEventSourceMappingInputDict], ) -> UpdateEventSourceMappingOutput: """ Updates an event source mapping. You can change the function that Lambda @@ -2695,8 +4329,6 @@ async def update_event_source_mapping( DocumentDB](https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration) Args: - input: - An instance of `UpdateEventSourceMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2706,12 +4338,33 @@ async def update_event_source_mapping( Returns: An instance of `UpdateEventSourceMappingOutput`. """ + + async def update_event_source_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateEventSourceMappingOutput: return await self._invoke( - input, _models.UPDATE_EVENT_SOURCE_MAPPING, [], plugins + self._select_input(_models.UPDATE_EVENT_SOURCE_MAPPING, args, kwargs), + _models.UPDATE_EVENT_SOURCE_MAPPING, + [], + plugins, ) + @_overload + async def update_function_code( + self, + request: _models.UpdateFunctionCodeInput | _models.UpdateFunctionCodeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionCodeOutput: ... + + @_overload async def update_function_code( - self, input: UpdateFunctionCodeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionCodeInputDict], ) -> UpdateFunctionCodeOutput: """ Updates a Lambda Event Function's code. If code signing is enabled for @@ -2742,8 +4395,6 @@ async def update_function_code( new image, Lambda does not automatically update the function. Args: - input: - An instance of `UpdateFunctionCodeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2753,12 +4404,34 @@ async def update_function_code( Returns: An instance of `UpdateFunctionCodeOutput`. """ - return await self._invoke(input, _models.UPDATE_FUNCTION_CODE, [], plugins) + async def update_function_code( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionCodeOutput: + return await self._invoke( + self._select_input(_models.UPDATE_FUNCTION_CODE, args, kwargs), + _models.UPDATE_FUNCTION_CODE, + [], + plugins, + ) + + @_overload + async def update_function_configuration( + self, + request: _models.UpdateFunctionConfigurationInput + | _models.UpdateFunctionConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionConfigurationOutput: ... + + @_overload async def update_function_configuration( self, - input: UpdateFunctionConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionConfigurationInputDict], ) -> UpdateFunctionConfigurationOutput: """ Modifies the version-specific settings of a Lambda Event Function. @@ -2782,8 +4455,6 @@ async def update_function_configuration( Services service, use AddPermission. Args: - input: - An instance of `UpdateFunctionConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2793,14 +4464,34 @@ async def update_function_configuration( Returns: An instance of `UpdateFunctionConfigurationOutput`. """ + + async def update_function_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionConfigurationOutput: return await self._invoke( - input, _models.UPDATE_FUNCTION_CONFIGURATION, [], plugins + self._select_input(_models.UPDATE_FUNCTION_CONFIGURATION, args, kwargs), + _models.UPDATE_FUNCTION_CONFIGURATION, + [], + plugins, ) + @_overload async def update_function_event_invoke_config( self, - input: UpdateFunctionEventInvokeConfigInput, + request: _models.UpdateFunctionEventInvokeConfigInput + | _models.UpdateFunctionEventInvokeConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> UpdateFunctionEventInvokeConfigOutput: ... + + @_overload + async def update_function_event_invoke_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionEventInvokeConfigInputDict], ) -> UpdateFunctionEventInvokeConfigOutput: """ Updates the configuration for asynchronous invocation for a function, @@ -2810,8 +4501,6 @@ async def update_function_event_invoke_config( PutFunctionEventInvokeConfig. Args: - input: - An instance of `UpdateFunctionEventInvokeConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2821,19 +4510,41 @@ async def update_function_event_invoke_config( Returns: An instance of `UpdateFunctionEventInvokeConfigOutput`. """ + + async def update_function_event_invoke_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionEventInvokeConfigOutput: return await self._invoke( - input, _models.UPDATE_FUNCTION_EVENT_INVOKE_CONFIG, [], plugins + self._select_input( + _models.UPDATE_FUNCTION_EVENT_INVOKE_CONFIG, args, kwargs + ), + _models.UPDATE_FUNCTION_EVENT_INVOKE_CONFIG, + [], + plugins, ) + @_overload + async def update_function_url_config( + self, + request: _models.UpdateFunctionUrlConfigInput + | _models.UpdateFunctionUrlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionUrlConfigOutput: ... + + @_overload async def update_function_url_config( - self, input: UpdateFunctionUrlConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionUrlConfigInputDict], ) -> UpdateFunctionUrlConfigOutput: """ Updates the configuration for a function URL of a Lambda Event Function. Args: - input: - An instance of `UpdateFunctionUrlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2843,8 +4554,15 @@ async def update_function_url_config( Returns: An instance of `UpdateFunctionUrlConfigOutput`. """ + + async def update_function_url_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionUrlConfigOutput: return await self._invoke( - input, _models.UPDATE_FUNCTION_URL_CONFIG, [], plugins + self._select_input(_models.UPDATE_FUNCTION_URL_CONFIG, args, kwargs), + _models.UPDATE_FUNCTION_URL_CONFIG, + [], + plugins, ) async def _new_config(self) -> AsyncLambdaConfig: diff --git a/clients/aws-sdk-lambda/src/aws_sdk_lambda/client.py b/clients/aws-sdk-lambda/src/aws_sdk_lambda/client.py index 06708300a..0dfe70139 100644 --- a/clients/aws-sdk-lambda/src/aws_sdk_lambda/client.py +++ b/clients/aws-sdk-lambda/src/aws_sdk_lambda/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,179 +20,92 @@ if TYPE_CHECKING: from .models import ( - AddLayerVersionPermissionInput, AddLayerVersionPermissionOutput, - AddPermissionInput, AddPermissionOutput, - CheckpointDurableExecutionInput, CheckpointDurableExecutionOutput, - CreateAliasInput, CreateAliasOutput, - CreateCapacityProviderInput, CreateCapacityProviderOutput, - CreateCodeSigningConfigInput, CreateCodeSigningConfigOutput, - CreateEventSourceMappingInput, CreateEventSourceMappingOutput, - CreateFunctionInput, CreateFunctionOutput, - CreateFunctionUrlConfigInput, CreateFunctionUrlConfigOutput, - DeleteAliasInput, DeleteAliasOutput, - DeleteCapacityProviderInput, DeleteCapacityProviderOutput, - DeleteCodeSigningConfigInput, DeleteCodeSigningConfigOutput, - DeleteEventSourceMappingInput, DeleteEventSourceMappingOutput, - DeleteFunctionCodeSigningConfigInput, DeleteFunctionCodeSigningConfigOutput, - DeleteFunctionConcurrencyInput, DeleteFunctionConcurrencyOutput, - DeleteFunctionEventInvokeConfigInput, DeleteFunctionEventInvokeConfigOutput, - DeleteFunctionInput, DeleteFunctionOutput, - DeleteFunctionUrlConfigInput, DeleteFunctionUrlConfigOutput, - DeleteLayerVersionInput, DeleteLayerVersionOutput, - DeleteProvisionedConcurrencyConfigInput, DeleteProvisionedConcurrencyConfigOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - GetAccountSettingsInput, GetAccountSettingsOutput, - GetAliasInput, GetAliasOutput, - GetCapacityProviderInput, GetCapacityProviderOutput, - GetCodeSigningConfigInput, GetCodeSigningConfigOutput, - GetDurableExecutionHistoryInput, GetDurableExecutionHistoryOutput, - GetDurableExecutionInput, GetDurableExecutionOutput, - GetDurableExecutionStateInput, GetDurableExecutionStateOutput, - GetEventSourceMappingInput, GetEventSourceMappingOutput, - GetFunctionCodeSigningConfigInput, GetFunctionCodeSigningConfigOutput, - GetFunctionConcurrencyInput, GetFunctionConcurrencyOutput, - GetFunctionConfigurationInput, GetFunctionConfigurationOutput, - GetFunctionEventInvokeConfigInput, GetFunctionEventInvokeConfigOutput, - GetFunctionInput, GetFunctionOutput, - GetFunctionRecursionConfigInput, GetFunctionRecursionConfigOutput, - GetFunctionScalingConfigInput, GetFunctionScalingConfigOutput, - GetFunctionUrlConfigInput, GetFunctionUrlConfigOutput, - GetLayerVersionByArnInput, GetLayerVersionByArnOutput, - GetLayerVersionInput, GetLayerVersionOutput, - GetLayerVersionPolicyInput, GetLayerVersionPolicyOutput, - GetPolicyInput, GetPolicyOutput, - GetProvisionedConcurrencyConfigInput, GetProvisionedConcurrencyConfigOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetRuntimeManagementConfigInput, GetRuntimeManagementConfigOutput, - InvokeAsyncInput, InvokeAsyncOutput, - InvokeInput, InvokeOutput, - ListAliasesInput, ListAliasesOutput, - ListCapacityProvidersInput, ListCapacityProvidersOutput, - ListCodeSigningConfigsInput, ListCodeSigningConfigsOutput, - ListDurableExecutionsByFunctionInput, ListDurableExecutionsByFunctionOutput, - ListEventSourceMappingsInput, ListEventSourceMappingsOutput, - ListFunctionEventInvokeConfigsInput, ListFunctionEventInvokeConfigsOutput, - ListFunctionUrlConfigsInput, ListFunctionUrlConfigsOutput, - ListFunctionVersionsByCapacityProviderInput, ListFunctionVersionsByCapacityProviderOutput, - ListFunctionsByCodeSigningConfigInput, ListFunctionsByCodeSigningConfigOutput, - ListFunctionsInput, ListFunctionsOutput, - ListLayerVersionsInput, ListLayerVersionsOutput, - ListLayersInput, ListLayersOutput, - ListProvisionedConcurrencyConfigsInput, ListProvisionedConcurrencyConfigsOutput, - ListTagsInput, ListTagsOutput, - ListVersionsByFunctionInput, ListVersionsByFunctionOutput, - PublishLayerVersionInput, PublishLayerVersionOutput, - PublishVersionInput, PublishVersionOutput, - PutFunctionCodeSigningConfigInput, PutFunctionCodeSigningConfigOutput, - PutFunctionConcurrencyInput, PutFunctionConcurrencyOutput, - PutFunctionEventInvokeConfigInput, PutFunctionEventInvokeConfigOutput, - PutFunctionRecursionConfigInput, PutFunctionRecursionConfigOutput, - PutFunctionScalingConfigInput, PutFunctionScalingConfigOutput, - PutProvisionedConcurrencyConfigInput, PutProvisionedConcurrencyConfigOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - PutRuntimeManagementConfigInput, PutRuntimeManagementConfigOutput, - RemoveLayerVersionPermissionInput, RemoveLayerVersionPermissionOutput, - RemovePermissionInput, RemovePermissionOutput, - SendDurableExecutionCallbackFailureInput, SendDurableExecutionCallbackFailureOutput, - SendDurableExecutionCallbackHeartbeatInput, SendDurableExecutionCallbackHeartbeatOutput, - SendDurableExecutionCallbackSuccessInput, SendDurableExecutionCallbackSuccessOutput, - StopDurableExecutionInput, StopDurableExecutionOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateAliasInput, UpdateAliasOutput, - UpdateCapacityProviderInput, UpdateCapacityProviderOutput, - UpdateCodeSigningConfigInput, UpdateCodeSigningConfigOutput, - UpdateEventSourceMappingInput, UpdateEventSourceMappingOutput, - UpdateFunctionCodeInput, UpdateFunctionCodeOutput, - UpdateFunctionConfigurationInput, UpdateFunctionConfigurationOutput, - UpdateFunctionEventInvokeConfigInput, UpdateFunctionEventInvokeConfigOutput, - UpdateFunctionUrlConfigInput, UpdateFunctionUrlConfigOutput, ) @@ -286,10 +199,25 @@ class LambdaClient(Client[LambdaConfig]): FAQs.](http://aws.amazon.com/certificate-manager/faqs/#certificates) """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def add_layer_version_permission( - self, input: AddLayerVersionPermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.AddLayerVersionPermissionInput + | _models.AddLayerVersionPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddLayerVersionPermissionOutput: ... + + @_overload + def add_layer_version_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddLayerVersionPermissionInputDict], ) -> AddLayerVersionPermissionOutput: """ Adds permissions to the resource-based policy of a version of an [Lambda @@ -302,8 +230,6 @@ def add_layer_version_permission( statement ID that you specified when you added it. Args: - input: - An instance of `AddLayerVersionPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -313,10 +239,33 @@ def add_layer_version_permission( Returns: An instance of `AddLayerVersionPermissionOutput`. """ - return self._invoke(input, _models.ADD_LAYER_VERSION_PERMISSION, [], plugins) + def add_layer_version_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddLayerVersionPermissionOutput: + return self._invoke( + self._select_input(_models.ADD_LAYER_VERSION_PERMISSION, args, kwargs), + _models.ADD_LAYER_VERSION_PERMISSION, + [], + plugins, + ) + + @_overload + def add_permission( + self, + request: _models.AddPermissionInput | _models.AddPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddPermissionOutput: ... + + @_overload def add_permission( - self, input: AddPermissionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddPermissionInputDict], ) -> AddPermissionOutput: """ Grants a @@ -325,7 +274,7 @@ def add_permission( level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. - Note: Lambda does not support adding policies to version $$LATEST. + Note: Lambda does not support adding policies to version $LATEST. To grant permission to another account, specify the account ID as the `Principal`. To grant permission to an organization defined in @@ -344,8 +293,6 @@ def add_permission( Lambda](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html). Args: - input: - An instance of `AddPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -355,12 +302,34 @@ def add_permission( Returns: An instance of `AddPermissionOutput`. """ - return self._invoke(input, _models.ADD_PERMISSION, [], plugins) + def add_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddPermissionOutput: + return self._invoke( + self._select_input(_models.ADD_PERMISSION, args, kwargs), + _models.ADD_PERMISSION, + [], + plugins, + ) + + @_overload + def checkpoint_durable_execution( + self, + request: _models.CheckpointDurableExecutionInput + | _models.CheckpointDurableExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CheckpointDurableExecutionOutput: ... + + @_overload def checkpoint_durable_execution( self, - input: CheckpointDurableExecutionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CheckpointDurableExecutionInputDict], ) -> CheckpointDurableExecutionOutput: """ Saves the progress of a [durable @@ -376,8 +345,6 @@ def checkpoint_durable_execution( state updates. Args: - input: - An instance of `CheckpointDurableExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -387,10 +354,33 @@ def checkpoint_durable_execution( Returns: An instance of `CheckpointDurableExecutionOutput`. """ - return self._invoke(input, _models.CHECKPOINT_DURABLE_EXECUTION, [], plugins) + def checkpoint_durable_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CheckpointDurableExecutionOutput: + return self._invoke( + self._select_input(_models.CHECKPOINT_DURABLE_EXECUTION, args, kwargs), + _models.CHECKPOINT_DURABLE_EXECUTION, + [], + plugins, + ) + + @_overload + def create_alias( + self, + request: _models.CreateAliasInput | _models.CreateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAliasOutput: ... + + @_overload def create_alias( - self, input: CreateAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAliasInputDict], ) -> CreateAliasOutput: """ Creates an @@ -403,8 +393,6 @@ def create_alias( and the percentage of invocation requests that it receives. Args: - input: - An instance of `CreateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -414,18 +402,40 @@ def create_alias( Returns: An instance of `CreateAliasOutput`. """ - return self._invoke(input, _models.CREATE_ALIAS, [], plugins) + def create_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAliasOutput: + return self._invoke( + self._select_input(_models.CREATE_ALIAS, args, kwargs), + _models.CREATE_ALIAS, + [], + plugins, + ) + + @_overload + def create_capacity_provider( + self, + request: _models.CreateCapacityProviderInput + | _models.CreateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCapacityProviderOutput: ... + + @_overload def create_capacity_provider( - self, input: CreateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCapacityProviderInputDict], ) -> CreateCapacityProviderOutput: """ Creates a capacity provider that manages compute resources for Lambda Event Functions Args: - input: - An instance of `CreateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -435,10 +445,34 @@ def create_capacity_provider( Returns: An instance of `CreateCapacityProviderOutput`. """ - return self._invoke(input, _models.CREATE_CAPACITY_PROVIDER, [], plugins) + def create_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCapacityProviderOutput: + return self._invoke( + self._select_input(_models.CREATE_CAPACITY_PROVIDER, args, kwargs), + _models.CREATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def create_code_signing_config( + self, + request: _models.CreateCodeSigningConfigInput + | _models.CreateCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCodeSigningConfigOutput: ... + + @_overload def create_code_signing_config( - self, input: CreateCodeSigningConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCodeSigningConfigInputDict], ) -> CreateCodeSigningConfigOutput: """ Creates a code signing configuration. A [code signing @@ -448,8 +482,6 @@ def create_code_signing_config( fail). Args: - input: - An instance of `CreateCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -459,10 +491,34 @@ def create_code_signing_config( Returns: An instance of `CreateCodeSigningConfigOutput`. """ - return self._invoke(input, _models.CREATE_CODE_SIGNING_CONFIG, [], plugins) + def create_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCodeSigningConfigOutput: + return self._invoke( + self._select_input(_models.CREATE_CODE_SIGNING_CONFIG, args, kwargs), + _models.CREATE_CODE_SIGNING_CONFIG, + [], + plugins, + ) + + @_overload def create_event_source_mapping( - self, input: CreateEventSourceMappingInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateEventSourceMappingInput + | _models.CreateEventSourceMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEventSourceMappingOutput: ... + + @_overload + def create_event_source_mapping( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEventSourceMappingInputDict], ) -> CreateEventSourceMappingOutput: """ Creates a mapping between an event source and an Lambda Event Function. @@ -542,8 +598,6 @@ def create_event_source_mapping( DocumentDB](https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration) Args: - input: - An instance of `CreateEventSourceMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -553,10 +607,33 @@ def create_event_source_mapping( Returns: An instance of `CreateEventSourceMappingOutput`. """ - return self._invoke(input, _models.CREATE_EVENT_SOURCE_MAPPING, [], plugins) + def create_event_source_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEventSourceMappingOutput: + return self._invoke( + self._select_input(_models.CREATE_EVENT_SOURCE_MAPPING, args, kwargs), + _models.CREATE_EVENT_SOURCE_MAPPING, + [], + plugins, + ) + + @_overload + def create_function( + self, + request: _models.CreateFunctionInput | _models.CreateFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFunctionOutput: ... + + @_overload def create_function( - self, input: CreateFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFunctionInputDict], ) -> CreateFunctionOutput: """ Creates a Lambda Event Function. To create a function, you need a @@ -629,8 +706,6 @@ def create_function( functions](https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html). Args: - input: - An instance of `CreateFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -640,10 +715,34 @@ def create_function( Returns: An instance of `CreateFunctionOutput`. """ - return self._invoke(input, _models.CREATE_FUNCTION, [], plugins) + def create_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFunctionOutput: + return self._invoke( + self._select_input(_models.CREATE_FUNCTION, args, kwargs), + _models.CREATE_FUNCTION, + [], + plugins, + ) + + @_overload + def create_function_url_config( + self, + request: _models.CreateFunctionUrlConfigInput + | _models.CreateFunctionUrlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateFunctionUrlConfigOutput: ... + + @_overload def create_function_url_config( - self, input: CreateFunctionUrlConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateFunctionUrlConfigInputDict], ) -> CreateFunctionUrlConfigOutput: """ Creates a Lambda function URL with the specified configuration @@ -651,8 +750,6 @@ def create_function_url_config( use to invoke your function. Args: - input: - An instance of `CreateFunctionUrlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -662,18 +759,39 @@ def create_function_url_config( Returns: An instance of `CreateFunctionUrlConfigOutput`. """ - return self._invoke(input, _models.CREATE_FUNCTION_URL_CONFIG, [], plugins) + def create_function_url_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateFunctionUrlConfigOutput: + return self._invoke( + self._select_input(_models.CREATE_FUNCTION_URL_CONFIG, args, kwargs), + _models.CREATE_FUNCTION_URL_CONFIG, + [], + plugins, + ) + + @_overload + def delete_alias( + self, + request: _models.DeleteAliasInput | _models.DeleteAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAliasOutput: ... + + @_overload def delete_alias( - self, input: DeleteAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAliasInputDict], ) -> DeleteAliasOutput: """ Deletes a Lambda Event Function [alias](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). Args: - input: - An instance of `DeleteAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -683,18 +801,40 @@ def delete_alias( Returns: An instance of `DeleteAliasOutput`. """ - return self._invoke(input, _models.DELETE_ALIAS, [], plugins) + def delete_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAliasOutput: + return self._invoke( + self._select_input(_models.DELETE_ALIAS, args, kwargs), + _models.DELETE_ALIAS, + [], + plugins, + ) + + @_overload + def delete_capacity_provider( + self, + request: _models.DeleteCapacityProviderInput + | _models.DeleteCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCapacityProviderOutput: ... + + @_overload def delete_capacity_provider( - self, input: DeleteCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCapacityProviderInputDict], ) -> DeleteCapacityProviderOutput: """ Deletes a capacity provider. You cannot delete a capacity provider that is currently being used by Lambda functions. Args: - input: - An instance of `DeleteCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -704,18 +844,40 @@ def delete_capacity_provider( Returns: An instance of `DeleteCapacityProviderOutput`. """ - return self._invoke(input, _models.DELETE_CAPACITY_PROVIDER, [], plugins) + def delete_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCapacityProviderOutput: + return self._invoke( + self._select_input(_models.DELETE_CAPACITY_PROVIDER, args, kwargs), + _models.DELETE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def delete_code_signing_config( + self, + request: _models.DeleteCodeSigningConfigInput + | _models.DeleteCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCodeSigningConfigOutput: ... + + @_overload def delete_code_signing_config( - self, input: DeleteCodeSigningConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCodeSigningConfigInputDict], ) -> DeleteCodeSigningConfigOutput: """ Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it. Args: - input: - An instance of `DeleteCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -725,10 +887,34 @@ def delete_code_signing_config( Returns: An instance of `DeleteCodeSigningConfigOutput`. """ - return self._invoke(input, _models.DELETE_CODE_SIGNING_CONFIG, [], plugins) + def delete_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCodeSigningConfigOutput: + return self._invoke( + self._select_input(_models.DELETE_CODE_SIGNING_CONFIG, args, kwargs), + _models.DELETE_CODE_SIGNING_CONFIG, + [], + plugins, + ) + + @_overload + def delete_event_source_mapping( + self, + request: _models.DeleteEventSourceMappingInput + | _models.DeleteEventSourceMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEventSourceMappingOutput: ... + + @_overload def delete_event_source_mapping( - self, input: DeleteEventSourceMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEventSourceMappingInputDict], ) -> DeleteEventSourceMappingOutput: """ Deletes an [event source @@ -740,8 +926,6 @@ def delete_event_source_mapping( and might not be completely deleted for several seconds. Args: - input: - An instance of `DeleteEventSourceMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -751,10 +935,33 @@ def delete_event_source_mapping( Returns: An instance of `DeleteEventSourceMappingOutput`. """ - return self._invoke(input, _models.DELETE_EVENT_SOURCE_MAPPING, [], plugins) + def delete_event_source_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEventSourceMappingOutput: + return self._invoke( + self._select_input(_models.DELETE_EVENT_SOURCE_MAPPING, args, kwargs), + _models.DELETE_EVENT_SOURCE_MAPPING, + [], + plugins, + ) + + @_overload + def delete_function( + self, + request: _models.DeleteFunctionInput | _models.DeleteFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionOutput: ... + + @_overload def delete_function( - self, input: DeleteFunctionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionInputDict], ) -> DeleteFunctionOutput: """ Deletes a Lambda Event Function. To delete a specific function version, @@ -772,8 +979,6 @@ def delete_function( where you originally configured it. Args: - input: - An instance of `DeleteFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -783,19 +988,39 @@ def delete_function( Returns: An instance of `DeleteFunctionOutput`. """ - return self._invoke(input, _models.DELETE_FUNCTION, [], plugins) + def delete_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionOutput: + return self._invoke( + self._select_input(_models.DELETE_FUNCTION, args, kwargs), + _models.DELETE_FUNCTION, + [], + plugins, + ) + + @_overload def delete_function_code_signing_config( self, - input: DeleteFunctionCodeSigningConfigInput, + request: _models.DeleteFunctionCodeSigningConfigInput + | _models.DeleteFunctionCodeSigningConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteFunctionCodeSigningConfigOutput: ... + + @_overload + def delete_function_code_signing_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionCodeSigningConfigInputDict], ) -> DeleteFunctionCodeSigningConfigOutput: """ Removes the code signing configuration from the function. Args: - input: - An instance of `DeleteFunctionCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -805,19 +1030,41 @@ def delete_function_code_signing_config( Returns: An instance of `DeleteFunctionCodeSigningConfigOutput`. """ + + def delete_function_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionCodeSigningConfigOutput: return self._invoke( - input, _models.DELETE_FUNCTION_CODE_SIGNING_CONFIG, [], plugins + self._select_input( + _models.DELETE_FUNCTION_CODE_SIGNING_CONFIG, args, kwargs + ), + _models.DELETE_FUNCTION_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + def delete_function_concurrency( + self, + request: _models.DeleteFunctionConcurrencyInput + | _models.DeleteFunctionConcurrencyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionConcurrencyOutput: ... + + @_overload def delete_function_concurrency( - self, input: DeleteFunctionConcurrencyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionConcurrencyInputDict], ) -> DeleteFunctionConcurrencyOutput: """ Removes a concurrent execution limit from a Lambda Event Function. Args: - input: - An instance of `DeleteFunctionConcurrencyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -827,12 +1074,34 @@ def delete_function_concurrency( Returns: An instance of `DeleteFunctionConcurrencyOutput`. """ - return self._invoke(input, _models.DELETE_FUNCTION_CONCURRENCY, [], plugins) + def delete_function_concurrency( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionConcurrencyOutput: + return self._invoke( + self._select_input(_models.DELETE_FUNCTION_CONCURRENCY, args, kwargs), + _models.DELETE_FUNCTION_CONCURRENCY, + [], + plugins, + ) + + @_overload + def delete_function_event_invoke_config( + self, + request: _models.DeleteFunctionEventInvokeConfigInput + | _models.DeleteFunctionEventInvokeConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionEventInvokeConfigOutput: ... + + @_overload def delete_function_event_invoke_config( self, - input: DeleteFunctionEventInvokeConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionEventInvokeConfigInputDict], ) -> DeleteFunctionEventInvokeConfigOutput: """ Deletes the configuration for asynchronous invocation for a function, @@ -842,8 +1111,6 @@ def delete_function_event_invoke_config( PutFunctionEventInvokeConfig. Args: - input: - An instance of `DeleteFunctionEventInvokeConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -853,12 +1120,36 @@ def delete_function_event_invoke_config( Returns: An instance of `DeleteFunctionEventInvokeConfigOutput`. """ + + def delete_function_event_invoke_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionEventInvokeConfigOutput: return self._invoke( - input, _models.DELETE_FUNCTION_EVENT_INVOKE_CONFIG, [], plugins + self._select_input( + _models.DELETE_FUNCTION_EVENT_INVOKE_CONFIG, args, kwargs + ), + _models.DELETE_FUNCTION_EVENT_INVOKE_CONFIG, + [], + plugins, ) + @_overload + def delete_function_url_config( + self, + request: _models.DeleteFunctionUrlConfigInput + | _models.DeleteFunctionUrlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteFunctionUrlConfigOutput: ... + + @_overload def delete_function_url_config( - self, input: DeleteFunctionUrlConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteFunctionUrlConfigInputDict], ) -> DeleteFunctionUrlConfigOutput: """ Deletes a Lambda function URL. When you delete a function URL, you @@ -866,8 +1157,6 @@ def delete_function_url_config( URL address. Args: - input: - An instance of `DeleteFunctionUrlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -877,10 +1166,33 @@ def delete_function_url_config( Returns: An instance of `DeleteFunctionUrlConfigOutput`. """ - return self._invoke(input, _models.DELETE_FUNCTION_URL_CONFIG, [], plugins) + def delete_function_url_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteFunctionUrlConfigOutput: + return self._invoke( + self._select_input(_models.DELETE_FUNCTION_URL_CONFIG, args, kwargs), + _models.DELETE_FUNCTION_URL_CONFIG, + [], + plugins, + ) + + @_overload + def delete_layer_version( + self, + request: _models.DeleteLayerVersionInput | _models.DeleteLayerVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLayerVersionOutput: ... + + @_overload def delete_layer_version( - self, input: DeleteLayerVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLayerVersionInputDict], ) -> DeleteLayerVersionOutput: """ Deletes a version of an [Lambda @@ -890,8 +1202,6 @@ def delete_layer_version( functions refer to it. Args: - input: - An instance of `DeleteLayerVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -901,19 +1211,39 @@ def delete_layer_version( Returns: An instance of `DeleteLayerVersionOutput`. """ - return self._invoke(input, _models.DELETE_LAYER_VERSION, [], plugins) + def delete_layer_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLayerVersionOutput: + return self._invoke( + self._select_input(_models.DELETE_LAYER_VERSION, args, kwargs), + _models.DELETE_LAYER_VERSION, + [], + plugins, + ) + + @_overload + def delete_provisioned_concurrency_config( + self, + request: _models.DeleteProvisionedConcurrencyConfigInput + | _models.DeleteProvisionedConcurrencyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteProvisionedConcurrencyConfigOutput: ... + + @_overload def delete_provisioned_concurrency_config( self, - input: DeleteProvisionedConcurrencyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteProvisionedConcurrencyConfigInputDict], ) -> DeleteProvisionedConcurrencyConfigOutput: """ Deletes the provisioned concurrency configuration for a function. Args: - input: - An instance of `DeleteProvisionedConcurrencyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -923,12 +1253,36 @@ def delete_provisioned_concurrency_config( Returns: An instance of `DeleteProvisionedConcurrencyConfigOutput`. """ + + def delete_provisioned_concurrency_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteProvisionedConcurrencyConfigOutput: return self._invoke( - input, _models.DELETE_PROVISIONED_CONCURRENCY_CONFIG, [], plugins + self._select_input( + _models.DELETE_PROVISIONED_CONCURRENCY_CONFIG, args, kwargs + ), + _models.DELETE_PROVISIONED_CONCURRENCY_CONFIG, + [], + plugins, ) + @_overload + def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes a [resource-based @@ -936,8 +1290,6 @@ def delete_resource_policy( from a Lambda resource. Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -947,12 +1299,33 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def get_account_settings( + self, + request: _models.GetAccountSettingsInput | _models.GetAccountSettingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccountSettingsOutput: ... + + @_overload def get_account_settings( self, - input: GetAccountSettingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccountSettingsInputDict], ) -> GetAccountSettingsOutput: """ Retrieves details about your account's @@ -960,8 +1333,6 @@ def get_account_settings( usage in an Amazon Web Services Region. Args: - input: - An instance of `GetAccountSettingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -971,18 +1342,39 @@ def get_account_settings( Returns: An instance of `GetAccountSettingsOutput`. """ - return self._invoke(input, _models.GET_ACCOUNT_SETTINGS, [], plugins) + def get_account_settings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccountSettingsOutput: + return self._invoke( + self._select_input(_models.GET_ACCOUNT_SETTINGS, args, kwargs), + _models.GET_ACCOUNT_SETTINGS, + [], + plugins, + ) + + @_overload + def get_alias( + self, + request: _models.GetAliasInput | _models.GetAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAliasOutput: ... + + @_overload def get_alias( - self, input: GetAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAliasInputDict], ) -> GetAliasOutput: """ Returns details about a Lambda Event Function [alias](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). Args: - input: - An instance of `GetAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -992,18 +1384,40 @@ def get_alias( Returns: An instance of `GetAliasOutput`. """ - return self._invoke(input, _models.GET_ALIAS, [], plugins) + def get_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAliasOutput: + return self._invoke( + self._select_input(_models.GET_ALIAS, args, kwargs), + _models.GET_ALIAS, + [], + plugins, + ) + + @_overload + def get_capacity_provider( + self, + request: _models.GetCapacityProviderInput + | _models.GetCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCapacityProviderOutput: ... + + @_overload def get_capacity_provider( - self, input: GetCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCapacityProviderInputDict], ) -> GetCapacityProviderOutput: """ Retrieves information about a specific capacity provider, including its configuration, state, and associated resources. Args: - input: - An instance of `GetCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1013,17 +1427,39 @@ def get_capacity_provider( Returns: An instance of `GetCapacityProviderOutput`. """ - return self._invoke(input, _models.GET_CAPACITY_PROVIDER, [], plugins) + def get_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCapacityProviderOutput: + return self._invoke( + self._select_input(_models.GET_CAPACITY_PROVIDER, args, kwargs), + _models.GET_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload def get_code_signing_config( - self, input: GetCodeSigningConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.GetCodeSigningConfigInput + | _models.GetCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCodeSigningConfigOutput: ... + + @_overload + def get_code_signing_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCodeSigningConfigInputDict], ) -> GetCodeSigningConfigOutput: """ Returns information about the specified code signing configuration. Args: - input: - An instance of `GetCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1033,11 +1469,35 @@ def get_code_signing_config( Returns: An instance of `GetCodeSigningConfigOutput`. """ - return self._invoke(input, _models.GET_CODE_SIGNING_CONFIG, [], plugins) - def get_durable_execution( - self, input: GetDurableExecutionInput, plugins: list[Plugin] | None = None - ) -> GetDurableExecutionOutput: + def get_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCodeSigningConfigOutput: + return self._invoke( + self._select_input(_models.GET_CODE_SIGNING_CONFIG, args, kwargs), + _models.GET_CODE_SIGNING_CONFIG, + [], + plugins, + ) + + @_overload + def get_durable_execution( + self, + request: _models.GetDurableExecutionInput + | _models.GetDurableExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDurableExecutionOutput: ... + + @_overload + def get_durable_execution( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDurableExecutionInputDict], + ) -> GetDurableExecutionOutput: """ Retrieves detailed information about a specific [durable execution](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html), @@ -1046,8 +1506,6 @@ def get_durable_execution( statistics. Args: - input: - An instance of `GetDurableExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1057,12 +1515,34 @@ def get_durable_execution( Returns: An instance of `GetDurableExecutionOutput`. """ - return self._invoke(input, _models.GET_DURABLE_EXECUTION, [], plugins) + def get_durable_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDurableExecutionOutput: + return self._invoke( + self._select_input(_models.GET_DURABLE_EXECUTION, args, kwargs), + _models.GET_DURABLE_EXECUTION, + [], + plugins, + ) + + @_overload + def get_durable_execution_history( + self, + request: _models.GetDurableExecutionHistoryInput + | _models.GetDurableExecutionHistoryInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDurableExecutionHistoryOutput: ... + + @_overload def get_durable_execution_history( self, - input: GetDurableExecutionHistoryInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDurableExecutionHistoryInputDict], ) -> GetDurableExecutionHistoryOutput: """ Retrieves the execution history for a [durable @@ -1077,8 +1557,6 @@ def get_durable_execution_history( callback payloads. Args: - input: - An instance of `GetDurableExecutionHistoryInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1088,10 +1566,34 @@ def get_durable_execution_history( Returns: An instance of `GetDurableExecutionHistoryOutput`. """ - return self._invoke(input, _models.GET_DURABLE_EXECUTION_HISTORY, [], plugins) + def get_durable_execution_history( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDurableExecutionHistoryOutput: + return self._invoke( + self._select_input(_models.GET_DURABLE_EXECUTION_HISTORY, args, kwargs), + _models.GET_DURABLE_EXECUTION_HISTORY, + [], + plugins, + ) + + @_overload def get_durable_execution_state( - self, input: GetDurableExecutionStateInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDurableExecutionStateInput + | _models.GetDurableExecutionStateInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDurableExecutionStateOutput: ... + + @_overload + def get_durable_execution_state( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDurableExecutionStateInputDict], ) -> GetDurableExecutionStateOutput: """ Retrieves the current execution state required for the replay process @@ -1106,8 +1608,6 @@ def get_durable_execution_state( operation details since they don't need to be replayed. Args: - input: - An instance of `GetDurableExecutionStateInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1117,18 +1617,40 @@ def get_durable_execution_state( Returns: An instance of `GetDurableExecutionStateOutput`. """ - return self._invoke(input, _models.GET_DURABLE_EXECUTION_STATE, [], plugins) + def get_durable_execution_state( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDurableExecutionStateOutput: + return self._invoke( + self._select_input(_models.GET_DURABLE_EXECUTION_STATE, args, kwargs), + _models.GET_DURABLE_EXECUTION_STATE, + [], + plugins, + ) + + @_overload def get_event_source_mapping( - self, input: GetEventSourceMappingInput, plugins: list[Plugin] | None = None + self, + request: _models.GetEventSourceMappingInput + | _models.GetEventSourceMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEventSourceMappingOutput: ... + + @_overload + def get_event_source_mapping( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEventSourceMappingInputDict], ) -> GetEventSourceMappingOutput: """ Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. Args: - input: - An instance of `GetEventSourceMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1138,10 +1660,33 @@ def get_event_source_mapping( Returns: An instance of `GetEventSourceMappingOutput`. """ - return self._invoke(input, _models.GET_EVENT_SOURCE_MAPPING, [], plugins) + def get_event_source_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEventSourceMappingOutput: + return self._invoke( + self._select_input(_models.GET_EVENT_SOURCE_MAPPING, args, kwargs), + _models.GET_EVENT_SOURCE_MAPPING, + [], + plugins, + ) + + @_overload def get_function( - self, input: GetFunctionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFunctionInput | _models.GetFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionOutput: ... + + @_overload + def get_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionInputDict], ) -> GetFunctionOutput: """ Returns information about a Lambda Event Function or function version, @@ -1150,8 +1695,6 @@ def get_function( specific to that version are returned. Args: - input: - An instance of `GetFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1161,19 +1704,39 @@ def get_function( Returns: An instance of `GetFunctionOutput`. """ - return self._invoke(input, _models.GET_FUNCTION, [], plugins) + def get_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionOutput: + return self._invoke( + self._select_input(_models.GET_FUNCTION, args, kwargs), + _models.GET_FUNCTION, + [], + plugins, + ) + + @_overload def get_function_code_signing_config( self, - input: GetFunctionCodeSigningConfigInput, + request: _models.GetFunctionCodeSigningConfigInput + | _models.GetFunctionCodeSigningConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetFunctionCodeSigningConfigOutput: ... + + @_overload + def get_function_code_signing_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionCodeSigningConfigInputDict], ) -> GetFunctionCodeSigningConfigOutput: """ Returns the code signing configuration for the specified function. Args: - input: - An instance of `GetFunctionCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1183,12 +1746,34 @@ def get_function_code_signing_config( Returns: An instance of `GetFunctionCodeSigningConfigOutput`. """ + + def get_function_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionCodeSigningConfigOutput: return self._invoke( - input, _models.GET_FUNCTION_CODE_SIGNING_CONFIG, [], plugins + self._select_input(_models.GET_FUNCTION_CODE_SIGNING_CONFIG, args, kwargs), + _models.GET_FUNCTION_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + def get_function_concurrency( + self, + request: _models.GetFunctionConcurrencyInput + | _models.GetFunctionConcurrencyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionConcurrencyOutput: ... + + @_overload def get_function_concurrency( - self, input: GetFunctionConcurrencyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionConcurrencyInputDict], ) -> GetFunctionConcurrencyOutput: """ Returns details about the reserved concurrency configuration for a @@ -1196,8 +1781,6 @@ def get_function_concurrency( PutFunctionConcurrency. Args: - input: - An instance of `GetFunctionConcurrencyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1207,10 +1790,34 @@ def get_function_concurrency( Returns: An instance of `GetFunctionConcurrencyOutput`. """ - return self._invoke(input, _models.GET_FUNCTION_CONCURRENCY, [], plugins) + def get_function_concurrency( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionConcurrencyOutput: + return self._invoke( + self._select_input(_models.GET_FUNCTION_CONCURRENCY, args, kwargs), + _models.GET_FUNCTION_CONCURRENCY, + [], + plugins, + ) + + @_overload + def get_function_configuration( + self, + request: _models.GetFunctionConfigurationInput + | _models.GetFunctionConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionConfigurationOutput: ... + + @_overload def get_function_configuration( - self, input: GetFunctionConfigurationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionConfigurationInputDict], ) -> GetFunctionConfigurationOutput: """ Returns the version-specific settings of a Lambda Event Function or @@ -1222,8 +1829,6 @@ def get_function_configuration( use GetFunction. Args: - input: - An instance of `GetFunctionConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1233,12 +1838,34 @@ def get_function_configuration( Returns: An instance of `GetFunctionConfigurationOutput`. """ - return self._invoke(input, _models.GET_FUNCTION_CONFIGURATION, [], plugins) + def get_function_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionConfigurationOutput: + return self._invoke( + self._select_input(_models.GET_FUNCTION_CONFIGURATION, args, kwargs), + _models.GET_FUNCTION_CONFIGURATION, + [], + plugins, + ) + + @_overload + def get_function_event_invoke_config( + self, + request: _models.GetFunctionEventInvokeConfigInput + | _models.GetFunctionEventInvokeConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionEventInvokeConfigOutput: ... + + @_overload def get_function_event_invoke_config( self, - input: GetFunctionEventInvokeConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionEventInvokeConfigInputDict], ) -> GetFunctionEventInvokeConfigOutput: """ Retrieves the configuration for asynchronous invocation for a function, @@ -1248,8 +1875,6 @@ def get_function_event_invoke_config( PutFunctionEventInvokeConfig. Args: - input: - An instance of `GetFunctionEventInvokeConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1259,14 +1884,34 @@ def get_function_event_invoke_config( Returns: An instance of `GetFunctionEventInvokeConfigOutput`. """ + + def get_function_event_invoke_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionEventInvokeConfigOutput: return self._invoke( - input, _models.GET_FUNCTION_EVENT_INVOKE_CONFIG, [], plugins + self._select_input(_models.GET_FUNCTION_EVENT_INVOKE_CONFIG, args, kwargs), + _models.GET_FUNCTION_EVENT_INVOKE_CONFIG, + [], + plugins, ) + @_overload + def get_function_recursion_config( + self, + request: _models.GetFunctionRecursionConfigInput + | _models.GetFunctionRecursionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionRecursionConfigOutput: ... + + @_overload def get_function_recursion_config( self, - input: GetFunctionRecursionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionRecursionConfigInputDict], ) -> GetFunctionRecursionConfigOutput: """ Returns your function's [recursive loop @@ -1274,8 +1919,6 @@ def get_function_recursion_config( configuration. Args: - input: - An instance of `GetFunctionRecursionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1285,18 +1928,40 @@ def get_function_recursion_config( Returns: An instance of `GetFunctionRecursionConfigOutput`. """ - return self._invoke(input, _models.GET_FUNCTION_RECURSION_CONFIG, [], plugins) + def get_function_recursion_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionRecursionConfigOutput: + return self._invoke( + self._select_input(_models.GET_FUNCTION_RECURSION_CONFIG, args, kwargs), + _models.GET_FUNCTION_RECURSION_CONFIG, + [], + plugins, + ) + + @_overload def get_function_scaling_config( - self, input: GetFunctionScalingConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFunctionScalingConfigInput + | _models.GetFunctionScalingConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionScalingConfigOutput: ... + + @_overload + def get_function_scaling_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionScalingConfigInputDict], ) -> GetFunctionScalingConfigOutput: """ Retrieves the scaling configuration for a Lambda Managed Instances function. Args: - input: - An instance of `GetFunctionScalingConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1306,17 +1971,39 @@ def get_function_scaling_config( Returns: An instance of `GetFunctionScalingConfigOutput`. """ - return self._invoke(input, _models.GET_FUNCTION_SCALING_CONFIG, [], plugins) + def get_function_scaling_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionScalingConfigOutput: + return self._invoke( + self._select_input(_models.GET_FUNCTION_SCALING_CONFIG, args, kwargs), + _models.GET_FUNCTION_SCALING_CONFIG, + [], + plugins, + ) + + @_overload def get_function_url_config( - self, input: GetFunctionUrlConfigInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFunctionUrlConfigInput + | _models.GetFunctionUrlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFunctionUrlConfigOutput: ... + + @_overload + def get_function_url_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFunctionUrlConfigInputDict], ) -> GetFunctionUrlConfigOutput: """ Returns details about a Lambda function URL. Args: - input: - An instance of `GetFunctionUrlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1326,10 +2013,33 @@ def get_function_url_config( Returns: An instance of `GetFunctionUrlConfigOutput`. """ - return self._invoke(input, _models.GET_FUNCTION_URL_CONFIG, [], plugins) + def get_function_url_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFunctionUrlConfigOutput: + return self._invoke( + self._select_input(_models.GET_FUNCTION_URL_CONFIG, args, kwargs), + _models.GET_FUNCTION_URL_CONFIG, + [], + plugins, + ) + + @_overload def get_layer_version( - self, input: GetLayerVersionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLayerVersionInput | _models.GetLayerVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLayerVersionOutput: ... + + @_overload + def get_layer_version( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLayerVersionInputDict], ) -> GetLayerVersionOutput: """ Returns information about a version of an [Lambda @@ -1337,8 +2047,6 @@ def get_layer_version( with a link to download the layer archive that's valid for 10 minutes. Args: - input: - An instance of `GetLayerVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1348,10 +2056,34 @@ def get_layer_version( Returns: An instance of `GetLayerVersionOutput`. """ - return self._invoke(input, _models.GET_LAYER_VERSION, [], plugins) + def get_layer_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLayerVersionOutput: + return self._invoke( + self._select_input(_models.GET_LAYER_VERSION, args, kwargs), + _models.GET_LAYER_VERSION, + [], + plugins, + ) + + @_overload def get_layer_version_by_arn( - self, input: GetLayerVersionByArnInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLayerVersionByArnInput + | _models.GetLayerVersionByArnInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLayerVersionByArnOutput: ... + + @_overload + def get_layer_version_by_arn( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLayerVersionByArnInputDict], ) -> GetLayerVersionByArnOutput: """ Returns information about a version of an [Lambda @@ -1359,8 +2091,6 @@ def get_layer_version_by_arn( with a link to download the layer archive that's valid for 10 minutes. Args: - input: - An instance of `GetLayerVersionByArnInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1370,10 +2100,34 @@ def get_layer_version_by_arn( Returns: An instance of `GetLayerVersionByArnOutput`. """ - return self._invoke(input, _models.GET_LAYER_VERSION_BY_ARN, [], plugins) + def get_layer_version_by_arn( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLayerVersionByArnOutput: + return self._invoke( + self._select_input(_models.GET_LAYER_VERSION_BY_ARN, args, kwargs), + _models.GET_LAYER_VERSION_BY_ARN, + [], + plugins, + ) + + @_overload def get_layer_version_policy( - self, input: GetLayerVersionPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLayerVersionPolicyInput + | _models.GetLayerVersionPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLayerVersionPolicyOutput: ... + + @_overload + def get_layer_version_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLayerVersionPolicyInputDict], ) -> GetLayerVersionPolicyOutput: """ Returns the permission policy for a version of an [Lambda @@ -1381,8 +2135,6 @@ def get_layer_version_policy( For more information, see AddLayerVersionPermission. Args: - input: - An instance of `GetLayerVersionPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1392,10 +2144,33 @@ def get_layer_version_policy( Returns: An instance of `GetLayerVersionPolicyOutput`. """ - return self._invoke(input, _models.GET_LAYER_VERSION_POLICY, [], plugins) + def get_layer_version_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLayerVersionPolicyOutput: + return self._invoke( + self._select_input(_models.GET_LAYER_VERSION_POLICY, args, kwargs), + _models.GET_LAYER_VERSION_POLICY, + [], + plugins, + ) + + @_overload def get_policy( - self, input: GetPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetPolicyInput | _models.GetPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyOutput: ... + + @_overload + def get_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyInputDict], ) -> GetPolicyOutput: """ Returns the [resource-based IAM @@ -1403,8 +2178,6 @@ def get_policy( for a function, version, or alias. Args: - input: - An instance of `GetPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1414,20 +2187,40 @@ def get_policy( Returns: An instance of `GetPolicyOutput`. """ - return self._invoke(input, _models.GET_POLICY, [], plugins) + def get_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyOutput: + return self._invoke( + self._select_input(_models.GET_POLICY, args, kwargs), + _models.GET_POLICY, + [], + plugins, + ) + + @_overload def get_provisioned_concurrency_config( self, - input: GetProvisionedConcurrencyConfigInput, + request: _models.GetProvisionedConcurrencyConfigInput + | _models.GetProvisionedConcurrencyConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetProvisionedConcurrencyConfigOutput: ... + + @_overload + def get_provisioned_concurrency_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetProvisionedConcurrencyConfigInputDict], ) -> GetProvisionedConcurrencyConfigOutput: """ Retrieves the provisioned concurrency configuration for a function's alias or version. Args: - input: - An instance of `GetProvisionedConcurrencyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1437,12 +2230,35 @@ def get_provisioned_concurrency_config( Returns: An instance of `GetProvisionedConcurrencyConfigOutput`. """ + + def get_provisioned_concurrency_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetProvisionedConcurrencyConfigOutput: return self._invoke( - input, _models.GET_PROVISIONED_CONCURRENCY_CONFIG, [], plugins + self._select_input( + _models.GET_PROVISIONED_CONCURRENCY_CONFIG, args, kwargs + ), + _models.GET_PROVISIONED_CONCURRENCY_CONFIG, + [], + plugins, ) + @_overload + def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the [resource-based @@ -1450,8 +2266,6 @@ def get_resource_policy( attached to a Lambda resource. Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1461,12 +2275,34 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def get_runtime_management_config( + self, + request: _models.GetRuntimeManagementConfigInput + | _models.GetRuntimeManagementConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRuntimeManagementConfigOutput: ... + + @_overload def get_runtime_management_config( self, - input: GetRuntimeManagementConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRuntimeManagementConfigInputDict], ) -> GetRuntimeManagementConfigOutput: """ Retrieves the runtime management configuration for a function's @@ -1478,8 +2314,6 @@ def get_runtime_management_config( updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). Args: - input: - An instance of `GetRuntimeManagementConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1489,10 +2323,33 @@ def get_runtime_management_config( Returns: An instance of `GetRuntimeManagementConfigOutput`. """ - return self._invoke(input, _models.GET_RUNTIME_MANAGEMENT_CONFIG, [], plugins) + def get_runtime_management_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRuntimeManagementConfigOutput: + return self._invoke( + self._select_input(_models.GET_RUNTIME_MANAGEMENT_CONFIG, args, kwargs), + _models.GET_RUNTIME_MANAGEMENT_CONFIG, + [], + plugins, + ) + + @_overload def invoke( - self, input: InvokeInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeInput | _models.InvokeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeOutput: ... + + @_overload + def invoke( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeInputDict], ) -> InvokeOutput: """ Invokes a Lambda Event Function. You can invoke a function synchronously @@ -1552,8 +2409,6 @@ def invoke( accounts](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke). Args: - input: - An instance of `InvokeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1563,10 +2418,33 @@ def invoke( Returns: An instance of `InvokeOutput`. """ - return self._invoke(input, _models.INVOKE, [], plugins) + def invoke( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeOutput: + return self._invoke( + self._select_input(_models.INVOKE, args, kwargs), + _models.INVOKE, + [], + plugins, + ) + + @_overload def invoke_async( - self, input: InvokeAsyncInput, plugins: list[Plugin] | None = None + self, + request: _models.InvokeAsyncInput | _models.InvokeAsyncInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> InvokeAsyncOutput: ... + + @_overload + def invoke_async( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeAsyncInputDict], ) -> InvokeAsyncOutput: """ Note: @@ -1583,8 +2461,6 @@ def invoke_async( even if X-Ray active tracing is turned on. Args: - input: - An instance of `InvokeAsyncInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1594,10 +2470,33 @@ def invoke_async( Returns: An instance of `InvokeAsyncOutput`. """ - return self._invoke(input, _models.INVOKE_ASYNC, [], plugins) + def invoke_async( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> InvokeAsyncOutput: + return self._invoke( + self._select_input(_models.INVOKE_ASYNC, args, kwargs), + _models.INVOKE_ASYNC, + [], + plugins, + ) + + @_overload def list_aliases( - self, input: ListAliasesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAliasesInput | _models.ListAliasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAliasesOutput: ... + + @_overload + def list_aliases( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAliasesInputDict], ) -> ListAliasesOutput: """ Returns a list of @@ -1605,8 +2504,6 @@ def list_aliases( for a Lambda Event Function. Args: - input: - An instance of `ListAliasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1616,19 +2513,39 @@ def list_aliases( Returns: An instance of `ListAliasesOutput`. """ - return self._invoke(input, _models.LIST_ALIASES, [], plugins) + def list_aliases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAliasesOutput: + return self._invoke( + self._select_input(_models.LIST_ALIASES, args, kwargs), + _models.LIST_ALIASES, + [], + plugins, + ) + + @_overload def list_capacity_providers( self, - input: ListCapacityProvidersInput | None = None, + request: _models.ListCapacityProvidersInput + | _models.ListCapacityProvidersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListCapacityProvidersOutput: ... + + @_overload + def list_capacity_providers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCapacityProvidersInputDict], ) -> ListCapacityProvidersOutput: """ Returns a list of capacity providers in your account. Args: - input: - An instance of `ListCapacityProvidersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1638,12 +2555,34 @@ def list_capacity_providers( Returns: An instance of `ListCapacityProvidersOutput`. """ - return self._invoke(input, _models.LIST_CAPACITY_PROVIDERS, [], plugins) + def list_capacity_providers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCapacityProvidersOutput: + return self._invoke( + self._select_input(_models.LIST_CAPACITY_PROVIDERS, args, kwargs), + _models.LIST_CAPACITY_PROVIDERS, + [], + plugins, + ) + + @_overload + def list_code_signing_configs( + self, + request: _models.ListCodeSigningConfigsInput + | _models.ListCodeSigningConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListCodeSigningConfigsOutput: ... + + @_overload def list_code_signing_configs( self, - input: ListCodeSigningConfigsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListCodeSigningConfigsInputDict], ) -> ListCodeSigningConfigsOutput: """ Returns a list of [code signing @@ -1652,8 +2591,6 @@ def list_code_signing_configs( `MaxItems` parameter to return fewer configurations per call. Args: - input: - An instance of `ListCodeSigningConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1663,12 +2600,34 @@ def list_code_signing_configs( Returns: An instance of `ListCodeSigningConfigsOutput`. """ - return self._invoke(input, _models.LIST_CODE_SIGNING_CONFIGS, [], plugins) + def list_code_signing_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListCodeSigningConfigsOutput: + return self._invoke( + self._select_input(_models.LIST_CODE_SIGNING_CONFIGS, args, kwargs), + _models.LIST_CODE_SIGNING_CONFIGS, + [], + plugins, + ) + + @_overload + def list_durable_executions_by_function( + self, + request: _models.ListDurableExecutionsByFunctionInput + | _models.ListDurableExecutionsByFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDurableExecutionsByFunctionOutput: ... + + @_overload def list_durable_executions_by_function( self, - input: ListDurableExecutionsByFunctionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDurableExecutionsByFunctionInputDict], ) -> ListDurableExecutionsByFunctionOutput: """ Returns a list of [durable @@ -1678,8 +2637,6 @@ def list_durable_executions_by_function( large result sets. Args: - input: - An instance of `ListDurableExecutionsByFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1689,22 +2646,42 @@ def list_durable_executions_by_function( Returns: An instance of `ListDurableExecutionsByFunctionOutput`. """ + + def list_durable_executions_by_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDurableExecutionsByFunctionOutput: return self._invoke( - input, _models.LIST_DURABLE_EXECUTIONS_BY_FUNCTION, [], plugins + self._select_input( + _models.LIST_DURABLE_EXECUTIONS_BY_FUNCTION, args, kwargs + ), + _models.LIST_DURABLE_EXECUTIONS_BY_FUNCTION, + [], + plugins, ) + @_overload def list_event_source_mappings( self, - input: ListEventSourceMappingsInput | None = None, + request: _models.ListEventSourceMappingsInput + | _models.ListEventSourceMappingsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListEventSourceMappingsOutput: ... + + @_overload + def list_event_source_mappings( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEventSourceMappingsInputDict], ) -> ListEventSourceMappingsOutput: """ Lists event source mappings. Specify an `EventSourceArn` to show only event source mappings for a single event source. Args: - input: - An instance of `ListEventSourceMappingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1714,12 +2691,34 @@ def list_event_source_mappings( Returns: An instance of `ListEventSourceMappingsOutput`. """ - return self._invoke(input, _models.LIST_EVENT_SOURCE_MAPPINGS, [], plugins) + def list_event_source_mappings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEventSourceMappingsOutput: + return self._invoke( + self._select_input(_models.LIST_EVENT_SOURCE_MAPPINGS, args, kwargs), + _models.LIST_EVENT_SOURCE_MAPPINGS, + [], + plugins, + ) + + @_overload + def list_function_event_invoke_configs( + self, + request: _models.ListFunctionEventInvokeConfigsInput + | _models.ListFunctionEventInvokeConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionEventInvokeConfigsOutput: ... + + @_overload def list_function_event_invoke_configs( self, - input: ListFunctionEventInvokeConfigsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionEventInvokeConfigsInputDict], ) -> ListFunctionEventInvokeConfigsOutput: """ Retrieves a list of configurations for asynchronous invocation for a @@ -1730,8 +2729,6 @@ def list_function_event_invoke_configs( PutFunctionEventInvokeConfig. Args: - input: - An instance of `ListFunctionEventInvokeConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1741,14 +2738,35 @@ def list_function_event_invoke_configs( Returns: An instance of `ListFunctionEventInvokeConfigsOutput`. """ + + def list_function_event_invoke_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionEventInvokeConfigsOutput: return self._invoke( - input, _models.LIST_FUNCTION_EVENT_INVOKE_CONFIGS, [], plugins + self._select_input( + _models.LIST_FUNCTION_EVENT_INVOKE_CONFIGS, args, kwargs + ), + _models.LIST_FUNCTION_EVENT_INVOKE_CONFIGS, + [], + plugins, ) + @_overload + def list_functions( + self, + request: _models.ListFunctionsInput | _models.ListFunctionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionsOutput: ... + + @_overload def list_functions( self, - input: ListFunctionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionsInputDict], ) -> ListFunctionsOutput: """ Returns a list of Lambda Event Functions, with the version-specific @@ -1765,8 +2783,6 @@ def list_functions( version, use GetFunction. Args: - input: - An instance of `ListFunctionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1776,12 +2792,34 @@ def list_functions( Returns: An instance of `ListFunctionsOutput`. """ - return self._invoke(input, _models.LIST_FUNCTIONS, [], plugins) + def list_functions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionsOutput: + return self._invoke( + self._select_input(_models.LIST_FUNCTIONS, args, kwargs), + _models.LIST_FUNCTIONS, + [], + plugins, + ) + + @_overload def list_functions_by_code_signing_config( self, - input: ListFunctionsByCodeSigningConfigInput, + request: _models.ListFunctionsByCodeSigningConfigInput + | _models.ListFunctionsByCodeSigningConfigInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListFunctionsByCodeSigningConfigOutput: ... + + @_overload + def list_functions_by_code_signing_config( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionsByCodeSigningConfigInputDict], ) -> ListFunctionsByCodeSigningConfigOutput: """ List the functions that use the specified code signing configuration. @@ -1789,8 +2827,6 @@ def list_functions_by_code_signing_config( to verify that no functions are using it. Args: - input: - An instance of `ListFunctionsByCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1800,19 +2836,41 @@ def list_functions_by_code_signing_config( Returns: An instance of `ListFunctionsByCodeSigningConfigOutput`. """ + + def list_functions_by_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionsByCodeSigningConfigOutput: return self._invoke( - input, _models.LIST_FUNCTIONS_BY_CODE_SIGNING_CONFIG, [], plugins + self._select_input( + _models.LIST_FUNCTIONS_BY_CODE_SIGNING_CONFIG, args, kwargs + ), + _models.LIST_FUNCTIONS_BY_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + def list_function_url_configs( + self, + request: _models.ListFunctionUrlConfigsInput + | _models.ListFunctionUrlConfigsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionUrlConfigsOutput: ... + + @_overload def list_function_url_configs( - self, input: ListFunctionUrlConfigsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionUrlConfigsInputDict], ) -> ListFunctionUrlConfigsOutput: """ Returns a list of Lambda function URLs for the specified function. Args: - input: - An instance of `ListFunctionUrlConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1822,20 +2880,40 @@ def list_function_url_configs( Returns: An instance of `ListFunctionUrlConfigsOutput`. """ - return self._invoke(input, _models.LIST_FUNCTION_URL_CONFIGS, [], plugins) + def list_function_url_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionUrlConfigsOutput: + return self._invoke( + self._select_input(_models.LIST_FUNCTION_URL_CONFIGS, args, kwargs), + _models.LIST_FUNCTION_URL_CONFIGS, + [], + plugins, + ) + + @_overload + def list_function_versions_by_capacity_provider( + self, + request: _models.ListFunctionVersionsByCapacityProviderInput + | _models.ListFunctionVersionsByCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListFunctionVersionsByCapacityProviderOutput: ... + + @_overload def list_function_versions_by_capacity_provider( self, - input: ListFunctionVersionsByCapacityProviderInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListFunctionVersionsByCapacityProviderInputDict], ) -> ListFunctionVersionsByCapacityProviderOutput: """ Returns a list of function versions that are configured to use a specific capacity provider. Args: - input: - An instance of `ListFunctionVersionsByCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1845,12 +2923,35 @@ def list_function_versions_by_capacity_provider( Returns: An instance of `ListFunctionVersionsByCapacityProviderOutput`. """ + + def list_function_versions_by_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListFunctionVersionsByCapacityProviderOutput: return self._invoke( - input, _models.LIST_FUNCTION_VERSIONS_BY_CAPACITY_PROVIDER, [], plugins + self._select_input( + _models.LIST_FUNCTION_VERSIONS_BY_CAPACITY_PROVIDER, args, kwargs + ), + _models.LIST_FUNCTION_VERSIONS_BY_CAPACITY_PROVIDER, + [], + plugins, ) + @_overload def list_layers( - self, input: ListLayersInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListLayersInput | _models.ListLayersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListLayersOutput: ... + + @_overload + def list_layers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListLayersInputDict], ) -> ListLayersOutput: """ Lists [Lambda @@ -1864,8 +2965,6 @@ def list_layers( architecture](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html). Args: - input: - An instance of `ListLayersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1875,10 +2974,33 @@ def list_layers( Returns: An instance of `ListLayersOutput`. """ - return self._invoke(input, _models.LIST_LAYERS, [], plugins) + def list_layers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListLayersOutput: + return self._invoke( + self._select_input(_models.LIST_LAYERS, args, kwargs), + _models.LIST_LAYERS, + [], + plugins, + ) + + @_overload + def list_layer_versions( + self, + request: _models.ListLayerVersionsInput | _models.ListLayerVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListLayerVersionsOutput: ... + + @_overload def list_layer_versions( - self, input: ListLayerVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListLayerVersionsInputDict], ) -> ListLayerVersionsOutput: """ Lists the versions of an [Lambda @@ -1890,8 +3012,6 @@ def list_layer_versions( versions that are compatible with that architecture. Args: - input: - An instance of `ListLayerVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1901,20 +3021,40 @@ def list_layer_versions( Returns: An instance of `ListLayerVersionsOutput`. """ - return self._invoke(input, _models.LIST_LAYER_VERSIONS, [], plugins) + def list_layer_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListLayerVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_LAYER_VERSIONS, args, kwargs), + _models.LIST_LAYER_VERSIONS, + [], + plugins, + ) + + @_overload def list_provisioned_concurrency_configs( self, - input: ListProvisionedConcurrencyConfigsInput, + request: _models.ListProvisionedConcurrencyConfigsInput + | _models.ListProvisionedConcurrencyConfigsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListProvisionedConcurrencyConfigsOutput: ... + + @_overload + def list_provisioned_concurrency_configs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListProvisionedConcurrencyConfigsInputDict], ) -> ListProvisionedConcurrencyConfigsOutput: """ Retrieves a list of provisioned concurrency configurations for a function. Args: - input: - An instance of `ListProvisionedConcurrencyConfigsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1924,12 +3064,35 @@ def list_provisioned_concurrency_configs( Returns: An instance of `ListProvisionedConcurrencyConfigsOutput`. """ + + def list_provisioned_concurrency_configs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListProvisionedConcurrencyConfigsOutput: return self._invoke( - input, _models.LIST_PROVISIONED_CONCURRENCY_CONFIGS, [], plugins + self._select_input( + _models.LIST_PROVISIONED_CONCURRENCY_CONFIGS, args, kwargs + ), + _models.LIST_PROVISIONED_CONCURRENCY_CONFIGS, + [], + plugins, ) + @_overload def list_tags( - self, input: ListTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsInput | _models.ListTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsOutput: ... + + @_overload + def list_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsInputDict], ) -> ListTagsOutput: """ Returns a function, event source mapping, or code signing @@ -1938,8 +3101,6 @@ def list_tags( can also view function tags with GetFunction. Args: - input: - An instance of `ListTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1949,10 +3110,34 @@ def list_tags( Returns: An instance of `ListTagsOutput`. """ - return self._invoke(input, _models.LIST_TAGS, [], plugins) + def list_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS, args, kwargs), + _models.LIST_TAGS, + [], + plugins, + ) + + @_overload def list_versions_by_function( - self, input: ListVersionsByFunctionInput, plugins: list[Plugin] | None = None + self, + request: _models.ListVersionsByFunctionInput + | _models.ListVersionsByFunctionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListVersionsByFunctionOutput: ... + + @_overload + def list_versions_by_function( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListVersionsByFunctionInputDict], ) -> ListVersionsByFunctionOutput: """ Returns a list of @@ -1961,8 +3146,6 @@ def list_versions_by_function( each. Lambda returns up to 50 versions per call. Args: - input: - An instance of `ListVersionsByFunctionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1972,10 +3155,34 @@ def list_versions_by_function( Returns: An instance of `ListVersionsByFunctionOutput`. """ - return self._invoke(input, _models.LIST_VERSIONS_BY_FUNCTION, [], plugins) + def list_versions_by_function( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListVersionsByFunctionOutput: + return self._invoke( + self._select_input(_models.LIST_VERSIONS_BY_FUNCTION, args, kwargs), + _models.LIST_VERSIONS_BY_FUNCTION, + [], + plugins, + ) + + @_overload + def publish_layer_version( + self, + request: _models.PublishLayerVersionInput + | _models.PublishLayerVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishLayerVersionOutput: ... + + @_overload def publish_layer_version( - self, input: PublishLayerVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishLayerVersionInputDict], ) -> PublishLayerVersionOutput: """ Creates an [Lambda @@ -1987,8 +3194,6 @@ def publish_layer_version( UpdateFunctionConfiguration. Args: - input: - An instance of `PublishLayerVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1998,10 +3203,33 @@ def publish_layer_version( Returns: An instance of `PublishLayerVersionOutput`. """ - return self._invoke(input, _models.PUBLISH_LAYER_VERSION, [], plugins) + def publish_layer_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishLayerVersionOutput: + return self._invoke( + self._select_input(_models.PUBLISH_LAYER_VERSION, args, kwargs), + _models.PUBLISH_LAYER_VERSION, + [], + plugins, + ) + + @_overload + def publish_version( + self, + request: _models.PublishVersionInput | _models.PublishVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishVersionOutput: ... + + @_overload def publish_version( - self, input: PublishVersionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishVersionInputDict], ) -> PublishVersionOutput: """ Creates a @@ -2019,8 +3247,6 @@ def publish_version( alias, use CreateAlias. Args: - input: - An instance of `PublishVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2030,12 +3256,34 @@ def publish_version( Returns: An instance of `PublishVersionOutput`. """ - return self._invoke(input, _models.PUBLISH_VERSION, [], plugins) + def publish_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishVersionOutput: + return self._invoke( + self._select_input(_models.PUBLISH_VERSION, args, kwargs), + _models.PUBLISH_VERSION, + [], + plugins, + ) + + @_overload + def put_function_code_signing_config( + self, + request: _models.PutFunctionCodeSigningConfigInput + | _models.PutFunctionCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionCodeSigningConfigOutput: ... + + @_overload def put_function_code_signing_config( self, - input: PutFunctionCodeSigningConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionCodeSigningConfigInputDict], ) -> PutFunctionCodeSigningConfigOutput: """ Update the code signing configuration for the function. Changes to the @@ -2043,8 +3291,6 @@ def put_function_code_signing_config( deploy a code package to the function. Args: - input: - An instance of `PutFunctionCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2054,12 +3300,34 @@ def put_function_code_signing_config( Returns: An instance of `PutFunctionCodeSigningConfigOutput`. """ + + def put_function_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionCodeSigningConfigOutput: return self._invoke( - input, _models.PUT_FUNCTION_CODE_SIGNING_CONFIG, [], plugins + self._select_input(_models.PUT_FUNCTION_CODE_SIGNING_CONFIG, args, kwargs), + _models.PUT_FUNCTION_CODE_SIGNING_CONFIG, + [], + plugins, ) + @_overload + def put_function_concurrency( + self, + request: _models.PutFunctionConcurrencyInput + | _models.PutFunctionConcurrencyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionConcurrencyOutput: ... + + @_overload def put_function_concurrency( - self, input: PutFunctionConcurrencyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionConcurrencyInputDict], ) -> PutFunctionConcurrencyOutput: """ Sets the maximum number of simultaneous executions for a Lambda Event @@ -2079,8 +3347,6 @@ def put_function_concurrency( scaling](https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html). Args: - input: - An instance of `PutFunctionConcurrencyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2090,12 +3356,34 @@ def put_function_concurrency( Returns: An instance of `PutFunctionConcurrencyOutput`. """ - return self._invoke(input, _models.PUT_FUNCTION_CONCURRENCY, [], plugins) + def put_function_concurrency( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionConcurrencyOutput: + return self._invoke( + self._select_input(_models.PUT_FUNCTION_CONCURRENCY, args, kwargs), + _models.PUT_FUNCTION_CONCURRENCY, + [], + plugins, + ) + + @_overload + def put_function_event_invoke_config( + self, + request: _models.PutFunctionEventInvokeConfigInput + | _models.PutFunctionEventInvokeConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionEventInvokeConfigOutput: ... + + @_overload def put_function_event_invoke_config( self, - input: PutFunctionEventInvokeConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionEventInvokeConfigInputDict], ) -> PutFunctionEventInvokeConfigOutput: """ Configures options for [asynchronous @@ -2126,8 +3414,6 @@ def put_function_event_invoke_config( records of successful invocations, use another destination type. Args: - input: - An instance of `PutFunctionEventInvokeConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2137,14 +3423,34 @@ def put_function_event_invoke_config( Returns: An instance of `PutFunctionEventInvokeConfigOutput`. """ + + def put_function_event_invoke_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionEventInvokeConfigOutput: return self._invoke( - input, _models.PUT_FUNCTION_EVENT_INVOKE_CONFIG, [], plugins + self._select_input(_models.PUT_FUNCTION_EVENT_INVOKE_CONFIG, args, kwargs), + _models.PUT_FUNCTION_EVENT_INVOKE_CONFIG, + [], + plugins, ) + @_overload + def put_function_recursion_config( + self, + request: _models.PutFunctionRecursionConfigInput + | _models.PutFunctionRecursionConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionRecursionConfigOutput: ... + + @_overload def put_function_recursion_config( self, - input: PutFunctionRecursionConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionRecursionConfigInputDict], ) -> PutFunctionRecursionConfigOutput: """ Sets the [recursive loop @@ -2164,8 +3470,6 @@ def put_function_recursion_config( your function being invoked and notifies you. Args: - input: - An instance of `PutFunctionRecursionConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2175,10 +3479,34 @@ def put_function_recursion_config( Returns: An instance of `PutFunctionRecursionConfigOutput`. """ - return self._invoke(input, _models.PUT_FUNCTION_RECURSION_CONFIG, [], plugins) + def put_function_recursion_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionRecursionConfigOutput: + return self._invoke( + self._select_input(_models.PUT_FUNCTION_RECURSION_CONFIG, args, kwargs), + _models.PUT_FUNCTION_RECURSION_CONFIG, + [], + plugins, + ) + + @_overload + def put_function_scaling_config( + self, + request: _models.PutFunctionScalingConfigInput + | _models.PutFunctionScalingConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFunctionScalingConfigOutput: ... + + @_overload def put_function_scaling_config( - self, input: PutFunctionScalingConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFunctionScalingConfigInputDict], ) -> PutFunctionScalingConfigOutput: """ Sets the scaling configuration for a Lambda Managed Instances function. @@ -2187,8 +3515,6 @@ def put_function_scaling_config( allowing you to control scaling behavior and resource allocation. Args: - input: - An instance of `PutFunctionScalingConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2198,20 +3524,40 @@ def put_function_scaling_config( Returns: An instance of `PutFunctionScalingConfigOutput`. """ - return self._invoke(input, _models.PUT_FUNCTION_SCALING_CONFIG, [], plugins) + def put_function_scaling_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFunctionScalingConfigOutput: + return self._invoke( + self._select_input(_models.PUT_FUNCTION_SCALING_CONFIG, args, kwargs), + _models.PUT_FUNCTION_SCALING_CONFIG, + [], + plugins, + ) + + @_overload + def put_provisioned_concurrency_config( + self, + request: _models.PutProvisionedConcurrencyConfigInput + | _models.PutProvisionedConcurrencyConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutProvisionedConcurrencyConfigOutput: ... + + @_overload def put_provisioned_concurrency_config( self, - input: PutProvisionedConcurrencyConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutProvisionedConcurrencyConfigInputDict], ) -> PutProvisionedConcurrencyConfigOutput: """ Adds a provisioned concurrency configuration to a function's alias or version. Args: - input: - An instance of `PutProvisionedConcurrencyConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2221,12 +3567,35 @@ def put_provisioned_concurrency_config( Returns: An instance of `PutProvisionedConcurrencyConfigOutput`. """ + + def put_provisioned_concurrency_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutProvisionedConcurrencyConfigOutput: return self._invoke( - input, _models.PUT_PROVISIONED_CONCURRENCY_CONFIG, [], plugins + self._select_input( + _models.PUT_PROVISIONED_CONCURRENCY_CONFIG, args, kwargs + ), + _models.PUT_PROVISIONED_CONCURRENCY_CONFIG, + [], + plugins, ) + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload + def put_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Adds a [resource-based @@ -2246,8 +3615,6 @@ def put_resource_policy( new policy overwrites those permissions. Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2257,12 +3624,34 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def put_runtime_management_config( + self, + request: _models.PutRuntimeManagementConfigInput + | _models.PutRuntimeManagementConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutRuntimeManagementConfigOutput: ... + + @_overload def put_runtime_management_config( self, - input: PutRuntimeManagementConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutRuntimeManagementConfigInputDict], ) -> PutRuntimeManagementConfigOutput: """ Sets the runtime management configuration for a function's version. For @@ -2270,8 +3659,6 @@ def put_runtime_management_config( updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). Args: - input: - An instance of `PutRuntimeManagementConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2281,12 +3668,34 @@ def put_runtime_management_config( Returns: An instance of `PutRuntimeManagementConfigOutput`. """ - return self._invoke(input, _models.PUT_RUNTIME_MANAGEMENT_CONFIG, [], plugins) + def put_runtime_management_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutRuntimeManagementConfigOutput: + return self._invoke( + self._select_input(_models.PUT_RUNTIME_MANAGEMENT_CONFIG, args, kwargs), + _models.PUT_RUNTIME_MANAGEMENT_CONFIG, + [], + plugins, + ) + + @_overload + def remove_layer_version_permission( + self, + request: _models.RemoveLayerVersionPermissionInput + | _models.RemoveLayerVersionPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveLayerVersionPermissionOutput: ... + + @_overload def remove_layer_version_permission( self, - input: RemoveLayerVersionPermissionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveLayerVersionPermissionInputDict], ) -> RemoveLayerVersionPermissionOutput: """ Removes a statement from the permissions policy for a version of an @@ -2295,8 +3704,6 @@ def remove_layer_version_permission( For more information, see AddLayerVersionPermission. Args: - input: - An instance of `RemoveLayerVersionPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2306,10 +3713,33 @@ def remove_layer_version_permission( Returns: An instance of `RemoveLayerVersionPermissionOutput`. """ - return self._invoke(input, _models.REMOVE_LAYER_VERSION_PERMISSION, [], plugins) + def remove_layer_version_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveLayerVersionPermissionOutput: + return self._invoke( + self._select_input(_models.REMOVE_LAYER_VERSION_PERMISSION, args, kwargs), + _models.REMOVE_LAYER_VERSION_PERMISSION, + [], + plugins, + ) + + @_overload + def remove_permission( + self, + request: _models.RemovePermissionInput | _models.RemovePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemovePermissionOutput: ... + + @_overload def remove_permission( - self, input: RemovePermissionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemovePermissionInputDict], ) -> RemovePermissionOutput: """ Revokes function-use permission from an Amazon Web Services service or @@ -2317,8 +3747,6 @@ def remove_permission( from the output of GetPolicy. Args: - input: - An instance of `RemovePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2328,12 +3756,34 @@ def remove_permission( Returns: An instance of `RemovePermissionOutput`. """ - return self._invoke(input, _models.REMOVE_PERMISSION, [], plugins) + def remove_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemovePermissionOutput: + return self._invoke( + self._select_input(_models.REMOVE_PERMISSION, args, kwargs), + _models.REMOVE_PERMISSION, + [], + plugins, + ) + + @_overload def send_durable_execution_callback_failure( self, - input: SendDurableExecutionCallbackFailureInput, + request: _models.SendDurableExecutionCallbackFailureInput + | _models.SendDurableExecutionCallbackFailureInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> SendDurableExecutionCallbackFailureOutput: ... + + @_overload + def send_durable_execution_callback_failure( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDurableExecutionCallbackFailureInputDict], ) -> SendDurableExecutionCallbackFailureOutput: """ Sends a failure response for a callback operation in a durable @@ -2341,8 +3791,6 @@ def send_durable_execution_callback_failure( callback operation successfully. Args: - input: - An instance of `SendDurableExecutionCallbackFailureInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2352,14 +3800,36 @@ def send_durable_execution_callback_failure( Returns: An instance of `SendDurableExecutionCallbackFailureOutput`. """ + + def send_durable_execution_callback_failure( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDurableExecutionCallbackFailureOutput: return self._invoke( - input, _models.SEND_DURABLE_EXECUTION_CALLBACK_FAILURE, [], plugins + self._select_input( + _models.SEND_DURABLE_EXECUTION_CALLBACK_FAILURE, args, kwargs + ), + _models.SEND_DURABLE_EXECUTION_CALLBACK_FAILURE, + [], + plugins, ) + @_overload + def send_durable_execution_callback_heartbeat( + self, + request: _models.SendDurableExecutionCallbackHeartbeatInput + | _models.SendDurableExecutionCallbackHeartbeatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendDurableExecutionCallbackHeartbeatOutput: ... + + @_overload def send_durable_execution_callback_heartbeat( self, - input: SendDurableExecutionCallbackHeartbeatInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDurableExecutionCallbackHeartbeatInputDict], ) -> SendDurableExecutionCallbackHeartbeatOutput: """ Sends a heartbeat signal for a long-running callback operation to @@ -2367,8 +3837,6 @@ def send_durable_execution_callback_heartbeat( while the external operation is still in progress. Args: - input: - An instance of `SendDurableExecutionCallbackHeartbeatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2378,14 +3846,36 @@ def send_durable_execution_callback_heartbeat( Returns: An instance of `SendDurableExecutionCallbackHeartbeatOutput`. """ + + def send_durable_execution_callback_heartbeat( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDurableExecutionCallbackHeartbeatOutput: return self._invoke( - input, _models.SEND_DURABLE_EXECUTION_CALLBACK_HEARTBEAT, [], plugins + self._select_input( + _models.SEND_DURABLE_EXECUTION_CALLBACK_HEARTBEAT, args, kwargs + ), + _models.SEND_DURABLE_EXECUTION_CALLBACK_HEARTBEAT, + [], + plugins, ) + @_overload + def send_durable_execution_callback_success( + self, + request: _models.SendDurableExecutionCallbackSuccessInput + | _models.SendDurableExecutionCallbackSuccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendDurableExecutionCallbackSuccessOutput: ... + + @_overload def send_durable_execution_callback_success( self, - input: SendDurableExecutionCallbackSuccessInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendDurableExecutionCallbackSuccessInputDict], ) -> SendDurableExecutionCallbackSuccessOutput: """ Sends a successful completion response for a callback operation in a @@ -2393,8 +3883,6 @@ def send_durable_execution_callback_success( completed a callback operation. Args: - input: - An instance of `SendDurableExecutionCallbackSuccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2404,12 +3892,36 @@ def send_durable_execution_callback_success( Returns: An instance of `SendDurableExecutionCallbackSuccessOutput`. """ + + def send_durable_execution_callback_success( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendDurableExecutionCallbackSuccessOutput: return self._invoke( - input, _models.SEND_DURABLE_EXECUTION_CALLBACK_SUCCESS, [], plugins + self._select_input( + _models.SEND_DURABLE_EXECUTION_CALLBACK_SUCCESS, args, kwargs + ), + _models.SEND_DURABLE_EXECUTION_CALLBACK_SUCCESS, + [], + plugins, ) + @_overload + def stop_durable_execution( + self, + request: _models.StopDurableExecutionInput + | _models.StopDurableExecutionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDurableExecutionOutput: ... + + @_overload def stop_durable_execution( - self, input: StopDurableExecutionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDurableExecutionInputDict], ) -> StopDurableExecutionOutput: """ Stops a running [durable @@ -2418,8 +3930,6 @@ def stop_durable_execution( in-progress operations are terminated. Args: - input: - An instance of `StopDurableExecutionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2429,18 +3939,39 @@ def stop_durable_execution( Returns: An instance of `StopDurableExecutionOutput`. """ - return self._invoke(input, _models.STOP_DURABLE_EXECUTION, [], plugins) + def stop_durable_execution( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDurableExecutionOutput: + return self._invoke( + self._select_input(_models.STOP_DURABLE_EXECUTION, args, kwargs), + _models.STOP_DURABLE_EXECUTION, + [], + plugins, + ) + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to a function, event source mapping, or code signing configuration. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2450,10 +3981,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes @@ -2461,8 +4015,6 @@ def untag_resource( function, event source mapping, or code signing configuration. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2472,18 +4024,39 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_alias( + self, + request: _models.UpdateAliasInput | _models.UpdateAliasInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateAliasOutput: ... + + @_overload def update_alias( - self, input: UpdateAliasInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateAliasInputDict], ) -> UpdateAliasOutput: """ Updates the configuration of a Lambda Event Function [alias](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). Args: - input: - An instance of `UpdateAliasInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2493,17 +4066,39 @@ def update_alias( Returns: An instance of `UpdateAliasOutput`. """ - return self._invoke(input, _models.UPDATE_ALIAS, [], plugins) + def update_alias( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateAliasOutput: + return self._invoke( + self._select_input(_models.UPDATE_ALIAS, args, kwargs), + _models.UPDATE_ALIAS, + [], + plugins, + ) + + @_overload + def update_capacity_provider( + self, + request: _models.UpdateCapacityProviderInput + | _models.UpdateCapacityProviderInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCapacityProviderOutput: ... + + @_overload def update_capacity_provider( - self, input: UpdateCapacityProviderInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCapacityProviderInputDict], ) -> UpdateCapacityProviderOutput: """ Updates the configuration of an existing capacity provider. Args: - input: - An instance of `UpdateCapacityProviderInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2513,10 +4108,34 @@ def update_capacity_provider( Returns: An instance of `UpdateCapacityProviderOutput`. """ - return self._invoke(input, _models.UPDATE_CAPACITY_PROVIDER, [], plugins) + def update_capacity_provider( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCapacityProviderOutput: + return self._invoke( + self._select_input(_models.UPDATE_CAPACITY_PROVIDER, args, kwargs), + _models.UPDATE_CAPACITY_PROVIDER, + [], + plugins, + ) + + @_overload + def update_code_signing_config( + self, + request: _models.UpdateCodeSigningConfigInput + | _models.UpdateCodeSigningConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateCodeSigningConfigOutput: ... + + @_overload def update_code_signing_config( - self, input: UpdateCodeSigningConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateCodeSigningConfigInputDict], ) -> UpdateCodeSigningConfigOutput: """ Update the code signing configuration. Changes to the code signing @@ -2524,8 +4143,6 @@ def update_code_signing_config( package to the function. Args: - input: - An instance of `UpdateCodeSigningConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2535,10 +4152,34 @@ def update_code_signing_config( Returns: An instance of `UpdateCodeSigningConfigOutput`. """ - return self._invoke(input, _models.UPDATE_CODE_SIGNING_CONFIG, [], plugins) + def update_code_signing_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateCodeSigningConfigOutput: + return self._invoke( + self._select_input(_models.UPDATE_CODE_SIGNING_CONFIG, args, kwargs), + _models.UPDATE_CODE_SIGNING_CONFIG, + [], + plugins, + ) + + @_overload + def update_event_source_mapping( + self, + request: _models.UpdateEventSourceMappingInput + | _models.UpdateEventSourceMappingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateEventSourceMappingOutput: ... + + @_overload def update_event_source_mapping( - self, input: UpdateEventSourceMappingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateEventSourceMappingInputDict], ) -> UpdateEventSourceMappingOutput: """ Updates an event source mapping. You can change the function that Lambda @@ -2618,8 +4259,6 @@ def update_event_source_mapping( DocumentDB](https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration) Args: - input: - An instance of `UpdateEventSourceMappingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2629,10 +4268,33 @@ def update_event_source_mapping( Returns: An instance of `UpdateEventSourceMappingOutput`. """ - return self._invoke(input, _models.UPDATE_EVENT_SOURCE_MAPPING, [], plugins) + def update_event_source_mapping( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateEventSourceMappingOutput: + return self._invoke( + self._select_input(_models.UPDATE_EVENT_SOURCE_MAPPING, args, kwargs), + _models.UPDATE_EVENT_SOURCE_MAPPING, + [], + plugins, + ) + + @_overload + def update_function_code( + self, + request: _models.UpdateFunctionCodeInput | _models.UpdateFunctionCodeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionCodeOutput: ... + + @_overload def update_function_code( - self, input: UpdateFunctionCodeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionCodeInputDict], ) -> UpdateFunctionCodeOutput: """ Updates a Lambda Event Function's code. If code signing is enabled for @@ -2663,8 +4325,6 @@ def update_function_code( new image, Lambda does not automatically update the function. Args: - input: - An instance of `UpdateFunctionCodeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2674,12 +4334,34 @@ def update_function_code( Returns: An instance of `UpdateFunctionCodeOutput`. """ - return self._invoke(input, _models.UPDATE_FUNCTION_CODE, [], plugins) + def update_function_code( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionCodeOutput: + return self._invoke( + self._select_input(_models.UPDATE_FUNCTION_CODE, args, kwargs), + _models.UPDATE_FUNCTION_CODE, + [], + plugins, + ) + + @_overload + def update_function_configuration( + self, + request: _models.UpdateFunctionConfigurationInput + | _models.UpdateFunctionConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionConfigurationOutput: ... + + @_overload def update_function_configuration( self, - input: UpdateFunctionConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionConfigurationInputDict], ) -> UpdateFunctionConfigurationOutput: """ Modifies the version-specific settings of a Lambda Event Function. @@ -2703,8 +4385,6 @@ def update_function_configuration( Services service, use AddPermission. Args: - input: - An instance of `UpdateFunctionConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2714,12 +4394,34 @@ def update_function_configuration( Returns: An instance of `UpdateFunctionConfigurationOutput`. """ - return self._invoke(input, _models.UPDATE_FUNCTION_CONFIGURATION, [], plugins) + def update_function_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionConfigurationOutput: + return self._invoke( + self._select_input(_models.UPDATE_FUNCTION_CONFIGURATION, args, kwargs), + _models.UPDATE_FUNCTION_CONFIGURATION, + [], + plugins, + ) + + @_overload + def update_function_event_invoke_config( + self, + request: _models.UpdateFunctionEventInvokeConfigInput + | _models.UpdateFunctionEventInvokeConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionEventInvokeConfigOutput: ... + + @_overload def update_function_event_invoke_config( self, - input: UpdateFunctionEventInvokeConfigInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionEventInvokeConfigInputDict], ) -> UpdateFunctionEventInvokeConfigOutput: """ Updates the configuration for asynchronous invocation for a function, @@ -2729,8 +4431,6 @@ def update_function_event_invoke_config( PutFunctionEventInvokeConfig. Args: - input: - An instance of `UpdateFunctionEventInvokeConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2740,19 +4440,41 @@ def update_function_event_invoke_config( Returns: An instance of `UpdateFunctionEventInvokeConfigOutput`. """ + + def update_function_event_invoke_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionEventInvokeConfigOutput: return self._invoke( - input, _models.UPDATE_FUNCTION_EVENT_INVOKE_CONFIG, [], plugins + self._select_input( + _models.UPDATE_FUNCTION_EVENT_INVOKE_CONFIG, args, kwargs + ), + _models.UPDATE_FUNCTION_EVENT_INVOKE_CONFIG, + [], + plugins, ) + @_overload + def update_function_url_config( + self, + request: _models.UpdateFunctionUrlConfigInput + | _models.UpdateFunctionUrlConfigInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateFunctionUrlConfigOutput: ... + + @_overload def update_function_url_config( - self, input: UpdateFunctionUrlConfigInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateFunctionUrlConfigInputDict], ) -> UpdateFunctionUrlConfigOutput: """ Updates the configuration for a function URL of a Lambda Event Function. Args: - input: - An instance of `UpdateFunctionUrlConfigInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2762,7 +4484,16 @@ def update_function_url_config( Returns: An instance of `UpdateFunctionUrlConfigOutput`. """ - return self._invoke(input, _models.UPDATE_FUNCTION_URL_CONFIG, [], plugins) + + def update_function_url_config( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateFunctionUrlConfigOutput: + return self._invoke( + self._select_input(_models.UPDATE_FUNCTION_URL_CONFIG, args, kwargs), + _models.UPDATE_FUNCTION_URL_CONFIG, + [], + plugins, + ) def _new_config(self) -> LambdaConfig: return LambdaConfig.resolve() diff --git a/clients/aws-sdk-lambda/src/aws_sdk_lambda/models.pyi b/clients/aws-sdk-lambda/src/aws_sdk_lambda/models.pyi index d116fa16e..8ff5a7357 100644 --- a/clients/aws-sdk-lambda/src/aws_sdk_lambda/models.pyi +++ b/clients/aws-sdk-lambda/src/aws_sdk_lambda/models.pyi @@ -11,42 +11,56 @@ from ._private.models_0 import ( AccountLimit as AccountLimit, AccountUsage as AccountUsage, AddLayerVersionPermissionInput as AddLayerVersionPermissionInput, + AddLayerVersionPermissionInputDict as AddLayerVersionPermissionInputDict, AddLayerVersionPermissionOutput as AddLayerVersionPermissionOutput, AddPermissionInput as AddPermissionInput, + AddPermissionInputDict as AddPermissionInputDict, AddPermissionOutput as AddPermissionOutput, AliasConfiguration as AliasConfiguration, AliasLimitExceededException as AliasLimitExceededException, AliasRoutingConfiguration as AliasRoutingConfiguration, + AliasRoutingConfigurationDict as AliasRoutingConfigurationDict, AllowedPublishers as AllowedPublishers, + AllowedPublishersDict as AllowedPublishersDict, AmazonManagedKafkaEventSourceConfig as AmazonManagedKafkaEventSourceConfig, + AmazonManagedKafkaEventSourceConfigDict as AmazonManagedKafkaEventSourceConfigDict, ApplicationLogLevel as ApplicationLogLevel, Architecture as Architecture, CallbackDetails as CallbackDetails, CallbackFailedDetails as CallbackFailedDetails, CallbackOptions as CallbackOptions, + CallbackOptionsDict as CallbackOptionsDict, CallbackStartedDetails as CallbackStartedDetails, CallbackSucceededDetails as CallbackSucceededDetails, CallbackTimedOutDetails as CallbackTimedOutDetails, CallbackTimeoutException as CallbackTimeoutException, CapacityProvider as CapacityProvider, CapacityProviderConfig as CapacityProviderConfig, + CapacityProviderConfigDict as CapacityProviderConfigDict, CapacityProviderLimitExceededException as CapacityProviderLimitExceededException, CapacityProviderLoggingConfig as CapacityProviderLoggingConfig, + CapacityProviderLoggingConfigDict as CapacityProviderLoggingConfigDict, CapacityProviderPermissionsConfig as CapacityProviderPermissionsConfig, + CapacityProviderPermissionsConfigDict as CapacityProviderPermissionsConfigDict, CapacityProviderPredefinedMetricType as CapacityProviderPredefinedMetricType, CapacityProviderScalingConfig as CapacityProviderScalingConfig, + CapacityProviderScalingConfigDict as CapacityProviderScalingConfigDict, CapacityProviderScalingMode as CapacityProviderScalingMode, CapacityProviderState as CapacityProviderState, CapacityProviderTelemetryConfig as CapacityProviderTelemetryConfig, + CapacityProviderTelemetryConfigDict as CapacityProviderTelemetryConfigDict, CapacityProviderVpcConfig as CapacityProviderVpcConfig, + CapacityProviderVpcConfigDict as CapacityProviderVpcConfigDict, ChainedInvokeDetails as ChainedInvokeDetails, ChainedInvokeFailedDetails as ChainedInvokeFailedDetails, ChainedInvokeOptions as ChainedInvokeOptions, + ChainedInvokeOptionsDict as ChainedInvokeOptionsDict, ChainedInvokeStartedDetails as ChainedInvokeStartedDetails, ChainedInvokeStoppedDetails as ChainedInvokeStoppedDetails, ChainedInvokeSucceededDetails as ChainedInvokeSucceededDetails, ChainedInvokeTimedOutDetails as ChainedInvokeTimedOutDetails, CheckpointDurableExecutionInput as CheckpointDurableExecutionInput, + CheckpointDurableExecutionInputDict as CheckpointDurableExecutionInputDict, CheckpointDurableExecutionOutput as CheckpointDurableExecutionOutput, CheckpointUpdatedExecutionState as CheckpointUpdatedExecutionState, CodeArtifactUserDeletedException as CodeArtifactUserDeletedException, @@ -55,6 +69,7 @@ from ._private.models_0 import ( CodeSigningConfig as CodeSigningConfig, CodeSigningConfigNotFoundException as CodeSigningConfigNotFoundException, CodeSigningPolicies as CodeSigningPolicies, + CodeSigningPoliciesDict as CodeSigningPoliciesDict, CodeSigningPolicy as CodeSigningPolicy, CodeStorageExceededException as CodeStorageExceededException, CodeVerificationFailedException as CodeVerificationFailedException, @@ -62,50 +77,74 @@ from ._private.models_0 import ( ContextDetails as ContextDetails, ContextFailedDetails as ContextFailedDetails, ContextOptions as ContextOptions, + ContextOptionsDict as ContextOptionsDict, ContextStartedDetails as ContextStartedDetails, ContextSucceededDetails as ContextSucceededDetails, Cors as Cors, + CorsDict as CorsDict, CreateAliasInput as CreateAliasInput, + CreateAliasInputDict as CreateAliasInputDict, CreateAliasOutput as CreateAliasOutput, CreateCapacityProviderInput as CreateCapacityProviderInput, + CreateCapacityProviderInputDict as CreateCapacityProviderInputDict, CreateCapacityProviderOutput as CreateCapacityProviderOutput, CreateCodeSigningConfigInput as CreateCodeSigningConfigInput, + CreateCodeSigningConfigInputDict as CreateCodeSigningConfigInputDict, CreateCodeSigningConfigOutput as CreateCodeSigningConfigOutput, CreateEventSourceMappingInput as CreateEventSourceMappingInput, + CreateEventSourceMappingInputDict as CreateEventSourceMappingInputDict, CreateEventSourceMappingOutput as CreateEventSourceMappingOutput, CreateFunctionInput as CreateFunctionInput, + CreateFunctionInputDict as CreateFunctionInputDict, CreateFunctionOutput as CreateFunctionOutput, CreateFunctionUrlConfigInput as CreateFunctionUrlConfigInput, + CreateFunctionUrlConfigInputDict as CreateFunctionUrlConfigInputDict, CreateFunctionUrlConfigOutput as CreateFunctionUrlConfigOutput, DeadLetterConfig as DeadLetterConfig, + DeadLetterConfigDict as DeadLetterConfigDict, DeleteAliasInput as DeleteAliasInput, + DeleteAliasInputDict as DeleteAliasInputDict, DeleteAliasOutput as DeleteAliasOutput, DeleteCapacityProviderInput as DeleteCapacityProviderInput, + DeleteCapacityProviderInputDict as DeleteCapacityProviderInputDict, DeleteCapacityProviderOutput as DeleteCapacityProviderOutput, DeleteCodeSigningConfigInput as DeleteCodeSigningConfigInput, + DeleteCodeSigningConfigInputDict as DeleteCodeSigningConfigInputDict, DeleteCodeSigningConfigOutput as DeleteCodeSigningConfigOutput, DeleteEventSourceMappingInput as DeleteEventSourceMappingInput, + DeleteEventSourceMappingInputDict as DeleteEventSourceMappingInputDict, DeleteEventSourceMappingOutput as DeleteEventSourceMappingOutput, DeleteFunctionCodeSigningConfigInput as DeleteFunctionCodeSigningConfigInput, + DeleteFunctionCodeSigningConfigInputDict as DeleteFunctionCodeSigningConfigInputDict, DeleteFunctionCodeSigningConfigOutput as DeleteFunctionCodeSigningConfigOutput, DeleteFunctionConcurrencyInput as DeleteFunctionConcurrencyInput, + DeleteFunctionConcurrencyInputDict as DeleteFunctionConcurrencyInputDict, DeleteFunctionConcurrencyOutput as DeleteFunctionConcurrencyOutput, DeleteFunctionEventInvokeConfigInput as DeleteFunctionEventInvokeConfigInput, + DeleteFunctionEventInvokeConfigInputDict as DeleteFunctionEventInvokeConfigInputDict, DeleteFunctionEventInvokeConfigOutput as DeleteFunctionEventInvokeConfigOutput, DeleteFunctionInput as DeleteFunctionInput, + DeleteFunctionInputDict as DeleteFunctionInputDict, DeleteFunctionOutput as DeleteFunctionOutput, DeleteFunctionUrlConfigInput as DeleteFunctionUrlConfigInput, + DeleteFunctionUrlConfigInputDict as DeleteFunctionUrlConfigInputDict, DeleteFunctionUrlConfigOutput as DeleteFunctionUrlConfigOutput, DeleteLayerVersionInput as DeleteLayerVersionInput, + DeleteLayerVersionInputDict as DeleteLayerVersionInputDict, DeleteLayerVersionOutput as DeleteLayerVersionOutput, DeleteProvisionedConcurrencyConfigInput as DeleteProvisionedConcurrencyConfigInput, + DeleteProvisionedConcurrencyConfigInputDict as DeleteProvisionedConcurrencyConfigInputDict, DeleteProvisionedConcurrencyConfigOutput as DeleteProvisionedConcurrencyConfigOutput, DeleteResourcePolicyInput as DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict as DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput as DeleteResourcePolicyOutput, DestinationConfig as DestinationConfig, + DestinationConfigDict as DestinationConfigDict, DirectS3Read as DirectS3Read, DocumentDBEventSourceConfig as DocumentDBEventSourceConfig, + DocumentDBEventSourceConfigDict as DocumentDBEventSourceConfigDict, DurableConfig as DurableConfig, + DurableConfigDict as DurableConfigDict, DurableExecutionAlreadyStartedException as DurableExecutionAlreadyStartedException, EC2AccessDeniedException as EC2AccessDeniedException, EC2ThrottledException as EC2ThrottledException, @@ -118,18 +157,23 @@ from ._private.models_0 import ( ENILimitReachedException as ENILimitReachedException, ENINotReadyException as ENINotReadyException, Environment as Environment, + EnvironmentDict as EnvironmentDict, EnvironmentError as EnvironmentError, EnvironmentResponse as EnvironmentResponse, EphemeralStorage as EphemeralStorage, + EphemeralStorageDict as EphemeralStorageDict, ErrorObject as ErrorObject, + ErrorObjectDict as ErrorObjectDict, Event as Event, EventError as EventError, EventInput as EventInput, EventResult as EventResult, EventSourceMappingConfiguration as EventSourceMappingConfiguration, EventSourceMappingLoggingConfig as EventSourceMappingLoggingConfig, + EventSourceMappingLoggingConfigDict as EventSourceMappingLoggingConfigDict, EventSourceMappingMetric as EventSourceMappingMetric, EventSourceMappingMetricsConfig as EventSourceMappingMetricsConfig, + EventSourceMappingMetricsConfigDict as EventSourceMappingMetricsConfigDict, EventSourceMappingSystemLogLevel as EventSourceMappingSystemLogLevel, EventSourcePosition as EventSourcePosition, EventType as EventType, @@ -142,17 +186,22 @@ from ._private.models_0 import ( ExecutionSucceededDetails as ExecutionSucceededDetails, ExecutionTimedOutDetails as ExecutionTimedOutDetails, FileSystemConfig as FileSystemConfig, + FileSystemConfigDict as FileSystemConfigDict, Filter as Filter, + FilterDict as FilterDict, FilterCriteria as FilterCriteria, + FilterCriteriaDict as FilterCriteriaDict, FilterCriteriaError as FilterCriteriaError, FullDocument as FullDocument, FunctionCode as FunctionCode, + FunctionCodeDict as FunctionCodeDict, FunctionCodeLocation as FunctionCodeLocation, FunctionCodeLocationError as FunctionCodeLocationError, FunctionConfiguration as FunctionConfiguration, FunctionEventInvokeConfig as FunctionEventInvokeConfig, FunctionResponseType as FunctionResponseType, FunctionScalingConfig as FunctionScalingConfig, + FunctionScalingConfigDict as FunctionScalingConfigDict, FunctionUrlAuthType as FunctionUrlAuthType, FunctionUrlConfig as FunctionUrlConfig, FunctionVersion as FunctionVersion, @@ -160,55 +209,80 @@ from ._private.models_0 import ( FunctionVersionsByCapacityProviderListItem as FunctionVersionsByCapacityProviderListItem, FunctionVersionsPerCapacityProviderLimitExceededException as FunctionVersionsPerCapacityProviderLimitExceededException, GetAccountSettingsInput as GetAccountSettingsInput, + GetAccountSettingsInputDict as GetAccountSettingsInputDict, GetAccountSettingsOutput as GetAccountSettingsOutput, GetAliasInput as GetAliasInput, + GetAliasInputDict as GetAliasInputDict, GetAliasOutput as GetAliasOutput, GetCapacityProviderInput as GetCapacityProviderInput, + GetCapacityProviderInputDict as GetCapacityProviderInputDict, GetCapacityProviderOutput as GetCapacityProviderOutput, GetCodeSigningConfigInput as GetCodeSigningConfigInput, + GetCodeSigningConfigInputDict as GetCodeSigningConfigInputDict, GetCodeSigningConfigOutput as GetCodeSigningConfigOutput, GetDurableExecutionHistoryInput as GetDurableExecutionHistoryInput, + GetDurableExecutionHistoryInputDict as GetDurableExecutionHistoryInputDict, GetDurableExecutionHistoryOutput as GetDurableExecutionHistoryOutput, GetDurableExecutionInput as GetDurableExecutionInput, + GetDurableExecutionInputDict as GetDurableExecutionInputDict, GetDurableExecutionOutput as GetDurableExecutionOutput, GetDurableExecutionStateInput as GetDurableExecutionStateInput, + GetDurableExecutionStateInputDict as GetDurableExecutionStateInputDict, GetDurableExecutionStateOutput as GetDurableExecutionStateOutput, GetEventSourceMappingInput as GetEventSourceMappingInput, + GetEventSourceMappingInputDict as GetEventSourceMappingInputDict, GetEventSourceMappingOutput as GetEventSourceMappingOutput, GetFunctionCodeSigningConfigInput as GetFunctionCodeSigningConfigInput, + GetFunctionCodeSigningConfigInputDict as GetFunctionCodeSigningConfigInputDict, GetFunctionCodeSigningConfigOutput as GetFunctionCodeSigningConfigOutput, GetFunctionConcurrencyInput as GetFunctionConcurrencyInput, + GetFunctionConcurrencyInputDict as GetFunctionConcurrencyInputDict, GetFunctionConcurrencyOutput as GetFunctionConcurrencyOutput, GetFunctionConfigurationInput as GetFunctionConfigurationInput, + GetFunctionConfigurationInputDict as GetFunctionConfigurationInputDict, GetFunctionConfigurationOutput as GetFunctionConfigurationOutput, GetFunctionEventInvokeConfigInput as GetFunctionEventInvokeConfigInput, + GetFunctionEventInvokeConfigInputDict as GetFunctionEventInvokeConfigInputDict, GetFunctionEventInvokeConfigOutput as GetFunctionEventInvokeConfigOutput, GetFunctionInput as GetFunctionInput, + GetFunctionInputDict as GetFunctionInputDict, GetFunctionOutput as GetFunctionOutput, GetFunctionRecursionConfigInput as GetFunctionRecursionConfigInput, + GetFunctionRecursionConfigInputDict as GetFunctionRecursionConfigInputDict, GetFunctionRecursionConfigOutput as GetFunctionRecursionConfigOutput, GetFunctionScalingConfigInput as GetFunctionScalingConfigInput, + GetFunctionScalingConfigInputDict as GetFunctionScalingConfigInputDict, GetFunctionScalingConfigOutput as GetFunctionScalingConfigOutput, GetFunctionUrlConfigInput as GetFunctionUrlConfigInput, + GetFunctionUrlConfigInputDict as GetFunctionUrlConfigInputDict, GetFunctionUrlConfigOutput as GetFunctionUrlConfigOutput, GetLayerVersionByArnInput as GetLayerVersionByArnInput, + GetLayerVersionByArnInputDict as GetLayerVersionByArnInputDict, GetLayerVersionByArnOutput as GetLayerVersionByArnOutput, GetLayerVersionInput as GetLayerVersionInput, + GetLayerVersionInputDict as GetLayerVersionInputDict, GetLayerVersionOutput as GetLayerVersionOutput, GetLayerVersionPolicyInput as GetLayerVersionPolicyInput, + GetLayerVersionPolicyInputDict as GetLayerVersionPolicyInputDict, GetLayerVersionPolicyOutput as GetLayerVersionPolicyOutput, GetPolicyInput as GetPolicyInput, + GetPolicyInputDict as GetPolicyInputDict, GetPolicyOutput as GetPolicyOutput, GetProvisionedConcurrencyConfigInput as GetProvisionedConcurrencyConfigInput, + GetProvisionedConcurrencyConfigInputDict as GetProvisionedConcurrencyConfigInputDict, GetProvisionedConcurrencyConfigOutput as GetProvisionedConcurrencyConfigOutput, GetResourcePolicyInput as GetResourcePolicyInput, + GetResourcePolicyInputDict as GetResourcePolicyInputDict, GetResourcePolicyOutput as GetResourcePolicyOutput, GetRuntimeManagementConfigInput as GetRuntimeManagementConfigInput, + GetRuntimeManagementConfigInputDict as GetRuntimeManagementConfigInputDict, GetRuntimeManagementConfigOutput as GetRuntimeManagementConfigOutput, ImageConfig as ImageConfig, + ImageConfigDict as ImageConfigDict, ImageConfigError as ImageConfigError, ImageConfigResponse as ImageConfigResponse, InstanceRequirements as InstanceRequirements, + InstanceRequirementsDict as InstanceRequirementsDict, InvalidCodeSignatureException as InvalidCodeSignatureException, InvalidParameterValueException as InvalidParameterValueException, InvalidRequestContentException as InvalidRequestContentException, @@ -219,13 +293,17 @@ from ._private.models_0 import ( InvocationCompletedDetails as InvocationCompletedDetails, InvocationType as InvocationType, InvokeAsyncInput as InvokeAsyncInput, + InvokeAsyncInputDict as InvokeAsyncInputDict, + AsyncInvokeAsyncInputDict as AsyncInvokeAsyncInputDict, InvokeAsyncOutput as InvokeAsyncOutput, InvokeInput as InvokeInput, + InvokeInputDict as InvokeInputDict, InvokeMode as InvokeMode, InvokeOutput as InvokeOutput, InvokeResponseStreamUpdate as InvokeResponseStreamUpdate, InvokeWithResponseStreamCompleteEvent as InvokeWithResponseStreamCompleteEvent, InvokeWithResponseStreamInput as InvokeWithResponseStreamInput, + InvokeWithResponseStreamInputDict as InvokeWithResponseStreamInputDict, InvokeWithResponseStreamOutput as InvokeWithResponseStreamOutput, InvokeWithResponseStreamResponseEventPayloadChunk as InvokeWithResponseStreamResponseEventPayloadChunk, InvokeWithResponseStreamResponseEventInvokeComplete as InvokeWithResponseStreamResponseEventInvokeComplete, @@ -234,102 +312,140 @@ from ._private.models_0 import ( _InvokeWithResponseStreamResponseEventDeserializer as _InvokeWithResponseStreamResponseEventDeserializer, KafkaEventSourceMappingConsumptionMode as KafkaEventSourceMappingConsumptionMode, KafkaSchemaRegistryAccessConfig as KafkaSchemaRegistryAccessConfig, + KafkaSchemaRegistryAccessConfigDict as KafkaSchemaRegistryAccessConfigDict, KafkaSchemaRegistryAuthType as KafkaSchemaRegistryAuthType, KafkaSchemaRegistryConfig as KafkaSchemaRegistryConfig, + KafkaSchemaRegistryConfigDict as KafkaSchemaRegistryConfigDict, KafkaSchemaValidationAttribute as KafkaSchemaValidationAttribute, KafkaSchemaValidationConfig as KafkaSchemaValidationConfig, + KafkaSchemaValidationConfigDict as KafkaSchemaValidationConfigDict, KMSAccessDeniedException as KMSAccessDeniedException, KMSDisabledException as KMSDisabledException, KMSInvalidStateException as KMSInvalidStateException, KMSNotFoundException as KMSNotFoundException, LambdaManagedInstancesCapacityProviderConfig as LambdaManagedInstancesCapacityProviderConfig, + LambdaManagedInstancesCapacityProviderConfigDict as LambdaManagedInstancesCapacityProviderConfigDict, LastUpdateStatus as LastUpdateStatus, LastUpdateStatusReasonCode as LastUpdateStatusReasonCode, Layer as Layer, LayersListItem as LayersListItem, LayerVersionContentInput as LayerVersionContentInput, + LayerVersionContentInputDict as LayerVersionContentInputDict, LayerVersionContentOutput as LayerVersionContentOutput, LayerVersionsListItem as LayerVersionsListItem, ListAliasesInput as ListAliasesInput, + ListAliasesInputDict as ListAliasesInputDict, ListAliasesOutput as ListAliasesOutput, ListCapacityProvidersInput as ListCapacityProvidersInput, + ListCapacityProvidersInputDict as ListCapacityProvidersInputDict, ListCapacityProvidersOutput as ListCapacityProvidersOutput, ListCodeSigningConfigsInput as ListCodeSigningConfigsInput, + ListCodeSigningConfigsInputDict as ListCodeSigningConfigsInputDict, ListCodeSigningConfigsOutput as ListCodeSigningConfigsOutput, ListDurableExecutionsByFunctionInput as ListDurableExecutionsByFunctionInput, + ListDurableExecutionsByFunctionInputDict as ListDurableExecutionsByFunctionInputDict, ListDurableExecutionsByFunctionOutput as ListDurableExecutionsByFunctionOutput, ListEventSourceMappingsInput as ListEventSourceMappingsInput, + ListEventSourceMappingsInputDict as ListEventSourceMappingsInputDict, ListEventSourceMappingsOutput as ListEventSourceMappingsOutput, ListFunctionEventInvokeConfigsInput as ListFunctionEventInvokeConfigsInput, + ListFunctionEventInvokeConfigsInputDict as ListFunctionEventInvokeConfigsInputDict, ListFunctionEventInvokeConfigsOutput as ListFunctionEventInvokeConfigsOutput, ) from ._private.models_1 import ( ListFunctionsByCodeSigningConfigInput as ListFunctionsByCodeSigningConfigInput, + ListFunctionsByCodeSigningConfigInputDict as ListFunctionsByCodeSigningConfigInputDict, ListFunctionsByCodeSigningConfigOutput as ListFunctionsByCodeSigningConfigOutput, ListFunctionsInput as ListFunctionsInput, + ListFunctionsInputDict as ListFunctionsInputDict, ListFunctionsOutput as ListFunctionsOutput, ListFunctionUrlConfigsInput as ListFunctionUrlConfigsInput, + ListFunctionUrlConfigsInputDict as ListFunctionUrlConfigsInputDict, ListFunctionUrlConfigsOutput as ListFunctionUrlConfigsOutput, ListFunctionVersionsByCapacityProviderInput as ListFunctionVersionsByCapacityProviderInput, + ListFunctionVersionsByCapacityProviderInputDict as ListFunctionVersionsByCapacityProviderInputDict, ListFunctionVersionsByCapacityProviderOutput as ListFunctionVersionsByCapacityProviderOutput, ListLayersInput as ListLayersInput, + ListLayersInputDict as ListLayersInputDict, ListLayersOutput as ListLayersOutput, ListLayerVersionsInput as ListLayerVersionsInput, + ListLayerVersionsInputDict as ListLayerVersionsInputDict, ListLayerVersionsOutput as ListLayerVersionsOutput, ListProvisionedConcurrencyConfigsInput as ListProvisionedConcurrencyConfigsInput, + ListProvisionedConcurrencyConfigsInputDict as ListProvisionedConcurrencyConfigsInputDict, ListProvisionedConcurrencyConfigsOutput as ListProvisionedConcurrencyConfigsOutput, ListTagsInput as ListTagsInput, + ListTagsInputDict as ListTagsInputDict, ListTagsOutput as ListTagsOutput, ListVersionsByFunctionInput as ListVersionsByFunctionInput, + ListVersionsByFunctionInputDict as ListVersionsByFunctionInputDict, ListVersionsByFunctionOutput as ListVersionsByFunctionOutput, LogFormat as LogFormat, LoggingConfig as LoggingConfig, + LoggingConfigDict as LoggingConfigDict, LogType as LogType, ModeNotSupportedException as ModeNotSupportedException, NoPublishedVersionException as NoPublishedVersionException, OnFailure as OnFailure, + OnFailureDict as OnFailureDict, OnSuccess as OnSuccess, + OnSuccessDict as OnSuccessDict, Operation as Operation, OperationAction as OperationAction, OperationStatus as OperationStatus, OperationType as OperationType, OperationUpdate as OperationUpdate, + OperationUpdateDict as OperationUpdateDict, PackageType as PackageType, PolicyLengthExceededException as PolicyLengthExceededException, PreconditionFailedException as PreconditionFailedException, PropagateTags as PropagateTags, + PropagateTagsDict as PropagateTagsDict, PropagateTagsMode as PropagateTagsMode, ProvisionedConcurrencyConfigListItem as ProvisionedConcurrencyConfigListItem, ProvisionedConcurrencyConfigNotFoundException as ProvisionedConcurrencyConfigNotFoundException, ProvisionedConcurrencyStatusEnum as ProvisionedConcurrencyStatusEnum, ProvisionedPollerConfig as ProvisionedPollerConfig, + ProvisionedPollerConfigDict as ProvisionedPollerConfigDict, PublicPolicyException as PublicPolicyException, PublishLayerVersionInput as PublishLayerVersionInput, + PublishLayerVersionInputDict as PublishLayerVersionInputDict, PublishLayerVersionOutput as PublishLayerVersionOutput, PublishVersionInput as PublishVersionInput, + PublishVersionInputDict as PublishVersionInputDict, PublishVersionOutput as PublishVersionOutput, PutFunctionCodeSigningConfigInput as PutFunctionCodeSigningConfigInput, + PutFunctionCodeSigningConfigInputDict as PutFunctionCodeSigningConfigInputDict, PutFunctionCodeSigningConfigOutput as PutFunctionCodeSigningConfigOutput, PutFunctionConcurrencyInput as PutFunctionConcurrencyInput, + PutFunctionConcurrencyInputDict as PutFunctionConcurrencyInputDict, PutFunctionConcurrencyOutput as PutFunctionConcurrencyOutput, PutFunctionEventInvokeConfigInput as PutFunctionEventInvokeConfigInput, + PutFunctionEventInvokeConfigInputDict as PutFunctionEventInvokeConfigInputDict, PutFunctionEventInvokeConfigOutput as PutFunctionEventInvokeConfigOutput, PutFunctionRecursionConfigInput as PutFunctionRecursionConfigInput, + PutFunctionRecursionConfigInputDict as PutFunctionRecursionConfigInputDict, PutFunctionRecursionConfigOutput as PutFunctionRecursionConfigOutput, PutFunctionScalingConfigInput as PutFunctionScalingConfigInput, + PutFunctionScalingConfigInputDict as PutFunctionScalingConfigInputDict, PutFunctionScalingConfigOutput as PutFunctionScalingConfigOutput, PutProvisionedConcurrencyConfigInput as PutProvisionedConcurrencyConfigInput, + PutProvisionedConcurrencyConfigInputDict as PutProvisionedConcurrencyConfigInputDict, PutProvisionedConcurrencyConfigOutput as PutProvisionedConcurrencyConfigOutput, PutResourcePolicyInput as PutResourcePolicyInput, + PutResourcePolicyInputDict as PutResourcePolicyInputDict, PutResourcePolicyOutput as PutResourcePolicyOutput, PutRuntimeManagementConfigInput as PutRuntimeManagementConfigInput, + PutRuntimeManagementConfigInputDict as PutRuntimeManagementConfigInputDict, PutRuntimeManagementConfigOutput as PutRuntimeManagementConfigOutput, RecursiveInvocationException as RecursiveInvocationException, RecursiveLoop as RecursiveLoop, RemoveLayerVersionPermissionInput as RemoveLayerVersionPermissionInput, + RemoveLayerVersionPermissionInputDict as RemoveLayerVersionPermissionInputDict, RemoveLayerVersionPermissionOutput as RemoveLayerVersionPermissionOutput, RemovePermissionInput as RemovePermissionInput, + RemovePermissionInputDict as RemovePermissionInputDict, RemovePermissionOutput as RemovePermissionOutput, RequestTooLargeException as RequestTooLargeException, ResolvedS3Object as ResolvedS3Object, @@ -343,24 +459,32 @@ from ._private.models_1 import ( RuntimeVersionConfig as RuntimeVersionConfig, RuntimeVersionError as RuntimeVersionError, S3FilesConfig as S3FilesConfig, + S3FilesConfigDict as S3FilesConfigDict, S3FilesMountConnectivityException as S3FilesMountConnectivityException, S3FilesMountFailureException as S3FilesMountFailureException, S3FilesMountTimeoutException as S3FilesMountTimeoutException, S3ObjectStorageMode as S3ObjectStorageMode, ScalingConfig as ScalingConfig, + ScalingConfigDict as ScalingConfigDict, SchemaRegistryEventRecordFormat as SchemaRegistryEventRecordFormat, SelfManagedEventSource as SelfManagedEventSource, + SelfManagedEventSourceDict as SelfManagedEventSourceDict, SelfManagedKafkaEventSourceConfig as SelfManagedKafkaEventSourceConfig, + SelfManagedKafkaEventSourceConfigDict as SelfManagedKafkaEventSourceConfigDict, SendDurableExecutionCallbackFailureInput as SendDurableExecutionCallbackFailureInput, + SendDurableExecutionCallbackFailureInputDict as SendDurableExecutionCallbackFailureInputDict, SendDurableExecutionCallbackFailureOutput as SendDurableExecutionCallbackFailureOutput, SendDurableExecutionCallbackHeartbeatInput as SendDurableExecutionCallbackHeartbeatInput, + SendDurableExecutionCallbackHeartbeatInputDict as SendDurableExecutionCallbackHeartbeatInputDict, SendDurableExecutionCallbackHeartbeatOutput as SendDurableExecutionCallbackHeartbeatOutput, SendDurableExecutionCallbackSuccessInput as SendDurableExecutionCallbackSuccessInput, + SendDurableExecutionCallbackSuccessInputDict as SendDurableExecutionCallbackSuccessInputDict, SendDurableExecutionCallbackSuccessOutput as SendDurableExecutionCallbackSuccessOutput, SerializedRequestEntityTooLargeException as SerializedRequestEntityTooLargeException, ServiceException as ServiceException, ServiceQuotaExceededException as ServiceQuotaExceededException, SnapStart as SnapStart, + SnapStartDict as SnapStartDict, SnapStartApplyOn as SnapStartApplyOn, SnapStartException as SnapStartException, SnapStartNotReadyException as SnapStartNotReadyException, @@ -369,55 +493,73 @@ from ._private.models_1 import ( SnapStartResponse as SnapStartResponse, SnapStartTimeoutException as SnapStartTimeoutException, SourceAccessConfiguration as SourceAccessConfiguration, + SourceAccessConfigurationDict as SourceAccessConfigurationDict, SourceAccessType as SourceAccessType, State as State, StateReasonCode as StateReasonCode, StepDetails as StepDetails, StepFailedDetails as StepFailedDetails, StepOptions as StepOptions, + StepOptionsDict as StepOptionsDict, StepStartedDetails as StepStartedDetails, StepSucceededDetails as StepSucceededDetails, StopDurableExecutionInput as StopDurableExecutionInput, + StopDurableExecutionInputDict as StopDurableExecutionInputDict, StopDurableExecutionOutput as StopDurableExecutionOutput, SubnetIPAddressLimitReachedException as SubnetIPAddressLimitReachedException, SystemLogLevel as SystemLogLevel, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, TagsError as TagsError, TargetTrackingScalingPolicy as TargetTrackingScalingPolicy, + TargetTrackingScalingPolicyDict as TargetTrackingScalingPolicyDict, TenancyConfig as TenancyConfig, + TenancyConfigDict as TenancyConfigDict, TenantIsolationMode as TenantIsolationMode, ThrottleReason as ThrottleReason, TooManyRequestsException as TooManyRequestsException, TraceHeader as TraceHeader, TracingConfig as TracingConfig, + TracingConfigDict as TracingConfigDict, TracingConfigResponse as TracingConfigResponse, TracingMode as TracingMode, UnsupportedMediaTypeException as UnsupportedMediaTypeException, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateAliasInput as UpdateAliasInput, + UpdateAliasInputDict as UpdateAliasInputDict, UpdateAliasOutput as UpdateAliasOutput, UpdateCapacityProviderInput as UpdateCapacityProviderInput, + UpdateCapacityProviderInputDict as UpdateCapacityProviderInputDict, UpdateCapacityProviderOutput as UpdateCapacityProviderOutput, UpdateCodeSigningConfigInput as UpdateCodeSigningConfigInput, + UpdateCodeSigningConfigInputDict as UpdateCodeSigningConfigInputDict, UpdateCodeSigningConfigOutput as UpdateCodeSigningConfigOutput, UpdateEventSourceMappingInput as UpdateEventSourceMappingInput, + UpdateEventSourceMappingInputDict as UpdateEventSourceMappingInputDict, UpdateEventSourceMappingOutput as UpdateEventSourceMappingOutput, UpdateFunctionCodeInput as UpdateFunctionCodeInput, + UpdateFunctionCodeInputDict as UpdateFunctionCodeInputDict, UpdateFunctionCodeOutput as UpdateFunctionCodeOutput, UpdateFunctionConfigurationInput as UpdateFunctionConfigurationInput, + UpdateFunctionConfigurationInputDict as UpdateFunctionConfigurationInputDict, UpdateFunctionConfigurationOutput as UpdateFunctionConfigurationOutput, UpdateFunctionEventInvokeConfigInput as UpdateFunctionEventInvokeConfigInput, + UpdateFunctionEventInvokeConfigInputDict as UpdateFunctionEventInvokeConfigInputDict, UpdateFunctionEventInvokeConfigOutput as UpdateFunctionEventInvokeConfigOutput, UpdateFunctionUrlConfigInput as UpdateFunctionUrlConfigInput, + UpdateFunctionUrlConfigInputDict as UpdateFunctionUrlConfigInputDict, UpdateFunctionUrlConfigOutput as UpdateFunctionUrlConfigOutput, UpdateRuntimeOn as UpdateRuntimeOn, VpcConfig as VpcConfig, + VpcConfigDict as VpcConfigDict, VpcConfigResponse as VpcConfigResponse, WaitCancelledDetails as WaitCancelledDetails, WaitDetails as WaitDetails, WaitOptions as WaitOptions, + WaitOptionsDict as WaitOptionsDict, WaitStartedDetails as WaitStartedDetails, WaitSucceededDetails as WaitSucceededDetails, ) diff --git a/clients/aws-sdk-lambda/src/aws_sdk_lambda/py.typed b/clients/aws-sdk-lambda/src/aws_sdk_lambda/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-lambda/tests/_typecheck.py b/clients/aws-sdk-lambda/tests/_typecheck.py index ebb91f8a4..45c9cbac2 100644 --- a/clients/aws-sdk-lambda/tests/_typecheck.py +++ b/clients/aws-sdk-lambda/tests/_typecheck.py @@ -2,101 +2,148 @@ from typing import Any +from aws_sdk_lambda.aio.client import AsyncLambdaClient +from aws_sdk_lambda.client import LambdaClient from aws_sdk_lambda.models import ( AccountLimit, AccountUsage, AddLayerVersionPermissionInput, + AddLayerVersionPermissionInputDict, AddLayerVersionPermissionOutput, AddPermissionInput, + AddPermissionInputDict, AddPermissionOutput, AliasConfiguration, AliasRoutingConfiguration, + AliasRoutingConfigurationDict, AllowedPublishers, + AllowedPublishersDict, AmazonManagedKafkaEventSourceConfig, + AmazonManagedKafkaEventSourceConfigDict, + AsyncInvokeAsyncInputDict, CallbackDetails, CallbackFailedDetails, CallbackOptions, + CallbackOptionsDict, CallbackStartedDetails, CallbackSucceededDetails, CallbackTimedOutDetails, CapacityProvider, CapacityProviderConfig, + CapacityProviderConfigDict, CapacityProviderLoggingConfig, + CapacityProviderLoggingConfigDict, CapacityProviderPermissionsConfig, + CapacityProviderPermissionsConfigDict, CapacityProviderScalingConfig, + CapacityProviderScalingConfigDict, CapacityProviderTelemetryConfig, + CapacityProviderTelemetryConfigDict, CapacityProviderVpcConfig, + CapacityProviderVpcConfigDict, ChainedInvokeDetails, ChainedInvokeFailedDetails, ChainedInvokeOptions, + ChainedInvokeOptionsDict, ChainedInvokeStartedDetails, ChainedInvokeStoppedDetails, ChainedInvokeSucceededDetails, ChainedInvokeTimedOutDetails, CheckpointDurableExecutionInput, + CheckpointDurableExecutionInputDict, CheckpointDurableExecutionOutput, CheckpointUpdatedExecutionState, CodeSigningConfig, CodeSigningPolicies, + CodeSigningPoliciesDict, Concurrency, ContextDetails, ContextFailedDetails, ContextOptions, + ContextOptionsDict, ContextStartedDetails, ContextSucceededDetails, Cors, + CorsDict, CreateAliasInput, + CreateAliasInputDict, CreateAliasOutput, CreateCapacityProviderInput, + CreateCapacityProviderInputDict, CreateCapacityProviderOutput, CreateCodeSigningConfigInput, + CreateCodeSigningConfigInputDict, CreateCodeSigningConfigOutput, CreateEventSourceMappingInput, + CreateEventSourceMappingInputDict, CreateEventSourceMappingOutput, CreateFunctionInput, + CreateFunctionInputDict, CreateFunctionOutput, CreateFunctionUrlConfigInput, + CreateFunctionUrlConfigInputDict, CreateFunctionUrlConfigOutput, DeadLetterConfig, + DeadLetterConfigDict, DeleteAliasInput, + DeleteAliasInputDict, DeleteAliasOutput, DeleteCapacityProviderInput, + DeleteCapacityProviderInputDict, DeleteCapacityProviderOutput, DeleteCodeSigningConfigInput, + DeleteCodeSigningConfigInputDict, DeleteCodeSigningConfigOutput, DeleteEventSourceMappingInput, + DeleteEventSourceMappingInputDict, DeleteEventSourceMappingOutput, DeleteFunctionCodeSigningConfigInput, + DeleteFunctionCodeSigningConfigInputDict, DeleteFunctionCodeSigningConfigOutput, DeleteFunctionConcurrencyInput, + DeleteFunctionConcurrencyInputDict, DeleteFunctionConcurrencyOutput, DeleteFunctionEventInvokeConfigInput, + DeleteFunctionEventInvokeConfigInputDict, DeleteFunctionEventInvokeConfigOutput, DeleteFunctionInput, + DeleteFunctionInputDict, DeleteFunctionOutput, DeleteFunctionUrlConfigInput, + DeleteFunctionUrlConfigInputDict, DeleteFunctionUrlConfigOutput, DeleteLayerVersionInput, + DeleteLayerVersionInputDict, DeleteLayerVersionOutput, DeleteProvisionedConcurrencyConfigInput, + DeleteProvisionedConcurrencyConfigInputDict, DeleteProvisionedConcurrencyConfigOutput, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DestinationConfig, + DestinationConfigDict, DocumentDBEventSourceConfig, + DocumentDBEventSourceConfigDict, DurableConfig, + DurableConfigDict, Environment, + EnvironmentDict, EnvironmentError, EnvironmentResponse, EphemeralStorage, + EphemeralStorageDict, ErrorObject, + ErrorObjectDict, Event, EventError, EventInput, EventResult, EventSourceMappingConfiguration, EventSourceMappingLoggingConfig, + EventSourceMappingLoggingConfigDict, EventSourceMappingMetricsConfig, + EventSourceMappingMetricsConfigDict, Execution, ExecutionDetails, ExecutionFailedDetails, @@ -105,209 +152,307 @@ ExecutionSucceededDetails, ExecutionTimedOutDetails, FileSystemConfig, + FileSystemConfigDict, Filter, FilterCriteria, + FilterCriteriaDict, FilterCriteriaError, + FilterDict, FunctionCode, + FunctionCodeDict, FunctionCodeLocation, FunctionCodeLocationError, FunctionConfiguration, FunctionEventInvokeConfig, FunctionScalingConfig, + FunctionScalingConfigDict, FunctionUrlConfig, FunctionVersionsByCapacityProviderListItem, GetAccountSettingsInput, + GetAccountSettingsInputDict, GetAccountSettingsOutput, GetAliasInput, + GetAliasInputDict, GetAliasOutput, GetCapacityProviderInput, + GetCapacityProviderInputDict, GetCapacityProviderOutput, GetCodeSigningConfigInput, + GetCodeSigningConfigInputDict, GetCodeSigningConfigOutput, GetDurableExecutionHistoryInput, + GetDurableExecutionHistoryInputDict, GetDurableExecutionHistoryOutput, GetDurableExecutionInput, + GetDurableExecutionInputDict, GetDurableExecutionOutput, GetDurableExecutionStateInput, + GetDurableExecutionStateInputDict, GetDurableExecutionStateOutput, GetEventSourceMappingInput, + GetEventSourceMappingInputDict, GetEventSourceMappingOutput, GetFunctionCodeSigningConfigInput, + GetFunctionCodeSigningConfigInputDict, GetFunctionCodeSigningConfigOutput, GetFunctionConcurrencyInput, + GetFunctionConcurrencyInputDict, GetFunctionConcurrencyOutput, GetFunctionConfigurationInput, + GetFunctionConfigurationInputDict, GetFunctionConfigurationOutput, GetFunctionEventInvokeConfigInput, + GetFunctionEventInvokeConfigInputDict, GetFunctionEventInvokeConfigOutput, GetFunctionInput, + GetFunctionInputDict, GetFunctionOutput, GetFunctionRecursionConfigInput, + GetFunctionRecursionConfigInputDict, GetFunctionRecursionConfigOutput, GetFunctionScalingConfigInput, + GetFunctionScalingConfigInputDict, GetFunctionScalingConfigOutput, GetFunctionUrlConfigInput, + GetFunctionUrlConfigInputDict, GetFunctionUrlConfigOutput, GetLayerVersionByArnInput, + GetLayerVersionByArnInputDict, GetLayerVersionByArnOutput, GetLayerVersionInput, + GetLayerVersionInputDict, GetLayerVersionOutput, GetLayerVersionPolicyInput, + GetLayerVersionPolicyInputDict, GetLayerVersionPolicyOutput, GetPolicyInput, + GetPolicyInputDict, GetPolicyOutput, GetProvisionedConcurrencyConfigInput, + GetProvisionedConcurrencyConfigInputDict, GetProvisionedConcurrencyConfigOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GetRuntimeManagementConfigInput, + GetRuntimeManagementConfigInputDict, GetRuntimeManagementConfigOutput, ImageConfig, + ImageConfigDict, ImageConfigError, ImageConfigResponse, InstanceRequirements, + InstanceRequirementsDict, InvocationCompletedDetails, InvokeAsyncInput, + InvokeAsyncInputDict, InvokeAsyncOutput, InvokeInput, + InvokeInputDict, InvokeOutput, InvokeResponseStreamUpdate, InvokeWithResponseStreamCompleteEvent, InvokeWithResponseStreamInput, + InvokeWithResponseStreamInputDict, InvokeWithResponseStreamOutput, KafkaSchemaRegistryAccessConfig, + KafkaSchemaRegistryAccessConfigDict, KafkaSchemaRegistryConfig, + KafkaSchemaRegistryConfigDict, KafkaSchemaValidationConfig, + KafkaSchemaValidationConfigDict, LambdaManagedInstancesCapacityProviderConfig, + LambdaManagedInstancesCapacityProviderConfigDict, Layer, LayerVersionContentInput, + LayerVersionContentInputDict, LayerVersionContentOutput, LayerVersionsListItem, LayersListItem, ListAliasesInput, + ListAliasesInputDict, ListAliasesOutput, ListCapacityProvidersInput, + ListCapacityProvidersInputDict, ListCapacityProvidersOutput, ListCodeSigningConfigsInput, + ListCodeSigningConfigsInputDict, ListCodeSigningConfigsOutput, ListDurableExecutionsByFunctionInput, + ListDurableExecutionsByFunctionInputDict, ListDurableExecutionsByFunctionOutput, ListEventSourceMappingsInput, + ListEventSourceMappingsInputDict, ListEventSourceMappingsOutput, ListFunctionEventInvokeConfigsInput, + ListFunctionEventInvokeConfigsInputDict, ListFunctionEventInvokeConfigsOutput, ListFunctionUrlConfigsInput, + ListFunctionUrlConfigsInputDict, ListFunctionUrlConfigsOutput, ListFunctionVersionsByCapacityProviderInput, + ListFunctionVersionsByCapacityProviderInputDict, ListFunctionVersionsByCapacityProviderOutput, ListFunctionsByCodeSigningConfigInput, + ListFunctionsByCodeSigningConfigInputDict, ListFunctionsByCodeSigningConfigOutput, ListFunctionsInput, + ListFunctionsInputDict, ListFunctionsOutput, ListLayerVersionsInput, + ListLayerVersionsInputDict, ListLayerVersionsOutput, ListLayersInput, + ListLayersInputDict, ListLayersOutput, ListProvisionedConcurrencyConfigsInput, + ListProvisionedConcurrencyConfigsInputDict, ListProvisionedConcurrencyConfigsOutput, ListTagsInput, + ListTagsInputDict, ListTagsOutput, ListVersionsByFunctionInput, + ListVersionsByFunctionInputDict, ListVersionsByFunctionOutput, LoggingConfig, + LoggingConfigDict, OnFailure, + OnFailureDict, OnSuccess, + OnSuccessDict, Operation, OperationUpdate, + OperationUpdateDict, PropagateTags, + PropagateTagsDict, ProvisionedConcurrencyConfigListItem, ProvisionedPollerConfig, + ProvisionedPollerConfigDict, PublishLayerVersionInput, + PublishLayerVersionInputDict, PublishLayerVersionOutput, PublishVersionInput, + PublishVersionInputDict, PublishVersionOutput, PutFunctionCodeSigningConfigInput, + PutFunctionCodeSigningConfigInputDict, PutFunctionCodeSigningConfigOutput, PutFunctionConcurrencyInput, + PutFunctionConcurrencyInputDict, PutFunctionConcurrencyOutput, PutFunctionEventInvokeConfigInput, + PutFunctionEventInvokeConfigInputDict, PutFunctionEventInvokeConfigOutput, PutFunctionRecursionConfigInput, + PutFunctionRecursionConfigInputDict, PutFunctionRecursionConfigOutput, PutFunctionScalingConfigInput, + PutFunctionScalingConfigInputDict, PutFunctionScalingConfigOutput, PutProvisionedConcurrencyConfigInput, + PutProvisionedConcurrencyConfigInputDict, PutProvisionedConcurrencyConfigOutput, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, PutRuntimeManagementConfigInput, + PutRuntimeManagementConfigInputDict, PutRuntimeManagementConfigOutput, RemoveLayerVersionPermissionInput, + RemoveLayerVersionPermissionInputDict, RemoveLayerVersionPermissionOutput, RemovePermissionInput, + RemovePermissionInputDict, RemovePermissionOutput, ResolvedS3Object, RetryDetails, RuntimeVersionConfig, RuntimeVersionError, S3FilesConfig, + S3FilesConfigDict, ScalingConfig, + ScalingConfigDict, SelfManagedEventSource, + SelfManagedEventSourceDict, SelfManagedKafkaEventSourceConfig, + SelfManagedKafkaEventSourceConfigDict, SendDurableExecutionCallbackFailureInput, + SendDurableExecutionCallbackFailureInputDict, SendDurableExecutionCallbackFailureOutput, SendDurableExecutionCallbackHeartbeatInput, + SendDurableExecutionCallbackHeartbeatInputDict, SendDurableExecutionCallbackHeartbeatOutput, SendDurableExecutionCallbackSuccessInput, + SendDurableExecutionCallbackSuccessInputDict, SendDurableExecutionCallbackSuccessOutput, SnapStart, + SnapStartDict, SnapStartResponse, SourceAccessConfiguration, + SourceAccessConfigurationDict, StepDetails, StepFailedDetails, StepOptions, + StepOptionsDict, StepStartedDetails, StepSucceededDetails, StopDurableExecutionInput, + StopDurableExecutionInputDict, StopDurableExecutionOutput, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TagsError, TargetTrackingScalingPolicy, + TargetTrackingScalingPolicyDict, TenancyConfig, + TenancyConfigDict, TraceHeader, TracingConfig, + TracingConfigDict, TracingConfigResponse, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateAliasInput, + UpdateAliasInputDict, UpdateAliasOutput, UpdateCapacityProviderInput, + UpdateCapacityProviderInputDict, UpdateCapacityProviderOutput, UpdateCodeSigningConfigInput, + UpdateCodeSigningConfigInputDict, UpdateCodeSigningConfigOutput, UpdateEventSourceMappingInput, + UpdateEventSourceMappingInputDict, UpdateEventSourceMappingOutput, UpdateFunctionCodeInput, + UpdateFunctionCodeInputDict, UpdateFunctionCodeOutput, UpdateFunctionConfigurationInput, + UpdateFunctionConfigurationInputDict, UpdateFunctionConfigurationOutput, UpdateFunctionEventInvokeConfigInput, + UpdateFunctionEventInvokeConfigInputDict, UpdateFunctionEventInvokeConfigOutput, UpdateFunctionUrlConfigInput, + UpdateFunctionUrlConfigInputDict, UpdateFunctionUrlConfigOutput, VpcConfig, + VpcConfigDict, VpcConfigResponse, WaitCancelledDetails, WaitDetails, WaitOptions, + WaitOptionsDict, WaitStartedDetails, WaitSucceededDetails, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -639,3 +784,1260 @@ WaitOptions() WaitStartedDetails(duration=_, scheduled_end_timestamp=_) WaitSucceededDetails() +_params_0: AddLayerVersionPermissionInputDict = { + "layer_name": _, + "statement_id": _, + "action": _, + "principal": _, +} +_params_1: AddPermissionInputDict = { + "function_name": _, + "statement_id": _, + "action": _, + "principal": _, +} +_params_2: AliasRoutingConfigurationDict = {} +_params_3: AllowedPublishersDict = {"signing_profile_version_arns": _} +_params_4: AmazonManagedKafkaEventSourceConfigDict = {} +_params_5: CallbackOptionsDict = {} +_params_6: CapacityProviderConfigDict = { + "lambda_managed_instances_capacity_provider_config": _ +} +_params_7: CapacityProviderLoggingConfigDict = {} +_params_8: CapacityProviderPermissionsConfigDict = { + "capacity_provider_operator_role_arn": _ +} +_params_9: CapacityProviderScalingConfigDict = {} +_params_10: CapacityProviderTelemetryConfigDict = {} +_params_11: CapacityProviderVpcConfigDict = {"subnet_ids": _, "security_group_ids": _} +_params_12: ChainedInvokeOptionsDict = {"function_name": _} +_params_13: CheckpointDurableExecutionInputDict = { + "durable_execution_arn": _, + "checkpoint_token": _, +} +_params_14: CodeSigningPoliciesDict = {} +_params_15: ContextOptionsDict = {} +_params_16: CorsDict = {} +_params_17: CreateAliasInputDict = { + "function_name": _, + "name": _, + "function_version": _, +} +_params_18: CreateCapacityProviderInputDict = { + "capacity_provider_name": _, + "vpc_config": _, + "permissions_config": _, +} +_params_19: CreateCodeSigningConfigInputDict = {"allowed_publishers": _} +_params_20: CreateEventSourceMappingInputDict = {"function_name": _} +_params_21: CreateFunctionInputDict = {"function_name": _, "role": _, "code": _} +_params_22: CreateFunctionUrlConfigInputDict = {"function_name": _, "auth_type": _} +_params_23: DeadLetterConfigDict = {} +_params_24: DeleteAliasInputDict = {"function_name": _, "name": _} +_params_25: DeleteCapacityProviderInputDict = {"capacity_provider_name": _} +_params_26: DeleteCodeSigningConfigInputDict = {"code_signing_config_arn": _} +_params_27: DeleteEventSourceMappingInputDict = {"uuid": _} +_params_28: DeleteFunctionCodeSigningConfigInputDict = {"function_name": _} +_params_29: DeleteFunctionConcurrencyInputDict = {"function_name": _} +_params_30: DeleteFunctionEventInvokeConfigInputDict = {"function_name": _} +_params_31: DeleteFunctionInputDict = {"function_name": _} +_params_32: DeleteFunctionUrlConfigInputDict = {"function_name": _} +_params_33: DeleteLayerVersionInputDict = {"layer_name": _} +_params_34: DeleteProvisionedConcurrencyConfigInputDict = { + "function_name": _, + "qualifier": _, +} +_params_35: DeleteResourcePolicyInputDict = {"resource_arn": _} +_params_36: DestinationConfigDict = {} +_params_37: DocumentDBEventSourceConfigDict = {} +_params_38: DurableConfigDict = {} +_params_39: EnvironmentDict = {} +_params_40: EphemeralStorageDict = {"size": _} +_params_41: ErrorObjectDict = {} +_params_42: EventSourceMappingLoggingConfigDict = {} +_params_43: EventSourceMappingMetricsConfigDict = {} +_params_44: FileSystemConfigDict = {"arn": _, "local_mount_path": _} +_params_45: FilterDict = {} +_params_46: FilterCriteriaDict = {} +_params_47: FunctionCodeDict = {} +_params_48: FunctionScalingConfigDict = {} +_params_49: GetAccountSettingsInputDict = {} +_params_50: GetAliasInputDict = {"function_name": _, "name": _} +_params_51: GetCapacityProviderInputDict = {"capacity_provider_name": _} +_params_52: GetCodeSigningConfigInputDict = {"code_signing_config_arn": _} +_params_53: GetDurableExecutionHistoryInputDict = {"durable_execution_arn": _} +_params_54: GetDurableExecutionInputDict = {"durable_execution_arn": _} +_params_55: GetDurableExecutionStateInputDict = { + "durable_execution_arn": _, + "checkpoint_token": _, +} +_params_56: GetEventSourceMappingInputDict = {"uuid": _} +_params_57: GetFunctionCodeSigningConfigInputDict = {"function_name": _} +_params_58: GetFunctionConcurrencyInputDict = {"function_name": _} +_params_59: GetFunctionConfigurationInputDict = {"function_name": _} +_params_60: GetFunctionEventInvokeConfigInputDict = {"function_name": _} +_params_61: GetFunctionInputDict = {"function_name": _} +_params_62: GetFunctionRecursionConfigInputDict = {"function_name": _} +_params_63: GetFunctionScalingConfigInputDict = {"function_name": _, "qualifier": _} +_params_64: GetFunctionUrlConfigInputDict = {"function_name": _} +_params_65: GetLayerVersionByArnInputDict = {"arn": _} +_params_66: GetLayerVersionInputDict = {"layer_name": _} +_params_67: GetLayerVersionPolicyInputDict = {"layer_name": _} +_params_68: GetPolicyInputDict = {"function_name": _} +_params_69: GetProvisionedConcurrencyConfigInputDict = { + "function_name": _, + "qualifier": _, +} +_params_70: GetResourcePolicyInputDict = {"resource_arn": _} +_params_71: GetRuntimeManagementConfigInputDict = {"function_name": _} +_params_72: ImageConfigDict = {} +_params_73: InstanceRequirementsDict = {} +_params_74: InvokeAsyncInputDict = {"function_name": _, "invoke_args": _} +_params_75: InvokeInputDict = {"function_name": _} +_params_76: InvokeWithResponseStreamInputDict = {"function_name": _} +_params_77: KafkaSchemaRegistryAccessConfigDict = {} +_params_78: KafkaSchemaRegistryConfigDict = {} +_params_79: KafkaSchemaValidationConfigDict = {} +_params_80: LambdaManagedInstancesCapacityProviderConfigDict = { + "capacity_provider_arn": _ +} +_params_81: LayerVersionContentInputDict = {} +_params_82: ListAliasesInputDict = {"function_name": _} +_params_83: ListCapacityProvidersInputDict = {} +_params_84: ListCodeSigningConfigsInputDict = {} +_params_85: ListDurableExecutionsByFunctionInputDict = {"function_name": _} +_params_86: ListEventSourceMappingsInputDict = {} +_params_87: ListFunctionEventInvokeConfigsInputDict = {"function_name": _} +_params_88: ListFunctionsByCodeSigningConfigInputDict = {"code_signing_config_arn": _} +_params_89: ListFunctionsInputDict = {} +_params_90: ListFunctionUrlConfigsInputDict = {"function_name": _} +_params_91: ListFunctionVersionsByCapacityProviderInputDict = { + "capacity_provider_name": _ +} +_params_92: ListLayersInputDict = {} +_params_93: ListLayerVersionsInputDict = {"layer_name": _} +_params_94: ListProvisionedConcurrencyConfigsInputDict = {"function_name": _} +_params_95: ListTagsInputDict = {"resource": _} +_params_96: ListVersionsByFunctionInputDict = {"function_name": _} +_params_97: LoggingConfigDict = {} +_params_98: OnFailureDict = {} +_params_99: OnSuccessDict = {} +_params_100: OperationUpdateDict = {"id": _, "type": _, "action": _} +_params_101: PropagateTagsDict = {} +_params_102: ProvisionedPollerConfigDict = {} +_params_103: PublishLayerVersionInputDict = {"layer_name": _, "content": _} +_params_104: PublishVersionInputDict = {"function_name": _} +_params_105: PutFunctionCodeSigningConfigInputDict = { + "code_signing_config_arn": _, + "function_name": _, +} +_params_106: PutFunctionConcurrencyInputDict = { + "function_name": _, + "reserved_concurrent_executions": _, +} +_params_107: PutFunctionEventInvokeConfigInputDict = {"function_name": _} +_params_108: PutFunctionRecursionConfigInputDict = { + "function_name": _, + "recursive_loop": _, +} +_params_109: PutFunctionScalingConfigInputDict = {"function_name": _, "qualifier": _} +_params_110: PutProvisionedConcurrencyConfigInputDict = { + "function_name": _, + "qualifier": _, + "provisioned_concurrent_executions": _, +} +_params_111: PutResourcePolicyInputDict = {"resource_arn": _, "policy": _} +_params_112: PutRuntimeManagementConfigInputDict = { + "function_name": _, + "update_runtime_on": _, +} +_params_113: RemoveLayerVersionPermissionInputDict = { + "layer_name": _, + "statement_id": _, +} +_params_114: RemovePermissionInputDict = {"function_name": _, "statement_id": _} +_params_115: S3FilesConfigDict = {} +_params_116: ScalingConfigDict = {} +_params_117: SelfManagedEventSourceDict = {} +_params_118: SelfManagedKafkaEventSourceConfigDict = {} +_params_119: SendDurableExecutionCallbackFailureInputDict = {"callback_id": _} +_params_120: SendDurableExecutionCallbackHeartbeatInputDict = {"callback_id": _} +_params_121: SendDurableExecutionCallbackSuccessInputDict = {"callback_id": _} +_params_122: SnapStartDict = {} +_params_123: SourceAccessConfigurationDict = {} +_params_124: StepOptionsDict = {} +_params_125: StopDurableExecutionInputDict = {"durable_execution_arn": _} +_params_126: TagResourceInputDict = {"resource": _, "tags": _} +_params_127: TargetTrackingScalingPolicyDict = { + "predefined_metric_type": _, + "target_value": _, +} +_params_128: TenancyConfigDict = {"tenant_isolation_mode": _} +_params_129: TracingConfigDict = {} +_params_130: UntagResourceInputDict = {"resource": _, "tag_keys": _} +_params_131: UpdateAliasInputDict = {"function_name": _, "name": _} +_params_132: UpdateCapacityProviderInputDict = {"capacity_provider_name": _} +_params_133: UpdateCodeSigningConfigInputDict = {"code_signing_config_arn": _} +_params_134: UpdateEventSourceMappingInputDict = {"uuid": _} +_params_135: UpdateFunctionCodeInputDict = {"function_name": _} +_params_136: UpdateFunctionConfigurationInputDict = {"function_name": _} +_params_137: UpdateFunctionEventInvokeConfigInputDict = {"function_name": _} +_params_138: UpdateFunctionUrlConfigInputDict = {"function_name": _} +_params_139: VpcConfigDict = {} +_params_140: WaitOptionsDict = {} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncLambdaClient) -> None: + pass + await client.add_layer_version_permission( + layer_name=_, statement_id=_, action=_, principal=_ + ) + await client.add_layer_version_permission( + **_request(AddLayerVersionPermissionInputDict) + ) + await client.add_layer_version_permission(_request(AddLayerVersionPermissionInput)) + await client.add_layer_version_permission( + _request(AddLayerVersionPermissionInputDict) + ) + await client.add_permission(function_name=_, statement_id=_, action=_, principal=_) + await client.add_permission(**_request(AddPermissionInputDict)) + await client.add_permission(_request(AddPermissionInput)) + await client.add_permission(_request(AddPermissionInputDict)) + await client.checkpoint_durable_execution( + durable_execution_arn=_, checkpoint_token=_ + ) + await client.checkpoint_durable_execution( + **_request(CheckpointDurableExecutionInputDict) + ) + await client.checkpoint_durable_execution(_request(CheckpointDurableExecutionInput)) + await client.checkpoint_durable_execution( + _request(CheckpointDurableExecutionInputDict) + ) + await client.create_alias(function_name=_, name=_, function_version=_) + await client.create_alias(**_request(CreateAliasInputDict)) + await client.create_alias(_request(CreateAliasInput)) + await client.create_alias(_request(CreateAliasInputDict)) + await client.create_capacity_provider( + capacity_provider_name=_, vpc_config=_, permissions_config=_ + ) + await client.create_capacity_provider(**_request(CreateCapacityProviderInputDict)) + await client.create_capacity_provider(_request(CreateCapacityProviderInput)) + await client.create_capacity_provider(_request(CreateCapacityProviderInputDict)) + await client.create_code_signing_config(allowed_publishers=_) + await client.create_code_signing_config( + **_request(CreateCodeSigningConfigInputDict) + ) + await client.create_code_signing_config(_request(CreateCodeSigningConfigInput)) + await client.create_code_signing_config(_request(CreateCodeSigningConfigInputDict)) + await client.create_event_source_mapping(function_name=_) + await client.create_event_source_mapping( + **_request(CreateEventSourceMappingInputDict) + ) + await client.create_event_source_mapping(_request(CreateEventSourceMappingInput)) + await client.create_event_source_mapping( + _request(CreateEventSourceMappingInputDict) + ) + await client.create_function(function_name=_, role=_, code=_) + await client.create_function(**_request(CreateFunctionInputDict)) + await client.create_function(_request(CreateFunctionInput)) + await client.create_function(_request(CreateFunctionInputDict)) + await client.create_function_url_config(function_name=_, auth_type=_) + await client.create_function_url_config( + **_request(CreateFunctionUrlConfigInputDict) + ) + await client.create_function_url_config(_request(CreateFunctionUrlConfigInput)) + await client.create_function_url_config(_request(CreateFunctionUrlConfigInputDict)) + await client.delete_alias(function_name=_, name=_) + await client.delete_alias(**_request(DeleteAliasInputDict)) + await client.delete_alias(_request(DeleteAliasInput)) + await client.delete_alias(_request(DeleteAliasInputDict)) + await client.delete_capacity_provider(capacity_provider_name=_) + await client.delete_capacity_provider(**_request(DeleteCapacityProviderInputDict)) + await client.delete_capacity_provider(_request(DeleteCapacityProviderInput)) + await client.delete_capacity_provider(_request(DeleteCapacityProviderInputDict)) + await client.delete_code_signing_config(code_signing_config_arn=_) + await client.delete_code_signing_config( + **_request(DeleteCodeSigningConfigInputDict) + ) + await client.delete_code_signing_config(_request(DeleteCodeSigningConfigInput)) + await client.delete_code_signing_config(_request(DeleteCodeSigningConfigInputDict)) + await client.delete_event_source_mapping(uuid=_) + await client.delete_event_source_mapping( + **_request(DeleteEventSourceMappingInputDict) + ) + await client.delete_event_source_mapping(_request(DeleteEventSourceMappingInput)) + await client.delete_event_source_mapping( + _request(DeleteEventSourceMappingInputDict) + ) + await client.delete_function(function_name=_) + await client.delete_function(**_request(DeleteFunctionInputDict)) + await client.delete_function(_request(DeleteFunctionInput)) + await client.delete_function(_request(DeleteFunctionInputDict)) + await client.delete_function_code_signing_config(function_name=_) + await client.delete_function_code_signing_config( + **_request(DeleteFunctionCodeSigningConfigInputDict) + ) + await client.delete_function_code_signing_config( + _request(DeleteFunctionCodeSigningConfigInput) + ) + await client.delete_function_code_signing_config( + _request(DeleteFunctionCodeSigningConfigInputDict) + ) + await client.delete_function_concurrency(function_name=_) + await client.delete_function_concurrency( + **_request(DeleteFunctionConcurrencyInputDict) + ) + await client.delete_function_concurrency(_request(DeleteFunctionConcurrencyInput)) + await client.delete_function_concurrency( + _request(DeleteFunctionConcurrencyInputDict) + ) + await client.delete_function_event_invoke_config(function_name=_) + await client.delete_function_event_invoke_config( + **_request(DeleteFunctionEventInvokeConfigInputDict) + ) + await client.delete_function_event_invoke_config( + _request(DeleteFunctionEventInvokeConfigInput) + ) + await client.delete_function_event_invoke_config( + _request(DeleteFunctionEventInvokeConfigInputDict) + ) + await client.delete_function_url_config(function_name=_) + await client.delete_function_url_config( + **_request(DeleteFunctionUrlConfigInputDict) + ) + await client.delete_function_url_config(_request(DeleteFunctionUrlConfigInput)) + await client.delete_function_url_config(_request(DeleteFunctionUrlConfigInputDict)) + await client.delete_layer_version(layer_name=_) + await client.delete_layer_version(**_request(DeleteLayerVersionInputDict)) + await client.delete_layer_version(_request(DeleteLayerVersionInput)) + await client.delete_layer_version(_request(DeleteLayerVersionInputDict)) + await client.delete_provisioned_concurrency_config(function_name=_, qualifier=_) + await client.delete_provisioned_concurrency_config( + **_request(DeleteProvisionedConcurrencyConfigInputDict) + ) + await client.delete_provisioned_concurrency_config( + _request(DeleteProvisionedConcurrencyConfigInput) + ) + await client.delete_provisioned_concurrency_config( + _request(DeleteProvisionedConcurrencyConfigInputDict) + ) + await client.delete_resource_policy(resource_arn=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.get_account_settings() + await client.get_account_settings(**_request(GetAccountSettingsInputDict)) + await client.get_account_settings(_request(GetAccountSettingsInput)) + await client.get_account_settings(_request(GetAccountSettingsInputDict)) + await client.get_alias(function_name=_, name=_) + await client.get_alias(**_request(GetAliasInputDict)) + await client.get_alias(_request(GetAliasInput)) + await client.get_alias(_request(GetAliasInputDict)) + await client.get_capacity_provider(capacity_provider_name=_) + await client.get_capacity_provider(**_request(GetCapacityProviderInputDict)) + await client.get_capacity_provider(_request(GetCapacityProviderInput)) + await client.get_capacity_provider(_request(GetCapacityProviderInputDict)) + await client.get_code_signing_config(code_signing_config_arn=_) + await client.get_code_signing_config(**_request(GetCodeSigningConfigInputDict)) + await client.get_code_signing_config(_request(GetCodeSigningConfigInput)) + await client.get_code_signing_config(_request(GetCodeSigningConfigInputDict)) + await client.get_durable_execution(durable_execution_arn=_) + await client.get_durable_execution(**_request(GetDurableExecutionInputDict)) + await client.get_durable_execution(_request(GetDurableExecutionInput)) + await client.get_durable_execution(_request(GetDurableExecutionInputDict)) + await client.get_durable_execution_history(durable_execution_arn=_) + await client.get_durable_execution_history( + **_request(GetDurableExecutionHistoryInputDict) + ) + await client.get_durable_execution_history( + _request(GetDurableExecutionHistoryInput) + ) + await client.get_durable_execution_history( + _request(GetDurableExecutionHistoryInputDict) + ) + await client.get_durable_execution_state( + durable_execution_arn=_, checkpoint_token=_ + ) + await client.get_durable_execution_state( + **_request(GetDurableExecutionStateInputDict) + ) + await client.get_durable_execution_state(_request(GetDurableExecutionStateInput)) + await client.get_durable_execution_state( + _request(GetDurableExecutionStateInputDict) + ) + await client.get_event_source_mapping(uuid=_) + await client.get_event_source_mapping(**_request(GetEventSourceMappingInputDict)) + await client.get_event_source_mapping(_request(GetEventSourceMappingInput)) + await client.get_event_source_mapping(_request(GetEventSourceMappingInputDict)) + await client.get_function(function_name=_) + await client.get_function(**_request(GetFunctionInputDict)) + await client.get_function(_request(GetFunctionInput)) + await client.get_function(_request(GetFunctionInputDict)) + await client.get_function_code_signing_config(function_name=_) + await client.get_function_code_signing_config( + **_request(GetFunctionCodeSigningConfigInputDict) + ) + await client.get_function_code_signing_config( + _request(GetFunctionCodeSigningConfigInput) + ) + await client.get_function_code_signing_config( + _request(GetFunctionCodeSigningConfigInputDict) + ) + await client.get_function_concurrency(function_name=_) + await client.get_function_concurrency(**_request(GetFunctionConcurrencyInputDict)) + await client.get_function_concurrency(_request(GetFunctionConcurrencyInput)) + await client.get_function_concurrency(_request(GetFunctionConcurrencyInputDict)) + await client.get_function_configuration(function_name=_) + await client.get_function_configuration( + **_request(GetFunctionConfigurationInputDict) + ) + await client.get_function_configuration(_request(GetFunctionConfigurationInput)) + await client.get_function_configuration(_request(GetFunctionConfigurationInputDict)) + await client.get_function_event_invoke_config(function_name=_) + await client.get_function_event_invoke_config( + **_request(GetFunctionEventInvokeConfigInputDict) + ) + await client.get_function_event_invoke_config( + _request(GetFunctionEventInvokeConfigInput) + ) + await client.get_function_event_invoke_config( + _request(GetFunctionEventInvokeConfigInputDict) + ) + await client.get_function_recursion_config(function_name=_) + await client.get_function_recursion_config( + **_request(GetFunctionRecursionConfigInputDict) + ) + await client.get_function_recursion_config( + _request(GetFunctionRecursionConfigInput) + ) + await client.get_function_recursion_config( + _request(GetFunctionRecursionConfigInputDict) + ) + await client.get_function_scaling_config(function_name=_, qualifier=_) + await client.get_function_scaling_config( + **_request(GetFunctionScalingConfigInputDict) + ) + await client.get_function_scaling_config(_request(GetFunctionScalingConfigInput)) + await client.get_function_scaling_config( + _request(GetFunctionScalingConfigInputDict) + ) + await client.get_function_url_config(function_name=_) + await client.get_function_url_config(**_request(GetFunctionUrlConfigInputDict)) + await client.get_function_url_config(_request(GetFunctionUrlConfigInput)) + await client.get_function_url_config(_request(GetFunctionUrlConfigInputDict)) + await client.get_layer_version(layer_name=_) + await client.get_layer_version(**_request(GetLayerVersionInputDict)) + await client.get_layer_version(_request(GetLayerVersionInput)) + await client.get_layer_version(_request(GetLayerVersionInputDict)) + await client.get_layer_version_by_arn(arn=_) + await client.get_layer_version_by_arn(**_request(GetLayerVersionByArnInputDict)) + await client.get_layer_version_by_arn(_request(GetLayerVersionByArnInput)) + await client.get_layer_version_by_arn(_request(GetLayerVersionByArnInputDict)) + await client.get_layer_version_policy(layer_name=_) + await client.get_layer_version_policy(**_request(GetLayerVersionPolicyInputDict)) + await client.get_layer_version_policy(_request(GetLayerVersionPolicyInput)) + await client.get_layer_version_policy(_request(GetLayerVersionPolicyInputDict)) + await client.get_policy(function_name=_) + await client.get_policy(**_request(GetPolicyInputDict)) + await client.get_policy(_request(GetPolicyInput)) + await client.get_policy(_request(GetPolicyInputDict)) + await client.get_provisioned_concurrency_config(function_name=_, qualifier=_) + await client.get_provisioned_concurrency_config( + **_request(GetProvisionedConcurrencyConfigInputDict) + ) + await client.get_provisioned_concurrency_config( + _request(GetProvisionedConcurrencyConfigInput) + ) + await client.get_provisioned_concurrency_config( + _request(GetProvisionedConcurrencyConfigInputDict) + ) + await client.get_resource_policy(resource_arn=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.get_runtime_management_config(function_name=_) + await client.get_runtime_management_config( + **_request(GetRuntimeManagementConfigInputDict) + ) + await client.get_runtime_management_config( + _request(GetRuntimeManagementConfigInput) + ) + await client.get_runtime_management_config( + _request(GetRuntimeManagementConfigInputDict) + ) + await client.invoke(function_name=_) + await client.invoke(**_request(InvokeInputDict)) + await client.invoke(_request(InvokeInput)) + await client.invoke(_request(InvokeInputDict)) + await client.invoke_async(function_name=_, invoke_args=_) + await client.invoke_async(**_request(InvokeAsyncInputDict)) + await client.invoke_async(_request(InvokeAsyncInput)) + await client.invoke_async(_request(InvokeAsyncInputDict)) + await client.invoke_async(**_request(AsyncInvokeAsyncInputDict)) + await client.invoke_async(_request(AsyncInvokeAsyncInputDict)) + await client.invoke_with_response_stream(function_name=_) + await client.invoke_with_response_stream( + **_request(InvokeWithResponseStreamInputDict) + ) + await client.invoke_with_response_stream(_request(InvokeWithResponseStreamInput)) + await client.invoke_with_response_stream( + _request(InvokeWithResponseStreamInputDict) + ) + await client.list_aliases(function_name=_) + await client.list_aliases(**_request(ListAliasesInputDict)) + await client.list_aliases(_request(ListAliasesInput)) + await client.list_aliases(_request(ListAliasesInputDict)) + await client.list_capacity_providers() + await client.list_capacity_providers(**_request(ListCapacityProvidersInputDict)) + await client.list_capacity_providers(_request(ListCapacityProvidersInput)) + await client.list_capacity_providers(_request(ListCapacityProvidersInputDict)) + await client.list_code_signing_configs() + await client.list_code_signing_configs(**_request(ListCodeSigningConfigsInputDict)) + await client.list_code_signing_configs(_request(ListCodeSigningConfigsInput)) + await client.list_code_signing_configs(_request(ListCodeSigningConfigsInputDict)) + await client.list_durable_executions_by_function(function_name=_) + await client.list_durable_executions_by_function( + **_request(ListDurableExecutionsByFunctionInputDict) + ) + await client.list_durable_executions_by_function( + _request(ListDurableExecutionsByFunctionInput) + ) + await client.list_durable_executions_by_function( + _request(ListDurableExecutionsByFunctionInputDict) + ) + await client.list_event_source_mappings() + await client.list_event_source_mappings( + **_request(ListEventSourceMappingsInputDict) + ) + await client.list_event_source_mappings(_request(ListEventSourceMappingsInput)) + await client.list_event_source_mappings(_request(ListEventSourceMappingsInputDict)) + await client.list_function_event_invoke_configs(function_name=_) + await client.list_function_event_invoke_configs( + **_request(ListFunctionEventInvokeConfigsInputDict) + ) + await client.list_function_event_invoke_configs( + _request(ListFunctionEventInvokeConfigsInput) + ) + await client.list_function_event_invoke_configs( + _request(ListFunctionEventInvokeConfigsInputDict) + ) + await client.list_functions() + await client.list_functions(**_request(ListFunctionsInputDict)) + await client.list_functions(_request(ListFunctionsInput)) + await client.list_functions(_request(ListFunctionsInputDict)) + await client.list_functions_by_code_signing_config(code_signing_config_arn=_) + await client.list_functions_by_code_signing_config( + **_request(ListFunctionsByCodeSigningConfigInputDict) + ) + await client.list_functions_by_code_signing_config( + _request(ListFunctionsByCodeSigningConfigInput) + ) + await client.list_functions_by_code_signing_config( + _request(ListFunctionsByCodeSigningConfigInputDict) + ) + await client.list_function_url_configs(function_name=_) + await client.list_function_url_configs(**_request(ListFunctionUrlConfigsInputDict)) + await client.list_function_url_configs(_request(ListFunctionUrlConfigsInput)) + await client.list_function_url_configs(_request(ListFunctionUrlConfigsInputDict)) + await client.list_function_versions_by_capacity_provider(capacity_provider_name=_) + await client.list_function_versions_by_capacity_provider( + **_request(ListFunctionVersionsByCapacityProviderInputDict) + ) + await client.list_function_versions_by_capacity_provider( + _request(ListFunctionVersionsByCapacityProviderInput) + ) + await client.list_function_versions_by_capacity_provider( + _request(ListFunctionVersionsByCapacityProviderInputDict) + ) + await client.list_layers() + await client.list_layers(**_request(ListLayersInputDict)) + await client.list_layers(_request(ListLayersInput)) + await client.list_layers(_request(ListLayersInputDict)) + await client.list_layer_versions(layer_name=_) + await client.list_layer_versions(**_request(ListLayerVersionsInputDict)) + await client.list_layer_versions(_request(ListLayerVersionsInput)) + await client.list_layer_versions(_request(ListLayerVersionsInputDict)) + await client.list_provisioned_concurrency_configs(function_name=_) + await client.list_provisioned_concurrency_configs( + **_request(ListProvisionedConcurrencyConfigsInputDict) + ) + await client.list_provisioned_concurrency_configs( + _request(ListProvisionedConcurrencyConfigsInput) + ) + await client.list_provisioned_concurrency_configs( + _request(ListProvisionedConcurrencyConfigsInputDict) + ) + await client.list_tags(resource=_) + await client.list_tags(**_request(ListTagsInputDict)) + await client.list_tags(_request(ListTagsInput)) + await client.list_tags(_request(ListTagsInputDict)) + await client.list_versions_by_function(function_name=_) + await client.list_versions_by_function(**_request(ListVersionsByFunctionInputDict)) + await client.list_versions_by_function(_request(ListVersionsByFunctionInput)) + await client.list_versions_by_function(_request(ListVersionsByFunctionInputDict)) + await client.publish_layer_version(layer_name=_, content=_) + await client.publish_layer_version(**_request(PublishLayerVersionInputDict)) + await client.publish_layer_version(_request(PublishLayerVersionInput)) + await client.publish_layer_version(_request(PublishLayerVersionInputDict)) + await client.publish_version(function_name=_) + await client.publish_version(**_request(PublishVersionInputDict)) + await client.publish_version(_request(PublishVersionInput)) + await client.publish_version(_request(PublishVersionInputDict)) + await client.put_function_code_signing_config( + code_signing_config_arn=_, function_name=_ + ) + await client.put_function_code_signing_config( + **_request(PutFunctionCodeSigningConfigInputDict) + ) + await client.put_function_code_signing_config( + _request(PutFunctionCodeSigningConfigInput) + ) + await client.put_function_code_signing_config( + _request(PutFunctionCodeSigningConfigInputDict) + ) + await client.put_function_concurrency( + function_name=_, reserved_concurrent_executions=_ + ) + await client.put_function_concurrency(**_request(PutFunctionConcurrencyInputDict)) + await client.put_function_concurrency(_request(PutFunctionConcurrencyInput)) + await client.put_function_concurrency(_request(PutFunctionConcurrencyInputDict)) + await client.put_function_event_invoke_config(function_name=_) + await client.put_function_event_invoke_config( + **_request(PutFunctionEventInvokeConfigInputDict) + ) + await client.put_function_event_invoke_config( + _request(PutFunctionEventInvokeConfigInput) + ) + await client.put_function_event_invoke_config( + _request(PutFunctionEventInvokeConfigInputDict) + ) + await client.put_function_recursion_config(function_name=_, recursive_loop=_) + await client.put_function_recursion_config( + **_request(PutFunctionRecursionConfigInputDict) + ) + await client.put_function_recursion_config( + _request(PutFunctionRecursionConfigInput) + ) + await client.put_function_recursion_config( + _request(PutFunctionRecursionConfigInputDict) + ) + await client.put_function_scaling_config(function_name=_, qualifier=_) + await client.put_function_scaling_config( + **_request(PutFunctionScalingConfigInputDict) + ) + await client.put_function_scaling_config(_request(PutFunctionScalingConfigInput)) + await client.put_function_scaling_config( + _request(PutFunctionScalingConfigInputDict) + ) + await client.put_provisioned_concurrency_config( + function_name=_, qualifier=_, provisioned_concurrent_executions=_ + ) + await client.put_provisioned_concurrency_config( + **_request(PutProvisionedConcurrencyConfigInputDict) + ) + await client.put_provisioned_concurrency_config( + _request(PutProvisionedConcurrencyConfigInput) + ) + await client.put_provisioned_concurrency_config( + _request(PutProvisionedConcurrencyConfigInputDict) + ) + await client.put_resource_policy(resource_arn=_, policy=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.put_runtime_management_config(function_name=_, update_runtime_on=_) + await client.put_runtime_management_config( + **_request(PutRuntimeManagementConfigInputDict) + ) + await client.put_runtime_management_config( + _request(PutRuntimeManagementConfigInput) + ) + await client.put_runtime_management_config( + _request(PutRuntimeManagementConfigInputDict) + ) + await client.remove_layer_version_permission(layer_name=_, statement_id=_) + await client.remove_layer_version_permission( + **_request(RemoveLayerVersionPermissionInputDict) + ) + await client.remove_layer_version_permission( + _request(RemoveLayerVersionPermissionInput) + ) + await client.remove_layer_version_permission( + _request(RemoveLayerVersionPermissionInputDict) + ) + await client.remove_permission(function_name=_, statement_id=_) + await client.remove_permission(**_request(RemovePermissionInputDict)) + await client.remove_permission(_request(RemovePermissionInput)) + await client.remove_permission(_request(RemovePermissionInputDict)) + await client.send_durable_execution_callback_failure(callback_id=_) + await client.send_durable_execution_callback_failure( + **_request(SendDurableExecutionCallbackFailureInputDict) + ) + await client.send_durable_execution_callback_failure( + _request(SendDurableExecutionCallbackFailureInput) + ) + await client.send_durable_execution_callback_failure( + _request(SendDurableExecutionCallbackFailureInputDict) + ) + await client.send_durable_execution_callback_heartbeat(callback_id=_) + await client.send_durable_execution_callback_heartbeat( + **_request(SendDurableExecutionCallbackHeartbeatInputDict) + ) + await client.send_durable_execution_callback_heartbeat( + _request(SendDurableExecutionCallbackHeartbeatInput) + ) + await client.send_durable_execution_callback_heartbeat( + _request(SendDurableExecutionCallbackHeartbeatInputDict) + ) + await client.send_durable_execution_callback_success(callback_id=_) + await client.send_durable_execution_callback_success( + **_request(SendDurableExecutionCallbackSuccessInputDict) + ) + await client.send_durable_execution_callback_success( + _request(SendDurableExecutionCallbackSuccessInput) + ) + await client.send_durable_execution_callback_success( + _request(SendDurableExecutionCallbackSuccessInputDict) + ) + await client.stop_durable_execution(durable_execution_arn=_) + await client.stop_durable_execution(**_request(StopDurableExecutionInputDict)) + await client.stop_durable_execution(_request(StopDurableExecutionInput)) + await client.stop_durable_execution(_request(StopDurableExecutionInputDict)) + await client.tag_resource(resource=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_alias(function_name=_, name=_) + await client.update_alias(**_request(UpdateAliasInputDict)) + await client.update_alias(_request(UpdateAliasInput)) + await client.update_alias(_request(UpdateAliasInputDict)) + await client.update_capacity_provider(capacity_provider_name=_) + await client.update_capacity_provider(**_request(UpdateCapacityProviderInputDict)) + await client.update_capacity_provider(_request(UpdateCapacityProviderInput)) + await client.update_capacity_provider(_request(UpdateCapacityProviderInputDict)) + await client.update_code_signing_config(code_signing_config_arn=_) + await client.update_code_signing_config( + **_request(UpdateCodeSigningConfigInputDict) + ) + await client.update_code_signing_config(_request(UpdateCodeSigningConfigInput)) + await client.update_code_signing_config(_request(UpdateCodeSigningConfigInputDict)) + await client.update_event_source_mapping(uuid=_) + await client.update_event_source_mapping( + **_request(UpdateEventSourceMappingInputDict) + ) + await client.update_event_source_mapping(_request(UpdateEventSourceMappingInput)) + await client.update_event_source_mapping( + _request(UpdateEventSourceMappingInputDict) + ) + await client.update_function_code(function_name=_) + await client.update_function_code(**_request(UpdateFunctionCodeInputDict)) + await client.update_function_code(_request(UpdateFunctionCodeInput)) + await client.update_function_code(_request(UpdateFunctionCodeInputDict)) + await client.update_function_configuration(function_name=_) + await client.update_function_configuration( + **_request(UpdateFunctionConfigurationInputDict) + ) + await client.update_function_configuration( + _request(UpdateFunctionConfigurationInput) + ) + await client.update_function_configuration( + _request(UpdateFunctionConfigurationInputDict) + ) + await client.update_function_event_invoke_config(function_name=_) + await client.update_function_event_invoke_config( + **_request(UpdateFunctionEventInvokeConfigInputDict) + ) + await client.update_function_event_invoke_config( + _request(UpdateFunctionEventInvokeConfigInput) + ) + await client.update_function_event_invoke_config( + _request(UpdateFunctionEventInvokeConfigInputDict) + ) + await client.update_function_url_config(function_name=_) + await client.update_function_url_config( + **_request(UpdateFunctionUrlConfigInputDict) + ) + await client.update_function_url_config(_request(UpdateFunctionUrlConfigInput)) + await client.update_function_url_config(_request(UpdateFunctionUrlConfigInputDict)) + + +def check_sync_calls(client: LambdaClient) -> None: + pass + client.add_layer_version_permission( + layer_name=_, statement_id=_, action=_, principal=_ + ) + client.add_layer_version_permission(**_request(AddLayerVersionPermissionInputDict)) + client.add_layer_version_permission(_request(AddLayerVersionPermissionInput)) + client.add_layer_version_permission(_request(AddLayerVersionPermissionInputDict)) + client.add_permission(function_name=_, statement_id=_, action=_, principal=_) + client.add_permission(**_request(AddPermissionInputDict)) + client.add_permission(_request(AddPermissionInput)) + client.add_permission(_request(AddPermissionInputDict)) + client.checkpoint_durable_execution(durable_execution_arn=_, checkpoint_token=_) + client.checkpoint_durable_execution(**_request(CheckpointDurableExecutionInputDict)) + client.checkpoint_durable_execution(_request(CheckpointDurableExecutionInput)) + client.checkpoint_durable_execution(_request(CheckpointDurableExecutionInputDict)) + client.create_alias(function_name=_, name=_, function_version=_) + client.create_alias(**_request(CreateAliasInputDict)) + client.create_alias(_request(CreateAliasInput)) + client.create_alias(_request(CreateAliasInputDict)) + client.create_capacity_provider( + capacity_provider_name=_, vpc_config=_, permissions_config=_ + ) + client.create_capacity_provider(**_request(CreateCapacityProviderInputDict)) + client.create_capacity_provider(_request(CreateCapacityProviderInput)) + client.create_capacity_provider(_request(CreateCapacityProviderInputDict)) + client.create_code_signing_config(allowed_publishers=_) + client.create_code_signing_config(**_request(CreateCodeSigningConfigInputDict)) + client.create_code_signing_config(_request(CreateCodeSigningConfigInput)) + client.create_code_signing_config(_request(CreateCodeSigningConfigInputDict)) + client.create_event_source_mapping(function_name=_) + client.create_event_source_mapping(**_request(CreateEventSourceMappingInputDict)) + client.create_event_source_mapping(_request(CreateEventSourceMappingInput)) + client.create_event_source_mapping(_request(CreateEventSourceMappingInputDict)) + client.create_function(function_name=_, role=_, code=_) + client.create_function(**_request(CreateFunctionInputDict)) + client.create_function(_request(CreateFunctionInput)) + client.create_function(_request(CreateFunctionInputDict)) + client.create_function_url_config(function_name=_, auth_type=_) + client.create_function_url_config(**_request(CreateFunctionUrlConfigInputDict)) + client.create_function_url_config(_request(CreateFunctionUrlConfigInput)) + client.create_function_url_config(_request(CreateFunctionUrlConfigInputDict)) + client.delete_alias(function_name=_, name=_) + client.delete_alias(**_request(DeleteAliasInputDict)) + client.delete_alias(_request(DeleteAliasInput)) + client.delete_alias(_request(DeleteAliasInputDict)) + client.delete_capacity_provider(capacity_provider_name=_) + client.delete_capacity_provider(**_request(DeleteCapacityProviderInputDict)) + client.delete_capacity_provider(_request(DeleteCapacityProviderInput)) + client.delete_capacity_provider(_request(DeleteCapacityProviderInputDict)) + client.delete_code_signing_config(code_signing_config_arn=_) + client.delete_code_signing_config(**_request(DeleteCodeSigningConfigInputDict)) + client.delete_code_signing_config(_request(DeleteCodeSigningConfigInput)) + client.delete_code_signing_config(_request(DeleteCodeSigningConfigInputDict)) + client.delete_event_source_mapping(uuid=_) + client.delete_event_source_mapping(**_request(DeleteEventSourceMappingInputDict)) + client.delete_event_source_mapping(_request(DeleteEventSourceMappingInput)) + client.delete_event_source_mapping(_request(DeleteEventSourceMappingInputDict)) + client.delete_function(function_name=_) + client.delete_function(**_request(DeleteFunctionInputDict)) + client.delete_function(_request(DeleteFunctionInput)) + client.delete_function(_request(DeleteFunctionInputDict)) + client.delete_function_code_signing_config(function_name=_) + client.delete_function_code_signing_config( + **_request(DeleteFunctionCodeSigningConfigInputDict) + ) + client.delete_function_code_signing_config( + _request(DeleteFunctionCodeSigningConfigInput) + ) + client.delete_function_code_signing_config( + _request(DeleteFunctionCodeSigningConfigInputDict) + ) + client.delete_function_concurrency(function_name=_) + client.delete_function_concurrency(**_request(DeleteFunctionConcurrencyInputDict)) + client.delete_function_concurrency(_request(DeleteFunctionConcurrencyInput)) + client.delete_function_concurrency(_request(DeleteFunctionConcurrencyInputDict)) + client.delete_function_event_invoke_config(function_name=_) + client.delete_function_event_invoke_config( + **_request(DeleteFunctionEventInvokeConfigInputDict) + ) + client.delete_function_event_invoke_config( + _request(DeleteFunctionEventInvokeConfigInput) + ) + client.delete_function_event_invoke_config( + _request(DeleteFunctionEventInvokeConfigInputDict) + ) + client.delete_function_url_config(function_name=_) + client.delete_function_url_config(**_request(DeleteFunctionUrlConfigInputDict)) + client.delete_function_url_config(_request(DeleteFunctionUrlConfigInput)) + client.delete_function_url_config(_request(DeleteFunctionUrlConfigInputDict)) + client.delete_layer_version(layer_name=_) + client.delete_layer_version(**_request(DeleteLayerVersionInputDict)) + client.delete_layer_version(_request(DeleteLayerVersionInput)) + client.delete_layer_version(_request(DeleteLayerVersionInputDict)) + client.delete_provisioned_concurrency_config(function_name=_, qualifier=_) + client.delete_provisioned_concurrency_config( + **_request(DeleteProvisionedConcurrencyConfigInputDict) + ) + client.delete_provisioned_concurrency_config( + _request(DeleteProvisionedConcurrencyConfigInput) + ) + client.delete_provisioned_concurrency_config( + _request(DeleteProvisionedConcurrencyConfigInputDict) + ) + client.delete_resource_policy(resource_arn=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.get_account_settings() + client.get_account_settings(**_request(GetAccountSettingsInputDict)) + client.get_account_settings(_request(GetAccountSettingsInput)) + client.get_account_settings(_request(GetAccountSettingsInputDict)) + client.get_alias(function_name=_, name=_) + client.get_alias(**_request(GetAliasInputDict)) + client.get_alias(_request(GetAliasInput)) + client.get_alias(_request(GetAliasInputDict)) + client.get_capacity_provider(capacity_provider_name=_) + client.get_capacity_provider(**_request(GetCapacityProviderInputDict)) + client.get_capacity_provider(_request(GetCapacityProviderInput)) + client.get_capacity_provider(_request(GetCapacityProviderInputDict)) + client.get_code_signing_config(code_signing_config_arn=_) + client.get_code_signing_config(**_request(GetCodeSigningConfigInputDict)) + client.get_code_signing_config(_request(GetCodeSigningConfigInput)) + client.get_code_signing_config(_request(GetCodeSigningConfigInputDict)) + client.get_durable_execution(durable_execution_arn=_) + client.get_durable_execution(**_request(GetDurableExecutionInputDict)) + client.get_durable_execution(_request(GetDurableExecutionInput)) + client.get_durable_execution(_request(GetDurableExecutionInputDict)) + client.get_durable_execution_history(durable_execution_arn=_) + client.get_durable_execution_history( + **_request(GetDurableExecutionHistoryInputDict) + ) + client.get_durable_execution_history(_request(GetDurableExecutionHistoryInput)) + client.get_durable_execution_history(_request(GetDurableExecutionHistoryInputDict)) + client.get_durable_execution_state(durable_execution_arn=_, checkpoint_token=_) + client.get_durable_execution_state(**_request(GetDurableExecutionStateInputDict)) + client.get_durable_execution_state(_request(GetDurableExecutionStateInput)) + client.get_durable_execution_state(_request(GetDurableExecutionStateInputDict)) + client.get_event_source_mapping(uuid=_) + client.get_event_source_mapping(**_request(GetEventSourceMappingInputDict)) + client.get_event_source_mapping(_request(GetEventSourceMappingInput)) + client.get_event_source_mapping(_request(GetEventSourceMappingInputDict)) + client.get_function(function_name=_) + client.get_function(**_request(GetFunctionInputDict)) + client.get_function(_request(GetFunctionInput)) + client.get_function(_request(GetFunctionInputDict)) + client.get_function_code_signing_config(function_name=_) + client.get_function_code_signing_config( + **_request(GetFunctionCodeSigningConfigInputDict) + ) + client.get_function_code_signing_config(_request(GetFunctionCodeSigningConfigInput)) + client.get_function_code_signing_config( + _request(GetFunctionCodeSigningConfigInputDict) + ) + client.get_function_concurrency(function_name=_) + client.get_function_concurrency(**_request(GetFunctionConcurrencyInputDict)) + client.get_function_concurrency(_request(GetFunctionConcurrencyInput)) + client.get_function_concurrency(_request(GetFunctionConcurrencyInputDict)) + client.get_function_configuration(function_name=_) + client.get_function_configuration(**_request(GetFunctionConfigurationInputDict)) + client.get_function_configuration(_request(GetFunctionConfigurationInput)) + client.get_function_configuration(_request(GetFunctionConfigurationInputDict)) + client.get_function_event_invoke_config(function_name=_) + client.get_function_event_invoke_config( + **_request(GetFunctionEventInvokeConfigInputDict) + ) + client.get_function_event_invoke_config(_request(GetFunctionEventInvokeConfigInput)) + client.get_function_event_invoke_config( + _request(GetFunctionEventInvokeConfigInputDict) + ) + client.get_function_recursion_config(function_name=_) + client.get_function_recursion_config( + **_request(GetFunctionRecursionConfigInputDict) + ) + client.get_function_recursion_config(_request(GetFunctionRecursionConfigInput)) + client.get_function_recursion_config(_request(GetFunctionRecursionConfigInputDict)) + client.get_function_scaling_config(function_name=_, qualifier=_) + client.get_function_scaling_config(**_request(GetFunctionScalingConfigInputDict)) + client.get_function_scaling_config(_request(GetFunctionScalingConfigInput)) + client.get_function_scaling_config(_request(GetFunctionScalingConfigInputDict)) + client.get_function_url_config(function_name=_) + client.get_function_url_config(**_request(GetFunctionUrlConfigInputDict)) + client.get_function_url_config(_request(GetFunctionUrlConfigInput)) + client.get_function_url_config(_request(GetFunctionUrlConfigInputDict)) + client.get_layer_version(layer_name=_) + client.get_layer_version(**_request(GetLayerVersionInputDict)) + client.get_layer_version(_request(GetLayerVersionInput)) + client.get_layer_version(_request(GetLayerVersionInputDict)) + client.get_layer_version_by_arn(arn=_) + client.get_layer_version_by_arn(**_request(GetLayerVersionByArnInputDict)) + client.get_layer_version_by_arn(_request(GetLayerVersionByArnInput)) + client.get_layer_version_by_arn(_request(GetLayerVersionByArnInputDict)) + client.get_layer_version_policy(layer_name=_) + client.get_layer_version_policy(**_request(GetLayerVersionPolicyInputDict)) + client.get_layer_version_policy(_request(GetLayerVersionPolicyInput)) + client.get_layer_version_policy(_request(GetLayerVersionPolicyInputDict)) + client.get_policy(function_name=_) + client.get_policy(**_request(GetPolicyInputDict)) + client.get_policy(_request(GetPolicyInput)) + client.get_policy(_request(GetPolicyInputDict)) + client.get_provisioned_concurrency_config(function_name=_, qualifier=_) + client.get_provisioned_concurrency_config( + **_request(GetProvisionedConcurrencyConfigInputDict) + ) + client.get_provisioned_concurrency_config( + _request(GetProvisionedConcurrencyConfigInput) + ) + client.get_provisioned_concurrency_config( + _request(GetProvisionedConcurrencyConfigInputDict) + ) + client.get_resource_policy(resource_arn=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.get_runtime_management_config(function_name=_) + client.get_runtime_management_config( + **_request(GetRuntimeManagementConfigInputDict) + ) + client.get_runtime_management_config(_request(GetRuntimeManagementConfigInput)) + client.get_runtime_management_config(_request(GetRuntimeManagementConfigInputDict)) + client.invoke(function_name=_) + client.invoke(**_request(InvokeInputDict)) + client.invoke(_request(InvokeInput)) + client.invoke(_request(InvokeInputDict)) + client.invoke_async(function_name=_, invoke_args=_) + client.invoke_async(**_request(InvokeAsyncInputDict)) + client.invoke_async(_request(InvokeAsyncInput)) + client.invoke_async(_request(InvokeAsyncInputDict)) + client.list_aliases(function_name=_) + client.list_aliases(**_request(ListAliasesInputDict)) + client.list_aliases(_request(ListAliasesInput)) + client.list_aliases(_request(ListAliasesInputDict)) + client.list_capacity_providers() + client.list_capacity_providers(**_request(ListCapacityProvidersInputDict)) + client.list_capacity_providers(_request(ListCapacityProvidersInput)) + client.list_capacity_providers(_request(ListCapacityProvidersInputDict)) + client.list_code_signing_configs() + client.list_code_signing_configs(**_request(ListCodeSigningConfigsInputDict)) + client.list_code_signing_configs(_request(ListCodeSigningConfigsInput)) + client.list_code_signing_configs(_request(ListCodeSigningConfigsInputDict)) + client.list_durable_executions_by_function(function_name=_) + client.list_durable_executions_by_function( + **_request(ListDurableExecutionsByFunctionInputDict) + ) + client.list_durable_executions_by_function( + _request(ListDurableExecutionsByFunctionInput) + ) + client.list_durable_executions_by_function( + _request(ListDurableExecutionsByFunctionInputDict) + ) + client.list_event_source_mappings() + client.list_event_source_mappings(**_request(ListEventSourceMappingsInputDict)) + client.list_event_source_mappings(_request(ListEventSourceMappingsInput)) + client.list_event_source_mappings(_request(ListEventSourceMappingsInputDict)) + client.list_function_event_invoke_configs(function_name=_) + client.list_function_event_invoke_configs( + **_request(ListFunctionEventInvokeConfigsInputDict) + ) + client.list_function_event_invoke_configs( + _request(ListFunctionEventInvokeConfigsInput) + ) + client.list_function_event_invoke_configs( + _request(ListFunctionEventInvokeConfigsInputDict) + ) + client.list_functions() + client.list_functions(**_request(ListFunctionsInputDict)) + client.list_functions(_request(ListFunctionsInput)) + client.list_functions(_request(ListFunctionsInputDict)) + client.list_functions_by_code_signing_config(code_signing_config_arn=_) + client.list_functions_by_code_signing_config( + **_request(ListFunctionsByCodeSigningConfigInputDict) + ) + client.list_functions_by_code_signing_config( + _request(ListFunctionsByCodeSigningConfigInput) + ) + client.list_functions_by_code_signing_config( + _request(ListFunctionsByCodeSigningConfigInputDict) + ) + client.list_function_url_configs(function_name=_) + client.list_function_url_configs(**_request(ListFunctionUrlConfigsInputDict)) + client.list_function_url_configs(_request(ListFunctionUrlConfigsInput)) + client.list_function_url_configs(_request(ListFunctionUrlConfigsInputDict)) + client.list_function_versions_by_capacity_provider(capacity_provider_name=_) + client.list_function_versions_by_capacity_provider( + **_request(ListFunctionVersionsByCapacityProviderInputDict) + ) + client.list_function_versions_by_capacity_provider( + _request(ListFunctionVersionsByCapacityProviderInput) + ) + client.list_function_versions_by_capacity_provider( + _request(ListFunctionVersionsByCapacityProviderInputDict) + ) + client.list_layers() + client.list_layers(**_request(ListLayersInputDict)) + client.list_layers(_request(ListLayersInput)) + client.list_layers(_request(ListLayersInputDict)) + client.list_layer_versions(layer_name=_) + client.list_layer_versions(**_request(ListLayerVersionsInputDict)) + client.list_layer_versions(_request(ListLayerVersionsInput)) + client.list_layer_versions(_request(ListLayerVersionsInputDict)) + client.list_provisioned_concurrency_configs(function_name=_) + client.list_provisioned_concurrency_configs( + **_request(ListProvisionedConcurrencyConfigsInputDict) + ) + client.list_provisioned_concurrency_configs( + _request(ListProvisionedConcurrencyConfigsInput) + ) + client.list_provisioned_concurrency_configs( + _request(ListProvisionedConcurrencyConfigsInputDict) + ) + client.list_tags(resource=_) + client.list_tags(**_request(ListTagsInputDict)) + client.list_tags(_request(ListTagsInput)) + client.list_tags(_request(ListTagsInputDict)) + client.list_versions_by_function(function_name=_) + client.list_versions_by_function(**_request(ListVersionsByFunctionInputDict)) + client.list_versions_by_function(_request(ListVersionsByFunctionInput)) + client.list_versions_by_function(_request(ListVersionsByFunctionInputDict)) + client.publish_layer_version(layer_name=_, content=_) + client.publish_layer_version(**_request(PublishLayerVersionInputDict)) + client.publish_layer_version(_request(PublishLayerVersionInput)) + client.publish_layer_version(_request(PublishLayerVersionInputDict)) + client.publish_version(function_name=_) + client.publish_version(**_request(PublishVersionInputDict)) + client.publish_version(_request(PublishVersionInput)) + client.publish_version(_request(PublishVersionInputDict)) + client.put_function_code_signing_config(code_signing_config_arn=_, function_name=_) + client.put_function_code_signing_config( + **_request(PutFunctionCodeSigningConfigInputDict) + ) + client.put_function_code_signing_config(_request(PutFunctionCodeSigningConfigInput)) + client.put_function_code_signing_config( + _request(PutFunctionCodeSigningConfigInputDict) + ) + client.put_function_concurrency(function_name=_, reserved_concurrent_executions=_) + client.put_function_concurrency(**_request(PutFunctionConcurrencyInputDict)) + client.put_function_concurrency(_request(PutFunctionConcurrencyInput)) + client.put_function_concurrency(_request(PutFunctionConcurrencyInputDict)) + client.put_function_event_invoke_config(function_name=_) + client.put_function_event_invoke_config( + **_request(PutFunctionEventInvokeConfigInputDict) + ) + client.put_function_event_invoke_config(_request(PutFunctionEventInvokeConfigInput)) + client.put_function_event_invoke_config( + _request(PutFunctionEventInvokeConfigInputDict) + ) + client.put_function_recursion_config(function_name=_, recursive_loop=_) + client.put_function_recursion_config( + **_request(PutFunctionRecursionConfigInputDict) + ) + client.put_function_recursion_config(_request(PutFunctionRecursionConfigInput)) + client.put_function_recursion_config(_request(PutFunctionRecursionConfigInputDict)) + client.put_function_scaling_config(function_name=_, qualifier=_) + client.put_function_scaling_config(**_request(PutFunctionScalingConfigInputDict)) + client.put_function_scaling_config(_request(PutFunctionScalingConfigInput)) + client.put_function_scaling_config(_request(PutFunctionScalingConfigInputDict)) + client.put_provisioned_concurrency_config( + function_name=_, qualifier=_, provisioned_concurrent_executions=_ + ) + client.put_provisioned_concurrency_config( + **_request(PutProvisionedConcurrencyConfigInputDict) + ) + client.put_provisioned_concurrency_config( + _request(PutProvisionedConcurrencyConfigInput) + ) + client.put_provisioned_concurrency_config( + _request(PutProvisionedConcurrencyConfigInputDict) + ) + client.put_resource_policy(resource_arn=_, policy=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.put_runtime_management_config(function_name=_, update_runtime_on=_) + client.put_runtime_management_config( + **_request(PutRuntimeManagementConfigInputDict) + ) + client.put_runtime_management_config(_request(PutRuntimeManagementConfigInput)) + client.put_runtime_management_config(_request(PutRuntimeManagementConfigInputDict)) + client.remove_layer_version_permission(layer_name=_, statement_id=_) + client.remove_layer_version_permission( + **_request(RemoveLayerVersionPermissionInputDict) + ) + client.remove_layer_version_permission(_request(RemoveLayerVersionPermissionInput)) + client.remove_layer_version_permission( + _request(RemoveLayerVersionPermissionInputDict) + ) + client.remove_permission(function_name=_, statement_id=_) + client.remove_permission(**_request(RemovePermissionInputDict)) + client.remove_permission(_request(RemovePermissionInput)) + client.remove_permission(_request(RemovePermissionInputDict)) + client.send_durable_execution_callback_failure(callback_id=_) + client.send_durable_execution_callback_failure( + **_request(SendDurableExecutionCallbackFailureInputDict) + ) + client.send_durable_execution_callback_failure( + _request(SendDurableExecutionCallbackFailureInput) + ) + client.send_durable_execution_callback_failure( + _request(SendDurableExecutionCallbackFailureInputDict) + ) + client.send_durable_execution_callback_heartbeat(callback_id=_) + client.send_durable_execution_callback_heartbeat( + **_request(SendDurableExecutionCallbackHeartbeatInputDict) + ) + client.send_durable_execution_callback_heartbeat( + _request(SendDurableExecutionCallbackHeartbeatInput) + ) + client.send_durable_execution_callback_heartbeat( + _request(SendDurableExecutionCallbackHeartbeatInputDict) + ) + client.send_durable_execution_callback_success(callback_id=_) + client.send_durable_execution_callback_success( + **_request(SendDurableExecutionCallbackSuccessInputDict) + ) + client.send_durable_execution_callback_success( + _request(SendDurableExecutionCallbackSuccessInput) + ) + client.send_durable_execution_callback_success( + _request(SendDurableExecutionCallbackSuccessInputDict) + ) + client.stop_durable_execution(durable_execution_arn=_) + client.stop_durable_execution(**_request(StopDurableExecutionInputDict)) + client.stop_durable_execution(_request(StopDurableExecutionInput)) + client.stop_durable_execution(_request(StopDurableExecutionInputDict)) + client.tag_resource(resource=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_alias(function_name=_, name=_) + client.update_alias(**_request(UpdateAliasInputDict)) + client.update_alias(_request(UpdateAliasInput)) + client.update_alias(_request(UpdateAliasInputDict)) + client.update_capacity_provider(capacity_provider_name=_) + client.update_capacity_provider(**_request(UpdateCapacityProviderInputDict)) + client.update_capacity_provider(_request(UpdateCapacityProviderInput)) + client.update_capacity_provider(_request(UpdateCapacityProviderInputDict)) + client.update_code_signing_config(code_signing_config_arn=_) + client.update_code_signing_config(**_request(UpdateCodeSigningConfigInputDict)) + client.update_code_signing_config(_request(UpdateCodeSigningConfigInput)) + client.update_code_signing_config(_request(UpdateCodeSigningConfigInputDict)) + client.update_event_source_mapping(uuid=_) + client.update_event_source_mapping(**_request(UpdateEventSourceMappingInputDict)) + client.update_event_source_mapping(_request(UpdateEventSourceMappingInput)) + client.update_event_source_mapping(_request(UpdateEventSourceMappingInputDict)) + client.update_function_code(function_name=_) + client.update_function_code(**_request(UpdateFunctionCodeInputDict)) + client.update_function_code(_request(UpdateFunctionCodeInput)) + client.update_function_code(_request(UpdateFunctionCodeInputDict)) + client.update_function_configuration(function_name=_) + client.update_function_configuration( + **_request(UpdateFunctionConfigurationInputDict) + ) + client.update_function_configuration(_request(UpdateFunctionConfigurationInput)) + client.update_function_configuration(_request(UpdateFunctionConfigurationInputDict)) + client.update_function_event_invoke_config(function_name=_) + client.update_function_event_invoke_config( + **_request(UpdateFunctionEventInvokeConfigInputDict) + ) + client.update_function_event_invoke_config( + _request(UpdateFunctionEventInvokeConfigInput) + ) + client.update_function_event_invoke_config( + _request(UpdateFunctionEventInvokeConfigInputDict) + ) + client.update_function_url_config(function_name=_) + client.update_function_url_config(**_request(UpdateFunctionUrlConfigInputDict)) + client.update_function_url_config(_request(UpdateFunctionUrlConfigInput)) + client.update_function_url_config(_request(UpdateFunctionUrlConfigInputDict)) diff --git a/clients/aws-sdk-lex-runtime-v2/pyproject.toml b/clients/aws-sdk-lex-runtime-v2/pyproject.toml index a6a385421..2ada89d82 100644 --- a/clients/aws-sdk-lex-runtime-v2/pyproject.toml +++ b/clients/aws-sdk-lex-runtime-v2/pyproject.toml @@ -24,14 +24,14 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] @@ -39,7 +39,7 @@ test = [ "boto3", "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0", + "smithy_test~=0.4.0", "types-boto3-lite[iam,lexv2-models,sts]", ] diff --git a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/_private/schemas.py b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/_private/schemas.py index 6914261ac..b73463034 100644 --- a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/_private/schemas.py +++ b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/_private/schemas.py @@ -129,7 +129,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/aio/client.py b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/aio/client.py index 3352ab9ba..aadea8eb0 100644 --- a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/aio/client.py +++ b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -15,7 +15,6 @@ from .. import models as _models from ..models import ( - StartConversationInput, StartConversationOutput, StartConversationRequestEventStream, StartConversationResponseEventStream, @@ -28,15 +27,10 @@ if TYPE_CHECKING: from ..models import ( - DeleteSessionInput, DeleteSessionOutput, - GetSessionInput, GetSessionOutput, - PutSessionInput, PutSessionOutput, - RecognizeTextInput, RecognizeTextOutput, - RecognizeUtteranceInput, RecognizeUtteranceOutput, ) @@ -50,10 +44,24 @@ class AsyncLexRuntimeV2Client(AsyncClient[AsyncLexRuntimeV2Config]): operations. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def delete_session( - self, input: DeleteSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSessionInput | _models.DeleteSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSessionOutput: ... + + @_overload + async def delete_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSessionInputDict], ) -> DeleteSessionOutput: """ Removes session information for a specified bot, alias, and user ID. @@ -74,8 +82,6 @@ async def delete_session( enables for the alias, you receive a `BadRequestException`. Args: - input: - An instance of `DeleteSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -85,10 +91,33 @@ async def delete_session( Returns: An instance of `DeleteSessionOutput`. """ - return await self._invoke(input, _models.DELETE_SESSION, [], plugins) + async def delete_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSessionOutput: + return await self._invoke( + self._select_input(_models.DELETE_SESSION, args, kwargs), + _models.DELETE_SESSION, + [], + plugins, + ) + + @_overload async def get_session( - self, input: GetSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSessionInput | _models.GetSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSessionOutput: ... + + @_overload + async def get_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSessionInputDict], ) -> GetSessionOutput: """ Returns session information for a specified bot, alias, and user. @@ -101,8 +130,6 @@ async def get_session( enabled for the alias, you receive a `BadRequestException`. Args: - input: - An instance of `GetSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -112,10 +139,33 @@ async def get_session( Returns: An instance of `GetSessionOutput`. """ - return await self._invoke(input, _models.GET_SESSION, [], plugins) + async def get_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSessionOutput: + return await self._invoke( + self._select_input(_models.GET_SESSION, args, kwargs), + _models.GET_SESSION, + [], + plugins, + ) + + @_overload async def put_session( - self, input: PutSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.PutSessionInput | _models.PutSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutSessionOutput: ... + + @_overload + async def put_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutSessionInputDict], ) -> PutSessionOutput: """ Creates a new session or modifies an existing session with an Amazon Lex @@ -123,8 +173,6 @@ async def put_session( of the bot. Args: - input: - An instance of `PutSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -134,10 +182,33 @@ async def put_session( Returns: An instance of `PutSessionOutput`. """ - return await self._invoke(input, _models.PUT_SESSION, [], plugins) + async def put_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutSessionOutput: + return await self._invoke( + self._select_input(_models.PUT_SESSION, args, kwargs), + _models.PUT_SESSION, + [], + plugins, + ) + + @_overload async def recognize_text( - self, input: RecognizeTextInput, plugins: list[Plugin] | None = None + self, + request: _models.RecognizeTextInput | _models.RecognizeTextInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RecognizeTextOutput: ... + + @_overload + async def recognize_text( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RecognizeTextInputDict], ) -> RecognizeTextOutput: """ Sends user input to Amazon Lex V2. Client applications use this API to @@ -169,8 +240,6 @@ async def recognize_text( message](https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete.html). Args: - input: - An instance of `RecognizeTextInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -180,10 +249,35 @@ async def recognize_text( Returns: An instance of `RecognizeTextOutput`. """ - return await self._invoke(input, _models.RECOGNIZE_TEXT, [], plugins) + async def recognize_text( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RecognizeTextOutput: + return await self._invoke( + self._select_input(_models.RECOGNIZE_TEXT, args, kwargs), + _models.RECOGNIZE_TEXT, + [], + plugins, + ) + + @_overload + async def recognize_utterance( + self, + request: _models.RecognizeUtteranceInput + | _models.RecognizeUtteranceInputDict + | _models.AsyncRecognizeUtteranceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RecognizeUtteranceOutput: ... + + @_overload async def recognize_utterance( - self, input: RecognizeUtteranceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AsyncRecognizeUtteranceInputDict], ) -> RecognizeUtteranceOutput: """ Sends user input to Amazon Lex V2. You can send text or speech. Clients @@ -237,8 +331,6 @@ async def recognize_utterance( message](https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete.html). Args: - input: - An instance of `RecognizeUtteranceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -248,10 +340,37 @@ async def recognize_utterance( Returns: An instance of `RecognizeUtteranceOutput`. """ - return await self._invoke(input, _models.RECOGNIZE_UTTERANCE, [], plugins) + async def recognize_utterance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RecognizeUtteranceOutput: + return await self._invoke( + self._select_input(_models.RECOGNIZE_UTTERANCE, args, kwargs), + _models.RECOGNIZE_UTTERANCE, + [], + plugins, + ) + + @_overload async def start_conversation( - self, input: StartConversationInput, plugins: list[Plugin] | None = None + self, + request: _models.StartConversationInput | _models.StartConversationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ + StartConversationRequestEventStream, + StartConversationResponseEventStream, + StartConversationOutput, + ]: ... + + @_overload + async def start_conversation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartConversationInputDict], ) -> AsyncDuplexEventStream[ StartConversationRequestEventStream, StartConversationResponseEventStream, @@ -308,8 +427,6 @@ async def start_conversation( V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/runtime.lex.v2-2020-08-07/StartConversation) Args: - input: - An instance of `StartConversationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -319,8 +436,19 @@ async def start_conversation( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def start_conversation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + StartConversationRequestEventStream, + StartConversationResponseEventStream, + StartConversationOutput, + ]: pipeline, call = await self._prepare_call( - input, _models.START_CONVERSATION, [], plugins + self._select_input(_models.START_CONVERSATION, args, kwargs), + _models.START_CONVERSATION, + [], + plugins, ) return await pipeline.duplex_stream( call, diff --git a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/client.py b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/client.py index 59846cad8..f8e865a40 100644 --- a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/client.py +++ b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,15 +20,10 @@ if TYPE_CHECKING: from .models import ( - DeleteSessionInput, DeleteSessionOutput, - GetSessionInput, GetSessionOutput, - PutSessionInput, PutSessionOutput, - RecognizeTextInput, RecognizeTextOutput, - RecognizeUtteranceInput, RecognizeUtteranceOutput, ) @@ -42,10 +37,24 @@ class LexRuntimeV2Client(Client[LexRuntimeV2Config]): operations. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def delete_session( - self, input: DeleteSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteSessionInput | _models.DeleteSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSessionOutput: ... + + @_overload + def delete_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSessionInputDict], ) -> DeleteSessionOutput: """ Removes session information for a specified bot, alias, and user ID. @@ -66,8 +75,6 @@ def delete_session( enables for the alias, you receive a `BadRequestException`. Args: - input: - An instance of `DeleteSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -77,10 +84,33 @@ def delete_session( Returns: An instance of `DeleteSessionOutput`. """ - return self._invoke(input, _models.DELETE_SESSION, [], plugins) + def delete_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSessionOutput: + return self._invoke( + self._select_input(_models.DELETE_SESSION, args, kwargs), + _models.DELETE_SESSION, + [], + plugins, + ) + + @_overload + def get_session( + self, + request: _models.GetSessionInput | _models.GetSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSessionOutput: ... + + @_overload def get_session( - self, input: GetSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSessionInputDict], ) -> GetSessionOutput: """ Returns session information for a specified bot, alias, and user. @@ -93,8 +123,6 @@ def get_session( enabled for the alias, you receive a `BadRequestException`. Args: - input: - An instance of `GetSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -104,10 +132,33 @@ def get_session( Returns: An instance of `GetSessionOutput`. """ - return self._invoke(input, _models.GET_SESSION, [], plugins) + def get_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSessionOutput: + return self._invoke( + self._select_input(_models.GET_SESSION, args, kwargs), + _models.GET_SESSION, + [], + plugins, + ) + + @_overload def put_session( - self, input: PutSessionInput, plugins: list[Plugin] | None = None + self, + request: _models.PutSessionInput | _models.PutSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutSessionOutput: ... + + @_overload + def put_session( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutSessionInputDict], ) -> PutSessionOutput: """ Creates a new session or modifies an existing session with an Amazon Lex @@ -115,8 +166,6 @@ def put_session( of the bot. Args: - input: - An instance of `PutSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -126,10 +175,33 @@ def put_session( Returns: An instance of `PutSessionOutput`. """ - return self._invoke(input, _models.PUT_SESSION, [], plugins) + def put_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutSessionOutput: + return self._invoke( + self._select_input(_models.PUT_SESSION, args, kwargs), + _models.PUT_SESSION, + [], + plugins, + ) + + @_overload + def recognize_text( + self, + request: _models.RecognizeTextInput | _models.RecognizeTextInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RecognizeTextOutput: ... + + @_overload def recognize_text( - self, input: RecognizeTextInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RecognizeTextInputDict], ) -> RecognizeTextOutput: """ Sends user input to Amazon Lex V2. Client applications use this API to @@ -161,8 +233,6 @@ def recognize_text( message](https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete.html). Args: - input: - An instance of `RecognizeTextInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -172,10 +242,33 @@ def recognize_text( Returns: An instance of `RecognizeTextOutput`. """ - return self._invoke(input, _models.RECOGNIZE_TEXT, [], plugins) + def recognize_text( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RecognizeTextOutput: + return self._invoke( + self._select_input(_models.RECOGNIZE_TEXT, args, kwargs), + _models.RECOGNIZE_TEXT, + [], + plugins, + ) + + @_overload def recognize_utterance( - self, input: RecognizeUtteranceInput, plugins: list[Plugin] | None = None + self, + request: _models.RecognizeUtteranceInput | _models.RecognizeUtteranceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RecognizeUtteranceOutput: ... + + @_overload + def recognize_utterance( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RecognizeUtteranceInputDict], ) -> RecognizeUtteranceOutput: """ Sends user input to Amazon Lex V2. You can send text or speech. Clients @@ -229,8 +322,6 @@ def recognize_utterance( message](https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete.html). Args: - input: - An instance of `RecognizeUtteranceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -240,7 +331,16 @@ def recognize_utterance( Returns: An instance of `RecognizeUtteranceOutput`. """ - return self._invoke(input, _models.RECOGNIZE_UTTERANCE, [], plugins) + + def recognize_utterance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RecognizeUtteranceOutput: + return self._invoke( + self._select_input(_models.RECOGNIZE_UTTERANCE, args, kwargs), + _models.RECOGNIZE_UTTERANCE, + [], + plugins, + ) def _new_config(self) -> LexRuntimeV2Config: return LexRuntimeV2Config.resolve() diff --git a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/models.pyi b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/models.pyi index 904847b98..fcd8c3988 100644 --- a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/models.pyi +++ b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/models.pyi @@ -1,12 +1,14 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.aio.interfaces import StreamingBlob from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError +from smithy_core.interfaces import StreamingBlob as SyncStreamingBlob from smithy_core.response import ResponseMetadata from smithy_core.schemas import APIOperation from smithy_core.serializers import ShapeSerializer @@ -70,6 +72,28 @@ class ActiveContext(_SerdeShape): all contexts for the session are cleared. """ +class ActiveContextDict(TypedDict, total=False): + """Dictionary form of `ActiveContext`.""" + + name: Required[str] + """The name of the context.""" + time_to_live: Required[ActiveContextTimeToLive | ActiveContextTimeToLiveDict] + """ + Indicates the number of turns or seconds that the context is active. + Once the time to live expires, the context is no longer returned in a + response. + """ + context_attributes: Required[Mapping[str, str]] + """ + A list of contexts active for the request. A context can be activated + when a previous intent is fulfilled, or by including the context in the + request. + + If you don't specify a list of contexts, Amazon Lex V2 will use the + current list of contexts for the session. If you specify an empty list, + all contexts for the session are cleared. + """ + @dataclass(kw_only=True) class ActiveContextTimeToLive(_SerdeShape): """ @@ -88,6 +112,20 @@ class ActiveContextTimeToLive(_SerdeShape): turns. Each request and response from the bot is a turn. """ +class ActiveContextTimeToLiveDict(TypedDict, total=False): + """Dictionary form of `ActiveContextTimeToLive`.""" + + time_to_live_in_seconds: Required[int] + """ + The number of seconds that the context is active. You can specify + between 5 and 86400 seconds (24 hours). + """ + turns_to_live: Required[int] + """ + The number of turns that the context is active. You can specify up to 20 + turns. Each request and response from the bot is a turn. + """ + @dataclass(kw_only=True) class AudioInputEvent(_SerdeShape): """ @@ -160,6 +198,14 @@ class Button(_SerdeShape): value: str """The value returned to Amazon Lex V2 when a user chooses the button.""" +class ButtonDict(TypedDict, total=False): + """Dictionary form of `Button`.""" + + text: Required[str] + """The text that is displayed on the button.""" + value: Required[str] + """The value returned to Amazon Lex V2 when a user chooses the button.""" + @dataclass(kw_only=True) class ConfidenceScore(_SerdeShape): """ @@ -287,6 +333,18 @@ class DeleteSessionInput(_SerdeShape): session_id: str | None = ... """The identifier of the session to delete.""" +class DeleteSessionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSessionInput`.""" + + bot_id: Required[str] + """The identifier of the bot that contains the session data.""" + bot_alias_id: Required[str] + """The alias identifier in use for the bot that contains the session data.""" + locale_id: Required[str] + """The locale where the session is in use.""" + session_id: Required[str] + """The identifier of the session to delete.""" + @dataclass(kw_only=True) class DeleteSessionOutput(_SerdeShape): """Dataclass for DeleteSessionOutput structure.""" @@ -366,6 +424,52 @@ class DialogAction(_SerdeShape): slotToElicit that should be elicited from the user. """ +class DialogActionDict(TypedDict, total=False): + """Dictionary form of `DialogAction`.""" + + type: Required[str] + """ + The next action that the bot should take in its interaction with the + user. The following values are possible: + + - `Close` -- Indicates that there will not be a response from the user. + For example, the statement \"Your order has been placed\" does not + require a response. + + - `ConfirmIntent` -- The next action is asking the user if the intent is + complete and ready to be fulfilled. This is a yes/no question such as + \"Place the order?\" + + - `Delegate` -- The next action is determined by Amazon Lex V2. + + - `ElicitIntent` -- The next action is to elicit an intent from the + user. + + - `ElicitSlot` -- The next action is to elicit a slot value from the + user. + """ + slot_to_elicit: str | None + """The name of the slot that should be elicited from the user.""" + slot_elicitation_style: str | None + """ + Configures the slot to use spell-by-letter or spell-by-word style. When + you use a style on a slot, users can spell out their input to make it + clear to your bot. + + - Spell by letter - \"b\" \"o\" \"b\" + + - Spell by word - \"b as in boy\" \"o as in oscar\" \"b as in boy\" + + For more information, see [Using spelling to enter slot + values](https://docs.aws.amazon.com/lexv2/latest/dg/spelling-styles.html) + . + """ + sub_slot_to_elicit: ElicitSubSlot | ElicitSubSlotDict | None + """ + The name of the constituent sub slot of the composite slot specified in + slotToElicit that should be elicited from the user. + """ + class DialogActionType(UnknownEnumMixin, StrEnum): CLOSE = "Close" CONFIRM_INTENT = "ConfirmIntent" @@ -430,6 +534,14 @@ class ElicitSubSlot(_SerdeShape): sub_slot_to_elicit: ElicitSubSlot | None = ... """The field is not supported.""" +class ElicitSubSlotDict(TypedDict, total=False): + """Dictionary form of `ElicitSubSlot`.""" + + name: Required[str] + """The name of the slot that should be elicited from the user.""" + sub_slot_to_elicit: ElicitSubSlot | ElicitSubSlotDict | None + """The field is not supported.""" + @dataclass(kw_only=True) class GetSessionInput(_SerdeShape): """Dataclass for GetSessionInput structure.""" @@ -443,6 +555,18 @@ class GetSessionInput(_SerdeShape): session_id: str | None = ... """The identifier of the session to return.""" +class GetSessionInputDict(TypedDict, total=False): + """Dictionary form of `GetSessionInput`.""" + + bot_id: Required[str] + """The identifier of the bot that contains the session data.""" + bot_alias_id: Required[str] + """The alias identifier in use for the bot that contains the session data.""" + locale_id: Required[str] + """The locale where the session is in use.""" + session_id: Required[str] + """The identifier of the session to return.""" + @dataclass(kw_only=True) class GetSessionOutput(_SerdeShape): """Dataclass for GetSessionOutput structure.""" @@ -527,6 +651,32 @@ class ImageResponseCard(_SerdeShape): the button. """ +class ImageResponseCardDict(TypedDict, total=False): + """Dictionary form of `ImageResponseCard`.""" + + title: Required[str] + """ + The title to display on the response card. The format of the title is + determined by the platform displaying the response card. + """ + subtitle: str | None + """ + The subtitle to display on the response card. The format of the subtitle + is determined by the platform displaying the response card. + """ + image_url: str | None + """ + The URL of an image to display on the response card. The image URL must + be publicly available so that the platform displaying the response card + has access to the image. + """ + buttons: Sequence[Button | ButtonDict] | None + """ + A list of buttons that should be displayed on the response card. The + arrangement of the buttons is determined by the platform that displays + the button. + """ + class InputMode(UnknownEnumMixin, StrEnum): TEXT = "Text" SPEECH = "Speech" @@ -570,6 +720,43 @@ class Intent(_SerdeShape): if the confirmation stage has not yet been reached. """ +class IntentDict(TypedDict, total=False): + """Dictionary form of `Intent`.""" + + name: Required[str] + """The name of the intent.""" + slots: Mapping[str, Slot | SlotDict] | None + """ + A map of all of the slots for the intent. The name of the slot maps to + the value of the slot. If a slot has not been filled, the value is null. + """ + state: str | None + """ + Indicates the fulfillment state for the intent. The meanings of each + value are as follows: + + - `Failed` -- The bot failed to fulfill the intent. + + - `Fulfilled` -- The bot has completed fulfillment of the intent. + + - `FulfillmentInProgress` -- The bot is in the middle of fulfilling the + intent. + + - `InProgress` -- The bot is in the middle of eliciting the slot values + that are necessary to fulfill the intent. + + - `ReadyForFulfillment` -- The bot has elicited all the slot values for + the intent and is ready to fulfill the intent. + + - `Waiting` -- The bot is waiting for a response from the user (limited + to streaming conversations). + """ + confirmation_state: str | None + """ + Indicates whether the intent has been `Confirmed`, `Denied`, or `None` + if the confirmation stage has not yet been reached. + """ + @dataclass(kw_only=True) class IntentResultEvent(_SerdeShape): """ @@ -679,6 +866,22 @@ class Message(_SerdeShape): to the text associated with a button on the card. """ +class MessageDict(TypedDict, total=False): + """Dictionary form of `Message`.""" + + content: str | None + """The text of the message.""" + content_type: Required[str] + """Indicates the type of response.""" + image_response_card: ImageResponseCard | ImageResponseCardDict | None + """ + A card that is shown to the user by a messaging platform. You define the + contents of the card, the card is displayed by the platform. + + When you use a response card, the response from the user is constrained + to the text associated with a button on the card. + """ + class MessageContentType(UnknownEnumMixin, StrEnum): CUSTOM_PAYLOAD = "CustomPayload" IMAGE_RESPONSE_CARD = "ImageResponseCard" @@ -775,6 +978,46 @@ class PutSessionInput(_SerdeShape): text in the response. """ +class PutSessionInputDict(TypedDict, total=False): + """Dictionary form of `PutSessionInput`.""" + + bot_id: Required[str] + """The identifier of the bot that receives the session data.""" + bot_alias_id: Required[str] + """The alias identifier of the bot that receives the session data.""" + locale_id: Required[str] + """The locale where the session is in use.""" + session_id: Required[str] + """The identifier of the session that receives the session data.""" + messages: Sequence[Message | MessageDict] | None + """ + A list of messages to send to the user. Messages are sent in the order + that they are defined in the list. + """ + session_state: Required[SessionState | SessionStateDict] + """ + Sets the state of the session with the user. You can use this to set the + current intent, attributes, context, and dialog action. Use the dialog + action to determine the next step that Amazon Lex V2 should use in the + conversation with the user. + """ + request_attributes: Mapping[str, str] | None + """ + Request-specific information passed between Amazon Lex V2 and the client + application. + + The namespace `x-amz-lex:` is reserved for special attributes. Don't + create any request attributes with the prefix `x-amz-lex:`. + """ + response_content_type: str | None + """ + The message that Amazon Lex V2 returns in the response can be either + text or speech depending on the value of this parameter. + + - If the value is `text/plain; charset=utf-8`, Amazon Lex V2 returns + text in the response. + """ + @dataclass(kw_only=True) class PutSessionOutput(_SerdeShape): """Dataclass for PutSessionOutput structure.""" @@ -852,6 +1095,30 @@ class RecognizeTextInput(_SerdeShape): create any request attributes with the prefix `x-amz-lex:`. """ +class RecognizeTextInputDict(TypedDict, total=False): + """Dictionary form of `RecognizeTextInput`.""" + + bot_id: Required[str] + """The identifier of the bot that processes the request.""" + bot_alias_id: Required[str] + """The alias identifier in use for the bot that processes the request.""" + locale_id: Required[str] + """The locale where the session is in use.""" + session_id: Required[str] + """The identifier of the user session that is having the conversation.""" + text: Required[str] + """The text that the user entered. Amazon Lex V2 interprets this text.""" + session_state: SessionState | SessionStateDict | None + """The current state of the dialog between the user and the bot.""" + request_attributes: Mapping[str, str] | None + """ + Request-specific information passed between the client application and + Amazon Lex V2 + + The namespace `x-amz-lex:` is reserved for special attributes. Don't + create any request attributes with the prefix `x-amz-lex:`. + """ + @dataclass(kw_only=True) class RecognizeTextOutput(_SerdeShape): """Dataclass for RecognizeTextOutput structure.""" @@ -983,6 +1250,191 @@ class RecognizeUtteranceInput(_SerdeShape): the `requestContentType` parameter. """ +class RecognizeUtteranceInputDict(TypedDict, total=False): + """ + Dictionary form of `RecognizeUtteranceInput` that either client + accepts. Its streaming body is one a sync client can send. Use + `AsyncRecognizeUtteranceInputDict` for an async stream. + """ + + bot_id: Required[str] + """The identifier of the bot that should receive the request.""" + bot_alias_id: Required[str] + """The alias identifier in use for the bot that should receive the request.""" + locale_id: Required[str] + """The locale where the session is in use.""" + session_id: Required[str] + """The identifier of the session in use.""" + session_state: str | None + """ + Sets the state of the session with the user. You can use this to set the + current intent, attributes, context, and dialog action. Use the dialog + action to determine the next step that Amazon Lex V2 should use in the + conversation with the user. + + The `sessionState` field must be compressed using gzip and then base64 + encoded before sending to Amazon Lex V2. + """ + request_attributes: str | None + """ + Request-specific information passed between the client application and + Amazon Lex V2 + + The namespace `x-amz-lex:` is reserved for special attributes. Don't + create any request attributes for prefix `x-amz-lex:`. + + The `requestAttributes` field must be compressed using gzip and then + base64 encoded before sending to Amazon Lex V2. + """ + request_content_type: Required[str] + """ + Indicates the format for audio input or that the content is text. The + header must start with one of the following prefixes: + + - PCM format, audio data must be in little-endian byte order. + + - audio/l16; rate=16000; channels=1 + + - audio/x-l16; sample-rate=16000; channel-count=1 + + - audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; + is-big-endian=false + + - Opus format + + - audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4 + + - Text format + + - text/plain; charset=utf-8 + """ + response_content_type: str | None + """ + The message that Amazon Lex V2 returns in the response can be either + text or speech based on the `responseContentType` value. + + - If the value is `text/plain;charset=utf-8`, Amazon Lex V2 returns text + in the response. + + - If the value begins with `audio/`, Amazon Lex V2 returns speech in the + response. Amazon Lex V2 uses Amazon Polly to generate the speech using + the configuration that you specified in the `responseContentType` + parameter. For example, if you specify `audio/mpeg` as the value, + Amazon Lex V2 returns speech in the MPEG format. + + - If the value is `audio/pcm`, the speech returned is `audio/pcm` at 16 + KHz in 16-bit, little-endian format. + + - The following are the accepted values: + + - audio/mpeg + + - audio/ogg + + - audio/pcm (16 KHz) + + - audio/* (defaults to mpeg) + + - text/plain; charset=utf-8 + """ + input_stream: SyncStreamingBlob | None + """ + User input in PCM or Opus audio format or text format as described in + the `requestContentType` parameter. + """ + +class AsyncRecognizeUtteranceInputDict(TypedDict, total=False): + """ + Dictionary form of `RecognizeUtteranceInput` for the async client. Its + streaming body may also be an async stream. + """ + + bot_id: Required[str] + """The identifier of the bot that should receive the request.""" + bot_alias_id: Required[str] + """The alias identifier in use for the bot that should receive the request.""" + locale_id: Required[str] + """The locale where the session is in use.""" + session_id: Required[str] + """The identifier of the session in use.""" + session_state: str | None + """ + Sets the state of the session with the user. You can use this to set the + current intent, attributes, context, and dialog action. Use the dialog + action to determine the next step that Amazon Lex V2 should use in the + conversation with the user. + + The `sessionState` field must be compressed using gzip and then base64 + encoded before sending to Amazon Lex V2. + """ + request_attributes: str | None + """ + Request-specific information passed between the client application and + Amazon Lex V2 + + The namespace `x-amz-lex:` is reserved for special attributes. Don't + create any request attributes for prefix `x-amz-lex:`. + + The `requestAttributes` field must be compressed using gzip and then + base64 encoded before sending to Amazon Lex V2. + """ + request_content_type: Required[str] + """ + Indicates the format for audio input or that the content is text. The + header must start with one of the following prefixes: + + - PCM format, audio data must be in little-endian byte order. + + - audio/l16; rate=16000; channels=1 + + - audio/x-l16; sample-rate=16000; channel-count=1 + + - audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; + is-big-endian=false + + - Opus format + + - audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4 + + - Text format + + - text/plain; charset=utf-8 + """ + response_content_type: str | None + """ + The message that Amazon Lex V2 returns in the response can be either + text or speech based on the `responseContentType` value. + + - If the value is `text/plain;charset=utf-8`, Amazon Lex V2 returns text + in the response. + + - If the value begins with `audio/`, Amazon Lex V2 returns speech in the + response. Amazon Lex V2 uses Amazon Polly to generate the speech using + the configuration that you specified in the `responseContentType` + parameter. For example, if you specify `audio/mpeg` as the value, + Amazon Lex V2 returns speech in the MPEG format. + + - If the value is `audio/pcm`, the speech returned is `audio/pcm` at 16 + KHz in 16-bit, little-endian format. + + - The following are the accepted values: + + - audio/mpeg + + - audio/ogg + + - audio/pcm (16 KHz) + + - audio/* (defaults to mpeg) + + - text/plain; charset=utf-8 + """ + input_stream: StreamingBlob | None + """ + User input in PCM or Opus audio format or text format as described in + the `requestContentType` parameter. + """ + @dataclass(kw_only=True) class RecognizeUtteranceOutput(_SerdeShape): """Dataclass for RecognizeUtteranceOutput structure.""" @@ -1112,6 +1564,24 @@ class RuntimeHintDetails(_SerdeShape): constituent sub slot names must exist. """ +class RuntimeHintDetailsDict(TypedDict, total=False): + """Dictionary form of `RuntimeHintDetails`.""" + + runtime_hint_values: Sequence[RuntimeHintValue | RuntimeHintValueDict] | None + """ + One or more strings that Amazon Lex V2 should look for in the input to + the bot. Each phrase is given preference when deciding on slot values. + """ + sub_slot_hints: Mapping[str, RuntimeHintDetails | RuntimeHintDetailsDict] | None + """ + A map of constituent sub slot names inside a composite slot in the + intent and the phrases that should be added for each sub slot. Inside + each composite slot hints, this structure provides a mechanism to add + granular sub slot phrases. Only sub slot hints are supported for + composite slots. The intent name, composite slot name and the + constituent sub slot names must exist. + """ + @dataclass(kw_only=True) class RuntimeHints(_SerdeShape): """ @@ -1142,6 +1612,24 @@ class RuntimeHints(_SerdeShape): The intent name and slot name must exist. """ +class RuntimeHintsDict(TypedDict, total=False): + """Dictionary form of `RuntimeHints`.""" + + slot_hints: ( + Mapping[str, Mapping[str, RuntimeHintDetails | RuntimeHintDetailsDict]] | None + ) + """ + A list of the slots in the intent that should have runtime hints added, + and the phrases that should be added for each slot. + + The first level of the `slotHints` map is the name of the intent. The + second level is the name of the slot within the intent. For more + information, see [Using hints to improve + accuracy](https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.html). + + The intent name and slot name must exist. + """ + @dataclass(kw_only=True) class RuntimeHintValue(_SerdeShape): """ @@ -1155,6 +1643,15 @@ class RuntimeHintValue(_SerdeShape): the bot. """ +class RuntimeHintValueDict(TypedDict, total=False): + """Dictionary form of `RuntimeHintValue`.""" + + phrase: Required[str] + """ + The phrase that Amazon Lex V2 should look for in the user's input to + the bot. + """ + @dataclass(kw_only=True) class SentimentResponse(_SerdeShape): """ @@ -1238,6 +1735,36 @@ class SessionState(_SerdeShape): Lex V2 uses the hints to help determine the correct value of a slot. """ +class SessionStateDict(TypedDict, total=False): + """Dictionary form of `SessionState`.""" + + dialog_action: DialogAction | DialogActionDict | None + """ + The next step that Amazon Lex V2 should take in the conversation with a + user. + """ + intent: Intent | IntentDict | None + """The active intent that Amazon Lex V2 is processing.""" + active_contexts: Sequence[ActiveContext | ActiveContextDict] | None + """ + One or more contexts that indicate to Amazon Lex V2 the context of a + request. When a context is active, Amazon Lex V2 considers intents with + the matching context as a trigger as the next intent in a session. + """ + session_attributes: Mapping[str, str] | None + """ + Map of key/value pairs representing session-specific context + information. It contains application information passed between Amazon + Lex V2 and a client application. + """ + originating_request_id: str | None + """A unique identifier for a specific request.""" + runtime_hints: RuntimeHints | RuntimeHintsDict | None + """ + Hints for phrases that a customer is likely to use for a slot. Amazon + Lex V2 uses the hints to help determine the correct value of a slot. + """ + class Shape(UnknownEnumMixin, StrEnum): SCALAR = "Scalar" LIST_ = "List" @@ -1264,6 +1791,26 @@ class Slot(_SerdeShape): sub_slots: dict[str, Slot] | None = ... """The constituent sub slots of a composite slot.""" +class SlotDict(TypedDict, total=False): + """Dictionary form of `Slot`.""" + + value: Value | ValueDict | None + """The current value of the slot.""" + shape: str | None + """ + When the `shape` value is `List`, it indicates that the `values` field + contains a list of slot values. When the value is `Scalar`, it indicates + that the `value` field contains a single value. + """ + values: Sequence[Slot | SlotDict] | None + """ + A list of one or more values that the user provided for the slot. For + example, if a for a slot that elicits pizza toppings, the values might + be \"pepperoni\" and \"pineapple.\" + """ + sub_slots: Mapping[str, Slot | SlotDict] | None + """The constituent sub slots of a composite slot.""" + @dataclass(kw_only=True) class StartConversationInput(_SerdeShape): """Dataclass for StartConversationInput structure.""" @@ -1283,6 +1830,24 @@ class StartConversationInput(_SerdeShape): information. If the mode is `TEXT` you can only send text. """ +class StartConversationInputDict(TypedDict, total=False): + """Dictionary form of `StartConversationInput`.""" + + bot_id: Required[str] + """The identifier of the bot to process the request.""" + bot_alias_id: Required[str] + """The alias identifier in use for the bot that processes the request.""" + locale_id: Required[str] + """The locale where the session is in use.""" + session_id: Required[str] + """The identifier of the user session that is having the conversation.""" + conversation_mode: str | None + """ + The conversation type that you are using the Amazon Lex V2. If the + conversation mode is `AUDIO` you can send both audio and DTMF + information. If the mode is `TEXT` you can only send text. + """ + @dataclass(kw_only=True) class StartConversationOutput(_SerdeShape): """Dataclass for StartConversationOutput structure.""" @@ -1663,6 +2228,28 @@ class Value(_SerdeShape): for the user input. The first value matches the `interpretedValue`. """ +class ValueDict(TypedDict, total=False): + """Dictionary form of `Value`.""" + + original_value: str | None + """ + The part of the user's response to the slot elicitation that Amazon Lex + V2 determines is relevant to the slot value. + """ + interpreted_value: Required[str] + """ + The value that Amazon Lex V2 determines for the slot, given the user + input. The actual value depends on the setting of the value selection + strategy for the bot. You can choose to use the value entered by the + user, or you can have Amazon Lex V2 choose the first value in the + `resolvedValues` list. + """ + resolved_values: Sequence[str] | None + """ + A list of values that Amazon Lex V2 determines are possible resolutions + for the user input. The first value matches the `interpretedValue`. + """ + DELETE_SESSION: APIOperation[DeleteSessionInput, DeleteSessionOutput] GET_SESSION: APIOperation[GetSessionInput, GetSessionOutput] PUT_SESSION: APIOperation[PutSessionInput, PutSessionOutput] diff --git a/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/py.typed b/clients/aws-sdk-lex-runtime-v2/src/aws_sdk_lex_runtime_v2/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-lex-runtime-v2/tests/_typecheck.py b/clients/aws-sdk-lex-runtime-v2/tests/_typecheck.py index 81d3d60d0..c951ba52d 100644 --- a/clients/aws-sdk-lex-runtime-v2/tests/_typecheck.py +++ b/clients/aws-sdk-lex-runtime-v2/tests/_typecheck.py @@ -2,55 +2,79 @@ from typing import Any +from aws_sdk_lex_runtime_v2.aio.client import AsyncLexRuntimeV2Client +from aws_sdk_lex_runtime_v2.client import LexRuntimeV2Client from aws_sdk_lex_runtime_v2.models import ( ActiveContext, + ActiveContextDict, ActiveContextTimeToLive, + ActiveContextTimeToLiveDict, + AsyncRecognizeUtteranceInputDict, AudioInputEvent, AudioResponseEvent, Button, + ButtonDict, ConfidenceScore, ConfigurationEvent, DTMFInputEvent, DeleteSessionInput, + DeleteSessionInputDict, DeleteSessionOutput, DialogAction, + DialogActionDict, DisconnectionEvent, ElicitSubSlot, + ElicitSubSlotDict, GetSessionInput, + GetSessionInputDict, GetSessionOutput, HeartbeatEvent, ImageResponseCard, + ImageResponseCardDict, Intent, + IntentDict, IntentResultEvent, Interpretation, Message, + MessageDict, PlaybackCompletionEvent, PlaybackInterruptionEvent, PutSessionInput, + PutSessionInputDict, PutSessionOutput, RecognizeTextInput, + RecognizeTextInputDict, RecognizeTextOutput, RecognizeUtteranceInput, + RecognizeUtteranceInputDict, RecognizeUtteranceOutput, RecognizedBotMember, RuntimeHintDetails, + RuntimeHintDetailsDict, RuntimeHintValue, + RuntimeHintValueDict, RuntimeHints, + RuntimeHintsDict, SentimentResponse, SentimentScore, SessionState, + SessionStateDict, Slot, + SlotDict, StartConversationInput, + StartConversationInputDict, StartConversationOutput, TextInputEvent, TextResponseEvent, TranscriptEvent, Value, + ValueDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -97,3 +121,127 @@ TextResponseEvent() TranscriptEvent() Value(interpreted_value=_) +_params_0: ActiveContextDict = {"name": _, "time_to_live": _, "context_attributes": _} +_params_1: ActiveContextTimeToLiveDict = { + "time_to_live_in_seconds": _, + "turns_to_live": _, +} +_params_2: ButtonDict = {"text": _, "value": _} +_params_3: DeleteSessionInputDict = { + "bot_id": _, + "bot_alias_id": _, + "locale_id": _, + "session_id": _, +} +_params_4: DialogActionDict = {"type": _} +_params_5: ElicitSubSlotDict = {"name": _} +_params_6: GetSessionInputDict = { + "bot_id": _, + "bot_alias_id": _, + "locale_id": _, + "session_id": _, +} +_params_7: ImageResponseCardDict = {"title": _} +_params_8: IntentDict = {"name": _} +_params_9: MessageDict = {"content_type": _} +_params_10: PutSessionInputDict = { + "bot_id": _, + "bot_alias_id": _, + "locale_id": _, + "session_id": _, + "session_state": _, +} +_params_11: RecognizeTextInputDict = { + "bot_id": _, + "bot_alias_id": _, + "locale_id": _, + "session_id": _, + "text": _, +} +_params_12: RecognizeUtteranceInputDict = { + "bot_id": _, + "bot_alias_id": _, + "locale_id": _, + "session_id": _, + "request_content_type": _, +} +_params_13: RuntimeHintDetailsDict = {} +_params_14: RuntimeHintsDict = {} +_params_15: RuntimeHintValueDict = {"phrase": _} +_params_16: SessionStateDict = {} +_params_17: SlotDict = {} +_params_18: StartConversationInputDict = { + "bot_id": _, + "bot_alias_id": _, + "locale_id": _, + "session_id": _, +} +_params_19: ValueDict = {"interpreted_value": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncLexRuntimeV2Client) -> None: + pass + await client.delete_session(bot_id=_, bot_alias_id=_, locale_id=_, session_id=_) + await client.delete_session(**_request(DeleteSessionInputDict)) + await client.delete_session(_request(DeleteSessionInput)) + await client.delete_session(_request(DeleteSessionInputDict)) + await client.get_session(bot_id=_, bot_alias_id=_, locale_id=_, session_id=_) + await client.get_session(**_request(GetSessionInputDict)) + await client.get_session(_request(GetSessionInput)) + await client.get_session(_request(GetSessionInputDict)) + await client.put_session( + bot_id=_, bot_alias_id=_, locale_id=_, session_id=_, session_state=_ + ) + await client.put_session(**_request(PutSessionInputDict)) + await client.put_session(_request(PutSessionInput)) + await client.put_session(_request(PutSessionInputDict)) + await client.recognize_text( + bot_id=_, bot_alias_id=_, locale_id=_, session_id=_, text=_ + ) + await client.recognize_text(**_request(RecognizeTextInputDict)) + await client.recognize_text(_request(RecognizeTextInput)) + await client.recognize_text(_request(RecognizeTextInputDict)) + await client.recognize_utterance( + bot_id=_, bot_alias_id=_, locale_id=_, session_id=_, request_content_type=_ + ) + await client.recognize_utterance(**_request(RecognizeUtteranceInputDict)) + await client.recognize_utterance(_request(RecognizeUtteranceInput)) + await client.recognize_utterance(_request(RecognizeUtteranceInputDict)) + await client.recognize_utterance(**_request(AsyncRecognizeUtteranceInputDict)) + await client.recognize_utterance(_request(AsyncRecognizeUtteranceInputDict)) + await client.start_conversation(bot_id=_, bot_alias_id=_, locale_id=_, session_id=_) + await client.start_conversation(**_request(StartConversationInputDict)) + await client.start_conversation(_request(StartConversationInput)) + await client.start_conversation(_request(StartConversationInputDict)) + + +def check_sync_calls(client: LexRuntimeV2Client) -> None: + pass + client.delete_session(bot_id=_, bot_alias_id=_, locale_id=_, session_id=_) + client.delete_session(**_request(DeleteSessionInputDict)) + client.delete_session(_request(DeleteSessionInput)) + client.delete_session(_request(DeleteSessionInputDict)) + client.get_session(bot_id=_, bot_alias_id=_, locale_id=_, session_id=_) + client.get_session(**_request(GetSessionInputDict)) + client.get_session(_request(GetSessionInput)) + client.get_session(_request(GetSessionInputDict)) + client.put_session( + bot_id=_, bot_alias_id=_, locale_id=_, session_id=_, session_state=_ + ) + client.put_session(**_request(PutSessionInputDict)) + client.put_session(_request(PutSessionInput)) + client.put_session(_request(PutSessionInputDict)) + client.recognize_text(bot_id=_, bot_alias_id=_, locale_id=_, session_id=_, text=_) + client.recognize_text(**_request(RecognizeTextInputDict)) + client.recognize_text(_request(RecognizeTextInput)) + client.recognize_text(_request(RecognizeTextInputDict)) + client.recognize_utterance( + bot_id=_, bot_alias_id=_, locale_id=_, session_id=_, request_content_type=_ + ) + client.recognize_utterance(**_request(RecognizeUtteranceInputDict)) + client.recognize_utterance(_request(RecognizeUtteranceInput)) + client.recognize_utterance(_request(RecognizeUtteranceInputDict)) diff --git a/clients/aws-sdk-lex-runtime-v2/tests/integration/test_bidirectional_streaming.py b/clients/aws-sdk-lex-runtime-v2/tests/integration/test_bidirectional_streaming.py index a023837d7..d792cb1a8 100644 --- a/clients/aws-sdk-lex-runtime-v2/tests/integration/test_bidirectional_streaming.py +++ b/clients/aws-sdk-lex-runtime-v2/tests/integration/test_bidirectional_streaming.py @@ -9,7 +9,6 @@ from aws_sdk_lex_runtime_v2.models import ( ConfigurationEvent, DisconnectionEvent, - StartConversationInput, StartConversationOutput, StartConversationRequestEventStream, StartConversationRequestEventStreamConfigurationEvent, @@ -128,13 +127,11 @@ async def test_start_conversation(lex_bot: str) -> None: """Test bidirectional streaming StartConversation operation.""" async with await create_lex_client(REGION, transport=AWSCRTHTTPClient()) as client: stream = await client.start_conversation( - input=StartConversationInput( - bot_id=lex_bot, - bot_alias_id=BOT_ALIAS_ID, - locale_id=LOCALE_ID, - session_id=str(uuid.uuid4()), - conversation_mode="TEXT", - ) + bot_id=lex_bot, + bot_alias_id=BOT_ALIAS_ID, + locale_id=LOCALE_ID, + session_id=str(uuid.uuid4()), + conversation_mode="TEXT", ) results = await asyncio.gather(_send_events(stream), _receive_events(stream)) diff --git a/clients/aws-sdk-lex-runtime-v2/tests/integration/test_non_streaming.py b/clients/aws-sdk-lex-runtime-v2/tests/integration/test_non_streaming.py index 217c3d554..0e8d853a0 100644 --- a/clients/aws-sdk-lex-runtime-v2/tests/integration/test_non_streaming.py +++ b/clients/aws-sdk-lex-runtime-v2/tests/integration/test_non_streaming.py @@ -5,7 +5,7 @@ import uuid -from aws_sdk_lex_runtime_v2.models import RecognizeTextInput, RecognizeTextOutput +from aws_sdk_lex_runtime_v2.models import RecognizeTextOutput from . import BOT_ALIAS_ID, LOCALE_ID, REGION, create_lex_client @@ -14,13 +14,11 @@ async def test_recognize_text(lex_bot: str) -> None: """Test non-streaming RecognizeText operation.""" async with await create_lex_client(REGION) as client: response = await client.recognize_text( - input=RecognizeTextInput( - bot_id=lex_bot, - bot_alias_id=BOT_ALIAS_ID, - locale_id=LOCALE_ID, - session_id=str(uuid.uuid4()), - text="Hello", - ) + bot_id=lex_bot, + bot_alias_id=BOT_ALIAS_ID, + locale_id=LOCALE_ID, + session_id=str(uuid.uuid4()), + text="Hello", ) assert isinstance(response, RecognizeTextOutput) diff --git a/clients/aws-sdk-polly/examples/stream_speech_to_file.py b/clients/aws-sdk-polly/examples/stream_speech_to_file.py index 51a26dcc2..1635ca287 100644 --- a/clients/aws-sdk-polly/examples/stream_speech_to_file.py +++ b/clients/aws-sdk-polly/examples/stream_speech_to_file.py @@ -44,7 +44,6 @@ StartSpeechSynthesisStreamActionStreamTextEvent, StartSpeechSynthesisStreamEventStream, StartSpeechSynthesisStreamEventStreamAudioEvent, - StartSpeechSynthesisStreamInput, TextEvent, ) from smithy_aws_core.aio.identity import AsyncEnvironmentCredentialsResolver @@ -147,12 +146,10 @@ async def main(): ) ) as client: stream = await client.start_speech_synthesis_stream( - input=StartSpeechSynthesisStreamInput( - engine="generative", - output_format="mp3", - sample_rate=str(SAMPLE_RATE), - voice_id=args.voice, - ) + engine="generative", + output_format="mp3", + sample_rate=str(SAMPLE_RATE), + voice_id=args.voice, ) _, output_stream = await stream.await_output() diff --git a/clients/aws-sdk-polly/examples/stream_speech_to_speakers.py b/clients/aws-sdk-polly/examples/stream_speech_to_speakers.py index 90fcb6bfd..a17209129 100644 --- a/clients/aws-sdk-polly/examples/stream_speech_to_speakers.py +++ b/clients/aws-sdk-polly/examples/stream_speech_to_speakers.py @@ -49,7 +49,6 @@ StartSpeechSynthesisStreamEventStream, StartSpeechSynthesisStreamEventStreamAudioEvent, StartSpeechSynthesisStreamEventStreamStreamClosedEvent, - StartSpeechSynthesisStreamInput, TextEvent, ) from smithy_aws_core.aio.identity import AsyncEnvironmentCredentialsResolver @@ -253,12 +252,10 @@ async def main(): ) ) as client: stream = await client.start_speech_synthesis_stream( - input=StartSpeechSynthesisStreamInput( - engine="generative", - output_format="mp3", - sample_rate=str(SAMPLE_RATE), - voice_id=args.voice, - ) + engine="generative", + output_format="mp3", + sample_rate=str(SAMPLE_RATE), + voice_id=args.voice, ) _, output_stream = await stream.await_output() diff --git a/clients/aws-sdk-polly/pyproject.toml b/clients/aws-sdk-polly/pyproject.toml index c48a8ba6b..52e8bbf2a 100644 --- a/clients/aws-sdk-polly/pyproject.toml +++ b/clients/aws-sdk-polly/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-polly/src/aws_sdk_polly/_private/schemas.py b/clients/aws-sdk-polly/src/aws_sdk_polly/_private/schemas.py index 30e166a04..bf31327f8 100644 --- a/clients/aws-sdk-polly/src/aws_sdk_polly/_private/schemas.py +++ b/clients/aws-sdk-polly/src/aws_sdk_polly/_private/schemas.py @@ -162,7 +162,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-polly/src/aws_sdk_polly/aio/client.py b/clients/aws-sdk-polly/src/aws_sdk_polly/aio/client.py index 582e055fb..63113fa08 100644 --- a/clients/aws-sdk-polly/src/aws_sdk_polly/aio/client.py +++ b/clients/aws-sdk-polly/src/aws_sdk_polly/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -17,7 +17,6 @@ from ..models import ( StartSpeechSynthesisStreamActionStream, StartSpeechSynthesisStreamEventStream, - StartSpeechSynthesisStreamInput, StartSpeechSynthesisStreamOutput, _StartSpeechSynthesisStreamEventStreamDeserializer, ) @@ -28,29 +27,17 @@ if TYPE_CHECKING: from ..models import ( - DeleteLexiconInput, DeleteLexiconOutput, - DescribeVoicesInput, DescribeVoicesOutput, - GetLexiconInput, GetLexiconOutput, - GetSpeechSynthesisTaskInput, GetSpeechSynthesisTaskOutput, - ListLexiconsInput, ListLexiconsOutput, - ListSpeechSynthesisTasksInput, ListSpeechSynthesisTasksOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - PutLexiconInput, PutLexiconOutput, - StartSpeechSynthesisTaskInput, StartSpeechSynthesisTaskOutput, - SynthesizeSpeechInput, SynthesizeSpeechOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, ) @@ -75,10 +62,24 @@ class AsyncPollyClient(AsyncClient[AsyncPollyConfig]): in the *IAM User Guide*. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def delete_lexicon( - self, input: DeleteLexiconInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteLexiconInput | _models.DeleteLexiconInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLexiconOutput: ... + + @_overload + async def delete_lexicon( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLexiconInputDict], ) -> DeleteLexiconOutput: """ Deletes the specified pronunciation lexicon stored in an Amazon Web @@ -90,8 +91,6 @@ async def delete_lexicon( Lexicons](https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). Args: - input: - An instance of `DeleteLexiconInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -101,10 +100,33 @@ async def delete_lexicon( Returns: An instance of `DeleteLexiconOutput`. """ - return await self._invoke(input, _models.DELETE_LEXICON, [], plugins) + async def delete_lexicon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLexiconOutput: + return await self._invoke( + self._select_input(_models.DELETE_LEXICON, args, kwargs), + _models.DELETE_LEXICON, + [], + plugins, + ) + + @_overload async def describe_voices( - self, input: DescribeVoicesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeVoicesInput | _models.DescribeVoicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVoicesOutput: ... + + @_overload + async def describe_voices( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVoicesInputDict], ) -> DescribeVoicesOutput: """ Returns the list of voices that are available for use when requesting @@ -129,8 +151,6 @@ async def describe_voices( `polly:DescribeVoices` action. Args: - input: - An instance of `DescribeVoicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -140,10 +160,33 @@ async def describe_voices( Returns: An instance of `DescribeVoicesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_VOICES, [], plugins) + async def describe_voices( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVoicesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_VOICES, args, kwargs), + _models.DESCRIBE_VOICES, + [], + plugins, + ) + + @_overload async def get_lexicon( - self, input: GetLexiconInput, plugins: list[Plugin] | None = None + self, + request: _models.GetLexiconInput | _models.GetLexiconInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLexiconOutput: ... + + @_overload + async def get_lexicon( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLexiconInputDict], ) -> GetLexiconOutput: """ Returns the content of the specified pronunciation lexicon stored in an @@ -151,8 +194,6 @@ async def get_lexicon( Lexicons](https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). Args: - input: - An instance of `GetLexiconInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -162,10 +203,34 @@ async def get_lexicon( Returns: An instance of `GetLexiconOutput`. """ - return await self._invoke(input, _models.GET_LEXICON, [], plugins) + async def get_lexicon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLexiconOutput: + return await self._invoke( + self._select_input(_models.GET_LEXICON, args, kwargs), + _models.GET_LEXICON, + [], + plugins, + ) + + @_overload + async def get_speech_synthesis_task( + self, + request: _models.GetSpeechSynthesisTaskInput + | _models.GetSpeechSynthesisTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSpeechSynthesisTaskOutput: ... + + @_overload async def get_speech_synthesis_task( - self, input: GetSpeechSynthesisTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSpeechSynthesisTaskInputDict], ) -> GetSpeechSynthesisTaskOutput: """ Retrieves a specific SpeechSynthesisTask object based on its TaskID. @@ -174,8 +239,6 @@ async def get_speech_synthesis_task( the output of the task. Args: - input: - An instance of `GetSpeechSynthesisTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -185,10 +248,33 @@ async def get_speech_synthesis_task( Returns: An instance of `GetSpeechSynthesisTaskOutput`. """ - return await self._invoke(input, _models.GET_SPEECH_SYNTHESIS_TASK, [], plugins) + async def get_speech_synthesis_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSpeechSynthesisTaskOutput: + return await self._invoke( + self._select_input(_models.GET_SPEECH_SYNTHESIS_TASK, args, kwargs), + _models.GET_SPEECH_SYNTHESIS_TASK, + [], + plugins, + ) + + @_overload + async def list_lexicons( + self, + request: _models.ListLexiconsInput | _models.ListLexiconsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListLexiconsOutput: ... + + @_overload async def list_lexicons( - self, input: ListLexiconsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListLexiconsInputDict], ) -> ListLexiconsOutput: """ Returns a list of pronunciation lexicons stored in an Amazon Web @@ -196,8 +282,6 @@ async def list_lexicons( Lexicons](https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). Args: - input: - An instance of `ListLexiconsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -207,10 +291,34 @@ async def list_lexicons( Returns: An instance of `ListLexiconsOutput`. """ - return await self._invoke(input, _models.LIST_LEXICONS, [], plugins) + async def list_lexicons( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListLexiconsOutput: + return await self._invoke( + self._select_input(_models.LIST_LEXICONS, args, kwargs), + _models.LIST_LEXICONS, + [], + plugins, + ) + + @_overload + async def list_speech_synthesis_tasks( + self, + request: _models.ListSpeechSynthesisTasksInput + | _models.ListSpeechSynthesisTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSpeechSynthesisTasksOutput: ... + + @_overload async def list_speech_synthesis_tasks( - self, input: ListSpeechSynthesisTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSpeechSynthesisTasksInputDict], ) -> ListSpeechSynthesisTasksOutput: """ Returns a list of SpeechSynthesisTask objects ordered by their creation @@ -218,8 +326,6 @@ async def list_speech_synthesis_tasks( allowing users to list only tasks that are completed. Args: - input: - An instance of `ListSpeechSynthesisTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -229,19 +335,39 @@ async def list_speech_synthesis_tasks( Returns: An instance of `ListSpeechSynthesisTasksOutput`. """ + + async def list_speech_synthesis_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSpeechSynthesisTasksOutput: return await self._invoke( - input, _models.LIST_SPEECH_SYNTHESIS_TASKS, [], plugins + self._select_input(_models.LIST_SPEECH_SYNTHESIS_TASKS, args, kwargs), + _models.LIST_SPEECH_SYNTHESIS_TASKS, + [], + plugins, ) + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags for an Amazon Polly resource. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -251,10 +377,33 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload async def put_lexicon( - self, input: PutLexiconInput, plugins: list[Plugin] | None = None + self, + request: _models.PutLexiconInput | _models.PutLexiconInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutLexiconOutput: ... + + @_overload + async def put_lexicon( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutLexiconInputDict], ) -> PutLexiconOutput: """ Stores a pronunciation lexicon in an Amazon Web Services Region. If a @@ -273,8 +422,6 @@ async def put_lexicon( Lexicons](https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). Args: - input: - An instance of `PutLexiconInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -284,12 +431,38 @@ async def put_lexicon( Returns: An instance of `PutLexiconOutput`. """ - return await self._invoke(input, _models.PUT_LEXICON, [], plugins) + async def put_lexicon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutLexiconOutput: + return await self._invoke( + self._select_input(_models.PUT_LEXICON, args, kwargs), + _models.PUT_LEXICON, + [], + plugins, + ) + + @_overload + async def start_speech_synthesis_stream( + self, + request: _models.StartSpeechSynthesisStreamInput + | _models.StartSpeechSynthesisStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ + StartSpeechSynthesisStreamActionStream, + StartSpeechSynthesisStreamEventStream, + StartSpeechSynthesisStreamOutput, + ]: ... + + @_overload async def start_speech_synthesis_stream( self, - input: StartSpeechSynthesisStreamInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartSpeechSynthesisStreamInputDict], ) -> AsyncDuplexEventStream[ StartSpeechSynthesisStreamActionStream, StartSpeechSynthesisStreamEventStream, @@ -307,8 +480,6 @@ async def start_speech_synthesis_stream( - [SynthesizeSpeech](https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html) Args: - input: - An instance of `StartSpeechSynthesisStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -318,8 +489,19 @@ async def start_speech_synthesis_stream( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def start_speech_synthesis_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + StartSpeechSynthesisStreamActionStream, + StartSpeechSynthesisStreamEventStream, + StartSpeechSynthesisStreamOutput, + ]: pipeline, call = await self._prepare_call( - input, _models.START_SPEECH_SYNTHESIS_STREAM, [], plugins + self._select_input(_models.START_SPEECH_SYNTHESIS_STREAM, args, kwargs), + _models.START_SPEECH_SYNTHESIS_STREAM, + [], + plugins, ) return await pipeline.duplex_stream( call, @@ -328,8 +510,23 @@ async def start_speech_synthesis_stream( _StartSpeechSynthesisStreamEventStreamDeserializer().deserialize, ) + @_overload async def start_speech_synthesis_task( - self, input: StartSpeechSynthesisTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.StartSpeechSynthesisTaskInput + | _models.StartSpeechSynthesisTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartSpeechSynthesisTaskOutput: ... + + @_overload + async def start_speech_synthesis_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartSpeechSynthesisTaskInputDict], ) -> StartSpeechSynthesisTaskOutput: """ Allows the creation of an asynchronous synthesis task, by starting a new @@ -343,8 +540,6 @@ async def start_speech_synthesis_task( available for 72 hours after starting the asynchronous synthesis task. Args: - input: - An instance of `StartSpeechSynthesisTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -354,12 +549,33 @@ async def start_speech_synthesis_task( Returns: An instance of `StartSpeechSynthesisTaskOutput`. """ + + async def start_speech_synthesis_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartSpeechSynthesisTaskOutput: return await self._invoke( - input, _models.START_SPEECH_SYNTHESIS_TASK, [], plugins + self._select_input(_models.START_SPEECH_SYNTHESIS_TASK, args, kwargs), + _models.START_SPEECH_SYNTHESIS_TASK, + [], + plugins, ) + @_overload async def synthesize_speech( - self, input: SynthesizeSpeechInput, plugins: list[Plugin] | None = None + self, + request: _models.SynthesizeSpeechInput | _models.SynthesizeSpeechInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SynthesizeSpeechOutput: ... + + @_overload + async def synthesize_speech( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SynthesizeSpeechInputDict], ) -> SynthesizeSpeechOutput: """ Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML @@ -370,8 +586,6 @@ async def synthesize_speech( Works](https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html). Args: - input: - An instance of `SynthesizeSpeechInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -381,10 +595,33 @@ async def synthesize_speech( Returns: An instance of `SynthesizeSpeechOutput`. """ - return await self._invoke(input, _models.SYNTHESIZE_SPEECH, [], plugins) + async def synthesize_speech( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SynthesizeSpeechOutput: + return await self._invoke( + self._select_input(_models.SYNTHESIZE_SPEECH, args, kwargs), + _models.SYNTHESIZE_SPEECH, + [], + plugins, + ) + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + async def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds specified tags to a resource with the specified ARN. Existing tags @@ -393,8 +630,6 @@ async def tag_resource( resource, the value in the request replaces the existing value. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -404,17 +639,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Deletes specified tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -424,7 +680,16 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) async def _new_config(self) -> AsyncPollyConfig: return await AsyncPollyConfig.resolve() diff --git a/clients/aws-sdk-polly/src/aws_sdk_polly/client.py b/clients/aws-sdk-polly/src/aws_sdk_polly/client.py index 0bd54884b..00624fc0e 100644 --- a/clients/aws-sdk-polly/src/aws_sdk_polly/client.py +++ b/clients/aws-sdk-polly/src/aws_sdk_polly/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,29 +20,17 @@ if TYPE_CHECKING: from .models import ( - DeleteLexiconInput, DeleteLexiconOutput, - DescribeVoicesInput, DescribeVoicesOutput, - GetLexiconInput, GetLexiconOutput, - GetSpeechSynthesisTaskInput, GetSpeechSynthesisTaskOutput, - ListLexiconsInput, ListLexiconsOutput, - ListSpeechSynthesisTasksInput, ListSpeechSynthesisTasksOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - PutLexiconInput, PutLexiconOutput, - StartSpeechSynthesisTaskInput, StartSpeechSynthesisTaskOutput, - SynthesizeSpeechInput, SynthesizeSpeechOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, ) @@ -67,10 +55,24 @@ class PollyClient(Client[PollyConfig]): in the *IAM User Guide*. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def delete_lexicon( - self, input: DeleteLexiconInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteLexiconInput | _models.DeleteLexiconInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteLexiconOutput: ... + + @_overload + def delete_lexicon( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteLexiconInputDict], ) -> DeleteLexiconOutput: """ Deletes the specified pronunciation lexicon stored in an Amazon Web @@ -82,8 +84,6 @@ def delete_lexicon( Lexicons](https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). Args: - input: - An instance of `DeleteLexiconInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -93,12 +93,33 @@ def delete_lexicon( Returns: An instance of `DeleteLexiconOutput`. """ - return self._invoke(input, _models.DELETE_LEXICON, [], plugins) + def delete_lexicon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteLexiconOutput: + return self._invoke( + self._select_input(_models.DELETE_LEXICON, args, kwargs), + _models.DELETE_LEXICON, + [], + plugins, + ) + + @_overload + def describe_voices( + self, + request: _models.DescribeVoicesInput | _models.DescribeVoicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeVoicesOutput: ... + + @_overload def describe_voices( self, - input: DescribeVoicesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeVoicesInputDict], ) -> DescribeVoicesOutput: """ Returns the list of voices that are available for use when requesting @@ -123,8 +144,6 @@ def describe_voices( `polly:DescribeVoices` action. Args: - input: - An instance of `DescribeVoicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -134,10 +153,33 @@ def describe_voices( Returns: An instance of `DescribeVoicesOutput`. """ - return self._invoke(input, _models.DESCRIBE_VOICES, [], plugins) + def describe_voices( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeVoicesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_VOICES, args, kwargs), + _models.DESCRIBE_VOICES, + [], + plugins, + ) + + @_overload + def get_lexicon( + self, + request: _models.GetLexiconInput | _models.GetLexiconInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetLexiconOutput: ... + + @_overload def get_lexicon( - self, input: GetLexiconInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetLexiconInputDict], ) -> GetLexiconOutput: """ Returns the content of the specified pronunciation lexicon stored in an @@ -145,8 +187,6 @@ def get_lexicon( Lexicons](https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). Args: - input: - An instance of `GetLexiconInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -156,10 +196,34 @@ def get_lexicon( Returns: An instance of `GetLexiconOutput`. """ - return self._invoke(input, _models.GET_LEXICON, [], plugins) + def get_lexicon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetLexiconOutput: + return self._invoke( + self._select_input(_models.GET_LEXICON, args, kwargs), + _models.GET_LEXICON, + [], + plugins, + ) + + @_overload + def get_speech_synthesis_task( + self, + request: _models.GetSpeechSynthesisTaskInput + | _models.GetSpeechSynthesisTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSpeechSynthesisTaskOutput: ... + + @_overload def get_speech_synthesis_task( - self, input: GetSpeechSynthesisTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSpeechSynthesisTaskInputDict], ) -> GetSpeechSynthesisTaskOutput: """ Retrieves a specific SpeechSynthesisTask object based on its TaskID. @@ -168,8 +232,6 @@ def get_speech_synthesis_task( the output of the task. Args: - input: - An instance of `GetSpeechSynthesisTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -179,12 +241,33 @@ def get_speech_synthesis_task( Returns: An instance of `GetSpeechSynthesisTaskOutput`. """ - return self._invoke(input, _models.GET_SPEECH_SYNTHESIS_TASK, [], plugins) + def get_speech_synthesis_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSpeechSynthesisTaskOutput: + return self._invoke( + self._select_input(_models.GET_SPEECH_SYNTHESIS_TASK, args, kwargs), + _models.GET_SPEECH_SYNTHESIS_TASK, + [], + plugins, + ) + + @_overload + def list_lexicons( + self, + request: _models.ListLexiconsInput | _models.ListLexiconsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListLexiconsOutput: ... + + @_overload def list_lexicons( self, - input: ListLexiconsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListLexiconsInputDict], ) -> ListLexiconsOutput: """ Returns a list of pronunciation lexicons stored in an Amazon Web @@ -192,8 +275,6 @@ def list_lexicons( Lexicons](https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). Args: - input: - An instance of `ListLexiconsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -203,12 +284,34 @@ def list_lexicons( Returns: An instance of `ListLexiconsOutput`. """ - return self._invoke(input, _models.LIST_LEXICONS, [], plugins) + def list_lexicons( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListLexiconsOutput: + return self._invoke( + self._select_input(_models.LIST_LEXICONS, args, kwargs), + _models.LIST_LEXICONS, + [], + plugins, + ) + + @_overload + def list_speech_synthesis_tasks( + self, + request: _models.ListSpeechSynthesisTasksInput + | _models.ListSpeechSynthesisTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSpeechSynthesisTasksOutput: ... + + @_overload def list_speech_synthesis_tasks( self, - input: ListSpeechSynthesisTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSpeechSynthesisTasksInputDict], ) -> ListSpeechSynthesisTasksOutput: """ Returns a list of SpeechSynthesisTask objects ordered by their creation @@ -216,8 +319,6 @@ def list_speech_synthesis_tasks( allowing users to list only tasks that are completed. Args: - input: - An instance of `ListSpeechSynthesisTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -227,17 +328,39 @@ def list_speech_synthesis_tasks( Returns: An instance of `ListSpeechSynthesisTasksOutput`. """ - return self._invoke(input, _models.LIST_SPEECH_SYNTHESIS_TASKS, [], plugins) + def list_speech_synthesis_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSpeechSynthesisTasksOutput: + return self._invoke( + self._select_input(_models.LIST_SPEECH_SYNTHESIS_TASKS, args, kwargs), + _models.LIST_SPEECH_SYNTHESIS_TASKS, + [], + plugins, + ) + + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists the tags for an Amazon Polly resource. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -247,10 +370,33 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def put_lexicon( + self, + request: _models.PutLexiconInput | _models.PutLexiconInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutLexiconOutput: ... + + @_overload def put_lexicon( - self, input: PutLexiconInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutLexiconInputDict], ) -> PutLexiconOutput: """ Stores a pronunciation lexicon in an Amazon Web Services Region. If a @@ -269,8 +415,6 @@ def put_lexicon( Lexicons](https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html). Args: - input: - An instance of `PutLexiconInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -280,10 +424,34 @@ def put_lexicon( Returns: An instance of `PutLexiconOutput`. """ - return self._invoke(input, _models.PUT_LEXICON, [], plugins) + def put_lexicon( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutLexiconOutput: + return self._invoke( + self._select_input(_models.PUT_LEXICON, args, kwargs), + _models.PUT_LEXICON, + [], + plugins, + ) + + @_overload def start_speech_synthesis_task( - self, input: StartSpeechSynthesisTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.StartSpeechSynthesisTaskInput + | _models.StartSpeechSynthesisTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartSpeechSynthesisTaskOutput: ... + + @_overload + def start_speech_synthesis_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartSpeechSynthesisTaskInputDict], ) -> StartSpeechSynthesisTaskOutput: """ Allows the creation of an asynchronous synthesis task, by starting a new @@ -297,8 +465,6 @@ def start_speech_synthesis_task( available for 72 hours after starting the asynchronous synthesis task. Args: - input: - An instance of `StartSpeechSynthesisTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -308,10 +474,33 @@ def start_speech_synthesis_task( Returns: An instance of `StartSpeechSynthesisTaskOutput`. """ - return self._invoke(input, _models.START_SPEECH_SYNTHESIS_TASK, [], plugins) + def start_speech_synthesis_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartSpeechSynthesisTaskOutput: + return self._invoke( + self._select_input(_models.START_SPEECH_SYNTHESIS_TASK, args, kwargs), + _models.START_SPEECH_SYNTHESIS_TASK, + [], + plugins, + ) + + @_overload def synthesize_speech( - self, input: SynthesizeSpeechInput, plugins: list[Plugin] | None = None + self, + request: _models.SynthesizeSpeechInput | _models.SynthesizeSpeechInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SynthesizeSpeechOutput: ... + + @_overload + def synthesize_speech( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SynthesizeSpeechInputDict], ) -> SynthesizeSpeechOutput: """ Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML @@ -322,8 +511,6 @@ def synthesize_speech( Works](https://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html). Args: - input: - An instance of `SynthesizeSpeechInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -333,10 +520,33 @@ def synthesize_speech( Returns: An instance of `SynthesizeSpeechOutput`. """ - return self._invoke(input, _models.SYNTHESIZE_SPEECH, [], plugins) + def synthesize_speech( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SynthesizeSpeechOutput: + return self._invoke( + self._select_input(_models.SYNTHESIZE_SPEECH, args, kwargs), + _models.SYNTHESIZE_SPEECH, + [], + plugins, + ) + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds specified tags to a resource with the specified ARN. Existing tags @@ -345,8 +555,6 @@ def tag_resource( resource, the value in the request replaces the existing value. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -356,17 +564,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Deletes specified tags from a resource. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -376,7 +605,16 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) def _new_config(self) -> PollyConfig: return PollyConfig.resolve() diff --git a/clients/aws-sdk-polly/src/aws_sdk_polly/models.pyi b/clients/aws-sdk-polly/src/aws_sdk_polly/models.pyi index 112a42580..212426b37 100644 --- a/clients/aws-sdk-polly/src/aws_sdk_polly/models.pyi +++ b/clients/aws-sdk-polly/src/aws_sdk_polly/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.aio.interfaces import StreamingBlob from smithy_core.deserializers import ShapeDeserializer @@ -54,6 +55,15 @@ class DeleteLexiconInput(_SerdeShape): region. """ +class DeleteLexiconInputDict(TypedDict, total=False): + """Dictionary form of `DeleteLexiconInput`.""" + + name: Required[str] + """ + The name of the lexicon to delete. Must be an existing lexicon in the + region. + """ + @dataclass(kw_only=True) class DeleteLexiconOutput(_SerdeShape): """Dataclass for DeleteLexiconOutput structure.""" @@ -96,6 +106,35 @@ class DescribeVoicesInput(_SerdeShape): operation. If present, this indicates where to continue the listing. """ +class DescribeVoicesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeVoicesInput`.""" + + engine: str | None + """ + Specifies the engine (`standard`, `neural`, `long-form` or `generative`) + used by Amazon Polly when processing input text for speech synthesis. + """ + language_code: str | None + """ + The language identification tag (ISO 639 code for the language name-ISO + 3166 country code) for filtering the list of voices returned. If you + don't specify this optional parameter, all available voices are + returned. + """ + include_additional_language_codes: bool | None + """ + Boolean value indicating whether to return any bilingual voices that use + the specified language as an additional language. For instance, if you + request all languages that use US English (es-US), and there is an + Italian voice that speaks both Italian (it-IT) and US English, that + voice will be included if you specify `yes` but not if you specify `no`. + """ + next_token: str | None + """ + An opaque pagination token returned from the previous `DescribeVoices` + operation. If present, this indicates where to continue the listing. + """ + @dataclass(kw_only=True) class DescribeVoicesOutput(_SerdeShape): """Dataclass for DescribeVoicesOutput structure.""" @@ -161,6 +200,12 @@ class GetLexiconInput(_SerdeShape): name: str | None = ... """Name of the lexicon.""" +class GetLexiconInputDict(TypedDict, total=False): + """Dictionary form of `GetLexiconInput`.""" + + name: Required[str] + """Name of the lexicon.""" + @dataclass(kw_only=True) class GetLexiconOutput(_SerdeShape): """Dataclass for GetLexiconOutput structure.""" @@ -188,6 +233,12 @@ class GetSpeechSynthesisTaskInput(_SerdeShape): task_id: str | None = ... """The Amazon Polly generated identifier for a speech synthesis task.""" +class GetSpeechSynthesisTaskInputDict(TypedDict, total=False): + """Dictionary form of `GetSpeechSynthesisTaskInput`.""" + + task_id: Required[str] + """The Amazon Polly generated identifier for a speech synthesis task.""" + @dataclass(kw_only=True) class GetSpeechSynthesisTaskOutput(_SerdeShape): """Dataclass for GetSpeechSynthesisTaskOutput structure.""" @@ -497,6 +548,15 @@ class ListLexiconsInput(_SerdeShape): operation. If present, indicates where to continue the list of lexicons. """ +class ListLexiconsInputDict(TypedDict, total=False): + """Dictionary form of `ListLexiconsInput`.""" + + next_token: str | None + """ + An opaque pagination token returned from previous `ListLexicons` + operation. If present, indicates where to continue the list of lexicons. + """ + @dataclass(kw_only=True) class ListLexiconsOutput(_SerdeShape): """Dataclass for ListLexiconsOutput structure.""" @@ -530,6 +590,19 @@ class ListSpeechSynthesisTasksInput(_SerdeShape): status: str | None = ... """Status of the speech synthesis tasks returned in a List operation""" +class ListSpeechSynthesisTasksInputDict(TypedDict, total=False): + """Dictionary form of `ListSpeechSynthesisTasksInput`.""" + + max_results: int | None + """Maximum number of speech synthesis tasks returned in a List operation.""" + next_token: str | None + """ + The pagination token to use in the next request to continue the listing + of speech synthesis tasks. + """ + status: str | None + """Status of the speech synthesis tasks returned in a List operation""" + @dataclass(kw_only=True) class ListSpeechSynthesisTasksOutput(_SerdeShape): """Dataclass for ListSpeechSynthesisTasksOutput structure.""" @@ -564,6 +637,16 @@ class ListTagsForResourceInput(_SerdeShape): lexicon. """ +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) that identifies the resource for which to + list the tags. Currently, the only supported resource is an Amazon Polly + lexicon. + """ + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -648,6 +731,27 @@ class PutLexiconInput(_SerdeShape): with PutLexicon. """ +class PutLexiconInputDict(TypedDict, total=False): + """Dictionary form of `PutLexiconInput`.""" + + name: Required[str] + """ + Name of the lexicon. The name must follow the regular expression format + [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric + string up to 20 characters long. + """ + content: Required[str] + """Content of the PLS lexicon as string data.""" + tags: Mapping[str, str] | None + """ + The metadata that you apply to the lexicon to help you categorize and + organize it. Each tag consists of a key and an optional value, both of + which you define. Tag keys can have a maximum character length of 128 + characters, and tag values can have a maximum length of 256 characters. + You can't replace the tags of an existing lexicon by overwriting it + with PutLexicon. + """ + @dataclass(kw_only=True) class PutLexiconOutput(_SerdeShape): """Dataclass for PutLexiconOutput structure.""" @@ -877,6 +981,44 @@ class StartSpeechSynthesisStreamInput(_SerdeShape): operation. """ +class StartSpeechSynthesisStreamInputDict(TypedDict, total=False): + """Dictionary form of `StartSpeechSynthesisStreamInput`.""" + + engine: Required[str] + """ + Specifies the engine for Amazon Polly to use when processing input text + for speech synthesis. Currently, only the `generative` engine is + supported. If you specify a voice that the selected engine doesn't + support, Amazon Polly returns an error. + """ + language_code: str | None + """ + An optional parameter that sets the language code for the speech + synthesis request. Specify this parameter only when using a bilingual + voice. If a bilingual voice is used and no language code is specified, + Amazon Polly uses the default language of the bilingual voice. + """ + lexicon_names: Sequence[str] | None + """ + The names of one or more pronunciation lexicons for the service to apply + during synthesis. Amazon Polly applies lexicons only when the lexicon + language matches the voice language. + """ + output_format: Required[str] + """ + The audio format for the synthesized speech. Currently, Amazon Polly + does not support JSON speech marks. + """ + sample_rate: str | None + """The audio frequency, specified in Hz.""" + voice_id: Required[str] + """ + The voice to use in synthesis. To get a list of available voice IDs, use + the + [DescribeVoices](https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html) + operation. + """ + @dataclass(kw_only=True) class StartSpeechSynthesisStreamOutput(_SerdeShape): """Dataclass for StartSpeechSynthesisStreamOutput structure.""" @@ -966,6 +1108,82 @@ class StartSpeechSynthesisTaskInput(_SerdeShape): voice_id: str | None = ... """Voice ID to use for the synthesis.""" +class StartSpeechSynthesisTaskInputDict(TypedDict, total=False): + """Dictionary form of `StartSpeechSynthesisTaskInput`.""" + + engine: str | None + """ + Specifies the engine (`standard`, `neural`, `long-form` or `generative`) + for Amazon Polly to use when processing input text for speech synthesis. + Using a voice that is not supported for the engine selected will result + in an error. + """ + language_code: str | None + """ + Optional language code for the Speech Synthesis request. This is only + necessary if using a bilingual voice, such as Aditi, which can be used + for either Indian English (en-IN) or Hindi (hi-IN). + + If a bilingual voice is used and no language code is specified, Amazon + Polly uses the default language of the bilingual voice. The default + language for any voice is the one returned by the + [DescribeVoices](https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html) + operation for the `LanguageCode` parameter. For example, if no language + code is specified, Aditi will use Indian English rather than Hindi. + """ + lexicon_names: Sequence[str] | None + """ + List of one or more pronunciation lexicon names you want the service to + apply during synthesis. Lexicons are applied only if the language of the + lexicon is the same as the language of the voice. + """ + output_format: Required[str] + """ + The format in which the returned output will be encoded. For audio + stream, this will be mp3, ogg_vorbis, ogg_opus, mu-law, a-law, or pcm. + For speech marks, this will be json. + """ + output_s3_bucket_name: Required[str] + """Amazon S3 bucket name to which the output file will be saved.""" + output_s3_key_prefix: str | None + """The Amazon S3 key prefix for the output speech file.""" + sample_rate: str | None + """ + The audio frequency specified in Hz. + + The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", + \"22050\", and \"24000\". The default value for standard voices is + \"22050\". The default value for neural voices is \"24000\". The default + value for long-form voices is \"24000\". The default value for + generative voices is \"24000\". + + Valid values for pcm are \"8000\" and \"16000\" The default value is + \"16000\". + + Valid value for ogg_opus is \"48000\". + + Valid value for mu-law and a-law is \"8000\". + """ + sns_topic_arn: str | None + """ + ARN for the SNS topic optionally used for providing status notification + for a speech synthesis task. + """ + speech_mark_types: Sequence[str] | None + """The type of speech marks returned for the input text.""" + text: Required[str] + """ + The input text to synthesize. If you specify ssml as the TextType, + follow the SSML format for the input text. + """ + text_type: str | None + """ + Specifies whether the input text is plain text or SSML. The default + value is plain text. + """ + voice_id: Required[str] + """Voice ID to use for the synthesis.""" + @dataclass(kw_only=True) class StartSpeechSynthesisTaskOutput(_SerdeShape): """Dataclass for StartSpeechSynthesisTaskOutput structure.""" @@ -1174,6 +1392,88 @@ class SynthesizeSpeechInput(_SerdeShape): operation. """ +class SynthesizeSpeechInputDict(TypedDict, total=False): + """Dictionary form of `SynthesizeSpeechInput`.""" + + engine: str | None + """ + Specifies the engine (`standard`, `neural`, `long-form`, or + `generative`) for Amazon Polly to use when processing input text for + speech synthesis. Provide an engine that is supported by the voice you + select. If you don't provide an engine, the standard engine is selected + by default. If a chosen voice isn't supported by the standard engine, + this will result in an error. For information on Amazon Polly voices and + which voices are available for each engine, see [Available + Voices](https://docs.aws.amazon.com/polly/latest/dg/voicelist.html). + """ + language_code: str | None + """ + Optional language code for the Synthesize Speech request. This is only + necessary if using a bilingual voice, such as Aditi, which can be used + for either Indian English (en-IN) or Hindi (hi-IN). + + If a bilingual voice is used and no language code is specified, Amazon + Polly uses the default language of the bilingual voice. The default + language for any voice is the one returned by the + [DescribeVoices](https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html) + operation for the `LanguageCode` parameter. For example, if no language + code is specified, Aditi will use Indian English rather than Hindi. + """ + lexicon_names: Sequence[str] | None + """ + List of one or more pronunciation lexicon names you want the service to + apply during synthesis. Lexicons are applied only if the language of the + lexicon is the same as the language of the voice. For information about + storing lexicons, see + [PutLexicon](https://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html). + """ + output_format: Required[str] + """ + The format in which the returned output will be encoded. For audio + stream, this will be mp3, ogg_vorbis, ogg_opus, mu-law, a-law or pcm. + For speech marks, this will be json. + + When pcm is used, the content returned is audio/pcm in a signed 16-bit, + 1 channel (mono), little-endian format. + """ + sample_rate: str | None + """ + The audio frequency specified in Hz. + + The valid values for mp3 and ogg_vorbis are \"8000\", \"16000\", + \"22050\", \"24000\", \"44100\" and \"48000\". The default value for + standard voices is \"22050\". The default value for neural voices is + \"24000\". The default value for long-form voices is \"24000\". The + default value for generative voices is \"24000\". + + Valid values for pcm are \"8000\" and \"16000\" The default value is + \"16000\". + + Valid value for ogg_opus is \"48000\". + + Valid value for mu-law and a-law is \"8000\". + """ + speech_mark_types: Sequence[str] | None + """The type of speech marks returned for the input text.""" + text: Required[str] + """ + Input text to synthesize. If you specify `ssml` as the `TextType`, + follow the SSML format for the input text. + """ + text_type: str | None + """ + Specifies whether the input text is plain text or SSML. The default + value is plain text. For more information, see [Using + SSML](https://docs.aws.amazon.com/polly/latest/dg/ssml.html). + """ + voice_id: Required[str] + """ + Voice ID to use for the synthesis. You can get a list of available voice + IDs by calling the + [DescribeVoices](https://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html) + operation. + """ + @dataclass(kw_only=True) class SynthesizeSpeechOutput(_SerdeShape): """Dataclass for SynthesizeSpeechOutput structure.""" @@ -1233,6 +1533,21 @@ class TagResourceInput(_SerdeShape): maximum length of 256 characters. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource to which to add tags. + Currently, the only supported resource is an Amazon Polly lexicon. + """ + tags: Required[Mapping[str, str]] + """ + The tags to add to the resource, as key-value pairs. Tag keys can have a + maximum character length of 128 characters, and tag values can have a + maximum length of 256 characters. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -1378,6 +1693,17 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The keys of the tags to be removed.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the resource from which to remove + tags. Currently, the only supported resource is an Amazon Polly lexicon. + """ + tag_keys: Required[Sequence[str]] + """The keys of the tags to be removed.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" diff --git a/clients/aws-sdk-polly/src/aws_sdk_polly/py.typed b/clients/aws-sdk-polly/src/aws_sdk_polly/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-polly/tests/_typecheck.py b/clients/aws-sdk-polly/tests/_typecheck.py index f797a2aa0..d401f8af3 100644 --- a/clients/aws-sdk-polly/tests/_typecheck.py +++ b/clients/aws-sdk-polly/tests/_typecheck.py @@ -2,50 +2,66 @@ from typing import Any +from aws_sdk_polly.aio.client import AsyncPollyClient +from aws_sdk_polly.client import PollyClient from aws_sdk_polly.models import ( AudioEvent, CloseStreamEvent, DeleteLexiconInput, + DeleteLexiconInputDict, DeleteLexiconOutput, DescribeVoicesInput, + DescribeVoicesInputDict, DescribeVoicesOutput, FlushStreamConfiguration, GetLexiconInput, + GetLexiconInputDict, GetLexiconOutput, GetSpeechSynthesisTaskInput, + GetSpeechSynthesisTaskInputDict, GetSpeechSynthesisTaskOutput, Lexicon, LexiconAttributes, LexiconDescription, ListLexiconsInput, + ListLexiconsInputDict, ListLexiconsOutput, ListSpeechSynthesisTasksInput, + ListSpeechSynthesisTasksInputDict, ListSpeechSynthesisTasksOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, PutLexiconInput, + PutLexiconInputDict, PutLexiconOutput, StartSpeechSynthesisStreamInput, + StartSpeechSynthesisStreamInputDict, StartSpeechSynthesisStreamOutput, StartSpeechSynthesisTaskInput, + StartSpeechSynthesisTaskInputDict, StartSpeechSynthesisTaskOutput, StreamClosedEvent, SynthesisTask, SynthesizeSpeechInput, + SynthesizeSpeechInputDict, SynthesizeSpeechOutput, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TextEvent, ThrottlingReason, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, ValidationExceptionField, Voice, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -87,3 +103,155 @@ UntagResourceOutput() ValidationExceptionField(name=_, message=_) Voice() +_params_0: DeleteLexiconInputDict = {"name": _} +_params_1: DescribeVoicesInputDict = {} +_params_2: GetLexiconInputDict = {"name": _} +_params_3: GetSpeechSynthesisTaskInputDict = {"task_id": _} +_params_4: ListLexiconsInputDict = {} +_params_5: ListSpeechSynthesisTasksInputDict = {} +_params_6: ListTagsForResourceInputDict = {"resource_arn": _} +_params_7: PutLexiconInputDict = {"name": _, "content": _} +_params_8: StartSpeechSynthesisStreamInputDict = { + "engine": _, + "output_format": _, + "voice_id": _, +} +_params_9: StartSpeechSynthesisTaskInputDict = { + "output_format": _, + "output_s3_bucket_name": _, + "text": _, + "voice_id": _, +} +_params_10: SynthesizeSpeechInputDict = {"output_format": _, "text": _, "voice_id": _} +_params_11: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_12: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncPollyClient) -> None: + pass + await client.delete_lexicon(name=_) + await client.delete_lexicon(**_request(DeleteLexiconInputDict)) + await client.delete_lexicon(_request(DeleteLexiconInput)) + await client.delete_lexicon(_request(DeleteLexiconInputDict)) + await client.describe_voices() + await client.describe_voices(**_request(DescribeVoicesInputDict)) + await client.describe_voices(_request(DescribeVoicesInput)) + await client.describe_voices(_request(DescribeVoicesInputDict)) + await client.get_lexicon(name=_) + await client.get_lexicon(**_request(GetLexiconInputDict)) + await client.get_lexicon(_request(GetLexiconInput)) + await client.get_lexicon(_request(GetLexiconInputDict)) + await client.get_speech_synthesis_task(task_id=_) + await client.get_speech_synthesis_task(**_request(GetSpeechSynthesisTaskInputDict)) + await client.get_speech_synthesis_task(_request(GetSpeechSynthesisTaskInput)) + await client.get_speech_synthesis_task(_request(GetSpeechSynthesisTaskInputDict)) + await client.list_lexicons() + await client.list_lexicons(**_request(ListLexiconsInputDict)) + await client.list_lexicons(_request(ListLexiconsInput)) + await client.list_lexicons(_request(ListLexiconsInputDict)) + await client.list_speech_synthesis_tasks() + await client.list_speech_synthesis_tasks( + **_request(ListSpeechSynthesisTasksInputDict) + ) + await client.list_speech_synthesis_tasks(_request(ListSpeechSynthesisTasksInput)) + await client.list_speech_synthesis_tasks( + _request(ListSpeechSynthesisTasksInputDict) + ) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.put_lexicon(name=_, content=_) + await client.put_lexicon(**_request(PutLexiconInputDict)) + await client.put_lexicon(_request(PutLexiconInput)) + await client.put_lexicon(_request(PutLexiconInputDict)) + await client.start_speech_synthesis_stream(engine=_, output_format=_, voice_id=_) + await client.start_speech_synthesis_stream( + **_request(StartSpeechSynthesisStreamInputDict) + ) + await client.start_speech_synthesis_stream( + _request(StartSpeechSynthesisStreamInput) + ) + await client.start_speech_synthesis_stream( + _request(StartSpeechSynthesisStreamInputDict) + ) + await client.start_speech_synthesis_task( + output_format=_, output_s3_bucket_name=_, text=_, voice_id=_ + ) + await client.start_speech_synthesis_task( + **_request(StartSpeechSynthesisTaskInputDict) + ) + await client.start_speech_synthesis_task(_request(StartSpeechSynthesisTaskInput)) + await client.start_speech_synthesis_task( + _request(StartSpeechSynthesisTaskInputDict) + ) + await client.synthesize_speech(output_format=_, text=_, voice_id=_) + await client.synthesize_speech(**_request(SynthesizeSpeechInputDict)) + await client.synthesize_speech(_request(SynthesizeSpeechInput)) + await client.synthesize_speech(_request(SynthesizeSpeechInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + + +def check_sync_calls(client: PollyClient) -> None: + pass + client.delete_lexicon(name=_) + client.delete_lexicon(**_request(DeleteLexiconInputDict)) + client.delete_lexicon(_request(DeleteLexiconInput)) + client.delete_lexicon(_request(DeleteLexiconInputDict)) + client.describe_voices() + client.describe_voices(**_request(DescribeVoicesInputDict)) + client.describe_voices(_request(DescribeVoicesInput)) + client.describe_voices(_request(DescribeVoicesInputDict)) + client.get_lexicon(name=_) + client.get_lexicon(**_request(GetLexiconInputDict)) + client.get_lexicon(_request(GetLexiconInput)) + client.get_lexicon(_request(GetLexiconInputDict)) + client.get_speech_synthesis_task(task_id=_) + client.get_speech_synthesis_task(**_request(GetSpeechSynthesisTaskInputDict)) + client.get_speech_synthesis_task(_request(GetSpeechSynthesisTaskInput)) + client.get_speech_synthesis_task(_request(GetSpeechSynthesisTaskInputDict)) + client.list_lexicons() + client.list_lexicons(**_request(ListLexiconsInputDict)) + client.list_lexicons(_request(ListLexiconsInput)) + client.list_lexicons(_request(ListLexiconsInputDict)) + client.list_speech_synthesis_tasks() + client.list_speech_synthesis_tasks(**_request(ListSpeechSynthesisTasksInputDict)) + client.list_speech_synthesis_tasks(_request(ListSpeechSynthesisTasksInput)) + client.list_speech_synthesis_tasks(_request(ListSpeechSynthesisTasksInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.put_lexicon(name=_, content=_) + client.put_lexicon(**_request(PutLexiconInputDict)) + client.put_lexicon(_request(PutLexiconInput)) + client.put_lexicon(_request(PutLexiconInputDict)) + client.start_speech_synthesis_task( + output_format=_, output_s3_bucket_name=_, text=_, voice_id=_ + ) + client.start_speech_synthesis_task(**_request(StartSpeechSynthesisTaskInputDict)) + client.start_speech_synthesis_task(_request(StartSpeechSynthesisTaskInput)) + client.start_speech_synthesis_task(_request(StartSpeechSynthesisTaskInputDict)) + client.synthesize_speech(output_format=_, text=_, voice_id=_) + client.synthesize_speech(**_request(SynthesizeSpeechInputDict)) + client.synthesize_speech(_request(SynthesizeSpeechInput)) + client.synthesize_speech(_request(SynthesizeSpeechInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) diff --git a/clients/aws-sdk-polly/tests/integration/test_bidirectional_streaming.py b/clients/aws-sdk-polly/tests/integration/test_bidirectional_streaming.py index 53cbdbd05..8c3228fac 100644 --- a/clients/aws-sdk-polly/tests/integration/test_bidirectional_streaming.py +++ b/clients/aws-sdk-polly/tests/integration/test_bidirectional_streaming.py @@ -17,7 +17,6 @@ StartSpeechSynthesisStreamEventStreamStreamClosedEvent, StartSpeechSynthesisStreamEventStreamThrottlingException, StartSpeechSynthesisStreamEventStreamValidationException, - StartSpeechSynthesisStreamInput, StartSpeechSynthesisStreamOutput, TextEvent, ) @@ -95,12 +94,10 @@ async def test_start_speech_synthesis_stream() -> None: REGION, transport=AWSCRTHTTPClient() ) as client: stream = await client.start_speech_synthesis_stream( - input=StartSpeechSynthesisStreamInput( - engine=ENGINE, - output_format=OUTPUT_FORMAT, - sample_rate=SAMPLE_RATE, - voice_id=VOICE_ID, - ) + engine=ENGINE, + output_format=OUTPUT_FORMAT, + sample_rate=SAMPLE_RATE, + voice_id=VOICE_ID, ) results = await asyncio.gather(_send_text(stream), _receive_audio(stream)) diff --git a/clients/aws-sdk-polly/tests/integration/test_non_streaming.py b/clients/aws-sdk-polly/tests/integration/test_non_streaming.py index 5fac9e89b..9ac34afc5 100644 --- a/clients/aws-sdk-polly/tests/integration/test_non_streaming.py +++ b/clients/aws-sdk-polly/tests/integration/test_non_streaming.py @@ -3,7 +3,7 @@ """Test non-streaming output type handling.""" -from aws_sdk_polly.models import DescribeVoicesInput, DescribeVoicesOutput +from aws_sdk_polly.models import DescribeVoicesOutput from . import ENGINE, REGION, VOICE_ID, create_polly_client @@ -11,9 +11,7 @@ async def test_describe_voices() -> None: """Test non-streaming DescribeVoices operation.""" async with await create_polly_client(REGION) as client: - response = await client.describe_voices( - input=DescribeVoicesInput(engine=ENGINE) - ) + response = await client.describe_voices(engine=ENGINE) assert isinstance(response, DescribeVoicesOutput) assert response.voices is not None diff --git a/clients/aws-sdk-polly/tests/integration/test_output_streaming.py b/clients/aws-sdk-polly/tests/integration/test_output_streaming.py index 04539b91a..3c1586edb 100644 --- a/clients/aws-sdk-polly/tests/integration/test_output_streaming.py +++ b/clients/aws-sdk-polly/tests/integration/test_output_streaming.py @@ -3,7 +3,7 @@ """Test output streaming blob handling.""" -from aws_sdk_polly.models import SynthesizeSpeechInput, SynthesizeSpeechOutput +from aws_sdk_polly.models import SynthesizeSpeechOutput from smithy_core.aio.utils import read_streaming_blob_async from . import ( @@ -21,13 +21,11 @@ async def test_synthesize_speech() -> None: """Test output-streaming SynthesizeSpeech operation.""" async with await create_polly_client(REGION) as client: response = await client.synthesize_speech( - input=SynthesizeSpeechInput( - engine=ENGINE, - output_format=OUTPUT_FORMAT, - sample_rate=SAMPLE_RATE, - text=TEST_TEXT, - voice_id=VOICE_ID, - ) + engine=ENGINE, + output_format=OUTPUT_FORMAT, + sample_rate=SAMPLE_RATE, + text=TEST_TEXT, + voice_id=VOICE_ID, ) assert isinstance(response, SynthesizeSpeechOutput) diff --git a/clients/aws-sdk-qbusiness/pyproject.toml b/clients/aws-sdk-qbusiness/pyproject.toml index a9cb653ca..b03206cf4 100644 --- a/clients/aws-sdk-qbusiness/pyproject.toml +++ b/clients/aws-sdk-qbusiness/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/models_0.pyi b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/models_0.pyi index 91d730e63..260ffa9ec 100644 --- a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/models_0.pyi +++ b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document as _Document @@ -12,37 +13,59 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( MediaExtractionConfiguration, + MediaExtractionConfigurationDict, MemberGroup, + MemberGroupDict, MemberUser, + MemberUserDict, Message, MetadataEvent, NumberAttributeBoostingConfiguration, + NumberAttributeBoostingConfigurationDict, OpenIDConnectProviderConfiguration, + OpenIDConnectProviderConfigurationDict, PermissionCondition, + PermissionConditionDict, PersonalizationConfiguration, + PersonalizationConfigurationDict, Plugin, PluginAuthConfiguration, + PluginAuthConfigurationDict, PluginConfiguration, + PluginConfigurationDict, Principal, + PrincipalDict, QAppsConfiguration, + QAppsConfigurationDict, QuickSightConfiguration, + QuickSightConfigurationDict, ResponseConfiguration, + ResponseConfigurationDict, RetrieverConfiguration, + RetrieverConfigurationDict, RetrieverContentSource, + RetrieverContentSourceDict, S3, + S3Dict, SamlProviderConfiguration, + SamlProviderConfigurationDict, ServiceError, SourceAttribution, StringAttributeBoostingConfiguration, + StringAttributeBoostingConfigurationDict, StringListAttributeBoostingConfiguration, + StringListAttributeBoostingConfigurationDict, SubscriptionDetails, SubscriptionPrincipal, + SubscriptionPrincipalDict, Tag, + TagDict, TextDocumentStatistics, TextInputEvent, TextOutputEvent, TopicConfiguration, UserAlias, + UserAliasDict, WebExperienceAuthConfiguration, _SerdeShape, ) @@ -56,6 +79,14 @@ class AccessConfiguration(_SerdeShape): member_relation: str | None = ... """Describes the member relation within the `AccessControlList` object.""" +class AccessConfigurationDict(TypedDict, total=False): + """Dictionary form of `AccessConfiguration`.""" + + access_controls: Required[Sequence[AccessControl | AccessControlDict]] + """A list of `AccessControlList` objects.""" + member_relation: str | None + """Describes the member relation within the `AccessControlList` object.""" + @dataclass(kw_only=True) class AccessControl(_SerdeShape): """ @@ -73,6 +104,18 @@ class AccessControl(_SerdeShape): member_relation: str | None = ... """Describes the member relation within a principal list.""" +class AccessControlDict(TypedDict, total=False): + """Dictionary form of `AccessControl`.""" + + principals: Required[Sequence[Principal | PrincipalDict]] + """ + Contains a list of principals, where a principal can be either a `USER` + or a `GROUP`. Each principal can be have the following type of document + access: `ALLOW` or `DENY`. + """ + member_relation: str | None + """Describes the member relation within a principal list.""" + @dataclass(kw_only=True) class AccessDeniedException(ServiceError, _SerdeShape): """ @@ -97,6 +140,16 @@ class ActionConfiguration(_SerdeShape): filter_configuration: ActionFilterConfiguration | None = ... """The filter configuration for the action, if any.""" +class ActionConfigurationDict(TypedDict, total=False): + """Dictionary form of `ActionConfiguration`.""" + + action: Required[str] + """The Amazon Q Business action that is allowed.""" + filter_configuration: ( + ActionFilterConfiguration | ActionFilterConfigurationDict | None + ) + """The filter configuration for the action, if any.""" + @dataclass(kw_only=True) class ActionExecution(_SerdeShape): """ @@ -117,6 +170,24 @@ class ActionExecution(_SerdeShape): within an action execution event payload. """ +class ActionExecutionDict(TypedDict, total=False): + """Dictionary form of `ActionExecution`.""" + + plugin_id: Required[str] + """The identifier of the plugin the action is attached to.""" + payload: Required[ + Mapping[str, ActionExecutionPayloadField | ActionExecutionPayloadFieldDict] + ] + """ + A mapping of field names to the field values in input that an end user + provides to Amazon Q Business requests to perform their plugin action. + """ + payload_field_name_separator: Required[str] + """ + A string used to retain information about the hierarchical contexts + within an action execution event payload. + """ + @dataclass(kw_only=True) class ActionExecutionEvent(_SerdeShape): """ @@ -144,6 +215,12 @@ class ActionExecutionPayloadField(_SerdeShape): value: _Document """The content of a user input field in an plugin action execution payload.""" +class ActionExecutionPayloadFieldDict(TypedDict, total=False): + """Dictionary form of `ActionExecutionPayloadField`.""" + + value: Required[_Document] + """The content of a user input field in an plugin action execution payload.""" + @dataclass(kw_only=True) class ActionFilterConfiguration(_SerdeShape): """Specifies filters to apply to an allowed action.""" @@ -154,6 +231,15 @@ class ActionFilterConfiguration(_SerdeShape): fields. """ +class ActionFilterConfigurationDict(TypedDict, total=False): + """Dictionary form of `ActionFilterConfiguration`.""" + + document_attribute_filter: Required[AttributeFilter | AttributeFilterDict] + """ + Enables filtering of responses based on document attributes or metadata + fields. + """ + class ActionPayloadFieldType(UnknownEnumMixin, StrEnum): STRING = "STRING" NUMBER = "NUMBER" @@ -341,6 +427,23 @@ can upload it to an S3 bucket and specify the S3 bucket location in the class _APISchemaDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> APISchema: ... +class APISchemaPayloadDict(TypedDict): + payload: str + """ + The JSON or YAML-formatted payload defining the OpenAPI schema for a + custom plugin. + """ + +class APISchemaS3Dict(TypedDict): + s3: S3 | S3Dict + """ + Contains details about the S3 object containing the OpenAPI schema for a + custom plugin. The schema could be in either JSON or YAML format. + """ + +APISchemaDict = Union[APISchemaPayloadDict | APISchemaS3Dict] +"""Dictionary form of `APISchema`, setting exactly one variant.""" + class APISchemaType(UnknownEnumMixin, StrEnum): OPEN_API_V3 = "OPEN_API_V3" @@ -487,6 +590,30 @@ class AssociatePermissionInput(_SerdeShape): granted permission. """ +class AssociatePermissionInputDict(TypedDict, total=False): + """Dictionary form of `AssociatePermissionInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application.""" + statement_id: Required[str] + """A unique identifier for the policy statement.""" + actions: Required[Sequence[str]] + """ + The list of Amazon Q Business actions that the ISV is allowed to + perform. + """ + conditions: Sequence[PermissionCondition | PermissionConditionDict] | None + """ + The conditions that restrict when the permission is effective. These + conditions can be used to limit the permission based on specific + attributes of the request. + """ + principal: Required[str] + """ + The Amazon Resource Name of the IAM role for the ISV that is being + granted permission. + """ + @dataclass(kw_only=True) class AssociatePermissionOutput(_SerdeShape): """Dataclass for AssociatePermissionOutput structure.""" @@ -550,6 +677,16 @@ class AttachmentInput(_SerdeShape): copy_from: CopyFromSource | None = ... """A reference to an existing attachment.""" +class AttachmentInputDict(TypedDict, total=False): + """Dictionary form of `AttachmentInput`.""" + + data: bytes | None + """The contents of the attachment.""" + name: str | None + """The filename of the attachment.""" + copy_from: CopyFromSource | CopyFromSourceDict | None + """A reference to an existing attachment.""" + @dataclass(kw_only=True) class AttachmentInputEvent(_SerdeShape): """ @@ -589,6 +726,15 @@ class AttachmentsConfiguration(_SerdeShape): or deactivated for your end user. """ +class AttachmentsConfigurationDict(TypedDict, total=False): + """Dictionary form of `AttachmentsConfiguration`.""" + + attachments_control_mode: Required[str] + """ + Status information about whether file upload functionality is activated + or deactivated for your end user. + """ + class AttachmentsControlMode(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -663,6 +809,68 @@ class AttributeFilter(_SerdeShape): `dateValue` and `longValue`. """ +class AttributeFilterDict(TypedDict, total=False): + """Dictionary form of `AttributeFilter`.""" + + and_all_filters: Sequence[AttributeFilter | AttributeFilterDict] | None + """Performs a logical `AND` operation on all supplied filters.""" + or_all_filters: Sequence[AttributeFilter | AttributeFilterDict] | None + """Performs a logical `OR` operation on all supplied filters.""" + not_filter: AttributeFilter | AttributeFilterDict | None + """Performs a logical `NOT` operation on all supplied filters.""" + equals_to: DocumentAttribute | DocumentAttributeDict | None + """ + Performs an equals operation on two document attributes or metadata + fields. Supported for the following [document attribute value + types](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html): + `dateValue`, `longValue`, `stringListValue` and `stringValue`. + """ + contains_all: DocumentAttribute | DocumentAttributeDict | None + """ + Returns `true` when a document contains all the specified document + attributes or metadata fields. Supported for the following [document + attribute value + types](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html): + `stringListValue`. + """ + contains_any: DocumentAttribute | DocumentAttributeDict | None + """ + Returns `true` when a document contains any of the specified document + attributes or metadata fields. Supported for the following [document + attribute value + types](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html): + `stringListValue`. + """ + greater_than: DocumentAttribute | DocumentAttributeDict | None + """ + Performs a greater than operation on two document attributes or metadata + fields. Supported for the following [document attribute value + types](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html): + `dateValue` and `longValue`. + """ + greater_than_or_equals: DocumentAttribute | DocumentAttributeDict | None + """ + Performs a greater or equals than operation on two document attributes + or metadata fields. Supported for the following [document attribute + value + types](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html): + `dateValue` and `longValue`. + """ + less_than: DocumentAttribute | DocumentAttributeDict | None + """ + Performs a less than operation on two document attributes or metadata + fields. Supported for the following [document attribute value + types](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html): + `dateValue` and `longValue`. + """ + less_than_or_equals: DocumentAttribute | DocumentAttributeDict | None + """ + Performs a less than or equals operation on two document attributes or + metadata fields.Supported for the following [document attribute value + type](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html): + `dateValue` and `longValue`. + """ + class AttributeType(UnknownEnumMixin, StrEnum): STRING = "STRING" STRING_LIST = "STRING_LIST" @@ -682,6 +890,15 @@ class AudioExtractionConfiguration(_SerdeShape): audio content from files. """ +class AudioExtractionConfigurationDict(TypedDict, total=False): + """Dictionary form of `AudioExtractionConfiguration`.""" + + audio_extraction_status: Required[str] + """ + The status of audio extraction (ENABLED or DISABLED) for processing + audio content from files. + """ + class AudioExtractionStatus(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -745,6 +962,12 @@ class AuthChallengeResponse(_SerdeShape): response_map: dict[str, str] """The mapping of key-value pairs in an authentication challenge response.""" +class AuthChallengeResponseDict(TypedDict, total=False): + """Dictionary form of `AuthChallengeResponse`.""" + + response_map: Required[Mapping[str, str]] + """The mapping of key-value pairs in an authentication challenge response.""" + @dataclass(kw_only=True) class AuthChallengeResponseEvent(_SerdeShape): """ @@ -775,6 +998,22 @@ class AutoSubscriptionConfiguration(_SerdeShape): for this field. """ +class AutoSubscriptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `AutoSubscriptionConfiguration`.""" + + auto_subscribe: Required[str] + """ + Describes whether automatic subscriptions are enabled for an Amazon Q + Business application using IAM identity federation for user management. + """ + default_subscription_type: str | None + """ + Describes the default subscription type assigned to an Amazon Q Business + application using IAM identity federation for user management. If the + value for `autoSubscribe` is set to `ENABLED` you must select a value + for this field. + """ + class AutoSubscriptionStatus(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -797,6 +1036,20 @@ class BasicAuthConfiguration(_SerdeShape): authentication credentials stored in a Secrets Manager secret. """ +class BasicAuthConfigurationDict(TypedDict, total=False): + """Dictionary form of `BasicAuthConfiguration`.""" + + secret_arn: Required[str] + """ + The ARN of the Secrets Manager secret that stores the basic + authentication credentials used for plugin configuration.. + """ + role_arn: Required[str] + """ + The ARN of an IAM role used by Amazon Q Business to access the basic + authentication credentials stored in a Secrets Manager secret. + """ + @dataclass(kw_only=True) class BatchDeleteDocumentInput(_SerdeShape): """Dataclass for BatchDeleteDocumentInput structure.""" @@ -816,6 +1069,24 @@ class BatchDeleteDocumentInput(_SerdeShape): deleted. """ +class BatchDeleteDocumentInputDict(TypedDict, total=False): + """Dictionary form of `BatchDeleteDocumentInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application.""" + index_id: Required[str] + """ + The identifier of the Amazon Q Business index that contains the + documents to delete. + """ + documents: Required[Sequence[DeleteDocument | DeleteDocumentDict]] + """Documents deleted from the Amazon Q Business index.""" + data_source_sync_id: str | None + """ + The identifier of the data source sync during which the documents were + deleted. + """ + @dataclass(kw_only=True) class BatchDeleteDocumentOutput(_SerdeShape): """Dataclass for BatchDeleteDocumentOutput structure.""" @@ -862,6 +1133,33 @@ class BatchPutDocumentInput(_SerdeShape): added. """ +class BatchPutDocumentInputDict(TypedDict, total=False): + """Dictionary form of `BatchPutDocumentInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application.""" + index_id: Required[str] + """The identifier of the Amazon Q Business index to add the documents to.""" + documents: Required[Sequence[Document | DocumentDict]] + """ + One or more documents to add to the index. + + Warning: + Ensure that the name of your document doesn't contain any confidential + information. Amazon Q Business returns document names in chat responses + and citations when relevant. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role with permission to access + your S3 bucket. + """ + data_source_sync_id: str | None + """ + The identifier of the data source sync during which the documents were + added. + """ + @dataclass(kw_only=True) class BatchPutDocumentOutput(_SerdeShape): """Dataclass for BatchPutDocumentOutput structure.""" @@ -925,6 +1223,25 @@ class BlockedPhrasesConfigurationUpdate(_SerdeShape): blocked phrase during chat. """ +class BlockedPhrasesConfigurationUpdateDict(TypedDict, total=False): + """Dictionary form of `BlockedPhrasesConfigurationUpdate`.""" + + blocked_phrases_to_create_or_update: Sequence[str] | None + """ + Creates or updates a blocked phrases configuration in your Amazon Q + Business application. + """ + blocked_phrases_to_delete: Sequence[str] | None + """ + Deletes a blocked phrases configuration in your Amazon Q Business + application. + """ + system_message_override: str | None + """ + The configured custom message displayed to your end user when they use + blocked phrase during chat. + """ + @dataclass(kw_only=True) class BrowserExtensionConfiguration(_SerdeShape): """ @@ -945,6 +1262,22 @@ class BrowserExtensionConfiguration(_SerdeShape): browsers and Mozilla Firefox. """ +class BrowserExtensionConfigurationDict(TypedDict, total=False): + """Dictionary form of `BrowserExtensionConfiguration`.""" + + enabled_browser_extensions: Required[Sequence[str]] + """ + Specify the browser extensions allowed for your Amazon Q web experience. + + - `CHROME` --- Enables the extension for Chromium-based browsers (Google + Chrome, Microsoft Edge, Opera, etc.). + + - `FIREFOX` --- Enables the extension for Mozilla Firefox. + + - `CHROME` and `FIREFOX` --- Enable the extension for Chromium-based + browsers and Mozilla Firefox. + """ + @dataclass(kw_only=True) class CancelSubscriptionInput(_SerdeShape): """Dataclass for CancelSubscriptionInput structure.""" @@ -957,6 +1290,17 @@ class CancelSubscriptionInput(_SerdeShape): subscription_id: str | None = ... """The identifier of the Amazon Q Business subscription being cancelled.""" +class CancelSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `CancelSubscriptionInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application for which the + subscription is being cancelled. + """ + subscription_id: Required[str] + """The identifier of the Amazon Q Business subscription being cancelled.""" + @dataclass(kw_only=True) class CancelSubscriptionOutput(_SerdeShape): """Dataclass for CancelSubscriptionOutput structure.""" @@ -1005,6 +1349,32 @@ class ChatInput(_SerdeShape): This field is autopopulated if not provided. """ +class ChatInputDict(TypedDict, total=False): + """Dictionary form of `ChatInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application linked to a + streaming Amazon Q Business conversation. + """ + user_id: str | None + """The identifier of the user attached to the chat input.""" + user_groups: Sequence[str] | None + """The group names that a user associated with the chat input belongs to.""" + conversation_id: str | None + """The identifier of the Amazon Q Business conversation.""" + parent_message_id: str | None + """ + The identifier used to associate a user message with a AI generated + response. + """ + client_token: str | None + """ + A token that you provide to identify the chat input. + + This field is autopopulated if not provided. + """ + @dataclass class ChatInputStreamConfigurationEvent(_SerdeShape): """ @@ -1113,6 +1483,16 @@ settings](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-e class _ChatModeConfigurationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ChatModeConfiguration: ... +class ChatModeConfigurationPluginConfigurationDict(TypedDict): + plugin_configuration: PluginConfiguration | PluginConfigurationDict + """Configuration information required to invoke chat in `PLUGIN_MODE`.""" + +ChatModeConfigurationDict = Union[ChatModeConfigurationPluginConfigurationDict] +""" +Dictionary form of `ChatModeConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class ChatOutput(_SerdeShape): """Dataclass for ChatOutput structure.""" @@ -1364,18 +1744,97 @@ class ChatSyncInput(_SerdeShape): This field is autopopulated if not provided. """ -@dataclass(kw_only=True) -class ChatSyncOutput(_SerdeShape): - """Dataclass for ChatSyncOutput structure.""" +class ChatSyncInputDict(TypedDict, total=False): + """Dictionary form of `ChatSyncInput`.""" - conversation_id: str | None = ... - """The identifier of the Amazon Q Business conversation.""" - system_message: str | None = ... - """An AI-generated message in a conversation.""" - system_message_id: str | None = ... - """ - The identifier of an Amazon Q Business AI generated message within the - conversation. + application_id: Required[str] + """ + The identifier of the Amazon Q Business application linked to the Amazon + Q Business conversation. + """ + user_id: str | None + """The identifier of the user attached to the chat input.""" + user_groups: Sequence[str] | None + """The group names that a user associated with the chat input belongs to.""" + user_message: str | None + """A end user message in a conversation.""" + attachments: Sequence[AttachmentInput | AttachmentInputDict] | None + """ + A list of files uploaded directly during chat. You can upload a maximum + of 5 files of upto 10 MB each. + """ + action_execution: ActionExecution | ActionExecutionDict | None + """ + A request from an end user to perform an Amazon Q Business plugin + action. + """ + auth_challenge_response: AuthChallengeResponse | AuthChallengeResponseDict | None + """ + An authentication verification event response by a third party + authentication server to Amazon Q Business. + """ + conversation_id: str | None + """The identifier of the Amazon Q Business conversation.""" + parent_message_id: str | None + """The identifier of the previous system message in a conversation.""" + attribute_filter: AttributeFilter | AttributeFilterDict | None + """ + Enables filtering of Amazon Q Business web experience responses based on + document attributes or metadata fields. + """ + chat_mode: str | None + """ + The `chatMode` parameter determines the chat modes available to Amazon Q + Business users: + + - `RETRIEVAL_MODE` - If you choose this mode, Amazon Q generates + responses solely from the data sources connected and indexed by the + application. If an answer is not found in the data sources or there + are no data sources available, Amazon Q will respond with a \"*No + Answer Found*\" message, unless LLM knowledge has been enabled. In + that case, Amazon Q will generate a response from the LLM knowledge + + - `CREATOR_MODE` - By selecting this mode, you can choose to generate + responses only from the LLM knowledge. You can also attach files and + have Amazon Q generate a response based on the data in those files. If + the attached files do not contain an answer for the query, Amazon Q + will automatically fall back to generating a response from the LLM + knowledge. + + - `PLUGIN_MODE` - By selecting this mode, users can choose to use + plugins in chat to get their responses. + + Note: + If none of the modes are selected, Amazon Q will only respond using the + information from the attached files. + + For more information, see [Admin controls and + guardrails](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails.html), + [Plugins](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/plugins.html), + and [Response + sources](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-experience.html#chat-source-scope). + """ + chat_mode_configuration: ChatModeConfiguration | ChatModeConfigurationDict | None + """The chat mode configuration for an Amazon Q Business application.""" + client_token: str | None + """ + A token that you provide to identify a chat request. + + This field is autopopulated if not provided. + """ + +@dataclass(kw_only=True) +class ChatSyncOutput(_SerdeShape): + """Dataclass for ChatSyncOutput structure.""" + + conversation_id: str | None = ... + """The identifier of the Amazon Q Business conversation.""" + system_message: str | None = ... + """An AI-generated message in a conversation.""" + system_message_id: str | None = ... + """ + The identifier of an Amazon Q Business AI generated message within the + conversation. """ user_message_id: str | None = ... """ @@ -1437,6 +1896,38 @@ class CheckDocumentAccessInput(_SerdeShape): is available or necessary. """ +class CheckDocumentAccessInputDict(TypedDict, total=False): + """Dictionary form of `CheckDocumentAccessInput`.""" + + application_id: Required[str] + """ + The unique identifier of the application. This is required to identify + the specific Amazon Q Business application context for the document + access check. + """ + index_id: Required[str] + """ + The unique identifier of the index. Used to locate the correct index + within the application where the document is stored. + """ + user_id: Required[str] + """ + The unique identifier of the user. Used to check the access permissions + for this specific user against the document's ACL. + """ + document_id: Required[str] + """ + The unique identifier of the document. Specifies which document's + access permissions are being checked. + """ + data_source_id: str | None + """ + The unique identifier of the data source. Identifies the specific data + source from which the document originates. Should not be used when a + document is uploaded directly with BatchPutDocument, as no dataSourceId + is available or necessary. + """ + @dataclass(kw_only=True) class CheckDocumentAccessOutput(_SerdeShape): """Dataclass for CheckDocumentAccessOutput structure.""" @@ -1549,6 +2040,15 @@ class ContentBlockerRule(_SerdeShape): that they've used a blocked phrase during chat. """ +class ContentBlockerRuleDict(TypedDict, total=False): + """Dictionary form of `ContentBlockerRule`.""" + + system_message_override: str | None + """ + The configured custom message displayed to an end user informing them + that they've used a blocked phrase during chat. + """ + @dataclass(kw_only=True) class ContentRetrievalRule(_SerdeShape): """ @@ -1562,6 +2062,15 @@ class ContentRetrievalRule(_SerdeShape): content generation. """ +class ContentRetrievalRuleDict(TypedDict, total=False): + """Dictionary form of `ContentRetrievalRule`.""" + + eligible_data_sources: Sequence[EligibleDataSource | EligibleDataSourceDict] | None + """ + Specifies data sources in a Amazon Q Business application to use for + content generation. + """ + @dataclass class ContentSourceRetriever(_SerdeShape): """The retriever to use as the content source.""" @@ -1584,6 +2093,13 @@ ContentSource = Union[ContentSourceRetriever | ContentSourceUnknown] class _ContentSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ContentSource: ... +class ContentSourceRetrieverDict(TypedDict): + retriever: RetrieverContentSource | RetrieverContentSourceDict + """The retriever to use as the content source.""" + +ContentSourceDict = Union[ContentSourceRetrieverDict] +"""Dictionary form of `ContentSource`, setting exactly one variant.""" + class ContentType(UnknownEnumMixin, StrEnum): PDF = "PDF" HTML = "HTML" @@ -1621,6 +2137,14 @@ class ConversationSource(_SerdeShape): attachment_id: str """The unique identifier of the Amazon Q Business attachment.""" +class ConversationSourceDict(TypedDict, total=False): + """Dictionary form of `ConversationSource`.""" + + conversation_id: Required[str] + """The unique identifier of the Amazon Q Business conversation.""" + attachment_id: Required[str] + """The unique identifier of the Amazon Q Business attachment.""" + @dataclass class CopyFromSourceConversation(_SerdeShape): """A reference to an attachment in an existing conversation.""" @@ -1643,6 +2167,13 @@ CopyFromSource = Union[CopyFromSourceConversation | CopyFromSourceUnknown] class _CopyFromSourceDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> CopyFromSource: ... +class CopyFromSourceConversationDict(TypedDict): + conversation: ConversationSource | ConversationSourceDict + """A reference to an attachment in an existing conversation.""" + +CopyFromSourceDict = Union[CopyFromSourceConversationDict] +"""Dictionary form of `CopyFromSource`, setting exactly one variant.""" + @dataclass(kw_only=True) class CreateAnonymousWebExperienceUrlInput(_SerdeShape): """Dataclass for CreateAnonymousWebExperienceUrlInput structure.""" @@ -1660,6 +2191,22 @@ class CreateAnonymousWebExperienceUrlInput(_SerdeShape): experience. """ +class CreateAnonymousWebExperienceUrlInputDict(TypedDict, total=False): + """Dictionary form of `CreateAnonymousWebExperienceUrlInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application environment attached + to the web experience. + """ + web_experience_id: Required[str] + """The identifier of the web experience.""" + session_duration_in_minutes: int | None + """ + The duration of the session associated with the unique URL for the web + experience. + """ + @dataclass(kw_only=True) class CreateAnonymousWebExperienceUrlOutput(_SerdeShape): """Dataclass for CreateAnonymousWebExperienceUrlOutput structure.""" @@ -1753,6 +2300,86 @@ class CreateApplicationInput(_SerdeShape): application](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/create-quicksight-integrated-application.html). """ +class CreateApplicationInputDict(TypedDict, total=False): + """Dictionary form of `CreateApplicationInput`.""" + + display_name: Required[str] + """A name for the Amazon Q Business application.""" + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role with permissions to access + your Amazon CloudWatch logs and metrics. If this property is not + specified, Amazon Q Business will create a [service linked role + (SLR)](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles.html#slr-permissions) + and use it as the application's role. + """ + identity_type: str | None + """The authentication type being used by a Amazon Q Business application.""" + iam_identity_provider_arn: str | None + """ + The Amazon Resource Name (ARN) of an identity provider being used by an + Amazon Q Business application. + """ + identity_center_instance_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM Identity Center instance you + are either creating for---or connecting to---your Amazon Q Business + application. + """ + client_ids_for_oidc: Sequence[str] | None + """The OIDC client ID for a Amazon Q Business application.""" + description: str | None + """A description for the Amazon Q Business application.""" + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """ + The identifier of the KMS key that is used to encrypt your data. Amazon + Q Business doesn't support asymmetric keys. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of key-value pairs that identify or categorize your Amazon Q + Business application. You can also use tags to help control access to + the application. Tag keys and values can consist of Unicode letters, + digits, white space, and any of the following symbols: _ . : / = + - @. + """ + client_token: str | None + """ + A token that you provide to identify the request to create your Amazon Q + Business application. + + This field is autopopulated if not provided. + """ + attachments_configuration: ( + AttachmentsConfiguration | AttachmentsConfigurationDict | None + ) + """An option to allow end users to upload files directly during chat.""" + q_apps_configuration: QAppsConfiguration | QAppsConfigurationDict | None + """ + An option to allow end users to create and use Amazon Q Apps in the web + experience. + """ + personalization_configuration: ( + PersonalizationConfiguration | PersonalizationConfigurationDict | None + ) + """ + Configuration information about chat response personalization. For more + information, see [Personalizing chat + responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html) + """ + quick_sight_configuration: ( + QuickSightConfiguration | QuickSightConfigurationDict | None + ) + """ + The Amazon Quick Suite configuration for an Amazon Q Business + application that uses Quick Suite for authentication. This configuration + is required if your application uses Quick Suite as the identity + provider. For more information, see [Creating an Amazon Quick Suite + integrated + application](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/create-quicksight-integrated-application.html). + """ + @dataclass(kw_only=True) class CreateApplicationOutput(_SerdeShape): """Dataclass for CreateApplicationOutput structure.""" @@ -1804,6 +2431,42 @@ class CreateChatResponseConfigurationInput(_SerdeShape): across Amazon Web Services services. """ +class CreateChatResponseConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `CreateChatResponseConfigurationInput`.""" + + application_id: Required[str] + """ + The unique identifier of the Amazon Q Business application for which to + create the new chat response configuration. + """ + display_name: Required[str] + """ + A human-readable name for the new chat response configuration, making it + easier to identify and manage among multiple configurations. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. This helps prevent the same configuration from being created + multiple times if retries occur. + + This field is autopopulated if not provided. + """ + response_configurations: Required[ + Mapping[str, ResponseConfiguration | ResponseConfigurationDict] + ] + """ + A collection of response configuration settings that define how Amazon Q + Business will generate and format responses to user queries in chat + interactions. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of key-value pairs to apply as tags to the new chat response + configuration, enabling categorization and management of resources + across Amazon Web Services services. + """ + @dataclass(kw_only=True) class CreateChatResponseConfigurationOutput(_SerdeShape): """Dataclass for CreateChatResponseConfigurationOutput structure.""" @@ -1861,6 +2524,43 @@ class CreateDataAccessorInput(_SerdeShape): tags: list[Tag] | None = ... """The tags to associate with the data accessor.""" +class CreateDataAccessorInputDict(TypedDict, total=False): + """Dictionary form of `CreateDataAccessorInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application.""" + principal: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role for the ISV that will be + accessing the data. + """ + action_configurations: Required[ + Sequence[ActionConfiguration | ActionConfigurationDict] + ] + """ + A list of action configurations specifying the allowed actions and any + associated filters. + """ + client_token: str | None + """ + A unique, case-sensitive identifier you provide to ensure idempotency of + the request. + + This field is autopopulated if not provided. + """ + display_name: Required[str] + """A friendly name for the data accessor.""" + authentication_detail: ( + DataAccessorAuthenticationDetail | DataAccessorAuthenticationDetailDict | None + ) + """ + The authentication configuration details for the data accessor. This + specifies how the ISV will authenticate when accessing data through this + data accessor. + """ + tags: Sequence[Tag | TagDict] | None + """The tags to associate with the data accessor.""" + @dataclass(kw_only=True) class CreateDataAccessorOutput(_SerdeShape): """Dataclass for CreateDataAccessorOutput structure.""" @@ -1981,6 +2681,110 @@ class CreateDataSourceInput(_SerdeShape): during ingestion. """ +class CreateDataSourceInputDict(TypedDict, total=False): + """Dictionary form of `CreateDataSourceInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application the data source will + be attached to. + """ + index_id: Required[str] + """ + The identifier of the index that you want to use with the data source + connector. + """ + display_name: Required[str] + """A name for the data source connector.""" + configuration: Required[_Document] + """ + Configuration information to connect your data source repository to + Amazon Q Business. Use this parameter to provide a JSON schema with + configuration information specific to your data source connector. + + Each data source has a JSON schema provided by Amazon Q Business that + you must use. For example, the Amazon S3 and Web Crawler connectors + require the following JSON schemas: + + - [Amazon S3 JSON + schema](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/s3-api.html) + + - [Web Crawler JSON + schema](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/web-crawler-api.html) + + You can find configuration templates for your specific data source using + the following steps: + + 1. Navigate to the [Supported + connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connectors-list.html) + page in the Amazon Q Business User Guide, and select the data source + of your choice. + + 2. Then, from your specific data source connector page, select **Using + the API**. You will find the JSON schema for your data source, + including parameter descriptions, in this section. + """ + vpc_configuration: ( + DataSourceVpcConfiguration | DataSourceVpcConfigurationDict | None + ) + """ + Configuration information for an Amazon VPC (Virtual Private Cloud) to + connect to your data source. For more information, see [Using Amazon VPC + with Amazon Q Business + connectors](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/connector-vpc.html). + """ + description: str | None + """A description for the data source connector.""" + tags: Sequence[Tag | TagDict] | None + """ + A list of key-value pairs that identify or categorize the data source + connector. You can also use tags to help control access to the data + source connector. Tag keys and values can consist of Unicode letters, + digits, white space, and any of the following symbols: _ . : / = + - @. + """ + sync_schedule: str | None + """ + Sets the frequency for Amazon Q Business to check the documents in your + data source repository and update your index. If you don't set a + schedule, Amazon Q Business won't periodically update the index. + + Specify a `cron-` format schedule string or an empty string to indicate + that the index is updated on demand. You can't specify the `Schedule` + parameter when the `Type` parameter is set to `CUSTOM`. If you do, you + receive a `ValidationException` exception. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role with permission to access + the data source and required resources. This field is required for all + connector types except custom connectors, where it is optional. + """ + client_token: str | None + """ + A token you provide to identify a request to create a data source + connector. Multiple calls to the `CreateDataSource` API with the same + client token will create only one data source connector. + + This field is autopopulated if not provided. + """ + document_enrichment_configuration: ( + DocumentEnrichmentConfiguration | DocumentEnrichmentConfigurationDict | None + ) + """ + Provides the configuration information for altering document metadata + and content during the document ingestion process. + + For more information, see [Custom document + enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html). + """ + media_extraction_configuration: ( + MediaExtractionConfiguration | MediaExtractionConfigurationDict | None + ) + """ + The configuration for extracting information from media in documents + during ingestion. + """ + @dataclass(kw_only=True) class CreateDataSourceOutput(_SerdeShape): """Dataclass for CreateDataSourceOutput structure.""" @@ -2037,6 +2841,44 @@ class CreateIndexInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateIndexInputDict(TypedDict, total=False): + """Dictionary form of `CreateIndexInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application using the index.""" + display_name: Required[str] + """A name for the Amazon Q Business index.""" + description: str | None + """A description for the Amazon Q Business index.""" + type: str | None + """ + The index type that's suitable for your needs. For more information on + what's included in each type of index, see [Amazon Q Business + tiers](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/tiers.html#index-tiers). + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of key-value pairs that identify or categorize the index. You can + also use tags to help control access to the index. Tag keys and values + can consist of Unicode letters, digits, white space, and any of the + following symbols: _ . : / = + - @. + """ + capacity_configuration: ( + IndexCapacityConfiguration | IndexCapacityConfigurationDict | None + ) + """ + The capacity units you want to provision for your index. You can add and + remove capacity to fit your usage needs. + """ + client_token: str | None + """ + A token that you provide to identify the request to create an index. + Multiple calls to the `CreateIndex` API with the same client token will + create only one index. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateIndexOutput(_SerdeShape): """Dataclass for CreateIndexOutput structure.""" @@ -2057,29 +2899,64 @@ class CreateIndexOutput(_SerdeShape): class CreatePluginInput(_SerdeShape): """Dataclass for CreatePluginInput structure.""" - application_id: str | None = ... + application_id: str | None = ... + """The identifier of the application that will contain the plugin.""" + display_name: str | None = ... + """A the name for your plugin.""" + type: str | None = ... + """The type of plugin you want to create.""" + auth_configuration: PluginAuthConfiguration | None = ... + """ + Authentication configuration information for an Amazon Q Business + plugin. + """ + server_url: str | None = ... + """The source URL used for plugin configuration.""" + custom_plugin_configuration: CustomPluginConfiguration | None = ... + """Contains configuration for a custom plugin.""" + tags: list[Tag] | None = ... + """ + A list of key-value pairs that identify or categorize the data source + connector. You can also use tags to help control access to the data + source connector. Tag keys and values can consist of Unicode letters, + digits, white space, and any of the following symbols: _ . : / = + - @. + """ + client_token: str | None = ... + """ + A token that you provide to identify the request to create your Amazon Q + Business plugin. + + This field is autopopulated if not provided. + """ + +class CreatePluginInputDict(TypedDict, total=False): + """Dictionary form of `CreatePluginInput`.""" + + application_id: Required[str] """The identifier of the application that will contain the plugin.""" - display_name: str | None = ... + display_name: Required[str] """A the name for your plugin.""" - type: str | None = ... + type: Required[str] """The type of plugin you want to create.""" - auth_configuration: PluginAuthConfiguration | None = ... + auth_configuration: Required[PluginAuthConfiguration | PluginAuthConfigurationDict] """ Authentication configuration information for an Amazon Q Business plugin. """ - server_url: str | None = ... + server_url: str | None """The source URL used for plugin configuration.""" - custom_plugin_configuration: CustomPluginConfiguration | None = ... + custom_plugin_configuration: ( + CustomPluginConfiguration | CustomPluginConfigurationDict | None + ) """Contains configuration for a custom plugin.""" - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @. """ - client_token: str | None = ... + client_token: str | None """ A token that you provide to identify the request to create your Amazon Q Business plugin. @@ -2140,6 +3017,40 @@ class CreateRetrieverInput(_SerdeShape): the following symbols: _ . : / = + - @. """ +class CreateRetrieverInputDict(TypedDict, total=False): + """Dictionary form of `CreateRetrieverInput`.""" + + application_id: Required[str] + """The identifier of your Amazon Q Business application.""" + type: Required[str] + """The type of retriever you are using.""" + display_name: Required[str] + """The name of your retriever.""" + configuration: Required[RetrieverConfiguration | RetrieverConfigurationDict] + """ + Provides information on how the retriever used for your Amazon Q + Business application is configured. + """ + role_arn: str | None + """ + The ARN of an IAM role used by Amazon Q Business to access the basic + authentication credentials stored in a Secrets Manager secret. + """ + client_token: str | None + """ + A token that you provide to identify the request to create your Amazon Q + Business application retriever. + + This field is autopopulated if not provided. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of key-value pairs that identify or categorize the retriever. You + can also use tags to help control access to the retriever. Tag keys and + values can consist of Unicode letters, digits, white space, and any of + the following symbols: _ . : / = + - @. + """ + @dataclass(kw_only=True) class CreateRetrieverOutput(_SerdeShape): """Dataclass for CreateRetrieverOutput structure.""" @@ -2184,6 +3095,30 @@ class CreateSubscriptionInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `CreateSubscriptionInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application the subscription + should be added to. + """ + principal: Required[SubscriptionPrincipal | SubscriptionPrincipalDict] + """ + The IAM Identity Center `UserId` or `GroupId` of a user or group in the + IAM Identity Center instance connected to the Amazon Q Business + application. + """ + type: Required[str] + """The type of Amazon Q Business subscription you want to create.""" + client_token: str | None + """ + A token that you provide to identify the request to create a + subscription for your Amazon Q Business application. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateSubscriptionOutput(_SerdeShape): """Dataclass for CreateSubscriptionOutput structure.""" @@ -2228,6 +3163,26 @@ class CreateUserInput(_SerdeShape): This field is autopopulated if not provided. """ +class CreateUserInputDict(TypedDict, total=False): + """Dictionary form of `CreateUserInput`.""" + + application_id: Required[str] + """ + The identifier of the application for which the user mapping will be + created. + """ + user_id: Required[str] + """The user emails attached to a user mapping.""" + user_aliases: Sequence[UserAlias | UserAliasDict] | None + """The list of user aliases in the mapping.""" + client_token: str | None + """ + A token that you provide to identify the request to create your Amazon Q + Business user mapping. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class CreateUserOutput(_SerdeShape): """Dataclass for CreateUserOutput structure.""" @@ -2318,6 +3273,89 @@ class CreateWebExperienceInput(_SerdeShape): experience. """ +class CreateWebExperienceInputDict(TypedDict, total=False): + """Dictionary form of `CreateWebExperienceInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business web experience.""" + title: str | None + """The title for your Amazon Q Business web experience.""" + subtitle: str | None + """A subtitle to personalize your Amazon Q Business web experience.""" + welcome_message: str | None + """ + The customized welcome message for end users of an Amazon Q Business web + experience. + """ + sample_prompts_control_mode: str | None + """ + Determines whether sample prompts are enabled in the web experience for + an end user. + """ + origins: Sequence[str] | None + """ + Sets the website domain origins that are allowed to embed the Amazon Q + Business web experience. The *domain origin* refers to the base URL for + accessing a website including the protocol (`http/https`), the domain + name, and the port number (if specified). + + Note: + You must only submit a *base URL* and not a full path. For example, + `https://docs.aws.amazon.com`. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of the service role attached to your web + experience. + + Note: + The `roleArn` parameter is required when your Amazon Q Business + application is created with IAM Identity Center. It is not required for + SAML-based applications. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of key-value pairs that identify or categorize your Amazon Q + Business web experience. You can also use tags to help control access to + the web experience. Tag keys and values can consist of Unicode letters, + digits, white space, and any of the following symbols: _ . : / = + - @. + """ + client_token: str | None + """ + A token you provide to identify a request to create an Amazon Q Business + web experience. + + This field is autopopulated if not provided. + """ + identity_provider_configuration: ( + IdentityProviderConfiguration | IdentityProviderConfigurationDict | None + ) + """ + Information about the identity provider (IdP) used to authenticate end + users of an Amazon Q Business web experience. + """ + browser_extension_configuration: ( + BrowserExtensionConfiguration | BrowserExtensionConfigurationDict | None + ) + """ + The browser extension configuration for an Amazon Q Business web + experience. + + Note: + For Amazon Q Business application using external OIDC-compliant identity + providers (IdPs). The IdP administrator must add the browser extension + sign-in redirect URLs to the IdP application. For more information, see + [Configure external OIDC identity provider for your browser + extensions.](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/browser-extensions.html). + """ + customization_configuration: ( + CustomizationConfiguration | CustomizationConfigurationDict | None + ) + """ + Sets the custom logo, favicon, font, and color used in the Amazon Q web + experience. + """ + @dataclass(kw_only=True) class CreateWebExperienceOutput(_SerdeShape): """Dataclass for CreateWebExperienceOutput structure.""" @@ -2351,6 +3389,15 @@ class CreatorModeConfiguration(_SerdeShape): disabled. The default status is `DISABLED`. """ +class CreatorModeConfigurationDict(TypedDict, total=False): + """Dictionary form of `CreatorModeConfiguration`.""" + + creator_mode_control: Required[str] + """ + Status information about whether `CREATOR_MODE` has been enabled or + disabled. The default status is `DISABLED`. + """ + class CreatorModeControl(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -2384,6 +3431,30 @@ class CustomizationConfiguration(_SerdeShape): web experience. """ +class CustomizationConfigurationDict(TypedDict, total=False): + """Dictionary form of `CustomizationConfiguration`.""" + + custom_css_url: str | None + """ + Provides the URL where the custom CSS file is hosted for an Amazon Q web + experience. + """ + logo_url: str | None + """ + Provides the URL where the custom logo file is hosted for an Amazon Q + web experience. + """ + font_url: str | None + """ + Provides the URL where the custom font file is hosted for an Amazon Q + web experience. + """ + favicon_url: str | None + """ + Provides the URL where the custom favicon file is hosted for an Amazon Q + web experience. + """ + @dataclass(kw_only=True) class CustomPluginConfiguration(_SerdeShape): """Configuration information required to create a custom plugin.""" @@ -2399,6 +3470,20 @@ class CustomPluginConfiguration(_SerdeShape): defining the schema. """ +class CustomPluginConfigurationDict(TypedDict, total=False): + """Dictionary form of `CustomPluginConfiguration`.""" + + description: Required[str] + """A description for your custom plugin configuration.""" + api_schema_type: Required[str] + """The type of OpenAPI schema to use.""" + api_schema: APISchema | APISchemaDict | None + """ + Contains either details about the S3 object containing the OpenAPI + schema for the action group or the JSON or YAML-formatted payload + defining the schema. + """ + @dataclass(kw_only=True) class DataAccessor(_SerdeShape): """Provides summary information about a data accessor.""" @@ -2465,6 +3550,26 @@ class _DataAccessorAuthenticationConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> DataAccessorAuthenticationConfiguration: ... +class DataAccessorAuthenticationConfigurationIdcTrustedTokenIssuerConfigurationDict( + TypedDict +): + idc_trusted_token_issuer_configuration: ( + DataAccessorIdcTrustedTokenIssuerConfiguration + | DataAccessorIdcTrustedTokenIssuerConfigurationDict + ) + """ + Configuration for IAM Identity Center Trusted Token Issuer (TTI) + authentication used when the authentication type is `AWS_IAM_IDC_TTI`. + """ + +DataAccessorAuthenticationConfigurationDict = Union[ + DataAccessorAuthenticationConfigurationIdcTrustedTokenIssuerConfigurationDict +] +""" +Dictionary form of `DataAccessorAuthenticationConfiguration`, setting +exactly one variant. +""" + @dataclass(kw_only=True) class DataAccessorAuthenticationDetail(_SerdeShape): """ @@ -2499,6 +3604,39 @@ class DataAccessorAuthenticationDetail(_SerdeShape): external systems. """ +class DataAccessorAuthenticationDetailDict(TypedDict, total=False): + """Dictionary form of `DataAccessorAuthenticationDetail`.""" + + authentication_type: Required[str] + """ + The type of authentication to use for the data accessor. This determines + how the ISV authenticates when accessing data. You can use one of two + authentication types: + + - `AWS_IAM_IDC_TTI` - Authentication using IAM Identity Center Trusted + Token Issuer (TTI). This authentication type allows the ISV to use a + trusted token issuer to generate tokens for accessing the data. + + - `AWS_IAM_IDC_AUTH_CODE` - Authentication using IAM Identity Center + authorization code flow. This authentication type uses the standard + OAuth 2.0 authorization code flow for authentication. + """ + authentication_configuration: ( + DataAccessorAuthenticationConfiguration + | DataAccessorAuthenticationConfigurationDict + | None + ) + """ + The specific authentication configuration based on the authentication + type. + """ + external_ids: Sequence[str] | None + """ + A list of external identifiers associated with this authentication + configuration. These are used to correlate the data accessor with + external systems. + """ + class DataAccessorAuthenticationType(UnknownEnumMixin, StrEnum): """The type of authentication mechanism used by the data accessor.""" @@ -2518,6 +3656,15 @@ class DataAccessorIdcTrustedTokenIssuerConfiguration(_SerdeShape): Issuer that will be used for authentication. """ +class DataAccessorIdcTrustedTokenIssuerConfigurationDict(TypedDict, total=False): + """Dictionary form of `DataAccessorIdcTrustedTokenIssuerConfiguration`.""" + + idc_trusted_token_issuer_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM Identity Center Trusted Token + Issuer that will be used for authentication. + """ + @dataclass(kw_only=True) class DataSource(_SerdeShape): """A data source in an Amazon Q Business application.""" @@ -2646,6 +3793,22 @@ class DataSourceVpcConfiguration(_SerdeShape): source. """ +class DataSourceVpcConfigurationDict(TypedDict, total=False): + """Dictionary form of `DataSourceVpcConfiguration`.""" + + subnet_ids: Required[Sequence[str]] + """ + A list of identifiers for subnets within your Amazon VPC. The subnets + should be able to connect to each other in the VPC, and they should have + outgoing access to the Internet through a NAT device. + """ + security_group_ids: Required[Sequence[str]] + """ + A list of identifiers of security groups within your Amazon VPC. The + security groups should enable Amazon Q Business to connect to the data + source. + """ + @dataclass(kw_only=True) class DateAttributeBoostingConfiguration(_SerdeShape): """ @@ -2674,6 +3837,27 @@ class DateAttributeBoostingConfiguration(_SerdeShape): document attribute. """ +class DateAttributeBoostingConfigurationDict(TypedDict, total=False): + """Dictionary form of `DateAttributeBoostingConfiguration`.""" + + boosting_level: Required[str] + """ + Specifies the priority tier ranking of boosting applied to document + attributes. For version 2, this parameter indicates the relative ranking + between boosted fields (ONE being highest priority, TWO being second + highest, etc.) and determines the order in which attributes influence + document ranking in search results. For version 1, this parameter + specifies the boosting intensity. For version 2, boosting intensity + (VERY HIGH, HIGH, MEDIUM, LOW, NONE) are not supported. Note that in + version 2, you are not allowed to boost on only one field and make this + value TWO. + """ + boosting_duration_in_seconds: int | None + """ + Specifies the duration, in seconds, of a boost applies to a `DATE` type + document attribute. + """ + @dataclass(kw_only=True) class DeleteApplicationInput(_SerdeShape): """Dataclass for DeleteApplicationInput structure.""" @@ -2681,6 +3865,12 @@ class DeleteApplicationInput(_SerdeShape): application_id: str | None = ... """The identifier of the Amazon Q Business application.""" +class DeleteApplicationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteApplicationInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application.""" + @dataclass(kw_only=True) class DeleteApplicationOutput(_SerdeShape): """Dataclass for DeleteApplicationOutput structure.""" @@ -2706,6 +3896,18 @@ class DeleteAttachmentInput(_SerdeShape): user_id: str | None = ... """The unique identifier of the user involved in the conversation.""" +class DeleteAttachmentInputDict(TypedDict, total=False): + """Dictionary form of `DeleteAttachmentInput`.""" + + application_id: Required[str] + """The unique identifier for the Amazon Q Business application environment.""" + conversation_id: Required[str] + """The unique identifier of the conversation.""" + attachment_id: Required[str] + """The unique identifier for the attachment.""" + user_id: str | None + """The unique identifier of the user involved in the conversation.""" + @dataclass(kw_only=True) class DeleteAttachmentOutput(_SerdeShape): """Dataclass for DeleteAttachmentOutput structure.""" @@ -2728,6 +3930,15 @@ class DeleteChatControlsConfigurationInput(_SerdeShape): for. """ +class DeleteChatControlsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteChatControlsConfigurationInput`.""" + + application_id: Required[str] + """ + The identifier of the application the chat controls have been configured + for. + """ + @dataclass(kw_only=True) class DeleteChatControlsConfigurationOutput(_SerdeShape): """Dataclass for DeleteChatControlsConfigurationOutput structure.""" @@ -2744,12 +3955,26 @@ class DeleteChatControlsConfigurationOutput(_SerdeShape): class DeleteChatResponseConfigurationInput(_SerdeShape): """Dataclass for DeleteChatResponseConfigurationInput structure.""" - application_id: str | None = ... + application_id: str | None = ... + """ + The unique identifier of theAmazon Q Business application from which to + delete the chat response configuration. + """ + chat_response_configuration_id: str | None = ... + """ + The unique identifier of the chat response configuration to delete from + the specified application. + """ + +class DeleteChatResponseConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteChatResponseConfigurationInput`.""" + + application_id: Required[str] """ The unique identifier of theAmazon Q Business application from which to delete the chat response configuration. """ - chat_response_configuration_id: str | None = ... + chat_response_configuration_id: Required[str] """ The unique identifier of the chat response configuration to delete from the specified application. @@ -2784,6 +4009,22 @@ class DeleteConversationInput(_SerdeShape): user_id: str | None = ... """The identifier of the user who is deleting the conversation.""" +class DeleteConversationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteConversationInput`.""" + + conversation_id: Required[str] + """ + The identifier of the Amazon Q Business web experience conversation + being deleted. + """ + application_id: Required[str] + """ + The identifier of the Amazon Q Business application associated with the + conversation. + """ + user_id: str | None + """The identifier of the user who is deleting the conversation.""" + @dataclass(kw_only=True) class DeleteConversationOutput(_SerdeShape): """Dataclass for DeleteConversationOutput structure.""" @@ -2805,6 +4046,14 @@ class DeleteDataAccessorInput(_SerdeShape): data_accessor_id: str | None = ... """The unique identifier of the data accessor to delete.""" +class DeleteDataAccessorInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDataAccessorInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application.""" + data_accessor_id: Required[str] + """The unique identifier of the data accessor to delete.""" + @dataclass(kw_only=True) class DeleteDataAccessorOutput(_SerdeShape): """Dataclass for DeleteDataAccessorOutput structure.""" @@ -2831,6 +4080,19 @@ class DeleteDataSourceInput(_SerdeShape): data_source_id: str | None = ... """The identifier of the data source connector that you want to delete.""" +class DeleteDataSourceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDataSourceInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application used with the data + source connector. + """ + index_id: Required[str] + """The identifier of the index used with the data source connector.""" + data_source_id: Required[str] + """The identifier of the data source connector that you want to delete.""" + @dataclass(kw_only=True) class DeleteDataSourceOutput(_SerdeShape): """Dataclass for DeleteDataSourceOutput structure.""" @@ -2850,6 +4112,12 @@ class DeleteDocument(_SerdeShape): document_id: str """The identifier of the deleted document.""" +class DeleteDocumentDict(TypedDict, total=False): + """Dictionary form of `DeleteDocument`.""" + + document_id: Required[str] + """The identifier of the deleted document.""" + @dataclass(kw_only=True) class DeleteGroupInput(_SerdeShape): """Dataclass for DeleteGroupInput structure.""" @@ -2874,6 +4142,29 @@ class DeleteGroupInput(_SerdeShape): Marketing\" should access documents in the Salesforce data source. """ +class DeleteGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGroupInput`.""" + + application_id: Required[str] + """The identifier of the application in which the group mapping belongs.""" + index_id: Required[str] + """The identifier of the index you want to delete the group from.""" + group_name: Required[str] + """The name of the group you want to delete.""" + data_source_id: str | None + """ + The identifier of the data source linked to the group + + A group can be tied to multiple data sources. You can delete a group + from accessing documents in a certain data source. For example, the + groups \"Research\", \"Engineering\", and \"Sales and Marketing\" are + all tied to the company's documents stored in the data sources + Confluence and Salesforce. You want to delete \"Research\" and + \"Engineering\" groups from Salesforce, so that these groups cannot + access customer-related documents stored in Salesforce. Only \"Sales and + Marketing\" should access documents in the Salesforce data source. + """ + @dataclass(kw_only=True) class DeleteGroupOutput(_SerdeShape): """Dataclass for DeleteGroupOutput structure.""" @@ -2898,6 +4189,17 @@ class DeleteIndexInput(_SerdeShape): index_id: str | None = ... """The identifier of the Amazon Q Business index.""" +class DeleteIndexInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIndexInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application the Amazon Q + Business index is linked to. + """ + index_id: Required[str] + """The identifier of the Amazon Q Business index.""" + @dataclass(kw_only=True) class DeleteIndexOutput(_SerdeShape): """Dataclass for DeleteIndexOutput structure.""" @@ -2919,6 +4221,14 @@ class DeletePluginInput(_SerdeShape): plugin_id: str | None = ... """The identifier of the plugin being deleted.""" +class DeletePluginInputDict(TypedDict, total=False): + """Dictionary form of `DeletePluginInput`.""" + + application_id: Required[str] + """The identifier the application attached to the Amazon Q Business plugin.""" + plugin_id: Required[str] + """The identifier of the plugin being deleted.""" + @dataclass(kw_only=True) class DeletePluginOutput(_SerdeShape): """Dataclass for DeletePluginOutput structure.""" @@ -2940,6 +4250,14 @@ class DeleteRetrieverInput(_SerdeShape): retriever_id: str | None = ... """The identifier of the retriever being deleted.""" +class DeleteRetrieverInputDict(TypedDict, total=False): + """Dictionary form of `DeleteRetrieverInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application using the retriever.""" + retriever_id: Required[str] + """The identifier of the retriever being deleted.""" + @dataclass(kw_only=True) class DeleteRetrieverOutput(_SerdeShape): """Dataclass for DeleteRetrieverOutput structure.""" @@ -2961,6 +4279,14 @@ class DeleteUserInput(_SerdeShape): user_id: str | None = ... """The user email being deleted.""" +class DeleteUserInputDict(TypedDict, total=False): + """Dictionary form of `DeleteUserInput`.""" + + application_id: Required[str] + """The identifier of the application from which the user is being deleted.""" + user_id: Required[str] + """The user email being deleted.""" + @dataclass(kw_only=True) class DeleteUserOutput(_SerdeShape): """Dataclass for DeleteUserOutput structure.""" @@ -2985,6 +4311,17 @@ class DeleteWebExperienceInput(_SerdeShape): web_experience_id: str | None = ... """The identifier of the Amazon Q Business web experience being deleted.""" +class DeleteWebExperienceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteWebExperienceInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application linked to the Amazon + Q Business web experience. + """ + web_experience_id: Required[str] + """The identifier of the Amazon Q Business web experience being deleted.""" + @dataclass(kw_only=True) class DeleteWebExperienceOutput(_SerdeShape): """Dataclass for DeleteWebExperienceOutput structure.""" @@ -3006,6 +4343,14 @@ class DisassociatePermissionInput(_SerdeShape): statement_id: str | None = ... """The statement ID of the permission to remove.""" +class DisassociatePermissionInputDict(TypedDict, total=False): + """Dictionary form of `DisassociatePermissionInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application.""" + statement_id: Required[str] + """The statement ID of the permission to remove.""" + @dataclass(kw_only=True) class DisassociatePermissionOutput(_SerdeShape): """Dataclass for DisassociatePermissionOutput structure.""" @@ -3051,6 +4396,42 @@ class Document(_SerdeShape): media_extraction_configuration: MediaExtractionConfiguration | None = ... """The configuration for extracting information from media in the document.""" +class DocumentDict(TypedDict, total=False): + """Dictionary form of `Document`.""" + + id: Required[str] + """The identifier of the document.""" + attributes: Sequence[DocumentAttribute | DocumentAttributeDict] | None + """ + Custom attributes to apply to the document for refining Amazon Q + Business web experience responses. + """ + content: DocumentContent | DocumentContentDict | None + """The contents of the document.""" + content_type: str | None + """ + The file type of the document in the Blob field. + + If you want to index snippets or subsets of HTML documents instead of + the entirety of the HTML documents, you add the `HTML` start and closing + tags (`content`) around the content. + """ + title: str | None + """The title of the document.""" + access_configuration: AccessConfiguration | AccessConfigurationDict | None + """Configuration information for access permission to a document.""" + document_enrichment_configuration: ( + DocumentEnrichmentConfiguration | DocumentEnrichmentConfigurationDict | None + ) + """ + The configuration information for altering document metadata and content + during the document ingestion process. + """ + media_extraction_configuration: ( + MediaExtractionConfiguration | MediaExtractionConfigurationDict | None + ) + """The configuration for extracting information from media in the document.""" + @dataclass(kw_only=True) class DocumentAcl(_SerdeShape): """ @@ -3157,6 +4538,14 @@ class DocumentAttribute(_SerdeShape): value: DocumentAttributeValue """The value of the attribute.""" +class DocumentAttributeDict(TypedDict, total=False): + """Dictionary form of `DocumentAttribute`.""" + + name: Required[str] + """The identifier for the attribute.""" + value: Required[DocumentAttributeValue | DocumentAttributeValueDict] + """The value of the attribute.""" + @dataclass class DocumentAttributeBoostingConfigurationNumberConfiguration(_SerdeShape): """ @@ -3251,6 +4640,64 @@ class _DocumentAttributeBoostingConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> DocumentAttributeBoostingConfiguration: ... +class DocumentAttributeBoostingConfigurationNumberConfigurationDict(TypedDict): + number_configuration: ( + NumberAttributeBoostingConfiguration | NumberAttributeBoostingConfigurationDict + ) + """ + Provides information on boosting `NUMBER` type document attributes. + + `NUMBER` attributes are not supported when using + `NativeIndexConfiguration` version 2, which focuses on `DATE` attributes + for recency and `STRING` attributes for source prioritization. + """ + +class DocumentAttributeBoostingConfigurationStringConfigurationDict(TypedDict): + string_configuration: ( + StringAttributeBoostingConfiguration | StringAttributeBoostingConfigurationDict + ) + """ + Provides information on boosting `STRING` type document attributes. + + Version 2 assigns priority tiers to `STRING` attributes, establishing + clear hierarchical relationships with other boosted attributes. + """ + +class DocumentAttributeBoostingConfigurationDateConfigurationDict(TypedDict): + date_configuration: ( + DateAttributeBoostingConfiguration | DateAttributeBoostingConfigurationDict + ) + """ + Provides information on boosting `DATE` type document attributes. + + Version 2 assigns priority tiers to `DATE` attributes, establishing + clear hierarchical relationships with other boosted attributes. + """ + +class DocumentAttributeBoostingConfigurationStringListConfigurationDict(TypedDict): + string_list_configuration: ( + StringListAttributeBoostingConfiguration + | StringListAttributeBoostingConfigurationDict + ) + """ + Provides information on boosting `STRING_LIST` type document attributes. + + `STRING_LIST` attributes are not supported when using + `NativeIndexConfiguration` version 2, which focuses on `DATE` attributes + for recency and `STRING` attributes for source prioritization. + """ + +DocumentAttributeBoostingConfigurationDict = Union[ + DocumentAttributeBoostingConfigurationNumberConfigurationDict + | DocumentAttributeBoostingConfigurationStringConfigurationDict + | DocumentAttributeBoostingConfigurationDateConfigurationDict + | DocumentAttributeBoostingConfigurationStringListConfigurationDict +] +""" +Dictionary form of `DocumentAttributeBoostingConfiguration`, setting +exactly one variant. +""" + class DocumentAttributeBoostingLevel(UnknownEnumMixin, StrEnum): NONE = "NONE" LOW = "LOW" @@ -3308,6 +4755,35 @@ class DocumentAttributeCondition(_SerdeShape): document attribute. """ +class DocumentAttributeConditionDict(TypedDict, total=False): + """Dictionary form of `DocumentAttributeCondition`.""" + + key: Required[str] + """ + The identifier of the document attribute used for the condition. + + For example, 'Source_URI' could be an identifier for the attribute or + metadata field that contains source URIs associated with the documents. + + Amazon Q Business currently doesn't support `_document_body` as an + attribute key used for the condition. + """ + operator: Required[str] + """ + The identifier of the document attribute used for the condition. + + For example, 'Source_URI' could be an identifier for the attribute or + metadata field that contains source URIs associated with the documents. + + Amazon Q Business currently does not support `_document_body` as an + attribute key used for the condition. + """ + value: DocumentAttributeValue | DocumentAttributeValueDict | None + """ + The value of a document attribute. You can only provide one value for a + document attribute. + """ + @dataclass(kw_only=True) class DocumentAttributeConfiguration(_SerdeShape): """ @@ -3329,6 +4805,19 @@ class DocumentAttributeConfiguration(_SerdeShape): user to search for information on their web experience. """ +class DocumentAttributeConfigurationDict(TypedDict, total=False): + """Dictionary form of `DocumentAttributeConfiguration`.""" + + name: str | None + """The name of the document attribute.""" + type: str | None + """The type of document attribute.""" + search: str | None + """ + Information about whether the document attribute can be used by an end + user to search for information on their web experience. + """ + @dataclass(kw_only=True) class DocumentAttributeTarget(_SerdeShape): """ @@ -3372,6 +4861,27 @@ class DocumentAttributeTarget(_SerdeShape): attribute key. You cannot create a target value and set this to `TRUE`. """ +class DocumentAttributeTargetDict(TypedDict, total=False): + """Dictionary form of `DocumentAttributeTarget`.""" + + key: Required[str] + """ + The identifier of the target document attribute or metadata field. For + example, 'Department' could be an identifier for the target attribute + or metadata field that includes the department names associated with the + documents. + """ + value: DocumentAttributeValue | DocumentAttributeValueDict | None + """ + The value of a document attribute. You can only provide one value for a + document attribute. + """ + attribute_value_operator: str | None + """ + `TRUE` to delete the existing target value for your specified target + attribute key. You cannot create a target value and set this to `TRUE`. + """ + @dataclass class DocumentAttributeValueStringValue(_SerdeShape): """A string.""" @@ -3430,6 +4940,40 @@ class _DocumentAttributeValueDeserializer: self, deserializer: ShapeDeserializer ) -> DocumentAttributeValue: ... +class DocumentAttributeValueStringValueDict(TypedDict): + string_value: str + """A string.""" + +class DocumentAttributeValueStringListValueDict(TypedDict): + string_list_value: Sequence[str] + """A list of strings.""" + +class DocumentAttributeValueLongValueDict(TypedDict): + long_value: int + """A long integer value.""" + +class DocumentAttributeValueDateValueDict(TypedDict): + date_value: datetime + """ + A date expressed as an ISO 8601 string. + + It's important for the time zone to be included in the ISO 8601 + date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 + date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in + Central European Time. + """ + +DocumentAttributeValueDict = Union[ + DocumentAttributeValueStringValueDict + | DocumentAttributeValueStringListValueDict + | DocumentAttributeValueLongValueDict + | DocumentAttributeValueDateValueDict +] +""" +Dictionary form of `DocumentAttributeValue`, setting exactly one +variant. +""" + @dataclass class DocumentContentBlob(_SerdeShape): """ @@ -3475,6 +5019,23 @@ Note: class _DocumentContentDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> DocumentContent: ... +class DocumentContentBlobDict(TypedDict): + blob: bytes + """ + The contents of the document. Documents passed to the `blob` parameter + must be base64 encoded. Your code might not need to encode the document + file bytes if you're using an Amazon Web Services SDK to call Amazon Q + Business APIs. If you are calling the Amazon Q Business endpoint + directly using REST, you must base64 encode the contents before sending. + """ + +class DocumentContentS3Dict(TypedDict): + s3: S3 | S3Dict + """The path to the document in an Amazon S3 bucket.""" + +DocumentContentDict = Union[DocumentContentBlobDict | DocumentContentS3Dict] +"""Dictionary form of `DocumentContent`, setting exactly one variant.""" + class DocumentContentOperator(UnknownEnumMixin, StrEnum): DELETE = "DELETE" @@ -3506,22 +5067,77 @@ class DocumentEnrichmentConditionOperator(UnknownEnumMixin, StrEnum): NOT_EXISTS = "NOT_EXISTS" BEGINS_WITH = "BEGINS_WITH" -@dataclass(kw_only=True) -class DocumentEnrichmentConfiguration(_SerdeShape): - """ - Provides the configuration information for altering document metadata - and content during the document ingestion process. +@dataclass(kw_only=True) +class DocumentEnrichmentConfiguration(_SerdeShape): + """ + Provides the configuration information for altering document metadata + and content during the document ingestion process. + + For more information, see [Custom document + enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html). + """ + + inline_configurations: list[InlineDocumentEnrichmentConfiguration] | None = ... + """ + Configuration information to alter document attributes or metadata + fields and content when ingesting documents into Amazon Q Business. + """ + pre_extraction_hook_configuration: HookConfiguration | None = ... + """ + Provides the configuration information for invoking a Lambda function in + Lambda to alter document metadata and content when ingesting documents + into Amazon Q Business. + + You can configure your Lambda function using the + `PreExtractionHookConfiguration` parameter if you want to apply advanced + alterations on the original or raw documents. + + If you want to apply advanced alterations on the Amazon Q Business + structured documents, you must configure your Lambda function using + `PostExtractionHookConfiguration`. + + You can only invoke one Lambda function. However, this function can + invoke other functions it requires. + + For more information, see [Custom document + enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html). + """ + post_extraction_hook_configuration: HookConfiguration | None = ... + """ + Provides the configuration information for invoking a Lambda function in + Lambda to alter document metadata and content when ingesting documents + into Amazon Q Business. + + You can configure your Lambda function using the + `PreExtractionHookConfiguration` parameter if you want to apply advanced + alterations on the original or raw documents. + + If you want to apply advanced alterations on the Amazon Q Business + structured documents, you must configure your Lambda function using + `PostExtractionHookConfiguration`. + + You can only invoke one Lambda function. However, this function can + invoke other functions it requires. For more information, see [Custom document enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html). """ - inline_configurations: list[InlineDocumentEnrichmentConfiguration] | None = ... +class DocumentEnrichmentConfigurationDict(TypedDict, total=False): + """Dictionary form of `DocumentEnrichmentConfiguration`.""" + + inline_configurations: ( + Sequence[ + InlineDocumentEnrichmentConfiguration + | InlineDocumentEnrichmentConfigurationDict + ] + | None + ) """ Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business. """ - pre_extraction_hook_configuration: HookConfiguration | None = ... + pre_extraction_hook_configuration: HookConfiguration | HookConfigurationDict | None """ Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents @@ -3541,7 +5157,7 @@ class DocumentEnrichmentConfiguration(_SerdeShape): For more information, see [Custom document enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html). """ - post_extraction_hook_configuration: HookConfiguration | None = ... + post_extraction_hook_configuration: HookConfiguration | HookConfigurationDict | None """ Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents @@ -3584,6 +5200,14 @@ class EligibleDataSource(_SerdeShape): data_source_id: str | None = ... """The identifier of the data source.""" +class EligibleDataSourceDict(TypedDict, total=False): + """Dictionary form of `EligibleDataSource`.""" + + index_id: str | None + """The identifier of the index the data source is attached to.""" + data_source_id: str | None + """The identifier of the data source.""" + @dataclass(kw_only=True) class EncryptionConfiguration(_SerdeShape): """ @@ -3597,6 +5221,15 @@ class EncryptionConfiguration(_SerdeShape): asymmetric keys. """ +class EncryptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `EncryptionConfiguration`.""" + + kms_key_id: str | None + """ + The identifier of the KMS key. Amazon Q Business doesn't support + asymmetric keys. + """ + @dataclass(kw_only=True) class EndOfInputEvent(_SerdeShape): """The end of the streaming input for the `Chat` API.""" @@ -3682,6 +5315,12 @@ class GetApplicationInput(_SerdeShape): application_id: str | None = ... """The identifier of the Amazon Q Business application.""" +class GetApplicationInputDict(TypedDict, total=False): + """Dictionary form of `GetApplicationInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application.""" + @dataclass(kw_only=True) class GetApplicationOutput(_SerdeShape): """Dataclass for GetApplicationOutput structure.""" @@ -3786,6 +5425,24 @@ class GetChatControlsConfigurationInput(_SerdeShape): Amazon Q Business chat controls configured. """ +class GetChatControlsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetChatControlsConfigurationInput`.""" + + application_id: Required[str] + """ + The identifier of the application for which the chat controls are + configured. + """ + max_results: int | None + """The maximum number of configured chat controls to return.""" + next_token: str | None + """ + If the `maxResults` response was incomplete because there is more data + to retrieve, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + Amazon Q Business chat controls configured. + """ + @dataclass(kw_only=True) class GetChatControlsConfigurationOutput(_SerdeShape): """Dataclass for GetChatControlsConfigurationOutput structure.""" @@ -3851,6 +5508,20 @@ class GetChatResponseConfigurationInput(_SerdeShape): from the specified application. """ +class GetChatResponseConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetChatResponseConfigurationInput`.""" + + application_id: Required[str] + """ + The unique identifier of the Amazon Q Business application containing + the chat response configuration to retrieve. + """ + chat_response_configuration_id: Required[str] + """ + The unique identifier of the chat response configuration to retrieve + from the specified application. + """ + @dataclass(kw_only=True) class GetChatResponseConfigurationOutput(_SerdeShape): """Dataclass for GetChatResponseConfigurationOutput structure.""" @@ -3900,6 +5571,14 @@ class GetDataAccessorInput(_SerdeShape): data_accessor_id: str | None = ... """The unique identifier of the data accessor to retrieve.""" +class GetDataAccessorInputDict(TypedDict, total=False): + """Dictionary form of `GetDataAccessorInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application.""" + data_accessor_id: Required[str] + """The unique identifier of the data accessor to retrieve.""" + @dataclass(kw_only=True) class GetDataAccessorOutput(_SerdeShape): """Dataclass for GetDataAccessorOutput structure.""" @@ -3959,6 +5638,16 @@ class GetDataSourceInput(_SerdeShape): data_source_id: str | None = ... """The identifier of the data source connector.""" +class GetDataSourceInputDict(TypedDict, total=False): + """Dictionary form of `GetDataSourceInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application.""" + index_id: Required[str] + """The identfier of the index used with the data source connector.""" + data_source_id: Required[str] + """The identifier of the data source connector.""" + @dataclass(kw_only=True) class GetDataSourceOutput(_SerdeShape): """Dataclass for GetDataSourceOutput structure.""" @@ -4057,6 +5746,34 @@ class GetDocumentContentInput(_SerdeShape): output_format: str | None = ... """Document outputFormat. Defaults to RAW if not selected.""" +class GetDocumentContentInputDict(TypedDict, total=False): + """Dictionary form of `GetDocumentContentInput`.""" + + application_id: Required[str] + """ + The unique identifier of the Amazon Q Business application containing + the document. This ensures the request is scoped to the correct + application environment and its associated security policies. + """ + index_id: Required[str] + """The identifier of the index where documents are indexed.""" + data_source_id: str | None + """ + The identifier of the data source from which the document was ingested. + This field is not present if the document is ingested by directly + calling the BatchPutDocument API. If the document is from a file-upload + data source, the datasource will be + \"uploaded-docs-file-stat-datasourceid\". + """ + document_id: Required[str] + """ + The unique identifier of the document that is indexed via + BatchPutDocument API or file-upload or connector sync. It is also found + in chat or chatSync response. + """ + output_format: str | None + """Document outputFormat. Defaults to RAW if not selected.""" + @dataclass(kw_only=True) class GetDocumentContentOutput(_SerdeShape): """Dataclass for GetDocumentContentOutput structure.""" @@ -4098,6 +5815,18 @@ class GetGroupInput(_SerdeShape): data_source_id: str | None = ... """The identifier of the data source the group is attached to.""" +class GetGroupInputDict(TypedDict, total=False): + """Dictionary form of `GetGroupInput`.""" + + application_id: Required[str] + """The identifier of the application id the group is attached to.""" + index_id: Required[str] + """The identifier of the index the group is attached to.""" + group_name: Required[str] + """The name of the group.""" + data_source_id: str | None + """The identifier of the data source the group is attached to.""" + @dataclass(kw_only=True) class GetGroupOutput(_SerdeShape): """Dataclass for GetGroupOutput structure.""" @@ -4126,6 +5855,17 @@ class GetIndexInput(_SerdeShape): index_id: str | None = ... """The identifier of the Amazon Q Business index you want information on.""" +class GetIndexInputDict(TypedDict, total=False): + """Dictionary form of `GetIndexInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application connected to the + index. + """ + index_id: Required[str] + """The identifier of the Amazon Q Business index you want information on.""" + @dataclass(kw_only=True) class GetIndexOutput(_SerdeShape): """Dataclass for GetIndexOutput structure.""" @@ -4197,6 +5937,22 @@ class GetMediaInput(_SerdeShape): `ListMessages` API responses. """ +class GetMediaInputDict(TypedDict, total=False): + """Dictionary form of `GetMediaInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business which contains the media object.""" + conversation_id: Required[str] + """The identifier of the Amazon Q Business conversation.""" + message_id: Required[str] + """The identifier of the Amazon Q Business message.""" + media_id: Required[str] + """ + The identifier of the media object. You can find this in the + `sourceAttributions` returned by the `Chat`, `ChatSync`, and + `ListMessages` API responses. + """ + @dataclass(kw_only=True) class GetMediaOutput(_SerdeShape): """Dataclass for GetMediaOutput structure.""" @@ -4222,6 +5978,14 @@ class GetPluginInput(_SerdeShape): plugin_id: str | None = ... """The identifier of the plugin.""" +class GetPluginInputDict(TypedDict, total=False): + """Dictionary form of `GetPluginInput`.""" + + application_id: Required[str] + """The identifier of the application which contains the plugin.""" + plugin_id: Required[str] + """The identifier of the plugin.""" + @dataclass(kw_only=True) class GetPluginOutput(_SerdeShape): """Dataclass for GetPluginOutput structure.""" @@ -4271,6 +6035,12 @@ class GetPolicyInput(_SerdeShape): application_id: str | None = ... """The unique identifier of the Amazon Q Business application.""" +class GetPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetPolicyInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application.""" + @dataclass(kw_only=True) class GetPolicyOutput(_SerdeShape): """Dataclass for GetPolicyOutput structure.""" @@ -4294,6 +6064,14 @@ class GetRetrieverInput(_SerdeShape): retriever_id: str | None = ... """The identifier of the retriever.""" +class GetRetrieverInputDict(TypedDict, total=False): + """Dictionary form of `GetRetrieverInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application using the retriever.""" + retriever_id: Required[str] + """The identifier of the retriever.""" + @dataclass(kw_only=True) class GetRetrieverOutput(_SerdeShape): """Dataclass for GetRetrieverOutput structure.""" @@ -4344,6 +6122,14 @@ class GetUserInput(_SerdeShape): user_id: str | None = ... """The user email address attached to the user.""" +class GetUserInputDict(TypedDict, total=False): + """Dictionary form of `GetUserInput`.""" + + application_id: Required[str] + """The identifier of the application connected to the user.""" + user_id: Required[str] + """The user email address attached to the user.""" + @dataclass(kw_only=True) class GetUserOutput(_SerdeShape): """Dataclass for GetUserOutput structure.""" @@ -4370,6 +6156,17 @@ class GetWebExperienceInput(_SerdeShape): web_experience_id: str | None = ... """The identifier of the Amazon Q Business web experience.""" +class GetWebExperienceInputDict(TypedDict, total=False): + """Dictionary form of `GetWebExperienceInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application linked to the web + experience. + """ + web_experience_id: Required[str] + """The identifier of the Amazon Q Business web experience.""" + @dataclass(kw_only=True) class GetWebExperienceOutput(_SerdeShape): """Dataclass for GetWebExperienceOutput structure.""" @@ -4489,6 +6286,26 @@ class GroupMembers(_SerdeShape): Amazon S3 bucket. """ +class GroupMembersDict(TypedDict, total=False): + """Dictionary form of `GroupMembers`.""" + + member_groups: Sequence[MemberGroup | MemberGroupDict] | None + """ + A list of sub groups that belong to a group. For example, the sub groups + \"Research\", \"Engineering\", and \"Sales and Marketing\" all belong to + the group \"Company\". + """ + member_users: Sequence[MemberUser | MemberUserDict] | None + """ + A list of users that belong to a group. For example, a list of interns + all belong to the \"Interns\" group. + """ + s3_path_for_group_members: S3 | S3Dict | None + """ + Information required for Amazon Q Business to find a specific file in an + Amazon S3 bucket. + """ + class GroupStatus(UnknownEnumMixin, StrEnum): FAILED = "FAILED" SUCCEEDED = "SUCCEEDED" @@ -4535,6 +6352,15 @@ class HallucinationReductionConfiguration(_SerdeShape): for your application. The default status is `DISABLED`. """ +class HallucinationReductionConfigurationDict(TypedDict, total=False): + """Dictionary form of `HallucinationReductionConfiguration`.""" + + hallucination_reduction_control: str | None + """ + Controls whether hallucination reduction has been enabled or disabled + for your application. The default status is `DISABLED`. + """ + class HallucinationReductionControl(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -4591,6 +6417,41 @@ class HookConfiguration(_SerdeShape): process. """ +class HookConfigurationDict(TypedDict, total=False): + """Dictionary form of `HookConfiguration`.""" + + invocation_condition: ( + DocumentAttributeCondition | DocumentAttributeConditionDict | None + ) + """ + The condition used for when a Lambda function should be invoked. + + For example, you can specify a condition that if there are empty + date-time values, then Amazon Q Business should invoke a function that + inserts the current date-time. + """ + lambda_arn: str | None + """ + The Amazon Resource Name (ARN) of the Lambda function during ingestion. + For more information, see [Using Lambda functions for Amazon Q Business + document + enrichment](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/cde-lambda-operations.html). + """ + s3_bucket_name: str | None + """ + Stores the original, raw documents or the structured, parsed documents + before and after altering them. For more information, see [Data + contracts for Lambda + functions](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/cde-lambda-operations.html#cde-lambda-operations-data-contracts). + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of a role with permission to run + `PreExtractionHookConfiguration` and `PostExtractionHookConfiguration` + for altering document metadata and content during the document ingestion + process. + """ + @dataclass(kw_only=True) class IdcAuthConfiguration(_SerdeShape): """ @@ -4609,6 +6470,20 @@ class IdcAuthConfiguration(_SerdeShape): perform actions on Amazon Web Services services on your behalf. """ +class IdcAuthConfigurationDict(TypedDict, total=False): + """Dictionary form of `IdcAuthConfiguration`.""" + + idc_application_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM Identity Center Application + used to configure authentication. + """ + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role with permissions to + perform actions on Amazon Web Services services on your behalf. + """ + @dataclass class IdentityProviderConfigurationSamlConfiguration(_SerdeShape): """ @@ -4652,6 +6527,31 @@ class _IdentityProviderConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> IdentityProviderConfiguration: ... +class IdentityProviderConfigurationSamlConfigurationDict(TypedDict): + saml_configuration: SamlProviderConfiguration | SamlProviderConfigurationDict + """ + Information about the SAML 2.0-compliant identity provider (IdP) used to + authenticate end users of an Amazon Q Business web experience. + """ + +class IdentityProviderConfigurationOpenIDConnectConfigurationDict(TypedDict): + open_id_connect_configuration: ( + OpenIDConnectProviderConfiguration | OpenIDConnectProviderConfigurationDict + ) + """ + Information about the OIDC-compliant identity provider (IdP) used to + authenticate end users of an Amazon Q Business web experience. + """ + +IdentityProviderConfigurationDict = Union[ + IdentityProviderConfigurationSamlConfigurationDict + | IdentityProviderConfigurationOpenIDConnectConfigurationDict +] +""" +Dictionary form of `IdentityProviderConfiguration`, setting exactly +one variant. +""" + class IdentityType(UnknownEnumMixin, StrEnum): AWS_IAM_IDP_SAML = "AWS_IAM_IDP_SAML" AWS_IAM_IDP_OIDC = "AWS_IAM_IDP_OIDC" @@ -4674,6 +6574,15 @@ class ImageExtractionConfiguration(_SerdeShape): documents. """ +class ImageExtractionConfigurationDict(TypedDict, total=False): + """Dictionary form of `ImageExtractionConfiguration`.""" + + image_extraction_status: Required[str] + """ + Specify whether to extract semantic meaning from images and visuals from + documents. + """ + class ImageExtractionStatus(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -4712,6 +6621,12 @@ class IndexCapacityConfiguration(_SerdeShape): units: int | None = ... """The number of storage units configured for an Amazon Q Business index.""" +class IndexCapacityConfigurationDict(TypedDict, total=False): + """Dictionary form of `IndexCapacityConfiguration`.""" + + units: int | None + """The number of storage units configured for an Amazon Q Business index.""" + @dataclass(kw_only=True) class IndexStatistics(_SerdeShape): """Provides information about the number of documents in an index.""" @@ -4746,7 +6661,59 @@ class InlineDocumentEnrichmentConfiguration(_SerdeShape): enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html). """ - condition: DocumentAttributeCondition | None = ... + condition: DocumentAttributeCondition | None = ... + """ + The condition used for the target document attribute or metadata field + when ingesting documents into Amazon Q Business. You use this with + [`DocumentAttributeTarget`](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html) + to apply the condition. + + For example, you can create the 'Department' target field and have it + prefill department names associated with the documents based on + information in the 'Source_URI' field. Set the condition that if the + 'Source_URI' field contains 'financial' in its URI value, then + prefill the target field 'Department' with the target value + 'Finance' for the document. + + Amazon Q Business can't create a target field if it has not already + been created as an index field. After you create your index field, you + can create a document metadata field using `DocumentAttributeTarget`. + Amazon Q Business then will map your newly created metadata field to + your index field. + """ + target: DocumentAttributeTarget | None = ... + """ + The target document attribute or metadata field you want to alter when + ingesting documents into Amazon Q Business. + + For example, you can delete all customer identification numbers + associated with the documents, stored in the document metadata field + called 'Customer_ID' by setting the target key as 'Customer_ID' and + the deletion flag to `TRUE`. This removes all customer ID values in the + field 'Customer_ID'. This would scrub personally identifiable + information from each document's metadata. + + Amazon Q Business can't create a target field if it has not already + been created as an index field. After you create your index field, you + can create a document metadata field using + [`DocumentAttributeTarget`](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html) + . Amazon Q Business will then map your newly created document attribute + to your index field. + + You can also use this with + [`DocumentAttributeCondition`](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeCondition.html) + . + """ + document_content_operator: str | None = ... + """ + `TRUE` to delete content if the condition used for the target attribute + is met. + """ + +class InlineDocumentEnrichmentConfigurationDict(TypedDict, total=False): + """Dictionary form of `InlineDocumentEnrichmentConfiguration`.""" + + condition: DocumentAttributeCondition | DocumentAttributeConditionDict | None """ The condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business. You use this with @@ -4766,7 +6733,7 @@ class InlineDocumentEnrichmentConfiguration(_SerdeShape): Amazon Q Business then will map your newly created metadata field to your index field. """ - target: DocumentAttributeTarget | None = ... + target: DocumentAttributeTarget | DocumentAttributeTargetDict | None """ The target document attribute or metadata field you want to alter when ingesting documents into Amazon Q Business. @@ -4789,7 +6756,7 @@ class InlineDocumentEnrichmentConfiguration(_SerdeShape): [`DocumentAttributeCondition`](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeCondition.html) . """ - document_content_operator: str | None = ... + document_content_operator: str | None """ `TRUE` to delete content if the condition used for the target attribute is met. @@ -4857,6 +6824,61 @@ class InstructionCollection(_SerdeShape): patterns and formats for different types of user queries. """ +class InstructionCollectionDict(TypedDict, total=False): + """Dictionary form of `InstructionCollection`.""" + + response_length: str | None + """ + Specifies the desired length of responses generated by Amazon Q + Business. This parameter allows administrators to control whether + responses are concise and brief or more detailed and comprehensive. + """ + target_audience: str | None + """ + Defines the intended audience for the responses, allowing Amazon Q + Business to tailor its language, terminology, and explanations + appropriately. This could range from technical experts to general users + with varying levels of domain knowledge. + """ + perspective: str | None + """ + Determines the point of view or perspective from which Amazon Q Business + generates responses, such as first-person, second-person, or + third-person perspective, affecting how information is presented to + users. + """ + output_style: str | None + """ + Specifies the formatting and structural style of responses, such as + bullet points, paragraphs, step-by-step instructions, or other + organizational formats that enhance readability and comprehension. + """ + identity: str | None + """ + Defines the persona or identity that Amazon Q Business should adopt when + responding to users, allowing for customization of the assistant's + character, role, or representation within an organization. + """ + tone: str | None + """ + Controls the emotional tone and communication style of responses, such + as formal, casual, technical, friendly, or professional, to align with + organizational communication standards and user expectations. + """ + custom_instructions: str | None + """ + Allows administrators to provide specific, custom instructions that + guide how Amazon Q Business should respond in particular scenarios or to + certain types of queries, enabling fine-grained control over response + generation. + """ + examples: str | None + """ + Provides sample responses or templates that Amazon Q Business can + reference when generating responses, helping to establish consistent + patterns and formats for different types of user queries. + """ + @dataclass(kw_only=True) class InternalServerException(ServiceError, _SerdeShape): """ @@ -4880,6 +6902,12 @@ class KendraIndexConfiguration(_SerdeShape): index_id: str """The identifier of the Amazon Kendra index.""" +class KendraIndexConfigurationDict(TypedDict, total=False): + """Dictionary form of `KendraIndexConfiguration`.""" + + index_id: Required[str] + """The identifier of the Amazon Kendra index.""" + @dataclass(kw_only=True) class LicenseNotFoundException(ServiceError, _SerdeShape): """ @@ -4910,6 +6938,19 @@ class ListApplicationsInput(_SerdeShape): max_results: int | None = ... """The maximum number of Amazon Q Business applications to return.""" +class ListApplicationsInputDict(TypedDict, total=False): + """Dictionary form of `ListApplicationsInput`.""" + + next_token: str | None + """ + If the `maxResults` response was incomplete because there is more data + to retrieve, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + Amazon Q Business applications. + """ + max_results: int | None + """The maximum number of Amazon Q Business applications to return.""" + @dataclass(kw_only=True) class ListApplicationsOutput(_SerdeShape): """Dataclass for ListApplicationsOutput structure.""" @@ -4958,6 +6999,30 @@ class ListAttachmentsInput(_SerdeShape): max_results: int | None = ... """The maximum number of attachements to return.""" +class ListAttachmentsInputDict(TypedDict, total=False): + """Dictionary form of `ListAttachmentsInput`.""" + + application_id: Required[str] + """The unique identifier for the Amazon Q Business application.""" + conversation_id: str | None + """ + The unique identifier of the Amazon Q Business web experience + conversation. + """ + user_id: str | None + """ + The unique identifier of the user involved in the Amazon Q Business web + experience conversation. + """ + next_token: str | None + """ + If the number of attachments returned exceeds `maxResults`, Amazon Q + Business returns a next token as a pagination token to retrieve the next + set of attachments. + """ + max_results: int | None + """The maximum number of attachements to return.""" + @dataclass(kw_only=True) class ListAttachmentsOutput(_SerdeShape): """Dataclass for ListAttachmentsOutput structure.""" @@ -4999,6 +7064,26 @@ class ListChatResponseConfigurationsInput(_SerdeShape): number of configurations exceeds the specified `maxResults` value. """ +class ListChatResponseConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `ListChatResponseConfigurationsInput`.""" + + application_id: Required[str] + """ + The unique identifier of the Amazon Q Business application for which to + list available chat response configurations. + """ + max_results: int | None + """ + The maximum number of chat response configurations to return in a single + response. This parameter helps control pagination of results when many + configurations exist. + """ + next_token: str | None + """ + A pagination token used to retrieve the next set of results when the + number of configurations exceeds the specified `maxResults` value. + """ + @dataclass(kw_only=True) class ListChatResponseConfigurationsOutput(_SerdeShape): """Dataclass for ListChatResponseConfigurationsOutput structure.""" @@ -5044,6 +7129,26 @@ class ListConversationsInput(_SerdeShape): max_results: int | None = ... """The maximum number of Amazon Q Business conversations to return.""" +class ListConversationsInputDict(TypedDict, total=False): + """Dictionary form of `ListConversationsInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application.""" + user_id: str | None + """ + The identifier of the user involved in the Amazon Q Business web + experience conversation. + """ + next_token: str | None + """ + If the `maxResults` response was incomplete because there is more data + to retrieve, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + Amazon Q Business conversations. + """ + max_results: int | None + """The maximum number of Amazon Q Business conversations to return.""" + @dataclass(kw_only=True) class ListConversationsOutput(_SerdeShape): """Dataclass for ListConversationsOutput structure.""" @@ -5080,6 +7185,19 @@ class ListDataAccessorsInput(_SerdeShape): max_results: int | None = ... """The maximum number of results to return in a single call.""" +class ListDataAccessorsInputDict(TypedDict, total=False): + """Dictionary form of `ListDataAccessorsInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application.""" + next_token: str | None + """ + The token for the next set of results. (You received this token from a + previous call.) + """ + max_results: int | None + """The maximum number of results to return in a single call.""" + @dataclass(kw_only=True) class ListDataAccessorsOutput(_SerdeShape): """Dataclass for ListDataAccessorsOutput structure.""" @@ -5120,6 +7238,29 @@ class ListDataSourcesInput(_SerdeShape): max_results: int | None = ... """The maximum number of data source connectors to return.""" +class ListDataSourcesInputDict(TypedDict, total=False): + """Dictionary form of `ListDataSourcesInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application linked to the data + source connectors. + """ + index_id: Required[str] + """ + The identifier of the index used with one or more data source + connectors. + """ + next_token: str | None + """ + If the `maxResults` response was incomplete because there is more data + to retrieve, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + Amazon Q Business data source connectors. + """ + max_results: int | None + """The maximum number of data source connectors to return.""" + @dataclass(kw_only=True) class ListDataSourcesOutput(_SerdeShape): """Dataclass for ListDataSourcesOutput structure.""" @@ -5175,6 +7316,40 @@ class ListDataSourceSyncJobsInput(_SerdeShape): specified status. """ +class ListDataSourceSyncJobsInputDict(TypedDict, total=False): + """Dictionary form of `ListDataSourceSyncJobsInput`.""" + + data_source_id: Required[str] + """The identifier of the data source connector.""" + application_id: Required[str] + """ + The identifier of the Amazon Q Business application connected to the + data source. + """ + index_id: Required[str] + """ + The identifier of the index used with the Amazon Q Business data source + connector. + """ + next_token: str | None + """ + If the `maxResults` response was incpmplete because there is more data + to retriever, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + responses. + """ + max_results: int | None + """The maximum number of synchronization jobs to return in the response.""" + start_time: datetime | None + """The start time of the data source connector sync.""" + end_time: datetime | None + """The end time of the data source connector sync.""" + status_filter: str | None + """ + Only returns synchronization jobs with the `Status` field equal to the + specified status. + """ + @dataclass(kw_only=True) class ListDataSourceSyncJobsOutput(_SerdeShape): """Dataclass for ListDataSourceSyncJobsOutput structure.""" @@ -5215,6 +7390,25 @@ class ListDocumentsInput(_SerdeShape): max_results: int | None = ... """The maximum number of documents to return.""" +class ListDocumentsInputDict(TypedDict, total=False): + """Dictionary form of `ListDocumentsInput`.""" + + application_id: Required[str] + """The identifier of the application id the documents are attached to.""" + index_id: Required[str] + """The identifier of the index the documents are attached to.""" + data_source_ids: Sequence[str] | None + """The identifier of the data sources the documents are attached to.""" + next_token: str | None + """ + If the `maxResults` response was incomplete because there is more data + to retrieve, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + documents. + """ + max_results: int | None + """The maximum number of documents to return.""" + @dataclass(kw_only=True) class ListDocumentsOutput(_SerdeShape): """Dataclass for ListDocumentsOutput structure.""" @@ -5270,6 +7464,39 @@ class ListGroupsInput(_SerdeShape): max_results: int | None = ... """The maximum number of returned groups that are mapped to users.""" +class ListGroupsInputDict(TypedDict, total=False): + """Dictionary form of `ListGroupsInput`.""" + + application_id: Required[str] + """ + The identifier of the application for getting a list of groups mapped to + users. + """ + index_id: Required[str] + """ + The identifier of the index for getting a list of groups mapped to + users. + """ + updated_earlier_than: Required[datetime] + """ + The timestamp identifier used for the latest `PUT` or `DELETE` action + for mapping users to their groups. + """ + data_source_id: str | None + """ + The identifier of the data source for getting a list of groups mapped to + users. + """ + next_token: str | None + """ + If the previous response was incomplete (because there is more data to + retrieve), Amazon Q Business returns a pagination token in the response. + You can use this pagination token to retrieve the next set of groups + that are mapped to users. + """ + max_results: int | None + """The maximum number of returned groups that are mapped to users.""" + @dataclass(kw_only=True) class ListGroupsOutput(_SerdeShape): """Dataclass for ListGroupsOutput structure.""" @@ -5309,6 +7536,24 @@ class ListIndicesInput(_SerdeShape): max_results: int | None = ... """The maximum number of indices to return.""" +class ListIndicesInputDict(TypedDict, total=False): + """Dictionary form of `ListIndicesInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application connected to the + index. + """ + next_token: str | None + """ + If the maxResults response was incomplete because there is more data to + retrieve, Amazon Q Business returns a pagination token in the response. + You can use this pagination token to retrieve the next set of Amazon Q + Business indices. + """ + max_results: int | None + """The maximum number of indices to return.""" + @dataclass(kw_only=True) class ListIndicesOutput(_SerdeShape): """Dataclass for ListIndicesOutput structure.""" @@ -5351,6 +7596,27 @@ class ListMessagesInput(_SerdeShape): max_results: int | None = ... """The maximum number of messages to return.""" +class ListMessagesInputDict(TypedDict, total=False): + """Dictionary form of `ListMessagesInput`.""" + + conversation_id: Required[str] + """The identifier of the Amazon Q Business web experience conversation.""" + application_id: Required[str] + """The identifier for the Amazon Q Business application.""" + user_id: str | None + """ + The identifier of the user involved in the Amazon Q Business web + experience conversation. + """ + next_token: str | None + """ + If the number of messages returned exceeds `maxResults`, Amazon Q + Business returns a next token as a pagination token to retrieve the next + set of messages. + """ + max_results: int | None + """The maximum number of messages to return.""" + @dataclass(kw_only=True) class ListMessagesOutput(_SerdeShape): """Dataclass for ListMessagesOutput structure.""" @@ -5390,6 +7656,25 @@ class ListPluginActionsInput(_SerdeShape): max_results: int | None = ... """The maximum number of plugin actions to return.""" +class ListPluginActionsInputDict(TypedDict, total=False): + """Dictionary form of `ListPluginActionsInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application the plugin is + attached to. + """ + plugin_id: Required[str] + """The identifier of the Amazon Q Business plugin.""" + next_token: str | None + """ + If the number of plugin actions returned exceeds `maxResults`, Amazon Q + Business returns a next token as a pagination token to retrieve the next + set of plugin actions. + """ + max_results: int | None + """The maximum number of plugin actions to return.""" + @dataclass(kw_only=True) class ListPluginActionsOutput(_SerdeShape): """Dataclass for ListPluginActionsOutput structure.""" @@ -5426,6 +7711,21 @@ class ListPluginsInput(_SerdeShape): max_results: int | None = ... """The maximum number of documents to return.""" +class ListPluginsInputDict(TypedDict, total=False): + """Dictionary form of `ListPluginsInput`.""" + + application_id: Required[str] + """The identifier of the application the plugin is attached to.""" + next_token: str | None + """ + If the `maxResults` response was incomplete because there is more data + to retrieve, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + plugins. + """ + max_results: int | None + """The maximum number of documents to return.""" + @dataclass(kw_only=True) class ListPluginsOutput(_SerdeShape): """Dataclass for ListPluginsOutput structure.""" @@ -5462,6 +7762,20 @@ class ListPluginTypeActionsInput(_SerdeShape): max_results: int | None = ... """The maximum number of plugins to return.""" +class ListPluginTypeActionsInputDict(TypedDict, total=False): + """Dictionary form of `ListPluginTypeActionsInput`.""" + + plugin_type: Required[str] + """The type of the plugin.""" + next_token: str | None + """ + If the number of plugins returned exceeds `maxResults`, Amazon Q + Business returns a next token as a pagination token to retrieve the next + set of plugins. + """ + max_results: int | None + """The maximum number of plugins to return.""" + @dataclass(kw_only=True) class ListPluginTypeActionsOutput(_SerdeShape): """Dataclass for ListPluginTypeActionsOutput structure.""" diff --git a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/models_1.pyi b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/models_1.pyi index 169bfb36d..ecc61bb76 100644 --- a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/models_1.pyi +++ b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/models_1.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.documents import Document @@ -12,38 +13,65 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( ActionConfiguration, + ActionConfigurationDict, ActionExecution, ActionReview, AttachmentOutput, AttachmentsConfiguration, + AttachmentsConfigurationDict, AttributeFilter, + AttributeFilterDict, AudioExtractionConfiguration, + AudioExtractionConfigurationDict, AudioSourceDetails, AutoSubscriptionConfiguration, + AutoSubscriptionConfigurationDict, BasicAuthConfiguration, + BasicAuthConfigurationDict, BlockedPhrasesConfigurationUpdate, + BlockedPhrasesConfigurationUpdateDict, BrowserExtensionConfiguration, + BrowserExtensionConfigurationDict, ContentBlockerRule, + ContentBlockerRuleDict, ContentRetrievalRule, + ContentRetrievalRuleDict, ContentSource, + ContentSourceDict, CreatorModeConfiguration, + CreatorModeConfigurationDict, CustomPluginConfiguration, + CustomPluginConfigurationDict, CustomizationConfiguration, + CustomizationConfigurationDict, DataAccessorAuthenticationDetail, + DataAccessorAuthenticationDetailDict, DataSourceVpcConfiguration, + DataSourceVpcConfigurationDict, DocumentAttribute, DocumentAttributeBoostingConfiguration, + DocumentAttributeBoostingConfigurationDict, DocumentAttributeConfiguration, + DocumentAttributeConfigurationDict, DocumentEnrichmentConfiguration, + DocumentEnrichmentConfigurationDict, GroupMembers, + GroupMembersDict, HallucinationReductionConfiguration, + HallucinationReductionConfigurationDict, IdcAuthConfiguration, + IdcAuthConfigurationDict, IdentityProviderConfiguration, + IdentityProviderConfigurationDict, ImageExtractionConfiguration, + ImageExtractionConfigurationDict, ImageSourceDetails, IndexCapacityConfiguration, + IndexCapacityConfigurationDict, InstructionCollection, + InstructionCollectionDict, KendraIndexConfiguration, + KendraIndexConfigurationDict, ServiceError, _SerdeShape, ) @@ -60,6 +88,17 @@ class ListPluginTypeMetadataInput(_SerdeShape): max_results: int | None = ... """The maximum number of plugin metadata items to return.""" +class ListPluginTypeMetadataInputDict(TypedDict, total=False): + """Dictionary form of `ListPluginTypeMetadataInput`.""" + + next_token: str | None + """ + If the metadata returned exceeds `maxResults`, Amazon Q Business returns + a next token as a pagination token to retrieve the next set of metadata. + """ + max_results: int | None + """The maximum number of plugin metadata items to return.""" + @dataclass(kw_only=True) class ListPluginTypeMetadataOutput(_SerdeShape): """Dataclass for ListPluginTypeMetadataOutput structure.""" @@ -95,6 +134,20 @@ class ListRetrieversInput(_SerdeShape): max_results: int | None = ... """The maximum number of retrievers returned.""" +class ListRetrieversInputDict(TypedDict, total=False): + """Dictionary form of `ListRetrieversInput`.""" + + application_id: Required[str] + """The identifier of the Amazon Q Business application using the retriever.""" + next_token: str | None + """ + If the number of retrievers returned exceeds `maxResults`, Amazon Q + Business returns a next token as a pagination token to retrieve the next + set of retrievers. + """ + max_results: int | None + """The maximum number of retrievers returned.""" + @dataclass(kw_only=True) class ListRetrieversOutput(_SerdeShape): """Dataclass for ListRetrieversOutput structure.""" @@ -133,6 +186,24 @@ class ListSubscriptionsInput(_SerdeShape): max_results: int | None = ... """The maximum number of Amazon Q Business subscriptions to return.""" +class ListSubscriptionsInputDict(TypedDict, total=False): + """Dictionary form of `ListSubscriptionsInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application linked to the + subscription. + """ + next_token: str | None + """ + If the `maxResults` response was incomplete because there is more data + to retrieve, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + Amazon Q Business subscriptions. + """ + max_results: int | None + """The maximum number of Amazon Q Business subscriptions to return.""" + @dataclass(kw_only=True) class ListSubscriptionsOutput(_SerdeShape): """Dataclass for ListSubscriptionsOutput structure.""" @@ -166,6 +237,15 @@ class ListTagsForResourceInput(_SerdeShape): data source to get a list of tags for. """ +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Q Business application or + data source to get a list of tags for. + """ + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -202,6 +282,24 @@ class ListWebExperiencesInput(_SerdeShape): max_results: int | None = ... """The maximum number of Amazon Q Business Web Experiences to return.""" +class ListWebExperiencesInputDict(TypedDict, total=False): + """Dictionary form of `ListWebExperiencesInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application linked to the listed + web experiences. + """ + next_token: str | None + """ + If the `maxResults` response was incomplete because there is more data + to retrieve, Amazon Q Business returns a pagination token in the + response. You can use this pagination token to retrieve the next set of + Amazon Q Business conversations. + """ + max_results: int | None + """The maximum number of Amazon Q Business Web Experiences to return.""" + @dataclass(kw_only=True) class ListWebExperiencesOutput(_SerdeShape): """Dataclass for ListWebExperiencesOutput structure.""" @@ -246,6 +344,33 @@ class MediaExtractionConfiguration(_SerdeShape): media files. """ +class MediaExtractionConfigurationDict(TypedDict, total=False): + """Dictionary form of `MediaExtractionConfiguration`.""" + + image_extraction_configuration: ( + ImageExtractionConfiguration | ImageExtractionConfigurationDict | None + ) + """ + The configuration for extracting semantic meaning from images in + documents. For more information, see [Extracting semantic meaning from + images and + visuals](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/extracting-meaning-from-images.html). + """ + audio_extraction_configuration: ( + AudioExtractionConfiguration | AudioExtractionConfigurationDict | None + ) + """ + Configuration settings for extracting and processing audio content from + media files. + """ + video_extraction_configuration: ( + VideoExtractionConfiguration | VideoExtractionConfigurationDict | None + ) + """ + Configuration settings for extracting and processing video content from + media files. + """ + @dataclass(kw_only=True) class MediaTooLargeException(ServiceError, _SerdeShape): """The requested media object is too large to be returned.""" @@ -267,6 +392,14 @@ class MemberGroup(_SerdeShape): type: str | None = ... """The type of the sub group.""" +class MemberGroupDict(TypedDict, total=False): + """Dictionary form of `MemberGroup`.""" + + group_name: Required[str] + """The name of the sub group.""" + type: str | None + """The type of the sub group.""" + class MemberRelation(UnknownEnumMixin, StrEnum): AND_ = "AND" OR_ = "OR" @@ -284,6 +417,14 @@ class MemberUser(_SerdeShape): type: str | None = ... """The type of the user.""" +class MemberUserDict(TypedDict, total=False): + """Dictionary form of `MemberUser`.""" + + user_id: Required[str] + """The identifier of the user you want to map to a group.""" + type: str | None + """The type of the user.""" + @dataclass(kw_only=True) class Message(_SerdeShape): """A message in an Amazon Q Business web experience.""" @@ -346,6 +487,21 @@ class MessageUsefulnessFeedback(_SerdeShape): submitted_at: datetime """The timestamp for when the feedback was submitted.""" +class MessageUsefulnessFeedbackDict(TypedDict, total=False): + """Dictionary form of `MessageUsefulnessFeedback`.""" + + usefulness: Required[str] + """The usefulness value assigned by an end user to a message.""" + reason: str | None + """The reason for a usefulness rating.""" + comment: str | None + """ + A comment given by an end user on the usefulness of an AI-generated chat + message. + """ + submitted_at: Required[datetime] + """The timestamp for when the feedback was submitted.""" + class MessageUsefulnessReason(UnknownEnumMixin, StrEnum): NOT_FACTUALLY_CORRECT = "NOT_FACTUALLY_CORRECT" HARMFUL_OR_UNSAFE = "HARMFUL_OR_UNSAFE" @@ -425,6 +581,50 @@ class NativeIndexConfiguration(_SerdeShape): document attribute data types. """ +class NativeIndexConfigurationDict(TypedDict, total=False): + """Dictionary form of `NativeIndexConfiguration`.""" + + index_id: Required[str] + """The identifier for the Amazon Q Business index.""" + version: int | None + """ + A read-only field that specifies the version of the + `NativeIndexConfiguration`. + + Amazon Q Business introduces enhanced document retrieval capabilities in + version 2 of `NativeIndexConfiguration`, focusing on streamlined + metadata boosting that prioritizes recency and source relevance to + deliver more accurate responses to your queries. Version 2 has the + following differences from version 1: + + - Version 2 supports a single Date field (created_at OR last_updated_at) + for recency boosting + + - Version 2 supports a single String field with an ordered list of up to + 5 values + + - Version 2 introduces number-based boost levels (ONE, TWO) alongside + the text-based levels + + - Version 2 allows specifying prioritization between Date and String + fields + + - Version 2 maintains backward compatibility with existing + configurations + """ + boosting_override: ( + Mapping[ + str, + DocumentAttributeBoostingConfiguration + | DocumentAttributeBoostingConfigurationDict, + ] + | None + ) + """ + Overrides the default boosts applied by Amazon Q Business to supported + document attribute data types. + """ + @dataclass(kw_only=True) class NoAuthConfiguration(_SerdeShape): """ @@ -432,6 +632,9 @@ class NoAuthConfiguration(_SerdeShape): authorization requirement. """ +class NoAuthConfigurationDict(TypedDict, total=False): + """Dictionary form of `NoAuthConfiguration`.""" + @dataclass(kw_only=True) class NumberAttributeBoostingConfiguration(_SerdeShape): """ @@ -463,6 +666,24 @@ class NumberAttributeBoostingConfiguration(_SerdeShape): important) and DESCENDING (lower numbers are more important). """ +class NumberAttributeBoostingConfigurationDict(TypedDict, total=False): + """Dictionary form of `NumberAttributeBoostingConfiguration`.""" + + boosting_level: Required[str] + """ + Specifies the priority of boosted document attributes in relation to + other boosted attributes. This parameter determines how strongly the + attribute influences document ranking in search results. `NUMBER` + attributes can serve as additional boosting factors when needed, but are + not supported when using `NativeIndexConfiguration` version 2. + """ + boosting_type: str | None + """ + Specifies whether higher or lower numeric values should be prioritized + when boosting. Valid values are ASCENDING (higher numbers are more + important) and DESCENDING (lower numbers are more important). + """ + class NumberAttributeBoostingType(UnknownEnumMixin, StrEnum): PRIORITIZE_LARGER_VALUES = "PRIORITIZE_LARGER_VALUES" PRIORITIZE_SMALLER_VALUES = "PRIORITIZE_SMALLER_VALUES" @@ -496,6 +717,31 @@ class OAuth2ClientCredentialConfiguration(_SerdeShape): authorization code for an access token. """ +class OAuth2ClientCredentialConfigurationDict(TypedDict, total=False): + """Dictionary form of `OAuth2ClientCredentialConfiguration`.""" + + secret_arn: Required[str] + """ + The ARN of the Secrets Manager secret that stores the OAuth 2.0 + credentials/token used for plugin configuration. + """ + role_arn: Required[str] + """ + The ARN of an IAM role used by Amazon Q Business to access the OAuth 2.0 + authentication credentials stored in a Secrets Manager secret. + """ + authorization_url: str | None + """ + The redirect URL required by the OAuth 2.0 protocol for Amazon Q + Business to authenticate a plugin user through a third party + authentication server. + """ + token_url: str | None + """ + The URL required by the OAuth 2.0 protocol to exchange an end user + authorization code for an access token. + """ + @dataclass(kw_only=True) class OpenIDConnectProviderConfiguration(_SerdeShape): """ @@ -514,6 +760,20 @@ class OpenIDConnectProviderConfiguration(_SerdeShape): Manager secret containing your OIDC client secret. """ +class OpenIDConnectProviderConfigurationDict(TypedDict, total=False): + """Dictionary form of `OpenIDConnectProviderConfiguration`.""" + + secrets_arn: Required[str] + """ + The Amazon Resource Name (ARN) of a Secrets Manager secret containing + the OIDC client secret. + """ + secrets_role: Required[str] + """ + An IAM role with permissions to access KMS to decrypt the Secrets + Manager secret containing your OIDC client secret. + """ + @dataclass(kw_only=True) class OrchestrationConfiguration(_SerdeShape): """ @@ -533,6 +793,15 @@ class OrchestrationConfiguration(_SerdeShape): deactivated for your Amazon Q Business application. """ +class OrchestrationConfigurationDict(TypedDict, total=False): + """Dictionary form of `OrchestrationConfiguration`.""" + + control: Required[str] + """ + Status information about whether chat orchestration is activated or + deactivated for your Amazon Q Business application. + """ + class OrchestrationControl(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -562,6 +831,22 @@ class PermissionCondition(_SerdeShape): condition_values: list[str] """The values to compare against using the specified condition operator.""" +class PermissionConditionDict(TypedDict, total=False): + """Dictionary form of `PermissionCondition`.""" + + condition_operator: Required[str] + """ + The operator to use for the condition evaluation. This determines how + the condition values are compared. + """ + condition_key: Required[str] + """ + The key for the condition. This identifies the attribute that the + condition applies to. + """ + condition_values: Required[Sequence[str]] + """The values to compare against using the specified condition operator.""" + class PermissionConditionOperator(UnknownEnumMixin, StrEnum): STRING_EQUALS = "StringEquals" @@ -580,6 +865,16 @@ class PersonalizationConfiguration(_SerdeShape): your IAM Identity Center instance. """ +class PersonalizationConfigurationDict(TypedDict, total=False): + """Dictionary form of `PersonalizationConfiguration`.""" + + personalization_control_mode: Required[str] + """ + An option to allow Amazon Q Business to customize chat responses using + user specific metadata---specifically, location and job information---in + your IAM Identity Center instance. + """ + class PersonalizationControlMode(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -665,6 +960,44 @@ class _PluginAuthConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> PluginAuthConfiguration: ... +class PluginAuthConfigurationBasicAuthConfigurationDict(TypedDict): + basic_auth_configuration: BasicAuthConfiguration | BasicAuthConfigurationDict + """ + Information about the basic authentication credentials used to configure + a plugin. + """ + +class PluginAuthConfigurationOAuth2ClientCredentialConfigurationDict(TypedDict): + o_auth2_client_credential_configuration: ( + OAuth2ClientCredentialConfiguration | OAuth2ClientCredentialConfigurationDict + ) + """ + Information about the OAuth 2.0 authentication credential/token used to + configure a plugin. + """ + +class PluginAuthConfigurationNoAuthConfigurationDict(TypedDict): + no_auth_configuration: NoAuthConfiguration | NoAuthConfigurationDict + """Information about invoking a custom plugin without any authentication.""" + +class PluginAuthConfigurationIdcAuthConfigurationDict(TypedDict): + idc_auth_configuration: IdcAuthConfiguration | IdcAuthConfigurationDict + """ + Information about the IAM Identity Center Application used to configure + authentication for a plugin. + """ + +PluginAuthConfigurationDict = Union[ + PluginAuthConfigurationBasicAuthConfigurationDict + | PluginAuthConfigurationOAuth2ClientCredentialConfigurationDict + | PluginAuthConfigurationNoAuthConfigurationDict + | PluginAuthConfigurationIdcAuthConfigurationDict +] +""" +Dictionary form of `PluginAuthConfiguration`, setting exactly one +variant. +""" + class PluginBuildStatus(UnknownEnumMixin, StrEnum): READY = "READY" CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS" @@ -689,6 +1022,12 @@ class PluginConfiguration(_SerdeShape): plugin_id: str """The identifier of the plugin you want to use.""" +class PluginConfigurationDict(TypedDict, total=False): + """Dictionary form of `PluginConfiguration`.""" + + plugin_id: Required[str] + """The identifier of the plugin you want to use.""" + class PluginState(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -764,6 +1103,17 @@ for generating Amazon Q Business conversation responses. class _PrincipalDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> Principal: ... +class Principal_UserDict(TypedDict): + user: PrincipalUser | PrincipalUserDict + """The user associated with the principal.""" + +class Principal_GroupDict(TypedDict): + group: PrincipalGroup | PrincipalGroupDict + """The group associated with the principal.""" + +PrincipalDict = Union[Principal_UserDict | Principal_GroupDict] +"""Dictionary form of `Principal`, setting exactly one variant.""" + @dataclass(kw_only=True) class PrincipalGroup(_SerdeShape): """Provides information about a group associated with the principal.""" @@ -778,6 +1128,19 @@ class PrincipalGroup(_SerdeShape): membership_type: str | None = ... """The type of group.""" +class PrincipalGroupDict(TypedDict, total=False): + """Dictionary form of `PrincipalGroup`.""" + + name: str | None + """The name of the group.""" + access: Required[str] + """ + Provides information about whether to allow or deny access to the + principal. + """ + membership_type: str | None + """The type of group.""" + @dataclass(kw_only=True) class PrincipalUser(_SerdeShape): """Provides information about a user associated with a principal.""" @@ -792,6 +1155,19 @@ class PrincipalUser(_SerdeShape): membership_type: str | None = ... """The type of group.""" +class PrincipalUserDict(TypedDict, total=False): + """Dictionary form of `PrincipalUser`.""" + + id: str | None + """The identifier of the user.""" + access: Required[str] + """ + Provides information about whether to allow or deny access to the + principal. + """ + membership_type: str | None + """The type of group.""" + @dataclass(kw_only=True) class PutFeedbackInput(_SerdeShape): """Dataclass for PutFeedbackInput structure.""" @@ -809,6 +1185,22 @@ class PutFeedbackInput(_SerdeShape): message_usefulness: MessageUsefulnessFeedback | None = ... """The feedback usefulness value given by the user to the chat message.""" +class PutFeedbackInputDict(TypedDict, total=False): + """Dictionary form of `PutFeedbackInput`.""" + + application_id: Required[str] + """The identifier of the application associated with the feedback.""" + user_id: str | None + """The identifier of the user giving the feedback.""" + conversation_id: Required[str] + """The identifier of the conversation the feedback is attached to.""" + message_id: Required[str] + """The identifier of the chat message that the feedback was given for.""" + message_copied_at: datetime | None + """The timestamp for when the feedback was recorded.""" + message_usefulness: MessageUsefulnessFeedback | MessageUsefulnessFeedbackDict | None + """The feedback usefulness value given by the user to the chat message.""" + @dataclass(kw_only=True) class PutFeedbackOutput(_SerdeShape): """Dataclass for PutFeedbackOutput structure.""" @@ -867,29 +1259,83 @@ class PutGroupInput(_SerdeShape): file that contains your list of users that belong to a group. """ -@dataclass(kw_only=True) -class PutGroupOutput(_SerdeShape): - """Dataclass for PutGroupOutput structure.""" +class PutGroupInputDict(TypedDict, total=False): + """Dictionary form of `PutGroupInput`.""" - response_metadata: ResponseMetadata = ... + application_id: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The identifier of the application in which the user and group mapping + belongs. """ - -@dataclass(kw_only=True) -class QAppsConfiguration(_SerdeShape): - """Configuration information about Amazon Q Apps.""" - - q_apps_control_mode: str + index_id: Required[str] """ - Status information about whether end users can create and use Amazon Q - Apps in the web experience. + The identifier of the index in which you want to map users to their + groups. """ - -class QAppsControlMode(UnknownEnumMixin, StrEnum): + group_name: Required[str] + """ + The list that contains your users or sub groups that belong the same + group. For example, the group \"Company\" includes the user \"CEO\" and + the sub groups \"Research\", \"Engineering\", and \"Sales and + Marketing\". + """ + data_source_id: str | None + """ + The identifier of the data source for which you want to map users to + their groups. This is useful if a group is tied to multiple data + sources, but you only want the group to access documents of a certain + data source. For example, the groups \"Research\", \"Engineering\", and + \"Sales and Marketing\" are all tied to the company's documents stored + in the data sources Confluence and Salesforce. However, \"Sales and + Marketing\" team only needs access to customer-related documents stored + in Salesforce. + """ + type: Required[str] + """The type of the group.""" + group_members: Required[GroupMembers | GroupMembersDict] + """ + A list of users or sub groups that belong to a group. This is for + generating Amazon Q Business chat results only from document a user has + access to. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role that has access to the S3 + file that contains your list of users that belong to a group. + """ + +@dataclass(kw_only=True) +class PutGroupOutput(_SerdeShape): + """Dataclass for PutGroupOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class QAppsConfiguration(_SerdeShape): + """Configuration information about Amazon Q Apps.""" + + q_apps_control_mode: str + """ + Status information about whether end users can create and use Amazon Q + Apps in the web experience. + """ + +class QAppsConfigurationDict(TypedDict, total=False): + """Dictionary form of `QAppsConfiguration`.""" + + q_apps_control_mode: Required[str] + """ + Status information about whether end users can create and use Amazon Q + Apps in the web experience. + """ + +class QAppsControlMode(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -909,6 +1355,16 @@ class QuickSightConfiguration(_SerdeShape): operations](https://docs.aws.amazon.com/quicksight/latest/developerguide/namespace-operations.html). """ +class QuickSightConfigurationDict(TypedDict, total=False): + """Dictionary form of `QuickSightConfiguration`.""" + + client_namespace: Required[str] + """ + The Amazon Quick Suite namespace that is used as the identity provider. + For more information about Quick Suite namespaces, see [Namespace + operations](https://docs.aws.amazon.com/quicksight/latest/developerguide/namespace-operations.html). + """ + class ReadAccessType(UnknownEnumMixin, StrEnum): ALLOW = "ALLOW" DENY = "DENY" @@ -964,6 +1420,16 @@ class ResponseConfiguration(_SerdeShape): perspective, output style, identity, tone, and custom instructions. """ +class ResponseConfigurationDict(TypedDict, total=False): + """Dictionary form of `ResponseConfiguration`.""" + + instruction_collection: InstructionCollection | InstructionCollectionDict | None + """ + A collection of instructions that guide how Amazon Q Business generates + responses, including parameters for response length, target audience, + perspective, output style, identity, tone, and custom instructions. + """ + class ResponseConfigurationType(UnknownEnumMixin, StrEnum): ALL = "ALL" @@ -1035,6 +1501,29 @@ class _RetrieverConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> RetrieverConfiguration: ... +class RetrieverConfigurationNativeIndexConfigurationDict(TypedDict): + native_index_configuration: NativeIndexConfiguration | NativeIndexConfigurationDict + """ + Provides information on how a Amazon Q Business index used as a + retriever for your Amazon Q Business application is configured. + """ + +class RetrieverConfigurationKendraIndexConfigurationDict(TypedDict): + kendra_index_configuration: KendraIndexConfiguration | KendraIndexConfigurationDict + """ + Provides information on how the Amazon Kendra index used as a retriever + for your Amazon Q Business application is configured. + """ + +RetrieverConfigurationDict = Union[ + RetrieverConfigurationNativeIndexConfigurationDict + | RetrieverConfigurationKendraIndexConfigurationDict +] +""" +Dictionary form of `RetrieverConfiguration`, setting exactly one +variant. +""" + @dataclass(kw_only=True) class RetrieverContentSource(_SerdeShape): """Specifies a retriever as the content source for a search.""" @@ -1042,6 +1531,12 @@ class RetrieverContentSource(_SerdeShape): retriever_id: str """The unique identifier of the retriever to use as the content source.""" +class RetrieverContentSourceDict(TypedDict, total=False): + """Dictionary form of `RetrieverContentSource`.""" + + retriever_id: Required[str] + """The unique identifier of the retriever to use as the content source.""" + class RetrieverStatus(UnknownEnumMixin, StrEnum): CREATING = "CREATING" ACTIVE = "ACTIVE" @@ -1067,6 +1562,18 @@ class Rule(_SerdeShape): rule_configuration: RuleConfiguration | None = ... """The configuration information for a rule.""" +class RuleDict(TypedDict, total=False): + """Dictionary form of `Rule`.""" + + included_users_and_groups: UsersAndGroups | UsersAndGroupsDict | None + """Users and groups to be included in a rule.""" + excluded_users_and_groups: UsersAndGroups | UsersAndGroupsDict | None + """Users and groups to be excluded from a rule.""" + rule_type: Required[str] + """The type of rule.""" + rule_configuration: RuleConfiguration | RuleConfigurationDict | None + """The configuration information for a rule.""" + @dataclass class RuleConfigurationContentBlockerRule(_SerdeShape): """ @@ -1105,6 +1612,25 @@ RuleConfiguration = Union[ class _RuleConfigurationDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> RuleConfiguration: ... +class RuleConfigurationContentBlockerRuleDict(TypedDict): + content_blocker_rule: ContentBlockerRule | ContentBlockerRuleDict + """ + A rule for configuring how Amazon Q Business responds when it encounters + a a blocked topic. + """ + +class RuleConfigurationContentRetrievalRuleDict(TypedDict): + content_retrieval_rule: ContentRetrievalRule | ContentRetrievalRuleDict + """ + Rules for retrieving content from data sources connected to a Amazon Q + Business application for a specific topic control configuration. + """ + +RuleConfigurationDict = Union[ + RuleConfigurationContentBlockerRuleDict | RuleConfigurationContentRetrievalRuleDict +] +"""Dictionary form of `RuleConfiguration`, setting exactly one variant.""" + class RuleType(UnknownEnumMixin, StrEnum): CONTENT_BLOCKER_RULE = "CONTENT_BLOCKER_RULE" CONTENT_RETRIEVAL_RULE = "CONTENT_RETRIEVAL_RULE" @@ -1121,6 +1647,14 @@ class S3(_SerdeShape): key: str """The name of the file.""" +class S3Dict(TypedDict, total=False): + """Dictionary form of `S3`.""" + + bucket: Required[str] + """The name of the S3 bucket that contains the file.""" + key: Required[str] + """The name of the file.""" + @dataclass(kw_only=True) class SamlConfiguration(_SerdeShape): """ @@ -1143,6 +1677,23 @@ class SamlConfiguration(_SerdeShape): user_group_attribute: str | None = ... """The group attribute name in your IdP that maps to user groups.""" +class SamlConfigurationDict(TypedDict, total=False): + """Dictionary form of `SamlConfiguration`.""" + + metadata_xml: Required[str] + """The metadata XML that your IdP generated.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of an IAM role assumed by users when they + authenticate into their Amazon Q Business web experience, containing the + relevant Amazon Q Business permissions for conversing with Amazon Q + Business. + """ + user_id_attribute: Required[str] + """The user attribute name in your IdP that maps to the user email.""" + user_group_attribute: str | None + """The group attribute name in your IdP that maps to user groups.""" + @dataclass(kw_only=True) class SamlProviderConfiguration(_SerdeShape): """ @@ -1156,6 +1707,15 @@ class SamlProviderConfiguration(_SerdeShape): authentication. """ +class SamlProviderConfigurationDict(TypedDict, total=False): + """Dictionary form of `SamlProviderConfiguration`.""" + + authentication_url: Required[str] + """ + The URL where Amazon Q Business end users will be redirected for + authentication. + """ + @dataclass(kw_only=True) class ScoreAttributes(_SerdeShape): """Provides information about the relevance score of content.""" @@ -1193,6 +1753,28 @@ class SearchRelevantContentInput(_SerdeShape): previous call.) """ +class SearchRelevantContentInputDict(TypedDict, total=False): + """Dictionary form of `SearchRelevantContentInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application to search.""" + query_text: Required[str] + """The text to search for.""" + content_source: Required[ContentSource | ContentSourceDict] + """The source of content to search in.""" + attribute_filter: AttributeFilter | AttributeFilterDict | None + """ + Enables filtering of responses based on document attributes or metadata + fields. + """ + max_results: int | None + """The maximum number of results to return.""" + next_token: str | None + """ + The token for the next set of results. (You received this token from a + previous call.) + """ + @dataclass(kw_only=True) class SearchRelevantContentOutput(_SerdeShape): """Dataclass for SearchRelevantContentOutput structure.""" @@ -1354,6 +1936,19 @@ class StartDataSourceSyncJobInput(_SerdeShape): index_id: str | None = ... """The identifier of the index used with the data source connector.""" +class StartDataSourceSyncJobInputDict(TypedDict, total=False): + """Dictionary form of `StartDataSourceSyncJobInput`.""" + + data_source_id: Required[str] + """The identifier of the data source connector.""" + application_id: Required[str] + """ + The identifier of Amazon Q Business application the data source is + connected to. + """ + index_id: Required[str] + """The identifier of the index used with the data source connector.""" + @dataclass(kw_only=True) class StartDataSourceSyncJobOutput(_SerdeShape): """Dataclass for StartDataSourceSyncJobOutput structure.""" @@ -1389,6 +1984,22 @@ class StopDataSourceSyncJobInput(_SerdeShape): connector. """ +class StopDataSourceSyncJobInputDict(TypedDict, total=False): + """Dictionary form of `StopDataSourceSyncJobInput`.""" + + data_source_id: Required[str] + """The identifier of the data source connector.""" + application_id: Required[str] + """ + The identifier of the Amazon Q Business application that the data source + is connected to. + """ + index_id: Required[str] + """ + The identifier of the index used with the Amazon Q Business data source + connector. + """ + @dataclass(kw_only=True) class StopDataSourceSyncJobOutput(_SerdeShape): """Dataclass for StopDataSourceSyncJobOutput structure.""" @@ -1440,6 +2051,28 @@ class StringAttributeBoostingConfiguration(_SerdeShape): specify up to five values in order of priority. """ +class StringAttributeBoostingConfigurationDict(TypedDict, total=False): + """Dictionary form of `StringAttributeBoostingConfiguration`.""" + + boosting_level: Required[str] + """ + Specifies the priority tier ranking of boosting applied to document + attributes. For version 2, this parameter indicates the relative ranking + between boosted fields (ONE being highest priority, TWO being second + highest, etc.) and determines the order in which attributes influence + document ranking in search results. For version 1, this parameter + specifies the boosting intensity. For version 2, boosting intensity + (VERY HIGH, HIGH, MEDIUM, LOW, NONE) are not supported. Note that in + version 2, you are not allowed to boost on only one field and make this + value TWO. + """ + attribute_value_boosting: Mapping[str, str] | None + """ + Specifies specific values of a `STRING` type document attribute being + boosted. When using `NativeIndexConfiguration` version 2, you can + specify up to five values in order of priority. + """ + class StringAttributeValueBoostingLevel(UnknownEnumMixin, StrEnum): LOW = "LOW" MEDIUM = "MEDIUM" @@ -1486,6 +2119,18 @@ class StringListAttributeBoostingConfiguration(_SerdeShape): not supported when using `NativeIndexConfiguration` version 2. """ +class StringListAttributeBoostingConfigurationDict(TypedDict, total=False): + """Dictionary form of `StringListAttributeBoostingConfiguration`.""" + + boosting_level: Required[str] + """ + Specifies the priority of boosted document attributes in relation to + other boosted attributes. This parameter determines how strongly the + attribute influences document ranking in search results. `STRING_LIST` + attributes can serve as additional boosting factors when needed, but are + not supported when using `NativeIndexConfiguration` version 2. + """ + @dataclass(kw_only=True) class Subscription(_SerdeShape): """ @@ -1566,6 +2211,28 @@ Amazon Q Business application. class _SubscriptionPrincipalDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> SubscriptionPrincipal: ... +class SubscriptionPrincipalUserDict(TypedDict): + user: str + """ + The identifier of a user in the IAM Identity Center instance connected + to the Amazon Q Business application. + """ + +class SubscriptionPrincipalGroupDict(TypedDict): + group: str + """ + The identifier of a group in the IAM Identity Center instance connected + to the Amazon Q Business application. + """ + +SubscriptionPrincipalDict = Union[ + SubscriptionPrincipalUserDict | SubscriptionPrincipalGroupDict +] +""" +Dictionary form of `SubscriptionPrincipal`, setting exactly one +variant. +""" + class SubscriptionType(UnknownEnumMixin, StrEnum): Q_LITE = "Q_LITE" Q_BUSINESS = "Q_BUSINESS" @@ -1593,6 +2260,20 @@ class Tag(_SerdeShape): it can't be null. """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """ + The key for the tag. Keys are not case sensitive and must be unique for + the Amazon Q Business application or data source. + """ + value: Required[str] + """ + The value associated with the tag. The value may be an empty string but + it can't be null. + """ + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -1609,6 +2290,21 @@ class TagResourceInput(_SerdeShape): new value. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Q Business application or + data source to tag. + """ + tags: Required[Sequence[Tag | TagDict]] + """ + A list of tag keys to add to the Amazon Q Business application or data + source. If a tag already exists, the existing value is replaced with the + new value. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -1747,6 +2443,25 @@ class TopicConfiguration(_SerdeShape): rules: list[Rule] """Rules defined for a topic configuration.""" +class TopicConfigurationDict(TypedDict, total=False): + """Dictionary form of `TopicConfiguration`.""" + + name: Required[str] + """A name for your topic control configuration.""" + description: str | None + """ + A description for your topic control configuration. Use this to outline + how the large language model (LLM) should use this topic control + configuration. + """ + example_chat_messages: Sequence[str] | None + """ + A list of example phrases that you expect the end user to use in + relation to the topic. + """ + rules: Required[Sequence[Rule | RuleDict]] + """Rules defined for a topic configuration.""" + @dataclass(kw_only=True) class UntagResourceInput(_SerdeShape): """Dataclass for UntagResourceInput structure.""" @@ -1762,6 +2477,20 @@ class UntagResourceInput(_SerdeShape): data source. If a tag key does not exist on the resource, it is ignored. """ +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Q Business application, or + data source to remove the tag from. + """ + tag_keys: Required[Sequence[str]] + """ + A list of tag keys to remove from the Amazon Q Business application or + data source. If a tag key does not exist on the resource, it is ignored. + """ + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -1816,16 +2545,63 @@ class UpdateApplicationInput(_SerdeShape): management. """ -@dataclass(kw_only=True) -class UpdateApplicationOutput(_SerdeShape): - """Dataclass for UpdateApplicationOutput structure.""" +class UpdateApplicationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateApplicationInput`.""" - response_metadata: ResponseMetadata = ... + application_id: Required[str] + """The identifier of the Amazon Q Business application.""" + identity_center_instance_arn: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The Amazon Resource Name (ARN) of the IAM Identity Center instance you + are either creating for---or connecting to---your Amazon Q Business + application. + """ + display_name: str | None + """A name for the Amazon Q Business application.""" + description: str | None + """A description for the Amazon Q Business application.""" + role_arn: str | None + """ + An Amazon Web Services Identity and Access Management (IAM) role that + gives Amazon Q Business permission to access Amazon CloudWatch logs and + metrics. + """ + attachments_configuration: ( + AttachmentsConfiguration | AttachmentsConfigurationDict | None + ) + """An option to allow end users to upload files directly during chat.""" + q_apps_configuration: QAppsConfiguration | QAppsConfigurationDict | None + """ + An option to allow end users to create and use Amazon Q Apps in the web + experience. + """ + personalization_configuration: ( + PersonalizationConfiguration | PersonalizationConfigurationDict | None + ) + """ + Configuration information about chat response personalization. For more + information, see [Personalizing chat + responses](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html). + """ + auto_subscription_configuration: ( + AutoSubscriptionConfiguration | AutoSubscriptionConfigurationDict | None + ) + """ + An option to enable updating the default subscription type assigned to + an Amazon Q Business application using IAM identity federation for user + management. + """ + +@dataclass(kw_only=True) +class UpdateApplicationOutput(_SerdeShape): + """Dataclass for UpdateApplicationOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) @@ -1867,6 +2643,56 @@ class UpdateChatControlsConfigurationInput(_SerdeShape): ) = ... """The hallucination reduction settings for your application.""" +class UpdateChatControlsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateChatControlsConfigurationInput`.""" + + application_id: Required[str] + """ + The identifier of the application for which the chat controls are + configured. + """ + client_token: str | None + """ + A token that you provide to identify the request to update a Amazon Q + Business application chat configuration. + + This field is autopopulated if not provided. + """ + response_scope: str | None + """ + The response scope configured for your application. This determines + whether your application uses its retrieval augmented generation (RAG) + system to generate answers only from your enterprise data, or also uses + the large language models (LLM) knowledge to respons to end user + questions in chat. + """ + orchestration_configuration: ( + OrchestrationConfiguration | OrchestrationConfigurationDict | None + ) + """The chat response orchestration settings for your application.""" + blocked_phrases_configuration_update: ( + BlockedPhrasesConfigurationUpdate | BlockedPhrasesConfigurationUpdateDict | None + ) + """The phrases blocked from chat by your chat control configuration.""" + topic_configurations_to_create_or_update: ( + Sequence[TopicConfiguration | TopicConfigurationDict] | None + ) + """The configured topic specific chat controls you want to update.""" + topic_configurations_to_delete: ( + Sequence[TopicConfiguration | TopicConfigurationDict] | None + ) + """The configured topic specific chat controls you want to delete.""" + creator_mode_configuration: ( + CreatorModeConfiguration | CreatorModeConfigurationDict | None + ) + """The configuration details for `CREATOR_MODE`.""" + hallucination_reduction_configuration: ( + HallucinationReductionConfiguration + | HallucinationReductionConfigurationDict + | None + ) + """The hallucination reduction settings for your application.""" + @dataclass(kw_only=True) class UpdateChatControlsConfigurationOutput(_SerdeShape): """Dataclass for UpdateChatControlsConfigurationOutput structure.""" @@ -1913,6 +2739,41 @@ class UpdateChatResponseConfigurationInput(_SerdeShape): This field is autopopulated if not provided. """ +class UpdateChatResponseConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateChatResponseConfigurationInput`.""" + + application_id: Required[str] + """ + The unique identifier of the Amazon Q Business application containing + the chat response configuration to update. + """ + chat_response_configuration_id: Required[str] + """ + The unique identifier of the chat response configuration to update + within the specified application. + """ + display_name: str | None + """ + The new human-readable name to assign to the chat response + configuration, making it easier to identify among multiple + configurations. + """ + response_configurations: Required[ + Mapping[str, ResponseConfiguration | ResponseConfigurationDict] + ] + """ + The updated collection of response configuration settings that define + how Amazon Q Business generates and formats responses to user queries. + """ + client_token: str | None + """ + A unique, case-sensitive identifier to ensure idempotency of the + request. This helps prevent the same update from being processed + multiple times if retries occur. + + This field is autopopulated if not provided. + """ + @dataclass(kw_only=True) class UpdateChatResponseConfigurationOutput(_SerdeShape): """Dataclass for UpdateChatResponseConfigurationOutput structure.""" @@ -1947,6 +2808,31 @@ class UpdateDataAccessorInput(_SerdeShape): display_name: str | None = ... """The updated friendly name for the data accessor.""" +class UpdateDataAccessorInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDataAccessorInput`.""" + + application_id: Required[str] + """The unique identifier of the Amazon Q Business application.""" + data_accessor_id: Required[str] + """The unique identifier of the data accessor to update.""" + action_configurations: Required[ + Sequence[ActionConfiguration | ActionConfigurationDict] + ] + """ + The updated list of action configurations specifying the allowed actions + and any associated filters. + """ + authentication_detail: ( + DataAccessorAuthenticationDetail | DataAccessorAuthenticationDetailDict | None + ) + """ + The updated authentication configuration details for the data accessor. + This specifies how the ISV will authenticate when accessing data through + this data accessor. + """ + display_name: str | None + """The updated friendly name for the data accessor.""" + @dataclass(kw_only=True) class UpdateDataAccessorOutput(_SerdeShape): """Dataclass for UpdateDataAccessorOutput structure.""" @@ -2007,6 +2893,59 @@ class UpdateDataSourceInput(_SerdeShape): your data source. """ +class UpdateDataSourceInputDict(TypedDict, total=False): + """Dictionary form of `UpdateDataSourceInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application the data source is + attached to. + """ + index_id: Required[str] + """The identifier of the index attached to the data source connector.""" + data_source_id: Required[str] + """The identifier of the data source connector.""" + display_name: str | None + """A name of the data source connector.""" + configuration: Document | None + """ + Provides the configuration information for an Amazon Q Business data + source. + """ + vpc_configuration: ( + DataSourceVpcConfiguration | DataSourceVpcConfigurationDict | None + ) + """ + Provides configuration information needed to connect to an Amazon VPC + (Virtual Private Cloud). + """ + description: str | None + """The description of the data source connector.""" + sync_schedule: str | None + """The chosen update frequency for your data source.""" + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role with permission to access + the data source and required resources. + """ + document_enrichment_configuration: ( + DocumentEnrichmentConfiguration | DocumentEnrichmentConfigurationDict | None + ) + """ + Provides the configuration information for altering document metadata + and content during the document ingestion process. + + For more information, see [Custom document + enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html). + """ + media_extraction_configuration: ( + MediaExtractionConfiguration | MediaExtractionConfigurationDict | None + ) + """ + The configuration for extracting information from media in documents for + your data source. + """ + @dataclass(kw_only=True) class UpdateDataSourceOutput(_SerdeShape): """Dataclass for UpdateDataSourceOutput structure.""" @@ -2048,6 +2987,39 @@ class UpdateIndexInput(_SerdeShape): attributes](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/doc-attributes-types.html#doc-attributes). """ +class UpdateIndexInputDict(TypedDict, total=False): + """Dictionary form of `UpdateIndexInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application connected to the + index. + """ + index_id: Required[str] + """The identifier of the Amazon Q Business index.""" + display_name: str | None + """The name of the Amazon Q Business index.""" + description: str | None + """The description of the Amazon Q Business index.""" + capacity_configuration: ( + IndexCapacityConfiguration | IndexCapacityConfigurationDict | None + ) + """ + The storage capacity units you want to provision for your Amazon Q + Business index. You can add and remove capacity to fit your usage needs. + """ + document_attribute_configurations: ( + Sequence[DocumentAttributeConfiguration | DocumentAttributeConfigurationDict] + | None + ) + """ + Configuration information for document metadata or fields. Document + metadata are fields or attributes associated with your documents. For + example, the company department name associated with each document. For + more information, see [Understanding document + attributes](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/doc-attributes-types.html#doc-attributes). + """ + @dataclass(kw_only=True) class UpdateIndexOutput(_SerdeShape): """Dataclass for UpdateIndexOutput structure.""" @@ -2079,6 +3051,26 @@ class UpdatePluginInput(_SerdeShape): auth_configuration: PluginAuthConfiguration | None = ... """The authentication configuration the plugin is using.""" +class UpdatePluginInputDict(TypedDict, total=False): + """Dictionary form of `UpdatePluginInput`.""" + + application_id: Required[str] + """The identifier of the application the plugin is attached to.""" + plugin_id: Required[str] + """The identifier of the plugin.""" + display_name: str | None + """The name of the plugin.""" + state: str | None + """The status of the plugin.""" + server_url: str | None + """The source URL used for plugin configuration.""" + custom_plugin_configuration: ( + CustomPluginConfiguration | CustomPluginConfigurationDict | None + ) + """The configuration for a custom plugin.""" + auth_configuration: PluginAuthConfiguration | PluginAuthConfigurationDict | None + """The authentication configuration the plugin is using.""" + @dataclass(kw_only=True) class UpdatePluginOutput(_SerdeShape): """Dataclass for UpdatePluginOutput structure.""" @@ -2112,6 +3104,26 @@ class UpdateRetrieverInput(_SerdeShape): the retriever and required resources. """ +class UpdateRetrieverInputDict(TypedDict, total=False): + """Dictionary form of `UpdateRetrieverInput`.""" + + application_id: Required[str] + """The identifier of your Amazon Q Business application.""" + retriever_id: Required[str] + """The identifier of your retriever.""" + configuration: RetrieverConfiguration | RetrieverConfigurationDict | None + """ + Provides information on how the retriever used for your Amazon Q + Business application is configured. + """ + display_name: str | None + """The name of your retriever.""" + role_arn: str | None + """ + The Amazon Resource Name (ARN) of an IAM role with permission to access + the retriever and required resources. + """ + @dataclass(kw_only=True) class UpdateRetrieverOutput(_SerdeShape): """Dataclass for UpdateRetrieverOutput structure.""" @@ -2138,6 +3150,19 @@ class UpdateSubscriptionInput(_SerdeShape): type: str | None = ... """The type of the Amazon Q Business subscription to be updated.""" +class UpdateSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSubscriptionInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application where the + subscription update should take effect. + """ + subscription_id: Required[str] + """The identifier of the Amazon Q Business subscription to be updated.""" + type: Required[str] + """The type of the Amazon Q Business subscription to be updated.""" + @dataclass(kw_only=True) class UpdateSubscriptionOutput(_SerdeShape): """Dataclass for UpdateSubscriptionOutput structure.""" @@ -2172,6 +3197,18 @@ class UpdateUserInput(_SerdeShape): user_aliases_to_delete: list[UserAlias] | None = ... """The user aliases attached to the user id that are to be deleted.""" +class UpdateUserInputDict(TypedDict, total=False): + """Dictionary form of `UpdateUserInput`.""" + + application_id: Required[str] + """The identifier of the application the user is attached to.""" + user_id: Required[str] + """The email id attached to the user.""" + user_aliases_to_update: Sequence[UserAlias | UserAliasDict] | None + """The user aliases attached to the user id that are to be updated.""" + user_aliases_to_delete: Sequence[UserAlias | UserAliasDict] | None + """The user aliases attached to the user id that are to be deleted.""" + @dataclass(kw_only=True) class UpdateUserOutput(_SerdeShape): """Dataclass for UpdateUserOutput structure.""" @@ -2262,6 +3299,85 @@ class UpdateWebExperienceInput(_SerdeShape): web experience. """ +class UpdateWebExperienceInputDict(TypedDict, total=False): + """Dictionary form of `UpdateWebExperienceInput`.""" + + application_id: Required[str] + """ + The identifier of the Amazon Q Business application attached to the web + experience. + """ + web_experience_id: Required[str] + """The identifier of the Amazon Q Business web experience.""" + role_arn: str | None + """ + The Amazon Resource Name (ARN) of the role with permission to access the + Amazon Q Business web experience and required resources. + """ + authentication_configuration: ( + WebExperienceAuthConfiguration | WebExperienceAuthConfigurationDict | None + ) + """ + The authentication configuration of the Amazon Q Business web + experience. + """ + title: str | None + """The title of the Amazon Q Business web experience.""" + subtitle: str | None + """The subtitle of the Amazon Q Business web experience.""" + welcome_message: str | None + """ + A customized welcome message for an end user in an Amazon Q Business web + experience. + """ + sample_prompts_control_mode: str | None + """ + Determines whether sample prompts are enabled in the web experience for + an end user. + """ + identity_provider_configuration: ( + IdentityProviderConfiguration | IdentityProviderConfigurationDict | None + ) + """ + Information about the identity provider (IdP) used to authenticate end + users of an Amazon Q Business web experience. + """ + origins: Sequence[str] | None + """ + Updates the website domain origins that are allowed to embed the Amazon + Q Business web experience. The *domain origin* refers to the *base URL* + for accessing a website including the protocol (`http/https`), the + domain name, and the port number (if specified). + + Note: + - Any values except `null` submitted as part of this update will replace + all previous values. + + - You must only submit a *base URL* and not a full path. For example, + `https://docs.aws.amazon.com`. + """ + browser_extension_configuration: ( + BrowserExtensionConfiguration | BrowserExtensionConfigurationDict | None + ) + """ + The browser extension configuration for an Amazon Q Business web + experience. + + Note: + For Amazon Q Business application using external OIDC-compliant identity + providers (IdPs). The IdP administrator must add the browser extension + sign-in redirect URLs to the IdP application. For more information, see + [Configure external OIDC identity provider for your browser + extensions.](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/browser-extensions.html). + """ + customization_configuration: ( + CustomizationConfiguration | CustomizationConfigurationDict | None + ) + """ + Updates the custom logo, favicon, font, and color used in the Amazon Q + web experience. + """ + @dataclass(kw_only=True) class UpdateWebExperienceOutput(_SerdeShape): """Dataclass for UpdateWebExperienceOutput structure.""" @@ -2288,6 +3404,19 @@ class UserAlias(_SerdeShape): user_id: str """The identifier of the user id associated with the user aliases.""" +class UserAliasDict(TypedDict, total=False): + """Dictionary form of `UserAlias`.""" + + index_id: str | None + """The identifier of the index that the user aliases are associated with.""" + data_source_id: str | None + """ + The identifier of the data source that the user aliases are associated + with. + """ + user_id: Required[str] + """The identifier of the user id associated with the user aliases.""" + @dataclass(kw_only=True) class UsersAndGroups(_SerdeShape): """ @@ -2300,6 +3429,14 @@ class UsersAndGroups(_SerdeShape): user_groups: list[str] | None = ... """The user group names associated with a topic control rule.""" +class UsersAndGroupsDict(TypedDict, total=False): + """Dictionary form of `UsersAndGroups`.""" + + user_ids: Sequence[str] | None + """The user ids associated with a topic control rule.""" + user_groups: Sequence[str] | None + """The user group names associated with a topic control rule.""" + @dataclass(kw_only=True) class ValidationException(ServiceError, _SerdeShape): """ @@ -2346,6 +3483,15 @@ class VideoExtractionConfiguration(_SerdeShape): video content from files. """ +class VideoExtractionConfigurationDict(TypedDict, total=False): + """Dictionary form of `VideoExtractionConfiguration`.""" + + video_extraction_status: Required[str] + """ + The status of video extraction (ENABLED or DISABLED) for processing + video content from files. + """ + class VideoExtractionStatus(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -2430,6 +3576,22 @@ class _WebExperienceAuthConfigurationDeserializer: self, deserializer: ShapeDeserializer ) -> WebExperienceAuthConfiguration: ... +class WebExperienceAuthConfigurationSamlConfigurationDict(TypedDict): + saml_configuration: SamlConfiguration | SamlConfigurationDict + """ + Provides the SAML 2.0 compliant identity provider (IdP) configuration + information Amazon Q Business needs to deploy a Amazon Q Business web + experience. + """ + +WebExperienceAuthConfigurationDict = Union[ + WebExperienceAuthConfigurationSamlConfigurationDict +] +""" +Dictionary form of `WebExperienceAuthConfiguration`, setting exactly +one variant. +""" + class WebExperienceSamplePromptsControlMode(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" diff --git a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/schemas.py b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/schemas.py index 886eedf78..26e9e684b 100644 --- a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/schemas.py +++ b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/_private/schemas.py @@ -710,7 +710,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/aio/client.py b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/aio/client.py index edb9fa583..3c3483024 100644 --- a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/aio/client.py +++ b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -15,7 +15,6 @@ from .. import models as _models from ..models import ( - ChatInput, ChatInputStream, ChatOutput, ChatOutputStream, @@ -28,169 +27,87 @@ if TYPE_CHECKING: from ..models import ( - AssociatePermissionInput, AssociatePermissionOutput, - BatchDeleteDocumentInput, BatchDeleteDocumentOutput, - BatchPutDocumentInput, BatchPutDocumentOutput, - CancelSubscriptionInput, CancelSubscriptionOutput, - ChatSyncInput, ChatSyncOutput, - CheckDocumentAccessInput, CheckDocumentAccessOutput, - CreateAnonymousWebExperienceUrlInput, CreateAnonymousWebExperienceUrlOutput, - CreateApplicationInput, CreateApplicationOutput, - CreateChatResponseConfigurationInput, CreateChatResponseConfigurationOutput, - CreateDataAccessorInput, CreateDataAccessorOutput, - CreateDataSourceInput, CreateDataSourceOutput, - CreateIndexInput, CreateIndexOutput, - CreatePluginInput, CreatePluginOutput, - CreateRetrieverInput, CreateRetrieverOutput, - CreateSubscriptionInput, CreateSubscriptionOutput, - CreateUserInput, CreateUserOutput, - CreateWebExperienceInput, CreateWebExperienceOutput, - DeleteApplicationInput, DeleteApplicationOutput, - DeleteAttachmentInput, DeleteAttachmentOutput, - DeleteChatControlsConfigurationInput, DeleteChatControlsConfigurationOutput, - DeleteChatResponseConfigurationInput, DeleteChatResponseConfigurationOutput, - DeleteConversationInput, DeleteConversationOutput, - DeleteDataAccessorInput, DeleteDataAccessorOutput, - DeleteDataSourceInput, DeleteDataSourceOutput, - DeleteGroupInput, DeleteGroupOutput, - DeleteIndexInput, DeleteIndexOutput, - DeletePluginInput, DeletePluginOutput, - DeleteRetrieverInput, DeleteRetrieverOutput, - DeleteUserInput, DeleteUserOutput, - DeleteWebExperienceInput, DeleteWebExperienceOutput, - DisassociatePermissionInput, DisassociatePermissionOutput, - GetApplicationInput, GetApplicationOutput, - GetChatControlsConfigurationInput, GetChatControlsConfigurationOutput, - GetChatResponseConfigurationInput, GetChatResponseConfigurationOutput, - GetDataAccessorInput, GetDataAccessorOutput, - GetDataSourceInput, GetDataSourceOutput, - GetDocumentContentInput, GetDocumentContentOutput, - GetGroupInput, GetGroupOutput, - GetIndexInput, GetIndexOutput, - GetMediaInput, GetMediaOutput, - GetPluginInput, GetPluginOutput, - GetPolicyInput, GetPolicyOutput, - GetRetrieverInput, GetRetrieverOutput, - GetUserInput, GetUserOutput, - GetWebExperienceInput, GetWebExperienceOutput, - ListApplicationsInput, ListApplicationsOutput, - ListAttachmentsInput, ListAttachmentsOutput, - ListChatResponseConfigurationsInput, ListChatResponseConfigurationsOutput, - ListConversationsInput, ListConversationsOutput, - ListDataAccessorsInput, ListDataAccessorsOutput, - ListDataSourceSyncJobsInput, ListDataSourceSyncJobsOutput, - ListDataSourcesInput, ListDataSourcesOutput, - ListDocumentsInput, ListDocumentsOutput, - ListGroupsInput, ListGroupsOutput, - ListIndicesInput, ListIndicesOutput, - ListMessagesInput, ListMessagesOutput, - ListPluginActionsInput, ListPluginActionsOutput, - ListPluginTypeActionsInput, ListPluginTypeActionsOutput, - ListPluginTypeMetadataInput, ListPluginTypeMetadataOutput, - ListPluginsInput, ListPluginsOutput, - ListRetrieversInput, ListRetrieversOutput, - ListSubscriptionsInput, ListSubscriptionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListWebExperiencesInput, ListWebExperiencesOutput, - PutFeedbackInput, PutFeedbackOutput, - PutGroupInput, PutGroupOutput, - SearchRelevantContentInput, SearchRelevantContentOutput, - StartDataSourceSyncJobInput, StartDataSourceSyncJobOutput, - StopDataSourceSyncJobInput, StopDataSourceSyncJobOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateApplicationInput, UpdateApplicationOutput, - UpdateChatControlsConfigurationInput, UpdateChatControlsConfigurationOutput, - UpdateChatResponseConfigurationInput, UpdateChatResponseConfigurationOutput, - UpdateDataAccessorInput, UpdateDataAccessorOutput, - UpdateDataSourceInput, UpdateDataSourceOutput, - UpdateIndexInput, UpdateIndexOutput, - UpdatePluginInput, UpdatePluginOutput, - UpdateRetrieverInput, UpdateRetrieverOutput, - UpdateSubscriptionInput, UpdateSubscriptionOutput, - UpdateUserInput, UpdateUserOutput, - UpdateWebExperienceInput, UpdateWebExperienceOutput, ) @@ -234,10 +151,25 @@ class AsyncQBusinessClient(AsyncClient[AsyncQBusinessConfig]): Reference](https://docs.aws.amazon.com/general/latest/gr/amazonq.html)* """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def associate_permission( - self, input: AssociatePermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.AssociatePermissionInput + | _models.AssociatePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociatePermissionOutput: ... + + @_overload + async def associate_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociatePermissionInputDict], ) -> AssociatePermissionOutput: """ Adds or updates a permission policy for a Amazon Q Business application, @@ -247,8 +179,6 @@ async def associate_permission( perform on the Amazon Q Business application's resources. Args: - input: - An instance of `AssociatePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -258,10 +188,34 @@ async def associate_permission( Returns: An instance of `AssociatePermissionOutput`. """ - return await self._invoke(input, _models.ASSOCIATE_PERMISSION, [], plugins) + async def associate_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociatePermissionOutput: + return await self._invoke( + self._select_input(_models.ASSOCIATE_PERMISSION, args, kwargs), + _models.ASSOCIATE_PERMISSION, + [], + plugins, + ) + + @_overload + async def batch_delete_document( + self, + request: _models.BatchDeleteDocumentInput + | _models.BatchDeleteDocumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchDeleteDocumentOutput: ... + + @_overload async def batch_delete_document( - self, input: BatchDeleteDocumentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDeleteDocumentInputDict], ) -> BatchDeleteDocumentOutput: """ Asynchronously deletes one or more documents added using the @@ -271,8 +225,6 @@ async def batch_delete_document( to the process, by using CloudWatch. Args: - input: - An instance of `BatchDeleteDocumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -282,10 +234,33 @@ async def batch_delete_document( Returns: An instance of `BatchDeleteDocumentOutput`. """ - return await self._invoke(input, _models.BATCH_DELETE_DOCUMENT, [], plugins) + async def batch_delete_document( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDeleteDocumentOutput: + return await self._invoke( + self._select_input(_models.BATCH_DELETE_DOCUMENT, args, kwargs), + _models.BATCH_DELETE_DOCUMENT, + [], + plugins, + ) + + @_overload + async def batch_put_document( + self, + request: _models.BatchPutDocumentInput | _models.BatchPutDocumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchPutDocumentOutput: ... + + @_overload async def batch_put_document( - self, input: BatchPutDocumentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchPutDocumentInputDict], ) -> BatchPutDocumentOutput: """ Adds one or more documents to an Amazon Q Business index. @@ -304,8 +279,6 @@ async def batch_put_document( to the process, by using CloudWatch. Args: - input: - An instance of `BatchPutDocumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -315,10 +288,33 @@ async def batch_put_document( Returns: An instance of `BatchPutDocumentOutput`. """ - return await self._invoke(input, _models.BATCH_PUT_DOCUMENT, [], plugins) + async def batch_put_document( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchPutDocumentOutput: + return await self._invoke( + self._select_input(_models.BATCH_PUT_DOCUMENT, args, kwargs), + _models.BATCH_PUT_DOCUMENT, + [], + plugins, + ) + + @_overload + async def cancel_subscription( + self, + request: _models.CancelSubscriptionInput | _models.CancelSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelSubscriptionOutput: ... + + @_overload async def cancel_subscription( - self, input: CancelSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelSubscriptionInputDict], ) -> CancelSubscriptionOutput: """ Unsubscribes a user or a group from their pricing tier in an Amazon Q @@ -326,8 +322,6 @@ async def cancel_subscription( Business feature access at the start of next month. Args: - input: - An instance of `CancelSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -337,17 +331,38 @@ async def cancel_subscription( Returns: An instance of `CancelSubscriptionOutput`. """ - return await self._invoke(input, _models.CANCEL_SUBSCRIPTION, [], plugins) + async def cancel_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelSubscriptionOutput: + return await self._invoke( + self._select_input(_models.CANCEL_SUBSCRIPTION, args, kwargs), + _models.CANCEL_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + async def chat( + self, + request: _models.ChatInput | _models.ChatInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ChatInputStream, ChatOutputStream, ChatOutput]: ... + + @_overload async def chat( - self, input: ChatInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChatInputDict], ) -> AsyncDuplexEventStream[ChatInputStream, ChatOutputStream, ChatOutput]: """ Starts or continues a streaming Amazon Q Business conversation. Args: - input: - An instance of `ChatInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -357,7 +372,13 @@ async def chat( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ - pipeline, call = await self._prepare_call(input, _models.CHAT, [], plugins) + + async def chat( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ChatInputStream, ChatOutputStream, ChatOutput]: + pipeline, call = await self._prepare_call( + self._select_input(_models.CHAT, args, kwargs), _models.CHAT, [], plugins + ) return await pipeline.duplex_stream( call, ChatInputStream, @@ -365,15 +386,27 @@ async def chat( _ChatOutputStreamDeserializer().deserialize, ) + @_overload + async def chat_sync( + self, + request: _models.ChatSyncInput | _models.ChatSyncInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ChatSyncOutput: ... + + @_overload async def chat_sync( - self, input: ChatSyncInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChatSyncInputDict], ) -> ChatSyncOutput: """ Starts or continues a non-streaming Amazon Q Business conversation. Args: - input: - An instance of `ChatSyncInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -383,10 +416,34 @@ async def chat_sync( Returns: An instance of `ChatSyncOutput`. """ - return await self._invoke(input, _models.CHAT_SYNC, [], plugins) + async def chat_sync( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ChatSyncOutput: + return await self._invoke( + self._select_input(_models.CHAT_SYNC, args, kwargs), + _models.CHAT_SYNC, + [], + plugins, + ) + + @_overload + async def check_document_access( + self, + request: _models.CheckDocumentAccessInput + | _models.CheckDocumentAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CheckDocumentAccessOutput: ... + + @_overload async def check_document_access( - self, input: CheckDocumentAccessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CheckDocumentAccessInputDict], ) -> CheckDocumentAccessOutput: """ Verifies if a user has access permissions for a specified document and @@ -394,8 +451,6 @@ async def check_document_access( the document via user aliases and groups when verifying user access. Args: - input: - An instance of `CheckDocumentAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -405,12 +460,34 @@ async def check_document_access( Returns: An instance of `CheckDocumentAccessOutput`. """ - return await self._invoke(input, _models.CHECK_DOCUMENT_ACCESS, [], plugins) + async def check_document_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CheckDocumentAccessOutput: + return await self._invoke( + self._select_input(_models.CHECK_DOCUMENT_ACCESS, args, kwargs), + _models.CHECK_DOCUMENT_ACCESS, + [], + plugins, + ) + + @_overload + async def create_anonymous_web_experience_url( + self, + request: _models.CreateAnonymousWebExperienceUrlInput + | _models.CreateAnonymousWebExperienceUrlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAnonymousWebExperienceUrlOutput: ... + + @_overload async def create_anonymous_web_experience_url( self, - input: CreateAnonymousWebExperienceUrlInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAnonymousWebExperienceUrlInputDict], ) -> CreateAnonymousWebExperienceUrlOutput: """ Creates a unique URL for anonymous Amazon Q Business web experience. @@ -418,8 +495,6 @@ async def create_anonymous_web_experience_url( it's generated. Args: - input: - An instance of `CreateAnonymousWebExperienceUrlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -429,12 +504,35 @@ async def create_anonymous_web_experience_url( Returns: An instance of `CreateAnonymousWebExperienceUrlOutput`. """ + + async def create_anonymous_web_experience_url( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAnonymousWebExperienceUrlOutput: return await self._invoke( - input, _models.CREATE_ANONYMOUS_WEB_EXPERIENCE_URL, [], plugins + self._select_input( + _models.CREATE_ANONYMOUS_WEB_EXPERIENCE_URL, args, kwargs + ), + _models.CREATE_ANONYMOUS_WEB_EXPERIENCE_URL, + [], + plugins, ) + @_overload + async def create_application( + self, + request: _models.CreateApplicationInput | _models.CreateApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateApplicationOutput: ... + + @_overload async def create_application( - self, input: CreateApplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateApplicationInputDict], ) -> CreateApplicationOutput: """ Creates an Amazon Q Business application. @@ -460,8 +558,6 @@ async def create_application( Business](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/cross-region-inference.html). Args: - input: - An instance of `CreateApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -471,12 +567,34 @@ async def create_application( Returns: An instance of `CreateApplicationOutput`. """ - return await self._invoke(input, _models.CREATE_APPLICATION, [], plugins) + async def create_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateApplicationOutput: + return await self._invoke( + self._select_input(_models.CREATE_APPLICATION, args, kwargs), + _models.CREATE_APPLICATION, + [], + plugins, + ) + + @_overload + async def create_chat_response_configuration( + self, + request: _models.CreateChatResponseConfigurationInput + | _models.CreateChatResponseConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateChatResponseConfigurationOutput: ... + + @_overload async def create_chat_response_configuration( self, - input: CreateChatResponseConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateChatResponseConfigurationInputDict], ) -> CreateChatResponseConfigurationOutput: """ Creates a new chat response configuration for an Amazon Q Business @@ -485,8 +603,6 @@ async def create_chat_response_configuration( interactions. Args: - input: - An instance of `CreateChatResponseConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -496,12 +612,35 @@ async def create_chat_response_configuration( Returns: An instance of `CreateChatResponseConfigurationOutput`. """ + + async def create_chat_response_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateChatResponseConfigurationOutput: return await self._invoke( - input, _models.CREATE_CHAT_RESPONSE_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_CHAT_RESPONSE_CONFIGURATION, args, kwargs + ), + _models.CREATE_CHAT_RESPONSE_CONFIGURATION, + [], + plugins, ) + @_overload + async def create_data_accessor( + self, + request: _models.CreateDataAccessorInput | _models.CreateDataAccessorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataAccessorOutput: ... + + @_overload async def create_data_accessor( - self, input: CreateDataAccessorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataAccessorInputDict], ) -> CreateDataAccessorOutput: """ Creates a new data accessor for an ISV to access data from a Amazon Q @@ -515,8 +654,6 @@ async def create_data_accessor( Business application. Args: - input: - An instance of `CreateDataAccessorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -526,10 +663,33 @@ async def create_data_accessor( Returns: An instance of `CreateDataAccessorOutput`. """ - return await self._invoke(input, _models.CREATE_DATA_ACCESSOR, [], plugins) + async def create_data_accessor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataAccessorOutput: + return await self._invoke( + self._select_input(_models.CREATE_DATA_ACCESSOR, args, kwargs), + _models.CREATE_DATA_ACCESSOR, + [], + plugins, + ) + + @_overload async def create_data_source( - self, input: CreateDataSourceInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDataSourceInput | _models.CreateDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataSourceOutput: ... + + @_overload + async def create_data_source( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataSourceInputDict], ) -> CreateDataSourceOutput: """ Creates a data source connector for an Amazon Q Business application. @@ -539,8 +699,6 @@ async def create_data_source( raised. Args: - input: - An instance of `CreateDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -550,10 +708,33 @@ async def create_data_source( Returns: An instance of `CreateDataSourceOutput`. """ - return await self._invoke(input, _models.CREATE_DATA_SOURCE, [], plugins) + async def create_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataSourceOutput: + return await self._invoke( + self._select_input(_models.CREATE_DATA_SOURCE, args, kwargs), + _models.CREATE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + async def create_index( + self, + request: _models.CreateIndexInput | _models.CreateIndexInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIndexOutput: ... + + @_overload async def create_index( - self, input: CreateIndexInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIndexInputDict], ) -> CreateIndexOutput: """ Creates an Amazon Q Business index. @@ -569,8 +750,6 @@ async def create_index( API. Args: - input: - An instance of `CreateIndexInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -580,17 +759,38 @@ async def create_index( Returns: An instance of `CreateIndexOutput`. """ - return await self._invoke(input, _models.CREATE_INDEX, [], plugins) + async def create_index( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIndexOutput: + return await self._invoke( + self._select_input(_models.CREATE_INDEX, args, kwargs), + _models.CREATE_INDEX, + [], + plugins, + ) + + @_overload + async def create_plugin( + self, + request: _models.CreatePluginInput | _models.CreatePluginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePluginOutput: ... + + @_overload async def create_plugin( - self, input: CreatePluginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePluginInputDict], ) -> CreatePluginOutput: """ Creates an Amazon Q Business plugin. Args: - input: - An instance of `CreatePluginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -600,17 +800,38 @@ async def create_plugin( Returns: An instance of `CreatePluginOutput`. """ - return await self._invoke(input, _models.CREATE_PLUGIN, [], plugins) + async def create_plugin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePluginOutput: + return await self._invoke( + self._select_input(_models.CREATE_PLUGIN, args, kwargs), + _models.CREATE_PLUGIN, + [], + plugins, + ) + + @_overload + async def create_retriever( + self, + request: _models.CreateRetrieverInput | _models.CreateRetrieverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRetrieverOutput: ... + + @_overload async def create_retriever( - self, input: CreateRetrieverInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRetrieverInputDict], ) -> CreateRetrieverOutput: """ Adds a retriever to your Amazon Q Business application. Args: - input: - An instance of `CreateRetrieverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -620,10 +841,33 @@ async def create_retriever( Returns: An instance of `CreateRetrieverOutput`. """ - return await self._invoke(input, _models.CREATE_RETRIEVER, [], plugins) + async def create_retriever( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRetrieverOutput: + return await self._invoke( + self._select_input(_models.CREATE_RETRIEVER, args, kwargs), + _models.CREATE_RETRIEVER, + [], + plugins, + ) + + @_overload + async def create_subscription( + self, + request: _models.CreateSubscriptionInput | _models.CreateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSubscriptionOutput: ... + + @_overload async def create_subscription( - self, input: CreateSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSubscriptionInputDict], ) -> CreateSubscriptionOutput: """ Subscribes an IAM Identity Center user or a group to a pricing tier for @@ -641,8 +885,6 @@ async def create_subscription( in the Amazon Q Business User Guide. Args: - input: - An instance of `CreateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -652,18 +894,39 @@ async def create_subscription( Returns: An instance of `CreateSubscriptionOutput`. """ - return await self._invoke(input, _models.CREATE_SUBSCRIPTION, [], plugins) + async def create_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSubscriptionOutput: + return await self._invoke( + self._select_input(_models.CREATE_SUBSCRIPTION, args, kwargs), + _models.CREATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + async def create_user( + self, + request: _models.CreateUserInput | _models.CreateUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateUserOutput: ... + + @_overload async def create_user( - self, input: CreateUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateUserInputDict], ) -> CreateUserOutput: """ Creates a universally unique identifier (UUID) mapped to a list of local user ids within an application. Args: - input: - An instance of `CreateUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -673,17 +936,39 @@ async def create_user( Returns: An instance of `CreateUserOutput`. """ - return await self._invoke(input, _models.CREATE_USER, [], plugins) + async def create_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateUserOutput: + return await self._invoke( + self._select_input(_models.CREATE_USER, args, kwargs), + _models.CREATE_USER, + [], + plugins, + ) + + @_overload + async def create_web_experience( + self, + request: _models.CreateWebExperienceInput + | _models.CreateWebExperienceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateWebExperienceOutput: ... + + @_overload async def create_web_experience( - self, input: CreateWebExperienceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateWebExperienceInputDict], ) -> CreateWebExperienceOutput: """ Creates an Amazon Q Business web experience. Args: - input: - An instance of `CreateWebExperienceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -693,17 +978,38 @@ async def create_web_experience( Returns: An instance of `CreateWebExperienceOutput`. """ - return await self._invoke(input, _models.CREATE_WEB_EXPERIENCE, [], plugins) + async def create_web_experience( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateWebExperienceOutput: + return await self._invoke( + self._select_input(_models.CREATE_WEB_EXPERIENCE, args, kwargs), + _models.CREATE_WEB_EXPERIENCE, + [], + plugins, + ) + + @_overload + async def delete_application( + self, + request: _models.DeleteApplicationInput | _models.DeleteApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteApplicationOutput: ... + + @_overload async def delete_application( - self, input: DeleteApplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteApplicationInputDict], ) -> DeleteApplicationOutput: """ Deletes an Amazon Q Business application. Args: - input: - An instance of `DeleteApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -713,18 +1019,39 @@ async def delete_application( Returns: An instance of `DeleteApplicationOutput`. """ - return await self._invoke(input, _models.DELETE_APPLICATION, [], plugins) + async def delete_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteApplicationOutput: + return await self._invoke( + self._select_input(_models.DELETE_APPLICATION, args, kwargs), + _models.DELETE_APPLICATION, + [], + plugins, + ) + + @_overload async def delete_attachment( - self, input: DeleteAttachmentInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteAttachmentInput | _models.DeleteAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAttachmentOutput: ... + + @_overload + async def delete_attachment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAttachmentInputDict], ) -> DeleteAttachmentOutput: """ Deletes an attachment associated with a specific Amazon Q Business conversation. Args: - input: - An instance of `DeleteAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -734,20 +1061,40 @@ async def delete_attachment( Returns: An instance of `DeleteAttachmentOutput`. """ - return await self._invoke(input, _models.DELETE_ATTACHMENT, [], plugins) + async def delete_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAttachmentOutput: + return await self._invoke( + self._select_input(_models.DELETE_ATTACHMENT, args, kwargs), + _models.DELETE_ATTACHMENT, + [], + plugins, + ) + + @_overload + async def delete_chat_controls_configuration( + self, + request: _models.DeleteChatControlsConfigurationInput + | _models.DeleteChatControlsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChatControlsConfigurationOutput: ... + + @_overload async def delete_chat_controls_configuration( self, - input: DeleteChatControlsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChatControlsConfigurationInputDict], ) -> DeleteChatControlsConfigurationOutput: """ Deletes chat controls configured for an existing Amazon Q Business application. Args: - input: - An instance of `DeleteChatControlsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -757,22 +1104,42 @@ async def delete_chat_controls_configuration( Returns: An instance of `DeleteChatControlsConfigurationOutput`. """ + + async def delete_chat_controls_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChatControlsConfigurationOutput: return await self._invoke( - input, _models.DELETE_CHAT_CONTROLS_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_CHAT_CONTROLS_CONFIGURATION, args, kwargs + ), + _models.DELETE_CHAT_CONTROLS_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_chat_response_configuration( + self, + request: _models.DeleteChatResponseConfigurationInput + | _models.DeleteChatResponseConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChatResponseConfigurationOutput: ... + + @_overload async def delete_chat_response_configuration( self, - input: DeleteChatResponseConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChatResponseConfigurationInputDict], ) -> DeleteChatResponseConfigurationOutput: """ Deletes a specified chat response configuration from an Amazon Q Business application. Args: - input: - An instance of `DeleteChatResponseConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -782,19 +1149,40 @@ async def delete_chat_response_configuration( Returns: An instance of `DeleteChatResponseConfigurationOutput`. """ + + async def delete_chat_response_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChatResponseConfigurationOutput: return await self._invoke( - input, _models.DELETE_CHAT_RESPONSE_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_CHAT_RESPONSE_CONFIGURATION, args, kwargs + ), + _models.DELETE_CHAT_RESPONSE_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_conversation( + self, + request: _models.DeleteConversationInput | _models.DeleteConversationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConversationOutput: ... + + @_overload async def delete_conversation( - self, input: DeleteConversationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConversationInputDict], ) -> DeleteConversationOutput: """ Deletes an Amazon Q Business web experience conversation. Args: - input: - An instance of `DeleteConversationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -804,10 +1192,33 @@ async def delete_conversation( Returns: An instance of `DeleteConversationOutput`. """ - return await self._invoke(input, _models.DELETE_CONVERSATION, [], plugins) + async def delete_conversation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConversationOutput: + return await self._invoke( + self._select_input(_models.DELETE_CONVERSATION, args, kwargs), + _models.DELETE_CONVERSATION, + [], + plugins, + ) + + @_overload + async def delete_data_accessor( + self, + request: _models.DeleteDataAccessorInput | _models.DeleteDataAccessorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDataAccessorOutput: ... + + @_overload async def delete_data_accessor( - self, input: DeleteDataAccessorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataAccessorInputDict], ) -> DeleteDataAccessorOutput: """ Deletes a specified data accessor. This operation permanently removes @@ -816,8 +1227,6 @@ async def delete_data_accessor( revoked. Args: - input: - An instance of `DeleteDataAccessorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -827,10 +1236,33 @@ async def delete_data_accessor( Returns: An instance of `DeleteDataAccessorOutput`. """ - return await self._invoke(input, _models.DELETE_DATA_ACCESSOR, [], plugins) + async def delete_data_accessor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataAccessorOutput: + return await self._invoke( + self._select_input(_models.DELETE_DATA_ACCESSOR, args, kwargs), + _models.DELETE_DATA_ACCESSOR, + [], + plugins, + ) + + @_overload + async def delete_data_source( + self, + request: _models.DeleteDataSourceInput | _models.DeleteDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDataSourceOutput: ... + + @_overload async def delete_data_source( - self, input: DeleteDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataSourceInputDict], ) -> DeleteDataSourceOutput: """ Deletes an Amazon Q Business data source connector. While the data @@ -838,8 +1270,6 @@ async def delete_data_source( `DescribeDataSource` API is set to `DELETING`. Args: - input: - An instance of `DeleteDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -849,12 +1279,35 @@ async def delete_data_source( Returns: An instance of `DeleteDataSourceOutput`. """ - return await self._invoke(input, _models.DELETE_DATA_SOURCE, [], plugins) - async def delete_group( - self, input: DeleteGroupInput, plugins: list[Plugin] | None = None - ) -> DeleteGroupOutput: - """ + async def delete_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataSourceOutput: + return await self._invoke( + self._select_input(_models.DELETE_DATA_SOURCE, args, kwargs), + _models.DELETE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + async def delete_group( + self, + request: _models.DeleteGroupInput | _models.DeleteGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGroupOutput: ... + + @_overload + async def delete_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGroupInputDict], + ) -> DeleteGroupOutput: + """ Deletes a group so that all users and sub groups that belong to the group can no longer access documents only available to that group. For example, after deleting the group \"Summer Interns\", all interns who @@ -868,8 +1321,6 @@ async def delete_group( groups that belong to the \"Engineering\" group when calling `PutGroup`. Args: - input: - An instance of `DeleteGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -879,17 +1330,38 @@ async def delete_group( Returns: An instance of `DeleteGroupOutput`. """ - return await self._invoke(input, _models.DELETE_GROUP, [], plugins) + async def delete_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_GROUP, args, kwargs), + _models.DELETE_GROUP, + [], + plugins, + ) + + @_overload + async def delete_index( + self, + request: _models.DeleteIndexInput | _models.DeleteIndexInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIndexOutput: ... + + @_overload async def delete_index( - self, input: DeleteIndexInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIndexInputDict], ) -> DeleteIndexOutput: """ Deletes an Amazon Q Business index. Args: - input: - An instance of `DeleteIndexInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -899,17 +1371,38 @@ async def delete_index( Returns: An instance of `DeleteIndexOutput`. """ - return await self._invoke(input, _models.DELETE_INDEX, [], plugins) + async def delete_index( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIndexOutput: + return await self._invoke( + self._select_input(_models.DELETE_INDEX, args, kwargs), + _models.DELETE_INDEX, + [], + plugins, + ) + + @_overload async def delete_plugin( - self, input: DeletePluginInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePluginInput | _models.DeletePluginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePluginOutput: ... + + @_overload + async def delete_plugin( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePluginInputDict], ) -> DeletePluginOutput: """ Deletes an Amazon Q Business plugin. Args: - input: - An instance of `DeletePluginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -919,17 +1412,38 @@ async def delete_plugin( Returns: An instance of `DeletePluginOutput`. """ - return await self._invoke(input, _models.DELETE_PLUGIN, [], plugins) + async def delete_plugin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePluginOutput: + return await self._invoke( + self._select_input(_models.DELETE_PLUGIN, args, kwargs), + _models.DELETE_PLUGIN, + [], + plugins, + ) + + @_overload async def delete_retriever( - self, input: DeleteRetrieverInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRetrieverInput | _models.DeleteRetrieverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRetrieverOutput: ... + + @_overload + async def delete_retriever( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRetrieverInputDict], ) -> DeleteRetrieverOutput: """ Deletes the retriever used by an Amazon Q Business application. Args: - input: - An instance of `DeleteRetrieverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -939,17 +1453,38 @@ async def delete_retriever( Returns: An instance of `DeleteRetrieverOutput`. """ - return await self._invoke(input, _models.DELETE_RETRIEVER, [], plugins) + async def delete_retriever( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRetrieverOutput: + return await self._invoke( + self._select_input(_models.DELETE_RETRIEVER, args, kwargs), + _models.DELETE_RETRIEVER, + [], + plugins, + ) + + @_overload + async def delete_user( + self, + request: _models.DeleteUserInput | _models.DeleteUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUserOutput: ... + + @_overload async def delete_user( - self, input: DeleteUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUserInputDict], ) -> DeleteUserOutput: """ Deletes a user by email id. Args: - input: - An instance of `DeleteUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -959,17 +1494,39 @@ async def delete_user( Returns: An instance of `DeleteUserOutput`. """ - return await self._invoke(input, _models.DELETE_USER, [], plugins) + async def delete_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUserOutput: + return await self._invoke( + self._select_input(_models.DELETE_USER, args, kwargs), + _models.DELETE_USER, + [], + plugins, + ) + + @_overload async def delete_web_experience( - self, input: DeleteWebExperienceInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteWebExperienceInput + | _models.DeleteWebExperienceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteWebExperienceOutput: ... + + @_overload + async def delete_web_experience( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteWebExperienceInputDict], ) -> DeleteWebExperienceOutput: """ Deletes an Amazon Q Business web experience. Args: - input: - An instance of `DeleteWebExperienceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -979,10 +1536,34 @@ async def delete_web_experience( Returns: An instance of `DeleteWebExperienceOutput`. """ - return await self._invoke(input, _models.DELETE_WEB_EXPERIENCE, [], plugins) + async def delete_web_experience( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteWebExperienceOutput: + return await self._invoke( + self._select_input(_models.DELETE_WEB_EXPERIENCE, args, kwargs), + _models.DELETE_WEB_EXPERIENCE, + [], + plugins, + ) + + @_overload + async def disassociate_permission( + self, + request: _models.DisassociatePermissionInput + | _models.DisassociatePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociatePermissionOutput: ... + + @_overload async def disassociate_permission( - self, input: DisassociatePermissionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociatePermissionInputDict], ) -> DisassociatePermissionOutput: """ Removes a permission policy from a Amazon Q Business application, @@ -991,8 +1572,6 @@ async def disassociate_permission( application's permission policy. Args: - input: - An instance of `DisassociatePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1002,17 +1581,38 @@ async def disassociate_permission( Returns: An instance of `DisassociatePermissionOutput`. """ - return await self._invoke(input, _models.DISASSOCIATE_PERMISSION, [], plugins) + async def disassociate_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociatePermissionOutput: + return await self._invoke( + self._select_input(_models.DISASSOCIATE_PERMISSION, args, kwargs), + _models.DISASSOCIATE_PERMISSION, + [], + plugins, + ) + + @_overload async def get_application( - self, input: GetApplicationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetApplicationInput | _models.GetApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetApplicationOutput: ... + + @_overload + async def get_application( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetApplicationInputDict], ) -> GetApplicationOutput: """ Gets information about an existing Amazon Q Business application. Args: - input: - An instance of `GetApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1022,20 +1622,40 @@ async def get_application( Returns: An instance of `GetApplicationOutput`. """ - return await self._invoke(input, _models.GET_APPLICATION, [], plugins) + async def get_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetApplicationOutput: + return await self._invoke( + self._select_input(_models.GET_APPLICATION, args, kwargs), + _models.GET_APPLICATION, + [], + plugins, + ) + + @_overload + async def get_chat_controls_configuration( + self, + request: _models.GetChatControlsConfigurationInput + | _models.GetChatControlsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetChatControlsConfigurationOutput: ... + + @_overload async def get_chat_controls_configuration( self, - input: GetChatControlsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetChatControlsConfigurationInputDict], ) -> GetChatControlsConfigurationOutput: """ Gets information about chat controls configured for an existing Amazon Q Business application. Args: - input: - An instance of `GetChatControlsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1045,14 +1665,34 @@ async def get_chat_controls_configuration( Returns: An instance of `GetChatControlsConfigurationOutput`. """ + + async def get_chat_controls_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetChatControlsConfigurationOutput: return await self._invoke( - input, _models.GET_CHAT_CONTROLS_CONFIGURATION, [], plugins + self._select_input(_models.GET_CHAT_CONTROLS_CONFIGURATION, args, kwargs), + _models.GET_CHAT_CONTROLS_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_chat_response_configuration( + self, + request: _models.GetChatResponseConfigurationInput + | _models.GetChatResponseConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetChatResponseConfigurationOutput: ... + + @_overload async def get_chat_response_configuration( self, - input: GetChatResponseConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetChatResponseConfigurationInputDict], ) -> GetChatResponseConfigurationOutput: """ Retrieves detailed information about a specific chat response @@ -1060,8 +1700,6 @@ async def get_chat_response_configuration( returns the complete configuration settings and metadata. Args: - input: - An instance of `GetChatResponseConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1071,12 +1709,33 @@ async def get_chat_response_configuration( Returns: An instance of `GetChatResponseConfigurationOutput`. """ + + async def get_chat_response_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetChatResponseConfigurationOutput: return await self._invoke( - input, _models.GET_CHAT_RESPONSE_CONFIGURATION, [], plugins + self._select_input(_models.GET_CHAT_RESPONSE_CONFIGURATION, args, kwargs), + _models.GET_CHAT_RESPONSE_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_data_accessor( + self, + request: _models.GetDataAccessorInput | _models.GetDataAccessorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAccessorOutput: ... + + @_overload async def get_data_accessor( - self, input: GetDataAccessorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAccessorInputDict], ) -> GetDataAccessorOutput: """ Retrieves information about a specified data accessor. This operation @@ -1087,8 +1746,6 @@ async def get_data_accessor( data accessor was created and last updated. Args: - input: - An instance of `GetDataAccessorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1098,18 +1755,39 @@ async def get_data_accessor( Returns: An instance of `GetDataAccessorOutput`. """ - return await self._invoke(input, _models.GET_DATA_ACCESSOR, [], plugins) + async def get_data_accessor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAccessorOutput: + return await self._invoke( + self._select_input(_models.GET_DATA_ACCESSOR, args, kwargs), + _models.GET_DATA_ACCESSOR, + [], + plugins, + ) + + @_overload + async def get_data_source( + self, + request: _models.GetDataSourceInput | _models.GetDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataSourceOutput: ... + + @_overload async def get_data_source( - self, input: GetDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataSourceInputDict], ) -> GetDataSourceOutput: """ Gets information about an existing Amazon Q Business data source connector. Args: - input: - An instance of `GetDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1119,10 +1797,33 @@ async def get_data_source( Returns: An instance of `GetDataSourceOutput`. """ - return await self._invoke(input, _models.GET_DATA_SOURCE, [], plugins) + async def get_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataSourceOutput: + return await self._invoke( + self._select_input(_models.GET_DATA_SOURCE, args, kwargs), + _models.GET_DATA_SOURCE, + [], + plugins, + ) + + @_overload async def get_document_content( - self, input: GetDocumentContentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDocumentContentInput | _models.GetDocumentContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentContentOutput: ... + + @_overload + async def get_document_content( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentContentInputDict], ) -> GetDocumentContentOutput: """ Retrieves the content of a document that was ingested into Amazon Q @@ -1132,8 +1833,6 @@ async def get_document_content( the URL. Args: - input: - An instance of `GetDocumentContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1143,17 +1842,38 @@ async def get_document_content( Returns: An instance of `GetDocumentContentOutput`. """ - return await self._invoke(input, _models.GET_DOCUMENT_CONTENT, [], plugins) + async def get_document_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentContentOutput: + return await self._invoke( + self._select_input(_models.GET_DOCUMENT_CONTENT, args, kwargs), + _models.GET_DOCUMENT_CONTENT, + [], + plugins, + ) + + @_overload + async def get_group( + self, + request: _models.GetGroupInput | _models.GetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGroupOutput: ... + + @_overload async def get_group( - self, input: GetGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGroupInputDict], ) -> GetGroupOutput: """ Describes a group by group name. Args: - input: - An instance of `GetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1163,17 +1883,38 @@ async def get_group( Returns: An instance of `GetGroupOutput`. """ - return await self._invoke(input, _models.GET_GROUP, [], plugins) + async def get_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGroupOutput: + return await self._invoke( + self._select_input(_models.GET_GROUP, args, kwargs), + _models.GET_GROUP, + [], + plugins, + ) + + @_overload + async def get_index( + self, + request: _models.GetIndexInput | _models.GetIndexInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIndexOutput: ... + + @_overload async def get_index( - self, input: GetIndexInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIndexInputDict], ) -> GetIndexOutput: """ Gets information about an existing Amazon Q Business index. Args: - input: - An instance of `GetIndexInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1183,10 +1924,33 @@ async def get_index( Returns: An instance of `GetIndexOutput`. """ - return await self._invoke(input, _models.GET_INDEX, [], plugins) + async def get_index( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIndexOutput: + return await self._invoke( + self._select_input(_models.GET_INDEX, args, kwargs), + _models.GET_INDEX, + [], + plugins, + ) + + @_overload + async def get_media( + self, + request: _models.GetMediaInput | _models.GetMediaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMediaOutput: ... + + @_overload async def get_media( - self, input: GetMediaInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMediaInputDict], ) -> GetMediaOutput: """ Returns the image bytes corresponding to a media object. If you have @@ -1199,8 +1963,6 @@ async def get_media( visuals](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/extracting-meaning-from-images.html). Args: - input: - An instance of `GetMediaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1210,17 +1972,38 @@ async def get_media( Returns: An instance of `GetMediaOutput`. """ - return await self._invoke(input, _models.GET_MEDIA, [], plugins) + async def get_media( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMediaOutput: + return await self._invoke( + self._select_input(_models.GET_MEDIA, args, kwargs), + _models.GET_MEDIA, + [], + plugins, + ) + + @_overload + async def get_plugin( + self, + request: _models.GetPluginInput | _models.GetPluginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPluginOutput: ... + + @_overload async def get_plugin( - self, input: GetPluginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPluginInputDict], ) -> GetPluginOutput: """ Gets information about an existing Amazon Q Business plugin. Args: - input: - An instance of `GetPluginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1230,10 +2013,33 @@ async def get_plugin( Returns: An instance of `GetPluginOutput`. """ - return await self._invoke(input, _models.GET_PLUGIN, [], plugins) + async def get_plugin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPluginOutput: + return await self._invoke( + self._select_input(_models.GET_PLUGIN, args, kwargs), + _models.GET_PLUGIN, + [], + plugins, + ) + + @_overload + async def get_policy( + self, + request: _models.GetPolicyInput | _models.GetPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyOutput: ... + + @_overload async def get_policy( - self, input: GetPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyInputDict], ) -> GetPolicyOutput: """ Retrieves the current permission policy for a Amazon Q Business @@ -1242,8 +2048,6 @@ async def get_policy( application's resources. Args: - input: - An instance of `GetPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1253,18 +2057,39 @@ async def get_policy( Returns: An instance of `GetPolicyOutput`. """ - return await self._invoke(input, _models.GET_POLICY, [], plugins) + async def get_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_POLICY, args, kwargs), + _models.GET_POLICY, + [], + plugins, + ) + + @_overload async def get_retriever( - self, input: GetRetrieverInput, plugins: list[Plugin] | None = None + self, + request: _models.GetRetrieverInput | _models.GetRetrieverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRetrieverOutput: ... + + @_overload + async def get_retriever( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRetrieverInputDict], ) -> GetRetrieverOutput: """ Gets information about an existing retriever used by an Amazon Q Business application. Args: - input: - An instance of `GetRetrieverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1274,18 +2099,39 @@ async def get_retriever( Returns: An instance of `GetRetrieverOutput`. """ - return await self._invoke(input, _models.GET_RETRIEVER, [], plugins) + async def get_retriever( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRetrieverOutput: + return await self._invoke( + self._select_input(_models.GET_RETRIEVER, args, kwargs), + _models.GET_RETRIEVER, + [], + plugins, + ) + + @_overload async def get_user( - self, input: GetUserInput, plugins: list[Plugin] | None = None + self, + request: _models.GetUserInput | _models.GetUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUserOutput: ... + + @_overload + async def get_user( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUserInputDict], ) -> GetUserOutput: """ Describes the universally unique identifier (UUID) associated with a local user in a data source. Args: - input: - An instance of `GetUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1295,17 +2141,38 @@ async def get_user( Returns: An instance of `GetUserOutput`. """ - return await self._invoke(input, _models.GET_USER, [], plugins) + async def get_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUserOutput: + return await self._invoke( + self._select_input(_models.GET_USER, args, kwargs), + _models.GET_USER, + [], + plugins, + ) + + @_overload async def get_web_experience( - self, input: GetWebExperienceInput, plugins: list[Plugin] | None = None + self, + request: _models.GetWebExperienceInput | _models.GetWebExperienceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWebExperienceOutput: ... + + @_overload + async def get_web_experience( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWebExperienceInputDict], ) -> GetWebExperienceOutput: """ Gets information about an existing Amazon Q Business web experience. Args: - input: - An instance of `GetWebExperienceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1315,10 +2182,33 @@ async def get_web_experience( Returns: An instance of `GetWebExperienceOutput`. """ - return await self._invoke(input, _models.GET_WEB_EXPERIENCE, [], plugins) + async def get_web_experience( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWebExperienceOutput: + return await self._invoke( + self._select_input(_models.GET_WEB_EXPERIENCE, args, kwargs), + _models.GET_WEB_EXPERIENCE, + [], + plugins, + ) + + @_overload async def list_applications( - self, input: ListApplicationsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListApplicationsInput | _models.ListApplicationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListApplicationsOutput: ... + + @_overload + async def list_applications( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListApplicationsInputDict], ) -> ListApplicationsOutput: """ Lists Amazon Q Business applications. @@ -1330,8 +2220,6 @@ async def list_applications( Business](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/cross-region-inference.html). Args: - input: - An instance of `ListApplicationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1341,10 +2229,33 @@ async def list_applications( Returns: An instance of `ListApplicationsOutput`. """ - return await self._invoke(input, _models.LIST_APPLICATIONS, [], plugins) + async def list_applications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListApplicationsOutput: + return await self._invoke( + self._select_input(_models.LIST_APPLICATIONS, args, kwargs), + _models.LIST_APPLICATIONS, + [], + plugins, + ) + + @_overload async def list_attachments( - self, input: ListAttachmentsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListAttachmentsInput | _models.ListAttachmentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttachmentsOutput: ... + + @_overload + async def list_attachments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttachmentsInputDict], ) -> ListAttachmentsOutput: """ Gets a list of attachments associated with an Amazon Q Business web @@ -1352,8 +2263,6 @@ async def list_attachments( Business conversation. Args: - input: - An instance of `ListAttachmentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1363,12 +2272,34 @@ async def list_attachments( Returns: An instance of `ListAttachmentsOutput`. """ - return await self._invoke(input, _models.LIST_ATTACHMENTS, [], plugins) + async def list_attachments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttachmentsOutput: + return await self._invoke( + self._select_input(_models.LIST_ATTACHMENTS, args, kwargs), + _models.LIST_ATTACHMENTS, + [], + plugins, + ) + + @_overload + async def list_chat_response_configurations( + self, + request: _models.ListChatResponseConfigurationsInput + | _models.ListChatResponseConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListChatResponseConfigurationsOutput: ... + + @_overload async def list_chat_response_configurations( self, - input: ListChatResponseConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListChatResponseConfigurationsInputDict], ) -> ListChatResponseConfigurationsOutput: """ Retrieves a list of all chat response configurations available in a @@ -1377,8 +2308,6 @@ async def list_chat_response_configurations( select appropriate response settings. Args: - input: - An instance of `ListChatResponseConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1388,19 +2317,38 @@ async def list_chat_response_configurations( Returns: An instance of `ListChatResponseConfigurationsOutput`. """ + + async def list_chat_response_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListChatResponseConfigurationsOutput: return await self._invoke( - input, _models.LIST_CHAT_RESPONSE_CONFIGURATIONS, [], plugins + self._select_input(_models.LIST_CHAT_RESPONSE_CONFIGURATIONS, args, kwargs), + _models.LIST_CHAT_RESPONSE_CONFIGURATIONS, + [], + plugins, ) + @_overload + async def list_conversations( + self, + request: _models.ListConversationsInput | _models.ListConversationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConversationsOutput: ... + + @_overload async def list_conversations( - self, input: ListConversationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConversationsInputDict], ) -> ListConversationsOutput: """ Lists one or more Amazon Q Business conversations. Args: - input: - An instance of `ListConversationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1410,10 +2358,33 @@ async def list_conversations( Returns: An instance of `ListConversationsOutput`. """ - return await self._invoke(input, _models.LIST_CONVERSATIONS, [], plugins) + async def list_conversations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConversationsOutput: + return await self._invoke( + self._select_input(_models.LIST_CONVERSATIONS, args, kwargs), + _models.LIST_CONVERSATIONS, + [], + plugins, + ) + + @_overload async def list_data_accessors( - self, input: ListDataAccessorsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDataAccessorsInput | _models.ListDataAccessorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataAccessorsOutput: ... + + @_overload + async def list_data_accessors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAccessorsInputDict], ) -> ListDataAccessorsOutput: """ Lists the data accessors for a Amazon Q Business application. This @@ -1422,8 +2393,6 @@ async def list_data_accessors( creation/update timestamps for each data accessor. Args: - input: - An instance of `ListDataAccessorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1433,18 +2402,39 @@ async def list_data_accessors( Returns: An instance of `ListDataAccessorsOutput`. """ - return await self._invoke(input, _models.LIST_DATA_ACCESSORS, [], plugins) + async def list_data_accessors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAccessorsOutput: + return await self._invoke( + self._select_input(_models.LIST_DATA_ACCESSORS, args, kwargs), + _models.LIST_DATA_ACCESSORS, + [], + plugins, + ) + + @_overload + async def list_data_sources( + self, + request: _models.ListDataSourcesInput | _models.ListDataSourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataSourcesOutput: ... + + @_overload async def list_data_sources( - self, input: ListDataSourcesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataSourcesInputDict], ) -> ListDataSourcesOutput: """ Lists the Amazon Q Business data source connectors that you have created. Args: - input: - An instance of `ListDataSourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1454,18 +2444,40 @@ async def list_data_sources( Returns: An instance of `ListDataSourcesOutput`. """ - return await self._invoke(input, _models.LIST_DATA_SOURCES, [], plugins) + async def list_data_sources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataSourcesOutput: + return await self._invoke( + self._select_input(_models.LIST_DATA_SOURCES, args, kwargs), + _models.LIST_DATA_SOURCES, + [], + plugins, + ) + + @_overload + async def list_data_source_sync_jobs( + self, + request: _models.ListDataSourceSyncJobsInput + | _models.ListDataSourceSyncJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataSourceSyncJobsOutput: ... + + @_overload async def list_data_source_sync_jobs( - self, input: ListDataSourceSyncJobsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataSourceSyncJobsInputDict], ) -> ListDataSourceSyncJobsOutput: """ Get information about an Amazon Q Business data source connector synchronization. Args: - input: - An instance of `ListDataSourceSyncJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1475,19 +2487,38 @@ async def list_data_source_sync_jobs( Returns: An instance of `ListDataSourceSyncJobsOutput`. """ + + async def list_data_source_sync_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataSourceSyncJobsOutput: return await self._invoke( - input, _models.LIST_DATA_SOURCE_SYNC_JOBS, [], plugins + self._select_input(_models.LIST_DATA_SOURCE_SYNC_JOBS, args, kwargs), + _models.LIST_DATA_SOURCE_SYNC_JOBS, + [], + plugins, ) + @_overload async def list_documents( - self, input: ListDocumentsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDocumentsInput | _models.ListDocumentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDocumentsOutput: ... + + @_overload + async def list_documents( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDocumentsInputDict], ) -> ListDocumentsOutput: """ A list of documents attached to an index. Args: - input: - An instance of `ListDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1497,17 +2528,38 @@ async def list_documents( Returns: An instance of `ListDocumentsOutput`. """ - return await self._invoke(input, _models.LIST_DOCUMENTS, [], plugins) + async def list_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDocumentsOutput: + return await self._invoke( + self._select_input(_models.LIST_DOCUMENTS, args, kwargs), + _models.LIST_DOCUMENTS, + [], + plugins, + ) + + @_overload async def list_groups( - self, input: ListGroupsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGroupsInput | _models.ListGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGroupsOutput: ... + + @_overload + async def list_groups( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGroupsInputDict], ) -> ListGroupsOutput: """ Provides a list of groups that are mapped to users. Args: - input: - An instance of `ListGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1517,17 +2569,38 @@ async def list_groups( Returns: An instance of `ListGroupsOutput`. """ - return await self._invoke(input, _models.LIST_GROUPS, [], plugins) + async def list_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGroupsOutput: + return await self._invoke( + self._select_input(_models.LIST_GROUPS, args, kwargs), + _models.LIST_GROUPS, + [], + plugins, + ) + + @_overload async def list_indices( - self, input: ListIndicesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListIndicesInput | _models.ListIndicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIndicesOutput: ... + + @_overload + async def list_indices( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIndicesInputDict], ) -> ListIndicesOutput: """ Lists the Amazon Q Business indices you have created. Args: - input: - An instance of `ListIndicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1537,18 +2610,39 @@ async def list_indices( Returns: An instance of `ListIndicesOutput`. """ - return await self._invoke(input, _models.LIST_INDICES, [], plugins) + async def list_indices( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIndicesOutput: + return await self._invoke( + self._select_input(_models.LIST_INDICES, args, kwargs), + _models.LIST_INDICES, + [], + plugins, + ) + + @_overload async def list_messages( - self, input: ListMessagesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListMessagesInput | _models.ListMessagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMessagesOutput: ... + + @_overload + async def list_messages( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMessagesInputDict], ) -> ListMessagesOutput: """ Gets a list of messages associated with an Amazon Q Business web experience. Args: - input: - An instance of `ListMessagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1558,18 +2652,39 @@ async def list_messages( Returns: An instance of `ListMessagesOutput`. """ - return await self._invoke(input, _models.LIST_MESSAGES, [], plugins) + async def list_messages( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMessagesOutput: + return await self._invoke( + self._select_input(_models.LIST_MESSAGES, args, kwargs), + _models.LIST_MESSAGES, + [], + plugins, + ) + + @_overload + async def list_plugin_actions( + self, + request: _models.ListPluginActionsInput | _models.ListPluginActionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPluginActionsOutput: ... + + @_overload async def list_plugin_actions( - self, input: ListPluginActionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPluginActionsInputDict], ) -> ListPluginActionsOutput: """ Lists configured Amazon Q Business actions for a specific plugin in an Amazon Q Business application. Args: - input: - An instance of `ListPluginActionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1579,38 +2694,81 @@ async def list_plugin_actions( Returns: An instance of `ListPluginActionsOutput`. """ - return await self._invoke(input, _models.LIST_PLUGIN_ACTIONS, [], plugins) + async def list_plugin_actions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPluginActionsOutput: + return await self._invoke( + self._select_input(_models.LIST_PLUGIN_ACTIONS, args, kwargs), + _models.LIST_PLUGIN_ACTIONS, + [], + plugins, + ) + + @_overload + async def list_plugins( + self, + request: _models.ListPluginsInput | _models.ListPluginsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPluginsOutput: ... + + @_overload async def list_plugins( - self, input: ListPluginsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPluginsInputDict], ) -> ListPluginsOutput: """ Lists configured Amazon Q Business plugins. Args: - input: - An instance of `ListPluginsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ListPluginsOutput`. - """ - return await self._invoke(input, _models.LIST_PLUGINS, [], plugins) + Returns: + An instance of `ListPluginsOutput`. + """ + + async def list_plugins( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPluginsOutput: + return await self._invoke( + self._select_input(_models.LIST_PLUGINS, args, kwargs), + _models.LIST_PLUGINS, + [], + plugins, + ) + + @_overload + async def list_plugin_type_actions( + self, + request: _models.ListPluginTypeActionsInput + | _models.ListPluginTypeActionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPluginTypeActionsOutput: ... + @_overload async def list_plugin_type_actions( - self, input: ListPluginTypeActionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPluginTypeActionsInputDict], ) -> ListPluginTypeActionsOutput: """ Lists configured Amazon Q Business actions for any plugin type---both built-in and custom. Args: - input: - An instance of `ListPluginTypeActionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1620,17 +2778,39 @@ async def list_plugin_type_actions( Returns: An instance of `ListPluginTypeActionsOutput`. """ - return await self._invoke(input, _models.LIST_PLUGIN_TYPE_ACTIONS, [], plugins) + async def list_plugin_type_actions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPluginTypeActionsOutput: + return await self._invoke( + self._select_input(_models.LIST_PLUGIN_TYPE_ACTIONS, args, kwargs), + _models.LIST_PLUGIN_TYPE_ACTIONS, + [], + plugins, + ) + + @_overload + async def list_plugin_type_metadata( + self, + request: _models.ListPluginTypeMetadataInput + | _models.ListPluginTypeMetadataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPluginTypeMetadataOutput: ... + + @_overload async def list_plugin_type_metadata( - self, input: ListPluginTypeMetadataInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPluginTypeMetadataInputDict], ) -> ListPluginTypeMetadataOutput: """ Lists metadata for all Amazon Q Business plugin types. Args: - input: - An instance of `ListPluginTypeMetadataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1640,17 +2820,38 @@ async def list_plugin_type_metadata( Returns: An instance of `ListPluginTypeMetadataOutput`. """ - return await self._invoke(input, _models.LIST_PLUGIN_TYPE_METADATA, [], plugins) + async def list_plugin_type_metadata( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPluginTypeMetadataOutput: + return await self._invoke( + self._select_input(_models.LIST_PLUGIN_TYPE_METADATA, args, kwargs), + _models.LIST_PLUGIN_TYPE_METADATA, + [], + plugins, + ) + + @_overload async def list_retrievers( - self, input: ListRetrieversInput, plugins: list[Plugin] | None = None + self, + request: _models.ListRetrieversInput | _models.ListRetrieversInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRetrieversOutput: ... + + @_overload + async def list_retrievers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRetrieversInputDict], ) -> ListRetrieversOutput: """ Lists the retriever used by an Amazon Q Business application. Args: - input: - An instance of `ListRetrieversInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1660,17 +2861,38 @@ async def list_retrievers( Returns: An instance of `ListRetrieversOutput`. """ - return await self._invoke(input, _models.LIST_RETRIEVERS, [], plugins) + async def list_retrievers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRetrieversOutput: + return await self._invoke( + self._select_input(_models.LIST_RETRIEVERS, args, kwargs), + _models.LIST_RETRIEVERS, + [], + plugins, + ) + + @_overload + async def list_subscriptions( + self, + request: _models.ListSubscriptionsInput | _models.ListSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSubscriptionsOutput: ... + + @_overload async def list_subscriptions( - self, input: ListSubscriptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSubscriptionsInputDict], ) -> ListSubscriptionsOutput: """ Lists all subscriptions created in an Amazon Q Business application. Args: - input: - An instance of `ListSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1680,10 +2902,34 @@ async def list_subscriptions( Returns: An instance of `ListSubscriptionsOutput`. """ - return await self._invoke(input, _models.LIST_SUBSCRIPTIONS, [], plugins) + async def list_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSubscriptionsOutput: + return await self._invoke( + self._select_input(_models.LIST_SUBSCRIPTIONS, args, kwargs), + _models.LIST_SUBSCRIPTIONS, + [], + plugins, + ) + + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Gets a list of tags associated with a specified resource. Amazon Q @@ -1691,8 +2937,6 @@ async def list_tags_for_resource( them. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1702,17 +2946,38 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def list_web_experiences( + self, + request: _models.ListWebExperiencesInput | _models.ListWebExperiencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListWebExperiencesOutput: ... + + @_overload async def list_web_experiences( - self, input: ListWebExperiencesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListWebExperiencesInputDict], ) -> ListWebExperiencesOutput: """ Lists one or more Amazon Q Business Web Experiences. Args: - input: - An instance of `ListWebExperiencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1722,18 +2987,39 @@ async def list_web_experiences( Returns: An instance of `ListWebExperiencesOutput`. """ - return await self._invoke(input, _models.LIST_WEB_EXPERIENCES, [], plugins) + async def list_web_experiences( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListWebExperiencesOutput: + return await self._invoke( + self._select_input(_models.LIST_WEB_EXPERIENCES, args, kwargs), + _models.LIST_WEB_EXPERIENCES, + [], + plugins, + ) + + @_overload + async def put_feedback( + self, + request: _models.PutFeedbackInput | _models.PutFeedbackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFeedbackOutput: ... + + @_overload async def put_feedback( - self, input: PutFeedbackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFeedbackInputDict], ) -> PutFeedbackOutput: """ Enables your end user to provide feedback on their Amazon Q Business generated chat responses. Args: - input: - An instance of `PutFeedbackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1743,10 +3029,33 @@ async def put_feedback( Returns: An instance of `PutFeedbackOutput`. """ - return await self._invoke(input, _models.PUT_FEEDBACK, [], plugins) + async def put_feedback( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFeedbackOutput: + return await self._invoke( + self._select_input(_models.PUT_FEEDBACK, args, kwargs), + _models.PUT_FEEDBACK, + [], + plugins, + ) + + @_overload + async def put_group( + self, + request: _models.PutGroupInput | _models.PutGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutGroupOutput: ... + + @_overload async def put_group( - self, input: PutGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutGroupInputDict], ) -> PutGroupOutput: """ Create, or updates, a mapping of users---who have access to a @@ -1768,8 +3077,6 @@ async def put_group( `RoleArn` for Amazon Q Buisness to access the file. Args: - input: - An instance of `PutGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1779,10 +3086,34 @@ async def put_group( Returns: An instance of `PutGroupOutput`. """ - return await self._invoke(input, _models.PUT_GROUP, [], plugins) + async def put_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutGroupOutput: + return await self._invoke( + self._select_input(_models.PUT_GROUP, args, kwargs), + _models.PUT_GROUP, + [], + plugins, + ) + + @_overload + async def search_relevant_content( + self, + request: _models.SearchRelevantContentInput + | _models.SearchRelevantContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchRelevantContentOutput: ... + + @_overload async def search_relevant_content( - self, input: SearchRelevantContentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchRelevantContentInputDict], ) -> SearchRelevantContentOutput: """ Searches for relevant content in a Amazon Q Business application based @@ -1795,8 +3126,6 @@ async def search_relevant_content( level of the relevance. Args: - input: - An instance of `SearchRelevantContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1806,10 +3135,34 @@ async def search_relevant_content( Returns: An instance of `SearchRelevantContentOutput`. """ - return await self._invoke(input, _models.SEARCH_RELEVANT_CONTENT, [], plugins) + async def search_relevant_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchRelevantContentOutput: + return await self._invoke( + self._select_input(_models.SEARCH_RELEVANT_CONTENT, args, kwargs), + _models.SEARCH_RELEVANT_CONTENT, + [], + plugins, + ) + + @_overload + async def start_data_source_sync_job( + self, + request: _models.StartDataSourceSyncJobInput + | _models.StartDataSourceSyncJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDataSourceSyncJobOutput: ... + + @_overload async def start_data_source_sync_job( - self, input: StartDataSourceSyncJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDataSourceSyncJobInputDict], ) -> StartDataSourceSyncJobOutput: """ Starts a data source connector synchronization job. If a synchronization @@ -1817,8 +3170,6 @@ async def start_data_source_sync_job( `ConflictException`. Args: - input: - An instance of `StartDataSourceSyncJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1828,20 +3179,40 @@ async def start_data_source_sync_job( Returns: An instance of `StartDataSourceSyncJobOutput`. """ + + async def start_data_source_sync_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDataSourceSyncJobOutput: return await self._invoke( - input, _models.START_DATA_SOURCE_SYNC_JOB, [], plugins + self._select_input(_models.START_DATA_SOURCE_SYNC_JOB, args, kwargs), + _models.START_DATA_SOURCE_SYNC_JOB, + [], + plugins, ) + @_overload + async def stop_data_source_sync_job( + self, + request: _models.StopDataSourceSyncJobInput + | _models.StopDataSourceSyncJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDataSourceSyncJobOutput: ... + + @_overload async def stop_data_source_sync_job( - self, input: StopDataSourceSyncJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDataSourceSyncJobInputDict], ) -> StopDataSourceSyncJobOutput: """ Stops an Amazon Q Business data source connector synchronization job already in progress. Args: - input: - An instance of `StopDataSourceSyncJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1851,10 +3222,33 @@ async def stop_data_source_sync_job( Returns: An instance of `StopDataSourceSyncJobOutput`. """ - return await self._invoke(input, _models.STOP_DATA_SOURCE_SYNC_JOB, [], plugins) + async def stop_data_source_sync_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDataSourceSyncJobOutput: + return await self._invoke( + self._select_input(_models.STOP_DATA_SOURCE_SYNC_JOB, args, kwargs), + _models.STOP_DATA_SOURCE_SYNC_JOB, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds the specified tag to the specified Amazon Q Business application or @@ -1862,8 +3256,6 @@ async def tag_resource( replaced with the new value. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1873,17 +3265,38 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes a tag from an Amazon Q Business application or a data source. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1893,10 +3306,33 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_application( + self, + request: _models.UpdateApplicationInput | _models.UpdateApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateApplicationOutput: ... + + @_overload async def update_application( - self, input: UpdateApplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateApplicationInputDict], ) -> UpdateApplicationOutput: """ Updates an existing Amazon Q Business application. @@ -1913,8 +3349,6 @@ async def update_application( Apps](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles-qapps.html). Args: - input: - An instance of `UpdateApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1924,20 +3358,40 @@ async def update_application( Returns: An instance of `UpdateApplicationOutput`. """ - return await self._invoke(input, _models.UPDATE_APPLICATION, [], plugins) + async def update_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateApplicationOutput: + return await self._invoke( + self._select_input(_models.UPDATE_APPLICATION, args, kwargs), + _models.UPDATE_APPLICATION, + [], + plugins, + ) + + @_overload + async def update_chat_controls_configuration( + self, + request: _models.UpdateChatControlsConfigurationInput + | _models.UpdateChatControlsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateChatControlsConfigurationOutput: ... + + @_overload async def update_chat_controls_configuration( self, - input: UpdateChatControlsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateChatControlsConfigurationInputDict], ) -> UpdateChatControlsConfigurationOutput: """ Updates a set of chat controls configured for an existing Amazon Q Business application. Args: - input: - An instance of `UpdateChatControlsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1947,14 +3401,36 @@ async def update_chat_controls_configuration( Returns: An instance of `UpdateChatControlsConfigurationOutput`. """ + + async def update_chat_controls_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateChatControlsConfigurationOutput: return await self._invoke( - input, _models.UPDATE_CHAT_CONTROLS_CONFIGURATION, [], plugins + self._select_input( + _models.UPDATE_CHAT_CONTROLS_CONFIGURATION, args, kwargs + ), + _models.UPDATE_CHAT_CONTROLS_CONFIGURATION, + [], + plugins, ) + @_overload + async def update_chat_response_configuration( + self, + request: _models.UpdateChatResponseConfigurationInput + | _models.UpdateChatResponseConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateChatResponseConfigurationOutput: ... + + @_overload async def update_chat_response_configuration( self, - input: UpdateChatResponseConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateChatResponseConfigurationInputDict], ) -> UpdateChatResponseConfigurationOutput: """ Updates an existing chat response configuration in an Amazon Q Business @@ -1963,8 +3439,6 @@ async def update_chat_response_configuration( how the system generates responses. Args: - input: - An instance of `UpdateChatResponseConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1974,12 +3448,35 @@ async def update_chat_response_configuration( Returns: An instance of `UpdateChatResponseConfigurationOutput`. """ + + async def update_chat_response_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateChatResponseConfigurationOutput: return await self._invoke( - input, _models.UPDATE_CHAT_RESPONSE_CONFIGURATION, [], plugins + self._select_input( + _models.UPDATE_CHAT_RESPONSE_CONFIGURATION, args, kwargs + ), + _models.UPDATE_CHAT_RESPONSE_CONFIGURATION, + [], + plugins, ) + @_overload async def update_data_accessor( - self, input: UpdateDataAccessorInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateDataAccessorInput | _models.UpdateDataAccessorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDataAccessorOutput: ... + + @_overload + async def update_data_accessor( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataAccessorInputDict], ) -> UpdateDataAccessorOutput: """ Updates an existing data accessor. This operation allows modifying the @@ -1989,8 +3486,6 @@ async def update_data_accessor( the data accessor. Args: - input: - An instance of `UpdateDataAccessorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2000,17 +3495,38 @@ async def update_data_accessor( Returns: An instance of `UpdateDataAccessorOutput`. """ - return await self._invoke(input, _models.UPDATE_DATA_ACCESSOR, [], plugins) + async def update_data_accessor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataAccessorOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DATA_ACCESSOR, args, kwargs), + _models.UPDATE_DATA_ACCESSOR, + [], + plugins, + ) + + @_overload + async def update_data_source( + self, + request: _models.UpdateDataSourceInput | _models.UpdateDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDataSourceOutput: ... + + @_overload async def update_data_source( - self, input: UpdateDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataSourceInputDict], ) -> UpdateDataSourceOutput: """ Updates an existing Amazon Q Business data source connector. Args: - input: - An instance of `UpdateDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2020,17 +3536,38 @@ async def update_data_source( Returns: An instance of `UpdateDataSourceOutput`. """ - return await self._invoke(input, _models.UPDATE_DATA_SOURCE, [], plugins) + async def update_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataSourceOutput: + return await self._invoke( + self._select_input(_models.UPDATE_DATA_SOURCE, args, kwargs), + _models.UPDATE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + async def update_index( + self, + request: _models.UpdateIndexInput | _models.UpdateIndexInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIndexOutput: ... + + @_overload async def update_index( - self, input: UpdateIndexInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIndexInputDict], ) -> UpdateIndexOutput: """ Updates an Amazon Q Business index. Args: - input: - An instance of `UpdateIndexInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2040,17 +3577,38 @@ async def update_index( Returns: An instance of `UpdateIndexOutput`. """ - return await self._invoke(input, _models.UPDATE_INDEX, [], plugins) + async def update_index( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIndexOutput: + return await self._invoke( + self._select_input(_models.UPDATE_INDEX, args, kwargs), + _models.UPDATE_INDEX, + [], + plugins, + ) + + @_overload + async def update_plugin( + self, + request: _models.UpdatePluginInput | _models.UpdatePluginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePluginOutput: ... + + @_overload async def update_plugin( - self, input: UpdatePluginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePluginInputDict], ) -> UpdatePluginOutput: """ Updates an Amazon Q Business plugin. Args: - input: - An instance of `UpdatePluginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2060,17 +3618,38 @@ async def update_plugin( Returns: An instance of `UpdatePluginOutput`. """ - return await self._invoke(input, _models.UPDATE_PLUGIN, [], plugins) + async def update_plugin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePluginOutput: + return await self._invoke( + self._select_input(_models.UPDATE_PLUGIN, args, kwargs), + _models.UPDATE_PLUGIN, + [], + plugins, + ) + + @_overload + async def update_retriever( + self, + request: _models.UpdateRetrieverInput | _models.UpdateRetrieverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRetrieverOutput: ... + + @_overload async def update_retriever( - self, input: UpdateRetrieverInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRetrieverInputDict], ) -> UpdateRetrieverOutput: """ Updates the retriever used for your Amazon Q Business application. Args: - input: - An instance of `UpdateRetrieverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2080,10 +3659,33 @@ async def update_retriever( Returns: An instance of `UpdateRetrieverOutput`. """ - return await self._invoke(input, _models.UPDATE_RETRIEVER, [], plugins) + async def update_retriever( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRetrieverOutput: + return await self._invoke( + self._select_input(_models.UPDATE_RETRIEVER, args, kwargs), + _models.UPDATE_RETRIEVER, + [], + plugins, + ) + + @_overload + async def update_subscription( + self, + request: _models.UpdateSubscriptionInput | _models.UpdateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSubscriptionOutput: ... + + @_overload async def update_subscription( - self, input: UpdateSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSubscriptionInputDict], ) -> UpdateSubscriptionOutput: """ Updates the pricing tier for an Amazon Q Business subscription. Upgrades @@ -2093,8 +3695,6 @@ async def update_subscription( pricing](https://aws.amazon.com/q/business/pricing/). Args: - input: - An instance of `UpdateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2104,17 +3704,38 @@ async def update_subscription( Returns: An instance of `UpdateSubscriptionOutput`. """ - return await self._invoke(input, _models.UPDATE_SUBSCRIPTION, [], plugins) + async def update_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSubscriptionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_SUBSCRIPTION, args, kwargs), + _models.UPDATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + async def update_user( + self, + request: _models.UpdateUserInput | _models.UpdateUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateUserOutput: ... + + @_overload async def update_user( - self, input: UpdateUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateUserInputDict], ) -> UpdateUserOutput: """ Updates a information associated with a user id. Args: - input: - An instance of `UpdateUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2124,17 +3745,39 @@ async def update_user( Returns: An instance of `UpdateUserOutput`. """ - return await self._invoke(input, _models.UPDATE_USER, [], plugins) + async def update_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateUserOutput: + return await self._invoke( + self._select_input(_models.UPDATE_USER, args, kwargs), + _models.UPDATE_USER, + [], + plugins, + ) + + @_overload + async def update_web_experience( + self, + request: _models.UpdateWebExperienceInput + | _models.UpdateWebExperienceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateWebExperienceOutput: ... + + @_overload async def update_web_experience( - self, input: UpdateWebExperienceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateWebExperienceInputDict], ) -> UpdateWebExperienceOutput: """ Updates an Amazon Q Business web experience. Args: - input: - An instance of `UpdateWebExperienceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2144,7 +3787,16 @@ async def update_web_experience( Returns: An instance of `UpdateWebExperienceOutput`. """ - return await self._invoke(input, _models.UPDATE_WEB_EXPERIENCE, [], plugins) + + async def update_web_experience( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateWebExperienceOutput: + return await self._invoke( + self._select_input(_models.UPDATE_WEB_EXPERIENCE, args, kwargs), + _models.UPDATE_WEB_EXPERIENCE, + [], + plugins, + ) async def _new_config(self) -> AsyncQBusinessConfig: return await AsyncQBusinessConfig.resolve() diff --git a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/client.py b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/client.py index c25290444..058fc290a 100644 --- a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/client.py +++ b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,169 +20,87 @@ if TYPE_CHECKING: from .models import ( - AssociatePermissionInput, AssociatePermissionOutput, - BatchDeleteDocumentInput, BatchDeleteDocumentOutput, - BatchPutDocumentInput, BatchPutDocumentOutput, - CancelSubscriptionInput, CancelSubscriptionOutput, - ChatSyncInput, ChatSyncOutput, - CheckDocumentAccessInput, CheckDocumentAccessOutput, - CreateAnonymousWebExperienceUrlInput, CreateAnonymousWebExperienceUrlOutput, - CreateApplicationInput, CreateApplicationOutput, - CreateChatResponseConfigurationInput, CreateChatResponseConfigurationOutput, - CreateDataAccessorInput, CreateDataAccessorOutput, - CreateDataSourceInput, CreateDataSourceOutput, - CreateIndexInput, CreateIndexOutput, - CreatePluginInput, CreatePluginOutput, - CreateRetrieverInput, CreateRetrieverOutput, - CreateSubscriptionInput, CreateSubscriptionOutput, - CreateUserInput, CreateUserOutput, - CreateWebExperienceInput, CreateWebExperienceOutput, - DeleteApplicationInput, DeleteApplicationOutput, - DeleteAttachmentInput, DeleteAttachmentOutput, - DeleteChatControlsConfigurationInput, DeleteChatControlsConfigurationOutput, - DeleteChatResponseConfigurationInput, DeleteChatResponseConfigurationOutput, - DeleteConversationInput, DeleteConversationOutput, - DeleteDataAccessorInput, DeleteDataAccessorOutput, - DeleteDataSourceInput, DeleteDataSourceOutput, - DeleteGroupInput, DeleteGroupOutput, - DeleteIndexInput, DeleteIndexOutput, - DeletePluginInput, DeletePluginOutput, - DeleteRetrieverInput, DeleteRetrieverOutput, - DeleteUserInput, DeleteUserOutput, - DeleteWebExperienceInput, DeleteWebExperienceOutput, - DisassociatePermissionInput, DisassociatePermissionOutput, - GetApplicationInput, GetApplicationOutput, - GetChatControlsConfigurationInput, GetChatControlsConfigurationOutput, - GetChatResponseConfigurationInput, GetChatResponseConfigurationOutput, - GetDataAccessorInput, GetDataAccessorOutput, - GetDataSourceInput, GetDataSourceOutput, - GetDocumentContentInput, GetDocumentContentOutput, - GetGroupInput, GetGroupOutput, - GetIndexInput, GetIndexOutput, - GetMediaInput, GetMediaOutput, - GetPluginInput, GetPluginOutput, - GetPolicyInput, GetPolicyOutput, - GetRetrieverInput, GetRetrieverOutput, - GetUserInput, GetUserOutput, - GetWebExperienceInput, GetWebExperienceOutput, - ListApplicationsInput, ListApplicationsOutput, - ListAttachmentsInput, ListAttachmentsOutput, - ListChatResponseConfigurationsInput, ListChatResponseConfigurationsOutput, - ListConversationsInput, ListConversationsOutput, - ListDataAccessorsInput, ListDataAccessorsOutput, - ListDataSourceSyncJobsInput, ListDataSourceSyncJobsOutput, - ListDataSourcesInput, ListDataSourcesOutput, - ListDocumentsInput, ListDocumentsOutput, - ListGroupsInput, ListGroupsOutput, - ListIndicesInput, ListIndicesOutput, - ListMessagesInput, ListMessagesOutput, - ListPluginActionsInput, ListPluginActionsOutput, - ListPluginTypeActionsInput, ListPluginTypeActionsOutput, - ListPluginTypeMetadataInput, ListPluginTypeMetadataOutput, - ListPluginsInput, ListPluginsOutput, - ListRetrieversInput, ListRetrieversOutput, - ListSubscriptionsInput, ListSubscriptionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListWebExperiencesInput, ListWebExperiencesOutput, - PutFeedbackInput, PutFeedbackOutput, - PutGroupInput, PutGroupOutput, - SearchRelevantContentInput, SearchRelevantContentOutput, - StartDataSourceSyncJobInput, StartDataSourceSyncJobOutput, - StopDataSourceSyncJobInput, StopDataSourceSyncJobOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateApplicationInput, UpdateApplicationOutput, - UpdateChatControlsConfigurationInput, UpdateChatControlsConfigurationOutput, - UpdateChatResponseConfigurationInput, UpdateChatResponseConfigurationOutput, - UpdateDataAccessorInput, UpdateDataAccessorOutput, - UpdateDataSourceInput, UpdateDataSourceOutput, - UpdateIndexInput, UpdateIndexOutput, - UpdatePluginInput, UpdatePluginOutput, - UpdateRetrieverInput, UpdateRetrieverOutput, - UpdateSubscriptionInput, UpdateSubscriptionOutput, - UpdateUserInput, UpdateUserOutput, - UpdateWebExperienceInput, UpdateWebExperienceOutput, ) @@ -226,10 +144,25 @@ class QBusinessClient(Client[QBusinessConfig]): Reference](https://docs.aws.amazon.com/general/latest/gr/amazonq.html)* """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def associate_permission( - self, input: AssociatePermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.AssociatePermissionInput + | _models.AssociatePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssociatePermissionOutput: ... + + @_overload + def associate_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssociatePermissionInputDict], ) -> AssociatePermissionOutput: """ Adds or updates a permission policy for a Amazon Q Business application, @@ -239,8 +172,6 @@ def associate_permission( perform on the Amazon Q Business application's resources. Args: - input: - An instance of `AssociatePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -250,10 +181,34 @@ def associate_permission( Returns: An instance of `AssociatePermissionOutput`. """ - return self._invoke(input, _models.ASSOCIATE_PERMISSION, [], plugins) + def associate_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssociatePermissionOutput: + return self._invoke( + self._select_input(_models.ASSOCIATE_PERMISSION, args, kwargs), + _models.ASSOCIATE_PERMISSION, + [], + plugins, + ) + + @_overload + def batch_delete_document( + self, + request: _models.BatchDeleteDocumentInput + | _models.BatchDeleteDocumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchDeleteDocumentOutput: ... + + @_overload def batch_delete_document( - self, input: BatchDeleteDocumentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchDeleteDocumentInputDict], ) -> BatchDeleteDocumentOutput: """ Asynchronously deletes one or more documents added using the @@ -263,8 +218,6 @@ def batch_delete_document( to the process, by using CloudWatch. Args: - input: - An instance of `BatchDeleteDocumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -274,10 +227,33 @@ def batch_delete_document( Returns: An instance of `BatchDeleteDocumentOutput`. """ - return self._invoke(input, _models.BATCH_DELETE_DOCUMENT, [], plugins) + def batch_delete_document( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchDeleteDocumentOutput: + return self._invoke( + self._select_input(_models.BATCH_DELETE_DOCUMENT, args, kwargs), + _models.BATCH_DELETE_DOCUMENT, + [], + plugins, + ) + + @_overload + def batch_put_document( + self, + request: _models.BatchPutDocumentInput | _models.BatchPutDocumentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchPutDocumentOutput: ... + + @_overload def batch_put_document( - self, input: BatchPutDocumentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchPutDocumentInputDict], ) -> BatchPutDocumentOutput: """ Adds one or more documents to an Amazon Q Business index. @@ -296,8 +272,6 @@ def batch_put_document( to the process, by using CloudWatch. Args: - input: - An instance of `BatchPutDocumentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -307,10 +281,33 @@ def batch_put_document( Returns: An instance of `BatchPutDocumentOutput`. """ - return self._invoke(input, _models.BATCH_PUT_DOCUMENT, [], plugins) + def batch_put_document( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchPutDocumentOutput: + return self._invoke( + self._select_input(_models.BATCH_PUT_DOCUMENT, args, kwargs), + _models.BATCH_PUT_DOCUMENT, + [], + plugins, + ) + + @_overload + def cancel_subscription( + self, + request: _models.CancelSubscriptionInput | _models.CancelSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelSubscriptionOutput: ... + + @_overload def cancel_subscription( - self, input: CancelSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelSubscriptionInputDict], ) -> CancelSubscriptionOutput: """ Unsubscribes a user or a group from their pricing tier in an Amazon Q @@ -318,8 +315,6 @@ def cancel_subscription( Business feature access at the start of next month. Args: - input: - An instance of `CancelSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -329,17 +324,38 @@ def cancel_subscription( Returns: An instance of `CancelSubscriptionOutput`. """ - return self._invoke(input, _models.CANCEL_SUBSCRIPTION, [], plugins) + def cancel_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelSubscriptionOutput: + return self._invoke( + self._select_input(_models.CANCEL_SUBSCRIPTION, args, kwargs), + _models.CANCEL_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def chat_sync( + self, + request: _models.ChatSyncInput | _models.ChatSyncInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ChatSyncOutput: ... + + @_overload def chat_sync( - self, input: ChatSyncInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChatSyncInputDict], ) -> ChatSyncOutput: """ Starts or continues a non-streaming Amazon Q Business conversation. Args: - input: - An instance of `ChatSyncInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -349,10 +365,34 @@ def chat_sync( Returns: An instance of `ChatSyncOutput`. """ - return self._invoke(input, _models.CHAT_SYNC, [], plugins) + def chat_sync( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ChatSyncOutput: + return self._invoke( + self._select_input(_models.CHAT_SYNC, args, kwargs), + _models.CHAT_SYNC, + [], + plugins, + ) + + @_overload + def check_document_access( + self, + request: _models.CheckDocumentAccessInput + | _models.CheckDocumentAccessInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CheckDocumentAccessOutput: ... + + @_overload def check_document_access( - self, input: CheckDocumentAccessInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CheckDocumentAccessInputDict], ) -> CheckDocumentAccessOutput: """ Verifies if a user has access permissions for a specified document and @@ -360,8 +400,6 @@ def check_document_access( the document via user aliases and groups when verifying user access. Args: - input: - An instance of `CheckDocumentAccessInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -371,12 +409,34 @@ def check_document_access( Returns: An instance of `CheckDocumentAccessOutput`. """ - return self._invoke(input, _models.CHECK_DOCUMENT_ACCESS, [], plugins) + def check_document_access( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CheckDocumentAccessOutput: + return self._invoke( + self._select_input(_models.CHECK_DOCUMENT_ACCESS, args, kwargs), + _models.CHECK_DOCUMENT_ACCESS, + [], + plugins, + ) + + @_overload + def create_anonymous_web_experience_url( + self, + request: _models.CreateAnonymousWebExperienceUrlInput + | _models.CreateAnonymousWebExperienceUrlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateAnonymousWebExperienceUrlOutput: ... + + @_overload def create_anonymous_web_experience_url( self, - input: CreateAnonymousWebExperienceUrlInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateAnonymousWebExperienceUrlInputDict], ) -> CreateAnonymousWebExperienceUrlOutput: """ Creates a unique URL for anonymous Amazon Q Business web experience. @@ -384,8 +444,6 @@ def create_anonymous_web_experience_url( it's generated. Args: - input: - An instance of `CreateAnonymousWebExperienceUrlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -395,12 +453,35 @@ def create_anonymous_web_experience_url( Returns: An instance of `CreateAnonymousWebExperienceUrlOutput`. """ + + def create_anonymous_web_experience_url( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateAnonymousWebExperienceUrlOutput: return self._invoke( - input, _models.CREATE_ANONYMOUS_WEB_EXPERIENCE_URL, [], plugins + self._select_input( + _models.CREATE_ANONYMOUS_WEB_EXPERIENCE_URL, args, kwargs + ), + _models.CREATE_ANONYMOUS_WEB_EXPERIENCE_URL, + [], + plugins, ) + @_overload + def create_application( + self, + request: _models.CreateApplicationInput | _models.CreateApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateApplicationOutput: ... + + @_overload def create_application( - self, input: CreateApplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateApplicationInputDict], ) -> CreateApplicationOutput: """ Creates an Amazon Q Business application. @@ -426,8 +507,6 @@ def create_application( Business](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/cross-region-inference.html). Args: - input: - An instance of `CreateApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -437,12 +516,34 @@ def create_application( Returns: An instance of `CreateApplicationOutput`. """ - return self._invoke(input, _models.CREATE_APPLICATION, [], plugins) + def create_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateApplicationOutput: + return self._invoke( + self._select_input(_models.CREATE_APPLICATION, args, kwargs), + _models.CREATE_APPLICATION, + [], + plugins, + ) + + @_overload + def create_chat_response_configuration( + self, + request: _models.CreateChatResponseConfigurationInput + | _models.CreateChatResponseConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateChatResponseConfigurationOutput: ... + + @_overload def create_chat_response_configuration( self, - input: CreateChatResponseConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateChatResponseConfigurationInputDict], ) -> CreateChatResponseConfigurationOutput: """ Creates a new chat response configuration for an Amazon Q Business @@ -451,8 +552,6 @@ def create_chat_response_configuration( interactions. Args: - input: - An instance of `CreateChatResponseConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -462,12 +561,35 @@ def create_chat_response_configuration( Returns: An instance of `CreateChatResponseConfigurationOutput`. """ + + def create_chat_response_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateChatResponseConfigurationOutput: return self._invoke( - input, _models.CREATE_CHAT_RESPONSE_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_CHAT_RESPONSE_CONFIGURATION, args, kwargs + ), + _models.CREATE_CHAT_RESPONSE_CONFIGURATION, + [], + plugins, ) + @_overload + def create_data_accessor( + self, + request: _models.CreateDataAccessorInput | _models.CreateDataAccessorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataAccessorOutput: ... + + @_overload def create_data_accessor( - self, input: CreateDataAccessorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataAccessorInputDict], ) -> CreateDataAccessorOutput: """ Creates a new data accessor for an ISV to access data from a Amazon Q @@ -481,8 +603,6 @@ def create_data_accessor( Business application. Args: - input: - An instance of `CreateDataAccessorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -492,10 +612,33 @@ def create_data_accessor( Returns: An instance of `CreateDataAccessorOutput`. """ - return self._invoke(input, _models.CREATE_DATA_ACCESSOR, [], plugins) + def create_data_accessor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataAccessorOutput: + return self._invoke( + self._select_input(_models.CREATE_DATA_ACCESSOR, args, kwargs), + _models.CREATE_DATA_ACCESSOR, + [], + plugins, + ) + + @_overload + def create_data_source( + self, + request: _models.CreateDataSourceInput | _models.CreateDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDataSourceOutput: ... + + @_overload def create_data_source( - self, input: CreateDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDataSourceInputDict], ) -> CreateDataSourceOutput: """ Creates a data source connector for an Amazon Q Business application. @@ -505,8 +648,6 @@ def create_data_source( raised. Args: - input: - An instance of `CreateDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -516,10 +657,33 @@ def create_data_source( Returns: An instance of `CreateDataSourceOutput`. """ - return self._invoke(input, _models.CREATE_DATA_SOURCE, [], plugins) + def create_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDataSourceOutput: + return self._invoke( + self._select_input(_models.CREATE_DATA_SOURCE, args, kwargs), + _models.CREATE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + def create_index( + self, + request: _models.CreateIndexInput | _models.CreateIndexInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIndexOutput: ... + + @_overload def create_index( - self, input: CreateIndexInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIndexInputDict], ) -> CreateIndexOutput: """ Creates an Amazon Q Business index. @@ -535,8 +699,6 @@ def create_index( API. Args: - input: - An instance of `CreateIndexInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -546,17 +708,38 @@ def create_index( Returns: An instance of `CreateIndexOutput`. """ - return self._invoke(input, _models.CREATE_INDEX, [], plugins) + def create_index( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIndexOutput: + return self._invoke( + self._select_input(_models.CREATE_INDEX, args, kwargs), + _models.CREATE_INDEX, + [], + plugins, + ) + + @_overload + def create_plugin( + self, + request: _models.CreatePluginInput | _models.CreatePluginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePluginOutput: ... + + @_overload def create_plugin( - self, input: CreatePluginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePluginInputDict], ) -> CreatePluginOutput: """ Creates an Amazon Q Business plugin. Args: - input: - An instance of `CreatePluginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -566,17 +749,38 @@ def create_plugin( Returns: An instance of `CreatePluginOutput`. """ - return self._invoke(input, _models.CREATE_PLUGIN, [], plugins) + def create_plugin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePluginOutput: + return self._invoke( + self._select_input(_models.CREATE_PLUGIN, args, kwargs), + _models.CREATE_PLUGIN, + [], + plugins, + ) + + @_overload + def create_retriever( + self, + request: _models.CreateRetrieverInput | _models.CreateRetrieverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateRetrieverOutput: ... + + @_overload def create_retriever( - self, input: CreateRetrieverInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateRetrieverInputDict], ) -> CreateRetrieverOutput: """ Adds a retriever to your Amazon Q Business application. Args: - input: - An instance of `CreateRetrieverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -586,10 +790,33 @@ def create_retriever( Returns: An instance of `CreateRetrieverOutput`. """ - return self._invoke(input, _models.CREATE_RETRIEVER, [], plugins) + def create_retriever( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateRetrieverOutput: + return self._invoke( + self._select_input(_models.CREATE_RETRIEVER, args, kwargs), + _models.CREATE_RETRIEVER, + [], + plugins, + ) + + @_overload + def create_subscription( + self, + request: _models.CreateSubscriptionInput | _models.CreateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSubscriptionOutput: ... + + @_overload def create_subscription( - self, input: CreateSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSubscriptionInputDict], ) -> CreateSubscriptionOutput: """ Subscribes an IAM Identity Center user or a group to a pricing tier for @@ -607,8 +834,6 @@ def create_subscription( in the Amazon Q Business User Guide. Args: - input: - An instance of `CreateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -618,18 +843,39 @@ def create_subscription( Returns: An instance of `CreateSubscriptionOutput`. """ - return self._invoke(input, _models.CREATE_SUBSCRIPTION, [], plugins) + def create_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSubscriptionOutput: + return self._invoke( + self._select_input(_models.CREATE_SUBSCRIPTION, args, kwargs), + _models.CREATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def create_user( + self, + request: _models.CreateUserInput | _models.CreateUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateUserOutput: ... + + @_overload def create_user( - self, input: CreateUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateUserInputDict], ) -> CreateUserOutput: """ Creates a universally unique identifier (UUID) mapped to a list of local user ids within an application. Args: - input: - An instance of `CreateUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -639,17 +885,39 @@ def create_user( Returns: An instance of `CreateUserOutput`. """ - return self._invoke(input, _models.CREATE_USER, [], plugins) + def create_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateUserOutput: + return self._invoke( + self._select_input(_models.CREATE_USER, args, kwargs), + _models.CREATE_USER, + [], + plugins, + ) + + @_overload def create_web_experience( - self, input: CreateWebExperienceInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateWebExperienceInput + | _models.CreateWebExperienceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateWebExperienceOutput: ... + + @_overload + def create_web_experience( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateWebExperienceInputDict], ) -> CreateWebExperienceOutput: """ Creates an Amazon Q Business web experience. Args: - input: - An instance of `CreateWebExperienceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -659,17 +927,38 @@ def create_web_experience( Returns: An instance of `CreateWebExperienceOutput`. """ - return self._invoke(input, _models.CREATE_WEB_EXPERIENCE, [], plugins) + def create_web_experience( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateWebExperienceOutput: + return self._invoke( + self._select_input(_models.CREATE_WEB_EXPERIENCE, args, kwargs), + _models.CREATE_WEB_EXPERIENCE, + [], + plugins, + ) + + @_overload + def delete_application( + self, + request: _models.DeleteApplicationInput | _models.DeleteApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteApplicationOutput: ... + + @_overload def delete_application( - self, input: DeleteApplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteApplicationInputDict], ) -> DeleteApplicationOutput: """ Deletes an Amazon Q Business application. Args: - input: - An instance of `DeleteApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -679,18 +968,39 @@ def delete_application( Returns: An instance of `DeleteApplicationOutput`. """ - return self._invoke(input, _models.DELETE_APPLICATION, [], plugins) + def delete_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteApplicationOutput: + return self._invoke( + self._select_input(_models.DELETE_APPLICATION, args, kwargs), + _models.DELETE_APPLICATION, + [], + plugins, + ) + + @_overload + def delete_attachment( + self, + request: _models.DeleteAttachmentInput | _models.DeleteAttachmentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteAttachmentOutput: ... + + @_overload def delete_attachment( - self, input: DeleteAttachmentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteAttachmentInputDict], ) -> DeleteAttachmentOutput: """ Deletes an attachment associated with a specific Amazon Q Business conversation. Args: - input: - An instance of `DeleteAttachmentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -700,20 +1010,40 @@ def delete_attachment( Returns: An instance of `DeleteAttachmentOutput`. """ - return self._invoke(input, _models.DELETE_ATTACHMENT, [], plugins) + def delete_attachment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteAttachmentOutput: + return self._invoke( + self._select_input(_models.DELETE_ATTACHMENT, args, kwargs), + _models.DELETE_ATTACHMENT, + [], + plugins, + ) + + @_overload + def delete_chat_controls_configuration( + self, + request: _models.DeleteChatControlsConfigurationInput + | _models.DeleteChatControlsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteChatControlsConfigurationOutput: ... + + @_overload def delete_chat_controls_configuration( self, - input: DeleteChatControlsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChatControlsConfigurationInputDict], ) -> DeleteChatControlsConfigurationOutput: """ Deletes chat controls configured for an existing Amazon Q Business application. Args: - input: - An instance of `DeleteChatControlsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -723,22 +1053,42 @@ def delete_chat_controls_configuration( Returns: An instance of `DeleteChatControlsConfigurationOutput`. """ + + def delete_chat_controls_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChatControlsConfigurationOutput: return self._invoke( - input, _models.DELETE_CHAT_CONTROLS_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_CHAT_CONTROLS_CONFIGURATION, args, kwargs + ), + _models.DELETE_CHAT_CONTROLS_CONFIGURATION, + [], + plugins, ) + @_overload def delete_chat_response_configuration( self, - input: DeleteChatResponseConfigurationInput, + request: _models.DeleteChatResponseConfigurationInput + | _models.DeleteChatResponseConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteChatResponseConfigurationOutput: ... + + @_overload + def delete_chat_response_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteChatResponseConfigurationInputDict], ) -> DeleteChatResponseConfigurationOutput: """ Deletes a specified chat response configuration from an Amazon Q Business application. Args: - input: - An instance of `DeleteChatResponseConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -748,19 +1098,40 @@ def delete_chat_response_configuration( Returns: An instance of `DeleteChatResponseConfigurationOutput`. """ + + def delete_chat_response_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteChatResponseConfigurationOutput: return self._invoke( - input, _models.DELETE_CHAT_RESPONSE_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_CHAT_RESPONSE_CONFIGURATION, args, kwargs + ), + _models.DELETE_CHAT_RESPONSE_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_conversation( + self, + request: _models.DeleteConversationInput | _models.DeleteConversationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteConversationOutput: ... + + @_overload def delete_conversation( - self, input: DeleteConversationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConversationInputDict], ) -> DeleteConversationOutput: """ Deletes an Amazon Q Business web experience conversation. Args: - input: - An instance of `DeleteConversationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -770,10 +1141,33 @@ def delete_conversation( Returns: An instance of `DeleteConversationOutput`. """ - return self._invoke(input, _models.DELETE_CONVERSATION, [], plugins) + def delete_conversation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConversationOutput: + return self._invoke( + self._select_input(_models.DELETE_CONVERSATION, args, kwargs), + _models.DELETE_CONVERSATION, + [], + plugins, + ) + + @_overload + def delete_data_accessor( + self, + request: _models.DeleteDataAccessorInput | _models.DeleteDataAccessorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDataAccessorOutput: ... + + @_overload def delete_data_accessor( - self, input: DeleteDataAccessorInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataAccessorInputDict], ) -> DeleteDataAccessorOutput: """ Deletes a specified data accessor. This operation permanently removes @@ -782,8 +1176,6 @@ def delete_data_accessor( revoked. Args: - input: - An instance of `DeleteDataAccessorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -793,10 +1185,33 @@ def delete_data_accessor( Returns: An instance of `DeleteDataAccessorOutput`. """ - return self._invoke(input, _models.DELETE_DATA_ACCESSOR, [], plugins) + def delete_data_accessor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataAccessorOutput: + return self._invoke( + self._select_input(_models.DELETE_DATA_ACCESSOR, args, kwargs), + _models.DELETE_DATA_ACCESSOR, + [], + plugins, + ) + + @_overload + def delete_data_source( + self, + request: _models.DeleteDataSourceInput | _models.DeleteDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDataSourceOutput: ... + + @_overload def delete_data_source( - self, input: DeleteDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDataSourceInputDict], ) -> DeleteDataSourceOutput: """ Deletes an Amazon Q Business data source connector. While the data @@ -804,8 +1219,6 @@ def delete_data_source( `DescribeDataSource` API is set to `DELETING`. Args: - input: - An instance of `DeleteDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -815,10 +1228,33 @@ def delete_data_source( Returns: An instance of `DeleteDataSourceOutput`. """ - return self._invoke(input, _models.DELETE_DATA_SOURCE, [], plugins) + def delete_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDataSourceOutput: + return self._invoke( + self._select_input(_models.DELETE_DATA_SOURCE, args, kwargs), + _models.DELETE_DATA_SOURCE, + [], + plugins, + ) + + @_overload def delete_group( - self, input: DeleteGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteGroupInput | _models.DeleteGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGroupOutput: ... + + @_overload + def delete_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGroupInputDict], ) -> DeleteGroupOutput: """ Deletes a group so that all users and sub groups that belong to the @@ -834,8 +1270,6 @@ def delete_group( groups that belong to the \"Engineering\" group when calling `PutGroup`. Args: - input: - An instance of `DeleteGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -845,17 +1279,38 @@ def delete_group( Returns: An instance of `DeleteGroupOutput`. """ - return self._invoke(input, _models.DELETE_GROUP, [], plugins) - def delete_index( - self, input: DeleteIndexInput, plugins: list[Plugin] | None = None - ) -> DeleteIndexOutput: + def delete_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_GROUP, args, kwargs), + _models.DELETE_GROUP, + [], + plugins, + ) + + @_overload + def delete_index( + self, + request: _models.DeleteIndexInput | _models.DeleteIndexInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIndexOutput: ... + + @_overload + def delete_index( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIndexInputDict], + ) -> DeleteIndexOutput: """ Deletes an Amazon Q Business index. Args: - input: - An instance of `DeleteIndexInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -865,17 +1320,38 @@ def delete_index( Returns: An instance of `DeleteIndexOutput`. """ - return self._invoke(input, _models.DELETE_INDEX, [], plugins) + def delete_index( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIndexOutput: + return self._invoke( + self._select_input(_models.DELETE_INDEX, args, kwargs), + _models.DELETE_INDEX, + [], + plugins, + ) + + @_overload def delete_plugin( - self, input: DeletePluginInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePluginInput | _models.DeletePluginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePluginOutput: ... + + @_overload + def delete_plugin( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePluginInputDict], ) -> DeletePluginOutput: """ Deletes an Amazon Q Business plugin. Args: - input: - An instance of `DeletePluginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -885,17 +1361,38 @@ def delete_plugin( Returns: An instance of `DeletePluginOutput`. """ - return self._invoke(input, _models.DELETE_PLUGIN, [], plugins) + def delete_plugin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePluginOutput: + return self._invoke( + self._select_input(_models.DELETE_PLUGIN, args, kwargs), + _models.DELETE_PLUGIN, + [], + plugins, + ) + + @_overload def delete_retriever( - self, input: DeleteRetrieverInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteRetrieverInput | _models.DeleteRetrieverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteRetrieverOutput: ... + + @_overload + def delete_retriever( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteRetrieverInputDict], ) -> DeleteRetrieverOutput: """ Deletes the retriever used by an Amazon Q Business application. Args: - input: - An instance of `DeleteRetrieverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -905,17 +1402,38 @@ def delete_retriever( Returns: An instance of `DeleteRetrieverOutput`. """ - return self._invoke(input, _models.DELETE_RETRIEVER, [], plugins) + def delete_retriever( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteRetrieverOutput: + return self._invoke( + self._select_input(_models.DELETE_RETRIEVER, args, kwargs), + _models.DELETE_RETRIEVER, + [], + plugins, + ) + + @_overload def delete_user( - self, input: DeleteUserInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteUserInput | _models.DeleteUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteUserOutput: ... + + @_overload + def delete_user( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteUserInputDict], ) -> DeleteUserOutput: """ Deletes a user by email id. Args: - input: - An instance of `DeleteUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -925,17 +1443,39 @@ def delete_user( Returns: An instance of `DeleteUserOutput`. """ - return self._invoke(input, _models.DELETE_USER, [], plugins) + def delete_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteUserOutput: + return self._invoke( + self._select_input(_models.DELETE_USER, args, kwargs), + _models.DELETE_USER, + [], + plugins, + ) + + @_overload + def delete_web_experience( + self, + request: _models.DeleteWebExperienceInput + | _models.DeleteWebExperienceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteWebExperienceOutput: ... + + @_overload def delete_web_experience( - self, input: DeleteWebExperienceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteWebExperienceInputDict], ) -> DeleteWebExperienceOutput: """ Deletes an Amazon Q Business web experience. Args: - input: - An instance of `DeleteWebExperienceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -945,10 +1485,34 @@ def delete_web_experience( Returns: An instance of `DeleteWebExperienceOutput`. """ - return self._invoke(input, _models.DELETE_WEB_EXPERIENCE, [], plugins) + def delete_web_experience( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteWebExperienceOutput: + return self._invoke( + self._select_input(_models.DELETE_WEB_EXPERIENCE, args, kwargs), + _models.DELETE_WEB_EXPERIENCE, + [], + plugins, + ) + + @_overload def disassociate_permission( - self, input: DisassociatePermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.DisassociatePermissionInput + | _models.DisassociatePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisassociatePermissionOutput: ... + + @_overload + def disassociate_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisassociatePermissionInputDict], ) -> DisassociatePermissionOutput: """ Removes a permission policy from a Amazon Q Business application, @@ -957,8 +1521,6 @@ def disassociate_permission( application's permission policy. Args: - input: - An instance of `DisassociatePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -968,17 +1530,38 @@ def disassociate_permission( Returns: An instance of `DisassociatePermissionOutput`. """ - return self._invoke(input, _models.DISASSOCIATE_PERMISSION, [], plugins) + def disassociate_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisassociatePermissionOutput: + return self._invoke( + self._select_input(_models.DISASSOCIATE_PERMISSION, args, kwargs), + _models.DISASSOCIATE_PERMISSION, + [], + plugins, + ) + + @_overload def get_application( - self, input: GetApplicationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetApplicationInput | _models.GetApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetApplicationOutput: ... + + @_overload + def get_application( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetApplicationInputDict], ) -> GetApplicationOutput: """ Gets information about an existing Amazon Q Business application. Args: - input: - An instance of `GetApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -988,20 +1571,40 @@ def get_application( Returns: An instance of `GetApplicationOutput`. """ - return self._invoke(input, _models.GET_APPLICATION, [], plugins) + def get_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetApplicationOutput: + return self._invoke( + self._select_input(_models.GET_APPLICATION, args, kwargs), + _models.GET_APPLICATION, + [], + plugins, + ) + + @_overload def get_chat_controls_configuration( self, - input: GetChatControlsConfigurationInput, + request: _models.GetChatControlsConfigurationInput + | _models.GetChatControlsConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetChatControlsConfigurationOutput: ... + + @_overload + def get_chat_controls_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetChatControlsConfigurationInputDict], ) -> GetChatControlsConfigurationOutput: """ Gets information about chat controls configured for an existing Amazon Q Business application. Args: - input: - An instance of `GetChatControlsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1011,12 +1614,34 @@ def get_chat_controls_configuration( Returns: An instance of `GetChatControlsConfigurationOutput`. """ - return self._invoke(input, _models.GET_CHAT_CONTROLS_CONFIGURATION, [], plugins) + def get_chat_controls_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetChatControlsConfigurationOutput: + return self._invoke( + self._select_input(_models.GET_CHAT_CONTROLS_CONFIGURATION, args, kwargs), + _models.GET_CHAT_CONTROLS_CONFIGURATION, + [], + plugins, + ) + + @_overload + def get_chat_response_configuration( + self, + request: _models.GetChatResponseConfigurationInput + | _models.GetChatResponseConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetChatResponseConfigurationOutput: ... + + @_overload def get_chat_response_configuration( self, - input: GetChatResponseConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetChatResponseConfigurationInputDict], ) -> GetChatResponseConfigurationOutput: """ Retrieves detailed information about a specific chat response @@ -1024,8 +1649,6 @@ def get_chat_response_configuration( returns the complete configuration settings and metadata. Args: - input: - An instance of `GetChatResponseConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1035,10 +1658,33 @@ def get_chat_response_configuration( Returns: An instance of `GetChatResponseConfigurationOutput`. """ - return self._invoke(input, _models.GET_CHAT_RESPONSE_CONFIGURATION, [], plugins) + def get_chat_response_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetChatResponseConfigurationOutput: + return self._invoke( + self._select_input(_models.GET_CHAT_RESPONSE_CONFIGURATION, args, kwargs), + _models.GET_CHAT_RESPONSE_CONFIGURATION, + [], + plugins, + ) + + @_overload def get_data_accessor( - self, input: GetDataAccessorInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDataAccessorInput | _models.GetDataAccessorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataAccessorOutput: ... + + @_overload + def get_data_accessor( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataAccessorInputDict], ) -> GetDataAccessorOutput: """ Retrieves information about a specified data accessor. This operation @@ -1049,8 +1695,6 @@ def get_data_accessor( data accessor was created and last updated. Args: - input: - An instance of `GetDataAccessorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1060,18 +1704,39 @@ def get_data_accessor( Returns: An instance of `GetDataAccessorOutput`. """ - return self._invoke(input, _models.GET_DATA_ACCESSOR, [], plugins) + def get_data_accessor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataAccessorOutput: + return self._invoke( + self._select_input(_models.GET_DATA_ACCESSOR, args, kwargs), + _models.GET_DATA_ACCESSOR, + [], + plugins, + ) + + @_overload + def get_data_source( + self, + request: _models.GetDataSourceInput | _models.GetDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataSourceOutput: ... + + @_overload def get_data_source( - self, input: GetDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataSourceInputDict], ) -> GetDataSourceOutput: """ Gets information about an existing Amazon Q Business data source connector. Args: - input: - An instance of `GetDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1081,10 +1746,33 @@ def get_data_source( Returns: An instance of `GetDataSourceOutput`. """ - return self._invoke(input, _models.GET_DATA_SOURCE, [], plugins) + def get_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataSourceOutput: + return self._invoke( + self._select_input(_models.GET_DATA_SOURCE, args, kwargs), + _models.GET_DATA_SOURCE, + [], + plugins, + ) + + @_overload def get_document_content( - self, input: GetDocumentContentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDocumentContentInput | _models.GetDocumentContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDocumentContentOutput: ... + + @_overload + def get_document_content( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDocumentContentInputDict], ) -> GetDocumentContentOutput: """ Retrieves the content of a document that was ingested into Amazon Q @@ -1094,8 +1782,6 @@ def get_document_content( the URL. Args: - input: - An instance of `GetDocumentContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1105,17 +1791,38 @@ def get_document_content( Returns: An instance of `GetDocumentContentOutput`. """ - return self._invoke(input, _models.GET_DOCUMENT_CONTENT, [], plugins) + def get_document_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDocumentContentOutput: + return self._invoke( + self._select_input(_models.GET_DOCUMENT_CONTENT, args, kwargs), + _models.GET_DOCUMENT_CONTENT, + [], + plugins, + ) + + @_overload def get_group( - self, input: GetGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.GetGroupInput | _models.GetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetGroupOutput: ... + + @_overload + def get_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetGroupInputDict], ) -> GetGroupOutput: """ Describes a group by group name. Args: - input: - An instance of `GetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1125,17 +1832,38 @@ def get_group( Returns: An instance of `GetGroupOutput`. """ - return self._invoke(input, _models.GET_GROUP, [], plugins) + def get_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetGroupOutput: + return self._invoke( + self._select_input(_models.GET_GROUP, args, kwargs), + _models.GET_GROUP, + [], + plugins, + ) + + @_overload def get_index( - self, input: GetIndexInput, plugins: list[Plugin] | None = None + self, + request: _models.GetIndexInput | _models.GetIndexInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetIndexOutput: ... + + @_overload + def get_index( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetIndexInputDict], ) -> GetIndexOutput: """ Gets information about an existing Amazon Q Business index. Args: - input: - An instance of `GetIndexInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1145,10 +1873,33 @@ def get_index( Returns: An instance of `GetIndexOutput`. """ - return self._invoke(input, _models.GET_INDEX, [], plugins) + def get_index( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetIndexOutput: + return self._invoke( + self._select_input(_models.GET_INDEX, args, kwargs), + _models.GET_INDEX, + [], + plugins, + ) + + @_overload def get_media( - self, input: GetMediaInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMediaInput | _models.GetMediaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMediaOutput: ... + + @_overload + def get_media( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMediaInputDict], ) -> GetMediaOutput: """ Returns the image bytes corresponding to a media object. If you have @@ -1161,8 +1912,6 @@ def get_media( visuals](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/extracting-meaning-from-images.html). Args: - input: - An instance of `GetMediaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1172,17 +1921,38 @@ def get_media( Returns: An instance of `GetMediaOutput`. """ - return self._invoke(input, _models.GET_MEDIA, [], plugins) + def get_media( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMediaOutput: + return self._invoke( + self._select_input(_models.GET_MEDIA, args, kwargs), + _models.GET_MEDIA, + [], + plugins, + ) + + @_overload + def get_plugin( + self, + request: _models.GetPluginInput | _models.GetPluginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPluginOutput: ... + + @_overload def get_plugin( - self, input: GetPluginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPluginInputDict], ) -> GetPluginOutput: """ Gets information about an existing Amazon Q Business plugin. Args: - input: - An instance of `GetPluginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1192,10 +1962,33 @@ def get_plugin( Returns: An instance of `GetPluginOutput`. """ - return self._invoke(input, _models.GET_PLUGIN, [], plugins) + def get_plugin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPluginOutput: + return self._invoke( + self._select_input(_models.GET_PLUGIN, args, kwargs), + _models.GET_PLUGIN, + [], + plugins, + ) + + @_overload + def get_policy( + self, + request: _models.GetPolicyInput | _models.GetPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPolicyOutput: ... + + @_overload def get_policy( - self, input: GetPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPolicyInputDict], ) -> GetPolicyOutput: """ Retrieves the current permission policy for a Amazon Q Business @@ -1204,8 +1997,6 @@ def get_policy( application's resources. Args: - input: - An instance of `GetPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1215,18 +2006,39 @@ def get_policy( Returns: An instance of `GetPolicyOutput`. """ - return self._invoke(input, _models.GET_POLICY, [], plugins) + def get_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPolicyOutput: + return self._invoke( + self._select_input(_models.GET_POLICY, args, kwargs), + _models.GET_POLICY, + [], + plugins, + ) + + @_overload + def get_retriever( + self, + request: _models.GetRetrieverInput | _models.GetRetrieverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRetrieverOutput: ... + + @_overload def get_retriever( - self, input: GetRetrieverInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRetrieverInputDict], ) -> GetRetrieverOutput: """ Gets information about an existing retriever used by an Amazon Q Business application. Args: - input: - An instance of `GetRetrieverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1236,18 +2048,39 @@ def get_retriever( Returns: An instance of `GetRetrieverOutput`. """ - return self._invoke(input, _models.GET_RETRIEVER, [], plugins) + def get_retriever( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRetrieverOutput: + return self._invoke( + self._select_input(_models.GET_RETRIEVER, args, kwargs), + _models.GET_RETRIEVER, + [], + plugins, + ) + + @_overload + def get_user( + self, + request: _models.GetUserInput | _models.GetUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetUserOutput: ... + + @_overload def get_user( - self, input: GetUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetUserInputDict], ) -> GetUserOutput: """ Describes the universally unique identifier (UUID) associated with a local user in a data source. Args: - input: - An instance of `GetUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1257,17 +2090,38 @@ def get_user( Returns: An instance of `GetUserOutput`. """ - return self._invoke(input, _models.GET_USER, [], plugins) + def get_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetUserOutput: + return self._invoke( + self._select_input(_models.GET_USER, args, kwargs), + _models.GET_USER, + [], + plugins, + ) + + @_overload + def get_web_experience( + self, + request: _models.GetWebExperienceInput | _models.GetWebExperienceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWebExperienceOutput: ... + + @_overload def get_web_experience( - self, input: GetWebExperienceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWebExperienceInputDict], ) -> GetWebExperienceOutput: """ Gets information about an existing Amazon Q Business web experience. Args: - input: - An instance of `GetWebExperienceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1277,12 +2131,33 @@ def get_web_experience( Returns: An instance of `GetWebExperienceOutput`. """ - return self._invoke(input, _models.GET_WEB_EXPERIENCE, [], plugins) + def get_web_experience( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWebExperienceOutput: + return self._invoke( + self._select_input(_models.GET_WEB_EXPERIENCE, args, kwargs), + _models.GET_WEB_EXPERIENCE, + [], + plugins, + ) + + @_overload def list_applications( self, - input: ListApplicationsInput | None = None, + request: _models.ListApplicationsInput | _models.ListApplicationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListApplicationsOutput: ... + + @_overload + def list_applications( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListApplicationsInputDict], ) -> ListApplicationsOutput: """ Lists Amazon Q Business applications. @@ -1294,8 +2169,6 @@ def list_applications( Business](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/cross-region-inference.html). Args: - input: - An instance of `ListApplicationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1305,10 +2178,33 @@ def list_applications( Returns: An instance of `ListApplicationsOutput`. """ - return self._invoke(input, _models.LIST_APPLICATIONS, [], plugins) + def list_applications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListApplicationsOutput: + return self._invoke( + self._select_input(_models.LIST_APPLICATIONS, args, kwargs), + _models.LIST_APPLICATIONS, + [], + plugins, + ) + + @_overload + def list_attachments( + self, + request: _models.ListAttachmentsInput | _models.ListAttachmentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListAttachmentsOutput: ... + + @_overload def list_attachments( - self, input: ListAttachmentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListAttachmentsInputDict], ) -> ListAttachmentsOutput: """ Gets a list of attachments associated with an Amazon Q Business web @@ -1316,8 +2212,6 @@ def list_attachments( Business conversation. Args: - input: - An instance of `ListAttachmentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1327,12 +2221,34 @@ def list_attachments( Returns: An instance of `ListAttachmentsOutput`. """ - return self._invoke(input, _models.LIST_ATTACHMENTS, [], plugins) + def list_attachments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListAttachmentsOutput: + return self._invoke( + self._select_input(_models.LIST_ATTACHMENTS, args, kwargs), + _models.LIST_ATTACHMENTS, + [], + plugins, + ) + + @_overload def list_chat_response_configurations( self, - input: ListChatResponseConfigurationsInput, + request: _models.ListChatResponseConfigurationsInput + | _models.ListChatResponseConfigurationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListChatResponseConfigurationsOutput: ... + + @_overload + def list_chat_response_configurations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListChatResponseConfigurationsInputDict], ) -> ListChatResponseConfigurationsOutput: """ Retrieves a list of all chat response configurations available in a @@ -1341,8 +2257,6 @@ def list_chat_response_configurations( select appropriate response settings. Args: - input: - An instance of `ListChatResponseConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1352,19 +2266,38 @@ def list_chat_response_configurations( Returns: An instance of `ListChatResponseConfigurationsOutput`. """ + + def list_chat_response_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListChatResponseConfigurationsOutput: return self._invoke( - input, _models.LIST_CHAT_RESPONSE_CONFIGURATIONS, [], plugins + self._select_input(_models.LIST_CHAT_RESPONSE_CONFIGURATIONS, args, kwargs), + _models.LIST_CHAT_RESPONSE_CONFIGURATIONS, + [], + plugins, ) + @_overload def list_conversations( - self, input: ListConversationsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListConversationsInput | _models.ListConversationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListConversationsOutput: ... + + @_overload + def list_conversations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListConversationsInputDict], ) -> ListConversationsOutput: """ Lists one or more Amazon Q Business conversations. Args: - input: - An instance of `ListConversationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1374,10 +2307,33 @@ def list_conversations( Returns: An instance of `ListConversationsOutput`. """ - return self._invoke(input, _models.LIST_CONVERSATIONS, [], plugins) + def list_conversations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListConversationsOutput: + return self._invoke( + self._select_input(_models.LIST_CONVERSATIONS, args, kwargs), + _models.LIST_CONVERSATIONS, + [], + plugins, + ) + + @_overload + def list_data_accessors( + self, + request: _models.ListDataAccessorsInput | _models.ListDataAccessorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataAccessorsOutput: ... + + @_overload def list_data_accessors( - self, input: ListDataAccessorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataAccessorsInputDict], ) -> ListDataAccessorsOutput: """ Lists the data accessors for a Amazon Q Business application. This @@ -1386,8 +2342,6 @@ def list_data_accessors( creation/update timestamps for each data accessor. Args: - input: - An instance of `ListDataAccessorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1397,18 +2351,39 @@ def list_data_accessors( Returns: An instance of `ListDataAccessorsOutput`. """ - return self._invoke(input, _models.LIST_DATA_ACCESSORS, [], plugins) + def list_data_accessors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataAccessorsOutput: + return self._invoke( + self._select_input(_models.LIST_DATA_ACCESSORS, args, kwargs), + _models.LIST_DATA_ACCESSORS, + [], + plugins, + ) + + @_overload + def list_data_sources( + self, + request: _models.ListDataSourcesInput | _models.ListDataSourcesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataSourcesOutput: ... + + @_overload def list_data_sources( - self, input: ListDataSourcesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataSourcesInputDict], ) -> ListDataSourcesOutput: """ Lists the Amazon Q Business data source connectors that you have created. Args: - input: - An instance of `ListDataSourcesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1418,18 +2393,40 @@ def list_data_sources( Returns: An instance of `ListDataSourcesOutput`. """ - return self._invoke(input, _models.LIST_DATA_SOURCES, [], plugins) + def list_data_sources( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataSourcesOutput: + return self._invoke( + self._select_input(_models.LIST_DATA_SOURCES, args, kwargs), + _models.LIST_DATA_SOURCES, + [], + plugins, + ) + + @_overload def list_data_source_sync_jobs( - self, input: ListDataSourceSyncJobsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListDataSourceSyncJobsInput + | _models.ListDataSourceSyncJobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDataSourceSyncJobsOutput: ... + + @_overload + def list_data_source_sync_jobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDataSourceSyncJobsInputDict], ) -> ListDataSourceSyncJobsOutput: """ Get information about an Amazon Q Business data source connector synchronization. Args: - input: - An instance of `ListDataSourceSyncJobsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1439,17 +2436,38 @@ def list_data_source_sync_jobs( Returns: An instance of `ListDataSourceSyncJobsOutput`. """ - return self._invoke(input, _models.LIST_DATA_SOURCE_SYNC_JOBS, [], plugins) + def list_data_source_sync_jobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDataSourceSyncJobsOutput: + return self._invoke( + self._select_input(_models.LIST_DATA_SOURCE_SYNC_JOBS, args, kwargs), + _models.LIST_DATA_SOURCE_SYNC_JOBS, + [], + plugins, + ) + + @_overload + def list_documents( + self, + request: _models.ListDocumentsInput | _models.ListDocumentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDocumentsOutput: ... + + @_overload def list_documents( - self, input: ListDocumentsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDocumentsInputDict], ) -> ListDocumentsOutput: """ A list of documents attached to an index. Args: - input: - An instance of `ListDocumentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1459,17 +2477,38 @@ def list_documents( Returns: An instance of `ListDocumentsOutput`. """ - return self._invoke(input, _models.LIST_DOCUMENTS, [], plugins) + def list_documents( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDocumentsOutput: + return self._invoke( + self._select_input(_models.LIST_DOCUMENTS, args, kwargs), + _models.LIST_DOCUMENTS, + [], + plugins, + ) + + @_overload def list_groups( - self, input: ListGroupsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListGroupsInput | _models.ListGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListGroupsOutput: ... + + @_overload + def list_groups( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListGroupsInputDict], ) -> ListGroupsOutput: """ Provides a list of groups that are mapped to users. Args: - input: - An instance of `ListGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1479,17 +2518,38 @@ def list_groups( Returns: An instance of `ListGroupsOutput`. """ - return self._invoke(input, _models.LIST_GROUPS, [], plugins) + def list_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListGroupsOutput: + return self._invoke( + self._select_input(_models.LIST_GROUPS, args, kwargs), + _models.LIST_GROUPS, + [], + plugins, + ) + + @_overload def list_indices( - self, input: ListIndicesInput, plugins: list[Plugin] | None = None + self, + request: _models.ListIndicesInput | _models.ListIndicesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListIndicesOutput: ... + + @_overload + def list_indices( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListIndicesInputDict], ) -> ListIndicesOutput: """ Lists the Amazon Q Business indices you have created. Args: - input: - An instance of `ListIndicesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1499,18 +2559,39 @@ def list_indices( Returns: An instance of `ListIndicesOutput`. """ - return self._invoke(input, _models.LIST_INDICES, [], plugins) + def list_indices( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListIndicesOutput: + return self._invoke( + self._select_input(_models.LIST_INDICES, args, kwargs), + _models.LIST_INDICES, + [], + plugins, + ) + + @_overload + def list_messages( + self, + request: _models.ListMessagesInput | _models.ListMessagesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMessagesOutput: ... + + @_overload def list_messages( - self, input: ListMessagesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMessagesInputDict], ) -> ListMessagesOutput: """ Gets a list of messages associated with an Amazon Q Business web experience. Args: - input: - An instance of `ListMessagesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1520,18 +2601,39 @@ def list_messages( Returns: An instance of `ListMessagesOutput`. """ - return self._invoke(input, _models.LIST_MESSAGES, [], plugins) + def list_messages( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMessagesOutput: + return self._invoke( + self._select_input(_models.LIST_MESSAGES, args, kwargs), + _models.LIST_MESSAGES, + [], + plugins, + ) + + @_overload + def list_plugin_actions( + self, + request: _models.ListPluginActionsInput | _models.ListPluginActionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPluginActionsOutput: ... + + @_overload def list_plugin_actions( - self, input: ListPluginActionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPluginActionsInputDict], ) -> ListPluginActionsOutput: """ Lists configured Amazon Q Business actions for a specific plugin in an Amazon Q Business application. Args: - input: - An instance of `ListPluginActionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1541,38 +2643,81 @@ def list_plugin_actions( Returns: An instance of `ListPluginActionsOutput`. """ - return self._invoke(input, _models.LIST_PLUGIN_ACTIONS, [], plugins) + def list_plugin_actions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPluginActionsOutput: + return self._invoke( + self._select_input(_models.LIST_PLUGIN_ACTIONS, args, kwargs), + _models.LIST_PLUGIN_ACTIONS, + [], + plugins, + ) + + @_overload + def list_plugins( + self, + request: _models.ListPluginsInput | _models.ListPluginsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPluginsOutput: ... + + @_overload def list_plugins( - self, input: ListPluginsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPluginsInputDict], ) -> ListPluginsOutput: """ Lists configured Amazon Q Business plugins. Args: - input: - An instance of `ListPluginsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ListPluginsOutput`. - """ - return self._invoke(input, _models.LIST_PLUGINS, [], plugins) + Returns: + An instance of `ListPluginsOutput`. + """ + + def list_plugins( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPluginsOutput: + return self._invoke( + self._select_input(_models.LIST_PLUGINS, args, kwargs), + _models.LIST_PLUGINS, + [], + plugins, + ) + + @_overload + def list_plugin_type_actions( + self, + request: _models.ListPluginTypeActionsInput + | _models.ListPluginTypeActionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPluginTypeActionsOutput: ... + @_overload def list_plugin_type_actions( - self, input: ListPluginTypeActionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPluginTypeActionsInputDict], ) -> ListPluginTypeActionsOutput: """ Lists configured Amazon Q Business actions for any plugin type---both built-in and custom. Args: - input: - An instance of `ListPluginTypeActionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1582,19 +2727,39 @@ def list_plugin_type_actions( Returns: An instance of `ListPluginTypeActionsOutput`. """ - return self._invoke(input, _models.LIST_PLUGIN_TYPE_ACTIONS, [], plugins) + def list_plugin_type_actions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPluginTypeActionsOutput: + return self._invoke( + self._select_input(_models.LIST_PLUGIN_TYPE_ACTIONS, args, kwargs), + _models.LIST_PLUGIN_TYPE_ACTIONS, + [], + plugins, + ) + + @_overload + def list_plugin_type_metadata( + self, + request: _models.ListPluginTypeMetadataInput + | _models.ListPluginTypeMetadataInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPluginTypeMetadataOutput: ... + + @_overload def list_plugin_type_metadata( self, - input: ListPluginTypeMetadataInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPluginTypeMetadataInputDict], ) -> ListPluginTypeMetadataOutput: """ Lists metadata for all Amazon Q Business plugin types. Args: - input: - An instance of `ListPluginTypeMetadataInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1604,17 +2769,38 @@ def list_plugin_type_metadata( Returns: An instance of `ListPluginTypeMetadataOutput`. """ - return self._invoke(input, _models.LIST_PLUGIN_TYPE_METADATA, [], plugins) + def list_plugin_type_metadata( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPluginTypeMetadataOutput: + return self._invoke( + self._select_input(_models.LIST_PLUGIN_TYPE_METADATA, args, kwargs), + _models.LIST_PLUGIN_TYPE_METADATA, + [], + plugins, + ) + + @_overload + def list_retrievers( + self, + request: _models.ListRetrieversInput | _models.ListRetrieversInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListRetrieversOutput: ... + + @_overload def list_retrievers( - self, input: ListRetrieversInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListRetrieversInputDict], ) -> ListRetrieversOutput: """ Lists the retriever used by an Amazon Q Business application. Args: - input: - An instance of `ListRetrieversInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1624,17 +2810,38 @@ def list_retrievers( Returns: An instance of `ListRetrieversOutput`. """ - return self._invoke(input, _models.LIST_RETRIEVERS, [], plugins) + def list_retrievers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListRetrieversOutput: + return self._invoke( + self._select_input(_models.LIST_RETRIEVERS, args, kwargs), + _models.LIST_RETRIEVERS, + [], + plugins, + ) + + @_overload + def list_subscriptions( + self, + request: _models.ListSubscriptionsInput | _models.ListSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSubscriptionsOutput: ... + + @_overload def list_subscriptions( - self, input: ListSubscriptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSubscriptionsInputDict], ) -> ListSubscriptionsOutput: """ Lists all subscriptions created in an Amazon Q Business application. Args: - input: - An instance of `ListSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1644,10 +2851,34 @@ def list_subscriptions( Returns: An instance of `ListSubscriptionsOutput`. """ - return self._invoke(input, _models.LIST_SUBSCRIPTIONS, [], plugins) + def list_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSubscriptionsOutput: + return self._invoke( + self._select_input(_models.LIST_SUBSCRIPTIONS, args, kwargs), + _models.LIST_SUBSCRIPTIONS, + [], + plugins, + ) + + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Gets a list of tags associated with a specified resource. Amazon Q @@ -1655,8 +2886,6 @@ def list_tags_for_resource( them. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1666,17 +2895,38 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + def list_web_experiences( + self, + request: _models.ListWebExperiencesInput | _models.ListWebExperiencesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListWebExperiencesOutput: ... + + @_overload def list_web_experiences( - self, input: ListWebExperiencesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListWebExperiencesInputDict], ) -> ListWebExperiencesOutput: """ Lists one or more Amazon Q Business Web Experiences. Args: - input: - An instance of `ListWebExperiencesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1686,18 +2936,39 @@ def list_web_experiences( Returns: An instance of `ListWebExperiencesOutput`. """ - return self._invoke(input, _models.LIST_WEB_EXPERIENCES, [], plugins) + def list_web_experiences( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListWebExperiencesOutput: + return self._invoke( + self._select_input(_models.LIST_WEB_EXPERIENCES, args, kwargs), + _models.LIST_WEB_EXPERIENCES, + [], + plugins, + ) + + @_overload + def put_feedback( + self, + request: _models.PutFeedbackInput | _models.PutFeedbackInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutFeedbackOutput: ... + + @_overload def put_feedback( - self, input: PutFeedbackInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutFeedbackInputDict], ) -> PutFeedbackOutput: """ Enables your end user to provide feedback on their Amazon Q Business generated chat responses. Args: - input: - An instance of `PutFeedbackInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1707,10 +2978,33 @@ def put_feedback( Returns: An instance of `PutFeedbackOutput`. """ - return self._invoke(input, _models.PUT_FEEDBACK, [], plugins) + def put_feedback( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutFeedbackOutput: + return self._invoke( + self._select_input(_models.PUT_FEEDBACK, args, kwargs), + _models.PUT_FEEDBACK, + [], + plugins, + ) + + @_overload + def put_group( + self, + request: _models.PutGroupInput | _models.PutGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutGroupOutput: ... + + @_overload def put_group( - self, input: PutGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutGroupInputDict], ) -> PutGroupOutput: """ Create, or updates, a mapping of users---who have access to a @@ -1732,8 +3026,6 @@ def put_group( `RoleArn` for Amazon Q Buisness to access the file. Args: - input: - An instance of `PutGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1743,10 +3035,34 @@ def put_group( Returns: An instance of `PutGroupOutput`. """ - return self._invoke(input, _models.PUT_GROUP, [], plugins) + def put_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutGroupOutput: + return self._invoke( + self._select_input(_models.PUT_GROUP, args, kwargs), + _models.PUT_GROUP, + [], + plugins, + ) + + @_overload def search_relevant_content( - self, input: SearchRelevantContentInput, plugins: list[Plugin] | None = None + self, + request: _models.SearchRelevantContentInput + | _models.SearchRelevantContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SearchRelevantContentOutput: ... + + @_overload + def search_relevant_content( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SearchRelevantContentInputDict], ) -> SearchRelevantContentOutput: """ Searches for relevant content in a Amazon Q Business application based @@ -1759,8 +3075,6 @@ def search_relevant_content( level of the relevance. Args: - input: - An instance of `SearchRelevantContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1770,10 +3084,34 @@ def search_relevant_content( Returns: An instance of `SearchRelevantContentOutput`. """ - return self._invoke(input, _models.SEARCH_RELEVANT_CONTENT, [], plugins) + def search_relevant_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SearchRelevantContentOutput: + return self._invoke( + self._select_input(_models.SEARCH_RELEVANT_CONTENT, args, kwargs), + _models.SEARCH_RELEVANT_CONTENT, + [], + plugins, + ) + + @_overload + def start_data_source_sync_job( + self, + request: _models.StartDataSourceSyncJobInput + | _models.StartDataSourceSyncJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDataSourceSyncJobOutput: ... + + @_overload def start_data_source_sync_job( - self, input: StartDataSourceSyncJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDataSourceSyncJobInputDict], ) -> StartDataSourceSyncJobOutput: """ Starts a data source connector synchronization job. If a synchronization @@ -1781,8 +3119,6 @@ def start_data_source_sync_job( `ConflictException`. Args: - input: - An instance of `StartDataSourceSyncJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1792,18 +3128,40 @@ def start_data_source_sync_job( Returns: An instance of `StartDataSourceSyncJobOutput`. """ - return self._invoke(input, _models.START_DATA_SOURCE_SYNC_JOB, [], plugins) + def start_data_source_sync_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDataSourceSyncJobOutput: + return self._invoke( + self._select_input(_models.START_DATA_SOURCE_SYNC_JOB, args, kwargs), + _models.START_DATA_SOURCE_SYNC_JOB, + [], + plugins, + ) + + @_overload + def stop_data_source_sync_job( + self, + request: _models.StopDataSourceSyncJobInput + | _models.StopDataSourceSyncJobInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDataSourceSyncJobOutput: ... + + @_overload def stop_data_source_sync_job( - self, input: StopDataSourceSyncJobInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDataSourceSyncJobInputDict], ) -> StopDataSourceSyncJobOutput: """ Stops an Amazon Q Business data source connector synchronization job already in progress. Args: - input: - An instance of `StopDataSourceSyncJobInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1813,10 +3171,33 @@ def stop_data_source_sync_job( Returns: An instance of `StopDataSourceSyncJobOutput`. """ - return self._invoke(input, _models.STOP_DATA_SOURCE_SYNC_JOB, [], plugins) + def stop_data_source_sync_job( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDataSourceSyncJobOutput: + return self._invoke( + self._select_input(_models.STOP_DATA_SOURCE_SYNC_JOB, args, kwargs), + _models.STOP_DATA_SOURCE_SYNC_JOB, + [], + plugins, + ) + + @_overload + def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Adds the specified tag to the specified Amazon Q Business application or @@ -1824,8 +3205,6 @@ def tag_resource( replaced with the new value. Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1835,17 +3214,38 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes a tag from an Amazon Q Business application or a data source. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1855,10 +3255,33 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_application( + self, + request: _models.UpdateApplicationInput | _models.UpdateApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateApplicationOutput: ... + + @_overload def update_application( - self, input: UpdateApplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateApplicationInputDict], ) -> UpdateApplicationOutput: """ Updates an existing Amazon Q Business application. @@ -1875,8 +3298,6 @@ def update_application( Apps](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/using-service-linked-roles-qapps.html). Args: - input: - An instance of `UpdateApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1886,20 +3307,40 @@ def update_application( Returns: An instance of `UpdateApplicationOutput`. """ - return self._invoke(input, _models.UPDATE_APPLICATION, [], plugins) + def update_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateApplicationOutput: + return self._invoke( + self._select_input(_models.UPDATE_APPLICATION, args, kwargs), + _models.UPDATE_APPLICATION, + [], + plugins, + ) + + @_overload + def update_chat_controls_configuration( + self, + request: _models.UpdateChatControlsConfigurationInput + | _models.UpdateChatControlsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateChatControlsConfigurationOutput: ... + + @_overload def update_chat_controls_configuration( self, - input: UpdateChatControlsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateChatControlsConfigurationInputDict], ) -> UpdateChatControlsConfigurationOutput: """ Updates a set of chat controls configured for an existing Amazon Q Business application. Args: - input: - An instance of `UpdateChatControlsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1909,14 +3350,36 @@ def update_chat_controls_configuration( Returns: An instance of `UpdateChatControlsConfigurationOutput`. """ + + def update_chat_controls_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateChatControlsConfigurationOutput: return self._invoke( - input, _models.UPDATE_CHAT_CONTROLS_CONFIGURATION, [], plugins + self._select_input( + _models.UPDATE_CHAT_CONTROLS_CONFIGURATION, args, kwargs + ), + _models.UPDATE_CHAT_CONTROLS_CONFIGURATION, + [], + plugins, ) + @_overload + def update_chat_response_configuration( + self, + request: _models.UpdateChatResponseConfigurationInput + | _models.UpdateChatResponseConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateChatResponseConfigurationOutput: ... + + @_overload def update_chat_response_configuration( self, - input: UpdateChatResponseConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateChatResponseConfigurationInputDict], ) -> UpdateChatResponseConfigurationOutput: """ Updates an existing chat response configuration in an Amazon Q Business @@ -1925,8 +3388,6 @@ def update_chat_response_configuration( how the system generates responses. Args: - input: - An instance of `UpdateChatResponseConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1936,12 +3397,35 @@ def update_chat_response_configuration( Returns: An instance of `UpdateChatResponseConfigurationOutput`. """ + + def update_chat_response_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateChatResponseConfigurationOutput: return self._invoke( - input, _models.UPDATE_CHAT_RESPONSE_CONFIGURATION, [], plugins + self._select_input( + _models.UPDATE_CHAT_RESPONSE_CONFIGURATION, args, kwargs + ), + _models.UPDATE_CHAT_RESPONSE_CONFIGURATION, + [], + plugins, ) + @_overload def update_data_accessor( - self, input: UpdateDataAccessorInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateDataAccessorInput | _models.UpdateDataAccessorInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDataAccessorOutput: ... + + @_overload + def update_data_accessor( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataAccessorInputDict], ) -> UpdateDataAccessorOutput: """ Updates an existing data accessor. This operation allows modifying the @@ -1951,8 +3435,6 @@ def update_data_accessor( the data accessor. Args: - input: - An instance of `UpdateDataAccessorInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1962,17 +3444,38 @@ def update_data_accessor( Returns: An instance of `UpdateDataAccessorOutput`. """ - return self._invoke(input, _models.UPDATE_DATA_ACCESSOR, [], plugins) + def update_data_accessor( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataAccessorOutput: + return self._invoke( + self._select_input(_models.UPDATE_DATA_ACCESSOR, args, kwargs), + _models.UPDATE_DATA_ACCESSOR, + [], + plugins, + ) + + @_overload + def update_data_source( + self, + request: _models.UpdateDataSourceInput | _models.UpdateDataSourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateDataSourceOutput: ... + + @_overload def update_data_source( - self, input: UpdateDataSourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateDataSourceInputDict], ) -> UpdateDataSourceOutput: """ Updates an existing Amazon Q Business data source connector. Args: - input: - An instance of `UpdateDataSourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1982,17 +3485,38 @@ def update_data_source( Returns: An instance of `UpdateDataSourceOutput`. """ - return self._invoke(input, _models.UPDATE_DATA_SOURCE, [], plugins) + def update_data_source( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateDataSourceOutput: + return self._invoke( + self._select_input(_models.UPDATE_DATA_SOURCE, args, kwargs), + _models.UPDATE_DATA_SOURCE, + [], + plugins, + ) + + @_overload + def update_index( + self, + request: _models.UpdateIndexInput | _models.UpdateIndexInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateIndexOutput: ... + + @_overload def update_index( - self, input: UpdateIndexInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateIndexInputDict], ) -> UpdateIndexOutput: """ Updates an Amazon Q Business index. Args: - input: - An instance of `UpdateIndexInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2002,17 +3526,38 @@ def update_index( Returns: An instance of `UpdateIndexOutput`. """ - return self._invoke(input, _models.UPDATE_INDEX, [], plugins) + def update_index( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateIndexOutput: + return self._invoke( + self._select_input(_models.UPDATE_INDEX, args, kwargs), + _models.UPDATE_INDEX, + [], + plugins, + ) + + @_overload + def update_plugin( + self, + request: _models.UpdatePluginInput | _models.UpdatePluginInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdatePluginOutput: ... + + @_overload def update_plugin( - self, input: UpdatePluginInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdatePluginInputDict], ) -> UpdatePluginOutput: """ Updates an Amazon Q Business plugin. Args: - input: - An instance of `UpdatePluginInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2022,17 +3567,38 @@ def update_plugin( Returns: An instance of `UpdatePluginOutput`. """ - return self._invoke(input, _models.UPDATE_PLUGIN, [], plugins) + def update_plugin( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdatePluginOutput: + return self._invoke( + self._select_input(_models.UPDATE_PLUGIN, args, kwargs), + _models.UPDATE_PLUGIN, + [], + plugins, + ) + + @_overload + def update_retriever( + self, + request: _models.UpdateRetrieverInput | _models.UpdateRetrieverInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateRetrieverOutput: ... + + @_overload def update_retriever( - self, input: UpdateRetrieverInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateRetrieverInputDict], ) -> UpdateRetrieverOutput: """ Updates the retriever used for your Amazon Q Business application. Args: - input: - An instance of `UpdateRetrieverInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2042,10 +3608,33 @@ def update_retriever( Returns: An instance of `UpdateRetrieverOutput`. """ - return self._invoke(input, _models.UPDATE_RETRIEVER, [], plugins) + def update_retriever( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateRetrieverOutput: + return self._invoke( + self._select_input(_models.UPDATE_RETRIEVER, args, kwargs), + _models.UPDATE_RETRIEVER, + [], + plugins, + ) + + @_overload + def update_subscription( + self, + request: _models.UpdateSubscriptionInput | _models.UpdateSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSubscriptionOutput: ... + + @_overload def update_subscription( - self, input: UpdateSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSubscriptionInputDict], ) -> UpdateSubscriptionOutput: """ Updates the pricing tier for an Amazon Q Business subscription. Upgrades @@ -2055,8 +3644,6 @@ def update_subscription( pricing](https://aws.amazon.com/q/business/pricing/). Args: - input: - An instance of `UpdateSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2066,17 +3653,38 @@ def update_subscription( Returns: An instance of `UpdateSubscriptionOutput`. """ - return self._invoke(input, _models.UPDATE_SUBSCRIPTION, [], plugins) + def update_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSubscriptionOutput: + return self._invoke( + self._select_input(_models.UPDATE_SUBSCRIPTION, args, kwargs), + _models.UPDATE_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def update_user( + self, + request: _models.UpdateUserInput | _models.UpdateUserInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateUserOutput: ... + + @_overload def update_user( - self, input: UpdateUserInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateUserInputDict], ) -> UpdateUserOutput: """ Updates a information associated with a user id. Args: - input: - An instance of `UpdateUserInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2086,17 +3694,39 @@ def update_user( Returns: An instance of `UpdateUserOutput`. """ - return self._invoke(input, _models.UPDATE_USER, [], plugins) + def update_user( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateUserOutput: + return self._invoke( + self._select_input(_models.UPDATE_USER, args, kwargs), + _models.UPDATE_USER, + [], + plugins, + ) + + @_overload + def update_web_experience( + self, + request: _models.UpdateWebExperienceInput + | _models.UpdateWebExperienceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateWebExperienceOutput: ... + + @_overload def update_web_experience( - self, input: UpdateWebExperienceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateWebExperienceInputDict], ) -> UpdateWebExperienceOutput: """ Updates an Amazon Q Business web experience. Args: - input: - An instance of `UpdateWebExperienceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2106,7 +3736,16 @@ def update_web_experience( Returns: An instance of `UpdateWebExperienceOutput`. """ - return self._invoke(input, _models.UPDATE_WEB_EXPERIENCE, [], plugins) + + def update_web_experience( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateWebExperienceOutput: + return self._invoke( + self._select_input(_models.UPDATE_WEB_EXPERIENCE, args, kwargs), + _models.UPDATE_WEB_EXPERIENCE, + [], + plugins, + ) def _new_config(self) -> QBusinessConfig: return QBusinessConfig.resolve() diff --git a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/models.pyi b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/models.pyi index 3b6efadbc..5ca33fac1 100644 --- a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/models.pyi +++ b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/models.pyi @@ -9,13 +9,19 @@ from smithy_core.serializers import ShapeSerializer from ._private.models_0 import ( AccessConfiguration as AccessConfiguration, + AccessConfigurationDict as AccessConfigurationDict, AccessControl as AccessControl, + AccessControlDict as AccessControlDict, AccessDeniedException as AccessDeniedException, ActionConfiguration as ActionConfiguration, + ActionConfigurationDict as ActionConfigurationDict, ActionExecution as ActionExecution, + ActionExecutionDict as ActionExecutionDict, ActionExecutionEvent as ActionExecutionEvent, ActionExecutionPayloadField as ActionExecutionPayloadField, + ActionExecutionPayloadFieldDict as ActionExecutionPayloadFieldDict, ActionFilterConfiguration as ActionFilterConfiguration, + ActionFilterConfigurationDict as ActionFilterConfigurationDict, ActionPayloadFieldType as ActionPayloadFieldType, ActionReview as ActionReview, ActionReviewEvent as ActionReviewEvent, @@ -27,6 +33,9 @@ from ._private.models_0 import ( APISchemaUnknown as APISchemaUnknown, APISchema as APISchema, _APISchemaDeserializer as _APISchemaDeserializer, + APISchemaPayloadDict as APISchemaPayloadDict, + APISchemaS3Dict as APISchemaS3Dict, + APISchemaDict as APISchemaDict, APISchemaType as APISchemaType, Application as Application, ApplicationStatus as ApplicationStatus, @@ -36,38 +45,52 @@ from ._private.models_0 import ( AssociatedGroup as AssociatedGroup, AssociatedUser as AssociatedUser, AssociatePermissionInput as AssociatePermissionInput, + AssociatePermissionInputDict as AssociatePermissionInputDict, AssociatePermissionOutput as AssociatePermissionOutput, Attachment as Attachment, AttachmentInput as AttachmentInput, + AttachmentInputDict as AttachmentInputDict, AttachmentInputEvent as AttachmentInputEvent, AttachmentOutput as AttachmentOutput, AttachmentsConfiguration as AttachmentsConfiguration, + AttachmentsConfigurationDict as AttachmentsConfigurationDict, AttachmentsControlMode as AttachmentsControlMode, AttachmentStatus as AttachmentStatus, AttributeFilter as AttributeFilter, + AttributeFilterDict as AttributeFilterDict, AttributeType as AttributeType, AttributeValueOperator as AttributeValueOperator, AudioExtractionConfiguration as AudioExtractionConfiguration, + AudioExtractionConfigurationDict as AudioExtractionConfigurationDict, AudioExtractionStatus as AudioExtractionStatus, AudioExtractionType as AudioExtractionType, AudioSourceDetails as AudioSourceDetails, AuthChallengeRequest as AuthChallengeRequest, AuthChallengeRequestEvent as AuthChallengeRequestEvent, AuthChallengeResponse as AuthChallengeResponse, + AuthChallengeResponseDict as AuthChallengeResponseDict, AuthChallengeResponseEvent as AuthChallengeResponseEvent, AutoSubscriptionConfiguration as AutoSubscriptionConfiguration, + AutoSubscriptionConfigurationDict as AutoSubscriptionConfigurationDict, AutoSubscriptionStatus as AutoSubscriptionStatus, BasicAuthConfiguration as BasicAuthConfiguration, + BasicAuthConfigurationDict as BasicAuthConfigurationDict, BatchDeleteDocumentInput as BatchDeleteDocumentInput, + BatchDeleteDocumentInputDict as BatchDeleteDocumentInputDict, BatchDeleteDocumentOutput as BatchDeleteDocumentOutput, BatchPutDocumentInput as BatchPutDocumentInput, + BatchPutDocumentInputDict as BatchPutDocumentInputDict, BatchPutDocumentOutput as BatchPutDocumentOutput, BlockedPhrasesConfiguration as BlockedPhrasesConfiguration, BlockedPhrasesConfigurationUpdate as BlockedPhrasesConfigurationUpdate, + BlockedPhrasesConfigurationUpdateDict as BlockedPhrasesConfigurationUpdateDict, BrowserExtensionConfiguration as BrowserExtensionConfiguration, + BrowserExtensionConfigurationDict as BrowserExtensionConfigurationDict, CancelSubscriptionInput as CancelSubscriptionInput, + CancelSubscriptionInputDict as CancelSubscriptionInputDict, CancelSubscriptionOutput as CancelSubscriptionOutput, ChatInput as ChatInput, + ChatInputDict as ChatInputDict, ChatInputStreamConfigurationEvent as ChatInputStreamConfigurationEvent, ChatInputStreamTextEvent as ChatInputStreamTextEvent, ChatInputStreamAttachmentEvent as ChatInputStreamAttachmentEvent, @@ -82,6 +105,8 @@ from ._private.models_0 import ( ChatModeConfigurationUnknown as ChatModeConfigurationUnknown, ChatModeConfiguration as ChatModeConfiguration, _ChatModeConfigurationDeserializer as _ChatModeConfigurationDeserializer, + ChatModeConfigurationPluginConfigurationDict as ChatModeConfigurationPluginConfigurationDict, + ChatModeConfigurationDict as ChatModeConfigurationDict, ChatOutput as ChatOutput, ChatOutputStreamTextEvent as ChatOutputStreamTextEvent, ChatOutputStreamMetadataEvent as ChatOutputStreamMetadataEvent, @@ -95,101 +120,147 @@ from ._private.models_0 import ( ChatResponseConfigurationDetail as ChatResponseConfigurationDetail, ChatResponseConfigurationStatus as ChatResponseConfigurationStatus, ChatSyncInput as ChatSyncInput, + ChatSyncInputDict as ChatSyncInputDict, ChatSyncOutput as ChatSyncOutput, CheckDocumentAccessInput as CheckDocumentAccessInput, + CheckDocumentAccessInputDict as CheckDocumentAccessInputDict, CheckDocumentAccessOutput as CheckDocumentAccessOutput, ConfigurationEvent as ConfigurationEvent, ConflictException as ConflictException, ContentBlockerRule as ContentBlockerRule, + ContentBlockerRuleDict as ContentBlockerRuleDict, ContentRetrievalRule as ContentRetrievalRule, + ContentRetrievalRuleDict as ContentRetrievalRuleDict, ContentSourceRetriever as ContentSourceRetriever, ContentSourceUnknown as ContentSourceUnknown, ContentSource as ContentSource, _ContentSourceDeserializer as _ContentSourceDeserializer, + ContentSourceRetrieverDict as ContentSourceRetrieverDict, + ContentSourceDict as ContentSourceDict, ContentType as ContentType, Conversation as Conversation, ConversationSource as ConversationSource, + ConversationSourceDict as ConversationSourceDict, CopyFromSourceConversation as CopyFromSourceConversation, CopyFromSourceUnknown as CopyFromSourceUnknown, CopyFromSource as CopyFromSource, _CopyFromSourceDeserializer as _CopyFromSourceDeserializer, + CopyFromSourceConversationDict as CopyFromSourceConversationDict, + CopyFromSourceDict as CopyFromSourceDict, CreateAnonymousWebExperienceUrlInput as CreateAnonymousWebExperienceUrlInput, + CreateAnonymousWebExperienceUrlInputDict as CreateAnonymousWebExperienceUrlInputDict, CreateAnonymousWebExperienceUrlOutput as CreateAnonymousWebExperienceUrlOutput, CreateApplicationInput as CreateApplicationInput, + CreateApplicationInputDict as CreateApplicationInputDict, CreateApplicationOutput as CreateApplicationOutput, CreateChatResponseConfigurationInput as CreateChatResponseConfigurationInput, + CreateChatResponseConfigurationInputDict as CreateChatResponseConfigurationInputDict, CreateChatResponseConfigurationOutput as CreateChatResponseConfigurationOutput, CreateDataAccessorInput as CreateDataAccessorInput, + CreateDataAccessorInputDict as CreateDataAccessorInputDict, CreateDataAccessorOutput as CreateDataAccessorOutput, CreateDataSourceInput as CreateDataSourceInput, + CreateDataSourceInputDict as CreateDataSourceInputDict, CreateDataSourceOutput as CreateDataSourceOutput, CreateIndexInput as CreateIndexInput, + CreateIndexInputDict as CreateIndexInputDict, CreateIndexOutput as CreateIndexOutput, CreatePluginInput as CreatePluginInput, + CreatePluginInputDict as CreatePluginInputDict, CreatePluginOutput as CreatePluginOutput, CreateRetrieverInput as CreateRetrieverInput, + CreateRetrieverInputDict as CreateRetrieverInputDict, CreateRetrieverOutput as CreateRetrieverOutput, CreateSubscriptionInput as CreateSubscriptionInput, + CreateSubscriptionInputDict as CreateSubscriptionInputDict, CreateSubscriptionOutput as CreateSubscriptionOutput, CreateUserInput as CreateUserInput, + CreateUserInputDict as CreateUserInputDict, CreateUserOutput as CreateUserOutput, CreateWebExperienceInput as CreateWebExperienceInput, + CreateWebExperienceInputDict as CreateWebExperienceInputDict, CreateWebExperienceOutput as CreateWebExperienceOutput, CreatorModeConfiguration as CreatorModeConfiguration, + CreatorModeConfigurationDict as CreatorModeConfigurationDict, CreatorModeControl as CreatorModeControl, CustomizationConfiguration as CustomizationConfiguration, + CustomizationConfigurationDict as CustomizationConfigurationDict, CustomPluginConfiguration as CustomPluginConfiguration, + CustomPluginConfigurationDict as CustomPluginConfigurationDict, DataAccessor as DataAccessor, DataAccessorAuthenticationConfigurationIdcTrustedTokenIssuerConfiguration as DataAccessorAuthenticationConfigurationIdcTrustedTokenIssuerConfiguration, DataAccessorAuthenticationConfigurationUnknown as DataAccessorAuthenticationConfigurationUnknown, DataAccessorAuthenticationConfiguration as DataAccessorAuthenticationConfiguration, _DataAccessorAuthenticationConfigurationDeserializer as _DataAccessorAuthenticationConfigurationDeserializer, + DataAccessorAuthenticationConfigurationIdcTrustedTokenIssuerConfigurationDict as DataAccessorAuthenticationConfigurationIdcTrustedTokenIssuerConfigurationDict, + DataAccessorAuthenticationConfigurationDict as DataAccessorAuthenticationConfigurationDict, DataAccessorAuthenticationDetail as DataAccessorAuthenticationDetail, + DataAccessorAuthenticationDetailDict as DataAccessorAuthenticationDetailDict, DataAccessorAuthenticationType as DataAccessorAuthenticationType, DataAccessorIdcTrustedTokenIssuerConfiguration as DataAccessorIdcTrustedTokenIssuerConfiguration, + DataAccessorIdcTrustedTokenIssuerConfigurationDict as DataAccessorIdcTrustedTokenIssuerConfigurationDict, DataSource as DataSource, DataSourceStatus as DataSourceStatus, DataSourceSyncJob as DataSourceSyncJob, DataSourceSyncJobMetrics as DataSourceSyncJobMetrics, DataSourceSyncJobStatus as DataSourceSyncJobStatus, DataSourceVpcConfiguration as DataSourceVpcConfiguration, + DataSourceVpcConfigurationDict as DataSourceVpcConfigurationDict, DateAttributeBoostingConfiguration as DateAttributeBoostingConfiguration, + DateAttributeBoostingConfigurationDict as DateAttributeBoostingConfigurationDict, DeleteApplicationInput as DeleteApplicationInput, + DeleteApplicationInputDict as DeleteApplicationInputDict, DeleteApplicationOutput as DeleteApplicationOutput, DeleteAttachmentInput as DeleteAttachmentInput, + DeleteAttachmentInputDict as DeleteAttachmentInputDict, DeleteAttachmentOutput as DeleteAttachmentOutput, DeleteChatControlsConfigurationInput as DeleteChatControlsConfigurationInput, + DeleteChatControlsConfigurationInputDict as DeleteChatControlsConfigurationInputDict, DeleteChatControlsConfigurationOutput as DeleteChatControlsConfigurationOutput, DeleteChatResponseConfigurationInput as DeleteChatResponseConfigurationInput, + DeleteChatResponseConfigurationInputDict as DeleteChatResponseConfigurationInputDict, DeleteChatResponseConfigurationOutput as DeleteChatResponseConfigurationOutput, DeleteConversationInput as DeleteConversationInput, + DeleteConversationInputDict as DeleteConversationInputDict, DeleteConversationOutput as DeleteConversationOutput, DeleteDataAccessorInput as DeleteDataAccessorInput, + DeleteDataAccessorInputDict as DeleteDataAccessorInputDict, DeleteDataAccessorOutput as DeleteDataAccessorOutput, DeleteDataSourceInput as DeleteDataSourceInput, + DeleteDataSourceInputDict as DeleteDataSourceInputDict, DeleteDataSourceOutput as DeleteDataSourceOutput, DeleteDocument as DeleteDocument, + DeleteDocumentDict as DeleteDocumentDict, DeleteGroupInput as DeleteGroupInput, + DeleteGroupInputDict as DeleteGroupInputDict, DeleteGroupOutput as DeleteGroupOutput, DeleteIndexInput as DeleteIndexInput, + DeleteIndexInputDict as DeleteIndexInputDict, DeleteIndexOutput as DeleteIndexOutput, DeletePluginInput as DeletePluginInput, + DeletePluginInputDict as DeletePluginInputDict, DeletePluginOutput as DeletePluginOutput, DeleteRetrieverInput as DeleteRetrieverInput, + DeleteRetrieverInputDict as DeleteRetrieverInputDict, DeleteRetrieverOutput as DeleteRetrieverOutput, DeleteUserInput as DeleteUserInput, + DeleteUserInputDict as DeleteUserInputDict, DeleteUserOutput as DeleteUserOutput, DeleteWebExperienceInput as DeleteWebExperienceInput, + DeleteWebExperienceInputDict as DeleteWebExperienceInputDict, DeleteWebExperienceOutput as DeleteWebExperienceOutput, DisassociatePermissionInput as DisassociatePermissionInput, + DisassociatePermissionInputDict as DisassociatePermissionInputDict, DisassociatePermissionOutput as DisassociatePermissionOutput, Document as Document, + DocumentDict as DocumentDict, DocumentAcl as DocumentAcl, DocumentAclCondition as DocumentAclCondition, DocumentAclGroup as DocumentAclGroup, DocumentAclMembership as DocumentAclMembership, DocumentAclUser as DocumentAclUser, DocumentAttribute as DocumentAttribute, + DocumentAttributeDict as DocumentAttributeDict, DocumentAttributeBoostingConfigurationNumberConfiguration as DocumentAttributeBoostingConfigurationNumberConfiguration, DocumentAttributeBoostingConfigurationStringConfiguration as DocumentAttributeBoostingConfigurationStringConfiguration, DocumentAttributeBoostingConfigurationDateConfiguration as DocumentAttributeBoostingConfigurationDateConfiguration, @@ -197,10 +268,18 @@ from ._private.models_0 import ( DocumentAttributeBoostingConfigurationUnknown as DocumentAttributeBoostingConfigurationUnknown, DocumentAttributeBoostingConfiguration as DocumentAttributeBoostingConfiguration, _DocumentAttributeBoostingConfigurationDeserializer as _DocumentAttributeBoostingConfigurationDeserializer, + DocumentAttributeBoostingConfigurationNumberConfigurationDict as DocumentAttributeBoostingConfigurationNumberConfigurationDict, + DocumentAttributeBoostingConfigurationStringConfigurationDict as DocumentAttributeBoostingConfigurationStringConfigurationDict, + DocumentAttributeBoostingConfigurationDateConfigurationDict as DocumentAttributeBoostingConfigurationDateConfigurationDict, + DocumentAttributeBoostingConfigurationStringListConfigurationDict as DocumentAttributeBoostingConfigurationStringListConfigurationDict, + DocumentAttributeBoostingConfigurationDict as DocumentAttributeBoostingConfigurationDict, DocumentAttributeBoostingLevel as DocumentAttributeBoostingLevel, DocumentAttributeCondition as DocumentAttributeCondition, + DocumentAttributeConditionDict as DocumentAttributeConditionDict, DocumentAttributeConfiguration as DocumentAttributeConfiguration, + DocumentAttributeConfigurationDict as DocumentAttributeConfigurationDict, DocumentAttributeTarget as DocumentAttributeTarget, + DocumentAttributeTargetDict as DocumentAttributeTargetDict, DocumentAttributeValueStringValue as DocumentAttributeValueStringValue, DocumentAttributeValueStringListValue as DocumentAttributeValueStringListValue, DocumentAttributeValueLongValue as DocumentAttributeValueLongValue, @@ -208,18 +287,29 @@ from ._private.models_0 import ( DocumentAttributeValueUnknown as DocumentAttributeValueUnknown, DocumentAttributeValue as DocumentAttributeValue, _DocumentAttributeValueDeserializer as _DocumentAttributeValueDeserializer, + DocumentAttributeValueStringValueDict as DocumentAttributeValueStringValueDict, + DocumentAttributeValueStringListValueDict as DocumentAttributeValueStringListValueDict, + DocumentAttributeValueLongValueDict as DocumentAttributeValueLongValueDict, + DocumentAttributeValueDateValueDict as DocumentAttributeValueDateValueDict, + DocumentAttributeValueDict as DocumentAttributeValueDict, DocumentContentBlob as DocumentContentBlob, DocumentContentS3 as DocumentContentS3, DocumentContentUnknown as DocumentContentUnknown, DocumentContent as DocumentContent, _DocumentContentDeserializer as _DocumentContentDeserializer, + DocumentContentBlobDict as DocumentContentBlobDict, + DocumentContentS3Dict as DocumentContentS3Dict, + DocumentContentDict as DocumentContentDict, DocumentContentOperator as DocumentContentOperator, DocumentDetails as DocumentDetails, DocumentEnrichmentConditionOperator as DocumentEnrichmentConditionOperator, DocumentEnrichmentConfiguration as DocumentEnrichmentConfiguration, + DocumentEnrichmentConfigurationDict as DocumentEnrichmentConfigurationDict, DocumentStatus as DocumentStatus, EligibleDataSource as EligibleDataSource, + EligibleDataSourceDict as EligibleDataSourceDict, EncryptionConfiguration as EncryptionConfiguration, + EncryptionConfigurationDict as EncryptionConfigurationDict, EndOfInputEvent as EndOfInputEvent, ErrorCode as ErrorCode, ErrorDetail as ErrorDetail, @@ -227,125 +317,182 @@ from ._private.models_0 import ( FailedAttachmentEvent as FailedAttachmentEvent, FailedDocument as FailedDocument, GetApplicationInput as GetApplicationInput, + GetApplicationInputDict as GetApplicationInputDict, GetApplicationOutput as GetApplicationOutput, GetChatControlsConfigurationInput as GetChatControlsConfigurationInput, + GetChatControlsConfigurationInputDict as GetChatControlsConfigurationInputDict, GetChatControlsConfigurationOutput as GetChatControlsConfigurationOutput, GetChatResponseConfigurationInput as GetChatResponseConfigurationInput, + GetChatResponseConfigurationInputDict as GetChatResponseConfigurationInputDict, GetChatResponseConfigurationOutput as GetChatResponseConfigurationOutput, GetDataAccessorInput as GetDataAccessorInput, + GetDataAccessorInputDict as GetDataAccessorInputDict, GetDataAccessorOutput as GetDataAccessorOutput, GetDataSourceInput as GetDataSourceInput, + GetDataSourceInputDict as GetDataSourceInputDict, GetDataSourceOutput as GetDataSourceOutput, GetDocumentContentInput as GetDocumentContentInput, + GetDocumentContentInputDict as GetDocumentContentInputDict, GetDocumentContentOutput as GetDocumentContentOutput, GetGroupInput as GetGroupInput, + GetGroupInputDict as GetGroupInputDict, GetGroupOutput as GetGroupOutput, GetIndexInput as GetIndexInput, + GetIndexInputDict as GetIndexInputDict, GetIndexOutput as GetIndexOutput, GetMediaInput as GetMediaInput, + GetMediaInputDict as GetMediaInputDict, GetMediaOutput as GetMediaOutput, GetPluginInput as GetPluginInput, + GetPluginInputDict as GetPluginInputDict, GetPluginOutput as GetPluginOutput, GetPolicyInput as GetPolicyInput, + GetPolicyInputDict as GetPolicyInputDict, GetPolicyOutput as GetPolicyOutput, GetRetrieverInput as GetRetrieverInput, + GetRetrieverInputDict as GetRetrieverInputDict, GetRetrieverOutput as GetRetrieverOutput, GetUserInput as GetUserInput, + GetUserInputDict as GetUserInputDict, GetUserOutput as GetUserOutput, GetWebExperienceInput as GetWebExperienceInput, + GetWebExperienceInputDict as GetWebExperienceInputDict, GetWebExperienceOutput as GetWebExperienceOutput, GroupMembers as GroupMembers, + GroupMembersDict as GroupMembersDict, GroupStatus as GroupStatus, GroupStatusDetail as GroupStatusDetail, GroupSummary as GroupSummary, HallucinationReductionConfiguration as HallucinationReductionConfiguration, + HallucinationReductionConfigurationDict as HallucinationReductionConfigurationDict, HallucinationReductionControl as HallucinationReductionControl, HookConfiguration as HookConfiguration, + HookConfigurationDict as HookConfigurationDict, IdcAuthConfiguration as IdcAuthConfiguration, + IdcAuthConfigurationDict as IdcAuthConfigurationDict, IdentityProviderConfigurationSamlConfiguration as IdentityProviderConfigurationSamlConfiguration, IdentityProviderConfigurationOpenIDConnectConfiguration as IdentityProviderConfigurationOpenIDConnectConfiguration, IdentityProviderConfigurationUnknown as IdentityProviderConfigurationUnknown, IdentityProviderConfiguration as IdentityProviderConfiguration, _IdentityProviderConfigurationDeserializer as _IdentityProviderConfigurationDeserializer, + IdentityProviderConfigurationSamlConfigurationDict as IdentityProviderConfigurationSamlConfigurationDict, + IdentityProviderConfigurationOpenIDConnectConfigurationDict as IdentityProviderConfigurationOpenIDConnectConfigurationDict, + IdentityProviderConfigurationDict as IdentityProviderConfigurationDict, IdentityType as IdentityType, ImageExtractionConfiguration as ImageExtractionConfiguration, + ImageExtractionConfigurationDict as ImageExtractionConfigurationDict, ImageExtractionStatus as ImageExtractionStatus, ImageSourceDetails as ImageSourceDetails, Index as Index, IndexCapacityConfiguration as IndexCapacityConfiguration, + IndexCapacityConfigurationDict as IndexCapacityConfigurationDict, IndexStatistics as IndexStatistics, IndexStatus as IndexStatus, IndexType as IndexType, InlineDocumentEnrichmentConfiguration as InlineDocumentEnrichmentConfiguration, + InlineDocumentEnrichmentConfigurationDict as InlineDocumentEnrichmentConfigurationDict, InstructionCollection as InstructionCollection, + InstructionCollectionDict as InstructionCollectionDict, InternalServerException as InternalServerException, KendraIndexConfiguration as KendraIndexConfiguration, + KendraIndexConfigurationDict as KendraIndexConfigurationDict, LicenseNotFoundException as LicenseNotFoundException, ListApplicationsInput as ListApplicationsInput, + ListApplicationsInputDict as ListApplicationsInputDict, ListApplicationsOutput as ListApplicationsOutput, ListAttachmentsInput as ListAttachmentsInput, + ListAttachmentsInputDict as ListAttachmentsInputDict, ListAttachmentsOutput as ListAttachmentsOutput, ListChatResponseConfigurationsInput as ListChatResponseConfigurationsInput, + ListChatResponseConfigurationsInputDict as ListChatResponseConfigurationsInputDict, ListChatResponseConfigurationsOutput as ListChatResponseConfigurationsOutput, ListConversationsInput as ListConversationsInput, + ListConversationsInputDict as ListConversationsInputDict, ListConversationsOutput as ListConversationsOutput, ListDataAccessorsInput as ListDataAccessorsInput, + ListDataAccessorsInputDict as ListDataAccessorsInputDict, ListDataAccessorsOutput as ListDataAccessorsOutput, ListDataSourcesInput as ListDataSourcesInput, + ListDataSourcesInputDict as ListDataSourcesInputDict, ListDataSourcesOutput as ListDataSourcesOutput, ListDataSourceSyncJobsInput as ListDataSourceSyncJobsInput, + ListDataSourceSyncJobsInputDict as ListDataSourceSyncJobsInputDict, ListDataSourceSyncJobsOutput as ListDataSourceSyncJobsOutput, ListDocumentsInput as ListDocumentsInput, + ListDocumentsInputDict as ListDocumentsInputDict, ListDocumentsOutput as ListDocumentsOutput, ListGroupsInput as ListGroupsInput, + ListGroupsInputDict as ListGroupsInputDict, ListGroupsOutput as ListGroupsOutput, ListIndicesInput as ListIndicesInput, + ListIndicesInputDict as ListIndicesInputDict, ListIndicesOutput as ListIndicesOutput, ListMessagesInput as ListMessagesInput, + ListMessagesInputDict as ListMessagesInputDict, ListMessagesOutput as ListMessagesOutput, ListPluginActionsInput as ListPluginActionsInput, + ListPluginActionsInputDict as ListPluginActionsInputDict, ListPluginActionsOutput as ListPluginActionsOutput, ListPluginsInput as ListPluginsInput, + ListPluginsInputDict as ListPluginsInputDict, ListPluginsOutput as ListPluginsOutput, ListPluginTypeActionsInput as ListPluginTypeActionsInput, + ListPluginTypeActionsInputDict as ListPluginTypeActionsInputDict, ListPluginTypeActionsOutput as ListPluginTypeActionsOutput, ) from ._private.models_1 import ( ListPluginTypeMetadataInput as ListPluginTypeMetadataInput, + ListPluginTypeMetadataInputDict as ListPluginTypeMetadataInputDict, ListPluginTypeMetadataOutput as ListPluginTypeMetadataOutput, ListRetrieversInput as ListRetrieversInput, + ListRetrieversInputDict as ListRetrieversInputDict, ListRetrieversOutput as ListRetrieversOutput, ListSubscriptionsInput as ListSubscriptionsInput, + ListSubscriptionsInputDict as ListSubscriptionsInputDict, ListSubscriptionsOutput as ListSubscriptionsOutput, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, ListWebExperiencesInput as ListWebExperiencesInput, + ListWebExperiencesInputDict as ListWebExperiencesInputDict, ListWebExperiencesOutput as ListWebExperiencesOutput, MediaExtractionConfiguration as MediaExtractionConfiguration, + MediaExtractionConfigurationDict as MediaExtractionConfigurationDict, MediaTooLargeException as MediaTooLargeException, MemberGroup as MemberGroup, + MemberGroupDict as MemberGroupDict, MemberRelation as MemberRelation, MembershipType as MembershipType, MemberUser as MemberUser, + MemberUserDict as MemberUserDict, Message as Message, MessageType as MessageType, MessageUsefulness as MessageUsefulness, MessageUsefulnessFeedback as MessageUsefulnessFeedback, + MessageUsefulnessFeedbackDict as MessageUsefulnessFeedbackDict, MessageUsefulnessReason as MessageUsefulnessReason, MetadataEvent as MetadataEvent, NativeIndexConfiguration as NativeIndexConfiguration, + NativeIndexConfigurationDict as NativeIndexConfigurationDict, NoAuthConfiguration as NoAuthConfiguration, + NoAuthConfigurationDict as NoAuthConfigurationDict, NumberAttributeBoostingConfiguration as NumberAttributeBoostingConfiguration, + NumberAttributeBoostingConfigurationDict as NumberAttributeBoostingConfigurationDict, NumberAttributeBoostingType as NumberAttributeBoostingType, OAuth2ClientCredentialConfiguration as OAuth2ClientCredentialConfiguration, + OAuth2ClientCredentialConfigurationDict as OAuth2ClientCredentialConfigurationDict, OpenIDConnectProviderConfiguration as OpenIDConnectProviderConfiguration, + OpenIDConnectProviderConfigurationDict as OpenIDConnectProviderConfigurationDict, OrchestrationConfiguration as OrchestrationConfiguration, + OrchestrationConfigurationDict as OrchestrationConfigurationDict, OrchestrationControl as OrchestrationControl, OutputFormat as OutputFormat, PermissionCondition as PermissionCondition, + PermissionConditionDict as PermissionConditionDict, PermissionConditionOperator as PermissionConditionOperator, PersonalizationConfiguration as PersonalizationConfiguration, + PersonalizationConfigurationDict as PersonalizationConfigurationDict, PersonalizationControlMode as PersonalizationControlMode, Plugin as Plugin, PluginAuthConfigurationBasicAuthConfiguration as PluginAuthConfigurationBasicAuthConfiguration, @@ -355,8 +502,14 @@ from ._private.models_1 import ( PluginAuthConfigurationUnknown as PluginAuthConfigurationUnknown, PluginAuthConfiguration as PluginAuthConfiguration, _PluginAuthConfigurationDeserializer as _PluginAuthConfigurationDeserializer, + PluginAuthConfigurationBasicAuthConfigurationDict as PluginAuthConfigurationBasicAuthConfigurationDict, + PluginAuthConfigurationOAuth2ClientCredentialConfigurationDict as PluginAuthConfigurationOAuth2ClientCredentialConfigurationDict, + PluginAuthConfigurationNoAuthConfigurationDict as PluginAuthConfigurationNoAuthConfigurationDict, + PluginAuthConfigurationIdcAuthConfigurationDict as PluginAuthConfigurationIdcAuthConfigurationDict, + PluginAuthConfigurationDict as PluginAuthConfigurationDict, PluginBuildStatus as PluginBuildStatus, PluginConfiguration as PluginConfiguration, + PluginConfigurationDict as PluginConfigurationDict, PluginState as PluginState, PluginType as PluginType, PluginTypeCategory as PluginTypeCategory, @@ -366,19 +519,29 @@ from ._private.models_1 import ( PrincipalUnknown as PrincipalUnknown, Principal as Principal, _PrincipalDeserializer as _PrincipalDeserializer, + Principal_UserDict as Principal_UserDict, + Principal_GroupDict as Principal_GroupDict, + PrincipalDict as PrincipalDict, PrincipalGroup as PrincipalGroup, + PrincipalGroupDict as PrincipalGroupDict, PrincipalUser as PrincipalUser, + PrincipalUserDict as PrincipalUserDict, PutFeedbackInput as PutFeedbackInput, + PutFeedbackInputDict as PutFeedbackInputDict, PutFeedbackOutput as PutFeedbackOutput, PutGroupInput as PutGroupInput, + PutGroupInputDict as PutGroupInputDict, PutGroupOutput as PutGroupOutput, QAppsConfiguration as QAppsConfiguration, + QAppsConfigurationDict as QAppsConfigurationDict, QAppsControlMode as QAppsControlMode, QuickSightConfiguration as QuickSightConfiguration, + QuickSightConfigurationDict as QuickSightConfigurationDict, ReadAccessType as ReadAccessType, RelevantContent as RelevantContent, ResourceNotFoundException as ResourceNotFoundException, ResponseConfiguration as ResponseConfiguration, + ResponseConfigurationDict as ResponseConfigurationDict, ResponseConfigurationType as ResponseConfigurationType, ResponseScope as ResponseScope, Retriever as Retriever, @@ -387,22 +550,34 @@ from ._private.models_1 import ( RetrieverConfigurationUnknown as RetrieverConfigurationUnknown, RetrieverConfiguration as RetrieverConfiguration, _RetrieverConfigurationDeserializer as _RetrieverConfigurationDeserializer, + RetrieverConfigurationNativeIndexConfigurationDict as RetrieverConfigurationNativeIndexConfigurationDict, + RetrieverConfigurationKendraIndexConfigurationDict as RetrieverConfigurationKendraIndexConfigurationDict, + RetrieverConfigurationDict as RetrieverConfigurationDict, RetrieverContentSource as RetrieverContentSource, + RetrieverContentSourceDict as RetrieverContentSourceDict, RetrieverStatus as RetrieverStatus, RetrieverType as RetrieverType, Rule as Rule, + RuleDict as RuleDict, RuleConfigurationContentBlockerRule as RuleConfigurationContentBlockerRule, RuleConfigurationContentRetrievalRule as RuleConfigurationContentRetrievalRule, RuleConfigurationUnknown as RuleConfigurationUnknown, RuleConfiguration as RuleConfiguration, _RuleConfigurationDeserializer as _RuleConfigurationDeserializer, + RuleConfigurationContentBlockerRuleDict as RuleConfigurationContentBlockerRuleDict, + RuleConfigurationContentRetrievalRuleDict as RuleConfigurationContentRetrievalRuleDict, + RuleConfigurationDict as RuleConfigurationDict, RuleType as RuleType, S3 as S3, + S3Dict as S3Dict, SamlConfiguration as SamlConfiguration, + SamlConfigurationDict as SamlConfigurationDict, SamlProviderConfiguration as SamlProviderConfiguration, + SamlProviderConfigurationDict as SamlProviderConfigurationDict, ScoreAttributes as ScoreAttributes, ScoreConfidence as ScoreConfidence, SearchRelevantContentInput as SearchRelevantContentInput, + SearchRelevantContentInputDict as SearchRelevantContentInputDict, SearchRelevantContentOutput as SearchRelevantContentOutput, ServiceQuotaExceededException as ServiceQuotaExceededException, SnippetExcerpt as SnippetExcerpt, @@ -414,13 +589,17 @@ from ._private.models_1 import ( SourceDetails as SourceDetails, _SourceDetailsDeserializer as _SourceDetailsDeserializer, StartDataSourceSyncJobInput as StartDataSourceSyncJobInput, + StartDataSourceSyncJobInputDict as StartDataSourceSyncJobInputDict, StartDataSourceSyncJobOutput as StartDataSourceSyncJobOutput, Status as Status, StopDataSourceSyncJobInput as StopDataSourceSyncJobInput, + StopDataSourceSyncJobInputDict as StopDataSourceSyncJobInputDict, StopDataSourceSyncJobOutput as StopDataSourceSyncJobOutput, StringAttributeBoostingConfiguration as StringAttributeBoostingConfiguration, + StringAttributeBoostingConfigurationDict as StringAttributeBoostingConfigurationDict, StringAttributeValueBoostingLevel as StringAttributeValueBoostingLevel, StringListAttributeBoostingConfiguration as StringListAttributeBoostingConfiguration, + StringListAttributeBoostingConfigurationDict as StringListAttributeBoostingConfigurationDict, Subscription as Subscription, SubscriptionDetails as SubscriptionDetails, SubscriptionPrincipalUser as SubscriptionPrincipalUser, @@ -428,10 +607,15 @@ from ._private.models_1 import ( SubscriptionPrincipalUnknown as SubscriptionPrincipalUnknown, SubscriptionPrincipal as SubscriptionPrincipal, _SubscriptionPrincipalDeserializer as _SubscriptionPrincipalDeserializer, + SubscriptionPrincipalUserDict as SubscriptionPrincipalUserDict, + SubscriptionPrincipalGroupDict as SubscriptionPrincipalGroupDict, + SubscriptionPrincipalDict as SubscriptionPrincipalDict, SubscriptionType as SubscriptionType, SystemMessageType as SystemMessageType, Tag as Tag, + TagDict as TagDict, TagResourceInput as TagResourceInput, + TagResourceInputDict as TagResourceInputDict, TagResourceOutput as TagResourceOutput, TextDocumentStatistics as TextDocumentStatistics, TextInputEvent as TextInputEvent, @@ -439,36 +623,52 @@ from ._private.models_1 import ( TextSegment as TextSegment, ThrottlingException as ThrottlingException, TopicConfiguration as TopicConfiguration, + TopicConfigurationDict as TopicConfigurationDict, UntagResourceInput as UntagResourceInput, + UntagResourceInputDict as UntagResourceInputDict, UntagResourceOutput as UntagResourceOutput, UpdateApplicationInput as UpdateApplicationInput, + UpdateApplicationInputDict as UpdateApplicationInputDict, UpdateApplicationOutput as UpdateApplicationOutput, UpdateChatControlsConfigurationInput as UpdateChatControlsConfigurationInput, + UpdateChatControlsConfigurationInputDict as UpdateChatControlsConfigurationInputDict, UpdateChatControlsConfigurationOutput as UpdateChatControlsConfigurationOutput, UpdateChatResponseConfigurationInput as UpdateChatResponseConfigurationInput, + UpdateChatResponseConfigurationInputDict as UpdateChatResponseConfigurationInputDict, UpdateChatResponseConfigurationOutput as UpdateChatResponseConfigurationOutput, UpdateDataAccessorInput as UpdateDataAccessorInput, + UpdateDataAccessorInputDict as UpdateDataAccessorInputDict, UpdateDataAccessorOutput as UpdateDataAccessorOutput, UpdateDataSourceInput as UpdateDataSourceInput, + UpdateDataSourceInputDict as UpdateDataSourceInputDict, UpdateDataSourceOutput as UpdateDataSourceOutput, UpdateIndexInput as UpdateIndexInput, + UpdateIndexInputDict as UpdateIndexInputDict, UpdateIndexOutput as UpdateIndexOutput, UpdatePluginInput as UpdatePluginInput, + UpdatePluginInputDict as UpdatePluginInputDict, UpdatePluginOutput as UpdatePluginOutput, UpdateRetrieverInput as UpdateRetrieverInput, + UpdateRetrieverInputDict as UpdateRetrieverInputDict, UpdateRetrieverOutput as UpdateRetrieverOutput, UpdateSubscriptionInput as UpdateSubscriptionInput, + UpdateSubscriptionInputDict as UpdateSubscriptionInputDict, UpdateSubscriptionOutput as UpdateSubscriptionOutput, UpdateUserInput as UpdateUserInput, + UpdateUserInputDict as UpdateUserInputDict, UpdateUserOutput as UpdateUserOutput, UpdateWebExperienceInput as UpdateWebExperienceInput, + UpdateWebExperienceInputDict as UpdateWebExperienceInputDict, UpdateWebExperienceOutput as UpdateWebExperienceOutput, UserAlias as UserAlias, + UserAliasDict as UserAliasDict, UsersAndGroups as UsersAndGroups, + UsersAndGroupsDict as UsersAndGroupsDict, ValidationException as ValidationException, ValidationExceptionField as ValidationExceptionField, ValidationExceptionReason as ValidationExceptionReason, VideoExtractionConfiguration as VideoExtractionConfiguration, + VideoExtractionConfigurationDict as VideoExtractionConfigurationDict, VideoExtractionStatus as VideoExtractionStatus, VideoExtractionType as VideoExtractionType, VideoSourceDetails as VideoSourceDetails, @@ -477,6 +677,8 @@ from ._private.models_1 import ( WebExperienceAuthConfigurationUnknown as WebExperienceAuthConfigurationUnknown, WebExperienceAuthConfiguration as WebExperienceAuthConfiguration, _WebExperienceAuthConfigurationDeserializer as _WebExperienceAuthConfigurationDeserializer, + WebExperienceAuthConfigurationSamlConfigurationDict as WebExperienceAuthConfigurationSamlConfigurationDict, + WebExperienceAuthConfigurationDict as WebExperienceAuthConfigurationDict, WebExperienceSamplePromptsControlMode as WebExperienceSamplePromptsControlMode, WebExperienceStatus as WebExperienceStatus, ) diff --git a/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/py.typed b/clients/aws-sdk-qbusiness/src/aws_sdk_qbusiness/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-qbusiness/tests/_typecheck.py b/clients/aws-sdk-qbusiness/tests/_typecheck.py index b3e6fe41f..e0a12b078 100644 --- a/clients/aws-sdk-qbusiness/tests/_typecheck.py +++ b/clients/aws-sdk-qbusiness/tests/_typecheck.py @@ -2,14 +2,23 @@ from typing import Any +from aws_sdk_qbusiness.aio.client import AsyncQBusinessClient +from aws_sdk_qbusiness.client import QBusinessClient from aws_sdk_qbusiness.models import ( + APISchemaDict, AccessConfiguration, + AccessConfigurationDict, AccessControl, + AccessControlDict, ActionConfiguration, + ActionConfigurationDict, ActionExecution, + ActionExecutionDict, ActionExecutionEvent, ActionExecutionPayloadField, + ActionExecutionPayloadFieldDict, ActionFilterConfiguration, + ActionFilterConfigurationDict, ActionReview, ActionReviewEvent, ActionReviewPayloadField, @@ -20,106 +29,162 @@ AppliedCreatorModeConfiguration, AppliedOrchestrationConfiguration, AssociatePermissionInput, + AssociatePermissionInputDict, AssociatePermissionOutput, AssociatedGroup, AssociatedUser, Attachment, AttachmentInput, + AttachmentInputDict, AttachmentInputEvent, AttachmentOutput, AttachmentsConfiguration, + AttachmentsConfigurationDict, AttributeFilter, + AttributeFilterDict, AudioExtractionConfiguration, + AudioExtractionConfigurationDict, AudioSourceDetails, AuthChallengeRequest, AuthChallengeRequestEvent, AuthChallengeResponse, + AuthChallengeResponseDict, AuthChallengeResponseEvent, AutoSubscriptionConfiguration, + AutoSubscriptionConfigurationDict, BasicAuthConfiguration, + BasicAuthConfigurationDict, BatchDeleteDocumentInput, + BatchDeleteDocumentInputDict, BatchDeleteDocumentOutput, BatchPutDocumentInput, + BatchPutDocumentInputDict, BatchPutDocumentOutput, BlockedPhrasesConfiguration, BlockedPhrasesConfigurationUpdate, + BlockedPhrasesConfigurationUpdateDict, BrowserExtensionConfiguration, + BrowserExtensionConfigurationDict, CancelSubscriptionInput, + CancelSubscriptionInputDict, CancelSubscriptionOutput, ChatInput, + ChatInputDict, + ChatModeConfigurationDict, ChatOutput, ChatResponseConfiguration, ChatResponseConfigurationDetail, ChatSyncInput, + ChatSyncInputDict, ChatSyncOutput, CheckDocumentAccessInput, + CheckDocumentAccessInputDict, CheckDocumentAccessOutput, ConfigurationEvent, ContentBlockerRule, + ContentBlockerRuleDict, ContentRetrievalRule, + ContentRetrievalRuleDict, + ContentSourceDict, Conversation, ConversationSource, + ConversationSourceDict, + CopyFromSourceDict, CreateAnonymousWebExperienceUrlInput, + CreateAnonymousWebExperienceUrlInputDict, CreateAnonymousWebExperienceUrlOutput, CreateApplicationInput, + CreateApplicationInputDict, CreateApplicationOutput, CreateChatResponseConfigurationInput, + CreateChatResponseConfigurationInputDict, CreateChatResponseConfigurationOutput, CreateDataAccessorInput, + CreateDataAccessorInputDict, CreateDataAccessorOutput, CreateDataSourceInput, + CreateDataSourceInputDict, CreateDataSourceOutput, CreateIndexInput, + CreateIndexInputDict, CreateIndexOutput, CreatePluginInput, + CreatePluginInputDict, CreatePluginOutput, CreateRetrieverInput, + CreateRetrieverInputDict, CreateRetrieverOutput, CreateSubscriptionInput, + CreateSubscriptionInputDict, CreateSubscriptionOutput, CreateUserInput, + CreateUserInputDict, CreateUserOutput, CreateWebExperienceInput, + CreateWebExperienceInputDict, CreateWebExperienceOutput, CreatorModeConfiguration, + CreatorModeConfigurationDict, CustomPluginConfiguration, + CustomPluginConfigurationDict, CustomizationConfiguration, + CustomizationConfigurationDict, DataAccessor, + DataAccessorAuthenticationConfigurationDict, DataAccessorAuthenticationDetail, + DataAccessorAuthenticationDetailDict, DataAccessorIdcTrustedTokenIssuerConfiguration, + DataAccessorIdcTrustedTokenIssuerConfigurationDict, DataSource, DataSourceSyncJob, DataSourceSyncJobMetrics, DataSourceVpcConfiguration, + DataSourceVpcConfigurationDict, DateAttributeBoostingConfiguration, + DateAttributeBoostingConfigurationDict, DeleteApplicationInput, + DeleteApplicationInputDict, DeleteApplicationOutput, DeleteAttachmentInput, + DeleteAttachmentInputDict, DeleteAttachmentOutput, DeleteChatControlsConfigurationInput, + DeleteChatControlsConfigurationInputDict, DeleteChatControlsConfigurationOutput, DeleteChatResponseConfigurationInput, + DeleteChatResponseConfigurationInputDict, DeleteChatResponseConfigurationOutput, DeleteConversationInput, + DeleteConversationInputDict, DeleteConversationOutput, DeleteDataAccessorInput, + DeleteDataAccessorInputDict, DeleteDataAccessorOutput, DeleteDataSourceInput, + DeleteDataSourceInputDict, DeleteDataSourceOutput, DeleteDocument, + DeleteDocumentDict, DeleteGroupInput, + DeleteGroupInputDict, DeleteGroupOutput, DeleteIndexInput, + DeleteIndexInputDict, DeleteIndexOutput, DeletePluginInput, + DeletePluginInputDict, DeletePluginOutput, DeleteRetrieverInput, + DeleteRetrieverInputDict, DeleteRetrieverOutput, DeleteUserInput, + DeleteUserInputDict, DeleteUserOutput, DeleteWebExperienceInput, + DeleteWebExperienceInputDict, DeleteWebExperienceOutput, DisassociatePermissionInput, + DisassociatePermissionInputDict, DisassociatePermissionOutput, Document, DocumentAcl, @@ -128,186 +193,295 @@ DocumentAclMembership, DocumentAclUser, DocumentAttribute, + DocumentAttributeBoostingConfigurationDict, DocumentAttributeCondition, + DocumentAttributeConditionDict, DocumentAttributeConfiguration, + DocumentAttributeConfigurationDict, + DocumentAttributeDict, DocumentAttributeTarget, + DocumentAttributeTargetDict, + DocumentAttributeValueDict, + DocumentContentDict, DocumentDetails, + DocumentDict, DocumentEnrichmentConfiguration, + DocumentEnrichmentConfigurationDict, EligibleDataSource, + EligibleDataSourceDict, EncryptionConfiguration, + EncryptionConfigurationDict, EndOfInputEvent, ErrorDetail, FailedAttachmentEvent, FailedDocument, GetApplicationInput, + GetApplicationInputDict, GetApplicationOutput, GetChatControlsConfigurationInput, + GetChatControlsConfigurationInputDict, GetChatControlsConfigurationOutput, GetChatResponseConfigurationInput, + GetChatResponseConfigurationInputDict, GetChatResponseConfigurationOutput, GetDataAccessorInput, + GetDataAccessorInputDict, GetDataAccessorOutput, GetDataSourceInput, + GetDataSourceInputDict, GetDataSourceOutput, GetDocumentContentInput, + GetDocumentContentInputDict, GetDocumentContentOutput, GetGroupInput, + GetGroupInputDict, GetGroupOutput, GetIndexInput, + GetIndexInputDict, GetIndexOutput, GetMediaInput, + GetMediaInputDict, GetMediaOutput, GetPluginInput, + GetPluginInputDict, GetPluginOutput, GetPolicyInput, + GetPolicyInputDict, GetPolicyOutput, GetRetrieverInput, + GetRetrieverInputDict, GetRetrieverOutput, GetUserInput, + GetUserInputDict, GetUserOutput, GetWebExperienceInput, + GetWebExperienceInputDict, GetWebExperienceOutput, GroupMembers, + GroupMembersDict, GroupStatusDetail, GroupSummary, HallucinationReductionConfiguration, + HallucinationReductionConfigurationDict, HookConfiguration, + HookConfigurationDict, IdcAuthConfiguration, + IdcAuthConfigurationDict, + IdentityProviderConfigurationDict, ImageExtractionConfiguration, + ImageExtractionConfigurationDict, ImageSourceDetails, Index, IndexCapacityConfiguration, + IndexCapacityConfigurationDict, IndexStatistics, InlineDocumentEnrichmentConfiguration, + InlineDocumentEnrichmentConfigurationDict, InstructionCollection, + InstructionCollectionDict, KendraIndexConfiguration, + KendraIndexConfigurationDict, ListApplicationsInput, + ListApplicationsInputDict, ListApplicationsOutput, ListAttachmentsInput, + ListAttachmentsInputDict, ListAttachmentsOutput, ListChatResponseConfigurationsInput, + ListChatResponseConfigurationsInputDict, ListChatResponseConfigurationsOutput, ListConversationsInput, + ListConversationsInputDict, ListConversationsOutput, ListDataAccessorsInput, + ListDataAccessorsInputDict, ListDataAccessorsOutput, ListDataSourceSyncJobsInput, + ListDataSourceSyncJobsInputDict, ListDataSourceSyncJobsOutput, ListDataSourcesInput, + ListDataSourcesInputDict, ListDataSourcesOutput, ListDocumentsInput, + ListDocumentsInputDict, ListDocumentsOutput, ListGroupsInput, + ListGroupsInputDict, ListGroupsOutput, ListIndicesInput, + ListIndicesInputDict, ListIndicesOutput, ListMessagesInput, + ListMessagesInputDict, ListMessagesOutput, ListPluginActionsInput, + ListPluginActionsInputDict, ListPluginActionsOutput, ListPluginTypeActionsInput, + ListPluginTypeActionsInputDict, ListPluginTypeActionsOutput, ListPluginTypeMetadataInput, + ListPluginTypeMetadataInputDict, ListPluginTypeMetadataOutput, ListPluginsInput, + ListPluginsInputDict, ListPluginsOutput, ListRetrieversInput, + ListRetrieversInputDict, ListRetrieversOutput, ListSubscriptionsInput, + ListSubscriptionsInputDict, ListSubscriptionsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ListWebExperiencesInput, + ListWebExperiencesInputDict, ListWebExperiencesOutput, MediaExtractionConfiguration, + MediaExtractionConfigurationDict, MemberGroup, + MemberGroupDict, MemberUser, + MemberUserDict, Message, MessageUsefulnessFeedback, + MessageUsefulnessFeedbackDict, MetadataEvent, NativeIndexConfiguration, + NativeIndexConfigurationDict, NoAuthConfiguration, + NoAuthConfigurationDict, NumberAttributeBoostingConfiguration, + NumberAttributeBoostingConfigurationDict, OAuth2ClientCredentialConfiguration, + OAuth2ClientCredentialConfigurationDict, OpenIDConnectProviderConfiguration, + OpenIDConnectProviderConfigurationDict, OrchestrationConfiguration, + OrchestrationConfigurationDict, PermissionCondition, + PermissionConditionDict, PersonalizationConfiguration, + PersonalizationConfigurationDict, Plugin, + PluginAuthConfigurationDict, PluginConfiguration, + PluginConfigurationDict, PluginTypeMetadataSummary, + PrincipalDict, PrincipalGroup, + PrincipalGroupDict, PrincipalUser, + PrincipalUserDict, PutFeedbackInput, + PutFeedbackInputDict, PutFeedbackOutput, PutGroupInput, + PutGroupInputDict, PutGroupOutput, QAppsConfiguration, + QAppsConfigurationDict, QuickSightConfiguration, + QuickSightConfigurationDict, RelevantContent, ResponseConfiguration, + ResponseConfigurationDict, Retriever, + RetrieverConfigurationDict, RetrieverContentSource, + RetrieverContentSourceDict, Rule, + RuleConfigurationDict, + RuleDict, S3, + S3Dict, SamlConfiguration, + SamlConfigurationDict, SamlProviderConfiguration, + SamlProviderConfigurationDict, ScoreAttributes, SearchRelevantContentInput, + SearchRelevantContentInputDict, SearchRelevantContentOutput, SnippetExcerpt, SourceAttribution, StartDataSourceSyncJobInput, + StartDataSourceSyncJobInputDict, StartDataSourceSyncJobOutput, StopDataSourceSyncJobInput, + StopDataSourceSyncJobInputDict, StopDataSourceSyncJobOutput, StringAttributeBoostingConfiguration, + StringAttributeBoostingConfigurationDict, StringListAttributeBoostingConfiguration, + StringListAttributeBoostingConfigurationDict, Subscription, SubscriptionDetails, + SubscriptionPrincipalDict, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, TextDocumentStatistics, TextInputEvent, TextOutputEvent, TextSegment, TopicConfiguration, + TopicConfigurationDict, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateApplicationInput, + UpdateApplicationInputDict, UpdateApplicationOutput, UpdateChatControlsConfigurationInput, + UpdateChatControlsConfigurationInputDict, UpdateChatControlsConfigurationOutput, UpdateChatResponseConfigurationInput, + UpdateChatResponseConfigurationInputDict, UpdateChatResponseConfigurationOutput, UpdateDataAccessorInput, + UpdateDataAccessorInputDict, UpdateDataAccessorOutput, UpdateDataSourceInput, + UpdateDataSourceInputDict, UpdateDataSourceOutput, UpdateIndexInput, + UpdateIndexInputDict, UpdateIndexOutput, UpdatePluginInput, + UpdatePluginInputDict, UpdatePluginOutput, UpdateRetrieverInput, + UpdateRetrieverInputDict, UpdateRetrieverOutput, UpdateSubscriptionInput, + UpdateSubscriptionInputDict, UpdateSubscriptionOutput, UpdateUserInput, + UpdateUserInputDict, UpdateUserOutput, UpdateWebExperienceInput, + UpdateWebExperienceInputDict, UpdateWebExperienceOutput, UserAlias, + UserAliasDict, UsersAndGroups, + UsersAndGroupsDict, ValidationExceptionField, VideoExtractionConfiguration, + VideoExtractionConfigurationDict, VideoSourceDetails, WebExperience, + WebExperienceAuthConfigurationDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -618,3 +792,1148 @@ VideoExtractionConfiguration(video_extraction_status=_) VideoSourceDetails() WebExperience() +_params_0: AccessConfigurationDict = {"access_controls": _} +_params_1: AccessControlDict = {"principals": _} +_params_2: ActionConfigurationDict = {"action": _} +_params_3: ActionExecutionDict = { + "plugin_id": _, + "payload": _, + "payload_field_name_separator": _, +} +_params_4: ActionExecutionPayloadFieldDict = {"value": _} +_params_5: ActionFilterConfigurationDict = {"document_attribute_filter": _} +_params_6: APISchemaDict = {"payload": _} +_params_7: AssociatePermissionInputDict = { + "application_id": _, + "statement_id": _, + "actions": _, + "principal": _, +} +_params_8: AttachmentInputDict = {} +_params_9: AttachmentsConfigurationDict = {"attachments_control_mode": _} +_params_10: AttributeFilterDict = {} +_params_11: AudioExtractionConfigurationDict = {"audio_extraction_status": _} +_params_12: AuthChallengeResponseDict = {"response_map": _} +_params_13: AutoSubscriptionConfigurationDict = {"auto_subscribe": _} +_params_14: BasicAuthConfigurationDict = {"secret_arn": _, "role_arn": _} +_params_15: BatchDeleteDocumentInputDict = { + "application_id": _, + "index_id": _, + "documents": _, +} +_params_16: BatchPutDocumentInputDict = { + "application_id": _, + "index_id": _, + "documents": _, +} +_params_17: BlockedPhrasesConfigurationUpdateDict = {} +_params_18: BrowserExtensionConfigurationDict = {"enabled_browser_extensions": _} +_params_19: CancelSubscriptionInputDict = {"application_id": _, "subscription_id": _} +_params_20: ChatInputDict = {"application_id": _} +_params_21: ChatModeConfigurationDict = {"plugin_configuration": _} +_params_22: ChatSyncInputDict = {"application_id": _} +_params_23: CheckDocumentAccessInputDict = { + "application_id": _, + "index_id": _, + "user_id": _, + "document_id": _, +} +_params_24: ContentBlockerRuleDict = {} +_params_25: ContentRetrievalRuleDict = {} +_params_26: ContentSourceDict = {"retriever": _} +_params_27: ConversationSourceDict = {"conversation_id": _, "attachment_id": _} +_params_28: CopyFromSourceDict = {"conversation": _} +_params_29: CreateAnonymousWebExperienceUrlInputDict = { + "application_id": _, + "web_experience_id": _, +} +_params_30: CreateApplicationInputDict = {"display_name": _} +_params_31: CreateChatResponseConfigurationInputDict = { + "application_id": _, + "display_name": _, + "response_configurations": _, +} +_params_32: CreateDataAccessorInputDict = { + "application_id": _, + "principal": _, + "action_configurations": _, + "display_name": _, +} +_params_33: CreateDataSourceInputDict = { + "application_id": _, + "index_id": _, + "display_name": _, + "configuration": _, +} +_params_34: CreateIndexInputDict = {"application_id": _, "display_name": _} +_params_35: CreatePluginInputDict = { + "application_id": _, + "display_name": _, + "type": _, + "auth_configuration": _, +} +_params_36: CreateRetrieverInputDict = { + "application_id": _, + "type": _, + "display_name": _, + "configuration": _, +} +_params_37: CreateSubscriptionInputDict = { + "application_id": _, + "principal": _, + "type": _, +} +_params_38: CreateUserInputDict = {"application_id": _, "user_id": _} +_params_39: CreateWebExperienceInputDict = {"application_id": _} +_params_40: CreatorModeConfigurationDict = {"creator_mode_control": _} +_params_41: CustomizationConfigurationDict = {} +_params_42: CustomPluginConfigurationDict = {"description": _, "api_schema_type": _} +_params_43: DataAccessorAuthenticationConfigurationDict = { + "idc_trusted_token_issuer_configuration": _ +} +_params_44: DataAccessorAuthenticationDetailDict = {"authentication_type": _} +_params_45: DataAccessorIdcTrustedTokenIssuerConfigurationDict = { + "idc_trusted_token_issuer_arn": _ +} +_params_46: DataSourceVpcConfigurationDict = {"subnet_ids": _, "security_group_ids": _} +_params_47: DateAttributeBoostingConfigurationDict = {"boosting_level": _} +_params_48: DeleteApplicationInputDict = {"application_id": _} +_params_49: DeleteAttachmentInputDict = { + "application_id": _, + "conversation_id": _, + "attachment_id": _, +} +_params_50: DeleteChatControlsConfigurationInputDict = {"application_id": _} +_params_51: DeleteChatResponseConfigurationInputDict = { + "application_id": _, + "chat_response_configuration_id": _, +} +_params_52: DeleteConversationInputDict = {"conversation_id": _, "application_id": _} +_params_53: DeleteDataAccessorInputDict = {"application_id": _, "data_accessor_id": _} +_params_54: DeleteDataSourceInputDict = { + "application_id": _, + "index_id": _, + "data_source_id": _, +} +_params_55: DeleteDocumentDict = {"document_id": _} +_params_56: DeleteGroupInputDict = {"application_id": _, "index_id": _, "group_name": _} +_params_57: DeleteIndexInputDict = {"application_id": _, "index_id": _} +_params_58: DeletePluginInputDict = {"application_id": _, "plugin_id": _} +_params_59: DeleteRetrieverInputDict = {"application_id": _, "retriever_id": _} +_params_60: DeleteUserInputDict = {"application_id": _, "user_id": _} +_params_61: DeleteWebExperienceInputDict = {"application_id": _, "web_experience_id": _} +_params_62: DisassociatePermissionInputDict = {"application_id": _, "statement_id": _} +_params_63: DocumentDict = {"id": _} +_params_64: DocumentAttributeDict = {"name": _, "value": _} +_params_65: DocumentAttributeBoostingConfigurationDict = {"number_configuration": _} +_params_66: DocumentAttributeConditionDict = {"key": _, "operator": _} +_params_67: DocumentAttributeConfigurationDict = {} +_params_68: DocumentAttributeTargetDict = {"key": _} +_params_69: DocumentAttributeValueDict = {"string_value": _} +_params_70: DocumentContentDict = {"blob": _} +_params_71: DocumentEnrichmentConfigurationDict = {} +_params_72: EligibleDataSourceDict = {} +_params_73: EncryptionConfigurationDict = {} +_params_74: GetApplicationInputDict = {"application_id": _} +_params_75: GetChatControlsConfigurationInputDict = {"application_id": _} +_params_76: GetChatResponseConfigurationInputDict = { + "application_id": _, + "chat_response_configuration_id": _, +} +_params_77: GetDataAccessorInputDict = {"application_id": _, "data_accessor_id": _} +_params_78: GetDataSourceInputDict = { + "application_id": _, + "index_id": _, + "data_source_id": _, +} +_params_79: GetDocumentContentInputDict = { + "application_id": _, + "index_id": _, + "document_id": _, +} +_params_80: GetGroupInputDict = {"application_id": _, "index_id": _, "group_name": _} +_params_81: GetIndexInputDict = {"application_id": _, "index_id": _} +_params_82: GetMediaInputDict = { + "application_id": _, + "conversation_id": _, + "message_id": _, + "media_id": _, +} +_params_83: GetPluginInputDict = {"application_id": _, "plugin_id": _} +_params_84: GetPolicyInputDict = {"application_id": _} +_params_85: GetRetrieverInputDict = {"application_id": _, "retriever_id": _} +_params_86: GetUserInputDict = {"application_id": _, "user_id": _} +_params_87: GetWebExperienceInputDict = {"application_id": _, "web_experience_id": _} +_params_88: GroupMembersDict = {} +_params_89: HallucinationReductionConfigurationDict = {} +_params_90: HookConfigurationDict = {} +_params_91: IdcAuthConfigurationDict = {"idc_application_arn": _, "role_arn": _} +_params_92: IdentityProviderConfigurationDict = {"saml_configuration": _} +_params_93: ImageExtractionConfigurationDict = {"image_extraction_status": _} +_params_94: IndexCapacityConfigurationDict = {} +_params_95: InlineDocumentEnrichmentConfigurationDict = {} +_params_96: InstructionCollectionDict = {} +_params_97: KendraIndexConfigurationDict = {"index_id": _} +_params_98: ListApplicationsInputDict = {} +_params_99: ListAttachmentsInputDict = {"application_id": _} +_params_100: ListChatResponseConfigurationsInputDict = {"application_id": _} +_params_101: ListConversationsInputDict = {"application_id": _} +_params_102: ListDataAccessorsInputDict = {"application_id": _} +_params_103: ListDataSourcesInputDict = {"application_id": _, "index_id": _} +_params_104: ListDataSourceSyncJobsInputDict = { + "data_source_id": _, + "application_id": _, + "index_id": _, +} +_params_105: ListDocumentsInputDict = {"application_id": _, "index_id": _} +_params_106: ListGroupsInputDict = { + "application_id": _, + "index_id": _, + "updated_earlier_than": _, +} +_params_107: ListIndicesInputDict = {"application_id": _} +_params_108: ListMessagesInputDict = {"conversation_id": _, "application_id": _} +_params_109: ListPluginActionsInputDict = {"application_id": _, "plugin_id": _} +_params_110: ListPluginsInputDict = {"application_id": _} +_params_111: ListPluginTypeActionsInputDict = {"plugin_type": _} +_params_112: ListPluginTypeMetadataInputDict = {} +_params_113: ListRetrieversInputDict = {"application_id": _} +_params_114: ListSubscriptionsInputDict = {"application_id": _} +_params_115: ListTagsForResourceInputDict = {"resource_arn": _} +_params_116: ListWebExperiencesInputDict = {"application_id": _} +_params_117: MediaExtractionConfigurationDict = {} +_params_118: MemberGroupDict = {"group_name": _} +_params_119: MemberUserDict = {"user_id": _} +_params_120: MessageUsefulnessFeedbackDict = {"usefulness": _, "submitted_at": _} +_params_121: NativeIndexConfigurationDict = {"index_id": _} +_params_122: NoAuthConfigurationDict = {} +_params_123: NumberAttributeBoostingConfigurationDict = {"boosting_level": _} +_params_124: OAuth2ClientCredentialConfigurationDict = {"secret_arn": _, "role_arn": _} +_params_125: OpenIDConnectProviderConfigurationDict = { + "secrets_arn": _, + "secrets_role": _, +} +_params_126: OrchestrationConfigurationDict = {"control": _} +_params_127: PermissionConditionDict = { + "condition_operator": _, + "condition_key": _, + "condition_values": _, +} +_params_128: PersonalizationConfigurationDict = {"personalization_control_mode": _} +_params_129: PluginAuthConfigurationDict = {"basic_auth_configuration": _} +_params_130: PluginConfigurationDict = {"plugin_id": _} +_params_131: PrincipalDict = {"user": _} +_params_132: PrincipalGroupDict = {"access": _} +_params_133: PrincipalUserDict = {"access": _} +_params_134: PutFeedbackInputDict = { + "application_id": _, + "conversation_id": _, + "message_id": _, +} +_params_135: PutGroupInputDict = { + "application_id": _, + "index_id": _, + "group_name": _, + "type": _, + "group_members": _, +} +_params_136: QAppsConfigurationDict = {"q_apps_control_mode": _} +_params_137: QuickSightConfigurationDict = {"client_namespace": _} +_params_138: ResponseConfigurationDict = {} +_params_139: RetrieverConfigurationDict = {"native_index_configuration": _} +_params_140: RetrieverContentSourceDict = {"retriever_id": _} +_params_141: RuleDict = {"rule_type": _} +_params_142: RuleConfigurationDict = {"content_blocker_rule": _} +_params_143: S3Dict = {"bucket": _, "key": _} +_params_144: SamlConfigurationDict = { + "metadata_xml": _, + "role_arn": _, + "user_id_attribute": _, +} +_params_145: SamlProviderConfigurationDict = {"authentication_url": _} +_params_146: SearchRelevantContentInputDict = { + "application_id": _, + "query_text": _, + "content_source": _, +} +_params_147: StartDataSourceSyncJobInputDict = { + "data_source_id": _, + "application_id": _, + "index_id": _, +} +_params_148: StopDataSourceSyncJobInputDict = { + "data_source_id": _, + "application_id": _, + "index_id": _, +} +_params_149: StringAttributeBoostingConfigurationDict = {"boosting_level": _} +_params_150: StringListAttributeBoostingConfigurationDict = {"boosting_level": _} +_params_151: SubscriptionPrincipalDict = {"user": _} +_params_152: TagDict = {"key": _, "value": _} +_params_153: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_154: TopicConfigurationDict = {"name": _, "rules": _} +_params_155: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_156: UpdateApplicationInputDict = {"application_id": _} +_params_157: UpdateChatControlsConfigurationInputDict = {"application_id": _} +_params_158: UpdateChatResponseConfigurationInputDict = { + "application_id": _, + "chat_response_configuration_id": _, + "response_configurations": _, +} +_params_159: UpdateDataAccessorInputDict = { + "application_id": _, + "data_accessor_id": _, + "action_configurations": _, +} +_params_160: UpdateDataSourceInputDict = { + "application_id": _, + "index_id": _, + "data_source_id": _, +} +_params_161: UpdateIndexInputDict = {"application_id": _, "index_id": _} +_params_162: UpdatePluginInputDict = {"application_id": _, "plugin_id": _} +_params_163: UpdateRetrieverInputDict = {"application_id": _, "retriever_id": _} +_params_164: UpdateSubscriptionInputDict = { + "application_id": _, + "subscription_id": _, + "type": _, +} +_params_165: UpdateUserInputDict = {"application_id": _, "user_id": _} +_params_166: UpdateWebExperienceInputDict = { + "application_id": _, + "web_experience_id": _, +} +_params_167: UserAliasDict = {"user_id": _} +_params_168: UsersAndGroupsDict = {} +_params_169: VideoExtractionConfigurationDict = {"video_extraction_status": _} +_params_170: WebExperienceAuthConfigurationDict = {"saml_configuration": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncQBusinessClient) -> None: + pass + await client.associate_permission( + application_id=_, statement_id=_, actions=_, principal=_ + ) + await client.associate_permission(**_request(AssociatePermissionInputDict)) + await client.associate_permission(_request(AssociatePermissionInput)) + await client.associate_permission(_request(AssociatePermissionInputDict)) + await client.batch_delete_document(application_id=_, index_id=_, documents=_) + await client.batch_delete_document(**_request(BatchDeleteDocumentInputDict)) + await client.batch_delete_document(_request(BatchDeleteDocumentInput)) + await client.batch_delete_document(_request(BatchDeleteDocumentInputDict)) + await client.batch_put_document(application_id=_, index_id=_, documents=_) + await client.batch_put_document(**_request(BatchPutDocumentInputDict)) + await client.batch_put_document(_request(BatchPutDocumentInput)) + await client.batch_put_document(_request(BatchPutDocumentInputDict)) + await client.cancel_subscription(application_id=_, subscription_id=_) + await client.cancel_subscription(**_request(CancelSubscriptionInputDict)) + await client.cancel_subscription(_request(CancelSubscriptionInput)) + await client.cancel_subscription(_request(CancelSubscriptionInputDict)) + await client.chat(application_id=_) + await client.chat(**_request(ChatInputDict)) + await client.chat(_request(ChatInput)) + await client.chat(_request(ChatInputDict)) + await client.chat_sync(application_id=_) + await client.chat_sync(**_request(ChatSyncInputDict)) + await client.chat_sync(_request(ChatSyncInput)) + await client.chat_sync(_request(ChatSyncInputDict)) + await client.check_document_access( + application_id=_, index_id=_, user_id=_, document_id=_ + ) + await client.check_document_access(**_request(CheckDocumentAccessInputDict)) + await client.check_document_access(_request(CheckDocumentAccessInput)) + await client.check_document_access(_request(CheckDocumentAccessInputDict)) + await client.create_anonymous_web_experience_url( + application_id=_, web_experience_id=_ + ) + await client.create_anonymous_web_experience_url( + **_request(CreateAnonymousWebExperienceUrlInputDict) + ) + await client.create_anonymous_web_experience_url( + _request(CreateAnonymousWebExperienceUrlInput) + ) + await client.create_anonymous_web_experience_url( + _request(CreateAnonymousWebExperienceUrlInputDict) + ) + await client.create_application(display_name=_) + await client.create_application(**_request(CreateApplicationInputDict)) + await client.create_application(_request(CreateApplicationInput)) + await client.create_application(_request(CreateApplicationInputDict)) + await client.create_chat_response_configuration( + application_id=_, display_name=_, response_configurations=_ + ) + await client.create_chat_response_configuration( + **_request(CreateChatResponseConfigurationInputDict) + ) + await client.create_chat_response_configuration( + _request(CreateChatResponseConfigurationInput) + ) + await client.create_chat_response_configuration( + _request(CreateChatResponseConfigurationInputDict) + ) + await client.create_data_accessor( + application_id=_, principal=_, action_configurations=_, display_name=_ + ) + await client.create_data_accessor(**_request(CreateDataAccessorInputDict)) + await client.create_data_accessor(_request(CreateDataAccessorInput)) + await client.create_data_accessor(_request(CreateDataAccessorInputDict)) + await client.create_data_source( + application_id=_, index_id=_, display_name=_, configuration=_ + ) + await client.create_data_source(**_request(CreateDataSourceInputDict)) + await client.create_data_source(_request(CreateDataSourceInput)) + await client.create_data_source(_request(CreateDataSourceInputDict)) + await client.create_index(application_id=_, display_name=_) + await client.create_index(**_request(CreateIndexInputDict)) + await client.create_index(_request(CreateIndexInput)) + await client.create_index(_request(CreateIndexInputDict)) + await client.create_plugin( + application_id=_, display_name=_, type=_, auth_configuration=_ + ) + await client.create_plugin(**_request(CreatePluginInputDict)) + await client.create_plugin(_request(CreatePluginInput)) + await client.create_plugin(_request(CreatePluginInputDict)) + await client.create_retriever( + application_id=_, type=_, display_name=_, configuration=_ + ) + await client.create_retriever(**_request(CreateRetrieverInputDict)) + await client.create_retriever(_request(CreateRetrieverInput)) + await client.create_retriever(_request(CreateRetrieverInputDict)) + await client.create_subscription(application_id=_, principal=_, type=_) + await client.create_subscription(**_request(CreateSubscriptionInputDict)) + await client.create_subscription(_request(CreateSubscriptionInput)) + await client.create_subscription(_request(CreateSubscriptionInputDict)) + await client.create_user(application_id=_, user_id=_) + await client.create_user(**_request(CreateUserInputDict)) + await client.create_user(_request(CreateUserInput)) + await client.create_user(_request(CreateUserInputDict)) + await client.create_web_experience(application_id=_) + await client.create_web_experience(**_request(CreateWebExperienceInputDict)) + await client.create_web_experience(_request(CreateWebExperienceInput)) + await client.create_web_experience(_request(CreateWebExperienceInputDict)) + await client.delete_application(application_id=_) + await client.delete_application(**_request(DeleteApplicationInputDict)) + await client.delete_application(_request(DeleteApplicationInput)) + await client.delete_application(_request(DeleteApplicationInputDict)) + await client.delete_attachment(application_id=_, conversation_id=_, attachment_id=_) + await client.delete_attachment(**_request(DeleteAttachmentInputDict)) + await client.delete_attachment(_request(DeleteAttachmentInput)) + await client.delete_attachment(_request(DeleteAttachmentInputDict)) + await client.delete_chat_controls_configuration(application_id=_) + await client.delete_chat_controls_configuration( + **_request(DeleteChatControlsConfigurationInputDict) + ) + await client.delete_chat_controls_configuration( + _request(DeleteChatControlsConfigurationInput) + ) + await client.delete_chat_controls_configuration( + _request(DeleteChatControlsConfigurationInputDict) + ) + await client.delete_chat_response_configuration( + application_id=_, chat_response_configuration_id=_ + ) + await client.delete_chat_response_configuration( + **_request(DeleteChatResponseConfigurationInputDict) + ) + await client.delete_chat_response_configuration( + _request(DeleteChatResponseConfigurationInput) + ) + await client.delete_chat_response_configuration( + _request(DeleteChatResponseConfigurationInputDict) + ) + await client.delete_conversation(conversation_id=_, application_id=_) + await client.delete_conversation(**_request(DeleteConversationInputDict)) + await client.delete_conversation(_request(DeleteConversationInput)) + await client.delete_conversation(_request(DeleteConversationInputDict)) + await client.delete_data_accessor(application_id=_, data_accessor_id=_) + await client.delete_data_accessor(**_request(DeleteDataAccessorInputDict)) + await client.delete_data_accessor(_request(DeleteDataAccessorInput)) + await client.delete_data_accessor(_request(DeleteDataAccessorInputDict)) + await client.delete_data_source(application_id=_, index_id=_, data_source_id=_) + await client.delete_data_source(**_request(DeleteDataSourceInputDict)) + await client.delete_data_source(_request(DeleteDataSourceInput)) + await client.delete_data_source(_request(DeleteDataSourceInputDict)) + await client.delete_group(application_id=_, index_id=_, group_name=_) + await client.delete_group(**_request(DeleteGroupInputDict)) + await client.delete_group(_request(DeleteGroupInput)) + await client.delete_group(_request(DeleteGroupInputDict)) + await client.delete_index(application_id=_, index_id=_) + await client.delete_index(**_request(DeleteIndexInputDict)) + await client.delete_index(_request(DeleteIndexInput)) + await client.delete_index(_request(DeleteIndexInputDict)) + await client.delete_plugin(application_id=_, plugin_id=_) + await client.delete_plugin(**_request(DeletePluginInputDict)) + await client.delete_plugin(_request(DeletePluginInput)) + await client.delete_plugin(_request(DeletePluginInputDict)) + await client.delete_retriever(application_id=_, retriever_id=_) + await client.delete_retriever(**_request(DeleteRetrieverInputDict)) + await client.delete_retriever(_request(DeleteRetrieverInput)) + await client.delete_retriever(_request(DeleteRetrieverInputDict)) + await client.delete_user(application_id=_, user_id=_) + await client.delete_user(**_request(DeleteUserInputDict)) + await client.delete_user(_request(DeleteUserInput)) + await client.delete_user(_request(DeleteUserInputDict)) + await client.delete_web_experience(application_id=_, web_experience_id=_) + await client.delete_web_experience(**_request(DeleteWebExperienceInputDict)) + await client.delete_web_experience(_request(DeleteWebExperienceInput)) + await client.delete_web_experience(_request(DeleteWebExperienceInputDict)) + await client.disassociate_permission(application_id=_, statement_id=_) + await client.disassociate_permission(**_request(DisassociatePermissionInputDict)) + await client.disassociate_permission(_request(DisassociatePermissionInput)) + await client.disassociate_permission(_request(DisassociatePermissionInputDict)) + await client.get_application(application_id=_) + await client.get_application(**_request(GetApplicationInputDict)) + await client.get_application(_request(GetApplicationInput)) + await client.get_application(_request(GetApplicationInputDict)) + await client.get_chat_controls_configuration(application_id=_) + await client.get_chat_controls_configuration( + **_request(GetChatControlsConfigurationInputDict) + ) + await client.get_chat_controls_configuration( + _request(GetChatControlsConfigurationInput) + ) + await client.get_chat_controls_configuration( + _request(GetChatControlsConfigurationInputDict) + ) + await client.get_chat_response_configuration( + application_id=_, chat_response_configuration_id=_ + ) + await client.get_chat_response_configuration( + **_request(GetChatResponseConfigurationInputDict) + ) + await client.get_chat_response_configuration( + _request(GetChatResponseConfigurationInput) + ) + await client.get_chat_response_configuration( + _request(GetChatResponseConfigurationInputDict) + ) + await client.get_data_accessor(application_id=_, data_accessor_id=_) + await client.get_data_accessor(**_request(GetDataAccessorInputDict)) + await client.get_data_accessor(_request(GetDataAccessorInput)) + await client.get_data_accessor(_request(GetDataAccessorInputDict)) + await client.get_data_source(application_id=_, index_id=_, data_source_id=_) + await client.get_data_source(**_request(GetDataSourceInputDict)) + await client.get_data_source(_request(GetDataSourceInput)) + await client.get_data_source(_request(GetDataSourceInputDict)) + await client.get_document_content(application_id=_, index_id=_, document_id=_) + await client.get_document_content(**_request(GetDocumentContentInputDict)) + await client.get_document_content(_request(GetDocumentContentInput)) + await client.get_document_content(_request(GetDocumentContentInputDict)) + await client.get_group(application_id=_, index_id=_, group_name=_) + await client.get_group(**_request(GetGroupInputDict)) + await client.get_group(_request(GetGroupInput)) + await client.get_group(_request(GetGroupInputDict)) + await client.get_index(application_id=_, index_id=_) + await client.get_index(**_request(GetIndexInputDict)) + await client.get_index(_request(GetIndexInput)) + await client.get_index(_request(GetIndexInputDict)) + await client.get_media( + application_id=_, conversation_id=_, message_id=_, media_id=_ + ) + await client.get_media(**_request(GetMediaInputDict)) + await client.get_media(_request(GetMediaInput)) + await client.get_media(_request(GetMediaInputDict)) + await client.get_plugin(application_id=_, plugin_id=_) + await client.get_plugin(**_request(GetPluginInputDict)) + await client.get_plugin(_request(GetPluginInput)) + await client.get_plugin(_request(GetPluginInputDict)) + await client.get_policy(application_id=_) + await client.get_policy(**_request(GetPolicyInputDict)) + await client.get_policy(_request(GetPolicyInput)) + await client.get_policy(_request(GetPolicyInputDict)) + await client.get_retriever(application_id=_, retriever_id=_) + await client.get_retriever(**_request(GetRetrieverInputDict)) + await client.get_retriever(_request(GetRetrieverInput)) + await client.get_retriever(_request(GetRetrieverInputDict)) + await client.get_user(application_id=_, user_id=_) + await client.get_user(**_request(GetUserInputDict)) + await client.get_user(_request(GetUserInput)) + await client.get_user(_request(GetUserInputDict)) + await client.get_web_experience(application_id=_, web_experience_id=_) + await client.get_web_experience(**_request(GetWebExperienceInputDict)) + await client.get_web_experience(_request(GetWebExperienceInput)) + await client.get_web_experience(_request(GetWebExperienceInputDict)) + await client.list_applications() + await client.list_applications(**_request(ListApplicationsInputDict)) + await client.list_applications(_request(ListApplicationsInput)) + await client.list_applications(_request(ListApplicationsInputDict)) + await client.list_attachments(application_id=_) + await client.list_attachments(**_request(ListAttachmentsInputDict)) + await client.list_attachments(_request(ListAttachmentsInput)) + await client.list_attachments(_request(ListAttachmentsInputDict)) + await client.list_chat_response_configurations(application_id=_) + await client.list_chat_response_configurations( + **_request(ListChatResponseConfigurationsInputDict) + ) + await client.list_chat_response_configurations( + _request(ListChatResponseConfigurationsInput) + ) + await client.list_chat_response_configurations( + _request(ListChatResponseConfigurationsInputDict) + ) + await client.list_conversations(application_id=_) + await client.list_conversations(**_request(ListConversationsInputDict)) + await client.list_conversations(_request(ListConversationsInput)) + await client.list_conversations(_request(ListConversationsInputDict)) + await client.list_data_accessors(application_id=_) + await client.list_data_accessors(**_request(ListDataAccessorsInputDict)) + await client.list_data_accessors(_request(ListDataAccessorsInput)) + await client.list_data_accessors(_request(ListDataAccessorsInputDict)) + await client.list_data_sources(application_id=_, index_id=_) + await client.list_data_sources(**_request(ListDataSourcesInputDict)) + await client.list_data_sources(_request(ListDataSourcesInput)) + await client.list_data_sources(_request(ListDataSourcesInputDict)) + await client.list_data_source_sync_jobs( + data_source_id=_, application_id=_, index_id=_ + ) + await client.list_data_source_sync_jobs(**_request(ListDataSourceSyncJobsInputDict)) + await client.list_data_source_sync_jobs(_request(ListDataSourceSyncJobsInput)) + await client.list_data_source_sync_jobs(_request(ListDataSourceSyncJobsInputDict)) + await client.list_documents(application_id=_, index_id=_) + await client.list_documents(**_request(ListDocumentsInputDict)) + await client.list_documents(_request(ListDocumentsInput)) + await client.list_documents(_request(ListDocumentsInputDict)) + await client.list_groups(application_id=_, index_id=_, updated_earlier_than=_) + await client.list_groups(**_request(ListGroupsInputDict)) + await client.list_groups(_request(ListGroupsInput)) + await client.list_groups(_request(ListGroupsInputDict)) + await client.list_indices(application_id=_) + await client.list_indices(**_request(ListIndicesInputDict)) + await client.list_indices(_request(ListIndicesInput)) + await client.list_indices(_request(ListIndicesInputDict)) + await client.list_messages(conversation_id=_, application_id=_) + await client.list_messages(**_request(ListMessagesInputDict)) + await client.list_messages(_request(ListMessagesInput)) + await client.list_messages(_request(ListMessagesInputDict)) + await client.list_plugin_actions(application_id=_, plugin_id=_) + await client.list_plugin_actions(**_request(ListPluginActionsInputDict)) + await client.list_plugin_actions(_request(ListPluginActionsInput)) + await client.list_plugin_actions(_request(ListPluginActionsInputDict)) + await client.list_plugins(application_id=_) + await client.list_plugins(**_request(ListPluginsInputDict)) + await client.list_plugins(_request(ListPluginsInput)) + await client.list_plugins(_request(ListPluginsInputDict)) + await client.list_plugin_type_actions(plugin_type=_) + await client.list_plugin_type_actions(**_request(ListPluginTypeActionsInputDict)) + await client.list_plugin_type_actions(_request(ListPluginTypeActionsInput)) + await client.list_plugin_type_actions(_request(ListPluginTypeActionsInputDict)) + await client.list_plugin_type_metadata() + await client.list_plugin_type_metadata(**_request(ListPluginTypeMetadataInputDict)) + await client.list_plugin_type_metadata(_request(ListPluginTypeMetadataInput)) + await client.list_plugin_type_metadata(_request(ListPluginTypeMetadataInputDict)) + await client.list_retrievers(application_id=_) + await client.list_retrievers(**_request(ListRetrieversInputDict)) + await client.list_retrievers(_request(ListRetrieversInput)) + await client.list_retrievers(_request(ListRetrieversInputDict)) + await client.list_subscriptions(application_id=_) + await client.list_subscriptions(**_request(ListSubscriptionsInputDict)) + await client.list_subscriptions(_request(ListSubscriptionsInput)) + await client.list_subscriptions(_request(ListSubscriptionsInputDict)) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.list_web_experiences(application_id=_) + await client.list_web_experiences(**_request(ListWebExperiencesInputDict)) + await client.list_web_experiences(_request(ListWebExperiencesInput)) + await client.list_web_experiences(_request(ListWebExperiencesInputDict)) + await client.put_feedback(application_id=_, conversation_id=_, message_id=_) + await client.put_feedback(**_request(PutFeedbackInputDict)) + await client.put_feedback(_request(PutFeedbackInput)) + await client.put_feedback(_request(PutFeedbackInputDict)) + await client.put_group( + application_id=_, index_id=_, group_name=_, type=_, group_members=_ + ) + await client.put_group(**_request(PutGroupInputDict)) + await client.put_group(_request(PutGroupInput)) + await client.put_group(_request(PutGroupInputDict)) + await client.search_relevant_content( + application_id=_, query_text=_, content_source=_ + ) + await client.search_relevant_content(**_request(SearchRelevantContentInputDict)) + await client.search_relevant_content(_request(SearchRelevantContentInput)) + await client.search_relevant_content(_request(SearchRelevantContentInputDict)) + await client.start_data_source_sync_job( + data_source_id=_, application_id=_, index_id=_ + ) + await client.start_data_source_sync_job(**_request(StartDataSourceSyncJobInputDict)) + await client.start_data_source_sync_job(_request(StartDataSourceSyncJobInput)) + await client.start_data_source_sync_job(_request(StartDataSourceSyncJobInputDict)) + await client.stop_data_source_sync_job( + data_source_id=_, application_id=_, index_id=_ + ) + await client.stop_data_source_sync_job(**_request(StopDataSourceSyncJobInputDict)) + await client.stop_data_source_sync_job(_request(StopDataSourceSyncJobInput)) + await client.stop_data_source_sync_job(_request(StopDataSourceSyncJobInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_application(application_id=_) + await client.update_application(**_request(UpdateApplicationInputDict)) + await client.update_application(_request(UpdateApplicationInput)) + await client.update_application(_request(UpdateApplicationInputDict)) + await client.update_chat_controls_configuration(application_id=_) + await client.update_chat_controls_configuration( + **_request(UpdateChatControlsConfigurationInputDict) + ) + await client.update_chat_controls_configuration( + _request(UpdateChatControlsConfigurationInput) + ) + await client.update_chat_controls_configuration( + _request(UpdateChatControlsConfigurationInputDict) + ) + await client.update_chat_response_configuration( + application_id=_, chat_response_configuration_id=_, response_configurations=_ + ) + await client.update_chat_response_configuration( + **_request(UpdateChatResponseConfigurationInputDict) + ) + await client.update_chat_response_configuration( + _request(UpdateChatResponseConfigurationInput) + ) + await client.update_chat_response_configuration( + _request(UpdateChatResponseConfigurationInputDict) + ) + await client.update_data_accessor( + application_id=_, data_accessor_id=_, action_configurations=_ + ) + await client.update_data_accessor(**_request(UpdateDataAccessorInputDict)) + await client.update_data_accessor(_request(UpdateDataAccessorInput)) + await client.update_data_accessor(_request(UpdateDataAccessorInputDict)) + await client.update_data_source(application_id=_, index_id=_, data_source_id=_) + await client.update_data_source(**_request(UpdateDataSourceInputDict)) + await client.update_data_source(_request(UpdateDataSourceInput)) + await client.update_data_source(_request(UpdateDataSourceInputDict)) + await client.update_index(application_id=_, index_id=_) + await client.update_index(**_request(UpdateIndexInputDict)) + await client.update_index(_request(UpdateIndexInput)) + await client.update_index(_request(UpdateIndexInputDict)) + await client.update_plugin(application_id=_, plugin_id=_) + await client.update_plugin(**_request(UpdatePluginInputDict)) + await client.update_plugin(_request(UpdatePluginInput)) + await client.update_plugin(_request(UpdatePluginInputDict)) + await client.update_retriever(application_id=_, retriever_id=_) + await client.update_retriever(**_request(UpdateRetrieverInputDict)) + await client.update_retriever(_request(UpdateRetrieverInput)) + await client.update_retriever(_request(UpdateRetrieverInputDict)) + await client.update_subscription(application_id=_, subscription_id=_, type=_) + await client.update_subscription(**_request(UpdateSubscriptionInputDict)) + await client.update_subscription(_request(UpdateSubscriptionInput)) + await client.update_subscription(_request(UpdateSubscriptionInputDict)) + await client.update_user(application_id=_, user_id=_) + await client.update_user(**_request(UpdateUserInputDict)) + await client.update_user(_request(UpdateUserInput)) + await client.update_user(_request(UpdateUserInputDict)) + await client.update_web_experience(application_id=_, web_experience_id=_) + await client.update_web_experience(**_request(UpdateWebExperienceInputDict)) + await client.update_web_experience(_request(UpdateWebExperienceInput)) + await client.update_web_experience(_request(UpdateWebExperienceInputDict)) + + +def check_sync_calls(client: QBusinessClient) -> None: + pass + client.associate_permission( + application_id=_, statement_id=_, actions=_, principal=_ + ) + client.associate_permission(**_request(AssociatePermissionInputDict)) + client.associate_permission(_request(AssociatePermissionInput)) + client.associate_permission(_request(AssociatePermissionInputDict)) + client.batch_delete_document(application_id=_, index_id=_, documents=_) + client.batch_delete_document(**_request(BatchDeleteDocumentInputDict)) + client.batch_delete_document(_request(BatchDeleteDocumentInput)) + client.batch_delete_document(_request(BatchDeleteDocumentInputDict)) + client.batch_put_document(application_id=_, index_id=_, documents=_) + client.batch_put_document(**_request(BatchPutDocumentInputDict)) + client.batch_put_document(_request(BatchPutDocumentInput)) + client.batch_put_document(_request(BatchPutDocumentInputDict)) + client.cancel_subscription(application_id=_, subscription_id=_) + client.cancel_subscription(**_request(CancelSubscriptionInputDict)) + client.cancel_subscription(_request(CancelSubscriptionInput)) + client.cancel_subscription(_request(CancelSubscriptionInputDict)) + client.chat_sync(application_id=_) + client.chat_sync(**_request(ChatSyncInputDict)) + client.chat_sync(_request(ChatSyncInput)) + client.chat_sync(_request(ChatSyncInputDict)) + client.check_document_access(application_id=_, index_id=_, user_id=_, document_id=_) + client.check_document_access(**_request(CheckDocumentAccessInputDict)) + client.check_document_access(_request(CheckDocumentAccessInput)) + client.check_document_access(_request(CheckDocumentAccessInputDict)) + client.create_anonymous_web_experience_url(application_id=_, web_experience_id=_) + client.create_anonymous_web_experience_url( + **_request(CreateAnonymousWebExperienceUrlInputDict) + ) + client.create_anonymous_web_experience_url( + _request(CreateAnonymousWebExperienceUrlInput) + ) + client.create_anonymous_web_experience_url( + _request(CreateAnonymousWebExperienceUrlInputDict) + ) + client.create_application(display_name=_) + client.create_application(**_request(CreateApplicationInputDict)) + client.create_application(_request(CreateApplicationInput)) + client.create_application(_request(CreateApplicationInputDict)) + client.create_chat_response_configuration( + application_id=_, display_name=_, response_configurations=_ + ) + client.create_chat_response_configuration( + **_request(CreateChatResponseConfigurationInputDict) + ) + client.create_chat_response_configuration( + _request(CreateChatResponseConfigurationInput) + ) + client.create_chat_response_configuration( + _request(CreateChatResponseConfigurationInputDict) + ) + client.create_data_accessor( + application_id=_, principal=_, action_configurations=_, display_name=_ + ) + client.create_data_accessor(**_request(CreateDataAccessorInputDict)) + client.create_data_accessor(_request(CreateDataAccessorInput)) + client.create_data_accessor(_request(CreateDataAccessorInputDict)) + client.create_data_source( + application_id=_, index_id=_, display_name=_, configuration=_ + ) + client.create_data_source(**_request(CreateDataSourceInputDict)) + client.create_data_source(_request(CreateDataSourceInput)) + client.create_data_source(_request(CreateDataSourceInputDict)) + client.create_index(application_id=_, display_name=_) + client.create_index(**_request(CreateIndexInputDict)) + client.create_index(_request(CreateIndexInput)) + client.create_index(_request(CreateIndexInputDict)) + client.create_plugin(application_id=_, display_name=_, type=_, auth_configuration=_) + client.create_plugin(**_request(CreatePluginInputDict)) + client.create_plugin(_request(CreatePluginInput)) + client.create_plugin(_request(CreatePluginInputDict)) + client.create_retriever(application_id=_, type=_, display_name=_, configuration=_) + client.create_retriever(**_request(CreateRetrieverInputDict)) + client.create_retriever(_request(CreateRetrieverInput)) + client.create_retriever(_request(CreateRetrieverInputDict)) + client.create_subscription(application_id=_, principal=_, type=_) + client.create_subscription(**_request(CreateSubscriptionInputDict)) + client.create_subscription(_request(CreateSubscriptionInput)) + client.create_subscription(_request(CreateSubscriptionInputDict)) + client.create_user(application_id=_, user_id=_) + client.create_user(**_request(CreateUserInputDict)) + client.create_user(_request(CreateUserInput)) + client.create_user(_request(CreateUserInputDict)) + client.create_web_experience(application_id=_) + client.create_web_experience(**_request(CreateWebExperienceInputDict)) + client.create_web_experience(_request(CreateWebExperienceInput)) + client.create_web_experience(_request(CreateWebExperienceInputDict)) + client.delete_application(application_id=_) + client.delete_application(**_request(DeleteApplicationInputDict)) + client.delete_application(_request(DeleteApplicationInput)) + client.delete_application(_request(DeleteApplicationInputDict)) + client.delete_attachment(application_id=_, conversation_id=_, attachment_id=_) + client.delete_attachment(**_request(DeleteAttachmentInputDict)) + client.delete_attachment(_request(DeleteAttachmentInput)) + client.delete_attachment(_request(DeleteAttachmentInputDict)) + client.delete_chat_controls_configuration(application_id=_) + client.delete_chat_controls_configuration( + **_request(DeleteChatControlsConfigurationInputDict) + ) + client.delete_chat_controls_configuration( + _request(DeleteChatControlsConfigurationInput) + ) + client.delete_chat_controls_configuration( + _request(DeleteChatControlsConfigurationInputDict) + ) + client.delete_chat_response_configuration( + application_id=_, chat_response_configuration_id=_ + ) + client.delete_chat_response_configuration( + **_request(DeleteChatResponseConfigurationInputDict) + ) + client.delete_chat_response_configuration( + _request(DeleteChatResponseConfigurationInput) + ) + client.delete_chat_response_configuration( + _request(DeleteChatResponseConfigurationInputDict) + ) + client.delete_conversation(conversation_id=_, application_id=_) + client.delete_conversation(**_request(DeleteConversationInputDict)) + client.delete_conversation(_request(DeleteConversationInput)) + client.delete_conversation(_request(DeleteConversationInputDict)) + client.delete_data_accessor(application_id=_, data_accessor_id=_) + client.delete_data_accessor(**_request(DeleteDataAccessorInputDict)) + client.delete_data_accessor(_request(DeleteDataAccessorInput)) + client.delete_data_accessor(_request(DeleteDataAccessorInputDict)) + client.delete_data_source(application_id=_, index_id=_, data_source_id=_) + client.delete_data_source(**_request(DeleteDataSourceInputDict)) + client.delete_data_source(_request(DeleteDataSourceInput)) + client.delete_data_source(_request(DeleteDataSourceInputDict)) + client.delete_group(application_id=_, index_id=_, group_name=_) + client.delete_group(**_request(DeleteGroupInputDict)) + client.delete_group(_request(DeleteGroupInput)) + client.delete_group(_request(DeleteGroupInputDict)) + client.delete_index(application_id=_, index_id=_) + client.delete_index(**_request(DeleteIndexInputDict)) + client.delete_index(_request(DeleteIndexInput)) + client.delete_index(_request(DeleteIndexInputDict)) + client.delete_plugin(application_id=_, plugin_id=_) + client.delete_plugin(**_request(DeletePluginInputDict)) + client.delete_plugin(_request(DeletePluginInput)) + client.delete_plugin(_request(DeletePluginInputDict)) + client.delete_retriever(application_id=_, retriever_id=_) + client.delete_retriever(**_request(DeleteRetrieverInputDict)) + client.delete_retriever(_request(DeleteRetrieverInput)) + client.delete_retriever(_request(DeleteRetrieverInputDict)) + client.delete_user(application_id=_, user_id=_) + client.delete_user(**_request(DeleteUserInputDict)) + client.delete_user(_request(DeleteUserInput)) + client.delete_user(_request(DeleteUserInputDict)) + client.delete_web_experience(application_id=_, web_experience_id=_) + client.delete_web_experience(**_request(DeleteWebExperienceInputDict)) + client.delete_web_experience(_request(DeleteWebExperienceInput)) + client.delete_web_experience(_request(DeleteWebExperienceInputDict)) + client.disassociate_permission(application_id=_, statement_id=_) + client.disassociate_permission(**_request(DisassociatePermissionInputDict)) + client.disassociate_permission(_request(DisassociatePermissionInput)) + client.disassociate_permission(_request(DisassociatePermissionInputDict)) + client.get_application(application_id=_) + client.get_application(**_request(GetApplicationInputDict)) + client.get_application(_request(GetApplicationInput)) + client.get_application(_request(GetApplicationInputDict)) + client.get_chat_controls_configuration(application_id=_) + client.get_chat_controls_configuration( + **_request(GetChatControlsConfigurationInputDict) + ) + client.get_chat_controls_configuration(_request(GetChatControlsConfigurationInput)) + client.get_chat_controls_configuration( + _request(GetChatControlsConfigurationInputDict) + ) + client.get_chat_response_configuration( + application_id=_, chat_response_configuration_id=_ + ) + client.get_chat_response_configuration( + **_request(GetChatResponseConfigurationInputDict) + ) + client.get_chat_response_configuration(_request(GetChatResponseConfigurationInput)) + client.get_chat_response_configuration( + _request(GetChatResponseConfigurationInputDict) + ) + client.get_data_accessor(application_id=_, data_accessor_id=_) + client.get_data_accessor(**_request(GetDataAccessorInputDict)) + client.get_data_accessor(_request(GetDataAccessorInput)) + client.get_data_accessor(_request(GetDataAccessorInputDict)) + client.get_data_source(application_id=_, index_id=_, data_source_id=_) + client.get_data_source(**_request(GetDataSourceInputDict)) + client.get_data_source(_request(GetDataSourceInput)) + client.get_data_source(_request(GetDataSourceInputDict)) + client.get_document_content(application_id=_, index_id=_, document_id=_) + client.get_document_content(**_request(GetDocumentContentInputDict)) + client.get_document_content(_request(GetDocumentContentInput)) + client.get_document_content(_request(GetDocumentContentInputDict)) + client.get_group(application_id=_, index_id=_, group_name=_) + client.get_group(**_request(GetGroupInputDict)) + client.get_group(_request(GetGroupInput)) + client.get_group(_request(GetGroupInputDict)) + client.get_index(application_id=_, index_id=_) + client.get_index(**_request(GetIndexInputDict)) + client.get_index(_request(GetIndexInput)) + client.get_index(_request(GetIndexInputDict)) + client.get_media(application_id=_, conversation_id=_, message_id=_, media_id=_) + client.get_media(**_request(GetMediaInputDict)) + client.get_media(_request(GetMediaInput)) + client.get_media(_request(GetMediaInputDict)) + client.get_plugin(application_id=_, plugin_id=_) + client.get_plugin(**_request(GetPluginInputDict)) + client.get_plugin(_request(GetPluginInput)) + client.get_plugin(_request(GetPluginInputDict)) + client.get_policy(application_id=_) + client.get_policy(**_request(GetPolicyInputDict)) + client.get_policy(_request(GetPolicyInput)) + client.get_policy(_request(GetPolicyInputDict)) + client.get_retriever(application_id=_, retriever_id=_) + client.get_retriever(**_request(GetRetrieverInputDict)) + client.get_retriever(_request(GetRetrieverInput)) + client.get_retriever(_request(GetRetrieverInputDict)) + client.get_user(application_id=_, user_id=_) + client.get_user(**_request(GetUserInputDict)) + client.get_user(_request(GetUserInput)) + client.get_user(_request(GetUserInputDict)) + client.get_web_experience(application_id=_, web_experience_id=_) + client.get_web_experience(**_request(GetWebExperienceInputDict)) + client.get_web_experience(_request(GetWebExperienceInput)) + client.get_web_experience(_request(GetWebExperienceInputDict)) + client.list_applications() + client.list_applications(**_request(ListApplicationsInputDict)) + client.list_applications(_request(ListApplicationsInput)) + client.list_applications(_request(ListApplicationsInputDict)) + client.list_attachments(application_id=_) + client.list_attachments(**_request(ListAttachmentsInputDict)) + client.list_attachments(_request(ListAttachmentsInput)) + client.list_attachments(_request(ListAttachmentsInputDict)) + client.list_chat_response_configurations(application_id=_) + client.list_chat_response_configurations( + **_request(ListChatResponseConfigurationsInputDict) + ) + client.list_chat_response_configurations( + _request(ListChatResponseConfigurationsInput) + ) + client.list_chat_response_configurations( + _request(ListChatResponseConfigurationsInputDict) + ) + client.list_conversations(application_id=_) + client.list_conversations(**_request(ListConversationsInputDict)) + client.list_conversations(_request(ListConversationsInput)) + client.list_conversations(_request(ListConversationsInputDict)) + client.list_data_accessors(application_id=_) + client.list_data_accessors(**_request(ListDataAccessorsInputDict)) + client.list_data_accessors(_request(ListDataAccessorsInput)) + client.list_data_accessors(_request(ListDataAccessorsInputDict)) + client.list_data_sources(application_id=_, index_id=_) + client.list_data_sources(**_request(ListDataSourcesInputDict)) + client.list_data_sources(_request(ListDataSourcesInput)) + client.list_data_sources(_request(ListDataSourcesInputDict)) + client.list_data_source_sync_jobs(data_source_id=_, application_id=_, index_id=_) + client.list_data_source_sync_jobs(**_request(ListDataSourceSyncJobsInputDict)) + client.list_data_source_sync_jobs(_request(ListDataSourceSyncJobsInput)) + client.list_data_source_sync_jobs(_request(ListDataSourceSyncJobsInputDict)) + client.list_documents(application_id=_, index_id=_) + client.list_documents(**_request(ListDocumentsInputDict)) + client.list_documents(_request(ListDocumentsInput)) + client.list_documents(_request(ListDocumentsInputDict)) + client.list_groups(application_id=_, index_id=_, updated_earlier_than=_) + client.list_groups(**_request(ListGroupsInputDict)) + client.list_groups(_request(ListGroupsInput)) + client.list_groups(_request(ListGroupsInputDict)) + client.list_indices(application_id=_) + client.list_indices(**_request(ListIndicesInputDict)) + client.list_indices(_request(ListIndicesInput)) + client.list_indices(_request(ListIndicesInputDict)) + client.list_messages(conversation_id=_, application_id=_) + client.list_messages(**_request(ListMessagesInputDict)) + client.list_messages(_request(ListMessagesInput)) + client.list_messages(_request(ListMessagesInputDict)) + client.list_plugin_actions(application_id=_, plugin_id=_) + client.list_plugin_actions(**_request(ListPluginActionsInputDict)) + client.list_plugin_actions(_request(ListPluginActionsInput)) + client.list_plugin_actions(_request(ListPluginActionsInputDict)) + client.list_plugins(application_id=_) + client.list_plugins(**_request(ListPluginsInputDict)) + client.list_plugins(_request(ListPluginsInput)) + client.list_plugins(_request(ListPluginsInputDict)) + client.list_plugin_type_actions(plugin_type=_) + client.list_plugin_type_actions(**_request(ListPluginTypeActionsInputDict)) + client.list_plugin_type_actions(_request(ListPluginTypeActionsInput)) + client.list_plugin_type_actions(_request(ListPluginTypeActionsInputDict)) + client.list_plugin_type_metadata() + client.list_plugin_type_metadata(**_request(ListPluginTypeMetadataInputDict)) + client.list_plugin_type_metadata(_request(ListPluginTypeMetadataInput)) + client.list_plugin_type_metadata(_request(ListPluginTypeMetadataInputDict)) + client.list_retrievers(application_id=_) + client.list_retrievers(**_request(ListRetrieversInputDict)) + client.list_retrievers(_request(ListRetrieversInput)) + client.list_retrievers(_request(ListRetrieversInputDict)) + client.list_subscriptions(application_id=_) + client.list_subscriptions(**_request(ListSubscriptionsInputDict)) + client.list_subscriptions(_request(ListSubscriptionsInput)) + client.list_subscriptions(_request(ListSubscriptionsInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.list_web_experiences(application_id=_) + client.list_web_experiences(**_request(ListWebExperiencesInputDict)) + client.list_web_experiences(_request(ListWebExperiencesInput)) + client.list_web_experiences(_request(ListWebExperiencesInputDict)) + client.put_feedback(application_id=_, conversation_id=_, message_id=_) + client.put_feedback(**_request(PutFeedbackInputDict)) + client.put_feedback(_request(PutFeedbackInput)) + client.put_feedback(_request(PutFeedbackInputDict)) + client.put_group( + application_id=_, index_id=_, group_name=_, type=_, group_members=_ + ) + client.put_group(**_request(PutGroupInputDict)) + client.put_group(_request(PutGroupInput)) + client.put_group(_request(PutGroupInputDict)) + client.search_relevant_content(application_id=_, query_text=_, content_source=_) + client.search_relevant_content(**_request(SearchRelevantContentInputDict)) + client.search_relevant_content(_request(SearchRelevantContentInput)) + client.search_relevant_content(_request(SearchRelevantContentInputDict)) + client.start_data_source_sync_job(data_source_id=_, application_id=_, index_id=_) + client.start_data_source_sync_job(**_request(StartDataSourceSyncJobInputDict)) + client.start_data_source_sync_job(_request(StartDataSourceSyncJobInput)) + client.start_data_source_sync_job(_request(StartDataSourceSyncJobInputDict)) + client.stop_data_source_sync_job(data_source_id=_, application_id=_, index_id=_) + client.stop_data_source_sync_job(**_request(StopDataSourceSyncJobInputDict)) + client.stop_data_source_sync_job(_request(StopDataSourceSyncJobInput)) + client.stop_data_source_sync_job(_request(StopDataSourceSyncJobInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_application(application_id=_) + client.update_application(**_request(UpdateApplicationInputDict)) + client.update_application(_request(UpdateApplicationInput)) + client.update_application(_request(UpdateApplicationInputDict)) + client.update_chat_controls_configuration(application_id=_) + client.update_chat_controls_configuration( + **_request(UpdateChatControlsConfigurationInputDict) + ) + client.update_chat_controls_configuration( + _request(UpdateChatControlsConfigurationInput) + ) + client.update_chat_controls_configuration( + _request(UpdateChatControlsConfigurationInputDict) + ) + client.update_chat_response_configuration( + application_id=_, chat_response_configuration_id=_, response_configurations=_ + ) + client.update_chat_response_configuration( + **_request(UpdateChatResponseConfigurationInputDict) + ) + client.update_chat_response_configuration( + _request(UpdateChatResponseConfigurationInput) + ) + client.update_chat_response_configuration( + _request(UpdateChatResponseConfigurationInputDict) + ) + client.update_data_accessor( + application_id=_, data_accessor_id=_, action_configurations=_ + ) + client.update_data_accessor(**_request(UpdateDataAccessorInputDict)) + client.update_data_accessor(_request(UpdateDataAccessorInput)) + client.update_data_accessor(_request(UpdateDataAccessorInputDict)) + client.update_data_source(application_id=_, index_id=_, data_source_id=_) + client.update_data_source(**_request(UpdateDataSourceInputDict)) + client.update_data_source(_request(UpdateDataSourceInput)) + client.update_data_source(_request(UpdateDataSourceInputDict)) + client.update_index(application_id=_, index_id=_) + client.update_index(**_request(UpdateIndexInputDict)) + client.update_index(_request(UpdateIndexInput)) + client.update_index(_request(UpdateIndexInputDict)) + client.update_plugin(application_id=_, plugin_id=_) + client.update_plugin(**_request(UpdatePluginInputDict)) + client.update_plugin(_request(UpdatePluginInput)) + client.update_plugin(_request(UpdatePluginInputDict)) + client.update_retriever(application_id=_, retriever_id=_) + client.update_retriever(**_request(UpdateRetrieverInputDict)) + client.update_retriever(_request(UpdateRetrieverInput)) + client.update_retriever(_request(UpdateRetrieverInputDict)) + client.update_subscription(application_id=_, subscription_id=_, type=_) + client.update_subscription(**_request(UpdateSubscriptionInputDict)) + client.update_subscription(_request(UpdateSubscriptionInput)) + client.update_subscription(_request(UpdateSubscriptionInputDict)) + client.update_user(application_id=_, user_id=_) + client.update_user(**_request(UpdateUserInputDict)) + client.update_user(_request(UpdateUserInput)) + client.update_user(_request(UpdateUserInputDict)) + client.update_web_experience(application_id=_, web_experience_id=_) + client.update_web_experience(**_request(UpdateWebExperienceInputDict)) + client.update_web_experience(_request(UpdateWebExperienceInput)) + client.update_web_experience(_request(UpdateWebExperienceInputDict)) diff --git a/clients/aws-sdk-qbusiness/tests/integration/conftest.py b/clients/aws-sdk-qbusiness/tests/integration/conftest.py index 7678348bc..b66e50d61 100644 --- a/clients/aws-sdk-qbusiness/tests/integration/conftest.py +++ b/clients/aws-sdk-qbusiness/tests/integration/conftest.py @@ -16,13 +16,6 @@ from aws_sdk_qbusiness.aio.client import AsyncQBusinessClient from aws_sdk_qbusiness.models import ( ApplicationStatus, - CreateApplicationInput, - CreateIndexInput, - CreateRetrieverInput, - DeleteApplicationInput, - GetApplicationInput, - GetIndexInput, - GetRetrieverInput, IndexStatus, NativeIndexConfiguration, RetrieverConfigurationNativeIndexConfiguration, @@ -58,9 +51,7 @@ async def _wait_for_application_active( """ deadline = asyncio.get_running_loop().time() + _POLL_TIMEOUT_SECONDS while asyncio.get_running_loop().time() < deadline: - response = await client.get_application( - input=GetApplicationInput(application_id=application_id) - ) + response = await client.get_application(application_id=application_id) if response.status == ApplicationStatus.ACTIVE: return if response.status in {ApplicationStatus.FAILED, ApplicationStatus.DELETING}: @@ -84,7 +75,7 @@ async def _wait_for_index_active( deadline = asyncio.get_running_loop().time() + _POLL_TIMEOUT_SECONDS while asyncio.get_running_loop().time() < deadline: response = await client.get_index( - input=GetIndexInput(application_id=application_id, index_id=index_id) + application_id=application_id, index_id=index_id ) if response.status == IndexStatus.ACTIVE: return @@ -109,9 +100,7 @@ async def _wait_for_retriever_active( deadline = asyncio.get_running_loop().time() + _POLL_TIMEOUT_SECONDS while asyncio.get_running_loop().time() < deadline: response = await client.get_retriever( - input=GetRetrieverInput( - application_id=application_id, retriever_id=retriever_id - ) + application_id=application_id, retriever_id=retriever_id ) if response.status == RetrieverStatus.ACTIVE: return @@ -143,12 +132,10 @@ async def _create_qbusiness_app( while True: try: response = await client.create_application( - input=CreateApplicationInput( - display_name=app_name, - identity_type="ANONYMOUS", - tags=_TAGS, - client_token=str(uuid.uuid4()), - ) + display_name=app_name, + identity_type="ANONYMOUS", + tags=_TAGS, + client_token=str(uuid.uuid4()), ) break except ThrottlingException: @@ -160,28 +147,24 @@ async def _create_qbusiness_app( await _wait_for_application_active(client, application_id) response = await client.create_index( - input=CreateIndexInput( - application_id=application_id, - display_name=index_name, - tags=_TAGS, - client_token=str(uuid.uuid4()), - ) + application_id=application_id, + display_name=index_name, + tags=_TAGS, + client_token=str(uuid.uuid4()), ) index_id = response.index_id assert index_id is not None await _wait_for_index_active(client, application_id, index_id) response = await client.create_retriever( - input=CreateRetrieverInput( - application_id=application_id, - display_name=retriever_name, - type=RetrieverType.NATIVE_INDEX, - configuration=RetrieverConfigurationNativeIndexConfiguration( - value=NativeIndexConfiguration(index_id=index_id) - ), - tags=_TAGS, - client_token=str(uuid.uuid4()), - ) + application_id=application_id, + display_name=retriever_name, + type=RetrieverType.NATIVE_INDEX, + configuration=RetrieverConfigurationNativeIndexConfiguration( + value=NativeIndexConfiguration(index_id=index_id) + ), + tags=_TAGS, + client_token=str(uuid.uuid4()), ) retriever_id = response.retriever_id assert retriever_id is not None @@ -201,9 +184,7 @@ async def _delete_qbusiness_app( """ if not application_id: return - await client.delete_application( - input=DeleteApplicationInput(application_id=application_id) - ) + await client.delete_application(application_id=application_id) @pytest.fixture(scope="session") diff --git a/clients/aws-sdk-qbusiness/tests/integration/test_bidirectional_streaming.py b/clients/aws-sdk-qbusiness/tests/integration/test_bidirectional_streaming.py index a5ba08e8e..5e23b8e08 100644 --- a/clients/aws-sdk-qbusiness/tests/integration/test_bidirectional_streaming.py +++ b/clients/aws-sdk-qbusiness/tests/integration/test_bidirectional_streaming.py @@ -7,7 +7,6 @@ import uuid from aws_sdk_qbusiness.models import ( - ChatInput, ChatInputStream, ChatInputStreamConfigurationEvent, ChatInputStreamEndOfInputEvent, @@ -98,9 +97,7 @@ async def test_chat_bidirectional_streaming(qbusiness_app: str) -> None: REGION, transport=AWSCRTHTTPClient() ) as qbusiness_client: stream = await qbusiness_client.chat( - input=ChatInput( - application_id=qbusiness_app, client_token=str(uuid.uuid4()) - ) + application_id=qbusiness_app, client_token=str(uuid.uuid4()) ) results = await asyncio.gather( diff --git a/clients/aws-sdk-qbusiness/tests/integration/test_non_streaming.py b/clients/aws-sdk-qbusiness/tests/integration/test_non_streaming.py index e88d2cc3b..1cd9d2178 100644 --- a/clients/aws-sdk-qbusiness/tests/integration/test_non_streaming.py +++ b/clients/aws-sdk-qbusiness/tests/integration/test_non_streaming.py @@ -5,7 +5,7 @@ import uuid -from aws_sdk_qbusiness.models import ChatSyncInput, ChatSyncOutput +from aws_sdk_qbusiness.models import ChatSyncOutput from . import REGION, create_qbusiness_client @@ -14,11 +14,9 @@ async def test_chat_sync(qbusiness_app: str) -> None: """Test non-streaming ChatSync operation.""" async with await create_qbusiness_client(REGION) as qbusiness_client: response = await qbusiness_client.chat_sync( - input=ChatSyncInput( - application_id=qbusiness_app, - user_message="Hello", - client_token=str(uuid.uuid4()), - ) + application_id=qbusiness_app, + user_message="Hello", + client_token=str(uuid.uuid4()), ) assert isinstance(response, ChatSyncOutput) diff --git a/clients/aws-sdk-rds/pyproject.toml b/clients/aws-sdk-rds/pyproject.toml index 8ae76a404..774342663 100644 --- a/clients/aws-sdk-rds/pyproject.toml +++ b/clients/aws-sdk-rds/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[xml]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[xml]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_0.pyi b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_0.pyi index 6eee013c8..a92879f44 100644 --- a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_0.pyi +++ b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_0.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -24,27 +26,35 @@ from ..models import ( PendingCloudwatchLogsExports, PendingModifiedValues, ProcessorFeature, + ProcessorFeatureDict, RdsCustomClusterConfiguration, + RdsCustomClusterConfigurationDict, RecommendedAction, ResourcePendingMaintenanceActions, RestoreWindow, ScalingConfiguration, + ScalingConfigurationDict, ScalingConfigurationInfo, ServerlessV2FeaturesSupport, ServerlessV2ScalingConfiguration, + ServerlessV2ScalingConfigurationDict, ServerlessV2ScalingConfigurationInfo, ServiceError, Subnet, SupportedEngineLifecycle, SwitchoverDetail, Tag, + TagDict, TagSpecification, + TagSpecificationDict, TargetHealth, TargetResourceConfiguration, + TargetResourceConfigurationDict, TenantDatabase, Timezone, UpgradeTarget, UserAuthConfig, + UserAuthConfigDict, UserAuthConfigInfo, VpcSecurityGroupMembership, _SerdeShape, @@ -208,6 +218,44 @@ class AdditionalStorageVolume(_SerdeShape): Valid Values: `GP3 | IO2` """ +class AdditionalStorageVolumeDict(TypedDict, total=False): + """Dictionary form of `AdditionalStorageVolume`.""" + + volume_name: Required[str] + """ + The name of the additional storage volume. + + Valid Values: `RDSDBDATA2 | RDSDBDATA3 | RDSDBDATA4` + """ + allocated_storage: int | None + """ + The amount of storage allocated for the additional storage volume, in + gibibytes (GiB). The minimum is 20 GiB. The maximum is 65,536 GiB (64 + TiB). + """ + iops: int | None + """ + The number of I/O operations per second (IOPS) provisioned for the + additional storage volume. + """ + max_allocated_storage: int | None + """ + The upper limit in gibibytes (GiB) to which RDS can automatically scale + the storage of the additional storage volume. + """ + storage_throughput: int | None + """ + The storage throughput value for the additional storage volume, in + mebibytes per second (MiBps). This setting applies only to the General + Purpose SSD (`gp3`) storage type. + """ + storage_type: str | None + """ + The storage type for the additional storage volume. + + Valid Values: `GP3 | IO2` + """ + @dataclass(kw_only=True) class AdditionalStorageVolumeOutput(_SerdeShape): """ @@ -293,6 +341,24 @@ class AddRoleToDBClusterInput(_SerdeShape): DBEngineVersion. """ +class AddRoleToDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `AddRoleToDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """The name of the DB cluster to associate the IAM role with.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role to associate with the + Aurora DB cluster, for example + `arn:aws:iam::123456789012:role/AuroraAccessRole`. + """ + feature_name: str | None + """ + The name of the feature for the DB cluster that the IAM role is to be + associated with. For information about supported feature names, see + DBEngineVersion. + """ + @dataclass(kw_only=True) class AddRoleToDBClusterOutput(_SerdeShape): """Dataclass for AddRoleToDBClusterOutput structure.""" @@ -323,6 +389,23 @@ class AddRoleToDBInstanceInput(_SerdeShape): DBEngineVersion. """ +class AddRoleToDBInstanceInputDict(TypedDict, total=False): + """Dictionary form of `AddRoleToDBInstanceInput`.""" + + db_instance_identifier: Required[str] + """The name of the DB instance to associate the IAM role with.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role to associate with the DB + instance, for example `arn:aws:iam::123456789012:role/AccessRole`. + """ + feature_name: Required[str] + """ + The name of the feature for the DB instance that the IAM role is to be + associated with. For information about supported feature names, see + DBEngineVersion. + """ + @dataclass(kw_only=True) class AddRoleToDBInstanceOutput(_SerdeShape): """Dataclass for AddRoleToDBInstanceOutput structure.""" @@ -372,6 +455,42 @@ class AddSourceIdentifierToSubscriptionInput(_SerdeShape): supplied. """ +class AddSourceIdentifierToSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `AddSourceIdentifierToSubscriptionInput`.""" + + subscription_name: Required[str] + """ + The name of the RDS event notification subscription you want to add a + source identifier to. + """ + source_identifier: Required[str] + """ + The identifier of the event source to be added. + + Constraints: + + - If the source type is a DB instance, a `DBInstanceIdentifier` value + must be supplied. + + - If the source type is a DB cluster, a `DBClusterIdentifier` value must + be supplied. + + - If the source type is a DB parameter group, a `DBParameterGroupName` + value must be supplied. + + - If the source type is a DB security group, a `DBSecurityGroupName` + value must be supplied. + + - If the source type is a DB snapshot, a `DBSnapshotIdentifier` value + must be supplied. + + - If the source type is a DB cluster snapshot, a + `DBClusterSnapshotIdentifier` value must be supplied. + + - If the source type is an RDS Proxy, a `DBProxyName` value must be + supplied. + """ + @dataclass(kw_only=True) class AddSourceIdentifierToSubscriptionOutput(_SerdeShape): """Dataclass for AddSourceIdentifierToSubscriptionOutput structure.""" @@ -403,6 +522,19 @@ class AddTagsToResourceInput(_SerdeShape): tags: list[Tag] | None = ... """The tags to be assigned to the Amazon RDS resource.""" +class AddTagsToResourceInputDict(TypedDict, total=False): + """Dictionary form of `AddTagsToResourceInput`.""" + + resource_name: Required[str] + """ + The Amazon RDS resource that the tags are added to. This value is an + Amazon Resource Name (ARN). For information about creating an ARN, see + [Constructing an RDS Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing). + """ + tags: Required[Sequence[Tag | TagDict]] + """The tags to be assigned to the Amazon RDS resource.""" + @dataclass(kw_only=True) class AddTagsToResourceOutput(_SerdeShape): """Dataclass for AddTagsToResourceOutput structure.""" @@ -468,6 +600,54 @@ class ApplyPendingMaintenanceActionInput(_SerdeShape): requests. """ +class ApplyPendingMaintenanceActionInputDict(TypedDict, total=False): + """Dictionary form of `ApplyPendingMaintenanceActionInput`.""" + + resource_identifier: Required[str] + """ + The RDS Amazon Resource Name (ARN) of the resource that the pending + maintenance action applies to. For information about creating an ARN, + see [Constructing an RDS Amazon Resource Name + (ARN)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing). + """ + apply_action: Required[str] + """ + The pending maintenance action to apply to this resource. + + Valid Values: + + - `ca-certificate-rotation` + + - `db-upgrade` + + - `hardware-maintenance` + + - `os-upgrade` + + - `system-update` + + For more information about these actions, see [Maintenance actions for + Amazon + Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#maintenance-actions-aurora) + or [Maintenance actions for Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#maintenance-actions-rds). + """ + opt_in_type: Required[str] + """ + A value that specifies the type of opt-in request, or undoes an opt-in + request. An opt-in request of type `immediate` can't be undone. + + Valid Values: + + - `immediate` - Apply the maintenance action immediately. + + - `next-maintenance` - Apply the maintenance action during the next + maintenance window for the resource. + + - `undo-opt-in` - Cancel any existing `next-maintenance` opt-in + requests. + """ + @dataclass(kw_only=True) class ApplyPendingMaintenanceActionOutput(_SerdeShape): """Dataclass for ApplyPendingMaintenanceActionOutput structure.""" @@ -563,6 +743,37 @@ class AuthorizeDBSecurityGroupIngressInput(_SerdeShape): `EC2SecurityGroupId` must be provided. """ +class AuthorizeDBSecurityGroupIngressInputDict(TypedDict, total=False): + """Dictionary form of `AuthorizeDBSecurityGroupIngressInput`.""" + + db_security_group_name: Required[str] + """The name of the DB security group to add authorization to.""" + cidrip: str | None + """The IP range to authorize.""" + ec2_security_group_name: str | None + """ + Name of the EC2 security group to authorize. For VPC DB security groups, + `EC2SecurityGroupId` must be provided. Otherwise, + `EC2SecurityGroupOwnerId` and either `EC2SecurityGroupName` or + `EC2SecurityGroupId` must be provided. + """ + ec2_security_group_id: str | None + """ + Id of the EC2 security group to authorize. For VPC DB security groups, + `EC2SecurityGroupId` must be provided. Otherwise, + `EC2SecurityGroupOwnerId` and either `EC2SecurityGroupName` or + `EC2SecurityGroupId` must be provided. + """ + ec2_security_group_owner_id: str | None + """ + Amazon Web Services account number of the owner of the EC2 security + group specified in the `EC2SecurityGroupName` parameter. The Amazon Web + Services access key ID isn't an acceptable value. For VPC DB security + groups, `EC2SecurityGroupId` must be provided. Otherwise, + `EC2SecurityGroupOwnerId` and either `EC2SecurityGroupName` or + `EC2SecurityGroupId` must be provided. + """ + @dataclass(kw_only=True) class AuthorizeDBSecurityGroupIngressOutput(_SerdeShape): """Dataclass for AuthorizeDBSecurityGroupIngressOutput structure.""" @@ -784,6 +995,58 @@ class BacktrackDBClusterInput(_SerdeShape): time, an error occurs. """ +class BacktrackDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `BacktrackDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """ + The DB cluster identifier of the DB cluster to be backtracked. This + parameter is stored as a lowercase string. + + Constraints: + + - Must contain from 1 to 63 alphanumeric characters or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `my-cluster1` + """ + backtrack_to: Required[datetime] + """ + The timestamp of the time to backtrack the DB cluster to, specified in + ISO 8601 format. For more information about ISO 8601, see the [ISO8601 + Wikipedia page.](http://en.wikipedia.org/wiki/ISO_8601) + + Note: + If the specified time isn't a consistent time for the DB cluster, + Aurora automatically chooses the nearest possible consistent time for + the DB cluster. + + Constraints: + + - Must contain a valid ISO 8601 timestamp. + + - Can't contain a timestamp set in the future. + + Example: `2017-07-08T18:00Z` + """ + force: bool | None + """ + Specifies whether to force the DB cluster to backtrack when binary + logging is enabled. Otherwise, an error occurs when binary logging is + enabled. + """ + use_earliest_time_on_point_in_time_unavailable: bool | None + """ + Specifies whether to backtrack the DB cluster to the earliest possible + backtrack time when *BacktrackTo* is set to a timestamp earlier than the + earliest backtrack time. When this parameter is disabled and + *BacktrackTo* is set to a timestamp earlier than the earliest backtrack + time, an error occurs. + """ + @dataclass(kw_only=True) class BacktrackDBClusterOutput(_SerdeShape): """ @@ -998,6 +1261,16 @@ class CancelDBCapacityReservationInput(_SerdeShape): reservation name. """ +class CancelDBCapacityReservationInputDict(TypedDict, total=False): + """Dictionary form of `CancelDBCapacityReservationInput`.""" + + db_capacity_reservation_identifier: Required[str] + """ + The identifier or the name of the DB capacity reservation to cancel. You + can specify the identifier, which has the prefix `dbcr-`, or the + reservation name. + """ + @dataclass(kw_only=True) class CancelDBCapacityReservationOutput(_SerdeShape): """Dataclass for CancelDBCapacityReservationOutput structure.""" @@ -1019,6 +1292,12 @@ class CancelExportTaskInput(_SerdeShape): export_task_identifier: str | None = ... """The identifier of the snapshot or cluster export task to cancel.""" +class CancelExportTaskInputDict(TypedDict, total=False): + """Dictionary form of `CancelExportTaskInput`.""" + + export_task_identifier: Required[str] + """The identifier of the snapshot or cluster export task to cancel.""" + @dataclass(kw_only=True) class CancelExportTaskOutput(_SerdeShape): """ @@ -1258,6 +1537,38 @@ class CloudwatchLogsExportConfiguration(_SerdeShape): - RDS for PostgreSQL - `postgresql | upgrade` """ +class CloudwatchLogsExportConfigurationDict(TypedDict, total=False): + """Dictionary form of `CloudwatchLogsExportConfiguration`.""" + + enable_log_types: Sequence[str] | None + """ + The list of log types to enable. + + The following values are valid for each DB engine: + + - Aurora MySQL - `audit | error | general | slowquery` + + - Aurora PostgreSQL - `postgresql` + + - RDS for MySQL - `error | general | slowquery` + + - RDS for PostgreSQL - `postgresql | upgrade` + """ + disable_log_types: Sequence[str] | None + """ + The list of log types to disable. + + The following values are valid for each DB engine: + + - Aurora MySQL - `audit | error | general | slowquery` + + - Aurora PostgreSQL - `postgresql` + + - RDS for MySQL - `error | general | slowquery` + + - RDS for PostgreSQL - `postgresql | upgrade` + """ + @dataclass(kw_only=True) class ClusterPendingModifiedValues(_SerdeShape): """ @@ -1410,21 +1721,110 @@ class ConnectionPoolConfiguration(_SerdeShape): option. """ -@dataclass(kw_only=True) -class ConnectionPoolConfigurationInfo(_SerdeShape): - """ - Displays the settings that control the size and behavior of the - connection pool associated with a `DBProxyTarget`. - """ +class ConnectionPoolConfigurationDict(TypedDict, total=False): + """Dictionary form of `ConnectionPoolConfiguration`.""" - max_connections_percent: int | None = ... + max_connections_percent: int | None """ The maximum size of the connection pool for each target in a target group. The value is expressed as a percentage of the `max_connections` setting for the RDS DB instance or Aurora DB cluster used by the target group. - """ - max_idle_connections_percent: int | None = ... + + If you specify `MaxIdleConnectionsPercent`, then you must also include a + value for this parameter. + + Default: `10` for RDS for Microsoft SQL Server, and `100` for all other + engines + + Constraints: + + - Must be between 1 and 100. + """ + max_idle_connections_percent: int | None + """ + A value that controls how actively the proxy closes idle database + connections in the connection pool. The value is expressed as a + percentage of the `max_connections` setting for the RDS DB instance or + Aurora DB cluster used by the target group. With a high value, the proxy + leaves a high percentage of idle database connections open. A low value + causes the proxy to close more idle connections and return them to the + database. + + If you specify this parameter, then you must also include a value for + `MaxConnectionsPercent`. + + Default: The default value is half of the value of + `MaxConnectionsPercent`. For example, if `MaxConnectionsPercent` is 80, + then the default value of `MaxIdleConnectionsPercent` is 40. If the + value of `MaxConnectionsPercent` isn't specified, then for SQL Server, + `MaxIdleConnectionsPercent` is `5`, and for all other engines, the + default is `50`. + + Constraints: + + - Must be between 0 and the value of `MaxConnectionsPercent`. + """ + connection_borrow_timeout: int | None + """ + The number of seconds for a proxy to wait for a connection to become + available in the connection pool. This setting only applies when the + proxy has opened its maximum number of connections and all connections + are busy with client sessions. + + Default: `120` + + Constraints: + + - Must be between 0 and 300. + """ + session_pinning_filters: Sequence[str] | None + """ + Each item in the list represents a class of SQL operations that normally + cause all later statements in a session using a proxy to be pinned to + the same underlying database connection. Including an item in the list + exempts that class of SQL operations from the pinning behavior. + + Default: no session pinning filters + """ + init_query: str | None + """ + Add an initialization query, or modify the current one. You can specify + one or more SQL statements for the proxy to run when opening each new + database connection. The setting is typically used with `SET` statements + to make sure that each connection has identical settings. Make sure the + query added here is valid. This is an optional field, so you can choose + to leave it empty. For including multiple variables in a single SET + statement, use a comma separator. + + For example: `SET variable1=value1, variable2=value2` + + Default: no initialization query + + Warning: + Since you can access initialization query as part of target group + configuration, it is not protected by authentication or cryptographic + methods. Anyone with access to view or manage your proxy target group + configuration can view the initialization query. You should not add + sensitive data, such as passwords or long-lived encryption keys, to this + option. + """ + +@dataclass(kw_only=True) +class ConnectionPoolConfigurationInfo(_SerdeShape): + """ + Displays the settings that control the size and behavior of the + connection pool associated with a `DBProxyTarget`. + """ + + max_connections_percent: int | None = ... + """ + The maximum size of the connection pool for each target in a target + group. The value is expressed as a percentage of the `max_connections` + setting for the RDS DB instance or Aurora DB cluster used by the target + group. + """ + max_idle_connections_percent: int | None = ... """ Controls how actively the proxy closes idle database connections in the connection pool. The value is expressed as a percentage of the @@ -1522,6 +1922,50 @@ class CopyDBClusterParameterGroupInput(_SerdeShape): in the *Amazon Aurora User Guide*. """ +class CopyDBClusterParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `CopyDBClusterParameterGroupInput`.""" + + source_db_cluster_parameter_group_identifier: Required[str] + """ + The identifier or Amazon Resource Name (ARN) for the source DB cluster + parameter group. For information about creating an ARN, see + [Constructing an ARN for Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) + in the *Amazon Aurora User Guide*. + + Constraints: + + - Must specify a valid DB cluster parameter group. + """ + target_db_cluster_parameter_group_identifier: Required[str] + """ + The identifier for the copied DB cluster parameter group. + + Constraints: + + - Can't be null, empty, or blank + + - Must contain from 1 to 255 letters, numbers, or hyphens + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Example: `my-cluster-param-group1` + """ + target_db_cluster_parameter_group_description: Required[str] + """A description for the copied DB cluster parameter group.""" + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + @dataclass(kw_only=True) class CopyDBClusterParameterGroupOutput(_SerdeShape): """Dataclass for CopyDBClusterParameterGroupOutput structure.""" @@ -1678,104 +2122,283 @@ class CopyDBClusterSnapshotInput(_SerdeShape): in the *Amazon Aurora User Guide*. """ -@dataclass(kw_only=True) -class CopyDBClusterSnapshotOutput(_SerdeShape): - """Dataclass for CopyDBClusterSnapshotOutput structure.""" +class CopyDBClusterSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `CopyDBClusterSnapshotInput`.""" - db_cluster_snapshot: DBClusterSnapshot | None = ... + source_db_cluster_snapshot_identifier: Required[str] """ - Contains the details for an Amazon RDS DB cluster snapshot + The identifier of the DB cluster snapshot to copy. This parameter isn't + case-sensitive. - This data type is used as a response element in the - `DescribeDBClusterSnapshots` action. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + Constraints: -@dataclass(kw_only=True) -class CopyDBParameterGroupInput(_SerdeShape): - """""" + - Must specify a valid source snapshot in the \"available\" state. - source_db_parameter_group_identifier: str | None = ... - """ - The identifier or ARN for the source DB parameter group. For information - about creating an ARN, see [Constructing an ARN for Amazon - RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) - in the *Amazon RDS User Guide*. + - If the source snapshot is in the same Amazon Web Services Region as + the copy, specify a valid DB snapshot identifier. - Constraints: + - If the source snapshot is in a different Amazon Web Services Region + than the copy, specify a valid DB cluster snapshot ARN. You can also + specify an ARN of a snapshot that is in a different account and a + different Amazon Web Services Region. For more information, go to + [Copying Snapshots Across Amazon Web Services + Regions](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_CopySnapshot.html#USER_CopySnapshot.AcrossRegions) + in the *Amazon Aurora User Guide*. - - Must specify a valid DB parameter group. + Example: `my-cluster-snapshot1` """ - target_db_parameter_group_identifier: str | None = ... + target_db_cluster_snapshot_identifier: Required[str] """ - The identifier for the copied DB parameter group. + The identifier of the new DB cluster snapshot to create from the source + DB cluster snapshot. This parameter isn't case-sensitive. Constraints: - - Can't be null, empty, or blank - - - Must contain from 1 to 255 letters, numbers, or hyphens + - Must contain from 1 to 63 letters, numbers, or hyphens. - - First character must be a letter + - First character must be a letter. - - Can't end with a hyphen or contain two consecutive hyphens + - Can't end with a hyphen or contain two consecutive hyphens. - Example: `my-db-parameter-group` + Example: `my-cluster-snapshot2` """ - target_db_parameter_group_description: str | None = ... - """A description for the copied DB parameter group.""" - tags: list[Tag] | None = ... + kms_key_id: str | None """ - A list of tags. + The Amazon Web Services KMS key identifier for an encrypted DB cluster + snapshot. The Amazon Web Services KMS key identifier is the key ARN, key + ID, alias ARN, or alias name for the Amazon Web Services KMS key. - For more information, see [Tagging Amazon RDS - resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) - in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS - resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) - in the *Amazon Aurora User Guide*. - """ + If you copy an encrypted DB cluster snapshot from your Amazon Web + Services account, you can specify a value for `KmsKeyId` to encrypt the + copy with a new KMS key. If you don't specify a value for `KmsKeyId`, + then the copy of the DB cluster snapshot is encrypted with the same KMS + key as the source DB cluster snapshot. -@dataclass(kw_only=True) -class CopyDBParameterGroupOutput(_SerdeShape): - """Dataclass for CopyDBParameterGroupOutput structure.""" + If you copy an encrypted DB cluster snapshot that is shared from another + Amazon Web Services account, then you must specify a value for + `KmsKeyId`. - db_parameter_group: DBParameterGroup | None = ... - """ - Contains the details of an Amazon RDS DB parameter group. + To copy an encrypted DB cluster snapshot to another Amazon Web Services + Region, you must set `KmsKeyId` to the Amazon Web Services KMS key + identifier you want to use to encrypt the copy of the DB cluster + snapshot in the destination Amazon Web Services Region. KMS keys are + specific to the Amazon Web Services Region that they are created in, and + you can't use KMS keys from one Amazon Web Services Region in another + Amazon Web Services Region. - This data type is used as a response element in the - `DescribeDBParameterGroups` action. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + If you copy an unencrypted DB cluster snapshot and specify a value for + the `KmsKeyId` parameter, an error is returned. """ - -@dataclass(kw_only=True) -class CopyDBSnapshotInput(_SerdeShape): - """""" - - source_db_snapshot_identifier: str | None = ... + pre_signed_url: str | None """ - The identifier for the source DB snapshot. + When you are copying a DB cluster snapshot from one Amazon Web Services + GovCloud (US) Region to another, the URL that contains a Signature + Version 4 signed request for the `CopyDBClusterSnapshot` API operation + in the Amazon Web Services Region that contains the source DB cluster + snapshot to copy. Use the `PreSignedUrl` parameter when copying an + encrypted DB cluster snapshot from another Amazon Web Services Region. + Don't specify `PreSignedUrl` when copying an encrypted DB cluster + snapshot in the same Amazon Web Services Region. - If the source snapshot is in the same Amazon Web Services Region as the - copy, specify a valid DB snapshot identifier. For example, you might - specify `rds:mysql-instance1-snapshot-20130805`. + This setting applies only to Amazon Web Services GovCloud (US) Regions. + It's ignored in other Amazon Web Services Regions. - If you are copying from a shared manual DB snapshot, this parameter must - be the Amazon Resource Name (ARN) of the shared DB snapshot. + The presigned URL must be a valid request for the + `CopyDBClusterSnapshot` API operation that can run in the source Amazon + Web Services Region that contains the encrypted DB cluster snapshot to + copy. The presigned URL request must contain the following parameter + values: - If the source snapshot is in a different Amazon Web Services Region than + - `KmsKeyId` - The KMS key identifier for the KMS key to use to encrypt + the copy of the DB cluster snapshot in the destination Amazon Web + Services Region. This is the same identifier for both the + `CopyDBClusterSnapshot` operation that is called in the destination + Amazon Web Services Region, and the operation contained in the + presigned URL. + + - `DestinationRegion` - The name of the Amazon Web Services Region that + the DB cluster snapshot is to be created in. + + - `SourceDBClusterSnapshotIdentifier` - The DB cluster snapshot + identifier for the encrypted DB cluster snapshot to be copied. This + identifier must be in the Amazon Resource Name (ARN) format for the + source Amazon Web Services Region. For example, if you are copying an + encrypted DB cluster snapshot from the us-west-2 Amazon Web Services + Region, then your `SourceDBClusterSnapshotIdentifier` looks like the + following example: + `arn:aws:rds:us-west-2:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20161115`. + + To learn how to generate a Signature Version 4 signed request, see + [Authenticating Requests: Using Query Parameters (Amazon Web Services + Signature Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + and [Signature Version 4 Signing + Process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + + Note: + If you are using an Amazon Web Services SDK tool or the CLI, you can + specify `SourceRegion` (or `--source-region` for the CLI) instead of + specifying `PreSignedUrl` manually. Specifying `SourceRegion` + autogenerates a presigned URL that is a valid request for the operation + that can run in the source Amazon Web Services Region. + """ + copy_tags: bool | None + """ + Specifies whether to copy all tags from the source DB cluster snapshot + to the target DB cluster snapshot. By default, tags are not copied. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + +@dataclass(kw_only=True) +class CopyDBClusterSnapshotOutput(_SerdeShape): + """Dataclass for CopyDBClusterSnapshotOutput structure.""" + + db_cluster_snapshot: DBClusterSnapshot | None = ... + """ + Contains the details for an Amazon RDS DB cluster snapshot + + This data type is used as a response element in the + `DescribeDBClusterSnapshots` action. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CopyDBParameterGroupInput(_SerdeShape): + """""" + + source_db_parameter_group_identifier: str | None = ... + """ + The identifier or ARN for the source DB parameter group. For information + about creating an ARN, see [Constructing an ARN for Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) + in the *Amazon RDS User Guide*. + + Constraints: + + - Must specify a valid DB parameter group. + """ + target_db_parameter_group_identifier: str | None = ... + """ + The identifier for the copied DB parameter group. + + Constraints: + + - Can't be null, empty, or blank + + - Must contain from 1 to 255 letters, numbers, or hyphens + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Example: `my-db-parameter-group` + """ + target_db_parameter_group_description: str | None = ... + """A description for the copied DB parameter group.""" + tags: list[Tag] | None = ... + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + +class CopyDBParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `CopyDBParameterGroupInput`.""" + + source_db_parameter_group_identifier: Required[str] + """ + The identifier or ARN for the source DB parameter group. For information + about creating an ARN, see [Constructing an ARN for Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) + in the *Amazon RDS User Guide*. + + Constraints: + + - Must specify a valid DB parameter group. + """ + target_db_parameter_group_identifier: Required[str] + """ + The identifier for the copied DB parameter group. + + Constraints: + + - Can't be null, empty, or blank + + - Must contain from 1 to 255 letters, numbers, or hyphens + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Example: `my-db-parameter-group` + """ + target_db_parameter_group_description: Required[str] + """A description for the copied DB parameter group.""" + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + +@dataclass(kw_only=True) +class CopyDBParameterGroupOutput(_SerdeShape): + """Dataclass for CopyDBParameterGroupOutput structure.""" + + db_parameter_group: DBParameterGroup | None = ... + """ + Contains the details of an Amazon RDS DB parameter group. + + This data type is used as a response element in the + `DescribeDBParameterGroups` action. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CopyDBSnapshotInput(_SerdeShape): + """""" + + source_db_snapshot_identifier: str | None = ... + """ + The identifier for the source DB snapshot. + + If the source snapshot is in the same Amazon Web Services Region as the + copy, specify a valid DB snapshot identifier. For example, you might + specify `rds:mysql-instance1-snapshot-20130805`. + + If you are copying from a shared manual DB snapshot, this parameter must + be the Amazon Resource Name (ARN) of the shared DB snapshot. + + If the source snapshot is in a different Amazon Web Services Region than the copy, specify a valid DB snapshot ARN. You can also specify an ARN of a snapshot that is in a different account and a different Amazon Web Services Region. For example, you might specify @@ -1966,40 +2589,38 @@ class CopyDBSnapshotInput(_SerdeShape): - Can only be specified when `CopyOptionGroup` is `true` """ -@dataclass(kw_only=True) -class CopyDBSnapshotOutput(_SerdeShape): - """Dataclass for CopyDBSnapshotOutput structure.""" +class CopyDBSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `CopyDBSnapshotInput`.""" - db_snapshot: DBSnapshot | None = ... + source_db_snapshot_identifier: Required[str] """ - Contains the details of an Amazon RDS DB snapshot. + The identifier for the source DB snapshot. - This data type is used as a response element in the - `DescribeDBSnapshots` action. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + If the source snapshot is in the same Amazon Web Services Region as the + copy, specify a valid DB snapshot identifier. For example, you might + specify `rds:mysql-instance1-snapshot-20130805`. -@dataclass(kw_only=True) -class CopyOptionGroupInput(_SerdeShape): - """""" + If you are copying from a shared manual DB snapshot, this parameter must + be the Amazon Resource Name (ARN) of the shared DB snapshot. - source_option_group_identifier: str | None = ... - """ - The identifier for the source option group. + If the source snapshot is in a different Amazon Web Services Region than + the copy, specify a valid DB snapshot ARN. You can also specify an ARN + of a snapshot that is in a different account and a different Amazon Web + Services Region. For example, you might specify + `arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805`. Constraints: - - Must specify a valid option group. + - Must specify a valid source snapshot in the \"available\" state. + + Example: `rds:mydb-2012-04-02-00-01` + + Example: + `arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805` """ - target_option_group_identifier: str | None = ... + target_db_snapshot_identifier: Required[str] """ - The identifier for the copied option group. + The identifier for the copy of the snapshot. Constraints: @@ -2011,11 +2632,34 @@ class CopyOptionGroupInput(_SerdeShape): - Can't end with a hyphen or contain two consecutive hyphens - Example: `my-option-group` + Example: `my-db-snapshot` """ - target_option_group_description: str | None = ... - """The description for the copied option group.""" - tags: list[Tag] | None = ... + kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for an encrypted DB snapshot. + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you copy an encrypted DB snapshot from your Amazon Web Services + account, you can specify a value for this parameter to encrypt the copy + with a new KMS key. If you don't specify a value for this parameter, + then the copy of the DB snapshot is encrypted with the same Amazon Web + Services KMS key as the source DB snapshot. + + If you copy an encrypted DB snapshot that is shared from another Amazon + Web Services account, then you must specify a value for this parameter. + + If you specify this parameter when you copy an unencrypted snapshot, the + copy is encrypted. + + If you copy an encrypted snapshot to a different Amazon Web Services + Region, then you must specify an Amazon Web Services KMS key identifier + for the destination Amazon Web Services Region. KMS keys are specific to + the Amazon Web Services Region that they are created in, and you can't + use KMS keys from one Amazon Web Services Region in another Amazon Web + Services Region. + """ + tags: Sequence[Tag | TagDict] | None """ A list of tags. @@ -2025,9 +2669,233 @@ class CopyOptionGroupInput(_SerdeShape): resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide*. """ - -@dataclass(kw_only=True) -class CopyOptionGroupOutput(_SerdeShape): + copy_tags: bool | None + """ + Specifies whether to copy all tags from the source DB snapshot to the + target DB snapshot. By default, tags aren't copied. + """ + pre_signed_url: str | None + """ + When you are copying a snapshot from one Amazon Web Services GovCloud + (US) Region to another, the URL that contains a Signature Version 4 + signed request for the `CopyDBSnapshot` API operation in the source + Amazon Web Services Region that contains the source DB snapshot to copy. + + This setting applies only to Amazon Web Services GovCloud (US) Regions. + It's ignored in other Amazon Web Services Regions. + + You must specify this parameter when you copy an encrypted DB snapshot + from another Amazon Web Services Region by using the Amazon RDS API. + Don't specify `PreSignedUrl` when you are copying an encrypted DB + snapshot in the same Amazon Web Services Region. + + The presigned URL must be a valid request for the + `CopyDBClusterSnapshot` API operation that can run in the source Amazon + Web Services Region that contains the encrypted DB cluster snapshot to + copy. The presigned URL request must contain the following parameter + values: + + - `DestinationRegion` - The Amazon Web Services Region that the + encrypted DB snapshot is copied to. This Amazon Web Services Region is + the same one where the `CopyDBSnapshot` operation is called that + contains this presigned URL. + + For example, if you copy an encrypted DB snapshot from the us-west-2 + Amazon Web Services Region to the us-east-1 Amazon Web Services + Region, then you call the `CopyDBSnapshot` operation in the us-east-1 + Amazon Web Services Region and provide a presigned URL that contains a + call to the `CopyDBSnapshot` operation in the us-west-2 Amazon Web + Services Region. For this example, the `DestinationRegion` in the + presigned URL must be set to the us-east-1 Amazon Web Services Region. + + - `KmsKeyId` - The KMS key identifier for the KMS key to use to encrypt + the copy of the DB snapshot in the destination Amazon Web Services + Region. This is the same identifier for both the `CopyDBSnapshot` + operation that is called in the destination Amazon Web Services + Region, and the operation contained in the presigned URL. + + - `SourceDBSnapshotIdentifier` - The DB snapshot identifier for the + encrypted snapshot to be copied. This identifier must be in the Amazon + Resource Name (ARN) format for the source Amazon Web Services Region. + For example, if you are copying an encrypted DB snapshot from the + us-west-2 Amazon Web Services Region, then your + `SourceDBSnapshotIdentifier` looks like the following example: + `arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115`. + + To learn how to generate a Signature Version 4 signed request, see + [Authenticating Requests: Using Query Parameters (Amazon Web Services + Signature Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + and [Signature Version 4 Signing + Process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + + Note: + If you are using an Amazon Web Services SDK tool or the CLI, you can + specify `SourceRegion` (or `--source-region` for the CLI) instead of + specifying `PreSignedUrl` manually. Specifying `SourceRegion` + autogenerates a presigned URL that is a valid request for the operation + that can run in the source Amazon Web Services Region. + """ + option_group_name: str | None + """ + The name of an option group to associate with the copy of the snapshot. + + Specify this option if you are copying a snapshot from one Amazon Web + Services Region to another, and your DB instance uses a nondefault + option group. If your source DB instance uses Transparent Data + Encryption for Oracle or Microsoft SQL Server, you must specify this + option when copying across Amazon Web Services Regions. For more + information, see [Option group + considerations](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html#USER_CopySnapshot.Options) + in the *Amazon RDS User Guide*. + """ + target_custom_availability_zone: str | None + """ + The external custom Availability Zone (CAZ) identifier for the target + CAZ. + + Example: `rds-caz-aiqhTgQv`. + """ + snapshot_target: str | None + """ + Configures the location where RDS will store copied snapshots. + + Valid Values: + + - `local` (Dedicated Local Zone) + + - `outposts` (Amazon Web Services Outposts) + + - `region` (Amazon Web Services Region) + """ + copy_option_group: bool | None + """ + Specifies whether to copy the DB option group associated with the source + DB snapshot to the target Amazon Web Services account or Amazon Web + Services Region and associate it with the target DB snapshot. + """ + snapshot_availability_zone: str | None + """ + Specifies the name of the Availability Zone where RDS stores the DB + snapshot. This value is valid only for snapshots that RDS stores on a + Dedicated Local Zone. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + Tags to assign to the copied option group. By default, the copied option + group isn't tagged. + + Valid Values: + + - `og` - The copied option group. + + Constraints: + + - Can only be specified when `CopyOptionGroup` is `true` + """ + +@dataclass(kw_only=True) +class CopyDBSnapshotOutput(_SerdeShape): + """Dataclass for CopyDBSnapshotOutput structure.""" + + db_snapshot: DBSnapshot | None = ... + """ + Contains the details of an Amazon RDS DB snapshot. + + This data type is used as a response element in the + `DescribeDBSnapshots` action. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CopyOptionGroupInput(_SerdeShape): + """""" + + source_option_group_identifier: str | None = ... + """ + The identifier for the source option group. + + Constraints: + + - Must specify a valid option group. + """ + target_option_group_identifier: str | None = ... + """ + The identifier for the copied option group. + + Constraints: + + - Can't be null, empty, or blank + + - Must contain from 1 to 255 letters, numbers, or hyphens + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Example: `my-option-group` + """ + target_option_group_description: str | None = ... + """The description for the copied option group.""" + tags: list[Tag] | None = ... + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + +class CopyOptionGroupInputDict(TypedDict, total=False): + """Dictionary form of `CopyOptionGroupInput`.""" + + source_option_group_identifier: Required[str] + """ + The identifier for the source option group. + + Constraints: + + - Must specify a valid option group. + """ + target_option_group_identifier: Required[str] + """ + The identifier for the copied option group. + + Constraints: + + - Can't be null, empty, or blank + + - Must contain from 1 to 255 letters, numbers, or hyphens + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Example: `my-option-group` + """ + target_option_group_description: Required[str] + """The description for the copied option group.""" + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + +@dataclass(kw_only=True) +class CopyOptionGroupOutput(_SerdeShape): """Dataclass for CopyOptionGroupOutput structure.""" option_group: OptionGroup | None = ... @@ -2161,40 +3029,162 @@ class CreateBlueGreenDeploymentInput(_SerdeShape): - You can't specify the same `SourceArn` in more than one entry. """ -@dataclass(kw_only=True) -class CreateBlueGreenDeploymentOutput(_SerdeShape): - """Dataclass for CreateBlueGreenDeploymentOutput structure.""" +class CreateBlueGreenDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `CreateBlueGreenDeploymentInput`.""" - blue_green_deployment: BlueGreenDeployment | None = ... + blue_green_deployment_name: Required[str] """ - Details about a blue/green deployment. + The name of the blue/green deployment. - For more information, see [Using Amazon RDS Blue/Green Deployments for - database - updates](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html) - in the *Amazon RDS User Guide* and [Using Amazon RDS Blue/Green - Deployments for database - updates](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html) - in the *Amazon Aurora User Guide*. - """ - response_metadata: ResponseMetadata = ... + Constraints: + + - Can't be the same as an existing blue/green deployment name in the + same account and Amazon Web Services Region. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + source: Required[str] """ + The Amazon Resource Name (ARN) of the source production database. -@dataclass(kw_only=True) -class CreateCustomDBEngineVersionFault(ServiceError, _SerdeShape): - """An error occurred while trying to create the CEV.""" + Specify the database that you want to clone. The blue/green deployment + creates this database in the green environment. You can make updates to + the database in the green environment, such as an engine version + upgrade. When you are ready, you can switch the database in the green + environment to be the production database. + """ + target_engine_version: str | None + """ + The engine version of the database in the green environment. - response_metadata: ResponseMetadata = ... + Specify the engine version to upgrade to in the green environment. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + target_db_parameter_group_name: str | None + """ + The DB parameter group associated with the DB instance in the green + environment. + + To test parameter changes, specify a DB parameter group that is + different from the one associated with the source DB instance. + """ + target_db_cluster_parameter_group_name: str | None + """ + The DB cluster parameter group associated with the Aurora DB cluster in + the green environment. + + To test parameter changes, specify a DB cluster parameter group that is + different from the one associated with the source DB cluster. + """ + tags: Sequence[Tag | TagDict] | None + """Tags to assign to the blue/green deployment.""" + target_db_instance_class: str | None + """ + Specify the DB instance class for the databases in the green + environment. + + This parameter only applies to RDS DB instances, because DB instances + within an Aurora DB cluster can have multiple different instance + classes. If you're creating a blue/green deployment from an Aurora DB + cluster, don't specify this parameter. After the green environment is + created, you can individually modify the instance classes of the DB + instances within the green DB cluster. + """ + upgrade_target_storage_config: bool | None + """ + Whether to upgrade the storage file system configuration on the green + database. This option migrates the green DB instance from the older + 32-bit file system to the preferred configuration. For more information, + see [Upgrading the storage file system for a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.UpgradeFileSystem). + """ + target_iops: int | None + """ + The amount of Provisioned IOPS (input/output operations per second) to + allocate for the green DB instance. For information about valid IOPS + values, see [Amazon RDS DB instance + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora blue/green deployments. + """ + target_storage_type: str | None + """ + The storage type to associate with the green DB instance. + + Valid Values: `gp2 | gp3 | io1 | io2` + + This setting doesn't apply to Amazon Aurora blue/green deployments. + """ + target_allocated_storage: int | None + """ + The amount of storage in gibibytes (GiB) to allocate for the green DB + instance. You can choose to increase or decrease the allocated storage + on the green DB instance. + + This setting doesn't apply to Amazon Aurora blue/green deployments. + """ + target_storage_throughput: int | None + """ + The storage throughput value for the green DB instance. + + This setting applies only to the `gp3` storage type. + + This setting doesn't apply to Amazon Aurora blue/green deployments. + """ + target_resource_configurations: ( + Sequence[TargetResourceConfiguration | TargetResourceConfigurationDict] | None + ) + """ + Specifies resource-level configuration overrides for the green + environment. + + Each entry identifies a resource in the blue environment by its Amazon + Resource Name (ARN). It defines the desired configuration for the + corresponding resource in the green environment. Any resource that you + don't include in this parameter retains the same configuration as its + counterpart in the blue environment. + + Use this parameter when one or more resources in the green environment + require a different configuration than what they have in the blue + environment. + + Constraints: + + - You can't specify the same `SourceArn` in more than one entry. + """ + +@dataclass(kw_only=True) +class CreateBlueGreenDeploymentOutput(_SerdeShape): + """Dataclass for CreateBlueGreenDeploymentOutput structure.""" + + blue_green_deployment: BlueGreenDeployment | None = ... + """ + Details about a blue/green deployment. + + For more information, see [Using Amazon RDS Blue/Green Deployments for + database + updates](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html) + in the *Amazon RDS User Guide* and [Using Amazon RDS Blue/Green + Deployments for database + updates](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html) + in the *Amazon Aurora User Guide*. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateCustomDBEngineVersionFault(ServiceError, _SerdeShape): + """An error occurred while trying to create the CEV.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) @@ -2324,24 +3314,24 @@ class CreateCustomDBEngineVersionInput(_SerdeShape): MediaImportTemplateVersion - : Version of the CEV manifest. The date is in the format `YYYY-MM-DD`. + : Version of the CEV manifest. The date is in the format `YYYY-MM-DD`. databaseInstallationFileNames - : Ordered list of installation files for the CEV. + : Ordered list of installation files for the CEV. opatchFileNames - : Ordered list of OPatch installers used for the Oracle DB engine. + : Ordered list of OPatch installers used for the Oracle DB engine. psuRuPatchFileNames - : The PSU and RU patches for this CEV. + : The PSU and RU patches for this CEV. OtherPatchFileNames - : The patches that are not in the list of PSU and RU patches. Amazon RDS - applies these patches after applying the PSU and RU patches. + : The patches that are not in the list of PSU and RU patches. Amazon + RDS applies these patches after applying the PSU and RU patches. For more information, see [Creating the CEV manifest](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html#custom-cev.preparing.manifest) @@ -2358,6 +3348,166 @@ class CreateCustomDBEngineVersionInput(_SerdeShape): in the *Amazon Aurora User Guide*. """ +class CreateCustomDBEngineVersionInputDict(TypedDict, total=False): + """Dictionary form of `CreateCustomDBEngineVersionInput`.""" + + engine: Required[str] + """ + The database engine. + + RDS Custom for Oracle supports the following values: + + - `custom-oracle-ee` + + - `custom-oracle-ee-cdb` + + - `custom-oracle-se2` + + - `custom-oracle-se2-cdb` + + RDS Custom for SQL Server supports the following values: + + - `custom-sqlserver-ee` + + - `custom-sqlserver-se` + + - `custom-sqlserver-web` + + - `custom-sqlserver-dev` + + RDS for SQL Server supports the following values: + + - `sqlserver-ee` (Bring Your Own Media) + + - `sqlserver-se` (Bring Your Own Media) + + - `sqlserver-dev-ee` + """ + engine_version: Required[str] + """ + The name of your custom engine version (CEV). + + For RDS Custom for Oracle, the name format is `19.*customized_string*`. + For example, a valid CEV name is `19.my_cev1`. + + For RDS Custom for SQL Server and RDS for SQL Server `sqlserver-dev-ee`, + the name format is + `*major_engine_version*.*minor_engine_version*.*customized_string*`. For + example, a valid CEV name is `16.00.4215.2.my_cev1`. + + For RDS for SQL Server Bring Your Own Media (`sqlserver-ee`, + `sqlserver-se`), specify the RDS engine version that you want to use. + For example, `16.00.4175.1.v1`. + + The CEV name is unique per customer per Amazon Web Services Regions. + """ + database_installation_files_s3_bucket_name: str | None + """ + The name of an Amazon S3 bucket that contains database installation + files for your CEV. For example, a valid bucket name is + `my-custom-installation-files`. + """ + database_installation_files_s3_prefix: str | None + """ + The Amazon S3 directory that contains the database installation files + for your CEV. For example, a valid bucket name is `123456789012/cev1`. + If this setting isn't specified, no prefix is assumed. + """ + database_installation_files: Sequence[str] | None + """ + The database installation files (ISO and EXE) uploaded to Amazon S3 for + your database engine version to import to Amazon RDS. + + For RDS for SQL Server Bring Your Own Media (`sqlserver-ee`, + `sqlserver-se`), provide the SQL Server RTM ISO file once per major + version and edition combination. Minor versions reuse the same file. + """ + image_id: str | None + """ + The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, + an AMI ID is required to create a CEV. For RDS Custom for Oracle, the + default is the most recent AMI available, but you can specify an AMI ID + that was used in a different Oracle CEV. Find the AMIs used by your CEVs + by calling the + [DescribeDBEngineVersions](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBEngineVersions.html) + operation. + """ + kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for an encrypted CEV. A + symmetric encryption KMS key is required for RDS Custom, but optional + for Amazon RDS. + + If you have an existing symmetric encryption KMS key in your account, + you can use it with RDS Custom. No further action is necessary. If you + don't already have a symmetric encryption KMS key in your account, + follow the instructions in [Creating a symmetric encryption KMS + key](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html#create-symmetric-cmk) + in the *Amazon Web Services Key Management Service Developer Guide*. + + You can choose the same symmetric encryption key when you create a CEV + and a DB instance, or choose different keys. + """ + source_custom_db_engine_version_identifier: str | None + """ + The ARN of a CEV to use as a source for creating a new CEV. You can + specify a different Amazon Machine Imagine (AMI) by using either + `Source` or `UseAwsProvidedLatestImage`. You can't specify a different + JSON manifest when you specify `SourceCustomDbEngineVersionIdentifier`. + """ + use_aws_provided_latest_image: bool | None + """ + Specifies whether to use the latest service-provided Amazon Machine + Image (AMI) for the CEV. If you specify `UseAwsProvidedLatestImage`, you + can't also specify `ImageId`. + """ + description: str | None + """An optional description of your CEV.""" + manifest: str | None + """ + The CEV manifest, which is a JSON document that describes the + installation .zip files stored in Amazon S3. Specify the name/value + pairs in a file or a quoted string. RDS Custom applies the patches in + the order in which they are listed. + + The following JSON fields are valid: + + MediaImportTemplateVersion + + : Version of the CEV manifest. The date is in the format `YYYY-MM-DD`. + + databaseInstallationFileNames + + : Ordered list of installation files for the CEV. + + opatchFileNames + + : Ordered list of OPatch installers used for the Oracle DB engine. + + psuRuPatchFileNames + + : The PSU and RU patches for this CEV. + + OtherPatchFileNames + + : The patches that are not in the list of PSU and RU patches. Amazon + RDS applies these patches after applying the PSU and RU patches. + + For more information, see [Creating the CEV + manifest](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html#custom-cev.preparing.manifest) + in the *Amazon RDS User Guide*. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + @dataclass(kw_only=True) class CreateCustomDBEngineVersionOutput(_SerdeShape): """ @@ -2809,8 +3959,244 @@ class CreateDBCapacityReservationInput(_SerdeShape): tags: list[Tag] | None = ... """Tags to assign to the DB capacity reservation.""" -@dataclass(kw_only=True) -class CreateDBCapacityReservationOutput(_SerdeShape): +class CreateDBCapacityReservationInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBCapacityReservationInput`.""" + + db_capacity_reservation_name: Required[str] + """ + The name of the DB capacity reservation. This name must be unique for + your Amazon Web Services account in the Amazon Web Services Region. + + Constraints: + + - Must contain from 1 to 63 lowercase letters, digits, or hyphens. + + - First character must be a lowercase letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + - Can't contain more than 16 groups of characters separated by hyphens. + + - Can't begin with `dbcr-`. + """ + db_instance_class: Required[str] + """ + The compute and memory capacity to reserve, for example `db.m5.large`. + Not all DB instance classes are available in all Amazon Web Services + Regions, or for all database engines. For the full list of DB instance + classes, and availability for your engine, see [DB instance + classes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide*. + + Constraints: + + - Must be a DB instance class that the specified `Engine` supports. + + - For RDS for Oracle with `LicenseModel` set to `license-included`, some + DB instance classes aren't supported. Either choose a supported DB + instance class, or set `LicenseModel` to `bring-your-own-license`. + """ + engine: Required[str] + """ + The database engine to reserve capacity for. + + Valid Values: `aurora-mysql` | `aurora-postgresql` | `mysql` | + `postgres` | `mariadb` | `oracle-ee` | `oracle-ee-cdb` | + `oracle-se2` | `oracle-se2-cdb` | `sqlserver-ee` | `sqlserver-se` | + `sqlserver-web` | `sqlserver-ex` | `sqlserver-dev-ee` | + `sqlserver-dev-se` | `db2-ae` | `db2-ce` | `db2-se` + + Note: + The Developer Edition engines `sqlserver-dev-ee` and `sqlserver-dev-se` + support no Multi-AZ DB instance and no read replica. Therefore, a + reservation for either engine serves Single-AZ DB instances only. + """ + capacity_per_availability_zone: Required[int] + """ + The number of DB instances to reserve in each Availability Zone that you + list in `AvailabilityZones`. Amazon RDS reserves this number of DB + instances in every listed Availability Zone. + + A Single-AZ DB instance uses one unit of reserved capacity, in one + Availability Zone. A Multi-AZ DB instance is one DB instance, and it + uses one unit of reserved capacity in each of two Availability Zones. + Therefore, a Multi-AZ DB instance uses two units in total. A read + replica uses one unit of reserved capacity, in the same way as any other + DB instance. + + Amazon RDS reserves capacity in each Availability Zone separately. + Reserved capacity in one Availability Zone can't serve a DB instance in + another Availability Zone. A request for a DB instance fails when the + Availability Zone of the DB instance has no available capacity. + + Therefore, set this value to the number of DB instances that you want to + run at the same time in one Availability Zone. Don't set it to the + number that you want in total. + + This value multiplied by the number of Availability Zones counts against + the DB instances quota for your Amazon Web Services account in the + Amazon Web Services Region. Your existing DB instances, and the unused + capacity of your other reservations, count against the same quota. + + To find the value of the DB instances quota, see [Quotas and constraints + for Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html) + in the *Amazon RDS User Guide*. + + Constraints: + + - Minimum 1. + """ + availability_zones: Required[Sequence[str]] + """ + A list of Availability Zones for the reservation. + + You can't change the Availability Zones of a reservation after you + create it. Reserved capacity in an Availability Zone that no DB instance + uses stays unused. + + Constraints: + + - Must specify one or more Availability Zones. + + - Each Availability Zone can appear only once. + + - Each Availability Zone must be in the Amazon Web Services Region of + the request. + + - Each Availability Zone must have capacity for the requested DB + instance class. + + - Must include two or more Availability Zones to use the reservation for + a Multi-AZ DB instance. + + - A DB instance can use reserved capacity only in an Availability Zone + that its DB subnet group covers. + + Example: `us-east-1a` + """ + end_date: datetime | None + """ + The date and time when the reservation expires, in Universal Coordinated + Time (UTC). If you don't specify a value, the reservation doesn't + expire. + + To change the expiration of an existing reservation, use + `ModifyDBCapacityReservation`. That operation takes `EndDateType` along + with `EndDate`. + + Constraints: + + - Must be a date and time in the future. + + - For a future-dated reservation, must be at or after `StartDate` plus + `CommitmentDuration`. For example, a reservation that starts on + 2026-12-01 with a 30-day commitment can't expire before 2026-12-31. + To reserve capacity for one calendar month, set `CommitmentDuration` + to 30 days or fewer, not to the length of the month. + + Example: `2026-12-31T23:59:59Z` + """ + start_date: datetime | None + """ + The date and time when the reservation starts, in Universal Coordinated + Time (UTC). Specify this parameter to create a future-dated reservation. + If you don't specify a value, the reservation starts immediately. + + A reservation that starts later always carries a capacity commitment. + Therefore, a request that specifies `StartDate` must also meet every + constraint of a future-dated reservation, including the minimum reserved + capacity in each Availability Zone. + + Constraints: + + - Must be from 5 to 120 days in the future. + + - You must also specify `CommitmentDuration`. + + Example: `2026-12-01T00:00:00Z` + """ + commitment_duration: int | None + """ + The length of the capacity commitment that you request for a + future-dated reservation, in seconds. Amazon RDS measures this length + from `StartDate`. + + Note: + Amazon RDS can grant a shorter capacity commitment than you request. + Therefore, read `CommitmentEndDate` in `CommitmentInfo` for the + commitment that Amazon RDS granted. + + The commitment doesn't end the reservation. Specify `EndDate` to set an + expiration date. You can't cancel a reservation in the `active` state + during the commitment. + + Constraints: + + - Minimum 1209600, which is 14 days. For a `db.x` DB instance class, + such as `db.x2g.xlarge`, the minimum is 7257600, which is 84 days. + + - Must be less than 315576000, which is 10 years. + + - You must also specify `StartDate`. + + Example: `2592000` + """ + license_model: str | None + """ + The license model to reserve capacity for. Specify this parameter only + for RDS for Microsoft SQL Server Enterprise Edition, Standard Edition, + and Developer Edition, for RDS for Oracle, or for RDS for Db2 Standard + Edition and Advanced Edition. Amazon RDS rejects the request for any + other engine. This includes Amazon Aurora, the Web and Express editions + of RDS for Microsoft SQL Server, and RDS for Db2 Community Edition. + + Valid Values: + + - RDS for Microsoft SQL Server Enterprise Edition and Standard Edition - + `license-included | bring-your-own-media` + + - RDS for Microsoft SQL Server Developer Edition - + `bring-your-own-license` + + - RDS for Oracle - `bring-your-own-license | license-included` + + - RDS for Db2 Standard Edition and Advanced Edition - + `bring-your-own-license | marketplace-license` + + A DB instance launches into the reservation only when the license model + of the DB instance matches the license model of the reservation. For a + reservation that holds no license model, Amazon RDS applies no license + model check at launch. + + For RDS for Microsoft SQL Server Enterprise Edition and Standard + Edition, if you don't specify a value, Amazon RDS uses + `license-included`. + + For RDS for Microsoft SQL Server Developer Edition, if you don't + specify a value, Amazon RDS uses `bring-your-own-license`. That is the + only license model that these engines accept, and Amazon RDS rejects any + other value. + + For RDS for Oracle, if you don't specify a value, Amazon RDS uses the + only orderable license model for the DB instance class. If more than one + license model is orderable, you must specify one. + + For RDS for Db2 Standard Edition and Advanced Edition, if you don't + specify a value, Amazon RDS uses `bring-your-own-license`. To reserve + capacity for Db2 DB instances that you license through Amazon Web + Services Marketplace, specify `marketplace-license`. + + Note: + For RDS for Oracle, the license models that you can reserve depend on + the engine and the DB instance class. RDS for Oracle Enterprise Edition + doesn't support `license-included`. + """ + tags: Sequence[Tag | TagDict] | None + """Tags to assign to the DB capacity reservation.""" + +@dataclass(kw_only=True) +class CreateDBCapacityReservationOutput(_SerdeShape): """Dataclass for CreateDBCapacityReservationOutput structure.""" db_capacity_reservation: DBCapacityReservation | None = ... @@ -2854,6 +4240,36 @@ class CreateDBClusterEndpointInput(_SerdeShape): tags: list[Tag] | None = ... """The tags to be assigned to the Amazon RDS resource.""" +class CreateDBClusterEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBClusterEndpointInput`.""" + + db_cluster_identifier: Required[str] + """ + The DB cluster identifier of the DB cluster associated with the + endpoint. This parameter is stored as a lowercase string. + """ + db_cluster_endpoint_identifier: Required[str] + """ + The identifier to use for the new endpoint. This parameter is stored as + a lowercase string. + """ + endpoint_type: Required[str] + """The type of the endpoint, one of: `READER`, `WRITER`, `ANY`.""" + static_members: Sequence[str] | None + """ + List of DB instance identifiers that are part of the custom endpoint + group. + """ + excluded_members: Sequence[str] | None + """ + List of DB instance identifiers that aren't part of the custom endpoint + group. All other eligible instances are reachable through the custom + endpoint. This parameter is relevant only if the list of static members + is empty. + """ + tags: Sequence[Tag | TagDict] | None + """The tags to be assigned to the Amazon RDS resource.""" + @dataclass(kw_only=True) class CreateDBClusterEndpointOutput(_SerdeShape): """ @@ -3856,1089 +5272,4196 @@ class CreateDBClusterInput(_SerdeShape): Valid for Cluster Type: Aurora DB clusters only """ -@dataclass(kw_only=True) -class CreateDBClusterOutput(_SerdeShape): - """Dataclass for CreateDBClusterOutput structure.""" +class CreateDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBClusterInput`.""" - db_cluster: DBCluster | None = ... + availability_zones: Sequence[str] | None """ - Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB - cluster. + A list of Availability Zones (AZs) where you specifically want to create + DB instances in the DB cluster. - For an Amazon Aurora DB cluster, this data type is used as a response - element in the operations `CreateDBCluster`, `DeleteDBCluster`, - `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, - `PromoteReadReplicaDBCluster`, `RestoreDBClusterFromS3`, - `RestoreDBClusterFromSnapshot`, `RestoreDBClusterToPointInTime`, - `StartDBCluster`, and `StopDBCluster`. - - For a Multi-AZ DB cluster, this data type is used as a response element - in the operations `CreateDBCluster`, `DeleteDBCluster`, - `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, - `RebootDBCluster`, `RestoreDBClusterFromSnapshot`, and - `RestoreDBClusterToPointInTime`. - - For more information on Amazon Aurora DB clusters, see [What is Amazon - Aurora?](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) - in the *Amazon Aurora User Guide.* - - For more information on Multi-AZ DB clusters, see [Multi-AZ deployments - with two readable standby DB - instances](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) - in the *Amazon RDS User Guide.* - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + For the first three DB instances that you create, RDS distributes each + DB instance to a different AZ that you specify. For additional DB + instances that you create, RDS randomly distributes them to the AZs that + you specified. For example, if you create a DB cluster with one writer + instance and three reader instances, RDS might distribute the writer + instance to AZ 1, the first reader instance to AZ 2, the second reader + instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or + AZ 3. -@dataclass(kw_only=True) -class CreateDBClusterParameterGroupInput(_SerdeShape): - """""" + For more information, see [Availability + Zones](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones) + and [High availability for Aurora DB + instances](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances) + in the *Amazon Aurora User Guide*. - db_cluster_parameter_group_name: str | None = ... - """ - The name of the DB cluster parameter group. + Valid for Cluster Type: Aurora DB clusters only Constraints: - - Must not match the name of an existing DB cluster parameter group. - - Note: - This value is stored as a lowercase string. + - Can't specify more than three AZs. """ - db_parameter_group_family: str | None = ... + backup_retention_period: int | None """ - The DB cluster parameter group family name. A DB cluster parameter group - can be associated with one and only one DB cluster parameter group - family, and can be applied only to a DB cluster running a database - engine and engine version compatible with that DB cluster parameter - group family. - - **Aurora MySQL** - - Example: `aurora-mysql5.7`, `aurora-mysql8.0` - - **Aurora PostgreSQL** - - Example: `aurora-postgresql14` - - **RDS for MySQL** - - Example: `mysql8.0` - - **RDS for PostgreSQL** - - Example: `postgres13` - - To list all of the available parameter group families for a DB engine, - use the following command: - - `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine ` - - For example, to list all of the available parameter group families for - the Aurora PostgreSQL DB engine, use the following command: - - `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` - - Note: - The output contains duplicates. - - The following are the valid DB engine values: + The number of days for which automated backups are retained. - - `aurora-mysql` + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - - `aurora-postgresql` + Default: `1` - - `mysql` + Constraints: - - `postgres` + - Must be a value from 1 to 35. """ - description: str | None = ... - """The description for the DB cluster parameter group.""" - tags: list[Tag] | None = ... - """Tags to assign to the DB cluster parameter group.""" - -@dataclass(kw_only=True) -class CreateDBClusterParameterGroupOutput(_SerdeShape): - """Dataclass for CreateDBClusterParameterGroupOutput structure.""" - - db_cluster_parameter_group: DBClusterParameterGroup | None = ... + character_set_name: str | None """ - Contains the details of an Amazon RDS DB cluster parameter group. + The name of the character set (`CharacterSet`) to associate the DB + cluster with. - This data type is used as a response element in the - `DescribeDBClusterParameterGroups` action. - """ - response_metadata: ResponseMetadata = ... + Valid for Cluster Type: Aurora DB clusters only """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + database_name: str | None """ + The name for your database of up to 64 alphanumeric characters. A + database named `postgres` is always created. If this parameter is + specified, an additional database with this name is created. -@dataclass(kw_only=True) -class CreateDBClusterSnapshotInput(_SerdeShape): - """""" - - db_cluster_snapshot_identifier: str | None = ... + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters """ - The identifier of the DB cluster snapshot. This parameter is stored as a + db_cluster_identifier: Required[str] + """ + The identifier for this DB cluster. This parameter is stored as a lowercase string. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + Constraints: - - Must contain from 1 to 63 letters, numbers, or hyphens. + - Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for + Multi-AZ DB clusters) letters, numbers, or hyphens. - First character must be a letter. - Can't end with a hyphen or contain two consecutive hyphens. - Example: `my-cluster1-snapshot1` + Example: `my-cluster1` """ - db_cluster_identifier: str | None = ... + db_cluster_parameter_group_name: str | None """ - The identifier of the DB cluster to create a snapshot for. This - parameter isn't case-sensitive. + The name of the DB cluster parameter group to associate with this DB + cluster. If you don't specify a value, then the default DB cluster + parameter group for the specified DB engine and version is used. - Constraints: + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - - Must match the identifier of an existing DBCluster. + Constraints: - Example: `my-cluster1` + - If supplied, must match the name of an existing DB cluster parameter + group. """ - tags: list[Tag] | None = ... - """The tags to be assigned to the DB cluster snapshot.""" - -@dataclass(kw_only=True) -class CreateDBClusterSnapshotOutput(_SerdeShape): - """Dataclass for CreateDBClusterSnapshotOutput structure.""" - - db_cluster_snapshot: DBClusterSnapshot | None = ... + vpc_security_group_ids: Sequence[str] | None """ - Contains the details for an Amazon RDS DB cluster snapshot + A list of EC2 VPC security groups to associate with this DB cluster. - This data type is used as a response element in the - `DescribeDBClusterSnapshots` action. - """ - response_metadata: ResponseMetadata = ... + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + db_subnet_group_name: str | None """ + A DB subnet group to associate with this DB cluster. -@dataclass(kw_only=True) -class CreateDBInstanceInput(_SerdeShape): - """""" + This setting is required to create a Multi-AZ DB cluster. - db_name: str | None = ... - """ - The meaning of this parameter differs according to the database engine - you use. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - Amazon Aurora MySQL + Constraints: - : The name of the database to create when the primary DB instance of the - Aurora MySQL DB cluster is created. If this parameter isn't specified - for an Aurora MySQL DB cluster, no database is created in the DB - cluster. + - Must match the name of an existing DB subnet group. - Constraints: + Example: `mydbsubnetgroup` + """ + engine: Required[str] + """ + The database engine to use for this DB cluster. - - Must contain 1 to 64 alphanumeric characters. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - - Must begin with a letter. Subsequent characters can be letters, - underscores, or digits (0-9). + Valid Values: - - Can't be a word reserved by the database engine. + - `aurora-mysql` - Amazon Aurora PostgreSQL + - `aurora-postgresql` - : The name of the database to create when the primary DB instance of the - Aurora PostgreSQL DB cluster is created. A database named `postgres` - is always created. If this parameter is specified, an additional - database with this name is created. + - `mysql` - Constraints: + - `postgres` - - It must contain 1 to 63 alphanumeric characters. + - `neptune` - For information about using Amazon Neptune, see the + [*Amazon Neptune User + Guide*](https://docs.aws.amazon.com/neptune/latest/userguide/intro.html) + . + """ + engine_version: str | None + """ + The version number of the database engine to use. - - Must begin with a letter. Subsequent characters can be letters, - underscores, or digits (0 to 9). + To list all of the available engine versions for Aurora MySQL version 2 + (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following + command: - - Can't be a word reserved by the database engine. + `aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"` - Amazon RDS Custom for Oracle + You can supply either `5.7` or `8.0` to use the default engine version + for Aurora MySQL version 2 or version 3, respectively. - : The Oracle System ID (SID) of the created RDS Custom DB instance. If - you don't specify a value, the default value is `ORCL` for non-CDBs - and `RDSCDB` for CDBs. + To list all of the available engine versions for Aurora PostgreSQL, use + the following command: - Default: `ORCL` + `aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions[].EngineVersion"` - Constraints: + To list all of the available engine versions for RDS for MySQL, use the + following command: - - Must contain 1 to 8 alphanumeric characters. + `aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions[].EngineVersion"` - - Must contain a letter. + To list all of the available engine versions for RDS for PostgreSQL, use + the following command: - - Can't be a word reserved by the database engine. + `aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions[].EngineVersion"` - Amazon RDS Custom for SQL Server + For information about a specific engine, see the following topics: - : Not applicable. Must be null. + - Aurora MySQL - see [Database engine updates for Amazon Aurora + MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) + in the *Amazon Aurora User Guide*. - RDS for Db2 + - Aurora PostgreSQL - see [Amazon Aurora PostgreSQL releases and engine + versions](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html) + in the *Amazon Aurora User Guide*. - : The name of the database to create when the DB instance is created. If - this parameter isn't specified, no database is created in the DB - instance. In some cases, we recommend that you don't add a database - name. For more information, see [Additional - considerations](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations) + - RDS for MySQL - see [Amazon RDS for + MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) in the *Amazon RDS User Guide*. - Constraints: - - - Must contain 1 to 64 letters or numbers. - - - Must begin with a letter. Subsequent characters can be letters, - underscores, or digits (0-9). + - RDS for PostgreSQL - see [Amazon RDS for + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts) + in the *Amazon RDS User Guide*. - - Can't be a word reserved by the specified database engine. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + port: int | None + """ + The port number on which the instances in the DB cluster accept + connections. - RDS for MariaDB + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - : The name of the database to create when the DB instance is created. If - this parameter isn't specified, no database is created in the DB - instance. + Valid Values: `1150-65535` - Constraints: + Default: - - Must contain 1 to 64 letters or numbers. + - RDS for MySQL and Aurora MySQL - `3306` - - Must begin with a letter. Subsequent characters can be letters, - underscores, or digits (0-9). + - RDS for PostgreSQL and Aurora PostgreSQL - `5432` + """ + master_username: str | None + """ + The name of the master user for the DB cluster. - - Can't be a word reserved by the specified database engine. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - RDS for MySQL + Constraints: - : The name of the database to create when the DB instance is created. If - this parameter isn't specified, no database is created in the DB - instance. + - Must be 1 to 16 letters or numbers. - Constraints: + - First character must be a letter. - - Must contain 1 to 64 letters or numbers. - - - Must begin with a letter. Subsequent characters can be letters, - underscores, or digits (0-9). - - - Can't be a word reserved by the specified database engine. + - Can't be a reserved word for the chosen database engine. + """ + master_user_password: str | None + """ + The password for the master database user. - RDS for Oracle + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - : The Oracle System ID (SID) of the created DB instance. If you don't - specify a value, the default value is `ORCL`. You can't specify the - string `null`, or any other reserved word, for `DBName`. + Constraints: - Default: `ORCL` + - Must contain from 8 to 41 characters. - Constraints: + - Can contain any printable ASCII character except \"/\", \"\"\", or + \"@\". - - Can't be longer than 8 characters. + - Can't be specified if `ManageMasterUserPassword` is turned on. + """ + option_group_name: str | None + """ + The option group to associate the DB cluster with. - RDS for PostgreSQL + DB clusters are associated with a default option group that can't be + modified. + """ + preferred_backup_window: str | None + """ + The daily time range during which automated backups are created if + automated backups are enabled using the `BackupRetentionPeriod` + parameter. - : The name of the database to create when the DB instance is created. A - database named `postgres` is always created. If this parameter is - specified, an additional database with this name is created. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - Constraints: + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region. To view the time + blocks available, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) + in the *Amazon Aurora User Guide*. - - Must contain 1 to 63 letters, numbers, or underscores. + Constraints: - - Must begin with a letter. Subsequent characters can be letters, - underscores, or digits (0-9). + - Must be in the format `hh24:mi-hh24:mi`. - - Can't be a word reserved by the specified database engine. + - Must be in Universal Coordinated Time (UTC). - RDS for SQL Server + - Must not conflict with the preferred maintenance window. - : Not applicable. Must be null. + - Must be at least 30 minutes. """ - db_instance_identifier: str | None = ... + preferred_maintenance_window: str | None """ - The identifier for this DB instance. This parameter is stored as a - lowercase string. + The weekly time range during which system maintenance can occur. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region, occurring on a random + day of the week. To see the time blocks available, see [Adjusting the + Preferred DB Cluster Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora) + in the *Amazon Aurora User Guide*. Constraints: - - Must contain from 1 to 63 letters, numbers, or hyphens. + - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. - - First character must be a letter. + - Days must be one of `Mon | Tue | Wed | Thu | Fri | Sat | Sun`. - - Can't end with a hyphen or contain two consecutive hyphens. + - Must be in Universal Coordinated Time (UTC). - Example: `mydbinstance` + - Must be at least 30 minutes. """ - allocated_storage: int | None = ... + replication_source_identifier: str | None """ - The amount of storage in gibibytes (GiB) to allocate for the DB - instance. + The Amazon Resource Name (ARN) of the source DB instance or DB cluster + if this DB cluster is created as a read replica. - This setting doesn't apply to Amazon Aurora DB instances. Aurora - cluster volumes automatically grow as the amount of data in your - database increases, though you are only charged for the space that you - use in an Aurora cluster volume. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + tags: Sequence[Tag | TagDict] | None + """ + Tags to assign to the DB cluster. - Amazon RDS Custom + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + storage_encrypted: bool | None + """ + Specifies whether the DB cluster is encrypted. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for an encrypted DB cluster. - : Constraints to the amount of storage for each storage type are the - following: + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. - - General Purpose (SSD) storage (gp2, gp3): Must be an integer from 40 - to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL - Server. + When a KMS key isn't specified in `KmsKeyId`: - - Provisioned IOPS storage (io1, io2): Must be an integer from 40 to - 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL - Server. + - If `ReplicationSourceIdentifier` identifies an encrypted source, then + Amazon RDS uses the KMS key used to encrypt the source. Otherwise, + Amazon RDS uses your default KMS key. - RDS for Db2 + - If the `StorageEncrypted` parameter is enabled and + `ReplicationSourceIdentifier` isn't specified, then Amazon RDS uses + your default KMS key. - : Constraints to the amount of storage for each storage type are the - following: + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. - - General Purpose (SSD) storage (gp3): Must be an integer from 20 to - 65536. + If you create a read replica of an encrypted DB cluster in another + Amazon Web Services Region, make sure to set `KmsKeyId` to a KMS key + identifier that is valid in the destination Amazon Web Services Region. + This KMS key is used to encrypt the read replica in that Amazon Web + Services Region. - - Provisioned IOPS storage (io1, io2): Must be an integer from 100 to - 65536. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + pre_signed_url: str | None + """ + When you are replicating a DB cluster from one Amazon Web Services + GovCloud (US) Region to another, an URL that contains a Signature + Version 4 signed request for the `CreateDBCluster` operation to be + called in the source Amazon Web Services Region where the DB cluster is + replicated from. Specify `PreSignedUrl` only when you are performing + cross-Region replication from an encrypted DB cluster. - RDS for MariaDB + The presigned URL must be a valid request for the `CreateDBCluster` API + operation that can run in the source Amazon Web Services Region that + contains the encrypted DB cluster to copy. - : Constraints to the amount of storage for each storage type are the - following: + The presigned URL request must contain the following parameter values: - - General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 - to 65536. + - `KmsKeyId` - The KMS key identifier for the KMS key to use to encrypt + the copy of the DB cluster in the destination Amazon Web Services + Region. This should refer to the same KMS key for both the + `CreateDBCluster` operation that is called in the destination Amazon + Web Services Region, and the operation contained in the presigned URL. - - Provisioned IOPS storage (io1, io2): Must be an integer from 100 to - 65536. + - `DestinationRegion` - The name of the Amazon Web Services Region that + Aurora read replica will be created in. - - Magnetic storage (standard): Must be an integer from 5 to 3072. + - `ReplicationSourceIdentifier` - The DB cluster identifier for the + encrypted DB cluster to be copied. This identifier must be in the + Amazon Resource Name (ARN) format for the source Amazon Web Services + Region. For example, if you are copying an encrypted DB cluster from + the us-west-2 Amazon Web Services Region, then your + `ReplicationSourceIdentifier` would look like Example: + `arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1`. - RDS for MySQL + To learn how to generate a Signature Version 4 signed request, see + [Authenticating Requests: Using Query Parameters (Amazon Web Services + Signature Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + and [Signature Version 4 Signing + Process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). - : Constraints to the amount of storage for each storage type are the - following: + Note: + If you are using an Amazon Web Services SDK tool or the CLI, you can + specify `SourceRegion` (or `--source-region` for the CLI) instead of + specifying `PreSignedUrl` manually. Specifying `SourceRegion` + autogenerates a presigned URL that is a valid request for the operation + that can run in the source Amazon Web Services Region. - - General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 - to 65536. + Valid for Cluster Type: Aurora DB clusters only + """ + enable_iam_database_authentication: bool | None + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. - - Provisioned IOPS storage (io1, io2): Must be an integer from 100 to - 65536. + For more information, see [IAM Database + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon Aurora User Guide* or [IAM database authentication for + MariaDB, MySQL, and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide*. - - Magnetic storage (standard): Must be an integer from 5 to 3072. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + backtrack_window: int | None + """ + The target backtrack window, in seconds. To disable backtracking, set + this value to `0`. - RDS for Oracle + Valid for Cluster Type: Aurora MySQL DB clusters only - : Constraints to the amount of storage for each storage type are the - following: + Default: `0` - - General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 - to 65536. + Constraints: - - Provisioned IOPS storage (io1, io2): Must be an integer from 100 to - 65536. + - If specified, this value must be set to a number from 0 to 259,200 (72 + hours). + """ + enable_cloudwatch_logs_exports: Sequence[str] | None + """ + The list of log types that need to be enabled for exporting to + CloudWatch Logs. - - Magnetic storage (standard): Must be an integer from 10 to 3072. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - RDS for PostgreSQL + The following values are valid for each DB engine: - : Constraints to the amount of storage for each storage type are the - following: + - Aurora MySQL - + `audit | error | general | instance | slowquery | iam-db-auth-error` - - General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 - to 65536. + - Aurora PostgreSQL - `instance | postgresql | iam-db-auth-error` - - Provisioned IOPS storage (io1, io2): Must be an integer from 100 to - 65536. + - RDS for MySQL - `error | general | slowquery | iam-db-auth-error` - - Magnetic storage (standard): Must be an integer from 5 to 3072. + - RDS for PostgreSQL - `postgresql | upgrade | iam-db-auth-error` - RDS for SQL Server + For more information about exporting CloudWatch Logs for Amazon RDS, see + [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. - : Constraints to the amount of storage for each storage type are the - following: + For more information about exporting CloudWatch Logs for Amazon Aurora, + see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon Aurora User Guide*. + """ + engine_mode: str | None + """ + The DB engine mode of the DB cluster, either `provisioned` or + `serverless`. - - General Purpose (SSD) storage (gp2, gp3): + The `serverless` engine mode only applies for Aurora Serverless v1 DB + clusters. Aurora Serverless v2 DB clusters use the `provisioned` engine + mode. - - Enterprise and Standard editions: Must be an integer from 20 to - 16384. + For information about limitations and requirements for Serverless DB + clusters, see the following sections in the *Amazon Aurora User Guide*: - - Web and Express editions: Must be an integer from 20 to 16384. + - [Limitations of Aurora Serverless + v1](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations) - - Provisioned IOPS storage (io1, io2): + - [Requirements for Aurora Serverless + v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html) - - Enterprise and Standard editions: Must be an integer from 100 to - 16384. + Valid for Cluster Type: Aurora DB clusters only + """ + scaling_configuration: ScalingConfiguration | ScalingConfigurationDict | None + """ + For DB clusters in `serverless` DB engine mode, the scaling properties + of the DB cluster. - - Web and Express editions: Must be an integer from 100 to 16384. + Valid for Cluster Type: Aurora DB clusters only + """ + rds_custom_cluster_configuration: ( + RdsCustomClusterConfiguration | RdsCustomClusterConfigurationDict | None + ) + """Reserved for future use.""" + db_cluster_instance_class: str | None + """ + The compute and memory capacity of each DB instance in the Multi-AZ DB + cluster, for example `db.m6gd.xlarge`. Not all DB instance classes are + available in all Amazon Web Services Regions, or for all database + engines. - - Magnetic storage (standard): + For the full list of DB instance classes and availability for your + engine, see [DB instance + class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide*. - - Enterprise and Standard editions: Must be an integer from 20 to - 1024. + This setting is required to create a Multi-AZ DB cluster. - - Web and Express editions: Must be an integer from 20 to 1024. + Valid for Cluster Type: Multi-AZ DB clusters only """ - db_instance_class: str | None = ... + allocated_storage: int | None """ - The compute and memory capacity of the DB instance, for example - `db.m5.large`. Not all DB instance classes are available in all Amazon - Web Services Regions, or for all database engines. For the full list of - DB instance classes, and availability for your engine, see [DB instance - classes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - in the *Amazon RDS User Guide* or [Aurora DB instance - classes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) - in the *Amazon Aurora User Guide*. + The amount of storage in gibibytes (GiB) to allocate to each DB instance + in the Multi-AZ DB cluster. + + Valid for Cluster Type: Multi-AZ DB clusters only + + This setting is required to create a Multi-AZ DB cluster. """ - engine: str | None = ... + storage_type: str | None """ - The database engine to use for this DB instance. + The storage type to associate with the DB cluster. - Not every database engine is available in every Amazon Web Services - Region. + For information on storage types for Aurora DB clusters, see [Storage + configurations for Amazon Aurora DB + clusters](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type). + For information on storage types for Multi-AZ DB clusters, see [Settings + for creating Multi-AZ DB + clusters](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings). - Valid Values: + This setting is required to create a Multi-AZ DB cluster. - - `aurora-mysql` (for Aurora MySQL DB instances) + When specified for a Multi-AZ DB cluster, a value for the `Iops` + parameter is required. - - `aurora-postgresql` (for Aurora PostgreSQL DB instances) + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - - `custom-oracle-ee` (for RDS Custom for Oracle DB instances) + Valid Values: - - `custom-oracle-ee-cdb` (for RDS Custom for Oracle DB instances) + - Aurora DB clusters - `aurora | aurora-iopt1` - - `custom-oracle-se2` (for RDS Custom for Oracle DB instances) + - Multi-AZ DB clusters - `io1 | io2 | gp3` - - `custom-oracle-se2-cdb` (for RDS Custom for Oracle DB instances) - - - `custom-sqlserver-ee` (for RDS Custom for SQL Server DB instances) - - - `custom-sqlserver-se` (for RDS Custom for SQL Server DB instances) + Default: - - `custom-sqlserver-web` (for RDS Custom for SQL Server DB instances) + - Aurora DB clusters - `aurora` - - `custom-sqlserver-dev` (for RDS Custom for SQL Server DB instances) + - Multi-AZ DB clusters - `io1` - - `db2-ae` + Note: + When you create an Aurora DB cluster with the storage type set to + `aurora-iopt1`, the storage type is returned in the response. The + storage type isn't returned when you set it to `aurora`. + """ + iops: int | None + """ + The amount of Provisioned IOPS (input/output operations per second) to + be initially allocated for each DB instance in the Multi-AZ DB cluster. - - `db2-ce` + For information about valid IOPS values, see [Provisioned IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide*. - - `db2-se` + This setting is required to create a Multi-AZ DB cluster. - - `mariadb` + Valid for Cluster Type: Multi-AZ DB clusters only - - `mysql` + Constraints: - - `oracle-ee` + - Must be a multiple between .5 and 50 of the storage amount for the DB + cluster. + """ + publicly_accessible: bool | None + """ + Specifies whether the DB cluster is publicly accessible. - - `oracle-ee-cdb` + Valid for Cluster Type: Multi-AZ DB clusters only - - `oracle-se2` + When the DB cluster is publicly accessible and you connect from outside + of the DB cluster's virtual private cloud (VPC), its domain name system + (DNS) endpoint resolves to the public IP address. When you connect from + within the same VPC as the DB cluster, the endpoint resolves to the + private IP address. Access to the DB cluster is controlled by its + security group settings. - - `oracle-se2-cdb` + When the DB cluster isn't publicly accessible, it is an internal DB + cluster with a DNS name that resolves to a private IP address. - - `postgres` + The default behavior when `PubliclyAccessible` is not specified depends + on whether a `DBSubnetGroup` is specified. - - `sqlserver-dev-ee` + If `DBSubnetGroup` isn't specified, `PubliclyAccessible` defaults to + `true`. - - `sqlserver-ee` + If `DBSubnetGroup` is specified, `PubliclyAccessible` defaults to + `false` unless the value of `DBSubnetGroup` is `default`, in which case + `PubliclyAccessible` defaults to `true`. - - `sqlserver-se` + If `PubliclyAccessible` is true and the VPC that the `DBSubnetGroup` is + in doesn't have an internet gateway attached to it, Amazon RDS returns + an error. + """ + auto_minor_version_upgrade: bool | None + """ + Specifies whether minor engine upgrades are applied automatically to the + DB cluster during the maintenance window. By default, minor engine + upgrades are applied automatically. - - `sqlserver-ex` + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster. - - `sqlserver-web` + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). """ - master_username: str | None = ... + deletion_protection: bool | None """ - The name for the master user. - - This setting doesn't apply to Amazon Aurora DB instances. The name for - the master user is managed by the DB cluster. + Specifies whether the DB cluster has deletion protection enabled. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. - This setting is required for RDS DB instances. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + global_cluster_identifier: str | None + """ + The global cluster ID of an Aurora cluster that becomes the primary + cluster in the new global database cluster. - Constraints: + Valid for Cluster Type: Aurora DB clusters only + """ + enable_http_endpoint: bool | None + """ + Specifies whether to enable the HTTP endpoint for the DB cluster. By + default, the HTTP endpoint isn't enabled. - - Must be 1 to 16 letters, numbers, or underscores. + When enabled, the HTTP endpoint provides a connectionless web service + API (RDS Data API) for running SQL queries on the DB cluster. You can + also query your database from inside the RDS console with the RDS query + editor. - - First character must be a letter. + For more information, see [Using RDS Data + API](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html) + in the *Amazon Aurora User Guide*. - - Can't be a reserved word for the chosen database engine. + Valid for Cluster Type: Aurora DB clusters only """ - master_user_password: str | None = ... + copy_tags_to_snapshot: bool | None """ - The password for the master user. + Specifies whether to copy all tags from the DB cluster to snapshots of + the DB cluster. The default is not to copy them. - This setting doesn't apply to Amazon Aurora DB instances. The password - for the master user is managed by the DB cluster. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + domain: str | None + """ + The Active Directory directory ID to create the DB cluster in. - Constraints: + For Amazon Aurora DB clusters, Amazon RDS can use Kerberos + authentication to authenticate users that connect to the DB cluster. - - Can't be specified if `ManageMasterUserPassword` is turned on. + For more information, see [Kerberos + authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html) + in the *Amazon Aurora User Guide*. - - Can include any printable ASCII character except \"/\", \"\"\", or - \"@\". For RDS for Oracle, can't include the \"&\" (ampersand) or the - \"'\" (single quotes) character. + Valid for Cluster Type: Aurora DB clusters only + """ + domain_iam_role_name: str | None + """ + The name of the IAM role to use when making API calls to the Directory + Service. - Length Constraints: + Valid for Cluster Type: Aurora DB clusters only + """ + enable_global_write_forwarding: bool | None + """ + Specifies whether to enable this DB cluster to forward write operations + to the primary cluster of a global cluster (Aurora global database). By + default, write operations are not allowed on Aurora DB clusters that are + secondary clusters in an Aurora global database. - - RDS for Db2 - Must contain from 8 to 255 characters. + You can set this value only on Aurora DB clusters that are members of an + Aurora global database. With this parameter enabled, a secondary cluster + can forward writes to the current primary cluster, and the resulting + changes are replicated back to this cluster. For the primary DB cluster + of an Aurora global database, this value is used immediately if the + primary is demoted by a global cluster API operation, but it does + nothing until then. - - RDS for MariaDB - Must contain from 8 to 41 characters. + Valid for Cluster Type: Aurora DB clusters only + """ + network_type: str | None + """ + The network type of the DB cluster. - - RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. + The network type is determined by the `DBSubnetGroup` specified for the + DB cluster. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). - - RDS for MySQL - Must contain from 8 to 41 characters. + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon Aurora User Guide.* - - RDS for Oracle - Must contain from 8 to 30 characters. + Valid for Cluster Type: Aurora DB clusters only - - RDS for PostgreSQL - Must contain from 8 to 128 characters. + Valid Values: `IPV4 | DUAL` """ - db_security_groups: list[str] | None = ... + serverless_v2_scaling_configuration: ( + ServerlessV2ScalingConfiguration | ServerlessV2ScalingConfigurationDict | None + ) """ - A list of DB security groups to associate with this DB instance. + Contains the scaling configuration of an Aurora Serverless v2 DB + cluster. - This setting applies to the legacy EC2-Classic platform, which is no - longer used to create new DB instances. Use the `VpcSecurityGroupIds` - setting instead. + For more information, see [Using Amazon Aurora Serverless + v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + in the *Amazon Aurora User Guide*. """ - vpc_security_group_ids: list[str] | None = ... + monitoring_interval: int | None """ - A list of Amazon EC2 VPC security groups to associate with this DB - instance. + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB cluster. To turn off collecting + Enhanced Monitoring metrics, specify `0`. - This setting doesn't apply to Amazon Aurora DB instances. The - associated list of EC2 VPC security groups is managed by the DB cluster. + If `MonitoringRoleArn` is specified, also set `MonitoringInterval` to a + value other than `0`. - Default: The default EC2 VPC security group for the DB subnet group's - VPC. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + + Default: `0` """ - availability_zone: str | None = ... + monitoring_role_arn: str | None """ - The Availability Zone (AZ) where the database will be created. For - information on Amazon Web Services Regions and Availability Zones, see - [Regions and Availability - Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html). + The Amazon Resource Name (ARN) for the IAM role that permits RDS to send + Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is + `arn:aws:iam:123456789012:role/emaccess`. For information on creating a + monitoring role, see [Setting up and enabling Enhanced + Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) + in the *Amazon RDS User Guide*. - For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in - three separate Availability Zones. Specify one of these Availability - Zones. Aurora automatically chooses an appropriate Availability Zone if - you don't specify one. + If `MonitoringInterval` is set to a value other than `0`, supply a + `MonitoringRoleArn` value. - Default: A random, system-chosen Availability Zone in the endpoint's - Amazon Web Services Region. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + database_insights_mode: str | None + """ + The mode of Database Insights to enable for the DB cluster. - Constraints: + If you set this value to `advanced`, you must also set the + `PerformanceInsightsEnabled` parameter to `true` and the + `PerformanceInsightsRetentionPeriod` parameter to 465. - - The `AvailabilityZone` parameter can't be specified if the DB - instance is a Multi-AZ deployment. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + enable_performance_insights: bool | None + """ + Specifies whether to turn on Performance Insights for the DB cluster. - - The specified Availability Zone must be in the same Amazon Web - Services Region as the current endpoint. + For more information, see [Using Amazon Performance + Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + in the *Amazon RDS User Guide*. - Example: `us-east-1d` + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters """ - db_subnet_group_name: str | None = ... + performance_insights_kms_key_id: str | None """ - A DB subnet group to associate with this DB instance. + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. - Constraints: + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. - - Must match the name of an existing DB subnet group. + If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. - Example: `mydbsubnetgroup` + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters """ - preferred_maintenance_window: str | None = ... + performance_insights_retention_period: int | None """ - The time range each week during which system maintenance can occur. For - more information, see [Amazon RDS Maintenance - Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance) - in the *Amazon RDS User Guide.* + The number of days to retain Performance Insights data. - The default is a 30-minute window selected at random from an 8-hour - block of time for each Amazon Web Services Region, occurring on a random - day of the week. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - Constraints: + Valid Values: - - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. + - `7` - - The day values must be `mon | tue | wed | thu | fri | sat | sun`. + - *month* * 31, where *month* is a number of months from 1-23. + Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 + months * 31) - - Must be in Universal Coordinated Time (UTC). + - `731` - - Must not conflict with the preferred backup window. + Default: `7` days - - Must be at least 30 minutes. + If you specify a retention period that isn't valid, such as `94`, + Amazon RDS issues an error. """ - db_parameter_group_name: str | None = ... + enable_limitless_database: bool | None """ - The name of the DB parameter group to associate with this DB instance. - If you don't specify a value, then Amazon RDS uses the default DB - parameter group for the specified DB engine and version. - - This setting doesn't apply to RDS Custom DB instances. + Specifies whether to enable Aurora Limitless Database. You must enable + Aurora Limitless Database to create a DB shard group. - Constraints: + Valid for: Aurora DB clusters only - - Must be 1 to 255 letters, numbers, or hyphens. + Note: + This setting is no longer used. Instead use the `ClusterScalabilityType` + setting. + """ + cluster_scalability_type: str | None + """ + Specifies the scalability mode of the Aurora DB cluster. When set to + `limitless`, the cluster operates as an Aurora Limitless Database. When + set to `standard` (the default), the cluster uses normal DB instance + creation. - - The first character must be a letter. + Valid for: Aurora DB clusters only - - Can't end with a hyphen or contain two consecutive hyphens. + Note: + You can't modify this setting after you create the DB cluster. """ - backup_retention_period: int | None = ... + db_system_id: str | None + """Reserved for future use.""" + manage_master_user_password: bool | None """ - The number of days for which automated backups are retained. Setting - this parameter to a positive number enables backups. Setting this - parameter to `0` disables automated backups. + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. - This setting doesn't apply to Amazon Aurora DB instances. The retention - period for automated backups is managed by the DB cluster. + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide* and [Password management with Amazon Web + Services Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) + in the *Amazon Aurora User Guide.* - Default: `1` + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters Constraints: - - Must be a value from 0 to 35. - - - Can't be set to 0 if the DB instance is a source to read replicas. - - - Can't be set to 0 for an RDS Custom for Oracle DB instance. + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. """ - preferred_backup_window: str | None = ... + enable_local_write_forwarding: bool | None """ - The daily time range during which automated backups are created if - automated backups are enabled, using the `BackupRetentionPeriod` - parameter. The default is a 30-minute window selected at random from an - 8-hour block of time for each Amazon Web Services Region. For more - information, see [Backup - window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) - in the *Amazon RDS User Guide*. + Specifies whether read replicas can forward write operations to the + writer DB instance in the DB cluster. By default, write operations + aren't allowed on reader DB instances. - This setting doesn't apply to Amazon Aurora DB instances. The daily - time range for creating automated backups is managed by the DB cluster. + Valid for: Aurora DB clusters only + """ + master_user_secret_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. - Constraints: + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB cluster. - - Must be in the format `hh24:mi-hh24:mi`. + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. - - Must be in Universal Coordinated Time (UTC). + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. - - Must not conflict with the preferred maintenance window. + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. - - Must be at least 30 minutes. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters """ - port: int | None = ... + ca_certificate_identifier: str | None """ - The port number on which the database accepts connections. - - This setting doesn't apply to Aurora DB instances. The port number is - managed by the cluster. - - Valid Values: `1150-65535` + The CA certificate identifier to use for the DB cluster's server + certificate. - Default: + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide*. - - RDS for Db2 - `50000` + Valid for Cluster Type: Multi-AZ DB clusters + """ + engine_lifecycle_support: str | None + """ + The lifecycle type for this DB cluster. - - RDS for MariaDB - `3306` + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB cluster into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, creating the DB cluster will fail if the DB major version is + past its end of standard support date. - - RDS for Microsoft SQL Server - `1433` + You can use this setting to enroll your DB cluster into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB cluster past the end of standard support + for that engine version. For more information, see the following + sections: - - RDS for MySQL - `3306` + - Amazon Aurora - [Amazon RDS Extended Support with Amazon + Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) + in the *Amazon Aurora User Guide* - - RDS for Oracle - `1521` + - Amazon RDS - [Amazon RDS Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide* - - RDS for PostgreSQL - `5432` + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - Constraints: + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` - - For RDS for Microsoft SQL Server, the value can't be `1234`, `1434`, - `3260`, `3343`, `3389`, `47001`, or `49152-49156`. + Default: `open-source-rds-extended-support` """ - multi_az: bool | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ - Specifies whether the DB instance is a Multi-AZ deployment. You can't - set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ - deployment. + Tags to assign to resources associated with the DB cluster. - This setting doesn't apply to Amazon Aurora because the DB instance - Availability Zones (AZs) are managed by the DB cluster. + Valid Values: + + - `cluster-auto-backup` - The DB cluster's automated backup. """ - engine_version: str | None = ... + master_user_authentication_type: str | None """ - The version number of the database engine to use. - - This setting doesn't apply to Amazon Aurora DB instances. The version - number of the database engine the DB instance uses is managed by the DB - cluster. + Specifies the authentication type for the master user. With IAM master + user authentication, you can configure the master DB user with IAM + database authentication when you create a DB cluster. - For a list of valid engine versions, use the `DescribeDBEngineVersions` - operation. + You can specify one of the following values: - The following are the database engines and links to information about - the major and minor versions that are available with Amazon RDS. Not - every database engine is available for every Amazon Web Services Region. + - `password` - Use standard database authentication with a password. - Amazon RDS Custom for Oracle + - `iam-db-auth` - Use IAM database authentication for the master user. - : A custom engine version (CEV) that you have previously created. This - setting is required for RDS Custom for Oracle. The CEV name has the - following format: 19.*customized_string*. A valid CEV name is - `19.my_cev1`. For more information, see [Creating an RDS Custom for - Oracle DB - instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create) - in the *Amazon RDS User Guide*. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - Amazon RDS Custom for SQL Server + This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL + engines. + """ + with_express_configuration: bool | None + """ + Specifies to create an Aurora DB Cluster with express configuration in + seconds. Express configuration provides a cluster with a writer instance + and feature specific values set to all other input parameters of this + API. - : See [RDS Custom for SQL Server general - requirements](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html) - in the *Amazon RDS User Guide*. + Valid for Cluster Type: Aurora DB clusters + """ + associated_roles: ( + Sequence[DBClusterAssociatedRole | DBClusterAssociatedRoleDict] | None + ) + """ + A list of Amazon Web Services Identity and Access Management (IAM) roles + to associate with the DB cluster. Each role grants the DB cluster + permission to access other Amazon Web Services on your behalf. For each + role, specify a role ARN and, optionally, the feature name (such as + `s3Import`, `s3Export`, or `Lambda`). - RDS for Db2 + Valid for Cluster Type: Aurora DB clusters only + """ - : For information, see [Db2 on Amazon RDS - versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt) - in the *Amazon RDS User Guide*. +@dataclass(kw_only=True) +class CreateDBClusterOutput(_SerdeShape): + """Dataclass for CreateDBClusterOutput structure.""" - RDS for MariaDB + db_cluster: DBCluster | None = ... + """ + Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB + cluster. - : For information, see [MariaDB on Amazon RDS - versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt) - in the *Amazon RDS User Guide*. + For an Amazon Aurora DB cluster, this data type is used as a response + element in the operations `CreateDBCluster`, `DeleteDBCluster`, + `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, + `PromoteReadReplicaDBCluster`, `RestoreDBClusterFromS3`, + `RestoreDBClusterFromSnapshot`, `RestoreDBClusterToPointInTime`, + `StartDBCluster`, and `StopDBCluster`. - RDS for Microsoft SQL Server + For a Multi-AZ DB cluster, this data type is used as a response element + in the operations `CreateDBCluster`, `DeleteDBCluster`, + `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, + `RebootDBCluster`, `RestoreDBClusterFromSnapshot`, and + `RestoreDBClusterToPointInTime`. - : For information, see [Microsoft SQL Server versions on Amazon - RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport) - in the *Amazon RDS User Guide*. + For more information on Amazon Aurora DB clusters, see [What is Amazon + Aurora?](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) + in the *Amazon Aurora User Guide.* - RDS for MySQL + For more information on Multi-AZ DB clusters, see [Multi-AZ deployments + with two readable standby DB + instances](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) + in the *Amazon RDS User Guide.* + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ - : For information, see [MySQL on Amazon RDS - versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) - in the *Amazon RDS User Guide*. +@dataclass(kw_only=True) +class CreateDBClusterParameterGroupInput(_SerdeShape): + """""" - RDS for Oracle + db_cluster_parameter_group_name: str | None = ... + """ + The name of the DB cluster parameter group. - : For information, see [Oracle Database Engine release - notes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html) - in the *Amazon RDS User Guide*. + Constraints: - RDS for PostgreSQL + - Must not match the name of an existing DB cluster parameter group. - : For information, see [Amazon RDS for PostgreSQL versions and - extensions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts) - in the *Amazon RDS User Guide*. + Note: + This value is stored as a lowercase string. """ - auto_minor_version_upgrade: bool | None = ... + db_parameter_group_family: str | None = ... """ - Specifies whether minor engine upgrades are applied automatically to the - DB instance during the maintenance window. By default, minor engine - upgrades are applied automatically. + The DB cluster parameter group family name. A DB cluster parameter group + can be associated with one and only one DB cluster parameter group + family, and can be applied only to a DB cluster running a database + engine and engine version compatible with that DB cluster parameter + group family. - If you create an RDS Custom DB instance, you must set - `AutoMinorVersionUpgrade` to `false`. + **Aurora MySQL** - For more information about automatic minor version upgrades, see - [Automatically upgrading the minor engine - version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). - """ - license_model: str | None = ... - """ - The license model information for this DB instance. + Example: `aurora-mysql5.7`, `aurora-mysql8.0` - Note: - License models for RDS for Db2 require additional configuration. The - bring your own license (BYOL) model requires a custom parameter group - and an Amazon Web Services License Manager self-managed license. The Db2 - license through Amazon Web Services Marketplace model requires an Amazon - Web Services Marketplace subscription. For more information, see [Amazon - RDS for Db2 licensing - options](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) - in the *Amazon RDS User Guide*. + **Aurora PostgreSQL** - The default for RDS for Db2 is `bring-your-own-license`. + Example: `aurora-postgresql14` - This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + **RDS for MySQL** - Valid Values: + Example: `mysql8.0` - - RDS for Db2 - `bring-your-own-license | marketplace-license` + **RDS for PostgreSQL** - - RDS for MariaDB - `general-public-license` + Example: `postgres13` - - RDS for Microsoft SQL Server - - `license-included | bring-your-own-media` + To list all of the available parameter group families for a DB engine, + use the following command: - - RDS for MySQL - `general-public-license` + `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine ` - - RDS for Oracle - `bring-your-own-license | license-included` + For example, to list all of the available parameter group families for + the Aurora PostgreSQL DB engine, use the following command: - - RDS for PostgreSQL - `postgresql-license` - """ - iops: int | None = ... - """ - The amount of Provisioned IOPS (input/output operations per second) to - initially allocate for the DB instance. For information about valid IOPS - values, see [Amazon RDS DB instance - storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html) - in the *Amazon RDS User Guide*. + `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` - This setting doesn't apply to Amazon Aurora DB instances. Storage is - managed by the DB cluster. + Note: + The output contains duplicates. - Constraints: + The following are the valid DB engine values: - - For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a - multiple between .5 and 50 of the storage amount for the DB instance. + - `aurora-mysql` - - For RDS for SQL Server - Must be a multiple between 1 and 50 of the - storage amount for the DB instance. - """ - storage_throughput: int | None = ... - """ - The storage throughput value, in mebibyte per second (MiBps), for the DB - instance. + - `aurora-postgresql` - This setting applies only to the `gp3` storage type. + - `mysql` - This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + - `postgres` """ - option_group_name: str | None = ... + description: str | None = ... + """The description for the DB cluster parameter group.""" + tags: list[Tag] | None = ... + """Tags to assign to the DB cluster parameter group.""" + +class CreateDBClusterParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBClusterParameterGroupInput`.""" + + db_cluster_parameter_group_name: Required[str] """ - The option group to associate the DB instance with. + The name of the DB cluster parameter group. - Permanent options, such as the TDE option for Oracle Advanced Security - TDE, can't be removed from an option group. Also, that option group - can't be removed from a DB instance after it is associated with a DB - instance. + Constraints: - This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + - Must not match the name of an existing DB cluster parameter group. + + Note: + This value is stored as a lowercase string. """ - character_set_name: str | None = ... + db_parameter_group_family: Required[str] """ - For supported engines, the character set (`CharacterSet`) to associate - the DB instance with. + The DB cluster parameter group family name. A DB cluster parameter group + can be associated with one and only one DB cluster parameter group + family, and can be applied only to a DB cluster running a database + engine and engine version compatible with that DB cluster parameter + group family. - This setting doesn't apply to the following DB instances: + **Aurora MySQL** - - Amazon Aurora - The character set is managed by the DB cluster. For - more information, see `CreateDBCluster`. + Example: `aurora-mysql5.7`, `aurora-mysql8.0` - - RDS Custom - However, if you need to change the character set, you can - change it on the database itself. + **Aurora PostgreSQL** + + Example: `aurora-postgresql14` + + **RDS for MySQL** + + Example: `mysql8.0` + + **RDS for PostgreSQL** + + Example: `postgres13` + + To list all of the available parameter group families for a DB engine, + use the following command: + + `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine ` + + For example, to list all of the available parameter group families for + the Aurora PostgreSQL DB engine, use the following command: + + `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql` + + Note: + The output contains duplicates. + + The following are the valid DB engine values: + + - `aurora-mysql` + + - `aurora-postgresql` + + - `mysql` + + - `postgres` """ - nchar_character_set_name: str | None = ... + description: Required[str] + """The description for the DB cluster parameter group.""" + tags: Sequence[Tag | TagDict] | None + """Tags to assign to the DB cluster parameter group.""" + +@dataclass(kw_only=True) +class CreateDBClusterParameterGroupOutput(_SerdeShape): + """Dataclass for CreateDBClusterParameterGroupOutput structure.""" + + db_cluster_parameter_group: DBClusterParameterGroup | None = ... """ - The name of the NCHAR character set for the Oracle DB instance. + Contains the details of an Amazon RDS DB cluster parameter group. - This setting doesn't apply to RDS Custom DB instances. + This data type is used as a response element in the + `DescribeDBClusterParameterGroups` action. """ - publicly_accessible: bool | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Specifies whether the DB instance is publicly accessible. - When the DB instance is publicly accessible and you connect from outside - of the DB instance's virtual private cloud (VPC), its domain name - system (DNS) endpoint resolves to the public IP address. When you - connect from within the same VPC as the DB instance, the endpoint - resolves to the private IP address. Access to the DB instance is - controlled by its security group settings. +@dataclass(kw_only=True) +class CreateDBClusterSnapshotInput(_SerdeShape): + """""" - When the DB instance isn't publicly accessible, it is an internal DB - instance with a DNS name that resolves to a private IP address. + db_cluster_snapshot_identifier: str | None = ... + """ + The identifier of the DB cluster snapshot. This parameter is stored as a + lowercase string. - The default behavior when `PubliclyAccessible` is not specified depends - on whether a `DBSubnetGroup` is specified. + Constraints: - If `DBSubnetGroup` isn't specified, `PubliclyAccessible` defaults to - `false` for Aurora instances and `true` for non-Aurora instances. + - Must contain from 1 to 63 letters, numbers, or hyphens. - If `DBSubnetGroup` is specified, `PubliclyAccessible` defaults to - `false` unless the value of `DBSubnetGroup` is `default`, in which case - `PubliclyAccessible` defaults to `true`. + - First character must be a letter. - If `PubliclyAccessible` is true and the VPC that the `DBSubnetGroup` is - in doesn't have an internet gateway attached to it, Amazon RDS returns - an error. + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `my-cluster1-snapshot1` """ - tags: list[Tag] | None = ... - """Tags to assign to the DB instance.""" db_cluster_identifier: str | None = ... """ - The identifier of the DB cluster that this DB instance will belong to. + The identifier of the DB cluster to create a snapshot for. This + parameter isn't case-sensitive. - This setting doesn't apply to RDS Custom DB instances. + Constraints: + + - Must match the identifier of an existing DBCluster. + + Example: `my-cluster1` """ - storage_type: str | None = ... + tags: list[Tag] | None = ... + """The tags to be assigned to the DB cluster snapshot.""" + +class CreateDBClusterSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBClusterSnapshotInput`.""" + + db_cluster_snapshot_identifier: Required[str] """ - The storage type to associate with the DB instance. + The identifier of the DB cluster snapshot. This parameter is stored as a + lowercase string. - If you specify `io1`, `io2`, or `gp3`, you must also include a value for - the `Iops` parameter. + Constraints: - This setting doesn't apply to Amazon Aurora DB instances. Storage is - managed by the DB cluster. + - Must contain from 1 to 63 letters, numbers, or hyphens. - Valid Values: `gp2 | gp3 | io1 | io2 | standard` + - First character must be a letter. - Default: `io1`, if the `Iops` parameter is specified. Otherwise, `gp3`. + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `my-cluster1-snapshot1` """ - tde_credential_arn: str | None = ... + db_cluster_identifier: Required[str] """ - The ARN from the key store with which to associate the instance for TDE - encryption. + The identifier of the DB cluster to create a snapshot for. This + parameter isn't case-sensitive. - This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + Constraints: + + - Must match the identifier of an existing DBCluster. + + Example: `my-cluster1` """ - tde_credential_password: str | None = ... + tags: Sequence[Tag | TagDict] | None + """The tags to be assigned to the DB cluster snapshot.""" + +@dataclass(kw_only=True) +class CreateDBClusterSnapshotOutput(_SerdeShape): + """Dataclass for CreateDBClusterSnapshotOutput structure.""" + + db_cluster_snapshot: DBClusterSnapshot | None = ... """ - The password for the given ARN from the key store in order to access the - device. + Contains the details for an Amazon RDS DB cluster snapshot + + This data type is used as a response element in the + `DescribeDBClusterSnapshots` action. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateDBInstanceInput(_SerdeShape): + """""" + + db_name: str | None = ... + """ + The meaning of this parameter differs according to the database engine + you use. + + Amazon Aurora MySQL + + : The name of the database to create when the primary DB instance of + the Aurora MySQL DB cluster is created. If this parameter isn't + specified for an Aurora MySQL DB cluster, no database is created in + the DB cluster. + + Constraints: + + - Must contain 1 to 64 alphanumeric characters. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the database engine. + + Amazon Aurora PostgreSQL + + : The name of the database to create when the primary DB instance of + the Aurora PostgreSQL DB cluster is created. A database named + `postgres` is always created. If this parameter is specified, an + additional database with this name is created. + + Constraints: + + - It must contain 1 to 63 alphanumeric characters. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0 to 9). + + - Can't be a word reserved by the database engine. + + Amazon RDS Custom for Oracle + + : The Oracle System ID (SID) of the created RDS Custom DB instance. If + you don't specify a value, the default value is `ORCL` for non-CDBs + and `RDSCDB` for CDBs. + + Default: `ORCL` + + Constraints: + + - Must contain 1 to 8 alphanumeric characters. + + - Must contain a letter. + + - Can't be a word reserved by the database engine. + + Amazon RDS Custom for SQL Server + + : Not applicable. Must be null. + + RDS for Db2 + + : The name of the database to create when the DB instance is created. + If this parameter isn't specified, no database is created in the DB + instance. In some cases, we recommend that you don't add a database + name. For more information, see [Additional + considerations](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations) + in the *Amazon RDS User Guide*. + + Constraints: + + - Must contain 1 to 64 letters or numbers. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the specified database engine. + + RDS for MariaDB + + : The name of the database to create when the DB instance is created. + If this parameter isn't specified, no database is created in the DB + instance. + + Constraints: + + - Must contain 1 to 64 letters or numbers. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the specified database engine. + + RDS for MySQL + + : The name of the database to create when the DB instance is created. + If this parameter isn't specified, no database is created in the DB + instance. + + Constraints: + + - Must contain 1 to 64 letters or numbers. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the specified database engine. + + RDS for Oracle + + : The Oracle System ID (SID) of the created DB instance. If you don't + specify a value, the default value is `ORCL`. You can't specify the + string `null`, or any other reserved word, for `DBName`. + + Default: `ORCL` + + Constraints: + + - Can't be longer than 8 characters. + + RDS for PostgreSQL + + : The name of the database to create when the DB instance is created. + A database named `postgres` is always created. If this parameter is + specified, an additional database with this name is created. + + Constraints: + + - Must contain 1 to 63 letters, numbers, or underscores. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the specified database engine. + + RDS for SQL Server + + : Not applicable. Must be null. + """ + db_instance_identifier: str | None = ... + """ + The identifier for this DB instance. This parameter is stored as a + lowercase string. + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `mydbinstance` + """ + allocated_storage: int | None = ... + """ + The amount of storage in gibibytes (GiB) to allocate for the DB + instance. + + This setting doesn't apply to Amazon Aurora DB instances. Aurora + cluster volumes automatically grow as the amount of data in your + database increases, though you are only charged for the space that you + use in an Aurora cluster volume. + + Amazon RDS Custom + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for + SQL Server. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 40 to + 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL + Server. + + RDS for Db2 + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp3): Must be an integer from 20 to + 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + RDS for MariaDB + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 20 to 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + - Magnetic storage (standard): Must be an integer from 5 to 3072. + + RDS for MySQL + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 20 to 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + - Magnetic storage (standard): Must be an integer from 5 to 3072. + + RDS for Oracle + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 20 to 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + - Magnetic storage (standard): Must be an integer from 10 to 3072. + + RDS for PostgreSQL + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 20 to 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + - Magnetic storage (standard): Must be an integer from 5 to 3072. + + RDS for SQL Server + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): + + - Enterprise and Standard editions: Must be an integer from 20 to + 16384. + + - Web and Express editions: Must be an integer from 20 to 16384. + + - Provisioned IOPS storage (io1, io2): + + - Enterprise and Standard editions: Must be an integer from 100 to + 16384. + + - Web and Express editions: Must be an integer from 100 to 16384. + + - Magnetic storage (standard): + + - Enterprise and Standard editions: Must be an integer from 20 to + 1024. + + - Web and Express editions: Must be an integer from 20 to 1024. + """ + db_instance_class: str | None = ... + """ + The compute and memory capacity of the DB instance, for example + `db.m5.large`. Not all DB instance classes are available in all Amazon + Web Services Regions, or for all database engines. For the full list of + DB instance classes, and availability for your engine, see [DB instance + classes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide* or [Aurora DB instance + classes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) + in the *Amazon Aurora User Guide*. + """ + engine: str | None = ... + """ + The database engine to use for this DB instance. + + Not every database engine is available in every Amazon Web Services + Region. + + Valid Values: + + - `aurora-mysql` (for Aurora MySQL DB instances) + + - `aurora-postgresql` (for Aurora PostgreSQL DB instances) + + - `custom-oracle-ee` (for RDS Custom for Oracle DB instances) + + - `custom-oracle-ee-cdb` (for RDS Custom for Oracle DB instances) + + - `custom-oracle-se2` (for RDS Custom for Oracle DB instances) + + - `custom-oracle-se2-cdb` (for RDS Custom for Oracle DB instances) + + - `custom-sqlserver-ee` (for RDS Custom for SQL Server DB instances) + + - `custom-sqlserver-se` (for RDS Custom for SQL Server DB instances) + + - `custom-sqlserver-web` (for RDS Custom for SQL Server DB instances) + + - `custom-sqlserver-dev` (for RDS Custom for SQL Server DB instances) + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-dev-ee` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + master_username: str | None = ... + """ + The name for the master user. + + This setting doesn't apply to Amazon Aurora DB instances. The name for + the master user is managed by the DB cluster. + + This setting is required for RDS DB instances. + + Constraints: + + - Must be 1 to 16 letters, numbers, or underscores. + + - First character must be a letter. + + - Can't be a reserved word for the chosen database engine. + """ + master_user_password: str | None = ... + """ + The password for the master user. + + This setting doesn't apply to Amazon Aurora DB instances. The password + for the master user is managed by the DB cluster. + + Constraints: + + - Can't be specified if `ManageMasterUserPassword` is turned on. + + - Can include any printable ASCII character except \"/\", \"\"\", or + \"@\". For RDS for Oracle, can't include the \"&\" (ampersand) or the + \"'\" (single quotes) character. + + Length Constraints: + + - RDS for Db2 - Must contain from 8 to 255 characters. + + - RDS for MariaDB - Must contain from 8 to 41 characters. + + - RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. + + - RDS for MySQL - Must contain from 8 to 41 characters. + + - RDS for Oracle - Must contain from 8 to 30 characters. + + - RDS for PostgreSQL - Must contain from 8 to 128 characters. + """ + db_security_groups: list[str] | None = ... + """ + A list of DB security groups to associate with this DB instance. + + This setting applies to the legacy EC2-Classic platform, which is no + longer used to create new DB instances. Use the `VpcSecurityGroupIds` + setting instead. + """ + vpc_security_group_ids: list[str] | None = ... + """ + A list of Amazon EC2 VPC security groups to associate with this DB + instance. + + This setting doesn't apply to Amazon Aurora DB instances. The + associated list of EC2 VPC security groups is managed by the DB cluster. + + Default: The default EC2 VPC security group for the DB subnet group's + VPC. + """ + availability_zone: str | None = ... + """ + The Availability Zone (AZ) where the database will be created. For + information on Amazon Web Services Regions and Availability Zones, see + [Regions and Availability + Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html). + + For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in + three separate Availability Zones. Specify one of these Availability + Zones. Aurora automatically chooses an appropriate Availability Zone if + you don't specify one. + + Default: A random, system-chosen Availability Zone in the endpoint's + Amazon Web Services Region. + + Constraints: + + - The `AvailabilityZone` parameter can't be specified if the DB + instance is a Multi-AZ deployment. + + - The specified Availability Zone must be in the same Amazon Web + Services Region as the current endpoint. + + Example: `us-east-1d` + """ + db_subnet_group_name: str | None = ... + """ + A DB subnet group to associate with this DB instance. + + Constraints: + + - Must match the name of an existing DB subnet group. + + Example: `mydbsubnetgroup` + """ + preferred_maintenance_window: str | None = ... + """ + The time range each week during which system maintenance can occur. For + more information, see [Amazon RDS Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance) + in the *Amazon RDS User Guide.* + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region, occurring on a random + day of the week. + + Constraints: + + - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. + + - The day values must be `mon | tue | wed | thu | fri | sat | sun`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred backup window. + + - Must be at least 30 minutes. + """ + db_parameter_group_name: str | None = ... + """ + The name of the DB parameter group to associate with this DB instance. + If you don't specify a value, then Amazon RDS uses the default DB + parameter group for the specified DB engine and version. + + This setting doesn't apply to RDS Custom DB instances. + + Constraints: + + - Must be 1 to 255 letters, numbers, or hyphens. + + - The first character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + """ + backup_retention_period: int | None = ... + """ + The number of days for which automated backups are retained. Setting + this parameter to a positive number enables backups. Setting this + parameter to `0` disables automated backups. + + This setting doesn't apply to Amazon Aurora DB instances. The retention + period for automated backups is managed by the DB cluster. + + Default: `1` + + Constraints: + + - Must be a value from 0 to 35. + + - Can't be set to 0 if the DB instance is a source to read replicas. + + - Can't be set to 0 for an RDS Custom for Oracle DB instance. + """ + preferred_backup_window: str | None = ... + """ + The daily time range during which automated backups are created if + automated backups are enabled, using the `BackupRetentionPeriod` + parameter. The default is a 30-minute window selected at random from an + 8-hour block of time for each Amazon Web Services Region. For more + information, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora DB instances. The daily + time range for creating automated backups is managed by the DB cluster. + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + port: int | None = ... + """ + The port number on which the database accepts connections. + + This setting doesn't apply to Aurora DB instances. The port number is + managed by the cluster. + + Valid Values: `1150-65535` + + Default: + + - RDS for Db2 - `50000` + + - RDS for MariaDB - `3306` + + - RDS for Microsoft SQL Server - `1433` + + - RDS for MySQL - `3306` + + - RDS for Oracle - `1521` + + - RDS for PostgreSQL - `5432` + + Constraints: + + - For RDS for Microsoft SQL Server, the value can't be `1234`, `1434`, + `3260`, `3343`, `3389`, `47001`, or `49152-49156`. + """ + multi_az: bool | None = ... + """ + Specifies whether the DB instance is a Multi-AZ deployment. You can't + set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ + deployment. + + This setting doesn't apply to Amazon Aurora because the DB instance + Availability Zones (AZs) are managed by the DB cluster. + """ + engine_version: str | None = ... + """ + The version number of the database engine to use. + + This setting doesn't apply to Amazon Aurora DB instances. The version + number of the database engine the DB instance uses is managed by the DB + cluster. + + For a list of valid engine versions, use the `DescribeDBEngineVersions` + operation. + + The following are the database engines and links to information about + the major and minor versions that are available with Amazon RDS. Not + every database engine is available for every Amazon Web Services Region. + + Amazon RDS Custom for Oracle + + : A custom engine version (CEV) that you have previously created. This + setting is required for RDS Custom for Oracle. The CEV name has the + following format: 19.*customized_string*. A valid CEV name is + `19.my_cev1`. For more information, see [Creating an RDS Custom for + Oracle DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create) + in the *Amazon RDS User Guide*. + + Amazon RDS Custom for SQL Server + + : See [RDS Custom for SQL Server general + requirements](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html) + in the *Amazon RDS User Guide*. + + RDS for Db2 + + : For information, see [Db2 on Amazon RDS + versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt) + in the *Amazon RDS User Guide*. + + RDS for MariaDB + + : For information, see [MariaDB on Amazon RDS + versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt) + in the *Amazon RDS User Guide*. + + RDS for Microsoft SQL Server + + : For information, see [Microsoft SQL Server versions on Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport) + in the *Amazon RDS User Guide*. + + RDS for MySQL + + : For information, see [MySQL on Amazon RDS + versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) + in the *Amazon RDS User Guide*. + + RDS for Oracle + + : For information, see [Oracle Database Engine release + notes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html) + in the *Amazon RDS User Guide*. + + RDS for PostgreSQL + + : For information, see [Amazon RDS for PostgreSQL versions and + extensions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts) + in the *Amazon RDS User Guide*. + """ + auto_minor_version_upgrade: bool | None = ... + """ + Specifies whether minor engine upgrades are applied automatically to the + DB instance during the maintenance window. By default, minor engine + upgrades are applied automatically. + + If you create an RDS Custom DB instance, you must set + `AutoMinorVersionUpgrade` to `false`. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + license_model: str | None = ... + """ + The license model information for this DB instance. + + Note: + License models for RDS for Db2 require additional configuration. The + bring your own license (BYOL) model requires a custom parameter group + and an Amazon Web Services License Manager self-managed license. The Db2 + license through Amazon Web Services Marketplace model requires an Amazon + Web Services Marketplace subscription. For more information, see [Amazon + RDS for Db2 licensing + options](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) + in the *Amazon RDS User Guide*. + + The default for RDS for Db2 is `bring-your-own-license`. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + + Valid Values: + + - RDS for Db2 - `bring-your-own-license | marketplace-license` + + - RDS for MariaDB - `general-public-license` + + - RDS for Microsoft SQL Server - + `license-included | bring-your-own-media` + + - RDS for MySQL - `general-public-license` + + - RDS for Oracle - `bring-your-own-license | license-included` + + - RDS for PostgreSQL - `postgresql-license` + """ + iops: int | None = ... + """ + The amount of Provisioned IOPS (input/output operations per second) to + initially allocate for the DB instance. For information about valid IOPS + values, see [Amazon RDS DB instance + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora DB instances. Storage is + managed by the DB cluster. + + Constraints: + + - For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a + multiple between .5 and 50 of the storage amount for the DB instance. + + - For RDS for SQL Server - Must be a multiple between 1 and 50 of the + storage amount for the DB instance. + """ + storage_throughput: int | None = ... + """ + The storage throughput value, in mebibyte per second (MiBps), for the DB + instance. + + This setting applies only to the `gp3` storage type. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + option_group_name: str | None = ... + """ + The option group to associate the DB instance with. + + Permanent options, such as the TDE option for Oracle Advanced Security + TDE, can't be removed from an option group. Also, that option group + can't be removed from a DB instance after it is associated with a DB + instance. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + character_set_name: str | None = ... + """ + For supported engines, the character set (`CharacterSet`) to associate + the DB instance with. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora - The character set is managed by the DB cluster. For + more information, see `CreateDBCluster`. + + - RDS Custom - However, if you need to change the character set, you can + change it on the database itself. + """ + nchar_character_set_name: str | None = ... + """ + The name of the NCHAR character set for the Oracle DB instance. + + This setting doesn't apply to RDS Custom DB instances. + """ + publicly_accessible: bool | None = ... + """ + Specifies whether the DB instance is publicly accessible. + + When the DB instance is publicly accessible and you connect from outside + of the DB instance's virtual private cloud (VPC), its domain name + system (DNS) endpoint resolves to the public IP address. When you + connect from within the same VPC as the DB instance, the endpoint + resolves to the private IP address. Access to the DB instance is + controlled by its security group settings. + + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. + + The default behavior when `PubliclyAccessible` is not specified depends + on whether a `DBSubnetGroup` is specified. + + If `DBSubnetGroup` isn't specified, `PubliclyAccessible` defaults to + `false` for Aurora instances and `true` for non-Aurora instances. + + If `DBSubnetGroup` is specified, `PubliclyAccessible` defaults to + `false` unless the value of `DBSubnetGroup` is `default`, in which case + `PubliclyAccessible` defaults to `true`. + + If `PubliclyAccessible` is true and the VPC that the `DBSubnetGroup` is + in doesn't have an internet gateway attached to it, Amazon RDS returns + an error. + """ + tags: list[Tag] | None = ... + """Tags to assign to the DB instance.""" + db_cluster_identifier: str | None = ... + """ + The identifier of the DB cluster that this DB instance will belong to. + + This setting doesn't apply to RDS Custom DB instances. + """ + storage_type: str | None = ... + """ + The storage type to associate with the DB instance. + + If you specify `io1`, `io2`, or `gp3`, you must also include a value for + the `Iops` parameter. + + This setting doesn't apply to Amazon Aurora DB instances. Storage is + managed by the DB cluster. + + Valid Values: `gp2 | gp3 | io1 | io2 | standard` + + Default: `io1`, if the `Iops` parameter is specified. Otherwise, `gp3`. + """ + tde_credential_arn: str | None = ... + """ + The ARN from the key store with which to associate the instance for TDE + encryption. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + tde_credential_password: str | None = ... + """ + The password for the given ARN from the key store in order to access the + device. + + This setting doesn't apply to RDS Custom DB instances. + """ + storage_encrypted: bool | None = ... + """ + Specifes whether the DB instance is encrypted. By default, it isn't + encrypted. + + For RDS Custom DB instances, either enable this setting or leave it + unset. Otherwise, Amazon RDS reports an error. + + This setting doesn't apply to Amazon Aurora DB instances. The + encryption for DB instances is managed by the DB cluster. + """ + kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier for an encrypted DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + This setting doesn't apply to Amazon Aurora DB instances. The Amazon + Web Services KMS key identifier is managed by the DB cluster. For more + information, see `CreateDBCluster`. + + If `StorageEncrypted` is enabled, and you do not specify a value for the + `KmsKeyId` parameter, then Amazon RDS uses your default KMS key. There + is a default KMS key for your Amazon Web Services account. Your Amazon + Web Services account has a different default KMS key for each Amazon Web + Services Region. + + For Amazon RDS Custom, a KMS key is required for DB instances. For most + RDS engines, if you leave this parameter empty while enabling + `StorageEncrypted`, the engine uses the default KMS key. However, RDS + Custom doesn't use the default key when this parameter is empty. You + must explicitly specify a key. + """ + domain: str | None = ... + """ + The Active Directory directory ID to create the DB instance in. + Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, + and PostgreSQL DB instances in an Active Directory Domain. + + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (The domain is managed by the DB cluster.) + + - RDS Custom + """ + domain_fqdn: str | None = ... + """ + The fully qualified domain name (FQDN) of an Active Directory domain. + + Constraints: + + - Can't be longer than 64 characters. + + Example: `mymanagedADtest.mymanagedAD.mydomain` + """ + domain_ou: str | None = ... + """ + The Active Directory organizational unit for your DB instance to join. + + Constraints: + + - Must be in the distinguished name format. + + - Can't be longer than 64 characters. + + Example: + `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` + """ + domain_auth_secret_arn: str | None = ... + """ + The ARN for the Secrets Manager secret with the credentials for the user + joining the domain. + + Example: + `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` + """ + domain_dns_ips: list[str] | None = ... + """ + The IPv4 DNS IP addresses of your primary and secondary Active Directory + domain controllers. + + Constraints: + + - Two IP addresses must be provided. If there isn't a secondary domain + controller, use the IP address of the primary domain controller for + both entries in the list. + + Example: `123.124.125.126,234.235.236.237` + """ + copy_tags_to_snapshot: bool | None = ... + """ + Specifies whether to copy tags from the DB instance to snapshots of the + DB instance. By default, tags are not copied. + + This setting doesn't apply to Amazon Aurora DB instances. Copying tags + to snapshots is managed by the DB cluster. Setting this value for an + Aurora DB instance has no effect on the DB cluster setting. + """ + monitoring_interval: int | None = ... + """ + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB instance. To disable collection of + Enhanced Monitoring metrics, specify `0`. + + If `MonitoringRoleArn` is specified, then you must set + `MonitoringInterval` to a value other than `0`. + + This setting doesn't apply to RDS Custom DB instances. + + Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + + Default: `0` + """ + monitoring_role_arn: str | None = ... + """ + The ARN for the IAM role that permits RDS to send enhanced monitoring + metrics to Amazon CloudWatch Logs. For example, + `arn:aws:iam:123456789012:role/emaccess`. For information on creating a + monitoring role, see [Setting Up and Enabling Enhanced + Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) + in the *Amazon RDS User Guide*. + + If `MonitoringInterval` is set to a value other than `0`, then you must + supply a `MonitoringRoleArn` value. + + This setting doesn't apply to RDS Custom DB instances. + """ + domain_iam_role_name: str | None = ... + """ + The name of the IAM role to use when making API calls to the Directory + Service. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (The domain is managed by the DB cluster.) + + - RDS Custom + """ + promotion_tier: int | None = ... + """ + The order of priority in which an Aurora Replica is promoted to the + primary instance after a failure of the existing primary instance. For + more information, see [Fault Tolerance for an Aurora DB + Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance) + in the *Amazon Aurora User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + + Default: `1` + + Valid Values: `0 - 15` + """ + timezone: str | None = ... + """ + The time zone of the DB instance. The time zone parameter is currently + supported only by [RDS for + Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone) + and [RDS for SQL + Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone). + """ + enable_iam_database_authentication: bool | None = ... + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. + + For more information, see [IAM Database Authentication for MySQL and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (Mapping Amazon Web Services IAM accounts to database + accounts is managed by the DB cluster.) + + - RDS Custom + """ + database_insights_mode: str | None = ... + """ + The mode of Database Insights to enable for the DB instance. + + Note: + Aurora DB instances inherit this value from the DB cluster, so you + can't change this value. + """ + enable_performance_insights: bool | None = ... + """ + Specifies whether to enable Performance Insights for the DB instance. + For more information, see [Using Amazon Performance + Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + """ + performance_insights_kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. + + This setting doesn't apply to RDS Custom DB instances. + """ + performance_insights_retention_period: int | None = ... + """ + The number of days to retain Performance Insights data. + + This setting doesn't apply to RDS Custom DB instances. + + Valid Values: + + - `7` + + - *month* * 31, where *month* is a number of months from 1-23. + Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 + months * 31) + + - `731` + + Default: `7` days + + If you specify a retention period that isn't valid, such as `94`, + Amazon RDS returns an error. + """ + enable_cloudwatch_logs_exports: list[str] | None = ... + """ + The list of log types to enable for exporting to CloudWatch Logs. For + more information, see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.) + + - RDS Custom + + The following values are valid for each DB engine: + + - RDS for Db2 - `diag.log | notify.log | iam-db-auth-error` + + - RDS for MariaDB - + `audit | error | general | slowquery | iam-db-auth-error` + + - RDS for Microsoft SQL Server - `agent | error` + + - RDS for MySQL - + `audit | error | general | slowquery | iam-db-auth-error` + + - RDS for Oracle - `alert | audit | listener | trace | oemagent` + + - RDS for PostgreSQL - `postgresql | upgrade | iam-db-auth-error` + """ + processor_features: list[ProcessorFeature] | None = ... + """ + The number of CPU cores and the number of threads per core for the DB + instance class of the DB instance. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + deletion_protection: bool | None = ... + """ + Specifies whether the DB instance has deletion protection enabled. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. For more information, see + [Deleting a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + + This setting doesn't apply to Amazon Aurora DB instances. You can + enable or disable deletion protection for the DB cluster. For more + information, see `CreateDBCluster`. DB instances in a DB cluster can be + deleted even when deletion protection is enabled for the DB cluster. + """ + max_allocated_storage: int | None = ... + """ + The upper limit in gibibytes (GiB) to which Amazon RDS can automatically + scale the storage of the DB instance. + + For more information about this setting, including limitations that + apply to it, see [Managing capacity automatically with Amazon RDS + storage + autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (Storage is managed by the DB cluster.) + + - RDS Custom + """ + enable_customer_owned_ip: bool | None = ... + """ + Specifies whether to enable a customer-owned IP address (CoIP) for an + RDS on Outposts DB instance. + + A *CoIP* provides local or external connectivity to resources in your + Outpost subnets through your on-premises network. For some use cases, a + CoIP can provide lower latency for connections to the DB instance from + outside of its virtual private cloud (VPC) on your local network. + + For more information about RDS on Outposts, see [Working with Amazon RDS + on Amazon Web Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + + For more information about CoIPs, see [Customer-owned IP + addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) + in the *Amazon Web Services Outposts User Guide*. + """ + network_type: str | None = ... + """ + The network type of the DB instance. + + The network type is determined by the `DBSubnetGroup` specified for the + DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon RDS User Guide.* + + Valid Values: `IPV4 | DUAL` + """ + backup_target: str | None = ... + """ + The location for storing automated backups and manual snapshots. + + Valid Values: + + - `local` (Dedicated Local Zone) + + - `outposts` (Amazon Web Services Outposts) + + - `region` (Amazon Web Services Region) + + Default: `region` + + For more information, see [Working with Amazon RDS on Amazon Web + Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + """ + custom_iam_instance_profile: str | None = ... + """ + The instance profile associated with the underlying Amazon EC2 instance + of an RDS Custom DB instance. + + This setting is required for RDS Custom. + + Constraints: + + - The profile must exist in your account. + + - The profile must have an IAM role that Amazon EC2 has permissions to + assume. + + - The instance profile name and the associated IAM role name must start + with the prefix `AWSRDSCustom`. + + For the list of permissions required for the IAM role, see [Configure + IAM and your + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) + in the *Amazon RDS User Guide*. + """ + db_system_id: str | None = ... + """ + The Oracle system identifier (SID), which is the name of the Oracle + database instance that manages your database files. In this context, the + term \"Oracle database instance\" refers exclusively to the system + global area (SGA) and Oracle background processes. If you don't specify + a SID, the value defaults to `RDSCDB`. The Oracle SID is also the name + of your CDB. + """ + ca_certificate_identifier: str | None = ... + """ + The CA certificate identifier to use for the DB instance's server + certificate. + + This setting doesn't apply to RDS Custom DB instances. + + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a + connection to a DB + cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + in the *Amazon Aurora User Guide*. + """ + manage_master_user_password: bool | None = ... + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. + """ + master_user_secret_kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + multi_tenant: bool | None = ... + """ + Specifies whether to use the multi-tenant configuration or the + single-tenant configuration (default). This parameter only applies to + RDS for Oracle container database (CDB) engines. + + Note the following restrictions: + + - The DB engine that you specify in the request must support the + multi-tenant configuration. If you attempt to enable the multi-tenant + configuration on a DB engine that doesn't support it, the request + fails. + + - If you specify the multi-tenant configuration when you create your DB + instance, you can't later modify this DB instance to use the + single-tenant configuration. + """ + dedicated_log_volume: bool | None = ... + """ + Indicates whether the DB instance has a dedicated log volume (DLV) + enabled. + """ + engine_lifecycle_support: str | None = ... + """ + The lifecycle type for this DB instance. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB instance into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, creating the DB instance will fail if the DB major version is + past its end of standard support date. + + This setting applies only to RDS for MySQL and RDS for PostgreSQL. For + Amazon Aurora DB instances, the engine lifecycle support is managed by + the DB cluster. + + You can use this setting to enroll your DB instance into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB instance past the end of standard + support for that engine version. For more information, see [Amazon RDS + Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide*. + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + additional_storage_volumes: list[AdditionalStorageVolume] | None = ... + """ + A list of additional storage volumes to create for the DB instance. You + can create up to three additional storage volumes using the names + `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. Additional storage volumes + are supported for RDS for Oracle and RDS for SQL Server DB instances + only. + """ + tag_specifications: list[TagSpecification] | None = ... + """ + Tags to assign to resources associated with the DB instance. + + Valid Values: + + - `auto-backup` - The DB instance's automated backup. + """ + db_capacity_reservation_identifier: str | None = ... + """ + The identifier or the name of the DB capacity reservation to associate + with this DB instance. You can specify the identifier, which has the + prefix `dbcr-`, or the reservation name. When you specify this + parameter, the DB instance uses reserved capacity from the specified + reservation. + + If you specify `AvailabilityZone`, Amazon RDS places the DB instance in + that Availability Zone, and the reservation must cover it. + + Constraints: + + - The reservation must reserve capacity for the DB instance class and + the database engine of the DB instance. + + - If the reservation reserves capacity for a specific license model, the + license model of the DB instance must match it. + + - The reservation must be in the `active` state, and it must not be past + its end date. + + - If you specify `AvailabilityZone`, it must be one of the Availability + Zones of the reservation. + + - For a Multi-AZ DB instance, the reservation must cover two or more + Availability Zones. A Multi-AZ DB instance uses one unit of reserved + capacity in each of two Availability Zones. If the reservation covers + more than two Availability Zones, Amazon RDS chooses the two that the + DB instance uses. + + - The reservation must have available capacity in each Availability Zone + that the DB instance uses. + + - The DB subnet group must be in a VPC with default tenancy. + + - The DB subnet group must cover each Availability Zone that the DB + instance uses. + """ + master_user_authentication_type: str | None = ... + """ + Specifies the authentication type for the master user. With IAM master + user authentication, you can configure the master DB user with IAM + database authentication when you create a DB instance. + + You can specify one of the following values: + + - `password` - Use standard database authentication with a password. + + - `iam-db-auth` - Use IAM database authentication for the master user. + + This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL + engines. + """ + +class CreateDBInstanceInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBInstanceInput`.""" + + db_name: str | None + """ + The meaning of this parameter differs according to the database engine + you use. + + Amazon Aurora MySQL + + : The name of the database to create when the primary DB instance of + the Aurora MySQL DB cluster is created. If this parameter isn't + specified for an Aurora MySQL DB cluster, no database is created in + the DB cluster. + + Constraints: + + - Must contain 1 to 64 alphanumeric characters. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the database engine. + + Amazon Aurora PostgreSQL + + : The name of the database to create when the primary DB instance of + the Aurora PostgreSQL DB cluster is created. A database named + `postgres` is always created. If this parameter is specified, an + additional database with this name is created. + + Constraints: + + - It must contain 1 to 63 alphanumeric characters. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0 to 9). + + - Can't be a word reserved by the database engine. + + Amazon RDS Custom for Oracle + + : The Oracle System ID (SID) of the created RDS Custom DB instance. If + you don't specify a value, the default value is `ORCL` for non-CDBs + and `RDSCDB` for CDBs. + + Default: `ORCL` + + Constraints: + + - Must contain 1 to 8 alphanumeric characters. + + - Must contain a letter. + + - Can't be a word reserved by the database engine. + + Amazon RDS Custom for SQL Server + + : Not applicable. Must be null. + + RDS for Db2 + + : The name of the database to create when the DB instance is created. + If this parameter isn't specified, no database is created in the DB + instance. In some cases, we recommend that you don't add a database + name. For more information, see [Additional + considerations](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-db-instance-prereqs.html#db2-prereqs-additional-considerations) + in the *Amazon RDS User Guide*. + + Constraints: + + - Must contain 1 to 64 letters or numbers. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the specified database engine. + + RDS for MariaDB + + : The name of the database to create when the DB instance is created. + If this parameter isn't specified, no database is created in the DB + instance. + + Constraints: + + - Must contain 1 to 64 letters or numbers. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the specified database engine. + + RDS for MySQL + + : The name of the database to create when the DB instance is created. + If this parameter isn't specified, no database is created in the DB + instance. + + Constraints: + + - Must contain 1 to 64 letters or numbers. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the specified database engine. + + RDS for Oracle + + : The Oracle System ID (SID) of the created DB instance. If you don't + specify a value, the default value is `ORCL`. You can't specify the + string `null`, or any other reserved word, for `DBName`. + + Default: `ORCL` + + Constraints: + + - Can't be longer than 8 characters. + + RDS for PostgreSQL + + : The name of the database to create when the DB instance is created. + A database named `postgres` is always created. If this parameter is + specified, an additional database with this name is created. + + Constraints: + + - Must contain 1 to 63 letters, numbers, or underscores. + + - Must begin with a letter. Subsequent characters can be letters, + underscores, or digits (0-9). + + - Can't be a word reserved by the specified database engine. + + RDS for SQL Server + + : Not applicable. Must be null. + """ + db_instance_identifier: Required[str] + """ + The identifier for this DB instance. This parameter is stored as a + lowercase string. + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `mydbinstance` + """ + allocated_storage: int | None + """ + The amount of storage in gibibytes (GiB) to allocate for the DB + instance. + + This setting doesn't apply to Amazon Aurora DB instances. Aurora + cluster volumes automatically grow as the amount of data in your + database increases, though you are only charged for the space that you + use in an Aurora cluster volume. + + Amazon RDS Custom + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for + SQL Server. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 40 to + 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL + Server. + + RDS for Db2 + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp3): Must be an integer from 20 to + 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + RDS for MariaDB + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 20 to 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + - Magnetic storage (standard): Must be an integer from 5 to 3072. + + RDS for MySQL + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 20 to 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + - Magnetic storage (standard): Must be an integer from 5 to 3072. + + RDS for Oracle + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 20 to 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + - Magnetic storage (standard): Must be an integer from 10 to 3072. + + RDS for PostgreSQL + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): Must be an integer from + 20 to 65536. + + - Provisioned IOPS storage (io1, io2): Must be an integer from 100 + to 65536. + + - Magnetic storage (standard): Must be an integer from 5 to 3072. + + RDS for SQL Server + + : Constraints to the amount of storage for each storage type are the + following: + + - General Purpose (SSD) storage (gp2, gp3): + + - Enterprise and Standard editions: Must be an integer from 20 to + 16384. + + - Web and Express editions: Must be an integer from 20 to 16384. + + - Provisioned IOPS storage (io1, io2): + + - Enterprise and Standard editions: Must be an integer from 100 to + 16384. + + - Web and Express editions: Must be an integer from 100 to 16384. + + - Magnetic storage (standard): + + - Enterprise and Standard editions: Must be an integer from 20 to + 1024. + + - Web and Express editions: Must be an integer from 20 to 1024. + """ + db_instance_class: Required[str] + """ + The compute and memory capacity of the DB instance, for example + `db.m5.large`. Not all DB instance classes are available in all Amazon + Web Services Regions, or for all database engines. For the full list of + DB instance classes, and availability for your engine, see [DB instance + classes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide* or [Aurora DB instance + classes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) + in the *Amazon Aurora User Guide*. + """ + engine: Required[str] + """ + The database engine to use for this DB instance. + + Not every database engine is available in every Amazon Web Services + Region. + + Valid Values: + + - `aurora-mysql` (for Aurora MySQL DB instances) + + - `aurora-postgresql` (for Aurora PostgreSQL DB instances) + + - `custom-oracle-ee` (for RDS Custom for Oracle DB instances) + + - `custom-oracle-ee-cdb` (for RDS Custom for Oracle DB instances) + + - `custom-oracle-se2` (for RDS Custom for Oracle DB instances) + + - `custom-oracle-se2-cdb` (for RDS Custom for Oracle DB instances) + + - `custom-sqlserver-ee` (for RDS Custom for SQL Server DB instances) + + - `custom-sqlserver-se` (for RDS Custom for SQL Server DB instances) + + - `custom-sqlserver-web` (for RDS Custom for SQL Server DB instances) + + - `custom-sqlserver-dev` (for RDS Custom for SQL Server DB instances) + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-dev-ee` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + master_username: str | None + """ + The name for the master user. + + This setting doesn't apply to Amazon Aurora DB instances. The name for + the master user is managed by the DB cluster. + + This setting is required for RDS DB instances. + + Constraints: + + - Must be 1 to 16 letters, numbers, or underscores. + + - First character must be a letter. + + - Can't be a reserved word for the chosen database engine. + """ + master_user_password: str | None + """ + The password for the master user. + + This setting doesn't apply to Amazon Aurora DB instances. The password + for the master user is managed by the DB cluster. + + Constraints: + + - Can't be specified if `ManageMasterUserPassword` is turned on. + + - Can include any printable ASCII character except \"/\", \"\"\", or + \"@\". For RDS for Oracle, can't include the \"&\" (ampersand) or the + \"'\" (single quotes) character. + + Length Constraints: + + - RDS for Db2 - Must contain from 8 to 255 characters. + + - RDS for MariaDB - Must contain from 8 to 41 characters. + + - RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. + + - RDS for MySQL - Must contain from 8 to 41 characters. + + - RDS for Oracle - Must contain from 8 to 30 characters. + + - RDS for PostgreSQL - Must contain from 8 to 128 characters. + """ + db_security_groups: Sequence[str] | None + """ + A list of DB security groups to associate with this DB instance. + + This setting applies to the legacy EC2-Classic platform, which is no + longer used to create new DB instances. Use the `VpcSecurityGroupIds` + setting instead. + """ + vpc_security_group_ids: Sequence[str] | None + """ + A list of Amazon EC2 VPC security groups to associate with this DB + instance. + + This setting doesn't apply to Amazon Aurora DB instances. The + associated list of EC2 VPC security groups is managed by the DB cluster. + + Default: The default EC2 VPC security group for the DB subnet group's + VPC. + """ + availability_zone: str | None + """ + The Availability Zone (AZ) where the database will be created. For + information on Amazon Web Services Regions and Availability Zones, see + [Regions and Availability + Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html). + + For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in + three separate Availability Zones. Specify one of these Availability + Zones. Aurora automatically chooses an appropriate Availability Zone if + you don't specify one. + + Default: A random, system-chosen Availability Zone in the endpoint's + Amazon Web Services Region. + + Constraints: + + - The `AvailabilityZone` parameter can't be specified if the DB + instance is a Multi-AZ deployment. + + - The specified Availability Zone must be in the same Amazon Web + Services Region as the current endpoint. + + Example: `us-east-1d` + """ + db_subnet_group_name: str | None + """ + A DB subnet group to associate with this DB instance. + + Constraints: + + - Must match the name of an existing DB subnet group. + + Example: `mydbsubnetgroup` + """ + preferred_maintenance_window: str | None + """ + The time range each week during which system maintenance can occur. For + more information, see [Amazon RDS Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance) + in the *Amazon RDS User Guide.* + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region, occurring on a random + day of the week. + + Constraints: + + - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. + + - The day values must be `mon | tue | wed | thu | fri | sat | sun`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred backup window. + + - Must be at least 30 minutes. + """ + db_parameter_group_name: str | None + """ + The name of the DB parameter group to associate with this DB instance. + If you don't specify a value, then Amazon RDS uses the default DB + parameter group for the specified DB engine and version. + + This setting doesn't apply to RDS Custom DB instances. + + Constraints: + + - Must be 1 to 255 letters, numbers, or hyphens. + + - The first character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + """ + backup_retention_period: int | None + """ + The number of days for which automated backups are retained. Setting + this parameter to a positive number enables backups. Setting this + parameter to `0` disables automated backups. + + This setting doesn't apply to Amazon Aurora DB instances. The retention + period for automated backups is managed by the DB cluster. + + Default: `1` + + Constraints: + + - Must be a value from 0 to 35. + + - Can't be set to 0 if the DB instance is a source to read replicas. + + - Can't be set to 0 for an RDS Custom for Oracle DB instance. + """ + preferred_backup_window: str | None + """ + The daily time range during which automated backups are created if + automated backups are enabled, using the `BackupRetentionPeriod` + parameter. The default is a 30-minute window selected at random from an + 8-hour block of time for each Amazon Web Services Region. For more + information, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora DB instances. The daily + time range for creating automated backups is managed by the DB cluster. + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + port: int | None + """ + The port number on which the database accepts connections. + + This setting doesn't apply to Aurora DB instances. The port number is + managed by the cluster. + + Valid Values: `1150-65535` + + Default: + + - RDS for Db2 - `50000` + + - RDS for MariaDB - `3306` + + - RDS for Microsoft SQL Server - `1433` + + - RDS for MySQL - `3306` + + - RDS for Oracle - `1521` + + - RDS for PostgreSQL - `5432` + + Constraints: + + - For RDS for Microsoft SQL Server, the value can't be `1234`, `1434`, + `3260`, `3343`, `3389`, `47001`, or `49152-49156`. + """ + multi_az: bool | None + """ + Specifies whether the DB instance is a Multi-AZ deployment. You can't + set the `AvailabilityZone` parameter if the DB instance is a Multi-AZ + deployment. + + This setting doesn't apply to Amazon Aurora because the DB instance + Availability Zones (AZs) are managed by the DB cluster. + """ + engine_version: str | None + """ + The version number of the database engine to use. + + This setting doesn't apply to Amazon Aurora DB instances. The version + number of the database engine the DB instance uses is managed by the DB + cluster. + + For a list of valid engine versions, use the `DescribeDBEngineVersions` + operation. + + The following are the database engines and links to information about + the major and minor versions that are available with Amazon RDS. Not + every database engine is available for every Amazon Web Services Region. + + Amazon RDS Custom for Oracle + + : A custom engine version (CEV) that you have previously created. This + setting is required for RDS Custom for Oracle. The CEV name has the + following format: 19.*customized_string*. A valid CEV name is + `19.my_cev1`. For more information, see [Creating an RDS Custom for + Oracle DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-creating.html#custom-creating.create) + in the *Amazon RDS User Guide*. + + Amazon RDS Custom for SQL Server + + : See [RDS Custom for SQL Server general + requirements](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html) + in the *Amazon RDS User Guide*. + + RDS for Db2 + + : For information, see [Db2 on Amazon RDS + versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt) + in the *Amazon RDS User Guide*. + + RDS for MariaDB + + : For information, see [MariaDB on Amazon RDS + versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt) + in the *Amazon RDS User Guide*. + + RDS for Microsoft SQL Server + + : For information, see [Microsoft SQL Server versions on Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport) + in the *Amazon RDS User Guide*. + + RDS for MySQL + + : For information, see [MySQL on Amazon RDS + versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) + in the *Amazon RDS User Guide*. + + RDS for Oracle + + : For information, see [Oracle Database Engine release + notes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html) + in the *Amazon RDS User Guide*. + + RDS for PostgreSQL + + : For information, see [Amazon RDS for PostgreSQL versions and + extensions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts) + in the *Amazon RDS User Guide*. + """ + auto_minor_version_upgrade: bool | None + """ + Specifies whether minor engine upgrades are applied automatically to the + DB instance during the maintenance window. By default, minor engine + upgrades are applied automatically. + + If you create an RDS Custom DB instance, you must set + `AutoMinorVersionUpgrade` to `false`. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + license_model: str | None + """ + The license model information for this DB instance. + + Note: + License models for RDS for Db2 require additional configuration. The + bring your own license (BYOL) model requires a custom parameter group + and an Amazon Web Services License Manager self-managed license. The Db2 + license through Amazon Web Services Marketplace model requires an Amazon + Web Services Marketplace subscription. For more information, see [Amazon + RDS for Db2 licensing + options](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) + in the *Amazon RDS User Guide*. + + The default for RDS for Db2 is `bring-your-own-license`. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + + Valid Values: + + - RDS for Db2 - `bring-your-own-license | marketplace-license` + + - RDS for MariaDB - `general-public-license` + + - RDS for Microsoft SQL Server - + `license-included | bring-your-own-media` + + - RDS for MySQL - `general-public-license` + + - RDS for Oracle - `bring-your-own-license | license-included` + + - RDS for PostgreSQL - `postgresql-license` + """ + iops: int | None + """ + The amount of Provisioned IOPS (input/output operations per second) to + initially allocate for the DB instance. For information about valid IOPS + values, see [Amazon RDS DB instance + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora DB instances. Storage is + managed by the DB cluster. + + Constraints: + + - For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a + multiple between .5 and 50 of the storage amount for the DB instance. + + - For RDS for SQL Server - Must be a multiple between 1 and 50 of the + storage amount for the DB instance. + """ + storage_throughput: int | None + """ + The storage throughput value, in mebibyte per second (MiBps), for the DB + instance. + + This setting applies only to the `gp3` storage type. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + option_group_name: str | None + """ + The option group to associate the DB instance with. + + Permanent options, such as the TDE option for Oracle Advanced Security + TDE, can't be removed from an option group. Also, that option group + can't be removed from a DB instance after it is associated with a DB + instance. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + character_set_name: str | None + """ + For supported engines, the character set (`CharacterSet`) to associate + the DB instance with. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora - The character set is managed by the DB cluster. For + more information, see `CreateDBCluster`. + + - RDS Custom - However, if you need to change the character set, you can + change it on the database itself. + """ + nchar_character_set_name: str | None + """ + The name of the NCHAR character set for the Oracle DB instance. + + This setting doesn't apply to RDS Custom DB instances. + """ + publicly_accessible: bool | None + """ + Specifies whether the DB instance is publicly accessible. + + When the DB instance is publicly accessible and you connect from outside + of the DB instance's virtual private cloud (VPC), its domain name + system (DNS) endpoint resolves to the public IP address. When you + connect from within the same VPC as the DB instance, the endpoint + resolves to the private IP address. Access to the DB instance is + controlled by its security group settings. + + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. + + The default behavior when `PubliclyAccessible` is not specified depends + on whether a `DBSubnetGroup` is specified. + + If `DBSubnetGroup` isn't specified, `PubliclyAccessible` defaults to + `false` for Aurora instances and `true` for non-Aurora instances. + + If `DBSubnetGroup` is specified, `PubliclyAccessible` defaults to + `false` unless the value of `DBSubnetGroup` is `default`, in which case + `PubliclyAccessible` defaults to `true`. + + If `PubliclyAccessible` is true and the VPC that the `DBSubnetGroup` is + in doesn't have an internet gateway attached to it, Amazon RDS returns + an error. + """ + tags: Sequence[Tag | TagDict] | None + """Tags to assign to the DB instance.""" + db_cluster_identifier: str | None + """ + The identifier of the DB cluster that this DB instance will belong to. + + This setting doesn't apply to RDS Custom DB instances. + """ + storage_type: str | None + """ + The storage type to associate with the DB instance. + + If you specify `io1`, `io2`, or `gp3`, you must also include a value for + the `Iops` parameter. + + This setting doesn't apply to Amazon Aurora DB instances. Storage is + managed by the DB cluster. + + Valid Values: `gp2 | gp3 | io1 | io2 | standard` + + Default: `io1`, if the `Iops` parameter is specified. Otherwise, `gp3`. + """ + tde_credential_arn: str | None + """ + The ARN from the key store with which to associate the instance for TDE + encryption. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + tde_credential_password: str | None + """ + The password for the given ARN from the key store in order to access the + device. + + This setting doesn't apply to RDS Custom DB instances. + """ + storage_encrypted: bool | None + """ + Specifes whether the DB instance is encrypted. By default, it isn't + encrypted. + + For RDS Custom DB instances, either enable this setting or leave it + unset. Otherwise, Amazon RDS reports an error. + + This setting doesn't apply to Amazon Aurora DB instances. The + encryption for DB instances is managed by the DB cluster. + """ + kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for an encrypted DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + This setting doesn't apply to Amazon Aurora DB instances. The Amazon + Web Services KMS key identifier is managed by the DB cluster. For more + information, see `CreateDBCluster`. + + If `StorageEncrypted` is enabled, and you do not specify a value for the + `KmsKeyId` parameter, then Amazon RDS uses your default KMS key. There + is a default KMS key for your Amazon Web Services account. Your Amazon + Web Services account has a different default KMS key for each Amazon Web + Services Region. + + For Amazon RDS Custom, a KMS key is required for DB instances. For most + RDS engines, if you leave this parameter empty while enabling + `StorageEncrypted`, the engine uses the default KMS key. However, RDS + Custom doesn't use the default key when this parameter is empty. You + must explicitly specify a key. + """ + domain: str | None + """ + The Active Directory directory ID to create the DB instance in. + Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, + and PostgreSQL DB instances in an Active Directory Domain. + + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (The domain is managed by the DB cluster.) + + - RDS Custom + """ + domain_fqdn: str | None + """ + The fully qualified domain name (FQDN) of an Active Directory domain. + + Constraints: + + - Can't be longer than 64 characters. + + Example: `mymanagedADtest.mymanagedAD.mydomain` + """ + domain_ou: str | None + """ + The Active Directory organizational unit for your DB instance to join. + + Constraints: + + - Must be in the distinguished name format. + + - Can't be longer than 64 characters. + + Example: + `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` + """ + domain_auth_secret_arn: str | None + """ + The ARN for the Secrets Manager secret with the credentials for the user + joining the domain. + + Example: + `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` + """ + domain_dns_ips: Sequence[str] | None + """ + The IPv4 DNS IP addresses of your primary and secondary Active Directory + domain controllers. + + Constraints: + + - Two IP addresses must be provided. If there isn't a secondary domain + controller, use the IP address of the primary domain controller for + both entries in the list. + + Example: `123.124.125.126,234.235.236.237` + """ + copy_tags_to_snapshot: bool | None + """ + Specifies whether to copy tags from the DB instance to snapshots of the + DB instance. By default, tags are not copied. + + This setting doesn't apply to Amazon Aurora DB instances. Copying tags + to snapshots is managed by the DB cluster. Setting this value for an + Aurora DB instance has no effect on the DB cluster setting. + """ + monitoring_interval: int | None + """ + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB instance. To disable collection of + Enhanced Monitoring metrics, specify `0`. + + If `MonitoringRoleArn` is specified, then you must set + `MonitoringInterval` to a value other than `0`. + + This setting doesn't apply to RDS Custom DB instances. + + Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + + Default: `0` + """ + monitoring_role_arn: str | None + """ + The ARN for the IAM role that permits RDS to send enhanced monitoring + metrics to Amazon CloudWatch Logs. For example, + `arn:aws:iam:123456789012:role/emaccess`. For information on creating a + monitoring role, see [Setting Up and Enabling Enhanced + Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) + in the *Amazon RDS User Guide*. + + If `MonitoringInterval` is set to a value other than `0`, then you must + supply a `MonitoringRoleArn` value. + + This setting doesn't apply to RDS Custom DB instances. + """ + domain_iam_role_name: str | None + """ + The name of the IAM role to use when making API calls to the Directory + Service. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (The domain is managed by the DB cluster.) + + - RDS Custom + """ + promotion_tier: int | None + """ + The order of priority in which an Aurora Replica is promoted to the + primary instance after a failure of the existing primary instance. For + more information, see [Fault Tolerance for an Aurora DB + Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance) + in the *Amazon Aurora User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + + Default: `1` + + Valid Values: `0 - 15` + """ + timezone: str | None + """ + The time zone of the DB instance. The time zone parameter is currently + supported only by [RDS for + Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone) + and [RDS for SQL + Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone). + """ + enable_iam_database_authentication: bool | None + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. + + For more information, see [IAM Database Authentication for MySQL and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (Mapping Amazon Web Services IAM accounts to database + accounts is managed by the DB cluster.) + + - RDS Custom + """ + database_insights_mode: str | None + """ + The mode of Database Insights to enable for the DB instance. + + Note: + Aurora DB instances inherit this value from the DB cluster, so you + can't change this value. + """ + enable_performance_insights: bool | None + """ + Specifies whether to enable Performance Insights for the DB instance. + For more information, see [Using Amazon Performance + Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + """ + performance_insights_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. + + This setting doesn't apply to RDS Custom DB instances. + """ + performance_insights_retention_period: int | None + """ + The number of days to retain Performance Insights data. + + This setting doesn't apply to RDS Custom DB instances. + + Valid Values: + + - `7` + + - *month* * 31, where *month* is a number of months from 1-23. + Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 + months * 31) + + - `731` + + Default: `7` days + + If you specify a retention period that isn't valid, such as `94`, + Amazon RDS returns an error. + """ + enable_cloudwatch_logs_exports: Sequence[str] | None + """ + The list of log types to enable for exporting to CloudWatch Logs. For + more information, see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.) + + - RDS Custom + + The following values are valid for each DB engine: + + - RDS for Db2 - `diag.log | notify.log | iam-db-auth-error` + + - RDS for MariaDB - + `audit | error | general | slowquery | iam-db-auth-error` + + - RDS for Microsoft SQL Server - `agent | error` + + - RDS for MySQL - + `audit | error | general | slowquery | iam-db-auth-error` + + - RDS for Oracle - `alert | audit | listener | trace | oemagent` + + - RDS for PostgreSQL - `postgresql | upgrade | iam-db-auth-error` + """ + processor_features: Sequence[ProcessorFeature | ProcessorFeatureDict] | None + """ + The number of CPU cores and the number of threads per core for the DB + instance class of the DB instance. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + deletion_protection: bool | None + """ + Specifies whether the DB instance has deletion protection enabled. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. For more information, see + [Deleting a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + + This setting doesn't apply to Amazon Aurora DB instances. You can + enable or disable deletion protection for the DB cluster. For more + information, see `CreateDBCluster`. DB instances in a DB cluster can be + deleted even when deletion protection is enabled for the DB cluster. + """ + max_allocated_storage: int | None + """ + The upper limit in gibibytes (GiB) to which Amazon RDS can automatically + scale the storage of the DB instance. + + For more information about this setting, including limitations that + apply to it, see [Managing capacity automatically with Amazon RDS + storage + autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (Storage is managed by the DB cluster.) + + - RDS Custom + """ + enable_customer_owned_ip: bool | None + """ + Specifies whether to enable a customer-owned IP address (CoIP) for an + RDS on Outposts DB instance. + + A *CoIP* provides local or external connectivity to resources in your + Outpost subnets through your on-premises network. For some use cases, a + CoIP can provide lower latency for connections to the DB instance from + outside of its virtual private cloud (VPC) on your local network. + + For more information about RDS on Outposts, see [Working with Amazon RDS + on Amazon Web Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + + For more information about CoIPs, see [Customer-owned IP + addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) + in the *Amazon Web Services Outposts User Guide*. + """ + network_type: str | None + """ + The network type of the DB instance. + + The network type is determined by the `DBSubnetGroup` specified for the + DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon RDS User Guide.* + + Valid Values: `IPV4 | DUAL` + """ + backup_target: str | None + """ + The location for storing automated backups and manual snapshots. + + Valid Values: + + - `local` (Dedicated Local Zone) + + - `outposts` (Amazon Web Services Outposts) + + - `region` (Amazon Web Services Region) + + Default: `region` + + For more information, see [Working with Amazon RDS on Amazon Web + Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + """ + custom_iam_instance_profile: str | None + """ + The instance profile associated with the underlying Amazon EC2 instance + of an RDS Custom DB instance. + + This setting is required for RDS Custom. + + Constraints: + + - The profile must exist in your account. + + - The profile must have an IAM role that Amazon EC2 has permissions to + assume. + + - The instance profile name and the associated IAM role name must start + with the prefix `AWSRDSCustom`. + + For the list of permissions required for the IAM role, see [Configure + IAM and your + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) + in the *Amazon RDS User Guide*. + """ + db_system_id: str | None + """ + The Oracle system identifier (SID), which is the name of the Oracle + database instance that manages your database files. In this context, the + term \"Oracle database instance\" refers exclusively to the system + global area (SGA) and Oracle background processes. If you don't specify + a SID, the value defaults to `RDSCDB`. The Oracle SID is also the name + of your CDB. + """ + ca_certificate_identifier: str | None + """ + The CA certificate identifier to use for the DB instance's server + certificate. + + This setting doesn't apply to RDS Custom DB instances. + + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a + connection to a DB + cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + in the *Amazon Aurora User Guide*. + """ + manage_master_user_password: bool | None + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. + """ + master_user_secret_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + multi_tenant: bool | None + """ + Specifies whether to use the multi-tenant configuration or the + single-tenant configuration (default). This parameter only applies to + RDS for Oracle container database (CDB) engines. + + Note the following restrictions: + + - The DB engine that you specify in the request must support the + multi-tenant configuration. If you attempt to enable the multi-tenant + configuration on a DB engine that doesn't support it, the request + fails. + + - If you specify the multi-tenant configuration when you create your DB + instance, you can't later modify this DB instance to use the + single-tenant configuration. + """ + dedicated_log_volume: bool | None + """ + Indicates whether the DB instance has a dedicated log volume (DLV) + enabled. + """ + engine_lifecycle_support: str | None + """ + The lifecycle type for this DB instance. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB instance into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, creating the DB instance will fail if the DB major version is + past its end of standard support date. + + This setting applies only to RDS for MySQL and RDS for PostgreSQL. For + Amazon Aurora DB instances, the engine lifecycle support is managed by + the DB cluster. + + You can use this setting to enroll your DB instance into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB instance past the end of standard + support for that engine version. For more information, see [Amazon RDS + Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide*. + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + additional_storage_volumes: ( + Sequence[AdditionalStorageVolume | AdditionalStorageVolumeDict] | None + ) + """ + A list of additional storage volumes to create for the DB instance. You + can create up to three additional storage volumes using the names + `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. Additional storage volumes + are supported for RDS for Oracle and RDS for SQL Server DB instances + only. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + Tags to assign to resources associated with the DB instance. + + Valid Values: + + - `auto-backup` - The DB instance's automated backup. + """ + db_capacity_reservation_identifier: str | None + """ + The identifier or the name of the DB capacity reservation to associate + with this DB instance. You can specify the identifier, which has the + prefix `dbcr-`, or the reservation name. When you specify this + parameter, the DB instance uses reserved capacity from the specified + reservation. + + If you specify `AvailabilityZone`, Amazon RDS places the DB instance in + that Availability Zone, and the reservation must cover it. + + Constraints: + + - The reservation must reserve capacity for the DB instance class and + the database engine of the DB instance. + + - If the reservation reserves capacity for a specific license model, the + license model of the DB instance must match it. + + - The reservation must be in the `active` state, and it must not be past + its end date. + + - If you specify `AvailabilityZone`, it must be one of the Availability + Zones of the reservation. + + - For a Multi-AZ DB instance, the reservation must cover two or more + Availability Zones. A Multi-AZ DB instance uses one unit of reserved + capacity in each of two Availability Zones. If the reservation covers + more than two Availability Zones, Amazon RDS chooses the two that the + DB instance uses. + + - The reservation must have available capacity in each Availability Zone + that the DB instance uses. + + - The DB subnet group must be in a VPC with default tenancy. + + - The DB subnet group must cover each Availability Zone that the DB + instance uses. + """ + master_user_authentication_type: str | None + """ + Specifies the authentication type for the master user. With IAM master + user authentication, you can configure the master DB user with IAM + database authentication when you create a DB instance. + + You can specify one of the following values: + + - `password` - Use standard database authentication with a password. + + - `iam-db-auth` - Use IAM database authentication for the master user. + + This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL + engines. + """ + +@dataclass(kw_only=True) +class CreateDBInstanceOutput(_SerdeShape): + """Dataclass for CreateDBInstanceOutput structure.""" + + db_instance: DBInstance | None = ... + """ + Contains the details of an Amazon RDS DB instance. + + This data type is used as a response element in the operations + `CreateDBInstance`, `CreateDBInstanceReadReplica`, `DeleteDBInstance`, + `DescribeDBInstances`, `ModifyDBInstance`, `PromoteReadReplica`, + `RebootDBInstance`, `RestoreDBInstanceFromDBSnapshot`, + `RestoreDBInstanceFromS3`, `RestoreDBInstanceToPointInTime`, + `StartDBInstance`, and `StopDBInstance`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateDBInstanceReadReplicaInput(_SerdeShape): + """""" + + db_instance_identifier: str | None = ... + """ + The DB instance identifier of the read replica. This identifier is the + unique key that identifies a DB instance. This parameter is stored as a + lowercase string. + """ + source_db_instance_identifier: str | None = ... + """ + The identifier of the DB instance that will act as the source for the + read replica. Each DB instance can have up to 15 read replicas, except + for the following engines: + + - Db2 - Can have up to three replicas. + + - Oracle - Can have up to five read replicas. + + - SQL Server - Can have up to five read replicas. + + Constraints: + + - Must be the identifier of an existing Db2, MariaDB, MySQL, Oracle, + PostgreSQL, or SQL Server DB instance. + + - Can't be specified if the `SourceDBClusterIdentifier` parameter is + also specified. + + - For the limitations of Oracle read replicas, see [Version and + licensing considerations for RDS for Oracle + replicas](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.limitations.html#oracle-read-replicas.limitations.versions-and-licenses) + in the *Amazon RDS User Guide*. + + - For the limitations of SQL Server read replicas, see [Read replica + limitations with SQL + Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.ReadReplicas.html#SQLServer.ReadReplicas.Limitations) + in the *Amazon RDS User Guide*. + + - The specified DB instance must have automatic backups enabled, that + is, its backup retention period must be greater than 0. + + - If the source DB instance is in the same Amazon Web Services Region as + the read replica, specify a valid DB instance identifier. + + - If the source DB instance is in a different Amazon Web Services Region + from the read replica, specify a valid DB instance ARN. For more + information, see [Constructing an ARN for Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) + in the *Amazon RDS User Guide*. This doesn't apply to SQL Server or + RDS Custom, which don't support cross-Region replicas. + """ + db_instance_class: str | None = ... + """ + The compute and memory capacity of the read replica, for example + db.m4.large. Not all DB instance classes are available in all Amazon Web + Services Regions, or for all database engines. For the full list of DB + instance classes, and availability for your engine, see [DB Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide*. + + Default: Inherits the value from the source DB instance. + """ + availability_zone: str | None = ... + """ + The Availability Zone (AZ) where the read replica will be created. + + Default: A random, system-chosen Availability Zone in the endpoint's + Amazon Web Services Region. + + Example: `us-east-1d` + """ + port: int | None = ... + """ + The port number that the DB instance uses for connections. + + Valid Values: `1150-65535` + + Default: Inherits the value from the source DB instance. + """ + multi_az: bool | None = ... + """ + Specifies whether the read replica is in a Multi-AZ deployment. + + You can create a read replica as a Multi-AZ DB instance. RDS creates a + standby of your replica in another Availability Zone for failover + support for the replica. Creating your read replica as a Multi-AZ DB + instance is independent of whether the source is a Multi-AZ DB instance + or a Multi-AZ DB cluster. + + This setting doesn't apply to RDS Custom DB instances. + """ + auto_minor_version_upgrade: bool | None = ... + """ + Specifies whether to automatically apply minor engine upgrades to the + read replica during the maintenance window. + + This setting doesn't apply to RDS Custom DB instances. + + Default: Inherits the value from the source DB instance. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + iops: int | None = ... + """ + The amount of Provisioned IOPS (input/output operations per second) to + initially allocate for the DB instance. + """ + storage_throughput: int | None = ... + """ + Specifies the storage throughput value for the read replica. + + This setting doesn't apply to RDS Custom or Amazon Aurora DB instances. + """ + option_group_name: str | None = ... + """ + The option group to associate the DB instance with. If not specified, + RDS uses the option group associated with the source DB instance or + cluster. + + Note: + For SQL Server, you must use the option group associated with the + source. + + This setting doesn't apply to RDS Custom DB instances. + """ + db_parameter_group_name: str | None = ... + """ + The name of the DB parameter group to associate with this read replica + DB instance. + + For the Db2 DB engine, if your source DB instance uses the bring your + own license (BYOL) model, then a custom parameter group must be + associated with the replica. For a same Amazon Web Services Region + replica, if you don't specify a custom parameter group, Amazon RDS + associates the custom parameter group associated with the source DB + instance. For a cross-Region replica, you must specify a custom + parameter group. This custom parameter group must include your IBM Site + ID and IBM Customer ID. For more information, see [IBM IDs for bring + your own license (BYOL) for + Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html#db2-prereqs-ibm-info). - This setting doesn't apply to RDS Custom DB instances. - """ - storage_encrypted: bool | None = ... - """ - Specifes whether the DB instance is encrypted. By default, it isn't - encrypted. + For Single-AZ or Multi-AZ DB instance read replica instances, if you + don't specify a value for `DBParameterGroupName`, then Amazon RDS uses + the `DBParameterGroup` of the source DB instance for a same Region read + replica, or the default `DBParameterGroup` for the specified DB engine + for a cross-Region read replica. - For RDS Custom DB instances, either enable this setting or leave it - unset. Otherwise, Amazon RDS reports an error. + For Multi-AZ DB cluster same Region read replica instances, if you + don't specify a value for `DBParameterGroupName`, then Amazon RDS uses + the default `DBParameterGroup`. - This setting doesn't apply to Amazon Aurora DB instances. The - encryption for DB instances is managed by the DB cluster. - """ - kms_key_id: str | None = ... - """ - The Amazon Web Services KMS key identifier for an encrypted DB instance. + Specifying a parameter group for this operation is only supported for + MySQL DB instances for cross-Region read replicas, for Multi-AZ DB + cluster read replica instances, for Db2 DB instances, and for Oracle DB + instances. It isn't supported for MySQL DB instances for same Region + read replicas or for RDS Custom. - The Amazon Web Services KMS key identifier is the key ARN, key ID, alias - ARN, or alias name for the KMS key. To use a KMS key in a different - Amazon Web Services account, specify the key ARN or alias ARN. + Constraints: - This setting doesn't apply to Amazon Aurora DB instances. The Amazon - Web Services KMS key identifier is managed by the DB cluster. For more - information, see `CreateDBCluster`. + - Must be 1 to 255 letters, numbers, or hyphens. - If `StorageEncrypted` is enabled, and you do not specify a value for the - `KmsKeyId` parameter, then Amazon RDS uses your default KMS key. There - is a default KMS key for your Amazon Web Services account. Your Amazon - Web Services account has a different default KMS key for each Amazon Web - Services Region. + - First character must be a letter. - For Amazon RDS Custom, a KMS key is required for DB instances. For most - RDS engines, if you leave this parameter empty while enabling - `StorageEncrypted`, the engine uses the default KMS key. However, RDS - Custom doesn't use the default key when this parameter is empty. You - must explicitly specify a key. + - Can't end with a hyphen or contain two consecutive hyphens. """ - domain: str | None = ... + publicly_accessible: bool | None = ... """ - The Active Directory directory ID to create the DB instance in. - Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, - and PostgreSQL DB instances in an Active Directory Domain. + Specifies whether the DB instance is publicly accessible. - For more information, see [Kerberos - Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) - in the *Amazon RDS User Guide*. + When the DB cluster is publicly accessible, its Domain Name System (DNS) + endpoint resolves to the private IP address from within the DB + cluster's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB cluster's VPC. Access to the DB cluster + is ultimately controlled by the security group it uses. That public + access isn't permitted if the security group assigned to the DB cluster + doesn't permit it. - This setting doesn't apply to the following DB instances: + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. - - Amazon Aurora (The domain is managed by the DB cluster.) + For more information, see CreateDBInstance. + """ + tags: list[Tag] | None = ... + """ + A list of tags. - - RDS Custom + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. """ - domain_fqdn: str | None = ... + db_subnet_group_name: str | None = ... """ - The fully qualified domain name (FQDN) of an Active Directory domain. + A DB subnet group for the DB instance. The new DB instance is created in + the VPC associated with the DB subnet group. If no DB subnet group is + specified, then the new DB instance isn't created in a VPC. Constraints: - - Can't be longer than 64 characters. + - If supplied, must match the name of an existing DB subnet group. - Example: `mymanagedADtest.mymanagedAD.mydomain` - """ - domain_ou: str | None = ... - """ - The Active Directory organizational unit for your DB instance to join. + - The specified DB subnet group must be in the same Amazon Web Services + Region in which the operation is running. - Constraints: + - All read replicas in one Amazon Web Services Region that are created + from the same source DB instance must either: - - Must be in the distinguished name format. + - Specify DB subnet groups from the same VPC. All these read replicas + are created in the same VPC. - - Can't be longer than 64 characters. + - Not specify a DB subnet group. All these read replicas are created + outside of any VPC. - Example: - `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` + Example: `mydbsubnetgroup` """ - domain_auth_secret_arn: str | None = ... + vpc_security_group_ids: list[str] | None = ... """ - The ARN for the Secrets Manager secret with the credentials for the user - joining the domain. + A list of Amazon EC2 VPC security groups to associate with the read + replica. - Example: - `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` + This setting doesn't apply to RDS Custom DB instances. + + Default: The default EC2 VPC security group for the DB subnet group's + VPC. """ - domain_dns_ips: list[str] | None = ... + storage_type: str | None = ... """ - The IPv4 DNS IP addresses of your primary and secondary Active Directory - domain controllers. + The storage type to associate with the read replica. - Constraints: + If you specify `io1`, `io2`, or `gp3`, you must also include a value for + the `Iops` parameter. - - Two IP addresses must be provided. If there isn't a secondary domain - controller, use the IP address of the primary domain controller for - both entries in the list. + Valid Values: `gp2 | gp3 | io1 | io2 | standard` - Example: `123.124.125.126,234.235.236.237` + Default: `io1` if the `Iops` parameter is specified. Otherwise, `gp3`. """ copy_tags_to_snapshot: bool | None = ... """ - Specifies whether to copy tags from the DB instance to snapshots of the - DB instance. By default, tags are not copied. - - This setting doesn't apply to Amazon Aurora DB instances. Copying tags - to snapshots is managed by the DB cluster. Setting this value for an - Aurora DB instance has no effect on the DB cluster setting. + Specifies whether to copy all tags from the read replica to snapshots of + the read replica. By default, tags aren't copied. """ monitoring_interval: int | None = ... """ The interval, in seconds, between points when Enhanced Monitoring - metrics are collected for the DB instance. To disable collection of - Enhanced Monitoring metrics, specify `0`. + metrics are collected for the read replica. To disable collection of + Enhanced Monitoring metrics, specify `0`. The default is `0`. If `MonitoringRoleArn` is specified, then you must set `MonitoringInterval` to a value other than `0`. This setting doesn't apply to RDS Custom DB instances. - Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + Valid Values: `0, 1, 5, 10, 15, 30, 60` Default: `0` """ @@ -4947,47 +9470,116 @@ class CreateDBInstanceInput(_SerdeShape): The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, `arn:aws:iam:123456789012:role/emaccess`. For information on creating a - monitoring role, see [Setting Up and Enabling Enhanced - Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) + monitoring role, go to [To create an IAM role for Amazon RDS Enhanced + Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole) in the *Amazon RDS User Guide*. - If `MonitoringInterval` is set to a value other than `0`, then you must + If `MonitoringInterval` is set to a value other than 0, then you must supply a `MonitoringRoleArn` value. This setting doesn't apply to RDS Custom DB instances. """ - domain_iam_role_name: str | None = ... + kms_key_id: str | None = ... """ - The name of the IAM role to use when making API calls to the Directory - Service. + The Amazon Web Services KMS key identifier for an encrypted read + replica. - This setting doesn't apply to the following DB instances: + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. - - Amazon Aurora (The domain is managed by the DB cluster.) + For a read replica in the same Amazon Web Services Region as the source + DB instance or Multi-AZ DB cluster, specifying this parameter is + optional. If you specify a KMS key identifier, the read replica is + encrypted with that KMS key, which can be different from the KMS key of + the source. - - RDS Custom + If you don't specify a value for this parameter, the read replica is + encrypted with the same KMS key as the source DB instance or Multi-AZ DB + cluster. + + If you create an encrypted read replica in a different Amazon Web + Services Region, then you must specify a KMS key identifier for the + destination Amazon Web Services Region. KMS keys are specific to the + Amazon Web Services Region that they are created in, and you can't use + KMS keys from one Amazon Web Services Region in another Amazon Web + Services Region. + + You can't create an encrypted read replica from an unencrypted DB + instance or Multi-AZ DB cluster. + + This setting doesn't apply to RDS Custom, which uses the same KMS key + as the primary replica. """ - promotion_tier: int | None = ... + pre_signed_url: str | None = ... """ - The order of priority in which an Aurora Replica is promoted to the - primary instance after a failure of the existing primary instance. For - more information, see [Fault Tolerance for an Aurora DB - Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance) - in the *Amazon Aurora User Guide*. + When you are creating a read replica from one Amazon Web Services + GovCloud (US) Region to another or from one China Amazon Web Services + Region to another, the URL that contains a Signature Version 4 signed + request for the `CreateDBInstanceReadReplica` API operation in the + source Amazon Web Services Region that contains the source DB instance. - This setting doesn't apply to RDS Custom DB instances. + This setting applies only to Amazon Web Services GovCloud (US) Regions + and China Amazon Web Services Regions. It's ignored in other Amazon Web + Services Regions. - Default: `1` + This setting applies only when replicating from a source DB *instance*. + Source DB clusters aren't supported in Amazon Web Services GovCloud + (US) Regions and China Amazon Web Services Regions. + + You must specify this parameter when you create an encrypted read + replica from another Amazon Web Services Region by using the Amazon RDS + API. Don't specify `PreSignedUrl` when you are creating an encrypted + read replica in the same Amazon Web Services Region. + + The presigned URL must be a valid request for the + `CreateDBInstanceReadReplica` API operation that can run in the source + Amazon Web Services Region that contains the encrypted source DB + instance. The presigned URL request must contain the following parameter + values: + + - `DestinationRegion` - The Amazon Web Services Region that the + encrypted read replica is created in. This Amazon Web Services Region + is the same one where the `CreateDBInstanceReadReplica` operation is + called that contains this presigned URL. + + For example, if you create an encrypted DB instance in the us-west-1 + Amazon Web Services Region, from a source DB instance in the us-east-2 + Amazon Web Services Region, then you call the + `CreateDBInstanceReadReplica` operation in the us-east-1 Amazon Web + Services Region and provide a presigned URL that contains a call to + the `CreateDBInstanceReadReplica` operation in the us-west-2 Amazon + Web Services Region. For this example, the `DestinationRegion` in the + presigned URL must be set to the us-east-1 Amazon Web Services Region. + + - `KmsKeyId` - The KMS key identifier for the key to use to encrypt the + read replica in the destination Amazon Web Services Region. This is + the same identifier for both the `CreateDBInstanceReadReplica` + operation that is called in the destination Amazon Web Services + Region, and the operation contained in the presigned URL. + + - `SourceDBInstanceIdentifier` - The DB instance identifier for the + encrypted DB instance to be replicated. This identifier must be in the + Amazon Resource Name (ARN) format for the source Amazon Web Services + Region. For example, if you are creating an encrypted read replica + from a DB instance in the us-west-2 Amazon Web Services Region, then + your `SourceDBInstanceIdentifier` looks like the following example: + `arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115`. + + To learn how to generate a Signature Version 4 signed request, see + [Authenticating Requests: Using Query Parameters (Amazon Web Services + Signature Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + and [Signature Version 4 Signing + Process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + + Note: + If you are using an Amazon Web Services SDK tool or the CLI, you can + specify `SourceRegion` (or `--source-region` for the CLI) instead of + specifying `PreSignedUrl` manually. Specifying `SourceRegion` + autogenerates a presigned URL that is a valid request for the operation + that can run in the source Amazon Web Services Region. - Valid Values: `0 - 15` - """ - timezone: str | None = ... - """ - The time zone of the DB instance. The time zone parameter is currently - supported only by [RDS for - Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone) - and [RDS for SQL - Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone). + This setting doesn't apply to RDS Custom DB instances. """ enable_iam_database_authentication: bool | None = ... """ @@ -4995,28 +9587,24 @@ class CreateDBInstanceInput(_SerdeShape): Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled. - For more information, see [IAM Database Authentication for MySQL and + For more information about IAM database authentication, see [IAM + Database Authentication for MySQL and PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) in the *Amazon RDS User Guide*. - This setting doesn't apply to the following DB instances: - - - Amazon Aurora (Mapping Amazon Web Services IAM accounts to database - accounts is managed by the DB cluster.) - - - RDS Custom + This setting doesn't apply to RDS Custom DB instances. """ database_insights_mode: str | None = ... """ - The mode of Database Insights to enable for the DB instance. + The mode of Database Insights to enable for the read replica. Note: - Aurora DB instances inherit this value from the DB cluster, so you - can't change this value. + This setting isn't supported. """ enable_performance_insights: bool | None = ... """ - Specifies whether to enable Performance Insights for the DB instance. + Specifies whether to enable Performance Insights for the read replica. + For more information, see [Using Amazon Performance Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) in the *Amazon RDS User Guide*. @@ -5031,7 +9619,7 @@ class CreateDBInstanceInput(_SerdeShape): The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. - If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + If you do not specify a value for `PerformanceInsightsKMSKeyId`, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region. @@ -5061,78 +9649,150 @@ class CreateDBInstanceInput(_SerdeShape): """ enable_cloudwatch_logs_exports: list[str] | None = ... """ - The list of log types to enable for exporting to CloudWatch Logs. For + The list of logs that the new DB instance is to export to CloudWatch + Logs. The values in the list depend on the DB engine being used. For more information, see [Publishing Database Logs to Amazon CloudWatch Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) in the *Amazon RDS User Guide*. - This setting doesn't apply to the following DB instances: + This setting doesn't apply to RDS Custom DB instances. + """ + processor_features: list[ProcessorFeature] | None = ... + """ + The number of CPU cores and the number of threads per core for the DB + instance class of the DB instance. - - Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.) + This setting doesn't apply to RDS Custom DB instances. + """ + use_default_processor_features: bool | None = ... + """ + Specifies whether the DB instance class of the DB instance uses its + default processor features. - - RDS Custom + This setting doesn't apply to RDS Custom DB instances. + """ + deletion_protection: bool | None = ... + """ + Specifies whether to enable deletion protection for the DB instance. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. For more information, see + [Deleting a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + """ + domain: str | None = ... + """ + The Active Directory directory ID to create the DB instance in. + Currently, only MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB + instances can be created in an Active Directory Domain. - The following values are valid for each DB engine: + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + in the *Amazon RDS User Guide*. - - RDS for Db2 - `diag.log | notify.log | iam-db-auth-error` + This setting doesn't apply to RDS Custom DB instances. + """ + domain_iam_role_name: str | None = ... + """ + The name of the IAM role to use when making API calls to the Directory + Service. - - RDS for MariaDB - - `audit | error | general | slowquery | iam-db-auth-error` + This setting doesn't apply to RDS Custom DB instances. + """ + domain_fqdn: str | None = ... + """ + The fully qualified domain name (FQDN) of an Active Directory domain. - - RDS for Microsoft SQL Server - `agent | error` + Constraints: - - RDS for MySQL - - `audit | error | general | slowquery | iam-db-auth-error` + - Can't be longer than 64 characters. - - RDS for Oracle - `alert | audit | listener | trace | oemagent` + Example: `mymanagedADtest.mymanagedAD.mydomain` + """ + domain_ou: str | None = ... + """ + The Active Directory organizational unit for your DB instance to join. - - RDS for PostgreSQL - `postgresql | upgrade | iam-db-auth-error` + Constraints: + + - Must be in the distinguished name format. + + - Can't be longer than 64 characters. + + Example: + `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` """ - processor_features: list[ProcessorFeature] | None = ... + domain_auth_secret_arn: str | None = ... """ - The number of CPU cores and the number of threads per core for the DB - instance class of the DB instance. + The ARN for the Secrets Manager secret with the credentials for the user + joining the domain. - This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + Example: + `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` """ - deletion_protection: bool | None = ... + domain_dns_ips: list[str] | None = ... """ - Specifies whether the DB instance has deletion protection enabled. The - database can't be deleted when deletion protection is enabled. By - default, deletion protection isn't enabled. For more information, see - [Deleting a DB - Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + The IPv4 DNS IP addresses of your primary and secondary Active Directory + domain controllers. - This setting doesn't apply to Amazon Aurora DB instances. You can - enable or disable deletion protection for the DB cluster. For more - information, see `CreateDBCluster`. DB instances in a DB cluster can be - deleted even when deletion protection is enabled for the DB cluster. + Constraints: + + - Two IP addresses must be provided. If there isn't a secondary domain + controller, use the IP address of the primary domain controller for + both entries in the list. + + Example: `123.124.125.126,234.235.236.237` """ - max_allocated_storage: int | None = ... + replica_mode: str | None = ... """ - The upper limit in gibibytes (GiB) to which Amazon RDS can automatically - scale the storage of the DB instance. + The open mode of the replica database. - For more information about this setting, including limitations that - apply to it, see [Managing capacity automatically with Amazon RDS - storage - autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) - in the *Amazon RDS User Guide*. + This parameter is only supported for Db2 DB instances and Oracle DB + instances. - This setting doesn't apply to the following DB instances: + Db2 - - Amazon Aurora (Storage is managed by the DB cluster.) + : Standby DB replicas are included in Db2 Advanced Edition (AE), Db2 + Community Edition (CE), and Db2 Standard Edition (SE). The main use + case for standby replicas is cross-Region disaster recovery. Because + it doesn't accept user connections, a standby replica can't serve + a read-only workload. - - RDS Custom + You can create a combination of standby and read-only DB replicas + for the same primary DB instance. For more information, see [Working + with replicas for Amazon RDS for + Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html) + in the *Amazon RDS User Guide*. + + To create standby DB replicas for RDS for Db2, set this parameter to + `mounted`. + + Oracle + + : Mounted DB replicas are included in Oracle Database Enterprise + Edition. The main use case for mounted replicas is cross-Region + disaster recovery. The primary database doesn't use Active Data + Guard to transmit information to the mounted replica. Because it + doesn't accept user connections, a mounted replica can't serve a + read-only workload. + + You can create a combination of mounted and read-only DB replicas + for the same primary DB instance. For more information, see [Working + with read replicas for Amazon RDS for + Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) + in the *Amazon RDS User Guide*. + + For RDS Custom, you must specify this parameter and set it to + `mounted`. The value won't be set by default. After replica + creation, you can manage the open mode manually. """ enable_customer_owned_ip: bool | None = ... """ Specifies whether to enable a customer-owned IP address (CoIP) for an - RDS on Outposts DB instance. + RDS on Outposts read replica. A *CoIP* provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a - CoIP can provide lower latency for connections to the DB instance from + CoIP can provide lower latency for connections to the read replica from outside of its virtual private cloud (VPC) on your local network. For more information about RDS on Outposts, see [Working with Amazon RDS @@ -5148,43 +9808,46 @@ class CreateDBInstanceInput(_SerdeShape): """ The network type of the DB instance. - The network type is determined by the `DBSubnetGroup` specified for the - DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the + Valid Values: + + - `IPV4` + + - `DUAL` + + The network type is determined by the `DBSubnetGroup` specified for read + replica. A `DBSubnetGroup` can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (`DUAL`). For more information, see [Working with a DB instance in a VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the *Amazon RDS User Guide.* + """ + max_allocated_storage: int | None = ... + """ + The upper limit in gibibytes (GiB) to which Amazon RDS can automatically + scale the storage of the DB instance. - Valid Values: `IPV4 | DUAL` + For more information about this setting, including limitations that + apply to it, see [Managing capacity automatically with Amazon RDS + storage + autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) + in the *Amazon RDS User Guide*. """ backup_target: str | None = ... """ - The location for storing automated backups and manual snapshots. + The location where RDS stores automated backups and manual snapshots. Valid Values: - - `local` (Dedicated Local Zone) - - - `outposts` (Amazon Web Services Outposts) - - - `region` (Amazon Web Services Region) - - Default: `region` + - `local` for Dedicated Local Zones - For more information, see [Working with Amazon RDS on Amazon Web - Services - Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) - in the *Amazon RDS User Guide*. + - `region` for Amazon Web Services Region """ custom_iam_instance_profile: str | None = ... """ The instance profile associated with the underlying Amazon EC2 instance - of an RDS Custom DB instance. - - This setting is required for RDS Custom. - - Constraints: + of an RDS Custom DB instance. The instance profile must meet the + following requirements: - The profile must exist in your account. @@ -5198,118 +9861,63 @@ class CreateDBInstanceInput(_SerdeShape): IAM and your VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) in the *Amazon RDS User Guide*. - """ - db_system_id: str | None = ... - """ - The Oracle system identifier (SID), which is the name of the Oracle - database instance that manages your database files. In this context, the - term \"Oracle database instance\" refers exclusively to the system - global area (SGA) and Oracle background processes. If you don't specify - a SID, the value defaults to `RDSCDB`. The Oracle SID is also the name - of your CDB. - """ - ca_certificate_identifier: str | None = ... - """ - The CA certificate identifier to use for the DB instance's server - certificate. - - This setting doesn't apply to RDS Custom DB instances. - - For more information, see [Using SSL/TLS to encrypt a connection to a DB - instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) - in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a - connection to a DB - cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) - in the *Amazon Aurora User Guide*. - """ - manage_master_user_password: bool | None = ... - """ - Specifies whether to manage the master user password with Amazon Web - Services Secrets Manager. - - For more information, see [Password management with Amazon Web Services - Secrets - Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) - in the *Amazon RDS User Guide.* - - Constraints: - - Can't manage the master user password with Amazon Web Services - Secrets Manager if `MasterUserPassword` is specified. + This setting is required for RDS Custom DB instances. """ - master_user_secret_kms_key_id: str | None = ... + allocated_storage: int | None = ... """ - The Amazon Web Services KMS key identifier to encrypt a secret that is - automatically generated and managed in Amazon Web Services Secrets - Manager. - - This setting is valid only if the master user password is managed by RDS - in Amazon Web Services Secrets Manager for the DB instance. - - The Amazon Web Services KMS key identifier is the key ARN, key ID, alias - ARN, or alias name for the KMS key. To use a KMS key in a different - Amazon Web Services account, specify the key ARN or alias ARN. - - If you don't specify `MasterUserSecretKmsKeyId`, then the - `aws/secretsmanager` KMS key is used to encrypt the secret. If the - secret is in a different Amazon Web Services account, then you can't - use the `aws/secretsmanager` KMS key to encrypt the secret, and you must - use a customer managed KMS key. + The amount of storage (in gibibytes) to allocate initially for the read + replica. Follow the allocation rules specified in `CreateDBInstance`. - There is a default KMS key for your Amazon Web Services account. Your - Amazon Web Services account has a different default KMS key for each - Amazon Web Services Region. + This setting isn't valid for RDS for SQL Server. + + Note: + Be sure to allocate enough storage for your read replica so that the + create operation can succeed. You can also allocate additional storage + for future growth. """ - multi_tenant: bool | None = ... + source_db_cluster_identifier: str | None = ... """ - Specifies whether to use the multi-tenant configuration or the - single-tenant configuration (default). This parameter only applies to - RDS for Oracle container database (CDB) engines. + The identifier of the Multi-AZ DB cluster that will act as the source + for the read replica. Each DB cluster can have up to 15 read replicas. - Note the following restrictions: + Constraints: - - The DB engine that you specify in the request must support the - multi-tenant configuration. If you attempt to enable the multi-tenant - configuration on a DB engine that doesn't support it, the request - fails. + - Must be the identifier of an existing Multi-AZ DB cluster. - - If you specify the multi-tenant configuration when you create your DB - instance, you can't later modify this DB instance to use the - single-tenant configuration. + - Can't be specified if the `SourceDBInstanceIdentifier` parameter is + also specified. + + - The specified DB cluster must have automatic backups enabled, that is, + its backup retention period must be greater than 0. + + - The source DB cluster must be in the same Amazon Web Services Region + as the read replica. Cross-Region replication isn't supported. """ dedicated_log_volume: bool | None = ... """ Indicates whether the DB instance has a dedicated log volume (DLV) enabled. """ - engine_lifecycle_support: str | None = ... + upgrade_storage_config: bool | None = ... """ - The lifecycle type for this DB instance. - - Note: - By default, this value is set to `open-source-rds-extended-support`, - which enrolls your DB instance into Amazon RDS Extended Support. At the - end of standard support, you can avoid charges for Extended Support by - setting the value to `open-source-rds-extended-support-disabled`. In - this case, creating the DB instance will fail if the DB major version is - past its end of standard support date. - - This setting applies only to RDS for MySQL and RDS for PostgreSQL. For - Amazon Aurora DB instances, the engine lifecycle support is managed by - the DB cluster. - - You can use this setting to enroll your DB instance into Amazon RDS - Extended Support. With RDS Extended Support, you can run the selected - major engine version on your DB instance past the end of standard - support for that engine version. For more information, see [Amazon RDS - Extended Support with Amazon - RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) - in the *Amazon RDS User Guide*. + Whether to upgrade the storage file system configuration on the read + replica. This option migrates the read replica from the old storage file + system layout to the preferred layout. + """ + ca_certificate_identifier: str | None = ... + """ + The CA certificate identifier to use for the read replica's server + certificate. - Valid Values: - `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + This setting doesn't apply to RDS Custom DB instances. - Default: `open-source-rds-extended-support` + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a + connection to a DB + cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + in the *Amazon Aurora User Guide*. """ additional_storage_volumes: list[AdditionalStorageVolume] | None = ... """ @@ -5330,10 +9938,11 @@ class CreateDBInstanceInput(_SerdeShape): db_capacity_reservation_identifier: str | None = ... """ The identifier or the name of the DB capacity reservation to associate - with this DB instance. You can specify the identifier, which has the + with this read replica. You can specify the identifier, which has the prefix `dbcr-`, or the reservation name. When you specify this - parameter, the DB instance uses reserved capacity from the specified - reservation. + parameter, the read replica uses reserved capacity from the specified + reservation. A read replica uses one unit of reserved capacity, in the + same way as any other DB instance. If you specify `AvailabilityZone`, Amazon RDS places the DB instance in that Availability Zone, and the reservation must cover it. @@ -5344,7 +9953,8 @@ class CreateDBInstanceInput(_SerdeShape): the database engine of the DB instance. - If the reservation reserves capacity for a specific license model, the - license model of the DB instance must match it. + license model of the source DB instance must match it. A read replica + inherits its license model from the source DB instance. - The reservation must be in the `active` state, and it must not be past its end date. @@ -5366,56 +9976,17 @@ class CreateDBInstanceInput(_SerdeShape): - The DB subnet group must cover each Availability Zone that the DB instance uses. """ - master_user_authentication_type: str | None = ... - """ - Specifies the authentication type for the master user. With IAM master - user authentication, you can configure the master DB user with IAM - database authentication when you create a DB instance. - - You can specify one of the following values: - - - `password` - Use standard database authentication with a password. - - - `iam-db-auth` - Use IAM database authentication for the master user. - - This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL - engines. - """ - -@dataclass(kw_only=True) -class CreateDBInstanceOutput(_SerdeShape): - """Dataclass for CreateDBInstanceOutput structure.""" - - db_instance: DBInstance | None = ... - """ - Contains the details of an Amazon RDS DB instance. - - This data type is used as a response element in the operations - `CreateDBInstance`, `CreateDBInstanceReadReplica`, `DeleteDBInstance`, - `DescribeDBInstances`, `ModifyDBInstance`, `PromoteReadReplica`, - `RebootDBInstance`, `RestoreDBInstanceFromDBSnapshot`, - `RestoreDBInstanceFromS3`, `RestoreDBInstanceToPointInTime`, - `StartDBInstance`, and `StopDBInstance`. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ -@dataclass(kw_only=True) -class CreateDBInstanceReadReplicaInput(_SerdeShape): - """""" +class CreateDBInstanceReadReplicaInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBInstanceReadReplicaInput`.""" - db_instance_identifier: str | None = ... + db_instance_identifier: Required[str] """ The DB instance identifier of the read replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string. """ - source_db_instance_identifier: str | None = ... + source_db_instance_identifier: str | None """ The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to 15 read replicas, except @@ -5458,7 +10029,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): in the *Amazon RDS User Guide*. This doesn't apply to SQL Server or RDS Custom, which don't support cross-Region replicas. """ - db_instance_class: str | None = ... + db_instance_class: str | None """ The compute and memory capacity of the read replica, for example db.m4.large. Not all DB instance classes are available in all Amazon Web @@ -5469,7 +10040,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Default: Inherits the value from the source DB instance. """ - availability_zone: str | None = ... + availability_zone: str | None """ The Availability Zone (AZ) where the read replica will be created. @@ -5478,7 +10049,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Example: `us-east-1d` """ - port: int | None = ... + port: int | None """ The port number that the DB instance uses for connections. @@ -5486,7 +10057,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Default: Inherits the value from the source DB instance. """ - multi_az: bool | None = ... + multi_az: bool | None """ Specifies whether the read replica is in a Multi-AZ deployment. @@ -5498,7 +10069,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - auto_minor_version_upgrade: bool | None = ... + auto_minor_version_upgrade: bool | None """ Specifies whether to automatically apply minor engine upgrades to the read replica during the maintenance window. @@ -5511,18 +10082,18 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): [Automatically upgrading the minor engine version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). """ - iops: int | None = ... + iops: int | None """ The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. """ - storage_throughput: int | None = ... + storage_throughput: int | None """ Specifies the storage throughput value for the read replica. This setting doesn't apply to RDS Custom or Amazon Aurora DB instances. """ - option_group_name: str | None = ... + option_group_name: str | None """ The option group to associate the DB instance with. If not specified, RDS uses the option group associated with the source DB instance or @@ -5534,7 +10105,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - db_parameter_group_name: str | None = ... + db_parameter_group_name: str | None """ The name of the DB parameter group to associate with this read replica DB instance. @@ -5574,7 +10145,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): - Can't end with a hyphen or contain two consecutive hyphens. """ - publicly_accessible: bool | None = ... + publicly_accessible: bool | None """ Specifies whether the DB instance is publicly accessible. @@ -5591,7 +10162,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): For more information, see CreateDBInstance. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ A list of tags. @@ -5601,7 +10172,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide*. """ - db_subnet_group_name: str | None = ... + db_subnet_group_name: str | None """ A DB subnet group for the DB instance. The new DB instance is created in the VPC associated with the DB subnet group. If no DB subnet group is @@ -5625,7 +10196,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Example: `mydbsubnetgroup` """ - vpc_security_group_ids: list[str] | None = ... + vpc_security_group_ids: Sequence[str] | None """ A list of Amazon EC2 VPC security groups to associate with the read replica. @@ -5635,7 +10206,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Default: The default EC2 VPC security group for the DB subnet group's VPC. """ - storage_type: str | None = ... + storage_type: str | None """ The storage type to associate with the read replica. @@ -5646,12 +10217,12 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Default: `io1` if the `Iops` parameter is specified. Otherwise, `gp3`. """ - copy_tags_to_snapshot: bool | None = ... + copy_tags_to_snapshot: bool | None """ Specifies whether to copy all tags from the read replica to snapshots of the read replica. By default, tags aren't copied. """ - monitoring_interval: int | None = ... + monitoring_interval: int | None """ The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the read replica. To disable collection of @@ -5666,7 +10237,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Default: `0` """ - monitoring_role_arn: str | None = ... + monitoring_role_arn: str | None """ The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, @@ -5680,7 +10251,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - kms_key_id: str | None = ... + kms_key_id: str | None """ The Amazon Web Services KMS key identifier for an encrypted read replica. @@ -5711,7 +10282,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom, which uses the same KMS key as the primary replica. """ - pre_signed_url: str | None = ... + pre_signed_url: str | None """ When you are creating a read replica from one Amazon Web Services GovCloud (US) Region to another or from one China Amazon Web Services @@ -5782,7 +10353,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - enable_iam_database_authentication: bool | None = ... + enable_iam_database_authentication: bool | None """ Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, @@ -5795,14 +10366,14 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - database_insights_mode: str | None = ... + database_insights_mode: str | None """ The mode of Database Insights to enable for the read replica. Note: This setting isn't supported. """ - enable_performance_insights: bool | None = ... + enable_performance_insights: bool | None """ Specifies whether to enable Performance Insights for the read replica. @@ -5812,7 +10383,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - performance_insights_kms_key_id: str | None = ... + performance_insights_kms_key_id: str | None """ The Amazon Web Services KMS key identifier for encryption of Performance Insights data. @@ -5827,7 +10398,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - performance_insights_retention_period: int | None = ... + performance_insights_retention_period: int | None """ The number of days to retain Performance Insights data. @@ -5848,7 +10419,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): If you specify a retention period that isn't valid, such as `94`, Amazon RDS returns an error. """ - enable_cloudwatch_logs_exports: list[str] | None = ... + enable_cloudwatch_logs_exports: Sequence[str] | None """ The list of logs that the new DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For @@ -5858,21 +10429,21 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - processor_features: list[ProcessorFeature] | None = ... + processor_features: Sequence[ProcessorFeature | ProcessorFeatureDict] | None """ The number of CPU cores and the number of threads per core for the DB instance class of the DB instance. This setting doesn't apply to RDS Custom DB instances. """ - use_default_processor_features: bool | None = ... + use_default_processor_features: bool | None """ Specifies whether the DB instance class of the DB instance uses its default processor features. This setting doesn't apply to RDS Custom DB instances. """ - deletion_protection: bool | None = ... + deletion_protection: bool | None """ Specifies whether to enable deletion protection for the DB instance. The database can't be deleted when deletion protection is enabled. By @@ -5880,7 +10451,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): [Deleting a DB Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). """ - domain: str | None = ... + domain: str | None """ The Active Directory directory ID to create the DB instance in. Currently, only MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB @@ -5892,14 +10463,14 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - domain_iam_role_name: str | None = ... + domain_iam_role_name: str | None """ The name of the IAM role to use when making API calls to the Directory Service. This setting doesn't apply to RDS Custom DB instances. """ - domain_fqdn: str | None = ... + domain_fqdn: str | None """ The fully qualified domain name (FQDN) of an Active Directory domain. @@ -5909,7 +10480,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Example: `mymanagedADtest.mymanagedAD.mydomain` """ - domain_ou: str | None = ... + domain_ou: str | None """ The Active Directory organizational unit for your DB instance to join. @@ -5922,7 +10493,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Example: `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` """ - domain_auth_secret_arn: str | None = ... + domain_auth_secret_arn: str | None """ The ARN for the Secrets Manager secret with the credentials for the user joining the domain. @@ -5930,7 +10501,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Example: `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` """ - domain_dns_ips: list[str] | None = ... + domain_dns_ips: Sequence[str] | None """ The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers. @@ -5943,7 +10514,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Example: `123.124.125.126,234.235.236.237` """ - replica_mode: str | None = ... + replica_mode: str | None """ The open mode of the replica database. @@ -5952,41 +10523,41 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): Db2 - : Standby DB replicas are included in Db2 Advanced Edition (AE), Db2 - Community Edition (CE), and Db2 Standard Edition (SE). The main use - case for standby replicas is cross-Region disaster recovery. Because - it doesn't accept user connections, a standby replica can't serve a - read-only workload. + : Standby DB replicas are included in Db2 Advanced Edition (AE), Db2 + Community Edition (CE), and Db2 Standard Edition (SE). The main use + case for standby replicas is cross-Region disaster recovery. Because + it doesn't accept user connections, a standby replica can't serve + a read-only workload. - You can create a combination of standby and read-only DB replicas for - the same primary DB instance. For more information, see [Working with - replicas for Amazon RDS for - Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html) - in the *Amazon RDS User Guide*. + You can create a combination of standby and read-only DB replicas + for the same primary DB instance. For more information, see [Working + with replicas for Amazon RDS for + Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html) + in the *Amazon RDS User Guide*. - To create standby DB replicas for RDS for Db2, set this parameter to - `mounted`. + To create standby DB replicas for RDS for Db2, set this parameter to + `mounted`. Oracle - : Mounted DB replicas are included in Oracle Database Enterprise - Edition. The main use case for mounted replicas is cross-Region - disaster recovery. The primary database doesn't use Active Data Guard - to transmit information to the mounted replica. Because it doesn't - accept user connections, a mounted replica can't serve a read-only - workload. - - You can create a combination of mounted and read-only DB replicas for - the same primary DB instance. For more information, see [Working with - read replicas for Amazon RDS for - Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) - in the *Amazon RDS User Guide*. + : Mounted DB replicas are included in Oracle Database Enterprise + Edition. The main use case for mounted replicas is cross-Region + disaster recovery. The primary database doesn't use Active Data + Guard to transmit information to the mounted replica. Because it + doesn't accept user connections, a mounted replica can't serve a + read-only workload. + + You can create a combination of mounted and read-only DB replicas + for the same primary DB instance. For more information, see [Working + with read replicas for Amazon RDS for + Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) + in the *Amazon RDS User Guide*. - For RDS Custom, you must specify this parameter and set it to - `mounted`. The value won't be set by default. After replica creation, - you can manage the open mode manually. + For RDS Custom, you must specify this parameter and set it to + `mounted`. The value won't be set by default. After replica + creation, you can manage the open mode manually. """ - enable_customer_owned_ip: bool | None = ... + enable_customer_owned_ip: bool | None """ Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts read replica. @@ -6005,7 +10576,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) in the *Amazon Web Services Outposts User Guide*. """ - network_type: str | None = ... + network_type: str | None """ The network type of the DB instance. @@ -6023,7 +10594,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the *Amazon RDS User Guide.* """ - max_allocated_storage: int | None = ... + max_allocated_storage: int | None """ The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance. @@ -6034,7 +10605,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) in the *Amazon RDS User Guide*. """ - backup_target: str | None = ... + backup_target: str | None """ The location where RDS stores automated backups and manual snapshots. @@ -6044,7 +10615,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): - `region` for Amazon Web Services Region """ - custom_iam_instance_profile: str | None = ... + custom_iam_instance_profile: str | None """ The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the @@ -6065,7 +10636,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): This setting is required for RDS Custom DB instances. """ - allocated_storage: int | None = ... + allocated_storage: int | None """ The amount of storage (in gibibytes) to allocate initially for the read replica. Follow the allocation rules specified in `CreateDBInstance`. @@ -6077,7 +10648,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): create operation can succeed. You can also allocate additional storage for future growth. """ - source_db_cluster_identifier: str | None = ... + source_db_cluster_identifier: str | None """ The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas. @@ -6095,18 +10666,18 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): - The source DB cluster must be in the same Amazon Web Services Region as the read replica. Cross-Region replication isn't supported. """ - dedicated_log_volume: bool | None = ... + dedicated_log_volume: bool | None """ Indicates whether the DB instance has a dedicated log volume (DLV) enabled. """ - upgrade_storage_config: bool | None = ... + upgrade_storage_config: bool | None """ Whether to upgrade the storage file system configuration on the read replica. This option migrates the read replica from the old storage file system layout to the preferred layout. """ - ca_certificate_identifier: str | None = ... + ca_certificate_identifier: str | None """ The CA certificate identifier to use for the read replica's server certificate. @@ -6120,7 +10691,9 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) in the *Amazon Aurora User Guide*. """ - additional_storage_volumes: list[AdditionalStorageVolume] | None = ... + additional_storage_volumes: ( + Sequence[AdditionalStorageVolume | AdditionalStorageVolumeDict] | None + ) """ A list of additional storage volumes to create for the DB instance. You can create up to three additional storage volumes using the names @@ -6128,7 +10701,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): are supported for RDS for Oracle and RDS for SQL Server DB instances only. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ Tags to assign to resources associated with the DB instance. @@ -6136,7 +10709,7 @@ class CreateDBInstanceReadReplicaInput(_SerdeShape): - `auto-backup` - The DB instance's automated backup. """ - db_capacity_reservation_identifier: str | None = ... + db_capacity_reservation_identifier: str | None """ The identifier or the name of the DB capacity reservation to associate with this read replica. You can specify the identifier, which has the @@ -6201,11 +10774,86 @@ class CreateDBInstanceReadReplicaOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class CreateDBParameterGroupInput(_SerdeShape): - """""" +@dataclass(kw_only=True) +class CreateDBParameterGroupInput(_SerdeShape): + """""" + + db_parameter_group_name: str | None = ... + """ + The name of the DB parameter group. + + Constraints: + + - Must be 1 to 255 letters, numbers, or hyphens. + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Note: + This value is stored as a lowercase string. + """ + db_parameter_group_family: str | None = ... + """ + The DB parameter group family name. A DB parameter group can be + associated with one and only one DB parameter group family, and can be + applied only to a DB instance running a database engine and engine + version compatible with that DB parameter group family. + + To list all of the available parameter group families for a DB engine, + use the following command: + + `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine ` + + For example, to list all of the available parameter group families for + the MySQL DB engine, use the following command: + + `aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine mysql` + + Note: + The output contains duplicates. + + The following are the valid DB engine values: + + - `aurora-mysql` + + - `aurora-postgresql` + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + description: str | None = ... + """The description for the DB parameter group.""" + tags: list[Tag] | None = ... + """Tags to assign to the DB parameter group.""" + +class CreateDBParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBParameterGroupInput`.""" - db_parameter_group_name: str | None = ... + db_parameter_group_name: Required[str] """ The name of the DB parameter group. @@ -6220,7 +10868,7 @@ class CreateDBParameterGroupInput(_SerdeShape): Note: This value is stored as a lowercase string. """ - db_parameter_group_family: str | None = ... + db_parameter_group_family: Required[str] """ The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be @@ -6272,9 +10920,9 @@ class CreateDBParameterGroupInput(_SerdeShape): - `sqlserver-web` """ - description: str | None = ... + description: Required[str] """The description for the DB parameter group.""" - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """Tags to assign to the DB parameter group.""" @dataclass(kw_only=True) @@ -6360,6 +11008,69 @@ class CreateDBProxyEndpointInput(_SerdeShape): `dedicated`. """ +class CreateDBProxyEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBProxyEndpointInput`.""" + + db_proxy_name: Required[str] + """ + The name of the DB proxy associated with the DB proxy endpoint that you + create. + """ + db_proxy_endpoint_name: Required[str] + """The name of the DB proxy endpoint to create.""" + vpc_subnet_ids: Required[Sequence[str]] + """ + The VPC subnet IDs for the DB proxy endpoint that you create. You can + specify a different set of subnet IDs than for the original DB proxy. + """ + vpc_security_group_ids: Sequence[str] | None + """ + The VPC security group IDs for the DB proxy endpoint that you create. + You can specify a different set of security group IDs than for the + original DB proxy. The default is the default security group for the + VPC. + """ + target_role: str | None + """ + The role of the DB proxy endpoint. The role determines whether the + endpoint can be used for read/write or only read operations. The default + is `READ_WRITE`. The only role that proxies for RDS for Microsoft SQL + Server support is `READ_WRITE`. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + endpoint_network_type: str | None + """ + The network type of the DB proxy endpoint. The network type determines + the IP version that the proxy endpoint supports. + + Valid values: + + - `IPV4` - The proxy endpoint supports IPv4 only. + + - `IPV6` - The proxy endpoint supports IPv6 only. + + - `DUAL` - The proxy endpoint supports both IPv4 and IPv6. + + Default: `IPV4` + + Constraints: + + - If you specify `IPV6` or `DUAL`, the VPC and all subnets must have an + IPv6 CIDR block. + + - If you specify `IPV6` or `DUAL`, the VPC tenancy cannot be + `dedicated`. + """ + @dataclass(kw_only=True) class CreateDBProxyEndpointOutput(_SerdeShape): """Dataclass for CreateDBProxyEndpointOutput structure.""" @@ -6492,6 +11203,118 @@ class CreateDBProxyInput(_SerdeShape): specified network type. """ +class CreateDBProxyInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBProxyInput`.""" + + db_proxy_name: Required[str] + """ + The identifier for the proxy. This name must be unique for all proxies + owned by your Amazon Web Services account in the specified Amazon Web + Services Region. An identifier must begin with a letter and must contain + only ASCII letters, digits, and hyphens; it can't end with a hyphen or + contain two consecutive hyphens. + """ + engine_family: Required[str] + """ + The kinds of databases that the proxy can connect to. This value + determines which database network protocol the proxy recognizes when it + interprets network traffic to and from the database. For Aurora MySQL, + RDS for MariaDB, and RDS for MySQL databases, specify `MYSQL`. For + Aurora PostgreSQL and RDS for PostgreSQL databases, specify + `POSTGRESQL`. For RDS for Microsoft SQL Server, specify `SQLSERVER`. + """ + default_auth_scheme: str | None + """ + The default authentication scheme that the proxy uses for client + connections to the proxy and connections from the proxy to the + underlying database. Valid values are `NONE` and `IAM_AUTH`. When set to + `IAM_AUTH`, the proxy uses end-to-end IAM authentication to connect to + the database. If you don't specify `DefaultAuthScheme` or specify this + parameter as `NONE`, you must specify the `Auth` option. + """ + auth: Sequence[UserAuthConfig | UserAuthConfigDict] | None + """The authorization mechanism that the proxy uses.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role that the proxy uses to + access secrets in Amazon Web Services Secrets Manager. + """ + vpc_subnet_ids: Required[Sequence[str]] + """One or more VPC subnet IDs to associate with the new proxy.""" + vpc_security_group_ids: Sequence[str] | None + """One or more VPC security group IDs to associate with the new proxy.""" + require_tls: bool | None + """ + Specifies whether Transport Layer Security (TLS) encryption is required + for connections to the proxy. By enabling this setting, you can enforce + encrypted TLS connections to the proxy. + """ + idle_client_timeout: int | None + """ + The number of seconds that a connection to the proxy can be inactive + before the proxy disconnects it. You can set this value higher or lower + than the connection timeout limit for the associated database. + """ + debug_logging: bool | None + """ + Specifies whether the proxy logs detailed connection and query + information. When you enable `DebugLogging`, the proxy captures + connection details and connection pool behavior from your queries. Debug + logging increases CloudWatch costs and can impact proxy performance. + Enable this option only when you need to troubleshoot connection or + performance issues. + """ + tags: Sequence[Tag | TagDict] | None + """ + An optional set of key-value pairs to associate arbitrary data of your + choosing with the proxy. + """ + endpoint_network_type: str | None + """ + The network type of the DB proxy endpoint. The network type determines + the IP version that the proxy endpoint supports. + + Valid values: + + - `IPV4` - The proxy endpoint supports IPv4 only. + + - `IPV6` - The proxy endpoint supports IPv6 only. + + - `DUAL` - The proxy endpoint supports both IPv4 and IPv6. + + Default: `IPV4` + + Constraints: + + - If you specify `IPV6` or `DUAL`, the VPC and all subnets must have an + IPv6 CIDR block. + + - If you specify `IPV6` or `DUAL`, the VPC tenancy cannot be + `dedicated`. + """ + target_connection_network_type: str | None + """ + The network type that the proxy uses to connect to the target database. + The network type determines the IP version that the proxy uses for + connections to the database. + + Valid values: + + - `IPV4` - The proxy connects to the database using IPv4 only. + + - `IPV6` - The proxy connects to the database using IPv6 only. + + Default: `IPV4` + + Constraints: + + - If you specify `IPV6`, the database must support dual-stack mode. RDS + doesn't support IPv6-only databases. + + - All targets registered with the proxy must be compatible with the + specified network type. + """ + @dataclass(kw_only=True) class CreateDBProxyOutput(_SerdeShape): """Dataclass for CreateDBProxyOutput structure.""" @@ -6532,6 +11355,31 @@ class CreateDBSecurityGroupInput(_SerdeShape): tags: list[Tag] | None = ... """Tags to assign to the DB security group.""" +class CreateDBSecurityGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBSecurityGroupInput`.""" + + db_security_group_name: Required[str] + """ + The name for the DB security group. This value is stored as a lowercase + string. + + Constraints: + + - Must be 1 to 255 letters, numbers, or hyphens. + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + - Must not be \"Default\" + + Example: `mysecuritygroup` + """ + db_security_group_description: Required[str] + """The description for the DB security group.""" + tags: Sequence[Tag | TagDict] | None + """Tags to assign to the DB security group.""" + @dataclass(kw_only=True) class CreateDBSecurityGroupOutput(_SerdeShape): """Dataclass for CreateDBSecurityGroupOutput structure.""" @@ -6545,21 +11393,99 @@ class CreateDBSecurityGroupOutput(_SerdeShape): """ response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateDBShardGroupInput(_SerdeShape): + """Dataclass for CreateDBShardGroupInput structure.""" + + db_shard_group_identifier: str | None = ... + """The name of the DB shard group.""" + db_cluster_identifier: str | None = ... + """The name of the primary DB cluster for the DB shard group.""" + compute_redundancy: int | None = ... + """ + Specifies whether to create standby standby DB data access shard for the + DB shard group. Valid values are the following: + + - 0 - Creates a DB shard group without a standby DB data access shard. + This is the default value. + + - 1 - Creates a DB shard group with a standby DB data access shard in a + different Availability Zone (AZ). + + - 2 - Creates a DB shard group with two standby DB data access shard in + two different AZs. + """ + max_acu: float | None = ... + """ + The maximum capacity of the DB shard group in Aurora capacity units + (ACUs). + """ + min_acu: float | None = ... + """ + The minimum capacity of the DB shard group in Aurora capacity units + (ACUs). + """ + publicly_accessible: bool | None = ... + """ + Specifies whether the DB shard group is publicly accessible. + + When the DB shard group is publicly accessible, its Domain Name System + (DNS) endpoint resolves to the private IP address from within the DB + shard group's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB shard group's VPC. Access to the DB + shard group is ultimately controlled by the security group it uses. That + public access is not permitted if the security group assigned to the DB + shard group doesn't permit it. + + When the DB shard group isn't publicly accessible, it is an internal DB + shard group with a DNS name that resolves to a private IP address. + + Default: The default behavior varies depending on whether + `DBSubnetGroupName` is specified. + + If `DBSubnetGroupName` isn't specified, and `PubliclyAccessible` isn't + specified, the following applies: + + - If the default VPC in the target Region doesn't have an internet + gateway attached to it, the DB shard group is private. + + - If the default VPC in the target Region has an internet gateway + attached to it, the DB shard group is public. + + If `DBSubnetGroupName` is specified, and `PubliclyAccessible` isn't + specified, the following applies: + + - If the subnets are part of a VPC that doesn't have an internet gateway + attached to it, the DB shard group is private. + + - If the subnets are part of a VPC that has an internet gateway attached + to it, the DB shard group is public. + """ + tags: list[Tag] | None = ... + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. """ -@dataclass(kw_only=True) -class CreateDBShardGroupInput(_SerdeShape): - """Dataclass for CreateDBShardGroupInput structure.""" +class CreateDBShardGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBShardGroupInput`.""" - db_shard_group_identifier: str | None = ... + db_shard_group_identifier: Required[str] """The name of the DB shard group.""" - db_cluster_identifier: str | None = ... + db_cluster_identifier: Required[str] """The name of the primary DB cluster for the DB shard group.""" - compute_redundancy: int | None = ... + compute_redundancy: int | None """ Specifies whether to create standby standby DB data access shard for the DB shard group. Valid values are the following: @@ -6573,17 +11499,17 @@ class CreateDBShardGroupInput(_SerdeShape): - 2 - Creates a DB shard group with two standby DB data access shard in two different AZs. """ - max_acu: float | None = ... + max_acu: Required[float] """ The maximum capacity of the DB shard group in Aurora capacity units (ACUs). """ - min_acu: float | None = ... + min_acu: float | None """ The minimum capacity of the DB shard group in Aurora capacity units (ACUs). """ - publicly_accessible: bool | None = ... + publicly_accessible: bool | None """ Specifies whether the DB shard group is publicly accessible. @@ -6619,7 +11545,7 @@ class CreateDBShardGroupInput(_SerdeShape): - If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is public. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ A list of tags. @@ -6750,6 +11676,45 @@ class CreateDBSnapshotInput(_SerdeShape): in the *Amazon Aurora User Guide*. """ +class CreateDBSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBSnapshotInput`.""" + + db_snapshot_identifier: Required[str] + """ + The identifier for the DB snapshot. + + Constraints: + + - Can't be null, empty, or blank + + - Must contain from 1 to 255 letters, numbers, or hyphens + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Example: `my-snapshot-id` + """ + db_instance_identifier: Required[str] + """ + The identifier of the DB instance that you want to create the snapshot + of. + + Constraints: + + - Must match the identifier of an existing DBInstance. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + @dataclass(kw_only=True) class CreateDBSnapshotOutput(_SerdeShape): """Dataclass for CreateDBSnapshotOutput structure.""" @@ -6796,6 +11761,32 @@ class CreateDBSubnetGroupInput(_SerdeShape): tags: list[Tag] | None = ... """Tags to assign to the DB subnet group.""" +class CreateDBSubnetGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateDBSubnetGroupInput`.""" + + db_subnet_group_name: Required[str] + """ + The name for the DB subnet group. This value is stored as a lowercase + string. + + Constraints: + + - Must contain no more than 255 letters, numbers, periods, underscores, + spaces, or hyphens. + + - Must not be default. + + - First character must be a letter. + + Example: `mydbsubnetgroup` + """ + db_subnet_group_description: Required[str] + """The description for the DB subnet group.""" + subnet_ids: Required[Sequence[str]] + """The EC2 Subnet IDs for the DB subnet group.""" + tags: Sequence[Tag | TagDict] | None + """Tags to assign to the DB subnet group.""" + @dataclass(kw_only=True) class CreateDBSubnetGroupOutput(_SerdeShape): """Dataclass for CreateDBSubnetGroupOutput structure.""" @@ -6909,6 +11900,99 @@ class CreateEventSubscriptionInput(_SerdeShape): in the *Amazon Aurora User Guide*. """ +class CreateEventSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `CreateEventSubscriptionInput`.""" + + subscription_name: Required[str] + """ + The name of the subscription. + + Constraints: The name must be less than 255 characters. + """ + sns_topic_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the SNS topic created for event + notification. SNS automatically creates the ARN when you create a topic + and subscribe to it. + + Note: + RDS doesn't support FIFO (first in, first out) topics. For more + information, see [Message ordering and deduplication (FIFO + topics)](https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html) + in the *Amazon Simple Notification Service Developer Guide*. + """ + source_type: str | None + """ + The type of source that is generating the events. For example, if you + want to be notified of events generated by a DB instance, you set this + parameter to `db-instance`. For RDS Proxy events, specify `db-proxy`. If + this value isn't specified, all events are returned. + + Valid + Values:` db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment ` + """ + event_categories: Sequence[str] | None + """ + A list of event categories for a particular source type (`SourceType`) + that you want to subscribe to. You can see a list of the categories for + a given source type in the \"Amazon RDS event categories and event + messages\" section of the [*Amazon RDS User + Guide*](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.Messages.html) + or the [*Amazon Aurora User + Guide*](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Events.Messages.html) + . You can also see this list by using the `DescribeEventCategories` + operation. + """ + source_ids: Sequence[str] | None + """ + The list of identifiers of the event sources for which events are + returned. If not specified, then all sources are included in the + response. An identifier must begin with a letter and must contain only + ASCII letters, digits, and hyphens. It can't end with a hyphen or + contain two consecutive hyphens. + + Constraints: + + - If `SourceIds` are supplied, `SourceType` must also be provided. + + - If the source type is a DB instance, a `DBInstanceIdentifier` value + must be supplied. + + - If the source type is a DB cluster, a `DBClusterIdentifier` value must + be supplied. + + - If the source type is a DB parameter group, a `DBParameterGroupName` + value must be supplied. + + - If the source type is a DB security group, a `DBSecurityGroupName` + value must be supplied. + + - If the source type is a DB snapshot, a `DBSnapshotIdentifier` value + must be supplied. + + - If the source type is a DB cluster snapshot, a + `DBClusterSnapshotIdentifier` value must be supplied. + + - If the source type is an RDS Proxy, a `DBProxyName` value must be + supplied. + """ + enabled: bool | None + """ + Specifies whether to activate the subscription. If the event + notification subscription isn't activated, the subscription is created + but not active. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + @dataclass(kw_only=True) class CreateEventSubscriptionOutput(_SerdeShape): """Dataclass for CreateEventSubscriptionOutput structure.""" @@ -7000,13 +12084,117 @@ class CreateGlobalClusterInput(_SerdeShape): Default: `open-source-rds-extended-support` """ - deletion_protection: bool | None = ... + deletion_protection: bool | None = ... + """ + Specifies whether to enable deletion protection for the new global + database cluster. The global database can't be deleted when deletion + protection is enabled. + """ + database_name: str | None = ... + """ + The name for your database of up to 64 alphanumeric characters. If you + don't specify a name, Amazon Aurora doesn't create a database in the + global database cluster. + + Constraints: + + - Can't be specified if `SourceDBClusterIdentifier` is specified. In + this case, Amazon Aurora uses the database name from the source DB + cluster. + """ + storage_encrypted: bool | None = ... + """ + Specifies whether to enable storage encryption for the new global + database cluster. + + Constraints: + + - Can't be specified if `SourceDBClusterIdentifier` is specified. In + this case, Amazon Aurora uses the setting from the source DB cluster. + """ + tags: list[Tag] | None = ... + """Tags to assign to the global cluster.""" + +class CreateGlobalClusterInputDict(TypedDict, total=False): + """Dictionary form of `CreateGlobalClusterInput`.""" + + global_cluster_identifier: Required[str] + """ + The cluster identifier for this global database cluster. This parameter + is stored as a lowercase string. + """ + source_db_cluster_identifier: str | None + """ + The Amazon Resource Name (ARN) to use as the primary cluster of the + global database. + + If you provide a value for this parameter, don't specify values for the + following settings because Amazon Aurora uses the values from the + specified source DB cluster: + + - `DatabaseName` + + - `Engine` + + - `EngineVersion` + + - `StorageEncrypted` + """ + engine: str | None + """ + The database engine to use for this global database cluster. + + Valid Values: `aurora-mysql | aurora-postgresql` + + Constraints: + + - Can't be specified if `SourceDBClusterIdentifier` is specified. In + this case, Amazon Aurora uses the engine of the source DB cluster. + """ + engine_version: str | None + """ + The engine version to use for this global database cluster. + + Constraints: + + - Can't be specified if `SourceDBClusterIdentifier` is specified. In + this case, Amazon Aurora uses the engine version of the source DB + cluster. + """ + engine_lifecycle_support: str | None + """ + The lifecycle type for this global database cluster. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your global cluster into Amazon RDS Extended Support. At + the end of standard support, you can avoid charges for Extended Support + by setting the value to `open-source-rds-extended-support-disabled`. In + this case, creating the global cluster will fail if the DB major version + is past its end of standard support date. + + This setting only applies to Aurora PostgreSQL-based global databases. + + You can use this setting to enroll your global cluster into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your global cluster past the end of standard + support for that engine version. For more information, see [Amazon RDS + Extended Support with Amazon + Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) + in the *Amazon Aurora User Guide*. + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + deletion_protection: bool | None """ Specifies whether to enable deletion protection for the new global database cluster. The global database can't be deleted when deletion protection is enabled. """ - database_name: str | None = ... + database_name: str | None """ The name for your database of up to 64 alphanumeric characters. If you don't specify a name, Amazon Aurora doesn't create a database in the @@ -7018,7 +12206,7 @@ class CreateGlobalClusterInput(_SerdeShape): this case, Amazon Aurora uses the database name from the source DB cluster. """ - storage_encrypted: bool | None = ... + storage_encrypted: bool | None """ Specifies whether to enable storage encryption for the new global database cluster. @@ -7028,7 +12216,7 @@ class CreateGlobalClusterInput(_SerdeShape): - Can't be specified if `SourceDBClusterIdentifier` is specified. In this case, Amazon Aurora uses the setting from the source DB cluster. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """Tags to assign to the global cluster.""" @dataclass(kw_only=True) @@ -7100,6 +12288,60 @@ class CreateIntegrationInput(_SerdeShape): description: str | None = ... """A description of the integration.""" +class CreateIntegrationInputDict(TypedDict, total=False): + """Dictionary form of `CreateIntegrationInput`.""" + + source_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the database to use as the source for + replication. + """ + target_arn: Required[str] + """ + The ARN of the Redshift data warehouse to use as the target for + replication. + """ + integration_name: Required[str] + """The name of the integration.""" + kms_key_id: str | None + """ + The Amazon Web Services Key Management System (Amazon Web Services KMS) + key identifier for the key to use to encrypt the integration. If you + don't specify an encryption key, RDS uses a default Amazon Web Services + owned key. + """ + additional_encryption_context: Mapping[str, str] | None + """ + An optional set of non-secret key--value pairs that contains additional + contextual information about the data. For more information, see + [Encryption + context](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) + in the *Amazon Web Services Key Management Service Developer Guide*. + + You can only include this parameter if you specify the `KMSKeyId` + parameter. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + data_filter: str | None + """ + Data filtering options for the integration. For more information, see + [Data filtering for Aurora zero-ETL integrations with Amazon + Redshift](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/zero-etl.filtering.html) + or [Data filtering for Amazon RDS zero-ETL integrations with Amazon + Redshift](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/zero-etl.filtering.html). + """ + description: str | None + """A description of the integration.""" + @dataclass(kw_only=True) class CreateIntegrationOutput(_SerdeShape): """A zero-ETL integration with Amazon Redshift.""" @@ -7227,6 +12469,67 @@ class CreateOptionGroupInput(_SerdeShape): tags: list[Tag] | None = ... """Tags to assign to the option group.""" +class CreateOptionGroupInputDict(TypedDict, total=False): + """Dictionary form of `CreateOptionGroupInput`.""" + + option_group_name: Required[str] + """ + Specifies the name of the option group to be created. + + Constraints: + + - Must be 1 to 255 letters, numbers, or hyphens + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Example: `myoptiongroup` + """ + engine_name: Required[str] + """ + The name of the engine to associate this option group with. + + Valid Values: + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + major_engine_version: Required[str] + """ + Specifies the major version of the engine that this option group should + be associated with. + """ + option_group_description: Required[str] + """The description of the option group.""" + tags: Sequence[Tag | TagDict] | None + """Tags to assign to the option group.""" + @dataclass(kw_only=True) class CreateOptionGroupOutput(_SerdeShape): """Dataclass for CreateOptionGroupOutput structure.""" @@ -7340,6 +12643,104 @@ class CreateTenantDatabaseInput(_SerdeShape): in the *Amazon Aurora User Guide*. """ +class CreateTenantDatabaseInputDict(TypedDict, total=False): + """Dictionary form of `CreateTenantDatabaseInput`.""" + + db_instance_identifier: Required[str] + """ + The user-supplied DB instance identifier. RDS creates your tenant + database in this DB instance. This parameter isn't case-sensitive. + """ + tenant_db_name: Required[str] + """ + The user-supplied name of the tenant database that you want to create in + your DB instance. This parameter has the same constraints as `DBName` in + `CreateDBInstance`. + """ + master_username: Required[str] + """ + The name for the master user account in your tenant database. RDS + creates this user account in the tenant database and grants privileges + to the master user. This parameter is case-sensitive. + + Constraints: + + - Must be 1 to 16 letters, numbers, or underscores. + + - First character must be a letter. + + - Can't be a reserved word for the chosen database engine. + """ + master_user_password: str | None + """ + The password for the master user in your tenant database. + + Constraints: + + - Must be 8 to 30 characters. + + - Can include any printable ASCII character except forward slash (`/`), + double quote (`"`), at symbol (`@`), ampersand (`&`), or single quote + (`'`). + + - Can't be specified when `ManageMasterUserPassword` is enabled. + """ + character_set_name: str | None + """ + The character set for your tenant database. If you don't specify a + value, the character set name defaults to `AL32UTF8`. + """ + nchar_character_set_name: str | None + """The `NCHAR` value for the tenant database.""" + manage_master_user_password: bool | None + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. + """ + master_user_secret_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + @dataclass(kw_only=True) class CreateTenantDatabaseOutput(_SerdeShape): """Dataclass for CreateTenantDatabaseOutput structure.""" @@ -8283,6 +13684,20 @@ class DBClusterAssociatedRole(_SerdeShape): about supported feature names, see DBEngineVersion. """ +class DBClusterAssociatedRoleDict(TypedDict, total=False): + """Dictionary form of `DBClusterAssociatedRole`.""" + + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role to associate with the DB + cluster. + """ + feature_name: str | None + """ + The name of the feature associated with the IAM role. For information + about supported feature names, see DBEngineVersion. + """ + @dataclass(kw_only=True) class DBClusterAutomatedBackup(_SerdeShape): """ @@ -11583,6 +16998,26 @@ class DeleteBlueGreenDeploymentInput(_SerdeShape): is `SWITCHOVER_COMPLETED`. """ +class DeleteBlueGreenDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBlueGreenDeploymentInput`.""" + + blue_green_deployment_identifier: Required[str] + """ + The unique identifier of the blue/green deployment to delete. This + parameter isn't case-sensitive. + + Constraints: + + - Must match an existing blue/green deployment identifier. + """ + delete_target: bool | None + """ + Specifies whether to delete the resources in the green environment. You + can't specify this option if the blue/green deployment + [status](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_BlueGreenDeployment.html) + is `SWITCHOVER_COMPLETED`. + """ + @dataclass(kw_only=True) class DeleteBlueGreenDeploymentOutput(_SerdeShape): """Dataclass for DeleteBlueGreenDeploymentOutput structure.""" @@ -11611,7 +17046,50 @@ class DeleteBlueGreenDeploymentOutput(_SerdeShape): class DeleteCustomDBEngineVersionInput(_SerdeShape): """Dataclass for DeleteCustomDBEngineVersionInput structure.""" - engine: str | None = ... + engine: str | None = ... + """ + The database engine. + + RDS Custom for Oracle supports the following values: + + - `custom-oracle-ee` + + - `custom-oracle-ee-cdb` + + - `custom-oracle-se2` + + - `custom-oracle-se2-cdb` + + RDS Custom for SQL Server supports the following values: + + - `custom-sqlserver-ee` + + - `custom-sqlserver-se` + + - `custom-sqlserver-web` + + - `custom-sqlserver-dev` + + RDS for SQL Server supports the following values: + + - `sqlserver-ee` (Bring Your Own Media) + + - `sqlserver-se` (Bring Your Own Media) + + - `sqlserver-dev-ee` + """ + engine_version: str | None = ... + """ + The custom engine version (CEV) for your DB instance. This option is + required for RDS Custom, but optional for Amazon RDS. The combination of + `Engine` and `EngineVersion` is unique per customer per Amazon Web + Services Region. + """ + +class DeleteCustomDBEngineVersionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteCustomDBEngineVersionInput`.""" + + engine: Required[str] """ The database engine. @@ -11643,7 +17121,7 @@ class DeleteCustomDBEngineVersionInput(_SerdeShape): - `sqlserver-dev-ee` """ - engine_version: str | None = ... + engine_version: Required[str] """ The custom engine version (CEV) for your DB instance. This option is required for RDS Custom, but optional for Amazon RDS. The combination of @@ -11875,6 +17353,15 @@ class DeleteDBClusterAutomatedBackupInput(_SerdeShape): which is unique to an Amazon Web Services Region. """ +class DeleteDBClusterAutomatedBackupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBClusterAutomatedBackupInput`.""" + + db_cluster_resource_id: Required[str] + """ + The identifier for the source DB cluster, which can't be changed and + which is unique to an Amazon Web Services Region. + """ + @dataclass(kw_only=True) class DeleteDBClusterAutomatedBackupOutput(_SerdeShape): """Dataclass for DeleteDBClusterAutomatedBackupOutput structure.""" @@ -11903,6 +17390,15 @@ class DeleteDBClusterEndpointInput(_SerdeShape): stored as a lowercase string. """ +class DeleteDBClusterEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBClusterEndpointInput`.""" + + db_cluster_endpoint_identifier: Required[str] + """ + The identifier associated with the custom endpoint. This parameter is + stored as a lowercase string. + """ + @dataclass(kw_only=True) class DeleteDBClusterEndpointOutput(_SerdeShape): """ @@ -12028,6 +17524,58 @@ class DeleteDBClusterInput(_SerdeShape): restore rule. """ +class DeleteDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """ + The DB cluster identifier for the DB cluster to be deleted. This + parameter isn't case-sensitive. + + Constraints: + + - Must match an existing DBClusterIdentifier. + """ + skip_final_snapshot: bool | None + """ + Specifies whether to skip the creation of a final DB cluster snapshot + before RDS deletes the DB cluster. If you set this value to `true`, RDS + doesn't create a final DB cluster snapshot. If you set this value to + `false` or don't specify it, RDS creates a DB cluster snapshot before + it deletes the DB cluster. By default, this parameter is disabled, so + RDS creates a final DB cluster snapshot. + + Note: + If `SkipFinalSnapshot` is disabled, you must specify a value for the + `FinalDBSnapshotIdentifier` parameter. + """ + final_db_snapshot_identifier: str | None + """ + The DB cluster snapshot identifier of the new DB cluster snapshot + created when `SkipFinalSnapshot` is disabled. + + Note: + If you specify this parameter and also skip the creation of a final DB + cluster snapshot with the `SkipFinalShapshot` parameter, the request + results in an error. + + Constraints: + + - Must be 1 to 255 letters, numbers, or hyphens. + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + """ + delete_automated_backups: bool | None + """ + Specifies whether to remove automated backups immediately after the DB + cluster is deleted. This parameter isn't case-sensitive. The default is + to remove automated backups immediately after the DB cluster is deleted, + unless the Amazon Web Services Backup policy specifies a point-in-time + restore rule. + """ + @dataclass(kw_only=True) class DeleteDBClusterOutput(_SerdeShape): """Dataclass for DeleteDBClusterOutput structure.""" @@ -12084,6 +17632,22 @@ class DeleteDBClusterParameterGroupInput(_SerdeShape): - Can't be associated with any DB clusters. """ +class DeleteDBClusterParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBClusterParameterGroupInput`.""" + + db_cluster_parameter_group_name: Required[str] + """ + The name of the DB cluster parameter group. + + Constraints: + + - Must be the name of an existing DB cluster parameter group. + + - You can't delete a default DB cluster parameter group. + + - Can't be associated with any DB clusters. + """ + @dataclass(kw_only=True) class DeleteDBClusterParameterGroupOutput(_SerdeShape): """Dataclass for DeleteDBClusterParameterGroupOutput structure.""" @@ -12108,6 +17672,17 @@ class DeleteDBClusterSnapshotInput(_SerdeShape): `available` state. """ +class DeleteDBClusterSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBClusterSnapshotInput`.""" + + db_cluster_snapshot_identifier: Required[str] + """ + The identifier of the DB cluster snapshot to delete. + + Constraints: Must be the name of an existing DB cluster snapshot in the + `available` state. + """ + @dataclass(kw_only=True) class DeleteDBClusterSnapshotOutput(_SerdeShape): """Dataclass for DeleteDBClusterSnapshotOutput structure.""" @@ -12145,6 +17720,23 @@ class DeleteDBInstanceAutomatedBackupInput(_SerdeShape): This setting doesn't apply to RDS Custom. """ +class DeleteDBInstanceAutomatedBackupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBInstanceAutomatedBackupInput`.""" + + dbi_resource_id: str | None + """ + The identifier for the source DB instance, which can't be changed and + which is unique to an Amazon Web Services Region. + """ + db_instance_automated_backups_arn: str | None + """ + The Amazon Resource Name (ARN) of the automated backups to delete, for + example, + `arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE`. + + This setting doesn't apply to RDS Custom. + """ + @dataclass(kw_only=True) class DeleteDBInstanceAutomatedBackupOutput(_SerdeShape): """Dataclass for DeleteDBInstanceAutomatedBackupOutput structure.""" @@ -12226,6 +17818,68 @@ class DeleteDBInstanceInput(_SerdeShape): deleted. """ +class DeleteDBInstanceInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBInstanceInput`.""" + + db_instance_identifier: Required[str] + """ + The DB instance identifier for the DB instance to be deleted. This + parameter isn't case-sensitive. + + Constraints: + + - Must match the name of an existing DB instance. + """ + skip_final_snapshot: bool | None + """ + Specifies whether to skip the creation of a final DB snapshot before + deleting the instance. If you enable this parameter, RDS doesn't create + a DB snapshot. If you don't enable this parameter, RDS creates a DB + snapshot before the DB instance is deleted. By default, skip isn't + enabled, and the DB snapshot is created. + + Note: + If you don't enable this parameter, you must specify the + `FinalDBSnapshotIdentifier` parameter. + + When a DB instance is in a failure state and has a status of `failed`, + `incompatible-restore`, or `incompatible-network`, RDS can delete the + instance only if you enable this parameter. + + If you delete a read replica or an RDS Custom instance, you must enable + this setting. + + This setting is required for RDS Custom. + """ + final_db_snapshot_identifier: str | None + """ + The `DBSnapshotIdentifier` of the new `DBSnapshot` created when the + `SkipFinalSnapshot` parameter is disabled. + + Note: + If you enable this parameter and also enable SkipFinalShapshot, the + command results in an error. + + This setting doesn't apply to RDS Custom. + + Constraints: + + - Must be 1 to 255 letters or numbers. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + - Can't be specified when deleting a read replica. + """ + delete_automated_backups: bool | None + """ + Specifies whether to remove automated backups immediately after the DB + instance is deleted. This parameter isn't case-sensitive. The default + is to remove automated backups immediately after the DB instance is + deleted. + """ + @dataclass(kw_only=True) class DeleteDBInstanceOutput(_SerdeShape): """Dataclass for DeleteDBInstanceOutput structure.""" @@ -12266,6 +17920,22 @@ class DeleteDBParameterGroupInput(_SerdeShape): - Can't be associated with any DB instances """ +class DeleteDBParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBParameterGroupInput`.""" + + db_parameter_group_name: Required[str] + """ + The name of the DB parameter group. + + Constraints: + + - Must be the name of an existing DB parameter group + + - You can't delete a default DB parameter group + + - Can't be associated with any DB instances + """ + @dataclass(kw_only=True) class DeleteDBParameterGroupOutput(_SerdeShape): """Dataclass for DeleteDBParameterGroupOutput structure.""" @@ -12285,6 +17955,12 @@ class DeleteDBProxyEndpointInput(_SerdeShape): db_proxy_endpoint_name: str | None = ... """The name of the DB proxy endpoint to delete.""" +class DeleteDBProxyEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBProxyEndpointInput`.""" + + db_proxy_endpoint_name: Required[str] + """The name of the DB proxy endpoint to delete.""" + @dataclass(kw_only=True) class DeleteDBProxyEndpointOutput(_SerdeShape): """Dataclass for DeleteDBProxyEndpointOutput structure.""" @@ -12309,6 +17985,12 @@ class DeleteDBProxyInput(_SerdeShape): db_proxy_name: str | None = ... """The name of the DB proxy to delete.""" +class DeleteDBProxyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBProxyInput`.""" + + db_proxy_name: Required[str] + """The name of the DB proxy to delete.""" + @dataclass(kw_only=True) class DeleteDBProxyOutput(_SerdeShape): """Dataclass for DeleteDBProxyOutput structure.""" @@ -12348,6 +18030,27 @@ class DeleteDBSecurityGroupInput(_SerdeShape): - Must not be \"Default\" """ +class DeleteDBSecurityGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBSecurityGroupInput`.""" + + db_security_group_name: Required[str] + """ + The name of the DB security group to delete. + + Note: + You can't delete the default DB security group. + + Constraints: + + - Must be 1 to 255 letters, numbers, or hyphens. + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + - Must not be \"Default\" + """ + @dataclass(kw_only=True) class DeleteDBSecurityGroupOutput(_SerdeShape): """Dataclass for DeleteDBSecurityGroupOutput structure.""" @@ -12367,6 +18070,12 @@ class DeleteDBShardGroupInput(_SerdeShape): db_shard_group_identifier: str | None = ... """The name of the DB shard group to delete.""" +class DeleteDBShardGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBShardGroupInput`.""" + + db_shard_group_identifier: Required[str] + """The name of the DB shard group to delete.""" + @dataclass(kw_only=True) class DeleteDBShardGroupOutput(_SerdeShape): """Contains the details for an Amazon RDS DB shard group.""" @@ -12459,6 +18168,17 @@ class DeleteDBSnapshotInput(_SerdeShape): `available` state. """ +class DeleteDBSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBSnapshotInput`.""" + + db_snapshot_identifier: Required[str] + """ + The DB snapshot identifier. + + Constraints: Must be the name of an existing DB snapshot in the + `available` state. + """ + @dataclass(kw_only=True) class DeleteDBSnapshotOutput(_SerdeShape): """Dataclass for DeleteDBSnapshotOutput structure.""" @@ -12495,6 +18215,22 @@ class DeleteDBSubnetGroupInput(_SerdeShape): Example: `mydbsubnetgroup` """ +class DeleteDBSubnetGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteDBSubnetGroupInput`.""" + + db_subnet_group_name: Required[str] + """ + The name of the database subnet group to delete. + + Note: + You can't delete the default subnet group. + + Constraints: Must match the name of an existing DBSubnetGroup. Must not + be default. + + Example: `mydbsubnetgroup` + """ + @dataclass(kw_only=True) class DeleteDBSubnetGroupOutput(_SerdeShape): """Dataclass for DeleteDBSubnetGroupOutput structure.""" @@ -12514,6 +18250,12 @@ class DeleteEventSubscriptionInput(_SerdeShape): subscription_name: str | None = ... """The name of the RDS event notification subscription you want to delete.""" +class DeleteEventSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteEventSubscriptionInput`.""" + + subscription_name: Required[str] + """The name of the RDS event notification subscription you want to delete.""" + @dataclass(kw_only=True) class DeleteEventSubscriptionOutput(_SerdeShape): """Dataclass for DeleteEventSubscriptionOutput structure.""" @@ -12538,6 +18280,12 @@ class DeleteGlobalClusterInput(_SerdeShape): global_cluster_identifier: str | None = ... """The cluster identifier of the global database cluster being deleted.""" +class DeleteGlobalClusterInputDict(TypedDict, total=False): + """Dictionary form of `DeleteGlobalClusterInput`.""" + + global_cluster_identifier: Required[str] + """The cluster identifier of the global database cluster being deleted.""" + @dataclass(kw_only=True) class DeleteGlobalClusterOutput(_SerdeShape): """Dataclass for DeleteGlobalClusterOutput structure.""" @@ -12559,6 +18307,12 @@ class DeleteIntegrationInput(_SerdeShape): integration_identifier: str | None = ... """The unique identifier of the integration.""" +class DeleteIntegrationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteIntegrationInput`.""" + + integration_identifier: Required[str] + """The unique identifier of the integration.""" + @dataclass(kw_only=True) class DeleteIntegrationOutput(_SerdeShape): """A zero-ETL integration with Amazon Redshift.""" @@ -12636,6 +18390,17 @@ class DeleteOptionGroupInput(_SerdeShape): You can't delete default option groups. """ +class DeleteOptionGroupInputDict(TypedDict, total=False): + """Dictionary form of `DeleteOptionGroupInput`.""" + + option_group_name: Required[str] + """ + The name of the option group to be deleted. + + Note: + You can't delete default option groups. + """ + @dataclass(kw_only=True) class DeleteOptionGroupOutput(_SerdeShape): """Dataclass for DeleteOptionGroupOutput structure.""" @@ -12683,6 +18448,40 @@ class DeleteTenantDatabaseInput(_SerdeShape): command results in an error. """ +class DeleteTenantDatabaseInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTenantDatabaseInput`.""" + + db_instance_identifier: Required[str] + """ + The user-supplied identifier for the DB instance that contains the + tenant database that you want to delete. + """ + tenant_db_name: Required[str] + """ + The user-supplied name of the tenant database that you want to remove + from your DB instance. Amazon RDS deletes the tenant database with this + name. This parameter isn't case-sensitive. + """ + skip_final_snapshot: bool | None + """ + Specifies whether to skip the creation of a final DB snapshot before + removing the tenant database from your DB instance. If you enable this + parameter, RDS doesn't create a DB snapshot. If you don't enable this + parameter, RDS creates a DB snapshot before it deletes the tenant + database. By default, RDS doesn't skip the final snapshot. If you + don't enable this parameter, you must specify the + `FinalDBSnapshotIdentifier` parameter. + """ + final_db_snapshot_identifier: str | None + """ + The `DBSnapshotIdentifier` of the new `DBSnapshot` created when the + `SkipFinalSnapshot` parameter is disabled. + + Note: + If you enable this parameter and also enable `SkipFinalShapshot`, the + command results in an error. + """ + @dataclass(kw_only=True) class DeleteTenantDatabaseOutput(_SerdeShape): """Dataclass for DeleteTenantDatabaseOutput structure.""" diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_1.pyi b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_1.pyi index 0b54f1726..d9d673ac6 100644 --- a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_1.pyi +++ b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_1.pyi @@ -1,8 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin @@ -13,7 +15,9 @@ from ..models import ( Certificate, CharacterSet, CloudwatchLogsExportConfiguration, + CloudwatchLogsExportConfigurationDict, ConnectionPoolConfiguration, + ConnectionPoolConfigurationDict, CustomDBEngineVersionAMI, DBCapacityReservation, DBCluster, @@ -41,31 +45,39 @@ from ..models import ( DBSnapshotTenantDatabase, DBSubnetGroup, OptionConfiguration, + OptionConfigurationDict, OptionGroup, OptionGroupOption, OptionSetting, OrderableDBInstanceOption, Parameter, + ParameterDict, PerformanceInsightsMetricQuery, PerformanceIssueDetails, ProcessorFeature, + ProcessorFeatureDict, RecommendedActionUpdate, + RecommendedActionUpdateDict, ReferenceDetails, ReservedDBInstance, ReservedDBInstancesOffering, ResourcePendingMaintenanceActions, ScalingConfiguration, + ScalingConfigurationDict, ServerlessV2FeaturesSupport, ServerlessV2PlatformVersionInfo, ServerlessV2ScalingConfiguration, + ServerlessV2ScalingConfigurationDict, ServiceError, SourceRegion, Tag, TagSpecification, + TagSpecificationDict, TenantDatabase, Timezone, UpgradeTarget, UserAuthConfig, + UserAuthConfigDict, ValidDBInstanceModificationsMessage, VpcSecurityGroupMembership, _SerdeShape, @@ -87,6 +99,21 @@ class DeregisterDBProxyTargetsInput(_SerdeShape): db_cluster_identifiers: list[str] | None = ... """One or more DB cluster identifiers.""" +class DeregisterDBProxyTargetsInputDict(TypedDict, total=False): + """Dictionary form of `DeregisterDBProxyTargetsInput`.""" + + db_proxy_name: Required[str] + """ + The identifier of the `DBProxy` that is associated with the + `DBProxyTargetGroup`. + """ + target_group_name: str | None + """The identifier of the `DBProxyTargetGroup`.""" + db_instance_identifiers: Sequence[str] | None + """One or more DB instance identifiers.""" + db_cluster_identifiers: Sequence[str] | None + """One or more DB cluster identifiers.""" + @dataclass(kw_only=True) class DeregisterDBProxyTargetsOutput(_SerdeShape): """Dataclass for DeregisterDBProxyTargetsOutput structure.""" @@ -103,6 +130,9 @@ class DeregisterDBProxyTargetsOutput(_SerdeShape): class DescribeAccountAttributesInput(_SerdeShape): """""" +class DescribeAccountAttributesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeAccountAttributesInput`.""" + @dataclass(kw_only=True) class DescribeAccountAttributesOutput(_SerdeShape): """Data returned by the **DescribeAccountAttributes** action.""" @@ -181,6 +211,65 @@ class DescribeBlueGreenDeploymentsInput(_SerdeShape): - Can't exceed 100. """ +class DescribeBlueGreenDeploymentsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeBlueGreenDeploymentsInput`.""" + + blue_green_deployment_identifier: str | None + """ + The blue/green deployment identifier. If you specify this parameter, the + response only includes information about the specific blue/green + deployment. This parameter isn't case-sensitive. + + Constraints: + + - Must match an existing blue/green deployment identifier. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more blue/green deployments to describe. + + Valid Values: + + - `blue-green-deployment-identifier` - Accepts system-generated + identifiers for blue/green deployments. The results list only includes + information about the blue/green deployments with the specified + identifiers. + + - `blue-green-deployment-name` - Accepts user-supplied names for + blue/green deployments. The results list only includes information + about the blue/green deployments with the specified names. + + - `source` - Accepts source databases for a blue/green deployment. The + results list only includes information about the blue/green + deployments with the specified source databases. + + - `target` - Accepts target databases for a blue/green deployment. The + results list only includes information about the blue/green + deployments with the specified target databases. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeBlueGreenDeployments` request. If you specify this parameter, + the response only includes records beyond the marker, up to the value + specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: + + - Must be a minimum of 20. + + - Can't exceed 100. + """ + @dataclass(kw_only=True) class DescribeBlueGreenDeploymentsOutput(_SerdeShape): """Dataclass for DescribeBlueGreenDeploymentsOutput structure.""" @@ -238,6 +327,40 @@ class DescribeCertificatesInput(_SerdeShape): specified by `MaxRecords`. """ +class DescribeCertificatesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeCertificatesInput`.""" + + certificate_identifier: str | None + """ + The user-supplied certificate identifier. If this parameter is + specified, information for only the identified certificate is returned. + This parameter isn't case-sensitive. + + Constraints: + + - Must match an existing CertificateIdentifier. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeCertificates` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeCertificatesOutput(_SerdeShape): """Data returned by the **DescribeCertificates** action.""" @@ -336,6 +459,74 @@ class DescribeDBCapacityReservationsInput(_SerdeShape): reservation, compare `EndDate` against the current date and time. """ +class DescribeDBCapacityReservationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBCapacityReservationsInput`.""" + + db_capacity_reservation_identifier: str | None + """ + The identifier or the name of the DB capacity reservation to describe. + You can specify the identifier, which has the prefix `dbcr-`, or the + reservation name. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBCapacityReservations` request. If this parameter is + specified, the response includes only records beyond the marker, up to + the value specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: + + - Must be a minimum of 20. + + - Can't exceed 100. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies which DB capacity reservations to describe. + + Supported filters: + + - `db-capacity-reservation-name` - Accepts DB capacity reservation + names. The response includes only the reservations that these names + identify. Use this filter to describe several reservations by name in + one request. + + - `state` - Accepts reservation states. The response includes only the + reservations in these states. + + - `engine` - Accepts database engine names. The response includes only + the reservations that reserve capacity for these engines. + + - `db-instance-class` - Accepts DB instance classes. The response + includes only the reservations that reserve capacity for these DB + instance classes. + + - `availability-zone` - Accepts Availability Zone names. The response + includes only the reservations that cover these Availability Zones. + + When you specify more than one value for a filter, the response includes + the reservations that match any of those values. When you specify more + than one filter, the response includes only the reservations that match + every filter. + + Amazon RDS rejects the request when a filter name isn't in this list, + or when a filter specifies no values. + + Note: + The `state` filter doesn't accept `expired`. To find an expired + reservation, compare `EndDate` against the current date and time. + """ + @dataclass(kw_only=True) class DescribeDBCapacityReservationsOutput(_SerdeShape): """Dataclass for DescribeDBCapacityReservationsOutput structure.""" @@ -408,6 +599,57 @@ class DescribeDBClusterAutomatedBackupsInput(_SerdeShape): `MaxRecords`. """ +class DescribeDBClusterAutomatedBackupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBClusterAutomatedBackupsInput`.""" + + db_cluster_resource_id: str | None + """ + The resource ID of the DB cluster that is the source of the automated + backup. This parameter isn't case-sensitive. + """ + db_cluster_identifier: str | None + """ + (Optional) The user-supplied DB cluster identifier. If this parameter is + specified, it must match the identifier of an existing DB cluster. It + returns information from the specific DB cluster's automated backup. + This parameter isn't case-sensitive. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies which resources to return based on status. + + Supported filters are the following: + + - `status` + + - `retained` - Automated backups for deleted clusters and after backup + replication is stopped. + + - `db-cluster-id` - Accepts DB cluster identifiers and Amazon Resource + Names (ARNs). The results list includes only information about the DB + cluster automated backups identified by these ARNs. + + - `db-cluster-resource-id` - Accepts DB resource identifiers and Amazon + Resource Names (ARNs). The results list includes only information + about the DB cluster resources identified by these ARNs. + + Returns all resources by default. The status for each resource is + specified in the response. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + """ + marker: str | None + """ + The pagination token provided in the previous request. If this parameter + is specified the response includes only records beyond the marker, up to + `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeDBClusterAutomatedBackupsOutput(_SerdeShape): """Dataclass for DescribeDBClusterAutomatedBackupsOutput structure.""" @@ -502,33 +744,106 @@ class DescribeDBClusterBacktracksInput(_SerdeShape): specified by `MaxRecords`. """ -@dataclass(kw_only=True) -class DescribeDBClusterBacktracksOutput(_SerdeShape): - """ - Contains the result of a successful invocation of the - `DescribeDBClusterBacktracks` action. +class DescribeDBClusterBacktracksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBClusterBacktracksInput`.""" + + db_cluster_identifier: Required[str] """ + The DB cluster identifier of the DB cluster to be described. This + parameter is stored as a lowercase string. - marker: str | None = ... + Constraints: + + - Must contain from 1 to 63 alphanumeric characters or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `my-cluster1` """ - A pagination token that can be used in a later - `DescribeDBClusterBacktracks` request. + backtrack_identifier: str | None """ - db_cluster_backtracks: list[DBClusterBacktrack] | None = ... - """Contains a list of backtracks for the user.""" - response_metadata: ResponseMetadata = ... + If specified, this value is the backtrack identifier of the backtrack to + be described. + + Constraints: + + - Must contain a valid universally unique identifier (UUID). For more + information about UUIDs, see [Universally unique + identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier). + + Example: `123e4567-e89b-12d3-a456-426655440000` """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + filters: Sequence[Filter | FilterDict] | None """ + A filter that specifies one or more DB clusters to describe. Supported + filters include the following: -@dataclass(kw_only=True) -class DescribeDBClusterEndpointsInput(_SerdeShape): - """Dataclass for DescribeDBClusterEndpointsInput structure.""" + - `db-cluster-backtrack-id` - Accepts backtrack identifiers. The results + list includes information about only the backtracks identified by + these identifiers. - db_cluster_identifier: str | None = ... + - `db-cluster-backtrack-status` - Accepts any of the following backtrack + status values: + + - `applying` + + - `completed` + + - `failed` + + - `pending` + + The results list includes information about only the backtracks + identified by these values. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBClusterBacktracks` request. If this parameter is specified, + the response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + +@dataclass(kw_only=True) +class DescribeDBClusterBacktracksOutput(_SerdeShape): + """ + Contains the result of a successful invocation of the + `DescribeDBClusterBacktracks` action. + """ + + marker: str | None = ... + """ + A pagination token that can be used in a later + `DescribeDBClusterBacktracks` request. + """ + db_cluster_backtracks: list[DBClusterBacktrack] | None = ... + """Contains a list of backtracks for the user.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeDBClusterEndpointsInput(_SerdeShape): + """Dataclass for DescribeDBClusterEndpointsInput structure.""" + + db_cluster_identifier: str | None = ... """ The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string. @@ -571,6 +886,52 @@ class DescribeDBClusterEndpointsInput(_SerdeShape): specified by `MaxRecords`. """ +class DescribeDBClusterEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBClusterEndpointsInput`.""" + + db_cluster_identifier: str | None + """ + The DB cluster identifier of the DB cluster associated with the + endpoint. This parameter is stored as a lowercase string. + """ + db_cluster_endpoint_identifier: str | None + """ + The identifier of the endpoint to describe. This parameter is stored as + a lowercase string. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A set of name-value pairs that define which endpoints to include in the + output. The filters are specified as name-value pairs, in the format + `Name=`*`endpoint_type`*`,Values=`*`endpoint_type1`*`,`*`endpoint_type2`*`,...`. + `Name` can be one of: `db-cluster-endpoint-type`, + `db-cluster-endpoint-custom-type`, `db-cluster-endpoint-id`, + `db-cluster-endpoint-status`. `Values` for the + ` db-cluster-endpoint-type` filter can be one or more of: `reader`, + `writer`, `custom`. `Values` for the `db-cluster-endpoint-custom-type` + filter can be one or more of: `reader`, `any`. `Values` for the + `db-cluster-endpoint-status` filter can be one or more of: `available`, + `creating`, `deleting`, `inactive`, `modifying`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBClusterEndpoints` request. If this parameter is specified, + the response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeDBClusterEndpointsOutput(_SerdeShape): """Dataclass for DescribeDBClusterEndpointsOutput structure.""" @@ -629,6 +990,39 @@ class DescribeDBClusterParameterGroupsInput(_SerdeShape): the value specified by `MaxRecords`. """ +class DescribeDBClusterParameterGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBClusterParameterGroupsInput`.""" + + db_cluster_parameter_group_name: str | None + """ + The name of a specific DB cluster parameter group to return details for. + + Constraints: + + - If supplied, must match the name of an existing + DBClusterParameterGroup. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBClusterParameterGroups` request. If this parameter is + specified, the response includes only records beyond the marker, up to + the value specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeDBClusterParameterGroupsOutput(_SerdeShape): """""" @@ -702,6 +1096,57 @@ class DescribeDBClusterParametersInput(_SerdeShape): specified by `MaxRecords`. """ +class DescribeDBClusterParametersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBClusterParametersInput`.""" + + db_cluster_parameter_group_name: Required[str] + """ + The name of a specific DB cluster parameter group to return parameter + details for. + + Constraints: + + - If supplied, must match the name of an existing + DBClusterParameterGroup. + """ + source: str | None + """ + A specific source to return parameters for. + + Valid Values: + + - `engine-default` + + - `system` + + - `user` + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more DB cluster parameters to describe. + + The only supported filter is `parameter-name`. The results list only + includes information about the DB cluster parameters with these names. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBClusterParameters` request. If this parameter is specified, + the response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeDBClusterParametersOutput(_SerdeShape): """ @@ -789,6 +1234,68 @@ class DescribeDBClustersInput(_SerdeShape): from other Amazon Web Services accounts. """ +class DescribeDBClustersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBClustersInput`.""" + + db_cluster_identifier: str | None + """ + The user-supplied DB cluster identifier or the Amazon Resource Name + (ARN) of the DB cluster. If this parameter is specified, information for + only the specific DB cluster is returned. This parameter isn't + case-sensitive. + + Constraints: + + - If supplied, must match an existing DB cluster identifier. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more DB clusters to describe. + + Supported Filters: + + - `clone-group-id` - Accepts clone group identifiers. The results list + only includes information about the DB clusters associated with these + clone groups. + + - `db-cluster-id` - Accepts DB cluster identifiers and DB cluster Amazon + Resource Names (ARNs). The results list only includes information + about the DB clusters identified by these ARNs. + + - `db-cluster-resource-id` - Accepts DB cluster resource identifiers. + The results list will only include information about the DB clusters + identified by these DB cluster resource identifiers. + + - `domain` - Accepts Active Directory directory IDs. The results list + only includes information about the DB clusters associated with these + domains. + + - `engine` - Accepts engine names. The results list only includes + information about the DB clusters for these engines. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100 + """ + marker: str | None + """ + An optional pagination token provided by a previous `DescribeDBClusters` + request. If this parameter is specified, the response includes only + records beyond the marker, up to the value specified by `MaxRecords`. + """ + include_shared: bool | None + """ + Specifies whether the output includes information about clusters shared + from other Amazon Web Services accounts. + """ + @dataclass(kw_only=True) class DescribeDBClusterSnapshotAttributesInput(_SerdeShape): """""" @@ -799,6 +1306,15 @@ class DescribeDBClusterSnapshotAttributesInput(_SerdeShape): for. """ +class DescribeDBClusterSnapshotAttributesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBClusterSnapshotAttributesInput`.""" + + db_cluster_snapshot_identifier: Required[str] + """ + The identifier for the DB cluster snapshot to describe the attributes + for. + """ + @dataclass(kw_only=True) class DescribeDBClusterSnapshotAttributesOutput(_SerdeShape): """Dataclass for DescribeDBClusterSnapshotAttributesOutput structure.""" @@ -937,32 +1453,145 @@ class DescribeDBClusterSnapshotsInput(_SerdeShape): db_cluster_resource_id: str | None = ... """A specific DB cluster resource ID to describe.""" -@dataclass(kw_only=True) -class DescribeDBClusterSnapshotsOutput(_SerdeShape): - """ - Provides a list of DB cluster snapshots for the user as the result of a - call to the `DescribeDBClusterSnapshots` action. +class DescribeDBClusterSnapshotsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBClusterSnapshotsInput`.""" + + db_cluster_identifier: str | None """ + The ID of the DB cluster to retrieve the list of DB cluster snapshots + for. This parameter can't be used in conjunction with the + `DBClusterSnapshotIdentifier` parameter. This parameter isn't + case-sensitive. - marker: str | None = ... + Constraints: + + - If supplied, must match the identifier of an existing DBCluster. """ - An optional pagination token provided by a previous - `DescribeDBClusterSnapshots` request. If this parameter is specified, - the response includes only records beyond the marker, up to the value - specified by `MaxRecords`. + db_cluster_snapshot_identifier: str | None """ - db_cluster_snapshots: list[DBClusterSnapshot] | None = ... - """Provides a list of DB cluster snapshots for the user.""" - response_metadata: ResponseMetadata = ... + A specific DB cluster snapshot identifier to describe. This parameter + can't be used in conjunction with the `DBClusterIdentifier` parameter. + This value is stored as a lowercase string. + + Constraints: + + - If supplied, must match the identifier of an existing + DBClusterSnapshot. + + - If this identifier is for an automated snapshot, the `SnapshotType` + parameter must also be specified. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + snapshot_type: str | None """ + The type of DB cluster snapshots to be returned. You can specify one of + the following values: -@dataclass(kw_only=True) -class DescribeDBClustersOutput(_SerdeShape): + - `automated` - Return all DB cluster snapshots that have been + automatically taken by Amazon RDS for my Amazon Web Services account. + + - `manual` - Return all DB cluster snapshots that have been taken by my + Amazon Web Services account. + + - `shared` - Return all manual DB cluster snapshots that have been + shared to my Amazon Web Services account. + + - `public` - Return all DB cluster snapshots that have been marked as + public. + + If you don't specify a `SnapshotType` value, then both automated and + manual DB cluster snapshots are returned. You can include shared DB + cluster snapshots with these results by enabling the `IncludeShared` + parameter. You can include public DB cluster snapshots with these + results by enabling the `IncludePublic` parameter. + + The `IncludeShared` and `IncludePublic` parameters don't apply for + `SnapshotType` values of `manual` or `automated`. The `IncludePublic` + parameter doesn't apply when `SnapshotType` is set to `shared`. The + `IncludeShared` parameter doesn't apply when `SnapshotType` is set to + `public`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more DB cluster snapshots to describe. + + Supported filters: + + - `db-cluster-id` - Accepts DB cluster identifiers and DB cluster Amazon + Resource Names (ARNs). + + - `db-cluster-snapshot-id` - Accepts DB cluster snapshot identifiers. + + - `snapshot-type` - Accepts types of DB cluster snapshots. + + - `engine` - Accepts names of database engines. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBClusterSnapshots` request. If this parameter is specified, + the response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + include_shared: bool | None + """ + Specifies whether to include shared manual DB cluster snapshots from + other Amazon Web Services accounts that this Amazon Web Services account + has been given permission to copy or restore. By default, these + snapshots are not included. + + You can give an Amazon Web Services account permission to restore a + manual DB cluster snapshot from another Amazon Web Services account by + the `ModifyDBClusterSnapshotAttribute` API action. + """ + include_public: bool | None + """ + Specifies whether to include manual DB cluster snapshots that are public + and can be copied or restored by any Amazon Web Services account. By + default, the public snapshots are not included. + + You can share a manual DB cluster snapshot as public by using the + ModifyDBClusterSnapshotAttribute API action. + """ + db_cluster_resource_id: str | None + """A specific DB cluster resource ID to describe.""" + +@dataclass(kw_only=True) +class DescribeDBClusterSnapshotsOutput(_SerdeShape): + """ + Provides a list of DB cluster snapshots for the user as the result of a + call to the `DescribeDBClusterSnapshots` action. + """ + + marker: str | None = ... + """ + An optional pagination token provided by a previous + `DescribeDBClusterSnapshots` request. If this parameter is specified, + the response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + db_cluster_snapshots: list[DBClusterSnapshot] | None = ... + """Provides a list of DB cluster snapshots for the user.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeDBClustersOutput(_SerdeShape): """ Contains the result of a successful invocation of the `DescribeDBClusters` action. @@ -1139,6 +1768,161 @@ class DescribeDBEngineVersionsInput(_SerdeShape): available. The default is to list only available engine versions. """ +class DescribeDBEngineVersionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBEngineVersionsInput`.""" + + engine: str | None + """ + The database engine to return version details for. + + Valid Values: + + - `aurora-mysql` + + - `aurora-postgresql` + + - `custom-oracle-ee` + + - `custom-oracle-ee-cdb` + + - `custom-oracle-se2` + + - `custom-oracle-se2-cdb` + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + + - `sqlserver-dev-ee` + """ + engine_version: str | None + """ + A specific database engine version to return details for. + + Example: `5.1.49` + """ + db_parameter_group_family: str | None + """ + The name of a specific DB parameter group family to return details for. + + Constraints: + + - If supplied, must match an existing DB parameter group family. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more DB engine versions to describe. + + Supported filters: + + - `db-parameter-group-family` - Accepts parameter groups family names. + The results list only includes information about the DB engine + versions for these parameter group families. + + - `engine` - Accepts engine names. The results list only includes + information about the DB engine versions for these engines. + + - `engine-mode` - Accepts DB engine modes. The results list only + includes information about the DB engine versions for these engine + modes. Valid DB engine modes are the following: + + - `global` + + - `multimaster` + + - `parallelquery` + + - `provisioned` + + - `serverless` + + - `engine-version` - Accepts engine versions. The results list only + includes information about the DB engine versions for these engine + versions. + + - `status` - Accepts engine version statuses. The results list only + includes information about the DB engine versions for these statuses. + Valid statuses are the following: + + - `available` + + - `deprecated` + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more than + the `MaxRecords` value is available, a pagination token called a marker + is included in the response so you can retrieve the remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + default_only: bool | None + """ + Specifies whether to return only the default version of the specified + engine or the engine and major version combination. + """ + list_supported_character_sets: bool | None + """ + Specifies whether to list the supported character sets for each engine + version. + + If this parameter is enabled and the requested engine supports the + `CharacterSetName` parameter for `CreateDBInstance`, the response + includes a list of supported character sets for each engine version. + + For RDS Custom, the default is not to list supported character sets. If + you enable this parameter, RDS Custom returns no results. + """ + list_supported_timezones: bool | None + """ + Specifies whether to list the supported time zones for each engine + version. + + If this parameter is enabled and the requested engine supports the + `TimeZone` parameter for `CreateDBInstance`, the response includes a + list of supported time zones for each engine version. + + For RDS Custom, the default is not to list supported time zones. If you + enable this parameter, RDS Custom returns no results. + """ + include_all: bool | None + """ + Specifies whether to also list the engine versions that aren't + available. The default is to list only available engine versions. + """ + @dataclass(kw_only=True) class DescribeDBEngineVersionsOutput(_SerdeShape): """ @@ -1227,20 +2011,84 @@ class DescribeDBInstanceAutomatedBackupsInput(_SerdeShape): This setting doesn't apply to RDS Custom. """ -@dataclass(kw_only=True) -class DescribeDBInstanceAutomatedBackupsOutput(_SerdeShape): - """ - Contains the result of a successful invocation of the - `DescribeDBInstanceAutomatedBackups` action. - """ +class DescribeDBInstanceAutomatedBackupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBInstanceAutomatedBackupsInput`.""" - marker: str | None = ... + dbi_resource_id: str | None """ - An optional pagination token provided by a previous request. If this - parameter is specified, the response includes only records beyond the - marker, up to the value specified by `MaxRecords`. + The resource ID of the DB instance that is the source of the automated + backup. This parameter isn't case-sensitive. """ - db_instance_automated_backups: list[DBInstanceAutomatedBackup] | None = ... + db_instance_identifier: str | None + """ + (Optional) The user-supplied instance identifier. If this parameter is + specified, it must match the identifier of an existing DB instance. It + returns information from the specific DB instance's automated backup. + This parameter isn't case-sensitive. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies which resources to return based on status. + + Supported filters are the following: + + - `status` + + - `active` - Automated backups for current instances. + + - `creating` - Automated backups that are waiting for the first + automated snapshot to be available. + + - `retained` - Automated backups for deleted instances and after + backup replication is stopped. + + - `db-instance-id` - Accepts DB instance identifiers and Amazon Resource + Names (ARNs). The results list includes only information about the DB + instance automated backups identified by these ARNs. + + - `dbi-resource-id` - Accepts DB resource identifiers and Amazon + Resource Names (ARNs). The results list includes only information + about the DB instance resources identified by these ARNs. + + Returns all resources by default. The status for each resource is + specified in the response. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + """ + marker: str | None + """ + The pagination token provided in the previous request. If this parameter + is specified the response includes only records beyond the marker, up to + `MaxRecords`. + """ + db_instance_automated_backups_arn: str | None + """ + The Amazon Resource Name (ARN) of the replicated automated backups, for + example, + `arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE`. + + This setting doesn't apply to RDS Custom. + """ + +@dataclass(kw_only=True) +class DescribeDBInstanceAutomatedBackupsOutput(_SerdeShape): + """ + Contains the result of a successful invocation of the + `DescribeDBInstanceAutomatedBackups` action. + """ + + marker: str | None = ... + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + db_instance_automated_backups: list[DBInstanceAutomatedBackup] | None = ... """A list of `DBInstanceAutomatedBackup` instances.""" response_metadata: ResponseMetadata = ... """ @@ -1310,6 +2158,65 @@ class DescribeDBInstancesInput(_SerdeShape): specified by `MaxRecords`. """ +class DescribeDBInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBInstancesInput`.""" + + db_instance_identifier: str | None + """ + The user-supplied instance identifier or the Amazon Resource Name (ARN) + of the DB instance. If this parameter is specified, information from + only the specific DB instance is returned. This parameter isn't + case-sensitive. + + Constraints: + + - If supplied, must match the identifier of an existing DB instance. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more DB instances to describe. + + Supported Filters: + + - `db-cluster-id` - Accepts DB cluster identifiers and DB cluster Amazon + Resource Names (ARNs). The results list only includes information + about the DB instances associated with the DB clusters identified by + these ARNs. + + - `db-instance-id` - Accepts DB instance identifiers and DB instance + Amazon Resource Names (ARNs). The results list only includes + information about the DB instances identified by these ARNs. + + - `dbi-resource-id` - Accepts DB instance resource identifiers. The + results list only includes information about the DB instances + identified by these DB instance resource identifiers. + + - `domain` - Accepts Active Directory directory IDs. The results list + only includes information about the DB instances associated with these + domains. + + - `engine` - Accepts engine names. The results list only includes + information about the DB instances for these engines. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBInstances` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeDBInstancesOutput(_SerdeShape): """ @@ -1388,6 +2295,49 @@ class DescribeDBLogFilesInput(_SerdeShape): MaxRecords. """ +class DescribeDBLogFilesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBLogFilesInput`.""" + + db_instance_identifier: Required[str] + """ + The customer-assigned name of the DB instance that contains the log + files you want to list. + + Constraints: + + - Must match the identifier of an existing DBInstance. + """ + filename_contains: str | None + """ + Filters the available log files for log file names that contain the + specified string. + """ + file_last_written: int | None + """ + Filters the available log files for files written since the specified + date, in POSIX timestamp format with milliseconds. + """ + file_size: int | None + """ + Filters the available log files for files larger than the specified + size. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified MaxRecords value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + """ + marker: str | None + """ + The pagination token provided in the previous request. If this parameter + is specified the response includes only records beyond the marker, up to + MaxRecords. + """ + @dataclass(kw_only=True) class DescribeDBLogFilesOutput(_SerdeShape): """The response from a call to `DescribeDBLogFiles`.""" @@ -1476,6 +2426,74 @@ class DescribeDBMajorEngineVersionsInput(_SerdeShape): Default: 100 """ +class DescribeDBMajorEngineVersionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBMajorEngineVersionsInput`.""" + + engine: str | None + """ + The database engine to return major version details for. + + Valid Values: + + - `aurora-mysql` + + - `aurora-postgresql` + + - `custom-sqlserver-ee` + + - `custom-sqlserver-se` + + - `custom-sqlserver-web` + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + major_engine_version: str | None + """ + A specific database major engine version to return details for. + + Example: `8.4` + """ + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more than + the `MaxRecords` value is available, a pagination token called a marker + is included in the response so you can retrieve the remaining results. + + Default: 100 + """ + @dataclass(kw_only=True) class DescribeDBMajorEngineVersionsOutput(_SerdeShape): """Dataclass for DescribeDBMajorEngineVersionsOutput structure.""" @@ -1530,6 +2548,39 @@ class DescribeDBParameterGroupsInput(_SerdeShape): specified by `MaxRecords`. """ +class DescribeDBParameterGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBParameterGroupsInput`.""" + + db_parameter_group_name: str | None + """ + The name of a specific DB parameter group to return details for. + + Constraints: + + - If supplied, must match the name of an existing + DBClusterParameterGroup. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBParameterGroups` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeDBParameterGroupsOutput(_SerdeShape): """ @@ -1599,19 +2650,64 @@ class DescribeDBParametersInput(_SerdeShape): specified by `MaxRecords`. """ -@dataclass(kw_only=True) -class DescribeDBParametersOutput(_SerdeShape): - """ - Contains the result of a successful invocation of the - `DescribeDBParameters` action. +class DescribeDBParametersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBParametersInput`.""" + + db_parameter_group_name: Required[str] """ + The name of a specific DB parameter group to return details for. - parameters: list[Parameter] | None = ... - """A list of `Parameter` values.""" - marker: str | None = ... + Constraints: + + - If supplied, must match the name of an existing DBParameterGroup. """ - An optional pagination token provided by a previous request. If this - parameter is specified, the response includes only records beyond the + source: str | None + """ + The parameter types to return. + + Default: All parameter types returned + + Valid Values: `user | system | engine-default` + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more DB parameters to describe. + + The only supported filter is `parameter-name`. The results list only + includes information about the DB parameters with these names. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBParameters` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + +@dataclass(kw_only=True) +class DescribeDBParametersOutput(_SerdeShape): + """ + Contains the result of a successful invocation of the + `DescribeDBParameters` action. + """ + + parameters: list[Parameter] | None = ... + """A list of `Parameter` values.""" + marker: str | None = ... + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the marker, up to the value specified by `MaxRecords`. """ response_metadata: ResponseMetadata = ... @@ -1652,6 +2748,35 @@ class DescribeDBProxiesInput(_SerdeShape): Constraints: Minimum 20, maximum 100. """ +class DescribeDBProxiesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBProxiesInput`.""" + + db_proxy_name: str | None + """ + The name of the DB proxy. If you omit this parameter, the output + includes information about all DB proxies owned by your Amazon Web + Services account ID. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter is not currently supported.""" + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that the remaining + results can be retrieved. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + @dataclass(kw_only=True) class DescribeDBProxiesOutput(_SerdeShape): """Dataclass for DescribeDBProxiesOutput structure.""" @@ -1711,6 +2836,41 @@ class DescribeDBProxyEndpointsInput(_SerdeShape): Constraints: Minimum 20, maximum 100. """ +class DescribeDBProxyEndpointsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBProxyEndpointsInput`.""" + + db_proxy_name: str | None + """ + The name of the DB proxy whose endpoints you want to describe. If you + omit this parameter, the output includes information about all DB proxy + endpoints associated with all your DB proxies. + """ + db_proxy_endpoint_name: str | None + """ + The name of a DB proxy endpoint to describe. If you omit this parameter, + the output includes information about all DB proxy endpoints associated + with the specified proxy. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter is not currently supported.""" + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that the remaining + results can be retrieved. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + @dataclass(kw_only=True) class DescribeDBProxyEndpointsOutput(_SerdeShape): """Dataclass for DescribeDBProxyEndpointsOutput structure.""" @@ -1759,6 +2919,33 @@ class DescribeDBProxyTargetGroupsInput(_SerdeShape): Constraints: Minimum 20, maximum 100. """ +class DescribeDBProxyTargetGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBProxyTargetGroupsInput`.""" + + db_proxy_name: Required[str] + """The identifier of the `DBProxy` associated with the target group.""" + target_group_name: str | None + """The identifier of the `DBProxyTargetGroup` to describe.""" + filters: Sequence[Filter | FilterDict] | None + """This parameter is not currently supported.""" + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that the remaining + results can be retrieved. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + @dataclass(kw_only=True) class DescribeDBProxyTargetGroupsOutput(_SerdeShape): """Dataclass for DescribeDBProxyTargetGroupsOutput structure.""" @@ -1810,6 +2997,33 @@ class DescribeDBProxyTargetsInput(_SerdeShape): Constraints: Minimum 20, maximum 100. """ +class DescribeDBProxyTargetsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBProxyTargetsInput`.""" + + db_proxy_name: Required[str] + """The identifier of the `DBProxyTarget` to describe.""" + target_group_name: str | None + """The identifier of the `DBProxyTargetGroup` to describe.""" + filters: Sequence[Filter | FilterDict] | None + """This parameter is not currently supported.""" + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that the remaining + results can be retrieved. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + @dataclass(kw_only=True) class DescribeDBProxyTargetsOutput(_SerdeShape): """Dataclass for DescribeDBProxyTargetsOutput structure.""" @@ -1952,6 +3166,124 @@ class DescribeDBRecommendationsInput(_SerdeShape): specified by `MaxRecords`. """ +class DescribeDBRecommendationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBRecommendationsInput`.""" + + last_updated_after: datetime | None + """ + A filter to include only the recommendations that were updated after + this specified time. + """ + last_updated_before: datetime | None + """ + A filter to include only the recommendations that were updated before + this specified time. + """ + locale: str | None + """ + The language that you choose to return the list of recommendations. + + Valid values: + + - `en` + + - `en_UK` + + - `de` + + - `es` + + - `fr` + + - `id` + + - `it` + + - `ja` + + - `ko` + + - `pt_BR` + + - `zh_TW` + + - `zh_CN` + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more recommendations to describe. + + Supported Filters: + + - `recommendation-id` - Accepts a list of recommendation identifiers. + The results list only includes the recommendations whose identifier is + one of the specified filter values. + + - `status` - Accepts a list of recommendation statuses. + + Valid values: + + - `active` - The recommendations which are ready for you to apply. + + - `pending` - The applied or scheduled recommendations which are in + progress. + + - `resolved` - The recommendations which are completed. + + - `dismissed` - The recommendations that you dismissed. + + The results list only includes the recommendations whose status is one + of the specified filter values. + + - `severity` - Accepts a list of recommendation severities. The results + list only includes the recommendations whose severity is one of the + specified filter values. + + Valid values: + + - `high` + + - `medium` + + - `low` + + - `informational` + + - `type-id` - Accepts a list of recommendation type identifiers. The + results list only includes the recommendations whose type is one of + the specified filter values. + + - `dbi-resource-id` - Accepts a list of database resource identifiers. + The results list only includes the recommendations that generated for + the specified databases. + + - `cluster-resource-id` - Accepts a list of cluster resource + identifiers. The results list only includes the recommendations that + generated for the specified clusters. + + - `pg-arn` - Accepts a list of parameter group ARNs. The results list + only includes the recommendations that generated for the specified + parameter groups. + + - `cluster-pg-arn` - Accepts a list of cluster parameter group ARNs. The + results list only includes the recommendations that generated for the + specified cluster parameter groups. + """ + max_records: int | None + """ + The maximum number of recommendations to include in the response. If + more records exist than the specified `MaxRecords` value, a pagination + token called a marker is included in the response so that you can + retrieve the remaining results. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBRecommendations` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeDBRecommendationsOutput(_SerdeShape): """Dataclass for DescribeDBRecommendationsOutput structure.""" @@ -2002,18 +3334,44 @@ class DescribeDBSecurityGroupsInput(_SerdeShape): specified by `MaxRecords`. """ -@dataclass(kw_only=True) -class DescribeDBSecurityGroupsOutput(_SerdeShape): - """ - Contains the result of a successful invocation of the - `DescribeDBSecurityGroups` action. - """ +class DescribeDBSecurityGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBSecurityGroupsInput`.""" - marker: str | None = ... + db_security_group_name: str | None + """The name of the DB security group to return details for.""" + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None """ - An optional pagination token provided by a previous request. If this - parameter is specified, the response includes only records beyond the - marker, up to the value specified by `MaxRecords`. + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBSecurityGroups` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + +@dataclass(kw_only=True) +class DescribeDBSecurityGroupsOutput(_SerdeShape): + """ + Contains the result of a successful invocation of the + `DescribeDBSecurityGroups` action. + """ + + marker: str | None = ... + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. """ db_security_groups: list[DBSecurityGroup] | None = ... """A list of `DBSecurityGroup` instances.""" @@ -2060,6 +3418,40 @@ class DescribeDBShardGroupsInput(_SerdeShape): Constraints: Minimum 20, maximum 100 """ +class DescribeDBShardGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBShardGroupsInput`.""" + + db_shard_group_identifier: str | None + """ + The user-supplied DB shard group identifier. If this parameter is + specified, information for only the specific DB shard group is returned. + This parameter isn't case-sensitive. + + Constraints: + + - If supplied, must match an existing DB shard group identifier. + """ + filters: Sequence[Filter | FilterDict] | None + """A filter that specifies one or more DB shard groups to describe.""" + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBShardGroups` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100 + """ + @dataclass(kw_only=True) class DescribeDBShardGroupsOutput(_SerdeShape): """Dataclass for DescribeDBShardGroupsOutput structure.""" @@ -2086,6 +3478,12 @@ class DescribeDBSnapshotAttributesInput(_SerdeShape): db_snapshot_identifier: str | None = ... """The identifier for the DB snapshot to describe the attributes for.""" +class DescribeDBSnapshotAttributesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBSnapshotAttributesInput`.""" + + db_snapshot_identifier: Required[str] + """The identifier for the DB snapshot to describe the attributes for.""" + @dataclass(kw_only=True) class DescribeDBSnapshotAttributesOutput(_SerdeShape): """Dataclass for DescribeDBSnapshotAttributesOutput structure.""" @@ -2232,6 +3630,130 @@ class DescribeDBSnapshotsInput(_SerdeShape): dbi_resource_id: str | None = ... """A specific DB resource ID to describe.""" +class DescribeDBSnapshotsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBSnapshotsInput`.""" + + db_instance_identifier: str | None + """ + The ID of the DB instance to retrieve the list of DB snapshots for. This + parameter isn't case-sensitive. + + Constraints: + + - If supplied, must match the identifier of an existing DBInstance. + """ + db_snapshot_identifier: str | None + """ + A specific DB snapshot identifier to describe. This value is stored as a + lowercase string. + + Constraints: + + - If supplied, must match the identifier of an existing DBSnapshot. + + - If this identifier is for an automated snapshot, the `SnapshotType` + parameter must also be specified. + """ + snapshot_type: str | None + """ + The type of snapshots to be returned. You can specify one of the + following values: + + - `automated` - Return all DB snapshots that have been automatically + taken by Amazon RDS for my Amazon Web Services account. + + - `manual` - Return all DB snapshots that have been taken by my Amazon + Web Services account. + + - `shared` - Return all manual DB snapshots that have been shared to my + Amazon Web Services account. + + - `public` - Return all DB snapshots that have been marked as public. + + - `awsbackup` - Return the DB snapshots managed by the Amazon Web + Services Backup service. + + For information about Amazon Web Services Backup, see the [*Amazon Web + Services Backup Developer + Guide.*](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html) + + The `awsbackup` type does not apply to Aurora. + + If you don't specify a `SnapshotType` value, then both automated and + manual snapshots are returned. Shared and public DB snapshots are not + included in the returned results by default. You can include shared + snapshots with these results by enabling the `IncludeShared` parameter. + You can include public snapshots with these results by enabling the + `IncludePublic` parameter. + + The `IncludeShared` and `IncludePublic` parameters don't apply for + `SnapshotType` values of `manual` or `automated`. The `IncludePublic` + parameter doesn't apply when `SnapshotType` is set to `shared`. The + `IncludeShared` parameter doesn't apply when `SnapshotType` is set to + `public`. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more DB snapshots to describe. + + Supported filters: + + - `db-instance-id` - Accepts DB instance identifiers and DB instance + Amazon Resource Names (ARNs). + + - `db-snapshot-id` - Accepts DB snapshot identifiers. + + - `dbi-resource-id` - Accepts identifiers of source DB instances. + + - `snapshot-type` - Accepts types of DB snapshots. + + - `engine` - Accepts names of database engines. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBSnapshots` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + include_shared: bool | None + """ + Specifies whether to include shared manual DB cluster snapshots from + other Amazon Web Services accounts that this Amazon Web Services account + has been given permission to copy or restore. By default, these + snapshots are not included. + + You can give an Amazon Web Services account permission to restore a + manual DB snapshot from another Amazon Web Services account by using the + `ModifyDBSnapshotAttribute` API action. + + This setting doesn't apply to RDS Custom. + """ + include_public: bool | None + """ + Specifies whether to include manual DB cluster snapshots that are public + and can be copied or restored by any Amazon Web Services account. By + default, the public snapshots are not included. + + You can share a manual DB snapshot as public by using the + ModifyDBSnapshotAttribute API. + + This setting doesn't apply to RDS Custom. + """ + dbi_resource_id: str | None + """A specific DB resource ID to describe.""" + @dataclass(kw_only=True) class DescribeDBSnapshotsOutput(_SerdeShape): """ @@ -2343,6 +3865,93 @@ class DescribeDBSnapshotTenantDatabasesInput(_SerdeShape): dbi_resource_id: str | None = ... """A specific DB resource identifier to describe.""" +class DescribeDBSnapshotTenantDatabasesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBSnapshotTenantDatabasesInput`.""" + + db_instance_identifier: str | None + """ + The ID of the DB instance used to create the DB snapshots. This + parameter isn't case-sensitive. + + Constraints: + + - If supplied, must match the identifier of an existing `DBInstance`. + """ + db_snapshot_identifier: str | None + """ + The ID of a DB snapshot that contains the tenant databases to describe. + This value is stored as a lowercase string. + + Constraints: + + - If you specify this parameter, the value must match the ID of an + existing DB snapshot. + + - If you specify an automatic snapshot, you must also specify + `SnapshotType`. + """ + snapshot_type: str | None + """ + The type of DB snapshots to be returned. You can specify one of the + following values: + + - `automated` -- All DB snapshots that have been automatically taken by + Amazon RDS for my Amazon Web Services account. + + - `manual` -- All DB snapshots that have been taken by my Amazon Web + Services account. + + - `shared` -- All manual DB snapshots that have been shared to my Amazon + Web Services account. + + - `public` -- All DB snapshots that have been marked as public. + + - `awsbackup` -- All DB snapshots managed by the Amazon Web Services + Backup service. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more tenant databases to describe. + + Supported filters: + + - `tenant-db-name` - Tenant database names. The results list only + includes information about the tenant databases that match these + tenant DB names. + + - `tenant-database-resource-id` - Tenant database resource identifiers. + The results list only includes information about the tenant databases + contained within the DB snapshots. + + - `dbi-resource-id` - DB instance resource identifiers. The results list + only includes information about snapshots containing tenant databases + contained within the DB instances identified by these resource + identifiers. + + - `db-instance-id` - Accepts DB instance identifiers and DB instance + Amazon Resource Names (ARNs). + + - `db-snapshot-id` - Accepts DB snapshot identifiers. + + - `snapshot-type` - Accepts types of DB snapshots. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeDBSnapshotTenantDatabases` request. If this parameter is + specified, the response includes only records beyond the marker, up to + the value specified by `MaxRecords`. + """ + dbi_resource_id: str | None + """A specific DB resource identifier to describe.""" + @dataclass(kw_only=True) class DescribeDBSnapshotTenantDatabasesOutput(_SerdeShape): """Dataclass for DescribeDBSnapshotTenantDatabasesOutput structure.""" @@ -2390,12 +3999,38 @@ class DescribeDBSubnetGroupsInput(_SerdeShape): specified by `MaxRecords`. """ -@dataclass(kw_only=True) -class DescribeDBSubnetGroupsOutput(_SerdeShape): - """ - Contains the result of a successful invocation of the - `DescribeDBSubnetGroups` action. - """ +class DescribeDBSubnetGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeDBSubnetGroupsInput`.""" + + db_subnet_group_name: str | None + """The name of the DB subnet group to return details for.""" + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + DescribeDBSubnetGroups request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + +@dataclass(kw_only=True) +class DescribeDBSubnetGroupsOutput(_SerdeShape): + """ + Contains the result of a successful invocation of the + `DescribeDBSubnetGroups` action. + """ marker: str | None = ... """ @@ -2443,6 +4078,35 @@ class DescribeEngineDefaultClusterParametersInput(_SerdeShape): the value specified by `MaxRecords`. """ +class DescribeEngineDefaultClusterParametersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeEngineDefaultClusterParametersInput`.""" + + db_parameter_group_family: Required[str] + """ + The name of the DB cluster parameter group family to return engine + parameter information for. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeEngineDefaultClusterParameters` request. If this parameter is + specified, the response includes only records beyond the marker, up to + the value specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeEngineDefaultClusterParametersOutput(_SerdeShape): """Dataclass for DescribeEngineDefaultClusterParametersOutput structure.""" @@ -2596,6 +4260,141 @@ class DescribeEngineDefaultParametersInput(_SerdeShape): the value specified by `MaxRecords`. """ +class DescribeEngineDefaultParametersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeEngineDefaultParametersInput`.""" + + db_parameter_group_family: Required[str] + """ + The name of the DB parameter group family. + + Valid Values: + + - `aurora-mysql5.7` + + - `aurora-mysql8.0` + + - `aurora-postgresql10` + + - `aurora-postgresql11` + + - `aurora-postgresql12` + + - `aurora-postgresql13` + + - `aurora-postgresql14` + + - `custom-oracle-ee-19` + + - `custom-oracle-ee-cdb-19` + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb10.2` + + - `mariadb10.3` + + - `mariadb10.4` + + - `mariadb10.5` + + - `mariadb10.6` + + - `mysql5.7` + + - `mysql8.0` + + - `oracle-ee-19` + + - `oracle-ee-cdb-19` + + - `oracle-ee-cdb-21` + + - `oracle-se2-19` + + - `oracle-se2-cdb-19` + + - `oracle-se2-cdb-21` + + - `postgres10` + + - `postgres11` + + - `postgres12` + + - `postgres13` + + - `postgres14` + + - `sqlserver-ee-11.0` + + - `sqlserver-ee-12.0` + + - `sqlserver-ee-13.0` + + - `sqlserver-ee-14.0` + + - `sqlserver-ee-15.0` + + - `sqlserver-ex-11.0` + + - `sqlserver-ex-12.0` + + - `sqlserver-ex-13.0` + + - `sqlserver-ex-14.0` + + - `sqlserver-ex-15.0` + + - `sqlserver-se-11.0` + + - `sqlserver-se-12.0` + + - `sqlserver-se-13.0` + + - `sqlserver-se-14.0` + + - `sqlserver-se-15.0` + + - `sqlserver-web-11.0` + + - `sqlserver-web-12.0` + + - `sqlserver-web-13.0` + + - `sqlserver-web-14.0` + + - `sqlserver-web-15.0` + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more parameters to describe. + + The only supported filter is `parameter-name`. The results list only + includes information about the parameters with these names. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeEngineDefaultParameters` request. If this parameter is + specified, the response includes only records beyond the marker, up to + the value specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeEngineDefaultParametersOutput(_SerdeShape): """Dataclass for DescribeEngineDefaultParametersOutput structure.""" @@ -2629,6 +4428,21 @@ class DescribeEventCategoriesInput(_SerdeShape): filters: list[Filter] | None = ... """This parameter isn't currently supported.""" +class DescribeEventCategoriesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeEventCategoriesInput`.""" + + source_type: str | None + """ + The type of source that is generating the events. For RDS Proxy events, + specify `db-proxy`. + + Valid Values: `db-instance` | `db-cluster` | `db-parameter-group` | + `db-security-group` | `db-snapshot` | `db-cluster-snapshot` | + `db-proxy` + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + @dataclass(kw_only=True) class DescribeEventCategoriesOutput(_SerdeShape): """Data returned from the `DescribeEventCategories` operation.""" @@ -2731,43 +4545,130 @@ class DescribeEventsInput(_SerdeShape): records beyond the marker, up to the value specified by `MaxRecords`. """ -@dataclass(kw_only=True) -class DescribeEventsOutput(_SerdeShape): - """ - Contains the result of a successful invocation of the `DescribeEvents` - action. +class DescribeEventsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeEventsInput`.""" + + source_identifier: str | None """ + The identifier of the event source for which events are returned. If not + specified, then all sources are included in the response. - marker: str | None = ... + Constraints: + + - If `SourceIdentifier` is supplied, `SourceType` must also be provided. + + - If the source type is a DB instance, a `DBInstanceIdentifier` value + must be supplied. + + - If the source type is a DB cluster, a `DBClusterIdentifier` value must + be supplied. + + - If the source type is a DB parameter group, a `DBParameterGroupName` + value must be supplied. + + - If the source type is a DB security group, a `DBSecurityGroupName` + value must be supplied. + + - If the source type is a DB snapshot, a `DBSnapshotIdentifier` value + must be supplied. + + - If the source type is a DB cluster snapshot, a + `DBClusterSnapshotIdentifier` value must be supplied. + + - If the source type is an RDS Proxy, a `DBProxyName` value must be + supplied. + + - Can't end with a hyphen or contain two consecutive hyphens. """ - An optional pagination token provided by a previous Events request. If - this parameter is specified, the response includes only records beyond - the marker, up to the value specified by `MaxRecords`. + source_type: str | None """ - events: list[Event] | None = ... - """A list of `Event` instances.""" - response_metadata: ResponseMetadata = ... + The event source to retrieve events for. If no value is specified, all + events are returned. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + start_time: datetime | None """ + The beginning of the time interval to retrieve events for, specified in + ISO 8601 format. For more information about ISO 8601, go to the [ISO8601 + Wikipedia page.](http://en.wikipedia.org/wiki/ISO_8601) -@dataclass(kw_only=True) -class DescribeEventSubscriptionsInput(_SerdeShape): - """""" - - subscription_name: str | None = ... + Example: 2009-07-08T18:00Z """ - The name of the RDS event notification subscription you want to - describe. + end_time: datetime | None """ - filters: list[Filter] | None = ... - """This parameter isn't currently supported.""" - max_records: int | None = ... + The end of the time interval for which to retrieve events, specified in + ISO 8601 format. For more information about ISO 8601, go to the [ISO8601 + Wikipedia page.](http://en.wikipedia.org/wiki/ISO_8601) + + Example: 2009-07-08T18:00Z """ - The maximum number of records to include in the response. If more + duration: int | None + """ + The number of minutes to retrieve events for. + + Default: 60 + """ + event_categories: Sequence[str] | None + """ + A list of event categories that trigger notifications for a event + notification subscription. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous DescribeEvents + request. If this parameter is specified, the response includes only + records beyond the marker, up to the value specified by `MaxRecords`. + """ + +@dataclass(kw_only=True) +class DescribeEventsOutput(_SerdeShape): + """ + Contains the result of a successful invocation of the `DescribeEvents` + action. + """ + + marker: str | None = ... + """ + An optional pagination token provided by a previous Events request. If + this parameter is specified, the response includes only records beyond + the marker, up to the value specified by `MaxRecords`. + """ + events: list[Event] | None = ... + """A list of `Event` instances.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DescribeEventSubscriptionsInput(_SerdeShape): + """""" + + subscription_name: str | None = ... + """ + The name of the RDS event notification subscription you want to + describe. + """ + filters: list[Filter] | None = ... + """This parameter isn't currently supported.""" + max_records: int | None = ... + """ + The maximum number of records to include in the response. If more records exist than the specified `MaxRecords` value, a pagination token called a marker is included in the response so that you can retrieve the remaining results. @@ -2784,6 +4685,35 @@ class DescribeEventSubscriptionsInput(_SerdeShape): the value specified by `MaxRecords` . """ +class DescribeEventSubscriptionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeEventSubscriptionsInput`.""" + + subscription_name: str | None + """ + The name of the RDS event notification subscription you want to + describe. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + DescribeOrderableDBInstanceOptions request. If this parameter is + specified, the response includes only records beyond the marker, up to + the value specified by `MaxRecords` . + """ + @dataclass(kw_only=True) class DescribeEventSubscriptionsOutput(_SerdeShape): """Data returned by the **DescribeEventSubscriptions** action.""" @@ -2868,6 +4798,68 @@ class DescribeExportTasksInput(_SerdeShape): source_type: str | None = ... """The type of source for the export.""" +class DescribeExportTasksInputDict(TypedDict, total=False): + """Dictionary form of `DescribeExportTasksInput`.""" + + export_task_identifier: str | None + """The identifier of the snapshot or cluster export task to be described.""" + source_arn: str | None + """ + The Amazon Resource Name (ARN) of the snapshot or cluster exported to + Amazon S3. + """ + filters: Sequence[Filter | FilterDict] | None + """ + Filters specify one or more snapshot or cluster exports to describe. The + filters are specified as name-value pairs that define what to include in + the output. Filter names and values are case-sensitive. + + Supported filters include the following: + + - `export-task-identifier` - An identifier for the snapshot or cluster + export task. + + - `s3-bucket` - The Amazon S3 bucket the data is exported to. + + - `source-arn` - The Amazon Resource Name (ARN) of the snapshot or + cluster exported to Amazon S3. + + - `status` - The status of the export task. Must be lowercase. Valid + statuses are the following: + + - `canceled` + + - `canceling` + + - `complete` + + - `failed` + + - `in_progress` + + - `starting` + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeExportTasks` request. If you specify this parameter, the + response includes only records beyond the marker, up to the value + specified by the `MaxRecords` parameter. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified value, a pagination token called a + marker is included in the response. You can use the marker in a later + `DescribeExportTasks` request to retrieve the remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + source_type: str | None + """The type of source for the export.""" + @dataclass(kw_only=True) class DescribeExportTasksOutput(_SerdeShape): """Dataclass for DescribeExportTasksOutput structure.""" @@ -2932,6 +4924,49 @@ class DescribeGlobalClustersInput(_SerdeShape): specified by `MaxRecords`. """ +class DescribeGlobalClustersInputDict(TypedDict, total=False): + """Dictionary form of `DescribeGlobalClustersInput`.""" + + global_cluster_identifier: str | None + """ + The user-supplied DB cluster identifier. If this parameter is specified, + information from only the specific DB cluster is returned. This + parameter isn't case-sensitive. + + Constraints: + + - If supplied, must match an existing DBClusterIdentifier. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more global database clusters to + describe. This parameter is case-sensitive. + + Currently, the only supported filter is `region`. + + If used, the request returns information about any global cluster with + at least one member (primary or secondary) in the specified Amazon Web + Services Regions. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeGlobalClusters` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeGlobalClustersOutput(_SerdeShape): """Dataclass for DescribeGlobalClustersOutput structure.""" @@ -2980,6 +5015,32 @@ class DescribeIntegrationsInput(_SerdeShape): specified by `MaxRecords`. """ +class DescribeIntegrationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeIntegrationsInput`.""" + + integration_identifier: str | None + """The unique identifier of the integration.""" + filters: Sequence[Filter | FilterDict] | None + """A filter that specifies one or more resources to return.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeIntegrations` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeIntegrationsOutput(_SerdeShape): """Dataclass for DescribeIntegrationsOutput structure.""" @@ -3062,6 +5123,68 @@ class DescribeOptionGroupOptionsInput(_SerdeShape): marker, up to the value specified by `MaxRecords`. """ +class DescribeOptionGroupOptionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeOptionGroupOptionsInput`.""" + + engine_name: Required[str] + """ + The name of the engine to describe options for. + + Valid Values: + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + major_engine_version: str | None + """ + If specified, filters the results to include only options for the + specified major engine version. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeOptionGroupOptionsOutput(_SerdeShape): """""" @@ -3152,11 +5275,80 @@ class DescribeOptionGroupsInput(_SerdeShape): also be specified. """ -@dataclass(kw_only=True) -class DescribeOptionGroupsOutput(_SerdeShape): - """List of option groups.""" +class DescribeOptionGroupsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeOptionGroupsInput`.""" - option_groups_list: list[OptionGroup] | None = ... + option_group_name: str | None + """ + The name of the option group to describe. Can't be supplied together + with EngineName or MajorEngineVersion. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + marker: str | None + """ + An optional pagination token provided by a previous DescribeOptionGroups + request. If this parameter is specified, the response includes only + records beyond the marker, up to the value specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + engine_name: str | None + """ + A filter to only include option groups associated with this database + engine. + + Valid Values: + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + major_engine_version: str | None + """ + Filters the list of option groups to only include groups associated with + a specific database engine version. If specified, then EngineName must + also be specified. + """ + +@dataclass(kw_only=True) +class DescribeOptionGroupsOutput(_SerdeShape): + """List of option groups.""" + + option_groups_list: list[OptionGroup] | None = ... """List of option groups.""" marker: str | None = ... """ @@ -3279,6 +5471,112 @@ class DescribeOrderableDBInstanceOptionsInput(_SerdeShape): the value specified by `MaxRecords`. """ +class DescribeOrderableDBInstanceOptionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeOrderableDBInstanceOptionsInput`.""" + + engine: Required[str] + """ + The name of the database engine to describe DB instance options for. + + Valid Values: + + - `aurora-mysql` + + - `aurora-postgresql` + + - `custom-oracle-ee` + + - `custom-oracle-ee-cdb` + + - `custom-oracle-se2` + + - `custom-oracle-se2-cdb` + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + engine_version: str | None + """ + A filter to include only the available options for the specified engine + version. + """ + db_instance_class: str | None + """ + A filter to include only the available options for the specified DB + instance class. + """ + license_model: str | None + """ + A filter to include only the available options for the specified license + model. + + RDS Custom supports only the BYOL licensing model. + """ + availability_zone_group: str | None + """ + The Availability Zone group associated with a Local Zone. Specify this + parameter to retrieve available options for the Local Zones in the + group. + + Omit this parameter to show the available options in the specified + Amazon Web Services Region. + + This setting doesn't apply to RDS Custom DB instances. + """ + vpc: bool | None + """ + Specifies whether to show only VPC or non-VPC offerings. RDS Custom + supports only VPC offerings. + + RDS Custom supports only VPC offerings. If you describe non-VPC + offerings for RDS Custom, the output shows VPC offerings. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 1000. + """ + marker: str | None + """ + An optional pagination token provided by a previous + DescribeOrderableDBInstanceOptions request. If this parameter is + specified, the response includes only records beyond the marker, up to + the value specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeOrderableDBInstanceOptionsOutput(_SerdeShape): """ @@ -3346,6 +5644,45 @@ class DescribePendingMaintenanceActionsInput(_SerdeShape): Constraints: Minimum 20, maximum 100. """ +class DescribePendingMaintenanceActionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribePendingMaintenanceActionsInput`.""" + + resource_identifier: str | None + """The ARN of a resource to return pending maintenance actions for.""" + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more resources to return pending + maintenance actions for. + + Supported filters: + + - `db-cluster-id` - Accepts DB cluster identifiers and DB cluster Amazon + Resource Names (ARNs). The results list only includes pending + maintenance actions for the DB clusters identified by these ARNs. + + - `db-instance-id` - Accepts DB instance identifiers and DB instance + ARNs. The results list only includes pending maintenance actions for + the DB instances identified by these ARNs. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribePendingMaintenanceActions` request. If this parameter is + specified, the response includes only records beyond the marker, up to a + number of records specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + @dataclass(kw_only=True) class DescribePendingMaintenanceActionsOutput(_SerdeShape): """Data returned from the **DescribePendingMaintenanceActions** action.""" @@ -3435,6 +5772,73 @@ class DescribeReservedDBInstancesInput(_SerdeShape): marker, up to the value specified by `MaxRecords`. """ +class DescribeReservedDBInstancesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeReservedDBInstancesInput`.""" + + reserved_db_instance_id: str | None + """ + The reserved DB instance identifier filter value. Specify this parameter + to show only the reservation that matches the specified reservation ID. + """ + reserved_db_instances_offering_id: str | None + """ + The offering identifier filter value. Specify this parameter to show + only purchased reservations matching the specified offering identifier. + """ + db_instance_class: str | None + """ + The DB instance class filter value. Specify this parameter to show only + those reservations matching the specified DB instances class. + """ + duration: str | None + """ + The duration filter value, specified in years or seconds. Specify this + parameter to show only reservations for this duration. + + Valid Values: `1 | 3 | 31536000 | 94608000` + """ + product_description: str | None + """ + The product description filter value. Specify this parameter to show + only those reservations matching the specified product description. + """ + offering_type: str | None + """ + The offering type filter value. Specify this parameter to show only the + available offerings matching the specified offering type. + + Valid Values: `"Partial Upfront" | "All Upfront" | "No Upfront" ` + """ + multi_az: bool | None + """Specifies whether to show only those reservations that support Multi-AZ.""" + lease_id: str | None + """ + The lease identifier filter value. Specify this parameter to show only + the reservation that matches the specified lease ID. + + Note: + Amazon Web Services Support might request the lease ID for an issue + related to a reserved DB instance. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more than + the `MaxRecords` value is available, a pagination token called a marker + is included in the response so you can retrieve the remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeReservedDBInstancesOfferingsInput(_SerdeShape): """""" @@ -3495,17 +5899,76 @@ class DescribeReservedDBInstancesOfferingsInput(_SerdeShape): marker, up to the value specified by `MaxRecords`. """ -@dataclass(kw_only=True) -class DescribeReservedDBInstancesOfferingsOutput(_SerdeShape): - """ - Contains the result of a successful invocation of the - `DescribeReservedDBInstancesOfferings` action. - """ +class DescribeReservedDBInstancesOfferingsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeReservedDBInstancesOfferingsInput`.""" - marker: str | None = ... + reserved_db_instances_offering_id: str | None """ - An optional pagination token provided by a previous request. If this - parameter is specified, the response includes only records beyond the + The offering identifier filter value. Specify this parameter to show + only the available offering that matches the specified reservation + identifier. + + Example: `438012d3-4052-4cc7-b2e3-8d3372e0e706` + """ + db_instance_class: str | None + """ + The DB instance class filter value. Specify this parameter to show only + the available offerings matching the specified DB instance class. + """ + duration: str | None + """ + Duration filter value, specified in years or seconds. Specify this + parameter to show only reservations for this duration. + + Valid Values: `1 | 3 | 31536000 | 94608000` + """ + product_description: str | None + """ + Product description filter value. Specify this parameter to show only + the available offerings that contain the specified product description. + + Note: + The results show offerings that partially match the filter value. + """ + offering_type: str | None + """ + The offering type filter value. Specify this parameter to show only the + available offerings matching the specified offering type. + + Valid Values: `"Partial Upfront" | "All Upfront" | "No Upfront" ` + """ + multi_az: bool | None + """Specifies whether to show only those reservations that support Multi-AZ.""" + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + max_records: int | None + """ + The maximum number of records to include in the response. If more than + the `MaxRecords` value is available, a pagination token called a marker + is included in the response so you can retrieve the remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + +@dataclass(kw_only=True) +class DescribeReservedDBInstancesOfferingsOutput(_SerdeShape): + """ + Contains the result of a successful invocation of the + `DescribeReservedDBInstancesOfferings` action. + """ + + marker: str | None = ... + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the marker, up to the value specified by `MaxRecords`. """ reserved_db_instances_offerings: list[ReservedDBInstancesOffering] | None = ... @@ -3591,6 +6054,55 @@ class DescribeServerlessV2PlatformVersionsInput(_SerdeShape): marker, up to the value specified by `MaxRecords`. """ +class DescribeServerlessV2PlatformVersionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeServerlessV2PlatformVersionsInput`.""" + + serverless_v2_platform_version: str | None + """ + A specific platform version to return details for. + + Example: `3` + """ + engine: str | None + """ + The database engine to return platform version details for. + + Valid Values: + + - `aurora-mysql` + + - `aurora-postgresql` + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + default_only: bool | None + """ + Specifies whether to return only the default platform versions for each + engine. The default platform version is the version used for new DB + clusters. + """ + include_all: bool | None + """ + Specifies whether to also include platform versions which are no longer + in use. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more than + the `MaxRecords` value is available, a pagination token called a marker + is included in the response so you can retrieve the remaining results. + + Default: 20 + + Constraints: Minimum 1, maximum 200. + """ + marker: str | None + """ + An optional pagination token provided by a previous request. If this + parameter is specified, the response includes only records beyond the + marker, up to the value specified by `MaxRecords`. + """ + @dataclass(kw_only=True) class DescribeServerlessV2PlatformVersionsOutput(_SerdeShape): """ @@ -3647,6 +6159,38 @@ class DescribeSourceRegionsInput(_SerdeShape): filters: list[Filter] | None = ... """This parameter isn't currently supported.""" +class DescribeSourceRegionsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSourceRegionsInput`.""" + + region_name: str | None + """ + The source Amazon Web Services Region name. For example, `us-east-1`. + + Constraints: + + - Must specify a valid Amazon Web Services Region name. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so you can retrieve the + remaining results. + + Default: 100 + + Constraints: Minimum 20, maximum 100. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeSourceRegions` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + @dataclass(kw_only=True) class DescribeSourceRegionsOutput(_SerdeShape): """ @@ -3721,6 +6265,52 @@ class DescribeTenantDatabasesInput(_SerdeShape): remaining results. """ +class DescribeTenantDatabasesInputDict(TypedDict, total=False): + """Dictionary form of `DescribeTenantDatabasesInput`.""" + + db_instance_identifier: str | None + """ + The user-supplied DB instance identifier, which must match the + identifier of an existing instance owned by the Amazon Web Services + account. This parameter isn't case-sensitive. + """ + tenant_db_name: str | None + """ + The user-supplied tenant database name, which must match the name of an + existing tenant database on the specified DB instance owned by your + Amazon Web Services account. This parameter isn't case-sensitive. + """ + filters: Sequence[Filter | FilterDict] | None + """ + A filter that specifies one or more database tenants to describe. + + Supported filters: + + - `tenant-db-name` - Tenant database names. The results list only + includes information about the tenant databases that match these + tenant DB names. + + - `tenant-database-resource-id` - Tenant database resource identifiers. + + - `dbi-resource-id` - DB instance resource identifiers. The results list + only includes information about the tenants contained within the DB + instances identified by these resource identifiers. + """ + marker: str | None + """ + An optional pagination token provided by a previous + `DescribeTenantDatabases` request. If this parameter is specified, the + response includes only records beyond the marker, up to the value + specified by `MaxRecords`. + """ + max_records: int | None + """ + The maximum number of records to include in the response. If more + records exist than the specified `MaxRecords` value, a pagination token + called a marker is included in the response so that you can retrieve the + remaining results. + """ + @dataclass(kw_only=True) class DescribeTenantDatabasesOutput(_SerdeShape): """Dataclass for DescribeTenantDatabasesOutput structure.""" @@ -3752,6 +6342,12 @@ class DescribeValidDBInstanceModificationsInput(_SerdeShape): db_instance_identifier: str | None = ... """The customer identifier or the ARN of your DB instance.""" +class DescribeValidDBInstanceModificationsInputDict(TypedDict, total=False): + """Dictionary form of `DescribeValidDBInstanceModificationsInput`.""" + + db_instance_identifier: Required[str] + """The customer identifier or the ARN of your DB instance.""" + @dataclass(kw_only=True) class DescribeValidDBInstanceModificationsOutput(_SerdeShape): """Dataclass for DescribeValidDBInstanceModificationsOutput structure.""" @@ -3780,6 +6376,12 @@ class DisableHttpEndpointInput(_SerdeShape): resource_arn: str | None = ... """The Amazon Resource Name (ARN) of the DB cluster.""" +class DisableHttpEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DisableHttpEndpointInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the DB cluster.""" + @dataclass(kw_only=True) class DisableHttpEndpointOutput(_SerdeShape): """Dataclass for DisableHttpEndpointOutput structure.""" @@ -3916,6 +6518,54 @@ class DownloadDBLogFilePortionInput(_SerdeShape): response element returns false. """ +class DownloadDBLogFilePortionInputDict(TypedDict, total=False): + """Dictionary form of `DownloadDBLogFilePortionInput`.""" + + db_instance_identifier: Required[str] + """ + The customer-assigned name of the DB instance that contains the log + files you want to list. + + Constraints: + + - Must match the identifier of an existing DBInstance. + """ + log_file_name: Required[str] + """The name of the log file to be downloaded.""" + marker: str | None + """ + The pagination token provided in the previous request or \"0\". If the + Marker parameter is specified the response includes only records beyond + the marker until the end of the file or up to NumberOfLines. + """ + number_of_lines: int | None + """ + The number of lines to download. If the number of lines specified + results in a file over 1 MB in size, the file is truncated at 1 MB in + size. + + If the NumberOfLines parameter is specified, then the block of lines + returned can be from the beginning or the end of the log file, depending + on the value of the Marker parameter. + + - If neither Marker or NumberOfLines are specified, the entire log file + is returned up to a maximum of 10000 lines, starting with the most + recent log entries first. + + - If NumberOfLines is specified and Marker isn't specified, then the + most recent lines from the end of the log file are returned. + + - If Marker is specified as \"0\", then the specified number of lines + from the beginning of the log file are returned. + + - You can download the log file in blocks of lines by specifying the + size of the block using the NumberOfLines parameter, and by specifying + a value of \"0\" for the Marker parameter in your first request. + Include the Marker value returned in the response as the Marker value + for the next request, continuing until the AdditionalDataPending + response element returns false. + """ + @dataclass(kw_only=True) class DownloadDBLogFilePortionOutput(_SerdeShape): """ @@ -3989,6 +6639,12 @@ class EnableHttpEndpointInput(_SerdeShape): resource_arn: str | None = ... """The Amazon Resource Name (ARN) of the DB cluster.""" +class EnableHttpEndpointInputDict(TypedDict, total=False): + """Dictionary form of `EnableHttpEndpointInput`.""" + + resource_arn: Required[str] + """The Amazon Resource Name (ARN) of the DB cluster.""" + @dataclass(kw_only=True) class EnableHttpEndpointOutput(_SerdeShape): """Dataclass for EnableHttpEndpointOutput structure.""" @@ -4306,6 +6962,28 @@ class FailoverDBClusterInput(_SerdeShape): This setting isn't supported for RDS for MySQL Multi-AZ DB clusters. """ +class FailoverDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `FailoverDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """ + The identifier of the DB cluster to force a failover for. This parameter + isn't case-sensitive. + + Constraints: + + - Must match the identifier of an existing DB cluster. + """ + target_db_instance_identifier: str | None + """ + The name of the DB instance to promote to the primary DB instance. + + Specify the DB instance identifier for an Aurora Replica or a Multi-AZ + readable standby in the DB cluster, for example `mydbcluster-replica1`. + + This setting isn't supported for RDS for MySQL Multi-AZ DB clusters. + """ + @dataclass(kw_only=True) class FailoverDBClusterOutput(_SerdeShape): """Dataclass for FailoverDBClusterOutput structure.""" @@ -4388,29 +7066,71 @@ class FailoverGlobalClusterInput(_SerdeShape): - Can't be specified together with the `AllowDataLoss` parameter. """ -@dataclass(kw_only=True) -class FailoverGlobalClusterOutput(_SerdeShape): - """Dataclass for FailoverGlobalClusterOutput structure.""" +class FailoverGlobalClusterInputDict(TypedDict, total=False): + """Dictionary form of `FailoverGlobalClusterInput`.""" - global_cluster: GlobalCluster | None = ... - """A data type representing an Aurora global database.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + global_cluster_identifier: Required[str] """ + The identifier of the global database cluster (Aurora global database) + this operation should apply to. The identifier is the unique key + assigned by the user when the Aurora global database is created. In + other words, it's the name of the Aurora global database. -@dataclass(kw_only=True) -class FailoverState(_SerdeShape): + Constraints: + + - Must match the identifier of an existing global database cluster. """ - Contains the state of scheduled or in-process operations on a global - cluster (Aurora global database). This data type is empty unless a - switchover or failover operation is scheduled or is in progress on the - Aurora global database. + target_db_cluster_identifier: Required[str] """ - + The identifier of the secondary Aurora DB cluster that you want to + promote to the primary for the global database cluster. Use the Amazon + Resource Name (ARN) for the identifier so that Aurora can locate the + cluster in its Amazon Web Services Region. + """ + allow_data_loss: bool | None + """ + Specifies whether to allow data loss for this global database cluster + operation. Allowing data loss triggers a global failover operation. + + If you don't specify `AllowDataLoss`, the global database cluster + operation defaults to a switchover. + + Constraints: + + - Can't be specified together with the `Switchover` parameter. + """ + switchover: bool | None + """ + Specifies whether to switch over this global database cluster. + + Constraints: + + - Can't be specified together with the `AllowDataLoss` parameter. + """ + +@dataclass(kw_only=True) +class FailoverGlobalClusterOutput(_SerdeShape): + """Dataclass for FailoverGlobalClusterOutput structure.""" + + global_cluster: GlobalCluster | None = ... + """A data type representing an Aurora global database.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class FailoverState(_SerdeShape): + """ + Contains the state of scheduled or in-process operations on a global + cluster (Aurora global database). This data type is empty unless a + switchover or failover operation is scheduled or is in progress on the + Aurora global database. + """ + status: str | None = ... """ The current status of the global cluster. Possible values are as @@ -4492,6 +7212,14 @@ class Filter(_SerdeShape): values: list[str] | None = ... """One or more filter values. Filter values are case-sensitive.""" +class FilterDict(TypedDict, total=False): + """Dictionary form of `Filter`.""" + + name: Required[str] + """The name of the filter. Filter names are case-sensitive.""" + values: Required[Sequence[str]] + """One or more filter values. Filter values are case-sensitive.""" + @dataclass(kw_only=True) class GlobalCluster(_SerdeShape): """A data type representing an Aurora global database.""" @@ -5402,6 +8130,20 @@ class ListTagsForResourceInput(_SerdeShape): filters: list[Filter] | None = ... """This parameter isn't currently supported.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_name: Required[str] + """ + The Amazon RDS resource with tags to be listed. This value is an Amazon + Resource Name (ARN). For information about creating an ARN, see + [Constructing an ARN for Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) + in the *Amazon RDS User Guide*. + """ + filters: Sequence[Filter | FilterDict] | None + """This parameter isn't currently supported.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """""" @@ -5552,6 +8294,22 @@ class ModifyActivityStreamInput(_SerdeShape): when the activity stream is unlocked or stopped. """ +class ModifyActivityStreamInputDict(TypedDict, total=False): + """Dictionary form of `ModifyActivityStreamInput`.""" + + resource_arn: str | None + """ + The Amazon Resource Name (ARN) of the RDS for Oracle or Microsoft SQL + Server DB instance. For example, + `arn:aws:rds:us-east-1:12345667890:db:my-orcl-db`. + """ + audit_policy_state: str | None + """ + The audit policy state. When a policy is unlocked, it is read/write. + When it is locked, it is read-only. You can edit your audit policy only + when the activity stream is unlocked or stopped. + """ + @dataclass(kw_only=True) class ModifyActivityStreamOutput(_SerdeShape): """Dataclass for ModifyActivityStreamOutput structure.""" @@ -5636,6 +8394,53 @@ class ModifyAdditionalStorageVolume(_SerdeShape): data. """ +class ModifyAdditionalStorageVolumeDict(TypedDict, total=False): + """Dictionary form of `ModifyAdditionalStorageVolume`.""" + + volume_name: Required[str] + """ + The name of the additional storage volume that you want to modify. + + Valid Values: `RDSDBDATA2 | RDSDBDATA3 | RDSDBDATA4` + """ + allocated_storage: int | None + """ + The amount of storage allocated for the additional storage volume, in + gibibytes (GiB). The minimum is 20 GiB. The maximum is 65,536 GiB (64 + TiB). + """ + iops: int | None + """ + The number of I/O operations per second (IOPS) provisioned for the + additional storage volume. This setting is only supported for + Provisioned IOPS SSD (`io1` and `io2`) storage types. + """ + max_allocated_storage: int | None + """ + The upper limit in gibibytes (GiB) to which RDS can automatically scale + the storage of the additional storage volume. You must provide a value + greater than or equal to `AllocatedStorage`. + """ + storage_throughput: int | None + """ + The storage throughput value for the additional storage volume, in + mebibytes per second (MiBps). This setting applies only to the General + Purpose SSD (`gp3`) storage type. + """ + storage_type: str | None + """ + The new storage type for the additional storage volume. + + Valid Values: `GP3 | IO2` + """ + set_for_delete: bool | None + """ + Indicates whether to delete the additional storage volume. The value + `true` schedules the volume for deletion. You can delete an additional + storage volume only when it doesn't contain database files or other + data. + """ + @dataclass(kw_only=True) class ModifyCertificatesInput(_SerdeShape): """Dataclass for ModifyCertificatesInput structure.""" @@ -5653,6 +8458,22 @@ class ModifyCertificatesInput(_SerdeShape): the override is removed, the default certificate is the system default. """ +class ModifyCertificatesInputDict(TypedDict, total=False): + """Dictionary form of `ModifyCertificatesInput`.""" + + certificate_identifier: str | None + """ + The new default certificate identifier to override the current one with. + + To determine the valid values, use the `describe-certificates` CLI + command or the `DescribeCertificates` API operation. + """ + remove_customer_override: bool | None + """ + Specifies whether to remove the override for the default certificate. If + the override is removed, the default certificate is the system default. + """ + @dataclass(kw_only=True) class ModifyCertificatesOutput(_SerdeShape): """Dataclass for ModifyCertificatesOutput structure.""" @@ -5724,6 +8545,53 @@ class ModifyCurrentDBClusterCapacityInput(_SerdeShape): isn't found in the timeout period. """ +class ModifyCurrentDBClusterCapacityInputDict(TypedDict, total=False): + """Dictionary form of `ModifyCurrentDBClusterCapacityInput`.""" + + db_cluster_identifier: Required[str] + """ + The DB cluster identifier for the cluster being modified. This parameter + isn't case-sensitive. + + Constraints: + + - Must match the identifier of an existing DB cluster. + """ + capacity: int | None + """ + The DB cluster capacity. + + When you change the capacity of a paused Aurora Serverless v1 DB + cluster, it automatically resumes. + + Constraints: + + - For Aurora MySQL, valid capacity values are `1`, `2`, `4`, `8`, `16`, + `32`, `64`, `128`, and `256`. + + - For Aurora PostgreSQL, valid capacity values are `2`, `4`, `8`, `16`, + `32`, `64`, `192`, and `384`. + """ + seconds_before_timeout: int | None + """ + The amount of time, in seconds, that Aurora Serverless v1 tries to find + a scaling point to perform seamless scaling before enforcing the timeout + action. The default is 300. + + Specify a value between 10 and 600 seconds. + """ + timeout_action: str | None + """ + The action to take when the timeout is reached, either + `ForceApplyCapacityChange` or `RollbackCapacityChange`. + + `ForceApplyCapacityChange`, the default, sets the capacity to the + specified value as soon as possible. + + `RollbackCapacityChange` ignores the capacity change if a scaling point + isn't found in the timeout period. + """ + @dataclass(kw_only=True) class ModifyCurrentDBClusterCapacityOutput(_SerdeShape): """Dataclass for ModifyCurrentDBClusterCapacityOutput structure.""" @@ -5807,12 +8675,81 @@ class ModifyCustomDBEngineVersionInput(_SerdeShape): available - : You can use this CEV to create a new RDS Custom DB instance. + : You can use this CEV to create a new RDS Custom DB instance. + + inactive + + : You can create a new RDS Custom instance by restoring a DB snapshot + with this CEV. You can't patch or create new instances with this + CEV. + + You can change any status to any status. A typical reason to change + status is to prevent the accidental use of a CEV, or to make a + deprecated CEV eligible for use again. For example, you might change the + status of your CEV from `available` to `inactive`, and from `inactive` + back to `available`. To change the availability status of the CEV, it + must not currently be in use by an RDS Custom instance, snapshot, or + automated backup. + """ + +class ModifyCustomDBEngineVersionInputDict(TypedDict, total=False): + """Dictionary form of `ModifyCustomDBEngineVersionInput`.""" + + engine: Required[str] + """ + The database engine. + + RDS Custom for Oracle supports the following values: + + - `custom-oracle-ee` + + - `custom-oracle-ee-cdb` + + - `custom-oracle-se2` + + - `custom-oracle-se2-cdb` + + RDS Custom for SQL Server supports the following values: + + - `custom-sqlserver-ee` + + - `custom-sqlserver-se` + + - `custom-sqlserver-web` + + - `custom-sqlserver-dev` + + RDS for SQL Server supports the following values: + + - `sqlserver-ee` (Bring Your Own Media) + + - `sqlserver-se` (Bring Your Own Media) + + - `sqlserver-dev-ee` + """ + engine_version: Required[str] + """ + The custom engine version (CEV) that you want to modify. This option is + required for RDS Custom for Oracle, but optional for Amazon RDS. The + combination of `Engine` and `EngineVersion` is unique per customer per + Amazon Web Services Region. + """ + description: str | None + """An optional description of your CEV.""" + status: str | None + """ + The availability status to be assigned to the CEV. Valid values are as + follows: + + available + + : You can use this CEV to create a new RDS Custom DB instance. inactive - : You can create a new RDS Custom instance by restoring a DB snapshot - with this CEV. You can't patch or create new instances with this CEV. + : You can create a new RDS Custom instance by restoring a DB snapshot + with this CEV. You can't patch or create new instances with this + CEV. You can change any status to any status. A typical reason to change status is to prevent the accidental use of a CEV, or to make a @@ -6102,36 +9039,100 @@ class ModifyDBCapacityReservationInput(_SerdeShape): - During a capacity commitment, must be at or after `CommitmentEndDate`. """ -@dataclass(kw_only=True) -class ModifyDBCapacityReservationOutput(_SerdeShape): - """Dataclass for ModifyDBCapacityReservationOutput structure.""" +class ModifyDBCapacityReservationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBCapacityReservationInput`.""" - db_capacity_reservation: DBCapacityReservation | None = ... - """Contains the details of the modified DB capacity reservation.""" - response_metadata: ResponseMetadata = ... + db_capacity_reservation_identifier: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The identifier or the name of the DB capacity reservation to modify. You + can specify the identifier, which has the prefix `dbcr-`, or the + reservation name. + """ + capacity_per_availability_zone: int | None """ + The new number of DB instances to reserve in each Availability Zone of + the reservation. Amazon RDS applies this number to every Availability + Zone of the reservation. -@dataclass(kw_only=True) -class ModifyDBClusterEndpointInput(_SerdeShape): - """Dataclass for ModifyDBClusterEndpointInput structure.""" + An increase reserves more capacity at the time of the request, so it can + fail when the Amazon Web Services Region has insufficient capacity. - db_cluster_endpoint_identifier: str | None = ... - """ - The identifier of the endpoint to modify. This parameter is stored as a - lowercase string. - """ - endpoint_type: str | None = ... - """The type of the endpoint. One of: `READER`, `WRITER`, `ANY`.""" - static_members: list[str] | None = ... - """ - List of DB instance identifiers that are part of the custom endpoint - group. - """ + This value multiplied by the number of Availability Zones counts against + the DB instances quota for your Amazon Web Services account in the + Amazon Web Services Region. Amazon RDS checks the quota only when you + increase the value. + + Constraints: + + - Minimum 1. + + - Can't be less than the highest number of DB instances that use the + reservation in any single Availability Zone of the reservation. That + number includes a DB instance that holds a unit of reserved capacity + for a pending modification. To find that number for an Availability + Zone, subtract `AvailableCapacity` from + `ReservedCapacityPerAvailabilityZone`. + + - During a capacity commitment, can't be less than + `CommittedCapacityPerAvailabilityZone`. + """ + end_date_type: str | None + """ + The end date type for the reservation. + + Valid Values: + + - `limited` - The reservation has a specific end date. You must also + specify `EndDate`. + + - `unlimited` - The reservation doesn't expire. Don't specify + `EndDate`. + """ + end_date: datetime | None + """ + The new end date for the reservation, in Universal Coordinated Time + (UTC). Required when `EndDateType` is `limited`. Don't specify a value + when `EndDateType` is `unlimited`. + + When you specify `EndDate`, you must also specify `EndDateType`. + + Constraints: + + - Must be a date and time in the future. + + - During a capacity commitment, must be at or after `CommitmentEndDate`. + """ + +@dataclass(kw_only=True) +class ModifyDBCapacityReservationOutput(_SerdeShape): + """Dataclass for ModifyDBCapacityReservationOutput structure.""" + + db_capacity_reservation: DBCapacityReservation | None = ... + """Contains the details of the modified DB capacity reservation.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyDBClusterEndpointInput(_SerdeShape): + """Dataclass for ModifyDBClusterEndpointInput structure.""" + + db_cluster_endpoint_identifier: str | None = ... + """ + The identifier of the endpoint to modify. This parameter is stored as a + lowercase string. + """ + endpoint_type: str | None = ... + """The type of the endpoint. One of: `READER`, `WRITER`, `ANY`.""" + static_members: list[str] | None = ... + """ + List of DB instance identifiers that are part of the custom endpoint + group. + """ excluded_members: list[str] | None = ... """ List of DB instance identifiers that aren't part of the custom endpoint @@ -6139,6 +9140,28 @@ class ModifyDBClusterEndpointInput(_SerdeShape): endpoint. Only relevant if the list of static members is empty. """ +class ModifyDBClusterEndpointInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBClusterEndpointInput`.""" + + db_cluster_endpoint_identifier: Required[str] + """ + The identifier of the endpoint to modify. This parameter is stored as a + lowercase string. + """ + endpoint_type: str | None + """The type of the endpoint. One of: `READER`, `WRITER`, `ANY`.""" + static_members: Sequence[str] | None + """ + List of DB instance identifiers that are part of the custom endpoint + group. + """ + excluded_members: Sequence[str] | None + """ + List of DB instance identifiers that aren't part of the custom endpoint + group. All other eligible instances are reachable through the custom + endpoint. Only relevant if the list of static members is empty. + """ + @dataclass(kw_only=True) class ModifyDBClusterEndpointOutput(_SerdeShape): """ @@ -6949,168 +9972,2270 @@ class ModifyDBClusterInput(_SerdeShape): `open-source-rds-extended-support | open-source-rds-extended-support-disabled` """ -@dataclass(kw_only=True) -class ModifyDBClusterOutput(_SerdeShape): - """Dataclass for ModifyDBClusterOutput structure.""" +class ModifyDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBClusterInput`.""" - db_cluster: DBCluster | None = ... + db_cluster_identifier: Required[str] """ - Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB - cluster. + The DB cluster identifier for the cluster being modified. This parameter + isn't case-sensitive. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Constraints: + + - Must match the identifier of an existing DB cluster. + """ + new_db_cluster_identifier: str | None + """ + The new DB cluster identifier for the DB cluster when renaming a DB + cluster. This value is stored as a lowercase string. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens. + + - The first character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `my-cluster2` + """ + apply_immediately: bool | None + """ + Specifies whether the modifications in this request are asynchronously + applied as soon as possible, regardless of the + `PreferredMaintenanceWindow` setting for the DB cluster. If this + parameter is disabled, changes to the DB cluster are applied during the + next maintenance window. + + Most modifications can be applied immediately or during the next + scheduled maintenance window. Some modifications, such as turning on + deletion protection and changing the master password, are applied + immediately---regardless of when you choose to apply them. + + By default, this parameter is disabled. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + backup_retention_period: int | None + """ + The number of days for which automated backups are retained. Specify a + minimum value of `1`. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Default: `1` + + Constraints: + + - Must be a value from 1 to 35. + """ + db_cluster_parameter_group_name: str | None + """ + The name of the DB cluster parameter group to use for the DB cluster. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + vpc_security_group_ids: Sequence[str] | None + """ + A list of EC2 VPC security groups to associate with this DB cluster. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + port: int | None + """ + The port number on which the DB cluster accepts connections. + + Valid for Cluster Type: Aurora DB clusters only + + Valid Values: `1150-65535` + + Default: The same port as the original DB cluster. + """ + master_user_password: str | None + """ + The new password for the master database user. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Constraints: + + - Must contain from 8 to 41 characters. + + - Can contain any printable ASCII character except \"/\", \"\"\", or + \"@\". + + - Can't be specified if `ManageMasterUserPassword` is turned on. + """ + option_group_name: str | None + """ + The option group to associate the DB cluster with. + + DB clusters are associated with a default option group that can't be + modified. + """ + preferred_backup_window: str | None + """ + The daily time range during which automated backups are created if + automated backups are enabled, using the `BackupRetentionPeriod` + parameter. + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region. To view the time + blocks available, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) + in the *Amazon Aurora User Guide*. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + preferred_maintenance_window: str | None + """ + The weekly time range during which system maintenance can occur, in + Universal Coordinated Time (UTC). + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region, occurring on a random + day of the week. To see the time blocks available, see [Adjusting the + Preferred DB Cluster Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora) + in the *Amazon Aurora User Guide*. + + Constraints: + + - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. + + - Days must be one of `Mon | Tue | Wed | Thu | Fri | Sat | Sun`. + + - Must be in Universal Coordinated Time (UTC). + + - Must be at least 30 minutes. + """ + enable_iam_database_authentication: bool | None + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. + + For more information, see [IAM Database + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon Aurora User Guide* or [IAM database authentication for + MariaDB, MySQL, and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide*. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + backtrack_window: int | None + """ + The target backtrack window, in seconds. To disable backtracking, set + this value to `0`. + + Valid for Cluster Type: Aurora MySQL DB clusters only + + Default: `0` + + Constraints: + + - If specified, this value must be set to a number from 0 to 259,200 (72 + hours). + """ + cloudwatch_logs_export_configuration: ( + CloudwatchLogsExportConfiguration | CloudwatchLogsExportConfigurationDict | None + ) + """ + The configuration setting for the log types to be enabled for export to + CloudWatch Logs for a specific DB cluster. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + The following values are valid for each DB engine: + + - Aurora MySQL - + `audit | error | general | instance | slowquery | iam-db-auth-error` + + - Aurora PostgreSQL - `instance | postgresql | iam-db-auth-error` + + - RDS for MySQL - `error | general | slowquery | iam-db-auth-error` + + - RDS for PostgreSQL - `postgresql | upgrade | iam-db-auth-error` + + For more information about exporting CloudWatch Logs for Amazon RDS, see + [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + + For more information about exporting CloudWatch Logs for Amazon Aurora, + see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon Aurora User Guide*. + """ + engine_version: str | None + """ + The version number of the database engine to which you want to upgrade. + Changing this parameter results in an outage. The change is applied + during the next maintenance window unless `ApplyImmediately` is enabled. + + If the cluster that you're modifying has one or more read replicas, all + replicas must be running an engine version that's the same or later + than the version you specify. + + To list all of the available engine versions for Aurora MySQL, use the + following command: + + `aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"` + + To list all of the available engine versions for Aurora PostgreSQL, use + the following command: + + `aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions[].EngineVersion"` + + To list all of the available engine versions for RDS for MySQL, use the + following command: + + `aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions[].EngineVersion"` + + To list all of the available engine versions for RDS for PostgreSQL, use + the following command: + + `aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions[].EngineVersion"` + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + allow_major_version_upgrade: bool | None + """ + Specifies whether major version upgrades are allowed. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Constraints: + + - You must allow major version upgrades when specifying a value for the + `EngineVersion` parameter that is a different major version than the + DB cluster's current version. + """ + db_instance_parameter_group_name: str | None + """ + The name of the DB parameter group to apply to all instances of the DB + cluster. + + Note: + When you apply a parameter group using the + `DBInstanceParameterGroupName` parameter, the DB cluster isn't rebooted + automatically. Also, parameter changes are applied immediately rather + than during the next maintenance window. + + Valid for Cluster Type: Aurora DB clusters only + + Default: The existing name setting + + Constraints: + + - The DB parameter group must be in the same DB parameter group family + as this DB cluster. + + - The `DBInstanceParameterGroupName` parameter is valid in combination + with the `AllowMajorVersionUpgrade` parameter for a major version + upgrade only. + """ + domain: str | None + """ + The Active Directory directory ID to move the DB cluster to. Specify + `none` to remove the cluster from its current domain. The domain must be + created prior to this operation. + + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html) + in the *Amazon Aurora User Guide*. + + Valid for Cluster Type: Aurora DB clusters only + """ + domain_iam_role_name: str | None + """ + The name of the IAM role to use when making API calls to the Directory + Service. + + Valid for Cluster Type: Aurora DB clusters only + """ + scaling_configuration: ScalingConfiguration | ScalingConfigurationDict | None + """ + The scaling properties of the DB cluster. You can only modify scaling + properties for DB clusters in `serverless` DB engine mode. + + Valid for Cluster Type: Aurora DB clusters only + """ + deletion_protection: bool | None + """ + Specifies whether the DB cluster has deletion protection enabled. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + enable_http_endpoint: bool | None + """ + Specifies whether to enable the HTTP endpoint for an Aurora Serverless + v1 DB cluster. By default, the HTTP endpoint isn't enabled. + + When enabled, the HTTP endpoint provides a connectionless web service + API (RDS Data API) for running SQL queries on the Aurora Serverless v1 + DB cluster. You can also query your database from inside the RDS console + with the RDS query editor. + + For more information, see [Using RDS Data + API](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html) + in the *Amazon Aurora User Guide*. + + Note: + This parameter applies only to Aurora Serverless v1 DB clusters. To + enable or disable the HTTP endpoint for an Aurora Serverless v2 or + provisioned DB cluster, use the `EnableHttpEndpoint` and + `DisableHttpEndpoint` operations. + + Valid for Cluster Type: Aurora DB clusters only + """ + copy_tags_to_snapshot: bool | None + """ + Specifies whether to copy all tags from the DB cluster to snapshots of + the DB cluster. The default is not to copy them. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + enable_global_write_forwarding: bool | None + """ + Specifies whether to enable this DB cluster to forward write operations + to the primary cluster of a global cluster (Aurora global database). By + default, write operations are not allowed on Aurora DB clusters that are + secondary clusters in an Aurora global database. + + You can set this value only on Aurora DB clusters that are members of an + Aurora global database. With this parameter enabled, a secondary cluster + can forward writes to the current primary cluster, and the resulting + changes are replicated back to this cluster. For the primary DB cluster + of an Aurora global database, this value is used immediately if the + primary is demoted by a global cluster API operation, but it does + nothing until then. + + Valid for Cluster Type: Aurora DB clusters only + """ + db_cluster_instance_class: str | None + """ + The compute and memory capacity of each DB instance in the Multi-AZ DB + cluster, for example `db.m6gd.xlarge`. Not all DB instance classes are + available in all Amazon Web Services Regions, or for all database + engines. + + For the full list of DB instance classes and availability for your + engine, see [DB Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide*. + + Valid for Cluster Type: Multi-AZ DB clusters only + """ + allocated_storage: int | None + """ + The amount of storage in gibibytes (GiB) to allocate to each DB instance + in the Multi-AZ DB cluster. + + Valid for Cluster Type: Multi-AZ DB clusters only + """ + storage_type: str | None + """ + The storage type to associate with the DB cluster. + + For information on storage types for Aurora DB clusters, see [Storage + configurations for Amazon Aurora DB + clusters](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type). + For information on storage types for Multi-AZ DB clusters, see [Settings + for creating Multi-AZ DB + clusters](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings). + + When specified for a Multi-AZ DB cluster, a value for the `Iops` + parameter is required. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Valid Values: + + - Aurora DB clusters - `aurora | aurora-iopt1` + + - Multi-AZ DB clusters - `io1 | io2 | gp3` + + Default: + + - Aurora DB clusters - `aurora` + + - Multi-AZ DB clusters - `io1` + """ + iops: int | None + """ + The amount of Provisioned IOPS (input/output operations per second) to + be initially allocated for each DB instance in the Multi-AZ DB cluster. + + For information about valid IOPS values, see [Amazon RDS Provisioned + IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide*. + + Valid for Cluster Type: Multi-AZ DB clusters only + + Constraints: + + - Must be a multiple between .5 and 50 of the storage amount for the DB + cluster. + """ + auto_minor_version_upgrade: bool | None + """ + Specifies whether minor engine upgrades are applied automatically to the + DB cluster during the maintenance window. By default, minor engine + upgrades are applied automatically. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + network_type: str | None + """ + The network type of the DB cluster. + + The network type is determined by the `DBSubnetGroup` specified for the + DB cluster. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon Aurora User Guide.* + + Valid for Cluster Type: Aurora DB clusters only + + Valid Values: `IPV4 | DUAL` + """ + serverless_v2_scaling_configuration: ( + ServerlessV2ScalingConfiguration | ServerlessV2ScalingConfigurationDict | None + ) + """ + Contains the scaling configuration of an Aurora Serverless v2 DB + cluster. + + For more information, see [Using Amazon Aurora Serverless + v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + in the *Amazon Aurora User Guide*. + """ + monitoring_interval: int | None + """ + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB cluster. To turn off collecting + Enhanced Monitoring metrics, specify `0`. + + If `MonitoringRoleArn` is specified, also set `MonitoringInterval` to a + value other than `0`. + + Valid for Cluster Type: Multi-AZ DB clusters only + + Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + + Default: `0` + """ + monitoring_role_arn: str | None + """ + The Amazon Resource Name (ARN) for the IAM role that permits RDS to send + Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is + `arn:aws:iam:123456789012:role/emaccess`. For information on creating a + monitoring role, see [To create an IAM role for Amazon RDS Enhanced + Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole) + in the *Amazon RDS User Guide.* + + If `MonitoringInterval` is set to a value other than `0`, supply a + `MonitoringRoleArn` value. + + Valid for Cluster Type: Multi-AZ DB clusters only + """ + database_insights_mode: str | None + """ + Specifies the mode of Database Insights to enable for the DB cluster. + + If you change the value from `standard` to `advanced`, you must set the + `PerformanceInsightsEnabled` parameter to `true` and the + `PerformanceInsightsRetentionPeriod` parameter to 465. + + If you change the value from `advanced` to `standard`, you can set the + `PerformanceInsightsEnabled` parameter to `true` to collect detailed + database counter and per-query metrics. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + enable_performance_insights: bool | None + """ + Specifies whether to turn on Performance Insights for the DB cluster. + + For more information, see [Using Amazon Performance + Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + in the *Amazon RDS User Guide*. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + performance_insights_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + performance_insights_retention_period: int | None + """ + The number of days to retain Performance Insights data. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Valid Values: + + - `7` + + - *month* * 31, where *month* is a number of months from 1-23. + Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 + months * 31) + + - `731` + + Default: `7` days + + If you specify a retention period that isn't valid, such as `94`, + Amazon RDS issues an error. + """ + manage_master_user_password: bool | None + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. + + If the DB cluster doesn't manage the master user password with Amazon + Web Services Secrets Manager, you can turn on this management. In this + case, you can't specify `MasterUserPassword`. + + If the DB cluster already manages the master user password with Amazon + Web Services Secrets Manager, and you specify that the master user + password is not managed with Amazon Web Services Secrets Manager, then + you must specify `MasterUserPassword`. In this case, RDS deletes the + secret and uses the new password for the master user specified by + `MasterUserPassword`. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide* and [Password management with Amazon Web + Services Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) + in the *Amazon Aurora User Guide.* + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + rotate_master_user_password: bool | None + """ + Specifies whether to rotate the secret managed by Amazon Web Services + Secrets Manager for the master user password. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB cluster. The secret + value contains the updated password. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide* and [Password management with Amazon Web + Services Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) + in the *Amazon Aurora User Guide.* + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Constraints: + + - You must apply the change immediately when rotating the master user + password. + """ + enable_local_write_forwarding: bool | None + """ + Specifies whether read replicas can forward write operations to the + writer DB instance in the DB cluster. By default, write operations + aren't allowed on reader DB instances. + + Valid for: Aurora DB clusters only + """ + master_user_secret_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if both of the following conditions are met: + + - The DB cluster doesn't manage the master user password in Amazon Web + Services Secrets Manager. + + If the DB cluster already manages the master user password in Amazon + Web Services Secrets Manager, you can't change the KMS key that is + used to encrypt the secret. + + - You are turning on `ManageMasterUserPassword` to manage the master + user password in Amazon Web Services Secrets Manager. + + If you are turning on `ManageMasterUserPassword` and don't specify + `MasterUserSecretKmsKeyId`, then the `aws/secretsmanager` KMS key is + used to encrypt the secret. If the secret is in a different Amazon Web + Services account, then you can't use the `aws/secretsmanager` KMS key + to encrypt the secret, and you must use a customer managed KMS key. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + """ + engine_mode: str | None + """ + The DB engine mode of the DB cluster, either `provisioned` or + `serverless`. + + Note: + The DB engine mode can be modified only from `serverless` to + `provisioned`. + + For more information, see + [CreateDBCluster](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html). + + Valid for Cluster Type: Aurora DB clusters only + """ + allow_engine_mode_change: bool | None + """ + Specifies whether engine mode changes from `serverless` to `provisioned` + are allowed. + + Valid for Cluster Type: Aurora Serverless v1 DB clusters only + + Constraints: + + - You must allow engine mode changes when specifying a different value + for the `EngineMode` parameter from the DB cluster's current engine + mode. + """ + aws_backup_recovery_point_arn: str | None + """ + The Amazon Resource Name (ARN) of the recovery point in Amazon Web + Services Backup. + """ + enable_limitless_database: bool | None + """ + Specifies whether to enable Aurora Limitless Database. You must enable + Aurora Limitless Database to create a DB shard group. + + Valid for: Aurora DB clusters only + + Note: + This setting is no longer used. Instead use the `ClusterScalabilityType` + setting when you create your Aurora Limitless Database DB cluster. + """ + ca_certificate_identifier: str | None + """ + The CA certificate identifier to use for the DB cluster's server + certificate. + + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide*. + + Valid for Cluster Type: Multi-AZ DB clusters + """ + master_user_authentication_type: str | None + """ + Specifies the authentication type for the master user. With IAM master + user authentication, you can change the master DB user to use IAM + database authentication. + + You can specify one of the following values: + + - `password` - Use standard database authentication with a password. + + - `iam-db-auth` - Use IAM database authentication for the master user. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL + engines. + """ + engine_lifecycle_support: str | None + """ + The lifecycle type for this DB cluster. + + You can use this setting to enroll your DB cluster into Amazon RDS + Extended Support or to opt out. With RDS Extended Support, you can run + the selected major engine version on your DB cluster past the end of + standard support for that engine version. For more information, see the + following sections: + + - Amazon Aurora - [Amazon RDS Extended Support with Amazon + Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) + in the *Amazon Aurora User Guide* + + - Amazon RDS - [Amazon RDS Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide* + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + """ + +@dataclass(kw_only=True) +class ModifyDBClusterOutput(_SerdeShape): + """Dataclass for ModifyDBClusterOutput structure.""" + + db_cluster: DBCluster | None = ... + """ + Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB + cluster. + + For an Amazon Aurora DB cluster, this data type is used as a response + element in the operations `CreateDBCluster`, `DeleteDBCluster`, + `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, + `PromoteReadReplicaDBCluster`, `RestoreDBClusterFromS3`, + `RestoreDBClusterFromSnapshot`, `RestoreDBClusterToPointInTime`, + `StartDBCluster`, and `StopDBCluster`. + + For a Multi-AZ DB cluster, this data type is used as a response element + in the operations `CreateDBCluster`, `DeleteDBCluster`, + `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, + `RebootDBCluster`, `RestoreDBClusterFromSnapshot`, and + `RestoreDBClusterToPointInTime`. + + For more information on Amazon Aurora DB clusters, see [What is Amazon + Aurora?](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) + in the *Amazon Aurora User Guide.* + + For more information on Multi-AZ DB clusters, see [Multi-AZ deployments + with two readable standby DB + instances](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) + in the *Amazon RDS User Guide.* + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyDBClusterParameterGroupInput(_SerdeShape): + """""" + + db_cluster_parameter_group_name: str | None = ... + """The name of the DB cluster parameter group to modify.""" + parameters: list[Parameter] | None = ... + """ + A list of parameters in the DB cluster parameter group to modify. + + Valid Values (for the application method): `immediate | pending-reboot` + + Note: + You can use the `immediate` value with dynamic parameters only. You can + use the `pending-reboot` value for both dynamic and static parameters. + + When the application method is `immediate`, changes to dynamic + parameters are applied immediately to the DB clusters associated with + the parameter group. When the application method is `pending-reboot`, + changes to dynamic and static parameters are applied after a reboot + without failover to the DB clusters associated with the parameter group. + """ + +class ModifyDBClusterParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBClusterParameterGroupInput`.""" + + db_cluster_parameter_group_name: Required[str] + """The name of the DB cluster parameter group to modify.""" + parameters: Required[Sequence[Parameter | ParameterDict]] + """ + A list of parameters in the DB cluster parameter group to modify. + + Valid Values (for the application method): `immediate | pending-reboot` + + Note: + You can use the `immediate` value with dynamic parameters only. You can + use the `pending-reboot` value for both dynamic and static parameters. + + When the application method is `immediate`, changes to dynamic + parameters are applied immediately to the DB clusters associated with + the parameter group. When the application method is `pending-reboot`, + changes to dynamic and static parameters are applied after a reboot + without failover to the DB clusters associated with the parameter group. + """ + +@dataclass(kw_only=True) +class ModifyDBClusterParameterGroupOutput(_SerdeShape): + """""" + + db_cluster_parameter_group_name: str | None = ... + """ + The name of the DB cluster parameter group. + + Constraints: + + - Must be 1 to 255 letters or numbers. + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Note: + This value is stored as a lowercase string. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyDBClusterSnapshotAttributeInput(_SerdeShape): + """""" + + db_cluster_snapshot_identifier: str | None = ... + """The identifier for the DB cluster snapshot to modify the attributes for.""" + attribute_name: str | None = ... + """ + The name of the DB cluster snapshot attribute to modify. + + To manage authorization for other Amazon Web Services accounts to copy + or restore a manual DB cluster snapshot, set this value to `restore`. + + Note: + To view the list of attributes available to modify, use the + DescribeDBClusterSnapshotAttributes API operation. + """ + values_to_add: list[str] | None = ... + """ + A list of DB cluster snapshot attributes to add to the attribute + specified by `AttributeName`. + + To authorize other Amazon Web Services accounts to copy or restore a + manual DB cluster snapshot, set this list to include one or more Amazon + Web Services account IDs, or `all` to make the manual DB cluster + snapshot restorable by any Amazon Web Services account. Do not add the + `all` value for any manual DB cluster snapshots that contain private + information that you don't want available to all Amazon Web Services + accounts. + """ + values_to_remove: list[str] | None = ... + """ + A list of DB cluster snapshot attributes to remove from the attribute + specified by `AttributeName`. + + To remove authorization for other Amazon Web Services accounts to copy + or restore a manual DB cluster snapshot, set this list to include one or + more Amazon Web Services account identifiers, or `all` to remove + authorization for any Amazon Web Services account to copy or restore the + DB cluster snapshot. If you specify `all`, an Amazon Web Services + account whose account ID is explicitly added to the `restore` attribute + can still copy or restore a manual DB cluster snapshot. + """ + +class ModifyDBClusterSnapshotAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBClusterSnapshotAttributeInput`.""" + + db_cluster_snapshot_identifier: Required[str] + """The identifier for the DB cluster snapshot to modify the attributes for.""" + attribute_name: Required[str] + """ + The name of the DB cluster snapshot attribute to modify. + + To manage authorization for other Amazon Web Services accounts to copy + or restore a manual DB cluster snapshot, set this value to `restore`. + + Note: + To view the list of attributes available to modify, use the + DescribeDBClusterSnapshotAttributes API operation. + """ + values_to_add: Sequence[str] | None + """ + A list of DB cluster snapshot attributes to add to the attribute + specified by `AttributeName`. + + To authorize other Amazon Web Services accounts to copy or restore a + manual DB cluster snapshot, set this list to include one or more Amazon + Web Services account IDs, or `all` to make the manual DB cluster + snapshot restorable by any Amazon Web Services account. Do not add the + `all` value for any manual DB cluster snapshots that contain private + information that you don't want available to all Amazon Web Services + accounts. + """ + values_to_remove: Sequence[str] | None + """ + A list of DB cluster snapshot attributes to remove from the attribute + specified by `AttributeName`. + + To remove authorization for other Amazon Web Services accounts to copy + or restore a manual DB cluster snapshot, set this list to include one or + more Amazon Web Services account identifiers, or `all` to remove + authorization for any Amazon Web Services account to copy or restore the + DB cluster snapshot. If you specify `all`, an Amazon Web Services + account whose account ID is explicitly added to the `restore` attribute + can still copy or restore a manual DB cluster snapshot. + """ + +@dataclass(kw_only=True) +class ModifyDBClusterSnapshotAttributeOutput(_SerdeShape): + """Dataclass for ModifyDBClusterSnapshotAttributeOutput structure.""" + + db_cluster_snapshot_attributes_result: ( + DBClusterSnapshotAttributesResult | None + ) = ... + """ + Contains the results of a successful call to the + `DescribeDBClusterSnapshotAttributes` API action. + + Manual DB cluster snapshot attributes are used to authorize other Amazon + Web Services accounts to copy or restore a manual DB cluster snapshot. + For more information, see the `ModifyDBClusterSnapshotAttribute` API + action. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ModifyDBInstanceInput(_SerdeShape): + """""" + + db_instance_identifier: str | None = ... + """ + The identifier of DB instance to modify. This value is stored as a + lowercase string. + + Constraints: + + - Must match the identifier of an existing DB instance. + """ + allocated_storage: int | None = ... + """ + The new amount of storage in gibibytes (GiB) to allocate for the DB + instance. + + For RDS for Db2, MariaDB, RDS for MySQL, RDS for Oracle, and RDS for + PostgreSQL, the value supplied must be at least 10% greater than the + current value. Values that are not at least 10% greater than the + existing value are rounded up so that they are 10% greater than the + current value. + + For the valid values for allocated storage for each engine, see + `CreateDBInstance`. + + Constraints: + + - When you increase the allocated storage for a DB instance that uses + Provisioned IOPS (`gp3`, `io1`, or `io2` storage type), you must also + specify the `Iops` parameter. You can use the current value for + `Iops`. + """ + db_instance_class: str | None = ... + """ + The new compute and memory capacity of the DB instance, for example + `db.m4.large`. Not all DB instance classes are available in all Amazon + Web Services Regions, or for all database engines. For the full list of + DB instance classes, and availability for your engine, see [DB Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide* or [Aurora DB instance + classes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) + in the *Amazon Aurora User Guide*. For RDS Custom, see [DB instance + class support for RDS Custom for + Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits.html#custom-reqs-limits.instances) + and [DB instance class support for RDS Custom for SQL + Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-reqs-limits-MS.html#custom-reqs-limits.instancesMS). + + If you modify the DB instance class, an outage occurs during the change. + The change is applied during the next maintenance window, unless you + specify `ApplyImmediately` in your request. + + Default: Uses existing setting + + Constraints: + + - If you are modifying the DB instance class and upgrading the engine + version at the same time, the currently running engine version must be + supported on the specified DB instance class. Otherwise, the operation + returns an error. In this case, first run the operation to upgrade the + engine version, and then run it again to modify the DB instance class. + """ + db_subnet_group_name: str | None = ... + """ + The new DB subnet group for the DB instance. You can use this parameter + to move your DB instance to a different VPC. If your DB instance isn't + in a VPC, you can also use this parameter to move your DB instance into + a VPC. For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC) + in the *Amazon RDS User Guide*. + + Changing the subnet group causes an outage during the change. The change + is applied during the next maintenance window, unless you enable + `ApplyImmediately`. + + This setting doesn't apply to RDS Custom DB instances. + + Constraints: + + - If supplied, must match existing DB subnet group. + + Example: `mydbsubnetgroup` + """ + db_security_groups: list[str] | None = ... + """ + A list of DB security groups to authorize on this DB instance. Changing + this setting doesn't result in an outage and the change is + asynchronously applied as soon as possible. + + This setting doesn't apply to RDS Custom DB instances. + + Constraints: + + - If supplied, must match existing DB security groups. + """ + vpc_security_group_ids: list[str] | None = ... + """ + A list of Amazon EC2 VPC security groups to associate with this DB + instance. This change is asynchronously applied as soon as possible. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora (The associated list of EC2 VPC security groups is + managed by the DB cluster. For more information, see + `ModifyDBCluster`.) + + - RDS Custom + + Constraints: + + - If supplied, must match existing VPC security group IDs. + """ + apply_immediately: bool | None = ... + """ + Specifies whether the modifications in this request and any pending + modifications are asynchronously applied as soon as possible, regardless + of the `PreferredMaintenanceWindow` setting for the DB instance. By + default, this parameter is disabled. + + If this parameter is disabled, changes to the DB instance are applied + during the next maintenance window. Some parameter changes can cause an + outage and are applied on the next call to RebootDBInstance, or the next + failure reboot. Review the table of parameters in [Modifying a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html) + in the *Amazon RDS User Guide* to see the impact of enabling or + disabling `ApplyImmediately` for each modified parameter and to + determine when the changes are applied. + """ + master_user_password: str | None = ... + """ + The new password for the master user. + + Changing this parameter doesn't result in an outage and the change is + asynchronously applied as soon as possible. Between the time of the + request and the completion of the request, the `MasterUserPassword` + element exists in the `PendingModifiedValues` element of the operation + response. + + Note: + Amazon RDS API operations never return the password, so this operation + provides a way to regain access to a primary instance user if the + password is lost. This includes restoring privileges that might have + been accidentally revoked. + + This setting doesn't apply to the following DB instances: + + - Amazon Aurora + + The password for the master user is managed by the DB cluster. For + more information, see `ModifyDBCluster`. + + - RDS Custom + + - RDS for Oracle CDBs in the multi-tenant configuration + + Specify the master password in `ModifyTenantDatabase` instead. + + Default: Uses existing setting + + Constraints: + + - Can't be specified if `ManageMasterUserPassword` is turned on. + + - Can include any printable ASCII character except \"/\", \"\"\", or + \"@\". For RDS for Oracle, can't include the \"&\" (ampersand) or the + \"'\" (single quotes) character. + + Length Constraints: + + - RDS for Db2 - Must contain from 8 to 255 characters. + + - RDS for MariaDB - Must contain from 8 to 41 characters. + + - RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. + + - RDS for MySQL - Must contain from 8 to 41 characters. + + - RDS for Oracle - Must contain from 8 to 30 characters. + + - RDS for PostgreSQL - Must contain from 8 to 128 characters. + """ + db_parameter_group_name: str | None = ... + """ + The name of the DB parameter group to apply to the DB instance. + + Changing this setting doesn't result in an outage. The parameter group + name itself is changed immediately, but the actual parameter changes are + not applied until you reboot the instance without failover. In this + case, the DB instance isn't rebooted automatically, and the parameter + changes aren't applied during the next maintenance window. However, if + you modify dynamic parameters in the newly associated DB parameter + group, these changes are applied immediately without a reboot. + + This setting doesn't apply to RDS Custom DB instances. + + Default: Uses existing setting + + Constraints: + + - Must be in the same DB parameter group family as the DB instance. + """ + backup_retention_period: int | None = ... + """ + The number of days to retain automated backups. Setting this parameter + to a positive number enables backups. Setting this parameter to 0 + disables automated backups. + + Note: + Enabling and disabling backups can result in a brief I/O suspension that + lasts from a few seconds to a few minutes, depending on the size and + class of your DB instance. + + These changes are applied during the next maintenance window unless the + `ApplyImmediately` parameter is enabled for this request. If you change + the parameter from one non-zero value to another non-zero value, the + change is asynchronously applied as soon as possible. + + This setting doesn't apply to Amazon Aurora DB instances. The retention + period for automated backups is managed by the DB cluster. For more + information, see `ModifyDBCluster`. + + Default: Uses existing setting + + Constraints: + + - Must be a value from 0 to 35. + + - Can't be set to 0 if the DB instance is a source to read replicas. + + - Can't be set to 0 for an RDS Custom for Oracle DB instance. + """ + preferred_backup_window: str | None = ... + """ + The daily time range during which automated backups are created if + automated backups are enabled, as determined by the + `BackupRetentionPeriod` parameter. Changing this parameter doesn't + result in an outage and the change is asynchronously applied as soon as + possible. The default is a 30-minute window selected at random from an + 8-hour block of time for each Amazon Web Services Region. For more + information, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora DB instances. The daily + time range for creating automated backups is managed by the DB cluster. + For more information, see `ModifyDBCluster`. + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + preferred_maintenance_window: str | None = ... + """ + The weekly time range during which system maintenance can occur, which + might result in an outage. Changing this parameter doesn't result in an + outage, except in the following situation, and the change is + asynchronously applied as soon as possible. If there are pending actions + that cause a reboot, and the maintenance window is changed to include + the current time, then changing this parameter causes a reboot of the DB + instance. If you change this window to the current time, there must be + at least 30 minutes between the current time and end of the window to + ensure pending changes are applied. + + For more information, see [Amazon RDS Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance) + in the *Amazon RDS User Guide.* + + Default: Uses existing setting + + Constraints: + + - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. + + - The day values must be `mon | tue | wed | thu | fri | sat | sun`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred backup window. + + - Must be at least 30 minutes. + """ + multi_az: bool | None = ... + """ + Specifies whether the DB instance is a Multi-AZ deployment. Changing + this parameter doesn't result in an outage. The change is applied + during the next maintenance window unless the `ApplyImmediately` + parameter is enabled for this request. + + This setting doesn't apply to RDS Custom DB instances. + """ + engine_version: str | None = ... + """ + The version number of the database engine to upgrade to. Changing this + parameter results in an outage and the change is applied during the next + maintenance window unless the `ApplyImmediately` parameter is enabled + for this request. + + For major version upgrades, if a nondefault DB parameter group is + currently in use, a new DB parameter group in the DB parameter group + family for the new engine version must be specified. The new DB + parameter group can be the default for that DB parameter group family. + + If you specify only a major version, Amazon RDS updates the DB instance + to the default minor version if the current minor version is lower. For + information about valid engine versions, see `CreateDBInstance`, or call + `DescribeDBEngineVersions`. + + If the instance that you're modifying is acting as a read replica, the + engine version that you specify must be the same or higher than the + version that the source DB instance or cluster is running. + + In RDS Custom for Oracle, this parameter is supported for read replicas + only if they are in the `PATCH_DB_FAILURE` lifecycle. + + Constraints: + + - If you are upgrading the engine version and modifying the DB instance + class at the same time, the currently running engine version must be + supported on the specified DB instance class. Otherwise, the operation + returns an error. In this case, first run the operation to upgrade the + engine version, and then run it again to modify the DB instance class. + """ + allow_major_version_upgrade: bool | None = ... + """ + Specifies whether major version upgrades are allowed. Changing this + parameter doesn't result in an outage and the change is asynchronously + applied as soon as possible. + + This setting doesn't apply to RDS Custom DB instances. + + Constraints: + + - Major version upgrades must be allowed when specifying a value for the + `EngineVersion` parameter that's a different major version than the + DB instance's current version. + """ + auto_minor_version_upgrade: bool | None = ... + """ + Specifies whether minor version upgrades are applied automatically to + the DB instance during the maintenance window. An outage occurs when all + the following conditions are met: + + - The automatic upgrade is enabled for the maintenance window. + + - A newer minor version is available. + + - RDS has enabled automatic patching for the engine version. + + If any of the preceding conditions isn't met, Amazon RDS applies the + change as soon as possible and doesn't cause an outage. + + For an RDS Custom DB instance, don't enable this setting. Otherwise, + the operation returns an error. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + license_model: str | None = ... + """ + The license model for the DB instance. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + + Valid Values: + + - RDS for Db2 - `bring-your-own-license` + + - RDS for MariaDB - `general-public-license` + + - RDS for Microsoft SQL Server - + `license-included | bring-your-own-media` + + - RDS for MySQL - `general-public-license` + + - RDS for Oracle - `bring-your-own-license | license-included` + + - RDS for PostgreSQL - `postgresql-license` + """ + iops: int | None = ... + """ + The new Provisioned IOPS (I/O operations per second) value for the RDS + instance. + + Changing this setting doesn't result in an outage and the change is + applied during the next maintenance window unless the `ApplyImmediately` + parameter is enabled for this request. If you are migrating from + Provisioned IOPS to standard storage, set this value to 0. The DB + instance will require a reboot for the change in storage type to take + effect. + + If you choose to migrate your DB instance from using standard storage to + Provisioned IOPS (io1), or from Provisioned IOPS to standard storage, + the process can take time. The duration of the migration depends on + several factors such as database load, storage size, storage type + (standard or Provisioned IOPS), amount of IOPS provisioned (if any), and + the number of prior scale storage operations. Typical migration times + are under 24 hours, but the process can take up to several days in some + cases. During the migration, the DB instance is available for use, but + might experience performance degradation. While the migration takes + place, nightly backups for the instance are suspended. No other Amazon + RDS operations can take place for the instance, including modifying the + instance, rebooting the instance, deleting the instance, creating a read + replica for the instance, and creating a DB snapshot of the instance. + + Constraints: + + - For RDS for MariaDB, RDS for MySQL, RDS for Oracle, and RDS for + PostgreSQL - The value supplied must be at least 10% greater than the + current value. Values that are not at least 10% greater than the + existing value are rounded up so that they are 10% greater than the + current value. + + - When you increase the Provisioned IOPS, you must also specify the + `AllocatedStorage` parameter. You can use the current value for + `AllocatedStorage`. + + Default: Uses existing setting + """ + storage_throughput: int | None = ... + """ + The storage throughput value for the DB instance. + + This setting applies only to the `gp3` storage type. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + """ + option_group_name: str | None = ... + """ + The option group to associate the DB instance with. + + Changing this parameter doesn't result in an outage, with one + exception. If the parameter change results in an option group that + enables OEM, it can cause a brief period, lasting less than a second, + during which new connections are rejected but existing connections + aren't interrupted. + + The change is applied during the next maintenance window unless the + `ApplyImmediately` parameter is enabled for this request. + + Permanent options, such as the TDE option for Oracle Advanced Security + TDE, can't be removed from an option group, and that option group + can't be removed from a DB instance after it is associated with a DB + instance. + + This setting doesn't apply to RDS Custom DB instances. + """ + new_db_instance_identifier: str | None = ... + """ + The new identifier for the DB instance when renaming a DB instance. When + you change the DB instance identifier, an instance reboot occurs + immediately if you enable `ApplyImmediately`, or will occur during the + next maintenance window if you disable `ApplyImmediately`. This value is + stored as a lowercase string. + + This setting doesn't apply to RDS Custom DB instances. + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens. + + - The first character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `mydbinstance` + """ + storage_type: str | None = ... + """ + The storage type to associate with the DB instance. + + If you specify `io1`, `io2`, or `gp3` you must also include a value for + the `Iops` parameter. + + If you choose to migrate your DB instance from using standard storage to + gp2 (General Purpose SSD), gp3, or Provisioned IOPS (io1), or from these + storage types to standard storage, the process can take time. The + duration of the migration depends on several factors such as database + load, storage size, storage type (standard or Provisioned IOPS), amount + of IOPS provisioned (if any), and the number of prior scale storage + operations. Typical migration times are under 24 hours, but the process + can take up to several days in some cases. During the migration, the DB + instance is available for use, but might experience performance + degradation. While the migration takes place, nightly backups for the + instance are suspended. No other Amazon RDS operations can take place + for the instance, including modifying the instance, rebooting the + instance, deleting the instance, creating a read replica for the + instance, and creating a DB snapshot of the instance. + + Valid Values: `gp2 | gp3 | io1 | io2 | standard` + + Default: `io1`, if the `Iops` parameter is specified. Otherwise, `gp2`. + """ + tde_credential_arn: str | None = ... + """ + The ARN from the key store with which to associate the instance for TDE + encryption. + + This setting doesn't apply to RDS Custom DB instances. + """ + tde_credential_password: str | None = ... + """ + The password for the given ARN from the key store in order to access the + device. + + This setting doesn't apply to RDS Custom DB instances. + """ + ca_certificate_identifier: str | None = ... + """ + The CA certificate identifier to use for the DB instance's server + certificate. + + This setting doesn't apply to RDS Custom DB instances. + + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a + connection to a DB + cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + in the *Amazon Aurora User Guide*. + """ + domain: str | None = ... + """ + The Active Directory directory ID to move the DB instance to. Specify + `none` to remove the instance from its current domain. You must create + the domain before this operation. Currently, you can create only Db2, + MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an + Active Directory Domain. + + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + """ + domain_fqdn: str | None = ... + """ + The fully qualified domain name (FQDN) of an Active Directory domain. + + Constraints: + + - Can't be longer than 64 characters. + + Example: `mymanagedADtest.mymanagedAD.mydomain` + """ + domain_ou: str | None = ... + """ + The Active Directory organizational unit for your DB instance to join. + + Constraints: + + - Must be in the distinguished name format. + + Example: + `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` + """ + domain_auth_secret_arn: str | None = ... + """ + The ARN for the Secrets Manager secret with the credentials for the user + joining the domain. + + Example: + `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` + """ + domain_dns_ips: list[str] | None = ... + """ + The IPv4 DNS IP addresses of your primary and secondary Active Directory + domain controllers. + + Constraints: + + - Two IP addresses must be provided. If there isn't a secondary domain + controller, use the IP address of the primary domain controller for + both entries in the list. + + Example: `123.124.125.126,234.235.236.237` + """ + disable_domain: bool | None = ... + """ + Specifies whether to remove the DB instance from the Active Directory + domain. + """ + copy_tags_to_snapshot: bool | None = ... + """ + Specifies whether to copy all tags from the DB instance to snapshots of + the DB instance. By default, tags aren't copied. + + This setting doesn't apply to Amazon Aurora DB instances. Copying tags + to snapshots is managed by the DB cluster. Setting this value for an + Aurora DB instance has no effect on the DB cluster setting. For more + information, see `ModifyDBCluster`. + """ + monitoring_interval: int | None = ... + """ + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB instance. To disable collection of + Enhanced Monitoring metrics, specify `0`. + + If `MonitoringRoleArn` is specified, set `MonitoringInterval` to a value + other than `0`. + + This setting doesn't apply to RDS Custom DB instances. + + Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + + Default: `0` + """ + db_port_number: int | None = ... + """ + The port number on which the database accepts connections. + + The value of the `DBPortNumber` parameter must not match any of the port + values specified for options in the option group for the DB instance. + + If you change the `DBPortNumber` value, your database restarts + regardless of the value of the `ApplyImmediately` parameter. + + This setting doesn't apply to RDS Custom DB instances. + + Valid Values: `1150-65535` + + Default: + + - Amazon Aurora - `3306` + + - RDS for Db2 - `50000` + + - RDS for MariaDB - `3306` + + - RDS for Microsoft SQL Server - `1433` + + - RDS for MySQL - `3306` + + - RDS for Oracle - `1521` + + - RDS for PostgreSQL - `5432` + + Constraints: + + - For RDS for Microsoft SQL Server, the value can't be `1234`, `1434`, + `3260`, `3343`, `3389`, `47001`, or `49152-49156`. + """ + publicly_accessible: bool | None = ... + """ + Specifies whether the DB instance is publicly accessible. + + When the DB instance is publicly accessible and you connect from outside + of the DB instance's virtual private cloud (VPC), its Domain Name + System (DNS) endpoint resolves to the public IP address. When you + connect from within the same VPC as the DB instance, the endpoint + resolves to the private IP address. Access to the DB instance is + ultimately controlled by the security group it uses. That public access + isn't permitted if the security group assigned to the DB instance + doesn't permit it. + + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. + + `PubliclyAccessible` only applies to DB instances in a VPC. The DB + instance must be part of a public subnet and `PubliclyAccessible` must + be enabled for it to be publicly accessible. + + Changes to the `PubliclyAccessible` parameter are applied immediately + regardless of the value of the `ApplyImmediately` parameter. + """ + monitoring_role_arn: str | None = ... + """ + The ARN for the IAM role that permits RDS to send enhanced monitoring + metrics to Amazon CloudWatch Logs. For example, + `arn:aws:iam:123456789012:role/emaccess`. For information on creating a + monitoring role, see [To create an IAM role for Amazon RDS Enhanced + Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole) + in the *Amazon RDS User Guide.* + + If `MonitoringInterval` is set to a value other than `0`, supply a + `MonitoringRoleArn` value. + + This setting doesn't apply to RDS Custom DB instances. + """ + domain_iam_role_name: str | None = ... + """ + The name of the IAM role to use when making API calls to the Directory + Service. + + This setting doesn't apply to RDS Custom DB instances. + """ + promotion_tier: int | None = ... + """ + The order of priority in which an Aurora Replica is promoted to the + primary instance after a failure of the existing primary instance. For + more information, see [Fault Tolerance for an Aurora DB + Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance) + in the *Amazon Aurora User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + + Default: `1` + + Valid Values: `0 - 15` + """ + enable_iam_database_authentication: bool | None = ... + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. + + This setting doesn't apply to Amazon Aurora. Mapping Amazon Web + Services IAM accounts to database accounts is managed by the DB cluster. + + For more information about IAM database authentication, see [IAM + Database Authentication for MySQL and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide.* + + This setting doesn't apply to RDS Custom DB instances. + """ + database_insights_mode: str | None = ... + """ + Specifies the mode of Database Insights to enable for the DB instance. + + Note: + Aurora DB instances inherit this value from the DB cluster, so you + can't change this value. + """ + enable_performance_insights: bool | None = ... + """ + Specifies whether to enable Performance Insights for the DB instance. + + For more information, see [Using Amazon Performance + Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + """ + performance_insights_kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. + + This setting doesn't apply to RDS Custom DB instances. + """ + performance_insights_retention_period: int | None = ... + """ + The number of days to retain Performance Insights data. + + This setting doesn't apply to RDS Custom DB instances. + + Valid Values: + + - `7` + + - *month* * 31, where *month* is a number of months from 1-23. + Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 + months * 31) + + - `731` + + Default: `7` days + + If you specify a retention period that isn't valid, such as `94`, + Amazon RDS returns an error. + """ + cloudwatch_logs_export_configuration: CloudwatchLogsExportConfiguration | None = ... + """ + The log types to be enabled for export to CloudWatch Logs for a specific + DB instance. + + A change to the `CloudwatchLogsExportConfiguration` parameter is always + applied to the DB instance immediately. Therefore, the + `ApplyImmediately` parameter has no effect. + + This setting doesn't apply to RDS Custom DB instances. + + The following values are valid for each DB engine: + + - Aurora MySQL - + `audit | error | general | slowquery | iam-db-auth-error` + + - Aurora PostgreSQL - `postgresql | iam-db-auth-error` + + - RDS for MySQL - `error | general | slowquery | iam-db-auth-error` + + - RDS for PostgreSQL - `postgresql | upgrade | iam-db-auth-error` + + For more information about exporting CloudWatch Logs for Amazon RDS, see + [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + + For more information about exporting CloudWatch Logs for Amazon Aurora, + see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon Aurora User Guide*. + """ + processor_features: list[ProcessorFeature] | None = ... + """ + The number of CPU cores and the number of threads per core for the DB + instance class of the DB instance. + + This setting doesn't apply to RDS Custom DB instances. + """ + use_default_processor_features: bool | None = ... + """ + Specifies whether the DB instance class of the DB instance uses its + default processor features. + + This setting doesn't apply to RDS Custom DB instances. + """ + deletion_protection: bool | None = ... + """ + Specifies whether the DB instance has deletion protection enabled. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. For more information, see + [Deleting a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + + This setting doesn't apply to Amazon Aurora DB instances. You can + enable or disable deletion protection for the DB cluster. For more + information, see `ModifyDBCluster`. DB instances in a DB cluster can be + deleted even when deletion protection is enabled for the DB cluster. + """ + max_allocated_storage: int | None = ... + """ + The upper limit in gibibytes (GiB) to which Amazon RDS can automatically + scale the storage of the DB instance. + + For more information about this setting, including limitations that + apply to it, see [Managing capacity automatically with Amazon RDS + storage + autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + """ + certificate_rotation_restart: bool | None = ... + """ + Specifies whether the DB instance is restarted when you rotate your + SSL/TLS certificate. + + By default, the DB instance is restarted when you rotate your SSL/TLS + certificate. The certificate is not updated until the DB instance is + restarted. + + Warning: + Set this parameter only if you are *not* using SSL/TLS to connect to the + DB instance. + + If you are using SSL/TLS to connect to the DB instance, follow the + appropriate instructions for your DB engine to rotate your SSL/TLS + certificate: + + - For more information about rotating your SSL/TLS certificate for RDS + DB engines, see [Rotating Your SSL/TLS + Certificate.](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html) + in the *Amazon RDS User Guide.* + + - For more information about rotating your SSL/TLS certificate for + Aurora DB engines, see [Rotating Your SSL/TLS + Certificate](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html) + in the *Amazon Aurora User Guide*. + + This setting doesn't apply to RDS Custom DB instances. + """ + replica_mode: str | None = ... + """ + The open mode of a replica database. + + This parameter is only supported for Db2 DB instances and Oracle DB + instances. + + Db2 + + : Standby DB replicas are included in Db2 Advanced Edition (AE), Db2 + Community Edition (CE), and Db2 Standard Edition (SE). The main use + case for standby replicas is cross-Region disaster recovery. Because + it doesn't accept user connections, a standby replica can't serve + a read-only workload. + + You can create a combination of standby and read-only DB replicas + for the same primary DB instance. For more information, see [Working + with replicas for Amazon RDS for + Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html) + in the *Amazon RDS User Guide*. + + To create standby DB replicas for RDS for Db2, set this parameter to + `mounted`. + + Oracle + + : Mounted DB replicas are included in Oracle Database Enterprise + Edition. The main use case for mounted replicas is cross-Region + disaster recovery. The primary database doesn't use Active Data + Guard to transmit information to the mounted replica. Because it + doesn't accept user connections, a mounted replica can't serve a + read-only workload. + + You can create a combination of mounted and read-only DB replicas + for the same primary DB instance. For more information, see [Working + with read replicas for Amazon RDS for + Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) + in the *Amazon RDS User Guide*. + + For RDS Custom, you must specify this parameter and set it to + `mounted`. The value won't be set by default. After replica + creation, you can manage the open mode manually. + """ + automation_mode: str | None = ... + """ + The automation mode of the RDS Custom DB instance. If `full`, the DB + instance automates monitoring and instance recovery. If `all paused`, + the instance pauses automation for the duration set by + `ResumeFullAutomationModeMinutes`. + """ + resume_full_automation_mode_minutes: int | None = ... + """ + The number of minutes to pause the automation. When the time period + ends, RDS Custom resumes full automation. + + Default: `60` + + Constraints: + + - Must be at least 60. + + - Must be no more than 1,440. + """ + enable_customer_owned_ip: bool | None = ... + """ + Specifies whether to enable a customer-owned IP address (CoIP) for an + RDS on Outposts DB instance. + + A *CoIP* provides local or external connectivity to resources in your + Outpost subnets through your on-premises network. For some use cases, a + CoIP can provide lower latency for connections to the DB instance from + outside of its virtual private cloud (VPC) on your local network. + + For more information about RDS on Outposts, see [Working with Amazon RDS + on Amazon Web Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + + For more information about CoIPs, see [Customer-owned IP + addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) + in the *Amazon Web Services Outposts User Guide*. + """ + network_type: str | None = ... + """ + The network type of the DB instance. + + The network type is determined by the `DBSubnetGroup` specified for the + DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon RDS User Guide.* + + Valid Values: `IPV4 | DUAL` + """ + aws_backup_recovery_point_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the recovery point in Amazon Web + Services Backup. + + This setting doesn't apply to RDS Custom DB instances. + """ + manage_master_user_password: bool | None = ... + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. + + If the DB instance doesn't manage the master user password with Amazon + Web Services Secrets Manager, you can turn on this management. In this + case, you can't specify `MasterUserPassword`. + + If the DB instance already manages the master user password with Amazon + Web Services Secrets Manager, and you specify that the master user + password is not managed with Amazon Web Services Secrets Manager, then + you must specify `MasterUserPassword`. In this case, Amazon RDS deletes + the secret and uses the new password for the master user specified by + `MasterUserPassword`. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. + + - Can't specify for RDS for Oracle CDB instances in the multi-tenant + configuration. Use `ModifyTenantDatabase` instead. + + - Can't specify the parameters `ManageMasterUserPassword` and + `MultiTenant` in the same operation. + """ + rotate_master_user_password: bool | None = ... + """ + Specifies whether to rotate the secret managed by Amazon Web Services + Secrets Manager for the master user password. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. The secret + value contains the updated password. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - You must apply the change immediately when rotating the master user + password. + """ + master_user_secret_kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if both of the following conditions are met: + + - The DB instance doesn't manage the master user password in Amazon Web + Services Secrets Manager. + + If the DB instance already manages the master user password in Amazon + Web Services Secrets Manager, you can't change the KMS key used to + encrypt the secret. + + - You are turning on `ManageMasterUserPassword` to manage the master + user password in Amazon Web Services Secrets Manager. + + If you are turning on `ManageMasterUserPassword` and don't specify + `MasterUserSecretKmsKeyId`, then the `aws/secretsmanager` KMS key is + used to encrypt the secret. If the secret is in a different Amazon Web + Services account, then you can't use the `aws/secretsmanager` KMS key + to encrypt the secret, and you must use a customer managed KMS key. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + multi_tenant: bool | None = ... + """ + Specifies whether the to convert your DB instance from the single-tenant + configuration to the multi-tenant configuration. This parameter is + supported only for RDS for Oracle CDB instances. + + During the conversion, RDS creates an initial tenant database and + associates the DB name, master user name, character set, and national + character set metadata with this database. The tags associated with the + instance also propagate to the initial tenant database. You can add more + tenant databases to your DB instance by using the `CreateTenantDatabase` + operation. + + Warning: + The conversion to the multi-tenant configuration is permanent and + irreversible, so you can't later convert back to the single-tenant + configuration. When you specify this parameter, you must also specify + `ApplyImmediately`. + """ + dedicated_log_volume: bool | None = ... + """ + Indicates whether the DB instance has a dedicated log volume (DLV) + enabled. + """ + engine: str | None = ... + """ + The target Oracle DB engine when you convert a non-CDB to a CDB. This + intermediate step is necessary to upgrade an Oracle Database 19c non-CDB + to an Oracle Database 21c CDB. + + Note the following requirements: + + - Make sure that you specify `oracle-ee-cdb` or `oracle-se2-cdb`. + + - Make sure that your DB engine runs Oracle Database 19c with an April + 2021 or later RU. + + Note the following limitations: + + - You can't convert a CDB to a non-CDB. + + - You can't convert a replica database. + + - You can't convert a non-CDB to a CDB and upgrade the engine version + in the same command. + + - You can't convert the existing custom parameter or option group when + it has options or parameters that are permanent or persistent. In this + situation, the DB instance reverts to the default option and parameter + group. To avoid reverting to the default, specify a new parameter + group with `--db-parameter-group-name` and a new option group with + `--option-group-name`. + """ + additional_storage_volumes: list[ModifyAdditionalStorageVolume] | None = ... + """ + A list of additional storage volumes to modify or delete for the DB + instance. You can create up to 3 additional storage volumes. Additional + storage volumes are supported for RDS for Oracle and RDS for SQL Server + DB instances only. + """ + db_capacity_reservation_identifier: str | None = ... + """ + The identifier or the name of the DB capacity reservation for the DB + instance to use. You can specify the identifier, which has the prefix + `dbcr-`, or the reservation name. After the modification completes, the + DB instance uses reserved capacity from this reservation. + + You can't change the DB capacity reservation of a DB instance on its + own. A request that changes the reservation must also change the DB + instance class, the Multi-AZ setting, the license model, or the engine. + Therefore, this request always changes the configuration of the DB + instance. + + If the DB instance already uses the reservation that you specify, this + requirement doesn't apply. You can then change another setting, such as + the Multi-AZ setting, and keep the reservation. + + For a DB instance that uses no reservation, change `DBInstanceClass` to + the DB instance class that the reservation reserves. A reservation + reserves capacity for one DB instance class, so that change moves the DB + instance onto the reserved capacity. That change also resizes the DB + instance, which interrupts it. + + If the DB instance already runs the DB instance class that the + reservation reserves, change `MultiAZ` or `LicenseModel` instead. Only + RDS for Oracle and RDS for Microsoft SQL Server accept a change of + license model, so `MultiAZ` is the remaining choice for every other + engine. + + Warning: + If you don't specify this parameter, Amazon RDS moves the DB instance + to unreserved capacity, and it releases the reserved capacity that the + DB instance holds. A request that changes the DB instance class, the + Multi-AZ setting, the license model, or the engine moves the DB instance + to different hardware, and Amazon RDS places the DB instance on + unreserved capacity. Therefore, to keep the DB instance on reserved + capacity, specify this parameter in every request that changes any of + those settings. + + The DB instance keeps its current reservation until Amazon RDS applies + the modification. Until then, the `DBCapacityReservationIdentifier` + field of the DB instance still reports that reservation, and + `PendingModifiedValues` reports no reservation. Amazon RDS releases the + reserved capacity when it moves the DB instance. + + Constraints: + + - If the request changes which DB capacity reservation the DB instance + uses, it must also set a new value for `DBInstanceClass`, `MultiAZ`, + `LicenseModel`, or `Engine`. The new value must differ from the + current value. The only engine change that `ModifyDBInstance` supports + is a conversion to the CDB architecture. Repeating the current value + doesn't satisfy this requirement. This requirement applies both when + the DB instance uses no reservation, and when it moves to a different + reservation. + + - The reservation must reserve capacity for the DB instance class that + the DB instance uses after the modification, and for the database + engine of the DB instance. Therefore, when the request changes + `DBInstanceClass`, the reservation reserves capacity for a DB instance + class that the DB instance doesn't use today. + + - The reservation must be in the `active` state, and it must not be past + its end date. - For an Amazon Aurora DB cluster, this data type is used as a response - element in the operations `CreateDBCluster`, `DeleteDBCluster`, - `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, - `PromoteReadReplicaDBCluster`, `RestoreDBClusterFromS3`, - `RestoreDBClusterFromSnapshot`, `RestoreDBClusterToPointInTime`, - `StartDBCluster`, and `StopDBCluster`. + - The reservation must have available capacity in each Availability Zone + that the DB instance uses after the modification. - For a Multi-AZ DB cluster, this data type is used as a response element - in the operations `CreateDBCluster`, `DeleteDBCluster`, - `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, - `RebootDBCluster`, `RestoreDBClusterFromSnapshot`, and - `RestoreDBClusterToPointInTime`. + - The reservation must cover the Availability Zone of the DB instance, + except when the request changes the DB instance from Multi-AZ to + Single-AZ. - For more information on Amazon Aurora DB clusters, see [What is Amazon - Aurora?](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) - in the *Amazon Aurora User Guide.* + - For a Multi-AZ DB instance, the reservation must cover two or more + Availability Zones. A Multi-AZ DB instance uses one unit of reserved + capacity in each of two Availability Zones. - For more information on Multi-AZ DB clusters, see [Multi-AZ deployments - with two readable standby DB - instances](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) - in the *Amazon RDS User Guide.* - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - If the DB instance is already Multi-AZ, the reservation must cover + both of its Availability Zones. If the request converts the DB + instance to Multi-AZ, the reservation must cover the current + Availability Zone of the DB instance, and Amazon RDS chooses the + second Availability Zone from the reservation. -@dataclass(kw_only=True) -class ModifyDBClusterParameterGroupInput(_SerdeShape): - """""" + - If the reservation reserves capacity for a specific license model, the + license model of the DB instance must match it. Amazon RDS checks the + license model only when the request specifies `LicenseModel`. - db_cluster_parameter_group_name: str | None = ... - """The name of the DB cluster parameter group to modify.""" - parameters: list[Parameter] | None = ... - """ - A list of parameters in the DB cluster parameter group to modify. + - You can't specify this parameter together with a change to + `DBSubnetGroupName`. - Valid Values (for the application method): `immediate | pending-reboot` + - You can't specify this parameter together with a change to both + `DBInstanceClass` and `LicenseModel`. Submit those changes as two + separate requests. - Note: - You can use the `immediate` value with dynamic parameters only. You can - use the `pending-reboot` value for both dynamic and static parameters. + - Can't be specified together with a change to `DBInstanceClass` when + the request also changes the DB instance from Multi-AZ to Single-AZ. - When the application method is `immediate`, changes to dynamic - parameters are applied immediately to the DB clusters associated with - the parameter group. When the application method is `pending-reboot`, - changes to dynamic and static parameters are applied after a reboot - without failover to the DB clusters associated with the parameter group. - """ + - When the request changes the DB instance from Multi-AZ to Single-AZ, + the reservation must cover either the primary or the secondary + Availability Zone of the DB instance. Amazon RDS keeps the DB instance + in its primary Availability Zone, and it removes the standby replica. + Therefore, the primary Availability Zone keeps its unit of reserved + capacity, and the secondary Availability Zone releases its unit. -@dataclass(kw_only=True) -class ModifyDBClusterParameterGroupOutput(_SerdeShape): - """""" + - Can't be specified together with `LicenseModel` while a modification + of the DB instance class or the Multi-AZ setting is pending. - db_cluster_parameter_group_name: str | None = ... - """ - The name of the DB cluster parameter group. + - Can't be specified together with `DBInstanceClass` or `MultiAZ` while + a modification of the license model is pending. - Constraints: + - When a modification is already pending, the reservation must reserve + capacity for the DB instance as it will be after both the pending + modification and the requested modification complete. - - Must be 1 to 255 letters or numbers. + - The DB subnet group must be in a VPC with default tenancy. - - First character must be a letter + - The DB subnet group must cover each Availability Zone that the DB + instance uses. - - Can't end with a hyphen or contain two consecutive hyphens + - Isn't supported for an RDS on Outposts DB instance. - Note: - This value is stored as a lowercase string. - """ - response_metadata: ResponseMetadata = ... + - If the reservation expires within one week, you must also enable + `ApplyImmediately`. Otherwise, choose a reservation with a later end + date. + + - Amazon RDS holds a unit of reserved capacity for the DB instance when + it accepts the request, even when the modification waits for the + maintenance window. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + tag_specifications: list[TagSpecification] | None = ... """ + Tags to assign to resources associated with the DB instance. -@dataclass(kw_only=True) -class ModifyDBClusterSnapshotAttributeInput(_SerdeShape): - """""" + Valid Values: - db_cluster_snapshot_identifier: str | None = ... - """The identifier for the DB cluster snapshot to modify the attributes for.""" - attribute_name: str | None = ... + - `auto-backup` - The DB instance's automated backup. """ - The name of the DB cluster snapshot attribute to modify. + master_user_authentication_type: str | None = ... + """ + Specifies the authentication type for the master user. With IAM master + user authentication, you can change the master DB user to use IAM + database authentication. - To manage authorization for other Amazon Web Services accounts to copy - or restore a manual DB cluster snapshot, set this value to `restore`. + You can specify one of the following values: - Note: - To view the list of attributes available to modify, use the - DescribeDBClusterSnapshotAttributes API operation. - """ - values_to_add: list[str] | None = ... - """ - A list of DB cluster snapshot attributes to add to the attribute - specified by `AttributeName`. + - `password` - Use standard database authentication with a password. - To authorize other Amazon Web Services accounts to copy or restore a - manual DB cluster snapshot, set this list to include one or more Amazon - Web Services account IDs, or `all` to make the manual DB cluster - snapshot restorable by any Amazon Web Services account. Do not add the - `all` value for any manual DB cluster snapshots that contain private - information that you don't want available to all Amazon Web Services - accounts. + - `iam-db-auth` - Use IAM database authentication for the master user. + + This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL + engines. """ - values_to_remove: list[str] | None = ... + engine_lifecycle_support: str | None = ... """ - A list of DB cluster snapshot attributes to remove from the attribute - specified by `AttributeName`. + The lifecycle type for this DB instance. - To remove authorization for other Amazon Web Services accounts to copy - or restore a manual DB cluster snapshot, set this list to include one or - more Amazon Web Services account identifiers, or `all` to remove - authorization for any Amazon Web Services account to copy or restore the - DB cluster snapshot. If you specify `all`, an Amazon Web Services - account whose account ID is explicitly added to the `restore` attribute - can still copy or restore a manual DB cluster snapshot. - """ + This setting applies only to RDS for MySQL and RDS for PostgreSQL. For + Amazon Aurora DB instances, the engine lifecycle support is managed by + the DB cluster. -@dataclass(kw_only=True) -class ModifyDBClusterSnapshotAttributeOutput(_SerdeShape): - """Dataclass for ModifyDBClusterSnapshotAttributeOutput structure.""" + You can use this setting to enroll your DB instance into Amazon RDS + Extended Support or to opt out. With RDS Extended Support, you can run + the selected major engine version on your DB instance past the end of + standard support for that engine version. For more information, see + [Amazon RDS Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide*. - db_cluster_snapshot_attributes_result: ( - DBClusterSnapshotAttributesResult | None - ) = ... - """ - Contains the results of a successful call to the - `DescribeDBClusterSnapshotAttributes` API action. + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` - Manual DB cluster snapshot attributes are used to authorize other Amazon - Web Services accounts to copy or restore a manual DB cluster snapshot. - For more information, see the `ModifyDBClusterSnapshotAttribute` API - action. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + This setting doesn't apply to RDS Custom DB instances. """ -@dataclass(kw_only=True) -class ModifyDBInstanceInput(_SerdeShape): - """""" +class ModifyDBInstanceInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBInstanceInput`.""" - db_instance_identifier: str | None = ... + db_instance_identifier: Required[str] """ The identifier of DB instance to modify. This value is stored as a lowercase string. @@ -7119,7 +12244,7 @@ class ModifyDBInstanceInput(_SerdeShape): - Must match the identifier of an existing DB instance. """ - allocated_storage: int | None = ... + allocated_storage: int | None """ The new amount of storage in gibibytes (GiB) to allocate for the DB instance. @@ -7140,7 +12265,7 @@ class ModifyDBInstanceInput(_SerdeShape): specify the `Iops` parameter. You can use the current value for `Iops`. """ - db_instance_class: str | None = ... + db_instance_class: str | None """ The new compute and memory capacity of the DB instance, for example `db.m4.large`. Not all DB instance classes are available in all Amazon @@ -7169,7 +12294,7 @@ class ModifyDBInstanceInput(_SerdeShape): returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class. """ - db_subnet_group_name: str | None = ... + db_subnet_group_name: str | None """ The new DB subnet group for the DB instance. You can use this parameter to move your DB instance to a different VPC. If your DB instance isn't @@ -7190,7 +12315,7 @@ class ModifyDBInstanceInput(_SerdeShape): Example: `mydbsubnetgroup` """ - db_security_groups: list[str] | None = ... + db_security_groups: Sequence[str] | None """ A list of DB security groups to authorize on this DB instance. Changing this setting doesn't result in an outage and the change is @@ -7202,7 +12327,7 @@ class ModifyDBInstanceInput(_SerdeShape): - If supplied, must match existing DB security groups. """ - vpc_security_group_ids: list[str] | None = ... + vpc_security_group_ids: Sequence[str] | None """ A list of Amazon EC2 VPC security groups to associate with this DB instance. This change is asynchronously applied as soon as possible. @@ -7219,7 +12344,7 @@ class ModifyDBInstanceInput(_SerdeShape): - If supplied, must match existing VPC security group IDs. """ - apply_immediately: bool | None = ... + apply_immediately: bool | None """ Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless @@ -7235,7 +12360,7 @@ class ModifyDBInstanceInput(_SerdeShape): disabling `ApplyImmediately` for each modified parameter and to determine when the changes are applied. """ - master_user_password: str | None = ... + master_user_password: str | None """ The new password for the master user. @@ -7288,7 +12413,7 @@ class ModifyDBInstanceInput(_SerdeShape): - RDS for PostgreSQL - Must contain from 8 to 128 characters. """ - db_parameter_group_name: str | None = ... + db_parameter_group_name: str | None """ The name of the DB parameter group to apply to the DB instance. @@ -7308,7 +12433,7 @@ class ModifyDBInstanceInput(_SerdeShape): - Must be in the same DB parameter group family as the DB instance. """ - backup_retention_period: int | None = ... + backup_retention_period: int | None """ The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 @@ -7338,7 +12463,7 @@ class ModifyDBInstanceInput(_SerdeShape): - Can't be set to 0 for an RDS Custom for Oracle DB instance. """ - preferred_backup_window: str | None = ... + preferred_backup_window: str | None """ The daily time range during which automated backups are created if automated backups are enabled, as determined by the @@ -7364,7 +12489,7 @@ class ModifyDBInstanceInput(_SerdeShape): - Must be at least 30 minutes. """ - preferred_maintenance_window: str | None = ... + preferred_maintenance_window: str | None """ The weekly time range during which system maintenance can occur, which might result in an outage. Changing this parameter doesn't result in an @@ -7394,7 +12519,7 @@ class ModifyDBInstanceInput(_SerdeShape): - Must be at least 30 minutes. """ - multi_az: bool | None = ... + multi_az: bool | None """ Specifies whether the DB instance is a Multi-AZ deployment. Changing this parameter doesn't result in an outage. The change is applied @@ -7403,7 +12528,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - engine_version: str | None = ... + engine_version: str | None """ The version number of the database engine to upgrade to. Changing this parameter results in an outage and the change is applied during the next @@ -7435,7 +12560,7 @@ class ModifyDBInstanceInput(_SerdeShape): returns an error. In this case, first run the operation to upgrade the engine version, and then run it again to modify the DB instance class. """ - allow_major_version_upgrade: bool | None = ... + allow_major_version_upgrade: bool | None """ Specifies whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously @@ -7449,7 +12574,7 @@ class ModifyDBInstanceInput(_SerdeShape): `EngineVersion` parameter that's a different major version than the DB instance's current version. """ - auto_minor_version_upgrade: bool | None = ... + auto_minor_version_upgrade: bool | None """ Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. An outage occurs when all @@ -7471,7 +12596,7 @@ class ModifyDBInstanceInput(_SerdeShape): [Automatically upgrading the minor engine version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). """ - license_model: str | None = ... + license_model: str | None """ The license model for the DB instance. @@ -7492,7 +12617,7 @@ class ModifyDBInstanceInput(_SerdeShape): - RDS for PostgreSQL - `postgresql-license` """ - iops: int | None = ... + iops: int | None """ The new Provisioned IOPS (I/O operations per second) value for the RDS instance. @@ -7532,7 +12657,7 @@ class ModifyDBInstanceInput(_SerdeShape): Default: Uses existing setting """ - storage_throughput: int | None = ... + storage_throughput: int | None """ The storage throughput value for the DB instance. @@ -7540,7 +12665,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. """ - option_group_name: str | None = ... + option_group_name: str | None """ The option group to associate the DB instance with. @@ -7560,7 +12685,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - new_db_instance_identifier: str | None = ... + new_db_instance_identifier: str | None """ The new identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot occurs @@ -7580,7 +12705,7 @@ class ModifyDBInstanceInput(_SerdeShape): Example: `mydbinstance` """ - storage_type: str | None = ... + storage_type: str | None """ The storage type to associate with the DB instance. @@ -7606,21 +12731,21 @@ class ModifyDBInstanceInput(_SerdeShape): Default: `io1`, if the `Iops` parameter is specified. Otherwise, `gp2`. """ - tde_credential_arn: str | None = ... + tde_credential_arn: str | None """ The ARN from the key store with which to associate the instance for TDE encryption. This setting doesn't apply to RDS Custom DB instances. """ - tde_credential_password: str | None = ... + tde_credential_password: str | None """ The password for the given ARN from the key store in order to access the device. This setting doesn't apply to RDS Custom DB instances. """ - ca_certificate_identifier: str | None = ... + ca_certificate_identifier: str | None """ The CA certificate identifier to use for the DB instance's server certificate. @@ -7634,7 +12759,7 @@ class ModifyDBInstanceInput(_SerdeShape): cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) in the *Amazon Aurora User Guide*. """ - domain: str | None = ... + domain: str | None """ The Active Directory directory ID to move the DB instance to. Specify `none` to remove the instance from its current domain. You must create @@ -7648,7 +12773,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - domain_fqdn: str | None = ... + domain_fqdn: str | None """ The fully qualified domain name (FQDN) of an Active Directory domain. @@ -7658,7 +12783,7 @@ class ModifyDBInstanceInput(_SerdeShape): Example: `mymanagedADtest.mymanagedAD.mydomain` """ - domain_ou: str | None = ... + domain_ou: str | None """ The Active Directory organizational unit for your DB instance to join. @@ -7669,7 +12794,7 @@ class ModifyDBInstanceInput(_SerdeShape): Example: `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` """ - domain_auth_secret_arn: str | None = ... + domain_auth_secret_arn: str | None """ The ARN for the Secrets Manager secret with the credentials for the user joining the domain. @@ -7677,7 +12802,7 @@ class ModifyDBInstanceInput(_SerdeShape): Example: `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` """ - domain_dns_ips: list[str] | None = ... + domain_dns_ips: Sequence[str] | None """ The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers. @@ -7690,12 +12815,12 @@ class ModifyDBInstanceInput(_SerdeShape): Example: `123.124.125.126,234.235.236.237` """ - disable_domain: bool | None = ... + disable_domain: bool | None """ Specifies whether to remove the DB instance from the Active Directory domain. """ - copy_tags_to_snapshot: bool | None = ... + copy_tags_to_snapshot: bool | None """ Specifies whether to copy all tags from the DB instance to snapshots of the DB instance. By default, tags aren't copied. @@ -7705,7 +12830,7 @@ class ModifyDBInstanceInput(_SerdeShape): Aurora DB instance has no effect on the DB cluster setting. For more information, see `ModifyDBCluster`. """ - monitoring_interval: int | None = ... + monitoring_interval: int | None """ The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of @@ -7720,7 +12845,7 @@ class ModifyDBInstanceInput(_SerdeShape): Default: `0` """ - db_port_number: int | None = ... + db_port_number: int | None """ The port number on which the database accepts connections. @@ -7755,7 +12880,7 @@ class ModifyDBInstanceInput(_SerdeShape): - For RDS for Microsoft SQL Server, the value can't be `1234`, `1434`, `3260`, `3343`, `3389`, `47001`, or `49152-49156`. """ - publicly_accessible: bool | None = ... + publicly_accessible: bool | None """ Specifies whether the DB instance is publicly accessible. @@ -7778,7 +12903,7 @@ class ModifyDBInstanceInput(_SerdeShape): Changes to the `PubliclyAccessible` parameter are applied immediately regardless of the value of the `ApplyImmediately` parameter. """ - monitoring_role_arn: str | None = ... + monitoring_role_arn: str | None """ The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, @@ -7792,14 +12917,14 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - domain_iam_role_name: str | None = ... + domain_iam_role_name: str | None """ The name of the IAM role to use when making API calls to the Directory Service. This setting doesn't apply to RDS Custom DB instances. """ - promotion_tier: int | None = ... + promotion_tier: int | None """ The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For @@ -7813,7 +12938,7 @@ class ModifyDBInstanceInput(_SerdeShape): Valid Values: `0 - 15` """ - enable_iam_database_authentication: bool | None = ... + enable_iam_database_authentication: bool | None """ Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, @@ -7829,7 +12954,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - database_insights_mode: str | None = ... + database_insights_mode: str | None """ Specifies the mode of Database Insights to enable for the DB instance. @@ -7837,7 +12962,7 @@ class ModifyDBInstanceInput(_SerdeShape): Aurora DB instances inherit this value from the DB cluster, so you can't change this value. """ - enable_performance_insights: bool | None = ... + enable_performance_insights: bool | None """ Specifies whether to enable Performance Insights for the DB instance. @@ -7847,7 +12972,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - performance_insights_kms_key_id: str | None = ... + performance_insights_kms_key_id: str | None """ The Amazon Web Services KMS key identifier for encryption of Performance Insights data. @@ -7862,7 +12987,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - performance_insights_retention_period: int | None = ... + performance_insights_retention_period: int | None """ The number of days to retain Performance Insights data. @@ -7883,7 +13008,9 @@ class ModifyDBInstanceInput(_SerdeShape): If you specify a retention period that isn't valid, such as `94`, Amazon RDS returns an error. """ - cloudwatch_logs_export_configuration: CloudwatchLogsExportConfiguration | None = ... + cloudwatch_logs_export_configuration: ( + CloudwatchLogsExportConfiguration | CloudwatchLogsExportConfigurationDict | None + ) """ The log types to be enabled for export to CloudWatch Logs for a specific DB instance. @@ -7915,21 +13042,21 @@ class ModifyDBInstanceInput(_SerdeShape): Logs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) in the *Amazon Aurora User Guide*. """ - processor_features: list[ProcessorFeature] | None = ... + processor_features: Sequence[ProcessorFeature | ProcessorFeatureDict] | None """ The number of CPU cores and the number of threads per core for the DB instance class of the DB instance. This setting doesn't apply to RDS Custom DB instances. """ - use_default_processor_features: bool | None = ... + use_default_processor_features: bool | None """ Specifies whether the DB instance class of the DB instance uses its default processor features. This setting doesn't apply to RDS Custom DB instances. """ - deletion_protection: bool | None = ... + deletion_protection: bool | None """ Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By @@ -7942,7 +13069,7 @@ class ModifyDBInstanceInput(_SerdeShape): information, see `ModifyDBCluster`. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster. """ - max_allocated_storage: int | None = ... + max_allocated_storage: int | None """ The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance. @@ -7955,7 +13082,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - certificate_rotation_restart: bool | None = ... + certificate_rotation_restart: bool | None """ Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate. @@ -7984,7 +13111,7 @@ class ModifyDBInstanceInput(_SerdeShape): This setting doesn't apply to RDS Custom DB instances. """ - replica_mode: str | None = ... + replica_mode: str | None """ The open mode of a replica database. @@ -7993,48 +13120,48 @@ class ModifyDBInstanceInput(_SerdeShape): Db2 - : Standby DB replicas are included in Db2 Advanced Edition (AE), Db2 - Community Edition (CE), and Db2 Standard Edition (SE). The main use - case for standby replicas is cross-Region disaster recovery. Because - it doesn't accept user connections, a standby replica can't serve a - read-only workload. + : Standby DB replicas are included in Db2 Advanced Edition (AE), Db2 + Community Edition (CE), and Db2 Standard Edition (SE). The main use + case for standby replicas is cross-Region disaster recovery. Because + it doesn't accept user connections, a standby replica can't serve + a read-only workload. - You can create a combination of standby and read-only DB replicas for - the same primary DB instance. For more information, see [Working with - replicas for Amazon RDS for - Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html) - in the *Amazon RDS User Guide*. + You can create a combination of standby and read-only DB replicas + for the same primary DB instance. For more information, see [Working + with replicas for Amazon RDS for + Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html) + in the *Amazon RDS User Guide*. - To create standby DB replicas for RDS for Db2, set this parameter to - `mounted`. + To create standby DB replicas for RDS for Db2, set this parameter to + `mounted`. Oracle - : Mounted DB replicas are included in Oracle Database Enterprise - Edition. The main use case for mounted replicas is cross-Region - disaster recovery. The primary database doesn't use Active Data Guard - to transmit information to the mounted replica. Because it doesn't - accept user connections, a mounted replica can't serve a read-only - workload. + : Mounted DB replicas are included in Oracle Database Enterprise + Edition. The main use case for mounted replicas is cross-Region + disaster recovery. The primary database doesn't use Active Data + Guard to transmit information to the mounted replica. Because it + doesn't accept user connections, a mounted replica can't serve a + read-only workload. - You can create a combination of mounted and read-only DB replicas for - the same primary DB instance. For more information, see [Working with - read replicas for Amazon RDS for - Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) - in the *Amazon RDS User Guide*. + You can create a combination of mounted and read-only DB replicas + for the same primary DB instance. For more information, see [Working + with read replicas for Amazon RDS for + Oracle](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) + in the *Amazon RDS User Guide*. - For RDS Custom, you must specify this parameter and set it to - `mounted`. The value won't be set by default. After replica creation, - you can manage the open mode manually. + For RDS Custom, you must specify this parameter and set it to + `mounted`. The value won't be set by default. After replica + creation, you can manage the open mode manually. """ - automation_mode: str | None = ... + automation_mode: str | None """ The automation mode of the RDS Custom DB instance. If `full`, the DB instance automates monitoring and instance recovery. If `all paused`, the instance pauses automation for the duration set by `ResumeFullAutomationModeMinutes`. """ - resume_full_automation_mode_minutes: int | None = ... + resume_full_automation_mode_minutes: int | None """ The number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation. @@ -8047,7 +13174,7 @@ class ModifyDBInstanceInput(_SerdeShape): - Must be no more than 1,440. """ - enable_customer_owned_ip: bool | None = ... + enable_customer_owned_ip: bool | None """ Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. @@ -8066,7 +13193,7 @@ class ModifyDBInstanceInput(_SerdeShape): addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) in the *Amazon Web Services Outposts User Guide*. """ - network_type: str | None = ... + network_type: str | None """ The network type of the DB instance. @@ -8080,14 +13207,14 @@ class ModifyDBInstanceInput(_SerdeShape): Valid Values: `IPV4 | DUAL` """ - aws_backup_recovery_point_arn: str | None = ... + aws_backup_recovery_point_arn: str | None """ The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup. This setting doesn't apply to RDS Custom DB instances. """ - manage_master_user_password: bool | None = ... + manage_master_user_password: bool | None """ Specifies whether to manage the master user password with Amazon Web Services Secrets Manager. @@ -8119,7 +13246,7 @@ class ModifyDBInstanceInput(_SerdeShape): - Can't specify the parameters `ManageMasterUserPassword` and `MultiTenant` in the same operation. """ - rotate_master_user_password: bool | None = ... + rotate_master_user_password: bool | None """ Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password. @@ -8138,7 +13265,7 @@ class ModifyDBInstanceInput(_SerdeShape): - You must apply the change immediately when rotating the master user password. """ - master_user_secret_kms_key_id: str | None = ... + master_user_secret_kms_key_id: str | None """ The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets @@ -8170,7 +13297,7 @@ class ModifyDBInstanceInput(_SerdeShape): Amazon Web Services account has a different default KMS key for each Amazon Web Services Region. """ - multi_tenant: bool | None = ... + multi_tenant: bool | None """ Specifies whether the to convert your DB instance from the single-tenant configuration to the multi-tenant configuration. This parameter is @@ -8189,12 +13316,12 @@ class ModifyDBInstanceInput(_SerdeShape): configuration. When you specify this parameter, you must also specify `ApplyImmediately`. """ - dedicated_log_volume: bool | None = ... + dedicated_log_volume: bool | None """ Indicates whether the DB instance has a dedicated log volume (DLV) enabled. """ - engine: str | None = ... + engine: str | None """ The target Oracle DB engine when you convert a non-CDB to a CDB. This intermediate step is necessary to upgrade an Oracle Database 19c non-CDB @@ -8223,14 +13350,17 @@ class ModifyDBInstanceInput(_SerdeShape): group with `--db-parameter-group-name` and a new option group with `--option-group-name`. """ - additional_storage_volumes: list[ModifyAdditionalStorageVolume] | None = ... + additional_storage_volumes: ( + Sequence[ModifyAdditionalStorageVolume | ModifyAdditionalStorageVolumeDict] + | None + ) """ A list of additional storage volumes to modify or delete for the DB instance. You can create up to 3 additional storage volumes. Additional storage volumes are supported for RDS for Oracle and RDS for SQL Server DB instances only. """ - db_capacity_reservation_identifier: str | None = ... + db_capacity_reservation_identifier: str | None """ The identifier or the name of the DB capacity reservation for the DB instance to use. You can specify the identifier, which has the prefix @@ -8358,7 +13488,7 @@ class ModifyDBInstanceInput(_SerdeShape): it accepts the request, even when the modification waits for the maintenance window. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ Tags to assign to resources associated with the DB instance. @@ -8366,7 +13496,7 @@ class ModifyDBInstanceInput(_SerdeShape): - `auto-backup` - The DB instance's automated backup. """ - master_user_authentication_type: str | None = ... + master_user_authentication_type: str | None """ Specifies the authentication type for the master user. With IAM master user authentication, you can change the master DB user to use IAM @@ -8381,7 +13511,7 @@ class ModifyDBInstanceInput(_SerdeShape): This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines. """ - engine_lifecycle_support: str | None = ... + engine_lifecycle_support: str | None """ The lifecycle type for this DB instance. @@ -8468,6 +13598,47 @@ class ModifyDBParameterGroupInput(_SerdeShape): in the *Amazon RDS User Guide*. """ +class ModifyDBParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBParameterGroupInput`.""" + + db_parameter_group_name: Required[str] + """ + The name of the DB parameter group. + + Constraints: + + - If supplied, must match the name of an existing `DBParameterGroup`. + """ + parameters: Required[Sequence[Parameter | ParameterDict]] + """ + An array of parameter names, values, and the application methods for the + parameter update. At least one parameter name, value, and application + method must be supplied; later arguments are optional. A maximum of 20 + parameters can be modified in a single request. + + Valid Values (for the application method): `immediate | pending-reboot` + + You can use the `immediate` value with dynamic parameters only. You can + use the `pending-reboot` value for both dynamic and static parameters. + + When the application method is `immediate`, changes to dynamic + parameters are applied immediately to the DB instances associated with + the parameter group. + + When the application method is `pending-reboot`, changes to dynamic and + static parameters are applied after a reboot without failover to the DB + instances associated with the parameter group. + + Note: + You can't use `pending-reboot` with dynamic parameters on RDS for SQL + Server DB instances. Use `immediate`. + + For more information on modifying DB parameters, see [Working with DB + parameter + groups](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html) + in the *Amazon RDS User Guide*. + """ + @dataclass(kw_only=True) class ModifyDBParameterGroupOutput(_SerdeShape): """ @@ -8507,6 +13678,27 @@ class ModifyDBProxyEndpointInput(_SerdeShape): a different set of security group IDs than for the original proxy. """ +class ModifyDBProxyEndpointInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBProxyEndpointInput`.""" + + db_proxy_endpoint_name: Required[str] + """ + The name of the DB proxy sociated with the DB proxy endpoint that you + want to modify. + """ + new_db_proxy_endpoint_name: str | None + """ + The new identifier for the `DBProxyEndpoint`. An identifier must begin + with a letter and must contain only ASCII letters, digits, and hyphens; + it can't end with a hyphen or contain two consecutive hyphens. + """ + vpc_security_group_ids: Sequence[str] | None + """ + The VPC security group IDs for the DB proxy endpoint. When the DB proxy + endpoint uses a different VPC than the original proxy, you also specify + a different set of security group IDs than for the original proxy. + """ + @dataclass(kw_only=True) class ModifyDBProxyEndpointOutput(_SerdeShape): """Dataclass for ModifyDBProxyEndpointOutput structure.""" @@ -8576,6 +13768,57 @@ class ModifyDBProxyInput(_SerdeShape): security_groups: list[str] | None = ... """The new list of security groups for the `DBProxy`.""" +class ModifyDBProxyInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBProxyInput`.""" + + db_proxy_name: Required[str] + """The identifier for the `DBProxy` to modify.""" + new_db_proxy_name: str | None + """ + The new identifier for the `DBProxy`. An identifier must begin with a + letter and must contain only ASCII letters, digits, and hyphens; it + can't end with a hyphen or contain two consecutive hyphens. + """ + default_auth_scheme: str | None + """ + The default authentication scheme that the proxy uses for client + connections to the proxy and connections from the proxy to the + underlying database. Valid values are `NONE` and `IAM_AUTH`. When set to + `IAM_AUTH`, the proxy uses end-to-end IAM authentication to connect to + the database. + """ + auth: Sequence[UserAuthConfig | UserAuthConfigDict] | None + """The new authentication settings for the `DBProxy`.""" + require_tls: bool | None + """ + Whether Transport Layer Security (TLS) encryption is required for + connections to the proxy. By enabling this setting, you can enforce + encrypted TLS connections to the proxy, even if the associated database + doesn't use TLS. + """ + idle_client_timeout: int | None + """ + The number of seconds that a connection to the proxy can be inactive + before the proxy disconnects it. You can set this value higher or lower + than the connection timeout limit for the associated database. + """ + debug_logging: bool | None + """ + Specifies whether the proxy logs detailed connection and query + information. When you enable `DebugLogging`, the proxy captures + connection details and connection pool behavior from your queries. Debug + logging increases CloudWatch costs and can impact proxy performance. + Enable this option only when you need to troubleshoot connection or + performance issues. + """ + role_arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM role that the proxy uses to + access secrets in Amazon Web Services Secrets Manager. + """ + security_groups: Sequence[str] | None + """The new list of security groups for the `DBProxy`.""" + @dataclass(kw_only=True) class ModifyDBProxyOutput(_SerdeShape): """Dataclass for ModifyDBProxyOutput structure.""" @@ -8612,6 +13855,29 @@ class ModifyDBProxyTargetGroupInput(_SerdeShape): You can't rename the `default` target group. """ +class ModifyDBProxyTargetGroupInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBProxyTargetGroupInput`.""" + + target_group_name: Required[str] + """The name of the target group to modify.""" + db_proxy_name: Required[str] + """The name of the proxy.""" + connection_pool_config: ( + ConnectionPoolConfiguration | ConnectionPoolConfigurationDict | None + ) + """ + The settings that determine the size and behavior of the connection pool + for the target group. + """ + new_name: str | None + """ + The new name for the modified `DBProxyTarget`. An identifier must begin + with a letter and must contain only ASCII letters, digits, and hyphens; + it can't end with a hyphen or contain two consecutive hyphens. + + You can't rename the `default` target group. + """ + @dataclass(kw_only=True) class ModifyDBProxyTargetGroupOutput(_SerdeShape): """Dataclass for ModifyDBProxyTargetGroupOutput structure.""" @@ -8650,6 +13916,31 @@ class ModifyDBRecommendationInput(_SerdeShape): recommended actions at one time. """ +class ModifyDBRecommendationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBRecommendationInput`.""" + + recommendation_id: Required[str] + """The identifier of the recommendation to update.""" + locale: str | None + """The language of the modified recommendation.""" + status: str | None + """ + The recommendation status to update. + + Valid values: + + - active + + - dismissed + """ + recommended_action_updates: ( + Sequence[RecommendedActionUpdate | RecommendedActionUpdateDict] | None + ) + """ + The list of recommended action status to update. You can update multiple + recommended actions at one time. + """ + @dataclass(kw_only=True) class ModifyDBRecommendationOutput(_SerdeShape): """Dataclass for ModifyDBRecommendationOutput structure.""" @@ -8698,6 +13989,36 @@ class ModifyDBShardGroupInput(_SerdeShape): different AZs. """ +class ModifyDBShardGroupInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBShardGroupInput`.""" + + db_shard_group_identifier: Required[str] + """The name of the DB shard group to modify.""" + max_acu: float | None + """ + The maximum capacity of the DB shard group in Aurora capacity units + (ACUs). + """ + min_acu: float | None + """ + The minimum capacity of the DB shard group in Aurora capacity units + (ACUs). + """ + compute_redundancy: int | None + """ + Specifies whether to create standby DB shard groups for the DB shard + group. Valid values are the following: + + - 0 - Creates a DB shard group without a standby DB shard group. This is + the default value. + + - 1 - Creates a DB shard group with a standby DB shard group in a + different Availability Zone (AZ). + + - 2 - Creates a DB shard group with two standby DB shard groups in two + different AZs. + """ + @dataclass(kw_only=True) class ModifyDBShardGroupOutput(_SerdeShape): """Contains the details for an Amazon RDS DB shard group.""" @@ -8821,6 +14142,48 @@ class ModifyDBSnapshotAttributeInput(_SerdeShape): or restore the manual DB snapshot. """ +class ModifyDBSnapshotAttributeInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBSnapshotAttributeInput`.""" + + db_snapshot_identifier: Required[str] + """The identifier for the DB snapshot to modify the attributes for.""" + attribute_name: Required[str] + """ + The name of the DB snapshot attribute to modify. + + To manage authorization for other Amazon Web Services accounts to copy + or restore a manual DB snapshot, set this value to `restore`. + + Note: + To view the list of attributes available to modify, use the + DescribeDBSnapshotAttributes API operation. + """ + values_to_add: Sequence[str] | None + """ + A list of DB snapshot attributes to add to the attribute specified by + `AttributeName`. + + To authorize other Amazon Web Services accounts to copy or restore a + manual snapshot, set this list to include one or more Amazon Web + Services account IDs, or `all` to make the manual DB snapshot restorable + by any Amazon Web Services account. Do not add the `all` value for any + manual DB snapshots that contain private information that you don't + want available to all Amazon Web Services accounts. + """ + values_to_remove: Sequence[str] | None + """ + A list of DB snapshot attributes to remove from the attribute specified + by `AttributeName`. + + To remove authorization for other Amazon Web Services accounts to copy + or restore a manual snapshot, set this list to include one or more + Amazon Web Services account identifiers, or `all` to remove + authorization for any Amazon Web Services account to copy or restore the + DB snapshot. If you specify `all`, an Amazon Web Services account whose + account ID is explicitly added to the `restore` attribute can still copy + or restore the manual DB snapshot. + """ + @dataclass(kw_only=True) class ModifyDBSnapshotAttributeOutput(_SerdeShape): """Dataclass for ModifyDBSnapshotAttributeOutput structure.""" @@ -8912,6 +14275,75 @@ class ModifyDBSnapshotInput(_SerdeShape): in the *Amazon RDS User Guide.* """ +class ModifyDBSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBSnapshotInput`.""" + + db_snapshot_identifier: Required[str] + """The identifier of the DB snapshot to modify.""" + engine_version: str | None + """ + The engine version to upgrade the DB snapshot to. + + The following are the database engines and engine versions that are + available when you upgrade a DB snapshot. + + **MariaDB** + + For the list of engine versions that are available for upgrading a DB + snapshot, see [Upgrading a MariaDB DB snapshot engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/mariadb-upgrade-snapshot.html) + in the *Amazon RDS User Guide.* + + **MySQL** + + For the list of engine versions that are available for upgrading a DB + snapshot, see [Upgrading a MySQL DB snapshot engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/mysql-upgrade-snapshot.html) + in the *Amazon RDS User Guide.* + + **Oracle** + + - `21.0.0.0.ru-2025-04.rur-2025-04.r1` (supported for + 21.0.0.0.ru-2022-01.rur-2022-01.r1, + 21.0.0.0.ru-2022-04.rur-2022-04.r1, + 21.0.0.0.ru-2022-07.rur-2022-07.r1, + 21.0.0.0.ru-2022-10.rur-2022-10.r1, 21.0.0.0.ru-2023-01.rur-2023-01.r1 + and 21.0.0.0.ru-2023-01.rur-2023-01.r2 DB snapshots) + + - `19.0.0.0.ru-2025-04.rur-2025-04.r1` (supported for + 19.0.0.0.ru-2019-07.rur-2019-07.r1, 19.0.0.0.ru-2019-10.rur-2019-10.r1 + and 0.0.0.ru-2020-01.rur-2020-01.r1 DB snapshots) + + - `19.0.0.0.ru-2022-01.rur-2022-01.r1` (supported for 12.2.0.1 DB + snapshots) + + - `19.0.0.0.ru-2022-07.rur-2022-07.r1` (supported for 12.1.0.2 DB + snapshots) + + - `12.1.0.2.v8` (supported for 12.1.0.1 DB snapshots) + + - `11.2.0.4.v12` (supported for 11.2.0.2 DB snapshots) + + - `11.2.0.4.v11` (supported for 11.2.0.3 DB snapshots) + + **PostgreSQL** + + For the list of engine versions that are available for upgrading a DB + snapshot, see [Upgrading a PostgreSQL DB snapshot engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBSnapshot.PostgreSQL.html) + in the *Amazon RDS User Guide.* + """ + option_group_name: str | None + """ + The option group to identify with the upgraded DB snapshot. + + You can specify this parameter when you upgrade an Oracle DB snapshot. + The same option group considerations apply when upgrading a DB snapshot + as when upgrading a DB instance. For more information, see [Option group + considerations](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Oracle.html#USER_UpgradeDBInstance.Oracle.OGPG.OG) + in the *Amazon RDS User Guide.* + """ + @dataclass(kw_only=True) class ModifyDBSnapshotOutput(_SerdeShape): """Dataclass for ModifyDBSnapshotOutput structure.""" @@ -8950,6 +14382,24 @@ class ModifyDBSubnetGroupInput(_SerdeShape): subnet_ids: list[str] | None = ... """The EC2 subnet IDs for the DB subnet group.""" +class ModifyDBSubnetGroupInputDict(TypedDict, total=False): + """Dictionary form of `ModifyDBSubnetGroupInput`.""" + + db_subnet_group_name: Required[str] + """ + The name for the DB subnet group. This value is stored as a lowercase + string. You can't modify the default subnet group. + + Constraints: Must match the name of an existing DBSubnetGroup. Must not + be default. + + Example: `mydbsubnetgroup` + """ + db_subnet_group_description: str | None + """The description for the DB subnet group.""" + subnet_ids: Required[Sequence[str]] + """The EC2 subnet IDs for the DB subnet group.""" + @dataclass(kw_only=True) class ModifyDBSubnetGroupOutput(_SerdeShape): """Dataclass for ModifyDBSubnetGroupOutput structure.""" @@ -9003,6 +14453,39 @@ class ModifyEventSubscriptionInput(_SerdeShape): enabled: bool | None = ... """Specifies whether to activate the subscription.""" +class ModifyEventSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `ModifyEventSubscriptionInput`.""" + + subscription_name: Required[str] + """The name of the RDS event notification subscription.""" + sns_topic_arn: str | None + """ + The Amazon Resource Name (ARN) of the SNS topic created for event + notification. The ARN is created by Amazon SNS when you create a topic + and subscribe to it. + """ + source_type: str | None + """ + The type of source that is generating the events. For example, if you + want to be notified of events generated by a DB instance, you would set + this parameter to db-instance. For RDS Proxy events, specify `db-proxy`. + If this value isn't specified, all events are returned. + + Valid + Values:` db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment ` + """ + event_categories: Sequence[str] | None + """ + A list of event categories for a source type (`SourceType`) that you + want to subscribe to. You can see a list of the categories for a given + source type in + [Events](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html) + in the *Amazon RDS User Guide* or by using the `DescribeEventCategories` + operation. + """ + enabled: bool | None + """Specifies whether to activate the subscription.""" + @dataclass(kw_only=True) class ModifyEventSubscriptionOutput(_SerdeShape): """Dataclass for ModifyEventSubscriptionOutput structure.""" @@ -9083,6 +14566,68 @@ class ModifyGlobalClusterInput(_SerdeShape): upgrade. """ +class ModifyGlobalClusterInputDict(TypedDict, total=False): + """Dictionary form of `ModifyGlobalClusterInput`.""" + + global_cluster_identifier: Required[str] + """ + The cluster identifier for the global cluster to modify. This parameter + isn't case-sensitive. + + Constraints: + + - Must match the identifier of an existing global database cluster. + """ + new_global_cluster_identifier: str | None + """ + The new cluster identifier for the global database cluster. This value + is stored as a lowercase string. + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens. + + - The first character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `my-cluster2` + """ + deletion_protection: bool | None + """ + Specifies whether to enable deletion protection for the global database + cluster. The global database cluster can't be deleted when deletion + protection is enabled. + """ + engine_version: str | None + """ + The version number of the database engine to which you want to upgrade. + + To list all of the available engine versions for `aurora-mysql` (for + MySQL-based Aurora global databases), use the following command: + + `` aws rds describe-db-engine-versions --engine aurora-mysql --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]' `` + + To list all of the available engine versions for `aurora-postgresql` + (for PostgreSQL-based Aurora global databases), use the following + command: + + `` aws rds describe-db-engine-versions --engine aurora-postgresql --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]' `` + """ + allow_major_version_upgrade: bool | None + """ + Specifies whether to allow major version upgrades. + + Constraints: Must be enabled if you specify a value for the + `EngineVersion` parameter that's a different major version than the + global cluster's current version. + + If you upgrade the major version of a global database, the cluster and + DB instance parameter groups are set to the default parameter groups for + the new version. Apply any custom parameter groups after completing the + upgrade. + """ + @dataclass(kw_only=True) class ModifyGlobalClusterOutput(_SerdeShape): """Dataclass for ModifyGlobalClusterOutput structure.""" @@ -9116,6 +14661,24 @@ class ModifyIntegrationInput(_SerdeShape): description: str | None = ... """A new description for the integration.""" +class ModifyIntegrationInputDict(TypedDict, total=False): + """Dictionary form of `ModifyIntegrationInput`.""" + + integration_identifier: Required[str] + """The unique identifier of the integration to modify.""" + integration_name: str | None + """A new name for the integration.""" + data_filter: str | None + """ + A new data filter for the integration. For more information, see [Data + filtering for Aurora zero-ETL integrations with Amazon + Redshift](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Zero_ETL_Filtering.html) + or [Data filtering for Amazon RDS zero-ETL integrations with Amazon + Redshift](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/zero-etl.filtering.html). + """ + description: str | None + """A new description for the integration.""" + @dataclass(kw_only=True) class ModifyIntegrationOutput(_SerdeShape): """A zero-ETL integration with Amazon Redshift.""" @@ -9208,6 +14771,32 @@ class ModifyOptionGroupInput(_SerdeShape): maintenance window for each instance associated with the option group. """ +class ModifyOptionGroupInputDict(TypedDict, total=False): + """Dictionary form of `ModifyOptionGroupInput`.""" + + option_group_name: Required[str] + """ + The name of the option group to be modified. + + Permanent options, such as the TDE option for Oracle Advanced Security + TDE, can't be removed from an option group, and that option group + can't be removed from a DB instance once it is associated with a DB + instance + """ + options_to_include: Sequence[OptionConfiguration | OptionConfigurationDict] | None + """ + Options in this list are added to the option group or, if already + present, the specified configuration is used to update the existing + configuration. + """ + options_to_remove: Sequence[str] | None + """Options in this list are removed from the option group.""" + apply_immediately: bool | None + """ + Specifies whether to apply the change immediately or during the next + maintenance window for each instance associated with the option group. + """ + @dataclass(kw_only=True) class ModifyOptionGroupOutput(_SerdeShape): """Dataclass for ModifyOptionGroupOutput structure.""" @@ -9362,6 +14951,145 @@ class ModifyTenantDatabaseInput(_SerdeShape): Amazon Web Services Region. """ +class ModifyTenantDatabaseInputDict(TypedDict, total=False): + """Dictionary form of `ModifyTenantDatabaseInput`.""" + + db_instance_identifier: Required[str] + """ + The identifier of the DB instance that contains the tenant database that + you are modifying. This parameter isn't case-sensitive. + + Constraints: + + - Must match the identifier of an existing DB instance. + """ + tenant_db_name: Required[str] + """ + The user-supplied name of the tenant database that you want to modify. + This parameter isn't case-sensitive. + + Constraints: + + - Must match the identifier of an existing tenant database. + """ + master_user_password: str | None + """ + The new password for the master user of the specified tenant database in + your DB instance. + + Note: + Amazon RDS operations never return the password, so this action provides + a way to regain access to a tenant database user if the password is + lost. This includes restoring privileges that might have been + accidentally revoked. + + Constraints: + + - Can include any printable ASCII character except `/`, `"` (double + quote), `@`, `&` (ampersand), and `'` (single quote). + + Length constraints: + + - Must contain between 8 and 30 characters. + """ + new_tenant_db_name: str | None + """ + The new name of the tenant database when renaming a tenant database. + This parameter isn't case-sensitive. + + Constraints: + + - Can't be the string null or any other reserved word. + + - Can't be longer than 8 characters. + """ + manage_master_user_password: bool | None + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. + + If the tenant database doesn't manage the master user password with + Amazon Web Services Secrets Manager, you can turn on this management. In + this case, you can't specify `MasterUserPassword`. + + If the tenant database already manages the master user password with + Amazon Web Services Secrets Manager, and you specify that the master + user password is not managed with Amazon Web Services Secrets Manager, + then you must specify `MasterUserPassword`. In this case, Amazon RDS + deletes the secret and uses the new password for the master user + specified by `MasterUserPassword`. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. + """ + rotate_master_user_password: bool | None + """ + Specifies whether to rotate the secret managed by Amazon Web Services + Secrets Manager for the master user password. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. The secret + value contains the updated password. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - You must apply the change immediately when rotating the master user + password. + """ + master_user_secret_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if both of the following conditions are met: + + - The tenant database doesn't manage the master user password in Amazon + Web Services Secrets Manager. + + If the tenant database already manages the master user password in + Amazon Web Services Secrets Manager, you can't change the KMS key + used to encrypt the secret. + + - You're turning on `ManageMasterUserPassword` to manage the master + user password in Amazon Web Services Secrets Manager. + + If you're turning on `ManageMasterUserPassword` and don't specify + `MasterUserSecretKmsKeyId`, then the `aws/secretsmanager` KMS key is + used to encrypt the secret. If the secret is in a different Amazon Web + Services account, then you can't use the `aws/secretsmanager` KMS key + to encrypt the secret, and you must use a self-managed KMS key. + + The Amazon Web Services KMS key identifier is any of the following: + + - Key ARN + + - Key ID + + - Alias ARN + + - Alias name for the KMS key + + To use a KMS key in a different Amazon Web Services account, specify the + key ARN or alias ARN. + + A default KMS key exists for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + @dataclass(kw_only=True) class ModifyTenantDatabaseOutput(_SerdeShape): """Dataclass for ModifyTenantDatabaseOutput structure.""" diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_2.pyi b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_2.pyi index 52096d9af..132cd4941 100644 --- a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_2.pyi +++ b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/models_2.pyi @@ -1,14 +1,17 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum +from typing import Required, TypedDict from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin from ..models import ( AdditionalStorageVolume, + AdditionalStorageVolumeDict, AvailabilityZone, AvailableAdditionalStorageVolumesOption, AvailableProcessorFeature, @@ -16,6 +19,7 @@ from ..models import ( ContextAttribute, DBCluster, DBClusterAssociatedRole, + DBClusterAssociatedRoleDict, DBInstance, DBInstanceAutomatedBackup, DBProxyTarget, @@ -49,6 +53,22 @@ class OptionConfiguration(_SerdeShape): option_settings: list[OptionSetting] | None = ... """The option settings to include in an option group.""" +class OptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `OptionConfiguration`.""" + + option_name: Required[str] + """The configuration of options to include in a group.""" + port: int | None + """The optional port for the option.""" + option_version: str | None + """The version for the option.""" + db_security_group_memberships: Sequence[str] | None + """A list of DB security groups used for this option.""" + vpc_security_group_memberships: Sequence[str] | None + """A list of VPC security group names used for this option.""" + option_settings: Sequence[OptionSetting | OptionSettingDict] | None + """The option settings to include in an option group.""" + @dataclass(kw_only=True) class OptionGroup(_SerdeShape): """""" @@ -295,6 +315,28 @@ class OptionSetting(_SerdeShape): is_collection: bool | None = ... """Indicates whether the option setting is part of a collection.""" +class OptionSettingDict(TypedDict, total=False): + """Dictionary form of `OptionSetting`.""" + + name: str | None + """The name of the option that has settings that you can set.""" + value: str | None + """The current value of the option setting.""" + default_value: str | None + """The default value of the option setting.""" + description: str | None + """The description of the option setting.""" + apply_type: str | None + """The DB engine specific parameter type.""" + data_type: str | None + """The data type of the option setting.""" + allowed_values: str | None + """The allowed values of the option setting.""" + is_modifiable: bool | None + """Indicates whether the option setting can be modified from the default.""" + is_collection: bool | None + """Indicates whether the option setting is part of a collection.""" + @dataclass(kw_only=True) class OptionVersion(_SerdeShape): """ @@ -498,6 +540,36 @@ class Parameter(_SerdeShape): supported_engine_modes: list[str] | None = ... """The valid DB engine modes.""" +class ParameterDict(TypedDict, total=False): + """Dictionary form of `Parameter`.""" + + parameter_name: str | None + """The name of the parameter.""" + parameter_value: str | None + """The value of the parameter.""" + description: str | None + """Provides a description of the parameter.""" + source: str | None + """The source of the parameter value.""" + apply_type: str | None + """Specifies the engine specific parameters type.""" + data_type: str | None + """Specifies the valid data type for the parameter.""" + allowed_values: str | None + """Specifies the valid range of values for the parameter.""" + is_modifiable: bool | None + """ + Indicates whether (`true`) or not (`false`) the parameter can be + modified. Some parameters have security or operational implications that + prevent them from being changed. + """ + minimum_engine_version: str | None + """The earliest engine version to which the parameter can apply.""" + apply_method: str | None + """Indicates when to apply parameter updates.""" + supported_engine_modes: Sequence[str] | None + """The valid DB engine modes.""" + @dataclass(kw_only=True) class PendingCloudwatchLogsExports(_SerdeShape): """ @@ -870,6 +942,17 @@ class ProcessorFeature(_SerdeShape): value: str | None = ... """The value of a processor feature.""" +class ProcessorFeatureDict(TypedDict, total=False): + """Dictionary form of `ProcessorFeature`.""" + + name: str | None + """ + The name of the processor feature. Valid names are `coreCount` and + `threadsPerCore`. + """ + value: str | None + """The value of a processor feature.""" + @dataclass(kw_only=True) class PromoteReadReplicaDBClusterInput(_SerdeShape): """""" @@ -886,6 +969,21 @@ class PromoteReadReplicaDBClusterInput(_SerdeShape): Example: `my-cluster-replica1` """ +class PromoteReadReplicaDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `PromoteReadReplicaDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """ + The identifier of the DB cluster read replica to promote. This parameter + isn't case-sensitive. + + Constraints: + + - Must match the identifier of an existing DB cluster read replica. + + Example: `my-cluster-replica1` + """ + @dataclass(kw_only=True) class PromoteReadReplicaDBClusterOutput(_SerdeShape): """Dataclass for PromoteReadReplicaDBClusterOutput structure.""" @@ -984,6 +1082,64 @@ class PromoteReadReplicaInput(_SerdeShape): - `auto-backup` - The DB instance's automated backup. """ +class PromoteReadReplicaInputDict(TypedDict, total=False): + """Dictionary form of `PromoteReadReplicaInput`.""" + + db_instance_identifier: Required[str] + """ + The DB instance identifier. This value is stored as a lowercase string. + + Constraints: + + - Must match the identifier of an existing read replica DB instance. + + Example: `mydbinstance` + """ + backup_retention_period: int | None + """ + The number of days for which automated backups are retained. Setting + this parameter to a positive number enables backups. Setting this + parameter to 0 disables automated backups. + + Default: 1 + + Constraints: + + - Must be a value from 0 to 35. + + - Can't be set to 0 if the DB instance is a source to read replicas. + """ + preferred_backup_window: str | None + """ + The daily time range during which automated backups are created if + automated backups are enabled, using the `BackupRetentionPeriod` + parameter. + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region. To see the time + blocks available, see [Adjusting the Preferred Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + Tags to assign to resources associated with the DB instance. + + Valid Values: + + - `auto-backup` - The DB instance's automated backup. + """ + @dataclass(kw_only=True) class PromoteReadReplicaOutput(_SerdeShape): """Dataclass for PromoteReadReplicaOutput structure.""" @@ -1052,6 +1208,38 @@ class PurchaseReservedDBInstancesOfferingInput(_SerdeShape): in the *Amazon Aurora User Guide*. """ +class PurchaseReservedDBInstancesOfferingInputDict(TypedDict, total=False): + """Dictionary form of `PurchaseReservedDBInstancesOfferingInput`.""" + + reserved_db_instances_offering_id: Required[str] + """ + The ID of the Reserved DB instance offering to purchase. + + Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706 + """ + reserved_db_instance_id: str | None + """ + Customer-specified identifier to track this reservation. + + Example: myreservationID + """ + db_instance_count: int | None + """ + The number of instances to reserve. + + Default: `1` + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + @dataclass(kw_only=True) class PurchaseReservedDBInstancesOfferingOutput(_SerdeShape): """Dataclass for PurchaseReservedDBInstancesOfferingOutput structure.""" @@ -1098,6 +1286,16 @@ class RdsCustomClusterConfiguration(_SerdeShape): replica_mode: str | None = ... """Reserved for future use.""" +class RdsCustomClusterConfigurationDict(TypedDict, total=False): + """Dictionary form of `RdsCustomClusterConfiguration`.""" + + interconnect_subnet_id: str | None + """Reserved for future use.""" + transit_gateway_multicast_domain_id: str | None + """Reserved for future use.""" + replica_mode: str | None + """Reserved for future use.""" + @dataclass(kw_only=True) class RebootDBClusterInput(_SerdeShape): """Dataclass for RebootDBClusterInput structure.""" @@ -1112,6 +1310,19 @@ class RebootDBClusterInput(_SerdeShape): - Must match the identifier of an existing DBCluster. """ +class RebootDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `RebootDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """ + The DB cluster identifier. This parameter is stored as a lowercase + string. + + Constraints: + + - Must match the identifier of an existing DBCluster. + """ + @dataclass(kw_only=True) class RebootDBClusterOutput(_SerdeShape): """Dataclass for RebootDBClusterOutput structure.""" @@ -1172,6 +1383,26 @@ class RebootDBInstanceInput(_SerdeShape): configured for Multi-AZ. """ +class RebootDBInstanceInputDict(TypedDict, total=False): + """Dictionary form of `RebootDBInstanceInput`.""" + + db_instance_identifier: Required[str] + """ + The DB instance identifier. This parameter is stored as a lowercase + string. + + Constraints: + + - Must match the identifier of an existing DBInstance. + """ + force_failover: bool | None + """ + Specifies whether the reboot is conducted through a Multi-AZ failover. + + Constraint: You can't enable force failover if the instance isn't + configured for Multi-AZ. + """ + @dataclass(kw_only=True) class RebootDBInstanceOutput(_SerdeShape): """Dataclass for RebootDBInstanceOutput structure.""" @@ -1202,6 +1433,12 @@ class RebootDBShardGroupInput(_SerdeShape): db_shard_group_identifier: str | None = ... """The name of the DB shard group to reboot.""" +class RebootDBShardGroupInputDict(TypedDict, total=False): + """Dictionary form of `RebootDBShardGroupInput`.""" + + db_shard_group_identifier: Required[str] + """The name of the DB shard group to reboot.""" + @dataclass(kw_only=True) class RebootDBShardGroupOutput(_SerdeShape): """Contains the details for an Amazon RDS DB shard group.""" @@ -1372,6 +1609,20 @@ class RecommendedActionUpdate(_SerdeShape): - `scheduled` """ +class RecommendedActionUpdateDict(TypedDict, total=False): + """Dictionary form of `RecommendedActionUpdate`.""" + + action_id: Required[str] + """A unique identifier of the updated recommendation action.""" + status: Required[str] + """ + The status of the updated recommendation action. + + - `applied` + + - `scheduled` + """ + @dataclass(kw_only=True) class RecurringCharge(_SerdeShape): """ @@ -1408,6 +1659,21 @@ class RegisterDBProxyTargetsInput(_SerdeShape): db_cluster_identifiers: list[str] | None = ... """One or more DB cluster identifiers.""" +class RegisterDBProxyTargetsInputDict(TypedDict, total=False): + """Dictionary form of `RegisterDBProxyTargetsInput`.""" + + db_proxy_name: Required[str] + """ + The identifier of the `DBProxy` that is associated with the + `DBProxyTargetGroup`. + """ + target_group_name: str | None + """The identifier of the `DBProxyTargetGroup`.""" + db_instance_identifiers: Sequence[str] | None + """One or more DB instance identifiers.""" + db_cluster_identifiers: Sequence[str] | None + """One or more DB cluster identifiers.""" + @dataclass(kw_only=True) class RegisterDBProxyTargetsOutput(_SerdeShape): """Dataclass for RegisterDBProxyTargetsOutput structure.""" @@ -1440,6 +1706,20 @@ class RemoveFromGlobalClusterInput(_SerdeShape): from the Aurora global database cluster. """ +class RemoveFromGlobalClusterInputDict(TypedDict, total=False): + """Dictionary form of `RemoveFromGlobalClusterInput`.""" + + global_cluster_identifier: Required[str] + """ + The cluster identifier to detach from the Aurora global database + cluster. + """ + db_cluster_identifier: Required[str] + """ + The Amazon Resource Name (ARN) identifying the cluster that was detached + from the Aurora global database cluster. + """ + @dataclass(kw_only=True) class RemoveFromGlobalClusterOutput(_SerdeShape): """Dataclass for RemoveFromGlobalClusterOutput structure.""" @@ -1473,6 +1753,24 @@ class RemoveRoleFromDBClusterInput(_SerdeShape): DBEngineVersion. """ +class RemoveRoleFromDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `RemoveRoleFromDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """The name of the DB cluster to disassociate the IAM role from.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role to disassociate from the + Aurora DB cluster, for example + `arn:aws:iam::123456789012:role/AuroraAccessRole`. + """ + feature_name: str | None + """ + The name of the feature for the DB cluster that the IAM role is to be + disassociated from. For information about supported feature names, see + DBEngineVersion. + """ + @dataclass(kw_only=True) class RemoveRoleFromDBClusterOutput(_SerdeShape): """Dataclass for RemoveRoleFromDBClusterOutput structure.""" @@ -1503,6 +1801,23 @@ class RemoveRoleFromDBInstanceInput(_SerdeShape): `DBEngineVersion`. """ +class RemoveRoleFromDBInstanceInputDict(TypedDict, total=False): + """Dictionary form of `RemoveRoleFromDBInstanceInput`.""" + + db_instance_identifier: Required[str] + """The name of the DB instance to disassociate the IAM role from.""" + role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the IAM role to disassociate from the + DB instance, for example, `arn:aws:iam::123456789012:role/AccessRole`. + """ + feature_name: Required[str] + """ + The name of the feature for the DB instance that the IAM role is to be + disassociated from. For information about supported feature names, see + `DBEngineVersion`. + """ + @dataclass(kw_only=True) class RemoveRoleFromDBInstanceOutput(_SerdeShape): """Dataclass for RemoveRoleFromDBInstanceOutput structure.""" @@ -1531,6 +1846,21 @@ class RemoveSourceIdentifierFromSubscriptionInput(_SerdeShape): group. """ +class RemoveSourceIdentifierFromSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `RemoveSourceIdentifierFromSubscriptionInput`.""" + + subscription_name: Required[str] + """ + The name of the RDS event notification subscription you want to remove a + source identifier from. + """ + source_identifier: Required[str] + """ + The source identifier to be removed from the subscription, such as the + **DB instance identifier** for a DB instance or the name of a security + group. + """ + @dataclass(kw_only=True) class RemoveSourceIdentifierFromSubscriptionOutput(_SerdeShape): """Dataclass for RemoveSourceIdentifierFromSubscriptionOutput structure.""" @@ -1563,6 +1893,20 @@ class RemoveTagsFromResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The tag key (name) of the tag to be removed.""" +class RemoveTagsFromResourceInputDict(TypedDict, total=False): + """Dictionary form of `RemoveTagsFromResourceInput`.""" + + resource_name: Required[str] + """ + The Amazon RDS resource that the tags are removed from. This value is an + Amazon Resource Name (ARN). For information about creating an ARN, see + [Constructing an ARN for Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing) + in the *Amazon RDS User Guide.* + """ + tag_keys: Required[Sequence[str]] + """The tag key (name) of the tag to be removed.""" + @dataclass(kw_only=True) class RemoveTagsFromResourceOutput(_SerdeShape): """Dataclass for RemoveTagsFromResourceOutput structure.""" @@ -1722,6 +2066,24 @@ class ResetDBClusterParameterGroupInput(_SerdeShape): `ResetAllParameters` parameter is enabled. """ +class ResetDBClusterParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `ResetDBClusterParameterGroupInput`.""" + + db_cluster_parameter_group_name: Required[str] + """The name of the DB cluster parameter group to reset.""" + reset_all_parameters: bool | None + """ + Specifies whether to reset all parameters in the DB cluster parameter + group to their default values. You can't use this parameter if there is + a list of parameter names specified for the `Parameters` parameter. + """ + parameters: Sequence[Parameter | ParameterDict] | None + """ + A list of parameter names in the DB cluster parameter group to reset to + the default values. You can't use this parameter if the + `ResetAllParameters` parameter is enabled. + """ + @dataclass(kw_only=True) class ResetDBClusterParameterGroupOutput(_SerdeShape): """""" @@ -1795,7 +2157,52 @@ class ResetDBParameterGroupInput(_SerdeShape): Valid Values (for Apply method): `pending-reboot` """ -@dataclass(kw_only=True) +class ResetDBParameterGroupInputDict(TypedDict, total=False): + """Dictionary form of `ResetDBParameterGroupInput`.""" + + db_parameter_group_name: Required[str] + """ + The name of the DB parameter group. + + Constraints: + + - Must match the name of an existing `DBParameterGroup`. + """ + reset_all_parameters: bool | None + """ + Specifies whether to reset all parameters in the DB parameter group to + default values. By default, all parameters in the DB parameter group are + reset to default values. + """ + parameters: Sequence[Parameter | ParameterDict] | None + """ + To reset the entire DB parameter group, specify the `DBParameterGroup` + name and `ResetAllParameters` parameters. To reset specific parameters, + provide a list of the following: `ParameterName` and `ApplyMethod`. A + maximum of 20 parameters can be modified in a single request. + + **MySQL** + + Valid Values (for Apply method): `immediate` | `pending-reboot` + + You can use the immediate value with dynamic parameters only. You can + use the `pending-reboot` value for both dynamic and static parameters, + and changes are applied when DB instance reboots. + + **MariaDB** + + Valid Values (for Apply method): `immediate` | `pending-reboot` + + You can use the immediate value with dynamic parameters only. You can + use the `pending-reboot` value for both dynamic and static parameters, + and changes are applied when DB instance reboots. + + **Oracle** + + Valid Values (for Apply method): `pending-reboot` + """ + +@dataclass(kw_only=True) class ResetDBParameterGroupOutput(_SerdeShape): """ Contains the result of a successful invocation of the @@ -2266,218 +2673,197 @@ class RestoreDBClusterFromS3Input(_SerdeShape): `Lambda`). """ -@dataclass(kw_only=True) -class RestoreDBClusterFromS3Output(_SerdeShape): - """Dataclass for RestoreDBClusterFromS3Output structure.""" - - db_cluster: DBCluster | None = ... - """ - Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB - cluster. - - For an Amazon Aurora DB cluster, this data type is used as a response - element in the operations `CreateDBCluster`, `DeleteDBCluster`, - `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, - `PromoteReadReplicaDBCluster`, `RestoreDBClusterFromS3`, - `RestoreDBClusterFromSnapshot`, `RestoreDBClusterToPointInTime`, - `StartDBCluster`, and `StopDBCluster`. - - For a Multi-AZ DB cluster, this data type is used as a response element - in the operations `CreateDBCluster`, `DeleteDBCluster`, - `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, - `RebootDBCluster`, `RestoreDBClusterFromSnapshot`, and - `RestoreDBClusterToPointInTime`. - - For more information on Amazon Aurora DB clusters, see [What is Amazon - Aurora?](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) - in the *Amazon Aurora User Guide.* +class RestoreDBClusterFromS3InputDict(TypedDict, total=False): + """Dictionary form of `RestoreDBClusterFromS3Input`.""" - For more information on Multi-AZ DB clusters, see [Multi-AZ deployments - with two readable standby DB - instances](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) - in the *Amazon RDS User Guide.* + availability_zones: Sequence[str] | None """ - response_metadata: ResponseMetadata = ... + A list of Availability Zones (AZs) where instances in the restored DB + cluster can be created. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + backup_retention_period: int | None """ + The number of days for which automated backups of the restored DB + cluster are retained. You must specify a minimum value of 1. -@dataclass(kw_only=True) -class RestoreDBClusterFromSnapshotInput(_SerdeShape): - """""" + Default: 1 - availability_zones: list[str] | None = ... - """ - Provides the list of Availability Zones (AZs) where instances in the - restored DB cluster can be created. + Constraints: - Valid for: Aurora DB clusters only + - Must be a value from 1 to 35 """ - db_cluster_identifier: str | None = ... + character_set_name: str | None """ - The name of the DB cluster to create from the DB snapshot or DB cluster - snapshot. This parameter isn't case-sensitive. + A value that indicates that the restored DB cluster should be associated + with the specified CharacterSet. + """ + database_name: str | None + """The database name for the restored DB cluster.""" + db_cluster_identifier: Required[str] + """ + The name of the DB cluster to create from the source data in the Amazon + S3 bucket. This parameter isn't case-sensitive. Constraints: - - Must contain from 1 to 63 letters, numbers, or hyphens - - - First character must be a letter + - Must contain from 1 to 63 letters, numbers, or hyphens. - - Can't end with a hyphen or contain two consecutive hyphens + - First character must be a letter. - Example: `my-snapshot-id` + - Can't end with a hyphen or contain two consecutive hyphens. - Valid for: Aurora DB clusters and Multi-AZ DB clusters + Example: `my-cluster1` """ - snapshot_identifier: str | None = ... + db_cluster_parameter_group_name: str | None """ - The identifier for the DB snapshot or DB cluster snapshot to restore - from. - - You can use either the name or the Amazon Resource Name (ARN) to specify - a DB cluster snapshot. However, you can use only the ARN to specify a DB - snapshot. + The name of the DB cluster parameter group to associate with the + restored DB cluster. If this argument is omitted, the default parameter + group for the engine version is used. Constraints: - - Must match the identifier of an existing Snapshot. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters + - If supplied, must match the name of an existing + DBClusterParameterGroup. """ - engine: str | None = ... + vpc_security_group_ids: Sequence[str] | None """ - The database engine to use for the new DB cluster. + A list of EC2 VPC security groups to associate with the restored DB + cluster. + """ + db_subnet_group_name: str | None + """ + A DB subnet group to associate with the restored DB cluster. - Default: The same as source + Constraints: If supplied, must match the name of an existing + DBSubnetGroup. - Constraint: Must be compatible with the engine of the source + Example: `mydbsubnetgroup` + """ + engine: Required[str] + """ + The name of the database engine to be used for this DB cluster. - Valid for: Aurora DB clusters and Multi-AZ DB clusters + Valid Values: `aurora-mysql` (for Aurora MySQL) """ - engine_version: str | None = ... + engine_version: str | None """ - The version of the database engine to use for the new DB cluster. If you - don't specify an engine version, the default version for the database - engine in the Amazon Web Services Region is used. + The version number of the database engine to use. - To list all of the available engine versions for Aurora MySQL, use the - following command: + To list all of the available engine versions for `aurora-mysql` (Aurora + MySQL), use the following command: `aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"` - To list all of the available engine versions for Aurora PostgreSQL, use - the following command: + **Aurora MySQL** - `aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions[].EngineVersion"` + Examples: `5.7.mysql_aurora.2.12.0`, `8.0.mysql_aurora.3.04.0` + """ + port: int | None + """ + The port number on which the instances in the restored DB cluster accept + connections. - To list all of the available engine versions for RDS for MySQL, use the - following command: + Default: `3306` + """ + master_username: Required[str] + """ + The name of the master user for the restored DB cluster. - `aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions[].EngineVersion"` + Constraints: - To list all of the available engine versions for RDS for PostgreSQL, use - the following command: + - Must be 1 to 16 letters or numbers. - `aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions[].EngineVersion"` + - First character must be a letter. - **Aurora MySQL** + - Can't be a reserved word for the chosen database engine. + """ + master_user_password: str | None + """ + The password for the master database user. This password can contain any + printable ASCII character except \"/\", \"\"\", or \"@\". - See [Database engine updates for Amazon Aurora - MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) - in the *Amazon Aurora User Guide*. + Constraints: - **Aurora PostgreSQL** + - Must contain from 8 to 41 characters. - See [Amazon Aurora PostgreSQL releases and engine - versions](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html) + - Can't be specified if `ManageMasterUserPassword` is turned on. + """ + option_group_name: str | None + """ + A value that indicates that the restored DB cluster should be associated + with the specified option group. + + Permanent options can't be removed from an option group. An option + group can't be removed from a DB cluster once it is associated with a + DB cluster. + """ + preferred_backup_window: str | None + """ + The daily time range during which automated backups are created if + automated backups are enabled using the `BackupRetentionPeriod` + parameter. + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region. To view the time + blocks available, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) in the *Amazon Aurora User Guide*. - **MySQL** + Constraints: - See [Amazon RDS for - MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) - in the *Amazon RDS User Guide.* + - Must be in the format `hh24:mi-hh24:mi`. - **PostgreSQL** + - Must be in Universal Coordinated Time (UTC). - See [Amazon RDS for PostgreSQL versions and - extensions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts) - in the *Amazon RDS User Guide.* + - Must not conflict with the preferred maintenance window. - Valid for: Aurora DB clusters and Multi-AZ DB clusters + - Must be at least 30 minutes. """ - port: int | None = ... + preferred_maintenance_window: str | None """ - The port number on which the new DB cluster accepts connections. + The weekly time range during which system maintenance can occur, in + Universal Coordinated Time (UTC). - Constraints: This value must be `1150-65535` + Format: `ddd:hh24:mi-ddd:hh24:mi` - Default: The same port as the original DB cluster. + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region, occurring on a random + day of the week. To see the time blocks available, see [Adjusting the + Preferred Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora) + in the *Amazon Aurora User Guide*. - Valid for: Aurora DB clusters and Multi-AZ DB clusters + Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. + + Constraints: Minimum 30-minute window. """ - db_subnet_group_name: str | None = ... + tags: Sequence[Tag | TagDict] | None """ - The name of the DB subnet group to use for the new DB cluster. - - Constraints: If supplied, must match the name of an existing DB subnet - group. - - Example: `mydbsubnetgroup` + A list of tags. - Valid for: Aurora DB clusters and Multi-AZ DB clusters + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. """ - database_name: str | None = ... + storage_encrypted: bool | None + """Specifies whether the restored DB cluster is encrypted.""" + kms_key_id: str | None """ - The database name for the restored DB cluster. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters - """ - option_group_name: str | None = ... - """ - The name of the option group to use for the restored DB cluster. - - DB clusters are associated with a default option group that can't be - modified. - """ - vpc_security_group_ids: list[str] | None = ... - """ - A list of VPC security groups that the new DB cluster will belong to. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters - """ - tags: list[Tag] | None = ... - """ - The tags to be assigned to the restored DB cluster. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters - """ - kms_key_id: str | None = ... - """ - The Amazon Web Services KMS key identifier to use when restoring an - encrypted DB cluster from a DB snapshot or DB cluster snapshot. + The Amazon Web Services KMS key identifier for an encrypted DB cluster. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. - When you don't specify a value for the `KmsKeyId` parameter, then the - following occurs: - - - If the DB snapshot or DB cluster snapshot in `SnapshotIdentifier` is - encrypted, then the restored DB cluster is encrypted using the KMS key - that was used to encrypt the DB snapshot or DB cluster snapshot. - - - If the DB snapshot or DB cluster snapshot in `SnapshotIdentifier` - isn't encrypted, then the restored DB cluster isn't encrypted. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters + If the StorageEncrypted parameter is enabled, and you do not specify a + value for the `KmsKeyId` parameter, then Amazon RDS will use your + default KMS key. There is a default KMS key for your Amazon Web Services + account. Your Amazon Web Services account has a different default KMS + key for each Amazon Web Services Region. """ - enable_iam_database_authentication: bool | None = ... + enable_iam_database_authentication: bool | None """ Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, @@ -2485,14 +2871,42 @@ class RestoreDBClusterFromSnapshotInput(_SerdeShape): For more information, see [IAM Database Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) - in the *Amazon Aurora User Guide* or [IAM database authentication for - MariaDB, MySQL, and - PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) - in the *Amazon RDS User Guide*. + in the *Amazon Aurora User Guide*. + """ + source_engine: Required[str] + """ + The identifier for the database engine that was backed up to create the + files stored in the Amazon S3 bucket. - Valid for: Aurora DB clusters and Multi-AZ DB clusters + Valid Values: `mysql` """ - backtrack_window: int | None = ... + source_engine_version: Required[str] + """ + The version of the database that the backup files were created from. + + MySQL versions 5.7 and 8.0 are supported. + + Example: `5.7.40`, `8.0.28` + """ + s3_bucket_name: Required[str] + """ + The name of the Amazon S3 bucket that contains the data used to create + the Amazon Aurora DB cluster. + """ + s3_prefix: str | None + """ + The prefix for all of the file names that contain the data used to + create the Amazon Aurora DB cluster. If you do not specify a + **SourceS3Prefix** value, then the Amazon Aurora DB cluster is created + by using all of the files in the Amazon S3 bucket. + """ + s3_ingestion_role_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon Web Services Identity and + Access Management (IAM) role that authorizes Amazon RDS to access the + Amazon S3 bucket on your behalf. + """ + backtrack_window: int | None """ The target backtrack window, in seconds. To disable backtracking, set this value to 0. @@ -2506,23 +2920,11 @@ class RestoreDBClusterFromSnapshotInput(_SerdeShape): - If specified, this value must be set to a number from 0 to 259,200 (72 hours). - - Valid for: Aurora DB clusters only """ - enable_cloudwatch_logs_exports: list[str] | None = ... + enable_cloudwatch_logs_exports: Sequence[str] | None """ - The list of logs that the restored DB cluster is to export to Amazon - CloudWatch Logs. The values in the list depend on the DB engine being - used. - - **RDS for MySQL** - - Possible values are `error`, `general`, `slowquery`, and - `iam-db-auth-error`. - - **RDS for PostgreSQL** - - Possible values are `postgresql`, `upgrade`, and `iam-db-auth-error`. + The list of logs that the restored DB cluster is to export to CloudWatch + Logs. The values in the list depend on the DB engine being used. **Aurora MySQL** @@ -2542,162 +2944,45 @@ class RestoreDBClusterFromSnapshotInput(_SerdeShape): see [Publishing Database Logs to Amazon CloudWatch Logs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) in the *Amazon Aurora User Guide*. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters - """ - engine_mode: str | None = ... - """ - The DB engine mode of the DB cluster, either `provisioned` or - `serverless`. - - For more information, see - [CreateDBCluster](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html). - - Valid for: Aurora DB clusters only - """ - scaling_configuration: ScalingConfiguration | None = ... - """ - For DB clusters in `serverless` DB engine mode, the scaling properties - of the DB cluster. - - Valid for: Aurora DB clusters only - """ - db_cluster_parameter_group_name: str | None = ... - """ - The name of the DB cluster parameter group to associate with this DB - cluster. If this argument is omitted, the default DB cluster parameter - group for the specified engine is used. - - Constraints: - - - If supplied, must match the name of an existing default DB cluster - parameter group. - - - Must be 1 to 255 letters, numbers, or hyphens. - - - First character must be a letter. - - - Can't end with a hyphen or contain two consecutive hyphens. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - deletion_protection: bool | None = ... + deletion_protection: bool | None """ Specifies whether to enable deletion protection for the DB cluster. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - copy_tags_to_snapshot: bool | None = ... + copy_tags_to_snapshot: bool | None """ Specifies whether to copy all tags from the restored DB cluster to snapshots of the restored DB cluster. The default is not to copy them. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - domain: str | None = ... + domain: str | None """ - The Active Directory directory ID to restore the DB cluster in. The - domain must be created prior to this operation. Currently, only MySQL, - Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created - in an Active Directory Domain. - - For more information, see [Kerberos - Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) - in the *Amazon RDS User Guide*. + Specify the Active Directory directory ID to restore the DB cluster in. + The domain must be created prior to this operation. - Valid for: Aurora DB clusters only + For Amazon Aurora DB clusters, Amazon RDS can use Kerberos + Authentication to authenticate users that connect to the DB cluster. For + more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html) + in the *Amazon Aurora User Guide*. """ - domain_iam_role_name: str | None = ... + domain_iam_role_name: str | None """ - The name of the IAM role to be used when making API calls to the + Specify the name of the IAM role to be used when making API calls to the Directory Service. - - Valid for: Aurora DB clusters only - """ - db_cluster_instance_class: str | None = ... - """ - The compute and memory capacity of the each DB instance in the Multi-AZ - DB cluster, for example db.m6gd.xlarge. Not all DB instance classes are - available in all Amazon Web Services Regions, or for all database - engines. - - For the full list of DB instance classes, and availability for your - engine, see [DB Instance - Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - in the *Amazon RDS User Guide.* - - Valid for: Multi-AZ DB clusters only """ - storage_type: str | None = ... + storage_type: str | None """ Specifies the storage type to be associated with the DB cluster. - When specified for a Multi-AZ DB cluster, a value for the `Iops` - parameter is required. - - Valid Values: `aurora`, `aurora-iopt1` (Aurora DB clusters); `io1` - (Multi-AZ DB clusters) - - Default: `aurora` (Aurora DB clusters); `io1` (Multi-AZ DB clusters) - - Valid for: Aurora DB clusters and Multi-AZ DB clusters - """ - iops: int | None = ... - """ - The amount of Provisioned IOPS (input/output operations per second) to - be initially allocated for each DB instance in the Multi-AZ DB cluster. - - For information about valid IOPS values, see [Amazon RDS Provisioned - IOPS - storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) - in the *Amazon RDS User Guide*. - - Constraints: Must be a multiple between .5 and 50 of the storage amount - for the DB instance. - - Valid for: Aurora DB clusters and Multi-AZ DB clusters - """ - publicly_accessible: bool | None = ... - """ - Specifies whether the DB cluster is publicly accessible. - - When the DB cluster is publicly accessible, its Domain Name System (DNS) - endpoint resolves to the private IP address from within the DB - cluster's virtual private cloud (VPC). It resolves to the public IP - address from outside of the DB cluster's VPC. Access to the DB cluster - is ultimately controlled by the security group it uses. That public - access is not permitted if the security group assigned to the DB cluster - doesn't permit it. - - When the DB cluster isn't publicly accessible, it is an internal DB - cluster with a DNS name that resolves to a private IP address. - - Default: The default behavior varies depending on whether - `DBSubnetGroupName` is specified. - - If `DBSubnetGroupName` isn't specified, and `PubliclyAccessible` isn't - specified, the following applies: - - - If the default VPC in the target Region doesn't have an internet - gateway attached to it, the DB cluster is private. - - - If the default VPC in the target Region has an internet gateway - attached to it, the DB cluster is public. - - If `DBSubnetGroupName` is specified, and `PubliclyAccessible` isn't - specified, the following applies: - - - If the subnets are part of a VPC that doesn't have an internet gateway - attached to it, the DB cluster is private. + Valid Values: `aurora`, `aurora-iopt1` - - If the subnets are part of a VPC that has an internet gateway attached - to it, the DB cluster is public. + Default: `aurora` - Valid for: Aurora DB clusters and Multi-AZ DB clusters + Valid for: Aurora DB clusters only """ - network_type: str | None = ... + network_type: str | None """ The network type of the DB cluster. @@ -2714,10 +2999,10 @@ class RestoreDBClusterFromSnapshotInput(_SerdeShape): For more information, see [Working with a DB instance in a VPC](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the *Amazon Aurora User Guide.* - - Valid for: Aurora DB clusters only """ - serverless_v2_scaling_configuration: ServerlessV2ScalingConfiguration | None = ... + serverless_v2_scaling_configuration: ( + ServerlessV2ScalingConfiguration | ServerlessV2ScalingConfigurationDict | None + ) """ Contains the scaling configuration of an Aurora Serverless v2 DB cluster. @@ -2726,102 +3011,48 @@ class RestoreDBClusterFromSnapshotInput(_SerdeShape): v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) in the *Amazon Aurora User Guide*. """ - rds_custom_cluster_configuration: RdsCustomClusterConfiguration | None = ... - """Reserved for future use.""" - monitoring_interval: int | None = ... + manage_master_user_password: bool | None """ - The interval, in seconds, between points when Enhanced Monitoring - metrics are collected for the DB cluster. To turn off collecting - Enhanced Monitoring metrics, specify `0`. - - If `MonitoringRoleArn` is specified, also set `MonitoringInterval` to a - value other than `0`. - - Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. - Default: `0` - """ - monitoring_role_arn: str | None = ... - """ - The Amazon Resource Name (ARN) for the IAM role that permits RDS to send - Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is - `arn:aws:iam:123456789012:role/emaccess`. - - If `MonitoringInterval` is set to a value other than `0`, supply a - `MonitoringRoleArn` value. - """ - enable_performance_insights: bool | None = ... - """Specifies whether to turn on Performance Insights for the DB cluster.""" - performance_insights_kms_key_id: str | None = ... - """ - The Amazon Web Services KMS key identifier for encryption of Performance - Insights data. - - The Amazon Web Services KMS key identifier is the key ARN, key ID, alias - ARN, or alias name for the KMS key. - - If you don't specify a value for `PerformanceInsightsKMSKeyId`, then - Amazon RDS uses your default KMS key. There is a default KMS key for - your Amazon Web Services account. Your Amazon Web Services account has a - different default KMS key for each Amazon Web Services Region. - """ - performance_insights_retention_period: int | None = ... - """ - The number of days to retain Performance Insights data. - - Valid Values: - - - `7` - - - *month* * 31, where *month* is a number of months from 1-23. - Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 - months * 31) - - - `731` - - Default: `7` days - - If you specify a retention period that isn't valid, such as `94`, - Amazon RDS issues an error. - """ - backup_retention_period: int | None = ... - """ - The number of days for which automated backups are retained. Specify a - minimum value of `1`. - - Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - - Default: Uses existing setting + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide* and [Password management with Amazon Web + Services Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) + in the *Amazon Aurora User Guide.* Constraints: - - Must be a value from 1 to 35. + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. """ - preferred_backup_window: str | None = ... + master_user_secret_kms_key_id: str | None """ - The daily time range during which automated backups are created if - automated backups are enabled, using the `BackupRetentionPeriod` - parameter. - - The default is a 30-minute window selected at random from an 8-hour - block of time for each Amazon Web Services Region. To view the time - blocks available, see [Backup - window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) - in the *Amazon Aurora User Guide*. - - Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - - Constraints: + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. - - Must be in the format `hh24:mi-hh24:mi`. + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB cluster. - - Must be in Universal Coordinated Time (UTC). + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. - - Must not conflict with the preferred maintenance window. + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. - - Must be at least 30 minutes. + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. """ - engine_lifecycle_support: str | None = ... + engine_lifecycle_support: str | None """ The lifecycle type for this DB cluster. @@ -2855,7 +3086,7 @@ class RestoreDBClusterFromSnapshotInput(_SerdeShape): Default: `open-source-rds-extended-support` """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ Tags to assign to resources associated with the DB cluster. @@ -2863,45 +3094,21 @@ class RestoreDBClusterFromSnapshotInput(_SerdeShape): - `cluster-auto-backup` - The DB cluster's automated backup. """ - enable_vpc_networking: bool | None = ... - """ - Specifies whether to enable VPC networking for the restored DB cluster. - Set this parameter to `false` to create a cluster without the VPC - network interface (ENI). - - This parameter must be used together with `EnableInternetAccessGateway`. - When both parameters are specified, IAM database authentication is - required. You must also specify `EnableIAMDatabaseAuthentication`. - - Valid for Cluster Type: Aurora PostgreSQL clusters - """ - enable_internet_access_gateway: bool | None = ... - """ - Specifies that the restored DB cluster should use internet-based - connectivity through an internet access gateway. This allows clients to - connect to the cluster over the internet without requiring a VPC. - - This parameter must be used together with `EnableVPCNetworking` set to - `false`. When both parameters are specified, IAM database authentication - is required. You must also specify `EnableIAMDatabaseAuthentication`. - - Valid for Cluster Type: Aurora PostgreSQL clusters - """ - associated_roles: list[DBClusterAssociatedRole] | None = ... + associated_roles: ( + Sequence[DBClusterAssociatedRole | DBClusterAssociatedRoleDict] | None + ) """ A list of Amazon Web Services Identity and Access Management (IAM) roles - to associate with the DB cluster when it's restored from a snapshot. + to associate with the DB cluster when it's restored from Amazon S3. Each role grants the DB cluster permission to access other Amazon Web Services on your behalf. For each role, specify a role ARN and, optionally, the feature name (such as `s3Import`, `s3Export`, or `Lambda`). - - Valid for Cluster Type: Aurora DB clusters only """ @dataclass(kw_only=True) -class RestoreDBClusterFromSnapshotOutput(_SerdeShape): - """Dataclass for RestoreDBClusterFromSnapshotOutput structure.""" +class RestoreDBClusterFromS3Output(_SerdeShape): + """Dataclass for RestoreDBClusterFromS3Output structure.""" db_cluster: DBCluster | None = ... """ @@ -2939,12 +3146,20 @@ class RestoreDBClusterFromSnapshotOutput(_SerdeShape): """ @dataclass(kw_only=True) -class RestoreDBClusterToPointInTimeInput(_SerdeShape): +class RestoreDBClusterFromSnapshotInput(_SerdeShape): """""" + availability_zones: list[str] | None = ... + """ + Provides the list of Availability Zones (AZs) where instances in the + restored DB cluster can be created. + + Valid for: Aurora DB clusters only + """ db_cluster_identifier: str | None = ... """ - The name of the new DB cluster to be created. + The name of the DB cluster to create from the DB snapshot or DB cluster + snapshot. This parameter isn't case-sensitive. Constraints: @@ -2954,65 +3169,84 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): - Can't end with a hyphen or contain two consecutive hyphens + Example: `my-snapshot-id` + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - restore_type: str | None = ... + snapshot_identifier: str | None = ... """ - The type of restore to be performed. You can specify one of the - following values: + The identifier for the DB snapshot or DB cluster snapshot to restore + from. - - `full-copy` - The new DB cluster is restored as a full copy of the - source DB cluster. + You can use either the name or the Amazon Resource Name (ARN) to specify + a DB cluster snapshot. However, you can use only the ARN to specify a DB + snapshot. - - `copy-on-write` - The new DB cluster is restored as a clone of the - source DB cluster. + Constraints: - If you don't specify a `RestoreType` value, then the new DB cluster is - restored as a full copy of the source DB cluster. + - Must match the identifier of an existing Snapshot. Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - source_db_cluster_identifier: str | None = ... + engine: str | None = ... """ - The identifier of the source DB cluster from which to restore. + The database engine to use for the new DB cluster. - Constraints: + Default: The same as source - - Must match the identifier of an existing DBCluster. + Constraint: Must be compatible with the engine of the source Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - restore_to_time: datetime | None = ... + engine_version: str | None = ... """ - The date and time to restore the DB cluster to. + The version of the database engine to use for the new DB cluster. If you + don't specify an engine version, the default version for the database + engine in the Amazon Web Services Region is used. - Valid Values: Value must be a time in Universal Coordinated Time (UTC) - format + To list all of the available engine versions for Aurora MySQL, use the + following command: - Constraints: + `aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"` - - Must be before the latest restorable time for the DB instance + To list all of the available engine versions for Aurora PostgreSQL, use + the following command: - - Must be specified if `UseLatestRestorableTime` parameter isn't - provided + `aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions[].EngineVersion"` - - Can't be specified if the `UseLatestRestorableTime` parameter is - enabled + To list all of the available engine versions for RDS for MySQL, use the + following command: - - Can't be specified if the `RestoreType` parameter is `copy-on-write` + `aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions[].EngineVersion"` - Example: `2015-03-07T23:45:00Z` + To list all of the available engine versions for RDS for PostgreSQL, use + the following command: - Valid for: Aurora DB clusters and Multi-AZ DB clusters - """ - use_latest_restorable_time: bool | None = ... - """ - Specifies whether to restore the DB cluster to the latest restorable - backup time. By default, the DB cluster isn't restored to the latest - restorable backup time. + `aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions[].EngineVersion"` - Constraints: Can't be specified if `RestoreToTime` parameter is - provided. + **Aurora MySQL** + + See [Database engine updates for Amazon Aurora + MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) + in the *Amazon Aurora User Guide*. + + **Aurora PostgreSQL** + + See [Amazon Aurora PostgreSQL releases and engine + versions](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html) + in the *Amazon Aurora User Guide*. + + **MySQL** + + See [Amazon RDS for + MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) + in the *Amazon RDS User Guide.* + + **PostgreSQL** + + See [Amazon RDS for PostgreSQL versions and + extensions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts) + in the *Amazon RDS User Guide.* Valid for: Aurora DB clusters and Multi-AZ DB clusters """ @@ -3020,72 +3254,66 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): """ The port number on which the new DB cluster accepts connections. - Constraints: A value from `1150-65535`. + Constraints: This value must be `1150-65535` - Default: The default port for the engine. + Default: The same port as the original DB cluster. Valid for: Aurora DB clusters and Multi-AZ DB clusters """ db_subnet_group_name: str | None = ... """ - The DB subnet group name to use for the new DB cluster. + The name of the DB subnet group to use for the new DB cluster. - Constraints: If supplied, must match the name of an existing - DBSubnetGroup. + Constraints: If supplied, must match the name of an existing DB subnet + group. Example: `mydbsubnetgroup` + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + database_name: str | None = ... + """ + The database name for the restored DB cluster. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ option_group_name: str | None = ... """ - The name of the option group for the new DB cluster. + The name of the option group to use for the restored DB cluster. DB clusters are associated with a default option group that can't be modified. """ vpc_security_group_ids: list[str] | None = ... """ - A list of VPC security groups that the new DB cluster belongs to. + A list of VPC security groups that the new DB cluster will belong to. Valid for: Aurora DB clusters and Multi-AZ DB clusters """ tags: list[Tag] | None = ... """ - A list of tags. + The tags to be assigned to the restored DB cluster. - For more information, see [Tagging Amazon RDS - resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) - in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS - resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) - in the *Amazon Aurora User Guide*. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ kms_key_id: str | None = ... """ The Amazon Web Services KMS key identifier to use when restoring an - encrypted DB cluster from an encrypted DB cluster. + encrypted DB cluster from a DB snapshot or DB cluster snapshot. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. - You can restore to a new DB cluster and encrypt the new DB cluster with - a KMS key that is different from the KMS key used to encrypt the source - DB cluster. The new DB cluster is encrypted with the KMS key identified - by the `KmsKeyId` parameter. - - If you don't specify a value for the `KmsKeyId` parameter, then the + When you don't specify a value for the `KmsKeyId` parameter, then the following occurs: - - If the DB cluster is encrypted, then the restored DB cluster is - encrypted using the KMS key that was used to encrypt the source DB - cluster. - - - If the DB cluster isn't encrypted, then the restored DB cluster - isn't encrypted. + - If the DB snapshot or DB cluster snapshot in `SnapshotIdentifier` is + encrypted, then the restored DB cluster is encrypted using the KMS key + that was used to encrypt the DB snapshot or DB cluster snapshot. - If `DBClusterIdentifier` refers to a DB cluster that isn't encrypted, - then the restore request is rejected. + - If the DB snapshot or DB cluster snapshot in `SnapshotIdentifier` + isn't encrypted, then the restored DB cluster isn't encrypted. Valid for: Aurora DB clusters and Multi-AZ DB clusters """ @@ -3109,6 +3337,9 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): The target backtrack window, in seconds. To disable backtracking, set this value to 0. + Note: + Currently, Backtrack is only supported for Aurora MySQL DB clusters. + Default: 0 Constraints: @@ -3116,12 +3347,13 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): - If specified, this value must be set to a number from 0 to 259,200 (72 hours). - Valid for: Aurora MySQL DB clusters only + Valid for: Aurora DB clusters only """ enable_cloudwatch_logs_exports: list[str] | None = ... """ - The list of logs that the restored DB cluster is to export to CloudWatch - Logs. The values in the list depend on the DB engine being used. + The list of logs that the restored DB cluster is to export to Amazon + CloudWatch Logs. The values in the list depend on the DB engine being + used. **RDS for MySQL** @@ -3153,18 +3385,33 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - db_cluster_parameter_group_name: str | None = ... + engine_mode: str | None = ... """ - The name of the custom DB cluster parameter group to associate with this - DB cluster. + The DB engine mode of the DB cluster, either `provisioned` or + `serverless`. - If the `DBClusterParameterGroupName` parameter is omitted, the default - DB cluster parameter group for the specified engine is used. + For more information, see + [CreateDBCluster](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html). + + Valid for: Aurora DB clusters only + """ + scaling_configuration: ScalingConfiguration | None = ... + """ + For DB clusters in `serverless` DB engine mode, the scaling properties + of the DB cluster. + + Valid for: Aurora DB clusters only + """ + db_cluster_parameter_group_name: str | None = ... + """ + The name of the DB cluster parameter group to associate with this DB + cluster. If this argument is omitted, the default DB cluster parameter + group for the specified engine is used. Constraints: - - If supplied, must match the name of an existing DB cluster parameter - group. + - If supplied, must match the name of an existing default DB cluster + parameter group. - Must be 1 to 255 letters, numbers, or hyphens. @@ -3192,13 +3439,13 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): domain: str | None = ... """ The Active Directory directory ID to restore the DB cluster in. The - domain must be created prior to this operation. + domain must be created prior to this operation. Currently, only MySQL, + Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created + in an Active Directory Domain. - For Amazon Aurora DB clusters, Amazon RDS can use Kerberos - Authentication to authenticate users that connect to the DB cluster. For - more information, see [Kerberos - Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html) - in the *Amazon Aurora User Guide*. + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + in the *Amazon RDS User Guide*. Valid for: Aurora DB clusters only """ @@ -3217,9 +3464,9 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): engines. For the full list of DB instance classes, and availability for your - engine, see [DB instance - class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - in the *Amazon RDS User Guide*. + engine, see [DB Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide.* Valid for: Multi-AZ DB clusters only """ @@ -3235,6 +3482,21 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): Default: `aurora` (Aurora DB clusters); `io1` (Multi-AZ DB clusters) + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + iops: int | None = ... + """ + The amount of Provisioned IOPS (input/output operations per second) to + be initially allocated for each DB instance in the Multi-AZ DB cluster. + + For information about valid IOPS values, see [Amazon RDS Provisioned + IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide*. + + Constraints: Must be a multiple between .5 and 50 of the storage amount + for the DB instance. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ publicly_accessible: bool | None = ... @@ -3273,22 +3535,7 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): - If the subnets are part of a VPC that has an internet gateway attached to it, the DB cluster is public. - Valid for: Multi-AZ DB clusters only - """ - iops: int | None = ... - """ - The amount of Provisioned IOPS (input/output operations per second) to - be initially allocated for each DB instance in the Multi-AZ DB cluster. - - For information about valid IOPS values, see [Amazon RDS Provisioned - IOPS - storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) - in the *Amazon RDS User Guide*. - - Constraints: Must be a multiple between .5 and 50 of the storage amount - for the DB instance. - - Valid for: Multi-AZ DB clusters only + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ network_type: str | None = ... """ @@ -3310,8 +3557,6 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): Valid for: Aurora DB clusters only """ - source_db_cluster_resource_id: str | None = ... - """The resource ID of the source DB cluster from which to restore.""" serverless_v2_scaling_configuration: ServerlessV2ScalingConfiguration | None = ... """ Contains the scaling configuration of an Aurora Serverless v2 DB @@ -3321,26 +3566,6 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) in the *Amazon Aurora User Guide*. """ - scaling_configuration: ScalingConfiguration | None = ... - """ - For DB clusters in `serverless` DB engine mode, the scaling properties - of the DB cluster. - - Valid for: Aurora DB clusters only - """ - engine_mode: str | None = ... - """ - The engine mode of the new cluster. Specify `provisioned` or - `serverless`, depending on the type of the cluster you are creating. You - can create an Aurora Serverless v1 clone from a provisioned cluster, or - a provisioned clone from an Aurora Serverless v1 cluster. To create a - clone that is an Aurora Serverless v1 cluster, the original cluster must - be an Aurora Serverless v1 cluster or an encrypted provisioned cluster. - To create a full copy that is an Aurora Serverless v1 cluster, specify - the engine mode `serverless`. - - Valid for: Aurora DB clusters only - """ rds_custom_cluster_configuration: RdsCustomClusterConfiguration | None = ... """Reserved for future use.""" monitoring_interval: int | None = ... @@ -3505,7 +3730,7 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): associated_roles: list[DBClusterAssociatedRole] | None = ... """ A list of Amazon Web Services Identity and Access Management (IAM) roles - to associate with the DB cluster when it's restored to a point in time. + to associate with the DB cluster when it's restored from a snapshot. Each role grants the DB cluster permission to access other Amazon Web Services on your behalf. For each role, specify a role ARN and, optionally, the feature name (such as `s3Import`, `s3Export`, or @@ -3514,1192 +3739,4915 @@ class RestoreDBClusterToPointInTimeInput(_SerdeShape): Valid for Cluster Type: Aurora DB clusters only """ -@dataclass(kw_only=True) -class RestoreDBClusterToPointInTimeOutput(_SerdeShape): - """Dataclass for RestoreDBClusterToPointInTimeOutput structure.""" +class RestoreDBClusterFromSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `RestoreDBClusterFromSnapshotInput`.""" - db_cluster: DBCluster | None = ... + availability_zones: Sequence[str] | None """ - Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB - cluster. - - For an Amazon Aurora DB cluster, this data type is used as a response - element in the operations `CreateDBCluster`, `DeleteDBCluster`, - `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, - `PromoteReadReplicaDBCluster`, `RestoreDBClusterFromS3`, - `RestoreDBClusterFromSnapshot`, `RestoreDBClusterToPointInTime`, - `StartDBCluster`, and `StopDBCluster`. - - For a Multi-AZ DB cluster, this data type is used as a response element - in the operations `CreateDBCluster`, `DeleteDBCluster`, - `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, - `RebootDBCluster`, `RestoreDBClusterFromSnapshot`, and - `RestoreDBClusterToPointInTime`. - - For more information on Amazon Aurora DB clusters, see [What is Amazon - Aurora?](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) - in the *Amazon Aurora User Guide.* + Provides the list of Availability Zones (AZs) where instances in the + restored DB cluster can be created. - For more information on Multi-AZ DB clusters, see [Multi-AZ deployments - with two readable standby DB - instances](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) - in the *Amazon RDS User Guide.* - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Valid for: Aurora DB clusters only """ - -@dataclass(kw_only=True) -class RestoreDBInstanceFromDBSnapshotInput(_SerdeShape): - """""" - - db_instance_identifier: str | None = ... + db_cluster_identifier: Required[str] """ - The name of the DB instance to create from the DB snapshot. This - parameter isn't case-sensitive. + The name of the DB cluster to create from the DB snapshot or DB cluster + snapshot. This parameter isn't case-sensitive. Constraints: - - Must contain from 1 to 63 numbers, letters, or hyphens. + - Must contain from 1 to 63 letters, numbers, or hyphens - - First character must be a letter. + - First character must be a letter - - Can't end with a hyphen or contain two consecutive hyphens. + - Can't end with a hyphen or contain two consecutive hyphens Example: `my-snapshot-id` + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - db_snapshot_identifier: str | None = ... + snapshot_identifier: Required[str] """ - The identifier for the DB snapshot to restore from. - - Constraints: + The identifier for the DB snapshot or DB cluster snapshot to restore + from. - - Must match the identifier of an existing DB snapshot. + You can use either the name or the Amazon Resource Name (ARN) to specify + a DB cluster snapshot. However, you can use only the ARN to specify a DB + snapshot. - - Can't be specified when `DBClusterSnapshotIdentifier` is specified. + Constraints: - - Must be specified when `DBClusterSnapshotIdentifier` isn't specified. + - Must match the identifier of an existing Snapshot. - - If you are restoring from a shared manual DB snapshot, the - `DBSnapshotIdentifier` must be the ARN of the shared DB snapshot. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - db_instance_class: str | None = ... + engine: Required[str] """ - The compute and memory capacity of the Amazon RDS DB instance, for - example db.m4.large. Not all DB instance classes are available in all - Amazon Web Services Regions, or for all database engines. For the full - list of DB instance classes, and availability for your engine, see [DB - Instance - Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - in the *Amazon RDS User Guide.* + The database engine to use for the new DB cluster. - Default: The same DBInstanceClass as the original DB instance. - """ - port: int | None = ... - """ - The port number on which the database accepts connections. + Default: The same as source - Default: The same port as the original DB instance + Constraint: Must be compatible with the engine of the source - Constraints: Value must be `1150-65535` + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - availability_zone: str | None = ... + engine_version: str | None """ - The Availability Zone (AZ) where the DB instance will be created. + The version of the database engine to use for the new DB cluster. If you + don't specify an engine version, the default version for the database + engine in the Amazon Web Services Region is used. - Default: A random, system-chosen Availability Zone. + To list all of the available engine versions for Aurora MySQL, use the + following command: - Constraint: You can't specify the `AvailabilityZone` parameter if the - DB instance is a Multi-AZ deployment. + `aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"` - Example: `us-east-1a` - """ - db_subnet_group_name: str | None = ... - """ - The name of the DB subnet group to use for the new instance. + To list all of the available engine versions for Aurora PostgreSQL, use + the following command: - Constraints: + `aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions[].EngineVersion"` - - If supplied, must match the name of an existing DB subnet group. + To list all of the available engine versions for RDS for MySQL, use the + following command: - Example: `mydbsubnetgroup` - """ - multi_az: bool | None = ... - """ - Specifies whether the DB instance is a Multi-AZ deployment. + `aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions[].EngineVersion"` - This setting doesn't apply to RDS Custom. + To list all of the available engine versions for RDS for PostgreSQL, use + the following command: - Constraint: You can't specify the `AvailabilityZone` parameter if the - DB instance is a Multi-AZ deployment. + `aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions[].EngineVersion"` + + **Aurora MySQL** + + See [Database engine updates for Amazon Aurora + MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) + in the *Amazon Aurora User Guide*. + + **Aurora PostgreSQL** + + See [Amazon Aurora PostgreSQL releases and engine + versions](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html) + in the *Amazon Aurora User Guide*. + + **MySQL** + + See [Amazon RDS for + MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) + in the *Amazon RDS User Guide.* + + **PostgreSQL** + + See [Amazon RDS for PostgreSQL versions and + extensions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts) + in the *Amazon RDS User Guide.* + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - publicly_accessible: bool | None = ... + port: int | None """ - Specifies whether the DB instance is publicly accessible. + The port number on which the new DB cluster accepts connections. - When the DB instance is publicly accessible, its Domain Name System - (DNS) endpoint resolves to the private IP address from within the DB - instance's virtual private cloud (VPC). It resolves to the public IP - address from outside of the DB instance's VPC. Access to the DB - instance is ultimately controlled by the security group it uses. That - public access is not permitted if the security group assigned to the DB - instance doesn't permit it. + Constraints: This value must be `1150-65535` - When the DB instance isn't publicly accessible, it is an internal DB - instance with a DNS name that resolves to a private IP address. + Default: The same port as the original DB cluster. - For more information, see CreateDBInstance. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - auto_minor_version_upgrade: bool | None = ... + db_subnet_group_name: str | None """ - Specifies whether to automatically apply minor version upgrades to the - DB instance during the maintenance window. + The name of the DB subnet group to use for the new DB cluster. - If you restore an RDS Custom DB instance, you must disable this - parameter. + Constraints: If supplied, must match the name of an existing DB subnet + group. - For more information about automatic minor version upgrades, see - [Automatically upgrading the minor engine - version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + Example: `mydbsubnetgroup` + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - license_model: str | None = ... + database_name: str | None """ - License model information for the restored DB instance. - - Note: - License models for RDS for Db2 require additional configuration. The - bring your own license (BYOL) model requires a custom parameter group - and an Amazon Web Services License Manager self-managed license. The Db2 - license through Amazon Web Services Marketplace model requires an Amazon - Web Services Marketplace subscription. For more information, see [Amazon - RDS for Db2 licensing - options](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) - in the *Amazon RDS User Guide*. + The database name for the restored DB cluster. - This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + option_group_name: str | None + """ + The name of the option group to use for the restored DB cluster. - Valid Values: + DB clusters are associated with a default option group that can't be + modified. + """ + vpc_security_group_ids: Sequence[str] | None + """ + A list of VPC security groups that the new DB cluster will belong to. - - RDS for Db2 - `bring-your-own-license | marketplace-license` + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + tags: Sequence[Tag | TagDict] | None + """ + The tags to be assigned to the restored DB cluster. - - RDS for MariaDB - `general-public-license` + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to use when restoring an + encrypted DB cluster from a DB snapshot or DB cluster snapshot. - - RDS for Microsoft SQL Server - - `license-included | bring-your-own-media` + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. - - RDS for MySQL - `general-public-license` + When you don't specify a value for the `KmsKeyId` parameter, then the + following occurs: - - RDS for Oracle - `bring-your-own-license | license-included` + - If the DB snapshot or DB cluster snapshot in `SnapshotIdentifier` is + encrypted, then the restored DB cluster is encrypted using the KMS key + that was used to encrypt the DB snapshot or DB cluster snapshot. - - RDS for PostgreSQL - `postgresql-license` + - If the DB snapshot or DB cluster snapshot in `SnapshotIdentifier` + isn't encrypted, then the restored DB cluster isn't encrypted. - Default: Same as the source. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - db_name: str | None = ... + enable_iam_database_authentication: bool | None """ - The name of the database for the restored DB instance. + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. - This parameter only applies to RDS for Oracle and RDS for SQL Server DB - instances. It doesn't apply to the other engines or to RDS Custom DB - instances. + For more information, see [IAM Database + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon Aurora User Guide* or [IAM database authentication for + MariaDB, MySQL, and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide*. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - engine: str | None = ... + backtrack_window: int | None """ - The database engine to use for the new instance. - - This setting doesn't apply to RDS Custom. - - Default: The same as source + The target backtrack window, in seconds. To disable backtracking, set + this value to 0. - Constraint: Must be compatible with the engine of the source. For - example, you can restore a MariaDB 10.1 DB instance from a MySQL 5.6 - snapshot. + Note: + Currently, Backtrack is only supported for Aurora MySQL DB clusters. - Valid Values: + Default: 0 - - `db2-ae` + Constraints: - - `db2-ce` + - If specified, this value must be set to a number from 0 to 259,200 (72 + hours). - - `db2-se` + Valid for: Aurora DB clusters only + """ + enable_cloudwatch_logs_exports: Sequence[str] | None + """ + The list of logs that the restored DB cluster is to export to Amazon + CloudWatch Logs. The values in the list depend on the DB engine being + used. - - `mariadb` + **RDS for MySQL** - - `mysql` + Possible values are `error`, `general`, `slowquery`, and + `iam-db-auth-error`. - - `oracle-ee` + **RDS for PostgreSQL** - - `oracle-ee-cdb` + Possible values are `postgresql`, `upgrade`, and `iam-db-auth-error`. - - `oracle-se2` + **Aurora MySQL** - - `oracle-se2-cdb` + Possible values are `audit`, `error`, `general`, `instance`, + `slowquery`, and `iam-db-auth-error`. - - `postgres` + **Aurora PostgreSQL** - - `sqlserver-ee` + Possible value are `instance`, `postgresql`, and `iam-db-auth-error`. - - `sqlserver-se` + For more information about exporting CloudWatch Logs for Amazon RDS, see + [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. - - `sqlserver-ex` + For more information about exporting CloudWatch Logs for Amazon Aurora, + see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon Aurora User Guide*. - - `sqlserver-web` + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - iops: int | None = ... + engine_mode: str | None """ - Specifies the amount of provisioned IOPS for the DB instance, expressed - in I/O operations per second. If this parameter isn't specified, the - IOPS value is taken from the backup. If this parameter is set to 0, the - new instance is converted to a non-PIOPS instance. The conversion takes - additional time, though your DB instance is available for connections - before the conversion starts. + The DB engine mode of the DB cluster, either `provisioned` or + `serverless`. - The provisioned IOPS value must follow the requirements for your - database engine. For more information, see [Amazon RDS Provisioned IOPS - storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) - in the *Amazon RDS User Guide.* + For more information, see + [CreateDBCluster](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html). - Constraints: Must be an integer greater than 1000. + Valid for: Aurora DB clusters only """ - storage_throughput: int | None = ... + scaling_configuration: ScalingConfiguration | ScalingConfigurationDict | None """ - Specifies the storage throughput value for the DB instance. + For DB clusters in `serverless` DB engine mode, the scaling properties + of the DB cluster. - This setting doesn't apply to RDS Custom or Amazon Aurora. + Valid for: Aurora DB clusters only """ - option_group_name: str | None = ... + db_cluster_parameter_group_name: str | None """ - The name of the option group to be used for the restored DB instance. + The name of the DB cluster parameter group to associate with this DB + cluster. If this argument is omitted, the default DB cluster parameter + group for the specified engine is used. - Permanent options, such as the TDE option for Oracle Advanced Security - TDE, can't be removed from an option group, and that option group - can't be removed from a DB instance after it is associated with a DB - instance. + Constraints: - This setting doesn't apply to RDS Custom. - """ - tags: list[Tag] | None = ... - """ - A list of tags. + - If supplied, must match the name of an existing default DB cluster + parameter group. - For more information, see [Tagging Amazon RDS - resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) - in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS - resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) - in the *Amazon Aurora User Guide*. - """ - storage_type: str | None = ... - """ - Specifies the storage type to be associated with the DB instance. + - Must be 1 to 255 letters, numbers, or hyphens. - Valid Values: `gp2 | gp3 | io1 | io2 | standard` + - First character must be a letter. - If you specify `io1`, `io2`, or `gp3`, you must also include a value for - the `Iops` parameter. + - Can't end with a hyphen or contain two consecutive hyphens. - Default: `io1` if the `Iops` parameter is specified, otherwise `gp3` + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - tde_credential_arn: str | None = ... + deletion_protection: bool | None """ - The ARN from the key store with which to associate the instance for TDE - encryption. + Specifies whether to enable deletion protection for the DB cluster. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. - This setting doesn't apply to RDS Custom. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - tde_credential_password: str | None = ... + copy_tags_to_snapshot: bool | None """ - The password for the given ARN from the key store in order to access the - device. - - This setting doesn't apply to RDS Custom. - """ - vpc_security_group_ids: list[str] | None = ... - """ - A list of EC2 VPC security groups to associate with this DB instance. + Specifies whether to copy all tags from the restored DB cluster to + snapshots of the restored DB cluster. The default is not to copy them. - Default: The default EC2 VPC security group for the DB subnet group's - VPC. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - domain: str | None = ... + domain: str | None """ - The Active Directory directory ID to restore the DB instance in. The - domain/ must be created prior to this operation. Currently, you can - create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB - instances in an Active Directory Domain. + The Active Directory directory ID to restore the DB cluster in. The + domain must be created prior to this operation. Currently, only MySQL, + Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created + in an Active Directory Domain. For more information, see [Kerberos Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) in the *Amazon RDS User Guide*. - This setting doesn't apply to RDS Custom. + Valid for: Aurora DB clusters only """ - domain_fqdn: str | None = ... + domain_iam_role_name: str | None """ - The fully qualified domain name (FQDN) of an Active Directory domain. + The name of the IAM role to be used when making API calls to the + Directory Service. - Constraints: + Valid for: Aurora DB clusters only + """ + db_cluster_instance_class: str | None + """ + The compute and memory capacity of the each DB instance in the Multi-AZ + DB cluster, for example db.m6gd.xlarge. Not all DB instance classes are + available in all Amazon Web Services Regions, or for all database + engines. - - Can't be longer than 64 characters. + For the full list of DB instance classes, and availability for your + engine, see [DB Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide.* - Example: `mymanagedADtest.mymanagedAD.mydomain` + Valid for: Multi-AZ DB clusters only """ - domain_ou: str | None = ... + storage_type: str | None """ - The Active Directory organizational unit for your DB instance to join. + Specifies the storage type to be associated with the DB cluster. - Constraints: + When specified for a Multi-AZ DB cluster, a value for the `Iops` + parameter is required. - - Must be in the distinguished name format. + Valid Values: `aurora`, `aurora-iopt1` (Aurora DB clusters); `io1` + (Multi-AZ DB clusters) - - Can't be longer than 64 characters. + Default: `aurora` (Aurora DB clusters); `io1` (Multi-AZ DB clusters) - Example: - `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - domain_auth_secret_arn: str | None = ... + iops: int | None """ - The ARN for the Secrets Manager secret with the credentials for the user - joining the domain. + The amount of Provisioned IOPS (input/output operations per second) to + be initially allocated for each DB instance in the Multi-AZ DB cluster. - Constraints: + For information about valid IOPS values, see [Amazon RDS Provisioned + IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide*. - - Can't be longer than 64 characters. + Constraints: Must be a multiple between .5 and 50 of the storage amount + for the DB instance. - Example: - `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - domain_dns_ips: list[str] | None = ... + publicly_accessible: bool | None """ - The IPv4 DNS IP addresses of your primary and secondary Active Directory - domain controllers. + Specifies whether the DB cluster is publicly accessible. - Constraints: + When the DB cluster is publicly accessible, its Domain Name System (DNS) + endpoint resolves to the private IP address from within the DB + cluster's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB cluster's VPC. Access to the DB cluster + is ultimately controlled by the security group it uses. That public + access is not permitted if the security group assigned to the DB cluster + doesn't permit it. - - Two IP addresses must be provided. If there isn't a secondary domain - controller, use the IP address of the primary domain controller for - both entries in the list. + When the DB cluster isn't publicly accessible, it is an internal DB + cluster with a DNS name that resolves to a private IP address. - Example: `123.124.125.126,234.235.236.237` + Default: The default behavior varies depending on whether + `DBSubnetGroupName` is specified. + + If `DBSubnetGroupName` isn't specified, and `PubliclyAccessible` isn't + specified, the following applies: + + - If the default VPC in the target Region doesn't have an internet + gateway attached to it, the DB cluster is private. + + - If the default VPC in the target Region has an internet gateway + attached to it, the DB cluster is public. + + If `DBSubnetGroupName` is specified, and `PubliclyAccessible` isn't + specified, the following applies: + + - If the subnets are part of a VPC that doesn't have an internet gateway + attached to it, the DB cluster is private. + + - If the subnets are part of a VPC that has an internet gateway attached + to it, the DB cluster is public. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - copy_tags_to_snapshot: bool | None = ... + network_type: str | None """ - Specifies whether to copy all tags from the restored DB instance to - snapshots of the DB instance. + The network type of the DB cluster. - In most cases, tags aren't copied by default. However, when you restore - a DB instance from a DB snapshot, RDS checks whether you specify new - tags. If yes, the new tags are added to the restored DB instance. If - there are no new tags, RDS looks for the tags from the source DB - instance for the DB snapshot, and then adds those tags to the restored - DB instance. + Valid Values: - For more information, see [Copying tags to DB instance - snapshots](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.CopyTags) - in the *Amazon RDS User Guide*. + - `IPV4` + + - `DUAL` + + The network type is determined by the `DBSubnetGroup` specified for the + DB cluster. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon Aurora User Guide.* + + Valid for: Aurora DB clusters only """ - domain_iam_role_name: str | None = ... + serverless_v2_scaling_configuration: ( + ServerlessV2ScalingConfiguration | ServerlessV2ScalingConfigurationDict | None + ) """ - The name of the IAM role to use when making API calls to the Directory - Service. + Contains the scaling configuration of an Aurora Serverless v2 DB + cluster. - This setting doesn't apply to RDS Custom DB instances. + For more information, see [Using Amazon Aurora Serverless + v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + in the *Amazon Aurora User Guide*. """ - enable_iam_database_authentication: bool | None = ... + rds_custom_cluster_configuration: ( + RdsCustomClusterConfiguration | RdsCustomClusterConfigurationDict | None + ) + """Reserved for future use.""" + monitoring_interval: int | None """ - Specifies whether to enable mapping of Amazon Web Services Identity and - Access Management (IAM) accounts to database accounts. By default, - mapping is disabled. + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB cluster. To turn off collecting + Enhanced Monitoring metrics, specify `0`. - For more information about IAM database authentication, see [IAM - Database Authentication for MySQL and - PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) - in the *Amazon RDS User Guide.* + If `MonitoringRoleArn` is specified, also set `MonitoringInterval` to a + value other than `0`. - This setting doesn't apply to RDS Custom. - """ - enable_cloudwatch_logs_exports: list[str] | None = ... - """ - The list of logs for the restored DB instance to export to CloudWatch - Logs. The values in the list depend on the DB engine. For more - information, see [Publishing Database Logs to Amazon CloudWatch - Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) - in the *Amazon RDS User Guide*. + Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` - This setting doesn't apply to RDS Custom. + Default: `0` """ - processor_features: list[ProcessorFeature] | None = ... + monitoring_role_arn: str | None """ - The number of CPU cores and the number of threads per core for the DB - instance class of the DB instance. + The Amazon Resource Name (ARN) for the IAM role that permits RDS to send + Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is + `arn:aws:iam:123456789012:role/emaccess`. - This setting doesn't apply to RDS Custom. + If `MonitoringInterval` is set to a value other than `0`, supply a + `MonitoringRoleArn` value. """ - use_default_processor_features: bool | None = ... + enable_performance_insights: bool | None + """Specifies whether to turn on Performance Insights for the DB cluster.""" + performance_insights_kms_key_id: str | None """ - Specifies whether the DB instance class of the DB instance uses its - default processor features. + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. - This setting doesn't apply to RDS Custom. + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. """ - db_parameter_group_name: str | None = ... + performance_insights_retention_period: int | None """ - The name of the DB parameter group to associate with this DB instance. - - If you don't specify a value for `DBParameterGroupName`, then RDS uses - the default `DBParameterGroup` for the specified DB engine. + The number of days to retain Performance Insights data. - This setting doesn't apply to RDS Custom. + Valid Values: - Constraints: + - `7` - - If supplied, must match the name of an existing DB parameter group. + - *month* * 31, where *month* is a number of months from 1-23. + Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 + months * 31) - - Must be 1 to 255 letters, numbers, or hyphens. + - `731` - - First character must be a letter. + Default: `7` days - - Can't end with a hyphen or contain two consecutive hyphens. - """ - deletion_protection: bool | None = ... - """ - Specifies whether to enable deletion protection for the DB instance. The - database can't be deleted when deletion protection is enabled. By - default, deletion protection isn't enabled. For more information, see - [Deleting a DB - Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + If you specify a retention period that isn't valid, such as `94`, + Amazon RDS issues an error. """ - enable_customer_owned_ip: bool | None = ... + backup_retention_period: int | None """ - Specifies whether to enable a customer-owned IP address (CoIP) for an - RDS on Outposts DB instance. + The number of days for which automated backups are retained. Specify a + minimum value of `1`. - A *CoIP* provides local or external connectivity to resources in your - Outpost subnets through your on-premises network. For some use cases, a - CoIP can provide lower latency for connections to the DB instance from - outside of its virtual private cloud (VPC) on your local network. + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - This setting doesn't apply to RDS Custom. + Default: Uses existing setting - For more information about RDS on Outposts, see [Working with Amazon RDS - on Amazon Web Services - Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) - in the *Amazon RDS User Guide*. + Constraints: - For more information about CoIPs, see [Customer-owned IP - addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) - in the *Amazon Web Services Outposts User Guide*. + - Must be a value from 1 to 35. """ - network_type: str | None = ... + preferred_backup_window: str | None """ - The network type of the DB instance. + The daily time range during which automated backups are created if + automated backups are enabled, using the `BackupRetentionPeriod` + parameter. - Valid Values: + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region. To view the time + blocks available, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) + in the *Amazon Aurora User Guide*. - - `IPV4` + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters - - `DUAL` + Constraints: - The network type is determined by the `DBSubnetGroup` specified for the - DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the - IPv4 and the IPv6 protocols (`DUAL`). + - Must be in the format `hh24:mi-hh24:mi`. - For more information, see [Working with a DB instance in a - VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) - in the *Amazon RDS User Guide.* + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. """ - backup_target: str | None = ... + engine_lifecycle_support: str | None """ - Specifies where automated backups and manual snapshots are stored for - the restored DB instance. + The lifecycle type for this DB cluster. - Possible values are `local` (Dedicated Local Zone), `outposts` (Amazon - Web Services Outposts), and `region` (Amazon Web Services Region). The - default is `region`. + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB cluster into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, RDS automatically upgrades your restored DB cluster to a + higher engine version, if the major engine version is past its end of + standard support date. - For more information, see [Working with Amazon RDS on Amazon Web - Services - Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) - in the *Amazon RDS User Guide*. + You can use this setting to enroll your DB cluster into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB cluster past the end of standard support + for that engine version. For more information, see the following + sections: + + - Amazon Aurora - [Amazon RDS Extended Support with Amazon + Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) + in the *Amazon Aurora User Guide* + + - Amazon RDS - [Amazon RDS Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide* + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` """ - custom_iam_instance_profile: str | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ - The instance profile associated with the underlying Amazon EC2 instance - of an RDS Custom DB instance. The instance profile must meet the - following requirements: - - - The profile must exist in your account. + Tags to assign to resources associated with the DB cluster. - - The profile must have an IAM role that Amazon EC2 has permissions to - assume. + Valid Values: - - The instance profile name and the associated IAM role name must start - with the prefix `AWSRDSCustom`. + - `cluster-auto-backup` - The DB cluster's automated backup. + """ + enable_vpc_networking: bool | None + """ + Specifies whether to enable VPC networking for the restored DB cluster. + Set this parameter to `false` to create a cluster without the VPC + network interface (ENI). - For the list of permissions required for the IAM role, see [Configure - IAM and your - VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) - in the *Amazon RDS User Guide*. + This parameter must be used together with `EnableInternetAccessGateway`. + When both parameters are specified, IAM database authentication is + required. You must also specify `EnableIAMDatabaseAuthentication`. - This setting is required for RDS Custom. + Valid for Cluster Type: Aurora PostgreSQL clusters """ - allocated_storage: int | None = ... + enable_internet_access_gateway: bool | None """ - The amount of storage (in gibibytes) to allocate initially for the DB - instance. Follow the allocation rules specified in CreateDBInstance. + Specifies that the restored DB cluster should use internet-based + connectivity through an internet access gateway. This allows clients to + connect to the cluster over the internet without requiring a VPC. - This setting isn't valid for RDS for SQL Server. + This parameter must be used together with `EnableVPCNetworking` set to + `false`. When both parameters are specified, IAM database authentication + is required. You must also specify `EnableIAMDatabaseAuthentication`. - Note: - Be sure to allocate enough storage for your new DB instance so that the - restore operation can succeed. You can also allocate additional storage - for future growth. + Valid for Cluster Type: Aurora PostgreSQL clusters """ - db_cluster_snapshot_identifier: str | None = ... + associated_roles: ( + Sequence[DBClusterAssociatedRole | DBClusterAssociatedRoleDict] | None + ) """ - The identifier for the Multi-AZ DB cluster snapshot to restore from. + A list of Amazon Web Services Identity and Access Management (IAM) roles + to associate with the DB cluster when it's restored from a snapshot. + Each role grants the DB cluster permission to access other Amazon Web + Services on your behalf. For each role, specify a role ARN and, + optionally, the feature name (such as `s3Import`, `s3Export`, or + `Lambda`). - For more information on Multi-AZ DB clusters, see [Multi-AZ DB cluster - deployments](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) - in the *Amazon RDS User Guide*. + Valid for Cluster Type: Aurora DB clusters only + """ - Constraints: +@dataclass(kw_only=True) +class RestoreDBClusterFromSnapshotOutput(_SerdeShape): + """Dataclass for RestoreDBClusterFromSnapshotOutput structure.""" - - Must match the identifier of an existing Multi-AZ DB cluster snapshot. + db_cluster: DBCluster | None = ... + """ + Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB + cluster. - - Can't be specified when `DBSnapshotIdentifier` is specified. + For an Amazon Aurora DB cluster, this data type is used as a response + element in the operations `CreateDBCluster`, `DeleteDBCluster`, + `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, + `PromoteReadReplicaDBCluster`, `RestoreDBClusterFromS3`, + `RestoreDBClusterFromSnapshot`, `RestoreDBClusterToPointInTime`, + `StartDBCluster`, and `StopDBCluster`. - - Must be specified when `DBSnapshotIdentifier` isn't specified. + For a Multi-AZ DB cluster, this data type is used as a response element + in the operations `CreateDBCluster`, `DeleteDBCluster`, + `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, + `RebootDBCluster`, `RestoreDBClusterFromSnapshot`, and + `RestoreDBClusterToPointInTime`. - - If you are restoring from a shared manual Multi-AZ DB cluster - snapshot, the `DBClusterSnapshotIdentifier` must be the ARN of the - shared snapshot. + For more information on Amazon Aurora DB clusters, see [What is Amazon + Aurora?](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) + in the *Amazon Aurora User Guide.* - - Can't be the identifier of an Aurora DB cluster snapshot. + For more information on Multi-AZ DB clusters, see [Multi-AZ deployments + with two readable standby DB + instances](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) + in the *Amazon RDS User Guide.* """ - backup_retention_period: int | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - The number of days to retain automated backups. Setting this parameter - to a positive number enables backups. Setting this parameter to 0 - disables automated backups. - - Note: - Enabling and disabling backups can result in a brief I/O suspension that - lasts from a few seconds to a few minutes, depending on the size and - class of your DB instance. - This setting doesn't apply to Amazon Aurora DB instances. The retention - period for automated backups is managed by the DB cluster. For more - information, see `ModifyDBCluster`. +@dataclass(kw_only=True) +class RestoreDBClusterToPointInTimeInput(_SerdeShape): + """""" - Default: Uses existing setting + db_cluster_identifier: str | None = ... + """ + The name of the new DB cluster to be created. Constraints: - - Must be a value from 0 to 35. + - Must contain from 1 to 63 letters, numbers, or hyphens - - Can't be set to 0 if the DB instance is a source to read replicas. + - First character must be a letter - - Can't be set to 0 for an RDS Custom for Oracle DB instance. + - Can't end with a hyphen or contain two consecutive hyphens + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - preferred_backup_window: str | None = ... + restore_type: str | None = ... """ - The daily time range during which automated backups are created if - automated backups are enabled, as determined by the - `BackupRetentionPeriod` parameter. Changing this parameter doesn't - result in an outage and the change is asynchronously applied as soon as - possible. The default is a 30-minute window selected at random from an - 8-hour block of time for each Amazon Web Services Region. For more - information, see [Backup - window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) - in the *Amazon RDS User Guide*. + The type of restore to be performed. You can specify one of the + following values: - This setting doesn't apply to Amazon Aurora DB instances. The daily - time range for creating automated backups is managed by the DB cluster. - For more information, see `ModifyDBCluster`. + - `full-copy` - The new DB cluster is restored as a full copy of the + source DB cluster. - Constraints: + - `copy-on-write` - The new DB cluster is restored as a clone of the + source DB cluster. - - Must be in the format `hh24:mi-hh24:mi`. + If you don't specify a `RestoreType` value, then the new DB cluster is + restored as a full copy of the source DB cluster. - - Must be in Universal Coordinated Time (UTC). + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + source_db_cluster_identifier: str | None = ... + """ + The identifier of the source DB cluster from which to restore. - - Must not conflict with the preferred maintenance window. + Constraints: - - Must be at least 30 minutes. + - Must match the identifier of an existing DBCluster. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - db_capacity_reservation_identifier: str | None = ... + restore_to_time: datetime | None = ... """ - The identifier or the name of the DB capacity reservation to associate - with this DB instance. You can specify the identifier, which has the - prefix `dbcr-`, or the reservation name. When you specify this - parameter, the DB instance uses reserved capacity from the specified - reservation. + The date and time to restore the DB cluster to. - If you specify `AvailabilityZone`, Amazon RDS places the DB instance in - that Availability Zone, and the reservation must cover it. + Valid Values: Value must be a time in Universal Coordinated Time (UTC) + format Constraints: - - The reservation must reserve capacity for the DB instance class and - the database engine of the DB instance. - - - If the reservation reserves capacity for a specific license model, the - license model of the DB instance must match it. - - - The reservation must be in the `active` state, and it must not be past - its end date. + - Must be before the latest restorable time for the DB instance - - If you specify `AvailabilityZone`, it must be one of the Availability - Zones of the reservation. + - Must be specified if `UseLatestRestorableTime` parameter isn't + provided - - For a Multi-AZ DB instance, the reservation must cover two or more - Availability Zones. A Multi-AZ DB instance uses one unit of reserved - capacity in each of two Availability Zones. If the reservation covers - more than two Availability Zones, Amazon RDS chooses the two that the - DB instance uses. + - Can't be specified if the `UseLatestRestorableTime` parameter is + enabled - - The reservation must have available capacity in each Availability Zone - that the DB instance uses. + - Can't be specified if the `RestoreType` parameter is `copy-on-write` - - The DB subnet group must be in a VPC with default tenancy. + Example: `2015-03-07T23:45:00Z` - - The DB subnet group must cover each Availability Zone that the DB - instance uses. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - dedicated_log_volume: bool | None = ... + use_latest_restorable_time: bool | None = ... """ - Specifies whether to enable a dedicated log volume (DLV) for the DB - instance. - """ - ca_certificate_identifier: str | None = ... - """ - The CA certificate identifier to use for the DB instance's server - certificate. + Specifies whether to restore the DB cluster to the latest restorable + backup time. By default, the DB cluster isn't restored to the latest + restorable backup time. - This setting doesn't apply to RDS Custom DB instances. + Constraints: Can't be specified if `RestoreToTime` parameter is + provided. - For more information, see [Using SSL/TLS to encrypt a connection to a DB - instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) - in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a - connection to a DB - cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) - in the *Amazon Aurora User Guide*. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - engine_lifecycle_support: str | None = ... + port: int | None = ... """ - The lifecycle type for this DB instance. + The port number on which the new DB cluster accepts connections. - Note: - By default, this value is set to `open-source-rds-extended-support`, - which enrolls your DB instance into Amazon RDS Extended Support. At the - end of standard support, you can avoid charges for Extended Support by - setting the value to `open-source-rds-extended-support-disabled`. In - this case, RDS automatically upgrades your restored DB instance to a - higher engine version, if the major engine version is past its end of - standard support date. + Constraints: A value from `1150-65535`. - You can use this setting to enroll your DB instance into Amazon RDS - Extended Support. With RDS Extended Support, you can run the selected - major engine version on your DB instance past the end of standard - support for that engine version. For more information, see [Amazon RDS - Extended Support with Amazon - RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) - in the *Amazon RDS User Guide*. + Default: The default port for the engine. - This setting applies only to RDS for MySQL and RDS for PostgreSQL. For - Amazon Aurora DB instances, the engine lifecycle support is managed by - the DB cluster. + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + db_subnet_group_name: str | None = ... + """ + The DB subnet group name to use for the new DB cluster. - Valid Values: - `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + Constraints: If supplied, must match the name of an existing + DBSubnetGroup. - Default: `open-source-rds-extended-support` + Example: `mydbsubnetgroup` + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - additional_storage_volumes: list[AdditionalStorageVolume] | None = ... + option_group_name: str | None = ... """ - A list of additional storage volumes to create for the DB instance. You - can create up to three additional storage volumes using the names - `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. Additional storage volumes - are supported for RDS for Oracle and RDS for SQL Server DB instances - only. + The name of the option group for the new DB cluster. + + DB clusters are associated with a default option group that can't be + modified. """ - tag_specifications: list[TagSpecification] | None = ... + vpc_security_group_ids: list[str] | None = ... """ - Tags to assign to resources associated with the DB instance. - - Valid Values: + A list of VPC security groups that the new DB cluster belongs to. - - `auto-backup` - The DB instance's automated backup. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - manage_master_user_password: bool | None = ... + tags: list[Tag] | None = ... """ - Specifies whether to manage the master user password with Amazon Web - Services Secrets Manager in the restored DB instance. - - For more information, see [Password management with Amazon Web Services - Secrets - Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) - in the *Amazon RDS User Guide*. - - Constraints: + A list of tags. - - Applies to RDS for Oracle only. + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. """ - master_user_secret_kms_key_id: str | None = ... + kms_key_id: str | None = ... """ - The Amazon Web Services KMS key identifier to encrypt a secret that is - automatically generated and managed in Amazon Web Services Secrets - Manager. - - This setting is valid only if the master user password is managed by RDS - in Amazon Web Services Secrets Manager for the DB instance. + The Amazon Web Services KMS key identifier to use when restoring an + encrypted DB cluster from an encrypted DB cluster. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. - If you don't specify `MasterUserSecretKmsKeyId`, then the - `aws/secretsmanager` KMS key is used to encrypt the secret. If the - secret is in a different Amazon Web Services account, then you can't - use the `aws/secretsmanager` KMS key to encrypt the secret, and you must - use a customer managed KMS key. + You can restore to a new DB cluster and encrypt the new DB cluster with + a KMS key that is different from the KMS key used to encrypt the source + DB cluster. The new DB cluster is encrypted with the KMS key identified + by the `KmsKeyId` parameter. - There is a default KMS key for your Amazon Web Services account. Your - Amazon Web Services account has a different default KMS key for each - Amazon Web Services Region. - """ + If you don't specify a value for the `KmsKeyId` parameter, then the + following occurs: -@dataclass(kw_only=True) -class RestoreDBInstanceFromDBSnapshotOutput(_SerdeShape): - """Dataclass for RestoreDBInstanceFromDBSnapshotOutput structure.""" + - If the DB cluster is encrypted, then the restored DB cluster is + encrypted using the KMS key that was used to encrypt the source DB + cluster. - db_instance: DBInstance | None = ... - """ - Contains the details of an Amazon RDS DB instance. + - If the DB cluster isn't encrypted, then the restored DB cluster + isn't encrypted. - This data type is used as a response element in the operations - `CreateDBInstance`, `CreateDBInstanceReadReplica`, `DeleteDBInstance`, - `DescribeDBInstances`, `ModifyDBInstance`, `PromoteReadReplica`, - `RebootDBInstance`, `RestoreDBInstanceFromDBSnapshot`, - `RestoreDBInstanceFromS3`, `RestoreDBInstanceToPointInTime`, - `StartDBInstance`, and `StopDBInstance`. - """ - response_metadata: ResponseMetadata = ... + If `DBClusterIdentifier` refers to a DB cluster that isn't encrypted, + then the restore request is rejected. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + enable_iam_database_authentication: bool | None = ... """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. -@dataclass(kw_only=True) -class RestoreDBInstanceFromS3Input(_SerdeShape): - """Dataclass for RestoreDBInstanceFromS3Input structure.""" + For more information, see [IAM Database + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon Aurora User Guide* or [IAM database authentication for + MariaDB, MySQL, and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide*. - db_name: str | None = ... - """ - The name of the database to create when the DB instance is created. - Follow the naming rules specified in `CreateDBInstance`. + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - db_instance_identifier: str | None = ... + backtrack_window: int | None = ... """ - The DB instance identifier. This parameter is stored as a lowercase - string. - - Constraints: + The target backtrack window, in seconds. To disable backtracking, set + this value to 0. - - Must contain from 1 to 63 letters, numbers, or hyphens. + Default: 0 - - First character must be a letter. + Constraints: - - Can't end with a hyphen or contain two consecutive hyphens. + - If specified, this value must be set to a number from 0 to 259,200 (72 + hours). - Example: `mydbinstance` + Valid for: Aurora MySQL DB clusters only """ - allocated_storage: int | None = ... + enable_cloudwatch_logs_exports: list[str] | None = ... """ - The amount of storage (in gibibytes) to allocate initially for the DB - instance. Follow the allocation rules specified in `CreateDBInstance`. + The list of logs that the restored DB cluster is to export to CloudWatch + Logs. The values in the list depend on the DB engine being used. - This setting isn't valid for RDS for SQL Server. + **RDS for MySQL** - Note: - Be sure to allocate enough storage for your new DB instance so that the - restore operation can succeed. You can also allocate additional storage - for future growth. - """ - db_instance_class: str | None = ... - """ - The compute and memory capacity of the DB instance, for example - db.m4.large. Not all DB instance classes are available in all Amazon Web - Services Regions, or for all database engines. For the full list of DB - instance classes, and availability for your engine, see [DB Instance - Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) - in the *Amazon RDS User Guide.* + Possible values are `error`, `general`, `slowquery`, and + `iam-db-auth-error`. - Importing from Amazon S3 isn't supported on the db.t2.micro DB instance - class. - """ - engine: str | None = ... - """ - The name of the database engine to be used for this instance. + **RDS for PostgreSQL** - Valid Values: `mysql` - """ - master_username: str | None = ... - """ - The name for the master user. + Possible values are `postgresql`, `upgrade`, and `iam-db-auth-error`. - Constraints: + **Aurora MySQL** - - Must be 1 to 16 letters or numbers. + Possible values are `audit`, `error`, `general`, `instance`, + `slowquery`, and `iam-db-auth-error`. - - First character must be a letter. + **Aurora PostgreSQL** - - Can't be a reserved word for the chosen database engine. + Possible value are `instance`, `postgresql`, and `iam-db-auth-error`. + + For more information about exporting CloudWatch Logs for Amazon RDS, see + [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + + For more information about exporting CloudWatch Logs for Amazon Aurora, + see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon Aurora User Guide*. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters """ - master_user_password: str | None = ... + db_cluster_parameter_group_name: str | None = ... """ - The password for the master user. + The name of the custom DB cluster parameter group to associate with this + DB cluster. + + If the `DBClusterParameterGroupName` parameter is omitted, the default + DB cluster parameter group for the specified engine is used. Constraints: - - Can't be specified if `ManageMasterUserPassword` is turned on. + - If supplied, must match the name of an existing DB cluster parameter + group. - - Can include any printable ASCII character except \"/\", \"\"\", or - \"@\". For RDS for Oracle, can't include the \"&\" (ampersand) or the - \"'\" (single quotes) character. + - Must be 1 to 255 letters, numbers, or hyphens. - Length Constraints: + - First character must be a letter. - - RDS for Db2 - Must contain from 8 to 128 characters. + - Can't end with a hyphen or contain two consecutive hyphens. - - RDS for MariaDB - Must contain from 8 to 41 characters. + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + deletion_protection: bool | None = ... + """ + Specifies whether to enable deletion protection for the DB cluster. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + copy_tags_to_snapshot: bool | None = ... + """ + Specifies whether to copy all tags from the restored DB cluster to + snapshots of the restored DB cluster. The default is not to copy them. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + domain: str | None = ... + """ + The Active Directory directory ID to restore the DB cluster in. The + domain must be created prior to this operation. + + For Amazon Aurora DB clusters, Amazon RDS can use Kerberos + Authentication to authenticate users that connect to the DB cluster. For + more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html) + in the *Amazon Aurora User Guide*. + + Valid for: Aurora DB clusters only + """ + domain_iam_role_name: str | None = ... + """ + The name of the IAM role to be used when making API calls to the + Directory Service. + + Valid for: Aurora DB clusters only + """ + db_cluster_instance_class: str | None = ... + """ + The compute and memory capacity of the each DB instance in the Multi-AZ + DB cluster, for example db.m6gd.xlarge. Not all DB instance classes are + available in all Amazon Web Services Regions, or for all database + engines. + + For the full list of DB instance classes, and availability for your + engine, see [DB instance + class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide*. + + Valid for: Multi-AZ DB clusters only + """ + storage_type: str | None = ... + """ + Specifies the storage type to be associated with the DB cluster. + + When specified for a Multi-AZ DB cluster, a value for the `Iops` + parameter is required. + + Valid Values: `aurora`, `aurora-iopt1` (Aurora DB clusters); `io1` + (Multi-AZ DB clusters) + + Default: `aurora` (Aurora DB clusters); `io1` (Multi-AZ DB clusters) + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + publicly_accessible: bool | None = ... + """ + Specifies whether the DB cluster is publicly accessible. + + When the DB cluster is publicly accessible, its Domain Name System (DNS) + endpoint resolves to the private IP address from within the DB + cluster's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB cluster's VPC. Access to the DB cluster + is ultimately controlled by the security group it uses. That public + access is not permitted if the security group assigned to the DB cluster + doesn't permit it. + + When the DB cluster isn't publicly accessible, it is an internal DB + cluster with a DNS name that resolves to a private IP address. + + Default: The default behavior varies depending on whether + `DBSubnetGroupName` is specified. + + If `DBSubnetGroupName` isn't specified, and `PubliclyAccessible` isn't + specified, the following applies: + + - If the default VPC in the target Region doesn't have an internet + gateway attached to it, the DB cluster is private. + + - If the default VPC in the target Region has an internet gateway + attached to it, the DB cluster is public. + + If `DBSubnetGroupName` is specified, and `PubliclyAccessible` isn't + specified, the following applies: + + - If the subnets are part of a VPC that doesn't have an internet gateway + attached to it, the DB cluster is private. + + - If the subnets are part of a VPC that has an internet gateway attached + to it, the DB cluster is public. + + Valid for: Multi-AZ DB clusters only + """ + iops: int | None = ... + """ + The amount of Provisioned IOPS (input/output operations per second) to + be initially allocated for each DB instance in the Multi-AZ DB cluster. + + For information about valid IOPS values, see [Amazon RDS Provisioned + IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide*. + + Constraints: Must be a multiple between .5 and 50 of the storage amount + for the DB instance. + + Valid for: Multi-AZ DB clusters only + """ + network_type: str | None = ... + """ + The network type of the DB cluster. + + Valid Values: + + - `IPV4` + + - `DUAL` + + The network type is determined by the `DBSubnetGroup` specified for the + DB cluster. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon Aurora User Guide.* + + Valid for: Aurora DB clusters only + """ + source_db_cluster_resource_id: str | None = ... + """The resource ID of the source DB cluster from which to restore.""" + serverless_v2_scaling_configuration: ServerlessV2ScalingConfiguration | None = ... + """ + Contains the scaling configuration of an Aurora Serverless v2 DB + cluster. + + For more information, see [Using Amazon Aurora Serverless + v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + in the *Amazon Aurora User Guide*. + """ + scaling_configuration: ScalingConfiguration | None = ... + """ + For DB clusters in `serverless` DB engine mode, the scaling properties + of the DB cluster. + + Valid for: Aurora DB clusters only + """ + engine_mode: str | None = ... + """ + The engine mode of the new cluster. Specify `provisioned` or + `serverless`, depending on the type of the cluster you are creating. You + can create an Aurora Serverless v1 clone from a provisioned cluster, or + a provisioned clone from an Aurora Serverless v1 cluster. To create a + clone that is an Aurora Serverless v1 cluster, the original cluster must + be an Aurora Serverless v1 cluster or an encrypted provisioned cluster. + To create a full copy that is an Aurora Serverless v1 cluster, specify + the engine mode `serverless`. + + Valid for: Aurora DB clusters only + """ + rds_custom_cluster_configuration: RdsCustomClusterConfiguration | None = ... + """Reserved for future use.""" + monitoring_interval: int | None = ... + """ + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB cluster. To turn off collecting + Enhanced Monitoring metrics, specify `0`. + + If `MonitoringRoleArn` is specified, also set `MonitoringInterval` to a + value other than `0`. + + Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + + Default: `0` + """ + monitoring_role_arn: str | None = ... + """ + The Amazon Resource Name (ARN) for the IAM role that permits RDS to send + Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is + `arn:aws:iam:123456789012:role/emaccess`. + + If `MonitoringInterval` is set to a value other than `0`, supply a + `MonitoringRoleArn` value. + """ + enable_performance_insights: bool | None = ... + """Specifies whether to turn on Performance Insights for the DB cluster.""" + performance_insights_kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. + """ + performance_insights_retention_period: int | None = ... + """ + The number of days to retain Performance Insights data. + + Valid Values: + + - `7` + + - *month* * 31, where *month* is a number of months from 1-23. + Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 + months * 31) + + - `731` + + Default: `7` days + + If you specify a retention period that isn't valid, such as `94`, + Amazon RDS issues an error. + """ + backup_retention_period: int | None = ... + """ + The number of days for which automated backups are retained. Specify a + minimum value of `1`. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Default: Uses existing setting + + Constraints: + + - Must be a value from 1 to 35. + """ + preferred_backup_window: str | None = ... + """ + The daily time range during which automated backups are created if + automated backups are enabled, using the `BackupRetentionPeriod` + parameter. + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region. To view the time + blocks available, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) + in the *Amazon Aurora User Guide*. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + engine_lifecycle_support: str | None = ... + """ + The lifecycle type for this DB cluster. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB cluster into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, RDS automatically upgrades your restored DB cluster to a + higher engine version, if the major engine version is past its end of + standard support date. + + You can use this setting to enroll your DB cluster into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB cluster past the end of standard support + for that engine version. For more information, see the following + sections: + + - Amazon Aurora - [Amazon RDS Extended Support with Amazon + Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) + in the *Amazon Aurora User Guide* + + - Amazon RDS - [Amazon RDS Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide* + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + tag_specifications: list[TagSpecification] | None = ... + """ + Tags to assign to resources associated with the DB cluster. + + Valid Values: + + - `cluster-auto-backup` - The DB cluster's automated backup. + """ + enable_vpc_networking: bool | None = ... + """ + Specifies whether to enable VPC networking for the restored DB cluster. + Set this parameter to `false` to create a cluster without the VPC + network interface (ENI). + + This parameter must be used together with `EnableInternetAccessGateway`. + When both parameters are specified, IAM database authentication is + required. You must also specify `EnableIAMDatabaseAuthentication`. + + Valid for Cluster Type: Aurora PostgreSQL clusters + """ + enable_internet_access_gateway: bool | None = ... + """ + Specifies that the restored DB cluster should use internet-based + connectivity through an internet access gateway. This allows clients to + connect to the cluster over the internet without requiring a VPC. + + This parameter must be used together with `EnableVPCNetworking` set to + `false`. When both parameters are specified, IAM database authentication + is required. You must also specify `EnableIAMDatabaseAuthentication`. + + Valid for Cluster Type: Aurora PostgreSQL clusters + """ + associated_roles: list[DBClusterAssociatedRole] | None = ... + """ + A list of Amazon Web Services Identity and Access Management (IAM) roles + to associate with the DB cluster when it's restored to a point in time. + Each role grants the DB cluster permission to access other Amazon Web + Services on your behalf. For each role, specify a role ARN and, + optionally, the feature name (such as `s3Import`, `s3Export`, or + `Lambda`). + + Valid for Cluster Type: Aurora DB clusters only + """ + +class RestoreDBClusterToPointInTimeInputDict(TypedDict, total=False): + """Dictionary form of `RestoreDBClusterToPointInTimeInput`.""" + + db_cluster_identifier: Required[str] + """ + The name of the new DB cluster to be created. + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens + + - First character must be a letter + + - Can't end with a hyphen or contain two consecutive hyphens + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + restore_type: str | None + """ + The type of restore to be performed. You can specify one of the + following values: + + - `full-copy` - The new DB cluster is restored as a full copy of the + source DB cluster. + + - `copy-on-write` - The new DB cluster is restored as a clone of the + source DB cluster. + + If you don't specify a `RestoreType` value, then the new DB cluster is + restored as a full copy of the source DB cluster. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + source_db_cluster_identifier: str | None + """ + The identifier of the source DB cluster from which to restore. + + Constraints: + + - Must match the identifier of an existing DBCluster. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + restore_to_time: datetime | None + """ + The date and time to restore the DB cluster to. + + Valid Values: Value must be a time in Universal Coordinated Time (UTC) + format + + Constraints: + + - Must be before the latest restorable time for the DB instance + + - Must be specified if `UseLatestRestorableTime` parameter isn't + provided + + - Can't be specified if the `UseLatestRestorableTime` parameter is + enabled + + - Can't be specified if the `RestoreType` parameter is `copy-on-write` + + Example: `2015-03-07T23:45:00Z` + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + use_latest_restorable_time: bool | None + """ + Specifies whether to restore the DB cluster to the latest restorable + backup time. By default, the DB cluster isn't restored to the latest + restorable backup time. + + Constraints: Can't be specified if `RestoreToTime` parameter is + provided. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + port: int | None + """ + The port number on which the new DB cluster accepts connections. + + Constraints: A value from `1150-65535`. + + Default: The default port for the engine. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + db_subnet_group_name: str | None + """ + The DB subnet group name to use for the new DB cluster. + + Constraints: If supplied, must match the name of an existing + DBSubnetGroup. + + Example: `mydbsubnetgroup` + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + option_group_name: str | None + """ + The name of the option group for the new DB cluster. + + DB clusters are associated with a default option group that can't be + modified. + """ + vpc_security_group_ids: Sequence[str] | None + """ + A list of VPC security groups that the new DB cluster belongs to. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to use when restoring an + encrypted DB cluster from an encrypted DB cluster. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + You can restore to a new DB cluster and encrypt the new DB cluster with + a KMS key that is different from the KMS key used to encrypt the source + DB cluster. The new DB cluster is encrypted with the KMS key identified + by the `KmsKeyId` parameter. + + If you don't specify a value for the `KmsKeyId` parameter, then the + following occurs: + + - If the DB cluster is encrypted, then the restored DB cluster is + encrypted using the KMS key that was used to encrypt the source DB + cluster. + + - If the DB cluster isn't encrypted, then the restored DB cluster + isn't encrypted. + + If `DBClusterIdentifier` refers to a DB cluster that isn't encrypted, + then the restore request is rejected. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + enable_iam_database_authentication: bool | None + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. + + For more information, see [IAM Database + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon Aurora User Guide* or [IAM database authentication for + MariaDB, MySQL, and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide*. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + backtrack_window: int | None + """ + The target backtrack window, in seconds. To disable backtracking, set + this value to 0. + + Default: 0 + + Constraints: + + - If specified, this value must be set to a number from 0 to 259,200 (72 + hours). + + Valid for: Aurora MySQL DB clusters only + """ + enable_cloudwatch_logs_exports: Sequence[str] | None + """ + The list of logs that the restored DB cluster is to export to CloudWatch + Logs. The values in the list depend on the DB engine being used. + + **RDS for MySQL** + + Possible values are `error`, `general`, `slowquery`, and + `iam-db-auth-error`. + + **RDS for PostgreSQL** + + Possible values are `postgresql`, `upgrade`, and `iam-db-auth-error`. + + **Aurora MySQL** + + Possible values are `audit`, `error`, `general`, `instance`, + `slowquery`, and `iam-db-auth-error`. + + **Aurora PostgreSQL** + + Possible value are `instance`, `postgresql`, and `iam-db-auth-error`. + + For more information about exporting CloudWatch Logs for Amazon RDS, see + [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + + For more information about exporting CloudWatch Logs for Amazon Aurora, + see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon Aurora User Guide*. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + db_cluster_parameter_group_name: str | None + """ + The name of the custom DB cluster parameter group to associate with this + DB cluster. + + If the `DBClusterParameterGroupName` parameter is omitted, the default + DB cluster parameter group for the specified engine is used. + + Constraints: + + - If supplied, must match the name of an existing DB cluster parameter + group. + + - Must be 1 to 255 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + deletion_protection: bool | None + """ + Specifies whether to enable deletion protection for the DB cluster. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + copy_tags_to_snapshot: bool | None + """ + Specifies whether to copy all tags from the restored DB cluster to + snapshots of the restored DB cluster. The default is not to copy them. + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + domain: str | None + """ + The Active Directory directory ID to restore the DB cluster in. The + domain must be created prior to this operation. + + For Amazon Aurora DB clusters, Amazon RDS can use Kerberos + Authentication to authenticate users that connect to the DB cluster. For + more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html) + in the *Amazon Aurora User Guide*. + + Valid for: Aurora DB clusters only + """ + domain_iam_role_name: str | None + """ + The name of the IAM role to be used when making API calls to the + Directory Service. + + Valid for: Aurora DB clusters only + """ + db_cluster_instance_class: str | None + """ + The compute and memory capacity of the each DB instance in the Multi-AZ + DB cluster, for example db.m6gd.xlarge. Not all DB instance classes are + available in all Amazon Web Services Regions, or for all database + engines. + + For the full list of DB instance classes, and availability for your + engine, see [DB instance + class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide*. + + Valid for: Multi-AZ DB clusters only + """ + storage_type: str | None + """ + Specifies the storage type to be associated with the DB cluster. + + When specified for a Multi-AZ DB cluster, a value for the `Iops` + parameter is required. + + Valid Values: `aurora`, `aurora-iopt1` (Aurora DB clusters); `io1` + (Multi-AZ DB clusters) + + Default: `aurora` (Aurora DB clusters); `io1` (Multi-AZ DB clusters) + + Valid for: Aurora DB clusters and Multi-AZ DB clusters + """ + publicly_accessible: bool | None + """ + Specifies whether the DB cluster is publicly accessible. + + When the DB cluster is publicly accessible, its Domain Name System (DNS) + endpoint resolves to the private IP address from within the DB + cluster's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB cluster's VPC. Access to the DB cluster + is ultimately controlled by the security group it uses. That public + access is not permitted if the security group assigned to the DB cluster + doesn't permit it. + + When the DB cluster isn't publicly accessible, it is an internal DB + cluster with a DNS name that resolves to a private IP address. + + Default: The default behavior varies depending on whether + `DBSubnetGroupName` is specified. + + If `DBSubnetGroupName` isn't specified, and `PubliclyAccessible` isn't + specified, the following applies: + + - If the default VPC in the target Region doesn't have an internet + gateway attached to it, the DB cluster is private. + + - If the default VPC in the target Region has an internet gateway + attached to it, the DB cluster is public. + + If `DBSubnetGroupName` is specified, and `PubliclyAccessible` isn't + specified, the following applies: + + - If the subnets are part of a VPC that doesn't have an internet gateway + attached to it, the DB cluster is private. + + - If the subnets are part of a VPC that has an internet gateway attached + to it, the DB cluster is public. + + Valid for: Multi-AZ DB clusters only + """ + iops: int | None + """ + The amount of Provisioned IOPS (input/output operations per second) to + be initially allocated for each DB instance in the Multi-AZ DB cluster. + + For information about valid IOPS values, see [Amazon RDS Provisioned + IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide*. + + Constraints: Must be a multiple between .5 and 50 of the storage amount + for the DB instance. + + Valid for: Multi-AZ DB clusters only + """ + network_type: str | None + """ + The network type of the DB cluster. + + Valid Values: + + - `IPV4` + + - `DUAL` + + The network type is determined by the `DBSubnetGroup` specified for the + DB cluster. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon Aurora User Guide.* + + Valid for: Aurora DB clusters only + """ + source_db_cluster_resource_id: str | None + """The resource ID of the source DB cluster from which to restore.""" + serverless_v2_scaling_configuration: ( + ServerlessV2ScalingConfiguration | ServerlessV2ScalingConfigurationDict | None + ) + """ + Contains the scaling configuration of an Aurora Serverless v2 DB + cluster. + + For more information, see [Using Amazon Aurora Serverless + v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + in the *Amazon Aurora User Guide*. + """ + scaling_configuration: ScalingConfiguration | ScalingConfigurationDict | None + """ + For DB clusters in `serverless` DB engine mode, the scaling properties + of the DB cluster. + + Valid for: Aurora DB clusters only + """ + engine_mode: str | None + """ + The engine mode of the new cluster. Specify `provisioned` or + `serverless`, depending on the type of the cluster you are creating. You + can create an Aurora Serverless v1 clone from a provisioned cluster, or + a provisioned clone from an Aurora Serverless v1 cluster. To create a + clone that is an Aurora Serverless v1 cluster, the original cluster must + be an Aurora Serverless v1 cluster or an encrypted provisioned cluster. + To create a full copy that is an Aurora Serverless v1 cluster, specify + the engine mode `serverless`. + + Valid for: Aurora DB clusters only + """ + rds_custom_cluster_configuration: ( + RdsCustomClusterConfiguration | RdsCustomClusterConfigurationDict | None + ) + """Reserved for future use.""" + monitoring_interval: int | None + """ + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB cluster. To turn off collecting + Enhanced Monitoring metrics, specify `0`. + + If `MonitoringRoleArn` is specified, also set `MonitoringInterval` to a + value other than `0`. + + Valid Values: `0 | 1 | 5 | 10 | 15 | 30 | 60` + + Default: `0` + """ + monitoring_role_arn: str | None + """ + The Amazon Resource Name (ARN) for the IAM role that permits RDS to send + Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is + `arn:aws:iam:123456789012:role/emaccess`. + + If `MonitoringInterval` is set to a value other than `0`, supply a + `MonitoringRoleArn` value. + """ + enable_performance_insights: bool | None + """Specifies whether to turn on Performance Insights for the DB cluster.""" + performance_insights_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you don't specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. + """ + performance_insights_retention_period: int | None + """ + The number of days to retain Performance Insights data. + + Valid Values: + + - `7` + + - *month* * 31, where *month* is a number of months from 1-23. + Examples: `93` (3 months * 31), `341` (11 months * 31), `589` (19 + months * 31) + + - `731` + + Default: `7` days + + If you specify a retention period that isn't valid, such as `94`, + Amazon RDS issues an error. + """ + backup_retention_period: int | None + """ + The number of days for which automated backups are retained. Specify a + minimum value of `1`. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Default: Uses existing setting + + Constraints: + + - Must be a value from 1 to 35. + """ + preferred_backup_window: str | None + """ + The daily time range during which automated backups are created if + automated backups are enabled, using the `BackupRetentionPeriod` + parameter. + + The default is a 30-minute window selected at random from an 8-hour + block of time for each Amazon Web Services Region. To view the time + blocks available, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow) + in the *Amazon Aurora User Guide*. + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + engine_lifecycle_support: str | None + """ + The lifecycle type for this DB cluster. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB cluster into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, RDS automatically upgrades your restored DB cluster to a + higher engine version, if the major engine version is past its end of + standard support date. + + You can use this setting to enroll your DB cluster into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB cluster past the end of standard support + for that engine version. For more information, see the following + sections: + + - Amazon Aurora - [Amazon RDS Extended Support with Amazon + Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html) + in the *Amazon Aurora User Guide* + + - Amazon RDS - [Amazon RDS Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide* + + Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + Tags to assign to resources associated with the DB cluster. + + Valid Values: + + - `cluster-auto-backup` - The DB cluster's automated backup. + """ + enable_vpc_networking: bool | None + """ + Specifies whether to enable VPC networking for the restored DB cluster. + Set this parameter to `false` to create a cluster without the VPC + network interface (ENI). + + This parameter must be used together with `EnableInternetAccessGateway`. + When both parameters are specified, IAM database authentication is + required. You must also specify `EnableIAMDatabaseAuthentication`. + + Valid for Cluster Type: Aurora PostgreSQL clusters + """ + enable_internet_access_gateway: bool | None + """ + Specifies that the restored DB cluster should use internet-based + connectivity through an internet access gateway. This allows clients to + connect to the cluster over the internet without requiring a VPC. + + This parameter must be used together with `EnableVPCNetworking` set to + `false`. When both parameters are specified, IAM database authentication + is required. You must also specify `EnableIAMDatabaseAuthentication`. + + Valid for Cluster Type: Aurora PostgreSQL clusters + """ + associated_roles: ( + Sequence[DBClusterAssociatedRole | DBClusterAssociatedRoleDict] | None + ) + """ + A list of Amazon Web Services Identity and Access Management (IAM) roles + to associate with the DB cluster when it's restored to a point in time. + Each role grants the DB cluster permission to access other Amazon Web + Services on your behalf. For each role, specify a role ARN and, + optionally, the feature name (such as `s3Import`, `s3Export`, or + `Lambda`). + + Valid for Cluster Type: Aurora DB clusters only + """ + +@dataclass(kw_only=True) +class RestoreDBClusterToPointInTimeOutput(_SerdeShape): + """Dataclass for RestoreDBClusterToPointInTimeOutput structure.""" + + db_cluster: DBCluster | None = ... + """ + Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB + cluster. + + For an Amazon Aurora DB cluster, this data type is used as a response + element in the operations `CreateDBCluster`, `DeleteDBCluster`, + `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, + `PromoteReadReplicaDBCluster`, `RestoreDBClusterFromS3`, + `RestoreDBClusterFromSnapshot`, `RestoreDBClusterToPointInTime`, + `StartDBCluster`, and `StopDBCluster`. + + For a Multi-AZ DB cluster, this data type is used as a response element + in the operations `CreateDBCluster`, `DeleteDBCluster`, + `DescribeDBClusters`, `FailoverDBCluster`, `ModifyDBCluster`, + `RebootDBCluster`, `RestoreDBClusterFromSnapshot`, and + `RestoreDBClusterToPointInTime`. + + For more information on Amazon Aurora DB clusters, see [What is Amazon + Aurora?](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) + in the *Amazon Aurora User Guide.* + + For more information on Multi-AZ DB clusters, see [Multi-AZ deployments + with two readable standby DB + instances](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) + in the *Amazon RDS User Guide.* + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RestoreDBInstanceFromDBSnapshotInput(_SerdeShape): + """""" + + db_instance_identifier: str | None = ... + """ + The name of the DB instance to create from the DB snapshot. This + parameter isn't case-sensitive. + + Constraints: + + - Must contain from 1 to 63 numbers, letters, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `my-snapshot-id` + """ + db_snapshot_identifier: str | None = ... + """ + The identifier for the DB snapshot to restore from. + + Constraints: + + - Must match the identifier of an existing DB snapshot. + + - Can't be specified when `DBClusterSnapshotIdentifier` is specified. + + - Must be specified when `DBClusterSnapshotIdentifier` isn't specified. + + - If you are restoring from a shared manual DB snapshot, the + `DBSnapshotIdentifier` must be the ARN of the shared DB snapshot. + """ + db_instance_class: str | None = ... + """ + The compute and memory capacity of the Amazon RDS DB instance, for + example db.m4.large. Not all DB instance classes are available in all + Amazon Web Services Regions, or for all database engines. For the full + list of DB instance classes, and availability for your engine, see [DB + Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide.* + + Default: The same DBInstanceClass as the original DB instance. + """ + port: int | None = ... + """ + The port number on which the database accepts connections. + + Default: The same port as the original DB instance + + Constraints: Value must be `1150-65535` + """ + availability_zone: str | None = ... + """ + The Availability Zone (AZ) where the DB instance will be created. + + Default: A random, system-chosen Availability Zone. + + Constraint: You can't specify the `AvailabilityZone` parameter if the + DB instance is a Multi-AZ deployment. + + Example: `us-east-1a` + """ + db_subnet_group_name: str | None = ... + """ + The name of the DB subnet group to use for the new instance. + + Constraints: + + - If supplied, must match the name of an existing DB subnet group. + + Example: `mydbsubnetgroup` + """ + multi_az: bool | None = ... + """ + Specifies whether the DB instance is a Multi-AZ deployment. + + This setting doesn't apply to RDS Custom. + + Constraint: You can't specify the `AvailabilityZone` parameter if the + DB instance is a Multi-AZ deployment. + """ + publicly_accessible: bool | None = ... + """ + Specifies whether the DB instance is publicly accessible. + + When the DB instance is publicly accessible, its Domain Name System + (DNS) endpoint resolves to the private IP address from within the DB + instance's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB instance's VPC. Access to the DB + instance is ultimately controlled by the security group it uses. That + public access is not permitted if the security group assigned to the DB + instance doesn't permit it. + + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. + + For more information, see CreateDBInstance. + """ + auto_minor_version_upgrade: bool | None = ... + """ + Specifies whether to automatically apply minor version upgrades to the + DB instance during the maintenance window. + + If you restore an RDS Custom DB instance, you must disable this + parameter. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + license_model: str | None = ... + """ + License model information for the restored DB instance. + + Note: + License models for RDS for Db2 require additional configuration. The + bring your own license (BYOL) model requires a custom parameter group + and an Amazon Web Services License Manager self-managed license. The Db2 + license through Amazon Web Services Marketplace model requires an Amazon + Web Services Marketplace subscription. For more information, see [Amazon + RDS for Db2 licensing + options](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + + Valid Values: + + - RDS for Db2 - `bring-your-own-license | marketplace-license` + + - RDS for MariaDB - `general-public-license` + + - RDS for Microsoft SQL Server - + `license-included | bring-your-own-media` + + - RDS for MySQL - `general-public-license` + + - RDS for Oracle - `bring-your-own-license | license-included` + + - RDS for PostgreSQL - `postgresql-license` + + Default: Same as the source. + """ + db_name: str | None = ... + """ + The name of the database for the restored DB instance. + + This parameter only applies to RDS for Oracle and RDS for SQL Server DB + instances. It doesn't apply to the other engines or to RDS Custom DB + instances. + """ + engine: str | None = ... + """ + The database engine to use for the new instance. + + This setting doesn't apply to RDS Custom. + + Default: The same as source + + Constraint: Must be compatible with the engine of the source. For + example, you can restore a MariaDB 10.1 DB instance from a MySQL 5.6 + snapshot. + + Valid Values: + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + iops: int | None = ... + """ + Specifies the amount of provisioned IOPS for the DB instance, expressed + in I/O operations per second. If this parameter isn't specified, the + IOPS value is taken from the backup. If this parameter is set to 0, the + new instance is converted to a non-PIOPS instance. The conversion takes + additional time, though your DB instance is available for connections + before the conversion starts. + + The provisioned IOPS value must follow the requirements for your + database engine. For more information, see [Amazon RDS Provisioned IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide.* + + Constraints: Must be an integer greater than 1000. + """ + storage_throughput: int | None = ... + """ + Specifies the storage throughput value for the DB instance. + + This setting doesn't apply to RDS Custom or Amazon Aurora. + """ + option_group_name: str | None = ... + """ + The name of the option group to be used for the restored DB instance. + + Permanent options, such as the TDE option for Oracle Advanced Security + TDE, can't be removed from an option group, and that option group + can't be removed from a DB instance after it is associated with a DB + instance. + + This setting doesn't apply to RDS Custom. + """ + tags: list[Tag] | None = ... + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + storage_type: str | None = ... + """ + Specifies the storage type to be associated with the DB instance. + + Valid Values: `gp2 | gp3 | io1 | io2 | standard` + + If you specify `io1`, `io2`, or `gp3`, you must also include a value for + the `Iops` parameter. + + Default: `io1` if the `Iops` parameter is specified, otherwise `gp3` + """ + tde_credential_arn: str | None = ... + """ + The ARN from the key store with which to associate the instance for TDE + encryption. + + This setting doesn't apply to RDS Custom. + """ + tde_credential_password: str | None = ... + """ + The password for the given ARN from the key store in order to access the + device. + + This setting doesn't apply to RDS Custom. + """ + vpc_security_group_ids: list[str] | None = ... + """ + A list of EC2 VPC security groups to associate with this DB instance. + + Default: The default EC2 VPC security group for the DB subnet group's + VPC. + """ + domain: str | None = ... + """ + The Active Directory directory ID to restore the DB instance in. The + domain/ must be created prior to this operation. Currently, you can + create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB + instances in an Active Directory Domain. + + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom. + """ + domain_fqdn: str | None = ... + """ + The fully qualified domain name (FQDN) of an Active Directory domain. + + Constraints: + + - Can't be longer than 64 characters. + + Example: `mymanagedADtest.mymanagedAD.mydomain` + """ + domain_ou: str | None = ... + """ + The Active Directory organizational unit for your DB instance to join. + + Constraints: + + - Must be in the distinguished name format. + + - Can't be longer than 64 characters. + + Example: + `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` + """ + domain_auth_secret_arn: str | None = ... + """ + The ARN for the Secrets Manager secret with the credentials for the user + joining the domain. + + Constraints: + + - Can't be longer than 64 characters. + + Example: + `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` + """ + domain_dns_ips: list[str] | None = ... + """ + The IPv4 DNS IP addresses of your primary and secondary Active Directory + domain controllers. + + Constraints: + + - Two IP addresses must be provided. If there isn't a secondary domain + controller, use the IP address of the primary domain controller for + both entries in the list. + + Example: `123.124.125.126,234.235.236.237` + """ + copy_tags_to_snapshot: bool | None = ... + """ + Specifies whether to copy all tags from the restored DB instance to + snapshots of the DB instance. + + In most cases, tags aren't copied by default. However, when you restore + a DB instance from a DB snapshot, RDS checks whether you specify new + tags. If yes, the new tags are added to the restored DB instance. If + there are no new tags, RDS looks for the tags from the source DB + instance for the DB snapshot, and then adds those tags to the restored + DB instance. + + For more information, see [Copying tags to DB instance + snapshots](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.CopyTags) + in the *Amazon RDS User Guide*. + """ + domain_iam_role_name: str | None = ... + """ + The name of the IAM role to use when making API calls to the Directory + Service. + + This setting doesn't apply to RDS Custom DB instances. + """ + enable_iam_database_authentication: bool | None = ... + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping is disabled. + + For more information about IAM database authentication, see [IAM + Database Authentication for MySQL and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide.* + + This setting doesn't apply to RDS Custom. + """ + enable_cloudwatch_logs_exports: list[str] | None = ... + """ + The list of logs for the restored DB instance to export to CloudWatch + Logs. The values in the list depend on the DB engine. For more + information, see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom. + """ + processor_features: list[ProcessorFeature] | None = ... + """ + The number of CPU cores and the number of threads per core for the DB + instance class of the DB instance. + + This setting doesn't apply to RDS Custom. + """ + use_default_processor_features: bool | None = ... + """ + Specifies whether the DB instance class of the DB instance uses its + default processor features. + + This setting doesn't apply to RDS Custom. + """ + db_parameter_group_name: str | None = ... + """ + The name of the DB parameter group to associate with this DB instance. + + If you don't specify a value for `DBParameterGroupName`, then RDS uses + the default `DBParameterGroup` for the specified DB engine. + + This setting doesn't apply to RDS Custom. + + Constraints: + + - If supplied, must match the name of an existing DB parameter group. + + - Must be 1 to 255 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + """ + deletion_protection: bool | None = ... + """ + Specifies whether to enable deletion protection for the DB instance. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. For more information, see + [Deleting a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + """ + enable_customer_owned_ip: bool | None = ... + """ + Specifies whether to enable a customer-owned IP address (CoIP) for an + RDS on Outposts DB instance. + + A *CoIP* provides local or external connectivity to resources in your + Outpost subnets through your on-premises network. For some use cases, a + CoIP can provide lower latency for connections to the DB instance from + outside of its virtual private cloud (VPC) on your local network. + + This setting doesn't apply to RDS Custom. + + For more information about RDS on Outposts, see [Working with Amazon RDS + on Amazon Web Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + + For more information about CoIPs, see [Customer-owned IP + addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) + in the *Amazon Web Services Outposts User Guide*. + """ + network_type: str | None = ... + """ + The network type of the DB instance. + + Valid Values: + + - `IPV4` + + - `DUAL` + + The network type is determined by the `DBSubnetGroup` specified for the + DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon RDS User Guide.* + """ + backup_target: str | None = ... + """ + Specifies where automated backups and manual snapshots are stored for + the restored DB instance. + + Possible values are `local` (Dedicated Local Zone), `outposts` (Amazon + Web Services Outposts), and `region` (Amazon Web Services Region). The + default is `region`. + + For more information, see [Working with Amazon RDS on Amazon Web + Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + """ + custom_iam_instance_profile: str | None = ... + """ + The instance profile associated with the underlying Amazon EC2 instance + of an RDS Custom DB instance. The instance profile must meet the + following requirements: + + - The profile must exist in your account. + + - The profile must have an IAM role that Amazon EC2 has permissions to + assume. + + - The instance profile name and the associated IAM role name must start + with the prefix `AWSRDSCustom`. + + For the list of permissions required for the IAM role, see [Configure + IAM and your + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) + in the *Amazon RDS User Guide*. + + This setting is required for RDS Custom. + """ + allocated_storage: int | None = ... + """ + The amount of storage (in gibibytes) to allocate initially for the DB + instance. Follow the allocation rules specified in CreateDBInstance. + + This setting isn't valid for RDS for SQL Server. + + Note: + Be sure to allocate enough storage for your new DB instance so that the + restore operation can succeed. You can also allocate additional storage + for future growth. + """ + db_cluster_snapshot_identifier: str | None = ... + """ + The identifier for the Multi-AZ DB cluster snapshot to restore from. + + For more information on Multi-AZ DB clusters, see [Multi-AZ DB cluster + deployments](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) + in the *Amazon RDS User Guide*. + + Constraints: + + - Must match the identifier of an existing Multi-AZ DB cluster snapshot. + + - Can't be specified when `DBSnapshotIdentifier` is specified. + + - Must be specified when `DBSnapshotIdentifier` isn't specified. + + - If you are restoring from a shared manual Multi-AZ DB cluster + snapshot, the `DBClusterSnapshotIdentifier` must be the ARN of the + shared snapshot. + + - Can't be the identifier of an Aurora DB cluster snapshot. + """ + backup_retention_period: int | None = ... + """ + The number of days to retain automated backups. Setting this parameter + to a positive number enables backups. Setting this parameter to 0 + disables automated backups. + + Note: + Enabling and disabling backups can result in a brief I/O suspension that + lasts from a few seconds to a few minutes, depending on the size and + class of your DB instance. + + This setting doesn't apply to Amazon Aurora DB instances. The retention + period for automated backups is managed by the DB cluster. For more + information, see `ModifyDBCluster`. + + Default: Uses existing setting + + Constraints: + + - Must be a value from 0 to 35. + + - Can't be set to 0 if the DB instance is a source to read replicas. + + - Can't be set to 0 for an RDS Custom for Oracle DB instance. + """ + preferred_backup_window: str | None = ... + """ + The daily time range during which automated backups are created if + automated backups are enabled, as determined by the + `BackupRetentionPeriod` parameter. Changing this parameter doesn't + result in an outage and the change is asynchronously applied as soon as + possible. The default is a 30-minute window selected at random from an + 8-hour block of time for each Amazon Web Services Region. For more + information, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora DB instances. The daily + time range for creating automated backups is managed by the DB cluster. + For more information, see `ModifyDBCluster`. + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + db_capacity_reservation_identifier: str | None = ... + """ + The identifier or the name of the DB capacity reservation to associate + with this DB instance. You can specify the identifier, which has the + prefix `dbcr-`, or the reservation name. When you specify this + parameter, the DB instance uses reserved capacity from the specified + reservation. + + If you specify `AvailabilityZone`, Amazon RDS places the DB instance in + that Availability Zone, and the reservation must cover it. + + Constraints: + + - The reservation must reserve capacity for the DB instance class and + the database engine of the DB instance. + + - If the reservation reserves capacity for a specific license model, the + license model of the DB instance must match it. + + - The reservation must be in the `active` state, and it must not be past + its end date. + + - If you specify `AvailabilityZone`, it must be one of the Availability + Zones of the reservation. + + - For a Multi-AZ DB instance, the reservation must cover two or more + Availability Zones. A Multi-AZ DB instance uses one unit of reserved + capacity in each of two Availability Zones. If the reservation covers + more than two Availability Zones, Amazon RDS chooses the two that the + DB instance uses. + + - The reservation must have available capacity in each Availability Zone + that the DB instance uses. + + - The DB subnet group must be in a VPC with default tenancy. + + - The DB subnet group must cover each Availability Zone that the DB + instance uses. + """ + dedicated_log_volume: bool | None = ... + """ + Specifies whether to enable a dedicated log volume (DLV) for the DB + instance. + """ + ca_certificate_identifier: str | None = ... + """ + The CA certificate identifier to use for the DB instance's server + certificate. + + This setting doesn't apply to RDS Custom DB instances. + + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a + connection to a DB + cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + in the *Amazon Aurora User Guide*. + """ + engine_lifecycle_support: str | None = ... + """ + The lifecycle type for this DB instance. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB instance into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, RDS automatically upgrades your restored DB instance to a + higher engine version, if the major engine version is past its end of + standard support date. + + You can use this setting to enroll your DB instance into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB instance past the end of standard + support for that engine version. For more information, see [Amazon RDS + Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide*. + + This setting applies only to RDS for MySQL and RDS for PostgreSQL. For + Amazon Aurora DB instances, the engine lifecycle support is managed by + the DB cluster. + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + additional_storage_volumes: list[AdditionalStorageVolume] | None = ... + """ + A list of additional storage volumes to create for the DB instance. You + can create up to three additional storage volumes using the names + `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. Additional storage volumes + are supported for RDS for Oracle and RDS for SQL Server DB instances + only. + """ + tag_specifications: list[TagSpecification] | None = ... + """ + Tags to assign to resources associated with the DB instance. + + Valid Values: + + - `auto-backup` - The DB instance's automated backup. + """ + manage_master_user_password: bool | None = ... + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager in the restored DB instance. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide*. + + Constraints: + + - Applies to RDS for Oracle only. + """ + master_user_secret_kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + +class RestoreDBInstanceFromDBSnapshotInputDict(TypedDict, total=False): + """Dictionary form of `RestoreDBInstanceFromDBSnapshotInput`.""" + + db_instance_identifier: Required[str] + """ + The name of the DB instance to create from the DB snapshot. This + parameter isn't case-sensitive. + + Constraints: + + - Must contain from 1 to 63 numbers, letters, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `my-snapshot-id` + """ + db_snapshot_identifier: str | None + """ + The identifier for the DB snapshot to restore from. + + Constraints: + + - Must match the identifier of an existing DB snapshot. + + - Can't be specified when `DBClusterSnapshotIdentifier` is specified. + + - Must be specified when `DBClusterSnapshotIdentifier` isn't specified. + + - If you are restoring from a shared manual DB snapshot, the + `DBSnapshotIdentifier` must be the ARN of the shared DB snapshot. + """ + db_instance_class: str | None + """ + The compute and memory capacity of the Amazon RDS DB instance, for + example db.m4.large. Not all DB instance classes are available in all + Amazon Web Services Regions, or for all database engines. For the full + list of DB instance classes, and availability for your engine, see [DB + Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide.* + + Default: The same DBInstanceClass as the original DB instance. + """ + port: int | None + """ + The port number on which the database accepts connections. + + Default: The same port as the original DB instance + + Constraints: Value must be `1150-65535` + """ + availability_zone: str | None + """ + The Availability Zone (AZ) where the DB instance will be created. + + Default: A random, system-chosen Availability Zone. + + Constraint: You can't specify the `AvailabilityZone` parameter if the + DB instance is a Multi-AZ deployment. + + Example: `us-east-1a` + """ + db_subnet_group_name: str | None + """ + The name of the DB subnet group to use for the new instance. + + Constraints: + + - If supplied, must match the name of an existing DB subnet group. + + Example: `mydbsubnetgroup` + """ + multi_az: bool | None + """ + Specifies whether the DB instance is a Multi-AZ deployment. + + This setting doesn't apply to RDS Custom. + + Constraint: You can't specify the `AvailabilityZone` parameter if the + DB instance is a Multi-AZ deployment. + """ + publicly_accessible: bool | None + """ + Specifies whether the DB instance is publicly accessible. + + When the DB instance is publicly accessible, its Domain Name System + (DNS) endpoint resolves to the private IP address from within the DB + instance's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB instance's VPC. Access to the DB + instance is ultimately controlled by the security group it uses. That + public access is not permitted if the security group assigned to the DB + instance doesn't permit it. + + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. + + For more information, see CreateDBInstance. + """ + auto_minor_version_upgrade: bool | None + """ + Specifies whether to automatically apply minor version upgrades to the + DB instance during the maintenance window. + + If you restore an RDS Custom DB instance, you must disable this + parameter. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + license_model: str | None + """ + License model information for the restored DB instance. + + Note: + License models for RDS for Db2 require additional configuration. The + bring your own license (BYOL) model requires a custom parameter group + and an Amazon Web Services License Manager self-managed license. The Db2 + license through Amazon Web Services Marketplace model requires an Amazon + Web Services Marketplace subscription. For more information, see [Amazon + RDS for Db2 licensing + options](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + + Valid Values: + + - RDS for Db2 - `bring-your-own-license | marketplace-license` + + - RDS for MariaDB - `general-public-license` + + - RDS for Microsoft SQL Server - + `license-included | bring-your-own-media` + + - RDS for MySQL - `general-public-license` + + - RDS for Oracle - `bring-your-own-license | license-included` + + - RDS for PostgreSQL - `postgresql-license` + + Default: Same as the source. + """ + db_name: str | None + """ + The name of the database for the restored DB instance. + + This parameter only applies to RDS for Oracle and RDS for SQL Server DB + instances. It doesn't apply to the other engines or to RDS Custom DB + instances. + """ + engine: str | None + """ + The database engine to use for the new instance. + + This setting doesn't apply to RDS Custom. + + Default: The same as source + + Constraint: Must be compatible with the engine of the source. For + example, you can restore a MariaDB 10.1 DB instance from a MySQL 5.6 + snapshot. + + Valid Values: + + - `db2-ae` + + - `db2-ce` + + - `db2-se` + + - `mariadb` + + - `mysql` + + - `oracle-ee` + + - `oracle-ee-cdb` + + - `oracle-se2` + + - `oracle-se2-cdb` + + - `postgres` + + - `sqlserver-ee` + + - `sqlserver-se` + + - `sqlserver-ex` + + - `sqlserver-web` + """ + iops: int | None + """ + Specifies the amount of provisioned IOPS for the DB instance, expressed + in I/O operations per second. If this parameter isn't specified, the + IOPS value is taken from the backup. If this parameter is set to 0, the + new instance is converted to a non-PIOPS instance. The conversion takes + additional time, though your DB instance is available for connections + before the conversion starts. + + The provisioned IOPS value must follow the requirements for your + database engine. For more information, see [Amazon RDS Provisioned IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide.* + + Constraints: Must be an integer greater than 1000. + """ + storage_throughput: int | None + """ + Specifies the storage throughput value for the DB instance. + + This setting doesn't apply to RDS Custom or Amazon Aurora. + """ + option_group_name: str | None + """ + The name of the option group to be used for the restored DB instance. + + Permanent options, such as the TDE option for Oracle Advanced Security + TDE, can't be removed from an option group, and that option group + can't be removed from a DB instance after it is associated with a DB + instance. + + This setting doesn't apply to RDS Custom. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + storage_type: str | None + """ + Specifies the storage type to be associated with the DB instance. + + Valid Values: `gp2 | gp3 | io1 | io2 | standard` + + If you specify `io1`, `io2`, or `gp3`, you must also include a value for + the `Iops` parameter. + + Default: `io1` if the `Iops` parameter is specified, otherwise `gp3` + """ + tde_credential_arn: str | None + """ + The ARN from the key store with which to associate the instance for TDE + encryption. + + This setting doesn't apply to RDS Custom. + """ + tde_credential_password: str | None + """ + The password for the given ARN from the key store in order to access the + device. + + This setting doesn't apply to RDS Custom. + """ + vpc_security_group_ids: Sequence[str] | None + """ + A list of EC2 VPC security groups to associate with this DB instance. + + Default: The default EC2 VPC security group for the DB subnet group's + VPC. + """ + domain: str | None + """ + The Active Directory directory ID to restore the DB instance in. The + domain/ must be created prior to this operation. Currently, you can + create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB + instances in an Active Directory Domain. + + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom. + """ + domain_fqdn: str | None + """ + The fully qualified domain name (FQDN) of an Active Directory domain. + + Constraints: + + - Can't be longer than 64 characters. + + Example: `mymanagedADtest.mymanagedAD.mydomain` + """ + domain_ou: str | None + """ + The Active Directory organizational unit for your DB instance to join. + + Constraints: + + - Must be in the distinguished name format. + + - Can't be longer than 64 characters. + + Example: + `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` + """ + domain_auth_secret_arn: str | None + """ + The ARN for the Secrets Manager secret with the credentials for the user + joining the domain. + + Constraints: + + - Can't be longer than 64 characters. + + Example: + `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` + """ + domain_dns_ips: Sequence[str] | None + """ + The IPv4 DNS IP addresses of your primary and secondary Active Directory + domain controllers. + + Constraints: + + - Two IP addresses must be provided. If there isn't a secondary domain + controller, use the IP address of the primary domain controller for + both entries in the list. + + Example: `123.124.125.126,234.235.236.237` + """ + copy_tags_to_snapshot: bool | None + """ + Specifies whether to copy all tags from the restored DB instance to + snapshots of the DB instance. + + In most cases, tags aren't copied by default. However, when you restore + a DB instance from a DB snapshot, RDS checks whether you specify new + tags. If yes, the new tags are added to the restored DB instance. If + there are no new tags, RDS looks for the tags from the source DB + instance for the DB snapshot, and then adds those tags to the restored + DB instance. + + For more information, see [Copying tags to DB instance + snapshots](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.CopyTags) + in the *Amazon RDS User Guide*. + """ + domain_iam_role_name: str | None + """ + The name of the IAM role to use when making API calls to the Directory + Service. + + This setting doesn't apply to RDS Custom DB instances. + """ + enable_iam_database_authentication: bool | None + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping is disabled. + + For more information about IAM database authentication, see [IAM + Database Authentication for MySQL and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide.* + + This setting doesn't apply to RDS Custom. + """ + enable_cloudwatch_logs_exports: Sequence[str] | None + """ + The list of logs for the restored DB instance to export to CloudWatch + Logs. The values in the list depend on the DB engine. For more + information, see [Publishing Database Logs to Amazon CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom. + """ + processor_features: Sequence[ProcessorFeature | ProcessorFeatureDict] | None + """ + The number of CPU cores and the number of threads per core for the DB + instance class of the DB instance. + + This setting doesn't apply to RDS Custom. + """ + use_default_processor_features: bool | None + """ + Specifies whether the DB instance class of the DB instance uses its + default processor features. + + This setting doesn't apply to RDS Custom. + """ + db_parameter_group_name: str | None + """ + The name of the DB parameter group to associate with this DB instance. + + If you don't specify a value for `DBParameterGroupName`, then RDS uses + the default `DBParameterGroup` for the specified DB engine. + + This setting doesn't apply to RDS Custom. + + Constraints: + + - If supplied, must match the name of an existing DB parameter group. + + - Must be 1 to 255 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + """ + deletion_protection: bool | None + """ + Specifies whether to enable deletion protection for the DB instance. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. For more information, see + [Deleting a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + """ + enable_customer_owned_ip: bool | None + """ + Specifies whether to enable a customer-owned IP address (CoIP) for an + RDS on Outposts DB instance. + + A *CoIP* provides local or external connectivity to resources in your + Outpost subnets through your on-premises network. For some use cases, a + CoIP can provide lower latency for connections to the DB instance from + outside of its virtual private cloud (VPC) on your local network. + + This setting doesn't apply to RDS Custom. + + For more information about RDS on Outposts, see [Working with Amazon RDS + on Amazon Web Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + + For more information about CoIPs, see [Customer-owned IP + addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) + in the *Amazon Web Services Outposts User Guide*. + """ + network_type: str | None + """ + The network type of the DB instance. + + Valid Values: + + - `IPV4` + + - `DUAL` + + The network type is determined by the `DBSubnetGroup` specified for the + DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon RDS User Guide.* + """ + backup_target: str | None + """ + Specifies where automated backups and manual snapshots are stored for + the restored DB instance. + + Possible values are `local` (Dedicated Local Zone), `outposts` (Amazon + Web Services Outposts), and `region` (Amazon Web Services Region). The + default is `region`. + + For more information, see [Working with Amazon RDS on Amazon Web + Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + """ + custom_iam_instance_profile: str | None + """ + The instance profile associated with the underlying Amazon EC2 instance + of an RDS Custom DB instance. The instance profile must meet the + following requirements: + + - The profile must exist in your account. + + - The profile must have an IAM role that Amazon EC2 has permissions to + assume. + + - The instance profile name and the associated IAM role name must start + with the prefix `AWSRDSCustom`. + + For the list of permissions required for the IAM role, see [Configure + IAM and your + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) + in the *Amazon RDS User Guide*. + + This setting is required for RDS Custom. + """ + allocated_storage: int | None + """ + The amount of storage (in gibibytes) to allocate initially for the DB + instance. Follow the allocation rules specified in CreateDBInstance. + + This setting isn't valid for RDS for SQL Server. + + Note: + Be sure to allocate enough storage for your new DB instance so that the + restore operation can succeed. You can also allocate additional storage + for future growth. + """ + db_cluster_snapshot_identifier: str | None + """ + The identifier for the Multi-AZ DB cluster snapshot to restore from. + + For more information on Multi-AZ DB clusters, see [Multi-AZ DB cluster + deployments](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) + in the *Amazon RDS User Guide*. + + Constraints: + + - Must match the identifier of an existing Multi-AZ DB cluster snapshot. + + - Can't be specified when `DBSnapshotIdentifier` is specified. + + - Must be specified when `DBSnapshotIdentifier` isn't specified. + + - If you are restoring from a shared manual Multi-AZ DB cluster + snapshot, the `DBClusterSnapshotIdentifier` must be the ARN of the + shared snapshot. + + - Can't be the identifier of an Aurora DB cluster snapshot. + """ + backup_retention_period: int | None + """ + The number of days to retain automated backups. Setting this parameter + to a positive number enables backups. Setting this parameter to 0 + disables automated backups. + + Note: + Enabling and disabling backups can result in a brief I/O suspension that + lasts from a few seconds to a few minutes, depending on the size and + class of your DB instance. + + This setting doesn't apply to Amazon Aurora DB instances. The retention + period for automated backups is managed by the DB cluster. For more + information, see `ModifyDBCluster`. + + Default: Uses existing setting + + Constraints: + + - Must be a value from 0 to 35. + + - Can't be set to 0 if the DB instance is a source to read replicas. + + - Can't be set to 0 for an RDS Custom for Oracle DB instance. + """ + preferred_backup_window: str | None + """ + The daily time range during which automated backups are created if + automated backups are enabled, as determined by the + `BackupRetentionPeriod` parameter. Changing this parameter doesn't + result in an outage and the change is asynchronously applied as soon as + possible. The default is a 30-minute window selected at random from an + 8-hour block of time for each Amazon Web Services Region. For more + information, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora DB instances. The daily + time range for creating automated backups is managed by the DB cluster. + For more information, see `ModifyDBCluster`. + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + db_capacity_reservation_identifier: str | None + """ + The identifier or the name of the DB capacity reservation to associate + with this DB instance. You can specify the identifier, which has the + prefix `dbcr-`, or the reservation name. When you specify this + parameter, the DB instance uses reserved capacity from the specified + reservation. + + If you specify `AvailabilityZone`, Amazon RDS places the DB instance in + that Availability Zone, and the reservation must cover it. + + Constraints: + + - The reservation must reserve capacity for the DB instance class and + the database engine of the DB instance. + + - If the reservation reserves capacity for a specific license model, the + license model of the DB instance must match it. + + - The reservation must be in the `active` state, and it must not be past + its end date. + + - If you specify `AvailabilityZone`, it must be one of the Availability + Zones of the reservation. + + - For a Multi-AZ DB instance, the reservation must cover two or more + Availability Zones. A Multi-AZ DB instance uses one unit of reserved + capacity in each of two Availability Zones. If the reservation covers + more than two Availability Zones, Amazon RDS chooses the two that the + DB instance uses. + + - The reservation must have available capacity in each Availability Zone + that the DB instance uses. + + - The DB subnet group must be in a VPC with default tenancy. + + - The DB subnet group must cover each Availability Zone that the DB + instance uses. + """ + dedicated_log_volume: bool | None + """ + Specifies whether to enable a dedicated log volume (DLV) for the DB + instance. + """ + ca_certificate_identifier: str | None + """ + The CA certificate identifier to use for the DB instance's server + certificate. + + This setting doesn't apply to RDS Custom DB instances. + + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a + connection to a DB + cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + in the *Amazon Aurora User Guide*. + """ + engine_lifecycle_support: str | None + """ + The lifecycle type for this DB instance. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB instance into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, RDS automatically upgrades your restored DB instance to a + higher engine version, if the major engine version is past its end of + standard support date. + + You can use this setting to enroll your DB instance into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB instance past the end of standard + support for that engine version. For more information, see [Amazon RDS + Extended Support with Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide*. + + This setting applies only to RDS for MySQL and RDS for PostgreSQL. For + Amazon Aurora DB instances, the engine lifecycle support is managed by + the DB cluster. + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + additional_storage_volumes: ( + Sequence[AdditionalStorageVolume | AdditionalStorageVolumeDict] | None + ) + """ + A list of additional storage volumes to create for the DB instance. You + can create up to three additional storage volumes using the names + `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. Additional storage volumes + are supported for RDS for Oracle and RDS for SQL Server DB instances + only. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + Tags to assign to resources associated with the DB instance. + + Valid Values: + + - `auto-backup` - The DB instance's automated backup. + """ + manage_master_user_password: bool | None + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager in the restored DB instance. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide*. + + Constraints: + + - Applies to RDS for Oracle only. + """ + master_user_secret_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + +@dataclass(kw_only=True) +class RestoreDBInstanceFromDBSnapshotOutput(_SerdeShape): + """Dataclass for RestoreDBInstanceFromDBSnapshotOutput structure.""" + + db_instance: DBInstance | None = ... + """ + Contains the details of an Amazon RDS DB instance. + + This data type is used as a response element in the operations + `CreateDBInstance`, `CreateDBInstanceReadReplica`, `DeleteDBInstance`, + `DescribeDBInstances`, `ModifyDBInstance`, `PromoteReadReplica`, + `RebootDBInstance`, `RestoreDBInstanceFromDBSnapshot`, + `RestoreDBInstanceFromS3`, `RestoreDBInstanceToPointInTime`, + `StartDBInstance`, and `StopDBInstance`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RestoreDBInstanceFromS3Input(_SerdeShape): + """Dataclass for RestoreDBInstanceFromS3Input structure.""" + + db_name: str | None = ... + """ + The name of the database to create when the DB instance is created. + Follow the naming rules specified in `CreateDBInstance`. + """ + db_instance_identifier: str | None = ... + """ + The DB instance identifier. This parameter is stored as a lowercase + string. + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `mydbinstance` + """ + allocated_storage: int | None = ... + """ + The amount of storage (in gibibytes) to allocate initially for the DB + instance. Follow the allocation rules specified in `CreateDBInstance`. + + This setting isn't valid for RDS for SQL Server. + + Note: + Be sure to allocate enough storage for your new DB instance so that the + restore operation can succeed. You can also allocate additional storage + for future growth. + """ + db_instance_class: str | None = ... + """ + The compute and memory capacity of the DB instance, for example + db.m4.large. Not all DB instance classes are available in all Amazon Web + Services Regions, or for all database engines. For the full list of DB + instance classes, and availability for your engine, see [DB Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide.* + + Importing from Amazon S3 isn't supported on the db.t2.micro DB instance + class. + """ + engine: str | None = ... + """ + The name of the database engine to be used for this instance. + + Valid Values: `mysql` + """ + master_username: str | None = ... + """ + The name for the master user. + + Constraints: + + - Must be 1 to 16 letters or numbers. + + - First character must be a letter. + + - Can't be a reserved word for the chosen database engine. + """ + master_user_password: str | None = ... + """ + The password for the master user. + + Constraints: + + - Can't be specified if `ManageMasterUserPassword` is turned on. + + - Can include any printable ASCII character except \"/\", \"\"\", or + \"@\". For RDS for Oracle, can't include the \"&\" (ampersand) or the + \"'\" (single quotes) character. + + Length Constraints: + + - RDS for Db2 - Must contain from 8 to 128 characters. + + - RDS for MariaDB - Must contain from 8 to 41 characters. + + - RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. + + - RDS for MySQL - Must contain from 8 to 41 characters. + + - RDS for Oracle - Must contain from 8 to 30 characters. + + - RDS for PostgreSQL - Must contain from 8 to 128 characters. + """ + db_security_groups: list[str] | None = ... + """ + A list of DB security groups to associate with this DB instance. + + Default: The default DB security group for the database engine. + """ + vpc_security_group_ids: list[str] | None = ... + """A list of VPC security groups to associate with this DB instance.""" + availability_zone: str | None = ... + """ + The Availability Zone that the DB instance is created in. For + information about Amazon Web Services Regions and Availability Zones, + see [Regions and Availability + Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html) + in the *Amazon RDS User Guide.* + + Default: A random, system-chosen Availability Zone in the endpoint's + Amazon Web Services Region. + + Example: `us-east-1d` + + Constraint: The `AvailabilityZone` parameter can't be specified if the + DB instance is a Multi-AZ deployment. The specified Availability Zone + must be in the same Amazon Web Services Region as the current endpoint. + """ + db_subnet_group_name: str | None = ... + """ + A DB subnet group to associate with this DB instance. + + Constraints: If supplied, must match the name of an existing + DBSubnetGroup. + + Example: `mydbsubnetgroup` + """ + preferred_maintenance_window: str | None = ... + """ + The time range each week during which system maintenance can occur, in + Universal Coordinated Time (UTC). For more information, see [Amazon RDS + Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance) + in the *Amazon RDS User Guide.* + + Constraints: + + - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. + + - Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred backup window. + + - Must be at least 30 minutes. + """ + db_parameter_group_name: str | None = ... + """ + The name of the DB parameter group to associate with this DB instance. + + If you do not specify a value for `DBParameterGroupName`, then the + default `DBParameterGroup` for the specified DB engine is used. + """ + backup_retention_period: int | None = ... + """ + The number of days for which automated backups are retained. Setting + this parameter to a positive number enables backups. For more + information, see `CreateDBInstance`. + """ + preferred_backup_window: str | None = ... + """ + The time range each day during which automated backups are created if + automated backups are enabled. For more information, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + in the *Amazon RDS User Guide.* + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + port: int | None = ... + """ + The port number on which the database accepts connections. + + Type: Integer + + Valid Values: `1150`-`65535` + + Default: `3306` + """ + multi_az: bool | None = ... + """ + Specifies whether the DB instance is a Multi-AZ deployment. If the DB + instance is a Multi-AZ deployment, you can't set the `AvailabilityZone` + parameter. + """ + engine_version: str | None = ... + """ + The version number of the database engine to use. Choose the latest + minor version of your database engine. For information about engine + versions, see `CreateDBInstance`, or call `DescribeDBEngineVersions`. + """ + auto_minor_version_upgrade: bool | None = ... + """ + Specifies whether to automatically apply minor engine upgrades to the DB + instance during the maintenance window. By default, minor engine + upgrades are not applied automatically. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + license_model: str | None = ... + """The license model for this DB instance. Use `general-public-license`.""" + iops: int | None = ... + """ + The amount of Provisioned IOPS (input/output operations per second) to + allocate initially for the DB instance. For information about valid IOPS + values, see [Amazon RDS Provisioned IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide.* + """ + storage_throughput: int | None = ... + """ + Specifies the storage throughput value for the DB instance. + + This setting doesn't apply to RDS Custom or Amazon Aurora. + """ + option_group_name: str | None = ... + """ + The name of the option group to associate with this DB instance. If this + argument is omitted, the default option group for the specified engine + is used. + """ + publicly_accessible: bool | None = ... + """ + Specifies whether the DB instance is publicly accessible. + + When the DB instance is publicly accessible, its Domain Name System + (DNS) endpoint resolves to the private IP address from within the DB + instance's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB instance's VPC. Access to the DB + instance is ultimately controlled by the security group it uses. That + public access is not permitted if the security group assigned to the DB + instance doesn't permit it. + + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. + + For more information, see CreateDBInstance. + """ + tags: list[Tag] | None = ... + """ + A list of tags to associate with this DB instance. For more information, + see [Tagging Amazon RDS + Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide.* + """ + storage_type: str | None = ... + """ + Specifies the storage type to be associated with the DB instance. + + Valid Values: `gp2 | gp3 | io1 | io2 | standard` + + If you specify `io1`, `io2`, or `gp3`, you must also include a value for + the `Iops` parameter. + + Default: `io1` if the `Iops` parameter is specified; otherwise `gp2` + """ + storage_encrypted: bool | None = ... + """Specifies whether the new DB instance is encrypted or not.""" + kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier for an encrypted DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If the `StorageEncrypted` parameter is enabled, and you do not specify a + value for the `KmsKeyId` parameter, then Amazon RDS will use your + default KMS key. There is a default KMS key for your Amazon Web Services + account. Your Amazon Web Services account has a different default KMS + key for each Amazon Web Services Region. + """ + copy_tags_to_snapshot: bool | None = ... + """ + Specifies whether to copy all tags from the DB instance to snapshots of + the DB instance. By default, tags are not copied. + """ + monitoring_interval: int | None = ... + """ + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB instance. To disable collecting + Enhanced Monitoring metrics, specify 0. + + If `MonitoringRoleArn` is specified, then you must also set + `MonitoringInterval` to a value other than 0. + + Valid Values: 0, 1, 5, 10, 15, 30, 60 + + Default: `0` + """ + monitoring_role_arn: str | None = ... + """ + The ARN for the IAM role that permits RDS to send enhanced monitoring + metrics to Amazon CloudWatch Logs. For example, + `arn:aws:iam:123456789012:role/emaccess`. For information on creating a + monitoring role, see [Setting Up and Enabling Enhanced + Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) + in the *Amazon RDS User Guide.* + + If `MonitoringInterval` is set to a value other than 0, then you must + supply a `MonitoringRoleArn` value. + """ + enable_iam_database_authentication: bool | None = ... + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. + + For more information about IAM database authentication, see [IAM + Database Authentication for MySQL and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide.* + """ + source_engine: str | None = ... + """ + The name of the engine of your source database. + + Valid Values: `mysql` + """ + source_engine_version: str | None = ... + """ + The version of the database that the backup files were created from. + + MySQL versions 5.6 and 5.7 are supported. + + Example: `5.6.40` + """ + s3_bucket_name: str | None = ... + """ + The name of your Amazon S3 bucket that contains your database backup + file. + """ + s3_prefix: str | None = ... + """The prefix of your Amazon S3 bucket.""" + s3_ingestion_role_arn: str | None = ... + """ + An Amazon Web Services Identity and Access Management (IAM) role with a + trust policy and a permissions policy that allows Amazon RDS to access + your Amazon S3 bucket. For information about this role, see [Creating an + IAM role + manually](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Importing.html#MySQL.Procedural.Importing.Enabling.IAM) + in the *Amazon RDS User Guide.* + """ + database_insights_mode: str | None = ... + """ + Specifies the mode of Database Insights to enable for the DB instance. + + Note: + Aurora DB instances inherit this value from the DB cluster, so you + can't change this value. + """ + enable_performance_insights: bool | None = ... + """ + Specifies whether to enable Performance Insights for the DB instance. + + For more information, see [Using Amazon Performance + Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + in the *Amazon RDS User Guide*. + """ + performance_insights_kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you do not specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. + """ + performance_insights_retention_period: int | None = ... + """ + The number of days to retain Performance Insights data. The default is 7 + days. The following values are valid: + + - 7 + + - *month* * 31, where *month* is a number of months from 1-23 + + - 731 + + For example, the following values are valid: + + - 93 (3 months * 31) + + - 341 (11 months * 31) + + - 589 (19 months * 31) + + - 731 + + If you specify a retention period such as 94, which isn't a valid + value, RDS issues an error. + """ + enable_cloudwatch_logs_exports: list[str] | None = ... + """ + The list of logs that the restored DB instance is to export to + CloudWatch Logs. The values in the list depend on the DB engine being + used. For more information, see [Publishing Database Logs to Amazon + CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + """ + processor_features: list[ProcessorFeature] | None = ... + """ + The number of CPU cores and the number of threads per core for the DB + instance class of the DB instance. + """ + use_default_processor_features: bool | None = ... + """ + Specifies whether the DB instance class of the DB instance uses its + default processor features. + """ + deletion_protection: bool | None = ... + """ + Specifies whether to enable deletion protection for the DB instance. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. For more information, see + [Deleting a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + """ + max_allocated_storage: int | None = ... + """ + The upper limit in gibibytes (GiB) to which Amazon RDS can automatically + scale the storage of the DB instance. + + For more information about this setting, including limitations that + apply to it, see [Managing capacity automatically with Amazon RDS + storage + autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) + in the *Amazon RDS User Guide*. + """ + network_type: str | None = ... + """ + The network type of the DB instance. + + Valid Values: + + - `IPV4` + + - `DUAL` + + The network type is determined by the `DBSubnetGroup` specified for the + DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon RDS User Guide.* + """ + manage_master_user_password: bool | None = ... + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. + """ + master_user_secret_kms_key_id: str | None = ... + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + db_capacity_reservation_identifier: str | None = ... + """ + The identifier or the name of the DB capacity reservation to associate + with this DB instance. You can specify the identifier, which has the + prefix `dbcr-`, or the reservation name. When you specify this + parameter, the DB instance uses reserved capacity from the specified + reservation. + + If you specify `AvailabilityZone`, Amazon RDS places the DB instance in + that Availability Zone, and the reservation must cover it. + + Constraints: + + - The reservation must reserve capacity for the DB instance class and + the database engine of the DB instance. + + - If the reservation reserves capacity for a specific license model, the + license model of the DB instance must match it. + + - The reservation must be in the `active` state, and it must not be past + its end date. + + - If you specify `AvailabilityZone`, it must be one of the Availability + Zones of the reservation. + + - For a Multi-AZ DB instance, the reservation must cover two or more + Availability Zones. A Multi-AZ DB instance uses one unit of reserved + capacity in each of two Availability Zones. If the reservation covers + more than two Availability Zones, Amazon RDS chooses the two that the + DB instance uses. + + - The reservation must have available capacity in each Availability Zone + that the DB instance uses. + + - The DB subnet group must be in a VPC with default tenancy. + + - The DB subnet group must cover each Availability Zone that the DB + instance uses. + """ + dedicated_log_volume: bool | None = ... + """ + Specifies whether to enable a dedicated log volume (DLV) for the DB + instance. + """ + ca_certificate_identifier: str | None = ... + """ + The CA certificate identifier to use for the DB instance's server + certificate. + + This setting doesn't apply to RDS Custom DB instances. + + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a + connection to a DB + cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + in the *Amazon Aurora User Guide*. + """ + engine_lifecycle_support: str | None = ... + """ + The lifecycle type for this DB instance. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB instance into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, RDS automatically upgrades your restored DB instance to a + higher engine version, if the major engine version is past its end of + standard support date. + + You can use this setting to enroll your DB instance into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB instance past the end of standard + support for that engine version. For more information, see [Amazon RDS + Extended Support Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide*. + + This setting applies only to RDS for MySQL and RDS for PostgreSQL. For + Amazon Aurora DB instances, the engine lifecycle support is managed by + the DB cluster. + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + additional_storage_volumes: list[AdditionalStorageVolume] | None = ... + """ + A list of additional storage volumes to modify or delete for the DB + instance. You can modify or delete up to three additional storage + volumes using the names `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. + Additional storage volumes are supported for RDS for Oracle and RDS for + SQL Server DB instances only. + """ + tag_specifications: list[TagSpecification] | None = ... + """ + Tags to assign to resources associated with the DB instance. + + Valid Values: + + - `auto-backup` - The DB instance's automated backup. + """ + +class RestoreDBInstanceFromS3InputDict(TypedDict, total=False): + """Dictionary form of `RestoreDBInstanceFromS3Input`.""" + + db_name: str | None + """ + The name of the database to create when the DB instance is created. + Follow the naming rules specified in `CreateDBInstance`. + """ + db_instance_identifier: Required[str] + """ + The DB instance identifier. This parameter is stored as a lowercase + string. + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + + Example: `mydbinstance` + """ + allocated_storage: int | None + """ + The amount of storage (in gibibytes) to allocate initially for the DB + instance. Follow the allocation rules specified in `CreateDBInstance`. + + This setting isn't valid for RDS for SQL Server. + + Note: + Be sure to allocate enough storage for your new DB instance so that the + restore operation can succeed. You can also allocate additional storage + for future growth. + """ + db_instance_class: Required[str] + """ + The compute and memory capacity of the DB instance, for example + db.m4.large. Not all DB instance classes are available in all Amazon Web + Services Regions, or for all database engines. For the full list of DB + instance classes, and availability for your engine, see [DB Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide.* + + Importing from Amazon S3 isn't supported on the db.t2.micro DB instance + class. + """ + engine: Required[str] + """ + The name of the database engine to be used for this instance. + + Valid Values: `mysql` + """ + master_username: str | None + """ + The name for the master user. + + Constraints: + + - Must be 1 to 16 letters or numbers. + + - First character must be a letter. + + - Can't be a reserved word for the chosen database engine. + """ + master_user_password: str | None + """ + The password for the master user. + + Constraints: + + - Can't be specified if `ManageMasterUserPassword` is turned on. + + - Can include any printable ASCII character except \"/\", \"\"\", or + \"@\". For RDS for Oracle, can't include the \"&\" (ampersand) or the + \"'\" (single quotes) character. + + Length Constraints: + + - RDS for Db2 - Must contain from 8 to 128 characters. + + - RDS for MariaDB - Must contain from 8 to 41 characters. + + - RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. + + - RDS for MySQL - Must contain from 8 to 41 characters. + + - RDS for Oracle - Must contain from 8 to 30 characters. + + - RDS for PostgreSQL - Must contain from 8 to 128 characters. + """ + db_security_groups: Sequence[str] | None + """ + A list of DB security groups to associate with this DB instance. + + Default: The default DB security group for the database engine. + """ + vpc_security_group_ids: Sequence[str] | None + """A list of VPC security groups to associate with this DB instance.""" + availability_zone: str | None + """ + The Availability Zone that the DB instance is created in. For + information about Amazon Web Services Regions and Availability Zones, + see [Regions and Availability + Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html) + in the *Amazon RDS User Guide.* + + Default: A random, system-chosen Availability Zone in the endpoint's + Amazon Web Services Region. + + Example: `us-east-1d` + + Constraint: The `AvailabilityZone` parameter can't be specified if the + DB instance is a Multi-AZ deployment. The specified Availability Zone + must be in the same Amazon Web Services Region as the current endpoint. + """ + db_subnet_group_name: str | None + """ + A DB subnet group to associate with this DB instance. + + Constraints: If supplied, must match the name of an existing + DBSubnetGroup. + + Example: `mydbsubnetgroup` + """ + preferred_maintenance_window: str | None + """ + The time range each week during which system maintenance can occur, in + Universal Coordinated Time (UTC). For more information, see [Amazon RDS + Maintenance + Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance) + in the *Amazon RDS User Guide.* + + Constraints: + + - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. + + - Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred backup window. + + - Must be at least 30 minutes. + """ + db_parameter_group_name: str | None + """ + The name of the DB parameter group to associate with this DB instance. + + If you do not specify a value for `DBParameterGroupName`, then the + default `DBParameterGroup` for the specified DB engine is used. + """ + backup_retention_period: int | None + """ + The number of days for which automated backups are retained. Setting + this parameter to a positive number enables backups. For more + information, see `CreateDBInstance`. + """ + preferred_backup_window: str | None + """ + The time range each day during which automated backups are created if + automated backups are enabled. For more information, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + in the *Amazon RDS User Guide.* + + Constraints: + + - Must be in the format `hh24:mi-hh24:mi`. + + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. + """ + port: int | None + """ + The port number on which the database accepts connections. + + Type: Integer + + Valid Values: `1150`-`65535` + + Default: `3306` + """ + multi_az: bool | None + """ + Specifies whether the DB instance is a Multi-AZ deployment. If the DB + instance is a Multi-AZ deployment, you can't set the `AvailabilityZone` + parameter. + """ + engine_version: str | None + """ + The version number of the database engine to use. Choose the latest + minor version of your database engine. For information about engine + versions, see `CreateDBInstance`, or call `DescribeDBEngineVersions`. + """ + auto_minor_version_upgrade: bool | None + """ + Specifies whether to automatically apply minor engine upgrades to the DB + instance during the maintenance window. By default, minor engine + upgrades are not applied automatically. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + license_model: str | None + """The license model for this DB instance. Use `general-public-license`.""" + iops: int | None + """ + The amount of Provisioned IOPS (input/output operations per second) to + allocate initially for the DB instance. For information about valid IOPS + values, see [Amazon RDS Provisioned IOPS + storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) + in the *Amazon RDS User Guide.* + """ + storage_throughput: int | None + """ + Specifies the storage throughput value for the DB instance. + + This setting doesn't apply to RDS Custom or Amazon Aurora. + """ + option_group_name: str | None + """ + The name of the option group to associate with this DB instance. If this + argument is omitted, the default option group for the specified engine + is used. + """ + publicly_accessible: bool | None + """ + Specifies whether the DB instance is publicly accessible. + + When the DB instance is publicly accessible, its Domain Name System + (DNS) endpoint resolves to the private IP address from within the DB + instance's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB instance's VPC. Access to the DB + instance is ultimately controlled by the security group it uses. That + public access is not permitted if the security group assigned to the DB + instance doesn't permit it. + + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. + + For more information, see CreateDBInstance. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags to associate with this DB instance. For more information, + see [Tagging Amazon RDS + Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide.* + """ + storage_type: str | None + """ + Specifies the storage type to be associated with the DB instance. + + Valid Values: `gp2 | gp3 | io1 | io2 | standard` + + If you specify `io1`, `io2`, or `gp3`, you must also include a value for + the `Iops` parameter. + + Default: `io1` if the `Iops` parameter is specified; otherwise `gp2` + """ + storage_encrypted: bool | None + """Specifies whether the new DB instance is encrypted or not.""" + kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for an encrypted DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If the `StorageEncrypted` parameter is enabled, and you do not specify a + value for the `KmsKeyId` parameter, then Amazon RDS will use your + default KMS key. There is a default KMS key for your Amazon Web Services + account. Your Amazon Web Services account has a different default KMS + key for each Amazon Web Services Region. + """ + copy_tags_to_snapshot: bool | None + """ + Specifies whether to copy all tags from the DB instance to snapshots of + the DB instance. By default, tags are not copied. + """ + monitoring_interval: int | None + """ + The interval, in seconds, between points when Enhanced Monitoring + metrics are collected for the DB instance. To disable collecting + Enhanced Monitoring metrics, specify 0. + + If `MonitoringRoleArn` is specified, then you must also set + `MonitoringInterval` to a value other than 0. + + Valid Values: 0, 1, 5, 10, 15, 30, 60 + + Default: `0` + """ + monitoring_role_arn: str | None + """ + The ARN for the IAM role that permits RDS to send enhanced monitoring + metrics to Amazon CloudWatch Logs. For example, + `arn:aws:iam:123456789012:role/emaccess`. For information on creating a + monitoring role, see [Setting Up and Enabling Enhanced + Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) + in the *Amazon RDS User Guide.* + + If `MonitoringInterval` is set to a value other than 0, then you must + supply a `MonitoringRoleArn` value. + """ + enable_iam_database_authentication: bool | None + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. + + For more information about IAM database authentication, see [IAM + Database Authentication for MySQL and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide.* + """ + source_engine: Required[str] + """ + The name of the engine of your source database. + + Valid Values: `mysql` + """ + source_engine_version: Required[str] + """ + The version of the database that the backup files were created from. + + MySQL versions 5.6 and 5.7 are supported. + + Example: `5.6.40` + """ + s3_bucket_name: Required[str] + """ + The name of your Amazon S3 bucket that contains your database backup + file. + """ + s3_prefix: str | None + """The prefix of your Amazon S3 bucket.""" + s3_ingestion_role_arn: Required[str] + """ + An Amazon Web Services Identity and Access Management (IAM) role with a + trust policy and a permissions policy that allows Amazon RDS to access + your Amazon S3 bucket. For information about this role, see [Creating an + IAM role + manually](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Importing.html#MySQL.Procedural.Importing.Enabling.IAM) + in the *Amazon RDS User Guide.* + """ + database_insights_mode: str | None + """ + Specifies the mode of Database Insights to enable for the DB instance. + + Note: + Aurora DB instances inherit this value from the DB cluster, so you + can't change this value. + """ + enable_performance_insights: bool | None + """ + Specifies whether to enable Performance Insights for the DB instance. + + For more information, see [Using Amazon Performance + Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) + in the *Amazon RDS User Guide*. + """ + performance_insights_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for encryption of Performance + Insights data. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + If you do not specify a value for `PerformanceInsightsKMSKeyId`, then + Amazon RDS uses your default KMS key. There is a default KMS key for + your Amazon Web Services account. Your Amazon Web Services account has a + different default KMS key for each Amazon Web Services Region. + """ + performance_insights_retention_period: int | None + """ + The number of days to retain Performance Insights data. The default is 7 + days. The following values are valid: + + - 7 + + - *month* * 31, where *month* is a number of months from 1-23 + + - 731 + + For example, the following values are valid: + + - 93 (3 months * 31) + + - 341 (11 months * 31) + + - 589 (19 months * 31) + + - 731 + + If you specify a retention period such as 94, which isn't a valid + value, RDS issues an error. + """ + enable_cloudwatch_logs_exports: Sequence[str] | None + """ + The list of logs that the restored DB instance is to export to + CloudWatch Logs. The values in the list depend on the DB engine being + used. For more information, see [Publishing Database Logs to Amazon + CloudWatch + Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) + in the *Amazon RDS User Guide*. + """ + processor_features: Sequence[ProcessorFeature | ProcessorFeatureDict] | None + """ + The number of CPU cores and the number of threads per core for the DB + instance class of the DB instance. + """ + use_default_processor_features: bool | None + """ + Specifies whether the DB instance class of the DB instance uses its + default processor features. + """ + deletion_protection: bool | None + """ + Specifies whether to enable deletion protection for the DB instance. The + database can't be deleted when deletion protection is enabled. By + default, deletion protection isn't enabled. For more information, see + [Deleting a DB + Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + """ + max_allocated_storage: int | None + """ + The upper limit in gibibytes (GiB) to which Amazon RDS can automatically + scale the storage of the DB instance. + + For more information about this setting, including limitations that + apply to it, see [Managing capacity automatically with Amazon RDS + storage + autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) + in the *Amazon RDS User Guide*. + """ + network_type: str | None + """ + The network type of the DB instance. + + Valid Values: + + - `IPV4` + + - `DUAL` + + The network type is determined by the `DBSubnetGroup` specified for the + DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the + IPv4 and the IPv6 protocols (`DUAL`). + + For more information, see [Working with a DB instance in a + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) + in the *Amazon RDS User Guide.* + """ + manage_master_user_password: bool | None + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager. + + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide.* + + Constraints: + + - Can't manage the master user password with Amazon Web Services + Secrets Manager if `MasterUserPassword` is specified. + """ + master_user_secret_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. + """ + db_capacity_reservation_identifier: str | None + """ + The identifier or the name of the DB capacity reservation to associate + with this DB instance. You can specify the identifier, which has the + prefix `dbcr-`, or the reservation name. When you specify this + parameter, the DB instance uses reserved capacity from the specified + reservation. + + If you specify `AvailabilityZone`, Amazon RDS places the DB instance in + that Availability Zone, and the reservation must cover it. + + Constraints: + + - The reservation must reserve capacity for the DB instance class and + the database engine of the DB instance. + + - If the reservation reserves capacity for a specific license model, the + license model of the DB instance must match it. + + - The reservation must be in the `active` state, and it must not be past + its end date. + + - If you specify `AvailabilityZone`, it must be one of the Availability + Zones of the reservation. + + - For a Multi-AZ DB instance, the reservation must cover two or more + Availability Zones. A Multi-AZ DB instance uses one unit of reserved + capacity in each of two Availability Zones. If the reservation covers + more than two Availability Zones, Amazon RDS chooses the two that the + DB instance uses. - - RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. + - The reservation must have available capacity in each Availability Zone + that the DB instance uses. - - RDS for MySQL - Must contain from 8 to 41 characters. + - The DB subnet group must be in a VPC with default tenancy. - - RDS for Oracle - Must contain from 8 to 30 characters. + - The DB subnet group must cover each Availability Zone that the DB + instance uses. + """ + dedicated_log_volume: bool | None + """ + Specifies whether to enable a dedicated log volume (DLV) for the DB + instance. + """ + ca_certificate_identifier: str | None + """ + The CA certificate identifier to use for the DB instance's server + certificate. - - RDS for PostgreSQL - Must contain from 8 to 128 characters. + This setting doesn't apply to RDS Custom DB instances. + + For more information, see [Using SSL/TLS to encrypt a connection to a DB + instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) + in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a + connection to a DB + cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) + in the *Amazon Aurora User Guide*. """ - db_security_groups: list[str] | None = ... + engine_lifecycle_support: str | None """ - A list of DB security groups to associate with this DB instance. + The lifecycle type for this DB instance. + + Note: + By default, this value is set to `open-source-rds-extended-support`, + which enrolls your DB instance into Amazon RDS Extended Support. At the + end of standard support, you can avoid charges for Extended Support by + setting the value to `open-source-rds-extended-support-disabled`. In + this case, RDS automatically upgrades your restored DB instance to a + higher engine version, if the major engine version is past its end of + standard support date. + + You can use this setting to enroll your DB instance into Amazon RDS + Extended Support. With RDS Extended Support, you can run the selected + major engine version on your DB instance past the end of standard + support for that engine version. For more information, see [Amazon RDS + Extended Support Amazon + RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) + in the *Amazon RDS User Guide*. + + This setting applies only to RDS for MySQL and RDS for PostgreSQL. For + Amazon Aurora DB instances, the engine lifecycle support is managed by + the DB cluster. + + Valid Values: + `open-source-rds-extended-support | open-source-rds-extended-support-disabled` + + Default: `open-source-rds-extended-support` + """ + additional_storage_volumes: ( + Sequence[AdditionalStorageVolume | AdditionalStorageVolumeDict] | None + ) + """ + A list of additional storage volumes to modify or delete for the DB + instance. You can modify or delete up to three additional storage + volumes using the names `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. + Additional storage volumes are supported for RDS for Oracle and RDS for + SQL Server DB instances only. + """ + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None + """ + Tags to assign to resources associated with the DB instance. + + Valid Values: + + - `auto-backup` - The DB instance's automated backup. + """ + +@dataclass(kw_only=True) +class RestoreDBInstanceFromS3Output(_SerdeShape): + """Dataclass for RestoreDBInstanceFromS3Output structure.""" + + db_instance: DBInstance | None = ... + """ + Contains the details of an Amazon RDS DB instance. + + This data type is used as a response element in the operations + `CreateDBInstance`, `CreateDBInstanceReadReplica`, `DeleteDBInstance`, + `DescribeDBInstances`, `ModifyDBInstance`, `PromoteReadReplica`, + `RebootDBInstance`, `RestoreDBInstanceFromDBSnapshot`, + `RestoreDBInstanceFromS3`, `RestoreDBInstanceToPointInTime`, + `StartDBInstance`, and `StopDBInstance`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RestoreDBInstanceToPointInTimeInput(_SerdeShape): + """""" + + source_db_instance_identifier: str | None = ... + """ + The identifier of the source DB instance from which to restore. + + Constraints: + + - Must match the identifier of an existing DB instance. + """ + target_db_instance_identifier: str | None = ... + """ + The name of the new DB instance to create. + + Constraints: + + - Must contain from 1 to 63 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. + """ + restore_time: datetime | None = ... + """ + The date and time to restore from. + + Constraints: + + - Must be a time in Universal Coordinated Time (UTC) format. + + - Must be before the latest restorable time for the DB instance. + + - Can't be specified if the `UseLatestRestorableTime` parameter is + enabled. + + Example: `2009-09-07T23:45:00Z` + """ + use_latest_restorable_time: bool | None = ... + """ + Specifies whether the DB instance is restored from the latest backup + time. By default, the DB instance isn't restored from the latest backup + time. + + Constraints: + + - Can't be specified if the `RestoreTime` parameter is provided. + """ + db_instance_class: str | None = ... + """ + The compute and memory capacity of the Amazon RDS DB instance, for + example db.m4.large. Not all DB instance classes are available in all + Amazon Web Services Regions, or for all database engines. For the full + list of DB instance classes, and availability for your engine, see [DB + Instance + Class](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) + in the *Amazon RDS User Guide*. + + Default: The same DB instance class as the original DB instance. + """ + port: int | None = ... + """ + The port number on which the database accepts connections. + + Default: The same port as the original DB instance. + + Constraints: + + - The value must be `1150-65535`. + """ + availability_zone: str | None = ... + """ + The Availability Zone (AZ) where the DB instance will be created. + + Default: A random, system-chosen Availability Zone. + + Constraints: + + - You can't specify the `AvailabilityZone` parameter if the DB instance + is a Multi-AZ deployment. + + Example: `us-east-1a` + """ + db_subnet_group_name: str | None = ... + """ + The DB subnet group name to use for the new instance. + + Constraints: + + - If supplied, must match the name of an existing DB subnet group. + + Example: `mydbsubnetgroup` + """ + multi_az: bool | None = ... + """ + Secifies whether the DB instance is a Multi-AZ deployment. + + This setting doesn't apply to RDS Custom. + + Constraints: + + - You can't specify the `AvailabilityZone` parameter if the DB instance + is a Multi-AZ deployment. + """ + publicly_accessible: bool | None = ... + """ + Specifies whether the DB instance is publicly accessible. + + When the DB cluster is publicly accessible, its Domain Name System (DNS) + endpoint resolves to the private IP address from within the DB + cluster's virtual private cloud (VPC). It resolves to the public IP + address from outside of the DB cluster's VPC. Access to the DB cluster + is ultimately controlled by the security group it uses. That public + access isn't permitted if the security group assigned to the DB cluster + doesn't permit it. + + When the DB instance isn't publicly accessible, it is an internal DB + instance with a DNS name that resolves to a private IP address. + + For more information, see CreateDBInstance. + """ + auto_minor_version_upgrade: bool | None = ... + """ + Specifies whether minor version upgrades are applied automatically to + the DB instance during the maintenance window. + + This setting doesn't apply to RDS Custom. + + For more information about automatic minor version upgrades, see + [Automatically upgrading the minor engine + version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + """ + license_model: str | None = ... + """ + The license model information for the restored DB instance. + + Note: + License models for RDS for Db2 require additional configuration. The + bring your own license (BYOL) model requires a custom parameter group + and an Amazon Web Services License Manager self-managed license. The Db2 + license through Amazon Web Services Marketplace model requires an Amazon + Web Services Marketplace subscription. For more information, see [Amazon + RDS for Db2 licensing + options](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) + in the *Amazon RDS User Guide*. + + This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. + + Valid Values: + + - RDS for Db2 - `bring-your-own-license | marketplace-license` + + - RDS for MariaDB - `general-public-license` + + - RDS for Microsoft SQL Server - + `license-included | bring-your-own-media` + + - RDS for MySQL - `general-public-license` + + - RDS for Oracle - `bring-your-own-license | license-included` - Default: The default DB security group for the database engine. + - RDS for PostgreSQL - `postgresql-license` + + Default: Same as the source. """ - vpc_security_group_ids: list[str] | None = ... - """A list of VPC security groups to associate with this DB instance.""" - availability_zone: str | None = ... + db_name: str | None = ... """ - The Availability Zone that the DB instance is created in. For - information about Amazon Web Services Regions and Availability Zones, - see [Regions and Availability - Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html) - in the *Amazon RDS User Guide.* + The database name for the restored DB instance. - Default: A random, system-chosen Availability Zone in the endpoint's - Amazon Web Services Region. + This parameter doesn't apply to the following DB instances: - Example: `us-east-1d` + - RDS Custom - Constraint: The `AvailabilityZone` parameter can't be specified if the - DB instance is a Multi-AZ deployment. The specified Availability Zone - must be in the same Amazon Web Services Region as the current endpoint. - """ - db_subnet_group_name: str | None = ... - """ - A DB subnet group to associate with this DB instance. + - RDS for Db2 - Constraints: If supplied, must match the name of an existing - DBSubnetGroup. + - RDS for MariaDB - Example: `mydbsubnetgroup` + - RDS for MySQL """ - preferred_maintenance_window: str | None = ... + engine: str | None = ... """ - The time range each week during which system maintenance can occur, in - Universal Coordinated Time (UTC). For more information, see [Amazon RDS - Maintenance - Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance) - in the *Amazon RDS User Guide.* + The database engine to use for the new instance. - Constraints: + This setting doesn't apply to RDS Custom. - - Must be in the format `ddd:hh24:mi-ddd:hh24:mi`. + Valid Values: - - Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. + - `db2-ae` - - Must be in Universal Coordinated Time (UTC). + - `db2-ce` - - Must not conflict with the preferred backup window. + - `db2-se` - - Must be at least 30 minutes. - """ - db_parameter_group_name: str | None = ... - """ - The name of the DB parameter group to associate with this DB instance. + - `mariadb` - If you do not specify a value for `DBParameterGroupName`, then the - default `DBParameterGroup` for the specified DB engine is used. - """ - backup_retention_period: int | None = ... - """ - The number of days for which automated backups are retained. Setting - this parameter to a positive number enables backups. For more - information, see `CreateDBInstance`. - """ - preferred_backup_window: str | None = ... - """ - The time range each day during which automated backups are created if - automated backups are enabled. For more information, see [Backup - window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) - in the *Amazon RDS User Guide.* + - `mysql` - Constraints: + - `oracle-ee` - - Must be in the format `hh24:mi-hh24:mi`. + - `oracle-ee-cdb` - - Must be in Universal Coordinated Time (UTC). + - `oracle-se2` - - Must not conflict with the preferred maintenance window. + - `oracle-se2-cdb` - - Must be at least 30 minutes. - """ - port: int | None = ... - """ - The port number on which the database accepts connections. + - `postgres` - Type: Integer + - `sqlserver-ee` - Valid Values: `1150`-`65535` + - `sqlserver-se` - Default: `3306` - """ - multi_az: bool | None = ... - """ - Specifies whether the DB instance is a Multi-AZ deployment. If the DB - instance is a Multi-AZ deployment, you can't set the `AvailabilityZone` - parameter. - """ - engine_version: str | None = ... - """ - The version number of the database engine to use. Choose the latest - minor version of your database engine. For information about engine - versions, see `CreateDBInstance`, or call `DescribeDBEngineVersions`. - """ - auto_minor_version_upgrade: bool | None = ... - """ - Specifies whether to automatically apply minor engine upgrades to the DB - instance during the maintenance window. By default, minor engine - upgrades are not applied automatically. + - `sqlserver-ex` - For more information about automatic minor version upgrades, see - [Automatically upgrading the minor engine - version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). + - `sqlserver-web` + + Default: The same as source + + Constraints: + + - Must be compatible with the engine of the source. """ - license_model: str | None = ... - """The license model for this DB instance. Use `general-public-license`.""" iops: int | None = ... """ The amount of Provisioned IOPS (input/output operations per second) to - allocate initially for the DB instance. For information about valid IOPS - values, see [Amazon RDS Provisioned IOPS - storage](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS) - in the *Amazon RDS User Guide.* - """ - storage_throughput: int | None = ... - """ - Specifies the storage throughput value for the DB instance. - - This setting doesn't apply to RDS Custom or Amazon Aurora. - """ - option_group_name: str | None = ... - """ - The name of the option group to associate with this DB instance. If this - argument is omitted, the default option group for the specified engine - is used. - """ - publicly_accessible: bool | None = ... - """ - Specifies whether the DB instance is publicly accessible. + initially allocate for the DB instance. - When the DB instance is publicly accessible, its Domain Name System - (DNS) endpoint resolves to the private IP address from within the DB - instance's virtual private cloud (VPC). It resolves to the public IP - address from outside of the DB instance's VPC. Access to the DB - instance is ultimately controlled by the security group it uses. That - public access is not permitted if the security group assigned to the DB - instance doesn't permit it. + This setting doesn't apply to SQL Server. - When the DB instance isn't publicly accessible, it is an internal DB - instance with a DNS name that resolves to a private IP address. + Constraints: - For more information, see CreateDBInstance. - """ - tags: list[Tag] | None = ... - """ - A list of tags to associate with this DB instance. For more information, - see [Tagging Amazon RDS - Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) - in the *Amazon RDS User Guide.* + - Must be an integer greater than 1000. """ - storage_type: str | None = ... + storage_throughput: int | None = ... """ - Specifies the storage type to be associated with the DB instance. - - Valid Values: `gp2 | gp3 | io1 | io2 | standard` - - If you specify `io1`, `io2`, or `gp3`, you must also include a value for - the `Iops` parameter. + The storage throughput value for the DB instance. - Default: `io1` if the `Iops` parameter is specified; otherwise `gp2` + This setting doesn't apply to RDS Custom or Amazon Aurora. """ - storage_encrypted: bool | None = ... - """Specifies whether the new DB instance is encrypted or not.""" - kms_key_id: str | None = ... + option_group_name: str | None = ... """ - The Amazon Web Services KMS key identifier for an encrypted DB instance. + The name of the option group to use for the restored DB instance. - The Amazon Web Services KMS key identifier is the key ARN, key ID, alias - ARN, or alias name for the KMS key. To use a KMS key in a different - Amazon Web Services account, specify the key ARN or alias ARN. + Permanent options, such as the TDE option for Oracle Advanced Security + TDE, can't be removed from an option group, and that option group + can't be removed from a DB instance after it is associated with a DB + instance - If the `StorageEncrypted` parameter is enabled, and you do not specify a - value for the `KmsKeyId` parameter, then Amazon RDS will use your - default KMS key. There is a default KMS key for your Amazon Web Services - account. Your Amazon Web Services account has a different default KMS - key for each Amazon Web Services Region. + This setting doesn't apply to RDS Custom. """ copy_tags_to_snapshot: bool | None = ... """ - Specifies whether to copy all tags from the DB instance to snapshots of - the DB instance. By default, tags are not copied. + Specifies whether to copy all tags from the restored DB instance to + snapshots of the DB instance. By default, tags are not copied. """ - monitoring_interval: int | None = ... + tags: list[Tag] | None = ... """ - The interval, in seconds, between points when Enhanced Monitoring - metrics are collected for the DB instance. To disable collecting - Enhanced Monitoring metrics, specify 0. - - If `MonitoringRoleArn` is specified, then you must also set - `MonitoringInterval` to a value other than 0. - - Valid Values: 0, 1, 5, 10, 15, 30, 60 + A list of tags. - Default: `0` + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. """ - monitoring_role_arn: str | None = ... + storage_type: str | None = ... """ - The ARN for the IAM role that permits RDS to send enhanced monitoring - metrics to Amazon CloudWatch Logs. For example, - `arn:aws:iam:123456789012:role/emaccess`. For information on creating a - monitoring role, see [Setting Up and Enabling Enhanced - Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) - in the *Amazon RDS User Guide.* + The storage type to associate with the DB instance. - If `MonitoringInterval` is set to a value other than 0, then you must - supply a `MonitoringRoleArn` value. - """ - enable_iam_database_authentication: bool | None = ... - """ - Specifies whether to enable mapping of Amazon Web Services Identity and - Access Management (IAM) accounts to database accounts. By default, - mapping isn't enabled. + Valid Values: `gp2 | gp3 | io1 | io2 | standard` - For more information about IAM database authentication, see [IAM - Database Authentication for MySQL and - PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) - in the *Amazon RDS User Guide.* - """ - source_engine: str | None = ... - """ - The name of the engine of your source database. + Default: `io1`, if the `Iops` parameter is specified. Otherwise, `gp3`. - Valid Values: `mysql` + Constraints: + + - If you specify `io1`, `io2`, or `gp3`, you must also include a value + for the `Iops` parameter. """ - source_engine_version: str | None = ... + tde_credential_arn: str | None = ... """ - The version of the database that the backup files were created from. - - MySQL versions 5.6 and 5.7 are supported. + The ARN from the key store with which to associate the instance for TDE + encryption. - Example: `5.6.40` + This setting doesn't apply to RDS Custom. """ - s3_bucket_name: str | None = ... + tde_credential_password: str | None = ... """ - The name of your Amazon S3 bucket that contains your database backup - file. + The password for the given ARN from the key store in order to access the + device. + + This setting doesn't apply to RDS Custom. """ - s3_prefix: str | None = ... - """The prefix of your Amazon S3 bucket.""" - s3_ingestion_role_arn: str | None = ... + vpc_security_group_ids: list[str] | None = ... """ - An Amazon Web Services Identity and Access Management (IAM) role with a - trust policy and a permissions policy that allows Amazon RDS to access - your Amazon S3 bucket. For information about this role, see [Creating an - IAM role - manually](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Importing.html#MySQL.Procedural.Importing.Enabling.IAM) - in the *Amazon RDS User Guide.* + A list of EC2 VPC security groups to associate with this DB instance. + + Default: The default EC2 VPC security group for the DB subnet group's + VPC. """ - database_insights_mode: str | None = ... + domain: str | None = ... """ - Specifies the mode of Database Insights to enable for the DB instance. + The Active Directory directory ID to restore the DB instance in. Create + the domain before running this command. Currently, you can create only + the MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in + an Active Directory Domain. - Note: - Aurora DB instances inherit this value from the DB cluster, so you - can't change this value. + This setting doesn't apply to RDS Custom. + + For more information, see [Kerberos + Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) + in the *Amazon RDS User Guide*. """ - enable_performance_insights: bool | None = ... + domain_iam_role_name: str | None = ... """ - Specifies whether to enable Performance Insights for the DB instance. + The name of the IAM role to use when making API calls to the Directory + Service. - For more information, see [Using Amazon Performance - Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) - in the *Amazon RDS User Guide*. + This setting doesn't apply to RDS Custom DB instances. """ - performance_insights_kms_key_id: str | None = ... + domain_fqdn: str | None = ... """ - The Amazon Web Services KMS key identifier for encryption of Performance - Insights data. + The fully qualified domain name (FQDN) of an Active Directory domain. - The Amazon Web Services KMS key identifier is the key ARN, key ID, alias - ARN, or alias name for the KMS key. + Constraints: - If you do not specify a value for `PerformanceInsightsKMSKeyId`, then - Amazon RDS uses your default KMS key. There is a default KMS key for - your Amazon Web Services account. Your Amazon Web Services account has a - different default KMS key for each Amazon Web Services Region. + - Can't be longer than 64 characters. + + Example: `mymanagedADtest.mymanagedAD.mydomain` """ - performance_insights_retention_period: int | None = ... + domain_ou: str | None = ... """ - The number of days to retain Performance Insights data. The default is 7 - days. The following values are valid: + The Active Directory organizational unit for your DB instance to join. - - 7 + Constraints: - - *month* * 31, where *month* is a number of months from 1-23 + - Must be in the distinguished name format. - - 731 + - Can't be longer than 64 characters. - For example, the following values are valid: + Example: + `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` + """ + domain_auth_secret_arn: str | None = ... + """ + The ARN for the Secrets Manager secret with the credentials for the user + joining the domain. - - 93 (3 months * 31) + Constraints: - - 341 (11 months * 31) + - Can't be longer than 64 characters. - - 589 (19 months * 31) + Example: + `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` + """ + domain_dns_ips: list[str] | None = ... + """ + The IPv4 DNS IP addresses of your primary and secondary Active Directory + domain controllers. - - 731 + Constraints: - If you specify a retention period such as 94, which isn't a valid - value, RDS issues an error. + - Two IP addresses must be provided. If there isn't a secondary domain + controller, use the IP address of the primary domain controller for + both entries in the list. + + Example: `123.124.125.126,234.235.236.237` + """ + enable_iam_database_authentication: bool | None = ... + """ + Specifies whether to enable mapping of Amazon Web Services Identity and + Access Management (IAM) accounts to database accounts. By default, + mapping isn't enabled. + + This setting doesn't apply to RDS Custom. + + For more information about IAM database authentication, see [IAM + Database Authentication for MySQL and + PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) + in the *Amazon RDS User Guide.* """ enable_cloudwatch_logs_exports: list[str] | None = ... """ @@ -4709,25 +8657,52 @@ class RestoreDBInstanceFromS3Input(_SerdeShape): CloudWatch Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom. """ processor_features: list[ProcessorFeature] | None = ... """ The number of CPU cores and the number of threads per core for the DB instance class of the DB instance. + + This setting doesn't apply to RDS Custom. """ use_default_processor_features: bool | None = ... """ Specifies whether the DB instance class of the DB instance uses its default processor features. + + This setting doesn't apply to RDS Custom. + """ + db_parameter_group_name: str | None = ... + """ + The name of the DB parameter group to associate with this DB instance. + + If you do not specify a value for `DBParameterGroupName`, then the + default `DBParameterGroup` for the specified DB engine is used. + + This setting doesn't apply to RDS Custom. + + Constraints: + + - If supplied, must match the name of an existing DB parameter group. + + - Must be 1 to 255 letters, numbers, or hyphens. + + - First character must be a letter. + + - Can't end with a hyphen or contain two consecutive hyphens. """ deletion_protection: bool | None = ... """ - Specifies whether to enable deletion protection for the DB instance. The + Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see [Deleting a DB Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). """ + source_dbi_resource_id: str | None = ... + """The resource ID of the source DB instance from which to restore.""" max_allocated_storage: int | None = ... """ The upper limit in gibibytes (GiB) to which Amazon RDS can automatically @@ -4738,16 +8713,33 @@ class RestoreDBInstanceFromS3Input(_SerdeShape): storage autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) in the *Amazon RDS User Guide*. + + This setting doesn't apply to RDS Custom. """ - network_type: str | None = ... + enable_customer_owned_ip: bool | None = ... """ - The network type of the DB instance. + Specifies whether to enable a customer-owned IP address (CoIP) for an + RDS on Outposts DB instance. - Valid Values: + A *CoIP* provides local or external connectivity to resources in your + Outpost subnets through your on-premises network. For some use cases, a + CoIP can provide lower latency for connections to the DB instance from + outside of its virtual private cloud (VPC) on your local network. - - `IPV4` + This setting doesn't apply to RDS Custom. - - `DUAL` + For more information about RDS on Outposts, see [Working with Amazon RDS + on Amazon Web Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + + For more information about CoIPs, see [Customer-owned IP + addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) + in the *Amazon Web Services Outposts User Guide*. + """ + network_type: str | None = ... + """ + The network type of the DB instance. The network type is determined by the `DBSubnetGroup` specified for the DB instance. A `DBSubnetGroup` can support only the IPv4 protocol or the @@ -4756,44 +8748,124 @@ class RestoreDBInstanceFromS3Input(_SerdeShape): For more information, see [Working with a DB instance in a VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the *Amazon RDS User Guide.* + + Valid Values: + + - `IPV4` + + - `DUAL` """ - manage_master_user_password: bool | None = ... + source_db_instance_automated_backups_arn: str | None = ... """ - Specifies whether to manage the master user password with Amazon Web - Services Secrets Manager. + The Amazon Resource Name (ARN) of the replicated automated backups from + which to restore, for example, + `arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE`. - For more information, see [Password management with Amazon Web Services - Secrets - Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) - in the *Amazon RDS User Guide.* + This setting doesn't apply to RDS Custom. + """ + backup_target: str | None = ... + """ + The location for storing automated backups and manual snapshots for the + restored DB instance. + + Valid Values: + + - `local` (Dedicated Local Zone) + + - `outposts` (Amazon Web Services Outposts) + + - `region` (Amazon Web Services Region) + + Default: `region` + + For more information, see [Working with Amazon RDS on Amazon Web + Services + Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) + in the *Amazon RDS User Guide*. + """ + custom_iam_instance_profile: str | None = ... + """ + The instance profile associated with the underlying Amazon EC2 instance + of an RDS Custom DB instance. The instance profile must meet the + following requirements: + + - The profile must exist in your account. + + - The profile must have an IAM role that Amazon EC2 has permissions to + assume. + + - The instance profile name and the associated IAM role name must start + with the prefix `AWSRDSCustom`. + + For the list of permissions required for the IAM role, see [Configure + IAM and your + VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) + in the *Amazon RDS User Guide*. + + This setting is required for RDS Custom. + """ + allocated_storage: int | None = ... + """ + The amount of storage (in gibibytes) to allocate initially for the DB + instance. Follow the allocation rules specified in `CreateDBInstance`. + + This setting isn't valid for RDS for SQL Server. + + Note: + Be sure to allocate enough storage for your new DB instance so that the + restore operation can succeed. You can also allocate additional storage + for future growth. + """ + backup_retention_period: int | None = ... + """ + The number of days to retain automated backups. Setting this parameter + to a positive number enables backups. Setting this parameter to 0 + disables automated backups. + + Note: + Enabling and disabling backups can result in a brief I/O suspension that + lasts from a few seconds to a few minutes, depending on the size and + class of your DB instance. + + This setting doesn't apply to Amazon Aurora DB instances. The retention + period for automated backups is managed by the DB cluster. For more + information, see `ModifyDBCluster`. + + Default: Uses existing setting Constraints: - - Can't manage the master user password with Amazon Web Services - Secrets Manager if `MasterUserPassword` is specified. + - Must be a value from 0 to 35. + + - Can't be set to 0 if the DB instance is a source to read replicas. + + - Can't be set to 0 for an RDS Custom for Oracle DB instance. """ - master_user_secret_kms_key_id: str | None = ... + preferred_backup_window: str | None = ... """ - The Amazon Web Services KMS key identifier to encrypt a secret that is - automatically generated and managed in Amazon Web Services Secrets - Manager. + The daily time range during which automated backups are created if + automated backups are enabled, as determined by the + `BackupRetentionPeriod` parameter. Changing this parameter doesn't + result in an outage and the change is asynchronously applied as soon as + possible. The default is a 30-minute window selected at random from an + 8-hour block of time for each Amazon Web Services Region. For more + information, see [Backup + window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + in the *Amazon RDS User Guide*. - This setting is valid only if the master user password is managed by RDS - in Amazon Web Services Secrets Manager for the DB instance. + This setting doesn't apply to Amazon Aurora DB instances. The daily + time range for creating automated backups is managed by the DB cluster. + For more information, see `ModifyDBCluster`. - The Amazon Web Services KMS key identifier is the key ARN, key ID, alias - ARN, or alias name for the KMS key. To use a KMS key in a different - Amazon Web Services account, specify the key ARN or alias ARN. + Constraints: - If you don't specify `MasterUserSecretKmsKeyId`, then the - `aws/secretsmanager` KMS key is used to encrypt the secret. If the - secret is in a different Amazon Web Services account, then you can't - use the `aws/secretsmanager` KMS key to encrypt the secret, and you must - use a customer managed KMS key. + - Must be in the format `hh24:mi-hh24:mi`. - There is a default KMS key for your Amazon Web Services account. Your - Amazon Web Services account has a different default KMS key for each - Amazon Web Services Region. + - Must be in Universal Coordinated Time (UTC). + + - Must not conflict with the preferred maintenance window. + + - Must be at least 30 minutes. """ db_capacity_reservation_identifier: str | None = ... """ @@ -4870,7 +8942,7 @@ class RestoreDBInstanceFromS3Input(_SerdeShape): Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see [Amazon RDS - Extended Support Amazon + Extended Support with Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the *Amazon RDS User Guide*. @@ -4885,11 +8957,11 @@ class RestoreDBInstanceFromS3Input(_SerdeShape): """ additional_storage_volumes: list[AdditionalStorageVolume] | None = ... """ - A list of additional storage volumes to modify or delete for the DB - instance. You can modify or delete up to three additional storage - volumes using the names `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. - Additional storage volumes are supported for RDS for Oracle and RDS for - SQL Server DB instances only. + A list of additional storage volumes to restore to the DB instance. You + can restore up to three additional storage volumes using the names + `rdsdbdata2`, `rdsdbdata3`, and `rdsdbdata4`. Additional storage volumes + are supported for RDS for Oracle and RDS for SQL Server DB instances + only. """ tag_specifications: list[TagSpecification] | None = ... """ @@ -4899,35 +8971,48 @@ class RestoreDBInstanceFromS3Input(_SerdeShape): - `auto-backup` - The DB instance's automated backup. """ + manage_master_user_password: bool | None = ... + """ + Specifies whether to manage the master user password with Amazon Web + Services Secrets Manager in the restored DB instance. -@dataclass(kw_only=True) -class RestoreDBInstanceFromS3Output(_SerdeShape): - """Dataclass for RestoreDBInstanceFromS3Output structure.""" + For more information, see [Password management with Amazon Web Services + Secrets + Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) + in the *Amazon RDS User Guide*. - db_instance: DBInstance | None = ... - """ - Contains the details of an Amazon RDS DB instance. + Constraints: - This data type is used as a response element in the operations - `CreateDBInstance`, `CreateDBInstanceReadReplica`, `DeleteDBInstance`, - `DescribeDBInstances`, `ModifyDBInstance`, `PromoteReadReplica`, - `RebootDBInstance`, `RestoreDBInstanceFromDBSnapshot`, - `RestoreDBInstanceFromS3`, `RestoreDBInstanceToPointInTime`, - `StartDBInstance`, and `StopDBInstance`. + - Applies to RDS for Oracle only. """ - response_metadata: ResponseMetadata = ... + master_user_secret_kms_key_id: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The Amazon Web Services KMS key identifier to encrypt a secret that is + automatically generated and managed in Amazon Web Services Secrets + Manager. + + This setting is valid only if the master user password is managed by RDS + in Amazon Web Services Secrets Manager for the DB instance. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. To use a KMS key in a different + Amazon Web Services account, specify the key ARN or alias ARN. + + If you don't specify `MasterUserSecretKmsKeyId`, then the + `aws/secretsmanager` KMS key is used to encrypt the secret. If the + secret is in a different Amazon Web Services account, then you can't + use the `aws/secretsmanager` KMS key to encrypt the secret, and you must + use a customer managed KMS key. + + There is a default KMS key for your Amazon Web Services account. Your + Amazon Web Services account has a different default KMS key for each + Amazon Web Services Region. """ -@dataclass(kw_only=True) -class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - """""" +class RestoreDBInstanceToPointInTimeInputDict(TypedDict, total=False): + """Dictionary form of `RestoreDBInstanceToPointInTimeInput`.""" - source_db_instance_identifier: str | None = ... + source_db_instance_identifier: str | None """ The identifier of the source DB instance from which to restore. @@ -4935,7 +9020,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Must match the identifier of an existing DB instance. """ - target_db_instance_identifier: str | None = ... + target_db_instance_identifier: Required[str] """ The name of the new DB instance to create. @@ -4947,7 +9032,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Can't end with a hyphen or contain two consecutive hyphens. """ - restore_time: datetime | None = ... + restore_time: datetime | None """ The date and time to restore from. @@ -4962,7 +9047,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Example: `2009-09-07T23:45:00Z` """ - use_latest_restorable_time: bool | None = ... + use_latest_restorable_time: bool | None """ Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't restored from the latest backup @@ -4972,7 +9057,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Can't be specified if the `RestoreTime` parameter is provided. """ - db_instance_class: str | None = ... + db_instance_class: str | None """ The compute and memory capacity of the Amazon RDS DB instance, for example db.m4.large. Not all DB instance classes are available in all @@ -4984,7 +9069,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Default: The same DB instance class as the original DB instance. """ - port: int | None = ... + port: int | None """ The port number on which the database accepts connections. @@ -4994,7 +9079,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - The value must be `1150-65535`. """ - availability_zone: str | None = ... + availability_zone: str | None """ The Availability Zone (AZ) where the DB instance will be created. @@ -5007,7 +9092,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Example: `us-east-1a` """ - db_subnet_group_name: str | None = ... + db_subnet_group_name: str | None """ The DB subnet group name to use for the new instance. @@ -5017,7 +9102,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Example: `mydbsubnetgroup` """ - multi_az: bool | None = ... + multi_az: bool | None """ Secifies whether the DB instance is a Multi-AZ deployment. @@ -5028,7 +9113,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - You can't specify the `AvailabilityZone` parameter if the DB instance is a Multi-AZ deployment. """ - publicly_accessible: bool | None = ... + publicly_accessible: bool | None """ Specifies whether the DB instance is publicly accessible. @@ -5045,7 +9130,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): For more information, see CreateDBInstance. """ - auto_minor_version_upgrade: bool | None = ... + auto_minor_version_upgrade: bool | None """ Specifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. @@ -5056,7 +9141,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): [Automatically upgrading the minor engine version](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades). """ - license_model: str | None = ... + license_model: str | None """ The license model information for the restored DB instance. @@ -5089,7 +9174,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Default: Same as the source. """ - db_name: str | None = ... + db_name: str | None """ The database name for the restored DB instance. @@ -5103,7 +9188,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - RDS for MySQL """ - engine: str | None = ... + engine: str | None """ The database engine to use for the new instance. @@ -5145,7 +9230,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Must be compatible with the engine of the source. """ - iops: int | None = ... + iops: int | None """ The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. @@ -5156,13 +9241,13 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Must be an integer greater than 1000. """ - storage_throughput: int | None = ... + storage_throughput: int | None """ The storage throughput value for the DB instance. This setting doesn't apply to RDS Custom or Amazon Aurora. """ - option_group_name: str | None = ... + option_group_name: str | None """ The name of the option group to use for the restored DB instance. @@ -5173,12 +9258,12 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): This setting doesn't apply to RDS Custom. """ - copy_tags_to_snapshot: bool | None = ... + copy_tags_to_snapshot: bool | None """ Specifies whether to copy all tags from the restored DB instance to snapshots of the DB instance. By default, tags are not copied. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ A list of tags. @@ -5188,7 +9273,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide*. """ - storage_type: str | None = ... + storage_type: str | None """ The storage type to associate with the DB instance. @@ -5201,28 +9286,28 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - If you specify `io1`, `io2`, or `gp3`, you must also include a value for the `Iops` parameter. """ - tde_credential_arn: str | None = ... + tde_credential_arn: str | None """ The ARN from the key store with which to associate the instance for TDE encryption. This setting doesn't apply to RDS Custom. """ - tde_credential_password: str | None = ... + tde_credential_password: str | None """ The password for the given ARN from the key store in order to access the device. This setting doesn't apply to RDS Custom. """ - vpc_security_group_ids: list[str] | None = ... + vpc_security_group_ids: Sequence[str] | None """ A list of EC2 VPC security groups to associate with this DB instance. Default: The default EC2 VPC security group for the DB subnet group's VPC. """ - domain: str | None = ... + domain: str | None """ The Active Directory directory ID to restore the DB instance in. Create the domain before running this command. Currently, you can create only @@ -5235,14 +9320,14 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) in the *Amazon RDS User Guide*. """ - domain_iam_role_name: str | None = ... + domain_iam_role_name: str | None """ The name of the IAM role to use when making API calls to the Directory Service. This setting doesn't apply to RDS Custom DB instances. """ - domain_fqdn: str | None = ... + domain_fqdn: str | None """ The fully qualified domain name (FQDN) of an Active Directory domain. @@ -5252,7 +9337,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Example: `mymanagedADtest.mymanagedAD.mydomain` """ - domain_ou: str | None = ... + domain_ou: str | None """ The Active Directory organizational unit for your DB instance to join. @@ -5265,7 +9350,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Example: `OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain` """ - domain_auth_secret_arn: str | None = ... + domain_auth_secret_arn: str | None """ The ARN for the Secrets Manager secret with the credentials for the user joining the domain. @@ -5277,7 +9362,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Example: `arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456` """ - domain_dns_ips: list[str] | None = ... + domain_dns_ips: Sequence[str] | None """ The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers. @@ -5290,7 +9375,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Example: `123.124.125.126,234.235.236.237` """ - enable_iam_database_authentication: bool | None = ... + enable_iam_database_authentication: bool | None """ Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, @@ -5303,7 +9388,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) in the *Amazon RDS User Guide.* """ - enable_cloudwatch_logs_exports: list[str] | None = ... + enable_cloudwatch_logs_exports: Sequence[str] | None """ The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being @@ -5314,21 +9399,21 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): This setting doesn't apply to RDS Custom. """ - processor_features: list[ProcessorFeature] | None = ... + processor_features: Sequence[ProcessorFeature | ProcessorFeatureDict] | None """ The number of CPU cores and the number of threads per core for the DB instance class of the DB instance. This setting doesn't apply to RDS Custom. """ - use_default_processor_features: bool | None = ... + use_default_processor_features: bool | None """ Specifies whether the DB instance class of the DB instance uses its default processor features. This setting doesn't apply to RDS Custom. """ - db_parameter_group_name: str | None = ... + db_parameter_group_name: str | None """ The name of the DB parameter group to associate with this DB instance. @@ -5347,7 +9432,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Can't end with a hyphen or contain two consecutive hyphens. """ - deletion_protection: bool | None = ... + deletion_protection: bool | None """ Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By @@ -5355,9 +9440,9 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): [Deleting a DB Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). """ - source_dbi_resource_id: str | None = ... + source_dbi_resource_id: str | None """The resource ID of the source DB instance from which to restore.""" - max_allocated_storage: int | None = ... + max_allocated_storage: int | None """ The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance. @@ -5370,7 +9455,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): This setting doesn't apply to RDS Custom. """ - enable_customer_owned_ip: bool | None = ... + enable_customer_owned_ip: bool | None """ Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. @@ -5391,7 +9476,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): addresses](https://docs.aws.amazon.com/outposts/latest/userguide/routing.html#ip-addressing) in the *Amazon Web Services Outposts User Guide*. """ - network_type: str | None = ... + network_type: str | None """ The network type of the DB instance. @@ -5409,7 +9494,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - `DUAL` """ - source_db_instance_automated_backups_arn: str | None = ... + source_db_instance_automated_backups_arn: str | None """ The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, @@ -5417,7 +9502,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): This setting doesn't apply to RDS Custom. """ - backup_target: str | None = ... + backup_target: str | None """ The location for storing automated backups and manual snapshots for the restored DB instance. @@ -5437,7 +9522,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) in the *Amazon RDS User Guide*. """ - custom_iam_instance_profile: str | None = ... + custom_iam_instance_profile: str | None """ The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the @@ -5458,7 +9543,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): This setting is required for RDS Custom. """ - allocated_storage: int | None = ... + allocated_storage: int | None """ The amount of storage (in gibibytes) to allocate initially for the DB instance. Follow the allocation rules specified in `CreateDBInstance`. @@ -5470,7 +9555,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): restore operation can succeed. You can also allocate additional storage for future growth. """ - backup_retention_period: int | None = ... + backup_retention_period: int | None """ The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 @@ -5495,7 +9580,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Can't be set to 0 for an RDS Custom for Oracle DB instance. """ - preferred_backup_window: str | None = ... + preferred_backup_window: str | None """ The daily time range during which automated backups are created if automated backups are enabled, as determined by the @@ -5521,7 +9606,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Must be at least 30 minutes. """ - db_capacity_reservation_identifier: str | None = ... + db_capacity_reservation_identifier: str | None """ The identifier or the name of the DB capacity reservation to associate with this DB instance. You can specify the identifier, which has the @@ -5560,12 +9645,12 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - The DB subnet group must cover each Availability Zone that the DB instance uses. """ - dedicated_log_volume: bool | None = ... + dedicated_log_volume: bool | None """ Specifies whether to enable a dedicated log volume (DLV) for the DB instance. """ - ca_certificate_identifier: str | None = ... + ca_certificate_identifier: str | None """ The CA certificate identifier to use for the DB instance's server certificate. @@ -5579,7 +9664,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) in the *Amazon Aurora User Guide*. """ - engine_lifecycle_support: str | None = ... + engine_lifecycle_support: str | None """ The lifecycle type for this DB instance. @@ -5609,7 +9694,9 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): Default: `open-source-rds-extended-support` """ - additional_storage_volumes: list[AdditionalStorageVolume] | None = ... + additional_storage_volumes: ( + Sequence[AdditionalStorageVolume | AdditionalStorageVolumeDict] | None + ) """ A list of additional storage volumes to restore to the DB instance. You can restore up to three additional storage volumes using the names @@ -5617,7 +9704,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): are supported for RDS for Oracle and RDS for SQL Server DB instances only. """ - tag_specifications: list[TagSpecification] | None = ... + tag_specifications: Sequence[TagSpecification | TagSpecificationDict] | None """ Tags to assign to resources associated with the DB instance. @@ -5625,7 +9712,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - `auto-backup` - The DB instance's automated backup. """ - manage_master_user_password: bool | None = ... + manage_master_user_password: bool | None """ Specifies whether to manage the master user password with Amazon Web Services Secrets Manager in the restored DB instance. @@ -5639,7 +9726,7 @@ class RestoreDBInstanceToPointInTimeInput(_SerdeShape): - Applies to RDS for Oracle only. """ - master_user_secret_kms_key_id: str | None = ... + master_user_secret_kms_key_id: str | None """ The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets @@ -5731,6 +9818,41 @@ class RevokeDBSecurityGroupIngressInput(_SerdeShape): `EC2SecurityGroupId` must be provided. """ +class RevokeDBSecurityGroupIngressInputDict(TypedDict, total=False): + """Dictionary form of `RevokeDBSecurityGroupIngressInput`.""" + + db_security_group_name: Required[str] + """The name of the DB security group to revoke ingress from.""" + cidrip: str | None + """ + The IP range to revoke access from. Must be a valid CIDR range. If + `CIDRIP` is specified, `EC2SecurityGroupName`, `EC2SecurityGroupId` and + `EC2SecurityGroupOwnerId` can't be provided. + """ + ec2_security_group_name: str | None + """ + The name of the EC2 security group to revoke access from. For VPC DB + security groups, `EC2SecurityGroupId` must be provided. Otherwise, + EC2SecurityGroupOwnerId and either `EC2SecurityGroupName` or + `EC2SecurityGroupId` must be provided. + """ + ec2_security_group_id: str | None + """ + The id of the EC2 security group to revoke access from. For VPC DB + security groups, `EC2SecurityGroupId` must be provided. Otherwise, + EC2SecurityGroupOwnerId and either `EC2SecurityGroupName` or + `EC2SecurityGroupId` must be provided. + """ + ec2_security_group_owner_id: str | None + """ + The Amazon Web Services account number of the owner of the EC2 security + group specified in the `EC2SecurityGroupName` parameter. The Amazon Web + Services access key ID isn't an acceptable value. For VPC DB security + groups, `EC2SecurityGroupId` must be provided. Otherwise, + EC2SecurityGroupOwnerId and either `EC2SecurityGroupName` or + `EC2SecurityGroupId` must be provided. + """ + @dataclass(kw_only=True) class RevokeDBSecurityGroupIngressOutput(_SerdeShape): """Dataclass for RevokeDBSecurityGroupIngressOutput structure.""" @@ -5744,31 +9866,107 @@ class RevokeDBSecurityGroupIngressOutput(_SerdeShape): """ response_metadata: ResponseMetadata = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ScalarReferenceDetails(_SerdeShape): + """The metric reference details when the reference is a scalar.""" + + value: float | None = ... + """The value of a scalar reference.""" + +@dataclass(kw_only=True) +class ScalingConfiguration(_SerdeShape): + """ + Contains the scaling configuration of an Aurora Serverless v1 DB + cluster. + + For more information, see [Using Amazon Aurora Serverless + v1](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html) + in the *Amazon Aurora User Guide*. + """ + + min_capacity: int | None = ... + """ + The minimum capacity for an Aurora DB cluster in `serverless` DB engine + mode. + + For Aurora MySQL, valid capacity values are `1`, `2`, `4`, `8`, `16`, + `32`, `64`, `128`, and `256`. + + For Aurora PostgreSQL, valid capacity values are `2`, `4`, `8`, `16`, + `32`, `64`, `192`, and `384`. + + The minimum capacity must be less than or equal to the maximum capacity. + """ + max_capacity: int | None = ... + """ + The maximum capacity for an Aurora DB cluster in `serverless` DB engine + mode. + + For Aurora MySQL, valid capacity values are `1`, `2`, `4`, `8`, `16`, + `32`, `64`, `128`, and `256`. + + For Aurora PostgreSQL, valid capacity values are `2`, `4`, `8`, `16`, + `32`, `64`, `192`, and `384`. + + The maximum capacity must be greater than or equal to the minimum + capacity. + """ + auto_pause: bool | None = ... + """ + Indicates whether to allow or disallow automatic pause for an Aurora DB + cluster in `serverless` DB engine mode. A DB cluster can be paused only + when it's idle (it has no connections). + + Note: + If a DB cluster is paused for more than seven days, the DB cluster might + be backed up with a snapshot. In this case, the DB cluster is restored + when there is a request to connect to it. + """ + seconds_until_auto_pause: int | None = ... + """ + The time, in seconds, before an Aurora DB cluster in `serverless` mode + is paused. + + Specify a value between 300 and 86,400 seconds. + """ + timeout_action: str | None = ... """ + The action to take when the timeout is reached, either + `ForceApplyCapacityChange` or `RollbackCapacityChange`. -@dataclass(kw_only=True) -class ScalarReferenceDetails(_SerdeShape): - """The metric reference details when the reference is a scalar.""" + `ForceApplyCapacityChange` sets the capacity to the specified value as + soon as possible. - value: float | None = ... - """The value of a scalar reference.""" + `RollbackCapacityChange`, the default, ignores the capacity change if a + scaling point isn't found in the timeout period. -@dataclass(kw_only=True) -class ScalingConfiguration(_SerdeShape): - """ - Contains the scaling configuration of an Aurora Serverless v1 DB - cluster. + Warning: + If you specify `ForceApplyCapacityChange`, connections that prevent + Aurora Serverless v1 from finding a scaling point might be dropped. - For more information, see [Using Amazon Aurora Serverless - v1](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html) + For more information, see [Autoscaling for Aurora Serverless + v1](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.auto-scaling) in the *Amazon Aurora User Guide*. """ + seconds_before_timeout: int | None = ... + """ + The amount of time, in seconds, that Aurora Serverless v1 tries to find + a scaling point to perform seamless scaling before enforcing the timeout + action. The default is 300. + + Specify a value between 60 and 600 seconds. + """ - min_capacity: int | None = ... +class ScalingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ScalingConfiguration`.""" + + min_capacity: int | None """ The minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. @@ -5781,7 +9979,7 @@ class ScalingConfiguration(_SerdeShape): The minimum capacity must be less than or equal to the maximum capacity. """ - max_capacity: int | None = ... + max_capacity: int | None """ The maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. @@ -5795,7 +9993,7 @@ class ScalingConfiguration(_SerdeShape): The maximum capacity must be greater than or equal to the minimum capacity. """ - auto_pause: bool | None = ... + auto_pause: bool | None """ Indicates whether to allow or disallow automatic pause for an Aurora DB cluster in `serverless` DB engine mode. A DB cluster can be paused only @@ -5806,14 +10004,14 @@ class ScalingConfiguration(_SerdeShape): be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. """ - seconds_until_auto_pause: int | None = ... + seconds_until_auto_pause: int | None """ The time, in seconds, before an Aurora DB cluster in `serverless` mode is paused. Specify a value between 300 and 86,400 seconds. """ - timeout_action: str | None = ... + timeout_action: str | None """ The action to take when the timeout is reached, either `ForceApplyCapacityChange` or `RollbackCapacityChange`. @@ -5832,7 +10030,7 @@ class ScalingConfiguration(_SerdeShape): v1](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.auto-scaling) in the *Amazon Aurora User Guide*. """ - seconds_before_timeout: int | None = ... + seconds_before_timeout: int | None """ The amount of time, in seconds, that Aurora Serverless v1 tries to find a scaling point to perform seamless scaling before enforcing the timeout @@ -5994,6 +10192,36 @@ class ServerlessV2ScalingConfiguration(_SerdeShape): (one day). The default is 300 seconds. """ +class ServerlessV2ScalingConfigurationDict(TypedDict, total=False): + """Dictionary form of `ServerlessV2ScalingConfiguration`.""" + + min_capacity: float | None + """ + The minimum number of Aurora capacity units (ACUs) for a DB instance in + an Aurora Serverless v2 cluster. You can specify ACU values in half-step + increments, such as 8, 8.5, 9, and so on. For Aurora versions that + support the Aurora Serverless v2 auto-pause feature, the smallest value + that you can use is 0. For versions that don't support Aurora + Serverless v2 auto-pause, the smallest value that you can use is 0.5. + """ + max_capacity: float | None + """ + The maximum number of Aurora capacity units (ACUs) for a DB instance in + an Aurora Serverless v2 cluster. You can specify ACU values in half-step + increments, such as 32, 32.5, 33, and so on. The largest value that you + can use is 256 for recent Aurora versions, or 128 for older versions. + You can check the attributes of your engine version or platform version + to determine the specific maximum capacity supported. + """ + seconds_until_auto_pause: int | None + """ + Specifies the number of seconds an Aurora Serverless v2 DB instance must + be idle before Aurora attempts to automatically pause it. + + Specify a value between 300 seconds (five minutes) and 86,400 seconds + (one day). The default is 300 seconds. + """ + @dataclass(kw_only=True) class ServerlessV2ScalingConfigurationInfo(_SerdeShape): """ @@ -6202,6 +10430,38 @@ class StartActivityStreamInput(_SerdeShape): DB instance. By default, no engine-native audit fields are included. """ +class StartActivityStreamInputDict(TypedDict, total=False): + """Dictionary form of `StartActivityStreamInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the DB cluster, for example, + `arn:aws:rds:us-east-1:12345667890:cluster:das-cluster`. + """ + mode: Required[str] + """ + Specifies the mode of the database activity stream. Database events such + as a change or access generate an activity stream event. The database + session can handle these events either synchronously or asynchronously. + """ + kms_key_id: Required[str] + """ + The Amazon Web Services KMS key identifier for encrypting messages in + the database activity stream. The Amazon Web Services KMS key identifier + is the key ARN, key ID, alias ARN, or alias name for the KMS key. + """ + apply_immediately: bool | None + """ + Specifies whether or not the database activity stream is to start as + soon as possible, regardless of the maintenance window for the database. + """ + engine_native_audit_fields_included: bool | None + """ + Specifies whether the database activity stream includes engine-native + audit fields. This option applies to an Oracle or Microsoft SQL Server + DB instance. By default, no engine-native audit fields are included. + """ + @dataclass(kw_only=True) class StartActivityStreamOutput(_SerdeShape): """Dataclass for StartActivityStreamOutput structure.""" @@ -6248,6 +10508,15 @@ class StartDBClusterInput(_SerdeShape): This parameter is stored as a lowercase string. """ +class StartDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `StartDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """ + The DB cluster identifier of the Amazon Aurora DB cluster to be started. + This parameter is stored as a lowercase string. + """ + @dataclass(kw_only=True) class StartDBClusterOutput(_SerdeShape): """Dataclass for StartDBClusterOutput structure.""" @@ -6337,6 +10606,55 @@ class StartDBInstanceAutomatedBackupsReplicationInput(_SerdeShape): tags: list[Tag] | None = ... """A list of tags to associate with the replicated automated backups.""" +class StartDBInstanceAutomatedBackupsReplicationInputDict(TypedDict, total=False): + """Dictionary form of `StartDBInstanceAutomatedBackupsReplicationInput`.""" + + source_db_instance_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the source DB instance for the + replicated automated backups, for example, + `arn:aws:rds:us-west-2:123456789012:db:mydatabase`. + """ + backup_retention_period: int | None + """The retention period for the replicated automated backups.""" + kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for encryption of the + replicated automated backups. The KMS key ID is the Amazon Resource Name + (ARN) for the KMS encryption key in the destination Amazon Web Services + Region, for example, + `arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE`. + """ + pre_signed_url: str | None + """ + In an Amazon Web Services GovCloud (US) Region, an URL that contains a + Signature Version 4 signed request for the + `StartDBInstanceAutomatedBackupsReplication` operation to call in the + Amazon Web Services Region of the source DB instance. The presigned URL + must be a valid request for the + `StartDBInstanceAutomatedBackupsReplication` API operation that can run + in the Amazon Web Services Region that contains the source DB instance. + + This setting applies only to Amazon Web Services GovCloud (US) Regions. + It's ignored in other Amazon Web Services Regions. + + To learn how to generate a Signature Version 4 signed request, see + [Authenticating Requests: Using Query Parameters (Amazon Web Services + Signature Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) + and [Signature Version 4 Signing + Process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). + + Note: + If you are using an Amazon Web Services SDK tool or the CLI, you can + specify `SourceRegion` (or `--source-region` for the CLI) instead of + specifying `PreSignedUrl` manually. Specifying `SourceRegion` + autogenerates a presigned URL that is a valid request for the operation + that can run in the source Amazon Web Services Region. + """ + tags: Sequence[Tag | TagDict] | None + """A list of tags to associate with the replicated automated backups.""" + @dataclass(kw_only=True) class StartDBInstanceAutomatedBackupsReplicationOutput(_SerdeShape): """ @@ -6399,49 +10717,173 @@ class StartDBInstanceInput(_SerdeShape): and it must have available capacity in that Availability Zone. """ -@dataclass(kw_only=True) -class StartDBInstanceOutput(_SerdeShape): - """Dataclass for StartDBInstanceOutput structure.""" +class StartDBInstanceInputDict(TypedDict, total=False): + """Dictionary form of `StartDBInstanceInput`.""" + + db_instance_identifier: Required[str] + """The user-supplied instance identifier.""" + db_capacity_reservation_identifier: str | None + """ + The identifier or the name of the DB capacity reservation for the DB + instance to use after it starts. You can specify the identifier, which + has the prefix `dbcr-`, or the reservation name. + + Specify this parameter when the DB instance stopped using a reservation, + or when you want the DB instance to use a different reservation. + + If you omit this parameter, and the DB instance kept a DB capacity + reservation when it stopped, Amazon RDS starts the DB instance in that + reservation. + + If that reservation is deleted, ended, or cancelled, the DB instance + still starts. Amazon RDS starts the DB instance outside the reservation, + on unreserved capacity, and it charges on-demand prices for the DB + instance. + + If that reservation has no available capacity in the Availability Zone + of the DB instance, the request fails. Amazon RDS doesn't start the DB + instance, and it doesn't wait for capacity in that Availability Zone. + Specify a reservation that has available capacity in that Availability + Zone, or retry the request after the reservation has available capacity. + + Constraints: + + - The reservation must be in the `active` state. + + - The reservation must reserve capacity for the DB instance class and + the engine of the DB instance. + + - The reservation must cover the Availability Zone of the DB instance, + and it must have available capacity in that Availability Zone. + """ + +@dataclass(kw_only=True) +class StartDBInstanceOutput(_SerdeShape): + """Dataclass for StartDBInstanceOutput structure.""" + + db_instance: DBInstance | None = ... + """ + Contains the details of an Amazon RDS DB instance. + + This data type is used as a response element in the operations + `CreateDBInstance`, `CreateDBInstanceReadReplica`, `DeleteDBInstance`, + `DescribeDBInstances`, `ModifyDBInstance`, `PromoteReadReplica`, + `RebootDBInstance`, `RestoreDBInstanceFromDBSnapshot`, + `RestoreDBInstanceFromS3`, `RestoreDBInstanceToPointInTime`, + `StartDBInstance`, and `StopDBInstance`. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class StartExportTaskInput(_SerdeShape): + """Dataclass for StartExportTaskInput structure.""" + + export_task_identifier: str | None = ... + """ + A unique identifier for the export task. This ID isn't an identifier + for the Amazon S3 bucket where the data is to be exported. + """ + source_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the snapshot or cluster to export to + Amazon S3. + """ + s3_bucket_name: str | None = ... + """ + The name of the Amazon S3 bucket to export the snapshot or cluster data + to. + """ + iam_role_arn: str | None = ... + """ + The name of the IAM role to use for writing to the Amazon S3 bucket when + exporting a snapshot or cluster. + + In the IAM policy attached to your IAM role, include the following + required actions to allow the transfer of files from Amazon RDS or + Amazon Aurora to an S3 bucket: + + - s3:PutObject* + + - s3:GetObject* + + - s3:ListBucket + + - s3:DeleteObject* + + - s3:GetBucketLocation + + In the policy, include the resources to identify the S3 bucket and + objects in the bucket. The following list of resources shows the Amazon + Resource Name (ARN) format for accessing S3: + + - `arn:aws:s3:::`*`your-s3-bucket`*` ` + + - `arn:aws:s3:::`*`your-s3-bucket`*`/*` + """ + kms_key_id: str | None = ... + """ + The ID of the Amazon Web Services KMS key to use to encrypt the data + exported to Amazon S3. The Amazon Web Services KMS key identifier is the + key ARN, key ID, alias ARN, or alias name for the KMS key. The caller of + this operation must be authorized to run the following operations. These + can be set in the Amazon Web Services KMS key policy: + + - kms:CreateGrant - db_instance: DBInstance | None = ... + - kms:DescribeKey """ - Contains the details of an Amazon RDS DB instance. - - This data type is used as a response element in the operations - `CreateDBInstance`, `CreateDBInstanceReadReplica`, `DeleteDBInstance`, - `DescribeDBInstances`, `ModifyDBInstance`, `PromoteReadReplica`, - `RebootDBInstance`, `RestoreDBInstanceFromDBSnapshot`, - `RestoreDBInstanceFromS3`, `RestoreDBInstanceToPointInTime`, - `StartDBInstance`, and `StopDBInstance`. + s3_prefix: str | None = ... """ - response_metadata: ResponseMetadata = ... + The Amazon S3 bucket prefix to use as the file name and path of the + exported data. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + export_only: list[str] | None = ... """ + The data to be exported from the snapshot or cluster. If this parameter + isn't provided, all of the data is exported. -@dataclass(kw_only=True) -class StartExportTaskInput(_SerdeShape): - """Dataclass for StartExportTaskInput structure.""" + Valid Values: - export_task_identifier: str | None = ... + - `database` - Export all the data from a specified database. + + - `database.table` *table-name* - Export a table of the snapshot or + cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, + and Aurora MySQL. + + - `database.schema` *schema-name* - Export a database schema of the + snapshot or cluster. This format is valid only for RDS for PostgreSQL + and Aurora PostgreSQL. + + - `database.schema.table` *table-name* - Export a table of the database + schema. This format is valid only for RDS for PostgreSQL and Aurora + PostgreSQL. + """ + +class StartExportTaskInputDict(TypedDict, total=False): + """Dictionary form of `StartExportTaskInput`.""" + + export_task_identifier: Required[str] """ A unique identifier for the export task. This ID isn't an identifier for the Amazon S3 bucket where the data is to be exported. """ - source_arn: str | None = ... + source_arn: Required[str] """ The Amazon Resource Name (ARN) of the snapshot or cluster to export to Amazon S3. """ - s3_bucket_name: str | None = ... + s3_bucket_name: Required[str] """ The name of the Amazon S3 bucket to export the snapshot or cluster data to. """ - iam_role_arn: str | None = ... + iam_role_arn: Required[str] """ The name of the IAM role to use for writing to the Amazon S3 bucket when exporting a snapshot or cluster. @@ -6468,7 +10910,7 @@ class StartExportTaskInput(_SerdeShape): - `arn:aws:s3:::`*`your-s3-bucket`*`/*` """ - kms_key_id: str | None = ... + kms_key_id: Required[str] """ The ID of the Amazon Web Services KMS key to use to encrypt the data exported to Amazon S3. The Amazon Web Services KMS key identifier is the @@ -6480,12 +10922,12 @@ class StartExportTaskInput(_SerdeShape): - kms:DescribeKey """ - s3_prefix: str | None = ... + s3_prefix: str | None """ The Amazon S3 bucket prefix to use as the file name and path of the exported data. """ - export_only: list[str] | None = ... + export_only: Sequence[str] | None """ The data to be exported from the snapshot or cluster. If this parameter isn't provided, all of the data is exported. @@ -6624,6 +11066,21 @@ class StopActivityStreamInput(_SerdeShape): as possible, regardless of the maintenance window for the database. """ +class StopActivityStreamInputDict(TypedDict, total=False): + """Dictionary form of `StopActivityStreamInput`.""" + + resource_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the DB cluster for the database + activity stream. For example, + `arn:aws:rds:us-east-1:12345667890:cluster:das-cluster`. + """ + apply_immediately: bool | None + """ + Specifies whether or not the database activity stream is to stop as soon + as possible, regardless of the maintenance window for the database. + """ + @dataclass(kw_only=True) class StopActivityStreamOutput(_SerdeShape): """Dataclass for StopActivityStreamOutput structure.""" @@ -6661,6 +11118,15 @@ class StopDBClusterInput(_SerdeShape): This parameter is stored as a lowercase string. """ +class StopDBClusterInputDict(TypedDict, total=False): + """Dictionary form of `StopDBClusterInput`.""" + + db_cluster_identifier: Required[str] + """ + The DB cluster identifier of the Amazon Aurora DB cluster to be stopped. + This parameter is stored as a lowercase string. + """ + @dataclass(kw_only=True) class StopDBClusterOutput(_SerdeShape): """Dataclass for StopDBClusterOutput structure.""" @@ -6711,6 +11177,16 @@ class StopDBInstanceAutomatedBackupsReplicationInput(_SerdeShape): `arn:aws:rds:us-west-2:123456789012:db:mydatabase`. """ +class StopDBInstanceAutomatedBackupsReplicationInputDict(TypedDict, total=False): + """Dictionary form of `StopDBInstanceAutomatedBackupsReplicationInput`.""" + + source_db_instance_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the source DB instance for which to + stop replicating automate backups, for example, + `arn:aws:rds:us-west-2:123456789012:db:mydatabase`. + """ + @dataclass(kw_only=True) class StopDBInstanceAutomatedBackupsReplicationOutput(_SerdeShape): """Dataclass for StopDBInstanceAutomatedBackupsReplicationOutput structure.""" @@ -6768,6 +11244,44 @@ class StopDBInstanceInput(_SerdeShape): DB instance class. """ +class StopDBInstanceInputDict(TypedDict, total=False): + """Dictionary form of `StopDBInstanceInput`.""" + + db_instance_identifier: Required[str] + """The user-supplied instance identifier.""" + db_snapshot_identifier: str | None + """ + The user-supplied instance identifier of the DB Snapshot created + immediately before the DB instance is stopped. + """ + detach_from_db_capacity_reservation: bool | None + """ + Specifies whether the DB instance stops using its DB capacity + reservation when the DB instance stops. When you specify `true`, the DB + instance belongs to no reservation after it stops, and a later start + launches it outside the reservation. + + By default, a stopped DB instance keeps its DB capacity reservation, and + a later start returns the DB instance to the same reservation. + + Every stop releases the unit of reserved capacity that the DB instance + holds, for either value of this parameter. Another DB instance can then + use that capacity. This parameter controls the reservation that the DB + instance belongs to, and it does not control the release of the + capacity. + + If the DB instance uses no DB capacity reservation, this parameter has + no effect. + + Warning: + Amazon RDS holds no capacity for a stopped DB instance. When the + reservation has no available capacity in the Availability Zone of the DB + instance, a later start waits for capacity in that Availability Zone. + When the DB instance belongs to no reservation, a later start can fail + because the Amazon Web Services Region has insufficient capacity for the + DB instance class. + """ + @dataclass(kw_only=True) class StopDBInstanceOutput(_SerdeShape): """Dataclass for StopDBInstanceOutput structure.""" @@ -6987,6 +11501,27 @@ class SwitchoverBlueGreenDeploymentInput(_SerdeShape): changes are rolled back, and no changes are made to the environments. """ +class SwitchoverBlueGreenDeploymentInputDict(TypedDict, total=False): + """Dictionary form of `SwitchoverBlueGreenDeploymentInput`.""" + + blue_green_deployment_identifier: Required[str] + """ + The resource ID of the blue/green deployment. + + Constraints: + + - Must match an existing blue/green deployment resource ID. + """ + switchover_timeout: int | None + """ + The amount of time, in seconds, for the switchover to complete. + + Default: 300 + + If the switchover takes longer than the specified duration, then any + changes are rolled back, and no changes are made to the environments. + """ + @dataclass(kw_only=True) class SwitchoverBlueGreenDeploymentOutput(_SerdeShape): """Dataclass for SwitchoverBlueGreenDeploymentOutput structure.""" @@ -7073,6 +11608,27 @@ class SwitchoverGlobalClusterInput(_SerdeShape): Amazon Web Services Region. """ +class SwitchoverGlobalClusterInputDict(TypedDict, total=False): + """Dictionary form of `SwitchoverGlobalClusterInput`.""" + + global_cluster_identifier: Required[str] + """ + The identifier of the global database cluster to switch over. This + parameter isn't case-sensitive. + + Constraints: + + - Must match the identifier of an existing global database cluster + (Aurora global database). + """ + target_db_cluster_identifier: Required[str] + """ + The identifier of the secondary Aurora DB cluster to promote to the new + primary for the global database cluster. Use the Amazon Resource Name + (ARN) for the identifier so that Aurora can locate the cluster in its + Amazon Web Services Region. + """ + @dataclass(kw_only=True) class SwitchoverGlobalClusterOutput(_SerdeShape): """Dataclass for SwitchoverGlobalClusterOutput structure.""" @@ -7102,6 +11658,20 @@ class SwitchoverReadReplicaInput(_SerdeShape): instance. """ +class SwitchoverReadReplicaInputDict(TypedDict, total=False): + """Dictionary form of `SwitchoverReadReplicaInput`.""" + + db_instance_identifier: Required[str] + """ + The DB instance identifier of the current standby database. This value + is stored as a lowercase string. + + Constraints: + + - Must match the identifier of an existing Oracle read replica DB + instance. + """ + @dataclass(kw_only=True) class SwitchoverReadReplicaOutput(_SerdeShape): """Dataclass for SwitchoverReadReplicaOutput structure.""" @@ -7157,6 +11727,28 @@ class Tag(_SerdeShape): \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\"). """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: str | None + """ + A key is the required name of the tag. The string value can be from 1 to + 128 Unicode characters in length and can't be prefixed with `aws:` or + `rds:`. The string can only contain only the set of Unicode letters, + digits, white-space, '_', '.', ':', '/', '=', '+', '-', + '@' (Java regex: + \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\"). + """ + value: str | None + """ + A value is the optional value of the tag. The string value can be from 1 + to 256 Unicode characters in length and can't be prefixed with `aws:` + or `rds:`. The string can only contain only the set of Unicode letters, + digits, white-space, '_', '.', ':', '/', '=', '+', '-', + '@' (Java regex: + \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\"). + """ + @dataclass(kw_only=True) class TagSpecification(_SerdeShape): """ @@ -7189,6 +11781,32 @@ class TagSpecification(_SerdeShape): in the *Amazon Aurora User Guide*. """ +class TagSpecificationDict(TypedDict, total=False): + """Dictionary form of `TagSpecification`.""" + + resource_type: str | None + """ + The type of resource to tag on creation. + + Valid Values: + + - `auto-backup` - The DB instance's automated backup. + + - `cluster-auto-backup` - The DB cluster's automated backup. + + - `og` - The copied option group. Valid only for `CopyDBSnapshot`. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags. + + For more information, see [Tagging Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS + resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) + in the *Amazon Aurora User Guide*. + """ + class TargetConnectionNetworkType(UnknownEnumMixin, StrEnum): IPV4 = "IPV4" IPV6 = "IPV6" @@ -7266,6 +11884,39 @@ class TargetResourceConfiguration(_SerdeShape): separate entry for each one. Each entry can specify a different KMS key. """ +class TargetResourceConfigurationDict(TypedDict, total=False): + """Dictionary form of `TargetResourceConfiguration`.""" + + source_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the DB cluster or DB instance in the + blue environment to which this configuration applies. + """ + target_kms_key_id: str | None + """ + The Amazon Web Services KMS key identifier for encryption of the + corresponding resource in the green environment. + + The Amazon Web Services KMS key identifier is the key ARN, key ID, alias + ARN, or alias name for the KMS key. + + Specify this setting in either of the following cases: + + - You want the green resource to use a different KMS key than the blue + resource. + + - The blue resource is unencrypted and you want to encrypt the green + resource. + + For Aurora, encryption applies at the DB cluster level. Specify a DB + cluster ARN in `SourceArn`. All DB instances in that cluster use the + same KMS key. + + For RDS, encryption applies at the DB instance level. Specify a DB + instance ARN in `SourceArn`. To encrypt read replicas, include a + separate entry for each one. Each entry can specify a different KMS key. + """ + class TargetRole(UnknownEnumMixin, StrEnum): READ_WRITE = "READ_WRITE" READ_ONLY = "READ_ONLY" @@ -7538,6 +12189,46 @@ class UserAuthConfig(_SerdeShape): - RDS for PostgreSQL: `POSTGRES_SCRAM_SHA2_256` """ +class UserAuthConfigDict(TypedDict, total=False): + """Dictionary form of `UserAuthConfig`.""" + + description: str | None + """ + A user-specified description about the authentication used by a proxy to + log in as a specific database user. + """ + user_name: str | None + """The name of the database user to which the proxy connects.""" + auth_scheme: str | None + """ + The type of authentication that the proxy uses for connections from the + proxy to the underlying database. + """ + secret_arn: str | None + """ + The Amazon Resource Name (ARN) representing the secret that the proxy + uses to authenticate to the RDS DB instance or Aurora DB cluster. These + secrets are stored within Amazon Secrets Manager. + """ + iam_auth: str | None + """ + A value that indicates whether to require or disallow Amazon Web + Services Identity and Access Management (IAM) authentication for + connections to the proxy. The `ENABLED` value is valid only for proxies + with RDS for Microsoft SQL Server. + """ + client_password_auth_type: str | None + """ + The type of authentication the proxy uses for connections from clients. + The following values are defaults for the corresponding engines: + + - RDS for MySQL: `MYSQL_CACHING_SHA2_PASSWORD` + + - RDS for SQL Server: `SQL_SERVER_AUTHENTICATION` + + - RDS for PostgreSQL: `POSTGRES_SCRAM_SHA2_256` + """ + @dataclass(kw_only=True) class UserAuthConfigInfo(_SerdeShape): """ diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas.py index 57016ca0e..8a9497cbb 100644 --- a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas.py +++ b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas.py @@ -1053,7 +1053,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:02d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_0.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_00.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_0.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_00.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_1.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_01.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_1.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_01.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_2.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_02.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_2.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_02.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_3.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_03.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_3.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_03.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_4.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_04.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_4.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_04.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_5.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_05.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_5.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_05.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_6.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_06.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_6.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_06.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_7.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_07.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_7.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_07.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_8.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_08.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_8.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_08.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_9.py b/clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_09.py similarity index 100% rename from clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_9.py rename to clients/aws-sdk-rds/src/aws_sdk_rds/_private/schemas_09.py diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/aio/client.py b/clients/aws-sdk-rds/src/aws_sdk_rds/aio/client.py index 48d635f18..c5902e98b 100644 --- a/clients/aws-sdk-rds/src/aws_sdk_rds/aio/client.py +++ b/clients/aws-sdk-rds/src/aws_sdk_rds/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,341 +20,173 @@ if TYPE_CHECKING: from ..models import ( - AddRoleToDBClusterInput, AddRoleToDBClusterOutput, - AddRoleToDBInstanceInput, AddRoleToDBInstanceOutput, - AddSourceIdentifierToSubscriptionInput, AddSourceIdentifierToSubscriptionOutput, - AddTagsToResourceInput, AddTagsToResourceOutput, - ApplyPendingMaintenanceActionInput, ApplyPendingMaintenanceActionOutput, - AuthorizeDBSecurityGroupIngressInput, AuthorizeDBSecurityGroupIngressOutput, - BacktrackDBClusterInput, BacktrackDBClusterOutput, - CancelDBCapacityReservationInput, CancelDBCapacityReservationOutput, - CancelExportTaskInput, CancelExportTaskOutput, - CopyDBClusterParameterGroupInput, CopyDBClusterParameterGroupOutput, - CopyDBClusterSnapshotInput, CopyDBClusterSnapshotOutput, - CopyDBParameterGroupInput, CopyDBParameterGroupOutput, - CopyDBSnapshotInput, CopyDBSnapshotOutput, - CopyOptionGroupInput, CopyOptionGroupOutput, - CreateBlueGreenDeploymentInput, CreateBlueGreenDeploymentOutput, - CreateCustomDBEngineVersionInput, CreateCustomDBEngineVersionOutput, - CreateDBCapacityReservationInput, CreateDBCapacityReservationOutput, - CreateDBClusterEndpointInput, CreateDBClusterEndpointOutput, - CreateDBClusterInput, CreateDBClusterOutput, - CreateDBClusterParameterGroupInput, CreateDBClusterParameterGroupOutput, - CreateDBClusterSnapshotInput, CreateDBClusterSnapshotOutput, - CreateDBInstanceInput, CreateDBInstanceOutput, - CreateDBInstanceReadReplicaInput, CreateDBInstanceReadReplicaOutput, - CreateDBParameterGroupInput, CreateDBParameterGroupOutput, - CreateDBProxyEndpointInput, CreateDBProxyEndpointOutput, - CreateDBProxyInput, CreateDBProxyOutput, - CreateDBSecurityGroupInput, CreateDBSecurityGroupOutput, - CreateDBShardGroupInput, CreateDBShardGroupOutput, - CreateDBSnapshotInput, CreateDBSnapshotOutput, - CreateDBSubnetGroupInput, CreateDBSubnetGroupOutput, - CreateEventSubscriptionInput, CreateEventSubscriptionOutput, - CreateGlobalClusterInput, CreateGlobalClusterOutput, - CreateIntegrationInput, CreateIntegrationOutput, - CreateOptionGroupInput, CreateOptionGroupOutput, - CreateTenantDatabaseInput, CreateTenantDatabaseOutput, - DeleteBlueGreenDeploymentInput, DeleteBlueGreenDeploymentOutput, - DeleteCustomDBEngineVersionInput, DeleteCustomDBEngineVersionOutput, - DeleteDBClusterAutomatedBackupInput, DeleteDBClusterAutomatedBackupOutput, - DeleteDBClusterEndpointInput, DeleteDBClusterEndpointOutput, - DeleteDBClusterInput, DeleteDBClusterOutput, - DeleteDBClusterParameterGroupInput, DeleteDBClusterParameterGroupOutput, - DeleteDBClusterSnapshotInput, DeleteDBClusterSnapshotOutput, - DeleteDBInstanceAutomatedBackupInput, DeleteDBInstanceAutomatedBackupOutput, - DeleteDBInstanceInput, DeleteDBInstanceOutput, - DeleteDBParameterGroupInput, DeleteDBParameterGroupOutput, - DeleteDBProxyEndpointInput, DeleteDBProxyEndpointOutput, - DeleteDBProxyInput, DeleteDBProxyOutput, - DeleteDBSecurityGroupInput, DeleteDBSecurityGroupOutput, - DeleteDBShardGroupInput, DeleteDBShardGroupOutput, - DeleteDBSnapshotInput, DeleteDBSnapshotOutput, - DeleteDBSubnetGroupInput, DeleteDBSubnetGroupOutput, - DeleteEventSubscriptionInput, DeleteEventSubscriptionOutput, - DeleteGlobalClusterInput, DeleteGlobalClusterOutput, - DeleteIntegrationInput, DeleteIntegrationOutput, - DeleteOptionGroupInput, DeleteOptionGroupOutput, - DeleteTenantDatabaseInput, DeleteTenantDatabaseOutput, - DeregisterDBProxyTargetsInput, DeregisterDBProxyTargetsOutput, - DescribeAccountAttributesInput, DescribeAccountAttributesOutput, - DescribeBlueGreenDeploymentsInput, DescribeBlueGreenDeploymentsOutput, - DescribeCertificatesInput, DescribeCertificatesOutput, - DescribeDBCapacityReservationsInput, DescribeDBCapacityReservationsOutput, - DescribeDBClusterAutomatedBackupsInput, DescribeDBClusterAutomatedBackupsOutput, - DescribeDBClusterBacktracksInput, DescribeDBClusterBacktracksOutput, - DescribeDBClusterEndpointsInput, DescribeDBClusterEndpointsOutput, - DescribeDBClusterParameterGroupsInput, DescribeDBClusterParameterGroupsOutput, - DescribeDBClusterParametersInput, DescribeDBClusterParametersOutput, - DescribeDBClusterSnapshotAttributesInput, DescribeDBClusterSnapshotAttributesOutput, - DescribeDBClusterSnapshotsInput, DescribeDBClusterSnapshotsOutput, - DescribeDBClustersInput, DescribeDBClustersOutput, - DescribeDBEngineVersionsInput, DescribeDBEngineVersionsOutput, - DescribeDBInstanceAutomatedBackupsInput, DescribeDBInstanceAutomatedBackupsOutput, - DescribeDBInstancesInput, DescribeDBInstancesOutput, - DescribeDBLogFilesInput, DescribeDBLogFilesOutput, - DescribeDBMajorEngineVersionsInput, DescribeDBMajorEngineVersionsOutput, - DescribeDBParameterGroupsInput, DescribeDBParameterGroupsOutput, - DescribeDBParametersInput, DescribeDBParametersOutput, - DescribeDBProxiesInput, DescribeDBProxiesOutput, - DescribeDBProxyEndpointsInput, DescribeDBProxyEndpointsOutput, - DescribeDBProxyTargetGroupsInput, DescribeDBProxyTargetGroupsOutput, - DescribeDBProxyTargetsInput, DescribeDBProxyTargetsOutput, - DescribeDBRecommendationsInput, DescribeDBRecommendationsOutput, - DescribeDBSecurityGroupsInput, DescribeDBSecurityGroupsOutput, - DescribeDBShardGroupsInput, DescribeDBShardGroupsOutput, - DescribeDBSnapshotAttributesInput, DescribeDBSnapshotAttributesOutput, - DescribeDBSnapshotTenantDatabasesInput, DescribeDBSnapshotTenantDatabasesOutput, - DescribeDBSnapshotsInput, DescribeDBSnapshotsOutput, - DescribeDBSubnetGroupsInput, DescribeDBSubnetGroupsOutput, - DescribeEngineDefaultClusterParametersInput, DescribeEngineDefaultClusterParametersOutput, - DescribeEngineDefaultParametersInput, DescribeEngineDefaultParametersOutput, - DescribeEventCategoriesInput, DescribeEventCategoriesOutput, - DescribeEventSubscriptionsInput, DescribeEventSubscriptionsOutput, - DescribeEventsInput, DescribeEventsOutput, - DescribeExportTasksInput, DescribeExportTasksOutput, - DescribeGlobalClustersInput, DescribeGlobalClustersOutput, - DescribeIntegrationsInput, DescribeIntegrationsOutput, - DescribeOptionGroupOptionsInput, DescribeOptionGroupOptionsOutput, - DescribeOptionGroupsInput, DescribeOptionGroupsOutput, - DescribeOrderableDBInstanceOptionsInput, DescribeOrderableDBInstanceOptionsOutput, - DescribePendingMaintenanceActionsInput, DescribePendingMaintenanceActionsOutput, - DescribeReservedDBInstancesInput, - DescribeReservedDBInstancesOfferingsInput, DescribeReservedDBInstancesOfferingsOutput, DescribeReservedDBInstancesOutput, - DescribeServerlessV2PlatformVersionsInput, DescribeServerlessV2PlatformVersionsOutput, - DescribeSourceRegionsInput, DescribeSourceRegionsOutput, - DescribeTenantDatabasesInput, DescribeTenantDatabasesOutput, - DescribeValidDBInstanceModificationsInput, DescribeValidDBInstanceModificationsOutput, - DisableHttpEndpointInput, DisableHttpEndpointOutput, - DownloadDBLogFilePortionInput, DownloadDBLogFilePortionOutput, - EnableHttpEndpointInput, EnableHttpEndpointOutput, - FailoverDBClusterInput, FailoverDBClusterOutput, - FailoverGlobalClusterInput, FailoverGlobalClusterOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ModifyActivityStreamInput, ModifyActivityStreamOutput, - ModifyCertificatesInput, ModifyCertificatesOutput, - ModifyCurrentDBClusterCapacityInput, ModifyCurrentDBClusterCapacityOutput, - ModifyCustomDBEngineVersionInput, ModifyCustomDBEngineVersionOutput, - ModifyDBCapacityReservationInput, ModifyDBCapacityReservationOutput, - ModifyDBClusterEndpointInput, ModifyDBClusterEndpointOutput, - ModifyDBClusterInput, ModifyDBClusterOutput, - ModifyDBClusterParameterGroupInput, ModifyDBClusterParameterGroupOutput, - ModifyDBClusterSnapshotAttributeInput, ModifyDBClusterSnapshotAttributeOutput, - ModifyDBInstanceInput, ModifyDBInstanceOutput, - ModifyDBParameterGroupInput, ModifyDBParameterGroupOutput, - ModifyDBProxyEndpointInput, ModifyDBProxyEndpointOutput, - ModifyDBProxyInput, ModifyDBProxyOutput, - ModifyDBProxyTargetGroupInput, ModifyDBProxyTargetGroupOutput, - ModifyDBRecommendationInput, ModifyDBRecommendationOutput, - ModifyDBShardGroupInput, ModifyDBShardGroupOutput, - ModifyDBSnapshotAttributeInput, ModifyDBSnapshotAttributeOutput, - ModifyDBSnapshotInput, ModifyDBSnapshotOutput, - ModifyDBSubnetGroupInput, ModifyDBSubnetGroupOutput, - ModifyEventSubscriptionInput, ModifyEventSubscriptionOutput, - ModifyGlobalClusterInput, ModifyGlobalClusterOutput, - ModifyIntegrationInput, ModifyIntegrationOutput, - ModifyOptionGroupInput, ModifyOptionGroupOutput, - ModifyTenantDatabaseInput, ModifyTenantDatabaseOutput, - PromoteReadReplicaDBClusterInput, PromoteReadReplicaDBClusterOutput, - PromoteReadReplicaInput, PromoteReadReplicaOutput, - PurchaseReservedDBInstancesOfferingInput, PurchaseReservedDBInstancesOfferingOutput, - RebootDBClusterInput, RebootDBClusterOutput, - RebootDBInstanceInput, RebootDBInstanceOutput, - RebootDBShardGroupInput, RebootDBShardGroupOutput, - RegisterDBProxyTargetsInput, RegisterDBProxyTargetsOutput, - RemoveFromGlobalClusterInput, RemoveFromGlobalClusterOutput, - RemoveRoleFromDBClusterInput, RemoveRoleFromDBClusterOutput, - RemoveRoleFromDBInstanceInput, RemoveRoleFromDBInstanceOutput, - RemoveSourceIdentifierFromSubscriptionInput, RemoveSourceIdentifierFromSubscriptionOutput, - RemoveTagsFromResourceInput, RemoveTagsFromResourceOutput, - ResetDBClusterParameterGroupInput, ResetDBClusterParameterGroupOutput, - ResetDBParameterGroupInput, ResetDBParameterGroupOutput, - RestoreDBClusterFromS3Input, RestoreDBClusterFromS3Output, - RestoreDBClusterFromSnapshotInput, RestoreDBClusterFromSnapshotOutput, - RestoreDBClusterToPointInTimeInput, RestoreDBClusterToPointInTimeOutput, - RestoreDBInstanceFromDBSnapshotInput, RestoreDBInstanceFromDBSnapshotOutput, - RestoreDBInstanceFromS3Input, RestoreDBInstanceFromS3Output, - RestoreDBInstanceToPointInTimeInput, RestoreDBInstanceToPointInTimeOutput, - RevokeDBSecurityGroupIngressInput, RevokeDBSecurityGroupIngressOutput, - StartActivityStreamInput, StartActivityStreamOutput, - StartDBClusterInput, StartDBClusterOutput, - StartDBInstanceAutomatedBackupsReplicationInput, StartDBInstanceAutomatedBackupsReplicationOutput, - StartDBInstanceInput, StartDBInstanceOutput, - StartExportTaskInput, StartExportTaskOutput, - StopActivityStreamInput, StopActivityStreamOutput, - StopDBClusterInput, StopDBClusterOutput, - StopDBInstanceAutomatedBackupsReplicationInput, StopDBInstanceAutomatedBackupsReplicationOutput, - StopDBInstanceInput, StopDBInstanceOutput, - SwitchoverBlueGreenDeploymentInput, SwitchoverBlueGreenDeploymentOutput, - SwitchoverGlobalClusterInput, SwitchoverGlobalClusterOutput, - SwitchoverReadReplicaInput, SwitchoverReadReplicaOutput, ) @@ -416,18 +248,30 @@ class AsyncRDSClient(AsyncClient[AsyncRDSConfig]): API](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def add_role_to_db_cluster( - self, input: AddRoleToDBClusterInput, plugins: list[Plugin] | None = None + self, + request: _models.AddRoleToDBClusterInput | _models.AddRoleToDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddRoleToDBClusterOutput: ... + + @_overload + async def add_role_to_db_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddRoleToDBClusterInputDict], ) -> AddRoleToDBClusterOutput: """ Associates an Identity and Access Management (IAM) role with a DB cluster. Args: - input: - An instance of `AddRoleToDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -437,10 +281,34 @@ async def add_role_to_db_cluster( Returns: An instance of `AddRoleToDBClusterOutput`. """ - return await self._invoke(input, _models.ADD_ROLE_TO_DB_CLUSTER, [], plugins) + async def add_role_to_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddRoleToDBClusterOutput: + return await self._invoke( + self._select_input(_models.ADD_ROLE_TO_DB_CLUSTER, args, kwargs), + _models.ADD_ROLE_TO_DB_CLUSTER, + [], + plugins, + ) + + @_overload + async def add_role_to_db_instance( + self, + request: _models.AddRoleToDBInstanceInput + | _models.AddRoleToDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddRoleToDBInstanceOutput: ... + + @_overload async def add_role_to_db_instance( - self, input: AddRoleToDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddRoleToDBInstanceInputDict], ) -> AddRoleToDBInstanceOutput: """ Associates an Amazon Web Services Identity and Access Management (IAM) @@ -453,8 +321,6 @@ async def add_role_to_db_instance( This command doesn't apply to RDS Custom. Args: - input: - An instance of `AddRoleToDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -464,20 +330,40 @@ async def add_role_to_db_instance( Returns: An instance of `AddRoleToDBInstanceOutput`. """ - return await self._invoke(input, _models.ADD_ROLE_TO_DB_INSTANCE, [], plugins) + async def add_role_to_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddRoleToDBInstanceOutput: + return await self._invoke( + self._select_input(_models.ADD_ROLE_TO_DB_INSTANCE, args, kwargs), + _models.ADD_ROLE_TO_DB_INSTANCE, + [], + plugins, + ) + + @_overload + async def add_source_identifier_to_subscription( + self, + request: _models.AddSourceIdentifierToSubscriptionInput + | _models.AddSourceIdentifierToSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddSourceIdentifierToSubscriptionOutput: ... + + @_overload async def add_source_identifier_to_subscription( self, - input: AddSourceIdentifierToSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddSourceIdentifierToSubscriptionInputDict], ) -> AddSourceIdentifierToSubscriptionOutput: """ Adds a source identifier to an existing RDS event notification subscription. Args: - input: - An instance of `AddSourceIdentifierToSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -487,12 +373,35 @@ async def add_source_identifier_to_subscription( Returns: An instance of `AddSourceIdentifierToSubscriptionOutput`. """ + + async def add_source_identifier_to_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddSourceIdentifierToSubscriptionOutput: return await self._invoke( - input, _models.ADD_SOURCE_IDENTIFIER_TO_SUBSCRIPTION, [], plugins + self._select_input( + _models.ADD_SOURCE_IDENTIFIER_TO_SUBSCRIPTION, args, kwargs + ), + _models.ADD_SOURCE_IDENTIFIER_TO_SUBSCRIPTION, + [], + plugins, ) + @_overload + async def add_tags_to_resource( + self, + request: _models.AddTagsToResourceInput | _models.AddTagsToResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddTagsToResourceOutput: ... + + @_overload async def add_tags_to_resource( - self, input: AddTagsToResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddTagsToResourceInputDict], ) -> AddTagsToResourceOutput: """ Adds metadata tags to an Amazon RDS resource. These tags can also be @@ -507,8 +416,6 @@ async def add_tags_to_resource( Resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html). Args: - input: - An instance of `AddTagsToResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -518,20 +425,40 @@ async def add_tags_to_resource( Returns: An instance of `AddTagsToResourceOutput`. """ - return await self._invoke(input, _models.ADD_TAGS_TO_RESOURCE, [], plugins) + async def add_tags_to_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddTagsToResourceOutput: + return await self._invoke( + self._select_input(_models.ADD_TAGS_TO_RESOURCE, args, kwargs), + _models.ADD_TAGS_TO_RESOURCE, + [], + plugins, + ) + + @_overload async def apply_pending_maintenance_action( self, - input: ApplyPendingMaintenanceActionInput, + request: _models.ApplyPendingMaintenanceActionInput + | _models.ApplyPendingMaintenanceActionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ApplyPendingMaintenanceActionOutput: ... + + @_overload + async def apply_pending_maintenance_action( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ApplyPendingMaintenanceActionInputDict], ) -> ApplyPendingMaintenanceActionOutput: """ Applies a pending maintenance action to a resource (for example, to a DB instance). Args: - input: - An instance of `ApplyPendingMaintenanceActionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -541,14 +468,34 @@ async def apply_pending_maintenance_action( Returns: An instance of `ApplyPendingMaintenanceActionOutput`. """ + + async def apply_pending_maintenance_action( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ApplyPendingMaintenanceActionOutput: return await self._invoke( - input, _models.APPLY_PENDING_MAINTENANCE_ACTION, [], plugins + self._select_input(_models.APPLY_PENDING_MAINTENANCE_ACTION, args, kwargs), + _models.APPLY_PENDING_MAINTENANCE_ACTION, + [], + plugins, ) + @_overload + async def authorize_db_security_group_ingress( + self, + request: _models.AuthorizeDBSecurityGroupIngressInput + | _models.AuthorizeDBSecurityGroupIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AuthorizeDBSecurityGroupIngressOutput: ... + + @_overload async def authorize_db_security_group_ingress( self, - input: AuthorizeDBSecurityGroupIngressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AuthorizeDBSecurityGroupIngressInputDict], ) -> AuthorizeDBSecurityGroupIngressOutput: """ Enables ingress to a DBSecurityGroup using one of two forms of @@ -581,8 +528,6 @@ async def authorize_db_security_group_ingress( in the *Amazon RDS User Guide*. Args: - input: - An instance of `AuthorizeDBSecurityGroupIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -592,12 +537,35 @@ async def authorize_db_security_group_ingress( Returns: An instance of `AuthorizeDBSecurityGroupIngressOutput`. """ + + async def authorize_db_security_group_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AuthorizeDBSecurityGroupIngressOutput: return await self._invoke( - input, _models.AUTHORIZE_DB_SECURITY_GROUP_INGRESS, [], plugins + self._select_input( + _models.AUTHORIZE_DB_SECURITY_GROUP_INGRESS, args, kwargs + ), + _models.AUTHORIZE_DB_SECURITY_GROUP_INGRESS, + [], + plugins, ) + @_overload + async def backtrack_db_cluster( + self, + request: _models.BacktrackDBClusterInput | _models.BacktrackDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BacktrackDBClusterOutput: ... + + @_overload async def backtrack_db_cluster( - self, input: BacktrackDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BacktrackDBClusterInputDict], ) -> BacktrackDBClusterOutput: """ Backtracks a DB cluster to a specific time, without creating a new DB @@ -611,8 +579,6 @@ async def backtrack_db_cluster( This action applies only to Aurora MySQL DB clusters. Args: - input: - An instance of `BacktrackDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -622,12 +588,34 @@ async def backtrack_db_cluster( Returns: An instance of `BacktrackDBClusterOutput`. """ - return await self._invoke(input, _models.BACKTRACK_DB_CLUSTER, [], plugins) + async def backtrack_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BacktrackDBClusterOutput: + return await self._invoke( + self._select_input(_models.BACKTRACK_DB_CLUSTER, args, kwargs), + _models.BACKTRACK_DB_CLUSTER, + [], + plugins, + ) + + @_overload + async def cancel_db_capacity_reservation( + self, + request: _models.CancelDBCapacityReservationInput + | _models.CancelDBCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelDBCapacityReservationOutput: ... + + @_overload async def cancel_db_capacity_reservation( self, - input: CancelDBCapacityReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelDBCapacityReservationInputDict], ) -> CancelDBCapacityReservationOutput: """ Cancels a DB capacity reservation. Amazon RDS changes the state of the @@ -653,8 +641,6 @@ async def cancel_db_capacity_reservation( - The reservation must not be past its end date. Args: - input: - An instance of `CancelDBCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -664,12 +650,33 @@ async def cancel_db_capacity_reservation( Returns: An instance of `CancelDBCapacityReservationOutput`. """ + + async def cancel_db_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelDBCapacityReservationOutput: return await self._invoke( - input, _models.CANCEL_DB_CAPACITY_RESERVATION, [], plugins + self._select_input(_models.CANCEL_DB_CAPACITY_RESERVATION, args, kwargs), + _models.CANCEL_DB_CAPACITY_RESERVATION, + [], + plugins, ) + @_overload async def cancel_export_task( - self, input: CancelExportTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.CancelExportTaskInput | _models.CancelExportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelExportTaskOutput: ... + + @_overload + async def cancel_export_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelExportTaskInputDict], ) -> CancelExportTaskOutput: """ Cancels an export task in progress that is exporting a snapshot or @@ -677,8 +684,6 @@ async def cancel_export_task( bucket isn't removed. Args: - input: - An instance of `CancelExportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -688,12 +693,34 @@ async def cancel_export_task( Returns: An instance of `CancelExportTaskOutput`. """ - return await self._invoke(input, _models.CANCEL_EXPORT_TASK, [], plugins) + async def cancel_export_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelExportTaskOutput: + return await self._invoke( + self._select_input(_models.CANCEL_EXPORT_TASK, args, kwargs), + _models.CANCEL_EXPORT_TASK, + [], + plugins, + ) + + @_overload + async def copy_db_cluster_parameter_group( + self, + request: _models.CopyDBClusterParameterGroupInput + | _models.CopyDBClusterParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDBClusterParameterGroupOutput: ... + + @_overload async def copy_db_cluster_parameter_group( self, - input: CopyDBClusterParameterGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDBClusterParameterGroupInputDict], ) -> CopyDBClusterParameterGroupOutput: """ Copies the specified DB cluster parameter group. @@ -705,8 +732,6 @@ async def copy_db_cluster_parameter_group( family. Args: - input: - An instance of `CopyDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -716,12 +741,34 @@ async def copy_db_cluster_parameter_group( Returns: An instance of `CopyDBClusterParameterGroupOutput`. """ + + async def copy_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDBClusterParameterGroupOutput: return await self._invoke( - input, _models.COPY_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.COPY_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.COPY_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload + async def copy_db_cluster_snapshot( + self, + request: _models.CopyDBClusterSnapshotInput + | _models.CopyDBClusterSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDBClusterSnapshotOutput: ... + + @_overload async def copy_db_cluster_snapshot( - self, input: CopyDBClusterSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDBClusterSnapshotInputDict], ) -> CopyDBClusterSnapshotOutput: """ Copies a snapshot of a DB cluster. @@ -769,8 +816,6 @@ async def copy_db_cluster_snapshot( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CopyDBClusterSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -780,10 +825,34 @@ async def copy_db_cluster_snapshot( Returns: An instance of `CopyDBClusterSnapshotOutput`. """ - return await self._invoke(input, _models.COPY_DB_CLUSTER_SNAPSHOT, [], plugins) + async def copy_db_cluster_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDBClusterSnapshotOutput: + return await self._invoke( + self._select_input(_models.COPY_DB_CLUSTER_SNAPSHOT, args, kwargs), + _models.COPY_DB_CLUSTER_SNAPSHOT, + [], + plugins, + ) + + @_overload + async def copy_db_parameter_group( + self, + request: _models.CopyDBParameterGroupInput + | _models.CopyDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDBParameterGroupOutput: ... + + @_overload async def copy_db_parameter_group( - self, input: CopyDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDBParameterGroupInputDict], ) -> CopyDBParameterGroupOutput: """ Copies the specified DB parameter group. @@ -794,8 +863,6 @@ async def copy_db_parameter_group( values for the specified DB parameter group family. Args: - input: - An instance of `CopyDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -805,10 +872,33 @@ async def copy_db_parameter_group( Returns: An instance of `CopyDBParameterGroupOutput`. """ - return await self._invoke(input, _models.COPY_DB_PARAMETER_GROUP, [], plugins) + async def copy_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDBParameterGroupOutput: + return await self._invoke( + self._select_input(_models.COPY_DB_PARAMETER_GROUP, args, kwargs), + _models.COPY_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload async def copy_db_snapshot( - self, input: CopyDBSnapshotInput, plugins: list[Plugin] | None = None + self, + request: _models.CopyDBSnapshotInput | _models.CopyDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDBSnapshotOutput: ... + + @_overload + async def copy_db_snapshot( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDBSnapshotInputDict], ) -> CopyDBSnapshotOutput: """ Copies the specified DB snapshot. The source DB snapshot must be in the @@ -826,8 +916,6 @@ async def copy_db_snapshot( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CopyDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -837,17 +925,38 @@ async def copy_db_snapshot( Returns: An instance of `CopyDBSnapshotOutput`. """ - return await self._invoke(input, _models.COPY_DB_SNAPSHOT, [], plugins) + async def copy_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDBSnapshotOutput: + return await self._invoke( + self._select_input(_models.COPY_DB_SNAPSHOT, args, kwargs), + _models.COPY_DB_SNAPSHOT, + [], + plugins, + ) + + @_overload + async def copy_option_group( + self, + request: _models.CopyOptionGroupInput | _models.CopyOptionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyOptionGroupOutput: ... + + @_overload async def copy_option_group( - self, input: CopyOptionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyOptionGroupInputDict], ) -> CopyOptionGroupOutput: """ Copies the specified option group. Args: - input: - An instance of `CopyOptionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -857,10 +966,34 @@ async def copy_option_group( Returns: An instance of `CopyOptionGroupOutput`. """ - return await self._invoke(input, _models.COPY_OPTION_GROUP, [], plugins) + async def copy_option_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyOptionGroupOutput: + return await self._invoke( + self._select_input(_models.COPY_OPTION_GROUP, args, kwargs), + _models.COPY_OPTION_GROUP, + [], + plugins, + ) + + @_overload + async def create_blue_green_deployment( + self, + request: _models.CreateBlueGreenDeploymentInput + | _models.CreateBlueGreenDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBlueGreenDeploymentOutput: ... + + @_overload async def create_blue_green_deployment( - self, input: CreateBlueGreenDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBlueGreenDeploymentInputDict], ) -> CreateBlueGreenDeploymentOutput: """ Creates a blue/green deployment. @@ -888,8 +1021,6 @@ async def create_blue_green_deployment( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `CreateBlueGreenDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -899,21 +1030,39 @@ async def create_blue_green_deployment( Returns: An instance of `CreateBlueGreenDeploymentOutput`. """ + + async def create_blue_green_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBlueGreenDeploymentOutput: return await self._invoke( - input, _models.CREATE_BLUE_GREEN_DEPLOYMENT, [], plugins + self._select_input(_models.CREATE_BLUE_GREEN_DEPLOYMENT, args, kwargs), + _models.CREATE_BLUE_GREEN_DEPLOYMENT, + [], + plugins, ) + @_overload + async def create_custom_db_engine_version( + self, + request: _models.CreateCustomDBEngineVersionInput + | _models.CreateCustomDBEngineVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomDBEngineVersionOutput: ... + + @_overload async def create_custom_db_engine_version( self, - input: CreateCustomDBEngineVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomDBEngineVersionInputDict], ) -> CreateCustomDBEngineVersionOutput: """ Creates a custom DB engine version (CEV). Args: - input: - An instance of `CreateCustomDBEngineVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -923,14 +1072,34 @@ async def create_custom_db_engine_version( Returns: An instance of `CreateCustomDBEngineVersionOutput`. """ + + async def create_custom_db_engine_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomDBEngineVersionOutput: return await self._invoke( - input, _models.CREATE_CUSTOM_DB_ENGINE_VERSION, [], plugins + self._select_input(_models.CREATE_CUSTOM_DB_ENGINE_VERSION, args, kwargs), + _models.CREATE_CUSTOM_DB_ENGINE_VERSION, + [], + plugins, ) + @_overload + async def create_db_capacity_reservation( + self, + request: _models.CreateDBCapacityReservationInput + | _models.CreateDBCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBCapacityReservationOutput: ... + + @_overload async def create_db_capacity_reservation( self, - input: CreateDBCapacityReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBCapacityReservationInputDict], ) -> CreateDBCapacityReservationOutput: """ Creates a DB capacity reservation. A DB capacity reservation reserves @@ -989,8 +1158,6 @@ async def create_db_capacity_reservation( the time that Amazon RDS schedules it until the commitment ends. Args: - input: - An instance of `CreateDBCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1000,12 +1167,33 @@ async def create_db_capacity_reservation( Returns: An instance of `CreateDBCapacityReservationOutput`. """ + + async def create_db_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBCapacityReservationOutput: return await self._invoke( - input, _models.CREATE_DB_CAPACITY_RESERVATION, [], plugins + self._select_input(_models.CREATE_DB_CAPACITY_RESERVATION, args, kwargs), + _models.CREATE_DB_CAPACITY_RESERVATION, + [], + plugins, ) + @_overload + async def create_db_cluster( + self, + request: _models.CreateDBClusterInput | _models.CreateDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBClusterOutput: ... + + @_overload async def create_db_cluster( - self, input: CreateDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBClusterInputDict], ) -> CreateDBClusterOutput: """ Creates a new Amazon Aurora DB cluster or Multi-AZ DB cluster. @@ -1044,8 +1232,6 @@ async def create_db_cluster( and export, or Amazon Web Services Lambda for invoking functions. Args: - input: - An instance of `CreateDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1055,10 +1241,34 @@ async def create_db_cluster( Returns: An instance of `CreateDBClusterOutput`. """ - return await self._invoke(input, _models.CREATE_DB_CLUSTER, [], plugins) + async def create_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBClusterOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_CLUSTER, args, kwargs), + _models.CREATE_DB_CLUSTER, + [], + plugins, + ) + + @_overload async def create_db_cluster_endpoint( - self, input: CreateDBClusterEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDBClusterEndpointInput + | _models.CreateDBClusterEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBClusterEndpointOutput: ... + + @_overload + async def create_db_cluster_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBClusterEndpointInputDict], ) -> CreateDBClusterEndpointOutput: """ Creates a new custom endpoint and associates it with an Amazon Aurora DB @@ -1068,8 +1278,6 @@ async def create_db_cluster_endpoint( This action applies only to Aurora DB clusters. Args: - input: - An instance of `CreateDBClusterEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1079,14 +1287,34 @@ async def create_db_cluster_endpoint( Returns: An instance of `CreateDBClusterEndpointOutput`. """ + + async def create_db_cluster_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBClusterEndpointOutput: return await self._invoke( - input, _models.CREATE_DB_CLUSTER_ENDPOINT, [], plugins + self._select_input(_models.CREATE_DB_CLUSTER_ENDPOINT, args, kwargs), + _models.CREATE_DB_CLUSTER_ENDPOINT, + [], + plugins, ) + @_overload + async def create_db_cluster_parameter_group( + self, + request: _models.CreateDBClusterParameterGroupInput + | _models.CreateDBClusterParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBClusterParameterGroupOutput: ... + + @_overload async def create_db_cluster_parameter_group( self, - input: CreateDBClusterParameterGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBClusterParameterGroupInputDict], ) -> CreateDBClusterParameterGroupOutput: """ Creates a new DB cluster parameter group. @@ -1133,8 +1361,6 @@ async def create_db_cluster_parameter_group( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CreateDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1144,12 +1370,34 @@ async def create_db_cluster_parameter_group( Returns: An instance of `CreateDBClusterParameterGroupOutput`. """ + + async def create_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBClusterParameterGroupOutput: return await self._invoke( - input, _models.CREATE_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.CREATE_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.CREATE_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload async def create_db_cluster_snapshot( - self, input: CreateDBClusterSnapshotInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateDBClusterSnapshotInput + | _models.CreateDBClusterSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBClusterSnapshotOutput: ... + + @_overload + async def create_db_cluster_snapshot( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBClusterSnapshotInputDict], ) -> CreateDBClusterSnapshotOutput: """ Creates a snapshot of a DB cluster. @@ -1163,8 +1411,6 @@ async def create_db_cluster_snapshot( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CreateDBClusterSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1174,12 +1420,33 @@ async def create_db_cluster_snapshot( Returns: An instance of `CreateDBClusterSnapshotOutput`. """ + + async def create_db_cluster_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBClusterSnapshotOutput: return await self._invoke( - input, _models.CREATE_DB_CLUSTER_SNAPSHOT, [], plugins + self._select_input(_models.CREATE_DB_CLUSTER_SNAPSHOT, args, kwargs), + _models.CREATE_DB_CLUSTER_SNAPSHOT, + [], + plugins, ) + @_overload + async def create_db_instance( + self, + request: _models.CreateDBInstanceInput | _models.CreateDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBInstanceOutput: ... + + @_overload async def create_db_instance( - self, input: CreateDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBInstanceInputDict], ) -> CreateDBInstanceOutput: """ Creates a new DB instance. @@ -1200,8 +1467,6 @@ async def create_db_instance( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `CreateDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1211,12 +1476,34 @@ async def create_db_instance( Returns: An instance of `CreateDBInstanceOutput`. """ - return await self._invoke(input, _models.CREATE_DB_INSTANCE, [], plugins) + async def create_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBInstanceOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_INSTANCE, args, kwargs), + _models.CREATE_DB_INSTANCE, + [], + plugins, + ) + + @_overload + async def create_db_instance_read_replica( + self, + request: _models.CreateDBInstanceReadReplicaInput + | _models.CreateDBInstanceReadReplicaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBInstanceReadReplicaOutput: ... + + @_overload async def create_db_instance_read_replica( self, - input: CreateDBInstanceReadReplicaInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBInstanceReadReplicaInputDict], ) -> CreateDBInstanceReadReplicaOutput: """ Creates a new DB instance that acts as a read replica for an existing @@ -1241,8 +1528,6 @@ async def create_db_instance_read_replica( Your source DB instance or cluster must have backup retention enabled. Args: - input: - An instance of `CreateDBInstanceReadReplicaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1252,12 +1537,34 @@ async def create_db_instance_read_replica( Returns: An instance of `CreateDBInstanceReadReplicaOutput`. """ + + async def create_db_instance_read_replica( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBInstanceReadReplicaOutput: return await self._invoke( - input, _models.CREATE_DB_INSTANCE_READ_REPLICA, [], plugins + self._select_input(_models.CREATE_DB_INSTANCE_READ_REPLICA, args, kwargs), + _models.CREATE_DB_INSTANCE_READ_REPLICA, + [], + plugins, ) + @_overload + async def create_db_parameter_group( + self, + request: _models.CreateDBParameterGroupInput + | _models.CreateDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBParameterGroupOutput: ... + + @_overload async def create_db_parameter_group( - self, input: CreateDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBParameterGroupInputDict], ) -> CreateDBParameterGroupOutput: """ Creates a new DB parameter group. @@ -1274,8 +1581,6 @@ async def create_db_parameter_group( This command doesn't apply to RDS Custom. Args: - input: - An instance of `CreateDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1285,17 +1590,38 @@ async def create_db_parameter_group( Returns: An instance of `CreateDBParameterGroupOutput`. """ - return await self._invoke(input, _models.CREATE_DB_PARAMETER_GROUP, [], plugins) + async def create_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBParameterGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_PARAMETER_GROUP, args, kwargs), + _models.CREATE_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + async def create_db_proxy( + self, + request: _models.CreateDBProxyInput | _models.CreateDBProxyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBProxyOutput: ... + + @_overload async def create_db_proxy( - self, input: CreateDBProxyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBProxyInputDict], ) -> CreateDBProxyOutput: """ Creates a new DB proxy. Args: - input: - An instance of `CreateDBProxyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1305,10 +1631,34 @@ async def create_db_proxy( Returns: An instance of `CreateDBProxyOutput`. """ - return await self._invoke(input, _models.CREATE_DB_PROXY, [], plugins) + async def create_db_proxy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBProxyOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_PROXY, args, kwargs), + _models.CREATE_DB_PROXY, + [], + plugins, + ) + + @_overload + async def create_db_proxy_endpoint( + self, + request: _models.CreateDBProxyEndpointInput + | _models.CreateDBProxyEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBProxyEndpointOutput: ... + + @_overload async def create_db_proxy_endpoint( - self, input: CreateDBProxyEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBProxyEndpointInputDict], ) -> CreateDBProxyEndpointOutput: """ Creates a `DBProxyEndpoint`. Only applies to proxies that are associated @@ -1318,8 +1668,6 @@ async def create_db_proxy_endpoint( proxy's default VPC. Args: - input: - An instance of `CreateDBProxyEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1329,10 +1677,34 @@ async def create_db_proxy_endpoint( Returns: An instance of `CreateDBProxyEndpointOutput`. """ - return await self._invoke(input, _models.CREATE_DB_PROXY_ENDPOINT, [], plugins) + async def create_db_proxy_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBProxyEndpointOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_PROXY_ENDPOINT, args, kwargs), + _models.CREATE_DB_PROXY_ENDPOINT, + [], + plugins, + ) + + @_overload + async def create_db_security_group( + self, + request: _models.CreateDBSecurityGroupInput + | _models.CreateDBSecurityGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBSecurityGroupOutput: ... + + @_overload async def create_db_security_group( - self, input: CreateDBSecurityGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBSecurityGroupInputDict], ) -> CreateDBSecurityGroupOutput: """ Creates a new DB security group. DB security groups control access to a @@ -1354,8 +1726,6 @@ async def create_db_security_group( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CreateDBSecurityGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1365,11 +1735,34 @@ async def create_db_security_group( Returns: An instance of `CreateDBSecurityGroupOutput`. """ - return await self._invoke(input, _models.CREATE_DB_SECURITY_GROUP, [], plugins) + async def create_db_security_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBSecurityGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_SECURITY_GROUP, args, kwargs), + _models.CREATE_DB_SECURITY_GROUP, + [], + plugins, + ) + + @_overload async def create_db_shard_group( - self, input: CreateDBShardGroupInput, plugins: list[Plugin] | None = None - ) -> CreateDBShardGroupOutput: + self, + request: _models.CreateDBShardGroupInput | _models.CreateDBShardGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBShardGroupOutput: ... + + @_overload + async def create_db_shard_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBShardGroupInputDict], + ) -> CreateDBShardGroupOutput: """ Creates a new DB shard group for Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group. @@ -1377,8 +1770,6 @@ async def create_db_shard_group( Valid for: Aurora DB clusters only Args: - input: - An instance of `CreateDBShardGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1388,18 +1779,39 @@ async def create_db_shard_group( Returns: An instance of `CreateDBShardGroupOutput`. """ - return await self._invoke(input, _models.CREATE_DB_SHARD_GROUP, [], plugins) + async def create_db_shard_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBShardGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_SHARD_GROUP, args, kwargs), + _models.CREATE_DB_SHARD_GROUP, + [], + plugins, + ) + + @_overload + async def create_db_snapshot( + self, + request: _models.CreateDBSnapshotInput | _models.CreateDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBSnapshotOutput: ... + + @_overload async def create_db_snapshot( - self, input: CreateDBSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBSnapshotInputDict], ) -> CreateDBSnapshotOutput: """ Creates a snapshot of a DB instance. The source DB instance must be in the `available` or `storage-optimization` state. Args: - input: - An instance of `CreateDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1409,18 +1821,40 @@ async def create_db_snapshot( Returns: An instance of `CreateDBSnapshotOutput`. """ - return await self._invoke(input, _models.CREATE_DB_SNAPSHOT, [], plugins) + async def create_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBSnapshotOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_SNAPSHOT, args, kwargs), + _models.CREATE_DB_SNAPSHOT, + [], + plugins, + ) + + @_overload + async def create_db_subnet_group( + self, + request: _models.CreateDBSubnetGroupInput + | _models.CreateDBSubnetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBSubnetGroupOutput: ... + + @_overload async def create_db_subnet_group( - self, input: CreateDBSubnetGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBSubnetGroupInputDict], ) -> CreateDBSubnetGroupOutput: """ Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Web Services Region. Args: - input: - An instance of `CreateDBSubnetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1430,10 +1864,34 @@ async def create_db_subnet_group( Returns: An instance of `CreateDBSubnetGroupOutput`. """ - return await self._invoke(input, _models.CREATE_DB_SUBNET_GROUP, [], plugins) + async def create_db_subnet_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBSubnetGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_DB_SUBNET_GROUP, args, kwargs), + _models.CREATE_DB_SUBNET_GROUP, + [], + plugins, + ) + + @_overload + async def create_event_subscription( + self, + request: _models.CreateEventSubscriptionInput + | _models.CreateEventSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEventSubscriptionOutput: ... + + @_overload async def create_event_subscription( - self, input: CreateEventSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEventSubscriptionInputDict], ) -> CreateEventSubscriptionOutput: """ Creates an RDS event notification subscription. This operation requires @@ -1470,8 +1928,6 @@ async def create_event_subscription( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `CreateEventSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1481,10 +1937,34 @@ async def create_event_subscription( Returns: An instance of `CreateEventSubscriptionOutput`. """ - return await self._invoke(input, _models.CREATE_EVENT_SUBSCRIPTION, [], plugins) + async def create_event_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEventSubscriptionOutput: + return await self._invoke( + self._select_input(_models.CREATE_EVENT_SUBSCRIPTION, args, kwargs), + _models.CREATE_EVENT_SUBSCRIPTION, + [], + plugins, + ) + + @_overload async def create_global_cluster( - self, input: CreateGlobalClusterInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateGlobalClusterInput + | _models.CreateGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGlobalClusterOutput: ... + + @_overload + async def create_global_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGlobalClusterInputDict], ) -> CreateGlobalClusterOutput: """ Creates an Aurora global database spread across multiple Amazon Web @@ -1502,8 +1982,6 @@ async def create_global_cluster( This operation applies only to Aurora DB clusters. Args: - input: - An instance of `CreateGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1513,17 +1991,38 @@ async def create_global_cluster( Returns: An instance of `CreateGlobalClusterOutput`. """ - return await self._invoke(input, _models.CREATE_GLOBAL_CLUSTER, [], plugins) + async def create_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGlobalClusterOutput: + return await self._invoke( + self._select_input(_models.CREATE_GLOBAL_CLUSTER, args, kwargs), + _models.CREATE_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload + async def create_integration( + self, + request: _models.CreateIntegrationInput | _models.CreateIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIntegrationOutput: ... + + @_overload async def create_integration( - self, input: CreateIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIntegrationInputDict], ) -> CreateIntegrationOutput: """ Creates a zero-ETL integration with Amazon Redshift. Args: - input: - An instance of `CreateIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1533,10 +2032,33 @@ async def create_integration( Returns: An instance of `CreateIntegrationOutput`. """ - return await self._invoke(input, _models.CREATE_INTEGRATION, [], plugins) + async def create_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIntegrationOutput: + return await self._invoke( + self._select_input(_models.CREATE_INTEGRATION, args, kwargs), + _models.CREATE_INTEGRATION, + [], + plugins, + ) + + @_overload async def create_option_group( - self, input: CreateOptionGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateOptionGroupInput | _models.CreateOptionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOptionGroupOutput: ... + + @_overload + async def create_option_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOptionGroupInputDict], ) -> CreateOptionGroupOutput: """ Creates a new option group. You can create up to 20 option groups. @@ -1544,8 +2066,6 @@ async def create_option_group( This command doesn't apply to RDS Custom. Args: - input: - An instance of `CreateOptionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1555,10 +2075,34 @@ async def create_option_group( Returns: An instance of `CreateOptionGroupOutput`. """ - return await self._invoke(input, _models.CREATE_OPTION_GROUP, [], plugins) + async def create_option_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOptionGroupOutput: + return await self._invoke( + self._select_input(_models.CREATE_OPTION_GROUP, args, kwargs), + _models.CREATE_OPTION_GROUP, + [], + plugins, + ) + + @_overload + async def create_tenant_database( + self, + request: _models.CreateTenantDatabaseInput + | _models.CreateTenantDatabaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTenantDatabaseOutput: ... + + @_overload async def create_tenant_database( - self, input: CreateTenantDatabaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTenantDatabaseInputDict], ) -> CreateTenantDatabaseOutput: """ Creates a tenant database in a DB instance that uses the multi-tenant @@ -1566,8 +2110,6 @@ async def create_tenant_database( are supported. Args: - input: - An instance of `CreateTenantDatabaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1577,10 +2119,34 @@ async def create_tenant_database( Returns: An instance of `CreateTenantDatabaseOutput`. """ - return await self._invoke(input, _models.CREATE_TENANT_DATABASE, [], plugins) + async def create_tenant_database( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTenantDatabaseOutput: + return await self._invoke( + self._select_input(_models.CREATE_TENANT_DATABASE, args, kwargs), + _models.CREATE_TENANT_DATABASE, + [], + plugins, + ) + + @_overload async def delete_blue_green_deployment( - self, input: DeleteBlueGreenDeploymentInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteBlueGreenDeploymentInput + | _models.DeleteBlueGreenDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBlueGreenDeploymentOutput: ... + + @_overload + async def delete_blue_green_deployment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBlueGreenDeploymentInputDict], ) -> DeleteBlueGreenDeploymentOutput: """ Deletes a blue/green deployment. @@ -1594,8 +2160,6 @@ async def delete_blue_green_deployment( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `DeleteBlueGreenDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1605,14 +2169,34 @@ async def delete_blue_green_deployment( Returns: An instance of `DeleteBlueGreenDeploymentOutput`. """ + + async def delete_blue_green_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBlueGreenDeploymentOutput: return await self._invoke( - input, _models.DELETE_BLUE_GREEN_DEPLOYMENT, [], plugins + self._select_input(_models.DELETE_BLUE_GREEN_DEPLOYMENT, args, kwargs), + _models.DELETE_BLUE_GREEN_DEPLOYMENT, + [], + plugins, ) + @_overload + async def delete_custom_db_engine_version( + self, + request: _models.DeleteCustomDBEngineVersionInput + | _models.DeleteCustomDBEngineVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomDBEngineVersionOutput: ... + + @_overload async def delete_custom_db_engine_version( self, - input: DeleteCustomDBEngineVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomDBEngineVersionInputDict], ) -> DeleteCustomDBEngineVersionOutput: """ Deletes a custom engine version. To run this command, make sure you meet @@ -1641,8 +2225,6 @@ async def delete_custom_db_engine_version( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteCustomDBEngineVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1652,12 +2234,33 @@ async def delete_custom_db_engine_version( Returns: An instance of `DeleteCustomDBEngineVersionOutput`. """ + + async def delete_custom_db_engine_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomDBEngineVersionOutput: return await self._invoke( - input, _models.DELETE_CUSTOM_DB_ENGINE_VERSION, [], plugins + self._select_input(_models.DELETE_CUSTOM_DB_ENGINE_VERSION, args, kwargs), + _models.DELETE_CUSTOM_DB_ENGINE_VERSION, + [], + plugins, ) + @_overload + async def delete_db_cluster( + self, + request: _models.DeleteDBClusterInput | _models.DeleteDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterOutput: ... + + @_overload async def delete_db_cluster( - self, input: DeleteDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterInputDict], ) -> DeleteDBClusterOutput: """ The DeleteDBCluster action deletes a previously provisioned DB cluster. @@ -1678,8 +2281,6 @@ async def delete_db_cluster( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1689,12 +2290,34 @@ async def delete_db_cluster( Returns: An instance of `DeleteDBClusterOutput`. """ - return await self._invoke(input, _models.DELETE_DB_CLUSTER, [], plugins) + async def delete_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_CLUSTER, args, kwargs), + _models.DELETE_DB_CLUSTER, + [], + plugins, + ) + + @_overload async def delete_db_cluster_automated_backup( self, - input: DeleteDBClusterAutomatedBackupInput, + request: _models.DeleteDBClusterAutomatedBackupInput + | _models.DeleteDBClusterAutomatedBackupInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterAutomatedBackupOutput: ... + + @_overload + async def delete_db_cluster_automated_backup( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterAutomatedBackupInputDict], ) -> DeleteDBClusterAutomatedBackupOutput: """ Deletes automated backups using the `DbClusterResourceId` value of the @@ -1702,8 +2325,6 @@ async def delete_db_cluster_automated_backup( backups. Args: - input: - An instance of `DeleteDBClusterAutomatedBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1713,12 +2334,36 @@ async def delete_db_cluster_automated_backup( Returns: An instance of `DeleteDBClusterAutomatedBackupOutput`. """ + + async def delete_db_cluster_automated_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterAutomatedBackupOutput: return await self._invoke( - input, _models.DELETE_DB_CLUSTER_AUTOMATED_BACKUP, [], plugins + self._select_input( + _models.DELETE_DB_CLUSTER_AUTOMATED_BACKUP, args, kwargs + ), + _models.DELETE_DB_CLUSTER_AUTOMATED_BACKUP, + [], + plugins, ) + @_overload + async def delete_db_cluster_endpoint( + self, + request: _models.DeleteDBClusterEndpointInput + | _models.DeleteDBClusterEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterEndpointOutput: ... + + @_overload async def delete_db_cluster_endpoint( - self, input: DeleteDBClusterEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterEndpointInputDict], ) -> DeleteDBClusterEndpointOutput: """ Deletes a custom endpoint and removes it from an Amazon Aurora DB @@ -1728,8 +2373,6 @@ async def delete_db_cluster_endpoint( This action only applies to Aurora DB clusters. Args: - input: - An instance of `DeleteDBClusterEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1739,14 +2382,34 @@ async def delete_db_cluster_endpoint( Returns: An instance of `DeleteDBClusterEndpointOutput`. """ + + async def delete_db_cluster_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterEndpointOutput: return await self._invoke( - input, _models.DELETE_DB_CLUSTER_ENDPOINT, [], plugins + self._select_input(_models.DELETE_DB_CLUSTER_ENDPOINT, args, kwargs), + _models.DELETE_DB_CLUSTER_ENDPOINT, + [], + plugins, ) + @_overload + async def delete_db_cluster_parameter_group( + self, + request: _models.DeleteDBClusterParameterGroupInput + | _models.DeleteDBClusterParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterParameterGroupOutput: ... + + @_overload async def delete_db_cluster_parameter_group( self, - input: DeleteDBClusterParameterGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterParameterGroupInputDict], ) -> DeleteDBClusterParameterGroupOutput: """ Deletes a specified DB cluster parameter group. The DB cluster parameter @@ -1761,8 +2424,6 @@ async def delete_db_cluster_parameter_group( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1772,12 +2433,34 @@ async def delete_db_cluster_parameter_group( Returns: An instance of `DeleteDBClusterParameterGroupOutput`. """ + + async def delete_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterParameterGroupOutput: return await self._invoke( - input, _models.DELETE_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.DELETE_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.DELETE_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload async def delete_db_cluster_snapshot( - self, input: DeleteDBClusterSnapshotInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteDBClusterSnapshotInput + | _models.DeleteDBClusterSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterSnapshotOutput: ... + + @_overload + async def delete_db_cluster_snapshot( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterSnapshotInputDict], ) -> DeleteDBClusterSnapshotOutput: """ Deletes a DB cluster snapshot. If the snapshot is being copied, the copy @@ -1795,8 +2478,6 @@ async def delete_db_cluster_snapshot( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteDBClusterSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1806,12 +2487,33 @@ async def delete_db_cluster_snapshot( Returns: An instance of `DeleteDBClusterSnapshotOutput`. """ + + async def delete_db_cluster_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterSnapshotOutput: return await self._invoke( - input, _models.DELETE_DB_CLUSTER_SNAPSHOT, [], plugins + self._select_input(_models.DELETE_DB_CLUSTER_SNAPSHOT, args, kwargs), + _models.DELETE_DB_CLUSTER_SNAPSHOT, + [], + plugins, ) + @_overload async def delete_db_instance( - self, input: DeleteDBInstanceInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteDBInstanceInput | _models.DeleteDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBInstanceOutput: ... + + @_overload + async def delete_db_instance( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBInstanceInputDict], ) -> DeleteDBInstanceOutput: """ Deletes a previously provisioned DB instance. When you delete a DB @@ -1851,8 +2553,6 @@ async def delete_db_instance( snapshot might fail. Args: - input: - An instance of `DeleteDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1862,20 +2562,40 @@ async def delete_db_instance( Returns: An instance of `DeleteDBInstanceOutput`. """ - return await self._invoke(input, _models.DELETE_DB_INSTANCE, [], plugins) + async def delete_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBInstanceOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_INSTANCE, args, kwargs), + _models.DELETE_DB_INSTANCE, + [], + plugins, + ) + + @_overload + async def delete_db_instance_automated_backup( + self, + request: _models.DeleteDBInstanceAutomatedBackupInput + | _models.DeleteDBInstanceAutomatedBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBInstanceAutomatedBackupOutput: ... + + @_overload async def delete_db_instance_automated_backup( self, - input: DeleteDBInstanceAutomatedBackupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBInstanceAutomatedBackupInputDict], ) -> DeleteDBInstanceAutomatedBackupOutput: """ Deletes automated backups using the `DbiResourceId` value of the source DB instance or the Amazon Resource Name (ARN) of the automated backups. Args: - input: - An instance of `DeleteDBInstanceAutomatedBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1885,20 +2605,42 @@ async def delete_db_instance_automated_backup( Returns: An instance of `DeleteDBInstanceAutomatedBackupOutput`. """ + + async def delete_db_instance_automated_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBInstanceAutomatedBackupOutput: return await self._invoke( - input, _models.DELETE_DB_INSTANCE_AUTOMATED_BACKUP, [], plugins + self._select_input( + _models.DELETE_DB_INSTANCE_AUTOMATED_BACKUP, args, kwargs + ), + _models.DELETE_DB_INSTANCE_AUTOMATED_BACKUP, + [], + plugins, ) + @_overload + async def delete_db_parameter_group( + self, + request: _models.DeleteDBParameterGroupInput + | _models.DeleteDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBParameterGroupOutput: ... + + @_overload async def delete_db_parameter_group( - self, input: DeleteDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBParameterGroupInputDict], ) -> DeleteDBParameterGroupOutput: """ Deletes a specified DB parameter group. The DB parameter group to be deleted can't be associated with any DB instances. Args: - input: - An instance of `DeleteDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1908,17 +2650,38 @@ async def delete_db_parameter_group( Returns: An instance of `DeleteDBParameterGroupOutput`. """ - return await self._invoke(input, _models.DELETE_DB_PARAMETER_GROUP, [], plugins) + async def delete_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBParameterGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_PARAMETER_GROUP, args, kwargs), + _models.DELETE_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + async def delete_db_proxy( + self, + request: _models.DeleteDBProxyInput | _models.DeleteDBProxyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBProxyOutput: ... + + @_overload async def delete_db_proxy( - self, input: DeleteDBProxyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBProxyInputDict], ) -> DeleteDBProxyOutput: """ Deletes an existing DB proxy. Args: - input: - An instance of `DeleteDBProxyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1928,10 +2691,34 @@ async def delete_db_proxy( Returns: An instance of `DeleteDBProxyOutput`. """ - return await self._invoke(input, _models.DELETE_DB_PROXY, [], plugins) + async def delete_db_proxy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBProxyOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_PROXY, args, kwargs), + _models.DELETE_DB_PROXY, + [], + plugins, + ) + + @_overload async def delete_db_proxy_endpoint( - self, input: DeleteDBProxyEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteDBProxyEndpointInput + | _models.DeleteDBProxyEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBProxyEndpointOutput: ... + + @_overload + async def delete_db_proxy_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBProxyEndpointInputDict], ) -> DeleteDBProxyEndpointOutput: """ Deletes a `DBProxyEndpoint`. Doing so removes the ability to access the @@ -1940,8 +2727,6 @@ async def delete_db_proxy_endpoint( operations, or using a different VPC than the DB proxy's default VPC. Args: - input: - An instance of `DeleteDBProxyEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1951,10 +2736,34 @@ async def delete_db_proxy_endpoint( Returns: An instance of `DeleteDBProxyEndpointOutput`. """ - return await self._invoke(input, _models.DELETE_DB_PROXY_ENDPOINT, [], plugins) + async def delete_db_proxy_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBProxyEndpointOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_PROXY_ENDPOINT, args, kwargs), + _models.DELETE_DB_PROXY_ENDPOINT, + [], + plugins, + ) + + @_overload + async def delete_db_security_group( + self, + request: _models.DeleteDBSecurityGroupInput + | _models.DeleteDBSecurityGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBSecurityGroupOutput: ... + + @_overload async def delete_db_security_group( - self, input: DeleteDBSecurityGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBSecurityGroupInputDict], ) -> DeleteDBSecurityGroupOutput: """ Deletes a DB security group. @@ -1975,8 +2784,6 @@ async def delete_db_security_group( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteDBSecurityGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1986,17 +2793,38 @@ async def delete_db_security_group( Returns: An instance of `DeleteDBSecurityGroupOutput`. """ - return await self._invoke(input, _models.DELETE_DB_SECURITY_GROUP, [], plugins) + async def delete_db_security_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBSecurityGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_SECURITY_GROUP, args, kwargs), + _models.DELETE_DB_SECURITY_GROUP, + [], + plugins, + ) + + @_overload + async def delete_db_shard_group( + self, + request: _models.DeleteDBShardGroupInput | _models.DeleteDBShardGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBShardGroupOutput: ... + + @_overload async def delete_db_shard_group( - self, input: DeleteDBShardGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBShardGroupInputDict], ) -> DeleteDBShardGroupOutput: """ Deletes an Aurora Limitless Database DB shard group. Args: - input: - An instance of `DeleteDBShardGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2006,10 +2834,33 @@ async def delete_db_shard_group( Returns: An instance of `DeleteDBShardGroupOutput`. """ - return await self._invoke(input, _models.DELETE_DB_SHARD_GROUP, [], plugins) + async def delete_db_shard_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBShardGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_SHARD_GROUP, args, kwargs), + _models.DELETE_DB_SHARD_GROUP, + [], + plugins, + ) + + @_overload + async def delete_db_snapshot( + self, + request: _models.DeleteDBSnapshotInput | _models.DeleteDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBSnapshotOutput: ... + + @_overload async def delete_db_snapshot( - self, input: DeleteDBSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBSnapshotInputDict], ) -> DeleteDBSnapshotOutput: """ Deletes a DB snapshot. If the snapshot is being copied, the copy @@ -2019,8 +2870,6 @@ async def delete_db_snapshot( The DB snapshot must be in the `available` state to be deleted. Args: - input: - An instance of `DeleteDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2030,10 +2879,34 @@ async def delete_db_snapshot( Returns: An instance of `DeleteDBSnapshotOutput`. """ - return await self._invoke(input, _models.DELETE_DB_SNAPSHOT, [], plugins) + async def delete_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBSnapshotOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_SNAPSHOT, args, kwargs), + _models.DELETE_DB_SNAPSHOT, + [], + plugins, + ) + + @_overload async def delete_db_subnet_group( - self, input: DeleteDBSubnetGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteDBSubnetGroupInput + | _models.DeleteDBSubnetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBSubnetGroupOutput: ... + + @_overload + async def delete_db_subnet_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBSubnetGroupInputDict], ) -> DeleteDBSubnetGroupOutput: """ Deletes a DB subnet group. @@ -2043,8 +2916,6 @@ async def delete_db_subnet_group( instances. Args: - input: - An instance of `DeleteDBSubnetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2054,17 +2925,39 @@ async def delete_db_subnet_group( Returns: An instance of `DeleteDBSubnetGroupOutput`. """ - return await self._invoke(input, _models.DELETE_DB_SUBNET_GROUP, [], plugins) + async def delete_db_subnet_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBSubnetGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_DB_SUBNET_GROUP, args, kwargs), + _models.DELETE_DB_SUBNET_GROUP, + [], + plugins, + ) + + @_overload + async def delete_event_subscription( + self, + request: _models.DeleteEventSubscriptionInput + | _models.DeleteEventSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEventSubscriptionOutput: ... + + @_overload async def delete_event_subscription( - self, input: DeleteEventSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEventSubscriptionInputDict], ) -> DeleteEventSubscriptionOutput: """ Deletes an RDS event notification subscription. Args: - input: - An instance of `DeleteEventSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2074,10 +2967,34 @@ async def delete_event_subscription( Returns: An instance of `DeleteEventSubscriptionOutput`. """ - return await self._invoke(input, _models.DELETE_EVENT_SUBSCRIPTION, [], plugins) + async def delete_event_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEventSubscriptionOutput: + return await self._invoke( + self._select_input(_models.DELETE_EVENT_SUBSCRIPTION, args, kwargs), + _models.DELETE_EVENT_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + async def delete_global_cluster( + self, + request: _models.DeleteGlobalClusterInput + | _models.DeleteGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGlobalClusterOutput: ... + + @_overload async def delete_global_cluster( - self, input: DeleteGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGlobalClusterInputDict], ) -> DeleteGlobalClusterOutput: """ Deletes a global database cluster. The primary and secondary clusters @@ -2087,8 +3004,6 @@ async def delete_global_cluster( This action only applies to Aurora DB clusters. Args: - input: - An instance of `DeleteGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2098,17 +3013,38 @@ async def delete_global_cluster( Returns: An instance of `DeleteGlobalClusterOutput`. """ - return await self._invoke(input, _models.DELETE_GLOBAL_CLUSTER, [], plugins) + async def delete_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGlobalClusterOutput: + return await self._invoke( + self._select_input(_models.DELETE_GLOBAL_CLUSTER, args, kwargs), + _models.DELETE_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload + async def delete_integration( + self, + request: _models.DeleteIntegrationInput | _models.DeleteIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIntegrationOutput: ... + + @_overload async def delete_integration( - self, input: DeleteIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIntegrationInputDict], ) -> DeleteIntegrationOutput: """ Deletes a zero-ETL integration with Amazon Redshift. Args: - input: - An instance of `DeleteIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2118,17 +3054,38 @@ async def delete_integration( Returns: An instance of `DeleteIntegrationOutput`. """ - return await self._invoke(input, _models.DELETE_INTEGRATION, [], plugins) + async def delete_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIntegrationOutput: + return await self._invoke( + self._select_input(_models.DELETE_INTEGRATION, args, kwargs), + _models.DELETE_INTEGRATION, + [], + plugins, + ) + + @_overload async def delete_option_group( - self, input: DeleteOptionGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteOptionGroupInput | _models.DeleteOptionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOptionGroupOutput: ... + + @_overload + async def delete_option_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOptionGroupInputDict], ) -> DeleteOptionGroupOutput: """ Deletes an existing option group. Args: - input: - An instance of `DeleteOptionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2138,10 +3095,34 @@ async def delete_option_group( Returns: An instance of `DeleteOptionGroupOutput`. """ - return await self._invoke(input, _models.DELETE_OPTION_GROUP, [], plugins) + async def delete_option_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOptionGroupOutput: + return await self._invoke( + self._select_input(_models.DELETE_OPTION_GROUP, args, kwargs), + _models.DELETE_OPTION_GROUP, + [], + plugins, + ) + + @_overload async def delete_tenant_database( - self, input: DeleteTenantDatabaseInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteTenantDatabaseInput + | _models.DeleteTenantDatabaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTenantDatabaseOutput: ... + + @_overload + async def delete_tenant_database( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTenantDatabaseInputDict], ) -> DeleteTenantDatabaseOutput: """ Deletes a tenant database from your DB instance. This command only @@ -2151,8 +3132,6 @@ async def delete_tenant_database( instance. Args: - input: - An instance of `DeleteTenantDatabaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2162,18 +3141,40 @@ async def delete_tenant_database( Returns: An instance of `DeleteTenantDatabaseOutput`. """ - return await self._invoke(input, _models.DELETE_TENANT_DATABASE, [], plugins) + async def delete_tenant_database( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTenantDatabaseOutput: + return await self._invoke( + self._select_input(_models.DELETE_TENANT_DATABASE, args, kwargs), + _models.DELETE_TENANT_DATABASE, + [], + plugins, + ) + + @_overload + async def deregister_db_proxy_targets( + self, + request: _models.DeregisterDBProxyTargetsInput + | _models.DeregisterDBProxyTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterDBProxyTargetsOutput: ... + + @_overload async def deregister_db_proxy_targets( - self, input: DeregisterDBProxyTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterDBProxyTargetsInputDict], ) -> DeregisterDBProxyTargetsOutput: """ Remove the association between one or more `DBProxyTarget` data structures and a `DBProxyTargetGroup`. Args: - input: - An instance of `DeregisterDBProxyTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2183,12 +3184,34 @@ async def deregister_db_proxy_targets( Returns: An instance of `DeregisterDBProxyTargetsOutput`. """ + + async def deregister_db_proxy_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterDBProxyTargetsOutput: return await self._invoke( - input, _models.DEREGISTER_DB_PROXY_TARGETS, [], plugins + self._select_input(_models.DEREGISTER_DB_PROXY_TARGETS, args, kwargs), + _models.DEREGISTER_DB_PROXY_TARGETS, + [], + plugins, ) + @_overload async def describe_account_attributes( - self, input: DescribeAccountAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeAccountAttributesInput + | _models.DescribeAccountAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountAttributesOutput: ... + + @_overload + async def describe_account_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountAttributesInputDict], ) -> DescribeAccountAttributesOutput: """ Lists all of the attributes for a customer account. The attributes @@ -2199,8 +3222,6 @@ async def describe_account_attributes( This command doesn't take any parameters. Args: - input: - An instance of `DescribeAccountAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2210,14 +3231,34 @@ async def describe_account_attributes( Returns: An instance of `DescribeAccountAttributesOutput`. """ + + async def describe_account_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountAttributesOutput: return await self._invoke( - input, _models.DESCRIBE_ACCOUNT_ATTRIBUTES, [], plugins + self._select_input(_models.DESCRIBE_ACCOUNT_ATTRIBUTES, args, kwargs), + _models.DESCRIBE_ACCOUNT_ATTRIBUTES, + [], + plugins, ) + @_overload async def describe_blue_green_deployments( self, - input: DescribeBlueGreenDeploymentsInput, + request: _models.DescribeBlueGreenDeploymentsInput + | _models.DescribeBlueGreenDeploymentsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeBlueGreenDeploymentsOutput: ... + + @_overload + async def describe_blue_green_deployments( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeBlueGreenDeploymentsInputDict], ) -> DescribeBlueGreenDeploymentsOutput: """ Describes one or more blue/green deployments. @@ -2231,8 +3272,6 @@ async def describe_blue_green_deployments( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `DescribeBlueGreenDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2242,12 +3281,34 @@ async def describe_blue_green_deployments( Returns: An instance of `DescribeBlueGreenDeploymentsOutput`. """ + + async def describe_blue_green_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeBlueGreenDeploymentsOutput: return await self._invoke( - input, _models.DESCRIBE_BLUE_GREEN_DEPLOYMENTS, [], plugins + self._select_input(_models.DESCRIBE_BLUE_GREEN_DEPLOYMENTS, args, kwargs), + _models.DESCRIBE_BLUE_GREEN_DEPLOYMENTS, + [], + plugins, ) + @_overload + async def describe_certificates( + self, + request: _models.DescribeCertificatesInput + | _models.DescribeCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCertificatesOutput: ... + + @_overload async def describe_certificates( - self, input: DescribeCertificatesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCertificatesInputDict], ) -> DescribeCertificatesOutput: """ Lists the set of certificate authority (CA) certificates provided by @@ -2261,8 +3322,6 @@ async def describe_certificates( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `DescribeCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2272,12 +3331,34 @@ async def describe_certificates( Returns: An instance of `DescribeCertificatesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_CERTIFICATES, [], plugins) + async def describe_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCertificatesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_CERTIFICATES, args, kwargs), + _models.DESCRIBE_CERTIFICATES, + [], + plugins, + ) + + @_overload + async def describe_db_capacity_reservations( + self, + request: _models.DescribeDBCapacityReservationsInput + | _models.DescribeDBCapacityReservationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBCapacityReservationsOutput: ... + + @_overload async def describe_db_capacity_reservations( self, - input: DescribeDBCapacityReservationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBCapacityReservationsInputDict], ) -> DescribeDBCapacityReservationsOutput: """ Describes one or more DB capacity reservations. A DB capacity @@ -2291,8 +3372,6 @@ async def describe_db_capacity_reservations( This operation supports pagination. Args: - input: - An instance of `DescribeDBCapacityReservationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2302,14 +3381,34 @@ async def describe_db_capacity_reservations( Returns: An instance of `DescribeDBCapacityReservationsOutput`. """ + + async def describe_db_capacity_reservations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBCapacityReservationsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_CAPACITY_RESERVATIONS, [], plugins + self._select_input(_models.DESCRIBE_DB_CAPACITY_RESERVATIONS, args, kwargs), + _models.DESCRIBE_DB_CAPACITY_RESERVATIONS, + [], + plugins, ) + @_overload + async def describe_db_cluster_automated_backups( + self, + request: _models.DescribeDBClusterAutomatedBackupsInput + | _models.DescribeDBClusterAutomatedBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterAutomatedBackupsOutput: ... + + @_overload async def describe_db_cluster_automated_backups( self, - input: DescribeDBClusterAutomatedBackupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterAutomatedBackupsInputDict], ) -> DescribeDBClusterAutomatedBackupsOutput: """ Displays backups for both current and deleted DB clusters. For example, @@ -2320,8 +3419,6 @@ async def describe_db_cluster_automated_backups( All parameters are optional. Args: - input: - An instance of `DescribeDBClusterAutomatedBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2331,14 +3428,36 @@ async def describe_db_cluster_automated_backups( Returns: An instance of `DescribeDBClusterAutomatedBackupsOutput`. """ + + async def describe_db_cluster_automated_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterAutomatedBackupsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_AUTOMATED_BACKUPS, [], plugins + self._select_input( + _models.DESCRIBE_DB_CLUSTER_AUTOMATED_BACKUPS, args, kwargs + ), + _models.DESCRIBE_DB_CLUSTER_AUTOMATED_BACKUPS, + [], + plugins, ) + @_overload async def describe_db_cluster_backtracks( self, - input: DescribeDBClusterBacktracksInput, + request: _models.DescribeDBClusterBacktracksInput + | _models.DescribeDBClusterBacktracksInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterBacktracksOutput: ... + + @_overload + async def describe_db_cluster_backtracks( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterBacktracksInputDict], ) -> DescribeDBClusterBacktracksOutput: """ Returns information about backtracks for a DB cluster. @@ -2351,8 +3470,6 @@ async def describe_db_cluster_backtracks( This action only applies to Aurora MySQL DB clusters. Args: - input: - An instance of `DescribeDBClusterBacktracksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2362,14 +3479,34 @@ async def describe_db_cluster_backtracks( Returns: An instance of `DescribeDBClusterBacktracksOutput`. """ + + async def describe_db_cluster_backtracks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterBacktracksOutput: return await self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_BACKTRACKS, [], plugins + self._select_input(_models.DESCRIBE_DB_CLUSTER_BACKTRACKS, args, kwargs), + _models.DESCRIBE_DB_CLUSTER_BACKTRACKS, + [], + plugins, ) + @_overload + async def describe_db_cluster_endpoints( + self, + request: _models.DescribeDBClusterEndpointsInput + | _models.DescribeDBClusterEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterEndpointsOutput: ... + + @_overload async def describe_db_cluster_endpoints( self, - input: DescribeDBClusterEndpointsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterEndpointsInputDict], ) -> DescribeDBClusterEndpointsOutput: """ Returns information about endpoints for an Amazon Aurora DB cluster. @@ -2378,8 +3515,6 @@ async def describe_db_cluster_endpoints( This action only applies to Aurora DB clusters. Args: - input: - An instance of `DescribeDBClusterEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2389,14 +3524,34 @@ async def describe_db_cluster_endpoints( Returns: An instance of `DescribeDBClusterEndpointsOutput`. """ + + async def describe_db_cluster_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterEndpointsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_ENDPOINTS, [], plugins + self._select_input(_models.DESCRIBE_DB_CLUSTER_ENDPOINTS, args, kwargs), + _models.DESCRIBE_DB_CLUSTER_ENDPOINTS, + [], + plugins, ) + @_overload + async def describe_db_cluster_parameter_groups( + self, + request: _models.DescribeDBClusterParameterGroupsInput + | _models.DescribeDBClusterParameterGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterParameterGroupsOutput: ... + + @_overload async def describe_db_cluster_parameter_groups( self, - input: DescribeDBClusterParameterGroupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterParameterGroupsInputDict], ) -> DescribeDBClusterParameterGroupsOutput: """ Returns a list of `DBClusterParameterGroup` descriptions. If a @@ -2413,8 +3568,6 @@ async def describe_db_cluster_parameter_groups( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DescribeDBClusterParameterGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2424,14 +3577,36 @@ async def describe_db_cluster_parameter_groups( Returns: An instance of `DescribeDBClusterParameterGroupsOutput`. """ + + async def describe_db_cluster_parameter_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterParameterGroupsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_PARAMETER_GROUPS, [], plugins + self._select_input( + _models.DESCRIBE_DB_CLUSTER_PARAMETER_GROUPS, args, kwargs + ), + _models.DESCRIBE_DB_CLUSTER_PARAMETER_GROUPS, + [], + plugins, ) + @_overload + async def describe_db_cluster_parameters( + self, + request: _models.DescribeDBClusterParametersInput + | _models.DescribeDBClusterParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterParametersOutput: ... + + @_overload async def describe_db_cluster_parameters( self, - input: DescribeDBClusterParametersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterParametersInputDict], ) -> DescribeDBClusterParametersOutput: """ Returns the detailed parameter list for a particular DB cluster @@ -2446,8 +3621,6 @@ async def describe_db_cluster_parameters( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DescribeDBClusterParametersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2457,12 +3630,33 @@ async def describe_db_cluster_parameters( Returns: An instance of `DescribeDBClusterParametersOutput`. """ + + async def describe_db_cluster_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterParametersOutput: return await self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_PARAMETERS, [], plugins + self._select_input(_models.DESCRIBE_DB_CLUSTER_PARAMETERS, args, kwargs), + _models.DESCRIBE_DB_CLUSTER_PARAMETERS, + [], + plugins, ) + @_overload + async def describe_db_clusters( + self, + request: _models.DescribeDBClustersInput | _models.DescribeDBClustersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClustersOutput: ... + + @_overload async def describe_db_clusters( - self, input: DescribeDBClustersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClustersInputDict], ) -> DescribeDBClustersOutput: """ Describes existing Amazon Aurora DB clusters and Multi-AZ DB clusters. @@ -2480,8 +3674,6 @@ async def describe_db_clusters( instances and Amazon DocumentDB instances. Args: - input: - An instance of `DescribeDBClustersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2491,12 +3683,34 @@ async def describe_db_clusters( Returns: An instance of `DescribeDBClustersOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DB_CLUSTERS, [], plugins) + async def describe_db_clusters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClustersOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_CLUSTERS, args, kwargs), + _models.DESCRIBE_DB_CLUSTERS, + [], + plugins, + ) + + @_overload + async def describe_db_cluster_snapshot_attributes( + self, + request: _models.DescribeDBClusterSnapshotAttributesInput + | _models.DescribeDBClusterSnapshotAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterSnapshotAttributesOutput: ... + + @_overload async def describe_db_cluster_snapshot_attributes( self, - input: DescribeDBClusterSnapshotAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterSnapshotAttributesInputDict], ) -> DescribeDBClusterSnapshotAttributesOutput: """ Returns a list of DB cluster snapshot attribute names and values for a @@ -2516,8 +3730,6 @@ async def describe_db_cluster_snapshot_attributes( API action. Args: - input: - An instance of `DescribeDBClusterSnapshotAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2527,14 +3739,36 @@ async def describe_db_cluster_snapshot_attributes( Returns: An instance of `DescribeDBClusterSnapshotAttributesOutput`. """ + + async def describe_db_cluster_snapshot_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterSnapshotAttributesOutput: return await self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_SNAPSHOT_ATTRIBUTES, [], plugins + self._select_input( + _models.DESCRIBE_DB_CLUSTER_SNAPSHOT_ATTRIBUTES, args, kwargs + ), + _models.DESCRIBE_DB_CLUSTER_SNAPSHOT_ATTRIBUTES, + [], + plugins, ) + @_overload + async def describe_db_cluster_snapshots( + self, + request: _models.DescribeDBClusterSnapshotsInput + | _models.DescribeDBClusterSnapshotsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterSnapshotsOutput: ... + + @_overload async def describe_db_cluster_snapshots( self, - input: DescribeDBClusterSnapshotsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterSnapshotsInputDict], ) -> DescribeDBClusterSnapshotsOutput: """ Returns information about DB cluster snapshots. This API action supports @@ -2549,8 +3783,6 @@ async def describe_db_cluster_snapshots( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DescribeDBClusterSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2560,19 +3792,39 @@ async def describe_db_cluster_snapshots( Returns: An instance of `DescribeDBClusterSnapshotsOutput`. """ + + async def describe_db_cluster_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterSnapshotsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_SNAPSHOTS, [], plugins + self._select_input(_models.DESCRIBE_DB_CLUSTER_SNAPSHOTS, args, kwargs), + _models.DESCRIBE_DB_CLUSTER_SNAPSHOTS, + [], + plugins, ) + @_overload + async def describe_db_engine_versions( + self, + request: _models.DescribeDBEngineVersionsInput + | _models.DescribeDBEngineVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBEngineVersionsOutput: ... + + @_overload async def describe_db_engine_versions( - self, input: DescribeDBEngineVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBEngineVersionsInputDict], ) -> DescribeDBEngineVersionsOutput: """ Describes the properties of specific versions of DB engines. Args: - input: - An instance of `DescribeDBEngineVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2582,14 +3834,34 @@ async def describe_db_engine_versions( Returns: An instance of `DescribeDBEngineVersionsOutput`. """ + + async def describe_db_engine_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBEngineVersionsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_ENGINE_VERSIONS, [], plugins + self._select_input(_models.DESCRIBE_DB_ENGINE_VERSIONS, args, kwargs), + _models.DESCRIBE_DB_ENGINE_VERSIONS, + [], + plugins, ) + @_overload + async def describe_db_instance_automated_backups( + self, + request: _models.DescribeDBInstanceAutomatedBackupsInput + | _models.DescribeDBInstanceAutomatedBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBInstanceAutomatedBackupsOutput: ... + + @_overload async def describe_db_instance_automated_backups( self, - input: DescribeDBInstanceAutomatedBackupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBInstanceAutomatedBackupsInputDict], ) -> DescribeDBInstanceAutomatedBackupsOutput: """ Displays backups for both current and deleted instances. For example, @@ -2602,8 +3874,6 @@ async def describe_db_instance_automated_backups( All parameters are optional. Args: - input: - An instance of `DescribeDBInstanceAutomatedBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2613,12 +3883,36 @@ async def describe_db_instance_automated_backups( Returns: An instance of `DescribeDBInstanceAutomatedBackupsOutput`. """ + + async def describe_db_instance_automated_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBInstanceAutomatedBackupsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_INSTANCE_AUTOMATED_BACKUPS, [], plugins + self._select_input( + _models.DESCRIBE_DB_INSTANCE_AUTOMATED_BACKUPS, args, kwargs + ), + _models.DESCRIBE_DB_INSTANCE_AUTOMATED_BACKUPS, + [], + plugins, ) + @_overload + async def describe_db_instances( + self, + request: _models.DescribeDBInstancesInput + | _models.DescribeDBInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBInstancesOutput: ... + + @_overload async def describe_db_instances( - self, input: DescribeDBInstancesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBInstancesInputDict], ) -> DescribeDBInstancesOutput: """ Describes provisioned RDS instances. This API supports pagination. @@ -2628,8 +3922,6 @@ async def describe_db_instances( instances and Amazon DocumentDB instances. Args: - input: - An instance of `DescribeDBInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2639,10 +3931,33 @@ async def describe_db_instances( Returns: An instance of `DescribeDBInstancesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DB_INSTANCES, [], plugins) + async def describe_db_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBInstancesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_INSTANCES, args, kwargs), + _models.DESCRIBE_DB_INSTANCES, + [], + plugins, + ) + + @_overload async def describe_db_log_files( - self, input: DescribeDBLogFilesInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeDBLogFilesInput | _models.DescribeDBLogFilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBLogFilesOutput: ... + + @_overload + async def describe_db_log_files( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBLogFilesInputDict], ) -> DescribeDBLogFilesOutput: """ Returns a list of DB log files for the DB instance. @@ -2650,8 +3965,6 @@ async def describe_db_log_files( This command doesn't apply to RDS Custom. Args: - input: - An instance of `DescribeDBLogFilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2661,19 +3974,39 @@ async def describe_db_log_files( Returns: An instance of `DescribeDBLogFilesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DB_LOG_FILES, [], plugins) + async def describe_db_log_files( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBLogFilesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_LOG_FILES, args, kwargs), + _models.DESCRIBE_DB_LOG_FILES, + [], + plugins, + ) + + @_overload + async def describe_db_major_engine_versions( + self, + request: _models.DescribeDBMajorEngineVersionsInput + | _models.DescribeDBMajorEngineVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBMajorEngineVersionsOutput: ... + + @_overload async def describe_db_major_engine_versions( self, - input: DescribeDBMajorEngineVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBMajorEngineVersionsInputDict], ) -> DescribeDBMajorEngineVersionsOutput: """ Describes the properties of specific major versions of DB engines. Args: - input: - An instance of `DescribeDBMajorEngineVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2683,12 +4016,34 @@ async def describe_db_major_engine_versions( Returns: An instance of `DescribeDBMajorEngineVersionsOutput`. """ + + async def describe_db_major_engine_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBMajorEngineVersionsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_MAJOR_ENGINE_VERSIONS, [], plugins + self._select_input(_models.DESCRIBE_DB_MAJOR_ENGINE_VERSIONS, args, kwargs), + _models.DESCRIBE_DB_MAJOR_ENGINE_VERSIONS, + [], + plugins, ) + @_overload + async def describe_db_parameter_groups( + self, + request: _models.DescribeDBParameterGroupsInput + | _models.DescribeDBParameterGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBParameterGroupsOutput: ... + + @_overload async def describe_db_parameter_groups( - self, input: DescribeDBParameterGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBParameterGroupsInputDict], ) -> DescribeDBParameterGroupsOutput: """ Returns a list of `DBParameterGroup` descriptions. If a @@ -2696,8 +4051,6 @@ async def describe_db_parameter_groups( description of the specified DB parameter group. Args: - input: - An instance of `DescribeDBParameterGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2707,19 +4060,39 @@ async def describe_db_parameter_groups( Returns: An instance of `DescribeDBParameterGroupsOutput`. """ + + async def describe_db_parameter_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBParameterGroupsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_PARAMETER_GROUPS, [], plugins + self._select_input(_models.DESCRIBE_DB_PARAMETER_GROUPS, args, kwargs), + _models.DESCRIBE_DB_PARAMETER_GROUPS, + [], + plugins, ) + @_overload + async def describe_db_parameters( + self, + request: _models.DescribeDBParametersInput + | _models.DescribeDBParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBParametersOutput: ... + + @_overload async def describe_db_parameters( - self, input: DescribeDBParametersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBParametersInputDict], ) -> DescribeDBParametersOutput: """ Returns the detailed parameter list for a particular DB parameter group. Args: - input: - An instance of `DescribeDBParametersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2729,17 +4102,38 @@ async def describe_db_parameters( Returns: An instance of `DescribeDBParametersOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DB_PARAMETERS, [], plugins) + async def describe_db_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBParametersOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_PARAMETERS, args, kwargs), + _models.DESCRIBE_DB_PARAMETERS, + [], + plugins, + ) + + @_overload + async def describe_db_proxies( + self, + request: _models.DescribeDBProxiesInput | _models.DescribeDBProxiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBProxiesOutput: ... + + @_overload async def describe_db_proxies( - self, input: DescribeDBProxiesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBProxiesInputDict], ) -> DescribeDBProxiesOutput: """ Returns information about DB proxies. Args: - input: - An instance of `DescribeDBProxiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2749,17 +4143,39 @@ async def describe_db_proxies( Returns: An instance of `DescribeDBProxiesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DB_PROXIES, [], plugins) + async def describe_db_proxies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBProxiesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_PROXIES, args, kwargs), + _models.DESCRIBE_DB_PROXIES, + [], + plugins, + ) + + @_overload + async def describe_db_proxy_endpoints( + self, + request: _models.DescribeDBProxyEndpointsInput + | _models.DescribeDBProxyEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBProxyEndpointsOutput: ... + + @_overload async def describe_db_proxy_endpoints( - self, input: DescribeDBProxyEndpointsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBProxyEndpointsInputDict], ) -> DescribeDBProxyEndpointsOutput: """ Returns information about DB proxy endpoints. Args: - input: - An instance of `DescribeDBProxyEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2769,22 +4185,40 @@ async def describe_db_proxy_endpoints( Returns: An instance of `DescribeDBProxyEndpointsOutput`. """ + + async def describe_db_proxy_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBProxyEndpointsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_PROXY_ENDPOINTS, [], plugins + self._select_input(_models.DESCRIBE_DB_PROXY_ENDPOINTS, args, kwargs), + _models.DESCRIBE_DB_PROXY_ENDPOINTS, + [], + plugins, ) + @_overload + async def describe_db_proxy_target_groups( + self, + request: _models.DescribeDBProxyTargetGroupsInput + | _models.DescribeDBProxyTargetGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBProxyTargetGroupsOutput: ... + + @_overload async def describe_db_proxy_target_groups( self, - input: DescribeDBProxyTargetGroupsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBProxyTargetGroupsInputDict], ) -> DescribeDBProxyTargetGroupsOutput: """ Returns information about DB proxy target groups, represented by `DBProxyTargetGroup` data structures. Args: - input: - An instance of `DescribeDBProxyTargetGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2794,20 +4228,40 @@ async def describe_db_proxy_target_groups( Returns: An instance of `DescribeDBProxyTargetGroupsOutput`. """ + + async def describe_db_proxy_target_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBProxyTargetGroupsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_PROXY_TARGET_GROUPS, [], plugins + self._select_input(_models.DESCRIBE_DB_PROXY_TARGET_GROUPS, args, kwargs), + _models.DESCRIBE_DB_PROXY_TARGET_GROUPS, + [], + plugins, ) + @_overload + async def describe_db_proxy_targets( + self, + request: _models.DescribeDBProxyTargetsInput + | _models.DescribeDBProxyTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBProxyTargetsOutput: ... + + @_overload async def describe_db_proxy_targets( - self, input: DescribeDBProxyTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBProxyTargetsInputDict], ) -> DescribeDBProxyTargetsOutput: """ Returns information about `DBProxyTarget` objects. This API supports pagination. Args: - input: - An instance of `DescribeDBProxyTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2817,18 +4271,40 @@ async def describe_db_proxy_targets( Returns: An instance of `DescribeDBProxyTargetsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DB_PROXY_TARGETS, [], plugins) + async def describe_db_proxy_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBProxyTargetsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_PROXY_TARGETS, args, kwargs), + _models.DESCRIBE_DB_PROXY_TARGETS, + [], + plugins, + ) + + @_overload + async def describe_db_recommendations( + self, + request: _models.DescribeDBRecommendationsInput + | _models.DescribeDBRecommendationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBRecommendationsOutput: ... + + @_overload async def describe_db_recommendations( - self, input: DescribeDBRecommendationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBRecommendationsInputDict], ) -> DescribeDBRecommendationsOutput: """ Describes the recommendations to resolve the issues for your DB instances, DB clusters, and DB parameter groups. Args: - input: - An instance of `DescribeDBRecommendationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2838,12 +4314,34 @@ async def describe_db_recommendations( Returns: An instance of `DescribeDBRecommendationsOutput`. """ + + async def describe_db_recommendations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBRecommendationsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_RECOMMENDATIONS, [], plugins + self._select_input(_models.DESCRIBE_DB_RECOMMENDATIONS, args, kwargs), + _models.DESCRIBE_DB_RECOMMENDATIONS, + [], + plugins, ) + @_overload + async def describe_db_security_groups( + self, + request: _models.DescribeDBSecurityGroupsInput + | _models.DescribeDBSecurityGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBSecurityGroupsOutput: ... + + @_overload async def describe_db_security_groups( - self, input: DescribeDBSecurityGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSecurityGroupsInputDict], ) -> DescribeDBSecurityGroupsOutput: """ Returns a list of `DBSecurityGroup` descriptions. If a @@ -2863,8 +4361,6 @@ async def describe_db_security_groups( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DescribeDBSecurityGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2874,19 +4370,39 @@ async def describe_db_security_groups( Returns: An instance of `DescribeDBSecurityGroupsOutput`. """ + + async def describe_db_security_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSecurityGroupsOutput: return await self._invoke( - input, _models.DESCRIBE_DB_SECURITY_GROUPS, [], plugins + self._select_input(_models.DESCRIBE_DB_SECURITY_GROUPS, args, kwargs), + _models.DESCRIBE_DB_SECURITY_GROUPS, + [], + plugins, ) + @_overload + async def describe_db_shard_groups( + self, + request: _models.DescribeDBShardGroupsInput + | _models.DescribeDBShardGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBShardGroupsOutput: ... + + @_overload async def describe_db_shard_groups( - self, input: DescribeDBShardGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBShardGroupsInputDict], ) -> DescribeDBShardGroupsOutput: """ Describes existing Aurora Limitless Database DB shard groups. Args: - input: - An instance of `DescribeDBShardGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2896,12 +4412,34 @@ async def describe_db_shard_groups( Returns: An instance of `DescribeDBShardGroupsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DB_SHARD_GROUPS, [], plugins) + async def describe_db_shard_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBShardGroupsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_SHARD_GROUPS, args, kwargs), + _models.DESCRIBE_DB_SHARD_GROUPS, + [], + plugins, + ) + + @_overload + async def describe_db_snapshot_attributes( + self, + request: _models.DescribeDBSnapshotAttributesInput + | _models.DescribeDBSnapshotAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBSnapshotAttributesOutput: ... + + @_overload async def describe_db_snapshot_attributes( self, - input: DescribeDBSnapshotAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSnapshotAttributesInputDict], ) -> DescribeDBSnapshotAttributesOutput: """ Returns a list of DB snapshot attribute names and values for a manual DB @@ -2920,8 +4458,6 @@ async def describe_db_snapshot_attributes( or private, use the `ModifyDBSnapshotAttribute` API action. Args: - input: - An instance of `DescribeDBSnapshotAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2931,20 +4467,40 @@ async def describe_db_snapshot_attributes( Returns: An instance of `DescribeDBSnapshotAttributesOutput`. """ + + async def describe_db_snapshot_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSnapshotAttributesOutput: return await self._invoke( - input, _models.DESCRIBE_DB_SNAPSHOT_ATTRIBUTES, [], plugins + self._select_input(_models.DESCRIBE_DB_SNAPSHOT_ATTRIBUTES, args, kwargs), + _models.DESCRIBE_DB_SNAPSHOT_ATTRIBUTES, + [], + plugins, ) + @_overload async def describe_db_snapshots( - self, input: DescribeDBSnapshotsInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeDBSnapshotsInput + | _models.DescribeDBSnapshotsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBSnapshotsOutput: ... + + @_overload + async def describe_db_snapshots( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSnapshotsInputDict], ) -> DescribeDBSnapshotsOutput: """ Returns information about DB snapshots. This API action supports pagination. Args: - input: - An instance of `DescribeDBSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2954,12 +4510,34 @@ async def describe_db_snapshots( Returns: An instance of `DescribeDBSnapshotsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_DB_SNAPSHOTS, [], plugins) + async def describe_db_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSnapshotsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_SNAPSHOTS, args, kwargs), + _models.DESCRIBE_DB_SNAPSHOTS, + [], + plugins, + ) + + @_overload + async def describe_db_snapshot_tenant_databases( + self, + request: _models.DescribeDBSnapshotTenantDatabasesInput + | _models.DescribeDBSnapshotTenantDatabasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBSnapshotTenantDatabasesOutput: ... + + @_overload async def describe_db_snapshot_tenant_databases( self, - input: DescribeDBSnapshotTenantDatabasesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSnapshotTenantDatabasesInputDict], ) -> DescribeDBSnapshotTenantDatabasesOutput: """ Describes the tenant databases that exist in a DB snapshot. This command @@ -2973,8 +4551,6 @@ async def describe_db_snapshot_tenant_databases( all its tenant databases. Args: - input: - An instance of `DescribeDBSnapshotTenantDatabasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2984,12 +4560,36 @@ async def describe_db_snapshot_tenant_databases( Returns: An instance of `DescribeDBSnapshotTenantDatabasesOutput`. """ + + async def describe_db_snapshot_tenant_databases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSnapshotTenantDatabasesOutput: return await self._invoke( - input, _models.DESCRIBE_DB_SNAPSHOT_TENANT_DATABASES, [], plugins + self._select_input( + _models.DESCRIBE_DB_SNAPSHOT_TENANT_DATABASES, args, kwargs + ), + _models.DESCRIBE_DB_SNAPSHOT_TENANT_DATABASES, + [], + plugins, ) + @_overload + async def describe_db_subnet_groups( + self, + request: _models.DescribeDBSubnetGroupsInput + | _models.DescribeDBSubnetGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBSubnetGroupsOutput: ... + + @_overload async def describe_db_subnet_groups( - self, input: DescribeDBSubnetGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSubnetGroupsInputDict], ) -> DescribeDBSubnetGroupsOutput: """ Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is @@ -3000,23 +4600,43 @@ async def describe_db_subnet_groups( Tutorial](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). Args: - input: - An instance of `DescribeDBSubnetGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `DescribeDBSubnetGroupsOutput`. - """ - return await self._invoke(input, _models.DESCRIBE_DB_SUBNET_GROUPS, [], plugins) + Returns: + An instance of `DescribeDBSubnetGroupsOutput`. + """ + + async def describe_db_subnet_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSubnetGroupsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_DB_SUBNET_GROUPS, args, kwargs), + _models.DESCRIBE_DB_SUBNET_GROUPS, + [], + plugins, + ) + + @_overload + async def describe_engine_default_cluster_parameters( + self, + request: _models.DescribeEngineDefaultClusterParametersInput + | _models.DescribeEngineDefaultClusterParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEngineDefaultClusterParametersOutput: ... + @_overload async def describe_engine_default_cluster_parameters( self, - input: DescribeEngineDefaultClusterParametersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEngineDefaultClusterParametersInputDict], ) -> DescribeEngineDefaultClusterParametersOutput: """ Returns the default engine and system parameter information for the @@ -3027,8 +4647,6 @@ async def describe_engine_default_cluster_parameters( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `DescribeEngineDefaultClusterParametersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3038,22 +4656,42 @@ async def describe_engine_default_cluster_parameters( Returns: An instance of `DescribeEngineDefaultClusterParametersOutput`. """ + + async def describe_engine_default_cluster_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEngineDefaultClusterParametersOutput: return await self._invoke( - input, _models.DESCRIBE_ENGINE_DEFAULT_CLUSTER_PARAMETERS, [], plugins + self._select_input( + _models.DESCRIBE_ENGINE_DEFAULT_CLUSTER_PARAMETERS, args, kwargs + ), + _models.DESCRIBE_ENGINE_DEFAULT_CLUSTER_PARAMETERS, + [], + plugins, ) + @_overload + async def describe_engine_default_parameters( + self, + request: _models.DescribeEngineDefaultParametersInput + | _models.DescribeEngineDefaultParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEngineDefaultParametersOutput: ... + + @_overload async def describe_engine_default_parameters( self, - input: DescribeEngineDefaultParametersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEngineDefaultParametersInputDict], ) -> DescribeEngineDefaultParametersOutput: """ Returns the default engine and system parameter information for the specified database engine. Args: - input: - An instance of `DescribeEngineDefaultParametersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3063,12 +4701,36 @@ async def describe_engine_default_parameters( Returns: An instance of `DescribeEngineDefaultParametersOutput`. """ + + async def describe_engine_default_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEngineDefaultParametersOutput: return await self._invoke( - input, _models.DESCRIBE_ENGINE_DEFAULT_PARAMETERS, [], plugins + self._select_input( + _models.DESCRIBE_ENGINE_DEFAULT_PARAMETERS, args, kwargs + ), + _models.DESCRIBE_ENGINE_DEFAULT_PARAMETERS, + [], + plugins, ) + @_overload + async def describe_event_categories( + self, + request: _models.DescribeEventCategoriesInput + | _models.DescribeEventCategoriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEventCategoriesOutput: ... + + @_overload async def describe_event_categories( - self, input: DescribeEventCategoriesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEventCategoriesInputDict], ) -> DescribeEventCategoriesOutput: """ Displays a list of categories for all event source types, or, if @@ -3081,8 +4743,6 @@ async def describe_event_categories( . Args: - input: - An instance of `DescribeEventCategoriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3092,10 +4752,33 @@ async def describe_event_categories( Returns: An instance of `DescribeEventCategoriesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_EVENT_CATEGORIES, [], plugins) + async def describe_event_categories( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEventCategoriesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_EVENT_CATEGORIES, args, kwargs), + _models.DESCRIBE_EVENT_CATEGORIES, + [], + plugins, + ) + + @_overload + async def describe_events( + self, + request: _models.DescribeEventsInput | _models.DescribeEventsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEventsOutput: ... + + @_overload async def describe_events( - self, input: DescribeEventsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEventsInputDict], ) -> DescribeEventsOutput: """ Returns events related to DB instances, DB clusters, DB parameter @@ -3115,8 +4798,6 @@ async def describe_events( By default, RDS returns events that were generated in the past hour. Args: - input: - An instance of `DescribeEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3126,12 +4807,34 @@ async def describe_events( Returns: An instance of `DescribeEventsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_EVENTS, [], plugins) + async def describe_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEventsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_EVENTS, args, kwargs), + _models.DESCRIBE_EVENTS, + [], + plugins, + ) + + @_overload + async def describe_event_subscriptions( + self, + request: _models.DescribeEventSubscriptionsInput + | _models.DescribeEventSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEventSubscriptionsOutput: ... + + @_overload async def describe_event_subscriptions( self, - input: DescribeEventSubscriptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEventSubscriptionsInputDict], ) -> DescribeEventSubscriptionsOutput: """ Lists all the subscription descriptions for a customer account. The @@ -3143,8 +4846,6 @@ async def describe_event_subscriptions( subscription. Args: - input: - An instance of `DescribeEventSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3154,20 +4855,40 @@ async def describe_event_subscriptions( Returns: An instance of `DescribeEventSubscriptionsOutput`. """ + + async def describe_event_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEventSubscriptionsOutput: return await self._invoke( - input, _models.DESCRIBE_EVENT_SUBSCRIPTIONS, [], plugins + self._select_input(_models.DESCRIBE_EVENT_SUBSCRIPTIONS, args, kwargs), + _models.DESCRIBE_EVENT_SUBSCRIPTIONS, + [], + plugins, ) + @_overload + async def describe_export_tasks( + self, + request: _models.DescribeExportTasksInput + | _models.DescribeExportTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeExportTasksOutput: ... + + @_overload async def describe_export_tasks( - self, input: DescribeExportTasksInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExportTasksInputDict], ) -> DescribeExportTasksOutput: """ Returns information about a snapshot or cluster export to Amazon S3. This API operation supports pagination. Args: - input: - An instance of `DescribeExportTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3177,10 +4898,34 @@ async def describe_export_tasks( Returns: An instance of `DescribeExportTasksOutput`. """ - return await self._invoke(input, _models.DESCRIBE_EXPORT_TASKS, [], plugins) + async def describe_export_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExportTasksOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_EXPORT_TASKS, args, kwargs), + _models.DESCRIBE_EXPORT_TASKS, + [], + plugins, + ) + + @_overload + async def describe_global_clusters( + self, + request: _models.DescribeGlobalClustersInput + | _models.DescribeGlobalClustersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGlobalClustersOutput: ... + + @_overload async def describe_global_clusters( - self, input: DescribeGlobalClustersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGlobalClustersInputDict], ) -> DescribeGlobalClustersOutput: """ Returns information about Aurora global database clusters. This API @@ -3194,8 +4939,6 @@ async def describe_global_clusters( This action only applies to Aurora DB clusters. Args: - input: - An instance of `DescribeGlobalClustersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3205,17 +4948,39 @@ async def describe_global_clusters( Returns: An instance of `DescribeGlobalClustersOutput`. """ - return await self._invoke(input, _models.DESCRIBE_GLOBAL_CLUSTERS, [], plugins) + async def describe_global_clusters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGlobalClustersOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_GLOBAL_CLUSTERS, args, kwargs), + _models.DESCRIBE_GLOBAL_CLUSTERS, + [], + plugins, + ) + + @_overload + async def describe_integrations( + self, + request: _models.DescribeIntegrationsInput + | _models.DescribeIntegrationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIntegrationsOutput: ... + + @_overload async def describe_integrations( - self, input: DescribeIntegrationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIntegrationsInputDict], ) -> DescribeIntegrationsOutput: """ Describe one or more zero-ETL integrations with Amazon Redshift. Args: - input: - An instance of `DescribeIntegrationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3225,19 +4990,39 @@ async def describe_integrations( Returns: An instance of `DescribeIntegrationsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_INTEGRATIONS, [], plugins) + async def describe_integrations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIntegrationsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_INTEGRATIONS, args, kwargs), + _models.DESCRIBE_INTEGRATIONS, + [], + plugins, + ) + + @_overload + async def describe_option_group_options( + self, + request: _models.DescribeOptionGroupOptionsInput + | _models.DescribeOptionGroupOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOptionGroupOptionsOutput: ... + + @_overload async def describe_option_group_options( self, - input: DescribeOptionGroupOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOptionGroupOptionsInputDict], ) -> DescribeOptionGroupOptionsOutput: """ Describes all available options for the specified engine. Args: - input: - An instance of `DescribeOptionGroupOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3247,19 +5032,39 @@ async def describe_option_group_options( Returns: An instance of `DescribeOptionGroupOptionsOutput`. """ + + async def describe_option_group_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOptionGroupOptionsOutput: return await self._invoke( - input, _models.DESCRIBE_OPTION_GROUP_OPTIONS, [], plugins + self._select_input(_models.DESCRIBE_OPTION_GROUP_OPTIONS, args, kwargs), + _models.DESCRIBE_OPTION_GROUP_OPTIONS, + [], + plugins, ) + @_overload + async def describe_option_groups( + self, + request: _models.DescribeOptionGroupsInput + | _models.DescribeOptionGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOptionGroupsOutput: ... + + @_overload async def describe_option_groups( - self, input: DescribeOptionGroupsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOptionGroupsInputDict], ) -> DescribeOptionGroupsOutput: """ Describes the available option groups. Args: - input: - An instance of `DescribeOptionGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3269,19 +5074,39 @@ async def describe_option_groups( Returns: An instance of `DescribeOptionGroupsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_OPTION_GROUPS, [], plugins) + async def describe_option_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOptionGroupsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_OPTION_GROUPS, args, kwargs), + _models.DESCRIBE_OPTION_GROUPS, + [], + plugins, + ) + + @_overload + async def describe_orderable_db_instance_options( + self, + request: _models.DescribeOrderableDBInstanceOptionsInput + | _models.DescribeOrderableDBInstanceOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOrderableDBInstanceOptionsOutput: ... + + @_overload async def describe_orderable_db_instance_options( self, - input: DescribeOrderableDBInstanceOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOrderableDBInstanceOptionsInputDict], ) -> DescribeOrderableDBInstanceOptionsOutput: """ Describes the orderable DB instance options for a specified DB engine. Args: - input: - An instance of `DescribeOrderableDBInstanceOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3291,14 +5116,36 @@ async def describe_orderable_db_instance_options( Returns: An instance of `DescribeOrderableDBInstanceOptionsOutput`. """ + + async def describe_orderable_db_instance_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOrderableDBInstanceOptionsOutput: return await self._invoke( - input, _models.DESCRIBE_ORDERABLE_DB_INSTANCE_OPTIONS, [], plugins + self._select_input( + _models.DESCRIBE_ORDERABLE_DB_INSTANCE_OPTIONS, args, kwargs + ), + _models.DESCRIBE_ORDERABLE_DB_INSTANCE_OPTIONS, + [], + plugins, ) + @_overload async def describe_pending_maintenance_actions( self, - input: DescribePendingMaintenanceActionsInput, + request: _models.DescribePendingMaintenanceActionsInput + | _models.DescribePendingMaintenanceActionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribePendingMaintenanceActionsOutput: ... + + @_overload + async def describe_pending_maintenance_actions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePendingMaintenanceActionsInputDict], ) -> DescribePendingMaintenanceActionsOutput: """ Returns a list of resources (for example, DB instances) that have at @@ -3311,8 +5158,6 @@ async def describe_pending_maintenance_actions( a previous API command such as `ApplyPendingMaintenanceActions`. Args: - input: - An instance of `DescribePendingMaintenanceActionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3322,22 +5167,42 @@ async def describe_pending_maintenance_actions( Returns: An instance of `DescribePendingMaintenanceActionsOutput`. """ + + async def describe_pending_maintenance_actions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePendingMaintenanceActionsOutput: return await self._invoke( - input, _models.DESCRIBE_PENDING_MAINTENANCE_ACTIONS, [], plugins + self._select_input( + _models.DESCRIBE_PENDING_MAINTENANCE_ACTIONS, args, kwargs + ), + _models.DESCRIBE_PENDING_MAINTENANCE_ACTIONS, + [], + plugins, ) + @_overload + async def describe_reserved_db_instances( + self, + request: _models.DescribeReservedDBInstancesInput + | _models.DescribeReservedDBInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedDBInstancesOutput: ... + + @_overload async def describe_reserved_db_instances( self, - input: DescribeReservedDBInstancesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedDBInstancesInputDict], ) -> DescribeReservedDBInstancesOutput: """ Returns information about reserved DB instances for this account, or about a specified reserved DB instance. Args: - input: - An instance of `DescribeReservedDBInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3347,21 +5212,39 @@ async def describe_reserved_db_instances( Returns: An instance of `DescribeReservedDBInstancesOutput`. """ + + async def describe_reserved_db_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedDBInstancesOutput: return await self._invoke( - input, _models.DESCRIBE_RESERVED_DB_INSTANCES, [], plugins + self._select_input(_models.DESCRIBE_RESERVED_DB_INSTANCES, args, kwargs), + _models.DESCRIBE_RESERVED_DB_INSTANCES, + [], + plugins, ) + @_overload + async def describe_reserved_db_instances_offerings( + self, + request: _models.DescribeReservedDBInstancesOfferingsInput + | _models.DescribeReservedDBInstancesOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedDBInstancesOfferingsOutput: ... + + @_overload async def describe_reserved_db_instances_offerings( self, - input: DescribeReservedDBInstancesOfferingsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedDBInstancesOfferingsInputDict], ) -> DescribeReservedDBInstancesOfferingsOutput: """ Lists available reserved DB instance offerings. Args: - input: - An instance of `DescribeReservedDBInstancesOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3371,22 +5254,42 @@ async def describe_reserved_db_instances_offerings( Returns: An instance of `DescribeReservedDBInstancesOfferingsOutput`. """ + + async def describe_reserved_db_instances_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedDBInstancesOfferingsOutput: return await self._invoke( - input, _models.DESCRIBE_RESERVED_DB_INSTANCES_OFFERINGS, [], plugins + self._select_input( + _models.DESCRIBE_RESERVED_DB_INSTANCES_OFFERINGS, args, kwargs + ), + _models.DESCRIBE_RESERVED_DB_INSTANCES_OFFERINGS, + [], + plugins, ) + @_overload + async def describe_serverless_v2_platform_versions( + self, + request: _models.DescribeServerlessV2PlatformVersionsInput + | _models.DescribeServerlessV2PlatformVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeServerlessV2PlatformVersionsOutput: ... + + @_overload async def describe_serverless_v2_platform_versions( self, - input: DescribeServerlessV2PlatformVersionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServerlessV2PlatformVersionsInputDict], ) -> DescribeServerlessV2PlatformVersionsOutput: """ Describes the properties of specific platform versions for Aurora Serverless v2. Args: - input: - An instance of `DescribeServerlessV2PlatformVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3396,12 +5299,36 @@ async def describe_serverless_v2_platform_versions( Returns: An instance of `DescribeServerlessV2PlatformVersionsOutput`. """ + + async def describe_serverless_v2_platform_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServerlessV2PlatformVersionsOutput: return await self._invoke( - input, _models.DESCRIBE_SERVERLESS_V2_PLATFORM_VERSIONS, [], plugins + self._select_input( + _models.DESCRIBE_SERVERLESS_V2_PLATFORM_VERSIONS, args, kwargs + ), + _models.DESCRIBE_SERVERLESS_V2_PLATFORM_VERSIONS, + [], + plugins, ) + @_overload + async def describe_source_regions( + self, + request: _models.DescribeSourceRegionsInput + | _models.DescribeSourceRegionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSourceRegionsOutput: ... + + @_overload async def describe_source_regions( - self, input: DescribeSourceRegionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSourceRegionsInputDict], ) -> DescribeSourceRegionsOutput: """ Returns a list of the source Amazon Web Services Regions where the @@ -3419,8 +5346,6 @@ async def describe_source_regions( in the *Amazon EC2 API Reference*. Args: - input: - An instance of `DescribeSourceRegionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3430,10 +5355,34 @@ async def describe_source_regions( Returns: An instance of `DescribeSourceRegionsOutput`. """ - return await self._invoke(input, _models.DESCRIBE_SOURCE_REGIONS, [], plugins) + async def describe_source_regions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSourceRegionsOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_SOURCE_REGIONS, args, kwargs), + _models.DESCRIBE_SOURCE_REGIONS, + [], + plugins, + ) + + @_overload + async def describe_tenant_databases( + self, + request: _models.DescribeTenantDatabasesInput + | _models.DescribeTenantDatabasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTenantDatabasesOutput: ... + + @_overload async def describe_tenant_databases( - self, input: DescribeTenantDatabasesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTenantDatabasesInputDict], ) -> DescribeTenantDatabasesOutput: """ Describes the tenant databases in a DB instance that uses the @@ -3441,8 +5390,6 @@ async def describe_tenant_databases( supported. Args: - input: - An instance of `DescribeTenantDatabasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3452,12 +5399,34 @@ async def describe_tenant_databases( Returns: An instance of `DescribeTenantDatabasesOutput`. """ - return await self._invoke(input, _models.DESCRIBE_TENANT_DATABASES, [], plugins) + async def describe_tenant_databases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTenantDatabasesOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_TENANT_DATABASES, args, kwargs), + _models.DESCRIBE_TENANT_DATABASES, + [], + plugins, + ) + + @_overload + async def describe_valid_db_instance_modifications( + self, + request: _models.DescribeValidDBInstanceModificationsInput + | _models.DescribeValidDBInstanceModificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeValidDBInstanceModificationsOutput: ... + + @_overload async def describe_valid_db_instance_modifications( self, - input: DescribeValidDBInstanceModificationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeValidDBInstanceModificationsInputDict], ) -> DescribeValidDBInstanceModificationsOutput: """ You can call `DescribeValidDBInstanceModifications` to learn what @@ -3467,8 +5436,6 @@ async def describe_valid_db_instance_modifications( This command doesn't apply to RDS Custom. Args: - input: - An instance of `DescribeValidDBInstanceModificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3478,12 +5445,36 @@ async def describe_valid_db_instance_modifications( Returns: An instance of `DescribeValidDBInstanceModificationsOutput`. """ + + async def describe_valid_db_instance_modifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeValidDBInstanceModificationsOutput: return await self._invoke( - input, _models.DESCRIBE_VALID_DB_INSTANCE_MODIFICATIONS, [], plugins + self._select_input( + _models.DESCRIBE_VALID_DB_INSTANCE_MODIFICATIONS, args, kwargs + ), + _models.DESCRIBE_VALID_DB_INSTANCE_MODIFICATIONS, + [], + plugins, ) + @_overload + async def disable_http_endpoint( + self, + request: _models.DisableHttpEndpointInput + | _models.DisableHttpEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableHttpEndpointOutput: ... + + @_overload async def disable_http_endpoint( - self, input: DisableHttpEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableHttpEndpointInputDict], ) -> DisableHttpEndpointOutput: """ Disables the HTTP endpoint for the specified DB cluster. Disabling this @@ -3500,8 +5491,6 @@ async def disable_http_endpoint( `ModifyDBCluster` operation. Args: - input: - An instance of `DisableHttpEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3511,10 +5500,34 @@ async def disable_http_endpoint( Returns: An instance of `DisableHttpEndpointOutput`. """ - return await self._invoke(input, _models.DISABLE_HTTP_ENDPOINT, [], plugins) + async def disable_http_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableHttpEndpointOutput: + return await self._invoke( + self._select_input(_models.DISABLE_HTTP_ENDPOINT, args, kwargs), + _models.DISABLE_HTTP_ENDPOINT, + [], + plugins, + ) + + @_overload + async def download_db_log_file_portion( + self, + request: _models.DownloadDBLogFilePortionInput + | _models.DownloadDBLogFilePortionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DownloadDBLogFilePortionOutput: ... + + @_overload async def download_db_log_file_portion( - self, input: DownloadDBLogFilePortionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DownloadDBLogFilePortionInputDict], ) -> DownloadDBLogFilePortionOutput: """ Downloads all or a portion of the specified log file, up to 1 MB in @@ -3530,8 +5543,6 @@ async def download_db_log_file_portion( in the *Amazon CloudWatch Logs API Reference*. Args: - input: - An instance of `DownloadDBLogFilePortionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3541,12 +5552,33 @@ async def download_db_log_file_portion( Returns: An instance of `DownloadDBLogFilePortionOutput`. """ + + async def download_db_log_file_portion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DownloadDBLogFilePortionOutput: return await self._invoke( - input, _models.DOWNLOAD_DB_LOG_FILE_PORTION, [], plugins + self._select_input(_models.DOWNLOAD_DB_LOG_FILE_PORTION, args, kwargs), + _models.DOWNLOAD_DB_LOG_FILE_PORTION, + [], + plugins, ) + @_overload + async def enable_http_endpoint( + self, + request: _models.EnableHttpEndpointInput | _models.EnableHttpEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableHttpEndpointOutput: ... + + @_overload async def enable_http_endpoint( - self, input: EnableHttpEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableHttpEndpointInputDict], ) -> EnableHttpEndpointOutput: """ Enables the HTTP endpoint for the DB cluster. By default, the HTTP @@ -3568,8 +5600,6 @@ async def enable_http_endpoint( `ModifyDBCluster` operation. Args: - input: - An instance of `EnableHttpEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3579,10 +5609,33 @@ async def enable_http_endpoint( Returns: An instance of `EnableHttpEndpointOutput`. """ - return await self._invoke(input, _models.ENABLE_HTTP_ENDPOINT, [], plugins) + async def enable_http_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableHttpEndpointOutput: + return await self._invoke( + self._select_input(_models.ENABLE_HTTP_ENDPOINT, args, kwargs), + _models.ENABLE_HTTP_ENDPOINT, + [], + plugins, + ) + + @_overload async def failover_db_cluster( - self, input: FailoverDBClusterInput, plugins: list[Plugin] | None = None + self, + request: _models.FailoverDBClusterInput | _models.FailoverDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> FailoverDBClusterOutput: ... + + @_overload + async def failover_db_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.FailoverDBClusterInputDict], ) -> FailoverDBClusterOutput: """ Forces a failover for a DB cluster. @@ -3616,8 +5669,6 @@ async def failover_db_cluster( in the *Amazon RDS User Guide*. Args: - input: - An instance of `FailoverDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3627,10 +5678,34 @@ async def failover_db_cluster( Returns: An instance of `FailoverDBClusterOutput`. """ - return await self._invoke(input, _models.FAILOVER_DB_CLUSTER, [], plugins) + async def failover_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> FailoverDBClusterOutput: + return await self._invoke( + self._select_input(_models.FAILOVER_DB_CLUSTER, args, kwargs), + _models.FAILOVER_DB_CLUSTER, + [], + plugins, + ) + + @_overload + async def failover_global_cluster( + self, + request: _models.FailoverGlobalClusterInput + | _models.FailoverGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> FailoverGlobalClusterOutput: ... + + @_overload async def failover_global_cluster( - self, input: FailoverGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.FailoverGlobalClusterInputDict], ) -> FailoverGlobalClusterOutput: """ Promotes the specified secondary DB cluster to be the primary DB cluster @@ -3683,8 +5758,6 @@ async def failover_global_cluster( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `FailoverGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3694,10 +5767,34 @@ async def failover_global_cluster( Returns: An instance of `FailoverGlobalClusterOutput`. """ - return await self._invoke(input, _models.FAILOVER_GLOBAL_CLUSTER, [], plugins) + async def failover_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> FailoverGlobalClusterOutput: + return await self._invoke( + self._select_input(_models.FAILOVER_GLOBAL_CLUSTER, args, kwargs), + _models.FAILOVER_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists all tags on an Amazon RDS resource. @@ -3710,8 +5807,6 @@ async def list_tags_for_resource( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3721,10 +5816,34 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def modify_activity_stream( + self, + request: _models.ModifyActivityStreamInput + | _models.ModifyActivityStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyActivityStreamOutput: ... + + @_overload async def modify_activity_stream( - self, input: ModifyActivityStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyActivityStreamInputDict], ) -> ModifyActivityStreamOutput: """ Changes the audit policy state of a database activity stream to either @@ -3739,8 +5858,6 @@ async def modify_activity_stream( This operation is supported for RDS for Oracle and Microsoft SQL Server. Args: - input: - An instance of `ModifyActivityStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3750,10 +5867,33 @@ async def modify_activity_stream( Returns: An instance of `ModifyActivityStreamOutput`. """ - return await self._invoke(input, _models.MODIFY_ACTIVITY_STREAM, [], plugins) + async def modify_activity_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyActivityStreamOutput: + return await self._invoke( + self._select_input(_models.MODIFY_ACTIVITY_STREAM, args, kwargs), + _models.MODIFY_ACTIVITY_STREAM, + [], + plugins, + ) + + @_overload + async def modify_certificates( + self, + request: _models.ModifyCertificatesInput | _models.ModifyCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCertificatesOutput: ... + + @_overload async def modify_certificates( - self, input: ModifyCertificatesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCertificatesInputDict], ) -> ModifyCertificatesOutput: """ Override the system-default Secure Sockets Layer/Transport Layer @@ -3790,8 +5930,6 @@ async def modify_certificates( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `ModifyCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3801,12 +5939,34 @@ async def modify_certificates( Returns: An instance of `ModifyCertificatesOutput`. """ - return await self._invoke(input, _models.MODIFY_CERTIFICATES, [], plugins) + async def modify_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCertificatesOutput: + return await self._invoke( + self._select_input(_models.MODIFY_CERTIFICATES, args, kwargs), + _models.MODIFY_CERTIFICATES, + [], + plugins, + ) + + @_overload + async def modify_current_db_cluster_capacity( + self, + request: _models.ModifyCurrentDBClusterCapacityInput + | _models.ModifyCurrentDBClusterCapacityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCurrentDBClusterCapacityOutput: ... + + @_overload async def modify_current_db_cluster_capacity( self, - input: ModifyCurrentDBClusterCapacityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCurrentDBClusterCapacityInputDict], ) -> ModifyCurrentDBClusterCapacityOutput: """ Set the capacity of an Aurora Serverless v1 DB cluster to a specific @@ -3837,8 +5997,6 @@ async def modify_current_db_cluster_capacity( This operation only applies to Aurora Serverless v1 DB clusters. Args: - input: - An instance of `ModifyCurrentDBClusterCapacityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3848,14 +6006,36 @@ async def modify_current_db_cluster_capacity( Returns: An instance of `ModifyCurrentDBClusterCapacityOutput`. """ + + async def modify_current_db_cluster_capacity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCurrentDBClusterCapacityOutput: return await self._invoke( - input, _models.MODIFY_CURRENT_DB_CLUSTER_CAPACITY, [], plugins + self._select_input( + _models.MODIFY_CURRENT_DB_CLUSTER_CAPACITY, args, kwargs + ), + _models.MODIFY_CURRENT_DB_CLUSTER_CAPACITY, + [], + plugins, ) + @_overload + async def modify_custom_db_engine_version( + self, + request: _models.ModifyCustomDBEngineVersionInput + | _models.ModifyCustomDBEngineVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCustomDBEngineVersionOutput: ... + + @_overload async def modify_custom_db_engine_version( self, - input: ModifyCustomDBEngineVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCustomDBEngineVersionInputDict], ) -> ModifyCustomDBEngineVersionOutput: """ Modifies the status of a custom engine version (CEV). You can find CEVs @@ -3875,8 +6055,6 @@ async def modify_custom_db_engine_version( in the *Amazon RDS User Guide*. Args: - input: - An instance of `ModifyCustomDBEngineVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3886,14 +6064,34 @@ async def modify_custom_db_engine_version( Returns: An instance of `ModifyCustomDBEngineVersionOutput`. """ + + async def modify_custom_db_engine_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCustomDBEngineVersionOutput: return await self._invoke( - input, _models.MODIFY_CUSTOM_DB_ENGINE_VERSION, [], plugins + self._select_input(_models.MODIFY_CUSTOM_DB_ENGINE_VERSION, args, kwargs), + _models.MODIFY_CUSTOM_DB_ENGINE_VERSION, + [], + plugins, ) + @_overload + async def modify_db_capacity_reservation( + self, + request: _models.ModifyDBCapacityReservationInput + | _models.ModifyDBCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBCapacityReservationOutput: ... + + @_overload async def modify_db_capacity_reservation( self, - input: ModifyDBCapacityReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBCapacityReservationInputDict], ) -> ModifyDBCapacityReservationOutput: """ Modifies a DB capacity reservation. You can change the reserved capacity @@ -3910,8 +6108,6 @@ async def modify_db_capacity_reservation( and Amazon RDS rejects it. Args: - input: - An instance of `ModifyDBCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3921,12 +6117,33 @@ async def modify_db_capacity_reservation( Returns: An instance of `ModifyDBCapacityReservationOutput`. """ + + async def modify_db_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBCapacityReservationOutput: return await self._invoke( - input, _models.MODIFY_DB_CAPACITY_RESERVATION, [], plugins + self._select_input(_models.MODIFY_DB_CAPACITY_RESERVATION, args, kwargs), + _models.MODIFY_DB_CAPACITY_RESERVATION, + [], + plugins, ) + @_overload + async def modify_db_cluster( + self, + request: _models.ModifyDBClusterInput | _models.ModifyDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBClusterOutput: ... + + @_overload async def modify_db_cluster( - self, input: ModifyDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBClusterInputDict], ) -> ModifyDBClusterOutput: """ Modifies the settings of an Amazon Aurora DB cluster or a Multi-AZ DB @@ -3942,8 +6159,6 @@ async def modify_db_cluster( in the *Amazon RDS User Guide*. Args: - input: - An instance of `ModifyDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3953,10 +6168,34 @@ async def modify_db_cluster( Returns: An instance of `ModifyDBClusterOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_CLUSTER, [], plugins) + async def modify_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBClusterOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_CLUSTER, args, kwargs), + _models.MODIFY_DB_CLUSTER, + [], + plugins, + ) + + @_overload + async def modify_db_cluster_endpoint( + self, + request: _models.ModifyDBClusterEndpointInput + | _models.ModifyDBClusterEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBClusterEndpointOutput: ... + + @_overload async def modify_db_cluster_endpoint( - self, input: ModifyDBClusterEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBClusterEndpointInputDict], ) -> ModifyDBClusterEndpointOutput: """ Modifies the properties of an endpoint in an Amazon Aurora DB cluster. @@ -3965,8 +6204,6 @@ async def modify_db_cluster_endpoint( This operation only applies to Aurora DB clusters. Args: - input: - An instance of `ModifyDBClusterEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3976,14 +6213,34 @@ async def modify_db_cluster_endpoint( Returns: An instance of `ModifyDBClusterEndpointOutput`. """ + + async def modify_db_cluster_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBClusterEndpointOutput: return await self._invoke( - input, _models.MODIFY_DB_CLUSTER_ENDPOINT, [], plugins + self._select_input(_models.MODIFY_DB_CLUSTER_ENDPOINT, args, kwargs), + _models.MODIFY_DB_CLUSTER_ENDPOINT, + [], + plugins, ) + @_overload async def modify_db_cluster_parameter_group( self, - input: ModifyDBClusterParameterGroupInput, + request: _models.ModifyDBClusterParameterGroupInput + | _models.ModifyDBClusterParameterGroupInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyDBClusterParameterGroupOutput: ... + + @_overload + async def modify_db_cluster_parameter_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBClusterParameterGroupInputDict], ) -> ModifyDBClusterParameterGroupOutput: """ Modifies the parameters of a DB cluster parameter group. To modify more @@ -4010,8 +6267,6 @@ async def modify_db_cluster_parameter_group( in the *Amazon RDS User Guide.* Args: - input: - An instance of `ModifyDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4021,14 +6276,34 @@ async def modify_db_cluster_parameter_group( Returns: An instance of `ModifyDBClusterParameterGroupOutput`. """ + + async def modify_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBClusterParameterGroupOutput: return await self._invoke( - input, _models.MODIFY_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.MODIFY_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.MODIFY_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload + async def modify_db_cluster_snapshot_attribute( + self, + request: _models.ModifyDBClusterSnapshotAttributeInput + | _models.ModifyDBClusterSnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBClusterSnapshotAttributeOutput: ... + + @_overload async def modify_db_cluster_snapshot_attribute( self, - input: ModifyDBClusterSnapshotAttributeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBClusterSnapshotAttributeInputDict], ) -> ModifyDBClusterSnapshotAttributeOutput: """ Adds an attribute and values to, or removes an attribute and values @@ -4059,8 +6334,6 @@ async def modify_db_cluster_snapshot_attribute( returned as values for the `restore` attribute. Args: - input: - An instance of `ModifyDBClusterSnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4070,12 +6343,35 @@ async def modify_db_cluster_snapshot_attribute( Returns: An instance of `ModifyDBClusterSnapshotAttributeOutput`. """ + + async def modify_db_cluster_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBClusterSnapshotAttributeOutput: return await self._invoke( - input, _models.MODIFY_DB_CLUSTER_SNAPSHOT_ATTRIBUTE, [], plugins + self._select_input( + _models.MODIFY_DB_CLUSTER_SNAPSHOT_ATTRIBUTE, args, kwargs + ), + _models.MODIFY_DB_CLUSTER_SNAPSHOT_ATTRIBUTE, + [], + plugins, ) + @_overload + async def modify_db_instance( + self, + request: _models.ModifyDBInstanceInput | _models.ModifyDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBInstanceOutput: ... + + @_overload async def modify_db_instance( - self, input: ModifyDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBInstanceInputDict], ) -> ModifyDBInstanceOutput: """ Modifies settings for a DB instance. You can change one or more database @@ -4085,8 +6381,6 @@ async def modify_db_instance( `ModifyDBInstance`. Args: - input: - An instance of `ModifyDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4096,10 +6390,34 @@ async def modify_db_instance( Returns: An instance of `ModifyDBInstanceOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_INSTANCE, [], plugins) + async def modify_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBInstanceOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_INSTANCE, args, kwargs), + _models.MODIFY_DB_INSTANCE, + [], + plugins, + ) + + @_overload + async def modify_db_parameter_group( + self, + request: _models.ModifyDBParameterGroupInput + | _models.ModifyDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBParameterGroupOutput: ... + + @_overload async def modify_db_parameter_group( - self, input: ModifyDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBParameterGroupInputDict], ) -> ModifyDBParameterGroupOutput: """ Modifies the parameters of a DB parameter group. To modify more than one @@ -4122,8 +6440,6 @@ async def modify_db_parameter_group( has been created or modified. Args: - input: - An instance of `ModifyDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4133,17 +6449,38 @@ async def modify_db_parameter_group( Returns: An instance of `ModifyDBParameterGroupOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_PARAMETER_GROUP, [], plugins) + async def modify_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBParameterGroupOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_PARAMETER_GROUP, args, kwargs), + _models.MODIFY_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + async def modify_db_proxy( + self, + request: _models.ModifyDBProxyInput | _models.ModifyDBProxyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBProxyOutput: ... + + @_overload async def modify_db_proxy( - self, input: ModifyDBProxyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBProxyInputDict], ) -> ModifyDBProxyOutput: """ Changes the settings for an existing DB proxy. Args: - input: - An instance of `ModifyDBProxyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4153,17 +6490,39 @@ async def modify_db_proxy( Returns: An instance of `ModifyDBProxyOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_PROXY, [], plugins) + async def modify_db_proxy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBProxyOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_PROXY, args, kwargs), + _models.MODIFY_DB_PROXY, + [], + plugins, + ) + + @_overload + async def modify_db_proxy_endpoint( + self, + request: _models.ModifyDBProxyEndpointInput + | _models.ModifyDBProxyEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBProxyEndpointOutput: ... + + @_overload async def modify_db_proxy_endpoint( - self, input: ModifyDBProxyEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBProxyEndpointInputDict], ) -> ModifyDBProxyEndpointOutput: """ Changes the settings for an existing DB proxy endpoint. Args: - input: - An instance of `ModifyDBProxyEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4173,17 +6532,39 @@ async def modify_db_proxy_endpoint( Returns: An instance of `ModifyDBProxyEndpointOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_PROXY_ENDPOINT, [], plugins) + async def modify_db_proxy_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBProxyEndpointOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_PROXY_ENDPOINT, args, kwargs), + _models.MODIFY_DB_PROXY_ENDPOINT, + [], + plugins, + ) + + @_overload + async def modify_db_proxy_target_group( + self, + request: _models.ModifyDBProxyTargetGroupInput + | _models.ModifyDBProxyTargetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBProxyTargetGroupOutput: ... + + @_overload async def modify_db_proxy_target_group( - self, input: ModifyDBProxyTargetGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBProxyTargetGroupInputDict], ) -> ModifyDBProxyTargetGroupOutput: """ Modifies the properties of a `DBProxyTargetGroup`. Args: - input: - An instance of `ModifyDBProxyTargetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4193,20 +6574,40 @@ async def modify_db_proxy_target_group( Returns: An instance of `ModifyDBProxyTargetGroupOutput`. """ + + async def modify_db_proxy_target_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBProxyTargetGroupOutput: return await self._invoke( - input, _models.MODIFY_DB_PROXY_TARGET_GROUP, [], plugins + self._select_input(_models.MODIFY_DB_PROXY_TARGET_GROUP, args, kwargs), + _models.MODIFY_DB_PROXY_TARGET_GROUP, + [], + plugins, ) + @_overload + async def modify_db_recommendation( + self, + request: _models.ModifyDBRecommendationInput + | _models.ModifyDBRecommendationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBRecommendationOutput: ... + + @_overload async def modify_db_recommendation( - self, input: ModifyDBRecommendationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBRecommendationInputDict], ) -> ModifyDBRecommendationOutput: """ Updates the recommendation status and recommended action status for the specified recommendation. Args: - input: - An instance of `ModifyDBRecommendationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4216,10 +6617,33 @@ async def modify_db_recommendation( Returns: An instance of `ModifyDBRecommendationOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_RECOMMENDATION, [], plugins) + async def modify_db_recommendation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBRecommendationOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_RECOMMENDATION, args, kwargs), + _models.MODIFY_DB_RECOMMENDATION, + [], + plugins, + ) + + @_overload + async def modify_db_shard_group( + self, + request: _models.ModifyDBShardGroupInput | _models.ModifyDBShardGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBShardGroupOutput: ... + + @_overload async def modify_db_shard_group( - self, input: ModifyDBShardGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBShardGroupInputDict], ) -> ModifyDBShardGroupOutput: """ Modifies the settings of an Aurora Limitless Database DB shard group. @@ -4227,8 +6651,6 @@ async def modify_db_shard_group( the new values in the request. Args: - input: - An instance of `ModifyDBShardGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4238,10 +6660,33 @@ async def modify_db_shard_group( Returns: An instance of `ModifyDBShardGroupOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_SHARD_GROUP, [], plugins) + async def modify_db_shard_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBShardGroupOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_SHARD_GROUP, args, kwargs), + _models.MODIFY_DB_SHARD_GROUP, + [], + plugins, + ) + + @_overload + async def modify_db_snapshot( + self, + request: _models.ModifyDBSnapshotInput | _models.ModifyDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBSnapshotOutput: ... + + @_overload async def modify_db_snapshot( - self, input: ModifyDBSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBSnapshotInputDict], ) -> ModifyDBSnapshotOutput: """ Updates a manual DB snapshot with a new engine version. The snapshot can @@ -4252,8 +6697,6 @@ async def modify_db_snapshot( RDS for Db2. Args: - input: - An instance of `ModifyDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4263,10 +6706,34 @@ async def modify_db_snapshot( Returns: An instance of `ModifyDBSnapshotOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_SNAPSHOT, [], plugins) + async def modify_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBSnapshotOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_SNAPSHOT, args, kwargs), + _models.MODIFY_DB_SNAPSHOT, + [], + plugins, + ) + + @_overload + async def modify_db_snapshot_attribute( + self, + request: _models.ModifyDBSnapshotAttributeInput + | _models.ModifyDBSnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBSnapshotAttributeOutput: ... + + @_overload async def modify_db_snapshot_attribute( - self, input: ModifyDBSnapshotAttributeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBSnapshotAttributeInputDict], ) -> ModifyDBSnapshotAttributeOutput: """ Adds an attribute and values to, or removes an attribute and values @@ -4295,8 +6762,6 @@ async def modify_db_snapshot_attribute( accounts are returned as values for the `restore` attribute. Args: - input: - An instance of `ModifyDBSnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4306,20 +6771,40 @@ async def modify_db_snapshot_attribute( Returns: An instance of `ModifyDBSnapshotAttributeOutput`. """ + + async def modify_db_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBSnapshotAttributeOutput: return await self._invoke( - input, _models.MODIFY_DB_SNAPSHOT_ATTRIBUTE, [], plugins + self._select_input(_models.MODIFY_DB_SNAPSHOT_ATTRIBUTE, args, kwargs), + _models.MODIFY_DB_SNAPSHOT_ATTRIBUTE, + [], + plugins, ) + @_overload + async def modify_db_subnet_group( + self, + request: _models.ModifyDBSubnetGroupInput + | _models.ModifyDBSubnetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBSubnetGroupOutput: ... + + @_overload async def modify_db_subnet_group( - self, input: ModifyDBSubnetGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBSubnetGroupInputDict], ) -> ModifyDBSubnetGroupOutput: """ Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Web Services Region. Args: - input: - An instance of `ModifyDBSubnetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4329,10 +6814,34 @@ async def modify_db_subnet_group( Returns: An instance of `ModifyDBSubnetGroupOutput`. """ - return await self._invoke(input, _models.MODIFY_DB_SUBNET_GROUP, [], plugins) + async def modify_db_subnet_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBSubnetGroupOutput: + return await self._invoke( + self._select_input(_models.MODIFY_DB_SUBNET_GROUP, args, kwargs), + _models.MODIFY_DB_SUBNET_GROUP, + [], + plugins, + ) + + @_overload async def modify_event_subscription( - self, input: ModifyEventSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyEventSubscriptionInput + | _models.ModifyEventSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyEventSubscriptionOutput: ... + + @_overload + async def modify_event_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyEventSubscriptionInputDict], ) -> ModifyEventSubscriptionOutput: """ Modifies an existing RDS event notification subscription. You can't @@ -4348,8 +6857,6 @@ async def modify_event_subscription( operation. Args: - input: - An instance of `ModifyEventSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4359,10 +6866,34 @@ async def modify_event_subscription( Returns: An instance of `ModifyEventSubscriptionOutput`. """ - return await self._invoke(input, _models.MODIFY_EVENT_SUBSCRIPTION, [], plugins) + async def modify_event_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyEventSubscriptionOutput: + return await self._invoke( + self._select_input(_models.MODIFY_EVENT_SUBSCRIPTION, args, kwargs), + _models.MODIFY_EVENT_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + async def modify_global_cluster( + self, + request: _models.ModifyGlobalClusterInput + | _models.ModifyGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyGlobalClusterOutput: ... + + @_overload async def modify_global_cluster( - self, input: ModifyGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyGlobalClusterInputDict], ) -> ModifyGlobalClusterOutput: """ Modifies a setting for an Amazon Aurora global database cluster. You can @@ -4376,8 +6907,6 @@ async def modify_global_cluster( This operation only applies to Aurora global database clusters. Args: - input: - An instance of `ModifyGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4387,17 +6916,38 @@ async def modify_global_cluster( Returns: An instance of `ModifyGlobalClusterOutput`. """ - return await self._invoke(input, _models.MODIFY_GLOBAL_CLUSTER, [], plugins) + async def modify_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyGlobalClusterOutput: + return await self._invoke( + self._select_input(_models.MODIFY_GLOBAL_CLUSTER, args, kwargs), + _models.MODIFY_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload + async def modify_integration( + self, + request: _models.ModifyIntegrationInput | _models.ModifyIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIntegrationOutput: ... + + @_overload async def modify_integration( - self, input: ModifyIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIntegrationInputDict], ) -> ModifyIntegrationOutput: """ Modifies a zero-ETL integration with Amazon Redshift. Args: - input: - An instance of `ModifyIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4407,17 +6957,38 @@ async def modify_integration( Returns: An instance of `ModifyIntegrationOutput`. """ - return await self._invoke(input, _models.MODIFY_INTEGRATION, [], plugins) + async def modify_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIntegrationOutput: + return await self._invoke( + self._select_input(_models.MODIFY_INTEGRATION, args, kwargs), + _models.MODIFY_INTEGRATION, + [], + plugins, + ) + + @_overload + async def modify_option_group( + self, + request: _models.ModifyOptionGroupInput | _models.ModifyOptionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyOptionGroupOutput: ... + + @_overload async def modify_option_group( - self, input: ModifyOptionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyOptionGroupInputDict], ) -> ModifyOptionGroupOutput: """ Modifies an existing option group. Args: - input: - An instance of `ModifyOptionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4427,10 +6998,34 @@ async def modify_option_group( Returns: An instance of `ModifyOptionGroupOutput`. """ - return await self._invoke(input, _models.MODIFY_OPTION_GROUP, [], plugins) + async def modify_option_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyOptionGroupOutput: + return await self._invoke( + self._select_input(_models.MODIFY_OPTION_GROUP, args, kwargs), + _models.MODIFY_OPTION_GROUP, + [], + plugins, + ) + + @_overload + async def modify_tenant_database( + self, + request: _models.ModifyTenantDatabaseInput + | _models.ModifyTenantDatabaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTenantDatabaseOutput: ... + + @_overload async def modify_tenant_database( - self, input: ModifyTenantDatabaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTenantDatabaseInputDict], ) -> ModifyTenantDatabaseOutput: """ Modifies an existing tenant database in a DB instance. You can change @@ -4439,8 +7034,6 @@ async def modify_tenant_database( configuration. Args: - input: - An instance of `ModifyTenantDatabaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4450,10 +7043,33 @@ async def modify_tenant_database( Returns: An instance of `ModifyTenantDatabaseOutput`. """ - return await self._invoke(input, _models.MODIFY_TENANT_DATABASE, [], plugins) + async def modify_tenant_database( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTenantDatabaseOutput: + return await self._invoke( + self._select_input(_models.MODIFY_TENANT_DATABASE, args, kwargs), + _models.MODIFY_TENANT_DATABASE, + [], + plugins, + ) + + @_overload + async def promote_read_replica( + self, + request: _models.PromoteReadReplicaInput | _models.PromoteReadReplicaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PromoteReadReplicaOutput: ... + + @_overload async def promote_read_replica( - self, input: PromoteReadReplicaInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PromoteReadReplicaInputDict], ) -> PromoteReadReplicaOutput: """ Promotes a read replica DB instance to a standalone DB instance. @@ -4472,8 +7088,6 @@ async def promote_read_replica( Custom. Args: - input: - An instance of `PromoteReadReplicaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4483,19 +7097,39 @@ async def promote_read_replica( Returns: An instance of `PromoteReadReplicaOutput`. """ - return await self._invoke(input, _models.PROMOTE_READ_REPLICA, [], plugins) + async def promote_read_replica( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PromoteReadReplicaOutput: + return await self._invoke( + self._select_input(_models.PROMOTE_READ_REPLICA, args, kwargs), + _models.PROMOTE_READ_REPLICA, + [], + plugins, + ) + + @_overload + async def promote_read_replica_db_cluster( + self, + request: _models.PromoteReadReplicaDBClusterInput + | _models.PromoteReadReplicaDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PromoteReadReplicaDBClusterOutput: ... + + @_overload async def promote_read_replica_db_cluster( self, - input: PromoteReadReplicaDBClusterInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PromoteReadReplicaDBClusterInputDict], ) -> PromoteReadReplicaDBClusterOutput: """ Promotes a read replica DB cluster to a standalone DB cluster. Args: - input: - An instance of `PromoteReadReplicaDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4505,21 +7139,39 @@ async def promote_read_replica_db_cluster( Returns: An instance of `PromoteReadReplicaDBClusterOutput`. """ + + async def promote_read_replica_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PromoteReadReplicaDBClusterOutput: return await self._invoke( - input, _models.PROMOTE_READ_REPLICA_DB_CLUSTER, [], plugins + self._select_input(_models.PROMOTE_READ_REPLICA_DB_CLUSTER, args, kwargs), + _models.PROMOTE_READ_REPLICA_DB_CLUSTER, + [], + plugins, ) + @_overload + async def purchase_reserved_db_instances_offering( + self, + request: _models.PurchaseReservedDBInstancesOfferingInput + | _models.PurchaseReservedDBInstancesOfferingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurchaseReservedDBInstancesOfferingOutput: ... + + @_overload async def purchase_reserved_db_instances_offering( self, - input: PurchaseReservedDBInstancesOfferingInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseReservedDBInstancesOfferingInputDict], ) -> PurchaseReservedDBInstancesOfferingOutput: """ Purchases a reserved DB instance offering. Args: - input: - An instance of `PurchaseReservedDBInstancesOfferingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4529,12 +7181,35 @@ async def purchase_reserved_db_instances_offering( Returns: An instance of `PurchaseReservedDBInstancesOfferingOutput`. """ + + async def purchase_reserved_db_instances_offering( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseReservedDBInstancesOfferingOutput: return await self._invoke( - input, _models.PURCHASE_RESERVED_DB_INSTANCES_OFFERING, [], plugins + self._select_input( + _models.PURCHASE_RESERVED_DB_INSTANCES_OFFERING, args, kwargs + ), + _models.PURCHASE_RESERVED_DB_INSTANCES_OFFERING, + [], + plugins, ) + @_overload async def reboot_db_cluster( - self, input: RebootDBClusterInput, plugins: list[Plugin] | None = None + self, + request: _models.RebootDBClusterInput | _models.RebootDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RebootDBClusterOutput: ... + + @_overload + async def reboot_db_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RebootDBClusterInputDict], ) -> RebootDBClusterOutput: """ You might need to reboot your DB cluster, usually for maintenance @@ -4553,8 +7228,6 @@ async def reboot_db_cluster( in the *Amazon RDS User Guide.* Args: - input: - An instance of `RebootDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4564,10 +7237,33 @@ async def reboot_db_cluster( Returns: An instance of `RebootDBClusterOutput`. """ - return await self._invoke(input, _models.REBOOT_DB_CLUSTER, [], plugins) + async def reboot_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RebootDBClusterOutput: + return await self._invoke( + self._select_input(_models.REBOOT_DB_CLUSTER, args, kwargs), + _models.REBOOT_DB_CLUSTER, + [], + plugins, + ) + + @_overload + async def reboot_db_instance( + self, + request: _models.RebootDBInstanceInput | _models.RebootDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RebootDBInstanceOutput: ... + + @_overload async def reboot_db_instance( - self, input: RebootDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RebootDBInstanceInputDict], ) -> RebootDBInstanceOutput: """ You might need to reboot your DB instance, usually for maintenance @@ -4589,8 +7285,6 @@ async def reboot_db_instance( DB cluster with the `RebootDBCluster` operation. Args: - input: - An instance of `RebootDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4600,10 +7294,33 @@ async def reboot_db_instance( Returns: An instance of `RebootDBInstanceOutput`. """ - return await self._invoke(input, _models.REBOOT_DB_INSTANCE, [], plugins) + async def reboot_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RebootDBInstanceOutput: + return await self._invoke( + self._select_input(_models.REBOOT_DB_INSTANCE, args, kwargs), + _models.REBOOT_DB_INSTANCE, + [], + plugins, + ) + + @_overload + async def reboot_db_shard_group( + self, + request: _models.RebootDBShardGroupInput | _models.RebootDBShardGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RebootDBShardGroupOutput: ... + + @_overload async def reboot_db_shard_group( - self, input: RebootDBShardGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RebootDBShardGroupInputDict], ) -> RebootDBShardGroupOutput: """ You might need to reboot your DB shard group, usually for maintenance @@ -4614,8 +7331,6 @@ async def reboot_db_shard_group( groups. Args: - input: - An instance of `RebootDBShardGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4625,18 +7340,40 @@ async def reboot_db_shard_group( Returns: An instance of `RebootDBShardGroupOutput`. """ - return await self._invoke(input, _models.REBOOT_DB_SHARD_GROUP, [], plugins) + async def reboot_db_shard_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RebootDBShardGroupOutput: + return await self._invoke( + self._select_input(_models.REBOOT_DB_SHARD_GROUP, args, kwargs), + _models.REBOOT_DB_SHARD_GROUP, + [], + plugins, + ) + + @_overload + async def register_db_proxy_targets( + self, + request: _models.RegisterDBProxyTargetsInput + | _models.RegisterDBProxyTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterDBProxyTargetsOutput: ... + + @_overload async def register_db_proxy_targets( - self, input: RegisterDBProxyTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterDBProxyTargetsInputDict], ) -> RegisterDBProxyTargetsOutput: """ Associate one or more `DBProxyTarget` data structures with a `DBProxyTargetGroup`. Args: - input: - An instance of `RegisterDBProxyTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4646,10 +7383,34 @@ async def register_db_proxy_targets( Returns: An instance of `RegisterDBProxyTargetsOutput`. """ - return await self._invoke(input, _models.REGISTER_DB_PROXY_TARGETS, [], plugins) + async def register_db_proxy_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterDBProxyTargetsOutput: + return await self._invoke( + self._select_input(_models.REGISTER_DB_PROXY_TARGETS, args, kwargs), + _models.REGISTER_DB_PROXY_TARGETS, + [], + plugins, + ) + + @_overload + async def remove_from_global_cluster( + self, + request: _models.RemoveFromGlobalClusterInput + | _models.RemoveFromGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveFromGlobalClusterOutput: ... + + @_overload async def remove_from_global_cluster( - self, input: RemoveFromGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveFromGlobalClusterInputDict], ) -> RemoveFromGlobalClusterOutput: """ Detaches an Aurora secondary cluster from an Aurora global database @@ -4661,8 +7422,6 @@ async def remove_from_global_cluster( This operation only applies to Aurora DB clusters. Args: - input: - An instance of `RemoveFromGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4672,12 +7431,34 @@ async def remove_from_global_cluster( Returns: An instance of `RemoveFromGlobalClusterOutput`. """ + + async def remove_from_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveFromGlobalClusterOutput: return await self._invoke( - input, _models.REMOVE_FROM_GLOBAL_CLUSTER, [], plugins + self._select_input(_models.REMOVE_FROM_GLOBAL_CLUSTER, args, kwargs), + _models.REMOVE_FROM_GLOBAL_CLUSTER, + [], + plugins, ) + @_overload + async def remove_role_from_db_cluster( + self, + request: _models.RemoveRoleFromDBClusterInput + | _models.RemoveRoleFromDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveRoleFromDBClusterOutput: ... + + @_overload async def remove_role_from_db_cluster( - self, input: RemoveRoleFromDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveRoleFromDBClusterInputDict], ) -> RemoveRoleFromDBClusterOutput: """ Removes the asssociation of an Amazon Web Services Identity and Access @@ -4692,8 +7473,6 @@ async def remove_role_from_db_cluster( in the *Amazon RDS User Guide.* Args: - input: - An instance of `RemoveRoleFromDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4703,20 +7482,40 @@ async def remove_role_from_db_cluster( Returns: An instance of `RemoveRoleFromDBClusterOutput`. """ + + async def remove_role_from_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveRoleFromDBClusterOutput: return await self._invoke( - input, _models.REMOVE_ROLE_FROM_DB_CLUSTER, [], plugins + self._select_input(_models.REMOVE_ROLE_FROM_DB_CLUSTER, args, kwargs), + _models.REMOVE_ROLE_FROM_DB_CLUSTER, + [], + plugins, ) + @_overload + async def remove_role_from_db_instance( + self, + request: _models.RemoveRoleFromDBInstanceInput + | _models.RemoveRoleFromDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveRoleFromDBInstanceOutput: ... + + @_overload async def remove_role_from_db_instance( - self, input: RemoveRoleFromDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveRoleFromDBInstanceInputDict], ) -> RemoveRoleFromDBInstanceOutput: """ Disassociates an Amazon Web Services Identity and Access Management (IAM) role from a DB instance. Args: - input: - An instance of `RemoveRoleFromDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4726,22 +7525,40 @@ async def remove_role_from_db_instance( Returns: An instance of `RemoveRoleFromDBInstanceOutput`. """ + + async def remove_role_from_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveRoleFromDBInstanceOutput: return await self._invoke( - input, _models.REMOVE_ROLE_FROM_DB_INSTANCE, [], plugins + self._select_input(_models.REMOVE_ROLE_FROM_DB_INSTANCE, args, kwargs), + _models.REMOVE_ROLE_FROM_DB_INSTANCE, + [], + plugins, ) + @_overload + async def remove_source_identifier_from_subscription( + self, + request: _models.RemoveSourceIdentifierFromSubscriptionInput + | _models.RemoveSourceIdentifierFromSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveSourceIdentifierFromSubscriptionOutput: ... + + @_overload async def remove_source_identifier_from_subscription( self, - input: RemoveSourceIdentifierFromSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveSourceIdentifierFromSubscriptionInputDict], ) -> RemoveSourceIdentifierFromSubscriptionOutput: """ Removes a source identifier from an existing RDS event notification subscription. Args: - input: - An instance of `RemoveSourceIdentifierFromSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4751,12 +7568,36 @@ async def remove_source_identifier_from_subscription( Returns: An instance of `RemoveSourceIdentifierFromSubscriptionOutput`. """ + + async def remove_source_identifier_from_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveSourceIdentifierFromSubscriptionOutput: return await self._invoke( - input, _models.REMOVE_SOURCE_IDENTIFIER_FROM_SUBSCRIPTION, [], plugins + self._select_input( + _models.REMOVE_SOURCE_IDENTIFIER_FROM_SUBSCRIPTION, args, kwargs + ), + _models.REMOVE_SOURCE_IDENTIFIER_FROM_SUBSCRIPTION, + [], + plugins, ) + @_overload + async def remove_tags_from_resource( + self, + request: _models.RemoveTagsFromResourceInput + | _models.RemoveTagsFromResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveTagsFromResourceOutput: ... + + @_overload async def remove_tags_from_resource( - self, input: RemoveTagsFromResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveTagsFromResourceInputDict], ) -> RemoveTagsFromResourceOutput: """ Removes metadata tags from an Amazon RDS resource. @@ -4769,8 +7610,6 @@ async def remove_tags_from_resource( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `RemoveTagsFromResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4780,12 +7619,34 @@ async def remove_tags_from_resource( Returns: An instance of `RemoveTagsFromResourceOutput`. """ - return await self._invoke(input, _models.REMOVE_TAGS_FROM_RESOURCE, [], plugins) + async def remove_tags_from_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveTagsFromResourceOutput: + return await self._invoke( + self._select_input(_models.REMOVE_TAGS_FROM_RESOURCE, args, kwargs), + _models.REMOVE_TAGS_FROM_RESOURCE, + [], + plugins, + ) + + @_overload + async def reset_db_cluster_parameter_group( + self, + request: _models.ResetDBClusterParameterGroupInput + | _models.ResetDBClusterParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetDBClusterParameterGroupOutput: ... + + @_overload async def reset_db_cluster_parameter_group( self, - input: ResetDBClusterParameterGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetDBClusterParameterGroupInputDict], ) -> ResetDBClusterParameterGroupOutput: """ Modifies the parameters of a DB cluster parameter group to the default @@ -4809,8 +7670,6 @@ async def reset_db_cluster_parameter_group( in the *Amazon RDS User Guide.* Args: - input: - An instance of `ResetDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4820,12 +7679,34 @@ async def reset_db_cluster_parameter_group( Returns: An instance of `ResetDBClusterParameterGroupOutput`. """ + + async def reset_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetDBClusterParameterGroupOutput: return await self._invoke( - input, _models.RESET_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.RESET_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.RESET_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload async def reset_db_parameter_group( - self, input: ResetDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.ResetDBParameterGroupInput + | _models.ResetDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetDBParameterGroupOutput: ... + + @_overload + async def reset_db_parameter_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetDBParameterGroupInputDict], ) -> ResetDBParameterGroupOutput: """ Modifies the parameters of a DB parameter group to the engine/system @@ -4838,8 +7719,6 @@ async def reset_db_parameter_group( `RebootDBInstance` request. Args: - input: - An instance of `ResetDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4849,10 +7728,34 @@ async def reset_db_parameter_group( Returns: An instance of `ResetDBParameterGroupOutput`. """ - return await self._invoke(input, _models.RESET_DB_PARAMETER_GROUP, [], plugins) + async def reset_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetDBParameterGroupOutput: + return await self._invoke( + self._select_input(_models.RESET_DB_PARAMETER_GROUP, args, kwargs), + _models.RESET_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + async def restore_db_cluster_from_s3( + self, + request: _models.RestoreDBClusterFromS3Input + | _models.RestoreDBClusterFromS3InputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBClusterFromS3Output: ... + + @_overload async def restore_db_cluster_from_s3( - self, input: RestoreDBClusterFromS3Input, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBClusterFromS3InputDict], ) -> RestoreDBClusterFromS3Output: """ Creates an Amazon Aurora DB cluster from MySQL data stored in an Amazon @@ -4883,8 +7786,6 @@ async def restore_db_cluster_from_s3( Aurora DB cluster when you restore it from Amazon S3. Args: - input: - An instance of `RestoreDBClusterFromS3Input`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4894,14 +7795,34 @@ async def restore_db_cluster_from_s3( Returns: An instance of `RestoreDBClusterFromS3Output`. """ + + async def restore_db_cluster_from_s3( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBClusterFromS3Output: return await self._invoke( - input, _models.RESTORE_DB_CLUSTER_FROM_S3, [], plugins + self._select_input(_models.RESTORE_DB_CLUSTER_FROM_S3, args, kwargs), + _models.RESTORE_DB_CLUSTER_FROM_S3, + [], + plugins, ) + @_overload + async def restore_db_cluster_from_snapshot( + self, + request: _models.RestoreDBClusterFromSnapshotInput + | _models.RestoreDBClusterFromSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBClusterFromSnapshotOutput: ... + + @_overload async def restore_db_cluster_from_snapshot( self, - input: RestoreDBClusterFromSnapshotInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBClusterFromSnapshotInputDict], ) -> RestoreDBClusterFromSnapshotOutput: """ Creates a new DB cluster from a DB snapshot or DB cluster snapshot. @@ -4942,8 +7863,6 @@ async def restore_db_cluster_from_snapshot( in the *Amazon RDS User Guide.* Args: - input: - An instance of `RestoreDBClusterFromSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4953,14 +7872,34 @@ async def restore_db_cluster_from_snapshot( Returns: An instance of `RestoreDBClusterFromSnapshotOutput`. """ + + async def restore_db_cluster_from_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBClusterFromSnapshotOutput: return await self._invoke( - input, _models.RESTORE_DB_CLUSTER_FROM_SNAPSHOT, [], plugins + self._select_input(_models.RESTORE_DB_CLUSTER_FROM_SNAPSHOT, args, kwargs), + _models.RESTORE_DB_CLUSTER_FROM_SNAPSHOT, + [], + plugins, ) + @_overload + async def restore_db_cluster_to_point_in_time( + self, + request: _models.RestoreDBClusterToPointInTimeInput + | _models.RestoreDBClusterToPointInTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBClusterToPointInTimeOutput: ... + + @_overload async def restore_db_cluster_to_point_in_time( self, - input: RestoreDBClusterToPointInTimeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBClusterToPointInTimeInputDict], ) -> RestoreDBClusterToPointInTimeOutput: """ Restores a DB cluster to an arbitrary point in time. Users can restore @@ -5005,8 +7944,6 @@ async def restore_db_cluster_to_point_in_time( in the *Amazon RDS User Guide.* Args: - input: - An instance of `RestoreDBClusterToPointInTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5016,14 +7953,36 @@ async def restore_db_cluster_to_point_in_time( Returns: An instance of `RestoreDBClusterToPointInTimeOutput`. """ + + async def restore_db_cluster_to_point_in_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBClusterToPointInTimeOutput: return await self._invoke( - input, _models.RESTORE_DB_CLUSTER_TO_POINT_IN_TIME, [], plugins + self._select_input( + _models.RESTORE_DB_CLUSTER_TO_POINT_IN_TIME, args, kwargs + ), + _models.RESTORE_DB_CLUSTER_TO_POINT_IN_TIME, + [], + plugins, ) + @_overload + async def restore_db_instance_from_db_snapshot( + self, + request: _models.RestoreDBInstanceFromDBSnapshotInput + | _models.RestoreDBInstanceFromDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBInstanceFromDBSnapshotOutput: ... + + @_overload async def restore_db_instance_from_db_snapshot( self, - input: RestoreDBInstanceFromDBSnapshotInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBInstanceFromDBSnapshotInputDict], ) -> RestoreDBInstanceFromDBSnapshotOutput: """ Creates a new DB instance from a DB snapshot. The target database is @@ -5061,8 +8020,6 @@ async def restore_db_instance_from_db_snapshot( Aurora, use `RestoreDBClusterFromSnapshot`. Args: - input: - An instance of `RestoreDBInstanceFromDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5072,12 +8029,36 @@ async def restore_db_instance_from_db_snapshot( Returns: An instance of `RestoreDBInstanceFromDBSnapshotOutput`. """ + + async def restore_db_instance_from_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBInstanceFromDBSnapshotOutput: return await self._invoke( - input, _models.RESTORE_DB_INSTANCE_FROM_DB_SNAPSHOT, [], plugins + self._select_input( + _models.RESTORE_DB_INSTANCE_FROM_DB_SNAPSHOT, args, kwargs + ), + _models.RESTORE_DB_INSTANCE_FROM_DB_SNAPSHOT, + [], + plugins, ) + @_overload + async def restore_db_instance_from_s3( + self, + request: _models.RestoreDBInstanceFromS3Input + | _models.RestoreDBInstanceFromS3InputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBInstanceFromS3Output: ... + + @_overload async def restore_db_instance_from_s3( - self, input: RestoreDBInstanceFromS3Input, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBInstanceFromS3InputDict], ) -> RestoreDBInstanceFromS3Output: """ Amazon Relational Database Service (Amazon RDS) supports importing MySQL @@ -5092,8 +8073,6 @@ async def restore_db_instance_from_s3( This operation doesn't apply to RDS Custom. Args: - input: - An instance of `RestoreDBInstanceFromS3Input`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5103,14 +8082,34 @@ async def restore_db_instance_from_s3( Returns: An instance of `RestoreDBInstanceFromS3Output`. """ + + async def restore_db_instance_from_s3( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBInstanceFromS3Output: return await self._invoke( - input, _models.RESTORE_DB_INSTANCE_FROM_S3, [], plugins + self._select_input(_models.RESTORE_DB_INSTANCE_FROM_S3, args, kwargs), + _models.RESTORE_DB_INSTANCE_FROM_S3, + [], + plugins, ) + @_overload + async def restore_db_instance_to_point_in_time( + self, + request: _models.RestoreDBInstanceToPointInTimeInput + | _models.RestoreDBInstanceToPointInTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBInstanceToPointInTimeOutput: ... + + @_overload async def restore_db_instance_to_point_in_time( self, - input: RestoreDBInstanceToPointInTimeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBInstanceToPointInTimeInputDict], ) -> RestoreDBInstanceToPointInTimeOutput: """ Restores a DB instance to an arbitrary point in time. You can restore to @@ -5131,8 +8130,6 @@ async def restore_db_instance_to_point_in_time( Aurora, use `RestoreDBClusterToPointInTime`. Args: - input: - An instance of `RestoreDBInstanceToPointInTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5142,14 +8139,36 @@ async def restore_db_instance_to_point_in_time( Returns: An instance of `RestoreDBInstanceToPointInTimeOutput`. """ + + async def restore_db_instance_to_point_in_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBInstanceToPointInTimeOutput: return await self._invoke( - input, _models.RESTORE_DB_INSTANCE_TO_POINT_IN_TIME, [], plugins + self._select_input( + _models.RESTORE_DB_INSTANCE_TO_POINT_IN_TIME, args, kwargs + ), + _models.RESTORE_DB_INSTANCE_TO_POINT_IN_TIME, + [], + plugins, ) + @_overload + async def revoke_db_security_group_ingress( + self, + request: _models.RevokeDBSecurityGroupIngressInput + | _models.RevokeDBSecurityGroupIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeDBSecurityGroupIngressOutput: ... + + @_overload async def revoke_db_security_group_ingress( self, - input: RevokeDBSecurityGroupIngressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeDBSecurityGroupIngressInputDict], ) -> RevokeDBSecurityGroupIngressOutput: """ Revokes ingress from a DBSecurityGroup for previously authorized IP @@ -5171,8 +8190,6 @@ async def revoke_db_security_group_ingress( in the *Amazon RDS User Guide*. Args: - input: - An instance of `RevokeDBSecurityGroupIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5182,12 +8199,34 @@ async def revoke_db_security_group_ingress( Returns: An instance of `RevokeDBSecurityGroupIngressOutput`. """ + + async def revoke_db_security_group_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeDBSecurityGroupIngressOutput: return await self._invoke( - input, _models.REVOKE_DB_SECURITY_GROUP_INGRESS, [], plugins + self._select_input(_models.REVOKE_DB_SECURITY_GROUP_INGRESS, args, kwargs), + _models.REVOKE_DB_SECURITY_GROUP_INGRESS, + [], + plugins, ) + @_overload async def start_activity_stream( - self, input: StartActivityStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.StartActivityStreamInput + | _models.StartActivityStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartActivityStreamOutput: ... + + @_overload + async def start_activity_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartActivityStreamInputDict], ) -> StartActivityStreamOutput: """ Starts a database activity stream to monitor activity on the database. @@ -5200,8 +8239,6 @@ async def start_activity_stream( in the *Amazon RDS User Guide*. Args: - input: - An instance of `StartActivityStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5211,10 +8248,33 @@ async def start_activity_stream( Returns: An instance of `StartActivityStreamOutput`. """ - return await self._invoke(input, _models.START_ACTIVITY_STREAM, [], plugins) + async def start_activity_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartActivityStreamOutput: + return await self._invoke( + self._select_input(_models.START_ACTIVITY_STREAM, args, kwargs), + _models.START_ACTIVITY_STREAM, + [], + plugins, + ) + + @_overload + async def start_db_cluster( + self, + request: _models.StartDBClusterInput | _models.StartDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDBClusterOutput: ... + + @_overload async def start_db_cluster( - self, input: StartDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDBClusterInputDict], ) -> StartDBClusterOutput: """ Starts an Amazon Aurora DB cluster that was stopped using the Amazon Web @@ -5229,8 +8289,6 @@ async def start_db_cluster( This operation only applies to Aurora DB clusters. Args: - input: - An instance of `StartDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5240,10 +8298,33 @@ async def start_db_cluster( Returns: An instance of `StartDBClusterOutput`. """ - return await self._invoke(input, _models.START_DB_CLUSTER, [], plugins) + async def start_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDBClusterOutput: + return await self._invoke( + self._select_input(_models.START_DB_CLUSTER, args, kwargs), + _models.START_DB_CLUSTER, + [], + plugins, + ) + + @_overload + async def start_db_instance( + self, + request: _models.StartDBInstanceInput | _models.StartDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDBInstanceOutput: ... + + @_overload async def start_db_instance( - self, input: StartDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDBInstanceInputDict], ) -> StartDBInstanceOutput: """ Starts an Amazon RDS DB instance that was stopped using the Amazon Web @@ -5260,8 +8341,6 @@ async def start_db_instance( PostgreSQL. For Aurora DB clusters, use `StartDBCluster` instead. Args: - input: - An instance of `StartDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5271,12 +8350,34 @@ async def start_db_instance( Returns: An instance of `StartDBInstanceOutput`. """ - return await self._invoke(input, _models.START_DB_INSTANCE, [], plugins) + async def start_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDBInstanceOutput: + return await self._invoke( + self._select_input(_models.START_DB_INSTANCE, args, kwargs), + _models.START_DB_INSTANCE, + [], + plugins, + ) + + @_overload + async def start_db_instance_automated_backups_replication( + self, + request: _models.StartDBInstanceAutomatedBackupsReplicationInput + | _models.StartDBInstanceAutomatedBackupsReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDBInstanceAutomatedBackupsReplicationOutput: ... + + @_overload async def start_db_instance_automated_backups_replication( self, - input: StartDBInstanceAutomatedBackupsReplicationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDBInstanceAutomatedBackupsReplicationInputDict], ) -> StartDBInstanceAutomatedBackupsReplicationOutput: """ Enables replication of automated backups to a different Amazon Web @@ -5290,8 +8391,6 @@ async def start_db_instance_automated_backups_replication( in the *Amazon RDS User Guide.* Args: - input: - An instance of `StartDBInstanceAutomatedBackupsReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5301,12 +8400,35 @@ async def start_db_instance_automated_backups_replication( Returns: An instance of `StartDBInstanceAutomatedBackupsReplicationOutput`. """ + + async def start_db_instance_automated_backups_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDBInstanceAutomatedBackupsReplicationOutput: return await self._invoke( - input, _models.START_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, [], plugins + self._select_input( + _models.START_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, args, kwargs + ), + _models.START_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, + [], + plugins, ) + @_overload async def start_export_task( - self, input: StartExportTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.StartExportTaskInput | _models.StartExportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartExportTaskOutput: ... + + @_overload + async def start_export_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartExportTaskInputDict], ) -> StartExportTaskOutput: """ Starts an export of DB snapshot or DB cluster data to Amazon S3. The @@ -5331,8 +8453,6 @@ async def start_export_task( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `StartExportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5342,10 +8462,33 @@ async def start_export_task( Returns: An instance of `StartExportTaskOutput`. """ - return await self._invoke(input, _models.START_EXPORT_TASK, [], plugins) + async def start_export_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartExportTaskOutput: + return await self._invoke( + self._select_input(_models.START_EXPORT_TASK, args, kwargs), + _models.START_EXPORT_TASK, + [], + plugins, + ) + + @_overload + async def stop_activity_stream( + self, + request: _models.StopActivityStreamInput | _models.StopActivityStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopActivityStreamOutput: ... + + @_overload async def stop_activity_stream( - self, input: StopActivityStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopActivityStreamInputDict], ) -> StopActivityStreamOutput: """ Stops a database activity stream that was started using the Amazon Web @@ -5361,8 +8504,6 @@ async def stop_activity_stream( in the *Amazon RDS User Guide*. Args: - input: - An instance of `StopActivityStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5372,10 +8513,33 @@ async def stop_activity_stream( Returns: An instance of `StopActivityStreamOutput`. """ - return await self._invoke(input, _models.STOP_ACTIVITY_STREAM, [], plugins) + async def stop_activity_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopActivityStreamOutput: + return await self._invoke( + self._select_input(_models.STOP_ACTIVITY_STREAM, args, kwargs), + _models.STOP_ACTIVITY_STREAM, + [], + plugins, + ) + + @_overload + async def stop_db_cluster( + self, + request: _models.StopDBClusterInput | _models.StopDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDBClusterOutput: ... + + @_overload async def stop_db_cluster( - self, input: StopDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDBClusterInputDict], ) -> StopDBClusterOutput: """ Stops an Amazon Aurora DB cluster. When you stop a DB cluster, Aurora @@ -5391,8 +8555,6 @@ async def stop_db_cluster( This operation only applies to Aurora DB clusters. Args: - input: - An instance of `StopDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5402,10 +8564,33 @@ async def stop_db_cluster( Returns: An instance of `StopDBClusterOutput`. """ - return await self._invoke(input, _models.STOP_DB_CLUSTER, [], plugins) + async def stop_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDBClusterOutput: + return await self._invoke( + self._select_input(_models.STOP_DB_CLUSTER, args, kwargs), + _models.STOP_DB_CLUSTER, + [], + plugins, + ) + + @_overload + async def stop_db_instance( + self, + request: _models.StopDBInstanceInput | _models.StopDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDBInstanceOutput: ... + + @_overload async def stop_db_instance( - self, input: StopDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDBInstanceInputDict], ) -> StopDBInstanceOutput: """ Stops an Amazon RDS DB instance temporarily. When you stop a DB @@ -5423,8 +8608,6 @@ async def stop_db_instance( PostgreSQL. For Aurora clusters, use `StopDBCluster` instead. Args: - input: - An instance of `StopDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5434,12 +8617,34 @@ async def stop_db_instance( Returns: An instance of `StopDBInstanceOutput`. """ - return await self._invoke(input, _models.STOP_DB_INSTANCE, [], plugins) + async def stop_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDBInstanceOutput: + return await self._invoke( + self._select_input(_models.STOP_DB_INSTANCE, args, kwargs), + _models.STOP_DB_INSTANCE, + [], + plugins, + ) + + @_overload + async def stop_db_instance_automated_backups_replication( + self, + request: _models.StopDBInstanceAutomatedBackupsReplicationInput + | _models.StopDBInstanceAutomatedBackupsReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDBInstanceAutomatedBackupsReplicationOutput: ... + + @_overload async def stop_db_instance_automated_backups_replication( self, - input: StopDBInstanceAutomatedBackupsReplicationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDBInstanceAutomatedBackupsReplicationInputDict], ) -> StopDBInstanceAutomatedBackupsReplicationOutput: """ Stops automated backup replication for a DB instance. @@ -5453,8 +8658,6 @@ async def stop_db_instance_automated_backups_replication( in the *Amazon RDS User Guide.* Args: - input: - An instance of `StopDBInstanceAutomatedBackupsReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5464,14 +8667,36 @@ async def stop_db_instance_automated_backups_replication( Returns: An instance of `StopDBInstanceAutomatedBackupsReplicationOutput`. """ + + async def stop_db_instance_automated_backups_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDBInstanceAutomatedBackupsReplicationOutput: return await self._invoke( - input, _models.STOP_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, [], plugins + self._select_input( + _models.STOP_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, args, kwargs + ), + _models.STOP_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, + [], + plugins, ) + @_overload + async def switchover_blue_green_deployment( + self, + request: _models.SwitchoverBlueGreenDeploymentInput + | _models.SwitchoverBlueGreenDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SwitchoverBlueGreenDeploymentOutput: ... + + @_overload async def switchover_blue_green_deployment( self, - input: SwitchoverBlueGreenDeploymentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SwitchoverBlueGreenDeploymentInputDict], ) -> SwitchoverBlueGreenDeploymentOutput: """ Switches over a blue/green deployment. @@ -5489,8 +8714,6 @@ async def switchover_blue_green_deployment( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `SwitchoverBlueGreenDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5500,12 +8723,34 @@ async def switchover_blue_green_deployment( Returns: An instance of `SwitchoverBlueGreenDeploymentOutput`. """ + + async def switchover_blue_green_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SwitchoverBlueGreenDeploymentOutput: return await self._invoke( - input, _models.SWITCHOVER_BLUE_GREEN_DEPLOYMENT, [], plugins + self._select_input(_models.SWITCHOVER_BLUE_GREEN_DEPLOYMENT, args, kwargs), + _models.SWITCHOVER_BLUE_GREEN_DEPLOYMENT, + [], + plugins, ) + @_overload + async def switchover_global_cluster( + self, + request: _models.SwitchoverGlobalClusterInput + | _models.SwitchoverGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SwitchoverGlobalClusterOutput: ... + + @_overload async def switchover_global_cluster( - self, input: SwitchoverGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SwitchoverGlobalClusterInputDict], ) -> SwitchoverGlobalClusterOutput: """ Switches over the specified secondary DB cluster to be the new primary @@ -5531,8 +8776,6 @@ async def switchover_global_cluster( after a global database failover. Args: - input: - An instance of `SwitchoverGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5542,10 +8785,34 @@ async def switchover_global_cluster( Returns: An instance of `SwitchoverGlobalClusterOutput`. """ - return await self._invoke(input, _models.SWITCHOVER_GLOBAL_CLUSTER, [], plugins) + async def switchover_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SwitchoverGlobalClusterOutput: + return await self._invoke( + self._select_input(_models.SWITCHOVER_GLOBAL_CLUSTER, args, kwargs), + _models.SWITCHOVER_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload + async def switchover_read_replica( + self, + request: _models.SwitchoverReadReplicaInput + | _models.SwitchoverReadReplicaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SwitchoverReadReplicaOutput: ... + + @_overload async def switchover_read_replica( - self, input: SwitchoverReadReplicaInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SwitchoverReadReplicaInputDict], ) -> SwitchoverReadReplicaOutput: """ Switches over an Oracle standby database in an Oracle Data Guard @@ -5553,8 +8820,6 @@ async def switchover_read_replica( the Region that hosts the current standby database. Args: - input: - An instance of `SwitchoverReadReplicaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5564,7 +8829,16 @@ async def switchover_read_replica( Returns: An instance of `SwitchoverReadReplicaOutput`. """ - return await self._invoke(input, _models.SWITCHOVER_READ_REPLICA, [], plugins) + + async def switchover_read_replica( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SwitchoverReadReplicaOutput: + return await self._invoke( + self._select_input(_models.SWITCHOVER_READ_REPLICA, args, kwargs), + _models.SWITCHOVER_READ_REPLICA, + [], + plugins, + ) async def _new_config(self) -> AsyncRDSConfig: return await AsyncRDSConfig.resolve() diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/client.py b/clients/aws-sdk-rds/src/aws_sdk_rds/client.py index db6f16060..9dea23674 100644 --- a/clients/aws-sdk-rds/src/aws_sdk_rds/client.py +++ b/clients/aws-sdk-rds/src/aws_sdk_rds/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,341 +20,173 @@ if TYPE_CHECKING: from .models import ( - AddRoleToDBClusterInput, AddRoleToDBClusterOutput, - AddRoleToDBInstanceInput, AddRoleToDBInstanceOutput, - AddSourceIdentifierToSubscriptionInput, AddSourceIdentifierToSubscriptionOutput, - AddTagsToResourceInput, AddTagsToResourceOutput, - ApplyPendingMaintenanceActionInput, ApplyPendingMaintenanceActionOutput, - AuthorizeDBSecurityGroupIngressInput, AuthorizeDBSecurityGroupIngressOutput, - BacktrackDBClusterInput, BacktrackDBClusterOutput, - CancelDBCapacityReservationInput, CancelDBCapacityReservationOutput, - CancelExportTaskInput, CancelExportTaskOutput, - CopyDBClusterParameterGroupInput, CopyDBClusterParameterGroupOutput, - CopyDBClusterSnapshotInput, CopyDBClusterSnapshotOutput, - CopyDBParameterGroupInput, CopyDBParameterGroupOutput, - CopyDBSnapshotInput, CopyDBSnapshotOutput, - CopyOptionGroupInput, CopyOptionGroupOutput, - CreateBlueGreenDeploymentInput, CreateBlueGreenDeploymentOutput, - CreateCustomDBEngineVersionInput, CreateCustomDBEngineVersionOutput, - CreateDBCapacityReservationInput, CreateDBCapacityReservationOutput, - CreateDBClusterEndpointInput, CreateDBClusterEndpointOutput, - CreateDBClusterInput, CreateDBClusterOutput, - CreateDBClusterParameterGroupInput, CreateDBClusterParameterGroupOutput, - CreateDBClusterSnapshotInput, CreateDBClusterSnapshotOutput, - CreateDBInstanceInput, CreateDBInstanceOutput, - CreateDBInstanceReadReplicaInput, CreateDBInstanceReadReplicaOutput, - CreateDBParameterGroupInput, CreateDBParameterGroupOutput, - CreateDBProxyEndpointInput, CreateDBProxyEndpointOutput, - CreateDBProxyInput, CreateDBProxyOutput, - CreateDBSecurityGroupInput, CreateDBSecurityGroupOutput, - CreateDBShardGroupInput, CreateDBShardGroupOutput, - CreateDBSnapshotInput, CreateDBSnapshotOutput, - CreateDBSubnetGroupInput, CreateDBSubnetGroupOutput, - CreateEventSubscriptionInput, CreateEventSubscriptionOutput, - CreateGlobalClusterInput, CreateGlobalClusterOutput, - CreateIntegrationInput, CreateIntegrationOutput, - CreateOptionGroupInput, CreateOptionGroupOutput, - CreateTenantDatabaseInput, CreateTenantDatabaseOutput, - DeleteBlueGreenDeploymentInput, DeleteBlueGreenDeploymentOutput, - DeleteCustomDBEngineVersionInput, DeleteCustomDBEngineVersionOutput, - DeleteDBClusterAutomatedBackupInput, DeleteDBClusterAutomatedBackupOutput, - DeleteDBClusterEndpointInput, DeleteDBClusterEndpointOutput, - DeleteDBClusterInput, DeleteDBClusterOutput, - DeleteDBClusterParameterGroupInput, DeleteDBClusterParameterGroupOutput, - DeleteDBClusterSnapshotInput, DeleteDBClusterSnapshotOutput, - DeleteDBInstanceAutomatedBackupInput, DeleteDBInstanceAutomatedBackupOutput, - DeleteDBInstanceInput, DeleteDBInstanceOutput, - DeleteDBParameterGroupInput, DeleteDBParameterGroupOutput, - DeleteDBProxyEndpointInput, DeleteDBProxyEndpointOutput, - DeleteDBProxyInput, DeleteDBProxyOutput, - DeleteDBSecurityGroupInput, DeleteDBSecurityGroupOutput, - DeleteDBShardGroupInput, DeleteDBShardGroupOutput, - DeleteDBSnapshotInput, DeleteDBSnapshotOutput, - DeleteDBSubnetGroupInput, DeleteDBSubnetGroupOutput, - DeleteEventSubscriptionInput, DeleteEventSubscriptionOutput, - DeleteGlobalClusterInput, DeleteGlobalClusterOutput, - DeleteIntegrationInput, DeleteIntegrationOutput, - DeleteOptionGroupInput, DeleteOptionGroupOutput, - DeleteTenantDatabaseInput, DeleteTenantDatabaseOutput, - DeregisterDBProxyTargetsInput, DeregisterDBProxyTargetsOutput, - DescribeAccountAttributesInput, DescribeAccountAttributesOutput, - DescribeBlueGreenDeploymentsInput, DescribeBlueGreenDeploymentsOutput, - DescribeCertificatesInput, DescribeCertificatesOutput, - DescribeDBCapacityReservationsInput, DescribeDBCapacityReservationsOutput, - DescribeDBClusterAutomatedBackupsInput, DescribeDBClusterAutomatedBackupsOutput, - DescribeDBClusterBacktracksInput, DescribeDBClusterBacktracksOutput, - DescribeDBClusterEndpointsInput, DescribeDBClusterEndpointsOutput, - DescribeDBClusterParameterGroupsInput, DescribeDBClusterParameterGroupsOutput, - DescribeDBClusterParametersInput, DescribeDBClusterParametersOutput, - DescribeDBClusterSnapshotAttributesInput, DescribeDBClusterSnapshotAttributesOutput, - DescribeDBClusterSnapshotsInput, DescribeDBClusterSnapshotsOutput, - DescribeDBClustersInput, DescribeDBClustersOutput, - DescribeDBEngineVersionsInput, DescribeDBEngineVersionsOutput, - DescribeDBInstanceAutomatedBackupsInput, DescribeDBInstanceAutomatedBackupsOutput, - DescribeDBInstancesInput, DescribeDBInstancesOutput, - DescribeDBLogFilesInput, DescribeDBLogFilesOutput, - DescribeDBMajorEngineVersionsInput, DescribeDBMajorEngineVersionsOutput, - DescribeDBParameterGroupsInput, DescribeDBParameterGroupsOutput, - DescribeDBParametersInput, DescribeDBParametersOutput, - DescribeDBProxiesInput, DescribeDBProxiesOutput, - DescribeDBProxyEndpointsInput, DescribeDBProxyEndpointsOutput, - DescribeDBProxyTargetGroupsInput, DescribeDBProxyTargetGroupsOutput, - DescribeDBProxyTargetsInput, DescribeDBProxyTargetsOutput, - DescribeDBRecommendationsInput, DescribeDBRecommendationsOutput, - DescribeDBSecurityGroupsInput, DescribeDBSecurityGroupsOutput, - DescribeDBShardGroupsInput, DescribeDBShardGroupsOutput, - DescribeDBSnapshotAttributesInput, DescribeDBSnapshotAttributesOutput, - DescribeDBSnapshotTenantDatabasesInput, DescribeDBSnapshotTenantDatabasesOutput, - DescribeDBSnapshotsInput, DescribeDBSnapshotsOutput, - DescribeDBSubnetGroupsInput, DescribeDBSubnetGroupsOutput, - DescribeEngineDefaultClusterParametersInput, DescribeEngineDefaultClusterParametersOutput, - DescribeEngineDefaultParametersInput, DescribeEngineDefaultParametersOutput, - DescribeEventCategoriesInput, DescribeEventCategoriesOutput, - DescribeEventSubscriptionsInput, DescribeEventSubscriptionsOutput, - DescribeEventsInput, DescribeEventsOutput, - DescribeExportTasksInput, DescribeExportTasksOutput, - DescribeGlobalClustersInput, DescribeGlobalClustersOutput, - DescribeIntegrationsInput, DescribeIntegrationsOutput, - DescribeOptionGroupOptionsInput, DescribeOptionGroupOptionsOutput, - DescribeOptionGroupsInput, DescribeOptionGroupsOutput, - DescribeOrderableDBInstanceOptionsInput, DescribeOrderableDBInstanceOptionsOutput, - DescribePendingMaintenanceActionsInput, DescribePendingMaintenanceActionsOutput, - DescribeReservedDBInstancesInput, - DescribeReservedDBInstancesOfferingsInput, DescribeReservedDBInstancesOfferingsOutput, DescribeReservedDBInstancesOutput, - DescribeServerlessV2PlatformVersionsInput, DescribeServerlessV2PlatformVersionsOutput, - DescribeSourceRegionsInput, DescribeSourceRegionsOutput, - DescribeTenantDatabasesInput, DescribeTenantDatabasesOutput, - DescribeValidDBInstanceModificationsInput, DescribeValidDBInstanceModificationsOutput, - DisableHttpEndpointInput, DisableHttpEndpointOutput, - DownloadDBLogFilePortionInput, DownloadDBLogFilePortionOutput, - EnableHttpEndpointInput, EnableHttpEndpointOutput, - FailoverDBClusterInput, FailoverDBClusterOutput, - FailoverGlobalClusterInput, FailoverGlobalClusterOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ModifyActivityStreamInput, ModifyActivityStreamOutput, - ModifyCertificatesInput, ModifyCertificatesOutput, - ModifyCurrentDBClusterCapacityInput, ModifyCurrentDBClusterCapacityOutput, - ModifyCustomDBEngineVersionInput, ModifyCustomDBEngineVersionOutput, - ModifyDBCapacityReservationInput, ModifyDBCapacityReservationOutput, - ModifyDBClusterEndpointInput, ModifyDBClusterEndpointOutput, - ModifyDBClusterInput, ModifyDBClusterOutput, - ModifyDBClusterParameterGroupInput, ModifyDBClusterParameterGroupOutput, - ModifyDBClusterSnapshotAttributeInput, ModifyDBClusterSnapshotAttributeOutput, - ModifyDBInstanceInput, ModifyDBInstanceOutput, - ModifyDBParameterGroupInput, ModifyDBParameterGroupOutput, - ModifyDBProxyEndpointInput, ModifyDBProxyEndpointOutput, - ModifyDBProxyInput, ModifyDBProxyOutput, - ModifyDBProxyTargetGroupInput, ModifyDBProxyTargetGroupOutput, - ModifyDBRecommendationInput, ModifyDBRecommendationOutput, - ModifyDBShardGroupInput, ModifyDBShardGroupOutput, - ModifyDBSnapshotAttributeInput, ModifyDBSnapshotAttributeOutput, - ModifyDBSnapshotInput, ModifyDBSnapshotOutput, - ModifyDBSubnetGroupInput, ModifyDBSubnetGroupOutput, - ModifyEventSubscriptionInput, ModifyEventSubscriptionOutput, - ModifyGlobalClusterInput, ModifyGlobalClusterOutput, - ModifyIntegrationInput, ModifyIntegrationOutput, - ModifyOptionGroupInput, ModifyOptionGroupOutput, - ModifyTenantDatabaseInput, ModifyTenantDatabaseOutput, - PromoteReadReplicaDBClusterInput, PromoteReadReplicaDBClusterOutput, - PromoteReadReplicaInput, PromoteReadReplicaOutput, - PurchaseReservedDBInstancesOfferingInput, PurchaseReservedDBInstancesOfferingOutput, - RebootDBClusterInput, RebootDBClusterOutput, - RebootDBInstanceInput, RebootDBInstanceOutput, - RebootDBShardGroupInput, RebootDBShardGroupOutput, - RegisterDBProxyTargetsInput, RegisterDBProxyTargetsOutput, - RemoveFromGlobalClusterInput, RemoveFromGlobalClusterOutput, - RemoveRoleFromDBClusterInput, RemoveRoleFromDBClusterOutput, - RemoveRoleFromDBInstanceInput, RemoveRoleFromDBInstanceOutput, - RemoveSourceIdentifierFromSubscriptionInput, RemoveSourceIdentifierFromSubscriptionOutput, - RemoveTagsFromResourceInput, RemoveTagsFromResourceOutput, - ResetDBClusterParameterGroupInput, ResetDBClusterParameterGroupOutput, - ResetDBParameterGroupInput, ResetDBParameterGroupOutput, - RestoreDBClusterFromS3Input, RestoreDBClusterFromS3Output, - RestoreDBClusterFromSnapshotInput, RestoreDBClusterFromSnapshotOutput, - RestoreDBClusterToPointInTimeInput, RestoreDBClusterToPointInTimeOutput, - RestoreDBInstanceFromDBSnapshotInput, RestoreDBInstanceFromDBSnapshotOutput, - RestoreDBInstanceFromS3Input, RestoreDBInstanceFromS3Output, - RestoreDBInstanceToPointInTimeInput, RestoreDBInstanceToPointInTimeOutput, - RevokeDBSecurityGroupIngressInput, RevokeDBSecurityGroupIngressOutput, - StartActivityStreamInput, StartActivityStreamOutput, - StartDBClusterInput, StartDBClusterOutput, - StartDBInstanceAutomatedBackupsReplicationInput, StartDBInstanceAutomatedBackupsReplicationOutput, - StartDBInstanceInput, StartDBInstanceOutput, - StartExportTaskInput, StartExportTaskOutput, - StopActivityStreamInput, StopActivityStreamOutput, - StopDBClusterInput, StopDBClusterOutput, - StopDBInstanceAutomatedBackupsReplicationInput, StopDBInstanceAutomatedBackupsReplicationOutput, - StopDBInstanceInput, StopDBInstanceOutput, - SwitchoverBlueGreenDeploymentInput, SwitchoverBlueGreenDeploymentOutput, - SwitchoverGlobalClusterInput, SwitchoverGlobalClusterOutput, - SwitchoverReadReplicaInput, SwitchoverReadReplicaOutput, ) @@ -416,18 +248,30 @@ class RDSClient(Client[RDSConfig]): API](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using_the_Query_API.html). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def add_role_to_db_cluster( - self, input: AddRoleToDBClusterInput, plugins: list[Plugin] | None = None + self, + request: _models.AddRoleToDBClusterInput | _models.AddRoleToDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddRoleToDBClusterOutput: ... + + @_overload + def add_role_to_db_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddRoleToDBClusterInputDict], ) -> AddRoleToDBClusterOutput: """ Associates an Identity and Access Management (IAM) role with a DB cluster. Args: - input: - An instance of `AddRoleToDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -437,10 +281,34 @@ def add_role_to_db_cluster( Returns: An instance of `AddRoleToDBClusterOutput`. """ - return self._invoke(input, _models.ADD_ROLE_TO_DB_CLUSTER, [], plugins) + def add_role_to_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddRoleToDBClusterOutput: + return self._invoke( + self._select_input(_models.ADD_ROLE_TO_DB_CLUSTER, args, kwargs), + _models.ADD_ROLE_TO_DB_CLUSTER, + [], + plugins, + ) + + @_overload + def add_role_to_db_instance( + self, + request: _models.AddRoleToDBInstanceInput + | _models.AddRoleToDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddRoleToDBInstanceOutput: ... + + @_overload def add_role_to_db_instance( - self, input: AddRoleToDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddRoleToDBInstanceInputDict], ) -> AddRoleToDBInstanceOutput: """ Associates an Amazon Web Services Identity and Access Management (IAM) @@ -453,8 +321,6 @@ def add_role_to_db_instance( This command doesn't apply to RDS Custom. Args: - input: - An instance of `AddRoleToDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -464,20 +330,40 @@ def add_role_to_db_instance( Returns: An instance of `AddRoleToDBInstanceOutput`. """ - return self._invoke(input, _models.ADD_ROLE_TO_DB_INSTANCE, [], plugins) + def add_role_to_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddRoleToDBInstanceOutput: + return self._invoke( + self._select_input(_models.ADD_ROLE_TO_DB_INSTANCE, args, kwargs), + _models.ADD_ROLE_TO_DB_INSTANCE, + [], + plugins, + ) + + @_overload + def add_source_identifier_to_subscription( + self, + request: _models.AddSourceIdentifierToSubscriptionInput + | _models.AddSourceIdentifierToSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddSourceIdentifierToSubscriptionOutput: ... + + @_overload def add_source_identifier_to_subscription( self, - input: AddSourceIdentifierToSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddSourceIdentifierToSubscriptionInputDict], ) -> AddSourceIdentifierToSubscriptionOutput: """ Adds a source identifier to an existing RDS event notification subscription. Args: - input: - An instance of `AddSourceIdentifierToSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -487,12 +373,35 @@ def add_source_identifier_to_subscription( Returns: An instance of `AddSourceIdentifierToSubscriptionOutput`. """ + + def add_source_identifier_to_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddSourceIdentifierToSubscriptionOutput: return self._invoke( - input, _models.ADD_SOURCE_IDENTIFIER_TO_SUBSCRIPTION, [], plugins + self._select_input( + _models.ADD_SOURCE_IDENTIFIER_TO_SUBSCRIPTION, args, kwargs + ), + _models.ADD_SOURCE_IDENTIFIER_TO_SUBSCRIPTION, + [], + plugins, ) + @_overload + def add_tags_to_resource( + self, + request: _models.AddTagsToResourceInput | _models.AddTagsToResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddTagsToResourceOutput: ... + + @_overload def add_tags_to_resource( - self, input: AddTagsToResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddTagsToResourceInputDict], ) -> AddTagsToResourceOutput: """ Adds metadata tags to an Amazon RDS resource. These tags can also be @@ -507,8 +416,6 @@ def add_tags_to_resource( Resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html). Args: - input: - An instance of `AddTagsToResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -518,20 +425,40 @@ def add_tags_to_resource( Returns: An instance of `AddTagsToResourceOutput`. """ - return self._invoke(input, _models.ADD_TAGS_TO_RESOURCE, [], plugins) + def add_tags_to_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddTagsToResourceOutput: + return self._invoke( + self._select_input(_models.ADD_TAGS_TO_RESOURCE, args, kwargs), + _models.ADD_TAGS_TO_RESOURCE, + [], + plugins, + ) + + @_overload def apply_pending_maintenance_action( self, - input: ApplyPendingMaintenanceActionInput, + request: _models.ApplyPendingMaintenanceActionInput + | _models.ApplyPendingMaintenanceActionInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ApplyPendingMaintenanceActionOutput: ... + + @_overload + def apply_pending_maintenance_action( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ApplyPendingMaintenanceActionInputDict], ) -> ApplyPendingMaintenanceActionOutput: """ Applies a pending maintenance action to a resource (for example, to a DB instance). Args: - input: - An instance of `ApplyPendingMaintenanceActionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -541,14 +468,34 @@ def apply_pending_maintenance_action( Returns: An instance of `ApplyPendingMaintenanceActionOutput`. """ + + def apply_pending_maintenance_action( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ApplyPendingMaintenanceActionOutput: return self._invoke( - input, _models.APPLY_PENDING_MAINTENANCE_ACTION, [], plugins + self._select_input(_models.APPLY_PENDING_MAINTENANCE_ACTION, args, kwargs), + _models.APPLY_PENDING_MAINTENANCE_ACTION, + [], + plugins, ) + @_overload + def authorize_db_security_group_ingress( + self, + request: _models.AuthorizeDBSecurityGroupIngressInput + | _models.AuthorizeDBSecurityGroupIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AuthorizeDBSecurityGroupIngressOutput: ... + + @_overload def authorize_db_security_group_ingress( self, - input: AuthorizeDBSecurityGroupIngressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AuthorizeDBSecurityGroupIngressInputDict], ) -> AuthorizeDBSecurityGroupIngressOutput: """ Enables ingress to a DBSecurityGroup using one of two forms of @@ -581,8 +528,6 @@ def authorize_db_security_group_ingress( in the *Amazon RDS User Guide*. Args: - input: - An instance of `AuthorizeDBSecurityGroupIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -592,12 +537,35 @@ def authorize_db_security_group_ingress( Returns: An instance of `AuthorizeDBSecurityGroupIngressOutput`. """ + + def authorize_db_security_group_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AuthorizeDBSecurityGroupIngressOutput: return self._invoke( - input, _models.AUTHORIZE_DB_SECURITY_GROUP_INGRESS, [], plugins + self._select_input( + _models.AUTHORIZE_DB_SECURITY_GROUP_INGRESS, args, kwargs + ), + _models.AUTHORIZE_DB_SECURITY_GROUP_INGRESS, + [], + plugins, ) + @_overload + def backtrack_db_cluster( + self, + request: _models.BacktrackDBClusterInput | _models.BacktrackDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BacktrackDBClusterOutput: ... + + @_overload def backtrack_db_cluster( - self, input: BacktrackDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BacktrackDBClusterInputDict], ) -> BacktrackDBClusterOutput: """ Backtracks a DB cluster to a specific time, without creating a new DB @@ -611,8 +579,6 @@ def backtrack_db_cluster( This action applies only to Aurora MySQL DB clusters. Args: - input: - An instance of `BacktrackDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -622,12 +588,34 @@ def backtrack_db_cluster( Returns: An instance of `BacktrackDBClusterOutput`. """ - return self._invoke(input, _models.BACKTRACK_DB_CLUSTER, [], plugins) + def backtrack_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BacktrackDBClusterOutput: + return self._invoke( + self._select_input(_models.BACKTRACK_DB_CLUSTER, args, kwargs), + _models.BACKTRACK_DB_CLUSTER, + [], + plugins, + ) + + @_overload + def cancel_db_capacity_reservation( + self, + request: _models.CancelDBCapacityReservationInput + | _models.CancelDBCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelDBCapacityReservationOutput: ... + + @_overload def cancel_db_capacity_reservation( self, - input: CancelDBCapacityReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelDBCapacityReservationInputDict], ) -> CancelDBCapacityReservationOutput: """ Cancels a DB capacity reservation. Amazon RDS changes the state of the @@ -653,8 +641,6 @@ def cancel_db_capacity_reservation( - The reservation must not be past its end date. Args: - input: - An instance of `CancelDBCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -664,10 +650,33 @@ def cancel_db_capacity_reservation( Returns: An instance of `CancelDBCapacityReservationOutput`. """ - return self._invoke(input, _models.CANCEL_DB_CAPACITY_RESERVATION, [], plugins) + def cancel_db_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelDBCapacityReservationOutput: + return self._invoke( + self._select_input(_models.CANCEL_DB_CAPACITY_RESERVATION, args, kwargs), + _models.CANCEL_DB_CAPACITY_RESERVATION, + [], + plugins, + ) + + @_overload + def cancel_export_task( + self, + request: _models.CancelExportTaskInput | _models.CancelExportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelExportTaskOutput: ... + + @_overload def cancel_export_task( - self, input: CancelExportTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelExportTaskInputDict], ) -> CancelExportTaskOutput: """ Cancels an export task in progress that is exporting a snapshot or @@ -675,8 +684,6 @@ def cancel_export_task( bucket isn't removed. Args: - input: - An instance of `CancelExportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -686,12 +693,34 @@ def cancel_export_task( Returns: An instance of `CancelExportTaskOutput`. """ - return self._invoke(input, _models.CANCEL_EXPORT_TASK, [], plugins) + def cancel_export_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelExportTaskOutput: + return self._invoke( + self._select_input(_models.CANCEL_EXPORT_TASK, args, kwargs), + _models.CANCEL_EXPORT_TASK, + [], + plugins, + ) + + @_overload + def copy_db_cluster_parameter_group( + self, + request: _models.CopyDBClusterParameterGroupInput + | _models.CopyDBClusterParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDBClusterParameterGroupOutput: ... + + @_overload def copy_db_cluster_parameter_group( self, - input: CopyDBClusterParameterGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDBClusterParameterGroupInputDict], ) -> CopyDBClusterParameterGroupOutput: """ Copies the specified DB cluster parameter group. @@ -703,8 +732,6 @@ def copy_db_cluster_parameter_group( family. Args: - input: - An instance of `CopyDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -714,10 +741,34 @@ def copy_db_cluster_parameter_group( Returns: An instance of `CopyDBClusterParameterGroupOutput`. """ - return self._invoke(input, _models.COPY_DB_CLUSTER_PARAMETER_GROUP, [], plugins) + def copy_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDBClusterParameterGroupOutput: + return self._invoke( + self._select_input(_models.COPY_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.COPY_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + def copy_db_cluster_snapshot( + self, + request: _models.CopyDBClusterSnapshotInput + | _models.CopyDBClusterSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDBClusterSnapshotOutput: ... + + @_overload def copy_db_cluster_snapshot( - self, input: CopyDBClusterSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDBClusterSnapshotInputDict], ) -> CopyDBClusterSnapshotOutput: """ Copies a snapshot of a DB cluster. @@ -765,8 +816,6 @@ def copy_db_cluster_snapshot( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CopyDBClusterSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -776,10 +825,34 @@ def copy_db_cluster_snapshot( Returns: An instance of `CopyDBClusterSnapshotOutput`. """ - return self._invoke(input, _models.COPY_DB_CLUSTER_SNAPSHOT, [], plugins) + def copy_db_cluster_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDBClusterSnapshotOutput: + return self._invoke( + self._select_input(_models.COPY_DB_CLUSTER_SNAPSHOT, args, kwargs), + _models.COPY_DB_CLUSTER_SNAPSHOT, + [], + plugins, + ) + + @_overload + def copy_db_parameter_group( + self, + request: _models.CopyDBParameterGroupInput + | _models.CopyDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDBParameterGroupOutput: ... + + @_overload def copy_db_parameter_group( - self, input: CopyDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDBParameterGroupInputDict], ) -> CopyDBParameterGroupOutput: """ Copies the specified DB parameter group. @@ -790,8 +863,6 @@ def copy_db_parameter_group( values for the specified DB parameter group family. Args: - input: - An instance of `CopyDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -801,10 +872,33 @@ def copy_db_parameter_group( Returns: An instance of `CopyDBParameterGroupOutput`. """ - return self._invoke(input, _models.COPY_DB_PARAMETER_GROUP, [], plugins) + def copy_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDBParameterGroupOutput: + return self._invoke( + self._select_input(_models.COPY_DB_PARAMETER_GROUP, args, kwargs), + _models.COPY_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + def copy_db_snapshot( + self, + request: _models.CopyDBSnapshotInput | _models.CopyDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyDBSnapshotOutput: ... + + @_overload def copy_db_snapshot( - self, input: CopyDBSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyDBSnapshotInputDict], ) -> CopyDBSnapshotOutput: """ Copies the specified DB snapshot. The source DB snapshot must be in the @@ -822,8 +916,6 @@ def copy_db_snapshot( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CopyDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -833,17 +925,38 @@ def copy_db_snapshot( Returns: An instance of `CopyDBSnapshotOutput`. """ - return self._invoke(input, _models.COPY_DB_SNAPSHOT, [], plugins) + def copy_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyDBSnapshotOutput: + return self._invoke( + self._select_input(_models.COPY_DB_SNAPSHOT, args, kwargs), + _models.COPY_DB_SNAPSHOT, + [], + plugins, + ) + + @_overload + def copy_option_group( + self, + request: _models.CopyOptionGroupInput | _models.CopyOptionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyOptionGroupOutput: ... + + @_overload def copy_option_group( - self, input: CopyOptionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyOptionGroupInputDict], ) -> CopyOptionGroupOutput: """ Copies the specified option group. Args: - input: - An instance of `CopyOptionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -853,10 +966,34 @@ def copy_option_group( Returns: An instance of `CopyOptionGroupOutput`. """ - return self._invoke(input, _models.COPY_OPTION_GROUP, [], plugins) + def copy_option_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyOptionGroupOutput: + return self._invoke( + self._select_input(_models.COPY_OPTION_GROUP, args, kwargs), + _models.COPY_OPTION_GROUP, + [], + plugins, + ) + + @_overload + def create_blue_green_deployment( + self, + request: _models.CreateBlueGreenDeploymentInput + | _models.CreateBlueGreenDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBlueGreenDeploymentOutput: ... + + @_overload def create_blue_green_deployment( - self, input: CreateBlueGreenDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBlueGreenDeploymentInputDict], ) -> CreateBlueGreenDeploymentOutput: """ Creates a blue/green deployment. @@ -884,8 +1021,6 @@ def create_blue_green_deployment( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `CreateBlueGreenDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -895,19 +1030,39 @@ def create_blue_green_deployment( Returns: An instance of `CreateBlueGreenDeploymentOutput`. """ - return self._invoke(input, _models.CREATE_BLUE_GREEN_DEPLOYMENT, [], plugins) + def create_blue_green_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBlueGreenDeploymentOutput: + return self._invoke( + self._select_input(_models.CREATE_BLUE_GREEN_DEPLOYMENT, args, kwargs), + _models.CREATE_BLUE_GREEN_DEPLOYMENT, + [], + plugins, + ) + + @_overload + def create_custom_db_engine_version( + self, + request: _models.CreateCustomDBEngineVersionInput + | _models.CreateCustomDBEngineVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateCustomDBEngineVersionOutput: ... + + @_overload def create_custom_db_engine_version( self, - input: CreateCustomDBEngineVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateCustomDBEngineVersionInputDict], ) -> CreateCustomDBEngineVersionOutput: """ Creates a custom DB engine version (CEV). Args: - input: - An instance of `CreateCustomDBEngineVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -917,12 +1072,34 @@ def create_custom_db_engine_version( Returns: An instance of `CreateCustomDBEngineVersionOutput`. """ - return self._invoke(input, _models.CREATE_CUSTOM_DB_ENGINE_VERSION, [], plugins) + def create_custom_db_engine_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateCustomDBEngineVersionOutput: + return self._invoke( + self._select_input(_models.CREATE_CUSTOM_DB_ENGINE_VERSION, args, kwargs), + _models.CREATE_CUSTOM_DB_ENGINE_VERSION, + [], + plugins, + ) + + @_overload + def create_db_capacity_reservation( + self, + request: _models.CreateDBCapacityReservationInput + | _models.CreateDBCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBCapacityReservationOutput: ... + + @_overload def create_db_capacity_reservation( self, - input: CreateDBCapacityReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBCapacityReservationInputDict], ) -> CreateDBCapacityReservationOutput: """ Creates a DB capacity reservation. A DB capacity reservation reserves @@ -981,8 +1158,6 @@ def create_db_capacity_reservation( the time that Amazon RDS schedules it until the commitment ends. Args: - input: - An instance of `CreateDBCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -992,10 +1167,33 @@ def create_db_capacity_reservation( Returns: An instance of `CreateDBCapacityReservationOutput`. """ - return self._invoke(input, _models.CREATE_DB_CAPACITY_RESERVATION, [], plugins) + def create_db_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBCapacityReservationOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_CAPACITY_RESERVATION, args, kwargs), + _models.CREATE_DB_CAPACITY_RESERVATION, + [], + plugins, + ) + + @_overload + def create_db_cluster( + self, + request: _models.CreateDBClusterInput | _models.CreateDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBClusterOutput: ... + + @_overload def create_db_cluster( - self, input: CreateDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBClusterInputDict], ) -> CreateDBClusterOutput: """ Creates a new Amazon Aurora DB cluster or Multi-AZ DB cluster. @@ -1034,8 +1232,6 @@ def create_db_cluster( and export, or Amazon Web Services Lambda for invoking functions. Args: - input: - An instance of `CreateDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1045,10 +1241,34 @@ def create_db_cluster( Returns: An instance of `CreateDBClusterOutput`. """ - return self._invoke(input, _models.CREATE_DB_CLUSTER, [], plugins) + def create_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBClusterOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_CLUSTER, args, kwargs), + _models.CREATE_DB_CLUSTER, + [], + plugins, + ) + + @_overload + def create_db_cluster_endpoint( + self, + request: _models.CreateDBClusterEndpointInput + | _models.CreateDBClusterEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBClusterEndpointOutput: ... + + @_overload def create_db_cluster_endpoint( - self, input: CreateDBClusterEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBClusterEndpointInputDict], ) -> CreateDBClusterEndpointOutput: """ Creates a new custom endpoint and associates it with an Amazon Aurora DB @@ -1058,8 +1278,6 @@ def create_db_cluster_endpoint( This action applies only to Aurora DB clusters. Args: - input: - An instance of `CreateDBClusterEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1069,12 +1287,34 @@ def create_db_cluster_endpoint( Returns: An instance of `CreateDBClusterEndpointOutput`. """ - return self._invoke(input, _models.CREATE_DB_CLUSTER_ENDPOINT, [], plugins) + def create_db_cluster_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBClusterEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_CLUSTER_ENDPOINT, args, kwargs), + _models.CREATE_DB_CLUSTER_ENDPOINT, + [], + plugins, + ) + + @_overload + def create_db_cluster_parameter_group( + self, + request: _models.CreateDBClusterParameterGroupInput + | _models.CreateDBClusterParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBClusterParameterGroupOutput: ... + + @_overload def create_db_cluster_parameter_group( self, - input: CreateDBClusterParameterGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBClusterParameterGroupInputDict], ) -> CreateDBClusterParameterGroupOutput: """ Creates a new DB cluster parameter group. @@ -1121,8 +1361,6 @@ def create_db_cluster_parameter_group( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CreateDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1132,12 +1370,34 @@ def create_db_cluster_parameter_group( Returns: An instance of `CreateDBClusterParameterGroupOutput`. """ + + def create_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBClusterParameterGroupOutput: return self._invoke( - input, _models.CREATE_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.CREATE_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.CREATE_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload + def create_db_cluster_snapshot( + self, + request: _models.CreateDBClusterSnapshotInput + | _models.CreateDBClusterSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBClusterSnapshotOutput: ... + + @_overload def create_db_cluster_snapshot( - self, input: CreateDBClusterSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBClusterSnapshotInputDict], ) -> CreateDBClusterSnapshotOutput: """ Creates a snapshot of a DB cluster. @@ -1151,8 +1411,6 @@ def create_db_cluster_snapshot( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CreateDBClusterSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1162,10 +1420,33 @@ def create_db_cluster_snapshot( Returns: An instance of `CreateDBClusterSnapshotOutput`. """ - return self._invoke(input, _models.CREATE_DB_CLUSTER_SNAPSHOT, [], plugins) + def create_db_cluster_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBClusterSnapshotOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_CLUSTER_SNAPSHOT, args, kwargs), + _models.CREATE_DB_CLUSTER_SNAPSHOT, + [], + plugins, + ) + + @_overload + def create_db_instance( + self, + request: _models.CreateDBInstanceInput | _models.CreateDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBInstanceOutput: ... + + @_overload def create_db_instance( - self, input: CreateDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBInstanceInputDict], ) -> CreateDBInstanceOutput: """ Creates a new DB instance. @@ -1186,8 +1467,6 @@ def create_db_instance( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `CreateDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1197,12 +1476,34 @@ def create_db_instance( Returns: An instance of `CreateDBInstanceOutput`. """ - return self._invoke(input, _models.CREATE_DB_INSTANCE, [], plugins) + def create_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBInstanceOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_INSTANCE, args, kwargs), + _models.CREATE_DB_INSTANCE, + [], + plugins, + ) + + @_overload + def create_db_instance_read_replica( + self, + request: _models.CreateDBInstanceReadReplicaInput + | _models.CreateDBInstanceReadReplicaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBInstanceReadReplicaOutput: ... + + @_overload def create_db_instance_read_replica( self, - input: CreateDBInstanceReadReplicaInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBInstanceReadReplicaInputDict], ) -> CreateDBInstanceReadReplicaOutput: """ Creates a new DB instance that acts as a read replica for an existing @@ -1227,8 +1528,6 @@ def create_db_instance_read_replica( Your source DB instance or cluster must have backup retention enabled. Args: - input: - An instance of `CreateDBInstanceReadReplicaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1238,10 +1537,34 @@ def create_db_instance_read_replica( Returns: An instance of `CreateDBInstanceReadReplicaOutput`. """ - return self._invoke(input, _models.CREATE_DB_INSTANCE_READ_REPLICA, [], plugins) + def create_db_instance_read_replica( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBInstanceReadReplicaOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_INSTANCE_READ_REPLICA, args, kwargs), + _models.CREATE_DB_INSTANCE_READ_REPLICA, + [], + plugins, + ) + + @_overload + def create_db_parameter_group( + self, + request: _models.CreateDBParameterGroupInput + | _models.CreateDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBParameterGroupOutput: ... + + @_overload def create_db_parameter_group( - self, input: CreateDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBParameterGroupInputDict], ) -> CreateDBParameterGroupOutput: """ Creates a new DB parameter group. @@ -1258,8 +1581,6 @@ def create_db_parameter_group( This command doesn't apply to RDS Custom. Args: - input: - An instance of `CreateDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1269,17 +1590,38 @@ def create_db_parameter_group( Returns: An instance of `CreateDBParameterGroupOutput`. """ - return self._invoke(input, _models.CREATE_DB_PARAMETER_GROUP, [], plugins) + def create_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBParameterGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_PARAMETER_GROUP, args, kwargs), + _models.CREATE_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + def create_db_proxy( + self, + request: _models.CreateDBProxyInput | _models.CreateDBProxyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBProxyOutput: ... + + @_overload def create_db_proxy( - self, input: CreateDBProxyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBProxyInputDict], ) -> CreateDBProxyOutput: """ Creates a new DB proxy. Args: - input: - An instance of `CreateDBProxyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1289,10 +1631,34 @@ def create_db_proxy( Returns: An instance of `CreateDBProxyOutput`. """ - return self._invoke(input, _models.CREATE_DB_PROXY, [], plugins) + def create_db_proxy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBProxyOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_PROXY, args, kwargs), + _models.CREATE_DB_PROXY, + [], + plugins, + ) + + @_overload + def create_db_proxy_endpoint( + self, + request: _models.CreateDBProxyEndpointInput + | _models.CreateDBProxyEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBProxyEndpointOutput: ... + + @_overload def create_db_proxy_endpoint( - self, input: CreateDBProxyEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBProxyEndpointInputDict], ) -> CreateDBProxyEndpointOutput: """ Creates a `DBProxyEndpoint`. Only applies to proxies that are associated @@ -1302,8 +1668,6 @@ def create_db_proxy_endpoint( proxy's default VPC. Args: - input: - An instance of `CreateDBProxyEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1313,10 +1677,34 @@ def create_db_proxy_endpoint( Returns: An instance of `CreateDBProxyEndpointOutput`. """ - return self._invoke(input, _models.CREATE_DB_PROXY_ENDPOINT, [], plugins) - def create_db_security_group( - self, input: CreateDBSecurityGroupInput, plugins: list[Plugin] | None = None + def create_db_proxy_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBProxyEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_PROXY_ENDPOINT, args, kwargs), + _models.CREATE_DB_PROXY_ENDPOINT, + [], + plugins, + ) + + @_overload + def create_db_security_group( + self, + request: _models.CreateDBSecurityGroupInput + | _models.CreateDBSecurityGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBSecurityGroupOutput: ... + + @_overload + def create_db_security_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBSecurityGroupInputDict], ) -> CreateDBSecurityGroupOutput: """ Creates a new DB security group. DB security groups control access to a @@ -1338,8 +1726,6 @@ def create_db_security_group( in the *Amazon RDS User Guide*. Args: - input: - An instance of `CreateDBSecurityGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1349,10 +1735,33 @@ def create_db_security_group( Returns: An instance of `CreateDBSecurityGroupOutput`. """ - return self._invoke(input, _models.CREATE_DB_SECURITY_GROUP, [], plugins) + def create_db_security_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBSecurityGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_SECURITY_GROUP, args, kwargs), + _models.CREATE_DB_SECURITY_GROUP, + [], + plugins, + ) + + @_overload + def create_db_shard_group( + self, + request: _models.CreateDBShardGroupInput | _models.CreateDBShardGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBShardGroupOutput: ... + + @_overload def create_db_shard_group( - self, input: CreateDBShardGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBShardGroupInputDict], ) -> CreateDBShardGroupOutput: """ Creates a new DB shard group for Aurora Limitless Database. You must @@ -1361,8 +1770,6 @@ def create_db_shard_group( Valid for: Aurora DB clusters only Args: - input: - An instance of `CreateDBShardGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1372,18 +1779,39 @@ def create_db_shard_group( Returns: An instance of `CreateDBShardGroupOutput`. """ - return self._invoke(input, _models.CREATE_DB_SHARD_GROUP, [], plugins) + def create_db_shard_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBShardGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_SHARD_GROUP, args, kwargs), + _models.CREATE_DB_SHARD_GROUP, + [], + plugins, + ) + + @_overload + def create_db_snapshot( + self, + request: _models.CreateDBSnapshotInput | _models.CreateDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBSnapshotOutput: ... + + @_overload def create_db_snapshot( - self, input: CreateDBSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBSnapshotInputDict], ) -> CreateDBSnapshotOutput: """ Creates a snapshot of a DB instance. The source DB instance must be in the `available` or `storage-optimization` state. Args: - input: - An instance of `CreateDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1393,18 +1821,40 @@ def create_db_snapshot( Returns: An instance of `CreateDBSnapshotOutput`. """ - return self._invoke(input, _models.CREATE_DB_SNAPSHOT, [], plugins) + def create_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBSnapshotOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_SNAPSHOT, args, kwargs), + _models.CREATE_DB_SNAPSHOT, + [], + plugins, + ) + + @_overload + def create_db_subnet_group( + self, + request: _models.CreateDBSubnetGroupInput + | _models.CreateDBSubnetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateDBSubnetGroupOutput: ... + + @_overload def create_db_subnet_group( - self, input: CreateDBSubnetGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateDBSubnetGroupInputDict], ) -> CreateDBSubnetGroupOutput: """ Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Web Services Region. Args: - input: - An instance of `CreateDBSubnetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1414,10 +1864,34 @@ def create_db_subnet_group( Returns: An instance of `CreateDBSubnetGroupOutput`. """ - return self._invoke(input, _models.CREATE_DB_SUBNET_GROUP, [], plugins) + def create_db_subnet_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateDBSubnetGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_DB_SUBNET_GROUP, args, kwargs), + _models.CREATE_DB_SUBNET_GROUP, + [], + plugins, + ) + + @_overload + def create_event_subscription( + self, + request: _models.CreateEventSubscriptionInput + | _models.CreateEventSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateEventSubscriptionOutput: ... + + @_overload def create_event_subscription( - self, input: CreateEventSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateEventSubscriptionInputDict], ) -> CreateEventSubscriptionOutput: """ Creates an RDS event notification subscription. This operation requires @@ -1454,8 +1928,6 @@ def create_event_subscription( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `CreateEventSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1465,10 +1937,34 @@ def create_event_subscription( Returns: An instance of `CreateEventSubscriptionOutput`. """ - return self._invoke(input, _models.CREATE_EVENT_SUBSCRIPTION, [], plugins) + def create_event_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateEventSubscriptionOutput: + return self._invoke( + self._select_input(_models.CREATE_EVENT_SUBSCRIPTION, args, kwargs), + _models.CREATE_EVENT_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def create_global_cluster( + self, + request: _models.CreateGlobalClusterInput + | _models.CreateGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateGlobalClusterOutput: ... + + @_overload def create_global_cluster( - self, input: CreateGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateGlobalClusterInputDict], ) -> CreateGlobalClusterOutput: """ Creates an Aurora global database spread across multiple Amazon Web @@ -1486,8 +1982,6 @@ def create_global_cluster( This operation applies only to Aurora DB clusters. Args: - input: - An instance of `CreateGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1497,17 +1991,38 @@ def create_global_cluster( Returns: An instance of `CreateGlobalClusterOutput`. """ - return self._invoke(input, _models.CREATE_GLOBAL_CLUSTER, [], plugins) + def create_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateGlobalClusterOutput: + return self._invoke( + self._select_input(_models.CREATE_GLOBAL_CLUSTER, args, kwargs), + _models.CREATE_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload def create_integration( - self, input: CreateIntegrationInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateIntegrationInput | _models.CreateIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateIntegrationOutput: ... + + @_overload + def create_integration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateIntegrationInputDict], ) -> CreateIntegrationOutput: """ Creates a zero-ETL integration with Amazon Redshift. Args: - input: - An instance of `CreateIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1517,10 +2032,33 @@ def create_integration( Returns: An instance of `CreateIntegrationOutput`. """ - return self._invoke(input, _models.CREATE_INTEGRATION, [], plugins) + def create_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateIntegrationOutput: + return self._invoke( + self._select_input(_models.CREATE_INTEGRATION, args, kwargs), + _models.CREATE_INTEGRATION, + [], + plugins, + ) + + @_overload + def create_option_group( + self, + request: _models.CreateOptionGroupInput | _models.CreateOptionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOptionGroupOutput: ... + + @_overload def create_option_group( - self, input: CreateOptionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOptionGroupInputDict], ) -> CreateOptionGroupOutput: """ Creates a new option group. You can create up to 20 option groups. @@ -1528,8 +2066,6 @@ def create_option_group( This command doesn't apply to RDS Custom. Args: - input: - An instance of `CreateOptionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1539,10 +2075,34 @@ def create_option_group( Returns: An instance of `CreateOptionGroupOutput`. """ - return self._invoke(input, _models.CREATE_OPTION_GROUP, [], plugins) + def create_option_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOptionGroupOutput: + return self._invoke( + self._select_input(_models.CREATE_OPTION_GROUP, args, kwargs), + _models.CREATE_OPTION_GROUP, + [], + plugins, + ) + + @_overload + def create_tenant_database( + self, + request: _models.CreateTenantDatabaseInput + | _models.CreateTenantDatabaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTenantDatabaseOutput: ... + + @_overload def create_tenant_database( - self, input: CreateTenantDatabaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTenantDatabaseInputDict], ) -> CreateTenantDatabaseOutput: """ Creates a tenant database in a DB instance that uses the multi-tenant @@ -1550,8 +2110,6 @@ def create_tenant_database( are supported. Args: - input: - An instance of `CreateTenantDatabaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1561,10 +2119,34 @@ def create_tenant_database( Returns: An instance of `CreateTenantDatabaseOutput`. """ - return self._invoke(input, _models.CREATE_TENANT_DATABASE, [], plugins) + def create_tenant_database( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTenantDatabaseOutput: + return self._invoke( + self._select_input(_models.CREATE_TENANT_DATABASE, args, kwargs), + _models.CREATE_TENANT_DATABASE, + [], + plugins, + ) + + @_overload + def delete_blue_green_deployment( + self, + request: _models.DeleteBlueGreenDeploymentInput + | _models.DeleteBlueGreenDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBlueGreenDeploymentOutput: ... + + @_overload def delete_blue_green_deployment( - self, input: DeleteBlueGreenDeploymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBlueGreenDeploymentInputDict], ) -> DeleteBlueGreenDeploymentOutput: """ Deletes a blue/green deployment. @@ -1578,8 +2160,6 @@ def delete_blue_green_deployment( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `DeleteBlueGreenDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1589,12 +2169,34 @@ def delete_blue_green_deployment( Returns: An instance of `DeleteBlueGreenDeploymentOutput`. """ - return self._invoke(input, _models.DELETE_BLUE_GREEN_DEPLOYMENT, [], plugins) + def delete_blue_green_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBlueGreenDeploymentOutput: + return self._invoke( + self._select_input(_models.DELETE_BLUE_GREEN_DEPLOYMENT, args, kwargs), + _models.DELETE_BLUE_GREEN_DEPLOYMENT, + [], + plugins, + ) + + @_overload + def delete_custom_db_engine_version( + self, + request: _models.DeleteCustomDBEngineVersionInput + | _models.DeleteCustomDBEngineVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteCustomDBEngineVersionOutput: ... + + @_overload def delete_custom_db_engine_version( self, - input: DeleteCustomDBEngineVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteCustomDBEngineVersionInputDict], ) -> DeleteCustomDBEngineVersionOutput: """ Deletes a custom engine version. To run this command, make sure you meet @@ -1623,8 +2225,6 @@ def delete_custom_db_engine_version( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteCustomDBEngineVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1634,10 +2234,33 @@ def delete_custom_db_engine_version( Returns: An instance of `DeleteCustomDBEngineVersionOutput`. """ - return self._invoke(input, _models.DELETE_CUSTOM_DB_ENGINE_VERSION, [], plugins) + def delete_custom_db_engine_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteCustomDBEngineVersionOutput: + return self._invoke( + self._select_input(_models.DELETE_CUSTOM_DB_ENGINE_VERSION, args, kwargs), + _models.DELETE_CUSTOM_DB_ENGINE_VERSION, + [], + plugins, + ) + + @_overload + def delete_db_cluster( + self, + request: _models.DeleteDBClusterInput | _models.DeleteDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterOutput: ... + + @_overload def delete_db_cluster( - self, input: DeleteDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterInputDict], ) -> DeleteDBClusterOutput: """ The DeleteDBCluster action deletes a previously provisioned DB cluster. @@ -1658,8 +2281,6 @@ def delete_db_cluster( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1669,12 +2290,34 @@ def delete_db_cluster( Returns: An instance of `DeleteDBClusterOutput`. """ - return self._invoke(input, _models.DELETE_DB_CLUSTER, [], plugins) + def delete_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_CLUSTER, args, kwargs), + _models.DELETE_DB_CLUSTER, + [], + plugins, + ) + + @_overload def delete_db_cluster_automated_backup( self, - input: DeleteDBClusterAutomatedBackupInput, + request: _models.DeleteDBClusterAutomatedBackupInput + | _models.DeleteDBClusterAutomatedBackupInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterAutomatedBackupOutput: ... + + @_overload + def delete_db_cluster_automated_backup( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterAutomatedBackupInputDict], ) -> DeleteDBClusterAutomatedBackupOutput: """ Deletes automated backups using the `DbClusterResourceId` value of the @@ -1682,8 +2325,6 @@ def delete_db_cluster_automated_backup( backups. Args: - input: - An instance of `DeleteDBClusterAutomatedBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1693,12 +2334,36 @@ def delete_db_cluster_automated_backup( Returns: An instance of `DeleteDBClusterAutomatedBackupOutput`. """ + + def delete_db_cluster_automated_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterAutomatedBackupOutput: return self._invoke( - input, _models.DELETE_DB_CLUSTER_AUTOMATED_BACKUP, [], plugins + self._select_input( + _models.DELETE_DB_CLUSTER_AUTOMATED_BACKUP, args, kwargs + ), + _models.DELETE_DB_CLUSTER_AUTOMATED_BACKUP, + [], + plugins, ) + @_overload + def delete_db_cluster_endpoint( + self, + request: _models.DeleteDBClusterEndpointInput + | _models.DeleteDBClusterEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterEndpointOutput: ... + + @_overload def delete_db_cluster_endpoint( - self, input: DeleteDBClusterEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterEndpointInputDict], ) -> DeleteDBClusterEndpointOutput: """ Deletes a custom endpoint and removes it from an Amazon Aurora DB @@ -1708,8 +2373,6 @@ def delete_db_cluster_endpoint( This action only applies to Aurora DB clusters. Args: - input: - An instance of `DeleteDBClusterEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1719,12 +2382,34 @@ def delete_db_cluster_endpoint( Returns: An instance of `DeleteDBClusterEndpointOutput`. """ - return self._invoke(input, _models.DELETE_DB_CLUSTER_ENDPOINT, [], plugins) + def delete_db_cluster_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_CLUSTER_ENDPOINT, args, kwargs), + _models.DELETE_DB_CLUSTER_ENDPOINT, + [], + plugins, + ) + + @_overload + def delete_db_cluster_parameter_group( + self, + request: _models.DeleteDBClusterParameterGroupInput + | _models.DeleteDBClusterParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterParameterGroupOutput: ... + + @_overload def delete_db_cluster_parameter_group( self, - input: DeleteDBClusterParameterGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterParameterGroupInputDict], ) -> DeleteDBClusterParameterGroupOutput: """ Deletes a specified DB cluster parameter group. The DB cluster parameter @@ -1739,8 +2424,6 @@ def delete_db_cluster_parameter_group( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1750,12 +2433,34 @@ def delete_db_cluster_parameter_group( Returns: An instance of `DeleteDBClusterParameterGroupOutput`. """ + + def delete_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterParameterGroupOutput: return self._invoke( - input, _models.DELETE_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.DELETE_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.DELETE_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload + def delete_db_cluster_snapshot( + self, + request: _models.DeleteDBClusterSnapshotInput + | _models.DeleteDBClusterSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBClusterSnapshotOutput: ... + + @_overload def delete_db_cluster_snapshot( - self, input: DeleteDBClusterSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBClusterSnapshotInputDict], ) -> DeleteDBClusterSnapshotOutput: """ Deletes a DB cluster snapshot. If the snapshot is being copied, the copy @@ -1773,8 +2478,6 @@ def delete_db_cluster_snapshot( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteDBClusterSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1784,10 +2487,33 @@ def delete_db_cluster_snapshot( Returns: An instance of `DeleteDBClusterSnapshotOutput`. """ - return self._invoke(input, _models.DELETE_DB_CLUSTER_SNAPSHOT, [], plugins) + def delete_db_cluster_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBClusterSnapshotOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_CLUSTER_SNAPSHOT, args, kwargs), + _models.DELETE_DB_CLUSTER_SNAPSHOT, + [], + plugins, + ) + + @_overload + def delete_db_instance( + self, + request: _models.DeleteDBInstanceInput | _models.DeleteDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBInstanceOutput: ... + + @_overload def delete_db_instance( - self, input: DeleteDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBInstanceInputDict], ) -> DeleteDBInstanceOutput: """ Deletes a previously provisioned DB instance. When you delete a DB @@ -1827,8 +2553,6 @@ def delete_db_instance( snapshot might fail. Args: - input: - An instance of `DeleteDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1838,20 +2562,40 @@ def delete_db_instance( Returns: An instance of `DeleteDBInstanceOutput`. """ - return self._invoke(input, _models.DELETE_DB_INSTANCE, [], plugins) + def delete_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBInstanceOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_INSTANCE, args, kwargs), + _models.DELETE_DB_INSTANCE, + [], + plugins, + ) + + @_overload + def delete_db_instance_automated_backup( + self, + request: _models.DeleteDBInstanceAutomatedBackupInput + | _models.DeleteDBInstanceAutomatedBackupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBInstanceAutomatedBackupOutput: ... + + @_overload def delete_db_instance_automated_backup( self, - input: DeleteDBInstanceAutomatedBackupInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBInstanceAutomatedBackupInputDict], ) -> DeleteDBInstanceAutomatedBackupOutput: """ Deletes automated backups using the `DbiResourceId` value of the source DB instance or the Amazon Resource Name (ARN) of the automated backups. Args: - input: - An instance of `DeleteDBInstanceAutomatedBackupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1861,20 +2605,42 @@ def delete_db_instance_automated_backup( Returns: An instance of `DeleteDBInstanceAutomatedBackupOutput`. """ + + def delete_db_instance_automated_backup( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBInstanceAutomatedBackupOutput: return self._invoke( - input, _models.DELETE_DB_INSTANCE_AUTOMATED_BACKUP, [], plugins + self._select_input( + _models.DELETE_DB_INSTANCE_AUTOMATED_BACKUP, args, kwargs + ), + _models.DELETE_DB_INSTANCE_AUTOMATED_BACKUP, + [], + plugins, ) + @_overload + def delete_db_parameter_group( + self, + request: _models.DeleteDBParameterGroupInput + | _models.DeleteDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBParameterGroupOutput: ... + + @_overload def delete_db_parameter_group( - self, input: DeleteDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBParameterGroupInputDict], ) -> DeleteDBParameterGroupOutput: """ Deletes a specified DB parameter group. The DB parameter group to be deleted can't be associated with any DB instances. Args: - input: - An instance of `DeleteDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1884,17 +2650,38 @@ def delete_db_parameter_group( Returns: An instance of `DeleteDBParameterGroupOutput`. """ - return self._invoke(input, _models.DELETE_DB_PARAMETER_GROUP, [], plugins) + def delete_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBParameterGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_PARAMETER_GROUP, args, kwargs), + _models.DELETE_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + def delete_db_proxy( + self, + request: _models.DeleteDBProxyInput | _models.DeleteDBProxyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBProxyOutput: ... + + @_overload def delete_db_proxy( - self, input: DeleteDBProxyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBProxyInputDict], ) -> DeleteDBProxyOutput: """ Deletes an existing DB proxy. Args: - input: - An instance of `DeleteDBProxyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1904,10 +2691,34 @@ def delete_db_proxy( Returns: An instance of `DeleteDBProxyOutput`. """ - return self._invoke(input, _models.DELETE_DB_PROXY, [], plugins) + def delete_db_proxy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBProxyOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_PROXY, args, kwargs), + _models.DELETE_DB_PROXY, + [], + plugins, + ) + + @_overload + def delete_db_proxy_endpoint( + self, + request: _models.DeleteDBProxyEndpointInput + | _models.DeleteDBProxyEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBProxyEndpointOutput: ... + + @_overload def delete_db_proxy_endpoint( - self, input: DeleteDBProxyEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBProxyEndpointInputDict], ) -> DeleteDBProxyEndpointOutput: """ Deletes a `DBProxyEndpoint`. Doing so removes the ability to access the @@ -1916,8 +2727,6 @@ def delete_db_proxy_endpoint( operations, or using a different VPC than the DB proxy's default VPC. Args: - input: - An instance of `DeleteDBProxyEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1927,10 +2736,34 @@ def delete_db_proxy_endpoint( Returns: An instance of `DeleteDBProxyEndpointOutput`. """ - return self._invoke(input, _models.DELETE_DB_PROXY_ENDPOINT, [], plugins) + def delete_db_proxy_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBProxyEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_PROXY_ENDPOINT, args, kwargs), + _models.DELETE_DB_PROXY_ENDPOINT, + [], + plugins, + ) + + @_overload + def delete_db_security_group( + self, + request: _models.DeleteDBSecurityGroupInput + | _models.DeleteDBSecurityGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBSecurityGroupOutput: ... + + @_overload def delete_db_security_group( - self, input: DeleteDBSecurityGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBSecurityGroupInputDict], ) -> DeleteDBSecurityGroupOutput: """ Deletes a DB security group. @@ -1951,8 +2784,6 @@ def delete_db_security_group( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DeleteDBSecurityGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1962,17 +2793,38 @@ def delete_db_security_group( Returns: An instance of `DeleteDBSecurityGroupOutput`. """ - return self._invoke(input, _models.DELETE_DB_SECURITY_GROUP, [], plugins) + def delete_db_security_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBSecurityGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_SECURITY_GROUP, args, kwargs), + _models.DELETE_DB_SECURITY_GROUP, + [], + plugins, + ) + + @_overload + def delete_db_shard_group( + self, + request: _models.DeleteDBShardGroupInput | _models.DeleteDBShardGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBShardGroupOutput: ... + + @_overload def delete_db_shard_group( - self, input: DeleteDBShardGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBShardGroupInputDict], ) -> DeleteDBShardGroupOutput: """ Deletes an Aurora Limitless Database DB shard group. Args: - input: - An instance of `DeleteDBShardGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1982,10 +2834,33 @@ def delete_db_shard_group( Returns: An instance of `DeleteDBShardGroupOutput`. """ - return self._invoke(input, _models.DELETE_DB_SHARD_GROUP, [], plugins) + def delete_db_shard_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBShardGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_SHARD_GROUP, args, kwargs), + _models.DELETE_DB_SHARD_GROUP, + [], + plugins, + ) + + @_overload + def delete_db_snapshot( + self, + request: _models.DeleteDBSnapshotInput | _models.DeleteDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBSnapshotOutput: ... + + @_overload def delete_db_snapshot( - self, input: DeleteDBSnapshotInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBSnapshotInputDict], ) -> DeleteDBSnapshotOutput: """ Deletes a DB snapshot. If the snapshot is being copied, the copy @@ -1995,8 +2870,6 @@ def delete_db_snapshot( The DB snapshot must be in the `available` state to be deleted. Args: - input: - An instance of `DeleteDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2006,10 +2879,34 @@ def delete_db_snapshot( Returns: An instance of `DeleteDBSnapshotOutput`. """ - return self._invoke(input, _models.DELETE_DB_SNAPSHOT, [], plugins) + def delete_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBSnapshotOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_SNAPSHOT, args, kwargs), + _models.DELETE_DB_SNAPSHOT, + [], + plugins, + ) + + @_overload def delete_db_subnet_group( - self, input: DeleteDBSubnetGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteDBSubnetGroupInput + | _models.DeleteDBSubnetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteDBSubnetGroupOutput: ... + + @_overload + def delete_db_subnet_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteDBSubnetGroupInputDict], ) -> DeleteDBSubnetGroupOutput: """ Deletes a DB subnet group. @@ -2019,8 +2916,6 @@ def delete_db_subnet_group( instances. Args: - input: - An instance of `DeleteDBSubnetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2030,17 +2925,39 @@ def delete_db_subnet_group( Returns: An instance of `DeleteDBSubnetGroupOutput`. """ - return self._invoke(input, _models.DELETE_DB_SUBNET_GROUP, [], plugins) + def delete_db_subnet_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteDBSubnetGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_DB_SUBNET_GROUP, args, kwargs), + _models.DELETE_DB_SUBNET_GROUP, + [], + plugins, + ) + + @_overload + def delete_event_subscription( + self, + request: _models.DeleteEventSubscriptionInput + | _models.DeleteEventSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEventSubscriptionOutput: ... + + @_overload def delete_event_subscription( - self, input: DeleteEventSubscriptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEventSubscriptionInputDict], ) -> DeleteEventSubscriptionOutput: """ Deletes an RDS event notification subscription. Args: - input: - An instance of `DeleteEventSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2050,10 +2967,34 @@ def delete_event_subscription( Returns: An instance of `DeleteEventSubscriptionOutput`. """ - return self._invoke(input, _models.DELETE_EVENT_SUBSCRIPTION, [], plugins) + def delete_event_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEventSubscriptionOutput: + return self._invoke( + self._select_input(_models.DELETE_EVENT_SUBSCRIPTION, args, kwargs), + _models.DELETE_EVENT_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + def delete_global_cluster( + self, + request: _models.DeleteGlobalClusterInput + | _models.DeleteGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteGlobalClusterOutput: ... + + @_overload def delete_global_cluster( - self, input: DeleteGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteGlobalClusterInputDict], ) -> DeleteGlobalClusterOutput: """ Deletes a global database cluster. The primary and secondary clusters @@ -2063,8 +3004,6 @@ def delete_global_cluster( This action only applies to Aurora DB clusters. Args: - input: - An instance of `DeleteGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2074,17 +3013,38 @@ def delete_global_cluster( Returns: An instance of `DeleteGlobalClusterOutput`. """ - return self._invoke(input, _models.DELETE_GLOBAL_CLUSTER, [], plugins) + def delete_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteGlobalClusterOutput: + return self._invoke( + self._select_input(_models.DELETE_GLOBAL_CLUSTER, args, kwargs), + _models.DELETE_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload + def delete_integration( + self, + request: _models.DeleteIntegrationInput | _models.DeleteIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteIntegrationOutput: ... + + @_overload def delete_integration( - self, input: DeleteIntegrationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteIntegrationInputDict], ) -> DeleteIntegrationOutput: """ Deletes a zero-ETL integration with Amazon Redshift. Args: - input: - An instance of `DeleteIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2094,17 +3054,38 @@ def delete_integration( Returns: An instance of `DeleteIntegrationOutput`. """ - return self._invoke(input, _models.DELETE_INTEGRATION, [], plugins) + def delete_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteIntegrationOutput: + return self._invoke( + self._select_input(_models.DELETE_INTEGRATION, args, kwargs), + _models.DELETE_INTEGRATION, + [], + plugins, + ) + + @_overload + def delete_option_group( + self, + request: _models.DeleteOptionGroupInput | _models.DeleteOptionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteOptionGroupOutput: ... + + @_overload def delete_option_group( - self, input: DeleteOptionGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteOptionGroupInputDict], ) -> DeleteOptionGroupOutput: """ Deletes an existing option group. Args: - input: - An instance of `DeleteOptionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2114,10 +3095,34 @@ def delete_option_group( Returns: An instance of `DeleteOptionGroupOutput`. """ - return self._invoke(input, _models.DELETE_OPTION_GROUP, [], plugins) + def delete_option_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteOptionGroupOutput: + return self._invoke( + self._select_input(_models.DELETE_OPTION_GROUP, args, kwargs), + _models.DELETE_OPTION_GROUP, + [], + plugins, + ) + + @_overload + def delete_tenant_database( + self, + request: _models.DeleteTenantDatabaseInput + | _models.DeleteTenantDatabaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTenantDatabaseOutput: ... + + @_overload def delete_tenant_database( - self, input: DeleteTenantDatabaseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTenantDatabaseInputDict], ) -> DeleteTenantDatabaseOutput: """ Deletes a tenant database from your DB instance. This command only @@ -2127,8 +3132,6 @@ def delete_tenant_database( instance. Args: - input: - An instance of `DeleteTenantDatabaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2138,18 +3141,40 @@ def delete_tenant_database( Returns: An instance of `DeleteTenantDatabaseOutput`. """ - return self._invoke(input, _models.DELETE_TENANT_DATABASE, [], plugins) + def delete_tenant_database( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTenantDatabaseOutput: + return self._invoke( + self._select_input(_models.DELETE_TENANT_DATABASE, args, kwargs), + _models.DELETE_TENANT_DATABASE, + [], + plugins, + ) + + @_overload + def deregister_db_proxy_targets( + self, + request: _models.DeregisterDBProxyTargetsInput + | _models.DeregisterDBProxyTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeregisterDBProxyTargetsOutput: ... + + @_overload def deregister_db_proxy_targets( - self, input: DeregisterDBProxyTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeregisterDBProxyTargetsInputDict], ) -> DeregisterDBProxyTargetsOutput: """ Remove the association between one or more `DBProxyTarget` data structures and a `DBProxyTargetGroup`. Args: - input: - An instance of `DeregisterDBProxyTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2159,12 +3184,34 @@ def deregister_db_proxy_targets( Returns: An instance of `DeregisterDBProxyTargetsOutput`. """ - return self._invoke(input, _models.DEREGISTER_DB_PROXY_TARGETS, [], plugins) + def deregister_db_proxy_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeregisterDBProxyTargetsOutput: + return self._invoke( + self._select_input(_models.DEREGISTER_DB_PROXY_TARGETS, args, kwargs), + _models.DEREGISTER_DB_PROXY_TARGETS, + [], + plugins, + ) + + @_overload + def describe_account_attributes( + self, + request: _models.DescribeAccountAttributesInput + | _models.DescribeAccountAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeAccountAttributesOutput: ... + + @_overload def describe_account_attributes( self, - input: DescribeAccountAttributesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeAccountAttributesInputDict], ) -> DescribeAccountAttributesOutput: """ Lists all of the attributes for a customer account. The attributes @@ -2175,8 +3222,6 @@ def describe_account_attributes( This command doesn't take any parameters. Args: - input: - An instance of `DescribeAccountAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2186,12 +3231,34 @@ def describe_account_attributes( Returns: An instance of `DescribeAccountAttributesOutput`. """ - return self._invoke(input, _models.DESCRIBE_ACCOUNT_ATTRIBUTES, [], plugins) + def describe_account_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeAccountAttributesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_ACCOUNT_ATTRIBUTES, args, kwargs), + _models.DESCRIBE_ACCOUNT_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def describe_blue_green_deployments( + self, + request: _models.DescribeBlueGreenDeploymentsInput + | _models.DescribeBlueGreenDeploymentsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeBlueGreenDeploymentsOutput: ... + + @_overload def describe_blue_green_deployments( self, - input: DescribeBlueGreenDeploymentsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeBlueGreenDeploymentsInputDict], ) -> DescribeBlueGreenDeploymentsOutput: """ Describes one or more blue/green deployments. @@ -2205,8 +3272,6 @@ def describe_blue_green_deployments( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `DescribeBlueGreenDeploymentsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2216,12 +3281,34 @@ def describe_blue_green_deployments( Returns: An instance of `DescribeBlueGreenDeploymentsOutput`. """ - return self._invoke(input, _models.DESCRIBE_BLUE_GREEN_DEPLOYMENTS, [], plugins) + def describe_blue_green_deployments( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeBlueGreenDeploymentsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_BLUE_GREEN_DEPLOYMENTS, args, kwargs), + _models.DESCRIBE_BLUE_GREEN_DEPLOYMENTS, + [], + plugins, + ) + + @_overload + def describe_certificates( + self, + request: _models.DescribeCertificatesInput + | _models.DescribeCertificatesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeCertificatesOutput: ... + + @_overload def describe_certificates( self, - input: DescribeCertificatesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeCertificatesInputDict], ) -> DescribeCertificatesOutput: """ Lists the set of certificate authority (CA) certificates provided by @@ -2235,8 +3322,6 @@ def describe_certificates( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `DescribeCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2246,12 +3331,34 @@ def describe_certificates( Returns: An instance of `DescribeCertificatesOutput`. """ - return self._invoke(input, _models.DESCRIBE_CERTIFICATES, [], plugins) + def describe_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeCertificatesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_CERTIFICATES, args, kwargs), + _models.DESCRIBE_CERTIFICATES, + [], + plugins, + ) + + @_overload def describe_db_capacity_reservations( self, - input: DescribeDBCapacityReservationsInput | None = None, + request: _models.DescribeDBCapacityReservationsInput + | _models.DescribeDBCapacityReservationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDBCapacityReservationsOutput: ... + + @_overload + def describe_db_capacity_reservations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBCapacityReservationsInputDict], ) -> DescribeDBCapacityReservationsOutput: """ Describes one or more DB capacity reservations. A DB capacity @@ -2265,8 +3372,6 @@ def describe_db_capacity_reservations( This operation supports pagination. Args: - input: - An instance of `DescribeDBCapacityReservationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2276,14 +3381,34 @@ def describe_db_capacity_reservations( Returns: An instance of `DescribeDBCapacityReservationsOutput`. """ + + def describe_db_capacity_reservations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBCapacityReservationsOutput: return self._invoke( - input, _models.DESCRIBE_DB_CAPACITY_RESERVATIONS, [], plugins + self._select_input(_models.DESCRIBE_DB_CAPACITY_RESERVATIONS, args, kwargs), + _models.DESCRIBE_DB_CAPACITY_RESERVATIONS, + [], + plugins, ) + @_overload + def describe_db_cluster_automated_backups( + self, + request: _models.DescribeDBClusterAutomatedBackupsInput + | _models.DescribeDBClusterAutomatedBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterAutomatedBackupsOutput: ... + + @_overload def describe_db_cluster_automated_backups( self, - input: DescribeDBClusterAutomatedBackupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterAutomatedBackupsInputDict], ) -> DescribeDBClusterAutomatedBackupsOutput: """ Displays backups for both current and deleted DB clusters. For example, @@ -2294,8 +3419,6 @@ def describe_db_cluster_automated_backups( All parameters are optional. Args: - input: - An instance of `DescribeDBClusterAutomatedBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2305,14 +3428,36 @@ def describe_db_cluster_automated_backups( Returns: An instance of `DescribeDBClusterAutomatedBackupsOutput`. """ + + def describe_db_cluster_automated_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterAutomatedBackupsOutput: return self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_AUTOMATED_BACKUPS, [], plugins + self._select_input( + _models.DESCRIBE_DB_CLUSTER_AUTOMATED_BACKUPS, args, kwargs + ), + _models.DESCRIBE_DB_CLUSTER_AUTOMATED_BACKUPS, + [], + plugins, ) + @_overload + def describe_db_cluster_backtracks( + self, + request: _models.DescribeDBClusterBacktracksInput + | _models.DescribeDBClusterBacktracksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterBacktracksOutput: ... + + @_overload def describe_db_cluster_backtracks( self, - input: DescribeDBClusterBacktracksInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterBacktracksInputDict], ) -> DescribeDBClusterBacktracksOutput: """ Returns information about backtracks for a DB cluster. @@ -2325,8 +3470,6 @@ def describe_db_cluster_backtracks( This action only applies to Aurora MySQL DB clusters. Args: - input: - An instance of `DescribeDBClusterBacktracksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2336,12 +3479,34 @@ def describe_db_cluster_backtracks( Returns: An instance of `DescribeDBClusterBacktracksOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_CLUSTER_BACKTRACKS, [], plugins) + def describe_db_cluster_backtracks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterBacktracksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_CLUSTER_BACKTRACKS, args, kwargs), + _models.DESCRIBE_DB_CLUSTER_BACKTRACKS, + [], + plugins, + ) + + @_overload + def describe_db_cluster_endpoints( + self, + request: _models.DescribeDBClusterEndpointsInput + | _models.DescribeDBClusterEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterEndpointsOutput: ... + + @_overload def describe_db_cluster_endpoints( self, - input: DescribeDBClusterEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterEndpointsInputDict], ) -> DescribeDBClusterEndpointsOutput: """ Returns information about endpoints for an Amazon Aurora DB cluster. @@ -2350,8 +3515,6 @@ def describe_db_cluster_endpoints( This action only applies to Aurora DB clusters. Args: - input: - An instance of `DescribeDBClusterEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2361,12 +3524,34 @@ def describe_db_cluster_endpoints( Returns: An instance of `DescribeDBClusterEndpointsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_CLUSTER_ENDPOINTS, [], plugins) + def describe_db_cluster_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterEndpointsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_CLUSTER_ENDPOINTS, args, kwargs), + _models.DESCRIBE_DB_CLUSTER_ENDPOINTS, + [], + plugins, + ) + + @_overload def describe_db_cluster_parameter_groups( self, - input: DescribeDBClusterParameterGroupsInput | None = None, + request: _models.DescribeDBClusterParameterGroupsInput + | _models.DescribeDBClusterParameterGroupsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterParameterGroupsOutput: ... + + @_overload + def describe_db_cluster_parameter_groups( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterParameterGroupsInputDict], ) -> DescribeDBClusterParameterGroupsOutput: """ Returns a list of `DBClusterParameterGroup` descriptions. If a @@ -2383,8 +3568,6 @@ def describe_db_cluster_parameter_groups( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DescribeDBClusterParameterGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2394,14 +3577,36 @@ def describe_db_cluster_parameter_groups( Returns: An instance of `DescribeDBClusterParameterGroupsOutput`. """ + + def describe_db_cluster_parameter_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterParameterGroupsOutput: return self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_PARAMETER_GROUPS, [], plugins + self._select_input( + _models.DESCRIBE_DB_CLUSTER_PARAMETER_GROUPS, args, kwargs + ), + _models.DESCRIBE_DB_CLUSTER_PARAMETER_GROUPS, + [], + plugins, ) + @_overload + def describe_db_cluster_parameters( + self, + request: _models.DescribeDBClusterParametersInput + | _models.DescribeDBClusterParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterParametersOutput: ... + + @_overload def describe_db_cluster_parameters( self, - input: DescribeDBClusterParametersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterParametersInputDict], ) -> DescribeDBClusterParametersOutput: """ Returns the detailed parameter list for a particular DB cluster @@ -2416,8 +3621,6 @@ def describe_db_cluster_parameters( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DescribeDBClusterParametersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2427,12 +3630,33 @@ def describe_db_cluster_parameters( Returns: An instance of `DescribeDBClusterParametersOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_CLUSTER_PARAMETERS, [], plugins) + def describe_db_cluster_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterParametersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_CLUSTER_PARAMETERS, args, kwargs), + _models.DESCRIBE_DB_CLUSTER_PARAMETERS, + [], + plugins, + ) + + @_overload def describe_db_clusters( self, - input: DescribeDBClustersInput | None = None, + request: _models.DescribeDBClustersInput | _models.DescribeDBClustersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDBClustersOutput: ... + + @_overload + def describe_db_clusters( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClustersInputDict], ) -> DescribeDBClustersOutput: """ Describes existing Amazon Aurora DB clusters and Multi-AZ DB clusters. @@ -2450,8 +3674,6 @@ def describe_db_clusters( instances and Amazon DocumentDB instances. Args: - input: - An instance of `DescribeDBClustersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2461,12 +3683,34 @@ def describe_db_clusters( Returns: An instance of `DescribeDBClustersOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_CLUSTERS, [], plugins) + def describe_db_clusters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClustersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_CLUSTERS, args, kwargs), + _models.DESCRIBE_DB_CLUSTERS, + [], + plugins, + ) + + @_overload + def describe_db_cluster_snapshot_attributes( + self, + request: _models.DescribeDBClusterSnapshotAttributesInput + | _models.DescribeDBClusterSnapshotAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterSnapshotAttributesOutput: ... + + @_overload def describe_db_cluster_snapshot_attributes( self, - input: DescribeDBClusterSnapshotAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterSnapshotAttributesInputDict], ) -> DescribeDBClusterSnapshotAttributesOutput: """ Returns a list of DB cluster snapshot attribute names and values for a @@ -2486,8 +3730,6 @@ def describe_db_cluster_snapshot_attributes( API action. Args: - input: - An instance of `DescribeDBClusterSnapshotAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2497,14 +3739,36 @@ def describe_db_cluster_snapshot_attributes( Returns: An instance of `DescribeDBClusterSnapshotAttributesOutput`. """ + + def describe_db_cluster_snapshot_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterSnapshotAttributesOutput: return self._invoke( - input, _models.DESCRIBE_DB_CLUSTER_SNAPSHOT_ATTRIBUTES, [], plugins + self._select_input( + _models.DESCRIBE_DB_CLUSTER_SNAPSHOT_ATTRIBUTES, args, kwargs + ), + _models.DESCRIBE_DB_CLUSTER_SNAPSHOT_ATTRIBUTES, + [], + plugins, ) + @_overload def describe_db_cluster_snapshots( self, - input: DescribeDBClusterSnapshotsInput | None = None, + request: _models.DescribeDBClusterSnapshotsInput + | _models.DescribeDBClusterSnapshotsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDBClusterSnapshotsOutput: ... + + @_overload + def describe_db_cluster_snapshots( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBClusterSnapshotsInputDict], ) -> DescribeDBClusterSnapshotsOutput: """ Returns information about DB cluster snapshots. This API action supports @@ -2519,8 +3783,6 @@ def describe_db_cluster_snapshots( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DescribeDBClusterSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2530,19 +3792,39 @@ def describe_db_cluster_snapshots( Returns: An instance of `DescribeDBClusterSnapshotsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_CLUSTER_SNAPSHOTS, [], plugins) + def describe_db_cluster_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBClusterSnapshotsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_CLUSTER_SNAPSHOTS, args, kwargs), + _models.DESCRIBE_DB_CLUSTER_SNAPSHOTS, + [], + plugins, + ) + + @_overload + def describe_db_engine_versions( + self, + request: _models.DescribeDBEngineVersionsInput + | _models.DescribeDBEngineVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBEngineVersionsOutput: ... + + @_overload def describe_db_engine_versions( self, - input: DescribeDBEngineVersionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBEngineVersionsInputDict], ) -> DescribeDBEngineVersionsOutput: """ Describes the properties of specific versions of DB engines. Args: - input: - An instance of `DescribeDBEngineVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2552,12 +3834,34 @@ def describe_db_engine_versions( Returns: An instance of `DescribeDBEngineVersionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_ENGINE_VERSIONS, [], plugins) + def describe_db_engine_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBEngineVersionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_ENGINE_VERSIONS, args, kwargs), + _models.DESCRIBE_DB_ENGINE_VERSIONS, + [], + plugins, + ) + + @_overload + def describe_db_instance_automated_backups( + self, + request: _models.DescribeDBInstanceAutomatedBackupsInput + | _models.DescribeDBInstanceAutomatedBackupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBInstanceAutomatedBackupsOutput: ... + + @_overload def describe_db_instance_automated_backups( self, - input: DescribeDBInstanceAutomatedBackupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBInstanceAutomatedBackupsInputDict], ) -> DescribeDBInstanceAutomatedBackupsOutput: """ Displays backups for both current and deleted instances. For example, @@ -2570,8 +3874,6 @@ def describe_db_instance_automated_backups( All parameters are optional. Args: - input: - An instance of `DescribeDBInstanceAutomatedBackupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2581,14 +3883,36 @@ def describe_db_instance_automated_backups( Returns: An instance of `DescribeDBInstanceAutomatedBackupsOutput`. """ + + def describe_db_instance_automated_backups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBInstanceAutomatedBackupsOutput: return self._invoke( - input, _models.DESCRIBE_DB_INSTANCE_AUTOMATED_BACKUPS, [], plugins + self._select_input( + _models.DESCRIBE_DB_INSTANCE_AUTOMATED_BACKUPS, args, kwargs + ), + _models.DESCRIBE_DB_INSTANCE_AUTOMATED_BACKUPS, + [], + plugins, ) + @_overload + def describe_db_instances( + self, + request: _models.DescribeDBInstancesInput + | _models.DescribeDBInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBInstancesOutput: ... + + @_overload def describe_db_instances( self, - input: DescribeDBInstancesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBInstancesInputDict], ) -> DescribeDBInstancesOutput: """ Describes provisioned RDS instances. This API supports pagination. @@ -2598,8 +3922,6 @@ def describe_db_instances( instances and Amazon DocumentDB instances. Args: - input: - An instance of `DescribeDBInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2609,10 +3931,33 @@ def describe_db_instances( Returns: An instance of `DescribeDBInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_INSTANCES, [], plugins) + def describe_db_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_INSTANCES, args, kwargs), + _models.DESCRIBE_DB_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_db_log_files( + self, + request: _models.DescribeDBLogFilesInput | _models.DescribeDBLogFilesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBLogFilesOutput: ... + + @_overload def describe_db_log_files( - self, input: DescribeDBLogFilesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBLogFilesInputDict], ) -> DescribeDBLogFilesOutput: """ Returns a list of DB log files for the DB instance. @@ -2620,8 +3965,6 @@ def describe_db_log_files( This command doesn't apply to RDS Custom. Args: - input: - An instance of `DescribeDBLogFilesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2631,19 +3974,39 @@ def describe_db_log_files( Returns: An instance of `DescribeDBLogFilesOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_LOG_FILES, [], plugins) + def describe_db_log_files( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBLogFilesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_LOG_FILES, args, kwargs), + _models.DESCRIBE_DB_LOG_FILES, + [], + plugins, + ) + + @_overload + def describe_db_major_engine_versions( + self, + request: _models.DescribeDBMajorEngineVersionsInput + | _models.DescribeDBMajorEngineVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBMajorEngineVersionsOutput: ... + + @_overload def describe_db_major_engine_versions( self, - input: DescribeDBMajorEngineVersionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBMajorEngineVersionsInputDict], ) -> DescribeDBMajorEngineVersionsOutput: """ Describes the properties of specific major versions of DB engines. Args: - input: - An instance of `DescribeDBMajorEngineVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2653,14 +4016,34 @@ def describe_db_major_engine_versions( Returns: An instance of `DescribeDBMajorEngineVersionsOutput`. """ + + def describe_db_major_engine_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBMajorEngineVersionsOutput: return self._invoke( - input, _models.DESCRIBE_DB_MAJOR_ENGINE_VERSIONS, [], plugins + self._select_input(_models.DESCRIBE_DB_MAJOR_ENGINE_VERSIONS, args, kwargs), + _models.DESCRIBE_DB_MAJOR_ENGINE_VERSIONS, + [], + plugins, ) + @_overload + def describe_db_parameter_groups( + self, + request: _models.DescribeDBParameterGroupsInput + | _models.DescribeDBParameterGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBParameterGroupsOutput: ... + + @_overload def describe_db_parameter_groups( self, - input: DescribeDBParameterGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBParameterGroupsInputDict], ) -> DescribeDBParameterGroupsOutput: """ Returns a list of `DBParameterGroup` descriptions. If a @@ -2668,8 +4051,6 @@ def describe_db_parameter_groups( description of the specified DB parameter group. Args: - input: - An instance of `DescribeDBParameterGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2679,17 +4060,39 @@ def describe_db_parameter_groups( Returns: An instance of `DescribeDBParameterGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_PARAMETER_GROUPS, [], plugins) + def describe_db_parameter_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBParameterGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_PARAMETER_GROUPS, args, kwargs), + _models.DESCRIBE_DB_PARAMETER_GROUPS, + [], + plugins, + ) + + @_overload + def describe_db_parameters( + self, + request: _models.DescribeDBParametersInput + | _models.DescribeDBParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBParametersOutput: ... + + @_overload def describe_db_parameters( - self, input: DescribeDBParametersInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBParametersInputDict], ) -> DescribeDBParametersOutput: """ Returns the detailed parameter list for a particular DB parameter group. Args: - input: - An instance of `DescribeDBParametersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2699,19 +4102,38 @@ def describe_db_parameters( Returns: An instance of `DescribeDBParametersOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_PARAMETERS, [], plugins) + def describe_db_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBParametersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_PARAMETERS, args, kwargs), + _models.DESCRIBE_DB_PARAMETERS, + [], + plugins, + ) + + @_overload def describe_db_proxies( self, - input: DescribeDBProxiesInput | None = None, + request: _models.DescribeDBProxiesInput | _models.DescribeDBProxiesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDBProxiesOutput: ... + + @_overload + def describe_db_proxies( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBProxiesInputDict], ) -> DescribeDBProxiesOutput: """ Returns information about DB proxies. Args: - input: - An instance of `DescribeDBProxiesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2721,19 +4143,39 @@ def describe_db_proxies( Returns: An instance of `DescribeDBProxiesOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_PROXIES, [], plugins) + def describe_db_proxies( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBProxiesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_PROXIES, args, kwargs), + _models.DESCRIBE_DB_PROXIES, + [], + plugins, + ) + + @_overload + def describe_db_proxy_endpoints( + self, + request: _models.DescribeDBProxyEndpointsInput + | _models.DescribeDBProxyEndpointsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBProxyEndpointsOutput: ... + + @_overload def describe_db_proxy_endpoints( self, - input: DescribeDBProxyEndpointsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBProxyEndpointsInputDict], ) -> DescribeDBProxyEndpointsOutput: """ Returns information about DB proxy endpoints. Args: - input: - An instance of `DescribeDBProxyEndpointsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2743,20 +4185,40 @@ def describe_db_proxy_endpoints( Returns: An instance of `DescribeDBProxyEndpointsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_PROXY_ENDPOINTS, [], plugins) - def describe_db_proxy_target_groups( - self, - input: DescribeDBProxyTargetGroupsInput, - plugins: list[Plugin] | None = None, + def describe_db_proxy_endpoints( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBProxyEndpointsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_PROXY_ENDPOINTS, args, kwargs), + _models.DESCRIBE_DB_PROXY_ENDPOINTS, + [], + plugins, + ) + + @_overload + def describe_db_proxy_target_groups( + self, + request: _models.DescribeDBProxyTargetGroupsInput + | _models.DescribeDBProxyTargetGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBProxyTargetGroupsOutput: ... + + @_overload + def describe_db_proxy_target_groups( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBProxyTargetGroupsInputDict], ) -> DescribeDBProxyTargetGroupsOutput: """ Returns information about DB proxy target groups, represented by `DBProxyTargetGroup` data structures. Args: - input: - An instance of `DescribeDBProxyTargetGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2766,18 +4228,40 @@ def describe_db_proxy_target_groups( Returns: An instance of `DescribeDBProxyTargetGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_PROXY_TARGET_GROUPS, [], plugins) + def describe_db_proxy_target_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBProxyTargetGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_PROXY_TARGET_GROUPS, args, kwargs), + _models.DESCRIBE_DB_PROXY_TARGET_GROUPS, + [], + plugins, + ) + + @_overload + def describe_db_proxy_targets( + self, + request: _models.DescribeDBProxyTargetsInput + | _models.DescribeDBProxyTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBProxyTargetsOutput: ... + + @_overload def describe_db_proxy_targets( - self, input: DescribeDBProxyTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBProxyTargetsInputDict], ) -> DescribeDBProxyTargetsOutput: """ Returns information about `DBProxyTarget` objects. This API supports pagination. Args: - input: - An instance of `DescribeDBProxyTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2787,20 +4271,40 @@ def describe_db_proxy_targets( Returns: An instance of `DescribeDBProxyTargetsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_PROXY_TARGETS, [], plugins) + def describe_db_proxy_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBProxyTargetsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_PROXY_TARGETS, args, kwargs), + _models.DESCRIBE_DB_PROXY_TARGETS, + [], + plugins, + ) + + @_overload + def describe_db_recommendations( + self, + request: _models.DescribeDBRecommendationsInput + | _models.DescribeDBRecommendationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBRecommendationsOutput: ... + + @_overload def describe_db_recommendations( self, - input: DescribeDBRecommendationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBRecommendationsInputDict], ) -> DescribeDBRecommendationsOutput: """ Describes the recommendations to resolve the issues for your DB instances, DB clusters, and DB parameter groups. Args: - input: - An instance of `DescribeDBRecommendationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2810,12 +4314,34 @@ def describe_db_recommendations( Returns: An instance of `DescribeDBRecommendationsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_RECOMMENDATIONS, [], plugins) + def describe_db_recommendations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBRecommendationsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_RECOMMENDATIONS, args, kwargs), + _models.DESCRIBE_DB_RECOMMENDATIONS, + [], + plugins, + ) + + @_overload + def describe_db_security_groups( + self, + request: _models.DescribeDBSecurityGroupsInput + | _models.DescribeDBSecurityGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBSecurityGroupsOutput: ... + + @_overload def describe_db_security_groups( self, - input: DescribeDBSecurityGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSecurityGroupsInputDict], ) -> DescribeDBSecurityGroupsOutput: """ Returns a list of `DBSecurityGroup` descriptions. If a @@ -2835,8 +4361,6 @@ def describe_db_security_groups( in the *Amazon RDS User Guide*. Args: - input: - An instance of `DescribeDBSecurityGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2846,19 +4370,39 @@ def describe_db_security_groups( Returns: An instance of `DescribeDBSecurityGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_SECURITY_GROUPS, [], plugins) + def describe_db_security_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSecurityGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_SECURITY_GROUPS, args, kwargs), + _models.DESCRIBE_DB_SECURITY_GROUPS, + [], + plugins, + ) + + @_overload + def describe_db_shard_groups( + self, + request: _models.DescribeDBShardGroupsInput + | _models.DescribeDBShardGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBShardGroupsOutput: ... + + @_overload def describe_db_shard_groups( self, - input: DescribeDBShardGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBShardGroupsInputDict], ) -> DescribeDBShardGroupsOutput: """ Describes existing Aurora Limitless Database DB shard groups. Args: - input: - An instance of `DescribeDBShardGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2868,12 +4412,34 @@ def describe_db_shard_groups( Returns: An instance of `DescribeDBShardGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_SHARD_GROUPS, [], plugins) + def describe_db_shard_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBShardGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_SHARD_GROUPS, args, kwargs), + _models.DESCRIBE_DB_SHARD_GROUPS, + [], + plugins, + ) + + @_overload + def describe_db_snapshot_attributes( + self, + request: _models.DescribeDBSnapshotAttributesInput + | _models.DescribeDBSnapshotAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBSnapshotAttributesOutput: ... + + @_overload def describe_db_snapshot_attributes( self, - input: DescribeDBSnapshotAttributesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSnapshotAttributesInputDict], ) -> DescribeDBSnapshotAttributesOutput: """ Returns a list of DB snapshot attribute names and values for a manual DB @@ -2892,8 +4458,6 @@ def describe_db_snapshot_attributes( or private, use the `ModifyDBSnapshotAttribute` API action. Args: - input: - An instance of `DescribeDBSnapshotAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2903,20 +4467,40 @@ def describe_db_snapshot_attributes( Returns: An instance of `DescribeDBSnapshotAttributesOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_SNAPSHOT_ATTRIBUTES, [], plugins) + def describe_db_snapshot_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSnapshotAttributesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_SNAPSHOT_ATTRIBUTES, args, kwargs), + _models.DESCRIBE_DB_SNAPSHOT_ATTRIBUTES, + [], + plugins, + ) + + @_overload def describe_db_snapshots( self, - input: DescribeDBSnapshotsInput | None = None, + request: _models.DescribeDBSnapshotsInput + | _models.DescribeDBSnapshotsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDBSnapshotsOutput: ... + + @_overload + def describe_db_snapshots( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSnapshotsInputDict], ) -> DescribeDBSnapshotsOutput: """ Returns information about DB snapshots. This API action supports pagination. Args: - input: - An instance of `DescribeDBSnapshotsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2926,12 +4510,34 @@ def describe_db_snapshots( Returns: An instance of `DescribeDBSnapshotsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_SNAPSHOTS, [], plugins) + def describe_db_snapshots( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSnapshotsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_SNAPSHOTS, args, kwargs), + _models.DESCRIBE_DB_SNAPSHOTS, + [], + plugins, + ) + + @_overload + def describe_db_snapshot_tenant_databases( + self, + request: _models.DescribeDBSnapshotTenantDatabasesInput + | _models.DescribeDBSnapshotTenantDatabasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeDBSnapshotTenantDatabasesOutput: ... + + @_overload def describe_db_snapshot_tenant_databases( self, - input: DescribeDBSnapshotTenantDatabasesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSnapshotTenantDatabasesInputDict], ) -> DescribeDBSnapshotTenantDatabasesOutput: """ Describes the tenant databases that exist in a DB snapshot. This command @@ -2945,8 +4551,6 @@ def describe_db_snapshot_tenant_databases( all its tenant databases. Args: - input: - An instance of `DescribeDBSnapshotTenantDatabasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2956,14 +4560,36 @@ def describe_db_snapshot_tenant_databases( Returns: An instance of `DescribeDBSnapshotTenantDatabasesOutput`. """ + + def describe_db_snapshot_tenant_databases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSnapshotTenantDatabasesOutput: return self._invoke( - input, _models.DESCRIBE_DB_SNAPSHOT_TENANT_DATABASES, [], plugins + self._select_input( + _models.DESCRIBE_DB_SNAPSHOT_TENANT_DATABASES, args, kwargs + ), + _models.DESCRIBE_DB_SNAPSHOT_TENANT_DATABASES, + [], + plugins, ) + @_overload def describe_db_subnet_groups( self, - input: DescribeDBSubnetGroupsInput | None = None, + request: _models.DescribeDBSubnetGroupsInput + | _models.DescribeDBSubnetGroupsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeDBSubnetGroupsOutput: ... + + @_overload + def describe_db_subnet_groups( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeDBSubnetGroupsInputDict], ) -> DescribeDBSubnetGroupsOutput: """ Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is @@ -2974,8 +4600,6 @@ def describe_db_subnet_groups( Tutorial](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). Args: - input: - An instance of `DescribeDBSubnetGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2985,12 +4609,34 @@ def describe_db_subnet_groups( Returns: An instance of `DescribeDBSubnetGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_DB_SUBNET_GROUPS, [], plugins) + def describe_db_subnet_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeDBSubnetGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_DB_SUBNET_GROUPS, args, kwargs), + _models.DESCRIBE_DB_SUBNET_GROUPS, + [], + plugins, + ) + + @_overload + def describe_engine_default_cluster_parameters( + self, + request: _models.DescribeEngineDefaultClusterParametersInput + | _models.DescribeEngineDefaultClusterParametersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEngineDefaultClusterParametersOutput: ... + + @_overload def describe_engine_default_cluster_parameters( self, - input: DescribeEngineDefaultClusterParametersInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEngineDefaultClusterParametersInputDict], ) -> DescribeEngineDefaultClusterParametersOutput: """ Returns the default engine and system parameter information for the @@ -3001,8 +4647,6 @@ def describe_engine_default_cluster_parameters( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `DescribeEngineDefaultClusterParametersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3012,22 +4656,42 @@ def describe_engine_default_cluster_parameters( Returns: An instance of `DescribeEngineDefaultClusterParametersOutput`. """ + + def describe_engine_default_cluster_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEngineDefaultClusterParametersOutput: return self._invoke( - input, _models.DESCRIBE_ENGINE_DEFAULT_CLUSTER_PARAMETERS, [], plugins + self._select_input( + _models.DESCRIBE_ENGINE_DEFAULT_CLUSTER_PARAMETERS, args, kwargs + ), + _models.DESCRIBE_ENGINE_DEFAULT_CLUSTER_PARAMETERS, + [], + plugins, ) + @_overload def describe_engine_default_parameters( self, - input: DescribeEngineDefaultParametersInput, + request: _models.DescribeEngineDefaultParametersInput + | _models.DescribeEngineDefaultParametersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeEngineDefaultParametersOutput: ... + + @_overload + def describe_engine_default_parameters( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEngineDefaultParametersInputDict], ) -> DescribeEngineDefaultParametersOutput: """ Returns the default engine and system parameter information for the specified database engine. Args: - input: - An instance of `DescribeEngineDefaultParametersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3037,14 +4701,36 @@ def describe_engine_default_parameters( Returns: An instance of `DescribeEngineDefaultParametersOutput`. """ + + def describe_engine_default_parameters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEngineDefaultParametersOutput: return self._invoke( - input, _models.DESCRIBE_ENGINE_DEFAULT_PARAMETERS, [], plugins + self._select_input( + _models.DESCRIBE_ENGINE_DEFAULT_PARAMETERS, args, kwargs + ), + _models.DESCRIBE_ENGINE_DEFAULT_PARAMETERS, + [], + plugins, ) + @_overload + def describe_event_categories( + self, + request: _models.DescribeEventCategoriesInput + | _models.DescribeEventCategoriesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEventCategoriesOutput: ... + + @_overload def describe_event_categories( self, - input: DescribeEventCategoriesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEventCategoriesInputDict], ) -> DescribeEventCategoriesOutput: """ Displays a list of categories for all event source types, or, if @@ -3057,8 +4743,6 @@ def describe_event_categories( . Args: - input: - An instance of `DescribeEventCategoriesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3068,12 +4752,33 @@ def describe_event_categories( Returns: An instance of `DescribeEventCategoriesOutput`. """ - return self._invoke(input, _models.DESCRIBE_EVENT_CATEGORIES, [], plugins) + def describe_event_categories( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEventCategoriesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_EVENT_CATEGORIES, args, kwargs), + _models.DESCRIBE_EVENT_CATEGORIES, + [], + plugins, + ) + + @_overload def describe_events( self, - input: DescribeEventsInput | None = None, + request: _models.DescribeEventsInput | _models.DescribeEventsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DescribeEventsOutput: ... + + @_overload + def describe_events( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEventsInputDict], ) -> DescribeEventsOutput: """ Returns events related to DB instances, DB clusters, DB parameter @@ -3093,8 +4798,6 @@ def describe_events( By default, RDS returns events that were generated in the past hour. Args: - input: - An instance of `DescribeEventsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3104,12 +4807,34 @@ def describe_events( Returns: An instance of `DescribeEventsOutput`. """ - return self._invoke(input, _models.DESCRIBE_EVENTS, [], plugins) + def describe_events( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEventsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_EVENTS, args, kwargs), + _models.DESCRIBE_EVENTS, + [], + plugins, + ) + + @_overload + def describe_event_subscriptions( + self, + request: _models.DescribeEventSubscriptionsInput + | _models.DescribeEventSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeEventSubscriptionsOutput: ... + + @_overload def describe_event_subscriptions( self, - input: DescribeEventSubscriptionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeEventSubscriptionsInputDict], ) -> DescribeEventSubscriptionsOutput: """ Lists all the subscription descriptions for a customer account. The @@ -3121,8 +4846,6 @@ def describe_event_subscriptions( subscription. Args: - input: - An instance of `DescribeEventSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3132,20 +4855,40 @@ def describe_event_subscriptions( Returns: An instance of `DescribeEventSubscriptionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_EVENT_SUBSCRIPTIONS, [], plugins) + def describe_event_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeEventSubscriptionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_EVENT_SUBSCRIPTIONS, args, kwargs), + _models.DESCRIBE_EVENT_SUBSCRIPTIONS, + [], + plugins, + ) + + @_overload + def describe_export_tasks( + self, + request: _models.DescribeExportTasksInput + | _models.DescribeExportTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeExportTasksOutput: ... + + @_overload def describe_export_tasks( self, - input: DescribeExportTasksInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeExportTasksInputDict], ) -> DescribeExportTasksOutput: """ Returns information about a snapshot or cluster export to Amazon S3. This API operation supports pagination. Args: - input: - An instance of `DescribeExportTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3155,12 +4898,34 @@ def describe_export_tasks( Returns: An instance of `DescribeExportTasksOutput`. """ - return self._invoke(input, _models.DESCRIBE_EXPORT_TASKS, [], plugins) + def describe_export_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeExportTasksOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_EXPORT_TASKS, args, kwargs), + _models.DESCRIBE_EXPORT_TASKS, + [], + plugins, + ) + + @_overload + def describe_global_clusters( + self, + request: _models.DescribeGlobalClustersInput + | _models.DescribeGlobalClustersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeGlobalClustersOutput: ... + + @_overload def describe_global_clusters( self, - input: DescribeGlobalClustersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeGlobalClustersInputDict], ) -> DescribeGlobalClustersOutput: """ Returns information about Aurora global database clusters. This API @@ -3174,8 +4939,6 @@ def describe_global_clusters( This action only applies to Aurora DB clusters. Args: - input: - An instance of `DescribeGlobalClustersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3185,19 +4948,39 @@ def describe_global_clusters( Returns: An instance of `DescribeGlobalClustersOutput`. """ - return self._invoke(input, _models.DESCRIBE_GLOBAL_CLUSTERS, [], plugins) + def describe_global_clusters( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeGlobalClustersOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_GLOBAL_CLUSTERS, args, kwargs), + _models.DESCRIBE_GLOBAL_CLUSTERS, + [], + plugins, + ) + + @_overload + def describe_integrations( + self, + request: _models.DescribeIntegrationsInput + | _models.DescribeIntegrationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeIntegrationsOutput: ... + + @_overload def describe_integrations( self, - input: DescribeIntegrationsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeIntegrationsInputDict], ) -> DescribeIntegrationsOutput: """ Describe one or more zero-ETL integrations with Amazon Redshift. Args: - input: - An instance of `DescribeIntegrationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3207,19 +4990,39 @@ def describe_integrations( Returns: An instance of `DescribeIntegrationsOutput`. """ - return self._invoke(input, _models.DESCRIBE_INTEGRATIONS, [], plugins) + def describe_integrations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeIntegrationsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_INTEGRATIONS, args, kwargs), + _models.DESCRIBE_INTEGRATIONS, + [], + plugins, + ) + + @_overload + def describe_option_group_options( + self, + request: _models.DescribeOptionGroupOptionsInput + | _models.DescribeOptionGroupOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOptionGroupOptionsOutput: ... + + @_overload def describe_option_group_options( self, - input: DescribeOptionGroupOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOptionGroupOptionsInputDict], ) -> DescribeOptionGroupOptionsOutput: """ Describes all available options for the specified engine. Args: - input: - An instance of `DescribeOptionGroupOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3229,19 +5032,39 @@ def describe_option_group_options( Returns: An instance of `DescribeOptionGroupOptionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_OPTION_GROUP_OPTIONS, [], plugins) + def describe_option_group_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOptionGroupOptionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_OPTION_GROUP_OPTIONS, args, kwargs), + _models.DESCRIBE_OPTION_GROUP_OPTIONS, + [], + plugins, + ) + + @_overload + def describe_option_groups( + self, + request: _models.DescribeOptionGroupsInput + | _models.DescribeOptionGroupsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOptionGroupsOutput: ... + + @_overload def describe_option_groups( self, - input: DescribeOptionGroupsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOptionGroupsInputDict], ) -> DescribeOptionGroupsOutput: """ Describes the available option groups. Args: - input: - An instance of `DescribeOptionGroupsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3251,19 +5074,39 @@ def describe_option_groups( Returns: An instance of `DescribeOptionGroupsOutput`. """ - return self._invoke(input, _models.DESCRIBE_OPTION_GROUPS, [], plugins) + def describe_option_groups( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOptionGroupsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_OPTION_GROUPS, args, kwargs), + _models.DESCRIBE_OPTION_GROUPS, + [], + plugins, + ) + + @_overload + def describe_orderable_db_instance_options( + self, + request: _models.DescribeOrderableDBInstanceOptionsInput + | _models.DescribeOrderableDBInstanceOptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeOrderableDBInstanceOptionsOutput: ... + + @_overload def describe_orderable_db_instance_options( self, - input: DescribeOrderableDBInstanceOptionsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeOrderableDBInstanceOptionsInputDict], ) -> DescribeOrderableDBInstanceOptionsOutput: """ Describes the orderable DB instance options for a specified DB engine. Args: - input: - An instance of `DescribeOrderableDBInstanceOptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3273,14 +5116,36 @@ def describe_orderable_db_instance_options( Returns: An instance of `DescribeOrderableDBInstanceOptionsOutput`. """ + + def describe_orderable_db_instance_options( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeOrderableDBInstanceOptionsOutput: return self._invoke( - input, _models.DESCRIBE_ORDERABLE_DB_INSTANCE_OPTIONS, [], plugins + self._select_input( + _models.DESCRIBE_ORDERABLE_DB_INSTANCE_OPTIONS, args, kwargs + ), + _models.DESCRIBE_ORDERABLE_DB_INSTANCE_OPTIONS, + [], + plugins, ) + @_overload + def describe_pending_maintenance_actions( + self, + request: _models.DescribePendingMaintenanceActionsInput + | _models.DescribePendingMaintenanceActionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribePendingMaintenanceActionsOutput: ... + + @_overload def describe_pending_maintenance_actions( self, - input: DescribePendingMaintenanceActionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribePendingMaintenanceActionsInputDict], ) -> DescribePendingMaintenanceActionsOutput: """ Returns a list of resources (for example, DB instances) that have at @@ -3293,8 +5158,6 @@ def describe_pending_maintenance_actions( a previous API command such as `ApplyPendingMaintenanceActions`. Args: - input: - An instance of `DescribePendingMaintenanceActionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3304,22 +5167,42 @@ def describe_pending_maintenance_actions( Returns: An instance of `DescribePendingMaintenanceActionsOutput`. """ + + def describe_pending_maintenance_actions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribePendingMaintenanceActionsOutput: return self._invoke( - input, _models.DESCRIBE_PENDING_MAINTENANCE_ACTIONS, [], plugins + self._select_input( + _models.DESCRIBE_PENDING_MAINTENANCE_ACTIONS, args, kwargs + ), + _models.DESCRIBE_PENDING_MAINTENANCE_ACTIONS, + [], + plugins, ) + @_overload + def describe_reserved_db_instances( + self, + request: _models.DescribeReservedDBInstancesInput + | _models.DescribeReservedDBInstancesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedDBInstancesOutput: ... + + @_overload def describe_reserved_db_instances( self, - input: DescribeReservedDBInstancesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedDBInstancesInputDict], ) -> DescribeReservedDBInstancesOutput: """ Returns information about reserved DB instances for this account, or about a specified reserved DB instance. Args: - input: - An instance of `DescribeReservedDBInstancesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3329,19 +5212,39 @@ def describe_reserved_db_instances( Returns: An instance of `DescribeReservedDBInstancesOutput`. """ - return self._invoke(input, _models.DESCRIBE_RESERVED_DB_INSTANCES, [], plugins) + def describe_reserved_db_instances( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedDBInstancesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_RESERVED_DB_INSTANCES, args, kwargs), + _models.DESCRIBE_RESERVED_DB_INSTANCES, + [], + plugins, + ) + + @_overload + def describe_reserved_db_instances_offerings( + self, + request: _models.DescribeReservedDBInstancesOfferingsInput + | _models.DescribeReservedDBInstancesOfferingsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeReservedDBInstancesOfferingsOutput: ... + + @_overload def describe_reserved_db_instances_offerings( self, - input: DescribeReservedDBInstancesOfferingsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeReservedDBInstancesOfferingsInputDict], ) -> DescribeReservedDBInstancesOfferingsOutput: """ Lists available reserved DB instance offerings. Args: - input: - An instance of `DescribeReservedDBInstancesOfferingsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3351,22 +5254,42 @@ def describe_reserved_db_instances_offerings( Returns: An instance of `DescribeReservedDBInstancesOfferingsOutput`. """ + + def describe_reserved_db_instances_offerings( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeReservedDBInstancesOfferingsOutput: return self._invoke( - input, _models.DESCRIBE_RESERVED_DB_INSTANCES_OFFERINGS, [], plugins + self._select_input( + _models.DESCRIBE_RESERVED_DB_INSTANCES_OFFERINGS, args, kwargs + ), + _models.DESCRIBE_RESERVED_DB_INSTANCES_OFFERINGS, + [], + plugins, ) + @_overload + def describe_serverless_v2_platform_versions( + self, + request: _models.DescribeServerlessV2PlatformVersionsInput + | _models.DescribeServerlessV2PlatformVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeServerlessV2PlatformVersionsOutput: ... + + @_overload def describe_serverless_v2_platform_versions( self, - input: DescribeServerlessV2PlatformVersionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeServerlessV2PlatformVersionsInputDict], ) -> DescribeServerlessV2PlatformVersionsOutput: """ Describes the properties of specific platform versions for Aurora Serverless v2. Args: - input: - An instance of `DescribeServerlessV2PlatformVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3376,14 +5299,36 @@ def describe_serverless_v2_platform_versions( Returns: An instance of `DescribeServerlessV2PlatformVersionsOutput`. """ + + def describe_serverless_v2_platform_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeServerlessV2PlatformVersionsOutput: return self._invoke( - input, _models.DESCRIBE_SERVERLESS_V2_PLATFORM_VERSIONS, [], plugins + self._select_input( + _models.DESCRIBE_SERVERLESS_V2_PLATFORM_VERSIONS, args, kwargs + ), + _models.DESCRIBE_SERVERLESS_V2_PLATFORM_VERSIONS, + [], + plugins, ) + @_overload + def describe_source_regions( + self, + request: _models.DescribeSourceRegionsInput + | _models.DescribeSourceRegionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSourceRegionsOutput: ... + + @_overload def describe_source_regions( self, - input: DescribeSourceRegionsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSourceRegionsInputDict], ) -> DescribeSourceRegionsOutput: """ Returns a list of the source Amazon Web Services Regions where the @@ -3401,8 +5346,6 @@ def describe_source_regions( in the *Amazon EC2 API Reference*. Args: - input: - An instance of `DescribeSourceRegionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3412,12 +5355,34 @@ def describe_source_regions( Returns: An instance of `DescribeSourceRegionsOutput`. """ - return self._invoke(input, _models.DESCRIBE_SOURCE_REGIONS, [], plugins) + def describe_source_regions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSourceRegionsOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SOURCE_REGIONS, args, kwargs), + _models.DESCRIBE_SOURCE_REGIONS, + [], + plugins, + ) + + @_overload + def describe_tenant_databases( + self, + request: _models.DescribeTenantDatabasesInput + | _models.DescribeTenantDatabasesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeTenantDatabasesOutput: ... + + @_overload def describe_tenant_databases( self, - input: DescribeTenantDatabasesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeTenantDatabasesInputDict], ) -> DescribeTenantDatabasesOutput: """ Describes the tenant databases in a DB instance that uses the @@ -3425,8 +5390,6 @@ def describe_tenant_databases( supported. Args: - input: - An instance of `DescribeTenantDatabasesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3436,12 +5399,34 @@ def describe_tenant_databases( Returns: An instance of `DescribeTenantDatabasesOutput`. """ - return self._invoke(input, _models.DESCRIBE_TENANT_DATABASES, [], plugins) + def describe_tenant_databases( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeTenantDatabasesOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_TENANT_DATABASES, args, kwargs), + _models.DESCRIBE_TENANT_DATABASES, + [], + plugins, + ) + + @_overload + def describe_valid_db_instance_modifications( + self, + request: _models.DescribeValidDBInstanceModificationsInput + | _models.DescribeValidDBInstanceModificationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeValidDBInstanceModificationsOutput: ... + + @_overload def describe_valid_db_instance_modifications( self, - input: DescribeValidDBInstanceModificationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeValidDBInstanceModificationsInputDict], ) -> DescribeValidDBInstanceModificationsOutput: """ You can call `DescribeValidDBInstanceModifications` to learn what @@ -3451,8 +5436,6 @@ def describe_valid_db_instance_modifications( This command doesn't apply to RDS Custom. Args: - input: - An instance of `DescribeValidDBInstanceModificationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3462,12 +5445,36 @@ def describe_valid_db_instance_modifications( Returns: An instance of `DescribeValidDBInstanceModificationsOutput`. """ + + def describe_valid_db_instance_modifications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeValidDBInstanceModificationsOutput: return self._invoke( - input, _models.DESCRIBE_VALID_DB_INSTANCE_MODIFICATIONS, [], plugins + self._select_input( + _models.DESCRIBE_VALID_DB_INSTANCE_MODIFICATIONS, args, kwargs + ), + _models.DESCRIBE_VALID_DB_INSTANCE_MODIFICATIONS, + [], + plugins, ) + @_overload + def disable_http_endpoint( + self, + request: _models.DisableHttpEndpointInput + | _models.DisableHttpEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DisableHttpEndpointOutput: ... + + @_overload def disable_http_endpoint( - self, input: DisableHttpEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DisableHttpEndpointInputDict], ) -> DisableHttpEndpointOutput: """ Disables the HTTP endpoint for the specified DB cluster. Disabling this @@ -3484,8 +5491,6 @@ def disable_http_endpoint( `ModifyDBCluster` operation. Args: - input: - An instance of `DisableHttpEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3495,10 +5500,34 @@ def disable_http_endpoint( Returns: An instance of `DisableHttpEndpointOutput`. """ - return self._invoke(input, _models.DISABLE_HTTP_ENDPOINT, [], plugins) + def disable_http_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DisableHttpEndpointOutput: + return self._invoke( + self._select_input(_models.DISABLE_HTTP_ENDPOINT, args, kwargs), + _models.DISABLE_HTTP_ENDPOINT, + [], + plugins, + ) + + @_overload def download_db_log_file_portion( - self, input: DownloadDBLogFilePortionInput, plugins: list[Plugin] | None = None + self, + request: _models.DownloadDBLogFilePortionInput + | _models.DownloadDBLogFilePortionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DownloadDBLogFilePortionOutput: ... + + @_overload + def download_db_log_file_portion( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DownloadDBLogFilePortionInputDict], ) -> DownloadDBLogFilePortionOutput: """ Downloads all or a portion of the specified log file, up to 1 MB in @@ -3514,8 +5543,6 @@ def download_db_log_file_portion( in the *Amazon CloudWatch Logs API Reference*. Args: - input: - An instance of `DownloadDBLogFilePortionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3525,11 +5552,34 @@ def download_db_log_file_portion( Returns: An instance of `DownloadDBLogFilePortionOutput`. """ - return self._invoke(input, _models.DOWNLOAD_DB_LOG_FILE_PORTION, [], plugins) - def enable_http_endpoint( - self, input: EnableHttpEndpointInput, plugins: list[Plugin] | None = None - ) -> EnableHttpEndpointOutput: + def download_db_log_file_portion( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DownloadDBLogFilePortionOutput: + return self._invoke( + self._select_input(_models.DOWNLOAD_DB_LOG_FILE_PORTION, args, kwargs), + _models.DOWNLOAD_DB_LOG_FILE_PORTION, + [], + plugins, + ) + + @_overload + def enable_http_endpoint( + self, + request: _models.EnableHttpEndpointInput | _models.EnableHttpEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> EnableHttpEndpointOutput: ... + + @_overload + def enable_http_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.EnableHttpEndpointInputDict], + ) -> EnableHttpEndpointOutput: """ Enables the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled. @@ -3550,8 +5600,6 @@ def enable_http_endpoint( `ModifyDBCluster` operation. Args: - input: - An instance of `EnableHttpEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3561,10 +5609,33 @@ def enable_http_endpoint( Returns: An instance of `EnableHttpEndpointOutput`. """ - return self._invoke(input, _models.ENABLE_HTTP_ENDPOINT, [], plugins) + def enable_http_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> EnableHttpEndpointOutput: + return self._invoke( + self._select_input(_models.ENABLE_HTTP_ENDPOINT, args, kwargs), + _models.ENABLE_HTTP_ENDPOINT, + [], + plugins, + ) + + @_overload def failover_db_cluster( - self, input: FailoverDBClusterInput, plugins: list[Plugin] | None = None + self, + request: _models.FailoverDBClusterInput | _models.FailoverDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> FailoverDBClusterOutput: ... + + @_overload + def failover_db_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.FailoverDBClusterInputDict], ) -> FailoverDBClusterOutput: """ Forces a failover for a DB cluster. @@ -3598,8 +5669,6 @@ def failover_db_cluster( in the *Amazon RDS User Guide*. Args: - input: - An instance of `FailoverDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3609,10 +5678,34 @@ def failover_db_cluster( Returns: An instance of `FailoverDBClusterOutput`. """ - return self._invoke(input, _models.FAILOVER_DB_CLUSTER, [], plugins) + def failover_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> FailoverDBClusterOutput: + return self._invoke( + self._select_input(_models.FAILOVER_DB_CLUSTER, args, kwargs), + _models.FAILOVER_DB_CLUSTER, + [], + plugins, + ) + + @_overload def failover_global_cluster( - self, input: FailoverGlobalClusterInput, plugins: list[Plugin] | None = None + self, + request: _models.FailoverGlobalClusterInput + | _models.FailoverGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> FailoverGlobalClusterOutput: ... + + @_overload + def failover_global_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.FailoverGlobalClusterInputDict], ) -> FailoverGlobalClusterOutput: """ Promotes the specified secondary DB cluster to be the primary DB cluster @@ -3665,8 +5758,6 @@ def failover_global_cluster( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `FailoverGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3676,10 +5767,34 @@ def failover_global_cluster( Returns: An instance of `FailoverGlobalClusterOutput`. """ - return self._invoke(input, _models.FAILOVER_GLOBAL_CLUSTER, [], plugins) + def failover_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> FailoverGlobalClusterOutput: + return self._invoke( + self._select_input(_models.FAILOVER_GLOBAL_CLUSTER, args, kwargs), + _models.FAILOVER_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload + def list_tags_for_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ Lists all tags on an Amazon RDS resource. @@ -3692,8 +5807,6 @@ def list_tags_for_resource( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3703,12 +5816,34 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload def modify_activity_stream( self, - input: ModifyActivityStreamInput | None = None, + request: _models.ModifyActivityStreamInput + | _models.ModifyActivityStreamInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyActivityStreamOutput: ... + + @_overload + def modify_activity_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyActivityStreamInputDict], ) -> ModifyActivityStreamOutput: """ Changes the audit policy state of a database activity stream to either @@ -3723,8 +5858,6 @@ def modify_activity_stream( This operation is supported for RDS for Oracle and Microsoft SQL Server. Args: - input: - An instance of `ModifyActivityStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3734,12 +5867,33 @@ def modify_activity_stream( Returns: An instance of `ModifyActivityStreamOutput`. """ - return self._invoke(input, _models.MODIFY_ACTIVITY_STREAM, [], plugins) + def modify_activity_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyActivityStreamOutput: + return self._invoke( + self._select_input(_models.MODIFY_ACTIVITY_STREAM, args, kwargs), + _models.MODIFY_ACTIVITY_STREAM, + [], + plugins, + ) + + @_overload def modify_certificates( self, - input: ModifyCertificatesInput | None = None, + request: _models.ModifyCertificatesInput | _models.ModifyCertificatesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyCertificatesOutput: ... + + @_overload + def modify_certificates( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCertificatesInputDict], ) -> ModifyCertificatesOutput: """ Override the system-default Secure Sockets Layer/Transport Layer @@ -3776,8 +5930,6 @@ def modify_certificates( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `ModifyCertificatesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3787,12 +5939,34 @@ def modify_certificates( Returns: An instance of `ModifyCertificatesOutput`. """ - return self._invoke(input, _models.MODIFY_CERTIFICATES, [], plugins) + def modify_certificates( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCertificatesOutput: + return self._invoke( + self._select_input(_models.MODIFY_CERTIFICATES, args, kwargs), + _models.MODIFY_CERTIFICATES, + [], + plugins, + ) + + @_overload + def modify_current_db_cluster_capacity( + self, + request: _models.ModifyCurrentDBClusterCapacityInput + | _models.ModifyCurrentDBClusterCapacityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCurrentDBClusterCapacityOutput: ... + + @_overload def modify_current_db_cluster_capacity( self, - input: ModifyCurrentDBClusterCapacityInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCurrentDBClusterCapacityInputDict], ) -> ModifyCurrentDBClusterCapacityOutput: """ Set the capacity of an Aurora Serverless v1 DB cluster to a specific @@ -3823,8 +5997,6 @@ def modify_current_db_cluster_capacity( This operation only applies to Aurora Serverless v1 DB clusters. Args: - input: - An instance of `ModifyCurrentDBClusterCapacityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3834,14 +6006,36 @@ def modify_current_db_cluster_capacity( Returns: An instance of `ModifyCurrentDBClusterCapacityOutput`. """ + + def modify_current_db_cluster_capacity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCurrentDBClusterCapacityOutput: return self._invoke( - input, _models.MODIFY_CURRENT_DB_CLUSTER_CAPACITY, [], plugins + self._select_input( + _models.MODIFY_CURRENT_DB_CLUSTER_CAPACITY, args, kwargs + ), + _models.MODIFY_CURRENT_DB_CLUSTER_CAPACITY, + [], + plugins, ) + @_overload + def modify_custom_db_engine_version( + self, + request: _models.ModifyCustomDBEngineVersionInput + | _models.ModifyCustomDBEngineVersionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyCustomDBEngineVersionOutput: ... + + @_overload def modify_custom_db_engine_version( self, - input: ModifyCustomDBEngineVersionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyCustomDBEngineVersionInputDict], ) -> ModifyCustomDBEngineVersionOutput: """ Modifies the status of a custom engine version (CEV). You can find CEVs @@ -3861,8 +6055,6 @@ def modify_custom_db_engine_version( in the *Amazon RDS User Guide*. Args: - input: - An instance of `ModifyCustomDBEngineVersionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3872,12 +6064,34 @@ def modify_custom_db_engine_version( Returns: An instance of `ModifyCustomDBEngineVersionOutput`. """ - return self._invoke(input, _models.MODIFY_CUSTOM_DB_ENGINE_VERSION, [], plugins) + def modify_custom_db_engine_version( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyCustomDBEngineVersionOutput: + return self._invoke( + self._select_input(_models.MODIFY_CUSTOM_DB_ENGINE_VERSION, args, kwargs), + _models.MODIFY_CUSTOM_DB_ENGINE_VERSION, + [], + plugins, + ) + + @_overload + def modify_db_capacity_reservation( + self, + request: _models.ModifyDBCapacityReservationInput + | _models.ModifyDBCapacityReservationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBCapacityReservationOutput: ... + + @_overload def modify_db_capacity_reservation( self, - input: ModifyDBCapacityReservationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBCapacityReservationInputDict], ) -> ModifyDBCapacityReservationOutput: """ Modifies a DB capacity reservation. You can change the reserved capacity @@ -3894,8 +6108,6 @@ def modify_db_capacity_reservation( and Amazon RDS rejects it. Args: - input: - An instance of `ModifyDBCapacityReservationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3905,10 +6117,33 @@ def modify_db_capacity_reservation( Returns: An instance of `ModifyDBCapacityReservationOutput`. """ - return self._invoke(input, _models.MODIFY_DB_CAPACITY_RESERVATION, [], plugins) + def modify_db_capacity_reservation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBCapacityReservationOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_CAPACITY_RESERVATION, args, kwargs), + _models.MODIFY_DB_CAPACITY_RESERVATION, + [], + plugins, + ) + + @_overload + def modify_db_cluster( + self, + request: _models.ModifyDBClusterInput | _models.ModifyDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBClusterOutput: ... + + @_overload def modify_db_cluster( - self, input: ModifyDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBClusterInputDict], ) -> ModifyDBClusterOutput: """ Modifies the settings of an Amazon Aurora DB cluster or a Multi-AZ DB @@ -3924,8 +6159,6 @@ def modify_db_cluster( in the *Amazon RDS User Guide*. Args: - input: - An instance of `ModifyDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3935,10 +6168,34 @@ def modify_db_cluster( Returns: An instance of `ModifyDBClusterOutput`. """ - return self._invoke(input, _models.MODIFY_DB_CLUSTER, [], plugins) + def modify_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBClusterOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_CLUSTER, args, kwargs), + _models.MODIFY_DB_CLUSTER, + [], + plugins, + ) + + @_overload def modify_db_cluster_endpoint( - self, input: ModifyDBClusterEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyDBClusterEndpointInput + | _models.ModifyDBClusterEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBClusterEndpointOutput: ... + + @_overload + def modify_db_cluster_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBClusterEndpointInputDict], ) -> ModifyDBClusterEndpointOutput: """ Modifies the properties of an endpoint in an Amazon Aurora DB cluster. @@ -3947,8 +6204,6 @@ def modify_db_cluster_endpoint( This operation only applies to Aurora DB clusters. Args: - input: - An instance of `ModifyDBClusterEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3958,12 +6213,34 @@ def modify_db_cluster_endpoint( Returns: An instance of `ModifyDBClusterEndpointOutput`. """ - return self._invoke(input, _models.MODIFY_DB_CLUSTER_ENDPOINT, [], plugins) + def modify_db_cluster_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBClusterEndpointOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_CLUSTER_ENDPOINT, args, kwargs), + _models.MODIFY_DB_CLUSTER_ENDPOINT, + [], + plugins, + ) + + @_overload def modify_db_cluster_parameter_group( self, - input: ModifyDBClusterParameterGroupInput, + request: _models.ModifyDBClusterParameterGroupInput + | _models.ModifyDBClusterParameterGroupInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyDBClusterParameterGroupOutput: ... + + @_overload + def modify_db_cluster_parameter_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBClusterParameterGroupInputDict], ) -> ModifyDBClusterParameterGroupOutput: """ Modifies the parameters of a DB cluster parameter group. To modify more @@ -3990,8 +6267,6 @@ def modify_db_cluster_parameter_group( in the *Amazon RDS User Guide.* Args: - input: - An instance of `ModifyDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4001,14 +6276,34 @@ def modify_db_cluster_parameter_group( Returns: An instance of `ModifyDBClusterParameterGroupOutput`. """ + + def modify_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBClusterParameterGroupOutput: return self._invoke( - input, _models.MODIFY_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.MODIFY_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.MODIFY_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload def modify_db_cluster_snapshot_attribute( self, - input: ModifyDBClusterSnapshotAttributeInput, + request: _models.ModifyDBClusterSnapshotAttributeInput + | _models.ModifyDBClusterSnapshotAttributeInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ModifyDBClusterSnapshotAttributeOutput: ... + + @_overload + def modify_db_cluster_snapshot_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBClusterSnapshotAttributeInputDict], ) -> ModifyDBClusterSnapshotAttributeOutput: """ Adds an attribute and values to, or removes an attribute and values @@ -4039,8 +6334,6 @@ def modify_db_cluster_snapshot_attribute( returned as values for the `restore` attribute. Args: - input: - An instance of `ModifyDBClusterSnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4050,12 +6343,35 @@ def modify_db_cluster_snapshot_attribute( Returns: An instance of `ModifyDBClusterSnapshotAttributeOutput`. """ + + def modify_db_cluster_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBClusterSnapshotAttributeOutput: return self._invoke( - input, _models.MODIFY_DB_CLUSTER_SNAPSHOT_ATTRIBUTE, [], plugins + self._select_input( + _models.MODIFY_DB_CLUSTER_SNAPSHOT_ATTRIBUTE, args, kwargs + ), + _models.MODIFY_DB_CLUSTER_SNAPSHOT_ATTRIBUTE, + [], + plugins, ) + @_overload + def modify_db_instance( + self, + request: _models.ModifyDBInstanceInput | _models.ModifyDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBInstanceOutput: ... + + @_overload def modify_db_instance( - self, input: ModifyDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBInstanceInputDict], ) -> ModifyDBInstanceOutput: """ Modifies settings for a DB instance. You can change one or more database @@ -4065,8 +6381,6 @@ def modify_db_instance( `ModifyDBInstance`. Args: - input: - An instance of `ModifyDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4076,10 +6390,34 @@ def modify_db_instance( Returns: An instance of `ModifyDBInstanceOutput`. """ - return self._invoke(input, _models.MODIFY_DB_INSTANCE, [], plugins) + def modify_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBInstanceOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_INSTANCE, args, kwargs), + _models.MODIFY_DB_INSTANCE, + [], + plugins, + ) + + @_overload + def modify_db_parameter_group( + self, + request: _models.ModifyDBParameterGroupInput + | _models.ModifyDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBParameterGroupOutput: ... + + @_overload def modify_db_parameter_group( - self, input: ModifyDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBParameterGroupInputDict], ) -> ModifyDBParameterGroupOutput: """ Modifies the parameters of a DB parameter group. To modify more than one @@ -4102,8 +6440,6 @@ def modify_db_parameter_group( has been created or modified. Args: - input: - An instance of `ModifyDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4113,17 +6449,38 @@ def modify_db_parameter_group( Returns: An instance of `ModifyDBParameterGroupOutput`. """ - return self._invoke(input, _models.MODIFY_DB_PARAMETER_GROUP, [], plugins) + def modify_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBParameterGroupOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_PARAMETER_GROUP, args, kwargs), + _models.MODIFY_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + def modify_db_proxy( + self, + request: _models.ModifyDBProxyInput | _models.ModifyDBProxyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBProxyOutput: ... + + @_overload def modify_db_proxy( - self, input: ModifyDBProxyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBProxyInputDict], ) -> ModifyDBProxyOutput: """ Changes the settings for an existing DB proxy. Args: - input: - An instance of `ModifyDBProxyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4133,17 +6490,39 @@ def modify_db_proxy( Returns: An instance of `ModifyDBProxyOutput`. """ - return self._invoke(input, _models.MODIFY_DB_PROXY, [], plugins) + def modify_db_proxy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBProxyOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_PROXY, args, kwargs), + _models.MODIFY_DB_PROXY, + [], + plugins, + ) + + @_overload + def modify_db_proxy_endpoint( + self, + request: _models.ModifyDBProxyEndpointInput + | _models.ModifyDBProxyEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBProxyEndpointOutput: ... + + @_overload def modify_db_proxy_endpoint( - self, input: ModifyDBProxyEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBProxyEndpointInputDict], ) -> ModifyDBProxyEndpointOutput: """ Changes the settings for an existing DB proxy endpoint. Args: - input: - An instance of `ModifyDBProxyEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4153,17 +6532,39 @@ def modify_db_proxy_endpoint( Returns: An instance of `ModifyDBProxyEndpointOutput`. """ - return self._invoke(input, _models.MODIFY_DB_PROXY_ENDPOINT, [], plugins) + def modify_db_proxy_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBProxyEndpointOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_PROXY_ENDPOINT, args, kwargs), + _models.MODIFY_DB_PROXY_ENDPOINT, + [], + plugins, + ) + + @_overload + def modify_db_proxy_target_group( + self, + request: _models.ModifyDBProxyTargetGroupInput + | _models.ModifyDBProxyTargetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBProxyTargetGroupOutput: ... + + @_overload def modify_db_proxy_target_group( - self, input: ModifyDBProxyTargetGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBProxyTargetGroupInputDict], ) -> ModifyDBProxyTargetGroupOutput: """ Modifies the properties of a `DBProxyTargetGroup`. Args: - input: - An instance of `ModifyDBProxyTargetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4173,18 +6574,40 @@ def modify_db_proxy_target_group( Returns: An instance of `ModifyDBProxyTargetGroupOutput`. """ - return self._invoke(input, _models.MODIFY_DB_PROXY_TARGET_GROUP, [], plugins) + def modify_db_proxy_target_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBProxyTargetGroupOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_PROXY_TARGET_GROUP, args, kwargs), + _models.MODIFY_DB_PROXY_TARGET_GROUP, + [], + plugins, + ) + + @_overload + def modify_db_recommendation( + self, + request: _models.ModifyDBRecommendationInput + | _models.ModifyDBRecommendationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBRecommendationOutput: ... + + @_overload def modify_db_recommendation( - self, input: ModifyDBRecommendationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBRecommendationInputDict], ) -> ModifyDBRecommendationOutput: """ Updates the recommendation status and recommended action status for the specified recommendation. Args: - input: - An instance of `ModifyDBRecommendationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4194,10 +6617,33 @@ def modify_db_recommendation( Returns: An instance of `ModifyDBRecommendationOutput`. """ - return self._invoke(input, _models.MODIFY_DB_RECOMMENDATION, [], plugins) + def modify_db_recommendation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBRecommendationOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_RECOMMENDATION, args, kwargs), + _models.MODIFY_DB_RECOMMENDATION, + [], + plugins, + ) + + @_overload def modify_db_shard_group( - self, input: ModifyDBShardGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyDBShardGroupInput | _models.ModifyDBShardGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBShardGroupOutput: ... + + @_overload + def modify_db_shard_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBShardGroupInputDict], ) -> ModifyDBShardGroupOutput: """ Modifies the settings of an Aurora Limitless Database DB shard group. @@ -4205,8 +6651,6 @@ def modify_db_shard_group( the new values in the request. Args: - input: - An instance of `ModifyDBShardGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4216,10 +6660,33 @@ def modify_db_shard_group( Returns: An instance of `ModifyDBShardGroupOutput`. """ - return self._invoke(input, _models.MODIFY_DB_SHARD_GROUP, [], plugins) + def modify_db_shard_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBShardGroupOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_SHARD_GROUP, args, kwargs), + _models.MODIFY_DB_SHARD_GROUP, + [], + plugins, + ) + + @_overload def modify_db_snapshot( - self, input: ModifyDBSnapshotInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyDBSnapshotInput | _models.ModifyDBSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBSnapshotOutput: ... + + @_overload + def modify_db_snapshot( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBSnapshotInputDict], ) -> ModifyDBSnapshotOutput: """ Updates a manual DB snapshot with a new engine version. The snapshot can @@ -4230,8 +6697,6 @@ def modify_db_snapshot( RDS for Db2. Args: - input: - An instance of `ModifyDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4241,10 +6706,34 @@ def modify_db_snapshot( Returns: An instance of `ModifyDBSnapshotOutput`. """ - return self._invoke(input, _models.MODIFY_DB_SNAPSHOT, [], plugins) + def modify_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBSnapshotOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_SNAPSHOT, args, kwargs), + _models.MODIFY_DB_SNAPSHOT, + [], + plugins, + ) + + @_overload def modify_db_snapshot_attribute( - self, input: ModifyDBSnapshotAttributeInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyDBSnapshotAttributeInput + | _models.ModifyDBSnapshotAttributeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBSnapshotAttributeOutput: ... + + @_overload + def modify_db_snapshot_attribute( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBSnapshotAttributeInputDict], ) -> ModifyDBSnapshotAttributeOutput: """ Adds an attribute and values to, or removes an attribute and values @@ -4273,8 +6762,6 @@ def modify_db_snapshot_attribute( accounts are returned as values for the `restore` attribute. Args: - input: - An instance of `ModifyDBSnapshotAttributeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4284,18 +6771,40 @@ def modify_db_snapshot_attribute( Returns: An instance of `ModifyDBSnapshotAttributeOutput`. """ - return self._invoke(input, _models.MODIFY_DB_SNAPSHOT_ATTRIBUTE, [], plugins) + def modify_db_snapshot_attribute( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBSnapshotAttributeOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_SNAPSHOT_ATTRIBUTE, args, kwargs), + _models.MODIFY_DB_SNAPSHOT_ATTRIBUTE, + [], + plugins, + ) + + @_overload def modify_db_subnet_group( - self, input: ModifyDBSubnetGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyDBSubnetGroupInput + | _models.ModifyDBSubnetGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyDBSubnetGroupOutput: ... + + @_overload + def modify_db_subnet_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyDBSubnetGroupInputDict], ) -> ModifyDBSubnetGroupOutput: """ Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Web Services Region. Args: - input: - An instance of `ModifyDBSubnetGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4305,10 +6814,34 @@ def modify_db_subnet_group( Returns: An instance of `ModifyDBSubnetGroupOutput`. """ - return self._invoke(input, _models.MODIFY_DB_SUBNET_GROUP, [], plugins) + def modify_db_subnet_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyDBSubnetGroupOutput: + return self._invoke( + self._select_input(_models.MODIFY_DB_SUBNET_GROUP, args, kwargs), + _models.MODIFY_DB_SUBNET_GROUP, + [], + plugins, + ) + + @_overload def modify_event_subscription( - self, input: ModifyEventSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyEventSubscriptionInput + | _models.ModifyEventSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyEventSubscriptionOutput: ... + + @_overload + def modify_event_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyEventSubscriptionInputDict], ) -> ModifyEventSubscriptionOutput: """ Modifies an existing RDS event notification subscription. You can't @@ -4324,8 +6857,6 @@ def modify_event_subscription( operation. Args: - input: - An instance of `ModifyEventSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4335,10 +6866,34 @@ def modify_event_subscription( Returns: An instance of `ModifyEventSubscriptionOutput`. """ - return self._invoke(input, _models.MODIFY_EVENT_SUBSCRIPTION, [], plugins) + def modify_event_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyEventSubscriptionOutput: + return self._invoke( + self._select_input(_models.MODIFY_EVENT_SUBSCRIPTION, args, kwargs), + _models.MODIFY_EVENT_SUBSCRIPTION, + [], + plugins, + ) + + @_overload def modify_global_cluster( - self, input: ModifyGlobalClusterInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyGlobalClusterInput + | _models.ModifyGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyGlobalClusterOutput: ... + + @_overload + def modify_global_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyGlobalClusterInputDict], ) -> ModifyGlobalClusterOutput: """ Modifies a setting for an Amazon Aurora global database cluster. You can @@ -4352,8 +6907,6 @@ def modify_global_cluster( This operation only applies to Aurora global database clusters. Args: - input: - An instance of `ModifyGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4363,17 +6916,38 @@ def modify_global_cluster( Returns: An instance of `ModifyGlobalClusterOutput`. """ - return self._invoke(input, _models.MODIFY_GLOBAL_CLUSTER, [], plugins) + def modify_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyGlobalClusterOutput: + return self._invoke( + self._select_input(_models.MODIFY_GLOBAL_CLUSTER, args, kwargs), + _models.MODIFY_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload def modify_integration( - self, input: ModifyIntegrationInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyIntegrationInput | _models.ModifyIntegrationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyIntegrationOutput: ... + + @_overload + def modify_integration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyIntegrationInputDict], ) -> ModifyIntegrationOutput: """ Modifies a zero-ETL integration with Amazon Redshift. Args: - input: - An instance of `ModifyIntegrationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4383,17 +6957,38 @@ def modify_integration( Returns: An instance of `ModifyIntegrationOutput`. """ - return self._invoke(input, _models.MODIFY_INTEGRATION, [], plugins) + def modify_integration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyIntegrationOutput: + return self._invoke( + self._select_input(_models.MODIFY_INTEGRATION, args, kwargs), + _models.MODIFY_INTEGRATION, + [], + plugins, + ) + + @_overload def modify_option_group( - self, input: ModifyOptionGroupInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyOptionGroupInput | _models.ModifyOptionGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyOptionGroupOutput: ... + + @_overload + def modify_option_group( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyOptionGroupInputDict], ) -> ModifyOptionGroupOutput: """ Modifies an existing option group. Args: - input: - An instance of `ModifyOptionGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4403,10 +6998,34 @@ def modify_option_group( Returns: An instance of `ModifyOptionGroupOutput`. """ - return self._invoke(input, _models.MODIFY_OPTION_GROUP, [], plugins) + def modify_option_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyOptionGroupOutput: + return self._invoke( + self._select_input(_models.MODIFY_OPTION_GROUP, args, kwargs), + _models.MODIFY_OPTION_GROUP, + [], + plugins, + ) + + @_overload def modify_tenant_database( - self, input: ModifyTenantDatabaseInput, plugins: list[Plugin] | None = None + self, + request: _models.ModifyTenantDatabaseInput + | _models.ModifyTenantDatabaseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ModifyTenantDatabaseOutput: ... + + @_overload + def modify_tenant_database( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ModifyTenantDatabaseInputDict], ) -> ModifyTenantDatabaseOutput: """ Modifies an existing tenant database in a DB instance. You can change @@ -4415,8 +7034,6 @@ def modify_tenant_database( configuration. Args: - input: - An instance of `ModifyTenantDatabaseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4426,10 +7043,33 @@ def modify_tenant_database( Returns: An instance of `ModifyTenantDatabaseOutput`. """ - return self._invoke(input, _models.MODIFY_TENANT_DATABASE, [], plugins) + def modify_tenant_database( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ModifyTenantDatabaseOutput: + return self._invoke( + self._select_input(_models.MODIFY_TENANT_DATABASE, args, kwargs), + _models.MODIFY_TENANT_DATABASE, + [], + plugins, + ) + + @_overload def promote_read_replica( - self, input: PromoteReadReplicaInput, plugins: list[Plugin] | None = None + self, + request: _models.PromoteReadReplicaInput | _models.PromoteReadReplicaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PromoteReadReplicaOutput: ... + + @_overload + def promote_read_replica( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PromoteReadReplicaInputDict], ) -> PromoteReadReplicaOutput: """ Promotes a read replica DB instance to a standalone DB instance. @@ -4448,8 +7088,6 @@ def promote_read_replica( Custom. Args: - input: - An instance of `PromoteReadReplicaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4459,19 +7097,39 @@ def promote_read_replica( Returns: An instance of `PromoteReadReplicaOutput`. """ - return self._invoke(input, _models.PROMOTE_READ_REPLICA, [], plugins) + def promote_read_replica( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PromoteReadReplicaOutput: + return self._invoke( + self._select_input(_models.PROMOTE_READ_REPLICA, args, kwargs), + _models.PROMOTE_READ_REPLICA, + [], + plugins, + ) + + @_overload def promote_read_replica_db_cluster( self, - input: PromoteReadReplicaDBClusterInput, + request: _models.PromoteReadReplicaDBClusterInput + | _models.PromoteReadReplicaDBClusterInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> PromoteReadReplicaDBClusterOutput: ... + + @_overload + def promote_read_replica_db_cluster( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PromoteReadReplicaDBClusterInputDict], ) -> PromoteReadReplicaDBClusterOutput: """ Promotes a read replica DB cluster to a standalone DB cluster. Args: - input: - An instance of `PromoteReadReplicaDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4481,19 +7139,39 @@ def promote_read_replica_db_cluster( Returns: An instance of `PromoteReadReplicaDBClusterOutput`. """ - return self._invoke(input, _models.PROMOTE_READ_REPLICA_DB_CLUSTER, [], plugins) + def promote_read_replica_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PromoteReadReplicaDBClusterOutput: + return self._invoke( + self._select_input(_models.PROMOTE_READ_REPLICA_DB_CLUSTER, args, kwargs), + _models.PROMOTE_READ_REPLICA_DB_CLUSTER, + [], + plugins, + ) + + @_overload def purchase_reserved_db_instances_offering( self, - input: PurchaseReservedDBInstancesOfferingInput, + request: _models.PurchaseReservedDBInstancesOfferingInput + | _models.PurchaseReservedDBInstancesOfferingInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> PurchaseReservedDBInstancesOfferingOutput: ... + + @_overload + def purchase_reserved_db_instances_offering( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurchaseReservedDBInstancesOfferingInputDict], ) -> PurchaseReservedDBInstancesOfferingOutput: """ Purchases a reserved DB instance offering. Args: - input: - An instance of `PurchaseReservedDBInstancesOfferingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4503,12 +7181,35 @@ def purchase_reserved_db_instances_offering( Returns: An instance of `PurchaseReservedDBInstancesOfferingOutput`. """ + + def purchase_reserved_db_instances_offering( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurchaseReservedDBInstancesOfferingOutput: return self._invoke( - input, _models.PURCHASE_RESERVED_DB_INSTANCES_OFFERING, [], plugins + self._select_input( + _models.PURCHASE_RESERVED_DB_INSTANCES_OFFERING, args, kwargs + ), + _models.PURCHASE_RESERVED_DB_INSTANCES_OFFERING, + [], + plugins, ) + @_overload + def reboot_db_cluster( + self, + request: _models.RebootDBClusterInput | _models.RebootDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RebootDBClusterOutput: ... + + @_overload def reboot_db_cluster( - self, input: RebootDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RebootDBClusterInputDict], ) -> RebootDBClusterOutput: """ You might need to reboot your DB cluster, usually for maintenance @@ -4527,8 +7228,6 @@ def reboot_db_cluster( in the *Amazon RDS User Guide.* Args: - input: - An instance of `RebootDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4538,10 +7237,33 @@ def reboot_db_cluster( Returns: An instance of `RebootDBClusterOutput`. """ - return self._invoke(input, _models.REBOOT_DB_CLUSTER, [], plugins) + def reboot_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RebootDBClusterOutput: + return self._invoke( + self._select_input(_models.REBOOT_DB_CLUSTER, args, kwargs), + _models.REBOOT_DB_CLUSTER, + [], + plugins, + ) + + @_overload + def reboot_db_instance( + self, + request: _models.RebootDBInstanceInput | _models.RebootDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RebootDBInstanceOutput: ... + + @_overload def reboot_db_instance( - self, input: RebootDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RebootDBInstanceInputDict], ) -> RebootDBInstanceOutput: """ You might need to reboot your DB instance, usually for maintenance @@ -4563,8 +7285,6 @@ def reboot_db_instance( DB cluster with the `RebootDBCluster` operation. Args: - input: - An instance of `RebootDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4574,10 +7294,33 @@ def reboot_db_instance( Returns: An instance of `RebootDBInstanceOutput`. """ - return self._invoke(input, _models.REBOOT_DB_INSTANCE, [], plugins) + def reboot_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RebootDBInstanceOutput: + return self._invoke( + self._select_input(_models.REBOOT_DB_INSTANCE, args, kwargs), + _models.REBOOT_DB_INSTANCE, + [], + plugins, + ) + + @_overload + def reboot_db_shard_group( + self, + request: _models.RebootDBShardGroupInput | _models.RebootDBShardGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RebootDBShardGroupOutput: ... + + @_overload def reboot_db_shard_group( - self, input: RebootDBShardGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RebootDBShardGroupInputDict], ) -> RebootDBShardGroupOutput: """ You might need to reboot your DB shard group, usually for maintenance @@ -4588,8 +7331,6 @@ def reboot_db_shard_group( groups. Args: - input: - An instance of `RebootDBShardGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4599,18 +7340,40 @@ def reboot_db_shard_group( Returns: An instance of `RebootDBShardGroupOutput`. """ - return self._invoke(input, _models.REBOOT_DB_SHARD_GROUP, [], plugins) + def reboot_db_shard_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RebootDBShardGroupOutput: + return self._invoke( + self._select_input(_models.REBOOT_DB_SHARD_GROUP, args, kwargs), + _models.REBOOT_DB_SHARD_GROUP, + [], + plugins, + ) + + @_overload + def register_db_proxy_targets( + self, + request: _models.RegisterDBProxyTargetsInput + | _models.RegisterDBProxyTargetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RegisterDBProxyTargetsOutput: ... + + @_overload def register_db_proxy_targets( - self, input: RegisterDBProxyTargetsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RegisterDBProxyTargetsInputDict], ) -> RegisterDBProxyTargetsOutput: """ Associate one or more `DBProxyTarget` data structures with a `DBProxyTargetGroup`. Args: - input: - An instance of `RegisterDBProxyTargetsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4620,10 +7383,34 @@ def register_db_proxy_targets( Returns: An instance of `RegisterDBProxyTargetsOutput`. """ - return self._invoke(input, _models.REGISTER_DB_PROXY_TARGETS, [], plugins) + def register_db_proxy_targets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RegisterDBProxyTargetsOutput: + return self._invoke( + self._select_input(_models.REGISTER_DB_PROXY_TARGETS, args, kwargs), + _models.REGISTER_DB_PROXY_TARGETS, + [], + plugins, + ) + + @_overload + def remove_from_global_cluster( + self, + request: _models.RemoveFromGlobalClusterInput + | _models.RemoveFromGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveFromGlobalClusterOutput: ... + + @_overload def remove_from_global_cluster( - self, input: RemoveFromGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveFromGlobalClusterInputDict], ) -> RemoveFromGlobalClusterOutput: """ Detaches an Aurora secondary cluster from an Aurora global database @@ -4635,8 +7422,6 @@ def remove_from_global_cluster( This operation only applies to Aurora DB clusters. Args: - input: - An instance of `RemoveFromGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4646,10 +7431,34 @@ def remove_from_global_cluster( Returns: An instance of `RemoveFromGlobalClusterOutput`. """ - return self._invoke(input, _models.REMOVE_FROM_GLOBAL_CLUSTER, [], plugins) + def remove_from_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveFromGlobalClusterOutput: + return self._invoke( + self._select_input(_models.REMOVE_FROM_GLOBAL_CLUSTER, args, kwargs), + _models.REMOVE_FROM_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload + def remove_role_from_db_cluster( + self, + request: _models.RemoveRoleFromDBClusterInput + | _models.RemoveRoleFromDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveRoleFromDBClusterOutput: ... + + @_overload def remove_role_from_db_cluster( - self, input: RemoveRoleFromDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveRoleFromDBClusterInputDict], ) -> RemoveRoleFromDBClusterOutput: """ Removes the asssociation of an Amazon Web Services Identity and Access @@ -4664,8 +7473,6 @@ def remove_role_from_db_cluster( in the *Amazon RDS User Guide.* Args: - input: - An instance of `RemoveRoleFromDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4675,18 +7482,40 @@ def remove_role_from_db_cluster( Returns: An instance of `RemoveRoleFromDBClusterOutput`. """ - return self._invoke(input, _models.REMOVE_ROLE_FROM_DB_CLUSTER, [], plugins) + def remove_role_from_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveRoleFromDBClusterOutput: + return self._invoke( + self._select_input(_models.REMOVE_ROLE_FROM_DB_CLUSTER, args, kwargs), + _models.REMOVE_ROLE_FROM_DB_CLUSTER, + [], + plugins, + ) + + @_overload def remove_role_from_db_instance( - self, input: RemoveRoleFromDBInstanceInput, plugins: list[Plugin] | None = None + self, + request: _models.RemoveRoleFromDBInstanceInput + | _models.RemoveRoleFromDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveRoleFromDBInstanceOutput: ... + + @_overload + def remove_role_from_db_instance( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveRoleFromDBInstanceInputDict], ) -> RemoveRoleFromDBInstanceOutput: """ Disassociates an Amazon Web Services Identity and Access Management (IAM) role from a DB instance. Args: - input: - An instance of `RemoveRoleFromDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4696,20 +7525,40 @@ def remove_role_from_db_instance( Returns: An instance of `RemoveRoleFromDBInstanceOutput`. """ - return self._invoke(input, _models.REMOVE_ROLE_FROM_DB_INSTANCE, [], plugins) + def remove_role_from_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveRoleFromDBInstanceOutput: + return self._invoke( + self._select_input(_models.REMOVE_ROLE_FROM_DB_INSTANCE, args, kwargs), + _models.REMOVE_ROLE_FROM_DB_INSTANCE, + [], + plugins, + ) + + @_overload + def remove_source_identifier_from_subscription( + self, + request: _models.RemoveSourceIdentifierFromSubscriptionInput + | _models.RemoveSourceIdentifierFromSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveSourceIdentifierFromSubscriptionOutput: ... + + @_overload def remove_source_identifier_from_subscription( self, - input: RemoveSourceIdentifierFromSubscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveSourceIdentifierFromSubscriptionInputDict], ) -> RemoveSourceIdentifierFromSubscriptionOutput: """ Removes a source identifier from an existing RDS event notification subscription. Args: - input: - An instance of `RemoveSourceIdentifierFromSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4719,12 +7568,36 @@ def remove_source_identifier_from_subscription( Returns: An instance of `RemoveSourceIdentifierFromSubscriptionOutput`. """ + + def remove_source_identifier_from_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveSourceIdentifierFromSubscriptionOutput: return self._invoke( - input, _models.REMOVE_SOURCE_IDENTIFIER_FROM_SUBSCRIPTION, [], plugins + self._select_input( + _models.REMOVE_SOURCE_IDENTIFIER_FROM_SUBSCRIPTION, args, kwargs + ), + _models.REMOVE_SOURCE_IDENTIFIER_FROM_SUBSCRIPTION, + [], + plugins, ) + @_overload + def remove_tags_from_resource( + self, + request: _models.RemoveTagsFromResourceInput + | _models.RemoveTagsFromResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemoveTagsFromResourceOutput: ... + + @_overload def remove_tags_from_resource( - self, input: RemoveTagsFromResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveTagsFromResourceInputDict], ) -> RemoveTagsFromResourceOutput: """ Removes metadata tags from an Amazon RDS resource. @@ -4737,8 +7610,6 @@ def remove_tags_from_resource( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `RemoveTagsFromResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4748,12 +7619,34 @@ def remove_tags_from_resource( Returns: An instance of `RemoveTagsFromResourceOutput`. """ - return self._invoke(input, _models.REMOVE_TAGS_FROM_RESOURCE, [], plugins) + def remove_tags_from_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveTagsFromResourceOutput: + return self._invoke( + self._select_input(_models.REMOVE_TAGS_FROM_RESOURCE, args, kwargs), + _models.REMOVE_TAGS_FROM_RESOURCE, + [], + plugins, + ) + + @_overload + def reset_db_cluster_parameter_group( + self, + request: _models.ResetDBClusterParameterGroupInput + | _models.ResetDBClusterParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetDBClusterParameterGroupOutput: ... + + @_overload def reset_db_cluster_parameter_group( self, - input: ResetDBClusterParameterGroupInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetDBClusterParameterGroupInputDict], ) -> ResetDBClusterParameterGroupOutput: """ Modifies the parameters of a DB cluster parameter group to the default @@ -4777,8 +7670,6 @@ def reset_db_cluster_parameter_group( in the *Amazon RDS User Guide.* Args: - input: - An instance of `ResetDBClusterParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4788,12 +7679,34 @@ def reset_db_cluster_parameter_group( Returns: An instance of `ResetDBClusterParameterGroupOutput`. """ + + def reset_db_cluster_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetDBClusterParameterGroupOutput: return self._invoke( - input, _models.RESET_DB_CLUSTER_PARAMETER_GROUP, [], plugins + self._select_input(_models.RESET_DB_CLUSTER_PARAMETER_GROUP, args, kwargs), + _models.RESET_DB_CLUSTER_PARAMETER_GROUP, + [], + plugins, ) + @_overload + def reset_db_parameter_group( + self, + request: _models.ResetDBParameterGroupInput + | _models.ResetDBParameterGroupInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ResetDBParameterGroupOutput: ... + + @_overload def reset_db_parameter_group( - self, input: ResetDBParameterGroupInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ResetDBParameterGroupInputDict], ) -> ResetDBParameterGroupOutput: """ Modifies the parameters of a DB parameter group to the engine/system @@ -4806,8 +7719,6 @@ def reset_db_parameter_group( `RebootDBInstance` request. Args: - input: - An instance of `ResetDBParameterGroupInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4817,10 +7728,34 @@ def reset_db_parameter_group( Returns: An instance of `ResetDBParameterGroupOutput`. """ - return self._invoke(input, _models.RESET_DB_PARAMETER_GROUP, [], plugins) + def reset_db_parameter_group( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ResetDBParameterGroupOutput: + return self._invoke( + self._select_input(_models.RESET_DB_PARAMETER_GROUP, args, kwargs), + _models.RESET_DB_PARAMETER_GROUP, + [], + plugins, + ) + + @_overload + def restore_db_cluster_from_s3( + self, + request: _models.RestoreDBClusterFromS3Input + | _models.RestoreDBClusterFromS3InputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBClusterFromS3Output: ... + + @_overload def restore_db_cluster_from_s3( - self, input: RestoreDBClusterFromS3Input, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBClusterFromS3InputDict], ) -> RestoreDBClusterFromS3Output: """ Creates an Amazon Aurora DB cluster from MySQL data stored in an Amazon @@ -4851,8 +7786,6 @@ def restore_db_cluster_from_s3( Aurora DB cluster when you restore it from Amazon S3. Args: - input: - An instance of `RestoreDBClusterFromS3Input`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4862,12 +7795,34 @@ def restore_db_cluster_from_s3( Returns: An instance of `RestoreDBClusterFromS3Output`. """ - return self._invoke(input, _models.RESTORE_DB_CLUSTER_FROM_S3, [], plugins) + def restore_db_cluster_from_s3( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBClusterFromS3Output: + return self._invoke( + self._select_input(_models.RESTORE_DB_CLUSTER_FROM_S3, args, kwargs), + _models.RESTORE_DB_CLUSTER_FROM_S3, + [], + plugins, + ) + + @_overload + def restore_db_cluster_from_snapshot( + self, + request: _models.RestoreDBClusterFromSnapshotInput + | _models.RestoreDBClusterFromSnapshotInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBClusterFromSnapshotOutput: ... + + @_overload def restore_db_cluster_from_snapshot( self, - input: RestoreDBClusterFromSnapshotInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBClusterFromSnapshotInputDict], ) -> RestoreDBClusterFromSnapshotOutput: """ Creates a new DB cluster from a DB snapshot or DB cluster snapshot. @@ -4908,8 +7863,6 @@ def restore_db_cluster_from_snapshot( in the *Amazon RDS User Guide.* Args: - input: - An instance of `RestoreDBClusterFromSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4919,14 +7872,34 @@ def restore_db_cluster_from_snapshot( Returns: An instance of `RestoreDBClusterFromSnapshotOutput`. """ + + def restore_db_cluster_from_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBClusterFromSnapshotOutput: return self._invoke( - input, _models.RESTORE_DB_CLUSTER_FROM_SNAPSHOT, [], plugins + self._select_input(_models.RESTORE_DB_CLUSTER_FROM_SNAPSHOT, args, kwargs), + _models.RESTORE_DB_CLUSTER_FROM_SNAPSHOT, + [], + plugins, ) + @_overload + def restore_db_cluster_to_point_in_time( + self, + request: _models.RestoreDBClusterToPointInTimeInput + | _models.RestoreDBClusterToPointInTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBClusterToPointInTimeOutput: ... + + @_overload def restore_db_cluster_to_point_in_time( self, - input: RestoreDBClusterToPointInTimeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBClusterToPointInTimeInputDict], ) -> RestoreDBClusterToPointInTimeOutput: """ Restores a DB cluster to an arbitrary point in time. Users can restore @@ -4971,8 +7944,6 @@ def restore_db_cluster_to_point_in_time( in the *Amazon RDS User Guide.* Args: - input: - An instance of `RestoreDBClusterToPointInTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4982,14 +7953,36 @@ def restore_db_cluster_to_point_in_time( Returns: An instance of `RestoreDBClusterToPointInTimeOutput`. """ + + def restore_db_cluster_to_point_in_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBClusterToPointInTimeOutput: return self._invoke( - input, _models.RESTORE_DB_CLUSTER_TO_POINT_IN_TIME, [], plugins + self._select_input( + _models.RESTORE_DB_CLUSTER_TO_POINT_IN_TIME, args, kwargs + ), + _models.RESTORE_DB_CLUSTER_TO_POINT_IN_TIME, + [], + plugins, ) + @_overload def restore_db_instance_from_db_snapshot( self, - input: RestoreDBInstanceFromDBSnapshotInput, + request: _models.RestoreDBInstanceFromDBSnapshotInput + | _models.RestoreDBInstanceFromDBSnapshotInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RestoreDBInstanceFromDBSnapshotOutput: ... + + @_overload + def restore_db_instance_from_db_snapshot( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBInstanceFromDBSnapshotInputDict], ) -> RestoreDBInstanceFromDBSnapshotOutput: """ Creates a new DB instance from a DB snapshot. The target database is @@ -5027,8 +8020,6 @@ def restore_db_instance_from_db_snapshot( Aurora, use `RestoreDBClusterFromSnapshot`. Args: - input: - An instance of `RestoreDBInstanceFromDBSnapshotInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5038,12 +8029,36 @@ def restore_db_instance_from_db_snapshot( Returns: An instance of `RestoreDBInstanceFromDBSnapshotOutput`. """ + + def restore_db_instance_from_db_snapshot( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBInstanceFromDBSnapshotOutput: return self._invoke( - input, _models.RESTORE_DB_INSTANCE_FROM_DB_SNAPSHOT, [], plugins + self._select_input( + _models.RESTORE_DB_INSTANCE_FROM_DB_SNAPSHOT, args, kwargs + ), + _models.RESTORE_DB_INSTANCE_FROM_DB_SNAPSHOT, + [], + plugins, ) + @_overload + def restore_db_instance_from_s3( + self, + request: _models.RestoreDBInstanceFromS3Input + | _models.RestoreDBInstanceFromS3InputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBInstanceFromS3Output: ... + + @_overload def restore_db_instance_from_s3( - self, input: RestoreDBInstanceFromS3Input, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBInstanceFromS3InputDict], ) -> RestoreDBInstanceFromS3Output: """ Amazon Relational Database Service (Amazon RDS) supports importing MySQL @@ -5058,8 +8073,6 @@ def restore_db_instance_from_s3( This operation doesn't apply to RDS Custom. Args: - input: - An instance of `RestoreDBInstanceFromS3Input`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5069,12 +8082,34 @@ def restore_db_instance_from_s3( Returns: An instance of `RestoreDBInstanceFromS3Output`. """ - return self._invoke(input, _models.RESTORE_DB_INSTANCE_FROM_S3, [], plugins) + def restore_db_instance_from_s3( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBInstanceFromS3Output: + return self._invoke( + self._select_input(_models.RESTORE_DB_INSTANCE_FROM_S3, args, kwargs), + _models.RESTORE_DB_INSTANCE_FROM_S3, + [], + plugins, + ) + + @_overload + def restore_db_instance_to_point_in_time( + self, + request: _models.RestoreDBInstanceToPointInTimeInput + | _models.RestoreDBInstanceToPointInTimeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreDBInstanceToPointInTimeOutput: ... + + @_overload def restore_db_instance_to_point_in_time( self, - input: RestoreDBInstanceToPointInTimeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreDBInstanceToPointInTimeInputDict], ) -> RestoreDBInstanceToPointInTimeOutput: """ Restores a DB instance to an arbitrary point in time. You can restore to @@ -5095,8 +8130,6 @@ def restore_db_instance_to_point_in_time( Aurora, use `RestoreDBClusterToPointInTime`. Args: - input: - An instance of `RestoreDBInstanceToPointInTimeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5106,14 +8139,36 @@ def restore_db_instance_to_point_in_time( Returns: An instance of `RestoreDBInstanceToPointInTimeOutput`. """ + + def restore_db_instance_to_point_in_time( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreDBInstanceToPointInTimeOutput: return self._invoke( - input, _models.RESTORE_DB_INSTANCE_TO_POINT_IN_TIME, [], plugins + self._select_input( + _models.RESTORE_DB_INSTANCE_TO_POINT_IN_TIME, args, kwargs + ), + _models.RESTORE_DB_INSTANCE_TO_POINT_IN_TIME, + [], + plugins, ) + @_overload + def revoke_db_security_group_ingress( + self, + request: _models.RevokeDBSecurityGroupIngressInput + | _models.RevokeDBSecurityGroupIngressInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeDBSecurityGroupIngressOutput: ... + + @_overload def revoke_db_security_group_ingress( self, - input: RevokeDBSecurityGroupIngressInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeDBSecurityGroupIngressInputDict], ) -> RevokeDBSecurityGroupIngressOutput: """ Revokes ingress from a DBSecurityGroup for previously authorized IP @@ -5135,8 +8190,6 @@ def revoke_db_security_group_ingress( in the *Amazon RDS User Guide*. Args: - input: - An instance of `RevokeDBSecurityGroupIngressInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5146,12 +8199,34 @@ def revoke_db_security_group_ingress( Returns: An instance of `RevokeDBSecurityGroupIngressOutput`. """ + + def revoke_db_security_group_ingress( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeDBSecurityGroupIngressOutput: return self._invoke( - input, _models.REVOKE_DB_SECURITY_GROUP_INGRESS, [], plugins + self._select_input(_models.REVOKE_DB_SECURITY_GROUP_INGRESS, args, kwargs), + _models.REVOKE_DB_SECURITY_GROUP_INGRESS, + [], + plugins, ) + @_overload def start_activity_stream( - self, input: StartActivityStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.StartActivityStreamInput + | _models.StartActivityStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartActivityStreamOutput: ... + + @_overload + def start_activity_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartActivityStreamInputDict], ) -> StartActivityStreamOutput: """ Starts a database activity stream to monitor activity on the database. @@ -5164,8 +8239,6 @@ def start_activity_stream( in the *Amazon RDS User Guide*. Args: - input: - An instance of `StartActivityStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5175,10 +8248,33 @@ def start_activity_stream( Returns: An instance of `StartActivityStreamOutput`. """ - return self._invoke(input, _models.START_ACTIVITY_STREAM, [], plugins) + def start_activity_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartActivityStreamOutput: + return self._invoke( + self._select_input(_models.START_ACTIVITY_STREAM, args, kwargs), + _models.START_ACTIVITY_STREAM, + [], + plugins, + ) + + @_overload + def start_db_cluster( + self, + request: _models.StartDBClusterInput | _models.StartDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDBClusterOutput: ... + + @_overload def start_db_cluster( - self, input: StartDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDBClusterInputDict], ) -> StartDBClusterOutput: """ Starts an Amazon Aurora DB cluster that was stopped using the Amazon Web @@ -5193,8 +8289,6 @@ def start_db_cluster( This operation only applies to Aurora DB clusters. Args: - input: - An instance of `StartDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5204,10 +8298,33 @@ def start_db_cluster( Returns: An instance of `StartDBClusterOutput`. """ - return self._invoke(input, _models.START_DB_CLUSTER, [], plugins) + def start_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDBClusterOutput: + return self._invoke( + self._select_input(_models.START_DB_CLUSTER, args, kwargs), + _models.START_DB_CLUSTER, + [], + plugins, + ) + + @_overload + def start_db_instance( + self, + request: _models.StartDBInstanceInput | _models.StartDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDBInstanceOutput: ... + + @_overload def start_db_instance( - self, input: StartDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDBInstanceInputDict], ) -> StartDBInstanceOutput: """ Starts an Amazon RDS DB instance that was stopped using the Amazon Web @@ -5224,8 +8341,6 @@ def start_db_instance( PostgreSQL. For Aurora DB clusters, use `StartDBCluster` instead. Args: - input: - An instance of `StartDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5235,12 +8350,34 @@ def start_db_instance( Returns: An instance of `StartDBInstanceOutput`. """ - return self._invoke(input, _models.START_DB_INSTANCE, [], plugins) + def start_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDBInstanceOutput: + return self._invoke( + self._select_input(_models.START_DB_INSTANCE, args, kwargs), + _models.START_DB_INSTANCE, + [], + plugins, + ) + + @_overload + def start_db_instance_automated_backups_replication( + self, + request: _models.StartDBInstanceAutomatedBackupsReplicationInput + | _models.StartDBInstanceAutomatedBackupsReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartDBInstanceAutomatedBackupsReplicationOutput: ... + + @_overload def start_db_instance_automated_backups_replication( self, - input: StartDBInstanceAutomatedBackupsReplicationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartDBInstanceAutomatedBackupsReplicationInputDict], ) -> StartDBInstanceAutomatedBackupsReplicationOutput: """ Enables replication of automated backups to a different Amazon Web @@ -5254,8 +8391,6 @@ def start_db_instance_automated_backups_replication( in the *Amazon RDS User Guide.* Args: - input: - An instance of `StartDBInstanceAutomatedBackupsReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5265,12 +8400,35 @@ def start_db_instance_automated_backups_replication( Returns: An instance of `StartDBInstanceAutomatedBackupsReplicationOutput`. """ + + def start_db_instance_automated_backups_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartDBInstanceAutomatedBackupsReplicationOutput: return self._invoke( - input, _models.START_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, [], plugins + self._select_input( + _models.START_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, args, kwargs + ), + _models.START_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, + [], + plugins, ) + @_overload def start_export_task( - self, input: StartExportTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.StartExportTaskInput | _models.StartExportTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartExportTaskOutput: ... + + @_overload + def start_export_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartExportTaskInputDict], ) -> StartExportTaskOutput: """ Starts an export of DB snapshot or DB cluster data to Amazon S3. The @@ -5295,8 +8453,6 @@ def start_export_task( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `StartExportTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5306,10 +8462,33 @@ def start_export_task( Returns: An instance of `StartExportTaskOutput`. """ - return self._invoke(input, _models.START_EXPORT_TASK, [], plugins) + def start_export_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartExportTaskOutput: + return self._invoke( + self._select_input(_models.START_EXPORT_TASK, args, kwargs), + _models.START_EXPORT_TASK, + [], + plugins, + ) + + @_overload + def stop_activity_stream( + self, + request: _models.StopActivityStreamInput | _models.StopActivityStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopActivityStreamOutput: ... + + @_overload def stop_activity_stream( - self, input: StopActivityStreamInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopActivityStreamInputDict], ) -> StopActivityStreamOutput: """ Stops a database activity stream that was started using the Amazon Web @@ -5325,8 +8504,6 @@ def stop_activity_stream( in the *Amazon RDS User Guide*. Args: - input: - An instance of `StopActivityStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5336,10 +8513,33 @@ def stop_activity_stream( Returns: An instance of `StopActivityStreamOutput`. """ - return self._invoke(input, _models.STOP_ACTIVITY_STREAM, [], plugins) + def stop_activity_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopActivityStreamOutput: + return self._invoke( + self._select_input(_models.STOP_ACTIVITY_STREAM, args, kwargs), + _models.STOP_ACTIVITY_STREAM, + [], + plugins, + ) + + @_overload + def stop_db_cluster( + self, + request: _models.StopDBClusterInput | _models.StopDBClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDBClusterOutput: ... + + @_overload def stop_db_cluster( - self, input: StopDBClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDBClusterInputDict], ) -> StopDBClusterOutput: """ Stops an Amazon Aurora DB cluster. When you stop a DB cluster, Aurora @@ -5355,8 +8555,6 @@ def stop_db_cluster( This operation only applies to Aurora DB clusters. Args: - input: - An instance of `StopDBClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5366,10 +8564,33 @@ def stop_db_cluster( Returns: An instance of `StopDBClusterOutput`. """ - return self._invoke(input, _models.STOP_DB_CLUSTER, [], plugins) + def stop_db_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDBClusterOutput: + return self._invoke( + self._select_input(_models.STOP_DB_CLUSTER, args, kwargs), + _models.STOP_DB_CLUSTER, + [], + plugins, + ) + + @_overload + def stop_db_instance( + self, + request: _models.StopDBInstanceInput | _models.StopDBInstanceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDBInstanceOutput: ... + + @_overload def stop_db_instance( - self, input: StopDBInstanceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDBInstanceInputDict], ) -> StopDBInstanceOutput: """ Stops an Amazon RDS DB instance temporarily. When you stop a DB @@ -5387,8 +8608,6 @@ def stop_db_instance( PostgreSQL. For Aurora clusters, use `StopDBCluster` instead. Args: - input: - An instance of `StopDBInstanceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5398,12 +8617,34 @@ def stop_db_instance( Returns: An instance of `StopDBInstanceOutput`. """ - return self._invoke(input, _models.STOP_DB_INSTANCE, [], plugins) + def stop_db_instance( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDBInstanceOutput: + return self._invoke( + self._select_input(_models.STOP_DB_INSTANCE, args, kwargs), + _models.STOP_DB_INSTANCE, + [], + plugins, + ) + + @_overload + def stop_db_instance_automated_backups_replication( + self, + request: _models.StopDBInstanceAutomatedBackupsReplicationInput + | _models.StopDBInstanceAutomatedBackupsReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopDBInstanceAutomatedBackupsReplicationOutput: ... + + @_overload def stop_db_instance_automated_backups_replication( self, - input: StopDBInstanceAutomatedBackupsReplicationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopDBInstanceAutomatedBackupsReplicationInputDict], ) -> StopDBInstanceAutomatedBackupsReplicationOutput: """ Stops automated backup replication for a DB instance. @@ -5417,8 +8658,6 @@ def stop_db_instance_automated_backups_replication( in the *Amazon RDS User Guide.* Args: - input: - An instance of `StopDBInstanceAutomatedBackupsReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5428,14 +8667,36 @@ def stop_db_instance_automated_backups_replication( Returns: An instance of `StopDBInstanceAutomatedBackupsReplicationOutput`. """ + + def stop_db_instance_automated_backups_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopDBInstanceAutomatedBackupsReplicationOutput: return self._invoke( - input, _models.STOP_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, [], plugins + self._select_input( + _models.STOP_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, args, kwargs + ), + _models.STOP_DB_INSTANCE_AUTOMATED_BACKUPS_REPLICATION, + [], + plugins, ) + @_overload + def switchover_blue_green_deployment( + self, + request: _models.SwitchoverBlueGreenDeploymentInput + | _models.SwitchoverBlueGreenDeploymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SwitchoverBlueGreenDeploymentOutput: ... + + @_overload def switchover_blue_green_deployment( self, - input: SwitchoverBlueGreenDeploymentInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SwitchoverBlueGreenDeploymentInputDict], ) -> SwitchoverBlueGreenDeploymentOutput: """ Switches over a blue/green deployment. @@ -5453,8 +8714,6 @@ def switchover_blue_green_deployment( in the *Amazon Aurora User Guide*. Args: - input: - An instance of `SwitchoverBlueGreenDeploymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5464,12 +8723,34 @@ def switchover_blue_green_deployment( Returns: An instance of `SwitchoverBlueGreenDeploymentOutput`. """ + + def switchover_blue_green_deployment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SwitchoverBlueGreenDeploymentOutput: return self._invoke( - input, _models.SWITCHOVER_BLUE_GREEN_DEPLOYMENT, [], plugins + self._select_input(_models.SWITCHOVER_BLUE_GREEN_DEPLOYMENT, args, kwargs), + _models.SWITCHOVER_BLUE_GREEN_DEPLOYMENT, + [], + plugins, ) + @_overload + def switchover_global_cluster( + self, + request: _models.SwitchoverGlobalClusterInput + | _models.SwitchoverGlobalClusterInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SwitchoverGlobalClusterOutput: ... + + @_overload def switchover_global_cluster( - self, input: SwitchoverGlobalClusterInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SwitchoverGlobalClusterInputDict], ) -> SwitchoverGlobalClusterOutput: """ Switches over the specified secondary DB cluster to be the new primary @@ -5495,8 +8776,6 @@ def switchover_global_cluster( after a global database failover. Args: - input: - An instance of `SwitchoverGlobalClusterInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5506,10 +8785,34 @@ def switchover_global_cluster( Returns: An instance of `SwitchoverGlobalClusterOutput`. """ - return self._invoke(input, _models.SWITCHOVER_GLOBAL_CLUSTER, [], plugins) + def switchover_global_cluster( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SwitchoverGlobalClusterOutput: + return self._invoke( + self._select_input(_models.SWITCHOVER_GLOBAL_CLUSTER, args, kwargs), + _models.SWITCHOVER_GLOBAL_CLUSTER, + [], + plugins, + ) + + @_overload + def switchover_read_replica( + self, + request: _models.SwitchoverReadReplicaInput + | _models.SwitchoverReadReplicaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SwitchoverReadReplicaOutput: ... + + @_overload def switchover_read_replica( - self, input: SwitchoverReadReplicaInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SwitchoverReadReplicaInputDict], ) -> SwitchoverReadReplicaOutput: """ Switches over an Oracle standby database in an Oracle Data Guard @@ -5517,8 +8820,6 @@ def switchover_read_replica( the Region that hosts the current standby database. Args: - input: - An instance of `SwitchoverReadReplicaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5528,7 +8829,16 @@ def switchover_read_replica( Returns: An instance of `SwitchoverReadReplicaOutput`. """ - return self._invoke(input, _models.SWITCHOVER_READ_REPLICA, [], plugins) + + def switchover_read_replica( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SwitchoverReadReplicaOutput: + return self._invoke( + self._select_input(_models.SWITCHOVER_READ_REPLICA, args, kwargs), + _models.SWITCHOVER_READ_REPLICA, + [], + plugins, + ) def _new_config(self) -> RDSConfig: return RDSConfig.resolve() diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/models.pyi b/clients/aws-sdk-rds/src/aws_sdk_rds/models.pyi index ec160edcb..11e8a965c 100644 --- a/clients/aws-sdk-rds/src/aws_sdk_rds/models.pyi +++ b/clients/aws-sdk-rds/src/aws_sdk_rds/models.pyi @@ -13,23 +13,30 @@ from ._private.models_0 import ( ActivityStreamPolicyStatus as ActivityStreamPolicyStatus, ActivityStreamStatus as ActivityStreamStatus, AdditionalStorageVolume as AdditionalStorageVolume, + AdditionalStorageVolumeDict as AdditionalStorageVolumeDict, AdditionalStorageVolumeOutput as AdditionalStorageVolumeOutput, AddRoleToDBClusterInput as AddRoleToDBClusterInput, + AddRoleToDBClusterInputDict as AddRoleToDBClusterInputDict, AddRoleToDBClusterOutput as AddRoleToDBClusterOutput, AddRoleToDBInstanceInput as AddRoleToDBInstanceInput, + AddRoleToDBInstanceInputDict as AddRoleToDBInstanceInputDict, AddRoleToDBInstanceOutput as AddRoleToDBInstanceOutput, AddSourceIdentifierToSubscriptionInput as AddSourceIdentifierToSubscriptionInput, + AddSourceIdentifierToSubscriptionInputDict as AddSourceIdentifierToSubscriptionInputDict, AddSourceIdentifierToSubscriptionOutput as AddSourceIdentifierToSubscriptionOutput, AddTagsToResourceInput as AddTagsToResourceInput, + AddTagsToResourceInputDict as AddTagsToResourceInputDict, AddTagsToResourceOutput as AddTagsToResourceOutput, ApplyMethod as ApplyMethod, ApplyPendingMaintenanceActionInput as ApplyPendingMaintenanceActionInput, + ApplyPendingMaintenanceActionInputDict as ApplyPendingMaintenanceActionInputDict, ApplyPendingMaintenanceActionOutput as ApplyPendingMaintenanceActionOutput, AuditPolicyState as AuditPolicyState, AuthorizationAlreadyExistsFault as AuthorizationAlreadyExistsFault, AuthorizationNotFoundFault as AuthorizationNotFoundFault, AuthorizationQuotaExceededFault as AuthorizationQuotaExceededFault, AuthorizeDBSecurityGroupIngressInput as AuthorizeDBSecurityGroupIngressInput, + AuthorizeDBSecurityGroupIngressInputDict as AuthorizeDBSecurityGroupIngressInputDict, AuthorizeDBSecurityGroupIngressOutput as AuthorizeDBSecurityGroupIngressOutput, AuthScheme as AuthScheme, AutomationMode as AutomationMode, @@ -38,6 +45,7 @@ from ._private.models_0 import ( AvailableCapacityPerAvailabilityZone as AvailableCapacityPerAvailabilityZone, AvailableProcessorFeature as AvailableProcessorFeature, BacktrackDBClusterInput as BacktrackDBClusterInput, + BacktrackDBClusterInputDict as BacktrackDBClusterInputDict, BacktrackDBClusterOutput as BacktrackDBClusterOutput, BackupPolicyNotFoundFault as BackupPolicyNotFoundFault, BlueGreenDeployment as BlueGreenDeployment, @@ -45,8 +53,10 @@ from ._private.models_0 import ( BlueGreenDeploymentNotFoundFault as BlueGreenDeploymentNotFoundFault, BlueGreenDeploymentTask as BlueGreenDeploymentTask, CancelDBCapacityReservationInput as CancelDBCapacityReservationInput, + CancelDBCapacityReservationInputDict as CancelDBCapacityReservationInputDict, CancelDBCapacityReservationOutput as CancelDBCapacityReservationOutput, CancelExportTaskInput as CancelExportTaskInput, + CancelExportTaskInputDict as CancelExportTaskInputDict, CancelExportTaskOutput as CancelExportTaskOutput, Certificate as Certificate, CertificateDetails as CertificateDetails, @@ -54,63 +64,91 @@ from ._private.models_0 import ( CharacterSet as CharacterSet, ClientPasswordAuthType as ClientPasswordAuthType, CloudwatchLogsExportConfiguration as CloudwatchLogsExportConfiguration, + CloudwatchLogsExportConfigurationDict as CloudwatchLogsExportConfigurationDict, ClusterPendingModifiedValues as ClusterPendingModifiedValues, ClusterScalabilityType as ClusterScalabilityType, ConnectionPoolConfiguration as ConnectionPoolConfiguration, + ConnectionPoolConfigurationDict as ConnectionPoolConfigurationDict, ConnectionPoolConfigurationInfo as ConnectionPoolConfigurationInfo, ContextAttribute as ContextAttribute, CopyDBClusterParameterGroupInput as CopyDBClusterParameterGroupInput, + CopyDBClusterParameterGroupInputDict as CopyDBClusterParameterGroupInputDict, CopyDBClusterParameterGroupOutput as CopyDBClusterParameterGroupOutput, CopyDBClusterSnapshotInput as CopyDBClusterSnapshotInput, + CopyDBClusterSnapshotInputDict as CopyDBClusterSnapshotInputDict, CopyDBClusterSnapshotOutput as CopyDBClusterSnapshotOutput, CopyDBParameterGroupInput as CopyDBParameterGroupInput, + CopyDBParameterGroupInputDict as CopyDBParameterGroupInputDict, CopyDBParameterGroupOutput as CopyDBParameterGroupOutput, CopyDBSnapshotInput as CopyDBSnapshotInput, + CopyDBSnapshotInputDict as CopyDBSnapshotInputDict, CopyDBSnapshotOutput as CopyDBSnapshotOutput, CopyOptionGroupInput as CopyOptionGroupInput, + CopyOptionGroupInputDict as CopyOptionGroupInputDict, CopyOptionGroupOutput as CopyOptionGroupOutput, CreateBlueGreenDeploymentInput as CreateBlueGreenDeploymentInput, + CreateBlueGreenDeploymentInputDict as CreateBlueGreenDeploymentInputDict, CreateBlueGreenDeploymentOutput as CreateBlueGreenDeploymentOutput, CreateCustomDBEngineVersionFault as CreateCustomDBEngineVersionFault, CreateCustomDBEngineVersionInput as CreateCustomDBEngineVersionInput, + CreateCustomDBEngineVersionInputDict as CreateCustomDBEngineVersionInputDict, CreateCustomDBEngineVersionOutput as CreateCustomDBEngineVersionOutput, CreateDBCapacityReservationInput as CreateDBCapacityReservationInput, + CreateDBCapacityReservationInputDict as CreateDBCapacityReservationInputDict, CreateDBCapacityReservationOutput as CreateDBCapacityReservationOutput, CreateDBClusterEndpointInput as CreateDBClusterEndpointInput, + CreateDBClusterEndpointInputDict as CreateDBClusterEndpointInputDict, CreateDBClusterEndpointOutput as CreateDBClusterEndpointOutput, CreateDBClusterInput as CreateDBClusterInput, + CreateDBClusterInputDict as CreateDBClusterInputDict, CreateDBClusterOutput as CreateDBClusterOutput, CreateDBClusterParameterGroupInput as CreateDBClusterParameterGroupInput, + CreateDBClusterParameterGroupInputDict as CreateDBClusterParameterGroupInputDict, CreateDBClusterParameterGroupOutput as CreateDBClusterParameterGroupOutput, CreateDBClusterSnapshotInput as CreateDBClusterSnapshotInput, + CreateDBClusterSnapshotInputDict as CreateDBClusterSnapshotInputDict, CreateDBClusterSnapshotOutput as CreateDBClusterSnapshotOutput, CreateDBInstanceInput as CreateDBInstanceInput, + CreateDBInstanceInputDict as CreateDBInstanceInputDict, CreateDBInstanceOutput as CreateDBInstanceOutput, CreateDBInstanceReadReplicaInput as CreateDBInstanceReadReplicaInput, + CreateDBInstanceReadReplicaInputDict as CreateDBInstanceReadReplicaInputDict, CreateDBInstanceReadReplicaOutput as CreateDBInstanceReadReplicaOutput, CreateDBParameterGroupInput as CreateDBParameterGroupInput, + CreateDBParameterGroupInputDict as CreateDBParameterGroupInputDict, CreateDBParameterGroupOutput as CreateDBParameterGroupOutput, CreateDBProxyEndpointInput as CreateDBProxyEndpointInput, + CreateDBProxyEndpointInputDict as CreateDBProxyEndpointInputDict, CreateDBProxyEndpointOutput as CreateDBProxyEndpointOutput, CreateDBProxyInput as CreateDBProxyInput, + CreateDBProxyInputDict as CreateDBProxyInputDict, CreateDBProxyOutput as CreateDBProxyOutput, CreateDBSecurityGroupInput as CreateDBSecurityGroupInput, + CreateDBSecurityGroupInputDict as CreateDBSecurityGroupInputDict, CreateDBSecurityGroupOutput as CreateDBSecurityGroupOutput, CreateDBShardGroupInput as CreateDBShardGroupInput, + CreateDBShardGroupInputDict as CreateDBShardGroupInputDict, CreateDBShardGroupOutput as CreateDBShardGroupOutput, CreateDBSnapshotInput as CreateDBSnapshotInput, + CreateDBSnapshotInputDict as CreateDBSnapshotInputDict, CreateDBSnapshotOutput as CreateDBSnapshotOutput, CreateDBSubnetGroupInput as CreateDBSubnetGroupInput, + CreateDBSubnetGroupInputDict as CreateDBSubnetGroupInputDict, CreateDBSubnetGroupOutput as CreateDBSubnetGroupOutput, CreateEventSubscriptionInput as CreateEventSubscriptionInput, + CreateEventSubscriptionInputDict as CreateEventSubscriptionInputDict, CreateEventSubscriptionOutput as CreateEventSubscriptionOutput, CreateGlobalClusterInput as CreateGlobalClusterInput, + CreateGlobalClusterInputDict as CreateGlobalClusterInputDict, CreateGlobalClusterOutput as CreateGlobalClusterOutput, CreateIntegrationInput as CreateIntegrationInput, + CreateIntegrationInputDict as CreateIntegrationInputDict, CreateIntegrationOutput as CreateIntegrationOutput, CreateOptionGroupInput as CreateOptionGroupInput, + CreateOptionGroupInputDict as CreateOptionGroupInputDict, CreateOptionGroupOutput as CreateOptionGroupOutput, CreateTenantDatabaseInput as CreateTenantDatabaseInput, + CreateTenantDatabaseInputDict as CreateTenantDatabaseInputDict, CreateTenantDatabaseOutput as CreateTenantDatabaseOutput, CustomAvailabilityZoneNotFoundFault as CustomAvailabilityZoneNotFoundFault, CustomDBEngineVersionAlreadyExistsFault as CustomDBEngineVersionAlreadyExistsFault, @@ -128,6 +166,7 @@ from ._private.models_0 import ( DBCluster as DBCluster, DBClusterAlreadyExistsFault as DBClusterAlreadyExistsFault, DBClusterAssociatedRole as DBClusterAssociatedRole, + DBClusterAssociatedRoleDict as DBClusterAssociatedRoleDict, DBClusterAutomatedBackup as DBClusterAutomatedBackup, DBClusterAutomatedBackupNotFoundFault as DBClusterAutomatedBackupNotFoundFault, DBClusterAutomatedBackupQuotaExceededFault as DBClusterAutomatedBackupQuotaExceededFault, @@ -217,160 +256,233 @@ from ._private.models_0 import ( DBUpgradeDependencyFailureFault as DBUpgradeDependencyFailureFault, DefaultAuthScheme as DefaultAuthScheme, DeleteBlueGreenDeploymentInput as DeleteBlueGreenDeploymentInput, + DeleteBlueGreenDeploymentInputDict as DeleteBlueGreenDeploymentInputDict, DeleteBlueGreenDeploymentOutput as DeleteBlueGreenDeploymentOutput, DeleteCustomDBEngineVersionInput as DeleteCustomDBEngineVersionInput, + DeleteCustomDBEngineVersionInputDict as DeleteCustomDBEngineVersionInputDict, DeleteCustomDBEngineVersionOutput as DeleteCustomDBEngineVersionOutput, DeleteDBClusterAutomatedBackupInput as DeleteDBClusterAutomatedBackupInput, + DeleteDBClusterAutomatedBackupInputDict as DeleteDBClusterAutomatedBackupInputDict, DeleteDBClusterAutomatedBackupOutput as DeleteDBClusterAutomatedBackupOutput, DeleteDBClusterEndpointInput as DeleteDBClusterEndpointInput, + DeleteDBClusterEndpointInputDict as DeleteDBClusterEndpointInputDict, DeleteDBClusterEndpointOutput as DeleteDBClusterEndpointOutput, DeleteDBClusterInput as DeleteDBClusterInput, + DeleteDBClusterInputDict as DeleteDBClusterInputDict, DeleteDBClusterOutput as DeleteDBClusterOutput, DeleteDBClusterParameterGroupInput as DeleteDBClusterParameterGroupInput, + DeleteDBClusterParameterGroupInputDict as DeleteDBClusterParameterGroupInputDict, DeleteDBClusterParameterGroupOutput as DeleteDBClusterParameterGroupOutput, DeleteDBClusterSnapshotInput as DeleteDBClusterSnapshotInput, + DeleteDBClusterSnapshotInputDict as DeleteDBClusterSnapshotInputDict, DeleteDBClusterSnapshotOutput as DeleteDBClusterSnapshotOutput, DeleteDBInstanceAutomatedBackupInput as DeleteDBInstanceAutomatedBackupInput, + DeleteDBInstanceAutomatedBackupInputDict as DeleteDBInstanceAutomatedBackupInputDict, DeleteDBInstanceAutomatedBackupOutput as DeleteDBInstanceAutomatedBackupOutput, DeleteDBInstanceInput as DeleteDBInstanceInput, + DeleteDBInstanceInputDict as DeleteDBInstanceInputDict, DeleteDBInstanceOutput as DeleteDBInstanceOutput, DeleteDBParameterGroupInput as DeleteDBParameterGroupInput, + DeleteDBParameterGroupInputDict as DeleteDBParameterGroupInputDict, DeleteDBParameterGroupOutput as DeleteDBParameterGroupOutput, DeleteDBProxyEndpointInput as DeleteDBProxyEndpointInput, + DeleteDBProxyEndpointInputDict as DeleteDBProxyEndpointInputDict, DeleteDBProxyEndpointOutput as DeleteDBProxyEndpointOutput, DeleteDBProxyInput as DeleteDBProxyInput, + DeleteDBProxyInputDict as DeleteDBProxyInputDict, DeleteDBProxyOutput as DeleteDBProxyOutput, DeleteDBSecurityGroupInput as DeleteDBSecurityGroupInput, + DeleteDBSecurityGroupInputDict as DeleteDBSecurityGroupInputDict, DeleteDBSecurityGroupOutput as DeleteDBSecurityGroupOutput, DeleteDBShardGroupInput as DeleteDBShardGroupInput, + DeleteDBShardGroupInputDict as DeleteDBShardGroupInputDict, DeleteDBShardGroupOutput as DeleteDBShardGroupOutput, DeleteDBSnapshotInput as DeleteDBSnapshotInput, + DeleteDBSnapshotInputDict as DeleteDBSnapshotInputDict, DeleteDBSnapshotOutput as DeleteDBSnapshotOutput, DeleteDBSubnetGroupInput as DeleteDBSubnetGroupInput, + DeleteDBSubnetGroupInputDict as DeleteDBSubnetGroupInputDict, DeleteDBSubnetGroupOutput as DeleteDBSubnetGroupOutput, DeleteEventSubscriptionInput as DeleteEventSubscriptionInput, + DeleteEventSubscriptionInputDict as DeleteEventSubscriptionInputDict, DeleteEventSubscriptionOutput as DeleteEventSubscriptionOutput, DeleteGlobalClusterInput as DeleteGlobalClusterInput, + DeleteGlobalClusterInputDict as DeleteGlobalClusterInputDict, DeleteGlobalClusterOutput as DeleteGlobalClusterOutput, DeleteIntegrationInput as DeleteIntegrationInput, + DeleteIntegrationInputDict as DeleteIntegrationInputDict, DeleteIntegrationOutput as DeleteIntegrationOutput, DeleteOptionGroupInput as DeleteOptionGroupInput, + DeleteOptionGroupInputDict as DeleteOptionGroupInputDict, DeleteOptionGroupOutput as DeleteOptionGroupOutput, DeleteTenantDatabaseInput as DeleteTenantDatabaseInput, + DeleteTenantDatabaseInputDict as DeleteTenantDatabaseInputDict, DeleteTenantDatabaseOutput as DeleteTenantDatabaseOutput, ) from ._private.models_1 import ( DeregisterDBProxyTargetsInput as DeregisterDBProxyTargetsInput, + DeregisterDBProxyTargetsInputDict as DeregisterDBProxyTargetsInputDict, DeregisterDBProxyTargetsOutput as DeregisterDBProxyTargetsOutput, DescribeAccountAttributesInput as DescribeAccountAttributesInput, + DescribeAccountAttributesInputDict as DescribeAccountAttributesInputDict, DescribeAccountAttributesOutput as DescribeAccountAttributesOutput, DescribeBlueGreenDeploymentsInput as DescribeBlueGreenDeploymentsInput, + DescribeBlueGreenDeploymentsInputDict as DescribeBlueGreenDeploymentsInputDict, DescribeBlueGreenDeploymentsOutput as DescribeBlueGreenDeploymentsOutput, DescribeCertificatesInput as DescribeCertificatesInput, + DescribeCertificatesInputDict as DescribeCertificatesInputDict, DescribeCertificatesOutput as DescribeCertificatesOutput, DescribeDBCapacityReservationsInput as DescribeDBCapacityReservationsInput, + DescribeDBCapacityReservationsInputDict as DescribeDBCapacityReservationsInputDict, DescribeDBCapacityReservationsOutput as DescribeDBCapacityReservationsOutput, DescribeDBClusterAutomatedBackupsInput as DescribeDBClusterAutomatedBackupsInput, + DescribeDBClusterAutomatedBackupsInputDict as DescribeDBClusterAutomatedBackupsInputDict, DescribeDBClusterAutomatedBackupsOutput as DescribeDBClusterAutomatedBackupsOutput, DescribeDBClusterBacktracksInput as DescribeDBClusterBacktracksInput, + DescribeDBClusterBacktracksInputDict as DescribeDBClusterBacktracksInputDict, DescribeDBClusterBacktracksOutput as DescribeDBClusterBacktracksOutput, DescribeDBClusterEndpointsInput as DescribeDBClusterEndpointsInput, + DescribeDBClusterEndpointsInputDict as DescribeDBClusterEndpointsInputDict, DescribeDBClusterEndpointsOutput as DescribeDBClusterEndpointsOutput, DescribeDBClusterParameterGroupsInput as DescribeDBClusterParameterGroupsInput, + DescribeDBClusterParameterGroupsInputDict as DescribeDBClusterParameterGroupsInputDict, DescribeDBClusterParameterGroupsOutput as DescribeDBClusterParameterGroupsOutput, DescribeDBClusterParametersInput as DescribeDBClusterParametersInput, + DescribeDBClusterParametersInputDict as DescribeDBClusterParametersInputDict, DescribeDBClusterParametersOutput as DescribeDBClusterParametersOutput, DescribeDBClustersInput as DescribeDBClustersInput, + DescribeDBClustersInputDict as DescribeDBClustersInputDict, DescribeDBClusterSnapshotAttributesInput as DescribeDBClusterSnapshotAttributesInput, + DescribeDBClusterSnapshotAttributesInputDict as DescribeDBClusterSnapshotAttributesInputDict, DescribeDBClusterSnapshotAttributesOutput as DescribeDBClusterSnapshotAttributesOutput, DescribeDBClusterSnapshotsInput as DescribeDBClusterSnapshotsInput, + DescribeDBClusterSnapshotsInputDict as DescribeDBClusterSnapshotsInputDict, DescribeDBClusterSnapshotsOutput as DescribeDBClusterSnapshotsOutput, DescribeDBClustersOutput as DescribeDBClustersOutput, DescribeDBEngineVersionsInput as DescribeDBEngineVersionsInput, + DescribeDBEngineVersionsInputDict as DescribeDBEngineVersionsInputDict, DescribeDBEngineVersionsOutput as DescribeDBEngineVersionsOutput, DescribeDBInstanceAutomatedBackupsInput as DescribeDBInstanceAutomatedBackupsInput, + DescribeDBInstanceAutomatedBackupsInputDict as DescribeDBInstanceAutomatedBackupsInputDict, DescribeDBInstanceAutomatedBackupsOutput as DescribeDBInstanceAutomatedBackupsOutput, DescribeDBInstancesInput as DescribeDBInstancesInput, + DescribeDBInstancesInputDict as DescribeDBInstancesInputDict, DescribeDBInstancesOutput as DescribeDBInstancesOutput, DescribeDBLogFilesDetails as DescribeDBLogFilesDetails, DescribeDBLogFilesInput as DescribeDBLogFilesInput, + DescribeDBLogFilesInputDict as DescribeDBLogFilesInputDict, DescribeDBLogFilesOutput as DescribeDBLogFilesOutput, DescribeDBMajorEngineVersionsInput as DescribeDBMajorEngineVersionsInput, + DescribeDBMajorEngineVersionsInputDict as DescribeDBMajorEngineVersionsInputDict, DescribeDBMajorEngineVersionsOutput as DescribeDBMajorEngineVersionsOutput, DescribeDBParameterGroupsInput as DescribeDBParameterGroupsInput, + DescribeDBParameterGroupsInputDict as DescribeDBParameterGroupsInputDict, DescribeDBParameterGroupsOutput as DescribeDBParameterGroupsOutput, DescribeDBParametersInput as DescribeDBParametersInput, + DescribeDBParametersInputDict as DescribeDBParametersInputDict, DescribeDBParametersOutput as DescribeDBParametersOutput, DescribeDBProxiesInput as DescribeDBProxiesInput, + DescribeDBProxiesInputDict as DescribeDBProxiesInputDict, DescribeDBProxiesOutput as DescribeDBProxiesOutput, DescribeDBProxyEndpointsInput as DescribeDBProxyEndpointsInput, + DescribeDBProxyEndpointsInputDict as DescribeDBProxyEndpointsInputDict, DescribeDBProxyEndpointsOutput as DescribeDBProxyEndpointsOutput, DescribeDBProxyTargetGroupsInput as DescribeDBProxyTargetGroupsInput, + DescribeDBProxyTargetGroupsInputDict as DescribeDBProxyTargetGroupsInputDict, DescribeDBProxyTargetGroupsOutput as DescribeDBProxyTargetGroupsOutput, DescribeDBProxyTargetsInput as DescribeDBProxyTargetsInput, + DescribeDBProxyTargetsInputDict as DescribeDBProxyTargetsInputDict, DescribeDBProxyTargetsOutput as DescribeDBProxyTargetsOutput, DescribeDBRecommendationsInput as DescribeDBRecommendationsInput, + DescribeDBRecommendationsInputDict as DescribeDBRecommendationsInputDict, DescribeDBRecommendationsOutput as DescribeDBRecommendationsOutput, DescribeDBSecurityGroupsInput as DescribeDBSecurityGroupsInput, + DescribeDBSecurityGroupsInputDict as DescribeDBSecurityGroupsInputDict, DescribeDBSecurityGroupsOutput as DescribeDBSecurityGroupsOutput, DescribeDBShardGroupsInput as DescribeDBShardGroupsInput, + DescribeDBShardGroupsInputDict as DescribeDBShardGroupsInputDict, DescribeDBShardGroupsOutput as DescribeDBShardGroupsOutput, DescribeDBSnapshotAttributesInput as DescribeDBSnapshotAttributesInput, + DescribeDBSnapshotAttributesInputDict as DescribeDBSnapshotAttributesInputDict, DescribeDBSnapshotAttributesOutput as DescribeDBSnapshotAttributesOutput, DescribeDBSnapshotsInput as DescribeDBSnapshotsInput, + DescribeDBSnapshotsInputDict as DescribeDBSnapshotsInputDict, DescribeDBSnapshotsOutput as DescribeDBSnapshotsOutput, DescribeDBSnapshotTenantDatabasesInput as DescribeDBSnapshotTenantDatabasesInput, + DescribeDBSnapshotTenantDatabasesInputDict as DescribeDBSnapshotTenantDatabasesInputDict, DescribeDBSnapshotTenantDatabasesOutput as DescribeDBSnapshotTenantDatabasesOutput, DescribeDBSubnetGroupsInput as DescribeDBSubnetGroupsInput, + DescribeDBSubnetGroupsInputDict as DescribeDBSubnetGroupsInputDict, DescribeDBSubnetGroupsOutput as DescribeDBSubnetGroupsOutput, DescribeEngineDefaultClusterParametersInput as DescribeEngineDefaultClusterParametersInput, + DescribeEngineDefaultClusterParametersInputDict as DescribeEngineDefaultClusterParametersInputDict, DescribeEngineDefaultClusterParametersOutput as DescribeEngineDefaultClusterParametersOutput, DescribeEngineDefaultParametersInput as DescribeEngineDefaultParametersInput, + DescribeEngineDefaultParametersInputDict as DescribeEngineDefaultParametersInputDict, DescribeEngineDefaultParametersOutput as DescribeEngineDefaultParametersOutput, DescribeEventCategoriesInput as DescribeEventCategoriesInput, + DescribeEventCategoriesInputDict as DescribeEventCategoriesInputDict, DescribeEventCategoriesOutput as DescribeEventCategoriesOutput, DescribeEventsInput as DescribeEventsInput, + DescribeEventsInputDict as DescribeEventsInputDict, DescribeEventsOutput as DescribeEventsOutput, DescribeEventSubscriptionsInput as DescribeEventSubscriptionsInput, + DescribeEventSubscriptionsInputDict as DescribeEventSubscriptionsInputDict, DescribeEventSubscriptionsOutput as DescribeEventSubscriptionsOutput, DescribeExportTasksInput as DescribeExportTasksInput, + DescribeExportTasksInputDict as DescribeExportTasksInputDict, DescribeExportTasksOutput as DescribeExportTasksOutput, DescribeGlobalClustersInput as DescribeGlobalClustersInput, + DescribeGlobalClustersInputDict as DescribeGlobalClustersInputDict, DescribeGlobalClustersOutput as DescribeGlobalClustersOutput, DescribeIntegrationsInput as DescribeIntegrationsInput, + DescribeIntegrationsInputDict as DescribeIntegrationsInputDict, DescribeIntegrationsOutput as DescribeIntegrationsOutput, DescribeOptionGroupOptionsInput as DescribeOptionGroupOptionsInput, + DescribeOptionGroupOptionsInputDict as DescribeOptionGroupOptionsInputDict, DescribeOptionGroupOptionsOutput as DescribeOptionGroupOptionsOutput, DescribeOptionGroupsInput as DescribeOptionGroupsInput, + DescribeOptionGroupsInputDict as DescribeOptionGroupsInputDict, DescribeOptionGroupsOutput as DescribeOptionGroupsOutput, DescribeOrderableDBInstanceOptionsInput as DescribeOrderableDBInstanceOptionsInput, + DescribeOrderableDBInstanceOptionsInputDict as DescribeOrderableDBInstanceOptionsInputDict, DescribeOrderableDBInstanceOptionsOutput as DescribeOrderableDBInstanceOptionsOutput, DescribePendingMaintenanceActionsInput as DescribePendingMaintenanceActionsInput, + DescribePendingMaintenanceActionsInputDict as DescribePendingMaintenanceActionsInputDict, DescribePendingMaintenanceActionsOutput as DescribePendingMaintenanceActionsOutput, DescribeReservedDBInstancesInput as DescribeReservedDBInstancesInput, + DescribeReservedDBInstancesInputDict as DescribeReservedDBInstancesInputDict, DescribeReservedDBInstancesOfferingsInput as DescribeReservedDBInstancesOfferingsInput, + DescribeReservedDBInstancesOfferingsInputDict as DescribeReservedDBInstancesOfferingsInputDict, DescribeReservedDBInstancesOfferingsOutput as DescribeReservedDBInstancesOfferingsOutput, DescribeReservedDBInstancesOutput as DescribeReservedDBInstancesOutput, DescribeServerlessV2PlatformVersionsInput as DescribeServerlessV2PlatformVersionsInput, + DescribeServerlessV2PlatformVersionsInputDict as DescribeServerlessV2PlatformVersionsInputDict, DescribeServerlessV2PlatformVersionsOutput as DescribeServerlessV2PlatformVersionsOutput, DescribeSourceRegionsInput as DescribeSourceRegionsInput, + DescribeSourceRegionsInputDict as DescribeSourceRegionsInputDict, DescribeSourceRegionsOutput as DescribeSourceRegionsOutput, DescribeTenantDatabasesInput as DescribeTenantDatabasesInput, + DescribeTenantDatabasesInputDict as DescribeTenantDatabasesInputDict, DescribeTenantDatabasesOutput as DescribeTenantDatabasesOutput, DescribeValidDBInstanceModificationsInput as DescribeValidDBInstanceModificationsInput, + DescribeValidDBInstanceModificationsInputDict as DescribeValidDBInstanceModificationsInputDict, DescribeValidDBInstanceModificationsOutput as DescribeValidDBInstanceModificationsOutput, DisableHttpEndpointInput as DisableHttpEndpointInput, + DisableHttpEndpointInputDict as DisableHttpEndpointInputDict, DisableHttpEndpointOutput as DisableHttpEndpointOutput, DocLink as DocLink, DomainMembership as DomainMembership, DomainNotFoundFault as DomainNotFoundFault, DoubleRange as DoubleRange, DownloadDBLogFilePortionInput as DownloadDBLogFilePortionInput, + DownloadDBLogFilePortionInputDict as DownloadDBLogFilePortionInputDict, DownloadDBLogFilePortionOutput as DownloadDBLogFilePortionOutput, Ec2ImagePropertiesNotSupportedFault as Ec2ImagePropertiesNotSupportedFault, EC2SecurityGroup as EC2SecurityGroup, EnableHttpEndpointInput as EnableHttpEndpointInput, + EnableHttpEndpointInputDict as EnableHttpEndpointInputDict, EnableHttpEndpointOutput as EnableHttpEndpointOutput, EndDateType as EndDateType, Endpoint as Endpoint, @@ -386,12 +498,15 @@ from ._private.models_1 import ( ExportTaskAlreadyExistsFault as ExportTaskAlreadyExistsFault, ExportTaskNotFoundFault as ExportTaskNotFoundFault, FailoverDBClusterInput as FailoverDBClusterInput, + FailoverDBClusterInputDict as FailoverDBClusterInputDict, FailoverDBClusterOutput as FailoverDBClusterOutput, FailoverGlobalClusterInput as FailoverGlobalClusterInput, + FailoverGlobalClusterInputDict as FailoverGlobalClusterInputDict, FailoverGlobalClusterOutput as FailoverGlobalClusterOutput, FailoverState as FailoverState, FailoverStatus as FailoverStatus, Filter as Filter, + FilterDict as FilterDict, GlobalCluster as GlobalCluster, GlobalClusterAlreadyExistsFault as GlobalClusterAlreadyExistsFault, GlobalClusterMember as GlobalClusterMember, @@ -451,6 +566,7 @@ from ._private.models_1 import ( LimitlessDatabase as LimitlessDatabase, LimitlessDatabaseStatus as LimitlessDatabaseStatus, ListTagsForResourceInput as ListTagsForResourceInput, + ListTagsForResourceInputDict as ListTagsForResourceInputDict, ListTagsForResourceOutput as ListTagsForResourceOutput, LocalWriteForwardingStatus as LocalWriteForwardingStatus, MasterUserAuthenticationType as MasterUserAuthenticationType, @@ -461,53 +577,78 @@ from ._private.models_1 import ( MetricReference as MetricReference, MinimumEngineVersionPerAllowedValue as MinimumEngineVersionPerAllowedValue, ModifyActivityStreamInput as ModifyActivityStreamInput, + ModifyActivityStreamInputDict as ModifyActivityStreamInputDict, ModifyActivityStreamOutput as ModifyActivityStreamOutput, ModifyAdditionalStorageVolume as ModifyAdditionalStorageVolume, + ModifyAdditionalStorageVolumeDict as ModifyAdditionalStorageVolumeDict, ModifyCertificatesInput as ModifyCertificatesInput, + ModifyCertificatesInputDict as ModifyCertificatesInputDict, ModifyCertificatesOutput as ModifyCertificatesOutput, ModifyCurrentDBClusterCapacityInput as ModifyCurrentDBClusterCapacityInput, + ModifyCurrentDBClusterCapacityInputDict as ModifyCurrentDBClusterCapacityInputDict, ModifyCurrentDBClusterCapacityOutput as ModifyCurrentDBClusterCapacityOutput, ModifyCustomDBEngineVersionInput as ModifyCustomDBEngineVersionInput, + ModifyCustomDBEngineVersionInputDict as ModifyCustomDBEngineVersionInputDict, ModifyCustomDBEngineVersionOutput as ModifyCustomDBEngineVersionOutput, ModifyDBCapacityReservationInput as ModifyDBCapacityReservationInput, + ModifyDBCapacityReservationInputDict as ModifyDBCapacityReservationInputDict, ModifyDBCapacityReservationOutput as ModifyDBCapacityReservationOutput, ModifyDBClusterEndpointInput as ModifyDBClusterEndpointInput, + ModifyDBClusterEndpointInputDict as ModifyDBClusterEndpointInputDict, ModifyDBClusterEndpointOutput as ModifyDBClusterEndpointOutput, ModifyDBClusterInput as ModifyDBClusterInput, + ModifyDBClusterInputDict as ModifyDBClusterInputDict, ModifyDBClusterOutput as ModifyDBClusterOutput, ModifyDBClusterParameterGroupInput as ModifyDBClusterParameterGroupInput, + ModifyDBClusterParameterGroupInputDict as ModifyDBClusterParameterGroupInputDict, ModifyDBClusterParameterGroupOutput as ModifyDBClusterParameterGroupOutput, ModifyDBClusterSnapshotAttributeInput as ModifyDBClusterSnapshotAttributeInput, + ModifyDBClusterSnapshotAttributeInputDict as ModifyDBClusterSnapshotAttributeInputDict, ModifyDBClusterSnapshotAttributeOutput as ModifyDBClusterSnapshotAttributeOutput, ModifyDBInstanceInput as ModifyDBInstanceInput, + ModifyDBInstanceInputDict as ModifyDBInstanceInputDict, ModifyDBInstanceOutput as ModifyDBInstanceOutput, ModifyDBParameterGroupInput as ModifyDBParameterGroupInput, + ModifyDBParameterGroupInputDict as ModifyDBParameterGroupInputDict, ModifyDBParameterGroupOutput as ModifyDBParameterGroupOutput, ModifyDBProxyEndpointInput as ModifyDBProxyEndpointInput, + ModifyDBProxyEndpointInputDict as ModifyDBProxyEndpointInputDict, ModifyDBProxyEndpointOutput as ModifyDBProxyEndpointOutput, ModifyDBProxyInput as ModifyDBProxyInput, + ModifyDBProxyInputDict as ModifyDBProxyInputDict, ModifyDBProxyOutput as ModifyDBProxyOutput, ModifyDBProxyTargetGroupInput as ModifyDBProxyTargetGroupInput, + ModifyDBProxyTargetGroupInputDict as ModifyDBProxyTargetGroupInputDict, ModifyDBProxyTargetGroupOutput as ModifyDBProxyTargetGroupOutput, ModifyDBRecommendationInput as ModifyDBRecommendationInput, + ModifyDBRecommendationInputDict as ModifyDBRecommendationInputDict, ModifyDBRecommendationOutput as ModifyDBRecommendationOutput, ModifyDBShardGroupInput as ModifyDBShardGroupInput, + ModifyDBShardGroupInputDict as ModifyDBShardGroupInputDict, ModifyDBShardGroupOutput as ModifyDBShardGroupOutput, ModifyDBSnapshotAttributeInput as ModifyDBSnapshotAttributeInput, + ModifyDBSnapshotAttributeInputDict as ModifyDBSnapshotAttributeInputDict, ModifyDBSnapshotAttributeOutput as ModifyDBSnapshotAttributeOutput, ModifyDBSnapshotInput as ModifyDBSnapshotInput, + ModifyDBSnapshotInputDict as ModifyDBSnapshotInputDict, ModifyDBSnapshotOutput as ModifyDBSnapshotOutput, ModifyDBSubnetGroupInput as ModifyDBSubnetGroupInput, + ModifyDBSubnetGroupInputDict as ModifyDBSubnetGroupInputDict, ModifyDBSubnetGroupOutput as ModifyDBSubnetGroupOutput, ModifyEventSubscriptionInput as ModifyEventSubscriptionInput, + ModifyEventSubscriptionInputDict as ModifyEventSubscriptionInputDict, ModifyEventSubscriptionOutput as ModifyEventSubscriptionOutput, ModifyGlobalClusterInput as ModifyGlobalClusterInput, + ModifyGlobalClusterInputDict as ModifyGlobalClusterInputDict, ModifyGlobalClusterOutput as ModifyGlobalClusterOutput, ModifyIntegrationInput as ModifyIntegrationInput, + ModifyIntegrationInputDict as ModifyIntegrationInputDict, ModifyIntegrationOutput as ModifyIntegrationOutput, ModifyOptionGroupInput as ModifyOptionGroupInput, + ModifyOptionGroupInputDict as ModifyOptionGroupInputDict, ModifyOptionGroupOutput as ModifyOptionGroupOutput, ModifyTenantDatabaseInput as ModifyTenantDatabaseInput, + ModifyTenantDatabaseInputDict as ModifyTenantDatabaseInputDict, ModifyTenantDatabaseOutput as ModifyTenantDatabaseOutput, NetworkTypeNotSupported as NetworkTypeNotSupported, Option as Option, @@ -515,6 +656,7 @@ from ._private.models_1 import ( from ._private.models_2 import ( OptionConfiguration as OptionConfiguration, + OptionConfigurationDict as OptionConfigurationDict, OptionGroup as OptionGroup, OptionGroupAlreadyExistsFault as OptionGroupAlreadyExistsFault, OptionGroupMembership as OptionGroupMembership, @@ -523,10 +665,12 @@ from ._private.models_2 import ( OptionGroupOptionSetting as OptionGroupOptionSetting, OptionGroupQuotaExceededFault as OptionGroupQuotaExceededFault, OptionSetting as OptionSetting, + OptionSettingDict as OptionSettingDict, OptionVersion as OptionVersion, OrderableDBInstanceOption as OrderableDBInstanceOption, Outpost as Outpost, Parameter as Parameter, + ParameterDict as ParameterDict, PendingCloudwatchLogsExports as PendingCloudwatchLogsExports, PendingMaintenanceAction as PendingMaintenanceAction, PendingModifiedValues as PendingModifiedValues, @@ -535,37 +679,52 @@ from ._private.models_2 import ( PerformanceIssueDetails as PerformanceIssueDetails, PointInTimeRestoreNotEnabledFault as PointInTimeRestoreNotEnabledFault, ProcessorFeature as ProcessorFeature, + ProcessorFeatureDict as ProcessorFeatureDict, PromoteReadReplicaDBClusterInput as PromoteReadReplicaDBClusterInput, + PromoteReadReplicaDBClusterInputDict as PromoteReadReplicaDBClusterInputDict, PromoteReadReplicaDBClusterOutput as PromoteReadReplicaDBClusterOutput, PromoteReadReplicaInput as PromoteReadReplicaInput, + PromoteReadReplicaInputDict as PromoteReadReplicaInputDict, PromoteReadReplicaOutput as PromoteReadReplicaOutput, ProvisionedIopsNotAvailableInAZFault as ProvisionedIopsNotAvailableInAZFault, PurchaseReservedDBInstancesOfferingInput as PurchaseReservedDBInstancesOfferingInput, + PurchaseReservedDBInstancesOfferingInputDict as PurchaseReservedDBInstancesOfferingInputDict, PurchaseReservedDBInstancesOfferingOutput as PurchaseReservedDBInstancesOfferingOutput, Range as Range, RdsCustomClusterConfiguration as RdsCustomClusterConfiguration, + RdsCustomClusterConfigurationDict as RdsCustomClusterConfigurationDict, RebootDBClusterInput as RebootDBClusterInput, + RebootDBClusterInputDict as RebootDBClusterInputDict, RebootDBClusterOutput as RebootDBClusterOutput, RebootDBInstanceInput as RebootDBInstanceInput, + RebootDBInstanceInputDict as RebootDBInstanceInputDict, RebootDBInstanceOutput as RebootDBInstanceOutput, RebootDBShardGroupInput as RebootDBShardGroupInput, + RebootDBShardGroupInputDict as RebootDBShardGroupInputDict, RebootDBShardGroupOutput as RebootDBShardGroupOutput, RecommendedAction as RecommendedAction, RecommendedActionParameter as RecommendedActionParameter, RecommendedActionUpdate as RecommendedActionUpdate, + RecommendedActionUpdateDict as RecommendedActionUpdateDict, RecurringCharge as RecurringCharge, ReferenceDetails as ReferenceDetails, RegisterDBProxyTargetsInput as RegisterDBProxyTargetsInput, + RegisterDBProxyTargetsInputDict as RegisterDBProxyTargetsInputDict, RegisterDBProxyTargetsOutput as RegisterDBProxyTargetsOutput, RemoveFromGlobalClusterInput as RemoveFromGlobalClusterInput, + RemoveFromGlobalClusterInputDict as RemoveFromGlobalClusterInputDict, RemoveFromGlobalClusterOutput as RemoveFromGlobalClusterOutput, RemoveRoleFromDBClusterInput as RemoveRoleFromDBClusterInput, + RemoveRoleFromDBClusterInputDict as RemoveRoleFromDBClusterInputDict, RemoveRoleFromDBClusterOutput as RemoveRoleFromDBClusterOutput, RemoveRoleFromDBInstanceInput as RemoveRoleFromDBInstanceInput, + RemoveRoleFromDBInstanceInputDict as RemoveRoleFromDBInstanceInputDict, RemoveRoleFromDBInstanceOutput as RemoveRoleFromDBInstanceOutput, RemoveSourceIdentifierFromSubscriptionInput as RemoveSourceIdentifierFromSubscriptionInput, + RemoveSourceIdentifierFromSubscriptionInputDict as RemoveSourceIdentifierFromSubscriptionInputDict, RemoveSourceIdentifierFromSubscriptionOutput as RemoveSourceIdentifierFromSubscriptionOutput, RemoveTagsFromResourceInput as RemoveTagsFromResourceInput, + RemoveTagsFromResourceInputDict as RemoveTagsFromResourceInputDict, RemoveTagsFromResourceOutput as RemoveTagsFromResourceOutput, ReplicaMode as ReplicaMode, ReservedDBInstance as ReservedDBInstance, @@ -575,32 +734,43 @@ from ._private.models_2 import ( ReservedDBInstancesOffering as ReservedDBInstancesOffering, ReservedDBInstancesOfferingNotFoundFault as ReservedDBInstancesOfferingNotFoundFault, ResetDBClusterParameterGroupInput as ResetDBClusterParameterGroupInput, + ResetDBClusterParameterGroupInputDict as ResetDBClusterParameterGroupInputDict, ResetDBClusterParameterGroupOutput as ResetDBClusterParameterGroupOutput, ResetDBParameterGroupInput as ResetDBParameterGroupInput, + ResetDBParameterGroupInputDict as ResetDBParameterGroupInputDict, ResetDBParameterGroupOutput as ResetDBParameterGroupOutput, ResourceNotFoundFault as ResourceNotFoundFault, ResourcePendingMaintenanceActions as ResourcePendingMaintenanceActions, RestoreDBClusterFromS3Input as RestoreDBClusterFromS3Input, + RestoreDBClusterFromS3InputDict as RestoreDBClusterFromS3InputDict, RestoreDBClusterFromS3Output as RestoreDBClusterFromS3Output, RestoreDBClusterFromSnapshotInput as RestoreDBClusterFromSnapshotInput, + RestoreDBClusterFromSnapshotInputDict as RestoreDBClusterFromSnapshotInputDict, RestoreDBClusterFromSnapshotOutput as RestoreDBClusterFromSnapshotOutput, RestoreDBClusterToPointInTimeInput as RestoreDBClusterToPointInTimeInput, + RestoreDBClusterToPointInTimeInputDict as RestoreDBClusterToPointInTimeInputDict, RestoreDBClusterToPointInTimeOutput as RestoreDBClusterToPointInTimeOutput, RestoreDBInstanceFromDBSnapshotInput as RestoreDBInstanceFromDBSnapshotInput, + RestoreDBInstanceFromDBSnapshotInputDict as RestoreDBInstanceFromDBSnapshotInputDict, RestoreDBInstanceFromDBSnapshotOutput as RestoreDBInstanceFromDBSnapshotOutput, RestoreDBInstanceFromS3Input as RestoreDBInstanceFromS3Input, + RestoreDBInstanceFromS3InputDict as RestoreDBInstanceFromS3InputDict, RestoreDBInstanceFromS3Output as RestoreDBInstanceFromS3Output, RestoreDBInstanceToPointInTimeInput as RestoreDBInstanceToPointInTimeInput, + RestoreDBInstanceToPointInTimeInputDict as RestoreDBInstanceToPointInTimeInputDict, RestoreDBInstanceToPointInTimeOutput as RestoreDBInstanceToPointInTimeOutput, RestoreWindow as RestoreWindow, RevokeDBSecurityGroupIngressInput as RevokeDBSecurityGroupIngressInput, + RevokeDBSecurityGroupIngressInputDict as RevokeDBSecurityGroupIngressInputDict, RevokeDBSecurityGroupIngressOutput as RevokeDBSecurityGroupIngressOutput, ScalarReferenceDetails as ScalarReferenceDetails, ScalingConfiguration as ScalingConfiguration, + ScalingConfigurationDict as ScalingConfigurationDict, ScalingConfigurationInfo as ScalingConfigurationInfo, ServerlessV2FeaturesSupport as ServerlessV2FeaturesSupport, ServerlessV2PlatformVersionInfo as ServerlessV2PlatformVersionInfo, ServerlessV2ScalingConfiguration as ServerlessV2ScalingConfiguration, + ServerlessV2ScalingConfigurationDict as ServerlessV2ScalingConfigurationDict, ServerlessV2ScalingConfigurationInfo as ServerlessV2ScalingConfigurationInfo, SharedSnapshotQuotaExceededFault as SharedSnapshotQuotaExceededFault, SnapshotQuotaExceededFault as SnapshotQuotaExceededFault, @@ -613,22 +783,31 @@ from ._private.models_2 import ( SourceRegion as SourceRegion, SourceType as SourceType, StartActivityStreamInput as StartActivityStreamInput, + StartActivityStreamInputDict as StartActivityStreamInputDict, StartActivityStreamOutput as StartActivityStreamOutput, StartDBClusterInput as StartDBClusterInput, + StartDBClusterInputDict as StartDBClusterInputDict, StartDBClusterOutput as StartDBClusterOutput, StartDBInstanceAutomatedBackupsReplicationInput as StartDBInstanceAutomatedBackupsReplicationInput, + StartDBInstanceAutomatedBackupsReplicationInputDict as StartDBInstanceAutomatedBackupsReplicationInputDict, StartDBInstanceAutomatedBackupsReplicationOutput as StartDBInstanceAutomatedBackupsReplicationOutput, StartDBInstanceInput as StartDBInstanceInput, + StartDBInstanceInputDict as StartDBInstanceInputDict, StartDBInstanceOutput as StartDBInstanceOutput, StartExportTaskInput as StartExportTaskInput, + StartExportTaskInputDict as StartExportTaskInputDict, StartExportTaskOutput as StartExportTaskOutput, StopActivityStreamInput as StopActivityStreamInput, + StopActivityStreamInputDict as StopActivityStreamInputDict, StopActivityStreamOutput as StopActivityStreamOutput, StopDBClusterInput as StopDBClusterInput, + StopDBClusterInputDict as StopDBClusterInputDict, StopDBClusterOutput as StopDBClusterOutput, StopDBInstanceAutomatedBackupsReplicationInput as StopDBInstanceAutomatedBackupsReplicationInput, + StopDBInstanceAutomatedBackupsReplicationInputDict as StopDBInstanceAutomatedBackupsReplicationInputDict, StopDBInstanceAutomatedBackupsReplicationOutput as StopDBInstanceAutomatedBackupsReplicationOutput, StopDBInstanceInput as StopDBInstanceInput, + StopDBInstanceInputDict as StopDBInstanceInputDict, StopDBInstanceOutput as StopDBInstanceOutput, StorageEncryptionType as StorageEncryptionType, StorageQuotaExceededFault as StorageQuotaExceededFault, @@ -641,18 +820,24 @@ from ._private.models_2 import ( SubscriptionNotFoundFault as SubscriptionNotFoundFault, SupportedEngineLifecycle as SupportedEngineLifecycle, SwitchoverBlueGreenDeploymentInput as SwitchoverBlueGreenDeploymentInput, + SwitchoverBlueGreenDeploymentInputDict as SwitchoverBlueGreenDeploymentInputDict, SwitchoverBlueGreenDeploymentOutput as SwitchoverBlueGreenDeploymentOutput, SwitchoverDetail as SwitchoverDetail, SwitchoverGlobalClusterInput as SwitchoverGlobalClusterInput, + SwitchoverGlobalClusterInputDict as SwitchoverGlobalClusterInputDict, SwitchoverGlobalClusterOutput as SwitchoverGlobalClusterOutput, SwitchoverReadReplicaInput as SwitchoverReadReplicaInput, + SwitchoverReadReplicaInputDict as SwitchoverReadReplicaInputDict, SwitchoverReadReplicaOutput as SwitchoverReadReplicaOutput, Tag as Tag, + TagDict as TagDict, TagSpecification as TagSpecification, + TagSpecificationDict as TagSpecificationDict, TargetConnectionNetworkType as TargetConnectionNetworkType, TargetHealth as TargetHealth, TargetHealthReason as TargetHealthReason, TargetResourceConfiguration as TargetResourceConfiguration, + TargetResourceConfigurationDict as TargetResourceConfigurationDict, TargetRole as TargetRole, TargetState as TargetState, TargetType as TargetType, @@ -666,6 +851,7 @@ from ._private.models_2 import ( UpgradeRolloutOrder as UpgradeRolloutOrder, UpgradeTarget as UpgradeTarget, UserAuthConfig as UserAuthConfig, + UserAuthConfigDict as UserAuthConfigDict, UserAuthConfigInfo as UserAuthConfigInfo, ValidAdditionalStorageOptions as ValidAdditionalStorageOptions, ValidDBInstanceModificationsMessage as ValidDBInstanceModificationsMessage, diff --git a/clients/aws-sdk-rds/src/aws_sdk_rds/py.typed b/clients/aws-sdk-rds/src/aws_sdk_rds/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-rds/tests/_typecheck.py b/clients/aws-sdk-rds/tests/_typecheck.py index 248307cc7..a240c3278 100644 --- a/clients/aws-sdk-rds/tests/_typecheck.py +++ b/clients/aws-sdk-rds/tests/_typecheck.py @@ -2,99 +2,140 @@ from typing import Any +from aws_sdk_rds.aio.client import AsyncRDSClient +from aws_sdk_rds.client import RDSClient from aws_sdk_rds.models import ( AccountQuota, AddRoleToDBClusterInput, + AddRoleToDBClusterInputDict, AddRoleToDBClusterOutput, AddRoleToDBInstanceInput, + AddRoleToDBInstanceInputDict, AddRoleToDBInstanceOutput, AddSourceIdentifierToSubscriptionInput, + AddSourceIdentifierToSubscriptionInputDict, AddSourceIdentifierToSubscriptionOutput, AddTagsToResourceInput, + AddTagsToResourceInputDict, AddTagsToResourceOutput, AdditionalStorageVolume, + AdditionalStorageVolumeDict, AdditionalStorageVolumeOutput, ApplyPendingMaintenanceActionInput, + ApplyPendingMaintenanceActionInputDict, ApplyPendingMaintenanceActionOutput, AuthorizeDBSecurityGroupIngressInput, + AuthorizeDBSecurityGroupIngressInputDict, AuthorizeDBSecurityGroupIngressOutput, AvailabilityZone, AvailableAdditionalStorageVolumesOption, AvailableCapacityPerAvailabilityZone, AvailableProcessorFeature, BacktrackDBClusterInput, + BacktrackDBClusterInputDict, BacktrackDBClusterOutput, BlueGreenDeployment, BlueGreenDeploymentTask, CancelDBCapacityReservationInput, + CancelDBCapacityReservationInputDict, CancelDBCapacityReservationOutput, CancelExportTaskInput, + CancelExportTaskInputDict, CancelExportTaskOutput, Certificate, CertificateDetails, CharacterSet, CloudwatchLogsExportConfiguration, + CloudwatchLogsExportConfigurationDict, ClusterPendingModifiedValues, ConnectionPoolConfiguration, + ConnectionPoolConfigurationDict, ConnectionPoolConfigurationInfo, ContextAttribute, CopyDBClusterParameterGroupInput, + CopyDBClusterParameterGroupInputDict, CopyDBClusterParameterGroupOutput, CopyDBClusterSnapshotInput, + CopyDBClusterSnapshotInputDict, CopyDBClusterSnapshotOutput, CopyDBParameterGroupInput, + CopyDBParameterGroupInputDict, CopyDBParameterGroupOutput, CopyDBSnapshotInput, + CopyDBSnapshotInputDict, CopyDBSnapshotOutput, CopyOptionGroupInput, + CopyOptionGroupInputDict, CopyOptionGroupOutput, CreateBlueGreenDeploymentInput, + CreateBlueGreenDeploymentInputDict, CreateBlueGreenDeploymentOutput, CreateCustomDBEngineVersionInput, + CreateCustomDBEngineVersionInputDict, CreateCustomDBEngineVersionOutput, CreateDBCapacityReservationInput, + CreateDBCapacityReservationInputDict, CreateDBCapacityReservationOutput, CreateDBClusterEndpointInput, + CreateDBClusterEndpointInputDict, CreateDBClusterEndpointOutput, CreateDBClusterInput, + CreateDBClusterInputDict, CreateDBClusterOutput, CreateDBClusterParameterGroupInput, + CreateDBClusterParameterGroupInputDict, CreateDBClusterParameterGroupOutput, CreateDBClusterSnapshotInput, + CreateDBClusterSnapshotInputDict, CreateDBClusterSnapshotOutput, CreateDBInstanceInput, + CreateDBInstanceInputDict, CreateDBInstanceOutput, CreateDBInstanceReadReplicaInput, + CreateDBInstanceReadReplicaInputDict, CreateDBInstanceReadReplicaOutput, CreateDBParameterGroupInput, + CreateDBParameterGroupInputDict, CreateDBParameterGroupOutput, CreateDBProxyEndpointInput, + CreateDBProxyEndpointInputDict, CreateDBProxyEndpointOutput, CreateDBProxyInput, + CreateDBProxyInputDict, CreateDBProxyOutput, CreateDBSecurityGroupInput, + CreateDBSecurityGroupInputDict, CreateDBSecurityGroupOutput, CreateDBShardGroupInput, + CreateDBShardGroupInputDict, CreateDBShardGroupOutput, CreateDBSnapshotInput, + CreateDBSnapshotInputDict, CreateDBSnapshotOutput, CreateDBSubnetGroupInput, + CreateDBSubnetGroupInputDict, CreateDBSubnetGroupOutput, CreateEventSubscriptionInput, + CreateEventSubscriptionInputDict, CreateEventSubscriptionOutput, CreateGlobalClusterInput, + CreateGlobalClusterInputDict, CreateGlobalClusterOutput, CreateIntegrationInput, + CreateIntegrationInputDict, CreateIntegrationOutput, CreateOptionGroupInput, + CreateOptionGroupInputDict, CreateOptionGroupOutput, CreateTenantDatabaseInput, + CreateTenantDatabaseInputDict, CreateTenantDatabaseOutput, CustomDBEngineVersionAMI, DBCapacityReservation, DBCapacityReservationCommitmentInfo, DBCluster, DBClusterAssociatedRole, + DBClusterAssociatedRoleDict, DBClusterAutomatedBackup, DBClusterBacktrack, DBClusterEndpoint, @@ -129,155 +170,228 @@ DBSnapshotTenantDatabase, DBSubnetGroup, DeleteBlueGreenDeploymentInput, + DeleteBlueGreenDeploymentInputDict, DeleteBlueGreenDeploymentOutput, DeleteCustomDBEngineVersionInput, + DeleteCustomDBEngineVersionInputDict, DeleteCustomDBEngineVersionOutput, DeleteDBClusterAutomatedBackupInput, + DeleteDBClusterAutomatedBackupInputDict, DeleteDBClusterAutomatedBackupOutput, DeleteDBClusterEndpointInput, + DeleteDBClusterEndpointInputDict, DeleteDBClusterEndpointOutput, DeleteDBClusterInput, + DeleteDBClusterInputDict, DeleteDBClusterOutput, DeleteDBClusterParameterGroupInput, + DeleteDBClusterParameterGroupInputDict, DeleteDBClusterParameterGroupOutput, DeleteDBClusterSnapshotInput, + DeleteDBClusterSnapshotInputDict, DeleteDBClusterSnapshotOutput, DeleteDBInstanceAutomatedBackupInput, + DeleteDBInstanceAutomatedBackupInputDict, DeleteDBInstanceAutomatedBackupOutput, DeleteDBInstanceInput, + DeleteDBInstanceInputDict, DeleteDBInstanceOutput, DeleteDBParameterGroupInput, + DeleteDBParameterGroupInputDict, DeleteDBParameterGroupOutput, DeleteDBProxyEndpointInput, + DeleteDBProxyEndpointInputDict, DeleteDBProxyEndpointOutput, DeleteDBProxyInput, + DeleteDBProxyInputDict, DeleteDBProxyOutput, DeleteDBSecurityGroupInput, + DeleteDBSecurityGroupInputDict, DeleteDBSecurityGroupOutput, DeleteDBShardGroupInput, + DeleteDBShardGroupInputDict, DeleteDBShardGroupOutput, DeleteDBSnapshotInput, + DeleteDBSnapshotInputDict, DeleteDBSnapshotOutput, DeleteDBSubnetGroupInput, + DeleteDBSubnetGroupInputDict, DeleteDBSubnetGroupOutput, DeleteEventSubscriptionInput, + DeleteEventSubscriptionInputDict, DeleteEventSubscriptionOutput, DeleteGlobalClusterInput, + DeleteGlobalClusterInputDict, DeleteGlobalClusterOutput, DeleteIntegrationInput, + DeleteIntegrationInputDict, DeleteIntegrationOutput, DeleteOptionGroupInput, + DeleteOptionGroupInputDict, DeleteOptionGroupOutput, DeleteTenantDatabaseInput, + DeleteTenantDatabaseInputDict, DeleteTenantDatabaseOutput, DeregisterDBProxyTargetsInput, + DeregisterDBProxyTargetsInputDict, DeregisterDBProxyTargetsOutput, DescribeAccountAttributesInput, + DescribeAccountAttributesInputDict, DescribeAccountAttributesOutput, DescribeBlueGreenDeploymentsInput, + DescribeBlueGreenDeploymentsInputDict, DescribeBlueGreenDeploymentsOutput, DescribeCertificatesInput, + DescribeCertificatesInputDict, DescribeCertificatesOutput, DescribeDBCapacityReservationsInput, + DescribeDBCapacityReservationsInputDict, DescribeDBCapacityReservationsOutput, DescribeDBClusterAutomatedBackupsInput, + DescribeDBClusterAutomatedBackupsInputDict, DescribeDBClusterAutomatedBackupsOutput, DescribeDBClusterBacktracksInput, + DescribeDBClusterBacktracksInputDict, DescribeDBClusterBacktracksOutput, DescribeDBClusterEndpointsInput, + DescribeDBClusterEndpointsInputDict, DescribeDBClusterEndpointsOutput, DescribeDBClusterParameterGroupsInput, + DescribeDBClusterParameterGroupsInputDict, DescribeDBClusterParameterGroupsOutput, DescribeDBClusterParametersInput, + DescribeDBClusterParametersInputDict, DescribeDBClusterParametersOutput, DescribeDBClusterSnapshotAttributesInput, + DescribeDBClusterSnapshotAttributesInputDict, DescribeDBClusterSnapshotAttributesOutput, DescribeDBClusterSnapshotsInput, + DescribeDBClusterSnapshotsInputDict, DescribeDBClusterSnapshotsOutput, DescribeDBClustersInput, + DescribeDBClustersInputDict, DescribeDBClustersOutput, DescribeDBEngineVersionsInput, + DescribeDBEngineVersionsInputDict, DescribeDBEngineVersionsOutput, DescribeDBInstanceAutomatedBackupsInput, + DescribeDBInstanceAutomatedBackupsInputDict, DescribeDBInstanceAutomatedBackupsOutput, DescribeDBInstancesInput, + DescribeDBInstancesInputDict, DescribeDBInstancesOutput, DescribeDBLogFilesDetails, DescribeDBLogFilesInput, + DescribeDBLogFilesInputDict, DescribeDBLogFilesOutput, DescribeDBMajorEngineVersionsInput, + DescribeDBMajorEngineVersionsInputDict, DescribeDBMajorEngineVersionsOutput, DescribeDBParameterGroupsInput, + DescribeDBParameterGroupsInputDict, DescribeDBParameterGroupsOutput, DescribeDBParametersInput, + DescribeDBParametersInputDict, DescribeDBParametersOutput, DescribeDBProxiesInput, + DescribeDBProxiesInputDict, DescribeDBProxiesOutput, DescribeDBProxyEndpointsInput, + DescribeDBProxyEndpointsInputDict, DescribeDBProxyEndpointsOutput, DescribeDBProxyTargetGroupsInput, + DescribeDBProxyTargetGroupsInputDict, DescribeDBProxyTargetGroupsOutput, DescribeDBProxyTargetsInput, + DescribeDBProxyTargetsInputDict, DescribeDBProxyTargetsOutput, DescribeDBRecommendationsInput, + DescribeDBRecommendationsInputDict, DescribeDBRecommendationsOutput, DescribeDBSecurityGroupsInput, + DescribeDBSecurityGroupsInputDict, DescribeDBSecurityGroupsOutput, DescribeDBShardGroupsInput, + DescribeDBShardGroupsInputDict, DescribeDBShardGroupsOutput, DescribeDBSnapshotAttributesInput, + DescribeDBSnapshotAttributesInputDict, DescribeDBSnapshotAttributesOutput, DescribeDBSnapshotTenantDatabasesInput, + DescribeDBSnapshotTenantDatabasesInputDict, DescribeDBSnapshotTenantDatabasesOutput, DescribeDBSnapshotsInput, + DescribeDBSnapshotsInputDict, DescribeDBSnapshotsOutput, DescribeDBSubnetGroupsInput, + DescribeDBSubnetGroupsInputDict, DescribeDBSubnetGroupsOutput, DescribeEngineDefaultClusterParametersInput, + DescribeEngineDefaultClusterParametersInputDict, DescribeEngineDefaultClusterParametersOutput, DescribeEngineDefaultParametersInput, + DescribeEngineDefaultParametersInputDict, DescribeEngineDefaultParametersOutput, DescribeEventCategoriesInput, + DescribeEventCategoriesInputDict, DescribeEventCategoriesOutput, DescribeEventSubscriptionsInput, + DescribeEventSubscriptionsInputDict, DescribeEventSubscriptionsOutput, DescribeEventsInput, + DescribeEventsInputDict, DescribeEventsOutput, DescribeExportTasksInput, + DescribeExportTasksInputDict, DescribeExportTasksOutput, DescribeGlobalClustersInput, + DescribeGlobalClustersInputDict, DescribeGlobalClustersOutput, DescribeIntegrationsInput, + DescribeIntegrationsInputDict, DescribeIntegrationsOutput, DescribeOptionGroupOptionsInput, + DescribeOptionGroupOptionsInputDict, DescribeOptionGroupOptionsOutput, DescribeOptionGroupsInput, + DescribeOptionGroupsInputDict, DescribeOptionGroupsOutput, DescribeOrderableDBInstanceOptionsInput, + DescribeOrderableDBInstanceOptionsInputDict, DescribeOrderableDBInstanceOptionsOutput, DescribePendingMaintenanceActionsInput, + DescribePendingMaintenanceActionsInputDict, DescribePendingMaintenanceActionsOutput, DescribeReservedDBInstancesInput, + DescribeReservedDBInstancesInputDict, DescribeReservedDBInstancesOfferingsInput, + DescribeReservedDBInstancesOfferingsInputDict, DescribeReservedDBInstancesOfferingsOutput, DescribeReservedDBInstancesOutput, DescribeServerlessV2PlatformVersionsInput, + DescribeServerlessV2PlatformVersionsInputDict, DescribeServerlessV2PlatformVersionsOutput, DescribeSourceRegionsInput, + DescribeSourceRegionsInputDict, DescribeSourceRegionsOutput, DescribeTenantDatabasesInput, + DescribeTenantDatabasesInputDict, DescribeTenantDatabasesOutput, DescribeValidDBInstanceModificationsInput, + DescribeValidDBInstanceModificationsInputDict, DescribeValidDBInstanceModificationsOutput, DisableHttpEndpointInput, + DisableHttpEndpointInputDict, DisableHttpEndpointOutput, DocLink, DomainMembership, DoubleRange, DownloadDBLogFilePortionInput, + DownloadDBLogFilePortionInputDict, DownloadDBLogFilePortionOutput, EC2SecurityGroup, EnableHttpEndpointInput, + EnableHttpEndpointInputDict, EnableHttpEndpointOutput, Endpoint, EngineDefaults, @@ -286,11 +400,14 @@ EventSubscription, ExportTask, FailoverDBClusterInput, + FailoverDBClusterInputDict, FailoverDBClusterOutput, FailoverGlobalClusterInput, + FailoverGlobalClusterInputDict, FailoverGlobalClusterOutput, FailoverState, Filter, + FilterDict, GlobalCluster, GlobalClusterMember, IPRange, @@ -299,6 +416,7 @@ IssueDetails, LimitlessDatabase, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, MasterUserSecret, Metric, @@ -306,65 +424,93 @@ MetricReference, MinimumEngineVersionPerAllowedValue, ModifyActivityStreamInput, + ModifyActivityStreamInputDict, ModifyActivityStreamOutput, ModifyAdditionalStorageVolume, + ModifyAdditionalStorageVolumeDict, ModifyCertificatesInput, + ModifyCertificatesInputDict, ModifyCertificatesOutput, ModifyCurrentDBClusterCapacityInput, + ModifyCurrentDBClusterCapacityInputDict, ModifyCurrentDBClusterCapacityOutput, ModifyCustomDBEngineVersionInput, + ModifyCustomDBEngineVersionInputDict, ModifyCustomDBEngineVersionOutput, ModifyDBCapacityReservationInput, + ModifyDBCapacityReservationInputDict, ModifyDBCapacityReservationOutput, ModifyDBClusterEndpointInput, + ModifyDBClusterEndpointInputDict, ModifyDBClusterEndpointOutput, ModifyDBClusterInput, + ModifyDBClusterInputDict, ModifyDBClusterOutput, ModifyDBClusterParameterGroupInput, + ModifyDBClusterParameterGroupInputDict, ModifyDBClusterParameterGroupOutput, ModifyDBClusterSnapshotAttributeInput, + ModifyDBClusterSnapshotAttributeInputDict, ModifyDBClusterSnapshotAttributeOutput, ModifyDBInstanceInput, + ModifyDBInstanceInputDict, ModifyDBInstanceOutput, ModifyDBParameterGroupInput, + ModifyDBParameterGroupInputDict, ModifyDBParameterGroupOutput, ModifyDBProxyEndpointInput, + ModifyDBProxyEndpointInputDict, ModifyDBProxyEndpointOutput, ModifyDBProxyInput, + ModifyDBProxyInputDict, ModifyDBProxyOutput, ModifyDBProxyTargetGroupInput, + ModifyDBProxyTargetGroupInputDict, ModifyDBProxyTargetGroupOutput, ModifyDBRecommendationInput, + ModifyDBRecommendationInputDict, ModifyDBRecommendationOutput, ModifyDBShardGroupInput, + ModifyDBShardGroupInputDict, ModifyDBShardGroupOutput, ModifyDBSnapshotAttributeInput, + ModifyDBSnapshotAttributeInputDict, ModifyDBSnapshotAttributeOutput, ModifyDBSnapshotInput, + ModifyDBSnapshotInputDict, ModifyDBSnapshotOutput, ModifyDBSubnetGroupInput, + ModifyDBSubnetGroupInputDict, ModifyDBSubnetGroupOutput, ModifyEventSubscriptionInput, + ModifyEventSubscriptionInputDict, ModifyEventSubscriptionOutput, ModifyGlobalClusterInput, + ModifyGlobalClusterInputDict, ModifyGlobalClusterOutput, ModifyIntegrationInput, + ModifyIntegrationInputDict, ModifyIntegrationOutput, ModifyOptionGroupInput, + ModifyOptionGroupInputDict, ModifyOptionGroupOutput, ModifyTenantDatabaseInput, + ModifyTenantDatabaseInputDict, ModifyTenantDatabaseOutput, Option, OptionConfiguration, + OptionConfigurationDict, OptionGroup, OptionGroupMembership, OptionGroupOption, OptionGroupOptionSetting, OptionSetting, + OptionSettingDict, OptionVersion, OrderableDBInstanceOption, Outpost, Parameter, + ParameterDict, PendingCloudwatchLogsExports, PendingMaintenanceAction, PendingModifiedValues, @@ -372,103 +518,145 @@ PerformanceInsightsMetricQuery, PerformanceIssueDetails, ProcessorFeature, + ProcessorFeatureDict, PromoteReadReplicaDBClusterInput, + PromoteReadReplicaDBClusterInputDict, PromoteReadReplicaDBClusterOutput, PromoteReadReplicaInput, + PromoteReadReplicaInputDict, PromoteReadReplicaOutput, PurchaseReservedDBInstancesOfferingInput, + PurchaseReservedDBInstancesOfferingInputDict, PurchaseReservedDBInstancesOfferingOutput, Range, RdsCustomClusterConfiguration, + RdsCustomClusterConfigurationDict, RebootDBClusterInput, + RebootDBClusterInputDict, RebootDBClusterOutput, RebootDBInstanceInput, + RebootDBInstanceInputDict, RebootDBInstanceOutput, RebootDBShardGroupInput, + RebootDBShardGroupInputDict, RebootDBShardGroupOutput, RecommendedAction, RecommendedActionParameter, RecommendedActionUpdate, + RecommendedActionUpdateDict, RecurringCharge, ReferenceDetails, RegisterDBProxyTargetsInput, + RegisterDBProxyTargetsInputDict, RegisterDBProxyTargetsOutput, RemoveFromGlobalClusterInput, + RemoveFromGlobalClusterInputDict, RemoveFromGlobalClusterOutput, RemoveRoleFromDBClusterInput, + RemoveRoleFromDBClusterInputDict, RemoveRoleFromDBClusterOutput, RemoveRoleFromDBInstanceInput, + RemoveRoleFromDBInstanceInputDict, RemoveRoleFromDBInstanceOutput, RemoveSourceIdentifierFromSubscriptionInput, + RemoveSourceIdentifierFromSubscriptionInputDict, RemoveSourceIdentifierFromSubscriptionOutput, RemoveTagsFromResourceInput, + RemoveTagsFromResourceInputDict, RemoveTagsFromResourceOutput, ReservedDBInstance, ReservedDBInstancesOffering, ResetDBClusterParameterGroupInput, + ResetDBClusterParameterGroupInputDict, ResetDBClusterParameterGroupOutput, ResetDBParameterGroupInput, + ResetDBParameterGroupInputDict, ResetDBParameterGroupOutput, ResourcePendingMaintenanceActions, RestoreDBClusterFromS3Input, + RestoreDBClusterFromS3InputDict, RestoreDBClusterFromS3Output, RestoreDBClusterFromSnapshotInput, + RestoreDBClusterFromSnapshotInputDict, RestoreDBClusterFromSnapshotOutput, RestoreDBClusterToPointInTimeInput, + RestoreDBClusterToPointInTimeInputDict, RestoreDBClusterToPointInTimeOutput, RestoreDBInstanceFromDBSnapshotInput, + RestoreDBInstanceFromDBSnapshotInputDict, RestoreDBInstanceFromDBSnapshotOutput, RestoreDBInstanceFromS3Input, + RestoreDBInstanceFromS3InputDict, RestoreDBInstanceFromS3Output, RestoreDBInstanceToPointInTimeInput, + RestoreDBInstanceToPointInTimeInputDict, RestoreDBInstanceToPointInTimeOutput, RestoreWindow, RevokeDBSecurityGroupIngressInput, + RevokeDBSecurityGroupIngressInputDict, RevokeDBSecurityGroupIngressOutput, ScalarReferenceDetails, ScalingConfiguration, + ScalingConfigurationDict, ScalingConfigurationInfo, ServerlessV2FeaturesSupport, ServerlessV2PlatformVersionInfo, ServerlessV2ScalingConfiguration, + ServerlessV2ScalingConfigurationDict, ServerlessV2ScalingConfigurationInfo, SourceRegion, StartActivityStreamInput, + StartActivityStreamInputDict, StartActivityStreamOutput, StartDBClusterInput, + StartDBClusterInputDict, StartDBClusterOutput, StartDBInstanceAutomatedBackupsReplicationInput, + StartDBInstanceAutomatedBackupsReplicationInputDict, StartDBInstanceAutomatedBackupsReplicationOutput, StartDBInstanceInput, + StartDBInstanceInputDict, StartDBInstanceOutput, StartExportTaskInput, + StartExportTaskInputDict, StartExportTaskOutput, StopActivityStreamInput, + StopActivityStreamInputDict, StopActivityStreamOutput, StopDBClusterInput, + StopDBClusterInputDict, StopDBClusterOutput, StopDBInstanceAutomatedBackupsReplicationInput, + StopDBInstanceAutomatedBackupsReplicationInputDict, StopDBInstanceAutomatedBackupsReplicationOutput, StopDBInstanceInput, + StopDBInstanceInputDict, StopDBInstanceOutput, Subnet, SupportedEngineLifecycle, SwitchoverBlueGreenDeploymentInput, + SwitchoverBlueGreenDeploymentInputDict, SwitchoverBlueGreenDeploymentOutput, SwitchoverDetail, SwitchoverGlobalClusterInput, + SwitchoverGlobalClusterInputDict, SwitchoverGlobalClusterOutput, SwitchoverReadReplicaInput, + SwitchoverReadReplicaInputDict, SwitchoverReadReplicaOutput, Tag, + TagDict, TagSpecification, + TagSpecificationDict, TargetHealth, TargetResourceConfiguration, + TargetResourceConfigurationDict, TenantDatabase, TenantDatabasePendingModifiedValues, Timezone, UpgradeTarget, UserAuthConfig, + UserAuthConfigDict, UserAuthConfigInfo, ValidAdditionalStorageOptions, ValidDBInstanceModificationsMessage, @@ -478,8 +666,9 @@ ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -955,3 +1144,2592 @@ ValidStorageOptions() ValidVolumeOptions() VpcSecurityGroupMembership() +_params_0: AdditionalStorageVolumeDict = {"volume_name": _} +_params_1: AddRoleToDBClusterInputDict = {"db_cluster_identifier": _, "role_arn": _} +_params_2: AddRoleToDBInstanceInputDict = { + "db_instance_identifier": _, + "role_arn": _, + "feature_name": _, +} +_params_3: AddSourceIdentifierToSubscriptionInputDict = { + "subscription_name": _, + "source_identifier": _, +} +_params_4: AddTagsToResourceInputDict = {"resource_name": _, "tags": _} +_params_5: ApplyPendingMaintenanceActionInputDict = { + "resource_identifier": _, + "apply_action": _, + "opt_in_type": _, +} +_params_6: AuthorizeDBSecurityGroupIngressInputDict = {"db_security_group_name": _} +_params_7: BacktrackDBClusterInputDict = {"db_cluster_identifier": _, "backtrack_to": _} +_params_8: CancelDBCapacityReservationInputDict = { + "db_capacity_reservation_identifier": _ +} +_params_9: CancelExportTaskInputDict = {"export_task_identifier": _} +_params_10: CloudwatchLogsExportConfigurationDict = {} +_params_11: ConnectionPoolConfigurationDict = {} +_params_12: CopyDBClusterParameterGroupInputDict = { + "source_db_cluster_parameter_group_identifier": _, + "target_db_cluster_parameter_group_identifier": _, + "target_db_cluster_parameter_group_description": _, +} +_params_13: CopyDBClusterSnapshotInputDict = { + "source_db_cluster_snapshot_identifier": _, + "target_db_cluster_snapshot_identifier": _, +} +_params_14: CopyDBParameterGroupInputDict = { + "source_db_parameter_group_identifier": _, + "target_db_parameter_group_identifier": _, + "target_db_parameter_group_description": _, +} +_params_15: CopyDBSnapshotInputDict = { + "source_db_snapshot_identifier": _, + "target_db_snapshot_identifier": _, +} +_params_16: CopyOptionGroupInputDict = { + "source_option_group_identifier": _, + "target_option_group_identifier": _, + "target_option_group_description": _, +} +_params_17: CreateBlueGreenDeploymentInputDict = { + "blue_green_deployment_name": _, + "source": _, +} +_params_18: CreateCustomDBEngineVersionInputDict = {"engine": _, "engine_version": _} +_params_19: CreateDBCapacityReservationInputDict = { + "db_capacity_reservation_name": _, + "db_instance_class": _, + "engine": _, + "capacity_per_availability_zone": _, + "availability_zones": _, +} +_params_20: CreateDBClusterEndpointInputDict = { + "db_cluster_identifier": _, + "db_cluster_endpoint_identifier": _, + "endpoint_type": _, +} +_params_21: CreateDBClusterInputDict = {"db_cluster_identifier": _, "engine": _} +_params_22: CreateDBClusterParameterGroupInputDict = { + "db_cluster_parameter_group_name": _, + "db_parameter_group_family": _, + "description": _, +} +_params_23: CreateDBClusterSnapshotInputDict = { + "db_cluster_snapshot_identifier": _, + "db_cluster_identifier": _, +} +_params_24: CreateDBInstanceInputDict = { + "db_instance_identifier": _, + "db_instance_class": _, + "engine": _, +} +_params_25: CreateDBInstanceReadReplicaInputDict = {"db_instance_identifier": _} +_params_26: CreateDBParameterGroupInputDict = { + "db_parameter_group_name": _, + "db_parameter_group_family": _, + "description": _, +} +_params_27: CreateDBProxyEndpointInputDict = { + "db_proxy_name": _, + "db_proxy_endpoint_name": _, + "vpc_subnet_ids": _, +} +_params_28: CreateDBProxyInputDict = { + "db_proxy_name": _, + "engine_family": _, + "role_arn": _, + "vpc_subnet_ids": _, +} +_params_29: CreateDBSecurityGroupInputDict = { + "db_security_group_name": _, + "db_security_group_description": _, +} +_params_30: CreateDBShardGroupInputDict = { + "db_shard_group_identifier": _, + "db_cluster_identifier": _, + "max_acu": _, +} +_params_31: CreateDBSnapshotInputDict = { + "db_snapshot_identifier": _, + "db_instance_identifier": _, +} +_params_32: CreateDBSubnetGroupInputDict = { + "db_subnet_group_name": _, + "db_subnet_group_description": _, + "subnet_ids": _, +} +_params_33: CreateEventSubscriptionInputDict = { + "subscription_name": _, + "sns_topic_arn": _, +} +_params_34: CreateGlobalClusterInputDict = {"global_cluster_identifier": _} +_params_35: CreateIntegrationInputDict = { + "source_arn": _, + "target_arn": _, + "integration_name": _, +} +_params_36: CreateOptionGroupInputDict = { + "option_group_name": _, + "engine_name": _, + "major_engine_version": _, + "option_group_description": _, +} +_params_37: CreateTenantDatabaseInputDict = { + "db_instance_identifier": _, + "tenant_db_name": _, + "master_username": _, +} +_params_38: DBClusterAssociatedRoleDict = {"role_arn": _} +_params_39: DeleteBlueGreenDeploymentInputDict = {"blue_green_deployment_identifier": _} +_params_40: DeleteCustomDBEngineVersionInputDict = {"engine": _, "engine_version": _} +_params_41: DeleteDBClusterAutomatedBackupInputDict = {"db_cluster_resource_id": _} +_params_42: DeleteDBClusterEndpointInputDict = {"db_cluster_endpoint_identifier": _} +_params_43: DeleteDBClusterInputDict = {"db_cluster_identifier": _} +_params_44: DeleteDBClusterParameterGroupInputDict = { + "db_cluster_parameter_group_name": _ +} +_params_45: DeleteDBClusterSnapshotInputDict = {"db_cluster_snapshot_identifier": _} +_params_46: DeleteDBInstanceAutomatedBackupInputDict = {} +_params_47: DeleteDBInstanceInputDict = {"db_instance_identifier": _} +_params_48: DeleteDBParameterGroupInputDict = {"db_parameter_group_name": _} +_params_49: DeleteDBProxyEndpointInputDict = {"db_proxy_endpoint_name": _} +_params_50: DeleteDBProxyInputDict = {"db_proxy_name": _} +_params_51: DeleteDBSecurityGroupInputDict = {"db_security_group_name": _} +_params_52: DeleteDBShardGroupInputDict = {"db_shard_group_identifier": _} +_params_53: DeleteDBSnapshotInputDict = {"db_snapshot_identifier": _} +_params_54: DeleteDBSubnetGroupInputDict = {"db_subnet_group_name": _} +_params_55: DeleteEventSubscriptionInputDict = {"subscription_name": _} +_params_56: DeleteGlobalClusterInputDict = {"global_cluster_identifier": _} +_params_57: DeleteIntegrationInputDict = {"integration_identifier": _} +_params_58: DeleteOptionGroupInputDict = {"option_group_name": _} +_params_59: DeleteTenantDatabaseInputDict = { + "db_instance_identifier": _, + "tenant_db_name": _, +} +_params_60: DeregisterDBProxyTargetsInputDict = {"db_proxy_name": _} +_params_61: DescribeAccountAttributesInputDict = {} +_params_62: DescribeBlueGreenDeploymentsInputDict = {} +_params_63: DescribeCertificatesInputDict = {} +_params_64: DescribeDBCapacityReservationsInputDict = {} +_params_65: DescribeDBClusterAutomatedBackupsInputDict = {} +_params_66: DescribeDBClusterBacktracksInputDict = {"db_cluster_identifier": _} +_params_67: DescribeDBClusterEndpointsInputDict = {} +_params_68: DescribeDBClusterParameterGroupsInputDict = {} +_params_69: DescribeDBClusterParametersInputDict = { + "db_cluster_parameter_group_name": _ +} +_params_70: DescribeDBClustersInputDict = {} +_params_71: DescribeDBClusterSnapshotAttributesInputDict = { + "db_cluster_snapshot_identifier": _ +} +_params_72: DescribeDBClusterSnapshotsInputDict = {} +_params_73: DescribeDBEngineVersionsInputDict = {} +_params_74: DescribeDBInstanceAutomatedBackupsInputDict = {} +_params_75: DescribeDBInstancesInputDict = {} +_params_76: DescribeDBLogFilesInputDict = {"db_instance_identifier": _} +_params_77: DescribeDBMajorEngineVersionsInputDict = {} +_params_78: DescribeDBParameterGroupsInputDict = {} +_params_79: DescribeDBParametersInputDict = {"db_parameter_group_name": _} +_params_80: DescribeDBProxiesInputDict = {} +_params_81: DescribeDBProxyEndpointsInputDict = {} +_params_82: DescribeDBProxyTargetGroupsInputDict = {"db_proxy_name": _} +_params_83: DescribeDBProxyTargetsInputDict = {"db_proxy_name": _} +_params_84: DescribeDBRecommendationsInputDict = {} +_params_85: DescribeDBSecurityGroupsInputDict = {} +_params_86: DescribeDBShardGroupsInputDict = {} +_params_87: DescribeDBSnapshotAttributesInputDict = {"db_snapshot_identifier": _} +_params_88: DescribeDBSnapshotsInputDict = {} +_params_89: DescribeDBSnapshotTenantDatabasesInputDict = {} +_params_90: DescribeDBSubnetGroupsInputDict = {} +_params_91: DescribeEngineDefaultClusterParametersInputDict = { + "db_parameter_group_family": _ +} +_params_92: DescribeEngineDefaultParametersInputDict = {"db_parameter_group_family": _} +_params_93: DescribeEventCategoriesInputDict = {} +_params_94: DescribeEventsInputDict = {} +_params_95: DescribeEventSubscriptionsInputDict = {} +_params_96: DescribeExportTasksInputDict = {} +_params_97: DescribeGlobalClustersInputDict = {} +_params_98: DescribeIntegrationsInputDict = {} +_params_99: DescribeOptionGroupOptionsInputDict = {"engine_name": _} +_params_100: DescribeOptionGroupsInputDict = {} +_params_101: DescribeOrderableDBInstanceOptionsInputDict = {"engine": _} +_params_102: DescribePendingMaintenanceActionsInputDict = {} +_params_103: DescribeReservedDBInstancesInputDict = {} +_params_104: DescribeReservedDBInstancesOfferingsInputDict = {} +_params_105: DescribeServerlessV2PlatformVersionsInputDict = {} +_params_106: DescribeSourceRegionsInputDict = {} +_params_107: DescribeTenantDatabasesInputDict = {} +_params_108: DescribeValidDBInstanceModificationsInputDict = { + "db_instance_identifier": _ +} +_params_109: DisableHttpEndpointInputDict = {"resource_arn": _} +_params_110: DownloadDBLogFilePortionInputDict = { + "db_instance_identifier": _, + "log_file_name": _, +} +_params_111: EnableHttpEndpointInputDict = {"resource_arn": _} +_params_112: FailoverDBClusterInputDict = {"db_cluster_identifier": _} +_params_113: FailoverGlobalClusterInputDict = { + "global_cluster_identifier": _, + "target_db_cluster_identifier": _, +} +_params_114: FilterDict = {"name": _, "values": _} +_params_115: ListTagsForResourceInputDict = {"resource_name": _} +_params_116: ModifyActivityStreamInputDict = {} +_params_117: ModifyAdditionalStorageVolumeDict = {"volume_name": _} +_params_118: ModifyCertificatesInputDict = {} +_params_119: ModifyCurrentDBClusterCapacityInputDict = {"db_cluster_identifier": _} +_params_120: ModifyCustomDBEngineVersionInputDict = {"engine": _, "engine_version": _} +_params_121: ModifyDBCapacityReservationInputDict = { + "db_capacity_reservation_identifier": _ +} +_params_122: ModifyDBClusterEndpointInputDict = {"db_cluster_endpoint_identifier": _} +_params_123: ModifyDBClusterInputDict = {"db_cluster_identifier": _} +_params_124: ModifyDBClusterParameterGroupInputDict = { + "db_cluster_parameter_group_name": _, + "parameters": _, +} +_params_125: ModifyDBClusterSnapshotAttributeInputDict = { + "db_cluster_snapshot_identifier": _, + "attribute_name": _, +} +_params_126: ModifyDBInstanceInputDict = {"db_instance_identifier": _} +_params_127: ModifyDBParameterGroupInputDict = { + "db_parameter_group_name": _, + "parameters": _, +} +_params_128: ModifyDBProxyEndpointInputDict = {"db_proxy_endpoint_name": _} +_params_129: ModifyDBProxyInputDict = {"db_proxy_name": _} +_params_130: ModifyDBProxyTargetGroupInputDict = { + "target_group_name": _, + "db_proxy_name": _, +} +_params_131: ModifyDBRecommendationInputDict = {"recommendation_id": _} +_params_132: ModifyDBShardGroupInputDict = {"db_shard_group_identifier": _} +_params_133: ModifyDBSnapshotAttributeInputDict = { + "db_snapshot_identifier": _, + "attribute_name": _, +} +_params_134: ModifyDBSnapshotInputDict = {"db_snapshot_identifier": _} +_params_135: ModifyDBSubnetGroupInputDict = {"db_subnet_group_name": _, "subnet_ids": _} +_params_136: ModifyEventSubscriptionInputDict = {"subscription_name": _} +_params_137: ModifyGlobalClusterInputDict = {"global_cluster_identifier": _} +_params_138: ModifyIntegrationInputDict = {"integration_identifier": _} +_params_139: ModifyOptionGroupInputDict = {"option_group_name": _} +_params_140: ModifyTenantDatabaseInputDict = { + "db_instance_identifier": _, + "tenant_db_name": _, +} +_params_141: OptionConfigurationDict = {"option_name": _} +_params_142: OptionSettingDict = {} +_params_143: ParameterDict = {} +_params_144: ProcessorFeatureDict = {} +_params_145: PromoteReadReplicaDBClusterInputDict = {"db_cluster_identifier": _} +_params_146: PromoteReadReplicaInputDict = {"db_instance_identifier": _} +_params_147: PurchaseReservedDBInstancesOfferingInputDict = { + "reserved_db_instances_offering_id": _ +} +_params_148: RdsCustomClusterConfigurationDict = {} +_params_149: RebootDBClusterInputDict = {"db_cluster_identifier": _} +_params_150: RebootDBInstanceInputDict = {"db_instance_identifier": _} +_params_151: RebootDBShardGroupInputDict = {"db_shard_group_identifier": _} +_params_152: RecommendedActionUpdateDict = {"action_id": _, "status": _} +_params_153: RegisterDBProxyTargetsInputDict = {"db_proxy_name": _} +_params_154: RemoveFromGlobalClusterInputDict = { + "global_cluster_identifier": _, + "db_cluster_identifier": _, +} +_params_155: RemoveRoleFromDBClusterInputDict = { + "db_cluster_identifier": _, + "role_arn": _, +} +_params_156: RemoveRoleFromDBInstanceInputDict = { + "db_instance_identifier": _, + "role_arn": _, + "feature_name": _, +} +_params_157: RemoveSourceIdentifierFromSubscriptionInputDict = { + "subscription_name": _, + "source_identifier": _, +} +_params_158: RemoveTagsFromResourceInputDict = {"resource_name": _, "tag_keys": _} +_params_159: ResetDBClusterParameterGroupInputDict = { + "db_cluster_parameter_group_name": _ +} +_params_160: ResetDBParameterGroupInputDict = {"db_parameter_group_name": _} +_params_161: RestoreDBClusterFromS3InputDict = { + "db_cluster_identifier": _, + "engine": _, + "master_username": _, + "source_engine": _, + "source_engine_version": _, + "s3_bucket_name": _, + "s3_ingestion_role_arn": _, +} +_params_162: RestoreDBClusterFromSnapshotInputDict = { + "db_cluster_identifier": _, + "snapshot_identifier": _, + "engine": _, +} +_params_163: RestoreDBClusterToPointInTimeInputDict = {"db_cluster_identifier": _} +_params_164: RestoreDBInstanceFromDBSnapshotInputDict = {"db_instance_identifier": _} +_params_165: RestoreDBInstanceFromS3InputDict = { + "db_instance_identifier": _, + "db_instance_class": _, + "engine": _, + "source_engine": _, + "source_engine_version": _, + "s3_bucket_name": _, + "s3_ingestion_role_arn": _, +} +_params_166: RestoreDBInstanceToPointInTimeInputDict = { + "target_db_instance_identifier": _ +} +_params_167: RevokeDBSecurityGroupIngressInputDict = {"db_security_group_name": _} +_params_168: ScalingConfigurationDict = {} +_params_169: ServerlessV2ScalingConfigurationDict = {} +_params_170: StartActivityStreamInputDict = { + "resource_arn": _, + "mode": _, + "kms_key_id": _, +} +_params_171: StartDBClusterInputDict = {"db_cluster_identifier": _} +_params_172: StartDBInstanceAutomatedBackupsReplicationInputDict = { + "source_db_instance_arn": _ +} +_params_173: StartDBInstanceInputDict = {"db_instance_identifier": _} +_params_174: StartExportTaskInputDict = { + "export_task_identifier": _, + "source_arn": _, + "s3_bucket_name": _, + "iam_role_arn": _, + "kms_key_id": _, +} +_params_175: StopActivityStreamInputDict = {"resource_arn": _} +_params_176: StopDBClusterInputDict = {"db_cluster_identifier": _} +_params_177: StopDBInstanceAutomatedBackupsReplicationInputDict = { + "source_db_instance_arn": _ +} +_params_178: StopDBInstanceInputDict = {"db_instance_identifier": _} +_params_179: SwitchoverBlueGreenDeploymentInputDict = { + "blue_green_deployment_identifier": _ +} +_params_180: SwitchoverGlobalClusterInputDict = { + "global_cluster_identifier": _, + "target_db_cluster_identifier": _, +} +_params_181: SwitchoverReadReplicaInputDict = {"db_instance_identifier": _} +_params_182: TagDict = {} +_params_183: TagSpecificationDict = {} +_params_184: TargetResourceConfigurationDict = {"source_arn": _} +_params_185: UserAuthConfigDict = {} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncRDSClient) -> None: + pass + await client.add_role_to_db_cluster(db_cluster_identifier=_, role_arn=_) + await client.add_role_to_db_cluster(**_request(AddRoleToDBClusterInputDict)) + await client.add_role_to_db_cluster(_request(AddRoleToDBClusterInput)) + await client.add_role_to_db_cluster(_request(AddRoleToDBClusterInputDict)) + await client.add_role_to_db_instance( + db_instance_identifier=_, role_arn=_, feature_name=_ + ) + await client.add_role_to_db_instance(**_request(AddRoleToDBInstanceInputDict)) + await client.add_role_to_db_instance(_request(AddRoleToDBInstanceInput)) + await client.add_role_to_db_instance(_request(AddRoleToDBInstanceInputDict)) + await client.add_source_identifier_to_subscription( + subscription_name=_, source_identifier=_ + ) + await client.add_source_identifier_to_subscription( + **_request(AddSourceIdentifierToSubscriptionInputDict) + ) + await client.add_source_identifier_to_subscription( + _request(AddSourceIdentifierToSubscriptionInput) + ) + await client.add_source_identifier_to_subscription( + _request(AddSourceIdentifierToSubscriptionInputDict) + ) + await client.add_tags_to_resource(resource_name=_, tags=_) + await client.add_tags_to_resource(**_request(AddTagsToResourceInputDict)) + await client.add_tags_to_resource(_request(AddTagsToResourceInput)) + await client.add_tags_to_resource(_request(AddTagsToResourceInputDict)) + await client.apply_pending_maintenance_action( + resource_identifier=_, apply_action=_, opt_in_type=_ + ) + await client.apply_pending_maintenance_action( + **_request(ApplyPendingMaintenanceActionInputDict) + ) + await client.apply_pending_maintenance_action( + _request(ApplyPendingMaintenanceActionInput) + ) + await client.apply_pending_maintenance_action( + _request(ApplyPendingMaintenanceActionInputDict) + ) + await client.authorize_db_security_group_ingress(db_security_group_name=_) + await client.authorize_db_security_group_ingress( + **_request(AuthorizeDBSecurityGroupIngressInputDict) + ) + await client.authorize_db_security_group_ingress( + _request(AuthorizeDBSecurityGroupIngressInput) + ) + await client.authorize_db_security_group_ingress( + _request(AuthorizeDBSecurityGroupIngressInputDict) + ) + await client.backtrack_db_cluster(db_cluster_identifier=_, backtrack_to=_) + await client.backtrack_db_cluster(**_request(BacktrackDBClusterInputDict)) + await client.backtrack_db_cluster(_request(BacktrackDBClusterInput)) + await client.backtrack_db_cluster(_request(BacktrackDBClusterInputDict)) + await client.cancel_db_capacity_reservation(db_capacity_reservation_identifier=_) + await client.cancel_db_capacity_reservation( + **_request(CancelDBCapacityReservationInputDict) + ) + await client.cancel_db_capacity_reservation( + _request(CancelDBCapacityReservationInput) + ) + await client.cancel_db_capacity_reservation( + _request(CancelDBCapacityReservationInputDict) + ) + await client.cancel_export_task(export_task_identifier=_) + await client.cancel_export_task(**_request(CancelExportTaskInputDict)) + await client.cancel_export_task(_request(CancelExportTaskInput)) + await client.cancel_export_task(_request(CancelExportTaskInputDict)) + await client.copy_db_cluster_parameter_group( + source_db_cluster_parameter_group_identifier=_, + target_db_cluster_parameter_group_identifier=_, + target_db_cluster_parameter_group_description=_, + ) + await client.copy_db_cluster_parameter_group( + **_request(CopyDBClusterParameterGroupInputDict) + ) + await client.copy_db_cluster_parameter_group( + _request(CopyDBClusterParameterGroupInput) + ) + await client.copy_db_cluster_parameter_group( + _request(CopyDBClusterParameterGroupInputDict) + ) + await client.copy_db_cluster_snapshot( + source_db_cluster_snapshot_identifier=_, target_db_cluster_snapshot_identifier=_ + ) + await client.copy_db_cluster_snapshot(**_request(CopyDBClusterSnapshotInputDict)) + await client.copy_db_cluster_snapshot(_request(CopyDBClusterSnapshotInput)) + await client.copy_db_cluster_snapshot(_request(CopyDBClusterSnapshotInputDict)) + await client.copy_db_parameter_group( + source_db_parameter_group_identifier=_, + target_db_parameter_group_identifier=_, + target_db_parameter_group_description=_, + ) + await client.copy_db_parameter_group(**_request(CopyDBParameterGroupInputDict)) + await client.copy_db_parameter_group(_request(CopyDBParameterGroupInput)) + await client.copy_db_parameter_group(_request(CopyDBParameterGroupInputDict)) + await client.copy_db_snapshot( + source_db_snapshot_identifier=_, target_db_snapshot_identifier=_ + ) + await client.copy_db_snapshot(**_request(CopyDBSnapshotInputDict)) + await client.copy_db_snapshot(_request(CopyDBSnapshotInput)) + await client.copy_db_snapshot(_request(CopyDBSnapshotInputDict)) + await client.copy_option_group( + source_option_group_identifier=_, + target_option_group_identifier=_, + target_option_group_description=_, + ) + await client.copy_option_group(**_request(CopyOptionGroupInputDict)) + await client.copy_option_group(_request(CopyOptionGroupInput)) + await client.copy_option_group(_request(CopyOptionGroupInputDict)) + await client.create_blue_green_deployment(blue_green_deployment_name=_, source=_) + await client.create_blue_green_deployment( + **_request(CreateBlueGreenDeploymentInputDict) + ) + await client.create_blue_green_deployment(_request(CreateBlueGreenDeploymentInput)) + await client.create_blue_green_deployment( + _request(CreateBlueGreenDeploymentInputDict) + ) + await client.create_custom_db_engine_version(engine=_, engine_version=_) + await client.create_custom_db_engine_version( + **_request(CreateCustomDBEngineVersionInputDict) + ) + await client.create_custom_db_engine_version( + _request(CreateCustomDBEngineVersionInput) + ) + await client.create_custom_db_engine_version( + _request(CreateCustomDBEngineVersionInputDict) + ) + await client.create_db_capacity_reservation( + db_capacity_reservation_name=_, + db_instance_class=_, + engine=_, + capacity_per_availability_zone=_, + availability_zones=_, + ) + await client.create_db_capacity_reservation( + **_request(CreateDBCapacityReservationInputDict) + ) + await client.create_db_capacity_reservation( + _request(CreateDBCapacityReservationInput) + ) + await client.create_db_capacity_reservation( + _request(CreateDBCapacityReservationInputDict) + ) + await client.create_db_cluster(db_cluster_identifier=_, engine=_) + await client.create_db_cluster(**_request(CreateDBClusterInputDict)) + await client.create_db_cluster(_request(CreateDBClusterInput)) + await client.create_db_cluster(_request(CreateDBClusterInputDict)) + await client.create_db_cluster_endpoint( + db_cluster_identifier=_, db_cluster_endpoint_identifier=_, endpoint_type=_ + ) + await client.create_db_cluster_endpoint( + **_request(CreateDBClusterEndpointInputDict) + ) + await client.create_db_cluster_endpoint(_request(CreateDBClusterEndpointInput)) + await client.create_db_cluster_endpoint(_request(CreateDBClusterEndpointInputDict)) + await client.create_db_cluster_parameter_group( + db_cluster_parameter_group_name=_, db_parameter_group_family=_, description=_ + ) + await client.create_db_cluster_parameter_group( + **_request(CreateDBClusterParameterGroupInputDict) + ) + await client.create_db_cluster_parameter_group( + _request(CreateDBClusterParameterGroupInput) + ) + await client.create_db_cluster_parameter_group( + _request(CreateDBClusterParameterGroupInputDict) + ) + await client.create_db_cluster_snapshot( + db_cluster_snapshot_identifier=_, db_cluster_identifier=_ + ) + await client.create_db_cluster_snapshot( + **_request(CreateDBClusterSnapshotInputDict) + ) + await client.create_db_cluster_snapshot(_request(CreateDBClusterSnapshotInput)) + await client.create_db_cluster_snapshot(_request(CreateDBClusterSnapshotInputDict)) + await client.create_db_instance( + db_instance_identifier=_, db_instance_class=_, engine=_ + ) + await client.create_db_instance(**_request(CreateDBInstanceInputDict)) + await client.create_db_instance(_request(CreateDBInstanceInput)) + await client.create_db_instance(_request(CreateDBInstanceInputDict)) + await client.create_db_instance_read_replica(db_instance_identifier=_) + await client.create_db_instance_read_replica( + **_request(CreateDBInstanceReadReplicaInputDict) + ) + await client.create_db_instance_read_replica( + _request(CreateDBInstanceReadReplicaInput) + ) + await client.create_db_instance_read_replica( + _request(CreateDBInstanceReadReplicaInputDict) + ) + await client.create_db_parameter_group( + db_parameter_group_name=_, db_parameter_group_family=_, description=_ + ) + await client.create_db_parameter_group(**_request(CreateDBParameterGroupInputDict)) + await client.create_db_parameter_group(_request(CreateDBParameterGroupInput)) + await client.create_db_parameter_group(_request(CreateDBParameterGroupInputDict)) + await client.create_db_proxy( + db_proxy_name=_, engine_family=_, role_arn=_, vpc_subnet_ids=_ + ) + await client.create_db_proxy(**_request(CreateDBProxyInputDict)) + await client.create_db_proxy(_request(CreateDBProxyInput)) + await client.create_db_proxy(_request(CreateDBProxyInputDict)) + await client.create_db_proxy_endpoint( + db_proxy_name=_, db_proxy_endpoint_name=_, vpc_subnet_ids=_ + ) + await client.create_db_proxy_endpoint(**_request(CreateDBProxyEndpointInputDict)) + await client.create_db_proxy_endpoint(_request(CreateDBProxyEndpointInput)) + await client.create_db_proxy_endpoint(_request(CreateDBProxyEndpointInputDict)) + await client.create_db_security_group( + db_security_group_name=_, db_security_group_description=_ + ) + await client.create_db_security_group(**_request(CreateDBSecurityGroupInputDict)) + await client.create_db_security_group(_request(CreateDBSecurityGroupInput)) + await client.create_db_security_group(_request(CreateDBSecurityGroupInputDict)) + await client.create_db_shard_group( + db_shard_group_identifier=_, db_cluster_identifier=_, max_acu=_ + ) + await client.create_db_shard_group(**_request(CreateDBShardGroupInputDict)) + await client.create_db_shard_group(_request(CreateDBShardGroupInput)) + await client.create_db_shard_group(_request(CreateDBShardGroupInputDict)) + await client.create_db_snapshot(db_snapshot_identifier=_, db_instance_identifier=_) + await client.create_db_snapshot(**_request(CreateDBSnapshotInputDict)) + await client.create_db_snapshot(_request(CreateDBSnapshotInput)) + await client.create_db_snapshot(_request(CreateDBSnapshotInputDict)) + await client.create_db_subnet_group( + db_subnet_group_name=_, db_subnet_group_description=_, subnet_ids=_ + ) + await client.create_db_subnet_group(**_request(CreateDBSubnetGroupInputDict)) + await client.create_db_subnet_group(_request(CreateDBSubnetGroupInput)) + await client.create_db_subnet_group(_request(CreateDBSubnetGroupInputDict)) + await client.create_event_subscription(subscription_name=_, sns_topic_arn=_) + await client.create_event_subscription(**_request(CreateEventSubscriptionInputDict)) + await client.create_event_subscription(_request(CreateEventSubscriptionInput)) + await client.create_event_subscription(_request(CreateEventSubscriptionInputDict)) + await client.create_global_cluster(global_cluster_identifier=_) + await client.create_global_cluster(**_request(CreateGlobalClusterInputDict)) + await client.create_global_cluster(_request(CreateGlobalClusterInput)) + await client.create_global_cluster(_request(CreateGlobalClusterInputDict)) + await client.create_integration(source_arn=_, target_arn=_, integration_name=_) + await client.create_integration(**_request(CreateIntegrationInputDict)) + await client.create_integration(_request(CreateIntegrationInput)) + await client.create_integration(_request(CreateIntegrationInputDict)) + await client.create_option_group( + option_group_name=_, + engine_name=_, + major_engine_version=_, + option_group_description=_, + ) + await client.create_option_group(**_request(CreateOptionGroupInputDict)) + await client.create_option_group(_request(CreateOptionGroupInput)) + await client.create_option_group(_request(CreateOptionGroupInputDict)) + await client.create_tenant_database( + db_instance_identifier=_, tenant_db_name=_, master_username=_ + ) + await client.create_tenant_database(**_request(CreateTenantDatabaseInputDict)) + await client.create_tenant_database(_request(CreateTenantDatabaseInput)) + await client.create_tenant_database(_request(CreateTenantDatabaseInputDict)) + await client.delete_blue_green_deployment(blue_green_deployment_identifier=_) + await client.delete_blue_green_deployment( + **_request(DeleteBlueGreenDeploymentInputDict) + ) + await client.delete_blue_green_deployment(_request(DeleteBlueGreenDeploymentInput)) + await client.delete_blue_green_deployment( + _request(DeleteBlueGreenDeploymentInputDict) + ) + await client.delete_custom_db_engine_version(engine=_, engine_version=_) + await client.delete_custom_db_engine_version( + **_request(DeleteCustomDBEngineVersionInputDict) + ) + await client.delete_custom_db_engine_version( + _request(DeleteCustomDBEngineVersionInput) + ) + await client.delete_custom_db_engine_version( + _request(DeleteCustomDBEngineVersionInputDict) + ) + await client.delete_db_cluster(db_cluster_identifier=_) + await client.delete_db_cluster(**_request(DeleteDBClusterInputDict)) + await client.delete_db_cluster(_request(DeleteDBClusterInput)) + await client.delete_db_cluster(_request(DeleteDBClusterInputDict)) + await client.delete_db_cluster_automated_backup(db_cluster_resource_id=_) + await client.delete_db_cluster_automated_backup( + **_request(DeleteDBClusterAutomatedBackupInputDict) + ) + await client.delete_db_cluster_automated_backup( + _request(DeleteDBClusterAutomatedBackupInput) + ) + await client.delete_db_cluster_automated_backup( + _request(DeleteDBClusterAutomatedBackupInputDict) + ) + await client.delete_db_cluster_endpoint(db_cluster_endpoint_identifier=_) + await client.delete_db_cluster_endpoint( + **_request(DeleteDBClusterEndpointInputDict) + ) + await client.delete_db_cluster_endpoint(_request(DeleteDBClusterEndpointInput)) + await client.delete_db_cluster_endpoint(_request(DeleteDBClusterEndpointInputDict)) + await client.delete_db_cluster_parameter_group(db_cluster_parameter_group_name=_) + await client.delete_db_cluster_parameter_group( + **_request(DeleteDBClusterParameterGroupInputDict) + ) + await client.delete_db_cluster_parameter_group( + _request(DeleteDBClusterParameterGroupInput) + ) + await client.delete_db_cluster_parameter_group( + _request(DeleteDBClusterParameterGroupInputDict) + ) + await client.delete_db_cluster_snapshot(db_cluster_snapshot_identifier=_) + await client.delete_db_cluster_snapshot( + **_request(DeleteDBClusterSnapshotInputDict) + ) + await client.delete_db_cluster_snapshot(_request(DeleteDBClusterSnapshotInput)) + await client.delete_db_cluster_snapshot(_request(DeleteDBClusterSnapshotInputDict)) + await client.delete_db_instance(db_instance_identifier=_) + await client.delete_db_instance(**_request(DeleteDBInstanceInputDict)) + await client.delete_db_instance(_request(DeleteDBInstanceInput)) + await client.delete_db_instance(_request(DeleteDBInstanceInputDict)) + await client.delete_db_instance_automated_backup() + await client.delete_db_instance_automated_backup( + **_request(DeleteDBInstanceAutomatedBackupInputDict) + ) + await client.delete_db_instance_automated_backup( + _request(DeleteDBInstanceAutomatedBackupInput) + ) + await client.delete_db_instance_automated_backup( + _request(DeleteDBInstanceAutomatedBackupInputDict) + ) + await client.delete_db_parameter_group(db_parameter_group_name=_) + await client.delete_db_parameter_group(**_request(DeleteDBParameterGroupInputDict)) + await client.delete_db_parameter_group(_request(DeleteDBParameterGroupInput)) + await client.delete_db_parameter_group(_request(DeleteDBParameterGroupInputDict)) + await client.delete_db_proxy(db_proxy_name=_) + await client.delete_db_proxy(**_request(DeleteDBProxyInputDict)) + await client.delete_db_proxy(_request(DeleteDBProxyInput)) + await client.delete_db_proxy(_request(DeleteDBProxyInputDict)) + await client.delete_db_proxy_endpoint(db_proxy_endpoint_name=_) + await client.delete_db_proxy_endpoint(**_request(DeleteDBProxyEndpointInputDict)) + await client.delete_db_proxy_endpoint(_request(DeleteDBProxyEndpointInput)) + await client.delete_db_proxy_endpoint(_request(DeleteDBProxyEndpointInputDict)) + await client.delete_db_security_group(db_security_group_name=_) + await client.delete_db_security_group(**_request(DeleteDBSecurityGroupInputDict)) + await client.delete_db_security_group(_request(DeleteDBSecurityGroupInput)) + await client.delete_db_security_group(_request(DeleteDBSecurityGroupInputDict)) + await client.delete_db_shard_group(db_shard_group_identifier=_) + await client.delete_db_shard_group(**_request(DeleteDBShardGroupInputDict)) + await client.delete_db_shard_group(_request(DeleteDBShardGroupInput)) + await client.delete_db_shard_group(_request(DeleteDBShardGroupInputDict)) + await client.delete_db_snapshot(db_snapshot_identifier=_) + await client.delete_db_snapshot(**_request(DeleteDBSnapshotInputDict)) + await client.delete_db_snapshot(_request(DeleteDBSnapshotInput)) + await client.delete_db_snapshot(_request(DeleteDBSnapshotInputDict)) + await client.delete_db_subnet_group(db_subnet_group_name=_) + await client.delete_db_subnet_group(**_request(DeleteDBSubnetGroupInputDict)) + await client.delete_db_subnet_group(_request(DeleteDBSubnetGroupInput)) + await client.delete_db_subnet_group(_request(DeleteDBSubnetGroupInputDict)) + await client.delete_event_subscription(subscription_name=_) + await client.delete_event_subscription(**_request(DeleteEventSubscriptionInputDict)) + await client.delete_event_subscription(_request(DeleteEventSubscriptionInput)) + await client.delete_event_subscription(_request(DeleteEventSubscriptionInputDict)) + await client.delete_global_cluster(global_cluster_identifier=_) + await client.delete_global_cluster(**_request(DeleteGlobalClusterInputDict)) + await client.delete_global_cluster(_request(DeleteGlobalClusterInput)) + await client.delete_global_cluster(_request(DeleteGlobalClusterInputDict)) + await client.delete_integration(integration_identifier=_) + await client.delete_integration(**_request(DeleteIntegrationInputDict)) + await client.delete_integration(_request(DeleteIntegrationInput)) + await client.delete_integration(_request(DeleteIntegrationInputDict)) + await client.delete_option_group(option_group_name=_) + await client.delete_option_group(**_request(DeleteOptionGroupInputDict)) + await client.delete_option_group(_request(DeleteOptionGroupInput)) + await client.delete_option_group(_request(DeleteOptionGroupInputDict)) + await client.delete_tenant_database(db_instance_identifier=_, tenant_db_name=_) + await client.delete_tenant_database(**_request(DeleteTenantDatabaseInputDict)) + await client.delete_tenant_database(_request(DeleteTenantDatabaseInput)) + await client.delete_tenant_database(_request(DeleteTenantDatabaseInputDict)) + await client.deregister_db_proxy_targets(db_proxy_name=_) + await client.deregister_db_proxy_targets( + **_request(DeregisterDBProxyTargetsInputDict) + ) + await client.deregister_db_proxy_targets(_request(DeregisterDBProxyTargetsInput)) + await client.deregister_db_proxy_targets( + _request(DeregisterDBProxyTargetsInputDict) + ) + await client.describe_account_attributes() + await client.describe_account_attributes( + **_request(DescribeAccountAttributesInputDict) + ) + await client.describe_account_attributes(_request(DescribeAccountAttributesInput)) + await client.describe_account_attributes( + _request(DescribeAccountAttributesInputDict) + ) + await client.describe_blue_green_deployments() + await client.describe_blue_green_deployments( + **_request(DescribeBlueGreenDeploymentsInputDict) + ) + await client.describe_blue_green_deployments( + _request(DescribeBlueGreenDeploymentsInput) + ) + await client.describe_blue_green_deployments( + _request(DescribeBlueGreenDeploymentsInputDict) + ) + await client.describe_certificates() + await client.describe_certificates(**_request(DescribeCertificatesInputDict)) + await client.describe_certificates(_request(DescribeCertificatesInput)) + await client.describe_certificates(_request(DescribeCertificatesInputDict)) + await client.describe_db_capacity_reservations() + await client.describe_db_capacity_reservations( + **_request(DescribeDBCapacityReservationsInputDict) + ) + await client.describe_db_capacity_reservations( + _request(DescribeDBCapacityReservationsInput) + ) + await client.describe_db_capacity_reservations( + _request(DescribeDBCapacityReservationsInputDict) + ) + await client.describe_db_cluster_automated_backups() + await client.describe_db_cluster_automated_backups( + **_request(DescribeDBClusterAutomatedBackupsInputDict) + ) + await client.describe_db_cluster_automated_backups( + _request(DescribeDBClusterAutomatedBackupsInput) + ) + await client.describe_db_cluster_automated_backups( + _request(DescribeDBClusterAutomatedBackupsInputDict) + ) + await client.describe_db_cluster_backtracks(db_cluster_identifier=_) + await client.describe_db_cluster_backtracks( + **_request(DescribeDBClusterBacktracksInputDict) + ) + await client.describe_db_cluster_backtracks( + _request(DescribeDBClusterBacktracksInput) + ) + await client.describe_db_cluster_backtracks( + _request(DescribeDBClusterBacktracksInputDict) + ) + await client.describe_db_cluster_endpoints() + await client.describe_db_cluster_endpoints( + **_request(DescribeDBClusterEndpointsInputDict) + ) + await client.describe_db_cluster_endpoints( + _request(DescribeDBClusterEndpointsInput) + ) + await client.describe_db_cluster_endpoints( + _request(DescribeDBClusterEndpointsInputDict) + ) + await client.describe_db_cluster_parameter_groups() + await client.describe_db_cluster_parameter_groups( + **_request(DescribeDBClusterParameterGroupsInputDict) + ) + await client.describe_db_cluster_parameter_groups( + _request(DescribeDBClusterParameterGroupsInput) + ) + await client.describe_db_cluster_parameter_groups( + _request(DescribeDBClusterParameterGroupsInputDict) + ) + await client.describe_db_cluster_parameters(db_cluster_parameter_group_name=_) + await client.describe_db_cluster_parameters( + **_request(DescribeDBClusterParametersInputDict) + ) + await client.describe_db_cluster_parameters( + _request(DescribeDBClusterParametersInput) + ) + await client.describe_db_cluster_parameters( + _request(DescribeDBClusterParametersInputDict) + ) + await client.describe_db_clusters() + await client.describe_db_clusters(**_request(DescribeDBClustersInputDict)) + await client.describe_db_clusters(_request(DescribeDBClustersInput)) + await client.describe_db_clusters(_request(DescribeDBClustersInputDict)) + await client.describe_db_cluster_snapshot_attributes( + db_cluster_snapshot_identifier=_ + ) + await client.describe_db_cluster_snapshot_attributes( + **_request(DescribeDBClusterSnapshotAttributesInputDict) + ) + await client.describe_db_cluster_snapshot_attributes( + _request(DescribeDBClusterSnapshotAttributesInput) + ) + await client.describe_db_cluster_snapshot_attributes( + _request(DescribeDBClusterSnapshotAttributesInputDict) + ) + await client.describe_db_cluster_snapshots() + await client.describe_db_cluster_snapshots( + **_request(DescribeDBClusterSnapshotsInputDict) + ) + await client.describe_db_cluster_snapshots( + _request(DescribeDBClusterSnapshotsInput) + ) + await client.describe_db_cluster_snapshots( + _request(DescribeDBClusterSnapshotsInputDict) + ) + await client.describe_db_engine_versions() + await client.describe_db_engine_versions( + **_request(DescribeDBEngineVersionsInputDict) + ) + await client.describe_db_engine_versions(_request(DescribeDBEngineVersionsInput)) + await client.describe_db_engine_versions( + _request(DescribeDBEngineVersionsInputDict) + ) + await client.describe_db_instance_automated_backups() + await client.describe_db_instance_automated_backups( + **_request(DescribeDBInstanceAutomatedBackupsInputDict) + ) + await client.describe_db_instance_automated_backups( + _request(DescribeDBInstanceAutomatedBackupsInput) + ) + await client.describe_db_instance_automated_backups( + _request(DescribeDBInstanceAutomatedBackupsInputDict) + ) + await client.describe_db_instances() + await client.describe_db_instances(**_request(DescribeDBInstancesInputDict)) + await client.describe_db_instances(_request(DescribeDBInstancesInput)) + await client.describe_db_instances(_request(DescribeDBInstancesInputDict)) + await client.describe_db_log_files(db_instance_identifier=_) + await client.describe_db_log_files(**_request(DescribeDBLogFilesInputDict)) + await client.describe_db_log_files(_request(DescribeDBLogFilesInput)) + await client.describe_db_log_files(_request(DescribeDBLogFilesInputDict)) + await client.describe_db_major_engine_versions() + await client.describe_db_major_engine_versions( + **_request(DescribeDBMajorEngineVersionsInputDict) + ) + await client.describe_db_major_engine_versions( + _request(DescribeDBMajorEngineVersionsInput) + ) + await client.describe_db_major_engine_versions( + _request(DescribeDBMajorEngineVersionsInputDict) + ) + await client.describe_db_parameter_groups() + await client.describe_db_parameter_groups( + **_request(DescribeDBParameterGroupsInputDict) + ) + await client.describe_db_parameter_groups(_request(DescribeDBParameterGroupsInput)) + await client.describe_db_parameter_groups( + _request(DescribeDBParameterGroupsInputDict) + ) + await client.describe_db_parameters(db_parameter_group_name=_) + await client.describe_db_parameters(**_request(DescribeDBParametersInputDict)) + await client.describe_db_parameters(_request(DescribeDBParametersInput)) + await client.describe_db_parameters(_request(DescribeDBParametersInputDict)) + await client.describe_db_proxies() + await client.describe_db_proxies(**_request(DescribeDBProxiesInputDict)) + await client.describe_db_proxies(_request(DescribeDBProxiesInput)) + await client.describe_db_proxies(_request(DescribeDBProxiesInputDict)) + await client.describe_db_proxy_endpoints() + await client.describe_db_proxy_endpoints( + **_request(DescribeDBProxyEndpointsInputDict) + ) + await client.describe_db_proxy_endpoints(_request(DescribeDBProxyEndpointsInput)) + await client.describe_db_proxy_endpoints( + _request(DescribeDBProxyEndpointsInputDict) + ) + await client.describe_db_proxy_target_groups(db_proxy_name=_) + await client.describe_db_proxy_target_groups( + **_request(DescribeDBProxyTargetGroupsInputDict) + ) + await client.describe_db_proxy_target_groups( + _request(DescribeDBProxyTargetGroupsInput) + ) + await client.describe_db_proxy_target_groups( + _request(DescribeDBProxyTargetGroupsInputDict) + ) + await client.describe_db_proxy_targets(db_proxy_name=_) + await client.describe_db_proxy_targets(**_request(DescribeDBProxyTargetsInputDict)) + await client.describe_db_proxy_targets(_request(DescribeDBProxyTargetsInput)) + await client.describe_db_proxy_targets(_request(DescribeDBProxyTargetsInputDict)) + await client.describe_db_recommendations() + await client.describe_db_recommendations( + **_request(DescribeDBRecommendationsInputDict) + ) + await client.describe_db_recommendations(_request(DescribeDBRecommendationsInput)) + await client.describe_db_recommendations( + _request(DescribeDBRecommendationsInputDict) + ) + await client.describe_db_security_groups() + await client.describe_db_security_groups( + **_request(DescribeDBSecurityGroupsInputDict) + ) + await client.describe_db_security_groups(_request(DescribeDBSecurityGroupsInput)) + await client.describe_db_security_groups( + _request(DescribeDBSecurityGroupsInputDict) + ) + await client.describe_db_shard_groups() + await client.describe_db_shard_groups(**_request(DescribeDBShardGroupsInputDict)) + await client.describe_db_shard_groups(_request(DescribeDBShardGroupsInput)) + await client.describe_db_shard_groups(_request(DescribeDBShardGroupsInputDict)) + await client.describe_db_snapshot_attributes(db_snapshot_identifier=_) + await client.describe_db_snapshot_attributes( + **_request(DescribeDBSnapshotAttributesInputDict) + ) + await client.describe_db_snapshot_attributes( + _request(DescribeDBSnapshotAttributesInput) + ) + await client.describe_db_snapshot_attributes( + _request(DescribeDBSnapshotAttributesInputDict) + ) + await client.describe_db_snapshots() + await client.describe_db_snapshots(**_request(DescribeDBSnapshotsInputDict)) + await client.describe_db_snapshots(_request(DescribeDBSnapshotsInput)) + await client.describe_db_snapshots(_request(DescribeDBSnapshotsInputDict)) + await client.describe_db_snapshot_tenant_databases() + await client.describe_db_snapshot_tenant_databases( + **_request(DescribeDBSnapshotTenantDatabasesInputDict) + ) + await client.describe_db_snapshot_tenant_databases( + _request(DescribeDBSnapshotTenantDatabasesInput) + ) + await client.describe_db_snapshot_tenant_databases( + _request(DescribeDBSnapshotTenantDatabasesInputDict) + ) + await client.describe_db_subnet_groups() + await client.describe_db_subnet_groups(**_request(DescribeDBSubnetGroupsInputDict)) + await client.describe_db_subnet_groups(_request(DescribeDBSubnetGroupsInput)) + await client.describe_db_subnet_groups(_request(DescribeDBSubnetGroupsInputDict)) + await client.describe_engine_default_cluster_parameters(db_parameter_group_family=_) + await client.describe_engine_default_cluster_parameters( + **_request(DescribeEngineDefaultClusterParametersInputDict) + ) + await client.describe_engine_default_cluster_parameters( + _request(DescribeEngineDefaultClusterParametersInput) + ) + await client.describe_engine_default_cluster_parameters( + _request(DescribeEngineDefaultClusterParametersInputDict) + ) + await client.describe_engine_default_parameters(db_parameter_group_family=_) + await client.describe_engine_default_parameters( + **_request(DescribeEngineDefaultParametersInputDict) + ) + await client.describe_engine_default_parameters( + _request(DescribeEngineDefaultParametersInput) + ) + await client.describe_engine_default_parameters( + _request(DescribeEngineDefaultParametersInputDict) + ) + await client.describe_event_categories() + await client.describe_event_categories(**_request(DescribeEventCategoriesInputDict)) + await client.describe_event_categories(_request(DescribeEventCategoriesInput)) + await client.describe_event_categories(_request(DescribeEventCategoriesInputDict)) + await client.describe_events() + await client.describe_events(**_request(DescribeEventsInputDict)) + await client.describe_events(_request(DescribeEventsInput)) + await client.describe_events(_request(DescribeEventsInputDict)) + await client.describe_event_subscriptions() + await client.describe_event_subscriptions( + **_request(DescribeEventSubscriptionsInputDict) + ) + await client.describe_event_subscriptions(_request(DescribeEventSubscriptionsInput)) + await client.describe_event_subscriptions( + _request(DescribeEventSubscriptionsInputDict) + ) + await client.describe_export_tasks() + await client.describe_export_tasks(**_request(DescribeExportTasksInputDict)) + await client.describe_export_tasks(_request(DescribeExportTasksInput)) + await client.describe_export_tasks(_request(DescribeExportTasksInputDict)) + await client.describe_global_clusters() + await client.describe_global_clusters(**_request(DescribeGlobalClustersInputDict)) + await client.describe_global_clusters(_request(DescribeGlobalClustersInput)) + await client.describe_global_clusters(_request(DescribeGlobalClustersInputDict)) + await client.describe_integrations() + await client.describe_integrations(**_request(DescribeIntegrationsInputDict)) + await client.describe_integrations(_request(DescribeIntegrationsInput)) + await client.describe_integrations(_request(DescribeIntegrationsInputDict)) + await client.describe_option_group_options(engine_name=_) + await client.describe_option_group_options( + **_request(DescribeOptionGroupOptionsInputDict) + ) + await client.describe_option_group_options( + _request(DescribeOptionGroupOptionsInput) + ) + await client.describe_option_group_options( + _request(DescribeOptionGroupOptionsInputDict) + ) + await client.describe_option_groups() + await client.describe_option_groups(**_request(DescribeOptionGroupsInputDict)) + await client.describe_option_groups(_request(DescribeOptionGroupsInput)) + await client.describe_option_groups(_request(DescribeOptionGroupsInputDict)) + await client.describe_orderable_db_instance_options(engine=_) + await client.describe_orderable_db_instance_options( + **_request(DescribeOrderableDBInstanceOptionsInputDict) + ) + await client.describe_orderable_db_instance_options( + _request(DescribeOrderableDBInstanceOptionsInput) + ) + await client.describe_orderable_db_instance_options( + _request(DescribeOrderableDBInstanceOptionsInputDict) + ) + await client.describe_pending_maintenance_actions() + await client.describe_pending_maintenance_actions( + **_request(DescribePendingMaintenanceActionsInputDict) + ) + await client.describe_pending_maintenance_actions( + _request(DescribePendingMaintenanceActionsInput) + ) + await client.describe_pending_maintenance_actions( + _request(DescribePendingMaintenanceActionsInputDict) + ) + await client.describe_reserved_db_instances() + await client.describe_reserved_db_instances( + **_request(DescribeReservedDBInstancesInputDict) + ) + await client.describe_reserved_db_instances( + _request(DescribeReservedDBInstancesInput) + ) + await client.describe_reserved_db_instances( + _request(DescribeReservedDBInstancesInputDict) + ) + await client.describe_reserved_db_instances_offerings() + await client.describe_reserved_db_instances_offerings( + **_request(DescribeReservedDBInstancesOfferingsInputDict) + ) + await client.describe_reserved_db_instances_offerings( + _request(DescribeReservedDBInstancesOfferingsInput) + ) + await client.describe_reserved_db_instances_offerings( + _request(DescribeReservedDBInstancesOfferingsInputDict) + ) + await client.describe_serverless_v2_platform_versions() + await client.describe_serverless_v2_platform_versions( + **_request(DescribeServerlessV2PlatformVersionsInputDict) + ) + await client.describe_serverless_v2_platform_versions( + _request(DescribeServerlessV2PlatformVersionsInput) + ) + await client.describe_serverless_v2_platform_versions( + _request(DescribeServerlessV2PlatformVersionsInputDict) + ) + await client.describe_source_regions() + await client.describe_source_regions(**_request(DescribeSourceRegionsInputDict)) + await client.describe_source_regions(_request(DescribeSourceRegionsInput)) + await client.describe_source_regions(_request(DescribeSourceRegionsInputDict)) + await client.describe_tenant_databases() + await client.describe_tenant_databases(**_request(DescribeTenantDatabasesInputDict)) + await client.describe_tenant_databases(_request(DescribeTenantDatabasesInput)) + await client.describe_tenant_databases(_request(DescribeTenantDatabasesInputDict)) + await client.describe_valid_db_instance_modifications(db_instance_identifier=_) + await client.describe_valid_db_instance_modifications( + **_request(DescribeValidDBInstanceModificationsInputDict) + ) + await client.describe_valid_db_instance_modifications( + _request(DescribeValidDBInstanceModificationsInput) + ) + await client.describe_valid_db_instance_modifications( + _request(DescribeValidDBInstanceModificationsInputDict) + ) + await client.disable_http_endpoint(resource_arn=_) + await client.disable_http_endpoint(**_request(DisableHttpEndpointInputDict)) + await client.disable_http_endpoint(_request(DisableHttpEndpointInput)) + await client.disable_http_endpoint(_request(DisableHttpEndpointInputDict)) + await client.download_db_log_file_portion(db_instance_identifier=_, log_file_name=_) + await client.download_db_log_file_portion( + **_request(DownloadDBLogFilePortionInputDict) + ) + await client.download_db_log_file_portion(_request(DownloadDBLogFilePortionInput)) + await client.download_db_log_file_portion( + _request(DownloadDBLogFilePortionInputDict) + ) + await client.enable_http_endpoint(resource_arn=_) + await client.enable_http_endpoint(**_request(EnableHttpEndpointInputDict)) + await client.enable_http_endpoint(_request(EnableHttpEndpointInput)) + await client.enable_http_endpoint(_request(EnableHttpEndpointInputDict)) + await client.failover_db_cluster(db_cluster_identifier=_) + await client.failover_db_cluster(**_request(FailoverDBClusterInputDict)) + await client.failover_db_cluster(_request(FailoverDBClusterInput)) + await client.failover_db_cluster(_request(FailoverDBClusterInputDict)) + await client.failover_global_cluster( + global_cluster_identifier=_, target_db_cluster_identifier=_ + ) + await client.failover_global_cluster(**_request(FailoverGlobalClusterInputDict)) + await client.failover_global_cluster(_request(FailoverGlobalClusterInput)) + await client.failover_global_cluster(_request(FailoverGlobalClusterInputDict)) + await client.list_tags_for_resource(resource_name=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.modify_activity_stream() + await client.modify_activity_stream(**_request(ModifyActivityStreamInputDict)) + await client.modify_activity_stream(_request(ModifyActivityStreamInput)) + await client.modify_activity_stream(_request(ModifyActivityStreamInputDict)) + await client.modify_certificates() + await client.modify_certificates(**_request(ModifyCertificatesInputDict)) + await client.modify_certificates(_request(ModifyCertificatesInput)) + await client.modify_certificates(_request(ModifyCertificatesInputDict)) + await client.modify_current_db_cluster_capacity(db_cluster_identifier=_) + await client.modify_current_db_cluster_capacity( + **_request(ModifyCurrentDBClusterCapacityInputDict) + ) + await client.modify_current_db_cluster_capacity( + _request(ModifyCurrentDBClusterCapacityInput) + ) + await client.modify_current_db_cluster_capacity( + _request(ModifyCurrentDBClusterCapacityInputDict) + ) + await client.modify_custom_db_engine_version(engine=_, engine_version=_) + await client.modify_custom_db_engine_version( + **_request(ModifyCustomDBEngineVersionInputDict) + ) + await client.modify_custom_db_engine_version( + _request(ModifyCustomDBEngineVersionInput) + ) + await client.modify_custom_db_engine_version( + _request(ModifyCustomDBEngineVersionInputDict) + ) + await client.modify_db_capacity_reservation(db_capacity_reservation_identifier=_) + await client.modify_db_capacity_reservation( + **_request(ModifyDBCapacityReservationInputDict) + ) + await client.modify_db_capacity_reservation( + _request(ModifyDBCapacityReservationInput) + ) + await client.modify_db_capacity_reservation( + _request(ModifyDBCapacityReservationInputDict) + ) + await client.modify_db_cluster(db_cluster_identifier=_) + await client.modify_db_cluster(**_request(ModifyDBClusterInputDict)) + await client.modify_db_cluster(_request(ModifyDBClusterInput)) + await client.modify_db_cluster(_request(ModifyDBClusterInputDict)) + await client.modify_db_cluster_endpoint(db_cluster_endpoint_identifier=_) + await client.modify_db_cluster_endpoint( + **_request(ModifyDBClusterEndpointInputDict) + ) + await client.modify_db_cluster_endpoint(_request(ModifyDBClusterEndpointInput)) + await client.modify_db_cluster_endpoint(_request(ModifyDBClusterEndpointInputDict)) + await client.modify_db_cluster_parameter_group( + db_cluster_parameter_group_name=_, parameters=_ + ) + await client.modify_db_cluster_parameter_group( + **_request(ModifyDBClusterParameterGroupInputDict) + ) + await client.modify_db_cluster_parameter_group( + _request(ModifyDBClusterParameterGroupInput) + ) + await client.modify_db_cluster_parameter_group( + _request(ModifyDBClusterParameterGroupInputDict) + ) + await client.modify_db_cluster_snapshot_attribute( + db_cluster_snapshot_identifier=_, attribute_name=_ + ) + await client.modify_db_cluster_snapshot_attribute( + **_request(ModifyDBClusterSnapshotAttributeInputDict) + ) + await client.modify_db_cluster_snapshot_attribute( + _request(ModifyDBClusterSnapshotAttributeInput) + ) + await client.modify_db_cluster_snapshot_attribute( + _request(ModifyDBClusterSnapshotAttributeInputDict) + ) + await client.modify_db_instance(db_instance_identifier=_) + await client.modify_db_instance(**_request(ModifyDBInstanceInputDict)) + await client.modify_db_instance(_request(ModifyDBInstanceInput)) + await client.modify_db_instance(_request(ModifyDBInstanceInputDict)) + await client.modify_db_parameter_group(db_parameter_group_name=_, parameters=_) + await client.modify_db_parameter_group(**_request(ModifyDBParameterGroupInputDict)) + await client.modify_db_parameter_group(_request(ModifyDBParameterGroupInput)) + await client.modify_db_parameter_group(_request(ModifyDBParameterGroupInputDict)) + await client.modify_db_proxy(db_proxy_name=_) + await client.modify_db_proxy(**_request(ModifyDBProxyInputDict)) + await client.modify_db_proxy(_request(ModifyDBProxyInput)) + await client.modify_db_proxy(_request(ModifyDBProxyInputDict)) + await client.modify_db_proxy_endpoint(db_proxy_endpoint_name=_) + await client.modify_db_proxy_endpoint(**_request(ModifyDBProxyEndpointInputDict)) + await client.modify_db_proxy_endpoint(_request(ModifyDBProxyEndpointInput)) + await client.modify_db_proxy_endpoint(_request(ModifyDBProxyEndpointInputDict)) + await client.modify_db_proxy_target_group(target_group_name=_, db_proxy_name=_) + await client.modify_db_proxy_target_group( + **_request(ModifyDBProxyTargetGroupInputDict) + ) + await client.modify_db_proxy_target_group(_request(ModifyDBProxyTargetGroupInput)) + await client.modify_db_proxy_target_group( + _request(ModifyDBProxyTargetGroupInputDict) + ) + await client.modify_db_recommendation(recommendation_id=_) + await client.modify_db_recommendation(**_request(ModifyDBRecommendationInputDict)) + await client.modify_db_recommendation(_request(ModifyDBRecommendationInput)) + await client.modify_db_recommendation(_request(ModifyDBRecommendationInputDict)) + await client.modify_db_shard_group(db_shard_group_identifier=_) + await client.modify_db_shard_group(**_request(ModifyDBShardGroupInputDict)) + await client.modify_db_shard_group(_request(ModifyDBShardGroupInput)) + await client.modify_db_shard_group(_request(ModifyDBShardGroupInputDict)) + await client.modify_db_snapshot(db_snapshot_identifier=_) + await client.modify_db_snapshot(**_request(ModifyDBSnapshotInputDict)) + await client.modify_db_snapshot(_request(ModifyDBSnapshotInput)) + await client.modify_db_snapshot(_request(ModifyDBSnapshotInputDict)) + await client.modify_db_snapshot_attribute( + db_snapshot_identifier=_, attribute_name=_ + ) + await client.modify_db_snapshot_attribute( + **_request(ModifyDBSnapshotAttributeInputDict) + ) + await client.modify_db_snapshot_attribute(_request(ModifyDBSnapshotAttributeInput)) + await client.modify_db_snapshot_attribute( + _request(ModifyDBSnapshotAttributeInputDict) + ) + await client.modify_db_subnet_group(db_subnet_group_name=_, subnet_ids=_) + await client.modify_db_subnet_group(**_request(ModifyDBSubnetGroupInputDict)) + await client.modify_db_subnet_group(_request(ModifyDBSubnetGroupInput)) + await client.modify_db_subnet_group(_request(ModifyDBSubnetGroupInputDict)) + await client.modify_event_subscription(subscription_name=_) + await client.modify_event_subscription(**_request(ModifyEventSubscriptionInputDict)) + await client.modify_event_subscription(_request(ModifyEventSubscriptionInput)) + await client.modify_event_subscription(_request(ModifyEventSubscriptionInputDict)) + await client.modify_global_cluster(global_cluster_identifier=_) + await client.modify_global_cluster(**_request(ModifyGlobalClusterInputDict)) + await client.modify_global_cluster(_request(ModifyGlobalClusterInput)) + await client.modify_global_cluster(_request(ModifyGlobalClusterInputDict)) + await client.modify_integration(integration_identifier=_) + await client.modify_integration(**_request(ModifyIntegrationInputDict)) + await client.modify_integration(_request(ModifyIntegrationInput)) + await client.modify_integration(_request(ModifyIntegrationInputDict)) + await client.modify_option_group(option_group_name=_) + await client.modify_option_group(**_request(ModifyOptionGroupInputDict)) + await client.modify_option_group(_request(ModifyOptionGroupInput)) + await client.modify_option_group(_request(ModifyOptionGroupInputDict)) + await client.modify_tenant_database(db_instance_identifier=_, tenant_db_name=_) + await client.modify_tenant_database(**_request(ModifyTenantDatabaseInputDict)) + await client.modify_tenant_database(_request(ModifyTenantDatabaseInput)) + await client.modify_tenant_database(_request(ModifyTenantDatabaseInputDict)) + await client.promote_read_replica(db_instance_identifier=_) + await client.promote_read_replica(**_request(PromoteReadReplicaInputDict)) + await client.promote_read_replica(_request(PromoteReadReplicaInput)) + await client.promote_read_replica(_request(PromoteReadReplicaInputDict)) + await client.promote_read_replica_db_cluster(db_cluster_identifier=_) + await client.promote_read_replica_db_cluster( + **_request(PromoteReadReplicaDBClusterInputDict) + ) + await client.promote_read_replica_db_cluster( + _request(PromoteReadReplicaDBClusterInput) + ) + await client.promote_read_replica_db_cluster( + _request(PromoteReadReplicaDBClusterInputDict) + ) + await client.purchase_reserved_db_instances_offering( + reserved_db_instances_offering_id=_ + ) + await client.purchase_reserved_db_instances_offering( + **_request(PurchaseReservedDBInstancesOfferingInputDict) + ) + await client.purchase_reserved_db_instances_offering( + _request(PurchaseReservedDBInstancesOfferingInput) + ) + await client.purchase_reserved_db_instances_offering( + _request(PurchaseReservedDBInstancesOfferingInputDict) + ) + await client.reboot_db_cluster(db_cluster_identifier=_) + await client.reboot_db_cluster(**_request(RebootDBClusterInputDict)) + await client.reboot_db_cluster(_request(RebootDBClusterInput)) + await client.reboot_db_cluster(_request(RebootDBClusterInputDict)) + await client.reboot_db_instance(db_instance_identifier=_) + await client.reboot_db_instance(**_request(RebootDBInstanceInputDict)) + await client.reboot_db_instance(_request(RebootDBInstanceInput)) + await client.reboot_db_instance(_request(RebootDBInstanceInputDict)) + await client.reboot_db_shard_group(db_shard_group_identifier=_) + await client.reboot_db_shard_group(**_request(RebootDBShardGroupInputDict)) + await client.reboot_db_shard_group(_request(RebootDBShardGroupInput)) + await client.reboot_db_shard_group(_request(RebootDBShardGroupInputDict)) + await client.register_db_proxy_targets(db_proxy_name=_) + await client.register_db_proxy_targets(**_request(RegisterDBProxyTargetsInputDict)) + await client.register_db_proxy_targets(_request(RegisterDBProxyTargetsInput)) + await client.register_db_proxy_targets(_request(RegisterDBProxyTargetsInputDict)) + await client.remove_from_global_cluster( + global_cluster_identifier=_, db_cluster_identifier=_ + ) + await client.remove_from_global_cluster( + **_request(RemoveFromGlobalClusterInputDict) + ) + await client.remove_from_global_cluster(_request(RemoveFromGlobalClusterInput)) + await client.remove_from_global_cluster(_request(RemoveFromGlobalClusterInputDict)) + await client.remove_role_from_db_cluster(db_cluster_identifier=_, role_arn=_) + await client.remove_role_from_db_cluster( + **_request(RemoveRoleFromDBClusterInputDict) + ) + await client.remove_role_from_db_cluster(_request(RemoveRoleFromDBClusterInput)) + await client.remove_role_from_db_cluster(_request(RemoveRoleFromDBClusterInputDict)) + await client.remove_role_from_db_instance( + db_instance_identifier=_, role_arn=_, feature_name=_ + ) + await client.remove_role_from_db_instance( + **_request(RemoveRoleFromDBInstanceInputDict) + ) + await client.remove_role_from_db_instance(_request(RemoveRoleFromDBInstanceInput)) + await client.remove_role_from_db_instance( + _request(RemoveRoleFromDBInstanceInputDict) + ) + await client.remove_source_identifier_from_subscription( + subscription_name=_, source_identifier=_ + ) + await client.remove_source_identifier_from_subscription( + **_request(RemoveSourceIdentifierFromSubscriptionInputDict) + ) + await client.remove_source_identifier_from_subscription( + _request(RemoveSourceIdentifierFromSubscriptionInput) + ) + await client.remove_source_identifier_from_subscription( + _request(RemoveSourceIdentifierFromSubscriptionInputDict) + ) + await client.remove_tags_from_resource(resource_name=_, tag_keys=_) + await client.remove_tags_from_resource(**_request(RemoveTagsFromResourceInputDict)) + await client.remove_tags_from_resource(_request(RemoveTagsFromResourceInput)) + await client.remove_tags_from_resource(_request(RemoveTagsFromResourceInputDict)) + await client.reset_db_cluster_parameter_group(db_cluster_parameter_group_name=_) + await client.reset_db_cluster_parameter_group( + **_request(ResetDBClusterParameterGroupInputDict) + ) + await client.reset_db_cluster_parameter_group( + _request(ResetDBClusterParameterGroupInput) + ) + await client.reset_db_cluster_parameter_group( + _request(ResetDBClusterParameterGroupInputDict) + ) + await client.reset_db_parameter_group(db_parameter_group_name=_) + await client.reset_db_parameter_group(**_request(ResetDBParameterGroupInputDict)) + await client.reset_db_parameter_group(_request(ResetDBParameterGroupInput)) + await client.reset_db_parameter_group(_request(ResetDBParameterGroupInputDict)) + await client.restore_db_cluster_from_s3( + db_cluster_identifier=_, + engine=_, + master_username=_, + source_engine=_, + source_engine_version=_, + s3_bucket_name=_, + s3_ingestion_role_arn=_, + ) + await client.restore_db_cluster_from_s3(**_request(RestoreDBClusterFromS3InputDict)) + await client.restore_db_cluster_from_s3(_request(RestoreDBClusterFromS3Input)) + await client.restore_db_cluster_from_s3(_request(RestoreDBClusterFromS3InputDict)) + await client.restore_db_cluster_from_snapshot( + db_cluster_identifier=_, snapshot_identifier=_, engine=_ + ) + await client.restore_db_cluster_from_snapshot( + **_request(RestoreDBClusterFromSnapshotInputDict) + ) + await client.restore_db_cluster_from_snapshot( + _request(RestoreDBClusterFromSnapshotInput) + ) + await client.restore_db_cluster_from_snapshot( + _request(RestoreDBClusterFromSnapshotInputDict) + ) + await client.restore_db_cluster_to_point_in_time(db_cluster_identifier=_) + await client.restore_db_cluster_to_point_in_time( + **_request(RestoreDBClusterToPointInTimeInputDict) + ) + await client.restore_db_cluster_to_point_in_time( + _request(RestoreDBClusterToPointInTimeInput) + ) + await client.restore_db_cluster_to_point_in_time( + _request(RestoreDBClusterToPointInTimeInputDict) + ) + await client.restore_db_instance_from_db_snapshot(db_instance_identifier=_) + await client.restore_db_instance_from_db_snapshot( + **_request(RestoreDBInstanceFromDBSnapshotInputDict) + ) + await client.restore_db_instance_from_db_snapshot( + _request(RestoreDBInstanceFromDBSnapshotInput) + ) + await client.restore_db_instance_from_db_snapshot( + _request(RestoreDBInstanceFromDBSnapshotInputDict) + ) + await client.restore_db_instance_from_s3( + db_instance_identifier=_, + db_instance_class=_, + engine=_, + source_engine=_, + source_engine_version=_, + s3_bucket_name=_, + s3_ingestion_role_arn=_, + ) + await client.restore_db_instance_from_s3( + **_request(RestoreDBInstanceFromS3InputDict) + ) + await client.restore_db_instance_from_s3(_request(RestoreDBInstanceFromS3Input)) + await client.restore_db_instance_from_s3(_request(RestoreDBInstanceFromS3InputDict)) + await client.restore_db_instance_to_point_in_time(target_db_instance_identifier=_) + await client.restore_db_instance_to_point_in_time( + **_request(RestoreDBInstanceToPointInTimeInputDict) + ) + await client.restore_db_instance_to_point_in_time( + _request(RestoreDBInstanceToPointInTimeInput) + ) + await client.restore_db_instance_to_point_in_time( + _request(RestoreDBInstanceToPointInTimeInputDict) + ) + await client.revoke_db_security_group_ingress(db_security_group_name=_) + await client.revoke_db_security_group_ingress( + **_request(RevokeDBSecurityGroupIngressInputDict) + ) + await client.revoke_db_security_group_ingress( + _request(RevokeDBSecurityGroupIngressInput) + ) + await client.revoke_db_security_group_ingress( + _request(RevokeDBSecurityGroupIngressInputDict) + ) + await client.start_activity_stream(resource_arn=_, mode=_, kms_key_id=_) + await client.start_activity_stream(**_request(StartActivityStreamInputDict)) + await client.start_activity_stream(_request(StartActivityStreamInput)) + await client.start_activity_stream(_request(StartActivityStreamInputDict)) + await client.start_db_cluster(db_cluster_identifier=_) + await client.start_db_cluster(**_request(StartDBClusterInputDict)) + await client.start_db_cluster(_request(StartDBClusterInput)) + await client.start_db_cluster(_request(StartDBClusterInputDict)) + await client.start_db_instance(db_instance_identifier=_) + await client.start_db_instance(**_request(StartDBInstanceInputDict)) + await client.start_db_instance(_request(StartDBInstanceInput)) + await client.start_db_instance(_request(StartDBInstanceInputDict)) + await client.start_db_instance_automated_backups_replication( + source_db_instance_arn=_ + ) + await client.start_db_instance_automated_backups_replication( + **_request(StartDBInstanceAutomatedBackupsReplicationInputDict) + ) + await client.start_db_instance_automated_backups_replication( + _request(StartDBInstanceAutomatedBackupsReplicationInput) + ) + await client.start_db_instance_automated_backups_replication( + _request(StartDBInstanceAutomatedBackupsReplicationInputDict) + ) + await client.start_export_task( + export_task_identifier=_, + source_arn=_, + s3_bucket_name=_, + iam_role_arn=_, + kms_key_id=_, + ) + await client.start_export_task(**_request(StartExportTaskInputDict)) + await client.start_export_task(_request(StartExportTaskInput)) + await client.start_export_task(_request(StartExportTaskInputDict)) + await client.stop_activity_stream(resource_arn=_) + await client.stop_activity_stream(**_request(StopActivityStreamInputDict)) + await client.stop_activity_stream(_request(StopActivityStreamInput)) + await client.stop_activity_stream(_request(StopActivityStreamInputDict)) + await client.stop_db_cluster(db_cluster_identifier=_) + await client.stop_db_cluster(**_request(StopDBClusterInputDict)) + await client.stop_db_cluster(_request(StopDBClusterInput)) + await client.stop_db_cluster(_request(StopDBClusterInputDict)) + await client.stop_db_instance(db_instance_identifier=_) + await client.stop_db_instance(**_request(StopDBInstanceInputDict)) + await client.stop_db_instance(_request(StopDBInstanceInput)) + await client.stop_db_instance(_request(StopDBInstanceInputDict)) + await client.stop_db_instance_automated_backups_replication( + source_db_instance_arn=_ + ) + await client.stop_db_instance_automated_backups_replication( + **_request(StopDBInstanceAutomatedBackupsReplicationInputDict) + ) + await client.stop_db_instance_automated_backups_replication( + _request(StopDBInstanceAutomatedBackupsReplicationInput) + ) + await client.stop_db_instance_automated_backups_replication( + _request(StopDBInstanceAutomatedBackupsReplicationInputDict) + ) + await client.switchover_blue_green_deployment(blue_green_deployment_identifier=_) + await client.switchover_blue_green_deployment( + **_request(SwitchoverBlueGreenDeploymentInputDict) + ) + await client.switchover_blue_green_deployment( + _request(SwitchoverBlueGreenDeploymentInput) + ) + await client.switchover_blue_green_deployment( + _request(SwitchoverBlueGreenDeploymentInputDict) + ) + await client.switchover_global_cluster( + global_cluster_identifier=_, target_db_cluster_identifier=_ + ) + await client.switchover_global_cluster(**_request(SwitchoverGlobalClusterInputDict)) + await client.switchover_global_cluster(_request(SwitchoverGlobalClusterInput)) + await client.switchover_global_cluster(_request(SwitchoverGlobalClusterInputDict)) + await client.switchover_read_replica(db_instance_identifier=_) + await client.switchover_read_replica(**_request(SwitchoverReadReplicaInputDict)) + await client.switchover_read_replica(_request(SwitchoverReadReplicaInput)) + await client.switchover_read_replica(_request(SwitchoverReadReplicaInputDict)) + + +def check_sync_calls(client: RDSClient) -> None: + pass + client.add_role_to_db_cluster(db_cluster_identifier=_, role_arn=_) + client.add_role_to_db_cluster(**_request(AddRoleToDBClusterInputDict)) + client.add_role_to_db_cluster(_request(AddRoleToDBClusterInput)) + client.add_role_to_db_cluster(_request(AddRoleToDBClusterInputDict)) + client.add_role_to_db_instance(db_instance_identifier=_, role_arn=_, feature_name=_) + client.add_role_to_db_instance(**_request(AddRoleToDBInstanceInputDict)) + client.add_role_to_db_instance(_request(AddRoleToDBInstanceInput)) + client.add_role_to_db_instance(_request(AddRoleToDBInstanceInputDict)) + client.add_source_identifier_to_subscription( + subscription_name=_, source_identifier=_ + ) + client.add_source_identifier_to_subscription( + **_request(AddSourceIdentifierToSubscriptionInputDict) + ) + client.add_source_identifier_to_subscription( + _request(AddSourceIdentifierToSubscriptionInput) + ) + client.add_source_identifier_to_subscription( + _request(AddSourceIdentifierToSubscriptionInputDict) + ) + client.add_tags_to_resource(resource_name=_, tags=_) + client.add_tags_to_resource(**_request(AddTagsToResourceInputDict)) + client.add_tags_to_resource(_request(AddTagsToResourceInput)) + client.add_tags_to_resource(_request(AddTagsToResourceInputDict)) + client.apply_pending_maintenance_action( + resource_identifier=_, apply_action=_, opt_in_type=_ + ) + client.apply_pending_maintenance_action( + **_request(ApplyPendingMaintenanceActionInputDict) + ) + client.apply_pending_maintenance_action( + _request(ApplyPendingMaintenanceActionInput) + ) + client.apply_pending_maintenance_action( + _request(ApplyPendingMaintenanceActionInputDict) + ) + client.authorize_db_security_group_ingress(db_security_group_name=_) + client.authorize_db_security_group_ingress( + **_request(AuthorizeDBSecurityGroupIngressInputDict) + ) + client.authorize_db_security_group_ingress( + _request(AuthorizeDBSecurityGroupIngressInput) + ) + client.authorize_db_security_group_ingress( + _request(AuthorizeDBSecurityGroupIngressInputDict) + ) + client.backtrack_db_cluster(db_cluster_identifier=_, backtrack_to=_) + client.backtrack_db_cluster(**_request(BacktrackDBClusterInputDict)) + client.backtrack_db_cluster(_request(BacktrackDBClusterInput)) + client.backtrack_db_cluster(_request(BacktrackDBClusterInputDict)) + client.cancel_db_capacity_reservation(db_capacity_reservation_identifier=_) + client.cancel_db_capacity_reservation( + **_request(CancelDBCapacityReservationInputDict) + ) + client.cancel_db_capacity_reservation(_request(CancelDBCapacityReservationInput)) + client.cancel_db_capacity_reservation( + _request(CancelDBCapacityReservationInputDict) + ) + client.cancel_export_task(export_task_identifier=_) + client.cancel_export_task(**_request(CancelExportTaskInputDict)) + client.cancel_export_task(_request(CancelExportTaskInput)) + client.cancel_export_task(_request(CancelExportTaskInputDict)) + client.copy_db_cluster_parameter_group( + source_db_cluster_parameter_group_identifier=_, + target_db_cluster_parameter_group_identifier=_, + target_db_cluster_parameter_group_description=_, + ) + client.copy_db_cluster_parameter_group( + **_request(CopyDBClusterParameterGroupInputDict) + ) + client.copy_db_cluster_parameter_group(_request(CopyDBClusterParameterGroupInput)) + client.copy_db_cluster_parameter_group( + _request(CopyDBClusterParameterGroupInputDict) + ) + client.copy_db_cluster_snapshot( + source_db_cluster_snapshot_identifier=_, target_db_cluster_snapshot_identifier=_ + ) + client.copy_db_cluster_snapshot(**_request(CopyDBClusterSnapshotInputDict)) + client.copy_db_cluster_snapshot(_request(CopyDBClusterSnapshotInput)) + client.copy_db_cluster_snapshot(_request(CopyDBClusterSnapshotInputDict)) + client.copy_db_parameter_group( + source_db_parameter_group_identifier=_, + target_db_parameter_group_identifier=_, + target_db_parameter_group_description=_, + ) + client.copy_db_parameter_group(**_request(CopyDBParameterGroupInputDict)) + client.copy_db_parameter_group(_request(CopyDBParameterGroupInput)) + client.copy_db_parameter_group(_request(CopyDBParameterGroupInputDict)) + client.copy_db_snapshot( + source_db_snapshot_identifier=_, target_db_snapshot_identifier=_ + ) + client.copy_db_snapshot(**_request(CopyDBSnapshotInputDict)) + client.copy_db_snapshot(_request(CopyDBSnapshotInput)) + client.copy_db_snapshot(_request(CopyDBSnapshotInputDict)) + client.copy_option_group( + source_option_group_identifier=_, + target_option_group_identifier=_, + target_option_group_description=_, + ) + client.copy_option_group(**_request(CopyOptionGroupInputDict)) + client.copy_option_group(_request(CopyOptionGroupInput)) + client.copy_option_group(_request(CopyOptionGroupInputDict)) + client.create_blue_green_deployment(blue_green_deployment_name=_, source=_) + client.create_blue_green_deployment(**_request(CreateBlueGreenDeploymentInputDict)) + client.create_blue_green_deployment(_request(CreateBlueGreenDeploymentInput)) + client.create_blue_green_deployment(_request(CreateBlueGreenDeploymentInputDict)) + client.create_custom_db_engine_version(engine=_, engine_version=_) + client.create_custom_db_engine_version( + **_request(CreateCustomDBEngineVersionInputDict) + ) + client.create_custom_db_engine_version(_request(CreateCustomDBEngineVersionInput)) + client.create_custom_db_engine_version( + _request(CreateCustomDBEngineVersionInputDict) + ) + client.create_db_capacity_reservation( + db_capacity_reservation_name=_, + db_instance_class=_, + engine=_, + capacity_per_availability_zone=_, + availability_zones=_, + ) + client.create_db_capacity_reservation( + **_request(CreateDBCapacityReservationInputDict) + ) + client.create_db_capacity_reservation(_request(CreateDBCapacityReservationInput)) + client.create_db_capacity_reservation( + _request(CreateDBCapacityReservationInputDict) + ) + client.create_db_cluster(db_cluster_identifier=_, engine=_) + client.create_db_cluster(**_request(CreateDBClusterInputDict)) + client.create_db_cluster(_request(CreateDBClusterInput)) + client.create_db_cluster(_request(CreateDBClusterInputDict)) + client.create_db_cluster_endpoint( + db_cluster_identifier=_, db_cluster_endpoint_identifier=_, endpoint_type=_ + ) + client.create_db_cluster_endpoint(**_request(CreateDBClusterEndpointInputDict)) + client.create_db_cluster_endpoint(_request(CreateDBClusterEndpointInput)) + client.create_db_cluster_endpoint(_request(CreateDBClusterEndpointInputDict)) + client.create_db_cluster_parameter_group( + db_cluster_parameter_group_name=_, db_parameter_group_family=_, description=_ + ) + client.create_db_cluster_parameter_group( + **_request(CreateDBClusterParameterGroupInputDict) + ) + client.create_db_cluster_parameter_group( + _request(CreateDBClusterParameterGroupInput) + ) + client.create_db_cluster_parameter_group( + _request(CreateDBClusterParameterGroupInputDict) + ) + client.create_db_cluster_snapshot( + db_cluster_snapshot_identifier=_, db_cluster_identifier=_ + ) + client.create_db_cluster_snapshot(**_request(CreateDBClusterSnapshotInputDict)) + client.create_db_cluster_snapshot(_request(CreateDBClusterSnapshotInput)) + client.create_db_cluster_snapshot(_request(CreateDBClusterSnapshotInputDict)) + client.create_db_instance(db_instance_identifier=_, db_instance_class=_, engine=_) + client.create_db_instance(**_request(CreateDBInstanceInputDict)) + client.create_db_instance(_request(CreateDBInstanceInput)) + client.create_db_instance(_request(CreateDBInstanceInputDict)) + client.create_db_instance_read_replica(db_instance_identifier=_) + client.create_db_instance_read_replica( + **_request(CreateDBInstanceReadReplicaInputDict) + ) + client.create_db_instance_read_replica(_request(CreateDBInstanceReadReplicaInput)) + client.create_db_instance_read_replica( + _request(CreateDBInstanceReadReplicaInputDict) + ) + client.create_db_parameter_group( + db_parameter_group_name=_, db_parameter_group_family=_, description=_ + ) + client.create_db_parameter_group(**_request(CreateDBParameterGroupInputDict)) + client.create_db_parameter_group(_request(CreateDBParameterGroupInput)) + client.create_db_parameter_group(_request(CreateDBParameterGroupInputDict)) + client.create_db_proxy( + db_proxy_name=_, engine_family=_, role_arn=_, vpc_subnet_ids=_ + ) + client.create_db_proxy(**_request(CreateDBProxyInputDict)) + client.create_db_proxy(_request(CreateDBProxyInput)) + client.create_db_proxy(_request(CreateDBProxyInputDict)) + client.create_db_proxy_endpoint( + db_proxy_name=_, db_proxy_endpoint_name=_, vpc_subnet_ids=_ + ) + client.create_db_proxy_endpoint(**_request(CreateDBProxyEndpointInputDict)) + client.create_db_proxy_endpoint(_request(CreateDBProxyEndpointInput)) + client.create_db_proxy_endpoint(_request(CreateDBProxyEndpointInputDict)) + client.create_db_security_group( + db_security_group_name=_, db_security_group_description=_ + ) + client.create_db_security_group(**_request(CreateDBSecurityGroupInputDict)) + client.create_db_security_group(_request(CreateDBSecurityGroupInput)) + client.create_db_security_group(_request(CreateDBSecurityGroupInputDict)) + client.create_db_shard_group( + db_shard_group_identifier=_, db_cluster_identifier=_, max_acu=_ + ) + client.create_db_shard_group(**_request(CreateDBShardGroupInputDict)) + client.create_db_shard_group(_request(CreateDBShardGroupInput)) + client.create_db_shard_group(_request(CreateDBShardGroupInputDict)) + client.create_db_snapshot(db_snapshot_identifier=_, db_instance_identifier=_) + client.create_db_snapshot(**_request(CreateDBSnapshotInputDict)) + client.create_db_snapshot(_request(CreateDBSnapshotInput)) + client.create_db_snapshot(_request(CreateDBSnapshotInputDict)) + client.create_db_subnet_group( + db_subnet_group_name=_, db_subnet_group_description=_, subnet_ids=_ + ) + client.create_db_subnet_group(**_request(CreateDBSubnetGroupInputDict)) + client.create_db_subnet_group(_request(CreateDBSubnetGroupInput)) + client.create_db_subnet_group(_request(CreateDBSubnetGroupInputDict)) + client.create_event_subscription(subscription_name=_, sns_topic_arn=_) + client.create_event_subscription(**_request(CreateEventSubscriptionInputDict)) + client.create_event_subscription(_request(CreateEventSubscriptionInput)) + client.create_event_subscription(_request(CreateEventSubscriptionInputDict)) + client.create_global_cluster(global_cluster_identifier=_) + client.create_global_cluster(**_request(CreateGlobalClusterInputDict)) + client.create_global_cluster(_request(CreateGlobalClusterInput)) + client.create_global_cluster(_request(CreateGlobalClusterInputDict)) + client.create_integration(source_arn=_, target_arn=_, integration_name=_) + client.create_integration(**_request(CreateIntegrationInputDict)) + client.create_integration(_request(CreateIntegrationInput)) + client.create_integration(_request(CreateIntegrationInputDict)) + client.create_option_group( + option_group_name=_, + engine_name=_, + major_engine_version=_, + option_group_description=_, + ) + client.create_option_group(**_request(CreateOptionGroupInputDict)) + client.create_option_group(_request(CreateOptionGroupInput)) + client.create_option_group(_request(CreateOptionGroupInputDict)) + client.create_tenant_database( + db_instance_identifier=_, tenant_db_name=_, master_username=_ + ) + client.create_tenant_database(**_request(CreateTenantDatabaseInputDict)) + client.create_tenant_database(_request(CreateTenantDatabaseInput)) + client.create_tenant_database(_request(CreateTenantDatabaseInputDict)) + client.delete_blue_green_deployment(blue_green_deployment_identifier=_) + client.delete_blue_green_deployment(**_request(DeleteBlueGreenDeploymentInputDict)) + client.delete_blue_green_deployment(_request(DeleteBlueGreenDeploymentInput)) + client.delete_blue_green_deployment(_request(DeleteBlueGreenDeploymentInputDict)) + client.delete_custom_db_engine_version(engine=_, engine_version=_) + client.delete_custom_db_engine_version( + **_request(DeleteCustomDBEngineVersionInputDict) + ) + client.delete_custom_db_engine_version(_request(DeleteCustomDBEngineVersionInput)) + client.delete_custom_db_engine_version( + _request(DeleteCustomDBEngineVersionInputDict) + ) + client.delete_db_cluster(db_cluster_identifier=_) + client.delete_db_cluster(**_request(DeleteDBClusterInputDict)) + client.delete_db_cluster(_request(DeleteDBClusterInput)) + client.delete_db_cluster(_request(DeleteDBClusterInputDict)) + client.delete_db_cluster_automated_backup(db_cluster_resource_id=_) + client.delete_db_cluster_automated_backup( + **_request(DeleteDBClusterAutomatedBackupInputDict) + ) + client.delete_db_cluster_automated_backup( + _request(DeleteDBClusterAutomatedBackupInput) + ) + client.delete_db_cluster_automated_backup( + _request(DeleteDBClusterAutomatedBackupInputDict) + ) + client.delete_db_cluster_endpoint(db_cluster_endpoint_identifier=_) + client.delete_db_cluster_endpoint(**_request(DeleteDBClusterEndpointInputDict)) + client.delete_db_cluster_endpoint(_request(DeleteDBClusterEndpointInput)) + client.delete_db_cluster_endpoint(_request(DeleteDBClusterEndpointInputDict)) + client.delete_db_cluster_parameter_group(db_cluster_parameter_group_name=_) + client.delete_db_cluster_parameter_group( + **_request(DeleteDBClusterParameterGroupInputDict) + ) + client.delete_db_cluster_parameter_group( + _request(DeleteDBClusterParameterGroupInput) + ) + client.delete_db_cluster_parameter_group( + _request(DeleteDBClusterParameterGroupInputDict) + ) + client.delete_db_cluster_snapshot(db_cluster_snapshot_identifier=_) + client.delete_db_cluster_snapshot(**_request(DeleteDBClusterSnapshotInputDict)) + client.delete_db_cluster_snapshot(_request(DeleteDBClusterSnapshotInput)) + client.delete_db_cluster_snapshot(_request(DeleteDBClusterSnapshotInputDict)) + client.delete_db_instance(db_instance_identifier=_) + client.delete_db_instance(**_request(DeleteDBInstanceInputDict)) + client.delete_db_instance(_request(DeleteDBInstanceInput)) + client.delete_db_instance(_request(DeleteDBInstanceInputDict)) + client.delete_db_instance_automated_backup() + client.delete_db_instance_automated_backup( + **_request(DeleteDBInstanceAutomatedBackupInputDict) + ) + client.delete_db_instance_automated_backup( + _request(DeleteDBInstanceAutomatedBackupInput) + ) + client.delete_db_instance_automated_backup( + _request(DeleteDBInstanceAutomatedBackupInputDict) + ) + client.delete_db_parameter_group(db_parameter_group_name=_) + client.delete_db_parameter_group(**_request(DeleteDBParameterGroupInputDict)) + client.delete_db_parameter_group(_request(DeleteDBParameterGroupInput)) + client.delete_db_parameter_group(_request(DeleteDBParameterGroupInputDict)) + client.delete_db_proxy(db_proxy_name=_) + client.delete_db_proxy(**_request(DeleteDBProxyInputDict)) + client.delete_db_proxy(_request(DeleteDBProxyInput)) + client.delete_db_proxy(_request(DeleteDBProxyInputDict)) + client.delete_db_proxy_endpoint(db_proxy_endpoint_name=_) + client.delete_db_proxy_endpoint(**_request(DeleteDBProxyEndpointInputDict)) + client.delete_db_proxy_endpoint(_request(DeleteDBProxyEndpointInput)) + client.delete_db_proxy_endpoint(_request(DeleteDBProxyEndpointInputDict)) + client.delete_db_security_group(db_security_group_name=_) + client.delete_db_security_group(**_request(DeleteDBSecurityGroupInputDict)) + client.delete_db_security_group(_request(DeleteDBSecurityGroupInput)) + client.delete_db_security_group(_request(DeleteDBSecurityGroupInputDict)) + client.delete_db_shard_group(db_shard_group_identifier=_) + client.delete_db_shard_group(**_request(DeleteDBShardGroupInputDict)) + client.delete_db_shard_group(_request(DeleteDBShardGroupInput)) + client.delete_db_shard_group(_request(DeleteDBShardGroupInputDict)) + client.delete_db_snapshot(db_snapshot_identifier=_) + client.delete_db_snapshot(**_request(DeleteDBSnapshotInputDict)) + client.delete_db_snapshot(_request(DeleteDBSnapshotInput)) + client.delete_db_snapshot(_request(DeleteDBSnapshotInputDict)) + client.delete_db_subnet_group(db_subnet_group_name=_) + client.delete_db_subnet_group(**_request(DeleteDBSubnetGroupInputDict)) + client.delete_db_subnet_group(_request(DeleteDBSubnetGroupInput)) + client.delete_db_subnet_group(_request(DeleteDBSubnetGroupInputDict)) + client.delete_event_subscription(subscription_name=_) + client.delete_event_subscription(**_request(DeleteEventSubscriptionInputDict)) + client.delete_event_subscription(_request(DeleteEventSubscriptionInput)) + client.delete_event_subscription(_request(DeleteEventSubscriptionInputDict)) + client.delete_global_cluster(global_cluster_identifier=_) + client.delete_global_cluster(**_request(DeleteGlobalClusterInputDict)) + client.delete_global_cluster(_request(DeleteGlobalClusterInput)) + client.delete_global_cluster(_request(DeleteGlobalClusterInputDict)) + client.delete_integration(integration_identifier=_) + client.delete_integration(**_request(DeleteIntegrationInputDict)) + client.delete_integration(_request(DeleteIntegrationInput)) + client.delete_integration(_request(DeleteIntegrationInputDict)) + client.delete_option_group(option_group_name=_) + client.delete_option_group(**_request(DeleteOptionGroupInputDict)) + client.delete_option_group(_request(DeleteOptionGroupInput)) + client.delete_option_group(_request(DeleteOptionGroupInputDict)) + client.delete_tenant_database(db_instance_identifier=_, tenant_db_name=_) + client.delete_tenant_database(**_request(DeleteTenantDatabaseInputDict)) + client.delete_tenant_database(_request(DeleteTenantDatabaseInput)) + client.delete_tenant_database(_request(DeleteTenantDatabaseInputDict)) + client.deregister_db_proxy_targets(db_proxy_name=_) + client.deregister_db_proxy_targets(**_request(DeregisterDBProxyTargetsInputDict)) + client.deregister_db_proxy_targets(_request(DeregisterDBProxyTargetsInput)) + client.deregister_db_proxy_targets(_request(DeregisterDBProxyTargetsInputDict)) + client.describe_account_attributes() + client.describe_account_attributes(**_request(DescribeAccountAttributesInputDict)) + client.describe_account_attributes(_request(DescribeAccountAttributesInput)) + client.describe_account_attributes(_request(DescribeAccountAttributesInputDict)) + client.describe_blue_green_deployments() + client.describe_blue_green_deployments( + **_request(DescribeBlueGreenDeploymentsInputDict) + ) + client.describe_blue_green_deployments(_request(DescribeBlueGreenDeploymentsInput)) + client.describe_blue_green_deployments( + _request(DescribeBlueGreenDeploymentsInputDict) + ) + client.describe_certificates() + client.describe_certificates(**_request(DescribeCertificatesInputDict)) + client.describe_certificates(_request(DescribeCertificatesInput)) + client.describe_certificates(_request(DescribeCertificatesInputDict)) + client.describe_db_capacity_reservations() + client.describe_db_capacity_reservations( + **_request(DescribeDBCapacityReservationsInputDict) + ) + client.describe_db_capacity_reservations( + _request(DescribeDBCapacityReservationsInput) + ) + client.describe_db_capacity_reservations( + _request(DescribeDBCapacityReservationsInputDict) + ) + client.describe_db_cluster_automated_backups() + client.describe_db_cluster_automated_backups( + **_request(DescribeDBClusterAutomatedBackupsInputDict) + ) + client.describe_db_cluster_automated_backups( + _request(DescribeDBClusterAutomatedBackupsInput) + ) + client.describe_db_cluster_automated_backups( + _request(DescribeDBClusterAutomatedBackupsInputDict) + ) + client.describe_db_cluster_backtracks(db_cluster_identifier=_) + client.describe_db_cluster_backtracks( + **_request(DescribeDBClusterBacktracksInputDict) + ) + client.describe_db_cluster_backtracks(_request(DescribeDBClusterBacktracksInput)) + client.describe_db_cluster_backtracks( + _request(DescribeDBClusterBacktracksInputDict) + ) + client.describe_db_cluster_endpoints() + client.describe_db_cluster_endpoints( + **_request(DescribeDBClusterEndpointsInputDict) + ) + client.describe_db_cluster_endpoints(_request(DescribeDBClusterEndpointsInput)) + client.describe_db_cluster_endpoints(_request(DescribeDBClusterEndpointsInputDict)) + client.describe_db_cluster_parameter_groups() + client.describe_db_cluster_parameter_groups( + **_request(DescribeDBClusterParameterGroupsInputDict) + ) + client.describe_db_cluster_parameter_groups( + _request(DescribeDBClusterParameterGroupsInput) + ) + client.describe_db_cluster_parameter_groups( + _request(DescribeDBClusterParameterGroupsInputDict) + ) + client.describe_db_cluster_parameters(db_cluster_parameter_group_name=_) + client.describe_db_cluster_parameters( + **_request(DescribeDBClusterParametersInputDict) + ) + client.describe_db_cluster_parameters(_request(DescribeDBClusterParametersInput)) + client.describe_db_cluster_parameters( + _request(DescribeDBClusterParametersInputDict) + ) + client.describe_db_clusters() + client.describe_db_clusters(**_request(DescribeDBClustersInputDict)) + client.describe_db_clusters(_request(DescribeDBClustersInput)) + client.describe_db_clusters(_request(DescribeDBClustersInputDict)) + client.describe_db_cluster_snapshot_attributes(db_cluster_snapshot_identifier=_) + client.describe_db_cluster_snapshot_attributes( + **_request(DescribeDBClusterSnapshotAttributesInputDict) + ) + client.describe_db_cluster_snapshot_attributes( + _request(DescribeDBClusterSnapshotAttributesInput) + ) + client.describe_db_cluster_snapshot_attributes( + _request(DescribeDBClusterSnapshotAttributesInputDict) + ) + client.describe_db_cluster_snapshots() + client.describe_db_cluster_snapshots( + **_request(DescribeDBClusterSnapshotsInputDict) + ) + client.describe_db_cluster_snapshots(_request(DescribeDBClusterSnapshotsInput)) + client.describe_db_cluster_snapshots(_request(DescribeDBClusterSnapshotsInputDict)) + client.describe_db_engine_versions() + client.describe_db_engine_versions(**_request(DescribeDBEngineVersionsInputDict)) + client.describe_db_engine_versions(_request(DescribeDBEngineVersionsInput)) + client.describe_db_engine_versions(_request(DescribeDBEngineVersionsInputDict)) + client.describe_db_instance_automated_backups() + client.describe_db_instance_automated_backups( + **_request(DescribeDBInstanceAutomatedBackupsInputDict) + ) + client.describe_db_instance_automated_backups( + _request(DescribeDBInstanceAutomatedBackupsInput) + ) + client.describe_db_instance_automated_backups( + _request(DescribeDBInstanceAutomatedBackupsInputDict) + ) + client.describe_db_instances() + client.describe_db_instances(**_request(DescribeDBInstancesInputDict)) + client.describe_db_instances(_request(DescribeDBInstancesInput)) + client.describe_db_instances(_request(DescribeDBInstancesInputDict)) + client.describe_db_log_files(db_instance_identifier=_) + client.describe_db_log_files(**_request(DescribeDBLogFilesInputDict)) + client.describe_db_log_files(_request(DescribeDBLogFilesInput)) + client.describe_db_log_files(_request(DescribeDBLogFilesInputDict)) + client.describe_db_major_engine_versions() + client.describe_db_major_engine_versions( + **_request(DescribeDBMajorEngineVersionsInputDict) + ) + client.describe_db_major_engine_versions( + _request(DescribeDBMajorEngineVersionsInput) + ) + client.describe_db_major_engine_versions( + _request(DescribeDBMajorEngineVersionsInputDict) + ) + client.describe_db_parameter_groups() + client.describe_db_parameter_groups(**_request(DescribeDBParameterGroupsInputDict)) + client.describe_db_parameter_groups(_request(DescribeDBParameterGroupsInput)) + client.describe_db_parameter_groups(_request(DescribeDBParameterGroupsInputDict)) + client.describe_db_parameters(db_parameter_group_name=_) + client.describe_db_parameters(**_request(DescribeDBParametersInputDict)) + client.describe_db_parameters(_request(DescribeDBParametersInput)) + client.describe_db_parameters(_request(DescribeDBParametersInputDict)) + client.describe_db_proxies() + client.describe_db_proxies(**_request(DescribeDBProxiesInputDict)) + client.describe_db_proxies(_request(DescribeDBProxiesInput)) + client.describe_db_proxies(_request(DescribeDBProxiesInputDict)) + client.describe_db_proxy_endpoints() + client.describe_db_proxy_endpoints(**_request(DescribeDBProxyEndpointsInputDict)) + client.describe_db_proxy_endpoints(_request(DescribeDBProxyEndpointsInput)) + client.describe_db_proxy_endpoints(_request(DescribeDBProxyEndpointsInputDict)) + client.describe_db_proxy_target_groups(db_proxy_name=_) + client.describe_db_proxy_target_groups( + **_request(DescribeDBProxyTargetGroupsInputDict) + ) + client.describe_db_proxy_target_groups(_request(DescribeDBProxyTargetGroupsInput)) + client.describe_db_proxy_target_groups( + _request(DescribeDBProxyTargetGroupsInputDict) + ) + client.describe_db_proxy_targets(db_proxy_name=_) + client.describe_db_proxy_targets(**_request(DescribeDBProxyTargetsInputDict)) + client.describe_db_proxy_targets(_request(DescribeDBProxyTargetsInput)) + client.describe_db_proxy_targets(_request(DescribeDBProxyTargetsInputDict)) + client.describe_db_recommendations() + client.describe_db_recommendations(**_request(DescribeDBRecommendationsInputDict)) + client.describe_db_recommendations(_request(DescribeDBRecommendationsInput)) + client.describe_db_recommendations(_request(DescribeDBRecommendationsInputDict)) + client.describe_db_security_groups() + client.describe_db_security_groups(**_request(DescribeDBSecurityGroupsInputDict)) + client.describe_db_security_groups(_request(DescribeDBSecurityGroupsInput)) + client.describe_db_security_groups(_request(DescribeDBSecurityGroupsInputDict)) + client.describe_db_shard_groups() + client.describe_db_shard_groups(**_request(DescribeDBShardGroupsInputDict)) + client.describe_db_shard_groups(_request(DescribeDBShardGroupsInput)) + client.describe_db_shard_groups(_request(DescribeDBShardGroupsInputDict)) + client.describe_db_snapshot_attributes(db_snapshot_identifier=_) + client.describe_db_snapshot_attributes( + **_request(DescribeDBSnapshotAttributesInputDict) + ) + client.describe_db_snapshot_attributes(_request(DescribeDBSnapshotAttributesInput)) + client.describe_db_snapshot_attributes( + _request(DescribeDBSnapshotAttributesInputDict) + ) + client.describe_db_snapshots() + client.describe_db_snapshots(**_request(DescribeDBSnapshotsInputDict)) + client.describe_db_snapshots(_request(DescribeDBSnapshotsInput)) + client.describe_db_snapshots(_request(DescribeDBSnapshotsInputDict)) + client.describe_db_snapshot_tenant_databases() + client.describe_db_snapshot_tenant_databases( + **_request(DescribeDBSnapshotTenantDatabasesInputDict) + ) + client.describe_db_snapshot_tenant_databases( + _request(DescribeDBSnapshotTenantDatabasesInput) + ) + client.describe_db_snapshot_tenant_databases( + _request(DescribeDBSnapshotTenantDatabasesInputDict) + ) + client.describe_db_subnet_groups() + client.describe_db_subnet_groups(**_request(DescribeDBSubnetGroupsInputDict)) + client.describe_db_subnet_groups(_request(DescribeDBSubnetGroupsInput)) + client.describe_db_subnet_groups(_request(DescribeDBSubnetGroupsInputDict)) + client.describe_engine_default_cluster_parameters(db_parameter_group_family=_) + client.describe_engine_default_cluster_parameters( + **_request(DescribeEngineDefaultClusterParametersInputDict) + ) + client.describe_engine_default_cluster_parameters( + _request(DescribeEngineDefaultClusterParametersInput) + ) + client.describe_engine_default_cluster_parameters( + _request(DescribeEngineDefaultClusterParametersInputDict) + ) + client.describe_engine_default_parameters(db_parameter_group_family=_) + client.describe_engine_default_parameters( + **_request(DescribeEngineDefaultParametersInputDict) + ) + client.describe_engine_default_parameters( + _request(DescribeEngineDefaultParametersInput) + ) + client.describe_engine_default_parameters( + _request(DescribeEngineDefaultParametersInputDict) + ) + client.describe_event_categories() + client.describe_event_categories(**_request(DescribeEventCategoriesInputDict)) + client.describe_event_categories(_request(DescribeEventCategoriesInput)) + client.describe_event_categories(_request(DescribeEventCategoriesInputDict)) + client.describe_events() + client.describe_events(**_request(DescribeEventsInputDict)) + client.describe_events(_request(DescribeEventsInput)) + client.describe_events(_request(DescribeEventsInputDict)) + client.describe_event_subscriptions() + client.describe_event_subscriptions(**_request(DescribeEventSubscriptionsInputDict)) + client.describe_event_subscriptions(_request(DescribeEventSubscriptionsInput)) + client.describe_event_subscriptions(_request(DescribeEventSubscriptionsInputDict)) + client.describe_export_tasks() + client.describe_export_tasks(**_request(DescribeExportTasksInputDict)) + client.describe_export_tasks(_request(DescribeExportTasksInput)) + client.describe_export_tasks(_request(DescribeExportTasksInputDict)) + client.describe_global_clusters() + client.describe_global_clusters(**_request(DescribeGlobalClustersInputDict)) + client.describe_global_clusters(_request(DescribeGlobalClustersInput)) + client.describe_global_clusters(_request(DescribeGlobalClustersInputDict)) + client.describe_integrations() + client.describe_integrations(**_request(DescribeIntegrationsInputDict)) + client.describe_integrations(_request(DescribeIntegrationsInput)) + client.describe_integrations(_request(DescribeIntegrationsInputDict)) + client.describe_option_group_options(engine_name=_) + client.describe_option_group_options( + **_request(DescribeOptionGroupOptionsInputDict) + ) + client.describe_option_group_options(_request(DescribeOptionGroupOptionsInput)) + client.describe_option_group_options(_request(DescribeOptionGroupOptionsInputDict)) + client.describe_option_groups() + client.describe_option_groups(**_request(DescribeOptionGroupsInputDict)) + client.describe_option_groups(_request(DescribeOptionGroupsInput)) + client.describe_option_groups(_request(DescribeOptionGroupsInputDict)) + client.describe_orderable_db_instance_options(engine=_) + client.describe_orderable_db_instance_options( + **_request(DescribeOrderableDBInstanceOptionsInputDict) + ) + client.describe_orderable_db_instance_options( + _request(DescribeOrderableDBInstanceOptionsInput) + ) + client.describe_orderable_db_instance_options( + _request(DescribeOrderableDBInstanceOptionsInputDict) + ) + client.describe_pending_maintenance_actions() + client.describe_pending_maintenance_actions( + **_request(DescribePendingMaintenanceActionsInputDict) + ) + client.describe_pending_maintenance_actions( + _request(DescribePendingMaintenanceActionsInput) + ) + client.describe_pending_maintenance_actions( + _request(DescribePendingMaintenanceActionsInputDict) + ) + client.describe_reserved_db_instances() + client.describe_reserved_db_instances( + **_request(DescribeReservedDBInstancesInputDict) + ) + client.describe_reserved_db_instances(_request(DescribeReservedDBInstancesInput)) + client.describe_reserved_db_instances( + _request(DescribeReservedDBInstancesInputDict) + ) + client.describe_reserved_db_instances_offerings() + client.describe_reserved_db_instances_offerings( + **_request(DescribeReservedDBInstancesOfferingsInputDict) + ) + client.describe_reserved_db_instances_offerings( + _request(DescribeReservedDBInstancesOfferingsInput) + ) + client.describe_reserved_db_instances_offerings( + _request(DescribeReservedDBInstancesOfferingsInputDict) + ) + client.describe_serverless_v2_platform_versions() + client.describe_serverless_v2_platform_versions( + **_request(DescribeServerlessV2PlatformVersionsInputDict) + ) + client.describe_serverless_v2_platform_versions( + _request(DescribeServerlessV2PlatformVersionsInput) + ) + client.describe_serverless_v2_platform_versions( + _request(DescribeServerlessV2PlatformVersionsInputDict) + ) + client.describe_source_regions() + client.describe_source_regions(**_request(DescribeSourceRegionsInputDict)) + client.describe_source_regions(_request(DescribeSourceRegionsInput)) + client.describe_source_regions(_request(DescribeSourceRegionsInputDict)) + client.describe_tenant_databases() + client.describe_tenant_databases(**_request(DescribeTenantDatabasesInputDict)) + client.describe_tenant_databases(_request(DescribeTenantDatabasesInput)) + client.describe_tenant_databases(_request(DescribeTenantDatabasesInputDict)) + client.describe_valid_db_instance_modifications(db_instance_identifier=_) + client.describe_valid_db_instance_modifications( + **_request(DescribeValidDBInstanceModificationsInputDict) + ) + client.describe_valid_db_instance_modifications( + _request(DescribeValidDBInstanceModificationsInput) + ) + client.describe_valid_db_instance_modifications( + _request(DescribeValidDBInstanceModificationsInputDict) + ) + client.disable_http_endpoint(resource_arn=_) + client.disable_http_endpoint(**_request(DisableHttpEndpointInputDict)) + client.disable_http_endpoint(_request(DisableHttpEndpointInput)) + client.disable_http_endpoint(_request(DisableHttpEndpointInputDict)) + client.download_db_log_file_portion(db_instance_identifier=_, log_file_name=_) + client.download_db_log_file_portion(**_request(DownloadDBLogFilePortionInputDict)) + client.download_db_log_file_portion(_request(DownloadDBLogFilePortionInput)) + client.download_db_log_file_portion(_request(DownloadDBLogFilePortionInputDict)) + client.enable_http_endpoint(resource_arn=_) + client.enable_http_endpoint(**_request(EnableHttpEndpointInputDict)) + client.enable_http_endpoint(_request(EnableHttpEndpointInput)) + client.enable_http_endpoint(_request(EnableHttpEndpointInputDict)) + client.failover_db_cluster(db_cluster_identifier=_) + client.failover_db_cluster(**_request(FailoverDBClusterInputDict)) + client.failover_db_cluster(_request(FailoverDBClusterInput)) + client.failover_db_cluster(_request(FailoverDBClusterInputDict)) + client.failover_global_cluster( + global_cluster_identifier=_, target_db_cluster_identifier=_ + ) + client.failover_global_cluster(**_request(FailoverGlobalClusterInputDict)) + client.failover_global_cluster(_request(FailoverGlobalClusterInput)) + client.failover_global_cluster(_request(FailoverGlobalClusterInputDict)) + client.list_tags_for_resource(resource_name=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.modify_activity_stream() + client.modify_activity_stream(**_request(ModifyActivityStreamInputDict)) + client.modify_activity_stream(_request(ModifyActivityStreamInput)) + client.modify_activity_stream(_request(ModifyActivityStreamInputDict)) + client.modify_certificates() + client.modify_certificates(**_request(ModifyCertificatesInputDict)) + client.modify_certificates(_request(ModifyCertificatesInput)) + client.modify_certificates(_request(ModifyCertificatesInputDict)) + client.modify_current_db_cluster_capacity(db_cluster_identifier=_) + client.modify_current_db_cluster_capacity( + **_request(ModifyCurrentDBClusterCapacityInputDict) + ) + client.modify_current_db_cluster_capacity( + _request(ModifyCurrentDBClusterCapacityInput) + ) + client.modify_current_db_cluster_capacity( + _request(ModifyCurrentDBClusterCapacityInputDict) + ) + client.modify_custom_db_engine_version(engine=_, engine_version=_) + client.modify_custom_db_engine_version( + **_request(ModifyCustomDBEngineVersionInputDict) + ) + client.modify_custom_db_engine_version(_request(ModifyCustomDBEngineVersionInput)) + client.modify_custom_db_engine_version( + _request(ModifyCustomDBEngineVersionInputDict) + ) + client.modify_db_capacity_reservation(db_capacity_reservation_identifier=_) + client.modify_db_capacity_reservation( + **_request(ModifyDBCapacityReservationInputDict) + ) + client.modify_db_capacity_reservation(_request(ModifyDBCapacityReservationInput)) + client.modify_db_capacity_reservation( + _request(ModifyDBCapacityReservationInputDict) + ) + client.modify_db_cluster(db_cluster_identifier=_) + client.modify_db_cluster(**_request(ModifyDBClusterInputDict)) + client.modify_db_cluster(_request(ModifyDBClusterInput)) + client.modify_db_cluster(_request(ModifyDBClusterInputDict)) + client.modify_db_cluster_endpoint(db_cluster_endpoint_identifier=_) + client.modify_db_cluster_endpoint(**_request(ModifyDBClusterEndpointInputDict)) + client.modify_db_cluster_endpoint(_request(ModifyDBClusterEndpointInput)) + client.modify_db_cluster_endpoint(_request(ModifyDBClusterEndpointInputDict)) + client.modify_db_cluster_parameter_group( + db_cluster_parameter_group_name=_, parameters=_ + ) + client.modify_db_cluster_parameter_group( + **_request(ModifyDBClusterParameterGroupInputDict) + ) + client.modify_db_cluster_parameter_group( + _request(ModifyDBClusterParameterGroupInput) + ) + client.modify_db_cluster_parameter_group( + _request(ModifyDBClusterParameterGroupInputDict) + ) + client.modify_db_cluster_snapshot_attribute( + db_cluster_snapshot_identifier=_, attribute_name=_ + ) + client.modify_db_cluster_snapshot_attribute( + **_request(ModifyDBClusterSnapshotAttributeInputDict) + ) + client.modify_db_cluster_snapshot_attribute( + _request(ModifyDBClusterSnapshotAttributeInput) + ) + client.modify_db_cluster_snapshot_attribute( + _request(ModifyDBClusterSnapshotAttributeInputDict) + ) + client.modify_db_instance(db_instance_identifier=_) + client.modify_db_instance(**_request(ModifyDBInstanceInputDict)) + client.modify_db_instance(_request(ModifyDBInstanceInput)) + client.modify_db_instance(_request(ModifyDBInstanceInputDict)) + client.modify_db_parameter_group(db_parameter_group_name=_, parameters=_) + client.modify_db_parameter_group(**_request(ModifyDBParameterGroupInputDict)) + client.modify_db_parameter_group(_request(ModifyDBParameterGroupInput)) + client.modify_db_parameter_group(_request(ModifyDBParameterGroupInputDict)) + client.modify_db_proxy(db_proxy_name=_) + client.modify_db_proxy(**_request(ModifyDBProxyInputDict)) + client.modify_db_proxy(_request(ModifyDBProxyInput)) + client.modify_db_proxy(_request(ModifyDBProxyInputDict)) + client.modify_db_proxy_endpoint(db_proxy_endpoint_name=_) + client.modify_db_proxy_endpoint(**_request(ModifyDBProxyEndpointInputDict)) + client.modify_db_proxy_endpoint(_request(ModifyDBProxyEndpointInput)) + client.modify_db_proxy_endpoint(_request(ModifyDBProxyEndpointInputDict)) + client.modify_db_proxy_target_group(target_group_name=_, db_proxy_name=_) + client.modify_db_proxy_target_group(**_request(ModifyDBProxyTargetGroupInputDict)) + client.modify_db_proxy_target_group(_request(ModifyDBProxyTargetGroupInput)) + client.modify_db_proxy_target_group(_request(ModifyDBProxyTargetGroupInputDict)) + client.modify_db_recommendation(recommendation_id=_) + client.modify_db_recommendation(**_request(ModifyDBRecommendationInputDict)) + client.modify_db_recommendation(_request(ModifyDBRecommendationInput)) + client.modify_db_recommendation(_request(ModifyDBRecommendationInputDict)) + client.modify_db_shard_group(db_shard_group_identifier=_) + client.modify_db_shard_group(**_request(ModifyDBShardGroupInputDict)) + client.modify_db_shard_group(_request(ModifyDBShardGroupInput)) + client.modify_db_shard_group(_request(ModifyDBShardGroupInputDict)) + client.modify_db_snapshot(db_snapshot_identifier=_) + client.modify_db_snapshot(**_request(ModifyDBSnapshotInputDict)) + client.modify_db_snapshot(_request(ModifyDBSnapshotInput)) + client.modify_db_snapshot(_request(ModifyDBSnapshotInputDict)) + client.modify_db_snapshot_attribute(db_snapshot_identifier=_, attribute_name=_) + client.modify_db_snapshot_attribute(**_request(ModifyDBSnapshotAttributeInputDict)) + client.modify_db_snapshot_attribute(_request(ModifyDBSnapshotAttributeInput)) + client.modify_db_snapshot_attribute(_request(ModifyDBSnapshotAttributeInputDict)) + client.modify_db_subnet_group(db_subnet_group_name=_, subnet_ids=_) + client.modify_db_subnet_group(**_request(ModifyDBSubnetGroupInputDict)) + client.modify_db_subnet_group(_request(ModifyDBSubnetGroupInput)) + client.modify_db_subnet_group(_request(ModifyDBSubnetGroupInputDict)) + client.modify_event_subscription(subscription_name=_) + client.modify_event_subscription(**_request(ModifyEventSubscriptionInputDict)) + client.modify_event_subscription(_request(ModifyEventSubscriptionInput)) + client.modify_event_subscription(_request(ModifyEventSubscriptionInputDict)) + client.modify_global_cluster(global_cluster_identifier=_) + client.modify_global_cluster(**_request(ModifyGlobalClusterInputDict)) + client.modify_global_cluster(_request(ModifyGlobalClusterInput)) + client.modify_global_cluster(_request(ModifyGlobalClusterInputDict)) + client.modify_integration(integration_identifier=_) + client.modify_integration(**_request(ModifyIntegrationInputDict)) + client.modify_integration(_request(ModifyIntegrationInput)) + client.modify_integration(_request(ModifyIntegrationInputDict)) + client.modify_option_group(option_group_name=_) + client.modify_option_group(**_request(ModifyOptionGroupInputDict)) + client.modify_option_group(_request(ModifyOptionGroupInput)) + client.modify_option_group(_request(ModifyOptionGroupInputDict)) + client.modify_tenant_database(db_instance_identifier=_, tenant_db_name=_) + client.modify_tenant_database(**_request(ModifyTenantDatabaseInputDict)) + client.modify_tenant_database(_request(ModifyTenantDatabaseInput)) + client.modify_tenant_database(_request(ModifyTenantDatabaseInputDict)) + client.promote_read_replica(db_instance_identifier=_) + client.promote_read_replica(**_request(PromoteReadReplicaInputDict)) + client.promote_read_replica(_request(PromoteReadReplicaInput)) + client.promote_read_replica(_request(PromoteReadReplicaInputDict)) + client.promote_read_replica_db_cluster(db_cluster_identifier=_) + client.promote_read_replica_db_cluster( + **_request(PromoteReadReplicaDBClusterInputDict) + ) + client.promote_read_replica_db_cluster(_request(PromoteReadReplicaDBClusterInput)) + client.promote_read_replica_db_cluster( + _request(PromoteReadReplicaDBClusterInputDict) + ) + client.purchase_reserved_db_instances_offering(reserved_db_instances_offering_id=_) + client.purchase_reserved_db_instances_offering( + **_request(PurchaseReservedDBInstancesOfferingInputDict) + ) + client.purchase_reserved_db_instances_offering( + _request(PurchaseReservedDBInstancesOfferingInput) + ) + client.purchase_reserved_db_instances_offering( + _request(PurchaseReservedDBInstancesOfferingInputDict) + ) + client.reboot_db_cluster(db_cluster_identifier=_) + client.reboot_db_cluster(**_request(RebootDBClusterInputDict)) + client.reboot_db_cluster(_request(RebootDBClusterInput)) + client.reboot_db_cluster(_request(RebootDBClusterInputDict)) + client.reboot_db_instance(db_instance_identifier=_) + client.reboot_db_instance(**_request(RebootDBInstanceInputDict)) + client.reboot_db_instance(_request(RebootDBInstanceInput)) + client.reboot_db_instance(_request(RebootDBInstanceInputDict)) + client.reboot_db_shard_group(db_shard_group_identifier=_) + client.reboot_db_shard_group(**_request(RebootDBShardGroupInputDict)) + client.reboot_db_shard_group(_request(RebootDBShardGroupInput)) + client.reboot_db_shard_group(_request(RebootDBShardGroupInputDict)) + client.register_db_proxy_targets(db_proxy_name=_) + client.register_db_proxy_targets(**_request(RegisterDBProxyTargetsInputDict)) + client.register_db_proxy_targets(_request(RegisterDBProxyTargetsInput)) + client.register_db_proxy_targets(_request(RegisterDBProxyTargetsInputDict)) + client.remove_from_global_cluster( + global_cluster_identifier=_, db_cluster_identifier=_ + ) + client.remove_from_global_cluster(**_request(RemoveFromGlobalClusterInputDict)) + client.remove_from_global_cluster(_request(RemoveFromGlobalClusterInput)) + client.remove_from_global_cluster(_request(RemoveFromGlobalClusterInputDict)) + client.remove_role_from_db_cluster(db_cluster_identifier=_, role_arn=_) + client.remove_role_from_db_cluster(**_request(RemoveRoleFromDBClusterInputDict)) + client.remove_role_from_db_cluster(_request(RemoveRoleFromDBClusterInput)) + client.remove_role_from_db_cluster(_request(RemoveRoleFromDBClusterInputDict)) + client.remove_role_from_db_instance( + db_instance_identifier=_, role_arn=_, feature_name=_ + ) + client.remove_role_from_db_instance(**_request(RemoveRoleFromDBInstanceInputDict)) + client.remove_role_from_db_instance(_request(RemoveRoleFromDBInstanceInput)) + client.remove_role_from_db_instance(_request(RemoveRoleFromDBInstanceInputDict)) + client.remove_source_identifier_from_subscription( + subscription_name=_, source_identifier=_ + ) + client.remove_source_identifier_from_subscription( + **_request(RemoveSourceIdentifierFromSubscriptionInputDict) + ) + client.remove_source_identifier_from_subscription( + _request(RemoveSourceIdentifierFromSubscriptionInput) + ) + client.remove_source_identifier_from_subscription( + _request(RemoveSourceIdentifierFromSubscriptionInputDict) + ) + client.remove_tags_from_resource(resource_name=_, tag_keys=_) + client.remove_tags_from_resource(**_request(RemoveTagsFromResourceInputDict)) + client.remove_tags_from_resource(_request(RemoveTagsFromResourceInput)) + client.remove_tags_from_resource(_request(RemoveTagsFromResourceInputDict)) + client.reset_db_cluster_parameter_group(db_cluster_parameter_group_name=_) + client.reset_db_cluster_parameter_group( + **_request(ResetDBClusterParameterGroupInputDict) + ) + client.reset_db_cluster_parameter_group(_request(ResetDBClusterParameterGroupInput)) + client.reset_db_cluster_parameter_group( + _request(ResetDBClusterParameterGroupInputDict) + ) + client.reset_db_parameter_group(db_parameter_group_name=_) + client.reset_db_parameter_group(**_request(ResetDBParameterGroupInputDict)) + client.reset_db_parameter_group(_request(ResetDBParameterGroupInput)) + client.reset_db_parameter_group(_request(ResetDBParameterGroupInputDict)) + client.restore_db_cluster_from_s3( + db_cluster_identifier=_, + engine=_, + master_username=_, + source_engine=_, + source_engine_version=_, + s3_bucket_name=_, + s3_ingestion_role_arn=_, + ) + client.restore_db_cluster_from_s3(**_request(RestoreDBClusterFromS3InputDict)) + client.restore_db_cluster_from_s3(_request(RestoreDBClusterFromS3Input)) + client.restore_db_cluster_from_s3(_request(RestoreDBClusterFromS3InputDict)) + client.restore_db_cluster_from_snapshot( + db_cluster_identifier=_, snapshot_identifier=_, engine=_ + ) + client.restore_db_cluster_from_snapshot( + **_request(RestoreDBClusterFromSnapshotInputDict) + ) + client.restore_db_cluster_from_snapshot(_request(RestoreDBClusterFromSnapshotInput)) + client.restore_db_cluster_from_snapshot( + _request(RestoreDBClusterFromSnapshotInputDict) + ) + client.restore_db_cluster_to_point_in_time(db_cluster_identifier=_) + client.restore_db_cluster_to_point_in_time( + **_request(RestoreDBClusterToPointInTimeInputDict) + ) + client.restore_db_cluster_to_point_in_time( + _request(RestoreDBClusterToPointInTimeInput) + ) + client.restore_db_cluster_to_point_in_time( + _request(RestoreDBClusterToPointInTimeInputDict) + ) + client.restore_db_instance_from_db_snapshot(db_instance_identifier=_) + client.restore_db_instance_from_db_snapshot( + **_request(RestoreDBInstanceFromDBSnapshotInputDict) + ) + client.restore_db_instance_from_db_snapshot( + _request(RestoreDBInstanceFromDBSnapshotInput) + ) + client.restore_db_instance_from_db_snapshot( + _request(RestoreDBInstanceFromDBSnapshotInputDict) + ) + client.restore_db_instance_from_s3( + db_instance_identifier=_, + db_instance_class=_, + engine=_, + source_engine=_, + source_engine_version=_, + s3_bucket_name=_, + s3_ingestion_role_arn=_, + ) + client.restore_db_instance_from_s3(**_request(RestoreDBInstanceFromS3InputDict)) + client.restore_db_instance_from_s3(_request(RestoreDBInstanceFromS3Input)) + client.restore_db_instance_from_s3(_request(RestoreDBInstanceFromS3InputDict)) + client.restore_db_instance_to_point_in_time(target_db_instance_identifier=_) + client.restore_db_instance_to_point_in_time( + **_request(RestoreDBInstanceToPointInTimeInputDict) + ) + client.restore_db_instance_to_point_in_time( + _request(RestoreDBInstanceToPointInTimeInput) + ) + client.restore_db_instance_to_point_in_time( + _request(RestoreDBInstanceToPointInTimeInputDict) + ) + client.revoke_db_security_group_ingress(db_security_group_name=_) + client.revoke_db_security_group_ingress( + **_request(RevokeDBSecurityGroupIngressInputDict) + ) + client.revoke_db_security_group_ingress(_request(RevokeDBSecurityGroupIngressInput)) + client.revoke_db_security_group_ingress( + _request(RevokeDBSecurityGroupIngressInputDict) + ) + client.start_activity_stream(resource_arn=_, mode=_, kms_key_id=_) + client.start_activity_stream(**_request(StartActivityStreamInputDict)) + client.start_activity_stream(_request(StartActivityStreamInput)) + client.start_activity_stream(_request(StartActivityStreamInputDict)) + client.start_db_cluster(db_cluster_identifier=_) + client.start_db_cluster(**_request(StartDBClusterInputDict)) + client.start_db_cluster(_request(StartDBClusterInput)) + client.start_db_cluster(_request(StartDBClusterInputDict)) + client.start_db_instance(db_instance_identifier=_) + client.start_db_instance(**_request(StartDBInstanceInputDict)) + client.start_db_instance(_request(StartDBInstanceInput)) + client.start_db_instance(_request(StartDBInstanceInputDict)) + client.start_db_instance_automated_backups_replication(source_db_instance_arn=_) + client.start_db_instance_automated_backups_replication( + **_request(StartDBInstanceAutomatedBackupsReplicationInputDict) + ) + client.start_db_instance_automated_backups_replication( + _request(StartDBInstanceAutomatedBackupsReplicationInput) + ) + client.start_db_instance_automated_backups_replication( + _request(StartDBInstanceAutomatedBackupsReplicationInputDict) + ) + client.start_export_task( + export_task_identifier=_, + source_arn=_, + s3_bucket_name=_, + iam_role_arn=_, + kms_key_id=_, + ) + client.start_export_task(**_request(StartExportTaskInputDict)) + client.start_export_task(_request(StartExportTaskInput)) + client.start_export_task(_request(StartExportTaskInputDict)) + client.stop_activity_stream(resource_arn=_) + client.stop_activity_stream(**_request(StopActivityStreamInputDict)) + client.stop_activity_stream(_request(StopActivityStreamInput)) + client.stop_activity_stream(_request(StopActivityStreamInputDict)) + client.stop_db_cluster(db_cluster_identifier=_) + client.stop_db_cluster(**_request(StopDBClusterInputDict)) + client.stop_db_cluster(_request(StopDBClusterInput)) + client.stop_db_cluster(_request(StopDBClusterInputDict)) + client.stop_db_instance(db_instance_identifier=_) + client.stop_db_instance(**_request(StopDBInstanceInputDict)) + client.stop_db_instance(_request(StopDBInstanceInput)) + client.stop_db_instance(_request(StopDBInstanceInputDict)) + client.stop_db_instance_automated_backups_replication(source_db_instance_arn=_) + client.stop_db_instance_automated_backups_replication( + **_request(StopDBInstanceAutomatedBackupsReplicationInputDict) + ) + client.stop_db_instance_automated_backups_replication( + _request(StopDBInstanceAutomatedBackupsReplicationInput) + ) + client.stop_db_instance_automated_backups_replication( + _request(StopDBInstanceAutomatedBackupsReplicationInputDict) + ) + client.switchover_blue_green_deployment(blue_green_deployment_identifier=_) + client.switchover_blue_green_deployment( + **_request(SwitchoverBlueGreenDeploymentInputDict) + ) + client.switchover_blue_green_deployment( + _request(SwitchoverBlueGreenDeploymentInput) + ) + client.switchover_blue_green_deployment( + _request(SwitchoverBlueGreenDeploymentInputDict) + ) + client.switchover_global_cluster( + global_cluster_identifier=_, target_db_cluster_identifier=_ + ) + client.switchover_global_cluster(**_request(SwitchoverGlobalClusterInputDict)) + client.switchover_global_cluster(_request(SwitchoverGlobalClusterInput)) + client.switchover_global_cluster(_request(SwitchoverGlobalClusterInputDict)) + client.switchover_read_replica(db_instance_identifier=_) + client.switchover_read_replica(**_request(SwitchoverReadReplicaInputDict)) + client.switchover_read_replica(_request(SwitchoverReadReplicaInput)) + client.switchover_read_replica(_request(SwitchoverReadReplicaInputDict)) diff --git a/clients/aws-sdk-s3/pyproject.toml b/clients/aws-sdk-s3/pyproject.toml index 8bc05eda3..625c7ac9f 100644 --- a/clients/aws-sdk-s3/pyproject.toml +++ b/clients/aws-sdk-s3/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[checksums, eventstream, xml]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[checksums, eventstream, xml]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/_private/models_0.pyi b/clients/aws-sdk-s3/src/aws_sdk_s3/_private/models_0.pyi index 7882ef38d..f4f2aeaf1 100644 --- a/clients/aws-sdk-s3/src/aws_sdk_s3/_private/models_0.pyi +++ b/clients/aws-sdk-s3/src/aws_sdk_s3/_private/models_0.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.aio.interfaces import StreamingBlob from smithy_core.deserializers import ShapeDeserializer @@ -12,40 +13,58 @@ from smithy_core.types import UnknownEnumMixin from ..models import ( LifecycleRule, + LifecycleRuleDict, LocationInfo, + LocationInfoDict, LoggingEnabled, + LoggingEnabledDict, MetadataConfiguration, + MetadataConfigurationDict, MetadataConfigurationResult, MetadataTableConfiguration, + MetadataTableConfigurationDict, MetadataTableConfigurationResult, MetadataTableEncryptionConfiguration, + MetadataTableEncryptionConfigurationDict, Metrics, MetricsConfiguration, + MetricsDict, NotificationConfigurationFilter, + NotificationConfigurationFilterDict, ObjectIdentifier, + ObjectIdentifierDict, ObjectLockConfiguration, ObjectLockLegalHold, ObjectLockRetention, ObjectPart, Owner, + OwnerDict, OwnershipControls, ParquetInput, + ParquetInputDict, PolicyStatus, PublicAccessBlockConfiguration, QueueConfiguration, RecordExpiration, + RecordExpirationDict, RedirectAllRequestsTo, ReplicationConfiguration, ReplicationTime, + ReplicationTimeDict, RoutingRule, SSEKMS, + SSEKMSDict, SSES3, + SSES3Dict, ServerSideEncryptionConfiguration, ServiceError, SessionCredentials, StorageClassAnalysis, + StorageClassAnalysisDict, Tag, + TagDict, Tiering, + TieringDict, TopicConfiguration, _SerdeShape, ) @@ -65,6 +84,12 @@ class AbacStatus(_SerdeShape): status: str | None = ... """The ABAC status of the general purpose bucket.""" +class AbacStatusDict(TypedDict, total=False): + """Dictionary form of `AbacStatus`.""" + + status: str | None + """The ABAC status of the general purpose bucket.""" + @dataclass(kw_only=True) class AbortIncompleteMultipartUpload(_SerdeShape): """ @@ -82,6 +107,15 @@ class AbortIncompleteMultipartUpload(_SerdeShape): multipart upload. """ +class AbortIncompleteMultipartUploadDict(TypedDict, total=False): + """Dictionary form of `AbortIncompleteMultipartUpload`.""" + + days_after_initiation: int | None + """ + Specifies the number of days after which Amazon S3 aborts an incomplete + multipart upload. + """ + @dataclass(kw_only=True) class AbortMultipartUploadInput(_SerdeShape): """Dataclass for AbortMultipartUploadInput structure.""" @@ -166,6 +200,89 @@ class AbortMultipartUploadInput(_SerdeShape): This functionality is only supported for directory buckets. """ +class AbortMultipartUploadInputDict(TypedDict, total=False): + """Dictionary form of `AbortMultipartUploadInput`.""" + + bucket: Required[str] + """ + The bucket name to which the upload was taking place. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """Key of the object for which the multipart upload was initiated.""" + upload_id: Required[str] + """Upload ID that identifies the multipart upload.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + if_match_initiated_time: datetime | None + """ + If present, this header aborts an in progress multipart upload only if + it was initiated on the provided timestamp. If the initiated timestamp + of the multipart upload does not match the provided value, the operation + returns a `412 Precondition Failed` error. If the initiated timestamp + matches or if the multipart upload doesn't exist, the operation returns + a `204 Success (No Content)` response. + + Note: + This functionality is only supported for directory buckets. + """ + @dataclass(kw_only=True) class AbortMultipartUploadOutput(_SerdeShape): """Dataclass for AbortMultipartUploadOutput structure.""" @@ -201,6 +318,12 @@ class AccelerateConfiguration(_SerdeShape): status: str | None = ... """Specifies the transfer acceleration status of the bucket.""" +class AccelerateConfigurationDict(TypedDict, total=False): + """Dictionary form of `AccelerateConfiguration`.""" + + status: str | None + """Specifies the transfer acceleration status of the bucket.""" + @dataclass(kw_only=True) class AccessControlPolicy(_SerdeShape): """ @@ -213,6 +336,14 @@ class AccessControlPolicy(_SerdeShape): owner: Owner | None = ... """Container for the bucket owner's display name and ID.""" +class AccessControlPolicyDict(TypedDict, total=False): + """Dictionary form of `AccessControlPolicy`.""" + + grants: Sequence[Grant | GrantDict] | None + """A list of grants.""" + owner: Owner | OwnerDict | None + """Container for the bucket owner's display name and ID.""" + @dataclass(kw_only=True) class AccessControlTranslation(_SerdeShape): """A container for information about access control for replicas.""" @@ -225,6 +356,17 @@ class AccessControlTranslation(_SerdeShape): in the *Amazon S3 API Reference*. """ +class AccessControlTranslationDict(TypedDict, total=False): + """Dictionary form of `AccessControlTranslation`.""" + + owner: Required[str] + """ + Specifies the replica ownership. For default and valid values, see [PUT + bucket + replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) + in the *Amazon S3 API Reference*. + """ + @dataclass(kw_only=True) class AccessDenied(ServiceError, _SerdeShape): """ @@ -257,6 +399,17 @@ class AnalyticsAndOperator(_SerdeShape): tags: list[Tag] | None = ... """The list of tags to use when evaluating an AND predicate.""" +class AnalyticsAndOperatorDict(TypedDict, total=False): + """Dictionary form of `AnalyticsAndOperator`.""" + + prefix: str | None + """ + The prefix to use when evaluating an AND predicate: The prefix that an + object must have to be included in the metrics results. + """ + tags: Sequence[Tag | TagDict] | None + """The list of tags to use when evaluating an AND predicate.""" + @dataclass(kw_only=True) class AnalyticsConfiguration(_SerdeShape): """ @@ -279,6 +432,24 @@ class AnalyticsConfiguration(_SerdeShape): available to analyze the tradeoffs between different storage classes. """ +class AnalyticsConfigurationDict(TypedDict, total=False): + """Dictionary form of `AnalyticsConfiguration`.""" + + id: Required[str] + """The ID that identifies the analytics configuration.""" + filter: AnalyticsFilter | AnalyticsFilterDict | None + """ + The filter used to describe a set of objects for analyses. A filter must + have exactly one prefix, one tag, or one conjunction + (AnalyticsAndOperator). If no filter is provided, all objects will be + considered in any analysis. + """ + storage_class_analysis: Required[StorageClassAnalysis | StorageClassAnalysisDict] + """ + Contains data related to access patterns to be collected and made + available to analyze the tradeoffs between different storage classes. + """ + @dataclass(kw_only=True) class AnalyticsExportDestination(_SerdeShape): """Where to publish the analytics results.""" @@ -286,6 +457,14 @@ class AnalyticsExportDestination(_SerdeShape): s3_bucket_destination: AnalyticsS3BucketDestination """A destination signifying output to an S3 bucket.""" +class AnalyticsExportDestinationDict(TypedDict, total=False): + """Dictionary form of `AnalyticsExportDestination`.""" + + s3_bucket_destination: Required[ + AnalyticsS3BucketDestination | AnalyticsS3BucketDestinationDict + ] + """A destination signifying output to an S3 bucket.""" + @dataclass class AnalyticsFilterPrefix(_SerdeShape): """The prefix to use when evaluating an analytics filter.""" @@ -333,6 +512,26 @@ considered in any analysis. class _AnalyticsFilterDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> AnalyticsFilter: ... +class AnalyticsFilterPrefixDict(TypedDict): + prefix: str + """The prefix to use when evaluating an analytics filter.""" + +class AnalyticsFilterTagDict(TypedDict): + tag: Tag | TagDict + """The tag to use when evaluating an analytics filter.""" + +class AnalyticsFilterAndDict(TypedDict): + and_: AnalyticsAndOperator | AnalyticsAndOperatorDict + """ + A conjunction (logical AND) of predicates, which is used in evaluating + an analytics filter. The operator must have at least two predicates. + """ + +AnalyticsFilterDict = Union[ + AnalyticsFilterPrefixDict | AnalyticsFilterTagDict | AnalyticsFilterAndDict +] +"""Dictionary form of `AnalyticsFilter`, setting exactly one variant.""" + @dataclass(kw_only=True) class AnalyticsS3BucketDestination(_SerdeShape): """Contains information about where to publish the analytics results.""" @@ -356,6 +555,28 @@ class AnalyticsS3BucketDestination(_SerdeShape): results. """ +class AnalyticsS3BucketDestinationDict(TypedDict, total=False): + """Dictionary form of `AnalyticsS3BucketDestination`.""" + + format: Required[str] + """Specifies the file format used when exporting data to Amazon S3.""" + bucket_account_id: str | None + """ + The account ID that owns the destination S3 bucket. If no account ID is + provided, the owner is not validated before exporting data. + + Note: + Although this value is optional, we strongly recommend that you set it + to help prevent problems if the destination bucket ownership changes. + """ + bucket: Required[str] + """The Amazon Resource Name (ARN) of the bucket to which data is exported.""" + prefix: str | None + """ + The prefix to use when exporting data. The prefix is prepended to all + results. + """ + class AnalyticsS3ExportFileFormat(UnknownEnumMixin, StrEnum): CSV = "CSV" @@ -436,6 +657,26 @@ class AnnotationTableConfiguration(_SerdeShape): role: str | None = ... """The ARN of the IAM role used to manage the annotation table.""" +class AnnotationTableConfigurationDict(TypedDict, total=False): + """Dictionary form of `AnnotationTableConfiguration`.""" + + configuration_state: Required[str] + """ + The state of the annotation table. Valid values are `ENABLED` and + `DISABLED`. + """ + encryption_configuration: ( + MetadataTableEncryptionConfiguration + | MetadataTableEncryptionConfigurationDict + | None + ) + """ + The encryption settings for an S3 Metadata journal table or inventory + table configuration. + """ + role: str | None + """The ARN of the IAM role used to manage the annotation table.""" + @dataclass(kw_only=True) class AnnotationTableConfigurationResult(_SerdeShape): """ @@ -490,6 +731,23 @@ class AnnotationTableConfigurationUpdates(_SerdeShape): role: str | None = ... """The new IAM role ARN to apply.""" +class AnnotationTableConfigurationUpdatesDict(TypedDict, total=False): + """Dictionary form of `AnnotationTableConfigurationUpdates`.""" + + configuration_state: Required[str] + """The new configuration state to apply.""" + encryption_configuration: ( + MetadataTableEncryptionConfiguration + | MetadataTableEncryptionConfigurationDict + | None + ) + """ + The encryption settings for an S3 Metadata journal table or inventory + table configuration. + """ + role: str | None + """The new IAM role ARN to apply.""" + class ArchiveStatus(UnknownEnumMixin, StrEnum): ARCHIVE_ACCESS = "ARCHIVE_ACCESS" DEEP_ARCHIVE_ACCESS = "DEEP_ARCHIVE_ACCESS" @@ -518,11 +776,11 @@ class BlockedEncryptionTypes(_SerdeShape): Permissions - : You must have the `s3:PutEncryptionConfiguration` permission to block - or unblock an encryption type for a bucket. + : You must have the `s3:PutEncryptionConfiguration` permission to + block or unblock an encryption type for a bucket. - You must have the `s3:GetEncryptionConfiguration` permission to view a - bucket's encryption type. + You must have the `s3:GetEncryptionConfiguration` permission to view + a bucket's encryption type. """ encryption_type: list[str] | None = ... @@ -538,6 +796,22 @@ class BlockedEncryptionTypes(_SerdeShape): (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). """ +class BlockedEncryptionTypesDict(TypedDict, total=False): + """Dictionary form of `BlockedEncryptionTypes`.""" + + encryption_type: Sequence[str] | None + """ + The object encryption type that you want to block or unblock for an + Amazon S3 general purpose bucket. + + Note: + Currently, this parameter only supports blocking or unblocking server + side encryption with customer-provided keys (SSE-C). For more + information about SSE-C, see [Using server-side encryption with + customer-provided keys + (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). + """ + @dataclass(kw_only=True) class Bucket(_SerdeShape): """In terms of implementation, a Bucket is a resource.""" @@ -635,6 +909,17 @@ class BucketInfo(_SerdeShape): type: str | None = ... """The type of bucket.""" +class BucketInfoDict(TypedDict, total=False): + """Dictionary form of `BucketInfo`.""" + + data_redundancy: str | None + """ + The number of Zone (Availability Zone or Local Zone) that's used for + redundancy for the bucket. + """ + type: str | None + """The type of bucket.""" + @dataclass(kw_only=True) class BucketLifecycleConfiguration(_SerdeShape): """ @@ -647,6 +932,12 @@ class BucketLifecycleConfiguration(_SerdeShape): rules: list[LifecycleRule] """A lifecycle rule for individual objects in an Amazon S3 bucket.""" +class BucketLifecycleConfigurationDict(TypedDict, total=False): + """Dictionary form of `BucketLifecycleConfiguration`.""" + + rules: Required[Sequence[LifecycleRule | LifecycleRuleDict]] + """A lifecycle rule for individual objects in an Amazon S3 bucket.""" + class BucketLocationConstraint(UnknownEnumMixin, StrEnum): AF_SOUTH_1 = "af-south-1" AP_EAST_1 = "ap-east-1" @@ -699,6 +990,17 @@ class BucketLoggingStatus(_SerdeShape): in the *Amazon S3 API Reference*. """ +class BucketLoggingStatusDict(TypedDict, total=False): + """Dictionary form of `BucketLoggingStatus`.""" + + logging_enabled: LoggingEnabled | LoggingEnabledDict | None + """ + Describes where logs are stored and the prefix that Amazon S3 assigns to + all log object keys for a bucket. For more information, see [PUT Bucket + logging](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) + in the *Amazon S3 API Reference*. + """ + class BucketLogsPermission(UnknownEnumMixin, StrEnum): FULL_CONTROL = "FULL_CONTROL" READ = "READ" @@ -869,6 +1171,17 @@ class CompletedMultipartUpload(_SerdeShape): back an HTTP 400 response. """ +class CompletedMultipartUploadDict(TypedDict, total=False): + """Dictionary form of `CompletedMultipartUpload`.""" + + parts: Sequence[CompletedPart | CompletedPartDict] | None + """ + Array of CompletedPart data types. + + If you do not supply a valid `Part` with your request, the service sends + back an HTTP 400 response. + """ + @dataclass(kw_only=True) class CompletedPart(_SerdeShape): """Details of the parts that were uploaded.""" @@ -976,45 +1289,151 @@ class CompletedPart(_SerdeShape): must start at 1 and the part numbers must be consecutive. """ -@dataclass(kw_only=True) -class CompleteMultipartUploadInput(_SerdeShape): - """Dataclass for CompleteMultipartUploadInput structure.""" +class CompletedPartDict(TypedDict, total=False): + """Dictionary form of `CompletedPart`.""" - bucket: str | None = ... + e_tag: str | None + """Entity tag returned when the part was uploaded.""" + checksum_crc32: str | None """ - Name of the bucket to which the multipart upload was initiated. - - **Directory buckets** - When you use this operation with a directory - bucket, you must use virtual-hosted-style requests in the format - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. - Path-style requests are not supported. Directory bucket names must be - unique in the chosen Zone (Availability Zone or Local Zone). Bucket - names must follow the format - ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, - ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information - about bucket naming restrictions, see [Directory bucket naming - rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + The Base64 encoded, 32-bit `CRC32` checksum of the part. This checksum + is present if the multipart upload request was created with the `CRC32` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. - - **Access points** - When you use this action with an access point for - general purpose buckets, you must provide the alias of the access point - in place of the bucket name or specify the access point ARN. When you - use this action with an access point for directory buckets, you must - provide the access point name in place of the bucket name. When using - the access point ARN, you must direct requests to the access point - hostname. The access point hostname takes the form - *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. - When using this action with an access point through the Amazon Web - Services SDKs, you provide the access point ARN in place of the bucket - name. For more information about access point ARNs, see [Using access - points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + """ + checksum_crc32_c: str | None + """ + The Base64 encoded, 32-bit `CRC32C` checksum of the part. This checksum + is present if the multipart upload request was created with the `CRC32C` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. - - Note: - Object Lambda access points are not supported by directory buckets. - - **S3 on Outposts** - When you use this action with S3 on Outposts, you - must direct requests to the S3 on Outposts hostname. The S3 on Outposts + """ + checksum_crc64_nvme: str | None + """ + The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. This + checksum is present if the multipart upload request was created with the + `CRC64NVME` checksum algorithm. For more information, see [Checking + object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha1: str | None + """ + The Base64 encoded, 160-bit `SHA1` checksum of the part. This checksum + is present if the multipart upload request was created with the `SHA1` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha256: str | None + """ + The Base64 encoded, 256-bit `SHA256` checksum of the part. This checksum + is present if the multipart upload request was created with the `SHA256` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha512: str | None + """ + The Base64 encoded, 512-bit `SHA512` digest of the part. This checksum + is present if the multipart upload request was created with the `SHA512` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_md5: str | None + """ + The Base64 encoded, 128-bit `MD5` digest of the part. This checksum is + present if the multipart upload request was created with the `MD5` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash64: str | None + """ + The Base64 encoded, 64-bit `XXHASH64` checksum of the part. This + checksum is present if the multipart upload request was created with the + `XXHASH64` checksum algorithm. For more information, see [Checking + object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash3: str | None + """ + The Base64 encoded, 64-bit `XXHASH3` checksum of the part. This checksum + is present if the multipart upload request was created with the + `XXHASH3` checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash128: str | None + """ + The Base64 encoded, 128-bit `XXHASH128` checksum of the part. This + checksum is present if the multipart upload request was created with the + `XXHASH128` checksum algorithm. For more information, see [Checking + object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + part_number: int | None + """ + Part number that identifies the part. This is a positive integer between + 1 and 10,000. + + Note: + - **General purpose buckets** - In `CompleteMultipartUpload`, when a + additional checksum (including `x-amz-checksum-crc32`, + `x-amz-checksum-crc32c`, `x-amz-checksum-sha1`, or + `x-amz-checksum-sha256`) is applied to each part, the `PartNumber` + must start at 1 and the part numbers must be consecutive. Otherwise, + Amazon S3 generates an HTTP `400 Bad Request` status code and an + `InvalidPartOrder` error code. + + - **Directory buckets** - In `CompleteMultipartUpload`, the `PartNumber` + must start at 1 and the part numbers must be consecutive. + """ + +@dataclass(kw_only=True) +class CompleteMultipartUploadInput(_SerdeShape): + """Dataclass for CompleteMultipartUploadInput structure.""" + + bucket: str | None = ... + """ + Name of the bucket to which the multipart upload was initiated. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. When you use this action with S3 on Outposts, the destination bucket @@ -1227,68 +1646,77 @@ class CompleteMultipartUploadInput(_SerdeShape): This functionality is not supported for directory buckets. """ -@dataclass(kw_only=True) -class CompleteMultipartUploadOutput(_SerdeShape): - """Dataclass for CompleteMultipartUploadOutput structure.""" +class CompleteMultipartUploadInputDict(TypedDict, total=False): + """Dictionary form of `CompleteMultipartUploadInput`.""" - location: str | None = ... - """The URI that identifies the newly created object.""" - bucket: str | None = ... + bucket: Required[str] """ - The name of the bucket that contains the newly created object. Does not - return the access point ARN or access point alias if used. + Name of the bucket to which the multipart upload was initiated. - Note: - Access points are not supported by directory buckets. - """ - key: str | None = ... - """The object key of the newly created object.""" - expiration: str | None = ... - """ - If the object expiration is configured, this will contain the expiration - date (`expiry-date`) and rule ID (`rule-id`). The value of `rule-id` is - URL-encoded. + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. Note: - This functionality is not supported for directory buckets. - """ - e_tag: str | None = ... - """ - Entity tag that identifies the newly created object's data. Objects - with different object data will have different entity tags. The entity - tag is an opaque string. The entity tag may or may not be an MD5 digest - of the object data. If the entity tag is not an MD5 digest of the object - data, it will contain one or more nonhexadecimal characters and/or will - consist of less than 32 or more than 32 hexadecimal digits. For more - information about how the entity tag is calculated, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the *Amazon S3 User Guide*. """ - checksum_crc32: str | None = ... + key: Required[str] + """Object key for which the multipart upload was initiated.""" + multipart_upload: CompletedMultipartUpload | CompletedMultipartUploadDict | None + """The container for the multipart upload request information.""" + upload_id: Required[str] + """ID for the initiated multipart upload.""" + checksum_crc32: str | None """ - The Base64 encoded, 32-bit `CRC32 checksum` of the object. This checksum - is only present if the checksum was uploaded with the object. When you - use an API operation on an object that was uploaded using multipart - uploads, this value may not be a direct checksum value of the full - object. Instead, it's a calculation based on the checksum values of - each individual part. For more information about how checksums are - calculated with multipart uploads, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_crc32_c: str | None = ... + checksum_crc32_c: str | None """ - The Base64 encoded, 32-bit `CRC32C` checksum of the object. This - checksum is only present if the checksum was uploaded with the object. - When you use an API operation on an object that was uploaded using - multipart uploads, this value may not be a direct checksum value of the - full object. Instead, it's a calculation based on the checksum values - of each individual part. For more information about how checksums are - calculated with multipart uploads, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_crc64_nvme: str | None = ... + checksum_crc64_nvme: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header @@ -1297,40 +1725,281 @@ class CompleteMultipartUploadOutput(_SerdeShape): information, see [Checking object integrity in the Amazon S3 User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ - checksum_sha1: str | None = ... + checksum_sha1: str | None """ - The Base64 encoded, 160-bit `SHA1` digest of the object. This checksum - is only present if the checksum was uploaded with the object. When you - use the API operation on an object that was uploaded using multipart - uploads, this value may not be a direct checksum value of the full - object. Instead, it's a calculation based on the checksum values of - each individual part. For more information about how checksums are - calculated with multipart uploads, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_sha256: str | None = ... + checksum_sha256: str | None """ - The Base64 encoded, 256-bit `SHA256` digest of the object. This checksum - is only present if the checksum was uploaded with the object. When you - use an API operation on an object that was uploaded using multipart - uploads, this value may not be a direct checksum value of the full - object. Instead, it's a calculation based on the checksum values of - each individual part. For more information about how checksums are - calculated with multipart uploads, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_sha512: str | None = ... + checksum_sha512: str | None """ - The Base64 encoded, 512-bit `SHA512` digest of the object. For more - information, see [Checking object integrity in the Amazon S3 User + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 512-bit `SHA512` digest of the object. For + more information, see [Checking object integrity in the Amazon S3 User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ - checksum_md5: str | None = ... + checksum_md5: str | None """ - The Base64 encoded, 128-bit `MD5` digest of the object. For more - information, see [Checking object integrity in the Amazon S3 User + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `MD5` digest of the object. For + more information, see [Checking object integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash64: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH64` checksum of the object. + For more information, see [Checking object integrity in the Amazon S3 + User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash3: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH3` checksum of the object. + For more information, see [Checking object integrity in the Amazon S3 + User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash128: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `XXHASH128` checksum of the + object. For more information, see [Checking object integrity in the + Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_type: str | None + """ + This header specifies the checksum type of the object, which determines + how part-level checksums are combined to create an object-level checksum + for multipart objects. You can use this header as a data integrity check + to verify that the checksum type that is received is the same checksum + that was specified. If the checksum type doesn't match the checksum type + that was specified for the object during the `CreateMultipartUpload` + request, it'll result in a `BadDigest` error. For more information, see + Checking object integrity in the Amazon S3 User Guide. + """ + mpu_object_size: int | None + """ + The expected total object size of the multipart upload request. If + there's a mismatch between the specified object size value and the + actual object size value, it results in an `HTTP 400 InvalidRequest` + error. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + if_match: str | None + """ + Uploads the object only if the ETag (entity tag) value provided during + the WRITE operation matches the ETag of the object in S3. If the ETag + values do not match, the operation returns a `412 Precondition Failed` + error. + + If a conflicting operation occurs during the upload S3 returns a + `409 ConditionalRequestConflict` response. On a 409 failure you should + fetch the object's ETag, re-initiate the multipart upload with + `CreateMultipartUpload`, and re-upload each part. + + Expects the ETag value as a string. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232), or [Conditional + requests](https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html) + in the *Amazon S3 User Guide*. + """ + if_none_match: str | None + """ + Uploads the object only if the object key name does not already exist in + the bucket specified. Otherwise, Amazon S3 returns a + `412 Precondition Failed` error. + + If a conflicting operation occurs during the upload S3 returns a + `409 ConditionalRequestConflict` response. On a 409 failure you should + re-initiate the multipart upload with `CreateMultipartUpload` and + re-upload each part. + + Expects the '*' (asterisk) character. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232), or [Conditional + requests](https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html) + in the *Amazon S3 User Guide*. + """ + sse_customer_algorithm: str | None + """ + The server-side encryption (SSE) algorithm used to encrypt the object. + This parameter is required only when the object was created using a + checksum algorithm or if your bucket policy requires the use of SSE-C. + For more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html#ssec-require-condition-key) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key: str | None + """ + The server-side encryption (SSE) customer managed key. This parameter is + needed only when the object was created using a checksum algorithm. For + more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None + """ + The MD5 server-side encryption (SSE) customer managed key. This + parameter is needed only when the object was created using a checksum + algorithm. For more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + +@dataclass(kw_only=True) +class CompleteMultipartUploadOutput(_SerdeShape): + """Dataclass for CompleteMultipartUploadOutput structure.""" + + location: str | None = ... + """The URI that identifies the newly created object.""" + bucket: str | None = ... + """ + The name of the bucket that contains the newly created object. Does not + return the access point ARN or access point alias if used. + + Note: + Access points are not supported by directory buckets. + """ + key: str | None = ... + """The object key of the newly created object.""" + expiration: str | None = ... + """ + If the object expiration is configured, this will contain the expiration + date (`expiry-date`) and rule ID (`rule-id`). The value of `rule-id` is + URL-encoded. + + Note: + This functionality is not supported for directory buckets. + """ + e_tag: str | None = ... + """ + Entity tag that identifies the newly created object's data. Objects + with different object data will have different entity tags. The entity + tag is an opaque string. The entity tag may or may not be an MD5 digest + of the object data. If the entity tag is not an MD5 digest of the object + data, it will contain one or more nonhexadecimal characters and/or will + consist of less than 32 or more than 32 hexadecimal digits. For more + information about how the entity tag is calculated, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc32: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32 checksum` of the object. This checksum + is only present if the checksum was uploaded with the object. When you + use an API operation on an object that was uploaded using multipart + uploads, this value may not be a direct checksum value of the full + object. Instead, it's a calculation based on the checksum values of + each individual part. For more information about how checksums are + calculated with multipart uploads, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the *Amazon S3 User Guide*. + """ + checksum_crc32_c: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32C` checksum of the object. This + checksum is only present if the checksum was uploaded with the object. + When you use an API operation on an object that was uploaded using + multipart uploads, this value may not be a direct checksum value of the + full object. Instead, it's a calculation based on the checksum values + of each individual part. For more information about how checksums are + calculated with multipart uploads, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the *Amazon S3 User Guide*. + """ + checksum_crc64_nvme: str | None = ... + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the object. + The `CRC64NVME` checksum is always a full object checksum. For more + information, see [Checking object integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_sha1: str | None = ... + """ + The Base64 encoded, 160-bit `SHA1` digest of the object. This checksum + is only present if the checksum was uploaded with the object. When you + use the API operation on an object that was uploaded using multipart + uploads, this value may not be a direct checksum value of the full + object. Instead, it's a calculation based on the checksum values of + each individual part. For more information about how checksums are + calculated with multipart uploads, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the *Amazon S3 User Guide*. + """ + checksum_sha256: str | None = ... + """ + The Base64 encoded, 256-bit `SHA256` digest of the object. This checksum + is only present if the checksum was uploaded with the object. When you + use an API operation on an object that was uploaded using multipart + uploads, this value may not be a direct checksum value of the full + object. Instead, it's a calculation based on the checksum values of + each individual part. For more information about how checksums are + calculated with multipart uploads, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the *Amazon S3 User Guide*. + """ + checksum_sha512: str | None = ... + """ + The Base64 encoded, 512-bit `SHA512` digest of the object. For more + information, see [Checking object integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_md5: str | None = ... + """ + The Base64 encoded, 128-bit `MD5` digest of the object. For more + information, see [Checking object integrity in the Amazon S3 User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ checksum_xxhash64: str | None = ... @@ -1448,6 +2117,35 @@ class Condition(_SerdeShape): constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). """ +class ConditionDict(TypedDict, total=False): + """Dictionary form of `Condition`.""" + + http_error_code_returned_equals: str | None + """ + The HTTP error code when the redirect is applied. In the event of an + error, if the error code equals this value, then the specified redirect + is applied. Required when parent element `Condition` is specified and + sibling `KeyPrefixEquals` is not specified. If both are specified, then + both must be true for the redirect to be applied. + """ + key_prefix_equals: str | None + """ + The object key name prefix when the redirect is applied. For example, to + redirect requests for `ExamplePage.html`, the key prefix will be + `ExamplePage.html`. To redirect request for all pages with the prefix + `docs/`, the key prefix will be `/docs`, which identifies all objects in + the `docs/` folder. Required when the parent element `Condition` is + specified and sibling `HttpErrorCodeReturnedEquals` is not specified. If + both conditions are specified, both must be true for the redirect to be + applied. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + @dataclass(kw_only=True) class ContinuationEvent(_SerdeShape): """""" @@ -2290,647 +2988,2373 @@ class CopyObjectInput(_SerdeShape): denied). """ -@dataclass(kw_only=True) -class CopyObjectOutput(_SerdeShape): - """Dataclass for CopyObjectOutput structure.""" +class CopyObjectInputDict(TypedDict, total=False): + """Dictionary form of `CopyObjectInput`.""" - copy_object_result: CopyObjectResult | None = ... - """Container for all response elements.""" - expiration: str | None = ... + acl: str | None """ - If the object expiration is configured, the response includes this - header. + The canned access control list (ACL) to apply to the object. + + When you copy an object, the ACL metadata is not preserved and is set to + `private` by default. Only the owner has full access control. To + override the default ACL setting, specify a new ACL when you generate a + copy request. For more information, see [Using + ACLs](https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html). + + If the destination bucket that you're copying objects to uses the + bucket owner enforced setting for S3 Object Ownership, ACLs are disabled + and no longer affect permissions. Buckets that use this setting only + accept `PUT` requests that don't specify an ACL or `PUT` requests that + specify bucket owner full control ACLs, such as the + `bucket-owner-full-control` canned ACL or an equivalent form of this ACL + expressed in the XML format. For more information, see [Controlling + ownership of objects and disabling + ACLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + in the *Amazon S3 User Guide*. Note: - Object expiration information is not returned in directory buckets and - this header returns the value \"`NotImplemented`\" in all responses for - directory buckets. + - If your destination bucket uses the bucket owner enforced setting for + Object Ownership, all objects written to the bucket by any account + will be owned by the bucket owner. + + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. """ - copy_source_version_id: str | None = ... + bucket: Required[str] """ - Version ID of the source object that was copied. + The name of the destination bucket. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. Note: - This functionality is not supported when the source object is in a - directory bucket. - """ - version_id: str | None = ... - """ - Version ID of the newly created copy. + Copying objects across different Amazon Web Services Regions isn't + supported when the source or destination bucket is in Amazon Web + Services Local Zones. The source and destination buckets must have the + same parent Amazon Web Services Region. Otherwise, you get an HTTP + `400 Bad Request` error with the error code `InvalidRequest`. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. Note: - This functionality is not supported for directory buckets. + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must use the Outpost bucket access point ARN or the access point alias + for the destination bucket. You can only copy objects within the same + Outpost bucket. It's not supported to copy objects across different + Amazon Web Services Outposts, between buckets on the same Outposts, or + between Outposts buckets and any other bucket types. For more + information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *S3 on Outposts guide*. When you use this action with S3 on + Outposts through the REST API, you must direct requests to the S3 on + Outposts hostname, in the format + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + The hostname isn't required when you use the Amazon Web Services CLI or + SDKs. """ - server_side_encryption: str | None = ... + cache_control: str | None + """Specifies the caching behavior along the request/reply chain.""" + checksum_algorithm: str | None """ - The server-side encryption algorithm used when you store this object in - Amazon S3 or Amazon FSx. + Indicates the algorithm that you want Amazon S3 to use to create the + checksum for the object. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + When you copy an object, if the source object has a checksum, that + checksum value will be copied to the new object by default. If the + `CopyObject` request does not include this `x-amz-checksum-algorithm` + header, the checksum algorithm will be copied from the source object to + the destination object (if it's present on the source object). You can + optionally specify a different checksum algorithm to use with the + `x-amz-checksum-algorithm` header. Unrecognized or unsupported values + will respond with the HTTP status code `400 Bad Request`. Note: - When accessing data stored in Amazon FSx file systems using S3 access - points, the only valid server side encryption option is `aws:fsx`. + For directory buckets, when you use Amazon Web Services SDKs, `CRC32` is + the default checksum algorithm that's used for performance. """ - sse_customer_algorithm: str | None = ... + content_disposition: str | None """ - If server-side encryption with a customer-provided encryption key was - requested, the response will include this header to confirm the - encryption algorithm that's used. - - Note: - This functionality is not supported for directory buckets. + Specifies presentational information for the object. Indicates whether + an object should be displayed in a web browser or downloaded as a file. + It allows specifying the desired filename for the downloaded file. """ - sse_customer_key_md5: str | None = ... + content_encoding: str | None """ - If server-side encryption with a customer-provided encryption key was - requested, the response will include this header to provide the - round-trip message integrity verification of the customer-provided - encryption key. + Specifies what content encodings have been applied to the object and + thus what decoding mechanisms must be applied to obtain the media-type + referenced by the Content-Type header field. Note: - This functionality is not supported for directory buckets. + For directory buckets, only the `aws-chunked` value is supported in this + header field. """ - ssekms_key_id: str | None = ... + content_language: str | None + """The language the content is in.""" + content_type: str | None + """A standard MIME type that describes the format of the object data.""" + copy_source: Required[str] """ - If present, indicates the ID of the KMS key that was used for object - encryption. + Specifies the source object for the copy operation. The source object + can be up to 5 GB. If the source object is an object that was uploaded + by using a multipart upload, the object copy will be a single part + object after the source object is copied to the destination bucket. + + You specify the value of the copy source in one of two formats, + depending on whether you want to access the source object through an + [access + point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html): + + - For objects not accessed through an access point, specify the name of + the source bucket and the key of the source object, separated by a + slash (/). For example, to copy the object `reports/january.pdf` from + the general purpose bucket `awsexamplebucket`, use + `awsexamplebucket/reports/january.pdf`. The value must be URL-encoded. + To copy the object `reports/january.pdf` from the directory bucket + `awsexamplebucket--use1-az5--x-s3`, use + `awsexamplebucket--use1-az5--x-s3/reports/january.pdf`. The value must + be URL-encoded. + + - For objects accessed through access points, specify the Amazon + Resource Name (ARN) of the object as accessed through the access + point, in the format + `arn:aws:s3:```{=html}`:```{=html}`:accesspoint/```{=html}`/object/```{=html}. + For example, to copy the object `reports/january.pdf` through access + point `my-access-point` owned by account `123456789012` in Region + `us-west-2`, use the URL encoding of + `arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf`. + The value must be URL encoded. + + Note: + - Amazon S3 supports copy operations using Access points only when the + source and destination buckets are in the same Amazon Web Services + Region. + + - Access points are not supported by directory buckets. + + Alternatively, for objects accessed through Amazon S3 on Outposts, + specify the ARN of the object as accessed in the format + `arn:aws:s3-outposts:```{=html}`:```{=html}`:outpost/```{=html}`/object/```{=html}. + For example, to copy the object `reports/january.pdf` through outpost + `my-outpost` owned by account `123456789012` in Region `us-west-2`, + use the URL encoding of + `arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf`. + The value must be URL-encoded. + + If your source bucket versioning is enabled, the `x-amz-copy-source` + header by default identifies the current version of an object to copy. + If the current version is a delete marker, Amazon S3 behaves as if the + object was deleted. To copy a different version, use the `versionId` + query parameter. Specifically, append `?versionId=```{=html} + to the value (for example, + `awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893`). + If you don't specify a version ID, Amazon S3 copies the latest version + of the source object. + + If you enable versioning on the destination bucket, Amazon S3 generates + a unique version ID for the copied object. This version ID is different + from the version ID of the source object. Amazon S3 returns the version + ID of the copied object in the `x-amz-version-id` response header in the + response. + + If you do not enable versioning or suspend it on the destination bucket, + the version ID that Amazon S3 generates in the `x-amz-version-id` + response header is always null. + + Note: + **Directory buckets** - S3 Versioning isn't enabled and supported for + directory buckets. """ - ssekms_encryption_context: str | None = ... + copy_source_if_match: str | None """ - If present, indicates the Amazon Web Services KMS Encryption Context to - use for object encryption. The value of this header is a Base64 encoded - UTF-8 string holding JSON with the encryption context key-value pairs. + Copies the object if its entity tag (ETag) matches the specified tag. + + If both the `x-amz-copy-source-if-match` and + `x-amz-copy-source-if-unmodified-since` headers are present in the + request and evaluate as follows, Amazon S3 returns `200 OK` and copies + the data: + + - `x-amz-copy-source-if-match` condition evaluates to true + + - `x-amz-copy-source-if-unmodified-since` condition evaluates to false """ - bucket_key_enabled: bool | None = ... + copy_source_if_modified_since: datetime | None """ - Indicates whether the copied object uses an S3 Bucket Key for - server-side encryption with Key Management Service (KMS) keys (SSE-KMS). + Copies the object if it has been modified since the specified time. + + If both the `x-amz-copy-source-if-none-match` and + `x-amz-copy-source-if-modified-since` headers are present in the request + and evaluate as follows, Amazon S3 returns the `412 Precondition Failed` + response code: + + - `x-amz-copy-source-if-none-match` condition evaluates to false + + - `x-amz-copy-source-if-modified-since` condition evaluates to true """ - request_charged: str | None = ... + copy_source_if_none_match: str | None """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. + Copies the object if its entity tag (ETag) is different than the + specified ETag. - Note: - This functionality is not supported for directory buckets. + If both the `x-amz-copy-source-if-none-match` and + `x-amz-copy-source-if-modified-since` headers are present in the request + and evaluate as follows, Amazon S3 returns the `412 Precondition Failed` + response code: + + - `x-amz-copy-source-if-none-match` condition evaluates to false + + - `x-amz-copy-source-if-modified-since` condition evaluates to true """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + copy_source_if_unmodified_since: datetime | None """ + Copies the object if it hasn't been modified since the specified time. -@dataclass(kw_only=True) -class CopyObjectResult(_SerdeShape): - """Container for all response elements.""" + If both the `x-amz-copy-source-if-match` and + `x-amz-copy-source-if-unmodified-since` headers are present in the + request and evaluate as follows, Amazon S3 returns `200 OK` and copies + the data: - e_tag: str | None = ... - """ - Returns the ETag of the new object. The ETag reflects only changes to - the contents of an object, not its metadata. - """ - last_modified: datetime | None = ... - """Creation date of the object.""" - checksum_type: str | None = ... - """ - The checksum type that is used to calculate the object's checksum value. - For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + - `x-amz-copy-source-if-match` condition evaluates to true + + - `x-amz-copy-source-if-unmodified-since` condition evaluates to false """ - checksum_crc32: str | None = ... + expires: str | None + """The date and time at which the object is no longer cacheable.""" + grant_full_control: str | None """ - The Base64 encoded, 32-bit `CRC32` checksum of the object. This checksum - is only present if the checksum was uploaded with the object. For more - information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the + object. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. """ - checksum_crc32_c: str | None = ... + grant_read: str | None """ - The Base64 encoded, 32-bit `CRC32C` checksum of the object. This - checksum is only present if the checksum was uploaded with the object. - For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Allows grantee to read the object data and its metadata. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. """ - checksum_crc64_nvme: str | None = ... + grant_read_acp: str | None """ - The Base64 encoded, 64-bit `CRC64NVME` checksum of the object. This - checksum is present if the object being copied was uploaded with the - `CRC64NVME` checksum algorithm, or if the object was uploaded without a - checksum (and Amazon S3 added the default checksum, `CRC64NVME`, to the - uploaded object). For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Allows grantee to read the object ACL. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. """ - checksum_sha1: str | None = ... + grant_write_acp: str | None """ - The Base64 encoded, 160-bit `SHA1` digest of the object. This checksum - is only present if the checksum was uploaded with the object. For more - information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Allows grantee to write the ACL for the applicable object. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. """ - checksum_sha256: str | None = ... + if_match: str | None """ - The Base64 encoded, 256-bit `SHA256` digest of the object. This checksum - is only present if the checksum was uploaded with the object. For more - information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Copies the object if the entity tag (ETag) of the destination object + matches the specified tag. If the ETag values do not match, the + operation returns a `412 Precondition Failed` error. If a concurrent + operation occurs during the upload S3 returns a + `409 ConditionalRequestConflict` response. On a 409 failure you should + fetch the object's ETag and retry the upload. + + Expects the ETag value as a string. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). """ - checksum_sha512: str | None = ... + if_none_match: str | None """ - The Base64 encoded, 512-bit `SHA512` digest of the object. This checksum - is only present if the object was uploaded with the `SHA512` checksum - algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Copies the object only if the object key name at the destination does + not already exist in the bucket specified. Otherwise, Amazon S3 returns + a `412 Precondition Failed` error. If a concurrent operation occurs + during the upload S3 returns a `409 ConditionalRequestConflict` + response. On a 409 failure you should retry the upload. + + Expects the '*' (asterisk) character. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). """ - checksum_md5: str | None = ... + key: Required[str] + """The key of the destination object.""" + metadata: Mapping[str, str] | None + """A map of metadata to store with the object in S3.""" + metadata_directive: str | None """ - The Base64 encoded, 128-bit `MD5` digest of the object. This checksum is - only present if the object was uploaded with the `MD5` checksum - algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + Specifies whether the metadata is copied from the source object or + replaced with metadata that's provided in the request. When copying an + object, you can preserve all metadata (the default) or specify new + metadata. If this header isn't specified, `COPY` is the default + behavior. + + **General purpose bucket** - For general purpose buckets, when you grant + permissions, you can use the `s3:x-amz-metadata-directive` condition key + to enforce certain metadata behavior when objects are uploaded. For more + information, see [Amazon S3 condition key + examples](https://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html) in the *Amazon S3 User Guide*. + + Note: + `x-amz-website-redirect-location` is unique to each object and is not + copied when using the `x-amz-metadata-directive` header. To copy the + value, you must specify `x-amz-website-redirect-location` in the request + header. """ - checksum_xxhash64: str | None = ... + tagging_directive: str | None """ - The Base64 encoded, 64-bit `XXHASH64` checksum of the object. This - checksum is only present if the object was uploaded with the `XXHASH64` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Specifies whether the object tag-set is copied from the source object or + replaced with the tag-set that's provided in the request. + + The default value is `COPY`. + + Note: + **Directory buckets** - For directory buckets in a `CopyObject` + operation, only the empty tag-set is supported. Any requests that + attempt to write non-empty tags into directory buckets will receive a + `501 Not Implemented` status code. When the destination bucket is a + directory bucket, you will receive a `501 Not Implemented` response in + any of the following situations: + + - When you attempt to `COPY` the tag-set from an S3 source object that + has non-empty tags. + + - When you attempt to `REPLACE` the tag-set of a source object and set a + non-empty value to `x-amz-tagging`. + + - When you don't set the `x-amz-tagging-directive` header and the + source object has non-empty tags. This is because the default value of + `x-amz-tagging-directive` is `COPY`. + + Because only the empty tag-set is supported for directory buckets in a + `CopyObject` operation, the following situations are allowed: + + - When you attempt to `COPY` the tag-set from a directory bucket source + object that has no tags to a general purpose bucket. It copies an + empty tag-set to the destination object. + + - When you attempt to `REPLACE` the tag-set of a directory bucket source + object and set the `x-amz-tagging` value of the directory bucket + destination object to empty. + + - When you attempt to `REPLACE` the tag-set of a general purpose bucket + source object that has non-empty tags and set the `x-amz-tagging` + value of the directory bucket destination object to empty. + + - When you attempt to `REPLACE` the tag-set of a directory bucket source + object and don't set the `x-amz-tagging` value of the directory + bucket destination object. This is because the default value of + `x-amz-tagging` is the empty value. """ - checksum_xxhash3: str | None = ... + annotation_directive: str | None """ - The Base64 encoded, 64-bit `XXHASH3` checksum of the object. This - checksum is only present if the object was uploaded with the `XXHASH3` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Specifies whether you want to copy annotations from the source object or + exclude them. If this header isn't specified, `COPY` is the default + behavior. + + Valid Values: `COPY | EXCLUDE` + + You can specify this directive as either an HTTP header + (`x-amz-object-annotation-directive`) or as a query string parameter. + Use the query string form when generating presigned URLs that need to + control annotation copy behavior. + + When set to `COPY`, you must have `s3:GetObjectAnnotation` permission on + the source object and `s3:PutObjectAnnotation` permission on the + destination. Each annotation copied is billed as a separate PUT request. + If annotations on the source are modified during the copy, Amazon S3 + returns a retryable error. + + Note: + For directory buckets, annotations are not supported. Use `EXCLUDE` to + copy objects to directory buckets without errors. If you specify `COPY` + for a directory bucket, the request returns HTTP 501 (Not Implemented). + Note: + When you copy objects using multipart upload (for example, when the + Amazon Web Services CLI or Amazon Web Services SDKs use Transfer Manager + for objects larger than approximately 8 MB), annotations are not copied + by default. To include annotations, specify `--copy-props default` in + the Amazon Web Services CLI or the equivalent SDK configuration. With + this opt-in, the SDK reads source annotations, completes the multipart + upload, and then writes each annotation to the destination. Between the + upload completion and the last annotation write, the destination object + exists without all its annotations. """ - checksum_xxhash128: str | None = ... + server_side_encryption: str | None """ - The Base64 encoded, 128-bit `XXHASH128` checksum of the object. This - checksum is only present if the object was uploaded with the `XXHASH128` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + The server-side encryption algorithm used when storing this object in + Amazon S3. Unrecognized or unsupported values won't write a destination + object and will receive a `400 Bad Request` response. + + Amazon S3 automatically encrypts all new objects that are copied to an + S3 bucket. When copying an object, if you don't specify encryption + information in your copy request, the encryption setting of the target + object is set to the default encryption configuration of the destination + bucket. By default, all buckets have a base level of encryption + configuration that uses server-side encryption with Amazon S3 managed + keys (SSE-S3). If the destination bucket has a different default + encryption configuration, Amazon S3 uses the corresponding encryption + key to encrypt the target object copy. + + With server-side encryption, Amazon S3 encrypts your data as it writes + your data to disks in its data centers and decrypts the data when you + access it. For more information about server-side encryption, see [Using + Server-Side + Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) in the *Amazon S3 User Guide*. - """ -@dataclass(kw_only=True) -class CopyPartResult(_SerdeShape): - """Container for all response elements.""" + **General purpose buckets** - e_tag: str | None = ... - """Entity tag of the object.""" - last_modified: datetime | None = ... - """Date and time at which the object was uploaded.""" - checksum_crc32: str | None = ... + - For general purpose buckets, there are the following supported options + for server-side encryption: server-side encryption with Key Management + Service (KMS) keys (SSE-KMS), dual-layer server-side encryption with + Amazon Web Services KMS keys (DSSE-KMS), and server-side encryption + with customer-provided encryption keys (SSE-C). Amazon S3 uses the + corresponding KMS key, or a customer-provided key to encrypt the + target object copy. + + - When you perform a `CopyObject` operation, if you want to use a + different type of encryption setting for the target object, you can + specify appropriate encryption-related headers to encrypt the target + object with an Amazon S3 managed key, a KMS key, or a + customer-provided key. If the encryption setting in your request is + different from the default encryption configuration of the destination + bucket, the encryption setting in your request takes precedence. + + **Directory buckets** + + - For directory buckets, there are only two supported options for + server-side encryption: server-side encryption with Amazon S3 managed + keys (SSE-S3) (`AES256`) and server-side encryption with KMS keys + (SSE-KMS) (`aws:kms`). We recommend that the bucket's default + encryption uses the desired encryption configuration and you don't + override the bucket default encryption in your `CreateSession` + requests or `PUT` object requests. Then, new objects are automatically + encrypted with the desired encryption settings. For more information, + see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. For more information about the + encryption overriding behaviors in directory buckets, see [Specifying + server-side encryption with KMS for new object + uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). + + - To encrypt new object copies to a directory bucket with SSE-KMS, we + recommend you specify SSE-KMS as the directory bucket's default + encryption configuration with a KMS key (specifically, a [customer + managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk)). + The [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + (`aws/s3`) isn't supported. Your SSE-KMS configuration can only + support 1 [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + per directory bucket for the lifetime of the bucket. After you specify + a customer managed key for SSE-KMS, you can't override the customer + managed key for the bucket's SSE-KMS configuration. Then, when you + perform a `CopyObject` operation and want to specify server-side + encryption settings for new object copies with SSE-KMS in the + encryption-related request headers, you must ensure the encryption key + is the same customer managed key that you specified for the directory + bucket's default encryption configuration. + + - **S3 access points for Amazon FSx** - When accessing data stored in + Amazon FSx file systems using S3 access points, the only valid server + side encryption option is `aws:fsx`. All Amazon FSx file systems have + encryption configured by default and are encrypted at rest. Data is + automatically encrypted before being written to the file system, and + automatically decrypted as it is read. These processes are handled + transparently by Amazon FSx. """ - The Base64 encoded, 32-bit `CRC32` checksum of the part. This checksum - is present if the multipart upload request was created with the `CRC32` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + storage_class: str | None + """ + If the `x-amz-storage-class` header is not used, the copied object will + be stored in the `STANDARD` Storage Class by default. The `STANDARD` + storage class provides high durability and high availability. Depending + on performance needs, you can specify a different Storage Class. + + Note: + - **Directory buckets** - Directory buckets only support + `EXPRESS_ONEZONE` (the S3 Express One Zone storage class) in + Availability Zones and `ONEZONE_IA` (the S3 One Zone-Infrequent Access + storage class) in Dedicated Local Zones. Unsupported storage class + values won't write a destination object and will respond with the + HTTP status code `400 Bad Request`. + + - **Amazon S3 on Outposts** - S3 on Outposts only uses the `OUTPOSTS` + Storage Class. + + You can use the `CopyObject` action to change the storage class of an + object that is already stored in Amazon S3 by using the + `x-amz-storage-class` header. For more information, see [Storage + Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) + in the *Amazon S3 User Guide*. + + Before using an object as a source object for the copy operation, you + must restore a copy of it if it meets any of the following conditions: + + - The storage class of the source object is `GLACIER` or `DEEP_ARCHIVE`. + + - The storage class of the source object is `INTELLIGENT_TIERING` and + it's [S3 Intelligent-Tiering access + tier](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering-overview.html#intel-tiering-tier-definition) + is `Archive Access` or `Deep Archive Access`. + + For more information, see + [RestoreObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html) + and [Copying + Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html) in the *Amazon S3 User Guide*. """ - checksum_crc32_c: str | None = ... + website_redirect_location: str | None """ - The Base64 encoded, 32-bit `CRC32C` checksum of the part. This checksum - is present if the multipart upload request was created with the `CRC32C` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + If the destination bucket is configured as a website, redirects requests + for this object copy to another object in the same bucket or to an + external URL. Amazon S3 stores the value of this header in the object + metadata. This value is unique to each object and is not copied when + using the `x-amz-metadata-directive` header. Instead, you may opt to + provide this header in combination with the `x-amz-metadata-directive` + header. + + Note: + This functionality is not supported for directory buckets. """ - checksum_crc64_nvme: str | None = ... + sse_customer_algorithm: str | None """ - The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. This - checksum is present if the multipart upload request was created with the - `CRC64NVME` checksum algorithm. For more information, see [Checking - object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Specifies the algorithm to use when encrypting the object (for example, + `AES256`). + + When you perform a `CopyObject` operation, if you want to use a + different type of encryption setting for the target object, you can + specify appropriate encryption-related headers to encrypt the target + object with an Amazon S3 managed key, a KMS key, or a customer-provided + key. If the encryption setting in your request is different from the + default encryption configuration of the destination bucket, the + encryption setting in your request takes precedence. + + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - checksum_sha1: str | None = ... + sse_customer_key: str | None """ - The Base64 encoded, 160-bit `SHA1` digest of the part. This checksum is - present if the multipart upload request was created with the `SHA1` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded. Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. + + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - checksum_sha256: str | None = ... + sse_customer_key_md5: str | None """ - The Base64 encoded, 256-bit `SHA256` digest of the part. This checksum - is present if the multipart upload request was created with the `SHA256` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. + + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - checksum_sha512: str | None = ... + ssekms_key_id: str | None """ - The Base64 encoded, 512-bit `SHA512` digest of the part. This checksum - is present if the multipart upload request was created with the `SHA512` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for + object encryption. All GET and PUT requests for an object protected by + KMS will fail if they're not made via SSL or using SigV4. For + information about configuring any of the officially supported Amazon Web + Services SDKs and Amazon Web Services CLI, see [Specifying the Signature + Version in Request + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version) in the *Amazon S3 User Guide*. + + **Directory buckets** - To encrypt data using SSE-KMS, it's recommended + to specify the `x-amz-server-side-encryption` header to `aws:kms`. Then, + the `x-amz-server-side-encryption-aws-kms-key-id` header implicitly uses + the bucket's default KMS customer managed key ID. If you want to + explicitly set the ` x-amz-server-side-encryption-aws-kms-key-id` + header, it must match the bucket's default customer managed key (using + key ID or ARN, not alias). Your SSE-KMS configuration can only support 1 + [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + per directory bucket's lifetime. The [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + (`aws/s3`) isn't supported. Incorrect key specification results in an + HTTP `400 Bad Request` error. """ - checksum_md5: str | None = ... + ssekms_encryption_context: str | None """ - The Base64 encoded, 128-bit `MD5` digest of the part. This checksum is - present if the multipart upload request was created with the `MD5` - checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + Specifies the Amazon Web Services KMS Encryption Context as an + additional encryption context to use for the destination object + encryption. The value of this header is a base64-encoded UTF-8 string + holding JSON with the encryption context key-value pairs. + + **General purpose buckets** - This value must be explicitly added to + specify encryption context for `CopyObject` requests if you want an + additional encryption context for your destination object. The + additional encryption context of the source object won't be copied to + the destination object. For more information, see [Encryption + context](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html#encryption-context) in the *Amazon S3 User Guide*. + + **Directory buckets** - You can optionally provide an explicit + encryption context value. The value must match the default encryption + context - the bucket Amazon Resource Name (ARN). An additional + encryption context value is not supported. """ - checksum_xxhash64: str | None = ... + bucket_key_enabled: bool | None """ - The Base64 encoded, 64-bit `XXHASH64` checksum of the part. This - checksum is present if the multipart upload request was created with the - `XXHASH64` checksum algorithm. For more information, see [Checking - object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + Specifies whether Amazon S3 should use an S3 Bucket Key for object + encryption with server-side encryption using Key Management Service + (KMS) keys (SSE-KMS). If a target object uses SSE-KMS, you can enable an + S3 Bucket Key for the object. + + Setting this header to `true` causes Amazon S3 to use an S3 Bucket Key + for object encryption with SSE-KMS. Specifying this header with a COPY + action doesn't affect bucket-level settings for S3 Bucket Key. + + For more information, see [Amazon S3 Bucket + Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the *Amazon S3 User Guide*. + + Note: + **Directory buckets** - S3 Bucket Keys aren't supported, when you copy + SSE-KMS encrypted objects from general purpose buckets to directory + buckets, from directory buckets to general purpose buckets, or between + directory buckets, through + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html). + In this case, Amazon S3 makes a call to KMS every time a copy request is + made for a KMS-encrypted object. """ - checksum_xxhash3: str | None = ... + copy_source_sse_customer_algorithm: str | None """ - The Base64 encoded, 64-bit `XXHASH3` checksum of the part. This checksum - is present if the multipart upload request was created with the - `XXHASH3` checksum algorithm. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Specifies the algorithm to use when decrypting the source object (for + example, `AES256`). + + If the source object for the copy is stored in Amazon S3 using SSE-C, + you must provide the necessary encryption information in your request so + that Amazon S3 can decrypt the object for copying. + + Note: + This functionality is not supported when the source object is in a + directory bucket. """ - checksum_xxhash128: str | None = ... + copy_source_sse_customer_key: str | None """ - The Base64 encoded, 128-bit `XXHASH128` checksum of the part. This - checksum is present if the multipart upload request was created with the - `XXHASH128` checksum algorithm. For more information, see [Checking - object + Specifies the customer-provided encryption key for Amazon S3 to use to + decrypt the source object. The encryption key provided in this header + must be the same one that was used when the source object was created. + + If the source object for the copy is stored in Amazon S3 using SSE-C, + you must provide the necessary encryption information in your request so + that Amazon S3 can decrypt the object for copying. + + Note: + This functionality is not supported when the source object is in a + directory bucket. + """ + copy_source_sse_customer_key_md5: str | None + """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. + + If the source object for the copy is stored in Amazon S3 using SSE-C, + you must provide the necessary encryption information in your request so + that Amazon S3 can decrypt the object for copying. + + Note: + This functionality is not supported when the source object is in a + directory bucket. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + tagging: str | None + """ + The tag-set for the object copy in the destination bucket. This value + must be used in conjunction with the `x-amz-tagging-directive` if you + choose `REPLACE` for the `x-amz-tagging-directive`. If you choose `COPY` + for the `x-amz-tagging-directive`, you don't need to set the + `x-amz-tagging` header, because the tag-set will be copied from the + source object directly. The tag-set must be encoded as URL Query + parameters. + + The default value is the empty value. + + Note: + **Directory buckets** - For directory buckets in a `CopyObject` + operation, only the empty tag-set is supported. Any requests that + attempt to write non-empty tags into directory buckets will receive a + `501 Not Implemented` status code. When the destination bucket is a + directory bucket, you will receive a `501 Not Implemented` response in + any of the following situations: + + - When you attempt to `COPY` the tag-set from an S3 source object that + has non-empty tags. + + - When you attempt to `REPLACE` the tag-set of a source object and set a + non-empty value to `x-amz-tagging`. + + - When you don't set the `x-amz-tagging-directive` header and the + source object has non-empty tags. This is because the default value of + `x-amz-tagging-directive` is `COPY`. + + Because only the empty tag-set is supported for directory buckets in a + `CopyObject` operation, the following situations are allowed: + + - When you attempt to `COPY` the tag-set from a directory bucket source + object that has no tags to a general purpose bucket. It copies an + empty tag-set to the destination object. + + - When you attempt to `REPLACE` the tag-set of a directory bucket source + object and set the `x-amz-tagging` value of the directory bucket + destination object to empty. + + - When you attempt to `REPLACE` the tag-set of a general purpose bucket + source object that has non-empty tags and set the `x-amz-tagging` + value of the directory bucket destination object to empty. + + - When you attempt to `REPLACE` the tag-set of a directory bucket source + object and don't set the `x-amz-tagging` value of the directory + bucket destination object. This is because the default value of + `x-amz-tagging` is the empty value. + """ + object_lock_mode: str | None + """ + The Object Lock mode that you want to apply to the object copy. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_retain_until_date: datetime | None + """ + The date and time when you want the Object Lock of the object copy to + expire. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_legal_hold_status: str | None + """ + Specifies whether you want to apply a legal hold to the object copy. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold: str | None + """ + The event hold status to apply to the object copy. Set to `ON` to enable + or `OFF` to disable. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold_duration_days: int | None + """ + The event hold duration in days to apply to the object copy. You cannot + specify a duration in both days and years. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold_duration_years: int | None + """ + The event hold duration in years to apply to the object copy. You cannot + specify a duration in both days and years. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected destination bucket owner. If the account + ID that you provide does not match the actual owner of the destination + bucket, the request fails with the HTTP status code `403 Forbidden` + (access denied). + """ + expected_source_bucket_owner: str | None + """ + The account ID of the expected source bucket owner. If the account ID + that you provide does not match the actual owner of the source bucket, + the request fails with the HTTP status code `403 Forbidden` (access + denied). + """ + +@dataclass(kw_only=True) +class CopyObjectOutput(_SerdeShape): + """Dataclass for CopyObjectOutput structure.""" + + copy_object_result: CopyObjectResult | None = ... + """Container for all response elements.""" + expiration: str | None = ... + """ + If the object expiration is configured, the response includes this + header. + + Note: + Object expiration information is not returned in directory buckets and + this header returns the value \"`NotImplemented`\" in all responses for + directory buckets. + """ + copy_source_version_id: str | None = ... + """ + Version ID of the source object that was copied. + + Note: + This functionality is not supported when the source object is in a + directory bucket. + """ + version_id: str | None = ... + """ + Version ID of the newly created copy. + + Note: + This functionality is not supported for directory buckets. + """ + server_side_encryption: str | None = ... + """ + The server-side encryption algorithm used when you store this object in + Amazon S3 or Amazon FSx. + + Note: + When accessing data stored in Amazon FSx file systems using S3 access + points, the only valid server side encryption option is `aws:fsx`. + """ + sse_customer_algorithm: str | None = ... + """ + If server-side encryption with a customer-provided encryption key was + requested, the response will include this header to confirm the + encryption algorithm that's used. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None = ... + """ + If server-side encryption with a customer-provided encryption key was + requested, the response will include this header to provide the + round-trip message integrity verification of the customer-provided + encryption key. + + Note: + This functionality is not supported for directory buckets. + """ + ssekms_key_id: str | None = ... + """ + If present, indicates the ID of the KMS key that was used for object + encryption. + """ + ssekms_encryption_context: str | None = ... + """ + If present, indicates the Amazon Web Services KMS Encryption Context to + use for object encryption. The value of this header is a Base64 encoded + UTF-8 string holding JSON with the encryption context key-value pairs. + """ + bucket_key_enabled: bool | None = ... + """ + Indicates whether the copied object uses an S3 Bucket Key for + server-side encryption with Key Management Service (KMS) keys (SSE-KMS). + """ + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CopyObjectResult(_SerdeShape): + """Container for all response elements.""" + + e_tag: str | None = ... + """ + Returns the ETag of the new object. The ETag reflects only changes to + the contents of an object, not its metadata. + """ + last_modified: datetime | None = ... + """Creation date of the object.""" + checksum_type: str | None = ... + """ + The checksum type that is used to calculate the object's checksum value. + For more information, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ + checksum_crc32: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32` checksum of the object. This checksum + is only present if the checksum was uploaded with the object. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc32_c: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32C` checksum of the object. This + checksum is only present if the checksum was uploaded with the object. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc64_nvme: str | None = ... + """ + The Base64 encoded, 64-bit `CRC64NVME` checksum of the object. This + checksum is present if the object being copied was uploaded with the + `CRC64NVME` checksum algorithm, or if the object was uploaded without a + checksum (and Amazon S3 added the default checksum, `CRC64NVME`, to the + uploaded object). For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha1: str | None = ... + """ + The Base64 encoded, 160-bit `SHA1` digest of the object. This checksum + is only present if the checksum was uploaded with the object. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha256: str | None = ... + """ + The Base64 encoded, 256-bit `SHA256` digest of the object. This checksum + is only present if the checksum was uploaded with the object. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha512: str | None = ... + """ + The Base64 encoded, 512-bit `SHA512` digest of the object. This checksum + is only present if the object was uploaded with the `SHA512` checksum + algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_md5: str | None = ... + """ + The Base64 encoded, 128-bit `MD5` digest of the object. This checksum is + only present if the object was uploaded with the `MD5` checksum + algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash64: str | None = ... + """ + The Base64 encoded, 64-bit `XXHASH64` checksum of the object. This + checksum is only present if the object was uploaded with the `XXHASH64` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash3: str | None = ... + """ + The Base64 encoded, 64-bit `XXHASH3` checksum of the object. This + checksum is only present if the object was uploaded with the `XXHASH3` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash128: str | None = ... + """ + The Base64 encoded, 128-bit `XXHASH128` checksum of the object. This + checksum is only present if the object was uploaded with the `XXHASH128` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + +@dataclass(kw_only=True) +class CopyPartResult(_SerdeShape): + """Container for all response elements.""" + + e_tag: str | None = ... + """Entity tag of the object.""" + last_modified: datetime | None = ... + """Date and time at which the object was uploaded.""" + checksum_crc32: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32` checksum of the part. This checksum + is present if the multipart upload request was created with the `CRC32` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc32_c: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32C` checksum of the part. This checksum + is present if the multipart upload request was created with the `CRC32C` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc64_nvme: str | None = ... + """ + The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. This + checksum is present if the multipart upload request was created with the + `CRC64NVME` checksum algorithm. For more information, see [Checking + object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha1: str | None = ... + """ + The Base64 encoded, 160-bit `SHA1` digest of the part. This checksum is + present if the multipart upload request was created with the `SHA1` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha256: str | None = ... + """ + The Base64 encoded, 256-bit `SHA256` digest of the part. This checksum + is present if the multipart upload request was created with the `SHA256` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha512: str | None = ... + """ + The Base64 encoded, 512-bit `SHA512` digest of the part. This checksum + is present if the multipart upload request was created with the `SHA512` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_md5: str | None = ... + """ + The Base64 encoded, 128-bit `MD5` digest of the part. This checksum is + present if the multipart upload request was created with the `MD5` + checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash64: str | None = ... + """ + The Base64 encoded, 64-bit `XXHASH64` checksum of the part. This + checksum is present if the multipart upload request was created with the + `XXHASH64` checksum algorithm. For more information, see [Checking + object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash3: str | None = ... + """ + The Base64 encoded, 64-bit `XXHASH3` checksum of the part. This checksum + is present if the multipart upload request was created with the + `XXHASH3` checksum algorithm. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash128: str | None = ... + """ + The Base64 encoded, 128-bit `XXHASH128` checksum of the part. This + checksum is present if the multipart upload request was created with the + `XXHASH128` checksum algorithm. For more information, see [Checking + object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + +@dataclass(kw_only=True) +class CORSConfiguration(_SerdeShape): + """ + Describes the cross-origin access configuration for objects in an Amazon + S3 bucket. For more information, see [Enabling Cross-Origin Resource + Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in + the *Amazon S3 User Guide*. + """ + + cors_rules: list[CORSRule] + """ + A set of origins and methods (cross-origin access that you want to + allow). You can add up to 100 rules to the configuration. + """ + +class CORSConfigurationDict(TypedDict, total=False): + """Dictionary form of `CORSConfiguration`.""" + + cors_rules: Required[Sequence[CORSRule | CORSRuleDict]] + """ + A set of origins and methods (cross-origin access that you want to + allow). You can add up to 100 rules to the configuration. + """ + +@dataclass(kw_only=True) +class CORSRule(_SerdeShape): + """Specifies a cross-origin access rule for an Amazon S3 bucket.""" + + id: str | None = ... + """ + Unique identifier for the rule. The value cannot be longer than 255 + characters. + """ + allowed_headers: list[str] | None = ... + """ + Headers that are specified in the `Access-Control-Request-Headers` + header. These headers are allowed in a preflight OPTIONS request. In + response to any preflight OPTIONS request, Amazon S3 returns any + requested headers that are allowed. + """ + allowed_methods: list[str] + """ + An HTTP method that you allow the origin to execute. Valid values are + `GET`, `PUT`, `HEAD`, `POST`, and `DELETE`. + """ + allowed_origins: list[str] + """ + One or more origins you want customers to be able to access the bucket + from. + """ + expose_headers: list[str] | None = ... + """ + One or more headers in the response that you want customers to be able + to access from their applications (for example, from a JavaScript + `XMLHttpRequest` object). + """ + max_age_seconds: int | None = ... + """ + The time in seconds that your browser is to cache the preflight response + for the specified resource. + """ + +class CORSRuleDict(TypedDict, total=False): + """Dictionary form of `CORSRule`.""" + + id: str | None + """ + Unique identifier for the rule. The value cannot be longer than 255 + characters. + """ + allowed_headers: Sequence[str] | None + """ + Headers that are specified in the `Access-Control-Request-Headers` + header. These headers are allowed in a preflight OPTIONS request. In + response to any preflight OPTIONS request, Amazon S3 returns any + requested headers that are allowed. + """ + allowed_methods: Required[Sequence[str]] + """ + An HTTP method that you allow the origin to execute. Valid values are + `GET`, `PUT`, `HEAD`, `POST`, and `DELETE`. + """ + allowed_origins: Required[Sequence[str]] + """ + One or more origins you want customers to be able to access the bucket + from. + """ + expose_headers: Sequence[str] | None + """ + One or more headers in the response that you want customers to be able + to access from their applications (for example, from a JavaScript + `XMLHttpRequest` object). + """ + max_age_seconds: int | None + """ + The time in seconds that your browser is to cache the preflight response + for the specified resource. + """ + +@dataclass(kw_only=True) +class CreateBucketConfiguration(_SerdeShape): + """The configuration information for the bucket.""" + + location_constraint: str | None = ... + """ + Specifies the Region where the bucket will be created. You might choose + a Region to optimize latency, minimize costs, or address regulatory + requirements. For example, if you reside in Europe, you will probably + find it advantageous to create buckets in the Europe (Ireland) Region. + + If you don't specify a Region, the bucket is created in the US East (N. + Virginia) Region (us-east-1) by default. Configurations using the value + `EU` will create a bucket in `eu-west-1`. + + For a list of the valid values for all of the Amazon Web Services + Regions, see [Regions and + Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region). + + Note: + This functionality is not supported for directory buckets. + """ + location: LocationInfo | None = ... + """ + Specifies the location where the bucket will be created. + + **Directory buckets** - The location type is Availability Zone or Local + Zone. To use the Local Zone location type, your account must be enabled + for Local Zones. Otherwise, you get an HTTP `403 Forbidden` error with + the error code `AccessDenied`. To learn more, see [Enable accounts for + Local + Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/opt-in-directory-bucket-lz.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is only supported by directory buckets. + """ + bucket: BucketInfo | None = ... + """ + Specifies the information about the bucket that will be created. + + Note: + This functionality is only supported by directory buckets. + """ + tags: list[Tag] | None = ... + """ + An array of tags that you can apply to the bucket that you're creating. + Tags are key-value pairs of metadata used to categorize and organize + your buckets, track costs, and control access. + + You must have the `s3:TagResource` permission to create a general + purpose bucket with tags or the `s3express:TagResource` permission to + create a directory bucket with tags. + + When creating buckets with tags, note that tag-based conditions using + `aws:ResourceTag` and `s3:BucketTag` condition keys are applicable only + after ABAC is enabled on the bucket. To learn more, see [Enabling ABAC + in general purpose + buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html). + """ + +class CreateBucketConfigurationDict(TypedDict, total=False): + """Dictionary form of `CreateBucketConfiguration`.""" + + location_constraint: str | None + """ + Specifies the Region where the bucket will be created. You might choose + a Region to optimize latency, minimize costs, or address regulatory + requirements. For example, if you reside in Europe, you will probably + find it advantageous to create buckets in the Europe (Ireland) Region. + + If you don't specify a Region, the bucket is created in the US East (N. + Virginia) Region (us-east-1) by default. Configurations using the value + `EU` will create a bucket in `eu-west-1`. + + For a list of the valid values for all of the Amazon Web Services + Regions, see [Regions and + Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region). + + Note: + This functionality is not supported for directory buckets. + """ + location: LocationInfo | LocationInfoDict | None + """ + Specifies the location where the bucket will be created. + + **Directory buckets** - The location type is Availability Zone or Local + Zone. To use the Local Zone location type, your account must be enabled + for Local Zones. Otherwise, you get an HTTP `403 Forbidden` error with + the error code `AccessDenied`. To learn more, see [Enable accounts for + Local + Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/opt-in-directory-bucket-lz.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is only supported by directory buckets. + """ + bucket: BucketInfo | BucketInfoDict | None + """ + Specifies the information about the bucket that will be created. + + Note: + This functionality is only supported by directory buckets. + """ + tags: Sequence[Tag | TagDict] | None + """ + An array of tags that you can apply to the bucket that you're creating. + Tags are key-value pairs of metadata used to categorize and organize + your buckets, track costs, and control access. + + You must have the `s3:TagResource` permission to create a general + purpose bucket with tags or the `s3express:TagResource` permission to + create a directory bucket with tags. + + When creating buckets with tags, note that tag-based conditions using + `aws:ResourceTag` and `s3:BucketTag` condition keys are applicable only + after ABAC is enabled on the bucket. To learn more, see [Enabling ABAC + in general purpose + buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html). + """ + +@dataclass(kw_only=True) +class CreateBucketInput(_SerdeShape): + """Dataclass for CreateBucketInput structure.""" + + acl: str | None = ... + """ + The canned ACL to apply to the bucket. + + Note: + This functionality is not supported for directory buckets. + """ + bucket: str | None = ... + """ + The name of the bucket to create. + + **General purpose buckets** - For information about bucket naming + restrictions, see [Bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) + in the *Amazon S3 User Guide*. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + create_bucket_configuration: CreateBucketConfiguration | None = ... + """The configuration information for the bucket.""" + grant_full_control: str | None = ... + """ + Allows grantee the read, write, read ACP, and write ACP permissions on + the bucket. + + Note: + This functionality is not supported for directory buckets. + """ + grant_read: str | None = ... + """ + Allows grantee to list the objects in the bucket. + + Note: + This functionality is not supported for directory buckets. + """ + grant_read_acp: str | None = ... + """ + Allows grantee to read the bucket ACL. + + Note: + This functionality is not supported for directory buckets. + """ + grant_write: str | None = ... + """ + Allows grantee to create new objects in the bucket. + + For the bucket and object owners of existing objects, also allows + deletions and overwrites of those objects. + + Note: + This functionality is not supported for directory buckets. + """ + grant_write_acp: str | None = ... + """ + Allows grantee to write the ACL for the applicable bucket. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_enabled_for_bucket: bool | None = ... + """ + Specifies whether you want S3 Object Lock to be enabled for the new + bucket. + + Note: + This functionality is not supported for directory buckets. + """ + object_ownership: str | None = ... + """ + The container element for object ownership for a bucket's ownership + controls. + + `BucketOwnerPreferred` - Objects uploaded to the bucket change ownership + to the bucket owner if the objects are uploaded with the + `bucket-owner-full-control` canned ACL. + + `ObjectWriter` - The uploading account will own the object if the object + is uploaded with the `bucket-owner-full-control` canned ACL. + + `BucketOwnerEnforced` - Access control lists (ACLs) are disabled and no + longer affect permissions. The bucket owner automatically owns and has + full control over every object in the bucket. The bucket only accepts + PUT requests that don't specify an ACL or specify bucket owner full + control ACLs (such as the predefined `bucket-owner-full-control` canned + ACL or a custom ACL in XML format that grants the same permissions). + + By default, `ObjectOwnership` is set to `BucketOwnerEnforced` and ACLs + are disabled. We recommend keeping ACLs disabled, except in uncommon use + cases where you must control access for each object individually. For + more information about S3 Object Ownership, see [Controlling ownership + of objects and disabling ACLs for your + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. Directory + buckets use the bucket owner enforced setting for S3 Object Ownership. + """ + bucket_namespace: str | None = ... + """ + Specifies the namespace where you want to create your general purpose + bucket. When you create a general purpose bucket, you can choose to + create a bucket in the shared global namespace or you can choose to + create a bucket in your account regional namespace. Your account + regional namespace is a subdivision of the global namespace that only + your account can create buckets in. For more information on bucket + namespaces, see [Namespaces for general purpose + buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/gpbucketnamespaces.html). + + General purpose buckets in your account regional namespace must follow a + specific naming convention. These buckets consist of a bucket name + prefix that you create, and a suffix that contains your 12-digit Amazon + Web Services Account ID, the Amazon Web Services Region code, and ends + with `-an`. Bucket names must follow the format + `bucket-name-prefix-accountId-region-an` (for example, + `amzn-s3-demo-bucket-111122223333-us-west-2-an`). For information about + bucket naming restrictions, see [Account regional namespace naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html#account-regional-naming-rules) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + +class CreateBucketInputDict(TypedDict, total=False): + """Dictionary form of `CreateBucketInput`.""" + + acl: str | None + """ + The canned ACL to apply to the bucket. + + Note: + This functionality is not supported for directory buckets. + """ + bucket: Required[str] + """ + The name of the bucket to create. + + **General purpose buckets** - For information about bucket naming + restrictions, see [Bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) + in the *Amazon S3 User Guide*. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + create_bucket_configuration: ( + CreateBucketConfiguration | CreateBucketConfigurationDict | None + ) + """The configuration information for the bucket.""" + grant_full_control: str | None + """ + Allows grantee the read, write, read ACP, and write ACP permissions on + the bucket. + + Note: + This functionality is not supported for directory buckets. + """ + grant_read: str | None + """ + Allows grantee to list the objects in the bucket. + + Note: + This functionality is not supported for directory buckets. + """ + grant_read_acp: str | None + """ + Allows grantee to read the bucket ACL. + + Note: + This functionality is not supported for directory buckets. + """ + grant_write: str | None + """ + Allows grantee to create new objects in the bucket. + + For the bucket and object owners of existing objects, also allows + deletions and overwrites of those objects. + + Note: + This functionality is not supported for directory buckets. + """ + grant_write_acp: str | None + """ + Allows grantee to write the ACL for the applicable bucket. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_enabled_for_bucket: bool | None + """ + Specifies whether you want S3 Object Lock to be enabled for the new + bucket. + + Note: + This functionality is not supported for directory buckets. + """ + object_ownership: str | None + """ + The container element for object ownership for a bucket's ownership + controls. + + `BucketOwnerPreferred` - Objects uploaded to the bucket change ownership + to the bucket owner if the objects are uploaded with the + `bucket-owner-full-control` canned ACL. + + `ObjectWriter` - The uploading account will own the object if the object + is uploaded with the `bucket-owner-full-control` canned ACL. + + `BucketOwnerEnforced` - Access control lists (ACLs) are disabled and no + longer affect permissions. The bucket owner automatically owns and has + full control over every object in the bucket. The bucket only accepts + PUT requests that don't specify an ACL or specify bucket owner full + control ACLs (such as the predefined `bucket-owner-full-control` canned + ACL or a custom ACL in XML format that grants the same permissions). + + By default, `ObjectOwnership` is set to `BucketOwnerEnforced` and ACLs + are disabled. We recommend keeping ACLs disabled, except in uncommon use + cases where you must control access for each object individually. For + more information about S3 Object Ownership, see [Controlling ownership + of objects and disabling ACLs for your + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. Directory + buckets use the bucket owner enforced setting for S3 Object Ownership. + """ + bucket_namespace: str | None + """ + Specifies the namespace where you want to create your general purpose + bucket. When you create a general purpose bucket, you can choose to + create a bucket in the shared global namespace or you can choose to + create a bucket in your account regional namespace. Your account + regional namespace is a subdivision of the global namespace that only + your account can create buckets in. For more information on bucket + namespaces, see [Namespaces for general purpose + buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/gpbucketnamespaces.html). + + General purpose buckets in your account regional namespace must follow a + specific naming convention. These buckets consist of a bucket name + prefix that you create, and a suffix that contains your 12-digit Amazon + Web Services Account ID, the Amazon Web Services Region code, and ends + with `-an`. Bucket names must follow the format + `bucket-name-prefix-accountId-region-an` (for example, + `amzn-s3-demo-bucket-111122223333-us-west-2-an`). For information about + bucket naming restrictions, see [Account regional namespace naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html#account-regional-naming-rules) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + +@dataclass(kw_only=True) +class CreateBucketMetadataConfigurationInput(_SerdeShape): + """Dataclass for CreateBucketMetadataConfigurationInput structure.""" + + bucket: str | None = ... + """ + The general purpose bucket that you want to create the metadata + configuration for. + """ + content_md5: str | None = ... + """The `Content-MD5` header for the metadata configuration.""" + checksum_algorithm: str | None = ... + """The checksum algorithm to use with your metadata configuration.""" + metadata_configuration: MetadataConfiguration | None = ... + """The contents of your metadata configuration.""" + expected_bucket_owner: str | None = ... + """ + The expected owner of the general purpose bucket that corresponds to + your metadata configuration. + """ + +class CreateBucketMetadataConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `CreateBucketMetadataConfigurationInput`.""" + + bucket: Required[str] + """ + The general purpose bucket that you want to create the metadata + configuration for. + """ + content_md5: str | None + """The `Content-MD5` header for the metadata configuration.""" + checksum_algorithm: str | None + """The checksum algorithm to use with your metadata configuration.""" + metadata_configuration: Required[MetadataConfiguration | MetadataConfigurationDict] + """The contents of your metadata configuration.""" + expected_bucket_owner: str | None + """ + The expected owner of the general purpose bucket that corresponds to + your metadata configuration. + """ + +@dataclass(kw_only=True) +class CreateBucketMetadataConfigurationOutput(_SerdeShape): + """Dataclass for CreateBucketMetadataConfigurationOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateBucketMetadataTableConfigurationInput(_SerdeShape): + """Dataclass for CreateBucketMetadataTableConfigurationInput structure.""" + + bucket: str | None = ... + """ + The general purpose bucket that you want to create the metadata table + configuration for. + """ + content_md5: str | None = ... + """The `Content-MD5` header for the metadata table configuration.""" + checksum_algorithm: str | None = ... + """The checksum algorithm to use with your metadata table configuration.""" + metadata_table_configuration: MetadataTableConfiguration | None = ... + """The contents of your metadata table configuration.""" + expected_bucket_owner: str | None = ... + """ + The expected owner of the general purpose bucket that corresponds to + your metadata table configuration. + """ + +class CreateBucketMetadataTableConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `CreateBucketMetadataTableConfigurationInput`.""" + + bucket: Required[str] + """ + The general purpose bucket that you want to create the metadata table + configuration for. + """ + content_md5: str | None + """The `Content-MD5` header for the metadata table configuration.""" + checksum_algorithm: str | None + """The checksum algorithm to use with your metadata table configuration.""" + metadata_table_configuration: Required[ + MetadataTableConfiguration | MetadataTableConfigurationDict + ] + """The contents of your metadata table configuration.""" + expected_bucket_owner: str | None + """ + The expected owner of the general purpose bucket that corresponds to + your metadata table configuration. + """ + +@dataclass(kw_only=True) +class CreateBucketMetadataTableConfigurationOutput(_SerdeShape): + """Dataclass for CreateBucketMetadataTableConfigurationOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateBucketOutput(_SerdeShape): + """Dataclass for CreateBucketOutput structure.""" + + location: str | None = ... + """ + A forward slash followed by the name of the bucket for all account + regional namespace buckets and all global general purpose buckets + created in us-east-1. For example, `/amzn-s3-demo-bucket`. For global + general purpose buckets created in other Amazon Web Services Regions, + the Location field is the global endpoint URL. For example, + `http://amzn-s3-demo-bucket.s3.amazonaws.com/`. + """ + bucket_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify + Amazon Web Services resources across all of Amazon Web Services. + + Note: + This parameter is only supported for S3 directory buckets. For more + information, see [Using tags with directory + buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html). + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class CreateMultipartUploadInput(_SerdeShape): + """Dataclass for CreateMultipartUploadInput structure.""" + + acl: str | None = ... + """ + The canned ACL to apply to the object. Amazon S3 supports a set of + predefined ACLs, known as *canned ACLs*. Each canned ACL has a + predefined set of grantees and permissions. For more information, see + [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL) + in the *Amazon S3 User Guide*. + + By default, all objects are private. Only the owner has full access + control. When uploading an object, you can grant access permissions to + individual Amazon Web Services accounts or to predefined groups defined + by Amazon S3. These permissions are then added to the access control + list (ACL) on the new object. For more information, see [Using + ACLs](https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html). + One way to grant the permissions using the request headers is to specify + a canned ACL with the `x-amz-acl` request header. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + bucket: str | None = ... + """ + The name of the bucket where the multipart upload is initiated and where + the object is uploaded. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + cache_control: str | None = ... + """Specifies caching behavior along the request/reply chain.""" + content_disposition: str | None = ... + """Specifies presentational information for the object.""" + content_encoding: str | None = ... + """ + Specifies what content encodings have been applied to the object and + thus what decoding mechanisms must be applied to obtain the media-type + referenced by the Content-Type header field. + + Note: + For directory buckets, only the `aws-chunked` value is supported in this + header field. + """ + content_language: str | None = ... + """The language that the content is in.""" + content_type: str | None = ... + """A standard MIME type describing the format of the object data.""" + expires: str | None = ... + """The date and time at which the object is no longer cacheable.""" + grant_full_control: str | None = ... + """ + Specify access permissions explicitly to give the grantee READ, + READ_ACP, and WRITE_ACP permissions on the object. + + By default, all objects are private. Only the owner has full access + control. When uploading an object, you can use this header to explicitly + grant access permissions to specific Amazon Web Services accounts or + groups. This header maps to specific permissions that Amazon S3 supports + in an ACL. For more information, see [Access Control List (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) + in the *Amazon S3 User Guide*. + + You specify each grantee as a type=value pair, where the type is one of + the following: + + - `id` -- if the value specified is the canonical user ID of an Amazon + Web Services account + + - `uri` -- if you are granting permissions to a predefined group + + - `emailAddress` -- if the value specified is the email address of an + Amazon Web Services account + + Note: + Using email addresses to specify a grantee is only supported in the + following Amazon Web Services Regions: + + - US East (N. Virginia) + + - US West (N. California) + + - US West (Oregon) + + - Asia Pacific (Singapore) + + - Asia Pacific (Sydney) + + - Asia Pacific (Tokyo) + + - Europe (Ireland) + + - South America (São Paulo) + + For a list of all the Amazon S3 supported Regions and endpoints, see + [Regions and + Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) + in the Amazon Web Services General Reference. + + For example, the following `x-amz-grant-read` header grants the Amazon + Web Services accounts identified by account IDs permissions to read + object data and its metadata: + + `x-amz-grant-read: id="11112222333", id="444455556666" ` + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + grant_read: str | None = ... + """ + Specify access permissions explicitly to allow grantee to read the + object data and its metadata. + + By default, all objects are private. Only the owner has full access + control. When uploading an object, you can use this header to explicitly + grant access permissions to specific Amazon Web Services accounts or + groups. This header maps to specific permissions that Amazon S3 supports + in an ACL. For more information, see [Access Control List (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) + in the *Amazon S3 User Guide*. + + You specify each grantee as a type=value pair, where the type is one of + the following: + + - `id` -- if the value specified is the canonical user ID of an Amazon + Web Services account + + - `uri` -- if you are granting permissions to a predefined group + + - `emailAddress` -- if the value specified is the email address of an + Amazon Web Services account + + Note: + Using email addresses to specify a grantee is only supported in the + following Amazon Web Services Regions: + + - US East (N. Virginia) + + - US West (N. California) + + - US West (Oregon) + + - Asia Pacific (Singapore) + + - Asia Pacific (Sydney) + + - Asia Pacific (Tokyo) + + - Europe (Ireland) + + - South America (São Paulo) + + For a list of all the Amazon S3 supported Regions and endpoints, see + [Regions and + Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) + in the Amazon Web Services General Reference. + + For example, the following `x-amz-grant-read` header grants the Amazon + Web Services accounts identified by account IDs permissions to read + object data and its metadata: + + `x-amz-grant-read: id="11112222333", id="444455556666" ` + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + grant_read_acp: str | None = ... + """ + Specify access permissions explicitly to allows grantee to read the + object ACL. + + By default, all objects are private. Only the owner has full access + control. When uploading an object, you can use this header to explicitly + grant access permissions to specific Amazon Web Services accounts or + groups. This header maps to specific permissions that Amazon S3 supports + in an ACL. For more information, see [Access Control List (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) + in the *Amazon S3 User Guide*. + + You specify each grantee as a type=value pair, where the type is one of + the following: + + - `id` -- if the value specified is the canonical user ID of an Amazon + Web Services account + + - `uri` -- if you are granting permissions to a predefined group + + - `emailAddress` -- if the value specified is the email address of an + Amazon Web Services account -@dataclass(kw_only=True) -class CORSConfiguration(_SerdeShape): - """ - Describes the cross-origin access configuration for objects in an Amazon - S3 bucket. For more information, see [Enabling Cross-Origin Resource - Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in - the *Amazon S3 User Guide*. - """ + Note: + Using email addresses to specify a grantee is only supported in the + following Amazon Web Services Regions: - cors_rules: list[CORSRule] - """ - A set of origins and methods (cross-origin access that you want to - allow). You can add up to 100 rules to the configuration. - """ + - US East (N. Virginia) -@dataclass(kw_only=True) -class CORSRule(_SerdeShape): - """Specifies a cross-origin access rule for an Amazon S3 bucket.""" + - US West (N. California) - id: str | None = ... - """ - Unique identifier for the rule. The value cannot be longer than 255 - characters. - """ - allowed_headers: list[str] | None = ... - """ - Headers that are specified in the `Access-Control-Request-Headers` - header. These headers are allowed in a preflight OPTIONS request. In - response to any preflight OPTIONS request, Amazon S3 returns any - requested headers that are allowed. - """ - allowed_methods: list[str] - """ - An HTTP method that you allow the origin to execute. Valid values are - `GET`, `PUT`, `HEAD`, `POST`, and `DELETE`. - """ - allowed_origins: list[str] - """ - One or more origins you want customers to be able to access the bucket - from. - """ - expose_headers: list[str] | None = ... - """ - One or more headers in the response that you want customers to be able - to access from their applications (for example, from a JavaScript - `XMLHttpRequest` object). - """ - max_age_seconds: int | None = ... - """ - The time in seconds that your browser is to cache the preflight response - for the specified resource. - """ + - US West (Oregon) -@dataclass(kw_only=True) -class CreateBucketConfiguration(_SerdeShape): - """The configuration information for the bucket.""" + - Asia Pacific (Singapore) - location_constraint: str | None = ... - """ - Specifies the Region where the bucket will be created. You might choose - a Region to optimize latency, minimize costs, or address regulatory - requirements. For example, if you reside in Europe, you will probably - find it advantageous to create buckets in the Europe (Ireland) Region. + - Asia Pacific (Sydney) - If you don't specify a Region, the bucket is created in the US East (N. - Virginia) Region (us-east-1) by default. Configurations using the value - `EU` will create a bucket in `eu-west-1`. + - Asia Pacific (Tokyo) - For a list of the valid values for all of the Amazon Web Services - Regions, see [Regions and - Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region). + - Europe (Ireland) + + - South America (São Paulo) + + For a list of all the Amazon S3 supported Regions and endpoints, see + [Regions and + Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) + in the Amazon Web Services General Reference. + + For example, the following `x-amz-grant-read` header grants the Amazon + Web Services accounts identified by account IDs permissions to read + object data and its metadata: + + `x-amz-grant-read: id="11112222333", id="444455556666" ` Note: - This functionality is not supported for directory buckets. + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. """ - location: LocationInfo | None = ... + grant_write_acp: str | None = ... """ - Specifies the location where the bucket will be created. + Specify access permissions explicitly to allows grantee to allow grantee + to write the ACL for the applicable object. - **Directory buckets** - The location type is Availability Zone or Local - Zone. To use the Local Zone location type, your account must be enabled - for Local Zones. Otherwise, you get an HTTP `403 Forbidden` error with - the error code `AccessDenied`. To learn more, see [Enable accounts for - Local - Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/opt-in-directory-bucket-lz.html) + By default, all objects are private. Only the owner has full access + control. When uploading an object, you can use this header to explicitly + grant access permissions to specific Amazon Web Services accounts or + groups. This header maps to specific permissions that Amazon S3 supports + in an ACL. For more information, see [Access Control List (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) in the *Amazon S3 User Guide*. - Note: - This functionality is only supported by directory buckets. - """ - bucket: BucketInfo | None = ... - """ - Specifies the information about the bucket that will be created. + You specify each grantee as a type=value pair, where the type is one of + the following: - Note: - This functionality is only supported by directory buckets. - """ - tags: list[Tag] | None = ... - """ - An array of tags that you can apply to the bucket that you're creating. - Tags are key-value pairs of metadata used to categorize and organize - your buckets, track costs, and control access. + - `id` -- if the value specified is the canonical user ID of an Amazon + Web Services account - You must have the `s3:TagResource` permission to create a general - purpose bucket with tags or the `s3express:TagResource` permission to - create a directory bucket with tags. + - `uri` -- if you are granting permissions to a predefined group - When creating buckets with tags, note that tag-based conditions using - `aws:ResourceTag` and `s3:BucketTag` condition keys are applicable only - after ABAC is enabled on the bucket. To learn more, see [Enabling ABAC - in general purpose - buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html). - """ + - `emailAddress` -- if the value specified is the email address of an + Amazon Web Services account -@dataclass(kw_only=True) -class CreateBucketInput(_SerdeShape): - """Dataclass for CreateBucketInput structure.""" + Note: + Using email addresses to specify a grantee is only supported in the + following Amazon Web Services Regions: - acl: str | None = ... - """ - The canned ACL to apply to the bucket. + - US East (N. Virginia) + + - US West (N. California) + + - US West (Oregon) + + - Asia Pacific (Singapore) + + - Asia Pacific (Sydney) + + - Asia Pacific (Tokyo) + + - Europe (Ireland) + + - South America (São Paulo) + + For a list of all the Amazon S3 supported Regions and endpoints, see + [Regions and + Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) + in the Amazon Web Services General Reference. + + For example, the following `x-amz-grant-read` header grants the Amazon + Web Services accounts identified by account IDs permissions to read + object data and its metadata: + + `x-amz-grant-read: id="11112222333", id="444455556666" ` Note: - This functionality is not supported for directory buckets. + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. """ - bucket: str | None = ... + key: str | None = ... + """Object key for which the multipart upload is to be initiated.""" + metadata: dict[str, str] | None = ... + """A map of metadata to store with the object in S3.""" + server_side_encryption: str | None = ... """ - The name of the bucket to create. + The server-side encryption algorithm used when you store this object in + Amazon S3 or Amazon FSx. - **General purpose buckets** - For information about bucket naming - restrictions, see [Bucket naming - rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) - in the *Amazon S3 User Guide*. + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side encryption + with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side + encryption with KMS keys (SSE-KMS) (`aws:kms`). We recommend that the + bucket's default encryption uses the desired encryption configuration + and you don't override the bucket default encryption in your + `CreateSession` requests or `PUT` object requests. Then, new objects + are automatically encrypted with the desired encryption settings. For + more information, see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. For more information about the + encryption overriding behaviors in directory buckets, see [Specifying + server-side encryption with KMS for new object + uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). - **Directory buckets** - When you use this operation with a directory - bucket, you must use path-style requests in the format - `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. - Virtual-hosted-style requests aren't supported. Directory bucket names - must be unique in the chosen Zone (Availability Zone or Local Zone). - Bucket names must also follow the format - ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, - ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information - about bucket naming restrictions, see [Directory bucket naming - rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) - in the *Amazon S3 User Guide* - """ - create_bucket_configuration: CreateBucketConfiguration | None = ... - """The configuration information for the bucket.""" - grant_full_control: str | None = ... - """ - Allows grantee the read, write, read ACP, and write ACP permissions on - the bucket. + In the Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) + using the REST API, the encryption request headers must match the + encryption settings that are specified in the `CreateSession` request. + You can't override the values of the encryption settings + (`x-amz-server-side-encryption`, + `x-amz-server-side-encryption-aws-kms-key-id`, + `x-amz-server-side-encryption-context`, and + `x-amz-server-side-encryption-bucket-key-enabled`) that are specified + in the `CreateSession` request. You don't need to explicitly specify + these encryption settings values in Zonal endpoint API calls, and + Amazon S3 will use the encryption settings values from the + `CreateSession` request to protect new objects in the directory + bucket. - Note: - This functionality is not supported for directory buckets. + Note: + When you use the CLI or the Amazon Web Services SDKs, for + `CreateSession`, the session token refreshes automatically to avoid + service interruptions when a session expires. The CLI or the Amazon + Web Services SDKs use the bucket's default encryption configuration + for the `CreateSession` request. It's not supported to override the + encryption settings values in the `CreateSession` request. So in the + Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)), + the encryption request headers must match the default encryption + configuration of the directory bucket. + + - **S3 access points for Amazon FSx** - When accessing data stored in + Amazon FSx file systems using S3 access points, the only valid server + side encryption option is `aws:fsx`. All Amazon FSx file systems have + encryption configured by default and are encrypted at rest. Data is + automatically encrypted before being written to the file system, and + automatically decrypted as it is read. These processes are handled + transparently by Amazon FSx. """ - grant_read: str | None = ... + storage_class: str | None = ... """ - Allows grantee to list the objects in the bucket. + By default, Amazon S3 uses the STANDARD Storage Class to store newly + created objects. The STANDARD storage class provides high durability and + high availability. Depending on performance needs, you can specify a + different Storage Class. For more information, see [Storage + Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) + in the *Amazon S3 User Guide*. Note: - This functionality is not supported for directory buckets. + - Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express One + Zone storage class) in Availability Zones and `ONEZONE_IA` (the S3 One + Zone-Infrequent Access storage class) in Dedicated Local Zones. + + - Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. """ - grant_read_acp: str | None = ... + website_redirect_location: str | None = ... """ - Allows grantee to read the bucket ACL. + If the bucket is configured as a website, redirects requests for this + object to another object in the same bucket or to an external URL. + Amazon S3 stores the value of this header in the object metadata. Note: This functionality is not supported for directory buckets. """ - grant_write: str | None = ... + sse_customer_algorithm: str | None = ... """ - Allows grantee to create new objects in the bucket. - - For the bucket and object owners of existing objects, also allows - deletions and overwrites of those objects. + Specifies the algorithm to use when encrypting the object (for example, + AES256). Note: This functionality is not supported for directory buckets. """ - grant_write_acp: str | None = ... + sse_customer_key: str | None = ... """ - Allows grantee to write the ACL for the applicable bucket. + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. Note: This functionality is not supported for directory buckets. """ - object_lock_enabled_for_bucket: bool | None = ... + sse_customer_key_md5: str | None = ... """ - Specifies whether you want S3 Object Lock to be enabled for the new - bucket. + Specifies the 128-bit MD5 digest of the customer-provided encryption key + according to RFC 1321. Amazon S3 uses this header for a message + integrity check to ensure that the encryption key was transmitted + without error. Note: This functionality is not supported for directory buckets. """ - object_ownership: str | None = ... + ssekms_key_id: str | None = ... """ - The container element for object ownership for a bucket's ownership - controls. + Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for + object encryption. If the KMS key doesn't exist in the same account + that's issuing the command, you must use the full Key ARN not the Key + ID. - `BucketOwnerPreferred` - Objects uploaded to the bucket change ownership - to the bucket owner if the objects are uploaded with the - `bucket-owner-full-control` canned ACL. + **General purpose buckets** - If you specify + `x-amz-server-side-encryption` with `aws:kms` or `aws:kms:dsse`, this + header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key + to use. If you specify `x-amz-server-side-encryption:aws:kms` or + `x-amz-server-side-encryption:aws:kms:dsse`, but do not provide + `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the Amazon + Web Services managed key (`aws/s3`) to protect the data. - `ObjectWriter` - The uploading account will own the object if the object - is uploaded with the `bucket-owner-full-control` canned ACL. + **Directory buckets** - To encrypt data using SSE-KMS, it's recommended + to specify the `x-amz-server-side-encryption` header to `aws:kms`. Then, + the `x-amz-server-side-encryption-aws-kms-key-id` header implicitly uses + the bucket's default KMS customer managed key ID. If you want to + explicitly set the ` x-amz-server-side-encryption-aws-kms-key-id` + header, it must match the bucket's default customer managed key (using + key ID or ARN, not alias). Your SSE-KMS configuration can only support 1 + [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + per directory bucket's lifetime. The [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + (`aws/s3`) isn't supported. Incorrect key specification results in an + HTTP `400 Bad Request` error. + """ + ssekms_encryption_context: str | None = ... + """ + Specifies the Amazon Web Services KMS Encryption Context to use for + object encryption. The value of this header is a Base64 encoded string + of a UTF-8 encoded JSON, which contains the encryption context as + key-value pairs. - `BucketOwnerEnforced` - Access control lists (ACLs) are disabled and no - longer affect permissions. The bucket owner automatically owns and has - full control over every object in the bucket. The bucket only accepts - PUT requests that don't specify an ACL or specify bucket owner full - control ACLs (such as the predefined `bucket-owner-full-control` canned - ACL or a custom ACL in XML format that grants the same permissions). + **Directory buckets** - You can optionally provide an explicit + encryption context value. The value must match the default encryption + context - the bucket Amazon Resource Name (ARN). An additional + encryption context value is not supported. + """ + bucket_key_enabled: bool | None = ... + """ + Specifies whether Amazon S3 should use an S3 Bucket Key for object + encryption with server-side encryption using Key Management Service + (KMS) keys (SSE-KMS). - By default, `ObjectOwnership` is set to `BucketOwnerEnforced` and ACLs - are disabled. We recommend keeping ACLs disabled, except in uncommon use - cases where you must control access for each object individually. For - more information about S3 Object Ownership, see [Controlling ownership - of objects and disabling ACLs for your - bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) - in the *Amazon S3 User Guide*. + **General purpose buckets** - Setting this header to `true` causes + Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. + Also, specifying this header with a PUT action doesn't affect + bucket-level settings for S3 Bucket Key. - Note: - This functionality is not supported for directory buckets. Directory - buckets use the bucket owner enforced setting for S3 Object Ownership. + **Directory buckets** - S3 Bucket Keys are always enabled for `GET` and + `PUT` operations in a directory bucket and can't be disabled. S3 Bucket + Keys aren't supported, when you copy SSE-KMS encrypted objects from + general purpose buckets to directory buckets, from directory buckets to + general purpose buckets, or between directory buckets, through + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html), + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), + [the Copy operation in Batch + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops), + or [the import + jobs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job). + In this case, Amazon S3 makes a call to KMS every time a copy request is + made for a KMS-encrypted object. """ - bucket_namespace: str | None = ... + request_payer: str | None = ... """ - Specifies the namespace where you want to create your general purpose - bucket. When you create a general purpose bucket, you can choose to - create a bucket in the shared global namespace or you can choose to - create a bucket in your account regional namespace. Your account - regional namespace is a subdivision of the global namespace that only - your account can create buckets in. For more information on bucket - namespaces, see [Namespaces for general purpose - buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/gpbucketnamespaces.html). - - General purpose buckets in your account regional namespace must follow a - specific naming convention. These buckets consist of a bucket name - prefix that you create, and a suffix that contains your 12-digit Amazon - Web Services Account ID, the Amazon Web Services Region code, and ends - with `-an`. Bucket names must follow the format - `bucket-name-prefix-accountId-region-an` (for example, - `amzn-s3-demo-bucket-111122223333-us-west-2-an`). For information about - bucket naming restrictions, see [Account regional namespace naming - rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html#account-regional-naming-rules) + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the *Amazon S3 User Guide*. Note: This functionality is not supported for directory buckets. """ - -@dataclass(kw_only=True) -class CreateBucketMetadataConfigurationInput(_SerdeShape): - """Dataclass for CreateBucketMetadataConfigurationInput structure.""" - - bucket: str | None = ... - """ - The general purpose bucket that you want to create the metadata - configuration for. + tagging: str | None = ... """ - content_md5: str | None = ... - """The `Content-MD5` header for the metadata configuration.""" - checksum_algorithm: str | None = ... - """The checksum algorithm to use with your metadata configuration.""" - metadata_configuration: MetadataConfiguration | None = ... - """The contents of your metadata configuration.""" - expected_bucket_owner: str | None = ... + The tag-set for the object. The tag-set must be encoded as URL Query + parameters. + + Note: + This functionality is not supported for directory buckets. """ - The expected owner of the general purpose bucket that corresponds to - your metadata configuration. + object_lock_mode: str | None = ... """ + Specifies the Object Lock mode that you want to apply to the uploaded + object. -@dataclass(kw_only=True) -class CreateBucketMetadataConfigurationOutput(_SerdeShape): - """Dataclass for CreateBucketMetadataConfigurationOutput structure.""" - - response_metadata: ResponseMetadata = ... + Note: + This functionality is not supported for directory buckets. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + object_lock_retain_until_date: datetime | None = ... """ + Specifies the date and time when you want the Object Lock to expire. -@dataclass(kw_only=True) -class CreateBucketMetadataTableConfigurationInput(_SerdeShape): - """Dataclass for CreateBucketMetadataTableConfigurationInput structure.""" - - bucket: str | None = ... + Note: + This functionality is not supported for directory buckets. """ - The general purpose bucket that you want to create the metadata table - configuration for. + object_lock_legal_hold_status: str | None = ... """ - content_md5: str | None = ... - """The `Content-MD5` header for the metadata table configuration.""" - checksum_algorithm: str | None = ... - """The checksum algorithm to use with your metadata table configuration.""" - metadata_table_configuration: MetadataTableConfiguration | None = ... - """The contents of your metadata table configuration.""" - expected_bucket_owner: str | None = ... + Specifies whether you want to apply a legal hold to the uploaded object. + + Note: + This functionality is not supported for directory buckets. """ - The expected owner of the general purpose bucket that corresponds to - your metadata table configuration. + object_lock_event_hold: str | None = ... """ + Specifies the event hold status to apply to the uploaded object. Set to + `ON` to enable or `OFF` to disable. -@dataclass(kw_only=True) -class CreateBucketMetadataTableConfigurationOutput(_SerdeShape): - """Dataclass for CreateBucketMetadataTableConfigurationOutput structure.""" - - response_metadata: ResponseMetadata = ... + Note: + This functionality is not supported for directory buckets. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + object_lock_event_hold_duration_days: int | None = ... """ + Specifies the event hold duration in days to apply to the uploaded + object. You cannot specify a duration in both days and years. -@dataclass(kw_only=True) -class CreateBucketOutput(_SerdeShape): - """Dataclass for CreateBucketOutput structure.""" - - location: str | None = ... - """ - A forward slash followed by the name of the bucket for all account - regional namespace buckets and all global general purpose buckets - created in us-east-1. For example, `/amzn-s3-demo-bucket`. For global - general purpose buckets created in other Amazon Web Services Regions, - the Location field is the global endpoint URL. For example, - `http://amzn-s3-demo-bucket.s3.amazonaws.com/`. + Note: + This functionality is not supported for directory buckets. """ - bucket_arn: str | None = ... + object_lock_event_hold_duration_years: int | None = ... """ - The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify - Amazon Web Services resources across all of Amazon Web Services. + Specifies the event hold duration in years to apply to the uploaded + object. You cannot specify a duration in both days and years. Note: - This parameter is only supported for S3 directory buckets. For more - information, see [Using tags with directory - buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html). + This functionality is not supported for directory buckets. """ - response_metadata: ResponseMetadata = ... + expected_bucket_owner: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm that you want Amazon S3 to use to create the + checksum for the object. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_type: str | None = ... + """ + Indicates the checksum type that you want Amazon S3 to use to calculate + the object's checksum value. For more information, see [Checking object + integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ -@dataclass(kw_only=True) -class CreateMultipartUploadInput(_SerdeShape): - """Dataclass for CreateMultipartUploadInput structure.""" +class CreateMultipartUploadInputDict(TypedDict, total=False): + """Dictionary form of `CreateMultipartUploadInput`.""" - acl: str | None = ... + acl: str | None """ The canned ACL to apply to the object. Amazon S3 supports a set of predefined ACLs, known as *canned ACLs*. Each canned ACL has a @@ -2953,7 +5377,7 @@ class CreateMultipartUploadInput(_SerdeShape): - This functionality is not supported for Amazon S3 on Outposts. """ - bucket: str | None = ... + bucket: Required[str] """ The name of the bucket where the multipart upload is initiated and where the object is uploaded. @@ -2997,11 +5421,11 @@ class CreateMultipartUploadInput(_SerdeShape): Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the *Amazon S3 User Guide*. """ - cache_control: str | None = ... + cache_control: str | None """Specifies caching behavior along the request/reply chain.""" - content_disposition: str | None = ... + content_disposition: str | None """Specifies presentational information for the object.""" - content_encoding: str | None = ... + content_encoding: str | None """ Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type @@ -3011,13 +5435,13 @@ class CreateMultipartUploadInput(_SerdeShape): For directory buckets, only the `aws-chunked` value is supported in this header field. """ - content_language: str | None = ... + content_language: str | None """The language that the content is in.""" - content_type: str | None = ... + content_type: str | None """A standard MIME type describing the format of the object data.""" - expires: str | None = ... + expires: str | None """The date and time at which the object is no longer cacheable.""" - grant_full_control: str | None = ... + grant_full_control: str | None """ Specify access permissions explicitly to give the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. @@ -3077,7 +5501,7 @@ class CreateMultipartUploadInput(_SerdeShape): - This functionality is not supported for Amazon S3 on Outposts. """ - grant_read: str | None = ... + grant_read: str | None """ Specify access permissions explicitly to allow grantee to read the object data and its metadata. @@ -3137,7 +5561,7 @@ class CreateMultipartUploadInput(_SerdeShape): - This functionality is not supported for Amazon S3 on Outposts. """ - grant_read_acp: str | None = ... + grant_read_acp: str | None """ Specify access permissions explicitly to allows grantee to read the object ACL. @@ -3197,7 +5621,7 @@ class CreateMultipartUploadInput(_SerdeShape): - This functionality is not supported for Amazon S3 on Outposts. """ - grant_write_acp: str | None = ... + grant_write_acp: str | None """ Specify access permissions explicitly to allows grantee to allow grantee to write the ACL for the applicable object. @@ -3257,11 +5681,11 @@ class CreateMultipartUploadInput(_SerdeShape): - This functionality is not supported for Amazon S3 on Outposts. """ - key: str | None = ... + key: Required[str] """Object key for which the multipart upload is to be initiated.""" - metadata: dict[str, str] | None = ... + metadata: Mapping[str, str] | None """A map of metadata to store with the object in S3.""" - server_side_encryption: str | None = ... + server_side_encryption: str | None """ The server-side encryption algorithm used when you store this object in Amazon S3 or Amazon FSx. @@ -3320,7 +5744,7 @@ class CreateMultipartUploadInput(_SerdeShape): automatically decrypted as it is read. These processes are handled transparently by Amazon FSx. """ - storage_class: str | None = ... + storage_class: str | None """ By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The STANDARD storage class provides high durability and @@ -3336,7 +5760,7 @@ class CreateMultipartUploadInput(_SerdeShape): - Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. """ - website_redirect_location: str | None = ... + website_redirect_location: str | None """ If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. @@ -3345,7 +5769,7 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - sse_customer_algorithm: str | None = ... + sse_customer_algorithm: str | None """ Specifies the algorithm to use when encrypting the object (for example, AES256). @@ -3353,7 +5777,7 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - sse_customer_key: str | None = ... + sse_customer_key: str | None """ Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is @@ -3364,7 +5788,7 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - sse_customer_key_md5: str | None = ... + sse_customer_key_md5: str | None """ Specifies the 128-bit MD5 digest of the customer-provided encryption key according to RFC 1321. Amazon S3 uses this header for a message @@ -3374,7 +5798,7 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - ssekms_key_id: str | None = ... + ssekms_key_id: str | None """ Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for object encryption. If the KMS key doesn't exist in the same account @@ -3403,7 +5827,7 @@ class CreateMultipartUploadInput(_SerdeShape): (`aws/s3`) isn't supported. Incorrect key specification results in an HTTP `400 Bad Request` error. """ - ssekms_encryption_context: str | None = ... + ssekms_encryption_context: str | None """ Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a Base64 encoded string @@ -3415,7 +5839,7 @@ class CreateMultipartUploadInput(_SerdeShape): context - the bucket Amazon Resource Name (ARN). An additional encryption context value is not supported. """ - bucket_key_enabled: bool | None = ... + bucket_key_enabled: bool | None """ Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using Key Management Service @@ -3440,7 +5864,7 @@ class CreateMultipartUploadInput(_SerdeShape): In this case, Amazon S3 makes a call to KMS every time a copy request is made for a KMS-encrypted object. """ - request_payer: str | None = ... + request_payer: str | None """ Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their @@ -3454,7 +5878,7 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - tagging: str | None = ... + tagging: str | None """ The tag-set for the object. The tag-set must be encoded as URL Query parameters. @@ -3462,7 +5886,7 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - object_lock_mode: str | None = ... + object_lock_mode: str | None """ Specifies the Object Lock mode that you want to apply to the uploaded object. @@ -3470,21 +5894,21 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - object_lock_retain_until_date: datetime | None = ... + object_lock_retain_until_date: datetime | None """ Specifies the date and time when you want the Object Lock to expire. Note: This functionality is not supported for directory buckets. """ - object_lock_legal_hold_status: str | None = ... + object_lock_legal_hold_status: str | None """ Specifies whether you want to apply a legal hold to the uploaded object. Note: This functionality is not supported for directory buckets. """ - object_lock_event_hold: str | None = ... + object_lock_event_hold: str | None """ Specifies the event hold status to apply to the uploaded object. Set to `ON` to enable or `OFF` to disable. @@ -3492,7 +5916,7 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - object_lock_event_hold_duration_days: int | None = ... + object_lock_event_hold_duration_days: int | None """ Specifies the event hold duration in days to apply to the uploaded object. You cannot specify a duration in both days and years. @@ -3500,7 +5924,7 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - object_lock_event_hold_duration_years: int | None = ... + object_lock_event_hold_duration_years: int | None """ Specifies the event hold duration in years to apply to the uploaded object. You cannot specify a duration in both days and years. @@ -3508,20 +5932,20 @@ class CreateMultipartUploadInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied). """ - checksum_algorithm: str | None = ... + checksum_algorithm: str | None """ Indicates the algorithm that you want Amazon S3 to use to create the checksum for the object. For more information, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_type: str | None = ... + checksum_type: str | None """ Indicates the checksum type that you want Amazon S3 to use to calculate the object's checksum value. For more information, see [Checking object @@ -3743,6 +6167,103 @@ class CreateSessionInput(_SerdeShape): made for a KMS-encrypted object. """ +class CreateSessionInputDict(TypedDict, total=False): + """Dictionary form of `CreateSessionInput`.""" + + session_mode: str | None + """ + Specifies the mode of the session that will be created, either + `ReadWrite` or `ReadOnly`. If no session mode is specified, the default + behavior attempts to create a session with the maximum allowable + privilege. It will first attempt to create a `ReadWrite` session, and if + that is not allowed by permissions, it will attempt to create a + `ReadOnly` session. If neither session type is allowed, the request will + return an Access Denied error. A `ReadWrite` session is capable of + executing all the Zonal endpoint API operations on a directory bucket. A + `ReadOnly` session is constrained to execute the following Zonal + endpoint API operations: `GetObject`, `HeadObject`, `ListObjectsV2`, + `GetObjectAttributes`, `ListParts`, and `ListMultipartUploads`. + """ + bucket: Required[str] + """The name of the bucket that you create a session for.""" + server_side_encryption: str | None + """ + The server-side encryption algorithm to use when you store objects in + the directory bucket. + + For directory buckets, there are only two supported options for + server-side encryption: server-side encryption with Amazon S3 managed + keys (SSE-S3) (`AES256`) and server-side encryption with KMS keys + (SSE-KMS) (`aws:kms`). By default, Amazon S3 encrypts data with SSE-S3. + For more information, see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/serv-side-encryption.html) + in the *Amazon S3 User Guide*. + + **S3 access points for Amazon FSx** - When accessing data stored in + Amazon FSx file systems using S3 access points, the only valid server + side encryption option is `aws:fsx`. All Amazon FSx file systems have + encryption configured by default and are encrypted at rest. Data is + automatically encrypted before being written to the file system, and + automatically decrypted as it is read. These processes are handled + transparently by Amazon FSx. + """ + ssekms_key_id: str | None + """ + If you specify `x-amz-server-side-encryption` with `aws:kms`, you must + specify the ` x-amz-server-side-encryption-aws-kms-key-id` header with + the ID (Key ID or Key ARN) of the KMS symmetric encryption customer + managed key to use. Otherwise, you get an HTTP `400 Bad Request` error. + Only use the key ID or key ARN. The key alias format of the KMS key + isn't supported. Also, if the KMS key doesn't exist in the same + account that't issuing the command, you must use the full Key ARN not + the Key ID. + + Your SSE-KMS configuration can only support 1 [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + per directory bucket's lifetime. The [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + (`aws/s3`) isn't supported. + """ + ssekms_encryption_context: str | None + """ + Specifies the Amazon Web Services KMS Encryption Context as an + additional encryption context to use for object encryption. The value of + this header is a Base64 encoded string of a UTF-8 encoded JSON, which + contains the encryption context as key-value pairs. This value is stored + as object metadata and automatically gets passed on to Amazon Web + Services KMS for future `GetObject` operations on this object. + + **General purpose buckets** - This value must be explicitly added during + `CopyObject` operations if you want an additional encryption context for + your object. For more information, see [Encryption + context](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html#encryption-context) + in the *Amazon S3 User Guide*. + + **Directory buckets** - You can optionally provide an explicit + encryption context value. The value must match the default encryption + context - the bucket Amazon Resource Name (ARN). An additional + encryption context value is not supported. + """ + bucket_key_enabled: bool | None + """ + Specifies whether Amazon S3 should use an S3 Bucket Key for object + encryption with server-side encryption using KMS keys (SSE-KMS). + + S3 Bucket Keys are always enabled for `GET` and `PUT` operations in a + directory bucket and can't be disabled. S3 Bucket Keys aren't + supported, when you copy SSE-KMS encrypted objects from general purpose + buckets to directory buckets, from directory buckets to general purpose + buckets, or between directory buckets, through + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html), + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), + [the Copy operation in Batch + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops), + or [the import + jobs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job). + In this case, Amazon S3 makes a call to KMS every time a copy request is + made for a KMS-encrypted object. + """ + @dataclass(kw_only=True) class CreateSessionOutput(_SerdeShape): """Dataclass for CreateSessionOutput structure.""" @@ -3850,6 +6371,66 @@ class CSVInput(_SerdeShape): value to TRUE may lower performance. """ +class CSVInputDict(TypedDict, total=False): + """Dictionary form of `CSVInput`.""" + + file_header_info: str | None + """ + Describes the first line of input. Valid values are: + + - `NONE`: First line is not a header. + + - `IGNORE`: First line is a header, but you can't use the header values + to indicate the column in an expression. You can use column position + (such as _1, _2, ...) to indicate the column + (`SELECT s._1 FROM OBJECT s`). + + - `Use`: First line is a header, and you can use the header value to + identify a column in an expression (`SELECT "name" FROM OBJECT`). + """ + comments: str | None + """ + A single character used to indicate that a row should be ignored when + the character is present at the start of that row. You can specify any + character to indicate a comment line. The default character is `#`. + + Default: `#` + """ + quote_escape_character: str | None + """ + A single character used for escaping the quotation mark character inside + an already escaped value. For example, the value `\"\"\" a , b \"\"\"` is + parsed as `" a , b "`. + """ + record_delimiter: str | None + """ + A single character used to separate individual records in the input. + Instead of the default value, you can specify an arbitrary delimiter. + """ + field_delimiter: str | None + """ + A single character used to separate individual fields in a record. You + can specify an arbitrary delimiter. + """ + quote_character: str | None + """ + A single character used for escaping when the field delimiter is part of + the value. For example, if the value is `a, b`, Amazon S3 wraps this + field value in quotation marks, as follows: `" a , b "`. + + Type: String + + Default: `"` + + Ancestors: `CSV` + """ + allow_quoted_record_delimiter: bool | None + """ + Specifies that CSV field values may contain quoted record delimiters and + such records should be allowed. Default value is FALSE. Setting this + value to TRUE may lower performance. + """ + @dataclass(kw_only=True) class CSVOutput(_SerdeShape): """ @@ -3887,6 +6468,39 @@ class CSVOutput(_SerdeShape): field value in quotation marks, as follows: `" a , b "`. """ +class CSVOutputDict(TypedDict, total=False): + """Dictionary form of `CSVOutput`.""" + + quote_fields: str | None + """ + Indicates whether to use quotation marks around output fields. + + - `ALWAYS`: Always use quotation marks for output fields. + + - `ASNEEDED`: Use quotation marks for output fields when needed. + """ + quote_escape_character: str | None + """ + The single character used for escaping the quote character inside an + already escaped value. + """ + record_delimiter: str | None + """ + A single character used to separate individual records in the output. + Instead of the default value, you can specify an arbitrary delimiter. + """ + field_delimiter: str | None + """ + The value used to separate individual fields in a record. You can + specify an arbitrary delimiter. + """ + quote_character: str | None + """ + A single character used for escaping when the field delimiter is part of + the value. For example, if the value is `a, b`, Amazon S3 wraps this + field value in quotation marks, as follows: `" a , b "`. + """ + class DataRedundancy(UnknownEnumMixin, StrEnum): SINGLE_AVAILABILITY_ZONE = "SingleAvailabilityZone" SINGLE_LOCAL_ZONE = "SingleLocalZone" @@ -3905,23 +6519,49 @@ class DefaultRetention(_SerdeShape): time. """ - mode: str | None = ... + mode: str | None = ... + """ + The default Object Lock retention mode you want to apply to new objects + placed in the specified bucket. Must be used with either `Days` or + `Years`. + """ + days: int | None = ... + """ + The number of days that you want to specify for the default retention + period. Must be used with `Mode`. + """ + years: int | None = ... + """ + The number of years that you want to specify for the default retention + period. Must be used with `Mode`. + """ + default_event_hold: EventHoldDuration | None = ... + """ + The default event hold duration to be applied to new objects placed in + the specified bucket. When configured, new objects will automatically + have an event hold enabled with this duration. + """ + +class DefaultRetentionDict(TypedDict, total=False): + """Dictionary form of `DefaultRetention`.""" + + mode: str | None """ The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either `Days` or `Years`. """ - days: int | None = ... + days: int | None """ The number of days that you want to specify for the default retention period. Must be used with `Mode`. """ - years: int | None = ... + years: int | None """ The number of years that you want to specify for the default retention period. Must be used with `Mode`. """ - default_event_hold: EventHoldDuration | None = ... + default_event_hold: EventHoldDuration | EventHoldDurationDict | None """ The default event hold duration to be applied to new objects placed in the specified bucket. When configured, new objects will automatically @@ -3949,6 +6589,26 @@ class Delete(_SerdeShape): you must set its value to `true`. """ +class DeleteDict(TypedDict, total=False): + """Dictionary form of `Delete`.""" + + objects: Required[Sequence[ObjectIdentifier | ObjectIdentifierDict]] + """ + The object to delete. + + Note: + **Directory buckets** - For directory buckets, an object that's + composed entirely of whitespace characters is not supported by the + `DeleteObjects` API operation. The request will receive a + `400 Bad Request` error and none of the objects in the request will be + deleted. + """ + quiet: bool | None + """ + Element to enable quiet mode for the request. When you add this element, + you must set its value to `true`. + """ + @dataclass(kw_only=True) class DeleteBucketAnalyticsConfigurationInput(_SerdeShape): """Dataclass for DeleteBucketAnalyticsConfigurationInput structure.""" @@ -3964,6 +6624,20 @@ class DeleteBucketAnalyticsConfigurationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class DeleteBucketAnalyticsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketAnalyticsConfigurationInput`.""" + + bucket: Required[str] + """The name of the bucket from which an analytics configuration is deleted.""" + id: Required[str] + """The ID that identifies the analytics configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class DeleteBucketAnalyticsConfigurationOutput(_SerdeShape): """Dataclass for DeleteBucketAnalyticsConfigurationOutput structure.""" @@ -3989,6 +6663,18 @@ class DeleteBucketCorsInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class DeleteBucketCorsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketCorsInput`.""" + + bucket: Required[str] + """Specifies the bucket whose `cors` configuration is being deleted.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class DeleteBucketCorsOutput(_SerdeShape): """Dataclass for DeleteBucketCorsOutput structure.""" @@ -4034,6 +6720,38 @@ class DeleteBucketEncryptionInput(_SerdeShape): status code `501 Not Implemented`. """ +class DeleteBucketEncryptionInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketEncryptionInput`.""" + + bucket: Required[str] + """ + The name of the bucket containing the server-side encryption + configuration to delete. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class DeleteBucketEncryptionOutput(_SerdeShape): """Dataclass for DeleteBucketEncryptionOutput structure.""" @@ -4078,6 +6796,37 @@ class DeleteBucketInput(_SerdeShape): status code `501 Not Implemented`. """ +class DeleteBucketInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketInput`.""" + + bucket: Required[str] + """ + Specifies the bucket being deleted. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class DeleteBucketIntelligentTieringConfigurationInput(_SerdeShape): """ @@ -4099,6 +6848,23 @@ class DeleteBucketIntelligentTieringConfigurationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class DeleteBucketIntelligentTieringConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketIntelligentTieringConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the Amazon S3 bucket whose configuration you want to modify + or retrieve. + """ + id: Required[str] + """The ID used to identify the S3 Intelligent-Tiering configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class DeleteBucketIntelligentTieringConfigurationOutput(_SerdeShape): """ @@ -4148,6 +6914,39 @@ class DeleteBucketInventoryConfigurationInput(_SerdeShape): status code `501 Not Implemented`. """ +class DeleteBucketInventoryConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketInventoryConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the bucket containing the inventory configuration to delete. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + id: Required[str] + """The ID used to identify the inventory configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class DeleteBucketInventoryConfigurationOutput(_SerdeShape): """Dataclass for DeleteBucketInventoryConfigurationOutput structure.""" @@ -4177,6 +6976,22 @@ class DeleteBucketLifecycleInput(_SerdeShape): supported for directory bucket lifecycle configurations. """ +class DeleteBucketLifecycleInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketLifecycleInput`.""" + + bucket: Required[str] + """The bucket name of the lifecycle to delete.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + @dataclass(kw_only=True) class DeleteBucketLifecycleOutput(_SerdeShape): """Dataclass for DeleteBucketLifecycleOutput structure.""" @@ -4204,6 +7019,20 @@ class DeleteBucketMetadataConfigurationInput(_SerdeShape): remove the metadata table configuration from. """ +class DeleteBucketMetadataConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketMetadataConfigurationInput`.""" + + bucket: Required[str] + """ + The general purpose bucket that you want to remove the metadata + configuration from. + """ + expected_bucket_owner: str | None + """ + The expected bucket owner of the general purpose bucket that you want to + remove the metadata table configuration from. + """ + @dataclass(kw_only=True) class DeleteBucketMetadataConfigurationOutput(_SerdeShape): """Dataclass for DeleteBucketMetadataConfigurationOutput structure.""" @@ -4231,6 +7060,20 @@ class DeleteBucketMetadataTableConfigurationInput(_SerdeShape): remove the metadata table configuration from. """ +class DeleteBucketMetadataTableConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketMetadataTableConfigurationInput`.""" + + bucket: Required[str] + """ + The general purpose bucket that you want to remove the metadata table + configuration from. + """ + expected_bucket_owner: str | None + """ + The expected bucket owner of the general purpose bucket that you want to + remove the metadata table configuration from. + """ + @dataclass(kw_only=True) class DeleteBucketMetadataTableConfigurationOutput(_SerdeShape): """Dataclass for DeleteBucketMetadataTableConfigurationOutput structure.""" @@ -4281,6 +7124,43 @@ class DeleteBucketMetricsConfigurationInput(_SerdeShape): status code `501 Not Implemented`. """ +class DeleteBucketMetricsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketMetricsConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the bucket containing the metrics configuration to delete. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + id: Required[str] + """ + The ID used to identify the metrics configuration. The ID has a 64 + character limit and can only contain letters, numbers, periods, dashes, + and underscores. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class DeleteBucketMetricsConfigurationOutput(_SerdeShape): """Dataclass for DeleteBucketMetricsConfigurationOutput structure.""" @@ -4318,6 +7198,18 @@ class DeleteBucketOwnershipControlsInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class DeleteBucketOwnershipControlsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketOwnershipControlsInput`.""" + + bucket: Required[str] + """The Amazon S3 bucket whose `OwnershipControls` you want to delete.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class DeleteBucketOwnershipControlsOutput(_SerdeShape): """Dataclass for DeleteBucketOwnershipControlsOutput structure.""" @@ -4362,6 +7254,37 @@ class DeleteBucketPolicyInput(_SerdeShape): status code `501 Not Implemented`. """ +class DeleteBucketPolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketPolicyInput`.""" + + bucket: Required[str] + """ + The bucket name. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class DeleteBucketPolicyOutput(_SerdeShape): """Dataclass for DeleteBucketPolicyOutput structure.""" @@ -4387,6 +7310,18 @@ class DeleteBucketReplicationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class DeleteBucketReplicationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketReplicationInput`.""" + + bucket: Required[str] + """The bucket name.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class DeleteBucketReplicationOutput(_SerdeShape): """Dataclass for DeleteBucketReplicationOutput structure.""" @@ -4399,13 +7334,25 @@ class DeleteBucketReplicationOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class DeleteBucketTaggingInput(_SerdeShape): - """Dataclass for DeleteBucketTaggingInput structure.""" +@dataclass(kw_only=True) +class DeleteBucketTaggingInput(_SerdeShape): + """Dataclass for DeleteBucketTaggingInput structure.""" + + bucket: str | None = ... + """The bucket that has the tag set to be removed.""" + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class DeleteBucketTaggingInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketTaggingInput`.""" - bucket: str | None = ... + bucket: Required[str] """The bucket that has the tag set to be removed.""" - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails @@ -4437,6 +7384,18 @@ class DeleteBucketWebsiteInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class DeleteBucketWebsiteInputDict(TypedDict, total=False): + """Dictionary form of `DeleteBucketWebsiteInput`.""" + + bucket: Required[str] + """The bucket name for which you want to remove the website configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class DeleteBucketWebsiteOutput(_SerdeShape): """Dataclass for DeleteBucketWebsiteOutput structure.""" @@ -4531,6 +7490,17 @@ class DeleteMarkerReplication(_SerdeShape): Indicates whether to replicate delete markers. """ +class DeleteMarkerReplicationDict(TypedDict, total=False): + """Dictionary form of `DeleteMarkerReplication`.""" + + status: str | None + """ + Indicates whether to replicate delete markers. + + Note: + Indicates whether to replicate delete markers. + """ + class DeleteMarkerReplicationStatus(UnknownEnumMixin, StrEnum): ENABLED = "Enabled" DISABLED = "Disabled" @@ -4574,6 +7544,44 @@ class DeleteObjectAnnotationInput(_SerdeShape): the provided value. """ +class DeleteObjectAnnotationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteObjectAnnotationInput`.""" + + bucket: Required[str] + """The name of the bucket that contains the object.""" + key: Required[str] + """The object key.""" + annotation_name: Required[str] + """ + The name of the annotation to delete. Annotation names are UTF-8 encoded + and cannot start with `aws` or `s3` (case-insensitive). + + Length Constraints: Minimum length of 1. Maximum length of 512 bytes. + """ + version_id: str | None + """The version ID of the object.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """The account ID of the expected bucket owner.""" + object_if_match: str | None + """ + If specified, the operation only succeeds if the object's ETag matches + the provided value. + """ + @dataclass(kw_only=True) class DeleteObjectAnnotationOutput(_SerdeShape): """Dataclass for DeleteObjectAnnotationOutput structure.""" @@ -4735,6 +7743,141 @@ class DeleteObjectInput(_SerdeShape): or individually. """ +class DeleteObjectInputDict(TypedDict, total=False): + """Dictionary form of `DeleteObjectInput`.""" + + bucket: Required[str] + """ + The bucket name of the bucket containing the object. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """Key name of the object to delete.""" + mfa: str | None + """ + The concatenation of the authentication device's serial number, a + space, and the value that is displayed on your authentication device. + Required to permanently delete a versioned object if versioning is + configured with MFA delete enabled. + + Note: + This functionality is not supported for directory buckets. + """ + version_id: str | None + """ + Version ID used to reference a specific version of the object. + + Note: + For directory buckets in this API operation, only the `null` value of + the version ID is supported. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + bypass_governance_retention: bool | None + """ + Indicates whether S3 Object Lock should bypass Governance-mode + restrictions to process this operation. To use this header, you must + have the `s3:BypassGovernanceRetention` permission. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + if_match: str | None + """ + Deletes the object if the ETag (entity tag) value provided during the + delete operation matches the ETag of the object in S3. If the ETag + values do not match, the operation returns a `412 Precondition Failed` + error. + + Expects the ETag value as a string. `If-Match` does accept a string + value of an '*' (asterisk) character to denote a match of any ETag. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). + """ + if_match_last_modified_time: datetime | None + """ + If present, the object is deleted only if its modification times matches + the provided `Timestamp`. If the `Timestamp` values do not match, the + operation returns a `412 Precondition Failed` error. If the `Timestamp` + matches or if the object doesn't exist, the operation returns a + `204 Success (No Content)` response. + + Note: + This functionality is only supported for directory buckets. + """ + if_match_size: int | None + """ + If present, the object is deleted only if its size matches the provided + size in bytes. If the `Size` value does not match, the operation returns + a `412 Precondition Failed` error. If the `Size` matches or if the + object doesn't exist, the operation returns a `204 Success (No Content)` + response. + + Note: + This functionality is only supported for directory buckets. + Warning: + You can use the `If-Match`, `x-amz-if-match-last-modified-time` and + `x-amz-if-match-size` conditional headers in conjunction with each-other + or individually. + """ + @dataclass(kw_only=True) class DeleteObjectOutput(_SerdeShape): """Dataclass for DeleteObjectOutput structure.""" @@ -4751,38 +7894,181 @@ class DeleteObjectOutput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - version_id: str | None = ... + version_id: str | None = ... + """ + Returns the version ID of the delete marker created as a result of the + DELETE operation. + + Note: + This functionality is not supported for directory buckets. + """ + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DeleteObjectsInput(_SerdeShape): + """Dataclass for DeleteObjectsInput structure.""" + + bucket: str | None = ... + """ + The bucket name containing the objects to delete. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + delete: Delete | None = ... + """Container for the request.""" + mfa: str | None = ... + """ + The concatenation of the authentication device's serial number, a + space, and the value that is displayed on your authentication device. + Required to permanently delete a versioned object if versioning is + configured with MFA delete enabled. + + When performing the `DeleteObjects` operation on an MFA delete enabled + bucket, which attempts to delete the specified versioned objects, you + must include an MFA token. If you don't provide an MFA token, the + entire request will fail, even if there are non-versioned objects that + you are trying to delete. If you provide an invalid token, whether there + are versioned object keys in the request or not, the entire Multi-Object + Delete request will fail. For information about MFA Delete, see [MFA + Delete](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html#MultiFactorAuthenticationDelete) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + request_payer: str | None = ... """ - Returns the version ID of the delete marker created as a result of the - DELETE operation. + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. Note: This functionality is not supported for directory buckets. """ - request_charged: str | None = ... + bypass_governance_retention: bool | None = ... """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. + Specifies whether you want to delete this object even if it has a + Governance-type Object Lock in place. To use this header, you must have + the `s3:BypassGovernanceRetention` permission. Note: This functionality is not supported for directory buckets. """ - response_metadata: ResponseMetadata = ... + expected_bucket_owner: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum-`*`algorithm`*` ` or + `x-amz-trailer` header sent. Otherwise, Amazon S3 fails the request with + the HTTP status code `400 Bad Request`. -@dataclass(kw_only=True) -class DeleteObjectsInput(_SerdeShape): - """Dataclass for DeleteObjectsInput structure.""" + For the `x-amz-checksum-`*`algorithm`*` ` header, replace + ` `*`algorithm`*` ` with the supported algorithm from the following + list: - bucket: str | None = ... + - `CRC32` + + - `CRC32C` + + - `CRC64NVME` + + - `MD5` + + - `SHA1` + + - `SHA256` + + - `SHA512` + + - `XXHASH3` + + - `XXHASH64` + + - `XXHASH128` + + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If the individual checksum value you provide through + `x-amz-checksum-`*`algorithm`*` ` doesn't match the checksum algorithm + you set through `x-amz-sdk-checksum-algorithm`, Amazon S3 fails the + request with a `BadDigest` error. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + +class DeleteObjectsInputDict(TypedDict, total=False): + """Dictionary form of `DeleteObjectsInput`.""" + + bucket: Required[str] """ The bucket name containing the objects to delete. @@ -4825,9 +8111,9 @@ class DeleteObjectsInput(_SerdeShape): Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the *Amazon S3 User Guide*. """ - delete: Delete | None = ... + delete: Required[Delete | DeleteDict] """Container for the request.""" - mfa: str | None = ... + mfa: str | None """ The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device. @@ -4847,7 +8133,7 @@ class DeleteObjectsInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - request_payer: str | None = ... + request_payer: str | None """ Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their @@ -4861,7 +8147,7 @@ class DeleteObjectsInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - bypass_governance_retention: bool | None = ... + bypass_governance_retention: bool | None """ Specifies whether you want to delete this object even if it has a Governance-type Object Lock in place. To use this header, you must have @@ -4870,13 +8156,13 @@ class DeleteObjectsInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied). """ - checksum_algorithm: str | None = ... + checksum_algorithm: str | None """ Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional @@ -5001,6 +8287,51 @@ class DeleteObjectTaggingInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class DeleteObjectTaggingInputDict(TypedDict, total=False): + """Dictionary form of `DeleteObjectTaggingInput`.""" + + bucket: Required[str] + """ + The bucket name containing the objects from which to remove the tags. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """ + The key that identifies the object in the bucket from which to remove + all tags. + """ + version_id: str | None + """The versionId of the object that the tag-set will be removed from.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class DeleteObjectTaggingOutput(_SerdeShape): """Dataclass for DeleteObjectTaggingOutput structure.""" @@ -5031,6 +8362,21 @@ class DeletePublicAccessBlockInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class DeletePublicAccessBlockInputDict(TypedDict, total=False): + """Dictionary form of `DeletePublicAccessBlockInput`.""" + + bucket: Required[str] + """ + The Amazon S3 bucket whose `PublicAccessBlock` configuration you want to + delete. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class DeletePublicAccessBlockOutput(_SerdeShape): """Dataclass for DeletePublicAccessBlockOutput structure.""" @@ -5106,6 +8452,68 @@ class Destination(_SerdeShape): replication metrics and events. """ +class DestinationDict(TypedDict, total=False): + """Dictionary form of `Destination`.""" + + bucket: Required[str] + """ + The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to + store the results. + """ + account: str | None + """ + Destination bucket owner account ID. In a cross-account scenario, if you + direct Amazon S3 to change replica ownership to the Amazon Web Services + account that owns the destination bucket by specifying the + `AccessControlTranslation` property, this is the account ID of the + destination bucket owner. For more information, see [Replication + Additional Configuration: Changing the Replica + Owner](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-change-owner.html) + in the *Amazon S3 User Guide*. + """ + storage_class: str | None + """ + The storage class to use when replicating objects, such as S3 Standard + or reduced redundancy. By default, Amazon S3 uses the storage class of + the source object to create the object replica. + + For valid values, see the `StorageClass` element of the [PUT Bucket + replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) + action in the *Amazon S3 API Reference*. + + `FSX_OPENZFS` is not an accepted value when replicating objects. + """ + access_control_translation: ( + AccessControlTranslation | AccessControlTranslationDict | None + ) + """ + Specify this only in a cross-account scenario (where source and + destination bucket owners are not the same), and you want to change + replica ownership to the Amazon Web Services account that owns the + destination bucket. If this is not specified in the replication + configuration, the replicas are owned by same Amazon Web Services + account that owns the source object. + """ + encryption_configuration: ( + EncryptionConfiguration | EncryptionConfigurationDict | None + ) + """ + A container that provides information about encryption. If + `SourceSelectionCriteria` is specified, you must specify this element. + """ + replication_time: ReplicationTime | ReplicationTimeDict | None + """ + A container specifying S3 Replication Time Control (S3 RTC), including + whether S3 RTC is enabled and the time when all objects and operations + on objects must be replicated. Must be specified together with a + `Metrics` block. + """ + metrics: Metrics | MetricsDict | None + """ + A container specifying replication metrics-related settings enabling + replication metrics and events. + """ + @dataclass(kw_only=True) class DestinationResult(_SerdeShape): """The destination information for the S3 Metadata configuration.""" @@ -5176,6 +8584,29 @@ class Encryption(_SerdeShape): specify the encryption context for the restore results. """ +class EncryptionDict(TypedDict, total=False): + """Dictionary form of `Encryption`.""" + + encryption_type: Required[str] + """ + The server-side encryption algorithm used when storing job results in + Amazon S3 (for example, AES256, `aws:kms`). + """ + kms_key_id: str | None + """ + If the encryption type is `aws:kms`, this optional value specifies the + ID of the symmetric encryption customer managed key to use for + encryption of job results. Amazon S3 only supports symmetric encryption + KMS keys. For more information, see [Asymmetric keys in + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + in the *Amazon Web Services Key Management Service Developer Guide*. + """ + kms_context: str | None + """ + If the encryption type is `aws:kms`, this optional value can be used to + specify the encryption context for the restore results. + """ + @dataclass(kw_only=True) class EncryptionConfiguration(_SerdeShape): """ @@ -5202,6 +8633,21 @@ class EncryptionConfiguration(_SerdeShape): in the *Amazon Web Services Key Management Service Developer Guide*. """ +class EncryptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `EncryptionConfiguration`.""" + + replica_kms_key_id: str | None + """ + Specifies the ID (Key ARN or Alias ARN) of the customer managed Amazon + Web Services KMS key stored in Amazon Web Services Key Management + Service (KMS) for the destination bucket. Amazon S3 uses this key to + encrypt replica objects. Amazon S3 only supports symmetric encryption + KMS keys. For more information, see [Asymmetric keys in Amazon Web + Services + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + in the *Amazon Web Services Key Management Service Developer Guide*. + """ + class EncryptionType(UnknownEnumMixin, StrEnum): NONE = "NONE" SSE_C = "SSE-C" @@ -6270,6 +9716,20 @@ class ErrorDocument(_SerdeShape): constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). """ +class ErrorDocumentDict(TypedDict, total=False): + """Dictionary form of `ErrorDocument`.""" + + key: Required[str] + """ + The object key name to use when a 4XX class error occurs. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + class Event(UnknownEnumMixin, StrEnum): """The bucket event for which to send notifications.""" @@ -6319,6 +9779,9 @@ class Event(UnknownEnumMixin, StrEnum): class EventBridgeConfiguration(_SerdeShape): """A container for specifying the configuration for Amazon EventBridge.""" +class EventBridgeConfigurationDict(TypedDict, total=False): + """Dictionary form of `EventBridgeConfiguration`.""" + @dataclass(kw_only=True) class EventHoldDuration(_SerdeShape): """ @@ -6337,6 +9800,20 @@ class EventHoldDuration(_SerdeShape): and the maximum value is 100. """ +class EventHoldDurationDict(TypedDict, total=False): + """Dictionary form of `EventHoldDuration`.""" + + days: int | None + """ + The number of days for the event hold duration. The minimum value is 1 + and the maximum value is 36,500. + """ + years: int | None + """ + The number of years for the event hold duration. The minimum value is 1 + and the maximum value is 100. + """ + @dataclass(kw_only=True) class ExistingObjectReplication(_SerdeShape): """ @@ -6349,7 +9826,13 @@ class ExistingObjectReplication(_SerdeShape): in the *Amazon S3 User Guide*. """ - status: str + status: str + """Specifies whether Amazon S3 replicates existing source bucket objects.""" + +class ExistingObjectReplicationDict(TypedDict, total=False): + """Dictionary form of `ExistingObjectReplication`.""" + + status: Required[str] """Specifies whether Amazon S3 replicates existing source bucket objects.""" class ExistingObjectReplicationStatus(UnknownEnumMixin, StrEnum): @@ -6399,6 +9882,21 @@ class FilterRule(_SerdeShape): value: str | None = ... """The value that the filter searches for in object key names.""" +class FilterRuleDict(TypedDict, total=False): + """Dictionary form of `FilterRule`.""" + + name: str | None + """ + The object key name prefix or suffix identifying one or more objects to + which the filtering rule applies. The maximum length is 1,024 + characters. Overlapping prefixes and suffixes are not supported. For + more information, see [Configuring Event + Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + in the *Amazon S3 User Guide*. + """ + value: str | None + """The value that the filter searches for in object key names.""" + class FilterRuleName(UnknownEnumMixin, StrEnum): PREFIX = "prefix" SUFFIX = "suffix" @@ -6415,6 +9913,17 @@ class GetBucketAbacInput(_SerdeShape): owner. """ +class GetBucketAbacInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketAbacInput`.""" + + bucket: Required[str] + """The name of the general purpose bucket.""" + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID of the general purpose bucket's + owner. + """ + @dataclass(kw_only=True) class GetBucketAbacOutput(_SerdeShape): """Dataclass for GetBucketAbacOutput structure.""" @@ -6459,6 +9968,35 @@ class GetBucketAccelerateConfigurationInput(_SerdeShape): This functionality is not supported for directory buckets. """ +class GetBucketAccelerateConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketAccelerateConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the bucket for which the accelerate configuration is + retrieved. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + @dataclass(kw_only=True) class GetBucketAccelerateConfigurationOutput(_SerdeShape): """Dataclass for GetBucketAccelerateConfigurationOutput structure.""" @@ -6510,6 +10048,31 @@ class GetBucketAclInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketAclInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketAclInput`.""" + + bucket: Required[str] + """ + Specifies the S3 bucket whose ACL is being requested. + + When you use this API operation with an access point, provide the alias + of the access point in place of the bucket name. + + When you use this API operation with an Object Lambda access point, + provide the alias of the Object Lambda access point in place of the + bucket name. If the Object Lambda access point alias in a request is not + valid, the error code `InvalidAccessPointAliasError` is returned. For + more information about `InvalidAccessPointAliasError`, see [List of + Error + Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList). + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketAclOutput(_SerdeShape): """Dataclass for GetBucketAclOutput structure.""" @@ -6544,6 +10107,23 @@ class GetBucketAnalyticsConfigurationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketAnalyticsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketAnalyticsConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the bucket from which an analytics configuration is + retrieved. + """ + id: Required[str] + """The ID that identifies the analytics configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketAnalyticsConfigurationOutput(_SerdeShape): """Dataclass for GetBucketAnalyticsConfigurationOutput structure.""" @@ -6584,6 +10164,31 @@ class GetBucketCorsInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketCorsInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketCorsInput`.""" + + bucket: Required[str] + """ + The bucket name for which to get the cors configuration. + + When you use this API operation with an access point, provide the alias + of the access point in place of the bucket name. + + When you use this API operation with an Object Lambda access point, + provide the alias of the Object Lambda access point in place of the + bucket name. If the Object Lambda access point alias in a request is not + valid, the error code `InvalidAccessPointAliasError` is returned. For + more information about `InvalidAccessPointAliasError`, see [List of + Error + Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList). + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketCorsOutput(_SerdeShape): """Dataclass for GetBucketCorsOutput structure.""" @@ -6634,6 +10239,38 @@ class GetBucketEncryptionInput(_SerdeShape): status code `501 Not Implemented`. """ +class GetBucketEncryptionInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketEncryptionInput`.""" + + bucket: Required[str] + """ + The name of the bucket from which the server-side encryption + configuration is retrieved. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class GetBucketEncryptionOutput(_SerdeShape): """Dataclass for GetBucketEncryptionOutput structure.""" @@ -6666,6 +10303,23 @@ class GetBucketIntelligentTieringConfigurationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketIntelligentTieringConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketIntelligentTieringConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the Amazon S3 bucket whose configuration you want to modify + or retrieve. + """ + id: Required[str] + """The ID used to identify the S3 Intelligent-Tiering configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketIntelligentTieringConfigurationOutput(_SerdeShape): """Dataclass for GetBucketIntelligentTieringConfigurationOutput structure.""" @@ -6715,6 +10369,40 @@ class GetBucketInventoryConfigurationInput(_SerdeShape): status code `501 Not Implemented`. """ +class GetBucketInventoryConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketInventoryConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the bucket containing the inventory configuration to + retrieve. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + id: Required[str] + """The ID used to identify the inventory configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class GetBucketInventoryConfigurationOutput(_SerdeShape): """Dataclass for GetBucketInventoryConfigurationOutput structure.""" @@ -6746,6 +10434,22 @@ class GetBucketLifecycleConfigurationInput(_SerdeShape): supported for directory bucket lifecycle configurations. """ +class GetBucketLifecycleConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketLifecycleConfigurationInput`.""" + + bucket: Required[str] + """The name of the bucket for which to get the lifecycle information.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + @dataclass(kw_only=True) class GetBucketLifecycleConfigurationOutput(_SerdeShape): """Dataclass for GetBucketLifecycleConfigurationOutput structure.""" @@ -6808,6 +10512,31 @@ class GetBucketLocationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketLocationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketLocationInput`.""" + + bucket: Required[str] + """ + The name of the bucket for which to get the location. + + When you use this API operation with an access point, provide the alias + of the access point in place of the bucket name. + + When you use this API operation with an Object Lambda access point, + provide the alias of the Object Lambda access point in place of the + bucket name. If the Object Lambda access point alias in a request is not + valid, the error code `InvalidAccessPointAliasError` is returned. For + more information about `InvalidAccessPointAliasError`, see [List of + Error + Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList). + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketLocationOutput(_SerdeShape): """Dataclass for GetBucketLocationOutput structure.""" @@ -6842,6 +10571,18 @@ class GetBucketLoggingInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketLoggingInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketLoggingInput`.""" + + bucket: Required[str] + """The bucket name for which to get the logging information.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketLoggingOutput(_SerdeShape): """Dataclass for GetBucketLoggingOutput structure.""" @@ -6876,6 +10617,20 @@ class GetBucketMetadataConfigurationInput(_SerdeShape): retrieve the metadata table configuration for. """ +class GetBucketMetadataConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketMetadataConfigurationInput`.""" + + bucket: Required[str] + """ + The general purpose bucket that corresponds to the metadata + configuration that you want to retrieve. + """ + expected_bucket_owner: str | None + """ + The expected owner of the general purpose bucket that you want to + retrieve the metadata table configuration for. + """ + @dataclass(kw_only=True) class GetBucketMetadataConfigurationOutput(_SerdeShape): """Dataclass for GetBucketMetadataConfigurationOutput structure.""" @@ -6914,6 +10669,20 @@ class GetBucketMetadataTableConfigurationInput(_SerdeShape): retrieve the metadata table configuration for. """ +class GetBucketMetadataTableConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketMetadataTableConfigurationInput`.""" + + bucket: Required[str] + """ + The general purpose bucket that corresponds to the metadata table + configuration that you want to retrieve. + """ + expected_bucket_owner: str | None + """ + The expected owner of the general purpose bucket that you want to + retrieve the metadata table configuration for. + """ + @dataclass(kw_only=True) class GetBucketMetadataTableConfigurationOutput(_SerdeShape): """Dataclass for GetBucketMetadataTableConfigurationOutput structure.""" @@ -6965,11 +10734,48 @@ class GetBucketMetadataTableConfigurationResult(_SerdeShape): error code and error message. """ -@dataclass(kw_only=True) -class GetBucketMetricsConfigurationInput(_SerdeShape): - """Dataclass for GetBucketMetricsConfigurationInput structure.""" +@dataclass(kw_only=True) +class GetBucketMetricsConfigurationInput(_SerdeShape): + """Dataclass for GetBucketMetricsConfigurationInput structure.""" + + bucket: str | None = ... + """ + The name of the bucket containing the metrics configuration to retrieve. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + id: str | None = ... + """ + The ID used to identify the metrics configuration. The ID has a 64 + character limit and can only contain letters, numbers, periods, dashes, + and underscores. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ - bucket: str | None = ... +class GetBucketMetricsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketMetricsConfigurationInput`.""" + + bucket: Required[str] """ The name of the bucket containing the metrics configuration to retrieve. @@ -6985,13 +10791,13 @@ class GetBucketMetricsConfigurationInput(_SerdeShape): rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) in the *Amazon S3 User Guide* """ - id: str | None = ... + id: Required[str] """ The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores. """ - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails @@ -7043,6 +10849,31 @@ class GetBucketNotificationConfigurationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketNotificationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketNotificationConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the bucket for which to get the notification configuration. + + When you use this API operation with an access point, provide the alias + of the access point in place of the bucket name. + + When you use this API operation with an Object Lambda access point, + provide the alias of the Object Lambda access point in place of the + bucket name. If the Object Lambda access point alias in a request is not + valid, the error code `InvalidAccessPointAliasError` is returned. For + more information about `InvalidAccessPointAliasError`, see [List of + Error + Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList). + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketNotificationConfigurationOutput(_SerdeShape): """ @@ -7091,6 +10922,21 @@ class GetBucketOwnershipControlsInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketOwnershipControlsInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketOwnershipControlsInput`.""" + + bucket: Required[str] + """ + The name of the Amazon S3 bucket whose `OwnershipControls` you want to + retrieve. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketOwnershipControlsOutput(_SerdeShape): """Dataclass for GetBucketOwnershipControlsOutput structure.""" @@ -7155,6 +11001,52 @@ class GetBucketPolicyInput(_SerdeShape): status code `501 Not Implemented`. """ +class GetBucketPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketPolicyInput`.""" + + bucket: Required[str] + """ + The bucket name to get the bucket policy for. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + + **Access points** - When you use this API operation with an access + point, provide the alias of the access point in place of the bucket + name. + + **Object Lambda access points** - When you use this API operation with + an Object Lambda access point, provide the alias of the Object Lambda + access point in place of the bucket name. If the Object Lambda access + point alias in a request is not valid, the error code + `InvalidAccessPointAliasError` is returned. For more information about + `InvalidAccessPointAliasError`, see [List of Error + Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList). + + Note: + Object Lambda access points are not supported by directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class GetBucketPolicyOutput(_SerdeShape): """Dataclass for GetBucketPolicyOutput structure.""" @@ -7185,6 +11077,21 @@ class GetBucketPolicyStatusInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketPolicyStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketPolicyStatusInput`.""" + + bucket: Required[str] + """ + The name of the Amazon S3 bucket whose policy status you want to + retrieve. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetBucketPolicyStatusOutput(_SerdeShape): """Dataclass for GetBucketPolicyStatusOutput structure.""" @@ -7200,11 +11107,183 @@ class GetBucketPolicyStatusOutput(_SerdeShape): """ @dataclass(kw_only=True) -class GetBucketReplicationInput(_SerdeShape): - """Dataclass for GetBucketReplicationInput structure.""" +class GetBucketReplicationInput(_SerdeShape): + """Dataclass for GetBucketReplicationInput structure.""" + + bucket: str | None = ... + """The bucket name for which to get the replication information.""" + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class GetBucketReplicationInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketReplicationInput`.""" + + bucket: Required[str] + """The bucket name for which to get the replication information.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class GetBucketReplicationOutput(_SerdeShape): + """Dataclass for GetBucketReplicationOutput structure.""" + + replication_configuration: ReplicationConfiguration | None = ... + """ + A container for replication rules. You can add up to 1,000 rules. The + maximum size of a replication configuration is 2 MB. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetBucketRequestPaymentInput(_SerdeShape): + """Dataclass for GetBucketRequestPaymentInput structure.""" + + bucket: str | None = ... + """ + The name of the bucket for which to get the payment request + configuration + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class GetBucketRequestPaymentInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketRequestPaymentInput`.""" + + bucket: Required[str] + """ + The name of the bucket for which to get the payment request + configuration + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class GetBucketRequestPaymentOutput(_SerdeShape): + """Dataclass for GetBucketRequestPaymentOutput structure.""" + + payer: str | None = ... + """Specifies who pays for the download and request fees.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetBucketTaggingInput(_SerdeShape): + """Dataclass for GetBucketTaggingInput structure.""" + + bucket: str | None = ... + """The name of the bucket for which to get the tagging information.""" + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class GetBucketTaggingInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketTaggingInput`.""" + + bucket: Required[str] + """The name of the bucket for which to get the tagging information.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class GetBucketTaggingOutput(_SerdeShape): + """Dataclass for GetBucketTaggingOutput structure.""" + + tag_set: list[Tag] + """Contains the tag set.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetBucketVersioningInput(_SerdeShape): + """Dataclass for GetBucketVersioningInput structure.""" + + bucket: str | None = ... + """The name of the bucket for which to get the versioning information.""" + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class GetBucketVersioningInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketVersioningInput`.""" + + bucket: Required[str] + """The name of the bucket for which to get the versioning information.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class GetBucketVersioningOutput(_SerdeShape): + """Dataclass for GetBucketVersioningOutput structure.""" + + status: str | None = ... + """The versioning state of the bucket.""" + mfa_delete: str | None = ... + """ + Specifies whether MFA delete is enabled in the bucket versioning + configuration. This element is only returned if the bucket has been + configured with MFA delete. If the bucket has never been so configured, + this element is not returned. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetBucketWebsiteInput(_SerdeShape): + """Dataclass for GetBucketWebsiteInput structure.""" bucket: str | None = ... - """The bucket name for which to get the replication information.""" + """The bucket name for which to get the website configuration.""" expected_bucket_owner: str | None = ... """ The account ID of the expected bucket owner. If the account ID that you @@ -7212,15 +11291,39 @@ class GetBucketReplicationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetBucketWebsiteInputDict(TypedDict, total=False): + """Dictionary form of `GetBucketWebsiteInput`.""" + + bucket: Required[str] + """The bucket name for which to get the website configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) -class GetBucketReplicationOutput(_SerdeShape): - """Dataclass for GetBucketReplicationOutput structure.""" +class GetBucketWebsiteOutput(_SerdeShape): + """Dataclass for GetBucketWebsiteOutput structure.""" - replication_configuration: ReplicationConfiguration | None = ... + redirect_all_requests_to: RedirectAllRequestsTo | None = ... """ - A container for replication rules. You can add up to 1,000 rules. The - maximum size of a replication configuration is 2 MB. + Specifies the redirect behavior of all requests to a website endpoint of + an Amazon S3 bucket. + """ + index_document: IndexDocument | None = ... + """ + The name of the index document for the website (for example + `index.html`). + """ + error_document: ErrorDocument | None = ... + """ + The object key name of the website error document to use for 4XX class + errors. """ + routing_rules: list[RoutingRule] | None = ... + """Rules that define when a redirect is applied and the redirect behavior.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -7230,13 +11333,50 @@ class GetBucketReplicationOutput(_SerdeShape): """ @dataclass(kw_only=True) -class GetBucketRequestPaymentInput(_SerdeShape): - """Dataclass for GetBucketRequestPaymentInput structure.""" +class GetObjectAclInput(_SerdeShape): + """Dataclass for GetObjectAclInput structure.""" bucket: str | None = ... """ - The name of the bucket for which to get the payment request - configuration + The bucket name that contains the object for which to get the ACL + information. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + key: str | None = ... + """The key of the object for which to get the ACL information.""" + version_id: str | None = ... + """ + Version ID used to reference a specific version of the object. + + Note: + This functionality is not supported for directory buckets. + """ + request_payer: str | None = ... + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. """ expected_bucket_owner: str | None = ... """ @@ -7245,27 +11385,52 @@ class GetBucketRequestPaymentInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ -@dataclass(kw_only=True) -class GetBucketRequestPaymentOutput(_SerdeShape): - """Dataclass for GetBucketRequestPaymentOutput structure.""" +class GetObjectAclInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectAclInput`.""" - payer: str | None = ... - """Specifies who pays for the download and request fees.""" - response_metadata: ResponseMetadata = ... + bucket: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The bucket name that contains the object for which to get the ACL + information. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """The key of the object for which to get the ACL information.""" + version_id: str | None """ + Version ID used to reference a specific version of the object. -@dataclass(kw_only=True) -class GetBucketTaggingInput(_SerdeShape): - """Dataclass for GetBucketTaggingInput structure.""" + Note: + This functionality is not supported for directory buckets. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. - bucket: str | None = ... - """The name of the bucket for which to get the tagging information.""" - expected_bucket_owner: str | None = ... + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails @@ -7273,11 +11438,24 @@ class GetBucketTaggingInput(_SerdeShape): """ @dataclass(kw_only=True) -class GetBucketTaggingOutput(_SerdeShape): - """Dataclass for GetBucketTaggingOutput structure.""" +class GetObjectAclOutput(_SerdeShape): + """Dataclass for GetObjectAclOutput structure.""" - tag_set: list[Tag] - """Contains the tag set.""" + owner: Owner | None = ... + """Container for the bucket owner's ID.""" + grants: list[Grant] | None = ... + """A list of grants.""" + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -7287,73 +11465,142 @@ class GetBucketTaggingOutput(_SerdeShape): """ @dataclass(kw_only=True) -class GetBucketVersioningInput(_SerdeShape): - """Dataclass for GetBucketVersioningInput structure.""" +class GetObjectAnnotationInput(_SerdeShape): + """Dataclass for GetObjectAnnotationInput structure.""" bucket: str | None = ... - """The name of the bucket for which to get the versioning information.""" + """The name of the bucket that contains the object.""" + key: str | None = ... + """The object key.""" + annotation_name: str | None = ... + """ + The name of the annotation to retrieve. + + Length Constraints: Minimum length of 1. Maximum length of 512 bytes. + """ + version_id: str | None = ... + """The version ID of the object.""" + request_payer: str | None = ... + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ expected_bucket_owner: str | None = ... """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + The account ID of the expected bucket owner. If the bucket is owned by a + different account, the request fails with an HTTP 403 (Access Denied) + error. + """ + checksum_mode: str | None = ... + """ + Set to `ENABLED` to validate the checksum of the annotation payload on + retrieval. """ -@dataclass(kw_only=True) -class GetBucketVersioningOutput(_SerdeShape): - """Dataclass for GetBucketVersioningOutput structure.""" +class GetObjectAnnotationInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectAnnotationInput`.""" - status: str | None = ... - """The versioning state of the bucket.""" - mfa_delete: str | None = ... + bucket: Required[str] + """The name of the bucket that contains the object.""" + key: Required[str] + """The object key.""" + annotation_name: Required[str] """ - Specifies whether MFA delete is enabled in the bucket versioning - configuration. This element is only returned if the bucket has been - configured with MFA delete. If the bucket has never been so configured, - this element is not returned. + The name of the annotation to retrieve. + + Length Constraints: Minimum length of 1. Maximum length of 512 bytes. """ - response_metadata: ResponseMetadata = ... + version_id: str | None + """The version ID of the object.""" + request_payer: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the bucket is owned by a + different account, the request fails with an HTTP 403 (Access Denied) + error. + """ + checksum_mode: str | None + """ + Set to `ENABLED` to validate the checksum of the annotation payload on + retrieval. """ @dataclass(kw_only=True) -class GetBucketWebsiteInput(_SerdeShape): - """Dataclass for GetBucketWebsiteInput structure.""" +class GetObjectAnnotationOutput(_SerdeShape): + """Dataclass for GetObjectAnnotationOutput structure.""" - bucket: str | None = ... - """The bucket name for which to get the website configuration.""" - expected_bucket_owner: str | None = ... - """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + annotation_payload: StreamingBlob = ... + """The annotation payload.""" + object_version_id: str | None = ... + """The version ID of the object that the annotation is attached to.""" + last_modified: datetime | None = ... + """The date and time the annotation was last modified.""" + content_length: int | None = ... + """The size of the annotation payload, in bytes.""" + e_tag: str | None = ... + """The entity tag of the annotation.""" + checksum_crc32: str | None = ... + """The CRC32 checksum of the annotation payload.""" + checksum_crc32_c: str | None = ... + """The CRC32C checksum of the annotation payload.""" + checksum_crc64_nvme: str | None = ... + """The CRC64NVME checksum of the annotation payload.""" + checksum_sha1: str | None = ... + """The SHA1 checksum of the annotation payload.""" + checksum_sha256: str | None = ... + """The SHA256 checksum of the annotation payload.""" + checksum_sha512: str | None = ... + """The SHA512 checksum of the annotation payload.""" + checksum_md5: str | None = ... + """The MD5 checksum of the annotation payload.""" + checksum_xxhash64: str | None = ... + """The XXHASH64 checksum of the annotation payload.""" + checksum_xxhash3: str | None = ... + """The XXHASH3 checksum of the annotation payload.""" + checksum_xxhash128: str | None = ... + """The XXHASH128 checksum of the annotation payload.""" + checksum_type: str | None = ... + """The type of checksum used.""" + server_side_encryption: str | None = ... + """The server-side encryption algorithm used.""" + request_charged: str | None = ... """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. -@dataclass(kw_only=True) -class GetBucketWebsiteOutput(_SerdeShape): - """Dataclass for GetBucketWebsiteOutput structure.""" - - redirect_all_requests_to: RedirectAllRequestsTo | None = ... - """ - Specifies the redirect behavior of all requests to a website endpoint of - an Amazon S3 bucket. - """ - index_document: IndexDocument | None = ... - """ - The name of the index document for the website (for example - `index.html`). + Note: + This functionality is not supported for directory buckets. """ - error_document: ErrorDocument | None = ... + replication_status: str | None = ... """ - The object key name of the website error document to use for 4XX class - errors. + The replication status of the annotation. Possible values include + `PENDING`, `COMPLETED`, `FAILED`, and `REPLICA`. """ - routing_rules: list[RoutingRule] | None = ... - """Rules that define when a redirect is applied and the redirect behavior.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -7363,13 +11610,24 @@ class GetBucketWebsiteOutput(_SerdeShape): """ @dataclass(kw_only=True) -class GetObjectAclInput(_SerdeShape): - """Dataclass for GetObjectAclInput structure.""" +class GetObjectAttributesInput(_SerdeShape): + """Dataclass for GetObjectAttributesInput structure.""" bucket: str | None = ... """ - The bucket name that contains the object for which to get the ACL - information. + The name of the bucket that contains the object. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. **Access points** - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point @@ -7384,12 +11642,71 @@ class GetObjectAclInput(_SerdeShape): name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. """ key: str | None = ... - """The key of the object for which to get the ACL information.""" + """The object key.""" version_id: str | None = ... """ - Version ID used to reference a specific version of the object. + The version ID used to reference a specific version of the object. + + Note: + S3 Versioning isn't enabled and supported for directory buckets. For + this API operation, only the `null` value of the version ID is supported + by directory buckets. You can only specify `null` to the `versionId` + query parameter in the request. + """ + max_parts: int | None = ... + """ + Sets the maximum number of parts to return. For more information, see + [Uploading and copying objects using multipart upload in Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html) + in the *Amazon Simple Storage Service user guide*. + """ + part_number_marker: str | None = ... + """ + Specifies the part after which listing should begin. Only parts with + higher part numbers will be listed. For more information, see [Uploading + and copying objects using multipart upload in Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html) + in the *Amazon Simple Storage Service user guide*. + """ + sse_customer_algorithm: str | None = ... + """ + Specifies the algorithm to use when encrypting the object (for example, + AES256). + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key: str | None = ... + """ + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None = ... + """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. Note: This functionality is not supported for directory buckets. @@ -7414,51 +11731,114 @@ class GetObjectAclInput(_SerdeShape): provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied). """ + object_attributes: list[str] | None = ... + """ + Specifies the fields at the root level that you want returned in the + response. Fields that you do not specify are not returned. + """ -@dataclass(kw_only=True) -class GetObjectAclOutput(_SerdeShape): - """Dataclass for GetObjectAclOutput structure.""" +class GetObjectAttributesInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectAttributesInput`.""" - owner: Owner | None = ... - """Container for the bucket owner's ID.""" - grants: list[Grant] | None = ... - """A list of grants.""" - request_charged: str | None = ... + bucket: Required[str] """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. + The name of the bucket that contains the object. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. Note: - This functionality is not supported for directory buckets. + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. """ - response_metadata: ResponseMetadata = ... + key: Required[str] + """The object key.""" + version_id: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The version ID used to reference a specific version of the object. + + Note: + S3 Versioning isn't enabled and supported for directory buckets. For + this API operation, only the `null` value of the version ID is supported + by directory buckets. You can only specify `null` to the `versionId` + query parameter in the request. + """ + max_parts: int | None + """ + Sets the maximum number of parts to return. For more information, see + [Uploading and copying objects using multipart upload in Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html) + in the *Amazon Simple Storage Service user guide*. + """ + part_number_marker: str | None + """ + Specifies the part after which listing should begin. Only parts with + higher part numbers will be listed. For more information, see [Uploading + and copying objects using multipart upload in Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html) + in the *Amazon Simple Storage Service user guide*. + """ + sse_customer_algorithm: str | None """ + Specifies the algorithm to use when encrypting the object (for example, + AES256). -@dataclass(kw_only=True) -class GetObjectAnnotationInput(_SerdeShape): - """Dataclass for GetObjectAnnotationInput structure.""" + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key: str | None + """ + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. - bucket: str | None = ... - """The name of the bucket that contains the object.""" - key: str | None = ... - """The object key.""" - annotation_name: str | None = ... + Note: + This functionality is not supported for directory buckets. """ - The name of the annotation to retrieve. + sse_customer_key_md5: str | None + """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. - Length Constraints: Minimum length of 1. Maximum length of 512 bytes. + Note: + This functionality is not supported for directory buckets. """ - version_id: str | None = ... - """The version ID of the object.""" - request_payer: str | None = ... + request_payer: str | None """ Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their @@ -7472,56 +11852,41 @@ class GetObjectAnnotationInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ - The account ID of the expected bucket owner. If the bucket is owned by a - different account, the request fails with an HTTP 403 (Access Denied) - error. + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). """ - checksum_mode: str | None = ... + object_attributes: Required[Sequence[str]] """ - Set to `ENABLED` to validate the checksum of the annotation payload on - retrieval. + Specifies the fields at the root level that you want returned in the + response. Fields that you do not specify are not returned. """ @dataclass(kw_only=True) -class GetObjectAnnotationOutput(_SerdeShape): - """Dataclass for GetObjectAnnotationOutput structure.""" +class GetObjectAttributesOutput(_SerdeShape): + """Dataclass for GetObjectAttributesOutput structure.""" - annotation_payload: StreamingBlob = ... - """The annotation payload.""" - object_version_id: str | None = ... - """The version ID of the object that the annotation is attached to.""" + delete_marker: bool | None = ... + """ + Specifies whether the object retrieved was (`true`) or was not (`false`) + a delete marker. If `false`, this response header does not appear in the + response. To learn more about delete markers, see [Working with delete + markers](https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html). + + Note: + This functionality is not supported for directory buckets. + """ last_modified: datetime | None = ... - """The date and time the annotation was last modified.""" - content_length: int | None = ... - """The size of the annotation payload, in bytes.""" - e_tag: str | None = ... - """The entity tag of the annotation.""" - checksum_crc32: str | None = ... - """The CRC32 checksum of the annotation payload.""" - checksum_crc32_c: str | None = ... - """The CRC32C checksum of the annotation payload.""" - checksum_crc64_nvme: str | None = ... - """The CRC64NVME checksum of the annotation payload.""" - checksum_sha1: str | None = ... - """The SHA1 checksum of the annotation payload.""" - checksum_sha256: str | None = ... - """The SHA256 checksum of the annotation payload.""" - checksum_sha512: str | None = ... - """The SHA512 checksum of the annotation payload.""" - checksum_md5: str | None = ... - """The MD5 checksum of the annotation payload.""" - checksum_xxhash64: str | None = ... - """The XXHASH64 checksum of the annotation payload.""" - checksum_xxhash3: str | None = ... - """The XXHASH3 checksum of the annotation payload.""" - checksum_xxhash128: str | None = ... - """The XXHASH128 checksum of the annotation payload.""" - checksum_type: str | None = ... - """The type of checksum used.""" - server_side_encryption: str | None = ... - """The server-side encryption algorithm used.""" + """Date and time when the object was last modified.""" + version_id: str | None = ... + """ + The version ID of the object. + + Note: + This functionality is not supported for directory buckets. + """ request_charged: str | None = ... """ If present, indicates that the requester was successfully charged for @@ -7533,11 +11898,32 @@ class GetObjectAnnotationOutput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - replication_status: str | None = ... + e_tag: str | None = ... """ - The replication status of the annotation. Possible values include - `PENDING`, `COMPLETED`, `FAILED`, and `REPLICA`. + An ETag is an opaque identifier assigned by a web server to a specific + version of a resource found at a URL. + """ + checksum: Checksum | None = ... + """The checksum or digest of the object.""" + object_parts: GetObjectAttributesParts | None = ... + """A collection of parts associated with a multipart upload.""" + storage_class: str | None = ... + """ + Provides the storage class information of the object. Amazon S3 returns + this header for all objects except for S3 Standard storage class + objects. + + For more information, see [Storage + Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html). + + Note: + **Directory buckets** - Directory buckets only support `EXPRESS_ONEZONE` + (the S3 Express One Zone storage class) in Availability Zones and + `ONEZONE_IA` (the S3 One Zone-Infrequent Access storage class) in + Dedicated Local Zones. """ + object_size: int | None = ... + """The size of the object in bytes.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -7547,12 +11933,52 @@ class GetObjectAnnotationOutput(_SerdeShape): """ @dataclass(kw_only=True) -class GetObjectAttributesInput(_SerdeShape): - """Dataclass for GetObjectAttributesInput structure.""" +class GetObjectAttributesParts(_SerdeShape): + """A collection of parts associated with a multipart upload.""" + + total_parts_count: int | None = ... + """The total number of parts.""" + part_number_marker: str | None = ... + """The marker for the current part.""" + next_part_number_marker: str | None = ... + """ + When a list is truncated, this element specifies the last part in the + list, as well as the value to use for the `PartNumberMarker` request + parameter in a subsequent request. + """ + max_parts: int | None = ... + """The maximum number of parts allowed in the response.""" + is_truncated: bool | None = ... + """ + Indicates whether the returned list of parts is truncated. A value of + `true` indicates that the list was truncated. A list can be truncated if + the number of parts exceeds the limit returned in the `MaxParts` + element. + """ + parts: list[ObjectPart] | None = ... + """ + A container for elements related to a particular part. A response can + contain zero or more `Parts` elements. + + Note: + - **General purpose buckets** - For `GetObjectAttributes`, if an + additional checksum (including `x-amz-checksum-crc32`, + `x-amz-checksum-crc32c`, `x-amz-checksum-sha1`, or + `x-amz-checksum-sha256`) isn't applied to the object specified in the + request, the response doesn't return the `Part` element. + + - **Directory buckets** - For `GetObjectAttributes`, regardless of + whether an additional checksum is applied to the object specified in + the request, the response returns the `Part` element. + """ + +@dataclass(kw_only=True) +class GetObjectInput(_SerdeShape): + """Dataclass for GetObjectInput structure.""" bucket: str | None = ... """ - The name of the bucket that contains the object. + The bucket name containing the object. **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format @@ -7580,6 +12006,12 @@ class GetObjectAttributesInput(_SerdeShape): points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the *Amazon S3 User Guide*. + **Object Lambda access points** - When you use this action with an + Object Lambda access point, you must direct requests to the Object + Lambda access point hostname. The Object Lambda access point hostname + takes the form + *AccessPointName*-*AccountId*.s3-object-lambda.*Region*.amazonaws.com. + Note: Object Lambda access points are not supported by directory buckets. @@ -7593,57 +12025,184 @@ class GetObjectAttributesInput(_SerdeShape): Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the *Amazon S3 User Guide*. """ - key: str | None = ... - """The object key.""" - version_id: str | None = ... + if_match: str | None = ... """ - The version ID used to reference a specific version of the object. + Return the object only if its entity tag (ETag) is the same as the one + specified in this header; otherwise, return a `412 Precondition Failed` + error. - Note: - S3 Versioning isn't enabled and supported for directory buckets. For - this API operation, only the `null` value of the version ID is supported - by directory buckets. You can only specify `null` to the `versionId` - query parameter in the request. + If both of the `If-Match` and `If-Unmodified-Since` headers are present + in the request as follows: `If-Match` condition evaluates to `true`, + and; `If-Unmodified-Since` condition evaluates to `false`; then, S3 + returns `200 OK` and the data requested. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). """ - max_parts: int | None = ... + if_modified_since: datetime | None = ... """ - Sets the maximum number of parts to return. For more information, see - [Uploading and copying objects using multipart upload in Amazon - S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html) - in the *Amazon Simple Storage Service user guide*. + Return the object only if it has been modified since the specified time; + otherwise, return a `304 Not Modified` error. + + If both of the `If-None-Match` and `If-Modified-Since` headers are + present in the request as follows:` If-None-Match` condition evaluates + to `false`, and; `If-Modified-Since` condition evaluates to `true`; + then, S3 returns `304 Not Modified` status code. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). """ - part_number_marker: str | None = ... + if_none_match: str | None = ... """ - Specifies the part after which listing should begin. Only parts with - higher part numbers will be listed. For more information, see [Uploading - and copying objects using multipart upload in Amazon - S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html) - in the *Amazon Simple Storage Service user guide*. + Return the object only if its entity tag (ETag) is different from the + one specified in this header; otherwise, return a `304 Not Modified` + error. + + If both of the `If-None-Match` and `If-Modified-Since` headers are + present in the request as follows:` If-None-Match` condition evaluates + to `false`, and; `If-Modified-Since` condition evaluates to `true`; + then, S3 returns `304 Not Modified` HTTP status code. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). + """ + if_unmodified_since: datetime | None = ... + """ + Return the object only if it has not been modified since the specified + time; otherwise, return a `412 Precondition Failed` error. + + If both of the `If-Match` and `If-Unmodified-Since` headers are present + in the request as follows: `If-Match` condition evaluates to `true`, + and; `If-Unmodified-Since` condition evaluates to `false`; then, S3 + returns `200 OK` and the data requested. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). + """ + key: str | None = ... + """Key of the object to get.""" + range: str | None = ... + """ + Downloads the specified byte range of an object. For more information + about the HTTP Range header, see + . + + Note: + Amazon S3 doesn't support retrieving multiple ranges of data per `GET` + request. + """ + response_cache_control: str | None = ... + """Sets the `Cache-Control` header of the response.""" + response_content_disposition: str | None = ... + """Sets the `Content-Disposition` header of the response.""" + response_content_encoding: str | None = ... + """Sets the `Content-Encoding` header of the response.""" + response_content_language: str | None = ... + """Sets the `Content-Language` header of the response.""" + response_content_type: str | None = ... + """Sets the `Content-Type` header of the response.""" + response_expires: datetime | None = ... + """Sets the `Expires` header of the response.""" + version_id: str | None = ... + """ + Version ID used to reference a specific version of the object. + + By default, the `GetObject` operation returns the current version of an + object. To return a different version, use the `versionId` subresource. + + Note: + - If you include a `versionId` in your request header, you must have the + `s3:GetObjectVersion` permission to access a specific version of an + object. The `s3:GetObject` permission is not required in this + scenario. + + - If you request the current version of an object without a specific + `versionId` in the request header, only the `s3:GetObject` permission + is required. The `s3:GetObjectVersion` permission is not required in + this scenario. + + - **Directory buckets** - S3 Versioning isn't enabled and supported for + directory buckets. For this API operation, only the `null` value of + the version ID is supported by directory buckets. You can only specify + `null` to the `versionId` query parameter in the request. + + For more information about versioning, see + [PutBucketVersioning](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketVersioning.html). """ sse_customer_algorithm: str | None = ... """ - Specifies the algorithm to use when encrypting the object (for example, - AES256). + Specifies the algorithm to use when decrypting the object (for example, + `AES256`). + + If you encrypt an object by using server-side encryption with + customer-provided encryption keys (SSE-C) when you store the object in + Amazon S3, then when you GET the object, you must use the following + headers: + + - `x-amz-server-side-encryption-customer-algorithm` + + - `x-amz-server-side-encryption-customer-key` + + - `x-amz-server-side-encryption-customer-key-MD5` + + For more information about SSE-C, see [Server-Side Encryption (Using + Customer-Provided Encryption + Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. Note: This functionality is not supported for directory buckets. """ sse_customer_key: str | None = ... """ - Specifies the customer-provided encryption key for Amazon S3 to use in - encrypting data. This value is used to store the object and then it is - discarded; Amazon S3 does not store the encryption key. The key must be - appropriate for use with the algorithm specified in the + Specifies the customer-provided encryption key that you originally + provided for Amazon S3 to encrypt the data before storing it. This value + is used to decrypt the object when recovering it and must match the one + used when storing the data. The key must be appropriate for use with the + algorithm specified in the `x-amz-server-side-encryption-customer-algorithm` header. + If you encrypt an object by using server-side encryption with + customer-provided encryption keys (SSE-C) when you store the object in + Amazon S3, then when you GET the object, you must use the following + headers: + + - `x-amz-server-side-encryption-customer-algorithm` + + - `x-amz-server-side-encryption-customer-key` + + - `x-amz-server-side-encryption-customer-key-MD5` + + For more information about SSE-C, see [Server-Side Encryption (Using + Customer-Provided Encryption + Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + Note: This functionality is not supported for directory buckets. """ sse_customer_key_md5: str | None = ... """ - Specifies the 128-bit MD5 digest of the encryption key according to RFC - 1321. Amazon S3 uses this header for a message integrity check to ensure - that the encryption key was transmitted without error. + Specifies the 128-bit MD5 digest of the customer-provided encryption key + according to RFC 1321. Amazon S3 uses this header for a message + integrity check to ensure that the encryption key was transmitted + without error. + + If you encrypt an object by using server-side encryption with + customer-provided encryption keys (SSE-C) when you store the object in + Amazon S3, then when you GET the object, you must use the following + headers: + + - `x-amz-server-side-encryption-customer-algorithm` + + - `x-amz-server-side-encryption-customer-key` + + - `x-amz-server-side-encryption-customer-key-MD5` + + For more information about SSE-C, see [Server-Side Encryption (Using + Customer-Provided Encryption + Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. Note: This functionality is not supported for directory buckets. @@ -7662,131 +12221,25 @@ class GetObjectAttributesInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ + part_number: int | None = ... + """ + Part number of the object being read. This is a positive integer between + 1 and 10,000. Effectively performs a 'ranged' GET request for the part + specified. Useful for downloading just a part of an object. + """ expected_bucket_owner: str | None = ... """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied). """ - object_attributes: list[str] | None = ... - """ - Specifies the fields at the root level that you want returned in the - response. Fields that you do not specify are not returned. - """ - -@dataclass(kw_only=True) -class GetObjectAttributesOutput(_SerdeShape): - """Dataclass for GetObjectAttributesOutput structure.""" - - delete_marker: bool | None = ... - """ - Specifies whether the object retrieved was (`true`) or was not (`false`) - a delete marker. If `false`, this response header does not appear in the - response. To learn more about delete markers, see [Working with delete - markers](https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html). - - Note: - This functionality is not supported for directory buckets. - """ - last_modified: datetime | None = ... - """Date and time when the object was last modified.""" - version_id: str | None = ... - """ - The version ID of the object. - - Note: - This functionality is not supported for directory buckets. - """ - request_charged: str | None = ... - """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. - - Note: - This functionality is not supported for directory buckets. - """ - e_tag: str | None = ... - """ - An ETag is an opaque identifier assigned by a web server to a specific - version of a resource found at a URL. - """ - checksum: Checksum | None = ... - """The checksum or digest of the object.""" - object_parts: GetObjectAttributesParts | None = ... - """A collection of parts associated with a multipart upload.""" - storage_class: str | None = ... - """ - Provides the storage class information of the object. Amazon S3 returns - this header for all objects except for S3 Standard storage class - objects. - - For more information, see [Storage - Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html). - - Note: - **Directory buckets** - Directory buckets only support `EXPRESS_ONEZONE` - (the S3 Express One Zone storage class) in Availability Zones and - `ONEZONE_IA` (the S3 One Zone-Infrequent Access storage class) in - Dedicated Local Zones. - """ - object_size: int | None = ... - """The size of the object in bytes.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class GetObjectAttributesParts(_SerdeShape): - """A collection of parts associated with a multipart upload.""" - - total_parts_count: int | None = ... - """The total number of parts.""" - part_number_marker: str | None = ... - """The marker for the current part.""" - next_part_number_marker: str | None = ... - """ - When a list is truncated, this element specifies the last part in the - list, as well as the value to use for the `PartNumberMarker` request - parameter in a subsequent request. - """ - max_parts: int | None = ... - """The maximum number of parts allowed in the response.""" - is_truncated: bool | None = ... - """ - Indicates whether the returned list of parts is truncated. A value of - `true` indicates that the list was truncated. A list can be truncated if - the number of parts exceeds the limit returned in the `MaxParts` - element. - """ - parts: list[ObjectPart] | None = ... - """ - A container for elements related to a particular part. A response can - contain zero or more `Parts` elements. - - Note: - - **General purpose buckets** - For `GetObjectAttributes`, if an - additional checksum (including `x-amz-checksum-crc32`, - `x-amz-checksum-crc32c`, `x-amz-checksum-sha1`, or - `x-amz-checksum-sha256`) isn't applied to the object specified in the - request, the response doesn't return the `Part` element. - - - **Directory buckets** - For `GetObjectAttributes`, regardless of - whether an additional checksum is applied to the object specified in - the request, the response returns the `Part` element. - """ + checksum_mode: str | None = ... + """To retrieve the checksum, this mode must be enabled.""" -@dataclass(kw_only=True) -class GetObjectInput(_SerdeShape): - """Dataclass for GetObjectInput structure.""" +class GetObjectInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectInput`.""" - bucket: str | None = ... + bucket: Required[str] """ The bucket name containing the object. @@ -7835,7 +12288,7 @@ class GetObjectInput(_SerdeShape): Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the *Amazon S3 User Guide*. """ - if_match: str | None = ... + if_match: str | None """ Return the object only if its entity tag (ETag) is the same as the one specified in this header; otherwise, return a `412 Precondition Failed` @@ -7849,7 +12302,7 @@ class GetObjectInput(_SerdeShape): For more information about conditional requests, see [RFC 7232](https://tools.ietf.org/html/rfc7232). """ - if_modified_since: datetime | None = ... + if_modified_since: datetime | None """ Return the object only if it has been modified since the specified time; otherwise, return a `304 Not Modified` error. @@ -7862,7 +12315,7 @@ class GetObjectInput(_SerdeShape): For more information about conditional requests, see [RFC 7232](https://tools.ietf.org/html/rfc7232). """ - if_none_match: str | None = ... + if_none_match: str | None """ Return the object only if its entity tag (ETag) is different from the one specified in this header; otherwise, return a `304 Not Modified` @@ -7876,7 +12329,7 @@ class GetObjectInput(_SerdeShape): For more information about conditional requests, see [RFC 7232](https://tools.ietf.org/html/rfc7232). """ - if_unmodified_since: datetime | None = ... + if_unmodified_since: datetime | None """ Return the object only if it has not been modified since the specified time; otherwise, return a `412 Precondition Failed` error. @@ -7889,9 +12342,9 @@ class GetObjectInput(_SerdeShape): For more information about conditional requests, see [RFC 7232](https://tools.ietf.org/html/rfc7232). """ - key: str | None = ... + key: Required[str] """Key of the object to get.""" - range: str | None = ... + range: str | None """ Downloads the specified byte range of an object. For more information about the HTTP Range header, see @@ -7901,19 +12354,19 @@ class GetObjectInput(_SerdeShape): Amazon S3 doesn't support retrieving multiple ranges of data per `GET` request. """ - response_cache_control: str | None = ... + response_cache_control: str | None """Sets the `Cache-Control` header of the response.""" - response_content_disposition: str | None = ... + response_content_disposition: str | None """Sets the `Content-Disposition` header of the response.""" - response_content_encoding: str | None = ... + response_content_encoding: str | None """Sets the `Content-Encoding` header of the response.""" - response_content_language: str | None = ... + response_content_language: str | None """Sets the `Content-Language` header of the response.""" - response_content_type: str | None = ... + response_content_type: str | None """Sets the `Content-Type` header of the response.""" - response_expires: datetime | None = ... + response_expires: datetime | None """Sets the `Expires` header of the response.""" - version_id: str | None = ... + version_id: str | None """ Version ID used to reference a specific version of the object. @@ -7939,7 +12392,7 @@ class GetObjectInput(_SerdeShape): For more information about versioning, see [PutBucketVersioning](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketVersioning.html). """ - sse_customer_algorithm: str | None = ... + sse_customer_algorithm: str | None """ Specifies the algorithm to use when decrypting the object (for example, `AES256`). @@ -7963,7 +12416,7 @@ class GetObjectInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - sse_customer_key: str | None = ... + sse_customer_key: str | None """ Specifies the customer-provided encryption key that you originally provided for Amazon S3 to encrypt the data before storing it. This value @@ -7991,7 +12444,7 @@ class GetObjectInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - sse_customer_key_md5: str | None = ... + sse_customer_key_md5: str | None """ Specifies the 128-bit MD5 digest of the customer-provided encryption key according to RFC 1321. Amazon S3 uses this header for a message @@ -8013,9 +12466,71 @@ class GetObjectInput(_SerdeShape): Customer-Provided Encryption Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) in the *Amazon S3 User Guide*. - - Note: - This functionality is not supported for directory buckets. + + Note: + This functionality is not supported for directory buckets. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + part_number: int | None + """ + Part number of the object being read. This is a positive integer between + 1 and 10,000. Effectively performs a 'ranged' GET request for the part + specified. Useful for downloading just a part of an object. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + checksum_mode: str | None + """To retrieve the checksum, this mode must be enabled.""" + +@dataclass(kw_only=True) +class GetObjectLegalHoldInput(_SerdeShape): + """Dataclass for GetObjectLegalHoldInput structure.""" + + bucket: str | None = ... + """ + The bucket name containing the object whose legal hold status you want + to retrieve. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + key: str | None = ... + """ + The key name for the object whose legal hold status you want to + retrieve. + """ + version_id: str | None = ... + """ + The version ID of the object whose legal hold status you want to + retrieve. """ request_payer: str | None = ... """ @@ -8031,26 +12546,17 @@ class GetObjectInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - part_number: int | None = ... - """ - Part number of the object being read. This is a positive integer between - 1 and 10,000. Effectively performs a 'ranged' GET request for the part - specified. Useful for downloading just a part of an object. - """ expected_bucket_owner: str | None = ... """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied). """ - checksum_mode: str | None = ... - """To retrieve the checksum, this mode must be enabled.""" -@dataclass(kw_only=True) -class GetObjectLegalHoldInput(_SerdeShape): - """Dataclass for GetObjectLegalHoldInput structure.""" +class GetObjectLegalHoldInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectLegalHoldInput`.""" - bucket: str | None = ... + bucket: Required[str] """ The bucket name containing the object whose legal hold status you want to retrieve. @@ -8069,17 +12575,17 @@ class GetObjectLegalHoldInput(_SerdeShape): points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the *Amazon S3 User Guide*. """ - key: str | None = ... + key: Required[str] """ The key name for the object whose legal hold status you want to retrieve. """ - version_id: str | None = ... + version_id: str | None """ The version ID of the object whose legal hold status you want to retrieve. """ - request_payer: str | None = ... + request_payer: str | None """ Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their @@ -8093,7 +12599,7 @@ class GetObjectLegalHoldInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails @@ -8143,6 +12649,34 @@ class GetObjectLockConfigurationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetObjectLockConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectLockConfigurationInput`.""" + + bucket: Required[str] + """ + The bucket whose Object Lock configuration you want to retrieve. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetObjectLockConfigurationOutput(_SerdeShape): """Dataclass for GetObjectLockConfigurationOutput structure.""" @@ -8541,6 +13075,59 @@ class GetObjectRetentionInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetObjectRetentionInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectRetentionInput`.""" + + bucket: Required[str] + """ + The bucket name containing the object whose retention settings you want + to retrieve. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """ + The key name for the object whose retention settings you want to + retrieve. + """ + version_id: str | None + """ + The version ID for the object whose retention settings you want to + retrieve. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetObjectRetentionOutput(_SerdeShape): """Dataclass for GetObjectRetentionOutput structure.""" @@ -8613,6 +13200,63 @@ class GetObjectTaggingInput(_SerdeShape): This functionality is not supported for directory buckets. """ +class GetObjectTaggingInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectTaggingInput`.""" + + bucket: Required[str] + """ + The bucket name containing the object for which to get the tagging + information. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """Object key for which to get the tagging information.""" + version_id: str | None + """The versionId of the object for which to get the tagging information.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + @dataclass(kw_only=True) class GetObjectTaggingOutput(_SerdeShape): """Dataclass for GetObjectTaggingOutput structure.""" @@ -8661,6 +13305,37 @@ class GetObjectTorrentInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetObjectTorrentInputDict(TypedDict, total=False): + """Dictionary form of `GetObjectTorrentInput`.""" + + bucket: Required[str] + """ + The name of the bucket containing the object for which to get the + torrent files. + """ + key: Required[str] + """The object key for which to get the information.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetObjectTorrentOutput(_SerdeShape): """Dataclass for GetObjectTorrentOutput structure.""" @@ -8702,6 +13377,21 @@ class GetPublicAccessBlockInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class GetPublicAccessBlockInputDict(TypedDict, total=False): + """Dictionary form of `GetPublicAccessBlockInput`.""" + + bucket: Required[str] + """ + The name of the Amazon S3 bucket whose `PublicAccessBlock` configuration + you want to retrieve. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class GetPublicAccessBlockOutput(_SerdeShape): """Dataclass for GetPublicAccessBlockOutput structure.""" @@ -8726,35 +13416,124 @@ class GlacierJobParameters(_SerdeShape): tier: str """Retrieval tier at which the restore will be processed.""" +class GlacierJobParametersDict(TypedDict, total=False): + """Dictionary form of `GlacierJobParameters`.""" + + tier: Required[str] + """Retrieval tier at which the restore will be processed.""" + @dataclass(kw_only=True) class Grant(_SerdeShape): """Container for grant information.""" - grantee: Grantee | None = ... - """The person being granted permissions.""" - permission: str | None = ... - """Specifies the permission given to the grantee.""" + grantee: Grantee | None = ... + """The person being granted permissions.""" + permission: str | None = ... + """Specifies the permission given to the grantee.""" + +class GrantDict(TypedDict, total=False): + """Dictionary form of `Grant`.""" + + grantee: Grantee | GranteeDict | None + """The person being granted permissions.""" + permission: str | None + """Specifies the permission given to the grantee.""" + +@dataclass(kw_only=True) +class Grantee(_SerdeShape): + """Container for the person being granted permissions.""" + + display_name: str | None = ... + """""" + email_address: str | None = ... + """""" + id: str | None = ... + """The canonical user ID of the grantee.""" + uri: str | None = ... + """URI of the grantee group.""" + type: str + """Type of grantee""" + +class GranteeDict(TypedDict, total=False): + """Dictionary form of `Grantee`.""" + + display_name: str | None + """""" + email_address: str | None + """""" + id: str | None + """The canonical user ID of the grantee.""" + uri: str | None + """URI of the grantee group.""" + type: Required[str] + """Type of grantee""" + +@dataclass(kw_only=True) +class HeadBucketInput(_SerdeShape): + """Dataclass for HeadBucketInput structure.""" + + bucket: str | None = ... + """ + The bucket name. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + **Object Lambda access points** - When you use this API operation with + an Object Lambda access point, provide the alias of the Object Lambda + access point in place of the bucket name. If the Object Lambda access + point alias in a request is not valid, the error code + `InvalidAccessPointAliasError` is returned. For more information about + `InvalidAccessPointAliasError`, see [List of Error + Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList). -@dataclass(kw_only=True) -class Grantee(_SerdeShape): - """Container for the person being granted permissions.""" + Note: + Object Lambda access points are not supported by directory buckets. - display_name: str | None = ... - """""" - email_address: str | None = ... - """""" - id: str | None = ... - """The canonical user ID of the grantee.""" - uri: str | None = ... - """URI of the grantee group.""" - type: str - """Type of grantee""" + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ -@dataclass(kw_only=True) -class HeadBucketInput(_SerdeShape): - """Dataclass for HeadBucketInput structure.""" +class HeadBucketInputDict(TypedDict, total=False): + """Dictionary form of `HeadBucketInput`.""" - bucket: str | None = ... + bucket: Required[str] """ The bucket name. @@ -8805,7 +13584,7 @@ class HeadBucketInput(_SerdeShape): Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the *Amazon S3 User Guide*. """ - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails @@ -8854,19 +13633,234 @@ class HeadBucketOutput(_SerdeShape): Note: For directory buckets, the value of this field is `false`. """ - response_metadata: ResponseMetadata = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class HeadObjectInput(_SerdeShape): + """Dataclass for HeadObjectInput structure.""" + + bucket: str | None = ... + """ + The name of the bucket that contains the object. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + if_match: str | None = ... + """ + Return the object only if its entity tag (ETag) is the same as the one + specified; otherwise, return a 412 (precondition failed) error. + + If both of the `If-Match` and `If-Unmodified-Since` headers are present + in the request as follows: + + - `If-Match` condition evaluates to `true`, and; + + - `If-Unmodified-Since` condition evaluates to `false`; + + Then Amazon S3 returns `200 OK` and the data requested. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). + """ + if_modified_since: datetime | None = ... + """ + Return the object only if it has been modified since the specified time; + otherwise, return a 304 (not modified) error. + + If both of the `If-None-Match` and `If-Modified-Since` headers are + present in the request as follows: + + - `If-None-Match` condition evaluates to `false`, and; + + - `If-Modified-Since` condition evaluates to `true`; + + Then Amazon S3 returns the `304 Not Modified` response code. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). + """ + if_none_match: str | None = ... + """ + Return the object only if its entity tag (ETag) is different from the + one specified; otherwise, return a 304 (not modified) error. + + If both of the `If-None-Match` and `If-Modified-Since` headers are + present in the request as follows: + + - `If-None-Match` condition evaluates to `false`, and; + + - `If-Modified-Since` condition evaluates to `true`; + + Then Amazon S3 returns the `304 Not Modified` response code. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). + """ + if_unmodified_since: datetime | None = ... + """ + Return the object only if it has not been modified since the specified + time; otherwise, return a 412 (precondition failed) error. + + If both of the `If-Match` and `If-Unmodified-Since` headers are present + in the request as follows: + + - `If-Match` condition evaluates to `true`, and; + + - `If-Unmodified-Since` condition evaluates to `false`; + + Then Amazon S3 returns `200 OK` and the data requested. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). + """ + key: str | None = ... + """The object key.""" + range: str | None = ... + """ + HeadObject returns only the metadata for an object. If the Range is + satisfiable, only the `ContentLength` is affected in the response. If + the Range is not satisfiable, S3 returns a + `416 - Requested Range Not Satisfiable` error. + """ + response_cache_control: str | None = ... + """Sets the `Cache-Control` header of the response.""" + response_content_disposition: str | None = ... + """Sets the `Content-Disposition` header of the response.""" + response_content_encoding: str | None = ... + """Sets the `Content-Encoding` header of the response.""" + response_content_language: str | None = ... + """Sets the `Content-Language` header of the response.""" + response_content_type: str | None = ... + """Sets the `Content-Type` header of the response.""" + response_expires: datetime | None = ... + """Sets the `Expires` header of the response.""" + version_id: str | None = ... + """ + Version ID used to reference a specific version of the object. + + Note: + For directory buckets in this API operation, only the `null` value of + the version ID is supported. + """ + sse_customer_algorithm: str | None = ... + """ + Specifies the algorithm to use when encrypting the object (for example, + AES256). + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key: str | None = ... + """ + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None = ... + """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. + + Note: + This functionality is not supported for directory buckets. + """ + request_payer: str | None = ... + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + part_number: int | None = ... + """ + Part number of the object being read. This is a positive integer between + 1 and 10,000. Effectively performs a 'ranged' HEAD request for the + part specified. Useful querying about the size of the part and the + number of parts in this object. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + checksum_mode: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + To retrieve the checksum, this parameter must be enabled. + + **General purpose buckets** - If you enable checksum mode and the object + is uploaded with a + [checksum](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html) + and encrypted with an Key Management Service (KMS) key, you must have + permission to use the `kms:Decrypt` action to retrieve the checksum. + + **Directory buckets** - If you enable `ChecksumMode` and the object is + encrypted with Amazon Web Services Key Management Service (Amazon Web + Services KMS), you must also have the `kms:GenerateDataKey` and + `kms:Decrypt` permissions in IAM identity-based policies and KMS key + policies for the KMS key to retrieve the checksum of the object. """ -@dataclass(kw_only=True) -class HeadObjectInput(_SerdeShape): - """Dataclass for HeadObjectInput structure.""" +class HeadObjectInputDict(TypedDict, total=False): + """Dictionary form of `HeadObjectInput`.""" - bucket: str | None = ... + bucket: Required[str] """ The name of the bucket that contains the object. @@ -8909,7 +13903,7 @@ class HeadObjectInput(_SerdeShape): Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the *Amazon S3 User Guide*. """ - if_match: str | None = ... + if_match: str | None """ Return the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error. @@ -8926,7 +13920,7 @@ class HeadObjectInput(_SerdeShape): For more information about conditional requests, see [RFC 7232](https://tools.ietf.org/html/rfc7232). """ - if_modified_since: datetime | None = ... + if_modified_since: datetime | None """ Return the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error. @@ -8943,7 +13937,7 @@ class HeadObjectInput(_SerdeShape): For more information about conditional requests, see [RFC 7232](https://tools.ietf.org/html/rfc7232). """ - if_none_match: str | None = ... + if_none_match: str | None """ Return the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error. @@ -8960,7 +13954,7 @@ class HeadObjectInput(_SerdeShape): For more information about conditional requests, see [RFC 7232](https://tools.ietf.org/html/rfc7232). """ - if_unmodified_since: datetime | None = ... + if_unmodified_since: datetime | None """ Return the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error. @@ -8977,28 +13971,28 @@ class HeadObjectInput(_SerdeShape): For more information about conditional requests, see [RFC 7232](https://tools.ietf.org/html/rfc7232). """ - key: str | None = ... + key: Required[str] """The object key.""" - range: str | None = ... + range: str | None """ HeadObject returns only the metadata for an object. If the Range is satisfiable, only the `ContentLength` is affected in the response. If the Range is not satisfiable, S3 returns a `416 - Requested Range Not Satisfiable` error. """ - response_cache_control: str | None = ... + response_cache_control: str | None """Sets the `Cache-Control` header of the response.""" - response_content_disposition: str | None = ... + response_content_disposition: str | None """Sets the `Content-Disposition` header of the response.""" - response_content_encoding: str | None = ... + response_content_encoding: str | None """Sets the `Content-Encoding` header of the response.""" - response_content_language: str | None = ... + response_content_language: str | None """Sets the `Content-Language` header of the response.""" - response_content_type: str | None = ... + response_content_type: str | None """Sets the `Content-Type` header of the response.""" - response_expires: datetime | None = ... + response_expires: datetime | None """Sets the `Expires` header of the response.""" - version_id: str | None = ... + version_id: str | None """ Version ID used to reference a specific version of the object. @@ -9006,7 +14000,7 @@ class HeadObjectInput(_SerdeShape): For directory buckets in this API operation, only the `null` value of the version ID is supported. """ - sse_customer_algorithm: str | None = ... + sse_customer_algorithm: str | None """ Specifies the algorithm to use when encrypting the object (for example, AES256). @@ -9014,7 +14008,7 @@ class HeadObjectInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - sse_customer_key: str | None = ... + sse_customer_key: str | None """ Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is @@ -9025,7 +14019,7 @@ class HeadObjectInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - sse_customer_key_md5: str | None = ... + sse_customer_key_md5: str | None """ Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure @@ -9034,7 +14028,7 @@ class HeadObjectInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - request_payer: str | None = ... + request_payer: str | None """ Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their @@ -9048,20 +14042,20 @@ class HeadObjectInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - part_number: int | None = ... + part_number: int | None """ Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. Useful querying about the size of the part and the number of parts in this object. """ - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied). """ - checksum_mode: str | None = ... + checksum_mode: str | None """ To retrieve the checksum, this parameter must be enabled. @@ -9518,6 +14512,24 @@ class IndexDocument(_SerdeShape): constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). """ +class IndexDocumentDict(TypedDict, total=False): + """Dictionary form of `IndexDocument`.""" + + suffix: Required[str] + """ + A suffix that is appended to a request that is for a directory on the + website endpoint. (For example, if the suffix is `index.html` and you + make a request to `samplebucket/images/`, the data that is returned will + be for the object with the key name `images/index.html`.) The suffix + must not be empty and must not include a slash character. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + @dataclass(kw_only=True) class Initiator(_SerdeShape): """Container element that identifies who initiated the multipart upload.""" @@ -9555,6 +14567,21 @@ class InputSerialization(_SerdeShape): parquet: ParquetInput | None = ... """Specifies Parquet as object's input serialization format.""" +class InputSerializationDict(TypedDict, total=False): + """Dictionary form of `InputSerialization`.""" + + csv: CSVInput | CSVInputDict | None + """Describes the serialization of a CSV-encoded object.""" + compression_type: str | None + """ + Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. + Default Value: NONE. + """ + json: JSONInput | JSONInputDict | None + """Specifies JSON as object's input serialization format.""" + parquet: ParquetInput | ParquetInputDict | None + """Specifies Parquet as object's input serialization format.""" + class IntelligentTieringAccessTier(UnknownEnumMixin, StrEnum): ARCHIVE_ACCESS = "ARCHIVE_ACCESS" DEEP_ARCHIVE_ACCESS = "DEEP_ARCHIVE_ACCESS" @@ -9577,6 +14604,20 @@ class IntelligentTieringAndOperator(_SerdeShape): configuration to apply. """ +class IntelligentTieringAndOperatorDict(TypedDict, total=False): + """Dictionary form of `IntelligentTieringAndOperator`.""" + + prefix: str | None + """ + An object key name prefix that identifies the subset of objects to which + the configuration applies. + """ + tags: Sequence[Tag | TagDict] | None + """ + All of these tags must exist in the object's tag set in order for the + configuration to apply. + """ + @dataclass(kw_only=True) class IntelligentTieringConfiguration(_SerdeShape): """ @@ -9604,6 +14645,24 @@ class IntelligentTieringConfiguration(_SerdeShape): configuration. """ +class IntelligentTieringConfigurationDict(TypedDict, total=False): + """Dictionary form of `IntelligentTieringConfiguration`.""" + + id: Required[str] + """The ID used to identify the S3 Intelligent-Tiering configuration.""" + filter: IntelligentTieringFilter | IntelligentTieringFilterDict | None + """ + Specifies a bucket filter. The configuration only includes objects that + meet the filter's criteria. + """ + status: Required[str] + """Specifies the status of the configuration.""" + tierings: Required[Sequence[Tiering | TieringDict]] + """ + Specifies the S3 Intelligent-Tiering storage class tier of the + configuration. + """ + @dataclass(kw_only=True) class IntelligentTieringFilter(_SerdeShape): """ @@ -9632,6 +14691,30 @@ class IntelligentTieringFilter(_SerdeShape): apply. """ +class IntelligentTieringFilterDict(TypedDict, total=False): + """Dictionary form of `IntelligentTieringFilter`.""" + + prefix: str | None + """ + An object key name prefix that identifies the subset of objects to which + the rule applies. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + tag: Tag | TagDict | None + """A container of a key value name pair.""" + and_: IntelligentTieringAndOperator | IntelligentTieringAndOperatorDict | None + """ + A conjunction (logical AND) of predicates, which is used in evaluating a + metrics filter. The operator must have at least two predicates, and an + object must match all of the predicates in order for the filter to + apply. + """ + class IntelligentTieringStatus(UnknownEnumMixin, StrEnum): ENABLED = "Enabled" DISABLED = "Disabled" @@ -9760,6 +14843,43 @@ class InventoryConfiguration(_SerdeShape): schedule: InventorySchedule """Specifies the schedule for generating inventory results.""" +class InventoryConfigurationDict(TypedDict, total=False): + """Dictionary form of `InventoryConfiguration`.""" + + destination: Required[InventoryDestination | InventoryDestinationDict] + """Contains information about where to publish the inventory results.""" + is_enabled: Required[bool] + """ + Specifies whether the inventory is enabled or disabled. If set to + `True`, an inventory list is generated. If set to `False`, no inventory + list is generated. + """ + filter: InventoryFilter | InventoryFilterDict | None + """ + Specifies an inventory filter. The inventory only includes objects that + meet the filter's criteria. + """ + id: Required[str] + """The ID used to identify the inventory configuration.""" + included_object_versions: Required[str] + """ + Object versions to include in the inventory list. If set to `All`, the + list includes all the object versions, which adds the version-related + fields `VersionId`, `IsLatest`, and `DeleteMarker` to the list. If set + to `Current`, the list does not contain these version-related fields. + """ + optional_fields: Sequence[str] | None + """ + Contains the optional fields that are included in the inventory results. + + Note: + The following optional fields are supported for directory buckets + `Size | LastModifiedDate | StorageClass | ETag | IsMultipartUploaded | EncryptionStatus | BucketKeyStatus | ChecksumAlgorithm | LifecycleExpirationDate.` + Throws MalformedXML error if unsupported optional field is provided. + """ + schedule: Required[InventorySchedule | InventoryScheduleDict] + """Specifies the schedule for generating inventory results.""" + class InventoryConfigurationState(UnknownEnumMixin, StrEnum): ENABLED = "ENABLED" DISABLED = "DISABLED" @@ -9774,6 +14894,17 @@ class InventoryDestination(_SerdeShape): prefix (optional) where inventory results are published. """ +class InventoryDestinationDict(TypedDict, total=False): + """Dictionary form of `InventoryDestination`.""" + + s3_bucket_destination: Required[ + InventoryS3BucketDestination | InventoryS3BucketDestinationDict + ] + """ + Contains the bucket name, file format, bucket owner (optional), and + prefix (optional) where inventory results are published. + """ + @dataclass(kw_only=True) class InventoryEncryption(_SerdeShape): """ @@ -9786,6 +14917,14 @@ class InventoryEncryption(_SerdeShape): ssekms: SSEKMS | None = ... """Specifies the use of SSE-KMS to encrypt delivered inventory reports.""" +class InventoryEncryptionDict(TypedDict, total=False): + """Dictionary form of `InventoryEncryption`.""" + + sses3: SSES3 | SSES3Dict | None + """Specifies the use of SSE-S3 to encrypt delivered inventory reports.""" + ssekms: SSEKMS | SSEKMSDict | None + """Specifies the use of SSE-KMS to encrypt delivered inventory reports.""" + @dataclass(kw_only=True) class InventoryFilter(_SerdeShape): """ @@ -9799,6 +14938,15 @@ class InventoryFilter(_SerdeShape): results. """ +class InventoryFilterDict(TypedDict, total=False): + """Dictionary form of `InventoryFilter`.""" + + prefix: Required[str] + """ + The prefix that an object must have to be included in the inventory + results. + """ + class InventoryFormat(UnknownEnumMixin, StrEnum): CSV = "CSV" ORC = "ORC" @@ -9864,6 +15012,33 @@ class InventoryS3BucketDestination(_SerdeShape): inventory results. """ +class InventoryS3BucketDestinationDict(TypedDict, total=False): + """Dictionary form of `InventoryS3BucketDestination`.""" + + account_id: str | None + """ + The account ID that owns the destination S3 bucket. If no account ID is + provided, the owner is not validated before exporting data. + + Note: + Although this value is optional, we strongly recommend that you set it + to help prevent problems if the destination bucket ownership changes. + """ + bucket: Required[str] + """ + The Amazon Resource Name (ARN) of the bucket where inventory results + will be published. + """ + format: Required[str] + """Specifies the output format of the inventory results.""" + prefix: str | None + """The prefix that is prepended to all inventory results.""" + encryption: InventoryEncryption | InventoryEncryptionDict | None + """ + Contains the type of server-side encryption used to encrypt the + inventory results. + """ + @dataclass(kw_only=True) class InventorySchedule(_SerdeShape): """Specifies the schedule for generating S3 Inventory results.""" @@ -9871,6 +15046,12 @@ class InventorySchedule(_SerdeShape): frequency: str """Specifies how frequently inventory results are produced.""" +class InventoryScheduleDict(TypedDict, total=False): + """Dictionary form of `InventorySchedule`.""" + + frequency: Required[str] + """Specifies how frequently inventory results are produced.""" + @dataclass(kw_only=True) class InventoryTableConfiguration(_SerdeShape): """The inventory table configuration for an S3 Metadata configuration.""" @@ -9883,6 +15064,21 @@ class InventoryTableConfiguration(_SerdeShape): encryption_configuration: MetadataTableEncryptionConfiguration | None = ... """The encryption configuration for the inventory table.""" +class InventoryTableConfigurationDict(TypedDict, total=False): + """Dictionary form of `InventoryTableConfiguration`.""" + + configuration_state: Required[str] + """ + The configuration state of the inventory table, indicating whether the + inventory table is enabled or disabled. + """ + encryption_configuration: ( + MetadataTableEncryptionConfiguration + | MetadataTableEncryptionConfigurationDict + | None + ) + """The encryption configuration for the inventory table.""" + @dataclass(kw_only=True) class InventoryTableConfigurationResult(_SerdeShape): """The inventory table configuration for an S3 Metadata configuration.""" @@ -9947,6 +15143,21 @@ class InventoryTableConfigurationUpdates(_SerdeShape): encryption_configuration: MetadataTableEncryptionConfiguration | None = ... """The encryption configuration for the inventory table.""" +class InventoryTableConfigurationUpdatesDict(TypedDict, total=False): + """Dictionary form of `InventoryTableConfigurationUpdates`.""" + + configuration_state: Required[str] + """ + The configuration state of the inventory table, indicating whether the + inventory table is enabled or disabled. + """ + encryption_configuration: ( + MetadataTableEncryptionConfiguration + | MetadataTableEncryptionConfigurationDict + | None + ) + """The encryption configuration for the inventory table.""" + @dataclass(kw_only=True) class JournalTableConfiguration(_SerdeShape): """The journal table configuration for an S3 Metadata configuration.""" @@ -9956,6 +15167,18 @@ class JournalTableConfiguration(_SerdeShape): encryption_configuration: MetadataTableEncryptionConfiguration | None = ... """The encryption configuration for the journal table.""" +class JournalTableConfigurationDict(TypedDict, total=False): + """Dictionary form of `JournalTableConfiguration`.""" + + record_expiration: Required[RecordExpiration | RecordExpirationDict] + """The journal table record expiration settings for the journal table.""" + encryption_configuration: ( + MetadataTableEncryptionConfiguration + | MetadataTableEncryptionConfigurationDict + | None + ) + """The encryption configuration for the journal table.""" + @dataclass(kw_only=True) class JournalTableConfigurationResult(_SerdeShape): """The journal table configuration for the S3 Metadata configuration.""" @@ -10001,6 +15224,12 @@ class JournalTableConfigurationUpdates(_SerdeShape): record_expiration: RecordExpiration """The journal table record expiration settings for the journal table.""" +class JournalTableConfigurationUpdatesDict(TypedDict, total=False): + """Dictionary form of `JournalTableConfigurationUpdates`.""" + + record_expiration: Required[RecordExpiration | RecordExpirationDict] + """The journal table record expiration settings for the journal table.""" + @dataclass(kw_only=True) class JSONInput(_SerdeShape): """Specifies JSON as object's input serialization format.""" @@ -10008,6 +15237,12 @@ class JSONInput(_SerdeShape): type: str | None = ... """The type of JSON. Valid values: Document, Lines.""" +class JSONInputDict(TypedDict, total=False): + """Dictionary form of `JSONInput`.""" + + type: str | None + """The type of JSON. Valid values: Document, Lines.""" + @dataclass(kw_only=True) class JSONOutput(_SerdeShape): """Specifies JSON as request's output serialization format.""" @@ -10018,6 +15253,15 @@ class JSONOutput(_SerdeShape): is specified, Amazon S3 uses a newline character ('\\n'). """ +class JSONOutputDict(TypedDict, total=False): + """Dictionary form of `JSONOutput`.""" + + record_delimiter: str | None + """ + The value used to separate individual records in the output. If no value + is specified, Amazon S3 uses a newline character ('\\n'). + """ + class JSONType(UnknownEnumMixin, StrEnum): DOCUMENT = "DOCUMENT" LINES = "LINES" @@ -10052,6 +15296,35 @@ class LambdaFunctionConfiguration(_SerdeShape): in the *Amazon S3 User Guide*. """ +class LambdaFunctionConfigurationDict(TypedDict, total=False): + """Dictionary form of `LambdaFunctionConfiguration`.""" + + id: str | None + """ + An optional unique identifier for configurations in a notification + configuration. If you don't provide one, Amazon S3 will assign an ID. + """ + lambda_function_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Lambda function that Amazon S3 + invokes when the specified event type occurs. + """ + events: Required[Sequence[str]] + """ + The Amazon S3 bucket event for which to invoke the Lambda function. For + more information, see [Supported Event + Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + in the *Amazon S3 User Guide*. + """ + filter: NotificationConfigurationFilter | NotificationConfigurationFilterDict | None + """ + Specifies object key name filtering rules. For information about key + name filtering, see [Configuring event notifications using object key + name + filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) + in the *Amazon S3 User Guide*. + """ + @dataclass(kw_only=True) class LifecycleExpiration(_SerdeShape): """ @@ -10088,3 +15361,33 @@ class LifecycleExpiration(_SerdeShape): This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations. """ + +class LifecycleExpirationDict(TypedDict, total=False): + """Dictionary form of `LifecycleExpiration`.""" + + date: datetime | None + """ + Indicates at what date the object is to be moved or deleted. The date + value must conform to the ISO 8601 format. The time is always midnight + UTC. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + days: int | None + """ + Indicates the lifetime, in days, of the objects that are subject to the + rule. The value must be a non-zero positive integer. + """ + expired_object_delete_marker: bool | None + """ + Indicates whether Amazon S3 will remove a delete marker with no + noncurrent versions. If set to true, the delete marker will be expired; + if set to false the policy takes no action. This cannot be specified + with Days or Date in a Lifecycle Expiration Policy. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/_private/models_1.pyi b/clients/aws-sdk-s3/src/aws_sdk_s3/_private/models_1.pyi index 92fbdf4fd..3541da7b0 100644 --- a/clients/aws-sdk-s3/src/aws_sdk_s3/_private/models_1.pyi +++ b/clients/aws-sdk-s3/src/aws_sdk_s3/_private/models_1.pyi @@ -1,65 +1,104 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Union +from typing import Required, TypedDict, Union from smithy_core.aio.interfaces import StreamingBlob from smithy_core.deserializers import ShapeDeserializer +from smithy_core.interfaces import StreamingBlob as SyncStreamingBlob from smithy_core.response import ResponseMetadata from smithy_core.types import UnknownEnumMixin from ..models import ( AbacStatus, + AbacStatusDict, AbortIncompleteMultipartUpload, + AbortIncompleteMultipartUploadDict, AccelerateConfiguration, + AccelerateConfigurationDict, AccessControlPolicy, + AccessControlPolicyDict, AnalyticsConfiguration, + AnalyticsConfigurationDict, AnalyticsExportDestination, + AnalyticsExportDestinationDict, AnnotationEntry, AnnotationTableConfiguration, + AnnotationTableConfigurationDict, AnnotationTableConfigurationResult, AnnotationTableConfigurationUpdates, + AnnotationTableConfigurationUpdatesDict, BlockedEncryptionTypes, + BlockedEncryptionTypesDict, Bucket, BucketLifecycleConfiguration, + BucketLifecycleConfigurationDict, BucketLoggingStatus, + BucketLoggingStatusDict, CORSConfiguration, + CORSConfigurationDict, CSVOutput, + CSVOutputDict, CommonPrefix, Condition, + ConditionDict, ContinuationEvent, CopyPartResult, DefaultRetention, + DefaultRetentionDict, DeleteMarkerEntry, DeleteMarkerReplication, + DeleteMarkerReplicationDict, Destination, + DestinationDict, DestinationResult, Encryption, + EncryptionDict, EndEvent, ErrorDocument, + ErrorDocumentDict, EventBridgeConfiguration, + EventBridgeConfigurationDict, EventHoldDuration, + EventHoldDurationDict, ExistingObjectReplication, + ExistingObjectReplicationDict, FilterRule, + FilterRuleDict, GlacierJobParameters, + GlacierJobParametersDict, Grant, + GrantDict, Grantee, + GranteeDict, IndexDocument, + IndexDocumentDict, Initiator, InputSerialization, + InputSerializationDict, IntelligentTieringConfiguration, + IntelligentTieringConfigurationDict, InventoryConfiguration, + InventoryConfigurationDict, InventoryTableConfiguration, + InventoryTableConfigurationDict, InventoryTableConfigurationResult, InventoryTableConfigurationUpdates, + InventoryTableConfigurationUpdatesDict, JSONOutput, + JSONOutputDict, JournalTableConfiguration, + JournalTableConfigurationDict, JournalTableConfigurationResult, JournalTableConfigurationUpdates, + JournalTableConfigurationUpdatesDict, LambdaFunctionConfiguration, + LambdaFunctionConfigurationDict, LifecycleExpiration, + LifecycleExpirationDict, ServiceError, _SerdeShape, ) @@ -162,6 +201,103 @@ class LifecycleRule(_SerdeShape): in the *Amazon S3 User Guide*. """ +class LifecycleRuleDict(TypedDict, total=False): + """Dictionary form of `LifecycleRule`.""" + + expiration: LifecycleExpiration | LifecycleExpirationDict | None + """ + Specifies the expiration for the lifecycle of the object in the form of + date, days and, whether the object has a delete marker. + """ + id: str | None + """ + Unique identifier for the rule. The value cannot be longer than 255 + characters. + """ + prefix: str | None + """ + The general purpose bucket prefix that identifies one or more objects to + which the rule applies. We recommend using `Filter` instead of `Prefix` + for new PUTs. Previous configurations where a prefix is defined will + continue to operate as before. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + filter: LifecycleRuleFilter | LifecycleRuleFilterDict | None + """ + The `Filter` is used to identify objects that a Lifecycle Rule applies + to. A `Filter` must have exactly one of `Prefix`, `Tag`, + `ObjectSizeGreaterThan`, `ObjectSizeLessThan`, or `And` specified. + `Filter` is required if the `LifecycleRule` does not contain a `Prefix` + element. + + For more information about `Tag` filters, see [Adding filters to + Lifecycle + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-filters.html) + in the *Amazon S3 User Guide*. + + Note: + `Tag` filters are not supported for directory buckets. + """ + status: Required[str] + """ + If 'Enabled', the rule is currently being applied. If 'Disabled', + the rule is not currently being applied. + """ + transitions: Sequence[Transition | TransitionDict] | None + """ + Specifies when an Amazon S3 object transitions to a specified storage + class. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + noncurrent_version_transitions: ( + Sequence[NoncurrentVersionTransition | NoncurrentVersionTransitionDict] | None + ) + """ + Specifies the transition rule for the lifecycle rule that describes when + noncurrent objects transition to a specific storage class. If your + bucket is versioning-enabled (or versioning is suspended), you can set + this action to request that Amazon S3 transition noncurrent object + versions to a specific storage class at a set period in the object's + lifetime. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + noncurrent_version_expiration: ( + NoncurrentVersionExpiration | NoncurrentVersionExpirationDict | None + ) + """ + Specifies when noncurrent object versions expire. Upon expiration, + Amazon S3 permanently deletes the noncurrent object versions. You set + this lifecycle configuration action on a bucket that has versioning + enabled (or suspended) to request that Amazon S3 delete noncurrent + object versions at a specific period in the object's lifetime. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + abort_incomplete_multipart_upload: ( + AbortIncompleteMultipartUpload | AbortIncompleteMultipartUploadDict | None + ) + """ + Specifies the days since the initiation of an incomplete multipart + upload that Amazon S3 will wait before permanently removing all parts of + the upload. For more information, see [Aborting Incomplete Multipart + Uploads Using a Bucket Lifecycle + Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) + in the *Amazon S3 User Guide*. + """ + @dataclass(kw_only=True) class LifecycleRuleAndOperator(_SerdeShape): """ @@ -182,6 +318,21 @@ class LifecycleRuleAndOperator(_SerdeShape): object_size_less_than: int | None = ... """Maximum object size to which the rule applies.""" +class LifecycleRuleAndOperatorDict(TypedDict, total=False): + """Dictionary form of `LifecycleRuleAndOperator`.""" + + prefix: str | None + """Prefix identifying one or more objects to which the rule applies.""" + tags: Sequence[Tag | TagDict] | None + """ + All of these tags must exist in the object's tag set in order for the + rule to apply. + """ + object_size_greater_than: int | None + """Minimum object size to which the rule applies.""" + object_size_less_than: int | None + """Maximum object size to which the rule applies.""" + @dataclass(kw_only=True) class LifecycleRuleFilter(_SerdeShape): """ @@ -222,6 +373,39 @@ class LifecycleRuleFilter(_SerdeShape): all of the predicates configured inside the And operator. """ +class LifecycleRuleFilterDict(TypedDict, total=False): + """Dictionary form of `LifecycleRuleFilter`.""" + + prefix: str | None + """ + Prefix identifying one or more objects to which the rule applies. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + tag: Tag | TagDict | None + """ + This tag must exist in the object's tag set in order for the rule to + apply. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + object_size_greater_than: int | None + """Minimum object size to which the rule applies.""" + object_size_less_than: int | None + """Maximum object size to which the rule applies.""" + and_: LifecycleRuleAndOperator | LifecycleRuleAndOperatorDict | None + """ + This is used in a Lifecycle Rule Filter to apply a logical AND to two or + more predicates. The Lifecycle Rule will apply to any object matching + all of the predicates configured inside the And operator. + """ + @dataclass(kw_only=True) class ListBucketAnalyticsConfigurationsInput(_SerdeShape): """Dataclass for ListBucketAnalyticsConfigurationsInput structure.""" @@ -243,6 +427,26 @@ class ListBucketAnalyticsConfigurationsInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class ListBucketAnalyticsConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `ListBucketAnalyticsConfigurationsInput`.""" + + bucket: Required[str] + """ + The name of the bucket from which analytics configurations are + retrieved. + """ + continuation_token: str | None + """ + The `ContinuationToken` that represents a placeholder from where this + request should begin. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class ListBucketAnalyticsConfigurationsOutput(_SerdeShape): """Dataclass for ListBucketAnalyticsConfigurationsOutput structure.""" @@ -297,6 +501,26 @@ class ListBucketIntelligentTieringConfigurationsInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class ListBucketIntelligentTieringConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `ListBucketIntelligentTieringConfigurationsInput`.""" + + bucket: Required[str] + """ + The name of the Amazon S3 bucket whose configuration you want to modify + or retrieve. + """ + continuation_token: str | None + """ + The `ContinuationToken` that represents a placeholder from where this + request should begin. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class ListBucketIntelligentTieringConfigurationsOutput(_SerdeShape): """ @@ -374,6 +598,45 @@ class ListBucketInventoryConfigurationsInput(_SerdeShape): status code `501 Not Implemented`. """ +class ListBucketInventoryConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `ListBucketInventoryConfigurationsInput`.""" + + bucket: Required[str] + """ + The name of the bucket containing the inventory configurations to + retrieve. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + continuation_token: str | None + """ + The marker used to continue an inventory configuration listing that has + been truncated. Use the `NextContinuationToken` from a previously + truncated list response to continue the listing. The continuation token + is an opaque value that Amazon S3 understands. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class ListBucketInventoryConfigurationsOutput(_SerdeShape): """Dataclass for ListBucketInventoryConfigurationsOutput structure.""" @@ -446,6 +709,45 @@ class ListBucketMetricsConfigurationsInput(_SerdeShape): status code `501 Not Implemented`. """ +class ListBucketMetricsConfigurationsInputDict(TypedDict, total=False): + """Dictionary form of `ListBucketMetricsConfigurationsInput`.""" + + bucket: Required[str] + """ + The name of the bucket containing the metrics configurations to + retrieve. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + continuation_token: str | None + """ + The marker that is used to continue a metrics configuration listing that + has been truncated. Use the `NextContinuationToken` from a previously + truncated list response to continue the listing. The continuation token + is an opaque value that Amazon S3 understands. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class ListBucketMetricsConfigurationsOutput(_SerdeShape): """Dataclass for ListBucketMetricsConfigurationsOutput structure.""" @@ -528,6 +830,54 @@ class ListBucketsInput(_SerdeShape): must be made to an endpoint in Region `us-west-2`. """ +class ListBucketsInputDict(TypedDict, total=False): + """Dictionary form of `ListBucketsInput`.""" + + max_buckets: int | None + """ + Maximum number of buckets to be returned in response. When the number is + more than the count of buckets that are owned by an Amazon Web Services + account, return all the buckets in response. + """ + continuation_token: str | None + """ + `ContinuationToken` indicates to Amazon S3 that the list is being + continued on this bucket with a token. `ContinuationToken` is obfuscated + and is not a real key. You can use this `ContinuationToken` for + pagination of the list results. + + Length Constraints: Minimum length of 0. Maximum length of 1024. + + Required: No. + + Note: + If you specify the `bucket-region`, `prefix`, or `continuation-token` + query parameters without using `max-buckets` to set the maximum number + of buckets returned in the response, Amazon S3 applies a default page + size of 10,000 and provides a continuation token if there are more + buckets. + """ + prefix: str | None + """ + Limits the response to bucket names that begin with the specified bucket + name prefix. + """ + bucket_region: str | None + """ + Limits the response to buckets that are located in the specified Amazon + Web Services Region. The Amazon Web Services Region must be expressed + according to the Amazon Web Services Region code, such as `us-west-2` + for the US West (Oregon) Region. For a list of the valid values for all + of the Amazon Web Services Regions, see [Regions and + Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region). + + Note: + Requests made to a Regional endpoint that is different from the + `bucket-region` parameter are not supported. For example, if you want to + limit the response to your buckets in Region `us-west-2`, the request + must be made to an endpoint in Region `us-west-2`. + """ + @dataclass(kw_only=True) class ListBucketsOutput(_SerdeShape): """Dataclass for ListBucketsOutput structure.""" @@ -576,7 +926,24 @@ class ListDirectoryBucketsInput(_SerdeShape): account, return all the buckets in response. """ -@dataclass(kw_only=True) +class ListDirectoryBucketsInputDict(TypedDict, total=False): + """Dictionary form of `ListDirectoryBucketsInput`.""" + + continuation_token: str | None + """ + `ContinuationToken` indicates to Amazon S3 that the list is being + continued on buckets in this account with a token. `ContinuationToken` + is obfuscated and is not a real bucket name. You can use this + `ContinuationToken` for the pagination of the list results. + """ + max_directory_buckets: int | None + """ + Maximum number of buckets to be returned in response. When the number is + more than the count of buckets that are owned by an Amazon Web Services + account, return all the buckets in response. + """ + +@dataclass(kw_only=True) class ListDirectoryBucketsOutput(_SerdeShape): """Dataclass for ListDirectoryBucketsOutput structure.""" @@ -758,6 +1125,167 @@ class ListMultipartUploadsInput(_SerdeShape): This functionality is not supported for directory buckets. """ +class ListMultipartUploadsInputDict(TypedDict, total=False): + """Dictionary form of `ListMultipartUploadsInput`.""" + + bucket: Required[str] + """ + The name of the bucket to which the multipart upload was initiated. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + delimiter: str | None + """ + Character you use to group keys. + + All keys that contain the same string between the prefix, if specified, + and the first occurrence of the delimiter after the prefix are grouped + under a single result element, `CommonPrefixes`. If you don't specify + the prefix parameter, then the substring starts at the beginning of the + key. The keys that are grouped under `CommonPrefixes` result element are + not returned elsewhere in the response. + + `CommonPrefixes` is filtered out from results if it is not + lexicographically greater than the key-marker. + + Note: + **Directory buckets** - For directory buckets, `/` is the only supported + delimiter. + """ + encoding_type: str | None + """ + Encoding type used by Amazon S3 to encode the [object + keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html) + in the response. Responses are encoded only in UTF-8. An object key can + contain any Unicode character. However, the XML 1.0 parser can't parse + certain characters, such as characters with an ASCII value from 0 to 10. + For characters that aren't supported in XML 1.0, you can add this + parameter to request that Amazon S3 encode the keys in the response. For + more information about characters to avoid in object key names, see + [Object key naming + guidelines](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines). + + Note: + When using the URL encoding type, non-ASCII characters that are used in + an object's key name will be percent-encoded according to UTF-8 code + values. For example, the object `test_file(3).png` will appear as + `test_file%283%29.png`. + """ + key_marker: str | None + """ + Specifies the multipart upload after which listing should begin. + + Note: + - **General purpose buckets** - For general purpose buckets, + `key-marker` is an object key. Together with `upload-id-marker`, this + parameter specifies the multipart upload after which listing should + begin. + + If `upload-id-marker` is not specified, only the keys + lexicographically greater than the specified `key-marker` will be + included in the list. + + If `upload-id-marker` is specified, any multipart uploads for a key + equal to the `key-marker` might also be included, provided those + multipart uploads have upload IDs lexicographically greater than the + specified `upload-id-marker`. + + - **Directory buckets** - For directory buckets, `key-marker` is + obfuscated and isn't a real object key. The `upload-id-marker` + parameter isn't supported by directory buckets. To list the + additional multipart uploads, you only need to set the value of + `key-marker` to the `NextKeyMarker` value from the previous response. + + In the `ListMultipartUploads` response, the multipart uploads aren't + sorted lexicographically based on the object keys. + """ + max_uploads: int | None + """ + Sets the maximum number of multipart uploads, from 1 to 1,000, to return + in the response body. 1,000 is the maximum number of uploads that can be + returned in a response. + """ + prefix: str | None + """ + Lists in-progress uploads only for those keys that begin with the + specified prefix. You can use prefixes to separate a bucket into + different grouping of keys. (You can think of using `prefix` to make + groups in the same way that you'd use a folder in a file system.) + + Note: + **Directory buckets** - For directory buckets, only prefixes that end in + a delimiter (`/`) are supported. + """ + upload_id_marker: str | None + """ + Together with key-marker, specifies the multipart upload after which + listing should begin. If key-marker is not specified, the + upload-id-marker parameter is ignored. Otherwise, any multipart uploads + for a key equal to the key-marker might be included in the list only if + they have an upload ID lexicographically greater than the specified + `upload-id-marker`. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + @dataclass(kw_only=True) class ListMultipartUploadsOutput(_SerdeShape): """Dataclass for ListMultipartUploadsOutput structure.""" @@ -914,6 +1442,47 @@ class ListObjectAnnotationsInput(_SerdeShape): expected_bucket_owner: str | None = ... """The account ID of the expected bucket owner.""" +class ListObjectAnnotationsInputDict(TypedDict, total=False): + """Dictionary form of `ListObjectAnnotationsInput`.""" + + bucket: Required[str] + """The name of the bucket that contains the object.""" + key: Required[str] + """The object key.""" + version_id: str | None + """The version ID of the object.""" + max_annotation_results: int | None + """ + The maximum number of annotations to return in the response. Maximum is + 1,000. + """ + annotation_prefix: str | None + """ + Filter results to annotations whose name begins with the specified + prefix. + """ + continuation_token: str | None + """ + Continuation token returned by a previous request to retrieve the next + page. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """The account ID of the expected bucket owner.""" + @dataclass(kw_only=True) class ListObjectAnnotationsOutput(_SerdeShape): """Dataclass for ListObjectAnnotationsOutput structure.""" @@ -1060,29 +1629,133 @@ class ListObjectsInput(_SerdeShape): Fields that you do not specify are not returned. """ -@dataclass(kw_only=True) -class ListObjectsOutput(_SerdeShape): - """Dataclass for ListObjectsOutput structure.""" +class ListObjectsInputDict(TypedDict, total=False): + """Dictionary form of `ListObjectsInput`.""" - is_truncated: bool | None = ... + bucket: Required[str] """ - A flag that indicates whether Amazon S3 returned all of the results that - satisfied the search criteria. + The name of the bucket containing the objects. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. """ - marker: str | None = ... + delimiter: str | None """ - Indicates where in the bucket listing begins. Marker is included in the - response if it was sent with the request. + A delimiter is a character that you use to group keys. + + `CommonPrefixes` is filtered out from results if it is not + lexicographically greater than the key-marker. """ - next_marker: str | None = ... + encoding_type: str | None """ - When the response is truncated (the `IsTruncated` element value in the - response is `true`), you can use the key name in this field as the - `marker` parameter in the subsequent request to get the next set of - objects. Amazon S3 lists objects in alphabetical order. - - Note: - This element is returned only if you have the `delimiter` request + Encoding type used by Amazon S3 to encode the [object + keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html) + in the response. Responses are encoded only in UTF-8. An object key can + contain any Unicode character. However, the XML 1.0 parser can't parse + certain characters, such as characters with an ASCII value from 0 to 10. + For characters that aren't supported in XML 1.0, you can add this + parameter to request that Amazon S3 encode the keys in the response. For + more information about characters to avoid in object key names, see + [Object key naming + guidelines](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines). + + Note: + When using the URL encoding type, non-ASCII characters that are used in + an object's key name will be percent-encoded according to UTF-8 code + values. For example, the object `test_file(3).png` will appear as + `test_file%283%29.png`. + """ + marker: str | None + """ + Marker is where you want Amazon S3 to start listing from. Amazon S3 + starts listing after this specified key. Marker can be any key in the + bucket. + """ + max_keys: int | None + """ + Sets the maximum number of keys returned in the response. By default, + the action returns up to 1,000 key names. The response might contain + fewer keys but will never contain more. + """ + prefix: str | None + """Limits the response to keys that begin with the specified prefix.""" + request_payer: str | None + """ + Confirms that the requester knows that she or he will be charged for the + list objects request. Bucket owners need not specify this parameter in + their requests. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + optional_object_attributes: Sequence[str] | None + """ + Specifies the optional fields that you want returned in the response. + Fields that you do not specify are not returned. + """ + +@dataclass(kw_only=True) +class ListObjectsOutput(_SerdeShape): + """Dataclass for ListObjectsOutput structure.""" + + is_truncated: bool | None = ... + """ + A flag that indicates whether Amazon S3 returned all of the results that + satisfied the search criteria. + """ + marker: str | None = ... + """ + Indicates where in the bucket listing begins. Marker is included in the + response if it was sent with the request. + """ + next_marker: str | None = ... + """ + When the response is truncated (the `IsTruncated` element value in the + response is `true`), you can use the key name in this field as the + `marker` parameter in the subsequent request to get the next set of + objects. Amazon S3 lists objects in alphabetical order. + + Note: + This element is returned only if you have the `delimiter` request parameter specified. If the response does not include the `NextMarker` element and it is truncated, you can use the value of the last `Key` element in the response as the `marker` parameter in the subsequent @@ -1307,6 +1980,152 @@ class ListObjectsV2Input(_SerdeShape): This functionality is not supported for directory buckets. """ +class ListObjectsV2InputDict(TypedDict, total=False): + """Dictionary form of `ListObjectsV2Input`.""" + + bucket: Required[str] + """ + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + delimiter: str | None + """ + A delimiter is a character that you use to group keys. + + `CommonPrefixes` is filtered out from results if it is not + lexicographically greater than the `StartAfter` value. + + Note: + - **Directory buckets** - For directory buckets, `/` is the only + supported delimiter. + + - **Directory buckets** - When you query `ListObjectsV2` with a + delimiter during in-progress multipart uploads, the `CommonPrefixes` + response parameter contains the prefixes that are associated with the + in-progress multipart uploads. For more information about multipart + uploads, see [Multipart Upload + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html) + in the *Amazon S3 User Guide*. + """ + encoding_type: str | None + """ + Encoding type used by Amazon S3 to encode the [object + keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html) + in the response. Responses are encoded only in UTF-8. An object key can + contain any Unicode character. However, the XML 1.0 parser can't parse + certain characters, such as characters with an ASCII value from 0 to 10. + For characters that aren't supported in XML 1.0, you can add this + parameter to request that Amazon S3 encode the keys in the response. For + more information about characters to avoid in object key names, see + [Object key naming + guidelines](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines). + + Note: + When using the URL encoding type, non-ASCII characters that are used in + an object's key name will be percent-encoded according to UTF-8 code + values. For example, the object `test_file(3).png` will appear as + `test_file%283%29.png`. + """ + max_keys: int | None + """ + Sets the maximum number of keys returned in the response. By default, + the action returns up to 1,000 key names. The response might contain + fewer keys but will never contain more. + """ + prefix: str | None + """ + Limits the response to keys that begin with the specified prefix. + + Note: + **Directory buckets** - For directory buckets, only prefixes that end in + a delimiter (`/`) are supported. + """ + continuation_token: str | None + """ + `ContinuationToken` indicates to Amazon S3 that the list is being + continued on this bucket with a token. `ContinuationToken` is obfuscated + and is not a real key. You can use this `ContinuationToken` for + pagination of the list results. + """ + fetch_owner: bool | None + """ + The owner field is not present in `ListObjectsV2` by default. If you + want to return the owner field with each key in the result, then set the + `FetchOwner` field to `true`. + + Note: + **Directory buckets** - For directory buckets, the bucket owner is + returned as the object owner for all objects. + """ + start_after: str | None + """ + StartAfter is where you want Amazon S3 to start listing from. Amazon S3 + starts listing after this specified key. StartAfter can be any key in + the bucket. + + Note: + This functionality is not supported for directory buckets. + """ + request_payer: str | None + """ + Confirms that the requester knows that she or he will be charged for the + list objects request in V2 style. Bucket owners need not specify this + parameter in their requests. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + optional_object_attributes: Sequence[str] | None + """ + Specifies the optional fields that you want returned in the response. + Fields that you do not specify are not returned. + + Note: + This functionality is not supported for directory buckets. + """ + @dataclass(kw_only=True) class ListObjectsV2Output(_SerdeShape): """Dataclass for ListObjectsV2Output structure.""" @@ -1521,35 +2340,120 @@ class ListObjectVersionsInput(_SerdeShape): Fields that you do not specify are not returned. """ -@dataclass(kw_only=True) -class ListObjectVersionsOutput(_SerdeShape): - """Dataclass for ListObjectVersionsOutput structure.""" +class ListObjectVersionsInputDict(TypedDict, total=False): + """Dictionary form of `ListObjectVersionsInput`.""" - is_truncated: bool | None = ... + bucket: Required[str] + """The bucket name that contains the objects.""" + delimiter: str | None """ - A flag that indicates whether Amazon S3 returned all of the results that - satisfied the search criteria. If your results were truncated, you can - make a follow-up paginated request by using the `NextKeyMarker` and - `NextVersionIdMarker` response parameters as a starting place in another - request to return the rest of the results. + A delimiter is a character that you specify to group keys. All keys that + contain the same string between the `prefix` and the first occurrence of + the delimiter are grouped under a single result element in + `CommonPrefixes`. These groups are counted as one result against the + `max-keys` limitation. These keys are not returned elsewhere in the + response. + + `CommonPrefixes` is filtered out from results if it is not + lexicographically greater than the key-marker. """ - key_marker: str | None = ... - """Marks the last key returned in a truncated response.""" - version_id_marker: str | None = ... - """Marks the last version of the key returned in a truncated response.""" - next_key_marker: str | None = ... + encoding_type: str | None """ - When the number of responses exceeds the value of `MaxKeys`, - `NextKeyMarker` specifies the first key not returned that satisfies the - search criteria. Use this value for the key-marker request parameter in - a subsequent request. + Encoding type used by Amazon S3 to encode the [object + keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html) + in the response. Responses are encoded only in UTF-8. An object key can + contain any Unicode character. However, the XML 1.0 parser can't parse + certain characters, such as characters with an ASCII value from 0 to 10. + For characters that aren't supported in XML 1.0, you can add this + parameter to request that Amazon S3 encode the keys in the response. For + more information about characters to avoid in object key names, see + [Object key naming + guidelines](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines). + + Note: + When using the URL encoding type, non-ASCII characters that are used in + an object's key name will be percent-encoded according to UTF-8 code + values. For example, the object `test_file(3).png` will appear as + `test_file%283%29.png`. """ - next_version_id_marker: str | None = ... + key_marker: str | None + """Specifies the key to start with when listing objects in a bucket.""" + max_keys: int | None """ - When the number of responses exceeds the value of `MaxKeys`, - `NextVersionIdMarker` specifies the first object version not returned - that satisfies the search criteria. Use this value for the - `version-id-marker` request parameter in a subsequent request. + Sets the maximum number of keys returned in the response. By default, + the action returns up to 1,000 key names. The response might contain + fewer keys but will never contain more. If additional keys satisfy the + search criteria, but were not returned because `max-keys` was exceeded, + the response contains + ``{=html}`true```{=html}. To return the + additional keys, see `key-marker` and `version-id-marker`. + """ + prefix: str | None + """ + Use this parameter to select only those keys that begin with the + specified prefix. You can use prefixes to separate a bucket into + different groupings of keys. (You can think of using `prefix` to make + groups in the same way that you'd use a folder in a file system.) You + can use `prefix` with `delimiter` to roll up numerous objects into a + single result under `CommonPrefixes`. + """ + version_id_marker: str | None + """Specifies the object version you want to start listing from.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + optional_object_attributes: Sequence[str] | None + """ + Specifies the optional fields that you want returned in the response. + Fields that you do not specify are not returned. + """ + +@dataclass(kw_only=True) +class ListObjectVersionsOutput(_SerdeShape): + """Dataclass for ListObjectVersionsOutput structure.""" + + is_truncated: bool | None = ... + """ + A flag that indicates whether Amazon S3 returned all of the results that + satisfied the search criteria. If your results were truncated, you can + make a follow-up paginated request by using the `NextKeyMarker` and + `NextVersionIdMarker` response parameters as a starting place in another + request to return the rest of the results. + """ + key_marker: str | None = ... + """Marks the last key returned in a truncated response.""" + version_id_marker: str | None = ... + """Marks the last version of the key returned in a truncated response.""" + next_key_marker: str | None = ... + """ + When the number of responses exceeds the value of `MaxKeys`, + `NextKeyMarker` specifies the first key not returned that satisfies the + search criteria. Use this value for the key-marker request parameter in + a subsequent request. + """ + next_version_id_marker: str | None = ... + """ + When the number of responses exceeds the value of `MaxKeys`, + `NextVersionIdMarker` specifies the first object version not returned + that satisfies the search criteria. Use this value for the + `version-id-marker` request parameter in a subsequent request. """ versions: list[ObjectVersion] | None = ... """Container for version information.""" @@ -1722,6 +2626,118 @@ class ListPartsInput(_SerdeShape): This functionality is not supported for directory buckets. """ +class ListPartsInputDict(TypedDict, total=False): + """Dictionary form of `ListPartsInput`.""" + + bucket: Required[str] + """ + The name of the bucket to which the parts are being uploaded. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """Object key for which the multipart upload was initiated.""" + max_parts: int | None + """Sets the maximum number of parts to return.""" + part_number_marker: str | None + """ + Specifies the part after which listing should begin. Only parts with + higher part numbers will be listed. + """ + upload_id: Required[str] + """Upload ID identifying the multipart upload whose parts are being listed.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + sse_customer_algorithm: str | None + """ + The server-side encryption (SSE) algorithm used to encrypt the object. + This parameter is needed only when the object was created using a + checksum algorithm. For more information, see [Protecting data using + SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key: str | None + """ + The server-side encryption (SSE) customer managed key. This parameter is + needed only when the object was created using a checksum algorithm. For + more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None + """ + The MD5 server-side encryption (SSE) customer managed key. This + parameter is needed only when the object was created using a checksum + algorithm. For more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + @dataclass(kw_only=True) class ListPartsOutput(_SerdeShape): """Dataclass for ListPartsOutput structure.""" @@ -1869,6 +2885,20 @@ class LocationInfo(_SerdeShape): created. An example AZ ID value is `usw2-az1`. """ +class LocationInfoDict(TypedDict, total=False): + """Dictionary form of `LocationInfo`.""" + + type: str | None + """The type of location where the bucket will be created.""" + name: str | None + """ + The name of the location where the bucket will be created. + + For directory buckets, the name of the location is the Zone ID of the + Availability Zone (AZ) or Local Zone (LZ) where the bucket will be + created. An example AZ ID value is `usw2-az1`. + """ + class LocationType(UnknownEnumMixin, StrEnum): AVAILABILITY_ZONE = "AvailabilityZone" LOCAL_ZONE = "LocalZone" @@ -1910,6 +2940,37 @@ class LoggingEnabled(_SerdeShape): target_object_key_format: TargetObjectKeyFormat | None = ... """Amazon S3 key format for log objects.""" +class LoggingEnabledDict(TypedDict, total=False): + """Dictionary form of `LoggingEnabled`.""" + + target_bucket: Required[str] + """ + Specifies the bucket where you want Amazon S3 to store server access + logs. You can have your logs delivered to any bucket that you own, + including the same bucket that is being logged. You can also configure + multiple buckets to deliver their logs to the same target bucket. In + this case, you should choose a different `TargetPrefix` for each source + bucket so that the delivered log files can be distinguished by key. + """ + target_grants: Sequence[TargetGrant | TargetGrantDict] | None + """ + Container for granting information. + + Buckets that use the bucket owner enforced setting for Object Ownership + don't support target grants. For more information, see [Permissions for + server access log + delivery](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general) + in the *Amazon S3 User Guide*. + """ + target_prefix: Required[str] + """ + A prefix for all log object keys. If you store log files from multiple + Amazon S3 buckets in a single bucket, you can use a prefix to + distinguish which log files came from which bucket. + """ + target_object_key_format: TargetObjectKeyFormat | TargetObjectKeyFormatDict | None + """Amazon S3 key format for log objects.""" + @dataclass(kw_only=True) class MetadataConfiguration(_SerdeShape): """The S3 Metadata configuration for a general purpose bucket.""" @@ -1924,6 +2985,25 @@ class MetadataConfiguration(_SerdeShape): configuration. """ +class MetadataConfigurationDict(TypedDict, total=False): + """Dictionary form of `MetadataConfiguration`.""" + + journal_table_configuration: Required[ + JournalTableConfiguration | JournalTableConfigurationDict + ] + """The journal table configuration for a metadata configuration.""" + inventory_table_configuration: ( + InventoryTableConfiguration | InventoryTableConfigurationDict | None + ) + """The inventory table configuration for a metadata configuration.""" + annotation_table_configuration: ( + AnnotationTableConfiguration | AnnotationTableConfigurationDict | None + ) + """ + Optional annotation table configuration to include with the metadata + configuration. + """ + @dataclass(kw_only=True) class MetadataConfigurationResult(_SerdeShape): """The S3 Metadata configuration for a general purpose bucket.""" @@ -1955,6 +3035,14 @@ class MetadataEntry(_SerdeShape): value: str | None = ... """Value of the object.""" +class MetadataEntryDict(TypedDict, total=False): + """Dictionary form of `MetadataEntry`.""" + + name: str | None + """Name of the object.""" + value: str | None + """Value of the object.""" + @dataclass(kw_only=True) class MetadataTableConfiguration(_SerdeShape): """ @@ -1977,6 +3065,18 @@ class MetadataTableConfiguration(_SerdeShape): destination table bucket. """ +class MetadataTableConfigurationDict(TypedDict, total=False): + """Dictionary form of `MetadataTableConfiguration`.""" + + s3_tables_destination: Required[S3TablesDestination | S3TablesDestinationDict] + """ + The destination information for the metadata table configuration. The + destination table bucket must be in the same Region and Amazon Web + Services account as the general purpose bucket. The specified metadata + table name must be unique within the `aws_s3_metadata` namespace in the + destination table bucket. + """ + @dataclass(kw_only=True) class MetadataTableConfigurationResult(_SerdeShape): """ @@ -2026,6 +3126,25 @@ class MetadataTableEncryptionConfiguration(_SerdeShape): corresponds to the metadata table configuration. """ +class MetadataTableEncryptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `MetadataTableEncryptionConfiguration`.""" + + sse_algorithm: Required[str] + """ + The encryption type specified for a metadata table. To specify + server-side encryption with Key Management Service (KMS) keys (SSE-KMS), + use the `aws:kms` value. To specify server-side encryption with Amazon + S3 managed keys (SSE-S3), use the `AES256` value. + """ + kms_key_arn: str | None + """ + If server-side encryption with Key Management Service (KMS) keys + (SSE-KMS) is specified, you must also specify the KMS key Amazon + Resource Name (ARN). You must specify a customer-managed KMS key that's + located in the same Region as the general purpose bucket that + corresponds to the metadata table configuration. + """ + @dataclass(kw_only=True) class Metrics(_SerdeShape): """ @@ -2041,6 +3160,17 @@ class Metrics(_SerdeShape): `s3:Replication:OperationMissedThreshold` event. """ +class MetricsDict(TypedDict, total=False): + """Dictionary form of `Metrics`.""" + + status: Required[str] + """Specifies whether the replication metrics are enabled.""" + event_threshold: ReplicationTimeValue | ReplicationTimeValueDict | None + """ + A container specifying the time threshold for emitting the + `s3:Replication:OperationMissedThreshold` event. + """ + @dataclass(kw_only=True) class MetricsAndOperator(_SerdeShape): """ @@ -2062,6 +3192,21 @@ class MetricsAndOperator(_SerdeShape): access_point_arn: str | None = ... """The access point ARN used when evaluating an `AND` predicate.""" +class MetricsAndOperatorDict(TypedDict, total=False): + """Dictionary form of `MetricsAndOperator`.""" + + prefix: str | None + """The prefix used when evaluating an AND predicate.""" + tags: Sequence[Tag | TagDict] | None + """ + The list of tags used when evaluating an AND predicate. + + Note: + `Tag` filters are not supported for directory buckets. + """ + access_point_arn: str | None + """The access point ARN used when evaluating an `AND` predicate.""" + @dataclass(kw_only=True) class MetricsConfiguration(_SerdeShape): """ @@ -2091,13 +3236,33 @@ class MetricsConfiguration(_SerdeShape): Metrics configurations for directory buckets do not support tag filters. """ -@dataclass -class MetricsFilterPrefix(_SerdeShape): - """The prefix used when evaluating a metrics filter.""" - - value: str +class MetricsConfigurationDict(TypedDict, total=False): + """Dictionary form of `MetricsConfiguration`.""" -@dataclass + id: Required[str] + """ + The ID used to identify the metrics configuration. The ID has a 64 + character limit and can only contain letters, numbers, periods, dashes, + and underscores. + """ + filter: MetricsFilter | MetricsFilterDict | None + """ + Specifies a metrics configuration filter. The metrics configuration will + only include objects that meet the filter's criteria. A filter must be + a prefix, an object tag, an access point ARN, or a conjunction + (MetricsAndOperator). + + Note: + Metrics configurations for directory buckets do not support tag filters. + """ + +@dataclass +class MetricsFilterPrefix(_SerdeShape): + """The prefix used when evaluating a metrics filter.""" + + value: str + +@dataclass class MetricsFilterTag(_SerdeShape): """ The tag used when evaluating a metrics filter. @@ -2153,6 +3318,40 @@ prefix, an object tag, an access point ARN, or a conjunction class _MetricsFilterDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> MetricsFilter: ... +class MetricsFilterPrefixDict(TypedDict): + prefix: str + """The prefix used when evaluating a metrics filter.""" + +class MetricsFilterTagDict(TypedDict): + tag: Tag | TagDict + """ + The tag used when evaluating a metrics filter. + + Note: + `Tag` filters are not supported for directory buckets. + """ + +class MetricsFilterAccessPointArnDict(TypedDict): + access_point_arn: str + """The access point ARN used when evaluating a metrics filter.""" + +class MetricsFilterAndDict(TypedDict): + and_: MetricsAndOperator | MetricsAndOperatorDict + """ + A conjunction (logical AND) of predicates, which is used in evaluating a + metrics filter. The operator must have at least two predicates, and an + object must match all of the predicates in order for the filter to + apply. + """ + +MetricsFilterDict = Union[ + MetricsFilterPrefixDict + | MetricsFilterTagDict + | MetricsFilterAccessPointArnDict + | MetricsFilterAndDict +] +"""Dictionary form of `MetricsFilter`, setting exactly one variant.""" + class MetricsStatus(UnknownEnumMixin, StrEnum): ENABLED = "Enabled" DISABLED = "Disabled" @@ -2247,6 +3446,37 @@ class NoncurrentVersionExpiration(_SerdeShape): supported for directory bucket lifecycle configurations. """ +class NoncurrentVersionExpirationDict(TypedDict, total=False): + """Dictionary form of `NoncurrentVersionExpiration`.""" + + noncurrent_days: int | None + """ + Specifies the number of days an object is noncurrent before Amazon S3 + can perform the associated action. The value must be a non-zero positive + integer. For information about the noncurrent days calculations, see + [How Amazon S3 Calculates When an Object Became + Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) + in the *Amazon S3 User Guide*. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + newer_noncurrent_versions: int | None + """ + Specifies how many noncurrent versions Amazon S3 will retain. You can + specify up to 100 noncurrent versions to retain. Amazon S3 will + permanently delete any additional noncurrent versions beyond the + specified number to retain. For more information about noncurrent + versions, see [Lifecycle configuration + elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) + in the *Amazon S3 User Guide*. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + @dataclass(kw_only=True) class NoncurrentVersionTransition(_SerdeShape): """ @@ -2282,6 +3512,31 @@ class NoncurrentVersionTransition(_SerdeShape): in the *Amazon S3 User Guide*. """ +class NoncurrentVersionTransitionDict(TypedDict, total=False): + """Dictionary form of `NoncurrentVersionTransition`.""" + + noncurrent_days: int | None + """ + Specifies the number of days an object is noncurrent before Amazon S3 + can perform the associated action. For information about the noncurrent + days calculations, see [How Amazon S3 Calculates How Long an Object Has + Been + Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) + in the *Amazon S3 User Guide*. + """ + storage_class: str | None + """The class of storage used to store the object.""" + newer_noncurrent_versions: int | None + """ + Specifies how many noncurrent versions Amazon S3 will retain in the same + storage class before transitioning objects. You can specify up to 100 + noncurrent versions to retain. Amazon S3 will transition any additional + noncurrent versions beyond the specified number to retain. For more + information about noncurrent versions, see [Lifecycle configuration + elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) + in the *Amazon S3 User Guide*. + """ + @dataclass(kw_only=True) class NoSuchAnnotation(ServiceError, _SerdeShape): """The specified annotation does not exist on this object.""" @@ -2367,6 +3622,31 @@ class NotificationConfiguration(_SerdeShape): event_bridge_configuration: EventBridgeConfiguration | None = ... """Enables delivery of events to Amazon EventBridge.""" +class NotificationConfigurationDict(TypedDict, total=False): + """Dictionary form of `NotificationConfiguration`.""" + + topic_configurations: Sequence[TopicConfiguration | TopicConfigurationDict] | None + """ + The topic to which notifications are sent and the events for which + notifications are generated. + """ + queue_configurations: Sequence[QueueConfiguration | QueueConfigurationDict] | None + """ + The Amazon Simple Queue Service queues to publish messages to and the + events for which to publish messages. + """ + lambda_function_configurations: ( + Sequence[LambdaFunctionConfiguration | LambdaFunctionConfigurationDict] | None + ) + """ + Describes the Lambda functions to invoke and the events for which to + invoke them. + """ + event_bridge_configuration: ( + EventBridgeConfiguration | EventBridgeConfigurationDict | None + ) + """Enables delivery of events to Amazon EventBridge.""" + @dataclass(kw_only=True) class NotificationConfigurationFilter(_SerdeShape): """ @@ -2380,6 +3660,12 @@ class NotificationConfigurationFilter(_SerdeShape): key: S3KeyFilter | None = ... """A container for object key name prefix and suffix filtering rules.""" +class NotificationConfigurationFilterDict(TypedDict, total=False): + """Dictionary form of `NotificationConfigurationFilter`.""" + + key: S3KeyFilter | S3KeyFilterDict | None + """A container for object key name prefix and suffix filtering rules.""" + @dataclass(kw_only=True) class Object(_SerdeShape): """An object consists of data and its descriptive metadata.""" @@ -2521,6 +3807,16 @@ Valid Values: `SSES3` | `SSEKMS` class _ObjectEncryptionDeserializer: def deserialize(self, deserializer: ShapeDeserializer) -> ObjectEncryption: ... +class ObjectEncryptionSSEKMSDict(TypedDict): + ssekms: SSEKMSEncryption | SSEKMSEncryptionDict + """ + Specifies to update the object encryption type to server-side encryption + with Key Management Service (KMS) keys (SSE-KMS). + """ + +ObjectEncryptionDict = Union[ObjectEncryptionSSEKMSDict] +"""Dictionary form of `ObjectEncryption`, setting exactly one variant.""" + @dataclass(kw_only=True) class ObjectIdentifier(_SerdeShape): """Object Identifier is unique value to identify objects.""" @@ -2569,6 +3865,53 @@ class ObjectIdentifier(_SerdeShape): This functionality is only supported for directory buckets. """ +class ObjectIdentifierDict(TypedDict, total=False): + """Dictionary form of `ObjectIdentifier`.""" + + key: Required[str] + """ + Key name of the object. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + version_id: str | None + """ + Version ID for the specific version of the object to delete. + + Note: + This functionality is not supported for directory buckets. + """ + e_tag: str | None + """ + An entity tag (ETag) is an identifier assigned by a web server to a + specific version of a resource found at a URL. This header field makes + the request method conditional on `ETags`. + + Note: + Entity tags (ETags) for S3 Express One Zone are random alphanumeric + strings unique to the object. + """ + last_modified_time: datetime | None + """ + If present, the objects are deleted only if its modification times + matches the provided `Timestamp`. + + Note: + This functionality is only supported for directory buckets. + """ + size: int | None + """ + If present, the objects are deleted only if its size matches the + provided size in bytes. + + Note: + This functionality is only supported for directory buckets. + """ + @dataclass(kw_only=True) class ObjectLockConfiguration(_SerdeShape): """The container element for Object Lock configuration parameters.""" @@ -2588,6 +3931,24 @@ class ObjectLockConfiguration(_SerdeShape): `Years` at the same time. """ +class ObjectLockConfigurationDict(TypedDict, total=False): + """Dictionary form of `ObjectLockConfiguration`.""" + + object_lock_enabled: str | None + """ + Indicates whether this bucket has an Object Lock configuration enabled. + Enable `ObjectLockEnabled` when you apply `ObjectLockConfiguration` to a + bucket. + """ + rule: ObjectLockRule | ObjectLockRuleDict | None + """ + Specifies the Object Lock rule for the specified object. Enable the this + rule when you apply `ObjectLockConfiguration` to a bucket. Bucket + settings require both a mode and a period. The period can be either + `Days` or `Years` but you must select one. You cannot specify `Days` and + `Years` at the same time. + """ + class ObjectLockEnabled(UnknownEnumMixin, StrEnum): ENABLED = "Enabled" @@ -2602,6 +3963,12 @@ class ObjectLockLegalHold(_SerdeShape): status: str | None = ... """Indicates whether the specified object has a legal hold in place.""" +class ObjectLockLegalHoldDict(TypedDict, total=False): + """Dictionary form of `ObjectLockLegalHold`.""" + + status: str | None + """Indicates whether the specified object has a legal hold in place.""" + class ObjectLockLegalHoldStatus(UnknownEnumMixin, StrEnum): ON = "ON" OFF = "OFF" @@ -2629,6 +3996,24 @@ class ObjectLockRetention(_SerdeShape): remains protected after the event hold is released. """ +class ObjectLockRetentionDict(TypedDict, total=False): + """Dictionary form of `ObjectLockRetention`.""" + + mode: str | None + """Indicates the Retention mode for the specified object.""" + retain_until_date: datetime | None + """The date on which this Object Lock Retention will expire.""" + event_hold: str | None + """ + The event hold status for the object. Set to `ON` to enable an event + hold or `OFF` to disable it. + """ + event_hold_duration: EventHoldDuration | EventHoldDurationDict | None + """ + The event hold duration for the object. Specifies how long the object + remains protected after the event hold is released. + """ + class ObjectLockRetentionMode(UnknownEnumMixin, StrEnum): GOVERNANCE = "GOVERNANCE" COMPLIANCE = "COMPLIANCE" @@ -2651,6 +4036,23 @@ class ObjectLockRule(_SerdeShape): setting. """ +class ObjectLockRuleDict(TypedDict, total=False): + """Dictionary form of `ObjectLockRule`.""" + + default_retention: DefaultRetention | DefaultRetentionDict | None + """ + The default Object Lock retention settings for new objects in this + bucket. You can specify: + + - A default retention period, by using `Days` or `Years`. + + - A default event hold duration, by using `DefaultEventHold`. This + setting also uses days or years. + + You can set one or both. You cannot use days and years in the same + setting. + """ + @dataclass(kw_only=True) class ObjectNotInActiveTierError(ServiceError, _SerdeShape): """ @@ -2873,6 +4275,15 @@ class OutputLocation(_SerdeShape): request. """ +class OutputLocationDict(TypedDict, total=False): + """Dictionary form of `OutputLocation`.""" + + s3: S3Location | S3LocationDict | None + """ + Describes an S3 location that will receive the results of the restore + request. + """ + @dataclass(kw_only=True) class OutputSerialization(_SerdeShape): """Describes how results of the Select job are serialized.""" @@ -2882,6 +4293,14 @@ class OutputSerialization(_SerdeShape): json: JSONOutput | None = ... """Specifies JSON as request's output serialization format.""" +class OutputSerializationDict(TypedDict, total=False): + """Dictionary form of `OutputSerialization`.""" + + csv: CSVOutput | CSVOutputDict | None + """Describes the serialization of CSV-encoded Select results.""" + json: JSONOutput | JSONOutputDict | None + """Specifies JSON as request's output serialization format.""" + @dataclass(kw_only=True) class Owner(_SerdeShape): """Container for the owner's display name and ID.""" @@ -2891,6 +4310,14 @@ class Owner(_SerdeShape): id: str | None = ... """Container for the ID of the owner.""" +class OwnerDict(TypedDict, total=False): + """Dictionary form of `Owner`.""" + + display_name: str | None + """""" + id: str | None + """Container for the ID of the owner.""" + class OwnerOverride(UnknownEnumMixin, StrEnum): DESTINATION = "Destination" @@ -2901,6 +4328,12 @@ class OwnershipControls(_SerdeShape): rules: list[OwnershipControlsRule] """The container element for an ownership control rule.""" +class OwnershipControlsDict(TypedDict, total=False): + """Dictionary form of `OwnershipControls`.""" + + rules: Required[Sequence[OwnershipControlsRule | OwnershipControlsRuleDict]] + """The container element for an ownership control rule.""" + @dataclass(kw_only=True) class OwnershipControlsRule(_SerdeShape): """The container element for an ownership control rule.""" @@ -2937,10 +4370,48 @@ class OwnershipControlsRule(_SerdeShape): buckets use the bucket owner enforced setting for S3 Object Ownership. """ +class OwnershipControlsRuleDict(TypedDict, total=False): + """Dictionary form of `OwnershipControlsRule`.""" + + object_ownership: Required[str] + """ + The container element for object ownership for a bucket's ownership + controls. + + `BucketOwnerPreferred` - Objects uploaded to the bucket change ownership + to the bucket owner if the objects are uploaded with the + `bucket-owner-full-control` canned ACL. + + `ObjectWriter` - The uploading account will own the object if the object + is uploaded with the `bucket-owner-full-control` canned ACL. + + `BucketOwnerEnforced` - Access control lists (ACLs) are disabled and no + longer affect permissions. The bucket owner automatically owns and has + full control over every object in the bucket. The bucket only accepts + PUT requests that don't specify an ACL or specify bucket owner full + control ACLs (such as the predefined `bucket-owner-full-control` canned + ACL or a custom ACL in XML format that grants the same permissions). + + By default, `ObjectOwnership` is set to `BucketOwnerEnforced` and ACLs + are disabled. We recommend keeping ACLs disabled, except in uncommon use + cases where you must control access for each object individually. For + more information about S3 Object Ownership, see [Controlling ownership + of objects and disabling ACLs for your + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. Directory + buckets use the bucket owner enforced setting for S3 Object Ownership. + """ + @dataclass(kw_only=True) class ParquetInput(_SerdeShape): """Container for Parquet.""" +class ParquetInputDict(TypedDict, total=False): + """Dictionary form of `ParquetInput`.""" + @dataclass(kw_only=True) class Part(_SerdeShape): """Container for elements related to a part.""" @@ -3069,16 +4540,32 @@ class PartitionedPrefix(_SerdeShape): and the hour, minutes and seconds are set to 00 in the key. """ -class Payer(UnknownEnumMixin, StrEnum): - REQUESTER = "Requester" - BUCKET_OWNER = "BucketOwner" +class PartitionedPrefixDict(TypedDict, total=False): + """Dictionary form of `PartitionedPrefix`.""" -class Permission(UnknownEnumMixin, StrEnum): - FULL_CONTROL = "FULL_CONTROL" - WRITE = "WRITE" - WRITE_ACP = "WRITE_ACP" - READ = "READ" - READ_ACP = "READ_ACP" + partition_date_source: str | None + """ + Specifies the partition date source for the partitioned prefix. + `PartitionDateSource` can be `EventTime` or `DeliveryTime`. + + For `DeliveryTime`, the time in the log file names corresponds to the + delivery time for the log files. + + For `EventTime`, The logs delivered are for a specific day only. The + year, month, and day correspond to the day on which the event occurred, + and the hour, minutes and seconds are set to 00 in the key. + """ + +class Payer(UnknownEnumMixin, StrEnum): + REQUESTER = "Requester" + BUCKET_OWNER = "BucketOwner" + +class Permission(UnknownEnumMixin, StrEnum): + FULL_CONTROL = "FULL_CONTROL" + WRITE = "WRITE" + WRITE_ACP = "WRITE_ACP" + READ = "READ" + READ_ACP = "READ_ACP" @dataclass(kw_only=True) class PolicyStatus(_SerdeShape): @@ -3174,6 +4661,55 @@ class PublicAccessBlockConfiguration(_SerdeShape): blocked. """ +class PublicAccessBlockConfigurationDict(TypedDict, total=False): + """Dictionary form of `PublicAccessBlockConfiguration`.""" + + block_public_acls: bool | None + """ + Specifies whether Amazon S3 should block public access control lists + (ACLs) for this bucket and objects in this bucket. Setting this element + to `TRUE` causes the following behavior: + + - PUT Bucket ACL and PUT Object ACL calls fail if the specified ACL is + public. + + - PUT Object calls fail if the request includes a public ACL. + + - PUT Bucket calls fail if the request includes a public ACL. + + Enabling this setting doesn't affect existing policies or ACLs. + """ + ignore_public_acls: bool | None + """ + Specifies whether Amazon S3 should ignore public ACLs for this bucket + and objects in this bucket. Setting this element to `TRUE` causes Amazon + S3 to ignore all public ACLs on this bucket and objects in this bucket. + + Enabling this setting doesn't affect the persistence of any existing + ACLs and doesn't prevent new public ACLs from being set. + """ + block_public_policy: bool | None + """ + Specifies whether Amazon S3 should block public bucket policies for this + bucket. Setting this element to `TRUE` causes Amazon S3 to reject calls + to PUT Bucket policy if the specified bucket policy allows public + access. + + Enabling this setting doesn't affect existing bucket policies. + """ + restrict_public_buckets: bool | None + """ + Specifies whether Amazon S3 should restrict public bucket policies for + this bucket. Setting this element to `TRUE` restricts access to this + bucket to only Amazon Web Services service principals and authorized + users within this account if the bucket has a public policy. + + Enabling this setting doesn't affect previously stored bucket policies, + except that public and cross-account access within any public bucket + policy, including non-public delegation to specific accounts, is + blocked. + """ + @dataclass(kw_only=True) class PutBucketAbacInput(_SerdeShape): """Dataclass for PutBucketAbacInput structure.""" @@ -3211,6 +4747,42 @@ class PutBucketAbacInput(_SerdeShape): buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html). """ +class PutBucketAbacInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketAbacInput`.""" + + bucket: Required[str] + """The name of the general purpose bucket.""" + content_md5: str | None + """ + The MD5 hash of the `PutBucketAbac` request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm that you want Amazon S3 to use to create the + checksum. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + expected_bucket_owner: str | None + """ + The Amazon Web Services account ID of the general purpose bucket's + owner. + """ + abac_status: Required[AbacStatus | AbacStatusDict] + """ + The ABAC status of the general purpose bucket. When ABAC is enabled for + the general purpose bucket, you can use tags to manage access to the + general purpose buckets as well as for cost tracking purposes. When ABAC + is disabled for the general purpose buckets, you can only use tags for + cost tracking purposes. For more information, see [Using tags with S3 + general purpose + buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html). + """ + @dataclass(kw_only=True) class PutBucketAbacOutput(_SerdeShape): """Dataclass for PutBucketAbacOutput structure.""" @@ -3252,6 +4824,36 @@ class PutBucketAccelerateConfigurationInput(_SerdeShape): `ChecksumAlgorithm` parameter. """ +class PutBucketAccelerateConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketAccelerateConfigurationInput`.""" + + bucket: Required[str] + """The name of the bucket for which the accelerate configuration is set.""" + accelerate_configuration: Required[ + AccelerateConfiguration | AccelerateConfigurationDict + ] + """Container for setting the transfer acceleration state.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + @dataclass(kw_only=True) class PutBucketAccelerateConfigurationOutput(_SerdeShape): """Dataclass for PutBucketAccelerateConfigurationOutput structure.""" @@ -3327,6 +4929,68 @@ class PutBucketAclInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutBucketAclInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketAclInput`.""" + + acl: str | None + """The canned ACL to apply to the bucket.""" + access_control_policy: AccessControlPolicy | AccessControlPolicyDict | None + """ + Contains the elements that set the ACL permissions for an object per + grantee. + """ + bucket: Required[str] + """The bucket to which to apply the ACL.""" + content_md5: str | None + """ + The Base64 encoded 128-bit `MD5` digest of the data. This header must be + used as a message integrity check to verify that the request body was + not corrupted in transit. For more information, go to [RFC + 1864.](http://www.ietf.org/rfc/rfc1864.txt) + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + grant_full_control: str | None + """ + Allows grantee the read, write, read ACP, and write ACP permissions on + the bucket. + """ + grant_read: str | None + """Allows grantee to list the objects in the bucket.""" + grant_read_acp: str | None + """Allows grantee to read the bucket ACL.""" + grant_write: str | None + """ + Allows grantee to create new objects in the bucket. + + For the bucket and object owners of existing objects, also allows + deletions and overwrites of those objects. + """ + grant_write_acp: str | None + """Allows grantee to write the ACL for the applicable bucket.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutBucketAclOutput(_SerdeShape): """Dataclass for PutBucketAclOutput structure.""" @@ -3356,6 +5020,24 @@ class PutBucketAnalyticsConfigurationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutBucketAnalyticsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketAnalyticsConfigurationInput`.""" + + bucket: Required[str] + """The name of the bucket to which an analytics configuration is stored.""" + id: Required[str] + """The ID that identifies the analytics configuration.""" + analytics_configuration: Required[ + AnalyticsConfiguration | AnalyticsConfigurationDict + ] + """The configuration and any analyses for the analytics filter.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutBucketAnalyticsConfigurationOutput(_SerdeShape): """Dataclass for PutBucketAnalyticsConfigurationOutput structure.""" @@ -3413,6 +5095,50 @@ class PutBucketCorsInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutBucketCorsInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketCorsInput`.""" + + bucket: Required[str] + """Specifies the bucket impacted by the `cors`configuration.""" + cors_configuration: Required[CORSConfiguration | CORSConfigurationDict] + """ + Describes the cross-origin access configuration for objects in an Amazon + S3 bucket. For more information, see [Enabling Cross-Origin Resource + Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in + the *Amazon S3 User Guide*. + """ + content_md5: str | None + """ + The Base64 encoded 128-bit `MD5` digest of the data. This header must be + used as a message integrity check to verify that the request body was + not corrupted in transit. For more information, go to [RFC + 1864.](http://www.ietf.org/rfc/rfc1864.txt) + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutBucketCorsOutput(_SerdeShape): """Dataclass for PutBucketCorsOutput structure.""" @@ -3490,38 +5216,125 @@ class PutBucketEncryptionInput(_SerdeShape): status code `501 Not Implemented`. """ -@dataclass(kw_only=True) -class PutBucketEncryptionOutput(_SerdeShape): - """Dataclass for PutBucketEncryptionOutput structure.""" +class PutBucketEncryptionInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketEncryptionInput`.""" - response_metadata: ResponseMetadata = ... + bucket: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class PutBucketIntelligentTieringConfigurationInput(_SerdeShape): - """Dataclass for PutBucketIntelligentTieringConfigurationInput structure.""" + Specifies default encryption for a bucket using server-side encryption + with different key options. - bucket: str | None = ... + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* """ - The name of the Amazon S3 bucket whose configuration you want to modify - or retrieve. + content_md5: str | None """ - id: str | None = ... - """The ID used to identify the S3 Intelligent-Tiering configuration.""" - expected_bucket_owner: str | None = ... + The Base64 encoded 128-bit `MD5` digest of the server-side encryption + configuration. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + + Note: + This functionality is not supported for directory buckets. """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + + Note: + For directory buckets, when you use Amazon Web Services SDKs, `CRC32` is + the default checksum algorithm that's used for performance. + """ + server_side_encryption_configuration: Required[ + ServerSideEncryptionConfiguration | ServerSideEncryptionConfigurationDict + ] + """Specifies the default server-side-encryption configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + +@dataclass(kw_only=True) +class PutBucketEncryptionOutput(_SerdeShape): + """Dataclass for PutBucketEncryptionOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutBucketIntelligentTieringConfigurationInput(_SerdeShape): + """Dataclass for PutBucketIntelligentTieringConfigurationInput structure.""" + + bucket: str | None = ... + """ + The name of the Amazon S3 bucket whose configuration you want to modify + or retrieve. + """ + id: str | None = ... + """The ID used to identify the S3 Intelligent-Tiering configuration.""" + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). """ intelligent_tiering_configuration: IntelligentTieringConfiguration | None = ... """Container for S3 Intelligent-Tiering configuration.""" +class PutBucketIntelligentTieringConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketIntelligentTieringConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the Amazon S3 bucket whose configuration you want to modify + or retrieve. + """ + id: Required[str] + """The ID used to identify the S3 Intelligent-Tiering configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + intelligent_tiering_configuration: Required[ + IntelligentTieringConfiguration | IntelligentTieringConfigurationDict + ] + """Container for S3 Intelligent-Tiering configuration.""" + @dataclass(kw_only=True) class PutBucketIntelligentTieringConfigurationOutput(_SerdeShape): """Dataclass for PutBucketIntelligentTieringConfigurationOutput structure.""" @@ -3570,6 +5383,43 @@ class PutBucketInventoryConfigurationInput(_SerdeShape): status code `501 Not Implemented`. """ +class PutBucketInventoryConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketInventoryConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the bucket where the inventory configuration will be stored. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + id: Required[str] + """The ID used to identify the inventory configuration.""" + inventory_configuration: Required[ + InventoryConfiguration | InventoryConfigurationDict + ] + """Specifies the inventory configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class PutBucketInventoryConfigurationOutput(_SerdeShape): """Dataclass for PutBucketInventoryConfigurationOutput structure.""" @@ -3637,6 +5487,62 @@ class PutBucketLifecycleConfigurationInput(_SerdeShape): always take precedence over the default transition behavior. """ +class PutBucketLifecycleConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketLifecycleConfigurationInput`.""" + + bucket: Required[str] + """The name of the bucket for which to set the configuration.""" + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + lifecycle_configuration: ( + BucketLifecycleConfiguration | BucketLifecycleConfigurationDict | None + ) + """Container for lifecycle rules. You can add as many as 1,000 rules.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + """ + transition_default_minimum_object_size: str | None + """ + Indicates which default minimum object size behavior is applied to the + lifecycle configuration. + + Note: + This parameter applies to general purpose buckets only. It is not + supported for directory bucket lifecycle configurations. + + - `all_storage_classes_128K` - Objects smaller than 128 KB will not + transition to any storage class by default. + + - `varies_by_storage_class` - Objects smaller than 128 KB will + transition to Glacier Flexible Retrieval or Glacier Deep Archive + storage classes. By default, all other storage classes will prevent + transitions smaller than 128 KB. + + To customize the minimum object size for any transition you can add a + filter that specifies a custom `ObjectSizeGreaterThan` or + `ObjectSizeLessThan` in the body of your transition rule. Custom filters + always take precedence over the default transition behavior. + """ + @dataclass(kw_only=True) class PutBucketLifecycleConfigurationOutput(_SerdeShape): """Dataclass for PutBucketLifecycleConfigurationOutput structure.""" @@ -3708,6 +5614,42 @@ class PutBucketLoggingInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutBucketLoggingInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketLoggingInput`.""" + + bucket: Required[str] + """The name of the bucket for which to set the logging parameters.""" + bucket_logging_status: Required[BucketLoggingStatus | BucketLoggingStatusDict] + """Container for logging status information.""" + content_md5: str | None + """ + The MD5 hash of the `PutBucketLogging` request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutBucketLoggingOutput(_SerdeShape): """Dataclass for PutBucketLoggingOutput structure.""" @@ -3760,6 +5702,45 @@ class PutBucketMetricsConfigurationInput(_SerdeShape): status code `501 Not Implemented`. """ +class PutBucketMetricsConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketMetricsConfigurationInput`.""" + + bucket: Required[str] + """ + The name of the bucket for which the metrics configuration is set. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + id: Required[str] + """ + The ID used to identify the metrics configuration. The ID has a 64 + character limit and can only contain letters, numbers, periods, dashes, + and underscores. + """ + metrics_configuration: Required[MetricsConfiguration | MetricsConfigurationDict] + """Specifies the metrics configuration.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class PutBucketMetricsConfigurationOutput(_SerdeShape): """Dataclass for PutBucketMetricsConfigurationOutput structure.""" @@ -3795,6 +5776,30 @@ class PutBucketNotificationConfigurationInput(_SerdeShape): True or false value. """ +class PutBucketNotificationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketNotificationConfigurationInput`.""" + + bucket: Required[str] + """The name of the bucket.""" + notification_configuration: Required[ + NotificationConfiguration | NotificationConfigurationDict + ] + """ + A container for specifying the notification configuration of the bucket. + If this element is empty, notifications are turned off for the bucket. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + skip_destination_validation: bool | None + """ + Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. + True or false value. + """ + @dataclass(kw_only=True) class PutBucketNotificationConfigurationOutput(_SerdeShape): """Dataclass for PutBucketNotificationConfigurationOutput structure.""" @@ -3850,37 +5855,79 @@ class PutBucketOwnershipControlsInput(_SerdeShape): `ChecksumAlgorithm` parameter. """ -@dataclass(kw_only=True) -class PutBucketOwnershipControlsOutput(_SerdeShape): - """Dataclass for PutBucketOwnershipControlsOutput structure.""" +class PutBucketOwnershipControlsInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketOwnershipControlsInput`.""" - response_metadata: ResponseMetadata = ... + bucket: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The name of the Amazon S3 bucket whose `OwnershipControls` you want to + set. """ - -@dataclass(kw_only=True) -class PutBucketPolicyInput(_SerdeShape): - """Dataclass for PutBucketPolicyInput structure.""" - - bucket: str | None = ... + content_md5: str | None """ - The name of the bucket. + The MD5 hash of the `OwnershipControls` request body. - **Directory buckets** - When you use this operation with a directory - bucket, you must use path-style requests in the format - `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. - Virtual-hosted-style requests aren't supported. Directory bucket names - must be unique in the chosen Zone (Availability Zone or Local Zone). - Bucket names must also follow the format - ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, - ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information - about bucket naming restrictions, see [Directory bucket naming - rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) - in the *Amazon S3 User Guide* + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + ownership_controls: Required[OwnershipControls | OwnershipControlsDict] + """ + The `OwnershipControls` (BucketOwnerEnforced, BucketOwnerPreferred, or + ObjectWriter) that you want to apply to this Amazon S3 bucket. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum-`*`algorithm`*` ` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + +@dataclass(kw_only=True) +class PutBucketOwnershipControlsOutput(_SerdeShape): + """Dataclass for PutBucketOwnershipControlsOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutBucketPolicyInput(_SerdeShape): + """Dataclass for PutBucketPolicyInput structure.""" + + bucket: str | None = ... + """ + The name of the bucket. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* """ content_md5: str | None = ... """ @@ -3966,6 +6013,109 @@ class PutBucketPolicyInput(_SerdeShape): status code `501 Not Implemented`. """ +class PutBucketPolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketPolicyInput`.""" + + bucket: Required[str] + """ + The name of the bucket. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use path-style requests in the format + `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. + Virtual-hosted-style requests aren't supported. Directory bucket names + must be unique in the chosen Zone (Availability Zone or Local Zone). + Bucket names must also follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`DOC-EXAMPLE-BUCKET`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide* + """ + content_md5: str | None + """ + The MD5 hash of the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + + Note: + This functionality is not supported for directory buckets. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum-`*`algorithm`*` ` or + `x-amz-trailer` header sent. Otherwise, Amazon S3 fails the request with + the HTTP status code `400 Bad Request`. + + For the `x-amz-checksum-`*`algorithm`*` ` header, replace + ` `*`algorithm`*` ` with the supported algorithm from the following + list: + + - `CRC32` + + - `CRC32C` + + - `CRC64NVME` + + - `MD5` + + - `SHA1` + + - `SHA256` + + - `SHA512` + + - `XXHASH3` + + - `XXHASH64` + + - `XXHASH128` + + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If the individual checksum value you provide through + `x-amz-checksum-`*`algorithm`*` ` doesn't match the checksum algorithm + you set through `x-amz-sdk-checksum-algorithm`, Amazon S3 fails the + request with a `BadDigest` error. + + Note: + For directory buckets, when you use Amazon Web Services SDKs, `CRC32` is + the default checksum algorithm that's used for performance. + """ + confirm_remove_self_bucket_access: bool | None + """ + Set this parameter to true to confirm that you want to remove your + permissions to change this bucket policy in the future. + + Note: + This functionality is not supported for directory buckets. + """ + policy: Required[str] + """ + The bucket policy as a JSON document. + + For directory buckets, the only IAM action supported in the bucket + policy is `s3express:CreateSession`. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + + Note: + For directory buckets, this header is not supported in this API + operation. If you specify this header, the request fails with the HTTP + status code `501 Not Implemented`. + """ + @dataclass(kw_only=True) class PutBucketPolicyOutput(_SerdeShape): """Dataclass for PutBucketPolicyOutput structure.""" @@ -4023,6 +6173,52 @@ class PutBucketReplicationInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutBucketReplicationInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketReplicationInput`.""" + + bucket: Required[str] + """The name of the bucket""" + content_md5: str | None + """ + The Base64 encoded 128-bit `MD5` digest of the data. You must use this + header as a message integrity check to verify that the request body was + not corrupted in transit. For more information, see [RFC + 1864](http://www.ietf.org/rfc/rfc1864.txt). + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + replication_configuration: Required[ + ReplicationConfiguration | ReplicationConfigurationDict + ] + """ + A container for replication rules. You can add up to 1,000 rules. The + maximum size of a replication configuration is 2 MB. + """ + token: str | None + """A token to allow Object Lock to be enabled for an existing bucket.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutBucketReplicationOutput(_SerdeShape): """Dataclass for PutBucketReplicationOutput structure.""" @@ -4075,6 +6271,47 @@ class PutBucketRequestPaymentInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutBucketRequestPaymentInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketRequestPaymentInput`.""" + + bucket: Required[str] + """The bucket name.""" + content_md5: str | None + """ + The Base64 encoded 128-bit `MD5` digest of the data. You must use this + header as a message integrity check to verify that the request body was + not corrupted in transit. For more information, see [RFC + 1864](http://www.ietf.org/rfc/rfc1864.txt). + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + request_payment_configuration: Required[ + RequestPaymentConfiguration | RequestPaymentConfigurationDict + ] + """Container for Payer.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutBucketRequestPaymentOutput(_SerdeShape): """Dataclass for PutBucketRequestPaymentOutput structure.""" @@ -4127,6 +6364,45 @@ class PutBucketTaggingInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutBucketTaggingInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketTaggingInput`.""" + + bucket: Required[str] + """The bucket name.""" + content_md5: str | None + """ + The Base64 encoded 128-bit `MD5` digest of the data. You must use this + header as a message integrity check to verify that the request body was + not corrupted in transit. For more information, see [RFC + 1864](http://www.ietf.org/rfc/rfc1864.txt). + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + tagging: Required[Tagging | TaggingDict] + """Container for the `TagSet` and `Tag` elements.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutBucketTaggingOutput(_SerdeShape): """Dataclass for PutBucketTaggingOutput structure.""" @@ -4192,13 +6468,67 @@ class PutBucketVersioningInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ -@dataclass(kw_only=True) -class PutBucketVersioningOutput(_SerdeShape): - """Dataclass for PutBucketVersioningOutput structure.""" +class PutBucketVersioningInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketVersioningInput`.""" - response_metadata: ResponseMetadata = ... + bucket: Required[str] + """The bucket name.""" + content_md5: str | None """ - Metadata about the response that produced this output. Use this to + >The Base64 encoded 128-bit `MD5` digest of the data. You must use this + header as a message integrity check to verify that the request body was + not corrupted in transit. For more information, see [RFC + 1864](http://www.ietf.org/rfc/rfc1864.txt). + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + mfa: str | None + """ + The concatenation of the authentication device's serial number, a + space, and the value that is displayed on your authentication device. + The serial number is the number that uniquely identifies the MFA device. + For physical MFA devices, this is the unique serial number that's + provided with the device. For virtual MFA devices, the serial number is + the device ARN. For more information, see [Enabling versioning on + buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/manage-versioning-examples.html) + and [Configuring MFA + delete](https://docs.aws.amazon.com/AmazonS3/latest/userguide/MultiFactorAuthenticationDelete.html) + in the *Amazon Simple Storage Service User Guide*. + """ + versioning_configuration: Required[ + VersioningConfiguration | VersioningConfigurationDict + ] + """Container for setting the versioning state.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class PutBucketVersioningOutput(_SerdeShape): + """Dataclass for PutBucketVersioningOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional. @@ -4244,6 +6574,45 @@ class PutBucketWebsiteInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutBucketWebsiteInputDict(TypedDict, total=False): + """Dictionary form of `PutBucketWebsiteInput`.""" + + bucket: Required[str] + """The bucket name.""" + content_md5: str | None + """ + The Base64 encoded 128-bit `MD5` digest of the data. You must use this + header as a message integrity check to verify that the request body was + not corrupted in transit. For more information, see [RFC + 1864](http://www.ietf.org/rfc/rfc1864.txt). + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the request when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + website_configuration: Required[WebsiteConfiguration | WebsiteConfigurationDict] + """Container for the request.""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutBucketWebsiteOutput(_SerdeShape): """Dataclass for PutBucketWebsiteOutput structure.""" @@ -4386,6 +6755,135 @@ class PutObjectAclInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ +class PutObjectAclInputDict(TypedDict, total=False): + """Dictionary form of `PutObjectAclInput`.""" + + acl: str | None + """ + The canned ACL to apply to the object. For more information, see [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). + """ + access_control_policy: AccessControlPolicy | AccessControlPolicyDict | None + """ + Contains the elements that set the ACL permissions for an object per + grantee. + """ + bucket: Required[str] + """ + The bucket name that contains the object to which you want to attach the + ACL. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + content_md5: str | None + """ + The Base64 encoded 128-bit `MD5` digest of the data. This header must be + used as a message integrity check to verify that the request body was + not corrupted in transit. For more information, go to [RFC + 1864.>](http://www.ietf.org/rfc/rfc1864.txt) + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + grant_full_control: str | None + """ + Allows grantee the read, write, read ACP, and write ACP permissions on + the bucket. + + This functionality is not supported for Amazon S3 on Outposts. + """ + grant_read: str | None + """ + Allows grantee to list the objects in the bucket. + + This functionality is not supported for Amazon S3 on Outposts. + """ + grant_read_acp: str | None + """ + Allows grantee to read the bucket ACL. + + This functionality is not supported for Amazon S3 on Outposts. + """ + grant_write: str | None + """ + Allows grantee to create new objects in the bucket. + + For the bucket and object owners of existing objects, also allows + deletions and overwrites of those objects. + """ + grant_write_acp: str | None + """ + Allows grantee to write the ACL for the applicable bucket. + + This functionality is not supported for Amazon S3 on Outposts. + """ + key: Required[str] + """Key for which the PUT action was initiated.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + version_id: str | None + """ + Version ID used to reference a specific version of the object. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + @dataclass(kw_only=True) class PutObjectAclOutput(_SerdeShape): """Dataclass for PutObjectAclOutput structure.""" @@ -4486,66 +6984,225 @@ class PutObjectAnnotationInput(_SerdeShape): error. """ -@dataclass(kw_only=True) -class PutObjectAnnotationOutput(_SerdeShape): - """Dataclass for PutObjectAnnotationOutput structure.""" +class PutObjectAnnotationInputDict(TypedDict, total=False): + """ + Dictionary form of `PutObjectAnnotationInput` that either client + accepts. Its streaming body is one a sync client can send. Use + `AsyncPutObjectAnnotationInputDict` for an async stream. + """ - key: str | None = ... + bucket: Required[str] + """The name of the bucket that contains the object.""" + key: Required[str] """The object key.""" - annotation_name: str | None = ... - """The name of the annotation.""" - object_version_id: str | None = ... - """The version ID of the object that the annotation was attached to.""" - e_tag: str | None = ... - """The entity tag of the annotation.""" - checksum_crc32: str | None = ... - """The CRC32 checksum of the stored annotation.""" - checksum_crc32_c: str | None = ... - """The CRC32C checksum of the stored annotation.""" - checksum_crc64_nvme: str | None = ... - """The CRC64NVME checksum of the stored annotation.""" - checksum_sha1: str | None = ... - """The SHA1 checksum of the stored annotation.""" - checksum_sha256: str | None = ... - """The SHA256 checksum of the stored annotation.""" - checksum_sha512: str | None = ... - """The SHA512 checksum of the stored annotation.""" - checksum_md5: str | None = ... - """The MD5 checksum of the stored annotation.""" - checksum_xxhash64: str | None = ... - """The XXHASH64 checksum of the stored annotation.""" - checksum_xxhash3: str | None = ... - """The XXHASH3 checksum of the stored annotation.""" - checksum_xxhash128: str | None = ... - """The XXHASH128 checksum of the stored annotation.""" - checksum_type: str | None = ... - """The type of checksum used.""" - server_side_encryption: str | None = ... - """The server-side encryption algorithm used to encrypt the annotation.""" - request_charged: str | None = ... + version_id: str | None + """The version ID of the object to attach the annotation to.""" + annotation_name: Required[str] """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. + The name of the annotation. - Note: - This functionality is not supported for directory buckets. + Length Constraints: Minimum length of 1. Maximum length of 512 bytes. """ - response_metadata: ResponseMetadata = ... + annotation_payload: Required[SyncStreamingBlob] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The annotation payload. Must be between 1 byte and 1 MiB in size, and + must be valid UTF-8 encoded text. If the payload contains invalid UTF-8 + bytes, the request fails with HTTP 415 (Unsupported Media Type). To + store binary data, encode the payload using Base64 before uploading. """ - -@dataclass(kw_only=True) -class PutObjectInput(_SerdeShape): - """Dataclass for PutObjectInput structure.""" - - acl: str | None = ... + object_if_match: str | None + """ + If specified, the operation only succeeds if the object's ETag matches + the provided value. + """ + checksum_algorithm: str | None + """ + The checksum algorithm to use. Supported values: `CRC32`, `CRC32C`, + `CRC64NVME`, `SHA1`, `SHA256`, `SHA512`, `MD5`, `XXHASH64`, `XXHASH3`, + `XXHASH128`. + """ + checksum_crc32: str | None + """Base64-encoded CRC32 checksum of the annotation payload.""" + checksum_crc32_c: str | None + """Base64-encoded CRC32C checksum of the annotation payload.""" + checksum_crc64_nvme: str | None + """Base64-encoded CRC64NVME checksum of the annotation payload.""" + checksum_sha1: str | None + """Base64-encoded SHA1 checksum of the annotation payload.""" + checksum_sha256: str | None + """Base64-encoded SHA256 checksum of the annotation payload.""" + checksum_sha512: str | None + """Base64-encoded SHA512 checksum of the annotation payload.""" + checksum_md5: str | None + """Base64-encoded MD5 checksum of the annotation payload.""" + checksum_xxhash64: str | None + """Base64-encoded XXHASH64 checksum of the annotation payload.""" + checksum_xxhash3: str | None + """Base64-encoded XXHASH3 checksum of the annotation payload.""" + checksum_xxhash128: str | None + """Base64-encoded XXHASH128 checksum of the annotation payload.""" + content_md5: str | None + """Base64-encoded MD5 digest of the message.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the bucket is owned by a + different account, the request fails with an HTTP 403 (Access Denied) + error. + """ + +class AsyncPutObjectAnnotationInputDict(TypedDict, total=False): + """ + Dictionary form of `PutObjectAnnotationInput` for the async client. + Its streaming body may also be an async stream. + """ + + bucket: Required[str] + """The name of the bucket that contains the object.""" + key: Required[str] + """The object key.""" + version_id: str | None + """The version ID of the object to attach the annotation to.""" + annotation_name: Required[str] + """ + The name of the annotation. + + Length Constraints: Minimum length of 1. Maximum length of 512 bytes. + """ + annotation_payload: Required[StreamingBlob] + """ + The annotation payload. Must be between 1 byte and 1 MiB in size, and + must be valid UTF-8 encoded text. If the payload contains invalid UTF-8 + bytes, the request fails with HTTP 415 (Unsupported Media Type). To + store binary data, encode the payload using Base64 before uploading. + """ + object_if_match: str | None + """ + If specified, the operation only succeeds if the object's ETag matches + the provided value. + """ + checksum_algorithm: str | None + """ + The checksum algorithm to use. Supported values: `CRC32`, `CRC32C`, + `CRC64NVME`, `SHA1`, `SHA256`, `SHA512`, `MD5`, `XXHASH64`, `XXHASH3`, + `XXHASH128`. + """ + checksum_crc32: str | None + """Base64-encoded CRC32 checksum of the annotation payload.""" + checksum_crc32_c: str | None + """Base64-encoded CRC32C checksum of the annotation payload.""" + checksum_crc64_nvme: str | None + """Base64-encoded CRC64NVME checksum of the annotation payload.""" + checksum_sha1: str | None + """Base64-encoded SHA1 checksum of the annotation payload.""" + checksum_sha256: str | None + """Base64-encoded SHA256 checksum of the annotation payload.""" + checksum_sha512: str | None + """Base64-encoded SHA512 checksum of the annotation payload.""" + checksum_md5: str | None + """Base64-encoded MD5 checksum of the annotation payload.""" + checksum_xxhash64: str | None + """Base64-encoded XXHASH64 checksum of the annotation payload.""" + checksum_xxhash3: str | None + """Base64-encoded XXHASH3 checksum of the annotation payload.""" + checksum_xxhash128: str | None + """Base64-encoded XXHASH128 checksum of the annotation payload.""" + content_md5: str | None + """Base64-encoded MD5 digest of the message.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the bucket is owned by a + different account, the request fails with an HTTP 403 (Access Denied) + error. + """ + +@dataclass(kw_only=True) +class PutObjectAnnotationOutput(_SerdeShape): + """Dataclass for PutObjectAnnotationOutput structure.""" + + key: str | None = ... + """The object key.""" + annotation_name: str | None = ... + """The name of the annotation.""" + object_version_id: str | None = ... + """The version ID of the object that the annotation was attached to.""" + e_tag: str | None = ... + """The entity tag of the annotation.""" + checksum_crc32: str | None = ... + """The CRC32 checksum of the stored annotation.""" + checksum_crc32_c: str | None = ... + """The CRC32C checksum of the stored annotation.""" + checksum_crc64_nvme: str | None = ... + """The CRC64NVME checksum of the stored annotation.""" + checksum_sha1: str | None = ... + """The SHA1 checksum of the stored annotation.""" + checksum_sha256: str | None = ... + """The SHA256 checksum of the stored annotation.""" + checksum_sha512: str | None = ... + """The SHA512 checksum of the stored annotation.""" + checksum_md5: str | None = ... + """The MD5 checksum of the stored annotation.""" + checksum_xxhash64: str | None = ... + """The XXHASH64 checksum of the stored annotation.""" + checksum_xxhash3: str | None = ... + """The XXHASH3 checksum of the stored annotation.""" + checksum_xxhash128: str | None = ... + """The XXHASH128 checksum of the stored annotation.""" + checksum_type: str | None = ... + """The type of checksum used.""" + server_side_encryption: str | None = ... + """The server-side encryption algorithm used to encrypt the annotation.""" + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutObjectInput(_SerdeShape): + """Dataclass for PutObjectInput structure.""" + + acl: str | None = ... """ The canned ACL to apply to the object. For more information, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL) @@ -5206,14 +7863,65 @@ class PutObjectInput(_SerdeShape): with the HTTP status code `403 Forbidden` (access denied). """ -@dataclass(kw_only=True) -class PutObjectLegalHoldInput(_SerdeShape): - """Dataclass for PutObjectLegalHoldInput structure.""" +class PutObjectInputDict(TypedDict, total=False): + """ + Dictionary form of `PutObjectInput` that either client accepts. Its + streaming body is one a sync client can send. Use + `AsyncPutObjectInputDict` for an async stream. + """ - bucket: str | None = ... + acl: str | None """ - The bucket name containing the object that you want to place a legal - hold on. + The canned ACL to apply to the object. For more information, see [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL) + in the *Amazon S3 User Guide*. + + When adding a new object, you can use headers to grant ACL-based + permissions to individual Amazon Web Services accounts or to predefined + groups defined by Amazon S3. These permissions are then added to the ACL + on the object. By default, all objects are private. Only the owner has + full access control. For more information, see [Access Control List + (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) + and [Managing ACLs Using the REST + API](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html) + in the *Amazon S3 User Guide*. + + If the bucket that you're uploading objects to uses the bucket owner + enforced setting for S3 Object Ownership, ACLs are disabled and no + longer affect permissions. Buckets that use this setting only accept PUT + requests that don't specify an ACL or PUT requests that specify bucket + owner full control ACLs, such as the `bucket-owner-full-control` canned + ACL or an equivalent form of this ACL expressed in the XML format. PUT + requests that contain other ACLs (for example, custom grants to certain + Amazon Web Services accounts) fail and return a `400` error with the + error code `AccessControlListNotSupported`. For more information, see + [Controlling ownership of objects and disabling + ACLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + in the *Amazon S3 User Guide*. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + body: SyncStreamingBlob | None + """Object data.""" + bucket: Required[str] + """ + The bucket name to which the PUT action was initiated. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. **Access points** - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point @@ -5228,1271 +7936,5040 @@ class PutObjectLegalHoldInput(_SerdeShape): name. For more information about access point ARNs, see [Using access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the *Amazon S3 User Guide*. - """ - key: str | None = ... - """The key name for the object that you want to place a legal hold on.""" - legal_hold: ObjectLockLegalHold | None = ... - """ - Container element for the legal hold configuration you want to apply to - the specified object. - """ - request_payer: str | None = ... - """ - Confirms that the requester knows that they will be charged for the - request. Bucket owners need not specify this parameter in their - requests. If either the source or destination S3 bucket has Requester - Pays enabled, the requester will pay for the corresponding charges. For - information about downloading objects from Requester Pays buckets, see - [Downloading Objects in Requester Pays - Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) - in the *Amazon S3 User Guide*. Note: - This functionality is not supported for directory buckets. + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. """ - version_id: str | None = ... - """The version ID of the object that you want to place a legal hold on.""" - content_md5: str | None = ... + cache_control: str | None """ - The MD5 hash for the request body. - - For requests made using the Amazon Web Services Command Line Interface - (CLI) or Amazon Web Services SDKs, this field is calculated - automatically. + Can be used to specify caching behavior along the request/reply chain. + For more information, see + . """ - checksum_algorithm: str | None = ... + content_disposition: str | None """ - Indicates the algorithm used to create the checksum for the object when - you use the SDK. This header will not provide any additional - functionality if you don't use the SDK. When you send this header, - there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header - sent. Otherwise, Amazon S3 fails the request with the HTTP status code - `400 Bad Request`. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. - - If you provide an individual checksum, Amazon S3 ignores any provided - `ChecksumAlgorithm` parameter. - """ - expected_bucket_owner: str | None = ... - """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). - """ - -@dataclass(kw_only=True) -class PutObjectLegalHoldOutput(_SerdeShape): - """Dataclass for PutObjectLegalHoldOutput structure.""" - - request_charged: str | None = ... - """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. - - Note: - This functionality is not supported for directory buckets. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Specifies presentational information for the object. For more + information, see . """ - -@dataclass(kw_only=True) -class PutObjectLockConfigurationInput(_SerdeShape): - """Dataclass for PutObjectLockConfigurationInput structure.""" - - bucket: str | None = ... + content_encoding: str | None """ - The bucket whose Object Lock configuration you want to create or - replace. + Specifies what content encodings have been applied to the object and + thus what decoding mechanisms must be applied to obtain the media-type + referenced by the Content-Type header field. For more information, see + . """ - object_lock_configuration: ObjectLockConfiguration | None = ... + content_language: str | None + """The language the content is in.""" + content_length: int | None """ - The Object Lock configuration that you want to apply to the specified - bucket. + Size of the body in bytes. This parameter is useful when the size of the + body cannot be determined automatically. For more information, see + . """ - request_payer: str | None = ... + content_md5: str | None """ - Confirms that the requester knows that they will be charged for the - request. Bucket owners need not specify this parameter in their - requests. If either the source or destination S3 bucket has Requester - Pays enabled, the requester will pay for the corresponding charges. For - information about downloading objects from Requester Pays buckets, see - [Downloading Objects in Requester Pays - Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) - in the *Amazon S3 User Guide*. + The Base64 encoded 128-bit `MD5` digest of the message (without the + headers) according to RFC 1864. This header can be used as a message + integrity check to verify that the data is the same data that was + originally sent. Although it is optional, we recommend using the + Content-MD5 mechanism as an end-to-end integrity check. For more + information about REST request authentication, see [REST + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). + Note: + The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is required + for any request to upload an object with a retention period configured + using Amazon S3 Object Lock. For more information, see [Uploading + objects to an Object Lock enabled + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object) + in the *Amazon S3 User Guide*. Note: This functionality is not supported for directory buckets. """ - token: str | None = ... - """A token to allow Object Lock to be enabled for an existing bucket.""" - content_md5: str | None = ... + content_type: str | None """ - The MD5 hash for the request body. - - For requests made using the Amazon Web Services Command Line Interface - (CLI) or Amazon Web Services SDKs, this field is calculated - automatically. + A standard MIME type describing the format of the contents. For more + information, see + . """ - checksum_algorithm: str | None = ... + checksum_algorithm: str | None """ Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don't use the SDK. When you send this header, - there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header - sent. Otherwise, Amazon S3 fails the request with the HTTP status code - `400 Bad Request`. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + there must be a corresponding `x-amz-checksum-`*`algorithm`*` ` or + `x-amz-trailer` header sent. Otherwise, Amazon S3 fails the request with + the HTTP status code `400 Bad Request`. - If you provide an individual checksum, Amazon S3 ignores any provided - `ChecksumAlgorithm` parameter. - """ - expected_bucket_owner: str | None = ... - """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). - """ + For the `x-amz-checksum-`*`algorithm`*` ` header, replace + ` `*`algorithm`*` ` with the supported algorithm from the following + list: -@dataclass(kw_only=True) -class PutObjectLockConfigurationOutput(_SerdeShape): - """Dataclass for PutObjectLockConfigurationOutput structure.""" + - `CRC32` - request_charged: str | None = ... - """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. + - `CRC32C` - Note: - This functionality is not supported for directory buckets. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `CRC64NVME` -@dataclass(kw_only=True) -class PutObjectOutput(_SerdeShape): - """Dataclass for PutObjectOutput structure.""" + - `MD5` - expiration: str | None = ... - """ - If the expiration is configured for the object (see - [PutBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html)) - in the *Amazon S3 User Guide*, the response includes this header. It - includes the `expiry-date` and `rule-id` key-value pairs that provide - information about object expiration. The value of the `rule-id` is - URL-encoded. + - `SHA1` - Note: - Object expiration information is not returned in directory buckets and - this header returns the value \"`NotImplemented`\" in all responses for - directory buckets. - """ - e_tag: str | None = ... - """ - Entity tag for the uploaded object. + - `SHA256` - **General purpose buckets** - To ensure that data is not corrupted - traversing the network, for objects where the ETag is the MD5 digest of - the object, you can calculate the MD5 while putting an object to Amazon - S3 and compare the returned ETag to the calculated MD5 value. + - `SHA512` - **Directory buckets** - The ETag for the object in a directory bucket - isn't the MD5 digest of the object. + - `XXHASH3` + + - `XXHASH64` + + - `XXHASH128` + + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If the individual checksum value you provide through + `x-amz-checksum-`*`algorithm`*` ` doesn't match the checksum algorithm + you set through `x-amz-sdk-checksum-algorithm`, Amazon S3 fails the + request with a `BadDigest` error. + + Note: + The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is required + for any request to upload an object with a retention period configured + using Amazon S3 Object Lock. For more information, see [Uploading + objects to an Object Lock enabled + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object) + in the *Amazon S3 User Guide*. + + For directory buckets, when you use Amazon Web Services SDKs, `CRC32` is + the default checksum algorithm that's used for performance. """ - checksum_crc32: str | None = ... + checksum_crc32: str | None """ - The Base64 encoded, 32-bit `CRC32 checksum` of the object. This checksum - is only present if the checksum was uploaded with the object. When you - use an API operation on an object that was uploaded using multipart - uploads, this value may not be a direct checksum value of the full - object. Instead, it's a calculation based on the checksum values of - each individual part. For more information about how checksums are - calculated with multipart uploads, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_crc32_c: str | None = ... + checksum_crc32_c: str | None """ - The Base64 encoded, 32-bit `CRC32C` checksum of the object. This - checksum is only present if the checksum was uploaded with the object. - When you use an API operation on an object that was uploaded using - multipart uploads, this value may not be a direct checksum value of the - full object. Instead, it's a calculation based on the checksum values - of each individual part. For more information about how checksums are - calculated with multipart uploads, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_crc64_nvme: str | None = ... + checksum_crc64_nvme: str | None """ - The Base64 encoded, 64-bit `CRC64NVME` checksum of the object. This - header is present if the object was uploaded with the `CRC64NVME` - checksum algorithm, or if it was uploaded without a checksum (and Amazon - S3 added the default checksum, `CRC64NVME`, to the uploaded object). For - more information about how checksums are calculated with multipart - uploads, see [Checking object integrity in the Amazon S3 User + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the object. + The `CRC64NVME` checksum is always a full object checksum. For more + information, see [Checking object integrity in the Amazon S3 User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ - checksum_sha1: str | None = ... + checksum_sha1: str | None """ - The Base64 encoded, 160-bit `SHA1` digest of the object. This checksum - is only present if the checksum was uploaded with the object. When you - use the API operation on an object that was uploaded using multipart - uploads, this value may not be a direct checksum value of the full - object. Instead, it's a calculation based on the checksum values of - each individual part. For more information about how checksums are - calculated with multipart uploads, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_sha256: str | None = ... - """ - The Base64 encoded, 256-bit `SHA256` digest of the object. This checksum - is only present if the checksum was uploaded with the object. When you - use an API operation on an object that was uploaded using multipart - uploads, this value may not be a direct checksum value of the full - object. Instead, it's a calculation based on the checksum values of - each individual part. For more information about how checksums are - calculated with multipart uploads, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) - in the *Amazon S3 User Guide*. + checksum_sha256: str | None """ - checksum_sha512: str | None = ... + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - The Base64 encoded, 512-bit `SHA512` digest of the object. This header - is present if the object was uploaded with the `SHA512` checksum - algorithm. For more information, see [Checking object integrity in the - Amazon S3 User + checksum_sha512: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 512-bit `SHA512` digest of the object. For + more information, see [Checking object integrity in the Amazon S3 User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ - checksum_md5: str | None = ... + checksum_md5: str | None """ - The Base64 encoded, 128-bit `MD5` digest of the object. This header is - present if the object was uploaded with the `MD5` checksum algorithm. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `MD5` digest of the object. For + more information, see [Checking object integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash64: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH64` checksum of the object. For more information, see [Checking object integrity in the Amazon S3 User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ - checksum_xxhash64: str | None = ... + checksum_xxhash3: str | None """ - The Base64 encoded, 64-bit `XXHASH64` checksum of the object. This - header is present if the object was uploaded with the `XXHASH64` - checksum algorithm. For more information, see [Checking object integrity - in the Amazon S3 User + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH3` checksum of the object. + For more information, see [Checking object integrity in the Amazon S3 + User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ - checksum_xxhash3: str | None = ... + checksum_xxhash128: str | None """ - The Base64 encoded, 64-bit `XXHASH3` checksum of the object. This header - is present if the object was uploaded with the `XXHASH3` checksum - algorithm. For more information, see [Checking object integrity in the + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `XXHASH128` checksum of the + object. For more information, see [Checking object integrity in the Amazon S3 User Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). """ - checksum_xxhash128: str | None = ... + expires: str | None """ - The Base64 encoded, 128-bit `XXHASH128` checksum of the object. This - header is present if the object was uploaded with the `XXHASH128` - checksum algorithm. For more information, see [Checking object integrity - in the Amazon S3 User - Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + The date and time at which the object is no longer cacheable. For more + information, see . """ - checksum_type: str | None = ... + if_match: str | None """ - This header specifies the checksum type of the object, which determines - how part-level checksums are combined to create an object-level checksum - for multipart objects. For `PutObject` uploads, the checksum type is - always `FULL_OBJECT`. You can use this header as a data integrity check - to verify that the checksum type that is received is the same checksum - that was specified. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + Uploads the object only if the ETag (entity tag) value provided during + the WRITE operation matches the ETag of the object in S3. If the ETag + values do not match, the operation returns a `412 Precondition Failed` + error. + + If a conflicting operation occurs during the upload S3 returns a + `409 ConditionalRequestConflict` response. On a 409 failure you should + fetch the object's ETag and retry the upload. + + Expects the ETag value as a string. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232), or [Conditional + requests](https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html) in the *Amazon S3 User Guide*. """ - server_side_encryption: str | None = ... + if_none_match: str | None """ - The server-side encryption algorithm used when you store this object in - Amazon S3 or Amazon FSx. + Uploads the object only if the object key name does not already exist in + the bucket specified. Otherwise, Amazon S3 returns a + `412 Precondition Failed` error. - Note: - When accessing data stored in Amazon FSx file systems using S3 access - points, the only valid server side encryption option is `aws:fsx`. - """ - version_id: str | None = ... - """ - Version ID of the object. + If a conflicting operation occurs during the upload S3 returns a + `409 ConditionalRequestConflict` response. On a 409 failure you should + retry the upload. - If you enable versioning for a bucket, Amazon S3 automatically generates - a unique version ID for the object being stored. Amazon S3 returns this - ID in the response. When you enable versioning for a bucket, if Amazon - S3 receives multiple write requests for the same object simultaneously, - it stores all of the objects. For more information about versioning, see - [Adding Objects to Versioning-Enabled - Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html) - in the *Amazon S3 User Guide*. For information about returning the - versioning state of a bucket, see - [GetBucketVersioning](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html). + Expects the '*' (asterisk) character. - Note: - This functionality is not supported for directory buckets. + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232), or [Conditional + requests](https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html) + in the *Amazon S3 User Guide*. """ - sse_customer_algorithm: str | None = ... + grant_full_control: str | None """ - If server-side encryption with a customer-provided encryption key was - requested, the response will include this header to confirm the - encryption algorithm that's used. + Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the + object. Note: - This functionality is not supported for directory buckets. - """ - sse_customer_key_md5: str | None = ... - """ - If server-side encryption with a customer-provided encryption key was - requested, the response will include this header to provide the - round-trip message integrity verification of the customer-provided - encryption key. + - This functionality is not supported for directory buckets. - Note: - This functionality is not supported for directory buckets. - """ - ssekms_key_id: str | None = ... - """ - If present, indicates the ID of the KMS key that was used for object - encryption. - """ - ssekms_encryption_context: str | None = ... - """ - If present, indicates the Amazon Web Services KMS Encryption Context to - use for object encryption. The value of this header is a Base64 encoded - string of a UTF-8 encoded JSON, which contains the encryption context as - key-value pairs. This value is stored as object metadata and - automatically gets passed on to Amazon Web Services KMS for future - `GetObject` operations on this object. - """ - bucket_key_enabled: bool | None = ... - """ - Indicates whether the uploaded object uses an S3 Bucket Key for - server-side encryption with Key Management Service (KMS) keys (SSE-KMS). + - This functionality is not supported for Amazon S3 on Outposts. """ - size: int | None = ... + grant_read: str | None """ - The size of the object in bytes. This value is only be present if you - append to an object. + Allows grantee to read the object data and its metadata. Note: - This functionality is only supported for objects in the Amazon S3 - Express One Zone storage class in directory buckets. - """ - request_charged: str | None = ... - """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. + - This functionality is not supported for directory buckets. - Note: - This functionality is not supported for directory buckets. - """ - response_metadata: ResponseMetadata = ... + - This functionality is not supported for Amazon S3 on Outposts. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + grant_read_acp: str | None """ + Allows grantee to read the object ACL. -@dataclass(kw_only=True) -class PutObjectRetentionInput(_SerdeShape): - """Dataclass for PutObjectRetentionInput structure.""" - - bucket: str | None = ... - """ - The bucket name that contains the object you want to apply this Object - Retention configuration to. + Note: + - This functionality is not supported for directory buckets. - **Access points** - When you use this action with an access point for - general purpose buckets, you must provide the alias of the access point - in place of the bucket name or specify the access point ARN. When you - use this action with an access point for directory buckets, you must - provide the access point name in place of the bucket name. When using - the access point ARN, you must direct requests to the access point - hostname. The access point hostname takes the form - *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. - When using this action with an access point through the Amazon Web - Services SDKs, you provide the access point ARN in place of the bucket - name. For more information about access point ARNs, see [Using access - points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - in the *Amazon S3 User Guide*. - """ - key: str | None = ... - """ - The key name for the object that you want to apply this Object Retention - configuration to. + - This functionality is not supported for Amazon S3 on Outposts. """ - retention: ObjectLockRetention | None = ... - """The container element for the Object Retention configuration.""" - request_payer: str | None = ... + grant_write_acp: str | None """ - Confirms that the requester knows that they will be charged for the - request. Bucket owners need not specify this parameter in their - requests. If either the source or destination S3 bucket has Requester - Pays enabled, the requester will pay for the corresponding charges. For - information about downloading objects from Requester Pays buckets, see - [Downloading Objects in Requester Pays - Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) - in the *Amazon S3 User Guide*. + Allows grantee to write the ACL for the applicable object. Note: - This functionality is not supported for directory buckets. - """ - version_id: str | None = ... - """ - The version ID for the object that you want to apply this Object - Retention configuration to. - """ - bypass_governance_retention: bool | None = ... - """ - Indicates whether this action should bypass Governance-mode - restrictions. - """ - content_md5: str | None = ... - """ - The MD5 hash for the request body. + - This functionality is not supported for directory buckets. - For requests made using the Amazon Web Services Command Line Interface - (CLI) or Amazon Web Services SDKs, this field is calculated - automatically. + - This functionality is not supported for Amazon S3 on Outposts. """ - checksum_algorithm: str | None = ... + key: Required[str] + """Object key for which the PUT action was initiated.""" + write_offset_bytes: int | None """ - Indicates the algorithm used to create the checksum for the object when - you use the SDK. This header will not provide any additional - functionality if you don't use the SDK. When you send this header, - there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header - sent. Otherwise, Amazon S3 fails the request with the HTTP status code - `400 Bad Request`. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Specifies the offset for appending data to existing objects in bytes. + The offset must be equal to the size of the existing object being + appended to. If no object exists, setting this header to 0 will create a + new object. - If you provide an individual checksum, Amazon S3 ignores any provided - `ChecksumAlgorithm` parameter. + Note: + This functionality is only supported for objects in the Amazon S3 + Express One Zone storage class in directory buckets. """ - expected_bucket_owner: str | None = ... + metadata: Mapping[str, str] | None + """A map of metadata to store with the object in S3.""" + server_side_encryption: str | None """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + The server-side encryption algorithm that was used when you store this + object in Amazon S3 or Amazon FSx. + + - **General purpose buckets** - You have four mutually exclusive options + to protect data using server-side encryption in Amazon S3, depending + on how you choose to manage the encryption keys. Specifically, the + encryption key options are Amazon S3 managed keys (SSE-S3), Amazon Web + Services KMS keys (SSE-KMS or DSSE-KMS), and customer-provided keys + (SSE-C). Amazon S3 encrypts data with server-side encryption by using + Amazon S3 managed keys (SSE-S3) by default. You can optionally tell + Amazon S3 to encrypt data at rest by using server-side encryption with + other key options. For more information, see [Using Server-Side + Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) + in the *Amazon S3 User Guide*. + + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side encryption + with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side + encryption with KMS keys (SSE-KMS) (`aws:kms`). We recommend that the + bucket's default encryption uses the desired encryption configuration + and you don't override the bucket default encryption in your + `CreateSession` requests or `PUT` object requests. Then, new objects + are automatically encrypted with the desired encryption settings. For + more information, see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. For more information about the + encryption overriding behaviors in directory buckets, see [Specifying + server-side encryption with KMS for new object + uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). + + In the Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) + using the REST API, the encryption request headers must match the + encryption settings that are specified in the `CreateSession` request. + You can't override the values of the encryption settings + (`x-amz-server-side-encryption`, + `x-amz-server-side-encryption-aws-kms-key-id`, + `x-amz-server-side-encryption-context`, and + `x-amz-server-side-encryption-bucket-key-enabled`) that are specified + in the `CreateSession` request. You don't need to explicitly specify + these encryption settings values in Zonal endpoint API calls, and + Amazon S3 will use the encryption settings values from the + `CreateSession` request to protect new objects in the directory + bucket. + + Note: + When you use the CLI or the Amazon Web Services SDKs, for + `CreateSession`, the session token refreshes automatically to avoid + service interruptions when a session expires. The CLI or the Amazon + Web Services SDKs use the bucket's default encryption configuration + for the `CreateSession` request. It's not supported to override the + encryption settings values in the `CreateSession` request. So in the + Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)), + the encryption request headers must match the default encryption + configuration of the directory bucket. + + - **S3 access points for Amazon FSx** - When accessing data stored in + Amazon FSx file systems using S3 access points, the only valid server + side encryption option is `aws:fsx`. All Amazon FSx file systems have + encryption configured by default and are encrypted at rest. Data is + automatically encrypted before being written to the file system, and + automatically decrypted as it is read. These processes are handled + transparently by Amazon FSx. + """ + storage_class: str | None + """ + By default, Amazon S3 uses the STANDARD Storage Class to store newly + created objects. The STANDARD storage class provides high durability and + high availability. Depending on performance needs, you can specify a + different Storage Class. For more information, see [Storage + Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) + in the *Amazon S3 User Guide*. + + Note: + - Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express One + Zone storage class) in Availability Zones and `ONEZONE_IA` (the S3 One + Zone-Infrequent Access storage class) in Dedicated Local Zones. + + - Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. + """ + website_redirect_location: str | None + """ + If the bucket is configured as a website, redirects requests for this + object to another object in the same bucket or to an external URL. + Amazon S3 stores the value of this header in the object metadata. For + information about object metadata, see [Object Key and + Metadata](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html) + in the *Amazon S3 User Guide*. + + In the following example, the request header sets the redirect to an + object (anotherPage.html) in the same bucket: + + `x-amz-website-redirect-location: /anotherPage.html` + + In the following example, the request header sets the object redirect to + another website: + + `x-amz-website-redirect-location: http://www.example.com/` + + For more information about website hosting in Amazon S3, see [Hosting + Websites on Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) + and [How to Configure Website Page + Redirects](https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_algorithm: str | None + """ + Specifies the algorithm to use when encrypting the object (for example, + `AES256`). + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key: str | None + """ + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None + """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. + + Note: + This functionality is not supported for directory buckets. + """ + ssekms_key_id: str | None + """ + Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for + object encryption. If the KMS key doesn't exist in the same account + that's issuing the command, you must use the full Key ARN not the Key + ID. + + **General purpose buckets** - If you specify + `x-amz-server-side-encryption` with `aws:kms` or `aws:kms:dsse`, this + header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key + to use. If you specify `x-amz-server-side-encryption:aws:kms` or + `x-amz-server-side-encryption:aws:kms:dsse`, but do not provide + `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the Amazon + Web Services managed key (`aws/s3`) to protect the data. + + **Directory buckets** - To encrypt data using SSE-KMS, it's recommended + to specify the `x-amz-server-side-encryption` header to `aws:kms`. Then, + the `x-amz-server-side-encryption-aws-kms-key-id` header implicitly uses + the bucket's default KMS customer managed key ID. If you want to + explicitly set the ` x-amz-server-side-encryption-aws-kms-key-id` + header, it must match the bucket's default customer managed key (using + key ID or ARN, not alias). Your SSE-KMS configuration can only support 1 + [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + per directory bucket's lifetime. The [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + (`aws/s3`) isn't supported. Incorrect key specification results in an + HTTP `400 Bad Request` error. + """ + ssekms_encryption_context: str | None + """ + Specifies the Amazon Web Services KMS Encryption Context as an + additional encryption context to use for object encryption. The value of + this header is a Base64 encoded string of a UTF-8 encoded JSON, which + contains the encryption context as key-value pairs. This value is stored + as object metadata and automatically gets passed on to Amazon Web + Services KMS for future `GetObject` operations on this object. + + **General purpose buckets** - This value must be explicitly added during + `CopyObject` operations if you want an additional encryption context for + your object. For more information, see [Encryption + context](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html#encryption-context) + in the *Amazon S3 User Guide*. + + **Directory buckets** - You can optionally provide an explicit + encryption context value. The value must match the default encryption + context - the bucket Amazon Resource Name (ARN). An additional + encryption context value is not supported. + """ + bucket_key_enabled: bool | None + """ + Specifies whether Amazon S3 should use an S3 Bucket Key for object + encryption with server-side encryption using Key Management Service + (KMS) keys (SSE-KMS). + + **General purpose buckets** - Setting this header to `true` causes + Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. + Also, specifying this header with a PUT action doesn't affect + bucket-level settings for S3 Bucket Key. + + **Directory buckets** - S3 Bucket Keys are always enabled for `GET` and + `PUT` operations in a directory bucket and can't be disabled. S3 Bucket + Keys aren't supported, when you copy SSE-KMS encrypted objects from + general purpose buckets to directory buckets, from directory buckets to + general purpose buckets, or between directory buckets, through + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html), + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), + [the Copy operation in Batch + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops), + or [the import + jobs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job). + In this case, Amazon S3 makes a call to KMS every time a copy request is + made for a KMS-encrypted object. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + tagging: str | None + """ + The tag-set for the object. The tag-set must be encoded as URL Query + parameters. (For example, \"Key1=Value1\") + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_mode: str | None + """ + The Object Lock mode that you want to apply to this object. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_retain_until_date: datetime | None + """ + The date and time when you want this object's Object Lock to expire. + Must be formatted as a timestamp parameter. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_legal_hold_status: str | None + """ + Specifies whether a legal hold will be applied to this object. For more + information about S3 Object Lock, see [Object + Lock](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold: str | None + """ + Specifies the event hold status to apply to this object. Set to `ON` to + enable or `OFF` to disable. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold_duration_days: int | None + """ + Specifies the event hold duration in days to apply to this object. You + cannot specify a duration in both days and years. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold_duration_years: int | None + """ + Specifies the event hold duration in years to apply to this object. You + cannot specify a duration in both days and years. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class AsyncPutObjectInputDict(TypedDict, total=False): + """ + Dictionary form of `PutObjectInput` for the async client. Its + streaming body may also be an async stream. + """ + + acl: str | None + """ + The canned ACL to apply to the object. For more information, see [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL) + in the *Amazon S3 User Guide*. + + When adding a new object, you can use headers to grant ACL-based + permissions to individual Amazon Web Services accounts or to predefined + groups defined by Amazon S3. These permissions are then added to the ACL + on the object. By default, all objects are private. Only the owner has + full access control. For more information, see [Access Control List + (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) + and [Managing ACLs Using the REST + API](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html) + in the *Amazon S3 User Guide*. + + If the bucket that you're uploading objects to uses the bucket owner + enforced setting for S3 Object Ownership, ACLs are disabled and no + longer affect permissions. Buckets that use this setting only accept PUT + requests that don't specify an ACL or PUT requests that specify bucket + owner full control ACLs, such as the `bucket-owner-full-control` canned + ACL or an equivalent form of this ACL expressed in the XML format. PUT + requests that contain other ACLs (for example, custom grants to certain + Amazon Web Services accounts) fail and return a `400` error with the + error code `AccessControlListNotSupported`. For more information, see + [Controlling ownership of objects and disabling + ACLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) + in the *Amazon S3 User Guide*. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + body: StreamingBlob | None + """Object data.""" + bucket: Required[str] + """ + The bucket name to which the PUT action was initiated. + + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + cache_control: str | None + """ + Can be used to specify caching behavior along the request/reply chain. + For more information, see + . + """ + content_disposition: str | None + """ + Specifies presentational information for the object. For more + information, see . + """ + content_encoding: str | None + """ + Specifies what content encodings have been applied to the object and + thus what decoding mechanisms must be applied to obtain the media-type + referenced by the Content-Type header field. For more information, see + . + """ + content_language: str | None + """The language the content is in.""" + content_length: int | None + """ + Size of the body in bytes. This parameter is useful when the size of the + body cannot be determined automatically. For more information, see + . + """ + content_md5: str | None + """ + The Base64 encoded 128-bit `MD5` digest of the message (without the + headers) according to RFC 1864. This header can be used as a message + integrity check to verify that the data is the same data that was + originally sent. Although it is optional, we recommend using the + Content-MD5 mechanism as an end-to-end integrity check. For more + information about REST request authentication, see [REST + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). + + Note: + The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is required + for any request to upload an object with a retention period configured + using Amazon S3 Object Lock. For more information, see [Uploading + objects to an Object Lock enabled + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object) + in the *Amazon S3 User Guide*. + Note: + This functionality is not supported for directory buckets. + """ + content_type: str | None + """ + A standard MIME type describing the format of the contents. For more + information, see + . + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum-`*`algorithm`*` ` or + `x-amz-trailer` header sent. Otherwise, Amazon S3 fails the request with + the HTTP status code `400 Bad Request`. + + For the `x-amz-checksum-`*`algorithm`*` ` header, replace + ` `*`algorithm`*` ` with the supported algorithm from the following + list: + + - `CRC32` + + - `CRC32C` + + - `CRC64NVME` + + - `MD5` + + - `SHA1` + + - `SHA256` + + - `SHA512` + + - `XXHASH3` + + - `XXHASH64` + + - `XXHASH128` + + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If the individual checksum value you provide through + `x-amz-checksum-`*`algorithm`*` ` doesn't match the checksum algorithm + you set through `x-amz-sdk-checksum-algorithm`, Amazon S3 fails the + request with a `BadDigest` error. + + Note: + The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is required + for any request to upload an object with a retention period configured + using Amazon S3 Object Lock. For more information, see [Uploading + objects to an Object Lock enabled + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object) + in the *Amazon S3 User Guide*. + + For directory buckets, when you use Amazon Web Services SDKs, `CRC32` is + the default checksum algorithm that's used for performance. + """ + checksum_crc32: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc32_c: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc64_nvme: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the object. + The `CRC64NVME` checksum is always a full object checksum. For more + information, see [Checking object integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_sha1: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha256: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha512: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 512-bit `SHA512` digest of the object. For + more information, see [Checking object integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_md5: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `MD5` digest of the object. For + more information, see [Checking object integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash64: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH64` checksum of the object. + For more information, see [Checking object integrity in the Amazon S3 + User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash3: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH3` checksum of the object. + For more information, see [Checking object integrity in the Amazon S3 + User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash128: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `XXHASH128` checksum of the + object. For more information, see [Checking object integrity in the + Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + expires: str | None + """ + The date and time at which the object is no longer cacheable. For more + information, see . + """ + if_match: str | None + """ + Uploads the object only if the ETag (entity tag) value provided during + the WRITE operation matches the ETag of the object in S3. If the ETag + values do not match, the operation returns a `412 Precondition Failed` + error. + + If a conflicting operation occurs during the upload S3 returns a + `409 ConditionalRequestConflict` response. On a 409 failure you should + fetch the object's ETag and retry the upload. + + Expects the ETag value as a string. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232), or [Conditional + requests](https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html) + in the *Amazon S3 User Guide*. + """ + if_none_match: str | None + """ + Uploads the object only if the object key name does not already exist in + the bucket specified. Otherwise, Amazon S3 returns a + `412 Precondition Failed` error. + + If a conflicting operation occurs during the upload S3 returns a + `409 ConditionalRequestConflict` response. On a 409 failure you should + retry the upload. + + Expects the '*' (asterisk) character. + + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232), or [Conditional + requests](https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html) + in the *Amazon S3 User Guide*. + """ + grant_full_control: str | None + """ + Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the + object. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + grant_read: str | None + """ + Allows grantee to read the object data and its metadata. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + grant_read_acp: str | None + """ + Allows grantee to read the object ACL. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + grant_write_acp: str | None + """ + Allows grantee to write the ACL for the applicable object. + + Note: + - This functionality is not supported for directory buckets. + + - This functionality is not supported for Amazon S3 on Outposts. + """ + key: Required[str] + """Object key for which the PUT action was initiated.""" + write_offset_bytes: int | None + """ + Specifies the offset for appending data to existing objects in bytes. + The offset must be equal to the size of the existing object being + appended to. If no object exists, setting this header to 0 will create a + new object. + + Note: + This functionality is only supported for objects in the Amazon S3 + Express One Zone storage class in directory buckets. + """ + metadata: Mapping[str, str] | None + """A map of metadata to store with the object in S3.""" + server_side_encryption: str | None + """ + The server-side encryption algorithm that was used when you store this + object in Amazon S3 or Amazon FSx. + + - **General purpose buckets** - You have four mutually exclusive options + to protect data using server-side encryption in Amazon S3, depending + on how you choose to manage the encryption keys. Specifically, the + encryption key options are Amazon S3 managed keys (SSE-S3), Amazon Web + Services KMS keys (SSE-KMS or DSSE-KMS), and customer-provided keys + (SSE-C). Amazon S3 encrypts data with server-side encryption by using + Amazon S3 managed keys (SSE-S3) by default. You can optionally tell + Amazon S3 to encrypt data at rest by using server-side encryption with + other key options. For more information, see [Using Server-Side + Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) + in the *Amazon S3 User Guide*. + + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side encryption + with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side + encryption with KMS keys (SSE-KMS) (`aws:kms`). We recommend that the + bucket's default encryption uses the desired encryption configuration + and you don't override the bucket default encryption in your + `CreateSession` requests or `PUT` object requests. Then, new objects + are automatically encrypted with the desired encryption settings. For + more information, see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. For more information about the + encryption overriding behaviors in directory buckets, see [Specifying + server-side encryption with KMS for new object + uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). + + In the Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) + using the REST API, the encryption request headers must match the + encryption settings that are specified in the `CreateSession` request. + You can't override the values of the encryption settings + (`x-amz-server-side-encryption`, + `x-amz-server-side-encryption-aws-kms-key-id`, + `x-amz-server-side-encryption-context`, and + `x-amz-server-side-encryption-bucket-key-enabled`) that are specified + in the `CreateSession` request. You don't need to explicitly specify + these encryption settings values in Zonal endpoint API calls, and + Amazon S3 will use the encryption settings values from the + `CreateSession` request to protect new objects in the directory + bucket. + + Note: + When you use the CLI or the Amazon Web Services SDKs, for + `CreateSession`, the session token refreshes automatically to avoid + service interruptions when a session expires. The CLI or the Amazon + Web Services SDKs use the bucket's default encryption configuration + for the `CreateSession` request. It's not supported to override the + encryption settings values in the `CreateSession` request. So in the + Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)), + the encryption request headers must match the default encryption + configuration of the directory bucket. + + - **S3 access points for Amazon FSx** - When accessing data stored in + Amazon FSx file systems using S3 access points, the only valid server + side encryption option is `aws:fsx`. All Amazon FSx file systems have + encryption configured by default and are encrypted at rest. Data is + automatically encrypted before being written to the file system, and + automatically decrypted as it is read. These processes are handled + transparently by Amazon FSx. + """ + storage_class: str | None + """ + By default, Amazon S3 uses the STANDARD Storage Class to store newly + created objects. The STANDARD storage class provides high durability and + high availability. Depending on performance needs, you can specify a + different Storage Class. For more information, see [Storage + Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) + in the *Amazon S3 User Guide*. + + Note: + - Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express One + Zone storage class) in Availability Zones and `ONEZONE_IA` (the S3 One + Zone-Infrequent Access storage class) in Dedicated Local Zones. + + - Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. + """ + website_redirect_location: str | None + """ + If the bucket is configured as a website, redirects requests for this + object to another object in the same bucket or to an external URL. + Amazon S3 stores the value of this header in the object metadata. For + information about object metadata, see [Object Key and + Metadata](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html) + in the *Amazon S3 User Guide*. + + In the following example, the request header sets the redirect to an + object (anotherPage.html) in the same bucket: + + `x-amz-website-redirect-location: /anotherPage.html` + + In the following example, the request header sets the object redirect to + another website: + + `x-amz-website-redirect-location: http://www.example.com/` + + For more information about website hosting in Amazon S3, see [Hosting + Websites on Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) + and [How to Configure Website Page + Redirects](https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_algorithm: str | None + """ + Specifies the algorithm to use when encrypting the object (for example, + `AES256`). + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key: str | None + """ + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None + """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. + + Note: + This functionality is not supported for directory buckets. + """ + ssekms_key_id: str | None + """ + Specifies the KMS key ID (Key ID, Key ARN, or Key Alias) to use for + object encryption. If the KMS key doesn't exist in the same account + that's issuing the command, you must use the full Key ARN not the Key + ID. + + **General purpose buckets** - If you specify + `x-amz-server-side-encryption` with `aws:kms` or `aws:kms:dsse`, this + header specifies the ID (Key ID, Key ARN, or Key Alias) of the KMS key + to use. If you specify `x-amz-server-side-encryption:aws:kms` or + `x-amz-server-side-encryption:aws:kms:dsse`, but do not provide + `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the Amazon + Web Services managed key (`aws/s3`) to protect the data. + + **Directory buckets** - To encrypt data using SSE-KMS, it's recommended + to specify the `x-amz-server-side-encryption` header to `aws:kms`. Then, + the `x-amz-server-side-encryption-aws-kms-key-id` header implicitly uses + the bucket's default KMS customer managed key ID. If you want to + explicitly set the ` x-amz-server-side-encryption-aws-kms-key-id` + header, it must match the bucket's default customer managed key (using + key ID or ARN, not alias). Your SSE-KMS configuration can only support 1 + [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + per directory bucket's lifetime. The [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + (`aws/s3`) isn't supported. Incorrect key specification results in an + HTTP `400 Bad Request` error. + """ + ssekms_encryption_context: str | None + """ + Specifies the Amazon Web Services KMS Encryption Context as an + additional encryption context to use for object encryption. The value of + this header is a Base64 encoded string of a UTF-8 encoded JSON, which + contains the encryption context as key-value pairs. This value is stored + as object metadata and automatically gets passed on to Amazon Web + Services KMS for future `GetObject` operations on this object. + + **General purpose buckets** - This value must be explicitly added during + `CopyObject` operations if you want an additional encryption context for + your object. For more information, see [Encryption + context](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html#encryption-context) + in the *Amazon S3 User Guide*. + + **Directory buckets** - You can optionally provide an explicit + encryption context value. The value must match the default encryption + context - the bucket Amazon Resource Name (ARN). An additional + encryption context value is not supported. + """ + bucket_key_enabled: bool | None + """ + Specifies whether Amazon S3 should use an S3 Bucket Key for object + encryption with server-side encryption using Key Management Service + (KMS) keys (SSE-KMS). + + **General purpose buckets** - Setting this header to `true` causes + Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS. + Also, specifying this header with a PUT action doesn't affect + bucket-level settings for S3 Bucket Key. + + **Directory buckets** - S3 Bucket Keys are always enabled for `GET` and + `PUT` operations in a directory bucket and can't be disabled. S3 Bucket + Keys aren't supported, when you copy SSE-KMS encrypted objects from + general purpose buckets to directory buckets, from directory buckets to + general purpose buckets, or between directory buckets, through + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html), + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), + [the Copy operation in Batch + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops), + or [the import + jobs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job). + In this case, Amazon S3 makes a call to KMS every time a copy request is + made for a KMS-encrypted object. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + tagging: str | None + """ + The tag-set for the object. The tag-set must be encoded as URL Query + parameters. (For example, \"Key1=Value1\") + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_mode: str | None + """ + The Object Lock mode that you want to apply to this object. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_retain_until_date: datetime | None + """ + The date and time when you want this object's Object Lock to expire. + Must be formatted as a timestamp parameter. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_legal_hold_status: str | None + """ + Specifies whether a legal hold will be applied to this object. For more + information about S3 Object Lock, see [Object + Lock](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold: str | None + """ + Specifies the event hold status to apply to this object. Set to `ON` to + enable or `OFF` to disable. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold_duration_days: int | None + """ + Specifies the event hold duration in days to apply to this object. You + cannot specify a duration in both days and years. + + Note: + This functionality is not supported for directory buckets. + """ + object_lock_event_hold_duration_years: int | None + """ + Specifies the event hold duration in years to apply to this object. You + cannot specify a duration in both days and years. + + Note: + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class PutObjectLegalHoldInput(_SerdeShape): + """Dataclass for PutObjectLegalHoldInput structure.""" + + bucket: str | None = ... + """ + The bucket name containing the object that you want to place a legal + hold on. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + key: str | None = ... + """The key name for the object that you want to place a legal hold on.""" + legal_hold: ObjectLockLegalHold | None = ... + """ + Container element for the legal hold configuration you want to apply to + the specified object. + """ + request_payer: str | None = ... + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + version_id: str | None = ... + """The version ID of the object that you want to place a legal hold on.""" + content_md5: str | None = ... + """ + The MD5 hash for the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class PutObjectLegalHoldInputDict(TypedDict, total=False): + """Dictionary form of `PutObjectLegalHoldInput`.""" + + bucket: Required[str] + """ + The bucket name containing the object that you want to place a legal + hold on. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """The key name for the object that you want to place a legal hold on.""" + legal_hold: ObjectLockLegalHold | ObjectLockLegalHoldDict | None + """ + Container element for the legal hold configuration you want to apply to + the specified object. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + version_id: str | None + """The version ID of the object that you want to place a legal hold on.""" + content_md5: str | None + """ + The MD5 hash for the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class PutObjectLegalHoldOutput(_SerdeShape): + """Dataclass for PutObjectLegalHoldOutput structure.""" + + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutObjectLockConfigurationInput(_SerdeShape): + """Dataclass for PutObjectLockConfigurationInput structure.""" + + bucket: str | None = ... + """ + The bucket whose Object Lock configuration you want to create or + replace. + """ + object_lock_configuration: ObjectLockConfiguration | None = ... + """ + The Object Lock configuration that you want to apply to the specified + bucket. + """ + request_payer: str | None = ... + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + token: str | None = ... + """A token to allow Object Lock to be enabled for an existing bucket.""" + content_md5: str | None = ... + """ + The MD5 hash for the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class PutObjectLockConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutObjectLockConfigurationInput`.""" + + bucket: Required[str] + """ + The bucket whose Object Lock configuration you want to create or + replace. + """ + object_lock_configuration: ( + ObjectLockConfiguration | ObjectLockConfigurationDict | None + ) + """ + The Object Lock configuration that you want to apply to the specified + bucket. + """ + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + token: str | None + """A token to allow Object Lock to be enabled for an existing bucket.""" + content_md5: str | None + """ + The MD5 hash for the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class PutObjectLockConfigurationOutput(_SerdeShape): + """Dataclass for PutObjectLockConfigurationOutput structure.""" + + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutObjectOutput(_SerdeShape): + """Dataclass for PutObjectOutput structure.""" + + expiration: str | None = ... + """ + If the expiration is configured for the object (see + [PutBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html)) + in the *Amazon S3 User Guide*, the response includes this header. It + includes the `expiry-date` and `rule-id` key-value pairs that provide + information about object expiration. The value of the `rule-id` is + URL-encoded. + + Note: + Object expiration information is not returned in directory buckets and + this header returns the value \"`NotImplemented`\" in all responses for + directory buckets. + """ + e_tag: str | None = ... + """ + Entity tag for the uploaded object. + + **General purpose buckets** - To ensure that data is not corrupted + traversing the network, for objects where the ETag is the MD5 digest of + the object, you can calculate the MD5 while putting an object to Amazon + S3 and compare the returned ETag to the calculated MD5 value. + + **Directory buckets** - The ETag for the object in a directory bucket + isn't the MD5 digest of the object. + """ + checksum_crc32: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32 checksum` of the object. This checksum + is only present if the checksum was uploaded with the object. When you + use an API operation on an object that was uploaded using multipart + uploads, this value may not be a direct checksum value of the full + object. Instead, it's a calculation based on the checksum values of + each individual part. For more information about how checksums are + calculated with multipart uploads, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the *Amazon S3 User Guide*. + """ + checksum_crc32_c: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32C` checksum of the object. This + checksum is only present if the checksum was uploaded with the object. + When you use an API operation on an object that was uploaded using + multipart uploads, this value may not be a direct checksum value of the + full object. Instead, it's a calculation based on the checksum values + of each individual part. For more information about how checksums are + calculated with multipart uploads, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the *Amazon S3 User Guide*. + """ + checksum_crc64_nvme: str | None = ... + """ + The Base64 encoded, 64-bit `CRC64NVME` checksum of the object. This + header is present if the object was uploaded with the `CRC64NVME` + checksum algorithm, or if it was uploaded without a checksum (and Amazon + S3 added the default checksum, `CRC64NVME`, to the uploaded object). For + more information about how checksums are calculated with multipart + uploads, see [Checking object integrity in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_sha1: str | None = ... + """ + The Base64 encoded, 160-bit `SHA1` digest of the object. This checksum + is only present if the checksum was uploaded with the object. When you + use the API operation on an object that was uploaded using multipart + uploads, this value may not be a direct checksum value of the full + object. Instead, it's a calculation based on the checksum values of + each individual part. For more information about how checksums are + calculated with multipart uploads, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the *Amazon S3 User Guide*. + """ + checksum_sha256: str | None = ... + """ + The Base64 encoded, 256-bit `SHA256` digest of the object. This checksum + is only present if the checksum was uploaded with the object. When you + use an API operation on an object that was uploaded using multipart + uploads, this value may not be a direct checksum value of the full + object. Instead, it's a calculation based on the checksum values of + each individual part. For more information about how checksums are + calculated with multipart uploads, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the *Amazon S3 User Guide*. + """ + checksum_sha512: str | None = ... + """ + The Base64 encoded, 512-bit `SHA512` digest of the object. This header + is present if the object was uploaded with the `SHA512` checksum + algorithm. For more information, see [Checking object integrity in the + Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_md5: str | None = ... + """ + The Base64 encoded, 128-bit `MD5` digest of the object. This header is + present if the object was uploaded with the `MD5` checksum algorithm. + For more information, see [Checking object integrity in the Amazon S3 + User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash64: str | None = ... + """ + The Base64 encoded, 64-bit `XXHASH64` checksum of the object. This + header is present if the object was uploaded with the `XXHASH64` + checksum algorithm. For more information, see [Checking object integrity + in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash3: str | None = ... + """ + The Base64 encoded, 64-bit `XXHASH3` checksum of the object. This header + is present if the object was uploaded with the `XXHASH3` checksum + algorithm. For more information, see [Checking object integrity in the + Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_xxhash128: str | None = ... + """ + The Base64 encoded, 128-bit `XXHASH128` checksum of the object. This + header is present if the object was uploaded with the `XXHASH128` + checksum algorithm. For more information, see [Checking object integrity + in the Amazon S3 User + Guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html). + """ + checksum_type: str | None = ... + """ + This header specifies the checksum type of the object, which determines + how part-level checksums are combined to create an object-level checksum + for multipart objects. For `PutObject` uploads, the checksum type is + always `FULL_OBJECT`. You can use this header as a data integrity check + to verify that the checksum type that is received is the same checksum + that was specified. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + server_side_encryption: str | None = ... + """ + The server-side encryption algorithm used when you store this object in + Amazon S3 or Amazon FSx. + + Note: + When accessing data stored in Amazon FSx file systems using S3 access + points, the only valid server side encryption option is `aws:fsx`. + """ + version_id: str | None = ... + """ + Version ID of the object. + + If you enable versioning for a bucket, Amazon S3 automatically generates + a unique version ID for the object being stored. Amazon S3 returns this + ID in the response. When you enable versioning for a bucket, if Amazon + S3 receives multiple write requests for the same object simultaneously, + it stores all of the objects. For more information about versioning, see + [Adding Objects to Versioning-Enabled + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html) + in the *Amazon S3 User Guide*. For information about returning the + versioning state of a bucket, see + [GetBucketVersioning](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html). + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_algorithm: str | None = ... + """ + If server-side encryption with a customer-provided encryption key was + requested, the response will include this header to confirm the + encryption algorithm that's used. + + Note: + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None = ... + """ + If server-side encryption with a customer-provided encryption key was + requested, the response will include this header to provide the + round-trip message integrity verification of the customer-provided + encryption key. + + Note: + This functionality is not supported for directory buckets. + """ + ssekms_key_id: str | None = ... + """ + If present, indicates the ID of the KMS key that was used for object + encryption. + """ + ssekms_encryption_context: str | None = ... + """ + If present, indicates the Amazon Web Services KMS Encryption Context to + use for object encryption. The value of this header is a Base64 encoded + string of a UTF-8 encoded JSON, which contains the encryption context as + key-value pairs. This value is stored as object metadata and + automatically gets passed on to Amazon Web Services KMS for future + `GetObject` operations on this object. + """ + bucket_key_enabled: bool | None = ... + """ + Indicates whether the uploaded object uses an S3 Bucket Key for + server-side encryption with Key Management Service (KMS) keys (SSE-KMS). + """ + size: int | None = ... + """ + The size of the object in bytes. This value is only be present if you + append to an object. + + Note: + This functionality is only supported for objects in the Amazon S3 + Express One Zone storage class in directory buckets. + """ + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutObjectRetentionInput(_SerdeShape): + """Dataclass for PutObjectRetentionInput structure.""" + + bucket: str | None = ... + """ + The bucket name that contains the object you want to apply this Object + Retention configuration to. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + key: str | None = ... + """ + The key name for the object that you want to apply this Object Retention + configuration to. + """ + retention: ObjectLockRetention | None = ... + """The container element for the Object Retention configuration.""" + request_payer: str | None = ... + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + version_id: str | None = ... + """ + The version ID for the object that you want to apply this Object + Retention configuration to. + """ + bypass_governance_retention: bool | None = ... + """ + Indicates whether this action should bypass Governance-mode + restrictions. + """ + content_md5: str | None = ... + """ + The MD5 hash for the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class PutObjectRetentionInputDict(TypedDict, total=False): + """Dictionary form of `PutObjectRetentionInput`.""" + + bucket: Required[str] + """ + The bucket name that contains the object you want to apply this Object + Retention configuration to. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """ + The key name for the object that you want to apply this Object Retention + configuration to. + """ + retention: ObjectLockRetention | ObjectLockRetentionDict | None + """The container element for the Object Retention configuration.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + version_id: str | None + """ + The version ID for the object that you want to apply this Object + Retention configuration to. + """ + bypass_governance_retention: bool | None + """ + Indicates whether this action should bypass Governance-mode + restrictions. + """ + content_md5: str | None + """ + The MD5 hash for the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class PutObjectRetentionOutput(_SerdeShape): + """Dataclass for PutObjectRetentionOutput structure.""" + + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutObjectTaggingInput(_SerdeShape): + """Dataclass for PutObjectTaggingInput structure.""" + + bucket: str | None = ... + """ + The bucket name containing the object. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: str | None = ... + """Name of the object key.""" + version_id: str | None = ... + """The versionId of the object that the tag-set will be added to.""" + content_md5: str | None = ... + """ + The MD5 hash for the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + tagging: Tagging | None = ... + """Container for the `TagSet` and `Tag` elements""" + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + request_payer: str | None = ... + """ + Confirms that the requester knows that she or he will be charged for the + tagging object request. Bucket owners need not specify this parameter in + their requests. + """ + +class PutObjectTaggingInputDict(TypedDict, total=False): + """Dictionary form of `PutObjectTaggingInput`.""" + + bucket: Required[str] + """ + The bucket name containing the object. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """Name of the object key.""" + version_id: str | None + """The versionId of the object that the tag-set will be added to.""" + content_md5: str | None + """ + The MD5 hash for the request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + tagging: Required[Tagging | TaggingDict] + """Container for the `TagSet` and `Tag` elements""" + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + request_payer: str | None + """ + Confirms that the requester knows that she or he will be charged for the + tagging object request. Bucket owners need not specify this parameter in + their requests. + """ + +@dataclass(kw_only=True) +class PutObjectTaggingOutput(_SerdeShape): + """Dataclass for PutObjectTaggingOutput structure.""" + + version_id: str | None = ... + """The versionId of the object the tag-set was added to.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PutPublicAccessBlockInput(_SerdeShape): + """Dataclass for PutPublicAccessBlockInput structure.""" + + bucket: str | None = ... + """ + The name of the Amazon S3 bucket whose `PublicAccessBlock` configuration + you want to set. + """ + content_md5: str | None = ... + """ + The MD5 hash of the `PutPublicAccessBlock` request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + public_access_block_configuration: PublicAccessBlockConfiguration | None = ... + """ + The `PublicAccessBlock` configuration that you want to apply to this + Amazon S3 bucket. You can enable the configuration options in any + combination. For more information about when Amazon S3 considers a + bucket or object public, see [The Meaning of + \"Public\"](https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) + in the *Amazon S3 User Guide*. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class PutPublicAccessBlockInputDict(TypedDict, total=False): + """Dictionary form of `PutPublicAccessBlockInput`.""" + + bucket: Required[str] + """ + The name of the Amazon S3 bucket whose `PublicAccessBlock` configuration + you want to set. + """ + content_md5: str | None + """ + The MD5 hash of the `PutPublicAccessBlock` request body. + + For requests made using the Amazon Web Services Command Line Interface + (CLI) or Amazon Web Services SDKs, this field is calculated + automatically. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + public_access_block_configuration: Required[ + PublicAccessBlockConfiguration | PublicAccessBlockConfigurationDict + ] + """ + The `PublicAccessBlock` configuration that you want to apply to this + Amazon S3 bucket. You can enable the configuration options in any + combination. For more information about when Amazon S3 considers a + bucket or object public, see [The Meaning of + \"Public\"](https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) + in the *Amazon S3 User Guide*. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class PutPublicAccessBlockOutput(_SerdeShape): + """Dataclass for PutPublicAccessBlockOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class QueueConfiguration(_SerdeShape): + """ + Specifies the configuration for publishing messages to an Amazon Simple + Queue Service (Amazon SQS) queue when Amazon S3 detects specified + events. + """ + + id: str | None = ... + """ + An optional unique identifier for configurations in a notification + configuration. If you don't provide one, Amazon S3 will assign an ID. + """ + queue_arn: str + """ + The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon + S3 publishes a message when it detects events of the specified type. + """ + events: list[str] + """A collection of bucket events for which to send notifications""" + filter: NotificationConfigurationFilter | None = ... + """ + Specifies object key name filtering rules. For information about key + name filtering, see [Configuring event notifications using object key + name + filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) + in the *Amazon S3 User Guide*. + """ + +class QueueConfigurationDict(TypedDict, total=False): + """Dictionary form of `QueueConfiguration`.""" + + id: str | None + """ + An optional unique identifier for configurations in a notification + configuration. If you don't provide one, Amazon S3 will assign an ID. + """ + queue_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon + S3 publishes a message when it detects events of the specified type. + """ + events: Required[Sequence[str]] + """A collection of bucket events for which to send notifications""" + filter: NotificationConfigurationFilter | NotificationConfigurationFilterDict | None + """ + Specifies object key name filtering rules. For information about key + name filtering, see [Configuring event notifications using object key + name + filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) + in the *Amazon S3 User Guide*. + """ + +class QuoteFields(UnknownEnumMixin, StrEnum): + ALWAYS = "ALWAYS" + ASNEEDED = "ASNEEDED" + +@dataclass(kw_only=True) +class RecordExpiration(_SerdeShape): + """ + The journal table record expiration settings for a journal table in an + S3 Metadata configuration. + """ + + expiration: str + """ + Specifies whether journal table record expiration is enabled or + disabled. + """ + days: int | None = ... + """ + If you enable journal table record expiration, you can set the number of + days to retain your journal table records. Journal table records must be + retained for a minimum of 7 days. To set this value, specify any whole + number from `7` to `2147483647`. For example, to retain your journal + table records for one year, set this value to `365`. + """ + +class RecordExpirationDict(TypedDict, total=False): + """Dictionary form of `RecordExpiration`.""" + + expiration: Required[str] + """ + Specifies whether journal table record expiration is enabled or + disabled. + """ + days: int | None + """ + If you enable journal table record expiration, you can set the number of + days to retain your journal table records. Journal table records must be + retained for a minimum of 7 days. To set this value, specify any whole + number from `7` to `2147483647`. For example, to retain your journal + table records for one year, set this value to `365`. + """ + +@dataclass(kw_only=True) +class RecordsEvent(_SerdeShape): + """The container for the records event.""" + + payload: bytes | None = ... + """ + The byte array of partial, one or more result records. S3 Select + doesn't guarantee that a record will be self-contained in one record + frame. To ensure continuous streaming of data, S3 Select might split the + same record across multiple record frames instead of aggregating the + results in memory. Some S3 clients (for example, the SDK for Java) + handle this behavior by creating a `ByteStream` out of the response by + default. Other clients might not handle this behavior by default. In + those cases, you must aggregate the results on the client side and parse + the response. + """ + +@dataclass(kw_only=True) +class Redirect(_SerdeShape): + """ + Specifies how requests are redirected. In the event of an error, you can + specify a different error code to return. + """ + + host_name: str | None = ... + """The host name to use in the redirect request.""" + http_redirect_code: str | None = ... + """ + The HTTP redirect code to use on the response. Not required if one of + the siblings is present. + """ + protocol: str | None = ... + """ + Protocol to use when redirecting requests. The default is the protocol + that is used in the original request. + """ + replace_key_prefix_with: str | None = ... + """ + The object key prefix to use in the redirect request. For example, to + redirect requests for all pages with prefix `docs/` (objects in the + `docs/` folder) to `documents/`, you can set a condition block with + `KeyPrefixEquals` set to `docs/` and in the Redirect set + `ReplaceKeyPrefixWith` to `/documents`. Not required if one of the + siblings is present. Can be present only if `ReplaceKeyWith` is not + provided. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + replace_key_with: str | None = ... + """ + The specific object key to use in the redirect request. For example, + redirect request to `error.html`. Not required if one of the siblings is + present. Can be present only if `ReplaceKeyPrefixWith` is not provided. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + +class RedirectDict(TypedDict, total=False): + """Dictionary form of `Redirect`.""" + + host_name: str | None + """The host name to use in the redirect request.""" + http_redirect_code: str | None + """ + The HTTP redirect code to use on the response. Not required if one of + the siblings is present. + """ + protocol: str | None + """ + Protocol to use when redirecting requests. The default is the protocol + that is used in the original request. + """ + replace_key_prefix_with: str | None + """ + The object key prefix to use in the redirect request. For example, to + redirect requests for all pages with prefix `docs/` (objects in the + `docs/` folder) to `documents/`, you can set a condition block with + `KeyPrefixEquals` set to `docs/` and in the Redirect set + `ReplaceKeyPrefixWith` to `/documents`. Not required if one of the + siblings is present. Can be present only if `ReplaceKeyWith` is not + provided. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + replace_key_with: str | None + """ + The specific object key to use in the redirect request. For example, + redirect request to `error.html`. Not required if one of the siblings is + present. Can be present only if `ReplaceKeyPrefixWith` is not provided. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + +@dataclass(kw_only=True) +class RedirectAllRequestsTo(_SerdeShape): + """ + Specifies the redirect behavior of all requests to a website endpoint of + an Amazon S3 bucket. + """ + + host_name: str + """Name of the host where requests are redirected.""" + protocol: str | None = ... + """ + Protocol to use when redirecting requests. The default is the protocol + that is used in the original request. + """ + +class RedirectAllRequestsToDict(TypedDict, total=False): + """Dictionary form of `RedirectAllRequestsTo`.""" + + host_name: Required[str] + """Name of the host where requests are redirected.""" + protocol: str | None + """ + Protocol to use when redirecting requests. The default is the protocol + that is used in the original request. + """ + +@dataclass(kw_only=True) +class RenameObjectInput(_SerdeShape): + """Dataclass for RenameObjectInput structure.""" + + bucket: str | None = ... + """ + The bucket name of the directory bucket containing the object. + + You must use virtual-hosted-style requests in the format + `Bucket-name.s3express-zone-id.region-code.amazonaws.com`. Path-style + requests are not supported. Directory bucket names must be unique in the + chosen Availability Zone. Bucket names must follow the format + `bucket-base-name--zone-id--x-s3 ` (for example, + `amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket + naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + """ + key: str | None = ... + """Key name of the object to rename.""" + rename_source: str | None = ... + """ + Specifies the source for the rename operation. The value must be URL + encoded. + """ + destination_if_match: str | None = ... + """ + Renames the object only if the ETag (entity tag) value provided during + the operation matches the ETag of the object in S3. The `If-Match` + header field makes the request method conditional on ETags. If the ETag + values do not match, the operation returns a `412 Precondition Failed` + error. + + Expects the ETag value as a string. + """ + destination_if_none_match: str | None = ... + """ + Renames the object only if the destination does not already exist in the + specified directory bucket. If the object does exist when you send a + request with `If-None-Match:*`, the S3 API will return a + `412 Precondition Failed` error, preventing an overwrite. The + `If-None-Match` header prevents overwrites of existing data by + validating that there's not an object with the same key name already in + your directory bucket. + + Expects the `*` character (asterisk). + """ + destination_if_modified_since: datetime | None = ... + """ + Renames the object if the destination exists and if it has been modified + since the specified time. + """ + destination_if_unmodified_since: datetime | None = ... + """Renames the object if it hasn't been modified since the specified time.""" + source_if_match: str | None = ... + """ + Renames the object if the source exists and if its entity tag (ETag) + matches the specified ETag. + """ + source_if_none_match: str | None = ... + """ + Renames the object if the source exists and if its entity tag (ETag) is + different than the specified ETag. If an asterisk (`*`) character is + provided, the operation will fail and return a `412 Precondition Failed` + error. + """ + source_if_modified_since: datetime | None = ... + """ + Renames the object if the source exists and if it has been modified + since the specified time. + """ + source_if_unmodified_since: datetime | None = ... + """ + Renames the object if the source exists and hasn't been modified since + the specified time. + """ + client_token: str | None = ... + """ + A unique string with a max of 64 ASCII characters in the ASCII range of + 33 - 126. + + Note: + `RenameObject` supports idempotency using a client token. To make an + idempotent API request using `RenameObject`, specify a client token in + the request. You should not reuse the same client token for other API + requests. If you retry a request that completed successfully using the + same client token and the same parameters, the retry succeeds without + performing any further actions. If you retry a successful request using + the same client token, but one or more of the parameters are different, + the retry fails and an `IdempotentParameterMismatch` error is returned. + + This field is autopopulated if not provided. + """ + +class RenameObjectInputDict(TypedDict, total=False): + """Dictionary form of `RenameObjectInput`.""" + + bucket: Required[str] + """ + The bucket name of the directory bucket containing the object. + + You must use virtual-hosted-style requests in the format + `Bucket-name.s3express-zone-id.region-code.amazonaws.com`. Path-style + requests are not supported. Directory bucket names must be unique in the + chosen Availability Zone. Bucket names must follow the format + `bucket-base-name--zone-id--x-s3 ` (for example, + `amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket + naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """Key name of the object to rename.""" + rename_source: Required[str] + """ + Specifies the source for the rename operation. The value must be URL + encoded. + """ + destination_if_match: str | None + """ + Renames the object only if the ETag (entity tag) value provided during + the operation matches the ETag of the object in S3. The `If-Match` + header field makes the request method conditional on ETags. If the ETag + values do not match, the operation returns a `412 Precondition Failed` + error. + + Expects the ETag value as a string. + """ + destination_if_none_match: str | None + """ + Renames the object only if the destination does not already exist in the + specified directory bucket. If the object does exist when you send a + request with `If-None-Match:*`, the S3 API will return a + `412 Precondition Failed` error, preventing an overwrite. The + `If-None-Match` header prevents overwrites of existing data by + validating that there's not an object with the same key name already in + your directory bucket. + + Expects the `*` character (asterisk). + """ + destination_if_modified_since: datetime | None + """ + Renames the object if the destination exists and if it has been modified + since the specified time. + """ + destination_if_unmodified_since: datetime | None + """Renames the object if it hasn't been modified since the specified time.""" + source_if_match: str | None + """ + Renames the object if the source exists and if its entity tag (ETag) + matches the specified ETag. + """ + source_if_none_match: str | None + """ + Renames the object if the source exists and if its entity tag (ETag) is + different than the specified ETag. If an asterisk (`*`) character is + provided, the operation will fail and return a `412 Precondition Failed` + error. + """ + source_if_modified_since: datetime | None + """ + Renames the object if the source exists and if it has been modified + since the specified time. + """ + source_if_unmodified_since: datetime | None + """ + Renames the object if the source exists and hasn't been modified since + the specified time. + """ + client_token: str | None + """ + A unique string with a max of 64 ASCII characters in the ASCII range of + 33 - 126. + + Note: + `RenameObject` supports idempotency using a client token. To make an + idempotent API request using `RenameObject`, specify a client token in + the request. You should not reuse the same client token for other API + requests. If you retry a request that completed successfully using the + same client token and the same parameters, the retry succeeds without + performing any further actions. If you retry a successful request using + the same client token, but one or more of the parameters are different, + the retry fails and an `IdempotentParameterMismatch` error is returned. + + This field is autopopulated if not provided. + """ + +@dataclass(kw_only=True) +class RenameObjectOutput(_SerdeShape): + """Dataclass for RenameObjectOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ReplicaModifications(_SerdeShape): + """ + A filter that you can specify for selection for modifications on + replicas. Amazon S3 doesn't replicate replica modifications by default. + In the latest version of replication configuration (when `Filter` is + specified), you can specify this element and set the status to `Enabled` + to replicate modifications on replicas. + + Note: + If you don't specify the `Filter` element, Amazon S3 assumes that the + replication configuration is the earlier version, V1. In the earlier + version, this element is not allowed. + """ + + status: str + """Specifies whether Amazon S3 replicates modifications on replicas.""" + +class ReplicaModificationsDict(TypedDict, total=False): + """Dictionary form of `ReplicaModifications`.""" + + status: Required[str] + """Specifies whether Amazon S3 replicates modifications on replicas.""" + +class ReplicaModificationsStatus(UnknownEnumMixin, StrEnum): + ENABLED = "Enabled" + DISABLED = "Disabled" + +@dataclass(kw_only=True) +class ReplicationConfiguration(_SerdeShape): + """ + A container for replication rules. You can add up to 1,000 rules. The + maximum size of a replication configuration is 2 MB. + """ + + role: str + """ + The Amazon Resource Name (ARN) of the Identity and Access Management + (IAM) role that Amazon S3 assumes when replicating objects. For more + information, see [How to Set Up + Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html) + in the *Amazon S3 User Guide*. + """ + rules: list[ReplicationRule] + """ + A container for one or more replication rules. A replication + configuration must have at least one rule and can contain a maximum of + 1,000 rules. + """ + +class ReplicationConfigurationDict(TypedDict, total=False): + """Dictionary form of `ReplicationConfiguration`.""" + + role: Required[str] + """ + The Amazon Resource Name (ARN) of the Identity and Access Management + (IAM) role that Amazon S3 assumes when replicating objects. For more + information, see [How to Set Up + Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html) + in the *Amazon S3 User Guide*. + """ + rules: Required[Sequence[ReplicationRule | ReplicationRuleDict]] + """ + A container for one or more replication rules. A replication + configuration must have at least one rule and can contain a maximum of + 1,000 rules. + """ + +@dataclass(kw_only=True) +class ReplicationRule(_SerdeShape): + """ + Specifies which Amazon S3 objects to replicate and where to store the + replicas. + """ + + id: str | None = ... + """A unique identifier for the rule. The maximum value is 255 characters.""" + priority: int | None = ... + """ + The priority indicates which rule has precedence whenever two or more + replication rules conflict. Amazon S3 will attempt to replicate objects + according to all replication rules. However, if there are two or more + rules with the same destination bucket, then objects will be replicated + according to the rule with the highest priority. The higher the number, + the higher the priority. + + For more information, see + [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) + in the *Amazon S3 User Guide*. + """ + prefix: str | None = ... + """ + An object key name prefix that identifies the object or objects to which + the rule applies. The maximum prefix length is 1,024 characters. To + include all objects in a bucket, specify an empty string. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + filter: ReplicationRuleFilter | None = ... + """ + A filter that identifies the subset of objects to which the replication + rule applies. A `Filter` must specify exactly one `Prefix`, `Tag`, or an + `And` child element. + """ + status: str + """Specifies whether the rule is enabled.""" + source_selection_criteria: SourceSelectionCriteria | None = ... + """ + A container that describes additional filters for identifying the source + objects that you want to replicate. You can choose to enable or disable + the replication of these objects. Currently, Amazon S3 supports only the + filter that you can specify for objects created with server-side + encryption using a customer managed key stored in Amazon Web Services + Key Management Service (SSE-KMS). + """ + existing_object_replication: ExistingObjectReplication | None = ... + """ + Optional configuration to replicate existing source bucket objects. + + Note: + This parameter is no longer supported. To replicate existing objects, + see [Replicating existing objects with S3 Batch + Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) + in the *Amazon S3 User Guide*. + """ + destination: Destination + """ + A container for information about the replication destination and its + configurations including enabling the S3 Replication Time Control (S3 + RTC). + """ + delete_marker_replication: DeleteMarkerReplication | None = ... + """ + Specifies whether Amazon S3 replicates delete markers. If you specify a + `Filter` in your replication configuration, you must also include a + `DeleteMarkerReplication` element. If your `Filter` includes a `Tag` + element, the `DeleteMarkerReplication` `Status` must be set to Disabled, + because Amazon S3 does not support replicating delete markers for + tag-based rules. For an example configuration, see [Basic Rule + Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config). + + For more information about delete marker replication, see [Basic Rule + Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-marker-replication.html). + + Note: + If you are using an earlier version of the replication configuration, + Amazon S3 handles replication of delete markers differently. For more + information, see [Backward + Compatibility](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations). + """ + +class ReplicationRuleDict(TypedDict, total=False): + """Dictionary form of `ReplicationRule`.""" + + id: str | None + """A unique identifier for the rule. The maximum value is 255 characters.""" + priority: int | None + """ + The priority indicates which rule has precedence whenever two or more + replication rules conflict. Amazon S3 will attempt to replicate objects + according to all replication rules. However, if there are two or more + rules with the same destination bucket, then objects will be replicated + according to the rule with the highest priority. The higher the number, + the higher the priority. + + For more information, see + [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) + in the *Amazon S3 User Guide*. + """ + prefix: str | None + """ + An object key name prefix that identifies the object or objects to which + the rule applies. The maximum prefix length is 1,024 characters. To + include all objects in a bucket, specify an empty string. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + filter: ReplicationRuleFilter | ReplicationRuleFilterDict | None + """ + A filter that identifies the subset of objects to which the replication + rule applies. A `Filter` must specify exactly one `Prefix`, `Tag`, or an + `And` child element. + """ + status: Required[str] + """Specifies whether the rule is enabled.""" + source_selection_criteria: ( + SourceSelectionCriteria | SourceSelectionCriteriaDict | None + ) + """ + A container that describes additional filters for identifying the source + objects that you want to replicate. You can choose to enable or disable + the replication of these objects. Currently, Amazon S3 supports only the + filter that you can specify for objects created with server-side + encryption using a customer managed key stored in Amazon Web Services + Key Management Service (SSE-KMS). + """ + existing_object_replication: ( + ExistingObjectReplication | ExistingObjectReplicationDict | None + ) + """ + Optional configuration to replicate existing source bucket objects. + + Note: + This parameter is no longer supported. To replicate existing objects, + see [Replicating existing objects with S3 Batch + Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) + in the *Amazon S3 User Guide*. + """ + destination: Required[Destination | DestinationDict] + """ + A container for information about the replication destination and its + configurations including enabling the S3 Replication Time Control (S3 + RTC). + """ + delete_marker_replication: ( + DeleteMarkerReplication | DeleteMarkerReplicationDict | None + ) + """ + Specifies whether Amazon S3 replicates delete markers. If you specify a + `Filter` in your replication configuration, you must also include a + `DeleteMarkerReplication` element. If your `Filter` includes a `Tag` + element, the `DeleteMarkerReplication` `Status` must be set to Disabled, + because Amazon S3 does not support replicating delete markers for + tag-based rules. For an example configuration, see [Basic Rule + Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config). + + For more information about delete marker replication, see [Basic Rule + Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-marker-replication.html). + + Note: + If you are using an earlier version of the replication configuration, + Amazon S3 handles replication of delete markers differently. For more + information, see [Backward + Compatibility](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations). + """ + +@dataclass(kw_only=True) +class ReplicationRuleAndOperator(_SerdeShape): + """ + A container for specifying rule filters. The filters determine the + subset of objects to which the rule applies. This element is required + only if you specify more than one filter. + + For example: + + - If you specify both a `Prefix` and a `Tag` filter, wrap these filters + in an `And` tag. + + - If you specify a filter based on multiple tags, wrap the `Tag` + elements in an `And` tag. + """ + + prefix: str | None = ... + """ + An object key name prefix that identifies the subset of objects to which + the rule applies. + """ + tags: list[Tag] | None = ... + """An array of tags containing key and value pairs.""" + +class ReplicationRuleAndOperatorDict(TypedDict, total=False): + """Dictionary form of `ReplicationRuleAndOperator`.""" + + prefix: str | None + """ + An object key name prefix that identifies the subset of objects to which + the rule applies. + """ + tags: Sequence[Tag | TagDict] | None + """An array of tags containing key and value pairs.""" + +@dataclass(kw_only=True) +class ReplicationRuleFilter(_SerdeShape): + """ + A filter that identifies the subset of objects to which the replication + rule applies. A `Filter` must specify exactly one `Prefix`, `Tag`, or an + `And` child element. + """ + + prefix: str | None = ... + """ + An object key name prefix that identifies the subset of objects to which + the rule applies. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + tag: Tag | None = ... + """ + A container for specifying a tag key and value. + + The rule applies only to objects that have the tag in their tag set. + """ + and_: ReplicationRuleAndOperator | None = ... + """ + A container for specifying rule filters. The filters determine the + subset of objects to which the rule applies. This element is required + only if you specify more than one filter. For example: + + - If you specify both a `Prefix` and a `Tag` filter, wrap these filters + in an `And` tag. + + - If you specify a filter based on multiple tags, wrap the `Tag` + elements in an `And` tag. + """ + +class ReplicationRuleFilterDict(TypedDict, total=False): + """Dictionary form of `ReplicationRuleFilter`.""" + + prefix: str | None + """ + An object key name prefix that identifies the subset of objects to which + the rule applies. + + Warning: + Replacement must be made for object keys containing special characters + (such as carriage returns) when using XML requests. For more + information, see [XML related object key + constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + """ + tag: Tag | TagDict | None + """ + A container for specifying a tag key and value. + + The rule applies only to objects that have the tag in their tag set. + """ + and_: ReplicationRuleAndOperator | ReplicationRuleAndOperatorDict | None + """ + A container for specifying rule filters. The filters determine the + subset of objects to which the rule applies. This element is required + only if you specify more than one filter. For example: + + - If you specify both a `Prefix` and a `Tag` filter, wrap these filters + in an `And` tag. + + - If you specify a filter based on multiple tags, wrap the `Tag` + elements in an `And` tag. + """ + +class ReplicationRuleStatus(UnknownEnumMixin, StrEnum): + ENABLED = "Enabled" + DISABLED = "Disabled" + +class ReplicationStatus(UnknownEnumMixin, StrEnum): + COMPLETE = "COMPLETE" + PENDING = "PENDING" + FAILED = "FAILED" + REPLICA = "REPLICA" + COMPLETED = "COMPLETED" + +@dataclass(kw_only=True) +class ReplicationTime(_SerdeShape): + """ + A container specifying S3 Replication Time Control (S3 RTC) related + information, including whether S3 RTC is enabled and the time when all + objects and operations on objects must be replicated. Must be specified + together with a `Metrics` block. + """ + + status: str + """Specifies whether the replication time is enabled.""" + time: ReplicationTimeValue + """ + A container specifying the time by which replication should be complete + for all objects and operations on objects. + """ + +class ReplicationTimeDict(TypedDict, total=False): + """Dictionary form of `ReplicationTime`.""" + + status: Required[str] + """Specifies whether the replication time is enabled.""" + time: Required[ReplicationTimeValue | ReplicationTimeValueDict] + """ + A container specifying the time by which replication should be complete + for all objects and operations on objects. + """ + +class ReplicationTimeStatus(UnknownEnumMixin, StrEnum): + ENABLED = "Enabled" + DISABLED = "Disabled" + +@dataclass(kw_only=True) +class ReplicationTimeValue(_SerdeShape): + """ + A container specifying the time value for S3 Replication Time Control + (S3 RTC) and replication metrics `EventThreshold`. + """ + + minutes: int | None = ... + """ + Contains an integer specifying time in minutes. + + Valid value: 15 + """ + +class ReplicationTimeValueDict(TypedDict, total=False): + """Dictionary form of `ReplicationTimeValue`.""" + + minutes: int | None + """ + Contains an integer specifying time in minutes. + + Valid value: 15 + """ + +class RequestCharged(UnknownEnumMixin, StrEnum): + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + + REQUESTER = "requester" + +class RequestPayer(UnknownEnumMixin, StrEnum): + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + + REQUESTER = "requester" + +@dataclass(kw_only=True) +class RequestPaymentConfiguration(_SerdeShape): + """Container for Payer.""" + + payer: str + """Specifies who pays for the download and request fees.""" + +class RequestPaymentConfigurationDict(TypedDict, total=False): + """Dictionary form of `RequestPaymentConfiguration`.""" + + payer: Required[str] + """Specifies who pays for the download and request fees.""" + +@dataclass(kw_only=True) +class RequestProgress(_SerdeShape): + """ + Container for specifying if periodic `QueryProgress` messages should be + sent. + """ + + enabled: bool | None = ... + """ + Specifies whether periodic QueryProgress frames should be sent. Valid + values: TRUE, FALSE. Default value: FALSE. + """ + +class RequestProgressDict(TypedDict, total=False): + """Dictionary form of `RequestProgress`.""" + + enabled: bool | None + """ + Specifies whether periodic QueryProgress frames should be sent. Valid + values: TRUE, FALSE. Default value: FALSE. + """ + +@dataclass(kw_only=True) +class RestoreObjectInput(_SerdeShape): + """Dataclass for RestoreObjectInput structure.""" + + bucket: str | None = ... + """ + The bucket name containing the object to restore. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: str | None = ... + """Object key for which the action was initiated.""" + version_id: str | None = ... + """VersionId used to reference a specific version of the object.""" + restore_request: RestoreRequest | None = ... + """Container for restore job parameters.""" + request_payer: str | None = ... + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class RestoreObjectInputDict(TypedDict, total=False): + """Dictionary form of `RestoreObjectInput`.""" + + bucket: Required[str] + """ + The bucket name containing the object to restore. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] + """Object key for which the action was initiated.""" + version_id: str | None + """VersionId used to reference a specific version of the object.""" + restore_request: RestoreRequest | RestoreRequestDict | None + """Container for restore job parameters.""" + request_payer: str | None + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class RestoreObjectOutput(_SerdeShape): + """Dataclass for RestoreObjectOutput structure.""" + + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. + """ + restore_output_path: str | None = ... + """ + Indicates the path in the provided S3 output location where Select + results will be restored to. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class RestoreRequest(_SerdeShape): + """Container for restore job parameters.""" + + days: int | None = ... + """ + Lifetime of the active copy in days. Do not use with restores that + specify `OutputLocation`. + + The Days element is required for regular restores, and must not be + provided for select requests. + """ + glacier_job_parameters: GlacierJobParameters | None = ... + """ + S3 Glacier related parameters pertaining to this job. Do not use with + restores that specify `OutputLocation`. + """ + type: str | None = ... + """ + Warning: + Amazon S3 Select is no longer available to new customers. Existing + customers of Amazon S3 Select can continue to use the feature as usual. + [Learn + more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + + Type of restore request. + """ + tier: str | None = ... + """Retrieval tier at which the restore will be processed.""" + description: str | None = ... + """The optional description for the job.""" + select_parameters: SelectParameters | None = ... + """ + Warning: + Amazon S3 Select is no longer available to new customers. Existing + customers of Amazon S3 Select can continue to use the feature as usual. + [Learn + more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + + Describes the parameters for Select job types. + """ + output_location: OutputLocation | None = ... + """Describes the location where the restore job's output is stored.""" + +class RestoreRequestDict(TypedDict, total=False): + """Dictionary form of `RestoreRequest`.""" + + days: int | None + """ + Lifetime of the active copy in days. Do not use with restores that + specify `OutputLocation`. + + The Days element is required for regular restores, and must not be + provided for select requests. + """ + glacier_job_parameters: GlacierJobParameters | GlacierJobParametersDict | None + """ + S3 Glacier related parameters pertaining to this job. Do not use with + restores that specify `OutputLocation`. + """ + type: str | None + """ + Warning: + Amazon S3 Select is no longer available to new customers. Existing + customers of Amazon S3 Select can continue to use the feature as usual. + [Learn + more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + + Type of restore request. + """ + tier: str | None + """Retrieval tier at which the restore will be processed.""" + description: str | None + """The optional description for the job.""" + select_parameters: SelectParameters | SelectParametersDict | None + """ + Warning: + Amazon S3 Select is no longer available to new customers. Existing + customers of Amazon S3 Select can continue to use the feature as usual. + [Learn + more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + + Describes the parameters for Select job types. + """ + output_location: OutputLocation | OutputLocationDict | None + """Describes the location where the restore job's output is stored.""" + +class RestoreRequestType(UnknownEnumMixin, StrEnum): + SELECT = "SELECT" + +@dataclass(kw_only=True) +class RestoreStatus(_SerdeShape): + """ + Specifies the restoration status of an object. Objects in certain + storage classes must be restored before they can be retrieved. For more + information about these storage classes and how to work with archived + objects, see [Working with archived + objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. Directory + buckets only support `EXPRESS_ONEZONE` (the S3 Express One Zone storage + class) in Availability Zones and `ONEZONE_IA` (the S3 One + Zone-Infrequent Access storage class) in Dedicated Local Zones. + """ + + is_restore_in_progress: bool | None = ... + """ + Specifies whether the object is currently being restored. If the object + restoration is in progress, the header returns the value `TRUE`. For + example: + + `x-amz-optional-object-attributes: IsRestoreInProgress="true"` + + If the object restoration has completed, the header returns the value + `FALSE`. For example: + + `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` + + If the object hasn't been restored, there is no header response. + """ + restore_expiry_date: datetime | None = ... + """ + Indicates when the restored copy will expire. This value is populated + only if the object has already been restored. For example: + + `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` + """ + +@dataclass(kw_only=True) +class RoutingRule(_SerdeShape): + """ + Specifies the redirect behavior and when a redirect is applied. For more + information about routing rules, see [Configuring advanced conditional + redirects](https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects) + in the *Amazon S3 User Guide*. + """ + + condition: Condition | None = ... + """ + A container for describing a condition that must be met for the + specified redirect to apply. For example, 1. If request is for pages in + the `/docs` folder, redirect to the `/documents` folder. 2. If request + results in HTTP error 4xx, redirect request to another host where you + might process the error. + """ + redirect: Redirect + """ + Container for redirect information. You can redirect requests to another + host, to another page, or with another protocol. In the event of an + error, you can specify a different error code to return. + """ + +class RoutingRuleDict(TypedDict, total=False): + """Dictionary form of `RoutingRule`.""" + + condition: Condition | ConditionDict | None + """ + A container for describing a condition that must be met for the + specified redirect to apply. For example, 1. If request is for pages in + the `/docs` folder, redirect to the `/documents` folder. 2. If request + results in HTTP error 4xx, redirect request to another host where you + might process the error. + """ + redirect: Required[Redirect | RedirectDict] + """ + Container for redirect information. You can redirect requests to another + host, to another page, or with another protocol. In the event of an + error, you can specify a different error code to return. + """ + +@dataclass(kw_only=True) +class S3KeyFilter(_SerdeShape): + """A container for object key name prefix and suffix filtering rules.""" + + filter_rules: list[FilterRule] | None = ... + """ + A list of containers for the key-value pair that defines the criteria + for the filter rule. + """ + +class S3KeyFilterDict(TypedDict, total=False): + """Dictionary form of `S3KeyFilter`.""" + + filter_rules: Sequence[FilterRule | FilterRuleDict] | None + """ + A list of containers for the key-value pair that defines the criteria + for the filter rule. + """ + +@dataclass(kw_only=True) +class S3Location(_SerdeShape): + """ + Describes an Amazon S3 location that will receive the results of the + restore request. + """ + + bucket_name: str + """The name of the bucket where the restore results will be placed.""" + prefix: str + """The prefix that is prepended to the restore results for this request.""" + encryption: Encryption | None = ... + """Contains the type of server-side encryption used.""" + canned_acl: str | None = ... + """The canned ACL to apply to the restore results.""" + access_control_list: list[Grant] | None = ... + """A list of grants that control access to the staged results.""" + tagging: Tagging | None = ... + """The tag-set that is applied to the restore results.""" + user_metadata: list[MetadataEntry] | None = ... + """A list of metadata to store with the restore results in S3.""" + storage_class: str | None = ... + """The class of storage used to store the restore results.""" + +class S3LocationDict(TypedDict, total=False): + """Dictionary form of `S3Location`.""" + + bucket_name: Required[str] + """The name of the bucket where the restore results will be placed.""" + prefix: Required[str] + """The prefix that is prepended to the restore results for this request.""" + encryption: Encryption | EncryptionDict | None + """Contains the type of server-side encryption used.""" + canned_acl: str | None + """The canned ACL to apply to the restore results.""" + access_control_list: Sequence[Grant | GrantDict] | None + """A list of grants that control access to the staged results.""" + tagging: Tagging | TaggingDict | None + """The tag-set that is applied to the restore results.""" + user_metadata: Sequence[MetadataEntry | MetadataEntryDict] | None + """A list of metadata to store with the restore results in S3.""" + storage_class: str | None + """The class of storage used to store the restore results.""" + +class S3TablesBucketType(UnknownEnumMixin, StrEnum): + AWS = "aws" + CUSTOMER = "customer" + +@dataclass(kw_only=True) +class S3TablesDestination(_SerdeShape): + """ + The destination information for a V1 S3 Metadata configuration. The + destination table bucket must be in the same Region and Amazon Web + Services account as the general purpose bucket. The specified metadata + table name must be unique within the `aws_s3_metadata` namespace in the + destination table bucket. + + Note: + If you created your S3 Metadata configuration before July 15, 2025, we + recommend that you delete and re-create your configuration by using + [CreateBucketMetadataConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html) + so that you can expire journal table records and create a live inventory + table. + """ + + table_bucket_arn: str + """ + The Amazon Resource Name (ARN) for the table bucket that's specified as + the destination in the metadata table configuration. The destination + table bucket must be in the same Region and Amazon Web Services account + as the general purpose bucket. + """ + table_name: str + """ + The name for the metadata table in your metadata table configuration. + The specified metadata table name must be unique within the + `aws_s3_metadata` namespace in the destination table bucket. + """ + +class S3TablesDestinationDict(TypedDict, total=False): + """Dictionary form of `S3TablesDestination`.""" + + table_bucket_arn: Required[str] + """ + The Amazon Resource Name (ARN) for the table bucket that's specified as + the destination in the metadata table configuration. The destination + table bucket must be in the same Region and Amazon Web Services account + as the general purpose bucket. + """ + table_name: Required[str] + """ + The name for the metadata table in your metadata table configuration. + The specified metadata table name must be unique within the + `aws_s3_metadata` namespace in the destination table bucket. + """ + +@dataclass(kw_only=True) +class S3TablesDestinationResult(_SerdeShape): + """ + The destination information for a V1 S3 Metadata configuration. The + destination table bucket must be in the same Region and Amazon Web + Services account as the general purpose bucket. The specified metadata + table name must be unique within the `aws_s3_metadata` namespace in the + destination table bucket. + + Note: + If you created your S3 Metadata configuration before July 15, 2025, we + recommend that you delete and re-create your configuration by using + [CreateBucketMetadataConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html) + so that you can expire journal table records and create a live inventory + table. + """ + + table_bucket_arn: str + """ + The Amazon Resource Name (ARN) for the table bucket that's specified as + the destination in the metadata table configuration. The destination + table bucket must be in the same Region and Amazon Web Services account + as the general purpose bucket. + """ + table_name: str + """ + The name for the metadata table in your metadata table configuration. + The specified metadata table name must be unique within the + `aws_s3_metadata` namespace in the destination table bucket. + """ + table_arn: str + """ + The Amazon Resource Name (ARN) for the metadata table in the metadata + table configuration. The specified metadata table name must be unique + within the `aws_s3_metadata` namespace in the destination table bucket. + """ + table_namespace: str + """ + The table bucket namespace for the metadata table in your metadata table + configuration. This value is always `aws_s3_metadata`. + """ + +@dataclass(kw_only=True) +class ScanRange(_SerdeShape): + """ + Specifies the byte range of the object to get the records from. A record + is processed when its first byte is contained by the range. This + parameter is optional, but when specified, it must not be empty. See RFC + 2616, Section 14.35.1 about how to specify the start and end of the + range. + """ + + start: int | None = ... + """ + Specifies the start of the byte range. This parameter is optional. Valid + values: non-negative integers. The default value is 0. If only `start` + is supplied, it means scan from that point to the end of the file. For + example, + ``{=html}``{=html}`50```{=html}``{=html} + means scan from byte 50 until the end of the file. + """ + end: int | None = ... + """ + Specifies the end of the byte range. This parameter is optional. Valid + values: non-negative integers. The default value is one less than the + size of the object being queried. If only the End parameter is supplied, + it is interpreted to mean scan the last N bytes of the file. For + example, + ``{=html}``{=html}`50```{=html}``{=html} + means scan the last 50 bytes. + """ + +class ScanRangeDict(TypedDict, total=False): + """Dictionary form of `ScanRange`.""" + + start: int | None + """ + Specifies the start of the byte range. This parameter is optional. Valid + values: non-negative integers. The default value is 0. If only `start` + is supplied, it means scan from that point to the end of the file. For + example, + ``{=html}``{=html}`50```{=html}``{=html} + means scan from byte 50 until the end of the file. + """ + end: int | None + """ + Specifies the end of the byte range. This parameter is optional. Valid + values: non-negative integers. The default value is one less than the + size of the object being queried. If only the End parameter is supplied, + it is interpreted to mean scan the last N bytes of the file. For + example, + ``{=html}``{=html}`50```{=html}``{=html} + means scan the last 50 bytes. + """ + +@dataclass +class SelectObjectContentEventStreamRecords(_SerdeShape): + """The Records Event.""" + + value: RecordsEvent + +@dataclass +class SelectObjectContentEventStreamStats(_SerdeShape): + """The Stats Event.""" + + value: StatsEvent + +@dataclass +class SelectObjectContentEventStreamProgress(_SerdeShape): + """The Progress Event.""" + + value: ProgressEvent + +@dataclass +class SelectObjectContentEventStreamCont(_SerdeShape): + """The Continuation Event.""" + + value: ContinuationEvent + +@dataclass +class SelectObjectContentEventStreamEnd(_SerdeShape): + """The End Event.""" + + value: EndEvent + +@dataclass +class SelectObjectContentEventStreamUnknown(_SerdeShape): + """ + Represents an unknown variant. If you receive this value, you will need + to update your library to receive the parsed value. This value may not + be deliberately sent. + """ + + tag: str + +SelectObjectContentEventStream = Union[ + SelectObjectContentEventStreamRecords + | SelectObjectContentEventStreamStats + | SelectObjectContentEventStreamProgress + | SelectObjectContentEventStreamCont + | SelectObjectContentEventStreamEnd + | SelectObjectContentEventStreamUnknown +] +"""The container for selecting objects from a content event stream.""" + +class _SelectObjectContentEventStreamDeserializer: + def deserialize( + self, deserializer: ShapeDeserializer + ) -> SelectObjectContentEventStream: ... + +@dataclass(kw_only=True) +class SelectObjectContentInput(_SerdeShape): + """ + Note: + Learn Amazon S3 Select is no longer available to new customers. Existing + customers of Amazon S3 Select can continue to use the feature as usual. + [Learn + more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + + Request to filter the contents of an Amazon S3 object based on a simple + Structured Query Language (SQL) statement. In the request, along with + the SQL expression, you must specify a data serialization format (JSON + or CSV) of the object. Amazon S3 uses this to parse object data into + records. It returns only records that match the specified SQL + expression. You must also specify the data serialization format for the + response. For more information, see [S3Select API + Documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html). + """ + + bucket: str | None = ... + """The S3 bucket.""" + key: str | None = ... + """The object key.""" + sse_customer_algorithm: str | None = ... + """ + The server-side encryption (SSE) algorithm used to encrypt the object. + This parameter is needed only when the object was created using a + checksum algorithm. For more information, see [Protecting data using + SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + """ + sse_customer_key: str | None = ... + """ + The server-side encryption (SSE) customer managed key. This parameter is + needed only when the object was created using a checksum algorithm. For + more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + """ + sse_customer_key_md5: str | None = ... + """ + The MD5 server-side encryption (SSE) customer managed key. This + parameter is needed only when the object was created using a checksum + algorithm. For more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + """ + expression: str | None = ... + """The expression that is used to query the object.""" + expression_type: str | None = ... + """The type of the provided expression (for example, SQL).""" + request_progress: RequestProgress | None = ... + """Specifies if periodic request progress information should be enabled.""" + input_serialization: InputSerialization | None = ... + """Describes the format of the data in the object that is being queried.""" + output_serialization: OutputSerialization | None = ... + """ + Describes the format of the data that you want Amazon S3 to return in + response. + """ + scan_range: ScanRange | None = ... + """ + Specifies the byte range of the object to get the records from. A record + is processed when its first byte is contained by the range. This + parameter is optional, but when specified, it must not be empty. See RFC + 2616, Section 14.35.1 about how to specify the start and end of the + range. + + `ScanRange`may be used in the following ways: + + - ``{=html}``{=html}`50```{=html}``{=html}`100```{=html}``{=html} - + process only the records starting between the bytes 50 and 100 + (inclusive, counting from zero) + + - ``{=html}``{=html}`50```{=html}``{=html} - + process only the records starting after the byte 50 + + - ``{=html}``{=html}`50```{=html}``{=html} - + process only the records within the last 50 bytes of the file. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +class SelectObjectContentInputDict(TypedDict, total=False): + """Dictionary form of `SelectObjectContentInput`.""" + + bucket: Required[str] + """The S3 bucket.""" + key: Required[str] + """The object key.""" + sse_customer_algorithm: str | None + """ + The server-side encryption (SSE) algorithm used to encrypt the object. + This parameter is needed only when the object was created using a + checksum algorithm. For more information, see [Protecting data using + SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + """ + sse_customer_key: str | None + """ + The server-side encryption (SSE) customer managed key. This parameter is + needed only when the object was created using a checksum algorithm. For + more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + """ + sse_customer_key_md5: str | None + """ + The MD5 server-side encryption (SSE) customer managed key. This + parameter is needed only when the object was created using a checksum + algorithm. For more information, see [Protecting data using SSE-C + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. + """ + expression: Required[str] + """The expression that is used to query the object.""" + expression_type: Required[str] + """The type of the provided expression (for example, SQL).""" + request_progress: RequestProgress | RequestProgressDict | None + """Specifies if periodic request progress information should be enabled.""" + input_serialization: Required[InputSerialization | InputSerializationDict] + """Describes the format of the data in the object that is being queried.""" + output_serialization: Required[OutputSerialization | OutputSerializationDict] + """ + Describes the format of the data that you want Amazon S3 to return in + response. + """ + scan_range: ScanRange | ScanRangeDict | None + """ + Specifies the byte range of the object to get the records from. A record + is processed when its first byte is contained by the range. This + parameter is optional, but when specified, it must not be empty. See RFC + 2616, Section 14.35.1 about how to specify the start and end of the + range. + + `ScanRange`may be used in the following ways: + + - ``{=html}``{=html}`50```{=html}``{=html}`100```{=html}``{=html} - + process only the records starting between the bytes 50 and 100 + (inclusive, counting from zero) + + - ``{=html}``{=html}`50```{=html}``{=html} - + process only the records starting after the byte 50 + + - ``{=html}``{=html}`50```{=html}``{=html} - + process only the records within the last 50 bytes of the file. + """ + expected_bucket_owner: str | None + """ + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). + """ + +@dataclass(kw_only=True) +class SelectObjectContentOutput(_SerdeShape): + """Dataclass for SelectObjectContentOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class SelectParameters(_SerdeShape): + """ + Warning: + Amazon S3 Select is no longer available to new customers. Existing + customers of Amazon S3 Select can continue to use the feature as usual. + [Learn + more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + + Describes the parameters for Select job types. + + Learn [How to optimize querying your data in Amazon + S3](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + using [Amazon + Athena](https://docs.aws.amazon.com/athena/latest/ug/what-is.html), [S3 + Object + Lambda](https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html), + or client-side filtering. + """ + + input_serialization: InputSerialization + """Describes the serialization format of the object.""" + expression_type: str + """The type of the provided expression (for example, SQL).""" + expression: str + """ + Warning: + Amazon S3 Select is no longer available to new customers. Existing + customers of Amazon S3 Select can continue to use the feature as usual. + [Learn + more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + + The expression that is used to query the object. + """ + output_serialization: OutputSerialization + """Describes how the results of the Select job are serialized.""" + +class SelectParametersDict(TypedDict, total=False): + """Dictionary form of `SelectParameters`.""" + + input_serialization: Required[InputSerialization | InputSerializationDict] + """Describes the serialization format of the object.""" + expression_type: Required[str] + """The type of the provided expression (for example, SQL).""" + expression: Required[str] + """ + Warning: + Amazon S3 Select is no longer available to new customers. Existing + customers of Amazon S3 Select can continue to use the feature as usual. + [Learn + more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) + + The expression that is used to query the object. """ + output_serialization: Required[OutputSerialization | OutputSerializationDict] + """Describes how the results of the Select job are serialized.""" + +class ServerSideEncryption(UnknownEnumMixin, StrEnum): + AES256 = "AES256" + AWS_FSX = "aws:fsx" + AWS_BACKUP = "aws:backup" + AWS_KMS = "aws:kms" + AWS_KMS_DSSE = "aws:kms:dsse" @dataclass(kw_only=True) -class PutObjectRetentionOutput(_SerdeShape): - """Dataclass for PutObjectRetentionOutput structure.""" +class ServerSideEncryptionByDefault(_SerdeShape): + """ + Describes the default server-side encryption to apply to new objects in + the bucket. If a PUT Object request doesn't specify any server-side + encryption, this default encryption will be applied. For more + information, see + [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html). - request_charged: str | None = ... + Note: + - **General purpose buckets** - If you don't specify a customer managed + key at configuration, Amazon S3 automatically creates an Amazon Web + Services KMS key (`aws/s3`) in your Amazon Web Services account the + first time that you add an object encrypted with SSE-KMS to a bucket. + By default, Amazon S3 uses this KMS key for SSE-KMS. + + - **Directory buckets** - Your SSE-KMS configuration can only support 1 + [customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + per directory bucket's lifetime. The [Amazon Web Services managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + (`aws/s3`) isn't supported. + + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: SSE-S3 and SSE-KMS. """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. + + sse_algorithm: str + """ + Server-side encryption algorithm to use for the default encryption. Note: - This functionality is not supported for directory buckets. + For directory buckets, there are only two supported values for + server-side encryption: `AES256` and `aws:kms`. """ - response_metadata: ResponseMetadata = ... + kms_master_key_id: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Amazon Web Services Key Management Service (KMS) customer managed key ID + to use for the default encryption. + + Note: + - **General purpose buckets** - This parameter is allowed if and only if + `SSEAlgorithm` is set to `aws:kms` or `aws:kms:dsse`. + + - **Directory buckets** - This parameter is allowed if and only if + `SSEAlgorithm` is set to `aws:kms`. + + You can specify the key ID, key alias, or the Amazon Resource Name (ARN) + of the KMS key. + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key Alias: `alias/alias-name` + + If you are using encryption with cross-account or Amazon Web Services + service operations, you must use a fully qualified KMS key ARN. For more + information, see [Using encryption for cross-account + operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy). + + Note: + - **General purpose buckets** - If you're specifying a customer managed + KMS key, we recommend using a fully qualified KMS key ARN. If you use + a KMS key alias instead, then KMS resolves the key within the + requester's account. This behavior can result in data that's + encrypted with a KMS key that belongs to the requester, and not the + bucket owner. Also, if you use a key ID, you can run into a + LogDestination undeliverable error when creating a VPC flow log. + + - **Directory buckets** - When you specify an [KMS customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + for encryption in your directory bucket, only use the key ID or key + ARN. The key alias format of the KMS key isn't supported. + Warning: + Amazon S3 only supports symmetric encryption KMS keys. For more + information, see [Asymmetric keys in Amazon Web Services + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + in the *Amazon Web Services Key Management Service Developer Guide*. """ -@dataclass(kw_only=True) -class PutObjectTaggingInput(_SerdeShape): - """Dataclass for PutObjectTaggingInput structure.""" +class ServerSideEncryptionByDefaultDict(TypedDict, total=False): + """Dictionary form of `ServerSideEncryptionByDefault`.""" - bucket: str | None = ... + sse_algorithm: Required[str] """ - The bucket name containing the object. + Server-side encryption algorithm to use for the default encryption. - **Access points** - When you use this action with an access point for - general purpose buckets, you must provide the alias of the access point - in place of the bucket name or specify the access point ARN. When you - use this action with an access point for directory buckets, you must - provide the access point name in place of the bucket name. When using - the access point ARN, you must direct requests to the access point - hostname. The access point hostname takes the form - *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. - When using this action with an access point through the Amazon Web - Services SDKs, you provide the access point ARN in place of the bucket - name. For more information about access point ARNs, see [Using access - points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - in the *Amazon S3 User Guide*. + Note: + For directory buckets, there are only two supported values for + server-side encryption: `AES256` and `aws:kms`. + """ + kms_master_key_id: str | None + """ + Amazon Web Services Key Management Service (KMS) customer managed key ID + to use for the default encryption. - **S3 on Outposts** - When you use this action with S3 on Outposts, you - must direct requests to the S3 on Outposts hostname. The S3 on Outposts - hostname takes the form - ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. - When you use this action with S3 on Outposts, the destination bucket - must be the Outposts access point ARN or the access point alias. For - more information about S3 on Outposts, see [What is S3 on - Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) - in the *Amazon S3 User Guide*. + Note: + - **General purpose buckets** - This parameter is allowed if and only if + `SSEAlgorithm` is set to `aws:kms` or `aws:kms:dsse`. + + - **Directory buckets** - This parameter is allowed if and only if + `SSEAlgorithm` is set to `aws:kms`. + + You can specify the key ID, key alias, or the Amazon Resource Name (ARN) + of the KMS key. + + - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key ARN: + `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + + - Key Alias: `alias/alias-name` + + If you are using encryption with cross-account or Amazon Web Services + service operations, you must use a fully qualified KMS key ARN. For more + information, see [Using encryption for cross-account + operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy). + + Note: + - **General purpose buckets** - If you're specifying a customer managed + KMS key, we recommend using a fully qualified KMS key ARN. If you use + a KMS key alias instead, then KMS resolves the key within the + requester's account. This behavior can result in data that's + encrypted with a KMS key that belongs to the requester, and not the + bucket owner. Also, if you use a key ID, you can run into a + LogDestination undeliverable error when creating a VPC flow log. + + - **Directory buckets** - When you specify an [KMS customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + for encryption in your directory bucket, only use the key ID or key + ARN. The key alias format of the KMS key isn't supported. + Warning: + Amazon S3 only supports symmetric encryption KMS keys. For more + information, see [Asymmetric keys in Amazon Web Services + KMS](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + in the *Amazon Web Services Key Management Service Developer Guide*. """ - key: str | None = ... - """Name of the object key.""" - version_id: str | None = ... - """The versionId of the object that the tag-set will be added to.""" - content_md5: str | None = ... + +@dataclass(kw_only=True) +class ServerSideEncryptionConfiguration(_SerdeShape): + """Specifies the default server-side-encryption configuration.""" + + rules: list[ServerSideEncryptionRule] + """ + Container for information about a particular server-side encryption + configuration rule. """ - The MD5 hash for the request body. - For requests made using the Amazon Web Services Command Line Interface - (CLI) or Amazon Web Services SDKs, this field is calculated - automatically. +class ServerSideEncryptionConfigurationDict(TypedDict, total=False): + """Dictionary form of `ServerSideEncryptionConfiguration`.""" + + rules: Required[Sequence[ServerSideEncryptionRule | ServerSideEncryptionRuleDict]] """ - checksum_algorithm: str | None = ... + Container for information about a particular server-side encryption + configuration rule. """ - Indicates the algorithm used to create the checksum for the object when - you use the SDK. This header will not provide any additional - functionality if you don't use the SDK. When you send this header, - there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header - sent. Otherwise, Amazon S3 fails the request with the HTTP status code - `400 Bad Request`. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. - If you provide an individual checksum, Amazon S3 ignores any provided - `ChecksumAlgorithm` parameter. +@dataclass(kw_only=True) +class ServerSideEncryptionRule(_SerdeShape): """ - tagging: Tagging | None = ... - """Container for the `TagSet` and `Tag` elements""" - expected_bucket_owner: str | None = ... + Specifies the default server-side encryption configuration. + + Note: + - **General purpose buckets** - If you're specifying a customer managed + KMS key, we recommend using a fully qualified KMS key ARN. If you use + a KMS key alias instead, then KMS resolves the key within the + requester's account. This behavior can result in data that's + encrypted with a KMS key that belongs to the requester, and not the + bucket owner. + + - **Directory buckets** - When you specify an [KMS customer managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) + for encryption in your directory bucket, only use the key ID or key + ARN. The key alias format of the KMS key isn't supported. """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + + apply_server_side_encryption_by_default: ServerSideEncryptionByDefault | None = ... """ - request_payer: str | None = ... + Specifies the default server-side encryption to apply to new objects in + the bucket. If a PUT Object request doesn't specify any server-side + encryption, this default encryption will be applied. """ - Confirms that the requester knows that she or he will be charged for the - tagging object request. Bucket owners need not specify this parameter in - their requests. + bucket_key_enabled: bool | None = ... """ + Specifies whether Amazon S3 should use an S3 Bucket Key with server-side + encryption using KMS (SSE-KMS) for new objects in the bucket. Existing + objects are not affected. Setting the `BucketKeyEnabled` element to + `true` causes Amazon S3 to use an S3 Bucket Key. -@dataclass(kw_only=True) -class PutObjectTaggingOutput(_SerdeShape): - """Dataclass for PutObjectTaggingOutput structure.""" + Note: + - **General purpose buckets** - By default, S3 Bucket Key is not + enabled. For more information, see [Amazon S3 Bucket + Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) + in the *Amazon S3 User Guide*. - version_id: str | None = ... - """The versionId of the object the tag-set was added to.""" - response_metadata: ResponseMetadata = ... + - **Directory buckets** - S3 Bucket Keys are always enabled for `GET` + and `PUT` operations in a directory bucket and can't be disabled. S3 + Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects + from general purpose buckets to directory buckets, from directory + buckets to general purpose buckets, or between directory buckets, + through + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html), + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), + [the Copy operation in Batch + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops), + or [the import + jobs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job). + In this case, Amazon S3 makes a call to KMS every time a copy request + is made for a KMS-encrypted object. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + blocked_encryption_types: BlockedEncryptionTypes | None = ... """ + A bucket-level setting for Amazon S3 general purpose buckets used to + prevent the upload of new objects encrypted with the specified + server-side encryption type. For example, blocking an encryption type + will block `PutObject`, `CopyObject`, `PostObject`, multipart upload, + and replication requests to the bucket for objects with the specified + encryption type. However, you can continue to read and list any + pre-existing objects already encrypted with the specified encryption + type. For more information, see [Blocking or unblocking SSE-C for a + general purpose + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html). -@dataclass(kw_only=True) -class PutPublicAccessBlockInput(_SerdeShape): - """Dataclass for PutPublicAccessBlockInput structure.""" + Note: + Currently, this parameter only supports blocking or unblocking + server-side encryption with customer-provided keys (SSE-C). For more + information about SSE-C, see [Using server-side encryption with + customer-provided keys + (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). + """ - bucket: str | None = ... +class ServerSideEncryptionRuleDict(TypedDict, total=False): + """Dictionary form of `ServerSideEncryptionRule`.""" + + apply_server_side_encryption_by_default: ( + ServerSideEncryptionByDefault | ServerSideEncryptionByDefaultDict | None + ) """ - The name of the Amazon S3 bucket whose `PublicAccessBlock` configuration - you want to set. + Specifies the default server-side encryption to apply to new objects in + the bucket. If a PUT Object request doesn't specify any server-side + encryption, this default encryption will be applied. """ - content_md5: str | None = ... + bucket_key_enabled: bool | None """ - The MD5 hash of the `PutPublicAccessBlock` request body. + Specifies whether Amazon S3 should use an S3 Bucket Key with server-side + encryption using KMS (SSE-KMS) for new objects in the bucket. Existing + objects are not affected. Setting the `BucketKeyEnabled` element to + `true` causes Amazon S3 to use an S3 Bucket Key. - For requests made using the Amazon Web Services Command Line Interface - (CLI) or Amazon Web Services SDKs, this field is calculated - automatically. - """ - checksum_algorithm: str | None = ... - """ - Indicates the algorithm used to create the checksum for the object when - you use the SDK. This header will not provide any additional - functionality if you don't use the SDK. When you send this header, - there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header - sent. Otherwise, Amazon S3 fails the request with the HTTP status code - `400 Bad Request`. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + Note: + - **General purpose buckets** - By default, S3 Bucket Key is not + enabled. For more information, see [Amazon S3 Bucket + Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) + in the *Amazon S3 User Guide*. - If you provide an individual checksum, Amazon S3 ignores any provided - `ChecksumAlgorithm` parameter. - """ - public_access_block_configuration: PublicAccessBlockConfiguration | None = ... - """ - The `PublicAccessBlock` configuration that you want to apply to this - Amazon S3 bucket. You can enable the configuration options in any - combination. For more information about when Amazon S3 considers a - bucket or object public, see [The Meaning of - \"Public\"](https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) - in the *Amazon S3 User Guide*. + - **Directory buckets** - S3 Bucket Keys are always enabled for `GET` + and `PUT` operations in a directory bucket and can't be disabled. S3 + Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects + from general purpose buckets to directory buckets, from directory + buckets to general purpose buckets, or between directory buckets, + through + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html), + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), + [the Copy operation in Batch + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops), + or [the import + jobs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job). + In this case, Amazon S3 makes a call to KMS every time a copy request + is made for a KMS-encrypted object. """ - expected_bucket_owner: str | None = ... + blocked_encryption_types: BlockedEncryptionTypes | BlockedEncryptionTypesDict | None """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + A bucket-level setting for Amazon S3 general purpose buckets used to + prevent the upload of new objects encrypted with the specified + server-side encryption type. For example, blocking an encryption type + will block `PutObject`, `CopyObject`, `PostObject`, multipart upload, + and replication requests to the bucket for objects with the specified + encryption type. However, you can continue to read and list any + pre-existing objects already encrypted with the specified encryption + type. For more information, see [Blocking or unblocking SSE-C for a + general purpose + bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html). + + Note: + Currently, this parameter only supports blocking or unblocking + server-side encryption with customer-provided keys (SSE-C). For more + information about SSE-C, see [Using server-side encryption with + customer-provided keys + (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). """ @dataclass(kw_only=True) -class PutPublicAccessBlockOutput(_SerdeShape): - """Dataclass for PutPublicAccessBlockOutput structure.""" - - response_metadata: ResponseMetadata = ... +class SessionCredentials(_SerdeShape): """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The established temporary security credentials of the session. + + Note: + **Directory buckets** - These session credentials are only supported for + the authentication and authorization of Zonal endpoint API operations on + directory buckets. """ -@dataclass(kw_only=True) -class QueueConfiguration(_SerdeShape): + access_key_id: str """ - Specifies the configuration for publishing messages to an Amazon Simple - Queue Service (Amazon SQS) queue when Amazon S3 detects specified - events. + A unique identifier that's associated with a secret access key. The + access key ID and the secret access key are used together to sign + programmatic Amazon Web Services requests cryptographically. """ - - id: str | None = ... + secret_access_key: str """ - An optional unique identifier for configurations in a notification - configuration. If you don't provide one, Amazon S3 will assign an ID. + A key that's used with the access key ID to cryptographically sign + programmatic Amazon Web Services requests. Signing a request identifies + the sender and prevents the request from being altered. """ - queue_arn: str + session_token: str """ - The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon - S3 publishes a message when it detects events of the specified type. + A part of the temporary security credentials. The session token is used + to validate the temporary security credentials. """ - events: list[str] - """A collection of bucket events for which to send notifications""" - filter: NotificationConfigurationFilter | None = ... + expiration: datetime """ - Specifies object key name filtering rules. For information about key - name filtering, see [Configuring event notifications using object key - name - filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) - in the *Amazon S3 User Guide*. + Temporary security credentials expire after a specified interval. After + temporary credentials expire, any calls that you make with those + credentials will fail. So you must generate a new set of temporary + credentials. Temporary credentials cannot be extended or refreshed + beyond the original specified interval. """ -class QuoteFields(UnknownEnumMixin, StrEnum): - ALWAYS = "ALWAYS" - ASNEEDED = "ASNEEDED" +class SessionMode(UnknownEnumMixin, StrEnum): + READ_ONLY = "ReadOnly" + READ_WRITE = "ReadWrite" @dataclass(kw_only=True) -class RecordExpiration(_SerdeShape): - """ - The journal table record expiration settings for a journal table in an - S3 Metadata configuration. +class SimplePrefix(_SerdeShape): """ + To use simple format for S3 keys for log objects, set SimplePrefix to an + empty object. - expiration: str - """ - Specifies whether journal table record expiration is enabled or - disabled. - """ - days: int | None = ... - """ - If you enable journal table record expiration, you can set the number of - days to retain your journal table records. Journal table records must be - retained for a minimum of 7 days. To set this value, specify any whole - number from `7` to `2147483647`. For example, to retain your journal - table records for one year, set this value to `365`. + `[DestinationPrefix][YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]` """ -@dataclass(kw_only=True) -class RecordsEvent(_SerdeShape): - """The container for the records event.""" +class SimplePrefixDict(TypedDict, total=False): + """Dictionary form of `SimplePrefix`.""" - payload: bytes | None = ... +@dataclass(kw_only=True) +class SourceSelectionCriteria(_SerdeShape): """ - The byte array of partial, one or more result records. S3 Select - doesn't guarantee that a record will be self-contained in one record - frame. To ensure continuous streaming of data, S3 Select might split the - same record across multiple record frames instead of aggregating the - results in memory. Some S3 clients (for example, the SDK for Java) - handle this behavior by creating a `ByteStream` out of the response by - default. Other clients might not handle this behavior by default. In - those cases, you must aggregate the results on the client side and parse - the response. + A container that describes additional filters for identifying the source + objects that you want to replicate. You can choose to enable or disable + the replication of these objects. Currently, Amazon S3 supports only the + filter that you can specify for objects created with server-side + encryption using a customer managed key stored in Amazon Web Services + Key Management Service (SSE-KMS). """ -@dataclass(kw_only=True) -class Redirect(_SerdeShape): + sse_kms_encrypted_objects: SseKmsEncryptedObjects | None = ... """ - Specifies how requests are redirected. In the event of an error, you can - specify a different error code to return. + A container for filter information for the selection of Amazon S3 + objects encrypted with Amazon Web Services KMS. If you include + `SourceSelectionCriteria` in the replication configuration, this element + is required. + """ + replica_modifications: ReplicaModifications | None = ... """ + A filter that you can specify for selections for modifications on + replicas. Amazon S3 doesn't replicate replica modifications by default. + In the latest version of replication configuration (when `Filter` is + specified), you can specify this element and set the status to `Enabled` + to replicate modifications on replicas. - host_name: str | None = ... - """The host name to use in the redirect request.""" - http_redirect_code: str | None = ... + Note: + If you don't specify the `Filter` element, Amazon S3 assumes that the + replication configuration is the earlier version, V1. In the earlier + version, this element is not allowed """ - The HTTP redirect code to use on the response. Not required if one of - the siblings is present. + +class SourceSelectionCriteriaDict(TypedDict, total=False): + """Dictionary form of `SourceSelectionCriteria`.""" + + sse_kms_encrypted_objects: ( + SseKmsEncryptedObjects | SseKmsEncryptedObjectsDict | None + ) """ - protocol: str | None = ... + A container for filter information for the selection of Amazon S3 + objects encrypted with Amazon Web Services KMS. If you include + `SourceSelectionCriteria` in the replication configuration, this element + is required. """ - Protocol to use when redirecting requests. The default is the protocol - that is used in the original request. + replica_modifications: ReplicaModifications | ReplicaModificationsDict | None """ - replace_key_prefix_with: str | None = ... + A filter that you can specify for selections for modifications on + replicas. Amazon S3 doesn't replicate replica modifications by default. + In the latest version of replication configuration (when `Filter` is + specified), you can specify this element and set the status to `Enabled` + to replicate modifications on replicas. + + Note: + If you don't specify the `Filter` element, Amazon S3 assumes that the + replication configuration is the earlier version, V1. In the earlier + version, this element is not allowed """ - The object key prefix to use in the redirect request. For example, to - redirect requests for all pages with prefix `docs/` (objects in the - `docs/` folder) to `documents/`, you can set a condition block with - `KeyPrefixEquals` set to `docs/` and in the Redirect set - `ReplaceKeyPrefixWith` to `/documents`. Not required if one of the - siblings is present. Can be present only if `ReplaceKeyWith` is not - provided. - Warning: - Replacement must be made for object keys containing special characters - (such as carriage returns) when using XML requests. For more - information, see [XML related object key - constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). +@dataclass(kw_only=True) +class SSEKMS(_SerdeShape): + """Specifies the use of SSE-KMS to encrypt delivered inventory reports.""" + + key_id: str """ - replace_key_with: str | None = ... + Specifies the ID of the Key Management Service (KMS) symmetric + encryption customer managed key to use for encrypting inventory reports. """ - The specific object key to use in the redirect request. For example, - redirect request to `error.html`. Not required if one of the siblings is - present. Can be present only if `ReplaceKeyPrefixWith` is not provided. - Warning: - Replacement must be made for object keys containing special characters - (such as carriage returns) when using XML requests. For more - information, see [XML related object key - constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). +class SSEKMSDict(TypedDict, total=False): + """Dictionary form of `SSEKMS`.""" + + key_id: Required[str] + """ + Specifies the ID of the Key Management Service (KMS) symmetric + encryption customer managed key to use for encrypting inventory reports. """ @dataclass(kw_only=True) -class RedirectAllRequestsTo(_SerdeShape): +class SseKmsEncryptedObjects(_SerdeShape): """ - Specifies the redirect behavior of all requests to a website endpoint of - an Amazon S3 bucket. + A container for filter information for the selection of S3 objects + encrypted with Amazon Web Services KMS. """ - host_name: str - """Name of the host where requests are redirected.""" - protocol: str | None = ... + status: str """ - Protocol to use when redirecting requests. The default is the protocol - that is used in the original request. + Specifies whether Amazon S3 replicates objects created with server-side + encryption using an Amazon Web Services KMS key stored in Amazon Web + Services Key Management Service. """ -@dataclass(kw_only=True) -class RenameObjectInput(_SerdeShape): - """Dataclass for RenameObjectInput structure.""" +class SseKmsEncryptedObjectsDict(TypedDict, total=False): + """Dictionary form of `SseKmsEncryptedObjects`.""" - bucket: str | None = ... + status: Required[str] + """ + Specifies whether Amazon S3 replicates objects created with server-side + encryption using an Amazon Web Services KMS key stored in Amazon Web + Services Key Management Service. """ - The bucket name of the directory bucket containing the object. - You must use virtual-hosted-style requests in the format - `Bucket-name.s3express-zone-id.region-code.amazonaws.com`. Path-style - requests are not supported. Directory bucket names must be unique in the - chosen Availability Zone. Bucket names must follow the format - `bucket-base-name--zone-id--x-s3 ` (for example, - `amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket - naming restrictions, see [Directory bucket naming - rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) - in the *Amazon S3 User Guide*. +class SseKmsEncryptedObjectsStatus(UnknownEnumMixin, StrEnum): + ENABLED = "Enabled" + DISABLED = "Disabled" + +@dataclass(kw_only=True) +class SSEKMSEncryption(_SerdeShape): """ - key: str | None = ... - """Key name of the object to rename.""" - rename_source: str | None = ... + If `SSEKMS` is specified for `ObjectEncryption`, this data type + specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to + use and whether to use an S3 Bucket Key for server-side encryption using + Key Management Service (KMS) keys (SSE-KMS). """ - Specifies the source for the rename operation. The value must be URL - encoded. + + kms_key_arn: str """ - destination_if_match: str | None = ... + Specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to + use for the updated server-side encryption type. Required if + `ObjectEncryption` specifies `SSEKMS`. + + Note: + You must specify the full Amazon Web Services KMS key ARN. The KMS key + ID and KMS key alias aren't supported. + + Pattern: (`arn:aws[-a-z0-9]*:kms:[-a-z0-9]*:[0-9]{12}:key/.+`) """ - Renames the object only if the ETag (entity tag) value provided during - the operation matches the ETag of the object in S3. The `If-Match` - header field makes the request method conditional on ETags. If the ETag - values do not match, the operation returns a `412 Precondition Failed` - error. + bucket_key_enabled: bool | None = ... + """ + Specifies whether Amazon S3 should use an S3 Bucket Key for object + encryption with server-side encryption using Key Management Service + (KMS) keys (SSE-KMS). If this value isn't specified, it defaults to + `false`. Setting this value to `true` causes Amazon S3 to use an S3 + Bucket Key for object encryption with SSE-KMS. For more information, see + [Using Amazon S3 Bucket + Keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-key.html) + in the *Amazon S3 User Guide*. - Expects the ETag value as a string. + Valid Values: `true` | `false` """ - destination_if_none_match: str | None = ... + +class SSEKMSEncryptionDict(TypedDict, total=False): + """Dictionary form of `SSEKMSEncryption`.""" + + kms_key_arn: Required[str] """ - Renames the object only if the destination does not already exist in the - specified directory bucket. If the object does exist when you send a - request with `If-None-Match:*`, the S3 API will return a - `412 Precondition Failed` error, preventing an overwrite. The - `If-None-Match` header prevents overwrites of existing data by - validating that there's not an object with the same key name already in - your directory bucket. + Specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to + use for the updated server-side encryption type. Required if + `ObjectEncryption` specifies `SSEKMS`. - Expects the `*` character (asterisk). + Note: + You must specify the full Amazon Web Services KMS key ARN. The KMS key + ID and KMS key alias aren't supported. + + Pattern: (`arn:aws[-a-z0-9]*:kms:[-a-z0-9]*:[0-9]{12}:key/.+`) """ - destination_if_modified_since: datetime | None = ... + bucket_key_enabled: bool | None """ - Renames the object if the destination exists and if it has been modified - since the specified time. + Specifies whether Amazon S3 should use an S3 Bucket Key for object + encryption with server-side encryption using Key Management Service + (KMS) keys (SSE-KMS). If this value isn't specified, it defaults to + `false`. Setting this value to `true` causes Amazon S3 to use an S3 + Bucket Key for object encryption with SSE-KMS. For more information, see + [Using Amazon S3 Bucket + Keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-key.html) + in the *Amazon S3 User Guide*. + + Valid Values: `true` | `false` """ - destination_if_unmodified_since: datetime | None = ... - """Renames the object if it hasn't been modified since the specified time.""" - source_if_match: str | None = ... + +@dataclass(kw_only=True) +class SSES3(_SerdeShape): + """Specifies the use of SSE-S3 to encrypt delivered inventory reports.""" + +class SSES3Dict(TypedDict, total=False): + """Dictionary form of `SSES3`.""" + +@dataclass(kw_only=True) +class Stats(_SerdeShape): + """Container for the stats details.""" + + bytes_scanned: int | None = ... + """The total number of object bytes scanned.""" + bytes_processed: int | None = ... + """The total number of uncompressed object bytes processed.""" + bytes_returned: int | None = ... + """The total number of bytes of records payload data returned.""" + +@dataclass(kw_only=True) +class StatsEvent(_SerdeShape): + """Container for the Stats Event.""" + + details: Stats | None = ... + """The Stats event details.""" + +class StorageClass(UnknownEnumMixin, StrEnum): + STANDARD = "STANDARD" + REDUCED_REDUNDANCY = "REDUCED_REDUNDANCY" + STANDARD_IA = "STANDARD_IA" + ONEZONE_IA = "ONEZONE_IA" + INTELLIGENT_TIERING = "INTELLIGENT_TIERING" + GLACIER = "GLACIER" + DEEP_ARCHIVE = "DEEP_ARCHIVE" + OUTPOSTS = "OUTPOSTS" + GLACIER_IR = "GLACIER_IR" + SNOW = "SNOW" + EXPRESS_ONEZONE = "EXPRESS_ONEZONE" + FSX_OPENZFS = "FSX_OPENZFS" + FSX_ONTAP = "FSX_ONTAP" + AWS_BACKUP_WARM = "AWS_BACKUP_WARM" + AWS_BACKUP_LOW_COST_WARM = "AWS_BACKUP_LOW_COST_WARM" + +@dataclass(kw_only=True) +class StorageClassAnalysis(_SerdeShape): """ - Renames the object if the source exists and if its entity tag (ETag) - matches the specified ETag. + Specifies data related to access patterns to be collected and made + available to analyze the tradeoffs between different storage classes for + an Amazon S3 bucket. """ - source_if_none_match: str | None = ... + + data_export: StorageClassAnalysisDataExport | None = ... """ - Renames the object if the source exists and if its entity tag (ETag) is - different than the specified ETag. If an asterisk (`*`) character is - provided, the operation will fail and return a `412 Precondition Failed` - error. + Specifies how data related to the storage class analysis for an Amazon + S3 bucket should be exported. """ - source_if_modified_since: datetime | None = ... + +class StorageClassAnalysisDict(TypedDict, total=False): + """Dictionary form of `StorageClassAnalysis`.""" + + data_export: ( + StorageClassAnalysisDataExport | StorageClassAnalysisDataExportDict | None + ) """ - Renames the object if the source exists and if it has been modified - since the specified time. + Specifies how data related to the storage class analysis for an Amazon + S3 bucket should be exported. """ - source_if_unmodified_since: datetime | None = ... + +@dataclass(kw_only=True) +class StorageClassAnalysisDataExport(_SerdeShape): """ - Renames the object if the source exists and hasn't been modified since - the specified time. + Container for data related to the storage class analysis for an Amazon + S3 bucket for export. """ - client_token: str | None = ... + + output_schema_version: str """ - A unique string with a max of 64 ASCII characters in the ASCII range of - 33 - 126. + The version of the output schema to use when exporting data. Must be + `V_1`. + """ + destination: AnalyticsExportDestination + """The place to store the data for an analysis.""" - Note: - `RenameObject` supports idempotency using a client token. To make an - idempotent API request using `RenameObject`, specify a client token in - the request. You should not reuse the same client token for other API - requests. If you retry a request that completed successfully using the - same client token and the same parameters, the retry succeeds without - performing any further actions. If you retry a successful request using - the same client token, but one or more of the parameters are different, - the retry fails and an `IdempotentParameterMismatch` error is returned. +class StorageClassAnalysisDataExportDict(TypedDict, total=False): + """Dictionary form of `StorageClassAnalysisDataExport`.""" - This field is autopopulated if not provided. + output_schema_version: Required[str] + """ + The version of the output schema to use when exporting data. Must be + `V_1`. """ + destination: Required[AnalyticsExportDestination | AnalyticsExportDestinationDict] + """The place to store the data for an analysis.""" + +class StorageClassAnalysisSchemaVersion(UnknownEnumMixin, StrEnum): + V_1 = "V_1" + +class TableSseAlgorithm(UnknownEnumMixin, StrEnum): + AWS_KMS = "aws:kms" + AES256 = "AES256" @dataclass(kw_only=True) -class RenameObjectOutput(_SerdeShape): - """Dataclass for RenameObjectOutput structure.""" +class Tag(_SerdeShape): + """A container of a key value name pair.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + key: str + """Name of the object key.""" + value: str + """Value of the tag.""" + +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """Name of the object key.""" + value: Required[str] + """Value of the tag.""" @dataclass(kw_only=True) -class ReplicaModifications(_SerdeShape): - """ - A filter that you can specify for selection for modifications on - replicas. Amazon S3 doesn't replicate replica modifications by default. - In the latest version of replication configuration (when `Filter` is - specified), you can specify this element and set the status to `Enabled` - to replicate modifications on replicas. +class Tagging(_SerdeShape): + """Container for `TagSet` elements.""" - Note: - If you don't specify the `Filter` element, Amazon S3 assumes that the - replication configuration is the earlier version, V1. In the earlier - version, this element is not allowed. - """ + tag_set: list[Tag] + """A collection for a set of tags""" - status: str - """Specifies whether Amazon S3 replicates modifications on replicas.""" +class TaggingDict(TypedDict, total=False): + """Dictionary form of `Tagging`.""" -class ReplicaModificationsStatus(UnknownEnumMixin, StrEnum): - ENABLED = "Enabled" - DISABLED = "Disabled" + tag_set: Required[Sequence[Tag | TagDict]] + """A collection for a set of tags""" + +class TaggingDirective(UnknownEnumMixin, StrEnum): + COPY = "COPY" + REPLACE = "REPLACE" @dataclass(kw_only=True) -class ReplicationConfiguration(_SerdeShape): - """ - A container for replication rules. You can add up to 1,000 rules. The - maximum size of a replication configuration is 2 MB. +class TargetGrant(_SerdeShape): """ + Container for granting information. - role: str - """ - The Amazon Resource Name (ARN) of the Identity and Access Management - (IAM) role that Amazon S3 assumes when replicating objects. For more - information, see [How to Set Up - Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html) + Buckets that use the bucket owner enforced setting for Object Ownership + don't support target grants. For more information, see [Permissions + server access log + delivery](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general) in the *Amazon S3 User Guide*. """ - rules: list[ReplicationRule] - """ - A container for one or more replication rules. A replication - configuration must have at least one rule and can contain a maximum of - 1,000 rules. - """ + + grantee: Grantee | None = ... + """Container for the person being granted permissions.""" + permission: str | None = ... + """Logging permissions assigned to the grantee for the bucket.""" + +class TargetGrantDict(TypedDict, total=False): + """Dictionary form of `TargetGrant`.""" + + grantee: Grantee | GranteeDict | None + """Container for the person being granted permissions.""" + permission: str | None + """Logging permissions assigned to the grantee for the bucket.""" @dataclass(kw_only=True) -class ReplicationRule(_SerdeShape): +class TargetObjectKeyFormat(_SerdeShape): """ - Specifies which Amazon S3 objects to replicate and where to store the - replicas. + Amazon S3 key format for log objects. Only one format, PartitionedPrefix + or SimplePrefix, is allowed. """ - id: str | None = ... - """A unique identifier for the rule. The maximum value is 255 characters.""" - priority: int | None = ... + simple_prefix: SimplePrefix | None = ... """ - The priority indicates which rule has precedence whenever two or more - replication rules conflict. Amazon S3 will attempt to replicate objects - according to all replication rules. However, if there are two or more - rules with the same destination bucket, then objects will be replicated - according to the rule with the highest priority. The higher the number, - the higher the priority. + To use the simple format for S3 keys for log objects. To specify + SimplePrefix format, set SimplePrefix to {}. + """ + partitioned_prefix: PartitionedPrefix | None = ... + """Partitioned S3 key for log objects.""" - For more information, see - [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) - in the *Amazon S3 User Guide*. +class TargetObjectKeyFormatDict(TypedDict, total=False): + """Dictionary form of `TargetObjectKeyFormat`.""" + + simple_prefix: SimplePrefix | SimplePrefixDict | None """ - prefix: str | None = ... + To use the simple format for S3 keys for log objects. To specify + SimplePrefix format, set SimplePrefix to {}. """ - An object key name prefix that identifies the object or objects to which - the rule applies. The maximum prefix length is 1,024 characters. To - include all objects in a bucket, specify an empty string. + partitioned_prefix: PartitionedPrefix | PartitionedPrefixDict | None + """Partitioned S3 key for log objects.""" - Warning: - Replacement must be made for object keys containing special characters - (such as carriage returns) when using XML requests. For more - information, see [XML related object key - constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). +class Tier(UnknownEnumMixin, StrEnum): + STANDARD = "Standard" + BULK = "Bulk" + EXPEDITED = "Expedited" + +@dataclass(kw_only=True) +class Tiering(_SerdeShape): """ - filter: ReplicationRuleFilter | None = ... + The S3 Intelligent-Tiering storage class is designed to optimize storage + costs by automatically moving data to the most cost-effective storage + access tier, without additional operational overhead. """ - A filter that identifies the subset of objects to which the replication - rule applies. A `Filter` must specify exactly one `Prefix`, `Tag`, or an - `And` child element. + + days: int """ - status: str - """Specifies whether the rule is enabled.""" - source_selection_criteria: SourceSelectionCriteria | None = ... + The number of consecutive days of no access after which an object will + be eligible to be transitioned to the corresponding tier. The minimum + number of days specified for Archive Access tier must be at least 90 + days and Deep Archive Access tier must be at least 180 days. The maximum + can be up to 2 years (730 days). """ - A container that describes additional filters for identifying the source - objects that you want to replicate. You can choose to enable or disable - the replication of these objects. Currently, Amazon S3 supports only the - filter that you can specify for objects created with server-side - encryption using a customer managed key stored in Amazon Web Services - Key Management Service (SSE-KMS). + access_tier: str """ - existing_object_replication: ExistingObjectReplication | None = ... + S3 Intelligent-Tiering access tier. See [Storage class for automatically + optimizing frequently and infrequently accessed + objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access) + for a list of access tiers in the S3 Intelligent-Tiering storage class. """ - Optional configuration to replicate existing source bucket objects. - Note: - This parameter is no longer supported. To replicate existing objects, - see [Replicating existing objects with S3 Batch - Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) - in the *Amazon S3 User Guide*. - """ - destination: Destination +class TieringDict(TypedDict, total=False): + """Dictionary form of `Tiering`.""" + + days: Required[int] """ - A container for information about the replication destination and its - configurations including enabling the S3 Replication Time Control (S3 - RTC). + The number of consecutive days of no access after which an object will + be eligible to be transitioned to the corresponding tier. The minimum + number of days specified for Archive Access tier must be at least 90 + days and Deep Archive Access tier must be at least 180 days. The maximum + can be up to 2 years (730 days). """ - delete_marker_replication: DeleteMarkerReplication | None = ... + access_tier: Required[str] """ - Specifies whether Amazon S3 replicates delete markers. If you specify a - `Filter` in your replication configuration, you must also include a - `DeleteMarkerReplication` element. If your `Filter` includes a `Tag` - element, the `DeleteMarkerReplication` `Status` must be set to Disabled, - because Amazon S3 does not support replicating delete markers for - tag-based rules. For an example configuration, see [Basic Rule - Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config). - - For more information about delete marker replication, see [Basic Rule - Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-marker-replication.html). - - Note: - If you are using an earlier version of the replication configuration, - Amazon S3 handles replication of delete markers differently. For more - information, see [Backward - Compatibility](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations). + S3 Intelligent-Tiering access tier. See [Storage class for automatically + optimizing frequently and infrequently accessed + objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access) + for a list of access tiers in the S3 Intelligent-Tiering storage class. """ @dataclass(kw_only=True) -class ReplicationRuleAndOperator(_SerdeShape): +class TooManyParts(ServiceError, _SerdeShape): """ - A container for specifying rule filters. The filters determine the - subset of objects to which the rule applies. This element is required - only if you specify more than one filter. - - For example: - - - If you specify both a `Prefix` and a `Tag` filter, wrap these filters - in an `And` tag. - - - If you specify a filter based on multiple tags, wrap the `Tag` - elements in an `And` tag. + You have attempted to add more parts than the maximum of 10000 that are + allowed for this object. You can use the CopyObject operation to copy + this object to another and then add more data to the newly copied + object. """ - prefix: str | None = ... + response_metadata: ResponseMetadata = ... """ - An object key name prefix that identifies the subset of objects to which - the rule applies. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - tags: list[Tag] | None = ... - """An array of tags containing key and value pairs.""" @dataclass(kw_only=True) -class ReplicationRuleFilter(_SerdeShape): +class TopicConfiguration(_SerdeShape): """ - A filter that identifies the subset of objects to which the replication - rule applies. A `Filter` must specify exactly one `Prefix`, `Tag`, or an - `And` child element. + A container for specifying the configuration for publication of messages + to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon + S3 detects specified events. """ - prefix: str | None = ... + id: str | None = ... """ - An object key name prefix that identifies the subset of objects to which - the rule applies. - - Warning: - Replacement must be made for object keys containing special characters - (such as carriage returns) when using XML requests. For more - information, see [XML related object key - constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). + An optional unique identifier for configurations in a notification + configuration. If you don't provide one, Amazon S3 will assign an ID. """ - tag: Tag | None = ... + topic_arn: str """ - A container for specifying a tag key and value. - - The rule applies only to objects that have the tag in their tag set. + The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon + S3 publishes a message when it detects events of the specified type. """ - and_: ReplicationRuleAndOperator | None = ... + events: list[str] """ - A container for specifying rule filters. The filters determine the - subset of objects to which the rule applies. This element is required - only if you specify more than one filter. For example: - - - If you specify both a `Prefix` and a `Tag` filter, wrap these filters - in an `And` tag. - - - If you specify a filter based on multiple tags, wrap the `Tag` - elements in an `And` tag. + The Amazon S3 bucket event about which to send notifications. For more + information, see [Supported Event + Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + in the *Amazon S3 User Guide*. + """ + filter: NotificationConfigurationFilter | None = ... + """ + Specifies object key name filtering rules. For information about key + name filtering, see [Configuring event notifications using object key + name + filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) + in the *Amazon S3 User Guide*. """ -class ReplicationRuleStatus(UnknownEnumMixin, StrEnum): - ENABLED = "Enabled" - DISABLED = "Disabled" - -class ReplicationStatus(UnknownEnumMixin, StrEnum): - COMPLETE = "COMPLETE" - PENDING = "PENDING" - FAILED = "FAILED" - REPLICA = "REPLICA" - COMPLETED = "COMPLETED" - -@dataclass(kw_only=True) -class ReplicationTime(_SerdeShape): +class TopicConfigurationDict(TypedDict, total=False): + """Dictionary form of `TopicConfiguration`.""" + + id: str | None """ - A container specifying S3 Replication Time Control (S3 RTC) related - information, including whether S3 RTC is enabled and the time when all - objects and operations on objects must be replicated. Must be specified - together with a `Metrics` block. + An optional unique identifier for configurations in a notification + configuration. If you don't provide one, Amazon S3 will assign an ID. """ - - status: str - """Specifies whether the replication time is enabled.""" - time: ReplicationTimeValue + topic_arn: Required[str] """ - A container specifying the time by which replication should be complete - for all objects and operations on objects. + The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon + S3 publishes a message when it detects events of the specified type. + """ + events: Required[Sequence[str]] + """ + The Amazon S3 bucket event about which to send notifications. For more + information, see [Supported Event + Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + in the *Amazon S3 User Guide*. + """ + filter: NotificationConfigurationFilter | NotificationConfigurationFilterDict | None + """ + Specifies object key name filtering rules. For information about key + name filtering, see [Configuring event notifications using object key + name + filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) + in the *Amazon S3 User Guide*. """ - -class ReplicationTimeStatus(UnknownEnumMixin, StrEnum): - ENABLED = "Enabled" - DISABLED = "Disabled" @dataclass(kw_only=True) -class ReplicationTimeValue(_SerdeShape): +class Transition(_SerdeShape): """ - A container specifying the time value for S3 Replication Time Control - (S3 RTC) and replication metrics `EventThreshold`. + Specifies when an object transitions to a specified storage class. For + more information about Amazon S3 lifecycle configuration rules, see + [Transitioning Objects Using Amazon S3 + Lifecycle](https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) + in the *Amazon S3 User Guide*. """ - minutes: int | None = ... + date: datetime | None = ... """ - Contains an integer specifying time in minutes. - - Valid value: 15 + Indicates when objects are transitioned to the specified storage class. + The date value must be in ISO 8601 format. The time is always midnight + UTC. """ - -class RequestCharged(UnknownEnumMixin, StrEnum): + days: int | None = ... """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. - - Note: - This functionality is not supported for directory buckets. + Indicates the number of days after creation when objects are + transitioned to the specified storage class. The value can be `0` or any + positive integer. Be aware that some storage classes have a minimum + storage duration and that you're charged for transitioning objects + before their minimum storage duration. For more information, see + [Constraints and considerations for + transitions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html#lifecycle-configuration-constraints) + in the *Amazon S3 User Guide*. """ + storage_class: str | None = ... + """The storage class to which you want the object to transition.""" - REQUESTER = "requester" +class TransitionDict(TypedDict, total=False): + """Dictionary form of `Transition`.""" -class RequestPayer(UnknownEnumMixin, StrEnum): + date: datetime | None """ - Confirms that the requester knows that they will be charged for the - request. Bucket owners need not specify this parameter in their - requests. If either the source or destination S3 bucket has Requester - Pays enabled, the requester will pay for the corresponding charges. For - information about downloading objects from Requester Pays buckets, see - [Downloading Objects in Requester Pays - Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + Indicates when objects are transitioned to the specified storage class. + The date value must be in ISO 8601 format. The time is always midnight + UTC. + """ + days: int | None + """ + Indicates the number of days after creation when objects are + transitioned to the specified storage class. The value can be `0` or any + positive integer. Be aware that some storage classes have a minimum + storage duration and that you're charged for transitioning objects + before their minimum storage duration. For more information, see + [Constraints and considerations for + transitions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html#lifecycle-configuration-constraints) in the *Amazon S3 User Guide*. - - Note: - This functionality is not supported for directory buckets. """ + storage_class: str | None + """The storage class to which you want the object to transition.""" - REQUESTER = "requester" +class TransitionDefaultMinimumObjectSize(UnknownEnumMixin, StrEnum): + VARIES_BY_STORAGE_CLASS = "varies_by_storage_class" + ALL_STORAGE_CLASSES_128_K = "all_storage_classes_128K" -@dataclass(kw_only=True) -class RequestPaymentConfiguration(_SerdeShape): - """Container for Payer.""" +class TransitionStorageClass(UnknownEnumMixin, StrEnum): + GLACIER = "GLACIER" + STANDARD_IA = "STANDARD_IA" + ONEZONE_IA = "ONEZONE_IA" + INTELLIGENT_TIERING = "INTELLIGENT_TIERING" + DEEP_ARCHIVE = "DEEP_ARCHIVE" + GLACIER_IR = "GLACIER_IR" - payer: str - """Specifies who pays for the download and request fees.""" +class Type(UnknownEnumMixin, StrEnum): + CANONICAL_USER = "CanonicalUser" + AMAZON_CUSTOMER_BY_EMAIL = "AmazonCustomerByEmail" + GROUP = "Group" @dataclass(kw_only=True) -class RequestProgress(_SerdeShape): - """ - Container for specifying if periodic `QueryProgress` messages should be - sent. - """ +class UnsupportedMediaType(ServiceError, _SerdeShape): + """The annotation payload is not valid UTF-8 encoded text.""" - enabled: bool | None = ... + response_metadata: ResponseMetadata = ... """ - Specifies whether periodic QueryProgress frames should be sent. Valid - values: TRUE, FALSE. Default value: FALSE. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) -class RestoreObjectInput(_SerdeShape): - """Dataclass for RestoreObjectInput structure.""" +class UpdateBucketMetadataAnnotationTableConfigurationInput(_SerdeShape): + """ + Dataclass for UpdateBucketMetadataAnnotationTableConfigurationInput + structure. + """ bucket: str | None = ... - """ - The bucket name containing the object to restore. + """The name of the bucket whose annotation table configuration to update.""" + content_md5: str | None = ... + """Base64-encoded MD5 digest of the message body.""" + checksum_algorithm: str | None = ... + """Checksum algorithm for the request payload.""" + annotation_table_configuration: AnnotationTableConfigurationUpdates | None = ... + """The annotation table configuration updates to apply.""" + expected_bucket_owner: str | None = ... + """The account ID of the expected bucket owner.""" - **Access points** - When you use this action with an access point for - general purpose buckets, you must provide the alias of the access point - in place of the bucket name or specify the access point ARN. When you - use this action with an access point for directory buckets, you must - provide the access point name in place of the bucket name. When using - the access point ARN, you must direct requests to the access point - hostname. The access point hostname takes the form - *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. - When using this action with an access point through the Amazon Web - Services SDKs, you provide the access point ARN in place of the bucket - name. For more information about access point ARNs, see [Using access - points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - in the *Amazon S3 User Guide*. +class UpdateBucketMetadataAnnotationTableConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateBucketMetadataAnnotationTableConfigurationInput`.""" - **S3 on Outposts** - When you use this action with S3 on Outposts, you - must direct requests to the S3 on Outposts hostname. The S3 on Outposts - hostname takes the form - ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. - When you use this action with S3 on Outposts, the destination bucket - must be the Outposts access point ARN or the access point alias. For - more information about S3 on Outposts, see [What is S3 on - Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) - in the *Amazon S3 User Guide*. + bucket: Required[str] + """The name of the bucket whose annotation table configuration to update.""" + content_md5: str | None + """Base64-encoded MD5 digest of the message body.""" + checksum_algorithm: str | None + """Checksum algorithm for the request payload.""" + annotation_table_configuration: Required[ + AnnotationTableConfigurationUpdates | AnnotationTableConfigurationUpdatesDict + ] + """The annotation table configuration updates to apply.""" + expected_bucket_owner: str | None + """The account ID of the expected bucket owner.""" + +@dataclass(kw_only=True) +class UpdateBucketMetadataAnnotationTableConfigurationOutput(_SerdeShape): """ - key: str | None = ... - """Object key for which the action was initiated.""" - version_id: str | None = ... - """VersionId used to reference a specific version of the object.""" - restore_request: RestoreRequest | None = ... - """Container for restore job parameters.""" - request_payer: str | None = ... + Dataclass for UpdateBucketMetadataAnnotationTableConfigurationOutput + structure. """ - Confirms that the requester knows that they will be charged for the - request. Bucket owners need not specify this parameter in their - requests. If either the source or destination S3 bucket has Requester - Pays enabled, the requester will pay for the corresponding charges. For - information about downloading objects from Requester Pays buckets, see - [Downloading Objects in Requester Pays - Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) - in the *Amazon S3 User Guide*. - Note: - This functionality is not supported for directory buckets. + response_metadata: ResponseMetadata = ... """ - checksum_algorithm: str | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Indicates the algorithm used to create the checksum for the object when - you use the SDK. This header will not provide any additional - functionality if you don't use the SDK. When you send this header, - there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header - sent. Otherwise, Amazon S3 fails the request with the HTTP status code - `400 Bad Request`. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. - If you provide an individual checksum, Amazon S3 ignores any provided - `ChecksumAlgorithm` parameter. +@dataclass(kw_only=True) +class UpdateBucketMetadataInventoryTableConfigurationInput(_SerdeShape): + """ + Dataclass for UpdateBucketMetadataInventoryTableConfigurationInput + structure. + """ + + bucket: str | None = ... """ + The general purpose bucket that corresponds to the metadata + configuration that you want to enable or disable an inventory table for. + """ + content_md5: str | None = ... + """The `Content-MD5` header for the inventory table configuration.""" + checksum_algorithm: str | None = ... + """The checksum algorithm to use with your inventory table configuration.""" + inventory_table_configuration: InventoryTableConfigurationUpdates | None = ... + """The contents of your inventory table configuration.""" expected_bucket_owner: str | None = ... """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + The expected owner of the general purpose bucket that corresponds to the + metadata table configuration that you want to enable or disable an + inventory table for. """ -@dataclass(kw_only=True) -class RestoreObjectOutput(_SerdeShape): - """Dataclass for RestoreObjectOutput structure.""" +class UpdateBucketMetadataInventoryTableConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateBucketMetadataInventoryTableConfigurationInput`.""" - request_charged: str | None = ... + bucket: Required[str] """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. - - Note: - This functionality is not supported for directory buckets. + The general purpose bucket that corresponds to the metadata + configuration that you want to enable or disable an inventory table for. + """ + content_md5: str | None + """The `Content-MD5` header for the inventory table configuration.""" + checksum_algorithm: str | None + """The checksum algorithm to use with your inventory table configuration.""" + inventory_table_configuration: Required[ + InventoryTableConfigurationUpdates | InventoryTableConfigurationUpdatesDict + ] + """The contents of your inventory table configuration.""" + expected_bucket_owner: str | None """ - restore_output_path: str | None = ... + The expected owner of the general purpose bucket that corresponds to the + metadata table configuration that you want to enable or disable an + inventory table for. """ - Indicates the path in the provided S3 output location where Select - results will be restored to. + +@dataclass(kw_only=True) +class UpdateBucketMetadataInventoryTableConfigurationOutput(_SerdeShape): + """ + Dataclass for UpdateBucketMetadataInventoryTableConfigurationOutput + structure. """ + response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -6502,1189 +12979,1326 @@ class RestoreObjectOutput(_SerdeShape): """ @dataclass(kw_only=True) -class RestoreRequest(_SerdeShape): - """Container for restore job parameters.""" - - days: int | None = ... +class UpdateBucketMetadataJournalTableConfigurationInput(_SerdeShape): + """ + Dataclass for UpdateBucketMetadataJournalTableConfigurationInput + structure. """ - Lifetime of the active copy in days. Do not use with restores that - specify `OutputLocation`. - The Days element is required for regular restores, and must not be - provided for select requests. + bucket: str | None = ... """ - glacier_job_parameters: GlacierJobParameters | None = ... + The general purpose bucket that corresponds to the metadata + configuration that you want to enable or disable journal table record + expiration for. """ - S3 Glacier related parameters pertaining to this job. Do not use with - restores that specify `OutputLocation`. + content_md5: str | None = ... + """The `Content-MD5` header for the journal table configuration.""" + checksum_algorithm: str | None = ... + """The checksum algorithm to use with your journal table configuration.""" + journal_table_configuration: JournalTableConfigurationUpdates | None = ... + """The contents of your journal table configuration.""" + expected_bucket_owner: str | None = ... """ - type: str | None = ... + The expected owner of the general purpose bucket that corresponds to the + metadata table configuration that you want to enable or disable journal + table record expiration for. """ - Warning: - Amazon S3 Select is no longer available to new customers. Existing - customers of Amazon S3 Select can continue to use the feature as usual. - [Learn - more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) - Type of restore request. +class UpdateBucketMetadataJournalTableConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `UpdateBucketMetadataJournalTableConfigurationInput`.""" + + bucket: Required[str] """ - tier: str | None = ... - """Retrieval tier at which the restore will be processed.""" - description: str | None = ... - """The optional description for the job.""" - select_parameters: SelectParameters | None = ... + The general purpose bucket that corresponds to the metadata + configuration that you want to enable or disable journal table record + expiration for. """ - Warning: - Amazon S3 Select is no longer available to new customers. Existing - customers of Amazon S3 Select can continue to use the feature as usual. - [Learn - more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) - - Describes the parameters for Select job types. + content_md5: str | None + """The `Content-MD5` header for the journal table configuration.""" + checksum_algorithm: str | None + """The checksum algorithm to use with your journal table configuration.""" + journal_table_configuration: Required[ + JournalTableConfigurationUpdates | JournalTableConfigurationUpdatesDict + ] + """The contents of your journal table configuration.""" + expected_bucket_owner: str | None + """ + The expected owner of the general purpose bucket that corresponds to the + metadata table configuration that you want to enable or disable journal + table record expiration for. """ - output_location: OutputLocation | None = ... - """Describes the location where the restore job's output is stored.""" - -class RestoreRequestType(UnknownEnumMixin, StrEnum): - SELECT = "SELECT" @dataclass(kw_only=True) -class RestoreStatus(_SerdeShape): +class UpdateBucketMetadataJournalTableConfigurationOutput(_SerdeShape): """ - Specifies the restoration status of an object. Objects in certain - storage classes must be restored before they can be retrieved. For more - information about these storage classes and how to work with archived - objects, see [Working with archived - objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/archived-objects.html) - in the *Amazon S3 User Guide*. - - Note: - This functionality is not supported for directory buckets. Directory - buckets only support `EXPRESS_ONEZONE` (the S3 Express One Zone storage - class) in Availability Zones and `ONEZONE_IA` (the S3 One - Zone-Infrequent Access storage class) in Dedicated Local Zones. + Dataclass for UpdateBucketMetadataJournalTableConfigurationOutput + structure. """ - is_restore_in_progress: bool | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Specifies whether the object is currently being restored. If the object - restoration is in progress, the header returns the value `TRUE`. For - example: - - `x-amz-optional-object-attributes: IsRestoreInProgress="true"` - If the object restoration has completed, the header returns the value - `FALSE`. For example: +@dataclass(kw_only=True) +class UpdateObjectEncryptionInput(_SerdeShape): + """Dataclass for UpdateObjectEncryptionInput structure.""" - `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` + bucket: str | None = ... + """ + The name of the general purpose bucket that contains the specified + object key name. - If the object hasn't been restored, there is no header response. + When you use this operation with an access point attached to a general + purpose bucket, you must either provide the alias of the access point in + place of the bucket name or you must specify the access point Amazon + Resource Name (ARN). When using the access point ARN, you must direct + requests to the access point hostname. The access point hostname takes + the form + ` `*`AccessPointName`*`-`*`AccountId`*`.s3-accesspoint.`*`Region`*`.amazonaws.com`. + When using this operation with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Referencing + access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-naming.html) + in the *Amazon S3 User Guide*. """ - restore_expiry_date: datetime | None = ... + key: str | None = ... """ - Indicates when the restored copy will expire. This value is populated - only if the object has already been restored. For example: - - `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` + The key name of the object that you want to update the server-side + encryption type for. """ - -@dataclass(kw_only=True) -class RoutingRule(_SerdeShape): + version_id: str | None = ... """ - Specifies the redirect behavior and when a redirect is applied. For more - information about routing rules, see [Configuring advanced conditional - redirects](https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects) - in the *Amazon S3 User Guide*. + The version ID of the object that you want to update the server-side + encryption type for. """ + object_encryption: ObjectEncryption | None = ... + """ + The updated server-side encryption type for this object. The + `UpdateObjectEncryption` operation supports the SSE-S3 and SSE-KMS + encryption types. - condition: Condition | None = ... + Valid Values: `SSES3` | `SSEKMS` """ - A container for describing a condition that must be met for the - specified redirect to apply. For example, 1. If request is for pages in - the `/docs` folder, redirect to the `/documents` folder. 2. If request - results in HTTP error 4xx, redirect request to another host where you - might process the error. + request_payer: str | None = ... """ - redirect: Redirect + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. """ - Container for redirect information. You can redirect requests to another - host, to another page, or with another protocol. In the event of an - error, you can specify a different error code to return. + expected_bucket_owner: str | None = ... """ - -@dataclass(kw_only=True) -class S3KeyFilter(_SerdeShape): - """A container for object key name prefix and suffix filtering rules.""" - - filter_rules: list[FilterRule] | None = ... + The account ID of the expected bucket owner. If the account ID that you + provide doesn't match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). """ - A list of containers for the key-value pair that defines the criteria - for the filter rule. + content_md5: str | None = ... """ - -@dataclass(kw_only=True) -class S3Location(_SerdeShape): + The MD5 hash for the request body. For requests made using the Amazon + Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, + this field is calculated automatically. """ - Describes an Amazon S3 location that will receive the results of the - restore request. + checksum_algorithm: str | None = ... """ + Indicates the algorithm used to create the checksum for the object when + you use an Amazon Web Services SDK. This header doesn't provide any + additional functionality if you don't use the SDK. When you send this + header, there must be a corresponding `x-amz-checksum` or + `x-amz-trailer` header sent. Otherwise, Amazon S3 fails the request with + the HTTP status code `400 Bad Request`. For more information, see + [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. - bucket_name: str - """The name of the bucket where the restore results will be placed.""" - prefix: str - """The prefix that is prepended to the restore results for this request.""" - encryption: Encryption | None = ... - """Contains the type of server-side encryption used.""" - canned_acl: str | None = ... - """The canned ACL to apply to the restore results.""" - access_control_list: list[Grant] | None = ... - """A list of grants that control access to the staged results.""" - tagging: Tagging | None = ... - """The tag-set that is applied to the restore results.""" - user_metadata: list[MetadataEntry] | None = ... - """A list of metadata to store with the restore results in S3.""" - storage_class: str | None = ... - """The class of storage used to store the restore results.""" + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. + """ -class S3TablesBucketType(UnknownEnumMixin, StrEnum): - AWS = "aws" - CUSTOMER = "customer" +class UpdateObjectEncryptionInputDict(TypedDict, total=False): + """Dictionary form of `UpdateObjectEncryptionInput`.""" -@dataclass(kw_only=True) -class S3TablesDestination(_SerdeShape): + bucket: Required[str] """ - The destination information for a V1 S3 Metadata configuration. The - destination table bucket must be in the same Region and Amazon Web - Services account as the general purpose bucket. The specified metadata - table name must be unique within the `aws_s3_metadata` namespace in the - destination table bucket. + The name of the general purpose bucket that contains the specified + object key name. - Note: - If you created your S3 Metadata configuration before July 15, 2025, we - recommend that you delete and re-create your configuration by using - [CreateBucketMetadataConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html) - so that you can expire journal table records and create a live inventory - table. + When you use this operation with an access point attached to a general + purpose bucket, you must either provide the alias of the access point in + place of the bucket name or you must specify the access point Amazon + Resource Name (ARN). When using the access point ARN, you must direct + requests to the access point hostname. The access point hostname takes + the form + ` `*`AccessPointName`*`-`*`AccountId`*`.s3-accesspoint.`*`Region`*`.amazonaws.com`. + When using this operation with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Referencing + access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-naming.html) + in the *Amazon S3 User Guide*. """ - - table_bucket_arn: str + key: Required[str] """ - The Amazon Resource Name (ARN) for the table bucket that's specified as - the destination in the metadata table configuration. The destination - table bucket must be in the same Region and Amazon Web Services account - as the general purpose bucket. + The key name of the object that you want to update the server-side + encryption type for. """ - table_name: str + version_id: str | None """ - The name for the metadata table in your metadata table configuration. - The specified metadata table name must be unique within the - `aws_s3_metadata` namespace in the destination table bucket. + The version ID of the object that you want to update the server-side + encryption type for. """ - -@dataclass(kw_only=True) -class S3TablesDestinationResult(_SerdeShape): + object_encryption: Required[ObjectEncryption | ObjectEncryptionDict] """ - The destination information for a V1 S3 Metadata configuration. The - destination table bucket must be in the same Region and Amazon Web - Services account as the general purpose bucket. The specified metadata - table name must be unique within the `aws_s3_metadata` namespace in the - destination table bucket. + The updated server-side encryption type for this object. The + `UpdateObjectEncryption` operation supports the SSE-S3 and SSE-KMS + encryption types. - Note: - If you created your S3 Metadata configuration before July 15, 2025, we - recommend that you delete and re-create your configuration by using - [CreateBucketMetadataConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html) - so that you can expire journal table records and create a live inventory - table. + Valid Values: `SSES3` | `SSEKMS` """ - - table_bucket_arn: str + request_payer: str | None """ - The Amazon Resource Name (ARN) for the table bucket that's specified as - the destination in the metadata table configuration. The destination - table bucket must be in the same Region and Amazon Web Services account - as the general purpose bucket. + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. """ - table_name: str + expected_bucket_owner: str | None """ - The name for the metadata table in your metadata table configuration. - The specified metadata table name must be unique within the - `aws_s3_metadata` namespace in the destination table bucket. + The account ID of the expected bucket owner. If the account ID that you + provide doesn't match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). """ - table_arn: str + content_md5: str | None """ - The Amazon Resource Name (ARN) for the metadata table in the metadata - table configuration. The specified metadata table name must be unique - within the `aws_s3_metadata` namespace in the destination table bucket. + The MD5 hash for the request body. For requests made using the Amazon + Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, + this field is calculated automatically. """ - table_namespace: str + checksum_algorithm: str | None """ - The table bucket namespace for the metadata table in your metadata table - configuration. This value is always `aws_s3_metadata`. + Indicates the algorithm used to create the checksum for the object when + you use an Amazon Web Services SDK. This header doesn't provide any + additional functionality if you don't use the SDK. When you send this + header, there must be a corresponding `x-amz-checksum` or + `x-amz-trailer` header sent. Otherwise, Amazon S3 fails the request with + the HTTP status code `400 Bad Request`. For more information, see + [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. """ @dataclass(kw_only=True) -class ScanRange(_SerdeShape): - """ - Specifies the byte range of the object to get the records from. A record - is processed when its first byte is contained by the range. This - parameter is optional, but when specified, it must not be empty. See RFC - 2616, Section 14.35.1 about how to specify the start and end of the - range. +class UpdateObjectEncryptionOutput(_SerdeShape): + """Dataclass for UpdateObjectEncryptionOutput structure.""" + + request_charged: str | None = ... """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. - start: int | None = ... + Note: + This functionality is not supported for directory buckets. """ - Specifies the start of the byte range. This parameter is optional. Valid - values: non-negative integers. The default value is 0. If only `start` - is supplied, it means scan from that point to the end of the file. For - example, - ``{=html}``{=html}`50```{=html}``{=html} - means scan from byte 50 until the end of the file. + response_metadata: ResponseMetadata = ... """ - end: int | None = ... + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ - Specifies the end of the byte range. This parameter is optional. Valid - values: non-negative integers. The default value is one less than the - size of the object being queried. If only the End parameter is supplied, - it is interpreted to mean scan the last N bytes of the file. For - example, - ``{=html}``{=html}`50```{=html}``{=html} - means scan the last 50 bytes. + +@dataclass(kw_only=True) +class UploadPartCopyInput(_SerdeShape): + """Dataclass for UploadPartCopyInput structure.""" + + bucket: str | None = ... """ + The bucket name. -@dataclass -class SelectObjectContentEventStreamRecords(_SerdeShape): - """The Records Event.""" + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. - value: RecordsEvent + Note: + Copying objects across different Amazon Web Services Regions isn't + supported when the source or destination bucket is in Amazon Web + Services Local Zones. The source and destination buckets must have the + same parent Amazon Web Services Region. Otherwise, you get an HTTP + `400 Bad Request` error with the error code `InvalidRequest`. -@dataclass -class SelectObjectContentEventStreamStats(_SerdeShape): - """The Stats Event.""" + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. - value: StatsEvent + Note: + Object Lambda access points are not supported by directory buckets. -@dataclass -class SelectObjectContentEventStreamProgress(_SerdeShape): - """The Progress Event.""" + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + copy_source: str | None = ... + """ + Specifies the source object for the copy operation. You specify the + value in one of two formats, depending on whether you want to access the + source object through an [access + point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html): - value: ProgressEvent + - For objects not accessed through an access point, specify the name of + the source bucket and key of the source object, separated by a slash + (/). For example, to copy the object `reports/january.pdf` from the + bucket `awsexamplebucket`, use `awsexamplebucket/reports/january.pdf`. + The value must be URL-encoded. -@dataclass -class SelectObjectContentEventStreamCont(_SerdeShape): - """The Continuation Event.""" + - For objects accessed through access points, specify the Amazon + Resource Name (ARN) of the object as accessed through the access + point, in the format + `arn:aws:s3:```{=html}`:```{=html}`:accesspoint/```{=html}`/object/```{=html}. + For example, to copy the object `reports/january.pdf` through access + point `my-access-point` owned by account `123456789012` in Region + `us-west-2`, use the URL encoding of + `arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf`. + The value must be URL encoded. - value: ContinuationEvent + Note: + - Amazon S3 supports copy operations using Access points only when the + source and destination buckets are in the same Amazon Web Services + Region. + + - Access points are not supported by directory buckets. + + Alternatively, for objects accessed through Amazon S3 on Outposts, + specify the ARN of the object as accessed in the format + `arn:aws:s3-outposts:```{=html}`:```{=html}`:outpost/```{=html}`/object/```{=html}. + For example, to copy the object `reports/january.pdf` through outpost + `my-outpost` owned by account `123456789012` in Region `us-west-2`, + use the URL encoding of + `arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf`. + The value must be URL-encoded. + + If your bucket has versioning enabled, you could have multiple versions + of the same object. By default, `x-amz-copy-source` identifies the + current version of the source object to copy. To copy a specific version + of the source object to copy, append `?versionId=```{=html} + to the `x-amz-copy-source` request header (for example, + `x-amz-copy-source: /awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893`). + + If the current version is a delete marker and you don't specify a + versionId in the `x-amz-copy-source` request header, Amazon S3 returns a + `404 Not Found` error, because the object does not exist. If you specify + versionId in the `x-amz-copy-source` and the versionId is a delete + marker, Amazon S3 returns an HTTP `400 Bad Request` error, because you + are not allowed to specify a delete marker as a version for the + `x-amz-copy-source`. + + Note: + **Directory buckets** - S3 Versioning isn't enabled and supported for + directory buckets. + """ + copy_source_if_match: str | None = ... + """ + Copies the object if its entity tag (ETag) matches the specified tag. + + If both of the `x-amz-copy-source-if-match` and + `x-amz-copy-source-if-unmodified-since` headers are present in the + request as follows: + + `x-amz-copy-source-if-match` condition evaluates to `true`, and; + + `x-amz-copy-source-if-unmodified-since` condition evaluates to `false`; + + Amazon S3 returns `200 OK` and copies the data. + """ + copy_source_if_modified_since: datetime | None = ... + """ + Copies the object if it has been modified since the specified time. + + If both of the `x-amz-copy-source-if-none-match` and + `x-amz-copy-source-if-modified-since` headers are present in the request + as follows: -@dataclass -class SelectObjectContentEventStreamEnd(_SerdeShape): - """The End Event.""" + `x-amz-copy-source-if-none-match` condition evaluates to `false`, and; - value: EndEvent + `x-amz-copy-source-if-modified-since` condition evaluates to `true`; -@dataclass -class SelectObjectContentEventStreamUnknown(_SerdeShape): + Amazon S3 returns `412 Precondition Failed` response code. """ - Represents an unknown variant. If you receive this value, you will need - to update your library to receive the parsed value. This value may not - be deliberately sent. + copy_source_if_none_match: str | None = ... """ + Copies the object if its entity tag (ETag) is different than the + specified ETag. - tag: str + If both of the `x-amz-copy-source-if-none-match` and + `x-amz-copy-source-if-modified-since` headers are present in the request + as follows: -SelectObjectContentEventStream = Union[ - SelectObjectContentEventStreamRecords - | SelectObjectContentEventStreamStats - | SelectObjectContentEventStreamProgress - | SelectObjectContentEventStreamCont - | SelectObjectContentEventStreamEnd - | SelectObjectContentEventStreamUnknown -] -"""The container for selecting objects from a content event stream.""" + `x-amz-copy-source-if-none-match` condition evaluates to `false`, and; -class _SelectObjectContentEventStreamDeserializer: - def deserialize( - self, deserializer: ShapeDeserializer - ) -> SelectObjectContentEventStream: ... + `x-amz-copy-source-if-modified-since` condition evaluates to `true`; -@dataclass(kw_only=True) -class SelectObjectContentInput(_SerdeShape): + Amazon S3 returns `412 Precondition Failed` response code. """ - Note: - Learn Amazon S3 Select is no longer available to new customers. Existing - customers of Amazon S3 Select can continue to use the feature as usual. - [Learn - more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) - - Request to filter the contents of an Amazon S3 object based on a simple - Structured Query Language (SQL) statement. In the request, along with - the SQL expression, you must specify a data serialization format (JSON - or CSV) of the object. Amazon S3 uses this to parse object data into - records. It returns only records that match the specified SQL - expression. You must also specify the data serialization format for the - response. For more information, see [S3Select API - Documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html). + copy_source_if_unmodified_since: datetime | None = ... """ + Copies the object if it hasn't been modified since the specified time. - bucket: str | None = ... - """The S3 bucket.""" - key: str | None = ... - """The object key.""" - sse_customer_algorithm: str | None = ... - """ - The server-side encryption (SSE) algorithm used to encrypt the object. - This parameter is needed only when the object was created using a - checksum algorithm. For more information, see [Protecting data using - SSE-C - keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + If both of the `x-amz-copy-source-if-match` and + `x-amz-copy-source-if-unmodified-since` headers are present in the + request as follows: + + `x-amz-copy-source-if-match` condition evaluates to `true`, and; + + `x-amz-copy-source-if-unmodified-since` condition evaluates to `false`; + + Amazon S3 returns `200 OK` and copies the data. """ - sse_customer_key: str | None = ... + copy_source_range: str | None = ... """ - The server-side encryption (SSE) customer managed key. This parameter is - needed only when the object was created using a checksum algorithm. For - more information, see [Protecting data using SSE-C - keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + The range of bytes to copy from the source object. The range value must + use the form bytes=first-last, where the first and last are the + zero-based byte offsets to copy. For example, bytes=0-9 indicates that + you want to copy the first 10 bytes of the source. You can copy a range + only if the source object is greater than 5 MB. """ - sse_customer_key_md5: str | None = ... + key: str | None = ... + """Object key for which the multipart upload was initiated.""" + part_number: int | None = ... """ - The MD5 server-side encryption (SSE) customer managed key. This - parameter is needed only when the object was created using a checksum - algorithm. For more information, see [Protecting data using SSE-C - keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + Part number of part being copied. This is a positive integer between 1 + and 10,000. """ - expression: str | None = ... - """The expression that is used to query the object.""" - expression_type: str | None = ... - """The type of the provided expression (for example, SQL).""" - request_progress: RequestProgress | None = ... - """Specifies if periodic request progress information should be enabled.""" - input_serialization: InputSerialization | None = ... - """Describes the format of the data in the object that is being queried.""" - output_serialization: OutputSerialization | None = ... + upload_id: str | None = ... + """Upload ID identifying the multipart upload whose part is being copied.""" + sse_customer_algorithm: str | None = ... """ - Describes the format of the data that you want Amazon S3 to return in - response. + Specifies the algorithm to use when encrypting the object (for example, + AES256). + + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - scan_range: ScanRange | None = ... + sse_customer_key: str | None = ... """ - Specifies the byte range of the object to get the records from. A record - is processed when its first byte is contained by the range. This - parameter is optional, but when specified, it must not be empty. See RFC - 2616, Section 14.35.1 about how to specify the start and end of the - range. - - `ScanRange`may be used in the following ways: - - - ``{=html}``{=html}`50```{=html}``{=html}`100```{=html}``{=html} - - process only the records starting between the bytes 50 and 100 - (inclusive, counting from zero) - - - ``{=html}``{=html}`50```{=html}``{=html} - - process only the records starting after the byte 50 + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. This must be + the same encryption key specified in the initiate multipart upload + request. - - ``{=html}``{=html}`50```{=html}``{=html} - - process only the records within the last 50 bytes of the file. - """ - expected_bucket_owner: str | None = ... + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + sse_customer_key_md5: str | None = ... """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. -@dataclass(kw_only=True) -class SelectObjectContentOutput(_SerdeShape): - """Dataclass for SelectObjectContentOutput structure.""" - - response_metadata: ResponseMetadata = ... + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + copy_source_sse_customer_algorithm: str | None = ... """ + Specifies the algorithm to use when decrypting the source object (for + example, `AES256`). -@dataclass(kw_only=True) -class SelectParameters(_SerdeShape): + Note: + This functionality is not supported when the source object is in a + directory bucket. """ - Warning: - Amazon S3 Select is no longer available to new customers. Existing - customers of Amazon S3 Select can continue to use the feature as usual. - [Learn - more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) - - Describes the parameters for Select job types. - - Learn [How to optimize querying your data in Amazon - S3](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) - using [Amazon - Athena](https://docs.aws.amazon.com/athena/latest/ug/what-is.html), [S3 - Object - Lambda](https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html), - or client-side filtering. + copy_source_sse_customer_key: str | None = ... """ + Specifies the customer-provided encryption key for Amazon S3 to use to + decrypt the source object. The encryption key provided in this header + must be one that was used when the source object was created. - input_serialization: InputSerialization - """Describes the serialization format of the object.""" - expression_type: str - """The type of the provided expression (for example, SQL).""" - expression: str + Note: + This functionality is not supported when the source object is in a + directory bucket. """ - Warning: - Amazon S3 Select is no longer available to new customers. Existing - customers of Amazon S3 Select can continue to use the feature as usual. - [Learn - more](http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/) - - The expression that is used to query the object. + copy_source_sse_customer_key_md5: str | None = ... """ - output_serialization: OutputSerialization - """Describes how the results of the Select job are serialized.""" - -class ServerSideEncryption(UnknownEnumMixin, StrEnum): - AES256 = "AES256" - AWS_FSX = "aws:fsx" - AWS_BACKUP = "aws:backup" - AWS_KMS = "aws:kms" - AWS_KMS_DSSE = "aws:kms:dsse" + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. -@dataclass(kw_only=True) -class ServerSideEncryptionByDefault(_SerdeShape): + Note: + This functionality is not supported when the source object is in a + directory bucket. """ - Describes the default server-side encryption to apply to new objects in - the bucket. If a PUT Object request doesn't specify any server-side - encryption, this default encryption will be applied. For more - information, see - [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html). + request_payer: str | None = ... + """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. Note: - - **General purpose buckets** - If you don't specify a customer managed - key at configuration, Amazon S3 automatically creates an Amazon Web - Services KMS key (`aws/s3`) in your Amazon Web Services account the - first time that you add an object encrypted with SSE-KMS to a bucket. - By default, Amazon S3 uses this KMS key for SSE-KMS. + This functionality is not supported for directory buckets. + """ + expected_bucket_owner: str | None = ... + """ + The account ID of the expected destination bucket owner. If the account + ID that you provide does not match the actual owner of the destination + bucket, the request fails with the HTTP status code `403 Forbidden` + (access denied). + """ + expected_source_bucket_owner: str | None = ... + """ + The account ID of the expected source bucket owner. If the account ID + that you provide does not match the actual owner of the source bucket, + the request fails with the HTTP status code `403 Forbidden` (access + denied). + """ - - **Directory buckets** - Your SSE-KMS configuration can only support 1 - [customer managed - key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) - per directory bucket's lifetime. The [Amazon Web Services managed - key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) - (`aws/s3`) isn't supported. +class UploadPartCopyInputDict(TypedDict, total=False): + """Dictionary form of `UploadPartCopyInput`.""" - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: SSE-S3 and SSE-KMS. + bucket: Required[str] """ + The bucket name. - sse_algorithm: str - """ - Server-side encryption algorithm to use for the default encryption. + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. Note: - For directory buckets, there are only two supported values for - server-side encryption: `AES256` and `aws:kms`. + Copying objects across different Amazon Web Services Regions isn't + supported when the source or destination bucket is in Amazon Web + Services Local Zones. The source and destination buckets must have the + same parent Amazon Web Services Region. Otherwise, you get an HTTP + `400 Bad Request` error with the error code `InvalidRequest`. + + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. + + Note: + Object Lambda access points are not supported by directory buckets. + + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. """ - kms_master_key_id: str | None = ... + copy_source: Required[str] """ - Amazon Web Services Key Management Service (KMS) customer managed key ID - to use for the default encryption. + Specifies the source object for the copy operation. You specify the + value in one of two formats, depending on whether you want to access the + source object through an [access + point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html): - Note: - - **General purpose buckets** - This parameter is allowed if and only if - `SSEAlgorithm` is set to `aws:kms` or `aws:kms:dsse`. + - For objects not accessed through an access point, specify the name of + the source bucket and key of the source object, separated by a slash + (/). For example, to copy the object `reports/january.pdf` from the + bucket `awsexamplebucket`, use `awsexamplebucket/reports/january.pdf`. + The value must be URL-encoded. - - **Directory buckets** - This parameter is allowed if and only if - `SSEAlgorithm` is set to `aws:kms`. + - For objects accessed through access points, specify the Amazon + Resource Name (ARN) of the object as accessed through the access + point, in the format + `arn:aws:s3:```{=html}`:```{=html}`:accesspoint/```{=html}`/object/```{=html}. + For example, to copy the object `reports/january.pdf` through access + point `my-access-point` owned by account `123456789012` in Region + `us-west-2`, use the URL encoding of + `arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf`. + The value must be URL encoded. - You can specify the key ID, key alias, or the Amazon Resource Name (ARN) - of the KMS key. + Note: + - Amazon S3 supports copy operations using Access points only when the + source and destination buckets are in the same Amazon Web Services + Region. - - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab` + - Access points are not supported by directory buckets. - - Key ARN: - `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` + Alternatively, for objects accessed through Amazon S3 on Outposts, + specify the ARN of the object as accessed in the format + `arn:aws:s3-outposts:```{=html}`:```{=html}`:outpost/```{=html}`/object/```{=html}. + For example, to copy the object `reports/january.pdf` through outpost + `my-outpost` owned by account `123456789012` in Region `us-west-2`, + use the URL encoding of + `arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf`. + The value must be URL-encoded. - - Key Alias: `alias/alias-name` + If your bucket has versioning enabled, you could have multiple versions + of the same object. By default, `x-amz-copy-source` identifies the + current version of the source object to copy. To copy a specific version + of the source object to copy, append `?versionId=```{=html} + to the `x-amz-copy-source` request header (for example, + `x-amz-copy-source: /awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893`). - If you are using encryption with cross-account or Amazon Web Services - service operations, you must use a fully qualified KMS key ARN. For more - information, see [Using encryption for cross-account - operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy). + If the current version is a delete marker and you don't specify a + versionId in the `x-amz-copy-source` request header, Amazon S3 returns a + `404 Not Found` error, because the object does not exist. If you specify + versionId in the `x-amz-copy-source` and the versionId is a delete + marker, Amazon S3 returns an HTTP `400 Bad Request` error, because you + are not allowed to specify a delete marker as a version for the + `x-amz-copy-source`. Note: - - **General purpose buckets** - If you're specifying a customer managed - KMS key, we recommend using a fully qualified KMS key ARN. If you use - a KMS key alias instead, then KMS resolves the key within the - requester's account. This behavior can result in data that's - encrypted with a KMS key that belongs to the requester, and not the - bucket owner. Also, if you use a key ID, you can run into a - LogDestination undeliverable error when creating a VPC flow log. - - - **Directory buckets** - When you specify an [KMS customer managed - key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) - for encryption in your directory bucket, only use the key ID or key - ARN. The key alias format of the KMS key isn't supported. - Warning: - Amazon S3 only supports symmetric encryption KMS keys. For more - information, see [Asymmetric keys in Amazon Web Services - KMS](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) - in the *Amazon Web Services Key Management Service Developer Guide*. + **Directory buckets** - S3 Versioning isn't enabled and supported for + directory buckets. """ + copy_source_if_match: str | None + """ + Copies the object if its entity tag (ETag) matches the specified tag. -@dataclass(kw_only=True) -class ServerSideEncryptionConfiguration(_SerdeShape): - """Specifies the default server-side-encryption configuration.""" + If both of the `x-amz-copy-source-if-match` and + `x-amz-copy-source-if-unmodified-since` headers are present in the + request as follows: - rules: list[ServerSideEncryptionRule] + `x-amz-copy-source-if-match` condition evaluates to `true`, and; + + `x-amz-copy-source-if-unmodified-since` condition evaluates to `false`; + + Amazon S3 returns `200 OK` and copies the data. """ - Container for information about a particular server-side encryption - configuration rule. + copy_source_if_modified_since: datetime | None """ + Copies the object if it has been modified since the specified time. -@dataclass(kw_only=True) -class ServerSideEncryptionRule(_SerdeShape): - """ - Specifies the default server-side encryption configuration. + If both of the `x-amz-copy-source-if-none-match` and + `x-amz-copy-source-if-modified-since` headers are present in the request + as follows: - Note: - - **General purpose buckets** - If you're specifying a customer managed - KMS key, we recommend using a fully qualified KMS key ARN. If you use - a KMS key alias instead, then KMS resolves the key within the - requester's account. This behavior can result in data that's - encrypted with a KMS key that belongs to the requester, and not the - bucket owner. + `x-amz-copy-source-if-none-match` condition evaluates to `false`, and; - - **Directory buckets** - When you specify an [KMS customer managed - key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) - for encryption in your directory bucket, only use the key ID or key - ARN. The key alias format of the KMS key isn't supported. - """ + `x-amz-copy-source-if-modified-since` condition evaluates to `true`; - apply_server_side_encryption_by_default: ServerSideEncryptionByDefault | None = ... - """ - Specifies the default server-side encryption to apply to new objects in - the bucket. If a PUT Object request doesn't specify any server-side - encryption, this default encryption will be applied. + Amazon S3 returns `412 Precondition Failed` response code. """ - bucket_key_enabled: bool | None = ... + copy_source_if_none_match: str | None """ - Specifies whether Amazon S3 should use an S3 Bucket Key with server-side - encryption using KMS (SSE-KMS) for new objects in the bucket. Existing - objects are not affected. Setting the `BucketKeyEnabled` element to - `true` causes Amazon S3 to use an S3 Bucket Key. + Copies the object if its entity tag (ETag) is different than the + specified ETag. - Note: - - **General purpose buckets** - By default, S3 Bucket Key is not - enabled. For more information, see [Amazon S3 Bucket - Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) - in the *Amazon S3 User Guide*. + If both of the `x-amz-copy-source-if-none-match` and + `x-amz-copy-source-if-modified-since` headers are present in the request + as follows: - - **Directory buckets** - S3 Bucket Keys are always enabled for `GET` - and `PUT` operations in a directory bucket and can't be disabled. S3 - Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects - from general purpose buckets to directory buckets, from directory - buckets to general purpose buckets, or between directory buckets, - through - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html), - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), - [the Copy operation in Batch - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-objects-Batch-Ops), - or [the import - jobs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-import-job). - In this case, Amazon S3 makes a call to KMS every time a copy request - is made for a KMS-encrypted object. + `x-amz-copy-source-if-none-match` condition evaluates to `false`, and; + + `x-amz-copy-source-if-modified-since` condition evaluates to `true`; + + Amazon S3 returns `412 Precondition Failed` response code. """ - blocked_encryption_types: BlockedEncryptionTypes | None = ... + copy_source_if_unmodified_since: datetime | None """ - A bucket-level setting for Amazon S3 general purpose buckets used to - prevent the upload of new objects encrypted with the specified - server-side encryption type. For example, blocking an encryption type - will block `PutObject`, `CopyObject`, `PostObject`, multipart upload, - and replication requests to the bucket for objects with the specified - encryption type. However, you can continue to read and list any - pre-existing objects already encrypted with the specified encryption - type. For more information, see [Blocking or unblocking SSE-C for a - general purpose - bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html). + Copies the object if it hasn't been modified since the specified time. - Note: - Currently, this parameter only supports blocking or unblocking - server-side encryption with customer-provided keys (SSE-C). For more - information about SSE-C, see [Using server-side encryption with - customer-provided keys - (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). - """ + If both of the `x-amz-copy-source-if-match` and + `x-amz-copy-source-if-unmodified-since` headers are present in the + request as follows: -@dataclass(kw_only=True) -class SessionCredentials(_SerdeShape): - """ - The established temporary security credentials of the session. + `x-amz-copy-source-if-match` condition evaluates to `true`, and; - Note: - **Directory buckets** - These session credentials are only supported for - the authentication and authorization of Zonal endpoint API operations on - directory buckets. - """ + `x-amz-copy-source-if-unmodified-since` condition evaluates to `false`; - access_key_id: str + Amazon S3 returns `200 OK` and copies the data. """ - A unique identifier that's associated with a secret access key. The - access key ID and the secret access key are used together to sign - programmatic Amazon Web Services requests cryptographically. + copy_source_range: str | None """ - secret_access_key: str + The range of bytes to copy from the source object. The range value must + use the form bytes=first-last, where the first and last are the + zero-based byte offsets to copy. For example, bytes=0-9 indicates that + you want to copy the first 10 bytes of the source. You can copy a range + only if the source object is greater than 5 MB. """ - A key that's used with the access key ID to cryptographically sign - programmatic Amazon Web Services requests. Signing a request identifies - the sender and prevents the request from being altered. + key: Required[str] + """Object key for which the multipart upload was initiated.""" + part_number: Required[int] """ - session_token: str + Part number of part being copied. This is a positive integer between 1 + and 10,000. """ - A part of the temporary security credentials. The session token is used - to validate the temporary security credentials. + upload_id: Required[str] + """Upload ID identifying the multipart upload whose part is being copied.""" + sse_customer_algorithm: str | None """ - expiration: datetime + Specifies the algorithm to use when encrypting the object (for example, + AES256). + + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - Temporary security credentials expire after a specified interval. After - temporary credentials expire, any calls that you make with those - credentials will fail. So you must generate a new set of temporary - credentials. Temporary credentials cannot be extended or refreshed - beyond the original specified interval. + sse_customer_key: str | None """ + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm` header. This must be + the same encryption key specified in the initiate multipart upload + request. -class SessionMode(UnknownEnumMixin, StrEnum): - READ_ONLY = "ReadOnly" - READ_WRITE = "ReadWrite" - -@dataclass(kw_only=True) -class SimplePrefix(_SerdeShape): + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - To use simple format for S3 keys for log objects, set SimplePrefix to an - empty object. - - `[DestinationPrefix][YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]` + sse_customer_key_md5: str | None """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. -@dataclass(kw_only=True) -class SourceSelectionCriteria(_SerdeShape): + Note: + This functionality is not supported when the destination bucket is a + directory bucket. """ - A container that describes additional filters for identifying the source - objects that you want to replicate. You can choose to enable or disable - the replication of these objects. Currently, Amazon S3 supports only the - filter that you can specify for objects created with server-side - encryption using a customer managed key stored in Amazon Web Services - Key Management Service (SSE-KMS). + copy_source_sse_customer_algorithm: str | None """ + Specifies the algorithm to use when decrypting the source object (for + example, `AES256`). - sse_kms_encrypted_objects: SseKmsEncryptedObjects | None = ... - """ - A container for filter information for the selection of Amazon S3 - objects encrypted with Amazon Web Services KMS. If you include - `SourceSelectionCriteria` in the replication configuration, this element - is required. + Note: + This functionality is not supported when the source object is in a + directory bucket. """ - replica_modifications: ReplicaModifications | None = ... + copy_source_sse_customer_key: str | None """ - A filter that you can specify for selections for modifications on - replicas. Amazon S3 doesn't replicate replica modifications by default. - In the latest version of replication configuration (when `Filter` is - specified), you can specify this element and set the status to `Enabled` - to replicate modifications on replicas. + Specifies the customer-provided encryption key for Amazon S3 to use to + decrypt the source object. The encryption key provided in this header + must be one that was used when the source object was created. Note: - If you don't specify the `Filter` element, Amazon S3 assumes that the - replication configuration is the earlier version, V1. In the earlier - version, this element is not allowed + This functionality is not supported when the source object is in a + directory bucket. """ + copy_source_sse_customer_key_md5: str | None + """ + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. -@dataclass(kw_only=True) -class SSEKMS(_SerdeShape): - """Specifies the use of SSE-KMS to encrypt delivered inventory reports.""" - - key_id: str + Note: + This functionality is not supported when the source object is in a + directory bucket. """ - Specifies the ID of the Key Management Service (KMS) symmetric - encryption customer managed key to use for encrypting inventory reports. + request_payer: str | None """ + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) + in the *Amazon S3 User Guide*. -@dataclass(kw_only=True) -class SseKmsEncryptedObjects(_SerdeShape): + Note: + This functionality is not supported for directory buckets. """ - A container for filter information for the selection of S3 objects - encrypted with Amazon Web Services KMS. + expected_bucket_owner: str | None """ - - status: str + The account ID of the expected destination bucket owner. If the account + ID that you provide does not match the actual owner of the destination + bucket, the request fails with the HTTP status code `403 Forbidden` + (access denied). """ - Specifies whether Amazon S3 replicates objects created with server-side - encryption using an Amazon Web Services KMS key stored in Amazon Web - Services Key Management Service. + expected_source_bucket_owner: str | None + """ + The account ID of the expected source bucket owner. If the account ID + that you provide does not match the actual owner of the source bucket, + the request fails with the HTTP status code `403 Forbidden` (access + denied). """ - -class SseKmsEncryptedObjectsStatus(UnknownEnumMixin, StrEnum): - ENABLED = "Enabled" - DISABLED = "Disabled" @dataclass(kw_only=True) -class SSEKMSEncryption(_SerdeShape): +class UploadPartCopyOutput(_SerdeShape): + """Dataclass for UploadPartCopyOutput structure.""" + + copy_source_version_id: str | None = ... """ - If `SSEKMS` is specified for `ObjectEncryption`, this data type - specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to - use and whether to use an S3 Bucket Key for server-side encryption using - Key Management Service (KMS) keys (SSE-KMS). + The version of the source object that was copied, if you have enabled + versioning on the source bucket. + + Note: + This functionality is not supported when the source object is in a + directory bucket. + """ + copy_part_result: CopyPartResult | None = ... + """Container for all response elements.""" + server_side_encryption: str | None = ... """ + The server-side encryption algorithm used when you store this object in + Amazon S3 or Amazon FSx. - kms_key_arn: str + Note: + When accessing data stored in Amazon FSx file systems using S3 access + points, the only valid server side encryption option is `aws:fsx`. """ - Specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to - use for the updated server-side encryption type. Required if - `ObjectEncryption` specifies `SSEKMS`. + sse_customer_algorithm: str | None = ... + """ + If server-side encryption with a customer-provided encryption key was + requested, the response will include this header to confirm the + encryption algorithm that's used. Note: - You must specify the full Amazon Web Services KMS key ARN. The KMS key - ID and KMS key alias aren't supported. + This functionality is not supported for directory buckets. + """ + sse_customer_key_md5: str | None = ... + """ + If server-side encryption with a customer-provided encryption key was + requested, the response will include this header to provide the + round-trip message integrity verification of the customer-provided + encryption key. - Pattern: (`arn:aws[-a-z0-9]*:kms:[-a-z0-9]*:[0-9]{12}:key/.+`) + Note: + This functionality is not supported for directory buckets. + """ + ssekms_key_id: str | None = ... + """ + If present, indicates the ID of the KMS key that was used for object + encryption. """ bucket_key_enabled: bool | None = ... """ - Specifies whether Amazon S3 should use an S3 Bucket Key for object - encryption with server-side encryption using Key Management Service - (KMS) keys (SSE-KMS). If this value isn't specified, it defaults to - `false`. Setting this value to `true` causes Amazon S3 to use an S3 - Bucket Key for object encryption with SSE-KMS. For more information, see - [Using Amazon S3 Bucket - Keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-key.html) - in the *Amazon S3 User Guide*. - - Valid Values: `true` | `false` + Indicates whether the multipart upload uses an S3 Bucket Key for + server-side encryption with Key Management Service (KMS) keys (SSE-KMS). """ - -@dataclass(kw_only=True) -class SSES3(_SerdeShape): - """Specifies the use of SSE-S3 to encrypt delivered inventory reports.""" - -@dataclass(kw_only=True) -class Stats(_SerdeShape): - """Container for the stats details.""" - - bytes_scanned: int | None = ... - """The total number of object bytes scanned.""" - bytes_processed: int | None = ... - """The total number of uncompressed object bytes processed.""" - bytes_returned: int | None = ... - """The total number of bytes of records payload data returned.""" - -@dataclass(kw_only=True) -class StatsEvent(_SerdeShape): - """Container for the Stats Event.""" - - details: Stats | None = ... - """The Stats event details.""" - -class StorageClass(UnknownEnumMixin, StrEnum): - STANDARD = "STANDARD" - REDUCED_REDUNDANCY = "REDUCED_REDUNDANCY" - STANDARD_IA = "STANDARD_IA" - ONEZONE_IA = "ONEZONE_IA" - INTELLIGENT_TIERING = "INTELLIGENT_TIERING" - GLACIER = "GLACIER" - DEEP_ARCHIVE = "DEEP_ARCHIVE" - OUTPOSTS = "OUTPOSTS" - GLACIER_IR = "GLACIER_IR" - SNOW = "SNOW" - EXPRESS_ONEZONE = "EXPRESS_ONEZONE" - FSX_OPENZFS = "FSX_OPENZFS" - FSX_ONTAP = "FSX_ONTAP" - AWS_BACKUP_WARM = "AWS_BACKUP_WARM" - AWS_BACKUP_LOW_COST_WARM = "AWS_BACKUP_LOW_COST_WARM" - -@dataclass(kw_only=True) -class StorageClassAnalysis(_SerdeShape): + request_charged: str | None = ... """ - Specifies data related to access patterns to be collected and made - available to analyze the tradeoffs between different storage classes for - an Amazon S3 bucket. + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. + + Note: + This functionality is not supported for directory buckets. """ - - data_export: StorageClassAnalysisDataExport | None = ... + response_metadata: ResponseMetadata = ... """ - Specifies how data related to the storage class analysis for an Amazon - S3 bucket should be exported. + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. """ @dataclass(kw_only=True) -class StorageClassAnalysisDataExport(_SerdeShape): - """ - Container for data related to the storage class analysis for an Amazon - S3 bucket for export. - """ +class UploadPartInput(_SerdeShape): + """Dataclass for UploadPartInput structure.""" - output_schema_version: str - """ - The version of the output schema to use when exporting data. Must be - `V_1`. + body: StreamingBlob = ... + """Object data.""" + bucket: str | None = ... """ - destination: AnalyticsExportDestination - """The place to store the data for an analysis.""" - -class StorageClassAnalysisSchemaVersion(UnknownEnumMixin, StrEnum): - V_1 = "V_1" + The name of the bucket to which the multipart upload was initiated. -class TableSseAlgorithm(UnknownEnumMixin, StrEnum): - AWS_KMS = "aws:kms" - AES256 = "AES256" + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. -@dataclass(kw_only=True) -class Tag(_SerdeShape): - """A container of a key value name pair.""" + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. - key: str - """Name of the object key.""" - value: str - """Value of the tag.""" + Note: + Object Lambda access points are not supported by directory buckets. -@dataclass(kw_only=True) -class Tagging(_SerdeShape): - """Container for `TagSet` elements.""" + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. + """ + content_length: int | None = ... + """ + Size of the body in bytes. This parameter is useful when the size of the + body cannot be determined automatically. + """ + content_md5: str | None = ... + """ + The Base64 encoded 128-bit MD5 digest of the part data. This parameter + is auto-populated when using the command from the CLI. This parameter is + required if object lock parameters are specified. - tag_set: list[Tag] - """A collection for a set of tags""" + Note: + This functionality is not supported for directory buckets. + """ + checksum_algorithm: str | None = ... + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. -class TaggingDirective(UnknownEnumMixin, StrEnum): - COPY = "COPY" - REPLACE = "REPLACE" + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. -@dataclass(kw_only=True) -class TargetGrant(_SerdeShape): + This checksum algorithm must be the same for all parts and it match the + checksum value supplied in the `CreateMultipartUpload` request. """ - Container for granting information. - - Buckets that use the bucket owner enforced setting for Object Ownership - don't support target grants. For more information, see [Permissions - server access log - delivery](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general) + checksum_crc32: str | None = ... + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - - grantee: Grantee | None = ... - """Container for the person being granted permissions.""" - permission: str | None = ... - """Logging permissions assigned to the grantee for the bucket.""" - -@dataclass(kw_only=True) -class TargetObjectKeyFormat(_SerdeShape): + checksum_crc32_c: str | None = ... """ - Amazon S3 key format for log objects. Only one format, PartitionedPrefix - or SimplePrefix, is allowed. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - - simple_prefix: SimplePrefix | None = ... + checksum_crc64_nvme: str | None = ... """ - To use the simple format for S3 keys for log objects. To specify - SimplePrefix format, set SimplePrefix to {}. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - partitioned_prefix: PartitionedPrefix | None = ... - """Partitioned S3 key for log objects.""" - -class Tier(UnknownEnumMixin, StrEnum): - STANDARD = "Standard" - BULK = "Bulk" - EXPEDITED = "Expedited" - -@dataclass(kw_only=True) -class Tiering(_SerdeShape): + checksum_sha1: str | None = ... """ - The S3 Intelligent-Tiering storage class is designed to optimize storage - costs by automatically moving data to the most cost-effective storage - access tier, without additional operational overhead. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - - days: int + checksum_sha256: str | None = ... """ - The number of consecutive days of no access after which an object will - be eligible to be transitioned to the corresponding tier. The minimum - number of days specified for Archive Access tier must be at least 90 - days and Deep Archive Access tier must be at least 180 days. The maximum - can be up to 2 years (730 days). + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - access_tier: str + checksum_sha512: str | None = ... """ - S3 Intelligent-Tiering access tier. See [Storage class for automatically - optimizing frequently and infrequently accessed - objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access) - for a list of access tiers in the S3 Intelligent-Tiering storage class. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 512-bit `SHA512` digest of the part. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - -@dataclass(kw_only=True) -class TooManyParts(ServiceError, _SerdeShape): + checksum_md5: str | None = ... """ - You have attempted to add more parts than the maximum of 10000 that are - allowed for this object. You can use the CopyObject operation to copy - this object to another and then add more data to the newly copied - object. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `MD5` digest of the part. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - - response_metadata: ResponseMetadata = ... + checksum_xxhash64: str | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH64` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash3: str | None = ... + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH3` checksum of the part. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash128: str | None = ... + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `XXHASH128` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + key: str | None = ... + """Object key for which the multipart upload was initiated.""" + part_number: int | None = ... """ + Part number of part being uploaded. This is a positive integer between 1 + and 10,000. + """ + upload_id: str | None = ... + """Upload ID identifying the multipart upload whose part is being uploaded.""" + sse_customer_algorithm: str | None = ... + """ + Specifies the algorithm to use when encrypting the object (for example, + AES256). -@dataclass(kw_only=True) -class TopicConfiguration(_SerdeShape): + Note: + This functionality is not supported for directory buckets. """ - A container for specifying the configuration for publication of messages - to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon - S3 detects specified events. + sse_customer_key: str | None = ... """ + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm header`. This must be + the same encryption key specified in the initiate multipart upload + request. - id: str | None = ... - """ - An optional unique identifier for configurations in a notification - configuration. If you don't provide one, Amazon S3 will assign an ID. + Note: + This functionality is not supported for directory buckets. """ - topic_arn: str + sse_customer_key_md5: str | None = ... """ - The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon - S3 publishes a message when it detects events of the specified type. + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. + + Note: + This functionality is not supported for directory buckets. """ - events: list[str] + request_payer: str | None = ... """ - The Amazon S3 bucket event about which to send notifications. For more - information, see [Supported Event - Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + Confirms that the requester knows that they will be charged for the + request. Bucket owners need not specify this parameter in their + requests. If either the source or destination S3 bucket has Requester + Pays enabled, the requester will pay for the corresponding charges. For + information about downloading objects from Requester Pays buckets, see + [Downloading Objects in Requester Pays + Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the *Amazon S3 User Guide*. + + Note: + This functionality is not supported for directory buckets. """ - filter: NotificationConfigurationFilter | None = ... + expected_bucket_owner: str | None = ... """ - Specifies object key name filtering rules. For information about key - name filtering, see [Configuring event notifications using object key - name - filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) - in the *Amazon S3 User Guide*. + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). """ -@dataclass(kw_only=True) -class Transition(_SerdeShape): +class UploadPartInputDict(TypedDict, total=False): """ - Specifies when an object transitions to a specified storage class. For - more information about Amazon S3 lifecycle configuration rules, see - [Transitioning Objects Using Amazon S3 - Lifecycle](https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) - in the *Amazon S3 User Guide*. + Dictionary form of `UploadPartInput` that either client accepts. Its + streaming body is one a sync client can send. Use + `AsyncUploadPartInputDict` for an async stream. """ - date: datetime | None = ... - """ - Indicates when objects are transitioned to the specified storage class. - The date value must be in ISO 8601 format. The time is always midnight - UTC. - """ - days: int | None = ... - """ - Indicates the number of days after creation when objects are - transitioned to the specified storage class. The value can be `0` or any - positive integer. Be aware that some storage classes have a minimum - storage duration and that you're charged for transitioning objects - before their minimum storage duration. For more information, see - [Constraints and considerations for - transitions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html#lifecycle-configuration-constraints) - in the *Amazon S3 User Guide*. + body: SyncStreamingBlob | None + """Object data.""" + bucket: Required[str] """ - storage_class: str | None = ... - """The storage class to which you want the object to transition.""" - -class TransitionDefaultMinimumObjectSize(UnknownEnumMixin, StrEnum): - VARIES_BY_STORAGE_CLASS = "varies_by_storage_class" - ALL_STORAGE_CLASSES_128_K = "all_storage_classes_128K" + The name of the bucket to which the multipart upload was initiated. -class TransitionStorageClass(UnknownEnumMixin, StrEnum): - GLACIER = "GLACIER" - STANDARD_IA = "STANDARD_IA" - ONEZONE_IA = "ONEZONE_IA" - INTELLIGENT_TIERING = "INTELLIGENT_TIERING" - DEEP_ARCHIVE = "DEEP_ARCHIVE" - GLACIER_IR = "GLACIER_IR" + **Directory buckets** - When you use this operation with a directory + bucket, you must use virtual-hosted-style requests in the format + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + Path-style requests are not supported. Directory bucket names must be + unique in the chosen Zone (Availability Zone or Local Zone). Bucket + names must follow the format + ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, + ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information + about bucket naming restrictions, see [Directory bucket naming + rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) + in the *Amazon S3 User Guide*. -class Type(UnknownEnumMixin, StrEnum): - CANONICAL_USER = "CanonicalUser" - AMAZON_CUSTOMER_BY_EMAIL = "AmazonCustomerByEmail" - GROUP = "Group" + **Access points** - When you use this action with an access point for + general purpose buckets, you must provide the alias of the access point + in place of the bucket name or specify the access point ARN. When you + use this action with an access point for directory buckets, you must + provide the access point name in place of the bucket name. When using + the access point ARN, you must direct requests to the access point + hostname. The access point hostname takes the form + *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. + When using this action with an access point through the Amazon Web + Services SDKs, you provide the access point ARN in place of the bucket + name. For more information about access point ARNs, see [Using access + points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) + in the *Amazon S3 User Guide*. -@dataclass(kw_only=True) -class UnsupportedMediaType(ServiceError, _SerdeShape): - """The annotation payload is not valid UTF-8 encoded text.""" + Note: + Object Lambda access points are not supported by directory buckets. - response_metadata: ResponseMetadata = ... + **S3 on Outposts** - When you use this action with S3 on Outposts, you + must direct requests to the S3 on Outposts hostname. The S3 on Outposts + hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + When you use this action with S3 on Outposts, the destination bucket + must be the Outposts access point ARN or the access point alias. For + more information about S3 on Outposts, see [What is S3 on + Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + in the *Amazon S3 User Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + content_length: int | None """ - -@dataclass(kw_only=True) -class UpdateBucketMetadataAnnotationTableConfigurationInput(_SerdeShape): + Size of the body in bytes. This parameter is useful when the size of the + body cannot be determined automatically. """ - Dataclass for UpdateBucketMetadataAnnotationTableConfigurationInput - structure. + content_md5: str | None """ + The Base64 encoded 128-bit MD5 digest of the part data. This parameter + is auto-populated when using the command from the CLI. This parameter is + required if object lock parameters are specified. - bucket: str | None = ... - """The name of the bucket whose annotation table configuration to update.""" - content_md5: str | None = ... - """Base64-encoded MD5 digest of the message body.""" - checksum_algorithm: str | None = ... - """Checksum algorithm for the request payload.""" - annotation_table_configuration: AnnotationTableConfigurationUpdates | None = ... - """The annotation table configuration updates to apply.""" - expected_bucket_owner: str | None = ... - """The account ID of the expected bucket owner.""" - -@dataclass(kw_only=True) -class UpdateBucketMetadataAnnotationTableConfigurationOutput(_SerdeShape): + Note: + This functionality is not supported for directory buckets. """ - Dataclass for UpdateBucketMetadataAnnotationTableConfigurationOutput - structure. + checksum_algorithm: str | None """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. -@dataclass(kw_only=True) -class UpdateBucketMetadataInventoryTableConfigurationInput(_SerdeShape): + This checksum algorithm must be the same for all parts and it match the + checksum value supplied in the `CreateMultipartUpload` request. """ - Dataclass for UpdateBucketMetadataInventoryTableConfigurationInput - structure. + checksum_crc32: str | None """ - - bucket: str | None = ... + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - The general purpose bucket that corresponds to the metadata - configuration that you want to enable or disable an inventory table for. + checksum_crc32_c: str | None """ - content_md5: str | None = ... - """The `Content-MD5` header for the inventory table configuration.""" - checksum_algorithm: str | None = ... - """The checksum algorithm to use with your inventory table configuration.""" - inventory_table_configuration: InventoryTableConfigurationUpdates | None = ... - """The contents of your inventory table configuration.""" - expected_bucket_owner: str | None = ... + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - The expected owner of the general purpose bucket that corresponds to the - metadata table configuration that you want to enable or disable an - inventory table for. + checksum_crc64_nvme: str | None """ - -@dataclass(kw_only=True) -class UpdateBucketMetadataInventoryTableConfigurationOutput(_SerdeShape): + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - Dataclass for UpdateBucketMetadataInventoryTableConfigurationOutput - structure. + checksum_sha1: str | None """ - - response_metadata: ResponseMetadata = ... + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + checksum_sha256: str | None """ - -@dataclass(kw_only=True) -class UpdateBucketMetadataJournalTableConfigurationInput(_SerdeShape): + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - Dataclass for UpdateBucketMetadataJournalTableConfigurationInput - structure. + checksum_sha512: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 512-bit `SHA512` digest of the part. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - - bucket: str | None = ... + checksum_md5: str | None """ - The general purpose bucket that corresponds to the metadata - configuration that you want to enable or disable journal table record - expiration for. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `MD5` digest of the part. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - content_md5: str | None = ... - """The `Content-MD5` header for the journal table configuration.""" - checksum_algorithm: str | None = ... - """The checksum algorithm to use with your journal table configuration.""" - journal_table_configuration: JournalTableConfigurationUpdates | None = ... - """The contents of your journal table configuration.""" - expected_bucket_owner: str | None = ... + checksum_xxhash64: str | None """ - The expected owner of the general purpose bucket that corresponds to the - metadata table configuration that you want to enable or disable journal - table record expiration for. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH64` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - -@dataclass(kw_only=True) -class UpdateBucketMetadataJournalTableConfigurationOutput(_SerdeShape): + checksum_xxhash3: str | None """ - Dataclass for UpdateBucketMetadataJournalTableConfigurationOutput - structure. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH3` checksum of the part. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - - response_metadata: ResponseMetadata = ... + checksum_xxhash128: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `XXHASH128` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - -@dataclass(kw_only=True) -class UpdateObjectEncryptionInput(_SerdeShape): - """Dataclass for UpdateObjectEncryptionInput structure.""" - - bucket: str | None = ... + key: Required[str] + """Object key for which the multipart upload was initiated.""" + part_number: Required[int] """ - The name of the general purpose bucket that contains the specified - object key name. - - When you use this operation with an access point attached to a general - purpose bucket, you must either provide the alias of the access point in - place of the bucket name or you must specify the access point Amazon - Resource Name (ARN). When using the access point ARN, you must direct - requests to the access point hostname. The access point hostname takes - the form - ` `*`AccessPointName`*`-`*`AccountId`*`.s3-accesspoint.`*`Region`*`.amazonaws.com`. - When using this operation with an access point through the Amazon Web - Services SDKs, you provide the access point ARN in place of the bucket - name. For more information about access point ARNs, see [Referencing - access - points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-naming.html) - in the *Amazon S3 User Guide*. + Part number of part being uploaded. This is a positive integer between 1 + and 10,000. """ - key: str | None = ... + upload_id: Required[str] + """Upload ID identifying the multipart upload whose part is being uploaded.""" + sse_customer_algorithm: str | None """ - The key name of the object that you want to update the server-side - encryption type for. + Specifies the algorithm to use when encrypting the object (for example, + AES256). + + Note: + This functionality is not supported for directory buckets. """ - version_id: str | None = ... + sse_customer_key: str | None """ - The version ID of the object that you want to update the server-side - encryption type for. + Specifies the customer-provided encryption key for Amazon S3 to use in + encrypting data. This value is used to store the object and then it is + discarded; Amazon S3 does not store the encryption key. The key must be + appropriate for use with the algorithm specified in the + `x-amz-server-side-encryption-customer-algorithm header`. This must be + the same encryption key specified in the initiate multipart upload + request. + + Note: + This functionality is not supported for directory buckets. """ - object_encryption: ObjectEncryption | None = ... + sse_customer_key_md5: str | None """ - The updated server-side encryption type for this object. The - `UpdateObjectEncryption` operation supports the SSE-S3 and SSE-KMS - encryption types. + Specifies the 128-bit MD5 digest of the encryption key according to RFC + 1321. Amazon S3 uses this header for a message integrity check to ensure + that the encryption key was transmitted without error. - Valid Values: `SSES3` | `SSEKMS` + Note: + This functionality is not supported for directory buckets. """ - request_payer: str | None = ... + request_payer: str | None """ Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their @@ -7698,64 +14312,24 @@ class UpdateObjectEncryptionInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - expected_bucket_owner: str | None = ... + expected_bucket_owner: str | None """ The account ID of the expected bucket owner. If the account ID that you - provide doesn't match the actual owner of the bucket, the request fails + provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied). """ - content_md5: str | None = ... - """ - The MD5 hash for the request body. For requests made using the Amazon - Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, - this field is calculated automatically. - """ - checksum_algorithm: str | None = ... - """ - Indicates the algorithm used to create the checksum for the object when - you use an Amazon Web Services SDK. This header doesn't provide any - additional functionality if you don't use the SDK. When you send this - header, there must be a corresponding `x-amz-checksum` or - `x-amz-trailer` header sent. Otherwise, Amazon S3 fails the request with - the HTTP status code `400 Bad Request`. For more information, see - [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. - - If you provide an individual checksum, Amazon S3 ignores any provided - `ChecksumAlgorithm` parameter. - """ - -@dataclass(kw_only=True) -class UpdateObjectEncryptionOutput(_SerdeShape): - """Dataclass for UpdateObjectEncryptionOutput structure.""" - - request_charged: str | None = ... - """ - If present, indicates that the requester was successfully charged for - the request. For more information, see [Using Requester Pays buckets for - storage transfers and - usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) - in the *Amazon Simple Storage Service user guide*. - Note: - This functionality is not supported for directory buckets. - """ - response_metadata: ResponseMetadata = ... +class AsyncUploadPartInputDict(TypedDict, total=False): """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Dictionary form of `UploadPartInput` for the async client. Its + streaming body may also be an async stream. """ -@dataclass(kw_only=True) -class UploadPartCopyInput(_SerdeShape): - """Dataclass for UploadPartCopyInput structure.""" - - bucket: str | None = ... + body: StreamingBlob | None + """Object data.""" + bucket: Required[str] """ - The bucket name. + The name of the bucket to which the multipart upload was initiated. **Directory buckets** - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format @@ -7769,13 +14343,6 @@ class UploadPartCopyInput(_SerdeShape): rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) in the *Amazon S3 User Guide*. - Note: - Copying objects across different Amazon Web Services Regions isn't - supported when the source or destination bucket is in Amazon Web - Services Local Zones. The source and destination buckets must have the - same parent Amazon Web Services Region. Otherwise, you get an HTTP - `400 Bad Request` error with the error code `InvalidRequest`. - **Access points** - When you use this action with an access point for general purpose buckets, you must provide the alias of the access point in place of the bucket name or specify the access point ARN. When you @@ -7803,201 +14370,167 @@ class UploadPartCopyInput(_SerdeShape): Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the *Amazon S3 User Guide*. """ - copy_source: str | None = ... + content_length: int | None """ - Specifies the source object for the copy operation. You specify the - value in one of two formats, depending on whether you want to access the - source object through an [access - point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html): - - - For objects not accessed through an access point, specify the name of - the source bucket and key of the source object, separated by a slash - (/). For example, to copy the object `reports/january.pdf` from the - bucket `awsexamplebucket`, use `awsexamplebucket/reports/january.pdf`. - The value must be URL-encoded. - - - For objects accessed through access points, specify the Amazon - Resource Name (ARN) of the object as accessed through the access - point, in the format - `arn:aws:s3:```{=html}`:```{=html}`:accesspoint/```{=html}`/object/```{=html}. - For example, to copy the object `reports/january.pdf` through access - point `my-access-point` owned by account `123456789012` in Region - `us-west-2`, use the URL encoding of - `arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf`. - The value must be URL encoded. - - Note: - - Amazon S3 supports copy operations using Access points only when the - source and destination buckets are in the same Amazon Web Services - Region. - - - Access points are not supported by directory buckets. - - Alternatively, for objects accessed through Amazon S3 on Outposts, - specify the ARN of the object as accessed in the format - `arn:aws:s3-outposts:```{=html}`:```{=html}`:outpost/```{=html}`/object/```{=html}. - For example, to copy the object `reports/january.pdf` through outpost - `my-outpost` owned by account `123456789012` in Region `us-west-2`, - use the URL encoding of - `arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf`. - The value must be URL-encoded. + Size of the body in bytes. This parameter is useful when the size of the + body cannot be determined automatically. + """ + content_md5: str | None + """ + The Base64 encoded 128-bit MD5 digest of the part data. This parameter + is auto-populated when using the command from the CLI. This parameter is + required if object lock parameters are specified. - If your bucket has versioning enabled, you could have multiple versions - of the same object. By default, `x-amz-copy-source` identifies the - current version of the source object to copy. To copy a specific version - of the source object to copy, append `?versionId=```{=html} - to the `x-amz-copy-source` request header (for example, - `x-amz-copy-source: /awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893`). + Note: + This functionality is not supported for directory buckets. + """ + checksum_algorithm: str | None + """ + Indicates the algorithm used to create the checksum for the object when + you use the SDK. This header will not provide any additional + functionality if you don't use the SDK. When you send this header, + there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header + sent. Otherwise, Amazon S3 fails the request with the HTTP status code + `400 Bad Request`. For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. - If the current version is a delete marker and you don't specify a - versionId in the `x-amz-copy-source` request header, Amazon S3 returns a - `404 Not Found` error, because the object does not exist. If you specify - versionId in the `x-amz-copy-source` and the versionId is a delete - marker, Amazon S3 returns an HTTP `400 Bad Request` error, because you - are not allowed to specify a delete marker as a version for the - `x-amz-copy-source`. + If you provide an individual checksum, Amazon S3 ignores any provided + `ChecksumAlgorithm` parameter. - Note: - **Directory buckets** - S3 Versioning isn't enabled and supported for - directory buckets. + This checksum algorithm must be the same for all parts and it match the + checksum value supplied in the `CreateMultipartUpload` request. + """ + checksum_crc32: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc32_c: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - copy_source_if_match: str | None = ... + checksum_crc64_nvme: str | None """ - Copies the object if its entity tag (ETag) matches the specified tag. - - If both of the `x-amz-copy-source-if-match` and - `x-amz-copy-source-if-unmodified-since` headers are present in the - request as follows: - - `x-amz-copy-source-if-match` condition evaluates to `true`, and; - - `x-amz-copy-source-if-unmodified-since` condition evaluates to `false`; - - Amazon S3 returns `200 OK` and copies the data. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - copy_source_if_modified_since: datetime | None = ... + checksum_sha1: str | None """ - Copies the object if it has been modified since the specified time. - - If both of the `x-amz-copy-source-if-none-match` and - `x-amz-copy-source-if-modified-since` headers are present in the request - as follows: - - `x-amz-copy-source-if-none-match` condition evaluates to `false`, and; - - `x-amz-copy-source-if-modified-since` condition evaluates to `true`; - - Amazon S3 returns `412 Precondition Failed` response code. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - copy_source_if_none_match: str | None = ... + checksum_sha256: str | None """ - Copies the object if its entity tag (ETag) is different than the - specified ETag. - - If both of the `x-amz-copy-source-if-none-match` and - `x-amz-copy-source-if-modified-since` headers are present in the request - as follows: - - `x-amz-copy-source-if-none-match` condition evaluates to `false`, and; - - `x-amz-copy-source-if-modified-since` condition evaluates to `true`; - - Amazon S3 returns `412 Precondition Failed` response code. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - copy_source_if_unmodified_since: datetime | None = ... + checksum_sha512: str | None """ - Copies the object if it hasn't been modified since the specified time. - - If both of the `x-amz-copy-source-if-match` and - `x-amz-copy-source-if-unmodified-since` headers are present in the - request as follows: - - `x-amz-copy-source-if-match` condition evaluates to `true`, and; - - `x-amz-copy-source-if-unmodified-since` condition evaluates to `false`; - - Amazon S3 returns `200 OK` and copies the data. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 512-bit `SHA512` digest of the part. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - copy_source_range: str | None = ... + checksum_md5: str | None """ - The range of bytes to copy from the source object. The range value must - use the form bytes=first-last, where the first and last are the - zero-based byte offsets to copy. For example, bytes=0-9 indicates that - you want to copy the first 10 bytes of the source. You can copy a range - only if the source object is greater than 5 MB. + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `MD5` digest of the part. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - key: str | None = ... + checksum_xxhash64: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH64` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash3: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH3` checksum of the part. For + more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash128: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `XXHASH128` checksum of the part. + For more information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + key: Required[str] """Object key for which the multipart upload was initiated.""" - part_number: int | None = ... + part_number: Required[int] """ - Part number of part being copied. This is a positive integer between 1 + Part number of part being uploaded. This is a positive integer between 1 and 10,000. """ - upload_id: str | None = ... - """Upload ID identifying the multipart upload whose part is being copied.""" - sse_customer_algorithm: str | None = ... + upload_id: Required[str] + """Upload ID identifying the multipart upload whose part is being uploaded.""" + sse_customer_algorithm: str | None """ Specifies the algorithm to use when encrypting the object (for example, AES256). Note: - This functionality is not supported when the destination bucket is a - directory bucket. + This functionality is not supported for directory buckets. """ - sse_customer_key: str | None = ... + sse_customer_key: str | None """ Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the - `x-amz-server-side-encryption-customer-algorithm` header. This must be + `x-amz-server-side-encryption-customer-algorithm header`. This must be the same encryption key specified in the initiate multipart upload request. Note: - This functionality is not supported when the destination bucket is a - directory bucket. - """ - sse_customer_key_md5: str | None = ... - """ - Specifies the 128-bit MD5 digest of the encryption key according to RFC - 1321. Amazon S3 uses this header for a message integrity check to ensure - that the encryption key was transmitted without error. - - Note: - This functionality is not supported when the destination bucket is a - directory bucket. - """ - copy_source_sse_customer_algorithm: str | None = ... - """ - Specifies the algorithm to use when decrypting the source object (for - example, `AES256`). - - Note: - This functionality is not supported when the source object is in a - directory bucket. - """ - copy_source_sse_customer_key: str | None = ... - """ - Specifies the customer-provided encryption key for Amazon S3 to use to - decrypt the source object. The encryption key provided in this header - must be one that was used when the source object was created. - - Note: - This functionality is not supported when the source object is in a - directory bucket. + This functionality is not supported for directory buckets. """ - copy_source_sse_customer_key_md5: str | None = ... + sse_customer_key_md5: str | None """ Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error. Note: - This functionality is not supported when the source object is in a - directory bucket. + This functionality is not supported for directory buckets. """ - request_payer: str | None = ... + request_payer: str | None """ Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their @@ -8011,44 +14544,107 @@ class UploadPartCopyInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - expected_bucket_owner: str | None = ... - """ - The account ID of the expected destination bucket owner. If the account - ID that you provide does not match the actual owner of the destination - bucket, the request fails with the HTTP status code `403 Forbidden` - (access denied). + expected_bucket_owner: str | None """ - expected_source_bucket_owner: str | None = ... - """ - The account ID of the expected source bucket owner. If the account ID - that you provide does not match the actual owner of the source bucket, - the request fails with the HTTP status code `403 Forbidden` (access - denied). + The account ID of the expected bucket owner. If the account ID that you + provide does not match the actual owner of the bucket, the request fails + with the HTTP status code `403 Forbidden` (access denied). """ @dataclass(kw_only=True) -class UploadPartCopyOutput(_SerdeShape): - """Dataclass for UploadPartCopyOutput structure.""" +class UploadPartOutput(_SerdeShape): + """Dataclass for UploadPartOutput structure.""" - copy_source_version_id: str | None = ... + server_side_encryption: str | None = ... + """ + The server-side encryption algorithm used when you store this object in + Amazon S3 or Amazon FSx. + + Note: + When accessing data stored in Amazon FSx file systems using S3 access + points, the only valid server side encryption option is `aws:fsx`. + """ + e_tag: str | None = ... + """Entity tag for the uploaded object.""" + checksum_crc32: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32` checksum of the part. This will only + be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc32_c: str | None = ... + """ + The Base64 encoded, 32-bit `CRC32C` checksum of the part. This will only + be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_crc64_nvme: str | None = ... + """ + The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. This will + only be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha1: str | None = ... + """ + The Base64 encoded, 160-bit `SHA1` checksum of the part. This will only + be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha256: str | None = ... + """ + The Base64 encoded, 256-bit `SHA256` checksum of the part. This will + only be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_sha512: str | None = ... + """ + The Base64 encoded, 512-bit `SHA512` checksum of the part. This will + only be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_md5: str | None = ... + """ + The Base64 encoded, 128-bit `MD5` checksum of the part. This will only + be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. + """ + checksum_xxhash64: str | None = ... + """ + The Base64 encoded, 64-bit `XXHASH64` checksum of the part. This will + only be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - The version of the source object that was copied, if you have enabled - versioning on the source bucket. - - Note: - This functionality is not supported when the source object is in a - directory bucket. + checksum_xxhash3: str | None = ... """ - copy_part_result: CopyPartResult | None = ... - """Container for all response elements.""" - server_side_encryption: str | None = ... + The Base64 encoded, 64-bit `XXHASH3` checksum of the part. This will + only be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ - The server-side encryption algorithm used when you store this object in - Amazon S3 or Amazon FSx. - - Note: - When accessing data stored in Amazon FSx file systems using S3 access - points, the only valid server side encryption option is `aws:fsx`. + checksum_xxhash128: str | None = ... + """ + The Base64 encoded, 128-bit `XXHASH128` checksum of the part. This will + only be present if the checksum was provided in the request. For more + information, see [Checking object + integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) + in the *Amazon S3 User Guide*. """ sse_customer_algorithm: str | None = ... """ @@ -8099,102 +14695,190 @@ class UploadPartCopyOutput(_SerdeShape): """ @dataclass(kw_only=True) -class UploadPartInput(_SerdeShape): - """Dataclass for UploadPartInput structure.""" +class VersioningConfiguration(_SerdeShape): + """ + Describes the versioning state of an Amazon S3 bucket. For more + information, see [PUT Bucket + versioning](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) + in the *Amazon S3 API Reference*. + """ - body: StreamingBlob = ... - """Object data.""" - bucket: str | None = ... + mfa_delete: str | None = ... """ - The name of the bucket to which the multipart upload was initiated. + Specifies whether MFA delete is enabled in the bucket versioning + configuration. This element is only returned if the bucket has been + configured with MFA delete. If the bucket has never been so configured, + this element is not returned. + """ + status: str | None = ... + """The versioning state of the bucket.""" - **Directory buckets** - When you use this operation with a directory - bucket, you must use virtual-hosted-style requests in the format - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. - Path-style requests are not supported. Directory bucket names must be - unique in the chosen Zone (Availability Zone or Local Zone). Bucket - names must follow the format - ` `*`bucket-base-name`*`--`*`zone-id`*`--x-s3` (for example, - ` `*`amzn-s3-demo-bucket`*`--`*`usw2-az1`*`--x-s3`). For information - about bucket naming restrictions, see [Directory bucket naming - rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) - in the *Amazon S3 User Guide*. +class VersioningConfigurationDict(TypedDict, total=False): + """Dictionary form of `VersioningConfiguration`.""" - **Access points** - When you use this action with an access point for - general purpose buckets, you must provide the alias of the access point - in place of the bucket name or specify the access point ARN. When you - use this action with an access point for directory buckets, you must - provide the access point name in place of the bucket name. When using - the access point ARN, you must direct requests to the access point - hostname. The access point hostname takes the form - *AccessPointName*-*AccountId*.s3-accesspoint.*Region*.amazonaws.com. - When using this action with an access point through the Amazon Web - Services SDKs, you provide the access point ARN in place of the bucket - name. For more information about access point ARNs, see [Using access - points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - in the *Amazon S3 User Guide*. + mfa_delete: str | None + """ + Specifies whether MFA delete is enabled in the bucket versioning + configuration. This element is only returned if the bucket has been + configured with MFA delete. If the bucket has never been so configured, + this element is not returned. + """ + status: str | None + """The versioning state of the bucket.""" - Note: - Object Lambda access points are not supported by directory buckets. +@dataclass(kw_only=True) +class WebsiteConfiguration(_SerdeShape): + """Specifies website configuration parameters for an Amazon S3 bucket.""" - **S3 on Outposts** - When you use this action with S3 on Outposts, you - must direct requests to the S3 on Outposts hostname. The S3 on Outposts - hostname takes the form - ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. - When you use this action with S3 on Outposts, the destination bucket - must be the Outposts access point ARN or the access point alias. For - more information about S3 on Outposts, see [What is S3 on - Outposts?](https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) - in the *Amazon S3 User Guide*. + error_document: ErrorDocument | None = ... + """The name of the error document for the website.""" + index_document: IndexDocument | None = ... + """The name of the index document for the website.""" + redirect_all_requests_to: RedirectAllRequestsTo | None = ... """ - content_length: int | None = ... + The redirect behavior for every request to this bucket's website + endpoint. + + Warning: + If you specify this property, you can't specify any other property. """ - Size of the body in bytes. This parameter is useful when the size of the - body cannot be determined automatically. + routing_rules: list[RoutingRule] | None = ... + """Rules that define when a redirect is applied and the redirect behavior.""" + +class WebsiteConfigurationDict(TypedDict, total=False): + """Dictionary form of `WebsiteConfiguration`.""" + + error_document: ErrorDocument | ErrorDocumentDict | None + """The name of the error document for the website.""" + index_document: IndexDocument | IndexDocumentDict | None + """The name of the index document for the website.""" + redirect_all_requests_to: RedirectAllRequestsTo | RedirectAllRequestsToDict | None """ - content_md5: str | None = ... + The redirect behavior for every request to this bucket's website + endpoint. + + Warning: + If you specify this property, you can't specify any other property. """ - The Base64 encoded 128-bit MD5 digest of the part data. This parameter - is auto-populated when using the command from the CLI. This parameter is - required if object lock parameters are specified. + routing_rules: Sequence[RoutingRule | RoutingRuleDict] | None + """Rules that define when a redirect is applied and the redirect behavior.""" - Note: - This functionality is not supported for directory buckets. +@dataclass(kw_only=True) +class WriteGetObjectResponseInput(_SerdeShape): + """Dataclass for WriteGetObjectResponseInput structure.""" + + request_route: str | None = ... + """Route prefix to the HTTP URL generated.""" + request_token: str | None = ... """ - checksum_algorithm: str | None = ... + A single use encrypted token that maps `WriteGetObjectResponse` to the + end user `GetObject` request. """ - Indicates the algorithm used to create the checksum for the object when - you use the SDK. This header will not provide any additional - functionality if you don't use the SDK. When you send this header, - there must be a corresponding `x-amz-checksum` or `x-amz-trailer` header - sent. Otherwise, Amazon S3 fails the request with the HTTP status code - `400 Bad Request`. For more information, see [Checking object - integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) - in the *Amazon S3 User Guide*. + body: StreamingBlob = ... + """The object data.""" + status_code: int | None = ... + """ + The integer status code for an HTTP response of a corresponding + `GetObject` request. The following is a list of status codes. - If you provide an individual checksum, Amazon S3 ignores any provided - `ChecksumAlgorithm` parameter. + - `200 - OK` - This checksum algorithm must be the same for all parts and it match the - checksum value supplied in the `CreateMultipartUpload` request. + - `206 - Partial Content` + + - `304 - Not Modified` + + - `400 - Bad Request` + + - `401 - Unauthorized` + + - `403 - Forbidden` + + - `404 - Not Found` + + - `405 - Method Not Allowed` + + - `409 - Conflict` + + - `411 - Length Required` + + - `412 - Precondition Failed` + + - `416 - Range Not Satisfiable` + + - `500 - Internal Server Error` + + - `503 - Service Unavailable` + """ + error_code: str | None = ... + """ +

+ A string that uniquely identifies an error condition. Returned in the + + tag of the error XML response for a corresponding `GetObject` call. + Cannot be used with a successful `StatusCode` header or when the + transformed object is provided in the body. All error codes from S3 are + sentence-cased. The regular expression (regex) value is + `"^[A-Z][a-zA-Z]+$"`. +

+ """ + error_message: str | None = ... + """ + Contains a generic description of the error condition. Returned in the + ``{=html} tag of the error XML response for a corresponding + `GetObject` call. Cannot be used with a successful `StatusCode` header + or when the transformed object is provided in body. + """ + accept_ranges: str | None = ... + """Indicates that a range of bytes was specified.""" + cache_control: str | None = ... + """Specifies caching behavior along the request/reply chain.""" + content_disposition: str | None = ... + """Specifies presentational information for the object.""" + content_encoding: str | None = ... + """ + Specifies what content encodings have been applied to the object and + thus what decoding mechanisms must be applied to obtain the media-type + referenced by the Content-Type header field. """ + content_language: str | None = ... + """The language the content is in.""" + content_length: int | None = ... + """The size of the content body in bytes.""" + content_range: str | None = ... + """The portion of the object returned in the response.""" + content_type: str | None = ... + """A standard MIME type describing the format of the object data.""" checksum_crc32: str | None = ... """ This header can be used as a data integrity check to verify that the - data received is the same data that was originally sent. This header - specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For - more information, see [Checking object + data received is the same data that was originally sent. This specifies + the Base64 encoded, 32-bit `CRC32` checksum of the object returned by + the Object Lambda function. This may not match the checksum for the + object stored in Amazon S3. Amazon S3 will perform validation of the + checksum values only when the original `GetObject` request required + checksum validation. For more information about checksums, see [Checking + object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. + + Only one checksum header can be specified at a time. If you supply + multiple checksum headers, this request will fail. """ checksum_crc32_c: str | None = ... """ This header can be used as a data integrity check to verify that the - data received is the same data that was originally sent. This header - specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. - For more information, see [Checking object + data received is the same data that was originally sent. This specifies + the Base64 encoded, 32-bit `CRC32C` checksum of the object returned by + the Object Lambda function. This may not match the checksum for the + object stored in Amazon S3. Amazon S3 will perform validation of the + checksum values only when the original `GetObject` request required + checksum validation. For more information about checksums, see [Checking + object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. + + Only one checksum header can be specified at a time. If you supply + multiple checksum headers, this request will fail. """ checksum_crc64_nvme: str | None = ... """ @@ -8208,20 +14892,33 @@ class UploadPartInput(_SerdeShape): checksum_sha1: str | None = ... """ This header can be used as a data integrity check to verify that the - data received is the same data that was originally sent. This header - specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For - more information, see [Checking object + data received is the same data that was originally sent. This specifies + the Base64 encoded, 160-bit `SHA1` digest of the object returned by the + Object Lambda function. This may not match the checksum for the object + stored in Amazon S3. Amazon S3 will perform validation of the checksum + values only when the original `GetObject` request required checksum + validation. For more information about checksums, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. + + Only one checksum header can be specified at a time. If you supply + multiple checksum headers, this request will fail. """ checksum_sha256: str | None = ... """ This header can be used as a data integrity check to verify that the - data received is the same data that was originally sent. This header - specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For - more information, see [Checking object + data received is the same data that was originally sent. This specifies + the Base64 encoded, 256-bit `SHA256` digest of the object returned by + the Object Lambda function. This may not match the checksum for the + object stored in Amazon S3. Amazon S3 will perform validation of the + checksum values only when the original `GetObject` request required + checksum validation. For more information about checksums, see [Checking + object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. + + Only one checksum header can be specified at a time. If you supply + multiple checksum headers, this request will fail. """ checksum_sha512: str | None = ... """ @@ -8268,191 +14965,385 @@ class UploadPartInput(_SerdeShape): integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - key: str | None = ... - """Object key for which the multipart upload was initiated.""" - part_number: int | None = ... + delete_marker: bool | None = ... """ - Part number of part being uploaded. This is a positive integer between 1 - and 10,000. + Specifies whether an object stored in Amazon S3 is (`true`) or is not + (`false`) a delete marker. To learn more about delete markers, see + [Working with delete + markers](https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html). """ - upload_id: str | None = ... - """Upload ID identifying the multipart upload whose part is being uploaded.""" - sse_customer_algorithm: str | None = ... + e_tag: str | None = ... """ - Specifies the algorithm to use when encrypting the object (for example, - AES256). + An opaque identifier assigned by a web server to a specific version of a + resource found at a URL. + """ + expires: str | None = ... + """The date and time at which the object is no longer cacheable.""" + expiration: str | None = ... + """ + If the object expiration is configured (see PUT Bucket lifecycle), the + response includes this header. It includes the `expiry-date` and + `rule-id` key-value pairs that provide the object expiration + information. The value of the `rule-id` is URL-encoded. + """ + last_modified: datetime | None = ... + """The date and time that the object was last modified.""" + missing_meta: int | None = ... + """ + Set to the number of metadata entries not returned in `x-amz-meta` + headers. This can happen if you create metadata using an API like SOAP + that supports more flexible metadata than the REST API. For example, + using SOAP, you can create metadata whose values are not legal HTTP + headers. + """ + metadata: dict[str, str] | None = ... + """A map of metadata to store with the object in S3.""" + object_lock_mode: str | None = ... + """ + Indicates whether an object stored in Amazon S3 has Object Lock enabled. + For more information about S3 Object Lock, see [Object + Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html). + """ + object_lock_legal_hold_status: str | None = ... + """ + Indicates whether an object stored in Amazon S3 has an active legal + hold. + """ + object_lock_retain_until_date: datetime | None = ... + """The date and time when Object Lock is configured to expire.""" + parts_count: int | None = ... + """The count of parts this object has.""" + replication_status: str | None = ... + """ + Indicates if request involves bucket that is either a source or + destination in a Replication rule. For more information about S3 + Replication, see + [Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html). + """ + request_charged: str | None = ... + """ + If present, indicates that the requester was successfully charged for + the request. For more information, see [Using Requester Pays buckets for + storage transfers and + usage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html) + in the *Amazon Simple Storage Service user guide*. Note: This functionality is not supported for directory buckets. """ - sse_customer_key: str | None = ... + restore: str | None = ... """ - Specifies the customer-provided encryption key for Amazon S3 to use in - encrypting data. This value is used to store the object and then it is - discarded; Amazon S3 does not store the encryption key. The key must be - appropriate for use with the algorithm specified in the - `x-amz-server-side-encryption-customer-algorithm header`. This must be - the same encryption key specified in the initiate multipart upload - request. + Provides information about object restoration operation and expiration + time of the restored object copy. + """ + server_side_encryption: str | None = ... + """ + The server-side encryption algorithm used when storing requested object + in Amazon S3 or Amazon FSx. Note: - This functionality is not supported for directory buckets. + When accessing data stored in Amazon FSx file systems using S3 access + points, the only valid server side encryption option is `aws:fsx`. + """ + sse_customer_algorithm: str | None = ... + """ + Encryption algorithm used if server-side encryption with a + customer-provided encryption key was specified for object stored in + Amazon S3. + """ + ssekms_key_id: str | None = ... + """ + If present, specifies the ID (Key ID, Key ARN, or Key Alias) of the + Amazon Web Services Key Management Service (Amazon Web Services KMS) + symmetric encryption customer managed key that was used for stored in + Amazon S3 object. """ sse_customer_key_md5: str | None = ... """ - Specifies the 128-bit MD5 digest of the encryption key according to RFC - 1321. Amazon S3 uses this header for a message integrity check to ensure - that the encryption key was transmitted without error. - - Note: - This functionality is not supported for directory buckets. + 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 + to encrypt data stored in S3. For more information, see [Protecting data + using server-side encryption with customer-provided encryption keys + (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). """ - request_payer: str | None = ... + storage_class: str | None = ... """ - Confirms that the requester knows that they will be charged for the - request. Bucket owners need not specify this parameter in their - requests. If either the source or destination S3 bucket has Requester - Pays enabled, the requester will pay for the corresponding charges. For - information about downloading objects from Requester Pays buckets, see - [Downloading Objects in Requester Pays - Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) - in the *Amazon S3 User Guide*. + Provides storage class information of the object. Amazon S3 returns this + header for all objects except for S3 Standard storage class objects. - Note: - This functionality is not supported for directory buckets. + For more information, see [Storage + Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html). """ - expected_bucket_owner: str | None = ... + tag_count: int | None = ... + """The number of tags, if any, on the object.""" + version_id: str | None = ... + """An ID used to reference a specific version of the object.""" + bucket_key_enabled: bool | None = ... """ - The account ID of the expected bucket owner. If the account ID that you - provide does not match the actual owner of the bucket, the request fails - with the HTTP status code `403 Forbidden` (access denied). + Indicates whether the object stored in Amazon S3 uses an S3 bucket key + for server-side encryption with Amazon Web Services KMS (SSE-KMS). """ -@dataclass(kw_only=True) -class UploadPartOutput(_SerdeShape): - """Dataclass for UploadPartOutput structure.""" +class WriteGetObjectResponseInputDict(TypedDict, total=False): + """ + Dictionary form of `WriteGetObjectResponseInput` that either client + accepts. Its streaming body is one a sync client can send. Use + `AsyncWriteGetObjectResponseInputDict` for an async stream. + """ - server_side_encryption: str | None = ... + request_route: Required[str] + """Route prefix to the HTTP URL generated.""" + request_token: Required[str] """ - The server-side encryption algorithm used when you store this object in - Amazon S3 or Amazon FSx. + A single use encrypted token that maps `WriteGetObjectResponse` to the + end user `GetObject` request. + """ + body: SyncStreamingBlob | None + """The object data.""" + status_code: int | None + """ + The integer status code for an HTTP response of a corresponding + `GetObject` request. The following is a list of status codes. - Note: - When accessing data stored in Amazon FSx file systems using S3 access - points, the only valid server side encryption option is `aws:fsx`. + - `200 - OK` + + - `206 - Partial Content` + + - `304 - Not Modified` + + - `400 - Bad Request` + + - `401 - Unauthorized` + + - `403 - Forbidden` + + - `404 - Not Found` + + - `405 - Method Not Allowed` + + - `409 - Conflict` + + - `411 - Length Required` + + - `412 - Precondition Failed` + + - `416 - Range Not Satisfiable` + + - `500 - Internal Server Error` + + - `503 - Service Unavailable` """ - e_tag: str | None = ... - """Entity tag for the uploaded object.""" - checksum_crc32: str | None = ... + error_code: str | None """ - The Base64 encoded, 32-bit `CRC32` checksum of the part. This will only - be present if the checksum was provided in the request. For more - information, see [Checking object +

+ A string that uniquely identifies an error condition. Returned in the + + tag of the error XML response for a corresponding `GetObject` call. + Cannot be used with a successful `StatusCode` header or when the + transformed object is provided in the body. All error codes from S3 are + sentence-cased. The regular expression (regex) value is + `"^[A-Z][a-zA-Z]+$"`. +

+ """ + error_message: str | None + """ + Contains a generic description of the error condition. Returned in the + ``{=html} tag of the error XML response for a corresponding + `GetObject` call. Cannot be used with a successful `StatusCode` header + or when the transformed object is provided in body. + """ + accept_ranges: str | None + """Indicates that a range of bytes was specified.""" + cache_control: str | None + """Specifies caching behavior along the request/reply chain.""" + content_disposition: str | None + """Specifies presentational information for the object.""" + content_encoding: str | None + """ + Specifies what content encodings have been applied to the object and + thus what decoding mechanisms must be applied to obtain the media-type + referenced by the Content-Type header field. + """ + content_language: str | None + """The language the content is in.""" + content_length: int | None + """The size of the content body in bytes.""" + content_range: str | None + """The portion of the object returned in the response.""" + content_type: str | None + """A standard MIME type describing the format of the object data.""" + checksum_crc32: str | None + """ + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This specifies + the Base64 encoded, 32-bit `CRC32` checksum of the object returned by + the Object Lambda function. This may not match the checksum for the + object stored in Amazon S3. Amazon S3 will perform validation of the + checksum values only when the original `GetObject` request required + checksum validation. For more information about checksums, see [Checking + object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. + + Only one checksum header can be specified at a time. If you supply + multiple checksum headers, this request will fail. """ - checksum_crc32_c: str | None = ... + checksum_crc32_c: str | None """ - The Base64 encoded, 32-bit `CRC32C` checksum of the part. This will only - be present if the checksum was provided in the request. For more - information, see [Checking object + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This specifies + the Base64 encoded, 32-bit `CRC32C` checksum of the object returned by + the Object Lambda function. This may not match the checksum for the + object stored in Amazon S3. Amazon S3 will perform validation of the + checksum values only when the original `GetObject` request required + checksum validation. For more information about checksums, see [Checking + object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. + + Only one checksum header can be specified at a time. If you supply + multiple checksum headers, this request will fail. """ - checksum_crc64_nvme: str | None = ... + checksum_crc64_nvme: str | None """ - The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. This will - only be present if the checksum was provided in the request. For more - information, see [Checking object + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the part. + For more information, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_sha1: str | None = ... + checksum_sha1: str | None """ - The Base64 encoded, 160-bit `SHA1` checksum of the part. This will only - be present if the checksum was provided in the request. For more - information, see [Checking object + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This specifies + the Base64 encoded, 160-bit `SHA1` digest of the object returned by the + Object Lambda function. This may not match the checksum for the object + stored in Amazon S3. Amazon S3 will perform validation of the checksum + values only when the original `GetObject` request required checksum + validation. For more information about checksums, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. + + Only one checksum header can be specified at a time. If you supply + multiple checksum headers, this request will fail. """ - checksum_sha256: str | None = ... + checksum_sha256: str | None """ - The Base64 encoded, 256-bit `SHA256` checksum of the part. This will - only be present if the checksum was provided in the request. For more - information, see [Checking object + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This specifies + the Base64 encoded, 256-bit `SHA256` digest of the object returned by + the Object Lambda function. This may not match the checksum for the + object stored in Amazon S3. Amazon S3 will perform validation of the + checksum values only when the original `GetObject` request required + checksum validation. For more information about checksums, see [Checking + object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. + + Only one checksum header can be specified at a time. If you supply + multiple checksum headers, this request will fail. """ - checksum_sha512: str | None = ... + checksum_sha512: str | None """ - The Base64 encoded, 512-bit `SHA512` checksum of the part. This will - only be present if the checksum was provided in the request. For more - information, see [Checking object + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 512-bit `SHA512` digest of the part. For + more information, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_md5: str | None = ... + checksum_md5: str | None """ - The Base64 encoded, 128-bit `MD5` checksum of the part. This will only - be present if the checksum was provided in the request. For more + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `MD5` digest of the part. For more information, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_xxhash64: str | None = ... + checksum_xxhash64: str | None """ - The Base64 encoded, 64-bit `XXHASH64` checksum of the part. This will - only be present if the checksum was provided in the request. For more - information, see [Checking object + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH64` checksum of the part. + For more information, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_xxhash3: str | None = ... + checksum_xxhash3: str | None """ - The Base64 encoded, 64-bit `XXHASH3` checksum of the part. This will - only be present if the checksum was provided in the request. For more - information, see [Checking object + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 64-bit `XXHASH3` checksum of the part. For + more information, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_xxhash128: str | None = ... + checksum_xxhash128: str | None """ - The Base64 encoded, 128-bit `XXHASH128` checksum of the part. This will - only be present if the checksum was provided in the request. For more - information, see [Checking object + This header can be used as a data integrity check to verify that the + data received is the same data that was originally sent. This header + specifies the Base64 encoded, 128-bit `XXHASH128` checksum of the part. + For more information, see [Checking object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - sse_customer_algorithm: str | None = ... + delete_marker: bool | None """ - If server-side encryption with a customer-provided encryption key was - requested, the response will include this header to confirm the - encryption algorithm that's used. - - Note: - This functionality is not supported for directory buckets. + Specifies whether an object stored in Amazon S3 is (`true`) or is not + (`false`) a delete marker. To learn more about delete markers, see + [Working with delete + markers](https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html). """ - sse_customer_key_md5: str | None = ... + e_tag: str | None """ - If server-side encryption with a customer-provided encryption key was - requested, the response will include this header to provide the - round-trip message integrity verification of the customer-provided - encryption key. - - Note: - This functionality is not supported for directory buckets. + An opaque identifier assigned by a web server to a specific version of a + resource found at a URL. """ - ssekms_key_id: str | None = ... + expires: str | None + """The date and time at which the object is no longer cacheable.""" + expiration: str | None """ - If present, indicates the ID of the KMS key that was used for object - encryption. + If the object expiration is configured (see PUT Bucket lifecycle), the + response includes this header. It includes the `expiry-date` and + `rule-id` key-value pairs that provide the object expiration + information. The value of the `rule-id` is URL-encoded. """ - bucket_key_enabled: bool | None = ... + last_modified: datetime | None + """The date and time that the object was last modified.""" + missing_meta: int | None """ - Indicates whether the multipart upload uses an S3 Bucket Key for - server-side encryption with Key Management Service (KMS) keys (SSE-KMS). + Set to the number of metadata entries not returned in `x-amz-meta` + headers. This can happen if you create metadata using an API like SOAP + that supports more flexible metadata than the REST API. For example, + using SOAP, you can create metadata whose values are not legal HTTP + headers. """ - request_charged: str | None = ... + metadata: Mapping[str, str] | None + """A map of metadata to store with the object in S3.""" + object_lock_mode: str | None + """ + Indicates whether an object stored in Amazon S3 has Object Lock enabled. + For more information about S3 Object Lock, see [Object + Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html). + """ + object_lock_legal_hold_status: str | None + """ + Indicates whether an object stored in Amazon S3 has an active legal + hold. + """ + object_lock_retain_until_date: datetime | None + """The date and time when Object Lock is configured to expire.""" + parts_count: int | None + """The count of parts this object has.""" + replication_status: str | None + """ + Indicates if request involves bucket that is either a source or + destination in a Replication rule. For more information about S3 + Replication, see + [Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html). + """ + request_charged: str | None """ If present, indicates that the requester was successfully charged for the request. For more information, see [Using Requester Pays buckets for @@ -8463,66 +15354,74 @@ class UploadPartOutput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - response_metadata: ResponseMetadata = ... + restore: str | None """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Provides information about object restoration operation and expiration + time of the restored object copy. + """ + server_side_encryption: str | None """ + The server-side encryption algorithm used when storing requested object + in Amazon S3 or Amazon FSx. -@dataclass(kw_only=True) -class VersioningConfiguration(_SerdeShape): + Note: + When accessing data stored in Amazon FSx file systems using S3 access + points, the only valid server side encryption option is `aws:fsx`. """ - Describes the versioning state of an Amazon S3 bucket. For more - information, see [PUT Bucket - versioning](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) - in the *Amazon S3 API Reference*. + sse_customer_algorithm: str | None """ - - mfa_delete: str | None = ... + Encryption algorithm used if server-side encryption with a + customer-provided encryption key was specified for object stored in + Amazon S3. """ - Specifies whether MFA delete is enabled in the bucket versioning - configuration. This element is only returned if the bucket has been - configured with MFA delete. If the bucket has never been so configured, - this element is not returned. + ssekms_key_id: str | None """ - status: str | None = ... - """The versioning state of the bucket.""" - -@dataclass(kw_only=True) -class WebsiteConfiguration(_SerdeShape): - """Specifies website configuration parameters for an Amazon S3 bucket.""" - - error_document: ErrorDocument | None = ... - """The name of the error document for the website.""" - index_document: IndexDocument | None = ... - """The name of the index document for the website.""" - redirect_all_requests_to: RedirectAllRequestsTo | None = ... + If present, specifies the ID (Key ID, Key ARN, or Key Alias) of the + Amazon Web Services Key Management Service (Amazon Web Services KMS) + symmetric encryption customer managed key that was used for stored in + Amazon S3 object. """ - The redirect behavior for every request to this bucket's website - endpoint. + sse_customer_key_md5: str | None + """ + 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 + to encrypt data stored in S3. For more information, see [Protecting data + using server-side encryption with customer-provided encryption keys + (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). + """ + storage_class: str | None + """ + Provides storage class information of the object. Amazon S3 returns this + header for all objects except for S3 Standard storage class objects. - Warning: - If you specify this property, you can't specify any other property. + For more information, see [Storage + Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html). + """ + tag_count: int | None + """The number of tags, if any, on the object.""" + version_id: str | None + """An ID used to reference a specific version of the object.""" + bucket_key_enabled: bool | None + """ + Indicates whether the object stored in Amazon S3 uses an S3 bucket key + for server-side encryption with Amazon Web Services KMS (SSE-KMS). """ - routing_rules: list[RoutingRule] | None = ... - """Rules that define when a redirect is applied and the redirect behavior.""" -@dataclass(kw_only=True) -class WriteGetObjectResponseInput(_SerdeShape): - """Dataclass for WriteGetObjectResponseInput structure.""" +class AsyncWriteGetObjectResponseInputDict(TypedDict, total=False): + """ + Dictionary form of `WriteGetObjectResponseInput` for the async client. + Its streaming body may also be an async stream. + """ - request_route: str | None = ... + request_route: Required[str] """Route prefix to the HTTP URL generated.""" - request_token: str | None = ... + request_token: Required[str] """ A single use encrypted token that maps `WriteGetObjectResponse` to the end user `GetObject` request. """ - body: StreamingBlob = ... + body: StreamingBlob | None """The object data.""" - status_code: int | None = ... + status_code: int | None """ The integer status code for an HTTP response of a corresponding `GetObject` request. The following is a list of status codes. @@ -8555,7 +15454,7 @@ class WriteGetObjectResponseInput(_SerdeShape): - `503 - Service Unavailable` """ - error_code: str | None = ... + error_code: str | None """

A string that uniquely identifies an error condition. Returned in the @@ -8567,34 +15466,34 @@ class WriteGetObjectResponseInput(_SerdeShape): `"^[A-Z][a-zA-Z]+$"`.

""" - error_message: str | None = ... + error_message: str | None """ Contains a generic description of the error condition. Returned in the ``{=html} tag of the error XML response for a corresponding `GetObject` call. Cannot be used with a successful `StatusCode` header or when the transformed object is provided in body. """ - accept_ranges: str | None = ... + accept_ranges: str | None """Indicates that a range of bytes was specified.""" - cache_control: str | None = ... + cache_control: str | None """Specifies caching behavior along the request/reply chain.""" - content_disposition: str | None = ... + content_disposition: str | None """Specifies presentational information for the object.""" - content_encoding: str | None = ... + content_encoding: str | None """ Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. """ - content_language: str | None = ... + content_language: str | None """The language the content is in.""" - content_length: int | None = ... + content_length: int | None """The size of the content body in bytes.""" - content_range: str | None = ... + content_range: str | None """The portion of the object returned in the response.""" - content_type: str | None = ... + content_type: str | None """A standard MIME type describing the format of the object data.""" - checksum_crc32: str | None = ... + checksum_crc32: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies @@ -8610,7 +15509,7 @@ class WriteGetObjectResponseInput(_SerdeShape): Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail. """ - checksum_crc32_c: str | None = ... + checksum_crc32_c: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies @@ -8626,7 +15525,7 @@ class WriteGetObjectResponseInput(_SerdeShape): Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail. """ - checksum_crc64_nvme: str | None = ... + checksum_crc64_nvme: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header @@ -8635,7 +15534,7 @@ class WriteGetObjectResponseInput(_SerdeShape): integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_sha1: str | None = ... + checksum_sha1: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies @@ -8650,7 +15549,7 @@ class WriteGetObjectResponseInput(_SerdeShape): Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail. """ - checksum_sha256: str | None = ... + checksum_sha256: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies @@ -8666,7 +15565,7 @@ class WriteGetObjectResponseInput(_SerdeShape): Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail. """ - checksum_sha512: str | None = ... + checksum_sha512: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header @@ -8675,7 +15574,7 @@ class WriteGetObjectResponseInput(_SerdeShape): integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_md5: str | None = ... + checksum_md5: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header @@ -8684,7 +15583,7 @@ class WriteGetObjectResponseInput(_SerdeShape): integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_xxhash64: str | None = ... + checksum_xxhash64: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header @@ -8693,7 +15592,7 @@ class WriteGetObjectResponseInput(_SerdeShape): integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_xxhash3: str | None = ... + checksum_xxhash3: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header @@ -8702,7 +15601,7 @@ class WriteGetObjectResponseInput(_SerdeShape): integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - checksum_xxhash128: str | None = ... + checksum_xxhash128: str | None """ This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header @@ -8711,30 +15610,30 @@ class WriteGetObjectResponseInput(_SerdeShape): integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html) in the *Amazon S3 User Guide*. """ - delete_marker: bool | None = ... + delete_marker: bool | None """ Specifies whether an object stored in Amazon S3 is (`true`) or is not (`false`) a delete marker. To learn more about delete markers, see [Working with delete markers](https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html). """ - e_tag: str | None = ... + e_tag: str | None """ An opaque identifier assigned by a web server to a specific version of a resource found at a URL. """ - expires: str | None = ... + expires: str | None """The date and time at which the object is no longer cacheable.""" - expiration: str | None = ... + expiration: str | None """ If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. It includes the `expiry-date` and `rule-id` key-value pairs that provide the object expiration information. The value of the `rule-id` is URL-encoded. """ - last_modified: datetime | None = ... + last_modified: datetime | None """The date and time that the object was last modified.""" - missing_meta: int | None = ... + missing_meta: int | None """ Set to the number of metadata entries not returned in `x-amz-meta` headers. This can happen if you create metadata using an API like SOAP @@ -8742,31 +15641,31 @@ class WriteGetObjectResponseInput(_SerdeShape): using SOAP, you can create metadata whose values are not legal HTTP headers. """ - metadata: dict[str, str] | None = ... + metadata: Mapping[str, str] | None """A map of metadata to store with the object in S3.""" - object_lock_mode: str | None = ... + object_lock_mode: str | None """ Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more information about S3 Object Lock, see [Object Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html). """ - object_lock_legal_hold_status: str | None = ... + object_lock_legal_hold_status: str | None """ Indicates whether an object stored in Amazon S3 has an active legal hold. """ - object_lock_retain_until_date: datetime | None = ... + object_lock_retain_until_date: datetime | None """The date and time when Object Lock is configured to expire.""" - parts_count: int | None = ... + parts_count: int | None """The count of parts this object has.""" - replication_status: str | None = ... + replication_status: str | None """ Indicates if request involves bucket that is either a source or destination in a Replication rule. For more information about S3 Replication, see [Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html). """ - request_charged: str | None = ... + request_charged: str | None """ If present, indicates that the requester was successfully charged for the request. For more information, see [Using Requester Pays buckets for @@ -8777,12 +15676,12 @@ class WriteGetObjectResponseInput(_SerdeShape): Note: This functionality is not supported for directory buckets. """ - restore: str | None = ... + restore: str | None """ Provides information about object restoration operation and expiration time of the restored object copy. """ - server_side_encryption: str | None = ... + server_side_encryption: str | None """ The server-side encryption algorithm used when storing requested object in Amazon S3 or Amazon FSx. @@ -8791,27 +15690,27 @@ class WriteGetObjectResponseInput(_SerdeShape): When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is `aws:fsx`. """ - sse_customer_algorithm: str | None = ... + sse_customer_algorithm: str | None """ Encryption algorithm used if server-side encryption with a customer-provided encryption key was specified for object stored in Amazon S3. """ - ssekms_key_id: str | None = ... + ssekms_key_id: str | None """ If present, specifies the ID (Key ID, Key ARN, or Key Alias) of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key that was used for stored in Amazon S3 object. """ - sse_customer_key_md5: str | None = ... + sse_customer_key_md5: str | None """ 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to encrypt data stored in S3. For more information, see [Protecting data using server-side encryption with customer-provided encryption keys (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html). """ - storage_class: str | None = ... + storage_class: str | None """ Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects. @@ -8819,11 +15718,11 @@ class WriteGetObjectResponseInput(_SerdeShape): For more information, see [Storage Classes](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html). """ - tag_count: int | None = ... + tag_count: int | None """The number of tags, if any, on the object.""" - version_id: str | None = ... + version_id: str | None """An ID used to reference a specific version of the object.""" - bucket_key_enabled: bool | None = ... + bucket_key_enabled: bool | None """ Indicates whether the object stored in Amazon S3 uses an S3 bucket key for server-side encryption with Amazon Web Services KMS (SSE-KMS). diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/_private/schemas.py b/clients/aws-sdk-s3/src/aws_sdk_s3/_private/schemas.py index 8d864028c..a1a154230 100644 --- a/clients/aws-sdk-s3/src/aws_sdk_s3/_private/schemas.py +++ b/clients/aws-sdk-s3/src/aws_sdk_s3/_private/schemas.py @@ -900,7 +900,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/aio/client.py b/clients/aws-sdk-s3/src/aws_sdk_s3/aio/client.py index 671f46ea0..c0ebbd13f 100644 --- a/clients/aws-sdk-s3/src/aws_sdk_s3/aio/client.py +++ b/clients/aws-sdk-s3/src/aws_sdk_s3/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -16,7 +16,6 @@ from .. import models as _models from ..models import ( SelectObjectContentEventStream, - SelectObjectContentInput, SelectObjectContentOutput, _SelectObjectContentEventStreamDeserializer, ) @@ -28,227 +27,116 @@ if TYPE_CHECKING: from ..models import ( - AbortMultipartUploadInput, AbortMultipartUploadOutput, - CompleteMultipartUploadInput, CompleteMultipartUploadOutput, - CopyObjectInput, CopyObjectOutput, - CreateBucketInput, - CreateBucketMetadataConfigurationInput, CreateBucketMetadataConfigurationOutput, - CreateBucketMetadataTableConfigurationInput, CreateBucketMetadataTableConfigurationOutput, CreateBucketOutput, - CreateMultipartUploadInput, CreateMultipartUploadOutput, - CreateSessionInput, CreateSessionOutput, - DeleteBucketAnalyticsConfigurationInput, DeleteBucketAnalyticsConfigurationOutput, - DeleteBucketCorsInput, DeleteBucketCorsOutput, - DeleteBucketEncryptionInput, DeleteBucketEncryptionOutput, - DeleteBucketInput, - DeleteBucketIntelligentTieringConfigurationInput, DeleteBucketIntelligentTieringConfigurationOutput, - DeleteBucketInventoryConfigurationInput, DeleteBucketInventoryConfigurationOutput, - DeleteBucketLifecycleInput, DeleteBucketLifecycleOutput, - DeleteBucketMetadataConfigurationInput, DeleteBucketMetadataConfigurationOutput, - DeleteBucketMetadataTableConfigurationInput, DeleteBucketMetadataTableConfigurationOutput, - DeleteBucketMetricsConfigurationInput, DeleteBucketMetricsConfigurationOutput, DeleteBucketOutput, - DeleteBucketOwnershipControlsInput, DeleteBucketOwnershipControlsOutput, - DeleteBucketPolicyInput, DeleteBucketPolicyOutput, - DeleteBucketReplicationInput, DeleteBucketReplicationOutput, - DeleteBucketTaggingInput, DeleteBucketTaggingOutput, - DeleteBucketWebsiteInput, DeleteBucketWebsiteOutput, - DeleteObjectAnnotationInput, DeleteObjectAnnotationOutput, - DeleteObjectInput, DeleteObjectOutput, - DeleteObjectTaggingInput, DeleteObjectTaggingOutput, - DeleteObjectsInput, DeleteObjectsOutput, - DeletePublicAccessBlockInput, DeletePublicAccessBlockOutput, - GetBucketAbacInput, GetBucketAbacOutput, - GetBucketAccelerateConfigurationInput, GetBucketAccelerateConfigurationOutput, - GetBucketAclInput, GetBucketAclOutput, - GetBucketAnalyticsConfigurationInput, GetBucketAnalyticsConfigurationOutput, - GetBucketCorsInput, GetBucketCorsOutput, - GetBucketEncryptionInput, GetBucketEncryptionOutput, - GetBucketIntelligentTieringConfigurationInput, GetBucketIntelligentTieringConfigurationOutput, - GetBucketInventoryConfigurationInput, GetBucketInventoryConfigurationOutput, - GetBucketLifecycleConfigurationInput, GetBucketLifecycleConfigurationOutput, - GetBucketLocationInput, GetBucketLocationOutput, - GetBucketLoggingInput, GetBucketLoggingOutput, - GetBucketMetadataConfigurationInput, GetBucketMetadataConfigurationOutput, - GetBucketMetadataTableConfigurationInput, GetBucketMetadataTableConfigurationOutput, - GetBucketMetricsConfigurationInput, GetBucketMetricsConfigurationOutput, - GetBucketNotificationConfigurationInput, GetBucketNotificationConfigurationOutput, - GetBucketOwnershipControlsInput, GetBucketOwnershipControlsOutput, - GetBucketPolicyInput, GetBucketPolicyOutput, - GetBucketPolicyStatusInput, GetBucketPolicyStatusOutput, - GetBucketReplicationInput, GetBucketReplicationOutput, - GetBucketRequestPaymentInput, GetBucketRequestPaymentOutput, - GetBucketTaggingInput, GetBucketTaggingOutput, - GetBucketVersioningInput, GetBucketVersioningOutput, - GetBucketWebsiteInput, GetBucketWebsiteOutput, - GetObjectAclInput, GetObjectAclOutput, - GetObjectAnnotationInput, GetObjectAnnotationOutput, - GetObjectAttributesInput, GetObjectAttributesOutput, - GetObjectInput, - GetObjectLegalHoldInput, GetObjectLegalHoldOutput, - GetObjectLockConfigurationInput, GetObjectLockConfigurationOutput, GetObjectOutput, - GetObjectRetentionInput, GetObjectRetentionOutput, - GetObjectTaggingInput, GetObjectTaggingOutput, - GetObjectTorrentInput, GetObjectTorrentOutput, - GetPublicAccessBlockInput, GetPublicAccessBlockOutput, - HeadBucketInput, HeadBucketOutput, - HeadObjectInput, HeadObjectOutput, - ListBucketAnalyticsConfigurationsInput, ListBucketAnalyticsConfigurationsOutput, - ListBucketIntelligentTieringConfigurationsInput, ListBucketIntelligentTieringConfigurationsOutput, - ListBucketInventoryConfigurationsInput, ListBucketInventoryConfigurationsOutput, - ListBucketMetricsConfigurationsInput, ListBucketMetricsConfigurationsOutput, - ListBucketsInput, ListBucketsOutput, - ListDirectoryBucketsInput, ListDirectoryBucketsOutput, - ListMultipartUploadsInput, ListMultipartUploadsOutput, - ListObjectAnnotationsInput, ListObjectAnnotationsOutput, - ListObjectVersionsInput, ListObjectVersionsOutput, - ListObjectsInput, ListObjectsOutput, - ListObjectsV2Input, ListObjectsV2Output, - ListPartsInput, ListPartsOutput, - PutBucketAbacInput, PutBucketAbacOutput, - PutBucketAccelerateConfigurationInput, PutBucketAccelerateConfigurationOutput, - PutBucketAclInput, PutBucketAclOutput, - PutBucketAnalyticsConfigurationInput, PutBucketAnalyticsConfigurationOutput, - PutBucketCorsInput, PutBucketCorsOutput, - PutBucketEncryptionInput, PutBucketEncryptionOutput, - PutBucketIntelligentTieringConfigurationInput, PutBucketIntelligentTieringConfigurationOutput, - PutBucketInventoryConfigurationInput, PutBucketInventoryConfigurationOutput, - PutBucketLifecycleConfigurationInput, PutBucketLifecycleConfigurationOutput, - PutBucketLoggingInput, PutBucketLoggingOutput, - PutBucketMetricsConfigurationInput, PutBucketMetricsConfigurationOutput, - PutBucketNotificationConfigurationInput, PutBucketNotificationConfigurationOutput, - PutBucketOwnershipControlsInput, PutBucketOwnershipControlsOutput, - PutBucketPolicyInput, PutBucketPolicyOutput, - PutBucketReplicationInput, PutBucketReplicationOutput, - PutBucketRequestPaymentInput, PutBucketRequestPaymentOutput, - PutBucketTaggingInput, PutBucketTaggingOutput, - PutBucketVersioningInput, PutBucketVersioningOutput, - PutBucketWebsiteInput, PutBucketWebsiteOutput, - PutObjectAclInput, PutObjectAclOutput, - PutObjectAnnotationInput, PutObjectAnnotationOutput, - PutObjectInput, - PutObjectLegalHoldInput, PutObjectLegalHoldOutput, - PutObjectLockConfigurationInput, PutObjectLockConfigurationOutput, PutObjectOutput, - PutObjectRetentionInput, PutObjectRetentionOutput, - PutObjectTaggingInput, PutObjectTaggingOutput, - PutPublicAccessBlockInput, PutPublicAccessBlockOutput, - RenameObjectInput, RenameObjectOutput, - RestoreObjectInput, RestoreObjectOutput, - UpdateBucketMetadataAnnotationTableConfigurationInput, UpdateBucketMetadataAnnotationTableConfigurationOutput, - UpdateBucketMetadataInventoryTableConfigurationInput, UpdateBucketMetadataInventoryTableConfigurationOutput, - UpdateBucketMetadataJournalTableConfigurationInput, UpdateBucketMetadataJournalTableConfigurationOutput, - UpdateObjectEncryptionInput, UpdateObjectEncryptionOutput, - UploadPartCopyInput, UploadPartCopyOutput, - UploadPartInput, UploadPartOutput, - WriteGetObjectResponseInput, WriteGetObjectResponseOutput, ) @@ -294,13 +182,28 @@ class AsyncS3Client(AsyncClient[AsyncS3Config]): """ _client_plugins = ( + user_agent_plugin, aws_user_agent_plugin, flexible_checksums_plugin, - user_agent_plugin, ) + @_overload + async def abort_multipart_upload( + self, + request: _models.AbortMultipartUploadInput + | _models.AbortMultipartUploadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AbortMultipartUploadOutput: ... + + @_overload async def abort_multipart_upload( - self, input: AbortMultipartUploadInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AbortMultipartUploadInputDict], ) -> AbortMultipartUploadOutput: """ This operation aborts a multipart upload. After a multipart upload is @@ -340,33 +243,33 @@ async def abort_multipart_upload( Permissions - : - **General purpose bucket permissions** - For information about - permissions required to use the multipart upload, see [Multipart - Upload and - Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - For information about + permissions required to use the multipart upload, see [Multipart + Upload and + Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `AbortMultipartUpload`: @@ -386,8 +289,6 @@ async def abort_multipart_upload( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `AbortMultipartUploadInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -397,10 +298,34 @@ async def abort_multipart_upload( Returns: An instance of `AbortMultipartUploadOutput`. """ - return await self._invoke(input, _models.ABORT_MULTIPART_UPLOAD, [], plugins) + async def abort_multipart_upload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AbortMultipartUploadOutput: + return await self._invoke( + self._select_input(_models.ABORT_MULTIPART_UPLOAD, args, kwargs), + _models.ABORT_MULTIPART_UPLOAD, + [], + plugins, + ) + + @_overload async def complete_multipart_upload( - self, input: CompleteMultipartUploadInput, plugins: list[Plugin] | None = None + self, + request: _models.CompleteMultipartUploadInput + | _models.CompleteMultipartUploadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CompleteMultipartUploadOutput: ... + + @_overload + async def complete_multipart_upload( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CompleteMultipartUploadInputDict], ) -> CompleteMultipartUploadOutput: """ Completes a multipart upload by assembling previously uploaded parts. @@ -468,77 +393,77 @@ async def complete_multipart_upload( Permissions - : - **General purpose bucket permissions** - For information about - permissions required to use the multipart upload API, see [Multipart - Upload and - Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - in the *Amazon S3 User Guide*. - - If you provide an [additional checksum - value](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html) - in your `MultipartUpload` requests and the object is encrypted with - Key Management Service, you must have permission to use the - `kms:Decrypt` action for the `CompleteMultipartUpload` request to - succeed. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + : - **General purpose bucket permissions** - For information about + permissions required to use the multipart upload API, see + [Multipart Upload and + Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + in the *Amazon S3 User Guide*. - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + If you provide an [additional checksum + value](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html) + in your `MultipartUpload` requests and the object is encrypted + with Key Management Service, you must have permission to use the + `kms:Decrypt` action for the `CompleteMultipartUpload` request to + succeed. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Special errors - : - Error Code: `EntityTooSmall` + : - Error Code: `EntityTooSmall` - - Description: Your proposed upload is smaller than the minimum - allowed object size. Each part must be at least 5 MB in size, - except the last part. + - Description: Your proposed upload is smaller than the minimum + allowed object size. Each part must be at least 5 MB in size, + except the last part. - - HTTP Status Code: 400 Bad Request + - HTTP Status Code: 400 Bad Request - - Error Code: `InvalidPart` + - Error Code: `InvalidPart` - - Description: One or more of the specified parts could not be - found. The part might not have been uploaded, or the specified - ETag might not have matched the uploaded part's ETag. + - Description: One or more of the specified parts could not be + found. The part might not have been uploaded, or the specified + ETag might not have matched the uploaded part's ETag. - - HTTP Status Code: 400 Bad Request + - HTTP Status Code: 400 Bad Request - - Error Code: `InvalidPartOrder` + - Error Code: `InvalidPartOrder` - - Description: The list of parts was not in ascending order. The - parts list must be specified in order by part number. + - Description: The list of parts was not in ascending order. The + parts list must be specified in order by part number. - - HTTP Status Code: 400 Bad Request + - HTTP Status Code: 400 Bad Request - - Error Code: `NoSuchUpload` + - Error Code: `NoSuchUpload` - - Description: The specified multipart upload does not exist. The - upload ID might be invalid, or the multipart upload might have - been aborted or completed. + - Description: The specified multipart upload does not exist. The + upload ID might be invalid, or the multipart upload might have + been aborted or completed. - - HTTP Status Code: 404 Not Found + - HTTP Status Code: 404 Not Found HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `CompleteMultipartUpload`: @@ -558,8 +483,6 @@ async def complete_multipart_upload( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CompleteMultipartUploadInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -569,10 +492,33 @@ async def complete_multipart_upload( Returns: An instance of `CompleteMultipartUploadOutput`. """ - return await self._invoke(input, _models.COMPLETE_MULTIPART_UPLOAD, [], plugins) + async def complete_multipart_upload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CompleteMultipartUploadOutput: + return await self._invoke( + self._select_input(_models.COMPLETE_MULTIPART_UPLOAD, args, kwargs), + _models.COMPLETE_MULTIPART_UPLOAD, + [], + plugins, + ) + + @_overload + async def copy_object( + self, + request: _models.CopyObjectInput | _models.CopyObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyObjectOutput: ... + + @_overload async def copy_object( - self, input: CopyObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyObjectInputDict], ) -> CopyObjectOutput: """ Creates a copy of an object that is already stored in Amazon S3. @@ -635,129 +581,129 @@ async def copy_object( Authentication and authorization - : All `CopyObject` requests must be authenticated and signed by using - IAM credentials (access key ID and secret access key for the IAM - identities). All headers with the `x-amz-` prefix, including - `x-amz-copy-source`, must be signed. For more information, see [REST - Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). + : All `CopyObject` requests must be authenticated and signed by using + IAM credentials (access key ID and secret access key for the IAM + identities). All headers with the `x-amz-` prefix, including + `x-amz-copy-source`, must be signed. For more information, see [REST + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). - **Directory buckets** - You must use the IAM credentials to - authenticate and authorize your access to the `CopyObject` API - operation, instead of using the temporary security credentials through - the `CreateSession` API operation. + **Directory buckets** - You must use the IAM credentials to + authenticate and authorize your access to the `CopyObject` API + operation, instead of using the temporary security credentials + through the `CreateSession` API operation. - Amazon Web Services CLI or SDKs handles authentication and - authorization on your behalf. + Amazon Web Services CLI or SDKs handles authentication and + authorization on your behalf. Permissions - : You must have *read* access to the source object and *write* access to - the destination bucket. - - - **General purpose bucket permissions** - You must have permissions - in an IAM policy based on the source and destination bucket types in - a `CopyObject` operation. - - - If the source object is in a general purpose bucket, you must have - **`s3:GetObject`** permission to read the source object that is - being copied. - - - If the destination bucket is a general purpose bucket, you must - have **`s3:PutObject`** permission to write the object copy to the - destination bucket. - - - **Directory bucket permissions** - You must have permissions in a - bucket policy or an IAM identity-based policy based on the source - and destination bucket types in a `CopyObject` operation. - - - If the source object that you want to copy is in a directory - bucket, you must have the **`s3express:CreateSession`** permission - in the `Action` element of a policy to read the object. If no - session mode is specified, the session will be created with the - maximum allowable privilege, attempting `ReadWrite` first, then - `ReadOnly` if `ReadWrite` is not permitted. If you want to - explicitly restrict the access to be read-only, you can set the - `s3express:SessionMode` condition key to `ReadOnly` on the copy - source bucket. - - - If the copy destination is a directory bucket, you must have the - **`s3express:CreateSession`** permission in the `Action` element - of a policy to write the object to the destination. The - `s3express:SessionMode` condition key can't be set to `ReadOnly` - on the copy destination bucket. - - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. - - For example policies, see [Example bucket policies for S3 Express - One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - and [Amazon Web Services Identity and Access Management (IAM) - identity-based policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) - in the *Amazon S3 User Guide*. + : You must have *read* access to the source object and *write* access + to the destination bucket. + + - **General purpose bucket permissions** - You must have permissions + in an IAM policy based on the source and destination bucket types + in a `CopyObject` operation. + + - If the source object is in a general purpose bucket, you must + have **`s3:GetObject`** permission to read the source object + that is being copied. + + - If the destination bucket is a general purpose bucket, you must + have **`s3:PutObject`** permission to write the object copy to + the destination bucket. + + - **Directory bucket permissions** - You must have permissions in a + bucket policy or an IAM identity-based policy based on the source + and destination bucket types in a `CopyObject` operation. + + - If the source object that you want to copy is in a directory + bucket, you must have the **`s3express:CreateSession`** + permission in the `Action` element of a policy to read the + object. If no session mode is specified, the session will be + created with the maximum allowable privilege, attempting + `ReadWrite` first, then `ReadOnly` if `ReadWrite` is not + permitted. If you want to explicitly restrict the access to be + read-only, you can set the `s3express:SessionMode` condition key + to `ReadOnly` on the copy source bucket. + + - If the copy destination is a directory bucket, you must have the + **`s3express:CreateSession`** permission in the `Action` element + of a policy to write the object to the destination. The + `s3express:SessionMode` condition key can't be set to + `ReadOnly` on the copy destination bucket. + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. + + For example policies, see [Example bucket policies for S3 Express + One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + and [Amazon Web Services Identity and Access Management (IAM) + identity-based policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) + in the *Amazon S3 User Guide*. Response and special errors - : When the request is an HTTP 1.1 request, the response is chunk - encoded. When the request is not an HTTP 1.1 request, the response - would not contain the `Content-Length`. You always need to read the - entire response body to check if the copy succeeds. - - - If the copy is successful, you receive a response with information - about the copied object. - - - A copy request might return an error when Amazon S3 receives the - copy request or while Amazon S3 is copying the files. A `200 OK` - response can contain either a success or an error. - - - If the error occurs before the copy action starts, you receive a - standard Amazon S3 error. - - - If the error occurs during the copy operation, the error response - is embedded in the `200 OK` response. For example, in a - cross-region copy, you may encounter throttling and receive a - `200 OK` response. For more information, see [Resolve the Error - 200 response when copying objects to Amazon - S3](https://repost.aws/knowledge-center/s3-resolve-200-internalerror). - The `200 OK` status code means the copy was accepted, but it - doesn't mean the copy is complete. Another example is when you - disconnect from Amazon S3 before the copy is complete, Amazon S3 - might cancel the copy and you may receive a `200 OK` response. You - must stay connected to Amazon S3 until the entire response is - successfully received and processed. - - If you call this API operation directly, make sure to design your - application to parse the content of the response and handle it - appropriately. If you use Amazon Web Services SDKs, SDKs handle - this condition. The SDKs detect the embedded error and apply error - handling per your configuration settings (including automatically - retrying the request as appropriate). If the condition persists, - the SDKs throw an exception (or, for the SDKs that don't use - exceptions, they return an error). + : When the request is an HTTP 1.1 request, the response is chunk + encoded. When the request is not an HTTP 1.1 request, the response + would not contain the `Content-Length`. You always need to read the + entire response body to check if the copy succeeds. + + - If the copy is successful, you receive a response with information + about the copied object. + + - A copy request might return an error when Amazon S3 receives the + copy request or while Amazon S3 is copying the files. A `200 OK` + response can contain either a success or an error. + + - If the error occurs before the copy action starts, you receive a + standard Amazon S3 error. + + - If the error occurs during the copy operation, the error + response is embedded in the `200 OK` response. For example, in a + cross-region copy, you may encounter throttling and receive a + `200 OK` response. For more information, see [Resolve the Error + 200 response when copying objects to Amazon + S3](https://repost.aws/knowledge-center/s3-resolve-200-internalerror). + The `200 OK` status code means the copy was accepted, but it + doesn't mean the copy is complete. Another example is when you + disconnect from Amazon S3 before the copy is complete, Amazon S3 + might cancel the copy and you may receive a `200 OK` response. + You must stay connected to Amazon S3 until the entire response + is successfully received and processed. + + If you call this API operation directly, make sure to design + your application to parse the content of the response and handle + it appropriately. If you use Amazon Web Services SDKs, SDKs + handle this condition. The SDKs detect the embedded error and + apply error handling per your configuration settings (including + automatically retrying the request as appropriate). If the + condition persists, the SDKs throw an exception (or, for the + SDKs that don't use exceptions, they return an error). Charge - : The copy request charge is based on the storage class and Region that - you specify for the destination object. The request can also result in - a data retrieval charge for the source if the source storage class - bills for data retrieval. If the copy source is in a different region, - the data transfer is billed to the copy source account. For pricing - information, see [Amazon S3 - pricing](http://aws.amazon.com/s3/pricing/). + : The copy request charge is based on the storage class and Region + that you specify for the destination object. The request can also + result in a data retrieval charge for the source if the source + storage class bills for data retrieval. If the copy source is in a + different region, the data transfer is billed to the copy source + account. For pricing information, see [Amazon S3 + pricing](http://aws.amazon.com/s3/pricing/). HTTP Host header syntax - : - **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : - **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. - - **Amazon S3 on Outposts** - When you use this action with S3 on - Outposts through the REST API, you must direct requests to the S3 on - Outposts hostname. The S3 on Outposts hostname takes the form - ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. - The hostname isn't required when you use the Amazon Web Services - CLI or SDKs. + - **Amazon S3 on Outposts** - When you use this action with S3 on + Outposts through the REST API, you must direct requests to the S3 + on Outposts hostname. The S3 on Outposts hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + The hostname isn't required when you use the Amazon Web Services + CLI or SDKs. The following operations are related to `CopyObject`: @@ -771,8 +717,6 @@ async def copy_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CopyObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -782,10 +726,33 @@ async def copy_object( Returns: An instance of `CopyObjectOutput`. """ - return await self._invoke(input, _models.COPY_OBJECT, [], plugins) + async def copy_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyObjectOutput: + return await self._invoke( + self._select_input(_models.COPY_OBJECT, args, kwargs), + _models.COPY_OBJECT, + [], + plugins, + ) + + @_overload + async def create_bucket( + self, + request: _models.CreateBucketInput | _models.CreateBucketInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBucketOutput: ... + + @_overload async def create_bucket( - self, input: CreateBucketInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBucketInputDict], ) -> CreateBucketOutput: """ Note: @@ -846,41 +813,41 @@ async def create_bucket( Permissions - : - **General purpose bucket permissions** - In addition to the - `s3:CreateBucket` permission, the following permissions are required - in a policy when your `CreateBucket` request includes specific - headers: - - - **Access control lists (ACLs)** - In your `CreateBucket` request, - if you specify an access control list (ACL) and set it to - `public-read`, `public-read-write`, `authenticated-read`, or if - you explicitly specify any other custom ACLs, both - `s3:CreateBucket` and `s3:PutBucketAcl` permissions are required. - In your `CreateBucket` request, if you set the ACL to `private`, - or if you don't specify any ACLs, only the `s3:CreateBucket` - permission is required. - - - **Object Lock** - In your `CreateBucket` request, if you set - `x-amz-bucket-object-lock-enabled` to true, the - `s3:PutBucketObjectLockConfiguration` and `s3:PutBucketVersioning` - permissions are required. - - - **S3 Object Ownership** - If your `CreateBucket` request includes - the `x-amz-object-ownership` header, then the - `s3:PutBucketOwnershipControls` permission is required. - - Warning: - To set an ACL on a bucket as part of a `CreateBucket` request, you - must explicitly set S3 Object Ownership for the bucket to a + : - **General purpose bucket permissions** - In addition to the + `s3:CreateBucket` permission, the following permissions are + required in a policy when your `CreateBucket` request includes + specific headers: + + - **Access control lists (ACLs)** - In your `CreateBucket` + request, if you specify an access control list (ACL) and set it + to `public-read`, `public-read-write`, `authenticated-read`, or + if you explicitly specify any other custom ACLs, both + `s3:CreateBucket` and `s3:PutBucketAcl` permissions are + required. In your `CreateBucket` request, if you set the ACL to + `private`, or if you don't specify any ACLs, only the + `s3:CreateBucket` permission is required. + + - **Object Lock** - In your `CreateBucket` request, if you set + `x-amz-bucket-object-lock-enabled` to true, the + `s3:PutBucketObjectLockConfiguration` and + `s3:PutBucketVersioning` permissions are required. + + - **S3 Object Ownership** - If your `CreateBucket` request + includes the `x-amz-object-ownership` header, then the + `s3:PutBucketOwnershipControls` permission is required. + + Warning: + To set an ACL on a bucket as part of a `CreateBucket` request, + you must explicitly set S3 Object Ownership for the bucket to a different value than the default, `BucketOwnerEnforced`. - Additionally, if your desired bucket ACL grants public access, you - must first create the bucket (without the bucket ACL) and then - explicitly disable Block Public Access on the bucket before using - `PutBucketAcl` to set the ACL. If you try to create a bucket with - a public ACL, the request will fail. - - For the majority of modern use cases in S3, we recommend that you - keep all Block Public Access settings enabled and keep ACLs + Additionally, if your desired bucket ACL grants public access, + you must first create the bucket (without the bucket ACL) and + then explicitly disable Block Public Access on the bucket before + using `PutBucketAcl` to set the ACL. If you try to create a + bucket with a public ACL, the request will fail. + + For the majority of modern use cases in S3, we recommend that + you keep all Block Public Access settings enabled and keep ACLs disabled. If you would like to share data with users outside of your account, you can use bucket policies as needed. For more information, see [Controlling ownership of objects and disabling @@ -890,48 +857,49 @@ async def create_bucket( storage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html) in the *Amazon S3 User Guide*. - - **S3 Block Public Access** - If your specific use case requires - granting public access to your S3 resources, you can disable Block - Public Access. Specifically, you can create a new bucket with - Block Public Access enabled, then separately call the - [`DeletePublicAccessBlock`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html) - API. To use this operation, you must have the - `s3:PutBucketPublicAccessBlock` permission. For more information - about S3 Block Public Access, see [Blocking public access to your - Amazon S3 - storage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html) + - **S3 Block Public Access** - If your specific use case requires + granting public access to your S3 resources, you can disable + Block Public Access. Specifically, you can create a new bucket + with Block Public Access enabled, then separately call the + [`DeletePublicAccessBlock`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html) + API. To use this operation, you must have the + `s3:PutBucketPublicAccessBlock` permission. For more information + about S3 Block Public Access, see [Blocking public access to + your Amazon S3 + storage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - You must have the + `s3express:CreateBucket` permission in an IAM identity-based + policy instead of a bucket policy. Cross-account access to this + API operation isn't supported. This operation can only be + performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - You must have the - `s3express:CreateBucket` permission in an IAM identity-based policy - instead of a bucket policy. Cross-account access to this API - operation isn't supported. This operation can only be performed by - the Amazon Web Services account that owns the resource. For more - information about directory bucket policies and permissions, see - [Amazon Web Services Identity and Access Management (IAM) for S3 - Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. - - Warning: + Warning: The permissions for ACLs, Object Lock, S3 Object Ownership, and S3 Block Public Access are not supported for directory buckets. For directory buckets, all Block Public Access settings are enabled at the bucket level and S3 Object Ownership is set to Bucket owner enforced (ACLs disabled). These settings can't be modified. - For more information about permissions for creating and working with - directory buckets, see [Directory + For more information about permissions for creating and working + with directory buckets, see [Directory buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) - in the *Amazon S3 User Guide*. For more information about supported - S3 features for directory buckets, see [Features of S3 Express One + in the *Amazon S3 User Guide*. For more information about + supported S3 features for directory buckets, see [Features of S3 + Express One Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-one-zone.html#s3-express-features) in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `CreateBucket`: @@ -945,8 +913,6 @@ async def create_bucket( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateBucketInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -956,12 +922,34 @@ async def create_bucket( Returns: An instance of `CreateBucketOutput`. """ - return await self._invoke(input, _models.CREATE_BUCKET, [], plugins) + async def create_bucket( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBucketOutput: + return await self._invoke( + self._select_input(_models.CREATE_BUCKET, args, kwargs), + _models.CREATE_BUCKET, + [], + plugins, + ) + + @_overload + async def create_bucket_metadata_configuration( + self, + request: _models.CreateBucketMetadataConfigurationInput + | _models.CreateBucketMetadataConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBucketMetadataConfigurationOutput: ... + + @_overload async def create_bucket_metadata_configuration( self, - input: CreateBucketMetadataConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBucketMetadataConfigurationInputDict], ) -> CreateBucketMetadataConfigurationOutput: """ Creates an S3 Metadata V2 metadata configuration for a general purpose @@ -971,54 +959,55 @@ async def create_bucket_metadata_configuration( Permissions - : To use this operation, you must have the following permissions. For - more information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the following permissions. For + more information, see [Setting up permissions for configuring + metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you want to encrypt your metadata tables with server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), you need - additional permissions in your KMS key policy. For more information, - see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + If you want to encrypt your metadata tables with server-side + encryption with Key Management Service (KMS) keys (SSE-KMS), you + need additional permissions in your KMS key policy. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you also want to integrate your table bucket with Amazon Web - Services analytics services so that you can query your metadata table, - you need additional permissions. For more information, see - [Integrating Amazon S3 Tables with Amazon Web Services analytics - services](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html) - in the *Amazon S3 User Guide*. + If you also want to integrate your table bucket with Amazon Web + Services analytics services so that you can query your metadata + table, you need additional permissions. For more information, see + [Integrating Amazon S3 Tables with Amazon Web Services analytics + services](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html) + in the *Amazon S3 User Guide*. - To query your metadata tables, you need additional permissions. For - more information, see [Permissions for querying metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-bucket-query-permissions.html) - in the *Amazon S3 User Guide*. + To query your metadata tables, you need additional permissions. For + more information, see [Permissions for querying metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-bucket-query-permissions.html) + in the *Amazon S3 User Guide*. - - `s3:CreateBucketMetadataTableConfiguration` + - `s3:CreateBucketMetadataTableConfiguration` - Note: + Note: The IAM policy action name is the same for the V1 and V2 API operations. - - `s3tables:CreateTableBucket` + - `s3tables:CreateTableBucket` - - `s3tables:CreateNamespace` + - `s3tables:CreateNamespace` - - `s3tables:GetTable` + - `s3tables:GetTable` - - `s3tables:CreateTable` + - `s3tables:CreateTable` - - `s3tables:PutTablePolicy` + - `s3tables:PutTablePolicy` - - `s3tables:PutTableBucketPolicy` + - `s3tables:PutTableBucketPolicy` - - `s3tables:PutTableEncryption` + - `s3tables:PutTableEncryption` - - `kms:DescribeKey` + - `kms:DescribeKey` - - `iam:PassRole` - required if you include an - `AnnotationTableConfiguration` with an IAM role. + - `iam:PassRole` - required if you include an + `AnnotationTableConfiguration` with an IAM role. The following operations are related to `CreateBucketMetadataConfiguration`: @@ -1046,8 +1035,6 @@ async def create_bucket_metadata_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateBucketMetadataConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1057,14 +1044,36 @@ async def create_bucket_metadata_configuration( Returns: An instance of `CreateBucketMetadataConfigurationOutput`. """ + + async def create_bucket_metadata_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBucketMetadataConfigurationOutput: return await self._invoke( - input, _models.CREATE_BUCKET_METADATA_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_BUCKET_METADATA_CONFIGURATION, args, kwargs + ), + _models.CREATE_BUCKET_METADATA_CONFIGURATION, + [], + plugins, ) + @_overload async def create_bucket_metadata_table_configuration( self, - input: CreateBucketMetadataTableConfigurationInput, + request: _models.CreateBucketMetadataTableConfigurationInput + | _models.CreateBucketMetadataTableConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateBucketMetadataTableConfigurationOutput: ... + + @_overload + async def create_bucket_metadata_table_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBucketMetadataTableConfigurationInputDict], ) -> CreateBucketMetadataTableConfigurationOutput: """ Warning: @@ -1087,34 +1096,35 @@ async def create_bucket_metadata_table_configuration( Permissions - : To use this operation, you must have the following permissions. For - more information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the following permissions. For + more information, see [Setting up permissions for configuring + metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you want to encrypt your metadata tables with server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), you need - additional permissions. For more information, see [Setting up - permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + If you want to encrypt your metadata tables with server-side + encryption with Key Management Service (KMS) keys (SSE-KMS), you + need additional permissions. For more information, see [Setting up + permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you also want to integrate your table bucket with Amazon Web - Services analytics services so that you can query your metadata table, - you need additional permissions. For more information, see - [Integrating Amazon S3 Tables with Amazon Web Services analytics - services](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html) - in the *Amazon S3 User Guide*. + If you also want to integrate your table bucket with Amazon Web + Services analytics services so that you can query your metadata + table, you need additional permissions. For more information, see + [Integrating Amazon S3 Tables with Amazon Web Services analytics + services](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html) + in the *Amazon S3 User Guide*. - - `s3:CreateBucketMetadataTableConfiguration` + - `s3:CreateBucketMetadataTableConfiguration` - - `s3tables:CreateNamespace` + - `s3tables:CreateNamespace` - - `s3tables:GetTable` + - `s3tables:GetTable` - - `s3tables:CreateTable` + - `s3tables:CreateTable` - - `s3tables:PutTablePolicy` + - `s3tables:PutTablePolicy` The following operations are related to `CreateBucketMetadataTableConfiguration`: @@ -1129,8 +1139,6 @@ async def create_bucket_metadata_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateBucketMetadataTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1140,12 +1148,36 @@ async def create_bucket_metadata_table_configuration( Returns: An instance of `CreateBucketMetadataTableConfigurationOutput`. """ + + async def create_bucket_metadata_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBucketMetadataTableConfigurationOutput: return await self._invoke( - input, _models.CREATE_BUCKET_METADATA_TABLE_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_BUCKET_METADATA_TABLE_CONFIGURATION, args, kwargs + ), + _models.CREATE_BUCKET_METADATA_TABLE_CONFIGURATION, + [], + plugins, ) + @_overload + async def create_multipart_upload( + self, + request: _models.CreateMultipartUploadInput + | _models.CreateMultipartUploadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMultipartUploadOutput: ... + + @_overload async def create_multipart_upload( - self, input: CreateMultipartUploadInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMultipartUploadInputDict], ) -> CreateMultipartUploadOutput: """ Warning: @@ -1204,208 +1236,210 @@ async def create_multipart_upload( Request signing - : For request signing, multipart upload is just a series of regular - requests. You initiate a multipart upload, send one or more requests - to upload parts, and then complete the multipart upload process. You - sign each request individually. There is nothing special about signing - multipart upload requests. For more information about signing, see - [Authenticating Requests (Amazon Web Services Signature Version - 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) - in the *Amazon S3 User Guide*. + : For request signing, multipart upload is just a series of regular + requests. You initiate a multipart upload, send one or more requests + to upload parts, and then complete the multipart upload process. You + sign each request individually. There is nothing special about + signing multipart upload requests. For more information about + signing, see [Authenticating Requests (Amazon Web Services Signature + Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) + in the *Amazon S3 User Guide*. Permissions - : - **General purpose bucket permissions** - To perform a multipart - upload with encryption using an Key Management Service (KMS) KMS - key, the requester must have permission to the `kms:Decrypt` and - `kms:GenerateDataKey` actions on the key. The requester must also - have permissions for the `kms:GenerateDataKey` action for the - `CreateMultipartUpload` API. Then, the requester needs permissions - for the `kms:Decrypt` action on the `UploadPart` and - `UploadPartCopy` APIs. These permissions are required because Amazon - S3 must decrypt and read data from the encrypted file parts before - it completes the multipart upload. For more information, see - [Multipart upload API and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) - and [Protecting data using server-side encryption with Amazon Web - Services - KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - To perform a multipart + upload with encryption using an Key Management Service (KMS) KMS + key, the requester must have permission to the `kms:Decrypt` and + `kms:GenerateDataKey` actions on the key. The requester must also + have permissions for the `kms:GenerateDataKey` action for the + `CreateMultipartUpload` API. Then, the requester needs permissions + for the `kms:Decrypt` action on the `UploadPart` and + `UploadPartCopy` APIs. These permissions are required because + Amazon S3 must decrypt and read data from the encrypted file parts + before it completes the multipart upload. For more information, + see [Multipart upload API and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) + and [Protecting data using server-side encryption with Amazon Web + Services + KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . Encryption - : - **General purpose buckets** - Server-side encryption is for data - encryption at rest. Amazon S3 encrypts your data as it writes it to - disks in its data centers and decrypts it when you access it. Amazon - S3 automatically encrypts all new objects that are uploaded to an S3 - bucket. When doing a multipart upload, if you don't specify - encryption information in your request, the encryption setting of - the uploaded parts is set to the default encryption configuration of - the destination bucket. By default, all buckets have a base level of - encryption configuration that uses server-side encryption with - Amazon S3 managed keys (SSE-S3). If the destination bucket has a - default encryption configuration that uses server-side encryption - with an Key Management Service (KMS) key (SSE-KMS), or a - customer-provided encryption key (SSE-C), Amazon S3 uses the - corresponding KMS key, or a customer-provided key to encrypt the - uploaded parts. When you perform a CreateMultipartUpload operation, - if you want to use a different type of encryption setting for the - uploaded parts, you can request that Amazon S3 encrypts the object - with a different encryption key (such as an Amazon S3 managed key, a - KMS key, or a customer-provided key). When the encryption setting in - your request is different from the default encryption configuration - of the destination bucket, the encryption setting in your request - takes precedence. If you choose to provide your own encryption key, - the request headers you provide in - [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) - and - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) - requests must match the headers you used in the - `CreateMultipartUpload` request. - - - Use KMS keys (SSE-KMS) that include the Amazon Web Services - managed key (`aws/s3`) and KMS customer managed keys stored in Key - Management Service (KMS) -- If you want Amazon Web Services to - manage the keys used to encrypt data, specify the following - headers in the request. - - - `x-amz-server-side-encryption` - - - `x-amz-server-side-encryption-aws-kms-key-id` - - - `x-amz-server-side-encryption-context` - - Note: + : - **General purpose buckets** - Server-side encryption is for data + encryption at rest. Amazon S3 encrypts your data as it writes it + to disks in its data centers and decrypts it when you access it. + Amazon S3 automatically encrypts all new objects that are uploaded + to an S3 bucket. When doing a multipart upload, if you don't + specify encryption information in your request, the encryption + setting of the uploaded parts is set to the default encryption + configuration of the destination bucket. By default, all buckets + have a base level of encryption configuration that uses + server-side encryption with Amazon S3 managed keys (SSE-S3). If + the destination bucket has a default encryption configuration that + uses server-side encryption with an Key Management Service (KMS) + key (SSE-KMS), or a customer-provided encryption key (SSE-C), + Amazon S3 uses the corresponding KMS key, or a customer-provided + key to encrypt the uploaded parts. When you perform a + CreateMultipartUpload operation, if you want to use a different + type of encryption setting for the uploaded parts, you can request + that Amazon S3 encrypts the object with a different encryption key + (such as an Amazon S3 managed key, a KMS key, or a + customer-provided key). When the encryption setting in your + request is different from the default encryption configuration of + the destination bucket, the encryption setting in your request + takes precedence. If you choose to provide your own encryption + key, the request headers you provide in + [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) + requests must match the headers you used in the + `CreateMultipartUpload` request. + + - Use KMS keys (SSE-KMS) that include the Amazon Web Services + managed key (`aws/s3`) and KMS customer managed keys stored in + Key Management Service (KMS) -- If you want Amazon Web Services + to manage the keys used to encrypt data, specify the following + headers in the request. + + - `x-amz-server-side-encryption` + + - `x-amz-server-side-encryption-aws-kms-key-id` + + - `x-amz-server-side-encryption-context` + + Note: - If you specify `x-amz-server-side-encryption:aws:kms`, but don't provide `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the Amazon Web Services managed key (`aws/s3` key) in KMS to protect the data. - - To perform a multipart upload with encryption by using an Amazon - Web Services KMS key, the requester must have permission to the - `kms:Decrypt` and `kms:GenerateDataKey*` actions on the key. - These permissions are required because Amazon S3 must decrypt - and read data from the encrypted file parts before it completes - the multipart upload. For more information, see [Multipart - upload API and + - To perform a multipart upload with encryption by using an + Amazon Web Services KMS key, the requester must have + permission to the `kms:Decrypt` and `kms:GenerateDataKey*` + actions on the key. These permissions are required because + Amazon S3 must decrypt and read data from the encrypted file + parts before it completes the multipart upload. For more + information, see [Multipart upload API and permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) and [Protecting data using server-side encryption with Amazon Web Services KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) in the *Amazon S3 User Guide*. - - If your Identity and Access Management (IAM) user or role is in - the same Amazon Web Services account as the KMS key, then you - must have these permissions on the key policy. If your IAM user - or role is in a different account from the key, then you must - have the permissions on both the key policy and your IAM user or - role. - - - All `GET` and `PUT` requests for an object protected by KMS fail - if you don't make them by using Secure Sockets Layer (SSL), - Transport Layer Security (TLS), or Signature Version 4. For - information about configuring any of the officially supported - Amazon Web Services SDKs and Amazon Web Services CLI, see - [Specifying the Signature Version in Request + - If your Identity and Access Management (IAM) user or role is + in the same Amazon Web Services account as the KMS key, then + you must have these permissions on the key policy. If your IAM + user or role is in a different account from the key, then you + must have the permissions on both the key policy and your IAM + user or role. + + - All `GET` and `PUT` requests for an object protected by KMS + fail if you don't make them by using Secure Sockets Layer + (SSL), Transport Layer Security (TLS), or Signature Version 4. + For information about configuring any of the officially + supported Amazon Web Services SDKs and Amazon Web Services + CLI, see [Specifying the Signature Version in Request Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version) in the *Amazon S3 User Guide*. - For more information about server-side encryption with KMS keys - (SSE-KMS), see [Protecting Data Using Server-Side Encryption with - KMS - keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) - in the *Amazon S3 User Guide*. - - - Use customer-provided encryption keys (SSE-C) -- If you want to - manage your own encryption keys, provide all the following headers - in the request. + For more information about server-side encryption with KMS keys + (SSE-KMS), see [Protecting Data Using Server-Side Encryption + with KMS + keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) + in the *Amazon S3 User Guide*. - - `x-amz-server-side-encryption-customer-algorithm` + - Use customer-provided encryption keys (SSE-C) -- If you want to + manage your own encryption keys, provide all the following + headers in the request. - - `x-amz-server-side-encryption-customer-key` + - `x-amz-server-side-encryption-customer-algorithm` - - `x-amz-server-side-encryption-customer-key-MD5` + - `x-amz-server-side-encryption-customer-key` - For more information about server-side encryption with - customer-provided encryption keys (SSE-C), see [Protecting data - using server-side encryption with customer-provided encryption - keys - (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + - `x-amz-server-side-encryption-customer-key-MD5` - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: server-side encryption - with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side - encryption with KMS keys (SSE-KMS) (`aws:kms`). We recommend that - the bucket's default encryption uses the desired encryption - configuration and you don't override the bucket default encryption - in your `CreateSession` requests or `PUT` object requests. Then, new - objects are automatically encrypted with the desired encryption - settings. For more information, see [Protecting data with - server-side - encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) - in the *Amazon S3 User Guide*. For more information about the - encryption overriding behaviors in directory buckets, see - [Specifying server-side encryption with KMS for new object - uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). + For more information about server-side encryption with + customer-provided encryption keys (SSE-C), see [Protecting data + using server-side encryption with customer-provided encryption + keys + (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. - In the Zonal endpoint API calls (except - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) - and - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) - using the REST API, the encryption request headers must match the - encryption settings that are specified in the `CreateSession` - request. You can't override the values of the encryption settings - (`x-amz-server-side-encryption`, - `x-amz-server-side-encryption-aws-kms-key-id`, - `x-amz-server-side-encryption-context`, and - `x-amz-server-side-encryption-bucket-key-enabled`) that are - specified in the `CreateSession` request. You don't need to - explicitly specify these encryption settings values in Zonal - endpoint API calls, and Amazon S3 will use the encryption settings - values from the `CreateSession` request to protect new objects in - the directory bucket. + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side + encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and + server-side encryption with KMS keys (SSE-KMS) (`aws:kms`). We + recommend that the bucket's default encryption uses the desired + encryption configuration and you don't override the bucket + default encryption in your `CreateSession` requests or `PUT` + object requests. Then, new objects are automatically encrypted + with the desired encryption settings. For more information, see + [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. For more information about the + encryption overriding behaviors in directory buckets, see + [Specifying server-side encryption with KMS for new object + uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). + + In the Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) + using the REST API, the encryption request headers must match the + encryption settings that are specified in the `CreateSession` + request. You can't override the values of the encryption settings + (`x-amz-server-side-encryption`, + `x-amz-server-side-encryption-aws-kms-key-id`, + `x-amz-server-side-encryption-context`, and + `x-amz-server-side-encryption-bucket-key-enabled`) that are + specified in the `CreateSession` request. You don't need to + explicitly specify these encryption settings values in Zonal + endpoint API calls, and Amazon S3 will use the encryption settings + values from the `CreateSession` request to protect new objects in + the directory bucket. - Note: + Note: When you use the CLI or the Amazon Web Services SDKs, for - `CreateSession`, the session token refreshes automatically to avoid - service interruptions when a session expires. The CLI or the Amazon - Web Services SDKs use the bucket's default encryption configuration - for the `CreateSession` request. It's not supported to override the - encryption settings values in the `CreateSession` request. So in the - Zonal endpoint API calls (except + `CreateSession`, the session token refreshes automatically to + avoid service interruptions when a session expires. The CLI or the + Amazon Web Services SDKs use the bucket's default encryption + configuration for the `CreateSession` request. It's not supported + to override the encryption settings values in the `CreateSession` + request. So in the Zonal endpoint API calls (except [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) and [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)), the encryption request headers must match the default encryption configuration of the directory bucket. - Note: + Note: For directory buckets, when you perform a `CreateMultipartUpload` - operation and an `UploadPartCopy` operation, the request headers you - provide in the `CreateMultipartUpload` request must match the + operation and an `UploadPartCopy` operation, the request headers + you provide in the `CreateMultipartUpload` request must match the default encryption configuration of the destination bucket. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `CreateMultipartUpload`: @@ -1425,8 +1459,6 @@ async def create_multipart_upload( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateMultipartUploadInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1436,10 +1468,33 @@ async def create_multipart_upload( Returns: An instance of `CreateMultipartUploadOutput`. """ - return await self._invoke(input, _models.CREATE_MULTIPART_UPLOAD, [], plugins) + async def create_multipart_upload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMultipartUploadOutput: + return await self._invoke( + self._select_input(_models.CREATE_MULTIPART_UPLOAD, args, kwargs), + _models.CREATE_MULTIPART_UPLOAD, + [], + plugins, + ) + + @_overload + async def create_session( + self, + request: _models.CreateSessionInput | _models.CreateSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSessionOutput: ... + + @_overload async def create_session( - self, input: CreateSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSessionInputDict], ) -> CreateSessionOutput: """ Creates a session that establishes temporary security credentials to @@ -1510,88 +1565,88 @@ async def create_session( Permissions - : To obtain temporary security credentials, you must create a bucket - policy or an IAM identity-based policy that grants - `s3express:CreateSession` permission to the bucket. In a policy, you - can have the `s3express:SessionMode` condition key to control who can - create a `ReadWrite` or `ReadOnly` session. For more information about - `ReadWrite` or `ReadOnly` sessions, see - [`x-amz-create-session-mode`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters) - . For example policies, see [Example bucket policies for S3 Express - One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - and [Amazon Web Services Identity and Access Management (IAM) - identity-based policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) - in the *Amazon S3 User Guide*. + : To obtain temporary security credentials, you must create a bucket + policy or an IAM identity-based policy that grants + `s3express:CreateSession` permission to the bucket. In a policy, you + can have the `s3express:SessionMode` condition key to control who + can create a `ReadWrite` or `ReadOnly` session. For more information + about `ReadWrite` or `ReadOnly` sessions, see + [`x-amz-create-session-mode`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters) + . For example policies, see [Example bucket policies for S3 Express + One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + and [Amazon Web Services Identity and Access Management (IAM) + identity-based policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) + in the *Amazon S3 User Guide*. - To grant cross-account access to Zonal endpoint API operations, the - bucket policy should also grant both accounts the - `s3express:CreateSession` permission. + To grant cross-account access to Zonal endpoint API operations, the + bucket policy should also grant both accounts the + `s3express:CreateSession` permission. - If you want to encrypt objects with SSE-KMS, you must also have the - `kms:GenerateDataKey` and the `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the target KMS key. + If you want to encrypt objects with SSE-KMS, you must also have the + `kms:GenerateDataKey` and the `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the target KMS key. Encryption - : For directory buckets, there are only two supported options for - server-side encryption: server-side encryption with Amazon S3 managed - keys (SSE-S3) (`AES256`) and server-side encryption with KMS keys - (SSE-KMS) (`aws:kms`). We recommend that the bucket's default - encryption uses the desired encryption configuration and you don't - override the bucket default encryption in your `CreateSession` - requests or `PUT` object requests. Then, new objects are automatically - encrypted with the desired encryption settings. For more information, - see [Protecting data with server-side - encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) - in the *Amazon S3 User Guide*. For more information about the - encryption overriding behaviors in directory buckets, see [Specifying - server-side encryption with KMS for new object - uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). - - For [Zonal endpoint (object-level) API - operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-differences.html#s3-express-differences-api-operations) - except - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) - and - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), - you authenticate and authorize requests through - [CreateSession](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - for low latency. To encrypt new objects in a directory bucket with - SSE-KMS, you must specify SSE-KMS as the directory bucket's default - encryption configuration with a KMS key (specifically, a [customer - managed - key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk)). - Then, when a session is created for Zonal endpoint API operations, new - objects are automatically encrypted and decrypted with SSE-KMS and S3 - Bucket Keys during the session. + : For directory buckets, there are only two supported options for + server-side encryption: server-side encryption with Amazon S3 + managed keys (SSE-S3) (`AES256`) and server-side encryption with KMS + keys (SSE-KMS) (`aws:kms`). We recommend that the bucket's default + encryption uses the desired encryption configuration and you don't + override the bucket default encryption in your `CreateSession` + requests or `PUT` object requests. Then, new objects are + automatically encrypted with the desired encryption settings. For + more information, see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. For more information about the + encryption overriding behaviors in directory buckets, see + [Specifying server-side encryption with KMS for new object + uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). - Note: + For [Zonal endpoint (object-level) API + operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-differences.html#s3-express-differences-api-operations) + except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), + you authenticate and authorize requests through + [CreateSession](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + for low latency. To encrypt new objects in a directory bucket with + SSE-KMS, you must specify SSE-KMS as the directory bucket's default + encryption configuration with a KMS key (specifically, a [customer + managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk)). + Then, when a session is created for Zonal endpoint API operations, + new objects are automatically encrypted and decrypted with SSE-KMS + and S3 Bucket Keys during the session. + + Note: Only 1 [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) - is supported per directory bucket for the lifetime of the bucket. The - [Amazon Web Services managed + is supported per directory bucket for the lifetime of the bucket. + The [Amazon Web Services managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) (`aws/s3`) isn't supported. After you specify SSE-KMS as your bucket's default encryption configuration with a customer managed key, you can't change the customer managed key for the bucket's SSE-KMS configuration. - In the Zonal endpoint API calls (except - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) - and - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) - using the REST API, you can't override the values of the encryption - settings (`x-amz-server-side-encryption`, - `x-amz-server-side-encryption-aws-kms-key-id`, - `x-amz-server-side-encryption-context`, and - `x-amz-server-side-encryption-bucket-key-enabled`) from the - `CreateSession` request. You don't need to explicitly specify these - encryption settings values in Zonal endpoint API calls, and Amazon S3 - will use the encryption settings values from the `CreateSession` - request to protect new objects in the directory bucket. + In the Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) + using the REST API, you can't override the values of the encryption + settings (`x-amz-server-side-encryption`, + `x-amz-server-side-encryption-aws-kms-key-id`, + `x-amz-server-side-encryption-context`, and + `x-amz-server-side-encryption-bucket-key-enabled`) from the + `CreateSession` request. You don't need to explicitly specify these + encryption settings values in Zonal endpoint API calls, and Amazon + S3 will use the encryption settings values from the `CreateSession` + request to protect new objects in the directory bucket. - Note: + Note: When you use the CLI or the Amazon Web Services SDKs, for `CreateSession`, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon @@ -1602,13 +1657,13 @@ async def create_session( [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) and [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)), - it's not supported to override the values of the encryption settings - from the `CreateSession` request. + it's not supported to override the values of the encryption + settings from the `CreateSession` request. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Warning: You must URL encode any signed header values that contain spaces. For @@ -1616,8 +1671,6 @@ async def create_session( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1627,10 +1680,33 @@ async def create_session( Returns: An instance of `CreateSessionOutput`. """ - return await self._invoke(input, _models.CREATE_SESSION, [], plugins) + async def create_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSessionOutput: + return await self._invoke( + self._select_input(_models.CREATE_SESSION, args, kwargs), + _models.CREATE_SESSION, + [], + plugins, + ) + + @_overload + async def delete_bucket( + self, + request: _models.DeleteBucketInput | _models.DeleteBucketInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketOutput: ... + + @_overload async def delete_bucket( - self, input: DeleteBucketInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketInputDict], ) -> DeleteBucketOutput: """ Deletes the S3 bucket. All objects (including all object versions and @@ -1657,24 +1733,24 @@ async def delete_bucket( Permissions - : - **General purpose bucket permissions** - You must have the - `s3:DeleteBucket` permission on the specified bucket in a policy. - - - **Directory bucket permissions** - You must have the - `s3express:DeleteBucket` permission in an IAM identity-based policy - instead of a bucket policy. Cross-account access to this API - operation isn't supported. This operation can only be performed by - the Amazon Web Services account that owns the resource. For more - information about directory bucket policies and permissions, see - [Amazon Web Services Identity and Access Management (IAM) for S3 - Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - You must have the + `s3:DeleteBucket` permission on the specified bucket in a policy. + + - **Directory bucket permissions** - You must have the + `s3express:DeleteBucket` permission in an IAM identity-based + policy instead of a bucket policy. Cross-account access to this + API operation isn't supported. This operation can only be + performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `DeleteBucket`: @@ -1688,8 +1764,6 @@ async def delete_bucket( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1699,14 +1773,36 @@ async def delete_bucket( Returns: An instance of `DeleteBucketOutput`. """ - return await self._invoke(input, _models.DELETE_BUCKET, [], plugins) + async def delete_bucket( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketOutput: + return await self._invoke( + self._select_input(_models.DELETE_BUCKET, args, kwargs), + _models.DELETE_BUCKET, + [], + plugins, + ) + + @_overload async def delete_bucket_analytics_configuration( self, - input: DeleteBucketAnalyticsConfigurationInput, + request: _models.DeleteBucketAnalyticsConfigurationInput + | _models.DeleteBucketAnalyticsConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, - ) -> DeleteBucketAnalyticsConfigurationOutput: - """ + ) -> DeleteBucketAnalyticsConfigurationOutput: ... + + @_overload + async def delete_bucket_analytics_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketAnalyticsConfigurationInputDict], + ) -> DeleteBucketAnalyticsConfigurationOutput: + """ Note: This operation is not supported for directory buckets. @@ -1741,8 +1837,6 @@ async def delete_bucket_analytics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketAnalyticsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1752,12 +1846,35 @@ async def delete_bucket_analytics_configuration( Returns: An instance of `DeleteBucketAnalyticsConfigurationOutput`. """ + + async def delete_bucket_analytics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketAnalyticsConfigurationOutput: return await self._invoke( - input, _models.DELETE_BUCKET_ANALYTICS_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_ANALYTICS_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_ANALYTICS_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_bucket_cors( + self, + request: _models.DeleteBucketCorsInput | _models.DeleteBucketCorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketCorsOutput: ... + + @_overload async def delete_bucket_cors( - self, input: DeleteBucketCorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketCorsInputDict], ) -> DeleteBucketCorsOutput: """ Note: @@ -1785,8 +1902,6 @@ async def delete_bucket_cors( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketCorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1796,10 +1911,34 @@ async def delete_bucket_cors( Returns: An instance of `DeleteBucketCorsOutput`. """ - return await self._invoke(input, _models.DELETE_BUCKET_CORS, [], plugins) + async def delete_bucket_cors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketCorsOutput: + return await self._invoke( + self._select_input(_models.DELETE_BUCKET_CORS, args, kwargs), + _models.DELETE_BUCKET_CORS, + [], + plugins, + ) + + @_overload async def delete_bucket_encryption( - self, input: DeleteBucketEncryptionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteBucketEncryptionInput + | _models.DeleteBucketEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketEncryptionOutput: ... + + @_overload + async def delete_bucket_encryption( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketEncryptionInputDict], ) -> DeleteBucketEncryptionOutput: """ This implementation of the DELETE action resets the default encryption @@ -1821,30 +1960,31 @@ async def delete_bucket_encryption( Permissions - : - **General purpose bucket permissions** - The - `s3:PutEncryptionConfiguration` permission is required in a policy. - The bucket owner has this permission by default. The bucket owner - can grant this permission to others. For more information about - permissions, see [Permissions Related to Bucket - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + : - **General purpose bucket permissions** - The + `s3:PutEncryptionConfiguration` permission is required in a + policy. The bucket owner has this permission by default. The + bucket owner can grant this permission to others. For more + information about permissions, see [Permissions Related to Bucket + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutEncryptionConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - To grant access to this API + operation, you must have the + `s3express:PutEncryptionConfiguration` permission in an IAM + identity-based policy instead of a bucket policy. Cross-account + access to this API operation isn't supported. This operation can + only be performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `DeleteBucketEncryption`: @@ -1858,8 +1998,6 @@ async def delete_bucket_encryption( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1869,12 +2007,34 @@ async def delete_bucket_encryption( Returns: An instance of `DeleteBucketEncryptionOutput`. """ - return await self._invoke(input, _models.DELETE_BUCKET_ENCRYPTION, [], plugins) + async def delete_bucket_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketEncryptionOutput: + return await self._invoke( + self._select_input(_models.DELETE_BUCKET_ENCRYPTION, args, kwargs), + _models.DELETE_BUCKET_ENCRYPTION, + [], + plugins, + ) + + @_overload + async def delete_bucket_intelligent_tiering_configuration( + self, + request: _models.DeleteBucketIntelligentTieringConfigurationInput + | _models.DeleteBucketIntelligentTieringConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketIntelligentTieringConfigurationOutput: ... + + @_overload async def delete_bucket_intelligent_tiering_configuration( self, - input: DeleteBucketIntelligentTieringConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketIntelligentTieringConfigurationInputDict], ) -> DeleteBucketIntelligentTieringConfigurationOutput: """ Note: @@ -1918,8 +2078,6 @@ async def delete_bucket_intelligent_tiering_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketIntelligentTieringConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1929,14 +2087,36 @@ async def delete_bucket_intelligent_tiering_configuration( Returns: An instance of `DeleteBucketIntelligentTieringConfigurationOutput`. """ + + async def delete_bucket_intelligent_tiering_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketIntelligentTieringConfigurationOutput: return await self._invoke( - input, _models.DELETE_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_bucket_inventory_configuration( + self, + request: _models.DeleteBucketInventoryConfigurationInput + | _models.DeleteBucketInventoryConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketInventoryConfigurationOutput: ... + + @_overload async def delete_bucket_inventory_configuration( self, - input: DeleteBucketInventoryConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketInventoryConfigurationInputDict], ) -> DeleteBucketInventoryConfigurationOutput: """ Deletes an S3 Inventory configuration (identified by the inventory ID) @@ -1958,35 +2138,35 @@ async def delete_bucket_inventory_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:PutInventoryConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:PutInventoryConfiguration` permission is required in a policy. - For more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:PutInventoryConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutInventoryConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:PutInventoryConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutInventoryConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about the Amazon S3 inventory feature, see [Amazon S3 Inventory](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html). @@ -2010,8 +2190,6 @@ async def delete_bucket_inventory_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketInventoryConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2021,12 +2199,36 @@ async def delete_bucket_inventory_configuration( Returns: An instance of `DeleteBucketInventoryConfigurationOutput`. """ + + async def delete_bucket_inventory_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketInventoryConfigurationOutput: return await self._invoke( - input, _models.DELETE_BUCKET_INVENTORY_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_INVENTORY_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_INVENTORY_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_bucket_lifecycle( + self, + request: _models.DeleteBucketLifecycleInput + | _models.DeleteBucketLifecycleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketLifecycleOutput: ... + + @_overload async def delete_bucket_lifecycle( - self, input: DeleteBucketLifecycleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketLifecycleInputDict], ) -> DeleteBucketLifecycleOutput: """ Deletes the lifecycle configuration from the specified bucket. Amazon S3 @@ -2037,43 +2239,44 @@ async def delete_bucket_lifecycle( Permissions - : - **General purpose bucket permissions** - By default, all Amazon S3 - resources are private, including buckets, objects, and related - subresources (for example, lifecycle configuration and website - configuration). Only the resource owner (that is, the Amazon Web - Services account that created it) can access the resource. The - resource owner can optionally grant access permissions to others by - writing an access policy. For this operation, a user must have the - `s3:PutLifecycleConfiguration` permission. - - For more information about permissions, see [Managing Access - Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + : - **General purpose bucket permissions** - By default, all Amazon S3 + resources are private, including buckets, objects, and related + subresources (for example, lifecycle configuration and website + configuration). Only the resource owner (that is, the Amazon Web + Services account that created it) can access the resource. The + resource owner can optionally grant access permissions to others + by writing an access policy. For this operation, a user must have + the `s3:PutLifecycleConfiguration` permission. - - **Directory bucket permissions** - You must have the - `s3express:PutLifecycleConfiguration` permission in an IAM - identity-based policy to use this operation. Cross-account access to - this API operation isn't supported. The resource owner can - optionally grant access permissions to others by creating a role or - user for them as long as they are within the same account as the - owner and resource. - - For more information about directory bucket policies and - permissions, see [Authorizing Regional endpoint APIs with - IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + For more information about permissions, see [Managing Access + Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - Note: + - **Directory bucket permissions** - You must have the + `s3express:PutLifecycleConfiguration` permission in an IAM + identity-based policy to use this operation. Cross-account access + to this API operation isn't supported. The resource owner can + optionally grant access permissions to others by creating a role + or user for them as long as they are within the same account as + the owner and resource. + + For more information about directory bucket policies and + permissions, see [Authorizing Regional endpoint APIs with + IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. + + Note: **Directory buckets** - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. Virtual-hosted-style requests aren't supported. For more - information about endpoints in Availability Zones, see [Regional and - Zonal endpoints for directory buckets in Availability + information about endpoints in Availability Zones, see [Regional + and Zonal endpoints for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints - in Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about + endpoints in Local Zones, see [Concepts for directory buckets in + Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. @@ -2081,8 +2284,8 @@ async def delete_bucket_lifecycle( HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region`*`.amazonaws.com`. For more information about the object expiration, see [Elements to Describe Lifecycle @@ -2100,8 +2303,6 @@ async def delete_bucket_lifecycle( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketLifecycleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2111,12 +2312,34 @@ async def delete_bucket_lifecycle( Returns: An instance of `DeleteBucketLifecycleOutput`. """ - return await self._invoke(input, _models.DELETE_BUCKET_LIFECYCLE, [], plugins) + async def delete_bucket_lifecycle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketLifecycleOutput: + return await self._invoke( + self._select_input(_models.DELETE_BUCKET_LIFECYCLE, args, kwargs), + _models.DELETE_BUCKET_LIFECYCLE, + [], + plugins, + ) + + @_overload + async def delete_bucket_metadata_configuration( + self, + request: _models.DeleteBucketMetadataConfigurationInput + | _models.DeleteBucketMetadataConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketMetadataConfigurationOutput: ... + + @_overload async def delete_bucket_metadata_configuration( self, - input: DeleteBucketMetadataConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketMetadataConfigurationInputDict], ) -> DeleteBucketMetadataConfigurationOutput: """ Deletes an S3 Metadata configuration from a general purpose bucket. For @@ -2132,13 +2355,13 @@ async def delete_bucket_metadata_configuration( Permissions - : To use this operation, you must have the - `s3:DeleteBucketMetadataTableConfiguration` permission. For more - information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:DeleteBucketMetadataTableConfiguration` permission. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - Note: + Note: The IAM policy action name is the same for the V1 and V2 API operations. @@ -2159,8 +2382,6 @@ async def delete_bucket_metadata_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketMetadataConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2170,14 +2391,36 @@ async def delete_bucket_metadata_configuration( Returns: An instance of `DeleteBucketMetadataConfigurationOutput`. """ + + async def delete_bucket_metadata_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketMetadataConfigurationOutput: return await self._invoke( - input, _models.DELETE_BUCKET_METADATA_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_METADATA_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_METADATA_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_bucket_metadata_table_configuration( + self, + request: _models.DeleteBucketMetadataTableConfigurationInput + | _models.DeleteBucketMetadataTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketMetadataTableConfigurationOutput: ... + + @_overload async def delete_bucket_metadata_table_configuration( self, - input: DeleteBucketMetadataTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketMetadataTableConfigurationInputDict], ) -> DeleteBucketMetadataTableConfigurationOutput: """ Warning: @@ -2211,11 +2454,11 @@ async def delete_bucket_metadata_table_configuration( Permissions - : To use this operation, you must have the - `s3:DeleteBucketMetadataTableConfiguration` permission. For more - information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:DeleteBucketMetadataTableConfiguration` permission. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. The following operations are related to `DeleteBucketMetadataTableConfiguration`: @@ -2230,8 +2473,6 @@ async def delete_bucket_metadata_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketMetadataTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2241,14 +2482,36 @@ async def delete_bucket_metadata_table_configuration( Returns: An instance of `DeleteBucketMetadataTableConfigurationOutput`. """ + + async def delete_bucket_metadata_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketMetadataTableConfigurationOutput: return await self._invoke( - input, _models.DELETE_BUCKET_METADATA_TABLE_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_METADATA_TABLE_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_METADATA_TABLE_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_bucket_metrics_configuration( + self, + request: _models.DeleteBucketMetricsConfigurationInput + | _models.DeleteBucketMetricsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketMetricsConfigurationOutput: ... + + @_overload async def delete_bucket_metrics_configuration( self, - input: DeleteBucketMetricsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketMetricsConfigurationInputDict], ) -> DeleteBucketMetricsConfigurationOutput: """ Deletes a metrics configuration for the Amazon CloudWatch request @@ -2271,37 +2534,37 @@ async def delete_bucket_metrics_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:PutMetricsConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:PutMetricsConfiguration` permission is required in a policy. For - more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:PutMetricsConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutMetricsConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:PutMetricsConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutMetricsConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about CloudWatch request metrics for Amazon S3, see [Monitoring Metrics with Amazon @@ -2325,8 +2588,6 @@ async def delete_bucket_metrics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketMetricsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2336,14 +2597,36 @@ async def delete_bucket_metrics_configuration( Returns: An instance of `DeleteBucketMetricsConfigurationOutput`. """ + + async def delete_bucket_metrics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketMetricsConfigurationOutput: return await self._invoke( - input, _models.DELETE_BUCKET_METRICS_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_METRICS_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_METRICS_CONFIGURATION, + [], + plugins, ) + @_overload + async def delete_bucket_ownership_controls( + self, + request: _models.DeleteBucketOwnershipControlsInput + | _models.DeleteBucketOwnershipControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketOwnershipControlsOutput: ... + + @_overload async def delete_bucket_ownership_controls( self, - input: DeleteBucketOwnershipControlsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketOwnershipControlsInputDict], ) -> DeleteBucketOwnershipControlsOutput: """ Note: @@ -2370,8 +2653,6 @@ async def delete_bucket_ownership_controls( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketOwnershipControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2381,12 +2662,33 @@ async def delete_bucket_ownership_controls( Returns: An instance of `DeleteBucketOwnershipControlsOutput`. """ + + async def delete_bucket_ownership_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketOwnershipControlsOutput: return await self._invoke( - input, _models.DELETE_BUCKET_OWNERSHIP_CONTROLS, [], plugins + self._select_input(_models.DELETE_BUCKET_OWNERSHIP_CONTROLS, args, kwargs), + _models.DELETE_BUCKET_OWNERSHIP_CONTROLS, + [], + plugins, ) + @_overload + async def delete_bucket_policy( + self, + request: _models.DeleteBucketPolicyInput | _models.DeleteBucketPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketPolicyOutput: ... + + @_overload async def delete_bucket_policy( - self, input: DeleteBucketPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketPolicyInputDict], ) -> DeleteBucketPolicyOutput: """ Deletes the policy of a specified bucket. @@ -2407,48 +2709,49 @@ async def delete_bucket_policy( Permissions - : If you are using an identity other than the root user of the Amazon - Web Services account that owns the bucket, the calling identity must - both have the `DeleteBucketPolicy` permissions on the specified bucket - and belong to the bucket owner's account in order to use this - operation. - - If you don't have `DeleteBucketPolicy` permissions, Amazon S3 returns - a `403 Access Denied` error. If you have the correct permissions, but - you're not using an identity that belongs to the bucket owner's - account, Amazon S3 returns a `405 Method Not Allowed` error. - - Warning: - To ensure that bucket owners don't inadvertently lock themselves out - of their own buckets, the root principal in a bucket owner's Amazon - Web Services account can perform the `GetBucketPolicy`, - `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if their - bucket policy explicitly denies the root principal's access. Bucket - owner root principals can only be blocked from performing these API - actions by VPC endpoint policies and Amazon Web Services Organizations - policies. - - **General purpose bucket permissions** - The `s3:DeleteBucketPolicy` - permission is required in a policy. For more information about - general purpose buckets bucket policies, see [Using Bucket Policies - and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : If you are using an identity other than the root user of the Amazon + Web Services account that owns the bucket, the calling identity must + both have the `DeleteBucketPolicy` permissions on the specified + bucket and belong to the bucket owner's account in order to use + this operation. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:DeleteBucketPolicy` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + If you don't have `DeleteBucketPolicy` permissions, Amazon S3 + returns a `403 Access Denied` error. If you have the correct + permissions, but you're not using an identity that belongs to the + bucket owner's account, Amazon S3 returns a + `405 Method Not Allowed` error. + + Warning: + To ensure that bucket owners don't inadvertently lock themselves + out of their own buckets, the root principal in a bucket owner's + Amazon Web Services account can perform the `GetBucketPolicy`, + `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if + their bucket policy explicitly denies the root principal's access. + Bucket owner root principals can only be blocked from performing + these API actions by VPC endpoint policies and Amazon Web Services + Organizations policies. + - **General purpose bucket permissions** - The + `s3:DeleteBucketPolicy` permission is required in a policy. For + more information about general purpose buckets bucket policies, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:DeleteBucketPolicy` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `DeleteBucketPolicy` @@ -2462,8 +2765,6 @@ async def delete_bucket_policy( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2473,10 +2774,34 @@ async def delete_bucket_policy( Returns: An instance of `DeleteBucketPolicyOutput`. """ - return await self._invoke(input, _models.DELETE_BUCKET_POLICY, [], plugins) + async def delete_bucket_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketPolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_BUCKET_POLICY, args, kwargs), + _models.DELETE_BUCKET_POLICY, + [], + plugins, + ) + + @_overload + async def delete_bucket_replication( + self, + request: _models.DeleteBucketReplicationInput + | _models.DeleteBucketReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketReplicationOutput: ... + + @_overload async def delete_bucket_replication( - self, input: DeleteBucketReplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketReplicationInputDict], ) -> DeleteBucketReplicationOutput: """ Note: @@ -2512,8 +2837,6 @@ async def delete_bucket_replication( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2523,10 +2846,34 @@ async def delete_bucket_replication( Returns: An instance of `DeleteBucketReplicationOutput`. """ - return await self._invoke(input, _models.DELETE_BUCKET_REPLICATION, [], plugins) + async def delete_bucket_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketReplicationOutput: + return await self._invoke( + self._select_input(_models.DELETE_BUCKET_REPLICATION, args, kwargs), + _models.DELETE_BUCKET_REPLICATION, + [], + plugins, + ) + + @_overload + async def delete_bucket_tagging( + self, + request: _models.DeleteBucketTaggingInput + | _models.DeleteBucketTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketTaggingOutput: ... + + @_overload async def delete_bucket_tagging( - self, input: DeleteBucketTaggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketTaggingInputDict], ) -> DeleteBucketTaggingOutput: """ Note: @@ -2556,8 +2903,6 @@ async def delete_bucket_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2567,10 +2912,34 @@ async def delete_bucket_tagging( Returns: An instance of `DeleteBucketTaggingOutput`. """ - return await self._invoke(input, _models.DELETE_BUCKET_TAGGING, [], plugins) + async def delete_bucket_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketTaggingOutput: + return await self._invoke( + self._select_input(_models.DELETE_BUCKET_TAGGING, args, kwargs), + _models.DELETE_BUCKET_TAGGING, + [], + plugins, + ) + + @_overload + async def delete_bucket_website( + self, + request: _models.DeleteBucketWebsiteInput + | _models.DeleteBucketWebsiteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketWebsiteOutput: ... + + @_overload async def delete_bucket_website( - self, input: DeleteBucketWebsiteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketWebsiteInputDict], ) -> DeleteBucketWebsiteOutput: """ Note: @@ -2605,8 +2974,6 @@ async def delete_bucket_website( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketWebsiteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2616,10 +2983,33 @@ async def delete_bucket_website( Returns: An instance of `DeleteBucketWebsiteOutput`. """ - return await self._invoke(input, _models.DELETE_BUCKET_WEBSITE, [], plugins) + async def delete_bucket_website( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketWebsiteOutput: + return await self._invoke( + self._select_input(_models.DELETE_BUCKET_WEBSITE, args, kwargs), + _models.DELETE_BUCKET_WEBSITE, + [], + plugins, + ) + + @_overload + async def delete_object( + self, + request: _models.DeleteObjectInput | _models.DeleteObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteObjectOutput: ... + + @_overload async def delete_object( - self, input: DeleteObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteObjectInputDict], ) -> DeleteObjectOutput: """ Removes an object from a bucket. The behavior depends on the bucket's @@ -2698,43 +3088,43 @@ async def delete_object( Permissions - : - **General purpose bucket permissions** - The following permissions - are required in your policies when your `DeleteObjects` request - includes specific headers. + : - **General purpose bucket permissions** - The following permissions + are required in your policies when your `DeleteObjects` request + includes specific headers. - - **`s3:DeleteObject`** - To delete an object from a bucket, you - must always have the `s3:DeleteObject` permission. + - **`s3:DeleteObject`** - To delete an object from a bucket, you + must always have the `s3:DeleteObject` permission. - - **`s3:DeleteObjectVersion`** - To delete a specific version of an - object from a versioning-enabled bucket, you must have the - `s3:DeleteObjectVersion` permission. + - **`s3:DeleteObjectVersion`** - To delete a specific version of + an object from a versioning-enabled bucket, you must have the + `s3:DeleteObjectVersion` permission. - Note: + Note: If the `s3:DeleteObject` or `s3:DeleteObjectVersion` permissions are explicitly denied in your bucket policy, attempts to delete any unversioned objects result in a `403 Access Denied` error. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following action is related to `DeleteObject`: @@ -2750,8 +3140,6 @@ async def delete_object( supported for directory buckets. Args: - input: - An instance of `DeleteObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2761,10 +3149,34 @@ async def delete_object( Returns: An instance of `DeleteObjectOutput`. """ - return await self._invoke(input, _models.DELETE_OBJECT, [], plugins) + async def delete_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteObjectOutput: + return await self._invoke( + self._select_input(_models.DELETE_OBJECT, args, kwargs), + _models.DELETE_OBJECT, + [], + plugins, + ) + + @_overload + async def delete_object_annotation( + self, + request: _models.DeleteObjectAnnotationInput + | _models.DeleteObjectAnnotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteObjectAnnotationOutput: ... + + @_overload async def delete_object_annotation( - self, input: DeleteObjectAnnotationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteObjectAnnotationInputDict], ) -> DeleteObjectAnnotationOutput: """ Deletes a specific annotation from an Amazon S3 object. Use the @@ -2795,8 +3207,6 @@ async def delete_object_annotation( - [ListObjectAnnotations](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectAnnotations.html) Args: - input: - An instance of `DeleteObjectAnnotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2806,10 +3216,33 @@ async def delete_object_annotation( Returns: An instance of `DeleteObjectAnnotationOutput`. """ - return await self._invoke(input, _models.DELETE_OBJECT_ANNOTATION, [], plugins) + async def delete_object_annotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteObjectAnnotationOutput: + return await self._invoke( + self._select_input(_models.DELETE_OBJECT_ANNOTATION, args, kwargs), + _models.DELETE_OBJECT_ANNOTATION, + [], + plugins, + ) + + @_overload async def delete_objects( - self, input: DeleteObjectsInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteObjectsInput | _models.DeleteObjectsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteObjectsOutput: ... + + @_overload + async def delete_objects( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteObjectsInputDict], ) -> DeleteObjectsOutput: """ This operation enables you to delete multiple objects from a bucket @@ -2865,56 +3298,56 @@ async def delete_objects( Permissions - : - **General purpose bucket permissions** - The following permissions - are required in your policies when your `DeleteObjects` request - includes specific headers. + : - **General purpose bucket permissions** - The following permissions + are required in your policies when your `DeleteObjects` request + includes specific headers. - - **`s3:DeleteObject`** - To delete an object from a bucket, you - must always specify the `s3:DeleteObject` permission. + - **`s3:DeleteObject`** - To delete an object from a bucket, you + must always specify the `s3:DeleteObject` permission. - - **`s3:DeleteObjectVersion`** - To delete a specific version of an - object from a versioning-enabled bucket, you must specify the - `s3:DeleteObjectVersion` permission. + - **`s3:DeleteObjectVersion`** - To delete a specific version of + an object from a versioning-enabled bucket, you must specify the + `s3:DeleteObjectVersion` permission. - Note: + Note: If the `s3:DeleteObject` or `s3:DeleteObjectVersion` permissions are explicitly denied in your bucket policy, attempts to delete any unversioned objects result in a `403 Access Denied` error. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . Content-MD5 request header - : - **General purpose bucket** - The Content-MD5 request header is - required for all Multi-Object Delete requests. Amazon S3 uses the - header value to ensure that your request body has not been altered - in transit. + : - **General purpose bucket** - The Content-MD5 request header is + required for all Multi-Object Delete requests. Amazon S3 uses the + header value to ensure that your request body has not been altered + in transit. - - **Directory bucket** - The Content-MD5 request header or a - additional checksum request header (including - `x-amz-checksum-crc32`, `x-amz-checksum-crc32c`, - `x-amz-checksum-sha1`, or `x-amz-checksum-sha256`) is required for - all Multi-Object Delete requests. + - **Directory bucket** - The Content-MD5 request header or a + additional checksum request header (including + `x-amz-checksum-crc32`, `x-amz-checksum-crc32c`, + `x-amz-checksum-sha1`, or `x-amz-checksum-sha256`) is required for + all Multi-Object Delete requests. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `DeleteObjects`: @@ -2934,8 +3367,6 @@ async def delete_objects( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteObjectsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2945,11 +3376,35 @@ async def delete_objects( Returns: An instance of `DeleteObjectsOutput`. """ - return await self._invoke(input, _models.DELETE_OBJECTS, [], plugins) - async def delete_object_tagging( - self, input: DeleteObjectTaggingInput, plugins: list[Plugin] | None = None - ) -> DeleteObjectTaggingOutput: + async def delete_objects( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteObjectsOutput: + return await self._invoke( + self._select_input(_models.DELETE_OBJECTS, args, kwargs), + _models.DELETE_OBJECTS, + [], + plugins, + ) + + @_overload + async def delete_object_tagging( + self, + request: _models.DeleteObjectTaggingInput + | _models.DeleteObjectTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteObjectTaggingOutput: ... + + @_overload + async def delete_object_tagging( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteObjectTaggingInputDict], + ) -> DeleteObjectTaggingOutput: """ Note: This operation is not supported for directory buckets. @@ -2977,8 +3432,6 @@ async def delete_object_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteObjectTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2988,10 +3441,34 @@ async def delete_object_tagging( Returns: An instance of `DeleteObjectTaggingOutput`. """ - return await self._invoke(input, _models.DELETE_OBJECT_TAGGING, [], plugins) + async def delete_object_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteObjectTaggingOutput: + return await self._invoke( + self._select_input(_models.DELETE_OBJECT_TAGGING, args, kwargs), + _models.DELETE_OBJECT_TAGGING, + [], + plugins, + ) + + @_overload + async def delete_public_access_block( + self, + request: _models.DeletePublicAccessBlockInput + | _models.DeletePublicAccessBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePublicAccessBlockOutput: ... + + @_overload async def delete_public_access_block( - self, input: DeletePublicAccessBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePublicAccessBlockInputDict], ) -> DeletePublicAccessBlockOutput: """ Note: @@ -3025,8 +3502,6 @@ async def delete_public_access_block( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeletePublicAccessBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3036,12 +3511,33 @@ async def delete_public_access_block( Returns: An instance of `DeletePublicAccessBlockOutput`. """ + + async def delete_public_access_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePublicAccessBlockOutput: return await self._invoke( - input, _models.DELETE_PUBLIC_ACCESS_BLOCK, [], plugins + self._select_input(_models.DELETE_PUBLIC_ACCESS_BLOCK, args, kwargs), + _models.DELETE_PUBLIC_ACCESS_BLOCK, + [], + plugins, ) + @_overload + async def get_bucket_abac( + self, + request: _models.GetBucketAbacInput | _models.GetBucketAbacInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketAbacOutput: ... + + @_overload async def get_bucket_abac( - self, input: GetBucketAbacInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketAbacInputDict], ) -> GetBucketAbacOutput: """ Returns the attribute-based access control (ABAC) property of the @@ -3051,8 +3547,6 @@ async def get_bucket_abac( buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html). Args: - input: - An instance of `GetBucketAbacInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3062,12 +3556,34 @@ async def get_bucket_abac( Returns: An instance of `GetBucketAbacOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_ABAC, [], plugins) + async def get_bucket_abac( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketAbacOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_ABAC, args, kwargs), + _models.GET_BUCKET_ABAC, + [], + plugins, + ) + + @_overload + async def get_bucket_accelerate_configuration( + self, + request: _models.GetBucketAccelerateConfigurationInput + | _models.GetBucketAccelerateConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketAccelerateConfigurationOutput: ... + + @_overload async def get_bucket_accelerate_configuration( self, - input: GetBucketAccelerateConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketAccelerateConfigurationInputDict], ) -> GetBucketAccelerateConfigurationOutput: """ Note: @@ -3113,8 +3629,6 @@ async def get_bucket_accelerate_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketAccelerateConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3124,12 +3638,35 @@ async def get_bucket_accelerate_configuration( Returns: An instance of `GetBucketAccelerateConfigurationOutput`. """ + + async def get_bucket_accelerate_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketAccelerateConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_ACCELERATE_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_ACCELERATE_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_ACCELERATE_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_acl( + self, + request: _models.GetBucketAclInput | _models.GetBucketAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketAclOutput: ... + + @_overload async def get_bucket_acl( - self, input: GetBucketAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketAclInputDict], ) -> GetBucketAclOutput: """ Note: @@ -3170,8 +3707,6 @@ async def get_bucket_acl( - [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html) Args: - input: - An instance of `GetBucketAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3181,12 +3716,34 @@ async def get_bucket_acl( Returns: An instance of `GetBucketAclOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_ACL, [], plugins) + async def get_bucket_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketAclOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_ACL, args, kwargs), + _models.GET_BUCKET_ACL, + [], + plugins, + ) + + @_overload + async def get_bucket_analytics_configuration( + self, + request: _models.GetBucketAnalyticsConfigurationInput + | _models.GetBucketAnalyticsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketAnalyticsConfigurationOutput: ... + + @_overload async def get_bucket_analytics_configuration( self, - input: GetBucketAnalyticsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketAnalyticsConfigurationInputDict], ) -> GetBucketAnalyticsConfigurationOutput: """ Note: @@ -3225,8 +3782,6 @@ async def get_bucket_analytics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketAnalyticsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3236,12 +3791,35 @@ async def get_bucket_analytics_configuration( Returns: An instance of `GetBucketAnalyticsConfigurationOutput`. """ + + async def get_bucket_analytics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketAnalyticsConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_ANALYTICS_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_ANALYTICS_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_ANALYTICS_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_cors( + self, + request: _models.GetBucketCorsInput | _models.GetBucketCorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketCorsOutput: ... + + @_overload async def get_bucket_cors( - self, input: GetBucketCorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketCorsInputDict], ) -> GetBucketCorsOutput: """ Note: @@ -3280,8 +3858,6 @@ async def get_bucket_cors( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketCorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3291,10 +3867,34 @@ async def get_bucket_cors( Returns: An instance of `GetBucketCorsOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_CORS, [], plugins) + async def get_bucket_cors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketCorsOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_CORS, args, kwargs), + _models.GET_BUCKET_CORS, + [], + plugins, + ) + + @_overload + async def get_bucket_encryption( + self, + request: _models.GetBucketEncryptionInput + | _models.GetBucketEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketEncryptionOutput: ... + + @_overload async def get_bucket_encryption( - self, input: GetBucketEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketEncryptionInputDict], ) -> GetBucketEncryptionOutput: """ Returns the default encryption configuration for an Amazon S3 bucket. By @@ -3321,30 +3921,31 @@ async def get_bucket_encryption( Permissions - : - **General purpose bucket permissions** - The - `s3:GetEncryptionConfiguration` permission is required in a policy. - The bucket owner has this permission by default. The bucket owner - can grant this permission to others. For more information about - permissions, see [Permissions Related to Bucket - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + : - **General purpose bucket permissions** - The + `s3:GetEncryptionConfiguration` permission is required in a + policy. The bucket owner has this permission by default. The + bucket owner can grant this permission to others. For more + information about permissions, see [Permissions Related to Bucket + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetEncryptionConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - To grant access to this API + operation, you must have the + `s3express:GetEncryptionConfiguration` permission in an IAM + identity-based policy instead of a bucket policy. Cross-account + access to this API operation isn't supported. This operation can + only be performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `GetBucketEncryption`: @@ -3358,8 +3959,6 @@ async def get_bucket_encryption( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3369,12 +3968,34 @@ async def get_bucket_encryption( Returns: An instance of `GetBucketEncryptionOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_ENCRYPTION, [], plugins) + async def get_bucket_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketEncryptionOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_ENCRYPTION, args, kwargs), + _models.GET_BUCKET_ENCRYPTION, + [], + plugins, + ) + + @_overload + async def get_bucket_intelligent_tiering_configuration( + self, + request: _models.GetBucketIntelligentTieringConfigurationInput + | _models.GetBucketIntelligentTieringConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketIntelligentTieringConfigurationOutput: ... + + @_overload async def get_bucket_intelligent_tiering_configuration( self, - input: GetBucketIntelligentTieringConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketIntelligentTieringConfigurationInputDict], ) -> GetBucketIntelligentTieringConfigurationOutput: """ Note: @@ -3417,8 +4038,6 @@ async def get_bucket_intelligent_tiering_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketIntelligentTieringConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3428,14 +4047,36 @@ async def get_bucket_intelligent_tiering_configuration( Returns: An instance of `GetBucketIntelligentTieringConfigurationOutput`. """ + + async def get_bucket_intelligent_tiering_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketIntelligentTieringConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_inventory_configuration( + self, + request: _models.GetBucketInventoryConfigurationInput + | _models.GetBucketInventoryConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketInventoryConfigurationOutput: ... + + @_overload async def get_bucket_inventory_configuration( self, - input: GetBucketInventoryConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketInventoryConfigurationInputDict], ) -> GetBucketInventoryConfigurationOutput: """ Returns an S3 Inventory configuration (identified by the inventory @@ -3457,35 +4098,35 @@ async def get_bucket_inventory_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:GetInventoryConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:GetInventoryConfiguration` permission is required in a policy. - For more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:GetInventoryConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetInventoryConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:GetInventoryConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetInventoryConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about the Amazon S3 inventory feature, see [Amazon S3 Inventory](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html). @@ -3505,8 +4146,6 @@ async def get_bucket_inventory_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketInventoryConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3516,14 +4155,36 @@ async def get_bucket_inventory_configuration( Returns: An instance of `GetBucketInventoryConfigurationOutput`. """ + + async def get_bucket_inventory_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketInventoryConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_INVENTORY_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_INVENTORY_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_INVENTORY_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_lifecycle_configuration( + self, + request: _models.GetBucketLifecycleConfigurationInput + | _models.GetBucketLifecycleConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketLifecycleConfigurationOutput: ... + + @_overload async def get_bucket_lifecycle_configuration( self, - input: GetBucketLifecycleConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketLifecycleConfigurationInputDict], ) -> GetBucketLifecycleConfigurationOutput: """ Returns the lifecycle configuration information set on the bucket. For @@ -3546,50 +4207,51 @@ async def get_bucket_lifecycle_configuration( Permissions - : - **General purpose bucket permissions** - By default, all Amazon S3 - resources are private, including buckets, objects, and related - subresources (for example, lifecycle configuration and website - configuration). Only the resource owner (that is, the Amazon Web - Services account that created it) can access the resource. The - resource owner can optionally grant access permissions to others by - writing an access policy. For this operation, a user must have the - `s3:GetLifecycleConfiguration` permission. - - For more information about permissions, see [Managing Access - Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + : - **General purpose bucket permissions** - By default, all Amazon S3 + resources are private, including buckets, objects, and related + subresources (for example, lifecycle configuration and website + configuration). Only the resource owner (that is, the Amazon Web + Services account that created it) can access the resource. The + resource owner can optionally grant access permissions to others + by writing an access policy. For this operation, a user must have + the `s3:GetLifecycleConfiguration` permission. - - **Directory bucket permissions** - You must have the - `s3express:GetLifecycleConfiguration` permission in an IAM - identity-based policy to use this operation. Cross-account access to - this API operation isn't supported. The resource owner can - optionally grant access permissions to others by creating a role or - user for them as long as they are within the same account as the - owner and resource. - - For more information about directory bucket policies and - permissions, see [Authorizing Regional endpoint APIs with - IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + For more information about permissions, see [Managing Access + Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - Note: + - **Directory bucket permissions** - You must have the + `s3express:GetLifecycleConfiguration` permission in an IAM + identity-based policy to use this operation. Cross-account access + to this API operation isn't supported. The resource owner can + optionally grant access permissions to others by creating a role + or user for them as long as they are within the same account as + the owner and resource. + + For more information about directory bucket policies and + permissions, see [Authorizing Regional endpoint APIs with + IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. + + Note: **Directory buckets** - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. Virtual-hosted-style requests aren't supported. For more - information about endpoints in Availability Zones, see [Regional and - Zonal endpoints for directory buckets in Availability + information about endpoints in Availability Zones, see [Regional + and Zonal endpoints for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints - in Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about + endpoints in Local Zones, see [Concepts for directory buckets in + Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region`*`.amazonaws.com`. `GetBucketLifecycleConfiguration` has the following special error: @@ -3616,8 +4278,6 @@ async def get_bucket_lifecycle_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketLifecycleConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3627,12 +4287,35 @@ async def get_bucket_lifecycle_configuration( Returns: An instance of `GetBucketLifecycleConfigurationOutput`. """ + + async def get_bucket_lifecycle_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketLifecycleConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_LIFECYCLE_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_LIFECYCLE_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_LIFECYCLE_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_location( + self, + request: _models.GetBucketLocationInput | _models.GetBucketLocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketLocationOutput: ... + + @_overload async def get_bucket_location( - self, input: GetBucketLocationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketLocationInputDict], ) -> GetBucketLocationOutput: """ Warning: @@ -3684,8 +4367,6 @@ async def get_bucket_location( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketLocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3695,10 +4376,33 @@ async def get_bucket_location( Returns: An instance of `GetBucketLocationOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_LOCATION, [], plugins) + async def get_bucket_location( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketLocationOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_LOCATION, args, kwargs), + _models.GET_BUCKET_LOCATION, + [], + plugins, + ) + + @_overload + async def get_bucket_logging( + self, + request: _models.GetBucketLoggingInput | _models.GetBucketLoggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketLoggingOutput: ... + + @_overload async def get_bucket_logging( - self, input: GetBucketLoggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketLoggingInputDict], ) -> GetBucketLoggingOutput: """ Note: @@ -3719,8 +4423,6 @@ async def get_bucket_logging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketLoggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3730,12 +4432,34 @@ async def get_bucket_logging( Returns: An instance of `GetBucketLoggingOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_LOGGING, [], plugins) + async def get_bucket_logging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketLoggingOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_LOGGING, args, kwargs), + _models.GET_BUCKET_LOGGING, + [], + plugins, + ) + + @_overload + async def get_bucket_metadata_configuration( + self, + request: _models.GetBucketMetadataConfigurationInput + | _models.GetBucketMetadataConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketMetadataConfigurationOutput: ... + + @_overload async def get_bucket_metadata_configuration( self, - input: GetBucketMetadataConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketMetadataConfigurationInputDict], ) -> GetBucketMetadataConfigurationOutput: """ Retrieves the S3 Metadata configuration for a general purpose bucket. @@ -3751,13 +4475,13 @@ async def get_bucket_metadata_configuration( Permissions - : To use this operation, you must have the - `s3:GetBucketMetadataTableConfiguration` permission. For more - information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:GetBucketMetadataTableConfiguration` permission. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - Note: + Note: The IAM policy action name is the same for the V1 and V2 API operations. @@ -3778,8 +4502,6 @@ async def get_bucket_metadata_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketMetadataConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3789,14 +4511,34 @@ async def get_bucket_metadata_configuration( Returns: An instance of `GetBucketMetadataConfigurationOutput`. """ + + async def get_bucket_metadata_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketMetadataConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_METADATA_CONFIGURATION, [], plugins + self._select_input(_models.GET_BUCKET_METADATA_CONFIGURATION, args, kwargs), + _models.GET_BUCKET_METADATA_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_metadata_table_configuration( + self, + request: _models.GetBucketMetadataTableConfigurationInput + | _models.GetBucketMetadataTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketMetadataTableConfigurationOutput: ... + + @_overload async def get_bucket_metadata_table_configuration( self, - input: GetBucketMetadataTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketMetadataTableConfigurationInputDict], ) -> GetBucketMetadataTableConfigurationOutput: """ Warning: @@ -3830,11 +4572,11 @@ async def get_bucket_metadata_table_configuration( Permissions - : To use this operation, you must have the - `s3:GetBucketMetadataTableConfiguration` permission. For more - information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:GetBucketMetadataTableConfiguration` permission. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. The following operations are related to `GetBucketMetadataTableConfiguration`: @@ -3849,8 +4591,6 @@ async def get_bucket_metadata_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketMetadataTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3860,14 +4600,36 @@ async def get_bucket_metadata_table_configuration( Returns: An instance of `GetBucketMetadataTableConfigurationOutput`. """ + + async def get_bucket_metadata_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketMetadataTableConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_METADATA_TABLE_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_METADATA_TABLE_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_METADATA_TABLE_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_metrics_configuration( + self, + request: _models.GetBucketMetricsConfigurationInput + | _models.GetBucketMetricsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketMetricsConfigurationOutput: ... + + @_overload async def get_bucket_metrics_configuration( self, - input: GetBucketMetricsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketMetricsConfigurationInputDict], ) -> GetBucketMetricsConfigurationOutput: """ Gets a metrics configuration (specified by the metrics configuration ID) @@ -3890,37 +4652,37 @@ async def get_bucket_metrics_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:GetMetricsConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:GetMetricsConfiguration` permission is required in a policy. For - more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:GetMetricsConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetMetricsConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:GetMetricsConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetMetricsConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about CloudWatch request metrics for Amazon S3, see [Monitoring Metrics with Amazon @@ -3943,8 +4705,6 @@ async def get_bucket_metrics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketMetricsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3954,14 +4714,34 @@ async def get_bucket_metrics_configuration( Returns: An instance of `GetBucketMetricsConfigurationOutput`. """ + + async def get_bucket_metrics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketMetricsConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_METRICS_CONFIGURATION, [], plugins + self._select_input(_models.GET_BUCKET_METRICS_CONFIGURATION, args, kwargs), + _models.GET_BUCKET_METRICS_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_notification_configuration( + self, + request: _models.GetBucketNotificationConfigurationInput + | _models.GetBucketNotificationConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketNotificationConfigurationOutput: ... + + @_overload async def get_bucket_notification_configuration( self, - input: GetBucketNotificationConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketNotificationConfigurationInputDict], ) -> GetBucketNotificationConfigurationOutput: """ Note: @@ -4004,8 +4784,6 @@ async def get_bucket_notification_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketNotificationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4015,14 +4793,36 @@ async def get_bucket_notification_configuration( Returns: An instance of `GetBucketNotificationConfigurationOutput`. """ + + async def get_bucket_notification_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketNotificationConfigurationOutput: return await self._invoke( - input, _models.GET_BUCKET_NOTIFICATION_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_NOTIFICATION_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_NOTIFICATION_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_bucket_ownership_controls( + self, + request: _models.GetBucketOwnershipControlsInput + | _models.GetBucketOwnershipControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketOwnershipControlsOutput: ... + + @_overload async def get_bucket_ownership_controls( self, - input: GetBucketOwnershipControlsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketOwnershipControlsInputDict], ) -> GetBucketOwnershipControlsOutput: """ Note: @@ -4062,8 +4862,6 @@ async def get_bucket_ownership_controls( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketOwnershipControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4073,12 +4871,33 @@ async def get_bucket_ownership_controls( Returns: An instance of `GetBucketOwnershipControlsOutput`. """ + + async def get_bucket_ownership_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketOwnershipControlsOutput: return await self._invoke( - input, _models.GET_BUCKET_OWNERSHIP_CONTROLS, [], plugins + self._select_input(_models.GET_BUCKET_OWNERSHIP_CONTROLS, args, kwargs), + _models.GET_BUCKET_OWNERSHIP_CONTROLS, + [], + plugins, ) + @_overload + async def get_bucket_policy( + self, + request: _models.GetBucketPolicyInput | _models.GetBucketPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketPolicyOutput: ... + + @_overload async def get_bucket_policy( - self, input: GetBucketPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketPolicyInputDict], ) -> GetBucketPolicyOutput: """ Returns the policy of a specified bucket. @@ -4099,60 +4918,61 @@ async def get_bucket_policy( Permissions - : If you are using an identity other than the root user of the Amazon - Web Services account that owns the bucket, the calling identity must - both have the `GetBucketPolicy` permissions on the specified bucket - and belong to the bucket owner's account in order to use this - operation. - - If you don't have `GetBucketPolicy` permissions, Amazon S3 returns a - `403 Access Denied` error. If you have the correct permissions, but - you're not using an identity that belongs to the bucket owner's - account, Amazon S3 returns a `405 Method Not Allowed` error. - - Warning: - To ensure that bucket owners don't inadvertently lock themselves out - of their own buckets, the root principal in a bucket owner's Amazon - Web Services account can perform the `GetBucketPolicy`, - `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if their - bucket policy explicitly denies the root principal's access. Bucket - owner root principals can only be blocked from performing these API - actions by VPC endpoint policies and Amazon Web Services Organizations - policies. - - **General purpose bucket permissions** - The `s3:GetBucketPolicy` - permission is required in a policy. For more information about - general purpose buckets bucket policies, see [Using Bucket Policies - and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : If you are using an identity other than the root user of the Amazon + Web Services account that owns the bucket, the calling identity must + both have the `GetBucketPolicy` permissions on the specified bucket + and belong to the bucket owner's account in order to use this + operation. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetBucketPolicy` permission - in an IAM identity-based policy instead of a bucket policy. - Cross-account access to this API operation isn't supported. This - operation can only be performed by the Amazon Web Services account - that owns the resource. For more information about directory bucket - policies and permissions, see [Amazon Web Services Identity and - Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + If you don't have `GetBucketPolicy` permissions, Amazon S3 returns + a `403 Access Denied` error. If you have the correct permissions, + but you're not using an identity that belongs to the bucket + owner's account, Amazon S3 returns a `405 Method Not Allowed` + error. + + Warning: + To ensure that bucket owners don't inadvertently lock themselves + out of their own buckets, the root principal in a bucket owner's + Amazon Web Services account can perform the `GetBucketPolicy`, + `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if + their bucket policy explicitly denies the root principal's access. + Bucket owner root principals can only be blocked from performing + these API actions by VPC endpoint policies and Amazon Web Services + Organizations policies. + - **General purpose bucket permissions** - The `s3:GetBucketPolicy` + permission is required in a policy. For more information about + general purpose buckets bucket policies, see [Using Bucket + Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetBucketPolicy` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. Example bucket policies - : **General purpose buckets example bucket policies** - See [Bucket - policy - examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) - in the *Amazon S3 User Guide*. + : **General purpose buckets example bucket policies** - See [Bucket + policy + examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) + in the *Amazon S3 User Guide*. - **Directory bucket example bucket policies** - See [Example bucket - policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - in the *Amazon S3 User Guide*. + **Directory bucket example bucket policies** - See [Example bucket + policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following action is related to `GetBucketPolicy`: @@ -4164,8 +4984,6 @@ async def get_bucket_policy( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4175,10 +4993,34 @@ async def get_bucket_policy( Returns: An instance of `GetBucketPolicyOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_POLICY, [], plugins) + async def get_bucket_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketPolicyOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_POLICY, args, kwargs), + _models.GET_BUCKET_POLICY, + [], + plugins, + ) + + @_overload + async def get_bucket_policy_status( + self, + request: _models.GetBucketPolicyStatusInput + | _models.GetBucketPolicyStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketPolicyStatusOutput: ... + + @_overload async def get_bucket_policy_status( - self, input: GetBucketPolicyStatusInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketPolicyStatusInputDict], ) -> GetBucketPolicyStatusOutput: """ Note: @@ -4211,8 +5053,6 @@ async def get_bucket_policy_status( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketPolicyStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4222,10 +5062,34 @@ async def get_bucket_policy_status( Returns: An instance of `GetBucketPolicyStatusOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_POLICY_STATUS, [], plugins) + async def get_bucket_policy_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketPolicyStatusOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_POLICY_STATUS, args, kwargs), + _models.GET_BUCKET_POLICY_STATUS, + [], + plugins, + ) + + @_overload + async def get_bucket_replication( + self, + request: _models.GetBucketReplicationInput + | _models.GetBucketReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketReplicationOutput: ... + + @_overload async def get_bucket_replication( - self, input: GetBucketReplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketReplicationInputDict], ) -> GetBucketReplicationOutput: """ Note: @@ -4267,8 +5131,6 @@ async def get_bucket_replication( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4278,10 +5140,34 @@ async def get_bucket_replication( Returns: An instance of `GetBucketReplicationOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_REPLICATION, [], plugins) + async def get_bucket_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketReplicationOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_REPLICATION, args, kwargs), + _models.GET_BUCKET_REPLICATION, + [], + plugins, + ) + + @_overload async def get_bucket_request_payment( - self, input: GetBucketRequestPaymentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketRequestPaymentInput + | _models.GetBucketRequestPaymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketRequestPaymentOutput: ... + + @_overload + async def get_bucket_request_payment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketRequestPaymentInputDict], ) -> GetBucketRequestPaymentOutput: """ Note: @@ -4302,8 +5188,6 @@ async def get_bucket_request_payment( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketRequestPaymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4313,12 +5197,33 @@ async def get_bucket_request_payment( Returns: An instance of `GetBucketRequestPaymentOutput`. """ + + async def get_bucket_request_payment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketRequestPaymentOutput: return await self._invoke( - input, _models.GET_BUCKET_REQUEST_PAYMENT, [], plugins + self._select_input(_models.GET_BUCKET_REQUEST_PAYMENT, args, kwargs), + _models.GET_BUCKET_REQUEST_PAYMENT, + [], + plugins, ) + @_overload async def get_bucket_tagging( - self, input: GetBucketTaggingInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketTaggingInput | _models.GetBucketTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketTaggingOutput: ... + + @_overload + async def get_bucket_tagging( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketTaggingInputDict], ) -> GetBucketTaggingOutput: """ Note: @@ -4348,8 +5253,6 @@ async def get_bucket_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4359,10 +5262,34 @@ async def get_bucket_tagging( Returns: An instance of `GetBucketTaggingOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_TAGGING, [], plugins) + async def get_bucket_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketTaggingOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_TAGGING, args, kwargs), + _models.GET_BUCKET_TAGGING, + [], + plugins, + ) + + @_overload async def get_bucket_versioning( - self, input: GetBucketVersioningInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketVersioningInput + | _models.GetBucketVersioningInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketVersioningOutput: ... + + @_overload + async def get_bucket_versioning( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketVersioningInputDict], ) -> GetBucketVersioningOutput: """ Note: @@ -4391,8 +5318,6 @@ async def get_bucket_versioning( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketVersioningInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4402,10 +5327,33 @@ async def get_bucket_versioning( Returns: An instance of `GetBucketVersioningOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_VERSIONING, [], plugins) + async def get_bucket_versioning( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketVersioningOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_VERSIONING, args, kwargs), + _models.GET_BUCKET_VERSIONING, + [], + plugins, + ) + + @_overload async def get_bucket_website( - self, input: GetBucketWebsiteInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketWebsiteInput | _models.GetBucketWebsiteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketWebsiteOutput: ... + + @_overload + async def get_bucket_website( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketWebsiteInputDict], ) -> GetBucketWebsiteOutput: """ Note: @@ -4435,8 +5383,6 @@ async def get_bucket_website( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketWebsiteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4446,10 +5392,33 @@ async def get_bucket_website( Returns: An instance of `GetBucketWebsiteOutput`. """ - return await self._invoke(input, _models.GET_BUCKET_WEBSITE, [], plugins) + async def get_bucket_website( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketWebsiteOutput: + return await self._invoke( + self._select_input(_models.GET_BUCKET_WEBSITE, args, kwargs), + _models.GET_BUCKET_WEBSITE, + [], + plugins, + ) + + @_overload async def get_object( - self, input: GetObjectInput, plugins: list[Plugin] | None = None + self, + request: _models.GetObjectInput | _models.GetObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectOutput: ... + + @_overload + async def get_object( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectInputDict], ) -> GetObjectOutput: """ Retrieves an object from Amazon S3. @@ -4487,136 +5456,138 @@ async def get_object( Permissions - : - **General purpose bucket permissions** - You must have the required - permissions in a policy. To use `GetObject`, you must have the - `READ` access to the object (or version). If you grant `READ` access - to the anonymous user, the `GetObject` operation returns the object - without using an authorization header. For more information, see - [Specifying permissions in a - policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) - in the *Amazon S3 User Guide*. - - If you include a `versionId` in your request header, you must have - the `s3:GetObjectVersion` permission to access a specific version of - an object. The `s3:GetObject` permission is not required in this - scenario. - - If you request the current version of an object without a specific - `versionId` in the request header, only the `s3:GetObject` - permission is required. The `s3:GetObjectVersion` permission is not - required in this scenario. - - If the object that you request doesn't exist, the error that Amazon - S3 returns depends on whether you also have the `s3:ListBucket` - permission. - - - If you have the `s3:ListBucket` permission on the bucket, Amazon - S3 returns an HTTP status code `404 Not Found` error. - - - If you don't have the `s3:ListBucket` permission, Amazon S3 - returns an HTTP status code `403 Access Denied` error. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + : - **General purpose bucket permissions** - You must have the + required permissions in a policy. To use `GetObject`, you must + have the `READ` access to the object (or version). If you grant + `READ` access to the anonymous user, the `GetObject` operation + returns the object without using an authorization header. For more + information, see [Specifying permissions in a + policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) + in the *Amazon S3 User Guide*. - If the object is encrypted using SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + If you include a `versionId` in your request header, you must have + the `s3:GetObjectVersion` permission to access a specific version + of an object. The `s3:GetObject` permission is not required in + this scenario. + + If you request the current version of an object without a specific + `versionId` in the request header, only the `s3:GetObject` + permission is required. The `s3:GetObjectVersion` permission is + not required in this scenario. + + If the object that you request doesn't exist, the error that + Amazon S3 returns depends on whether you also have the + `s3:ListBucket` permission. + + - If you have the `s3:ListBucket` permission on the bucket, Amazon + S3 returns an HTTP status code `404 Not Found` error. + + - If you don't have the `s3:ListBucket` permission, Amazon S3 + returns an HTTP status code `403 Access Denied` error. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted using SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Storage classes - : If the object you are retrieving is stored in the S3 Glacier Flexible - Retrieval storage class, the S3 Glacier Deep Archive storage class, - the S3 Intelligent-Tiering Archive Access tier, or the S3 - Intelligent-Tiering Deep Archive Access tier, before you can retrieve - the object you must first restore a copy using - [RestoreObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html). - Otherwise, this operation returns an `InvalidObjectState` error. For - information about restoring archived objects, see [Restoring Archived - Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) - in the *Amazon S3 User Guide*. + : If the object you are retrieving is stored in the S3 Glacier + Flexible Retrieval storage class, the S3 Glacier Deep Archive + storage class, the S3 Intelligent-Tiering Archive Access tier, or + the S3 Intelligent-Tiering Deep Archive Access tier, before you can + retrieve the object you must first restore a copy using + [RestoreObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html). + Otherwise, this operation returns an `InvalidObjectState` error. For + information about restoring archived objects, see [Restoring + Archived + Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) + in the *Amazon S3 User Guide*. - **Directory buckets** - Directory buckets only support - `EXPRESS_ONEZONE` (the S3 Express One Zone storage class) in - Availability Zones and `ONEZONE_IA` (the S3 One Zone-Infrequent Access - storage class) in Dedicated Local Zones. Unsupported storage class - values won't write a destination object and will respond with the - HTTP status code `400 Bad Request`. + **Directory buckets** - Directory buckets only support + `EXPRESS_ONEZONE` (the S3 Express One Zone storage class) in + Availability Zones and `ONEZONE_IA` (the S3 One Zone-Infrequent + Access storage class) in Dedicated Local Zones. Unsupported storage + class values won't write a destination object and will respond with + the HTTP status code `400 Bad Request`. Encryption - : Encryption request headers, like `x-amz-server-side-encryption`, - should not be sent for the `GetObject` requests, if your object uses - server-side encryption with Amazon S3 managed encryption keys - (SSE-S3), server-side encryption with Key Management Service (KMS) - keys (SSE-KMS), or dual-layer server-side encryption with Amazon Web - Services KMS keys (DSSE-KMS). If you include the header in your - `GetObject` requests for the object that uses these types of keys, - you'll get an HTTP `400 Bad Request` error. - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: SSE-S3 and SSE-KMS. - SSE-C isn't supported. For more information, see [Protecting data - with server-side - encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) - in the *Amazon S3 User Guide*. + : Encryption request headers, like `x-amz-server-side-encryption`, + should not be sent for the `GetObject` requests, if your object uses + server-side encryption with Amazon S3 managed encryption keys + (SSE-S3), server-side encryption with Key Management Service (KMS) + keys (SSE-KMS), or dual-layer server-side encryption with Amazon Web + Services KMS keys (DSSE-KMS). If you include the header in your + `GetObject` requests for the object that uses these types of keys, + you'll get an HTTP `400 Bad Request` error. + + **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: SSE-S3 and SSE-KMS. + SSE-C isn't supported. For more information, see [Protecting data + with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. Overriding response header values through the request - : There are times when you want to override certain response header - values of a `GetObject` response. For example, you might override the - `Content-Disposition` response header value through your `GetObject` - request. + : There are times when you want to override certain response header + values of a `GetObject` response. For example, you might override + the `Content-Disposition` response header value through your + `GetObject` request. - You can override values for a set of response headers. These modified - response header values are included only in a successful response, - that is, when the HTTP status code `200 OK` is returned. The headers - you can override using the following query parameters in the request - are a subset of the headers that Amazon S3 accepts when you create an - object. + You can override values for a set of response headers. These + modified response header values are included only in a successful + response, that is, when the HTTP status code `200 OK` is returned. + The headers you can override using the following query parameters in + the request are a subset of the headers that Amazon S3 accepts when + you create an object. - The response headers that you can override for the `GetObject` - response are `Cache-Control`, `Content-Disposition`, - `Content-Encoding`, `Content-Language`, `Content-Type`, and `Expires`. + The response headers that you can override for the `GetObject` + response are `Cache-Control`, `Content-Disposition`, + `Content-Encoding`, `Content-Language`, `Content-Type`, and + `Expires`. - To override values for a set of response headers in the `GetObject` - response, you can use the following query parameters in the request. + To override values for a set of response headers in the `GetObject` + response, you can use the following query parameters in the request. - - `response-cache-control` + - `response-cache-control` - - `response-content-disposition` + - `response-content-disposition` - - `response-content-encoding` + - `response-content-encoding` - - `response-content-language` + - `response-content-language` - - `response-content-type` + - `response-content-type` - - `response-expires` + - `response-expires` - Note: + Note: When you use these parameters, you must sign the request by using either an Authorization header or a presigned URL. These parameters cannot be used with an unsigned (anonymous) request. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `GetObject`: @@ -4630,8 +5601,6 @@ async def get_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4641,10 +5610,33 @@ async def get_object( Returns: An instance of `GetObjectOutput`. """ - return await self._invoke(input, _models.GET_OBJECT, [], plugins) + async def get_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectOutput: + return await self._invoke( + self._select_input(_models.GET_OBJECT, args, kwargs), + _models.GET_OBJECT, + [], + plugins, + ) + + @_overload async def get_object_acl( - self, input: GetObjectAclInput, plugins: list[Plugin] | None = None + self, + request: _models.GetObjectAclInput | _models.GetObjectAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectAclOutput: ... + + @_overload + async def get_object_acl( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectAclInputDict], ) -> GetObjectAclOutput: """ Note: @@ -4688,8 +5680,6 @@ async def get_object_acl( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4699,10 +5689,34 @@ async def get_object_acl( Returns: An instance of `GetObjectAclOutput`. """ - return await self._invoke(input, _models.GET_OBJECT_ACL, [], plugins) + async def get_object_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectAclOutput: + return await self._invoke( + self._select_input(_models.GET_OBJECT_ACL, args, kwargs), + _models.GET_OBJECT_ACL, + [], + plugins, + ) + + @_overload async def get_object_annotation( - self, input: GetObjectAnnotationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetObjectAnnotationInput + | _models.GetObjectAnnotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectAnnotationOutput: ... + + @_overload + async def get_object_annotation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectAnnotationInputDict], ) -> GetObjectAnnotationOutput: """ Retrieves an annotation from an Amazon S3 object. To use this operation, @@ -4726,8 +5740,6 @@ async def get_object_annotation( - [DeleteObjectAnnotation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectAnnotation.html) Args: - input: - An instance of `GetObjectAnnotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4737,10 +5749,34 @@ async def get_object_annotation( Returns: An instance of `GetObjectAnnotationOutput`. """ - return await self._invoke(input, _models.GET_OBJECT_ANNOTATION, [], plugins) + async def get_object_annotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectAnnotationOutput: + return await self._invoke( + self._select_input(_models.GET_OBJECT_ANNOTATION, args, kwargs), + _models.GET_OBJECT_ANNOTATION, + [], + plugins, + ) + + @_overload + async def get_object_attributes( + self, + request: _models.GetObjectAttributesInput + | _models.GetObjectAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectAttributesOutput: ... + + @_overload async def get_object_attributes( - self, input: GetObjectAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectAttributesInputDict], ) -> GetObjectAttributesOutput: """ Retrieves all of the metadata from an object without returning the @@ -4767,143 +5803,144 @@ async def get_object_attributes( Permissions - : - **General purpose bucket permissions** - To use - `GetObjectAttributes`, you must have READ access to the object. - - The other permissions that you need to use this operation depend on - whether the bucket is versioned and if a version ID is passed in the - `GetObjectAttributes` request. - - - If you pass a version ID in your request, you need both the - `s3:GetObjectVersion` and `s3:GetObjectVersionAttributes` - permissions. + : - **General purpose bucket permissions** - To use + `GetObjectAttributes`, you must have READ access to the object. - - If you do not pass a version ID in your request, you need the - `s3:GetObject` and `s3:GetObjectAttributes` permissions. + The other permissions that you need to use this operation depend + on whether the bucket is versioned and if a version ID is passed + in the `GetObjectAttributes` request. - For more information, see [Specifying Permissions in a - Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) - in the *Amazon S3 User Guide*. - - If the object that you request does not exist, the error Amazon S3 - returns depends on whether you also have the `s3:ListBucket` - permission. + - If you pass a version ID in your request, you need both the + `s3:GetObjectVersion` and `s3:GetObjectVersionAttributes` + permissions. - - If you have the `s3:ListBucket` permission on the bucket, Amazon - S3 returns an HTTP status code `404 Not Found` (\"no such key\") - error. + - If you do not pass a version ID in your request, you need the + `s3:GetObject` and `s3:GetObjectAttributes` permissions. - - If you don't have the `s3:ListBucket` permission, Amazon S3 - returns an HTTP status code `403 Forbidden` (\"access denied\") - error. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + For more information, see [Specifying Permissions in a + Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) + in the *Amazon S3 User Guide*. - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + If the object that you request does not exist, the error Amazon S3 + returns depends on whether you also have the `s3:ListBucket` + permission. + + - If you have the `s3:ListBucket` permission on the bucket, Amazon + S3 returns an HTTP status code `404 Not Found` (\"no such key\") + error. + + - If you don't have the `s3:ListBucket` permission, Amazon S3 + returns an HTTP status code `403 Forbidden` (\"access denied\") + error. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Encryption - : Note: + : Note: Encryption request headers, like `x-amz-server-side-encryption`, - should not be sent for `HEAD` requests if your object uses server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), - dual-layer server-side encryption with Amazon Web Services KMS keys - (DSSE-KMS), or server-side encryption with Amazon S3 managed - encryption keys (SSE-S3). The `x-amz-server-side-encryption` header is - used when you `PUT` an object to S3 and want to specify the encryption - method. If you include this header in a `GET` request for an object - that uses these types of keys, you'll get an HTTP `400 Bad Request` - error. It's because the encryption method can't be changed when you - retrieve the object. - If you encrypted an object when you stored the object in Amazon S3 by - using server-side encryption with customer-provided encryption keys - (SSE-C), then when you retrieve the metadata from the object, you must - use the following headers. These headers provide the server with the - encryption key required to retrieve the object's metadata. The - headers are: - - - `x-amz-server-side-encryption-customer-algorithm` + should not be sent for `HEAD` requests if your object uses + server-side encryption with Key Management Service (KMS) keys + (SSE-KMS), dual-layer server-side encryption with Amazon Web + Services KMS keys (DSSE-KMS), or server-side encryption with Amazon + S3 managed encryption keys (SSE-S3). The + `x-amz-server-side-encryption` header is used when you `PUT` an + object to S3 and want to specify the encryption method. If you + include this header in a `GET` request for an object that uses these + types of keys, you'll get an HTTP `400 Bad Request` error. It's + because the encryption method can't be changed when you retrieve + the object. + If you encrypted an object when you stored the object in Amazon S3 + by using server-side encryption with customer-provided encryption + keys (SSE-C), then when you retrieve the metadata from the object, + you must use the following headers. These headers provide the server + with the encryption key required to retrieve the object's metadata. + The headers are: + + - `x-amz-server-side-encryption-customer-algorithm` + + - `x-amz-server-side-encryption-customer-key` + + - `x-amz-server-side-encryption-customer-key-MD5` - - `x-amz-server-side-encryption-customer-key` - - - `x-amz-server-side-encryption-customer-key-MD5` - - For more information about SSE-C, see [Server-Side Encryption (Using - Customer-Provided Encryption - Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + For more information about SSE-C, see [Server-Side Encryption (Using + Customer-Provided Encryption + Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. - Note: + Note: **Directory bucket permissions** - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side encryption with KMS keys (SSE-KMS) (`aws:kms`). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default - encryption in your `CreateSession` requests or `PUT` object requests. - Then, new objects are automatically encrypted with the desired - encryption settings. For more information, see [Protecting data with - server-side + encryption in your `CreateSession` requests or `PUT` object + requests. Then, new objects are automatically encrypted with the + desired encryption settings. For more information, see [Protecting + data with server-side encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) in the *Amazon S3 User Guide*. For more information about the - encryption overriding behaviors in directory buckets, see [Specifying - server-side encryption with KMS for new object + encryption overriding behaviors in directory buckets, see + [Specifying server-side encryption with KMS for new object uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). Versioning - : **Directory buckets** - S3 Versioning isn't enabled and supported for - directory buckets. For this API operation, only the `null` value of - the version ID is supported by directory buckets. You can only specify - `null` to the `versionId` query parameter in the request. + : **Directory buckets** - S3 Versioning isn't enabled and supported + for directory buckets. For this API operation, only the `null` value + of the version ID is supported by directory buckets. You can only + specify `null` to the `versionId` query parameter in the request. Conditional request headers - : Consider the following when using request headers: + : Consider the following when using request headers: - - If both of the `If-Match` and `If-Unmodified-Since` headers are - present in the request as follows, then Amazon S3 returns the HTTP - status code `200 OK` and the data requested: + - If both of the `If-Match` and `If-Unmodified-Since` headers are + present in the request as follows, then Amazon S3 returns the HTTP + status code `200 OK` and the data requested: - - `If-Match` condition evaluates to `true`. + - `If-Match` condition evaluates to `true`. - - `If-Unmodified-Since` condition evaluates to `false`. + - `If-Unmodified-Since` condition evaluates to `false`. - For more information about conditional requests, see [RFC - 7232](https://tools.ietf.org/html/rfc7232). + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). - - If both of the `If-None-Match` and `If-Modified-Since` headers are - present in the request as follows, then Amazon S3 returns the HTTP - status code `304 Not Modified`: + - If both of the `If-None-Match` and `If-Modified-Since` headers are + present in the request as follows, then Amazon S3 returns the HTTP + status code `304 Not Modified`: - - `If-None-Match` condition evaluates to `false`. + - `If-None-Match` condition evaluates to `false`. - - `If-Modified-Since` condition evaluates to `true`. + - `If-Modified-Since` condition evaluates to `true`. - For more information about conditional requests, see [RFC - 7232](https://tools.ietf.org/html/rfc7232). + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following actions are related to `GetObjectAttributes`: @@ -4929,8 +5966,6 @@ async def get_object_attributes( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4940,10 +5975,33 @@ async def get_object_attributes( Returns: An instance of `GetObjectAttributesOutput`. """ - return await self._invoke(input, _models.GET_OBJECT_ATTRIBUTES, [], plugins) + async def get_object_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectAttributesOutput: + return await self._invoke( + self._select_input(_models.GET_OBJECT_ATTRIBUTES, args, kwargs), + _models.GET_OBJECT_ATTRIBUTES, + [], + plugins, + ) + + @_overload async def get_object_legal_hold( - self, input: GetObjectLegalHoldInput, plugins: list[Plugin] | None = None + self, + request: _models.GetObjectLegalHoldInput | _models.GetObjectLegalHoldInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectLegalHoldOutput: ... + + @_overload + async def get_object_legal_hold( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectLegalHoldInputDict], ) -> GetObjectLegalHoldOutput: """ Note: @@ -4965,8 +6023,6 @@ async def get_object_legal_hold( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectLegalHoldInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4976,12 +6032,34 @@ async def get_object_legal_hold( Returns: An instance of `GetObjectLegalHoldOutput`. """ - return await self._invoke(input, _models.GET_OBJECT_LEGAL_HOLD, [], plugins) + async def get_object_legal_hold( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectLegalHoldOutput: + return await self._invoke( + self._select_input(_models.GET_OBJECT_LEGAL_HOLD, args, kwargs), + _models.GET_OBJECT_LEGAL_HOLD, + [], + plugins, + ) + + @_overload + async def get_object_lock_configuration( + self, + request: _models.GetObjectLockConfigurationInput + | _models.GetObjectLockConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectLockConfigurationOutput: ... + + @_overload async def get_object_lock_configuration( self, - input: GetObjectLockConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectLockConfigurationInputDict], ) -> GetObjectLockConfigurationOutput: """ Note: @@ -5003,8 +6081,6 @@ async def get_object_lock_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectLockConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5014,12 +6090,33 @@ async def get_object_lock_configuration( Returns: An instance of `GetObjectLockConfigurationOutput`. """ + + async def get_object_lock_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectLockConfigurationOutput: return await self._invoke( - input, _models.GET_OBJECT_LOCK_CONFIGURATION, [], plugins + self._select_input(_models.GET_OBJECT_LOCK_CONFIGURATION, args, kwargs), + _models.GET_OBJECT_LOCK_CONFIGURATION, + [], + plugins, ) + @_overload async def get_object_retention( - self, input: GetObjectRetentionInput, plugins: list[Plugin] | None = None + self, + request: _models.GetObjectRetentionInput | _models.GetObjectRetentionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectRetentionOutput: ... + + @_overload + async def get_object_retention( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectRetentionInputDict], ) -> GetObjectRetentionOutput: """ Note: @@ -5041,8 +6138,6 @@ async def get_object_retention( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectRetentionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5052,10 +6147,33 @@ async def get_object_retention( Returns: An instance of `GetObjectRetentionOutput`. """ - return await self._invoke(input, _models.GET_OBJECT_RETENTION, [], plugins) + async def get_object_retention( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectRetentionOutput: + return await self._invoke( + self._select_input(_models.GET_OBJECT_RETENTION, args, kwargs), + _models.GET_OBJECT_RETENTION, + [], + plugins, + ) + + @_overload + async def get_object_tagging( + self, + request: _models.GetObjectTaggingInput | _models.GetObjectTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectTaggingOutput: ... + + @_overload async def get_object_tagging( - self, input: GetObjectTaggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectTaggingInputDict], ) -> GetObjectTaggingOutput: """ Note: @@ -5091,8 +6209,6 @@ async def get_object_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5102,10 +6218,33 @@ async def get_object_tagging( Returns: An instance of `GetObjectTaggingOutput`. """ - return await self._invoke(input, _models.GET_OBJECT_TAGGING, [], plugins) + async def get_object_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectTaggingOutput: + return await self._invoke( + self._select_input(_models.GET_OBJECT_TAGGING, args, kwargs), + _models.GET_OBJECT_TAGGING, + [], + plugins, + ) + + @_overload async def get_object_torrent( - self, input: GetObjectTorrentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetObjectTorrentInput | _models.GetObjectTorrentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectTorrentOutput: ... + + @_overload + async def get_object_torrent( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectTorrentInputDict], ) -> GetObjectTorrentOutput: """ Note: @@ -5133,8 +6272,6 @@ async def get_object_torrent( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectTorrentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5144,10 +6281,34 @@ async def get_object_torrent( Returns: An instance of `GetObjectTorrentOutput`. """ - return await self._invoke(input, _models.GET_OBJECT_TORRENT, [], plugins) + async def get_object_torrent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectTorrentOutput: + return await self._invoke( + self._select_input(_models.GET_OBJECT_TORRENT, args, kwargs), + _models.GET_OBJECT_TORRENT, + [], + plugins, + ) + + @_overload + async def get_public_access_block( + self, + request: _models.GetPublicAccessBlockInput + | _models.GetPublicAccessBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPublicAccessBlockOutput: ... + + @_overload async def get_public_access_block( - self, input: GetPublicAccessBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPublicAccessBlockInputDict], ) -> GetPublicAccessBlockOutput: """ Note: @@ -5193,8 +6354,6 @@ async def get_public_access_block( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetPublicAccessBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5204,10 +6363,33 @@ async def get_public_access_block( Returns: An instance of `GetPublicAccessBlockOutput`. """ - return await self._invoke(input, _models.GET_PUBLIC_ACCESS_BLOCK, [], plugins) + async def get_public_access_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPublicAccessBlockOutput: + return await self._invoke( + self._select_input(_models.GET_PUBLIC_ACCESS_BLOCK, args, kwargs), + _models.GET_PUBLIC_ACCESS_BLOCK, + [], + plugins, + ) + + @_overload async def head_bucket( - self, input: HeadBucketInput, plugins: list[Plugin] | None = None + self, + request: _models.HeadBucketInput | _models.HeadBucketInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> HeadBucketOutput: ... + + @_overload + async def head_bucket( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.HeadBucketInputDict], ) -> HeadBucketOutput: """ You can use this operation to determine if a bucket exists and if you @@ -5227,63 +6409,64 @@ async def head_bucket( Authentication and authorization - : **General purpose buckets** - Request to public buckets that grant the - s3:ListBucket permission publicly do not need to be signed. All other - `HeadBucket` requests must be authenticated and signed by using IAM - credentials (access key ID and secret access key for the IAM - identities). All headers with the `x-amz-` prefix, including - `x-amz-copy-source`, must be signed. For more information, see [REST - Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). + : **General purpose buckets** - Request to public buckets that grant + the s3:ListBucket permission publicly do not need to be signed. All + other `HeadBucket` requests must be authenticated and signed by + using IAM credentials (access key ID and secret access key for the + IAM identities). All headers with the `x-amz-` prefix, including + `x-amz-copy-source`, must be signed. For more information, see [REST + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). - **Directory buckets** - You must use IAM credentials to authenticate - and authorize your access to the `HeadBucket` API operation, instead - of using the temporary security credentials through the - `CreateSession` API operation. + **Directory buckets** - You must use IAM credentials to authenticate + and authorize your access to the `HeadBucket` API operation, instead + of using the temporary security credentials through the + `CreateSession` API operation. - Amazon Web Services CLI or SDKs handles authentication and - authorization on your behalf. + Amazon Web Services CLI or SDKs handles authentication and + authorization on your behalf. Permissions - : - **General purpose bucket permissions** - To use this operation, you - must have permissions to perform the `s3:ListBucket` action. The - bucket owner has this permission by default and can grant this - permission to others. For more information about permissions, see - [Managing access permissions to your Amazon S3 - resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. - - - **Directory bucket permissions** - You must have the - **`s3express:CreateSession`** permission in the `Action` element of - a policy. If no session mode is specified, the session will be - created with the maximum allowable privilege, attempting `ReadWrite` - first, then `ReadOnly` if `ReadWrite` is not permitted. If you want - to explicitly restrict the access to be read-only, you can set the - `s3express:SessionMode` condition key to `ReadOnly` on the bucket. + : - **General purpose bucket permissions** - To use this operation, + you must have permissions to perform the `s3:ListBucket` action. + The bucket owner has this permission by default and can grant this + permission to others. For more information about permissions, see + [Managing access permissions to your Amazon S3 + resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. - For more information about example bucket policies, see [Example - bucket policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - and [Amazon Web Services Identity and Access Management (IAM) - identity-based policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - You must have the + **`s3express:CreateSession`** permission in the `Action` element + of a policy. If no session mode is specified, the session will be + created with the maximum allowable privilege, attempting + `ReadWrite` first, then `ReadOnly` if `ReadWrite` is not + permitted. If you want to explicitly restrict the access to be + read-only, you can set the `s3express:SessionMode` condition key + to `ReadOnly` on the bucket. + + For more information about example bucket policies, see [Example + bucket policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + and [Amazon Web Services Identity and Access Management (IAM) + identity-based policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. - Note: + Note: You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format `https://`*`bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Path-style requests are not supported. For more information about - endpoints in Availability Zones, see [Regional and Zonal endpoints for - directory buckets in Availability + endpoints in Availability Zones, see [Regional and Zonal endpoints + for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints in - Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about endpoints + in Local Zones, see [Concepts for directory buckets in Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. @@ -5293,8 +6476,6 @@ async def head_bucket( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `HeadBucketInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5304,10 +6485,33 @@ async def head_bucket( Returns: An instance of `HeadBucketOutput`. """ - return await self._invoke(input, _models.HEAD_BUCKET, [], plugins) + async def head_bucket( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> HeadBucketOutput: + return await self._invoke( + self._select_input(_models.HEAD_BUCKET, args, kwargs), + _models.HEAD_BUCKET, + [], + plugins, + ) + + @_overload + async def head_object( + self, + request: _models.HeadObjectInput | _models.HeadObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> HeadObjectOutput: ... + + @_overload async def head_object( - self, input: HeadObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.HeadObjectInputDict], ) -> HeadObjectOutput: """ The `HEAD` operation retrieves metadata from an object without returning @@ -5329,82 +6533,86 @@ async def head_object( Permissions - : - **General purpose bucket permissions** - To use `HEAD`, you must - have the `s3:GetObject` permission. You need the relevant read - object (or version) permission for this operation. For more - information, see [Actions, resources, and condition keys for Amazon - S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) - in the *Amazon S3 User Guide*. For more information about the - permissions to S3 API operations by S3 resource types, see [Required - permissions for Amazon S3 API - operations](/AmazonS3/latest/userguide/using-with-s3-policy-actions.html) - in the *Amazon S3 User Guide*. - - If the object you request doesn't exist, the error that Amazon S3 - returns depends on whether you also have the `s3:ListBucket` - permission. - - - If you have the `s3:ListBucket` permission on the bucket, Amazon - S3 returns an HTTP status code `404 Not Found` error. - - - If you don't have the `s3:ListBucket` permission, Amazon S3 - returns an HTTP status code `403 Forbidden` error. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + : - **General purpose bucket permissions** - To use `HEAD`, you must + have the `s3:GetObject` permission. You need the relevant read + object (or version) permission for this operation. For more + information, see [Actions, resources, and condition keys for + Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) + in the *Amazon S3 User Guide*. For more information about the + permissions to S3 API operations by S3 resource types, see + [Required permissions for Amazon S3 API + operations](/AmazonS3/latest/userguide/using-with-s3-policy-actions.html) + in the *Amazon S3 User Guide*. - If you enable `x-amz-checksum-mode` in the request and the object is - encrypted with Amazon Web Services Key Management Service (Amazon - Web Services KMS), you must also have the `kms:GenerateDataKey` and - `kms:Decrypt` permissions in IAM identity-based policies and KMS key - policies for the KMS key to retrieve the checksum of the object. + If the object you request doesn't exist, the error that Amazon S3 + returns depends on whether you also have the `s3:ListBucket` + permission. + + - If you have the `s3:ListBucket` permission on the bucket, Amazon + S3 returns an HTTP status code `404 Not Found` error. + + - If you don't have the `s3:ListBucket` permission, Amazon S3 + returns an HTTP status code `403 Forbidden` error. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If you enable `x-amz-checksum-mode` in the request and the object + is encrypted with Amazon Web Services Key Management Service + (Amazon Web Services KMS), you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key to + retrieve the checksum of the object. Encryption - : Note: + : Note: Encryption request headers, like `x-amz-server-side-encryption`, - should not be sent for `HEAD` requests if your object uses server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), - dual-layer server-side encryption with Amazon Web Services KMS keys - (DSSE-KMS), or server-side encryption with Amazon S3 managed - encryption keys (SSE-S3). The `x-amz-server-side-encryption` header is - used when you `PUT` an object to S3 and want to specify the encryption - method. If you include this header in a `HEAD` request for an object - that uses these types of keys, you'll get an HTTP `400 Bad Request` - error. It's because the encryption method can't be changed when you + should not be sent for `HEAD` requests if your object uses + server-side encryption with Key Management Service (KMS) keys + (SSE-KMS), dual-layer server-side encryption with Amazon Web + Services KMS keys (DSSE-KMS), or server-side encryption with Amazon + S3 managed encryption keys (SSE-S3). The + `x-amz-server-side-encryption` header is used when you `PUT` an + object to S3 and want to specify the encryption method. If you + include this header in a `HEAD` request for an object that uses + these types of keys, you'll get an HTTP `400 Bad Request` error. + It's because the encryption method can't be changed when you retrieve the object. - If you encrypt an object by using server-side encryption with - customer-provided encryption keys (SSE-C) when you store the object in - Amazon S3, then when you retrieve the metadata from the object, you - must use the following headers to provide the encryption key for the - server to be able to retrieve the object's metadata. The headers are: + If you encrypt an object by using server-side encryption with + customer-provided encryption keys (SSE-C) when you store the object + in Amazon S3, then when you retrieve the metadata from the object, + you must use the following headers to provide the encryption key for + the server to be able to retrieve the object's metadata. The + headers are: - - `x-amz-server-side-encryption-customer-algorithm` + - `x-amz-server-side-encryption-customer-algorithm` - - `x-amz-server-side-encryption-customer-key` + - `x-amz-server-side-encryption-customer-key` - - `x-amz-server-side-encryption-customer-key-MD5` + - `x-amz-server-side-encryption-customer-key-MD5` - For more information about SSE-C, see [Server-Side Encryption (Using - Customer-Provided Encryption - Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + For more information about SSE-C, see [Server-Side Encryption (Using + Customer-Provided Encryption + Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. - Note: + Note: **Directory bucket** - For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more information, see [Protecting data @@ -5414,39 +6622,40 @@ async def head_object( Versioning - : - If the current version of the object is a delete marker, Amazon S3 - behaves as if the object was deleted and includes - `x-amz-delete-marker: true` in the response. + : - If the current version of the object is a delete marker, Amazon S3 + behaves as if the object was deleted and includes + `x-amz-delete-marker: true` in the response. - - If the specified version is a delete marker, the response returns a - `405 Method Not Allowed` error and the `Last-Modified: timestamp` - response header. + - If the specified version is a delete marker, the response returns + a `405 Method Not Allowed` error and the + `Last-Modified: timestamp` response header. - Note: - - **Directory buckets** - Delete marker is not supported for directory - buckets. + Note: + - **Directory buckets** - Delete marker is not supported for + directory buckets. - **Directory buckets** - S3 Versioning isn't enabled and supported - for directory buckets. For this API operation, only the `null` value - of the version ID is supported by directory buckets. You can only - specify `null` to the `versionId` query parameter in the request. + for directory buckets. For this API operation, only the `null` + value of the version ID is supported by directory buckets. You can + only specify `null` to the `versionId` query parameter in the + request. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. - Note: + Note: For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format `https://`*`amzn-s3-demo-bucket`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com/`*`key-name`*` `. Path-style requests are not supported. For more information about - endpoints in Availability Zones, see [Regional and Zonal endpoints for - directory buckets in Availability + endpoints in Availability Zones, see [Regional and Zonal endpoints + for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints in - Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about endpoints + in Local Zones, see [Concepts for directory buckets in Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. @@ -5462,8 +6671,6 @@ async def head_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `HeadObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5473,12 +6680,34 @@ async def head_object( Returns: An instance of `HeadObjectOutput`. """ - return await self._invoke(input, _models.HEAD_OBJECT, [], plugins) + async def head_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> HeadObjectOutput: + return await self._invoke( + self._select_input(_models.HEAD_OBJECT, args, kwargs), + _models.HEAD_OBJECT, + [], + plugins, + ) + + @_overload async def list_bucket_analytics_configurations( self, - input: ListBucketAnalyticsConfigurationsInput, + request: _models.ListBucketAnalyticsConfigurationsInput + | _models.ListBucketAnalyticsConfigurationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListBucketAnalyticsConfigurationsOutput: ... + + @_overload + async def list_bucket_analytics_configurations( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketAnalyticsConfigurationsInputDict], ) -> ListBucketAnalyticsConfigurationsOutput: """ Note: @@ -5524,8 +6753,6 @@ async def list_bucket_analytics_configurations( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketAnalyticsConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5535,14 +6762,36 @@ async def list_bucket_analytics_configurations( Returns: An instance of `ListBucketAnalyticsConfigurationsOutput`. """ + + async def list_bucket_analytics_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketAnalyticsConfigurationsOutput: return await self._invoke( - input, _models.LIST_BUCKET_ANALYTICS_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_BUCKET_ANALYTICS_CONFIGURATIONS, args, kwargs + ), + _models.LIST_BUCKET_ANALYTICS_CONFIGURATIONS, + [], + plugins, ) + @_overload + async def list_bucket_intelligent_tiering_configurations( + self, + request: _models.ListBucketIntelligentTieringConfigurationsInput + | _models.ListBucketIntelligentTieringConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketIntelligentTieringConfigurationsOutput: ... + + @_overload async def list_bucket_intelligent_tiering_configurations( self, - input: ListBucketIntelligentTieringConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketIntelligentTieringConfigurationsInputDict], ) -> ListBucketIntelligentTieringConfigurationsOutput: """ Note: @@ -5586,8 +6835,6 @@ async def list_bucket_intelligent_tiering_configurations( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketIntelligentTieringConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5597,14 +6844,36 @@ async def list_bucket_intelligent_tiering_configurations( Returns: An instance of `ListBucketIntelligentTieringConfigurationsOutput`. """ + + async def list_bucket_intelligent_tiering_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketIntelligentTieringConfigurationsOutput: return await self._invoke( - input, _models.LIST_BUCKET_INTELLIGENT_TIERING_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_BUCKET_INTELLIGENT_TIERING_CONFIGURATIONS, args, kwargs + ), + _models.LIST_BUCKET_INTELLIGENT_TIERING_CONFIGURATIONS, + [], + plugins, ) + @_overload + async def list_bucket_inventory_configurations( + self, + request: _models.ListBucketInventoryConfigurationsInput + | _models.ListBucketInventoryConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketInventoryConfigurationsOutput: ... + + @_overload async def list_bucket_inventory_configurations( self, - input: ListBucketInventoryConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketInventoryConfigurationsInputDict], ) -> ListBucketInventoryConfigurationsOutput: """ Returns a list of S3 Inventory configurations for the bucket. You can @@ -5635,35 +6904,35 @@ async def list_bucket_inventory_configurations( Permissions - : To use this operation, you must have permissions to perform the - `s3:GetInventoryConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:GetInventoryConfiguration` permission is required in a policy. - For more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:GetInventoryConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetInventoryConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:GetInventoryConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetInventoryConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about the Amazon S3 inventory feature, see [Amazon S3 Inventory](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html) @@ -5683,8 +6952,6 @@ async def list_bucket_inventory_configurations( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketInventoryConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5694,14 +6961,36 @@ async def list_bucket_inventory_configurations( Returns: An instance of `ListBucketInventoryConfigurationsOutput`. """ + + async def list_bucket_inventory_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketInventoryConfigurationsOutput: return await self._invoke( - input, _models.LIST_BUCKET_INVENTORY_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_BUCKET_INVENTORY_CONFIGURATIONS, args, kwargs + ), + _models.LIST_BUCKET_INVENTORY_CONFIGURATIONS, + [], + plugins, ) + @_overload + async def list_bucket_metrics_configurations( + self, + request: _models.ListBucketMetricsConfigurationsInput + | _models.ListBucketMetricsConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketMetricsConfigurationsOutput: ... + + @_overload async def list_bucket_metrics_configurations( self, - input: ListBucketMetricsConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketMetricsConfigurationsInputDict], ) -> ListBucketMetricsConfigurationsOutput: """ Lists the metrics configurations for the bucket. The metrics @@ -5734,37 +7023,37 @@ async def list_bucket_metrics_configurations( Permissions - : To use this operation, you must have permissions to perform the - `s3:GetMetricsConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:GetMetricsConfiguration` permission is required in a policy. For - more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:GetMetricsConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetMetricsConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:GetMetricsConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetMetricsConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For more information about metrics configurations and CloudWatch request metrics, see [Monitoring Metrics with Amazon @@ -5785,8 +7074,6 @@ async def list_bucket_metrics_configurations( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketMetricsConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5796,12 +7083,35 @@ async def list_bucket_metrics_configurations( Returns: An instance of `ListBucketMetricsConfigurationsOutput`. """ + + async def list_bucket_metrics_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketMetricsConfigurationsOutput: return await self._invoke( - input, _models.LIST_BUCKET_METRICS_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_BUCKET_METRICS_CONFIGURATIONS, args, kwargs + ), + _models.LIST_BUCKET_METRICS_CONFIGURATIONS, + [], + plugins, ) + @_overload async def list_buckets( - self, input: ListBucketsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListBucketsInput | _models.ListBucketsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketsOutput: ... + + @_overload + async def list_buckets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketsInputDict], ) -> ListBucketsOutput: """ Note: @@ -5830,21 +7140,43 @@ async def list_buckets( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. - Returns: - An instance of `ListBucketsOutput`. - """ - return await self._invoke(input, _models.LIST_BUCKETS, [], plugins) + Returns: + An instance of `ListBucketsOutput`. + """ + + async def list_buckets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketsOutput: + return await self._invoke( + self._select_input(_models.LIST_BUCKETS, args, kwargs), + _models.LIST_BUCKETS, + [], + plugins, + ) + + @_overload + async def list_directory_buckets( + self, + request: _models.ListDirectoryBucketsInput + | _models.ListDirectoryBucketsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDirectoryBucketsOutput: ... + @_overload async def list_directory_buckets( - self, input: ListDirectoryBucketsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDirectoryBucketsInputDict], ) -> ListDirectoryBucketsOutput: """ Returns a list of all Amazon S3 directory buckets owned by the @@ -5869,20 +7201,20 @@ async def list_directory_buckets( Permissions - : You must have the `s3express:ListAllMyDirectoryBuckets` permission in - an IAM identity-based policy instead of a bucket policy. Cross-account - access to this API operation isn't supported. This operation can only - be performed by the Amazon Web Services account that owns the - resource. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + : You must have the `s3express:ListAllMyDirectoryBuckets` permission + in an IAM identity-based policy instead of a bucket policy. + Cross-account access to this API operation isn't supported. This + operation can only be performed by the Amazon Web Services account + that owns the resource. For more information about directory bucket + policies and permissions, see [Amazon Web Services Identity and + Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region`*`.amazonaws.com`. Note: The `BucketRegion` response element is not part of the @@ -5893,8 +7225,6 @@ async def list_directory_buckets( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListDirectoryBucketsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5904,10 +7234,34 @@ async def list_directory_buckets( Returns: An instance of `ListDirectoryBucketsOutput`. """ - return await self._invoke(input, _models.LIST_DIRECTORY_BUCKETS, [], plugins) + async def list_directory_buckets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDirectoryBucketsOutput: + return await self._invoke( + self._select_input(_models.LIST_DIRECTORY_BUCKETS, args, kwargs), + _models.LIST_DIRECTORY_BUCKETS, + [], + plugins, + ) + + @_overload + async def list_multipart_uploads( + self, + request: _models.ListMultipartUploadsInput + | _models.ListMultipartUploadsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMultipartUploadsOutput: ... + + @_overload async def list_multipart_uploads( - self, input: ListMultipartUploadsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMultipartUploadsInputDict], ) -> ListMultipartUploadsOutput: """ This operation lists in-progress multipart uploads in a bucket. An @@ -5966,51 +7320,51 @@ async def list_multipart_uploads( Permissions - : - **General purpose bucket permissions** - For information about - permissions required to use the multipart upload API, see [Multipart - Upload and - Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - For information about + permissions required to use the multipart upload API, see + [Multipart Upload and + Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . Sorting of multipart uploads in response - : - **General purpose bucket** - In the `ListMultipartUploads` response, - the multipart uploads are sorted based on two criteria: + : - **General purpose bucket** - In the `ListMultipartUploads` + response, the multipart uploads are sorted based on two criteria: - - Key-based sorting - Multipart uploads are initially sorted in - ascending order based on their object keys. + - Key-based sorting - Multipart uploads are initially sorted in + ascending order based on their object keys. - - Time-based sorting - For uploads that share the same object key, - they are further sorted in ascending order based on the upload - initiation time. Among uploads with the same key, the one that was - initiated first will appear before the ones that were initiated - later. + - Time-based sorting - For uploads that share the same object key, + they are further sorted in ascending order based on the upload + initiation time. Among uploads with the same key, the one that + was initiated first will appear before the ones that were + initiated later. - - **Directory bucket** - In the `ListMultipartUploads` response, the - multipart uploads aren't sorted lexicographically based on the - object keys. + - **Directory bucket** - In the `ListMultipartUploads` response, the + multipart uploads aren't sorted lexicographically based on the + object keys. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `ListMultipartUploads`: @@ -6030,8 +7384,6 @@ async def list_multipart_uploads( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListMultipartUploadsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6041,10 +7393,34 @@ async def list_multipart_uploads( Returns: An instance of `ListMultipartUploadsOutput`. """ - return await self._invoke(input, _models.LIST_MULTIPART_UPLOADS, [], plugins) + async def list_multipart_uploads( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMultipartUploadsOutput: + return await self._invoke( + self._select_input(_models.LIST_MULTIPART_UPLOADS, args, kwargs), + _models.LIST_MULTIPART_UPLOADS, + [], + plugins, + ) + + @_overload + async def list_object_annotations( + self, + request: _models.ListObjectAnnotationsInput + | _models.ListObjectAnnotationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListObjectAnnotationsOutput: ... + + @_overload async def list_object_annotations( - self, input: ListObjectAnnotationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListObjectAnnotationsInputDict], ) -> ListObjectAnnotationsOutput: """ Lists the annotations attached to an Amazon S3 object. Results are @@ -6068,8 +7444,6 @@ async def list_object_annotations( - [DeleteObjectAnnotation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectAnnotation.html) Args: - input: - An instance of `ListObjectAnnotationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6079,10 +7453,33 @@ async def list_object_annotations( Returns: An instance of `ListObjectAnnotationsOutput`. """ - return await self._invoke(input, _models.LIST_OBJECT_ANNOTATIONS, [], plugins) + async def list_object_annotations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListObjectAnnotationsOutput: + return await self._invoke( + self._select_input(_models.LIST_OBJECT_ANNOTATIONS, args, kwargs), + _models.LIST_OBJECT_ANNOTATIONS, + [], + plugins, + ) + + @_overload async def list_objects( - self, input: ListObjectsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListObjectsInput | _models.ListObjectsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListObjectsOutput: ... + + @_overload + async def list_objects( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListObjectsInputDict], ) -> ListObjectsOutput: """ Note: @@ -6119,8 +7516,6 @@ async def list_objects( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListObjectsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6130,10 +7525,33 @@ async def list_objects( Returns: An instance of `ListObjectsOutput`. """ - return await self._invoke(input, _models.LIST_OBJECTS, [], plugins) + async def list_objects( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListObjectsOutput: + return await self._invoke( + self._select_input(_models.LIST_OBJECTS, args, kwargs), + _models.LIST_OBJECTS, + [], + plugins, + ) + + @_overload + async def list_objects_v2( + self, + request: _models.ListObjectsV2Input | _models.ListObjectsV2InputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListObjectsV2Output: ... + + @_overload async def list_objects_v2( - self, input: ListObjectsV2Input, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListObjectsV2InputDict], ) -> ListObjectsV2Output: """ Returns some or all (up to 1,000) of the objects in a bucket with each @@ -6170,47 +7588,47 @@ async def list_objects_v2( Permissions - : - **General purpose bucket permissions** - To use this operation, you - must have READ access to the bucket. You must have permission to - perform the `s3:ListBucket` action. The bucket owner has this - permission by default and can grant this permission to others. For - more information about permissions, see [Permissions Related to - Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - To use this operation, + you must have READ access to the bucket. You must have permission + to perform the `s3:ListBucket` action. The bucket owner has this + permission by default and can grant this permission to others. For + more information about permissions, see [Permissions Related to + Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . Sorting order of returned objects - : - **General purpose bucket** - For general purpose buckets, - `ListObjectsV2` returns objects in lexicographical order based on - their key names. + : - **General purpose bucket** - For general purpose buckets, + `ListObjectsV2` returns objects in lexicographical order based on + their key names. - - **Directory bucket** - For directory buckets, `ListObjectsV2` does - not return objects in lexicographical order. + - **Directory bucket** - For directory buckets, `ListObjectsV2` does + not return objects in lexicographical order. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Warning: This section describes the latest revision of this action. We recommend @@ -6233,8 +7651,6 @@ async def list_objects_v2( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListObjectsV2Input`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6244,10 +7660,33 @@ async def list_objects_v2( Returns: An instance of `ListObjectsV2Output`. """ - return await self._invoke(input, _models.LIST_OBJECTS_V2, [], plugins) + async def list_objects_v2( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListObjectsV2Output: + return await self._invoke( + self._select_input(_models.LIST_OBJECTS_V2, args, kwargs), + _models.LIST_OBJECTS_V2, + [], + plugins, + ) + + @_overload + async def list_object_versions( + self, + request: _models.ListObjectVersionsInput | _models.ListObjectVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListObjectVersionsOutput: ... + + @_overload async def list_object_versions( - self, input: ListObjectVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListObjectVersionsInputDict], ) -> ListObjectVersionsOutput: """ Note: @@ -6283,8 +7722,6 @@ async def list_object_versions( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListObjectVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6294,10 +7731,33 @@ async def list_object_versions( Returns: An instance of `ListObjectVersionsOutput`. """ - return await self._invoke(input, _models.LIST_OBJECT_VERSIONS, [], plugins) + async def list_object_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListObjectVersionsOutput: + return await self._invoke( + self._select_input(_models.LIST_OBJECT_VERSIONS, args, kwargs), + _models.LIST_OBJECT_VERSIONS, + [], + plugins, + ) + + @_overload + async def list_parts( + self, + request: _models.ListPartsInput | _models.ListPartsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPartsOutput: ... + + @_overload async def list_parts( - self, input: ListPartsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPartsInputDict], ) -> ListPartsOutput: """ Lists the parts that have been uploaded for a specific multipart upload. @@ -6338,39 +7798,39 @@ async def list_parts( Permissions - : - **General purpose bucket permissions** - For information about - permissions required to use the multipart upload API, see [Multipart - Upload and - Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - in the *Amazon S3 User Guide*. - - If the upload was created using server-side encryption with Key - Management Service (KMS) keys (SSE-KMS) or dual-layer server-side - encryption with Amazon Web Services KMS keys (DSSE-KMS), you must - have permission to the `kms:Decrypt` action for the `ListParts` - request to succeed. + : - **General purpose bucket permissions** - For information about + permissions required to use the multipart upload API, see + [Multipart Upload and + Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + If the upload was created using server-side encryption with Key + Management Service (KMS) keys (SSE-KMS) or dual-layer server-side + encryption with Amazon Web Services KMS keys (DSSE-KMS), you must + have permission to the `kms:Decrypt` action for the `ListParts` + request to succeed. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `ListParts`: @@ -6392,8 +7852,6 @@ async def list_parts( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListPartsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6403,10 +7861,33 @@ async def list_parts( Returns: An instance of `ListPartsOutput`. """ - return await self._invoke(input, _models.LIST_PARTS, [], plugins) + async def list_parts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPartsOutput: + return await self._invoke( + self._select_input(_models.LIST_PARTS, args, kwargs), + _models.LIST_PARTS, + [], + plugins, + ) + + @_overload + async def put_bucket_abac( + self, + request: _models.PutBucketAbacInput | _models.PutBucketAbacInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketAbacOutput: ... + + @_overload async def put_bucket_abac( - self, input: PutBucketAbacInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketAbacInputDict], ) -> PutBucketAbacOutput: """ Sets the attribute-based access control (ABAC) property of the general @@ -6425,8 +7906,6 @@ async def put_bucket_abac( buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html). Args: - input: - An instance of `PutBucketAbacInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6436,12 +7915,34 @@ async def put_bucket_abac( Returns: An instance of `PutBucketAbacOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_ABAC, [], plugins) + async def put_bucket_abac( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketAbacOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_ABAC, args, kwargs), + _models.PUT_BUCKET_ABAC, + [], + plugins, + ) + + @_overload async def put_bucket_accelerate_configuration( self, - input: PutBucketAccelerateConfigurationInput, + request: _models.PutBucketAccelerateConfigurationInput + | _models.PutBucketAccelerateConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> PutBucketAccelerateConfigurationOutput: ... + + @_overload + async def put_bucket_accelerate_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketAccelerateConfigurationInputDict], ) -> PutBucketAccelerateConfigurationOutput: """ Note: @@ -6494,8 +7995,6 @@ async def put_bucket_accelerate_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketAccelerateConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6505,12 +8004,35 @@ async def put_bucket_accelerate_configuration( Returns: An instance of `PutBucketAccelerateConfigurationOutput`. """ + + async def put_bucket_accelerate_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketAccelerateConfigurationOutput: return await self._invoke( - input, _models.PUT_BUCKET_ACCELERATE_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_ACCELERATE_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_ACCELERATE_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_bucket_acl( + self, + request: _models.PutBucketAclInput | _models.PutBucketAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketAclOutput: ... + + @_overload async def put_bucket_acl( - self, input: PutBucketAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketAclInputDict], ) -> PutBucketAclOutput: """ Warning: @@ -6559,39 +8081,40 @@ async def put_bucket_acl( Permissions - : You can set access permissions by using one of the following methods: + : You can set access permissions by using one of the following + methods: - - Specify a canned ACL with the `x-amz-acl` request header. Amazon S3 - supports a set of predefined ACLs, known as *canned ACLs*. Each - canned ACL has a predefined set of grantees and permissions. Specify - the canned ACL name as the value of `x-amz-acl`. If you use this - header, you cannot use other access control-specific headers in your - request. For more information, see [Canned - ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). + - Specify a canned ACL with the `x-amz-acl` request header. Amazon + S3 supports a set of predefined ACLs, known as *canned ACLs*. Each + canned ACL has a predefined set of grantees and permissions. + Specify the canned ACL name as the value of `x-amz-acl`. If you + use this header, you cannot use other access control-specific + headers in your request. For more information, see [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). - - Specify access permissions explicitly with the `x-amz-grant-read`, - `x-amz-grant-read-acp`, `x-amz-grant-write-acp`, and - `x-amz-grant-full-control` headers. When using these headers, you - specify explicit access permissions and grantees (Amazon Web - Services accounts or Amazon S3 groups) who will receive the - permission. If you use these ACL-specific headers, you cannot use - the `x-amz-acl` header to set a canned ACL. These parameters map to - the set of permissions that Amazon S3 supports in an ACL. For more - information, see [Access Control List (ACL) - Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). + - Specify access permissions explicitly with the `x-amz-grant-read`, + `x-amz-grant-read-acp`, `x-amz-grant-write-acp`, and + `x-amz-grant-full-control` headers. When using these headers, you + specify explicit access permissions and grantees (Amazon Web + Services accounts or Amazon S3 groups) who will receive the + permission. If you use these ACL-specific headers, you cannot use + the `x-amz-acl` header to set a canned ACL. These parameters map + to the set of permissions that Amazon S3 supports in an ACL. For + more information, see [Access Control List (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). - You specify each grantee as a type=value pair, where the type is one - of the following: + You specify each grantee as a type=value pair, where the type is + one of the following: - - `id` -- if the value specified is the canonical user ID of an - Amazon Web Services account + - `id` -- if the value specified is the canonical user ID of an + Amazon Web Services account - - `uri` -- if you are granting permissions to a predefined group + - `uri` -- if you are granting permissions to a predefined group - - `emailAddress` -- if the value specified is the email address of - an Amazon Web Services account + - `emailAddress` -- if the value specified is the email address of + an Amazon Web Services account - Note: + Note: Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: @@ -6616,45 +8139,46 @@ async def put_bucket_acl( Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the Amazon Web Services General Reference. - For example, the following `x-amz-grant-write` header grants create, - overwrite, and delete objects permission to LogDelivery group - predefined by Amazon S3 and two Amazon Web Services accounts - identified by their email addresses. + For example, the following `x-amz-grant-write` header grants + create, overwrite, and delete objects permission to LogDelivery + group predefined by Amazon S3 and two Amazon Web Services accounts + identified by their email addresses. - `x-amz-grant-write: uri="http://acs.amazonaws.com/groups/s3/LogDelivery", id="111122223333", id="555566667777" ` + `x-amz-grant-write: uri="http://acs.amazonaws.com/groups/s3/LogDelivery", id="111122223333", id="555566667777" ` - You can use either a canned ACL or specify access permissions - explicitly. You cannot do both. + You can use either a canned ACL or specify access permissions + explicitly. You cannot do both. Grantee Values - : You can specify the person (grantee) to whom you're assigning access - rights (using request elements) in the following ways. For examples of - how to specify these grantee values in JSON format, see the Amazon Web - Services CLI example in [Enabling Amazon S3 server access - logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) - in the *Amazon S3 User Guide*. + : You can specify the person (grantee) to whom you're assigning + access rights (using request elements) in the following ways. For + examples of how to specify these grantee values in JSON format, see + the Amazon Web Services CLI example in [Enabling Amazon S3 server + access + logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) + in the *Amazon S3 User Guide*. - - By the person's ID: + - By the person's ID: - ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} + ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} - DisplayName is optional and ignored in the request + DisplayName is optional and ignored in the request - - By URI: + - By URI: - ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} + ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} - - By Email address: + - By Email address: - ``{=html}``{=html}`<>Grantees@email.com<>```{=html}`&```{=html} + ``{=html}``{=html}`<>Grantees@email.com<>```{=html}`&```{=html} - The grantee is resolved to the CanonicalUser and, in a response to a - GET Object acl request, appears as the CanonicalUser. + The grantee is resolved to the CanonicalUser and, in a response to + a GET Object acl request, appears as the CanonicalUser. - Note: - Using email addresses to specify a grantee is only supported in the - following Amazon Web Services Regions: + Note: + Using email addresses to specify a grantee is only supported in + the following Amazon Web Services Regions: - US East (N. Virginia) @@ -6672,8 +8196,8 @@ async def put_bucket_acl( - South America (São Paulo) - For a list of all the Amazon S3 supported Regions and endpoints, see - [Regions and + For a list of all the Amazon S3 supported Regions and endpoints, + see [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the Amazon Web Services General Reference. @@ -6691,8 +8215,6 @@ async def put_bucket_acl( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6702,12 +8224,34 @@ async def put_bucket_acl( Returns: An instance of `PutBucketAclOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_ACL, [], plugins) + async def put_bucket_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketAclOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_ACL, args, kwargs), + _models.PUT_BUCKET_ACL, + [], + plugins, + ) + + @_overload + async def put_bucket_analytics_configuration( + self, + request: _models.PutBucketAnalyticsConfigurationInput + | _models.PutBucketAnalyticsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketAnalyticsConfigurationOutput: ... + + @_overload async def put_bucket_analytics_configuration( self, - input: PutBucketAnalyticsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketAnalyticsConfigurationInputDict], ) -> PutBucketAnalyticsConfigurationOutput: """ Note: @@ -6782,8 +8326,6 @@ async def put_bucket_analytics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketAnalyticsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6793,12 +8335,35 @@ async def put_bucket_analytics_configuration( Returns: An instance of `PutBucketAnalyticsConfigurationOutput`. """ + + async def put_bucket_analytics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketAnalyticsConfigurationOutput: return await self._invoke( - input, _models.PUT_BUCKET_ANALYTICS_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_ANALYTICS_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_ANALYTICS_CONFIGURATION, + [], + plugins, ) + @_overload async def put_bucket_cors( - self, input: PutBucketCorsInput, plugins: list[Plugin] | None = None + self, + request: _models.PutBucketCorsInput | _models.PutBucketCorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketCorsOutput: ... + + @_overload + async def put_bucket_cors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketCorsInputDict], ) -> PutBucketCorsOutput: """ Note: @@ -6856,8 +8421,6 @@ async def put_bucket_cors( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketCorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6867,10 +8430,34 @@ async def put_bucket_cors( Returns: An instance of `PutBucketCorsOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_CORS, [], plugins) + async def put_bucket_cors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketCorsOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_CORS, args, kwargs), + _models.PUT_BUCKET_CORS, + [], + plugins, + ) + + @_overload + async def put_bucket_encryption( + self, + request: _models.PutBucketEncryptionInput + | _models.PutBucketEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketEncryptionOutput: ... + + @_overload async def put_bucket_encryption( - self, input: PutBucketEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketEncryptionInputDict], ) -> PutBucketEncryptionOutput: """ This operation configures default encryption and Amazon S3 Bucket Keys @@ -6972,36 +8559,37 @@ async def put_bucket_encryption( Permissions - : - **General purpose bucket permissions** - The - `s3:PutEncryptionConfiguration` permission is required in a policy. - The bucket owner has this permission by default. The bucket owner - can grant this permission to others. For more information about - permissions, see [Permissions Related to Bucket - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - The + `s3:PutEncryptionConfiguration` permission is required in a + policy. The bucket owner has this permission by default. The + bucket owner can grant this permission to others. For more + information about permissions, see [Permissions Related to Bucket + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutEncryptionConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - To grant access to this API + operation, you must have the + `s3express:PutEncryptionConfiguration` permission in an IAM + identity-based policy instead of a bucket policy. Cross-account + access to this API operation isn't supported. This operation can + only be performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. - To set a directory bucket default encryption with SSE-KMS, you must - also have the `kms:GenerateDataKey` and the `kms:Decrypt` - permissions in IAM identity-based policies and KMS key policies for - the target KMS key. + To set a directory bucket default encryption with SSE-KMS, you + must also have the `kms:GenerateDataKey` and the `kms:Decrypt` + permissions in IAM identity-based policies and KMS key policies + for the target KMS key. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `PutBucketEncryption`: @@ -7015,8 +8603,6 @@ async def put_bucket_encryption( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7026,12 +8612,34 @@ async def put_bucket_encryption( Returns: An instance of `PutBucketEncryptionOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_ENCRYPTION, [], plugins) + async def put_bucket_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketEncryptionOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_ENCRYPTION, args, kwargs), + _models.PUT_BUCKET_ENCRYPTION, + [], + plugins, + ) + + @_overload + async def put_bucket_intelligent_tiering_configuration( + self, + request: _models.PutBucketIntelligentTieringConfigurationInput + | _models.PutBucketIntelligentTieringConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketIntelligentTieringConfigurationOutput: ... + + @_overload async def put_bucket_intelligent_tiering_configuration( self, - input: PutBucketIntelligentTieringConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketIntelligentTieringConfigurationInputDict], ) -> PutBucketIntelligentTieringConfigurationOutput: """ Note: @@ -7079,22 +8687,22 @@ class to the Archive Access or Deep Archive Access tier. HTTP 400 Bad Request Error - : *Code:* InvalidArgument + : *Code:* InvalidArgument - *Cause:* Invalid Argument + *Cause:* Invalid Argument HTTP 400 Bad Request Error - : *Code:* TooManyConfigurations + : *Code:* TooManyConfigurations - *Cause:* You are attempting to create a new configuration but have - already reached the 1,000-configuration limit. + *Cause:* You are attempting to create a new configuration but have + already reached the 1,000-configuration limit. HTTP 403 Forbidden Error - : *Cause:* You are not the owner of the specified bucket, or you do not - have the `s3:PutIntelligentTieringConfiguration` bucket permission to - set the configuration on the bucket. + : *Cause:* You are not the owner of the specified bucket, or you do + not have the `s3:PutIntelligentTieringConfiguration` bucket + permission to set the configuration on the bucket. Warning: You must URL encode any signed header values that contain spaces. For @@ -7102,8 +8710,6 @@ class to the Archive Access or Deep Archive Access tier. after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketIntelligentTieringConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7113,14 +8719,36 @@ class to the Archive Access or Deep Archive Access tier. Returns: An instance of `PutBucketIntelligentTieringConfigurationOutput`. """ + + async def put_bucket_intelligent_tiering_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketIntelligentTieringConfigurationOutput: return await self._invoke( - input, _models.PUT_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_bucket_inventory_configuration( + self, + request: _models.PutBucketInventoryConfigurationInput + | _models.PutBucketInventoryConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketInventoryConfigurationOutput: ... + + @_overload async def put_bucket_inventory_configuration( self, - input: PutBucketInventoryConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketInventoryConfigurationInputDict], ) -> PutBucketInventoryConfigurationOutput: """ This implementation of the `PUT` action adds an S3 Inventory @@ -7165,72 +8793,72 @@ async def put_bucket_inventory_configuration( Permissions - : To use this operation, you must have permission to perform the - `s3:PutInventoryConfiguration` action. The bucket owner has this - permission by default and can grant this permission to others. - - The `s3:PutInventoryConfiguration` permission allows a user to create - an [S3 - Inventory](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html) - report that includes all object metadata fields available and to - specify the destination bucket to store the inventory. A user with - read access to objects in the destination bucket can also access all - object metadata fields that are available in the inventory report. - - - **General purpose bucket permissions** - The - `s3:PutInventoryConfiguration` permission is required in a policy. - For more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permission to perform the + `s3:PutInventoryConfiguration` action. The bucket owner has this + permission by default and can grant this permission to others. + + The `s3:PutInventoryConfiguration` permission allows a user to + create an [S3 + Inventory](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html) + report that includes all object metadata fields available and to + specify the destination bucket to store the inventory. A user with + read access to objects in the destination bucket can also access all + object metadata fields that are available in the inventory report. + + - **General purpose bucket permissions** - The + `s3:PutInventoryConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutInventoryConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutInventoryConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. - To restrict access to an inventory report, see [Restricting access to - an Amazon S3 Inventory - report](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html#example-bucket-policies-s3-inventory) - in the *Amazon S3 User Guide*. For more information about the metadata - fields available in S3 Inventory, see [Amazon S3 Inventory - lists](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html#storage-inventory-contents) - in the *Amazon S3 User Guide*. For more information about permissions, - see [Permissions related to bucket subresource - operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Identity and access management in Amazon - S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. + To restrict access to an inventory report, see [Restricting access + to an Amazon S3 Inventory + report](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html#example-bucket-policies-s3-inventory) + in the *Amazon S3 User Guide*. For more information about the + metadata fields available in S3 Inventory, see [Amazon S3 Inventory + lists](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html#storage-inventory-contents) + in the *Amazon S3 User Guide*. For more information about + permissions, see [Permissions related to bucket subresource + operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Identity and access management in Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. `PutBucketInventoryConfiguration` has the following special errors: HTTP 400 Bad Request Error - : *Code:* InvalidArgument + : *Code:* InvalidArgument - *Cause:* Invalid Argument + *Cause:* Invalid Argument HTTP 400 Bad Request Error - : *Code:* TooManyConfigurations + : *Code:* TooManyConfigurations - *Cause:* You are attempting to create a new configuration but have - already reached the 1,000-configuration limit. + *Cause:* You are attempting to create a new configuration but have + already reached the 1,000-configuration limit. HTTP 403 Forbidden Error - : *Cause:* You are not the owner of the specified bucket, or you do not - have the `s3:PutInventoryConfiguration` bucket permission to set the - configuration on the bucket. + : *Cause:* You are not the owner of the specified bucket, or you do + not have the `s3:PutInventoryConfiguration` bucket permission to set + the configuration on the bucket. The following operations are related to `PutBucketInventoryConfiguration`: @@ -7247,8 +8875,6 @@ async def put_bucket_inventory_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketInventoryConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7258,14 +8884,36 @@ async def put_bucket_inventory_configuration( Returns: An instance of `PutBucketInventoryConfigurationOutput`. """ + + async def put_bucket_inventory_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketInventoryConfigurationOutput: return await self._invoke( - input, _models.PUT_BUCKET_INVENTORY_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_INVENTORY_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_INVENTORY_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_bucket_lifecycle_configuration( + self, + request: _models.PutBucketLifecycleConfigurationInput + | _models.PutBucketLifecycleConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketLifecycleConfigurationOutput: ... + + @_overload async def put_bucket_lifecycle_configuration( self, - input: PutBucketLifecycleConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketLifecycleConfigurationInputDict], ) -> PutBucketLifecycleConfigurationOutput: """ Creates a new lifecycle configuration for the bucket or replaces an @@ -7287,109 +8935,110 @@ async def put_bucket_lifecycle_configuration( Rules - : You specify the lifecycle configuration in your request body. The - lifecycle configuration is specified as XML consisting of one or more - rules. An Amazon S3 Lifecycle configuration can have up to 1,000 - rules. This limit is not adjustable. - - Bucket lifecycle configuration supports specifying a lifecycle rule - using an object key name prefix, one or more object tags, object size, - or any combination of these. Accordingly, this section describes the - latest API. The previous version of the API supported filtering based - only on an object key name prefix, which is supported for backward - compatibility for general purpose buckets. For the related API - description, see - [PutBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html). + : You specify the lifecycle configuration in your request body. The + lifecycle configuration is specified as XML consisting of one or + more rules. An Amazon S3 Lifecycle configuration can have up to + 1,000 rules. This limit is not adjustable. + + Bucket lifecycle configuration supports specifying a lifecycle rule + using an object key name prefix, one or more object tags, object + size, or any combination of these. Accordingly, this section + describes the latest API. The previous version of the API supported + filtering based only on an object key name prefix, which is + supported for backward compatibility for general purpose buckets. + For the related API description, see + [PutBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html). - Note: + Note: Lifecyle configurations for directory buckets only support expiring objects and cancelling multipart uploads. Expiring of versioned objects,transitions and tag filters are not supported. - A lifecycle rule consists of the following: + A lifecycle rule consists of the following: - - A filter identifying a subset of objects to which the rule applies. - The filter can be based on a key name prefix, object tags, object - size, or any combination of these. + - A filter identifying a subset of objects to which the rule + applies. The filter can be based on a key name prefix, object + tags, object size, or any combination of these. - - A status indicating whether the rule is in effect. + - A status indicating whether the rule is in effect. - - One or more lifecycle transition and expiration actions that you - want Amazon S3 to perform on the objects identified by the filter. - If the state of your bucket is versioning-enabled or - versioning-suspended, you can have many versions of the same object - (one current version and zero or more noncurrent versions). Amazon - S3 provides predefined actions that you can specify for current and - noncurrent object versions. + - One or more lifecycle transition and expiration actions that you + want Amazon S3 to perform on the objects identified by the filter. + If the state of your bucket is versioning-enabled or + versioning-suspended, you can have many versions of the same + object (one current version and zero or more noncurrent versions). + Amazon S3 provides predefined actions that you can specify for + current and noncurrent object versions. - For more information, see [Object Lifecycle - Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) - and [Lifecycle Configuration - Elements](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html). + For more information, see [Object Lifecycle + Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) + and [Lifecycle Configuration + Elements](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html). Permissions - : - **General purpose bucket permissions** - By default, all Amazon S3 - resources are private, including buckets, objects, and related - subresources (for example, lifecycle configuration and website - configuration). Only the resource owner (that is, the Amazon Web - Services account that created it) can access the resource. The - resource owner can optionally grant access permissions to others by - writing an access policy. For this operation, a user must have the - `s3:PutLifecycleConfiguration` permission. - - You can also explicitly deny permissions. An explicit deny also - supersedes any other permissions. If you want to block users or - accounts from removing or deleting objects from your bucket, you - must deny them permissions for the following actions: - - - `s3:DeleteObject` - - - `s3:DeleteObjectVersion` - - - `s3:PutLifecycleConfiguration` - - For more information about permissions, see [Managing Access - Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **Directory bucket permissions** - You must have the - `s3express:PutLifecycleConfiguration` permission in an IAM - identity-based policy to use this operation. Cross-account access to - this API operation isn't supported. The resource owner can - optionally grant access permissions to others by creating a role or - user for them as long as they are within the same account as the - owner and resource. - - For more information about directory bucket policies and - permissions, see [Authorizing Regional endpoint APIs with - IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - By default, all Amazon S3 + resources are private, including buckets, objects, and related + subresources (for example, lifecycle configuration and website + configuration). Only the resource owner (that is, the Amazon Web + Services account that created it) can access the resource. The + resource owner can optionally grant access permissions to others + by writing an access policy. For this operation, a user must have + the `s3:PutLifecycleConfiguration` permission. + + You can also explicitly deny permissions. An explicit deny also + supersedes any other permissions. If you want to block users or + accounts from removing or deleting objects from your bucket, you + must deny them permissions for the following actions: + + - `s3:DeleteObject` + + - `s3:DeleteObjectVersion` + + - `s3:PutLifecycleConfiguration` + + For more information about permissions, see [Managing Access + Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + + - **Directory bucket permissions** - You must have the + `s3express:PutLifecycleConfiguration` permission in an IAM + identity-based policy to use this operation. Cross-account access + to this API operation isn't supported. The resource owner can + optionally grant access permissions to others by creating a role + or user for them as long as they are within the same account as + the owner and resource. + + For more information about directory bucket policies and + permissions, see [Authorizing Regional endpoint APIs with + IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. - Note: + Note: **Directory buckets** - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. Virtual-hosted-style requests aren't supported. For more - information about endpoints in Availability Zones, see [Regional and - Zonal endpoints for directory buckets in Availability + information about endpoints in Availability Zones, see [Regional + and Zonal endpoints for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints - in Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about + endpoints in Local Zones, see [Concepts for directory buckets in + Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region`*`.amazonaws.com`. - The following operations are related to - `PutBucketLifecycleConfiguration`: + The following operations are related to + `PutBucketLifecycleConfiguration`: - - [GetBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) + - [GetBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) - - [DeleteBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html) + - [DeleteBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html) Warning: You must URL encode any signed header values that contain spaces. For @@ -7397,8 +9046,6 @@ async def put_bucket_lifecycle_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketLifecycleConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7408,12 +9055,35 @@ async def put_bucket_lifecycle_configuration( Returns: An instance of `PutBucketLifecycleConfigurationOutput`. """ + + async def put_bucket_lifecycle_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketLifecycleConfigurationOutput: return await self._invoke( - input, _models.PUT_BUCKET_LIFECYCLE_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_LIFECYCLE_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_LIFECYCLE_CONFIGURATION, + [], + plugins, ) + @_overload async def put_bucket_logging( - self, input: PutBucketLoggingInput, plugins: list[Plugin] | None = None + self, + request: _models.PutBucketLoggingInput | _models.PutBucketLoggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketLoggingOutput: ... + + @_overload + async def put_bucket_logging( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketLoggingInputDict], ) -> PutBucketLoggingOutput: """ Warning: @@ -7449,29 +9119,30 @@ async def put_bucket_logging( Grantee Values - : You can specify the person (grantee) to whom you're assigning access - rights (by using request elements) in the following ways. For examples - of how to specify these grantee values in JSON format, see the Amazon - Web Services CLI example in [Enabling Amazon S3 server access - logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) - in the *Amazon S3 User Guide*. + : You can specify the person (grantee) to whom you're assigning + access rights (by using request elements) in the following ways. For + examples of how to specify these grantee values in JSON format, see + the Amazon Web Services CLI example in [Enabling Amazon S3 server + access + logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) + in the *Amazon S3 User Guide*. - - By the person's ID: + - By the person's ID: - ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} + ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} - `DisplayName` is optional and ignored in the request. + `DisplayName` is optional and ignored in the request. - - By Email address: + - By Email address: - ` ```{=html}``{=html}`<>Grantees@email.com<>```{=html}``{=html} + ` ```{=html}``{=html}`<>Grantees@email.com<>```{=html}``{=html} - The grantee is resolved to the `CanonicalUser` and, in a response to - a `GETObjectAcl` request, appears as the CanonicalUser. + The grantee is resolved to the `CanonicalUser` and, in a response + to a `GETObjectAcl` request, appears as the CanonicalUser. - - By URI: + - By URI: - ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} + ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} To enable logging, you use `LoggingEnabled` and its children request elements. To disable logging, you use an empty `BucketLoggingStatus` @@ -7504,8 +9175,6 @@ async def put_bucket_logging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketLoggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7515,12 +9184,34 @@ async def put_bucket_logging( Returns: An instance of `PutBucketLoggingOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_LOGGING, [], plugins) + async def put_bucket_logging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketLoggingOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_LOGGING, args, kwargs), + _models.PUT_BUCKET_LOGGING, + [], + plugins, + ) + + @_overload + async def put_bucket_metrics_configuration( + self, + request: _models.PutBucketMetricsConfigurationInput + | _models.PutBucketMetricsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketMetricsConfigurationOutput: ... + + @_overload async def put_bucket_metrics_configuration( self, - input: PutBucketMetricsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketMetricsConfigurationInputDict], ) -> PutBucketMetricsConfigurationOutput: """ Sets a metrics configuration (specified by the metrics configuration ID) @@ -7545,37 +9236,37 @@ async def put_bucket_metrics_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:PutMetricsConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:PutMetricsConfiguration` permission is required in a policy. For - more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:PutMetricsConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutMetricsConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:PutMetricsConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutMetricsConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about CloudWatch request metrics for Amazon S3, see [Monitoring Metrics with Amazon @@ -7604,8 +9295,6 @@ async def put_bucket_metrics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketMetricsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7615,14 +9304,34 @@ async def put_bucket_metrics_configuration( Returns: An instance of `PutBucketMetricsConfigurationOutput`. """ + + async def put_bucket_metrics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketMetricsConfigurationOutput: return await self._invoke( - input, _models.PUT_BUCKET_METRICS_CONFIGURATION, [], plugins + self._select_input(_models.PUT_BUCKET_METRICS_CONFIGURATION, args, kwargs), + _models.PUT_BUCKET_METRICS_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_bucket_notification_configuration( + self, + request: _models.PutBucketNotificationConfigurationInput + | _models.PutBucketNotificationConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketNotificationConfigurationOutput: ... + + @_overload async def put_bucket_notification_configuration( self, - input: PutBucketNotificationConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketNotificationConfigurationInputDict], ) -> PutBucketNotificationConfigurationOutput: """ Note: @@ -7696,8 +9405,6 @@ async def put_bucket_notification_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketNotificationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7707,14 +9414,36 @@ async def put_bucket_notification_configuration( Returns: An instance of `PutBucketNotificationConfigurationOutput`. """ + + async def put_bucket_notification_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketNotificationConfigurationOutput: return await self._invoke( - input, _models.PUT_BUCKET_NOTIFICATION_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_NOTIFICATION_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_NOTIFICATION_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_bucket_ownership_controls( + self, + request: _models.PutBucketOwnershipControlsInput + | _models.PutBucketOwnershipControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketOwnershipControlsOutput: ... + + @_overload async def put_bucket_ownership_controls( self, - input: PutBucketOwnershipControlsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketOwnershipControlsInputDict], ) -> PutBucketOwnershipControlsOutput: """ Note: @@ -7741,8 +9470,6 @@ async def put_bucket_ownership_controls( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketOwnershipControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7752,12 +9479,33 @@ async def put_bucket_ownership_controls( Returns: An instance of `PutBucketOwnershipControlsOutput`. """ + + async def put_bucket_ownership_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketOwnershipControlsOutput: return await self._invoke( - input, _models.PUT_BUCKET_OWNERSHIP_CONTROLS, [], plugins + self._select_input(_models.PUT_BUCKET_OWNERSHIP_CONTROLS, args, kwargs), + _models.PUT_BUCKET_OWNERSHIP_CONTROLS, + [], + plugins, ) + @_overload + async def put_bucket_policy( + self, + request: _models.PutBucketPolicyInput | _models.PutBucketPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketPolicyOutput: ... + + @_overload async def put_bucket_policy( - self, input: PutBucketPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketPolicyInputDict], ) -> PutBucketPolicyOutput: """ Applies an Amazon S3 bucket policy to an Amazon S3 bucket. @@ -7778,60 +9526,61 @@ async def put_bucket_policy( Permissions - : If you are using an identity other than the root user of the Amazon - Web Services account that owns the bucket, the calling identity must - both have the `PutBucketPolicy` permissions on the specified bucket - and belong to the bucket owner's account in order to use this - operation. - - If you don't have `PutBucketPolicy` permissions, Amazon S3 returns a - `403 Access Denied` error. If you have the correct permissions, but - you're not using an identity that belongs to the bucket owner's - account, Amazon S3 returns a `405 Method Not Allowed` error. - - Warning: - To ensure that bucket owners don't inadvertently lock themselves out - of their own buckets, the root principal in a bucket owner's Amazon - Web Services account can perform the `GetBucketPolicy`, - `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if their - bucket policy explicitly denies the root principal's access. Bucket - owner root principals can only be blocked from performing these API - actions by VPC endpoint policies and Amazon Web Services Organizations - policies. - - **General purpose bucket permissions** - The `s3:PutBucketPolicy` - permission is required in a policy. For more information about - general purpose buckets bucket policies, see [Using Bucket Policies - and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : If you are using an identity other than the root user of the Amazon + Web Services account that owns the bucket, the calling identity must + both have the `PutBucketPolicy` permissions on the specified bucket + and belong to the bucket owner's account in order to use this + operation. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutBucketPolicy` permission - in an IAM identity-based policy instead of a bucket policy. - Cross-account access to this API operation isn't supported. This - operation can only be performed by the Amazon Web Services account - that owns the resource. For more information about directory bucket - policies and permissions, see [Amazon Web Services Identity and - Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + If you don't have `PutBucketPolicy` permissions, Amazon S3 returns + a `403 Access Denied` error. If you have the correct permissions, + but you're not using an identity that belongs to the bucket + owner's account, Amazon S3 returns a `405 Method Not Allowed` + error. + + Warning: + To ensure that bucket owners don't inadvertently lock themselves + out of their own buckets, the root principal in a bucket owner's + Amazon Web Services account can perform the `GetBucketPolicy`, + `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if + their bucket policy explicitly denies the root principal's access. + Bucket owner root principals can only be blocked from performing + these API actions by VPC endpoint policies and Amazon Web Services + Organizations policies. + - **General purpose bucket permissions** - The `s3:PutBucketPolicy` + permission is required in a policy. For more information about + general purpose buckets bucket policies, see [Using Bucket + Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutBucketPolicy` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. Example bucket policies - : **General purpose buckets example bucket policies** - See [Bucket - policy - examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) - in the *Amazon S3 User Guide*. + : **General purpose buckets example bucket policies** - See [Bucket + policy + examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) + in the *Amazon S3 User Guide*. - **Directory bucket example bucket policies** - See [Example bucket - policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - in the *Amazon S3 User Guide*. + **Directory bucket example bucket policies** - See [Example bucket + policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `PutBucketPolicy`: @@ -7845,8 +9594,6 @@ async def put_bucket_policy( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7856,10 +9603,34 @@ async def put_bucket_policy( Returns: An instance of `PutBucketPolicyOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_POLICY, [], plugins) + async def put_bucket_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketPolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_POLICY, args, kwargs), + _models.PUT_BUCKET_POLICY, + [], + plugins, + ) + + @_overload + async def put_bucket_replication( + self, + request: _models.PutBucketReplicationInput + | _models.PutBucketReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketReplicationOutput: ... + + @_overload async def put_bucket_replication( - self, input: PutBucketReplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketReplicationInputDict], ) -> PutBucketReplicationOutput: """ Note: @@ -7902,36 +9673,36 @@ async def put_bucket_replication( Handling Replication of Encrypted Objects - : By default, Amazon S3 doesn't replicate objects that are stored at - rest using server-side encryption with KMS keys. To replicate Amazon - Web Services KMS-encrypted objects, add the following: - `SourceSelectionCriteria`, `SseKmsEncryptedObjects`, `Status`, - `EncryptionConfiguration`, and `ReplicaKmsKeyID`. For information - about replication configuration, see [Replicating Objects Created with - SSE Using KMS - keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-config-for-kms-objects.html). + : By default, Amazon S3 doesn't replicate objects that are stored at + rest using server-side encryption with KMS keys. To replicate Amazon + Web Services KMS-encrypted objects, add the following: + `SourceSelectionCriteria`, `SseKmsEncryptedObjects`, `Status`, + `EncryptionConfiguration`, and `ReplicaKmsKeyID`. For information + about replication configuration, see [Replicating Objects Created + with SSE Using KMS + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-config-for-kms-objects.html). - For information on `PutBucketReplication` errors, see [List of - replication-related error - codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ReplicationErrorCodeList) + For information on `PutBucketReplication` errors, see [List of + replication-related error + codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ReplicationErrorCodeList) Permissions - : To create a `PutBucketReplication` request, you must have - `s3:PutReplicationConfiguration` permissions for the bucket. + : To create a `PutBucketReplication` request, you must have + `s3:PutReplicationConfiguration` permissions for the bucket. - By default, a resource owner, in this case the Amazon Web Services - account that created the bucket, can perform this operation. The - resource owner can also grant others permissions to perform the - operation. For more information about permissions, see [Specifying - Permissions in a - Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + By default, a resource owner, in this case the Amazon Web Services + account that created the bucket, can perform this operation. The + resource owner can also grant others permissions to perform the + operation. For more information about permissions, see [Specifying + Permissions in a + Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - Note: - To perform this operation, the user or role performing the action must - have the + Note: + To perform this operation, the user or role performing the action + must have the [iam:PassRole](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html) permission. @@ -7947,8 +9718,6 @@ async def put_bucket_replication( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7958,10 +9727,34 @@ async def put_bucket_replication( Returns: An instance of `PutBucketReplicationOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_REPLICATION, [], plugins) + async def put_bucket_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketReplicationOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_REPLICATION, args, kwargs), + _models.PUT_BUCKET_REPLICATION, + [], + plugins, + ) + + @_overload + async def put_bucket_request_payment( + self, + request: _models.PutBucketRequestPaymentInput + | _models.PutBucketRequestPaymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketRequestPaymentOutput: ... + + @_overload async def put_bucket_request_payment( - self, input: PutBucketRequestPaymentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketRequestPaymentInputDict], ) -> PutBucketRequestPaymentOutput: """ Note: @@ -7986,8 +9779,6 @@ async def put_bucket_request_payment( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketRequestPaymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7997,12 +9788,33 @@ async def put_bucket_request_payment( Returns: An instance of `PutBucketRequestPaymentOutput`. """ + + async def put_bucket_request_payment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketRequestPaymentOutput: return await self._invoke( - input, _models.PUT_BUCKET_REQUEST_PAYMENT, [], plugins + self._select_input(_models.PUT_BUCKET_REQUEST_PAYMENT, args, kwargs), + _models.PUT_BUCKET_REQUEST_PAYMENT, + [], + plugins, ) + @_overload + async def put_bucket_tagging( + self, + request: _models.PutBucketTaggingInput | _models.PutBucketTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketTaggingOutput: ... + + @_overload async def put_bucket_tagging( - self, input: PutBucketTaggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketTaggingInputDict], ) -> PutBucketTaggingOutput: """ Note: @@ -8072,8 +9884,6 @@ async def put_bucket_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8083,10 +9893,34 @@ async def put_bucket_tagging( Returns: An instance of `PutBucketTaggingOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_TAGGING, [], plugins) + async def put_bucket_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketTaggingOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_TAGGING, args, kwargs), + _models.PUT_BUCKET_TAGGING, + [], + plugins, + ) + + @_overload + async def put_bucket_versioning( + self, + request: _models.PutBucketVersioningInput + | _models.PutBucketVersioningInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketVersioningOutput: ... + + @_overload async def put_bucket_versioning( - self, input: PutBucketVersioningInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketVersioningInputDict], ) -> PutBucketVersioningOutput: """ Note: @@ -8146,8 +9980,6 @@ async def put_bucket_versioning( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketVersioningInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8157,10 +9989,33 @@ async def put_bucket_versioning( Returns: An instance of `PutBucketVersioningOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_VERSIONING, [], plugins) + async def put_bucket_versioning( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketVersioningOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_VERSIONING, args, kwargs), + _models.PUT_BUCKET_VERSIONING, + [], + plugins, + ) + + @_overload + async def put_bucket_website( + self, + request: _models.PutBucketWebsiteInput | _models.PutBucketWebsiteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketWebsiteOutput: ... + + @_overload async def put_bucket_website( - self, input: PutBucketWebsiteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketWebsiteInputDict], ) -> PutBucketWebsiteOutput: """ Note: @@ -8244,8 +10099,6 @@ async def put_bucket_website( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketWebsiteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8255,10 +10108,35 @@ async def put_bucket_website( Returns: An instance of `PutBucketWebsiteOutput`. """ - return await self._invoke(input, _models.PUT_BUCKET_WEBSITE, [], plugins) + async def put_bucket_website( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketWebsiteOutput: + return await self._invoke( + self._select_input(_models.PUT_BUCKET_WEBSITE, args, kwargs), + _models.PUT_BUCKET_WEBSITE, + [], + plugins, + ) + + @_overload async def put_object( - self, input: PutObjectInput, plugins: list[Plugin] | None = None + self, + request: _models.PutObjectInput + | _models.PutObjectInputDict + | _models.AsyncPutObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectOutput: ... + + @_overload + async def put_object( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AsyncPutObjectInputDict], ) -> PutObjectOutput: """ Warning: @@ -8348,74 +10226,76 @@ async def put_object( Permissions - : - **General purpose bucket permissions** - The following permissions - are required in your policies when your `PutObject` request includes - specific headers. - - - **`s3:PutObject`** - To successfully complete the `PutObject` - request, you must always have the `s3:PutObject` permission on a - bucket to add an object to it. - - - **`s3:PutObjectAcl`** - To successfully change the objects ACL of - your `PutObject` request, you must have the `s3:PutObjectAcl`. - - - **`s3:PutObjectTagging`** - To successfully set the tag-set with - your `PutObject` request, you must have the `s3:PutObjectTagging`. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . - - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + : - **General purpose bucket permissions** - The following permissions + are required in your policies when your `PutObject` request + includes specific headers. + + - **`s3:PutObject`** - To successfully complete the `PutObject` + request, you must always have the `s3:PutObject` permission on a + bucket to add an object to it. + + - **`s3:PutObjectAcl`** - To successfully change the objects ACL + of your `PutObject` request, you must have the + `s3:PutObjectAcl`. + + - **`s3:PutObjectTagging`** - To successfully set the tag-set with + your `PutObject` request, you must have the + `s3:PutObjectTagging`. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Data integrity with Content-MD5 - : - **General purpose bucket** - To ensure that data is not corrupted - traversing the network, use the `Content-MD5` header. When you use - this header, Amazon S3 checks the object against the provided MD5 - value and, if they do not match, Amazon S3 returns an error. - Alternatively, when the object's ETag is its MD5 digest, you can - calculate the MD5 while putting the object to Amazon S3 and compare - the returned ETag to the calculated MD5 value. + : - **General purpose bucket** - To ensure that data is not corrupted + traversing the network, use the `Content-MD5` header. When you use + this header, Amazon S3 checks the object against the provided MD5 + value and, if they do not match, Amazon S3 returns an error. + Alternatively, when the object's ETag is its MD5 digest, you can + calculate the MD5 while putting the object to Amazon S3 and + compare the returned ETag to the calculated MD5 value. - - **Directory bucket** - This functionality is not supported for - directory buckets. + - **Directory bucket** - This functionality is not supported for + directory buckets. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Errors - : - You might receive an `InvalidRequest` error for several reasons. - Depending on the reason for the error, you might receive one of the - following messages: + : - You might receive an `InvalidRequest` error for several reasons. + Depending on the reason for the error, you might receive one of + the following messages: - - Cannot specify both a write offset value and user-defined object - metadata for existing objects. + - Cannot specify both a write offset value and user-defined object + metadata for existing objects. - - Checksum Type mismatch occurred, expected checksum Type: sha1, - actual checksum Type: crc32c. + - Checksum Type mismatch occurred, expected checksum Type: sha1, + actual checksum Type: crc32c. - - Request body cannot be empty when 'write offset' is specified. + - Request body cannot be empty when 'write offset' is specified. For more information about related Amazon S3 APIs, see the following: @@ -8429,8 +10309,6 @@ async def put_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8440,10 +10318,33 @@ async def put_object( Returns: An instance of `PutObjectOutput`. """ - return await self._invoke(input, _models.PUT_OBJECT, [], plugins) + async def put_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectOutput: + return await self._invoke( + self._select_input(_models.PUT_OBJECT, args, kwargs), + _models.PUT_OBJECT, + [], + plugins, + ) + + @_overload + async def put_object_acl( + self, + request: _models.PutObjectAclInput | _models.PutObjectAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectAclOutput: ... + + @_overload async def put_object_acl( - self, input: PutObjectAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectAclInputDict], ) -> PutObjectAclOutput: """ Warning: @@ -8488,39 +10389,39 @@ async def put_object_acl( Permissions - : You can set access permissions using one of the following methods: + : You can set access permissions using one of the following methods: - - Specify a canned ACL with the `x-amz-acl` request header. Amazon S3 - supports a set of predefined ACLs, known as canned ACLs. Each canned - ACL has a predefined set of grantees and permissions. Specify the - canned ACL name as the value of `x-amz-ac`l. If you use this header, - you cannot use other access control-specific headers in your - request. For more information, see [Canned - ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). + - Specify a canned ACL with the `x-amz-acl` request header. Amazon + S3 supports a set of predefined ACLs, known as canned ACLs. Each + canned ACL has a predefined set of grantees and permissions. + Specify the canned ACL name as the value of `x-amz-ac`l. If you + use this header, you cannot use other access control-specific + headers in your request. For more information, see [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). - - Specify access permissions explicitly with the `x-amz-grant-read`, - `x-amz-grant-read-acp`, `x-amz-grant-write-acp`, and - `x-amz-grant-full-control` headers. When using these headers, you - specify explicit access permissions and grantees (Amazon Web - Services accounts or Amazon S3 groups) who will receive the - permission. If you use these ACL-specific headers, you cannot use - `x-amz-acl` header to set a canned ACL. These parameters map to the - set of permissions that Amazon S3 supports in an ACL. For more - information, see [Access Control List (ACL) - Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). + - Specify access permissions explicitly with the `x-amz-grant-read`, + `x-amz-grant-read-acp`, `x-amz-grant-write-acp`, and + `x-amz-grant-full-control` headers. When using these headers, you + specify explicit access permissions and grantees (Amazon Web + Services accounts or Amazon S3 groups) who will receive the + permission. If you use these ACL-specific headers, you cannot use + `x-amz-acl` header to set a canned ACL. These parameters map to + the set of permissions that Amazon S3 supports in an ACL. For more + information, see [Access Control List (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). - You specify each grantee as a type=value pair, where the type is one - of the following: + You specify each grantee as a type=value pair, where the type is + one of the following: - - `id` -- if the value specified is the canonical user ID of an - Amazon Web Services account + - `id` -- if the value specified is the canonical user ID of an + Amazon Web Services account - - `uri` -- if you are granting permissions to a predefined group + - `uri` -- if you are granting permissions to a predefined group - - `emailAddress` -- if the value specified is the email address of - an Amazon Web Services account + - `emailAddress` -- if the value specified is the email address of + an Amazon Web Services account - Note: + Note: Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: @@ -8545,44 +10446,45 @@ async def put_object_acl( Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the Amazon Web Services General Reference. - For example, the following `x-amz-grant-read` header grants list - objects permission to the two Amazon Web Services accounts - identified by their email addresses. + For example, the following `x-amz-grant-read` header grants list + objects permission to the two Amazon Web Services accounts + identified by their email addresses. - `x-amz-grant-read: emailAddress="xyz@amazon.com", emailAddress="abc@amazon.com" ` + `x-amz-grant-read: emailAddress="xyz@amazon.com", emailAddress="abc@amazon.com" ` - You can use either a canned ACL or specify access permissions - explicitly. You cannot do both. + You can use either a canned ACL or specify access permissions + explicitly. You cannot do both. Grantee Values - : You can specify the person (grantee) to whom you're assigning access - rights (using request elements) in the following ways. For examples of - how to specify these grantee values in JSON format, see the Amazon Web - Services CLI example in [Enabling Amazon S3 server access - logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) - in the *Amazon S3 User Guide*. + : You can specify the person (grantee) to whom you're assigning + access rights (using request elements) in the following ways. For + examples of how to specify these grantee values in JSON format, see + the Amazon Web Services CLI example in [Enabling Amazon S3 server + access + logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) + in the *Amazon S3 User Guide*. - - By the person's ID: + - By the person's ID: - ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} + ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} - DisplayName is optional and ignored in the request. + DisplayName is optional and ignored in the request. - - By URI: + - By URI: - ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} + ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} - - By Email address: + - By Email address: - ``{=html}``{=html}`<>Grantees@email.com<>```{=html}`lt;/Grantee>` + ``{=html}``{=html}`<>Grantees@email.com<>```{=html}`lt;/Grantee>` - The grantee is resolved to the CanonicalUser and, in a response to a - GET Object acl request, appears as the CanonicalUser. + The grantee is resolved to the CanonicalUser and, in a response to + a GET Object acl request, appears as the CanonicalUser. - Note: - Using email addresses to specify a grantee is only supported in the - following Amazon Web Services Regions: + Note: + Using email addresses to specify a grantee is only supported in + the following Amazon Web Services Regions: - US East (N. Virginia) @@ -8600,16 +10502,16 @@ async def put_object_acl( - South America (São Paulo) - For a list of all the Amazon S3 supported Regions and endpoints, see - [Regions and + For a list of all the Amazon S3 supported Regions and endpoints, + see [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the Amazon Web Services General Reference. Versioning - : The ACL of an object is set at the object version level. By default, - PUT sets the ACL of the current version of an object. To set the ACL - of a different version, use the `versionId` subresource. + : The ACL of an object is set at the object version level. By default, + PUT sets the ACL of the current version of an object. To set the ACL + of a different version, use the `versionId` subresource. The following operations are related to `PutObjectAcl`: @@ -8623,8 +10525,6 @@ async def put_object_acl( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8634,10 +10534,35 @@ async def put_object_acl( Returns: An instance of `PutObjectAclOutput`. """ - return await self._invoke(input, _models.PUT_OBJECT_ACL, [], plugins) + async def put_object_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectAclOutput: + return await self._invoke( + self._select_input(_models.PUT_OBJECT_ACL, args, kwargs), + _models.PUT_OBJECT_ACL, + [], + plugins, + ) + + @_overload async def put_object_annotation( - self, input: PutObjectAnnotationInput, plugins: list[Plugin] | None = None + self, + request: _models.PutObjectAnnotationInput + | _models.PutObjectAnnotationInputDict + | _models.AsyncPutObjectAnnotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectAnnotationOutput: ... + + @_overload + async def put_object_annotation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AsyncPutObjectAnnotationInputDict], ) -> PutObjectAnnotationOutput: """ Attaches an annotation to an Amazon S3 object. An annotation is a named @@ -8671,8 +10596,6 @@ async def put_object_annotation( - [DeleteObjectAnnotation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectAnnotation.html) Args: - input: - An instance of `PutObjectAnnotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8682,10 +10605,33 @@ async def put_object_annotation( Returns: An instance of `PutObjectAnnotationOutput`. """ - return await self._invoke(input, _models.PUT_OBJECT_ANNOTATION, [], plugins) + async def put_object_annotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectAnnotationOutput: + return await self._invoke( + self._select_input(_models.PUT_OBJECT_ANNOTATION, args, kwargs), + _models.PUT_OBJECT_ANNOTATION, + [], + plugins, + ) + + @_overload + async def put_object_legal_hold( + self, + request: _models.PutObjectLegalHoldInput | _models.PutObjectLegalHoldInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectLegalHoldOutput: ... + + @_overload async def put_object_legal_hold( - self, input: PutObjectLegalHoldInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectLegalHoldInputDict], ) -> PutObjectLegalHoldOutput: """ Note: @@ -8703,8 +10649,6 @@ async def put_object_legal_hold( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectLegalHoldInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8714,12 +10658,34 @@ async def put_object_legal_hold( Returns: An instance of `PutObjectLegalHoldOutput`. """ - return await self._invoke(input, _models.PUT_OBJECT_LEGAL_HOLD, [], plugins) + async def put_object_legal_hold( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectLegalHoldOutput: + return await self._invoke( + self._select_input(_models.PUT_OBJECT_LEGAL_HOLD, args, kwargs), + _models.PUT_OBJECT_LEGAL_HOLD, + [], + plugins, + ) + + @_overload + async def put_object_lock_configuration( + self, + request: _models.PutObjectLockConfigurationInput + | _models.PutObjectLockConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectLockConfigurationOutput: ... + + @_overload async def put_object_lock_configuration( self, - input: PutObjectLockConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectLockConfigurationInputDict], ) -> PutObjectLockConfigurationOutput: """ Note: @@ -8747,8 +10713,6 @@ async def put_object_lock_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectLockConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8758,12 +10722,33 @@ async def put_object_lock_configuration( Returns: An instance of `PutObjectLockConfigurationOutput`. """ + + async def put_object_lock_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectLockConfigurationOutput: return await self._invoke( - input, _models.PUT_OBJECT_LOCK_CONFIGURATION, [], plugins + self._select_input(_models.PUT_OBJECT_LOCK_CONFIGURATION, args, kwargs), + _models.PUT_OBJECT_LOCK_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_object_retention( + self, + request: _models.PutObjectRetentionInput | _models.PutObjectRetentionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectRetentionOutput: ... + + @_overload async def put_object_retention( - self, input: PutObjectRetentionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectRetentionInputDict], ) -> PutObjectRetentionOutput: """ Note: @@ -8785,8 +10770,6 @@ async def put_object_retention( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectRetentionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8796,10 +10779,33 @@ async def put_object_retention( Returns: An instance of `PutObjectRetentionOutput`. """ - return await self._invoke(input, _models.PUT_OBJECT_RETENTION, [], plugins) + async def put_object_retention( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectRetentionOutput: + return await self._invoke( + self._select_input(_models.PUT_OBJECT_RETENTION, args, kwargs), + _models.PUT_OBJECT_RETENTION, + [], + plugins, + ) + + @_overload async def put_object_tagging( - self, input: PutObjectTaggingInput, plugins: list[Plugin] | None = None + self, + request: _models.PutObjectTaggingInput | _models.PutObjectTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectTaggingOutput: ... + + @_overload + async def put_object_tagging( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectTaggingInputDict], ) -> PutObjectTaggingOutput: """ Note: @@ -8856,8 +10862,6 @@ async def put_object_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8867,10 +10871,34 @@ async def put_object_tagging( Returns: An instance of `PutObjectTaggingOutput`. """ - return await self._invoke(input, _models.PUT_OBJECT_TAGGING, [], plugins) + async def put_object_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectTaggingOutput: + return await self._invoke( + self._select_input(_models.PUT_OBJECT_TAGGING, args, kwargs), + _models.PUT_OBJECT_TAGGING, + [], + plugins, + ) + + @_overload + async def put_public_access_block( + self, + request: _models.PutPublicAccessBlockInput + | _models.PutPublicAccessBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutPublicAccessBlockOutput: ... + + @_overload async def put_public_access_block( - self, input: PutPublicAccessBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutPublicAccessBlockInputDict], ) -> PutPublicAccessBlockOutput: """ Note: @@ -8913,8 +10941,6 @@ async def put_public_access_block( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutPublicAccessBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8924,10 +10950,33 @@ async def put_public_access_block( Returns: An instance of `PutPublicAccessBlockOutput`. """ - return await self._invoke(input, _models.PUT_PUBLIC_ACCESS_BLOCK, [], plugins) + async def put_public_access_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutPublicAccessBlockOutput: + return await self._invoke( + self._select_input(_models.PUT_PUBLIC_ACCESS_BLOCK, args, kwargs), + _models.PUT_PUBLIC_ACCESS_BLOCK, + [], + plugins, + ) + + @_overload + async def rename_object( + self, + request: _models.RenameObjectInput | _models.RenameObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RenameObjectOutput: ... + + @_overload async def rename_object( - self, input: RenameObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RenameObjectInputDict], ) -> RenameObjectOutput: """ Renames an existing object in a directory bucket that uses the S3 @@ -8953,33 +11002,33 @@ async def rename_object( Permissions - : To grant access to the `RenameObject` operation on a directory bucket, - we recommend that you use the `CreateSession` operation for - session-based authorization. Specifically, you grant the - `s3express:CreateSession` permission to the directory bucket in a - bucket policy or an IAM identity-based policy. Then, you make the - `CreateSession` API call on the directory bucket to obtain a session - token. With the session token in your request header, you can make API - requests to this operation. After the session token expires, you make - another `CreateSession` API call to generate a new session token for - use. The Amazon Web Services CLI and SDKs will create and manage your - session including refreshing the session token automatically to avoid - service interruptions when a session expires. In your bucket policy, - you can specify the `s3express:SessionMode` condition key to control - who can create a `ReadWrite` or `ReadOnly` session. A `ReadWrite` - session is required for executing all the Zonal endpoint API - operations, including `RenameObject`. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . To learn more about Zonal endpoint API operations, see [Authorizing - Zonal endpoint API operations with - CreateSession](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-create-session.html) - in the *Amazon S3 User Guide*. + : To grant access to the `RenameObject` operation on a directory + bucket, we recommend that you use the `CreateSession` operation for + session-based authorization. Specifically, you grant the + `s3express:CreateSession` permission to the directory bucket in a + bucket policy or an IAM identity-based policy. Then, you make the + `CreateSession` API call on the directory bucket to obtain a session + token. With the session token in your request header, you can make + API requests to this operation. After the session token expires, you + make another `CreateSession` API call to generate a new session + token for use. The Amazon Web Services CLI and SDKs will create and + manage your session including refreshing the session token + automatically to avoid service interruptions when a session expires. + In your bucket policy, you can specify the `s3express:SessionMode` + condition key to control who can create a `ReadWrite` or `ReadOnly` + session. A `ReadWrite` session is required for executing all the + Zonal endpoint API operations, including `RenameObject`. For more + information about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . To learn more about Zonal endpoint API operations, see + [Authorizing Zonal endpoint API operations with + CreateSession](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-create-session.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Warning: You must URL encode any signed header values that contain spaces. For @@ -8987,8 +11036,6 @@ async def rename_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `RenameObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8998,10 +11045,33 @@ async def rename_object( Returns: An instance of `RenameObjectOutput`. """ - return await self._invoke(input, _models.RENAME_OBJECT, [], plugins) + async def rename_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RenameObjectOutput: + return await self._invoke( + self._select_input(_models.RENAME_OBJECT, args, kwargs), + _models.RENAME_OBJECT, + [], + plugins, + ) + + @_overload + async def restore_object( + self, + request: _models.RestoreObjectInput | _models.RestoreObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreObjectOutput: ... + + @_overload async def restore_object( - self, input: RestoreObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreObjectInputDict], ) -> RestoreObjectOutput: """ Note: @@ -9030,140 +11100,143 @@ async def restore_object( Permissions - : To use this operation, you must have permissions to perform the - `s3:RestoreObject` action. The bucket owner has this permission by - default and can grant this permission to others. For more information - about permissions, see [Permissions Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:RestoreObject` action. The bucket owner has this permission by + default and can grant this permission to others. For more + information about permissions, see [Permissions Related to Bucket + Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. Restoring objects - : Objects that you archive to the S3 Glacier Flexible Retrieval or S3 - Glacier Deep Archive storage class, and S3 Intelligent-Tiering Archive - or S3 Intelligent-Tiering Deep Archive tiers, are not accessible in - real time. For objects in the S3 Glacier Flexible Retrieval or S3 - Glacier Deep Archive storage classes, you must first initiate a - restore request, and then wait until a temporary copy of the object is - available. If you want a permanent copy of the object, create a copy - of it in the Amazon S3 Standard storage class in your S3 bucket. To - access an archived object, you must restore the object for the - duration (number of days) that you specify. For objects in the Archive - Access or Deep Archive Access tiers of S3 Intelligent-Tiering, you - must first initiate a restore request, and then wait until the object - is moved into the Frequent Access tier. - - To restore a specific object version, you can provide a version ID. If - you don't provide a version ID, Amazon S3 restores the current - version. - - When restoring an archived object, you can specify one of the - following data access tier options in the `Tier` element of the - request body: - - - `Expedited` - Expedited retrievals allow you to quickly access your - data stored in the S3 Glacier Flexible Retrieval storage class or S3 - Intelligent-Tiering Archive tier when occasional urgent requests for - restoring archives are required. For all but the largest archived - objects (250 MB+), data accessed using Expedited retrievals is - typically made available within 1--5 minutes. Provisioned capacity - ensures that retrieval capacity for Expedited retrievals is - available when you need it. Expedited retrievals and provisioned - capacity are not available for objects stored in the S3 Glacier Deep - Archive storage class or S3 Intelligent-Tiering Deep Archive tier. - - - `Standard` - Standard retrievals allow you to access any of your - archived objects within several hours. This is the default option - for retrieval requests that do not specify the retrieval option. - Standard retrievals typically finish within 3--5 hours for objects - stored in the S3 Glacier Flexible Retrieval storage class or S3 - Intelligent-Tiering Archive tier. They typically finish within 12 - hours for objects stored in the S3 Glacier Deep Archive storage - class or S3 Intelligent-Tiering Deep Archive tier. Standard - retrievals are free for objects stored in S3 Intelligent-Tiering. - - - `Bulk` - Bulk retrievals free for objects stored in the S3 Glacier - Flexible Retrieval and S3 Intelligent-Tiering storage classes, - enabling you to retrieve large amounts, even petabytes, of data at - no cost. Bulk retrievals typically finish within 5--12 hours for - objects stored in the S3 Glacier Flexible Retrieval storage class or - S3 Intelligent-Tiering Archive tier. Bulk retrievals are also the - lowest-cost retrieval option when restoring objects from S3 Glacier - Deep Archive. They typically finish within 48 hours for objects - stored in the S3 Glacier Deep Archive storage class or S3 - Intelligent-Tiering Deep Archive tier. - - For more information about archive retrieval options and provisioned - capacity for `Expedited` data access, see [Restoring Archived - Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) - in the *Amazon S3 User Guide*. + : Objects that you archive to the S3 Glacier Flexible Retrieval or S3 + Glacier Deep Archive storage class, and S3 Intelligent-Tiering + Archive or S3 Intelligent-Tiering Deep Archive tiers, are not + accessible in real time. For objects in the S3 Glacier Flexible + Retrieval or S3 Glacier Deep Archive storage classes, you must first + initiate a restore request, and then wait until a temporary copy of + the object is available. If you want a permanent copy of the object, + create a copy of it in the Amazon S3 Standard storage class in your + S3 bucket. To access an archived object, you must restore the object + for the duration (number of days) that you specify. For objects in + the Archive Access or Deep Archive Access tiers of S3 + Intelligent-Tiering, you must first initiate a restore request, and + then wait until the object is moved into the Frequent Access tier. + + To restore a specific object version, you can provide a version ID. + If you don't provide a version ID, Amazon S3 restores the current + version. + + When restoring an archived object, you can specify one of the + following data access tier options in the `Tier` element of the + request body: + + - `Expedited` - Expedited retrievals allow you to quickly access + your data stored in the S3 Glacier Flexible Retrieval storage + class or S3 Intelligent-Tiering Archive tier when occasional + urgent requests for restoring archives are required. For all but + the largest archived objects (250 MB+), data accessed using + Expedited retrievals is typically made available within 1--5 + minutes. Provisioned capacity ensures that retrieval capacity for + Expedited retrievals is available when you need it. Expedited + retrievals and provisioned capacity are not available for objects + stored in the S3 Glacier Deep Archive storage class or S3 + Intelligent-Tiering Deep Archive tier. + + - `Standard` - Standard retrievals allow you to access any of your + archived objects within several hours. This is the default option + for retrieval requests that do not specify the retrieval option. + Standard retrievals typically finish within 3--5 hours for objects + stored in the S3 Glacier Flexible Retrieval storage class or S3 + Intelligent-Tiering Archive tier. They typically finish within 12 + hours for objects stored in the S3 Glacier Deep Archive storage + class or S3 Intelligent-Tiering Deep Archive tier. Standard + retrievals are free for objects stored in S3 Intelligent-Tiering. + + - `Bulk` - Bulk retrievals free for objects stored in the S3 Glacier + Flexible Retrieval and S3 Intelligent-Tiering storage classes, + enabling you to retrieve large amounts, even petabytes, of data at + no cost. Bulk retrievals typically finish within 5--12 hours for + objects stored in the S3 Glacier Flexible Retrieval storage class + or S3 Intelligent-Tiering Archive tier. Bulk retrievals are also + the lowest-cost retrieval option when restoring objects from S3 + Glacier Deep Archive. They typically finish within 48 hours for + objects stored in the S3 Glacier Deep Archive storage class or S3 + Intelligent-Tiering Deep Archive tier. + + For more information about archive retrieval options and provisioned + capacity for `Expedited` data access, see [Restoring Archived + Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) + in the *Amazon S3 User Guide*. - You can use Amazon S3 restore speed upgrade to change the restore - speed to a faster speed while it is in progress. For more information, - see [Upgrading the speed of an in-progress - restore](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html) - in the *Amazon S3 User Guide*. + You can use Amazon S3 restore speed upgrade to change the restore + speed to a faster speed while it is in progress. For more + information, see [Upgrading the speed of an in-progress + restore](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html) + in the *Amazon S3 User Guide*. - To get the status of object restoration, you can send a `HEAD` - request. Operations return the `x-amz-restore` header, which provides - information about the restoration status, in the response. You can use - Amazon S3 event notifications to notify you when a restore is - initiated or completed. For more information, see [Configuring Amazon - S3 Event - Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - in the *Amazon S3 User Guide*. + To get the status of object restoration, you can send a `HEAD` + request. Operations return the `x-amz-restore` header, which + provides information about the restoration status, in the response. + You can use Amazon S3 event notifications to notify you when a + restore is initiated or completed. For more information, see + [Configuring Amazon S3 Event + Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + in the *Amazon S3 User Guide*. - After restoring an archived object, you can update the restoration - period by reissuing the request with a new period. Amazon S3 updates - the restoration period relative to the current time and charges only - for the request-there are no data transfer charges. You cannot update - the restoration period when Amazon S3 is actively processing your - current restore request for the object. - - If your bucket has a lifecycle configuration with a rule that includes - an expiration action, the object expiration overrides the life span - that you specify in a restore request. For example, if you restore an - object copy for 10 days, but the object is scheduled to expire in 3 - days, Amazon S3 deletes the object in 3 days. For more information - about lifecycle configuration, see - [PutBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) - and [Object Lifecycle - Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) - in *Amazon S3 User Guide*. + After restoring an archived object, you can update the restoration + period by reissuing the request with a new period. Amazon S3 updates + the restoration period relative to the current time and charges only + for the request-there are no data transfer charges. You cannot + update the restoration period when Amazon S3 is actively processing + your current restore request for the object. + + If your bucket has a lifecycle configuration with a rule that + includes an expiration action, the object expiration overrides the + life span that you specify in a restore request. For example, if you + restore an object copy for 10 days, but the object is scheduled to + expire in 3 days, Amazon S3 deletes the object in 3 days. For more + information about lifecycle configuration, see + [PutBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) + and [Object Lifecycle + Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) + in *Amazon S3 User Guide*. Responses - : A successful action returns either the `200 OK` or `202 Accepted` - status code. + : A successful action returns either the `200 OK` or `202 Accepted` + status code. - - If the object is not previously restored, then Amazon S3 returns - `202 Accepted` in the response. + - If the object is not previously restored, then Amazon S3 returns + `202 Accepted` in the response. - - If the object is previously restored, Amazon S3 returns `200 OK` in - the response. + - If the object is previously restored, Amazon S3 returns `200 OK` + in the response. - - Special errors: + - Special errors: - - *Code: RestoreAlreadyInProgress* + - *Code: RestoreAlreadyInProgress* - - *Cause: Object restore is already in progress.* + - *Cause: Object restore is already in progress.* - - *HTTP Status Code: 409 Conflict* + - *HTTP Status Code: 409 Conflict* - - *SOAP Fault Code Prefix: Client* + - *SOAP Fault Code Prefix: Client* - - - *Code: GlacierExpeditedRetrievalNotAvailable* + - - *Code: GlacierExpeditedRetrievalNotAvailable* - - *Cause: expedited retrievals are currently not available. Try - again later. (Returned if there is insufficient capacity to - process the Expedited request. This error applies only to - Expedited retrievals and not to S3 Standard or Bulk retrievals.)* + - *Cause: expedited retrievals are currently not available. Try + again later. (Returned if there is insufficient capacity to + process the Expedited request. This error applies only to + Expedited retrievals and not to S3 Standard or Bulk + retrievals.)* - - *HTTP Status Code: 503* + - *HTTP Status Code: 503* - - *SOAP Fault Code Prefix: N/A* + - *SOAP Fault Code Prefix: N/A* The following operations are related to `RestoreObject`: @@ -9177,8 +11250,6 @@ class or S3 Intelligent-Tiering Deep Archive tier. Standard after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `RestoreObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9188,10 +11259,36 @@ class or S3 Intelligent-Tiering Deep Archive tier. Standard Returns: An instance of `RestoreObjectOutput`. """ - return await self._invoke(input, _models.RESTORE_OBJECT, [], plugins) + async def restore_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreObjectOutput: + return await self._invoke( + self._select_input(_models.RESTORE_OBJECT, args, kwargs), + _models.RESTORE_OBJECT, + [], + plugins, + ) + + @_overload + async def select_object_content( + self, + request: _models.SelectObjectContentInput + | _models.SelectObjectContentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncOutputEventStream[ + SelectObjectContentEventStream, SelectObjectContentOutput + ]: ... + + @_overload async def select_object_content( - self, input: SelectObjectContentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SelectObjectContentInputDict], ) -> AsyncOutputEventStream[ SelectObjectContentEventStream, SelectObjectContentOutput ]: @@ -9217,85 +11314,87 @@ async def select_object_content( Permissions - : You must have the `s3:GetObject` permission for this operation. Amazon - S3 Select does not support anonymous access. For more information - about permissions, see [Specifying Permissions in a - Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) - in the *Amazon S3 User Guide*. + : You must have the `s3:GetObject` permission for this + operation. Amazon S3 Select does not support anonymous access. For + more information about permissions, see [Specifying Permissions in a + Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) + in the *Amazon S3 User Guide*. Object Data Formats - : You can use Amazon S3 Select to query objects that have the following - format properties: + : You can use Amazon S3 Select to query objects that have the + following format properties: - - *CSV, JSON, and Parquet* - Objects must be in CSV, JSON, or Parquet - format. + - *CSV, JSON, and Parquet* - Objects must be in CSV, JSON, or + Parquet format. - - *UTF-8* - UTF-8 is the only encoding type Amazon S3 Select supports. + - *UTF-8* - UTF-8 is the only encoding type Amazon S3 Select + supports. - - *GZIP or BZIP2* - CSV and JSON files can be compressed using GZIP or - BZIP2. GZIP and BZIP2 are the only compression formats that Amazon - S3 Select supports for CSV and JSON files. Amazon S3 Select supports - columnar compression for Parquet using GZIP or Snappy. Amazon S3 - Select does not support whole-object compression for Parquet - objects. + - *GZIP or BZIP2* - CSV and JSON files can be compressed using GZIP + or BZIP2. GZIP and BZIP2 are the only compression formats that + Amazon S3 Select supports for CSV and JSON files. Amazon S3 Select + supports columnar compression for Parquet using GZIP or Snappy. + Amazon S3 Select does not support whole-object compression for + Parquet objects. - - *Server-side encryption* - Amazon S3 Select supports querying - objects that are protected with server-side encryption. + - *Server-side encryption* - Amazon S3 Select supports querying + objects that are protected with server-side encryption. - For objects that are encrypted with customer-provided encryption - keys (SSE-C), you must use HTTPS, and you must use the headers that - are documented in the - [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html). - For more information about SSE-C, see [Server-Side Encryption (Using - Customer-Provided Encryption - Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + For objects that are encrypted with customer-provided encryption + keys (SSE-C), you must use HTTPS, and you must use the headers + that are documented in the + [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html). + For more information about SSE-C, see [Server-Side Encryption + (Using Customer-Provided Encryption + Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. - For objects that are encrypted with Amazon S3 managed keys (SSE-S3) - and Amazon Web Services KMS keys (SSE-KMS), server-side encryption - is handled transparently, so you don't need to specify anything. - For more information about server-side encryption, including SSE-S3 - and SSE-KMS, see [Protecting Data Using Server-Side - Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) - in the *Amazon S3 User Guide*. + For objects that are encrypted with Amazon S3 managed keys + (SSE-S3) and Amazon Web Services KMS keys (SSE-KMS), server-side + encryption is handled transparently, so you don't need to specify + anything. For more information about server-side encryption, + including SSE-S3 and SSE-KMS, see [Protecting Data Using + Server-Side + Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) + in the *Amazon S3 User Guide*. Working with the Response Body - : Given the response size is unknown, Amazon S3 Select streams the - response as a series of messages and includes a `Transfer-Encoding` - header with `chunked` as its value in the response. For more - information, see [Appendix: SelectObjectContent - Response](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTSelectObjectAppendix.html). + : Given the response size is unknown, Amazon S3 Select streams the + response as a series of messages and includes a `Transfer-Encoding` + header with `chunked` as its value in the response. For more + information, see [Appendix: SelectObjectContent + Response](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTSelectObjectAppendix.html). GetObject Support - : The `SelectObjectContent` action does not support the following - `GetObject` functionality. For more information, see - [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html). - - - `Range`: Although you can specify a scan range for an Amazon S3 - Select request (see [SelectObjectContentRequest - - ScanRange](https://docs.aws.amazon.com/AmazonS3/latest/API/API_SelectObjectContent.html#AmazonS3-SelectObjectContent-request-ScanRange) - in the request parameters), you cannot specify the range of bytes of - an object to return. - - - The `GLACIER`, `DEEP_ARCHIVE`, and `REDUCED_REDUNDANCY` storage - classes, or the `ARCHIVE_ACCESS` and `DEEP_ARCHIVE_ACCESS` access - tiers of the `INTELLIGENT_TIERING` storage class: You cannot query - objects in the `GLACIER`, `DEEP_ARCHIVE`, or `REDUCED_REDUNDANCY` - storage classes, nor objects in the `ARCHIVE_ACCESS` or - `DEEP_ARCHIVE_ACCESS` access tiers of the `INTELLIGENT_TIERING` - storage class. For more information about storage classes, see - [Using Amazon S3 storage - classes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html) - in the *Amazon S3 User Guide*. + : The `SelectObjectContent` action does not support the following + `GetObject` functionality. For more information, see + [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html). + + - `Range`: Although you can specify a scan range for an Amazon S3 + Select request (see [SelectObjectContentRequest - + ScanRange](https://docs.aws.amazon.com/AmazonS3/latest/API/API_SelectObjectContent.html#AmazonS3-SelectObjectContent-request-ScanRange) + in the request parameters), you cannot specify the range of bytes + of an object to return. + + - The `GLACIER`, `DEEP_ARCHIVE`, and `REDUCED_REDUNDANCY` storage + classes, or the `ARCHIVE_ACCESS` and `DEEP_ARCHIVE_ACCESS` access + tiers of the `INTELLIGENT_TIERING` storage class: You cannot query + objects in the `GLACIER`, `DEEP_ARCHIVE`, or `REDUCED_REDUNDANCY` + storage classes, nor objects in the `ARCHIVE_ACCESS` or + `DEEP_ARCHIVE_ACCESS` access tiers of the `INTELLIGENT_TIERING` + storage class. For more information about storage classes, see + [Using Amazon S3 storage + classes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html) + in the *Amazon S3 User Guide*. Special Errors - : For a list of special errors for this operation, see [List of SELECT - Object Content Error - Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#SelectObjectContentErrorCodeList) + : For a list of special errors for this operation, see [List of SELECT + Object Content Error + Codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#SelectObjectContentErrorCodeList) The following operations are related to `SelectObjectContent`: @@ -9311,8 +11410,6 @@ async def select_object_content( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `SelectObjectContentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9322,8 +11419,17 @@ async def select_object_content( Returns: An `AsyncOutputEventStream` for server-to-client streaming. """ + + async def select_object_content( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncOutputEventStream[ + SelectObjectContentEventStream, SelectObjectContentOutput + ]: pipeline, call = await self._prepare_call( - input, _models.SELECT_OBJECT_CONTENT, [], plugins + self._select_input(_models.SELECT_OBJECT_CONTENT, args, kwargs), + _models.SELECT_OBJECT_CONTENT, + [], + plugins, ) return await pipeline.output_stream( call, @@ -9331,10 +11437,25 @@ async def select_object_content( _SelectObjectContentEventStreamDeserializer().deserialize, ) + @_overload + async def update_bucket_metadata_annotation_table_configuration( + self, + request: _models.UpdateBucketMetadataAnnotationTableConfigurationInput + | _models.UpdateBucketMetadataAnnotationTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBucketMetadataAnnotationTableConfigurationOutput: ... + + @_overload async def update_bucket_metadata_annotation_table_configuration( self, - input: UpdateBucketMetadataAnnotationTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.UpdateBucketMetadataAnnotationTableConfigurationInputDict + ], ) -> UpdateBucketMetadataAnnotationTableConfigurationOutput: """ Updates the annotation table configuration for an Amazon S3 bucket's @@ -9365,8 +11486,6 @@ async def update_bucket_metadata_annotation_table_configuration( - [GetBucketMetadataConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetadataConfiguration.html) Args: - input: - An instance of `UpdateBucketMetadataAnnotationTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9376,17 +11495,40 @@ async def update_bucket_metadata_annotation_table_configuration( Returns: An instance of `UpdateBucketMetadataAnnotationTableConfigurationOutput`. """ + + async def update_bucket_metadata_annotation_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBucketMetadataAnnotationTableConfigurationOutput: return await self._invoke( - input, + self._select_input( + _models.UPDATE_BUCKET_METADATA_ANNOTATION_TABLE_CONFIGURATION, + args, + kwargs, + ), _models.UPDATE_BUCKET_METADATA_ANNOTATION_TABLE_CONFIGURATION, [], plugins, ) + @_overload + async def update_bucket_metadata_inventory_table_configuration( + self, + request: _models.UpdateBucketMetadataInventoryTableConfigurationInput + | _models.UpdateBucketMetadataInventoryTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBucketMetadataInventoryTableConfigurationOutput: ... + + @_overload async def update_bucket_metadata_inventory_table_configuration( self, - input: UpdateBucketMetadataInventoryTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.UpdateBucketMetadataInventoryTableConfigurationInputDict + ], ) -> UpdateBucketMetadataInventoryTableConfigurationOutput: """ Enables or disables a live inventory table for an S3 Metadata @@ -9397,33 +11539,34 @@ async def update_bucket_metadata_inventory_table_configuration( Permissions - : To use this operation, you must have the following permissions. For - more information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the following permissions. For + more information, see [Setting up permissions for configuring + metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you want to encrypt your inventory table with server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), you need - additional permissions in your KMS key policy. For more information, - see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + If you want to encrypt your inventory table with server-side + encryption with Key Management Service (KMS) keys (SSE-KMS), you + need additional permissions in your KMS key policy. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - - `s3:UpdateBucketMetadataInventoryTableConfiguration` + - `s3:UpdateBucketMetadataInventoryTableConfiguration` - - `s3tables:CreateTableBucket` + - `s3tables:CreateTableBucket` - - `s3tables:CreateNamespace` + - `s3tables:CreateNamespace` - - `s3tables:GetTable` + - `s3tables:GetTable` - - `s3tables:CreateTable` + - `s3tables:CreateTable` - - `s3tables:PutTablePolicy` + - `s3tables:PutTablePolicy` - - `s3tables:PutTableEncryption` + - `s3tables:PutTableEncryption` - - `kms:DescribeKey` + - `kms:DescribeKey` The following operations are related to `UpdateBucketMetadataInventoryTableConfiguration`: @@ -9442,8 +11585,6 @@ async def update_bucket_metadata_inventory_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `UpdateBucketMetadataInventoryTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9453,17 +11594,40 @@ async def update_bucket_metadata_inventory_table_configuration( Returns: An instance of `UpdateBucketMetadataInventoryTableConfigurationOutput`. """ + + async def update_bucket_metadata_inventory_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBucketMetadataInventoryTableConfigurationOutput: return await self._invoke( - input, + self._select_input( + _models.UPDATE_BUCKET_METADATA_INVENTORY_TABLE_CONFIGURATION, + args, + kwargs, + ), _models.UPDATE_BUCKET_METADATA_INVENTORY_TABLE_CONFIGURATION, [], plugins, ) + @_overload + async def update_bucket_metadata_journal_table_configuration( + self, + request: _models.UpdateBucketMetadataJournalTableConfigurationInput + | _models.UpdateBucketMetadataJournalTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBucketMetadataJournalTableConfigurationOutput: ... + + @_overload async def update_bucket_metadata_journal_table_configuration( self, - input: UpdateBucketMetadataJournalTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.UpdateBucketMetadataJournalTableConfigurationInputDict + ], ) -> UpdateBucketMetadataJournalTableConfigurationOutput: """ Enables or disables journal table record expiration for an S3 Metadata @@ -9474,11 +11638,12 @@ async def update_bucket_metadata_journal_table_configuration( Permissions - : To use this operation, you must have the - `s3:UpdateBucketMetadataJournalTableConfiguration` permission. For - more information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:UpdateBucketMetadataJournalTableConfiguration` permission. For + more information, see [Setting up permissions for configuring + metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. The following operations are related to `UpdateBucketMetadataJournalTableConfiguration`: @@ -9497,8 +11662,6 @@ async def update_bucket_metadata_journal_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `UpdateBucketMetadataJournalTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9508,15 +11671,36 @@ async def update_bucket_metadata_journal_table_configuration( Returns: An instance of `UpdateBucketMetadataJournalTableConfigurationOutput`. """ + + async def update_bucket_metadata_journal_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBucketMetadataJournalTableConfigurationOutput: return await self._invoke( - input, + self._select_input( + _models.UPDATE_BUCKET_METADATA_JOURNAL_TABLE_CONFIGURATION, args, kwargs + ), _models.UPDATE_BUCKET_METADATA_JOURNAL_TABLE_CONFIGURATION, [], plugins, ) + @_overload + async def update_object_encryption( + self, + request: _models.UpdateObjectEncryptionInput + | _models.UpdateObjectEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateObjectEncryptionOutput: ... + + @_overload async def update_object_encryption( - self, input: UpdateObjectEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateObjectEncryptionInputDict], ) -> UpdateObjectEncryptionOutput: """ Note: @@ -9565,98 +11749,98 @@ async def update_object_encryption( Permissions - : - To use the `UpdateObjectEncryption` operation, you must have the - following permissions: + : - To use the `UpdateObjectEncryption` operation, you must have the + following permissions: - - `s3:UpdateObjectEncryption` + - `s3:UpdateObjectEncryption` - - `kms:Encrypt` + - `kms:Encrypt` - - `kms:Decrypt` + - `kms:Decrypt` - - `kms:GenerateDataKey` + - `kms:GenerateDataKey` - - `kms:ReEncrypt*` + - `kms:ReEncrypt*` - - If you're using Organizations, to use this operation with - customer-managed KMS keys from other Amazon Web Services accounts - within your organization, you must have the - `organizations:DescribeAccount` permission. + - If you're using Organizations, to use this operation with + customer-managed KMS keys from other Amazon Web Services accounts + within your organization, you must have the + `organizations:DescribeAccount` permission. Errors - : - You might receive an `InvalidRequest` error for several reasons. - Depending on the reason for the error, you might receive one of the - following messages: - - - The `UpdateObjectEncryption` operation doesn't supported - unencrypted source objects. Only source objects encrypted with - SSE-S3 or SSE-KMS are supported. - - - The `UpdateObjectEncryption` operation doesn't support source - objects with the encryption type DSSE-KMS or SSE-C. Only source - objects encrypted with SSE-S3 or SSE-KMS are supported. - - - The `UpdateObjectEncryption` operation doesn't support updating - the encryption type to DSSE-KMS or SSE-C. Modify the request to - specify SSE-KMS for the updated encryption type, and then try - again. - - - Requests that modify an object encryption configuration require - Amazon Web Services Signature Version 4. Modify the request to use - Amazon Web Services Signature Version 4, and then try again. - - - Requests that modify an object encryption configuration require a - valid new encryption type. Valid values are `SSEKMS`. Modify the - request to specify SSE-KMS for the updated encryption type, and - then try again. - - - Requests that modify an object's encryption type to SSE-KMS - require an Amazon Web Services KMS key Amazon Resource Name (ARN). - Modify the request to specify a KMS key ARN, and then try again. - - - Requests that modify an object's encryption type to SSE-KMS - require a valid Amazon Web Services KMS key Amazon Resource Name - (ARN). Confirm that you have a correctly formatted KMS key ARN in - your request, and then try again. - - - The `BucketKeyEnabled` value isn't valid. Valid values are `true` - or `false`. Modify the request to specify a valid value, and then - try again. - - - You might receive an `AccessDenied` error for several reasons. - Depending on the reason for the error, you might receive one of the - following messages: - - - The Amazon Web Services KMS key in the request must be owned by - the same account as the bucket. Modify the request to specify a - KMS key from the same account, and then try again. - - - The bucket owner's account was approved to make - `UpdateObjectEncryption` requests that use any Amazon Web Services - KMS key in their organization, but the bucket owner's account - isn't part of an organization in Organizations. Make sure that - the bucket owner's account and the specified KMS key belong to - the same organization, and then try again. - - - The specified Amazon Web Services KMS key must be from the same - organization in Organizations as the bucket. Specify a KMS key - that belongs to the same organization as the bucket, and then try - again. - - - The encryption type for the specified object can't be updated - because that object is protected by S3 Object Lock. If the object - has a governance-mode retention period or a legal hold, you must - first remove the Object Lock status on the object before you issue - your `UpdateObjectEncryption` request. You can't use the - `UpdateObjectEncryption` operation with objects that have an - Object Lock compliance mode retention period applied to them. + : - You might receive an `InvalidRequest` error for several reasons. + Depending on the reason for the error, you might receive one of + the following messages: + + - The `UpdateObjectEncryption` operation doesn't supported + unencrypted source objects. Only source objects encrypted with + SSE-S3 or SSE-KMS are supported. + + - The `UpdateObjectEncryption` operation doesn't support source + objects with the encryption type DSSE-KMS or SSE-C. Only source + objects encrypted with SSE-S3 or SSE-KMS are supported. + + - The `UpdateObjectEncryption` operation doesn't support updating + the encryption type to DSSE-KMS or SSE-C. Modify the request to + specify SSE-KMS for the updated encryption type, and then try + again. + + - Requests that modify an object encryption configuration require + Amazon Web Services Signature Version 4. Modify the request to + use Amazon Web Services Signature Version 4, and then try again. + + - Requests that modify an object encryption configuration require + a valid new encryption type. Valid values are `SSEKMS`. Modify + the request to specify SSE-KMS for the updated encryption type, + and then try again. + + - Requests that modify an object's encryption type to SSE-KMS + require an Amazon Web Services KMS key Amazon Resource Name + (ARN). Modify the request to specify a KMS key ARN, and then try + again. + + - Requests that modify an object's encryption type to SSE-KMS + require a valid Amazon Web Services KMS key Amazon Resource Name + (ARN). Confirm that you have a correctly formatted KMS key ARN + in your request, and then try again. + + - The `BucketKeyEnabled` value isn't valid. Valid values are + `true` or `false`. Modify the request to specify a valid value, + and then try again. + + - You might receive an `AccessDenied` error for several reasons. + Depending on the reason for the error, you might receive one of + the following messages: + + - The Amazon Web Services KMS key in the request must be owned by + the same account as the bucket. Modify the request to specify a + KMS key from the same account, and then try again. + + - The bucket owner's account was approved to make + `UpdateObjectEncryption` requests that use any Amazon Web + Services KMS key in their organization, but the bucket owner's + account isn't part of an organization in Organizations. Make + sure that the bucket owner's account and the specified KMS key + belong to the same organization, and then try again. + + - The specified Amazon Web Services KMS key must be from the same + organization in Organizations as the bucket. Specify a KMS key + that belongs to the same organization as the bucket, and then + try again. + + - The encryption type for the specified object can't be updated + because that object is protected by S3 Object Lock. If the + object has a governance-mode retention period or a legal hold, + you must first remove the Object Lock status on the object + before you issue your `UpdateObjectEncryption` request. You + can't use the `UpdateObjectEncryption` operation with objects + that have an Object Lock compliance mode retention period + applied to them. Args: - input: - An instance of `UpdateObjectEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9666,10 +11850,35 @@ async def update_object_encryption( Returns: An instance of `UpdateObjectEncryptionOutput`. """ - return await self._invoke(input, _models.UPDATE_OBJECT_ENCRYPTION, [], plugins) + async def update_object_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateObjectEncryptionOutput: + return await self._invoke( + self._select_input(_models.UPDATE_OBJECT_ENCRYPTION, args, kwargs), + _models.UPDATE_OBJECT_ENCRYPTION, + [], + plugins, + ) + + @_overload + async def upload_part( + self, + request: _models.UploadPartInput + | _models.UploadPartInputDict + | _models.AsyncUploadPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadPartOutput: ... + + @_overload async def upload_part( - self, input: UploadPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AsyncUploadPartInputDict], ) -> UploadPartOutput: """ Uploads a part in a multipart upload. @@ -9726,132 +11935,135 @@ async def upload_part( Permissions - : - **General purpose bucket permissions** - To perform a multipart - upload with encryption using an Key Management Service key, the - requester must have permission to the `kms:Decrypt` and - `kms:GenerateDataKey` actions on the key. The requester must also - have permissions for the `kms:GenerateDataKey` action for the - `CreateMultipartUpload` API. Then, the requester needs permissions - for the `kms:Decrypt` action on the `UploadPart` and - `UploadPartCopy` APIs. - - These permissions are required because Amazon S3 must decrypt and - read data from the encrypted file parts before it completes the - multipart upload. For more information about KMS permissions, see - [Protecting data using server-side encryption with - KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) - in the *Amazon S3 User Guide*. For information about the permissions - required to use the multipart upload API, see [Multipart upload and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - and [Multipart upload API and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) - in the *Amazon S3 User Guide*. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + : - **General purpose bucket permissions** - To perform a multipart + upload with encryption using an Key Management Service key, the + requester must have permission to the `kms:Decrypt` and + `kms:GenerateDataKey` actions on the key. The requester must also + have permissions for the `kms:GenerateDataKey` action for the + `CreateMultipartUpload` API. Then, the requester needs permissions + for the `kms:Decrypt` action on the `UploadPart` and + `UploadPartCopy` APIs. + + These permissions are required because Amazon S3 must decrypt and + read data from the encrypted file parts before it completes the + multipart upload. For more information about KMS permissions, see + [Protecting data using server-side encryption with + KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) + in the *Amazon S3 User Guide*. For information about the + permissions required to use the multipart upload API, see + [Multipart upload and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + and [Multipart upload API and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) + in the *Amazon S3 User Guide*. - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Data integrity - : **General purpose bucket** - To ensure that data is not corrupted - traversing the network, specify the `Content-MD5` header in the upload - part request. Amazon S3 checks the part data against the provided MD5 - value. If they do not match, Amazon S3 returns an error. If the upload - request is signed with Signature Version 4, then Amazon Web Services - S3 uses the `x-amz-content-sha256` header as a checksum instead of - `Content-MD5`. For more information see [Authenticating Requests: - Using the Authorization Header (Amazon Web Services Signature Version - 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html). + : **General purpose bucket** - To ensure that data is not corrupted + traversing the network, specify the `Content-MD5` header in the + upload part request. Amazon S3 checks the part data against the + provided MD5 value. If they do not match, Amazon S3 returns an + error. If the upload request is signed with Signature Version 4, + then Amazon Web Services S3 uses the `x-amz-content-sha256` header + as a checksum instead of `Content-MD5`. For more information see + [Authenticating Requests: Using the Authorization Header (Amazon Web + Services Signature Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html). - Note: - **Directory buckets** - MD5 is not supported by directory buckets. You - can use checksum algorithms to check object integrity. + Note: + **Directory buckets** - MD5 is not supported by directory buckets. + You can use checksum algorithms to check object integrity. Encryption - : - **General purpose bucket** - Server-side encryption is for data - encryption at rest. Amazon S3 encrypts your data as it writes it to - disks in its data centers and decrypts it when you access it. You - have mutually exclusive options to protect data using server-side - encryption in Amazon S3, depending on how you choose to manage the - encryption keys. Specifically, the encryption key options are Amazon - S3 managed keys (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), - and Customer-Provided Keys (SSE-C). Amazon S3 encrypts data with - server-side encryption using Amazon S3 managed keys (SSE-S3) by - default. You can optionally tell Amazon S3 to encrypt data at rest - using server-side encryption with other key options. The option you - use depends on whether you want to use KMS keys (SSE-KMS) or provide - your own encryption key (SSE-C). - - Server-side encryption is supported by the S3 Multipart Upload - operations. Unless you are using a customer-provided encryption key - (SSE-C), you don't need to specify the encryption parameters in - each UploadPart request. Instead, you only need to specify the - server-side encryption parameters in the initial Initiate Multipart - request. For more information, see - [CreateMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html). + : - **General purpose bucket** - Server-side encryption is for data + encryption at rest. Amazon S3 encrypts your data as it writes it + to disks in its data centers and decrypts it when you access it. + You have mutually exclusive options to protect data using + server-side encryption in Amazon S3, depending on how you choose + to manage the encryption keys. Specifically, the encryption key + options are Amazon S3 managed keys (SSE-S3), Amazon Web Services + KMS keys (SSE-KMS), and Customer-Provided Keys (SSE-C). Amazon S3 + encrypts data with server-side encryption using Amazon S3 managed + keys (SSE-S3) by default. You can optionally tell Amazon S3 to + encrypt data at rest using server-side encryption with other key + options. The option you use depends on whether you want to use KMS + keys (SSE-KMS) or provide your own encryption key (SSE-C). + + Server-side encryption is supported by the S3 Multipart Upload + operations. Unless you are using a customer-provided encryption + key (SSE-C), you don't need to specify the encryption parameters + in each UploadPart request. Instead, you only need to specify the + server-side encryption parameters in the initial Initiate + Multipart request. For more information, see + [CreateMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html). - Note: + Note: If you have server-side encryption with customer-provided keys (SSE-C) blocked for your general purpose bucket, you will get an HTTP 403 Access Denied error when you specify the SSE-C request - headers while writing new data to your bucket. For more information, - see [Blocking or unblocking SSE-C for a general purpose + headers while writing new data to your bucket. For more + information, see [Blocking or unblocking SSE-C for a general + purpose bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html). - If you request server-side encryption using a customer-provided - encryption key (SSE-C) in your initiate multipart upload request, - you must provide identical encryption information in each part - upload using the following request headers. + If you request server-side encryption using a customer-provided + encryption key (SSE-C) in your initiate multipart upload request, + you must provide identical encryption information in each part + upload using the following request headers. - - x-amz-server-side-encryption-customer-algorithm + - x-amz-server-side-encryption-customer-algorithm - - x-amz-server-side-encryption-customer-key + - x-amz-server-side-encryption-customer-key - - x-amz-server-side-encryption-customer-key-MD5 + - x-amz-server-side-encryption-customer-key-MD5 - For more information, see [Using Server-Side - Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) - in the *Amazon S3 User Guide*. + For more information, see [Using Server-Side + Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) + in the *Amazon S3 User Guide*. - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: server-side encryption - with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side - encryption with KMS keys (SSE-KMS) (`aws:kms`). + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side + encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and + server-side encryption with KMS keys (SSE-KMS) (`aws:kms`). Special errors - : - Error Code: `NoSuchUpload` + : - Error Code: `NoSuchUpload` - - Description: The specified multipart upload does not exist. The - upload ID might be invalid, or the multipart upload might have - been aborted or completed. + - Description: The specified multipart upload does not exist. The + upload ID might be invalid, or the multipart upload might have + been aborted or completed. - - HTTP Status Code: 404 Not Found + - HTTP Status Code: 404 Not Found - - SOAP Fault Code Prefix: Client + - SOAP Fault Code Prefix: Client HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `UploadPart`: @@ -9871,8 +12083,6 @@ async def upload_part( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `UploadPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9882,10 +12092,33 @@ async def upload_part( Returns: An instance of `UploadPartOutput`. """ - return await self._invoke(input, _models.UPLOAD_PART, [], plugins) + async def upload_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadPartOutput: + return await self._invoke( + self._select_input(_models.UPLOAD_PART, args, kwargs), + _models.UPLOAD_PART, + [], + plugins, + ) + + @_overload + async def upload_part_copy( + self, + request: _models.UploadPartCopyInput | _models.UploadPartCopyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadPartCopyOutput: ... + + @_overload async def upload_part_copy( - self, input: UploadPartCopyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadPartCopyInputDict], ) -> UploadPartCopyOutput: """ Uploads a part by copying data from an existing object as data source. @@ -9932,149 +12165,150 @@ async def upload_part_copy( Authentication and authorization - : All `UploadPartCopy` requests must be authenticated and signed by - using IAM credentials (access key ID and secret access key for the IAM - identities). All headers with the `x-amz-` prefix, including - `x-amz-copy-source`, must be signed. For more information, see [REST - Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). + : All `UploadPartCopy` requests must be authenticated and signed by + using IAM credentials (access key ID and secret access key for the + IAM identities). All headers with the `x-amz-` prefix, including + `x-amz-copy-source`, must be signed. For more information, see [REST + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). - **Directory buckets** - You must use IAM credentials to authenticate - and authorize your access to the `UploadPartCopy` API operation, - instead of using the temporary security credentials through the - `CreateSession` API operation. + **Directory buckets** - You must use IAM credentials to authenticate + and authorize your access to the `UploadPartCopy` API operation, + instead of using the temporary security credentials through the + `CreateSession` API operation. - Amazon Web Services CLI or SDKs handles authentication and - authorization on your behalf. + Amazon Web Services CLI or SDKs handles authentication and + authorization on your behalf. Permissions - : You must have `READ` access to the source object and `WRITE` access to - the destination bucket. - - - **General purpose bucket permissions** - You must have the - permissions in a policy based on the bucket types of your source - bucket and destination bucket in an `UploadPartCopy` operation. - - - If the source object is in a general purpose bucket, you must have - the **`s3:GetObject`** permission to read the source object that - is being copied. - - - If the destination bucket is a general purpose bucket, you must - have the **`s3:PutObject`** permission to write the object copy to - the destination bucket. - - - To perform a multipart upload with encryption using an Key - Management Service key, the requester must have permission to the - `kms:Decrypt` and `kms:GenerateDataKey` actions on the key. The - requester must also have permissions for the `kms:GenerateDataKey` - action for the `CreateMultipartUpload` API. Then, the requester - needs permissions for the `kms:Decrypt` action on the `UploadPart` - and `UploadPartCopy` APIs. These permissions are required because - Amazon S3 must decrypt and read data from the encrypted file parts - before it completes the multipart upload. For more information - about KMS permissions, see [Protecting data using server-side - encryption with - KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) - in the *Amazon S3 User Guide*. For information about the - permissions required to use the multipart upload API, see - [Multipart upload and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - and [Multipart upload API and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) + : You must have `READ` access to the source object and `WRITE` access + to the destination bucket. + + - **General purpose bucket permissions** - You must have the + permissions in a policy based on the bucket types of your source + bucket and destination bucket in an `UploadPartCopy` operation. + + - If the source object is in a general purpose bucket, you must + have the **`s3:GetObject`** permission to read the source object + that is being copied. + + - If the destination bucket is a general purpose bucket, you must + have the **`s3:PutObject`** permission to write the object copy + to the destination bucket. + + - To perform a multipart upload with encryption using an Key + Management Service key, the requester must have permission to + the `kms:Decrypt` and `kms:GenerateDataKey` actions on the key. + The requester must also have permissions for the + `kms:GenerateDataKey` action for the `CreateMultipartUpload` + API. Then, the requester needs permissions for the `kms:Decrypt` + action on the `UploadPart` and `UploadPartCopy` APIs. These + permissions are required because Amazon S3 must decrypt and read + data from the encrypted file parts before it completes the + multipart upload. For more information about KMS permissions, + see [Protecting data using server-side encryption with + KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) + in the *Amazon S3 User Guide*. For information about the + permissions required to use the multipart upload API, see + [Multipart upload and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + and [Multipart upload API and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - You must have permissions in a + bucket policy or an IAM identity-based policy based on the source + and destination bucket types in an `UploadPartCopy` operation. + + - If the source object that you want to copy is in a directory + bucket, you must have the **`s3express:CreateSession`** + permission in the `Action` element of a policy to read the + object. If no session mode is specified, the session will be + created with the maximum allowable privilege, attempting + `ReadWrite` first, then `ReadOnly` if `ReadWrite` is not + permitted. If you want to explicitly restrict the access to be + read-only, you can set the `s3express:SessionMode` condition key + to `ReadOnly` on the copy source bucket. + + - If the copy destination is a directory bucket, you must have the + **`s3express:CreateSession`** permission in the `Action` element + of a policy to write the object to the destination. The + `s3express:SessionMode` condition key cannot be set to + `ReadOnly` on the copy destination. + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. + + For example policies, see [Example bucket policies for S3 Express + One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + and [Amazon Web Services Identity and Access Management (IAM) + identity-based policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - You must have permissions in a - bucket policy or an IAM identity-based policy based on the source - and destination bucket types in an `UploadPartCopy` operation. - - - If the source object that you want to copy is in a directory - bucket, you must have the **`s3express:CreateSession`** permission - in the `Action` element of a policy to read the object. If no - session mode is specified, the session will be created with the - maximum allowable privilege, attempting `ReadWrite` first, then - `ReadOnly` if `ReadWrite` is not permitted. If you want to - explicitly restrict the access to be read-only, you can set the - `s3express:SessionMode` condition key to `ReadOnly` on the copy - source bucket. - - - If the copy destination is a directory bucket, you must have the - **`s3express:CreateSession`** permission in the `Action` element - of a policy to write the object to the destination. The - `s3express:SessionMode` condition key cannot be set to `ReadOnly` - on the copy destination. - - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. - - For example policies, see [Example bucket policies for S3 Express - One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - and [Amazon Web Services Identity and Access Management (IAM) - identity-based policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) - in the *Amazon S3 User Guide*. - Encryption - : - **General purpose buckets** - For information about using - server-side encryption with customer-provided encryption keys with - the `UploadPartCopy` operation, see - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) - and - [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html). + : - **General purpose buckets** - For information about using + server-side encryption with customer-provided encryption keys with + the `UploadPartCopy` operation, see + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html). - Note: + Note: If you have server-side encryption with customer-provided keys (SSE-C) blocked for your general purpose bucket, you will get an HTTP 403 Access Denied error when you specify the SSE-C request - headers while writing new data to your bucket. For more information, - see [Blocking or unblocking SSE-C for a general purpose + headers while writing new data to your bucket. For more + information, see [Blocking or unblocking SSE-C for a general + purpose bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html). - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: server-side encryption - with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side - encryption with KMS keys (SSE-KMS) (`aws:kms`). For more - information, see [Protecting data with server-side - encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) - in the *Amazon S3 User Guide*. + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side + encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and + server-side encryption with KMS keys (SSE-KMS) (`aws:kms`). For + more information, see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. - Note: + Note: For directory buckets, when you perform a `CreateMultipartUpload` - operation and an `UploadPartCopy` operation, the request headers you - provide in the `CreateMultipartUpload` request must match the + operation and an `UploadPartCopy` operation, the request headers + you provide in the `CreateMultipartUpload` request must match the default encryption configuration of the destination bucket. - S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted - objects from general purpose buckets to directory buckets, from - directory buckets to general purpose buckets, or between directory - buckets, through - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html). - In this case, Amazon S3 makes a call to KMS every time a copy - request is made for a KMS-encrypted object. + S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted + objects from general purpose buckets to directory buckets, from + directory buckets to general purpose buckets, or between directory + buckets, through + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html). + In this case, Amazon S3 makes a call to KMS every time a copy + request is made for a KMS-encrypted object. Special errors - : - Error Code: `NoSuchUpload` + : - Error Code: `NoSuchUpload` - - Description: The specified multipart upload does not exist. The - upload ID might be invalid, or the multipart upload might have - been aborted or completed. + - Description: The specified multipart upload does not exist. The + upload ID might be invalid, or the multipart upload might have + been aborted or completed. - - HTTP Status Code: 404 Not Found + - HTTP Status Code: 404 Not Found - - Error Code: `InvalidRequest` + - Error Code: `InvalidRequest` - - Description: The specified copy source is not supported as a - byte-range copy source. + - Description: The specified copy source is not supported as a + byte-range copy source. - - HTTP Status Code: 400 Bad Request + - HTTP Status Code: 400 Bad Request HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `UploadPartCopy`: @@ -10096,8 +12330,6 @@ async def upload_part_copy( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `UploadPartCopyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10107,10 +12339,35 @@ async def upload_part_copy( Returns: An instance of `UploadPartCopyOutput`. """ - return await self._invoke(input, _models.UPLOAD_PART_COPY, [], plugins) + async def upload_part_copy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadPartCopyOutput: + return await self._invoke( + self._select_input(_models.UPLOAD_PART_COPY, args, kwargs), + _models.UPLOAD_PART_COPY, + [], + plugins, + ) + + @_overload + async def write_get_object_response( + self, + request: _models.WriteGetObjectResponseInput + | _models.WriteGetObjectResponseInputDict + | _models.AsyncWriteGetObjectResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> WriteGetObjectResponseOutput: ... + + @_overload async def write_get_object_response( - self, input: WriteGetObjectResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AsyncWriteGetObjectResponseInputDict], ) -> WriteGetObjectResponseOutput: """ Note: @@ -10174,8 +12431,6 @@ async def write_get_object_response( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `WriteGetObjectResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10185,7 +12440,16 @@ async def write_get_object_response( Returns: An instance of `WriteGetObjectResponseOutput`. """ - return await self._invoke(input, _models.WRITE_GET_OBJECT_RESPONSE, [], plugins) + + async def write_get_object_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> WriteGetObjectResponseOutput: + return await self._invoke( + self._select_input(_models.WRITE_GET_OBJECT_RESPONSE, args, kwargs), + _models.WRITE_GET_OBJECT_RESPONSE, + [], + plugins, + ) async def _new_config(self) -> AsyncS3Config: return await AsyncS3Config.resolve() diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/aio/config.py b/clients/aws-sdk-s3/src/aws_sdk_s3/aio/config.py index cfeaf4f8a..91d048e5b 100644 --- a/clients/aws-sdk-s3/src/aws_sdk_s3/aio/config.py +++ b/clients/aws-sdk-s3/src/aws_sdk_s3/aio/config.py @@ -642,9 +642,9 @@ class _AsyncS3ConfigOverrides(AsyncAwsConfigOverrides, total=False): disable_s3_express_session_auth: bool | None use_fips_endpoint: bool | None use_dualstack_endpoint: bool | None + disable_host_prefix_injection: bool | None request_checksum_calculation: RequestChecksumCalculation | None response_checksum_validation: ResponseChecksumValidation | None - disable_host_prefix_injection: bool | None @dataclass(kw_only=True, repr=False, init=False) @@ -713,6 +713,12 @@ class AsyncS3Config(AsyncAwsConfig): not support dual-stack, dispatching the request MAY return an error. """ + disable_host_prefix_injection: bool | None = None + """ + Whether to skip prepending operations' modeled host prefixes to the + endpoint host. + """ + aws_credentials_identity_resolver: ( AsyncIdentityResolver[AWSCredentialsIdentity, AWSIdentityProperties] | None ) = None @@ -761,12 +767,6 @@ class AsyncS3Config(AsyncAwsConfig): end, and a mismatch raises ``ChecksumMismatchError``. """ - disable_host_prefix_injection: bool | None = None - """ - Whether to skip prepending operations' modeled host prefixes to the - endpoint host. - """ - _FIELDS: ClassVar[dict[str, FieldSpec]] = { "force_path_style": FieldSpec(default=None), "use_arn_region": FieldSpec(default=None, resolver=_resolve_use_arn_region), @@ -783,6 +783,7 @@ class AsyncS3Config(AsyncAwsConfig): "use_dualstack_endpoint": FieldSpec( default=None, resolver=resolve_use_dualstack_endpoint_program ), + "disable_host_prefix_injection": FieldSpec(default=None), "aws_credentials_identity_resolver": FieldSpec(default=None), "region": FieldSpec(default=None), "aws_access_key_id": FieldSpec(default=None), @@ -800,7 +801,6 @@ class AsyncS3Config(AsyncAwsConfig): resolver=resolve_response_checksum_validation_program, validator=validate_response_checksum_validation, ), - "disable_host_prefix_injection": FieldSpec(default=None), **AsyncAwsConfig._FIELDS, "endpoint_uri": FieldSpec( default=None, resolver=EndpointUriResolver("s3").program diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/client.py b/clients/aws-sdk-s3/src/aws_sdk_s3/client.py index 0b8169ad2..ad8c3659d 100644 --- a/clients/aws-sdk-s3/src/aws_sdk_s3/client.py +++ b/clients/aws-sdk-s3/src/aws_sdk_s3/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -21,227 +21,116 @@ if TYPE_CHECKING: from .models import ( - AbortMultipartUploadInput, AbortMultipartUploadOutput, - CompleteMultipartUploadInput, CompleteMultipartUploadOutput, - CopyObjectInput, CopyObjectOutput, - CreateBucketInput, - CreateBucketMetadataConfigurationInput, CreateBucketMetadataConfigurationOutput, - CreateBucketMetadataTableConfigurationInput, CreateBucketMetadataTableConfigurationOutput, CreateBucketOutput, - CreateMultipartUploadInput, CreateMultipartUploadOutput, - CreateSessionInput, CreateSessionOutput, - DeleteBucketAnalyticsConfigurationInput, DeleteBucketAnalyticsConfigurationOutput, - DeleteBucketCorsInput, DeleteBucketCorsOutput, - DeleteBucketEncryptionInput, DeleteBucketEncryptionOutput, - DeleteBucketInput, - DeleteBucketIntelligentTieringConfigurationInput, DeleteBucketIntelligentTieringConfigurationOutput, - DeleteBucketInventoryConfigurationInput, DeleteBucketInventoryConfigurationOutput, - DeleteBucketLifecycleInput, DeleteBucketLifecycleOutput, - DeleteBucketMetadataConfigurationInput, DeleteBucketMetadataConfigurationOutput, - DeleteBucketMetadataTableConfigurationInput, DeleteBucketMetadataTableConfigurationOutput, - DeleteBucketMetricsConfigurationInput, DeleteBucketMetricsConfigurationOutput, DeleteBucketOutput, - DeleteBucketOwnershipControlsInput, DeleteBucketOwnershipControlsOutput, - DeleteBucketPolicyInput, DeleteBucketPolicyOutput, - DeleteBucketReplicationInput, DeleteBucketReplicationOutput, - DeleteBucketTaggingInput, DeleteBucketTaggingOutput, - DeleteBucketWebsiteInput, DeleteBucketWebsiteOutput, - DeleteObjectAnnotationInput, DeleteObjectAnnotationOutput, - DeleteObjectInput, DeleteObjectOutput, - DeleteObjectTaggingInput, DeleteObjectTaggingOutput, - DeleteObjectsInput, DeleteObjectsOutput, - DeletePublicAccessBlockInput, DeletePublicAccessBlockOutput, - GetBucketAbacInput, GetBucketAbacOutput, - GetBucketAccelerateConfigurationInput, GetBucketAccelerateConfigurationOutput, - GetBucketAclInput, GetBucketAclOutput, - GetBucketAnalyticsConfigurationInput, GetBucketAnalyticsConfigurationOutput, - GetBucketCorsInput, GetBucketCorsOutput, - GetBucketEncryptionInput, GetBucketEncryptionOutput, - GetBucketIntelligentTieringConfigurationInput, GetBucketIntelligentTieringConfigurationOutput, - GetBucketInventoryConfigurationInput, GetBucketInventoryConfigurationOutput, - GetBucketLifecycleConfigurationInput, GetBucketLifecycleConfigurationOutput, - GetBucketLocationInput, GetBucketLocationOutput, - GetBucketLoggingInput, GetBucketLoggingOutput, - GetBucketMetadataConfigurationInput, GetBucketMetadataConfigurationOutput, - GetBucketMetadataTableConfigurationInput, GetBucketMetadataTableConfigurationOutput, - GetBucketMetricsConfigurationInput, GetBucketMetricsConfigurationOutput, - GetBucketNotificationConfigurationInput, GetBucketNotificationConfigurationOutput, - GetBucketOwnershipControlsInput, GetBucketOwnershipControlsOutput, - GetBucketPolicyInput, GetBucketPolicyOutput, - GetBucketPolicyStatusInput, GetBucketPolicyStatusOutput, - GetBucketReplicationInput, GetBucketReplicationOutput, - GetBucketRequestPaymentInput, GetBucketRequestPaymentOutput, - GetBucketTaggingInput, GetBucketTaggingOutput, - GetBucketVersioningInput, GetBucketVersioningOutput, - GetBucketWebsiteInput, GetBucketWebsiteOutput, - GetObjectAclInput, GetObjectAclOutput, - GetObjectAnnotationInput, GetObjectAnnotationOutput, - GetObjectAttributesInput, GetObjectAttributesOutput, - GetObjectInput, - GetObjectLegalHoldInput, GetObjectLegalHoldOutput, - GetObjectLockConfigurationInput, GetObjectLockConfigurationOutput, GetObjectOutput, - GetObjectRetentionInput, GetObjectRetentionOutput, - GetObjectTaggingInput, GetObjectTaggingOutput, - GetObjectTorrentInput, GetObjectTorrentOutput, - GetPublicAccessBlockInput, GetPublicAccessBlockOutput, - HeadBucketInput, HeadBucketOutput, - HeadObjectInput, HeadObjectOutput, - ListBucketAnalyticsConfigurationsInput, ListBucketAnalyticsConfigurationsOutput, - ListBucketIntelligentTieringConfigurationsInput, ListBucketIntelligentTieringConfigurationsOutput, - ListBucketInventoryConfigurationsInput, ListBucketInventoryConfigurationsOutput, - ListBucketMetricsConfigurationsInput, ListBucketMetricsConfigurationsOutput, - ListBucketsInput, ListBucketsOutput, - ListDirectoryBucketsInput, ListDirectoryBucketsOutput, - ListMultipartUploadsInput, ListMultipartUploadsOutput, - ListObjectAnnotationsInput, ListObjectAnnotationsOutput, - ListObjectVersionsInput, ListObjectVersionsOutput, - ListObjectsInput, ListObjectsOutput, - ListObjectsV2Input, ListObjectsV2Output, - ListPartsInput, ListPartsOutput, - PutBucketAbacInput, PutBucketAbacOutput, - PutBucketAccelerateConfigurationInput, PutBucketAccelerateConfigurationOutput, - PutBucketAclInput, PutBucketAclOutput, - PutBucketAnalyticsConfigurationInput, PutBucketAnalyticsConfigurationOutput, - PutBucketCorsInput, PutBucketCorsOutput, - PutBucketEncryptionInput, PutBucketEncryptionOutput, - PutBucketIntelligentTieringConfigurationInput, PutBucketIntelligentTieringConfigurationOutput, - PutBucketInventoryConfigurationInput, PutBucketInventoryConfigurationOutput, - PutBucketLifecycleConfigurationInput, PutBucketLifecycleConfigurationOutput, - PutBucketLoggingInput, PutBucketLoggingOutput, - PutBucketMetricsConfigurationInput, PutBucketMetricsConfigurationOutput, - PutBucketNotificationConfigurationInput, PutBucketNotificationConfigurationOutput, - PutBucketOwnershipControlsInput, PutBucketOwnershipControlsOutput, - PutBucketPolicyInput, PutBucketPolicyOutput, - PutBucketReplicationInput, PutBucketReplicationOutput, - PutBucketRequestPaymentInput, PutBucketRequestPaymentOutput, - PutBucketTaggingInput, PutBucketTaggingOutput, - PutBucketVersioningInput, PutBucketVersioningOutput, - PutBucketWebsiteInput, PutBucketWebsiteOutput, - PutObjectAclInput, PutObjectAclOutput, - PutObjectAnnotationInput, PutObjectAnnotationOutput, - PutObjectInput, - PutObjectLegalHoldInput, PutObjectLegalHoldOutput, - PutObjectLockConfigurationInput, PutObjectLockConfigurationOutput, PutObjectOutput, - PutObjectRetentionInput, PutObjectRetentionOutput, - PutObjectTaggingInput, PutObjectTaggingOutput, - PutPublicAccessBlockInput, PutPublicAccessBlockOutput, - RenameObjectInput, RenameObjectOutput, - RestoreObjectInput, RestoreObjectOutput, - UpdateBucketMetadataAnnotationTableConfigurationInput, UpdateBucketMetadataAnnotationTableConfigurationOutput, - UpdateBucketMetadataInventoryTableConfigurationInput, UpdateBucketMetadataInventoryTableConfigurationOutput, - UpdateBucketMetadataJournalTableConfigurationInput, UpdateBucketMetadataJournalTableConfigurationOutput, - UpdateObjectEncryptionInput, UpdateObjectEncryptionOutput, - UploadPartCopyInput, UploadPartCopyOutput, - UploadPartInput, UploadPartOutput, - WriteGetObjectResponseInput, WriteGetObjectResponseOutput, ) @@ -287,13 +176,28 @@ class S3Client(Client[S3Config]): """ _client_plugins = ( + user_agent_plugin, aws_user_agent_plugin, flexible_checksums_plugin, - user_agent_plugin, ) + @_overload + def abort_multipart_upload( + self, + request: _models.AbortMultipartUploadInput + | _models.AbortMultipartUploadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AbortMultipartUploadOutput: ... + + @_overload def abort_multipart_upload( - self, input: AbortMultipartUploadInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AbortMultipartUploadInputDict], ) -> AbortMultipartUploadOutput: """ This operation aborts a multipart upload. After a multipart upload is @@ -333,33 +237,33 @@ def abort_multipart_upload( Permissions - : - **General purpose bucket permissions** - For information about - permissions required to use the multipart upload, see [Multipart - Upload and - Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - For information about + permissions required to use the multipart upload, see [Multipart + Upload and + Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `AbortMultipartUpload`: @@ -379,8 +283,6 @@ def abort_multipart_upload( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `AbortMultipartUploadInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -390,10 +292,34 @@ def abort_multipart_upload( Returns: An instance of `AbortMultipartUploadOutput`. """ - return self._invoke(input, _models.ABORT_MULTIPART_UPLOAD, [], plugins) + def abort_multipart_upload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AbortMultipartUploadOutput: + return self._invoke( + self._select_input(_models.ABORT_MULTIPART_UPLOAD, args, kwargs), + _models.ABORT_MULTIPART_UPLOAD, + [], + plugins, + ) + + @_overload def complete_multipart_upload( - self, input: CompleteMultipartUploadInput, plugins: list[Plugin] | None = None + self, + request: _models.CompleteMultipartUploadInput + | _models.CompleteMultipartUploadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CompleteMultipartUploadOutput: ... + + @_overload + def complete_multipart_upload( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CompleteMultipartUploadInputDict], ) -> CompleteMultipartUploadOutput: """ Completes a multipart upload by assembling previously uploaded parts. @@ -461,77 +387,77 @@ def complete_multipart_upload( Permissions - : - **General purpose bucket permissions** - For information about - permissions required to use the multipart upload API, see [Multipart - Upload and - Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - in the *Amazon S3 User Guide*. - - If you provide an [additional checksum - value](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html) - in your `MultipartUpload` requests and the object is encrypted with - Key Management Service, you must have permission to use the - `kms:Decrypt` action for the `CompleteMultipartUpload` request to - succeed. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + : - **General purpose bucket permissions** - For information about + permissions required to use the multipart upload API, see + [Multipart Upload and + Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + in the *Amazon S3 User Guide*. - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + If you provide an [additional checksum + value](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html) + in your `MultipartUpload` requests and the object is encrypted + with Key Management Service, you must have permission to use the + `kms:Decrypt` action for the `CompleteMultipartUpload` request to + succeed. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Special errors - : - Error Code: `EntityTooSmall` + : - Error Code: `EntityTooSmall` - - Description: Your proposed upload is smaller than the minimum - allowed object size. Each part must be at least 5 MB in size, - except the last part. + - Description: Your proposed upload is smaller than the minimum + allowed object size. Each part must be at least 5 MB in size, + except the last part. - - HTTP Status Code: 400 Bad Request + - HTTP Status Code: 400 Bad Request - - Error Code: `InvalidPart` + - Error Code: `InvalidPart` - - Description: One or more of the specified parts could not be - found. The part might not have been uploaded, or the specified - ETag might not have matched the uploaded part's ETag. + - Description: One or more of the specified parts could not be + found. The part might not have been uploaded, or the specified + ETag might not have matched the uploaded part's ETag. - - HTTP Status Code: 400 Bad Request + - HTTP Status Code: 400 Bad Request - - Error Code: `InvalidPartOrder` + - Error Code: `InvalidPartOrder` - - Description: The list of parts was not in ascending order. The - parts list must be specified in order by part number. + - Description: The list of parts was not in ascending order. The + parts list must be specified in order by part number. - - HTTP Status Code: 400 Bad Request + - HTTP Status Code: 400 Bad Request - - Error Code: `NoSuchUpload` + - Error Code: `NoSuchUpload` - - Description: The specified multipart upload does not exist. The - upload ID might be invalid, or the multipart upload might have - been aborted or completed. + - Description: The specified multipart upload does not exist. The + upload ID might be invalid, or the multipart upload might have + been aborted or completed. - - HTTP Status Code: 404 Not Found + - HTTP Status Code: 404 Not Found HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `CompleteMultipartUpload`: @@ -551,8 +477,6 @@ def complete_multipart_upload( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CompleteMultipartUploadInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -562,10 +486,33 @@ def complete_multipart_upload( Returns: An instance of `CompleteMultipartUploadOutput`. """ - return self._invoke(input, _models.COMPLETE_MULTIPART_UPLOAD, [], plugins) + def complete_multipart_upload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CompleteMultipartUploadOutput: + return self._invoke( + self._select_input(_models.COMPLETE_MULTIPART_UPLOAD, args, kwargs), + _models.COMPLETE_MULTIPART_UPLOAD, + [], + plugins, + ) + + @_overload + def copy_object( + self, + request: _models.CopyObjectInput | _models.CopyObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CopyObjectOutput: ... + + @_overload def copy_object( - self, input: CopyObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CopyObjectInputDict], ) -> CopyObjectOutput: """ Creates a copy of an object that is already stored in Amazon S3. @@ -628,129 +575,129 @@ def copy_object( Authentication and authorization - : All `CopyObject` requests must be authenticated and signed by using - IAM credentials (access key ID and secret access key for the IAM - identities). All headers with the `x-amz-` prefix, including - `x-amz-copy-source`, must be signed. For more information, see [REST - Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). + : All `CopyObject` requests must be authenticated and signed by using + IAM credentials (access key ID and secret access key for the IAM + identities). All headers with the `x-amz-` prefix, including + `x-amz-copy-source`, must be signed. For more information, see [REST + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). - **Directory buckets** - You must use the IAM credentials to - authenticate and authorize your access to the `CopyObject` API - operation, instead of using the temporary security credentials through - the `CreateSession` API operation. + **Directory buckets** - You must use the IAM credentials to + authenticate and authorize your access to the `CopyObject` API + operation, instead of using the temporary security credentials + through the `CreateSession` API operation. - Amazon Web Services CLI or SDKs handles authentication and - authorization on your behalf. + Amazon Web Services CLI or SDKs handles authentication and + authorization on your behalf. Permissions - : You must have *read* access to the source object and *write* access to - the destination bucket. - - - **General purpose bucket permissions** - You must have permissions - in an IAM policy based on the source and destination bucket types in - a `CopyObject` operation. - - - If the source object is in a general purpose bucket, you must have - **`s3:GetObject`** permission to read the source object that is - being copied. - - - If the destination bucket is a general purpose bucket, you must - have **`s3:PutObject`** permission to write the object copy to the - destination bucket. - - - **Directory bucket permissions** - You must have permissions in a - bucket policy or an IAM identity-based policy based on the source - and destination bucket types in a `CopyObject` operation. - - - If the source object that you want to copy is in a directory - bucket, you must have the **`s3express:CreateSession`** permission - in the `Action` element of a policy to read the object. If no - session mode is specified, the session will be created with the - maximum allowable privilege, attempting `ReadWrite` first, then - `ReadOnly` if `ReadWrite` is not permitted. If you want to - explicitly restrict the access to be read-only, you can set the - `s3express:SessionMode` condition key to `ReadOnly` on the copy - source bucket. - - - If the copy destination is a directory bucket, you must have the - **`s3express:CreateSession`** permission in the `Action` element - of a policy to write the object to the destination. The - `s3express:SessionMode` condition key can't be set to `ReadOnly` - on the copy destination bucket. - - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. - - For example policies, see [Example bucket policies for S3 Express - One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - and [Amazon Web Services Identity and Access Management (IAM) - identity-based policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) - in the *Amazon S3 User Guide*. + : You must have *read* access to the source object and *write* access + to the destination bucket. + + - **General purpose bucket permissions** - You must have permissions + in an IAM policy based on the source and destination bucket types + in a `CopyObject` operation. + + - If the source object is in a general purpose bucket, you must + have **`s3:GetObject`** permission to read the source object + that is being copied. + + - If the destination bucket is a general purpose bucket, you must + have **`s3:PutObject`** permission to write the object copy to + the destination bucket. + + - **Directory bucket permissions** - You must have permissions in a + bucket policy or an IAM identity-based policy based on the source + and destination bucket types in a `CopyObject` operation. + + - If the source object that you want to copy is in a directory + bucket, you must have the **`s3express:CreateSession`** + permission in the `Action` element of a policy to read the + object. If no session mode is specified, the session will be + created with the maximum allowable privilege, attempting + `ReadWrite` first, then `ReadOnly` if `ReadWrite` is not + permitted. If you want to explicitly restrict the access to be + read-only, you can set the `s3express:SessionMode` condition key + to `ReadOnly` on the copy source bucket. + + - If the copy destination is a directory bucket, you must have the + **`s3express:CreateSession`** permission in the `Action` element + of a policy to write the object to the destination. The + `s3express:SessionMode` condition key can't be set to + `ReadOnly` on the copy destination bucket. + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. + + For example policies, see [Example bucket policies for S3 Express + One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + and [Amazon Web Services Identity and Access Management (IAM) + identity-based policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) + in the *Amazon S3 User Guide*. Response and special errors - : When the request is an HTTP 1.1 request, the response is chunk - encoded. When the request is not an HTTP 1.1 request, the response - would not contain the `Content-Length`. You always need to read the - entire response body to check if the copy succeeds. - - - If the copy is successful, you receive a response with information - about the copied object. - - - A copy request might return an error when Amazon S3 receives the - copy request or while Amazon S3 is copying the files. A `200 OK` - response can contain either a success or an error. - - - If the error occurs before the copy action starts, you receive a - standard Amazon S3 error. - - - If the error occurs during the copy operation, the error response - is embedded in the `200 OK` response. For example, in a - cross-region copy, you may encounter throttling and receive a - `200 OK` response. For more information, see [Resolve the Error - 200 response when copying objects to Amazon - S3](https://repost.aws/knowledge-center/s3-resolve-200-internalerror). - The `200 OK` status code means the copy was accepted, but it - doesn't mean the copy is complete. Another example is when you - disconnect from Amazon S3 before the copy is complete, Amazon S3 - might cancel the copy and you may receive a `200 OK` response. You - must stay connected to Amazon S3 until the entire response is - successfully received and processed. - - If you call this API operation directly, make sure to design your - application to parse the content of the response and handle it - appropriately. If you use Amazon Web Services SDKs, SDKs handle - this condition. The SDKs detect the embedded error and apply error - handling per your configuration settings (including automatically - retrying the request as appropriate). If the condition persists, - the SDKs throw an exception (or, for the SDKs that don't use - exceptions, they return an error). + : When the request is an HTTP 1.1 request, the response is chunk + encoded. When the request is not an HTTP 1.1 request, the response + would not contain the `Content-Length`. You always need to read the + entire response body to check if the copy succeeds. + + - If the copy is successful, you receive a response with information + about the copied object. + + - A copy request might return an error when Amazon S3 receives the + copy request or while Amazon S3 is copying the files. A `200 OK` + response can contain either a success or an error. + + - If the error occurs before the copy action starts, you receive a + standard Amazon S3 error. + + - If the error occurs during the copy operation, the error + response is embedded in the `200 OK` response. For example, in a + cross-region copy, you may encounter throttling and receive a + `200 OK` response. For more information, see [Resolve the Error + 200 response when copying objects to Amazon + S3](https://repost.aws/knowledge-center/s3-resolve-200-internalerror). + The `200 OK` status code means the copy was accepted, but it + doesn't mean the copy is complete. Another example is when you + disconnect from Amazon S3 before the copy is complete, Amazon S3 + might cancel the copy and you may receive a `200 OK` response. + You must stay connected to Amazon S3 until the entire response + is successfully received and processed. + + If you call this API operation directly, make sure to design + your application to parse the content of the response and handle + it appropriately. If you use Amazon Web Services SDKs, SDKs + handle this condition. The SDKs detect the embedded error and + apply error handling per your configuration settings (including + automatically retrying the request as appropriate). If the + condition persists, the SDKs throw an exception (or, for the + SDKs that don't use exceptions, they return an error). Charge - : The copy request charge is based on the storage class and Region that - you specify for the destination object. The request can also result in - a data retrieval charge for the source if the source storage class - bills for data retrieval. If the copy source is in a different region, - the data transfer is billed to the copy source account. For pricing - information, see [Amazon S3 - pricing](http://aws.amazon.com/s3/pricing/). + : The copy request charge is based on the storage class and Region + that you specify for the destination object. The request can also + result in a data retrieval charge for the source if the source + storage class bills for data retrieval. If the copy source is in a + different region, the data transfer is billed to the copy source + account. For pricing information, see [Amazon S3 + pricing](http://aws.amazon.com/s3/pricing/). HTTP Host header syntax - : - **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : - **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. - - **Amazon S3 on Outposts** - When you use this action with S3 on - Outposts through the REST API, you must direct requests to the S3 on - Outposts hostname. The S3 on Outposts hostname takes the form - ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. - The hostname isn't required when you use the Amazon Web Services - CLI or SDKs. + - **Amazon S3 on Outposts** - When you use this action with S3 on + Outposts through the REST API, you must direct requests to the S3 + on Outposts hostname. The S3 on Outposts hostname takes the form + ` `*`AccessPointName`*`-`*`AccountId`*`.`*`outpostID`*`.s3-outposts.`*`Region`*`.amazonaws.com`. + The hostname isn't required when you use the Amazon Web Services + CLI or SDKs. The following operations are related to `CopyObject`: @@ -764,8 +711,6 @@ def copy_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CopyObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -775,10 +720,33 @@ def copy_object( Returns: An instance of `CopyObjectOutput`. """ - return self._invoke(input, _models.COPY_OBJECT, [], plugins) + def copy_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CopyObjectOutput: + return self._invoke( + self._select_input(_models.COPY_OBJECT, args, kwargs), + _models.COPY_OBJECT, + [], + plugins, + ) + + @_overload + def create_bucket( + self, + request: _models.CreateBucketInput | _models.CreateBucketInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBucketOutput: ... + + @_overload def create_bucket( - self, input: CreateBucketInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBucketInputDict], ) -> CreateBucketOutput: """ Note: @@ -839,41 +807,41 @@ def create_bucket( Permissions - : - **General purpose bucket permissions** - In addition to the - `s3:CreateBucket` permission, the following permissions are required - in a policy when your `CreateBucket` request includes specific - headers: - - - **Access control lists (ACLs)** - In your `CreateBucket` request, - if you specify an access control list (ACL) and set it to - `public-read`, `public-read-write`, `authenticated-read`, or if - you explicitly specify any other custom ACLs, both - `s3:CreateBucket` and `s3:PutBucketAcl` permissions are required. - In your `CreateBucket` request, if you set the ACL to `private`, - or if you don't specify any ACLs, only the `s3:CreateBucket` - permission is required. - - - **Object Lock** - In your `CreateBucket` request, if you set - `x-amz-bucket-object-lock-enabled` to true, the - `s3:PutBucketObjectLockConfiguration` and `s3:PutBucketVersioning` - permissions are required. - - - **S3 Object Ownership** - If your `CreateBucket` request includes - the `x-amz-object-ownership` header, then the - `s3:PutBucketOwnershipControls` permission is required. - - Warning: - To set an ACL on a bucket as part of a `CreateBucket` request, you - must explicitly set S3 Object Ownership for the bucket to a + : - **General purpose bucket permissions** - In addition to the + `s3:CreateBucket` permission, the following permissions are + required in a policy when your `CreateBucket` request includes + specific headers: + + - **Access control lists (ACLs)** - In your `CreateBucket` + request, if you specify an access control list (ACL) and set it + to `public-read`, `public-read-write`, `authenticated-read`, or + if you explicitly specify any other custom ACLs, both + `s3:CreateBucket` and `s3:PutBucketAcl` permissions are + required. In your `CreateBucket` request, if you set the ACL to + `private`, or if you don't specify any ACLs, only the + `s3:CreateBucket` permission is required. + + - **Object Lock** - In your `CreateBucket` request, if you set + `x-amz-bucket-object-lock-enabled` to true, the + `s3:PutBucketObjectLockConfiguration` and + `s3:PutBucketVersioning` permissions are required. + + - **S3 Object Ownership** - If your `CreateBucket` request + includes the `x-amz-object-ownership` header, then the + `s3:PutBucketOwnershipControls` permission is required. + + Warning: + To set an ACL on a bucket as part of a `CreateBucket` request, + you must explicitly set S3 Object Ownership for the bucket to a different value than the default, `BucketOwnerEnforced`. - Additionally, if your desired bucket ACL grants public access, you - must first create the bucket (without the bucket ACL) and then - explicitly disable Block Public Access on the bucket before using - `PutBucketAcl` to set the ACL. If you try to create a bucket with - a public ACL, the request will fail. - - For the majority of modern use cases in S3, we recommend that you - keep all Block Public Access settings enabled and keep ACLs + Additionally, if your desired bucket ACL grants public access, + you must first create the bucket (without the bucket ACL) and + then explicitly disable Block Public Access on the bucket before + using `PutBucketAcl` to set the ACL. If you try to create a + bucket with a public ACL, the request will fail. + + For the majority of modern use cases in S3, we recommend that + you keep all Block Public Access settings enabled and keep ACLs disabled. If you would like to share data with users outside of your account, you can use bucket policies as needed. For more information, see [Controlling ownership of objects and disabling @@ -883,48 +851,49 @@ def create_bucket( storage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html) in the *Amazon S3 User Guide*. - - **S3 Block Public Access** - If your specific use case requires - granting public access to your S3 resources, you can disable Block - Public Access. Specifically, you can create a new bucket with - Block Public Access enabled, then separately call the - [`DeletePublicAccessBlock`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html) - API. To use this operation, you must have the - `s3:PutBucketPublicAccessBlock` permission. For more information - about S3 Block Public Access, see [Blocking public access to your - Amazon S3 - storage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html) + - **S3 Block Public Access** - If your specific use case requires + granting public access to your S3 resources, you can disable + Block Public Access. Specifically, you can create a new bucket + with Block Public Access enabled, then separately call the + [`DeletePublicAccessBlock`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html) + API. To use this operation, you must have the + `s3:PutBucketPublicAccessBlock` permission. For more information + about S3 Block Public Access, see [Blocking public access to + your Amazon S3 + storage](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - You must have the + `s3express:CreateBucket` permission in an IAM identity-based + policy instead of a bucket policy. Cross-account access to this + API operation isn't supported. This operation can only be + performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - You must have the - `s3express:CreateBucket` permission in an IAM identity-based policy - instead of a bucket policy. Cross-account access to this API - operation isn't supported. This operation can only be performed by - the Amazon Web Services account that owns the resource. For more - information about directory bucket policies and permissions, see - [Amazon Web Services Identity and Access Management (IAM) for S3 - Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. - - Warning: + Warning: The permissions for ACLs, Object Lock, S3 Object Ownership, and S3 Block Public Access are not supported for directory buckets. For directory buckets, all Block Public Access settings are enabled at the bucket level and S3 Object Ownership is set to Bucket owner enforced (ACLs disabled). These settings can't be modified. - For more information about permissions for creating and working with - directory buckets, see [Directory + For more information about permissions for creating and working + with directory buckets, see [Directory buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) - in the *Amazon S3 User Guide*. For more information about supported - S3 features for directory buckets, see [Features of S3 Express One + in the *Amazon S3 User Guide*. For more information about + supported S3 features for directory buckets, see [Features of S3 + Express One Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-one-zone.html#s3-express-features) in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `CreateBucket`: @@ -938,8 +907,6 @@ def create_bucket( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateBucketInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -949,12 +916,34 @@ def create_bucket( Returns: An instance of `CreateBucketOutput`. """ - return self._invoke(input, _models.CREATE_BUCKET, [], plugins) + def create_bucket( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBucketOutput: + return self._invoke( + self._select_input(_models.CREATE_BUCKET, args, kwargs), + _models.CREATE_BUCKET, + [], + plugins, + ) + + @_overload + def create_bucket_metadata_configuration( + self, + request: _models.CreateBucketMetadataConfigurationInput + | _models.CreateBucketMetadataConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBucketMetadataConfigurationOutput: ... + + @_overload def create_bucket_metadata_configuration( self, - input: CreateBucketMetadataConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBucketMetadataConfigurationInputDict], ) -> CreateBucketMetadataConfigurationOutput: """ Creates an S3 Metadata V2 metadata configuration for a general purpose @@ -964,54 +953,55 @@ def create_bucket_metadata_configuration( Permissions - : To use this operation, you must have the following permissions. For - more information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the following permissions. For + more information, see [Setting up permissions for configuring + metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you want to encrypt your metadata tables with server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), you need - additional permissions in your KMS key policy. For more information, - see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + If you want to encrypt your metadata tables with server-side + encryption with Key Management Service (KMS) keys (SSE-KMS), you + need additional permissions in your KMS key policy. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you also want to integrate your table bucket with Amazon Web - Services analytics services so that you can query your metadata table, - you need additional permissions. For more information, see - [Integrating Amazon S3 Tables with Amazon Web Services analytics - services](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html) - in the *Amazon S3 User Guide*. + If you also want to integrate your table bucket with Amazon Web + Services analytics services so that you can query your metadata + table, you need additional permissions. For more information, see + [Integrating Amazon S3 Tables with Amazon Web Services analytics + services](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html) + in the *Amazon S3 User Guide*. - To query your metadata tables, you need additional permissions. For - more information, see [Permissions for querying metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-bucket-query-permissions.html) - in the *Amazon S3 User Guide*. + To query your metadata tables, you need additional permissions. For + more information, see [Permissions for querying metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-bucket-query-permissions.html) + in the *Amazon S3 User Guide*. - - `s3:CreateBucketMetadataTableConfiguration` + - `s3:CreateBucketMetadataTableConfiguration` - Note: + Note: The IAM policy action name is the same for the V1 and V2 API operations. - - `s3tables:CreateTableBucket` + - `s3tables:CreateTableBucket` - - `s3tables:CreateNamespace` + - `s3tables:CreateNamespace` - - `s3tables:GetTable` + - `s3tables:GetTable` - - `s3tables:CreateTable` + - `s3tables:CreateTable` - - `s3tables:PutTablePolicy` + - `s3tables:PutTablePolicy` - - `s3tables:PutTableBucketPolicy` + - `s3tables:PutTableBucketPolicy` - - `s3tables:PutTableEncryption` + - `s3tables:PutTableEncryption` - - `kms:DescribeKey` + - `kms:DescribeKey` - - `iam:PassRole` - required if you include an - `AnnotationTableConfiguration` with an IAM role. + - `iam:PassRole` - required if you include an + `AnnotationTableConfiguration` with an IAM role. The following operations are related to `CreateBucketMetadataConfiguration`: @@ -1039,8 +1029,6 @@ def create_bucket_metadata_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateBucketMetadataConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1050,14 +1038,36 @@ def create_bucket_metadata_configuration( Returns: An instance of `CreateBucketMetadataConfigurationOutput`. """ + + def create_bucket_metadata_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBucketMetadataConfigurationOutput: return self._invoke( - input, _models.CREATE_BUCKET_METADATA_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_BUCKET_METADATA_CONFIGURATION, args, kwargs + ), + _models.CREATE_BUCKET_METADATA_CONFIGURATION, + [], + plugins, ) + @_overload def create_bucket_metadata_table_configuration( self, - input: CreateBucketMetadataTableConfigurationInput, + request: _models.CreateBucketMetadataTableConfigurationInput + | _models.CreateBucketMetadataTableConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateBucketMetadataTableConfigurationOutput: ... + + @_overload + def create_bucket_metadata_table_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBucketMetadataTableConfigurationInputDict], ) -> CreateBucketMetadataTableConfigurationOutput: """ Warning: @@ -1080,34 +1090,35 @@ def create_bucket_metadata_table_configuration( Permissions - : To use this operation, you must have the following permissions. For - more information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the following permissions. For + more information, see [Setting up permissions for configuring + metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you want to encrypt your metadata tables with server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), you need - additional permissions. For more information, see [Setting up - permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + If you want to encrypt your metadata tables with server-side + encryption with Key Management Service (KMS) keys (SSE-KMS), you + need additional permissions. For more information, see [Setting up + permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you also want to integrate your table bucket with Amazon Web - Services analytics services so that you can query your metadata table, - you need additional permissions. For more information, see - [Integrating Amazon S3 Tables with Amazon Web Services analytics - services](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html) - in the *Amazon S3 User Guide*. + If you also want to integrate your table bucket with Amazon Web + Services analytics services so that you can query your metadata + table, you need additional permissions. For more information, see + [Integrating Amazon S3 Tables with Amazon Web Services analytics + services](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-aws.html) + in the *Amazon S3 User Guide*. - - `s3:CreateBucketMetadataTableConfiguration` + - `s3:CreateBucketMetadataTableConfiguration` - - `s3tables:CreateNamespace` + - `s3tables:CreateNamespace` - - `s3tables:GetTable` + - `s3tables:GetTable` - - `s3tables:CreateTable` + - `s3tables:CreateTable` - - `s3tables:PutTablePolicy` + - `s3tables:PutTablePolicy` The following operations are related to `CreateBucketMetadataTableConfiguration`: @@ -1122,8 +1133,6 @@ def create_bucket_metadata_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateBucketMetadataTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1133,12 +1142,36 @@ def create_bucket_metadata_table_configuration( Returns: An instance of `CreateBucketMetadataTableConfigurationOutput`. """ + + def create_bucket_metadata_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBucketMetadataTableConfigurationOutput: return self._invoke( - input, _models.CREATE_BUCKET_METADATA_TABLE_CONFIGURATION, [], plugins + self._select_input( + _models.CREATE_BUCKET_METADATA_TABLE_CONFIGURATION, args, kwargs + ), + _models.CREATE_BUCKET_METADATA_TABLE_CONFIGURATION, + [], + plugins, ) + @_overload + def create_multipart_upload( + self, + request: _models.CreateMultipartUploadInput + | _models.CreateMultipartUploadInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateMultipartUploadOutput: ... + + @_overload def create_multipart_upload( - self, input: CreateMultipartUploadInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateMultipartUploadInputDict], ) -> CreateMultipartUploadOutput: """ Warning: @@ -1197,208 +1230,210 @@ def create_multipart_upload( Request signing - : For request signing, multipart upload is just a series of regular - requests. You initiate a multipart upload, send one or more requests - to upload parts, and then complete the multipart upload process. You - sign each request individually. There is nothing special about signing - multipart upload requests. For more information about signing, see - [Authenticating Requests (Amazon Web Services Signature Version - 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) - in the *Amazon S3 User Guide*. + : For request signing, multipart upload is just a series of regular + requests. You initiate a multipart upload, send one or more requests + to upload parts, and then complete the multipart upload process. You + sign each request individually. There is nothing special about + signing multipart upload requests. For more information about + signing, see [Authenticating Requests (Amazon Web Services Signature + Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) + in the *Amazon S3 User Guide*. Permissions - : - **General purpose bucket permissions** - To perform a multipart - upload with encryption using an Key Management Service (KMS) KMS - key, the requester must have permission to the `kms:Decrypt` and - `kms:GenerateDataKey` actions on the key. The requester must also - have permissions for the `kms:GenerateDataKey` action for the - `CreateMultipartUpload` API. Then, the requester needs permissions - for the `kms:Decrypt` action on the `UploadPart` and - `UploadPartCopy` APIs. These permissions are required because Amazon - S3 must decrypt and read data from the encrypted file parts before - it completes the multipart upload. For more information, see - [Multipart upload API and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) - and [Protecting data using server-side encryption with Amazon Web - Services - KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - To perform a multipart + upload with encryption using an Key Management Service (KMS) KMS + key, the requester must have permission to the `kms:Decrypt` and + `kms:GenerateDataKey` actions on the key. The requester must also + have permissions for the `kms:GenerateDataKey` action for the + `CreateMultipartUpload` API. Then, the requester needs permissions + for the `kms:Decrypt` action on the `UploadPart` and + `UploadPartCopy` APIs. These permissions are required because + Amazon S3 must decrypt and read data from the encrypted file parts + before it completes the multipart upload. For more information, + see [Multipart upload API and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) + and [Protecting data using server-side encryption with Amazon Web + Services + KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . Encryption - : - **General purpose buckets** - Server-side encryption is for data - encryption at rest. Amazon S3 encrypts your data as it writes it to - disks in its data centers and decrypts it when you access it. Amazon - S3 automatically encrypts all new objects that are uploaded to an S3 - bucket. When doing a multipart upload, if you don't specify - encryption information in your request, the encryption setting of - the uploaded parts is set to the default encryption configuration of - the destination bucket. By default, all buckets have a base level of - encryption configuration that uses server-side encryption with - Amazon S3 managed keys (SSE-S3). If the destination bucket has a - default encryption configuration that uses server-side encryption - with an Key Management Service (KMS) key (SSE-KMS), or a - customer-provided encryption key (SSE-C), Amazon S3 uses the - corresponding KMS key, or a customer-provided key to encrypt the - uploaded parts. When you perform a CreateMultipartUpload operation, - if you want to use a different type of encryption setting for the - uploaded parts, you can request that Amazon S3 encrypts the object - with a different encryption key (such as an Amazon S3 managed key, a - KMS key, or a customer-provided key). When the encryption setting in - your request is different from the default encryption configuration - of the destination bucket, the encryption setting in your request - takes precedence. If you choose to provide your own encryption key, - the request headers you provide in - [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) - and - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) - requests must match the headers you used in the - `CreateMultipartUpload` request. - - - Use KMS keys (SSE-KMS) that include the Amazon Web Services - managed key (`aws/s3`) and KMS customer managed keys stored in Key - Management Service (KMS) -- If you want Amazon Web Services to - manage the keys used to encrypt data, specify the following - headers in the request. - - - `x-amz-server-side-encryption` - - - `x-amz-server-side-encryption-aws-kms-key-id` - - - `x-amz-server-side-encryption-context` - - Note: + : - **General purpose buckets** - Server-side encryption is for data + encryption at rest. Amazon S3 encrypts your data as it writes it + to disks in its data centers and decrypts it when you access it. + Amazon S3 automatically encrypts all new objects that are uploaded + to an S3 bucket. When doing a multipart upload, if you don't + specify encryption information in your request, the encryption + setting of the uploaded parts is set to the default encryption + configuration of the destination bucket. By default, all buckets + have a base level of encryption configuration that uses + server-side encryption with Amazon S3 managed keys (SSE-S3). If + the destination bucket has a default encryption configuration that + uses server-side encryption with an Key Management Service (KMS) + key (SSE-KMS), or a customer-provided encryption key (SSE-C), + Amazon S3 uses the corresponding KMS key, or a customer-provided + key to encrypt the uploaded parts. When you perform a + CreateMultipartUpload operation, if you want to use a different + type of encryption setting for the uploaded parts, you can request + that Amazon S3 encrypts the object with a different encryption key + (such as an Amazon S3 managed key, a KMS key, or a + customer-provided key). When the encryption setting in your + request is different from the default encryption configuration of + the destination bucket, the encryption setting in your request + takes precedence. If you choose to provide your own encryption + key, the request headers you provide in + [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) + requests must match the headers you used in the + `CreateMultipartUpload` request. + + - Use KMS keys (SSE-KMS) that include the Amazon Web Services + managed key (`aws/s3`) and KMS customer managed keys stored in + Key Management Service (KMS) -- If you want Amazon Web Services + to manage the keys used to encrypt data, specify the following + headers in the request. + + - `x-amz-server-side-encryption` + + - `x-amz-server-side-encryption-aws-kms-key-id` + + - `x-amz-server-side-encryption-context` + + Note: - If you specify `x-amz-server-side-encryption:aws:kms`, but don't provide `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the Amazon Web Services managed key (`aws/s3` key) in KMS to protect the data. - - To perform a multipart upload with encryption by using an Amazon - Web Services KMS key, the requester must have permission to the - `kms:Decrypt` and `kms:GenerateDataKey*` actions on the key. - These permissions are required because Amazon S3 must decrypt - and read data from the encrypted file parts before it completes - the multipart upload. For more information, see [Multipart - upload API and + - To perform a multipart upload with encryption by using an + Amazon Web Services KMS key, the requester must have + permission to the `kms:Decrypt` and `kms:GenerateDataKey*` + actions on the key. These permissions are required because + Amazon S3 must decrypt and read data from the encrypted file + parts before it completes the multipart upload. For more + information, see [Multipart upload API and permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) and [Protecting data using server-side encryption with Amazon Web Services KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) in the *Amazon S3 User Guide*. - - If your Identity and Access Management (IAM) user or role is in - the same Amazon Web Services account as the KMS key, then you - must have these permissions on the key policy. If your IAM user - or role is in a different account from the key, then you must - have the permissions on both the key policy and your IAM user or - role. - - - All `GET` and `PUT` requests for an object protected by KMS fail - if you don't make them by using Secure Sockets Layer (SSL), - Transport Layer Security (TLS), or Signature Version 4. For - information about configuring any of the officially supported - Amazon Web Services SDKs and Amazon Web Services CLI, see - [Specifying the Signature Version in Request + - If your Identity and Access Management (IAM) user or role is + in the same Amazon Web Services account as the KMS key, then + you must have these permissions on the key policy. If your IAM + user or role is in a different account from the key, then you + must have the permissions on both the key policy and your IAM + user or role. + + - All `GET` and `PUT` requests for an object protected by KMS + fail if you don't make them by using Secure Sockets Layer + (SSL), Transport Layer Security (TLS), or Signature Version 4. + For information about configuring any of the officially + supported Amazon Web Services SDKs and Amazon Web Services + CLI, see [Specifying the Signature Version in Request Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version) in the *Amazon S3 User Guide*. - For more information about server-side encryption with KMS keys - (SSE-KMS), see [Protecting Data Using Server-Side Encryption with - KMS - keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) - in the *Amazon S3 User Guide*. - - - Use customer-provided encryption keys (SSE-C) -- If you want to - manage your own encryption keys, provide all the following headers - in the request. + For more information about server-side encryption with KMS keys + (SSE-KMS), see [Protecting Data Using Server-Side Encryption + with KMS + keys](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) + in the *Amazon S3 User Guide*. - - `x-amz-server-side-encryption-customer-algorithm` + - Use customer-provided encryption keys (SSE-C) -- If you want to + manage your own encryption keys, provide all the following + headers in the request. - - `x-amz-server-side-encryption-customer-key` + - `x-amz-server-side-encryption-customer-algorithm` - - `x-amz-server-side-encryption-customer-key-MD5` + - `x-amz-server-side-encryption-customer-key` - For more information about server-side encryption with - customer-provided encryption keys (SSE-C), see [Protecting data - using server-side encryption with customer-provided encryption - keys - (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + - `x-amz-server-side-encryption-customer-key-MD5` - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: server-side encryption - with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side - encryption with KMS keys (SSE-KMS) (`aws:kms`). We recommend that - the bucket's default encryption uses the desired encryption - configuration and you don't override the bucket default encryption - in your `CreateSession` requests or `PUT` object requests. Then, new - objects are automatically encrypted with the desired encryption - settings. For more information, see [Protecting data with - server-side - encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) - in the *Amazon S3 User Guide*. For more information about the - encryption overriding behaviors in directory buckets, see - [Specifying server-side encryption with KMS for new object - uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). + For more information about server-side encryption with + customer-provided encryption keys (SSE-C), see [Protecting data + using server-side encryption with customer-provided encryption + keys + (SSE-C)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. - In the Zonal endpoint API calls (except - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) - and - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) - using the REST API, the encryption request headers must match the - encryption settings that are specified in the `CreateSession` - request. You can't override the values of the encryption settings - (`x-amz-server-side-encryption`, - `x-amz-server-side-encryption-aws-kms-key-id`, - `x-amz-server-side-encryption-context`, and - `x-amz-server-side-encryption-bucket-key-enabled`) that are - specified in the `CreateSession` request. You don't need to - explicitly specify these encryption settings values in Zonal - endpoint API calls, and Amazon S3 will use the encryption settings - values from the `CreateSession` request to protect new objects in - the directory bucket. + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side + encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and + server-side encryption with KMS keys (SSE-KMS) (`aws:kms`). We + recommend that the bucket's default encryption uses the desired + encryption configuration and you don't override the bucket + default encryption in your `CreateSession` requests or `PUT` + object requests. Then, new objects are automatically encrypted + with the desired encryption settings. For more information, see + [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. For more information about the + encryption overriding behaviors in directory buckets, see + [Specifying server-side encryption with KMS for new object + uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). + + In the Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) + using the REST API, the encryption request headers must match the + encryption settings that are specified in the `CreateSession` + request. You can't override the values of the encryption settings + (`x-amz-server-side-encryption`, + `x-amz-server-side-encryption-aws-kms-key-id`, + `x-amz-server-side-encryption-context`, and + `x-amz-server-side-encryption-bucket-key-enabled`) that are + specified in the `CreateSession` request. You don't need to + explicitly specify these encryption settings values in Zonal + endpoint API calls, and Amazon S3 will use the encryption settings + values from the `CreateSession` request to protect new objects in + the directory bucket. - Note: + Note: When you use the CLI or the Amazon Web Services SDKs, for - `CreateSession`, the session token refreshes automatically to avoid - service interruptions when a session expires. The CLI or the Amazon - Web Services SDKs use the bucket's default encryption configuration - for the `CreateSession` request. It's not supported to override the - encryption settings values in the `CreateSession` request. So in the - Zonal endpoint API calls (except + `CreateSession`, the session token refreshes automatically to + avoid service interruptions when a session expires. The CLI or the + Amazon Web Services SDKs use the bucket's default encryption + configuration for the `CreateSession` request. It's not supported + to override the encryption settings values in the `CreateSession` + request. So in the Zonal endpoint API calls (except [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) and [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)), the encryption request headers must match the default encryption configuration of the directory bucket. - Note: + Note: For directory buckets, when you perform a `CreateMultipartUpload` - operation and an `UploadPartCopy` operation, the request headers you - provide in the `CreateMultipartUpload` request must match the + operation and an `UploadPartCopy` operation, the request headers + you provide in the `CreateMultipartUpload` request must match the default encryption configuration of the destination bucket. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `CreateMultipartUpload`: @@ -1418,8 +1453,6 @@ def create_multipart_upload( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateMultipartUploadInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1429,10 +1462,33 @@ def create_multipart_upload( Returns: An instance of `CreateMultipartUploadOutput`. """ - return self._invoke(input, _models.CREATE_MULTIPART_UPLOAD, [], plugins) + def create_multipart_upload( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateMultipartUploadOutput: + return self._invoke( + self._select_input(_models.CREATE_MULTIPART_UPLOAD, args, kwargs), + _models.CREATE_MULTIPART_UPLOAD, + [], + plugins, + ) + + @_overload + def create_session( + self, + request: _models.CreateSessionInput | _models.CreateSessionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSessionOutput: ... + + @_overload def create_session( - self, input: CreateSessionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSessionInputDict], ) -> CreateSessionOutput: """ Creates a session that establishes temporary security credentials to @@ -1503,88 +1559,88 @@ def create_session( Permissions - : To obtain temporary security credentials, you must create a bucket - policy or an IAM identity-based policy that grants - `s3express:CreateSession` permission to the bucket. In a policy, you - can have the `s3express:SessionMode` condition key to control who can - create a `ReadWrite` or `ReadOnly` session. For more information about - `ReadWrite` or `ReadOnly` sessions, see - [`x-amz-create-session-mode`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters) - . For example policies, see [Example bucket policies for S3 Express - One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - and [Amazon Web Services Identity and Access Management (IAM) - identity-based policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) - in the *Amazon S3 User Guide*. + : To obtain temporary security credentials, you must create a bucket + policy or an IAM identity-based policy that grants + `s3express:CreateSession` permission to the bucket. In a policy, you + can have the `s3express:SessionMode` condition key to control who + can create a `ReadWrite` or `ReadOnly` session. For more information + about `ReadWrite` or `ReadOnly` sessions, see + [`x-amz-create-session-mode`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters) + . For example policies, see [Example bucket policies for S3 Express + One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + and [Amazon Web Services Identity and Access Management (IAM) + identity-based policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) + in the *Amazon S3 User Guide*. - To grant cross-account access to Zonal endpoint API operations, the - bucket policy should also grant both accounts the - `s3express:CreateSession` permission. + To grant cross-account access to Zonal endpoint API operations, the + bucket policy should also grant both accounts the + `s3express:CreateSession` permission. - If you want to encrypt objects with SSE-KMS, you must also have the - `kms:GenerateDataKey` and the `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the target KMS key. + If you want to encrypt objects with SSE-KMS, you must also have the + `kms:GenerateDataKey` and the `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the target KMS key. Encryption - : For directory buckets, there are only two supported options for - server-side encryption: server-side encryption with Amazon S3 managed - keys (SSE-S3) (`AES256`) and server-side encryption with KMS keys - (SSE-KMS) (`aws:kms`). We recommend that the bucket's default - encryption uses the desired encryption configuration and you don't - override the bucket default encryption in your `CreateSession` - requests or `PUT` object requests. Then, new objects are automatically - encrypted with the desired encryption settings. For more information, - see [Protecting data with server-side - encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) - in the *Amazon S3 User Guide*. For more information about the - encryption overriding behaviors in directory buckets, see [Specifying - server-side encryption with KMS for new object - uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). - - For [Zonal endpoint (object-level) API - operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-differences.html#s3-express-differences-api-operations) - except - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) - and - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), - you authenticate and authorize requests through - [CreateSession](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - for low latency. To encrypt new objects in a directory bucket with - SSE-KMS, you must specify SSE-KMS as the directory bucket's default - encryption configuration with a KMS key (specifically, a [customer - managed - key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk)). - Then, when a session is created for Zonal endpoint API operations, new - objects are automatically encrypted and decrypted with SSE-KMS and S3 - Bucket Keys during the session. + : For directory buckets, there are only two supported options for + server-side encryption: server-side encryption with Amazon S3 + managed keys (SSE-S3) (`AES256`) and server-side encryption with KMS + keys (SSE-KMS) (`aws:kms`). We recommend that the bucket's default + encryption uses the desired encryption configuration and you don't + override the bucket default encryption in your `CreateSession` + requests or `PUT` object requests. Then, new objects are + automatically encrypted with the desired encryption settings. For + more information, see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. For more information about the + encryption overriding behaviors in directory buckets, see + [Specifying server-side encryption with KMS for new object + uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). - Note: + For [Zonal endpoint (object-level) API + operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-differences.html#s3-express-differences-api-operations) + except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html), + you authenticate and authorize requests through + [CreateSession](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + for low latency. To encrypt new objects in a directory bucket with + SSE-KMS, you must specify SSE-KMS as the directory bucket's default + encryption configuration with a KMS key (specifically, a [customer + managed + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk)). + Then, when a session is created for Zonal endpoint API operations, + new objects are automatically encrypted and decrypted with SSE-KMS + and S3 Bucket Keys during the session. + + Note: Only 1 [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) - is supported per directory bucket for the lifetime of the bucket. The - [Amazon Web Services managed + is supported per directory bucket for the lifetime of the bucket. + The [Amazon Web Services managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) (`aws/s3`) isn't supported. After you specify SSE-KMS as your bucket's default encryption configuration with a customer managed key, you can't change the customer managed key for the bucket's SSE-KMS configuration. - In the Zonal endpoint API calls (except - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) - and - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) - using the REST API, you can't override the values of the encryption - settings (`x-amz-server-side-encryption`, - `x-amz-server-side-encryption-aws-kms-key-id`, - `x-amz-server-side-encryption-context`, and - `x-amz-server-side-encryption-bucket-key-enabled`) from the - `CreateSession` request. You don't need to explicitly specify these - encryption settings values in Zonal endpoint API calls, and Amazon S3 - will use the encryption settings values from the `CreateSession` - request to protect new objects in the directory bucket. + In the Zonal endpoint API calls (except + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)) + using the REST API, you can't override the values of the encryption + settings (`x-amz-server-side-encryption`, + `x-amz-server-side-encryption-aws-kms-key-id`, + `x-amz-server-side-encryption-context`, and + `x-amz-server-side-encryption-bucket-key-enabled`) from the + `CreateSession` request. You don't need to explicitly specify these + encryption settings values in Zonal endpoint API calls, and Amazon + S3 will use the encryption settings values from the `CreateSession` + request to protect new objects in the directory bucket. - Note: + Note: When you use the CLI or the Amazon Web Services SDKs, for `CreateSession`, the session token refreshes automatically to avoid service interruptions when a session expires. The CLI or the Amazon @@ -1595,13 +1651,13 @@ def create_session( [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) and [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)), - it's not supported to override the values of the encryption settings - from the `CreateSession` request. + it's not supported to override the values of the encryption + settings from the `CreateSession` request. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Warning: You must URL encode any signed header values that contain spaces. For @@ -1609,8 +1665,6 @@ def create_session( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `CreateSessionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1620,10 +1674,33 @@ def create_session( Returns: An instance of `CreateSessionOutput`. """ - return self._invoke(input, _models.CREATE_SESSION, [], plugins) + def create_session( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSessionOutput: + return self._invoke( + self._select_input(_models.CREATE_SESSION, args, kwargs), + _models.CREATE_SESSION, + [], + plugins, + ) + + @_overload + def delete_bucket( + self, + request: _models.DeleteBucketInput | _models.DeleteBucketInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketOutput: ... + + @_overload def delete_bucket( - self, input: DeleteBucketInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketInputDict], ) -> DeleteBucketOutput: """ Deletes the S3 bucket. All objects (including all object versions and @@ -1650,24 +1727,24 @@ def delete_bucket( Permissions - : - **General purpose bucket permissions** - You must have the - `s3:DeleteBucket` permission on the specified bucket in a policy. - - - **Directory bucket permissions** - You must have the - `s3express:DeleteBucket` permission in an IAM identity-based policy - instead of a bucket policy. Cross-account access to this API - operation isn't supported. This operation can only be performed by - the Amazon Web Services account that owns the resource. For more - information about directory bucket policies and permissions, see - [Amazon Web Services Identity and Access Management (IAM) for S3 - Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - You must have the + `s3:DeleteBucket` permission on the specified bucket in a policy. + + - **Directory bucket permissions** - You must have the + `s3express:DeleteBucket` permission in an IAM identity-based + policy instead of a bucket policy. Cross-account access to this + API operation isn't supported. This operation can only be + performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `DeleteBucket`: @@ -1681,8 +1758,6 @@ def delete_bucket( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1692,14 +1767,36 @@ def delete_bucket( Returns: An instance of `DeleteBucketOutput`. """ - return self._invoke(input, _models.DELETE_BUCKET, [], plugins) + def delete_bucket( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketOutput: + return self._invoke( + self._select_input(_models.DELETE_BUCKET, args, kwargs), + _models.DELETE_BUCKET, + [], + plugins, + ) + + @_overload def delete_bucket_analytics_configuration( self, - input: DeleteBucketAnalyticsConfigurationInput, + request: _models.DeleteBucketAnalyticsConfigurationInput + | _models.DeleteBucketAnalyticsConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, - ) -> DeleteBucketAnalyticsConfigurationOutput: - """ + ) -> DeleteBucketAnalyticsConfigurationOutput: ... + + @_overload + def delete_bucket_analytics_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketAnalyticsConfigurationInputDict], + ) -> DeleteBucketAnalyticsConfigurationOutput: + """ Note: This operation is not supported for directory buckets. @@ -1734,8 +1831,6 @@ def delete_bucket_analytics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketAnalyticsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1745,12 +1840,35 @@ def delete_bucket_analytics_configuration( Returns: An instance of `DeleteBucketAnalyticsConfigurationOutput`. """ + + def delete_bucket_analytics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketAnalyticsConfigurationOutput: return self._invoke( - input, _models.DELETE_BUCKET_ANALYTICS_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_ANALYTICS_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_ANALYTICS_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_bucket_cors( + self, + request: _models.DeleteBucketCorsInput | _models.DeleteBucketCorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketCorsOutput: ... + + @_overload def delete_bucket_cors( - self, input: DeleteBucketCorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketCorsInputDict], ) -> DeleteBucketCorsOutput: """ Note: @@ -1778,8 +1896,6 @@ def delete_bucket_cors( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketCorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1789,10 +1905,34 @@ def delete_bucket_cors( Returns: An instance of `DeleteBucketCorsOutput`. """ - return self._invoke(input, _models.DELETE_BUCKET_CORS, [], plugins) + def delete_bucket_cors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketCorsOutput: + return self._invoke( + self._select_input(_models.DELETE_BUCKET_CORS, args, kwargs), + _models.DELETE_BUCKET_CORS, + [], + plugins, + ) + + @_overload def delete_bucket_encryption( - self, input: DeleteBucketEncryptionInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteBucketEncryptionInput + | _models.DeleteBucketEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketEncryptionOutput: ... + + @_overload + def delete_bucket_encryption( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketEncryptionInputDict], ) -> DeleteBucketEncryptionOutput: """ This implementation of the DELETE action resets the default encryption @@ -1814,30 +1954,31 @@ def delete_bucket_encryption( Permissions - : - **General purpose bucket permissions** - The - `s3:PutEncryptionConfiguration` permission is required in a policy. - The bucket owner has this permission by default. The bucket owner - can grant this permission to others. For more information about - permissions, see [Permissions Related to Bucket - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + : - **General purpose bucket permissions** - The + `s3:PutEncryptionConfiguration` permission is required in a + policy. The bucket owner has this permission by default. The + bucket owner can grant this permission to others. For more + information about permissions, see [Permissions Related to Bucket + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutEncryptionConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - To grant access to this API + operation, you must have the + `s3express:PutEncryptionConfiguration` permission in an IAM + identity-based policy instead of a bucket policy. Cross-account + access to this API operation isn't supported. This operation can + only be performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `DeleteBucketEncryption`: @@ -1851,8 +1992,6 @@ def delete_bucket_encryption( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1862,12 +2001,34 @@ def delete_bucket_encryption( Returns: An instance of `DeleteBucketEncryptionOutput`. """ - return self._invoke(input, _models.DELETE_BUCKET_ENCRYPTION, [], plugins) + def delete_bucket_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketEncryptionOutput: + return self._invoke( + self._select_input(_models.DELETE_BUCKET_ENCRYPTION, args, kwargs), + _models.DELETE_BUCKET_ENCRYPTION, + [], + plugins, + ) + + @_overload + def delete_bucket_intelligent_tiering_configuration( + self, + request: _models.DeleteBucketIntelligentTieringConfigurationInput + | _models.DeleteBucketIntelligentTieringConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketIntelligentTieringConfigurationOutput: ... + + @_overload def delete_bucket_intelligent_tiering_configuration( self, - input: DeleteBucketIntelligentTieringConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketIntelligentTieringConfigurationInputDict], ) -> DeleteBucketIntelligentTieringConfigurationOutput: """ Note: @@ -1911,8 +2072,6 @@ def delete_bucket_intelligent_tiering_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketIntelligentTieringConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1922,14 +2081,36 @@ def delete_bucket_intelligent_tiering_configuration( Returns: An instance of `DeleteBucketIntelligentTieringConfigurationOutput`. """ + + def delete_bucket_intelligent_tiering_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketIntelligentTieringConfigurationOutput: return self._invoke( - input, _models.DELETE_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_bucket_inventory_configuration( + self, + request: _models.DeleteBucketInventoryConfigurationInput + | _models.DeleteBucketInventoryConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketInventoryConfigurationOutput: ... + + @_overload def delete_bucket_inventory_configuration( self, - input: DeleteBucketInventoryConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketInventoryConfigurationInputDict], ) -> DeleteBucketInventoryConfigurationOutput: """ Deletes an S3 Inventory configuration (identified by the inventory ID) @@ -1951,35 +2132,35 @@ def delete_bucket_inventory_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:PutInventoryConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:PutInventoryConfiguration` permission is required in a policy. - For more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:PutInventoryConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutInventoryConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:PutInventoryConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutInventoryConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about the Amazon S3 inventory feature, see [Amazon S3 Inventory](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html). @@ -2003,8 +2184,6 @@ def delete_bucket_inventory_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketInventoryConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2014,12 +2193,36 @@ def delete_bucket_inventory_configuration( Returns: An instance of `DeleteBucketInventoryConfigurationOutput`. """ + + def delete_bucket_inventory_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketInventoryConfigurationOutput: return self._invoke( - input, _models.DELETE_BUCKET_INVENTORY_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_INVENTORY_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_INVENTORY_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_bucket_lifecycle( + self, + request: _models.DeleteBucketLifecycleInput + | _models.DeleteBucketLifecycleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketLifecycleOutput: ... + + @_overload def delete_bucket_lifecycle( - self, input: DeleteBucketLifecycleInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketLifecycleInputDict], ) -> DeleteBucketLifecycleOutput: """ Deletes the lifecycle configuration from the specified bucket. Amazon S3 @@ -2030,43 +2233,44 @@ def delete_bucket_lifecycle( Permissions - : - **General purpose bucket permissions** - By default, all Amazon S3 - resources are private, including buckets, objects, and related - subresources (for example, lifecycle configuration and website - configuration). Only the resource owner (that is, the Amazon Web - Services account that created it) can access the resource. The - resource owner can optionally grant access permissions to others by - writing an access policy. For this operation, a user must have the - `s3:PutLifecycleConfiguration` permission. - - For more information about permissions, see [Managing Access - Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + : - **General purpose bucket permissions** - By default, all Amazon S3 + resources are private, including buckets, objects, and related + subresources (for example, lifecycle configuration and website + configuration). Only the resource owner (that is, the Amazon Web + Services account that created it) can access the resource. The + resource owner can optionally grant access permissions to others + by writing an access policy. For this operation, a user must have + the `s3:PutLifecycleConfiguration` permission. - - **Directory bucket permissions** - You must have the - `s3express:PutLifecycleConfiguration` permission in an IAM - identity-based policy to use this operation. Cross-account access to - this API operation isn't supported. The resource owner can - optionally grant access permissions to others by creating a role or - user for them as long as they are within the same account as the - owner and resource. - - For more information about directory bucket policies and - permissions, see [Authorizing Regional endpoint APIs with - IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + For more information about permissions, see [Managing Access + Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - Note: + - **Directory bucket permissions** - You must have the + `s3express:PutLifecycleConfiguration` permission in an IAM + identity-based policy to use this operation. Cross-account access + to this API operation isn't supported. The resource owner can + optionally grant access permissions to others by creating a role + or user for them as long as they are within the same account as + the owner and resource. + + For more information about directory bucket policies and + permissions, see [Authorizing Regional endpoint APIs with + IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. + + Note: **Directory buckets** - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. Virtual-hosted-style requests aren't supported. For more - information about endpoints in Availability Zones, see [Regional and - Zonal endpoints for directory buckets in Availability + information about endpoints in Availability Zones, see [Regional + and Zonal endpoints for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints - in Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about + endpoints in Local Zones, see [Concepts for directory buckets in + Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. @@ -2074,8 +2278,8 @@ def delete_bucket_lifecycle( HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region`*`.amazonaws.com`. For more information about the object expiration, see [Elements to Describe Lifecycle @@ -2093,8 +2297,6 @@ def delete_bucket_lifecycle( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketLifecycleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2104,12 +2306,34 @@ def delete_bucket_lifecycle( Returns: An instance of `DeleteBucketLifecycleOutput`. """ - return self._invoke(input, _models.DELETE_BUCKET_LIFECYCLE, [], plugins) + def delete_bucket_lifecycle( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketLifecycleOutput: + return self._invoke( + self._select_input(_models.DELETE_BUCKET_LIFECYCLE, args, kwargs), + _models.DELETE_BUCKET_LIFECYCLE, + [], + plugins, + ) + + @_overload + def delete_bucket_metadata_configuration( + self, + request: _models.DeleteBucketMetadataConfigurationInput + | _models.DeleteBucketMetadataConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketMetadataConfigurationOutput: ... + + @_overload def delete_bucket_metadata_configuration( self, - input: DeleteBucketMetadataConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketMetadataConfigurationInputDict], ) -> DeleteBucketMetadataConfigurationOutput: """ Deletes an S3 Metadata configuration from a general purpose bucket. For @@ -2125,13 +2349,13 @@ def delete_bucket_metadata_configuration( Permissions - : To use this operation, you must have the - `s3:DeleteBucketMetadataTableConfiguration` permission. For more - information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:DeleteBucketMetadataTableConfiguration` permission. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - Note: + Note: The IAM policy action name is the same for the V1 and V2 API operations. @@ -2152,8 +2376,6 @@ def delete_bucket_metadata_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketMetadataConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2163,14 +2385,36 @@ def delete_bucket_metadata_configuration( Returns: An instance of `DeleteBucketMetadataConfigurationOutput`. """ + + def delete_bucket_metadata_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketMetadataConfigurationOutput: return self._invoke( - input, _models.DELETE_BUCKET_METADATA_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_METADATA_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_METADATA_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_bucket_metadata_table_configuration( + self, + request: _models.DeleteBucketMetadataTableConfigurationInput + | _models.DeleteBucketMetadataTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketMetadataTableConfigurationOutput: ... + + @_overload def delete_bucket_metadata_table_configuration( self, - input: DeleteBucketMetadataTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketMetadataTableConfigurationInputDict], ) -> DeleteBucketMetadataTableConfigurationOutput: """ Warning: @@ -2204,11 +2448,11 @@ def delete_bucket_metadata_table_configuration( Permissions - : To use this operation, you must have the - `s3:DeleteBucketMetadataTableConfiguration` permission. For more - information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:DeleteBucketMetadataTableConfiguration` permission. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. The following operations are related to `DeleteBucketMetadataTableConfiguration`: @@ -2223,8 +2467,6 @@ def delete_bucket_metadata_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketMetadataTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2234,14 +2476,36 @@ def delete_bucket_metadata_table_configuration( Returns: An instance of `DeleteBucketMetadataTableConfigurationOutput`. """ + + def delete_bucket_metadata_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketMetadataTableConfigurationOutput: return self._invoke( - input, _models.DELETE_BUCKET_METADATA_TABLE_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_METADATA_TABLE_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_METADATA_TABLE_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_bucket_metrics_configuration( + self, + request: _models.DeleteBucketMetricsConfigurationInput + | _models.DeleteBucketMetricsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketMetricsConfigurationOutput: ... + + @_overload def delete_bucket_metrics_configuration( self, - input: DeleteBucketMetricsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketMetricsConfigurationInputDict], ) -> DeleteBucketMetricsConfigurationOutput: """ Deletes a metrics configuration for the Amazon CloudWatch request @@ -2264,37 +2528,37 @@ def delete_bucket_metrics_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:PutMetricsConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:PutMetricsConfiguration` permission is required in a policy. For - more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:PutMetricsConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutMetricsConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:PutMetricsConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutMetricsConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about CloudWatch request metrics for Amazon S3, see [Monitoring Metrics with Amazon @@ -2318,8 +2582,6 @@ def delete_bucket_metrics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketMetricsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2329,14 +2591,36 @@ def delete_bucket_metrics_configuration( Returns: An instance of `DeleteBucketMetricsConfigurationOutput`. """ + + def delete_bucket_metrics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketMetricsConfigurationOutput: return self._invoke( - input, _models.DELETE_BUCKET_METRICS_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_BUCKET_METRICS_CONFIGURATION, args, kwargs + ), + _models.DELETE_BUCKET_METRICS_CONFIGURATION, + [], + plugins, ) + @_overload + def delete_bucket_ownership_controls( + self, + request: _models.DeleteBucketOwnershipControlsInput + | _models.DeleteBucketOwnershipControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketOwnershipControlsOutput: ... + + @_overload def delete_bucket_ownership_controls( self, - input: DeleteBucketOwnershipControlsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketOwnershipControlsInputDict], ) -> DeleteBucketOwnershipControlsOutput: """ Note: @@ -2363,8 +2647,6 @@ def delete_bucket_ownership_controls( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketOwnershipControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2374,12 +2656,33 @@ def delete_bucket_ownership_controls( Returns: An instance of `DeleteBucketOwnershipControlsOutput`. """ + + def delete_bucket_ownership_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketOwnershipControlsOutput: return self._invoke( - input, _models.DELETE_BUCKET_OWNERSHIP_CONTROLS, [], plugins + self._select_input(_models.DELETE_BUCKET_OWNERSHIP_CONTROLS, args, kwargs), + _models.DELETE_BUCKET_OWNERSHIP_CONTROLS, + [], + plugins, ) + @_overload + def delete_bucket_policy( + self, + request: _models.DeleteBucketPolicyInput | _models.DeleteBucketPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketPolicyOutput: ... + + @_overload def delete_bucket_policy( - self, input: DeleteBucketPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketPolicyInputDict], ) -> DeleteBucketPolicyOutput: """ Deletes the policy of a specified bucket. @@ -2400,48 +2703,49 @@ def delete_bucket_policy( Permissions - : If you are using an identity other than the root user of the Amazon - Web Services account that owns the bucket, the calling identity must - both have the `DeleteBucketPolicy` permissions on the specified bucket - and belong to the bucket owner's account in order to use this - operation. - - If you don't have `DeleteBucketPolicy` permissions, Amazon S3 returns - a `403 Access Denied` error. If you have the correct permissions, but - you're not using an identity that belongs to the bucket owner's - account, Amazon S3 returns a `405 Method Not Allowed` error. - - Warning: - To ensure that bucket owners don't inadvertently lock themselves out - of their own buckets, the root principal in a bucket owner's Amazon - Web Services account can perform the `GetBucketPolicy`, - `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if their - bucket policy explicitly denies the root principal's access. Bucket - owner root principals can only be blocked from performing these API - actions by VPC endpoint policies and Amazon Web Services Organizations - policies. - - **General purpose bucket permissions** - The `s3:DeleteBucketPolicy` - permission is required in a policy. For more information about - general purpose buckets bucket policies, see [Using Bucket Policies - and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : If you are using an identity other than the root user of the Amazon + Web Services account that owns the bucket, the calling identity must + both have the `DeleteBucketPolicy` permissions on the specified + bucket and belong to the bucket owner's account in order to use + this operation. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:DeleteBucketPolicy` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + If you don't have `DeleteBucketPolicy` permissions, Amazon S3 + returns a `403 Access Denied` error. If you have the correct + permissions, but you're not using an identity that belongs to the + bucket owner's account, Amazon S3 returns a + `405 Method Not Allowed` error. + + Warning: + To ensure that bucket owners don't inadvertently lock themselves + out of their own buckets, the root principal in a bucket owner's + Amazon Web Services account can perform the `GetBucketPolicy`, + `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if + their bucket policy explicitly denies the root principal's access. + Bucket owner root principals can only be blocked from performing + these API actions by VPC endpoint policies and Amazon Web Services + Organizations policies. + - **General purpose bucket permissions** - The + `s3:DeleteBucketPolicy` permission is required in a policy. For + more information about general purpose buckets bucket policies, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:DeleteBucketPolicy` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `DeleteBucketPolicy` @@ -2455,8 +2759,6 @@ def delete_bucket_policy( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2466,10 +2768,34 @@ def delete_bucket_policy( Returns: An instance of `DeleteBucketPolicyOutput`. """ - return self._invoke(input, _models.DELETE_BUCKET_POLICY, [], plugins) + def delete_bucket_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketPolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_BUCKET_POLICY, args, kwargs), + _models.DELETE_BUCKET_POLICY, + [], + plugins, + ) + + @_overload + def delete_bucket_replication( + self, + request: _models.DeleteBucketReplicationInput + | _models.DeleteBucketReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketReplicationOutput: ... + + @_overload def delete_bucket_replication( - self, input: DeleteBucketReplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketReplicationInputDict], ) -> DeleteBucketReplicationOutput: """ Note: @@ -2505,8 +2831,6 @@ def delete_bucket_replication( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2516,10 +2840,34 @@ def delete_bucket_replication( Returns: An instance of `DeleteBucketReplicationOutput`. """ - return self._invoke(input, _models.DELETE_BUCKET_REPLICATION, [], plugins) + def delete_bucket_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketReplicationOutput: + return self._invoke( + self._select_input(_models.DELETE_BUCKET_REPLICATION, args, kwargs), + _models.DELETE_BUCKET_REPLICATION, + [], + plugins, + ) + + @_overload + def delete_bucket_tagging( + self, + request: _models.DeleteBucketTaggingInput + | _models.DeleteBucketTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketTaggingOutput: ... + + @_overload def delete_bucket_tagging( - self, input: DeleteBucketTaggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketTaggingInputDict], ) -> DeleteBucketTaggingOutput: """ Note: @@ -2549,8 +2897,6 @@ def delete_bucket_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2560,10 +2906,34 @@ def delete_bucket_tagging( Returns: An instance of `DeleteBucketTaggingOutput`. """ - return self._invoke(input, _models.DELETE_BUCKET_TAGGING, [], plugins) + def delete_bucket_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketTaggingOutput: + return self._invoke( + self._select_input(_models.DELETE_BUCKET_TAGGING, args, kwargs), + _models.DELETE_BUCKET_TAGGING, + [], + plugins, + ) + + @_overload + def delete_bucket_website( + self, + request: _models.DeleteBucketWebsiteInput + | _models.DeleteBucketWebsiteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteBucketWebsiteOutput: ... + + @_overload def delete_bucket_website( - self, input: DeleteBucketWebsiteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteBucketWebsiteInputDict], ) -> DeleteBucketWebsiteOutput: """ Note: @@ -2598,8 +2968,6 @@ def delete_bucket_website( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteBucketWebsiteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2609,10 +2977,33 @@ def delete_bucket_website( Returns: An instance of `DeleteBucketWebsiteOutput`. """ - return self._invoke(input, _models.DELETE_BUCKET_WEBSITE, [], plugins) + def delete_bucket_website( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteBucketWebsiteOutput: + return self._invoke( + self._select_input(_models.DELETE_BUCKET_WEBSITE, args, kwargs), + _models.DELETE_BUCKET_WEBSITE, + [], + plugins, + ) + + @_overload + def delete_object( + self, + request: _models.DeleteObjectInput | _models.DeleteObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteObjectOutput: ... + + @_overload def delete_object( - self, input: DeleteObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteObjectInputDict], ) -> DeleteObjectOutput: """ Removes an object from a bucket. The behavior depends on the bucket's @@ -2691,43 +3082,43 @@ def delete_object( Permissions - : - **General purpose bucket permissions** - The following permissions - are required in your policies when your `DeleteObjects` request - includes specific headers. + : - **General purpose bucket permissions** - The following permissions + are required in your policies when your `DeleteObjects` request + includes specific headers. - - **`s3:DeleteObject`** - To delete an object from a bucket, you - must always have the `s3:DeleteObject` permission. + - **`s3:DeleteObject`** - To delete an object from a bucket, you + must always have the `s3:DeleteObject` permission. - - **`s3:DeleteObjectVersion`** - To delete a specific version of an - object from a versioning-enabled bucket, you must have the - `s3:DeleteObjectVersion` permission. + - **`s3:DeleteObjectVersion`** - To delete a specific version of + an object from a versioning-enabled bucket, you must have the + `s3:DeleteObjectVersion` permission. - Note: + Note: If the `s3:DeleteObject` or `s3:DeleteObjectVersion` permissions are explicitly denied in your bucket policy, attempts to delete any unversioned objects result in a `403 Access Denied` error. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following action is related to `DeleteObject`: @@ -2743,8 +3134,6 @@ def delete_object( supported for directory buckets. Args: - input: - An instance of `DeleteObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2754,10 +3143,34 @@ def delete_object( Returns: An instance of `DeleteObjectOutput`. """ - return self._invoke(input, _models.DELETE_OBJECT, [], plugins) + def delete_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteObjectOutput: + return self._invoke( + self._select_input(_models.DELETE_OBJECT, args, kwargs), + _models.DELETE_OBJECT, + [], + plugins, + ) + + @_overload + def delete_object_annotation( + self, + request: _models.DeleteObjectAnnotationInput + | _models.DeleteObjectAnnotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteObjectAnnotationOutput: ... + + @_overload def delete_object_annotation( - self, input: DeleteObjectAnnotationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteObjectAnnotationInputDict], ) -> DeleteObjectAnnotationOutput: """ Deletes a specific annotation from an Amazon S3 object. Use the @@ -2788,8 +3201,6 @@ def delete_object_annotation( - [ListObjectAnnotations](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectAnnotations.html) Args: - input: - An instance of `DeleteObjectAnnotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2799,10 +3210,33 @@ def delete_object_annotation( Returns: An instance of `DeleteObjectAnnotationOutput`. """ - return self._invoke(input, _models.DELETE_OBJECT_ANNOTATION, [], plugins) + def delete_object_annotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteObjectAnnotationOutput: + return self._invoke( + self._select_input(_models.DELETE_OBJECT_ANNOTATION, args, kwargs), + _models.DELETE_OBJECT_ANNOTATION, + [], + plugins, + ) + + @_overload def delete_objects( - self, input: DeleteObjectsInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteObjectsInput | _models.DeleteObjectsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteObjectsOutput: ... + + @_overload + def delete_objects( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteObjectsInputDict], ) -> DeleteObjectsOutput: """ This operation enables you to delete multiple objects from a bucket @@ -2858,56 +3292,56 @@ def delete_objects( Permissions - : - **General purpose bucket permissions** - The following permissions - are required in your policies when your `DeleteObjects` request - includes specific headers. + : - **General purpose bucket permissions** - The following permissions + are required in your policies when your `DeleteObjects` request + includes specific headers. - - **`s3:DeleteObject`** - To delete an object from a bucket, you - must always specify the `s3:DeleteObject` permission. + - **`s3:DeleteObject`** - To delete an object from a bucket, you + must always specify the `s3:DeleteObject` permission. - - **`s3:DeleteObjectVersion`** - To delete a specific version of an - object from a versioning-enabled bucket, you must specify the - `s3:DeleteObjectVersion` permission. + - **`s3:DeleteObjectVersion`** - To delete a specific version of + an object from a versioning-enabled bucket, you must specify the + `s3:DeleteObjectVersion` permission. - Note: + Note: If the `s3:DeleteObject` or `s3:DeleteObjectVersion` permissions are explicitly denied in your bucket policy, attempts to delete any unversioned objects result in a `403 Access Denied` error. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . Content-MD5 request header - : - **General purpose bucket** - The Content-MD5 request header is - required for all Multi-Object Delete requests. Amazon S3 uses the - header value to ensure that your request body has not been altered - in transit. + : - **General purpose bucket** - The Content-MD5 request header is + required for all Multi-Object Delete requests. Amazon S3 uses the + header value to ensure that your request body has not been altered + in transit. - - **Directory bucket** - The Content-MD5 request header or a - additional checksum request header (including - `x-amz-checksum-crc32`, `x-amz-checksum-crc32c`, - `x-amz-checksum-sha1`, or `x-amz-checksum-sha256`) is required for - all Multi-Object Delete requests. + - **Directory bucket** - The Content-MD5 request header or a + additional checksum request header (including + `x-amz-checksum-crc32`, `x-amz-checksum-crc32c`, + `x-amz-checksum-sha1`, or `x-amz-checksum-sha256`) is required for + all Multi-Object Delete requests. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `DeleteObjects`: @@ -2927,8 +3361,6 @@ def delete_objects( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteObjectsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2938,11 +3370,35 @@ def delete_objects( Returns: An instance of `DeleteObjectsOutput`. """ - return self._invoke(input, _models.DELETE_OBJECTS, [], plugins) - def delete_object_tagging( - self, input: DeleteObjectTaggingInput, plugins: list[Plugin] | None = None - ) -> DeleteObjectTaggingOutput: + def delete_objects( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteObjectsOutput: + return self._invoke( + self._select_input(_models.DELETE_OBJECTS, args, kwargs), + _models.DELETE_OBJECTS, + [], + plugins, + ) + + @_overload + def delete_object_tagging( + self, + request: _models.DeleteObjectTaggingInput + | _models.DeleteObjectTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteObjectTaggingOutput: ... + + @_overload + def delete_object_tagging( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteObjectTaggingInputDict], + ) -> DeleteObjectTaggingOutput: """ Note: This operation is not supported for directory buckets. @@ -2970,8 +3426,6 @@ def delete_object_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeleteObjectTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -2981,10 +3435,34 @@ def delete_object_tagging( Returns: An instance of `DeleteObjectTaggingOutput`. """ - return self._invoke(input, _models.DELETE_OBJECT_TAGGING, [], plugins) + def delete_object_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteObjectTaggingOutput: + return self._invoke( + self._select_input(_models.DELETE_OBJECT_TAGGING, args, kwargs), + _models.DELETE_OBJECT_TAGGING, + [], + plugins, + ) + + @_overload + def delete_public_access_block( + self, + request: _models.DeletePublicAccessBlockInput + | _models.DeletePublicAccessBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePublicAccessBlockOutput: ... + + @_overload def delete_public_access_block( - self, input: DeletePublicAccessBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePublicAccessBlockInputDict], ) -> DeletePublicAccessBlockOutput: """ Note: @@ -3018,8 +3496,6 @@ def delete_public_access_block( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `DeletePublicAccessBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3029,10 +3505,33 @@ def delete_public_access_block( Returns: An instance of `DeletePublicAccessBlockOutput`. """ - return self._invoke(input, _models.DELETE_PUBLIC_ACCESS_BLOCK, [], plugins) + def delete_public_access_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePublicAccessBlockOutput: + return self._invoke( + self._select_input(_models.DELETE_PUBLIC_ACCESS_BLOCK, args, kwargs), + _models.DELETE_PUBLIC_ACCESS_BLOCK, + [], + plugins, + ) + + @_overload + def get_bucket_abac( + self, + request: _models.GetBucketAbacInput | _models.GetBucketAbacInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketAbacOutput: ... + + @_overload def get_bucket_abac( - self, input: GetBucketAbacInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketAbacInputDict], ) -> GetBucketAbacOutput: """ Returns the attribute-based access control (ABAC) property of the @@ -3042,8 +3541,6 @@ def get_bucket_abac( buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html). Args: - input: - An instance of `GetBucketAbacInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3053,12 +3550,34 @@ def get_bucket_abac( Returns: An instance of `GetBucketAbacOutput`. """ - return self._invoke(input, _models.GET_BUCKET_ABAC, [], plugins) + def get_bucket_abac( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketAbacOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_ABAC, args, kwargs), + _models.GET_BUCKET_ABAC, + [], + plugins, + ) + + @_overload def get_bucket_accelerate_configuration( self, - input: GetBucketAccelerateConfigurationInput, + request: _models.GetBucketAccelerateConfigurationInput + | _models.GetBucketAccelerateConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetBucketAccelerateConfigurationOutput: ... + + @_overload + def get_bucket_accelerate_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketAccelerateConfigurationInputDict], ) -> GetBucketAccelerateConfigurationOutput: """ Note: @@ -3104,8 +3623,6 @@ def get_bucket_accelerate_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketAccelerateConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3115,12 +3632,35 @@ def get_bucket_accelerate_configuration( Returns: An instance of `GetBucketAccelerateConfigurationOutput`. """ + + def get_bucket_accelerate_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketAccelerateConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_ACCELERATE_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_ACCELERATE_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_ACCELERATE_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_acl( + self, + request: _models.GetBucketAclInput | _models.GetBucketAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketAclOutput: ... + + @_overload def get_bucket_acl( - self, input: GetBucketAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketAclInputDict], ) -> GetBucketAclOutput: """ Note: @@ -3161,8 +3701,6 @@ def get_bucket_acl( - [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html) Args: - input: - An instance of `GetBucketAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3172,12 +3710,34 @@ def get_bucket_acl( Returns: An instance of `GetBucketAclOutput`. """ - return self._invoke(input, _models.GET_BUCKET_ACL, [], plugins) + def get_bucket_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketAclOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_ACL, args, kwargs), + _models.GET_BUCKET_ACL, + [], + plugins, + ) + + @_overload + def get_bucket_analytics_configuration( + self, + request: _models.GetBucketAnalyticsConfigurationInput + | _models.GetBucketAnalyticsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketAnalyticsConfigurationOutput: ... + + @_overload def get_bucket_analytics_configuration( self, - input: GetBucketAnalyticsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketAnalyticsConfigurationInputDict], ) -> GetBucketAnalyticsConfigurationOutput: """ Note: @@ -3216,8 +3776,6 @@ def get_bucket_analytics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketAnalyticsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3227,12 +3785,35 @@ def get_bucket_analytics_configuration( Returns: An instance of `GetBucketAnalyticsConfigurationOutput`. """ + + def get_bucket_analytics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketAnalyticsConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_ANALYTICS_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_ANALYTICS_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_ANALYTICS_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_cors( + self, + request: _models.GetBucketCorsInput | _models.GetBucketCorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketCorsOutput: ... + + @_overload def get_bucket_cors( - self, input: GetBucketCorsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketCorsInputDict], ) -> GetBucketCorsOutput: """ Note: @@ -3271,8 +3852,6 @@ def get_bucket_cors( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketCorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3282,10 +3861,34 @@ def get_bucket_cors( Returns: An instance of `GetBucketCorsOutput`. """ - return self._invoke(input, _models.GET_BUCKET_CORS, [], plugins) + def get_bucket_cors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketCorsOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_CORS, args, kwargs), + _models.GET_BUCKET_CORS, + [], + plugins, + ) + + @_overload + def get_bucket_encryption( + self, + request: _models.GetBucketEncryptionInput + | _models.GetBucketEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketEncryptionOutput: ... + + @_overload def get_bucket_encryption( - self, input: GetBucketEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketEncryptionInputDict], ) -> GetBucketEncryptionOutput: """ Returns the default encryption configuration for an Amazon S3 bucket. By @@ -3312,30 +3915,31 @@ def get_bucket_encryption( Permissions - : - **General purpose bucket permissions** - The - `s3:GetEncryptionConfiguration` permission is required in a policy. - The bucket owner has this permission by default. The bucket owner - can grant this permission to others. For more information about - permissions, see [Permissions Related to Bucket - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + : - **General purpose bucket permissions** - The + `s3:GetEncryptionConfiguration` permission is required in a + policy. The bucket owner has this permission by default. The + bucket owner can grant this permission to others. For more + information about permissions, see [Permissions Related to Bucket + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetEncryptionConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - To grant access to this API + operation, you must have the + `s3express:GetEncryptionConfiguration` permission in an IAM + identity-based policy instead of a bucket policy. Cross-account + access to this API operation isn't supported. This operation can + only be performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `GetBucketEncryption`: @@ -3349,8 +3953,6 @@ def get_bucket_encryption( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3360,12 +3962,34 @@ def get_bucket_encryption( Returns: An instance of `GetBucketEncryptionOutput`. """ - return self._invoke(input, _models.GET_BUCKET_ENCRYPTION, [], plugins) + def get_bucket_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketEncryptionOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_ENCRYPTION, args, kwargs), + _models.GET_BUCKET_ENCRYPTION, + [], + plugins, + ) + + @_overload def get_bucket_intelligent_tiering_configuration( self, - input: GetBucketIntelligentTieringConfigurationInput, + request: _models.GetBucketIntelligentTieringConfigurationInput + | _models.GetBucketIntelligentTieringConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetBucketIntelligentTieringConfigurationOutput: ... + + @_overload + def get_bucket_intelligent_tiering_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketIntelligentTieringConfigurationInputDict], ) -> GetBucketIntelligentTieringConfigurationOutput: """ Note: @@ -3408,8 +4032,6 @@ def get_bucket_intelligent_tiering_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketIntelligentTieringConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3419,14 +4041,36 @@ def get_bucket_intelligent_tiering_configuration( Returns: An instance of `GetBucketIntelligentTieringConfigurationOutput`. """ + + def get_bucket_intelligent_tiering_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketIntelligentTieringConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_inventory_configuration( + self, + request: _models.GetBucketInventoryConfigurationInput + | _models.GetBucketInventoryConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketInventoryConfigurationOutput: ... + + @_overload def get_bucket_inventory_configuration( self, - input: GetBucketInventoryConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketInventoryConfigurationInputDict], ) -> GetBucketInventoryConfigurationOutput: """ Returns an S3 Inventory configuration (identified by the inventory @@ -3448,35 +4092,35 @@ def get_bucket_inventory_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:GetInventoryConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:GetInventoryConfiguration` permission is required in a policy. - For more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:GetInventoryConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetInventoryConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:GetInventoryConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetInventoryConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about the Amazon S3 inventory feature, see [Amazon S3 Inventory](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html). @@ -3496,8 +4140,6 @@ def get_bucket_inventory_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketInventoryConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3507,14 +4149,36 @@ def get_bucket_inventory_configuration( Returns: An instance of `GetBucketInventoryConfigurationOutput`. """ + + def get_bucket_inventory_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketInventoryConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_INVENTORY_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_INVENTORY_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_INVENTORY_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_lifecycle_configuration( + self, + request: _models.GetBucketLifecycleConfigurationInput + | _models.GetBucketLifecycleConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketLifecycleConfigurationOutput: ... + + @_overload def get_bucket_lifecycle_configuration( self, - input: GetBucketLifecycleConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketLifecycleConfigurationInputDict], ) -> GetBucketLifecycleConfigurationOutput: """ Returns the lifecycle configuration information set on the bucket. For @@ -3537,50 +4201,51 @@ def get_bucket_lifecycle_configuration( Permissions - : - **General purpose bucket permissions** - By default, all Amazon S3 - resources are private, including buckets, objects, and related - subresources (for example, lifecycle configuration and website - configuration). Only the resource owner (that is, the Amazon Web - Services account that created it) can access the resource. The - resource owner can optionally grant access permissions to others by - writing an access policy. For this operation, a user must have the - `s3:GetLifecycleConfiguration` permission. - - For more information about permissions, see [Managing Access - Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + : - **General purpose bucket permissions** - By default, all Amazon S3 + resources are private, including buckets, objects, and related + subresources (for example, lifecycle configuration and website + configuration). Only the resource owner (that is, the Amazon Web + Services account that created it) can access the resource. The + resource owner can optionally grant access permissions to others + by writing an access policy. For this operation, a user must have + the `s3:GetLifecycleConfiguration` permission. - - **Directory bucket permissions** - You must have the - `s3express:GetLifecycleConfiguration` permission in an IAM - identity-based policy to use this operation. Cross-account access to - this API operation isn't supported. The resource owner can - optionally grant access permissions to others by creating a role or - user for them as long as they are within the same account as the - owner and resource. - - For more information about directory bucket policies and - permissions, see [Authorizing Regional endpoint APIs with - IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + For more information about permissions, see [Managing Access + Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - Note: + - **Directory bucket permissions** - You must have the + `s3express:GetLifecycleConfiguration` permission in an IAM + identity-based policy to use this operation. Cross-account access + to this API operation isn't supported. The resource owner can + optionally grant access permissions to others by creating a role + or user for them as long as they are within the same account as + the owner and resource. + + For more information about directory bucket policies and + permissions, see [Authorizing Regional endpoint APIs with + IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. + + Note: **Directory buckets** - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. Virtual-hosted-style requests aren't supported. For more - information about endpoints in Availability Zones, see [Regional and - Zonal endpoints for directory buckets in Availability + information about endpoints in Availability Zones, see [Regional + and Zonal endpoints for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints - in Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about + endpoints in Local Zones, see [Concepts for directory buckets in + Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region`*`.amazonaws.com`. `GetBucketLifecycleConfiguration` has the following special error: @@ -3607,8 +4272,6 @@ def get_bucket_lifecycle_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketLifecycleConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3618,12 +4281,35 @@ def get_bucket_lifecycle_configuration( Returns: An instance of `GetBucketLifecycleConfigurationOutput`. """ + + def get_bucket_lifecycle_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketLifecycleConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_LIFECYCLE_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_LIFECYCLE_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_LIFECYCLE_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_location( + self, + request: _models.GetBucketLocationInput | _models.GetBucketLocationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketLocationOutput: ... + + @_overload def get_bucket_location( - self, input: GetBucketLocationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketLocationInputDict], ) -> GetBucketLocationOutput: """ Warning: @@ -3675,8 +4361,6 @@ def get_bucket_location( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketLocationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3686,10 +4370,33 @@ def get_bucket_location( Returns: An instance of `GetBucketLocationOutput`. """ - return self._invoke(input, _models.GET_BUCKET_LOCATION, [], plugins) + def get_bucket_location( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketLocationOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_LOCATION, args, kwargs), + _models.GET_BUCKET_LOCATION, + [], + plugins, + ) + + @_overload + def get_bucket_logging( + self, + request: _models.GetBucketLoggingInput | _models.GetBucketLoggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketLoggingOutput: ... + + @_overload def get_bucket_logging( - self, input: GetBucketLoggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketLoggingInputDict], ) -> GetBucketLoggingOutput: """ Note: @@ -3710,8 +4417,6 @@ def get_bucket_logging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketLoggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3721,12 +4426,34 @@ def get_bucket_logging( Returns: An instance of `GetBucketLoggingOutput`. """ - return self._invoke(input, _models.GET_BUCKET_LOGGING, [], plugins) + def get_bucket_logging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketLoggingOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_LOGGING, args, kwargs), + _models.GET_BUCKET_LOGGING, + [], + plugins, + ) + + @_overload + def get_bucket_metadata_configuration( + self, + request: _models.GetBucketMetadataConfigurationInput + | _models.GetBucketMetadataConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketMetadataConfigurationOutput: ... + + @_overload def get_bucket_metadata_configuration( self, - input: GetBucketMetadataConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketMetadataConfigurationInputDict], ) -> GetBucketMetadataConfigurationOutput: """ Retrieves the S3 Metadata configuration for a general purpose bucket. @@ -3742,13 +4469,13 @@ def get_bucket_metadata_configuration( Permissions - : To use this operation, you must have the - `s3:GetBucketMetadataTableConfiguration` permission. For more - information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:GetBucketMetadataTableConfiguration` permission. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - Note: + Note: The IAM policy action name is the same for the V1 and V2 API operations. @@ -3769,8 +4496,6 @@ def get_bucket_metadata_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketMetadataConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3780,14 +4505,34 @@ def get_bucket_metadata_configuration( Returns: An instance of `GetBucketMetadataConfigurationOutput`. """ + + def get_bucket_metadata_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketMetadataConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_METADATA_CONFIGURATION, [], plugins + self._select_input(_models.GET_BUCKET_METADATA_CONFIGURATION, args, kwargs), + _models.GET_BUCKET_METADATA_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_metadata_table_configuration( + self, + request: _models.GetBucketMetadataTableConfigurationInput + | _models.GetBucketMetadataTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketMetadataTableConfigurationOutput: ... + + @_overload def get_bucket_metadata_table_configuration( self, - input: GetBucketMetadataTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketMetadataTableConfigurationInputDict], ) -> GetBucketMetadataTableConfigurationOutput: """ Warning: @@ -3821,11 +4566,11 @@ def get_bucket_metadata_table_configuration( Permissions - : To use this operation, you must have the - `s3:GetBucketMetadataTableConfiguration` permission. For more - information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:GetBucketMetadataTableConfiguration` permission. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. The following operations are related to `GetBucketMetadataTableConfiguration`: @@ -3840,8 +4585,6 @@ def get_bucket_metadata_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketMetadataTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3851,14 +4594,36 @@ def get_bucket_metadata_table_configuration( Returns: An instance of `GetBucketMetadataTableConfigurationOutput`. """ + + def get_bucket_metadata_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketMetadataTableConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_METADATA_TABLE_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_METADATA_TABLE_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_METADATA_TABLE_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_metrics_configuration( + self, + request: _models.GetBucketMetricsConfigurationInput + | _models.GetBucketMetricsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketMetricsConfigurationOutput: ... + + @_overload def get_bucket_metrics_configuration( self, - input: GetBucketMetricsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketMetricsConfigurationInputDict], ) -> GetBucketMetricsConfigurationOutput: """ Gets a metrics configuration (specified by the metrics configuration ID) @@ -3881,37 +4646,37 @@ def get_bucket_metrics_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:GetMetricsConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:GetMetricsConfiguration` permission is required in a policy. For - more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:GetMetricsConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetMetricsConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:GetMetricsConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetMetricsConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about CloudWatch request metrics for Amazon S3, see [Monitoring Metrics with Amazon @@ -3934,8 +4699,6 @@ def get_bucket_metrics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketMetricsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -3945,14 +4708,34 @@ def get_bucket_metrics_configuration( Returns: An instance of `GetBucketMetricsConfigurationOutput`. """ + + def get_bucket_metrics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketMetricsConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_METRICS_CONFIGURATION, [], plugins + self._select_input(_models.GET_BUCKET_METRICS_CONFIGURATION, args, kwargs), + _models.GET_BUCKET_METRICS_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_notification_configuration( + self, + request: _models.GetBucketNotificationConfigurationInput + | _models.GetBucketNotificationConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketNotificationConfigurationOutput: ... + + @_overload def get_bucket_notification_configuration( self, - input: GetBucketNotificationConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketNotificationConfigurationInputDict], ) -> GetBucketNotificationConfigurationOutput: """ Note: @@ -3995,8 +4778,6 @@ def get_bucket_notification_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketNotificationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4006,14 +4787,36 @@ def get_bucket_notification_configuration( Returns: An instance of `GetBucketNotificationConfigurationOutput`. """ + + def get_bucket_notification_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketNotificationConfigurationOutput: return self._invoke( - input, _models.GET_BUCKET_NOTIFICATION_CONFIGURATION, [], plugins + self._select_input( + _models.GET_BUCKET_NOTIFICATION_CONFIGURATION, args, kwargs + ), + _models.GET_BUCKET_NOTIFICATION_CONFIGURATION, + [], + plugins, ) + @_overload + def get_bucket_ownership_controls( + self, + request: _models.GetBucketOwnershipControlsInput + | _models.GetBucketOwnershipControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketOwnershipControlsOutput: ... + + @_overload def get_bucket_ownership_controls( self, - input: GetBucketOwnershipControlsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketOwnershipControlsInputDict], ) -> GetBucketOwnershipControlsOutput: """ Note: @@ -4053,8 +4856,6 @@ def get_bucket_ownership_controls( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketOwnershipControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4064,10 +4865,33 @@ def get_bucket_ownership_controls( Returns: An instance of `GetBucketOwnershipControlsOutput`. """ - return self._invoke(input, _models.GET_BUCKET_OWNERSHIP_CONTROLS, [], plugins) + def get_bucket_ownership_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketOwnershipControlsOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_OWNERSHIP_CONTROLS, args, kwargs), + _models.GET_BUCKET_OWNERSHIP_CONTROLS, + [], + plugins, + ) + + @_overload + def get_bucket_policy( + self, + request: _models.GetBucketPolicyInput | _models.GetBucketPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketPolicyOutput: ... + + @_overload def get_bucket_policy( - self, input: GetBucketPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketPolicyInputDict], ) -> GetBucketPolicyOutput: """ Returns the policy of a specified bucket. @@ -4088,60 +4912,61 @@ def get_bucket_policy( Permissions - : If you are using an identity other than the root user of the Amazon - Web Services account that owns the bucket, the calling identity must - both have the `GetBucketPolicy` permissions on the specified bucket - and belong to the bucket owner's account in order to use this - operation. - - If you don't have `GetBucketPolicy` permissions, Amazon S3 returns a - `403 Access Denied` error. If you have the correct permissions, but - you're not using an identity that belongs to the bucket owner's - account, Amazon S3 returns a `405 Method Not Allowed` error. - - Warning: - To ensure that bucket owners don't inadvertently lock themselves out - of their own buckets, the root principal in a bucket owner's Amazon - Web Services account can perform the `GetBucketPolicy`, - `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if their - bucket policy explicitly denies the root principal's access. Bucket - owner root principals can only be blocked from performing these API - actions by VPC endpoint policies and Amazon Web Services Organizations - policies. - - **General purpose bucket permissions** - The `s3:GetBucketPolicy` - permission is required in a policy. For more information about - general purpose buckets bucket policies, see [Using Bucket Policies - and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : If you are using an identity other than the root user of the Amazon + Web Services account that owns the bucket, the calling identity must + both have the `GetBucketPolicy` permissions on the specified bucket + and belong to the bucket owner's account in order to use this + operation. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetBucketPolicy` permission - in an IAM identity-based policy instead of a bucket policy. - Cross-account access to this API operation isn't supported. This - operation can only be performed by the Amazon Web Services account - that owns the resource. For more information about directory bucket - policies and permissions, see [Amazon Web Services Identity and - Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + If you don't have `GetBucketPolicy` permissions, Amazon S3 returns + a `403 Access Denied` error. If you have the correct permissions, + but you're not using an identity that belongs to the bucket + owner's account, Amazon S3 returns a `405 Method Not Allowed` + error. + + Warning: + To ensure that bucket owners don't inadvertently lock themselves + out of their own buckets, the root principal in a bucket owner's + Amazon Web Services account can perform the `GetBucketPolicy`, + `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if + their bucket policy explicitly denies the root principal's access. + Bucket owner root principals can only be blocked from performing + these API actions by VPC endpoint policies and Amazon Web Services + Organizations policies. + - **General purpose bucket permissions** - The `s3:GetBucketPolicy` + permission is required in a policy. For more information about + general purpose buckets bucket policies, see [Using Bucket + Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetBucketPolicy` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. Example bucket policies - : **General purpose buckets example bucket policies** - See [Bucket - policy - examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) - in the *Amazon S3 User Guide*. + : **General purpose buckets example bucket policies** - See [Bucket + policy + examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) + in the *Amazon S3 User Guide*. - **Directory bucket example bucket policies** - See [Example bucket - policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - in the *Amazon S3 User Guide*. + **Directory bucket example bucket policies** - See [Example bucket + policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following action is related to `GetBucketPolicy`: @@ -4153,8 +4978,6 @@ def get_bucket_policy( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4164,10 +4987,34 @@ def get_bucket_policy( Returns: An instance of `GetBucketPolicyOutput`. """ - return self._invoke(input, _models.GET_BUCKET_POLICY, [], plugins) + def get_bucket_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketPolicyOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_POLICY, args, kwargs), + _models.GET_BUCKET_POLICY, + [], + plugins, + ) + + @_overload def get_bucket_policy_status( - self, input: GetBucketPolicyStatusInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketPolicyStatusInput + | _models.GetBucketPolicyStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketPolicyStatusOutput: ... + + @_overload + def get_bucket_policy_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketPolicyStatusInputDict], ) -> GetBucketPolicyStatusOutput: """ Note: @@ -4200,8 +5047,6 @@ def get_bucket_policy_status( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketPolicyStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4211,10 +5056,34 @@ def get_bucket_policy_status( Returns: An instance of `GetBucketPolicyStatusOutput`. """ - return self._invoke(input, _models.GET_BUCKET_POLICY_STATUS, [], plugins) + def get_bucket_policy_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketPolicyStatusOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_POLICY_STATUS, args, kwargs), + _models.GET_BUCKET_POLICY_STATUS, + [], + plugins, + ) + + @_overload def get_bucket_replication( - self, input: GetBucketReplicationInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketReplicationInput + | _models.GetBucketReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketReplicationOutput: ... + + @_overload + def get_bucket_replication( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketReplicationInputDict], ) -> GetBucketReplicationOutput: """ Note: @@ -4256,8 +5125,6 @@ def get_bucket_replication( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4267,10 +5134,34 @@ def get_bucket_replication( Returns: An instance of `GetBucketReplicationOutput`. """ - return self._invoke(input, _models.GET_BUCKET_REPLICATION, [], plugins) + def get_bucket_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketReplicationOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_REPLICATION, args, kwargs), + _models.GET_BUCKET_REPLICATION, + [], + plugins, + ) + + @_overload def get_bucket_request_payment( - self, input: GetBucketRequestPaymentInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketRequestPaymentInput + | _models.GetBucketRequestPaymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketRequestPaymentOutput: ... + + @_overload + def get_bucket_request_payment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketRequestPaymentInputDict], ) -> GetBucketRequestPaymentOutput: """ Note: @@ -4291,8 +5182,6 @@ def get_bucket_request_payment( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketRequestPaymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4302,10 +5191,33 @@ def get_bucket_request_payment( Returns: An instance of `GetBucketRequestPaymentOutput`. """ - return self._invoke(input, _models.GET_BUCKET_REQUEST_PAYMENT, [], plugins) + def get_bucket_request_payment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketRequestPaymentOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_REQUEST_PAYMENT, args, kwargs), + _models.GET_BUCKET_REQUEST_PAYMENT, + [], + plugins, + ) + + @_overload def get_bucket_tagging( - self, input: GetBucketTaggingInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketTaggingInput | _models.GetBucketTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketTaggingOutput: ... + + @_overload + def get_bucket_tagging( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketTaggingInputDict], ) -> GetBucketTaggingOutput: """ Note: @@ -4335,8 +5247,6 @@ def get_bucket_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4346,10 +5256,34 @@ def get_bucket_tagging( Returns: An instance of `GetBucketTaggingOutput`. """ - return self._invoke(input, _models.GET_BUCKET_TAGGING, [], plugins) + def get_bucket_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketTaggingOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_TAGGING, args, kwargs), + _models.GET_BUCKET_TAGGING, + [], + plugins, + ) + + @_overload def get_bucket_versioning( - self, input: GetBucketVersioningInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketVersioningInput + | _models.GetBucketVersioningInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketVersioningOutput: ... + + @_overload + def get_bucket_versioning( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketVersioningInputDict], ) -> GetBucketVersioningOutput: """ Note: @@ -4378,8 +5312,6 @@ def get_bucket_versioning( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketVersioningInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4389,10 +5321,33 @@ def get_bucket_versioning( Returns: An instance of `GetBucketVersioningOutput`. """ - return self._invoke(input, _models.GET_BUCKET_VERSIONING, [], plugins) + def get_bucket_versioning( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketVersioningOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_VERSIONING, args, kwargs), + _models.GET_BUCKET_VERSIONING, + [], + plugins, + ) + + @_overload def get_bucket_website( - self, input: GetBucketWebsiteInput, plugins: list[Plugin] | None = None + self, + request: _models.GetBucketWebsiteInput | _models.GetBucketWebsiteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetBucketWebsiteOutput: ... + + @_overload + def get_bucket_website( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetBucketWebsiteInputDict], ) -> GetBucketWebsiteOutput: """ Note: @@ -4422,8 +5377,6 @@ def get_bucket_website( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetBucketWebsiteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4433,10 +5386,33 @@ def get_bucket_website( Returns: An instance of `GetBucketWebsiteOutput`. """ - return self._invoke(input, _models.GET_BUCKET_WEBSITE, [], plugins) + def get_bucket_website( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetBucketWebsiteOutput: + return self._invoke( + self._select_input(_models.GET_BUCKET_WEBSITE, args, kwargs), + _models.GET_BUCKET_WEBSITE, + [], + plugins, + ) + + @_overload def get_object( - self, input: GetObjectInput, plugins: list[Plugin] | None = None + self, + request: _models.GetObjectInput | _models.GetObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectOutput: ... + + @_overload + def get_object( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectInputDict], ) -> GetObjectOutput: """ Retrieves an object from Amazon S3. @@ -4474,136 +5450,138 @@ def get_object( Permissions - : - **General purpose bucket permissions** - You must have the required - permissions in a policy. To use `GetObject`, you must have the - `READ` access to the object (or version). If you grant `READ` access - to the anonymous user, the `GetObject` operation returns the object - without using an authorization header. For more information, see - [Specifying permissions in a - policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) - in the *Amazon S3 User Guide*. - - If you include a `versionId` in your request header, you must have - the `s3:GetObjectVersion` permission to access a specific version of - an object. The `s3:GetObject` permission is not required in this - scenario. - - If you request the current version of an object without a specific - `versionId` in the request header, only the `s3:GetObject` - permission is required. The `s3:GetObjectVersion` permission is not - required in this scenario. - - If the object that you request doesn't exist, the error that Amazon - S3 returns depends on whether you also have the `s3:ListBucket` - permission. - - - If you have the `s3:ListBucket` permission on the bucket, Amazon - S3 returns an HTTP status code `404 Not Found` error. - - - If you don't have the `s3:ListBucket` permission, Amazon S3 - returns an HTTP status code `403 Access Denied` error. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + : - **General purpose bucket permissions** - You must have the + required permissions in a policy. To use `GetObject`, you must + have the `READ` access to the object (or version). If you grant + `READ` access to the anonymous user, the `GetObject` operation + returns the object without using an authorization header. For more + information, see [Specifying permissions in a + policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) + in the *Amazon S3 User Guide*. - If the object is encrypted using SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + If you include a `versionId` in your request header, you must have + the `s3:GetObjectVersion` permission to access a specific version + of an object. The `s3:GetObject` permission is not required in + this scenario. + + If you request the current version of an object without a specific + `versionId` in the request header, only the `s3:GetObject` + permission is required. The `s3:GetObjectVersion` permission is + not required in this scenario. + + If the object that you request doesn't exist, the error that + Amazon S3 returns depends on whether you also have the + `s3:ListBucket` permission. + + - If you have the `s3:ListBucket` permission on the bucket, Amazon + S3 returns an HTTP status code `404 Not Found` error. + + - If you don't have the `s3:ListBucket` permission, Amazon S3 + returns an HTTP status code `403 Access Denied` error. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted using SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Storage classes - : If the object you are retrieving is stored in the S3 Glacier Flexible - Retrieval storage class, the S3 Glacier Deep Archive storage class, - the S3 Intelligent-Tiering Archive Access tier, or the S3 - Intelligent-Tiering Deep Archive Access tier, before you can retrieve - the object you must first restore a copy using - [RestoreObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html). - Otherwise, this operation returns an `InvalidObjectState` error. For - information about restoring archived objects, see [Restoring Archived - Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) - in the *Amazon S3 User Guide*. + : If the object you are retrieving is stored in the S3 Glacier + Flexible Retrieval storage class, the S3 Glacier Deep Archive + storage class, the S3 Intelligent-Tiering Archive Access tier, or + the S3 Intelligent-Tiering Deep Archive Access tier, before you can + retrieve the object you must first restore a copy using + [RestoreObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html). + Otherwise, this operation returns an `InvalidObjectState` error. For + information about restoring archived objects, see [Restoring + Archived + Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) + in the *Amazon S3 User Guide*. - **Directory buckets** - Directory buckets only support - `EXPRESS_ONEZONE` (the S3 Express One Zone storage class) in - Availability Zones and `ONEZONE_IA` (the S3 One Zone-Infrequent Access - storage class) in Dedicated Local Zones. Unsupported storage class - values won't write a destination object and will respond with the - HTTP status code `400 Bad Request`. + **Directory buckets** - Directory buckets only support + `EXPRESS_ONEZONE` (the S3 Express One Zone storage class) in + Availability Zones and `ONEZONE_IA` (the S3 One Zone-Infrequent + Access storage class) in Dedicated Local Zones. Unsupported storage + class values won't write a destination object and will respond with + the HTTP status code `400 Bad Request`. Encryption - : Encryption request headers, like `x-amz-server-side-encryption`, - should not be sent for the `GetObject` requests, if your object uses - server-side encryption with Amazon S3 managed encryption keys - (SSE-S3), server-side encryption with Key Management Service (KMS) - keys (SSE-KMS), or dual-layer server-side encryption with Amazon Web - Services KMS keys (DSSE-KMS). If you include the header in your - `GetObject` requests for the object that uses these types of keys, - you'll get an HTTP `400 Bad Request` error. - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: SSE-S3 and SSE-KMS. - SSE-C isn't supported. For more information, see [Protecting data - with server-side - encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) - in the *Amazon S3 User Guide*. + : Encryption request headers, like `x-amz-server-side-encryption`, + should not be sent for the `GetObject` requests, if your object uses + server-side encryption with Amazon S3 managed encryption keys + (SSE-S3), server-side encryption with Key Management Service (KMS) + keys (SSE-KMS), or dual-layer server-side encryption with Amazon Web + Services KMS keys (DSSE-KMS). If you include the header in your + `GetObject` requests for the object that uses these types of keys, + you'll get an HTTP `400 Bad Request` error. + + **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: SSE-S3 and SSE-KMS. + SSE-C isn't supported. For more information, see [Protecting data + with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. Overriding response header values through the request - : There are times when you want to override certain response header - values of a `GetObject` response. For example, you might override the - `Content-Disposition` response header value through your `GetObject` - request. + : There are times when you want to override certain response header + values of a `GetObject` response. For example, you might override + the `Content-Disposition` response header value through your + `GetObject` request. - You can override values for a set of response headers. These modified - response header values are included only in a successful response, - that is, when the HTTP status code `200 OK` is returned. The headers - you can override using the following query parameters in the request - are a subset of the headers that Amazon S3 accepts when you create an - object. + You can override values for a set of response headers. These + modified response header values are included only in a successful + response, that is, when the HTTP status code `200 OK` is returned. + The headers you can override using the following query parameters in + the request are a subset of the headers that Amazon S3 accepts when + you create an object. - The response headers that you can override for the `GetObject` - response are `Cache-Control`, `Content-Disposition`, - `Content-Encoding`, `Content-Language`, `Content-Type`, and `Expires`. + The response headers that you can override for the `GetObject` + response are `Cache-Control`, `Content-Disposition`, + `Content-Encoding`, `Content-Language`, `Content-Type`, and + `Expires`. - To override values for a set of response headers in the `GetObject` - response, you can use the following query parameters in the request. + To override values for a set of response headers in the `GetObject` + response, you can use the following query parameters in the request. - - `response-cache-control` + - `response-cache-control` - - `response-content-disposition` + - `response-content-disposition` - - `response-content-encoding` + - `response-content-encoding` - - `response-content-language` + - `response-content-language` - - `response-content-type` + - `response-content-type` - - `response-expires` + - `response-expires` - Note: + Note: When you use these parameters, you must sign the request by using either an Authorization header or a presigned URL. These parameters cannot be used with an unsigned (anonymous) request. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `GetObject`: @@ -4617,8 +5595,6 @@ def get_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4628,10 +5604,33 @@ def get_object( Returns: An instance of `GetObjectOutput`. """ - return self._invoke(input, _models.GET_OBJECT, [], plugins) + def get_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT, args, kwargs), + _models.GET_OBJECT, + [], + plugins, + ) + + @_overload + def get_object_acl( + self, + request: _models.GetObjectAclInput | _models.GetObjectAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectAclOutput: ... + + @_overload def get_object_acl( - self, input: GetObjectAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectAclInputDict], ) -> GetObjectAclOutput: """ Note: @@ -4675,8 +5674,6 @@ def get_object_acl( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4686,10 +5683,34 @@ def get_object_acl( Returns: An instance of `GetObjectAclOutput`. """ - return self._invoke(input, _models.GET_OBJECT_ACL, [], plugins) + def get_object_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectAclOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT_ACL, args, kwargs), + _models.GET_OBJECT_ACL, + [], + plugins, + ) + + @_overload + def get_object_annotation( + self, + request: _models.GetObjectAnnotationInput + | _models.GetObjectAnnotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectAnnotationOutput: ... + + @_overload def get_object_annotation( - self, input: GetObjectAnnotationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectAnnotationInputDict], ) -> GetObjectAnnotationOutput: """ Retrieves an annotation from an Amazon S3 object. To use this operation, @@ -4713,8 +5734,6 @@ def get_object_annotation( - [DeleteObjectAnnotation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectAnnotation.html) Args: - input: - An instance of `GetObjectAnnotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4724,10 +5743,34 @@ def get_object_annotation( Returns: An instance of `GetObjectAnnotationOutput`. """ - return self._invoke(input, _models.GET_OBJECT_ANNOTATION, [], plugins) + def get_object_annotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectAnnotationOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT_ANNOTATION, args, kwargs), + _models.GET_OBJECT_ANNOTATION, + [], + plugins, + ) + + @_overload + def get_object_attributes( + self, + request: _models.GetObjectAttributesInput + | _models.GetObjectAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectAttributesOutput: ... + + @_overload def get_object_attributes( - self, input: GetObjectAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectAttributesInputDict], ) -> GetObjectAttributesOutput: """ Retrieves all of the metadata from an object without returning the @@ -4754,143 +5797,144 @@ def get_object_attributes( Permissions - : - **General purpose bucket permissions** - To use - `GetObjectAttributes`, you must have READ access to the object. - - The other permissions that you need to use this operation depend on - whether the bucket is versioned and if a version ID is passed in the - `GetObjectAttributes` request. - - - If you pass a version ID in your request, you need both the - `s3:GetObjectVersion` and `s3:GetObjectVersionAttributes` - permissions. - - - If you do not pass a version ID in your request, you need the - `s3:GetObject` and `s3:GetObjectAttributes` permissions. + : - **General purpose bucket permissions** - To use + `GetObjectAttributes`, you must have READ access to the object. - For more information, see [Specifying Permissions in a - Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) - in the *Amazon S3 User Guide*. - - If the object that you request does not exist, the error Amazon S3 - returns depends on whether you also have the `s3:ListBucket` - permission. + The other permissions that you need to use this operation depend + on whether the bucket is versioned and if a version ID is passed + in the `GetObjectAttributes` request. - - If you have the `s3:ListBucket` permission on the bucket, Amazon - S3 returns an HTTP status code `404 Not Found` (\"no such key\") - error. + - If you pass a version ID in your request, you need both the + `s3:GetObjectVersion` and `s3:GetObjectVersionAttributes` + permissions. - - If you don't have the `s3:ListBucket` permission, Amazon S3 - returns an HTTP status code `403 Forbidden` (\"access denied\") - error. + - If you do not pass a version ID in your request, you need the + `s3:GetObject` and `s3:GetObjectAttributes` permissions. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + For more information, see [Specifying Permissions in a + Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) + in the *Amazon S3 User Guide*. - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + If the object that you request does not exist, the error Amazon S3 + returns depends on whether you also have the `s3:ListBucket` + permission. + + - If you have the `s3:ListBucket` permission on the bucket, Amazon + S3 returns an HTTP status code `404 Not Found` (\"no such key\") + error. + + - If you don't have the `s3:ListBucket` permission, Amazon S3 + returns an HTTP status code `403 Forbidden` (\"access denied\") + error. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Encryption - : Note: + : Note: Encryption request headers, like `x-amz-server-side-encryption`, - should not be sent for `HEAD` requests if your object uses server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), - dual-layer server-side encryption with Amazon Web Services KMS keys - (DSSE-KMS), or server-side encryption with Amazon S3 managed - encryption keys (SSE-S3). The `x-amz-server-side-encryption` header is - used when you `PUT` an object to S3 and want to specify the encryption - method. If you include this header in a `GET` request for an object - that uses these types of keys, you'll get an HTTP `400 Bad Request` - error. It's because the encryption method can't be changed when you - retrieve the object. - If you encrypted an object when you stored the object in Amazon S3 by - using server-side encryption with customer-provided encryption keys - (SSE-C), then when you retrieve the metadata from the object, you must - use the following headers. These headers provide the server with the - encryption key required to retrieve the object's metadata. The - headers are: - - - `x-amz-server-side-encryption-customer-algorithm` - - - `x-amz-server-side-encryption-customer-key` - - - `x-amz-server-side-encryption-customer-key-MD5` - - For more information about SSE-C, see [Server-Side Encryption (Using - Customer-Provided Encryption - Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + should not be sent for `HEAD` requests if your object uses + server-side encryption with Key Management Service (KMS) keys + (SSE-KMS), dual-layer server-side encryption with Amazon Web + Services KMS keys (DSSE-KMS), or server-side encryption with Amazon + S3 managed encryption keys (SSE-S3). The + `x-amz-server-side-encryption` header is used when you `PUT` an + object to S3 and want to specify the encryption method. If you + include this header in a `GET` request for an object that uses these + types of keys, you'll get an HTTP `400 Bad Request` error. It's + because the encryption method can't be changed when you retrieve + the object. + If you encrypted an object when you stored the object in Amazon S3 + by using server-side encryption with customer-provided encryption + keys (SSE-C), then when you retrieve the metadata from the object, + you must use the following headers. These headers provide the server + with the encryption key required to retrieve the object's metadata. + The headers are: + + - `x-amz-server-side-encryption-customer-algorithm` + + - `x-amz-server-side-encryption-customer-key` + + - `x-amz-server-side-encryption-customer-key-MD5` + + For more information about SSE-C, see [Server-Side Encryption (Using + Customer-Provided Encryption + Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. - Note: + Note: **Directory bucket permissions** - For directory buckets, there are only two supported options for server-side encryption: server-side encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side encryption with KMS keys (SSE-KMS) (`aws:kms`). We recommend that the bucket's default encryption uses the desired encryption configuration and you don't override the bucket default - encryption in your `CreateSession` requests or `PUT` object requests. - Then, new objects are automatically encrypted with the desired - encryption settings. For more information, see [Protecting data with - server-side + encryption in your `CreateSession` requests or `PUT` object + requests. Then, new objects are automatically encrypted with the + desired encryption settings. For more information, see [Protecting + data with server-side encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) in the *Amazon S3 User Guide*. For more information about the - encryption overriding behaviors in directory buckets, see [Specifying - server-side encryption with KMS for new object + encryption overriding behaviors in directory buckets, see + [Specifying server-side encryption with KMS for new object uploads](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-specifying-kms-encryption.html). Versioning - : **Directory buckets** - S3 Versioning isn't enabled and supported for - directory buckets. For this API operation, only the `null` value of - the version ID is supported by directory buckets. You can only specify - `null` to the `versionId` query parameter in the request. + : **Directory buckets** - S3 Versioning isn't enabled and supported + for directory buckets. For this API operation, only the `null` value + of the version ID is supported by directory buckets. You can only + specify `null` to the `versionId` query parameter in the request. Conditional request headers - : Consider the following when using request headers: + : Consider the following when using request headers: - - If both of the `If-Match` and `If-Unmodified-Since` headers are - present in the request as follows, then Amazon S3 returns the HTTP - status code `200 OK` and the data requested: + - If both of the `If-Match` and `If-Unmodified-Since` headers are + present in the request as follows, then Amazon S3 returns the HTTP + status code `200 OK` and the data requested: - - `If-Match` condition evaluates to `true`. + - `If-Match` condition evaluates to `true`. - - `If-Unmodified-Since` condition evaluates to `false`. + - `If-Unmodified-Since` condition evaluates to `false`. - For more information about conditional requests, see [RFC - 7232](https://tools.ietf.org/html/rfc7232). + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). - - If both of the `If-None-Match` and `If-Modified-Since` headers are - present in the request as follows, then Amazon S3 returns the HTTP - status code `304 Not Modified`: + - If both of the `If-None-Match` and `If-Modified-Since` headers are + present in the request as follows, then Amazon S3 returns the HTTP + status code `304 Not Modified`: - - `If-None-Match` condition evaluates to `false`. + - `If-None-Match` condition evaluates to `false`. - - `If-Modified-Since` condition evaluates to `true`. + - `If-Modified-Since` condition evaluates to `true`. - For more information about conditional requests, see [RFC - 7232](https://tools.ietf.org/html/rfc7232). + For more information about conditional requests, see [RFC + 7232](https://tools.ietf.org/html/rfc7232). HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following actions are related to `GetObjectAttributes`: @@ -4916,8 +5960,6 @@ def get_object_attributes( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4927,10 +5969,33 @@ def get_object_attributes( Returns: An instance of `GetObjectAttributesOutput`. """ - return self._invoke(input, _models.GET_OBJECT_ATTRIBUTES, [], plugins) + def get_object_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectAttributesOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT_ATTRIBUTES, args, kwargs), + _models.GET_OBJECT_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def get_object_legal_hold( + self, + request: _models.GetObjectLegalHoldInput | _models.GetObjectLegalHoldInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectLegalHoldOutput: ... + + @_overload def get_object_legal_hold( - self, input: GetObjectLegalHoldInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectLegalHoldInputDict], ) -> GetObjectLegalHoldOutput: """ Note: @@ -4952,8 +6017,6 @@ def get_object_legal_hold( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectLegalHoldInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -4963,12 +6026,34 @@ def get_object_legal_hold( Returns: An instance of `GetObjectLegalHoldOutput`. """ - return self._invoke(input, _models.GET_OBJECT_LEGAL_HOLD, [], plugins) + def get_object_legal_hold( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectLegalHoldOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT_LEGAL_HOLD, args, kwargs), + _models.GET_OBJECT_LEGAL_HOLD, + [], + plugins, + ) + + @_overload def get_object_lock_configuration( self, - input: GetObjectLockConfigurationInput, + request: _models.GetObjectLockConfigurationInput + | _models.GetObjectLockConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetObjectLockConfigurationOutput: ... + + @_overload + def get_object_lock_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectLockConfigurationInputDict], ) -> GetObjectLockConfigurationOutput: """ Note: @@ -4990,8 +6075,6 @@ def get_object_lock_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectLockConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5001,10 +6084,33 @@ def get_object_lock_configuration( Returns: An instance of `GetObjectLockConfigurationOutput`. """ - return self._invoke(input, _models.GET_OBJECT_LOCK_CONFIGURATION, [], plugins) + def get_object_lock_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectLockConfigurationOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT_LOCK_CONFIGURATION, args, kwargs), + _models.GET_OBJECT_LOCK_CONFIGURATION, + [], + plugins, + ) + + @_overload + def get_object_retention( + self, + request: _models.GetObjectRetentionInput | _models.GetObjectRetentionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectRetentionOutput: ... + + @_overload def get_object_retention( - self, input: GetObjectRetentionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectRetentionInputDict], ) -> GetObjectRetentionOutput: """ Note: @@ -5026,8 +6132,6 @@ def get_object_retention( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectRetentionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5037,10 +6141,33 @@ def get_object_retention( Returns: An instance of `GetObjectRetentionOutput`. """ - return self._invoke(input, _models.GET_OBJECT_RETENTION, [], plugins) + def get_object_retention( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectRetentionOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT_RETENTION, args, kwargs), + _models.GET_OBJECT_RETENTION, + [], + plugins, + ) + + @_overload + def get_object_tagging( + self, + request: _models.GetObjectTaggingInput | _models.GetObjectTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectTaggingOutput: ... + + @_overload def get_object_tagging( - self, input: GetObjectTaggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectTaggingInputDict], ) -> GetObjectTaggingOutput: """ Note: @@ -5076,8 +6203,6 @@ def get_object_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5087,10 +6212,33 @@ def get_object_tagging( Returns: An instance of `GetObjectTaggingOutput`. """ - return self._invoke(input, _models.GET_OBJECT_TAGGING, [], plugins) + def get_object_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectTaggingOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT_TAGGING, args, kwargs), + _models.GET_OBJECT_TAGGING, + [], + plugins, + ) + + @_overload + def get_object_torrent( + self, + request: _models.GetObjectTorrentInput | _models.GetObjectTorrentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetObjectTorrentOutput: ... + + @_overload def get_object_torrent( - self, input: GetObjectTorrentInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetObjectTorrentInputDict], ) -> GetObjectTorrentOutput: """ Note: @@ -5118,8 +6266,6 @@ def get_object_torrent( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetObjectTorrentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5129,10 +6275,34 @@ def get_object_torrent( Returns: An instance of `GetObjectTorrentOutput`. """ - return self._invoke(input, _models.GET_OBJECT_TORRENT, [], plugins) + def get_object_torrent( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetObjectTorrentOutput: + return self._invoke( + self._select_input(_models.GET_OBJECT_TORRENT, args, kwargs), + _models.GET_OBJECT_TORRENT, + [], + plugins, + ) + + @_overload + def get_public_access_block( + self, + request: _models.GetPublicAccessBlockInput + | _models.GetPublicAccessBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetPublicAccessBlockOutput: ... + + @_overload def get_public_access_block( - self, input: GetPublicAccessBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPublicAccessBlockInputDict], ) -> GetPublicAccessBlockOutput: """ Note: @@ -5178,8 +6348,6 @@ def get_public_access_block( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `GetPublicAccessBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5189,10 +6357,33 @@ def get_public_access_block( Returns: An instance of `GetPublicAccessBlockOutput`. """ - return self._invoke(input, _models.GET_PUBLIC_ACCESS_BLOCK, [], plugins) + def get_public_access_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPublicAccessBlockOutput: + return self._invoke( + self._select_input(_models.GET_PUBLIC_ACCESS_BLOCK, args, kwargs), + _models.GET_PUBLIC_ACCESS_BLOCK, + [], + plugins, + ) + + @_overload def head_bucket( - self, input: HeadBucketInput, plugins: list[Plugin] | None = None + self, + request: _models.HeadBucketInput | _models.HeadBucketInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> HeadBucketOutput: ... + + @_overload + def head_bucket( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.HeadBucketInputDict], ) -> HeadBucketOutput: """ You can use this operation to determine if a bucket exists and if you @@ -5212,63 +6403,64 @@ def head_bucket( Authentication and authorization - : **General purpose buckets** - Request to public buckets that grant the - s3:ListBucket permission publicly do not need to be signed. All other - `HeadBucket` requests must be authenticated and signed by using IAM - credentials (access key ID and secret access key for the IAM - identities). All headers with the `x-amz-` prefix, including - `x-amz-copy-source`, must be signed. For more information, see [REST - Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). + : **General purpose buckets** - Request to public buckets that grant + the s3:ListBucket permission publicly do not need to be signed. All + other `HeadBucket` requests must be authenticated and signed by + using IAM credentials (access key ID and secret access key for the + IAM identities). All headers with the `x-amz-` prefix, including + `x-amz-copy-source`, must be signed. For more information, see [REST + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). - **Directory buckets** - You must use IAM credentials to authenticate - and authorize your access to the `HeadBucket` API operation, instead - of using the temporary security credentials through the - `CreateSession` API operation. + **Directory buckets** - You must use IAM credentials to authenticate + and authorize your access to the `HeadBucket` API operation, instead + of using the temporary security credentials through the + `CreateSession` API operation. - Amazon Web Services CLI or SDKs handles authentication and - authorization on your behalf. + Amazon Web Services CLI or SDKs handles authentication and + authorization on your behalf. Permissions - : - **General purpose bucket permissions** - To use this operation, you - must have permissions to perform the `s3:ListBucket` action. The - bucket owner has this permission by default and can grant this - permission to others. For more information about permissions, see - [Managing access permissions to your Amazon S3 - resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. - - - **Directory bucket permissions** - You must have the - **`s3express:CreateSession`** permission in the `Action` element of - a policy. If no session mode is specified, the session will be - created with the maximum allowable privilege, attempting `ReadWrite` - first, then `ReadOnly` if `ReadWrite` is not permitted. If you want - to explicitly restrict the access to be read-only, you can set the - `s3express:SessionMode` condition key to `ReadOnly` on the bucket. + : - **General purpose bucket permissions** - To use this operation, + you must have permissions to perform the `s3:ListBucket` action. + The bucket owner has this permission by default and can grant this + permission to others. For more information about permissions, see + [Managing access permissions to your Amazon S3 + resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. - For more information about example bucket policies, see [Example - bucket policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - and [Amazon Web Services Identity and Access Management (IAM) - identity-based policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - You must have the + **`s3express:CreateSession`** permission in the `Action` element + of a policy. If no session mode is specified, the session will be + created with the maximum allowable privilege, attempting + `ReadWrite` first, then `ReadOnly` if `ReadWrite` is not + permitted. If you want to explicitly restrict the access to be + read-only, you can set the `s3express:SessionMode` condition key + to `ReadOnly` on the bucket. + + For more information about example bucket policies, see [Example + bucket policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + and [Amazon Web Services Identity and Access Management (IAM) + identity-based policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. - Note: + Note: You must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format `https://`*`bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Path-style requests are not supported. For more information about - endpoints in Availability Zones, see [Regional and Zonal endpoints for - directory buckets in Availability + endpoints in Availability Zones, see [Regional and Zonal endpoints + for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints in - Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about endpoints + in Local Zones, see [Concepts for directory buckets in Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. @@ -5278,8 +6470,6 @@ def head_bucket( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `HeadBucketInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5289,10 +6479,33 @@ def head_bucket( Returns: An instance of `HeadBucketOutput`. """ - return self._invoke(input, _models.HEAD_BUCKET, [], plugins) + def head_bucket( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> HeadBucketOutput: + return self._invoke( + self._select_input(_models.HEAD_BUCKET, args, kwargs), + _models.HEAD_BUCKET, + [], + plugins, + ) + + @_overload def head_object( - self, input: HeadObjectInput, plugins: list[Plugin] | None = None + self, + request: _models.HeadObjectInput | _models.HeadObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> HeadObjectOutput: ... + + @_overload + def head_object( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.HeadObjectInputDict], ) -> HeadObjectOutput: """ The `HEAD` operation retrieves metadata from an object without returning @@ -5314,82 +6527,86 @@ def head_object( Permissions - : - **General purpose bucket permissions** - To use `HEAD`, you must - have the `s3:GetObject` permission. You need the relevant read - object (or version) permission for this operation. For more - information, see [Actions, resources, and condition keys for Amazon - S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) - in the *Amazon S3 User Guide*. For more information about the - permissions to S3 API operations by S3 resource types, see [Required - permissions for Amazon S3 API - operations](/AmazonS3/latest/userguide/using-with-s3-policy-actions.html) - in the *Amazon S3 User Guide*. - - If the object you request doesn't exist, the error that Amazon S3 - returns depends on whether you also have the `s3:ListBucket` - permission. - - - If you have the `s3:ListBucket` permission on the bucket, Amazon - S3 returns an HTTP status code `404 Not Found` error. - - - If you don't have the `s3:ListBucket` permission, Amazon S3 - returns an HTTP status code `403 Forbidden` error. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + : - **General purpose bucket permissions** - To use `HEAD`, you must + have the `s3:GetObject` permission. You need the relevant read + object (or version) permission for this operation. For more + information, see [Actions, resources, and condition keys for + Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) + in the *Amazon S3 User Guide*. For more information about the + permissions to S3 API operations by S3 resource types, see + [Required permissions for Amazon S3 API + operations](/AmazonS3/latest/userguide/using-with-s3-policy-actions.html) + in the *Amazon S3 User Guide*. - If you enable `x-amz-checksum-mode` in the request and the object is - encrypted with Amazon Web Services Key Management Service (Amazon - Web Services KMS), you must also have the `kms:GenerateDataKey` and - `kms:Decrypt` permissions in IAM identity-based policies and KMS key - policies for the KMS key to retrieve the checksum of the object. + If the object you request doesn't exist, the error that Amazon S3 + returns depends on whether you also have the `s3:ListBucket` + permission. + + - If you have the `s3:ListBucket` permission on the bucket, Amazon + S3 returns an HTTP status code `404 Not Found` error. + + - If you don't have the `s3:ListBucket` permission, Amazon S3 + returns an HTTP status code `403 Forbidden` error. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If you enable `x-amz-checksum-mode` in the request and the object + is encrypted with Amazon Web Services Key Management Service + (Amazon Web Services KMS), you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key to + retrieve the checksum of the object. Encryption - : Note: + : Note: Encryption request headers, like `x-amz-server-side-encryption`, - should not be sent for `HEAD` requests if your object uses server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), - dual-layer server-side encryption with Amazon Web Services KMS keys - (DSSE-KMS), or server-side encryption with Amazon S3 managed - encryption keys (SSE-S3). The `x-amz-server-side-encryption` header is - used when you `PUT` an object to S3 and want to specify the encryption - method. If you include this header in a `HEAD` request for an object - that uses these types of keys, you'll get an HTTP `400 Bad Request` - error. It's because the encryption method can't be changed when you + should not be sent for `HEAD` requests if your object uses + server-side encryption with Key Management Service (KMS) keys + (SSE-KMS), dual-layer server-side encryption with Amazon Web + Services KMS keys (DSSE-KMS), or server-side encryption with Amazon + S3 managed encryption keys (SSE-S3). The + `x-amz-server-side-encryption` header is used when you `PUT` an + object to S3 and want to specify the encryption method. If you + include this header in a `HEAD` request for an object that uses + these types of keys, you'll get an HTTP `400 Bad Request` error. + It's because the encryption method can't be changed when you retrieve the object. - If you encrypt an object by using server-side encryption with - customer-provided encryption keys (SSE-C) when you store the object in - Amazon S3, then when you retrieve the metadata from the object, you - must use the following headers to provide the encryption key for the - server to be able to retrieve the object's metadata. The headers are: + If you encrypt an object by using server-side encryption with + customer-provided encryption keys (SSE-C) when you store the object + in Amazon S3, then when you retrieve the metadata from the object, + you must use the following headers to provide the encryption key for + the server to be able to retrieve the object's metadata. The + headers are: - - `x-amz-server-side-encryption-customer-algorithm` + - `x-amz-server-side-encryption-customer-algorithm` - - `x-amz-server-side-encryption-customer-key` + - `x-amz-server-side-encryption-customer-key` - - `x-amz-server-side-encryption-customer-key-MD5` + - `x-amz-server-side-encryption-customer-key-MD5` - For more information about SSE-C, see [Server-Side Encryption (Using - Customer-Provided Encryption - Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) - in the *Amazon S3 User Guide*. + For more information about SSE-C, see [Server-Side Encryption (Using + Customer-Provided Encryption + Keys)](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) + in the *Amazon S3 User Guide*. - Note: + Note: **Directory bucket** - For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS. SSE-C isn't supported. For more information, see [Protecting data @@ -5399,39 +6616,40 @@ def head_object( Versioning - : - If the current version of the object is a delete marker, Amazon S3 - behaves as if the object was deleted and includes - `x-amz-delete-marker: true` in the response. + : - If the current version of the object is a delete marker, Amazon S3 + behaves as if the object was deleted and includes + `x-amz-delete-marker: true` in the response. - - If the specified version is a delete marker, the response returns a - `405 Method Not Allowed` error and the `Last-Modified: timestamp` - response header. + - If the specified version is a delete marker, the response returns + a `405 Method Not Allowed` error and the + `Last-Modified: timestamp` response header. - Note: - - **Directory buckets** - Delete marker is not supported for directory - buckets. + Note: + - **Directory buckets** - Delete marker is not supported for + directory buckets. - **Directory buckets** - S3 Versioning isn't enabled and supported - for directory buckets. For this API operation, only the `null` value - of the version ID is supported by directory buckets. You can only - specify `null` to the `versionId` query parameter in the request. + for directory buckets. For this API operation, only the `null` + value of the version ID is supported by directory buckets. You can + only specify `null` to the `versionId` query parameter in the + request. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. - Note: + Note: For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format `https://`*`amzn-s3-demo-bucket`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com/`*`key-name`*` `. Path-style requests are not supported. For more information about - endpoints in Availability Zones, see [Regional and Zonal endpoints for - directory buckets in Availability + endpoints in Availability Zones, see [Regional and Zonal endpoints + for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints in - Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about endpoints + in Local Zones, see [Concepts for directory buckets in Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. @@ -5447,8 +6665,6 @@ def head_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `HeadObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5458,12 +6674,34 @@ def head_object( Returns: An instance of `HeadObjectOutput`. """ - return self._invoke(input, _models.HEAD_OBJECT, [], plugins) + def head_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> HeadObjectOutput: + return self._invoke( + self._select_input(_models.HEAD_OBJECT, args, kwargs), + _models.HEAD_OBJECT, + [], + plugins, + ) + + @_overload + def list_bucket_analytics_configurations( + self, + request: _models.ListBucketAnalyticsConfigurationsInput + | _models.ListBucketAnalyticsConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketAnalyticsConfigurationsOutput: ... + + @_overload def list_bucket_analytics_configurations( self, - input: ListBucketAnalyticsConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketAnalyticsConfigurationsInputDict], ) -> ListBucketAnalyticsConfigurationsOutput: """ Note: @@ -5509,8 +6747,6 @@ def list_bucket_analytics_configurations( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketAnalyticsConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5520,14 +6756,36 @@ def list_bucket_analytics_configurations( Returns: An instance of `ListBucketAnalyticsConfigurationsOutput`. """ + + def list_bucket_analytics_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketAnalyticsConfigurationsOutput: return self._invoke( - input, _models.LIST_BUCKET_ANALYTICS_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_BUCKET_ANALYTICS_CONFIGURATIONS, args, kwargs + ), + _models.LIST_BUCKET_ANALYTICS_CONFIGURATIONS, + [], + plugins, ) + @_overload + def list_bucket_intelligent_tiering_configurations( + self, + request: _models.ListBucketIntelligentTieringConfigurationsInput + | _models.ListBucketIntelligentTieringConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketIntelligentTieringConfigurationsOutput: ... + + @_overload def list_bucket_intelligent_tiering_configurations( self, - input: ListBucketIntelligentTieringConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketIntelligentTieringConfigurationsInputDict], ) -> ListBucketIntelligentTieringConfigurationsOutput: """ Note: @@ -5571,8 +6829,6 @@ def list_bucket_intelligent_tiering_configurations( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketIntelligentTieringConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5582,14 +6838,36 @@ def list_bucket_intelligent_tiering_configurations( Returns: An instance of `ListBucketIntelligentTieringConfigurationsOutput`. """ + + def list_bucket_intelligent_tiering_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketIntelligentTieringConfigurationsOutput: return self._invoke( - input, _models.LIST_BUCKET_INTELLIGENT_TIERING_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_BUCKET_INTELLIGENT_TIERING_CONFIGURATIONS, args, kwargs + ), + _models.LIST_BUCKET_INTELLIGENT_TIERING_CONFIGURATIONS, + [], + plugins, ) + @_overload + def list_bucket_inventory_configurations( + self, + request: _models.ListBucketInventoryConfigurationsInput + | _models.ListBucketInventoryConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketInventoryConfigurationsOutput: ... + + @_overload def list_bucket_inventory_configurations( self, - input: ListBucketInventoryConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketInventoryConfigurationsInputDict], ) -> ListBucketInventoryConfigurationsOutput: """ Returns a list of S3 Inventory configurations for the bucket. You can @@ -5620,35 +6898,35 @@ def list_bucket_inventory_configurations( Permissions - : To use this operation, you must have permissions to perform the - `s3:GetInventoryConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:GetInventoryConfiguration` permission is required in a policy. - For more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:GetInventoryConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetInventoryConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:GetInventoryConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetInventoryConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about the Amazon S3 inventory feature, see [Amazon S3 Inventory](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html) @@ -5668,8 +6946,6 @@ def list_bucket_inventory_configurations( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketInventoryConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5679,14 +6955,36 @@ def list_bucket_inventory_configurations( Returns: An instance of `ListBucketInventoryConfigurationsOutput`. """ + + def list_bucket_inventory_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketInventoryConfigurationsOutput: return self._invoke( - input, _models.LIST_BUCKET_INVENTORY_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_BUCKET_INVENTORY_CONFIGURATIONS, args, kwargs + ), + _models.LIST_BUCKET_INVENTORY_CONFIGURATIONS, + [], + plugins, ) + @_overload + def list_bucket_metrics_configurations( + self, + request: _models.ListBucketMetricsConfigurationsInput + | _models.ListBucketMetricsConfigurationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketMetricsConfigurationsOutput: ... + + @_overload def list_bucket_metrics_configurations( self, - input: ListBucketMetricsConfigurationsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketMetricsConfigurationsInputDict], ) -> ListBucketMetricsConfigurationsOutput: """ Lists the metrics configurations for the bucket. The metrics @@ -5719,37 +7017,37 @@ def list_bucket_metrics_configurations( Permissions - : To use this operation, you must have permissions to perform the - `s3:GetMetricsConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:GetMetricsConfiguration` permission is required in a policy. For - more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:GetMetricsConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:GetMetricsConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:GetMetricsConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:GetMetricsConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For more information about metrics configurations and CloudWatch request metrics, see [Monitoring Metrics with Amazon @@ -5770,8 +7068,6 @@ def list_bucket_metrics_configurations( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketMetricsConfigurationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5781,12 +7077,35 @@ def list_bucket_metrics_configurations( Returns: An instance of `ListBucketMetricsConfigurationsOutput`. """ + + def list_bucket_metrics_configurations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketMetricsConfigurationsOutput: return self._invoke( - input, _models.LIST_BUCKET_METRICS_CONFIGURATIONS, [], plugins + self._select_input( + _models.LIST_BUCKET_METRICS_CONFIGURATIONS, args, kwargs + ), + _models.LIST_BUCKET_METRICS_CONFIGURATIONS, + [], + plugins, ) + @_overload + def list_buckets( + self, + request: _models.ListBucketsInput | _models.ListBucketsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListBucketsOutput: ... + + @_overload def list_buckets( - self, input: ListBucketsInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListBucketsInputDict], ) -> ListBucketsOutput: """ Note: @@ -5815,8 +7134,6 @@ def list_buckets( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListBucketsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5826,12 +7143,34 @@ def list_buckets( Returns: An instance of `ListBucketsOutput`. """ - return self._invoke(input, _models.LIST_BUCKETS, [], plugins) + def list_buckets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListBucketsOutput: + return self._invoke( + self._select_input(_models.LIST_BUCKETS, args, kwargs), + _models.LIST_BUCKETS, + [], + plugins, + ) + + @_overload def list_directory_buckets( self, - input: ListDirectoryBucketsInput | None = None, + request: _models.ListDirectoryBucketsInput + | _models.ListDirectoryBucketsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListDirectoryBucketsOutput: ... + + @_overload + def list_directory_buckets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDirectoryBucketsInputDict], ) -> ListDirectoryBucketsOutput: """ Returns a list of all Amazon S3 directory buckets owned by the @@ -5856,20 +7195,20 @@ def list_directory_buckets( Permissions - : You must have the `s3express:ListAllMyDirectoryBuckets` permission in - an IAM identity-based policy instead of a bucket policy. Cross-account - access to this API operation isn't supported. This operation can only - be performed by the Amazon Web Services account that owns the - resource. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + : You must have the `s3express:ListAllMyDirectoryBuckets` permission + in an IAM identity-based policy instead of a bucket policy. + Cross-account access to this API operation isn't supported. This + operation can only be performed by the Amazon Web Services account + that owns the resource. For more information about directory bucket + policies and permissions, see [Amazon Web Services Identity and + Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region`*`.amazonaws.com`. Note: The `BucketRegion` response element is not part of the @@ -5880,8 +7219,6 @@ def list_directory_buckets( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListDirectoryBucketsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -5891,10 +7228,34 @@ def list_directory_buckets( Returns: An instance of `ListDirectoryBucketsOutput`. """ - return self._invoke(input, _models.LIST_DIRECTORY_BUCKETS, [], plugins) + def list_directory_buckets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDirectoryBucketsOutput: + return self._invoke( + self._select_input(_models.LIST_DIRECTORY_BUCKETS, args, kwargs), + _models.LIST_DIRECTORY_BUCKETS, + [], + plugins, + ) + + @_overload + def list_multipart_uploads( + self, + request: _models.ListMultipartUploadsInput + | _models.ListMultipartUploadsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMultipartUploadsOutput: ... + + @_overload def list_multipart_uploads( - self, input: ListMultipartUploadsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMultipartUploadsInputDict], ) -> ListMultipartUploadsOutput: """ This operation lists in-progress multipart uploads in a bucket. An @@ -5953,51 +7314,51 @@ def list_multipart_uploads( Permissions - : - **General purpose bucket permissions** - For information about - permissions required to use the multipart upload API, see [Multipart - Upload and - Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - For information about + permissions required to use the multipart upload API, see + [Multipart Upload and + Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . Sorting of multipart uploads in response - : - **General purpose bucket** - In the `ListMultipartUploads` response, - the multipart uploads are sorted based on two criteria: + : - **General purpose bucket** - In the `ListMultipartUploads` + response, the multipart uploads are sorted based on two criteria: - - Key-based sorting - Multipart uploads are initially sorted in - ascending order based on their object keys. + - Key-based sorting - Multipart uploads are initially sorted in + ascending order based on their object keys. - - Time-based sorting - For uploads that share the same object key, - they are further sorted in ascending order based on the upload - initiation time. Among uploads with the same key, the one that was - initiated first will appear before the ones that were initiated - later. + - Time-based sorting - For uploads that share the same object key, + they are further sorted in ascending order based on the upload + initiation time. Among uploads with the same key, the one that + was initiated first will appear before the ones that were + initiated later. - - **Directory bucket** - In the `ListMultipartUploads` response, the - multipart uploads aren't sorted lexicographically based on the - object keys. + - **Directory bucket** - In the `ListMultipartUploads` response, the + multipart uploads aren't sorted lexicographically based on the + object keys. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `ListMultipartUploads`: @@ -6017,8 +7378,6 @@ def list_multipart_uploads( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListMultipartUploadsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6028,10 +7387,34 @@ def list_multipart_uploads( Returns: An instance of `ListMultipartUploadsOutput`. """ - return self._invoke(input, _models.LIST_MULTIPART_UPLOADS, [], plugins) + def list_multipart_uploads( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMultipartUploadsOutput: + return self._invoke( + self._select_input(_models.LIST_MULTIPART_UPLOADS, args, kwargs), + _models.LIST_MULTIPART_UPLOADS, + [], + plugins, + ) + + @_overload + def list_object_annotations( + self, + request: _models.ListObjectAnnotationsInput + | _models.ListObjectAnnotationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListObjectAnnotationsOutput: ... + + @_overload def list_object_annotations( - self, input: ListObjectAnnotationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListObjectAnnotationsInputDict], ) -> ListObjectAnnotationsOutput: """ Lists the annotations attached to an Amazon S3 object. Results are @@ -6055,8 +7438,6 @@ def list_object_annotations( - [DeleteObjectAnnotation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectAnnotation.html) Args: - input: - An instance of `ListObjectAnnotationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6066,10 +7447,33 @@ def list_object_annotations( Returns: An instance of `ListObjectAnnotationsOutput`. """ - return self._invoke(input, _models.LIST_OBJECT_ANNOTATIONS, [], plugins) + def list_object_annotations( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListObjectAnnotationsOutput: + return self._invoke( + self._select_input(_models.LIST_OBJECT_ANNOTATIONS, args, kwargs), + _models.LIST_OBJECT_ANNOTATIONS, + [], + plugins, + ) + + @_overload def list_objects( - self, input: ListObjectsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListObjectsInput | _models.ListObjectsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListObjectsOutput: ... + + @_overload + def list_objects( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListObjectsInputDict], ) -> ListObjectsOutput: """ Note: @@ -6106,8 +7510,6 @@ def list_objects( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListObjectsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6117,10 +7519,33 @@ def list_objects( Returns: An instance of `ListObjectsOutput`. """ - return self._invoke(input, _models.LIST_OBJECTS, [], plugins) + def list_objects( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListObjectsOutput: + return self._invoke( + self._select_input(_models.LIST_OBJECTS, args, kwargs), + _models.LIST_OBJECTS, + [], + plugins, + ) + + @_overload + def list_objects_v2( + self, + request: _models.ListObjectsV2Input | _models.ListObjectsV2InputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListObjectsV2Output: ... + + @_overload def list_objects_v2( - self, input: ListObjectsV2Input, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListObjectsV2InputDict], ) -> ListObjectsV2Output: """ Returns some or all (up to 1,000) of the objects in a bucket with each @@ -6157,47 +7582,47 @@ def list_objects_v2( Permissions - : - **General purpose bucket permissions** - To use this operation, you - must have READ access to the bucket. You must have permission to - perform the `s3:ListBucket` action. The bucket owner has this - permission by default and can grant this permission to others. For - more information about permissions, see [Permissions Related to - Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - To use this operation, + you must have READ access to the bucket. You must have permission + to perform the `s3:ListBucket` action. The bucket owner has this + permission by default and can grant this permission to others. For + more information about permissions, see [Permissions Related to + Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . Sorting order of returned objects - : - **General purpose bucket** - For general purpose buckets, - `ListObjectsV2` returns objects in lexicographical order based on - their key names. + : - **General purpose bucket** - For general purpose buckets, + `ListObjectsV2` returns objects in lexicographical order based on + their key names. - - **Directory bucket** - For directory buckets, `ListObjectsV2` does - not return objects in lexicographical order. + - **Directory bucket** - For directory buckets, `ListObjectsV2` does + not return objects in lexicographical order. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Warning: This section describes the latest revision of this action. We recommend @@ -6220,8 +7645,6 @@ def list_objects_v2( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListObjectsV2Input`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6231,10 +7654,33 @@ def list_objects_v2( Returns: An instance of `ListObjectsV2Output`. """ - return self._invoke(input, _models.LIST_OBJECTS_V2, [], plugins) + def list_objects_v2( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListObjectsV2Output: + return self._invoke( + self._select_input(_models.LIST_OBJECTS_V2, args, kwargs), + _models.LIST_OBJECTS_V2, + [], + plugins, + ) + + @_overload + def list_object_versions( + self, + request: _models.ListObjectVersionsInput | _models.ListObjectVersionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListObjectVersionsOutput: ... + + @_overload def list_object_versions( - self, input: ListObjectVersionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListObjectVersionsInputDict], ) -> ListObjectVersionsOutput: """ Note: @@ -6270,8 +7716,6 @@ def list_object_versions( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListObjectVersionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6281,10 +7725,33 @@ def list_object_versions( Returns: An instance of `ListObjectVersionsOutput`. """ - return self._invoke(input, _models.LIST_OBJECT_VERSIONS, [], plugins) + def list_object_versions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListObjectVersionsOutput: + return self._invoke( + self._select_input(_models.LIST_OBJECT_VERSIONS, args, kwargs), + _models.LIST_OBJECT_VERSIONS, + [], + plugins, + ) + + @_overload + def list_parts( + self, + request: _models.ListPartsInput | _models.ListPartsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPartsOutput: ... + + @_overload def list_parts( - self, input: ListPartsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPartsInputDict], ) -> ListPartsOutput: """ Lists the parts that have been uploaded for a specific multipart upload. @@ -6325,39 +7792,39 @@ def list_parts( Permissions - : - **General purpose bucket permissions** - For information about - permissions required to use the multipart upload API, see [Multipart - Upload and - Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - in the *Amazon S3 User Guide*. - - If the upload was created using server-side encryption with Key - Management Service (KMS) keys (SSE-KMS) or dual-layer server-side - encryption with Amazon Web Services KMS keys (DSSE-KMS), you must - have permission to the `kms:Decrypt` action for the `ListParts` - request to succeed. + : - **General purpose bucket permissions** - For information about + permissions required to use the multipart upload API, see + [Multipart Upload and + Permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + If the upload was created using server-side encryption with Key + Management Service (KMS) keys (SSE-KMS) or dual-layer server-side + encryption with Amazon Web Services KMS keys (DSSE-KMS), you must + have permission to the `kms:Decrypt` action for the `ListParts` + request to succeed. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `ListParts`: @@ -6379,8 +7846,6 @@ def list_parts( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `ListPartsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6390,10 +7855,33 @@ def list_parts( Returns: An instance of `ListPartsOutput`. """ - return self._invoke(input, _models.LIST_PARTS, [], plugins) + def list_parts( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPartsOutput: + return self._invoke( + self._select_input(_models.LIST_PARTS, args, kwargs), + _models.LIST_PARTS, + [], + plugins, + ) + + @_overload + def put_bucket_abac( + self, + request: _models.PutBucketAbacInput | _models.PutBucketAbacInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketAbacOutput: ... + + @_overload def put_bucket_abac( - self, input: PutBucketAbacInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketAbacInputDict], ) -> PutBucketAbacOutput: """ Sets the attribute-based access control (ABAC) property of the general @@ -6412,8 +7900,6 @@ def put_bucket_abac( buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html). Args: - input: - An instance of `PutBucketAbacInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6423,12 +7909,34 @@ def put_bucket_abac( Returns: An instance of `PutBucketAbacOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_ABAC, [], plugins) + def put_bucket_abac( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketAbacOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_ABAC, args, kwargs), + _models.PUT_BUCKET_ABAC, + [], + plugins, + ) + + @_overload def put_bucket_accelerate_configuration( self, - input: PutBucketAccelerateConfigurationInput, + request: _models.PutBucketAccelerateConfigurationInput + | _models.PutBucketAccelerateConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> PutBucketAccelerateConfigurationOutput: ... + + @_overload + def put_bucket_accelerate_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketAccelerateConfigurationInputDict], ) -> PutBucketAccelerateConfigurationOutput: """ Note: @@ -6481,8 +7989,6 @@ def put_bucket_accelerate_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketAccelerateConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6492,12 +7998,35 @@ def put_bucket_accelerate_configuration( Returns: An instance of `PutBucketAccelerateConfigurationOutput`. """ + + def put_bucket_accelerate_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketAccelerateConfigurationOutput: return self._invoke( - input, _models.PUT_BUCKET_ACCELERATE_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_ACCELERATE_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_ACCELERATE_CONFIGURATION, + [], + plugins, ) + @_overload + def put_bucket_acl( + self, + request: _models.PutBucketAclInput | _models.PutBucketAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketAclOutput: ... + + @_overload def put_bucket_acl( - self, input: PutBucketAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketAclInputDict], ) -> PutBucketAclOutput: """ Warning: @@ -6546,39 +8075,40 @@ def put_bucket_acl( Permissions - : You can set access permissions by using one of the following methods: + : You can set access permissions by using one of the following + methods: - - Specify a canned ACL with the `x-amz-acl` request header. Amazon S3 - supports a set of predefined ACLs, known as *canned ACLs*. Each - canned ACL has a predefined set of grantees and permissions. Specify - the canned ACL name as the value of `x-amz-acl`. If you use this - header, you cannot use other access control-specific headers in your - request. For more information, see [Canned - ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). + - Specify a canned ACL with the `x-amz-acl` request header. Amazon + S3 supports a set of predefined ACLs, known as *canned ACLs*. Each + canned ACL has a predefined set of grantees and permissions. + Specify the canned ACL name as the value of `x-amz-acl`. If you + use this header, you cannot use other access control-specific + headers in your request. For more information, see [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). - - Specify access permissions explicitly with the `x-amz-grant-read`, - `x-amz-grant-read-acp`, `x-amz-grant-write-acp`, and - `x-amz-grant-full-control` headers. When using these headers, you - specify explicit access permissions and grantees (Amazon Web - Services accounts or Amazon S3 groups) who will receive the - permission. If you use these ACL-specific headers, you cannot use - the `x-amz-acl` header to set a canned ACL. These parameters map to - the set of permissions that Amazon S3 supports in an ACL. For more - information, see [Access Control List (ACL) - Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). + - Specify access permissions explicitly with the `x-amz-grant-read`, + `x-amz-grant-read-acp`, `x-amz-grant-write-acp`, and + `x-amz-grant-full-control` headers. When using these headers, you + specify explicit access permissions and grantees (Amazon Web + Services accounts or Amazon S3 groups) who will receive the + permission. If you use these ACL-specific headers, you cannot use + the `x-amz-acl` header to set a canned ACL. These parameters map + to the set of permissions that Amazon S3 supports in an ACL. For + more information, see [Access Control List (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). - You specify each grantee as a type=value pair, where the type is one - of the following: + You specify each grantee as a type=value pair, where the type is + one of the following: - - `id` -- if the value specified is the canonical user ID of an - Amazon Web Services account + - `id` -- if the value specified is the canonical user ID of an + Amazon Web Services account - - `uri` -- if you are granting permissions to a predefined group + - `uri` -- if you are granting permissions to a predefined group - - `emailAddress` -- if the value specified is the email address of - an Amazon Web Services account + - `emailAddress` -- if the value specified is the email address of + an Amazon Web Services account - Note: + Note: Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: @@ -6603,45 +8133,46 @@ def put_bucket_acl( Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the Amazon Web Services General Reference. - For example, the following `x-amz-grant-write` header grants create, - overwrite, and delete objects permission to LogDelivery group - predefined by Amazon S3 and two Amazon Web Services accounts - identified by their email addresses. + For example, the following `x-amz-grant-write` header grants + create, overwrite, and delete objects permission to LogDelivery + group predefined by Amazon S3 and two Amazon Web Services accounts + identified by their email addresses. - `x-amz-grant-write: uri="http://acs.amazonaws.com/groups/s3/LogDelivery", id="111122223333", id="555566667777" ` + `x-amz-grant-write: uri="http://acs.amazonaws.com/groups/s3/LogDelivery", id="111122223333", id="555566667777" ` - You can use either a canned ACL or specify access permissions - explicitly. You cannot do both. + You can use either a canned ACL or specify access permissions + explicitly. You cannot do both. Grantee Values - : You can specify the person (grantee) to whom you're assigning access - rights (using request elements) in the following ways. For examples of - how to specify these grantee values in JSON format, see the Amazon Web - Services CLI example in [Enabling Amazon S3 server access - logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) - in the *Amazon S3 User Guide*. + : You can specify the person (grantee) to whom you're assigning + access rights (using request elements) in the following ways. For + examples of how to specify these grantee values in JSON format, see + the Amazon Web Services CLI example in [Enabling Amazon S3 server + access + logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) + in the *Amazon S3 User Guide*. - - By the person's ID: + - By the person's ID: - ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} + ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} - DisplayName is optional and ignored in the request + DisplayName is optional and ignored in the request - - By URI: + - By URI: - ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} + ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} - - By Email address: + - By Email address: - ``{=html}``{=html}`<>Grantees@email.com<>```{=html}`&```{=html} + ``{=html}``{=html}`<>Grantees@email.com<>```{=html}`&```{=html} - The grantee is resolved to the CanonicalUser and, in a response to a - GET Object acl request, appears as the CanonicalUser. + The grantee is resolved to the CanonicalUser and, in a response to + a GET Object acl request, appears as the CanonicalUser. - Note: - Using email addresses to specify a grantee is only supported in the - following Amazon Web Services Regions: + Note: + Using email addresses to specify a grantee is only supported in + the following Amazon Web Services Regions: - US East (N. Virginia) @@ -6659,8 +8190,8 @@ def put_bucket_acl( - South America (São Paulo) - For a list of all the Amazon S3 supported Regions and endpoints, see - [Regions and + For a list of all the Amazon S3 supported Regions and endpoints, + see [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the Amazon Web Services General Reference. @@ -6678,8 +8209,6 @@ def put_bucket_acl( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6689,12 +8218,34 @@ def put_bucket_acl( Returns: An instance of `PutBucketAclOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_ACL, [], plugins) + def put_bucket_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketAclOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_ACL, args, kwargs), + _models.PUT_BUCKET_ACL, + [], + plugins, + ) + + @_overload + def put_bucket_analytics_configuration( + self, + request: _models.PutBucketAnalyticsConfigurationInput + | _models.PutBucketAnalyticsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketAnalyticsConfigurationOutput: ... + + @_overload def put_bucket_analytics_configuration( self, - input: PutBucketAnalyticsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketAnalyticsConfigurationInputDict], ) -> PutBucketAnalyticsConfigurationOutput: """ Note: @@ -6769,8 +8320,6 @@ def put_bucket_analytics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketAnalyticsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6780,12 +8329,35 @@ def put_bucket_analytics_configuration( Returns: An instance of `PutBucketAnalyticsConfigurationOutput`. """ + + def put_bucket_analytics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketAnalyticsConfigurationOutput: return self._invoke( - input, _models.PUT_BUCKET_ANALYTICS_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_ANALYTICS_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_ANALYTICS_CONFIGURATION, + [], + plugins, ) + @_overload def put_bucket_cors( - self, input: PutBucketCorsInput, plugins: list[Plugin] | None = None + self, + request: _models.PutBucketCorsInput | _models.PutBucketCorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketCorsOutput: ... + + @_overload + def put_bucket_cors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketCorsInputDict], ) -> PutBucketCorsOutput: """ Note: @@ -6843,8 +8415,6 @@ def put_bucket_cors( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketCorsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -6854,10 +8424,34 @@ def put_bucket_cors( Returns: An instance of `PutBucketCorsOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_CORS, [], plugins) + def put_bucket_cors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketCorsOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_CORS, args, kwargs), + _models.PUT_BUCKET_CORS, + [], + plugins, + ) + + @_overload + def put_bucket_encryption( + self, + request: _models.PutBucketEncryptionInput + | _models.PutBucketEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketEncryptionOutput: ... + + @_overload def put_bucket_encryption( - self, input: PutBucketEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketEncryptionInputDict], ) -> PutBucketEncryptionOutput: """ This operation configures default encryption and Amazon S3 Bucket Keys @@ -6959,36 +8553,37 @@ def put_bucket_encryption( Permissions - : - **General purpose bucket permissions** - The - `s3:PutEncryptionConfiguration` permission is required in a policy. - The bucket owner has this permission by default. The bucket owner - can grant this permission to others. For more information about - permissions, see [Permissions Related to Bucket - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - The + `s3:PutEncryptionConfiguration` permission is required in a + policy. The bucket owner has this permission by default. The + bucket owner can grant this permission to others. For more + information about permissions, see [Permissions Related to Bucket + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutEncryptionConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - To grant access to this API + operation, you must have the + `s3express:PutEncryptionConfiguration` permission in an IAM + identity-based policy instead of a bucket policy. Cross-account + access to this API operation isn't supported. This operation can + only be performed by the Amazon Web Services account that owns the + resource. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. - To set a directory bucket default encryption with SSE-KMS, you must - also have the `kms:GenerateDataKey` and the `kms:Decrypt` - permissions in IAM identity-based policies and KMS key policies for - the target KMS key. + To set a directory bucket default encryption with SSE-KMS, you + must also have the `kms:GenerateDataKey` and the `kms:Decrypt` + permissions in IAM identity-based policies and KMS key policies + for the target KMS key. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `PutBucketEncryption`: @@ -7002,8 +8597,6 @@ def put_bucket_encryption( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7013,12 +8606,34 @@ def put_bucket_encryption( Returns: An instance of `PutBucketEncryptionOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_ENCRYPTION, [], plugins) + def put_bucket_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketEncryptionOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_ENCRYPTION, args, kwargs), + _models.PUT_BUCKET_ENCRYPTION, + [], + plugins, + ) + + @_overload + def put_bucket_intelligent_tiering_configuration( + self, + request: _models.PutBucketIntelligentTieringConfigurationInput + | _models.PutBucketIntelligentTieringConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketIntelligentTieringConfigurationOutput: ... + + @_overload def put_bucket_intelligent_tiering_configuration( self, - input: PutBucketIntelligentTieringConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketIntelligentTieringConfigurationInputDict], ) -> PutBucketIntelligentTieringConfigurationOutput: """ Note: @@ -7066,22 +8681,22 @@ class to the Archive Access or Deep Archive Access tier. HTTP 400 Bad Request Error - : *Code:* InvalidArgument + : *Code:* InvalidArgument - *Cause:* Invalid Argument + *Cause:* Invalid Argument HTTP 400 Bad Request Error - : *Code:* TooManyConfigurations + : *Code:* TooManyConfigurations - *Cause:* You are attempting to create a new configuration but have - already reached the 1,000-configuration limit. + *Cause:* You are attempting to create a new configuration but have + already reached the 1,000-configuration limit. HTTP 403 Forbidden Error - : *Cause:* You are not the owner of the specified bucket, or you do not - have the `s3:PutIntelligentTieringConfiguration` bucket permission to - set the configuration on the bucket. + : *Cause:* You are not the owner of the specified bucket, or you do + not have the `s3:PutIntelligentTieringConfiguration` bucket + permission to set the configuration on the bucket. Warning: You must URL encode any signed header values that contain spaces. For @@ -7089,8 +8704,6 @@ class to the Archive Access or Deep Archive Access tier. after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketIntelligentTieringConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7100,14 +8713,36 @@ class to the Archive Access or Deep Archive Access tier. Returns: An instance of `PutBucketIntelligentTieringConfigurationOutput`. """ + + def put_bucket_intelligent_tiering_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketIntelligentTieringConfigurationOutput: return self._invoke( - input, _models.PUT_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_INTELLIGENT_TIERING_CONFIGURATION, + [], + plugins, ) + @_overload + def put_bucket_inventory_configuration( + self, + request: _models.PutBucketInventoryConfigurationInput + | _models.PutBucketInventoryConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketInventoryConfigurationOutput: ... + + @_overload def put_bucket_inventory_configuration( self, - input: PutBucketInventoryConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketInventoryConfigurationInputDict], ) -> PutBucketInventoryConfigurationOutput: """ This implementation of the `PUT` action adds an S3 Inventory @@ -7152,72 +8787,72 @@ def put_bucket_inventory_configuration( Permissions - : To use this operation, you must have permission to perform the - `s3:PutInventoryConfiguration` action. The bucket owner has this - permission by default and can grant this permission to others. - - The `s3:PutInventoryConfiguration` permission allows a user to create - an [S3 - Inventory](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html) - report that includes all object metadata fields available and to - specify the destination bucket to store the inventory. A user with - read access to objects in the destination bucket can also access all - object metadata fields that are available in the inventory report. - - - **General purpose bucket permissions** - The - `s3:PutInventoryConfiguration` permission is required in a policy. - For more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permission to perform the + `s3:PutInventoryConfiguration` action. The bucket owner has this + permission by default and can grant this permission to others. + + The `s3:PutInventoryConfiguration` permission allows a user to + create an [S3 + Inventory](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html) + report that includes all object metadata fields available and to + specify the destination bucket to store the inventory. A user with + read access to objects in the destination bucket can also access all + object metadata fields that are available in the inventory report. + + - **General purpose bucket permissions** - The + `s3:PutInventoryConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutInventoryConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. For more information about directory bucket policies and - permissions, see [Amazon Web Services Identity and Access Management - (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutInventoryConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. For more information about directory bucket policies and + permissions, see [Amazon Web Services Identity and Access + Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. - To restrict access to an inventory report, see [Restricting access to - an Amazon S3 Inventory - report](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html#example-bucket-policies-s3-inventory) - in the *Amazon S3 User Guide*. For more information about the metadata - fields available in S3 Inventory, see [Amazon S3 Inventory - lists](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html#storage-inventory-contents) - in the *Amazon S3 User Guide*. For more information about permissions, - see [Permissions related to bucket subresource - operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Identity and access management in Amazon - S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. + To restrict access to an inventory report, see [Restricting access + to an Amazon S3 Inventory + report](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html#example-bucket-policies-s3-inventory) + in the *Amazon S3 User Guide*. For more information about the + metadata fields available in S3 Inventory, see [Amazon S3 Inventory + lists](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html#storage-inventory-contents) + in the *Amazon S3 User Guide*. For more information about + permissions, see [Permissions related to bucket subresource + operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Identity and access management in Amazon + S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. `PutBucketInventoryConfiguration` has the following special errors: HTTP 400 Bad Request Error - : *Code:* InvalidArgument + : *Code:* InvalidArgument - *Cause:* Invalid Argument + *Cause:* Invalid Argument HTTP 400 Bad Request Error - : *Code:* TooManyConfigurations + : *Code:* TooManyConfigurations - *Cause:* You are attempting to create a new configuration but have - already reached the 1,000-configuration limit. + *Cause:* You are attempting to create a new configuration but have + already reached the 1,000-configuration limit. HTTP 403 Forbidden Error - : *Cause:* You are not the owner of the specified bucket, or you do not - have the `s3:PutInventoryConfiguration` bucket permission to set the - configuration on the bucket. + : *Cause:* You are not the owner of the specified bucket, or you do + not have the `s3:PutInventoryConfiguration` bucket permission to set + the configuration on the bucket. The following operations are related to `PutBucketInventoryConfiguration`: @@ -7234,8 +8869,6 @@ def put_bucket_inventory_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketInventoryConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7245,14 +8878,36 @@ def put_bucket_inventory_configuration( Returns: An instance of `PutBucketInventoryConfigurationOutput`. """ + + def put_bucket_inventory_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketInventoryConfigurationOutput: return self._invoke( - input, _models.PUT_BUCKET_INVENTORY_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_INVENTORY_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_INVENTORY_CONFIGURATION, + [], + plugins, ) + @_overload + def put_bucket_lifecycle_configuration( + self, + request: _models.PutBucketLifecycleConfigurationInput + | _models.PutBucketLifecycleConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketLifecycleConfigurationOutput: ... + + @_overload def put_bucket_lifecycle_configuration( self, - input: PutBucketLifecycleConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketLifecycleConfigurationInputDict], ) -> PutBucketLifecycleConfigurationOutput: """ Creates a new lifecycle configuration for the bucket or replaces an @@ -7274,109 +8929,110 @@ def put_bucket_lifecycle_configuration( Rules - : You specify the lifecycle configuration in your request body. The - lifecycle configuration is specified as XML consisting of one or more - rules. An Amazon S3 Lifecycle configuration can have up to 1,000 - rules. This limit is not adjustable. - - Bucket lifecycle configuration supports specifying a lifecycle rule - using an object key name prefix, one or more object tags, object size, - or any combination of these. Accordingly, this section describes the - latest API. The previous version of the API supported filtering based - only on an object key name prefix, which is supported for backward - compatibility for general purpose buckets. For the related API - description, see - [PutBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html). + : You specify the lifecycle configuration in your request body. The + lifecycle configuration is specified as XML consisting of one or + more rules. An Amazon S3 Lifecycle configuration can have up to + 1,000 rules. This limit is not adjustable. + + Bucket lifecycle configuration supports specifying a lifecycle rule + using an object key name prefix, one or more object tags, object + size, or any combination of these. Accordingly, this section + describes the latest API. The previous version of the API supported + filtering based only on an object key name prefix, which is + supported for backward compatibility for general purpose buckets. + For the related API description, see + [PutBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html). - Note: + Note: Lifecyle configurations for directory buckets only support expiring objects and cancelling multipart uploads. Expiring of versioned objects,transitions and tag filters are not supported. - A lifecycle rule consists of the following: + A lifecycle rule consists of the following: - - A filter identifying a subset of objects to which the rule applies. - The filter can be based on a key name prefix, object tags, object - size, or any combination of these. + - A filter identifying a subset of objects to which the rule + applies. The filter can be based on a key name prefix, object + tags, object size, or any combination of these. - - A status indicating whether the rule is in effect. + - A status indicating whether the rule is in effect. - - One or more lifecycle transition and expiration actions that you - want Amazon S3 to perform on the objects identified by the filter. - If the state of your bucket is versioning-enabled or - versioning-suspended, you can have many versions of the same object - (one current version and zero or more noncurrent versions). Amazon - S3 provides predefined actions that you can specify for current and - noncurrent object versions. + - One or more lifecycle transition and expiration actions that you + want Amazon S3 to perform on the objects identified by the filter. + If the state of your bucket is versioning-enabled or + versioning-suspended, you can have many versions of the same + object (one current version and zero or more noncurrent versions). + Amazon S3 provides predefined actions that you can specify for + current and noncurrent object versions. - For more information, see [Object Lifecycle - Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) - and [Lifecycle Configuration - Elements](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html). + For more information, see [Object Lifecycle + Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) + and [Lifecycle Configuration + Elements](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html). Permissions - : - **General purpose bucket permissions** - By default, all Amazon S3 - resources are private, including buckets, objects, and related - subresources (for example, lifecycle configuration and website - configuration). Only the resource owner (that is, the Amazon Web - Services account that created it) can access the resource. The - resource owner can optionally grant access permissions to others by - writing an access policy. For this operation, a user must have the - `s3:PutLifecycleConfiguration` permission. - - You can also explicitly deny permissions. An explicit deny also - supersedes any other permissions. If you want to block users or - accounts from removing or deleting objects from your bucket, you - must deny them permissions for the following actions: - - - `s3:DeleteObject` - - - `s3:DeleteObjectVersion` - - - `s3:PutLifecycleConfiguration` - - For more information about permissions, see [Managing Access - Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **Directory bucket permissions** - You must have the - `s3express:PutLifecycleConfiguration` permission in an IAM - identity-based policy to use this operation. Cross-account access to - this API operation isn't supported. The resource owner can - optionally grant access permissions to others by creating a role or - user for them as long as they are within the same account as the - owner and resource. - - For more information about directory bucket policies and - permissions, see [Authorizing Regional endpoint APIs with - IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + : - **General purpose bucket permissions** - By default, all Amazon S3 + resources are private, including buckets, objects, and related + subresources (for example, lifecycle configuration and website + configuration). Only the resource owner (that is, the Amazon Web + Services account that created it) can access the resource. The + resource owner can optionally grant access permissions to others + by writing an access policy. For this operation, a user must have + the `s3:PutLifecycleConfiguration` permission. + + You can also explicitly deny permissions. An explicit deny also + supersedes any other permissions. If you want to block users or + accounts from removing or deleting objects from your bucket, you + must deny them permissions for the following actions: + + - `s3:DeleteObject` + + - `s3:DeleteObjectVersion` + + - `s3:PutLifecycleConfiguration` + + For more information about permissions, see [Managing Access + Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + + - **Directory bucket permissions** - You must have the + `s3express:PutLifecycleConfiguration` permission in an IAM + identity-based policy to use this operation. Cross-account access + to this API operation isn't supported. The resource owner can + optionally grant access permissions to others by creating a role + or user for them as long as they are within the same account as + the owner and resource. + + For more information about directory bucket policies and + permissions, see [Authorizing Regional endpoint APIs with + IAM](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. - Note: + Note: **Directory buckets** - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format `https://s3express-control.`*`region-code`*`.amazonaws.com/`*`bucket-name`*` `. Virtual-hosted-style requests aren't supported. For more - information about endpoints in Availability Zones, see [Regional and - Zonal endpoints for directory buckets in Availability + information about endpoints in Availability Zones, see [Regional + and Zonal endpoints for directory buckets in Availability Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html) - in the *Amazon S3 User Guide*. For more information about endpoints - in Local Zones, see [Concepts for directory buckets in Local + in the *Amazon S3 User Guide*. For more information about + endpoints in Local Zones, see [Concepts for directory buckets in + Local Zones](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html) in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region`*`.amazonaws.com`. - The following operations are related to - `PutBucketLifecycleConfiguration`: + The following operations are related to + `PutBucketLifecycleConfiguration`: - - [GetBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) + - [GetBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) - - [DeleteBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html) + - [DeleteBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html) Warning: You must URL encode any signed header values that contain spaces. For @@ -7384,8 +9040,6 @@ def put_bucket_lifecycle_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketLifecycleConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7395,12 +9049,35 @@ def put_bucket_lifecycle_configuration( Returns: An instance of `PutBucketLifecycleConfigurationOutput`. """ + + def put_bucket_lifecycle_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketLifecycleConfigurationOutput: return self._invoke( - input, _models.PUT_BUCKET_LIFECYCLE_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_LIFECYCLE_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_LIFECYCLE_CONFIGURATION, + [], + plugins, ) + @_overload def put_bucket_logging( - self, input: PutBucketLoggingInput, plugins: list[Plugin] | None = None + self, + request: _models.PutBucketLoggingInput | _models.PutBucketLoggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketLoggingOutput: ... + + @_overload + def put_bucket_logging( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketLoggingInputDict], ) -> PutBucketLoggingOutput: """ Warning: @@ -7436,29 +9113,30 @@ def put_bucket_logging( Grantee Values - : You can specify the person (grantee) to whom you're assigning access - rights (by using request elements) in the following ways. For examples - of how to specify these grantee values in JSON format, see the Amazon - Web Services CLI example in [Enabling Amazon S3 server access - logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) - in the *Amazon S3 User Guide*. + : You can specify the person (grantee) to whom you're assigning + access rights (by using request elements) in the following ways. For + examples of how to specify these grantee values in JSON format, see + the Amazon Web Services CLI example in [Enabling Amazon S3 server + access + logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) + in the *Amazon S3 User Guide*. - - By the person's ID: + - By the person's ID: - ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} + ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} - `DisplayName` is optional and ignored in the request. + `DisplayName` is optional and ignored in the request. - - By Email address: + - By Email address: - ` ```{=html}``{=html}`<>Grantees@email.com<>```{=html}``{=html} + ` ```{=html}``{=html}`<>Grantees@email.com<>```{=html}``{=html} - The grantee is resolved to the `CanonicalUser` and, in a response to - a `GETObjectAcl` request, appears as the CanonicalUser. + The grantee is resolved to the `CanonicalUser` and, in a response + to a `GETObjectAcl` request, appears as the CanonicalUser. - - By URI: + - By URI: - ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} + ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} To enable logging, you use `LoggingEnabled` and its children request elements. To disable logging, you use an empty `BucketLoggingStatus` @@ -7491,8 +9169,6 @@ def put_bucket_logging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketLoggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7502,12 +9178,34 @@ def put_bucket_logging( Returns: An instance of `PutBucketLoggingOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_LOGGING, [], plugins) + def put_bucket_logging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketLoggingOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_LOGGING, args, kwargs), + _models.PUT_BUCKET_LOGGING, + [], + plugins, + ) + + @_overload + def put_bucket_metrics_configuration( + self, + request: _models.PutBucketMetricsConfigurationInput + | _models.PutBucketMetricsConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketMetricsConfigurationOutput: ... + + @_overload def put_bucket_metrics_configuration( self, - input: PutBucketMetricsConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketMetricsConfigurationInputDict], ) -> PutBucketMetricsConfigurationOutput: """ Sets a metrics configuration (specified by the metrics configuration ID) @@ -7532,37 +9230,37 @@ def put_bucket_metrics_configuration( Permissions - : To use this operation, you must have permissions to perform the - `s3:PutMetricsConfiguration` action. The bucket owner has this - permission by default. The bucket owner can grant this permission to - others. For more information about permissions, see [Permissions - Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - - **General purpose bucket permissions** - The - `s3:PutMetricsConfiguration` permission is required in a policy. For - more information about general purpose buckets permissions, see - [Using Bucket Policies and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:PutMetricsConfiguration` action. The bucket owner has this + permission by default. The bucket owner can grant this permission to + others. For more information about permissions, see [Permissions + Related to Bucket Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutMetricsConfiguration` - permission in an IAM identity-based policy instead of a bucket - policy. Cross-account access to this API operation isn't supported. - This operation can only be performed by the Amazon Web Services - account that owns the resource. For more information about directory - bucket policies and permissions, see [Amazon Web Services Identity - and Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + - **General purpose bucket permissions** - The + `s3:PutMetricsConfiguration` permission is required in a policy. + For more information about general purpose buckets permissions, + see [Using Bucket Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutMetricsConfiguration` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. For information about CloudWatch request metrics for Amazon S3, see [Monitoring Metrics with Amazon @@ -7591,8 +9289,6 @@ def put_bucket_metrics_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketMetricsConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7602,14 +9298,34 @@ def put_bucket_metrics_configuration( Returns: An instance of `PutBucketMetricsConfigurationOutput`. """ + + def put_bucket_metrics_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketMetricsConfigurationOutput: return self._invoke( - input, _models.PUT_BUCKET_METRICS_CONFIGURATION, [], plugins + self._select_input(_models.PUT_BUCKET_METRICS_CONFIGURATION, args, kwargs), + _models.PUT_BUCKET_METRICS_CONFIGURATION, + [], + plugins, ) + @_overload + def put_bucket_notification_configuration( + self, + request: _models.PutBucketNotificationConfigurationInput + | _models.PutBucketNotificationConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketNotificationConfigurationOutput: ... + + @_overload def put_bucket_notification_configuration( self, - input: PutBucketNotificationConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketNotificationConfigurationInputDict], ) -> PutBucketNotificationConfigurationOutput: """ Note: @@ -7683,8 +9399,6 @@ def put_bucket_notification_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketNotificationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7694,14 +9408,36 @@ def put_bucket_notification_configuration( Returns: An instance of `PutBucketNotificationConfigurationOutput`. """ + + def put_bucket_notification_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketNotificationConfigurationOutput: return self._invoke( - input, _models.PUT_BUCKET_NOTIFICATION_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_BUCKET_NOTIFICATION_CONFIGURATION, args, kwargs + ), + _models.PUT_BUCKET_NOTIFICATION_CONFIGURATION, + [], + plugins, ) + @_overload + def put_bucket_ownership_controls( + self, + request: _models.PutBucketOwnershipControlsInput + | _models.PutBucketOwnershipControlsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketOwnershipControlsOutput: ... + + @_overload def put_bucket_ownership_controls( self, - input: PutBucketOwnershipControlsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketOwnershipControlsInputDict], ) -> PutBucketOwnershipControlsOutput: """ Note: @@ -7728,8 +9464,6 @@ def put_bucket_ownership_controls( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketOwnershipControlsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7739,10 +9473,33 @@ def put_bucket_ownership_controls( Returns: An instance of `PutBucketOwnershipControlsOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_OWNERSHIP_CONTROLS, [], plugins) + def put_bucket_ownership_controls( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketOwnershipControlsOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_OWNERSHIP_CONTROLS, args, kwargs), + _models.PUT_BUCKET_OWNERSHIP_CONTROLS, + [], + plugins, + ) + + @_overload + def put_bucket_policy( + self, + request: _models.PutBucketPolicyInput | _models.PutBucketPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketPolicyOutput: ... + + @_overload def put_bucket_policy( - self, input: PutBucketPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketPolicyInputDict], ) -> PutBucketPolicyOutput: """ Applies an Amazon S3 bucket policy to an Amazon S3 bucket. @@ -7763,60 +9520,61 @@ def put_bucket_policy( Permissions - : If you are using an identity other than the root user of the Amazon - Web Services account that owns the bucket, the calling identity must - both have the `PutBucketPolicy` permissions on the specified bucket - and belong to the bucket owner's account in order to use this - operation. - - If you don't have `PutBucketPolicy` permissions, Amazon S3 returns a - `403 Access Denied` error. If you have the correct permissions, but - you're not using an identity that belongs to the bucket owner's - account, Amazon S3 returns a `405 Method Not Allowed` error. - - Warning: - To ensure that bucket owners don't inadvertently lock themselves out - of their own buckets, the root principal in a bucket owner's Amazon - Web Services account can perform the `GetBucketPolicy`, - `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if their - bucket policy explicitly denies the root principal's access. Bucket - owner root principals can only be blocked from performing these API - actions by VPC endpoint policies and Amazon Web Services Organizations - policies. - - **General purpose bucket permissions** - The `s3:PutBucketPolicy` - permission is required in a policy. For more information about - general purpose buckets bucket policies, see [Using Bucket Policies - and User - Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) - in the *Amazon S3 User Guide*. + : If you are using an identity other than the root user of the Amazon + Web Services account that owns the bucket, the calling identity must + both have the `PutBucketPolicy` permissions on the specified bucket + and belong to the bucket owner's account in order to use this + operation. - - **Directory bucket permissions** - To grant access to this API - operation, you must have the `s3express:PutBucketPolicy` permission - in an IAM identity-based policy instead of a bucket policy. - Cross-account access to this API operation isn't supported. This - operation can only be performed by the Amazon Web Services account - that owns the resource. For more information about directory bucket - policies and permissions, see [Amazon Web Services Identity and - Access Management (IAM) for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) - in the *Amazon S3 User Guide*. + If you don't have `PutBucketPolicy` permissions, Amazon S3 returns + a `403 Access Denied` error. If you have the correct permissions, + but you're not using an identity that belongs to the bucket + owner's account, Amazon S3 returns a `405 Method Not Allowed` + error. + + Warning: + To ensure that bucket owners don't inadvertently lock themselves + out of their own buckets, the root principal in a bucket owner's + Amazon Web Services account can perform the `GetBucketPolicy`, + `PutBucketPolicy`, and `DeleteBucketPolicy` API actions, even if + their bucket policy explicitly denies the root principal's access. + Bucket owner root principals can only be blocked from performing + these API actions by VPC endpoint policies and Amazon Web Services + Organizations policies. + - **General purpose bucket permissions** - The `s3:PutBucketPolicy` + permission is required in a policy. For more information about + general purpose buckets bucket policies, see [Using Bucket + Policies and User + Policies](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - To grant access to this API + operation, you must have the `s3express:PutBucketPolicy` + permission in an IAM identity-based policy instead of a bucket + policy. Cross-account access to this API operation isn't + supported. This operation can only be performed by the Amazon Web + Services account that owns the resource. For more information + about directory bucket policies and permissions, see [Amazon Web + Services Identity and Access Management (IAM) for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html) + in the *Amazon S3 User Guide*. Example bucket policies - : **General purpose buckets example bucket policies** - See [Bucket - policy - examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) - in the *Amazon S3 User Guide*. + : **General purpose buckets example bucket policies** - See [Bucket + policy + examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) + in the *Amazon S3 User Guide*. - **Directory bucket example bucket policies** - See [Example bucket - policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - in the *Amazon S3 User Guide*. + **Directory bucket example bucket policies** - See [Example bucket + policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - `s3express-control.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + `s3express-control.`*`region-code`*`.amazonaws.com`. The following operations are related to `PutBucketPolicy`: @@ -7830,8 +9588,6 @@ def put_bucket_policy( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7841,10 +9597,34 @@ def put_bucket_policy( Returns: An instance of `PutBucketPolicyOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_POLICY, [], plugins) + def put_bucket_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketPolicyOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_POLICY, args, kwargs), + _models.PUT_BUCKET_POLICY, + [], + plugins, + ) + + @_overload + def put_bucket_replication( + self, + request: _models.PutBucketReplicationInput + | _models.PutBucketReplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketReplicationOutput: ... + + @_overload def put_bucket_replication( - self, input: PutBucketReplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketReplicationInputDict], ) -> PutBucketReplicationOutput: """ Note: @@ -7887,36 +9667,36 @@ def put_bucket_replication( Handling Replication of Encrypted Objects - : By default, Amazon S3 doesn't replicate objects that are stored at - rest using server-side encryption with KMS keys. To replicate Amazon - Web Services KMS-encrypted objects, add the following: - `SourceSelectionCriteria`, `SseKmsEncryptedObjects`, `Status`, - `EncryptionConfiguration`, and `ReplicaKmsKeyID`. For information - about replication configuration, see [Replicating Objects Created with - SSE Using KMS - keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-config-for-kms-objects.html). + : By default, Amazon S3 doesn't replicate objects that are stored at + rest using server-side encryption with KMS keys. To replicate Amazon + Web Services KMS-encrypted objects, add the following: + `SourceSelectionCriteria`, `SseKmsEncryptedObjects`, `Status`, + `EncryptionConfiguration`, and `ReplicaKmsKeyID`. For information + about replication configuration, see [Replicating Objects Created + with SSE Using KMS + keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-config-for-kms-objects.html). - For information on `PutBucketReplication` errors, see [List of - replication-related error - codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ReplicationErrorCodeList) + For information on `PutBucketReplication` errors, see [List of + replication-related error + codes](https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ReplicationErrorCodeList) Permissions - : To create a `PutBucketReplication` request, you must have - `s3:PutReplicationConfiguration` permissions for the bucket. + : To create a `PutBucketReplication` request, you must have + `s3:PutReplicationConfiguration` permissions for the bucket. - By default, a resource owner, in this case the Amazon Web Services - account that created the bucket, can perform this operation. The - resource owner can also grant others permissions to perform the - operation. For more information about permissions, see [Specifying - Permissions in a - Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). + By default, a resource owner, in this case the Amazon Web Services + account that created the bucket, can perform this operation. The + resource owner can also grant others permissions to perform the + operation. For more information about permissions, see [Specifying + Permissions in a + Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html). - Note: - To perform this operation, the user or role performing the action must - have the + Note: + To perform this operation, the user or role performing the action + must have the [iam:PassRole](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html) permission. @@ -7932,8 +9712,6 @@ def put_bucket_replication( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7943,10 +9721,34 @@ def put_bucket_replication( Returns: An instance of `PutBucketReplicationOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_REPLICATION, [], plugins) + def put_bucket_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketReplicationOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_REPLICATION, args, kwargs), + _models.PUT_BUCKET_REPLICATION, + [], + plugins, + ) + + @_overload def put_bucket_request_payment( - self, input: PutBucketRequestPaymentInput, plugins: list[Plugin] | None = None + self, + request: _models.PutBucketRequestPaymentInput + | _models.PutBucketRequestPaymentInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketRequestPaymentOutput: ... + + @_overload + def put_bucket_request_payment( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketRequestPaymentInputDict], ) -> PutBucketRequestPaymentOutput: """ Note: @@ -7971,8 +9773,6 @@ def put_bucket_request_payment( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketRequestPaymentInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -7982,10 +9782,33 @@ def put_bucket_request_payment( Returns: An instance of `PutBucketRequestPaymentOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_REQUEST_PAYMENT, [], plugins) + def put_bucket_request_payment( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketRequestPaymentOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_REQUEST_PAYMENT, args, kwargs), + _models.PUT_BUCKET_REQUEST_PAYMENT, + [], + plugins, + ) + + @_overload + def put_bucket_tagging( + self, + request: _models.PutBucketTaggingInput | _models.PutBucketTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketTaggingOutput: ... + + @_overload def put_bucket_tagging( - self, input: PutBucketTaggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketTaggingInputDict], ) -> PutBucketTaggingOutput: """ Note: @@ -8055,8 +9878,6 @@ def put_bucket_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8066,10 +9887,34 @@ def put_bucket_tagging( Returns: An instance of `PutBucketTaggingOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_TAGGING, [], plugins) + def put_bucket_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketTaggingOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_TAGGING, args, kwargs), + _models.PUT_BUCKET_TAGGING, + [], + plugins, + ) + + @_overload + def put_bucket_versioning( + self, + request: _models.PutBucketVersioningInput + | _models.PutBucketVersioningInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketVersioningOutput: ... + + @_overload def put_bucket_versioning( - self, input: PutBucketVersioningInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketVersioningInputDict], ) -> PutBucketVersioningOutput: """ Note: @@ -8129,8 +9974,6 @@ def put_bucket_versioning( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketVersioningInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8140,10 +9983,33 @@ def put_bucket_versioning( Returns: An instance of `PutBucketVersioningOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_VERSIONING, [], plugins) + def put_bucket_versioning( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketVersioningOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_VERSIONING, args, kwargs), + _models.PUT_BUCKET_VERSIONING, + [], + plugins, + ) + + @_overload + def put_bucket_website( + self, + request: _models.PutBucketWebsiteInput | _models.PutBucketWebsiteInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutBucketWebsiteOutput: ... + + @_overload def put_bucket_website( - self, input: PutBucketWebsiteInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutBucketWebsiteInputDict], ) -> PutBucketWebsiteOutput: """ Note: @@ -8227,8 +10093,6 @@ def put_bucket_website( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutBucketWebsiteInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8238,10 +10102,33 @@ def put_bucket_website( Returns: An instance of `PutBucketWebsiteOutput`. """ - return self._invoke(input, _models.PUT_BUCKET_WEBSITE, [], plugins) + def put_bucket_website( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutBucketWebsiteOutput: + return self._invoke( + self._select_input(_models.PUT_BUCKET_WEBSITE, args, kwargs), + _models.PUT_BUCKET_WEBSITE, + [], + plugins, + ) + + @_overload + def put_object( + self, + request: _models.PutObjectInput | _models.PutObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectOutput: ... + + @_overload def put_object( - self, input: PutObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectInputDict], ) -> PutObjectOutput: """ Warning: @@ -8331,74 +10218,76 @@ def put_object( Permissions - : - **General purpose bucket permissions** - The following permissions - are required in your policies when your `PutObject` request includes - specific headers. - - - **`s3:PutObject`** - To successfully complete the `PutObject` - request, you must always have the `s3:PutObject` permission on a - bucket to add an object to it. - - - **`s3:PutObjectAcl`** - To successfully change the objects ACL of - your `PutObject` request, you must have the `s3:PutObjectAcl`. - - - **`s3:PutObjectTagging`** - To successfully set the tag-set with - your `PutObject` request, you must have the `s3:PutObjectTagging`. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . - - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + : - **General purpose bucket permissions** - The following permissions + are required in your policies when your `PutObject` request + includes specific headers. + + - **`s3:PutObject`** - To successfully complete the `PutObject` + request, you must always have the `s3:PutObject` permission on a + bucket to add an object to it. + + - **`s3:PutObjectAcl`** - To successfully change the objects ACL + of your `PutObject` request, you must have the + `s3:PutObjectAcl`. + + - **`s3:PutObjectTagging`** - To successfully set the tag-set with + your `PutObject` request, you must have the + `s3:PutObjectTagging`. + + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Data integrity with Content-MD5 - : - **General purpose bucket** - To ensure that data is not corrupted - traversing the network, use the `Content-MD5` header. When you use - this header, Amazon S3 checks the object against the provided MD5 - value and, if they do not match, Amazon S3 returns an error. - Alternatively, when the object's ETag is its MD5 digest, you can - calculate the MD5 while putting the object to Amazon S3 and compare - the returned ETag to the calculated MD5 value. + : - **General purpose bucket** - To ensure that data is not corrupted + traversing the network, use the `Content-MD5` header. When you use + this header, Amazon S3 checks the object against the provided MD5 + value and, if they do not match, Amazon S3 returns an error. + Alternatively, when the object's ETag is its MD5 digest, you can + calculate the MD5 while putting the object to Amazon S3 and + compare the returned ETag to the calculated MD5 value. - - **Directory bucket** - This functionality is not supported for - directory buckets. + - **Directory bucket** - This functionality is not supported for + directory buckets. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Errors - : - You might receive an `InvalidRequest` error for several reasons. - Depending on the reason for the error, you might receive one of the - following messages: + : - You might receive an `InvalidRequest` error for several reasons. + Depending on the reason for the error, you might receive one of + the following messages: - - Cannot specify both a write offset value and user-defined object - metadata for existing objects. + - Cannot specify both a write offset value and user-defined object + metadata for existing objects. - - Checksum Type mismatch occurred, expected checksum Type: sha1, - actual checksum Type: crc32c. + - Checksum Type mismatch occurred, expected checksum Type: sha1, + actual checksum Type: crc32c. - - Request body cannot be empty when 'write offset' is specified. + - Request body cannot be empty when 'write offset' is specified. For more information about related Amazon S3 APIs, see the following: @@ -8412,8 +10301,6 @@ def put_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8423,10 +10310,33 @@ def put_object( Returns: An instance of `PutObjectOutput`. """ - return self._invoke(input, _models.PUT_OBJECT, [], plugins) + def put_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectOutput: + return self._invoke( + self._select_input(_models.PUT_OBJECT, args, kwargs), + _models.PUT_OBJECT, + [], + plugins, + ) + + @_overload + def put_object_acl( + self, + request: _models.PutObjectAclInput | _models.PutObjectAclInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectAclOutput: ... + + @_overload def put_object_acl( - self, input: PutObjectAclInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectAclInputDict], ) -> PutObjectAclOutput: """ Warning: @@ -8471,39 +10381,39 @@ def put_object_acl( Permissions - : You can set access permissions using one of the following methods: + : You can set access permissions using one of the following methods: - - Specify a canned ACL with the `x-amz-acl` request header. Amazon S3 - supports a set of predefined ACLs, known as canned ACLs. Each canned - ACL has a predefined set of grantees and permissions. Specify the - canned ACL name as the value of `x-amz-ac`l. If you use this header, - you cannot use other access control-specific headers in your - request. For more information, see [Canned - ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). + - Specify a canned ACL with the `x-amz-acl` request header. Amazon + S3 supports a set of predefined ACLs, known as canned ACLs. Each + canned ACL has a predefined set of grantees and permissions. + Specify the canned ACL name as the value of `x-amz-ac`l. If you + use this header, you cannot use other access control-specific + headers in your request. For more information, see [Canned + ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). - - Specify access permissions explicitly with the `x-amz-grant-read`, - `x-amz-grant-read-acp`, `x-amz-grant-write-acp`, and - `x-amz-grant-full-control` headers. When using these headers, you - specify explicit access permissions and grantees (Amazon Web - Services accounts or Amazon S3 groups) who will receive the - permission. If you use these ACL-specific headers, you cannot use - `x-amz-acl` header to set a canned ACL. These parameters map to the - set of permissions that Amazon S3 supports in an ACL. For more - information, see [Access Control List (ACL) - Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). + - Specify access permissions explicitly with the `x-amz-grant-read`, + `x-amz-grant-read-acp`, `x-amz-grant-write-acp`, and + `x-amz-grant-full-control` headers. When using these headers, you + specify explicit access permissions and grantees (Amazon Web + Services accounts or Amazon S3 groups) who will receive the + permission. If you use these ACL-specific headers, you cannot use + `x-amz-acl` header to set a canned ACL. These parameters map to + the set of permissions that Amazon S3 supports in an ACL. For more + information, see [Access Control List (ACL) + Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). - You specify each grantee as a type=value pair, where the type is one - of the following: + You specify each grantee as a type=value pair, where the type is + one of the following: - - `id` -- if the value specified is the canonical user ID of an - Amazon Web Services account + - `id` -- if the value specified is the canonical user ID of an + Amazon Web Services account - - `uri` -- if you are granting permissions to a predefined group + - `uri` -- if you are granting permissions to a predefined group - - `emailAddress` -- if the value specified is the email address of - an Amazon Web Services account + - `emailAddress` -- if the value specified is the email address of + an Amazon Web Services account - Note: + Note: Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: @@ -8528,44 +10438,45 @@ def put_object_acl( Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the Amazon Web Services General Reference. - For example, the following `x-amz-grant-read` header grants list - objects permission to the two Amazon Web Services accounts - identified by their email addresses. + For example, the following `x-amz-grant-read` header grants list + objects permission to the two Amazon Web Services accounts + identified by their email addresses. - `x-amz-grant-read: emailAddress="xyz@amazon.com", emailAddress="abc@amazon.com" ` + `x-amz-grant-read: emailAddress="xyz@amazon.com", emailAddress="abc@amazon.com" ` - You can use either a canned ACL or specify access permissions - explicitly. You cannot do both. + You can use either a canned ACL or specify access permissions + explicitly. You cannot do both. Grantee Values - : You can specify the person (grantee) to whom you're assigning access - rights (using request elements) in the following ways. For examples of - how to specify these grantee values in JSON format, see the Amazon Web - Services CLI example in [Enabling Amazon S3 server access - logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) - in the *Amazon S3 User Guide*. + : You can specify the person (grantee) to whom you're assigning + access rights (using request elements) in the following ways. For + examples of how to specify these grantee values in JSON format, see + the Amazon Web Services CLI example in [Enabling Amazon S3 server + access + logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html) + in the *Amazon S3 User Guide*. - - By the person's ID: + - By the person's ID: - ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} + ``{=html}``{=html}`<>ID<>```{=html}``{=html}`<>GranteesEmail<>```{=html}` ```{=html} - DisplayName is optional and ignored in the request. + DisplayName is optional and ignored in the request. - - By URI: + - By URI: - ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} + ``{=html}``{=html}`<>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<>```{=html}``{=html} - - By Email address: + - By Email address: - ``{=html}``{=html}`<>Grantees@email.com<>```{=html}`lt;/Grantee>` + ``{=html}``{=html}`<>Grantees@email.com<>```{=html}`lt;/Grantee>` - The grantee is resolved to the CanonicalUser and, in a response to a - GET Object acl request, appears as the CanonicalUser. + The grantee is resolved to the CanonicalUser and, in a response to + a GET Object acl request, appears as the CanonicalUser. - Note: - Using email addresses to specify a grantee is only supported in the - following Amazon Web Services Regions: + Note: + Using email addresses to specify a grantee is only supported in + the following Amazon Web Services Regions: - US East (N. Virginia) @@ -8583,16 +10494,16 @@ def put_object_acl( - South America (São Paulo) - For a list of all the Amazon S3 supported Regions and endpoints, see - [Regions and + For a list of all the Amazon S3 supported Regions and endpoints, + see [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the Amazon Web Services General Reference. Versioning - : The ACL of an object is set at the object version level. By default, - PUT sets the ACL of the current version of an object. To set the ACL - of a different version, use the `versionId` subresource. + : The ACL of an object is set at the object version level. By default, + PUT sets the ACL of the current version of an object. To set the ACL + of a different version, use the `versionId` subresource. The following operations are related to `PutObjectAcl`: @@ -8606,8 +10517,6 @@ def put_object_acl( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectAclInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8617,10 +10526,34 @@ def put_object_acl( Returns: An instance of `PutObjectAclOutput`. """ - return self._invoke(input, _models.PUT_OBJECT_ACL, [], plugins) + def put_object_acl( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectAclOutput: + return self._invoke( + self._select_input(_models.PUT_OBJECT_ACL, args, kwargs), + _models.PUT_OBJECT_ACL, + [], + plugins, + ) + + @_overload + def put_object_annotation( + self, + request: _models.PutObjectAnnotationInput + | _models.PutObjectAnnotationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectAnnotationOutput: ... + + @_overload def put_object_annotation( - self, input: PutObjectAnnotationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectAnnotationInputDict], ) -> PutObjectAnnotationOutput: """ Attaches an annotation to an Amazon S3 object. An annotation is a named @@ -8654,8 +10587,6 @@ def put_object_annotation( - [DeleteObjectAnnotation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectAnnotation.html) Args: - input: - An instance of `PutObjectAnnotationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8665,10 +10596,33 @@ def put_object_annotation( Returns: An instance of `PutObjectAnnotationOutput`. """ - return self._invoke(input, _models.PUT_OBJECT_ANNOTATION, [], plugins) + def put_object_annotation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectAnnotationOutput: + return self._invoke( + self._select_input(_models.PUT_OBJECT_ANNOTATION, args, kwargs), + _models.PUT_OBJECT_ANNOTATION, + [], + plugins, + ) + + @_overload + def put_object_legal_hold( + self, + request: _models.PutObjectLegalHoldInput | _models.PutObjectLegalHoldInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectLegalHoldOutput: ... + + @_overload def put_object_legal_hold( - self, input: PutObjectLegalHoldInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectLegalHoldInputDict], ) -> PutObjectLegalHoldOutput: """ Note: @@ -8686,8 +10640,6 @@ def put_object_legal_hold( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectLegalHoldInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8697,12 +10649,34 @@ def put_object_legal_hold( Returns: An instance of `PutObjectLegalHoldOutput`. """ - return self._invoke(input, _models.PUT_OBJECT_LEGAL_HOLD, [], plugins) + def put_object_legal_hold( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectLegalHoldOutput: + return self._invoke( + self._select_input(_models.PUT_OBJECT_LEGAL_HOLD, args, kwargs), + _models.PUT_OBJECT_LEGAL_HOLD, + [], + plugins, + ) + + @_overload + def put_object_lock_configuration( + self, + request: _models.PutObjectLockConfigurationInput + | _models.PutObjectLockConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectLockConfigurationOutput: ... + + @_overload def put_object_lock_configuration( self, - input: PutObjectLockConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectLockConfigurationInputDict], ) -> PutObjectLockConfigurationOutput: """ Note: @@ -8730,8 +10704,6 @@ def put_object_lock_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectLockConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8741,10 +10713,33 @@ def put_object_lock_configuration( Returns: An instance of `PutObjectLockConfigurationOutput`. """ - return self._invoke(input, _models.PUT_OBJECT_LOCK_CONFIGURATION, [], plugins) + def put_object_lock_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectLockConfigurationOutput: + return self._invoke( + self._select_input(_models.PUT_OBJECT_LOCK_CONFIGURATION, args, kwargs), + _models.PUT_OBJECT_LOCK_CONFIGURATION, + [], + plugins, + ) + + @_overload + def put_object_retention( + self, + request: _models.PutObjectRetentionInput | _models.PutObjectRetentionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectRetentionOutput: ... + + @_overload def put_object_retention( - self, input: PutObjectRetentionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectRetentionInputDict], ) -> PutObjectRetentionOutput: """ Note: @@ -8766,8 +10761,6 @@ def put_object_retention( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectRetentionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8777,10 +10770,33 @@ def put_object_retention( Returns: An instance of `PutObjectRetentionOutput`. """ - return self._invoke(input, _models.PUT_OBJECT_RETENTION, [], plugins) + def put_object_retention( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectRetentionOutput: + return self._invoke( + self._select_input(_models.PUT_OBJECT_RETENTION, args, kwargs), + _models.PUT_OBJECT_RETENTION, + [], + plugins, + ) + + @_overload + def put_object_tagging( + self, + request: _models.PutObjectTaggingInput | _models.PutObjectTaggingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutObjectTaggingOutput: ... + + @_overload def put_object_tagging( - self, input: PutObjectTaggingInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutObjectTaggingInputDict], ) -> PutObjectTaggingOutput: """ Note: @@ -8837,8 +10853,6 @@ def put_object_tagging( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutObjectTaggingInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8848,10 +10862,34 @@ def put_object_tagging( Returns: An instance of `PutObjectTaggingOutput`. """ - return self._invoke(input, _models.PUT_OBJECT_TAGGING, [], plugins) + def put_object_tagging( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutObjectTaggingOutput: + return self._invoke( + self._select_input(_models.PUT_OBJECT_TAGGING, args, kwargs), + _models.PUT_OBJECT_TAGGING, + [], + plugins, + ) + + @_overload + def put_public_access_block( + self, + request: _models.PutPublicAccessBlockInput + | _models.PutPublicAccessBlockInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutPublicAccessBlockOutput: ... + + @_overload def put_public_access_block( - self, input: PutPublicAccessBlockInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutPublicAccessBlockInputDict], ) -> PutPublicAccessBlockOutput: """ Note: @@ -8894,8 +10932,6 @@ def put_public_access_block( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `PutPublicAccessBlockInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8905,10 +10941,33 @@ def put_public_access_block( Returns: An instance of `PutPublicAccessBlockOutput`. """ - return self._invoke(input, _models.PUT_PUBLIC_ACCESS_BLOCK, [], plugins) + def put_public_access_block( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutPublicAccessBlockOutput: + return self._invoke( + self._select_input(_models.PUT_PUBLIC_ACCESS_BLOCK, args, kwargs), + _models.PUT_PUBLIC_ACCESS_BLOCK, + [], + plugins, + ) + + @_overload def rename_object( - self, input: RenameObjectInput, plugins: list[Plugin] | None = None + self, + request: _models.RenameObjectInput | _models.RenameObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RenameObjectOutput: ... + + @_overload + def rename_object( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RenameObjectInputDict], ) -> RenameObjectOutput: """ Renames an existing object in a directory bucket that uses the S3 @@ -8934,33 +10993,33 @@ def rename_object( Permissions - : To grant access to the `RenameObject` operation on a directory bucket, - we recommend that you use the `CreateSession` operation for - session-based authorization. Specifically, you grant the - `s3express:CreateSession` permission to the directory bucket in a - bucket policy or an IAM identity-based policy. Then, you make the - `CreateSession` API call on the directory bucket to obtain a session - token. With the session token in your request header, you can make API - requests to this operation. After the session token expires, you make - another `CreateSession` API call to generate a new session token for - use. The Amazon Web Services CLI and SDKs will create and manage your - session including refreshing the session token automatically to avoid - service interruptions when a session expires. In your bucket policy, - you can specify the `s3express:SessionMode` condition key to control - who can create a `ReadWrite` or `ReadOnly` session. A `ReadWrite` - session is required for executing all the Zonal endpoint API - operations, including `RenameObject`. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . To learn more about Zonal endpoint API operations, see [Authorizing - Zonal endpoint API operations with - CreateSession](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-create-session.html) - in the *Amazon S3 User Guide*. + : To grant access to the `RenameObject` operation on a directory + bucket, we recommend that you use the `CreateSession` operation for + session-based authorization. Specifically, you grant the + `s3express:CreateSession` permission to the directory bucket in a + bucket policy or an IAM identity-based policy. Then, you make the + `CreateSession` API call on the directory bucket to obtain a session + token. With the session token in your request header, you can make + API requests to this operation. After the session token expires, you + make another `CreateSession` API call to generate a new session + token for use. The Amazon Web Services CLI and SDKs will create and + manage your session including refreshing the session token + automatically to avoid service interruptions when a session expires. + In your bucket policy, you can specify the `s3express:SessionMode` + condition key to control who can create a `ReadWrite` or `ReadOnly` + session. A `ReadWrite` session is required for executing all the + Zonal endpoint API operations, including `RenameObject`. For more + information about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . To learn more about Zonal endpoint API operations, see + [Authorizing Zonal endpoint API operations with + CreateSession](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-create-session.html) + in the *Amazon S3 User Guide*. HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. Warning: You must URL encode any signed header values that contain spaces. For @@ -8968,8 +11027,6 @@ def rename_object( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `RenameObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -8979,10 +11036,33 @@ def rename_object( Returns: An instance of `RenameObjectOutput`. """ - return self._invoke(input, _models.RENAME_OBJECT, [], plugins) + def rename_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RenameObjectOutput: + return self._invoke( + self._select_input(_models.RENAME_OBJECT, args, kwargs), + _models.RENAME_OBJECT, + [], + plugins, + ) + + @_overload + def restore_object( + self, + request: _models.RestoreObjectInput | _models.RestoreObjectInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreObjectOutput: ... + + @_overload def restore_object( - self, input: RestoreObjectInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreObjectInputDict], ) -> RestoreObjectOutput: """ Note: @@ -9011,140 +11091,143 @@ def restore_object( Permissions - : To use this operation, you must have permissions to perform the - `s3:RestoreObject` action. The bucket owner has this permission by - default and can grant this permission to others. For more information - about permissions, see [Permissions Related to Bucket Subresource - Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) - and [Managing Access Permissions to Your Amazon S3 - Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have permissions to perform the + `s3:RestoreObject` action. The bucket owner has this permission by + default and can grant this permission to others. For more + information about permissions, see [Permissions Related to Bucket + Subresource + Operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) + and [Managing Access Permissions to Your Amazon S3 + Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) + in the *Amazon S3 User Guide*. Restoring objects - : Objects that you archive to the S3 Glacier Flexible Retrieval or S3 - Glacier Deep Archive storage class, and S3 Intelligent-Tiering Archive - or S3 Intelligent-Tiering Deep Archive tiers, are not accessible in - real time. For objects in the S3 Glacier Flexible Retrieval or S3 - Glacier Deep Archive storage classes, you must first initiate a - restore request, and then wait until a temporary copy of the object is - available. If you want a permanent copy of the object, create a copy - of it in the Amazon S3 Standard storage class in your S3 bucket. To - access an archived object, you must restore the object for the - duration (number of days) that you specify. For objects in the Archive - Access or Deep Archive Access tiers of S3 Intelligent-Tiering, you - must first initiate a restore request, and then wait until the object - is moved into the Frequent Access tier. - - To restore a specific object version, you can provide a version ID. If - you don't provide a version ID, Amazon S3 restores the current - version. - - When restoring an archived object, you can specify one of the - following data access tier options in the `Tier` element of the - request body: - - - `Expedited` - Expedited retrievals allow you to quickly access your - data stored in the S3 Glacier Flexible Retrieval storage class or S3 - Intelligent-Tiering Archive tier when occasional urgent requests for - restoring archives are required. For all but the largest archived - objects (250 MB+), data accessed using Expedited retrievals is - typically made available within 1--5 minutes. Provisioned capacity - ensures that retrieval capacity for Expedited retrievals is - available when you need it. Expedited retrievals and provisioned - capacity are not available for objects stored in the S3 Glacier Deep - Archive storage class or S3 Intelligent-Tiering Deep Archive tier. - - - `Standard` - Standard retrievals allow you to access any of your - archived objects within several hours. This is the default option - for retrieval requests that do not specify the retrieval option. - Standard retrievals typically finish within 3--5 hours for objects - stored in the S3 Glacier Flexible Retrieval storage class or S3 - Intelligent-Tiering Archive tier. They typically finish within 12 - hours for objects stored in the S3 Glacier Deep Archive storage - class or S3 Intelligent-Tiering Deep Archive tier. Standard - retrievals are free for objects stored in S3 Intelligent-Tiering. - - - `Bulk` - Bulk retrievals free for objects stored in the S3 Glacier - Flexible Retrieval and S3 Intelligent-Tiering storage classes, - enabling you to retrieve large amounts, even petabytes, of data at - no cost. Bulk retrievals typically finish within 5--12 hours for - objects stored in the S3 Glacier Flexible Retrieval storage class or - S3 Intelligent-Tiering Archive tier. Bulk retrievals are also the - lowest-cost retrieval option when restoring objects from S3 Glacier - Deep Archive. They typically finish within 48 hours for objects - stored in the S3 Glacier Deep Archive storage class or S3 - Intelligent-Tiering Deep Archive tier. - - For more information about archive retrieval options and provisioned - capacity for `Expedited` data access, see [Restoring Archived - Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) - in the *Amazon S3 User Guide*. + : Objects that you archive to the S3 Glacier Flexible Retrieval or S3 + Glacier Deep Archive storage class, and S3 Intelligent-Tiering + Archive or S3 Intelligent-Tiering Deep Archive tiers, are not + accessible in real time. For objects in the S3 Glacier Flexible + Retrieval or S3 Glacier Deep Archive storage classes, you must first + initiate a restore request, and then wait until a temporary copy of + the object is available. If you want a permanent copy of the object, + create a copy of it in the Amazon S3 Standard storage class in your + S3 bucket. To access an archived object, you must restore the object + for the duration (number of days) that you specify. For objects in + the Archive Access or Deep Archive Access tiers of S3 + Intelligent-Tiering, you must first initiate a restore request, and + then wait until the object is moved into the Frequent Access tier. + + To restore a specific object version, you can provide a version ID. + If you don't provide a version ID, Amazon S3 restores the current + version. + + When restoring an archived object, you can specify one of the + following data access tier options in the `Tier` element of the + request body: + + - `Expedited` - Expedited retrievals allow you to quickly access + your data stored in the S3 Glacier Flexible Retrieval storage + class or S3 Intelligent-Tiering Archive tier when occasional + urgent requests for restoring archives are required. For all but + the largest archived objects (250 MB+), data accessed using + Expedited retrievals is typically made available within 1--5 + minutes. Provisioned capacity ensures that retrieval capacity for + Expedited retrievals is available when you need it. Expedited + retrievals and provisioned capacity are not available for objects + stored in the S3 Glacier Deep Archive storage class or S3 + Intelligent-Tiering Deep Archive tier. + + - `Standard` - Standard retrievals allow you to access any of your + archived objects within several hours. This is the default option + for retrieval requests that do not specify the retrieval option. + Standard retrievals typically finish within 3--5 hours for objects + stored in the S3 Glacier Flexible Retrieval storage class or S3 + Intelligent-Tiering Archive tier. They typically finish within 12 + hours for objects stored in the S3 Glacier Deep Archive storage + class or S3 Intelligent-Tiering Deep Archive tier. Standard + retrievals are free for objects stored in S3 Intelligent-Tiering. + + - `Bulk` - Bulk retrievals free for objects stored in the S3 Glacier + Flexible Retrieval and S3 Intelligent-Tiering storage classes, + enabling you to retrieve large amounts, even petabytes, of data at + no cost. Bulk retrievals typically finish within 5--12 hours for + objects stored in the S3 Glacier Flexible Retrieval storage class + or S3 Intelligent-Tiering Archive tier. Bulk retrievals are also + the lowest-cost retrieval option when restoring objects from S3 + Glacier Deep Archive. They typically finish within 48 hours for + objects stored in the S3 Glacier Deep Archive storage class or S3 + Intelligent-Tiering Deep Archive tier. + + For more information about archive retrieval options and provisioned + capacity for `Expedited` data access, see [Restoring Archived + Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) + in the *Amazon S3 User Guide*. - You can use Amazon S3 restore speed upgrade to change the restore - speed to a faster speed while it is in progress. For more information, - see [Upgrading the speed of an in-progress - restore](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html) - in the *Amazon S3 User Guide*. + You can use Amazon S3 restore speed upgrade to change the restore + speed to a faster speed while it is in progress. For more + information, see [Upgrading the speed of an in-progress + restore](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html#restoring-objects-upgrade-tier.title.html) + in the *Amazon S3 User Guide*. - To get the status of object restoration, you can send a `HEAD` - request. Operations return the `x-amz-restore` header, which provides - information about the restoration status, in the response. You can use - Amazon S3 event notifications to notify you when a restore is - initiated or completed. For more information, see [Configuring Amazon - S3 Event - Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) - in the *Amazon S3 User Guide*. + To get the status of object restoration, you can send a `HEAD` + request. Operations return the `x-amz-restore` header, which + provides information about the restoration status, in the response. + You can use Amazon S3 event notifications to notify you when a + restore is initiated or completed. For more information, see + [Configuring Amazon S3 Event + Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + in the *Amazon S3 User Guide*. - After restoring an archived object, you can update the restoration - period by reissuing the request with a new period. Amazon S3 updates - the restoration period relative to the current time and charges only - for the request-there are no data transfer charges. You cannot update - the restoration period when Amazon S3 is actively processing your - current restore request for the object. - - If your bucket has a lifecycle configuration with a rule that includes - an expiration action, the object expiration overrides the life span - that you specify in a restore request. For example, if you restore an - object copy for 10 days, but the object is scheduled to expire in 3 - days, Amazon S3 deletes the object in 3 days. For more information - about lifecycle configuration, see - [PutBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) - and [Object Lifecycle - Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) - in *Amazon S3 User Guide*. + After restoring an archived object, you can update the restoration + period by reissuing the request with a new period. Amazon S3 updates + the restoration period relative to the current time and charges only + for the request-there are no data transfer charges. You cannot + update the restoration period when Amazon S3 is actively processing + your current restore request for the object. + + If your bucket has a lifecycle configuration with a rule that + includes an expiration action, the object expiration overrides the + life span that you specify in a restore request. For example, if you + restore an object copy for 10 days, but the object is scheduled to + expire in 3 days, Amazon S3 deletes the object in 3 days. For more + information about lifecycle configuration, see + [PutBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) + and [Object Lifecycle + Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) + in *Amazon S3 User Guide*. Responses - : A successful action returns either the `200 OK` or `202 Accepted` - status code. + : A successful action returns either the `200 OK` or `202 Accepted` + status code. - - If the object is not previously restored, then Amazon S3 returns - `202 Accepted` in the response. + - If the object is not previously restored, then Amazon S3 returns + `202 Accepted` in the response. - - If the object is previously restored, Amazon S3 returns `200 OK` in - the response. + - If the object is previously restored, Amazon S3 returns `200 OK` + in the response. - - Special errors: + - Special errors: - - *Code: RestoreAlreadyInProgress* + - *Code: RestoreAlreadyInProgress* - - *Cause: Object restore is already in progress.* + - *Cause: Object restore is already in progress.* - - *HTTP Status Code: 409 Conflict* + - *HTTP Status Code: 409 Conflict* - - *SOAP Fault Code Prefix: Client* + - *SOAP Fault Code Prefix: Client* - - - *Code: GlacierExpeditedRetrievalNotAvailable* + - - *Code: GlacierExpeditedRetrievalNotAvailable* - - *Cause: expedited retrievals are currently not available. Try - again later. (Returned if there is insufficient capacity to - process the Expedited request. This error applies only to - Expedited retrievals and not to S3 Standard or Bulk retrievals.)* + - *Cause: expedited retrievals are currently not available. Try + again later. (Returned if there is insufficient capacity to + process the Expedited request. This error applies only to + Expedited retrievals and not to S3 Standard or Bulk + retrievals.)* - - *HTTP Status Code: 503* + - *HTTP Status Code: 503* - - *SOAP Fault Code Prefix: N/A* + - *SOAP Fault Code Prefix: N/A* The following operations are related to `RestoreObject`: @@ -9158,8 +11241,6 @@ class or S3 Intelligent-Tiering Deep Archive tier. Standard after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `RestoreObjectInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9169,12 +11250,36 @@ class or S3 Intelligent-Tiering Deep Archive tier. Standard Returns: An instance of `RestoreObjectOutput`. """ - return self._invoke(input, _models.RESTORE_OBJECT, [], plugins) + def restore_object( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreObjectOutput: + return self._invoke( + self._select_input(_models.RESTORE_OBJECT, args, kwargs), + _models.RESTORE_OBJECT, + [], + plugins, + ) + + @_overload + def update_bucket_metadata_annotation_table_configuration( + self, + request: _models.UpdateBucketMetadataAnnotationTableConfigurationInput + | _models.UpdateBucketMetadataAnnotationTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBucketMetadataAnnotationTableConfigurationOutput: ... + + @_overload def update_bucket_metadata_annotation_table_configuration( self, - input: UpdateBucketMetadataAnnotationTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.UpdateBucketMetadataAnnotationTableConfigurationInputDict + ], ) -> UpdateBucketMetadataAnnotationTableConfigurationOutput: """ Updates the annotation table configuration for an Amazon S3 bucket's @@ -9205,8 +11310,6 @@ def update_bucket_metadata_annotation_table_configuration( - [GetBucketMetadataConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetadataConfiguration.html) Args: - input: - An instance of `UpdateBucketMetadataAnnotationTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9216,17 +11319,40 @@ def update_bucket_metadata_annotation_table_configuration( Returns: An instance of `UpdateBucketMetadataAnnotationTableConfigurationOutput`. """ + + def update_bucket_metadata_annotation_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBucketMetadataAnnotationTableConfigurationOutput: return self._invoke( - input, + self._select_input( + _models.UPDATE_BUCKET_METADATA_ANNOTATION_TABLE_CONFIGURATION, + args, + kwargs, + ), _models.UPDATE_BUCKET_METADATA_ANNOTATION_TABLE_CONFIGURATION, [], plugins, ) + @_overload + def update_bucket_metadata_inventory_table_configuration( + self, + request: _models.UpdateBucketMetadataInventoryTableConfigurationInput + | _models.UpdateBucketMetadataInventoryTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBucketMetadataInventoryTableConfigurationOutput: ... + + @_overload def update_bucket_metadata_inventory_table_configuration( self, - input: UpdateBucketMetadataInventoryTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.UpdateBucketMetadataInventoryTableConfigurationInputDict + ], ) -> UpdateBucketMetadataInventoryTableConfigurationOutput: """ Enables or disables a live inventory table for an S3 Metadata @@ -9237,33 +11363,34 @@ def update_bucket_metadata_inventory_table_configuration( Permissions - : To use this operation, you must have the following permissions. For - more information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the following permissions. For + more information, see [Setting up permissions for configuring + metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - If you want to encrypt your inventory table with server-side - encryption with Key Management Service (KMS) keys (SSE-KMS), you need - additional permissions in your KMS key policy. For more information, - see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + If you want to encrypt your inventory table with server-side + encryption with Key Management Service (KMS) keys (SSE-KMS), you + need additional permissions in your KMS key policy. For more + information, see [Setting up permissions for configuring metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. - - `s3:UpdateBucketMetadataInventoryTableConfiguration` + - `s3:UpdateBucketMetadataInventoryTableConfiguration` - - `s3tables:CreateTableBucket` + - `s3tables:CreateTableBucket` - - `s3tables:CreateNamespace` + - `s3tables:CreateNamespace` - - `s3tables:GetTable` + - `s3tables:GetTable` - - `s3tables:CreateTable` + - `s3tables:CreateTable` - - `s3tables:PutTablePolicy` + - `s3tables:PutTablePolicy` - - `s3tables:PutTableEncryption` + - `s3tables:PutTableEncryption` - - `kms:DescribeKey` + - `kms:DescribeKey` The following operations are related to `UpdateBucketMetadataInventoryTableConfiguration`: @@ -9282,8 +11409,6 @@ def update_bucket_metadata_inventory_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `UpdateBucketMetadataInventoryTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9293,17 +11418,40 @@ def update_bucket_metadata_inventory_table_configuration( Returns: An instance of `UpdateBucketMetadataInventoryTableConfigurationOutput`. """ + + def update_bucket_metadata_inventory_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBucketMetadataInventoryTableConfigurationOutput: return self._invoke( - input, + self._select_input( + _models.UPDATE_BUCKET_METADATA_INVENTORY_TABLE_CONFIGURATION, + args, + kwargs, + ), _models.UPDATE_BUCKET_METADATA_INVENTORY_TABLE_CONFIGURATION, [], plugins, ) + @_overload + def update_bucket_metadata_journal_table_configuration( + self, + request: _models.UpdateBucketMetadataJournalTableConfigurationInput + | _models.UpdateBucketMetadataJournalTableConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateBucketMetadataJournalTableConfigurationOutput: ... + + @_overload def update_bucket_metadata_journal_table_configuration( self, - input: UpdateBucketMetadataJournalTableConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[ + _models.UpdateBucketMetadataJournalTableConfigurationInputDict + ], ) -> UpdateBucketMetadataJournalTableConfigurationOutput: """ Enables or disables journal table record expiration for an S3 Metadata @@ -9314,11 +11462,12 @@ def update_bucket_metadata_journal_table_configuration( Permissions - : To use this operation, you must have the - `s3:UpdateBucketMetadataJournalTableConfiguration` permission. For - more information, see [Setting up permissions for configuring metadata - tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) - in the *Amazon S3 User Guide*. + : To use this operation, you must have the + `s3:UpdateBucketMetadataJournalTableConfiguration` permission. For + more information, see [Setting up permissions for configuring + metadata + tables](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html) + in the *Amazon S3 User Guide*. The following operations are related to `UpdateBucketMetadataJournalTableConfiguration`: @@ -9337,8 +11486,6 @@ def update_bucket_metadata_journal_table_configuration( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `UpdateBucketMetadataJournalTableConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9348,15 +11495,36 @@ def update_bucket_metadata_journal_table_configuration( Returns: An instance of `UpdateBucketMetadataJournalTableConfigurationOutput`. """ + + def update_bucket_metadata_journal_table_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateBucketMetadataJournalTableConfigurationOutput: return self._invoke( - input, + self._select_input( + _models.UPDATE_BUCKET_METADATA_JOURNAL_TABLE_CONFIGURATION, args, kwargs + ), _models.UPDATE_BUCKET_METADATA_JOURNAL_TABLE_CONFIGURATION, [], plugins, ) + @_overload + def update_object_encryption( + self, + request: _models.UpdateObjectEncryptionInput + | _models.UpdateObjectEncryptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateObjectEncryptionOutput: ... + + @_overload def update_object_encryption( - self, input: UpdateObjectEncryptionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateObjectEncryptionInputDict], ) -> UpdateObjectEncryptionOutput: """ Note: @@ -9405,98 +11573,98 @@ def update_object_encryption( Permissions - : - To use the `UpdateObjectEncryption` operation, you must have the - following permissions: + : - To use the `UpdateObjectEncryption` operation, you must have the + following permissions: - - `s3:UpdateObjectEncryption` + - `s3:UpdateObjectEncryption` - - `kms:Encrypt` + - `kms:Encrypt` - - `kms:Decrypt` + - `kms:Decrypt` - - `kms:GenerateDataKey` + - `kms:GenerateDataKey` - - `kms:ReEncrypt*` + - `kms:ReEncrypt*` - - If you're using Organizations, to use this operation with - customer-managed KMS keys from other Amazon Web Services accounts - within your organization, you must have the - `organizations:DescribeAccount` permission. + - If you're using Organizations, to use this operation with + customer-managed KMS keys from other Amazon Web Services accounts + within your organization, you must have the + `organizations:DescribeAccount` permission. Errors - : - You might receive an `InvalidRequest` error for several reasons. - Depending on the reason for the error, you might receive one of the - following messages: - - - The `UpdateObjectEncryption` operation doesn't supported - unencrypted source objects. Only source objects encrypted with - SSE-S3 or SSE-KMS are supported. - - - The `UpdateObjectEncryption` operation doesn't support source - objects with the encryption type DSSE-KMS or SSE-C. Only source - objects encrypted with SSE-S3 or SSE-KMS are supported. - - - The `UpdateObjectEncryption` operation doesn't support updating - the encryption type to DSSE-KMS or SSE-C. Modify the request to - specify SSE-KMS for the updated encryption type, and then try - again. - - - Requests that modify an object encryption configuration require - Amazon Web Services Signature Version 4. Modify the request to use - Amazon Web Services Signature Version 4, and then try again. - - - Requests that modify an object encryption configuration require a - valid new encryption type. Valid values are `SSEKMS`. Modify the - request to specify SSE-KMS for the updated encryption type, and - then try again. - - - Requests that modify an object's encryption type to SSE-KMS - require an Amazon Web Services KMS key Amazon Resource Name (ARN). - Modify the request to specify a KMS key ARN, and then try again. - - - Requests that modify an object's encryption type to SSE-KMS - require a valid Amazon Web Services KMS key Amazon Resource Name - (ARN). Confirm that you have a correctly formatted KMS key ARN in - your request, and then try again. - - - The `BucketKeyEnabled` value isn't valid. Valid values are `true` - or `false`. Modify the request to specify a valid value, and then - try again. - - - You might receive an `AccessDenied` error for several reasons. - Depending on the reason for the error, you might receive one of the - following messages: - - - The Amazon Web Services KMS key in the request must be owned by - the same account as the bucket. Modify the request to specify a - KMS key from the same account, and then try again. - - - The bucket owner's account was approved to make - `UpdateObjectEncryption` requests that use any Amazon Web Services - KMS key in their organization, but the bucket owner's account - isn't part of an organization in Organizations. Make sure that - the bucket owner's account and the specified KMS key belong to - the same organization, and then try again. - - - The specified Amazon Web Services KMS key must be from the same - organization in Organizations as the bucket. Specify a KMS key - that belongs to the same organization as the bucket, and then try - again. - - - The encryption type for the specified object can't be updated - because that object is protected by S3 Object Lock. If the object - has a governance-mode retention period or a legal hold, you must - first remove the Object Lock status on the object before you issue - your `UpdateObjectEncryption` request. You can't use the - `UpdateObjectEncryption` operation with objects that have an - Object Lock compliance mode retention period applied to them. + : - You might receive an `InvalidRequest` error for several reasons. + Depending on the reason for the error, you might receive one of + the following messages: + + - The `UpdateObjectEncryption` operation doesn't supported + unencrypted source objects. Only source objects encrypted with + SSE-S3 or SSE-KMS are supported. + + - The `UpdateObjectEncryption` operation doesn't support source + objects with the encryption type DSSE-KMS or SSE-C. Only source + objects encrypted with SSE-S3 or SSE-KMS are supported. + + - The `UpdateObjectEncryption` operation doesn't support updating + the encryption type to DSSE-KMS or SSE-C. Modify the request to + specify SSE-KMS for the updated encryption type, and then try + again. + + - Requests that modify an object encryption configuration require + Amazon Web Services Signature Version 4. Modify the request to + use Amazon Web Services Signature Version 4, and then try again. + + - Requests that modify an object encryption configuration require + a valid new encryption type. Valid values are `SSEKMS`. Modify + the request to specify SSE-KMS for the updated encryption type, + and then try again. + + - Requests that modify an object's encryption type to SSE-KMS + require an Amazon Web Services KMS key Amazon Resource Name + (ARN). Modify the request to specify a KMS key ARN, and then try + again. + + - Requests that modify an object's encryption type to SSE-KMS + require a valid Amazon Web Services KMS key Amazon Resource Name + (ARN). Confirm that you have a correctly formatted KMS key ARN + in your request, and then try again. + + - The `BucketKeyEnabled` value isn't valid. Valid values are + `true` or `false`. Modify the request to specify a valid value, + and then try again. + + - You might receive an `AccessDenied` error for several reasons. + Depending on the reason for the error, you might receive one of + the following messages: + + - The Amazon Web Services KMS key in the request must be owned by + the same account as the bucket. Modify the request to specify a + KMS key from the same account, and then try again. + + - The bucket owner's account was approved to make + `UpdateObjectEncryption` requests that use any Amazon Web + Services KMS key in their organization, but the bucket owner's + account isn't part of an organization in Organizations. Make + sure that the bucket owner's account and the specified KMS key + belong to the same organization, and then try again. + + - The specified Amazon Web Services KMS key must be from the same + organization in Organizations as the bucket. Specify a KMS key + that belongs to the same organization as the bucket, and then + try again. + + - The encryption type for the specified object can't be updated + because that object is protected by S3 Object Lock. If the + object has a governance-mode retention period or a legal hold, + you must first remove the Object Lock status on the object + before you issue your `UpdateObjectEncryption` request. You + can't use the `UpdateObjectEncryption` operation with objects + that have an Object Lock compliance mode retention period + applied to them. Args: - input: - An instance of `UpdateObjectEncryptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9506,10 +11674,33 @@ def update_object_encryption( Returns: An instance of `UpdateObjectEncryptionOutput`. """ - return self._invoke(input, _models.UPDATE_OBJECT_ENCRYPTION, [], plugins) + def update_object_encryption( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateObjectEncryptionOutput: + return self._invoke( + self._select_input(_models.UPDATE_OBJECT_ENCRYPTION, args, kwargs), + _models.UPDATE_OBJECT_ENCRYPTION, + [], + plugins, + ) + + @_overload + def upload_part( + self, + request: _models.UploadPartInput | _models.UploadPartInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadPartOutput: ... + + @_overload def upload_part( - self, input: UploadPartInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadPartInputDict], ) -> UploadPartOutput: """ Uploads a part in a multipart upload. @@ -9566,132 +11757,135 @@ def upload_part( Permissions - : - **General purpose bucket permissions** - To perform a multipart - upload with encryption using an Key Management Service key, the - requester must have permission to the `kms:Decrypt` and - `kms:GenerateDataKey` actions on the key. The requester must also - have permissions for the `kms:GenerateDataKey` action for the - `CreateMultipartUpload` API. Then, the requester needs permissions - for the `kms:Decrypt` action on the `UploadPart` and - `UploadPartCopy` APIs. - - These permissions are required because Amazon S3 must decrypt and - read data from the encrypted file parts before it completes the - multipart upload. For more information about KMS permissions, see - [Protecting data using server-side encryption with - KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) - in the *Amazon S3 User Guide*. For information about the permissions - required to use the multipart upload API, see [Multipart upload and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - and [Multipart upload API and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) - in the *Amazon S3 User Guide*. - - - **Directory bucket permissions** - To grant access to this API - operation on a directory bucket, we recommend that you use the - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - API operation for session-based authorization. Specifically, you - grant the `s3express:CreateSession` permission to the directory - bucket in a bucket policy or an IAM identity-based policy. Then, you - make the `CreateSession` API call on the bucket to obtain a session - token. With the session token in your request header, you can make - API requests to this operation. After the session token expires, you - make another `CreateSession` API call to generate a new session - token for use. Amazon Web Services CLI or SDKs create session and - refresh the session token automatically to avoid service - interruptions when a session expires. For more information about - authorization, see - [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) - . + : - **General purpose bucket permissions** - To perform a multipart + upload with encryption using an Key Management Service key, the + requester must have permission to the `kms:Decrypt` and + `kms:GenerateDataKey` actions on the key. The requester must also + have permissions for the `kms:GenerateDataKey` action for the + `CreateMultipartUpload` API. Then, the requester needs permissions + for the `kms:Decrypt` action on the `UploadPart` and + `UploadPartCopy` APIs. + + These permissions are required because Amazon S3 must decrypt and + read data from the encrypted file parts before it completes the + multipart upload. For more information about KMS permissions, see + [Protecting data using server-side encryption with + KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) + in the *Amazon S3 User Guide*. For information about the + permissions required to use the multipart upload API, see + [Multipart upload and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + and [Multipart upload API and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) + in the *Amazon S3 User Guide*. - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. + - **Directory bucket permissions** - To grant access to this API + operation on a directory bucket, we recommend that you use the + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + API operation for session-based authorization. Specifically, you + grant the `s3express:CreateSession` permission to the directory + bucket in a bucket policy or an IAM identity-based policy. Then, + you make the `CreateSession` API call on the bucket to obtain a + session token. With the session token in your request header, you + can make API requests to this operation. After the session token + expires, you make another `CreateSession` API call to generate a + new session token for use. Amazon Web Services CLI or SDKs create + session and refresh the session token automatically to avoid + service interruptions when a session expires. For more information + about authorization, see + [`CreateSession`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html) + . + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. Data integrity - : **General purpose bucket** - To ensure that data is not corrupted - traversing the network, specify the `Content-MD5` header in the upload - part request. Amazon S3 checks the part data against the provided MD5 - value. If they do not match, Amazon S3 returns an error. If the upload - request is signed with Signature Version 4, then Amazon Web Services - S3 uses the `x-amz-content-sha256` header as a checksum instead of - `Content-MD5`. For more information see [Authenticating Requests: - Using the Authorization Header (Amazon Web Services Signature Version - 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html). + : **General purpose bucket** - To ensure that data is not corrupted + traversing the network, specify the `Content-MD5` header in the + upload part request. Amazon S3 checks the part data against the + provided MD5 value. If they do not match, Amazon S3 returns an + error. If the upload request is signed with Signature Version 4, + then Amazon Web Services S3 uses the `x-amz-content-sha256` header + as a checksum instead of `Content-MD5`. For more information see + [Authenticating Requests: Using the Authorization Header (Amazon Web + Services Signature Version + 4)](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html). - Note: - **Directory buckets** - MD5 is not supported by directory buckets. You - can use checksum algorithms to check object integrity. + Note: + **Directory buckets** - MD5 is not supported by directory buckets. + You can use checksum algorithms to check object integrity. Encryption - : - **General purpose bucket** - Server-side encryption is for data - encryption at rest. Amazon S3 encrypts your data as it writes it to - disks in its data centers and decrypts it when you access it. You - have mutually exclusive options to protect data using server-side - encryption in Amazon S3, depending on how you choose to manage the - encryption keys. Specifically, the encryption key options are Amazon - S3 managed keys (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), - and Customer-Provided Keys (SSE-C). Amazon S3 encrypts data with - server-side encryption using Amazon S3 managed keys (SSE-S3) by - default. You can optionally tell Amazon S3 to encrypt data at rest - using server-side encryption with other key options. The option you - use depends on whether you want to use KMS keys (SSE-KMS) or provide - your own encryption key (SSE-C). - - Server-side encryption is supported by the S3 Multipart Upload - operations. Unless you are using a customer-provided encryption key - (SSE-C), you don't need to specify the encryption parameters in - each UploadPart request. Instead, you only need to specify the - server-side encryption parameters in the initial Initiate Multipart - request. For more information, see - [CreateMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html). + : - **General purpose bucket** - Server-side encryption is for data + encryption at rest. Amazon S3 encrypts your data as it writes it + to disks in its data centers and decrypts it when you access it. + You have mutually exclusive options to protect data using + server-side encryption in Amazon S3, depending on how you choose + to manage the encryption keys. Specifically, the encryption key + options are Amazon S3 managed keys (SSE-S3), Amazon Web Services + KMS keys (SSE-KMS), and Customer-Provided Keys (SSE-C). Amazon S3 + encrypts data with server-side encryption using Amazon S3 managed + keys (SSE-S3) by default. You can optionally tell Amazon S3 to + encrypt data at rest using server-side encryption with other key + options. The option you use depends on whether you want to use KMS + keys (SSE-KMS) or provide your own encryption key (SSE-C). + + Server-side encryption is supported by the S3 Multipart Upload + operations. Unless you are using a customer-provided encryption + key (SSE-C), you don't need to specify the encryption parameters + in each UploadPart request. Instead, you only need to specify the + server-side encryption parameters in the initial Initiate + Multipart request. For more information, see + [CreateMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html). - Note: + Note: If you have server-side encryption with customer-provided keys (SSE-C) blocked for your general purpose bucket, you will get an HTTP 403 Access Denied error when you specify the SSE-C request - headers while writing new data to your bucket. For more information, - see [Blocking or unblocking SSE-C for a general purpose + headers while writing new data to your bucket. For more + information, see [Blocking or unblocking SSE-C for a general + purpose bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html). - If you request server-side encryption using a customer-provided - encryption key (SSE-C) in your initiate multipart upload request, - you must provide identical encryption information in each part - upload using the following request headers. + If you request server-side encryption using a customer-provided + encryption key (SSE-C) in your initiate multipart upload request, + you must provide identical encryption information in each part + upload using the following request headers. - - x-amz-server-side-encryption-customer-algorithm + - x-amz-server-side-encryption-customer-algorithm - - x-amz-server-side-encryption-customer-key + - x-amz-server-side-encryption-customer-key - - x-amz-server-side-encryption-customer-key-MD5 + - x-amz-server-side-encryption-customer-key-MD5 - For more information, see [Using Server-Side - Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) - in the *Amazon S3 User Guide*. + For more information, see [Using Server-Side + Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) + in the *Amazon S3 User Guide*. - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: server-side encryption - with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side - encryption with KMS keys (SSE-KMS) (`aws:kms`). + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side + encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and + server-side encryption with KMS keys (SSE-KMS) (`aws:kms`). Special errors - : - Error Code: `NoSuchUpload` + : - Error Code: `NoSuchUpload` - - Description: The specified multipart upload does not exist. The - upload ID might be invalid, or the multipart upload might have - been aborted or completed. + - Description: The specified multipart upload does not exist. The + upload ID might be invalid, or the multipart upload might have + been aborted or completed. - - HTTP Status Code: 404 Not Found + - HTTP Status Code: 404 Not Found - - SOAP Fault Code Prefix: Client + - SOAP Fault Code Prefix: Client HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `UploadPart`: @@ -9711,8 +11905,6 @@ def upload_part( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `UploadPartInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9722,10 +11914,33 @@ def upload_part( Returns: An instance of `UploadPartOutput`. """ - return self._invoke(input, _models.UPLOAD_PART, [], plugins) + def upload_part( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadPartOutput: + return self._invoke( + self._select_input(_models.UPLOAD_PART, args, kwargs), + _models.UPLOAD_PART, + [], + plugins, + ) + + @_overload + def upload_part_copy( + self, + request: _models.UploadPartCopyInput | _models.UploadPartCopyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UploadPartCopyOutput: ... + + @_overload def upload_part_copy( - self, input: UploadPartCopyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UploadPartCopyInputDict], ) -> UploadPartCopyOutput: """ Uploads a part by copying data from an existing object as data source. @@ -9772,149 +11987,150 @@ def upload_part_copy( Authentication and authorization - : All `UploadPartCopy` requests must be authenticated and signed by - using IAM credentials (access key ID and secret access key for the IAM - identities). All headers with the `x-amz-` prefix, including - `x-amz-copy-source`, must be signed. For more information, see [REST - Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). + : All `UploadPartCopy` requests must be authenticated and signed by + using IAM credentials (access key ID and secret access key for the + IAM identities). All headers with the `x-amz-` prefix, including + `x-amz-copy-source`, must be signed. For more information, see [REST + Authentication](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html). - **Directory buckets** - You must use IAM credentials to authenticate - and authorize your access to the `UploadPartCopy` API operation, - instead of using the temporary security credentials through the - `CreateSession` API operation. + **Directory buckets** - You must use IAM credentials to authenticate + and authorize your access to the `UploadPartCopy` API operation, + instead of using the temporary security credentials through the + `CreateSession` API operation. - Amazon Web Services CLI or SDKs handles authentication and - authorization on your behalf. + Amazon Web Services CLI or SDKs handles authentication and + authorization on your behalf. Permissions - : You must have `READ` access to the source object and `WRITE` access to - the destination bucket. - - - **General purpose bucket permissions** - You must have the - permissions in a policy based on the bucket types of your source - bucket and destination bucket in an `UploadPartCopy` operation. - - - If the source object is in a general purpose bucket, you must have - the **`s3:GetObject`** permission to read the source object that - is being copied. - - - If the destination bucket is a general purpose bucket, you must - have the **`s3:PutObject`** permission to write the object copy to - the destination bucket. - - - To perform a multipart upload with encryption using an Key - Management Service key, the requester must have permission to the - `kms:Decrypt` and `kms:GenerateDataKey` actions on the key. The - requester must also have permissions for the `kms:GenerateDataKey` - action for the `CreateMultipartUpload` API. Then, the requester - needs permissions for the `kms:Decrypt` action on the `UploadPart` - and `UploadPartCopy` APIs. These permissions are required because - Amazon S3 must decrypt and read data from the encrypted file parts - before it completes the multipart upload. For more information - about KMS permissions, see [Protecting data using server-side - encryption with - KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) - in the *Amazon S3 User Guide*. For information about the - permissions required to use the multipart upload API, see - [Multipart upload and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) - and [Multipart upload API and - permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) + : You must have `READ` access to the source object and `WRITE` access + to the destination bucket. + + - **General purpose bucket permissions** - You must have the + permissions in a policy based on the bucket types of your source + bucket and destination bucket in an `UploadPartCopy` operation. + + - If the source object is in a general purpose bucket, you must + have the **`s3:GetObject`** permission to read the source object + that is being copied. + + - If the destination bucket is a general purpose bucket, you must + have the **`s3:PutObject`** permission to write the object copy + to the destination bucket. + + - To perform a multipart upload with encryption using an Key + Management Service key, the requester must have permission to + the `kms:Decrypt` and `kms:GenerateDataKey` actions on the key. + The requester must also have permissions for the + `kms:GenerateDataKey` action for the `CreateMultipartUpload` + API. Then, the requester needs permissions for the `kms:Decrypt` + action on the `UploadPart` and `UploadPartCopy` APIs. These + permissions are required because Amazon S3 must decrypt and read + data from the encrypted file parts before it completes the + multipart upload. For more information about KMS permissions, + see [Protecting data using server-side encryption with + KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) + in the *Amazon S3 User Guide*. For information about the + permissions required to use the multipart upload API, see + [Multipart upload and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) + and [Multipart upload API and + permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) + in the *Amazon S3 User Guide*. + + - **Directory bucket permissions** - You must have permissions in a + bucket policy or an IAM identity-based policy based on the source + and destination bucket types in an `UploadPartCopy` operation. + + - If the source object that you want to copy is in a directory + bucket, you must have the **`s3express:CreateSession`** + permission in the `Action` element of a policy to read the + object. If no session mode is specified, the session will be + created with the maximum allowable privilege, attempting + `ReadWrite` first, then `ReadOnly` if `ReadWrite` is not + permitted. If you want to explicitly restrict the access to be + read-only, you can set the `s3express:SessionMode` condition key + to `ReadOnly` on the copy source bucket. + + - If the copy destination is a directory bucket, you must have the + **`s3express:CreateSession`** permission in the `Action` element + of a policy to write the object to the destination. The + `s3express:SessionMode` condition key cannot be set to + `ReadOnly` on the copy destination. + + If the object is encrypted with SSE-KMS, you must also have the + `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM + identity-based policies and KMS key policies for the KMS key. + + For example policies, see [Example bucket policies for S3 Express + One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) + and [Amazon Web Services Identity and Access Management (IAM) + identity-based policies for S3 Express One + Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) in the *Amazon S3 User Guide*. - - **Directory bucket permissions** - You must have permissions in a - bucket policy or an IAM identity-based policy based on the source - and destination bucket types in an `UploadPartCopy` operation. - - - If the source object that you want to copy is in a directory - bucket, you must have the **`s3express:CreateSession`** permission - in the `Action` element of a policy to read the object. If no - session mode is specified, the session will be created with the - maximum allowable privilege, attempting `ReadWrite` first, then - `ReadOnly` if `ReadWrite` is not permitted. If you want to - explicitly restrict the access to be read-only, you can set the - `s3express:SessionMode` condition key to `ReadOnly` on the copy - source bucket. - - - If the copy destination is a directory bucket, you must have the - **`s3express:CreateSession`** permission in the `Action` element - of a policy to write the object to the destination. The - `s3express:SessionMode` condition key cannot be set to `ReadOnly` - on the copy destination. - - If the object is encrypted with SSE-KMS, you must also have the - `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM - identity-based policies and KMS key policies for the KMS key. - - For example policies, see [Example bucket policies for S3 Express - One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html) - and [Amazon Web Services Identity and Access Management (IAM) - identity-based policies for S3 Express One - Zone](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html) - in the *Amazon S3 User Guide*. - Encryption - : - **General purpose buckets** - For information about using - server-side encryption with customer-provided encryption keys with - the `UploadPartCopy` operation, see - [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) - and - [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html). + : - **General purpose buckets** - For information about using + server-side encryption with customer-provided encryption keys with + the `UploadPartCopy` operation, see + [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) + and + [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html). - Note: + Note: If you have server-side encryption with customer-provided keys (SSE-C) blocked for your general purpose bucket, you will get an HTTP 403 Access Denied error when you specify the SSE-C request - headers while writing new data to your bucket. For more information, - see [Blocking or unblocking SSE-C for a general purpose + headers while writing new data to your bucket. For more + information, see [Blocking or unblocking SSE-C for a general + purpose bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html). - - **Directory buckets** - For directory buckets, there are only two - supported options for server-side encryption: server-side encryption - with Amazon S3 managed keys (SSE-S3) (`AES256`) and server-side - encryption with KMS keys (SSE-KMS) (`aws:kms`). For more - information, see [Protecting data with server-side - encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) - in the *Amazon S3 User Guide*. + - **Directory buckets** - For directory buckets, there are only two + supported options for server-side encryption: server-side + encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and + server-side encryption with KMS keys (SSE-KMS) (`aws:kms`). For + more information, see [Protecting data with server-side + encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html) + in the *Amazon S3 User Guide*. - Note: + Note: For directory buckets, when you perform a `CreateMultipartUpload` - operation and an `UploadPartCopy` operation, the request headers you - provide in the `CreateMultipartUpload` request must match the + operation and an `UploadPartCopy` operation, the request headers + you provide in the `CreateMultipartUpload` request must match the default encryption configuration of the destination bucket. - S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted - objects from general purpose buckets to directory buckets, from - directory buckets to general purpose buckets, or between directory - buckets, through - [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html). - In this case, Amazon S3 makes a call to KMS every time a copy - request is made for a KMS-encrypted object. + S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted + objects from general purpose buckets to directory buckets, from + directory buckets to general purpose buckets, or between directory + buckets, through + [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html). + In this case, Amazon S3 makes a call to KMS every time a copy + request is made for a KMS-encrypted object. Special errors - : - Error Code: `NoSuchUpload` + : - Error Code: `NoSuchUpload` - - Description: The specified multipart upload does not exist. The - upload ID might be invalid, or the multipart upload might have - been aborted or completed. + - Description: The specified multipart upload does not exist. The + upload ID might be invalid, or the multipart upload might have + been aborted or completed. - - HTTP Status Code: 404 Not Found + - HTTP Status Code: 404 Not Found - - Error Code: `InvalidRequest` + - Error Code: `InvalidRequest` - - Description: The specified copy source is not supported as a - byte-range copy source. + - Description: The specified copy source is not supported as a + byte-range copy source. - - HTTP Status Code: 400 Bad Request + - HTTP Status Code: 400 Bad Request HTTP Host header syntax - : **Directory buckets** - The HTTP Host header syntax is - ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. + : **Directory buckets** - The HTTP Host header syntax is + ` `*`Bucket-name`*`.s3express-`*`zone-id`*`.`*`region-code`*`.amazonaws.com`. The following operations are related to `UploadPartCopy`: @@ -9936,8 +12152,6 @@ def upload_part_copy( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `UploadPartCopyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -9947,10 +12161,34 @@ def upload_part_copy( Returns: An instance of `UploadPartCopyOutput`. """ - return self._invoke(input, _models.UPLOAD_PART_COPY, [], plugins) + def upload_part_copy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UploadPartCopyOutput: + return self._invoke( + self._select_input(_models.UPLOAD_PART_COPY, args, kwargs), + _models.UPLOAD_PART_COPY, + [], + plugins, + ) + + @_overload + def write_get_object_response( + self, + request: _models.WriteGetObjectResponseInput + | _models.WriteGetObjectResponseInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> WriteGetObjectResponseOutput: ... + + @_overload def write_get_object_response( - self, input: WriteGetObjectResponseInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.WriteGetObjectResponseInputDict], ) -> WriteGetObjectResponseOutput: """ Note: @@ -10014,8 +12252,6 @@ def write_get_object_response( after `my`, you must URL encode this value to `my%20%20file.txt`. Args: - input: - An instance of `WriteGetObjectResponseInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -10025,7 +12261,16 @@ def write_get_object_response( Returns: An instance of `WriteGetObjectResponseOutput`. """ - return self._invoke(input, _models.WRITE_GET_OBJECT_RESPONSE, [], plugins) + + def write_get_object_response( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> WriteGetObjectResponseOutput: + return self._invoke( + self._select_input(_models.WRITE_GET_OBJECT_RESPONSE, args, kwargs), + _models.WRITE_GET_OBJECT_RESPONSE, + [], + plugins, + ) def _new_config(self) -> S3Config: return S3Config.resolve() diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/config.py b/clients/aws-sdk-s3/src/aws_sdk_s3/config.py index b567536ac..7a7790179 100644 --- a/clients/aws-sdk-s3/src/aws_sdk_s3/config.py +++ b/clients/aws-sdk-s3/src/aws_sdk_s3/config.py @@ -637,9 +637,9 @@ class _S3ConfigOverrides(AwsConfigOverrides, total=False): disable_s3_express_session_auth: bool | None use_fips_endpoint: bool | None use_dualstack_endpoint: bool | None + disable_host_prefix_injection: bool | None request_checksum_calculation: RequestChecksumCalculation | None response_checksum_validation: ResponseChecksumValidation | None - disable_host_prefix_injection: bool | None @dataclass(kw_only=True, repr=False, init=False) @@ -708,6 +708,12 @@ class S3Config(AwsConfig): not support dual-stack, dispatching the request MAY return an error. """ + disable_host_prefix_injection: bool | None = None + """ + Whether to skip prepending operations' modeled host prefixes to the + endpoint host. + """ + aws_credentials_identity_resolver: ( IdentityResolver[AWSCredentialsIdentity, AWSIdentityProperties] | None ) = None @@ -756,12 +762,6 @@ class S3Config(AwsConfig): end, and a mismatch raises ``ChecksumMismatchError``. """ - disable_host_prefix_injection: bool | None = None - """ - Whether to skip prepending operations' modeled host prefixes to the - endpoint host. - """ - _FIELDS: ClassVar[dict[str, FieldSpec]] = { "force_path_style": FieldSpec(default=None), "use_arn_region": FieldSpec(default=None, resolver=_resolve_use_arn_region), @@ -778,6 +778,7 @@ class S3Config(AwsConfig): "use_dualstack_endpoint": FieldSpec( default=None, resolver=resolve_use_dualstack_endpoint_program ), + "disable_host_prefix_injection": FieldSpec(default=None), "aws_credentials_identity_resolver": FieldSpec(default=None), "region": FieldSpec(default=None), "aws_access_key_id": FieldSpec(default=None), @@ -795,7 +796,6 @@ class S3Config(AwsConfig): resolver=resolve_response_checksum_validation_program, validator=validate_response_checksum_validation, ), - "disable_host_prefix_injection": FieldSpec(default=None), **AwsConfig._FIELDS, "endpoint_uri": FieldSpec( default=None, resolver=EndpointUriResolver("s3").program diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/models.pyi b/clients/aws-sdk-s3/src/aws_sdk_s3/models.pyi index 8c7081c2c..fc272dc6a 100644 --- a/clients/aws-sdk-s3/src/aws_sdk_s3/models.pyi +++ b/clients/aws-sdk-s3/src/aws_sdk_s3/models.pyi @@ -9,23 +9,37 @@ from smithy_core.serializers import ShapeSerializer from ._private.models_0 import ( AbacStatus as AbacStatus, + AbacStatusDict as AbacStatusDict, AbortIncompleteMultipartUpload as AbortIncompleteMultipartUpload, + AbortIncompleteMultipartUploadDict as AbortIncompleteMultipartUploadDict, AbortMultipartUploadInput as AbortMultipartUploadInput, + AbortMultipartUploadInputDict as AbortMultipartUploadInputDict, AbortMultipartUploadOutput as AbortMultipartUploadOutput, AccelerateConfiguration as AccelerateConfiguration, + AccelerateConfigurationDict as AccelerateConfigurationDict, AccessControlPolicy as AccessControlPolicy, + AccessControlPolicyDict as AccessControlPolicyDict, AccessControlTranslation as AccessControlTranslation, + AccessControlTranslationDict as AccessControlTranslationDict, AccessDenied as AccessDenied, AnalyticsAndOperator as AnalyticsAndOperator, + AnalyticsAndOperatorDict as AnalyticsAndOperatorDict, AnalyticsConfiguration as AnalyticsConfiguration, + AnalyticsConfigurationDict as AnalyticsConfigurationDict, AnalyticsExportDestination as AnalyticsExportDestination, + AnalyticsExportDestinationDict as AnalyticsExportDestinationDict, AnalyticsFilterPrefix as AnalyticsFilterPrefix, AnalyticsFilterTag as AnalyticsFilterTag, AnalyticsFilterAnd as AnalyticsFilterAnd, AnalyticsFilterUnknown as AnalyticsFilterUnknown, AnalyticsFilter as AnalyticsFilter, _AnalyticsFilterDeserializer as _AnalyticsFilterDeserializer, + AnalyticsFilterPrefixDict as AnalyticsFilterPrefixDict, + AnalyticsFilterTagDict as AnalyticsFilterTagDict, + AnalyticsFilterAndDict as AnalyticsFilterAndDict, + AnalyticsFilterDict as AnalyticsFilterDict, AnalyticsS3BucketDestination as AnalyticsS3BucketDestination, + AnalyticsS3BucketDestinationDict as AnalyticsS3BucketDestinationDict, AnalyticsS3ExportFileFormat as AnalyticsS3ExportFileFormat, AnnotationConfigurationState as AnnotationConfigurationState, AnnotationDirective as AnnotationDirective, @@ -33,10 +47,13 @@ from ._private.models_0 import ( AnnotationLimitExceeded as AnnotationLimitExceeded, AnnotationNameTooLong as AnnotationNameTooLong, AnnotationTableConfiguration as AnnotationTableConfiguration, + AnnotationTableConfigurationDict as AnnotationTableConfigurationDict, AnnotationTableConfigurationResult as AnnotationTableConfigurationResult, AnnotationTableConfigurationUpdates as AnnotationTableConfigurationUpdates, + AnnotationTableConfigurationUpdatesDict as AnnotationTableConfigurationUpdatesDict, ArchiveStatus as ArchiveStatus, BlockedEncryptionTypes as BlockedEncryptionTypes, + BlockedEncryptionTypesDict as BlockedEncryptionTypesDict, Bucket as Bucket, BucketAbacStatus as BucketAbacStatus, BucketAccelerateStatus as BucketAccelerateStatus, @@ -44,9 +61,12 @@ from ._private.models_0 import ( BucketAlreadyOwnedByYou as BucketAlreadyOwnedByYou, BucketCannedACL as BucketCannedACL, BucketInfo as BucketInfo, + BucketInfoDict as BucketInfoDict, BucketLifecycleConfiguration as BucketLifecycleConfiguration, + BucketLifecycleConfigurationDict as BucketLifecycleConfigurationDict, BucketLocationConstraint as BucketLocationConstraint, BucketLoggingStatus as BucketLoggingStatus, + BucketLoggingStatusDict as BucketLoggingStatusDict, BucketLogsPermission as BucketLogsPermission, BucketNamespace as BucketNamespace, BucketType as BucketType, @@ -57,184 +77,273 @@ from ._private.models_0 import ( ChecksumType as ChecksumType, CommonPrefix as CommonPrefix, CompletedMultipartUpload as CompletedMultipartUpload, + CompletedMultipartUploadDict as CompletedMultipartUploadDict, CompletedPart as CompletedPart, + CompletedPartDict as CompletedPartDict, CompleteMultipartUploadInput as CompleteMultipartUploadInput, + CompleteMultipartUploadInputDict as CompleteMultipartUploadInputDict, CompleteMultipartUploadOutput as CompleteMultipartUploadOutput, CompressionType as CompressionType, Condition as Condition, + ConditionDict as ConditionDict, ContinuationEvent as ContinuationEvent, CopyObjectInput as CopyObjectInput, + CopyObjectInputDict as CopyObjectInputDict, CopyObjectOutput as CopyObjectOutput, CopyObjectResult as CopyObjectResult, CopyPartResult as CopyPartResult, CORSConfiguration as CORSConfiguration, + CORSConfigurationDict as CORSConfigurationDict, CORSRule as CORSRule, + CORSRuleDict as CORSRuleDict, CreateBucketConfiguration as CreateBucketConfiguration, + CreateBucketConfigurationDict as CreateBucketConfigurationDict, CreateBucketInput as CreateBucketInput, + CreateBucketInputDict as CreateBucketInputDict, CreateBucketMetadataConfigurationInput as CreateBucketMetadataConfigurationInput, + CreateBucketMetadataConfigurationInputDict as CreateBucketMetadataConfigurationInputDict, CreateBucketMetadataConfigurationOutput as CreateBucketMetadataConfigurationOutput, CreateBucketMetadataTableConfigurationInput as CreateBucketMetadataTableConfigurationInput, + CreateBucketMetadataTableConfigurationInputDict as CreateBucketMetadataTableConfigurationInputDict, CreateBucketMetadataTableConfigurationOutput as CreateBucketMetadataTableConfigurationOutput, CreateBucketOutput as CreateBucketOutput, CreateMultipartUploadInput as CreateMultipartUploadInput, + CreateMultipartUploadInputDict as CreateMultipartUploadInputDict, CreateMultipartUploadOutput as CreateMultipartUploadOutput, CreateSessionInput as CreateSessionInput, + CreateSessionInputDict as CreateSessionInputDict, CreateSessionOutput as CreateSessionOutput, CSVInput as CSVInput, + CSVInputDict as CSVInputDict, CSVOutput as CSVOutput, + CSVOutputDict as CSVOutputDict, DataRedundancy as DataRedundancy, DefaultRetention as DefaultRetention, + DefaultRetentionDict as DefaultRetentionDict, Delete as Delete, + DeleteDict as DeleteDict, DeleteBucketAnalyticsConfigurationInput as DeleteBucketAnalyticsConfigurationInput, + DeleteBucketAnalyticsConfigurationInputDict as DeleteBucketAnalyticsConfigurationInputDict, DeleteBucketAnalyticsConfigurationOutput as DeleteBucketAnalyticsConfigurationOutput, DeleteBucketCorsInput as DeleteBucketCorsInput, + DeleteBucketCorsInputDict as DeleteBucketCorsInputDict, DeleteBucketCorsOutput as DeleteBucketCorsOutput, DeleteBucketEncryptionInput as DeleteBucketEncryptionInput, + DeleteBucketEncryptionInputDict as DeleteBucketEncryptionInputDict, DeleteBucketEncryptionOutput as DeleteBucketEncryptionOutput, DeleteBucketInput as DeleteBucketInput, + DeleteBucketInputDict as DeleteBucketInputDict, DeleteBucketIntelligentTieringConfigurationInput as DeleteBucketIntelligentTieringConfigurationInput, + DeleteBucketIntelligentTieringConfigurationInputDict as DeleteBucketIntelligentTieringConfigurationInputDict, DeleteBucketIntelligentTieringConfigurationOutput as DeleteBucketIntelligentTieringConfigurationOutput, DeleteBucketInventoryConfigurationInput as DeleteBucketInventoryConfigurationInput, + DeleteBucketInventoryConfigurationInputDict as DeleteBucketInventoryConfigurationInputDict, DeleteBucketInventoryConfigurationOutput as DeleteBucketInventoryConfigurationOutput, DeleteBucketLifecycleInput as DeleteBucketLifecycleInput, + DeleteBucketLifecycleInputDict as DeleteBucketLifecycleInputDict, DeleteBucketLifecycleOutput as DeleteBucketLifecycleOutput, DeleteBucketMetadataConfigurationInput as DeleteBucketMetadataConfigurationInput, + DeleteBucketMetadataConfigurationInputDict as DeleteBucketMetadataConfigurationInputDict, DeleteBucketMetadataConfigurationOutput as DeleteBucketMetadataConfigurationOutput, DeleteBucketMetadataTableConfigurationInput as DeleteBucketMetadataTableConfigurationInput, + DeleteBucketMetadataTableConfigurationInputDict as DeleteBucketMetadataTableConfigurationInputDict, DeleteBucketMetadataTableConfigurationOutput as DeleteBucketMetadataTableConfigurationOutput, DeleteBucketMetricsConfigurationInput as DeleteBucketMetricsConfigurationInput, + DeleteBucketMetricsConfigurationInputDict as DeleteBucketMetricsConfigurationInputDict, DeleteBucketMetricsConfigurationOutput as DeleteBucketMetricsConfigurationOutput, DeleteBucketOutput as DeleteBucketOutput, DeleteBucketOwnershipControlsInput as DeleteBucketOwnershipControlsInput, + DeleteBucketOwnershipControlsInputDict as DeleteBucketOwnershipControlsInputDict, DeleteBucketOwnershipControlsOutput as DeleteBucketOwnershipControlsOutput, DeleteBucketPolicyInput as DeleteBucketPolicyInput, + DeleteBucketPolicyInputDict as DeleteBucketPolicyInputDict, DeleteBucketPolicyOutput as DeleteBucketPolicyOutput, DeleteBucketReplicationInput as DeleteBucketReplicationInput, + DeleteBucketReplicationInputDict as DeleteBucketReplicationInputDict, DeleteBucketReplicationOutput as DeleteBucketReplicationOutput, DeleteBucketTaggingInput as DeleteBucketTaggingInput, + DeleteBucketTaggingInputDict as DeleteBucketTaggingInputDict, DeleteBucketTaggingOutput as DeleteBucketTaggingOutput, DeleteBucketWebsiteInput as DeleteBucketWebsiteInput, + DeleteBucketWebsiteInputDict as DeleteBucketWebsiteInputDict, DeleteBucketWebsiteOutput as DeleteBucketWebsiteOutput, DeletedObject as DeletedObject, DeleteMarkerEntry as DeleteMarkerEntry, DeleteMarkerReplication as DeleteMarkerReplication, + DeleteMarkerReplicationDict as DeleteMarkerReplicationDict, DeleteMarkerReplicationStatus as DeleteMarkerReplicationStatus, DeleteObjectAnnotationInput as DeleteObjectAnnotationInput, + DeleteObjectAnnotationInputDict as DeleteObjectAnnotationInputDict, DeleteObjectAnnotationOutput as DeleteObjectAnnotationOutput, DeleteObjectInput as DeleteObjectInput, + DeleteObjectInputDict as DeleteObjectInputDict, DeleteObjectOutput as DeleteObjectOutput, DeleteObjectsInput as DeleteObjectsInput, + DeleteObjectsInputDict as DeleteObjectsInputDict, DeleteObjectsOutput as DeleteObjectsOutput, DeleteObjectTaggingInput as DeleteObjectTaggingInput, + DeleteObjectTaggingInputDict as DeleteObjectTaggingInputDict, DeleteObjectTaggingOutput as DeleteObjectTaggingOutput, DeletePublicAccessBlockInput as DeletePublicAccessBlockInput, + DeletePublicAccessBlockInputDict as DeletePublicAccessBlockInputDict, DeletePublicAccessBlockOutput as DeletePublicAccessBlockOutput, Destination as Destination, + DestinationDict as DestinationDict, DestinationResult as DestinationResult, EncodingType as EncodingType, Encryption as Encryption, + EncryptionDict as EncryptionDict, EncryptionConfiguration as EncryptionConfiguration, + EncryptionConfigurationDict as EncryptionConfigurationDict, EncryptionType as EncryptionType, EncryptionTypeMismatch as EncryptionTypeMismatch, EndEvent as EndEvent, Error as Error, ErrorDetails as ErrorDetails, ErrorDocument as ErrorDocument, + ErrorDocumentDict as ErrorDocumentDict, Event as Event, EventBridgeConfiguration as EventBridgeConfiguration, + EventBridgeConfigurationDict as EventBridgeConfigurationDict, EventHoldDuration as EventHoldDuration, + EventHoldDurationDict as EventHoldDurationDict, ExistingObjectReplication as ExistingObjectReplication, + ExistingObjectReplicationDict as ExistingObjectReplicationDict, ExistingObjectReplicationStatus as ExistingObjectReplicationStatus, ExpirationState as ExpirationState, ExpirationStatus as ExpirationStatus, ExpressionType as ExpressionType, FileHeaderInfo as FileHeaderInfo, FilterRule as FilterRule, + FilterRuleDict as FilterRuleDict, FilterRuleName as FilterRuleName, GetBucketAbacInput as GetBucketAbacInput, + GetBucketAbacInputDict as GetBucketAbacInputDict, GetBucketAbacOutput as GetBucketAbacOutput, GetBucketAccelerateConfigurationInput as GetBucketAccelerateConfigurationInput, + GetBucketAccelerateConfigurationInputDict as GetBucketAccelerateConfigurationInputDict, GetBucketAccelerateConfigurationOutput as GetBucketAccelerateConfigurationOutput, GetBucketAclInput as GetBucketAclInput, + GetBucketAclInputDict as GetBucketAclInputDict, GetBucketAclOutput as GetBucketAclOutput, GetBucketAnalyticsConfigurationInput as GetBucketAnalyticsConfigurationInput, + GetBucketAnalyticsConfigurationInputDict as GetBucketAnalyticsConfigurationInputDict, GetBucketAnalyticsConfigurationOutput as GetBucketAnalyticsConfigurationOutput, GetBucketCorsInput as GetBucketCorsInput, + GetBucketCorsInputDict as GetBucketCorsInputDict, GetBucketCorsOutput as GetBucketCorsOutput, GetBucketEncryptionInput as GetBucketEncryptionInput, + GetBucketEncryptionInputDict as GetBucketEncryptionInputDict, GetBucketEncryptionOutput as GetBucketEncryptionOutput, GetBucketIntelligentTieringConfigurationInput as GetBucketIntelligentTieringConfigurationInput, + GetBucketIntelligentTieringConfigurationInputDict as GetBucketIntelligentTieringConfigurationInputDict, GetBucketIntelligentTieringConfigurationOutput as GetBucketIntelligentTieringConfigurationOutput, GetBucketInventoryConfigurationInput as GetBucketInventoryConfigurationInput, + GetBucketInventoryConfigurationInputDict as GetBucketInventoryConfigurationInputDict, GetBucketInventoryConfigurationOutput as GetBucketInventoryConfigurationOutput, GetBucketLifecycleConfigurationInput as GetBucketLifecycleConfigurationInput, + GetBucketLifecycleConfigurationInputDict as GetBucketLifecycleConfigurationInputDict, GetBucketLifecycleConfigurationOutput as GetBucketLifecycleConfigurationOutput, GetBucketLocationInput as GetBucketLocationInput, + GetBucketLocationInputDict as GetBucketLocationInputDict, GetBucketLocationOutput as GetBucketLocationOutput, GetBucketLoggingInput as GetBucketLoggingInput, + GetBucketLoggingInputDict as GetBucketLoggingInputDict, GetBucketLoggingOutput as GetBucketLoggingOutput, GetBucketMetadataConfigurationInput as GetBucketMetadataConfigurationInput, + GetBucketMetadataConfigurationInputDict as GetBucketMetadataConfigurationInputDict, GetBucketMetadataConfigurationOutput as GetBucketMetadataConfigurationOutput, GetBucketMetadataConfigurationResult as GetBucketMetadataConfigurationResult, GetBucketMetadataTableConfigurationInput as GetBucketMetadataTableConfigurationInput, + GetBucketMetadataTableConfigurationInputDict as GetBucketMetadataTableConfigurationInputDict, GetBucketMetadataTableConfigurationOutput as GetBucketMetadataTableConfigurationOutput, GetBucketMetadataTableConfigurationResult as GetBucketMetadataTableConfigurationResult, GetBucketMetricsConfigurationInput as GetBucketMetricsConfigurationInput, + GetBucketMetricsConfigurationInputDict as GetBucketMetricsConfigurationInputDict, GetBucketMetricsConfigurationOutput as GetBucketMetricsConfigurationOutput, GetBucketNotificationConfigurationInput as GetBucketNotificationConfigurationInput, + GetBucketNotificationConfigurationInputDict as GetBucketNotificationConfigurationInputDict, GetBucketNotificationConfigurationOutput as GetBucketNotificationConfigurationOutput, GetBucketOwnershipControlsInput as GetBucketOwnershipControlsInput, + GetBucketOwnershipControlsInputDict as GetBucketOwnershipControlsInputDict, GetBucketOwnershipControlsOutput as GetBucketOwnershipControlsOutput, GetBucketPolicyInput as GetBucketPolicyInput, + GetBucketPolicyInputDict as GetBucketPolicyInputDict, GetBucketPolicyOutput as GetBucketPolicyOutput, GetBucketPolicyStatusInput as GetBucketPolicyStatusInput, + GetBucketPolicyStatusInputDict as GetBucketPolicyStatusInputDict, GetBucketPolicyStatusOutput as GetBucketPolicyStatusOutput, GetBucketReplicationInput as GetBucketReplicationInput, + GetBucketReplicationInputDict as GetBucketReplicationInputDict, GetBucketReplicationOutput as GetBucketReplicationOutput, GetBucketRequestPaymentInput as GetBucketRequestPaymentInput, + GetBucketRequestPaymentInputDict as GetBucketRequestPaymentInputDict, GetBucketRequestPaymentOutput as GetBucketRequestPaymentOutput, GetBucketTaggingInput as GetBucketTaggingInput, + GetBucketTaggingInputDict as GetBucketTaggingInputDict, GetBucketTaggingOutput as GetBucketTaggingOutput, GetBucketVersioningInput as GetBucketVersioningInput, + GetBucketVersioningInputDict as GetBucketVersioningInputDict, GetBucketVersioningOutput as GetBucketVersioningOutput, GetBucketWebsiteInput as GetBucketWebsiteInput, + GetBucketWebsiteInputDict as GetBucketWebsiteInputDict, GetBucketWebsiteOutput as GetBucketWebsiteOutput, GetObjectAclInput as GetObjectAclInput, + GetObjectAclInputDict as GetObjectAclInputDict, GetObjectAclOutput as GetObjectAclOutput, GetObjectAnnotationInput as GetObjectAnnotationInput, + GetObjectAnnotationInputDict as GetObjectAnnotationInputDict, GetObjectAnnotationOutput as GetObjectAnnotationOutput, GetObjectAttributesInput as GetObjectAttributesInput, + GetObjectAttributesInputDict as GetObjectAttributesInputDict, GetObjectAttributesOutput as GetObjectAttributesOutput, GetObjectAttributesParts as GetObjectAttributesParts, GetObjectInput as GetObjectInput, + GetObjectInputDict as GetObjectInputDict, GetObjectLegalHoldInput as GetObjectLegalHoldInput, + GetObjectLegalHoldInputDict as GetObjectLegalHoldInputDict, GetObjectLegalHoldOutput as GetObjectLegalHoldOutput, GetObjectLockConfigurationInput as GetObjectLockConfigurationInput, + GetObjectLockConfigurationInputDict as GetObjectLockConfigurationInputDict, GetObjectLockConfigurationOutput as GetObjectLockConfigurationOutput, GetObjectOutput as GetObjectOutput, GetObjectRetentionInput as GetObjectRetentionInput, + GetObjectRetentionInputDict as GetObjectRetentionInputDict, GetObjectRetentionOutput as GetObjectRetentionOutput, GetObjectTaggingInput as GetObjectTaggingInput, + GetObjectTaggingInputDict as GetObjectTaggingInputDict, GetObjectTaggingOutput as GetObjectTaggingOutput, GetObjectTorrentInput as GetObjectTorrentInput, + GetObjectTorrentInputDict as GetObjectTorrentInputDict, GetObjectTorrentOutput as GetObjectTorrentOutput, GetPublicAccessBlockInput as GetPublicAccessBlockInput, + GetPublicAccessBlockInputDict as GetPublicAccessBlockInputDict, GetPublicAccessBlockOutput as GetPublicAccessBlockOutput, GlacierJobParameters as GlacierJobParameters, + GlacierJobParametersDict as GlacierJobParametersDict, Grant as Grant, + GrantDict as GrantDict, Grantee as Grantee, + GranteeDict as GranteeDict, HeadBucketInput as HeadBucketInput, + HeadBucketInputDict as HeadBucketInputDict, HeadBucketOutput as HeadBucketOutput, HeadObjectInput as HeadObjectInput, + HeadObjectInputDict as HeadObjectInputDict, HeadObjectOutput as HeadObjectOutput, IdempotencyParameterMismatch as IdempotencyParameterMismatch, IndexDocument as IndexDocument, + IndexDocumentDict as IndexDocumentDict, Initiator as Initiator, InputSerialization as InputSerialization, + InputSerializationDict as InputSerializationDict, IntelligentTieringAccessTier as IntelligentTieringAccessTier, IntelligentTieringAndOperator as IntelligentTieringAndOperator, + IntelligentTieringAndOperatorDict as IntelligentTieringAndOperatorDict, IntelligentTieringConfiguration as IntelligentTieringConfiguration, + IntelligentTieringConfigurationDict as IntelligentTieringConfigurationDict, IntelligentTieringFilter as IntelligentTieringFilter, + IntelligentTieringFilterDict as IntelligentTieringFilterDict, IntelligentTieringStatus as IntelligentTieringStatus, InvalidAnnotationName as InvalidAnnotationName, InvalidObjectState as InvalidObjectState, @@ -242,70 +351,108 @@ from ._private.models_0 import ( InvalidRequest as InvalidRequest, InvalidWriteOffset as InvalidWriteOffset, InventoryConfiguration as InventoryConfiguration, + InventoryConfigurationDict as InventoryConfigurationDict, InventoryConfigurationState as InventoryConfigurationState, InventoryDestination as InventoryDestination, + InventoryDestinationDict as InventoryDestinationDict, InventoryEncryption as InventoryEncryption, + InventoryEncryptionDict as InventoryEncryptionDict, InventoryFilter as InventoryFilter, + InventoryFilterDict as InventoryFilterDict, InventoryFormat as InventoryFormat, InventoryFrequency as InventoryFrequency, InventoryIncludedObjectVersions as InventoryIncludedObjectVersions, InventoryOptionalField as InventoryOptionalField, InventoryS3BucketDestination as InventoryS3BucketDestination, + InventoryS3BucketDestinationDict as InventoryS3BucketDestinationDict, InventorySchedule as InventorySchedule, + InventoryScheduleDict as InventoryScheduleDict, InventoryTableConfiguration as InventoryTableConfiguration, + InventoryTableConfigurationDict as InventoryTableConfigurationDict, InventoryTableConfigurationResult as InventoryTableConfigurationResult, InventoryTableConfigurationUpdates as InventoryTableConfigurationUpdates, + InventoryTableConfigurationUpdatesDict as InventoryTableConfigurationUpdatesDict, JournalTableConfiguration as JournalTableConfiguration, + JournalTableConfigurationDict as JournalTableConfigurationDict, JournalTableConfigurationResult as JournalTableConfigurationResult, JournalTableConfigurationUpdates as JournalTableConfigurationUpdates, + JournalTableConfigurationUpdatesDict as JournalTableConfigurationUpdatesDict, JSONInput as JSONInput, + JSONInputDict as JSONInputDict, JSONOutput as JSONOutput, + JSONOutputDict as JSONOutputDict, JSONType as JSONType, LambdaFunctionConfiguration as LambdaFunctionConfiguration, + LambdaFunctionConfigurationDict as LambdaFunctionConfigurationDict, LifecycleExpiration as LifecycleExpiration, + LifecycleExpirationDict as LifecycleExpirationDict, ) from ._private.models_1 import ( LifecycleRule as LifecycleRule, + LifecycleRuleDict as LifecycleRuleDict, LifecycleRuleAndOperator as LifecycleRuleAndOperator, + LifecycleRuleAndOperatorDict as LifecycleRuleAndOperatorDict, LifecycleRuleFilter as LifecycleRuleFilter, + LifecycleRuleFilterDict as LifecycleRuleFilterDict, ListBucketAnalyticsConfigurationsInput as ListBucketAnalyticsConfigurationsInput, + ListBucketAnalyticsConfigurationsInputDict as ListBucketAnalyticsConfigurationsInputDict, ListBucketAnalyticsConfigurationsOutput as ListBucketAnalyticsConfigurationsOutput, ListBucketIntelligentTieringConfigurationsInput as ListBucketIntelligentTieringConfigurationsInput, + ListBucketIntelligentTieringConfigurationsInputDict as ListBucketIntelligentTieringConfigurationsInputDict, ListBucketIntelligentTieringConfigurationsOutput as ListBucketIntelligentTieringConfigurationsOutput, ListBucketInventoryConfigurationsInput as ListBucketInventoryConfigurationsInput, + ListBucketInventoryConfigurationsInputDict as ListBucketInventoryConfigurationsInputDict, ListBucketInventoryConfigurationsOutput as ListBucketInventoryConfigurationsOutput, ListBucketMetricsConfigurationsInput as ListBucketMetricsConfigurationsInput, + ListBucketMetricsConfigurationsInputDict as ListBucketMetricsConfigurationsInputDict, ListBucketMetricsConfigurationsOutput as ListBucketMetricsConfigurationsOutput, ListBucketsInput as ListBucketsInput, + ListBucketsInputDict as ListBucketsInputDict, ListBucketsOutput as ListBucketsOutput, ListDirectoryBucketsInput as ListDirectoryBucketsInput, + ListDirectoryBucketsInputDict as ListDirectoryBucketsInputDict, ListDirectoryBucketsOutput as ListDirectoryBucketsOutput, ListMultipartUploadsInput as ListMultipartUploadsInput, + ListMultipartUploadsInputDict as ListMultipartUploadsInputDict, ListMultipartUploadsOutput as ListMultipartUploadsOutput, ListObjectAnnotationsInput as ListObjectAnnotationsInput, + ListObjectAnnotationsInputDict as ListObjectAnnotationsInputDict, ListObjectAnnotationsOutput as ListObjectAnnotationsOutput, ListObjectsInput as ListObjectsInput, + ListObjectsInputDict as ListObjectsInputDict, ListObjectsOutput as ListObjectsOutput, ListObjectsV2Input as ListObjectsV2Input, + ListObjectsV2InputDict as ListObjectsV2InputDict, ListObjectsV2Output as ListObjectsV2Output, ListObjectVersionsInput as ListObjectVersionsInput, + ListObjectVersionsInputDict as ListObjectVersionsInputDict, ListObjectVersionsOutput as ListObjectVersionsOutput, ListPartsInput as ListPartsInput, + ListPartsInputDict as ListPartsInputDict, ListPartsOutput as ListPartsOutput, LocationInfo as LocationInfo, + LocationInfoDict as LocationInfoDict, LocationType as LocationType, LoggingEnabled as LoggingEnabled, + LoggingEnabledDict as LoggingEnabledDict, MetadataConfiguration as MetadataConfiguration, + MetadataConfigurationDict as MetadataConfigurationDict, MetadataConfigurationResult as MetadataConfigurationResult, MetadataDirective as MetadataDirective, MetadataEntry as MetadataEntry, + MetadataEntryDict as MetadataEntryDict, MetadataTableConfiguration as MetadataTableConfiguration, + MetadataTableConfigurationDict as MetadataTableConfigurationDict, MetadataTableConfigurationResult as MetadataTableConfigurationResult, MetadataTableEncryptionConfiguration as MetadataTableEncryptionConfiguration, + MetadataTableEncryptionConfigurationDict as MetadataTableEncryptionConfigurationDict, Metrics as Metrics, + MetricsDict as MetricsDict, MetricsAndOperator as MetricsAndOperator, + MetricsAndOperatorDict as MetricsAndOperatorDict, MetricsConfiguration as MetricsConfiguration, + MetricsConfigurationDict as MetricsConfigurationDict, MetricsFilterPrefix as MetricsFilterPrefix, MetricsFilterTag as MetricsFilterTag, MetricsFilterAccessPointArn as MetricsFilterAccessPointArn, @@ -313,19 +460,28 @@ from ._private.models_1 import ( MetricsFilterUnknown as MetricsFilterUnknown, MetricsFilter as MetricsFilter, _MetricsFilterDeserializer as _MetricsFilterDeserializer, + MetricsFilterPrefixDict as MetricsFilterPrefixDict, + MetricsFilterTagDict as MetricsFilterTagDict, + MetricsFilterAccessPointArnDict as MetricsFilterAccessPointArnDict, + MetricsFilterAndDict as MetricsFilterAndDict, + MetricsFilterDict as MetricsFilterDict, MetricsStatus as MetricsStatus, MFADelete as MFADelete, MFADeleteStatus as MFADeleteStatus, MultipartUpload as MultipartUpload, NoncurrentVersionExpiration as NoncurrentVersionExpiration, + NoncurrentVersionExpirationDict as NoncurrentVersionExpirationDict, NoncurrentVersionTransition as NoncurrentVersionTransition, + NoncurrentVersionTransitionDict as NoncurrentVersionTransitionDict, NoSuchAnnotation as NoSuchAnnotation, NoSuchBucket as NoSuchBucket, NoSuchKey as NoSuchKey, NoSuchUpload as NoSuchUpload, NotFound as NotFound, NotificationConfiguration as NotificationConfiguration, + NotificationConfigurationDict as NotificationConfigurationDict, NotificationConfigurationFilter as NotificationConfigurationFilter, + NotificationConfigurationFilterDict as NotificationConfigurationFilterDict, Object as Object, ObjectAlreadyInActiveTierError as ObjectAlreadyInActiveTierError, ObjectAttributes as ObjectAttributes, @@ -334,16 +490,23 @@ from ._private.models_1 import ( ObjectEncryptionUnknown as ObjectEncryptionUnknown, ObjectEncryption as ObjectEncryption, _ObjectEncryptionDeserializer as _ObjectEncryptionDeserializer, + ObjectEncryptionSSEKMSDict as ObjectEncryptionSSEKMSDict, + ObjectEncryptionDict as ObjectEncryptionDict, ObjectIdentifier as ObjectIdentifier, + ObjectIdentifierDict as ObjectIdentifierDict, ObjectLockConfiguration as ObjectLockConfiguration, + ObjectLockConfigurationDict as ObjectLockConfigurationDict, ObjectLockEnabled as ObjectLockEnabled, ObjectLockEventHold as ObjectLockEventHold, ObjectLockLegalHold as ObjectLockLegalHold, + ObjectLockLegalHoldDict as ObjectLockLegalHoldDict, ObjectLockLegalHoldStatus as ObjectLockLegalHoldStatus, ObjectLockMode as ObjectLockMode, ObjectLockRetention as ObjectLockRetention, + ObjectLockRetentionDict as ObjectLockRetentionDict, ObjectLockRetentionMode as ObjectLockRetentionMode, ObjectLockRule as ObjectLockRule, + ObjectLockRuleDict as ObjectLockRuleDict, ObjectNotInActiveTierError as ObjectNotInActiveTierError, ObjectOwnership as ObjectOwnership, ObjectPart as ObjectPart, @@ -352,15 +515,22 @@ from ._private.models_1 import ( ObjectVersionStorageClass as ObjectVersionStorageClass, OptionalObjectAttributes as OptionalObjectAttributes, OutputLocation as OutputLocation, + OutputLocationDict as OutputLocationDict, OutputSerialization as OutputSerialization, + OutputSerializationDict as OutputSerializationDict, Owner as Owner, + OwnerDict as OwnerDict, OwnerOverride as OwnerOverride, OwnershipControls as OwnershipControls, + OwnershipControlsDict as OwnershipControlsDict, OwnershipControlsRule as OwnershipControlsRule, + OwnershipControlsRuleDict as OwnershipControlsRuleDict, ParquetInput as ParquetInput, + ParquetInputDict as ParquetInputDict, Part as Part, PartitionDateSource as PartitionDateSource, PartitionedPrefix as PartitionedPrefix, + PartitionedPrefixDict as PartitionedPrefixDict, Payer as Payer, Permission as Permission, PolicyStatus as PolicyStatus, @@ -368,95 +538,146 @@ from ._private.models_1 import ( ProgressEvent as ProgressEvent, Protocol as Protocol, PublicAccessBlockConfiguration as PublicAccessBlockConfiguration, + PublicAccessBlockConfigurationDict as PublicAccessBlockConfigurationDict, PutBucketAbacInput as PutBucketAbacInput, + PutBucketAbacInputDict as PutBucketAbacInputDict, PutBucketAbacOutput as PutBucketAbacOutput, PutBucketAccelerateConfigurationInput as PutBucketAccelerateConfigurationInput, + PutBucketAccelerateConfigurationInputDict as PutBucketAccelerateConfigurationInputDict, PutBucketAccelerateConfigurationOutput as PutBucketAccelerateConfigurationOutput, PutBucketAclInput as PutBucketAclInput, + PutBucketAclInputDict as PutBucketAclInputDict, PutBucketAclOutput as PutBucketAclOutput, PutBucketAnalyticsConfigurationInput as PutBucketAnalyticsConfigurationInput, + PutBucketAnalyticsConfigurationInputDict as PutBucketAnalyticsConfigurationInputDict, PutBucketAnalyticsConfigurationOutput as PutBucketAnalyticsConfigurationOutput, PutBucketCorsInput as PutBucketCorsInput, + PutBucketCorsInputDict as PutBucketCorsInputDict, PutBucketCorsOutput as PutBucketCorsOutput, PutBucketEncryptionInput as PutBucketEncryptionInput, + PutBucketEncryptionInputDict as PutBucketEncryptionInputDict, PutBucketEncryptionOutput as PutBucketEncryptionOutput, PutBucketIntelligentTieringConfigurationInput as PutBucketIntelligentTieringConfigurationInput, + PutBucketIntelligentTieringConfigurationInputDict as PutBucketIntelligentTieringConfigurationInputDict, PutBucketIntelligentTieringConfigurationOutput as PutBucketIntelligentTieringConfigurationOutput, PutBucketInventoryConfigurationInput as PutBucketInventoryConfigurationInput, + PutBucketInventoryConfigurationInputDict as PutBucketInventoryConfigurationInputDict, PutBucketInventoryConfigurationOutput as PutBucketInventoryConfigurationOutput, PutBucketLifecycleConfigurationInput as PutBucketLifecycleConfigurationInput, + PutBucketLifecycleConfigurationInputDict as PutBucketLifecycleConfigurationInputDict, PutBucketLifecycleConfigurationOutput as PutBucketLifecycleConfigurationOutput, PutBucketLoggingInput as PutBucketLoggingInput, + PutBucketLoggingInputDict as PutBucketLoggingInputDict, PutBucketLoggingOutput as PutBucketLoggingOutput, PutBucketMetricsConfigurationInput as PutBucketMetricsConfigurationInput, + PutBucketMetricsConfigurationInputDict as PutBucketMetricsConfigurationInputDict, PutBucketMetricsConfigurationOutput as PutBucketMetricsConfigurationOutput, PutBucketNotificationConfigurationInput as PutBucketNotificationConfigurationInput, + PutBucketNotificationConfigurationInputDict as PutBucketNotificationConfigurationInputDict, PutBucketNotificationConfigurationOutput as PutBucketNotificationConfigurationOutput, PutBucketOwnershipControlsInput as PutBucketOwnershipControlsInput, + PutBucketOwnershipControlsInputDict as PutBucketOwnershipControlsInputDict, PutBucketOwnershipControlsOutput as PutBucketOwnershipControlsOutput, PutBucketPolicyInput as PutBucketPolicyInput, + PutBucketPolicyInputDict as PutBucketPolicyInputDict, PutBucketPolicyOutput as PutBucketPolicyOutput, PutBucketReplicationInput as PutBucketReplicationInput, + PutBucketReplicationInputDict as PutBucketReplicationInputDict, PutBucketReplicationOutput as PutBucketReplicationOutput, PutBucketRequestPaymentInput as PutBucketRequestPaymentInput, + PutBucketRequestPaymentInputDict as PutBucketRequestPaymentInputDict, PutBucketRequestPaymentOutput as PutBucketRequestPaymentOutput, PutBucketTaggingInput as PutBucketTaggingInput, + PutBucketTaggingInputDict as PutBucketTaggingInputDict, PutBucketTaggingOutput as PutBucketTaggingOutput, PutBucketVersioningInput as PutBucketVersioningInput, + PutBucketVersioningInputDict as PutBucketVersioningInputDict, PutBucketVersioningOutput as PutBucketVersioningOutput, PutBucketWebsiteInput as PutBucketWebsiteInput, + PutBucketWebsiteInputDict as PutBucketWebsiteInputDict, PutBucketWebsiteOutput as PutBucketWebsiteOutput, PutObjectAclInput as PutObjectAclInput, + PutObjectAclInputDict as PutObjectAclInputDict, PutObjectAclOutput as PutObjectAclOutput, PutObjectAnnotationInput as PutObjectAnnotationInput, + PutObjectAnnotationInputDict as PutObjectAnnotationInputDict, + AsyncPutObjectAnnotationInputDict as AsyncPutObjectAnnotationInputDict, PutObjectAnnotationOutput as PutObjectAnnotationOutput, PutObjectInput as PutObjectInput, + PutObjectInputDict as PutObjectInputDict, + AsyncPutObjectInputDict as AsyncPutObjectInputDict, PutObjectLegalHoldInput as PutObjectLegalHoldInput, + PutObjectLegalHoldInputDict as PutObjectLegalHoldInputDict, PutObjectLegalHoldOutput as PutObjectLegalHoldOutput, PutObjectLockConfigurationInput as PutObjectLockConfigurationInput, + PutObjectLockConfigurationInputDict as PutObjectLockConfigurationInputDict, PutObjectLockConfigurationOutput as PutObjectLockConfigurationOutput, PutObjectOutput as PutObjectOutput, PutObjectRetentionInput as PutObjectRetentionInput, + PutObjectRetentionInputDict as PutObjectRetentionInputDict, PutObjectRetentionOutput as PutObjectRetentionOutput, PutObjectTaggingInput as PutObjectTaggingInput, + PutObjectTaggingInputDict as PutObjectTaggingInputDict, PutObjectTaggingOutput as PutObjectTaggingOutput, PutPublicAccessBlockInput as PutPublicAccessBlockInput, + PutPublicAccessBlockInputDict as PutPublicAccessBlockInputDict, PutPublicAccessBlockOutput as PutPublicAccessBlockOutput, QueueConfiguration as QueueConfiguration, + QueueConfigurationDict as QueueConfigurationDict, QuoteFields as QuoteFields, RecordExpiration as RecordExpiration, + RecordExpirationDict as RecordExpirationDict, RecordsEvent as RecordsEvent, Redirect as Redirect, + RedirectDict as RedirectDict, RedirectAllRequestsTo as RedirectAllRequestsTo, + RedirectAllRequestsToDict as RedirectAllRequestsToDict, RenameObjectInput as RenameObjectInput, + RenameObjectInputDict as RenameObjectInputDict, RenameObjectOutput as RenameObjectOutput, ReplicaModifications as ReplicaModifications, + ReplicaModificationsDict as ReplicaModificationsDict, ReplicaModificationsStatus as ReplicaModificationsStatus, ReplicationConfiguration as ReplicationConfiguration, + ReplicationConfigurationDict as ReplicationConfigurationDict, ReplicationRule as ReplicationRule, + ReplicationRuleDict as ReplicationRuleDict, ReplicationRuleAndOperator as ReplicationRuleAndOperator, + ReplicationRuleAndOperatorDict as ReplicationRuleAndOperatorDict, ReplicationRuleFilter as ReplicationRuleFilter, + ReplicationRuleFilterDict as ReplicationRuleFilterDict, ReplicationRuleStatus as ReplicationRuleStatus, ReplicationStatus as ReplicationStatus, ReplicationTime as ReplicationTime, + ReplicationTimeDict as ReplicationTimeDict, ReplicationTimeStatus as ReplicationTimeStatus, ReplicationTimeValue as ReplicationTimeValue, + ReplicationTimeValueDict as ReplicationTimeValueDict, RequestCharged as RequestCharged, RequestPayer as RequestPayer, RequestPaymentConfiguration as RequestPaymentConfiguration, + RequestPaymentConfigurationDict as RequestPaymentConfigurationDict, RequestProgress as RequestProgress, + RequestProgressDict as RequestProgressDict, RestoreObjectInput as RestoreObjectInput, + RestoreObjectInputDict as RestoreObjectInputDict, RestoreObjectOutput as RestoreObjectOutput, RestoreRequest as RestoreRequest, + RestoreRequestDict as RestoreRequestDict, RestoreRequestType as RestoreRequestType, RestoreStatus as RestoreStatus, RoutingRule as RoutingRule, + RoutingRuleDict as RoutingRuleDict, S3KeyFilter as S3KeyFilter, + S3KeyFilterDict as S3KeyFilterDict, S3Location as S3Location, + S3LocationDict as S3LocationDict, S3TablesBucketType as S3TablesBucketType, S3TablesDestination as S3TablesDestination, + S3TablesDestinationDict as S3TablesDestinationDict, S3TablesDestinationResult as S3TablesDestinationResult, ScanRange as ScanRange, + ScanRangeDict as ScanRangeDict, SelectObjectContentEventStreamRecords as SelectObjectContentEventStreamRecords, SelectObjectContentEventStreamStats as SelectObjectContentEventStreamStats, SelectObjectContentEventStreamProgress as SelectObjectContentEventStreamProgress, @@ -466,57 +687,88 @@ from ._private.models_1 import ( SelectObjectContentEventStream as SelectObjectContentEventStream, _SelectObjectContentEventStreamDeserializer as _SelectObjectContentEventStreamDeserializer, SelectObjectContentInput as SelectObjectContentInput, + SelectObjectContentInputDict as SelectObjectContentInputDict, SelectObjectContentOutput as SelectObjectContentOutput, SelectParameters as SelectParameters, + SelectParametersDict as SelectParametersDict, ServerSideEncryption as ServerSideEncryption, ServerSideEncryptionByDefault as ServerSideEncryptionByDefault, + ServerSideEncryptionByDefaultDict as ServerSideEncryptionByDefaultDict, ServerSideEncryptionConfiguration as ServerSideEncryptionConfiguration, + ServerSideEncryptionConfigurationDict as ServerSideEncryptionConfigurationDict, ServerSideEncryptionRule as ServerSideEncryptionRule, + ServerSideEncryptionRuleDict as ServerSideEncryptionRuleDict, SessionCredentials as SessionCredentials, SessionMode as SessionMode, SimplePrefix as SimplePrefix, + SimplePrefixDict as SimplePrefixDict, SourceSelectionCriteria as SourceSelectionCriteria, + SourceSelectionCriteriaDict as SourceSelectionCriteriaDict, SSEKMS as SSEKMS, + SSEKMSDict as SSEKMSDict, SseKmsEncryptedObjects as SseKmsEncryptedObjects, + SseKmsEncryptedObjectsDict as SseKmsEncryptedObjectsDict, SseKmsEncryptedObjectsStatus as SseKmsEncryptedObjectsStatus, SSEKMSEncryption as SSEKMSEncryption, + SSEKMSEncryptionDict as SSEKMSEncryptionDict, SSES3 as SSES3, + SSES3Dict as SSES3Dict, Stats as Stats, StatsEvent as StatsEvent, StorageClass as StorageClass, StorageClassAnalysis as StorageClassAnalysis, + StorageClassAnalysisDict as StorageClassAnalysisDict, StorageClassAnalysisDataExport as StorageClassAnalysisDataExport, + StorageClassAnalysisDataExportDict as StorageClassAnalysisDataExportDict, StorageClassAnalysisSchemaVersion as StorageClassAnalysisSchemaVersion, TableSseAlgorithm as TableSseAlgorithm, Tag as Tag, + TagDict as TagDict, Tagging as Tagging, + TaggingDict as TaggingDict, TaggingDirective as TaggingDirective, TargetGrant as TargetGrant, + TargetGrantDict as TargetGrantDict, TargetObjectKeyFormat as TargetObjectKeyFormat, + TargetObjectKeyFormatDict as TargetObjectKeyFormatDict, Tier as Tier, Tiering as Tiering, + TieringDict as TieringDict, TooManyParts as TooManyParts, TopicConfiguration as TopicConfiguration, + TopicConfigurationDict as TopicConfigurationDict, Transition as Transition, + TransitionDict as TransitionDict, TransitionDefaultMinimumObjectSize as TransitionDefaultMinimumObjectSize, TransitionStorageClass as TransitionStorageClass, Type as Type, UnsupportedMediaType as UnsupportedMediaType, UpdateBucketMetadataAnnotationTableConfigurationInput as UpdateBucketMetadataAnnotationTableConfigurationInput, + UpdateBucketMetadataAnnotationTableConfigurationInputDict as UpdateBucketMetadataAnnotationTableConfigurationInputDict, UpdateBucketMetadataAnnotationTableConfigurationOutput as UpdateBucketMetadataAnnotationTableConfigurationOutput, UpdateBucketMetadataInventoryTableConfigurationInput as UpdateBucketMetadataInventoryTableConfigurationInput, + UpdateBucketMetadataInventoryTableConfigurationInputDict as UpdateBucketMetadataInventoryTableConfigurationInputDict, UpdateBucketMetadataInventoryTableConfigurationOutput as UpdateBucketMetadataInventoryTableConfigurationOutput, UpdateBucketMetadataJournalTableConfigurationInput as UpdateBucketMetadataJournalTableConfigurationInput, + UpdateBucketMetadataJournalTableConfigurationInputDict as UpdateBucketMetadataJournalTableConfigurationInputDict, UpdateBucketMetadataJournalTableConfigurationOutput as UpdateBucketMetadataJournalTableConfigurationOutput, UpdateObjectEncryptionInput as UpdateObjectEncryptionInput, + UpdateObjectEncryptionInputDict as UpdateObjectEncryptionInputDict, UpdateObjectEncryptionOutput as UpdateObjectEncryptionOutput, UploadPartCopyInput as UploadPartCopyInput, + UploadPartCopyInputDict as UploadPartCopyInputDict, UploadPartCopyOutput as UploadPartCopyOutput, UploadPartInput as UploadPartInput, + UploadPartInputDict as UploadPartInputDict, + AsyncUploadPartInputDict as AsyncUploadPartInputDict, UploadPartOutput as UploadPartOutput, VersioningConfiguration as VersioningConfiguration, + VersioningConfigurationDict as VersioningConfigurationDict, WebsiteConfiguration as WebsiteConfiguration, + WebsiteConfigurationDict as WebsiteConfigurationDict, WriteGetObjectResponseInput as WriteGetObjectResponseInput, + WriteGetObjectResponseInputDict as WriteGetObjectResponseInputDict, + AsyncWriteGetObjectResponseInputDict as AsyncWriteGetObjectResponseInputDict, WriteGetObjectResponseOutput as WriteGetObjectResponseOutput, ) diff --git a/clients/aws-sdk-s3/src/aws_sdk_s3/py.typed b/clients/aws-sdk-s3/src/aws_sdk_s3/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-s3/tests/_typecheck.py b/clients/aws-sdk-s3/tests/_typecheck.py index dcf1bbf1c..37e5a559e 100644 --- a/clients/aws-sdk-s3/tests/_typecheck.py +++ b/clients/aws-sdk-s3/tests/_typecheck.py @@ -2,397 +2,644 @@ from typing import Any +from aws_sdk_s3.aio.client import AsyncS3Client +from aws_sdk_s3.client import S3Client from aws_sdk_s3.models import ( AbacStatus, + AbacStatusDict, AbortIncompleteMultipartUpload, + AbortIncompleteMultipartUploadDict, AbortMultipartUploadInput, + AbortMultipartUploadInputDict, AbortMultipartUploadOutput, AccelerateConfiguration, + AccelerateConfigurationDict, AccessControlPolicy, + AccessControlPolicyDict, AccessControlTranslation, + AccessControlTranslationDict, AnalyticsAndOperator, + AnalyticsAndOperatorDict, AnalyticsConfiguration, + AnalyticsConfigurationDict, AnalyticsExportDestination, + AnalyticsExportDestinationDict, + AnalyticsFilterDict, AnalyticsS3BucketDestination, + AnalyticsS3BucketDestinationDict, AnnotationEntry, AnnotationTableConfiguration, + AnnotationTableConfigurationDict, AnnotationTableConfigurationResult, AnnotationTableConfigurationUpdates, + AnnotationTableConfigurationUpdatesDict, + AsyncPutObjectAnnotationInputDict, + AsyncPutObjectInputDict, + AsyncUploadPartInputDict, + AsyncWriteGetObjectResponseInputDict, BlockedEncryptionTypes, + BlockedEncryptionTypesDict, Bucket, BucketInfo, + BucketInfoDict, BucketLifecycleConfiguration, + BucketLifecycleConfigurationDict, BucketLoggingStatus, + BucketLoggingStatusDict, CORSConfiguration, + CORSConfigurationDict, CORSRule, + CORSRuleDict, CSVInput, + CSVInputDict, CSVOutput, + CSVOutputDict, Checksum, CommonPrefix, CompleteMultipartUploadInput, + CompleteMultipartUploadInputDict, CompleteMultipartUploadOutput, CompletedMultipartUpload, + CompletedMultipartUploadDict, CompletedPart, + CompletedPartDict, Condition, + ConditionDict, ContinuationEvent, CopyObjectInput, + CopyObjectInputDict, CopyObjectOutput, CopyObjectResult, CopyPartResult, CreateBucketConfiguration, + CreateBucketConfigurationDict, CreateBucketInput, + CreateBucketInputDict, CreateBucketMetadataConfigurationInput, + CreateBucketMetadataConfigurationInputDict, CreateBucketMetadataConfigurationOutput, CreateBucketMetadataTableConfigurationInput, + CreateBucketMetadataTableConfigurationInputDict, CreateBucketMetadataTableConfigurationOutput, CreateBucketOutput, CreateMultipartUploadInput, + CreateMultipartUploadInputDict, CreateMultipartUploadOutput, CreateSessionInput, + CreateSessionInputDict, CreateSessionOutput, DefaultRetention, + DefaultRetentionDict, Delete, DeleteBucketAnalyticsConfigurationInput, + DeleteBucketAnalyticsConfigurationInputDict, DeleteBucketAnalyticsConfigurationOutput, DeleteBucketCorsInput, + DeleteBucketCorsInputDict, DeleteBucketCorsOutput, DeleteBucketEncryptionInput, + DeleteBucketEncryptionInputDict, DeleteBucketEncryptionOutput, DeleteBucketInput, + DeleteBucketInputDict, DeleteBucketIntelligentTieringConfigurationInput, + DeleteBucketIntelligentTieringConfigurationInputDict, DeleteBucketIntelligentTieringConfigurationOutput, DeleteBucketInventoryConfigurationInput, + DeleteBucketInventoryConfigurationInputDict, DeleteBucketInventoryConfigurationOutput, DeleteBucketLifecycleInput, + DeleteBucketLifecycleInputDict, DeleteBucketLifecycleOutput, DeleteBucketMetadataConfigurationInput, + DeleteBucketMetadataConfigurationInputDict, DeleteBucketMetadataConfigurationOutput, DeleteBucketMetadataTableConfigurationInput, + DeleteBucketMetadataTableConfigurationInputDict, DeleteBucketMetadataTableConfigurationOutput, DeleteBucketMetricsConfigurationInput, + DeleteBucketMetricsConfigurationInputDict, DeleteBucketMetricsConfigurationOutput, DeleteBucketOutput, DeleteBucketOwnershipControlsInput, + DeleteBucketOwnershipControlsInputDict, DeleteBucketOwnershipControlsOutput, DeleteBucketPolicyInput, + DeleteBucketPolicyInputDict, DeleteBucketPolicyOutput, DeleteBucketReplicationInput, + DeleteBucketReplicationInputDict, DeleteBucketReplicationOutput, DeleteBucketTaggingInput, + DeleteBucketTaggingInputDict, DeleteBucketTaggingOutput, DeleteBucketWebsiteInput, + DeleteBucketWebsiteInputDict, DeleteBucketWebsiteOutput, + DeleteDict, DeleteMarkerEntry, DeleteMarkerReplication, + DeleteMarkerReplicationDict, DeleteObjectAnnotationInput, + DeleteObjectAnnotationInputDict, DeleteObjectAnnotationOutput, DeleteObjectInput, + DeleteObjectInputDict, DeleteObjectOutput, DeleteObjectTaggingInput, + DeleteObjectTaggingInputDict, DeleteObjectTaggingOutput, DeleteObjectsInput, + DeleteObjectsInputDict, DeleteObjectsOutput, DeletePublicAccessBlockInput, + DeletePublicAccessBlockInputDict, DeletePublicAccessBlockOutput, DeletedObject, Destination, + DestinationDict, DestinationResult, Encryption, EncryptionConfiguration, + EncryptionConfigurationDict, + EncryptionDict, EndEvent, Error, ErrorDetails, ErrorDocument, + ErrorDocumentDict, EventBridgeConfiguration, + EventBridgeConfigurationDict, EventHoldDuration, + EventHoldDurationDict, ExistingObjectReplication, + ExistingObjectReplicationDict, FilterRule, + FilterRuleDict, GetBucketAbacInput, + GetBucketAbacInputDict, GetBucketAbacOutput, GetBucketAccelerateConfigurationInput, + GetBucketAccelerateConfigurationInputDict, GetBucketAccelerateConfigurationOutput, GetBucketAclInput, + GetBucketAclInputDict, GetBucketAclOutput, GetBucketAnalyticsConfigurationInput, + GetBucketAnalyticsConfigurationInputDict, GetBucketAnalyticsConfigurationOutput, GetBucketCorsInput, + GetBucketCorsInputDict, GetBucketCorsOutput, GetBucketEncryptionInput, + GetBucketEncryptionInputDict, GetBucketEncryptionOutput, GetBucketIntelligentTieringConfigurationInput, + GetBucketIntelligentTieringConfigurationInputDict, GetBucketIntelligentTieringConfigurationOutput, GetBucketInventoryConfigurationInput, + GetBucketInventoryConfigurationInputDict, GetBucketInventoryConfigurationOutput, GetBucketLifecycleConfigurationInput, + GetBucketLifecycleConfigurationInputDict, GetBucketLifecycleConfigurationOutput, GetBucketLocationInput, + GetBucketLocationInputDict, GetBucketLocationOutput, GetBucketLoggingInput, + GetBucketLoggingInputDict, GetBucketLoggingOutput, GetBucketMetadataConfigurationInput, + GetBucketMetadataConfigurationInputDict, GetBucketMetadataConfigurationOutput, GetBucketMetadataConfigurationResult, GetBucketMetadataTableConfigurationInput, + GetBucketMetadataTableConfigurationInputDict, GetBucketMetadataTableConfigurationOutput, GetBucketMetadataTableConfigurationResult, GetBucketMetricsConfigurationInput, + GetBucketMetricsConfigurationInputDict, GetBucketMetricsConfigurationOutput, GetBucketNotificationConfigurationInput, + GetBucketNotificationConfigurationInputDict, GetBucketNotificationConfigurationOutput, GetBucketOwnershipControlsInput, + GetBucketOwnershipControlsInputDict, GetBucketOwnershipControlsOutput, GetBucketPolicyInput, + GetBucketPolicyInputDict, GetBucketPolicyOutput, GetBucketPolicyStatusInput, + GetBucketPolicyStatusInputDict, GetBucketPolicyStatusOutput, GetBucketReplicationInput, + GetBucketReplicationInputDict, GetBucketReplicationOutput, GetBucketRequestPaymentInput, + GetBucketRequestPaymentInputDict, GetBucketRequestPaymentOutput, GetBucketTaggingInput, + GetBucketTaggingInputDict, GetBucketTaggingOutput, GetBucketVersioningInput, + GetBucketVersioningInputDict, GetBucketVersioningOutput, GetBucketWebsiteInput, + GetBucketWebsiteInputDict, GetBucketWebsiteOutput, GetObjectAclInput, + GetObjectAclInputDict, GetObjectAclOutput, GetObjectAnnotationInput, + GetObjectAnnotationInputDict, GetObjectAnnotationOutput, GetObjectAttributesInput, + GetObjectAttributesInputDict, GetObjectAttributesOutput, GetObjectAttributesParts, GetObjectInput, + GetObjectInputDict, GetObjectLegalHoldInput, + GetObjectLegalHoldInputDict, GetObjectLegalHoldOutput, GetObjectLockConfigurationInput, + GetObjectLockConfigurationInputDict, GetObjectLockConfigurationOutput, GetObjectOutput, GetObjectRetentionInput, + GetObjectRetentionInputDict, GetObjectRetentionOutput, GetObjectTaggingInput, + GetObjectTaggingInputDict, GetObjectTaggingOutput, GetObjectTorrentInput, + GetObjectTorrentInputDict, GetObjectTorrentOutput, GetPublicAccessBlockInput, + GetPublicAccessBlockInputDict, GetPublicAccessBlockOutput, GlacierJobParameters, + GlacierJobParametersDict, Grant, + GrantDict, Grantee, + GranteeDict, HeadBucketInput, + HeadBucketInputDict, HeadBucketOutput, HeadObjectInput, + HeadObjectInputDict, HeadObjectOutput, IndexDocument, + IndexDocumentDict, Initiator, InputSerialization, + InputSerializationDict, IntelligentTieringAndOperator, + IntelligentTieringAndOperatorDict, IntelligentTieringConfiguration, + IntelligentTieringConfigurationDict, IntelligentTieringFilter, + IntelligentTieringFilterDict, InventoryConfiguration, + InventoryConfigurationDict, InventoryDestination, + InventoryDestinationDict, InventoryEncryption, + InventoryEncryptionDict, InventoryFilter, + InventoryFilterDict, InventoryS3BucketDestination, + InventoryS3BucketDestinationDict, InventorySchedule, + InventoryScheduleDict, InventoryTableConfiguration, + InventoryTableConfigurationDict, InventoryTableConfigurationResult, InventoryTableConfigurationUpdates, + InventoryTableConfigurationUpdatesDict, JSONInput, + JSONInputDict, JSONOutput, + JSONOutputDict, JournalTableConfiguration, + JournalTableConfigurationDict, JournalTableConfigurationResult, JournalTableConfigurationUpdates, + JournalTableConfigurationUpdatesDict, LambdaFunctionConfiguration, + LambdaFunctionConfigurationDict, LifecycleExpiration, + LifecycleExpirationDict, LifecycleRule, LifecycleRuleAndOperator, + LifecycleRuleAndOperatorDict, + LifecycleRuleDict, LifecycleRuleFilter, + LifecycleRuleFilterDict, ListBucketAnalyticsConfigurationsInput, + ListBucketAnalyticsConfigurationsInputDict, ListBucketAnalyticsConfigurationsOutput, ListBucketIntelligentTieringConfigurationsInput, + ListBucketIntelligentTieringConfigurationsInputDict, ListBucketIntelligentTieringConfigurationsOutput, ListBucketInventoryConfigurationsInput, + ListBucketInventoryConfigurationsInputDict, ListBucketInventoryConfigurationsOutput, ListBucketMetricsConfigurationsInput, + ListBucketMetricsConfigurationsInputDict, ListBucketMetricsConfigurationsOutput, ListBucketsInput, + ListBucketsInputDict, ListBucketsOutput, ListDirectoryBucketsInput, + ListDirectoryBucketsInputDict, ListDirectoryBucketsOutput, ListMultipartUploadsInput, + ListMultipartUploadsInputDict, ListMultipartUploadsOutput, ListObjectAnnotationsInput, + ListObjectAnnotationsInputDict, ListObjectAnnotationsOutput, ListObjectVersionsInput, + ListObjectVersionsInputDict, ListObjectVersionsOutput, ListObjectsInput, + ListObjectsInputDict, ListObjectsOutput, ListObjectsV2Input, + ListObjectsV2InputDict, ListObjectsV2Output, ListPartsInput, + ListPartsInputDict, ListPartsOutput, LocationInfo, + LocationInfoDict, LoggingEnabled, + LoggingEnabledDict, MetadataConfiguration, + MetadataConfigurationDict, MetadataConfigurationResult, MetadataEntry, + MetadataEntryDict, MetadataTableConfiguration, + MetadataTableConfigurationDict, MetadataTableConfigurationResult, MetadataTableEncryptionConfiguration, + MetadataTableEncryptionConfigurationDict, Metrics, MetricsAndOperator, + MetricsAndOperatorDict, MetricsConfiguration, + MetricsConfigurationDict, + MetricsDict, + MetricsFilterDict, MultipartUpload, NoncurrentVersionExpiration, + NoncurrentVersionExpirationDict, NoncurrentVersionTransition, + NoncurrentVersionTransitionDict, NotificationConfiguration, + NotificationConfigurationDict, NotificationConfigurationFilter, + NotificationConfigurationFilterDict, Object, + ObjectEncryptionDict, ObjectIdentifier, + ObjectIdentifierDict, ObjectLockConfiguration, + ObjectLockConfigurationDict, ObjectLockLegalHold, + ObjectLockLegalHoldDict, ObjectLockRetention, + ObjectLockRetentionDict, ObjectLockRule, + ObjectLockRuleDict, ObjectPart, ObjectVersion, OutputLocation, + OutputLocationDict, OutputSerialization, + OutputSerializationDict, Owner, + OwnerDict, OwnershipControls, + OwnershipControlsDict, OwnershipControlsRule, + OwnershipControlsRuleDict, ParquetInput, + ParquetInputDict, Part, PartitionedPrefix, + PartitionedPrefixDict, PolicyStatus, Progress, ProgressEvent, PublicAccessBlockConfiguration, + PublicAccessBlockConfigurationDict, PutBucketAbacInput, + PutBucketAbacInputDict, PutBucketAbacOutput, PutBucketAccelerateConfigurationInput, + PutBucketAccelerateConfigurationInputDict, PutBucketAccelerateConfigurationOutput, PutBucketAclInput, + PutBucketAclInputDict, PutBucketAclOutput, PutBucketAnalyticsConfigurationInput, + PutBucketAnalyticsConfigurationInputDict, PutBucketAnalyticsConfigurationOutput, PutBucketCorsInput, + PutBucketCorsInputDict, PutBucketCorsOutput, PutBucketEncryptionInput, + PutBucketEncryptionInputDict, PutBucketEncryptionOutput, PutBucketIntelligentTieringConfigurationInput, + PutBucketIntelligentTieringConfigurationInputDict, PutBucketIntelligentTieringConfigurationOutput, PutBucketInventoryConfigurationInput, + PutBucketInventoryConfigurationInputDict, PutBucketInventoryConfigurationOutput, PutBucketLifecycleConfigurationInput, + PutBucketLifecycleConfigurationInputDict, PutBucketLifecycleConfigurationOutput, PutBucketLoggingInput, + PutBucketLoggingInputDict, PutBucketLoggingOutput, PutBucketMetricsConfigurationInput, + PutBucketMetricsConfigurationInputDict, PutBucketMetricsConfigurationOutput, PutBucketNotificationConfigurationInput, + PutBucketNotificationConfigurationInputDict, PutBucketNotificationConfigurationOutput, PutBucketOwnershipControlsInput, + PutBucketOwnershipControlsInputDict, PutBucketOwnershipControlsOutput, PutBucketPolicyInput, + PutBucketPolicyInputDict, PutBucketPolicyOutput, PutBucketReplicationInput, + PutBucketReplicationInputDict, PutBucketReplicationOutput, PutBucketRequestPaymentInput, + PutBucketRequestPaymentInputDict, PutBucketRequestPaymentOutput, PutBucketTaggingInput, + PutBucketTaggingInputDict, PutBucketTaggingOutput, PutBucketVersioningInput, + PutBucketVersioningInputDict, PutBucketVersioningOutput, PutBucketWebsiteInput, + PutBucketWebsiteInputDict, PutBucketWebsiteOutput, PutObjectAclInput, + PutObjectAclInputDict, PutObjectAclOutput, PutObjectAnnotationInput, + PutObjectAnnotationInputDict, PutObjectAnnotationOutput, PutObjectInput, + PutObjectInputDict, PutObjectLegalHoldInput, + PutObjectLegalHoldInputDict, PutObjectLegalHoldOutput, PutObjectLockConfigurationInput, + PutObjectLockConfigurationInputDict, PutObjectLockConfigurationOutput, PutObjectOutput, PutObjectRetentionInput, + PutObjectRetentionInputDict, PutObjectRetentionOutput, PutObjectTaggingInput, + PutObjectTaggingInputDict, PutObjectTaggingOutput, PutPublicAccessBlockInput, + PutPublicAccessBlockInputDict, PutPublicAccessBlockOutput, QueueConfiguration, + QueueConfigurationDict, RecordExpiration, + RecordExpirationDict, RecordsEvent, Redirect, RedirectAllRequestsTo, + RedirectAllRequestsToDict, + RedirectDict, RenameObjectInput, + RenameObjectInputDict, RenameObjectOutput, ReplicaModifications, + ReplicaModificationsDict, ReplicationConfiguration, + ReplicationConfigurationDict, ReplicationRule, ReplicationRuleAndOperator, + ReplicationRuleAndOperatorDict, + ReplicationRuleDict, ReplicationRuleFilter, + ReplicationRuleFilterDict, ReplicationTime, + ReplicationTimeDict, ReplicationTimeValue, + ReplicationTimeValueDict, RequestPaymentConfiguration, + RequestPaymentConfigurationDict, RequestProgress, + RequestProgressDict, RestoreObjectInput, + RestoreObjectInputDict, RestoreObjectOutput, RestoreRequest, + RestoreRequestDict, RestoreStatus, RoutingRule, + RoutingRuleDict, S3KeyFilter, + S3KeyFilterDict, S3Location, + S3LocationDict, S3TablesDestination, + S3TablesDestinationDict, S3TablesDestinationResult, SSEKMS, + SSEKMSDict, SSEKMSEncryption, + SSEKMSEncryptionDict, SSES3, + SSES3Dict, ScanRange, + ScanRangeDict, SelectObjectContentInput, + SelectObjectContentInputDict, SelectObjectContentOutput, SelectParameters, + SelectParametersDict, ServerSideEncryptionByDefault, + ServerSideEncryptionByDefaultDict, ServerSideEncryptionConfiguration, + ServerSideEncryptionConfigurationDict, ServerSideEncryptionRule, + ServerSideEncryptionRuleDict, SessionCredentials, SimplePrefix, + SimplePrefixDict, SourceSelectionCriteria, + SourceSelectionCriteriaDict, SseKmsEncryptedObjects, + SseKmsEncryptedObjectsDict, Stats, StatsEvent, StorageClassAnalysis, StorageClassAnalysisDataExport, + StorageClassAnalysisDataExportDict, + StorageClassAnalysisDict, Tag, + TagDict, Tagging, + TaggingDict, TargetGrant, + TargetGrantDict, TargetObjectKeyFormat, + TargetObjectKeyFormatDict, Tiering, + TieringDict, TopicConfiguration, + TopicConfigurationDict, Transition, + TransitionDict, UpdateBucketMetadataAnnotationTableConfigurationInput, + UpdateBucketMetadataAnnotationTableConfigurationInputDict, UpdateBucketMetadataAnnotationTableConfigurationOutput, UpdateBucketMetadataInventoryTableConfigurationInput, + UpdateBucketMetadataInventoryTableConfigurationInputDict, UpdateBucketMetadataInventoryTableConfigurationOutput, UpdateBucketMetadataJournalTableConfigurationInput, + UpdateBucketMetadataJournalTableConfigurationInputDict, UpdateBucketMetadataJournalTableConfigurationOutput, UpdateObjectEncryptionInput, + UpdateObjectEncryptionInputDict, UpdateObjectEncryptionOutput, UploadPartCopyInput, + UploadPartCopyInputDict, UploadPartCopyOutput, UploadPartInput, + UploadPartInputDict, UploadPartOutput, VersioningConfiguration, + VersioningConfigurationDict, WebsiteConfiguration, + WebsiteConfigurationDict, WriteGetObjectResponseInput, + WriteGetObjectResponseInputDict, WriteGetObjectResponseOutput, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -789,3 +1036,1730 @@ WebsiteConfiguration() WriteGetObjectResponseInput() WriteGetObjectResponseOutput() +_params_0: AbacStatusDict = {} +_params_1: AbortIncompleteMultipartUploadDict = {} +_params_2: AbortMultipartUploadInputDict = {"bucket": _, "key": _, "upload_id": _} +_params_3: AccelerateConfigurationDict = {} +_params_4: AccessControlPolicyDict = {} +_params_5: AccessControlTranslationDict = {"owner": _} +_params_6: AnalyticsAndOperatorDict = {} +_params_7: AnalyticsConfigurationDict = {"id": _, "storage_class_analysis": _} +_params_8: AnalyticsExportDestinationDict = {"s3_bucket_destination": _} +_params_9: AnalyticsFilterDict = {"prefix": _} +_params_10: AnalyticsS3BucketDestinationDict = {"format": _, "bucket": _} +_params_11: AnnotationTableConfigurationDict = {"configuration_state": _} +_params_12: AnnotationTableConfigurationUpdatesDict = {"configuration_state": _} +_params_13: BlockedEncryptionTypesDict = {} +_params_14: BucketInfoDict = {} +_params_15: BucketLifecycleConfigurationDict = {"rules": _} +_params_16: BucketLoggingStatusDict = {} +_params_17: CompletedMultipartUploadDict = {} +_params_18: CompletedPartDict = {} +_params_19: CompleteMultipartUploadInputDict = {"bucket": _, "key": _, "upload_id": _} +_params_20: ConditionDict = {} +_params_21: CopyObjectInputDict = {"bucket": _, "copy_source": _, "key": _} +_params_22: CORSConfigurationDict = {"cors_rules": _} +_params_23: CORSRuleDict = {"allowed_methods": _, "allowed_origins": _} +_params_24: CreateBucketConfigurationDict = {} +_params_25: CreateBucketInputDict = {"bucket": _} +_params_26: CreateBucketMetadataConfigurationInputDict = { + "bucket": _, + "metadata_configuration": _, +} +_params_27: CreateBucketMetadataTableConfigurationInputDict = { + "bucket": _, + "metadata_table_configuration": _, +} +_params_28: CreateMultipartUploadInputDict = {"bucket": _, "key": _} +_params_29: CreateSessionInputDict = {"bucket": _} +_params_30: CSVInputDict = {} +_params_31: CSVOutputDict = {} +_params_32: DefaultRetentionDict = {} +_params_33: DeleteDict = {"objects": _} +_params_34: DeleteBucketAnalyticsConfigurationInputDict = {"bucket": _, "id": _} +_params_35: DeleteBucketCorsInputDict = {"bucket": _} +_params_36: DeleteBucketEncryptionInputDict = {"bucket": _} +_params_37: DeleteBucketInputDict = {"bucket": _} +_params_38: DeleteBucketIntelligentTieringConfigurationInputDict = { + "bucket": _, + "id": _, +} +_params_39: DeleteBucketInventoryConfigurationInputDict = {"bucket": _, "id": _} +_params_40: DeleteBucketLifecycleInputDict = {"bucket": _} +_params_41: DeleteBucketMetadataConfigurationInputDict = {"bucket": _} +_params_42: DeleteBucketMetadataTableConfigurationInputDict = {"bucket": _} +_params_43: DeleteBucketMetricsConfigurationInputDict = {"bucket": _, "id": _} +_params_44: DeleteBucketOwnershipControlsInputDict = {"bucket": _} +_params_45: DeleteBucketPolicyInputDict = {"bucket": _} +_params_46: DeleteBucketReplicationInputDict = {"bucket": _} +_params_47: DeleteBucketTaggingInputDict = {"bucket": _} +_params_48: DeleteBucketWebsiteInputDict = {"bucket": _} +_params_49: DeleteMarkerReplicationDict = {} +_params_50: DeleteObjectAnnotationInputDict = { + "bucket": _, + "key": _, + "annotation_name": _, +} +_params_51: DeleteObjectInputDict = {"bucket": _, "key": _} +_params_52: DeleteObjectsInputDict = {"bucket": _, "delete": _} +_params_53: DeleteObjectTaggingInputDict = {"bucket": _, "key": _} +_params_54: DeletePublicAccessBlockInputDict = {"bucket": _} +_params_55: DestinationDict = {"bucket": _} +_params_56: EncryptionDict = {"encryption_type": _} +_params_57: EncryptionConfigurationDict = {} +_params_58: ErrorDocumentDict = {"key": _} +_params_59: EventBridgeConfigurationDict = {} +_params_60: EventHoldDurationDict = {} +_params_61: ExistingObjectReplicationDict = {"status": _} +_params_62: FilterRuleDict = {} +_params_63: GetBucketAbacInputDict = {"bucket": _} +_params_64: GetBucketAccelerateConfigurationInputDict = {"bucket": _} +_params_65: GetBucketAclInputDict = {"bucket": _} +_params_66: GetBucketAnalyticsConfigurationInputDict = {"bucket": _, "id": _} +_params_67: GetBucketCorsInputDict = {"bucket": _} +_params_68: GetBucketEncryptionInputDict = {"bucket": _} +_params_69: GetBucketIntelligentTieringConfigurationInputDict = {"bucket": _, "id": _} +_params_70: GetBucketInventoryConfigurationInputDict = {"bucket": _, "id": _} +_params_71: GetBucketLifecycleConfigurationInputDict = {"bucket": _} +_params_72: GetBucketLocationInputDict = {"bucket": _} +_params_73: GetBucketLoggingInputDict = {"bucket": _} +_params_74: GetBucketMetadataConfigurationInputDict = {"bucket": _} +_params_75: GetBucketMetadataTableConfigurationInputDict = {"bucket": _} +_params_76: GetBucketMetricsConfigurationInputDict = {"bucket": _, "id": _} +_params_77: GetBucketNotificationConfigurationInputDict = {"bucket": _} +_params_78: GetBucketOwnershipControlsInputDict = {"bucket": _} +_params_79: GetBucketPolicyInputDict = {"bucket": _} +_params_80: GetBucketPolicyStatusInputDict = {"bucket": _} +_params_81: GetBucketReplicationInputDict = {"bucket": _} +_params_82: GetBucketRequestPaymentInputDict = {"bucket": _} +_params_83: GetBucketTaggingInputDict = {"bucket": _} +_params_84: GetBucketVersioningInputDict = {"bucket": _} +_params_85: GetBucketWebsiteInputDict = {"bucket": _} +_params_86: GetObjectAclInputDict = {"bucket": _, "key": _} +_params_87: GetObjectAnnotationInputDict = {"bucket": _, "key": _, "annotation_name": _} +_params_88: GetObjectAttributesInputDict = { + "bucket": _, + "key": _, + "object_attributes": _, +} +_params_89: GetObjectInputDict = {"bucket": _, "key": _} +_params_90: GetObjectLegalHoldInputDict = {"bucket": _, "key": _} +_params_91: GetObjectLockConfigurationInputDict = {"bucket": _} +_params_92: GetObjectRetentionInputDict = {"bucket": _, "key": _} +_params_93: GetObjectTaggingInputDict = {"bucket": _, "key": _} +_params_94: GetObjectTorrentInputDict = {"bucket": _, "key": _} +_params_95: GetPublicAccessBlockInputDict = {"bucket": _} +_params_96: GlacierJobParametersDict = {"tier": _} +_params_97: GrantDict = {} +_params_98: GranteeDict = {"type": _} +_params_99: HeadBucketInputDict = {"bucket": _} +_params_100: HeadObjectInputDict = {"bucket": _, "key": _} +_params_101: IndexDocumentDict = {"suffix": _} +_params_102: InputSerializationDict = {} +_params_103: IntelligentTieringAndOperatorDict = {} +_params_104: IntelligentTieringConfigurationDict = {"id": _, "status": _, "tierings": _} +_params_105: IntelligentTieringFilterDict = {} +_params_106: InventoryConfigurationDict = { + "destination": _, + "is_enabled": _, + "id": _, + "included_object_versions": _, + "schedule": _, +} +_params_107: InventoryDestinationDict = {"s3_bucket_destination": _} +_params_108: InventoryEncryptionDict = {} +_params_109: InventoryFilterDict = {"prefix": _} +_params_110: InventoryS3BucketDestinationDict = {"bucket": _, "format": _} +_params_111: InventoryScheduleDict = {"frequency": _} +_params_112: InventoryTableConfigurationDict = {"configuration_state": _} +_params_113: InventoryTableConfigurationUpdatesDict = {"configuration_state": _} +_params_114: JournalTableConfigurationDict = {"record_expiration": _} +_params_115: JournalTableConfigurationUpdatesDict = {"record_expiration": _} +_params_116: JSONInputDict = {} +_params_117: JSONOutputDict = {} +_params_118: LambdaFunctionConfigurationDict = {"lambda_function_arn": _, "events": _} +_params_119: LifecycleExpirationDict = {} +_params_120: LifecycleRuleDict = {"status": _} +_params_121: LifecycleRuleAndOperatorDict = {} +_params_122: LifecycleRuleFilterDict = {} +_params_123: ListBucketAnalyticsConfigurationsInputDict = {"bucket": _} +_params_124: ListBucketIntelligentTieringConfigurationsInputDict = {"bucket": _} +_params_125: ListBucketInventoryConfigurationsInputDict = {"bucket": _} +_params_126: ListBucketMetricsConfigurationsInputDict = {"bucket": _} +_params_127: ListBucketsInputDict = {} +_params_128: ListDirectoryBucketsInputDict = {} +_params_129: ListMultipartUploadsInputDict = {"bucket": _} +_params_130: ListObjectAnnotationsInputDict = {"bucket": _, "key": _} +_params_131: ListObjectsInputDict = {"bucket": _} +_params_132: ListObjectsV2InputDict = {"bucket": _} +_params_133: ListObjectVersionsInputDict = {"bucket": _} +_params_134: ListPartsInputDict = {"bucket": _, "key": _, "upload_id": _} +_params_135: LocationInfoDict = {} +_params_136: LoggingEnabledDict = {"target_bucket": _, "target_prefix": _} +_params_137: MetadataConfigurationDict = {"journal_table_configuration": _} +_params_138: MetadataEntryDict = {} +_params_139: MetadataTableConfigurationDict = {"s3_tables_destination": _} +_params_140: MetadataTableEncryptionConfigurationDict = {"sse_algorithm": _} +_params_141: MetricsDict = {"status": _} +_params_142: MetricsAndOperatorDict = {} +_params_143: MetricsConfigurationDict = {"id": _} +_params_144: MetricsFilterDict = {"prefix": _} +_params_145: NoncurrentVersionExpirationDict = {} +_params_146: NoncurrentVersionTransitionDict = {} +_params_147: NotificationConfigurationDict = {} +_params_148: NotificationConfigurationFilterDict = {} +_params_149: ObjectEncryptionDict = {"ssekms": _} +_params_150: ObjectIdentifierDict = {"key": _} +_params_151: ObjectLockConfigurationDict = {} +_params_152: ObjectLockLegalHoldDict = {} +_params_153: ObjectLockRetentionDict = {} +_params_154: ObjectLockRuleDict = {} +_params_155: OutputLocationDict = {} +_params_156: OutputSerializationDict = {} +_params_157: OwnerDict = {} +_params_158: OwnershipControlsDict = {"rules": _} +_params_159: OwnershipControlsRuleDict = {"object_ownership": _} +_params_160: ParquetInputDict = {} +_params_161: PartitionedPrefixDict = {} +_params_162: PublicAccessBlockConfigurationDict = {} +_params_163: PutBucketAbacInputDict = {"bucket": _, "abac_status": _} +_params_164: PutBucketAccelerateConfigurationInputDict = { + "bucket": _, + "accelerate_configuration": _, +} +_params_165: PutBucketAclInputDict = {"bucket": _} +_params_166: PutBucketAnalyticsConfigurationInputDict = { + "bucket": _, + "id": _, + "analytics_configuration": _, +} +_params_167: PutBucketCorsInputDict = {"bucket": _, "cors_configuration": _} +_params_168: PutBucketEncryptionInputDict = { + "bucket": _, + "server_side_encryption_configuration": _, +} +_params_169: PutBucketIntelligentTieringConfigurationInputDict = { + "bucket": _, + "id": _, + "intelligent_tiering_configuration": _, +} +_params_170: PutBucketInventoryConfigurationInputDict = { + "bucket": _, + "id": _, + "inventory_configuration": _, +} +_params_171: PutBucketLifecycleConfigurationInputDict = {"bucket": _} +_params_172: PutBucketLoggingInputDict = {"bucket": _, "bucket_logging_status": _} +_params_173: PutBucketMetricsConfigurationInputDict = { + "bucket": _, + "id": _, + "metrics_configuration": _, +} +_params_174: PutBucketNotificationConfigurationInputDict = { + "bucket": _, + "notification_configuration": _, +} +_params_175: PutBucketOwnershipControlsInputDict = { + "bucket": _, + "ownership_controls": _, +} +_params_176: PutBucketPolicyInputDict = {"bucket": _, "policy": _} +_params_177: PutBucketReplicationInputDict = { + "bucket": _, + "replication_configuration": _, +} +_params_178: PutBucketRequestPaymentInputDict = { + "bucket": _, + "request_payment_configuration": _, +} +_params_179: PutBucketTaggingInputDict = {"bucket": _, "tagging": _} +_params_180: PutBucketVersioningInputDict = {"bucket": _, "versioning_configuration": _} +_params_181: PutBucketWebsiteInputDict = {"bucket": _, "website_configuration": _} +_params_182: PutObjectAclInputDict = {"bucket": _, "key": _} +_params_183: PutObjectAnnotationInputDict = { + "bucket": _, + "key": _, + "annotation_name": _, + "annotation_payload": _, +} +_params_184: PutObjectInputDict = {"bucket": _, "key": _} +_params_185: PutObjectLegalHoldInputDict = {"bucket": _, "key": _} +_params_186: PutObjectLockConfigurationInputDict = {"bucket": _} +_params_187: PutObjectRetentionInputDict = {"bucket": _, "key": _} +_params_188: PutObjectTaggingInputDict = {"bucket": _, "key": _, "tagging": _} +_params_189: PutPublicAccessBlockInputDict = { + "bucket": _, + "public_access_block_configuration": _, +} +_params_190: QueueConfigurationDict = {"queue_arn": _, "events": _} +_params_191: RecordExpirationDict = {"expiration": _} +_params_192: RedirectDict = {} +_params_193: RedirectAllRequestsToDict = {"host_name": _} +_params_194: RenameObjectInputDict = {"bucket": _, "key": _, "rename_source": _} +_params_195: ReplicaModificationsDict = {"status": _} +_params_196: ReplicationConfigurationDict = {"role": _, "rules": _} +_params_197: ReplicationRuleDict = {"status": _, "destination": _} +_params_198: ReplicationRuleAndOperatorDict = {} +_params_199: ReplicationRuleFilterDict = {} +_params_200: ReplicationTimeDict = {"status": _, "time": _} +_params_201: ReplicationTimeValueDict = {} +_params_202: RequestPaymentConfigurationDict = {"payer": _} +_params_203: RequestProgressDict = {} +_params_204: RestoreObjectInputDict = {"bucket": _, "key": _} +_params_205: RestoreRequestDict = {} +_params_206: RoutingRuleDict = {"redirect": _} +_params_207: S3KeyFilterDict = {} +_params_208: S3LocationDict = {"bucket_name": _, "prefix": _} +_params_209: S3TablesDestinationDict = {"table_bucket_arn": _, "table_name": _} +_params_210: ScanRangeDict = {} +_params_211: SelectObjectContentInputDict = { + "bucket": _, + "key": _, + "expression": _, + "expression_type": _, + "input_serialization": _, + "output_serialization": _, +} +_params_212: SelectParametersDict = { + "input_serialization": _, + "expression_type": _, + "expression": _, + "output_serialization": _, +} +_params_213: ServerSideEncryptionByDefaultDict = {"sse_algorithm": _} +_params_214: ServerSideEncryptionConfigurationDict = {"rules": _} +_params_215: ServerSideEncryptionRuleDict = {} +_params_216: SimplePrefixDict = {} +_params_217: SourceSelectionCriteriaDict = {} +_params_218: SSEKMSDict = {"key_id": _} +_params_219: SseKmsEncryptedObjectsDict = {"status": _} +_params_220: SSEKMSEncryptionDict = {"kms_key_arn": _} +_params_221: SSES3Dict = {} +_params_222: StorageClassAnalysisDict = {} +_params_223: StorageClassAnalysisDataExportDict = { + "output_schema_version": _, + "destination": _, +} +_params_224: TagDict = {"key": _, "value": _} +_params_225: TaggingDict = {"tag_set": _} +_params_226: TargetGrantDict = {} +_params_227: TargetObjectKeyFormatDict = {} +_params_228: TieringDict = {"days": _, "access_tier": _} +_params_229: TopicConfigurationDict = {"topic_arn": _, "events": _} +_params_230: TransitionDict = {} +_params_231: UpdateBucketMetadataAnnotationTableConfigurationInputDict = { + "bucket": _, + "annotation_table_configuration": _, +} +_params_232: UpdateBucketMetadataInventoryTableConfigurationInputDict = { + "bucket": _, + "inventory_table_configuration": _, +} +_params_233: UpdateBucketMetadataJournalTableConfigurationInputDict = { + "bucket": _, + "journal_table_configuration": _, +} +_params_234: UpdateObjectEncryptionInputDict = { + "bucket": _, + "key": _, + "object_encryption": _, +} +_params_235: UploadPartCopyInputDict = { + "bucket": _, + "copy_source": _, + "key": _, + "part_number": _, + "upload_id": _, +} +_params_236: UploadPartInputDict = { + "bucket": _, + "key": _, + "part_number": _, + "upload_id": _, +} +_params_237: VersioningConfigurationDict = {} +_params_238: WebsiteConfigurationDict = {} +_params_239: WriteGetObjectResponseInputDict = {"request_route": _, "request_token": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncS3Client) -> None: + pass + await client.abort_multipart_upload(bucket=_, key=_, upload_id=_) + await client.abort_multipart_upload(**_request(AbortMultipartUploadInputDict)) + await client.abort_multipart_upload(_request(AbortMultipartUploadInput)) + await client.abort_multipart_upload(_request(AbortMultipartUploadInputDict)) + await client.complete_multipart_upload(bucket=_, key=_, upload_id=_) + await client.complete_multipart_upload(**_request(CompleteMultipartUploadInputDict)) + await client.complete_multipart_upload(_request(CompleteMultipartUploadInput)) + await client.complete_multipart_upload(_request(CompleteMultipartUploadInputDict)) + await client.copy_object(bucket=_, copy_source=_, key=_) + await client.copy_object(**_request(CopyObjectInputDict)) + await client.copy_object(_request(CopyObjectInput)) + await client.copy_object(_request(CopyObjectInputDict)) + await client.create_bucket(bucket=_) + await client.create_bucket(**_request(CreateBucketInputDict)) + await client.create_bucket(_request(CreateBucketInput)) + await client.create_bucket(_request(CreateBucketInputDict)) + await client.create_bucket_metadata_configuration( + bucket=_, metadata_configuration=_ + ) + await client.create_bucket_metadata_configuration( + **_request(CreateBucketMetadataConfigurationInputDict) + ) + await client.create_bucket_metadata_configuration( + _request(CreateBucketMetadataConfigurationInput) + ) + await client.create_bucket_metadata_configuration( + _request(CreateBucketMetadataConfigurationInputDict) + ) + await client.create_bucket_metadata_table_configuration( + bucket=_, metadata_table_configuration=_ + ) + await client.create_bucket_metadata_table_configuration( + **_request(CreateBucketMetadataTableConfigurationInputDict) + ) + await client.create_bucket_metadata_table_configuration( + _request(CreateBucketMetadataTableConfigurationInput) + ) + await client.create_bucket_metadata_table_configuration( + _request(CreateBucketMetadataTableConfigurationInputDict) + ) + await client.create_multipart_upload(bucket=_, key=_) + await client.create_multipart_upload(**_request(CreateMultipartUploadInputDict)) + await client.create_multipart_upload(_request(CreateMultipartUploadInput)) + await client.create_multipart_upload(_request(CreateMultipartUploadInputDict)) + await client.create_session(bucket=_) + await client.create_session(**_request(CreateSessionInputDict)) + await client.create_session(_request(CreateSessionInput)) + await client.create_session(_request(CreateSessionInputDict)) + await client.delete_bucket(bucket=_) + await client.delete_bucket(**_request(DeleteBucketInputDict)) + await client.delete_bucket(_request(DeleteBucketInput)) + await client.delete_bucket(_request(DeleteBucketInputDict)) + await client.delete_bucket_analytics_configuration(bucket=_, id=_) + await client.delete_bucket_analytics_configuration( + **_request(DeleteBucketAnalyticsConfigurationInputDict) + ) + await client.delete_bucket_analytics_configuration( + _request(DeleteBucketAnalyticsConfigurationInput) + ) + await client.delete_bucket_analytics_configuration( + _request(DeleteBucketAnalyticsConfigurationInputDict) + ) + await client.delete_bucket_cors(bucket=_) + await client.delete_bucket_cors(**_request(DeleteBucketCorsInputDict)) + await client.delete_bucket_cors(_request(DeleteBucketCorsInput)) + await client.delete_bucket_cors(_request(DeleteBucketCorsInputDict)) + await client.delete_bucket_encryption(bucket=_) + await client.delete_bucket_encryption(**_request(DeleteBucketEncryptionInputDict)) + await client.delete_bucket_encryption(_request(DeleteBucketEncryptionInput)) + await client.delete_bucket_encryption(_request(DeleteBucketEncryptionInputDict)) + await client.delete_bucket_intelligent_tiering_configuration(bucket=_, id=_) + await client.delete_bucket_intelligent_tiering_configuration( + **_request(DeleteBucketIntelligentTieringConfigurationInputDict) + ) + await client.delete_bucket_intelligent_tiering_configuration( + _request(DeleteBucketIntelligentTieringConfigurationInput) + ) + await client.delete_bucket_intelligent_tiering_configuration( + _request(DeleteBucketIntelligentTieringConfigurationInputDict) + ) + await client.delete_bucket_inventory_configuration(bucket=_, id=_) + await client.delete_bucket_inventory_configuration( + **_request(DeleteBucketInventoryConfigurationInputDict) + ) + await client.delete_bucket_inventory_configuration( + _request(DeleteBucketInventoryConfigurationInput) + ) + await client.delete_bucket_inventory_configuration( + _request(DeleteBucketInventoryConfigurationInputDict) + ) + await client.delete_bucket_lifecycle(bucket=_) + await client.delete_bucket_lifecycle(**_request(DeleteBucketLifecycleInputDict)) + await client.delete_bucket_lifecycle(_request(DeleteBucketLifecycleInput)) + await client.delete_bucket_lifecycle(_request(DeleteBucketLifecycleInputDict)) + await client.delete_bucket_metadata_configuration(bucket=_) + await client.delete_bucket_metadata_configuration( + **_request(DeleteBucketMetadataConfigurationInputDict) + ) + await client.delete_bucket_metadata_configuration( + _request(DeleteBucketMetadataConfigurationInput) + ) + await client.delete_bucket_metadata_configuration( + _request(DeleteBucketMetadataConfigurationInputDict) + ) + await client.delete_bucket_metadata_table_configuration(bucket=_) + await client.delete_bucket_metadata_table_configuration( + **_request(DeleteBucketMetadataTableConfigurationInputDict) + ) + await client.delete_bucket_metadata_table_configuration( + _request(DeleteBucketMetadataTableConfigurationInput) + ) + await client.delete_bucket_metadata_table_configuration( + _request(DeleteBucketMetadataTableConfigurationInputDict) + ) + await client.delete_bucket_metrics_configuration(bucket=_, id=_) + await client.delete_bucket_metrics_configuration( + **_request(DeleteBucketMetricsConfigurationInputDict) + ) + await client.delete_bucket_metrics_configuration( + _request(DeleteBucketMetricsConfigurationInput) + ) + await client.delete_bucket_metrics_configuration( + _request(DeleteBucketMetricsConfigurationInputDict) + ) + await client.delete_bucket_ownership_controls(bucket=_) + await client.delete_bucket_ownership_controls( + **_request(DeleteBucketOwnershipControlsInputDict) + ) + await client.delete_bucket_ownership_controls( + _request(DeleteBucketOwnershipControlsInput) + ) + await client.delete_bucket_ownership_controls( + _request(DeleteBucketOwnershipControlsInputDict) + ) + await client.delete_bucket_policy(bucket=_) + await client.delete_bucket_policy(**_request(DeleteBucketPolicyInputDict)) + await client.delete_bucket_policy(_request(DeleteBucketPolicyInput)) + await client.delete_bucket_policy(_request(DeleteBucketPolicyInputDict)) + await client.delete_bucket_replication(bucket=_) + await client.delete_bucket_replication(**_request(DeleteBucketReplicationInputDict)) + await client.delete_bucket_replication(_request(DeleteBucketReplicationInput)) + await client.delete_bucket_replication(_request(DeleteBucketReplicationInputDict)) + await client.delete_bucket_tagging(bucket=_) + await client.delete_bucket_tagging(**_request(DeleteBucketTaggingInputDict)) + await client.delete_bucket_tagging(_request(DeleteBucketTaggingInput)) + await client.delete_bucket_tagging(_request(DeleteBucketTaggingInputDict)) + await client.delete_bucket_website(bucket=_) + await client.delete_bucket_website(**_request(DeleteBucketWebsiteInputDict)) + await client.delete_bucket_website(_request(DeleteBucketWebsiteInput)) + await client.delete_bucket_website(_request(DeleteBucketWebsiteInputDict)) + await client.delete_object(bucket=_, key=_) + await client.delete_object(**_request(DeleteObjectInputDict)) + await client.delete_object(_request(DeleteObjectInput)) + await client.delete_object(_request(DeleteObjectInputDict)) + await client.delete_object_annotation(bucket=_, key=_, annotation_name=_) + await client.delete_object_annotation(**_request(DeleteObjectAnnotationInputDict)) + await client.delete_object_annotation(_request(DeleteObjectAnnotationInput)) + await client.delete_object_annotation(_request(DeleteObjectAnnotationInputDict)) + await client.delete_objects(bucket=_, delete=_) + await client.delete_objects(**_request(DeleteObjectsInputDict)) + await client.delete_objects(_request(DeleteObjectsInput)) + await client.delete_objects(_request(DeleteObjectsInputDict)) + await client.delete_object_tagging(bucket=_, key=_) + await client.delete_object_tagging(**_request(DeleteObjectTaggingInputDict)) + await client.delete_object_tagging(_request(DeleteObjectTaggingInput)) + await client.delete_object_tagging(_request(DeleteObjectTaggingInputDict)) + await client.delete_public_access_block(bucket=_) + await client.delete_public_access_block( + **_request(DeletePublicAccessBlockInputDict) + ) + await client.delete_public_access_block(_request(DeletePublicAccessBlockInput)) + await client.delete_public_access_block(_request(DeletePublicAccessBlockInputDict)) + await client.get_bucket_abac(bucket=_) + await client.get_bucket_abac(**_request(GetBucketAbacInputDict)) + await client.get_bucket_abac(_request(GetBucketAbacInput)) + await client.get_bucket_abac(_request(GetBucketAbacInputDict)) + await client.get_bucket_accelerate_configuration(bucket=_) + await client.get_bucket_accelerate_configuration( + **_request(GetBucketAccelerateConfigurationInputDict) + ) + await client.get_bucket_accelerate_configuration( + _request(GetBucketAccelerateConfigurationInput) + ) + await client.get_bucket_accelerate_configuration( + _request(GetBucketAccelerateConfigurationInputDict) + ) + await client.get_bucket_acl(bucket=_) + await client.get_bucket_acl(**_request(GetBucketAclInputDict)) + await client.get_bucket_acl(_request(GetBucketAclInput)) + await client.get_bucket_acl(_request(GetBucketAclInputDict)) + await client.get_bucket_analytics_configuration(bucket=_, id=_) + await client.get_bucket_analytics_configuration( + **_request(GetBucketAnalyticsConfigurationInputDict) + ) + await client.get_bucket_analytics_configuration( + _request(GetBucketAnalyticsConfigurationInput) + ) + await client.get_bucket_analytics_configuration( + _request(GetBucketAnalyticsConfigurationInputDict) + ) + await client.get_bucket_cors(bucket=_) + await client.get_bucket_cors(**_request(GetBucketCorsInputDict)) + await client.get_bucket_cors(_request(GetBucketCorsInput)) + await client.get_bucket_cors(_request(GetBucketCorsInputDict)) + await client.get_bucket_encryption(bucket=_) + await client.get_bucket_encryption(**_request(GetBucketEncryptionInputDict)) + await client.get_bucket_encryption(_request(GetBucketEncryptionInput)) + await client.get_bucket_encryption(_request(GetBucketEncryptionInputDict)) + await client.get_bucket_intelligent_tiering_configuration(bucket=_, id=_) + await client.get_bucket_intelligent_tiering_configuration( + **_request(GetBucketIntelligentTieringConfigurationInputDict) + ) + await client.get_bucket_intelligent_tiering_configuration( + _request(GetBucketIntelligentTieringConfigurationInput) + ) + await client.get_bucket_intelligent_tiering_configuration( + _request(GetBucketIntelligentTieringConfigurationInputDict) + ) + await client.get_bucket_inventory_configuration(bucket=_, id=_) + await client.get_bucket_inventory_configuration( + **_request(GetBucketInventoryConfigurationInputDict) + ) + await client.get_bucket_inventory_configuration( + _request(GetBucketInventoryConfigurationInput) + ) + await client.get_bucket_inventory_configuration( + _request(GetBucketInventoryConfigurationInputDict) + ) + await client.get_bucket_lifecycle_configuration(bucket=_) + await client.get_bucket_lifecycle_configuration( + **_request(GetBucketLifecycleConfigurationInputDict) + ) + await client.get_bucket_lifecycle_configuration( + _request(GetBucketLifecycleConfigurationInput) + ) + await client.get_bucket_lifecycle_configuration( + _request(GetBucketLifecycleConfigurationInputDict) + ) + await client.get_bucket_location(bucket=_) + await client.get_bucket_location(**_request(GetBucketLocationInputDict)) + await client.get_bucket_location(_request(GetBucketLocationInput)) + await client.get_bucket_location(_request(GetBucketLocationInputDict)) + await client.get_bucket_logging(bucket=_) + await client.get_bucket_logging(**_request(GetBucketLoggingInputDict)) + await client.get_bucket_logging(_request(GetBucketLoggingInput)) + await client.get_bucket_logging(_request(GetBucketLoggingInputDict)) + await client.get_bucket_metadata_configuration(bucket=_) + await client.get_bucket_metadata_configuration( + **_request(GetBucketMetadataConfigurationInputDict) + ) + await client.get_bucket_metadata_configuration( + _request(GetBucketMetadataConfigurationInput) + ) + await client.get_bucket_metadata_configuration( + _request(GetBucketMetadataConfigurationInputDict) + ) + await client.get_bucket_metadata_table_configuration(bucket=_) + await client.get_bucket_metadata_table_configuration( + **_request(GetBucketMetadataTableConfigurationInputDict) + ) + await client.get_bucket_metadata_table_configuration( + _request(GetBucketMetadataTableConfigurationInput) + ) + await client.get_bucket_metadata_table_configuration( + _request(GetBucketMetadataTableConfigurationInputDict) + ) + await client.get_bucket_metrics_configuration(bucket=_, id=_) + await client.get_bucket_metrics_configuration( + **_request(GetBucketMetricsConfigurationInputDict) + ) + await client.get_bucket_metrics_configuration( + _request(GetBucketMetricsConfigurationInput) + ) + await client.get_bucket_metrics_configuration( + _request(GetBucketMetricsConfigurationInputDict) + ) + await client.get_bucket_notification_configuration(bucket=_) + await client.get_bucket_notification_configuration( + **_request(GetBucketNotificationConfigurationInputDict) + ) + await client.get_bucket_notification_configuration( + _request(GetBucketNotificationConfigurationInput) + ) + await client.get_bucket_notification_configuration( + _request(GetBucketNotificationConfigurationInputDict) + ) + await client.get_bucket_ownership_controls(bucket=_) + await client.get_bucket_ownership_controls( + **_request(GetBucketOwnershipControlsInputDict) + ) + await client.get_bucket_ownership_controls( + _request(GetBucketOwnershipControlsInput) + ) + await client.get_bucket_ownership_controls( + _request(GetBucketOwnershipControlsInputDict) + ) + await client.get_bucket_policy(bucket=_) + await client.get_bucket_policy(**_request(GetBucketPolicyInputDict)) + await client.get_bucket_policy(_request(GetBucketPolicyInput)) + await client.get_bucket_policy(_request(GetBucketPolicyInputDict)) + await client.get_bucket_policy_status(bucket=_) + await client.get_bucket_policy_status(**_request(GetBucketPolicyStatusInputDict)) + await client.get_bucket_policy_status(_request(GetBucketPolicyStatusInput)) + await client.get_bucket_policy_status(_request(GetBucketPolicyStatusInputDict)) + await client.get_bucket_replication(bucket=_) + await client.get_bucket_replication(**_request(GetBucketReplicationInputDict)) + await client.get_bucket_replication(_request(GetBucketReplicationInput)) + await client.get_bucket_replication(_request(GetBucketReplicationInputDict)) + await client.get_bucket_request_payment(bucket=_) + await client.get_bucket_request_payment( + **_request(GetBucketRequestPaymentInputDict) + ) + await client.get_bucket_request_payment(_request(GetBucketRequestPaymentInput)) + await client.get_bucket_request_payment(_request(GetBucketRequestPaymentInputDict)) + await client.get_bucket_tagging(bucket=_) + await client.get_bucket_tagging(**_request(GetBucketTaggingInputDict)) + await client.get_bucket_tagging(_request(GetBucketTaggingInput)) + await client.get_bucket_tagging(_request(GetBucketTaggingInputDict)) + await client.get_bucket_versioning(bucket=_) + await client.get_bucket_versioning(**_request(GetBucketVersioningInputDict)) + await client.get_bucket_versioning(_request(GetBucketVersioningInput)) + await client.get_bucket_versioning(_request(GetBucketVersioningInputDict)) + await client.get_bucket_website(bucket=_) + await client.get_bucket_website(**_request(GetBucketWebsiteInputDict)) + await client.get_bucket_website(_request(GetBucketWebsiteInput)) + await client.get_bucket_website(_request(GetBucketWebsiteInputDict)) + await client.get_object(bucket=_, key=_) + await client.get_object(**_request(GetObjectInputDict)) + await client.get_object(_request(GetObjectInput)) + await client.get_object(_request(GetObjectInputDict)) + await client.get_object_acl(bucket=_, key=_) + await client.get_object_acl(**_request(GetObjectAclInputDict)) + await client.get_object_acl(_request(GetObjectAclInput)) + await client.get_object_acl(_request(GetObjectAclInputDict)) + await client.get_object_annotation(bucket=_, key=_, annotation_name=_) + await client.get_object_annotation(**_request(GetObjectAnnotationInputDict)) + await client.get_object_annotation(_request(GetObjectAnnotationInput)) + await client.get_object_annotation(_request(GetObjectAnnotationInputDict)) + await client.get_object_attributes(bucket=_, key=_, object_attributes=_) + await client.get_object_attributes(**_request(GetObjectAttributesInputDict)) + await client.get_object_attributes(_request(GetObjectAttributesInput)) + await client.get_object_attributes(_request(GetObjectAttributesInputDict)) + await client.get_object_legal_hold(bucket=_, key=_) + await client.get_object_legal_hold(**_request(GetObjectLegalHoldInputDict)) + await client.get_object_legal_hold(_request(GetObjectLegalHoldInput)) + await client.get_object_legal_hold(_request(GetObjectLegalHoldInputDict)) + await client.get_object_lock_configuration(bucket=_) + await client.get_object_lock_configuration( + **_request(GetObjectLockConfigurationInputDict) + ) + await client.get_object_lock_configuration( + _request(GetObjectLockConfigurationInput) + ) + await client.get_object_lock_configuration( + _request(GetObjectLockConfigurationInputDict) + ) + await client.get_object_retention(bucket=_, key=_) + await client.get_object_retention(**_request(GetObjectRetentionInputDict)) + await client.get_object_retention(_request(GetObjectRetentionInput)) + await client.get_object_retention(_request(GetObjectRetentionInputDict)) + await client.get_object_tagging(bucket=_, key=_) + await client.get_object_tagging(**_request(GetObjectTaggingInputDict)) + await client.get_object_tagging(_request(GetObjectTaggingInput)) + await client.get_object_tagging(_request(GetObjectTaggingInputDict)) + await client.get_object_torrent(bucket=_, key=_) + await client.get_object_torrent(**_request(GetObjectTorrentInputDict)) + await client.get_object_torrent(_request(GetObjectTorrentInput)) + await client.get_object_torrent(_request(GetObjectTorrentInputDict)) + await client.get_public_access_block(bucket=_) + await client.get_public_access_block(**_request(GetPublicAccessBlockInputDict)) + await client.get_public_access_block(_request(GetPublicAccessBlockInput)) + await client.get_public_access_block(_request(GetPublicAccessBlockInputDict)) + await client.head_bucket(bucket=_) + await client.head_bucket(**_request(HeadBucketInputDict)) + await client.head_bucket(_request(HeadBucketInput)) + await client.head_bucket(_request(HeadBucketInputDict)) + await client.head_object(bucket=_, key=_) + await client.head_object(**_request(HeadObjectInputDict)) + await client.head_object(_request(HeadObjectInput)) + await client.head_object(_request(HeadObjectInputDict)) + await client.list_bucket_analytics_configurations(bucket=_) + await client.list_bucket_analytics_configurations( + **_request(ListBucketAnalyticsConfigurationsInputDict) + ) + await client.list_bucket_analytics_configurations( + _request(ListBucketAnalyticsConfigurationsInput) + ) + await client.list_bucket_analytics_configurations( + _request(ListBucketAnalyticsConfigurationsInputDict) + ) + await client.list_bucket_intelligent_tiering_configurations(bucket=_) + await client.list_bucket_intelligent_tiering_configurations( + **_request(ListBucketIntelligentTieringConfigurationsInputDict) + ) + await client.list_bucket_intelligent_tiering_configurations( + _request(ListBucketIntelligentTieringConfigurationsInput) + ) + await client.list_bucket_intelligent_tiering_configurations( + _request(ListBucketIntelligentTieringConfigurationsInputDict) + ) + await client.list_bucket_inventory_configurations(bucket=_) + await client.list_bucket_inventory_configurations( + **_request(ListBucketInventoryConfigurationsInputDict) + ) + await client.list_bucket_inventory_configurations( + _request(ListBucketInventoryConfigurationsInput) + ) + await client.list_bucket_inventory_configurations( + _request(ListBucketInventoryConfigurationsInputDict) + ) + await client.list_bucket_metrics_configurations(bucket=_) + await client.list_bucket_metrics_configurations( + **_request(ListBucketMetricsConfigurationsInputDict) + ) + await client.list_bucket_metrics_configurations( + _request(ListBucketMetricsConfigurationsInput) + ) + await client.list_bucket_metrics_configurations( + _request(ListBucketMetricsConfigurationsInputDict) + ) + await client.list_buckets() + await client.list_buckets(**_request(ListBucketsInputDict)) + await client.list_buckets(_request(ListBucketsInput)) + await client.list_buckets(_request(ListBucketsInputDict)) + await client.list_directory_buckets() + await client.list_directory_buckets(**_request(ListDirectoryBucketsInputDict)) + await client.list_directory_buckets(_request(ListDirectoryBucketsInput)) + await client.list_directory_buckets(_request(ListDirectoryBucketsInputDict)) + await client.list_multipart_uploads(bucket=_) + await client.list_multipart_uploads(**_request(ListMultipartUploadsInputDict)) + await client.list_multipart_uploads(_request(ListMultipartUploadsInput)) + await client.list_multipart_uploads(_request(ListMultipartUploadsInputDict)) + await client.list_object_annotations(bucket=_, key=_) + await client.list_object_annotations(**_request(ListObjectAnnotationsInputDict)) + await client.list_object_annotations(_request(ListObjectAnnotationsInput)) + await client.list_object_annotations(_request(ListObjectAnnotationsInputDict)) + await client.list_objects(bucket=_) + await client.list_objects(**_request(ListObjectsInputDict)) + await client.list_objects(_request(ListObjectsInput)) + await client.list_objects(_request(ListObjectsInputDict)) + await client.list_objects_v2(bucket=_) + await client.list_objects_v2(**_request(ListObjectsV2InputDict)) + await client.list_objects_v2(_request(ListObjectsV2Input)) + await client.list_objects_v2(_request(ListObjectsV2InputDict)) + await client.list_object_versions(bucket=_) + await client.list_object_versions(**_request(ListObjectVersionsInputDict)) + await client.list_object_versions(_request(ListObjectVersionsInput)) + await client.list_object_versions(_request(ListObjectVersionsInputDict)) + await client.list_parts(bucket=_, key=_, upload_id=_) + await client.list_parts(**_request(ListPartsInputDict)) + await client.list_parts(_request(ListPartsInput)) + await client.list_parts(_request(ListPartsInputDict)) + await client.put_bucket_abac(bucket=_, abac_status=_) + await client.put_bucket_abac(**_request(PutBucketAbacInputDict)) + await client.put_bucket_abac(_request(PutBucketAbacInput)) + await client.put_bucket_abac(_request(PutBucketAbacInputDict)) + await client.put_bucket_accelerate_configuration( + bucket=_, accelerate_configuration=_ + ) + await client.put_bucket_accelerate_configuration( + **_request(PutBucketAccelerateConfigurationInputDict) + ) + await client.put_bucket_accelerate_configuration( + _request(PutBucketAccelerateConfigurationInput) + ) + await client.put_bucket_accelerate_configuration( + _request(PutBucketAccelerateConfigurationInputDict) + ) + await client.put_bucket_acl(bucket=_) + await client.put_bucket_acl(**_request(PutBucketAclInputDict)) + await client.put_bucket_acl(_request(PutBucketAclInput)) + await client.put_bucket_acl(_request(PutBucketAclInputDict)) + await client.put_bucket_analytics_configuration( + bucket=_, id=_, analytics_configuration=_ + ) + await client.put_bucket_analytics_configuration( + **_request(PutBucketAnalyticsConfigurationInputDict) + ) + await client.put_bucket_analytics_configuration( + _request(PutBucketAnalyticsConfigurationInput) + ) + await client.put_bucket_analytics_configuration( + _request(PutBucketAnalyticsConfigurationInputDict) + ) + await client.put_bucket_cors(bucket=_, cors_configuration=_) + await client.put_bucket_cors(**_request(PutBucketCorsInputDict)) + await client.put_bucket_cors(_request(PutBucketCorsInput)) + await client.put_bucket_cors(_request(PutBucketCorsInputDict)) + await client.put_bucket_encryption(bucket=_, server_side_encryption_configuration=_) + await client.put_bucket_encryption(**_request(PutBucketEncryptionInputDict)) + await client.put_bucket_encryption(_request(PutBucketEncryptionInput)) + await client.put_bucket_encryption(_request(PutBucketEncryptionInputDict)) + await client.put_bucket_intelligent_tiering_configuration( + bucket=_, id=_, intelligent_tiering_configuration=_ + ) + await client.put_bucket_intelligent_tiering_configuration( + **_request(PutBucketIntelligentTieringConfigurationInputDict) + ) + await client.put_bucket_intelligent_tiering_configuration( + _request(PutBucketIntelligentTieringConfigurationInput) + ) + await client.put_bucket_intelligent_tiering_configuration( + _request(PutBucketIntelligentTieringConfigurationInputDict) + ) + await client.put_bucket_inventory_configuration( + bucket=_, id=_, inventory_configuration=_ + ) + await client.put_bucket_inventory_configuration( + **_request(PutBucketInventoryConfigurationInputDict) + ) + await client.put_bucket_inventory_configuration( + _request(PutBucketInventoryConfigurationInput) + ) + await client.put_bucket_inventory_configuration( + _request(PutBucketInventoryConfigurationInputDict) + ) + await client.put_bucket_lifecycle_configuration(bucket=_) + await client.put_bucket_lifecycle_configuration( + **_request(PutBucketLifecycleConfigurationInputDict) + ) + await client.put_bucket_lifecycle_configuration( + _request(PutBucketLifecycleConfigurationInput) + ) + await client.put_bucket_lifecycle_configuration( + _request(PutBucketLifecycleConfigurationInputDict) + ) + await client.put_bucket_logging(bucket=_, bucket_logging_status=_) + await client.put_bucket_logging(**_request(PutBucketLoggingInputDict)) + await client.put_bucket_logging(_request(PutBucketLoggingInput)) + await client.put_bucket_logging(_request(PutBucketLoggingInputDict)) + await client.put_bucket_metrics_configuration( + bucket=_, id=_, metrics_configuration=_ + ) + await client.put_bucket_metrics_configuration( + **_request(PutBucketMetricsConfigurationInputDict) + ) + await client.put_bucket_metrics_configuration( + _request(PutBucketMetricsConfigurationInput) + ) + await client.put_bucket_metrics_configuration( + _request(PutBucketMetricsConfigurationInputDict) + ) + await client.put_bucket_notification_configuration( + bucket=_, notification_configuration=_ + ) + await client.put_bucket_notification_configuration( + **_request(PutBucketNotificationConfigurationInputDict) + ) + await client.put_bucket_notification_configuration( + _request(PutBucketNotificationConfigurationInput) + ) + await client.put_bucket_notification_configuration( + _request(PutBucketNotificationConfigurationInputDict) + ) + await client.put_bucket_ownership_controls(bucket=_, ownership_controls=_) + await client.put_bucket_ownership_controls( + **_request(PutBucketOwnershipControlsInputDict) + ) + await client.put_bucket_ownership_controls( + _request(PutBucketOwnershipControlsInput) + ) + await client.put_bucket_ownership_controls( + _request(PutBucketOwnershipControlsInputDict) + ) + await client.put_bucket_policy(bucket=_, policy=_) + await client.put_bucket_policy(**_request(PutBucketPolicyInputDict)) + await client.put_bucket_policy(_request(PutBucketPolicyInput)) + await client.put_bucket_policy(_request(PutBucketPolicyInputDict)) + await client.put_bucket_replication(bucket=_, replication_configuration=_) + await client.put_bucket_replication(**_request(PutBucketReplicationInputDict)) + await client.put_bucket_replication(_request(PutBucketReplicationInput)) + await client.put_bucket_replication(_request(PutBucketReplicationInputDict)) + await client.put_bucket_request_payment(bucket=_, request_payment_configuration=_) + await client.put_bucket_request_payment( + **_request(PutBucketRequestPaymentInputDict) + ) + await client.put_bucket_request_payment(_request(PutBucketRequestPaymentInput)) + await client.put_bucket_request_payment(_request(PutBucketRequestPaymentInputDict)) + await client.put_bucket_tagging(bucket=_, tagging=_) + await client.put_bucket_tagging(**_request(PutBucketTaggingInputDict)) + await client.put_bucket_tagging(_request(PutBucketTaggingInput)) + await client.put_bucket_tagging(_request(PutBucketTaggingInputDict)) + await client.put_bucket_versioning(bucket=_, versioning_configuration=_) + await client.put_bucket_versioning(**_request(PutBucketVersioningInputDict)) + await client.put_bucket_versioning(_request(PutBucketVersioningInput)) + await client.put_bucket_versioning(_request(PutBucketVersioningInputDict)) + await client.put_bucket_website(bucket=_, website_configuration=_) + await client.put_bucket_website(**_request(PutBucketWebsiteInputDict)) + await client.put_bucket_website(_request(PutBucketWebsiteInput)) + await client.put_bucket_website(_request(PutBucketWebsiteInputDict)) + await client.put_object(bucket=_, key=_) + await client.put_object(**_request(PutObjectInputDict)) + await client.put_object(_request(PutObjectInput)) + await client.put_object(_request(PutObjectInputDict)) + await client.put_object(**_request(AsyncPutObjectInputDict)) + await client.put_object(_request(AsyncPutObjectInputDict)) + await client.put_object_acl(bucket=_, key=_) + await client.put_object_acl(**_request(PutObjectAclInputDict)) + await client.put_object_acl(_request(PutObjectAclInput)) + await client.put_object_acl(_request(PutObjectAclInputDict)) + await client.put_object_annotation( + bucket=_, key=_, annotation_name=_, annotation_payload=_ + ) + await client.put_object_annotation(**_request(PutObjectAnnotationInputDict)) + await client.put_object_annotation(_request(PutObjectAnnotationInput)) + await client.put_object_annotation(_request(PutObjectAnnotationInputDict)) + await client.put_object_annotation(**_request(AsyncPutObjectAnnotationInputDict)) + await client.put_object_annotation(_request(AsyncPutObjectAnnotationInputDict)) + await client.put_object_legal_hold(bucket=_, key=_) + await client.put_object_legal_hold(**_request(PutObjectLegalHoldInputDict)) + await client.put_object_legal_hold(_request(PutObjectLegalHoldInput)) + await client.put_object_legal_hold(_request(PutObjectLegalHoldInputDict)) + await client.put_object_lock_configuration(bucket=_) + await client.put_object_lock_configuration( + **_request(PutObjectLockConfigurationInputDict) + ) + await client.put_object_lock_configuration( + _request(PutObjectLockConfigurationInput) + ) + await client.put_object_lock_configuration( + _request(PutObjectLockConfigurationInputDict) + ) + await client.put_object_retention(bucket=_, key=_) + await client.put_object_retention(**_request(PutObjectRetentionInputDict)) + await client.put_object_retention(_request(PutObjectRetentionInput)) + await client.put_object_retention(_request(PutObjectRetentionInputDict)) + await client.put_object_tagging(bucket=_, key=_, tagging=_) + await client.put_object_tagging(**_request(PutObjectTaggingInputDict)) + await client.put_object_tagging(_request(PutObjectTaggingInput)) + await client.put_object_tagging(_request(PutObjectTaggingInputDict)) + await client.put_public_access_block(bucket=_, public_access_block_configuration=_) + await client.put_public_access_block(**_request(PutPublicAccessBlockInputDict)) + await client.put_public_access_block(_request(PutPublicAccessBlockInput)) + await client.put_public_access_block(_request(PutPublicAccessBlockInputDict)) + await client.rename_object(bucket=_, key=_, rename_source=_) + await client.rename_object(**_request(RenameObjectInputDict)) + await client.rename_object(_request(RenameObjectInput)) + await client.rename_object(_request(RenameObjectInputDict)) + await client.restore_object(bucket=_, key=_) + await client.restore_object(**_request(RestoreObjectInputDict)) + await client.restore_object(_request(RestoreObjectInput)) + await client.restore_object(_request(RestoreObjectInputDict)) + await client.select_object_content( + bucket=_, + key=_, + expression=_, + expression_type=_, + input_serialization=_, + output_serialization=_, + ) + await client.select_object_content(**_request(SelectObjectContentInputDict)) + await client.select_object_content(_request(SelectObjectContentInput)) + await client.select_object_content(_request(SelectObjectContentInputDict)) + await client.update_bucket_metadata_annotation_table_configuration( + bucket=_, annotation_table_configuration=_ + ) + await client.update_bucket_metadata_annotation_table_configuration( + **_request(UpdateBucketMetadataAnnotationTableConfigurationInputDict) + ) + await client.update_bucket_metadata_annotation_table_configuration( + _request(UpdateBucketMetadataAnnotationTableConfigurationInput) + ) + await client.update_bucket_metadata_annotation_table_configuration( + _request(UpdateBucketMetadataAnnotationTableConfigurationInputDict) + ) + await client.update_bucket_metadata_inventory_table_configuration( + bucket=_, inventory_table_configuration=_ + ) + await client.update_bucket_metadata_inventory_table_configuration( + **_request(UpdateBucketMetadataInventoryTableConfigurationInputDict) + ) + await client.update_bucket_metadata_inventory_table_configuration( + _request(UpdateBucketMetadataInventoryTableConfigurationInput) + ) + await client.update_bucket_metadata_inventory_table_configuration( + _request(UpdateBucketMetadataInventoryTableConfigurationInputDict) + ) + await client.update_bucket_metadata_journal_table_configuration( + bucket=_, journal_table_configuration=_ + ) + await client.update_bucket_metadata_journal_table_configuration( + **_request(UpdateBucketMetadataJournalTableConfigurationInputDict) + ) + await client.update_bucket_metadata_journal_table_configuration( + _request(UpdateBucketMetadataJournalTableConfigurationInput) + ) + await client.update_bucket_metadata_journal_table_configuration( + _request(UpdateBucketMetadataJournalTableConfigurationInputDict) + ) + await client.update_object_encryption(bucket=_, key=_, object_encryption=_) + await client.update_object_encryption(**_request(UpdateObjectEncryptionInputDict)) + await client.update_object_encryption(_request(UpdateObjectEncryptionInput)) + await client.update_object_encryption(_request(UpdateObjectEncryptionInputDict)) + await client.upload_part(bucket=_, key=_, part_number=_, upload_id=_) + await client.upload_part(**_request(UploadPartInputDict)) + await client.upload_part(_request(UploadPartInput)) + await client.upload_part(_request(UploadPartInputDict)) + await client.upload_part(**_request(AsyncUploadPartInputDict)) + await client.upload_part(_request(AsyncUploadPartInputDict)) + await client.upload_part_copy( + bucket=_, copy_source=_, key=_, part_number=_, upload_id=_ + ) + await client.upload_part_copy(**_request(UploadPartCopyInputDict)) + await client.upload_part_copy(_request(UploadPartCopyInput)) + await client.upload_part_copy(_request(UploadPartCopyInputDict)) + await client.write_get_object_response(request_route=_, request_token=_) + await client.write_get_object_response(**_request(WriteGetObjectResponseInputDict)) + await client.write_get_object_response(_request(WriteGetObjectResponseInput)) + await client.write_get_object_response(_request(WriteGetObjectResponseInputDict)) + await client.write_get_object_response( + **_request(AsyncWriteGetObjectResponseInputDict) + ) + await client.write_get_object_response( + _request(AsyncWriteGetObjectResponseInputDict) + ) + + +def check_sync_calls(client: S3Client) -> None: + pass + client.abort_multipart_upload(bucket=_, key=_, upload_id=_) + client.abort_multipart_upload(**_request(AbortMultipartUploadInputDict)) + client.abort_multipart_upload(_request(AbortMultipartUploadInput)) + client.abort_multipart_upload(_request(AbortMultipartUploadInputDict)) + client.complete_multipart_upload(bucket=_, key=_, upload_id=_) + client.complete_multipart_upload(**_request(CompleteMultipartUploadInputDict)) + client.complete_multipart_upload(_request(CompleteMultipartUploadInput)) + client.complete_multipart_upload(_request(CompleteMultipartUploadInputDict)) + client.copy_object(bucket=_, copy_source=_, key=_) + client.copy_object(**_request(CopyObjectInputDict)) + client.copy_object(_request(CopyObjectInput)) + client.copy_object(_request(CopyObjectInputDict)) + client.create_bucket(bucket=_) + client.create_bucket(**_request(CreateBucketInputDict)) + client.create_bucket(_request(CreateBucketInput)) + client.create_bucket(_request(CreateBucketInputDict)) + client.create_bucket_metadata_configuration(bucket=_, metadata_configuration=_) + client.create_bucket_metadata_configuration( + **_request(CreateBucketMetadataConfigurationInputDict) + ) + client.create_bucket_metadata_configuration( + _request(CreateBucketMetadataConfigurationInput) + ) + client.create_bucket_metadata_configuration( + _request(CreateBucketMetadataConfigurationInputDict) + ) + client.create_bucket_metadata_table_configuration( + bucket=_, metadata_table_configuration=_ + ) + client.create_bucket_metadata_table_configuration( + **_request(CreateBucketMetadataTableConfigurationInputDict) + ) + client.create_bucket_metadata_table_configuration( + _request(CreateBucketMetadataTableConfigurationInput) + ) + client.create_bucket_metadata_table_configuration( + _request(CreateBucketMetadataTableConfigurationInputDict) + ) + client.create_multipart_upload(bucket=_, key=_) + client.create_multipart_upload(**_request(CreateMultipartUploadInputDict)) + client.create_multipart_upload(_request(CreateMultipartUploadInput)) + client.create_multipart_upload(_request(CreateMultipartUploadInputDict)) + client.create_session(bucket=_) + client.create_session(**_request(CreateSessionInputDict)) + client.create_session(_request(CreateSessionInput)) + client.create_session(_request(CreateSessionInputDict)) + client.delete_bucket(bucket=_) + client.delete_bucket(**_request(DeleteBucketInputDict)) + client.delete_bucket(_request(DeleteBucketInput)) + client.delete_bucket(_request(DeleteBucketInputDict)) + client.delete_bucket_analytics_configuration(bucket=_, id=_) + client.delete_bucket_analytics_configuration( + **_request(DeleteBucketAnalyticsConfigurationInputDict) + ) + client.delete_bucket_analytics_configuration( + _request(DeleteBucketAnalyticsConfigurationInput) + ) + client.delete_bucket_analytics_configuration( + _request(DeleteBucketAnalyticsConfigurationInputDict) + ) + client.delete_bucket_cors(bucket=_) + client.delete_bucket_cors(**_request(DeleteBucketCorsInputDict)) + client.delete_bucket_cors(_request(DeleteBucketCorsInput)) + client.delete_bucket_cors(_request(DeleteBucketCorsInputDict)) + client.delete_bucket_encryption(bucket=_) + client.delete_bucket_encryption(**_request(DeleteBucketEncryptionInputDict)) + client.delete_bucket_encryption(_request(DeleteBucketEncryptionInput)) + client.delete_bucket_encryption(_request(DeleteBucketEncryptionInputDict)) + client.delete_bucket_intelligent_tiering_configuration(bucket=_, id=_) + client.delete_bucket_intelligent_tiering_configuration( + **_request(DeleteBucketIntelligentTieringConfigurationInputDict) + ) + client.delete_bucket_intelligent_tiering_configuration( + _request(DeleteBucketIntelligentTieringConfigurationInput) + ) + client.delete_bucket_intelligent_tiering_configuration( + _request(DeleteBucketIntelligentTieringConfigurationInputDict) + ) + client.delete_bucket_inventory_configuration(bucket=_, id=_) + client.delete_bucket_inventory_configuration( + **_request(DeleteBucketInventoryConfigurationInputDict) + ) + client.delete_bucket_inventory_configuration( + _request(DeleteBucketInventoryConfigurationInput) + ) + client.delete_bucket_inventory_configuration( + _request(DeleteBucketInventoryConfigurationInputDict) + ) + client.delete_bucket_lifecycle(bucket=_) + client.delete_bucket_lifecycle(**_request(DeleteBucketLifecycleInputDict)) + client.delete_bucket_lifecycle(_request(DeleteBucketLifecycleInput)) + client.delete_bucket_lifecycle(_request(DeleteBucketLifecycleInputDict)) + client.delete_bucket_metadata_configuration(bucket=_) + client.delete_bucket_metadata_configuration( + **_request(DeleteBucketMetadataConfigurationInputDict) + ) + client.delete_bucket_metadata_configuration( + _request(DeleteBucketMetadataConfigurationInput) + ) + client.delete_bucket_metadata_configuration( + _request(DeleteBucketMetadataConfigurationInputDict) + ) + client.delete_bucket_metadata_table_configuration(bucket=_) + client.delete_bucket_metadata_table_configuration( + **_request(DeleteBucketMetadataTableConfigurationInputDict) + ) + client.delete_bucket_metadata_table_configuration( + _request(DeleteBucketMetadataTableConfigurationInput) + ) + client.delete_bucket_metadata_table_configuration( + _request(DeleteBucketMetadataTableConfigurationInputDict) + ) + client.delete_bucket_metrics_configuration(bucket=_, id=_) + client.delete_bucket_metrics_configuration( + **_request(DeleteBucketMetricsConfigurationInputDict) + ) + client.delete_bucket_metrics_configuration( + _request(DeleteBucketMetricsConfigurationInput) + ) + client.delete_bucket_metrics_configuration( + _request(DeleteBucketMetricsConfigurationInputDict) + ) + client.delete_bucket_ownership_controls(bucket=_) + client.delete_bucket_ownership_controls( + **_request(DeleteBucketOwnershipControlsInputDict) + ) + client.delete_bucket_ownership_controls( + _request(DeleteBucketOwnershipControlsInput) + ) + client.delete_bucket_ownership_controls( + _request(DeleteBucketOwnershipControlsInputDict) + ) + client.delete_bucket_policy(bucket=_) + client.delete_bucket_policy(**_request(DeleteBucketPolicyInputDict)) + client.delete_bucket_policy(_request(DeleteBucketPolicyInput)) + client.delete_bucket_policy(_request(DeleteBucketPolicyInputDict)) + client.delete_bucket_replication(bucket=_) + client.delete_bucket_replication(**_request(DeleteBucketReplicationInputDict)) + client.delete_bucket_replication(_request(DeleteBucketReplicationInput)) + client.delete_bucket_replication(_request(DeleteBucketReplicationInputDict)) + client.delete_bucket_tagging(bucket=_) + client.delete_bucket_tagging(**_request(DeleteBucketTaggingInputDict)) + client.delete_bucket_tagging(_request(DeleteBucketTaggingInput)) + client.delete_bucket_tagging(_request(DeleteBucketTaggingInputDict)) + client.delete_bucket_website(bucket=_) + client.delete_bucket_website(**_request(DeleteBucketWebsiteInputDict)) + client.delete_bucket_website(_request(DeleteBucketWebsiteInput)) + client.delete_bucket_website(_request(DeleteBucketWebsiteInputDict)) + client.delete_object(bucket=_, key=_) + client.delete_object(**_request(DeleteObjectInputDict)) + client.delete_object(_request(DeleteObjectInput)) + client.delete_object(_request(DeleteObjectInputDict)) + client.delete_object_annotation(bucket=_, key=_, annotation_name=_) + client.delete_object_annotation(**_request(DeleteObjectAnnotationInputDict)) + client.delete_object_annotation(_request(DeleteObjectAnnotationInput)) + client.delete_object_annotation(_request(DeleteObjectAnnotationInputDict)) + client.delete_objects(bucket=_, delete=_) + client.delete_objects(**_request(DeleteObjectsInputDict)) + client.delete_objects(_request(DeleteObjectsInput)) + client.delete_objects(_request(DeleteObjectsInputDict)) + client.delete_object_tagging(bucket=_, key=_) + client.delete_object_tagging(**_request(DeleteObjectTaggingInputDict)) + client.delete_object_tagging(_request(DeleteObjectTaggingInput)) + client.delete_object_tagging(_request(DeleteObjectTaggingInputDict)) + client.delete_public_access_block(bucket=_) + client.delete_public_access_block(**_request(DeletePublicAccessBlockInputDict)) + client.delete_public_access_block(_request(DeletePublicAccessBlockInput)) + client.delete_public_access_block(_request(DeletePublicAccessBlockInputDict)) + client.get_bucket_abac(bucket=_) + client.get_bucket_abac(**_request(GetBucketAbacInputDict)) + client.get_bucket_abac(_request(GetBucketAbacInput)) + client.get_bucket_abac(_request(GetBucketAbacInputDict)) + client.get_bucket_accelerate_configuration(bucket=_) + client.get_bucket_accelerate_configuration( + **_request(GetBucketAccelerateConfigurationInputDict) + ) + client.get_bucket_accelerate_configuration( + _request(GetBucketAccelerateConfigurationInput) + ) + client.get_bucket_accelerate_configuration( + _request(GetBucketAccelerateConfigurationInputDict) + ) + client.get_bucket_acl(bucket=_) + client.get_bucket_acl(**_request(GetBucketAclInputDict)) + client.get_bucket_acl(_request(GetBucketAclInput)) + client.get_bucket_acl(_request(GetBucketAclInputDict)) + client.get_bucket_analytics_configuration(bucket=_, id=_) + client.get_bucket_analytics_configuration( + **_request(GetBucketAnalyticsConfigurationInputDict) + ) + client.get_bucket_analytics_configuration( + _request(GetBucketAnalyticsConfigurationInput) + ) + client.get_bucket_analytics_configuration( + _request(GetBucketAnalyticsConfigurationInputDict) + ) + client.get_bucket_cors(bucket=_) + client.get_bucket_cors(**_request(GetBucketCorsInputDict)) + client.get_bucket_cors(_request(GetBucketCorsInput)) + client.get_bucket_cors(_request(GetBucketCorsInputDict)) + client.get_bucket_encryption(bucket=_) + client.get_bucket_encryption(**_request(GetBucketEncryptionInputDict)) + client.get_bucket_encryption(_request(GetBucketEncryptionInput)) + client.get_bucket_encryption(_request(GetBucketEncryptionInputDict)) + client.get_bucket_intelligent_tiering_configuration(bucket=_, id=_) + client.get_bucket_intelligent_tiering_configuration( + **_request(GetBucketIntelligentTieringConfigurationInputDict) + ) + client.get_bucket_intelligent_tiering_configuration( + _request(GetBucketIntelligentTieringConfigurationInput) + ) + client.get_bucket_intelligent_tiering_configuration( + _request(GetBucketIntelligentTieringConfigurationInputDict) + ) + client.get_bucket_inventory_configuration(bucket=_, id=_) + client.get_bucket_inventory_configuration( + **_request(GetBucketInventoryConfigurationInputDict) + ) + client.get_bucket_inventory_configuration( + _request(GetBucketInventoryConfigurationInput) + ) + client.get_bucket_inventory_configuration( + _request(GetBucketInventoryConfigurationInputDict) + ) + client.get_bucket_lifecycle_configuration(bucket=_) + client.get_bucket_lifecycle_configuration( + **_request(GetBucketLifecycleConfigurationInputDict) + ) + client.get_bucket_lifecycle_configuration( + _request(GetBucketLifecycleConfigurationInput) + ) + client.get_bucket_lifecycle_configuration( + _request(GetBucketLifecycleConfigurationInputDict) + ) + client.get_bucket_location(bucket=_) + client.get_bucket_location(**_request(GetBucketLocationInputDict)) + client.get_bucket_location(_request(GetBucketLocationInput)) + client.get_bucket_location(_request(GetBucketLocationInputDict)) + client.get_bucket_logging(bucket=_) + client.get_bucket_logging(**_request(GetBucketLoggingInputDict)) + client.get_bucket_logging(_request(GetBucketLoggingInput)) + client.get_bucket_logging(_request(GetBucketLoggingInputDict)) + client.get_bucket_metadata_configuration(bucket=_) + client.get_bucket_metadata_configuration( + **_request(GetBucketMetadataConfigurationInputDict) + ) + client.get_bucket_metadata_configuration( + _request(GetBucketMetadataConfigurationInput) + ) + client.get_bucket_metadata_configuration( + _request(GetBucketMetadataConfigurationInputDict) + ) + client.get_bucket_metadata_table_configuration(bucket=_) + client.get_bucket_metadata_table_configuration( + **_request(GetBucketMetadataTableConfigurationInputDict) + ) + client.get_bucket_metadata_table_configuration( + _request(GetBucketMetadataTableConfigurationInput) + ) + client.get_bucket_metadata_table_configuration( + _request(GetBucketMetadataTableConfigurationInputDict) + ) + client.get_bucket_metrics_configuration(bucket=_, id=_) + client.get_bucket_metrics_configuration( + **_request(GetBucketMetricsConfigurationInputDict) + ) + client.get_bucket_metrics_configuration( + _request(GetBucketMetricsConfigurationInput) + ) + client.get_bucket_metrics_configuration( + _request(GetBucketMetricsConfigurationInputDict) + ) + client.get_bucket_notification_configuration(bucket=_) + client.get_bucket_notification_configuration( + **_request(GetBucketNotificationConfigurationInputDict) + ) + client.get_bucket_notification_configuration( + _request(GetBucketNotificationConfigurationInput) + ) + client.get_bucket_notification_configuration( + _request(GetBucketNotificationConfigurationInputDict) + ) + client.get_bucket_ownership_controls(bucket=_) + client.get_bucket_ownership_controls( + **_request(GetBucketOwnershipControlsInputDict) + ) + client.get_bucket_ownership_controls(_request(GetBucketOwnershipControlsInput)) + client.get_bucket_ownership_controls(_request(GetBucketOwnershipControlsInputDict)) + client.get_bucket_policy(bucket=_) + client.get_bucket_policy(**_request(GetBucketPolicyInputDict)) + client.get_bucket_policy(_request(GetBucketPolicyInput)) + client.get_bucket_policy(_request(GetBucketPolicyInputDict)) + client.get_bucket_policy_status(bucket=_) + client.get_bucket_policy_status(**_request(GetBucketPolicyStatusInputDict)) + client.get_bucket_policy_status(_request(GetBucketPolicyStatusInput)) + client.get_bucket_policy_status(_request(GetBucketPolicyStatusInputDict)) + client.get_bucket_replication(bucket=_) + client.get_bucket_replication(**_request(GetBucketReplicationInputDict)) + client.get_bucket_replication(_request(GetBucketReplicationInput)) + client.get_bucket_replication(_request(GetBucketReplicationInputDict)) + client.get_bucket_request_payment(bucket=_) + client.get_bucket_request_payment(**_request(GetBucketRequestPaymentInputDict)) + client.get_bucket_request_payment(_request(GetBucketRequestPaymentInput)) + client.get_bucket_request_payment(_request(GetBucketRequestPaymentInputDict)) + client.get_bucket_tagging(bucket=_) + client.get_bucket_tagging(**_request(GetBucketTaggingInputDict)) + client.get_bucket_tagging(_request(GetBucketTaggingInput)) + client.get_bucket_tagging(_request(GetBucketTaggingInputDict)) + client.get_bucket_versioning(bucket=_) + client.get_bucket_versioning(**_request(GetBucketVersioningInputDict)) + client.get_bucket_versioning(_request(GetBucketVersioningInput)) + client.get_bucket_versioning(_request(GetBucketVersioningInputDict)) + client.get_bucket_website(bucket=_) + client.get_bucket_website(**_request(GetBucketWebsiteInputDict)) + client.get_bucket_website(_request(GetBucketWebsiteInput)) + client.get_bucket_website(_request(GetBucketWebsiteInputDict)) + client.get_object(bucket=_, key=_) + client.get_object(**_request(GetObjectInputDict)) + client.get_object(_request(GetObjectInput)) + client.get_object(_request(GetObjectInputDict)) + client.get_object_acl(bucket=_, key=_) + client.get_object_acl(**_request(GetObjectAclInputDict)) + client.get_object_acl(_request(GetObjectAclInput)) + client.get_object_acl(_request(GetObjectAclInputDict)) + client.get_object_annotation(bucket=_, key=_, annotation_name=_) + client.get_object_annotation(**_request(GetObjectAnnotationInputDict)) + client.get_object_annotation(_request(GetObjectAnnotationInput)) + client.get_object_annotation(_request(GetObjectAnnotationInputDict)) + client.get_object_attributes(bucket=_, key=_, object_attributes=_) + client.get_object_attributes(**_request(GetObjectAttributesInputDict)) + client.get_object_attributes(_request(GetObjectAttributesInput)) + client.get_object_attributes(_request(GetObjectAttributesInputDict)) + client.get_object_legal_hold(bucket=_, key=_) + client.get_object_legal_hold(**_request(GetObjectLegalHoldInputDict)) + client.get_object_legal_hold(_request(GetObjectLegalHoldInput)) + client.get_object_legal_hold(_request(GetObjectLegalHoldInputDict)) + client.get_object_lock_configuration(bucket=_) + client.get_object_lock_configuration( + **_request(GetObjectLockConfigurationInputDict) + ) + client.get_object_lock_configuration(_request(GetObjectLockConfigurationInput)) + client.get_object_lock_configuration(_request(GetObjectLockConfigurationInputDict)) + client.get_object_retention(bucket=_, key=_) + client.get_object_retention(**_request(GetObjectRetentionInputDict)) + client.get_object_retention(_request(GetObjectRetentionInput)) + client.get_object_retention(_request(GetObjectRetentionInputDict)) + client.get_object_tagging(bucket=_, key=_) + client.get_object_tagging(**_request(GetObjectTaggingInputDict)) + client.get_object_tagging(_request(GetObjectTaggingInput)) + client.get_object_tagging(_request(GetObjectTaggingInputDict)) + client.get_object_torrent(bucket=_, key=_) + client.get_object_torrent(**_request(GetObjectTorrentInputDict)) + client.get_object_torrent(_request(GetObjectTorrentInput)) + client.get_object_torrent(_request(GetObjectTorrentInputDict)) + client.get_public_access_block(bucket=_) + client.get_public_access_block(**_request(GetPublicAccessBlockInputDict)) + client.get_public_access_block(_request(GetPublicAccessBlockInput)) + client.get_public_access_block(_request(GetPublicAccessBlockInputDict)) + client.head_bucket(bucket=_) + client.head_bucket(**_request(HeadBucketInputDict)) + client.head_bucket(_request(HeadBucketInput)) + client.head_bucket(_request(HeadBucketInputDict)) + client.head_object(bucket=_, key=_) + client.head_object(**_request(HeadObjectInputDict)) + client.head_object(_request(HeadObjectInput)) + client.head_object(_request(HeadObjectInputDict)) + client.list_bucket_analytics_configurations(bucket=_) + client.list_bucket_analytics_configurations( + **_request(ListBucketAnalyticsConfigurationsInputDict) + ) + client.list_bucket_analytics_configurations( + _request(ListBucketAnalyticsConfigurationsInput) + ) + client.list_bucket_analytics_configurations( + _request(ListBucketAnalyticsConfigurationsInputDict) + ) + client.list_bucket_intelligent_tiering_configurations(bucket=_) + client.list_bucket_intelligent_tiering_configurations( + **_request(ListBucketIntelligentTieringConfigurationsInputDict) + ) + client.list_bucket_intelligent_tiering_configurations( + _request(ListBucketIntelligentTieringConfigurationsInput) + ) + client.list_bucket_intelligent_tiering_configurations( + _request(ListBucketIntelligentTieringConfigurationsInputDict) + ) + client.list_bucket_inventory_configurations(bucket=_) + client.list_bucket_inventory_configurations( + **_request(ListBucketInventoryConfigurationsInputDict) + ) + client.list_bucket_inventory_configurations( + _request(ListBucketInventoryConfigurationsInput) + ) + client.list_bucket_inventory_configurations( + _request(ListBucketInventoryConfigurationsInputDict) + ) + client.list_bucket_metrics_configurations(bucket=_) + client.list_bucket_metrics_configurations( + **_request(ListBucketMetricsConfigurationsInputDict) + ) + client.list_bucket_metrics_configurations( + _request(ListBucketMetricsConfigurationsInput) + ) + client.list_bucket_metrics_configurations( + _request(ListBucketMetricsConfigurationsInputDict) + ) + client.list_buckets() + client.list_buckets(**_request(ListBucketsInputDict)) + client.list_buckets(_request(ListBucketsInput)) + client.list_buckets(_request(ListBucketsInputDict)) + client.list_directory_buckets() + client.list_directory_buckets(**_request(ListDirectoryBucketsInputDict)) + client.list_directory_buckets(_request(ListDirectoryBucketsInput)) + client.list_directory_buckets(_request(ListDirectoryBucketsInputDict)) + client.list_multipart_uploads(bucket=_) + client.list_multipart_uploads(**_request(ListMultipartUploadsInputDict)) + client.list_multipart_uploads(_request(ListMultipartUploadsInput)) + client.list_multipart_uploads(_request(ListMultipartUploadsInputDict)) + client.list_object_annotations(bucket=_, key=_) + client.list_object_annotations(**_request(ListObjectAnnotationsInputDict)) + client.list_object_annotations(_request(ListObjectAnnotationsInput)) + client.list_object_annotations(_request(ListObjectAnnotationsInputDict)) + client.list_objects(bucket=_) + client.list_objects(**_request(ListObjectsInputDict)) + client.list_objects(_request(ListObjectsInput)) + client.list_objects(_request(ListObjectsInputDict)) + client.list_objects_v2(bucket=_) + client.list_objects_v2(**_request(ListObjectsV2InputDict)) + client.list_objects_v2(_request(ListObjectsV2Input)) + client.list_objects_v2(_request(ListObjectsV2InputDict)) + client.list_object_versions(bucket=_) + client.list_object_versions(**_request(ListObjectVersionsInputDict)) + client.list_object_versions(_request(ListObjectVersionsInput)) + client.list_object_versions(_request(ListObjectVersionsInputDict)) + client.list_parts(bucket=_, key=_, upload_id=_) + client.list_parts(**_request(ListPartsInputDict)) + client.list_parts(_request(ListPartsInput)) + client.list_parts(_request(ListPartsInputDict)) + client.put_bucket_abac(bucket=_, abac_status=_) + client.put_bucket_abac(**_request(PutBucketAbacInputDict)) + client.put_bucket_abac(_request(PutBucketAbacInput)) + client.put_bucket_abac(_request(PutBucketAbacInputDict)) + client.put_bucket_accelerate_configuration(bucket=_, accelerate_configuration=_) + client.put_bucket_accelerate_configuration( + **_request(PutBucketAccelerateConfigurationInputDict) + ) + client.put_bucket_accelerate_configuration( + _request(PutBucketAccelerateConfigurationInput) + ) + client.put_bucket_accelerate_configuration( + _request(PutBucketAccelerateConfigurationInputDict) + ) + client.put_bucket_acl(bucket=_) + client.put_bucket_acl(**_request(PutBucketAclInputDict)) + client.put_bucket_acl(_request(PutBucketAclInput)) + client.put_bucket_acl(_request(PutBucketAclInputDict)) + client.put_bucket_analytics_configuration(bucket=_, id=_, analytics_configuration=_) + client.put_bucket_analytics_configuration( + **_request(PutBucketAnalyticsConfigurationInputDict) + ) + client.put_bucket_analytics_configuration( + _request(PutBucketAnalyticsConfigurationInput) + ) + client.put_bucket_analytics_configuration( + _request(PutBucketAnalyticsConfigurationInputDict) + ) + client.put_bucket_cors(bucket=_, cors_configuration=_) + client.put_bucket_cors(**_request(PutBucketCorsInputDict)) + client.put_bucket_cors(_request(PutBucketCorsInput)) + client.put_bucket_cors(_request(PutBucketCorsInputDict)) + client.put_bucket_encryption(bucket=_, server_side_encryption_configuration=_) + client.put_bucket_encryption(**_request(PutBucketEncryptionInputDict)) + client.put_bucket_encryption(_request(PutBucketEncryptionInput)) + client.put_bucket_encryption(_request(PutBucketEncryptionInputDict)) + client.put_bucket_intelligent_tiering_configuration( + bucket=_, id=_, intelligent_tiering_configuration=_ + ) + client.put_bucket_intelligent_tiering_configuration( + **_request(PutBucketIntelligentTieringConfigurationInputDict) + ) + client.put_bucket_intelligent_tiering_configuration( + _request(PutBucketIntelligentTieringConfigurationInput) + ) + client.put_bucket_intelligent_tiering_configuration( + _request(PutBucketIntelligentTieringConfigurationInputDict) + ) + client.put_bucket_inventory_configuration(bucket=_, id=_, inventory_configuration=_) + client.put_bucket_inventory_configuration( + **_request(PutBucketInventoryConfigurationInputDict) + ) + client.put_bucket_inventory_configuration( + _request(PutBucketInventoryConfigurationInput) + ) + client.put_bucket_inventory_configuration( + _request(PutBucketInventoryConfigurationInputDict) + ) + client.put_bucket_lifecycle_configuration(bucket=_) + client.put_bucket_lifecycle_configuration( + **_request(PutBucketLifecycleConfigurationInputDict) + ) + client.put_bucket_lifecycle_configuration( + _request(PutBucketLifecycleConfigurationInput) + ) + client.put_bucket_lifecycle_configuration( + _request(PutBucketLifecycleConfigurationInputDict) + ) + client.put_bucket_logging(bucket=_, bucket_logging_status=_) + client.put_bucket_logging(**_request(PutBucketLoggingInputDict)) + client.put_bucket_logging(_request(PutBucketLoggingInput)) + client.put_bucket_logging(_request(PutBucketLoggingInputDict)) + client.put_bucket_metrics_configuration(bucket=_, id=_, metrics_configuration=_) + client.put_bucket_metrics_configuration( + **_request(PutBucketMetricsConfigurationInputDict) + ) + client.put_bucket_metrics_configuration( + _request(PutBucketMetricsConfigurationInput) + ) + client.put_bucket_metrics_configuration( + _request(PutBucketMetricsConfigurationInputDict) + ) + client.put_bucket_notification_configuration(bucket=_, notification_configuration=_) + client.put_bucket_notification_configuration( + **_request(PutBucketNotificationConfigurationInputDict) + ) + client.put_bucket_notification_configuration( + _request(PutBucketNotificationConfigurationInput) + ) + client.put_bucket_notification_configuration( + _request(PutBucketNotificationConfigurationInputDict) + ) + client.put_bucket_ownership_controls(bucket=_, ownership_controls=_) + client.put_bucket_ownership_controls( + **_request(PutBucketOwnershipControlsInputDict) + ) + client.put_bucket_ownership_controls(_request(PutBucketOwnershipControlsInput)) + client.put_bucket_ownership_controls(_request(PutBucketOwnershipControlsInputDict)) + client.put_bucket_policy(bucket=_, policy=_) + client.put_bucket_policy(**_request(PutBucketPolicyInputDict)) + client.put_bucket_policy(_request(PutBucketPolicyInput)) + client.put_bucket_policy(_request(PutBucketPolicyInputDict)) + client.put_bucket_replication(bucket=_, replication_configuration=_) + client.put_bucket_replication(**_request(PutBucketReplicationInputDict)) + client.put_bucket_replication(_request(PutBucketReplicationInput)) + client.put_bucket_replication(_request(PutBucketReplicationInputDict)) + client.put_bucket_request_payment(bucket=_, request_payment_configuration=_) + client.put_bucket_request_payment(**_request(PutBucketRequestPaymentInputDict)) + client.put_bucket_request_payment(_request(PutBucketRequestPaymentInput)) + client.put_bucket_request_payment(_request(PutBucketRequestPaymentInputDict)) + client.put_bucket_tagging(bucket=_, tagging=_) + client.put_bucket_tagging(**_request(PutBucketTaggingInputDict)) + client.put_bucket_tagging(_request(PutBucketTaggingInput)) + client.put_bucket_tagging(_request(PutBucketTaggingInputDict)) + client.put_bucket_versioning(bucket=_, versioning_configuration=_) + client.put_bucket_versioning(**_request(PutBucketVersioningInputDict)) + client.put_bucket_versioning(_request(PutBucketVersioningInput)) + client.put_bucket_versioning(_request(PutBucketVersioningInputDict)) + client.put_bucket_website(bucket=_, website_configuration=_) + client.put_bucket_website(**_request(PutBucketWebsiteInputDict)) + client.put_bucket_website(_request(PutBucketWebsiteInput)) + client.put_bucket_website(_request(PutBucketWebsiteInputDict)) + client.put_object(bucket=_, key=_) + client.put_object(**_request(PutObjectInputDict)) + client.put_object(_request(PutObjectInput)) + client.put_object(_request(PutObjectInputDict)) + client.put_object_acl(bucket=_, key=_) + client.put_object_acl(**_request(PutObjectAclInputDict)) + client.put_object_acl(_request(PutObjectAclInput)) + client.put_object_acl(_request(PutObjectAclInputDict)) + client.put_object_annotation( + bucket=_, key=_, annotation_name=_, annotation_payload=_ + ) + client.put_object_annotation(**_request(PutObjectAnnotationInputDict)) + client.put_object_annotation(_request(PutObjectAnnotationInput)) + client.put_object_annotation(_request(PutObjectAnnotationInputDict)) + client.put_object_legal_hold(bucket=_, key=_) + client.put_object_legal_hold(**_request(PutObjectLegalHoldInputDict)) + client.put_object_legal_hold(_request(PutObjectLegalHoldInput)) + client.put_object_legal_hold(_request(PutObjectLegalHoldInputDict)) + client.put_object_lock_configuration(bucket=_) + client.put_object_lock_configuration( + **_request(PutObjectLockConfigurationInputDict) + ) + client.put_object_lock_configuration(_request(PutObjectLockConfigurationInput)) + client.put_object_lock_configuration(_request(PutObjectLockConfigurationInputDict)) + client.put_object_retention(bucket=_, key=_) + client.put_object_retention(**_request(PutObjectRetentionInputDict)) + client.put_object_retention(_request(PutObjectRetentionInput)) + client.put_object_retention(_request(PutObjectRetentionInputDict)) + client.put_object_tagging(bucket=_, key=_, tagging=_) + client.put_object_tagging(**_request(PutObjectTaggingInputDict)) + client.put_object_tagging(_request(PutObjectTaggingInput)) + client.put_object_tagging(_request(PutObjectTaggingInputDict)) + client.put_public_access_block(bucket=_, public_access_block_configuration=_) + client.put_public_access_block(**_request(PutPublicAccessBlockInputDict)) + client.put_public_access_block(_request(PutPublicAccessBlockInput)) + client.put_public_access_block(_request(PutPublicAccessBlockInputDict)) + client.rename_object(bucket=_, key=_, rename_source=_) + client.rename_object(**_request(RenameObjectInputDict)) + client.rename_object(_request(RenameObjectInput)) + client.rename_object(_request(RenameObjectInputDict)) + client.restore_object(bucket=_, key=_) + client.restore_object(**_request(RestoreObjectInputDict)) + client.restore_object(_request(RestoreObjectInput)) + client.restore_object(_request(RestoreObjectInputDict)) + client.update_bucket_metadata_annotation_table_configuration( + bucket=_, annotation_table_configuration=_ + ) + client.update_bucket_metadata_annotation_table_configuration( + **_request(UpdateBucketMetadataAnnotationTableConfigurationInputDict) + ) + client.update_bucket_metadata_annotation_table_configuration( + _request(UpdateBucketMetadataAnnotationTableConfigurationInput) + ) + client.update_bucket_metadata_annotation_table_configuration( + _request(UpdateBucketMetadataAnnotationTableConfigurationInputDict) + ) + client.update_bucket_metadata_inventory_table_configuration( + bucket=_, inventory_table_configuration=_ + ) + client.update_bucket_metadata_inventory_table_configuration( + **_request(UpdateBucketMetadataInventoryTableConfigurationInputDict) + ) + client.update_bucket_metadata_inventory_table_configuration( + _request(UpdateBucketMetadataInventoryTableConfigurationInput) + ) + client.update_bucket_metadata_inventory_table_configuration( + _request(UpdateBucketMetadataInventoryTableConfigurationInputDict) + ) + client.update_bucket_metadata_journal_table_configuration( + bucket=_, journal_table_configuration=_ + ) + client.update_bucket_metadata_journal_table_configuration( + **_request(UpdateBucketMetadataJournalTableConfigurationInputDict) + ) + client.update_bucket_metadata_journal_table_configuration( + _request(UpdateBucketMetadataJournalTableConfigurationInput) + ) + client.update_bucket_metadata_journal_table_configuration( + _request(UpdateBucketMetadataJournalTableConfigurationInputDict) + ) + client.update_object_encryption(bucket=_, key=_, object_encryption=_) + client.update_object_encryption(**_request(UpdateObjectEncryptionInputDict)) + client.update_object_encryption(_request(UpdateObjectEncryptionInput)) + client.update_object_encryption(_request(UpdateObjectEncryptionInputDict)) + client.upload_part(bucket=_, key=_, part_number=_, upload_id=_) + client.upload_part(**_request(UploadPartInputDict)) + client.upload_part(_request(UploadPartInput)) + client.upload_part(_request(UploadPartInputDict)) + client.upload_part_copy(bucket=_, copy_source=_, key=_, part_number=_, upload_id=_) + client.upload_part_copy(**_request(UploadPartCopyInputDict)) + client.upload_part_copy(_request(UploadPartCopyInput)) + client.upload_part_copy(_request(UploadPartCopyInputDict)) + client.write_get_object_response(request_route=_, request_token=_) + client.write_get_object_response(**_request(WriteGetObjectResponseInputDict)) + client.write_get_object_response(_request(WriteGetObjectResponseInput)) + client.write_get_object_response(_request(WriteGetObjectResponseInputDict)) diff --git a/clients/aws-sdk-s3/tests/functional/test_s3_customizations.py b/clients/aws-sdk-s3/tests/functional/test_s3_customizations.py index 6274b2d68..d5cf02114 100644 --- a/clients/aws-sdk-s3/tests/functional/test_s3_customizations.py +++ b/clients/aws-sdk-s3/tests/functional/test_s3_customizations.py @@ -70,13 +70,13 @@ def test_allows_using_a_bucket_input_value_as_the_endpoint() -> None: ) -def test_considers_missing_bucket_an_http_label_error() -> None: - """An empty bucket raises an error before any request goes out.""" +def test_rejects_missing_bucket_before_sending_request() -> None: + """A missing required bucket is rejected before any request goes out.""" client = S3Client(S3Config.resolve(region="us-west-2")) controller = mock(client) controller.expect_request() - with raises(SmithyError, match="(?i)bucket"): + with raises(TypeError, match="missing required member 'bucket'"): client.head_bucket(HeadBucketInput()) assert controller.requests == [] diff --git a/clients/aws-sdk-s3/tests/test_endpoints.py b/clients/aws-sdk-s3/tests/test_endpoints.py index 2efb1c673..6ce563444 100644 --- a/clients/aws-sdk-s3/tests/test_endpoints.py +++ b/clients/aws-sdk-s3/tests/test_endpoints.py @@ -1,7 +1,7 @@ # Code generated by smithy-python-codegen DO NOT EDIT. from collections.abc import Awaitable, Callable, Mapping -from typing import Any +from typing import Any, Concatenate from pytest import mark, param from smithy_aws_core.aio.identity.static import AsyncStaticCredentialsResolver @@ -16,14 +16,6 @@ from aws_sdk_s3.aio.client import AsyncS3Client from aws_sdk_s3.aio.config import AsyncS3Config -from aws_sdk_s3.models import ( - CreateBucketInput, - GetObjectInput, - ListBucketsInput, - ListDirectoryBucketsInput, - ListObjectsInput, - WriteGetObjectResponseInput, -) # Endpoint tests from the endpointTests trait of com.amazonaws.s3#AmazonS3. @@ -8575,20 +8567,20 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:not-s3:us-west-2:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws:not-s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, {"error": "Invalid ARN: The ARN was not for the S3 service, found: not-s3"}, id="Invalid access point ARN: Not S3", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint:more-data", - key="key", - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint:more-data", + "key": "key", + }, { "error": "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`." }, @@ -8597,9 +8589,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:", key="key" - ), + {"bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:", "key": "key"}, { "error": "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided" }, @@ -8608,9 +8598,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456_789012:accesspoint:apname", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456_789012:accesspoint:apname", + "key": "key", + }, { "error": "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `123456_789012`" }, @@ -8619,9 +8610,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:ap_name", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:ap_name", + "key": "key", + }, { "error": "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `ap_name`" }, @@ -8630,9 +8622,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint.us-west-2.amazonaws.com", @@ -8653,36 +8646,34 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:cn-north-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws:s3:cn-north-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, {"error": "Partition does not support FIPS"}, id="Access points: partition does not support FIPS", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west -2:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws:s3:us-west -2:123456789012:accesspoint:myendpoint", + "key": "key", + }, {"error": "Invalid region in ARN: `us-west -2` (invalid DNS name)"}, id="Bucket region is invalid", ), param( {"region": "us-east-1"}, AsyncS3Client.create_bucket, - CreateBucketInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint" - ), + {"bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint"}, {"error": "Access points are not supported for this operation"}, id="Access points when Access points explicitly disabled (used for CreateBucket)", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="arn:aws:s3:us-west-2:123456789012:", key="key"), + {"bucket": "arn:aws:s3:us-west-2:123456789012:", "key": "key"}, { "error": "Invalid ARN: `arn:aws:s3:us-west-2:123456789012:` was not a valid ARN" }, @@ -8695,10 +8686,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://beta.example.com", }, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws-cn:s3:cn-north-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws-cn:s3:cn-north-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, {"error": "Cannot set dual-stack in combination with a custom endpoint."}, id="SDK::Host + access point + Dualstack is an error", ), @@ -8709,9 +8700,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint-fips.dualstack.us-west-2.amazonaws.com", @@ -8732,9 +8724,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint.dualstack.us-west-2.amazonaws.com", @@ -8755,9 +8748,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", key="key" - ), + { + "bucket": "arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", + "key": "key", + }, { "endpoint": { "url": "https://mfzwi23gnjvgw.mrap.accesspoint.s3-global.amazonaws.com", @@ -8778,36 +8772,40 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", key="key" - ), + { + "bucket": "arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", + "key": "key", + }, {"error": "S3 MRAP does not support FIPS"}, id="MRAP does not support FIPS", ), param( {"region": "us-east-1", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", key="key" - ), + { + "bucket": "arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", + "key": "key", + }, {"error": "S3 MRAP does not support dual-stack"}, id="MRAP does not support DualStack", ), param( {"region": "us-east-1", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", key="key" - ), + { + "bucket": "arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", + "key": "key", + }, {"error": "S3 MRAP does not support S3 Accelerate"}, id="MRAP does not support S3 Accelerate", ), param( {"region": "us-east-1", "disable_multi_region_access_points": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", key="key" - ), + { + "bucket": "arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", + "key": "key", + }, { "error": "Invalid configuration: Multi-Region Access Point ARNs are disabled." }, @@ -8820,7 +8818,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucketname", key="key"), + {"bucket": "bucketname", "key": "key"}, { "endpoint": { "url": "https://s3.dualstack.us-west-2.amazonaws.com/bucketname", @@ -8846,23 +8844,24 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucketname", key="key"), + {"bucket": "bucketname", "key": "key"}, {"error": "Cannot set dual-stack in combination with a custom endpoint."}, id="Dual-stack endpoint + SDK::Host is error", ), param( {"region": "us-west-2", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", key="key" - ), + { + "bucket": "arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", + "key": "key", + }, {"error": "Path-style addressing cannot be used with ARN buckets"}, id="path style + ARN bucket", ), param( {"region": "us-west-2", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="99_ab", key="key"), + {"bucket": "99_ab", "key": "key"}, { "endpoint": { "url": "https://s3.dualstack.us-west-2.amazonaws.com/99_ab", @@ -8887,14 +8886,14 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "http://abc.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="99_ab", key="key"), + {"bucket": "99_ab", "key": "key"}, {"error": "Cannot set dual-stack in combination with a custom endpoint."}, id="implicit path style bucket + dualstack (2)", ), param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="example.com#", key="key"), + {"bucket": "example.com#", "key": "key"}, { "endpoint": { "url": "https://s3.us-west-2.amazonaws.com/example.com%23", @@ -8915,7 +8914,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket name", key="key"), + {"bucket": "bucket name", "key": "key"}, { "endpoint": { "url": "https://s3.us-west-2.amazonaws.com/bucket%20name", @@ -8939,7 +8938,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="99_ab", key="key"), + {"bucket": "99_ab", "key": "key"}, { "endpoint": { "url": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com/99_ab", @@ -8960,7 +8959,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "endpoint_uri": "https://123.123.0.1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucketname", key="key"), + {"bucket": "bucketname", "key": "key"}, { "endpoint": { "url": "https://123.123.0.1/bucketname", @@ -8981,9 +8980,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-east-1:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-east-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "error": "Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`" }, @@ -8992,9 +8992,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint.us-west-2.amazonaws.com", @@ -9015,9 +9016,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint.us-west-2.amazonaws.com", @@ -9038,7 +9040,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket.name", key="key"), + {"bucket": "bucket.name", "key": "key"}, { "endpoint": { "url": "https://s3.us-east-1.amazonaws.com/bucket.name", @@ -9059,7 +9061,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="aaa", key="key"), + {"bucket": "aaa", "key": "key"}, { "endpoint": { "url": "https://aaa.s3.us-east-1.amazonaws.com", @@ -9080,7 +9082,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="aa", key="key"), + {"bucket": "aa", "key": "key"}, { "endpoint": { "url": "https://s3.us-east-1.amazonaws.com/aa", @@ -9101,7 +9103,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="BucketName", key="key"), + {"bucket": "BucketName", "key": "key"}, { "endpoint": { "url": "https://s3.us-east-1.amazonaws.com/BucketName", @@ -9122,7 +9124,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "endpoint_uri": "http://example.com"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket.name", key="key"), + {"bucket": "bucket.name", "key": "key"}, { "endpoint": { "url": "http://bucket.name.example.com", @@ -9143,7 +9145,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3.amazonaws.com", @@ -9167,7 +9169,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3.us-west-2.amazonaws.com", @@ -9191,7 +9193,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1"}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3.cn-north-1.amazonaws.com.cn", @@ -9215,7 +9217,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3-fips.us-east-1.amazonaws.com", @@ -9239,7 +9241,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_dualstack_endpoint": True}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3.dualstack.us-east-1.amazonaws.com", @@ -9267,7 +9269,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3-fips.dualstack.us-east-1.amazonaws.com", @@ -9291,7 +9293,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "endpoint_uri": "https://example.com"}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://example.com", @@ -9315,7 +9317,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "endpoint_uri": "https://example.com"}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://example.com", @@ -9339,7 +9341,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_accelerate_endpoint": True}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3.amazonaws.com", @@ -9363,7 +9365,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global"}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3.amazonaws.com", @@ -9384,7 +9386,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_fips_endpoint": True}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3-fips.us-east-1.amazonaws.com", @@ -9405,7 +9407,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_dualstack_endpoint": True}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3.dualstack.us-east-1.amazonaws.com", @@ -9430,7 +9432,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3-fips.dualstack.us-east-1.amazonaws.com", @@ -9451,7 +9453,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_accelerate_endpoint": True}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://s3.amazonaws.com", @@ -9472,7 +9474,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "endpoint_uri": "https://example.com"}, AsyncS3Client.list_buckets, - ListBucketsInput(), + {}, { "endpoint": { "url": "https://example.com", @@ -9493,7 +9495,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.amazonaws.com", @@ -9514,7 +9516,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global"}, AsyncS3Client.list_objects, - ListObjectsInput(bucket="bucket-name", prefix="prefix"), + {"bucket": "bucket-name", "prefix": "prefix"}, { "endpoint": { "url": "https://bucket-name.s3.amazonaws.com", @@ -9535,7 +9537,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-fips.us-east-1.amazonaws.com", @@ -9556,7 +9558,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.dualstack.us-east-1.amazonaws.com", @@ -9581,7 +9583,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-fips.dualstack.us-east-1.amazonaws.com", @@ -9602,7 +9604,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-accelerate.amazonaws.com", @@ -9623,7 +9625,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "endpoint_uri": "https://example.com"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.example.com", @@ -9644,7 +9646,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.amazonaws.com", @@ -9668,7 +9670,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.us-west-2.amazonaws.com", @@ -9692,7 +9694,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-fips.us-east-1.amazonaws.com", @@ -9716,7 +9718,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.dualstack.us-east-1.amazonaws.com", @@ -9740,7 +9742,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-accelerate.amazonaws.com", @@ -9764,7 +9766,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "endpoint_uri": "https://example.com"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.example.com", @@ -9788,7 +9790,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.amazonaws.com/bucket-name", @@ -9813,7 +9815,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.dualstack.us-east-1.amazonaws.com/bucket-name", @@ -9838,7 +9840,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://example.com/bucket-name", @@ -9859,7 +9861,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.amazonaws.com/bucket-name", @@ -9883,7 +9885,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.us-west-2.amazonaws.com/bucket-name", @@ -9911,7 +9913,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.dualstack.us-east-1.amazonaws.com/bucket-name", @@ -9939,7 +9941,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://example.com/bucket-name", @@ -9963,10 +9965,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-01234567890123456/accesspoint/reports", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-01234567890123456/accesspoint/reports", + "key": "key", + }, { "endpoint": { "url": "https://reports-123456789012.op-01234567890123456.s3-outposts.us-east-1.amazonaws.com", @@ -9993,10 +9995,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws-cn:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", - key="key", - ), + { + "bucket": "arn:aws-cn:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap", + "key": "key", + }, { "error": "Client was configured for partition `aws` but bucket referred to partition `aws-cn`" }, @@ -10005,9 +10007,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "endpoint_uri": "http://beta.example.com:1234"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "http://myendpoint-123456789012.beta.example.com:1234", @@ -10028,7 +10031,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.us-west-2.amazonaws.com", @@ -10049,7 +10052,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.dualstack.us-west-2.amazonaws.com", @@ -10074,7 +10077,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-accelerate.dualstack.amazonaws.com", @@ -10095,7 +10098,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-accelerate.amazonaws.com", @@ -10116,7 +10119,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-fips.us-west-2.amazonaws.com", @@ -10141,7 +10144,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-fips.dualstack.us-west-2.amazonaws.com", @@ -10166,14 +10169,14 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Accelerate cannot be used with FIPS"}, id="accelerate + fips = error@us-west-2", ), param( {"region": "cn-north-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.cn-north-1.amazonaws.com.cn", @@ -10194,7 +10197,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.dualstack.cn-north-1.amazonaws.com.cn", @@ -10215,7 +10218,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.af-south-1.amazonaws.com", @@ -10236,7 +10239,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3.dualstack.af-south-1.amazonaws.com", @@ -10261,7 +10264,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-accelerate.dualstack.amazonaws.com", @@ -10282,7 +10285,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-accelerate.amazonaws.com", @@ -10303,7 +10306,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-fips.af-south-1.amazonaws.com", @@ -10328,7 +10331,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.s3-fips.dualstack.af-south-1.amazonaws.com", @@ -10353,14 +10356,14 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Accelerate cannot be used with FIPS"}, id="accelerate + fips = error@af-south-1", ), param( {"region": "us-west-2", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.us-west-2.amazonaws.com/bucket-name", @@ -10385,7 +10388,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket.with.dots", key="key"), + {"bucket": "bucket.with.dots", "key": "key"}, { "endpoint": { "url": "https://s3-fips.us-gov-west-1.amazonaws.com/bucket.with.dots", @@ -10410,7 +10413,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Path-style addressing cannot be used with S3 Accelerate"}, id="path style + accelerate = error@us-west-2", ), @@ -10421,7 +10424,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.dualstack.us-west-2.amazonaws.com/bucket-name", @@ -10442,17 +10445,17 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:PARTITION:s3-outposts:REGION:123456789012:outpost:op-01234567890123456:bucket:mybucket", - key="key", - ), + { + "bucket": "arn:PARTITION:s3-outposts:REGION:123456789012:outpost:op-01234567890123456:bucket:mybucket", + "key": "key", + }, {"error": "Path-style addressing cannot be used with ARN buckets"}, id="path style + arn is error@us-west-2", ), param( {"region": "us-west-2", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="99a_b", key="key"), + {"bucket": "99a_b", "key": "key"}, { "endpoint": { "url": "https://s3.us-west-2.amazonaws.com/99a_b", @@ -10473,7 +10476,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="99a_b", key="key"), + {"bucket": "99a_b", "key": "key"}, { "endpoint": { "url": "https://s3.us-west-2.amazonaws.com/99a_b", @@ -10494,7 +10497,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.cn-north-1.amazonaws.com.cn/bucket-name", @@ -10515,7 +10518,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "use_fips_endpoint": True, "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Partition does not support FIPS"}, id="path style + fips@cn-north-1", ), @@ -10526,7 +10529,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Path-style addressing cannot be used with S3 Accelerate"}, id="path style + accelerate = error@cn-north-1", ), @@ -10537,7 +10540,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.dualstack.cn-north-1.amazonaws.com.cn/bucket-name", @@ -10558,17 +10561,17 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:PARTITION:s3-outposts:REGION:123456789012:outpost:op-01234567890123456:bucket:mybucket", - key="key", - ), + { + "bucket": "arn:PARTITION:s3-outposts:REGION:123456789012:outpost:op-01234567890123456:bucket:mybucket", + "key": "key", + }, {"error": "Path-style addressing cannot be used with ARN buckets"}, id="path style + arn is error@cn-north-1", ), param( {"region": "cn-north-1", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="99a_b", key="key"), + {"bucket": "99a_b", "key": "key"}, { "endpoint": { "url": "https://s3.cn-north-1.amazonaws.com.cn/99a_b", @@ -10589,7 +10592,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="99a_b", key="key"), + {"bucket": "99a_b", "key": "key"}, { "endpoint": { "url": "https://s3.cn-north-1.amazonaws.com.cn/99a_b", @@ -10610,7 +10613,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.af-south-1.amazonaws.com/bucket-name", @@ -10631,7 +10634,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "use_fips_endpoint": True, "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3-fips.af-south-1.amazonaws.com/bucket-name", @@ -10656,7 +10659,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Path-style addressing cannot be used with S3 Accelerate"}, id="path style + accelerate = error@af-south-1", ), @@ -10667,7 +10670,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://s3.dualstack.af-south-1.amazonaws.com/bucket-name", @@ -10688,17 +10691,17 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:PARTITION:s3-outposts:REGION:123456789012:outpost:op-01234567890123456:bucket:mybucket", - key="key", - ), + { + "bucket": "arn:PARTITION:s3-outposts:REGION:123456789012:outpost:op-01234567890123456:bucket:mybucket", + "key": "key", + }, {"error": "Path-style addressing cannot be used with ARN buckets"}, id="path style + arn is error@af-south-1", ), param( {"region": "af-south-1", "force_path_style": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="99a_b", key="key"), + {"bucket": "99a_b", "key": "key"}, { "endpoint": { "url": "https://s3.af-south-1.amazonaws.com/99a_b", @@ -10719,7 +10722,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="99a_b", key="key"), + {"bucket": "99a_b", "key": "key"}, { "endpoint": { "url": "https://s3.af-south-1.amazonaws.com/99a_b", @@ -10743,7 +10746,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "http://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "http://bucket-name.control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", @@ -10768,7 +10771,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com/bucket-name", @@ -10793,7 +10796,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "A custom endpoint cannot be combined with FIPS"}, id="SDK::Host + FIPS@us-west-2", ), @@ -10804,7 +10807,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Cannot set dual-stack in combination with a custom endpoint."}, id="SDK::Host + DualStack@us-west-2", ), @@ -10815,16 +10818,17 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "A custom endpoint cannot be combined with S3 Accelerate"}, id="SDK::HOST + accelerate@us-west-2", ), param( {"region": "us-west-2", "endpoint_uri": "https://beta.example.com"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.beta.example.com", @@ -10848,7 +10852,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", @@ -10873,7 +10877,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com/bucket-name", @@ -10898,17 +10902,17 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Cannot set dual-stack in combination with a custom endpoint."}, id="SDK::Host + DualStack@cn-north-1", ), param( {"region": "cn-north-1", "endpoint_uri": "https://beta.example.com"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws-cn:s3:cn-north-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws-cn:s3:cn-north-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.beta.example.com", @@ -10932,7 +10936,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://bucket-name.control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", @@ -10957,7 +10961,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "force_path_style": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, { "endpoint": { "url": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com/bucket-name", @@ -10982,7 +10986,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "A custom endpoint cannot be combined with FIPS"}, id="SDK::Host + FIPS@af-south-1", ), @@ -10993,7 +10997,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "endpoint_uri": "https://control.vpce-1a2b3c4d-5e6f.s3.us-west-2.vpce.amazonaws.com", }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "Cannot set dual-stack in combination with a custom endpoint."}, id="SDK::Host + DualStack@af-south-1", ), @@ -11004,17 +11008,17 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_accelerate_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="bucket-name", key="key"), + {"bucket": "bucket-name", "key": "key"}, {"error": "A custom endpoint cannot be combined with S3 Accelerate"}, id="SDK::HOST + accelerate@af-south-1", ), param( {"region": "af-south-1", "endpoint_uri": "https://beta.example.com"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.beta.example.com", @@ -11035,9 +11039,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint.us-west-2.amazonaws.com", @@ -11058,9 +11063,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint-fips.us-west-2.amazonaws.com", @@ -11081,9 +11087,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, {"error": "Access Points do not support S3 Accelerate"}, id="access point arn + accelerate = error@us-west-2", ), @@ -11094,9 +11101,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", key="key" - ), + { + "bucket": "arn:aws:s3:us-west-2:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint-fips.dualstack.us-west-2.amazonaws.com", @@ -11117,10 +11125,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws-cn:s3:cn-north-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws-cn:s3:cn-north-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint.cn-north-1.amazonaws.com.cn", @@ -11141,20 +11149,20 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws-cn:s3:cn-north-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws-cn:s3:cn-north-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, {"error": "Access Points do not support S3 Accelerate"}, id="access point arn + accelerate = error@cn-north-1", ), param( {"region": "af-south-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint.af-south-1.amazonaws.com", @@ -11175,10 +11183,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint-fips.af-south-1.amazonaws.com", @@ -11199,10 +11207,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "af-south-1", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, {"error": "Access Points do not support S3 Accelerate"}, id="access point arn + accelerate = error@af-south-1", ), @@ -11213,10 +11221,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", - key="key", - ), + { + "bucket": "arn:aws:s3:af-south-1:123456789012:accesspoint:myendpoint", + "key": "key", + }, { "endpoint": { "url": "https://myendpoint-123456789012.s3-accesspoint-fips.dualstack.af-south-1.amazonaws.com", @@ -11237,10 +11245,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:us-west-2:123456789012:outpost/op-01234567890123456/accesspoint/reports", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:us-west-2:123456789012:outpost/op-01234567890123456/accesspoint/reports", + "key": "key", + }, { "endpoint": { "url": "https://reports-123456789012.op-01234567890123456.s3-outposts.us-west-2.amazonaws.com", @@ -11267,10 +11275,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "endpoint_uri": "https://example.amazonaws.com"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:us-west-2:123456789012:outpost/op-01234567890123456/accesspoint/reports", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:us-west-2:123456789012:outpost/op-01234567890123456/accesspoint/reports", + "key": "key", + }, { "endpoint": { "url": "https://reports-123456789012.op-01234567890123456.example.amazonaws.com", @@ -11297,10 +11305,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", + "key": "key", + }, { "error": "Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`" }, @@ -11313,10 +11321,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_arn_region": False, }, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", + "key": "key", + }, { "error": "Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`" }, @@ -11325,10 +11333,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", + "key": "key", + }, { "endpoint": { "url": "https://myaccesspoint-123456789012.op-01234567890123456.s3-outposts.us-east-1.amazonaws.com", @@ -11355,10 +11363,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:us-east-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", + "key": "key", + }, { "endpoint": { "url": "https://myaccesspoint-123456789012.op-01234567890123456.s3-outposts.us-east-1.amazonaws.com", @@ -11385,10 +11393,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint", + "key": "key", + }, { "error": "Client was configured for partition `aws` but ARN (`arn:aws:s3-outposts:cn-north-1:123456789012:outpost:op-01234567890123456:accesspoint:myaccesspoint`) has `aws-cn`" }, @@ -11397,10 +11405,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-01234567890123456/accesspoint/reports", - key="key", - ), + { + "bucket": "arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-01234567890123456/accesspoint/reports", + "key": "key", + }, { "endpoint": { "url": "https://reports-123456789012.op-01234567890123456.s3-outposts.us-east-1.amazonaws.com", @@ -11430,10 +11438,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", + "key": "key", + }, { "endpoint": { "url": "https://mybanner-123456789012.s3-object-lambda.us-east-1.amazonaws.com", @@ -11454,10 +11462,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/mybanner", + "key": "key", + }, { "endpoint": { "url": "https://mybanner-123456789012.s3-object-lambda.us-west-2.amazonaws.com", @@ -11478,10 +11486,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:mybanner", + "key": "key", + }, { "endpoint": { "url": "https://mybanner-123456789012.s3-object-lambda.us-west-2.amazonaws.com", @@ -11502,10 +11510,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", + "key": "key", + }, { "endpoint": { "url": "https://mybanner-123456789012.s3-object-lambda.us-east-1.amazonaws.com", @@ -11526,10 +11534,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "s3-external-1", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", + "key": "key", + }, { "endpoint": { "url": "https://mybanner-123456789012.s3-object-lambda.us-east-1.amazonaws.com", @@ -11550,10 +11558,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "s3-external-1", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", + "key": "key", + }, { "error": "Invalid configuration: region from ARN `us-east-1` does not match client region `s3-external-1` and UseArnRegion is `false`" }, @@ -11562,10 +11570,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", + "key": "key", + }, { "endpoint": { "url": "https://mybanner-123456789012.s3-object-lambda.us-east-1.amazonaws.com", @@ -11586,10 +11594,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", + "key": "key", + }, { "error": "Invalid configuration: region from ARN `us-east-1` does not match client region `aws-global` and UseArnRegion is `false`" }, @@ -11598,10 +11606,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws-cn:s3-object-lambda:cn-north-1:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws-cn:s3-object-lambda:cn-north-1:123456789012:accesspoint/mybanner", + "key": "key", + }, { "error": "Client was configured for partition `aws` but ARN (`arn:aws-cn:s3-object-lambda:cn-north-1:123456789012:accesspoint/mybanner`) has `aws-cn`" }, @@ -11614,10 +11622,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_arn_region": False, }, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/mybanner", + "key": "key", + }, {"error": "S3 Object Lambda does not support Dual-stack"}, id="object lambda with dualstack", ), @@ -11628,19 +11636,17 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_arn_region": False, }, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/mybanner", + "key": "key", + }, {"error": "S3 Object Lambda does not support S3 Accelerate"}, id="object lambda with accelerate", ), param( {"region": "us-west-2", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:sqs:us-west-2:123456789012:someresource", key="key" - ), + {"bucket": "arn:aws:sqs:us-west-2:123456789012:someresource", "key": "key"}, { "error": "Invalid ARN: Unrecognized format: arn:aws:sqs:us-west-2:123456789012:someresource (type: someresource)" }, @@ -11649,10 +11655,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": True}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-west-2:123.45678.9012:accesspoint:mybucket", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-west-2:123.45678.9012:accesspoint:mybucket", + "key": "key", + }, { "error": "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `123.45678.9012`" }, @@ -11665,10 +11671,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_arn_region": False, }, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/mybanner", + "key": "key", + }, { "endpoint": { "url": "https://mybanner-123456789012.my-endpoint.com", @@ -11689,10 +11695,10 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_arn_region": False}, AsyncS3Client.get_object, - GetObjectInput( - bucket="arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", - key="key", - ), + { + "bucket": "arn:aws:s3-object-lambda:us-east-1:123456789012:accesspoint/mybanner", + "key": "key", + }, { "error": "Invalid configuration: region from ARN `us-east-1` does not match client region `us-west-2` and UseArnRegion is `false`" }, @@ -11701,9 +11707,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.write_get_object_response, - WriteGetObjectResponseInput( - request_route="RequestRoute", request_token="RequestToken" - ), + {"request_route": "RequestRoute", "request_token": "RequestToken"}, { "endpoint": { "url": "https://s3-object-lambda.us-west-2.amazonaws.com", @@ -11724,9 +11728,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "endpoint_uri": "https://my-endpoint.com"}, AsyncS3Client.write_get_object_response, - WriteGetObjectResponseInput( - request_route="RequestRoute", request_token="RequestToken" - ), + {"request_route": "RequestRoute", "request_token": "RequestToken"}, { "endpoint": { "url": "https://my-endpoint.com", @@ -11747,9 +11749,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.write_get_object_response, - WriteGetObjectResponseInput( - request_route="RequestRoute", request_token="RequestToken" - ), + {"request_route": "RequestRoute", "request_token": "RequestToken"}, { "endpoint": { "url": "https://s3-object-lambda.us-east-1.amazonaws.com", @@ -11770,9 +11770,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncS3Client.write_get_object_response, - WriteGetObjectResponseInput( - request_route="RequestRoute", request_token="RequestToken" - ), + {"request_route": "RequestRoute", "request_token": "RequestToken"}, { "endpoint": { "url": "https://s3-object-lambda-fips.us-east-1.amazonaws.com", @@ -11793,16 +11791,14 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_dualstack_endpoint": True}, AsyncS3Client.write_get_object_response, - WriteGetObjectResponseInput( - request_route="RequestRoute", request_token="RequestToken" - ), + {"request_route": "RequestRoute", "request_token": "RequestToken"}, {"error": "S3 Object Lambda does not support Dual-stack"}, id="WriteGetObjectResponse with dualstack", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--abcd-ab1--x-s3", key="key"), + {"bucket": "mybucket--abcd-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--abcd-ab1--x-s3.s3express-abcd-ab1.us-east-1.amazonaws.com", @@ -11824,7 +11820,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--abcd-ab1--x-s3", key="key"), + {"bucket": "mybucket--abcd-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--abcd-ab1--x-s3.s3express-abcd-ab1.cn-north-1.amazonaws.com.cn", @@ -11846,7 +11842,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--abcd-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--abcd-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--abcd-ab1--xa-s3.s3express-abcd-ab1.us-east-1.amazonaws.com", @@ -11868,7 +11864,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--abcd-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--abcd-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--abcd-ab1--xa-s3.s3express-abcd-ab1.cn-north-1.amazonaws.com.cn", @@ -11890,7 +11886,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test-zone-ab1--x-s3", key="key"), + {"bucket": "mybucket--test-zone-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test-zone-ab1--x-s3.s3express-test-zone-ab1.us-west-2.amazonaws.com", @@ -11912,7 +11908,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test-zone-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test-zone-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test-zone-ab1--xa-s3.s3express-test-zone-ab1.us-west-2.amazonaws.com", @@ -11934,7 +11930,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test1-zone-ab1--x-s3", key="key"), + {"bucket": "mybucket--test1-zone-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test1-zone-ab1--x-s3.s3express-test1-zone-ab1.us-west-2.amazonaws.com", @@ -11956,7 +11952,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test1-zone-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test1-zone-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test1-zone-ab1--xa-s3.s3express-test1-zone-ab1.us-west-2.amazonaws.com", @@ -11978,7 +11974,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test1-long1-zone-ab1--x-s3", key="key"), + {"bucket": "mybucket--test1-long1-zone-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test1-long1-zone-ab1--x-s3.s3express-test1-long1-zone-ab1.us-west-2.amazonaws.com", @@ -12000,7 +11996,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test1-long1-zone-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test1-long1-zone-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test1-long1-zone-ab1--xa-s3.s3express-test1-long1-zone-ab1.us-west-2.amazonaws.com", @@ -12022,7 +12018,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test-ab1--x-s3", key="key"), + {"bucket": "mybucket--test-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test-ab1--x-s3.s3express-fips-test-ab1.us-east-1.amazonaws.com", @@ -12044,14 +12040,14 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test-ab1--x-s3", key="key"), + {"bucket": "mybucket--test-ab1--x-s3", "key": "key"}, {"error": "Partition does not support FIPS"}, id="Data Plane with short zone fips china region", ), param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test-ab1--xa-s3.s3express-fips-test-ab1.us-east-1.amazonaws.com", @@ -12073,14 +12069,14 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test-ab1--xa-s3", "key": "key"}, {"error": "Partition does not support FIPS"}, id="Data Plane with short zone fips with AP china region", ), param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test-zone-ab1--x-s3", key="key"), + {"bucket": "mybucket--test-zone-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test-zone-ab1--x-s3.s3express-fips-test-zone-ab1.us-west-2.amazonaws.com", @@ -12102,7 +12098,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test-zone-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test-zone-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test-zone-ab1--xa-s3.s3express-fips-test-zone-ab1.us-west-2.amazonaws.com", @@ -12124,7 +12120,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test1-zone-ab1--x-s3", key="key"), + {"bucket": "mybucket--test1-zone-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test1-zone-ab1--x-s3.s3express-fips-test1-zone-ab1.us-west-2.amazonaws.com", @@ -12146,7 +12142,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test1-zone-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test1-zone-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test1-zone-ab1--xa-s3.s3express-fips-test1-zone-ab1.us-west-2.amazonaws.com", @@ -12168,7 +12164,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test1-long1-zone-ab1--x-s3", key="key"), + {"bucket": "mybucket--test1-long1-zone-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test1-long1-zone-ab1--x-s3.s3express-fips-test1-long1-zone-ab1.us-west-2.amazonaws.com", @@ -12190,7 +12186,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test1-long1-zone-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test1-long1-zone-ab1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test1-long1-zone-ab1--xa-s3.s3express-fips-test1-long1-zone-ab1.us-west-2.amazonaws.com", @@ -12212,7 +12208,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test1-az1--x-s3", key="key"), + {"bucket": "mybucket--test1-az1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test1-az1--x-s3.s3express-test1-az1.us-west-2.amazonaws.com", @@ -12234,7 +12230,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test1-az1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test1-az1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test1-az1--xa-s3.s3express-test1-az1.us-west-2.amazonaws.com", @@ -12256,7 +12252,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test1-az1--x-s3", key="key"), + {"bucket": "mybucket--test1-az1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--test1-az1--x-s3.s3express-fips-test1-az1.us-west-2.amazonaws.com", @@ -12278,7 +12274,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_fips_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test1-az1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test1-az1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--test1-az1--xa-s3.s3express-fips-test1-az1.us-west-2.amazonaws.com", @@ -12300,7 +12296,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.create_bucket, - CreateBucketInput(bucket="mybucket--test-ab1--x-s3"), + {"bucket": "mybucket--test-ab1--x-s3"}, { "endpoint": { "url": "https://s3express-control.us-east-1.amazonaws.com/mybucket--test-ab1--x-s3", @@ -12322,7 +12318,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1"}, AsyncS3Client.create_bucket, - CreateBucketInput(bucket="mybucket--test-ab1--x-s3"), + {"bucket": "mybucket--test-ab1--x-s3"}, { "endpoint": { "url": "https://s3express-control.cn-north-1.amazonaws.com.cn/mybucket--test-ab1--x-s3", @@ -12344,7 +12340,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncS3Client.create_bucket, - CreateBucketInput(bucket="mybucket--test-ab1--x-s3"), + {"bucket": "mybucket--test-ab1--x-s3"}, { "endpoint": { "url": "https://s3express-control-fips.us-east-1.amazonaws.com/mybucket--test-ab1--x-s3", @@ -12366,14 +12362,14 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "cn-north-1", "use_fips_endpoint": True}, AsyncS3Client.create_bucket, - CreateBucketInput(bucket="mybucket--test-ab1--x-s3"), + {"bucket": "mybucket--test-ab1--x-s3"}, {"error": "Partition does not support FIPS"}, id="Control plane with short AZ bucket and fips china region", ), param( {"region": "us-east-1"}, AsyncS3Client.list_directory_buckets, - ListDirectoryBucketsInput(), + {}, { "endpoint": { "url": "https://s3express-control.us-east-1.amazonaws.com", @@ -12395,7 +12391,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_fips_endpoint": True}, AsyncS3Client.list_directory_buckets, - ListDirectoryBucketsInput(), + {}, { "endpoint": { "url": "https://s3express-control-fips.us-east-1.amazonaws.com", @@ -12417,7 +12413,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "endpoint_uri": "https://10.0.0.1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--usw2-az1--x-s3", key="key"), + {"bucket": "mybucket--usw2-az1--x-s3", "key": "key"}, { "endpoint": { "url": "https://10.0.0.1/mybucket--usw2-az1--x-s3", @@ -12439,7 +12435,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "endpoint_uri": "https://10.0.0.1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--usw2-az1--xa-s3", key="key"), + {"bucket": "myaccesspoint--usw2-az1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://10.0.0.1/myaccesspoint--usw2-az1--xa-s3", @@ -12461,7 +12457,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "endpoint_uri": "https://custom.com"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--usw2-az1--x-s3", key="key"), + {"bucket": "mybucket--usw2-az1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--usw2-az1--x-s3.custom.com", @@ -12483,7 +12479,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "endpoint_uri": "https://custom.com"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--usw2-az1--xa-s3", key="key"), + {"bucket": "myaccesspoint--usw2-az1--xa-s3", "key": "key"}, { "endpoint": { "url": "https://myaccesspoint--usw2-az1--xa-s3.custom.com", @@ -12505,77 +12501,77 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--usaz1--x-s3", key="key"), + {"bucket": "mybucket--usaz1--x-s3", "key": "key"}, {"error": "Unrecognized S3Express bucket name format."}, id="bad format error", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--usaz1--xa-s3", key="key"), + {"bucket": "myaccesspoint--usaz1--xa-s3", "key": "key"}, {"error": "Unrecognized S3Express bucket name format."}, id="bad AP format error", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--usaz1--x-s3", key="key"), + {"bucket": "mybucket--usaz1--x-s3", "key": "key"}, {"error": "Unrecognized S3Express bucket name format."}, id="bad format error no session auth", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--usaz1--xa-s3", key="key"), + {"bucket": "myaccesspoint--usaz1--xa-s3", "key": "key"}, {"error": "Unrecognized S3Express bucket name format."}, id="bad AP format error no session auth", ), param( {"region": "us-east-1", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--test-ab1--x-s3", key="key"), + {"bucket": "mybucket--test-ab1--x-s3", "key": "key"}, {"error": "S3Express does not support S3 Accelerate."}, id="accelerate error", ), param( {"region": "us-east-1", "use_accelerate_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="myaccesspoint--test-ab1--xa-s3", key="key"), + {"bucket": "myaccesspoint--test-ab1--xa-s3", "key": "key"}, {"error": "S3Express does not support S3 Accelerate."}, id="accelerate error with AP", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="my.bucket--test-ab1--x-s3", key="key"), + {"bucket": "my.bucket--test-ab1--x-s3", "key": "key"}, {"error": "S3Express bucket name is not a valid virtual hostable name."}, id="Data plane bucket format error", ), param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="my.myaccesspoint--test-ab1--xa-s3", key="key"), + {"bucket": "my.myaccesspoint--test-ab1--xa-s3", "key": "key"}, {"error": "S3Express bucket name is not a valid virtual hostable name."}, id="Data plane AP format error", ), param( {"region": "us-west-2", "endpoint_uri": "https://custom.com"}, AsyncS3Client.get_object, - GetObjectInput(bucket="my.bucket--usw2-az1--x-s3", key="key"), + {"bucket": "my.bucket--usw2-az1--x-s3", "key": "key"}, {"error": "S3Express bucket name is not a valid virtual hostable name."}, id="host override data plane bucket error session auth", ), param( {"region": "us-west-2", "endpoint_uri": "https://custom.com"}, AsyncS3Client.get_object, - GetObjectInput(bucket="my.myaccesspoint--usw2-az1--xa-s3", key="key"), + {"bucket": "my.myaccesspoint--usw2-az1--xa-s3", "key": "key"}, {"error": "S3Express bucket name is not a valid virtual hostable name."}, id="host override data plane AP error session auth", ), param( {"region": "us-east-1", "use_dualstack_endpoint": True}, AsyncS3Client.list_directory_buckets, - ListDirectoryBucketsInput(), + {}, { "endpoint": { "url": "https://s3express-control.dualstack.us-east-1.amazonaws.com", @@ -12601,7 +12597,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.list_directory_buckets, - ListDirectoryBucketsInput(), + {}, { "endpoint": { "url": "https://s3express-control-fips.dualstack.us-east-1.amazonaws.com", @@ -12623,7 +12619,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncS3Client.get_object, - GetObjectInput(bucket="my--s3--bucket--abcd-ab1--x-s3", key="key"), + {"bucket": "my--s3--bucket--abcd-ab1--x-s3", "key": "key"}, { "endpoint": { "url": "https://my--s3--bucket--abcd-ab1--x-s3.s3express-abcd-ab1.us-east-1.amazonaws.com", @@ -12645,7 +12641,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2", "use_dualstack_endpoint": True}, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--usw2-az1--x-s3", key="key"), + {"bucket": "mybucket--usw2-az1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--usw2-az1--x-s3.s3express-usw2-az1.dualstack.us-west-2.amazonaws.com", @@ -12671,7 +12667,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.get_object, - GetObjectInput(bucket="mybucket--usw2-az1--x-s3", key="key"), + {"bucket": "mybucket--usw2-az1--x-s3", "key": "key"}, { "endpoint": { "url": "https://mybucket--usw2-az1--x-s3.s3express-fips-usw2-az1.dualstack.us-west-2.amazonaws.com", @@ -12697,7 +12693,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> "use_dualstack_endpoint": True, }, AsyncS3Client.create_bucket, - CreateBucketInput(bucket="mybucket--test-ab1--x-s3"), + {"bucket": "mybucket--test-ab1--x-s3"}, { "endpoint": { "url": "https://s3express-control-fips.dualstack.us-east-1.amazonaws.com/mybucket--test-ab1--x-s3", @@ -12719,7 +12715,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1", "use_dualstack_endpoint": True}, AsyncS3Client.create_bucket, - CreateBucketInput(bucket="mybucket--test-ab1--x-s3"), + {"bucket": "mybucket--test-ab1--x-s3"}, { "endpoint": { "url": "https://s3express-control.dualstack.us-east-1.amazonaws.com/mybucket--test-ab1--x-s3", @@ -12744,8 +12740,8 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> @mark.parametrize(("config", "operation", "input", "expect"), CLIENT_CASES) async def test_endpoint_client( config: dict[str, Any], - operation: Callable[[AsyncS3Client, Any], Awaitable[Any]], - input: Any, + operation: Callable[Concatenate[AsyncS3Client, ...], Awaitable[Any]], + input: dict[str, Any], expect: dict[str, Any], ) -> None: await check_client_case_async( diff --git a/clients/aws-sdk-sagemaker-runtime-http2/pyproject.toml b/clients/aws-sdk-sagemaker-runtime-http2/pyproject.toml index d1f29345a..18eab3b0d 100644 --- a/clients/aws-sdk-sagemaker-runtime-http2/pyproject.toml +++ b/clients/aws-sdk-sagemaker-runtime-http2/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/aio/client.py b/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/aio/client.py index 4b7d492c6..9dcf5d435 100644 --- a/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/aio/client.py +++ b/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/aio/client.py @@ -1,7 +1,9 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from __future__ import annotations + import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -13,7 +15,6 @@ from .. import models as _models from ..models import ( - InvokeEndpointWithBidirectionalStreamInput, InvokeEndpointWithBidirectionalStreamOutput, RequestStreamEvent, ResponseStreamEvent, @@ -29,12 +30,29 @@ class AsyncSageMakerRuntimeHTTP2Client(AsyncClient[AsyncSageMakerRuntimeHTTP2Config]): """The Amazon SageMaker AI runtime HTTP/2 API.""" - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + + @_overload + async def invoke_endpoint_with_bidirectional_stream( + self, + request: _models.InvokeEndpointWithBidirectionalStreamInput + | _models.InvokeEndpointWithBidirectionalStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ + RequestStreamEvent, + ResponseStreamEvent, + InvokeEndpointWithBidirectionalStreamOutput, + ]: ... + @_overload async def invoke_endpoint_with_bidirectional_stream( self, - input: InvokeEndpointWithBidirectionalStreamInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.InvokeEndpointWithBidirectionalStreamInputDict], ) -> AsyncDuplexEventStream[ RequestStreamEvent, ResponseStreamEvent, @@ -78,8 +96,6 @@ async def invoke_endpoint_with_bidirectional_stream( caller. Args: - input: - An instance of `InvokeEndpointWithBidirectionalStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -89,8 +105,21 @@ async def invoke_endpoint_with_bidirectional_stream( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def invoke_endpoint_with_bidirectional_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + RequestStreamEvent, + ResponseStreamEvent, + InvokeEndpointWithBidirectionalStreamOutput, + ]: pipeline, call = await self._prepare_call( - input, _models.INVOKE_ENDPOINT_WITH_BIDIRECTIONAL_STREAM, [], plugins + self._select_input( + _models.INVOKE_ENDPOINT_WITH_BIDIRECTIONAL_STREAM, args, kwargs + ), + _models.INVOKE_ENDPOINT_WITH_BIDIRECTIONAL_STREAM, + [], + plugins, ) return await pipeline.duplex_stream( call, diff --git a/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/client.py b/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/client.py index be8c3b32b..f37d51524 100644 --- a/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/client.py +++ b/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/client.py @@ -20,7 +20,7 @@ class SageMakerRuntimeHTTP2Client(Client[SageMakerRuntimeHTTP2Config]): """The Amazon SageMaker AI runtime HTTP/2 API.""" - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) def _new_config(self) -> SageMakerRuntimeHTTP2Config: return SageMakerRuntimeHTTP2Config.resolve() diff --git a/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/models.pyi b/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/models.pyi index 7af4f6f28..2962cddf3 100644 --- a/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/models.pyi +++ b/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/models.pyi @@ -1,7 +1,7 @@ # Code generated by smithy-python-codegen DO NOT EDIT. from dataclasses import dataclass -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -79,6 +79,18 @@ class InvokeEndpointWithBidirectionalStreamInput(_SerdeShape): model_query_string: str | None = ... """Model query string.""" +class InvokeEndpointWithBidirectionalStreamInputDict(TypedDict, total=False): + """Dictionary form of `InvokeEndpointWithBidirectionalStreamInput`.""" + + endpoint_name: Required[str] + """The name of the endpoint to invoke.""" + target_variant: str | None + """Target variant for the request.""" + model_invocation_path: str | None + """Model invocation path.""" + model_query_string: str | None + """Model query string.""" + @dataclass(kw_only=True) class InvokeEndpointWithBidirectionalStreamOutput(_SerdeShape): """Dataclass for InvokeEndpointWithBidirectionalStreamOutput structure.""" diff --git a/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/py.typed b/clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-sagemaker-runtime-http2/tests/_typecheck.py b/clients/aws-sdk-sagemaker-runtime-http2/tests/_typecheck.py index 1fc3dfd4c..407a3c4c7 100644 --- a/clients/aws-sdk-sagemaker-runtime-http2/tests/_typecheck.py +++ b/clients/aws-sdk-sagemaker-runtime-http2/tests/_typecheck.py @@ -2,16 +2,20 @@ from typing import Any +from aws_sdk_sagemaker_runtime_http2.aio.client import AsyncSageMakerRuntimeHTTP2Client +from aws_sdk_sagemaker_runtime_http2.client import SageMakerRuntimeHTTP2Client from aws_sdk_sagemaker_runtime_http2.models import ( InvokeEndpointWithBidirectionalStreamInput, + InvokeEndpointWithBidirectionalStreamInputDict, InvokeEndpointWithBidirectionalStreamOutput, RequestPayloadPart, ResponsePayloadPart, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -19,3 +23,26 @@ InvokeEndpointWithBidirectionalStreamOutput() RequestPayloadPart() ResponsePayloadPart() +_params_0: InvokeEndpointWithBidirectionalStreamInputDict = {"endpoint_name": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncSageMakerRuntimeHTTP2Client) -> None: + pass + await client.invoke_endpoint_with_bidirectional_stream(endpoint_name=_) + await client.invoke_endpoint_with_bidirectional_stream( + **_request(InvokeEndpointWithBidirectionalStreamInputDict) + ) + await client.invoke_endpoint_with_bidirectional_stream( + _request(InvokeEndpointWithBidirectionalStreamInput) + ) + await client.invoke_endpoint_with_bidirectional_stream( + _request(InvokeEndpointWithBidirectionalStreamInputDict) + ) + + +def check_sync_calls(client: SageMakerRuntimeHTTP2Client) -> None: + pass diff --git a/clients/aws-sdk-secrets-manager/pyproject.toml b/clients/aws-sdk-secrets-manager/pyproject.toml index c4bfabeb9..d1d3edb5a 100644 --- a/clients/aws-sdk-secrets-manager/pyproject.toml +++ b/clients/aws-sdk-secrets-manager/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/_private/schemas.py b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/_private/schemas.py index 22fee5523..6c22eff7c 100644 --- a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/_private/schemas.py +++ b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/_private/schemas.py @@ -187,7 +187,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/aio/client.py b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/aio/client.py index daf3834e8..4443169f1 100644 --- a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/aio/client.py +++ b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,51 +20,28 @@ if TYPE_CHECKING: from ..models import ( - BatchGetSecretValueInput, BatchGetSecretValueOutput, - CancelRotateSecretInput, CancelRotateSecretOutput, - CreateSecretInput, CreateSecretOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteSecretInput, DeleteSecretOutput, - DescribeSecretInput, DescribeSecretOutput, - GetRandomPasswordInput, GetRandomPasswordOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetSecretValueInput, GetSecretValueOutput, - ListSecretVersionIdsInput, ListSecretVersionIdsOutput, - ListSecretsInput, ListSecretsOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - PutSecretValueInput, PutSecretValueOutput, - RemoveRegionsFromReplicationInput, RemoveRegionsFromReplicationOutput, - ReplicateSecretToRegionsInput, ReplicateSecretToRegionsOutput, - RestoreSecretInput, RestoreSecretOutput, - RotateSecretInput, RotateSecretOutput, - StopReplicationToReplicaInput, StopReplicationToReplicaOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateSecretInput, UpdateSecretOutput, - UpdateSecretVersionStageInput, UpdateSecretVersionStageOutput, - ValidateResourcePolicyInput, ValidateResourcePolicyOutput, ) @@ -117,10 +94,25 @@ class AsyncSecretsManagerClient(AsyncClient[AsyncSecretsManagerConfig]): Guide](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def batch_get_secret_value( - self, input: BatchGetSecretValueInput, plugins: list[Plugin] | None = None + self, + request: _models.BatchGetSecretValueInput + | _models.BatchGetSecretValueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> BatchGetSecretValueOutput: ... + + @_overload + async def batch_get_secret_value( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchGetSecretValueInputDict], ) -> BatchGetSecretValueOutput: """ Retrieves the contents of the encrypted fields `SecretString` or @@ -150,8 +142,6 @@ async def batch_get_secret_value( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `BatchGetSecretValueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -161,10 +151,33 @@ async def batch_get_secret_value( Returns: An instance of `BatchGetSecretValueOutput`. """ - return await self._invoke(input, _models.BATCH_GET_SECRET_VALUE, [], plugins) + async def batch_get_secret_value( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchGetSecretValueOutput: + return await self._invoke( + self._select_input(_models.BATCH_GET_SECRET_VALUE, args, kwargs), + _models.BATCH_GET_SECRET_VALUE, + [], + plugins, + ) + + @_overload + async def cancel_rotate_secret( + self, + request: _models.CancelRotateSecretInput | _models.CancelRotateSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelRotateSecretOutput: ... + + @_overload async def cancel_rotate_secret( - self, input: CancelRotateSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelRotateSecretInputDict], ) -> CancelRotateSecretOutput: """ Turns off automatic rotation, and if a rotation is currently in @@ -195,8 +208,6 @@ async def cancel_rotate_secret( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `CancelRotateSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -206,10 +217,33 @@ async def cancel_rotate_secret( Returns: An instance of `CancelRotateSecretOutput`. """ - return await self._invoke(input, _models.CANCEL_ROTATE_SECRET, [], plugins) + async def cancel_rotate_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelRotateSecretOutput: + return await self._invoke( + self._select_input(_models.CANCEL_ROTATE_SECRET, args, kwargs), + _models.CANCEL_ROTATE_SECRET, + [], + plugins, + ) + + @_overload async def create_secret( - self, input: CreateSecretInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateSecretInput | _models.CreateSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSecretOutput: ... + + @_overload + async def create_secret( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSecretInputDict], ) -> CreateSecretOutput: """ Creates a new secret. A *secret* can be a password, a set of credentials @@ -279,8 +313,6 @@ async def create_secret( secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html). Args: - input: - An instance of `CreateSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -290,10 +322,34 @@ async def create_secret( Returns: An instance of `CreateSecretOutput`. """ - return await self._invoke(input, _models.CREATE_SECRET, [], plugins) + async def create_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSecretOutput: + return await self._invoke( + self._select_input(_models.CREATE_SECRET, args, kwargs), + _models.CREATE_SECRET, + [], + plugins, + ) + + @_overload + async def delete_resource_policy( + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload async def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource-based permission policy attached to the secret. To @@ -312,8 +368,6 @@ async def delete_resource_policy( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -323,10 +377,33 @@ async def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return await self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + async def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def delete_secret( + self, + request: _models.DeleteSecretInput | _models.DeleteSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSecretOutput: ... + + @_overload async def delete_secret( - self, input: DeleteSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSecretInputDict], ) -> DeleteSecretOutput: """ Deletes a secret and all of its versions. You can specify a recovery @@ -377,8 +454,6 @@ async def delete_secret( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `DeleteSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -388,10 +463,33 @@ async def delete_secret( Returns: An instance of `DeleteSecretOutput`. """ - return await self._invoke(input, _models.DELETE_SECRET, [], plugins) + async def delete_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSecretOutput: + return await self._invoke( + self._select_input(_models.DELETE_SECRET, args, kwargs), + _models.DELETE_SECRET, + [], + plugins, + ) + + @_overload async def describe_secret( - self, input: DescribeSecretInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeSecretInput | _models.DescribeSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecretOutput: ... + + @_overload + async def describe_secret( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecretInputDict], ) -> DescribeSecretOutput: """ Retrieves the details of a secret. It does not include the encrypted @@ -411,8 +509,6 @@ async def describe_secret( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `DescribeSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -422,17 +518,40 @@ async def describe_secret( Returns: An instance of `DescribeSecretOutput`. """ - return await self._invoke(input, _models.DESCRIBE_SECRET, [], plugins) + async def describe_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecretOutput: + return await self._invoke( + self._select_input(_models.DESCRIBE_SECRET, args, kwargs), + _models.DESCRIBE_SECRET, + [], + plugins, + ) + + @_overload + async def get_random_password( + self, + request: _models.GetRandomPasswordInput | _models.GetRandomPasswordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRandomPasswordOutput: ... + + @_overload async def get_random_password( - self, input: GetRandomPasswordInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRandomPasswordInputDict], ) -> GetRandomPasswordOutput: """ Generates a random password. We recommend that you specify the maximum length and include every character type that the system you are generating a password for can support. By default, Secrets Manager uses uppercase and lowercase letters, numbers, and the following characters - in passwords: `` !\"#$$%&'()*+,-./:;<=>?@[\\]^_`{|}~ `` + in passwords: `` !\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~ `` Secrets Manager generates a CloudTrail log entry when you call this action. @@ -444,8 +563,6 @@ async def get_random_password( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `GetRandomPasswordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -455,10 +572,33 @@ async def get_random_password( Returns: An instance of `GetRandomPasswordOutput`. """ - return await self._invoke(input, _models.GET_RANDOM_PASSWORD, [], plugins) + async def get_random_password( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRandomPasswordOutput: + return await self._invoke( + self._select_input(_models.GET_RANDOM_PASSWORD, args, kwargs), + _models.GET_RANDOM_PASSWORD, + [], + plugins, + ) + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload + async def get_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the JSON text of the resource-based policy document attached @@ -479,8 +619,6 @@ async def get_resource_policy( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -490,10 +628,33 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def get_secret_value( + self, + request: _models.GetSecretValueInput | _models.GetSecretValueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSecretValueOutput: ... + + @_overload async def get_secret_value( - self, input: GetSecretValueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSecretValueInputDict], ) -> GetSecretValueOutput: """ Retrieves the contents of the encrypted fields `SecretString` or @@ -527,8 +688,6 @@ async def get_secret_value( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `GetSecretValueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -538,10 +697,33 @@ async def get_secret_value( Returns: An instance of `GetSecretValueOutput`. """ - return await self._invoke(input, _models.GET_SECRET_VALUE, [], plugins) + async def get_secret_value( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSecretValueOutput: + return await self._invoke( + self._select_input(_models.GET_SECRET_VALUE, args, kwargs), + _models.GET_SECRET_VALUE, + [], + plugins, + ) + + @_overload async def list_secrets( - self, input: ListSecretsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListSecretsInput | _models.ListSecretsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSecretsOutput: ... + + @_overload + async def list_secrets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSecretsInputDict], ) -> ListSecretsOutput: """ Lists the secrets that are stored by Secrets Manager in the Amazon Web @@ -574,8 +756,6 @@ async def list_secrets( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `ListSecretsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -585,10 +765,34 @@ async def list_secrets( Returns: An instance of `ListSecretsOutput`. """ - return await self._invoke(input, _models.LIST_SECRETS, [], plugins) + async def list_secrets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSecretsOutput: + return await self._invoke( + self._select_input(_models.LIST_SECRETS, args, kwargs), + _models.LIST_SECRETS, + [], + plugins, + ) + + @_overload + async def list_secret_version_ids( + self, + request: _models.ListSecretVersionIdsInput + | _models.ListSecretVersionIdsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSecretVersionIdsOutput: ... + + @_overload async def list_secret_version_ids( - self, input: ListSecretVersionIdsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSecretVersionIdsInputDict], ) -> ListSecretVersionIdsOutput: """ Lists the versions of a secret. Secrets Manager uses staging labels to @@ -611,8 +815,6 @@ async def list_secret_version_ids( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `ListSecretVersionIdsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -622,10 +824,33 @@ async def list_secret_version_ids( Returns: An instance of `ListSecretVersionIdsOutput`. """ - return await self._invoke(input, _models.LIST_SECRET_VERSION_IDS, [], plugins) + async def list_secret_version_ids( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSecretVersionIdsOutput: + return await self._invoke( + self._select_input(_models.LIST_SECRET_VERSION_IDS, args, kwargs), + _models.LIST_SECRET_VERSION_IDS, + [], + plugins, + ) + + @_overload async def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload + async def put_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Attaches a resource-based permission policy to a secret. A @@ -650,8 +875,6 @@ async def put_resource_policy( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -661,10 +884,33 @@ async def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return await self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + async def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + async def put_secret_value( + self, + request: _models.PutSecretValueInput | _models.PutSecretValueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutSecretValueOutput: ... + + @_overload async def put_secret_value( - self, input: PutSecretValueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutSecretValueInputDict], ) -> PutSecretValueOutput: """ Creates a new version of your secret by creating a new encrypted value @@ -718,8 +964,6 @@ async def put_secret_value( secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html). Args: - input: - An instance of `PutSecretValueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -729,12 +973,34 @@ async def put_secret_value( Returns: An instance of `PutSecretValueOutput`. """ - return await self._invoke(input, _models.PUT_SECRET_VALUE, [], plugins) + async def put_secret_value( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutSecretValueOutput: + return await self._invoke( + self._select_input(_models.PUT_SECRET_VALUE, args, kwargs), + _models.PUT_SECRET_VALUE, + [], + plugins, + ) + + @_overload async def remove_regions_from_replication( self, - input: RemoveRegionsFromReplicationInput, + request: _models.RemoveRegionsFromReplicationInput + | _models.RemoveRegionsFromReplicationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RemoveRegionsFromReplicationOutput: ... + + @_overload + async def remove_regions_from_replication( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveRegionsFromReplicationInputDict], ) -> RemoveRegionsFromReplicationOutput: """ For a secret that is replicated to other Regions, deletes the secret @@ -753,8 +1019,6 @@ async def remove_regions_from_replication( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `RemoveRegionsFromReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -764,12 +1028,34 @@ async def remove_regions_from_replication( Returns: An instance of `RemoveRegionsFromReplicationOutput`. """ + + async def remove_regions_from_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveRegionsFromReplicationOutput: return await self._invoke( - input, _models.REMOVE_REGIONS_FROM_REPLICATION, [], plugins + self._select_input(_models.REMOVE_REGIONS_FROM_REPLICATION, args, kwargs), + _models.REMOVE_REGIONS_FROM_REPLICATION, + [], + plugins, ) + @_overload async def replicate_secret_to_regions( - self, input: ReplicateSecretToRegionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ReplicateSecretToRegionsInput + | _models.ReplicateSecretToRegionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplicateSecretToRegionsOutput: ... + + @_overload + async def replicate_secret_to_regions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplicateSecretToRegionsInputDict], ) -> ReplicateSecretToRegionsOutput: """ Replicates the secret to a new Regions. See [Multi-Region @@ -792,8 +1078,6 @@ async def replicate_secret_to_regions( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `ReplicateSecretToRegionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -803,12 +1087,33 @@ async def replicate_secret_to_regions( Returns: An instance of `ReplicateSecretToRegionsOutput`. """ + + async def replicate_secret_to_regions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplicateSecretToRegionsOutput: return await self._invoke( - input, _models.REPLICATE_SECRET_TO_REGIONS, [], plugins + self._select_input(_models.REPLICATE_SECRET_TO_REGIONS, args, kwargs), + _models.REPLICATE_SECRET_TO_REGIONS, + [], + plugins, ) + @_overload async def restore_secret( - self, input: RestoreSecretInput, plugins: list[Plugin] | None = None + self, + request: _models.RestoreSecretInput | _models.RestoreSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreSecretOutput: ... + + @_overload + async def restore_secret( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreSecretInputDict], ) -> RestoreSecretOutput: """ Cancels the scheduled deletion of a secret by removing the `DeletedDate` @@ -827,8 +1132,6 @@ async def restore_secret( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `RestoreSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -838,10 +1141,33 @@ async def restore_secret( Returns: An instance of `RestoreSecretOutput`. """ - return await self._invoke(input, _models.RESTORE_SECRET, [], plugins) + async def restore_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreSecretOutput: + return await self._invoke( + self._select_input(_models.RESTORE_SECRET, args, kwargs), + _models.RESTORE_SECRET, + [], + plugins, + ) + + @_overload + async def rotate_secret( + self, + request: _models.RotateSecretInput | _models.RotateSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RotateSecretOutput: ... + + @_overload async def rotate_secret( - self, input: RotateSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RotateSecretInputDict], ) -> RotateSecretOutput: """ Configures and starts the asynchronous process of rotating the secret. @@ -880,8 +1206,6 @@ async def rotate_secret( rotation](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-required-permissions-function.html). Args: - input: - An instance of `RotateSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -891,10 +1215,34 @@ async def rotate_secret( Returns: An instance of `RotateSecretOutput`. """ - return await self._invoke(input, _models.ROTATE_SECRET, [], plugins) + async def rotate_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RotateSecretOutput: + return await self._invoke( + self._select_input(_models.ROTATE_SECRET, args, kwargs), + _models.ROTATE_SECRET, + [], + plugins, + ) + + @_overload async def stop_replication_to_replica( - self, input: StopReplicationToReplicaInput, plugins: list[Plugin] | None = None + self, + request: _models.StopReplicationToReplicaInput + | _models.StopReplicationToReplicaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopReplicationToReplicaOutput: ... + + @_overload + async def stop_replication_to_replica( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopReplicationToReplicaInputDict], ) -> StopReplicationToReplicaOutput: """ Removes the link between the replica secret and the primary secret and @@ -916,8 +1264,6 @@ async def stop_replication_to_replica( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `StopReplicationToReplicaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -927,12 +1273,33 @@ async def stop_replication_to_replica( Returns: An instance of `StopReplicationToReplicaOutput`. """ + + async def stop_replication_to_replica( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopReplicationToReplicaOutput: return await self._invoke( - input, _models.STOP_REPLICATION_TO_REPLICA, [], plugins + self._select_input(_models.STOP_REPLICATION_TO_REPLICA, args, kwargs), + _models.STOP_REPLICATION_TO_REPLICA, + [], + plugins, ) + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + async def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Attaches tags to a secret. Tags consist of a key name and a value. Tags @@ -963,8 +1330,6 @@ async def tag_resource( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -974,10 +1339,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes specific tags from a secret. @@ -1004,8 +1392,6 @@ async def untag_resource( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1015,10 +1401,33 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def update_secret( + self, + request: _models.UpdateSecretInput | _models.UpdateSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSecretOutput: ... + + @_overload async def update_secret( - self, input: UpdateSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSecretInputDict], ) -> UpdateSecretOutput: """ Modifies the details of a secret, including metadata and the secret @@ -1080,8 +1489,6 @@ async def update_secret( secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html). Args: - input: - An instance of `UpdateSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1091,10 +1498,34 @@ async def update_secret( Returns: An instance of `UpdateSecretOutput`. """ - return await self._invoke(input, _models.UPDATE_SECRET, [], plugins) + async def update_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSecretOutput: + return await self._invoke( + self._select_input(_models.UPDATE_SECRET, args, kwargs), + _models.UPDATE_SECRET, + [], + plugins, + ) + + @_overload async def update_secret_version_stage( - self, input: UpdateSecretVersionStageInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateSecretVersionStageInput + | _models.UpdateSecretVersionStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSecretVersionStageOutput: ... + + @_overload + async def update_secret_version_stage( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSecretVersionStageInputDict], ) -> UpdateSecretVersionStageOutput: """ Modifies the staging labels attached to a version of a secret. Secrets @@ -1133,8 +1564,6 @@ async def update_secret_version_stage( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `UpdateSecretVersionStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1144,12 +1573,34 @@ async def update_secret_version_stage( Returns: An instance of `UpdateSecretVersionStageOutput`. """ + + async def update_secret_version_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSecretVersionStageOutput: return await self._invoke( - input, _models.UPDATE_SECRET_VERSION_STAGE, [], plugins + self._select_input(_models.UPDATE_SECRET_VERSION_STAGE, args, kwargs), + _models.UPDATE_SECRET_VERSION_STAGE, + [], + plugins, ) + @_overload + async def validate_resource_policy( + self, + request: _models.ValidateResourcePolicyInput + | _models.ValidateResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ValidateResourcePolicyOutput: ... + + @_overload async def validate_resource_policy( - self, input: ValidateResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ValidateResourcePolicyInputDict], ) -> ValidateResourcePolicyOutput: """ Validates that a resource policy does not grant a wide range of @@ -1182,8 +1633,6 @@ async def validate_resource_policy( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `ValidateResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1193,7 +1642,16 @@ async def validate_resource_policy( Returns: An instance of `ValidateResourcePolicyOutput`. """ - return await self._invoke(input, _models.VALIDATE_RESOURCE_POLICY, [], plugins) + + async def validate_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ValidateResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.VALIDATE_RESOURCE_POLICY, args, kwargs), + _models.VALIDATE_RESOURCE_POLICY, + [], + plugins, + ) async def _new_config(self) -> AsyncSecretsManagerConfig: return await AsyncSecretsManagerConfig.resolve() diff --git a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/client.py b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/client.py index aae94672c..55a0beaee 100644 --- a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/client.py +++ b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,51 +20,28 @@ if TYPE_CHECKING: from .models import ( - BatchGetSecretValueInput, BatchGetSecretValueOutput, - CancelRotateSecretInput, CancelRotateSecretOutput, - CreateSecretInput, CreateSecretOutput, - DeleteResourcePolicyInput, DeleteResourcePolicyOutput, - DeleteSecretInput, DeleteSecretOutput, - DescribeSecretInput, DescribeSecretOutput, - GetRandomPasswordInput, GetRandomPasswordOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - GetSecretValueInput, GetSecretValueOutput, - ListSecretVersionIdsInput, ListSecretVersionIdsOutput, - ListSecretsInput, ListSecretsOutput, - PutResourcePolicyInput, PutResourcePolicyOutput, - PutSecretValueInput, PutSecretValueOutput, - RemoveRegionsFromReplicationInput, RemoveRegionsFromReplicationOutput, - ReplicateSecretToRegionsInput, ReplicateSecretToRegionsOutput, - RestoreSecretInput, RestoreSecretOutput, - RotateSecretInput, RotateSecretOutput, - StopReplicationToReplicaInput, StopReplicationToReplicaOutput, - TagResourceInput, TagResourceOutput, - UntagResourceInput, UntagResourceOutput, - UpdateSecretInput, UpdateSecretOutput, - UpdateSecretVersionStageInput, UpdateSecretVersionStageOutput, - ValidateResourcePolicyInput, ValidateResourcePolicyOutput, ) @@ -117,12 +94,25 @@ class SecretsManagerClient(Client[SecretsManagerConfig]): Guide](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def batch_get_secret_value( self, - input: BatchGetSecretValueInput | None = None, + request: _models.BatchGetSecretValueInput + | _models.BatchGetSecretValueInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> BatchGetSecretValueOutput: ... + + @_overload + def batch_get_secret_value( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.BatchGetSecretValueInputDict], ) -> BatchGetSecretValueOutput: """ Retrieves the contents of the encrypted fields `SecretString` or @@ -152,8 +142,6 @@ def batch_get_secret_value( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `BatchGetSecretValueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -163,10 +151,33 @@ def batch_get_secret_value( Returns: An instance of `BatchGetSecretValueOutput`. """ - return self._invoke(input, _models.BATCH_GET_SECRET_VALUE, [], plugins) + def batch_get_secret_value( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> BatchGetSecretValueOutput: + return self._invoke( + self._select_input(_models.BATCH_GET_SECRET_VALUE, args, kwargs), + _models.BATCH_GET_SECRET_VALUE, + [], + plugins, + ) + + @_overload + def cancel_rotate_secret( + self, + request: _models.CancelRotateSecretInput | _models.CancelRotateSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelRotateSecretOutput: ... + + @_overload def cancel_rotate_secret( - self, input: CancelRotateSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelRotateSecretInputDict], ) -> CancelRotateSecretOutput: """ Turns off automatic rotation, and if a rotation is currently in @@ -197,8 +208,6 @@ def cancel_rotate_secret( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `CancelRotateSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -208,10 +217,33 @@ def cancel_rotate_secret( Returns: An instance of `CancelRotateSecretOutput`. """ - return self._invoke(input, _models.CANCEL_ROTATE_SECRET, [], plugins) + def cancel_rotate_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelRotateSecretOutput: + return self._invoke( + self._select_input(_models.CANCEL_ROTATE_SECRET, args, kwargs), + _models.CANCEL_ROTATE_SECRET, + [], + plugins, + ) + + @_overload + def create_secret( + self, + request: _models.CreateSecretInput | _models.CreateSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSecretOutput: ... + + @_overload def create_secret( - self, input: CreateSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSecretInputDict], ) -> CreateSecretOutput: """ Creates a new secret. A *secret* can be a password, a set of credentials @@ -281,8 +313,6 @@ def create_secret( secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html). Args: - input: - An instance of `CreateSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -292,10 +322,34 @@ def create_secret( Returns: An instance of `CreateSecretOutput`. """ - return self._invoke(input, _models.CREATE_SECRET, [], plugins) + def create_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSecretOutput: + return self._invoke( + self._select_input(_models.CREATE_SECRET, args, kwargs), + _models.CREATE_SECRET, + [], + plugins, + ) + + @_overload def delete_resource_policy( - self, input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteResourcePolicyInput + | _models.DeleteResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteResourcePolicyOutput: ... + + @_overload + def delete_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePolicyInputDict], ) -> DeleteResourcePolicyOutput: """ Deletes the resource-based permission policy attached to the secret. To @@ -314,8 +368,6 @@ def delete_resource_policy( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `DeleteResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -325,10 +377,33 @@ def delete_resource_policy( Returns: An instance of `DeleteResourcePolicyOutput`. """ - return self._invoke(input, _models.DELETE_RESOURCE_POLICY, [], plugins) + def delete_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePolicyOutput: + return self._invoke( + self._select_input(_models.DELETE_RESOURCE_POLICY, args, kwargs), + _models.DELETE_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def delete_secret( + self, + request: _models.DeleteSecretInput | _models.DeleteSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSecretOutput: ... + + @_overload def delete_secret( - self, input: DeleteSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSecretInputDict], ) -> DeleteSecretOutput: """ Deletes a secret and all of its versions. You can specify a recovery @@ -379,8 +454,6 @@ def delete_secret( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `DeleteSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -390,10 +463,33 @@ def delete_secret( Returns: An instance of `DeleteSecretOutput`. """ - return self._invoke(input, _models.DELETE_SECRET, [], plugins) + def delete_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSecretOutput: + return self._invoke( + self._select_input(_models.DELETE_SECRET, args, kwargs), + _models.DELETE_SECRET, + [], + plugins, + ) + + @_overload def describe_secret( - self, input: DescribeSecretInput, plugins: list[Plugin] | None = None + self, + request: _models.DescribeSecretInput | _models.DescribeSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DescribeSecretOutput: ... + + @_overload + def describe_secret( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DescribeSecretInputDict], ) -> DescribeSecretOutput: """ Retrieves the details of a secret. It does not include the encrypted @@ -413,8 +509,6 @@ def describe_secret( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `DescribeSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -424,19 +518,40 @@ def describe_secret( Returns: An instance of `DescribeSecretOutput`. """ - return self._invoke(input, _models.DESCRIBE_SECRET, [], plugins) + def describe_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DescribeSecretOutput: + return self._invoke( + self._select_input(_models.DESCRIBE_SECRET, args, kwargs), + _models.DESCRIBE_SECRET, + [], + plugins, + ) + + @_overload + def get_random_password( + self, + request: _models.GetRandomPasswordInput | _models.GetRandomPasswordInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetRandomPasswordOutput: ... + + @_overload def get_random_password( self, - input: GetRandomPasswordInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetRandomPasswordInputDict], ) -> GetRandomPasswordOutput: """ Generates a random password. We recommend that you specify the maximum length and include every character type that the system you are generating a password for can support. By default, Secrets Manager uses uppercase and lowercase letters, numbers, and the following characters - in passwords: `` !\"#$$%&'()*+,-./:;<=>?@[\\]^_`{|}~ `` + in passwords: `` !\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~ `` Secrets Manager generates a CloudTrail log entry when you call this action. @@ -448,8 +563,6 @@ def get_random_password( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `GetRandomPasswordInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -459,10 +572,33 @@ def get_random_password( Returns: An instance of `GetRandomPasswordOutput`. """ - return self._invoke(input, _models.GET_RANDOM_PASSWORD, [], plugins) + def get_random_password( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetRandomPasswordOutput: + return self._invoke( + self._select_input(_models.GET_RANDOM_PASSWORD, args, kwargs), + _models.GET_RANDOM_PASSWORD, + [], + plugins, + ) + + @_overload + def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieves the JSON text of the resource-based policy document attached @@ -483,8 +619,6 @@ def get_resource_policy( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -494,10 +628,33 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def get_secret_value( - self, input: GetSecretValueInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSecretValueInput | _models.GetSecretValueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSecretValueOutput: ... + + @_overload + def get_secret_value( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSecretValueInputDict], ) -> GetSecretValueOutput: """ Retrieves the contents of the encrypted fields `SecretString` or @@ -531,8 +688,6 @@ def get_secret_value( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `GetSecretValueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -542,10 +697,33 @@ def get_secret_value( Returns: An instance of `GetSecretValueOutput`. """ - return self._invoke(input, _models.GET_SECRET_VALUE, [], plugins) + def get_secret_value( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSecretValueOutput: + return self._invoke( + self._select_input(_models.GET_SECRET_VALUE, args, kwargs), + _models.GET_SECRET_VALUE, + [], + plugins, + ) + + @_overload def list_secrets( - self, input: ListSecretsInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListSecretsInput | _models.ListSecretsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSecretsOutput: ... + + @_overload + def list_secrets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSecretsInputDict], ) -> ListSecretsOutput: """ Lists the secrets that are stored by Secrets Manager in the Amazon Web @@ -578,8 +756,6 @@ def list_secrets( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `ListSecretsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -589,10 +765,34 @@ def list_secrets( Returns: An instance of `ListSecretsOutput`. """ - return self._invoke(input, _models.LIST_SECRETS, [], plugins) + def list_secrets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSecretsOutput: + return self._invoke( + self._select_input(_models.LIST_SECRETS, args, kwargs), + _models.LIST_SECRETS, + [], + plugins, + ) + + @_overload + def list_secret_version_ids( + self, + request: _models.ListSecretVersionIdsInput + | _models.ListSecretVersionIdsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSecretVersionIdsOutput: ... + + @_overload def list_secret_version_ids( - self, input: ListSecretVersionIdsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSecretVersionIdsInputDict], ) -> ListSecretVersionIdsOutput: """ Lists the versions of a secret. Secrets Manager uses staging labels to @@ -615,8 +815,6 @@ def list_secret_version_ids( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `ListSecretVersionIdsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -626,10 +824,33 @@ def list_secret_version_ids( Returns: An instance of `ListSecretVersionIdsOutput`. """ - return self._invoke(input, _models.LIST_SECRET_VERSION_IDS, [], plugins) + def list_secret_version_ids( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSecretVersionIdsOutput: + return self._invoke( + self._select_input(_models.LIST_SECRET_VERSION_IDS, args, kwargs), + _models.LIST_SECRET_VERSION_IDS, + [], + plugins, + ) + + @_overload def put_resource_policy( - self, input: PutResourcePolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutResourcePolicyInput | _models.PutResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePolicyOutput: ... + + @_overload + def put_resource_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePolicyInputDict], ) -> PutResourcePolicyOutput: """ Attaches a resource-based permission policy to a secret. A @@ -654,8 +875,6 @@ def put_resource_policy( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `PutResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -665,10 +884,33 @@ def put_resource_policy( Returns: An instance of `PutResourcePolicyOutput`. """ - return self._invoke(input, _models.PUT_RESOURCE_POLICY, [], plugins) + def put_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePolicyOutput: + return self._invoke( + self._select_input(_models.PUT_RESOURCE_POLICY, args, kwargs), + _models.PUT_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload + def put_secret_value( + self, + request: _models.PutSecretValueInput | _models.PutSecretValueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutSecretValueOutput: ... + + @_overload def put_secret_value( - self, input: PutSecretValueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutSecretValueInputDict], ) -> PutSecretValueOutput: """ Creates a new version of your secret by creating a new encrypted value @@ -722,8 +964,6 @@ def put_secret_value( secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html). Args: - input: - An instance of `PutSecretValueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -733,12 +973,34 @@ def put_secret_value( Returns: An instance of `PutSecretValueOutput`. """ - return self._invoke(input, _models.PUT_SECRET_VALUE, [], plugins) + def put_secret_value( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutSecretValueOutput: + return self._invoke( + self._select_input(_models.PUT_SECRET_VALUE, args, kwargs), + _models.PUT_SECRET_VALUE, + [], + plugins, + ) + + @_overload def remove_regions_from_replication( self, - input: RemoveRegionsFromReplicationInput, + request: _models.RemoveRegionsFromReplicationInput + | _models.RemoveRegionsFromReplicationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> RemoveRegionsFromReplicationOutput: ... + + @_overload + def remove_regions_from_replication( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemoveRegionsFromReplicationInputDict], ) -> RemoveRegionsFromReplicationOutput: """ For a secret that is replicated to other Regions, deletes the secret @@ -757,8 +1019,6 @@ def remove_regions_from_replication( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `RemoveRegionsFromReplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -768,10 +1028,34 @@ def remove_regions_from_replication( Returns: An instance of `RemoveRegionsFromReplicationOutput`. """ - return self._invoke(input, _models.REMOVE_REGIONS_FROM_REPLICATION, [], plugins) + def remove_regions_from_replication( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemoveRegionsFromReplicationOutput: + return self._invoke( + self._select_input(_models.REMOVE_REGIONS_FROM_REPLICATION, args, kwargs), + _models.REMOVE_REGIONS_FROM_REPLICATION, + [], + plugins, + ) + + @_overload def replicate_secret_to_regions( - self, input: ReplicateSecretToRegionsInput, plugins: list[Plugin] | None = None + self, + request: _models.ReplicateSecretToRegionsInput + | _models.ReplicateSecretToRegionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReplicateSecretToRegionsOutput: ... + + @_overload + def replicate_secret_to_regions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReplicateSecretToRegionsInputDict], ) -> ReplicateSecretToRegionsOutput: """ Replicates the secret to a new Regions. See [Multi-Region @@ -794,8 +1078,6 @@ def replicate_secret_to_regions( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `ReplicateSecretToRegionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -805,10 +1087,33 @@ def replicate_secret_to_regions( Returns: An instance of `ReplicateSecretToRegionsOutput`. """ - return self._invoke(input, _models.REPLICATE_SECRET_TO_REGIONS, [], plugins) + def replicate_secret_to_regions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReplicateSecretToRegionsOutput: + return self._invoke( + self._select_input(_models.REPLICATE_SECRET_TO_REGIONS, args, kwargs), + _models.REPLICATE_SECRET_TO_REGIONS, + [], + plugins, + ) + + @_overload + def restore_secret( + self, + request: _models.RestoreSecretInput | _models.RestoreSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RestoreSecretOutput: ... + + @_overload def restore_secret( - self, input: RestoreSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RestoreSecretInputDict], ) -> RestoreSecretOutput: """ Cancels the scheduled deletion of a secret by removing the `DeletedDate` @@ -827,8 +1132,6 @@ def restore_secret( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `RestoreSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -838,10 +1141,33 @@ def restore_secret( Returns: An instance of `RestoreSecretOutput`. """ - return self._invoke(input, _models.RESTORE_SECRET, [], plugins) + def restore_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RestoreSecretOutput: + return self._invoke( + self._select_input(_models.RESTORE_SECRET, args, kwargs), + _models.RESTORE_SECRET, + [], + plugins, + ) + + @_overload + def rotate_secret( + self, + request: _models.RotateSecretInput | _models.RotateSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RotateSecretOutput: ... + + @_overload def rotate_secret( - self, input: RotateSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RotateSecretInputDict], ) -> RotateSecretOutput: """ Configures and starts the asynchronous process of rotating the secret. @@ -880,8 +1206,6 @@ def rotate_secret( rotation](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-required-permissions-function.html). Args: - input: - An instance of `RotateSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -891,10 +1215,34 @@ def rotate_secret( Returns: An instance of `RotateSecretOutput`. """ - return self._invoke(input, _models.ROTATE_SECRET, [], plugins) + def rotate_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RotateSecretOutput: + return self._invoke( + self._select_input(_models.ROTATE_SECRET, args, kwargs), + _models.ROTATE_SECRET, + [], + plugins, + ) + + @_overload def stop_replication_to_replica( - self, input: StopReplicationToReplicaInput, plugins: list[Plugin] | None = None + self, + request: _models.StopReplicationToReplicaInput + | _models.StopReplicationToReplicaInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StopReplicationToReplicaOutput: ... + + @_overload + def stop_replication_to_replica( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StopReplicationToReplicaInputDict], ) -> StopReplicationToReplicaOutput: """ Removes the link between the replica secret and the primary secret and @@ -916,8 +1264,6 @@ def stop_replication_to_replica( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `StopReplicationToReplicaInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -927,10 +1273,33 @@ def stop_replication_to_replica( Returns: An instance of `StopReplicationToReplicaOutput`. """ - return self._invoke(input, _models.STOP_REPLICATION_TO_REPLICA, [], plugins) + def stop_replication_to_replica( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StopReplicationToReplicaOutput: + return self._invoke( + self._select_input(_models.STOP_REPLICATION_TO_REPLICA, args, kwargs), + _models.STOP_REPLICATION_TO_REPLICA, + [], + plugins, + ) + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Attaches tags to a secret. Tags consist of a key name and a value. Tags @@ -961,8 +1330,6 @@ def tag_resource( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -972,10 +1339,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def untag_resource( + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Removes specific tags from a secret. @@ -1002,8 +1392,6 @@ def untag_resource( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1013,10 +1401,33 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + def update_secret( + self, + request: _models.UpdateSecretInput | _models.UpdateSecretInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSecretOutput: ... + + @_overload def update_secret( - self, input: UpdateSecretInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSecretInputDict], ) -> UpdateSecretOutput: """ Modifies the details of a secret, including metadata and the secret @@ -1078,8 +1489,6 @@ def update_secret( secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html). Args: - input: - An instance of `UpdateSecretInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1089,10 +1498,34 @@ def update_secret( Returns: An instance of `UpdateSecretOutput`. """ - return self._invoke(input, _models.UPDATE_SECRET, [], plugins) + def update_secret( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSecretOutput: + return self._invoke( + self._select_input(_models.UPDATE_SECRET, args, kwargs), + _models.UPDATE_SECRET, + [], + plugins, + ) + + @_overload def update_secret_version_stage( - self, input: UpdateSecretVersionStageInput, plugins: list[Plugin] | None = None + self, + request: _models.UpdateSecretVersionStageInput + | _models.UpdateSecretVersionStageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UpdateSecretVersionStageOutput: ... + + @_overload + def update_secret_version_stage( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UpdateSecretVersionStageInputDict], ) -> UpdateSecretVersionStageOutput: """ Modifies the staging labels attached to a version of a secret. Secrets @@ -1131,8 +1564,6 @@ def update_secret_version_stage( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `UpdateSecretVersionStageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1142,10 +1573,34 @@ def update_secret_version_stage( Returns: An instance of `UpdateSecretVersionStageOutput`. """ - return self._invoke(input, _models.UPDATE_SECRET_VERSION_STAGE, [], plugins) + def update_secret_version_stage( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UpdateSecretVersionStageOutput: + return self._invoke( + self._select_input(_models.UPDATE_SECRET_VERSION_STAGE, args, kwargs), + _models.UPDATE_SECRET_VERSION_STAGE, + [], + plugins, + ) + + @_overload + def validate_resource_policy( + self, + request: _models.ValidateResourcePolicyInput + | _models.ValidateResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ValidateResourcePolicyOutput: ... + + @_overload def validate_resource_policy( - self, input: ValidateResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ValidateResourcePolicyInputDict], ) -> ValidateResourcePolicyOutput: """ Validates that a resource policy does not grant a wide range of @@ -1178,8 +1633,6 @@ def validate_resource_policy( Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html). Args: - input: - An instance of `ValidateResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1189,7 +1642,16 @@ def validate_resource_policy( Returns: An instance of `ValidateResourcePolicyOutput`. """ - return self._invoke(input, _models.VALIDATE_RESOURCE_POLICY, [], plugins) + + def validate_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ValidateResourcePolicyOutput: + return self._invoke( + self._select_input(_models.VALIDATE_RESOURCE_POLICY, args, kwargs), + _models.VALIDATE_RESOURCE_POLICY, + [], + plugins, + ) def _new_config(self) -> SecretsManagerConfig: return SecretsManagerConfig.resolve() diff --git a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/models.pyi b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/models.pyi index 1ce28acd6..1299e5f9f 100644 --- a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/models.pyi +++ b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self +from typing import Required, Self, TypedDict from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -76,6 +77,35 @@ class BatchGetSecretValueInput(_SerdeShape): `BatchGetSecretValue` again with this value. """ +class BatchGetSecretValueInputDict(TypedDict, total=False): + """Dictionary form of `BatchGetSecretValueInput`.""" + + secret_id_list: Sequence[str] | None + """ + The ARN or names of the secrets to retrieve. You must include `Filters` + or `SecretIdList`, but not both. + """ + filters: Sequence[Filter | FilterDict] | None + """ + The filters to choose which secrets to retrieve. You must include + `Filters` or `SecretIdList`, but not both. + """ + max_results: int | None + """ + The number of results to include in the response. + + If there are more results available, in the response, Secrets Manager + includes `NextToken`. To get the next results, call + `BatchGetSecretValue` again with the value from `NextToken`. To use this + parameter, you must also use the `Filters` parameter. + """ + next_token: str | None + """ + A token that indicates where the output should continue from, if a + previous call did not show all results. To get the next results, call + `BatchGetSecretValue` again with this value. + """ + @dataclass(kw_only=True) class BatchGetSecretValueOutput(_SerdeShape): """Dataclass for BatchGetSecretValueOutput structure.""" @@ -116,6 +146,18 @@ class CancelRotateSecretInput(_SerdeShape): ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). """ +class CancelRotateSecretInputDict(TypedDict, total=False): + """Dictionary form of `CancelRotateSecretInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + @dataclass(kw_only=True) class CancelRotateSecretOutput(_SerdeShape): """Dataclass for CancelRotateSecretOutput structure.""" @@ -295,6 +337,159 @@ class CreateSecretInput(_SerdeShape): secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/managed-external-secrets.html). """ +class CreateSecretInputDict(TypedDict, total=False): + """Dictionary form of `CreateSecretInput`.""" + + name: Required[str] + """ + The name of the new secret. + + The secret name can contain ASCII letters, numbers, and the following + characters: /_+=.@- + + Do not end your secret name with a hyphen followed by six characters. If + you do so, you risk confusion and unexpected results when searching for + a secret by partial ARN. Secrets Manager automatically adds a hyphen and + six random characters after the secret name at the end of the ARN. + """ + client_request_token: str | None + """ + If you include `SecretString` or `SecretBinary`, then Secrets Manager + creates an initial version for the secret, and this parameter specifies + the unique identifier for the new version. + + Note: + If you use the Amazon Web Services CLI or one of the Amazon Web Services + SDKs to call this operation, then you can leave this parameter empty. + The CLI or SDK generates a random UUID for you and includes it as the + value for this parameter in the request. + + If you generate a raw HTTP request to the Secrets Manager service + endpoint, then you must generate a `ClientRequestToken` and include it + in the request. + + This value helps ensure idempotency. Secrets Manager uses this value to + prevent the accidental creation of duplicate versions if there are + failures and retries during a rotation. We recommend that you generate a + [UUID-type](https://wikipedia.org/wiki/Universally_unique_identifier) + value to ensure uniqueness of your versions within the specified secret. + + - If the `ClientRequestToken` value isn't already associated with a + version of the secret then a new version of the secret is created. + + - If a version with this value already exists and the version + `SecretString` and `SecretBinary` values are the same as those in the + request, then the request is ignored. + + - If a version with this value already exists and that version's + `SecretString` and `SecretBinary` values are different from those in + the request, then the request fails because you cannot modify an + existing version. Instead, use PutSecretValue to create a new version. + + This value becomes the `VersionId` of the new version. + + This field is autopopulated if not provided. + """ + description: str | None + """The description of the secret.""" + kms_key_id: str | None + """ + The ARN, key ID, or alias of the KMS key that Secrets Manager uses to + encrypt the secret value in the secret. An alias is always prefixed by + `alias/`, for example `alias/aws/secretsmanager`. For more information, + see [About + aliases](https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html). + + To use a KMS key in a different account, use the key ARN or the alias + ARN. + + If you don't specify this value, then Secrets Manager uses the key + `aws/secretsmanager`. If that key doesn't yet exist, then Secrets + Manager creates it for you automatically the first time it encrypts the + secret value. + + If the secret is in a different Amazon Web Services account from the + credentials calling the API, then you can't use `aws/secretsmanager` to + encrypt the secret, and you must create and use a customer managed KMS + key. + """ + secret_binary: bytes | None + """ + The binary data to encrypt and store in the new version of the secret. + We recommend that you store your binary data in a file and then pass the + contents of the file as a parameter. + + Either `SecretString` or `SecretBinary` must have a value, but not both. + + This parameter is not available in the Secrets Manager console. + + Sensitive: This field contains sensitive information, so the service + does not include it in CloudTrail log entries. If you create your own + log entries, you must also avoid logging the information in this field. + """ + secret_string: str | None + """ + The text data to encrypt and store in this new version of the secret. We + recommend you use a JSON structure of key/value pairs for your secret + value. + + Either `SecretString` or `SecretBinary` must have a value, but not both. + + If you create a secret by using the Secrets Manager console then Secrets + Manager puts the protected secret text in only the `SecretString` + parameter. The Secrets Manager console stores the information as a JSON + structure of key/value pairs that a Lambda rotation function can parse. + + Sensitive: This field contains sensitive information, so the service + does not include it in CloudTrail log entries. If you create your own + log entries, you must also avoid logging the information in this field. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of tags to attach to the secret. Each tag is a key and value pair + of strings in a JSON text string, for example: + + `[{"Key":"CostCenter","Value":"12345"},{"Key":"environment","Value":"production"}]` + + Secrets Manager tag key names are case sensitive. A tag with the key + \"ABC\" is a different tag from one with key \"abc\". + + If you check tags in permissions policies as part of your security + strategy, then adding or removing a tag can change permissions. If the + completion of this operation would result in you losing your permissions + for this secret, then Secrets Manager blocks the operation and returns + an `Access Denied` error. For more information, see [Control access to + secrets using + tags](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html#tag-secrets-abac) + and [Limit access to identities with tags that match secrets' + tags](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html#auth-and-access_tags2). + + For information about how to format a JSON parameter for the various + command line tool environments, see [Using JSON for + Parameters](https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json). + If your command-line tool or SDK requires quotation marks around the + parameter, you should use single quotes to avoid confusion with the + double quotes required in the JSON text. + + For tag quotas and naming restrictions, see [Service quotas for + Tagging](https://docs.aws.amazon.com/general/latest/gr/arg.html#taged-reference-quotas) + in the *Amazon Web Services General Reference guide*. + """ + add_replica_regions: Sequence[ReplicaRegionType | ReplicaRegionTypeDict] | None + """A list of Regions and KMS keys to replicate secrets.""" + force_overwrite_replica_secret: bool | None + """ + Specifies whether to overwrite a secret with the same name in the + destination Region. By default, secrets aren't overwritten. + """ + type: str | None + """ + The exact string that identifies the partner that holds the external + secret. For more information, see [Using Secrets Manager managed + external + secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/managed-external-secrets.html). + """ + @dataclass(kw_only=True) class CreateSecretOutput(_SerdeShape): """Dataclass for CreateSecretOutput structure.""" @@ -359,6 +554,19 @@ class DeleteResourcePolicyInput(_SerdeShape): ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). """ +class DeleteResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePolicyInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret to delete the attached resource-based + policy for. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + @dataclass(kw_only=True) class DeleteResourcePolicyOutput(_SerdeShape): """Dataclass for DeleteResourcePolicyOutput structure.""" @@ -418,6 +626,48 @@ class DeleteSecretInput(_SerdeShape): the secret permanently. """ +class DeleteSecretInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSecretInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret to delete. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + recovery_window_in_days: int | None + """ + The number of days from 7 to 30 that Secrets Manager waits before + permanently deleting the secret. You can't use both this parameter and + `ForceDeleteWithoutRecovery` in the same call. If you don't use either, + then by default Secrets Manager uses a 30 day recovery window. + """ + force_delete_without_recovery: bool | None + """ + Specifies whether to delete the secret without any recovery window. You + can't use both this parameter and `RecoveryWindowInDays` in the same + call. If you don't use either, then by default Secrets Manager uses a + 30 day recovery window. + + Secrets Manager performs the actual deletion with an asynchronous + background process, so there might be a short delay before the secret is + permanently deleted. If you delete a secret and then immediately create + a secret with the same name, use appropriate back off and retry logic. + + If you forcibly delete an already deleted or nonexistent secret, the + operation does not return `ResourceNotFoundException`. + + Warning: + Use this parameter with caution. This parameter causes the operation to + skip the normal recovery window before the permanent deletion that + Secrets Manager would normally impose with the `RecoveryWindowInDays` + parameter. If you delete a secret with the `ForceDeleteWithoutRecovery` + parameter, then you have no opportunity to recover the secret. You lose + the secret permanently. + """ + @dataclass(kw_only=True) class DeleteSecretOutput(_SerdeShape): """Dataclass for DeleteSecretOutput structure.""" @@ -454,6 +704,18 @@ class DescribeSecretInput(_SerdeShape): ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). """ +class DescribeSecretInputDict(TypedDict, total=False): + """Dictionary form of `DescribeSecretInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + @dataclass(kw_only=True) class DescribeSecretOutput(_SerdeShape): """Dataclass for DescribeSecretOutput structure.""" @@ -649,6 +911,14 @@ class ExternalSecretRotationMetadataItem(_SerdeShape): value: str | None = ... """The value of the specified item.""" +class ExternalSecretRotationMetadataItemDict(TypedDict, total=False): + """Dictionary form of `ExternalSecretRotationMetadataItem`.""" + + key: str | None + """The key that identifies the item.""" + value: str | None + """The value of the specified item.""" + @dataclass(kw_only=True) class Filter(_SerdeShape): """ @@ -684,30 +954,60 @@ class Filter(_SerdeShape): to perform negation filters. """ -class FilterNameStringType(UnknownEnumMixin, StrEnum): - DESCRIPTION = "description" - NAME = "name" - TAG_KEY = "tag-key" - TAG_VALUE = "tag-value" - PRIMARY_REGION = "primary-region" - OWNING_SERVICE = "owning-service" - ALL = "all" - -@dataclass(kw_only=True) -class GetRandomPasswordInput(_SerdeShape): - """Dataclass for GetRandomPasswordInput structure.""" +class FilterDict(TypedDict, total=False): + """Dictionary form of `Filter`.""" - password_length: int | None = ... - """ - The length of the password. If you don't include this parameter, the - default length is 32 characters. - """ - exclude_characters: str | None = ... - """A string of the characters that you don't want in the password.""" - exclude_numbers: bool | None = ... - """ - Specifies whether to exclude numbers from the password. If you don't - include this switch, the password can contain numbers. + key: str | None + """ + The following are keys you can use: + + - **description**: Prefix match, not case-sensitive. + + - **name**: Prefix match, case-sensitive. + + - **tag-key**: Prefix match, case-sensitive. + + - **tag-value**: Prefix match, case-sensitive. + + - **primary-region**: Prefix match, case-sensitive. + + - **owning-service**: Prefix match, case-sensitive. + + - **all**: Breaks the filter value string into words and then searches + all attributes for matches. Not case-sensitive. + """ + values: Sequence[str] | None + """ + The keyword to filter for. + + You can prefix your search value with an exclamation mark (`!`) in order + to perform negation filters. + """ + +class FilterNameStringType(UnknownEnumMixin, StrEnum): + DESCRIPTION = "description" + NAME = "name" + TAG_KEY = "tag-key" + TAG_VALUE = "tag-value" + PRIMARY_REGION = "primary-region" + OWNING_SERVICE = "owning-service" + ALL = "all" + +@dataclass(kw_only=True) +class GetRandomPasswordInput(_SerdeShape): + """Dataclass for GetRandomPasswordInput structure.""" + + password_length: int | None = ... + """ + The length of the password. If you don't include this parameter, the + default length is 32 characters. + """ + exclude_characters: str | None = ... + """A string of the characters that you don't want in the password.""" + exclude_numbers: bool | None = ... + """ + Specifies whether to exclude numbers from the password. If you don't + include this switch, the password can contain numbers. """ exclude_punctuation: bool | None = ... """ @@ -738,6 +1038,50 @@ class GetRandomPasswordInput(_SerdeShape): password contains at least one of every character type. """ +class GetRandomPasswordInputDict(TypedDict, total=False): + """Dictionary form of `GetRandomPasswordInput`.""" + + password_length: int | None + """ + The length of the password. If you don't include this parameter, the + default length is 32 characters. + """ + exclude_characters: str | None + """A string of the characters that you don't want in the password.""" + exclude_numbers: bool | None + """ + Specifies whether to exclude numbers from the password. If you don't + include this switch, the password can contain numbers. + """ + exclude_punctuation: bool | None + """ + Specifies whether to exclude the following punctuation characters from + the password: + `` ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \\ ] ^ _ ` { | } ~ ``. + If you don't include this switch, the password can contain punctuation. + """ + exclude_uppercase: bool | None + """ + Specifies whether to exclude uppercase letters from the password. If you + don't include this switch, the password can contain uppercase letters. + """ + exclude_lowercase: bool | None + """ + Specifies whether to exclude lowercase letters from the password. If you + don't include this switch, the password can contain lowercase letters. + """ + include_space: bool | None + """ + Specifies whether to include the space character. If you include this + switch, the password can contain space characters. + """ + require_each_included_type: bool | None + """ + Specifies whether to include at least one upper and lowercase letter, + one number, and one punctuation. If you don't include this switch, the + password contains at least one of every character type. + """ + @dataclass(kw_only=True) class GetRandomPasswordOutput(_SerdeShape): """Dataclass for GetRandomPasswordOutput structure.""" @@ -766,6 +1110,19 @@ class GetResourcePolicyInput(_SerdeShape): ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). """ +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret to retrieve the attached resource-based + policy for. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Dataclass for GetResourcePolicyOutput structure.""" @@ -825,6 +1182,41 @@ class GetSecretValueInput(_SerdeShape): Manager returns the `AWSCURRENT` version. """ +class GetSecretValueInputDict(TypedDict, total=False): + """Dictionary form of `GetSecretValueInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret to retrieve. To retrieve a secret from + another account, you must use an ARN. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + version_id: str | None + """ + The unique identifier of the version of the secret to retrieve. If you + include both this parameter and `VersionStage`, the two parameters must + refer to the same secret version. If you don't specify either a + `VersionStage` or `VersionId`, then Secrets Manager returns the + `AWSCURRENT` version. + + This value is typically a + [UUID-type](https://wikipedia.org/wiki/Universally_unique_identifier) + value with 32 hexadecimal digits. + """ + version_stage: str | None + """ + The staging label of the version of the secret to retrieve. + + Secrets Manager uses staging labels to keep track of different versions + during the rotation process. If you include both this parameter and + `VersionId`, the two parameters must refer to the same secret version. + If you don't specify either a `VersionStage` or `VersionId`, Secrets + Manager returns the `AWSCURRENT` version. + """ + @dataclass(kw_only=True) class GetSecretValueOutput(_SerdeShape): """Dataclass for GetSecretValueOutput structure.""" @@ -989,6 +1381,35 @@ class ListSecretsInput(_SerdeShape): sort_by: str | None = ... """If not specified, secrets are listed by `CreatedDate`.""" +class ListSecretsInputDict(TypedDict, total=False): + """Dictionary form of `ListSecretsInput`.""" + + include_planned_deletion: bool | None + """ + Specifies whether to include secrets scheduled for deletion. By default, + secrets scheduled for deletion aren't included. + """ + max_results: int | None + """ + The number of results to include in the response. + + If there are more results available, in the response, Secrets Manager + includes `NextToken`. To get the next results, call `ListSecrets` again + with the value from `NextToken`. + """ + next_token: str | None + """ + A token that indicates where the output should continue from, if a + previous call did not show all results. To get the next results, call + `ListSecrets` again with this value. + """ + filters: Sequence[Filter | FilterDict] | None + """The filters to apply to the list of secrets.""" + sort_order: str | None + """Secrets are listed by `CreatedDate`.""" + sort_by: str | None + """If not specified, secrets are listed by `CreatedDate`.""" + @dataclass(kw_only=True) class ListSecretsOutput(_SerdeShape): """Dataclass for ListSecretsOutput structure.""" @@ -1045,6 +1466,39 @@ class ListSecretVersionIdsInput(_SerdeShape): default, versions without staging labels aren't included. """ +class ListSecretVersionIdsInputDict(TypedDict, total=False): + """Dictionary form of `ListSecretVersionIdsInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret whose versions you want to list. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + max_results: int | None + """ + The number of results to include in the response. + + If there are more results available, in the response, Secrets Manager + includes `NextToken`. To get the next results, call + `ListSecretVersionIds` again with the value from `NextToken`. + """ + next_token: str | None + """ + A token that indicates where the output should continue from, if a + previous call did not show all results. To get the next results, call + `ListSecretVersionIds` again with this value. + """ + include_deprecated: bool | None + """ + Specifies whether to include versions of secrets that don't have any + staging labels attached to them. Versions without staging labels are + considered deprecated and are subject to deletion by Secrets Manager. By + default, versions without staging labels aren't included. + """ + @dataclass(kw_only=True) class ListSecretVersionIdsOutput(_SerdeShape): """Dataclass for ListSecretVersionIdsOutput structure.""" @@ -1155,6 +1609,47 @@ class PutResourcePolicyInput(_SerdeShape): secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/determine-acccess_examine-iam-policies.html). """ +class PutResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePolicyInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret to attach the resource-based policy. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + resource_policy: Required[str] + """ + A JSON-formatted string for an Amazon Web Services resource-based + policy. For example policies, see [Permissions policy + examples](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html). + """ + block_public_policy: bool | None + """ + Specifies whether to block resource-based policies that allow broad + access to the secret, for example those that use a wildcard for the + principal. By default, public policies aren't blocked. + + Warning: + Resource policy validation and the BlockPublicPolicy parameter help + protect your resources by preventing public access from being granted + through the resource policies that are directly attached to your + secrets. In addition to using these features, carefully inspect the + following policies to confirm that they do not grant public access: + + - Identity-based policies attached to associated Amazon Web Services + principals (for example, IAM roles) + + - Resource-based policies attached to associated Amazon Web Services + resources (for example, Key Management Service (KMS) keys) + + To review permissions to your secrets, see [Determine who has + permissions to your + secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/determine-acccess_examine-iam-policies.html). + """ + @dataclass(kw_only=True) class PutResourcePolicyOutput(_SerdeShape): """Dataclass for PutResourcePolicyOutput structure.""" @@ -1283,6 +1778,117 @@ class PutSecretValueInput(_SerdeShape): log entries, you must also avoid logging the information in this field. """ +class PutSecretValueInputDict(TypedDict, total=False): + """Dictionary form of `PutSecretValueInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret to add a new version to. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + + If the secret doesn't already exist, use `CreateSecret` instead. + """ + client_request_token: str | None + """ + A unique identifier for the new version of the secret. + + Note: + If you use the Amazon Web Services CLI or one of the Amazon Web Services + SDKs to call this operation, then you can leave this parameter empty. + The CLI or SDK generates a random UUID for you and includes it as the + value for this parameter in the request. + + If you generate a raw HTTP request to the Secrets Manager service + endpoint, then you must generate a `ClientRequestToken` and include it + in the request. + + This value helps ensure idempotency. Secrets Manager uses this value to + prevent the accidental creation of duplicate versions if there are + failures and retries during a rotation. We recommend that you generate a + [UUID-type](https://wikipedia.org/wiki/Universally_unique_identifier) + value to ensure uniqueness of your versions within the specified secret. + + - If the `ClientRequestToken` value isn't already associated with a + version of the secret then a new version of the secret is created. + + - If a version with this value already exists and that version's + `SecretString` or `SecretBinary` values are the same as those in the + request then the request is ignored. The operation is idempotent. + + - If a version with this value already exists and the version of the + `SecretString` and `SecretBinary` values are different from those in + the request, then the request fails because you can't modify a secret + version. You can only create new versions to store new secret values. + + This value becomes the `VersionId` of the new version. + + This field is autopopulated if not provided. + """ + secret_binary: bytes | None + """ + The binary data to encrypt and store in the new version of the secret. + To use this parameter in the command-line tools, we recommend that you + store your binary data in a file and then pass the contents of the file + as a parameter. + + You must include `SecretBinary` or `SecretString`, but not both. + + You can't access this value from the Secrets Manager console. + + Sensitive: This field contains sensitive information, so the service + does not include it in CloudTrail log entries. If you create your own + log entries, you must also avoid logging the information in this field. + """ + secret_string: str | None + """ + The text to encrypt and store in the new version of the secret. + + You must include `SecretBinary` or `SecretString`, but not both. + + We recommend you create the secret string as JSON key/value pairs, as + shown in the example. + + Sensitive: This field contains sensitive information, so the service + does not include it in CloudTrail log entries. If you create your own + log entries, you must also avoid logging the information in this field. + """ + version_stages: Sequence[str] | None + """ + A list of staging labels to attach to this version of the secret. + Secrets Manager uses staging labels to track versions of a secret + through the rotation process. + + If you specify a staging label that's already associated with a + different version of the same secret, then Secrets Manager removes the + label from the other version and attaches it to this version. If you + specify `AWSCURRENT`, and it is already attached to another version, + then Secrets Manager also moves the staging label `AWSPREVIOUS` to the + version that `AWSCURRENT` was removed from. + + If you don't include `VersionStages`, then Secrets Manager + automatically moves the staging label `AWSCURRENT` to this version. + """ + rotation_token: str | None + """ + A unique identifier that indicates the source of the request. Required + for secret rotations using an IAM assumed role or cross-account + rotation, in which you rotate a secret in one account by using a Lambda + rotation function in another account. In both cases, the rotation + function assumes an IAM role to call Secrets Manager, and then Secrets + Manager validates the identity using the token. For more information, + see [How rotation + works](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html) + and [Rotation by Lambda + functions](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_lambda). + + Sensitive: This field contains sensitive information, so the service + does not include it in CloudTrail log entries. If you create your own + log entries, you must also avoid logging the information in this field. + """ + @dataclass(kw_only=True) class PutSecretValueOutput(_SerdeShape): """Dataclass for PutSecretValueOutput structure.""" @@ -1316,6 +1922,14 @@ class RemoveRegionsFromReplicationInput(_SerdeShape): remove_replica_regions: list[str] | None = ... """The Regions of the replicas to remove.""" +class RemoveRegionsFromReplicationInputDict(TypedDict, total=False): + """Dictionary form of `RemoveRegionsFromReplicationInput`.""" + + secret_id: Required[str] + """The ARN or name of the secret.""" + remove_replica_regions: Required[Sequence[str]] + """The Regions of the replicas to remove.""" + @dataclass(kw_only=True) class RemoveRegionsFromReplicationOutput(_SerdeShape): """Dataclass for RemoveRegionsFromReplicationOutput structure.""" @@ -1350,6 +1964,20 @@ class ReplicaRegionType(_SerdeShape): don't include this field, Secrets Manager uses `aws/secretsmanager`. """ +class ReplicaRegionTypeDict(TypedDict, total=False): + """Dictionary form of `ReplicaRegionType`.""" + + region: str | None + """ + A Region code. For a list of Region codes, see [Name and code of + Regions](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). + """ + kms_key_id: str | None + """ + The ARN, key ID, or alias of the KMS key to encrypt the secret. If you + don't include this field, Secrets Manager uses `aws/secretsmanager`. + """ + @dataclass(kw_only=True) class ReplicateSecretToRegionsInput(_SerdeShape): """Dataclass for ReplicateSecretToRegionsInput structure.""" @@ -1364,6 +1992,19 @@ class ReplicateSecretToRegionsInput(_SerdeShape): destination Region. By default, secrets aren't overwritten. """ +class ReplicateSecretToRegionsInputDict(TypedDict, total=False): + """Dictionary form of `ReplicateSecretToRegionsInput`.""" + + secret_id: Required[str] + """The ARN or name of the secret to replicate.""" + add_replica_regions: Required[Sequence[ReplicaRegionType | ReplicaRegionTypeDict]] + """A list of Regions in which to replicate the secret.""" + force_overwrite_replica_secret: bool | None + """ + Specifies whether to overwrite a secret with the same name in the + destination Region. By default, secrets aren't overwritten. + """ + @dataclass(kw_only=True) class ReplicateSecretToRegionsOutput(_SerdeShape): """Dataclass for ReplicateSecretToRegionsOutput structure.""" @@ -1441,6 +2082,18 @@ class RestoreSecretInput(_SerdeShape): ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). """ +class RestoreSecretInputDict(TypedDict, total=False): + """Dictionary form of `RestoreSecretInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret to restore. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + @dataclass(kw_only=True) class RestoreSecretOutput(_SerdeShape): """Dataclass for RestoreSecretOutput structure.""" @@ -1457,11 +2110,117 @@ class RestoreSecretOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class RotateSecretInput(_SerdeShape): - """Dataclass for RotateSecretInput structure.""" +@dataclass(kw_only=True) +class RotateSecretInput(_SerdeShape): + """Dataclass for RotateSecretInput structure.""" + + secret_id: str | None = ... + """ + The ARN or name of the secret to rotate. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + client_request_token: str | None = ... + """ + A unique identifier for the new version of the secret. You only need to + specify this value if you implement your own retry logic and you want to + ensure that Secrets Manager doesn't attempt to create a secret version + twice. + + Note: + If you use the Amazon Web Services CLI or one of the Amazon Web Services + SDKs to call this operation, then you can leave this parameter empty. + The CLI or SDK generates a random UUID for you and includes it as the + value for this parameter in the request. + + If you generate a raw HTTP request to the Secrets Manager service + endpoint, then you must generate a `ClientRequestToken` and include it + in the request. + + This value helps ensure idempotency. Secrets Manager uses this value to + prevent the accidental creation of duplicate versions if there are + failures and retries during a rotation. We recommend that you generate a + [UUID-type](https://wikipedia.org/wiki/Universally_unique_identifier) + value to ensure uniqueness of your versions within the specified secret. + + This field is autopopulated if not provided. + """ + rotation_lambda_arn: str | None = ... + """ + For secrets that use a Lambda rotation function to rotate, the ARN of + the Lambda rotation function. + + For secrets that use *managed rotation*, omit this field. For more + information, see [Managed + rotation](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_managed.html) + in the *Secrets Manager User Guide*. + """ + rotation_rules: RotationRulesType | None = ... + """ + A structure that defines the rotation configuration for this secret. + + Warning: + When changing an existing rotation schedule and setting + `RotateImmediately` to `false`: + + - If using `AutomaticallyAfterDays` or a `ScheduleExpression` with + `rate()`, the previously scheduled rotation might still occur. + + - To prevent unintended rotations, use a `ScheduleExpression` with + `cron()` for granular control over rotation windows. + """ + external_secret_rotation_metadata: ( + list[ExternalSecretRotationMetadataItem] | None + ) = ... + """ + The metadata needed to successfully rotate a managed external secret. A + list of key value pairs in JSON format specified by the partner. For + more information about the required information, see [Using Secrets + Manager managed external + secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/managed-external-secrets.html) + """ + external_secret_rotation_role_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the role that allows Secrets Manager + to rotate a secret held by a third-party partner. For more information, + see [Security and + permissions](https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-security.html). + """ + rotate_immediately: bool | None = ... + """ + Specifies whether to rotate the secret immediately or wait until the + next scheduled rotation window. The rotation schedule is defined in + RotateSecretRequest$RotationRules. + + The default for `RotateImmediately` is `true`. If you don't specify + this value, Secrets Manager rotates the secret immediately. + + If you set `RotateImmediately` to `false`, Secrets Manager tests the + rotation configuration by running the [`testSecret` + step](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html) + of the Lambda rotation function. This test creates an `AWSPENDING` + version of the secret and then removes it. + + When changing an existing rotation schedule and setting + `RotateImmediately` to `false`: + + - If using `AutomaticallyAfterDays` or a `ScheduleExpression` with + `rate()`, the previously scheduled rotation might still occur. + + - To prevent unintended rotations, use a `ScheduleExpression` with + `cron()` for granular control over rotation windows. + + Rotation is an asynchronous process. For more information, see [How + rotation + works](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html). + """ + +class RotateSecretInputDict(TypedDict, total=False): + """Dictionary form of `RotateSecretInput`.""" - secret_id: str | None = ... + secret_id: Required[str] """ The ARN or name of the secret to rotate. @@ -1469,7 +2228,7 @@ class RotateSecretInput(_SerdeShape): partial ARN. See [Finding a secret from a partial ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). """ - client_request_token: str | None = ... + client_request_token: str | None """ A unique identifier for the new version of the secret. You only need to specify this value if you implement your own retry logic and you want to @@ -1494,7 +2253,7 @@ class RotateSecretInput(_SerdeShape): This field is autopopulated if not provided. """ - rotation_lambda_arn: str | None = ... + rotation_lambda_arn: str | None """ For secrets that use a Lambda rotation function to rotate, the ARN of the Lambda rotation function. @@ -1504,7 +2263,7 @@ class RotateSecretInput(_SerdeShape): rotation](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_managed.html) in the *Secrets Manager User Guide*. """ - rotation_rules: RotationRulesType | None = ... + rotation_rules: RotationRulesType | RotationRulesTypeDict | None """ A structure that defines the rotation configuration for this secret. @@ -1519,8 +2278,11 @@ class RotateSecretInput(_SerdeShape): `cron()` for granular control over rotation windows. """ external_secret_rotation_metadata: ( - list[ExternalSecretRotationMetadataItem] | None - ) = ... + Sequence[ + ExternalSecretRotationMetadataItem | ExternalSecretRotationMetadataItemDict + ] + | None + ) """ The metadata needed to successfully rotate a managed external secret. A list of key value pairs in JSON format specified by the partner. For @@ -1528,14 +2290,14 @@ class RotateSecretInput(_SerdeShape): Manager managed external secrets](https://docs.aws.amazon.com/secretsmanager/latest/userguide/managed-external-secrets.html) """ - external_secret_rotation_role_arn: str | None = ... + external_secret_rotation_role_arn: str | None """ The Amazon Resource Name (ARN) of the role that allows Secrets Manager to rotate a secret held by a third-party partner. For more information, see [Security and permissions](https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-security.html). """ - rotate_immediately: bool | None = ... + rotate_immediately: bool | None """ Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window. The rotation schedule is defined in @@ -1643,6 +2405,66 @@ class RotationRulesType(_SerdeShape): extend into the next UTC day or into the next rotation window. """ +class RotationRulesTypeDict(TypedDict, total=False): + """Dictionary form of `RotationRulesType`.""" + + automatically_after_days: int | None + """ + The number of days between rotations of the secret. You can use this + value to check that your secret meets your compliance guidelines for how + often secrets must be rotated. If you use this field to set the rotation + schedule, Secrets Manager calculates the next rotation date based on the + previous rotation. Manually updating the secret value by calling + `PutSecretValue` or `UpdateSecret` is considered a valid rotation. + + In `DescribeSecret` and `ListSecrets`, this value is calculated from the + rotation schedule after every successful rotation. In `RotateSecret`, + you can set the rotation schedule in `RotationRules` with + `AutomaticallyAfterDays` or `ScheduleExpression`, but not both. To set a + rotation schedule in hours, use `ScheduleExpression`. + """ + duration: str | None + """ + The length of the rotation window in hours, for example `3h` for a three + hour window. Secrets Manager rotates your secret at any time during this + window. The window must not extend into the next rotation window or the + next UTC day. The window starts according to the `ScheduleExpression`. + If you don't specify a `Duration`, for a `ScheduleExpression` in hours, + the window automatically closes after one hour. For a + `ScheduleExpression` in days, the window automatically closes at the end + of the UTC day. For more information, including examples, see [Schedule + expressions in Secrets Manager + rotation](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html) + in the *Secrets Manager Users Guide*. + """ + schedule_expression: str | None + """ + A `cron()` or `rate()` expression that defines the schedule for rotating + your secret. Secrets Manager rotation schedules use UTC time zone. + Secrets Manager rotates your secret any time during a rotation window. + + Secrets Manager `rate()` expressions represent the interval in hours or + days that you want to rotate your secret, for example `rate(12 hours)` + or `rate(10 days)`. You can rotate a secret as often as every four + hours. If you use a `rate()` expression, the rotation window starts at + midnight. For a rate in hours, the default rotation window closes after + one hour. For a rate in days, the default rotation window closes at the + end of the day. You can set the `Duration` to change the rotation + window. The rotation window must not extend into the next UTC day or + into the next rotation window. + + You can use a `cron()` expression to create a rotation schedule that is + more detailed than a rotation interval. For more information, including + examples, see [Schedule expressions in Secrets Manager + rotation](https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html) + in the *Secrets Manager Users Guide*. For a cron expression that + represents a schedule in hours, the default rotation window closes after + one hour. For a cron expression that represents a schedule in days, the + default rotation window closes at the end of the day. You can set the + `Duration` to change the rotation window. The rotation window must not + extend into the next UTC day or into the next rotation window. + """ + @dataclass(kw_only=True) class SecretListEntry(_SerdeShape): """ @@ -1840,6 +2662,16 @@ class StopReplicationToReplicaInput(_SerdeShape): replica Region. """ +class StopReplicationToReplicaInputDict(TypedDict, total=False): + """Dictionary form of `StopReplicationToReplicaInput`.""" + + secret_id: Required[str] + """ + The name of the secret or the replica ARN. The replica ARN is the same + as the original primary secret ARN expect the Region is changed to the + replica Region. + """ + @dataclass(kw_only=True) class StopReplicationToReplicaOutput(_SerdeShape): """Dataclass for StopReplicationToReplicaOutput structure.""" @@ -1866,6 +2698,14 @@ class Tag(_SerdeShape): value: str | None = ... """The string value associated with the key of the tag.""" +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: str | None + """The key identifier, or name, of the tag.""" + value: str | None + """The string value associated with the key of the tag.""" + @dataclass(kw_only=True) class TagResourceInput(_SerdeShape): """Dataclass for TagResourceInput structure.""" @@ -1891,6 +2731,30 @@ class TagResourceInput(_SerdeShape): in the Amazon Web Services CLI User Guide. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + secret_id: Required[str] + """ + The identifier for the secret to attach tags to. You can specify either + the Amazon Resource Name (ARN) or the friendly name of the secret. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + tags: Required[Sequence[Tag | TagDict]] + """ + The tags to attach to the secret as a JSON text string argument. Each + element in the list consists of a `Key` and a `Value`. + + For storing multiple values, we recommend that you use a JSON text + string argument and specify key/value pairs. For more information, see + [Specifying parameter values for the Amazon Web Services + CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters.html) + in the Amazon Web Services CLI User Guide. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -1929,6 +2793,31 @@ class UntagResourceInput(_SerdeShape): in the Amazon Web Services CLI User Guide. """ +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + tag_keys: Required[Sequence[str]] + """ + A list of tag key names to remove from the secret. You don't specify + the value. Both the key and its associated value are removed. + + This parameter requires a JSON text string argument. + + For storing multiple values, we recommend that you use a JSON text + string argument and specify key/value pairs. For more information, see + [Specifying parameter values for the Amazon Web Services + CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters.html) + in the Amazon Web Services CLI User Guide. + """ + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -2043,6 +2932,107 @@ class UpdateSecretInput(_SerdeShape): partners](https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partners.html). """ +class UpdateSecretInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSecretInput`.""" + + secret_id: Required[str] + """ + The ARN or name of the secret. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + client_request_token: str | None + """ + If you include `SecretString` or `SecretBinary`, then Secrets Manager + creates a new version for the secret, and this parameter specifies the + unique identifier for the new version. + + Note: + If you use the Amazon Web Services CLI or one of the Amazon Web Services + SDKs to call this operation, then you can leave this parameter empty. + The CLI or SDK generates a random UUID for you and includes it as the + value for this parameter in the request. + + If you generate a raw HTTP request to the Secrets Manager service + endpoint, then you must generate a `ClientRequestToken` and include it + in the request. + + This value helps ensure idempotency. Secrets Manager uses this value to + prevent the accidental creation of duplicate versions if there are + failures and retries during a rotation. We recommend that you generate a + [UUID-type](https://wikipedia.org/wiki/Universally_unique_identifier) + value to ensure uniqueness of your versions within the specified secret. + + This field is autopopulated if not provided. + """ + description: str | None + """The description of the secret.""" + kms_key_id: str | None + """ + The ARN, key ID, or alias of the KMS key that Secrets Manager uses to + encrypt new secret versions as well as any existing versions with the + staging labels `AWSCURRENT`, `AWSPENDING`, or `AWSPREVIOUS`. If you + don't have `kms:Encrypt` permission to the new key, Secrets Manager + does not re-encrypt existing secret versions with the new key. For more + information about versions and staging labels, see [Concepts: + Version](https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version). + + A key alias is always prefixed by `alias/`, for example + `alias/aws/secretsmanager`. For more information, see [About + aliases](https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html). + + If you set this to an empty string, Secrets Manager uses the Amazon Web + Services managed key `aws/secretsmanager`. If this key doesn't already + exist in your account, then Secrets Manager creates it for you + automatically. All users and roles in the Amazon Web Services account + automatically have access to use `aws/secretsmanager`. Creating + `aws/secretsmanager` can result in a one-time significant delay in + returning the result. + + Warning: + You can only use the Amazon Web Services managed key + `aws/secretsmanager` if you call this operation using credentials from + the same Amazon Web Services account that owns the secret. If the secret + is in a different account, then you must use a customer managed key and + provide the ARN of that KMS key in this field. The user making the call + must have permissions to both the secret and the KMS key in their + respective accounts. + """ + secret_binary: bytes | None + """ + The binary data to encrypt and store in the new version of the secret. + We recommend that you store your binary data in a file and then pass the + contents of the file as a parameter. + + Either `SecretBinary` or `SecretString` must have a value, but not both. + + You can't access this parameter in the Secrets Manager console. + + Sensitive: This field contains sensitive information, so the service + does not include it in CloudTrail log entries. If you create your own + log entries, you must also avoid logging the information in this field. + """ + secret_string: str | None + """ + The text data to encrypt and store in the new version of the secret. We + recommend you use a JSON structure of key/value pairs for your secret + value. + + Either `SecretBinary` or `SecretString` must have a value, but not both. + + Sensitive: This field contains sensitive information, so the service + does not include it in CloudTrail log entries. If you create your own + log entries, you must also avoid logging the information in this field. + """ + type: str | None + """ + The exact string that identifies the third-party partner that holds the + external secret. For more information, see [Managed external secret + partners](https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partners.html). + """ + @dataclass(kw_only=True) class UpdateSecretOutput(_SerdeShape): """Dataclass for UpdateSecretOutput structure.""" @@ -2098,6 +3088,38 @@ class UpdateSecretVersionStageInput(_SerdeShape): secret, then you must also specify the `RemoveFromVersionId` parameter. """ +class UpdateSecretVersionStageInputDict(TypedDict, total=False): + """Dictionary form of `UpdateSecretVersionStageInput`.""" + + secret_id: Required[str] + """ + The ARN or the name of the secret with the version and staging labelsto + modify. + + For an ARN, we recommend that you specify a complete ARN rather than a + partial ARN. See [Finding a secret from a partial + ARN](https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen). + """ + version_stage: Required[str] + """The staging label to add to this version.""" + remove_from_version_id: str | None + """ + The ID of the version that the staging label is to be removed from. If + the staging label you are trying to attach to one version is already + attached to a different version, then you must include this parameter + and specify the version that the label is to be removed from. If the + label is attached and you either do not specify this parameter, or the + version ID does not match, then the operation fails. + """ + move_to_version_id: str | None + """ + The ID of the version to add the staging label to. To remove a label + from a version, then do not specify this parameter. + + If the staging label is already attached to a different version of the + secret, then you must also specify the `RemoveFromVersionId` parameter. + """ + @dataclass(kw_only=True) class UpdateSecretVersionStageOutput(_SerdeShape): """Dataclass for UpdateSecretVersionStageOutput structure.""" @@ -2132,6 +3154,23 @@ class ValidateResourcePolicyInput(_SerdeShape): examples](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html). """ +class ValidateResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `ValidateResourcePolicyInput`.""" + + secret_id: str | None + """ + The ARN or name of the secret with the resource-based policy you want to + validate. + """ + resource_policy: Required[str] + """ + A JSON-formatted string that contains an Amazon Web Services + resource-based policy. The policy in the string identifies who can + access or manage this secret and its versions. For example policies, see + [Permissions policy + examples](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_examples.html). + """ + @dataclass(kw_only=True) class ValidateResourcePolicyOutput(_SerdeShape): """Dataclass for ValidateResourcePolicyOutput structure.""" diff --git a/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/py.typed b/clients/aws-sdk-secrets-manager/src/aws_sdk_secrets_manager/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-secrets-manager/tests/_typecheck.py b/clients/aws-sdk-secrets-manager/tests/_typecheck.py index 3c9c352f8..adfc81179 100644 --- a/clients/aws-sdk-secrets-manager/tests/_typecheck.py +++ b/clients/aws-sdk-secrets-manager/tests/_typecheck.py @@ -2,69 +2,100 @@ from typing import Any +from aws_sdk_secrets_manager.aio.client import AsyncSecretsManagerClient +from aws_sdk_secrets_manager.client import SecretsManagerClient from aws_sdk_secrets_manager.models import ( APIErrorType, BatchGetSecretValueInput, + BatchGetSecretValueInputDict, BatchGetSecretValueOutput, CancelRotateSecretInput, + CancelRotateSecretInputDict, CancelRotateSecretOutput, CreateSecretInput, + CreateSecretInputDict, CreateSecretOutput, DeleteResourcePolicyInput, + DeleteResourcePolicyInputDict, DeleteResourcePolicyOutput, DeleteSecretInput, + DeleteSecretInputDict, DeleteSecretOutput, DescribeSecretInput, + DescribeSecretInputDict, DescribeSecretOutput, ExternalSecretRotationMetadataItem, + ExternalSecretRotationMetadataItemDict, Filter, + FilterDict, GetRandomPasswordInput, + GetRandomPasswordInputDict, GetRandomPasswordOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, GetSecretValueInput, + GetSecretValueInputDict, GetSecretValueOutput, ListSecretVersionIdsInput, + ListSecretVersionIdsInputDict, ListSecretVersionIdsOutput, ListSecretsInput, + ListSecretsInputDict, ListSecretsOutput, PutResourcePolicyInput, + PutResourcePolicyInputDict, PutResourcePolicyOutput, PutSecretValueInput, + PutSecretValueInputDict, PutSecretValueOutput, RemoveRegionsFromReplicationInput, + RemoveRegionsFromReplicationInputDict, RemoveRegionsFromReplicationOutput, ReplicaRegionType, + ReplicaRegionTypeDict, ReplicateSecretToRegionsInput, + ReplicateSecretToRegionsInputDict, ReplicateSecretToRegionsOutput, ReplicationStatusType, RestoreSecretInput, + RestoreSecretInputDict, RestoreSecretOutput, RotateSecretInput, + RotateSecretInputDict, RotateSecretOutput, RotationRulesType, + RotationRulesTypeDict, SecretListEntry, SecretValueEntry, SecretVersionsListEntry, StopReplicationToReplicaInput, + StopReplicationToReplicaInputDict, StopReplicationToReplicaOutput, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, UpdateSecretInput, + UpdateSecretInputDict, UpdateSecretOutput, UpdateSecretVersionStageInput, + UpdateSecretVersionStageInputDict, UpdateSecretVersionStageOutput, ValidateResourcePolicyInput, + ValidateResourcePolicyInputDict, ValidateResourcePolicyOutput, ValidationErrorsEntry, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -125,3 +156,255 @@ ValidateResourcePolicyInput() ValidateResourcePolicyOutput() ValidationErrorsEntry() +_params_0: BatchGetSecretValueInputDict = {} +_params_1: CancelRotateSecretInputDict = {"secret_id": _} +_params_2: CreateSecretInputDict = {"name": _} +_params_3: DeleteResourcePolicyInputDict = {"secret_id": _} +_params_4: DeleteSecretInputDict = {"secret_id": _} +_params_5: DescribeSecretInputDict = {"secret_id": _} +_params_6: ExternalSecretRotationMetadataItemDict = {} +_params_7: FilterDict = {} +_params_8: GetRandomPasswordInputDict = {} +_params_9: GetResourcePolicyInputDict = {"secret_id": _} +_params_10: GetSecretValueInputDict = {"secret_id": _} +_params_11: ListSecretsInputDict = {} +_params_12: ListSecretVersionIdsInputDict = {"secret_id": _} +_params_13: PutResourcePolicyInputDict = {"secret_id": _, "resource_policy": _} +_params_14: PutSecretValueInputDict = {"secret_id": _} +_params_15: RemoveRegionsFromReplicationInputDict = { + "secret_id": _, + "remove_replica_regions": _, +} +_params_16: ReplicaRegionTypeDict = {} +_params_17: ReplicateSecretToRegionsInputDict = { + "secret_id": _, + "add_replica_regions": _, +} +_params_18: RestoreSecretInputDict = {"secret_id": _} +_params_19: RotateSecretInputDict = {"secret_id": _} +_params_20: RotationRulesTypeDict = {} +_params_21: StopReplicationToReplicaInputDict = {"secret_id": _} +_params_22: TagDict = {} +_params_23: TagResourceInputDict = {"secret_id": _, "tags": _} +_params_24: UntagResourceInputDict = {"secret_id": _, "tag_keys": _} +_params_25: UpdateSecretInputDict = {"secret_id": _} +_params_26: UpdateSecretVersionStageInputDict = {"secret_id": _, "version_stage": _} +_params_27: ValidateResourcePolicyInputDict = {"resource_policy": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncSecretsManagerClient) -> None: + pass + await client.batch_get_secret_value() + await client.batch_get_secret_value(**_request(BatchGetSecretValueInputDict)) + await client.batch_get_secret_value(_request(BatchGetSecretValueInput)) + await client.batch_get_secret_value(_request(BatchGetSecretValueInputDict)) + await client.cancel_rotate_secret(secret_id=_) + await client.cancel_rotate_secret(**_request(CancelRotateSecretInputDict)) + await client.cancel_rotate_secret(_request(CancelRotateSecretInput)) + await client.cancel_rotate_secret(_request(CancelRotateSecretInputDict)) + await client.create_secret(name=_) + await client.create_secret(**_request(CreateSecretInputDict)) + await client.create_secret(_request(CreateSecretInput)) + await client.create_secret(_request(CreateSecretInputDict)) + await client.delete_resource_policy(secret_id=_) + await client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + await client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + await client.delete_secret(secret_id=_) + await client.delete_secret(**_request(DeleteSecretInputDict)) + await client.delete_secret(_request(DeleteSecretInput)) + await client.delete_secret(_request(DeleteSecretInputDict)) + await client.describe_secret(secret_id=_) + await client.describe_secret(**_request(DescribeSecretInputDict)) + await client.describe_secret(_request(DescribeSecretInput)) + await client.describe_secret(_request(DescribeSecretInputDict)) + await client.get_random_password() + await client.get_random_password(**_request(GetRandomPasswordInputDict)) + await client.get_random_password(_request(GetRandomPasswordInput)) + await client.get_random_password(_request(GetRandomPasswordInputDict)) + await client.get_resource_policy(secret_id=_) + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.get_secret_value(secret_id=_) + await client.get_secret_value(**_request(GetSecretValueInputDict)) + await client.get_secret_value(_request(GetSecretValueInput)) + await client.get_secret_value(_request(GetSecretValueInputDict)) + await client.list_secrets() + await client.list_secrets(**_request(ListSecretsInputDict)) + await client.list_secrets(_request(ListSecretsInput)) + await client.list_secrets(_request(ListSecretsInputDict)) + await client.list_secret_version_ids(secret_id=_) + await client.list_secret_version_ids(**_request(ListSecretVersionIdsInputDict)) + await client.list_secret_version_ids(_request(ListSecretVersionIdsInput)) + await client.list_secret_version_ids(_request(ListSecretVersionIdsInputDict)) + await client.put_resource_policy(secret_id=_, resource_policy=_) + await client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + await client.put_resource_policy(_request(PutResourcePolicyInput)) + await client.put_resource_policy(_request(PutResourcePolicyInputDict)) + await client.put_secret_value(secret_id=_) + await client.put_secret_value(**_request(PutSecretValueInputDict)) + await client.put_secret_value(_request(PutSecretValueInput)) + await client.put_secret_value(_request(PutSecretValueInputDict)) + await client.remove_regions_from_replication(secret_id=_, remove_replica_regions=_) + await client.remove_regions_from_replication( + **_request(RemoveRegionsFromReplicationInputDict) + ) + await client.remove_regions_from_replication( + _request(RemoveRegionsFromReplicationInput) + ) + await client.remove_regions_from_replication( + _request(RemoveRegionsFromReplicationInputDict) + ) + await client.replicate_secret_to_regions(secret_id=_, add_replica_regions=_) + await client.replicate_secret_to_regions( + **_request(ReplicateSecretToRegionsInputDict) + ) + await client.replicate_secret_to_regions(_request(ReplicateSecretToRegionsInput)) + await client.replicate_secret_to_regions( + _request(ReplicateSecretToRegionsInputDict) + ) + await client.restore_secret(secret_id=_) + await client.restore_secret(**_request(RestoreSecretInputDict)) + await client.restore_secret(_request(RestoreSecretInput)) + await client.restore_secret(_request(RestoreSecretInputDict)) + await client.rotate_secret(secret_id=_) + await client.rotate_secret(**_request(RotateSecretInputDict)) + await client.rotate_secret(_request(RotateSecretInput)) + await client.rotate_secret(_request(RotateSecretInputDict)) + await client.stop_replication_to_replica(secret_id=_) + await client.stop_replication_to_replica( + **_request(StopReplicationToReplicaInputDict) + ) + await client.stop_replication_to_replica(_request(StopReplicationToReplicaInput)) + await client.stop_replication_to_replica( + _request(StopReplicationToReplicaInputDict) + ) + await client.tag_resource(secret_id=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.untag_resource(secret_id=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.update_secret(secret_id=_) + await client.update_secret(**_request(UpdateSecretInputDict)) + await client.update_secret(_request(UpdateSecretInput)) + await client.update_secret(_request(UpdateSecretInputDict)) + await client.update_secret_version_stage(secret_id=_, version_stage=_) + await client.update_secret_version_stage( + **_request(UpdateSecretVersionStageInputDict) + ) + await client.update_secret_version_stage(_request(UpdateSecretVersionStageInput)) + await client.update_secret_version_stage( + _request(UpdateSecretVersionStageInputDict) + ) + await client.validate_resource_policy(resource_policy=_) + await client.validate_resource_policy(**_request(ValidateResourcePolicyInputDict)) + await client.validate_resource_policy(_request(ValidateResourcePolicyInput)) + await client.validate_resource_policy(_request(ValidateResourcePolicyInputDict)) + + +def check_sync_calls(client: SecretsManagerClient) -> None: + pass + client.batch_get_secret_value() + client.batch_get_secret_value(**_request(BatchGetSecretValueInputDict)) + client.batch_get_secret_value(_request(BatchGetSecretValueInput)) + client.batch_get_secret_value(_request(BatchGetSecretValueInputDict)) + client.cancel_rotate_secret(secret_id=_) + client.cancel_rotate_secret(**_request(CancelRotateSecretInputDict)) + client.cancel_rotate_secret(_request(CancelRotateSecretInput)) + client.cancel_rotate_secret(_request(CancelRotateSecretInputDict)) + client.create_secret(name=_) + client.create_secret(**_request(CreateSecretInputDict)) + client.create_secret(_request(CreateSecretInput)) + client.create_secret(_request(CreateSecretInputDict)) + client.delete_resource_policy(secret_id=_) + client.delete_resource_policy(**_request(DeleteResourcePolicyInputDict)) + client.delete_resource_policy(_request(DeleteResourcePolicyInput)) + client.delete_resource_policy(_request(DeleteResourcePolicyInputDict)) + client.delete_secret(secret_id=_) + client.delete_secret(**_request(DeleteSecretInputDict)) + client.delete_secret(_request(DeleteSecretInput)) + client.delete_secret(_request(DeleteSecretInputDict)) + client.describe_secret(secret_id=_) + client.describe_secret(**_request(DescribeSecretInputDict)) + client.describe_secret(_request(DescribeSecretInput)) + client.describe_secret(_request(DescribeSecretInputDict)) + client.get_random_password() + client.get_random_password(**_request(GetRandomPasswordInputDict)) + client.get_random_password(_request(GetRandomPasswordInput)) + client.get_random_password(_request(GetRandomPasswordInputDict)) + client.get_resource_policy(secret_id=_) + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.get_secret_value(secret_id=_) + client.get_secret_value(**_request(GetSecretValueInputDict)) + client.get_secret_value(_request(GetSecretValueInput)) + client.get_secret_value(_request(GetSecretValueInputDict)) + client.list_secrets() + client.list_secrets(**_request(ListSecretsInputDict)) + client.list_secrets(_request(ListSecretsInput)) + client.list_secrets(_request(ListSecretsInputDict)) + client.list_secret_version_ids(secret_id=_) + client.list_secret_version_ids(**_request(ListSecretVersionIdsInputDict)) + client.list_secret_version_ids(_request(ListSecretVersionIdsInput)) + client.list_secret_version_ids(_request(ListSecretVersionIdsInputDict)) + client.put_resource_policy(secret_id=_, resource_policy=_) + client.put_resource_policy(**_request(PutResourcePolicyInputDict)) + client.put_resource_policy(_request(PutResourcePolicyInput)) + client.put_resource_policy(_request(PutResourcePolicyInputDict)) + client.put_secret_value(secret_id=_) + client.put_secret_value(**_request(PutSecretValueInputDict)) + client.put_secret_value(_request(PutSecretValueInput)) + client.put_secret_value(_request(PutSecretValueInputDict)) + client.remove_regions_from_replication(secret_id=_, remove_replica_regions=_) + client.remove_regions_from_replication( + **_request(RemoveRegionsFromReplicationInputDict) + ) + client.remove_regions_from_replication(_request(RemoveRegionsFromReplicationInput)) + client.remove_regions_from_replication( + _request(RemoveRegionsFromReplicationInputDict) + ) + client.replicate_secret_to_regions(secret_id=_, add_replica_regions=_) + client.replicate_secret_to_regions(**_request(ReplicateSecretToRegionsInputDict)) + client.replicate_secret_to_regions(_request(ReplicateSecretToRegionsInput)) + client.replicate_secret_to_regions(_request(ReplicateSecretToRegionsInputDict)) + client.restore_secret(secret_id=_) + client.restore_secret(**_request(RestoreSecretInputDict)) + client.restore_secret(_request(RestoreSecretInput)) + client.restore_secret(_request(RestoreSecretInputDict)) + client.rotate_secret(secret_id=_) + client.rotate_secret(**_request(RotateSecretInputDict)) + client.rotate_secret(_request(RotateSecretInput)) + client.rotate_secret(_request(RotateSecretInputDict)) + client.stop_replication_to_replica(secret_id=_) + client.stop_replication_to_replica(**_request(StopReplicationToReplicaInputDict)) + client.stop_replication_to_replica(_request(StopReplicationToReplicaInput)) + client.stop_replication_to_replica(_request(StopReplicationToReplicaInputDict)) + client.tag_resource(secret_id=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.untag_resource(secret_id=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.update_secret(secret_id=_) + client.update_secret(**_request(UpdateSecretInputDict)) + client.update_secret(_request(UpdateSecretInput)) + client.update_secret(_request(UpdateSecretInputDict)) + client.update_secret_version_stage(secret_id=_, version_stage=_) + client.update_secret_version_stage(**_request(UpdateSecretVersionStageInputDict)) + client.update_secret_version_stage(_request(UpdateSecretVersionStageInput)) + client.update_secret_version_stage(_request(UpdateSecretVersionStageInputDict)) + client.validate_resource_policy(resource_policy=_) + client.validate_resource_policy(**_request(ValidateResourcePolicyInputDict)) + client.validate_resource_policy(_request(ValidateResourcePolicyInput)) + client.validate_resource_policy(_request(ValidateResourcePolicyInputDict)) diff --git a/clients/aws-sdk-signin/pyproject.toml b/clients/aws-sdk-signin/pyproject.toml index 20c5241f3..9cf428161 100644 --- a/clients/aws-sdk-signin/pyproject.toml +++ b/clients/aws-sdk-signin/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-signin/src/aws_sdk_signin/_private/schemas.py b/clients/aws-sdk-signin/src/aws_sdk_signin/_private/schemas.py index 0faa6fb40..3b090f36e 100644 --- a/clients/aws-sdk-signin/src/aws_sdk_signin/_private/schemas.py +++ b/clients/aws-sdk-signin/src/aws_sdk_signin/_private/schemas.py @@ -123,7 +123,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-signin/src/aws_sdk_signin/aio/client.py b/clients/aws-sdk-signin/src/aws_sdk_signin/aio/client.py index 48892735d..ad0947455 100644 --- a/clients/aws-sdk-signin/src/aws_sdk_signin/aio/client.py +++ b/clients/aws-sdk-signin/src/aws_sdk_signin/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,31 +20,18 @@ if TYPE_CHECKING: from ..models import ( - CreateBearerTokenInput, CreateBearerTokenOutput, - CreateOAuth2TokenInput, CreateOAuth2TokenOutput, - CreateOAuth2TokenWithIAMInput, CreateOAuth2TokenWithIAMOutput, - CreateOAuth2TokenWithTokenExchangeInput, CreateOAuth2TokenWithTokenExchangeOutput, - DeleteConsoleAuthorizationConfigurationInput, DeleteConsoleAuthorizationConfigurationOutput, - DeleteResourcePermissionStatementInput, DeleteResourcePermissionStatementOutput, - GetConsoleAuthorizationConfigurationInput, GetConsoleAuthorizationConfigurationOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - IntrospectOAuth2TokenWithIAMInput, IntrospectOAuth2TokenWithIAMOutput, - ListResourcePermissionStatementsInput, ListResourcePermissionStatementsOutput, - PutConsoleAuthorizationConfigurationInput, PutConsoleAuthorizationConfigurationOutput, - PutResourcePermissionStatementInput, PutResourcePermissionStatementOutput, - RevokeOAuth2TokenWithIAMInput, RevokeOAuth2TokenWithIAMOutput, ) @@ -58,10 +45,24 @@ class AsyncSigninClient(AsyncClient[AsyncSigninConfig]): 2.0, providing secure token exchange and refresh capabilities. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def create_bearer_token( - self, input: CreateBearerTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateBearerTokenInput | _models.CreateBearerTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBearerTokenOutput: ... + + @_overload + async def create_bearer_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBearerTokenInputDict], ) -> CreateBearerTokenOutput: """ Creates a bearer token that represents your IAM credentials and can be @@ -69,8 +70,6 @@ async def create_bearer_token( for 12 hours. Args: - input: - An instance of `CreateBearerTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -80,18 +79,39 @@ async def create_bearer_token( Returns: An instance of `CreateBearerTokenOutput`. """ - return await self._invoke(input, _models.CREATE_BEARER_TOKEN, [], plugins) + async def create_bearer_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBearerTokenOutput: + return await self._invoke( + self._select_input(_models.CREATE_BEARER_TOKEN, args, kwargs), + _models.CREATE_BEARER_TOKEN, + [], + plugins, + ) + + @_overload async def create_o_auth2_token( - self, input: CreateOAuth2TokenInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateOAuth2TokenInput | _models.CreateOAuth2TokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOAuth2TokenOutput: ... + + @_overload + async def create_o_auth2_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOAuth2TokenInputDict], ) -> CreateOAuth2TokenOutput: """ Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token. Args: - input: - An instance of `CreateOAuth2TokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -101,18 +121,40 @@ async def create_o_auth2_token( Returns: An instance of `CreateOAuth2TokenOutput`. """ - return await self._invoke(input, _models.CREATE_O_AUTH2_TOKEN, [], plugins) + async def create_o_auth2_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOAuth2TokenOutput: + return await self._invoke( + self._select_input(_models.CREATE_O_AUTH2_TOKEN, args, kwargs), + _models.CREATE_O_AUTH2_TOKEN, + [], + plugins, + ) + + @_overload + async def create_o_auth2_token_with_iam( + self, + request: _models.CreateOAuth2TokenWithIAMInput + | _models.CreateOAuth2TokenWithIAMInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOAuth2TokenWithIAMOutput: ... + + @_overload async def create_o_auth2_token_with_iam( - self, input: CreateOAuth2TokenWithIAMInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOAuth2TokenWithIAMInputDict], ) -> CreateOAuth2TokenWithIAMOutput: """ Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications. Args: - input: - An instance of `CreateOAuth2TokenWithIAMInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -122,22 +164,40 @@ async def create_o_auth2_token_with_iam( Returns: An instance of `CreateOAuth2TokenWithIAMOutput`. """ + + async def create_o_auth2_token_with_iam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOAuth2TokenWithIAMOutput: return await self._invoke( - input, _models.CREATE_O_AUTH2_TOKEN_WITH_IAM, [], plugins + self._select_input(_models.CREATE_O_AUTH2_TOKEN_WITH_IAM, args, kwargs), + _models.CREATE_O_AUTH2_TOKEN_WITH_IAM, + [], + plugins, ) + @_overload + async def create_o_auth2_token_with_token_exchange( + self, + request: _models.CreateOAuth2TokenWithTokenExchangeInput + | _models.CreateOAuth2TokenWithTokenExchangeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOAuth2TokenWithTokenExchangeOutput: ... + + @_overload async def create_o_auth2_token_with_token_exchange( self, - input: CreateOAuth2TokenWithTokenExchangeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOAuth2TokenWithTokenExchangeInputDict], ) -> CreateOAuth2TokenWithTokenExchangeOutput: """ Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications. Args: - input: - An instance of `CreateOAuth2TokenWithTokenExchangeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -147,22 +207,42 @@ async def create_o_auth2_token_with_token_exchange( Returns: An instance of `CreateOAuth2TokenWithTokenExchangeOutput`. """ + + async def create_o_auth2_token_with_token_exchange( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOAuth2TokenWithTokenExchangeOutput: return await self._invoke( - input, _models.CREATE_O_AUTH2_TOKEN_WITH_TOKEN_EXCHANGE, [], plugins + self._select_input( + _models.CREATE_O_AUTH2_TOKEN_WITH_TOKEN_EXCHANGE, args, kwargs + ), + _models.CREATE_O_AUTH2_TOKEN_WITH_TOKEN_EXCHANGE, + [], + plugins, ) + @_overload async def delete_console_authorization_configuration( self, - input: DeleteConsoleAuthorizationConfigurationInput, + request: _models.DeleteConsoleAuthorizationConfigurationInput + | _models.DeleteConsoleAuthorizationConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteConsoleAuthorizationConfigurationOutput: ... + + @_overload + async def delete_console_authorization_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConsoleAuthorizationConfigurationInputDict], ) -> DeleteConsoleAuthorizationConfigurationOutput: """ Delete console authorization configuration with automatic scope detection Args: - input: - An instance of `DeleteConsoleAuthorizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -172,22 +252,42 @@ async def delete_console_authorization_configuration( Returns: An instance of `DeleteConsoleAuthorizationConfigurationOutput`. """ + + async def delete_console_authorization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConsoleAuthorizationConfigurationOutput: return await self._invoke( - input, _models.DELETE_CONSOLE_AUTHORIZATION_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_CONSOLE_AUTHORIZATION_CONFIGURATION, args, kwargs + ), + _models.DELETE_CONSOLE_AUTHORIZATION_CONFIGURATION, + [], + plugins, ) + @_overload async def delete_resource_permission_statement( self, - input: DeleteResourcePermissionStatementInput, + request: _models.DeleteResourcePermissionStatementInput + | _models.DeleteResourcePermissionStatementInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteResourcePermissionStatementOutput: ... + + @_overload + async def delete_resource_permission_statement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePermissionStatementInputDict], ) -> DeleteResourcePermissionStatementOutput: """ Remove a permission statement from the account's SignIn resource-based policy Args: - input: - An instance of `DeleteResourcePermissionStatementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -197,21 +297,41 @@ async def delete_resource_permission_statement( Returns: An instance of `DeleteResourcePermissionStatementOutput`. """ + + async def delete_resource_permission_statement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePermissionStatementOutput: return await self._invoke( - input, _models.DELETE_RESOURCE_PERMISSION_STATEMENT, [], plugins + self._select_input( + _models.DELETE_RESOURCE_PERMISSION_STATEMENT, args, kwargs + ), + _models.DELETE_RESOURCE_PERMISSION_STATEMENT, + [], + plugins, ) + @_overload async def get_console_authorization_configuration( self, - input: GetConsoleAuthorizationConfigurationInput, + request: _models.GetConsoleAuthorizationConfigurationInput + | _models.GetConsoleAuthorizationConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetConsoleAuthorizationConfigurationOutput: ... + + @_overload + async def get_console_authorization_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConsoleAuthorizationConfigurationInputDict], ) -> GetConsoleAuthorizationConfigurationOutput: """ Get console authorization configuration with automatic scope detection Args: - input: - An instance of `GetConsoleAuthorizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -221,19 +341,40 @@ async def get_console_authorization_configuration( Returns: An instance of `GetConsoleAuthorizationConfigurationOutput`. """ + + async def get_console_authorization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConsoleAuthorizationConfigurationOutput: return await self._invoke( - input, _models.GET_CONSOLE_AUTHORIZATION_CONFIGURATION, [], plugins + self._select_input( + _models.GET_CONSOLE_AUTHORIZATION_CONFIGURATION, args, kwargs + ), + _models.GET_CONSOLE_AUTHORIZATION_CONFIGURATION, + [], + plugins, ) + @_overload + async def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload async def get_resource_policy( - self, input: GetResourcePolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieve the account's consolidated SignIn resource-based policy Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -243,12 +384,34 @@ async def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return await self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + async def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return await self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload async def introspect_o_auth2_token_with_iam( self, - input: IntrospectOAuth2TokenWithIAMInput, + request: _models.IntrospectOAuth2TokenWithIAMInput + | _models.IntrospectOAuth2TokenWithIAMInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> IntrospectOAuth2TokenWithIAMOutput: ... + + @_overload + async def introspect_o_auth2_token_with_iam( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.IntrospectOAuth2TokenWithIAMInputDict], ) -> IntrospectOAuth2TokenWithIAMOutput: """ Inspects the metadata and active state of an OAuth 2.0 access token or @@ -257,8 +420,6 @@ async def introspect_o_auth2_token_with_iam( issued by AWS Sign-In. Args: - input: - An instance of `IntrospectOAuth2TokenWithIAMInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -268,22 +429,40 @@ async def introspect_o_auth2_token_with_iam( Returns: An instance of `IntrospectOAuth2TokenWithIAMOutput`. """ + + async def introspect_o_auth2_token_with_iam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> IntrospectOAuth2TokenWithIAMOutput: return await self._invoke( - input, _models.INTROSPECT_O_AUTH2_TOKEN_WITH_IAM, [], plugins + self._select_input(_models.INTROSPECT_O_AUTH2_TOKEN_WITH_IAM, args, kwargs), + _models.INTROSPECT_O_AUTH2_TOKEN_WITH_IAM, + [], + plugins, ) + @_overload + async def list_resource_permission_statements( + self, + request: _models.ListResourcePermissionStatementsInput + | _models.ListResourcePermissionStatementsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResourcePermissionStatementsOutput: ... + + @_overload async def list_resource_permission_statements( self, - input: ListResourcePermissionStatementsInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourcePermissionStatementsInputDict], ) -> ListResourcePermissionStatementsOutput: """ Retrieve all permission statements in the account's SignIn resource-based policy Args: - input: - An instance of `ListResourcePermissionStatementsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -293,22 +472,42 @@ async def list_resource_permission_statements( Returns: An instance of `ListResourcePermissionStatementsOutput`. """ + + async def list_resource_permission_statements( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourcePermissionStatementsOutput: return await self._invoke( - input, _models.LIST_RESOURCE_PERMISSION_STATEMENTS, [], plugins + self._select_input( + _models.LIST_RESOURCE_PERMISSION_STATEMENTS, args, kwargs + ), + _models.LIST_RESOURCE_PERMISSION_STATEMENTS, + [], + plugins, ) + @_overload + async def put_console_authorization_configuration( + self, + request: _models.PutConsoleAuthorizationConfigurationInput + | _models.PutConsoleAuthorizationConfigurationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutConsoleAuthorizationConfigurationOutput: ... + + @_overload async def put_console_authorization_configuration( self, - input: PutConsoleAuthorizationConfigurationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutConsoleAuthorizationConfigurationInputDict], ) -> PutConsoleAuthorizationConfigurationOutput: """ Enable console authorization configuration with automatic scope detection Args: - input: - An instance of `PutConsoleAuthorizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -318,22 +517,42 @@ async def put_console_authorization_configuration( Returns: An instance of `PutConsoleAuthorizationConfigurationOutput`. """ + + async def put_console_authorization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutConsoleAuthorizationConfigurationOutput: return await self._invoke( - input, _models.PUT_CONSOLE_AUTHORIZATION_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_CONSOLE_AUTHORIZATION_CONFIGURATION, args, kwargs + ), + _models.PUT_CONSOLE_AUTHORIZATION_CONFIGURATION, + [], + plugins, ) + @_overload + async def put_resource_permission_statement( + self, + request: _models.PutResourcePermissionStatementInput + | _models.PutResourcePermissionStatementInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutResourcePermissionStatementOutput: ... + + @_overload async def put_resource_permission_statement( self, - input: PutResourcePermissionStatementInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePermissionStatementInputDict], ) -> PutResourcePermissionStatementOutput: """ Create a permission statement in the account's SignIn resource-based policy Args: - input: - An instance of `PutResourcePermissionStatementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -343,19 +562,39 @@ async def put_resource_permission_statement( Returns: An instance of `PutResourcePermissionStatementOutput`. """ + + async def put_resource_permission_statement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePermissionStatementOutput: return await self._invoke( - input, _models.PUT_RESOURCE_PERMISSION_STATEMENT, [], plugins + self._select_input(_models.PUT_RESOURCE_PERMISSION_STATEMENT, args, kwargs), + _models.PUT_RESOURCE_PERMISSION_STATEMENT, + [], + plugins, ) + @_overload async def revoke_o_auth2_token_with_iam( - self, input: RevokeOAuth2TokenWithIAMInput, plugins: list[Plugin] | None = None + self, + request: _models.RevokeOAuth2TokenWithIAMInput + | _models.RevokeOAuth2TokenWithIAMInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeOAuth2TokenWithIAMOutput: ... + + @_overload + async def revoke_o_auth2_token_with_iam( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeOAuth2TokenWithIAMInputDict], ) -> RevokeOAuth2TokenWithIAMOutput: """ Revokes an OAuth 2.0 refresh token and its associated token chain. Args: - input: - An instance of `RevokeOAuth2TokenWithIAMInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -365,8 +604,15 @@ async def revoke_o_auth2_token_with_iam( Returns: An instance of `RevokeOAuth2TokenWithIAMOutput`. """ + + async def revoke_o_auth2_token_with_iam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeOAuth2TokenWithIAMOutput: return await self._invoke( - input, _models.REVOKE_O_AUTH2_TOKEN_WITH_IAM, [], plugins + self._select_input(_models.REVOKE_O_AUTH2_TOKEN_WITH_IAM, args, kwargs), + _models.REVOKE_O_AUTH2_TOKEN_WITH_IAM, + [], + plugins, ) async def _new_config(self) -> AsyncSigninConfig: diff --git a/clients/aws-sdk-signin/src/aws_sdk_signin/client.py b/clients/aws-sdk-signin/src/aws_sdk_signin/client.py index 0ebf849bb..90e33fb8a 100644 --- a/clients/aws-sdk-signin/src/aws_sdk_signin/client.py +++ b/clients/aws-sdk-signin/src/aws_sdk_signin/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,31 +20,18 @@ if TYPE_CHECKING: from .models import ( - CreateBearerTokenInput, CreateBearerTokenOutput, - CreateOAuth2TokenInput, CreateOAuth2TokenOutput, - CreateOAuth2TokenWithIAMInput, CreateOAuth2TokenWithIAMOutput, - CreateOAuth2TokenWithTokenExchangeInput, CreateOAuth2TokenWithTokenExchangeOutput, - DeleteConsoleAuthorizationConfigurationInput, DeleteConsoleAuthorizationConfigurationOutput, - DeleteResourcePermissionStatementInput, DeleteResourcePermissionStatementOutput, - GetConsoleAuthorizationConfigurationInput, GetConsoleAuthorizationConfigurationOutput, - GetResourcePolicyInput, GetResourcePolicyOutput, - IntrospectOAuth2TokenWithIAMInput, IntrospectOAuth2TokenWithIAMOutput, - ListResourcePermissionStatementsInput, ListResourcePermissionStatementsOutput, - PutConsoleAuthorizationConfigurationInput, PutConsoleAuthorizationConfigurationOutput, - PutResourcePermissionStatementInput, PutResourcePermissionStatementOutput, - RevokeOAuth2TokenWithIAMInput, RevokeOAuth2TokenWithIAMOutput, ) @@ -58,10 +45,24 @@ class SigninClient(Client[SigninConfig]): 2.0, providing secure token exchange and refresh capabilities. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def create_bearer_token( - self, input: CreateBearerTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateBearerTokenInput | _models.CreateBearerTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateBearerTokenOutput: ... + + @_overload + def create_bearer_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateBearerTokenInputDict], ) -> CreateBearerTokenOutput: """ Creates a bearer token that represents your IAM credentials and can be @@ -69,8 +70,6 @@ def create_bearer_token( for 12 hours. Args: - input: - An instance of `CreateBearerTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -80,18 +79,39 @@ def create_bearer_token( Returns: An instance of `CreateBearerTokenOutput`. """ - return self._invoke(input, _models.CREATE_BEARER_TOKEN, [], plugins) + def create_bearer_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateBearerTokenOutput: + return self._invoke( + self._select_input(_models.CREATE_BEARER_TOKEN, args, kwargs), + _models.CREATE_BEARER_TOKEN, + [], + plugins, + ) + + @_overload + def create_o_auth2_token( + self, + request: _models.CreateOAuth2TokenInput | _models.CreateOAuth2TokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOAuth2TokenOutput: ... + + @_overload def create_o_auth2_token( - self, input: CreateOAuth2TokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOAuth2TokenInputDict], ) -> CreateOAuth2TokenOutput: """ Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token. Args: - input: - An instance of `CreateOAuth2TokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -101,18 +121,40 @@ def create_o_auth2_token( Returns: An instance of `CreateOAuth2TokenOutput`. """ - return self._invoke(input, _models.CREATE_O_AUTH2_TOKEN, [], plugins) + def create_o_auth2_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOAuth2TokenOutput: + return self._invoke( + self._select_input(_models.CREATE_O_AUTH2_TOKEN, args, kwargs), + _models.CREATE_O_AUTH2_TOKEN, + [], + plugins, + ) + + @_overload def create_o_auth2_token_with_iam( - self, input: CreateOAuth2TokenWithIAMInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateOAuth2TokenWithIAMInput + | _models.CreateOAuth2TokenWithIAMInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOAuth2TokenWithIAMOutput: ... + + @_overload + def create_o_auth2_token_with_iam( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOAuth2TokenWithIAMInputDict], ) -> CreateOAuth2TokenWithIAMOutput: """ Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications. Args: - input: - An instance of `CreateOAuth2TokenWithIAMInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -122,20 +164,40 @@ def create_o_auth2_token_with_iam( Returns: An instance of `CreateOAuth2TokenWithIAMOutput`. """ - return self._invoke(input, _models.CREATE_O_AUTH2_TOKEN_WITH_IAM, [], plugins) + def create_o_auth2_token_with_iam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOAuth2TokenWithIAMOutput: + return self._invoke( + self._select_input(_models.CREATE_O_AUTH2_TOKEN_WITH_IAM, args, kwargs), + _models.CREATE_O_AUTH2_TOKEN_WITH_IAM, + [], + plugins, + ) + + @_overload + def create_o_auth2_token_with_token_exchange( + self, + request: _models.CreateOAuth2TokenWithTokenExchangeInput + | _models.CreateOAuth2TokenWithTokenExchangeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateOAuth2TokenWithTokenExchangeOutput: ... + + @_overload def create_o_auth2_token_with_token_exchange( self, - input: CreateOAuth2TokenWithTokenExchangeInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateOAuth2TokenWithTokenExchangeInputDict], ) -> CreateOAuth2TokenWithTokenExchangeOutput: """ Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications. Args: - input: - An instance of `CreateOAuth2TokenWithTokenExchangeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -145,22 +207,42 @@ def create_o_auth2_token_with_token_exchange( Returns: An instance of `CreateOAuth2TokenWithTokenExchangeOutput`. """ + + def create_o_auth2_token_with_token_exchange( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateOAuth2TokenWithTokenExchangeOutput: return self._invoke( - input, _models.CREATE_O_AUTH2_TOKEN_WITH_TOKEN_EXCHANGE, [], plugins + self._select_input( + _models.CREATE_O_AUTH2_TOKEN_WITH_TOKEN_EXCHANGE, args, kwargs + ), + _models.CREATE_O_AUTH2_TOKEN_WITH_TOKEN_EXCHANGE, + [], + plugins, ) + @_overload def delete_console_authorization_configuration( self, - input: DeleteConsoleAuthorizationConfigurationInput | None = None, + request: _models.DeleteConsoleAuthorizationConfigurationInput + | _models.DeleteConsoleAuthorizationConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteConsoleAuthorizationConfigurationOutput: ... + + @_overload + def delete_console_authorization_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteConsoleAuthorizationConfigurationInputDict], ) -> DeleteConsoleAuthorizationConfigurationOutput: """ Delete console authorization configuration with automatic scope detection Args: - input: - An instance of `DeleteConsoleAuthorizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -170,22 +252,42 @@ def delete_console_authorization_configuration( Returns: An instance of `DeleteConsoleAuthorizationConfigurationOutput`. """ + + def delete_console_authorization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteConsoleAuthorizationConfigurationOutput: return self._invoke( - input, _models.DELETE_CONSOLE_AUTHORIZATION_CONFIGURATION, [], plugins + self._select_input( + _models.DELETE_CONSOLE_AUTHORIZATION_CONFIGURATION, args, kwargs + ), + _models.DELETE_CONSOLE_AUTHORIZATION_CONFIGURATION, + [], + plugins, ) + @_overload def delete_resource_permission_statement( self, - input: DeleteResourcePermissionStatementInput, + request: _models.DeleteResourcePermissionStatementInput + | _models.DeleteResourcePermissionStatementInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteResourcePermissionStatementOutput: ... + + @_overload + def delete_resource_permission_statement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteResourcePermissionStatementInputDict], ) -> DeleteResourcePermissionStatementOutput: """ Remove a permission statement from the account's SignIn resource-based policy Args: - input: - An instance of `DeleteResourcePermissionStatementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -195,21 +297,41 @@ def delete_resource_permission_statement( Returns: An instance of `DeleteResourcePermissionStatementOutput`. """ + + def delete_resource_permission_statement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteResourcePermissionStatementOutput: return self._invoke( - input, _models.DELETE_RESOURCE_PERMISSION_STATEMENT, [], plugins + self._select_input( + _models.DELETE_RESOURCE_PERMISSION_STATEMENT, args, kwargs + ), + _models.DELETE_RESOURCE_PERMISSION_STATEMENT, + [], + plugins, ) + @_overload def get_console_authorization_configuration( self, - input: GetConsoleAuthorizationConfigurationInput | None = None, + request: _models.GetConsoleAuthorizationConfigurationInput + | _models.GetConsoleAuthorizationConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetConsoleAuthorizationConfigurationOutput: ... + + @_overload + def get_console_authorization_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetConsoleAuthorizationConfigurationInputDict], ) -> GetConsoleAuthorizationConfigurationOutput: """ Get console authorization configuration with automatic scope detection Args: - input: - An instance of `GetConsoleAuthorizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -219,21 +341,40 @@ def get_console_authorization_configuration( Returns: An instance of `GetConsoleAuthorizationConfigurationOutput`. """ + + def get_console_authorization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetConsoleAuthorizationConfigurationOutput: return self._invoke( - input, _models.GET_CONSOLE_AUTHORIZATION_CONFIGURATION, [], plugins + self._select_input( + _models.GET_CONSOLE_AUTHORIZATION_CONFIGURATION, args, kwargs + ), + _models.GET_CONSOLE_AUTHORIZATION_CONFIGURATION, + [], + plugins, ) + @_overload + def get_resource_policy( + self, + request: _models.GetResourcePolicyInput | _models.GetResourcePolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetResourcePolicyOutput: ... + + @_overload def get_resource_policy( self, - input: GetResourcePolicyInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetResourcePolicyInputDict], ) -> GetResourcePolicyOutput: """ Retrieve the account's consolidated SignIn resource-based policy Args: - input: - An instance of `GetResourcePolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -243,12 +384,34 @@ def get_resource_policy( Returns: An instance of `GetResourcePolicyOutput`. """ - return self._invoke(input, _models.GET_RESOURCE_POLICY, [], plugins) + def get_resource_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetResourcePolicyOutput: + return self._invoke( + self._select_input(_models.GET_RESOURCE_POLICY, args, kwargs), + _models.GET_RESOURCE_POLICY, + [], + plugins, + ) + + @_overload def introspect_o_auth2_token_with_iam( self, - input: IntrospectOAuth2TokenWithIAMInput, + request: _models.IntrospectOAuth2TokenWithIAMInput + | _models.IntrospectOAuth2TokenWithIAMInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> IntrospectOAuth2TokenWithIAMOutput: ... + + @_overload + def introspect_o_auth2_token_with_iam( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.IntrospectOAuth2TokenWithIAMInputDict], ) -> IntrospectOAuth2TokenWithIAMOutput: """ Inspects the metadata and active state of an OAuth 2.0 access token or @@ -257,8 +420,6 @@ def introspect_o_auth2_token_with_iam( issued by AWS Sign-In. Args: - input: - An instance of `IntrospectOAuth2TokenWithIAMInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -268,22 +429,40 @@ def introspect_o_auth2_token_with_iam( Returns: An instance of `IntrospectOAuth2TokenWithIAMOutput`. """ + + def introspect_o_auth2_token_with_iam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> IntrospectOAuth2TokenWithIAMOutput: return self._invoke( - input, _models.INTROSPECT_O_AUTH2_TOKEN_WITH_IAM, [], plugins + self._select_input(_models.INTROSPECT_O_AUTH2_TOKEN_WITH_IAM, args, kwargs), + _models.INTROSPECT_O_AUTH2_TOKEN_WITH_IAM, + [], + plugins, ) + @_overload + def list_resource_permission_statements( + self, + request: _models.ListResourcePermissionStatementsInput + | _models.ListResourcePermissionStatementsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListResourcePermissionStatementsOutput: ... + + @_overload def list_resource_permission_statements( self, - input: ListResourcePermissionStatementsInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListResourcePermissionStatementsInputDict], ) -> ListResourcePermissionStatementsOutput: """ Retrieve all permission statements in the account's SignIn resource-based policy Args: - input: - An instance of `ListResourcePermissionStatementsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -293,22 +472,42 @@ def list_resource_permission_statements( Returns: An instance of `ListResourcePermissionStatementsOutput`. """ + + def list_resource_permission_statements( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListResourcePermissionStatementsOutput: return self._invoke( - input, _models.LIST_RESOURCE_PERMISSION_STATEMENTS, [], plugins + self._select_input( + _models.LIST_RESOURCE_PERMISSION_STATEMENTS, args, kwargs + ), + _models.LIST_RESOURCE_PERMISSION_STATEMENTS, + [], + plugins, ) + @_overload def put_console_authorization_configuration( self, - input: PutConsoleAuthorizationConfigurationInput | None = None, + request: _models.PutConsoleAuthorizationConfigurationInput + | _models.PutConsoleAuthorizationConfigurationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> PutConsoleAuthorizationConfigurationOutput: ... + + @_overload + def put_console_authorization_configuration( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutConsoleAuthorizationConfigurationInputDict], ) -> PutConsoleAuthorizationConfigurationOutput: """ Enable console authorization configuration with automatic scope detection Args: - input: - An instance of `PutConsoleAuthorizationConfigurationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -318,22 +517,42 @@ def put_console_authorization_configuration( Returns: An instance of `PutConsoleAuthorizationConfigurationOutput`. """ + + def put_console_authorization_configuration( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutConsoleAuthorizationConfigurationOutput: return self._invoke( - input, _models.PUT_CONSOLE_AUTHORIZATION_CONFIGURATION, [], plugins + self._select_input( + _models.PUT_CONSOLE_AUTHORIZATION_CONFIGURATION, args, kwargs + ), + _models.PUT_CONSOLE_AUTHORIZATION_CONFIGURATION, + [], + plugins, ) + @_overload def put_resource_permission_statement( self, - input: PutResourcePermissionStatementInput | None = None, + request: _models.PutResourcePermissionStatementInput + | _models.PutResourcePermissionStatementInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> PutResourcePermissionStatementOutput: ... + + @_overload + def put_resource_permission_statement( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutResourcePermissionStatementInputDict], ) -> PutResourcePermissionStatementOutput: """ Create a permission statement in the account's SignIn resource-based policy Args: - input: - An instance of `PutResourcePermissionStatementInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -343,19 +562,39 @@ def put_resource_permission_statement( Returns: An instance of `PutResourcePermissionStatementOutput`. """ + + def put_resource_permission_statement( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutResourcePermissionStatementOutput: return self._invoke( - input, _models.PUT_RESOURCE_PERMISSION_STATEMENT, [], plugins + self._select_input(_models.PUT_RESOURCE_PERMISSION_STATEMENT, args, kwargs), + _models.PUT_RESOURCE_PERMISSION_STATEMENT, + [], + plugins, ) + @_overload def revoke_o_auth2_token_with_iam( - self, input: RevokeOAuth2TokenWithIAMInput, plugins: list[Plugin] | None = None + self, + request: _models.RevokeOAuth2TokenWithIAMInput + | _models.RevokeOAuth2TokenWithIAMInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RevokeOAuth2TokenWithIAMOutput: ... + + @_overload + def revoke_o_auth2_token_with_iam( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RevokeOAuth2TokenWithIAMInputDict], ) -> RevokeOAuth2TokenWithIAMOutput: """ Revokes an OAuth 2.0 refresh token and its associated token chain. Args: - input: - An instance of `RevokeOAuth2TokenWithIAMInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -365,7 +604,16 @@ def revoke_o_auth2_token_with_iam( Returns: An instance of `RevokeOAuth2TokenWithIAMOutput`. """ - return self._invoke(input, _models.REVOKE_O_AUTH2_TOKEN_WITH_IAM, [], plugins) + + def revoke_o_auth2_token_with_iam( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RevokeOAuth2TokenWithIAMOutput: + return self._invoke( + self._select_input(_models.REVOKE_O_AUTH2_TOKEN_WITH_IAM, args, kwargs), + _models.REVOKE_O_AUTH2_TOKEN_WITH_IAM, + [], + plugins, + ) def _new_config(self) -> SigninConfig: return SigninConfig.resolve() diff --git a/clients/aws-sdk-signin/src/aws_sdk_signin/models.pyi b/clients/aws-sdk-signin/src/aws_sdk_signin/models.pyi index c10998194..676be880e 100644 --- a/clients/aws-sdk-signin/src/aws_sdk_signin/models.pyi +++ b/clients/aws-sdk-signin/src/aws_sdk_signin/models.pyi @@ -2,7 +2,7 @@ from dataclasses import dataclass from enum import StrEnum -from typing import Self +from typing import Required, Self, TypedDict from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -89,6 +89,20 @@ class CreateBearerTokenInput(_SerdeShape): the token is valid for 12 hours. """ +class CreateBearerTokenInputDict(TypedDict, total=False): + """Dictionary form of `CreateBearerTokenInput`.""" + + grant_type: Required[str] + """The grant type. Must be \"client_credentials\".""" + resource: Required[str] + """The AWS service the bearer token is for. Example: \"ecr.amazonaws.com\".""" + duration_seconds: int | None + """ + The requested token lifetime in seconds, from 300 (5 minutes) up to the + maximum allowed for the service, currently 43200 (12 hours). If omitted, + the token is valid for 12 hours. + """ + @dataclass(kw_only=True) class CreateBearerTokenOutput(_SerdeShape): """ @@ -125,6 +139,17 @@ class CreateOAuth2TokenInput(_SerdeShape): determines the specific operation. """ +class CreateOAuth2TokenInputDict(TypedDict, total=False): + """Dictionary form of `CreateOAuth2TokenInput`.""" + + token_input: Required[ + CreateOAuth2TokenRequestBody | CreateOAuth2TokenRequestBodyDict + ] + """ + Flattened token operation inputs. The \"grant_type\" in the request body + determines the specific operation. + """ + @dataclass(kw_only=True) class CreateOAuth2TokenOutput(_SerdeShape): """ @@ -158,8 +183,8 @@ class CreateOAuth2TokenRequestBody(_SerdeShape): client_id: str """ The OAuth 2.0 client identifier. Expected values: - \"arn:aws:signin\\:::devtools/same-device\" or - \"arn:aws:signin\\:::devtools/cross-device\". + \"arn:aws:signin:::devtools/same-device\" or + \"arn:aws:signin:::devtools/cross-device\". """ grant_type: str """ @@ -188,6 +213,42 @@ class CreateOAuth2TokenRequestBody(_SerdeShape): \"grant_type=refresh_token\". """ +class CreateOAuth2TokenRequestBodyDict(TypedDict, total=False): + """Dictionary form of `CreateOAuth2TokenRequestBody`.""" + + client_id: Required[str] + """ + The OAuth 2.0 client identifier. Expected values: + \"arn:aws:signin:::devtools/same-device\" or + \"arn:aws:signin:::devtools/cross-device\". + """ + grant_type: Required[str] + """ + The OAuth 2.0 grant type. Supported values: - \"authorization_code\" - + Exchange an authorization code for tokens. - \"refresh_token\" - Use a + refresh token to obtain a new access token. + """ + code: str | None + """ + The authorization code received from the \"/v1/authorize\" endpoint. + Required when \"grant_type=authorization_code\". + """ + redirect_uri: str | None + """ + The redirect URI that was used in the original authorization request. + Must match exactly. Required when \"grant_type=authorization_code\". + """ + code_verifier: str | None + """ + The PKCE code verifier that proves possession of the original code + challenge. Required when \"grant_type=authorization_code\". + """ + refresh_token: str | None + """ + The refresh token issued by a previous token response. Required when + \"grant_type=refresh_token\". + """ + @dataclass(kw_only=True) class CreateOAuth2TokenResponseBody(_SerdeShape): """ @@ -234,6 +295,17 @@ class CreateOAuth2TokenWithIAMInput(_SerdeShape): \"aws-mcp.amazonaws.com\". """ +class CreateOAuth2TokenWithIAMInputDict(TypedDict, total=False): + """Dictionary form of `CreateOAuth2TokenWithIAMInput`.""" + + grant_type: Required[str] + """The OAuth 2.0 grant type. Must be \"client_credentials\".""" + resource: Required[str] + """ + The OAuth resource for which the access token is requested. Example: + \"aws-mcp.amazonaws.com\". + """ + @dataclass(kw_only=True) class CreateOAuth2TokenWithIAMOutput(_SerdeShape): """ @@ -296,6 +368,40 @@ class CreateOAuth2TokenWithTokenExchangeInput(_SerdeShape): \"arn:aws:iam::444455556666:policy/MyPolicy\". """ +class CreateOAuth2TokenWithTokenExchangeInputDict(TypedDict, total=False): + """Dictionary form of `CreateOAuth2TokenWithTokenExchangeInput`.""" + + grant_type: Required[str] + """ + The OAuth 2.0 grant type. Currently only supports + \"urn:ietf:params:oauth:grant-type:token-exchange\". + """ + subject_token: str | None + """ + The subject token that represents the identity of the party on whose + behalf the request is made. Required when + \"grant_type=urn:ietf:params:oauth:grant-type:token-exchange\". + """ + subject_token_type: str | None + """ + The token type of the subject token. Currently only supports + \"urn:ietf:params:oauth:token-type:jwt\". Required when + \"grant_type=urn:ietf:params:oauth:grant-type:token-exchange\". + """ + resource: str | None + """ + The OAuth resource for which the access token is requested. Required + when \"grant_type=urn:ietf:params:oauth:grant-type:token-exchange\". + Example: \"glue.amazonaws.com\". + """ + scope: str | None + """ + IAM managed policy Amazon Resource Names (ARNs) to apply as session + policies that further scope down the permissions of the issued access + token, provided as a space-delimited list. Example: + \"arn:aws:iam::444455556666:policy/MyPolicy\". + """ + @dataclass(kw_only=True) class CreateOAuth2TokenWithTokenExchangeOutput(_SerdeShape): """ @@ -340,6 +446,12 @@ class DeleteConsoleAuthorizationConfigurationInput(_SerdeShape): target_id: str | None = ... """Target account identifier""" +class DeleteConsoleAuthorizationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `DeleteConsoleAuthorizationConfigurationInput`.""" + + target_id: str | None + """Target account identifier""" + @dataclass(kw_only=True) class DeleteConsoleAuthorizationConfigurationOutput(_SerdeShape): """Output for DeleteConsoleAuthorizationConfiguration operation""" @@ -370,6 +482,17 @@ class DeleteResourcePermissionStatementInput(_SerdeShape): provided. """ +class DeleteResourcePermissionStatementInputDict(TypedDict, total=False): + """Dictionary form of `DeleteResourcePermissionStatementInput`.""" + + statement_id: Required[str] + """Unique identifier of the permission statement to delete""" + client_token: str | None + """ + Idempotency token for the request This field is autopopulated if not + provided. + """ + @dataclass(kw_only=True) class DeleteResourcePermissionStatementOutput(_SerdeShape): """Output for DeleteResourcePermissionStatement operation""" @@ -389,6 +512,12 @@ class GetConsoleAuthorizationConfigurationInput(_SerdeShape): target_id: str | None = ... """Target account identifier""" +class GetConsoleAuthorizationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `GetConsoleAuthorizationConfigurationInput`.""" + + target_id: str | None + """Target account identifier""" + @dataclass(kw_only=True) class GetConsoleAuthorizationConfigurationOutput(_SerdeShape): """Output for GetConsoleAuthorizationConfiguration operation""" @@ -411,6 +540,9 @@ class GetConsoleAuthorizationConfigurationOutput(_SerdeShape): class GetResourcePolicyInput(_SerdeShape): """Input for GetResourcePolicy operation""" +class GetResourcePolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetResourcePolicyInput`.""" + @dataclass(kw_only=True) class GetResourcePolicyOutput(_SerdeShape): """Output for GetResourcePolicy operation""" @@ -457,6 +589,19 @@ class IntrospectOAuth2TokenWithIAMInput(_SerdeShape): \"refresh_token\". """ +class IntrospectOAuth2TokenWithIAMInputDict(TypedDict, total=False): + """Dictionary form of `IntrospectOAuth2TokenWithIAMInput`.""" + + token: Required[str] + """The access token or refresh token issued by AWS Sign-In.""" + token_type_hint: str | None + """ + An optional hint about the type of the token submitted for + introspection, as defined in RFC 7662 §2.1. The server checks both token + types regardless of the hint. Allowed values: \"access_token\", + \"refresh_token\". + """ + @dataclass(kw_only=True) class IntrospectOAuth2TokenWithIAMOutput(_SerdeShape): """ @@ -563,6 +708,14 @@ class ListResourcePermissionStatementsInput(_SerdeShape): next_token: str | None = ... """Token for pagination""" +class ListResourcePermissionStatementsInputDict(TypedDict, total=False): + """Dictionary form of `ListResourcePermissionStatementsInput`.""" + + max_results: int | None + """Maximum number of results to return""" + next_token: str | None + """Token for pagination""" + @dataclass(kw_only=True) class ListResourcePermissionStatementsOutput(_SerdeShape): """Output for ListResourcePermissionStatements operation""" @@ -646,6 +799,12 @@ class PutConsoleAuthorizationConfigurationInput(_SerdeShape): target_id: str | None = ... """Target account identifier""" +class PutConsoleAuthorizationConfigurationInputDict(TypedDict, total=False): + """Dictionary form of `PutConsoleAuthorizationConfigurationInput`.""" + + target_id: str | None + """Target account identifier""" + @dataclass(kw_only=True) class PutConsoleAuthorizationConfigurationOutput(_SerdeShape): """Output for PutConsoleAuthorizationConfiguration operation""" @@ -691,6 +850,32 @@ class PutResourcePermissionStatementInput(_SerdeShape): provided. """ +class PutResourcePermissionStatementInputDict(TypedDict, total=False): + """Dictionary form of `PutResourcePermissionStatementInput`.""" + + source_vpc: str | None + """VPC identifier to restrict console access""" + signin_source_vpce: str | None + """SignIn VPC endpoint identifier""" + console_source_vpce: str | None + """Console VPC endpoint identifier""" + vpc_source_ip: str | None + """Source IP address within VPC""" + source_ip: str | None + """Source IP address""" + requested_region: str | None + """ + AWS region where the VPC and VPC endpoint reside Required when sourceVpc + or signinSourceVpce/consoleSourceVpce is provided + """ + excluded_principal: str | None + """Principal to exclude from the permission statement""" + client_token: str | None + """ + Idempotency token for the request This field is autopopulated if not + provided. + """ + @dataclass(kw_only=True) class PutResourcePermissionStatementOutput(_SerdeShape): """Output for PutResourcePermissionStatement operation""" @@ -738,6 +923,15 @@ class RevokeOAuth2TokenWithIAMInput(_SerdeShape): Sign-In. Access tokens are not accepted for revocation. """ +class RevokeOAuth2TokenWithIAMInputDict(TypedDict, total=False): + """Dictionary form of `RevokeOAuth2TokenWithIAMInput`.""" + + token: Required[str] + """ + The refresh token to revoke. Must be a refresh token issued by AWS + Sign-In. Access tokens are not accepted for revocation. + """ + @dataclass(kw_only=True) class RevokeOAuth2TokenWithIAMOutput(_SerdeShape): """ diff --git a/clients/aws-sdk-signin/src/aws_sdk_signin/py.typed b/clients/aws-sdk-signin/src/aws_sdk_signin/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-signin/tests/_typecheck.py b/clients/aws-sdk-signin/tests/_typecheck.py index c03d3ee9c..c3494506c 100644 --- a/clients/aws-sdk-signin/tests/_typecheck.py +++ b/clients/aws-sdk-signin/tests/_typecheck.py @@ -2,44 +2,61 @@ from typing import Any +from aws_sdk_signin.aio.client import AsyncSigninClient +from aws_sdk_signin.client import SigninClient from aws_sdk_signin.models import ( AccessToken, CreateBearerTokenInput, + CreateBearerTokenInputDict, CreateBearerTokenOutput, CreateOAuth2TokenInput, + CreateOAuth2TokenInputDict, CreateOAuth2TokenOutput, CreateOAuth2TokenRequestBody, + CreateOAuth2TokenRequestBodyDict, CreateOAuth2TokenResponseBody, CreateOAuth2TokenWithIAMInput, + CreateOAuth2TokenWithIAMInputDict, CreateOAuth2TokenWithIAMOutput, CreateOAuth2TokenWithTokenExchangeInput, + CreateOAuth2TokenWithTokenExchangeInputDict, CreateOAuth2TokenWithTokenExchangeOutput, DeleteConsoleAuthorizationConfigurationInput, + DeleteConsoleAuthorizationConfigurationInputDict, DeleteConsoleAuthorizationConfigurationOutput, DeleteResourcePermissionStatementInput, + DeleteResourcePermissionStatementInputDict, DeleteResourcePermissionStatementOutput, GetConsoleAuthorizationConfigurationInput, + GetConsoleAuthorizationConfigurationInputDict, GetConsoleAuthorizationConfigurationOutput, GetResourcePolicyInput, + GetResourcePolicyInputDict, GetResourcePolicyOutput, IntrospectOAuth2TokenWithIAMInput, + IntrospectOAuth2TokenWithIAMInputDict, IntrospectOAuth2TokenWithIAMOutput, ListResourcePermissionStatementsInput, + ListResourcePermissionStatementsInputDict, ListResourcePermissionStatementsOutput, PermissionStatementSummary, PolicyStatement, PutConsoleAuthorizationConfigurationInput, + PutConsoleAuthorizationConfigurationInputDict, PutConsoleAuthorizationConfigurationOutput, PutResourcePermissionStatementInput, + PutResourcePermissionStatementInputDict, PutResourcePermissionStatementOutput, RevokeOAuth2TokenWithIAMInput, + RevokeOAuth2TokenWithIAMInputDict, RevokeOAuth2TokenWithIAMOutput, SigninResourceBasedPolicy, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -83,3 +100,237 @@ RevokeOAuth2TokenWithIAMInput() RevokeOAuth2TokenWithIAMOutput() SigninResourceBasedPolicy() +_params_0: CreateBearerTokenInputDict = {"grant_type": _, "resource": _} +_params_1: CreateOAuth2TokenInputDict = {"token_input": _} +_params_2: CreateOAuth2TokenRequestBodyDict = {"client_id": _, "grant_type": _} +_params_3: CreateOAuth2TokenWithIAMInputDict = {"grant_type": _, "resource": _} +_params_4: CreateOAuth2TokenWithTokenExchangeInputDict = {"grant_type": _} +_params_5: DeleteConsoleAuthorizationConfigurationInputDict = {} +_params_6: DeleteResourcePermissionStatementInputDict = {"statement_id": _} +_params_7: GetConsoleAuthorizationConfigurationInputDict = {} +_params_8: GetResourcePolicyInputDict = {} +_params_9: IntrospectOAuth2TokenWithIAMInputDict = {"token": _} +_params_10: ListResourcePermissionStatementsInputDict = {} +_params_11: PutConsoleAuthorizationConfigurationInputDict = {} +_params_12: PutResourcePermissionStatementInputDict = {} +_params_13: RevokeOAuth2TokenWithIAMInputDict = {"token": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncSigninClient) -> None: + pass + await client.create_bearer_token(grant_type=_, resource=_) + await client.create_bearer_token(**_request(CreateBearerTokenInputDict)) + await client.create_bearer_token(_request(CreateBearerTokenInput)) + await client.create_bearer_token(_request(CreateBearerTokenInputDict)) + await client.create_o_auth2_token(token_input=_) + await client.create_o_auth2_token(**_request(CreateOAuth2TokenInputDict)) + await client.create_o_auth2_token(_request(CreateOAuth2TokenInput)) + await client.create_o_auth2_token(_request(CreateOAuth2TokenInputDict)) + await client.create_o_auth2_token_with_iam(grant_type=_, resource=_) + await client.create_o_auth2_token_with_iam( + **_request(CreateOAuth2TokenWithIAMInputDict) + ) + await client.create_o_auth2_token_with_iam(_request(CreateOAuth2TokenWithIAMInput)) + await client.create_o_auth2_token_with_iam( + _request(CreateOAuth2TokenWithIAMInputDict) + ) + await client.create_o_auth2_token_with_token_exchange(grant_type=_) + await client.create_o_auth2_token_with_token_exchange( + **_request(CreateOAuth2TokenWithTokenExchangeInputDict) + ) + await client.create_o_auth2_token_with_token_exchange( + _request(CreateOAuth2TokenWithTokenExchangeInput) + ) + await client.create_o_auth2_token_with_token_exchange( + _request(CreateOAuth2TokenWithTokenExchangeInputDict) + ) + await client.delete_console_authorization_configuration() + await client.delete_console_authorization_configuration( + **_request(DeleteConsoleAuthorizationConfigurationInputDict) + ) + await client.delete_console_authorization_configuration( + _request(DeleteConsoleAuthorizationConfigurationInput) + ) + await client.delete_console_authorization_configuration( + _request(DeleteConsoleAuthorizationConfigurationInputDict) + ) + await client.delete_resource_permission_statement(statement_id=_) + await client.delete_resource_permission_statement( + **_request(DeleteResourcePermissionStatementInputDict) + ) + await client.delete_resource_permission_statement( + _request(DeleteResourcePermissionStatementInput) + ) + await client.delete_resource_permission_statement( + _request(DeleteResourcePermissionStatementInputDict) + ) + await client.get_console_authorization_configuration() + await client.get_console_authorization_configuration( + **_request(GetConsoleAuthorizationConfigurationInputDict) + ) + await client.get_console_authorization_configuration( + _request(GetConsoleAuthorizationConfigurationInput) + ) + await client.get_console_authorization_configuration( + _request(GetConsoleAuthorizationConfigurationInputDict) + ) + await client.get_resource_policy() + await client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + await client.get_resource_policy(_request(GetResourcePolicyInput)) + await client.get_resource_policy(_request(GetResourcePolicyInputDict)) + await client.introspect_o_auth2_token_with_iam(token=_) + await client.introspect_o_auth2_token_with_iam( + **_request(IntrospectOAuth2TokenWithIAMInputDict) + ) + await client.introspect_o_auth2_token_with_iam( + _request(IntrospectOAuth2TokenWithIAMInput) + ) + await client.introspect_o_auth2_token_with_iam( + _request(IntrospectOAuth2TokenWithIAMInputDict) + ) + await client.list_resource_permission_statements() + await client.list_resource_permission_statements( + **_request(ListResourcePermissionStatementsInputDict) + ) + await client.list_resource_permission_statements( + _request(ListResourcePermissionStatementsInput) + ) + await client.list_resource_permission_statements( + _request(ListResourcePermissionStatementsInputDict) + ) + await client.put_console_authorization_configuration() + await client.put_console_authorization_configuration( + **_request(PutConsoleAuthorizationConfigurationInputDict) + ) + await client.put_console_authorization_configuration( + _request(PutConsoleAuthorizationConfigurationInput) + ) + await client.put_console_authorization_configuration( + _request(PutConsoleAuthorizationConfigurationInputDict) + ) + await client.put_resource_permission_statement() + await client.put_resource_permission_statement( + **_request(PutResourcePermissionStatementInputDict) + ) + await client.put_resource_permission_statement( + _request(PutResourcePermissionStatementInput) + ) + await client.put_resource_permission_statement( + _request(PutResourcePermissionStatementInputDict) + ) + await client.revoke_o_auth2_token_with_iam(token=_) + await client.revoke_o_auth2_token_with_iam( + **_request(RevokeOAuth2TokenWithIAMInputDict) + ) + await client.revoke_o_auth2_token_with_iam(_request(RevokeOAuth2TokenWithIAMInput)) + await client.revoke_o_auth2_token_with_iam( + _request(RevokeOAuth2TokenWithIAMInputDict) + ) + + +def check_sync_calls(client: SigninClient) -> None: + pass + client.create_bearer_token(grant_type=_, resource=_) + client.create_bearer_token(**_request(CreateBearerTokenInputDict)) + client.create_bearer_token(_request(CreateBearerTokenInput)) + client.create_bearer_token(_request(CreateBearerTokenInputDict)) + client.create_o_auth2_token(token_input=_) + client.create_o_auth2_token(**_request(CreateOAuth2TokenInputDict)) + client.create_o_auth2_token(_request(CreateOAuth2TokenInput)) + client.create_o_auth2_token(_request(CreateOAuth2TokenInputDict)) + client.create_o_auth2_token_with_iam(grant_type=_, resource=_) + client.create_o_auth2_token_with_iam(**_request(CreateOAuth2TokenWithIAMInputDict)) + client.create_o_auth2_token_with_iam(_request(CreateOAuth2TokenWithIAMInput)) + client.create_o_auth2_token_with_iam(_request(CreateOAuth2TokenWithIAMInputDict)) + client.create_o_auth2_token_with_token_exchange(grant_type=_) + client.create_o_auth2_token_with_token_exchange( + **_request(CreateOAuth2TokenWithTokenExchangeInputDict) + ) + client.create_o_auth2_token_with_token_exchange( + _request(CreateOAuth2TokenWithTokenExchangeInput) + ) + client.create_o_auth2_token_with_token_exchange( + _request(CreateOAuth2TokenWithTokenExchangeInputDict) + ) + client.delete_console_authorization_configuration() + client.delete_console_authorization_configuration( + **_request(DeleteConsoleAuthorizationConfigurationInputDict) + ) + client.delete_console_authorization_configuration( + _request(DeleteConsoleAuthorizationConfigurationInput) + ) + client.delete_console_authorization_configuration( + _request(DeleteConsoleAuthorizationConfigurationInputDict) + ) + client.delete_resource_permission_statement(statement_id=_) + client.delete_resource_permission_statement( + **_request(DeleteResourcePermissionStatementInputDict) + ) + client.delete_resource_permission_statement( + _request(DeleteResourcePermissionStatementInput) + ) + client.delete_resource_permission_statement( + _request(DeleteResourcePermissionStatementInputDict) + ) + client.get_console_authorization_configuration() + client.get_console_authorization_configuration( + **_request(GetConsoleAuthorizationConfigurationInputDict) + ) + client.get_console_authorization_configuration( + _request(GetConsoleAuthorizationConfigurationInput) + ) + client.get_console_authorization_configuration( + _request(GetConsoleAuthorizationConfigurationInputDict) + ) + client.get_resource_policy() + client.get_resource_policy(**_request(GetResourcePolicyInputDict)) + client.get_resource_policy(_request(GetResourcePolicyInput)) + client.get_resource_policy(_request(GetResourcePolicyInputDict)) + client.introspect_o_auth2_token_with_iam(token=_) + client.introspect_o_auth2_token_with_iam( + **_request(IntrospectOAuth2TokenWithIAMInputDict) + ) + client.introspect_o_auth2_token_with_iam( + _request(IntrospectOAuth2TokenWithIAMInput) + ) + client.introspect_o_auth2_token_with_iam( + _request(IntrospectOAuth2TokenWithIAMInputDict) + ) + client.list_resource_permission_statements() + client.list_resource_permission_statements( + **_request(ListResourcePermissionStatementsInputDict) + ) + client.list_resource_permission_statements( + _request(ListResourcePermissionStatementsInput) + ) + client.list_resource_permission_statements( + _request(ListResourcePermissionStatementsInputDict) + ) + client.put_console_authorization_configuration() + client.put_console_authorization_configuration( + **_request(PutConsoleAuthorizationConfigurationInputDict) + ) + client.put_console_authorization_configuration( + _request(PutConsoleAuthorizationConfigurationInput) + ) + client.put_console_authorization_configuration( + _request(PutConsoleAuthorizationConfigurationInputDict) + ) + client.put_resource_permission_statement() + client.put_resource_permission_statement( + **_request(PutResourcePermissionStatementInputDict) + ) + client.put_resource_permission_statement( + _request(PutResourcePermissionStatementInput) + ) + client.put_resource_permission_statement( + _request(PutResourcePermissionStatementInputDict) + ) + client.revoke_o_auth2_token_with_iam(token=_) + client.revoke_o_auth2_token_with_iam(**_request(RevokeOAuth2TokenWithIAMInputDict)) + client.revoke_o_auth2_token_with_iam(_request(RevokeOAuth2TokenWithIAMInput)) + client.revoke_o_auth2_token_with_iam(_request(RevokeOAuth2TokenWithIAMInputDict)) diff --git a/clients/aws-sdk-sns/pyproject.toml b/clients/aws-sdk-sns/pyproject.toml index 545e6f0d2..3b0d39de1 100644 --- a/clients/aws-sdk-sns/pyproject.toml +++ b/clients/aws-sdk-sns/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[xml]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[xml]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-sns/src/aws_sdk_sns/_private/schemas.py b/clients/aws-sdk-sns/src/aws_sdk_sns/_private/schemas.py index 914463571..664618fcd 100644 --- a/clients/aws-sdk-sns/src/aws_sdk_sns/_private/schemas.py +++ b/clients/aws-sdk-sns/src/aws_sdk_sns/_private/schemas.py @@ -250,7 +250,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-sns/src/aws_sdk_sns/aio/client.py b/clients/aws-sdk-sns/src/aws_sdk_sns/aio/client.py index ce6653f16..23e168473 100644 --- a/clients/aws-sdk-sns/src/aws_sdk_sns/aio/client.py +++ b/clients/aws-sdk-sns/src/aws_sdk_sns/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,89 +20,47 @@ if TYPE_CHECKING: from ..models import ( - AddPermissionInput, AddPermissionOutput, - CheckIfPhoneNumberIsOptedOutInput, CheckIfPhoneNumberIsOptedOutOutput, - ConfirmSubscriptionInput, ConfirmSubscriptionOutput, - CreatePlatformApplicationInput, CreatePlatformApplicationOutput, - CreatePlatformEndpointInput, CreatePlatformEndpointOutput, - CreateSMSSandboxPhoneNumberInput, CreateSMSSandboxPhoneNumberOutput, - CreateTopicInput, CreateTopicOutput, - DeleteEndpointInput, DeleteEndpointOutput, - DeletePlatformApplicationInput, DeletePlatformApplicationOutput, - DeleteSMSSandboxPhoneNumberInput, DeleteSMSSandboxPhoneNumberOutput, - DeleteTopicInput, DeleteTopicOutput, - GetDataProtectionPolicyInput, GetDataProtectionPolicyOutput, - GetEndpointAttributesInput, GetEndpointAttributesOutput, - GetPlatformApplicationAttributesInput, GetPlatformApplicationAttributesOutput, - GetSMSAttributesInput, GetSMSAttributesOutput, - GetSMSSandboxAccountStatusInput, GetSMSSandboxAccountStatusOutput, - GetSubscriptionAttributesInput, GetSubscriptionAttributesOutput, - GetTopicAttributesInput, GetTopicAttributesOutput, - ListEndpointsByPlatformApplicationInput, ListEndpointsByPlatformApplicationOutput, - ListOriginationNumbersInput, ListOriginationNumbersOutput, - ListPhoneNumbersOptedOutInput, ListPhoneNumbersOptedOutOutput, - ListPlatformApplicationsInput, ListPlatformApplicationsOutput, - ListSMSSandboxPhoneNumbersInput, ListSMSSandboxPhoneNumbersOutput, - ListSubscriptionsByTopicInput, ListSubscriptionsByTopicOutput, - ListSubscriptionsInput, ListSubscriptionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListTopicsInput, ListTopicsOutput, - OptInPhoneNumberInput, OptInPhoneNumberOutput, - PublishBatchInput, PublishBatchOutput, - PublishInput, PublishOutput, - PutDataProtectionPolicyInput, PutDataProtectionPolicyOutput, - RemovePermissionInput, RemovePermissionOutput, - SetEndpointAttributesInput, SetEndpointAttributesOutput, - SetPlatformApplicationAttributesInput, SetPlatformApplicationAttributesOutput, - SetSMSAttributesInput, SetSMSAttributesOutput, - SetSubscriptionAttributesInput, SetSubscriptionAttributesOutput, - SetTopicAttributesInput, SetTopicAttributesOutput, - SubscribeInput, SubscribeOutput, - TagResourceInput, TagResourceOutput, - UnsubscribeInput, UnsubscribeOutput, - UntagResourceInput, UntagResourceOutput, - VerifySMSSandboxPhoneNumberInput, VerifySMSSandboxPhoneNumberOutput, ) @@ -134,10 +92,24 @@ class AsyncSNSClient(AsyncClient[AsyncSNSConfig]): Services](http://aws.amazon.com/tools/). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def add_permission( - self, input: AddPermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.AddPermissionInput | _models.AddPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddPermissionOutput: ... + + @_overload + async def add_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddPermissionInputDict], ) -> AddPermissionOutput: """ Adds a statement to a topic's access control policy, granting access @@ -149,8 +121,6 @@ async def add_permission( `SetTopicAttributes` actions in your IAM policy. Args: - input: - An instance of `AddPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -160,12 +130,34 @@ async def add_permission( Returns: An instance of `AddPermissionOutput`. """ - return await self._invoke(input, _models.ADD_PERMISSION, [], plugins) + async def add_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddPermissionOutput: + return await self._invoke( + self._select_input(_models.ADD_PERMISSION, args, kwargs), + _models.ADD_PERMISSION, + [], + plugins, + ) + + @_overload + async def check_if_phone_number_is_opted_out( + self, + request: _models.CheckIfPhoneNumberIsOptedOutInput + | _models.CheckIfPhoneNumberIsOptedOutInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CheckIfPhoneNumberIsOptedOutOutput: ... + + @_overload async def check_if_phone_number_is_opted_out( self, - input: CheckIfPhoneNumberIsOptedOutInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CheckIfPhoneNumberIsOptedOutInputDict], ) -> CheckIfPhoneNumberIsOptedOutOutput: """ Accepts a phone number and indicates whether the phone holder has opted @@ -176,8 +168,6 @@ async def check_if_phone_number_is_opted_out( `OptInPhoneNumber` action. Args: - input: - An instance of `CheckIfPhoneNumberIsOptedOutInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -187,12 +177,36 @@ async def check_if_phone_number_is_opted_out( Returns: An instance of `CheckIfPhoneNumberIsOptedOutOutput`. """ + + async def check_if_phone_number_is_opted_out( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CheckIfPhoneNumberIsOptedOutOutput: return await self._invoke( - input, _models.CHECK_IF_PHONE_NUMBER_IS_OPTED_OUT, [], plugins + self._select_input( + _models.CHECK_IF_PHONE_NUMBER_IS_OPTED_OUT, args, kwargs + ), + _models.CHECK_IF_PHONE_NUMBER_IS_OPTED_OUT, + [], + plugins, ) + @_overload async def confirm_subscription( - self, input: ConfirmSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.ConfirmSubscriptionInput + | _models.ConfirmSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ConfirmSubscriptionOutput: ... + + @_overload + async def confirm_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConfirmSubscriptionInputDict], ) -> ConfirmSubscriptionOutput: """ Verifies an endpoint owner's intent to receive messages by validating @@ -202,8 +216,6 @@ async def confirm_subscription( when the `AuthenticateOnUnsubscribe` flag is set to \"true\". Args: - input: - An instance of `ConfirmSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -213,10 +225,34 @@ async def confirm_subscription( Returns: An instance of `ConfirmSubscriptionOutput`. """ - return await self._invoke(input, _models.CONFIRM_SUBSCRIPTION, [], plugins) + async def confirm_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ConfirmSubscriptionOutput: + return await self._invoke( + self._select_input(_models.CONFIRM_SUBSCRIPTION, args, kwargs), + _models.CONFIRM_SUBSCRIPTION, + [], + plugins, + ) + + @_overload + async def create_platform_application( + self, + request: _models.CreatePlatformApplicationInput + | _models.CreatePlatformApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePlatformApplicationOutput: ... + + @_overload async def create_platform_application( - self, input: CreatePlatformApplicationInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePlatformApplicationInputDict], ) -> CreatePlatformApplicationOutput: """ Creates a platform application object for one of the supported push @@ -251,7 +287,7 @@ async def create_platform_application( Services SDKs, the file must be in string format and special characters must be ignored. To format the file correctly, Amazon SNS recommends using the following command: - `SERVICE_JSON=$$(jq @json < service.json)`. + `SERVICE_JSON=$(jq @json < service.json)`. - For MPNS, `PlatformPrincipal` is `TLS certificate` and `PlatformCredential` is `private key`. @@ -263,8 +299,6 @@ async def create_platform_application( the `CreatePlatformEndpoint` action. Args: - input: - An instance of `CreatePlatformApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -274,12 +308,34 @@ async def create_platform_application( Returns: An instance of `CreatePlatformApplicationOutput`. """ + + async def create_platform_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePlatformApplicationOutput: return await self._invoke( - input, _models.CREATE_PLATFORM_APPLICATION, [], plugins + self._select_input(_models.CREATE_PLATFORM_APPLICATION, args, kwargs), + _models.CREATE_PLATFORM_APPLICATION, + [], + plugins, ) + @_overload async def create_platform_endpoint( - self, input: CreatePlatformEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.CreatePlatformEndpointInput + | _models.CreatePlatformEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePlatformEndpointOutput: ... + + @_overload + async def create_platform_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePlatformEndpointInputDict], ) -> CreatePlatformEndpointOutput: """ Creates an endpoint for a device and mobile app on one of the supported @@ -301,8 +357,6 @@ async def create_platform_endpoint( Baidu](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html). Args: - input: - An instance of `CreatePlatformEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -312,12 +366,34 @@ async def create_platform_endpoint( Returns: An instance of `CreatePlatformEndpointOutput`. """ - return await self._invoke(input, _models.CREATE_PLATFORM_ENDPOINT, [], plugins) + async def create_platform_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePlatformEndpointOutput: + return await self._invoke( + self._select_input(_models.CREATE_PLATFORM_ENDPOINT, args, kwargs), + _models.CREATE_PLATFORM_ENDPOINT, + [], + plugins, + ) + + @_overload + async def create_sms_sandbox_phone_number( + self, + request: _models.CreateSMSSandboxPhoneNumberInput + | _models.CreateSMSSandboxPhoneNumberInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateSMSSandboxPhoneNumberOutput: ... + + @_overload async def create_sms_sandbox_phone_number( self, - input: CreateSMSSandboxPhoneNumberInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSMSSandboxPhoneNumberInputDict], ) -> CreateSMSSandboxPhoneNumberOutput: """ Adds a destination phone number to an Amazon Web Services account in the @@ -335,8 +411,6 @@ async def create_sms_sandbox_phone_number( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `CreateSMSSandboxPhoneNumberInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -346,12 +420,33 @@ async def create_sms_sandbox_phone_number( Returns: An instance of `CreateSMSSandboxPhoneNumberOutput`. """ + + async def create_sms_sandbox_phone_number( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSMSSandboxPhoneNumberOutput: return await self._invoke( - input, _models.CREATE_SMS_SANDBOX_PHONE_NUMBER, [], plugins + self._select_input(_models.CREATE_SMS_SANDBOX_PHONE_NUMBER, args, kwargs), + _models.CREATE_SMS_SANDBOX_PHONE_NUMBER, + [], + plugins, ) + @_overload async def create_topic( - self, input: CreateTopicInput, plugins: list[Plugin] | None = None + self, + request: _models.CreateTopicInput | _models.CreateTopicInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTopicOutput: ... + + @_overload + async def create_topic( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTopicInputDict], ) -> CreateTopicOutput: """ Creates a topic to which notifications can be published. Users can @@ -363,8 +458,6 @@ async def create_topic( topic's ARN is returned without creating a new topic. Args: - input: - An instance of `CreateTopicInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -374,10 +467,33 @@ async def create_topic( Returns: An instance of `CreateTopicOutput`. """ - return await self._invoke(input, _models.CREATE_TOPIC, [], plugins) + async def create_topic( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTopicOutput: + return await self._invoke( + self._select_input(_models.CREATE_TOPIC, args, kwargs), + _models.CREATE_TOPIC, + [], + plugins, + ) + + @_overload + async def delete_endpoint( + self, + request: _models.DeleteEndpointInput | _models.DeleteEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEndpointOutput: ... + + @_overload async def delete_endpoint( - self, input: DeleteEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEndpointInputDict], ) -> DeleteEndpointOutput: """ Deletes the endpoint for a device and mobile app from Amazon SNS. This @@ -389,8 +505,6 @@ async def delete_endpoint( must also unsubscribe the endpoint from the topic. Args: - input: - An instance of `DeleteEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -400,10 +514,34 @@ async def delete_endpoint( Returns: An instance of `DeleteEndpointOutput`. """ - return await self._invoke(input, _models.DELETE_ENDPOINT, [], plugins) + async def delete_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEndpointOutput: + return await self._invoke( + self._select_input(_models.DELETE_ENDPOINT, args, kwargs), + _models.DELETE_ENDPOINT, + [], + plugins, + ) + + @_overload async def delete_platform_application( - self, input: DeletePlatformApplicationInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePlatformApplicationInput + | _models.DeletePlatformApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePlatformApplicationOutput: ... + + @_overload + async def delete_platform_application( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePlatformApplicationInputDict], ) -> DeletePlatformApplicationOutput: """ Deletes a platform application object for one of the supported push @@ -412,8 +550,6 @@ async def delete_platform_application( Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). Args: - input: - An instance of `DeletePlatformApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -423,14 +559,34 @@ async def delete_platform_application( Returns: An instance of `DeletePlatformApplicationOutput`. """ + + async def delete_platform_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePlatformApplicationOutput: return await self._invoke( - input, _models.DELETE_PLATFORM_APPLICATION, [], plugins + self._select_input(_models.DELETE_PLATFORM_APPLICATION, args, kwargs), + _models.DELETE_PLATFORM_APPLICATION, + [], + plugins, ) + @_overload async def delete_sms_sandbox_phone_number( self, - input: DeleteSMSSandboxPhoneNumberInput, + request: _models.DeleteSMSSandboxPhoneNumberInput + | _models.DeleteSMSSandboxPhoneNumberInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DeleteSMSSandboxPhoneNumberOutput: ... + + @_overload + async def delete_sms_sandbox_phone_number( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSMSSandboxPhoneNumberInputDict], ) -> DeleteSMSSandboxPhoneNumberOutput: """ Deletes an Amazon Web Services account's verified or pending phone @@ -448,8 +604,6 @@ async def delete_sms_sandbox_phone_number( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `DeleteSMSSandboxPhoneNumberInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -459,12 +613,33 @@ async def delete_sms_sandbox_phone_number( Returns: An instance of `DeleteSMSSandboxPhoneNumberOutput`. """ + + async def delete_sms_sandbox_phone_number( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSMSSandboxPhoneNumberOutput: return await self._invoke( - input, _models.DELETE_SMS_SANDBOX_PHONE_NUMBER, [], plugins + self._select_input(_models.DELETE_SMS_SANDBOX_PHONE_NUMBER, args, kwargs), + _models.DELETE_SMS_SANDBOX_PHONE_NUMBER, + [], + plugins, ) + @_overload + async def delete_topic( + self, + request: _models.DeleteTopicInput | _models.DeleteTopicInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTopicOutput: ... + + @_overload async def delete_topic( - self, input: DeleteTopicInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTopicInputDict], ) -> DeleteTopicOutput: """ Deletes a topic and all its subscriptions. Deleting a topic might @@ -473,8 +648,6 @@ async def delete_topic( not exist does not result in an error. Args: - input: - An instance of `DeleteTopicInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -484,10 +657,34 @@ async def delete_topic( Returns: An instance of `DeleteTopicOutput`. """ - return await self._invoke(input, _models.DELETE_TOPIC, [], plugins) + async def delete_topic( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTopicOutput: + return await self._invoke( + self._select_input(_models.DELETE_TOPIC, args, kwargs), + _models.DELETE_TOPIC, + [], + plugins, + ) + + @_overload + async def get_data_protection_policy( + self, + request: _models.GetDataProtectionPolicyInput + | _models.GetDataProtectionPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataProtectionPolicyOutput: ... + + @_overload async def get_data_protection_policy( - self, input: GetDataProtectionPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataProtectionPolicyInputDict], ) -> GetDataProtectionPolicyOutput: """ Warning: @@ -500,8 +697,6 @@ async def get_data_protection_policy( stored in the specified Amazon SNS topic. Args: - input: - An instance of `GetDataProtectionPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -511,12 +706,34 @@ async def get_data_protection_policy( Returns: An instance of `GetDataProtectionPolicyOutput`. """ + + async def get_data_protection_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataProtectionPolicyOutput: return await self._invoke( - input, _models.GET_DATA_PROTECTION_POLICY, [], plugins + self._select_input(_models.GET_DATA_PROTECTION_POLICY, args, kwargs), + _models.GET_DATA_PROTECTION_POLICY, + [], + plugins, ) + @_overload + async def get_endpoint_attributes( + self, + request: _models.GetEndpointAttributesInput + | _models.GetEndpointAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEndpointAttributesOutput: ... + + @_overload async def get_endpoint_attributes( - self, input: GetEndpointAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEndpointAttributesInputDict], ) -> GetEndpointAttributesOutput: """ Retrieves the endpoint attributes for a device on one of the supported @@ -525,8 +742,6 @@ async def get_endpoint_attributes( Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). Args: - input: - An instance of `GetEndpointAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -536,12 +751,34 @@ async def get_endpoint_attributes( Returns: An instance of `GetEndpointAttributesOutput`. """ - return await self._invoke(input, _models.GET_ENDPOINT_ATTRIBUTES, [], plugins) + async def get_endpoint_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEndpointAttributesOutput: + return await self._invoke( + self._select_input(_models.GET_ENDPOINT_ATTRIBUTES, args, kwargs), + _models.GET_ENDPOINT_ATTRIBUTES, + [], + plugins, + ) + + @_overload async def get_platform_application_attributes( self, - input: GetPlatformApplicationAttributesInput, + request: _models.GetPlatformApplicationAttributesInput + | _models.GetPlatformApplicationAttributesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetPlatformApplicationAttributesOutput: ... + + @_overload + async def get_platform_application_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPlatformApplicationAttributesInputDict], ) -> GetPlatformApplicationAttributesOutput: """ Retrieves the attributes of the platform application object for the @@ -551,8 +788,6 @@ async def get_platform_application_attributes( Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). Args: - input: - An instance of `GetPlatformApplicationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -562,12 +797,35 @@ async def get_platform_application_attributes( Returns: An instance of `GetPlatformApplicationAttributesOutput`. """ + + async def get_platform_application_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPlatformApplicationAttributesOutput: return await self._invoke( - input, _models.GET_PLATFORM_APPLICATION_ATTRIBUTES, [], plugins + self._select_input( + _models.GET_PLATFORM_APPLICATION_ATTRIBUTES, args, kwargs + ), + _models.GET_PLATFORM_APPLICATION_ATTRIBUTES, + [], + plugins, ) + @_overload async def get_sms_attributes( - self, input: GetSMSAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSMSAttributesInput | _models.GetSMSAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSMSAttributesOutput: ... + + @_overload + async def get_sms_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSMSAttributesInputDict], ) -> GetSMSAttributesOutput: """ Returns the settings for sending SMS messages from your Amazon Web @@ -576,8 +834,6 @@ async def get_sms_attributes( These settings are set with the `SetSMSAttributes` action. Args: - input: - An instance of `GetSMSAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -587,12 +843,34 @@ async def get_sms_attributes( Returns: An instance of `GetSMSAttributesOutput`. """ - return await self._invoke(input, _models.GET_SMS_ATTRIBUTES, [], plugins) + async def get_sms_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSMSAttributesOutput: + return await self._invoke( + self._select_input(_models.GET_SMS_ATTRIBUTES, args, kwargs), + _models.GET_SMS_ATTRIBUTES, + [], + plugins, + ) + + @_overload + async def get_sms_sandbox_account_status( + self, + request: _models.GetSMSSandboxAccountStatusInput + | _models.GetSMSSandboxAccountStatusInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSMSSandboxAccountStatusOutput: ... + + @_overload async def get_sms_sandbox_account_status( self, - input: GetSMSSandboxAccountStatusInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSMSSandboxAccountStatusInputDict], ) -> GetSMSSandboxAccountStatusOutput: """ Retrieves the SMS sandbox status for the calling Amazon Web Services @@ -610,8 +888,6 @@ async def get_sms_sandbox_account_status( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `GetSMSSandboxAccountStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -621,19 +897,39 @@ async def get_sms_sandbox_account_status( Returns: An instance of `GetSMSSandboxAccountStatusOutput`. """ + + async def get_sms_sandbox_account_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSMSSandboxAccountStatusOutput: return await self._invoke( - input, _models.GET_SMS_SANDBOX_ACCOUNT_STATUS, [], plugins + self._select_input(_models.GET_SMS_SANDBOX_ACCOUNT_STATUS, args, kwargs), + _models.GET_SMS_SANDBOX_ACCOUNT_STATUS, + [], + plugins, ) + @_overload + async def get_subscription_attributes( + self, + request: _models.GetSubscriptionAttributesInput + | _models.GetSubscriptionAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSubscriptionAttributesOutput: ... + + @_overload async def get_subscription_attributes( - self, input: GetSubscriptionAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSubscriptionAttributesInputDict], ) -> GetSubscriptionAttributesOutput: """ Returns all of the properties of a subscription. Args: - input: - An instance of `GetSubscriptionAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -643,20 +939,39 @@ async def get_subscription_attributes( Returns: An instance of `GetSubscriptionAttributesOutput`. """ + + async def get_subscription_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSubscriptionAttributesOutput: return await self._invoke( - input, _models.GET_SUBSCRIPTION_ATTRIBUTES, [], plugins + self._select_input(_models.GET_SUBSCRIPTION_ATTRIBUTES, args, kwargs), + _models.GET_SUBSCRIPTION_ATTRIBUTES, + [], + plugins, ) + @_overload async def get_topic_attributes( - self, input: GetTopicAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetTopicAttributesInput | _models.GetTopicAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTopicAttributesOutput: ... + + @_overload + async def get_topic_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTopicAttributesInputDict], ) -> GetTopicAttributesOutput: """ Returns all of the properties of a topic. Topic properties returned might differ based on the authorization of the user. Args: - input: - An instance of `GetTopicAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -666,12 +981,34 @@ async def get_topic_attributes( Returns: An instance of `GetTopicAttributesOutput`. """ - return await self._invoke(input, _models.GET_TOPIC_ATTRIBUTES, [], plugins) + async def get_topic_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTopicAttributesOutput: + return await self._invoke( + self._select_input(_models.GET_TOPIC_ATTRIBUTES, args, kwargs), + _models.GET_TOPIC_ATTRIBUTES, + [], + plugins, + ) + + @_overload async def list_endpoints_by_platform_application( self, - input: ListEndpointsByPlatformApplicationInput, + request: _models.ListEndpointsByPlatformApplicationInput + | _models.ListEndpointsByPlatformApplicationInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListEndpointsByPlatformApplicationOutput: ... + + @_overload + async def list_endpoints_by_platform_application( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEndpointsByPlatformApplicationInputDict], ) -> ListEndpointsByPlatformApplicationOutput: """ Lists the endpoints and endpoint attributes for devices in a supported @@ -689,8 +1026,6 @@ async def list_endpoints_by_platform_application( This action is throttled at 30 transactions per second (TPS). Args: - input: - An instance of `ListEndpointsByPlatformApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -700,12 +1035,36 @@ async def list_endpoints_by_platform_application( Returns: An instance of `ListEndpointsByPlatformApplicationOutput`. """ + + async def list_endpoints_by_platform_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEndpointsByPlatformApplicationOutput: return await self._invoke( - input, _models.LIST_ENDPOINTS_BY_PLATFORM_APPLICATION, [], plugins + self._select_input( + _models.LIST_ENDPOINTS_BY_PLATFORM_APPLICATION, args, kwargs + ), + _models.LIST_ENDPOINTS_BY_PLATFORM_APPLICATION, + [], + plugins, ) + @_overload async def list_origination_numbers( - self, input: ListOriginationNumbersInput, plugins: list[Plugin] | None = None + self, + request: _models.ListOriginationNumbersInput + | _models.ListOriginationNumbersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListOriginationNumbersOutput: ... + + @_overload + async def list_origination_numbers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOriginationNumbersInputDict], ) -> ListOriginationNumbersOutput: """ Lists the calling Amazon Web Services account's dedicated origination @@ -715,8 +1074,6 @@ async def list_origination_numbers( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `ListOriginationNumbersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -726,10 +1083,34 @@ async def list_origination_numbers( Returns: An instance of `ListOriginationNumbersOutput`. """ - return await self._invoke(input, _models.LIST_ORIGINATION_NUMBERS, [], plugins) + async def list_origination_numbers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOriginationNumbersOutput: + return await self._invoke( + self._select_input(_models.LIST_ORIGINATION_NUMBERS, args, kwargs), + _models.LIST_ORIGINATION_NUMBERS, + [], + plugins, + ) + + @_overload + async def list_phone_numbers_opted_out( + self, + request: _models.ListPhoneNumbersOptedOutInput + | _models.ListPhoneNumbersOptedOutInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPhoneNumbersOptedOutOutput: ... + + @_overload async def list_phone_numbers_opted_out( - self, input: ListPhoneNumbersOptedOutInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPhoneNumbersOptedOutInputDict], ) -> ListPhoneNumbersOptedOutOutput: """ Returns a list of phone numbers that are opted out, meaning you cannot @@ -744,8 +1125,6 @@ async def list_phone_numbers_opted_out( `NextToken` will be null. Args: - input: - An instance of `ListPhoneNumbersOptedOutInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -755,12 +1134,34 @@ async def list_phone_numbers_opted_out( Returns: An instance of `ListPhoneNumbersOptedOutOutput`. """ + + async def list_phone_numbers_opted_out( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPhoneNumbersOptedOutOutput: return await self._invoke( - input, _models.LIST_PHONE_NUMBERS_OPTED_OUT, [], plugins + self._select_input(_models.LIST_PHONE_NUMBERS_OPTED_OUT, args, kwargs), + _models.LIST_PHONE_NUMBERS_OPTED_OUT, + [], + plugins, ) + @_overload + async def list_platform_applications( + self, + request: _models.ListPlatformApplicationsInput + | _models.ListPlatformApplicationsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPlatformApplicationsOutput: ... + + @_overload async def list_platform_applications( - self, input: ListPlatformApplicationsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPlatformApplicationsInputDict], ) -> ListPlatformApplicationsOutput: """ Lists the platform application objects for the supported push @@ -777,8 +1178,6 @@ async def list_platform_applications( This action is throttled at 15 transactions per second (TPS). Args: - input: - An instance of `ListPlatformApplicationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -788,14 +1187,34 @@ async def list_platform_applications( Returns: An instance of `ListPlatformApplicationsOutput`. """ + + async def list_platform_applications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPlatformApplicationsOutput: return await self._invoke( - input, _models.LIST_PLATFORM_APPLICATIONS, [], plugins + self._select_input(_models.LIST_PLATFORM_APPLICATIONS, args, kwargs), + _models.LIST_PLATFORM_APPLICATIONS, + [], + plugins, ) + @_overload async def list_sms_sandbox_phone_numbers( self, - input: ListSMSSandboxPhoneNumbersInput, + request: _models.ListSMSSandboxPhoneNumbersInput + | _models.ListSMSSandboxPhoneNumbersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListSMSSandboxPhoneNumbersOutput: ... + + @_overload + async def list_sms_sandbox_phone_numbers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSMSSandboxPhoneNumbersInputDict], ) -> ListSMSSandboxPhoneNumbersOutput: """ Lists the calling Amazon Web Services account's current verified and @@ -813,8 +1232,6 @@ async def list_sms_sandbox_phone_numbers( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `ListSMSSandboxPhoneNumbersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -824,12 +1241,33 @@ async def list_sms_sandbox_phone_numbers( Returns: An instance of `ListSMSSandboxPhoneNumbersOutput`. """ + + async def list_sms_sandbox_phone_numbers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSMSSandboxPhoneNumbersOutput: return await self._invoke( - input, _models.LIST_SMS_SANDBOX_PHONE_NUMBERS, [], plugins + self._select_input(_models.LIST_SMS_SANDBOX_PHONE_NUMBERS, args, kwargs), + _models.LIST_SMS_SANDBOX_PHONE_NUMBERS, + [], + plugins, ) + @_overload + async def list_subscriptions( + self, + request: _models.ListSubscriptionsInput | _models.ListSubscriptionsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSubscriptionsOutput: ... + + @_overload async def list_subscriptions( - self, input: ListSubscriptionsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSubscriptionsInputDict], ) -> ListSubscriptionsOutput: """ Returns a list of the requester's subscriptions. Each call returns a @@ -840,8 +1278,6 @@ async def list_subscriptions( This action is throttled at 30 transactions per second (TPS). Args: - input: - An instance of `ListSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -851,10 +1287,34 @@ async def list_subscriptions( Returns: An instance of `ListSubscriptionsOutput`. """ - return await self._invoke(input, _models.LIST_SUBSCRIPTIONS, [], plugins) + async def list_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSubscriptionsOutput: + return await self._invoke( + self._select_input(_models.LIST_SUBSCRIPTIONS, args, kwargs), + _models.LIST_SUBSCRIPTIONS, + [], + plugins, + ) + + @_overload async def list_subscriptions_by_topic( - self, input: ListSubscriptionsByTopicInput, plugins: list[Plugin] | None = None + self, + request: _models.ListSubscriptionsByTopicInput + | _models.ListSubscriptionsByTopicInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSubscriptionsByTopicOutput: ... + + @_overload + async def list_subscriptions_by_topic( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSubscriptionsByTopicInputDict], ) -> ListSubscriptionsByTopicOutput: """ Returns a list of the subscriptions to a specific topic. Each call @@ -866,8 +1326,6 @@ async def list_subscriptions_by_topic( This action is throttled at 30 transactions per second (TPS). Args: - input: - An instance of `ListSubscriptionsByTopicInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -877,12 +1335,34 @@ async def list_subscriptions_by_topic( Returns: An instance of `ListSubscriptionsByTopicOutput`. """ + + async def list_subscriptions_by_topic( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSubscriptionsByTopicOutput: return await self._invoke( - input, _models.LIST_SUBSCRIPTIONS_BY_TOPIC, [], plugins + self._select_input(_models.LIST_SUBSCRIPTIONS_BY_TOPIC, args, kwargs), + _models.LIST_SUBSCRIPTIONS_BY_TOPIC, + [], + plugins, ) + @_overload + async def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload async def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List all tags added to the specified Amazon SNS topic. For an overview, @@ -891,8 +1371,6 @@ async def list_tags_for_resource( *Amazon Simple Notification Service Developer Guide*. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -902,10 +1380,33 @@ async def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return await self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + async def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return await self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload + async def list_topics( + self, + request: _models.ListTopicsInput | _models.ListTopicsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTopicsOutput: ... + + @_overload async def list_topics( - self, input: ListTopicsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTopicsInputDict], ) -> ListTopicsOutput: """ Returns a list of the requester's topics. Each call returns a limited @@ -916,8 +1417,6 @@ async def list_topics( This action is throttled at 30 transactions per second (TPS). Args: - input: - An instance of `ListTopicsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -927,10 +1426,33 @@ async def list_topics( Returns: An instance of `ListTopicsOutput`. """ - return await self._invoke(input, _models.LIST_TOPICS, [], plugins) + async def list_topics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTopicsOutput: + return await self._invoke( + self._select_input(_models.LIST_TOPICS, args, kwargs), + _models.LIST_TOPICS, + [], + plugins, + ) + + @_overload async def opt_in_phone_number( - self, input: OptInPhoneNumberInput, plugins: list[Plugin] | None = None + self, + request: _models.OptInPhoneNumberInput | _models.OptInPhoneNumberInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> OptInPhoneNumberOutput: ... + + @_overload + async def opt_in_phone_number( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.OptInPhoneNumberInputDict], ) -> OptInPhoneNumberOutput: """ Use this request to opt in a phone number that is opted out, which @@ -939,8 +1461,6 @@ async def opt_in_phone_number( You can opt in a phone number only once every 30 days. Args: - input: - An instance of `OptInPhoneNumberInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -950,10 +1470,33 @@ async def opt_in_phone_number( Returns: An instance of `OptInPhoneNumberOutput`. """ - return await self._invoke(input, _models.OPT_IN_PHONE_NUMBER, [], plugins) + async def opt_in_phone_number( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> OptInPhoneNumberOutput: + return await self._invoke( + self._select_input(_models.OPT_IN_PHONE_NUMBER, args, kwargs), + _models.OPT_IN_PHONE_NUMBER, + [], + plugins, + ) + + @_overload + async def publish( + self, + request: _models.PublishInput | _models.PublishInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishOutput: ... + + @_overload async def publish( - self, input: PublishInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishInputDict], ) -> PublishOutput: """ Sends a message to an Amazon SNS topic, a text message (SMS message) @@ -981,8 +1524,6 @@ async def publish( Web Services Region. Args: - input: - An instance of `PublishInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -992,10 +1533,33 @@ async def publish( Returns: An instance of `PublishOutput`. """ - return await self._invoke(input, _models.PUBLISH, [], plugins) + async def publish( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishOutput: + return await self._invoke( + self._select_input(_models.PUBLISH, args, kwargs), + _models.PUBLISH, + [], + plugins, + ) + + @_overload + async def publish_batch( + self, + request: _models.PublishBatchInput | _models.PublishBatchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishBatchOutput: ... + + @_overload async def publish_batch( - self, input: PublishBatchInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishBatchInputDict], ) -> PublishBatchOutput: """ Publishes up to 10 messages to the specified topic in a single batch. @@ -1048,8 +1612,6 @@ async def publish_batch( SNS immediately delivers the message to subscribers. Args: - input: - An instance of `PublishBatchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1059,10 +1621,34 @@ async def publish_batch( Returns: An instance of `PublishBatchOutput`. """ - return await self._invoke(input, _models.PUBLISH_BATCH, [], plugins) + async def publish_batch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishBatchOutput: + return await self._invoke( + self._select_input(_models.PUBLISH_BATCH, args, kwargs), + _models.PUBLISH_BATCH, + [], + plugins, + ) + + @_overload async def put_data_protection_policy( - self, input: PutDataProtectionPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutDataProtectionPolicyInput + | _models.PutDataProtectionPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutDataProtectionPolicyOutput: ... + + @_overload + async def put_data_protection_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutDataProtectionPolicyInputDict], ) -> PutDataProtectionPolicyOutput: """ Warning: @@ -1075,8 +1661,6 @@ async def put_data_protection_policy( specified Amazon SNS topic. Args: - input: - An instance of `PutDataProtectionPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1086,12 +1670,33 @@ async def put_data_protection_policy( Returns: An instance of `PutDataProtectionPolicyOutput`. """ + + async def put_data_protection_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutDataProtectionPolicyOutput: return await self._invoke( - input, _models.PUT_DATA_PROTECTION_POLICY, [], plugins + self._select_input(_models.PUT_DATA_PROTECTION_POLICY, args, kwargs), + _models.PUT_DATA_PROTECTION_POLICY, + [], + plugins, ) + @_overload + async def remove_permission( + self, + request: _models.RemovePermissionInput | _models.RemovePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemovePermissionOutput: ... + + @_overload async def remove_permission( - self, input: RemovePermissionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemovePermissionInputDict], ) -> RemovePermissionOutput: """ Removes a statement from a topic's access control policy. @@ -1102,8 +1707,6 @@ async def remove_permission( `SetTopicAttributes` actions in your IAM policy. Args: - input: - An instance of `RemovePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1113,10 +1716,34 @@ async def remove_permission( Returns: An instance of `RemovePermissionOutput`. """ - return await self._invoke(input, _models.REMOVE_PERMISSION, [], plugins) + async def remove_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemovePermissionOutput: + return await self._invoke( + self._select_input(_models.REMOVE_PERMISSION, args, kwargs), + _models.REMOVE_PERMISSION, + [], + plugins, + ) + + @_overload async def set_endpoint_attributes( - self, input: SetEndpointAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetEndpointAttributesInput + | _models.SetEndpointAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetEndpointAttributesOutput: ... + + @_overload + async def set_endpoint_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetEndpointAttributesInputDict], ) -> SetEndpointAttributesOutput: """ Sets the attributes for an endpoint for a device on one of the supported @@ -1125,8 +1752,6 @@ async def set_endpoint_attributes( Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). Args: - input: - An instance of `SetEndpointAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1136,12 +1761,34 @@ async def set_endpoint_attributes( Returns: An instance of `SetEndpointAttributesOutput`. """ - return await self._invoke(input, _models.SET_ENDPOINT_ATTRIBUTES, [], plugins) + async def set_endpoint_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetEndpointAttributesOutput: + return await self._invoke( + self._select_input(_models.SET_ENDPOINT_ATTRIBUTES, args, kwargs), + _models.SET_ENDPOINT_ATTRIBUTES, + [], + plugins, + ) + + @_overload async def set_platform_application_attributes( self, - input: SetPlatformApplicationAttributesInput, + request: _models.SetPlatformApplicationAttributesInput + | _models.SetPlatformApplicationAttributesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> SetPlatformApplicationAttributesOutput: ... + + @_overload + async def set_platform_application_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetPlatformApplicationAttributesInputDict], ) -> SetPlatformApplicationAttributesOutput: """ Sets the attributes of the platform application object for the supported @@ -1153,8 +1800,6 @@ async def set_platform_application_attributes( Status](https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html). Args: - input: - An instance of `SetPlatformApplicationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1164,12 +1809,35 @@ async def set_platform_application_attributes( Returns: An instance of `SetPlatformApplicationAttributesOutput`. """ + + async def set_platform_application_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetPlatformApplicationAttributesOutput: return await self._invoke( - input, _models.SET_PLATFORM_APPLICATION_ATTRIBUTES, [], plugins + self._select_input( + _models.SET_PLATFORM_APPLICATION_ATTRIBUTES, args, kwargs + ), + _models.SET_PLATFORM_APPLICATION_ATTRIBUTES, + [], + plugins, ) + @_overload async def set_sms_attributes( - self, input: SetSMSAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetSMSAttributesInput | _models.SetSMSAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetSMSAttributesOutput: ... + + @_overload + async def set_sms_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetSMSAttributesInputDict], ) -> SetSMSAttributesOutput: """ Use this request to set the default settings for sending SMS messages @@ -1186,8 +1854,6 @@ async def set_sms_attributes( (`sns.amazonaws.com`) permission to perform the `s3:ListBucket` action. Args: - input: - An instance of `SetSMSAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1197,18 +1863,40 @@ async def set_sms_attributes( Returns: An instance of `SetSMSAttributesOutput`. """ - return await self._invoke(input, _models.SET_SMS_ATTRIBUTES, [], plugins) + async def set_sms_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetSMSAttributesOutput: + return await self._invoke( + self._select_input(_models.SET_SMS_ATTRIBUTES, args, kwargs), + _models.SET_SMS_ATTRIBUTES, + [], + plugins, + ) + + @_overload async def set_subscription_attributes( - self, input: SetSubscriptionAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetSubscriptionAttributesInput + | _models.SetSubscriptionAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetSubscriptionAttributesOutput: ... + + @_overload + async def set_subscription_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetSubscriptionAttributesInputDict], ) -> SetSubscriptionAttributesOutput: """ Allows a subscription owner to set an attribute of the subscription to a new value. Args: - input: - An instance of `SetSubscriptionAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1218,12 +1906,33 @@ async def set_subscription_attributes( Returns: An instance of `SetSubscriptionAttributesOutput`. """ + + async def set_subscription_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetSubscriptionAttributesOutput: return await self._invoke( - input, _models.SET_SUBSCRIPTION_ATTRIBUTES, [], plugins + self._select_input(_models.SET_SUBSCRIPTION_ATTRIBUTES, args, kwargs), + _models.SET_SUBSCRIPTION_ATTRIBUTES, + [], + plugins, ) + @_overload + async def set_topic_attributes( + self, + request: _models.SetTopicAttributesInput | _models.SetTopicAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetTopicAttributesOutput: ... + + @_overload async def set_topic_attributes( - self, input: SetTopicAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetTopicAttributesInputDict], ) -> SetTopicAttributesOutput: """ Allows a topic owner to set an attribute of the topic to a new value. @@ -1234,8 +1943,6 @@ async def set_topic_attributes( `SetTopicAttributes` actions in your IAM policy. Args: - input: - An instance of `SetTopicAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1245,10 +1952,33 @@ async def set_topic_attributes( Returns: An instance of `SetTopicAttributesOutput`. """ - return await self._invoke(input, _models.SET_TOPIC_ATTRIBUTES, [], plugins) + async def set_topic_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetTopicAttributesOutput: + return await self._invoke( + self._select_input(_models.SET_TOPIC_ATTRIBUTES, args, kwargs), + _models.SET_TOPIC_ATTRIBUTES, + [], + plugins, + ) + + @_overload async def subscribe( - self, input: SubscribeInput, plugins: list[Plugin] | None = None + self, + request: _models.SubscribeInput | _models.SubscribeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubscribeOutput: ... + + @_overload + async def subscribe( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubscribeInputDict], ) -> SubscribeOutput: """ Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is @@ -1262,8 +1992,6 @@ async def subscribe( This action is throttled at 100 transactions per second (TPS). Args: - input: - An instance of `SubscribeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1273,10 +2001,33 @@ async def subscribe( Returns: An instance of `SubscribeOutput`. """ - return await self._invoke(input, _models.SUBSCRIBE, [], plugins) + async def subscribe( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubscribeOutput: + return await self._invoke( + self._select_input(_models.SUBSCRIBE, args, kwargs), + _models.SUBSCRIBE, + [], + plugins, + ) + + @_overload + async def tag_resource( + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload async def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Add tags to the specified Amazon SNS topic. For an overview, see [Amazon @@ -1301,8 +2052,6 @@ async def tag_resource( request](https://console.aws.amazon.com/support/home#/case/create?issueType=technical). Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1312,10 +2061,33 @@ async def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return await self._invoke(input, _models.TAG_RESOURCE, [], plugins) + async def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return await self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def unsubscribe( + self, + request: _models.UnsubscribeInput | _models.UnsubscribeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnsubscribeOutput: ... + + @_overload async def unsubscribe( - self, input: UnsubscribeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnsubscribeInputDict], ) -> UnsubscribeOutput: """ Deletes a subscription. If the subscription requires authentication for @@ -1329,8 +2101,6 @@ async def unsubscribe( This action is throttled at 100 transactions per second (TPS). Args: - input: - An instance of `UnsubscribeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1340,10 +2110,33 @@ async def unsubscribe( Returns: An instance of `UnsubscribeOutput`. """ - return await self._invoke(input, _models.UNSUBSCRIBE, [], plugins) + async def unsubscribe( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnsubscribeOutput: + return await self._invoke( + self._select_input(_models.UNSUBSCRIBE, args, kwargs), + _models.UNSUBSCRIBE, + [], + plugins, + ) + + @_overload async def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + async def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove tags from the specified Amazon SNS topic. For an overview, see @@ -1352,8 +2145,6 @@ async def untag_resource( *Amazon SNS Developer Guide*. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1363,12 +2154,34 @@ async def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return await self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + async def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return await self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload + async def verify_sms_sandbox_phone_number( + self, + request: _models.VerifySMSSandboxPhoneNumberInput + | _models.VerifySMSSandboxPhoneNumberInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> VerifySMSSandboxPhoneNumberOutput: ... + + @_overload async def verify_sms_sandbox_phone_number( self, - input: VerifySMSSandboxPhoneNumberInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.VerifySMSSandboxPhoneNumberInputDict], ) -> VerifySMSSandboxPhoneNumberOutput: """ Verifies a destination phone number with a one-time password (OTP) for @@ -1386,8 +2199,6 @@ async def verify_sms_sandbox_phone_number( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `VerifySMSSandboxPhoneNumberInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1397,8 +2208,15 @@ async def verify_sms_sandbox_phone_number( Returns: An instance of `VerifySMSSandboxPhoneNumberOutput`. """ + + async def verify_sms_sandbox_phone_number( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> VerifySMSSandboxPhoneNumberOutput: return await self._invoke( - input, _models.VERIFY_SMS_SANDBOX_PHONE_NUMBER, [], plugins + self._select_input(_models.VERIFY_SMS_SANDBOX_PHONE_NUMBER, args, kwargs), + _models.VERIFY_SMS_SANDBOX_PHONE_NUMBER, + [], + plugins, ) async def _new_config(self) -> AsyncSNSConfig: diff --git a/clients/aws-sdk-sns/src/aws_sdk_sns/client.py b/clients/aws-sdk-sns/src/aws_sdk_sns/client.py index 5655bdb57..3c1b36c85 100644 --- a/clients/aws-sdk-sns/src/aws_sdk_sns/client.py +++ b/clients/aws-sdk-sns/src/aws_sdk_sns/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,89 +20,47 @@ if TYPE_CHECKING: from .models import ( - AddPermissionInput, AddPermissionOutput, - CheckIfPhoneNumberIsOptedOutInput, CheckIfPhoneNumberIsOptedOutOutput, - ConfirmSubscriptionInput, ConfirmSubscriptionOutput, - CreatePlatformApplicationInput, CreatePlatformApplicationOutput, - CreatePlatformEndpointInput, CreatePlatformEndpointOutput, - CreateSMSSandboxPhoneNumberInput, CreateSMSSandboxPhoneNumberOutput, - CreateTopicInput, CreateTopicOutput, - DeleteEndpointInput, DeleteEndpointOutput, - DeletePlatformApplicationInput, DeletePlatformApplicationOutput, - DeleteSMSSandboxPhoneNumberInput, DeleteSMSSandboxPhoneNumberOutput, - DeleteTopicInput, DeleteTopicOutput, - GetDataProtectionPolicyInput, GetDataProtectionPolicyOutput, - GetEndpointAttributesInput, GetEndpointAttributesOutput, - GetPlatformApplicationAttributesInput, GetPlatformApplicationAttributesOutput, - GetSMSAttributesInput, GetSMSAttributesOutput, - GetSMSSandboxAccountStatusInput, GetSMSSandboxAccountStatusOutput, - GetSubscriptionAttributesInput, GetSubscriptionAttributesOutput, - GetTopicAttributesInput, GetTopicAttributesOutput, - ListEndpointsByPlatformApplicationInput, ListEndpointsByPlatformApplicationOutput, - ListOriginationNumbersInput, ListOriginationNumbersOutput, - ListPhoneNumbersOptedOutInput, ListPhoneNumbersOptedOutOutput, - ListPlatformApplicationsInput, ListPlatformApplicationsOutput, - ListSMSSandboxPhoneNumbersInput, ListSMSSandboxPhoneNumbersOutput, - ListSubscriptionsByTopicInput, ListSubscriptionsByTopicOutput, - ListSubscriptionsInput, ListSubscriptionsOutput, - ListTagsForResourceInput, ListTagsForResourceOutput, - ListTopicsInput, ListTopicsOutput, - OptInPhoneNumberInput, OptInPhoneNumberOutput, - PublishBatchInput, PublishBatchOutput, - PublishInput, PublishOutput, - PutDataProtectionPolicyInput, PutDataProtectionPolicyOutput, - RemovePermissionInput, RemovePermissionOutput, - SetEndpointAttributesInput, SetEndpointAttributesOutput, - SetPlatformApplicationAttributesInput, SetPlatformApplicationAttributesOutput, - SetSMSAttributesInput, SetSMSAttributesOutput, - SetSubscriptionAttributesInput, SetSubscriptionAttributesOutput, - SetTopicAttributesInput, SetTopicAttributesOutput, - SubscribeInput, SubscribeOutput, - TagResourceInput, TagResourceOutput, - UnsubscribeInput, UnsubscribeOutput, - UntagResourceInput, UntagResourceOutput, - VerifySMSSandboxPhoneNumberInput, VerifySMSSandboxPhoneNumberOutput, ) @@ -134,10 +92,24 @@ class SNSClient(Client[SNSConfig]): Services](http://aws.amazon.com/tools/). """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def add_permission( - self, input: AddPermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.AddPermissionInput | _models.AddPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddPermissionOutput: ... + + @_overload + def add_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddPermissionInputDict], ) -> AddPermissionOutput: """ Adds a statement to a topic's access control policy, granting access @@ -149,8 +121,6 @@ def add_permission( `SetTopicAttributes` actions in your IAM policy. Args: - input: - An instance of `AddPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -160,12 +130,34 @@ def add_permission( Returns: An instance of `AddPermissionOutput`. """ - return self._invoke(input, _models.ADD_PERMISSION, [], plugins) + def add_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddPermissionOutput: + return self._invoke( + self._select_input(_models.ADD_PERMISSION, args, kwargs), + _models.ADD_PERMISSION, + [], + plugins, + ) + + @_overload def check_if_phone_number_is_opted_out( self, - input: CheckIfPhoneNumberIsOptedOutInput, + request: _models.CheckIfPhoneNumberIsOptedOutInput + | _models.CheckIfPhoneNumberIsOptedOutInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CheckIfPhoneNumberIsOptedOutOutput: ... + + @_overload + def check_if_phone_number_is_opted_out( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CheckIfPhoneNumberIsOptedOutInputDict], ) -> CheckIfPhoneNumberIsOptedOutOutput: """ Accepts a phone number and indicates whether the phone holder has opted @@ -176,8 +168,6 @@ def check_if_phone_number_is_opted_out( `OptInPhoneNumber` action. Args: - input: - An instance of `CheckIfPhoneNumberIsOptedOutInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -187,12 +177,36 @@ def check_if_phone_number_is_opted_out( Returns: An instance of `CheckIfPhoneNumberIsOptedOutOutput`. """ + + def check_if_phone_number_is_opted_out( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CheckIfPhoneNumberIsOptedOutOutput: return self._invoke( - input, _models.CHECK_IF_PHONE_NUMBER_IS_OPTED_OUT, [], plugins + self._select_input( + _models.CHECK_IF_PHONE_NUMBER_IS_OPTED_OUT, args, kwargs + ), + _models.CHECK_IF_PHONE_NUMBER_IS_OPTED_OUT, + [], + plugins, ) + @_overload def confirm_subscription( - self, input: ConfirmSubscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.ConfirmSubscriptionInput + | _models.ConfirmSubscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ConfirmSubscriptionOutput: ... + + @_overload + def confirm_subscription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ConfirmSubscriptionInputDict], ) -> ConfirmSubscriptionOutput: """ Verifies an endpoint owner's intent to receive messages by validating @@ -202,8 +216,6 @@ def confirm_subscription( when the `AuthenticateOnUnsubscribe` flag is set to \"true\". Args: - input: - An instance of `ConfirmSubscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -213,10 +225,34 @@ def confirm_subscription( Returns: An instance of `ConfirmSubscriptionOutput`. """ - return self._invoke(input, _models.CONFIRM_SUBSCRIPTION, [], plugins) + def confirm_subscription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ConfirmSubscriptionOutput: + return self._invoke( + self._select_input(_models.CONFIRM_SUBSCRIPTION, args, kwargs), + _models.CONFIRM_SUBSCRIPTION, + [], + plugins, + ) + + @_overload def create_platform_application( - self, input: CreatePlatformApplicationInput, plugins: list[Plugin] | None = None + self, + request: _models.CreatePlatformApplicationInput + | _models.CreatePlatformApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePlatformApplicationOutput: ... + + @_overload + def create_platform_application( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePlatformApplicationInputDict], ) -> CreatePlatformApplicationOutput: """ Creates a platform application object for one of the supported push @@ -251,7 +287,7 @@ def create_platform_application( Services SDKs, the file must be in string format and special characters must be ignored. To format the file correctly, Amazon SNS recommends using the following command: - `SERVICE_JSON=$$(jq @json < service.json)`. + `SERVICE_JSON=$(jq @json < service.json)`. - For MPNS, `PlatformPrincipal` is `TLS certificate` and `PlatformCredential` is `private key`. @@ -263,8 +299,6 @@ def create_platform_application( the `CreatePlatformEndpoint` action. Args: - input: - An instance of `CreatePlatformApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -274,10 +308,34 @@ def create_platform_application( Returns: An instance of `CreatePlatformApplicationOutput`. """ - return self._invoke(input, _models.CREATE_PLATFORM_APPLICATION, [], plugins) + def create_platform_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePlatformApplicationOutput: + return self._invoke( + self._select_input(_models.CREATE_PLATFORM_APPLICATION, args, kwargs), + _models.CREATE_PLATFORM_APPLICATION, + [], + plugins, + ) + + @_overload def create_platform_endpoint( - self, input: CreatePlatformEndpointInput, plugins: list[Plugin] | None = None + self, + request: _models.CreatePlatformEndpointInput + | _models.CreatePlatformEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreatePlatformEndpointOutput: ... + + @_overload + def create_platform_endpoint( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreatePlatformEndpointInputDict], ) -> CreatePlatformEndpointOutput: """ Creates an endpoint for a device and mobile app on one of the supported @@ -299,8 +357,6 @@ def create_platform_endpoint( Baidu](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html). Args: - input: - An instance of `CreatePlatformEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -310,12 +366,34 @@ def create_platform_endpoint( Returns: An instance of `CreatePlatformEndpointOutput`. """ - return self._invoke(input, _models.CREATE_PLATFORM_ENDPOINT, [], plugins) + def create_platform_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreatePlatformEndpointOutput: + return self._invoke( + self._select_input(_models.CREATE_PLATFORM_ENDPOINT, args, kwargs), + _models.CREATE_PLATFORM_ENDPOINT, + [], + plugins, + ) + + @_overload def create_sms_sandbox_phone_number( self, - input: CreateSMSSandboxPhoneNumberInput, + request: _models.CreateSMSSandboxPhoneNumberInput + | _models.CreateSMSSandboxPhoneNumberInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> CreateSMSSandboxPhoneNumberOutput: ... + + @_overload + def create_sms_sandbox_phone_number( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateSMSSandboxPhoneNumberInputDict], ) -> CreateSMSSandboxPhoneNumberOutput: """ Adds a destination phone number to an Amazon Web Services account in the @@ -333,8 +411,6 @@ def create_sms_sandbox_phone_number( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `CreateSMSSandboxPhoneNumberInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -344,10 +420,33 @@ def create_sms_sandbox_phone_number( Returns: An instance of `CreateSMSSandboxPhoneNumberOutput`. """ - return self._invoke(input, _models.CREATE_SMS_SANDBOX_PHONE_NUMBER, [], plugins) + def create_sms_sandbox_phone_number( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateSMSSandboxPhoneNumberOutput: + return self._invoke( + self._select_input(_models.CREATE_SMS_SANDBOX_PHONE_NUMBER, args, kwargs), + _models.CREATE_SMS_SANDBOX_PHONE_NUMBER, + [], + plugins, + ) + + @_overload + def create_topic( + self, + request: _models.CreateTopicInput | _models.CreateTopicInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateTopicOutput: ... + + @_overload def create_topic( - self, input: CreateTopicInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateTopicInputDict], ) -> CreateTopicOutput: """ Creates a topic to which notifications can be published. Users can @@ -359,8 +458,6 @@ def create_topic( topic's ARN is returned without creating a new topic. Args: - input: - An instance of `CreateTopicInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -370,10 +467,33 @@ def create_topic( Returns: An instance of `CreateTopicOutput`. """ - return self._invoke(input, _models.CREATE_TOPIC, [], plugins) + def create_topic( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateTopicOutput: + return self._invoke( + self._select_input(_models.CREATE_TOPIC, args, kwargs), + _models.CREATE_TOPIC, + [], + plugins, + ) + + @_overload + def delete_endpoint( + self, + request: _models.DeleteEndpointInput | _models.DeleteEndpointInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteEndpointOutput: ... + + @_overload def delete_endpoint( - self, input: DeleteEndpointInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteEndpointInputDict], ) -> DeleteEndpointOutput: """ Deletes the endpoint for a device and mobile app from Amazon SNS. This @@ -385,8 +505,6 @@ def delete_endpoint( must also unsubscribe the endpoint from the topic. Args: - input: - An instance of `DeleteEndpointInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -396,10 +514,34 @@ def delete_endpoint( Returns: An instance of `DeleteEndpointOutput`. """ - return self._invoke(input, _models.DELETE_ENDPOINT, [], plugins) + def delete_endpoint( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteEndpointOutput: + return self._invoke( + self._select_input(_models.DELETE_ENDPOINT, args, kwargs), + _models.DELETE_ENDPOINT, + [], + plugins, + ) + + @_overload def delete_platform_application( - self, input: DeletePlatformApplicationInput, plugins: list[Plugin] | None = None + self, + request: _models.DeletePlatformApplicationInput + | _models.DeletePlatformApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeletePlatformApplicationOutput: ... + + @_overload + def delete_platform_application( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeletePlatformApplicationInputDict], ) -> DeletePlatformApplicationOutput: """ Deletes a platform application object for one of the supported push @@ -408,8 +550,6 @@ def delete_platform_application( Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). Args: - input: - An instance of `DeletePlatformApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -419,12 +559,34 @@ def delete_platform_application( Returns: An instance of `DeletePlatformApplicationOutput`. """ - return self._invoke(input, _models.DELETE_PLATFORM_APPLICATION, [], plugins) + def delete_platform_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeletePlatformApplicationOutput: + return self._invoke( + self._select_input(_models.DELETE_PLATFORM_APPLICATION, args, kwargs), + _models.DELETE_PLATFORM_APPLICATION, + [], + plugins, + ) + + @_overload + def delete_sms_sandbox_phone_number( + self, + request: _models.DeleteSMSSandboxPhoneNumberInput + | _models.DeleteSMSSandboxPhoneNumberInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteSMSSandboxPhoneNumberOutput: ... + + @_overload def delete_sms_sandbox_phone_number( self, - input: DeleteSMSSandboxPhoneNumberInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteSMSSandboxPhoneNumberInputDict], ) -> DeleteSMSSandboxPhoneNumberOutput: """ Deletes an Amazon Web Services account's verified or pending phone @@ -442,8 +604,6 @@ def delete_sms_sandbox_phone_number( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `DeleteSMSSandboxPhoneNumberInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -453,10 +613,33 @@ def delete_sms_sandbox_phone_number( Returns: An instance of `DeleteSMSSandboxPhoneNumberOutput`. """ - return self._invoke(input, _models.DELETE_SMS_SANDBOX_PHONE_NUMBER, [], plugins) + def delete_sms_sandbox_phone_number( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteSMSSandboxPhoneNumberOutput: + return self._invoke( + self._select_input(_models.DELETE_SMS_SANDBOX_PHONE_NUMBER, args, kwargs), + _models.DELETE_SMS_SANDBOX_PHONE_NUMBER, + [], + plugins, + ) + + @_overload + def delete_topic( + self, + request: _models.DeleteTopicInput | _models.DeleteTopicInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteTopicOutput: ... + + @_overload def delete_topic( - self, input: DeleteTopicInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteTopicInputDict], ) -> DeleteTopicOutput: """ Deletes a topic and all its subscriptions. Deleting a topic might @@ -465,8 +648,6 @@ def delete_topic( not exist does not result in an error. Args: - input: - An instance of `DeleteTopicInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -476,10 +657,34 @@ def delete_topic( Returns: An instance of `DeleteTopicOutput`. """ - return self._invoke(input, _models.DELETE_TOPIC, [], plugins) + def delete_topic( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteTopicOutput: + return self._invoke( + self._select_input(_models.DELETE_TOPIC, args, kwargs), + _models.DELETE_TOPIC, + [], + plugins, + ) + + @_overload + def get_data_protection_policy( + self, + request: _models.GetDataProtectionPolicyInput + | _models.GetDataProtectionPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDataProtectionPolicyOutput: ... + + @_overload def get_data_protection_policy( - self, input: GetDataProtectionPolicyInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDataProtectionPolicyInputDict], ) -> GetDataProtectionPolicyOutput: """ Warning: @@ -492,8 +697,6 @@ def get_data_protection_policy( stored in the specified Amazon SNS topic. Args: - input: - An instance of `GetDataProtectionPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -503,10 +706,34 @@ def get_data_protection_policy( Returns: An instance of `GetDataProtectionPolicyOutput`. """ - return self._invoke(input, _models.GET_DATA_PROTECTION_POLICY, [], plugins) + def get_data_protection_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDataProtectionPolicyOutput: + return self._invoke( + self._select_input(_models.GET_DATA_PROTECTION_POLICY, args, kwargs), + _models.GET_DATA_PROTECTION_POLICY, + [], + plugins, + ) + + @_overload + def get_endpoint_attributes( + self, + request: _models.GetEndpointAttributesInput + | _models.GetEndpointAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetEndpointAttributesOutput: ... + + @_overload def get_endpoint_attributes( - self, input: GetEndpointAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetEndpointAttributesInputDict], ) -> GetEndpointAttributesOutput: """ Retrieves the endpoint attributes for a device on one of the supported @@ -515,8 +742,6 @@ def get_endpoint_attributes( Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). Args: - input: - An instance of `GetEndpointAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -526,12 +751,34 @@ def get_endpoint_attributes( Returns: An instance of `GetEndpointAttributesOutput`. """ - return self._invoke(input, _models.GET_ENDPOINT_ATTRIBUTES, [], plugins) + def get_endpoint_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetEndpointAttributesOutput: + return self._invoke( + self._select_input(_models.GET_ENDPOINT_ATTRIBUTES, args, kwargs), + _models.GET_ENDPOINT_ATTRIBUTES, + [], + plugins, + ) + + @_overload def get_platform_application_attributes( self, - input: GetPlatformApplicationAttributesInput, + request: _models.GetPlatformApplicationAttributesInput + | _models.GetPlatformApplicationAttributesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetPlatformApplicationAttributesOutput: ... + + @_overload + def get_platform_application_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetPlatformApplicationAttributesInputDict], ) -> GetPlatformApplicationAttributesOutput: """ Retrieves the attributes of the platform application object for the @@ -541,8 +788,6 @@ def get_platform_application_attributes( Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). Args: - input: - An instance of `GetPlatformApplicationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -552,14 +797,35 @@ def get_platform_application_attributes( Returns: An instance of `GetPlatformApplicationAttributesOutput`. """ + + def get_platform_application_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetPlatformApplicationAttributesOutput: return self._invoke( - input, _models.GET_PLATFORM_APPLICATION_ATTRIBUTES, [], plugins + self._select_input( + _models.GET_PLATFORM_APPLICATION_ATTRIBUTES, args, kwargs + ), + _models.GET_PLATFORM_APPLICATION_ATTRIBUTES, + [], + plugins, ) + @_overload + def get_sms_attributes( + self, + request: _models.GetSMSAttributesInput | _models.GetSMSAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSMSAttributesOutput: ... + + @_overload def get_sms_attributes( self, - input: GetSMSAttributesInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSMSAttributesInputDict], ) -> GetSMSAttributesOutput: """ Returns the settings for sending SMS messages from your Amazon Web @@ -568,8 +834,6 @@ def get_sms_attributes( These settings are set with the `SetSMSAttributes` action. Args: - input: - An instance of `GetSMSAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -579,12 +843,34 @@ def get_sms_attributes( Returns: An instance of `GetSMSAttributesOutput`. """ - return self._invoke(input, _models.GET_SMS_ATTRIBUTES, [], plugins) + def get_sms_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSMSAttributesOutput: + return self._invoke( + self._select_input(_models.GET_SMS_ATTRIBUTES, args, kwargs), + _models.GET_SMS_ATTRIBUTES, + [], + plugins, + ) + + @_overload def get_sms_sandbox_account_status( self, - input: GetSMSSandboxAccountStatusInput | None = None, + request: _models.GetSMSSandboxAccountStatusInput + | _models.GetSMSSandboxAccountStatusInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetSMSSandboxAccountStatusOutput: ... + + @_overload + def get_sms_sandbox_account_status( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSMSSandboxAccountStatusInputDict], ) -> GetSMSSandboxAccountStatusOutput: """ Retrieves the SMS sandbox status for the calling Amazon Web Services @@ -602,8 +888,6 @@ def get_sms_sandbox_account_status( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `GetSMSSandboxAccountStatusInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -613,17 +897,39 @@ def get_sms_sandbox_account_status( Returns: An instance of `GetSMSSandboxAccountStatusOutput`. """ - return self._invoke(input, _models.GET_SMS_SANDBOX_ACCOUNT_STATUS, [], plugins) + def get_sms_sandbox_account_status( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSMSSandboxAccountStatusOutput: + return self._invoke( + self._select_input(_models.GET_SMS_SANDBOX_ACCOUNT_STATUS, args, kwargs), + _models.GET_SMS_SANDBOX_ACCOUNT_STATUS, + [], + plugins, + ) + + @_overload def get_subscription_attributes( - self, input: GetSubscriptionAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetSubscriptionAttributesInput + | _models.GetSubscriptionAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSubscriptionAttributesOutput: ... + + @_overload + def get_subscription_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSubscriptionAttributesInputDict], ) -> GetSubscriptionAttributesOutput: """ Returns all of the properties of a subscription. Args: - input: - An instance of `GetSubscriptionAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -633,18 +939,39 @@ def get_subscription_attributes( Returns: An instance of `GetSubscriptionAttributesOutput`. """ - return self._invoke(input, _models.GET_SUBSCRIPTION_ATTRIBUTES, [], plugins) + def get_subscription_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSubscriptionAttributesOutput: + return self._invoke( + self._select_input(_models.GET_SUBSCRIPTION_ATTRIBUTES, args, kwargs), + _models.GET_SUBSCRIPTION_ATTRIBUTES, + [], + plugins, + ) + + @_overload def get_topic_attributes( - self, input: GetTopicAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetTopicAttributesInput | _models.GetTopicAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetTopicAttributesOutput: ... + + @_overload + def get_topic_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetTopicAttributesInputDict], ) -> GetTopicAttributesOutput: """ Returns all of the properties of a topic. Topic properties returned might differ based on the authorization of the user. Args: - input: - An instance of `GetTopicAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -654,12 +981,34 @@ def get_topic_attributes( Returns: An instance of `GetTopicAttributesOutput`. """ - return self._invoke(input, _models.GET_TOPIC_ATTRIBUTES, [], plugins) + def get_topic_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetTopicAttributesOutput: + return self._invoke( + self._select_input(_models.GET_TOPIC_ATTRIBUTES, args, kwargs), + _models.GET_TOPIC_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def list_endpoints_by_platform_application( + self, + request: _models.ListEndpointsByPlatformApplicationInput + | _models.ListEndpointsByPlatformApplicationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListEndpointsByPlatformApplicationOutput: ... + + @_overload def list_endpoints_by_platform_application( self, - input: ListEndpointsByPlatformApplicationInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListEndpointsByPlatformApplicationInputDict], ) -> ListEndpointsByPlatformApplicationOutput: """ Lists the endpoints and endpoint attributes for devices in a supported @@ -677,8 +1026,6 @@ def list_endpoints_by_platform_application( This action is throttled at 30 transactions per second (TPS). Args: - input: - An instance of `ListEndpointsByPlatformApplicationInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -688,14 +1035,36 @@ def list_endpoints_by_platform_application( Returns: An instance of `ListEndpointsByPlatformApplicationOutput`. """ + + def list_endpoints_by_platform_application( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListEndpointsByPlatformApplicationOutput: return self._invoke( - input, _models.LIST_ENDPOINTS_BY_PLATFORM_APPLICATION, [], plugins + self._select_input( + _models.LIST_ENDPOINTS_BY_PLATFORM_APPLICATION, args, kwargs + ), + _models.LIST_ENDPOINTS_BY_PLATFORM_APPLICATION, + [], + plugins, ) + @_overload def list_origination_numbers( self, - input: ListOriginationNumbersInput | None = None, + request: _models.ListOriginationNumbersInput + | _models.ListOriginationNumbersInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListOriginationNumbersOutput: ... + + @_overload + def list_origination_numbers( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListOriginationNumbersInputDict], ) -> ListOriginationNumbersOutput: """ Lists the calling Amazon Web Services account's dedicated origination @@ -705,8 +1074,6 @@ def list_origination_numbers( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `ListOriginationNumbersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -716,12 +1083,34 @@ def list_origination_numbers( Returns: An instance of `ListOriginationNumbersOutput`. """ - return self._invoke(input, _models.LIST_ORIGINATION_NUMBERS, [], plugins) + def list_origination_numbers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListOriginationNumbersOutput: + return self._invoke( + self._select_input(_models.LIST_ORIGINATION_NUMBERS, args, kwargs), + _models.LIST_ORIGINATION_NUMBERS, + [], + plugins, + ) + + @_overload + def list_phone_numbers_opted_out( + self, + request: _models.ListPhoneNumbersOptedOutInput + | _models.ListPhoneNumbersOptedOutInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListPhoneNumbersOptedOutOutput: ... + + @_overload def list_phone_numbers_opted_out( self, - input: ListPhoneNumbersOptedOutInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPhoneNumbersOptedOutInputDict], ) -> ListPhoneNumbersOptedOutOutput: """ Returns a list of phone numbers that are opted out, meaning you cannot @@ -736,8 +1125,6 @@ def list_phone_numbers_opted_out( `NextToken` will be null. Args: - input: - An instance of `ListPhoneNumbersOptedOutInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -747,12 +1134,34 @@ def list_phone_numbers_opted_out( Returns: An instance of `ListPhoneNumbersOptedOutOutput`. """ - return self._invoke(input, _models.LIST_PHONE_NUMBERS_OPTED_OUT, [], plugins) + def list_phone_numbers_opted_out( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPhoneNumbersOptedOutOutput: + return self._invoke( + self._select_input(_models.LIST_PHONE_NUMBERS_OPTED_OUT, args, kwargs), + _models.LIST_PHONE_NUMBERS_OPTED_OUT, + [], + plugins, + ) + + @_overload def list_platform_applications( self, - input: ListPlatformApplicationsInput | None = None, + request: _models.ListPlatformApplicationsInput + | _models.ListPlatformApplicationsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListPlatformApplicationsOutput: ... + + @_overload + def list_platform_applications( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListPlatformApplicationsInputDict], ) -> ListPlatformApplicationsOutput: """ Lists the platform application objects for the supported push @@ -769,8 +1178,6 @@ def list_platform_applications( This action is throttled at 15 transactions per second (TPS). Args: - input: - An instance of `ListPlatformApplicationsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -780,12 +1187,34 @@ def list_platform_applications( Returns: An instance of `ListPlatformApplicationsOutput`. """ - return self._invoke(input, _models.LIST_PLATFORM_APPLICATIONS, [], plugins) + def list_platform_applications( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListPlatformApplicationsOutput: + return self._invoke( + self._select_input(_models.LIST_PLATFORM_APPLICATIONS, args, kwargs), + _models.LIST_PLATFORM_APPLICATIONS, + [], + plugins, + ) + + @_overload + def list_sms_sandbox_phone_numbers( + self, + request: _models.ListSMSSandboxPhoneNumbersInput + | _models.ListSMSSandboxPhoneNumbersInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSMSSandboxPhoneNumbersOutput: ... + + @_overload def list_sms_sandbox_phone_numbers( self, - input: ListSMSSandboxPhoneNumbersInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSMSSandboxPhoneNumbersInputDict], ) -> ListSMSSandboxPhoneNumbersOutput: """ Lists the calling Amazon Web Services account's current verified and @@ -803,8 +1232,6 @@ def list_sms_sandbox_phone_numbers( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `ListSMSSandboxPhoneNumbersInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -814,12 +1241,33 @@ def list_sms_sandbox_phone_numbers( Returns: An instance of `ListSMSSandboxPhoneNumbersOutput`. """ - return self._invoke(input, _models.LIST_SMS_SANDBOX_PHONE_NUMBERS, [], plugins) + def list_sms_sandbox_phone_numbers( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSMSSandboxPhoneNumbersOutput: + return self._invoke( + self._select_input(_models.LIST_SMS_SANDBOX_PHONE_NUMBERS, args, kwargs), + _models.LIST_SMS_SANDBOX_PHONE_NUMBERS, + [], + plugins, + ) + + @_overload def list_subscriptions( self, - input: ListSubscriptionsInput | None = None, + request: _models.ListSubscriptionsInput | _models.ListSubscriptionsInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> ListSubscriptionsOutput: ... + + @_overload + def list_subscriptions( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSubscriptionsInputDict], ) -> ListSubscriptionsOutput: """ Returns a list of the requester's subscriptions. Each call returns a @@ -830,8 +1278,6 @@ def list_subscriptions( This action is throttled at 30 transactions per second (TPS). Args: - input: - An instance of `ListSubscriptionsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -841,10 +1287,34 @@ def list_subscriptions( Returns: An instance of `ListSubscriptionsOutput`. """ - return self._invoke(input, _models.LIST_SUBSCRIPTIONS, [], plugins) + def list_subscriptions( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSubscriptionsOutput: + return self._invoke( + self._select_input(_models.LIST_SUBSCRIPTIONS, args, kwargs), + _models.LIST_SUBSCRIPTIONS, + [], + plugins, + ) + + @_overload def list_subscriptions_by_topic( - self, input: ListSubscriptionsByTopicInput, plugins: list[Plugin] | None = None + self, + request: _models.ListSubscriptionsByTopicInput + | _models.ListSubscriptionsByTopicInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListSubscriptionsByTopicOutput: ... + + @_overload + def list_subscriptions_by_topic( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListSubscriptionsByTopicInputDict], ) -> ListSubscriptionsByTopicOutput: """ Returns a list of the subscriptions to a specific topic. Each call @@ -856,8 +1326,6 @@ def list_subscriptions_by_topic( This action is throttled at 30 transactions per second (TPS). Args: - input: - An instance of `ListSubscriptionsByTopicInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -867,10 +1335,34 @@ def list_subscriptions_by_topic( Returns: An instance of `ListSubscriptionsByTopicOutput`. """ - return self._invoke(input, _models.LIST_SUBSCRIPTIONS_BY_TOPIC, [], plugins) + def list_subscriptions_by_topic( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListSubscriptionsByTopicOutput: + return self._invoke( + self._select_input(_models.LIST_SUBSCRIPTIONS_BY_TOPIC, args, kwargs), + _models.LIST_SUBSCRIPTIONS_BY_TOPIC, + [], + plugins, + ) + + @_overload + def list_tags_for_resource( + self, + request: _models.ListTagsForResourceInput + | _models.ListTagsForResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTagsForResourceOutput: ... + + @_overload def list_tags_for_resource( - self, input: ListTagsForResourceInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTagsForResourceInputDict], ) -> ListTagsForResourceOutput: """ List all tags added to the specified Amazon SNS topic. For an overview, @@ -879,8 +1371,6 @@ def list_tags_for_resource( *Amazon Simple Notification Service Developer Guide*. Args: - input: - An instance of `ListTagsForResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -890,10 +1380,33 @@ def list_tags_for_resource( Returns: An instance of `ListTagsForResourceOutput`. """ - return self._invoke(input, _models.LIST_TAGS_FOR_RESOURCE, [], plugins) + def list_tags_for_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTagsForResourceOutput: + return self._invoke( + self._select_input(_models.LIST_TAGS_FOR_RESOURCE, args, kwargs), + _models.LIST_TAGS_FOR_RESOURCE, + [], + plugins, + ) + + @_overload def list_topics( - self, input: ListTopicsInput | None = None, plugins: list[Plugin] | None = None + self, + request: _models.ListTopicsInput | _models.ListTopicsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListTopicsOutput: ... + + @_overload + def list_topics( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListTopicsInputDict], ) -> ListTopicsOutput: """ Returns a list of the requester's topics. Each call returns a limited @@ -904,8 +1417,6 @@ def list_topics( This action is throttled at 30 transactions per second (TPS). Args: - input: - An instance of `ListTopicsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -915,10 +1426,33 @@ def list_topics( Returns: An instance of `ListTopicsOutput`. """ - return self._invoke(input, _models.LIST_TOPICS, [], plugins) + def list_topics( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListTopicsOutput: + return self._invoke( + self._select_input(_models.LIST_TOPICS, args, kwargs), + _models.LIST_TOPICS, + [], + plugins, + ) + + @_overload def opt_in_phone_number( - self, input: OptInPhoneNumberInput, plugins: list[Plugin] | None = None + self, + request: _models.OptInPhoneNumberInput | _models.OptInPhoneNumberInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> OptInPhoneNumberOutput: ... + + @_overload + def opt_in_phone_number( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.OptInPhoneNumberInputDict], ) -> OptInPhoneNumberOutput: """ Use this request to opt in a phone number that is opted out, which @@ -927,8 +1461,6 @@ def opt_in_phone_number( You can opt in a phone number only once every 30 days. Args: - input: - An instance of `OptInPhoneNumberInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -938,10 +1470,33 @@ def opt_in_phone_number( Returns: An instance of `OptInPhoneNumberOutput`. """ - return self._invoke(input, _models.OPT_IN_PHONE_NUMBER, [], plugins) + def opt_in_phone_number( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> OptInPhoneNumberOutput: + return self._invoke( + self._select_input(_models.OPT_IN_PHONE_NUMBER, args, kwargs), + _models.OPT_IN_PHONE_NUMBER, + [], + plugins, + ) + + @_overload def publish( - self, input: PublishInput, plugins: list[Plugin] | None = None + self, + request: _models.PublishInput | _models.PublishInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishOutput: ... + + @_overload + def publish( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishInputDict], ) -> PublishOutput: """ Sends a message to an Amazon SNS topic, a text message (SMS message) @@ -969,8 +1524,6 @@ def publish( Web Services Region. Args: - input: - An instance of `PublishInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -980,10 +1533,33 @@ def publish( Returns: An instance of `PublishOutput`. """ - return self._invoke(input, _models.PUBLISH, [], plugins) + def publish( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishOutput: + return self._invoke( + self._select_input(_models.PUBLISH, args, kwargs), + _models.PUBLISH, + [], + plugins, + ) + + @_overload + def publish_batch( + self, + request: _models.PublishBatchInput | _models.PublishBatchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PublishBatchOutput: ... + + @_overload def publish_batch( - self, input: PublishBatchInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PublishBatchInputDict], ) -> PublishBatchOutput: """ Publishes up to 10 messages to the specified topic in a single batch. @@ -1036,8 +1612,6 @@ def publish_batch( SNS immediately delivers the message to subscribers. Args: - input: - An instance of `PublishBatchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1047,10 +1621,34 @@ def publish_batch( Returns: An instance of `PublishBatchOutput`. """ - return self._invoke(input, _models.PUBLISH_BATCH, [], plugins) + def publish_batch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PublishBatchOutput: + return self._invoke( + self._select_input(_models.PUBLISH_BATCH, args, kwargs), + _models.PUBLISH_BATCH, + [], + plugins, + ) + + @_overload def put_data_protection_policy( - self, input: PutDataProtectionPolicyInput, plugins: list[Plugin] | None = None + self, + request: _models.PutDataProtectionPolicyInput + | _models.PutDataProtectionPolicyInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PutDataProtectionPolicyOutput: ... + + @_overload + def put_data_protection_policy( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PutDataProtectionPolicyInputDict], ) -> PutDataProtectionPolicyOutput: """ Warning: @@ -1063,8 +1661,6 @@ def put_data_protection_policy( specified Amazon SNS topic. Args: - input: - An instance of `PutDataProtectionPolicyInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1074,10 +1670,33 @@ def put_data_protection_policy( Returns: An instance of `PutDataProtectionPolicyOutput`. """ - return self._invoke(input, _models.PUT_DATA_PROTECTION_POLICY, [], plugins) + def put_data_protection_policy( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PutDataProtectionPolicyOutput: + return self._invoke( + self._select_input(_models.PUT_DATA_PROTECTION_POLICY, args, kwargs), + _models.PUT_DATA_PROTECTION_POLICY, + [], + plugins, + ) + + @_overload def remove_permission( - self, input: RemovePermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.RemovePermissionInput | _models.RemovePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemovePermissionOutput: ... + + @_overload + def remove_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemovePermissionInputDict], ) -> RemovePermissionOutput: """ Removes a statement from a topic's access control policy. @@ -1088,8 +1707,6 @@ def remove_permission( `SetTopicAttributes` actions in your IAM policy. Args: - input: - An instance of `RemovePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1099,10 +1716,34 @@ def remove_permission( Returns: An instance of `RemovePermissionOutput`. """ - return self._invoke(input, _models.REMOVE_PERMISSION, [], plugins) + def remove_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemovePermissionOutput: + return self._invoke( + self._select_input(_models.REMOVE_PERMISSION, args, kwargs), + _models.REMOVE_PERMISSION, + [], + plugins, + ) + + @_overload def set_endpoint_attributes( - self, input: SetEndpointAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetEndpointAttributesInput + | _models.SetEndpointAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetEndpointAttributesOutput: ... + + @_overload + def set_endpoint_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetEndpointAttributesInputDict], ) -> SetEndpointAttributesOutput: """ Sets the attributes for an endpoint for a device on one of the supported @@ -1111,8 +1752,6 @@ def set_endpoint_attributes( Notifications](https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). Args: - input: - An instance of `SetEndpointAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1122,12 +1761,34 @@ def set_endpoint_attributes( Returns: An instance of `SetEndpointAttributesOutput`. """ - return self._invoke(input, _models.SET_ENDPOINT_ATTRIBUTES, [], plugins) + def set_endpoint_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetEndpointAttributesOutput: + return self._invoke( + self._select_input(_models.SET_ENDPOINT_ATTRIBUTES, args, kwargs), + _models.SET_ENDPOINT_ATTRIBUTES, + [], + plugins, + ) + + @_overload def set_platform_application_attributes( self, - input: SetPlatformApplicationAttributesInput, + request: _models.SetPlatformApplicationAttributesInput + | _models.SetPlatformApplicationAttributesInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> SetPlatformApplicationAttributesOutput: ... + + @_overload + def set_platform_application_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetPlatformApplicationAttributesInputDict], ) -> SetPlatformApplicationAttributesOutput: """ Sets the attributes of the platform application object for the supported @@ -1139,8 +1800,6 @@ def set_platform_application_attributes( Status](https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html). Args: - input: - An instance of `SetPlatformApplicationAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1150,12 +1809,35 @@ def set_platform_application_attributes( Returns: An instance of `SetPlatformApplicationAttributesOutput`. """ + + def set_platform_application_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetPlatformApplicationAttributesOutput: return self._invoke( - input, _models.SET_PLATFORM_APPLICATION_ATTRIBUTES, [], plugins + self._select_input( + _models.SET_PLATFORM_APPLICATION_ATTRIBUTES, args, kwargs + ), + _models.SET_PLATFORM_APPLICATION_ATTRIBUTES, + [], + plugins, ) + @_overload def set_sms_attributes( - self, input: SetSMSAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetSMSAttributesInput | _models.SetSMSAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetSMSAttributesOutput: ... + + @_overload + def set_sms_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetSMSAttributesInputDict], ) -> SetSMSAttributesOutput: """ Use this request to set the default settings for sending SMS messages @@ -1172,8 +1854,6 @@ def set_sms_attributes( (`sns.amazonaws.com`) permission to perform the `s3:ListBucket` action. Args: - input: - An instance of `SetSMSAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1183,18 +1863,40 @@ def set_sms_attributes( Returns: An instance of `SetSMSAttributesOutput`. """ - return self._invoke(input, _models.SET_SMS_ATTRIBUTES, [], plugins) + def set_sms_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetSMSAttributesOutput: + return self._invoke( + self._select_input(_models.SET_SMS_ATTRIBUTES, args, kwargs), + _models.SET_SMS_ATTRIBUTES, + [], + plugins, + ) + + @_overload def set_subscription_attributes( - self, input: SetSubscriptionAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetSubscriptionAttributesInput + | _models.SetSubscriptionAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetSubscriptionAttributesOutput: ... + + @_overload + def set_subscription_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetSubscriptionAttributesInputDict], ) -> SetSubscriptionAttributesOutput: """ Allows a subscription owner to set an attribute of the subscription to a new value. Args: - input: - An instance of `SetSubscriptionAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1204,10 +1906,33 @@ def set_subscription_attributes( Returns: An instance of `SetSubscriptionAttributesOutput`. """ - return self._invoke(input, _models.SET_SUBSCRIPTION_ATTRIBUTES, [], plugins) + def set_subscription_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetSubscriptionAttributesOutput: + return self._invoke( + self._select_input(_models.SET_SUBSCRIPTION_ATTRIBUTES, args, kwargs), + _models.SET_SUBSCRIPTION_ATTRIBUTES, + [], + plugins, + ) + + @_overload def set_topic_attributes( - self, input: SetTopicAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetTopicAttributesInput | _models.SetTopicAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetTopicAttributesOutput: ... + + @_overload + def set_topic_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetTopicAttributesInputDict], ) -> SetTopicAttributesOutput: """ Allows a topic owner to set an attribute of the topic to a new value. @@ -1218,8 +1943,6 @@ def set_topic_attributes( `SetTopicAttributes` actions in your IAM policy. Args: - input: - An instance of `SetTopicAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1229,10 +1952,33 @@ def set_topic_attributes( Returns: An instance of `SetTopicAttributesOutput`. """ - return self._invoke(input, _models.SET_TOPIC_ATTRIBUTES, [], plugins) + def set_topic_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetTopicAttributesOutput: + return self._invoke( + self._select_input(_models.SET_TOPIC_ATTRIBUTES, args, kwargs), + _models.SET_TOPIC_ATTRIBUTES, + [], + plugins, + ) + + @_overload def subscribe( - self, input: SubscribeInput, plugins: list[Plugin] | None = None + self, + request: _models.SubscribeInput | _models.SubscribeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SubscribeOutput: ... + + @_overload + def subscribe( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SubscribeInputDict], ) -> SubscribeOutput: """ Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is @@ -1246,8 +1992,6 @@ def subscribe( This action is throttled at 100 transactions per second (TPS). Args: - input: - An instance of `SubscribeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1257,10 +2001,33 @@ def subscribe( Returns: An instance of `SubscribeOutput`. """ - return self._invoke(input, _models.SUBSCRIBE, [], plugins) + def subscribe( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SubscribeOutput: + return self._invoke( + self._select_input(_models.SUBSCRIBE, args, kwargs), + _models.SUBSCRIBE, + [], + plugins, + ) + + @_overload def tag_resource( - self, input: TagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.TagResourceInput | _models.TagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagResourceOutput: ... + + @_overload + def tag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagResourceInputDict], ) -> TagResourceOutput: """ Add tags to the specified Amazon SNS topic. For an overview, see [Amazon @@ -1285,8 +2052,6 @@ def tag_resource( request](https://console.aws.amazon.com/support/home#/case/create?issueType=technical). Args: - input: - An instance of `TagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1296,10 +2061,33 @@ def tag_resource( Returns: An instance of `TagResourceOutput`. """ - return self._invoke(input, _models.TAG_RESOURCE, [], plugins) + def tag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagResourceOutput: + return self._invoke( + self._select_input(_models.TAG_RESOURCE, args, kwargs), + _models.TAG_RESOURCE, + [], + plugins, + ) + + @_overload + def unsubscribe( + self, + request: _models.UnsubscribeInput | _models.UnsubscribeInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UnsubscribeOutput: ... + + @_overload def unsubscribe( - self, input: UnsubscribeInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UnsubscribeInputDict], ) -> UnsubscribeOutput: """ Deletes a subscription. If the subscription requires authentication for @@ -1313,8 +2101,6 @@ def unsubscribe( This action is throttled at 100 transactions per second (TPS). Args: - input: - An instance of `UnsubscribeInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1324,10 +2110,33 @@ def unsubscribe( Returns: An instance of `UnsubscribeOutput`. """ - return self._invoke(input, _models.UNSUBSCRIBE, [], plugins) + def unsubscribe( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UnsubscribeOutput: + return self._invoke( + self._select_input(_models.UNSUBSCRIBE, args, kwargs), + _models.UNSUBSCRIBE, + [], + plugins, + ) + + @_overload def untag_resource( - self, input: UntagResourceInput, plugins: list[Plugin] | None = None + self, + request: _models.UntagResourceInput | _models.UntagResourceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagResourceOutput: ... + + @_overload + def untag_resource( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagResourceInputDict], ) -> UntagResourceOutput: """ Remove tags from the specified Amazon SNS topic. For an overview, see @@ -1336,8 +2145,6 @@ def untag_resource( *Amazon SNS Developer Guide*. Args: - input: - An instance of `UntagResourceInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1347,12 +2154,34 @@ def untag_resource( Returns: An instance of `UntagResourceOutput`. """ - return self._invoke(input, _models.UNTAG_RESOURCE, [], plugins) + def untag_resource( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagResourceOutput: + return self._invoke( + self._select_input(_models.UNTAG_RESOURCE, args, kwargs), + _models.UNTAG_RESOURCE, + [], + plugins, + ) + + @_overload def verify_sms_sandbox_phone_number( self, - input: VerifySMSSandboxPhoneNumberInput, + request: _models.VerifySMSSandboxPhoneNumberInput + | _models.VerifySMSSandboxPhoneNumberInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> VerifySMSSandboxPhoneNumberOutput: ... + + @_overload + def verify_sms_sandbox_phone_number( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.VerifySMSSandboxPhoneNumberInputDict], ) -> VerifySMSSandboxPhoneNumberOutput: """ Verifies a destination phone number with a one-time password (OTP) for @@ -1370,8 +2199,6 @@ def verify_sms_sandbox_phone_number( in the *Amazon SNS Developer Guide*. Args: - input: - An instance of `VerifySMSSandboxPhoneNumberInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1381,7 +2208,16 @@ def verify_sms_sandbox_phone_number( Returns: An instance of `VerifySMSSandboxPhoneNumberOutput`. """ - return self._invoke(input, _models.VERIFY_SMS_SANDBOX_PHONE_NUMBER, [], plugins) + + def verify_sms_sandbox_phone_number( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> VerifySMSSandboxPhoneNumberOutput: + return self._invoke( + self._select_input(_models.VERIFY_SMS_SANDBOX_PHONE_NUMBER, args, kwargs), + _models.VERIFY_SMS_SANDBOX_PHONE_NUMBER, + [], + plugins, + ) def _new_config(self) -> SNSConfig: return SNSConfig.resolve() diff --git a/clients/aws-sdk-sns/src/aws_sdk_sns/models.pyi b/clients/aws-sdk-sns/src/aws_sdk_sns/models.pyi index e6c96dd6e..50bfb0ac3 100644 --- a/clients/aws-sdk-sns/src/aws_sdk_sns/models.pyi +++ b/clients/aws-sdk-sns/src/aws_sdk_sns/models.pyi @@ -1,9 +1,10 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self +from typing import Required, Self, TypedDict from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -47,6 +48,26 @@ class AddPermissionInput(_SerdeShape): Valid values: Any Amazon SNS action name, for example `Publish`. """ +class AddPermissionInputDict(TypedDict, total=False): + """Dictionary form of `AddPermissionInput`.""" + + topic_arn: Required[str] + """The ARN of the topic whose access control policy you wish to modify.""" + label: Required[str] + """A unique identifier for the new policy statement.""" + aws_account_id: Required[Sequence[str]] + """ + The Amazon Web Services account IDs of the users (principals) who will + be given access to the specified actions. The users must have Amazon Web + Services account, but do not need to be signed up for this service. + """ + action_name: Required[Sequence[str]] + """ + The action you want to allow for the specified principal(s). + + Valid values: Any Amazon SNS action name, for example `Publish`. + """ + @dataclass(kw_only=True) class AddPermissionOutput(_SerdeShape): """Dataclass for AddPermissionOutput structure.""" @@ -124,6 +145,12 @@ class CheckIfPhoneNumberIsOptedOutInput(_SerdeShape): phone_number: str | None = ... """The phone number for which you want to check the opt out status.""" +class CheckIfPhoneNumberIsOptedOutInputDict(TypedDict, total=False): + """Dictionary form of `CheckIfPhoneNumberIsOptedOutInput`.""" + + phone_number: Required[str] + """The phone number for which you want to check the opt out status.""" + @dataclass(kw_only=True) class CheckIfPhoneNumberIsOptedOutOutput(_SerdeShape): """The response from the `CheckIfPhoneNumberIsOptedOut` action.""" @@ -178,6 +205,22 @@ class ConfirmSubscriptionInput(_SerdeShape): Services authentication. """ +class ConfirmSubscriptionInputDict(TypedDict, total=False): + """Dictionary form of `ConfirmSubscriptionInput`.""" + + topic_arn: Required[str] + """The ARN of the topic for which you wish to confirm a subscription.""" + token: Required[str] + """Short-lived token sent to an endpoint during the `Subscribe` action.""" + authenticate_on_unsubscribe: str | None + """ + Disallows unauthenticated unsubscribes of the subscription. If the value + of this parameter is `true` and the request has an Amazon Web Services + signature, then only the topic owner and the subscription owner can + unsubscribe the endpoint. The unsubscribe action requires Amazon Web + Services authentication. + """ + @dataclass(kw_only=True) class ConfirmSubscriptionOutput(_SerdeShape): """Response for ConfirmSubscriptions action.""" @@ -215,6 +258,28 @@ class CreatePlatformApplicationInput(_SerdeShape): . """ +class CreatePlatformApplicationInputDict(TypedDict, total=False): + """Dictionary form of `CreatePlatformApplicationInput`.""" + + name: Required[str] + """ + Application names must be made up of only uppercase and lowercase ASCII + letters, numbers, underscores, hyphens, and periods, and must be between + 1 and 256 characters long. + """ + platform: Required[str] + """ + The following platforms are supported: ADM (Amazon Device Messaging), + APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase + Cloud Messaging). + """ + attributes: Required[Mapping[str, str]] + """ + For a list of attributes, see + [`SetPlatformApplicationAttributes`](https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html) + . + """ + @dataclass(kw_only=True) class CreatePlatformApplicationOutput(_SerdeShape): """Response from CreatePlatformApplication action.""" @@ -259,6 +324,35 @@ class CreatePlatformEndpointInput(_SerdeShape): . """ +class CreatePlatformEndpointInputDict(TypedDict, total=False): + """Dictionary form of `CreatePlatformEndpointInput`.""" + + platform_application_arn: Required[str] + """ + `PlatformApplicationArn` returned from CreatePlatformApplication is used + to create a an endpoint. + """ + token: Required[str] + """ + Unique identifier created by the notification service for an app on a + device. The specific name for Token will vary, depending on which + notification service is being used. For example, when using APNS as the + notification service, you need the device token. Alternatively, when + using GCM (Firebase Cloud Messaging) or ADM, the device token equivalent + is called the registration ID. + """ + custom_user_data: str | None + """ + Arbitrary user data to associate with the endpoint. Amazon SNS does not + use this data. The data must be in UTF-8 format and less than 2KB. + """ + attributes: Mapping[str, str] | None + """ + For a list of attributes, see + [`SetEndpointAttributes`](https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html) + . + """ + @dataclass(kw_only=True) class CreatePlatformEndpointOutput(_SerdeShape): """Response from CreateEndpoint action.""" @@ -286,6 +380,18 @@ class CreateSMSSandboxPhoneNumberInput(_SerdeShape): language_code: str | None = ... """The language to use for sending the OTP. The default value is `en-US`.""" +class CreateSMSSandboxPhoneNumberInputDict(TypedDict, total=False): + """Dictionary form of `CreateSMSSandboxPhoneNumberInput`.""" + + phone_number: Required[str] + """ + The destination phone number to verify. On verification, Amazon SNS adds + this phone number to the list of verified phone numbers that you can + send SMS messages to. + """ + language_code: str | None + """The language to use for sending the OTP. The default value is `en-US`.""" + @dataclass(kw_only=True) class CreateSMSSandboxPhoneNumberOutput(_SerdeShape): """Dataclass for CreateSMSSandboxPhoneNumberOutput structure.""" @@ -514,148 +620,387 @@ class CreateTopicInput(_SerdeShape): Length Constraints: Maximum length of 30,720. """ -@dataclass(kw_only=True) -class CreateTopicOutput(_SerdeShape): - """Response from CreateTopic action.""" +class CreateTopicInputDict(TypedDict, total=False): + """Dictionary form of `CreateTopicInput`.""" - topic_arn: str | None = ... - """The Amazon Resource Name (ARN) assigned to the created topic.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + name: Required[str] """ + The name of the topic you want to create. -@dataclass(kw_only=True) -class DeleteEndpointInput(_SerdeShape): - """Input for `DeleteEndpoint` action.""" - - endpoint_arn: str | None = ... - """`EndpointArn` of endpoint to delete.""" - -@dataclass(kw_only=True) -class DeleteEndpointOutput(_SerdeShape): - """Dataclass for DeleteEndpointOutput structure.""" + Constraints: Topic names must be made up of only uppercase and lowercase + ASCII letters, numbers, underscores, and hyphens, and must be between 1 + and 256 characters long. - response_metadata: ResponseMetadata = ... + For a FIFO (first-in-first-out) topic, the name must end with the + `.fifo` suffix. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + attributes: Mapping[str, str] | None """ + A map of attributes with their corresponding values. -@dataclass(kw_only=True) -class DeletePlatformApplicationInput(_SerdeShape): - """Input for `DeletePlatformApplication` action.""" + The following lists names, descriptions, and values of the special + request parameters that the `CreateTopic` action uses: - platform_application_arn: str | None = ... - """`PlatformApplicationArn` of platform application object to delete.""" + - `DeliveryPolicy` -- The policy that defines how Amazon SNS retries + failed deliveries to HTTP/S endpoints. -@dataclass(kw_only=True) -class DeletePlatformApplicationOutput(_SerdeShape): - """Dataclass for DeletePlatformApplicationOutput structure.""" + - `DisplayName` -- The display name to use for a topic with SMS, + `email`, and `email-json` subscriptions. For `email` and `email-json` + subscriptions, the display name is used as the sender name for regular + notification messages. Subscription confirmation and unsubscribe + confirmation emails always use \"Amazon Web Services Notifications\" + as the sender name. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `MaximumMessageSize` -- The maximum size, in bytes, of a message that + can be published to the topic. Valid values are `1024` to `1048576` (1 + MiB). The default is `262144` (256 KiB). -@dataclass(kw_only=True) -class DeleteSMSSandboxPhoneNumberInput(_SerdeShape): - """Dataclass for DeleteSMSSandboxPhoneNumberInput structure.""" + A topic with a `MaximumMessageSize` above 256 KiB must have 100 or + fewer subscriptions, and each subscription must be an Amazon SQS, + Amazon Data Firehose, or Lambda subscription. - phone_number: str | None = ... - """The destination phone number to delete.""" + - `Policy` -- The policy that defines who can access your topic. By + default, only the topic owner can publish or subscribe to the topic. -@dataclass(kw_only=True) -class DeleteSMSSandboxPhoneNumberOutput(_SerdeShape): - """Dataclass for DeleteSMSSandboxPhoneNumberOutput structure.""" + - `TracingConfig` -- Tracing mode of an Amazon SNS topic. By default + `TracingConfig` is set to `PassThrough`, and the topic passes through + the tracing header it receives from an Amazon SNS publisher to its + subscriptions. If set to `Active`, Amazon SNS will vend X-Ray segment + data to topic owner account if the sampled flag in the tracing header + is true. This is only supported on standard topics. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - HTTP -@dataclass(kw_only=True) -class DeleteTopicInput(_SerdeShape): - """Dataclass for DeleteTopicInput structure.""" + - `HTTPSuccessFeedbackRoleArn` -- Indicates successful message + delivery status for an Amazon SNS topic that is subscribed to an + HTTP endpoint. - topic_arn: str | None = ... - """The ARN of the topic you want to delete.""" + - `HTTPSuccessFeedbackSampleRate` -- Indicates percentage of + successful messages to sample for an Amazon SNS topic that is + subscribed to an HTTP endpoint. -@dataclass(kw_only=True) -class DeleteTopicOutput(_SerdeShape): - """Dataclass for DeleteTopicOutput structure.""" + - `HTTPFailureFeedbackRoleArn` -- Indicates failed message delivery + status for an Amazon SNS topic that is subscribed to an HTTP + endpoint. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - Amazon Data Firehose -@dataclass(kw_only=True) -class EmptyBatchRequestException(ServiceError, _SerdeShape): - """The batch request doesn't contain any entries.""" + - `FirehoseSuccessFeedbackRoleArn` -- Indicates successful message + delivery status for an Amazon SNS topic that is subscribed to an + Amazon Data Firehose endpoint. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `FirehoseSuccessFeedbackSampleRate` -- Indicates percentage of + successful messages to sample for an Amazon SNS topic that is + subscribed to an Amazon Data Firehose endpoint. -@dataclass(kw_only=True) -class Endpoint(_SerdeShape): - """The endpoint for mobile app and device.""" + - `FirehoseFailureFeedbackRoleArn` -- Indicates failed message + delivery status for an Amazon SNS topic that is subscribed to an + Amazon Data Firehose endpoint. - endpoint_arn: str | None = ... - """The `EndpointArn` for mobile app and device.""" - attributes: dict[str, str] | None = ... - """Attributes for endpoint.""" + - Lambda -@dataclass(kw_only=True) -class EndpointDisabledException(ServiceError, _SerdeShape): - """Exception error indicating endpoint disabled.""" + - `LambdaSuccessFeedbackRoleArn` -- Indicates successful message + delivery status for an Amazon SNS topic that is subscribed to an + Lambda endpoint. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `LambdaSuccessFeedbackSampleRate` -- Indicates percentage of + successful messages to sample for an Amazon SNS topic that is + subscribed to an Lambda endpoint. -@dataclass(kw_only=True) -class FilterPolicyLimitExceededException(ServiceError, _SerdeShape): - """ - Indicates that the number of filter polices in your Amazon Web Services - account exceeds the limit. To add more filter polices, submit an Amazon - SNS Limit Increase case in the Amazon Web Services Support Center. - """ + - `LambdaFailureFeedbackRoleArn` -- Indicates failed message delivery + status for an Amazon SNS topic that is subscribed to an Lambda + endpoint. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - Platform application endpoint -@dataclass(kw_only=True) -class GetDataProtectionPolicyInput(_SerdeShape): - """Dataclass for GetDataProtectionPolicyInput structure.""" + - `ApplicationSuccessFeedbackRoleArn` -- Indicates successful message + delivery status for an Amazon SNS topic that is subscribed to a + platform application endpoint. + + - `ApplicationSuccessFeedbackSampleRate` -- Indicates percentage of + successful messages to sample for an Amazon SNS topic that is + subscribed to an platform application endpoint. + + - `ApplicationFailureFeedbackRoleArn` -- Indicates failed message + delivery status for an Amazon SNS topic that is subscribed to an + platform application endpoint. + + Note: + In addition to being able to configure topic attributes for message + delivery status of notification messages sent to Amazon SNS + application endpoints, you can also configure application attributes + for the delivery status of push notification messages sent to push + notification services. + + For example, For more information, see [Using Amazon SNS Application + Attributes for Message Delivery + Status](https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html). + + - Amazon SQS + + - `SQSSuccessFeedbackRoleArn` -- Indicates successful message delivery + status for an Amazon SNS topic that is subscribed to an Amazon SQS + endpoint. + + - `SQSSuccessFeedbackSampleRate` -- Indicates percentage of successful + messages to sample for an Amazon SNS topic that is subscribed to an + Amazon SQS endpoint. + + - `SQSFailureFeedbackRoleArn` -- Indicates failed message delivery + status for an Amazon SNS topic that is subscribed to an Amazon SQS + endpoint. + + Note: + The ``{=html}SuccessFeedbackRoleArn and + ``{=html}FailureFeedbackRoleArn attributes are used to give + Amazon SNS write access to use CloudWatch Logs on your behalf. The + ``{=html}SuccessFeedbackSampleRate attribute is for specifying + the sample rate percentage (0-100) of successfully delivered messages. + After you configure the ``{=html}FailureFeedbackRoleArn + attribute, then all failed message deliveries generate CloudWatch Logs. + + The following attribute applies only to [server-side + encryption](https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html): + + - `KmsMasterKeyId` -- The ID of an Amazon Web Services managed customer + master key (CMK) for Amazon SNS or a custom CMK. For more information, + see [Key + Terms](https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms). + For more examples, see + [KeyId](https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters) + in the *Key Management Service API Reference*. + + The following attributes apply only to [FIFO + topics](https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html): + + - `ArchivePolicy` -- The policy that sets the retention period for + messages stored in the message archive of an Amazon SNS FIFO topic. + + - `ContentBasedDeduplication` -- Enables content-based deduplication for + FIFO topics. + + - By default, `ContentBasedDeduplication` is set to `false`. If you + create a FIFO topic and this attribute is `false`, you must specify + a value for the `MessageDeduplicationId` parameter for the + [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) + action. + + - When you set `ContentBasedDeduplication` to `true`, Amazon SNS uses + a SHA-256 hash to generate the `MessageDeduplicationId` using the + body of the message (but not the attributes of the message). + + (Optional) To override the generated value, you can specify a value + for the `MessageDeduplicationId` parameter for the `Publish` action. + + + + - `FifoThroughputScope` -- Enables higher throughput for your FIFO topic + by adjusting the scope of deduplication. This attribute has two + possible values: + + - `Topic` -- The scope of message deduplication is across the entire + topic. This is the default value and maintains existing behavior, + with a maximum throughput of 3000 messages per second or 20MB per + second, whichever comes first. + + - `MessageGroup` -- The scope of deduplication is within each + individual message group, which enables higher throughput per topic + subject to regional quotas. For more information on quotas or to + request an increase, see [Amazon SNS service + quotas](https://docs.aws.amazon.com/general/latest/gr/sns.html) in + the Amazon Web Services General Reference. + """ + tags: Sequence[Tag | TagDict] | None + """ + The list of tags to add to a new topic. + + Note: + To be able to tag a topic on creation, you must have the + `sns:CreateTopic` and `sns:TagResource` permissions. + """ + data_protection_policy: str | None + """ + Warning: + Amazon SNS message data protection is no longer available to new + customers. For more information and guidance on alternatives, see + [Amazon SNS message data protection availability + change](https://docs.aws.amazon.com/sns/latest/dg/sns-message-data-protection-availability-change.html). + + The body of the policy document you want to use for this topic. + + You can only add one policy per topic. + + The policy must be in JSON string format. + + Length Constraints: Maximum length of 30,720. + """ + +@dataclass(kw_only=True) +class CreateTopicOutput(_SerdeShape): + """Response from CreateTopic action.""" + + topic_arn: str | None = ... + """The Amazon Resource Name (ARN) assigned to the created topic.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DeleteEndpointInput(_SerdeShape): + """Input for `DeleteEndpoint` action.""" + + endpoint_arn: str | None = ... + """`EndpointArn` of endpoint to delete.""" + +class DeleteEndpointInputDict(TypedDict, total=False): + """Dictionary form of `DeleteEndpointInput`.""" + + endpoint_arn: Required[str] + """`EndpointArn` of endpoint to delete.""" + +@dataclass(kw_only=True) +class DeleteEndpointOutput(_SerdeShape): + """Dataclass for DeleteEndpointOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DeletePlatformApplicationInput(_SerdeShape): + """Input for `DeletePlatformApplication` action.""" + + platform_application_arn: str | None = ... + """`PlatformApplicationArn` of platform application object to delete.""" + +class DeletePlatformApplicationInputDict(TypedDict, total=False): + """Dictionary form of `DeletePlatformApplicationInput`.""" + + platform_application_arn: Required[str] + """`PlatformApplicationArn` of platform application object to delete.""" + +@dataclass(kw_only=True) +class DeletePlatformApplicationOutput(_SerdeShape): + """Dataclass for DeletePlatformApplicationOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DeleteSMSSandboxPhoneNumberInput(_SerdeShape): + """Dataclass for DeleteSMSSandboxPhoneNumberInput structure.""" + + phone_number: str | None = ... + """The destination phone number to delete.""" + +class DeleteSMSSandboxPhoneNumberInputDict(TypedDict, total=False): + """Dictionary form of `DeleteSMSSandboxPhoneNumberInput`.""" + + phone_number: Required[str] + """The destination phone number to delete.""" + +@dataclass(kw_only=True) +class DeleteSMSSandboxPhoneNumberOutput(_SerdeShape): + """Dataclass for DeleteSMSSandboxPhoneNumberOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class DeleteTopicInput(_SerdeShape): + """Dataclass for DeleteTopicInput structure.""" + + topic_arn: str | None = ... + """The ARN of the topic you want to delete.""" + +class DeleteTopicInputDict(TypedDict, total=False): + """Dictionary form of `DeleteTopicInput`.""" + + topic_arn: Required[str] + """The ARN of the topic you want to delete.""" + +@dataclass(kw_only=True) +class DeleteTopicOutput(_SerdeShape): + """Dataclass for DeleteTopicOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class EmptyBatchRequestException(ServiceError, _SerdeShape): + """The batch request doesn't contain any entries.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class Endpoint(_SerdeShape): + """The endpoint for mobile app and device.""" + + endpoint_arn: str | None = ... + """The `EndpointArn` for mobile app and device.""" + attributes: dict[str, str] | None = ... + """Attributes for endpoint.""" + +@dataclass(kw_only=True) +class EndpointDisabledException(ServiceError, _SerdeShape): + """Exception error indicating endpoint disabled.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class FilterPolicyLimitExceededException(ServiceError, _SerdeShape): + """ + Indicates that the number of filter polices in your Amazon Web Services + account exceeds the limit. To add more filter polices, submit an Amazon + SNS Limit Increase case in the Amazon Web Services Support Center. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetDataProtectionPolicyInput(_SerdeShape): + """Dataclass for GetDataProtectionPolicyInput structure.""" resource_arn: str | None = ... """ @@ -666,6 +1011,18 @@ class GetDataProtectionPolicyInput(_SerdeShape): in the Amazon Web Services General Reference. """ +class GetDataProtectionPolicyInputDict(TypedDict, total=False): + """Dictionary form of `GetDataProtectionPolicyInput`.""" + + resource_arn: Required[str] + """ + The ARN of the topic whose `DataProtectionPolicy` you want to get. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the Amazon Web Services General Reference. + """ + @dataclass(kw_only=True) class GetDataProtectionPolicyOutput(_SerdeShape): """Dataclass for GetDataProtectionPolicyOutput structure.""" @@ -687,6 +1044,12 @@ class GetEndpointAttributesInput(_SerdeShape): endpoint_arn: str | None = ... """`EndpointArn` for `GetEndpointAttributes` input.""" +class GetEndpointAttributesInputDict(TypedDict, total=False): + """Dictionary form of `GetEndpointAttributesInput`.""" + + endpoint_arn: Required[str] + """`EndpointArn` for `GetEndpointAttributes` input.""" + @dataclass(kw_only=True) class GetEndpointAttributesOutput(_SerdeShape): """Response from `GetEndpointAttributes` of the `EndpointArn`.""" @@ -727,6 +1090,12 @@ class GetPlatformApplicationAttributesInput(_SerdeShape): platform_application_arn: str | None = ... """`PlatformApplicationArn` for GetPlatformApplicationAttributesInput.""" +class GetPlatformApplicationAttributesInputDict(TypedDict, total=False): + """Dictionary form of `GetPlatformApplicationAttributesInput`.""" + + platform_application_arn: Required[str] + """`PlatformApplicationArn` for GetPlatformApplicationAttributesInput.""" + @dataclass(kw_only=True) class GetPlatformApplicationAttributesOutput(_SerdeShape): """Response for `GetPlatformApplicationAttributes` action.""" @@ -788,6 +1157,20 @@ class GetSMSAttributesInput(_SerdeShape): If you don't use this parameter, Amazon SNS returns all SMS attributes. """ +class GetSMSAttributesInputDict(TypedDict, total=False): + """Dictionary form of `GetSMSAttributesInput`.""" + + attributes: Sequence[str] | None + """ + A list of the individual attribute names, such as `MonthlySpendLimit`, + for which you want values. + + For all attribute names, see + [SetSMSAttributes](https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html). + + If you don't use this parameter, Amazon SNS returns all SMS attributes. + """ + @dataclass(kw_only=True) class GetSMSAttributesOutput(_SerdeShape): """The response from the `GetSMSAttributes` request.""" @@ -806,6 +1189,9 @@ class GetSMSAttributesOutput(_SerdeShape): class GetSMSSandboxAccountStatusInput(_SerdeShape): """Dataclass for GetSMSSandboxAccountStatusInput structure.""" +class GetSMSSandboxAccountStatusInputDict(TypedDict, total=False): + """Dictionary form of `GetSMSSandboxAccountStatusInput`.""" + @dataclass(kw_only=True) class GetSMSSandboxAccountStatusOutput(_SerdeShape): """Dataclass for GetSMSSandboxAccountStatusOutput structure.""" @@ -830,6 +1216,12 @@ class GetSubscriptionAttributesInput(_SerdeShape): subscription_arn: str | None = ... """The ARN of the subscription whose properties you want to get.""" +class GetSubscriptionAttributesInputDict(TypedDict, total=False): + """Dictionary form of `GetSubscriptionAttributesInput`.""" + + subscription_arn: Required[str] + """The ARN of the subscription whose properties you want to get.""" + @dataclass(kw_only=True) class GetSubscriptionAttributesOutput(_SerdeShape): """Response for GetSubscriptionAttributes action.""" @@ -915,6 +1307,12 @@ class GetTopicAttributesInput(_SerdeShape): topic_arn: str | None = ... """The ARN of the topic whose properties you want to get.""" +class GetTopicAttributesInputDict(TypedDict, total=False): + """Dictionary form of `GetTopicAttributesInput`.""" + + topic_arn: Required[str] + """The ARN of the topic whose properties you want to get.""" + @dataclass(kw_only=True) class GetTopicAttributesOutput(_SerdeShape): """Response for GetTopicAttributes action.""" @@ -1243,6 +1641,21 @@ class ListEndpointsByPlatformApplicationInput(_SerdeShape): records that are available after the first page results. """ +class ListEndpointsByPlatformApplicationInputDict(TypedDict, total=False): + """Dictionary form of `ListEndpointsByPlatformApplicationInput`.""" + + platform_application_arn: Required[str] + """ + `PlatformApplicationArn` for `ListEndpointsByPlatformApplicationInput` + action. + """ + next_token: str | None + """ + `NextToken` string is used when calling + `ListEndpointsByPlatformApplication` action to retrieve additional + records that are available after the first page results. + """ + @dataclass(kw_only=True) class ListEndpointsByPlatformApplicationOutput(_SerdeShape): """Response for `ListEndpointsByPlatformApplication` action.""" @@ -1272,6 +1685,14 @@ class ListOriginationNumbersInput(_SerdeShape): max_results: int | None = ... """The maximum number of origination numbers to return.""" +class ListOriginationNumbersInputDict(TypedDict, total=False): + """Dictionary form of `ListOriginationNumbersInput`.""" + + next_token: str | None + """Token that the previous `ListOriginationNumbers` request returns.""" + max_results: int | None + """The maximum number of origination numbers to return.""" + @dataclass(kw_only=True) class ListOriginationNumbersOutput(_SerdeShape): """Dataclass for ListOriginationNumbersOutput structure.""" @@ -1306,6 +1727,16 @@ class ListPhoneNumbersOptedOutInput(_SerdeShape): are available after the first page of results. """ +class ListPhoneNumbersOptedOutInputDict(TypedDict, total=False): + """Dictionary form of `ListPhoneNumbersOptedOutInput`.""" + + next_token: str | None + """ + A `NextToken` string is used when you call the + `ListPhoneNumbersOptedOut` action to retrieve additional records that + are available after the first page of results. + """ + @dataclass(kw_only=True) class ListPhoneNumbersOptedOutOutput(_SerdeShape): """The response from the `ListPhoneNumbersOptedOut` action.""" @@ -1341,6 +1772,16 @@ class ListPlatformApplicationsInput(_SerdeShape): page results. """ +class ListPlatformApplicationsInputDict(TypedDict, total=False): + """Dictionary form of `ListPlatformApplicationsInput`.""" + + next_token: str | None + """ + `NextToken` string is used when calling `ListPlatformApplications` + action to retrieve additional records that are available after the first + page results. + """ + @dataclass(kw_only=True) class ListPlatformApplicationsOutput(_SerdeShape): """Response for `ListPlatformApplications` action.""" @@ -1375,6 +1816,17 @@ class ListSMSSandboxPhoneNumbersInput(_SerdeShape): max_results: int | None = ... """The maximum number of phone numbers to return.""" +class ListSMSSandboxPhoneNumbersInputDict(TypedDict, total=False): + """Dictionary form of `ListSMSSandboxPhoneNumbersInput`.""" + + next_token: str | None + """ + Token that the previous `ListSMSSandboxPhoneNumbersInput` request + returns. + """ + max_results: int | None + """The maximum number of phone numbers to return.""" + @dataclass(kw_only=True) class ListSMSSandboxPhoneNumbersOutput(_SerdeShape): """Dataclass for ListSMSSandboxPhoneNumbersOutput structure.""" @@ -1404,6 +1856,14 @@ class ListSubscriptionsByTopicInput(_SerdeShape): next_token: str | None = ... """Token returned by the previous `ListSubscriptionsByTopic` request.""" +class ListSubscriptionsByTopicInputDict(TypedDict, total=False): + """Dictionary form of `ListSubscriptionsByTopicInput`.""" + + topic_arn: Required[str] + """The ARN of the topic for which you wish to find subscriptions.""" + next_token: str | None + """Token returned by the previous `ListSubscriptionsByTopic` request.""" + @dataclass(kw_only=True) class ListSubscriptionsByTopicOutput(_SerdeShape): """Response for ListSubscriptionsByTopic action.""" @@ -1430,6 +1890,12 @@ class ListSubscriptionsInput(_SerdeShape): next_token: str | None = ... """Token returned by the previous `ListSubscriptions` request.""" +class ListSubscriptionsInputDict(TypedDict, total=False): + """Dictionary form of `ListSubscriptionsInput`.""" + + next_token: str | None + """Token returned by the previous `ListSubscriptions` request.""" + @dataclass(kw_only=True) class ListSubscriptionsOutput(_SerdeShape): """Response for ListSubscriptions action""" @@ -1456,6 +1922,12 @@ class ListTagsForResourceInput(_SerdeShape): resource_arn: str | None = ... """The ARN of the topic for which to list tags.""" +class ListTagsForResourceInputDict(TypedDict, total=False): + """Dictionary form of `ListTagsForResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the topic for which to list tags.""" + @dataclass(kw_only=True) class ListTagsForResourceOutput(_SerdeShape): """Dataclass for ListTagsForResourceOutput structure.""" @@ -1477,6 +1949,12 @@ class ListTopicsInput(_SerdeShape): next_token: str | None = ... """Token returned by the previous `ListTopics` request.""" +class ListTopicsInputDict(TypedDict, total=False): + """Dictionary form of `ListTopicsInput`.""" + + next_token: str | None + """Token returned by the previous `ListTopics` request.""" + @dataclass(kw_only=True) class ListTopicsOutput(_SerdeShape): """Response for ListTopics action.""" @@ -1537,6 +2015,28 @@ class MessageAttributeValue(_SerdeShape): compressed data, encrypted data, or images. """ +class MessageAttributeValueDict(TypedDict, total=False): + """Dictionary form of `MessageAttributeValue`.""" + + data_type: Required[str] + """ + Amazon SNS supports the following logical data types: String, + String.Array, Number, and Binary. For more information, see [Message + Attribute Data + Types](https://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html#SNSMessageAttributes.DataTypes). + """ + string_value: str | None + """ + Strings are Unicode with UTF8 binary encoding. For a list of code + values, see [ASCII Printable + Characters](https://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + """ + binary_value: bytes | None + """ + Binary type attributes can store any binary data, for example, + compressed data, encrypted data, or images. + """ + @dataclass(kw_only=True) class NotFoundException(ServiceError, _SerdeShape): """Indicates that the requested resource does not exist.""" @@ -1579,6 +2079,12 @@ class OptInPhoneNumberInput(_SerdeShape): phone_number: str | None = ... """The phone number to opt in. Use E.164 format.""" +class OptInPhoneNumberInputDict(TypedDict, total=False): + """Dictionary form of `OptInPhoneNumberInput`.""" + + phone_number: Required[str] + """The phone number to opt in. Use E.164 format.""" + @dataclass(kw_only=True) class OptInPhoneNumberOutput(_SerdeShape): """The response for the OptInPhoneNumber action.""" @@ -1620,54 +2126,191 @@ class PlatformApplication(_SerdeShape): attributes: dict[str, str] | None = ... """Attributes for platform application object.""" -@dataclass(kw_only=True) -class PlatformApplicationDisabledException(ServiceError, _SerdeShape): - """Exception error indicating platform application disabled.""" +@dataclass(kw_only=True) +class PlatformApplicationDisabledException(ServiceError, _SerdeShape): + """Exception error indicating platform application disabled.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PublishBatchInput(_SerdeShape): + """Dataclass for PublishBatchInput structure.""" + + topic_arn: str | None = ... + """ + The Amazon resource name (ARN) of the topic you want to batch publish + to. + """ + publish_batch_request_entries: list[PublishBatchRequestEntry] | None = ... + """A list of `PublishBatch` request entries to be sent to the SNS topic.""" + +class PublishBatchInputDict(TypedDict, total=False): + """Dictionary form of `PublishBatchInput`.""" + + topic_arn: Required[str] + """ + The Amazon resource name (ARN) of the topic you want to batch publish + to. + """ + publish_batch_request_entries: Required[ + Sequence[PublishBatchRequestEntry | PublishBatchRequestEntryDict] + ] + """A list of `PublishBatch` request entries to be sent to the SNS topic.""" + +@dataclass(kw_only=True) +class PublishBatchOutput(_SerdeShape): + """Dataclass for PublishBatchOutput structure.""" + + successful: list[PublishBatchResultEntry] | None = ... + """A list of successful `PublishBatch` responses.""" + failed: list[BatchResultErrorEntry] | None = ... + """A list of failed `PublishBatch` responses.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class PublishBatchRequestEntry(_SerdeShape): + """ + Contains the details of a single Amazon SNS message along with an `Id` + that identifies a message within the batch. + """ + + id: str + """ + An identifier for the message in this batch. + + Note: + The `Ids` of a batch request must be unique within a request. + + This identifier can have up to 80 characters. The following characters + are accepted: alphanumeric characters, hyphens(-), and underscores (_). + """ + message: str + """The body of the message.""" + subject: str | None = ... + """The subject of the batch message.""" + message_structure: str | None = ... + """ + Set `MessageStructure` to `json` if you want to send a different message + for each protocol. For example, using one publish action, you can send a + short message to your SMS subscribers and a longer message to your email + subscribers. If you set `MessageStructure` to `json`, the value of the + `Message` parameter must: + + - be a syntactically valid JSON object; and + + - contain at least a top-level JSON key of \"default\" with a value that + is a string. + + You can define other top-level keys that define the message you want to + send to a specific transport protocol (for example, http). + """ + message_attributes: dict[str, MessageAttributeValue] | None = ... + """ + Each message attribute consists of a `Name`, `Type`, and `Value`. For + more information, see [Amazon SNS message + attributes](https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html) + in the Amazon SNS Developer Guide. + """ + message_deduplication_id: str | None = ... + """ + This parameter applies only to FIFO (first-in-first-out) topics. + + - This parameter applies only to FIFO (first-in-first-out) topics. The + `MessageDeduplicationId` can contain up to 128 alphanumeric characters + `(a-z, A-Z, 0-9)` and punctuation + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. + + - Every message must have a unique `MessageDeduplicationId`, which is a + token used for deduplication of sent messages within the 5 minute + minimum deduplication interval. + + - The scope of deduplication depends on the `FifoThroughputScope` + attribute, when set to `Topic` the message deduplication scope is + across the entire topic, when set to `MessageGroup` the message + deduplication scope is within each individual message group. + + - If a message with a particular `MessageDeduplicationId` is sent + successfully, subsequent messages within the deduplication scope and + interval, with the same `MessageDeduplicationId`, are accepted + successfully but aren't delivered. + + - Every message must have a unique `MessageDeduplicationId`. + + - You may provide a `MessageDeduplicationId` explicitly. + + - If you aren't able to provide a `MessageDeduplicationId` and you + enable `ContentBasedDeduplication` for your topic, Amazon SNS uses a + SHA-256 hash to generate the `MessageDeduplicationId` using the body + of the message (but not the attributes of the message). + + - If you don't provide a `MessageDeduplicationId` and the topic + doesn't have `ContentBasedDeduplication` set, the action fails with + an error. + + - If the topic has a `ContentBasedDeduplication` set, your + `MessageDeduplicationId` overrides the generated one. + + - When `ContentBasedDeduplication` is in effect, messages with identical + content sent within the deduplication scope and interval are treated + as duplicates and only one copy of the message is delivered. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - If you send one message with `ContentBasedDeduplication` enabled, and + then another message with a `MessageDeduplicationId` that is the same + as the one generated for the first `MessageDeduplicationId`, the two + messages are treated as duplicates, within the deduplication scope and + interval, and only one copy of the message is delivered. -@dataclass(kw_only=True) -class PublishBatchInput(_SerdeShape): - """Dataclass for PublishBatchInput structure.""" + Note: + The `MessageDeduplicationId` is available to the consumer of the message + (this can be useful for troubleshooting delivery issues). - topic_arn: str | None = ... + If a message is sent successfully but the acknowledgement is lost and + the message is resent with the same `MessageDeduplicationId` after the + deduplication interval, Amazon SNS can't detect duplicate messages. + + Amazon SNS continues to keep track of the message deduplication ID even + after the message is received and deleted. """ - The Amazon resource name (ARN) of the topic you want to batch publish - to. + message_group_id: str | None = ... """ - publish_batch_request_entries: list[PublishBatchRequestEntry] | None = ... - """A list of `PublishBatch` request entries to be sent to the SNS topic.""" + FIFO topics: The tag that specifies that a message belongs to a specific + message group. Messages that belong to the same message group are + processed in a FIFO manner (however, messages in different message + groups might be processed out of order). To interleave multiple ordered + streams within a single topic, use `MessageGroupId` values (for example, + session data for multiple users). In this scenario, multiple consumers + can process the topic, but the session data of each user is processed in + a FIFO fashion. You must associate a non-empty `MessageGroupId` with a + message. If you do not provide a `MessageGroupId`, the action fails. -@dataclass(kw_only=True) -class PublishBatchOutput(_SerdeShape): - """Dataclass for PublishBatchOutput structure.""" + Standard topics: The `MessageGroupId` is optional and is forwarded only + to Amazon SQS standard subscriptions to activate [fair + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-fair-queues.html). + The `MessageGroupId` is not used for, or sent to, any other endpoint + types. - successful: list[PublishBatchResultEntry] | None = ... - """A list of successful `PublishBatch` responses.""" - failed: list[BatchResultErrorEntry] | None = ... - """A list of failed `PublishBatch` responses.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + The length of `MessageGroupId` is 128 characters. -@dataclass(kw_only=True) -class PublishBatchRequestEntry(_SerdeShape): - """ - Contains the details of a single Amazon SNS message along with an `Id` - that identifies a message within the batch. + `MessageGroupId` can contain alphanumeric characters `(a-z, A-Z, 0-9)` + and punctuation `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. """ - id: str +class PublishBatchRequestEntryDict(TypedDict, total=False): + """Dictionary form of `PublishBatchRequestEntry`.""" + + id: Required[str] """ An identifier for the message in this batch. @@ -1677,11 +2320,11 @@ class PublishBatchRequestEntry(_SerdeShape): This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_). """ - message: str + message: Required[str] """The body of the message.""" - subject: str | None = ... + subject: str | None """The subject of the batch message.""" - message_structure: str | None = ... + message_structure: str | None """ Set `MessageStructure` to `json` if you want to send a different message for each protocol. For example, using one publish action, you can send a @@ -1697,21 +2340,23 @@ class PublishBatchRequestEntry(_SerdeShape): You can define other top-level keys that define the message you want to send to a specific transport protocol (for example, http). """ - message_attributes: dict[str, MessageAttributeValue] | None = ... + message_attributes: ( + Mapping[str, MessageAttributeValue | MessageAttributeValueDict] | None + ) """ Each message attribute consists of a `Name`, `Type`, and `Value`. For more information, see [Amazon SNS message attributes](https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html) in the Amazon SNS Developer Guide. """ - message_deduplication_id: str | None = ... + message_deduplication_id: str | None """ This parameter applies only to FIFO (first-in-first-out) topics. - This parameter applies only to FIFO (first-in-first-out) topics. The `MessageDeduplicationId` can contain up to 128 alphanumeric characters `(a-z, A-Z, 0-9)` and punctuation - `` (!"#$%&'()*+,-./:;<=>?@[]^_`{|}~) ``. + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. - Every message must have a unique `MessageDeduplicationId`, which is a token used for deduplication of sent messages within the 5 minute @@ -1764,7 +2409,7 @@ class PublishBatchRequestEntry(_SerdeShape): Amazon SNS continues to keep track of the message deduplication ID even after the message is received and deleted. """ - message_group_id: str | None = ... + message_group_id: str | None """ FIFO topics: The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are @@ -1782,51 +2427,236 @@ class PublishBatchRequestEntry(_SerdeShape): The `MessageGroupId` is not used for, or sent to, any other endpoint types. - The length of `MessageGroupId` is 128 characters. + The length of `MessageGroupId` is 128 characters. + + `MessageGroupId` can contain alphanumeric characters `(a-z, A-Z, 0-9)` + and punctuation `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. + """ + +@dataclass(kw_only=True) +class PublishBatchResultEntry(_SerdeShape): + """ + Encloses data related to a successful message in a batch request for + topic. + """ + + id: str | None = ... + """The `Id` of an entry in a batch request.""" + message_id: str | None = ... + """An identifier for the message.""" + sequence_number: str | None = ... + """ + This parameter applies only to FIFO (first-in-first-out) topics. + + The large, non-consecutive number that Amazon SNS assigns to each + message. + + The length of `SequenceNumber` is 128 bits. `SequenceNumber` continues + to increase for a particular `MessageGroupId`. + """ + +@dataclass(kw_only=True) +class PublishInput(_SerdeShape): + """Input for Publish action.""" + + topic_arn: str | None = ... + """ + The topic you want to publish to. + + If you don't specify a value for the `TopicArn` parameter, you must + specify a value for the `PhoneNumber` or `TargetArn` parameters. + """ + target_arn: str | None = ... + """ + If you don't specify a value for the `TargetArn` parameter, you must + specify a value for the `PhoneNumber` or `TopicArn` parameters. + """ + phone_number: str | None = ... + """ + The phone number to which you want to deliver an SMS message. Use E.164 + format. + + If you don't specify a value for the `PhoneNumber` parameter, you must + specify a value for the `TargetArn` or `TopicArn` parameters. + """ + message: str | None = ... + """ + The message you want to send. + + If you are publishing to a topic and you want to send the same message + to all transport protocols, include the text of the message as a String + value. If you want to send different messages for each transport + protocol, set the value of the `MessageStructure` parameter to `json` + and use a JSON object for the `Message` parameter. + + Constraints: + + - With the exception of SMS, messages must be UTF-8 encoded strings. By + default, a message can be at most 256 KiB in size (262,144 bytes, not + 262,144 characters). + + When you publish to a topic, the maximum size is determined by the + topic's `MaximumMessageSize` attribute, which supports values up to 1 + MiB (1,048,576 bytes). Amazon SNS validates the combined size of the + message body and message attributes against this value and returns an + `InvalidParameter` error if the limit is exceeded. + + For more information, see [Large message + payloads](https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html) + in the *Amazon SNS Developer Guide.* + + - For SMS, each message can contain up to 140 characters. This character + limit depends on the encoding schema. For example, an SMS message can + contain 160 GSM characters, 140 ASCII characters, or 70 UCS-2 + characters. + + If you publish a message that exceeds this size limit, Amazon SNS + sends the message as multiple messages, each fitting within the size + limit. Messages aren't truncated mid-word but are cut off at + whole-word boundaries. + + The total size limit for a single SMS `Publish` action is 1,600 + characters. + + JSON-specific constraints: + + - Keys in the JSON object that correspond to supported transport + protocols must have simple JSON string values. + + - The values will be parsed (unescaped) before they are used in outgoing + messages. + + - Outbound notifications are JSON encoded (meaning that the characters + will be reescaped for sending). + + - Values have a minimum length of 0 (the empty string, \"\", is + allowed). + + - Values have a maximum length bounded by the overall message size (so, + including multiple protocols may limit message sizes). + + - Non-string values will cause the key to be ignored. + + - Keys that do not correspond to supported transport protocols are + ignored. + + - Duplicate keys are not allowed. + + - Failure to parse or validate any key or value in the message will + cause the `Publish` call to return an error (no partial delivery). + """ + subject: str | None = ... + """ + Optional parameter to be used as the \"Subject\" line when the message + is delivered to email endpoints. This field will also be included, if + present, in the standard JSON messages delivered to other endpoints. + + Constraints: Subjects must be UTF-8 text with no line breaks or control + characters, and less than 100 characters long. + """ + message_structure: str | None = ... + """ + Set `MessageStructure` to `json` if you want to send a different message + for each protocol. For example, using one publish action, you can send a + short message to your SMS subscribers and a longer message to your email + subscribers. If you set `MessageStructure` to `json`, the value of the + `Message` parameter must: + + - be a syntactically valid JSON object; and + + - contain at least a top-level JSON key of \"default\" with a value that + is a string. + + You can define other top-level keys that define the message you want to + send to a specific transport protocol (e.g., \"http\"). + + Valid value: `json` + """ + message_attributes: dict[str, MessageAttributeValue] | None = ... + """Message attributes for Publish action.""" + message_deduplication_id: str | None = ... + """ + - This parameter applies only to FIFO (first-in-first-out) topics. The + `MessageDeduplicationId` can contain up to 128 alphanumeric characters + `(a-z, A-Z, 0-9)` and punctuation + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. + + - Every message must have a unique `MessageDeduplicationId`, which is a + token used for deduplication of sent messages within the 5 minute + minimum deduplication interval. + + - The scope of deduplication depends on the `FifoThroughputScope` + attribute, when set to `Topic` the message deduplication scope is + across the entire topic, when set to `MessageGroup` the message + deduplication scope is within each individual message group. + + - If a message with a particular `MessageDeduplicationId` is sent + successfully, subsequent messages within the deduplication scope and + interval, with the same `MessageDeduplicationId`, are accepted + successfully but aren't delivered. + + - Every message must have a unique `MessageDeduplicationId`: + + - You may provide a `MessageDeduplicationId` explicitly. + + - If you aren't able to provide a `MessageDeduplicationId` and you + enable `ContentBasedDeduplication` for your topic, Amazon SNS uses a + SHA-256 hash to generate the `MessageDeduplicationId` using the body + of the message (but not the attributes of the message). + + - If you don't provide a `MessageDeduplicationId` and the topic + doesn't have `ContentBasedDeduplication` set, the action fails with + an error. + + - If the topic has a `ContentBasedDeduplication` set, your + `MessageDeduplicationId` overrides the generated one. - `MessageGroupId` can contain alphanumeric characters `(a-z, A-Z, 0-9)` - and punctuation `` (!"#$%&'()*+,-./:;<=>?@[]^_`{|}~) ``. - """ + - When `ContentBasedDeduplication` is in effect, messages with identical + content sent within the deduplication scope and interval are treated + as duplicates and only one copy of the message is delivered. -@dataclass(kw_only=True) -class PublishBatchResultEntry(_SerdeShape): - """ - Encloses data related to a successful message in a batch request for - topic. + - If you send one message with `ContentBasedDeduplication` enabled, and + then another message with a `MessageDeduplicationId` that is the same + as the one generated for the first `MessageDeduplicationId`, the two + messages are treated as duplicates, within the deduplication scope and + interval, and only one copy of the message is delivered. """ - - id: str | None = ... - """The `Id` of an entry in a batch request.""" - message_id: str | None = ... - """An identifier for the message.""" - sequence_number: str | None = ... + message_group_id: str | None = ... """ - This parameter applies only to FIFO (first-in-first-out) topics. + The `MessageGroupId` can contain up to 128 alphanumeric characters + `(a-z, A-Z, 0-9)` and punctuation + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. - The large, non-consecutive number that Amazon SNS assigns to each - message. + For FIFO topics: The `MessageGroupId` is a tag that specifies that a + message belongs to a specific message group. Messages that belong to the + same message group are processed in a FIFO manner (however, messages in + different message groups might be processed out of order). Every message + must include a `MessageGroupId`. - The length of `SequenceNumber` is 128 bits. `SequenceNumber` continues - to increase for a particular `MessageGroupId`. + For standard topics: The `MessageGroupId` is optional and is forwarded + only to Amazon SQS standard subscriptions to activate [fair + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-fair-queues.html). + The `MessageGroupId` is not used for, or sent to, any other endpoint + types. When provided, the same validation rules apply as for FIFO + topics. """ -@dataclass(kw_only=True) -class PublishInput(_SerdeShape): - """Input for Publish action.""" +class PublishInputDict(TypedDict, total=False): + """Dictionary form of `PublishInput`.""" - topic_arn: str | None = ... + topic_arn: str | None """ The topic you want to publish to. If you don't specify a value for the `TopicArn` parameter, you must specify a value for the `PhoneNumber` or `TargetArn` parameters. """ - target_arn: str | None = ... + target_arn: str | None """ If you don't specify a value for the `TargetArn` parameter, you must specify a value for the `PhoneNumber` or `TopicArn` parameters. """ - phone_number: str | None = ... + phone_number: str | None """ The phone number to which you want to deliver an SMS message. Use E.164 format. @@ -1834,7 +2664,7 @@ class PublishInput(_SerdeShape): If you don't specify a value for the `PhoneNumber` parameter, you must specify a value for the `TargetArn` or `TopicArn` parameters. """ - message: str | None = ... + message: Required[str] """ The message you want to send. @@ -1900,7 +2730,7 @@ class PublishInput(_SerdeShape): - Failure to parse or validate any key or value in the message will cause the `Publish` call to return an error (no partial delivery). """ - subject: str | None = ... + subject: str | None """ Optional parameter to be used as the \"Subject\" line when the message is delivered to email endpoints. This field will also be included, if @@ -1909,7 +2739,7 @@ class PublishInput(_SerdeShape): Constraints: Subjects must be UTF-8 text with no line breaks or control characters, and less than 100 characters long. """ - message_structure: str | None = ... + message_structure: str | None """ Set `MessageStructure` to `json` if you want to send a different message for each protocol. For example, using one publish action, you can send a @@ -1927,14 +2757,16 @@ class PublishInput(_SerdeShape): Valid value: `json` """ - message_attributes: dict[str, MessageAttributeValue] | None = ... + message_attributes: ( + Mapping[str, MessageAttributeValue | MessageAttributeValueDict] | None + ) """Message attributes for Publish action.""" - message_deduplication_id: str | None = ... + message_deduplication_id: str | None """ - This parameter applies only to FIFO (first-in-first-out) topics. The `MessageDeduplicationId` can contain up to 128 alphanumeric characters `(a-z, A-Z, 0-9)` and punctuation - `` (!"#$%&'()*+,-./:;<=>?@[]^_`{|}~) ``. + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. - Every message must have a unique `MessageDeduplicationId`, which is a token used for deduplication of sent messages within the 5 minute @@ -1976,11 +2808,11 @@ class PublishInput(_SerdeShape): messages are treated as duplicates, within the deduplication scope and interval, and only one copy of the message is delivered. """ - message_group_id: str | None = ... + message_group_id: str | None """ The `MessageGroupId` can contain up to 128 alphanumeric characters `(a-z, A-Z, 0-9)` and punctuation - `` (!"#$%&'()*+,-./:;<=>?@[]^_`{|}~) ``. + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. For FIFO topics: The `MessageGroupId` is a tag that specifies that a message belongs to a specific message group. Messages that belong to the @@ -2044,6 +2876,27 @@ class PutDataProtectionPolicyInput(_SerdeShape): Length Constraints: Maximum length of 30,720. """ +class PutDataProtectionPolicyInputDict(TypedDict, total=False): + """Dictionary form of `PutDataProtectionPolicyInput`.""" + + resource_arn: Required[str] + """ + The ARN of the topic whose `DataProtectionPolicy` you want to add or + update. + + For more information about ARNs, see [Amazon Resource Names + (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the Amazon Web Services General Reference. + """ + data_protection_policy: Required[str] + """ + The JSON serialization of the topic's `DataProtectionPolicy`. + + The `DataProtectionPolicy` must be in JSON string format. + + Length Constraints: Maximum length of 30,720. + """ + @dataclass(kw_only=True) class PutDataProtectionPolicyOutput(_SerdeShape): """Dataclass for PutDataProtectionPolicyOutput structure.""" @@ -2065,6 +2918,14 @@ class RemovePermissionInput(_SerdeShape): label: str | None = ... """The unique label of the statement you want to remove.""" +class RemovePermissionInputDict(TypedDict, total=False): + """Dictionary form of `RemovePermissionInput`.""" + + topic_arn: Required[str] + """The ARN of the topic whose access control policy you wish to modify.""" + label: Required[str] + """The unique label of the statement you want to remove.""" + @dataclass(kw_only=True) class RemovePermissionOutput(_SerdeShape): """Dataclass for RemovePermissionOutput structure.""" @@ -2144,6 +3005,31 @@ class SetEndpointAttributesInput(_SerdeShape): service. """ +class SetEndpointAttributesInputDict(TypedDict, total=False): + """Dictionary form of `SetEndpointAttributesInput`.""" + + endpoint_arn: Required[str] + """EndpointArn used for `SetEndpointAttributes` action.""" + attributes: Required[Mapping[str, str]] + """ + A map of the endpoint attributes. Attributes in this map include the + following: + + - `CustomUserData` -- arbitrary user data to associate with the + endpoint. Amazon SNS does not use this data. The data must be in UTF-8 + format and less than 2KB. + + - `Enabled` -- flag that enables/disables delivery to the endpoint. + Amazon SNS will set this to false when a notification service + indicates to Amazon SNS that the endpoint is invalid. Users can set it + back to true, typically after updating Token. + + - `Token` -- device token, also referred to as a registration id, for an + app and mobile device. This is returned from the notification service + when an app and mobile device are registered with the notification + service. + """ + @dataclass(kw_only=True) class SetEndpointAttributesOutput(_SerdeShape): """Dataclass for SetEndpointAttributesOutput structure.""" @@ -2237,6 +3123,86 @@ class SetPlatformApplicationAttributesInput(_SerdeShape): your iOS app. """ +class SetPlatformApplicationAttributesInputDict(TypedDict, total=False): + """Dictionary form of `SetPlatformApplicationAttributesInput`.""" + + platform_application_arn: Required[str] + """`PlatformApplicationArn` for `SetPlatformApplicationAttributes` action.""" + attributes: Required[Mapping[str, str]] + """ + A map of the platform application attributes. Attributes in this map + include the following: + + - `PlatformCredential` -- The credential received from the notification + service. + + - For ADM, `PlatformCredential`is client secret. + + - For Apple Services using certificate credentials, + `PlatformCredential` is private key. + + - For Apple Services using token credentials, `PlatformCredential` is + signing key. + + - For GCM (Firebase Cloud Messaging) using key credentials, there is + no `PlatformPrincipal`. The `PlatformCredential` is `API key`. + + - For GCM (Firebase Cloud Messaging) using token credentials, there is + no `PlatformPrincipal`. The `PlatformCredential` is a JSON formatted + private key file. When using the Amazon Web Services CLI, the file + must be in string format and special characters must be ignored. To + format the file correctly, Amazon SNS recommends using the following + command: `` SERVICE_JSON=`jq @json <<< cat service.json` ``. + + + + - `PlatformPrincipal` -- The principal received from the notification + service. + + - For ADM, `PlatformPrincipal`is client id. + + - For Apple Services using certificate credentials, + `PlatformPrincipal` is SSL certificate. + + - For Apple Services using token credentials, `PlatformPrincipal` is + signing key ID. + + - For GCM (Firebase Cloud Messaging), there is no `PlatformPrincipal`. + + + + - `EventEndpointCreated` -- Topic ARN to which `EndpointCreated` event + notifications are sent. + + - `EventEndpointDeleted` -- Topic ARN to which `EndpointDeleted` event + notifications are sent. + + - `EventEndpointUpdated` -- Topic ARN to which `EndpointUpdate` event + notifications are sent. + + - `EventDeliveryFailure` -- Topic ARN to which `DeliveryFailure` event + notifications are sent upon Direct Publish delivery failure + (permanent) to one of the application's endpoints. + + - `SuccessFeedbackRoleArn` -- IAM role ARN used to give Amazon SNS write + access to use CloudWatch Logs on your behalf. + + - `FailureFeedbackRoleArn` -- IAM role ARN used to give Amazon SNS write + access to use CloudWatch Logs on your behalf. + + - `SuccessFeedbackSampleRate` -- Sample rate percentage (0-100) of + successfully delivered messages. + + The following attributes only apply to `APNs` token-based + authentication: + + - `ApplePlatformTeamID` -- The identifier that's assigned to your Apple + developer account team. + + - `ApplePlatformBundleID` -- The bundle identifier that's assigned to + your iOS app. + """ + @dataclass(kw_only=True) class SetPlatformApplicationAttributesOutput(_SerdeShape): """Dataclass for SetPlatformApplicationAttributesOutput structure.""" @@ -2249,11 +3215,97 @@ class SetPlatformApplicationAttributesOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class SetSMSAttributesInput(_SerdeShape): - """The input for the SetSMSAttributes action.""" +@dataclass(kw_only=True) +class SetSMSAttributesInput(_SerdeShape): + """The input for the SetSMSAttributes action.""" + + attributes: dict[str, str] | None = ... + """ + The default settings for sending SMS messages from your Amazon Web + Services account. You can set values for the following attribute names: + + `MonthlySpendLimit` -- The maximum amount in USD that you are willing to + spend each month to send SMS messages. When Amazon SNS determines that + sending an SMS message would incur a cost that exceeds this limit, it + stops sending SMS messages within minutes. + + Warning: + Amazon SNS stops sending SMS messages within minutes of the limit being + crossed. During that interval, if you continue to send SMS messages, you + will incur costs that exceed your limit. + + By default, the spend limit is set to the maximum allowed by Amazon SNS. + If you want to raise the limit, submit an [SNS Limit Increase + case](https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-sns). + For **New limit value**, enter your desired monthly spend limit. In the + **Use Case Description** field, explain that you are requesting an SMS + monthly spend limit increase. + + `DeliveryStatusIAMRole` -- The ARN of the IAM role that allows Amazon + SNS to write logs about SMS deliveries in CloudWatch Logs. For each SMS + message that you send, Amazon SNS writes a log that includes the message + price, the success or failure status, the reason for failure (if the + message failed), the message dwell time, and other information. + + `DeliveryStatusSuccessSamplingRate` -- The percentage of successful SMS + deliveries for which Amazon SNS will write logs in CloudWatch Logs. The + value can be an integer from 0 - 100. For example, to write logs only + for failed deliveries, set this value to `0`. To write logs for 10% of + your successful deliveries, set it to `10`. + + `DefaultSenderID` -- A string, such as your business brand, that is + displayed as the sender on the receiving device. Support for sender IDs + varies by country. The sender ID can be 1 - 11 alphanumeric characters, + and it must contain at least one letter. + + `DefaultSMSType` -- The type of SMS message that you will send by + default. You can assign the following values: + + - `Promotional` -- (Default) Noncritical messages, such as marketing + messages. Amazon SNS optimizes the message delivery to incur the + lowest cost. + + - `Transactional` -- Critical messages that support customer + transactions, such as one-time passcodes for multi-factor + authentication. Amazon SNS optimizes the message delivery to achieve + the highest reliability. + + `UsageReportS3Bucket` -- The name of the Amazon S3 bucket to receive + daily SMS usage reports from Amazon SNS. Each day, Amazon SNS will + deliver a usage report as a CSV file to the bucket. The report includes + the following information for each SMS message that was successfully + delivered by your Amazon Web Services account: + + - Time that the message was published (in UTC) + + - Message ID + + - Destination phone number + + - Message type + + - Delivery status + + - Message price (in USD) + + - Part number (a message is split into multiple parts if it is too long + for a single message) + + - Total number of parts + + To receive the report, the bucket must have a policy that allows the + Amazon SNS service principal to perform the `s3:PutObject` and + `s3:GetBucketLocation` actions. + + For an example bucket policy and usage report, see [Monitoring SMS + Activity](https://docs.aws.amazon.com/sns/latest/dg/sms_stats.html) in + the *Amazon SNS Developer Guide*. + """ + +class SetSMSAttributesInputDict(TypedDict, total=False): + """Dictionary form of `SetSMSAttributesInput`.""" - attributes: dict[str, str] | None = ... + attributes: Required[Mapping[str, str]] """ The default settings for sending SMS messages from your Amazon Web Services account. You can set values for the following attribute names: @@ -2364,68 +3416,322 @@ class SetSubscriptionAttributesInput(_SerdeShape): - `DeliveryPolicy` -- The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints. - - `FilterPolicy` -- The simple JSON object that lets your subscriber - receive only a subset of messages, rather than receiving every message - published to the topic. + - `FilterPolicy` -- The simple JSON object that lets your subscriber + receive only a subset of messages, rather than receiving every message + published to the topic. + + - `FilterPolicyScope` -- This attribute lets you choose the filtering + scope by using one of the following string value types: + + - `MessageAttributes` (default) -- The filter is applied on the + message attributes. + + - `MessageBody` -- The filter is applied on the message body. + + - `RawMessageDelivery` -- When set to `true`, enables raw message + delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need + for the endpoints to process JSON formatting, which is otherwise + created for Amazon SNS metadata. + + - `RedrivePolicy` -- When specified, sends undeliverable messages to the + specified Amazon SQS dead-letter queue. Messages that can't be + delivered due to client errors (for example, when the subscribed + endpoint is unreachable) or server errors (for example, when the + service that powers the subscribed endpoint becomes unavailable) are + held in the dead-letter queue for further analysis or reprocessing. + + The following attribute applies only to Amazon Data Firehose delivery + stream subscriptions: + + - `SubscriptionRoleArn` -- The ARN of the IAM role that has the + following: + + - Permission to write to the Firehose delivery stream + + - Amazon SNS listed as a trusted entity + + Specifying a valid ARN for this attribute is required for Firehose + delivery stream subscriptions. For more information, see [Fanout to + Firehose delivery + streams](https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html) + in the *Amazon SNS Developer Guide*. + """ + attribute_value: str | None = ... + """The new value for the attribute in JSON format.""" + +class SetSubscriptionAttributesInputDict(TypedDict, total=False): + """Dictionary form of `SetSubscriptionAttributesInput`.""" + + subscription_arn: Required[str] + """The ARN of the subscription to modify.""" + attribute_name: Required[str] + """ + A map of attributes with their corresponding values. + + The following lists the names, descriptions, and values of the special + request parameters that this action uses: + + - `DeliveryPolicy` -- The policy that defines how Amazon SNS retries + failed deliveries to HTTP/S endpoints. + + - `FilterPolicy` -- The simple JSON object that lets your subscriber + receive only a subset of messages, rather than receiving every message + published to the topic. + + - `FilterPolicyScope` -- This attribute lets you choose the filtering + scope by using one of the following string value types: + + - `MessageAttributes` (default) -- The filter is applied on the + message attributes. + + - `MessageBody` -- The filter is applied on the message body. + + - `RawMessageDelivery` -- When set to `true`, enables raw message + delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need + for the endpoints to process JSON formatting, which is otherwise + created for Amazon SNS metadata. + + - `RedrivePolicy` -- When specified, sends undeliverable messages to the + specified Amazon SQS dead-letter queue. Messages that can't be + delivered due to client errors (for example, when the subscribed + endpoint is unreachable) or server errors (for example, when the + service that powers the subscribed endpoint becomes unavailable) are + held in the dead-letter queue for further analysis or reprocessing. + + The following attribute applies only to Amazon Data Firehose delivery + stream subscriptions: + + - `SubscriptionRoleArn` -- The ARN of the IAM role that has the + following: + + - Permission to write to the Firehose delivery stream + + - Amazon SNS listed as a trusted entity + + Specifying a valid ARN for this attribute is required for Firehose + delivery stream subscriptions. For more information, see [Fanout to + Firehose delivery + streams](https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html) + in the *Amazon SNS Developer Guide*. + """ + attribute_value: str | None + """The new value for the attribute in JSON format.""" + +@dataclass(kw_only=True) +class SetSubscriptionAttributesOutput(_SerdeShape): + """Dataclass for SetSubscriptionAttributesOutput structure.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class SetTopicAttributesInput(_SerdeShape): + """Input for SetTopicAttributes action.""" + + topic_arn: str | None = ... + """The ARN of the topic to modify.""" + attribute_name: str | None = ... + """ + A map of attributes with their corresponding values. + + The following lists the names, descriptions, and values of the special + request parameters that the `SetTopicAttributes` action uses: + + - `DeliveryPolicy` -- The policy that defines how Amazon SNS retries + failed deliveries to HTTP/S endpoints. + + - `DisplayName` -- The display name to use for a topic with SMS, + `email`, and `email-json` subscriptions. For `email` and `email-json` + subscriptions, the display name is used as the sender name for regular + notification messages. Subscription confirmation and unsubscribe + confirmation emails always use \"Amazon Web Services Notifications\" + as the sender name. + + - `MaximumMessageSize` -- The maximum size, in bytes, of a message that + can be published to the topic. Valid values are `1024` to `1048576` (1 + MiB). The default is `262144` (256 KiB). + + A topic with a `MaximumMessageSize` above 256 KiB must have 100 or + fewer subscriptions, and each subscription must be an Amazon SQS, + Amazon Data Firehose, or Lambda subscription. + + You can increase or decrease this value at any time. If the topic + doesn't meet these requirements when you set a value above 256 KiB, + Amazon SNS returns an `InvalidParameter` error. For more information, + see [Large message + payloads](https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html) + in the *Amazon SNS Developer Guide.* + + - `Policy` -- The policy that defines who can access your topic. By + default, only the topic owner can publish or subscribe to the topic. + + - `TracingConfig` -- Tracing mode of an Amazon SNS topic. By default + `TracingConfig` is set to `PassThrough`, and the topic passes through + the tracing header it receives from an Amazon SNS publisher to its + subscriptions. If set to `Active`, Amazon SNS will vend X-Ray segment + data to topic owner account if the sampled flag in the tracing header + is true. This is only supported on standard topics. + + - HTTP + + - `HTTPSuccessFeedbackRoleArn` -- Indicates successful message + delivery status for an Amazon SNS topic that is subscribed to an + HTTP endpoint. + + - `HTTPSuccessFeedbackSampleRate` -- Indicates percentage of + successful messages to sample for an Amazon SNS topic that is + subscribed to an HTTP endpoint. + + - `HTTPFailureFeedbackRoleArn` -- Indicates failed message delivery + status for an Amazon SNS topic that is subscribed to an HTTP + endpoint. + + - Amazon Data Firehose + + - `FirehoseSuccessFeedbackRoleArn` -- Indicates successful message + delivery status for an Amazon SNS topic that is subscribed to an + Amazon Data Firehose endpoint. + + - `FirehoseSuccessFeedbackSampleRate` -- Indicates percentage of + successful messages to sample for an Amazon SNS topic that is + subscribed to an Amazon Data Firehose endpoint. + + - `FirehoseFailureFeedbackRoleArn` -- Indicates failed message + delivery status for an Amazon SNS topic that is subscribed to an + Amazon Data Firehose endpoint. + + - Lambda + + - `LambdaSuccessFeedbackRoleArn` -- Indicates successful message + delivery status for an Amazon SNS topic that is subscribed to an + Lambda endpoint. + + - `LambdaSuccessFeedbackSampleRate` -- Indicates percentage of + successful messages to sample for an Amazon SNS topic that is + subscribed to an Lambda endpoint. + + - `LambdaFailureFeedbackRoleArn` -- Indicates failed message delivery + status for an Amazon SNS topic that is subscribed to an Lambda + endpoint. + + - Platform application endpoint + + - `ApplicationSuccessFeedbackRoleArn` -- Indicates successful message + delivery status for an Amazon SNS topic that is subscribed to an + platform application endpoint. + + - `ApplicationSuccessFeedbackSampleRate` -- Indicates percentage of + successful messages to sample for an Amazon SNS topic that is + subscribed to an platform application endpoint. + + - `ApplicationFailureFeedbackRoleArn` -- Indicates failed message + delivery status for an Amazon SNS topic that is subscribed to an + platform application endpoint. + + Note: + In addition to being able to configure topic attributes for message + delivery status of notification messages sent to Amazon SNS + application endpoints, you can also configure application attributes + for the delivery status of push notification messages sent to push + notification services. + + For example, For more information, see [Using Amazon SNS Application + Attributes for Message Delivery + Status](https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html). + + - Amazon SQS + + - `SQSSuccessFeedbackRoleArn` -- Indicates successful message delivery + status for an Amazon SNS topic that is subscribed to an Amazon SQS + endpoint. + + - `SQSSuccessFeedbackSampleRate` -- Indicates percentage of successful + messages to sample for an Amazon SNS topic that is subscribed to an + Amazon SQS endpoint. + + - `SQSFailureFeedbackRoleArn` -- Indicates failed message delivery + status for an Amazon SNS topic that is subscribed to an Amazon SQS + endpoint. + + Note: + The ``{=html}SuccessFeedbackRoleArn and + ``{=html}FailureFeedbackRoleArn attributes are used to give + Amazon SNS write access to use CloudWatch Logs on your behalf. The + ``{=html}SuccessFeedbackSampleRate attribute is for specifying + the sample rate percentage (0-100) of successfully delivered messages. + After you configure the ``{=html}FailureFeedbackRoleArn + attribute, then all failed message deliveries generate CloudWatch Logs. + + The following attribute applies only to + [server-side-encryption](https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html): - - `FilterPolicyScope` -- This attribute lets you choose the filtering - scope by using one of the following string value types: + - `KmsMasterKeyId` -- The ID of an Amazon Web Services managed customer + master key (CMK) for Amazon SNS or a custom CMK. For more information, + see [Key + Terms](https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms). + For more examples, see + [KeyId](https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters) + in the *Key Management Service API Reference*. - - `MessageAttributes` (default) -- The filter is applied on the - message attributes. + - `SignatureVersion` -- The signature version corresponds to the hashing + algorithm used while creating the signature of the notifications, + subscription confirmations, or unsubscribe confirmation messages sent + by Amazon SNS. By default, `SignatureVersion` is set to `1`. - - `MessageBody` -- The filter is applied on the message body. + The following attribute applies only to [FIFO + topics](https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html): - - `RawMessageDelivery` -- When set to `true`, enables raw message - delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need - for the endpoints to process JSON formatting, which is otherwise - created for Amazon SNS metadata. + - `ArchivePolicy` -- The policy that sets the retention period for + messages stored in the message archive of an Amazon SNS FIFO topic. - - `RedrivePolicy` -- When specified, sends undeliverable messages to the - specified Amazon SQS dead-letter queue. Messages that can't be - delivered due to client errors (for example, when the subscribed - endpoint is unreachable) or server errors (for example, when the - service that powers the subscribed endpoint becomes unavailable) are - held in the dead-letter queue for further analysis or reprocessing. + - `ContentBasedDeduplication` -- Enables content-based deduplication for + FIFO topics. - The following attribute applies only to Amazon Data Firehose delivery - stream subscriptions: + - By default, `ContentBasedDeduplication` is set to `false`. If you + create a FIFO topic and this attribute is `false`, you must specify + a value for the `MessageDeduplicationId` parameter for the + [Publish](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) + action. - - `SubscriptionRoleArn` -- The ARN of the IAM role that has the - following: + - When you set `ContentBasedDeduplication` to `true`, Amazon SNS uses + a SHA-256 hash to generate the `MessageDeduplicationId` using the + body of the message (but not the attributes of the message). - - Permission to write to the Firehose delivery stream + (Optional) To override the generated value, you can specify a value + for the `MessageDeduplicationId` parameter for the `Publish` action. - - Amazon SNS listed as a trusted entity + - Specifying a valid ARN for this attribute is required for Firehose - delivery stream subscriptions. For more information, see [Fanout to - Firehose delivery - streams](https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html) - in the *Amazon SNS Developer Guide*. - """ - attribute_value: str | None = ... - """The new value for the attribute in JSON format.""" + - `FifoThroughputScope` -- Enables higher throughput for your FIFO topic + by adjusting the scope of deduplication. This attribute has two + possible values: -@dataclass(kw_only=True) -class SetSubscriptionAttributesOutput(_SerdeShape): - """Dataclass for SetSubscriptionAttributesOutput structure.""" + - `Topic` -- The scope of message deduplication is across the entire + topic. This is the default value and maintains existing behavior, + with a maximum throughput of 3000 messages per second or 20MB per + second, whichever comes first. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + - `MessageGroup` -- The scope of deduplication is within each + individual message group, which enables higher throughput per topic + subject to regional quotas. For more information on quotas or to + request an increase, see [Amazon SNS service + quotas](https://docs.aws.amazon.com/general/latest/gr/sns.html) in + the Amazon Web Services General Reference. """ + attribute_value: str | None = ... + """The new value for the attribute.""" -@dataclass(kw_only=True) -class SetTopicAttributesInput(_SerdeShape): - """Input for SetTopicAttributes action.""" +class SetTopicAttributesInputDict(TypedDict, total=False): + """Dictionary form of `SetTopicAttributesInput`.""" - topic_arn: str | None = ... + topic_arn: Required[str] """The ARN of the topic to modify.""" - attribute_name: str | None = ... + attribute_name: Required[str] """ A map of attributes with their corresponding values. @@ -2613,7 +3919,7 @@ class SetTopicAttributesInput(_SerdeShape): quotas](https://docs.aws.amazon.com/general/latest/gr/sns.html) in the Amazon Web Services General Reference. """ - attribute_value: str | None = ... + attribute_value: str | None """The new value for the attribute.""" @dataclass(kw_only=True) @@ -2823,6 +4129,152 @@ class SubscribeInput(_SerdeShape): The default value is `false`. """ +class SubscribeInputDict(TypedDict, total=False): + """Dictionary form of `SubscribeInput`.""" + + topic_arn: Required[str] + """The ARN of the topic you want to subscribe to.""" + protocol: Required[str] + """ + The protocol that you want to use. Supported protocols include: + + - `http` -- delivery of JSON-encoded message via HTTP POST + + - `https` -- delivery of JSON-encoded message via HTTPS POST + + - `email` -- delivery of message via SMTP + + - `email-json` -- delivery of JSON-encoded message via SMTP + + - `sms` -- delivery of message via SMS + + - `sqs` -- delivery of JSON-encoded message to an Amazon SQS queue + + - `application` -- delivery of JSON-encoded message to an EndpointArn + for a mobile app and device + + - `lambda` -- delivery of JSON-encoded message to an Lambda function + + - `firehose` -- delivery of JSON-encoded message to an Amazon Data + Firehose delivery stream. + """ + endpoint: str | None + """ + The endpoint that you want to receive notifications. Endpoints vary by + protocol: + + - For the `http` protocol, the (public) endpoint is a URL beginning with + `http://`. + + - For the `https` protocol, the (public) endpoint is a URL beginning + with `https://`. + + - For the `email` protocol, the endpoint is an email address. + + - For the `email-json` protocol, the endpoint is an email address. + + - For the `sms` protocol, the endpoint is a phone number of an + SMS-enabled device. + + - For the `sqs` protocol, the endpoint is the ARN of an Amazon SQS + queue. + + - For the `application` protocol, the endpoint is the EndpointArn of a + mobile app and device. + + - For the `lambda` protocol, the endpoint is the ARN of an Lambda + function. + + - For the `firehose` protocol, the endpoint is the ARN of an Amazon Data + Firehose delivery stream. + """ + attributes: Mapping[str, str] | None + """ + A map of attributes with their corresponding values. + + The following lists the names, descriptions, and values of the special + request parameters that the `Subscribe` action uses: + + - `DeliveryPolicy` -- The policy that defines how Amazon SNS retries + failed deliveries to HTTP/S endpoints. + + - `FilterPolicy` -- The simple JSON object that lets your subscriber + receive only a subset of messages, rather than receiving every message + published to the topic. + + - `FilterPolicyScope` -- This attribute lets you choose the filtering + scope by using one of the following string value types: + + - `MessageAttributes` (default) -- The filter is applied on the + message attributes. + + - `MessageBody` -- The filter is applied on the message body. + + - `RawMessageDelivery` -- When set to `true`, enables raw message + delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need + for the endpoints to process JSON formatting, which is otherwise + created for Amazon SNS metadata. + + - `RedrivePolicy` -- When specified, sends undeliverable messages to the + specified Amazon SQS dead-letter queue. Messages that can't be + delivered due to client errors (for example, when the subscribed + endpoint is unreachable) or server errors (for example, when the + service that powers the subscribed endpoint becomes unavailable) are + held in the dead-letter queue for further analysis or reprocessing. + + The following attribute applies only to Amazon Data Firehose delivery + stream subscriptions: + + - `SubscriptionRoleArn` -- The ARN of the IAM role that has the + following: + + - Permission to write to the Firehose delivery stream + + - Amazon SNS listed as a trusted entity + + Specifying a valid ARN for this attribute is required for Firehose + delivery stream subscriptions. For more information, see [Fanout to + Firehose delivery + streams](https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html) + in the *Amazon SNS Developer Guide*. + + The following attributes apply only to [FIFO + topics](https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html): + + - `ReplayPolicy` -- Adds or updates an inline policy document for a + subscription to replay messages stored in the specified Amazon SNS + topic. + + - `ReplayStatus` -- Retrieves the status of the subscription message + replay, which can be one of the following: + + - `Completed` -- The replay has successfully redelivered all messages, + and is now delivering newly published messages. If an ending point + was specified in the `ReplayPolicy` then the subscription will no + longer receive newly published messages. + + - `In progress` -- The replay is currently replaying the selected + messages. + + - `Failed` -- The replay was unable to complete. + + - `Pending` -- The default state while the replay initiates. + """ + return_subscription_arn: bool | None + """ + Sets whether the response from the `Subscribe` request includes the + subscription ARN, even if the subscription is not yet confirmed. + + If you set this parameter to `true`, the response includes the ARN in + all cases, even if the subscription is not yet confirmed. In addition to + the ARN for confirmed subscriptions, the response also includes the + `pending subscription` ARN value for subscriptions that aren't yet + confirmed. A subscription becomes confirmed when the subscriber calls + the `ConfirmSubscription` action with a confirmation token. + + The default value is `false`. + """ + @dataclass(kw_only=True) class SubscribeOutput(_SerdeShape): """Response for Subscribe action.""" @@ -2882,6 +4334,14 @@ class Tag(_SerdeShape): value: str """The optional value portion of the tag.""" +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """The required key portion of the tag.""" + value: Required[str] + """The optional value portion of the tag.""" + @dataclass(kw_only=True) class TagLimitExceededException(ServiceError, _SerdeShape): """Can't add more than 50 tags to a topic.""" @@ -2921,6 +4381,17 @@ class TagResourceInput(_SerdeShape): required key and an optional value. """ +class TagResourceInputDict(TypedDict, total=False): + """Dictionary form of `TagResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the topic to which to add tags.""" + tags: Required[Sequence[Tag | TagDict]] + """ + The tags to be added to the specified topic. A tag consists of a + required key and an optional value. + """ + @dataclass(kw_only=True) class TagResourceOutput(_SerdeShape): """Dataclass for TagResourceOutput structure.""" @@ -2992,6 +4463,12 @@ class UnsubscribeInput(_SerdeShape): subscription_arn: str | None = ... """The ARN of the subscription to be deleted.""" +class UnsubscribeInputDict(TypedDict, total=False): + """Dictionary form of `UnsubscribeInput`.""" + + subscription_arn: Required[str] + """The ARN of the subscription to be deleted.""" + @dataclass(kw_only=True) class UnsubscribeOutput(_SerdeShape): """Dataclass for UnsubscribeOutput structure.""" @@ -3013,6 +4490,14 @@ class UntagResourceInput(_SerdeShape): tag_keys: list[str] | None = ... """The list of tag keys to remove from the specified topic.""" +class UntagResourceInputDict(TypedDict, total=False): + """Dictionary form of `UntagResourceInput`.""" + + resource_arn: Required[str] + """The ARN of the topic from which to remove tags.""" + tag_keys: Required[Sequence[str]] + """The list of tag keys to remove from the specified topic.""" + @dataclass(kw_only=True) class UntagResourceOutput(_SerdeShape): """Dataclass for UntagResourceOutput structure.""" @@ -3081,6 +4566,17 @@ class VerifySMSSandboxPhoneNumberInput(_SerdeShape): `CreateSMSSandBoxPhoneNumber` call. """ +class VerifySMSSandboxPhoneNumberInputDict(TypedDict, total=False): + """Dictionary form of `VerifySMSSandboxPhoneNumberInput`.""" + + phone_number: Required[str] + """The destination phone number to verify.""" + one_time_password: Required[str] + """ + The OTP sent to the destination number from the + `CreateSMSSandBoxPhoneNumber` call. + """ + @dataclass(kw_only=True) class VerifySMSSandboxPhoneNumberOutput(_SerdeShape): """The destination phone number's verification status.""" diff --git a/clients/aws-sdk-sns/src/aws_sdk_sns/py.typed b/clients/aws-sdk-sns/src/aws_sdk_sns/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-sns/tests/_typecheck.py b/clients/aws-sdk-sns/tests/_typecheck.py index 20959d414..49f11d60c 100644 --- a/clients/aws-sdk-sns/tests/_typecheck.py +++ b/clients/aws-sdk-sns/tests/_typecheck.py @@ -2,107 +2,155 @@ from typing import Any +from aws_sdk_sns.aio.client import AsyncSNSClient +from aws_sdk_sns.client import SNSClient from aws_sdk_sns.models import ( AddPermissionInput, + AddPermissionInputDict, AddPermissionOutput, BatchResultErrorEntry, CheckIfPhoneNumberIsOptedOutInput, + CheckIfPhoneNumberIsOptedOutInputDict, CheckIfPhoneNumberIsOptedOutOutput, ConfirmSubscriptionInput, + ConfirmSubscriptionInputDict, ConfirmSubscriptionOutput, CreatePlatformApplicationInput, + CreatePlatformApplicationInputDict, CreatePlatformApplicationOutput, CreatePlatformEndpointInput, + CreatePlatformEndpointInputDict, CreatePlatformEndpointOutput, CreateSMSSandboxPhoneNumberInput, + CreateSMSSandboxPhoneNumberInputDict, CreateSMSSandboxPhoneNumberOutput, CreateTopicInput, + CreateTopicInputDict, CreateTopicOutput, DeleteEndpointInput, + DeleteEndpointInputDict, DeleteEndpointOutput, DeletePlatformApplicationInput, + DeletePlatformApplicationInputDict, DeletePlatformApplicationOutput, DeleteSMSSandboxPhoneNumberInput, + DeleteSMSSandboxPhoneNumberInputDict, DeleteSMSSandboxPhoneNumberOutput, DeleteTopicInput, + DeleteTopicInputDict, DeleteTopicOutput, Endpoint, GetDataProtectionPolicyInput, + GetDataProtectionPolicyInputDict, GetDataProtectionPolicyOutput, GetEndpointAttributesInput, + GetEndpointAttributesInputDict, GetEndpointAttributesOutput, GetPlatformApplicationAttributesInput, + GetPlatformApplicationAttributesInputDict, GetPlatformApplicationAttributesOutput, GetSMSAttributesInput, + GetSMSAttributesInputDict, GetSMSAttributesOutput, GetSMSSandboxAccountStatusInput, + GetSMSSandboxAccountStatusInputDict, GetSMSSandboxAccountStatusOutput, GetSubscriptionAttributesInput, + GetSubscriptionAttributesInputDict, GetSubscriptionAttributesOutput, GetTopicAttributesInput, + GetTopicAttributesInputDict, GetTopicAttributesOutput, ListEndpointsByPlatformApplicationInput, + ListEndpointsByPlatformApplicationInputDict, ListEndpointsByPlatformApplicationOutput, ListOriginationNumbersInput, + ListOriginationNumbersInputDict, ListOriginationNumbersOutput, ListPhoneNumbersOptedOutInput, + ListPhoneNumbersOptedOutInputDict, ListPhoneNumbersOptedOutOutput, ListPlatformApplicationsInput, + ListPlatformApplicationsInputDict, ListPlatformApplicationsOutput, ListSMSSandboxPhoneNumbersInput, + ListSMSSandboxPhoneNumbersInputDict, ListSMSSandboxPhoneNumbersOutput, ListSubscriptionsByTopicInput, + ListSubscriptionsByTopicInputDict, ListSubscriptionsByTopicOutput, ListSubscriptionsInput, + ListSubscriptionsInputDict, ListSubscriptionsOutput, ListTagsForResourceInput, + ListTagsForResourceInputDict, ListTagsForResourceOutput, ListTopicsInput, + ListTopicsInputDict, ListTopicsOutput, MessageAttributeValue, + MessageAttributeValueDict, OptInPhoneNumberInput, + OptInPhoneNumberInputDict, OptInPhoneNumberOutput, PhoneNumberInformation, PlatformApplication, PublishBatchInput, + PublishBatchInputDict, PublishBatchOutput, PublishBatchRequestEntry, + PublishBatchRequestEntryDict, PublishBatchResultEntry, PublishInput, + PublishInputDict, PublishOutput, PutDataProtectionPolicyInput, + PutDataProtectionPolicyInputDict, PutDataProtectionPolicyOutput, RemovePermissionInput, + RemovePermissionInputDict, RemovePermissionOutput, SMSSandboxPhoneNumber, SetEndpointAttributesInput, + SetEndpointAttributesInputDict, SetEndpointAttributesOutput, SetPlatformApplicationAttributesInput, + SetPlatformApplicationAttributesInputDict, SetPlatformApplicationAttributesOutput, SetSMSAttributesInput, + SetSMSAttributesInputDict, SetSMSAttributesOutput, SetSubscriptionAttributesInput, + SetSubscriptionAttributesInputDict, SetSubscriptionAttributesOutput, SetTopicAttributesInput, + SetTopicAttributesInputDict, SetTopicAttributesOutput, SubscribeInput, + SubscribeInputDict, SubscribeOutput, Subscription, Tag, + TagDict, TagResourceInput, + TagResourceInputDict, TagResourceOutput, Topic, UnsubscribeInput, + UnsubscribeInputDict, UnsubscribeOutput, UntagResourceInput, + UntagResourceInputDict, UntagResourceOutput, VerifySMSSandboxPhoneNumberInput, + VerifySMSSandboxPhoneNumberInputDict, VerifySMSSandboxPhoneNumberOutput, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -201,3 +249,545 @@ UntagResourceOutput() VerifySMSSandboxPhoneNumberInput() VerifySMSSandboxPhoneNumberOutput() +_params_0: AddPermissionInputDict = { + "topic_arn": _, + "label": _, + "aws_account_id": _, + "action_name": _, +} +_params_1: CheckIfPhoneNumberIsOptedOutInputDict = {"phone_number": _} +_params_2: ConfirmSubscriptionInputDict = {"topic_arn": _, "token": _} +_params_3: CreatePlatformApplicationInputDict = { + "name": _, + "platform": _, + "attributes": _, +} +_params_4: CreatePlatformEndpointInputDict = {"platform_application_arn": _, "token": _} +_params_5: CreateSMSSandboxPhoneNumberInputDict = {"phone_number": _} +_params_6: CreateTopicInputDict = {"name": _} +_params_7: DeleteEndpointInputDict = {"endpoint_arn": _} +_params_8: DeletePlatformApplicationInputDict = {"platform_application_arn": _} +_params_9: DeleteSMSSandboxPhoneNumberInputDict = {"phone_number": _} +_params_10: DeleteTopicInputDict = {"topic_arn": _} +_params_11: GetDataProtectionPolicyInputDict = {"resource_arn": _} +_params_12: GetEndpointAttributesInputDict = {"endpoint_arn": _} +_params_13: GetPlatformApplicationAttributesInputDict = {"platform_application_arn": _} +_params_14: GetSMSAttributesInputDict = {} +_params_15: GetSMSSandboxAccountStatusInputDict = {} +_params_16: GetSubscriptionAttributesInputDict = {"subscription_arn": _} +_params_17: GetTopicAttributesInputDict = {"topic_arn": _} +_params_18: ListEndpointsByPlatformApplicationInputDict = { + "platform_application_arn": _ +} +_params_19: ListOriginationNumbersInputDict = {} +_params_20: ListPhoneNumbersOptedOutInputDict = {} +_params_21: ListPlatformApplicationsInputDict = {} +_params_22: ListSMSSandboxPhoneNumbersInputDict = {} +_params_23: ListSubscriptionsByTopicInputDict = {"topic_arn": _} +_params_24: ListSubscriptionsInputDict = {} +_params_25: ListTagsForResourceInputDict = {"resource_arn": _} +_params_26: ListTopicsInputDict = {} +_params_27: MessageAttributeValueDict = {"data_type": _} +_params_28: OptInPhoneNumberInputDict = {"phone_number": _} +_params_29: PublishBatchInputDict = {"topic_arn": _, "publish_batch_request_entries": _} +_params_30: PublishBatchRequestEntryDict = {"id": _, "message": _} +_params_31: PublishInputDict = {"message": _} +_params_32: PutDataProtectionPolicyInputDict = { + "resource_arn": _, + "data_protection_policy": _, +} +_params_33: RemovePermissionInputDict = {"topic_arn": _, "label": _} +_params_34: SetEndpointAttributesInputDict = {"endpoint_arn": _, "attributes": _} +_params_35: SetPlatformApplicationAttributesInputDict = { + "platform_application_arn": _, + "attributes": _, +} +_params_36: SetSMSAttributesInputDict = {"attributes": _} +_params_37: SetSubscriptionAttributesInputDict = { + "subscription_arn": _, + "attribute_name": _, +} +_params_38: SetTopicAttributesInputDict = {"topic_arn": _, "attribute_name": _} +_params_39: SubscribeInputDict = {"topic_arn": _, "protocol": _} +_params_40: TagDict = {"key": _, "value": _} +_params_41: TagResourceInputDict = {"resource_arn": _, "tags": _} +_params_42: UnsubscribeInputDict = {"subscription_arn": _} +_params_43: UntagResourceInputDict = {"resource_arn": _, "tag_keys": _} +_params_44: VerifySMSSandboxPhoneNumberInputDict = { + "phone_number": _, + "one_time_password": _, +} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncSNSClient) -> None: + pass + await client.add_permission(topic_arn=_, label=_, aws_account_id=_, action_name=_) + await client.add_permission(**_request(AddPermissionInputDict)) + await client.add_permission(_request(AddPermissionInput)) + await client.add_permission(_request(AddPermissionInputDict)) + await client.check_if_phone_number_is_opted_out(phone_number=_) + await client.check_if_phone_number_is_opted_out( + **_request(CheckIfPhoneNumberIsOptedOutInputDict) + ) + await client.check_if_phone_number_is_opted_out( + _request(CheckIfPhoneNumberIsOptedOutInput) + ) + await client.check_if_phone_number_is_opted_out( + _request(CheckIfPhoneNumberIsOptedOutInputDict) + ) + await client.confirm_subscription(topic_arn=_, token=_) + await client.confirm_subscription(**_request(ConfirmSubscriptionInputDict)) + await client.confirm_subscription(_request(ConfirmSubscriptionInput)) + await client.confirm_subscription(_request(ConfirmSubscriptionInputDict)) + await client.create_platform_application(name=_, platform=_, attributes=_) + await client.create_platform_application( + **_request(CreatePlatformApplicationInputDict) + ) + await client.create_platform_application(_request(CreatePlatformApplicationInput)) + await client.create_platform_application( + _request(CreatePlatformApplicationInputDict) + ) + await client.create_platform_endpoint(platform_application_arn=_, token=_) + await client.create_platform_endpoint(**_request(CreatePlatformEndpointInputDict)) + await client.create_platform_endpoint(_request(CreatePlatformEndpointInput)) + await client.create_platform_endpoint(_request(CreatePlatformEndpointInputDict)) + await client.create_sms_sandbox_phone_number(phone_number=_) + await client.create_sms_sandbox_phone_number( + **_request(CreateSMSSandboxPhoneNumberInputDict) + ) + await client.create_sms_sandbox_phone_number( + _request(CreateSMSSandboxPhoneNumberInput) + ) + await client.create_sms_sandbox_phone_number( + _request(CreateSMSSandboxPhoneNumberInputDict) + ) + await client.create_topic(name=_) + await client.create_topic(**_request(CreateTopicInputDict)) + await client.create_topic(_request(CreateTopicInput)) + await client.create_topic(_request(CreateTopicInputDict)) + await client.delete_endpoint(endpoint_arn=_) + await client.delete_endpoint(**_request(DeleteEndpointInputDict)) + await client.delete_endpoint(_request(DeleteEndpointInput)) + await client.delete_endpoint(_request(DeleteEndpointInputDict)) + await client.delete_platform_application(platform_application_arn=_) + await client.delete_platform_application( + **_request(DeletePlatformApplicationInputDict) + ) + await client.delete_platform_application(_request(DeletePlatformApplicationInput)) + await client.delete_platform_application( + _request(DeletePlatformApplicationInputDict) + ) + await client.delete_sms_sandbox_phone_number(phone_number=_) + await client.delete_sms_sandbox_phone_number( + **_request(DeleteSMSSandboxPhoneNumberInputDict) + ) + await client.delete_sms_sandbox_phone_number( + _request(DeleteSMSSandboxPhoneNumberInput) + ) + await client.delete_sms_sandbox_phone_number( + _request(DeleteSMSSandboxPhoneNumberInputDict) + ) + await client.delete_topic(topic_arn=_) + await client.delete_topic(**_request(DeleteTopicInputDict)) + await client.delete_topic(_request(DeleteTopicInput)) + await client.delete_topic(_request(DeleteTopicInputDict)) + await client.get_data_protection_policy(resource_arn=_) + await client.get_data_protection_policy( + **_request(GetDataProtectionPolicyInputDict) + ) + await client.get_data_protection_policy(_request(GetDataProtectionPolicyInput)) + await client.get_data_protection_policy(_request(GetDataProtectionPolicyInputDict)) + await client.get_endpoint_attributes(endpoint_arn=_) + await client.get_endpoint_attributes(**_request(GetEndpointAttributesInputDict)) + await client.get_endpoint_attributes(_request(GetEndpointAttributesInput)) + await client.get_endpoint_attributes(_request(GetEndpointAttributesInputDict)) + await client.get_platform_application_attributes(platform_application_arn=_) + await client.get_platform_application_attributes( + **_request(GetPlatformApplicationAttributesInputDict) + ) + await client.get_platform_application_attributes( + _request(GetPlatformApplicationAttributesInput) + ) + await client.get_platform_application_attributes( + _request(GetPlatformApplicationAttributesInputDict) + ) + await client.get_sms_attributes() + await client.get_sms_attributes(**_request(GetSMSAttributesInputDict)) + await client.get_sms_attributes(_request(GetSMSAttributesInput)) + await client.get_sms_attributes(_request(GetSMSAttributesInputDict)) + await client.get_sms_sandbox_account_status() + await client.get_sms_sandbox_account_status( + **_request(GetSMSSandboxAccountStatusInputDict) + ) + await client.get_sms_sandbox_account_status( + _request(GetSMSSandboxAccountStatusInput) + ) + await client.get_sms_sandbox_account_status( + _request(GetSMSSandboxAccountStatusInputDict) + ) + await client.get_subscription_attributes(subscription_arn=_) + await client.get_subscription_attributes( + **_request(GetSubscriptionAttributesInputDict) + ) + await client.get_subscription_attributes(_request(GetSubscriptionAttributesInput)) + await client.get_subscription_attributes( + _request(GetSubscriptionAttributesInputDict) + ) + await client.get_topic_attributes(topic_arn=_) + await client.get_topic_attributes(**_request(GetTopicAttributesInputDict)) + await client.get_topic_attributes(_request(GetTopicAttributesInput)) + await client.get_topic_attributes(_request(GetTopicAttributesInputDict)) + await client.list_endpoints_by_platform_application(platform_application_arn=_) + await client.list_endpoints_by_platform_application( + **_request(ListEndpointsByPlatformApplicationInputDict) + ) + await client.list_endpoints_by_platform_application( + _request(ListEndpointsByPlatformApplicationInput) + ) + await client.list_endpoints_by_platform_application( + _request(ListEndpointsByPlatformApplicationInputDict) + ) + await client.list_origination_numbers() + await client.list_origination_numbers(**_request(ListOriginationNumbersInputDict)) + await client.list_origination_numbers(_request(ListOriginationNumbersInput)) + await client.list_origination_numbers(_request(ListOriginationNumbersInputDict)) + await client.list_phone_numbers_opted_out() + await client.list_phone_numbers_opted_out( + **_request(ListPhoneNumbersOptedOutInputDict) + ) + await client.list_phone_numbers_opted_out(_request(ListPhoneNumbersOptedOutInput)) + await client.list_phone_numbers_opted_out( + _request(ListPhoneNumbersOptedOutInputDict) + ) + await client.list_platform_applications() + await client.list_platform_applications( + **_request(ListPlatformApplicationsInputDict) + ) + await client.list_platform_applications(_request(ListPlatformApplicationsInput)) + await client.list_platform_applications(_request(ListPlatformApplicationsInputDict)) + await client.list_sms_sandbox_phone_numbers() + await client.list_sms_sandbox_phone_numbers( + **_request(ListSMSSandboxPhoneNumbersInputDict) + ) + await client.list_sms_sandbox_phone_numbers( + _request(ListSMSSandboxPhoneNumbersInput) + ) + await client.list_sms_sandbox_phone_numbers( + _request(ListSMSSandboxPhoneNumbersInputDict) + ) + await client.list_subscriptions() + await client.list_subscriptions(**_request(ListSubscriptionsInputDict)) + await client.list_subscriptions(_request(ListSubscriptionsInput)) + await client.list_subscriptions(_request(ListSubscriptionsInputDict)) + await client.list_subscriptions_by_topic(topic_arn=_) + await client.list_subscriptions_by_topic( + **_request(ListSubscriptionsByTopicInputDict) + ) + await client.list_subscriptions_by_topic(_request(ListSubscriptionsByTopicInput)) + await client.list_subscriptions_by_topic( + _request(ListSubscriptionsByTopicInputDict) + ) + await client.list_tags_for_resource(resource_arn=_) + await client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + await client.list_tags_for_resource(_request(ListTagsForResourceInput)) + await client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + await client.list_topics() + await client.list_topics(**_request(ListTopicsInputDict)) + await client.list_topics(_request(ListTopicsInput)) + await client.list_topics(_request(ListTopicsInputDict)) + await client.opt_in_phone_number(phone_number=_) + await client.opt_in_phone_number(**_request(OptInPhoneNumberInputDict)) + await client.opt_in_phone_number(_request(OptInPhoneNumberInput)) + await client.opt_in_phone_number(_request(OptInPhoneNumberInputDict)) + await client.publish(message=_) + await client.publish(**_request(PublishInputDict)) + await client.publish(_request(PublishInput)) + await client.publish(_request(PublishInputDict)) + await client.publish_batch(topic_arn=_, publish_batch_request_entries=_) + await client.publish_batch(**_request(PublishBatchInputDict)) + await client.publish_batch(_request(PublishBatchInput)) + await client.publish_batch(_request(PublishBatchInputDict)) + await client.put_data_protection_policy(resource_arn=_, data_protection_policy=_) + await client.put_data_protection_policy( + **_request(PutDataProtectionPolicyInputDict) + ) + await client.put_data_protection_policy(_request(PutDataProtectionPolicyInput)) + await client.put_data_protection_policy(_request(PutDataProtectionPolicyInputDict)) + await client.remove_permission(topic_arn=_, label=_) + await client.remove_permission(**_request(RemovePermissionInputDict)) + await client.remove_permission(_request(RemovePermissionInput)) + await client.remove_permission(_request(RemovePermissionInputDict)) + await client.set_endpoint_attributes(endpoint_arn=_, attributes=_) + await client.set_endpoint_attributes(**_request(SetEndpointAttributesInputDict)) + await client.set_endpoint_attributes(_request(SetEndpointAttributesInput)) + await client.set_endpoint_attributes(_request(SetEndpointAttributesInputDict)) + await client.set_platform_application_attributes( + platform_application_arn=_, attributes=_ + ) + await client.set_platform_application_attributes( + **_request(SetPlatformApplicationAttributesInputDict) + ) + await client.set_platform_application_attributes( + _request(SetPlatformApplicationAttributesInput) + ) + await client.set_platform_application_attributes( + _request(SetPlatformApplicationAttributesInputDict) + ) + await client.set_sms_attributes(attributes=_) + await client.set_sms_attributes(**_request(SetSMSAttributesInputDict)) + await client.set_sms_attributes(_request(SetSMSAttributesInput)) + await client.set_sms_attributes(_request(SetSMSAttributesInputDict)) + await client.set_subscription_attributes(subscription_arn=_, attribute_name=_) + await client.set_subscription_attributes( + **_request(SetSubscriptionAttributesInputDict) + ) + await client.set_subscription_attributes(_request(SetSubscriptionAttributesInput)) + await client.set_subscription_attributes( + _request(SetSubscriptionAttributesInputDict) + ) + await client.set_topic_attributes(topic_arn=_, attribute_name=_) + await client.set_topic_attributes(**_request(SetTopicAttributesInputDict)) + await client.set_topic_attributes(_request(SetTopicAttributesInput)) + await client.set_topic_attributes(_request(SetTopicAttributesInputDict)) + await client.subscribe(topic_arn=_, protocol=_) + await client.subscribe(**_request(SubscribeInputDict)) + await client.subscribe(_request(SubscribeInput)) + await client.subscribe(_request(SubscribeInputDict)) + await client.tag_resource(resource_arn=_, tags=_) + await client.tag_resource(**_request(TagResourceInputDict)) + await client.tag_resource(_request(TagResourceInput)) + await client.tag_resource(_request(TagResourceInputDict)) + await client.unsubscribe(subscription_arn=_) + await client.unsubscribe(**_request(UnsubscribeInputDict)) + await client.unsubscribe(_request(UnsubscribeInput)) + await client.unsubscribe(_request(UnsubscribeInputDict)) + await client.untag_resource(resource_arn=_, tag_keys=_) + await client.untag_resource(**_request(UntagResourceInputDict)) + await client.untag_resource(_request(UntagResourceInput)) + await client.untag_resource(_request(UntagResourceInputDict)) + await client.verify_sms_sandbox_phone_number(phone_number=_, one_time_password=_) + await client.verify_sms_sandbox_phone_number( + **_request(VerifySMSSandboxPhoneNumberInputDict) + ) + await client.verify_sms_sandbox_phone_number( + _request(VerifySMSSandboxPhoneNumberInput) + ) + await client.verify_sms_sandbox_phone_number( + _request(VerifySMSSandboxPhoneNumberInputDict) + ) + + +def check_sync_calls(client: SNSClient) -> None: + pass + client.add_permission(topic_arn=_, label=_, aws_account_id=_, action_name=_) + client.add_permission(**_request(AddPermissionInputDict)) + client.add_permission(_request(AddPermissionInput)) + client.add_permission(_request(AddPermissionInputDict)) + client.check_if_phone_number_is_opted_out(phone_number=_) + client.check_if_phone_number_is_opted_out( + **_request(CheckIfPhoneNumberIsOptedOutInputDict) + ) + client.check_if_phone_number_is_opted_out( + _request(CheckIfPhoneNumberIsOptedOutInput) + ) + client.check_if_phone_number_is_opted_out( + _request(CheckIfPhoneNumberIsOptedOutInputDict) + ) + client.confirm_subscription(topic_arn=_, token=_) + client.confirm_subscription(**_request(ConfirmSubscriptionInputDict)) + client.confirm_subscription(_request(ConfirmSubscriptionInput)) + client.confirm_subscription(_request(ConfirmSubscriptionInputDict)) + client.create_platform_application(name=_, platform=_, attributes=_) + client.create_platform_application(**_request(CreatePlatformApplicationInputDict)) + client.create_platform_application(_request(CreatePlatformApplicationInput)) + client.create_platform_application(_request(CreatePlatformApplicationInputDict)) + client.create_platform_endpoint(platform_application_arn=_, token=_) + client.create_platform_endpoint(**_request(CreatePlatformEndpointInputDict)) + client.create_platform_endpoint(_request(CreatePlatformEndpointInput)) + client.create_platform_endpoint(_request(CreatePlatformEndpointInputDict)) + client.create_sms_sandbox_phone_number(phone_number=_) + client.create_sms_sandbox_phone_number( + **_request(CreateSMSSandboxPhoneNumberInputDict) + ) + client.create_sms_sandbox_phone_number(_request(CreateSMSSandboxPhoneNumberInput)) + client.create_sms_sandbox_phone_number( + _request(CreateSMSSandboxPhoneNumberInputDict) + ) + client.create_topic(name=_) + client.create_topic(**_request(CreateTopicInputDict)) + client.create_topic(_request(CreateTopicInput)) + client.create_topic(_request(CreateTopicInputDict)) + client.delete_endpoint(endpoint_arn=_) + client.delete_endpoint(**_request(DeleteEndpointInputDict)) + client.delete_endpoint(_request(DeleteEndpointInput)) + client.delete_endpoint(_request(DeleteEndpointInputDict)) + client.delete_platform_application(platform_application_arn=_) + client.delete_platform_application(**_request(DeletePlatformApplicationInputDict)) + client.delete_platform_application(_request(DeletePlatformApplicationInput)) + client.delete_platform_application(_request(DeletePlatformApplicationInputDict)) + client.delete_sms_sandbox_phone_number(phone_number=_) + client.delete_sms_sandbox_phone_number( + **_request(DeleteSMSSandboxPhoneNumberInputDict) + ) + client.delete_sms_sandbox_phone_number(_request(DeleteSMSSandboxPhoneNumberInput)) + client.delete_sms_sandbox_phone_number( + _request(DeleteSMSSandboxPhoneNumberInputDict) + ) + client.delete_topic(topic_arn=_) + client.delete_topic(**_request(DeleteTopicInputDict)) + client.delete_topic(_request(DeleteTopicInput)) + client.delete_topic(_request(DeleteTopicInputDict)) + client.get_data_protection_policy(resource_arn=_) + client.get_data_protection_policy(**_request(GetDataProtectionPolicyInputDict)) + client.get_data_protection_policy(_request(GetDataProtectionPolicyInput)) + client.get_data_protection_policy(_request(GetDataProtectionPolicyInputDict)) + client.get_endpoint_attributes(endpoint_arn=_) + client.get_endpoint_attributes(**_request(GetEndpointAttributesInputDict)) + client.get_endpoint_attributes(_request(GetEndpointAttributesInput)) + client.get_endpoint_attributes(_request(GetEndpointAttributesInputDict)) + client.get_platform_application_attributes(platform_application_arn=_) + client.get_platform_application_attributes( + **_request(GetPlatformApplicationAttributesInputDict) + ) + client.get_platform_application_attributes( + _request(GetPlatformApplicationAttributesInput) + ) + client.get_platform_application_attributes( + _request(GetPlatformApplicationAttributesInputDict) + ) + client.get_sms_attributes() + client.get_sms_attributes(**_request(GetSMSAttributesInputDict)) + client.get_sms_attributes(_request(GetSMSAttributesInput)) + client.get_sms_attributes(_request(GetSMSAttributesInputDict)) + client.get_sms_sandbox_account_status() + client.get_sms_sandbox_account_status( + **_request(GetSMSSandboxAccountStatusInputDict) + ) + client.get_sms_sandbox_account_status(_request(GetSMSSandboxAccountStatusInput)) + client.get_sms_sandbox_account_status(_request(GetSMSSandboxAccountStatusInputDict)) + client.get_subscription_attributes(subscription_arn=_) + client.get_subscription_attributes(**_request(GetSubscriptionAttributesInputDict)) + client.get_subscription_attributes(_request(GetSubscriptionAttributesInput)) + client.get_subscription_attributes(_request(GetSubscriptionAttributesInputDict)) + client.get_topic_attributes(topic_arn=_) + client.get_topic_attributes(**_request(GetTopicAttributesInputDict)) + client.get_topic_attributes(_request(GetTopicAttributesInput)) + client.get_topic_attributes(_request(GetTopicAttributesInputDict)) + client.list_endpoints_by_platform_application(platform_application_arn=_) + client.list_endpoints_by_platform_application( + **_request(ListEndpointsByPlatformApplicationInputDict) + ) + client.list_endpoints_by_platform_application( + _request(ListEndpointsByPlatformApplicationInput) + ) + client.list_endpoints_by_platform_application( + _request(ListEndpointsByPlatformApplicationInputDict) + ) + client.list_origination_numbers() + client.list_origination_numbers(**_request(ListOriginationNumbersInputDict)) + client.list_origination_numbers(_request(ListOriginationNumbersInput)) + client.list_origination_numbers(_request(ListOriginationNumbersInputDict)) + client.list_phone_numbers_opted_out() + client.list_phone_numbers_opted_out(**_request(ListPhoneNumbersOptedOutInputDict)) + client.list_phone_numbers_opted_out(_request(ListPhoneNumbersOptedOutInput)) + client.list_phone_numbers_opted_out(_request(ListPhoneNumbersOptedOutInputDict)) + client.list_platform_applications() + client.list_platform_applications(**_request(ListPlatformApplicationsInputDict)) + client.list_platform_applications(_request(ListPlatformApplicationsInput)) + client.list_platform_applications(_request(ListPlatformApplicationsInputDict)) + client.list_sms_sandbox_phone_numbers() + client.list_sms_sandbox_phone_numbers( + **_request(ListSMSSandboxPhoneNumbersInputDict) + ) + client.list_sms_sandbox_phone_numbers(_request(ListSMSSandboxPhoneNumbersInput)) + client.list_sms_sandbox_phone_numbers(_request(ListSMSSandboxPhoneNumbersInputDict)) + client.list_subscriptions() + client.list_subscriptions(**_request(ListSubscriptionsInputDict)) + client.list_subscriptions(_request(ListSubscriptionsInput)) + client.list_subscriptions(_request(ListSubscriptionsInputDict)) + client.list_subscriptions_by_topic(topic_arn=_) + client.list_subscriptions_by_topic(**_request(ListSubscriptionsByTopicInputDict)) + client.list_subscriptions_by_topic(_request(ListSubscriptionsByTopicInput)) + client.list_subscriptions_by_topic(_request(ListSubscriptionsByTopicInputDict)) + client.list_tags_for_resource(resource_arn=_) + client.list_tags_for_resource(**_request(ListTagsForResourceInputDict)) + client.list_tags_for_resource(_request(ListTagsForResourceInput)) + client.list_tags_for_resource(_request(ListTagsForResourceInputDict)) + client.list_topics() + client.list_topics(**_request(ListTopicsInputDict)) + client.list_topics(_request(ListTopicsInput)) + client.list_topics(_request(ListTopicsInputDict)) + client.opt_in_phone_number(phone_number=_) + client.opt_in_phone_number(**_request(OptInPhoneNumberInputDict)) + client.opt_in_phone_number(_request(OptInPhoneNumberInput)) + client.opt_in_phone_number(_request(OptInPhoneNumberInputDict)) + client.publish(message=_) + client.publish(**_request(PublishInputDict)) + client.publish(_request(PublishInput)) + client.publish(_request(PublishInputDict)) + client.publish_batch(topic_arn=_, publish_batch_request_entries=_) + client.publish_batch(**_request(PublishBatchInputDict)) + client.publish_batch(_request(PublishBatchInput)) + client.publish_batch(_request(PublishBatchInputDict)) + client.put_data_protection_policy(resource_arn=_, data_protection_policy=_) + client.put_data_protection_policy(**_request(PutDataProtectionPolicyInputDict)) + client.put_data_protection_policy(_request(PutDataProtectionPolicyInput)) + client.put_data_protection_policy(_request(PutDataProtectionPolicyInputDict)) + client.remove_permission(topic_arn=_, label=_) + client.remove_permission(**_request(RemovePermissionInputDict)) + client.remove_permission(_request(RemovePermissionInput)) + client.remove_permission(_request(RemovePermissionInputDict)) + client.set_endpoint_attributes(endpoint_arn=_, attributes=_) + client.set_endpoint_attributes(**_request(SetEndpointAttributesInputDict)) + client.set_endpoint_attributes(_request(SetEndpointAttributesInput)) + client.set_endpoint_attributes(_request(SetEndpointAttributesInputDict)) + client.set_platform_application_attributes(platform_application_arn=_, attributes=_) + client.set_platform_application_attributes( + **_request(SetPlatformApplicationAttributesInputDict) + ) + client.set_platform_application_attributes( + _request(SetPlatformApplicationAttributesInput) + ) + client.set_platform_application_attributes( + _request(SetPlatformApplicationAttributesInputDict) + ) + client.set_sms_attributes(attributes=_) + client.set_sms_attributes(**_request(SetSMSAttributesInputDict)) + client.set_sms_attributes(_request(SetSMSAttributesInput)) + client.set_sms_attributes(_request(SetSMSAttributesInputDict)) + client.set_subscription_attributes(subscription_arn=_, attribute_name=_) + client.set_subscription_attributes(**_request(SetSubscriptionAttributesInputDict)) + client.set_subscription_attributes(_request(SetSubscriptionAttributesInput)) + client.set_subscription_attributes(_request(SetSubscriptionAttributesInputDict)) + client.set_topic_attributes(topic_arn=_, attribute_name=_) + client.set_topic_attributes(**_request(SetTopicAttributesInputDict)) + client.set_topic_attributes(_request(SetTopicAttributesInput)) + client.set_topic_attributes(_request(SetTopicAttributesInputDict)) + client.subscribe(topic_arn=_, protocol=_) + client.subscribe(**_request(SubscribeInputDict)) + client.subscribe(_request(SubscribeInput)) + client.subscribe(_request(SubscribeInputDict)) + client.tag_resource(resource_arn=_, tags=_) + client.tag_resource(**_request(TagResourceInputDict)) + client.tag_resource(_request(TagResourceInput)) + client.tag_resource(_request(TagResourceInputDict)) + client.unsubscribe(subscription_arn=_) + client.unsubscribe(**_request(UnsubscribeInputDict)) + client.unsubscribe(_request(UnsubscribeInput)) + client.unsubscribe(_request(UnsubscribeInputDict)) + client.untag_resource(resource_arn=_, tag_keys=_) + client.untag_resource(**_request(UntagResourceInputDict)) + client.untag_resource(_request(UntagResourceInput)) + client.untag_resource(_request(UntagResourceInputDict)) + client.verify_sms_sandbox_phone_number(phone_number=_, one_time_password=_) + client.verify_sms_sandbox_phone_number( + **_request(VerifySMSSandboxPhoneNumberInputDict) + ) + client.verify_sms_sandbox_phone_number(_request(VerifySMSSandboxPhoneNumberInput)) + client.verify_sms_sandbox_phone_number( + _request(VerifySMSSandboxPhoneNumberInputDict) + ) diff --git a/clients/aws-sdk-sqs/pyproject.toml b/clients/aws-sdk-sqs/pyproject.toml index 209b5a993..93d0ac0b9 100644 --- a/clients/aws-sdk-sqs/pyproject.toml +++ b/clients/aws-sdk-sqs/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-sqs/src/aws_sdk_sqs/_private/schemas.py b/clients/aws-sdk-sqs/src/aws_sdk_sqs/_private/schemas.py index 63df5b808..7d65d4b09 100644 --- a/clients/aws-sdk-sqs/src/aws_sdk_sqs/_private/schemas.py +++ b/clients/aws-sdk-sqs/src/aws_sdk_sqs/_private/schemas.py @@ -168,7 +168,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-sqs/src/aws_sdk_sqs/aio/client.py b/clients/aws-sdk-sqs/src/aws_sdk_sqs/aio/client.py index ec689e735..8eb5f54ec 100644 --- a/clients/aws-sdk-sqs/src/aws_sdk_sqs/aio/client.py +++ b/clients/aws-sdk-sqs/src/aws_sdk_sqs/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,51 +20,28 @@ if TYPE_CHECKING: from ..models import ( - AddPermissionInput, AddPermissionOutput, - CancelMessageMoveTaskInput, CancelMessageMoveTaskOutput, - ChangeMessageVisibilityBatchInput, ChangeMessageVisibilityBatchOutput, - ChangeMessageVisibilityInput, ChangeMessageVisibilityOutput, - CreateQueueInput, CreateQueueOutput, - DeleteMessageBatchInput, DeleteMessageBatchOutput, - DeleteMessageInput, DeleteMessageOutput, - DeleteQueueInput, DeleteQueueOutput, - GetQueueAttributesInput, GetQueueAttributesOutput, - GetQueueUrlInput, GetQueueUrlOutput, - ListDeadLetterSourceQueuesInput, ListDeadLetterSourceQueuesOutput, - ListMessageMoveTasksInput, ListMessageMoveTasksOutput, - ListQueueTagsInput, ListQueueTagsOutput, - ListQueuesInput, ListQueuesOutput, - PurgeQueueInput, PurgeQueueOutput, - ReceiveMessageInput, ReceiveMessageOutput, - RemovePermissionInput, RemovePermissionOutput, - SendMessageBatchInput, SendMessageBatchOutput, - SendMessageInput, SendMessageOutput, - SetQueueAttributesInput, SetQueueAttributesOutput, - StartMessageMoveTaskInput, StartMessageMoveTaskOutput, - TagQueueInput, TagQueueOutput, - UntagQueueInput, UntagQueueOutput, ) @@ -120,10 +97,24 @@ class AsyncSQSClient(AsyncClient[AsyncSQSConfig]): Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region) """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def add_permission( - self, input: AddPermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.AddPermissionInput | _models.AddPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddPermissionOutput: ... + + @_overload + async def add_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddPermissionInputDict], ) -> AddPermissionOutput: """ Adds a permission to a queue for a specific @@ -161,8 +152,6 @@ async def add_permission( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `AddPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -172,10 +161,34 @@ async def add_permission( Returns: An instance of `AddPermissionOutput`. """ - return await self._invoke(input, _models.ADD_PERMISSION, [], plugins) + async def add_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddPermissionOutput: + return await self._invoke( + self._select_input(_models.ADD_PERMISSION, args, kwargs), + _models.ADD_PERMISSION, + [], + plugins, + ) + + @_overload + async def cancel_message_move_task( + self, + request: _models.CancelMessageMoveTaskInput + | _models.CancelMessageMoveTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelMessageMoveTaskOutput: ... + + @_overload async def cancel_message_move_task( - self, input: CancelMessageMoveTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelMessageMoveTaskInputDict], ) -> CancelMessageMoveTaskOutput: """ Cancels a specified message movement task. A message movement can only @@ -196,8 +209,6 @@ async def cancel_message_move_task( given time. Args: - input: - An instance of `CancelMessageMoveTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -207,10 +218,34 @@ async def cancel_message_move_task( Returns: An instance of `CancelMessageMoveTaskOutput`. """ - return await self._invoke(input, _models.CANCEL_MESSAGE_MOVE_TASK, [], plugins) + async def cancel_message_move_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelMessageMoveTaskOutput: + return await self._invoke( + self._select_input(_models.CANCEL_MESSAGE_MOVE_TASK, args, kwargs), + _models.CANCEL_MESSAGE_MOVE_TASK, + [], + plugins, + ) + + @_overload async def change_message_visibility( - self, input: ChangeMessageVisibilityInput, plugins: list[Plugin] | None = None + self, + request: _models.ChangeMessageVisibilityInput + | _models.ChangeMessageVisibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ChangeMessageVisibilityOutput: ... + + @_overload + async def change_message_visibility( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChangeMessageVisibilityInputDict], ) -> ChangeMessageVisibilityOutput: """ Changes the visibility timeout of a specified message in a queue to a @@ -276,8 +311,6 @@ async def change_message_visibility( `ChangeMessageVisibility` action) the next time the message is received. Args: - input: - An instance of `ChangeMessageVisibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -287,12 +320,34 @@ async def change_message_visibility( Returns: An instance of `ChangeMessageVisibilityOutput`. """ - return await self._invoke(input, _models.CHANGE_MESSAGE_VISIBILITY, [], plugins) + async def change_message_visibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ChangeMessageVisibilityOutput: + return await self._invoke( + self._select_input(_models.CHANGE_MESSAGE_VISIBILITY, args, kwargs), + _models.CHANGE_MESSAGE_VISIBILITY, + [], + plugins, + ) + + @_overload + async def change_message_visibility_batch( + self, + request: _models.ChangeMessageVisibilityBatchInput + | _models.ChangeMessageVisibilityBatchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ChangeMessageVisibilityBatchOutput: ... + + @_overload async def change_message_visibility_batch( self, - input: ChangeMessageVisibilityBatchInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChangeMessageVisibilityBatchInputDict], ) -> ChangeMessageVisibilityBatchOutput: """ Changes the visibility timeout of multiple messages. This is a batch @@ -307,8 +362,6 @@ async def change_message_visibility_batch( call returns an HTTP status code of `200`. Args: - input: - An instance of `ChangeMessageVisibilityBatchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -318,12 +371,33 @@ async def change_message_visibility_batch( Returns: An instance of `ChangeMessageVisibilityBatchOutput`. """ + + async def change_message_visibility_batch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ChangeMessageVisibilityBatchOutput: return await self._invoke( - input, _models.CHANGE_MESSAGE_VISIBILITY_BATCH, [], plugins + self._select_input(_models.CHANGE_MESSAGE_VISIBILITY_BATCH, args, kwargs), + _models.CHANGE_MESSAGE_VISIBILITY_BATCH, + [], + plugins, ) + @_overload + async def create_queue( + self, + request: _models.CreateQueueInput | _models.CreateQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateQueueOutput: ... + + @_overload async def create_queue( - self, input: CreateQueueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateQueueInputDict], ) -> CreateQueueOutput: """ Creates a new standard or FIFO queue. You can pass one or more @@ -382,8 +456,6 @@ async def create_queue( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `CreateQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -393,10 +465,33 @@ async def create_queue( Returns: An instance of `CreateQueueOutput`. """ - return await self._invoke(input, _models.CREATE_QUEUE, [], plugins) + async def create_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateQueueOutput: + return await self._invoke( + self._select_input(_models.CREATE_QUEUE, args, kwargs), + _models.CREATE_QUEUE, + [], + plugins, + ) + + @_overload + async def delete_message( + self, + request: _models.DeleteMessageInput | _models.DeleteMessageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMessageOutput: ... + + @_overload async def delete_message( - self, input: DeleteMessageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMessageInputDict], ) -> DeleteMessageOutput: """ Deletes the specified message from the specified queue. To select the @@ -425,8 +520,6 @@ async def delete_message( more than once does not cause issues. Args: - input: - An instance of `DeleteMessageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -436,10 +529,33 @@ async def delete_message( Returns: An instance of `DeleteMessageOutput`. """ - return await self._invoke(input, _models.DELETE_MESSAGE, [], plugins) + async def delete_message( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMessageOutput: + return await self._invoke( + self._select_input(_models.DELETE_MESSAGE, args, kwargs), + _models.DELETE_MESSAGE, + [], + plugins, + ) + + @_overload async def delete_message_batch( - self, input: DeleteMessageBatchInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteMessageBatchInput | _models.DeleteMessageBatchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMessageBatchOutput: ... + + @_overload + async def delete_message_batch( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMessageBatchInputDict], ) -> DeleteMessageBatchOutput: """ Deletes up to ten messages from the specified queue. This is a batch @@ -452,8 +568,6 @@ async def delete_message_batch( call returns an HTTP status code of `200`. Args: - input: - An instance of `DeleteMessageBatchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -463,10 +577,33 @@ async def delete_message_batch( Returns: An instance of `DeleteMessageBatchOutput`. """ - return await self._invoke(input, _models.DELETE_MESSAGE_BATCH, [], plugins) + async def delete_message_batch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMessageBatchOutput: + return await self._invoke( + self._select_input(_models.DELETE_MESSAGE_BATCH, args, kwargs), + _models.DELETE_MESSAGE_BATCH, + [], + plugins, + ) + + @_overload + async def delete_queue( + self, + request: _models.DeleteQueueInput | _models.DeleteQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteQueueOutput: ... + + @_overload async def delete_queue( - self, input: DeleteQueueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteQueueInputDict], ) -> DeleteQueueOutput: """ Deletes the queue specified by the `QueueUrl`, regardless of the @@ -493,8 +630,6 @@ async def delete_queue( The delete operation uses the HTTP `GET` verb. Args: - input: - An instance of `DeleteQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -504,10 +639,33 @@ async def delete_queue( Returns: An instance of `DeleteQueueOutput`. """ - return await self._invoke(input, _models.DELETE_QUEUE, [], plugins) + async def delete_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteQueueOutput: + return await self._invoke( + self._select_input(_models.DELETE_QUEUE, args, kwargs), + _models.DELETE_QUEUE, + [], + plugins, + ) + + @_overload async def get_queue_attributes( - self, input: GetQueueAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetQueueAttributesInput | _models.GetQueueAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetQueueAttributesOutput: ... + + @_overload + async def get_queue_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetQueueAttributesInputDict], ) -> GetQueueAttributesOutput: """ Gets attributes for the specified queue. @@ -518,8 +676,6 @@ async def get_queue_attributes( you can check whether `QueueName` ends with the `.fifo` suffix. Args: - input: - An instance of `GetQueueAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -529,10 +685,33 @@ async def get_queue_attributes( Returns: An instance of `GetQueueAttributesOutput`. """ - return await self._invoke(input, _models.GET_QUEUE_ATTRIBUTES, [], plugins) + async def get_queue_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetQueueAttributesOutput: + return await self._invoke( + self._select_input(_models.GET_QUEUE_ATTRIBUTES, args, kwargs), + _models.GET_QUEUE_ATTRIBUTES, + [], + plugins, + ) + + @_overload + async def get_queue_url( + self, + request: _models.GetQueueUrlInput | _models.GetQueueUrlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetQueueUrlOutput: ... + + @_overload async def get_queue_url( - self, input: GetQueueUrlInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetQueueUrlInputDict], ) -> GetQueueUrlOutput: """ The `GetQueueUrl` API returns the URL of an existing Amazon SQS queue. @@ -549,8 +728,6 @@ async def get_queue_url( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `GetQueueUrlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -560,12 +737,34 @@ async def get_queue_url( Returns: An instance of `GetQueueUrlOutput`. """ - return await self._invoke(input, _models.GET_QUEUE_URL, [], plugins) + async def get_queue_url( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetQueueUrlOutput: + return await self._invoke( + self._select_input(_models.GET_QUEUE_URL, args, kwargs), + _models.GET_QUEUE_URL, + [], + plugins, + ) + + @_overload + async def list_dead_letter_source_queues( + self, + request: _models.ListDeadLetterSourceQueuesInput + | _models.ListDeadLetterSourceQueuesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDeadLetterSourceQueuesOutput: ... + + @_overload async def list_dead_letter_source_queues( self, - input: ListDeadLetterSourceQueuesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDeadLetterSourceQueuesInputDict], ) -> ListDeadLetterSourceQueuesOutput: """ Returns a list of your queues that have the `RedrivePolicy` queue @@ -586,8 +785,6 @@ async def list_dead_letter_source_queues( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `ListDeadLetterSourceQueuesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -597,12 +794,34 @@ async def list_dead_letter_source_queues( Returns: An instance of `ListDeadLetterSourceQueuesOutput`. """ + + async def list_dead_letter_source_queues( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDeadLetterSourceQueuesOutput: return await self._invoke( - input, _models.LIST_DEAD_LETTER_SOURCE_QUEUES, [], plugins + self._select_input(_models.LIST_DEAD_LETTER_SOURCE_QUEUES, args, kwargs), + _models.LIST_DEAD_LETTER_SOURCE_QUEUES, + [], + plugins, ) + @_overload async def list_message_move_tasks( - self, input: ListMessageMoveTasksInput, plugins: list[Plugin] | None = None + self, + request: _models.ListMessageMoveTasksInput + | _models.ListMessageMoveTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMessageMoveTasksOutput: ... + + @_overload + async def list_message_move_tasks( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMessageMoveTasksInputDict], ) -> ListMessageMoveTasksOutput: """ Gets the most recent message movement tasks (up to 10) under a specific @@ -621,8 +840,6 @@ async def list_message_move_tasks( given time. Args: - input: - An instance of `ListMessageMoveTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -632,10 +849,33 @@ async def list_message_move_tasks( Returns: An instance of `ListMessageMoveTasksOutput`. """ - return await self._invoke(input, _models.LIST_MESSAGE_MOVE_TASKS, [], plugins) + async def list_message_move_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMessageMoveTasksOutput: + return await self._invoke( + self._select_input(_models.LIST_MESSAGE_MOVE_TASKS, args, kwargs), + _models.LIST_MESSAGE_MOVE_TASKS, + [], + plugins, + ) + + @_overload + async def list_queues( + self, + request: _models.ListQueuesInput | _models.ListQueuesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListQueuesOutput: ... + + @_overload async def list_queues( - self, input: ListQueuesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListQueuesInputDict], ) -> ListQueuesOutput: """ Returns a list of your queues in the current region. The response @@ -658,8 +898,6 @@ async def list_queues( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `ListQueuesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -669,10 +907,33 @@ async def list_queues( Returns: An instance of `ListQueuesOutput`. """ - return await self._invoke(input, _models.LIST_QUEUES, [], plugins) + async def list_queues( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListQueuesOutput: + return await self._invoke( + self._select_input(_models.LIST_QUEUES, args, kwargs), + _models.LIST_QUEUES, + [], + plugins, + ) + + @_overload + async def list_queue_tags( + self, + request: _models.ListQueueTagsInput | _models.ListQueueTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListQueueTagsOutput: ... + + @_overload async def list_queue_tags( - self, input: ListQueueTagsInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListQueueTagsInputDict], ) -> ListQueueTagsOutput: """ List all cost allocation tags added to the specified Amazon SQS queue. @@ -687,8 +948,6 @@ async def list_queue_tags( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `ListQueueTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -698,10 +957,33 @@ async def list_queue_tags( Returns: An instance of `ListQueueTagsOutput`. """ - return await self._invoke(input, _models.LIST_QUEUE_TAGS, [], plugins) + async def list_queue_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListQueueTagsOutput: + return await self._invoke( + self._select_input(_models.LIST_QUEUE_TAGS, args, kwargs), + _models.LIST_QUEUE_TAGS, + [], + plugins, + ) + + @_overload async def purge_queue( - self, input: PurgeQueueInput, plugins: list[Plugin] | None = None + self, + request: _models.PurgeQueueInput | _models.PurgeQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurgeQueueOutput: ... + + @_overload + async def purge_queue( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurgeQueueInputDict], ) -> PurgeQueueOutput: """ Deletes available messages in a queue (including in-flight messages) @@ -721,8 +1003,6 @@ async def purge_queue( deleted while the queue is being purged. Args: - input: - An instance of `PurgeQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -732,10 +1012,33 @@ async def purge_queue( Returns: An instance of `PurgeQueueOutput`. """ - return await self._invoke(input, _models.PURGE_QUEUE, [], plugins) + async def purge_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurgeQueueOutput: + return await self._invoke( + self._select_input(_models.PURGE_QUEUE, args, kwargs), + _models.PURGE_QUEUE, + [], + plugins, + ) + + @_overload + async def receive_message( + self, + request: _models.ReceiveMessageInput | _models.ReceiveMessageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReceiveMessageOutput: ... + + @_overload async def receive_message( - self, input: ReceiveMessageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReceiveMessageInputDict], ) -> ReceiveMessageOutput: """ Retrieves one or more messages (up to 10), from the specified queue. @@ -785,8 +1088,6 @@ async def receive_message( can handle new attributes gracefully. Args: - input: - An instance of `ReceiveMessageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -796,10 +1097,33 @@ async def receive_message( Returns: An instance of `ReceiveMessageOutput`. """ - return await self._invoke(input, _models.RECEIVE_MESSAGE, [], plugins) + async def receive_message( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReceiveMessageOutput: + return await self._invoke( + self._select_input(_models.RECEIVE_MESSAGE, args, kwargs), + _models.RECEIVE_MESSAGE, + [], + plugins, + ) + + @_overload + async def remove_permission( + self, + request: _models.RemovePermissionInput | _models.RemovePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemovePermissionOutput: ... + + @_overload async def remove_permission( - self, input: RemovePermissionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemovePermissionInputDict], ) -> RemovePermissionOutput: """ Revokes any permissions in the queue policy that matches the specified @@ -818,8 +1142,6 @@ async def remove_permission( `SetQueueAttributes` actions in your IAM policy. Args: - input: - An instance of `RemovePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -829,10 +1151,33 @@ async def remove_permission( Returns: An instance of `RemovePermissionOutput`. """ - return await self._invoke(input, _models.REMOVE_PERMISSION, [], plugins) + async def remove_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemovePermissionOutput: + return await self._invoke( + self._select_input(_models.REMOVE_PERMISSION, args, kwargs), + _models.REMOVE_PERMISSION, + [], + plugins, + ) + + @_overload async def send_message( - self, input: SendMessageInput, plugins: list[Plugin] | None = None + self, + request: _models.SendMessageInput | _models.SendMessageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendMessageOutput: ... + + @_overload + async def send_message( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendMessageInputDict], ) -> SendMessageOutput: """ Delivers a message to the specified queue. @@ -852,8 +1197,6 @@ async def send_message( exception. Args: - input: - An instance of `SendMessageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -863,10 +1206,33 @@ async def send_message( Returns: An instance of `SendMessageOutput`. """ - return await self._invoke(input, _models.SEND_MESSAGE, [], plugins) + async def send_message( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendMessageOutput: + return await self._invoke( + self._select_input(_models.SEND_MESSAGE, args, kwargs), + _models.SEND_MESSAGE, + [], + plugins, + ) + + @_overload + async def send_message_batch( + self, + request: _models.SendMessageBatchInput | _models.SendMessageBatchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendMessageBatchOutput: ... + + @_overload async def send_message_batch( - self, input: SendMessageBatchInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendMessageBatchInputDict], ) -> SendMessageBatchOutput: """ You can use `SendMessageBatch` to send up to 10 messages to the @@ -902,8 +1268,6 @@ async def send_message_batch( SQS uses the default value for the queue. Args: - input: - An instance of `SendMessageBatchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -913,10 +1277,33 @@ async def send_message_batch( Returns: An instance of `SendMessageBatchOutput`. """ - return await self._invoke(input, _models.SEND_MESSAGE_BATCH, [], plugins) + async def send_message_batch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendMessageBatchOutput: + return await self._invoke( + self._select_input(_models.SEND_MESSAGE_BATCH, args, kwargs), + _models.SEND_MESSAGE_BATCH, + [], + plugins, + ) + + @_overload + async def set_queue_attributes( + self, + request: _models.SetQueueAttributesInput | _models.SetQueueAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetQueueAttributesOutput: ... + + @_overload async def set_queue_attributes( - self, input: SetQueueAttributesInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetQueueAttributesInputDict], ) -> SetQueueAttributesOutput: """ Sets the value of one or more queue attributes, like a policy. When you @@ -942,8 +1329,6 @@ async def set_queue_attributes( `SetQueueAttributes` actions in your IAM policy. Args: - input: - An instance of `SetQueueAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -953,10 +1338,34 @@ async def set_queue_attributes( Returns: An instance of `SetQueueAttributesOutput`. """ - return await self._invoke(input, _models.SET_QUEUE_ATTRIBUTES, [], plugins) + async def set_queue_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetQueueAttributesOutput: + return await self._invoke( + self._select_input(_models.SET_QUEUE_ATTRIBUTES, args, kwargs), + _models.SET_QUEUE_ATTRIBUTES, + [], + plugins, + ) + + @_overload async def start_message_move_task( - self, input: StartMessageMoveTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.StartMessageMoveTaskInput + | _models.StartMessageMoveTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartMessageMoveTaskOutput: ... + + @_overload + async def start_message_move_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMessageMoveTaskInputDict], ) -> StartMessageMoveTaskOutput: """ Starts an asynchronous task to move messages from a specified source @@ -979,8 +1388,6 @@ async def start_message_move_task( given time. Args: - input: - An instance of `StartMessageMoveTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -990,10 +1397,33 @@ async def start_message_move_task( Returns: An instance of `StartMessageMoveTaskOutput`. """ - return await self._invoke(input, _models.START_MESSAGE_MOVE_TASK, [], plugins) + async def start_message_move_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartMessageMoveTaskOutput: + return await self._invoke( + self._select_input(_models.START_MESSAGE_MOVE_TASK, args, kwargs), + _models.START_MESSAGE_MOVE_TASK, + [], + plugins, + ) + + @_overload async def tag_queue( - self, input: TagQueueInput, plugins: list[Plugin] | None = None + self, + request: _models.TagQueueInput | _models.TagQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagQueueOutput: ... + + @_overload + async def tag_queue( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagQueueInputDict], ) -> TagQueueOutput: """ Add cost allocation tags to the specified Amazon SQS queue. For an @@ -1024,8 +1454,6 @@ async def tag_queue( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `TagQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1035,10 +1463,33 @@ async def tag_queue( Returns: An instance of `TagQueueOutput`. """ - return await self._invoke(input, _models.TAG_QUEUE, [], plugins) + async def tag_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagQueueOutput: + return await self._invoke( + self._select_input(_models.TAG_QUEUE, args, kwargs), + _models.TAG_QUEUE, + [], + plugins, + ) + + @_overload + async def untag_queue( + self, + request: _models.UntagQueueInput | _models.UntagQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagQueueOutput: ... + + @_overload async def untag_queue( - self, input: UntagQueueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagQueueInputDict], ) -> UntagQueueOutput: """ Remove cost allocation tags from the specified Amazon SQS queue. For an @@ -1053,8 +1504,6 @@ async def untag_queue( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `UntagQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1064,7 +1513,16 @@ async def untag_queue( Returns: An instance of `UntagQueueOutput`. """ - return await self._invoke(input, _models.UNTAG_QUEUE, [], plugins) + + async def untag_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagQueueOutput: + return await self._invoke( + self._select_input(_models.UNTAG_QUEUE, args, kwargs), + _models.UNTAG_QUEUE, + [], + plugins, + ) async def _new_config(self) -> AsyncSQSConfig: return await AsyncSQSConfig.resolve() diff --git a/clients/aws-sdk-sqs/src/aws_sdk_sqs/client.py b/clients/aws-sdk-sqs/src/aws_sdk_sqs/client.py index ab60b6bd8..05b03af42 100644 --- a/clients/aws-sdk-sqs/src/aws_sdk_sqs/client.py +++ b/clients/aws-sdk-sqs/src/aws_sdk_sqs/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,51 +20,28 @@ if TYPE_CHECKING: from .models import ( - AddPermissionInput, AddPermissionOutput, - CancelMessageMoveTaskInput, CancelMessageMoveTaskOutput, - ChangeMessageVisibilityBatchInput, ChangeMessageVisibilityBatchOutput, - ChangeMessageVisibilityInput, ChangeMessageVisibilityOutput, - CreateQueueInput, CreateQueueOutput, - DeleteMessageBatchInput, DeleteMessageBatchOutput, - DeleteMessageInput, DeleteMessageOutput, - DeleteQueueInput, DeleteQueueOutput, - GetQueueAttributesInput, GetQueueAttributesOutput, - GetQueueUrlInput, GetQueueUrlOutput, - ListDeadLetterSourceQueuesInput, ListDeadLetterSourceQueuesOutput, - ListMessageMoveTasksInput, ListMessageMoveTasksOutput, - ListQueueTagsInput, ListQueueTagsOutput, - ListQueuesInput, ListQueuesOutput, - PurgeQueueInput, PurgeQueueOutput, - ReceiveMessageInput, ReceiveMessageOutput, - RemovePermissionInput, RemovePermissionOutput, - SendMessageBatchInput, SendMessageBatchOutput, - SendMessageInput, SendMessageOutput, - SetQueueAttributesInput, SetQueueAttributesOutput, - StartMessageMoveTaskInput, StartMessageMoveTaskOutput, - TagQueueInput, TagQueueOutput, - UntagQueueInput, UntagQueueOutput, ) @@ -120,10 +97,24 @@ class SQSClient(Client[SQSConfig]): Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region) """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def add_permission( - self, input: AddPermissionInput, plugins: list[Plugin] | None = None + self, + request: _models.AddPermissionInput | _models.AddPermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AddPermissionOutput: ... + + @_overload + def add_permission( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AddPermissionInputDict], ) -> AddPermissionOutput: """ Adds a permission to a queue for a specific @@ -161,8 +152,6 @@ def add_permission( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `AddPermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -172,10 +161,34 @@ def add_permission( Returns: An instance of `AddPermissionOutput`. """ - return self._invoke(input, _models.ADD_PERMISSION, [], plugins) + def add_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AddPermissionOutput: + return self._invoke( + self._select_input(_models.ADD_PERMISSION, args, kwargs), + _models.ADD_PERMISSION, + [], + plugins, + ) + + @_overload + def cancel_message_move_task( + self, + request: _models.CancelMessageMoveTaskInput + | _models.CancelMessageMoveTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CancelMessageMoveTaskOutput: ... + + @_overload def cancel_message_move_task( - self, input: CancelMessageMoveTaskInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CancelMessageMoveTaskInputDict], ) -> CancelMessageMoveTaskOutput: """ Cancels a specified message movement task. A message movement can only @@ -196,8 +209,6 @@ def cancel_message_move_task( given time. Args: - input: - An instance of `CancelMessageMoveTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -207,10 +218,34 @@ def cancel_message_move_task( Returns: An instance of `CancelMessageMoveTaskOutput`. """ - return self._invoke(input, _models.CANCEL_MESSAGE_MOVE_TASK, [], plugins) + def cancel_message_move_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CancelMessageMoveTaskOutput: + return self._invoke( + self._select_input(_models.CANCEL_MESSAGE_MOVE_TASK, args, kwargs), + _models.CANCEL_MESSAGE_MOVE_TASK, + [], + plugins, + ) + + @_overload def change_message_visibility( - self, input: ChangeMessageVisibilityInput, plugins: list[Plugin] | None = None + self, + request: _models.ChangeMessageVisibilityInput + | _models.ChangeMessageVisibilityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ChangeMessageVisibilityOutput: ... + + @_overload + def change_message_visibility( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChangeMessageVisibilityInputDict], ) -> ChangeMessageVisibilityOutput: """ Changes the visibility timeout of a specified message in a queue to a @@ -276,8 +311,6 @@ def change_message_visibility( `ChangeMessageVisibility` action) the next time the message is received. Args: - input: - An instance of `ChangeMessageVisibilityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -287,12 +320,34 @@ def change_message_visibility( Returns: An instance of `ChangeMessageVisibilityOutput`. """ - return self._invoke(input, _models.CHANGE_MESSAGE_VISIBILITY, [], plugins) + def change_message_visibility( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ChangeMessageVisibilityOutput: + return self._invoke( + self._select_input(_models.CHANGE_MESSAGE_VISIBILITY, args, kwargs), + _models.CHANGE_MESSAGE_VISIBILITY, + [], + plugins, + ) + + @_overload + def change_message_visibility_batch( + self, + request: _models.ChangeMessageVisibilityBatchInput + | _models.ChangeMessageVisibilityBatchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ChangeMessageVisibilityBatchOutput: ... + + @_overload def change_message_visibility_batch( self, - input: ChangeMessageVisibilityBatchInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ChangeMessageVisibilityBatchInputDict], ) -> ChangeMessageVisibilityBatchOutput: """ Changes the visibility timeout of multiple messages. This is a batch @@ -307,8 +362,6 @@ def change_message_visibility_batch( call returns an HTTP status code of `200`. Args: - input: - An instance of `ChangeMessageVisibilityBatchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -318,10 +371,33 @@ def change_message_visibility_batch( Returns: An instance of `ChangeMessageVisibilityBatchOutput`. """ - return self._invoke(input, _models.CHANGE_MESSAGE_VISIBILITY_BATCH, [], plugins) + def change_message_visibility_batch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ChangeMessageVisibilityBatchOutput: + return self._invoke( + self._select_input(_models.CHANGE_MESSAGE_VISIBILITY_BATCH, args, kwargs), + _models.CHANGE_MESSAGE_VISIBILITY_BATCH, + [], + plugins, + ) + + @_overload + def create_queue( + self, + request: _models.CreateQueueInput | _models.CreateQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> CreateQueueOutput: ... + + @_overload def create_queue( - self, input: CreateQueueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.CreateQueueInputDict], ) -> CreateQueueOutput: """ Creates a new standard or FIFO queue. You can pass one or more @@ -380,8 +456,6 @@ def create_queue( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `CreateQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -391,10 +465,33 @@ def create_queue( Returns: An instance of `CreateQueueOutput`. """ - return self._invoke(input, _models.CREATE_QUEUE, [], plugins) + def create_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> CreateQueueOutput: + return self._invoke( + self._select_input(_models.CREATE_QUEUE, args, kwargs), + _models.CREATE_QUEUE, + [], + plugins, + ) + + @_overload def delete_message( - self, input: DeleteMessageInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteMessageInput | _models.DeleteMessageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMessageOutput: ... + + @_overload + def delete_message( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMessageInputDict], ) -> DeleteMessageOutput: """ Deletes the specified message from the specified queue. To select the @@ -423,8 +520,6 @@ def delete_message( more than once does not cause issues. Args: - input: - An instance of `DeleteMessageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -434,10 +529,33 @@ def delete_message( Returns: An instance of `DeleteMessageOutput`. """ - return self._invoke(input, _models.DELETE_MESSAGE, [], plugins) + def delete_message( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMessageOutput: + return self._invoke( + self._select_input(_models.DELETE_MESSAGE, args, kwargs), + _models.DELETE_MESSAGE, + [], + plugins, + ) + + @_overload def delete_message_batch( - self, input: DeleteMessageBatchInput, plugins: list[Plugin] | None = None + self, + request: _models.DeleteMessageBatchInput | _models.DeleteMessageBatchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteMessageBatchOutput: ... + + @_overload + def delete_message_batch( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteMessageBatchInputDict], ) -> DeleteMessageBatchOutput: """ Deletes up to ten messages from the specified queue. This is a batch @@ -450,8 +568,6 @@ def delete_message_batch( call returns an HTTP status code of `200`. Args: - input: - An instance of `DeleteMessageBatchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -461,10 +577,33 @@ def delete_message_batch( Returns: An instance of `DeleteMessageBatchOutput`. """ - return self._invoke(input, _models.DELETE_MESSAGE_BATCH, [], plugins) + def delete_message_batch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteMessageBatchOutput: + return self._invoke( + self._select_input(_models.DELETE_MESSAGE_BATCH, args, kwargs), + _models.DELETE_MESSAGE_BATCH, + [], + plugins, + ) + + @_overload + def delete_queue( + self, + request: _models.DeleteQueueInput | _models.DeleteQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DeleteQueueOutput: ... + + @_overload def delete_queue( - self, input: DeleteQueueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DeleteQueueInputDict], ) -> DeleteQueueOutput: """ Deletes the queue specified by the `QueueUrl`, regardless of the @@ -491,8 +630,6 @@ def delete_queue( The delete operation uses the HTTP `GET` verb. Args: - input: - An instance of `DeleteQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -502,10 +639,33 @@ def delete_queue( Returns: An instance of `DeleteQueueOutput`. """ - return self._invoke(input, _models.DELETE_QUEUE, [], plugins) + def delete_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DeleteQueueOutput: + return self._invoke( + self._select_input(_models.DELETE_QUEUE, args, kwargs), + _models.DELETE_QUEUE, + [], + plugins, + ) + + @_overload def get_queue_attributes( - self, input: GetQueueAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.GetQueueAttributesInput | _models.GetQueueAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetQueueAttributesOutput: ... + + @_overload + def get_queue_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetQueueAttributesInputDict], ) -> GetQueueAttributesOutput: """ Gets attributes for the specified queue. @@ -516,8 +676,6 @@ def get_queue_attributes( you can check whether `QueueName` ends with the `.fifo` suffix. Args: - input: - An instance of `GetQueueAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -527,10 +685,33 @@ def get_queue_attributes( Returns: An instance of `GetQueueAttributesOutput`. """ - return self._invoke(input, _models.GET_QUEUE_ATTRIBUTES, [], plugins) + def get_queue_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetQueueAttributesOutput: + return self._invoke( + self._select_input(_models.GET_QUEUE_ATTRIBUTES, args, kwargs), + _models.GET_QUEUE_ATTRIBUTES, + [], + plugins, + ) + + @_overload + def get_queue_url( + self, + request: _models.GetQueueUrlInput | _models.GetQueueUrlInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetQueueUrlOutput: ... + + @_overload def get_queue_url( - self, input: GetQueueUrlInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetQueueUrlInputDict], ) -> GetQueueUrlOutput: """ The `GetQueueUrl` API returns the URL of an existing Amazon SQS queue. @@ -547,8 +728,6 @@ def get_queue_url( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `GetQueueUrlInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -558,12 +737,34 @@ def get_queue_url( Returns: An instance of `GetQueueUrlOutput`. """ - return self._invoke(input, _models.GET_QUEUE_URL, [], plugins) + def get_queue_url( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetQueueUrlOutput: + return self._invoke( + self._select_input(_models.GET_QUEUE_URL, args, kwargs), + _models.GET_QUEUE_URL, + [], + plugins, + ) + + @_overload + def list_dead_letter_source_queues( + self, + request: _models.ListDeadLetterSourceQueuesInput + | _models.ListDeadLetterSourceQueuesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListDeadLetterSourceQueuesOutput: ... + + @_overload def list_dead_letter_source_queues( self, - input: ListDeadLetterSourceQueuesInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListDeadLetterSourceQueuesInputDict], ) -> ListDeadLetterSourceQueuesOutput: """ Returns a list of your queues that have the `RedrivePolicy` queue @@ -584,8 +785,6 @@ def list_dead_letter_source_queues( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `ListDeadLetterSourceQueuesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -595,10 +794,34 @@ def list_dead_letter_source_queues( Returns: An instance of `ListDeadLetterSourceQueuesOutput`. """ - return self._invoke(input, _models.LIST_DEAD_LETTER_SOURCE_QUEUES, [], plugins) + def list_dead_letter_source_queues( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListDeadLetterSourceQueuesOutput: + return self._invoke( + self._select_input(_models.LIST_DEAD_LETTER_SOURCE_QUEUES, args, kwargs), + _models.LIST_DEAD_LETTER_SOURCE_QUEUES, + [], + plugins, + ) + + @_overload def list_message_move_tasks( - self, input: ListMessageMoveTasksInput, plugins: list[Plugin] | None = None + self, + request: _models.ListMessageMoveTasksInput + | _models.ListMessageMoveTasksInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListMessageMoveTasksOutput: ... + + @_overload + def list_message_move_tasks( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListMessageMoveTasksInputDict], ) -> ListMessageMoveTasksOutput: """ Gets the most recent message movement tasks (up to 10) under a specific @@ -617,8 +840,6 @@ def list_message_move_tasks( given time. Args: - input: - An instance of `ListMessageMoveTasksInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -628,10 +849,33 @@ def list_message_move_tasks( Returns: An instance of `ListMessageMoveTasksOutput`. """ - return self._invoke(input, _models.LIST_MESSAGE_MOVE_TASKS, [], plugins) + def list_message_move_tasks( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListMessageMoveTasksOutput: + return self._invoke( + self._select_input(_models.LIST_MESSAGE_MOVE_TASKS, args, kwargs), + _models.LIST_MESSAGE_MOVE_TASKS, + [], + plugins, + ) + + @_overload + def list_queues( + self, + request: _models.ListQueuesInput | _models.ListQueuesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListQueuesOutput: ... + + @_overload def list_queues( - self, input: ListQueuesInput | None = None, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListQueuesInputDict], ) -> ListQueuesOutput: """ Returns a list of your queues in the current region. The response @@ -654,8 +898,6 @@ def list_queues( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `ListQueuesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -665,10 +907,33 @@ def list_queues( Returns: An instance of `ListQueuesOutput`. """ - return self._invoke(input, _models.LIST_QUEUES, [], plugins) + def list_queues( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListQueuesOutput: + return self._invoke( + self._select_input(_models.LIST_QUEUES, args, kwargs), + _models.LIST_QUEUES, + [], + plugins, + ) + + @_overload def list_queue_tags( - self, input: ListQueueTagsInput, plugins: list[Plugin] | None = None + self, + request: _models.ListQueueTagsInput | _models.ListQueueTagsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ListQueueTagsOutput: ... + + @_overload + def list_queue_tags( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ListQueueTagsInputDict], ) -> ListQueueTagsOutput: """ List all cost allocation tags added to the specified Amazon SQS queue. @@ -683,8 +948,6 @@ def list_queue_tags( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `ListQueueTagsInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -694,10 +957,33 @@ def list_queue_tags( Returns: An instance of `ListQueueTagsOutput`. """ - return self._invoke(input, _models.LIST_QUEUE_TAGS, [], plugins) + def list_queue_tags( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ListQueueTagsOutput: + return self._invoke( + self._select_input(_models.LIST_QUEUE_TAGS, args, kwargs), + _models.LIST_QUEUE_TAGS, + [], + plugins, + ) + + @_overload def purge_queue( - self, input: PurgeQueueInput, plugins: list[Plugin] | None = None + self, + request: _models.PurgeQueueInput | _models.PurgeQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> PurgeQueueOutput: ... + + @_overload + def purge_queue( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.PurgeQueueInputDict], ) -> PurgeQueueOutput: """ Deletes available messages in a queue (including in-flight messages) @@ -717,8 +1003,6 @@ def purge_queue( deleted while the queue is being purged. Args: - input: - An instance of `PurgeQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -728,10 +1012,33 @@ def purge_queue( Returns: An instance of `PurgeQueueOutput`. """ - return self._invoke(input, _models.PURGE_QUEUE, [], plugins) + def purge_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> PurgeQueueOutput: + return self._invoke( + self._select_input(_models.PURGE_QUEUE, args, kwargs), + _models.PURGE_QUEUE, + [], + plugins, + ) + + @_overload + def receive_message( + self, + request: _models.ReceiveMessageInput | _models.ReceiveMessageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> ReceiveMessageOutput: ... + + @_overload def receive_message( - self, input: ReceiveMessageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.ReceiveMessageInputDict], ) -> ReceiveMessageOutput: """ Retrieves one or more messages (up to 10), from the specified queue. @@ -781,8 +1088,6 @@ def receive_message( can handle new attributes gracefully. Args: - input: - An instance of `ReceiveMessageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -792,10 +1097,33 @@ def receive_message( Returns: An instance of `ReceiveMessageOutput`. """ - return self._invoke(input, _models.RECEIVE_MESSAGE, [], plugins) + def receive_message( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> ReceiveMessageOutput: + return self._invoke( + self._select_input(_models.RECEIVE_MESSAGE, args, kwargs), + _models.RECEIVE_MESSAGE, + [], + plugins, + ) + + @_overload + def remove_permission( + self, + request: _models.RemovePermissionInput | _models.RemovePermissionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> RemovePermissionOutput: ... + + @_overload def remove_permission( - self, input: RemovePermissionInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.RemovePermissionInputDict], ) -> RemovePermissionOutput: """ Revokes any permissions in the queue policy that matches the specified @@ -814,8 +1142,6 @@ def remove_permission( `SetQueueAttributes` actions in your IAM policy. Args: - input: - An instance of `RemovePermissionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -825,10 +1151,33 @@ def remove_permission( Returns: An instance of `RemovePermissionOutput`. """ - return self._invoke(input, _models.REMOVE_PERMISSION, [], plugins) + def remove_permission( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> RemovePermissionOutput: + return self._invoke( + self._select_input(_models.REMOVE_PERMISSION, args, kwargs), + _models.REMOVE_PERMISSION, + [], + plugins, + ) + + @_overload + def send_message( + self, + request: _models.SendMessageInput | _models.SendMessageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendMessageOutput: ... + + @_overload def send_message( - self, input: SendMessageInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendMessageInputDict], ) -> SendMessageOutput: """ Delivers a message to the specified queue. @@ -848,8 +1197,6 @@ def send_message( exception. Args: - input: - An instance of `SendMessageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -859,10 +1206,33 @@ def send_message( Returns: An instance of `SendMessageOutput`. """ - return self._invoke(input, _models.SEND_MESSAGE, [], plugins) + def send_message( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendMessageOutput: + return self._invoke( + self._select_input(_models.SEND_MESSAGE, args, kwargs), + _models.SEND_MESSAGE, + [], + plugins, + ) + + @_overload + def send_message_batch( + self, + request: _models.SendMessageBatchInput | _models.SendMessageBatchInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SendMessageBatchOutput: ... + + @_overload def send_message_batch( - self, input: SendMessageBatchInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SendMessageBatchInputDict], ) -> SendMessageBatchOutput: """ You can use `SendMessageBatch` to send up to 10 messages to the @@ -898,8 +1268,6 @@ def send_message_batch( SQS uses the default value for the queue. Args: - input: - An instance of `SendMessageBatchInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -909,10 +1277,33 @@ def send_message_batch( Returns: An instance of `SendMessageBatchOutput`. """ - return self._invoke(input, _models.SEND_MESSAGE_BATCH, [], plugins) + def send_message_batch( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SendMessageBatchOutput: + return self._invoke( + self._select_input(_models.SEND_MESSAGE_BATCH, args, kwargs), + _models.SEND_MESSAGE_BATCH, + [], + plugins, + ) + + @_overload def set_queue_attributes( - self, input: SetQueueAttributesInput, plugins: list[Plugin] | None = None + self, + request: _models.SetQueueAttributesInput | _models.SetQueueAttributesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> SetQueueAttributesOutput: ... + + @_overload + def set_queue_attributes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.SetQueueAttributesInputDict], ) -> SetQueueAttributesOutput: """ Sets the value of one or more queue attributes, like a policy. When you @@ -938,8 +1329,6 @@ def set_queue_attributes( `SetQueueAttributes` actions in your IAM policy. Args: - input: - An instance of `SetQueueAttributesInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -949,10 +1338,34 @@ def set_queue_attributes( Returns: An instance of `SetQueueAttributesOutput`. """ - return self._invoke(input, _models.SET_QUEUE_ATTRIBUTES, [], plugins) + def set_queue_attributes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> SetQueueAttributesOutput: + return self._invoke( + self._select_input(_models.SET_QUEUE_ATTRIBUTES, args, kwargs), + _models.SET_QUEUE_ATTRIBUTES, + [], + plugins, + ) + + @_overload def start_message_move_task( - self, input: StartMessageMoveTaskInput, plugins: list[Plugin] | None = None + self, + request: _models.StartMessageMoveTaskInput + | _models.StartMessageMoveTaskInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> StartMessageMoveTaskOutput: ... + + @_overload + def start_message_move_task( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMessageMoveTaskInputDict], ) -> StartMessageMoveTaskOutput: """ Starts an asynchronous task to move messages from a specified source @@ -975,8 +1388,6 @@ def start_message_move_task( given time. Args: - input: - An instance of `StartMessageMoveTaskInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -986,10 +1397,33 @@ def start_message_move_task( Returns: An instance of `StartMessageMoveTaskOutput`. """ - return self._invoke(input, _models.START_MESSAGE_MOVE_TASK, [], plugins) + def start_message_move_task( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> StartMessageMoveTaskOutput: + return self._invoke( + self._select_input(_models.START_MESSAGE_MOVE_TASK, args, kwargs), + _models.START_MESSAGE_MOVE_TASK, + [], + plugins, + ) + + @_overload def tag_queue( - self, input: TagQueueInput, plugins: list[Plugin] | None = None + self, + request: _models.TagQueueInput | _models.TagQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> TagQueueOutput: ... + + @_overload + def tag_queue( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.TagQueueInputDict], ) -> TagQueueOutput: """ Add cost allocation tags to the specified Amazon SQS queue. For an @@ -1020,8 +1454,6 @@ def tag_queue( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `TagQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1031,10 +1463,33 @@ def tag_queue( Returns: An instance of `TagQueueOutput`. """ - return self._invoke(input, _models.TAG_QUEUE, [], plugins) + def tag_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> TagQueueOutput: + return self._invoke( + self._select_input(_models.TAG_QUEUE, args, kwargs), + _models.TAG_QUEUE, + [], + plugins, + ) + + @_overload + def untag_queue( + self, + request: _models.UntagQueueInput | _models.UntagQueueInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> UntagQueueOutput: ... + + @_overload def untag_queue( - self, input: UntagQueueInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.UntagQueueInputDict], ) -> UntagQueueOutput: """ Remove cost allocation tags from the specified Amazon SQS queue. For an @@ -1049,8 +1504,6 @@ def untag_queue( in the *Amazon SQS Developer Guide*. Args: - input: - An instance of `UntagQueueInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1060,7 +1513,16 @@ def untag_queue( Returns: An instance of `UntagQueueOutput`. """ - return self._invoke(input, _models.UNTAG_QUEUE, [], plugins) + + def untag_queue( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> UntagQueueOutput: + return self._invoke( + self._select_input(_models.UNTAG_QUEUE, args, kwargs), + _models.UNTAG_QUEUE, + [], + plugins, + ) def _new_config(self) -> SQSConfig: return SQSConfig.resolve() diff --git a/clients/aws-sdk-sqs/src/aws_sdk_sqs/models.pyi b/clients/aws-sdk-sqs/src/aws_sdk_sqs/models.pyi index 3d370de18..7074dc785 100644 --- a/clients/aws-sdk-sqs/src/aws_sdk_sqs/models.pyi +++ b/clients/aws-sdk-sqs/src/aws_sdk_sqs/models.pyi @@ -1,8 +1,9 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Mapping, Sequence from dataclasses import dataclass from enum import StrEnum -from typing import Self +from typing import Required, Self, TypedDict from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -66,6 +67,46 @@ class AddPermissionInput(_SerdeShape): `ChangeMessageVisibilityBatch`. """ +class AddPermissionInputDict(TypedDict, total=False): + """Dictionary form of `AddPermissionInput`.""" + + queue_url: Required[str] + """ + The URL of the Amazon SQS queue to which permissions are added. + + Queue URLs and names are case-sensitive. + """ + label: Required[str] + """ + The unique identification of the permission you're setting (for + example, `AliceSendMessage`). Maximum 80 characters. Allowed characters + include alphanumeric characters, hyphens (`-`), and underscores (`_`). + """ + aws_account_ids: Required[Sequence[str]] + """ + The Amazon Web Services account numbers of the + [principals](https://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P) + who are to receive permission. For information about locating the Amazon + Web Services account identification, see [Your Amazon Web Services + Identifiers](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html#sqs-api-request-authentication) + in the *Amazon SQS Developer Guide*. + """ + actions: Required[Sequence[str]] + """ + The action the client wants to allow for the specified principal. Valid + values: the name of any action or `*`. + + For more information about these actions, see [Overview of Managing + Access Permissions to Your Amazon Simple Queue Service + Resource](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html) + in the *Amazon SQS Developer Guide*. + + Specifying `SendMessage`, `DeleteMessage`, or `ChangeMessageVisibility` + for `ActionName.n` also grants permissions for the corresponding batch + versions of those actions: `SendMessageBatch`, `DeleteMessageBatch`, and + `ChangeMessageVisibilityBatch`. + """ + @dataclass(kw_only=True) class AddPermissionOutput(_SerdeShape): """Dataclass for AddPermissionOutput structure.""" @@ -128,6 +169,12 @@ class CancelMessageMoveTaskInput(_SerdeShape): task_handle: str | None = ... """An identifier associated with a message movement task.""" +class CancelMessageMoveTaskInputDict(TypedDict, total=False): + """Dictionary form of `CancelMessageMoveTaskInput`.""" + + task_handle: Required[str] + """An identifier associated with a message movement task.""" + @dataclass(kw_only=True) class CancelMessageMoveTaskOutput(_SerdeShape): """Dataclass for CancelMessageMoveTaskOutput structure.""" @@ -161,6 +208,26 @@ class ChangeMessageVisibilityBatchInput(_SerdeShape): timeout must be changed. """ +class ChangeMessageVisibilityBatchInputDict(TypedDict, total=False): + """Dictionary form of `ChangeMessageVisibilityBatchInput`.""" + + queue_url: Required[str] + """ + The URL of the Amazon SQS queue whose messages' visibility is changed. + + Queue URLs and names are case-sensitive. + """ + entries: Required[ + Sequence[ + ChangeMessageVisibilityBatchRequestEntry + | ChangeMessageVisibilityBatchRequestEntryDict + ] + ] + """ + Lists the receipt handles of the messages for which the visibility + timeout must be changed. + """ + @dataclass(kw_only=True) class ChangeMessageVisibilityBatchOutput(_SerdeShape): """ @@ -204,6 +271,25 @@ class ChangeMessageVisibilityBatchRequestEntry(_SerdeShape): visibility_timeout: int | None = ... """The new value (in seconds) for the message's visibility timeout.""" +class ChangeMessageVisibilityBatchRequestEntryDict(TypedDict, total=False): + """Dictionary form of `ChangeMessageVisibilityBatchRequestEntry`.""" + + id: Required[str] + """ + An identifier for this particular receipt handle used to communicate the + result. + + Note: + The `Id`s of a batch request need to be unique within a request. + + This identifier can have up to 80 characters. The following characters + are accepted: alphanumeric characters, hyphens(-), and underscores (_). + """ + receipt_handle: Required[str] + """A receipt handle.""" + visibility_timeout: int | None + """The new value (in seconds) for the message's visibility timeout.""" + @dataclass(kw_only=True) class ChangeMessageVisibilityBatchResultEntry(_SerdeShape): """Encloses the `Id` of an entry in ` ``ChangeMessageVisibilityBatch``.`""" @@ -236,6 +322,27 @@ class ChangeMessageVisibilityInput(_SerdeShape): range: `0` to `43200`. Maximum: 12 hours. """ +class ChangeMessageVisibilityInputDict(TypedDict, total=False): + """Dictionary form of `ChangeMessageVisibilityInput`.""" + + queue_url: Required[str] + """ + The URL of the Amazon SQS queue whose message's visibility is changed. + + Queue URLs and names are case-sensitive. + """ + receipt_handle: Required[str] + """ + The receipt handle associated with the message, whose visibility timeout + is changed. This parameter is returned by the ` ``ReceiveMessage`` ` + action. + """ + visibility_timeout: Required[int] + """ + The new value for the message's visibility timeout (in seconds). Values + range: `0` to `43200`. Maximum: 12 hours. + """ + @dataclass(kw_only=True) class ChangeMessageVisibilityOutput(_SerdeShape): """Dataclass for ChangeMessageVisibilityOutput structure.""" @@ -495,285 +602,142 @@ class CreateQueueInput(_SerdeShape): in the *Amazon SQS Developer Guide*. """ -@dataclass(kw_only=True) -class CreateQueueOutput(_SerdeShape): - """Returns the `QueueUrl` attribute of the created queue.""" +class CreateQueueInputDict(TypedDict, total=False): + """Dictionary form of `CreateQueueInput`.""" - queue_url: str | None = ... - """The URL of the created Amazon SQS queue.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + queue_name: Required[str] """ + The name of the new queue. The following limits apply to this name: -@dataclass(kw_only=True) -class DeleteMessageBatchInput(_SerdeShape): - """""" + - A queue name can have up to 80 characters. - queue_url: str | None = ... - """ - The URL of the Amazon SQS queue from which messages are deleted. + - Valid values: alphanumeric characters, hyphens (`-`), and underscores + (`_`). - Queue URLs and names are case-sensitive. - """ - entries: list[DeleteMessageBatchRequestEntry] | None = ... - """Lists the receipt handles for the messages to be deleted.""" + - A FIFO queue name must end with the `.fifo` suffix. -@dataclass(kw_only=True) -class DeleteMessageBatchOutput(_SerdeShape): + Queue URLs and names are case-sensitive. """ - For each message in the batch, the response contains a - ` ``DeleteMessageBatchResultEntry`` ` tag if the message is deleted or a - ` ``BatchResultErrorEntry`` ` tag if the message can't be deleted. + attributes: Mapping[str, str] | None """ + A map of attributes with their corresponding values. - successful: list[DeleteMessageBatchResultEntry] - """A list of ` ``DeleteMessageBatchResultEntry`` ` items.""" - failed: list[BatchResultErrorEntry] - """A list of ` ``BatchResultErrorEntry`` ` items.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + The following lists the names, descriptions, and values of the special + request parameters that the `CreateQueue` action uses: -@dataclass(kw_only=True) -class DeleteMessageBatchRequestEntry(_SerdeShape): - """Encloses a receipt handle and an identifier for it.""" + - `DelaySeconds` -- The length of time, in seconds, for which the + delivery of all messages in the queue is delayed. Valid values: An + integer from 0 to 900 seconds (15 minutes). Default: 0. - id: str - """ - The identifier for this particular receipt handle. This is used to - communicate the result. + - `MaximumMessageSize` -- The limit of how many bytes a message can + contain before Amazon SQS rejects it. Valid values: An integer from + 1,024 bytes (1 KiB) to 1,048,576 bytes (1 MiB). Default: 1,048,576 + bytes (1 MiB). - Note: - The `Id`s of a batch request need to be unique within a request. + - `MessageRetentionPeriod` -- The length of time, in seconds, for which + Amazon SQS retains a message. Valid values: An integer from 60 seconds + (1 minute) to 1,209,600 seconds (14 days). Default: 345,600 (4 days). + When you change a queue's attributes, the change can take up to 60 + seconds for most of the attributes to propagate throughout the Amazon + SQS system. Changes made to the `MessageRetentionPeriod` attribute can + take up to 15 minutes and will impact existing messages in the queue + potentially causing them to be expired and deleted if the + `MessageRetentionPeriod` is reduced below the age of existing + messages. - This identifier can have up to 80 characters. The following characters - are accepted: alphanumeric characters, hyphens(-), and underscores (_). - """ - receipt_handle: str - """A receipt handle.""" + - `Policy` -- The queue's policy. A valid Amazon Web Services policy. + For more information about policy structure, see [Overview of Amazon + Web Services IAM + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) + in the *IAM User Guide*. -@dataclass(kw_only=True) -class DeleteMessageBatchResultEntry(_SerdeShape): - """Encloses the `Id` of an entry in ` ``DeleteMessageBatch``.`""" + - `ReceiveMessageWaitTimeSeconds` -- The length of time, in seconds, for + which a ` ``ReceiveMessage`` ` action waits for a message to arrive. + Valid values: An integer from 0 to 20 (seconds). Default: 0. - id: str - """Represents a successfully deleted message.""" + - `VisibilityTimeout` -- The visibility timeout for the queue, in + seconds. Valid values: An integer from 0 to 43,200 (12 hours). + Default: 30. For more information about the visibility timeout, see + [Visibility + Timeout](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + in the *Amazon SQS Developer Guide*. -@dataclass(kw_only=True) -class DeleteMessageInput(_SerdeShape): - """""" + The following attributes apply only to [dead-letter + queues:](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) - queue_url: str | None = ... - """ - The URL of the Amazon SQS queue from which messages are deleted. + - `RedrivePolicy` -- The string that includes the parameters for the + dead-letter queue functionality of the source queue as a JSON object. + The parameters are as follows: - Queue URLs and names are case-sensitive. - """ - receipt_handle: str | None = ... - """The receipt handle associated with the message to delete.""" + - `deadLetterTargetArn` -- The Amazon Resource Name (ARN) of the + dead-letter queue to which Amazon SQS moves messages after the value + of `maxReceiveCount` is exceeded. -@dataclass(kw_only=True) -class DeleteMessageOutput(_SerdeShape): - """Dataclass for DeleteMessageOutput structure.""" + - `maxReceiveCount` -- The number of times a message is delivered to + the source queue before being moved to the dead-letter queue. + Default: 10. When the `ReceiveCount` for a message exceeds the + `maxReceiveCount` for a queue, Amazon SQS moves the message to the + dead-letter-queue. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `RedriveAllowPolicy` -- The string that includes the parameters for + the permissions for the dead-letter queue redrive permission and which + source queues can specify dead-letter queues as a JSON object. The + parameters are as follows: -@dataclass(kw_only=True) -class DeleteQueueInput(_SerdeShape): - """""" + - `redrivePermission` -- The permission type that defines which source + queues can specify the current queue as the dead-letter queue. Valid + values are: - queue_url: str | None = ... - """ - The URL of the Amazon SQS queue to delete. + - `allowAll` -- (Default) Any source queues in this Amazon Web + Services account in the same Region can specify this queue as the + dead-letter queue. - Queue URLs and names are case-sensitive. - """ + - `denyAll` -- No source queues can specify this queue as the + dead-letter queue. -@dataclass(kw_only=True) -class DeleteQueueOutput(_SerdeShape): - """Dataclass for DeleteQueueOutput structure.""" + - `byQueue` -- Only queues specified by the `sourceQueueArns` + parameter can specify this queue as the dead-letter queue. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - `sourceQueueArns` -- The Amazon Resource Names (ARN)s of the source + queues that can specify this queue as the dead-letter queue and + redrive messages. You can specify this parameter only when the + `redrivePermission` parameter is set to `byQueue`. You can specify + up to 10 source queue ARNs. To allow more than 10 source queues to + specify dead-letter queues, set the `redrivePermission` parameter to + `allowAll`. -@dataclass(kw_only=True) -class EmptyBatchRequest(ServiceError, _SerdeShape): - """The batch request doesn't contain any entries.""" - - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ - -@dataclass(kw_only=True) -class GetQueueAttributesInput(_SerdeShape): - """""" - - queue_url: str | None = ... - """ - The URL of the Amazon SQS queue whose attribute information is - retrieved. - - Queue URLs and names are case-sensitive. - """ - attribute_names: list[str] | None = ... - """ - A list of attributes for which to retrieve information. - - The `AttributeNames` parameter is optional, but if you don't specify - values for this parameter, the request returns empty results. - - Note: - In the future, new attributes might be added. If you write code that - calls this action, we recommend that you structure your code so that it - can handle new attributes gracefully. - - The following attributes are supported: - - Warning: - The `ApproximateNumberOfMessagesDelayed`, - `ApproximateNumberOfMessagesNotVisible`, and - `ApproximateNumberOfMessages` metrics may not achieve consistency until - at least 1 minute after the producers stop sending messages. This period - is required for the queue metadata to reach eventual consistency. - - - `All` -- Returns all values. - - - `ApproximateNumberOfMessages` -- Returns the approximate number of - messages available for retrieval from the queue. - - - `ApproximateNumberOfMessagesDelayed` -- Returns the approximate number - of messages in the queue that are delayed and not available for - reading immediately. This can happen when the queue is configured as a - delay queue or when a message has been sent with a delay parameter. - - - `ApproximateNumberOfMessagesNotVisible` -- Returns the approximate - number of messages that are in flight. Messages are considered to be - *in flight* if they have been sent to a client but have not yet been - deleted or have not yet reached the end of their visibility window. - - - `CreatedTimestamp` -- Returns the time when the queue was created in - seconds ([epoch time](http://en.wikipedia.org/wiki/Unix_time)). - - - `DelaySeconds` -- Returns the default delay on the queue in seconds. - - - `LastModifiedTimestamp` -- Returns the time when the queue was last - changed in seconds ([epoch - time](http://en.wikipedia.org/wiki/Unix_time)). - - - `MaximumMessageSize` -- Returns the limit of how many bytes a message - can contain before Amazon SQS rejects it. - - - `MessageRetentionPeriod` -- Returns the length of time, in seconds, - for which Amazon SQS retains a message. When you change a queue's - attributes, the change can take up to 60 seconds for most of the - attributes to propagate throughout the Amazon SQS system. Changes made - to the `MessageRetentionPeriod` attribute can take up to 15 minutes - and will impact existing messages in the queue potentially causing - them to be expired and deleted if the `MessageRetentionPeriod` is - reduced below the age of existing messages. - - - `Policy` -- Returns the policy of the queue. - - - `QueueArn` -- Returns the Amazon resource name (ARN) of the queue. - - - `ReceiveMessageWaitTimeSeconds` -- Returns the length of time, in - seconds, for which the `ReceiveMessage` action waits for a message to - arrive. - - - `VisibilityTimeout` -- Returns the visibility timeout for the queue. - For more information about the visibility timeout, see [Visibility - Timeout](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) - in the *Amazon SQS Developer Guide*. - - The following attributes apply only to [dead-letter - queues:](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) - - - `RedrivePolicy` -- The string that includes the parameters for the - dead-letter queue functionality of the source queue as a JSON object. - The parameters are as follows: - - - `deadLetterTargetArn` -- The Amazon Resource Name (ARN) of the - dead-letter queue to which Amazon SQS moves messages after the value - of `maxReceiveCount` is exceeded. - - - `maxReceiveCount` -- The number of times a message is delivered to - the source queue before being moved to the dead-letter queue. - Default: 10. When the `ReceiveCount` for a message exceeds the - `maxReceiveCount` for a queue, Amazon SQS moves the message to the - dead-letter-queue. - - - `RedriveAllowPolicy` -- The string that includes the parameters for - the permissions for the dead-letter queue redrive permission and which - source queues can specify dead-letter queues as a JSON object. The - parameters are as follows: - - - `redrivePermission` -- The permission type that defines which source - queues can specify the current queue as the dead-letter queue. Valid - values are: - - - `allowAll` -- (Default) Any source queues in this Amazon Web - Services account in the same Region can specify this queue as the - dead-letter queue. - - - `denyAll` -- No source queues can specify this queue as the - dead-letter queue. - - - `byQueue` -- Only queues specified by the `sourceQueueArns` - parameter can specify this queue as the dead-letter queue. - - - `sourceQueueArns` -- The Amazon Resource Names (ARN)s of the source - queues that can specify this queue as the dead-letter queue and - redrive messages. You can specify this parameter only when the - `redrivePermission` parameter is set to `byQueue`. You can specify - up to 10 source queue ARNs. To allow more than 10 source queues to - specify dead-letter queues, set the `redrivePermission` parameter to - `allowAll`. - - Note: - The dead-letter queue of a FIFO queue must also be a FIFO queue. - Similarly, the dead-letter queue of a standard queue must also be a - standard queue. + Note: + The dead-letter queue of a FIFO queue must also be a FIFO queue. + Similarly, the dead-letter queue of a standard queue must also be a + standard queue. The following attributes apply only to [server-side-encryption](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html): - - `KmsMasterKeyId` -- Returns the ID of an Amazon Web Services managed - customer master key (CMK) for Amazon SQS or a custom CMK. For more - information, see [Key + - `KmsMasterKeyId` -- The ID of an Amazon Web Services managed customer + master key (CMK) for Amazon SQS or a custom CMK. For more information, + see [Key Terms](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms). + While the alias of the Amazon Web Services managed CMK for Amazon SQS + is always `alias/aws/sqs`, the alias of a custom CMK can, for example, + be `alias/`*`MyAlias`*` `. For more examples, see + [KeyId](https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters) + in the *Key Management Service API Reference*. - - `KmsDataKeyReusePeriodSeconds` -- Returns the length of time, in - seconds, for which Amazon SQS can reuse a data key to encrypt or - decrypt messages before calling KMS again. For more information, see - [How Does the Data Key Reuse Period - Work?](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). + - `KmsDataKeyReusePeriodSeconds` -- The length of time, in seconds, for + which Amazon SQS can reuse a [data + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys) + to encrypt or decrypt messages before calling KMS again. An integer + representing seconds, between 60 seconds (1 minute) and 86,400 seconds + (24 hours). Default: 300 (5 minutes). A shorter time period provides + better security but results in more calls to KMS which might incur + charges after Free Tier. For more information, see [How Does the Data + Key Reuse Period + Work?](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work) - - `SqsManagedSseEnabled` -- Returns information about whether the queue - is using SSE-SQS encryption using SQS owned encryption keys. Only one - server-side encryption option is supported per queue (for example, + - `SqsManagedSseEnabled` -- Enables server-side queue encryption using + SQS owned encryption keys. Only one server-side encryption option is + supported per queue (for example, [SSE-KMS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) or [SSE-SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html)). @@ -781,21 +745,48 @@ class GetQueueAttributesInput(_SerdeShape): The following attributes apply only to [FIFO (first-in-first-out) queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): - - `FifoQueue` -- Returns information about whether the queue is FIFO. + - `FifoQueue` -- Designates a queue as FIFO. Valid values are `true` and + `false`. If you don't specify the `FifoQueue` attribute, Amazon SQS + creates a standard queue. You can provide this attribute only during + queue creation. You can't change it for an existing queue. When you + set this attribute, you must also provide the `MessageGroupId` for + your messages explicitly. + For more information, see [FIFO queue logic](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html) in the *Amazon SQS Developer Guide*. - Note: - To determine whether a queue is - [FIFO](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html), - you can check whether `QueueName` ends with the `.fifo` suffix. - - - `ContentBasedDeduplication` -- Returns whether content-based - deduplication is enabled for the queue. For more information, see + - `ContentBasedDeduplication` -- Enables content-based deduplication. + Valid values are `true` and `false`. For more information, see [Exactly-once processing](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html) - in the *Amazon SQS Developer Guide*. + in the *Amazon SQS Developer Guide*. Note the following: + + - Every message must have a unique `MessageDeduplicationId`. + + - You may provide a `MessageDeduplicationId` explicitly. + + - If you aren't able to provide a `MessageDeduplicationId` and you + enable `ContentBasedDeduplication` for your queue, Amazon SQS uses + a SHA-256 hash to generate the `MessageDeduplicationId` using the + body of the message (but not the attributes of the message). + + - If you don't provide a `MessageDeduplicationId` and the queue + doesn't have `ContentBasedDeduplication` set, the action fails + with an error. + + - If the queue has `ContentBasedDeduplication` set, your + `MessageDeduplicationId` overrides the generated one. + + - When `ContentBasedDeduplication` is in effect, messages with + identical content sent within the deduplication interval are treated + as duplicates and only one copy of the message is delivered. + + - If you send one message with `ContentBasedDeduplication` enabled and + then another message with a `MessageDeduplicationId` that is the + same as the one generated for the first `MessageDeduplicationId`, + the two messages are treated as duplicates and only one copy of the + message is delivered. The following attributes apply only to [high throughput for FIFO queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html): @@ -824,13 +815,45 @@ class GetQueueAttributesInput(_SerdeShape): messages](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html) in the *Amazon SQS Developer Guide*. """ + tags: Mapping[str, str] | None + """ + Add cost allocation tags to the specified Amazon SQS queue. For an + overview, see [Tagging Your Amazon SQS + Queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) + in the *Amazon SQS Developer Guide*. + + When you use queue tags, keep the following guidelines in mind: + + - Adding more than 50 tags to a queue isn't recommended. + + - Tags don't have any semantic meaning. Amazon SQS interprets tags as + character strings. + + - Tags are case-sensitive. + + - A new tag with a key identical to that of an existing tag overwrites + the existing tag. + + For a full list of tag restrictions, see [Quotas related to + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-limits.html#limits-queues) + in the *Amazon SQS Developer Guide*. + + Note: + To be able to tag a queue on creation, you must have the + `sqs:CreateQueue` and `sqs:TagQueue` permissions. + + Cross-account permissions don't apply to this action. For more + information, see [Grant cross-account permissions to a role and a + username](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) + in the *Amazon SQS Developer Guide*. + """ @dataclass(kw_only=True) -class GetQueueAttributesOutput(_SerdeShape): - """A list of returned queue attributes.""" +class CreateQueueOutput(_SerdeShape): + """Returns the `QueueUrl` attribute of the created queue.""" - attributes: dict[str, str] | None = ... - """A map of attributes to their respective values.""" + queue_url: str | None = ... + """The URL of the created Amazon SQS queue.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -840,72 +863,44 @@ class GetQueueAttributesOutput(_SerdeShape): """ @dataclass(kw_only=True) -class GetQueueUrlInput(_SerdeShape): - """ - Retrieves the URL of an existing queue based on its name and, - optionally, the Amazon Web Services account ID. +class DeleteMessageBatchInput(_SerdeShape): + """""" + + queue_url: str | None = ... """ + The URL of the Amazon SQS queue from which messages are deleted. - queue_name: str | None = ... - """ - (Required) The name of the queue for which you want to fetch the URL. - The name can be up to 80 characters long and can include alphanumeric - characters, hyphens (-), and underscores (_). Queue URLs and names are - case-sensitive. - """ - queue_owner_aws_account_id: str | None = ... - """ - (Optional) The Amazon Web Services account ID of the account that - created the queue. This is only required when you are attempting to - access a queue owned by another Amazon Web Services account. + Queue URLs and names are case-sensitive. """ + entries: list[DeleteMessageBatchRequestEntry] | None = ... + """Lists the receipt handles for the messages to be deleted.""" -@dataclass(kw_only=True) -class GetQueueUrlOutput(_SerdeShape): - """ - For more information, see [Interpreting - Responses](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-api-responses.html) - in the *Amazon SQS Developer Guide*. - """ +class DeleteMessageBatchInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMessageBatchInput`.""" - queue_url: str | None = ... - """The URL of the queue.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + queue_url: Required[str] """ + The URL of the Amazon SQS queue from which messages are deleted. -@dataclass(kw_only=True) -class InvalidAddress(ServiceError, _SerdeShape): - """The specified ID is invalid.""" - - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Queue URLs and names are case-sensitive. """ + entries: Required[ + Sequence[DeleteMessageBatchRequestEntry | DeleteMessageBatchRequestEntryDict] + ] + """Lists the receipt handles for the messages to be deleted.""" @dataclass(kw_only=True) -class InvalidAttributeName(ServiceError, _SerdeShape): - """The specified attribute doesn't exist.""" - - response_metadata: ResponseMetadata = ... +class DeleteMessageBatchOutput(_SerdeShape): """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + For each message in the batch, the response contains a + ` ``DeleteMessageBatchResultEntry`` ` tag if the message is deleted or a + ` ``BatchResultErrorEntry`` ` tag if the message can't be deleted. """ -@dataclass(kw_only=True) -class InvalidAttributeValue(ServiceError, _SerdeShape): - """A queue attribute value is invalid.""" - + successful: list[DeleteMessageBatchResultEntry] + """A list of ` ``DeleteMessageBatchResultEntry`` ` items.""" + failed: list[BatchResultErrorEntry] + """A list of ` ``BatchResultErrorEntry`` ` items.""" response_metadata: ResponseMetadata = ... """ Metadata about the response that produced this output. Use this to @@ -915,107 +910,75 @@ class InvalidAttributeValue(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class InvalidBatchEntryId(ServiceError, _SerdeShape): - """ - The `Id` of a batch entry in a batch request doesn't abide by the - specification. - """ +class DeleteMessageBatchRequestEntry(_SerdeShape): + """Encloses a receipt handle and an identifier for it.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + id: str """ + The identifier for this particular receipt handle. This is used to + communicate the result. -@dataclass(kw_only=True) -class InvalidIdFormat(ServiceError, _SerdeShape): - """The specified receipt handle isn't valid for the current version.""" + Note: + The `Id`s of a batch request need to be unique within a request. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + This identifier can have up to 80 characters. The following characters + are accepted: alphanumeric characters, hyphens(-), and underscores (_). """ + receipt_handle: str + """A receipt handle.""" -@dataclass(kw_only=True) -class InvalidMessageContents(ServiceError, _SerdeShape): - """The message contains characters outside the allowed set.""" +class DeleteMessageBatchRequestEntryDict(TypedDict, total=False): + """Dictionary form of `DeleteMessageBatchRequestEntry`.""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + id: Required[str] """ + The identifier for this particular receipt handle. This is used to + communicate the result. -@dataclass(kw_only=True) -class InvalidSecurity(ServiceError, _SerdeShape): - """The request was not made over HTTPS or did not use SigV4 for signing.""" + Note: + The `Id`s of a batch request need to be unique within a request. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + This identifier can have up to 80 characters. The following characters + are accepted: alphanumeric characters, hyphens(-), and underscores (_). """ + receipt_handle: Required[str] + """A receipt handle.""" @dataclass(kw_only=True) -class KmsAccessDenied(ServiceError, _SerdeShape): - """The caller doesn't have the required KMS access.""" +class DeleteMessageBatchResultEntry(_SerdeShape): + """Encloses the `Id` of an entry in ` ``DeleteMessageBatch``.`""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + id: str + """Represents a successfully deleted message.""" @dataclass(kw_only=True) -class KmsDisabled(ServiceError, _SerdeShape): - """The request was denied due to request throttling.""" +class DeleteMessageInput(_SerdeShape): + """""" - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + queue_url: str | None = ... """ + The URL of the Amazon SQS queue from which messages are deleted. -@dataclass(kw_only=True) -class KmsInvalidKeyUsage(ServiceError, _SerdeShape): + Queue URLs and names are case-sensitive. """ - The request was rejected for one of the following reasons: + receipt_handle: str | None = ... + """The receipt handle associated with the message to delete.""" - - The KeyUsage value of the KMS key is incompatible with the API - operation. +class DeleteMessageInputDict(TypedDict, total=False): + """Dictionary form of `DeleteMessageInput`.""" - - The encryption algorithm or signing algorithm specified for the - operation is incompatible with the type of key material in the KMS key - (KeySpec). + queue_url: Required[str] """ + The URL of the Amazon SQS queue from which messages are deleted. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + Queue URLs and names are case-sensitive. """ + receipt_handle: Required[str] + """The receipt handle associated with the message to delete.""" @dataclass(kw_only=True) -class KmsInvalidState(ServiceError, _SerdeShape): - """ - The request was rejected because the state of the specified resource is - not valid for this request. - """ +class DeleteMessageOutput(_SerdeShape): + """Dataclass for DeleteMessageOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -1026,26 +989,29 @@ class KmsInvalidState(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class KmsNotFound(ServiceError, _SerdeShape): +class DeleteQueueInput(_SerdeShape): + """""" + + queue_url: str | None = ... """ - The request was rejected because the specified entity or resource could - not be found. + The URL of the Amazon SQS queue to delete. + + Queue URLs and names are case-sensitive. """ - response_metadata: ResponseMetadata = ... +class DeleteQueueInputDict(TypedDict, total=False): + """Dictionary form of `DeleteQueueInput`.""" + + queue_url: Required[str] """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The URL of the Amazon SQS queue to delete. + + Queue URLs and names are case-sensitive. """ @dataclass(kw_only=True) -class KmsOptInRequired(ServiceError, _SerdeShape): - """ - The request was rejected because the specified key policy isn't - syntactically or semantically correct. - """ +class DeleteQueueOutput(_SerdeShape): + """Dataclass for DeleteQueueOutput structure.""" response_metadata: ResponseMetadata = ... """ @@ -1056,8 +1022,8 @@ class KmsOptInRequired(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class KmsThrottled(ServiceError, _SerdeShape): - """Amazon Web Services KMS throttles requests for the following conditions.""" +class EmptyBatchRequest(ServiceError, _SerdeShape): + """The batch request doesn't contain any entries.""" response_metadata: ResponseMetadata = ... """ @@ -1068,57 +1034,741 @@ class KmsThrottled(ServiceError, _SerdeShape): """ @dataclass(kw_only=True) -class ListDeadLetterSourceQueuesInput(_SerdeShape): +class GetQueueAttributesInput(_SerdeShape): """""" queue_url: str | None = ... """ - The URL of a dead-letter queue. + The URL of the Amazon SQS queue whose attribute information is + retrieved. Queue URLs and names are case-sensitive. """ - next_token: str | None = ... - """Pagination token to request the next set of results.""" - max_results: int | None = ... - """ - Maximum number of results to include in the response. Value range is 1 - to 1000. You must set `MaxResults` to receive a value for `NextToken` in - the response. + attribute_names: list[str] | None = ... """ + A list of attributes for which to retrieve information. -@dataclass(kw_only=True) -class ListDeadLetterSourceQueuesOutput(_SerdeShape): - """A list of your dead letter source queues.""" + The `AttributeNames` parameter is optional, but if you don't specify + values for this parameter, the request returns empty results. - queue_urls: list[str] - """ - A list of source queue URLs that have the `RedrivePolicy` queue - attribute configured with a dead-letter queue. - """ - next_token: str | None = ... - """ - Pagination token to include in the next request. Token value is `null` - if there are no additional results to request, or if you did not set - `MaxResults` in the request. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + Note: + In the future, new attributes might be added. If you write code that + calls this action, we recommend that you structure your code so that it + can handle new attributes gracefully. -@dataclass(kw_only=True) -class ListMessageMoveTasksInput(_SerdeShape): - """Dataclass for ListMessageMoveTasksInput structure.""" + The following attributes are supported: - source_arn: str | None = ... - """The ARN of the queue whose message movement tasks are to be listed.""" - max_results: int | None = ... - """ - The maximum number of results to include in the response. The default is - 1, which provides the most recent message movement task. The upper limit + Warning: + The `ApproximateNumberOfMessagesDelayed`, + `ApproximateNumberOfMessagesNotVisible`, and + `ApproximateNumberOfMessages` metrics may not achieve consistency until + at least 1 minute after the producers stop sending messages. This period + is required for the queue metadata to reach eventual consistency. + + - `All` -- Returns all values. + + - `ApproximateNumberOfMessages` -- Returns the approximate number of + messages available for retrieval from the queue. + + - `ApproximateNumberOfMessagesDelayed` -- Returns the approximate number + of messages in the queue that are delayed and not available for + reading immediately. This can happen when the queue is configured as a + delay queue or when a message has been sent with a delay parameter. + + - `ApproximateNumberOfMessagesNotVisible` -- Returns the approximate + number of messages that are in flight. Messages are considered to be + *in flight* if they have been sent to a client but have not yet been + deleted or have not yet reached the end of their visibility window. + + - `CreatedTimestamp` -- Returns the time when the queue was created in + seconds ([epoch time](http://en.wikipedia.org/wiki/Unix_time)). + + - `DelaySeconds` -- Returns the default delay on the queue in seconds. + + - `LastModifiedTimestamp` -- Returns the time when the queue was last + changed in seconds ([epoch + time](http://en.wikipedia.org/wiki/Unix_time)). + + - `MaximumMessageSize` -- Returns the limit of how many bytes a message + can contain before Amazon SQS rejects it. + + - `MessageRetentionPeriod` -- Returns the length of time, in seconds, + for which Amazon SQS retains a message. When you change a queue's + attributes, the change can take up to 60 seconds for most of the + attributes to propagate throughout the Amazon SQS system. Changes made + to the `MessageRetentionPeriod` attribute can take up to 15 minutes + and will impact existing messages in the queue potentially causing + them to be expired and deleted if the `MessageRetentionPeriod` is + reduced below the age of existing messages. + + - `Policy` -- Returns the policy of the queue. + + - `QueueArn` -- Returns the Amazon resource name (ARN) of the queue. + + - `ReceiveMessageWaitTimeSeconds` -- Returns the length of time, in + seconds, for which the `ReceiveMessage` action waits for a message to + arrive. + + - `VisibilityTimeout` -- Returns the visibility timeout for the queue. + For more information about the visibility timeout, see [Visibility + Timeout](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + in the *Amazon SQS Developer Guide*. + + The following attributes apply only to [dead-letter + queues:](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + + - `RedrivePolicy` -- The string that includes the parameters for the + dead-letter queue functionality of the source queue as a JSON object. + The parameters are as follows: + + - `deadLetterTargetArn` -- The Amazon Resource Name (ARN) of the + dead-letter queue to which Amazon SQS moves messages after the value + of `maxReceiveCount` is exceeded. + + - `maxReceiveCount` -- The number of times a message is delivered to + the source queue before being moved to the dead-letter queue. + Default: 10. When the `ReceiveCount` for a message exceeds the + `maxReceiveCount` for a queue, Amazon SQS moves the message to the + dead-letter-queue. + + - `RedriveAllowPolicy` -- The string that includes the parameters for + the permissions for the dead-letter queue redrive permission and which + source queues can specify dead-letter queues as a JSON object. The + parameters are as follows: + + - `redrivePermission` -- The permission type that defines which source + queues can specify the current queue as the dead-letter queue. Valid + values are: + + - `allowAll` -- (Default) Any source queues in this Amazon Web + Services account in the same Region can specify this queue as the + dead-letter queue. + + - `denyAll` -- No source queues can specify this queue as the + dead-letter queue. + + - `byQueue` -- Only queues specified by the `sourceQueueArns` + parameter can specify this queue as the dead-letter queue. + + - `sourceQueueArns` -- The Amazon Resource Names (ARN)s of the source + queues that can specify this queue as the dead-letter queue and + redrive messages. You can specify this parameter only when the + `redrivePermission` parameter is set to `byQueue`. You can specify + up to 10 source queue ARNs. To allow more than 10 source queues to + specify dead-letter queues, set the `redrivePermission` parameter to + `allowAll`. + + Note: + The dead-letter queue of a FIFO queue must also be a FIFO queue. + Similarly, the dead-letter queue of a standard queue must also be a + standard queue. + + The following attributes apply only to + [server-side-encryption](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html): + + - `KmsMasterKeyId` -- Returns the ID of an Amazon Web Services managed + customer master key (CMK) for Amazon SQS or a custom CMK. For more + information, see [Key + Terms](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms). + + - `KmsDataKeyReusePeriodSeconds` -- Returns the length of time, in + seconds, for which Amazon SQS can reuse a data key to encrypt or + decrypt messages before calling KMS again. For more information, see + [How Does the Data Key Reuse Period + Work?](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). + + - `SqsManagedSseEnabled` -- Returns information about whether the queue + is using SSE-SQS encryption using SQS owned encryption keys. Only one + server-side encryption option is supported per queue (for example, + [SSE-KMS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + or + [SSE-SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html)). + + The following attributes apply only to [FIFO (first-in-first-out) + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): + + - `FifoQueue` -- Returns information about whether the queue is FIFO. + For more information, see [FIFO queue + logic](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html) + in the *Amazon SQS Developer Guide*. + + Note: + To determine whether a queue is + [FIFO](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html), + you can check whether `QueueName` ends with the `.fifo` suffix. + + - `ContentBasedDeduplication` -- Returns whether content-based + deduplication is enabled for the queue. For more information, see + [Exactly-once + processing](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html) + in the *Amazon SQS Developer Guide*. + + The following attributes apply only to [high throughput for FIFO + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html): + + - `DeduplicationScope` -- Specifies whether message deduplication occurs + at the message group or queue level. Valid values are `messageGroup` + and `queue`. + + - `FifoThroughputLimit` -- Specifies whether the FIFO queue throughput + quota applies to the entire queue or per message group. Valid values + are `perQueue` and `perMessageGroupId`. The `perMessageGroupId` value + is allowed only when the value for `DeduplicationScope` is + `messageGroup`. + + To enable high throughput for FIFO queues, do the following: + + - Set `DeduplicationScope` to `messageGroup`. + + - Set `FifoThroughputLimit` to `perMessageGroupId`. + + If you set these attributes to anything other than the values shown for + enabling high throughput, normal throughput is in effect and + deduplication occurs as specified. + + For information on throughput quotas, see [Quotas related to + messages](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html) + in the *Amazon SQS Developer Guide*. + """ + +class GetQueueAttributesInputDict(TypedDict, total=False): + """Dictionary form of `GetQueueAttributesInput`.""" + + queue_url: Required[str] + """ + The URL of the Amazon SQS queue whose attribute information is + retrieved. + + Queue URLs and names are case-sensitive. + """ + attribute_names: Sequence[str] | None + """ + A list of attributes for which to retrieve information. + + The `AttributeNames` parameter is optional, but if you don't specify + values for this parameter, the request returns empty results. + + Note: + In the future, new attributes might be added. If you write code that + calls this action, we recommend that you structure your code so that it + can handle new attributes gracefully. + + The following attributes are supported: + + Warning: + The `ApproximateNumberOfMessagesDelayed`, + `ApproximateNumberOfMessagesNotVisible`, and + `ApproximateNumberOfMessages` metrics may not achieve consistency until + at least 1 minute after the producers stop sending messages. This period + is required for the queue metadata to reach eventual consistency. + + - `All` -- Returns all values. + + - `ApproximateNumberOfMessages` -- Returns the approximate number of + messages available for retrieval from the queue. + + - `ApproximateNumberOfMessagesDelayed` -- Returns the approximate number + of messages in the queue that are delayed and not available for + reading immediately. This can happen when the queue is configured as a + delay queue or when a message has been sent with a delay parameter. + + - `ApproximateNumberOfMessagesNotVisible` -- Returns the approximate + number of messages that are in flight. Messages are considered to be + *in flight* if they have been sent to a client but have not yet been + deleted or have not yet reached the end of their visibility window. + + - `CreatedTimestamp` -- Returns the time when the queue was created in + seconds ([epoch time](http://en.wikipedia.org/wiki/Unix_time)). + + - `DelaySeconds` -- Returns the default delay on the queue in seconds. + + - `LastModifiedTimestamp` -- Returns the time when the queue was last + changed in seconds ([epoch + time](http://en.wikipedia.org/wiki/Unix_time)). + + - `MaximumMessageSize` -- Returns the limit of how many bytes a message + can contain before Amazon SQS rejects it. + + - `MessageRetentionPeriod` -- Returns the length of time, in seconds, + for which Amazon SQS retains a message. When you change a queue's + attributes, the change can take up to 60 seconds for most of the + attributes to propagate throughout the Amazon SQS system. Changes made + to the `MessageRetentionPeriod` attribute can take up to 15 minutes + and will impact existing messages in the queue potentially causing + them to be expired and deleted if the `MessageRetentionPeriod` is + reduced below the age of existing messages. + + - `Policy` -- Returns the policy of the queue. + + - `QueueArn` -- Returns the Amazon resource name (ARN) of the queue. + + - `ReceiveMessageWaitTimeSeconds` -- Returns the length of time, in + seconds, for which the `ReceiveMessage` action waits for a message to + arrive. + + - `VisibilityTimeout` -- Returns the visibility timeout for the queue. + For more information about the visibility timeout, see [Visibility + Timeout](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + in the *Amazon SQS Developer Guide*. + + The following attributes apply only to [dead-letter + queues:](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + + - `RedrivePolicy` -- The string that includes the parameters for the + dead-letter queue functionality of the source queue as a JSON object. + The parameters are as follows: + + - `deadLetterTargetArn` -- The Amazon Resource Name (ARN) of the + dead-letter queue to which Amazon SQS moves messages after the value + of `maxReceiveCount` is exceeded. + + - `maxReceiveCount` -- The number of times a message is delivered to + the source queue before being moved to the dead-letter queue. + Default: 10. When the `ReceiveCount` for a message exceeds the + `maxReceiveCount` for a queue, Amazon SQS moves the message to the + dead-letter-queue. + + - `RedriveAllowPolicy` -- The string that includes the parameters for + the permissions for the dead-letter queue redrive permission and which + source queues can specify dead-letter queues as a JSON object. The + parameters are as follows: + + - `redrivePermission` -- The permission type that defines which source + queues can specify the current queue as the dead-letter queue. Valid + values are: + + - `allowAll` -- (Default) Any source queues in this Amazon Web + Services account in the same Region can specify this queue as the + dead-letter queue. + + - `denyAll` -- No source queues can specify this queue as the + dead-letter queue. + + - `byQueue` -- Only queues specified by the `sourceQueueArns` + parameter can specify this queue as the dead-letter queue. + + - `sourceQueueArns` -- The Amazon Resource Names (ARN)s of the source + queues that can specify this queue as the dead-letter queue and + redrive messages. You can specify this parameter only when the + `redrivePermission` parameter is set to `byQueue`. You can specify + up to 10 source queue ARNs. To allow more than 10 source queues to + specify dead-letter queues, set the `redrivePermission` parameter to + `allowAll`. + + Note: + The dead-letter queue of a FIFO queue must also be a FIFO queue. + Similarly, the dead-letter queue of a standard queue must also be a + standard queue. + + The following attributes apply only to + [server-side-encryption](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html): + + - `KmsMasterKeyId` -- Returns the ID of an Amazon Web Services managed + customer master key (CMK) for Amazon SQS or a custom CMK. For more + information, see [Key + Terms](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms). + + - `KmsDataKeyReusePeriodSeconds` -- Returns the length of time, in + seconds, for which Amazon SQS can reuse a data key to encrypt or + decrypt messages before calling KMS again. For more information, see + [How Does the Data Key Reuse Period + Work?](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). + + - `SqsManagedSseEnabled` -- Returns information about whether the queue + is using SSE-SQS encryption using SQS owned encryption keys. Only one + server-side encryption option is supported per queue (for example, + [SSE-KMS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + or + [SSE-SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html)). + + The following attributes apply only to [FIFO (first-in-first-out) + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): + + - `FifoQueue` -- Returns information about whether the queue is FIFO. + For more information, see [FIFO queue + logic](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html) + in the *Amazon SQS Developer Guide*. + + Note: + To determine whether a queue is + [FIFO](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html), + you can check whether `QueueName` ends with the `.fifo` suffix. + + - `ContentBasedDeduplication` -- Returns whether content-based + deduplication is enabled for the queue. For more information, see + [Exactly-once + processing](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html) + in the *Amazon SQS Developer Guide*. + + The following attributes apply only to [high throughput for FIFO + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html): + + - `DeduplicationScope` -- Specifies whether message deduplication occurs + at the message group or queue level. Valid values are `messageGroup` + and `queue`. + + - `FifoThroughputLimit` -- Specifies whether the FIFO queue throughput + quota applies to the entire queue or per message group. Valid values + are `perQueue` and `perMessageGroupId`. The `perMessageGroupId` value + is allowed only when the value for `DeduplicationScope` is + `messageGroup`. + + To enable high throughput for FIFO queues, do the following: + + - Set `DeduplicationScope` to `messageGroup`. + + - Set `FifoThroughputLimit` to `perMessageGroupId`. + + If you set these attributes to anything other than the values shown for + enabling high throughput, normal throughput is in effect and + deduplication occurs as specified. + + For information on throughput quotas, see [Quotas related to + messages](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html) + in the *Amazon SQS Developer Guide*. + """ + +@dataclass(kw_only=True) +class GetQueueAttributesOutput(_SerdeShape): + """A list of returned queue attributes.""" + + attributes: dict[str, str] | None = ... + """A map of attributes to their respective values.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetQueueUrlInput(_SerdeShape): + """ + Retrieves the URL of an existing queue based on its name and, + optionally, the Amazon Web Services account ID. + """ + + queue_name: str | None = ... + """ + (Required) The name of the queue for which you want to fetch the URL. + The name can be up to 80 characters long and can include alphanumeric + characters, hyphens (-), and underscores (_). Queue URLs and names are + case-sensitive. + """ + queue_owner_aws_account_id: str | None = ... + """ + (Optional) The Amazon Web Services account ID of the account that + created the queue. This is only required when you are attempting to + access a queue owned by another Amazon Web Services account. + """ + +class GetQueueUrlInputDict(TypedDict, total=False): + """Dictionary form of `GetQueueUrlInput`.""" + + queue_name: Required[str] + """ + (Required) The name of the queue for which you want to fetch the URL. + The name can be up to 80 characters long and can include alphanumeric + characters, hyphens (-), and underscores (_). Queue URLs and names are + case-sensitive. + """ + queue_owner_aws_account_id: str | None + """ + (Optional) The Amazon Web Services account ID of the account that + created the queue. This is only required when you are attempting to + access a queue owned by another Amazon Web Services account. + """ + +@dataclass(kw_only=True) +class GetQueueUrlOutput(_SerdeShape): + """ + For more information, see [Interpreting + Responses](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-api-responses.html) + in the *Amazon SQS Developer Guide*. + """ + + queue_url: str | None = ... + """The URL of the queue.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidAddress(ServiceError, _SerdeShape): + """The specified ID is invalid.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidAttributeName(ServiceError, _SerdeShape): + """The specified attribute doesn't exist.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidAttributeValue(ServiceError, _SerdeShape): + """A queue attribute value is invalid.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidBatchEntryId(ServiceError, _SerdeShape): + """ + The `Id` of a batch entry in a batch request doesn't abide by the + specification. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidIdFormat(ServiceError, _SerdeShape): + """The specified receipt handle isn't valid for the current version.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidMessageContents(ServiceError, _SerdeShape): + """The message contains characters outside the allowed set.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class InvalidSecurity(ServiceError, _SerdeShape): + """The request was not made over HTTPS or did not use SigV4 for signing.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class KmsAccessDenied(ServiceError, _SerdeShape): + """The caller doesn't have the required KMS access.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class KmsDisabled(ServiceError, _SerdeShape): + """The request was denied due to request throttling.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class KmsInvalidKeyUsage(ServiceError, _SerdeShape): + """ + The request was rejected for one of the following reasons: + + - The KeyUsage value of the KMS key is incompatible with the API + operation. + + - The encryption algorithm or signing algorithm specified for the + operation is incompatible with the type of key material in the KMS key + (KeySpec). + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class KmsInvalidState(ServiceError, _SerdeShape): + """ + The request was rejected because the state of the specified resource is + not valid for this request. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class KmsNotFound(ServiceError, _SerdeShape): + """ + The request was rejected because the specified entity or resource could + not be found. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class KmsOptInRequired(ServiceError, _SerdeShape): + """ + The request was rejected because the specified key policy isn't + syntactically or semantically correct. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class KmsThrottled(ServiceError, _SerdeShape): + """Amazon Web Services KMS throttles requests for the following conditions.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListDeadLetterSourceQueuesInput(_SerdeShape): + """""" + + queue_url: str | None = ... + """ + The URL of a dead-letter queue. + + Queue URLs and names are case-sensitive. + """ + next_token: str | None = ... + """Pagination token to request the next set of results.""" + max_results: int | None = ... + """ + Maximum number of results to include in the response. Value range is 1 + to 1000. You must set `MaxResults` to receive a value for `NextToken` in + the response. + """ + +class ListDeadLetterSourceQueuesInputDict(TypedDict, total=False): + """Dictionary form of `ListDeadLetterSourceQueuesInput`.""" + + queue_url: Required[str] + """ + The URL of a dead-letter queue. + + Queue URLs and names are case-sensitive. + """ + next_token: str | None + """Pagination token to request the next set of results.""" + max_results: int | None + """ + Maximum number of results to include in the response. Value range is 1 + to 1000. You must set `MaxResults` to receive a value for `NextToken` in + the response. + """ + +@dataclass(kw_only=True) +class ListDeadLetterSourceQueuesOutput(_SerdeShape): + """A list of your dead letter source queues.""" + + queue_urls: list[str] + """ + A list of source queue URLs that have the `RedrivePolicy` queue + attribute configured with a dead-letter queue. + """ + next_token: str | None = ... + """ + Pagination token to include in the next request. Token value is `null` + if there are no additional results to request, or if you did not set + `MaxResults` in the request. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ListMessageMoveTasksInput(_SerdeShape): + """Dataclass for ListMessageMoveTasksInput structure.""" + + source_arn: str | None = ... + """The ARN of the queue whose message movement tasks are to be listed.""" + max_results: int | None = ... + """ + The maximum number of results to include in the response. The default is + 1, which provides the most recent message movement task. The upper limit + is 10. + """ + +class ListMessageMoveTasksInputDict(TypedDict, total=False): + """Dictionary form of `ListMessageMoveTasksInput`.""" + + source_arn: Required[str] + """The ARN of the queue whose message movement tasks are to be listed.""" + max_results: int | None + """ + The maximum number of results to include in the response. The default is + 1, which provides the most recent message movement task. The upper limit is 10. """ @@ -1206,6 +1856,25 @@ class ListQueuesInput(_SerdeShape): the response. """ +class ListQueuesInputDict(TypedDict, total=False): + """Dictionary form of `ListQueuesInput`.""" + + queue_name_prefix: str | None + """ + A string to use for filtering the list results. Only those queues whose + name begins with the specified string are returned. + + Queue URLs and names are case-sensitive. + """ + next_token: str | None + """Pagination token to request the next set of results.""" + max_results: int | None + """ + Maximum number of results to include in the response. Value range is 1 + to 1000. You must set `MaxResults` to receive a value for `NextToken` in + the response. + """ + @dataclass(kw_only=True) class ListQueuesOutput(_SerdeShape): """A list of your queues.""" @@ -1236,6 +1905,12 @@ class ListQueueTagsInput(_SerdeShape): queue_url: str | None = ... """The URL of the queue.""" +class ListQueueTagsInputDict(TypedDict, total=False): + """Dictionary form of `ListQueueTagsInput`.""" + + queue_url: Required[str] + """The URL of the queue.""" + @dataclass(kw_only=True) class ListQueueTagsOutput(_SerdeShape): """Dataclass for ListQueueTagsOutput structure.""" @@ -1349,6 +2024,36 @@ class MessageAttributeValue(_SerdeShape): in the *Amazon SQS Developer Guide*. """ +class MessageAttributeValueDict(TypedDict, total=False): + """Dictionary form of `MessageAttributeValue`.""" + + string_value: str | None + """ + Strings are Unicode with UTF-8 binary encoding. For a list of code + values, see [ASCII Printable + Characters](http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + """ + binary_value: bytes | None + """ + Binary type attributes can store any binary data, such as compressed + data, encrypted data, or images. + """ + string_list_values: Sequence[str] | None + """Not implemented. Reserved for future use.""" + binary_list_values: Sequence[bytes] | None + """Not implemented. Reserved for future use.""" + data_type: Required[str] + """ + Amazon SQS supports the following logical data types: `String`, + `Number`, and `Binary`. For the `Number` data type, you must use + `StringValue`. + + You can also append custom labels. For more information, see [Amazon SQS + Message + Attributes](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) + in the *Amazon SQS Developer Guide*. + """ + @dataclass(kw_only=True) class MessageNotInflight(ServiceError, _SerdeShape): """The specified message isn't in flight.""" @@ -1413,6 +2118,36 @@ class MessageSystemAttributeValue(_SerdeShape): in the *Amazon SQS Developer Guide*. """ +class MessageSystemAttributeValueDict(TypedDict, total=False): + """Dictionary form of `MessageSystemAttributeValue`.""" + + string_value: str | None + """ + Strings are Unicode with UTF-8 binary encoding. For a list of code + values, see [ASCII Printable + Characters](http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + """ + binary_value: bytes | None + """ + Binary type attributes can store any binary data, such as compressed + data, encrypted data, or images. + """ + string_list_values: Sequence[str] | None + """Not implemented. Reserved for future use.""" + binary_list_values: Sequence[bytes] | None + """Not implemented. Reserved for future use.""" + data_type: Required[str] + """ + Amazon SQS supports the following logical data types: `String`, + `Number`, and `Binary`. For the `Number` data type, you must use + `StringValue`. + + You can also append custom labels. For more information, see [Amazon SQS + Message + Attributes](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) + in the *Amazon SQS Developer Guide*. + """ + @dataclass(kw_only=True) class OverLimit(ServiceError, _SerdeShape): """ @@ -1446,11 +2181,22 @@ class PurgeQueueInProgress(ServiceError, _SerdeShape): optional. """ -@dataclass(kw_only=True) -class PurgeQueueInput(_SerdeShape): - """""" +@dataclass(kw_only=True) +class PurgeQueueInput(_SerdeShape): + """""" + + queue_url: str | None = ... + """ + The URL of the queue from which the `PurgeQueue` action deletes + messages. + + Queue URLs and names are case-sensitive. + """ + +class PurgeQueueInputDict(TypedDict, total=False): + """Dictionary form of `PurgeQueueInput`.""" - queue_url: str | None = ... + queue_url: Required[str] """ The URL of the queue from which the `PurgeQueue` action deletes messages. @@ -1494,75 +2240,317 @@ class QueueAttributeName(UnknownEnumMixin, StrEnum): REDRIVE_ALLOW_POLICY = "RedriveAllowPolicy" SQS_MANAGED_SSE_ENABLED = "SqsManagedSseEnabled" -@dataclass(kw_only=True) -class QueueDeletedRecently(ServiceError, _SerdeShape): - """ - You must wait 60 seconds after deleting a queue before you can create - another queue with the same name. - """ +@dataclass(kw_only=True) +class QueueDeletedRecently(ServiceError, _SerdeShape): + """ + You must wait 60 seconds after deleting a queue before you can create + another queue with the same name. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class QueueDoesNotExist(ServiceError, _SerdeShape): + """ + Ensure that the `QueueUrl` is correct and that the queue has not been + deleted. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class QueueNameExists(ServiceError, _SerdeShape): + """ + A queue with this name already exists. Amazon SQS returns this error + only if the request includes attributes whose values differ from those + of the existing queue. + """ + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ReceiptHandleIsInvalid(ServiceError, _SerdeShape): + """The specified receipt handle isn't valid.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class ReceiveMessageInput(_SerdeShape): + """Retrieves one or more messages from a specified queue.""" + + queue_url: str | None = ... + """ + The URL of the Amazon SQS queue from which messages are received. + + Queue URLs and names are case-sensitive. + """ + attribute_names: list[str] | None = ... + """ + Warning: + This parameter has been discontinued but will be supported for backward + compatibility. To provide attribute names, you are encouraged to use + `MessageSystemAttributeNames`. + + A list of attributes that need to be returned along with each message. + These attributes include: + + - `All` -- Returns all values. + + - `ApproximateFirstReceiveTimestamp` -- Returns the time the message was + first received from the queue ([epoch + time](http://en.wikipedia.org/wiki/Unix_time) in milliseconds). + + - `ApproximateReceiveCount` -- Returns the number of times a message has + been received across all queues but not deleted. + + - `AWSTraceHeader` -- Returns the X-Ray trace header string. + + - `SenderId` + + - For a user, returns the user ID, for example + `ABCDEFGHI1JKLMNOPQ23R`. + + - For an IAM role, returns the IAM role ID, for example + `ABCDE1F2GH3I4JK5LMNOP:i-a123b456`. + + - `SentTimestamp` -- Returns the time the message was sent to the queue + ([epoch time](http://en.wikipedia.org/wiki/Unix_time) in + milliseconds). + + - `SqsManagedSseEnabled` -- Enables server-side queue encryption using + SQS owned encryption keys. Only one server-side encryption option is + supported per queue (for example, + [SSE-KMS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + or + [SSE-SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html)). + + - `MessageDeduplicationId` -- Returns the value provided by the producer + that calls the ` ``SendMessage`` ` action. + + - `MessageGroupId` -- Returns the value provided by the producer that + calls the ` ``SendMessage`` ` action. + + - `SequenceNumber` -- Returns the value provided by Amazon SQS. + """ + message_system_attribute_names: list[str] | None = ... + """ + A list of attributes that need to be returned along with each message. + These attributes include: + + - `All` -- Returns all values. + + - `ApproximateFirstReceiveTimestamp` -- Returns the time the message was + first received from the queue ([epoch + time](http://en.wikipedia.org/wiki/Unix_time) in milliseconds). + + - `ApproximateReceiveCount` -- Returns the number of times a message has + been received across all queues but not deleted. + + - `AWSTraceHeader` -- Returns the X-Ray trace header string. + + - `SenderId` + + - For a user, returns the user ID, for example + `ABCDEFGHI1JKLMNOPQ23R`. + + - For an IAM role, returns the IAM role ID, for example + `ABCDE1F2GH3I4JK5LMNOP:i-a123b456`. + + - `SentTimestamp` -- Returns the time the message was sent to the queue + ([epoch time](http://en.wikipedia.org/wiki/Unix_time) in + milliseconds). + + - `SqsManagedSseEnabled` -- Enables server-side queue encryption using + SQS owned encryption keys. Only one server-side encryption option is + supported per queue (for example, + [SSE-KMS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + or + [SSE-SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html)). + + - `MessageDeduplicationId` -- Returns the value provided by the producer + that calls the ` ``SendMessage`` ` action. + + - `MessageGroupId` -- Returns the value provided by the producer that + calls the ` ``SendMessage`` ` action. + + - `SequenceNumber` -- Returns the value provided by Amazon SQS. + """ + message_attribute_names: list[str] | None = ... + """ + The name of the message attribute, where *N* is the index. + + - The name can contain alphanumeric characters and the underscore (`_`), + hyphen (`-`), and period (`.`). + + - The name is case-sensitive and must be unique among all attribute + names for the message. + + - The name must not start with AWS-reserved prefixes such as `AWS.` or + `Amazon.` (or any casing variants). + + - The name must not start or end with a period (`.`), and it should not + have periods in succession (`..`). + + - The name can be up to 256 characters long. + + When using `ReceiveMessage`, you can send a list of attribute names to + receive, or you can return all of the attributes by specifying `All` or + `.*` in your request. You can also use all message attributes starting + with a prefix, for example `bar.*`. + """ + max_number_of_messages: int | None = ... + """ + The maximum number of messages to return. Amazon SQS never returns more + messages than this value (however, fewer messages might be returned). + Valid values: 1 to 10. Default: 1. + """ + visibility_timeout: int | None = ... + """ + The duration (in seconds) that the received messages are hidden from + subsequent retrieve requests after being retrieved by a `ReceiveMessage` + request. If not specified, the default visibility timeout for the queue + is used, which is 30 seconds. + + Understanding `VisibilityTimeout`: + + - When a message is received from a queue, it becomes temporarily + invisible to other consumers for the duration of the visibility + timeout. This prevents multiple consumers from processing the same + message simultaneously. If the message is not deleted or its + visibility timeout is not extended before the timeout expires, it + becomes visible again and can be retrieved by other consumers. + + - Setting an appropriate visibility timeout is crucial. If it's too + short, the message might become visible again before processing is + complete, leading to duplicate processing. If it's too long, it + delays the reprocessing of messages if the initial processing fails. + + - You can adjust the visibility timeout using the `--visibility-timeout` + parameter in the `receive-message` command to match the processing + time required by your application. + + - A message that isn't deleted or a message whose visibility isn't + extended before the visibility timeout expires counts as a failed + receive. Depending on the configuration of the queue, the message + might be sent to the dead-letter queue. + + For more information, see [Visibility + Timeout](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + in the *Amazon SQS Developer Guide*. + """ + wait_time_seconds: int | None = ... + """ + The duration (in seconds) for which the call waits for a message to + arrive in the queue before returning. If a message is available, the + call returns sooner than `WaitTimeSeconds`. If no messages are available + and the wait time expires, the call does not return a message list. If + you are using the Java SDK, it returns a `ReceiveMessageResponse` + object, which has a empty list instead of a Null object. + + Warning: + To avoid HTTP errors, ensure that the HTTP response timeout for + `ReceiveMessage` requests is longer than the `WaitTimeSeconds` + parameter. For example, with the Java SDK, you can set HTTP transport + settings using the + [NettyNioAsyncHttpClient](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/nio/netty/NettyNioAsyncHttpClient.html) + for asynchronous clients, or the + [ApacheHttpClient](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.html) + for synchronous clients. + """ + receive_request_attempt_id: str | None = ... + """ + This parameter applies only to FIFO (first-in-first-out) queues. + + The token used for deduplication of `ReceiveMessage` calls. If a + networking issue occurs after a `ReceiveMessage` action, and instead of + a response you receive a generic error, it is possible to retry the same + action with an identical `ReceiveRequestAttemptId` to retrieve the same + set of messages, even if their visibility timeout has not yet expired. + + - You can use `ReceiveRequestAttemptId` only for 5 minutes after a + `ReceiveMessage` action. + + - When you set `FifoQueue`, a caller of the `ReceiveMessage` action can + provide a `ReceiveRequestAttemptId` explicitly. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - It is possible to retry the `ReceiveMessage` action with the same + `ReceiveRequestAttemptId` if none of the messages have been modified + (deleted or had their visibility changes). -@dataclass(kw_only=True) -class QueueDoesNotExist(ServiceError, _SerdeShape): - """ - Ensure that the `QueueUrl` is correct and that the queue has not been - deleted. - """ + - During a visibility timeout, subsequent calls with the same + `ReceiveRequestAttemptId` return the same messages and receipt + handles. If a retry occurs within the deduplication interval, it + resets the visibility timeout. For more information, see [Visibility + Timeout](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + in the *Amazon SQS Developer Guide*. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + Warning: + If a caller of the `ReceiveMessage` action still processes messages + when the visibility timeout expires and messages become visible, + another worker consuming from the same queue can receive the same + messages and therefore process duplicates. Also, if a consumer whose + message processing time is longer than the visibility timeout tries to + delete the processed messages, the action fails with an error. -@dataclass(kw_only=True) -class QueueNameExists(ServiceError, _SerdeShape): - """ - A queue with this name already exists. Amazon SQS returns this error - only if the request includes attributes whose values differ from those - of the existing queue. - """ + To mitigate this effect, ensure that your application observes a safe + threshold before the visibility timeout expires and extend the + visibility timeout as necessary. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. - """ + - While messages with a particular `MessageGroupId` are invisible, no + more messages belonging to the same `MessageGroupId` are returned + until the visibility timeout expires. You can still receive messages + with another `MessageGroupId` from your FIFO queue as long as they are + visible. -@dataclass(kw_only=True) -class ReceiptHandleIsInvalid(ServiceError, _SerdeShape): - """The specified receipt handle isn't valid.""" + - If a caller of `ReceiveMessage` can't track the + `ReceiveRequestAttemptId`, no retries work until the original + visibility timeout expires. As a result, delays might occur but the + messages in the queue remain in a strict order. - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The maximum length of `ReceiveRequestAttemptId` is 128 characters. + `ReceiveRequestAttemptId` can contain alphanumeric characters (`a-z`, + `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ``). + + For best practices of using `ReceiveRequestAttemptId`, see [Using the + ReceiveRequestAttemptId Request + Parameter](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-receiverequestattemptid-request-parameter.html) + in the *Amazon SQS Developer Guide*. """ -@dataclass(kw_only=True) -class ReceiveMessageInput(_SerdeShape): - """Retrieves one or more messages from a specified queue.""" +class ReceiveMessageInputDict(TypedDict, total=False): + """Dictionary form of `ReceiveMessageInput`.""" - queue_url: str | None = ... + queue_url: Required[str] """ The URL of the Amazon SQS queue from which messages are received. Queue URLs and names are case-sensitive. """ - attribute_names: list[str] | None = ... + attribute_names: Sequence[str] | None """ Warning: This parameter has been discontinued but will be supported for backward @@ -1610,7 +2598,7 @@ class ReceiveMessageInput(_SerdeShape): - `SequenceNumber` -- Returns the value provided by Amazon SQS. """ - message_system_attribute_names: list[str] | None = ... + message_system_attribute_names: Sequence[str] | None """ A list of attributes that need to be returned along with each message. These attributes include: @@ -1653,7 +2641,7 @@ class ReceiveMessageInput(_SerdeShape): - `SequenceNumber` -- Returns the value provided by Amazon SQS. """ - message_attribute_names: list[str] | None = ... + message_attribute_names: Sequence[str] | None """ The name of the message attribute, where *N* is the index. @@ -1676,13 +2664,13 @@ class ReceiveMessageInput(_SerdeShape): `.*` in your request. You can also use all message attributes starting with a prefix, for example `bar.*`. """ - max_number_of_messages: int | None = ... + max_number_of_messages: int | None """ The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1. """ - visibility_timeout: int | None = ... + visibility_timeout: int | None """ The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a `ReceiveMessage` @@ -1716,7 +2704,7 @@ class ReceiveMessageInput(_SerdeShape): Timeout](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) in the *Amazon SQS Developer Guide*. """ - wait_time_seconds: int | None = ... + wait_time_seconds: int | None """ The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the @@ -1735,7 +2723,7 @@ class ReceiveMessageInput(_SerdeShape): [ApacheHttpClient](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.html) for synchronous clients. """ - receive_request_attempt_id: str | None = ... + receive_request_attempt_id: str | None """ This parameter applies only to FIFO (first-in-first-out) queues. @@ -1787,7 +2775,7 @@ class ReceiveMessageInput(_SerdeShape): The maximum length of `ReceiveRequestAttemptId` is 128 characters. `ReceiveRequestAttemptId` can contain alphanumeric characters (`a-z`, - `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[]^_`{|}~ ``). + `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ``). For best practices of using `ReceiveRequestAttemptId`, see [Using the ReceiveRequestAttemptId Request @@ -1825,6 +2813,21 @@ class RemovePermissionInput(_SerdeShape): using the ` ``AddPermission`` ` action. """ +class RemovePermissionInputDict(TypedDict, total=False): + """Dictionary form of `RemovePermissionInput`.""" + + queue_url: Required[str] + """ + The URL of the Amazon SQS queue from which permissions are removed. + + Queue URLs and names are case-sensitive. + """ + label: Required[str] + """ + The identification of the permission to remove. This is the label added + using the ` ``AddPermission`` ` action. + """ + @dataclass(kw_only=True) class RemovePermissionOutput(_SerdeShape): """Dataclass for RemovePermissionOutput structure.""" @@ -1859,59 +2862,230 @@ class RequestThrottled(ServiceError, _SerdeShape): optional. """ -@dataclass(kw_only=True) -class ResourceNotFoundException(ServiceError, _SerdeShape): - """One or more specified resources don't exist.""" +@dataclass(kw_only=True) +class ResourceNotFoundException(ServiceError, _SerdeShape): + """One or more specified resources don't exist.""" + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class SendMessageBatchInput(_SerdeShape): + """""" + + queue_url: str | None = ... + """ + The URL of the Amazon SQS queue to which batched messages are sent. + + Queue URLs and names are case-sensitive. + """ + entries: list[SendMessageBatchRequestEntry] | None = ... + """A list of ` ``SendMessageBatchRequestEntry`` ` items.""" + +class SendMessageBatchInputDict(TypedDict, total=False): + """Dictionary form of `SendMessageBatchInput`.""" + + queue_url: Required[str] + """ + The URL of the Amazon SQS queue to which batched messages are sent. + + Queue URLs and names are case-sensitive. + """ + entries: Required[ + Sequence[SendMessageBatchRequestEntry | SendMessageBatchRequestEntryDict] + ] + """A list of ` ``SendMessageBatchRequestEntry`` ` items.""" + +@dataclass(kw_only=True) +class SendMessageBatchOutput(_SerdeShape): + """ + For each message in the batch, the response contains a + ` ``SendMessageBatchResultEntry`` ` tag if the message succeeds or a + ` ``BatchResultErrorEntry`` ` tag if the message fails. + """ + + successful: list[SendMessageBatchResultEntry] + """A list of ` ``SendMessageBatchResultEntry`` ` items.""" + failed: list[BatchResultErrorEntry] + """ + A list of ` ``BatchResultErrorEntry`` ` items with error details about + each message that can't be enqueued. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class SendMessageBatchRequestEntry(_SerdeShape): + """Contains the details of a single Amazon SQS message along with an `Id`.""" + + id: str + """ + An identifier for a message in this batch used to communicate the + result. + + Note: + The `Id`s of a batch request need to be unique within a request. + + This identifier can have up to 80 characters. The following characters + are accepted: alphanumeric characters, hyphens(-), and underscores (_). + """ + message_body: str + """The body of the message.""" + delay_seconds: int | None = ... + """ + The length of time, in seconds, for which a specific message is delayed. + Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive + `DelaySeconds` value become available for processing after the delay + period is finished. If you don't specify a value, the default value for + the queue is applied. + + Note: + When you set `FifoQueue`, you can't set `DelaySeconds` per message. You + can set this parameter only on a queue level. + """ + message_attributes: dict[str, MessageAttributeValue] | None = ... + """ + Each message attribute consists of a `Name`, `Type`, and `Value`. For + more information, see [Amazon SQS message + attributes](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) + in the *Amazon SQS Developer Guide*. + """ + message_system_attributes: dict[str, MessageSystemAttributeValue] | None = ... + """ + The message system attribute to send Each message system attribute + consists of a `Name`, `Type`, and `Value`. + + Warning: + - Currently, the only supported message system attribute is + `AWSTraceHeader`. Its type must be `String` and its value must be a + correctly formatted X-Ray trace header string. + + - The size of a message system attribute doesn't count towards the + total size of a message. + """ + message_deduplication_id: str | None = ... + """ + This parameter applies only to FIFO (first-in-first-out) queues. + + The token used for deduplication of messages within a 5-minute minimum + deduplication interval. If a message with a particular + `MessageDeduplicationId` is sent successfully, subsequent messages with + the same `MessageDeduplicationId` are accepted successfully but aren't + delivered. For more information, see [Exactly-once + processing](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html) + in the *Amazon SQS Developer Guide*. + + - Every message must have a unique `MessageDeduplicationId`, + + - You may provide a `MessageDeduplicationId` explicitly. + + - If you aren't able to provide a `MessageDeduplicationId` and you + enable `ContentBasedDeduplication` for your queue, Amazon SQS uses a + SHA-256 hash to generate the `MessageDeduplicationId` using the body + of the message (but not the attributes of the message). + + - If you don't provide a `MessageDeduplicationId` and the queue + doesn't have `ContentBasedDeduplication` set, the action fails with + an error. + + - If the queue has `ContentBasedDeduplication` set, your + `MessageDeduplicationId` overrides the generated one. + + - When `ContentBasedDeduplication` is in effect, messages with identical + content sent within the deduplication interval are treated as + duplicates and only one copy of the message is delivered. + + - If you send one message with `ContentBasedDeduplication` enabled and + then another message with a `MessageDeduplicationId` that is the same + as the one generated for the first `MessageDeduplicationId`, the two + messages are treated as duplicates and only one copy of the message is + delivered. + + Note: + The `MessageDeduplicationId` is available to the consumer of the message + (this can be useful for troubleshooting delivery issues). + + If a message is sent successfully but the acknowledgement is lost and + the message is resent with the same `MessageDeduplicationId` after the + deduplication interval, Amazon SQS can't detect duplicate messages. - response_metadata: ResponseMetadata = ... + Amazon SQS continues to keep track of the message deduplication ID even + after the message is received and deleted. + + The length of `MessageDeduplicationId` is 128 characters. + `MessageDeduplicationId` can contain alphanumeric characters (`a-z`, + `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ``). + + For best practices of using `MessageDeduplicationId`, see [Using the + MessageDeduplicationId + Property](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html) + in the *Amazon SQS Developer Guide*. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + message_group_id: str | None = ... """ + `MessageGroupId` is an attribute used in Amazon SQS FIFO + (First-In-First-Out) and standard queues. In FIFO queues, + `MessageGroupId` organizes messages into distinct groups. Messages + within the same message group are always processed one at a time, in + strict order, ensuring that no two messages from the same group are + processed simultaneously. In standard queues, using `MessageGroupId` + enables fair queues. It is used to identify the tenant a message belongs + to, helping maintain consistent message dwell time across all tenants + during noisy neighbor events. Unlike FIFO queues, messages with the same + `MessageGroupId` can be processed in parallel, maintaining the high + throughput of standard queues. -@dataclass(kw_only=True) -class SendMessageBatchInput(_SerdeShape): - """""" + - **FIFO queues:** `MessageGroupId` acts as the tag that specifies that + a message belongs to a specific message group. Messages that belong to + the same message group are processed in a FIFO manner (however, + messages in different message groups might be processed out of order). + To interleave multiple ordered streams within a single queue, use + `MessageGroupId` values (for example, session data for multiple + users). In this scenario, multiple consumers can process the queue, + but the session data of each user is processed in a FIFO fashion. - queue_url: str | None = ... - """ - The URL of the Amazon SQS queue to which batched messages are sent. + If you do not provide a `MessageGroupId` when sending a message to a + FIFO queue, the action fails. - Queue URLs and names are case-sensitive. - """ - entries: list[SendMessageBatchRequestEntry] | None = ... - """A list of ` ``SendMessageBatchRequestEntry`` ` items.""" + `ReceiveMessage` might return messages with multiple `MessageGroupId` + values. For each `MessageGroupId`, the messages are sorted by time + sent. -@dataclass(kw_only=True) -class SendMessageBatchOutput(_SerdeShape): - """ - For each message in the batch, the response contains a - ` ``SendMessageBatchResultEntry`` ` tag if the message succeeds or a - ` ``BatchResultErrorEntry`` ` tag if the message fails. - """ + - **Standard queues:**Use `MessageGroupId` in standard queues to enable + fair queues. The `MessageGroupId` identifies the tenant a message + belongs to. A tenant can be any entity that shares a queue with + others, such as your customer, a client application, or a request + type. When one tenant sends a disproportionately large volume of + messages or has messages that require longer processing time, fair + queues ensure other tenants' messages maintain low dwell time. This + preserves quality of service for all tenants while maintaining the + scalability and throughput of standard queues. We recommend that you + include a `MessageGroupId` in all messages when using fair queues. - successful: list[SendMessageBatchResultEntry] - """A list of ` ``SendMessageBatchResultEntry`` ` items.""" - failed: list[BatchResultErrorEntry] - """ - A list of ` ``BatchResultErrorEntry`` ` items with error details about - each message that can't be enqueued. - """ - response_metadata: ResponseMetadata = ... - """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The length of `MessageGroupId` is 128 characters. Valid values: + alphanumeric characters and punctuation + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. + + For best practices of using `MessageGroupId`, see [Using the + MessageGroupId + Property](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagegroupid-property.html) + in the *Amazon SQS Developer Guide*. """ -@dataclass(kw_only=True) -class SendMessageBatchRequestEntry(_SerdeShape): - """Contains the details of a single Amazon SQS message along with an `Id`.""" +class SendMessageBatchRequestEntryDict(TypedDict, total=False): + """Dictionary form of `SendMessageBatchRequestEntry`.""" - id: str + id: Required[str] """ An identifier for a message in this batch used to communicate the result. @@ -1922,9 +3096,9 @@ class SendMessageBatchRequestEntry(_SerdeShape): This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_). """ - message_body: str + message_body: Required[str] """The body of the message.""" - delay_seconds: int | None = ... + delay_seconds: int | None """ The length of time, in seconds, for which a specific message is delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive @@ -1936,14 +3110,19 @@ class SendMessageBatchRequestEntry(_SerdeShape): When you set `FifoQueue`, you can't set `DelaySeconds` per message. You can set this parameter only on a queue level. """ - message_attributes: dict[str, MessageAttributeValue] | None = ... + message_attributes: ( + Mapping[str, MessageAttributeValue | MessageAttributeValueDict] | None + ) """ Each message attribute consists of a `Name`, `Type`, and `Value`. For more information, see [Amazon SQS message attributes](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) in the *Amazon SQS Developer Guide*. """ - message_system_attributes: dict[str, MessageSystemAttributeValue] | None = ... + message_system_attributes: ( + Mapping[str, MessageSystemAttributeValue | MessageSystemAttributeValueDict] + | None + ) """ The message system attribute to send Each message system attribute consists of a `Name`, `Type`, and `Value`. @@ -1956,7 +3135,7 @@ class SendMessageBatchRequestEntry(_SerdeShape): - The size of a message system attribute doesn't count towards the total size of a message. """ - message_deduplication_id: str | None = ... + message_deduplication_id: str | None """ This parameter applies only to FIFO (first-in-first-out) queues. @@ -2007,14 +3186,14 @@ class SendMessageBatchRequestEntry(_SerdeShape): The length of `MessageDeduplicationId` is 128 characters. `MessageDeduplicationId` can contain alphanumeric characters (`a-z`, - `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[]^_`{|}~ ``). + `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ``). For best practices of using `MessageDeduplicationId`, see [Using the MessageDeduplicationId Property](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html) in the *Amazon SQS Developer Guide*. """ - message_group_id: str | None = ... + message_group_id: str | None """ `MessageGroupId` is an attribute used in Amazon SQS FIFO (First-In-First-Out) and standard queues. In FIFO queues, @@ -2057,7 +3236,7 @@ class SendMessageBatchRequestEntry(_SerdeShape): The length of `MessageGroupId` is 128 characters. Valid values: alphanumeric characters and punctuation - `` (!"#$%&'()*+,-./:;<=>?@[]^_`{|}~) ``. + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. For best practices of using `MessageGroupId`, see [Using the MessageGroupId @@ -2104,24 +3283,193 @@ class SendMessageBatchResultEntry(_SerdeShape): """ This parameter applies only to FIFO (first-in-first-out) queues. - The large, non-consecutive number that Amazon SQS assigns to each - message. + The large, non-consecutive number that Amazon SQS assigns to each + message. + + The length of `SequenceNumber` is 128 bits. As `SequenceNumber` + continues to increase for a particular `MessageGroupId`. + """ + +@dataclass(kw_only=True) +class SendMessageInput(_SerdeShape): + """""" + + queue_url: str | None = ... + """ + The URL of the Amazon SQS queue to which a message is sent. + + Queue URLs and names are case-sensitive. + """ + message_body: str | None = ... + """ + The message to send. The minimum size is one character. The maximum size + is 1 MiB or 1,048,576 bytes + + Warning: + A message can include only XML, JSON, and unformatted text. The + following Unicode characters are allowed. For more information, see the + [W3C specification for + characters](http://www.w3.org/TR/REC-xml/#charsets). + + `#x9` | `#xA` | `#xD` | `#x20` to `#xD7FF` | `#xE000` to `#xFFFD` | + `#x10000` to `#x10FFFF` + + If a message contains characters outside the allowed set, Amazon SQS + rejects the message and returns an InvalidMessageContents error. Ensure + that your message body includes only valid characters to avoid this + exception. + """ + delay_seconds: int | None = ... + """ + The length of time, in seconds, for which to delay a specific message. + Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive + `DelaySeconds` value become available for processing after the delay + period is finished. If you don't specify a value, the default value for + the queue applies. + + Note: + When you set `FifoQueue`, you can't set `DelaySeconds` per message. You + can set this parameter only on a queue level. + """ + message_attributes: dict[str, MessageAttributeValue] | None = ... + """ + Each message attribute consists of a `Name`, `Type`, and `Value`. For + more information, see [Amazon SQS message + attributes](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) + in the *Amazon SQS Developer Guide*. + """ + message_system_attributes: dict[str, MessageSystemAttributeValue] | None = ... + """ + The message system attribute to send. Each message system attribute + consists of a `Name`, `Type`, and `Value`. + + Warning: + - Currently, the only supported message system attribute is + `AWSTraceHeader`. Its type must be `String` and its value must be a + correctly formatted X-Ray trace header string. + + - The size of a message system attribute doesn't count towards the + total size of a message. + """ + message_deduplication_id: str | None = ... + """ + This parameter applies only to FIFO (first-in-first-out) queues. + + The token used for deduplication of sent messages. If a message with a + particular `MessageDeduplicationId` is sent successfully, any messages + sent with the same `MessageDeduplicationId` are accepted successfully + but aren't delivered during the 5-minute deduplication interval. For + more information, see [Exactly-once + processing](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html) + in the *Amazon SQS Developer Guide*. + + - Every message must have a unique `MessageDeduplicationId`, + + - You may provide a `MessageDeduplicationId` explicitly. + + - If you aren't able to provide a `MessageDeduplicationId` and you + enable `ContentBasedDeduplication` for your queue, Amazon SQS uses a + SHA-256 hash to generate the `MessageDeduplicationId` using the body + of the message (but not the attributes of the message). + + - If you don't provide a `MessageDeduplicationId` and the queue + doesn't have `ContentBasedDeduplication` set, the action fails with + an error. + + - If the queue has `ContentBasedDeduplication` set, your + `MessageDeduplicationId` overrides the generated one. + + - When `ContentBasedDeduplication` is in effect, messages with identical + content sent within the deduplication interval are treated as + duplicates and only one copy of the message is delivered. + + - If you send one message with `ContentBasedDeduplication` enabled and + then another message with a `MessageDeduplicationId` that is the same + as the one generated for the first `MessageDeduplicationId`, the two + messages are treated as duplicates and only one copy of the message is + delivered. + + Note: + The `MessageDeduplicationId` is available to the consumer of the message + (this can be useful for troubleshooting delivery issues). + + If a message is sent successfully but the acknowledgement is lost and + the message is resent with the same `MessageDeduplicationId` after the + deduplication interval, Amazon SQS can't detect duplicate messages. + + Amazon SQS continues to keep track of the message deduplication ID even + after the message is received and deleted. + + The maximum length of `MessageDeduplicationId` is 128 characters. + `MessageDeduplicationId` can contain alphanumeric characters (`a-z`, + `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ``). + + For best practices of using `MessageDeduplicationId`, see [Using the + MessageDeduplicationId + Property](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html) + in the *Amazon SQS Developer Guide*. + """ + message_group_id: str | None = ... + """ + `MessageGroupId` is an attribute used in Amazon SQS FIFO + (First-In-First-Out) and standard queues. In FIFO queues, + `MessageGroupId` organizes messages into distinct groups. Messages + within the same message group are always processed one at a time, in + strict order, ensuring that no two messages from the same group are + processed simultaneously. In standard queues, using `MessageGroupId` + enables fair queues. It is used to identify the tenant a message belongs + to, helping maintain consistent message dwell time across all tenants + during noisy neighbor events. Unlike FIFO queues, messages with the same + `MessageGroupId` can be processed in parallel, maintaining the high + throughput of standard queues. + + - **FIFO queues:** `MessageGroupId` acts as the tag that specifies that + a message belongs to a specific message group. Messages that belong to + the same message group are processed in a FIFO manner (however, + messages in different message groups might be processed out of order). + To interleave multiple ordered streams within a single queue, use + `MessageGroupId` values (for example, session data for multiple + users). In this scenario, multiple consumers can process the queue, + but the session data of each user is processed in a FIFO fashion. + + If you do not provide a `MessageGroupId` when sending a message to a + FIFO queue, the action fails. + + `ReceiveMessage` might return messages with multiple `MessageGroupId` + values. For each `MessageGroupId`, the messages are sorted by time + sent. + + - **Standard queues:**Use `MessageGroupId` in standard queues to enable + fair queues. The `MessageGroupId` identifies the tenant a message + belongs to. A tenant can be any entity that shares a queue with + others, such as your customer, a client application, or a request + type. When one tenant sends a disproportionately large volume of + messages or has messages that require longer processing time, fair + queues ensure other tenants' messages maintain low dwell time. This + preserves quality of service for all tenants while maintaining the + scalability and throughput of standard queues. We recommend that you + include a `MessageGroupId` in all messages when using fair queues. - The length of `SequenceNumber` is 128 bits. As `SequenceNumber` - continues to increase for a particular `MessageGroupId`. + The length of `MessageGroupId` is 128 characters. Valid values: + alphanumeric characters and punctuation + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. + + For best practices of using `MessageGroupId`, see [Using the + MessageGroupId + Property](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagegroupid-property.html) + in the *Amazon SQS Developer Guide*. """ -@dataclass(kw_only=True) -class SendMessageInput(_SerdeShape): - """""" +class SendMessageInputDict(TypedDict, total=False): + """Dictionary form of `SendMessageInput`.""" - queue_url: str | None = ... + queue_url: Required[str] """ The URL of the Amazon SQS queue to which a message is sent. Queue URLs and names are case-sensitive. """ - message_body: str | None = ... + message_body: Required[str] """ The message to send. The minimum size is one character. The maximum size is 1 MiB or 1,048,576 bytes @@ -2140,7 +3488,7 @@ class SendMessageInput(_SerdeShape): that your message body includes only valid characters to avoid this exception. """ - delay_seconds: int | None = ... + delay_seconds: int | None """ The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive @@ -2152,14 +3500,19 @@ class SendMessageInput(_SerdeShape): When you set `FifoQueue`, you can't set `DelaySeconds` per message. You can set this parameter only on a queue level. """ - message_attributes: dict[str, MessageAttributeValue] | None = ... + message_attributes: ( + Mapping[str, MessageAttributeValue | MessageAttributeValueDict] | None + ) """ Each message attribute consists of a `Name`, `Type`, and `Value`. For more information, see [Amazon SQS message attributes](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) in the *Amazon SQS Developer Guide*. """ - message_system_attributes: dict[str, MessageSystemAttributeValue] | None = ... + message_system_attributes: ( + Mapping[str, MessageSystemAttributeValue | MessageSystemAttributeValueDict] + | None + ) """ The message system attribute to send. Each message system attribute consists of a `Name`, `Type`, and `Value`. @@ -2172,7 +3525,7 @@ class SendMessageInput(_SerdeShape): - The size of a message system attribute doesn't count towards the total size of a message. """ - message_deduplication_id: str | None = ... + message_deduplication_id: str | None """ This parameter applies only to FIFO (first-in-first-out) queues. @@ -2223,14 +3576,14 @@ class SendMessageInput(_SerdeShape): The maximum length of `MessageDeduplicationId` is 128 characters. `MessageDeduplicationId` can contain alphanumeric characters (`a-z`, - `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[]^_`{|}~ ``). + `A-Z`, `0-9`) and punctuation (`` !"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ``). For best practices of using `MessageDeduplicationId`, see [Using the MessageDeduplicationId Property](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html) in the *Amazon SQS Developer Guide*. """ - message_group_id: str | None = ... + message_group_id: str | None """ `MessageGroupId` is an attribute used in Amazon SQS FIFO (First-In-First-Out) and standard queues. In FIFO queues, @@ -2273,7 +3626,7 @@ class SendMessageInput(_SerdeShape): The length of `MessageGroupId` is 128 characters. Valid values: alphanumeric characters and punctuation - `` (!"#$%&'()*+,-./:;<=>?@[]^_`{|}~) ``. + `` (!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~) ``. For best practices of using `MessageGroupId`, see [Using the MessageGroupId @@ -2529,6 +3882,201 @@ class SetQueueAttributesInput(_SerdeShape): in the *Amazon SQS Developer Guide*. """ +class SetQueueAttributesInputDict(TypedDict, total=False): + """Dictionary form of `SetQueueAttributesInput`.""" + + queue_url: Required[str] + """ + The URL of the Amazon SQS queue whose attributes are set. + + Queue URLs and names are case-sensitive. + """ + attributes: Required[Mapping[str, str]] + """ + A map of attributes to set. + + The following lists the names, descriptions, and values of the special + request parameters that the `SetQueueAttributes` action uses: + + - `DelaySeconds` -- The length of time, in seconds, for which the + delivery of all messages in the queue is delayed. Valid values: An + integer from 0 to 900 (15 minutes). Default: 0. + + - `MaximumMessageSize` -- The limit of how many bytes a message can + contain before Amazon SQS rejects it. Valid values: An integer from + 1,024 bytes (1 KiB) up to 1,048,576 bytes (1 MiB). Default: 1,048,576 + bytes (1 MiB). + + - `MessageRetentionPeriod` -- The length of time, in seconds, for which + Amazon SQS retains a message. Valid values: An integer representing + seconds, from 60 (1 minute) to 1,209,600 (14 days). Default: 345,600 + (4 days). When you change a queue's attributes, the change can take + up to 60 seconds for most of the attributes to propagate throughout + the Amazon SQS system. Changes made to the `MessageRetentionPeriod` + attribute can take up to 15 minutes and will impact existing messages + in the queue potentially causing them to be expired and deleted if the + `MessageRetentionPeriod` is reduced below the age of existing + messages. + + - `Policy` -- The queue's policy. A valid Amazon Web Services policy. + For more information about policy structure, see [Overview of Amazon + Web Services IAM + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) + in the *Identity and Access Management User Guide*. + + - `ReceiveMessageWaitTimeSeconds` -- The length of time, in seconds, for + which a ` ``ReceiveMessage`` ` action waits for a message to arrive. + Valid values: An integer from 0 to 20 (seconds). Default: 0. + + - `VisibilityTimeout` -- The visibility timeout for the queue, in + seconds. Valid values: An integer from 0 to 43,200 (12 hours). + Default: 30. For more information about the visibility timeout, see + [Visibility + Timeout](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) + in the *Amazon SQS Developer Guide*. + + The following attributes apply only to [dead-letter + queues:](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + + - `RedrivePolicy` -- The string that includes the parameters for the + dead-letter queue functionality of the source queue as a JSON object. + The parameters are as follows: + + - `deadLetterTargetArn` -- The Amazon Resource Name (ARN) of the + dead-letter queue to which Amazon SQS moves messages after the value + of `maxReceiveCount` is exceeded. + + - `maxReceiveCount` -- The number of times a message is delivered to + the source queue before being moved to the dead-letter queue. + Default: 10. When the `ReceiveCount` for a message exceeds the + `maxReceiveCount` for a queue, Amazon SQS moves the message to the + dead-letter-queue. + + - `RedriveAllowPolicy` -- The string that includes the parameters for + the permissions for the dead-letter queue redrive permission and which + source queues can specify dead-letter queues as a JSON object. The + parameters are as follows: + + - `redrivePermission` -- The permission type that defines which source + queues can specify the current queue as the dead-letter queue. Valid + values are: + + - `allowAll` -- (Default) Any source queues in this Amazon Web + Services account in the same Region can specify this queue as the + dead-letter queue. + + - `denyAll` -- No source queues can specify this queue as the + dead-letter queue. + + - `byQueue` -- Only queues specified by the `sourceQueueArns` + parameter can specify this queue as the dead-letter queue. + + - `sourceQueueArns` -- The Amazon Resource Names (ARN)s of the source + queues that can specify this queue as the dead-letter queue and + redrive messages. You can specify this parameter only when the + `redrivePermission` parameter is set to `byQueue`. You can specify + up to 10 source queue ARNs. To allow more than 10 source queues to + specify dead-letter queues, set the `redrivePermission` parameter to + `allowAll`. + + Note: + The dead-letter queue of a FIFO queue must also be a FIFO queue. + Similarly, the dead-letter queue of a standard queue must also be a + standard queue. + + The following attributes apply only to + [server-side-encryption](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html): + + - `KmsMasterKeyId` -- The ID of an Amazon Web Services managed customer + master key (CMK) for Amazon SQS or a custom CMK. For more information, + see [Key + Terms](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms). + While the alias of the AWS-managed CMK for Amazon SQS is always + `alias/aws/sqs`, the alias of a custom CMK can, for example, be + `alias/`*`MyAlias`*` `. For more examples, see + [KeyId](https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters) + in the *Key Management Service API Reference*. + + - `KmsDataKeyReusePeriodSeconds` -- The length of time, in seconds, for + which Amazon SQS can reuse a [data + key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys) + to encrypt or decrypt messages before calling KMS again. An integer + representing seconds, between 60 seconds (1 minute) and 86,400 seconds + (24 hours). Default: 300 (5 minutes). A shorter time period provides + better security but results in more calls to KMS which might incur + charges after Free Tier. For more information, see [How Does the Data + Key Reuse Period + Work?](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). + + - `SqsManagedSseEnabled` -- Enables server-side queue encryption using + SQS owned encryption keys. Only one server-side encryption option is + supported per queue (for example, + [SSE-KMS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + or + [SSE-SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html)). + + The following attribute applies only to [FIFO (first-in-first-out) + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): + + - `ContentBasedDeduplication` -- Enables content-based deduplication. + For more information, see [Exactly-once + processing](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html) + in the *Amazon SQS Developer Guide*. Note the following: + + - Every message must have a unique `MessageDeduplicationId`. + + - You may provide a `MessageDeduplicationId` explicitly. + + - If you aren't able to provide a `MessageDeduplicationId` and you + enable `ContentBasedDeduplication` for your queue, Amazon SQS uses + a SHA-256 hash to generate the `MessageDeduplicationId` using the + body of the message (but not the attributes of the message). + + - If you don't provide a `MessageDeduplicationId` and the queue + doesn't have `ContentBasedDeduplication` set, the action fails + with an error. + + - If the queue has `ContentBasedDeduplication` set, your + `MessageDeduplicationId` overrides the generated one. + + - When `ContentBasedDeduplication` is in effect, messages with + identical content sent within the deduplication interval are treated + as duplicates and only one copy of the message is delivered. + + - If you send one message with `ContentBasedDeduplication` enabled and + then another message with a `MessageDeduplicationId` that is the + same as the one generated for the first `MessageDeduplicationId`, + the two messages are treated as duplicates and only one copy of the + message is delivered. + + The following attributes apply only to [high throughput for FIFO + queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html): + + - `DeduplicationScope` -- Specifies whether message deduplication occurs + at the message group or queue level. Valid values are `messageGroup` + and `queue`. + + - `FifoThroughputLimit` -- Specifies whether the FIFO queue throughput + quota applies to the entire queue or per message group. Valid values + are `perQueue` and `perMessageGroupId`. The `perMessageGroupId` value + is allowed only when the value for `DeduplicationScope` is + `messageGroup`. + + To enable high throughput for FIFO queues, do the following: + + - Set `DeduplicationScope` to `messageGroup`. + + - Set `FifoThroughputLimit` to `perMessageGroupId`. + + If you set these attributes to anything other than the values shown for + enabling high throughput, normal throughput is in effect and + deduplication occurs as specified. + + For information on throughput quotas, see [Quotas related to + messages](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html) + in the *Amazon SQS Developer Guide*. + """ + @dataclass(kw_only=True) class SetQueueAttributesOutput(_SerdeShape): """Dataclass for SetQueueAttributesOutput structure.""" @@ -2570,6 +4118,34 @@ class StartMessageMoveTaskInput(_SerdeShape): movement task. """ +class StartMessageMoveTaskInputDict(TypedDict, total=False): + """Dictionary form of `StartMessageMoveTaskInput`.""" + + source_arn: Required[str] + """ + The ARN of the queue that contains the messages to be moved to another + queue. Currently, only ARNs of dead-letter queues (DLQs) whose sources + are other Amazon SQS queues are accepted. DLQs whose sources are non-SQS + queues, such as Lambda or Amazon SNS topics, are not currently + supported. + """ + destination_arn: str | None + """ + The ARN of the queue that receives the moved messages. You can use this + field to specify the destination queue where you would like to redrive + messages. If this field is left blank, the messages will be redriven + back to their respective original source queues. + """ + max_number_of_messages_per_second: int | None + """ + The number of messages to be moved per second (the message movement + rate). You can use this field to define a fixed message movement rate. + The maximum value for messages per second is 500. If this field is left + blank, the system will optimize the rate based on the queue message + backlog size, which may vary throughout the duration of the message + movement task. + """ + @dataclass(kw_only=True) class StartMessageMoveTaskOutput(_SerdeShape): """Dataclass for StartMessageMoveTaskOutput structure.""" @@ -2597,6 +4173,14 @@ class TagQueueInput(_SerdeShape): tags: dict[str, str] | None = ... """The list of tags to be added to the specified queue.""" +class TagQueueInputDict(TypedDict, total=False): + """Dictionary form of `TagQueueInput`.""" + + queue_url: Required[str] + """The URL of the queue.""" + tags: Required[Mapping[str, str]] + """The list of tags to be added to the specified queue.""" + @dataclass(kw_only=True) class TagQueueOutput(_SerdeShape): """Dataclass for TagQueueOutput structure.""" @@ -2650,6 +4234,14 @@ class UntagQueueInput(_SerdeShape): tag_keys: list[str] | None = ... """The list of tags to be removed from the specified queue.""" +class UntagQueueInputDict(TypedDict, total=False): + """Dictionary form of `UntagQueueInput`.""" + + queue_url: Required[str] + """The URL of the queue.""" + tag_keys: Required[Sequence[str]] + """The list of tags to be removed from the specified queue.""" + @dataclass(kw_only=True) class UntagQueueOutput(_SerdeShape): """Dataclass for UntagQueueOutput structure.""" diff --git a/clients/aws-sdk-sqs/src/aws_sdk_sqs/py.typed b/clients/aws-sdk-sqs/src/aws_sdk_sqs/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-sqs/tests/_typecheck.py b/clients/aws-sdk-sqs/tests/_typecheck.py index 9a680defc..a90644d29 100644 --- a/clients/aws-sdk-sqs/tests/_typecheck.py +++ b/clients/aws-sdk-sqs/tests/_typecheck.py @@ -2,69 +2,100 @@ from typing import Any +from aws_sdk_sqs.aio.client import AsyncSQSClient +from aws_sdk_sqs.client import SQSClient from aws_sdk_sqs.models import ( AddPermissionInput, + AddPermissionInputDict, AddPermissionOutput, BatchResultErrorEntry, CancelMessageMoveTaskInput, + CancelMessageMoveTaskInputDict, CancelMessageMoveTaskOutput, ChangeMessageVisibilityBatchInput, + ChangeMessageVisibilityBatchInputDict, ChangeMessageVisibilityBatchOutput, ChangeMessageVisibilityBatchRequestEntry, + ChangeMessageVisibilityBatchRequestEntryDict, ChangeMessageVisibilityBatchResultEntry, ChangeMessageVisibilityInput, + ChangeMessageVisibilityInputDict, ChangeMessageVisibilityOutput, CreateQueueInput, + CreateQueueInputDict, CreateQueueOutput, DeleteMessageBatchInput, + DeleteMessageBatchInputDict, DeleteMessageBatchOutput, DeleteMessageBatchRequestEntry, + DeleteMessageBatchRequestEntryDict, DeleteMessageBatchResultEntry, DeleteMessageInput, + DeleteMessageInputDict, DeleteMessageOutput, DeleteQueueInput, + DeleteQueueInputDict, DeleteQueueOutput, GetQueueAttributesInput, + GetQueueAttributesInputDict, GetQueueAttributesOutput, GetQueueUrlInput, + GetQueueUrlInputDict, GetQueueUrlOutput, ListDeadLetterSourceQueuesInput, + ListDeadLetterSourceQueuesInputDict, ListDeadLetterSourceQueuesOutput, ListMessageMoveTasksInput, + ListMessageMoveTasksInputDict, ListMessageMoveTasksOutput, ListMessageMoveTasksResultEntry, ListQueueTagsInput, + ListQueueTagsInputDict, ListQueueTagsOutput, ListQueuesInput, + ListQueuesInputDict, ListQueuesOutput, Message, MessageAttributeValue, + MessageAttributeValueDict, MessageSystemAttributeValue, + MessageSystemAttributeValueDict, PurgeQueueInput, + PurgeQueueInputDict, PurgeQueueOutput, ReceiveMessageInput, + ReceiveMessageInputDict, ReceiveMessageOutput, RemovePermissionInput, + RemovePermissionInputDict, RemovePermissionOutput, SendMessageBatchInput, + SendMessageBatchInputDict, SendMessageBatchOutput, SendMessageBatchRequestEntry, + SendMessageBatchRequestEntryDict, SendMessageBatchResultEntry, SendMessageInput, + SendMessageInputDict, SendMessageOutput, SetQueueAttributesInput, + SetQueueAttributesInputDict, SetQueueAttributesOutput, StartMessageMoveTaskInput, + StartMessageMoveTaskInputDict, StartMessageMoveTaskOutput, TagQueueInput, + TagQueueInputDict, TagQueueOutput, UntagQueueInput, + UntagQueueInputDict, UntagQueueOutput, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -125,3 +156,258 @@ TagQueueOutput() UntagQueueInput() UntagQueueOutput() +_params_0: AddPermissionInputDict = { + "queue_url": _, + "label": _, + "aws_account_ids": _, + "actions": _, +} +_params_1: CancelMessageMoveTaskInputDict = {"task_handle": _} +_params_2: ChangeMessageVisibilityBatchInputDict = {"queue_url": _, "entries": _} +_params_3: ChangeMessageVisibilityBatchRequestEntryDict = {"id": _, "receipt_handle": _} +_params_4: ChangeMessageVisibilityInputDict = { + "queue_url": _, + "receipt_handle": _, + "visibility_timeout": _, +} +_params_5: CreateQueueInputDict = {"queue_name": _} +_params_6: DeleteMessageBatchInputDict = {"queue_url": _, "entries": _} +_params_7: DeleteMessageBatchRequestEntryDict = {"id": _, "receipt_handle": _} +_params_8: DeleteMessageInputDict = {"queue_url": _, "receipt_handle": _} +_params_9: DeleteQueueInputDict = {"queue_url": _} +_params_10: GetQueueAttributesInputDict = {"queue_url": _} +_params_11: GetQueueUrlInputDict = {"queue_name": _} +_params_12: ListDeadLetterSourceQueuesInputDict = {"queue_url": _} +_params_13: ListMessageMoveTasksInputDict = {"source_arn": _} +_params_14: ListQueuesInputDict = {} +_params_15: ListQueueTagsInputDict = {"queue_url": _} +_params_16: MessageAttributeValueDict = {"data_type": _} +_params_17: MessageSystemAttributeValueDict = {"data_type": _} +_params_18: PurgeQueueInputDict = {"queue_url": _} +_params_19: ReceiveMessageInputDict = {"queue_url": _} +_params_20: RemovePermissionInputDict = {"queue_url": _, "label": _} +_params_21: SendMessageBatchInputDict = {"queue_url": _, "entries": _} +_params_22: SendMessageBatchRequestEntryDict = {"id": _, "message_body": _} +_params_23: SendMessageInputDict = {"queue_url": _, "message_body": _} +_params_24: SetQueueAttributesInputDict = {"queue_url": _, "attributes": _} +_params_25: StartMessageMoveTaskInputDict = {"source_arn": _} +_params_26: TagQueueInputDict = {"queue_url": _, "tags": _} +_params_27: UntagQueueInputDict = {"queue_url": _, "tag_keys": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncSQSClient) -> None: + pass + await client.add_permission(queue_url=_, label=_, aws_account_ids=_, actions=_) + await client.add_permission(**_request(AddPermissionInputDict)) + await client.add_permission(_request(AddPermissionInput)) + await client.add_permission(_request(AddPermissionInputDict)) + await client.cancel_message_move_task(task_handle=_) + await client.cancel_message_move_task(**_request(CancelMessageMoveTaskInputDict)) + await client.cancel_message_move_task(_request(CancelMessageMoveTaskInput)) + await client.cancel_message_move_task(_request(CancelMessageMoveTaskInputDict)) + await client.change_message_visibility( + queue_url=_, receipt_handle=_, visibility_timeout=_ + ) + await client.change_message_visibility(**_request(ChangeMessageVisibilityInputDict)) + await client.change_message_visibility(_request(ChangeMessageVisibilityInput)) + await client.change_message_visibility(_request(ChangeMessageVisibilityInputDict)) + await client.change_message_visibility_batch(queue_url=_, entries=_) + await client.change_message_visibility_batch( + **_request(ChangeMessageVisibilityBatchInputDict) + ) + await client.change_message_visibility_batch( + _request(ChangeMessageVisibilityBatchInput) + ) + await client.change_message_visibility_batch( + _request(ChangeMessageVisibilityBatchInputDict) + ) + await client.create_queue(queue_name=_) + await client.create_queue(**_request(CreateQueueInputDict)) + await client.create_queue(_request(CreateQueueInput)) + await client.create_queue(_request(CreateQueueInputDict)) + await client.delete_message(queue_url=_, receipt_handle=_) + await client.delete_message(**_request(DeleteMessageInputDict)) + await client.delete_message(_request(DeleteMessageInput)) + await client.delete_message(_request(DeleteMessageInputDict)) + await client.delete_message_batch(queue_url=_, entries=_) + await client.delete_message_batch(**_request(DeleteMessageBatchInputDict)) + await client.delete_message_batch(_request(DeleteMessageBatchInput)) + await client.delete_message_batch(_request(DeleteMessageBatchInputDict)) + await client.delete_queue(queue_url=_) + await client.delete_queue(**_request(DeleteQueueInputDict)) + await client.delete_queue(_request(DeleteQueueInput)) + await client.delete_queue(_request(DeleteQueueInputDict)) + await client.get_queue_attributes(queue_url=_) + await client.get_queue_attributes(**_request(GetQueueAttributesInputDict)) + await client.get_queue_attributes(_request(GetQueueAttributesInput)) + await client.get_queue_attributes(_request(GetQueueAttributesInputDict)) + await client.get_queue_url(queue_name=_) + await client.get_queue_url(**_request(GetQueueUrlInputDict)) + await client.get_queue_url(_request(GetQueueUrlInput)) + await client.get_queue_url(_request(GetQueueUrlInputDict)) + await client.list_dead_letter_source_queues(queue_url=_) + await client.list_dead_letter_source_queues( + **_request(ListDeadLetterSourceQueuesInputDict) + ) + await client.list_dead_letter_source_queues( + _request(ListDeadLetterSourceQueuesInput) + ) + await client.list_dead_letter_source_queues( + _request(ListDeadLetterSourceQueuesInputDict) + ) + await client.list_message_move_tasks(source_arn=_) + await client.list_message_move_tasks(**_request(ListMessageMoveTasksInputDict)) + await client.list_message_move_tasks(_request(ListMessageMoveTasksInput)) + await client.list_message_move_tasks(_request(ListMessageMoveTasksInputDict)) + await client.list_queues() + await client.list_queues(**_request(ListQueuesInputDict)) + await client.list_queues(_request(ListQueuesInput)) + await client.list_queues(_request(ListQueuesInputDict)) + await client.list_queue_tags(queue_url=_) + await client.list_queue_tags(**_request(ListQueueTagsInputDict)) + await client.list_queue_tags(_request(ListQueueTagsInput)) + await client.list_queue_tags(_request(ListQueueTagsInputDict)) + await client.purge_queue(queue_url=_) + await client.purge_queue(**_request(PurgeQueueInputDict)) + await client.purge_queue(_request(PurgeQueueInput)) + await client.purge_queue(_request(PurgeQueueInputDict)) + await client.receive_message(queue_url=_) + await client.receive_message(**_request(ReceiveMessageInputDict)) + await client.receive_message(_request(ReceiveMessageInput)) + await client.receive_message(_request(ReceiveMessageInputDict)) + await client.remove_permission(queue_url=_, label=_) + await client.remove_permission(**_request(RemovePermissionInputDict)) + await client.remove_permission(_request(RemovePermissionInput)) + await client.remove_permission(_request(RemovePermissionInputDict)) + await client.send_message(queue_url=_, message_body=_) + await client.send_message(**_request(SendMessageInputDict)) + await client.send_message(_request(SendMessageInput)) + await client.send_message(_request(SendMessageInputDict)) + await client.send_message_batch(queue_url=_, entries=_) + await client.send_message_batch(**_request(SendMessageBatchInputDict)) + await client.send_message_batch(_request(SendMessageBatchInput)) + await client.send_message_batch(_request(SendMessageBatchInputDict)) + await client.set_queue_attributes(queue_url=_, attributes=_) + await client.set_queue_attributes(**_request(SetQueueAttributesInputDict)) + await client.set_queue_attributes(_request(SetQueueAttributesInput)) + await client.set_queue_attributes(_request(SetQueueAttributesInputDict)) + await client.start_message_move_task(source_arn=_) + await client.start_message_move_task(**_request(StartMessageMoveTaskInputDict)) + await client.start_message_move_task(_request(StartMessageMoveTaskInput)) + await client.start_message_move_task(_request(StartMessageMoveTaskInputDict)) + await client.tag_queue(queue_url=_, tags=_) + await client.tag_queue(**_request(TagQueueInputDict)) + await client.tag_queue(_request(TagQueueInput)) + await client.tag_queue(_request(TagQueueInputDict)) + await client.untag_queue(queue_url=_, tag_keys=_) + await client.untag_queue(**_request(UntagQueueInputDict)) + await client.untag_queue(_request(UntagQueueInput)) + await client.untag_queue(_request(UntagQueueInputDict)) + + +def check_sync_calls(client: SQSClient) -> None: + pass + client.add_permission(queue_url=_, label=_, aws_account_ids=_, actions=_) + client.add_permission(**_request(AddPermissionInputDict)) + client.add_permission(_request(AddPermissionInput)) + client.add_permission(_request(AddPermissionInputDict)) + client.cancel_message_move_task(task_handle=_) + client.cancel_message_move_task(**_request(CancelMessageMoveTaskInputDict)) + client.cancel_message_move_task(_request(CancelMessageMoveTaskInput)) + client.cancel_message_move_task(_request(CancelMessageMoveTaskInputDict)) + client.change_message_visibility( + queue_url=_, receipt_handle=_, visibility_timeout=_ + ) + client.change_message_visibility(**_request(ChangeMessageVisibilityInputDict)) + client.change_message_visibility(_request(ChangeMessageVisibilityInput)) + client.change_message_visibility(_request(ChangeMessageVisibilityInputDict)) + client.change_message_visibility_batch(queue_url=_, entries=_) + client.change_message_visibility_batch( + **_request(ChangeMessageVisibilityBatchInputDict) + ) + client.change_message_visibility_batch(_request(ChangeMessageVisibilityBatchInput)) + client.change_message_visibility_batch( + _request(ChangeMessageVisibilityBatchInputDict) + ) + client.create_queue(queue_name=_) + client.create_queue(**_request(CreateQueueInputDict)) + client.create_queue(_request(CreateQueueInput)) + client.create_queue(_request(CreateQueueInputDict)) + client.delete_message(queue_url=_, receipt_handle=_) + client.delete_message(**_request(DeleteMessageInputDict)) + client.delete_message(_request(DeleteMessageInput)) + client.delete_message(_request(DeleteMessageInputDict)) + client.delete_message_batch(queue_url=_, entries=_) + client.delete_message_batch(**_request(DeleteMessageBatchInputDict)) + client.delete_message_batch(_request(DeleteMessageBatchInput)) + client.delete_message_batch(_request(DeleteMessageBatchInputDict)) + client.delete_queue(queue_url=_) + client.delete_queue(**_request(DeleteQueueInputDict)) + client.delete_queue(_request(DeleteQueueInput)) + client.delete_queue(_request(DeleteQueueInputDict)) + client.get_queue_attributes(queue_url=_) + client.get_queue_attributes(**_request(GetQueueAttributesInputDict)) + client.get_queue_attributes(_request(GetQueueAttributesInput)) + client.get_queue_attributes(_request(GetQueueAttributesInputDict)) + client.get_queue_url(queue_name=_) + client.get_queue_url(**_request(GetQueueUrlInputDict)) + client.get_queue_url(_request(GetQueueUrlInput)) + client.get_queue_url(_request(GetQueueUrlInputDict)) + client.list_dead_letter_source_queues(queue_url=_) + client.list_dead_letter_source_queues( + **_request(ListDeadLetterSourceQueuesInputDict) + ) + client.list_dead_letter_source_queues(_request(ListDeadLetterSourceQueuesInput)) + client.list_dead_letter_source_queues(_request(ListDeadLetterSourceQueuesInputDict)) + client.list_message_move_tasks(source_arn=_) + client.list_message_move_tasks(**_request(ListMessageMoveTasksInputDict)) + client.list_message_move_tasks(_request(ListMessageMoveTasksInput)) + client.list_message_move_tasks(_request(ListMessageMoveTasksInputDict)) + client.list_queues() + client.list_queues(**_request(ListQueuesInputDict)) + client.list_queues(_request(ListQueuesInput)) + client.list_queues(_request(ListQueuesInputDict)) + client.list_queue_tags(queue_url=_) + client.list_queue_tags(**_request(ListQueueTagsInputDict)) + client.list_queue_tags(_request(ListQueueTagsInput)) + client.list_queue_tags(_request(ListQueueTagsInputDict)) + client.purge_queue(queue_url=_) + client.purge_queue(**_request(PurgeQueueInputDict)) + client.purge_queue(_request(PurgeQueueInput)) + client.purge_queue(_request(PurgeQueueInputDict)) + client.receive_message(queue_url=_) + client.receive_message(**_request(ReceiveMessageInputDict)) + client.receive_message(_request(ReceiveMessageInput)) + client.receive_message(_request(ReceiveMessageInputDict)) + client.remove_permission(queue_url=_, label=_) + client.remove_permission(**_request(RemovePermissionInputDict)) + client.remove_permission(_request(RemovePermissionInput)) + client.remove_permission(_request(RemovePermissionInputDict)) + client.send_message(queue_url=_, message_body=_) + client.send_message(**_request(SendMessageInputDict)) + client.send_message(_request(SendMessageInput)) + client.send_message(_request(SendMessageInputDict)) + client.send_message_batch(queue_url=_, entries=_) + client.send_message_batch(**_request(SendMessageBatchInputDict)) + client.send_message_batch(_request(SendMessageBatchInput)) + client.send_message_batch(_request(SendMessageBatchInputDict)) + client.set_queue_attributes(queue_url=_, attributes=_) + client.set_queue_attributes(**_request(SetQueueAttributesInputDict)) + client.set_queue_attributes(_request(SetQueueAttributesInput)) + client.set_queue_attributes(_request(SetQueueAttributesInputDict)) + client.start_message_move_task(source_arn=_) + client.start_message_move_task(**_request(StartMessageMoveTaskInputDict)) + client.start_message_move_task(_request(StartMessageMoveTaskInput)) + client.start_message_move_task(_request(StartMessageMoveTaskInputDict)) + client.tag_queue(queue_url=_, tags=_) + client.tag_queue(**_request(TagQueueInputDict)) + client.tag_queue(_request(TagQueueInput)) + client.tag_queue(_request(TagQueueInputDict)) + client.untag_queue(queue_url=_, tag_keys=_) + client.untag_queue(**_request(UntagQueueInputDict)) + client.untag_queue(_request(UntagQueueInput)) + client.untag_queue(_request(UntagQueueInputDict)) diff --git a/clients/aws-sdk-sts/pyproject.toml b/clients/aws-sdk-sts/pyproject.toml index 63c462f29..9e6bffea4 100644 --- a/clients/aws-sdk-sts/pyproject.toml +++ b/clients/aws-sdk-sts/pyproject.toml @@ -24,21 +24,21 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[xml]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[xml]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0" + "smithy_test~=0.4.0" ] [build-system] diff --git a/clients/aws-sdk-sts/src/aws_sdk_sts/_private/schemas.py b/clients/aws-sdk-sts/src/aws_sdk_sts/_private/schemas.py index 4a53d786c..c7c3f8542 100644 --- a/clients/aws-sdk-sts/src/aws_sdk_sts/_private/schemas.py +++ b/clients/aws-sdk-sts/src/aws_sdk_sts/_private/schemas.py @@ -134,7 +134,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-sts/src/aws_sdk_sts/aio/client.py b/clients/aws-sdk-sts/src/aws_sdk_sts/aio/client.py index 1a0fe3452..d07741c40 100644 --- a/clients/aws-sdk-sts/src/aws_sdk_sts/aio/client.py +++ b/clients/aws-sdk-sts/src/aws_sdk_sts/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,27 +20,16 @@ if TYPE_CHECKING: from ..models import ( - AssumeRoleInput, AssumeRoleOutput, - AssumeRoleWithSAMLInput, AssumeRoleWithSAMLOutput, - AssumeRoleWithWebIdentityInput, AssumeRoleWithWebIdentityOutput, - AssumeRootInput, AssumeRootOutput, - DecodeAuthorizationMessageInput, DecodeAuthorizationMessageOutput, - GetAccessKeyInfoInput, GetAccessKeyInfoOutput, - GetCallerIdentityInput, GetCallerIdentityOutput, - GetDelegatedAccessTokenInput, GetDelegatedAccessTokenOutput, - GetFederationTokenInput, GetFederationTokenOutput, - GetSessionTokenInput, GetSessionTokenOutput, - GetWebIdentityTokenInput, GetWebIdentityTokenOutput, ) @@ -87,10 +76,24 @@ class AsyncSTSClient(AsyncClient[AsyncSTSConfig]): in the *IAM User Guide*. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def assume_role( - self, input: AssumeRoleInput, plugins: list[Plugin] | None = None + self, + request: _models.AssumeRoleInput | _models.AssumeRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssumeRoleOutput: ... + + @_overload + async def assume_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssumeRoleInputDict], ) -> AssumeRoleOutput: """ Returns a set of temporary security credentials that you can use to @@ -204,8 +207,6 @@ async def assume_role( one-time password (TOTP) that the MFA device produces. Args: - input: - An instance of `AssumeRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -215,10 +216,33 @@ async def assume_role( Returns: An instance of `AssumeRoleOutput`. """ - return await self._invoke(input, _models.ASSUME_ROLE, [], plugins) + async def assume_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssumeRoleOutput: + return await self._invoke( + self._select_input(_models.ASSUME_ROLE, args, kwargs), + _models.ASSUME_ROLE, + [], + plugins, + ) + + @_overload + async def assume_role_with_saml( + self, + request: _models.AssumeRoleWithSAMLInput | _models.AssumeRoleWithSAMLInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssumeRoleWithSAMLOutput: ... + + @_overload async def assume_role_with_saml( - self, input: AssumeRoleWithSAMLInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssumeRoleWithSAMLInputDict], ) -> AssumeRoleWithSAMLOutput: """ Returns a set of temporary security credentials for users who have been @@ -380,8 +404,6 @@ async def assume_role_with_saml( in the *IAM User Guide*. Args: - input: - An instance of `AssumeRoleWithSAMLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -391,10 +413,34 @@ async def assume_role_with_saml( Returns: An instance of `AssumeRoleWithSAMLOutput`. """ - return await self._invoke(input, _models.ASSUME_ROLE_WITH_SAML, [], plugins) + async def assume_role_with_saml( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssumeRoleWithSAMLOutput: + return await self._invoke( + self._select_input(_models.ASSUME_ROLE_WITH_SAML, args, kwargs), + _models.ASSUME_ROLE_WITH_SAML, + [], + plugins, + ) + + @_overload async def assume_role_with_web_identity( - self, input: AssumeRoleWithWebIdentityInput, plugins: list[Plugin] | None = None + self, + request: _models.AssumeRoleWithWebIdentityInput + | _models.AssumeRoleWithWebIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssumeRoleWithWebIdentityOutput: ... + + @_overload + async def assume_role_with_web_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssumeRoleWithWebIdentityInputDict], ) -> AssumeRoleWithWebIdentityOutput: """ Returns a set of temporary security credentials for users who have been @@ -553,8 +599,6 @@ async def assume_role_with_web_identity( from these providers to get and use temporary security credentials. Args: - input: - An instance of `AssumeRoleWithWebIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -564,12 +608,33 @@ async def assume_role_with_web_identity( Returns: An instance of `AssumeRoleWithWebIdentityOutput`. """ + + async def assume_role_with_web_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssumeRoleWithWebIdentityOutput: return await self._invoke( - input, _models.ASSUME_ROLE_WITH_WEB_IDENTITY, [], plugins + self._select_input(_models.ASSUME_ROLE_WITH_WEB_IDENTITY, args, kwargs), + _models.ASSUME_ROLE_WITH_WEB_IDENTITY, + [], + plugins, ) + @_overload async def assume_root( - self, input: AssumeRootInput, plugins: list[Plugin] | None = None + self, + request: _models.AssumeRootInput | _models.AssumeRootInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssumeRootOutput: ... + + @_overload + async def assume_root( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssumeRootInputDict], ) -> AssumeRootOutput: """ Returns a set of short term credentials you can use to perform @@ -607,8 +672,6 @@ async def assume_root( in the *Organizations User Guide* for more information on SCPs. Args: - input: - An instance of `AssumeRootInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -618,12 +681,34 @@ async def assume_root( Returns: An instance of `AssumeRootOutput`. """ - return await self._invoke(input, _models.ASSUME_ROOT, [], plugins) + async def assume_root( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssumeRootOutput: + return await self._invoke( + self._select_input(_models.ASSUME_ROOT, args, kwargs), + _models.ASSUME_ROOT, + [], + plugins, + ) + + @_overload + async def decode_authorization_message( + self, + request: _models.DecodeAuthorizationMessageInput + | _models.DecodeAuthorizationMessageInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> DecodeAuthorizationMessageOutput: ... + + @_overload async def decode_authorization_message( self, - input: DecodeAuthorizationMessageInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DecodeAuthorizationMessageInputDict], ) -> DecodeAuthorizationMessageOutput: """ Decodes additional information about the authorization status of a @@ -667,8 +752,6 @@ async def decode_authorization_message( - The values of condition keys in the context of the user's request. Args: - input: - An instance of `DecodeAuthorizationMessageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -678,12 +761,33 @@ async def decode_authorization_message( Returns: An instance of `DecodeAuthorizationMessageOutput`. """ + + async def decode_authorization_message( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DecodeAuthorizationMessageOutput: return await self._invoke( - input, _models.DECODE_AUTHORIZATION_MESSAGE, [], plugins + self._select_input(_models.DECODE_AUTHORIZATION_MESSAGE, args, kwargs), + _models.DECODE_AUTHORIZATION_MESSAGE, + [], + plugins, ) + @_overload + async def get_access_key_info( + self, + request: _models.GetAccessKeyInfoInput | _models.GetAccessKeyInfoInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccessKeyInfoOutput: ... + + @_overload async def get_access_key_info( - self, input: GetAccessKeyInfoInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccessKeyInfoInputDict], ) -> GetAccessKeyInfoOutput: """ Returns the account identifier for the specified access key ID. @@ -716,8 +820,6 @@ async def get_access_key_info( might return an error that the key doesn't exist. Args: - input: - An instance of `GetAccessKeyInfoInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -727,10 +829,33 @@ async def get_access_key_info( Returns: An instance of `GetAccessKeyInfoOutput`. """ - return await self._invoke(input, _models.GET_ACCESS_KEY_INFO, [], plugins) + async def get_access_key_info( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccessKeyInfoOutput: + return await self._invoke( + self._select_input(_models.GET_ACCESS_KEY_INFO, args, kwargs), + _models.GET_ACCESS_KEY_INFO, + [], + plugins, + ) + + @_overload + async def get_caller_identity( + self, + request: _models.GetCallerIdentityInput | _models.GetCallerIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetCallerIdentityOutput: ... + + @_overload async def get_caller_identity( - self, input: GetCallerIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCallerIdentityInputDict], ) -> GetCallerIdentityOutput: """ Returns details about the IAM user or role whose credentials are used to @@ -747,8 +872,6 @@ async def get_caller_identity( in the *IAM User Guide*. Args: - input: - An instance of `GetCallerIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -758,10 +881,34 @@ async def get_caller_identity( Returns: An instance of `GetCallerIdentityOutput`. """ - return await self._invoke(input, _models.GET_CALLER_IDENTITY, [], plugins) + async def get_caller_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCallerIdentityOutput: + return await self._invoke( + self._select_input(_models.GET_CALLER_IDENTITY, args, kwargs), + _models.GET_CALLER_IDENTITY, + [], + plugins, + ) + + @_overload async def get_delegated_access_token( - self, input: GetDelegatedAccessTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDelegatedAccessTokenInput + | _models.GetDelegatedAccessTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDelegatedAccessTokenOutput: ... + + @_overload + async def get_delegated_access_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDelegatedAccessTokenInputDict], ) -> GetDelegatedAccessTokenOutput: """ Exchanges a trade-in token for temporary Amazon Web Services credentials @@ -771,8 +918,6 @@ async def get_delegated_access_token( Services resources. Args: - input: - An instance of `GetDelegatedAccessTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -782,12 +927,33 @@ async def get_delegated_access_token( Returns: An instance of `GetDelegatedAccessTokenOutput`. """ + + async def get_delegated_access_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDelegatedAccessTokenOutput: return await self._invoke( - input, _models.GET_DELEGATED_ACCESS_TOKEN, [], plugins + self._select_input(_models.GET_DELEGATED_ACCESS_TOKEN, args, kwargs), + _models.GET_DELEGATED_ACCESS_TOKEN, + [], + plugins, ) + @_overload async def get_federation_token( - self, input: GetFederationTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFederationTokenInput | _models.GetFederationTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFederationTokenOutput: ... + + @_overload + async def get_federation_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFederationTokenInputDict], ) -> GetFederationTokenOutput: """ Returns a set of temporary security credentials (consisting of an access @@ -907,8 +1073,6 @@ async def get_federation_token( the user tag. Args: - input: - An instance of `GetFederationTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -918,10 +1082,33 @@ async def get_federation_token( Returns: An instance of `GetFederationTokenOutput`. """ - return await self._invoke(input, _models.GET_FEDERATION_TOKEN, [], plugins) + async def get_federation_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFederationTokenOutput: + return await self._invoke( + self._select_input(_models.GET_FEDERATION_TOKEN, args, kwargs), + _models.GET_FEDERATION_TOKEN, + [], + plugins, + ) + + @_overload + async def get_session_token( + self, + request: _models.GetSessionTokenInput | _models.GetSessionTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSessionTokenOutput: ... + + @_overload async def get_session_token( - self, input: GetSessionTokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSessionTokenInputDict], ) -> GetSessionTokenOutput: """ Returns a set of temporary credentials for an Amazon Web Services @@ -995,8 +1182,6 @@ async def get_session_token( in the *IAM User Guide*. Args: - input: - An instance of `GetSessionTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1006,10 +1191,34 @@ async def get_session_token( Returns: An instance of `GetSessionTokenOutput`. """ - return await self._invoke(input, _models.GET_SESSION_TOKEN, [], plugins) + async def get_session_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSessionTokenOutput: + return await self._invoke( + self._select_input(_models.GET_SESSION_TOKEN, args, kwargs), + _models.GET_SESSION_TOKEN, + [], + plugins, + ) + + @_overload + async def get_web_identity_token( + self, + request: _models.GetWebIdentityTokenInput + | _models.GetWebIdentityTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWebIdentityTokenOutput: ... + + @_overload async def get_web_identity_token( - self, input: GetWebIdentityTokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWebIdentityTokenInputDict], ) -> GetWebIdentityTokenOutput: """ Returns a signed JSON Web Token (JWT) that represents the calling Amazon @@ -1023,8 +1232,6 @@ async def get_web_identity_token( endpoint. Args: - input: - An instance of `GetWebIdentityTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1034,7 +1241,16 @@ async def get_web_identity_token( Returns: An instance of `GetWebIdentityTokenOutput`. """ - return await self._invoke(input, _models.GET_WEB_IDENTITY_TOKEN, [], plugins) + + async def get_web_identity_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWebIdentityTokenOutput: + return await self._invoke( + self._select_input(_models.GET_WEB_IDENTITY_TOKEN, args, kwargs), + _models.GET_WEB_IDENTITY_TOKEN, + [], + plugins, + ) async def _new_config(self) -> AsyncSTSConfig: return await AsyncSTSConfig.resolve() diff --git a/clients/aws-sdk-sts/src/aws_sdk_sts/client.py b/clients/aws-sdk-sts/src/aws_sdk_sts/client.py index 734c56d53..4cfa2296f 100644 --- a/clients/aws-sdk-sts/src/aws_sdk_sts/client.py +++ b/clients/aws-sdk-sts/src/aws_sdk_sts/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -20,27 +20,16 @@ if TYPE_CHECKING: from .models import ( - AssumeRoleInput, AssumeRoleOutput, - AssumeRoleWithSAMLInput, AssumeRoleWithSAMLOutput, - AssumeRoleWithWebIdentityInput, AssumeRoleWithWebIdentityOutput, - AssumeRootInput, AssumeRootOutput, - DecodeAuthorizationMessageInput, DecodeAuthorizationMessageOutput, - GetAccessKeyInfoInput, GetAccessKeyInfoOutput, - GetCallerIdentityInput, GetCallerIdentityOutput, - GetDelegatedAccessTokenInput, GetDelegatedAccessTokenOutput, - GetFederationTokenInput, GetFederationTokenOutput, - GetSessionTokenInput, GetSessionTokenOutput, - GetWebIdentityTokenInput, GetWebIdentityTokenOutput, ) @@ -87,10 +76,24 @@ class STSClient(Client[STSConfig]): in the *IAM User Guide*. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def assume_role( - self, input: AssumeRoleInput, plugins: list[Plugin] | None = None + self, + request: _models.AssumeRoleInput | _models.AssumeRoleInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssumeRoleOutput: ... + + @_overload + def assume_role( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssumeRoleInputDict], ) -> AssumeRoleOutput: """ Returns a set of temporary security credentials that you can use to @@ -204,8 +207,6 @@ def assume_role( one-time password (TOTP) that the MFA device produces. Args: - input: - An instance of `AssumeRoleInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -215,10 +216,33 @@ def assume_role( Returns: An instance of `AssumeRoleOutput`. """ - return self._invoke(input, _models.ASSUME_ROLE, [], plugins) + def assume_role( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssumeRoleOutput: + return self._invoke( + self._select_input(_models.ASSUME_ROLE, args, kwargs), + _models.ASSUME_ROLE, + [], + plugins, + ) + + @_overload def assume_role_with_saml( - self, input: AssumeRoleWithSAMLInput, plugins: list[Plugin] | None = None + self, + request: _models.AssumeRoleWithSAMLInput | _models.AssumeRoleWithSAMLInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssumeRoleWithSAMLOutput: ... + + @_overload + def assume_role_with_saml( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssumeRoleWithSAMLInputDict], ) -> AssumeRoleWithSAMLOutput: """ Returns a set of temporary security credentials for users who have been @@ -380,8 +404,6 @@ def assume_role_with_saml( in the *IAM User Guide*. Args: - input: - An instance of `AssumeRoleWithSAMLInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -391,10 +413,34 @@ def assume_role_with_saml( Returns: An instance of `AssumeRoleWithSAMLOutput`. """ - return self._invoke(input, _models.ASSUME_ROLE_WITH_SAML, [], plugins) + def assume_role_with_saml( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssumeRoleWithSAMLOutput: + return self._invoke( + self._select_input(_models.ASSUME_ROLE_WITH_SAML, args, kwargs), + _models.ASSUME_ROLE_WITH_SAML, + [], + plugins, + ) + + @_overload + def assume_role_with_web_identity( + self, + request: _models.AssumeRoleWithWebIdentityInput + | _models.AssumeRoleWithWebIdentityInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssumeRoleWithWebIdentityOutput: ... + + @_overload def assume_role_with_web_identity( - self, input: AssumeRoleWithWebIdentityInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssumeRoleWithWebIdentityInputDict], ) -> AssumeRoleWithWebIdentityOutput: """ Returns a set of temporary security credentials for users who have been @@ -553,8 +599,6 @@ def assume_role_with_web_identity( from these providers to get and use temporary security credentials. Args: - input: - An instance of `AssumeRoleWithWebIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -564,10 +608,33 @@ def assume_role_with_web_identity( Returns: An instance of `AssumeRoleWithWebIdentityOutput`. """ - return self._invoke(input, _models.ASSUME_ROLE_WITH_WEB_IDENTITY, [], plugins) + def assume_role_with_web_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssumeRoleWithWebIdentityOutput: + return self._invoke( + self._select_input(_models.ASSUME_ROLE_WITH_WEB_IDENTITY, args, kwargs), + _models.ASSUME_ROLE_WITH_WEB_IDENTITY, + [], + plugins, + ) + + @_overload def assume_root( - self, input: AssumeRootInput, plugins: list[Plugin] | None = None + self, + request: _models.AssumeRootInput | _models.AssumeRootInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AssumeRootOutput: ... + + @_overload + def assume_root( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.AssumeRootInputDict], ) -> AssumeRootOutput: """ Returns a set of short term credentials you can use to perform @@ -605,8 +672,6 @@ def assume_root( in the *Organizations User Guide* for more information on SCPs. Args: - input: - An instance of `AssumeRootInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -616,12 +681,34 @@ def assume_root( Returns: An instance of `AssumeRootOutput`. """ - return self._invoke(input, _models.ASSUME_ROOT, [], plugins) + def assume_root( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AssumeRootOutput: + return self._invoke( + self._select_input(_models.ASSUME_ROOT, args, kwargs), + _models.ASSUME_ROOT, + [], + plugins, + ) + + @_overload def decode_authorization_message( self, - input: DecodeAuthorizationMessageInput, + request: _models.DecodeAuthorizationMessageInput + | _models.DecodeAuthorizationMessageInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> DecodeAuthorizationMessageOutput: ... + + @_overload + def decode_authorization_message( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.DecodeAuthorizationMessageInputDict], ) -> DecodeAuthorizationMessageOutput: """ Decodes additional information about the authorization status of a @@ -665,8 +752,6 @@ def decode_authorization_message( - The values of condition keys in the context of the user's request. Args: - input: - An instance of `DecodeAuthorizationMessageInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -676,10 +761,33 @@ def decode_authorization_message( Returns: An instance of `DecodeAuthorizationMessageOutput`. """ - return self._invoke(input, _models.DECODE_AUTHORIZATION_MESSAGE, [], plugins) + def decode_authorization_message( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> DecodeAuthorizationMessageOutput: + return self._invoke( + self._select_input(_models.DECODE_AUTHORIZATION_MESSAGE, args, kwargs), + _models.DECODE_AUTHORIZATION_MESSAGE, + [], + plugins, + ) + + @_overload + def get_access_key_info( + self, + request: _models.GetAccessKeyInfoInput | _models.GetAccessKeyInfoInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetAccessKeyInfoOutput: ... + + @_overload def get_access_key_info( - self, input: GetAccessKeyInfoInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetAccessKeyInfoInputDict], ) -> GetAccessKeyInfoOutput: """ Returns the account identifier for the specified access key ID. @@ -712,8 +820,6 @@ def get_access_key_info( might return an error that the key doesn't exist. Args: - input: - An instance of `GetAccessKeyInfoInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -723,12 +829,33 @@ def get_access_key_info( Returns: An instance of `GetAccessKeyInfoOutput`. """ - return self._invoke(input, _models.GET_ACCESS_KEY_INFO, [], plugins) + def get_access_key_info( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetAccessKeyInfoOutput: + return self._invoke( + self._select_input(_models.GET_ACCESS_KEY_INFO, args, kwargs), + _models.GET_ACCESS_KEY_INFO, + [], + plugins, + ) + + @_overload def get_caller_identity( self, - input: GetCallerIdentityInput | None = None, + request: _models.GetCallerIdentityInput | _models.GetCallerIdentityInputDict, + /, + *, plugins: list[Plugin] | None = None, + ) -> GetCallerIdentityOutput: ... + + @_overload + def get_caller_identity( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetCallerIdentityInputDict], ) -> GetCallerIdentityOutput: """ Returns details about the IAM user or role whose credentials are used to @@ -745,8 +872,6 @@ def get_caller_identity( in the *IAM User Guide*. Args: - input: - An instance of `GetCallerIdentityInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -756,10 +881,34 @@ def get_caller_identity( Returns: An instance of `GetCallerIdentityOutput`. """ - return self._invoke(input, _models.GET_CALLER_IDENTITY, [], plugins) + def get_caller_identity( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetCallerIdentityOutput: + return self._invoke( + self._select_input(_models.GET_CALLER_IDENTITY, args, kwargs), + _models.GET_CALLER_IDENTITY, + [], + plugins, + ) + + @_overload def get_delegated_access_token( - self, input: GetDelegatedAccessTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetDelegatedAccessTokenInput + | _models.GetDelegatedAccessTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetDelegatedAccessTokenOutput: ... + + @_overload + def get_delegated_access_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetDelegatedAccessTokenInputDict], ) -> GetDelegatedAccessTokenOutput: """ Exchanges a trade-in token for temporary Amazon Web Services credentials @@ -769,8 +918,6 @@ def get_delegated_access_token( Services resources. Args: - input: - An instance of `GetDelegatedAccessTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -780,10 +927,33 @@ def get_delegated_access_token( Returns: An instance of `GetDelegatedAccessTokenOutput`. """ - return self._invoke(input, _models.GET_DELEGATED_ACCESS_TOKEN, [], plugins) + def get_delegated_access_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetDelegatedAccessTokenOutput: + return self._invoke( + self._select_input(_models.GET_DELEGATED_ACCESS_TOKEN, args, kwargs), + _models.GET_DELEGATED_ACCESS_TOKEN, + [], + plugins, + ) + + @_overload def get_federation_token( - self, input: GetFederationTokenInput, plugins: list[Plugin] | None = None + self, + request: _models.GetFederationTokenInput | _models.GetFederationTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetFederationTokenOutput: ... + + @_overload + def get_federation_token( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetFederationTokenInputDict], ) -> GetFederationTokenOutput: """ Returns a set of temporary security credentials (consisting of an access @@ -903,8 +1073,6 @@ def get_federation_token( the user tag. Args: - input: - An instance of `GetFederationTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -914,12 +1082,33 @@ def get_federation_token( Returns: An instance of `GetFederationTokenOutput`. """ - return self._invoke(input, _models.GET_FEDERATION_TOKEN, [], plugins) + def get_federation_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetFederationTokenOutput: + return self._invoke( + self._select_input(_models.GET_FEDERATION_TOKEN, args, kwargs), + _models.GET_FEDERATION_TOKEN, + [], + plugins, + ) + + @_overload + def get_session_token( + self, + request: _models.GetSessionTokenInput | _models.GetSessionTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetSessionTokenOutput: ... + + @_overload def get_session_token( self, - input: GetSessionTokenInput | None = None, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetSessionTokenInputDict], ) -> GetSessionTokenOutput: """ Returns a set of temporary credentials for an Amazon Web Services @@ -993,8 +1182,6 @@ def get_session_token( in the *IAM User Guide*. Args: - input: - An instance of `GetSessionTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1004,10 +1191,34 @@ def get_session_token( Returns: An instance of `GetSessionTokenOutput`. """ - return self._invoke(input, _models.GET_SESSION_TOKEN, [], plugins) + def get_session_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetSessionTokenOutput: + return self._invoke( + self._select_input(_models.GET_SESSION_TOKEN, args, kwargs), + _models.GET_SESSION_TOKEN, + [], + plugins, + ) + + @_overload + def get_web_identity_token( + self, + request: _models.GetWebIdentityTokenInput + | _models.GetWebIdentityTokenInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetWebIdentityTokenOutput: ... + + @_overload def get_web_identity_token( - self, input: GetWebIdentityTokenInput, plugins: list[Plugin] | None = None + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetWebIdentityTokenInputDict], ) -> GetWebIdentityTokenOutput: """ Returns a signed JSON Web Token (JWT) that represents the calling Amazon @@ -1021,8 +1232,6 @@ def get_web_identity_token( endpoint. Args: - input: - An instance of `GetWebIdentityTokenInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -1032,7 +1241,16 @@ def get_web_identity_token( Returns: An instance of `GetWebIdentityTokenOutput`. """ - return self._invoke(input, _models.GET_WEB_IDENTITY_TOKEN, [], plugins) + + def get_web_identity_token( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetWebIdentityTokenOutput: + return self._invoke( + self._select_input(_models.GET_WEB_IDENTITY_TOKEN, args, kwargs), + _models.GET_WEB_IDENTITY_TOKEN, + [], + plugins, + ) def _new_config(self) -> STSConfig: return STSConfig.resolve() diff --git a/clients/aws-sdk-sts/src/aws_sdk_sts/models.pyi b/clients/aws-sdk-sts/src/aws_sdk_sts/models.pyi index b9c053608..0e17015f4 100644 --- a/clients/aws-sdk-sts/src/aws_sdk_sts/models.pyi +++ b/clients/aws-sdk-sts/src/aws_sdk_sts/models.pyi @@ -1,8 +1,9 @@ # Code generated by smithy-python-codegen DO NOT EDIT. +from collections.abc import Sequence from dataclasses import dataclass from datetime import datetime -from typing import Self +from typing import Required, Self, TypedDict from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -330,6 +331,289 @@ class AssumeRoleInput(_SerdeShape): When set to 0 or not specified, the session token size is unchanged. """ +class AssumeRoleInputDict(TypedDict, total=False): + """Dictionary form of `AssumeRoleInput`.""" + + role_arn: Required[str] + """The Amazon Resource Name (ARN) of the role to assume.""" + role_session_name: Required[str] + """ + An identifier for the assumed role session. + + Use the role session name to uniquely identify a session when the same + role is assumed by different principals or for different reasons. In + cross-account scenarios, the role session name is visible to, and can be + logged by the account that owns the role. The role session name is also + used in the ARN of the assumed role principal. This means that + subsequent cross-account API requests that use the temporary security + credentials will expose the role session name to the external account in + their CloudTrail logs. + + For security purposes, administrators can view this field in [CloudTrail + logs](https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-tempcreds) + to help identify who performed an action in Amazon Web Services. Your + administrator might require that you specify your user name as the + session name when you assume the role. For more information, see + [`sts:RoleSessionName`](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_iam-condition-keys.html#ck_rolesessionname) + . + + The regex used to validate this parameter is a string of characters + consisting of upper- and lower-case alphanumeric characters with no + spaces. You can also include underscores or any of the following + characters: +=,.@- + """ + policy_arns: Sequence[PolicyDescriptorType | PolicyDescriptorTypeDict] | None + """ + The Amazon Resource Names (ARNs) of the IAM managed policies that you + want to use as managed session policies. The policies must exist in the + same account as the role. + + This parameter is optional. You can provide up to 10 managed policy + ARNs. However, the plaintext that you use for both inline and managed + session policies can't exceed 2,048 characters. For more information + about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services + Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the Amazon Web Services General Reference. + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. + + Passing policies to this operation returns new temporary credentials. + The resulting session's permissions are the intersection of the role's + identity-based policy and the session policies. You can use the role's + temporary credentials in subsequent Amazon Web Services API calls to + access resources in the account that owns the role. You cannot use + session policies to grant more permissions than those allowed by the + identity-based policy of the role that is being assumed. For more + information, see [Session + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + in the *IAM User Guide*. + """ + policy: str | None + """ + An IAM policy in JSON format that you want to use as an inline session + policy. + + This parameter is optional. Passing policies to this operation returns + new temporary credentials. The resulting session's permissions are the + intersection of the role's identity-based policy and the session + policies. You can use the role's temporary credentials in subsequent + Amazon Web Services API calls to access resources in the account that + owns the role. You cannot use session policies to grant more permissions + than those allowed by the identity-based policy of the role that is + being assumed. For more information, see [Session + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + in the *IAM User Guide*. + + The plaintext that you use for both inline and managed session policies + can't exceed 2,048 characters. The JSON policy characters can be any + ASCII character from the space character to the end of the valid + character list (\\u0020 through \\u00FF). It can also include the tab + (\\u0009), linefeed (\\u000A), and carriage return (\\u000D) characters. + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. + + For more information about role session permissions, see [Session + policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session). + """ + duration_seconds: int | None + """ + The duration, in seconds, of the role session. The value specified can + range from 900 seconds (15 minutes) up to the maximum session duration + set for the role. The maximum session duration setting can have a value + from 1 hour to 12 hours. If you specify a value higher than this setting + or the administrator setting (whichever is lower), the operation fails. + For example, if you specify a session duration of 12 hours, but your + administrator set the maximum session duration to 6 hours, your + operation fails. + + Role chaining limits your Amazon Web Services CLI or Amazon Web Services + API role session to a maximum of one hour. When you use the `AssumeRole` + API operation to assume a role, you can specify the duration of your + role session with the `DurationSeconds` parameter. You can specify a + parameter value of up to 43200 seconds (12 hours), depending on the + maximum session duration setting for your role. However, if you assume a + role using role chaining and provide a `DurationSeconds` parameter value + greater than one hour, the operation fails. To learn how to view the + maximum value for your role, see [Update the maximum session duration + for a + role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_update-role-settings.html#id_roles_update-session-duration). + + By default, the value is set to `3600` seconds. + + Note: + The `DurationSeconds` parameter is separate from the duration of a + console session that you might request using the returned credentials. + The request to the federation endpoint for a console sign-in token takes + a `SessionDuration` parameter that specifies the maximum length of the + console session. For more information, see [Creating a URL that Enables + Federated Users to Access the Amazon Web Services Management + Console](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html) + in the *IAM User Guide*. + """ + tags: Sequence[Tag | TagDict] | None + """ + A list of session tags that you want to pass. Each session tag consists + of a key name and an associated value. For more information about + session tags, see [Tagging Amazon Web Services STS + Sessions](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html) + in the *IAM User Guide*. + + This parameter is optional. You can pass up to 50 session tags. The + plaintext session tag keys can't exceed 128 characters, and the values + can't exceed 256 characters. For these and additional limits, see [IAM + and STS Character + Limits](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length) + in the *IAM User Guide*. + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. + + You can pass a session tag with the same key as a tag that is already + attached to the role. When you do, session tags override a role tag with + the same key. + + Tag key--value pairs are not case sensitive, but case is preserved. This + means that you cannot have separate `Department` and `department` tag + keys. Assume that the role has the `Department`=`Marketing` tag and you + pass the `department`=`engineering` session tag. `Department` and + `department` are not saved as separate tags, and the session tag passed + in the request takes precedence over the role tag. + + Additionally, if you used temporary credentials to perform this + operation, the new session inherits any transitive session tags from the + calling session. If you pass a session tag with the same key as an + inherited tag, the operation fails. To view the inherited tags for a + session, see the CloudTrail logs. For more information, see [Viewing + Session Tags in + CloudTrail](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_ctlogs) + in the *IAM User Guide*. + """ + transitive_tag_keys: Sequence[str] | None + """ + A list of keys for session tags that you want to set as transitive. If + you set a tag key as transitive, the corresponding key and value passes + to subsequent sessions in a role chain. For more information, see + [Chaining Roles with Session + Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining) + in the *IAM User Guide*. + + This parameter is optional. The transitive status of a session tag does + not impact its packed binary size. + + If you choose not to specify a transitive tag key, then no tags are + passed from this session to any subsequent sessions. + """ + external_id: str | None + """ + A unique identifier that might be required when you assume a role in + another account. If the administrator of the account to which the role + belongs provided you with an external ID, then provide that value in the + `ExternalId` parameter. This value can be any string, such as a + passphrase or account number. A cross-account role is usually set up to + trust everyone in an account. Therefore, the administrator of the + trusting account might send an external ID to the administrator of the + trusted account. That way, only someone with the ID can assume the role, + rather than everyone in the account. For more information about the + external ID, see [How to Use an External ID When Granting Access to Your + Amazon Web Services Resources to a Third + Party](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) + in the *IAM User Guide*. + + The regex used to validate this parameter is a string of characters + consisting of upper- and lower-case alphanumeric characters with no + spaces. You can also include underscores or any of the following + characters: +=,.@:\\/- + """ + serial_number: str | None + """ + The identification number of the MFA device that is associated with the + user who is making the `AssumeRole` call. Specify this value if the + trust policy of the role being assumed includes a condition that + requires MFA authentication. The value is either the serial number for a + hardware device (such as `GAHT12345678`) or an Amazon Resource Name + (ARN) for a virtual device (such as + `arn:aws:iam::123456789012:mfa/user`). + + The regex used to validate this parameter is a string of characters + consisting of upper- and lower-case alphanumeric characters with no + spaces. You can also include underscores or any of the following + characters: +=/:,.@- + """ + token_code: str | None + """ + The value provided by the MFA device, if the trust policy of the role + being assumed requires MFA. (In other words, if the policy includes a + condition that tests for MFA). If the role being assumed requires MFA + and if the `TokenCode` value is missing or expired, the `AssumeRole` + call returns an \"access denied\" error. + + The format for this parameter, as described by its regex pattern, is a + sequence of six numeric digits. + """ + source_identity: str | None + """ + The source identity specified by the principal that is calling the + `AssumeRole` operation. The source identity value persists across + [chained + role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html#iam-term-role-chaining) + sessions. + + You can require users to specify a source identity when they assume a + role. You do this by using the + [`sts:SourceIdentity`](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceidentity) + condition key in a role trust policy. You can use source identity + information in CloudTrail logs to determine who took actions with a + role. You can use the `aws:SourceIdentity` condition key to further + control access to Amazon Web Services resources based on the value of + source identity. For more information about using source identity, see + [Monitor and control actions taken with assumed + roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html) + in the *IAM User Guide*. + + The regex used to validate this parameter is a string of characters + consisting of upper- and lower-case alphanumeric characters with no + spaces. You can also include underscores or any of the following + characters: +=,.@-. You cannot use a value that begins with the text + `aws:`. This prefix is reserved for Amazon Web Services internal use. + """ + provided_contexts: Sequence[ProvidedContext | ProvidedContextDict] | None + """ + A list of previously acquired trusted context assertions in the format + of a JSON array. The trusted context assertion is signed and encrypted + by Amazon Web Services STS. + + The following is an example of a `ProvidedContext` value that includes a + single trusted context assertion and the ARN of the context provider + from which the trusted context assertion was generated. + + `[{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}]` + """ + minimum_session_token_size: int | None + """ + The minimum size, in bytes, of the session token that STS issues for the + request. STS increases the session token to at least this size, + regardless of its actual content. The value must not exceed 4,096 bytes. + When set to 0 or not specified, the session token size is unchanged. + """ + @dataclass(kw_only=True) class AssumeRoleOutput(_SerdeShape): """ @@ -525,6 +809,127 @@ class AssumeRoleWithSAMLInput(_SerdeShape): When set to 0 or not specified, the session token size is unchanged. """ +class AssumeRoleWithSAMLInputDict(TypedDict, total=False): + """Dictionary form of `AssumeRoleWithSAMLInput`.""" + + role_arn: Required[str] + """The Amazon Resource Name (ARN) of the role that the caller is assuming.""" + principal_arn: Required[str] + """ + The Amazon Resource Name (ARN) of the SAML provider in IAM that + describes the IdP. + """ + saml_assertion: Required[str] + """ + The base64 encoded SAML authentication response provided by the IdP. + + For more information, see [Configuring a Relying Party and Adding + Claims](https://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html) + in the *IAM User Guide*. + """ + policy_arns: Sequence[PolicyDescriptorType | PolicyDescriptorTypeDict] | None + """ + The Amazon Resource Names (ARNs) of the IAM managed policies that you + want to use as managed session policies. The policies must exist in the + same account as the role. + + This parameter is optional. You can provide up to 10 managed policy + ARNs. However, the plaintext that you use for both inline and managed + session policies can't exceed 2,048 characters. For more information + about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services + Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the Amazon Web Services General Reference. + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. + + Passing policies to this operation returns new temporary credentials. + The resulting session's permissions are the intersection of the role's + identity-based policy and the session policies. You can use the role's + temporary credentials in subsequent Amazon Web Services API calls to + access resources in the account that owns the role. You cannot use + session policies to grant more permissions than those allowed by the + identity-based policy of the role that is being assumed. For more + information, see [Session + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + in the *IAM User Guide*. + """ + policy: str | None + """ + An IAM policy in JSON format that you want to use as an inline session + policy. + + This parameter is optional. Passing policies to this operation returns + new temporary credentials. The resulting session's permissions are the + intersection of the role's identity-based policy and the session + policies. You can use the role's temporary credentials in subsequent + Amazon Web Services API calls to access resources in the account that + owns the role. You cannot use session policies to grant more permissions + than those allowed by the identity-based policy of the role that is + being assumed. For more information, see [Session + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + in the *IAM User Guide*. + + The plaintext that you use for both inline and managed session policies + can't exceed 2,048 characters. The JSON policy characters can be any + ASCII character from the space character to the end of the valid + character list (\\u0020 through \\u00FF). It can also include the tab + (\\u0009), linefeed (\\u000A), and carriage return (\\u000D) characters. + + For more information about role session permissions, see [Session + policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session). + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. + """ + duration_seconds: int | None + """ + The duration, in seconds, of the role session. Your role session lasts + for the duration that you specify for the `DurationSeconds` parameter, + or until the time specified in the SAML authentication response's + `SessionNotOnOrAfter` value, whichever is shorter. You can provide a + `DurationSeconds` value from 900 seconds (15 minutes) up to the maximum + session duration setting for the role. This setting can have a value + from 1 hour to 12 hours. If you specify a value higher than this + setting, the operation fails. For example, if you specify a session + duration of 12 hours, but your administrator set the maximum session + duration to 6 hours, your operation fails. To learn how to view the + maximum value for your role, see [View the Maximum Session Duration + Setting for a + Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session) + in the *IAM User Guide*. + + By default, the value is set to `3600` seconds. + + Note: + The `DurationSeconds` parameter is separate from the duration of a + console session that you might request using the returned credentials. + The request to the federation endpoint for a console sign-in token takes + a `SessionDuration` parameter that specifies the maximum length of the + console session. For more information, see [Creating a URL that Enables + Federated Users to Access the Amazon Web Services Management + Console](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html) + in the *IAM User Guide*. + """ + minimum_session_token_size: int | None + """ + The minimum size, in bytes, of the session token that STS issues for the + request. STS increases the session token to at least this size, + regardless of its actual content. The value must not exceed 4,096 bytes. + When set to 0 or not specified, the session token size is unchanged. + """ + @dataclass(kw_only=True) class AssumeRoleWithSAMLOutput(_SerdeShape): """ @@ -619,34 +1024,200 @@ class AssumeRoleWithSAMLOutput(_SerdeShape): roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html) in the *IAM User Guide*. - The regex used to validate this parameter is a string of characters - consisting of upper- and lower-case alphanumeric characters with no - spaces. You can also include underscores or any of the following - characters: =,.@- - """ - session_token_utilization: int | None = ... - """ - The percentage (0-100) of the maximum allowed session token size that - the returned session token consumes. + The regex used to validate this parameter is a string of characters + consisting of upper- and lower-case alphanumeric characters with no + spaces. You can also include underscores or any of the following + characters: =,.@- + """ + session_token_utilization: int | None = ... + """ + The percentage (0-100) of the maximum allowed session token size that + the returned session token consumes. + """ + session_token_size: int | None = ... + """ + The size, in bytes, of the session token returned in the Credentials for + this response. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class AssumeRoleWithWebIdentityInput(_SerdeShape): + """Dataclass for AssumeRoleWithWebIdentityInput structure.""" + + role_arn: str | None = ... + """ + The Amazon Resource Name (ARN) of the role that the caller is assuming. + + Note: + Additional considerations apply to Amazon Cognito identity pools that + assume [cross-account IAM + roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-cross-account-resource-access.html). + The trust policies of these roles must accept the + `cognito-identity.amazonaws.com` service principal and must contain the + `cognito-identity.amazonaws.com:aud` condition key to restrict role + assumption to users from your intended identity pools. A policy that + trusts Amazon Cognito identity pools without this condition creates a + risk that a user from an unintended identity pool can assume the role. + For more information, see [Trust policies for IAM roles in Basic + (Classic) + authentication](https://docs.aws.amazon.com/cognito/latest/developerguide/iam-roles.html#trust-policies) + in the *Amazon Cognito Developer Guide*. + """ + role_session_name: str | None = ... + """ + An identifier for the assumed role session. Typically, you pass the name + or identifier that is associated with the user who is using your + application. That way, the temporary security credentials that your + application will use are associated with that user. This session name is + included as part of the ARN and assumed role ID in the `AssumedRoleUser` + response element. + + For security purposes, administrators can view this field in [CloudTrail + logs](https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html#cloudtrail-integration_signin-tempcreds) + to help identify who performed an action in Amazon Web Services. Your + administrator might require that you specify your user name as the + session name when you assume the role. For more information, see + [`sts:RoleSessionName`](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_iam-condition-keys.html#ck_rolesessionname) + . + + The regex used to validate this parameter is a string of characters + consisting of upper- and lower-case alphanumeric characters with no + spaces. You can also include underscores or any of the following + characters: =,.@- + """ + web_identity_token: str | None = ... + """ + The OAuth 2.0 access token or OpenID Connect ID token that is provided + by the identity provider. Your application must get this token by + authenticating the user who is using your application with a web + identity provider before the application makes an + `AssumeRoleWithWebIdentity` call. Timestamps in the token must be + formatted as either an integer or a long integer. Tokens must be signed + using either RSA keys (RS256, RS384, or RS512) or ECDSA keys (ES256, + ES384, or ES512). + """ + provider_id: str | None = ... + """ + The fully qualified host component of the domain name of the OAuth 2.0 + identity provider. Do not specify this value for an OpenID Connect + identity provider. + + Currently `www.amazon.com` and `graph.facebook.com` are the only + supported identity providers for OAuth 2.0 access tokens. Do not include + URL schemes and port numbers. + + Do not specify this value for OpenID Connect ID tokens. + """ + policy_arns: list[PolicyDescriptorType] | None = ... + """ + The Amazon Resource Names (ARNs) of the IAM managed policies that you + want to use as managed session policies. The policies must exist in the + same account as the role. + + This parameter is optional. You can provide up to 10 managed policy + ARNs. However, the plaintext that you use for both inline and managed + session policies can't exceed 2,048 characters. For more information + about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services + Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the Amazon Web Services General Reference. + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. + + Passing policies to this operation returns new temporary credentials. + The resulting session's permissions are the intersection of the role's + identity-based policy and the session policies. You can use the role's + temporary credentials in subsequent Amazon Web Services API calls to + access resources in the account that owns the role. You cannot use + session policies to grant more permissions than those allowed by the + identity-based policy of the role that is being assumed. For more + information, see [Session + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + in the *IAM User Guide*. + """ + policy: str | None = ... + """ + An IAM policy in JSON format that you want to use as an inline session + policy. + + This parameter is optional. Passing policies to this operation returns + new temporary credentials. The resulting session's permissions are the + intersection of the role's identity-based policy and the session + policies. You can use the role's temporary credentials in subsequent + Amazon Web Services API calls to access resources in the account that + owns the role. You cannot use session policies to grant more permissions + than those allowed by the identity-based policy of the role that is + being assumed. For more information, see [Session + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + in the *IAM User Guide*. + + The plaintext that you use for both inline and managed session policies + can't exceed 2,048 characters. The JSON policy characters can be any + ASCII character from the space character to the end of the valid + character list (\\u0020 through \\u00FF). It can also include the tab + (\\u0009), linefeed (\\u000A), and carriage return (\\u000D) characters. + + For more information about role session permissions, see [Session + policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session). + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. """ - session_token_size: int | None = ... + duration_seconds: int | None = ... """ - The size, in bytes, of the session token returned in the Credentials for - this response. + The duration, in seconds, of the role session. The value can range from + 900 seconds (15 minutes) up to the maximum session duration setting for + the role. This setting can have a value from 1 hour to 12 hours. If you + specify a value higher than this setting, the operation fails. For + example, if you specify a session duration of 12 hours, but your + administrator set the maximum session duration to 6 hours, your + operation fails. To learn how to view the maximum value for your role, + see [View the Maximum Session Duration Setting for a + Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session) + in the *IAM User Guide*. + + By default, the value is set to `3600` seconds. + + Note: + The `DurationSeconds` parameter is separate from the duration of a + console session that you might request using the returned credentials. + The request to the federation endpoint for a console sign-in token takes + a `SessionDuration` parameter that specifies the maximum length of the + console session. For more information, see [Creating a URL that Enables + Federated Users to Access the Amazon Web Services Management + Console](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html) + in the *IAM User Guide*. """ - response_metadata: ResponseMetadata = ... + minimum_session_token_size: int | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The minimum size, in bytes, of the session token that STS issues for the + request. STS increases the session token to at least this size, + regardless of its actual content. The value must not exceed 4,096 bytes. + When set to 0 or not specified, the session token size is unchanged. """ -@dataclass(kw_only=True) -class AssumeRoleWithWebIdentityInput(_SerdeShape): - """Dataclass for AssumeRoleWithWebIdentityInput structure.""" +class AssumeRoleWithWebIdentityInputDict(TypedDict, total=False): + """Dictionary form of `AssumeRoleWithWebIdentityInput`.""" - role_arn: str | None = ... + role_arn: Required[str] """ The Amazon Resource Name (ARN) of the role that the caller is assuming. @@ -665,7 +1236,7 @@ class AssumeRoleWithWebIdentityInput(_SerdeShape): authentication](https://docs.aws.amazon.com/cognito/latest/developerguide/iam-roles.html#trust-policies) in the *Amazon Cognito Developer Guide*. """ - role_session_name: str | None = ... + role_session_name: Required[str] """ An identifier for the assumed role session. Typically, you pass the name or identifier that is associated with the user who is using your @@ -687,7 +1258,7 @@ class AssumeRoleWithWebIdentityInput(_SerdeShape): spaces. You can also include underscores or any of the following characters: =,.@- """ - web_identity_token: str | None = ... + web_identity_token: Required[str] """ The OAuth 2.0 access token or OpenID Connect ID token that is provided by the identity provider. Your application must get this token by @@ -698,7 +1269,7 @@ class AssumeRoleWithWebIdentityInput(_SerdeShape): using either RSA keys (RS256, RS384, or RS512) or ECDSA keys (ES256, ES384, or ES512). """ - provider_id: str | None = ... + provider_id: str | None """ The fully qualified host component of the domain name of the OAuth 2.0 identity provider. Do not specify this value for an OpenID Connect @@ -710,7 +1281,7 @@ class AssumeRoleWithWebIdentityInput(_SerdeShape): Do not specify this value for OpenID Connect ID tokens. """ - policy_arns: list[PolicyDescriptorType] | None = ... + policy_arns: Sequence[PolicyDescriptorType | PolicyDescriptorTypeDict] | None """ The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as managed session policies. The policies must exist in the @@ -743,7 +1314,7 @@ class AssumeRoleWithWebIdentityInput(_SerdeShape): Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) in the *IAM User Guide*. """ - policy: str | None = ... + policy: str | None """ An IAM policy in JSON format that you want to use as an inline session policy. @@ -776,7 +1347,7 @@ class AssumeRoleWithWebIdentityInput(_SerdeShape): `PackedPolicySize` response element indicates by percentage how close the policies and tags for your request are to the upper size limit. """ - duration_seconds: int | None = ... + duration_seconds: int | None """ The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) up to the maximum session duration setting for @@ -801,7 +1372,7 @@ class AssumeRoleWithWebIdentityInput(_SerdeShape): Console](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html) in the *IAM User Guide*. """ - minimum_session_token_size: int | None = ... + minimum_session_token_size: int | None """ The minimum size, in bytes, of the session token that STS issues for the request. STS increases the session token to at least this size, @@ -952,6 +1523,44 @@ class AssumeRootInput(_SerdeShape): When set to 0 or not specified, the session token size is unchanged. """ +class AssumeRootInputDict(TypedDict, total=False): + """Dictionary form of `AssumeRootInput`.""" + + target_principal: Required[str] + """The member account principal ARN or account ID.""" + task_policy_arn: Required[PolicyDescriptorType | PolicyDescriptorTypeDict] + """ + The identity based policy that scopes the session to the privileged + tasks that can be performed. You must use one of following Amazon Web + Services managed policies to scope root session actions: + + - [IAMAuditRootUserCredentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-IAMAuditRootUserCredentials) + + - [IAMCreateRootUserPassword](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-IAMCreateRootUserPassword) + + - [IAMDeleteRootUserCredentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-IAMDeleteRootUserCredentials) + + - [S3UnlockBucketPolicy](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-S3UnlockBucketPolicy) + + - [SQSUnlockQueuePolicy](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-iam-awsmanpol.html#security-iam-awsmanpol-SQSUnlockQueuePolicy) + """ + duration_seconds: int | None + """ + The duration, in seconds, of the privileged session. The value can range + from 0 seconds up to the maximum session duration of 900 seconds (15 + minutes). If you specify a value higher than this setting, the operation + fails. + + By default, the value is set to `900` seconds. + """ + minimum_session_token_size: int | None + """ + The minimum size, in bytes, of the session token that STS issues for the + request. STS increases the session token to at least this size, + regardless of its actual content. The value must not exceed 4,096 bytes. + When set to 0 or not specified, the session token size is unchanged. + """ + @dataclass(kw_only=True) class AssumeRootOutput(_SerdeShape): """Dataclass for AssumeRootOutput structure.""" @@ -1023,6 +1632,12 @@ class DecodeAuthorizationMessageInput(_SerdeShape): encoded_message: str | None = ... """The encoded message that was returned with the response.""" +class DecodeAuthorizationMessageInputDict(TypedDict, total=False): + """Dictionary form of `DecodeAuthorizationMessageInput`.""" + + encoded_message: Required[str] + """The encoded message that was returned with the response.""" + @dataclass(kw_only=True) class DecodeAuthorizationMessageOutput(_SerdeShape): """ @@ -1106,6 +1721,17 @@ class GetAccessKeyInfoInput(_SerdeShape): that can consist of any upper- or lowercase letter or digit. """ +class GetAccessKeyInfoInputDict(TypedDict, total=False): + """Dictionary form of `GetAccessKeyInfoInput`.""" + + access_key_id: Required[str] + """ + The identifier of an access key. + + This parameter allows (through its regex pattern) a string of characters + that can consist of any upper- or lowercase letter or digit. + """ + @dataclass(kw_only=True) class GetAccessKeyInfoOutput(_SerdeShape): """Dataclass for GetAccessKeyInfoOutput structure.""" @@ -1120,83 +1746,251 @@ class GetAccessKeyInfoOutput(_SerdeShape): optional. """ -@dataclass(kw_only=True) -class GetCallerIdentityInput(_SerdeShape): - """Dataclass for GetCallerIdentityInput structure.""" +@dataclass(kw_only=True) +class GetCallerIdentityInput(_SerdeShape): + """Dataclass for GetCallerIdentityInput structure.""" + +class GetCallerIdentityInputDict(TypedDict, total=False): + """Dictionary form of `GetCallerIdentityInput`.""" + +@dataclass(kw_only=True) +class GetCallerIdentityOutput(_SerdeShape): + """ + Contains the response to a successful GetCallerIdentity request, + including information about the entity making the request. + """ + + user_id: str | None = ... + """ + The unique identifier of the calling entity. The exact value depends on + the type of entity that is making the call. The values returned are + those listed in the **aws:userid** column in the [Principal + table](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable) + found on the **Policy Variables** reference page in the *IAM User + Guide*. + """ + account: str | None = ... + """ + The Amazon Web Services account ID number of the account that owns or + contains the calling entity. + """ + arn: str | None = ... + """The Amazon Web Services ARN associated with the calling entity.""" + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetDelegatedAccessTokenInput(_SerdeShape): + """Dataclass for GetDelegatedAccessTokenInput structure.""" + + trade_in_token: str | None = ... + """ + The token to exchange for temporary Amazon Web Services credentials. + This token must be valid and unexpired at the time of the request. + """ + +class GetDelegatedAccessTokenInputDict(TypedDict, total=False): + """Dictionary form of `GetDelegatedAccessTokenInput`.""" + + trade_in_token: Required[str] + """ + The token to exchange for temporary Amazon Web Services credentials. + This token must be valid and unexpired at the time of the request. + """ + +@dataclass(kw_only=True) +class GetDelegatedAccessTokenOutput(_SerdeShape): + """Dataclass for GetDelegatedAccessTokenOutput structure.""" + + credentials: Credentials | None = ... + """Amazon Web Services credentials for API authentication.""" + packed_policy_size: int | None = ... + """ + The percentage of the maximum policy size that is used by the session + policy. The policy size is calculated as the sum of all the session + policies and permission boundaries attached to the session. If the + packed size exceeds 100%, the request fails. + """ + assumed_principal: str | None = ... + """ + The Amazon Resource Name (ARN) of the principal that was assumed when + obtaining the delegated access token. This ARN identifies the IAM entity + whose permissions are granted by the temporary credentials. + """ + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. Use this to + recover the request identifiers a service's support team needs in order + to investigate a call. Members of the metadata are individually + optional. + """ + +@dataclass(kw_only=True) +class GetFederationTokenInput(_SerdeShape): + """Dataclass for GetFederationTokenInput structure.""" + + name: str | None = ... + """ + The name of the federated user. The name is used as an identifier for + the temporary security credentials (such as `Bob`). For example, you can + reference the federated user name in a resource-based policy, such as in + an Amazon S3 bucket policy. + + The regex used to validate this parameter is a string of characters + consisting of upper- and lower-case alphanumeric characters with no + spaces. You can also include underscores or any of the following + characters: =,.@- + """ + policy: str | None = ... + """ + An IAM policy in JSON format that you want to use as an inline session + policy. + + You must pass an inline or managed [session + policy](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + to this operation. You can pass a single JSON policy document to use as + an inline session policy. You can also specify up to 10 managed policy + Amazon Resource Names (ARNs) to use as managed session policies. + + This parameter is optional. However, if you do not pass any session + policies, then the resulting federated user session has no permissions. + + When you pass session policies, the session permissions are the + intersection of the IAM user policies and the session policies that you + pass. This gives you a way to further restrict the permissions for a + federated user. You cannot use session policies to grant more + permissions than those that are defined in the permissions policy of the + IAM user. For more information, see [Session + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + in the *IAM User Guide*. + + The resulting credentials can be used to access a resource that has a + resource-based policy. If that policy specifically references the + federated user session in the `Principal` element of the policy, the + session has the permissions allowed by the policy. These permissions are + granted in addition to the permissions that are granted by the session + policies. + + The plaintext that you use for both inline and managed session policies + can't exceed 2,048 characters. The JSON policy characters can be any + ASCII character from the space character to the end of the valid + character list (\\u0020 through \\u00FF). It can also include the tab + (\\u0009), linefeed (\\u000A), and carriage return (\\u000D) characters. + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. + """ + policy_arns: list[PolicyDescriptorType] | None = ... + """ + The Amazon Resource Names (ARNs) of the IAM managed policies that you + want to use as a managed session policy. The policies must exist in the + same account as the IAM user that is requesting federated access. + + You must pass an inline or managed [session + policy](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + to this operation. You can pass a single JSON policy document to use as + an inline session policy. You can also specify up to 10 managed policy + Amazon Resource Names (ARNs) to use as managed session policies. The + plaintext that you use for both inline and managed session policies + can't exceed 2,048 characters. You can provide up to 10 managed policy + ARNs. For more information about ARNs, see [Amazon Resource Names (ARNs) + and Amazon Web Services Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the Amazon Web Services General Reference. -@dataclass(kw_only=True) -class GetCallerIdentityOutput(_SerdeShape): - """ - Contains the response to a successful GetCallerIdentity request, - including information about the entity making the request. - """ + This parameter is optional. However, if you do not pass any session + policies, then the resulting federated user session has no permissions. - user_id: str | None = ... - """ - The unique identifier of the calling entity. The exact value depends on - the type of entity that is making the call. The values returned are - those listed in the **aws:userid** column in the [Principal - table](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable) - found on the **Policy Variables** reference page in the *IAM User - Guide*. - """ - account: str | None = ... + When you pass session policies, the session permissions are the + intersection of the IAM user policies and the session policies that you + pass. This gives you a way to further restrict the permissions for a + federated user. You cannot use session policies to grant more + permissions than those that are defined in the permissions policy of the + IAM user. For more information, see [Session + Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session) + in the *IAM User Guide*. + + The resulting credentials can be used to access a resource that has a + resource-based policy. If that policy specifically references the + federated user session in the `Principal` element of the policy, the + session has the permissions allowed by the policy. These permissions are + granted in addition to the permissions that are granted by the session + policies. + + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. """ - The Amazon Web Services account ID number of the account that owns or - contains the calling entity. + duration_seconds: int | None = ... """ - arn: str | None = ... - """The Amazon Web Services ARN associated with the calling entity.""" - response_metadata: ResponseMetadata = ... + The duration, in seconds, that the session should last. Acceptable + durations for federation sessions range from 900 seconds (15 minutes) to + 129,600 seconds (36 hours), with 43,200 seconds (12 hours) as the + default. Sessions obtained using root user credentials are restricted to + a maximum of 3,600 seconds (one hour). If the specified duration is + longer than one hour, the session obtained by using root user + credentials defaults to one hour. """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + tags: list[Tag] | None = ... """ + A list of session tags. Each session tag consists of a key name and an + associated value. For more information about session tags, see [Passing + Session Tags in + STS](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html) + in the *IAM User Guide*. -@dataclass(kw_only=True) -class GetDelegatedAccessTokenInput(_SerdeShape): - """Dataclass for GetDelegatedAccessTokenInput structure.""" + This parameter is optional. You can pass up to 50 session tags. The + plaintext session tag keys can't exceed 128 characters and the values + can't exceed 256 characters. For these and additional limits, see [IAM + and STS Character + Limits](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length) + in the *IAM User Guide*. - trade_in_token: str | None = ... - """ - The token to exchange for temporary Amazon Web Services credentials. - This token must be valid and unexpired at the time of the request. - """ + Note: + An Amazon Web Services conversion compresses the passed inline session + policy, managed policy ARNs, and session tags into a packed binary + format that has a separate limit. Your request can fail for this limit + even if your plaintext meets the other requirements. The + `PackedPolicySize` response element indicates by percentage how close + the policies and tags for your request are to the upper size limit. -@dataclass(kw_only=True) -class GetDelegatedAccessTokenOutput(_SerdeShape): - """Dataclass for GetDelegatedAccessTokenOutput structure.""" + You can pass a session tag with the same key as a tag that is already + attached to the user you are federating. When you do, session tags + override a user tag with the same key. - credentials: Credentials | None = ... - """Amazon Web Services credentials for API authentication.""" - packed_policy_size: int | None = ... - """ - The percentage of the maximum policy size that is used by the session - policy. The policy size is calculated as the sum of all the session - policies and permission boundaries attached to the session. If the - packed size exceeds 100%, the request fails. - """ - assumed_principal: str | None = ... - """ - The Amazon Resource Name (ARN) of the principal that was assumed when - obtaining the delegated access token. This ARN identifies the IAM entity - whose permissions are granted by the temporary credentials. + Tag key--value pairs are not case sensitive, but case is preserved. This + means that you cannot have separate `Department` and `department` tag + keys. Assume that the role has the `Department`=`Marketing` tag and you + pass the `department`=`engineering` session tag. `Department` and + `department` are not saved as separate tags, and the session tag passed + in the request takes precedence over the role tag. """ - response_metadata: ResponseMetadata = ... + minimum_session_token_size: int | None = ... """ - Metadata about the response that produced this output. Use this to - recover the request identifiers a service's support team needs in order - to investigate a call. Members of the metadata are individually - optional. + The minimum size, in bytes, of the session token that STS issues for the + request. STS increases the session token to at least this size, + regardless of its actual content. The value must not exceed 4,096 bytes. + When set to 0 or not specified, the session token size is unchanged. """ -@dataclass(kw_only=True) -class GetFederationTokenInput(_SerdeShape): - """Dataclass for GetFederationTokenInput structure.""" +class GetFederationTokenInputDict(TypedDict, total=False): + """Dictionary form of `GetFederationTokenInput`.""" - name: str | None = ... + name: Required[str] """ The name of the federated user. The name is used as an identifier for the temporary security credentials (such as `Bob`). For example, you can @@ -1208,7 +2002,7 @@ class GetFederationTokenInput(_SerdeShape): spaces. You can also include underscores or any of the following characters: =,.@- """ - policy: str | None = ... + policy: str | None """ An IAM policy in JSON format that you want to use as an inline session policy. @@ -1252,7 +2046,7 @@ class GetFederationTokenInput(_SerdeShape): `PackedPolicySize` response element indicates by percentage how close the policies and tags for your request are to the upper size limit. """ - policy_arns: list[PolicyDescriptorType] | None = ... + policy_arns: Sequence[PolicyDescriptorType | PolicyDescriptorTypeDict] | None """ The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as a managed session policy. The policies must exist in the @@ -1297,7 +2091,7 @@ class GetFederationTokenInput(_SerdeShape): `PackedPolicySize` response element indicates by percentage how close the policies and tags for your request are to the upper size limit. """ - duration_seconds: int | None = ... + duration_seconds: int | None """ The duration, in seconds, that the session should last. Acceptable durations for federation sessions range from 900 seconds (15 minutes) to @@ -1307,7 +2101,7 @@ class GetFederationTokenInput(_SerdeShape): longer than one hour, the session obtained by using root user credentials defaults to one hour. """ - tags: list[Tag] | None = ... + tags: Sequence[Tag | TagDict] | None """ A list of session tags. Each session tag consists of a key name and an associated value. For more information about session tags, see [Passing @@ -1341,7 +2135,7 @@ class GetFederationTokenInput(_SerdeShape): `department` are not saved as separate tags, and the session tag passed in the request takes precedence over the role tag. """ - minimum_session_token_size: int | None = ... + minimum_session_token_size: int | None """ The minimum size, in bytes, of the session token that STS issues for the request. STS increases the session token to at least this size, @@ -1449,6 +2243,55 @@ class GetSessionTokenInput(_SerdeShape): When set to 0 or not specified, the session token size is unchanged. """ +class GetSessionTokenInputDict(TypedDict, total=False): + """Dictionary form of `GetSessionTokenInput`.""" + + duration_seconds: int | None + """ + The duration, in seconds, that the credentials should remain valid. + Acceptable durations for IAM user sessions range from 900 seconds (15 + minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12 hours) + as the default. Sessions for Amazon Web Services account owners are + restricted to a maximum of 3,600 seconds (one hour). If the duration is + longer than one hour, the session for Amazon Web Services account owners + defaults to one hour. + """ + serial_number: str | None + """ + The identification number of the MFA device that is associated with the + IAM user who is making the `GetSessionToken` call. Specify this value if + the IAM user has a policy that requires MFA authentication. The value is + either the serial number for a hardware device (such as `GAHT12345678`) + or an Amazon Resource Name (ARN) for a virtual device (such as + `arn:aws:iam::123456789012:mfa/user`). You can find the device for an + IAM user by going to the Amazon Web Services Management Console and + viewing the user's security credentials. + + The regex used to validate this parameter is a string of characters + consisting of upper- and lower-case alphanumeric characters with no + spaces. You can also include underscores or any of the following + characters: =,.@:/- + """ + token_code: str | None + """ + The value provided by the MFA device, if MFA is required. If any policy + requires the IAM user to submit an MFA code, specify this value. If MFA + authentication is required, the user must provide a code when requesting + a set of temporary security credentials. A user who fails to provide the + code receives an \"access denied\" response when requesting resources + that require MFA authentication. + + The format for this parameter, as described by its regex pattern, is a + sequence of six numeric digits. + """ + minimum_session_token_size: int | None + """ + The minimum size, in bytes, of the session token that STS issues for the + request. STS increases the session token to at least this size, + regardless of its actual content. The value must not exceed 4,096 bytes. + When set to 0 or not specified, the session token size is unchanged. + """ + @dataclass(kw_only=True) class GetSessionTokenOutput(_SerdeShape): """ @@ -1518,6 +2361,38 @@ class GetWebIdentityTokenInput(_SerdeShape): downstream service for authorization decisions. """ +class GetWebIdentityTokenInputDict(TypedDict, total=False): + """Dictionary form of `GetWebIdentityTokenInput`.""" + + audience: Required[Sequence[str]] + """ + The intended recipient of the web identity token. This value populates + the `aud` claim in the JWT and should identify the service or + application that will validate and use the token. The external service + should verify this claim to ensure the token was intended for their use. + """ + duration_seconds: int | None + """ + The duration, in seconds, for which the JSON Web Token (JWT) will remain + valid. The value can range from 60 seconds (1 minute) to 3600 seconds (1 + hour). If not specified, the default duration is 300 seconds (5 + minutes). The token is designed to be short-lived and should be used for + proof of identity, then exchanged for credentials or short-lived tokens + in the external service. + """ + signing_algorithm: Required[str] + """ + The cryptographic algorithm to use for signing the JSON Web Token (JWT). + Valid values are RS256 (RSA with SHA-256) and ES384 (ECDSA using P-384 + curve with SHA-384). + """ + tags: Sequence[Tag | TagDict] | None + """ + An optional list of tags to include in the JSON Web Token (JWT). These + tags are added as custom claims to the JWT and can be used by the + downstream service for authorization decisions. + """ + @dataclass(kw_only=True) class GetWebIdentityTokenOutput(_SerdeShape): """Dataclass for GetWebIdentityTokenOutput structure.""" @@ -1709,6 +2584,18 @@ class PolicyDescriptorType(_SerdeShape): in the *Amazon Web Services General Reference*. """ +class PolicyDescriptorTypeDict(TypedDict, total=False): + """Dictionary form of `PolicyDescriptorType`.""" + + arn: str | None + """ + The Amazon Resource Name (ARN) of the IAM managed policy to use as a + session policy for the role. For more information about ARNs, see + [Amazon Resource Names (ARNs) and Amazon Web Services Service + Namespaces](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + in the *Amazon Web Services General Reference*. + """ + @dataclass(kw_only=True) class ProvidedContext(_SerdeShape): """ @@ -1729,6 +2616,21 @@ class ProvidedContext(_SerdeShape): by Amazon Web Services STS. """ +class ProvidedContextDict(TypedDict, total=False): + """Dictionary form of `ProvidedContext`.""" + + provider_arn: str | None + """ + The context provider ARN from which the trusted context assertion was + generated. + """ + context_assertion: str | None + """ + The signed and encrypted trusted context assertion generated by the + context provider. The trusted context assertion is signed and encrypted + by Amazon Web Services STS. + """ + @dataclass(kw_only=True) class RegionDisabledException(ServiceError, _SerdeShape): """ @@ -1797,6 +2699,30 @@ class Tag(_SerdeShape): in the *IAM User Guide*. """ +class TagDict(TypedDict, total=False): + """Dictionary form of `Tag`.""" + + key: Required[str] + """ + The key for a session tag. + + You can pass up to 50 session tags. The plain text session tag keys + can't exceed 128 characters. For these and additional limits, see [IAM + and STS Character + Limits](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length) + in the *IAM User Guide*. + """ + value: Required[str] + """ + The value for a session tag. + + You can pass up to 50 session tags. The plain text session tag values + can't exceed 256 characters. For these and additional limits, see [IAM + and STS Character + Limits](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length) + in the *IAM User Guide*. + """ + ASSUME_ROLE: APIOperation[AssumeRoleInput, AssumeRoleOutput] ASSUME_ROLE_WITH_SAML: APIOperation[AssumeRoleWithSAMLInput, AssumeRoleWithSAMLOutput] ASSUME_ROLE_WITH_WEB_IDENTITY: APIOperation[ diff --git a/clients/aws-sdk-sts/src/aws_sdk_sts/py.typed b/clients/aws-sdk-sts/src/aws_sdk_sts/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-sts/tests/_typecheck.py b/clients/aws-sdk-sts/tests/_typecheck.py index 61e29e2ef..5f6a6fb3e 100644 --- a/clients/aws-sdk-sts/tests/_typecheck.py +++ b/clients/aws-sdk-sts/tests/_typecheck.py @@ -2,40 +2,57 @@ from typing import Any +from aws_sdk_sts.aio.client import AsyncSTSClient +from aws_sdk_sts.client import STSClient from aws_sdk_sts.models import ( AssumeRoleInput, + AssumeRoleInputDict, AssumeRoleOutput, AssumeRoleWithSAMLInput, + AssumeRoleWithSAMLInputDict, AssumeRoleWithSAMLOutput, AssumeRoleWithWebIdentityInput, + AssumeRoleWithWebIdentityInputDict, AssumeRoleWithWebIdentityOutput, AssumeRootInput, + AssumeRootInputDict, AssumeRootOutput, AssumedRoleUser, Credentials, DecodeAuthorizationMessageInput, + DecodeAuthorizationMessageInputDict, DecodeAuthorizationMessageOutput, FederatedUser, GetAccessKeyInfoInput, + GetAccessKeyInfoInputDict, GetAccessKeyInfoOutput, GetCallerIdentityInput, + GetCallerIdentityInputDict, GetCallerIdentityOutput, GetDelegatedAccessTokenInput, + GetDelegatedAccessTokenInputDict, GetDelegatedAccessTokenOutput, GetFederationTokenInput, + GetFederationTokenInputDict, GetFederationTokenOutput, GetSessionTokenInput, + GetSessionTokenInputDict, GetSessionTokenOutput, GetWebIdentityTokenInput, + GetWebIdentityTokenInputDict, GetWebIdentityTokenOutput, PolicyDescriptorType, + PolicyDescriptorTypeDict, ProvidedContext, + ProvidedContextDict, Tag, + TagDict, ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -67,3 +84,139 @@ PolicyDescriptorType() ProvidedContext() Tag(key=_, value=_) +_params_0: AssumeRoleInputDict = {"role_arn": _, "role_session_name": _} +_params_1: AssumeRoleWithSAMLInputDict = { + "role_arn": _, + "principal_arn": _, + "saml_assertion": _, +} +_params_2: AssumeRoleWithWebIdentityInputDict = { + "role_arn": _, + "role_session_name": _, + "web_identity_token": _, +} +_params_3: AssumeRootInputDict = {"target_principal": _, "task_policy_arn": _} +_params_4: DecodeAuthorizationMessageInputDict = {"encoded_message": _} +_params_5: GetAccessKeyInfoInputDict = {"access_key_id": _} +_params_6: GetCallerIdentityInputDict = {} +_params_7: GetDelegatedAccessTokenInputDict = {"trade_in_token": _} +_params_8: GetFederationTokenInputDict = {"name": _} +_params_9: GetSessionTokenInputDict = {} +_params_10: GetWebIdentityTokenInputDict = {"audience": _, "signing_algorithm": _} +_params_11: PolicyDescriptorTypeDict = {} +_params_12: ProvidedContextDict = {} +_params_13: TagDict = {"key": _, "value": _} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncSTSClient) -> None: + pass + await client.assume_role(role_arn=_, role_session_name=_) + await client.assume_role(**_request(AssumeRoleInputDict)) + await client.assume_role(_request(AssumeRoleInput)) + await client.assume_role(_request(AssumeRoleInputDict)) + await client.assume_role_with_saml(role_arn=_, principal_arn=_, saml_assertion=_) + await client.assume_role_with_saml(**_request(AssumeRoleWithSAMLInputDict)) + await client.assume_role_with_saml(_request(AssumeRoleWithSAMLInput)) + await client.assume_role_with_saml(_request(AssumeRoleWithSAMLInputDict)) + await client.assume_role_with_web_identity( + role_arn=_, role_session_name=_, web_identity_token=_ + ) + await client.assume_role_with_web_identity( + **_request(AssumeRoleWithWebIdentityInputDict) + ) + await client.assume_role_with_web_identity(_request(AssumeRoleWithWebIdentityInput)) + await client.assume_role_with_web_identity( + _request(AssumeRoleWithWebIdentityInputDict) + ) + await client.assume_root(target_principal=_, task_policy_arn=_) + await client.assume_root(**_request(AssumeRootInputDict)) + await client.assume_root(_request(AssumeRootInput)) + await client.assume_root(_request(AssumeRootInputDict)) + await client.decode_authorization_message(encoded_message=_) + await client.decode_authorization_message( + **_request(DecodeAuthorizationMessageInputDict) + ) + await client.decode_authorization_message(_request(DecodeAuthorizationMessageInput)) + await client.decode_authorization_message( + _request(DecodeAuthorizationMessageInputDict) + ) + await client.get_access_key_info(access_key_id=_) + await client.get_access_key_info(**_request(GetAccessKeyInfoInputDict)) + await client.get_access_key_info(_request(GetAccessKeyInfoInput)) + await client.get_access_key_info(_request(GetAccessKeyInfoInputDict)) + await client.get_caller_identity() + await client.get_caller_identity(**_request(GetCallerIdentityInputDict)) + await client.get_caller_identity(_request(GetCallerIdentityInput)) + await client.get_caller_identity(_request(GetCallerIdentityInputDict)) + await client.get_delegated_access_token(trade_in_token=_) + await client.get_delegated_access_token( + **_request(GetDelegatedAccessTokenInputDict) + ) + await client.get_delegated_access_token(_request(GetDelegatedAccessTokenInput)) + await client.get_delegated_access_token(_request(GetDelegatedAccessTokenInputDict)) + await client.get_federation_token(name=_) + await client.get_federation_token(**_request(GetFederationTokenInputDict)) + await client.get_federation_token(_request(GetFederationTokenInput)) + await client.get_federation_token(_request(GetFederationTokenInputDict)) + await client.get_session_token() + await client.get_session_token(**_request(GetSessionTokenInputDict)) + await client.get_session_token(_request(GetSessionTokenInput)) + await client.get_session_token(_request(GetSessionTokenInputDict)) + await client.get_web_identity_token(audience=_, signing_algorithm=_) + await client.get_web_identity_token(**_request(GetWebIdentityTokenInputDict)) + await client.get_web_identity_token(_request(GetWebIdentityTokenInput)) + await client.get_web_identity_token(_request(GetWebIdentityTokenInputDict)) + + +def check_sync_calls(client: STSClient) -> None: + pass + client.assume_role(role_arn=_, role_session_name=_) + client.assume_role(**_request(AssumeRoleInputDict)) + client.assume_role(_request(AssumeRoleInput)) + client.assume_role(_request(AssumeRoleInputDict)) + client.assume_role_with_saml(role_arn=_, principal_arn=_, saml_assertion=_) + client.assume_role_with_saml(**_request(AssumeRoleWithSAMLInputDict)) + client.assume_role_with_saml(_request(AssumeRoleWithSAMLInput)) + client.assume_role_with_saml(_request(AssumeRoleWithSAMLInputDict)) + client.assume_role_with_web_identity( + role_arn=_, role_session_name=_, web_identity_token=_ + ) + client.assume_role_with_web_identity(**_request(AssumeRoleWithWebIdentityInputDict)) + client.assume_role_with_web_identity(_request(AssumeRoleWithWebIdentityInput)) + client.assume_role_with_web_identity(_request(AssumeRoleWithWebIdentityInputDict)) + client.assume_root(target_principal=_, task_policy_arn=_) + client.assume_root(**_request(AssumeRootInputDict)) + client.assume_root(_request(AssumeRootInput)) + client.assume_root(_request(AssumeRootInputDict)) + client.decode_authorization_message(encoded_message=_) + client.decode_authorization_message(**_request(DecodeAuthorizationMessageInputDict)) + client.decode_authorization_message(_request(DecodeAuthorizationMessageInput)) + client.decode_authorization_message(_request(DecodeAuthorizationMessageInputDict)) + client.get_access_key_info(access_key_id=_) + client.get_access_key_info(**_request(GetAccessKeyInfoInputDict)) + client.get_access_key_info(_request(GetAccessKeyInfoInput)) + client.get_access_key_info(_request(GetAccessKeyInfoInputDict)) + client.get_caller_identity() + client.get_caller_identity(**_request(GetCallerIdentityInputDict)) + client.get_caller_identity(_request(GetCallerIdentityInput)) + client.get_caller_identity(_request(GetCallerIdentityInputDict)) + client.get_delegated_access_token(trade_in_token=_) + client.get_delegated_access_token(**_request(GetDelegatedAccessTokenInputDict)) + client.get_delegated_access_token(_request(GetDelegatedAccessTokenInput)) + client.get_delegated_access_token(_request(GetDelegatedAccessTokenInputDict)) + client.get_federation_token(name=_) + client.get_federation_token(**_request(GetFederationTokenInputDict)) + client.get_federation_token(_request(GetFederationTokenInput)) + client.get_federation_token(_request(GetFederationTokenInputDict)) + client.get_session_token() + client.get_session_token(**_request(GetSessionTokenInputDict)) + client.get_session_token(_request(GetSessionTokenInput)) + client.get_session_token(_request(GetSessionTokenInputDict)) + client.get_web_identity_token(audience=_, signing_algorithm=_) + client.get_web_identity_token(**_request(GetWebIdentityTokenInputDict)) + client.get_web_identity_token(_request(GetWebIdentityTokenInput)) + client.get_web_identity_token(_request(GetWebIdentityTokenInputDict)) diff --git a/clients/aws-sdk-sts/tests/test_endpoints.py b/clients/aws-sdk-sts/tests/test_endpoints.py index 66e24418c..6c838f008 100644 --- a/clients/aws-sdk-sts/tests/test_endpoints.py +++ b/clients/aws-sdk-sts/tests/test_endpoints.py @@ -1,7 +1,7 @@ # Code generated by smithy-python-codegen DO NOT EDIT. from collections.abc import Awaitable, Callable, Mapping -from typing import Any +from typing import Any, Concatenate from pytest import mark, param from smithy_aws_core.aio.identity.static import AsyncStaticCredentialsResolver @@ -16,7 +16,6 @@ from aws_sdk_sts.aio.client import AsyncSTSClient from aws_sdk_sts.aio.config import AsyncSTSConfig -from aws_sdk_sts.models import GetCallerIdentityInput # Endpoint tests from the endpointTests trait of com.amazonaws.sts#AWSSecurityTokenServiceV20110615. @@ -772,7 +771,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "ap-northeast-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -795,7 +794,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "ap-south-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -818,7 +817,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "ap-southeast-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -841,7 +840,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "ap-southeast-2"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -864,7 +863,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "aws-global"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -887,7 +886,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "ca-central-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -910,7 +909,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "eu-central-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -933,7 +932,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "eu-north-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -956,7 +955,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "eu-west-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -979,7 +978,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "eu-west-2"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -1002,7 +1001,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "eu-west-3"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -1025,7 +1024,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "sa-east-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -1048,7 +1047,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -1071,7 +1070,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-2"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -1094,7 +1093,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-1"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -1117,7 +1116,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-2"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.amazonaws.com", @@ -1140,7 +1139,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-east-3"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, { "endpoint": { "url": "https://sts.us-east-3.amazonaws.com", @@ -1163,7 +1162,7 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> param( {"region": "us-west-1", "endpoint_uri": "https://example.com"}, AsyncSTSClient.get_caller_identity, - GetCallerIdentityInput(), + {}, {"endpoint": {"url": "https://example.com"}}, id="UseGlobalEndpoint with legacy region and custom endpoint", marks=mark.skip( @@ -1176,8 +1175,8 @@ async def test_endpoint_rules(params: dict[str, Any], expect: dict[str, Any]) -> @mark.parametrize(("config", "operation", "input", "expect"), CLIENT_CASES) async def test_endpoint_client( config: dict[str, Any], - operation: Callable[[AsyncSTSClient, Any], Awaitable[Any]], - input: Any, + operation: Callable[Concatenate[AsyncSTSClient, ...], Awaitable[Any]], + input: dict[str, Any], expect: dict[str, Any], ) -> None: await check_client_case_async( diff --git a/clients/aws-sdk-transcribe-streaming/examples/simple_file.py b/clients/aws-sdk-transcribe-streaming/examples/simple_file.py index c51d4e3b0..4f64d8802 100644 --- a/clients/aws-sdk-transcribe-streaming/examples/simple_file.py +++ b/clients/aws-sdk-transcribe-streaming/examples/simple_file.py @@ -36,7 +36,6 @@ AudioEvent, AudioStream, AudioStreamAudioEvent, - StartStreamTranscriptionInput, TranscriptEvent, TranscriptResultStream, ) @@ -130,11 +129,9 @@ async def main(): ) as client: # Start a streaming transcription session stream = await client.start_stream_transcription( - input=StartStreamTranscriptionInput( - language_code="en-US", - media_sample_rate_hertz=SAMPLE_RATE, - media_encoding="pcm", - ) + language_code="en-US", + media_sample_rate_hertz=SAMPLE_RATE, + media_encoding="pcm", ) # Get the output stream for receiving transcription results diff --git a/clients/aws-sdk-transcribe-streaming/examples/simple_mic.py b/clients/aws-sdk-transcribe-streaming/examples/simple_mic.py index 52d2becea..f090f440d 100644 --- a/clients/aws-sdk-transcribe-streaming/examples/simple_mic.py +++ b/clients/aws-sdk-transcribe-streaming/examples/simple_mic.py @@ -36,7 +36,6 @@ AudioEvent, AudioStream, AudioStreamAudioEvent, - StartStreamTranscriptionInput, TranscriptEvent, TranscriptResultStream, ) @@ -126,11 +125,9 @@ async def main(): ) as client: # Start a streaming transcription session stream = await client.start_stream_transcription( - input=StartStreamTranscriptionInput( - language_code="en-US", - media_sample_rate_hertz=SAMPLE_RATE, - media_encoding="pcm", - ) + language_code="en-US", + media_sample_rate_hertz=SAMPLE_RATE, + media_encoding="pcm", ) # Get the output stream for receiving transcription results diff --git a/clients/aws-sdk-transcribe-streaming/pyproject.toml b/clients/aws-sdk-transcribe-streaming/pyproject.toml index 72dc243fc..381968467 100644 --- a/clients/aws-sdk-transcribe-streaming/pyproject.toml +++ b/clients/aws-sdk-transcribe-streaming/pyproject.toml @@ -24,14 +24,14 @@ classifiers = [ ] dependencies = [ - "smithy_aws_core[eventstream, json]~=0.14.0", - "smithy_core~=0.11.0", - "smithy_http[aiohttp, urllib3]~=0.8.0" + "smithy_aws_core[eventstream, json]~=0.15.0", + "smithy_core~=0.12.0", + "smithy_http[aiohttp, urllib3]~=0.9.0" ] [project.optional-dependencies] awscrt = [ - "smithy_http[awscrt]~=0.8.0" + "smithy_http[awscrt]~=0.9.0" ] [dependency-groups] @@ -39,7 +39,7 @@ test = [ "boto3", "pytest>=9.0.3,<10.0.0", "pytest-asyncio>=1.3.0,<1.4.0", - "smithy_test~=0.3.0", + "smithy_test~=0.4.0", "types-boto3-lite[iam,s3,sts]", ] diff --git a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/_private/schemas.py b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/_private/schemas.py index 4ac2465ef..ced6b575c 100644 --- a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/_private/schemas.py +++ b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/_private/schemas.py @@ -165,7 +165,7 @@ def __getattr__(name: str): partition = _PARTITIONS[name] except KeyError as error: raise AttributeError(name) from error - module = import_module(f".schemas_{partition}", __package__) + module = import_module(f".schemas_{partition:01d}", __package__) value = getattr(module, name) globals()[name] = value return value diff --git a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/aio/client.py b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/aio/client.py index bdbe9c415..42e644d0c 100644 --- a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/aio/client.py +++ b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/aio/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.aio.identity.chain import AsyncIdentityChain from smithy_aws_core.config.types import ConfigSource @@ -20,13 +20,9 @@ MedicalScribeInputStream, MedicalScribeResultStream, MedicalTranscriptResultStream, - StartCallAnalyticsStreamTranscriptionInput, StartCallAnalyticsStreamTranscriptionOutput, - StartMedicalScribeStreamInput, StartMedicalScribeStreamOutput, - StartMedicalStreamTranscriptionInput, StartMedicalStreamTranscriptionOutput, - StartStreamTranscriptionInput, StartStreamTranscriptionOutput, TranscriptResultStream, _CallAnalyticsTranscriptResultStreamDeserializer, @@ -40,7 +36,7 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from ..models import GetMedicalScribeStreamInput, GetMedicalScribeStreamOutput + from ..models import GetMedicalScribeStreamOutput logger = logging.getLogger(__name__) @@ -69,10 +65,25 @@ class AsyncTranscribeStreamingClient(AsyncClient[AsyncTranscribeStreamingConfig] AI. Refer to [here] for details. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload async def get_medical_scribe_stream( - self, input: GetMedicalScribeStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMedicalScribeStreamInput + | _models.GetMedicalScribeStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMedicalScribeStreamOutput: ... + + @_overload + async def get_medical_scribe_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMedicalScribeStreamInputDict], ) -> GetMedicalScribeStreamOutput: """ Provides details about the specified Amazon Web Services HealthScribe @@ -82,8 +93,6 @@ async def get_medical_scribe_stream( `PostStreamAnalyticsResult` field in the response. Args: - input: - An instance of `GetMedicalScribeStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -93,12 +102,38 @@ async def get_medical_scribe_stream( Returns: An instance of `GetMedicalScribeStreamOutput`. """ - return await self._invoke(input, _models.GET_MEDICAL_SCRIBE_STREAM, [], plugins) + async def get_medical_scribe_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMedicalScribeStreamOutput: + return await self._invoke( + self._select_input(_models.GET_MEDICAL_SCRIBE_STREAM, args, kwargs), + _models.GET_MEDICAL_SCRIBE_STREAM, + [], + plugins, + ) + + @_overload + async def start_call_analytics_stream_transcription( + self, + request: _models.StartCallAnalyticsStreamTranscriptionInput + | _models.StartCallAnalyticsStreamTranscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ + AudioStream, + CallAnalyticsTranscriptResultStream, + StartCallAnalyticsStreamTranscriptionOutput, + ]: ... + + @_overload async def start_call_analytics_stream_transcription( self, - input: StartCallAnalyticsStreamTranscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartCallAnalyticsStreamTranscriptionInputDict], ) -> AsyncDuplexEventStream[ AudioStream, CallAnalyticsTranscriptResultStream, @@ -124,8 +159,6 @@ async def start_call_analytics_stream_transcription( audio](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html). Args: - input: - An instance of `StartCallAnalyticsStreamTranscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -135,8 +168,21 @@ async def start_call_analytics_stream_transcription( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def start_call_analytics_stream_transcription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + AudioStream, + CallAnalyticsTranscriptResultStream, + StartCallAnalyticsStreamTranscriptionOutput, + ]: pipeline, call = await self._prepare_call( - input, _models.START_CALL_ANALYTICS_STREAM_TRANSCRIPTION, [], plugins + self._select_input( + _models.START_CALL_ANALYTICS_STREAM_TRANSCRIPTION, args, kwargs + ), + _models.START_CALL_ANALYTICS_STREAM_TRANSCRIPTION, + [], + plugins, ) return await pipeline.duplex_stream( call, @@ -145,8 +191,27 @@ async def start_call_analytics_stream_transcription( _CallAnalyticsTranscriptResultStreamDeserializer().deserialize, ) + @_overload async def start_medical_scribe_stream( - self, input: StartMedicalScribeStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.StartMedicalScribeStreamInput + | _models.StartMedicalScribeStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ + MedicalScribeInputStream, + MedicalScribeResultStream, + StartMedicalScribeStreamOutput, + ]: ... + + @_overload + async def start_medical_scribe_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMedicalScribeStreamInputDict], ) -> AsyncDuplexEventStream[ MedicalScribeInputStream, MedicalScribeResultStream, @@ -192,8 +257,6 @@ async def start_medical_scribe_stream( HealthScribe](https://docs.aws.amazon.com/transcribe/latest/dg/health-scribe-streaming.html). Args: - input: - An instance of `StartMedicalScribeStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -203,8 +266,19 @@ async def start_medical_scribe_stream( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def start_medical_scribe_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + MedicalScribeInputStream, + MedicalScribeResultStream, + StartMedicalScribeStreamOutput, + ]: pipeline, call = await self._prepare_call( - input, _models.START_MEDICAL_SCRIBE_STREAM, [], plugins + self._select_input(_models.START_MEDICAL_SCRIBE_STREAM, args, kwargs), + _models.START_MEDICAL_SCRIBE_STREAM, + [], + plugins, ) return await pipeline.duplex_stream( call, @@ -213,10 +287,27 @@ async def start_medical_scribe_stream( _MedicalScribeResultStreamDeserializer().deserialize, ) + @_overload + async def start_medical_stream_transcription( + self, + request: _models.StartMedicalStreamTranscriptionInput + | _models.StartMedicalStreamTranscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ + AudioStream, + MedicalTranscriptResultStream, + StartMedicalStreamTranscriptionOutput, + ]: ... + + @_overload async def start_medical_stream_transcription( self, - input: StartMedicalStreamTranscriptionInput, + /, + *, plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartMedicalStreamTranscriptionInputDict], ) -> AsyncDuplexEventStream[ AudioStream, MedicalTranscriptResultStream, @@ -240,8 +331,6 @@ async def start_medical_stream_transcription( audio](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html). Args: - input: - An instance of `StartMedicalStreamTranscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -251,8 +340,21 @@ async def start_medical_stream_transcription( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def start_medical_stream_transcription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + AudioStream, + MedicalTranscriptResultStream, + StartMedicalStreamTranscriptionOutput, + ]: pipeline, call = await self._prepare_call( - input, _models.START_MEDICAL_STREAM_TRANSCRIPTION, [], plugins + self._select_input( + _models.START_MEDICAL_STREAM_TRANSCRIPTION, args, kwargs + ), + _models.START_MEDICAL_STREAM_TRANSCRIPTION, + [], + plugins, ) return await pipeline.duplex_stream( call, @@ -261,8 +363,25 @@ async def start_medical_stream_transcription( _MedicalTranscriptResultStreamDeserializer().deserialize, ) + @_overload async def start_stream_transcription( - self, input: StartStreamTranscriptionInput, plugins: list[Plugin] | None = None + self, + request: _models.StartStreamTranscriptionInput + | _models.StartStreamTranscriptionInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> AsyncDuplexEventStream[ + AudioStream, TranscriptResultStream, StartStreamTranscriptionOutput + ]: ... + + @_overload + async def start_stream_transcription( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.StartStreamTranscriptionInputDict], ) -> AsyncDuplexEventStream[ AudioStream, TranscriptResultStream, StartStreamTranscriptionOutput ]: @@ -284,8 +403,6 @@ async def start_stream_transcription( audio](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html). Args: - input: - An instance of `StartStreamTranscriptionInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -295,8 +412,17 @@ async def start_stream_transcription( Returns: An `AsyncDuplexEventStream` for bidirectional streaming. """ + + async def start_stream_transcription( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> AsyncDuplexEventStream[ + AudioStream, TranscriptResultStream, StartStreamTranscriptionOutput + ]: pipeline, call = await self._prepare_call( - input, _models.START_STREAM_TRANSCRIPTION, [], plugins + self._select_input(_models.START_STREAM_TRANSCRIPTION, args, kwargs), + _models.START_STREAM_TRANSCRIPTION, + [], + plugins, ) return await pipeline.duplex_stream( call, diff --git a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/client.py b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/client.py index 3db8cf1bf..777613526 100644 --- a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/client.py +++ b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/client.py @@ -3,7 +3,7 @@ from __future__ import annotations import logging -from typing import cast +from typing import Unpack as _Unpack, cast, overload as _overload from smithy_aws_core.config.types import ConfigSource from smithy_aws_core.identity.chain.resolver import IdentityChain @@ -19,7 +19,7 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from .models import GetMedicalScribeStreamInput, GetMedicalScribeStreamOutput + from .models import GetMedicalScribeStreamOutput logger = logging.getLogger(__name__) @@ -48,10 +48,25 @@ class TranscribeStreamingClient(Client[TranscribeStreamingConfig]): AI. Refer to [here] for details. """ - _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + _client_plugins = (user_agent_plugin, aws_user_agent_plugin) + @_overload def get_medical_scribe_stream( - self, input: GetMedicalScribeStreamInput, plugins: list[Plugin] | None = None + self, + request: _models.GetMedicalScribeStreamInput + | _models.GetMedicalScribeStreamInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> GetMedicalScribeStreamOutput: ... + + @_overload + def get_medical_scribe_stream( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: _Unpack[_models.GetMedicalScribeStreamInputDict], ) -> GetMedicalScribeStreamOutput: """ Provides details about the specified Amazon Web Services HealthScribe @@ -61,8 +76,6 @@ def get_medical_scribe_stream( `PostStreamAnalyticsResult` field in the response. Args: - input: - An instance of `GetMedicalScribeStreamInput`. plugins: A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the @@ -72,7 +85,16 @@ def get_medical_scribe_stream( Returns: An instance of `GetMedicalScribeStreamOutput`. """ - return self._invoke(input, _models.GET_MEDICAL_SCRIBE_STREAM, [], plugins) + + def get_medical_scribe_stream( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> GetMedicalScribeStreamOutput: + return self._invoke( + self._select_input(_models.GET_MEDICAL_SCRIBE_STREAM, args, kwargs), + _models.GET_MEDICAL_SCRIBE_STREAM, + [], + plugins, + ) def _new_config(self) -> TranscribeStreamingConfig: return TranscribeStreamingConfig.resolve() diff --git a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/models.pyi b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/models.pyi index 505875077..a45cc0e39 100644 --- a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/models.pyi +++ b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/models.pyi @@ -3,7 +3,7 @@ from dataclasses import dataclass from datetime import datetime from enum import StrEnum -from typing import Self, Union +from typing import Required, Self, TypedDict, Union from smithy_core.deserializers import ShapeDeserializer from smithy_core.exceptions import ModeledError @@ -599,6 +599,15 @@ class GetMedicalScribeStreamInput(_SerdeShape): information about. """ +class GetMedicalScribeStreamInputDict(TypedDict, total=False): + """Dictionary form of `GetMedicalScribeStreamInput`.""" + + session_id: Required[str] + """ + The identifier of the HealthScribe streaming session you want + information about. + """ + @dataclass(kw_only=True) class GetMedicalScribeStreamOutput(_SerdeShape): """Dataclass for GetMedicalScribeStreamOutput structure.""" @@ -2115,6 +2124,249 @@ class StartCallAnalyticsStreamTranscriptionInput(_SerdeShape): or identified. """ +class StartCallAnalyticsStreamTranscriptionInputDict(TypedDict, total=False): + """Dictionary form of `StartCallAnalyticsStreamTranscriptionInput`.""" + + language_code: str | None + """ + Specify the language code that represents the language spoken in your + audio. + + For a list of languages supported with real-time Call Analytics, refer + to the [Supported + languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) + table. + """ + media_sample_rate_hertz: Required[int] + """ + The sample rate of the input audio (in hertz). Low-quality audio, such + as telephone audio, is typically around 8,000 Hz. High-quality audio + typically ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate + you specify must match that of your audio. + """ + media_encoding: Required[str] + """ + Specify the encoding of your input audio. Supported formats are: + + - FLAC + + - OPUS-encoded audio in an Ogg container + + - PCM (only signed 16-bit little-endian audio formats, which does not + include WAV) + + For more information, see [Media + formats](https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio). + """ + vocabulary_name: str | None + """ + Specify the name of the custom vocabulary that you want to use when + processing your transcription. Note that vocabulary names are case + sensitive. + + If the language of the specified custom vocabulary doesn't match the + language identified in your media, the custom vocabulary is not applied + to your transcription. + + For more information, see [Custom + vocabularies](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html). + """ + session_id: str | None + """ + Specify a name for your Call Analytics transcription session. If you + don't include this parameter in your request, Amazon Transcribe + generates an ID and returns it in the response. + """ + vocabulary_filter_name: str | None + """ + Specify the name of the custom vocabulary filter that you want to use + when processing your transcription. Note that vocabulary filter names + are case sensitive. + + If the language of the specified custom vocabulary filter doesn't match + the language identified in your media, the vocabulary filter is not + applied to your transcription. + + For more information, see [Using vocabulary filtering with unwanted + words](https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html). + """ + vocabulary_filter_method: str | None + """ + Specify how you want your vocabulary filter applied to your transcript. + + To replace words with `***`, choose `mask`. + + To delete words, choose `remove`. + + To flag words without changing them, choose `tag`. + """ + language_model_name: str | None + """ + Specify the name of the custom language model that you want to use when + processing your transcription. Note that language model names are case + sensitive. + + The language of the specified language model must match the language + code you specify in your transcription request. If the languages don't + match, the custom language model isn't applied. There are no errors or + warnings associated with a language mismatch. + + For more information, see [Custom language + models](https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html). + """ + identify_language: bool | None + """ + Enables automatic language identification for your Call Analytics + transcription. + + If you include `IdentifyLanguage`, you must include a list of language + codes, using `LanguageOptions`, that you think may be present in your + audio stream. You must provide a minimum of two language selections. + + You can also include a preferred language using `PreferredLanguage`. + Adding a preferred language can help Amazon Transcribe identify the + language faster than if you omit this parameter. + + Note that you must include either `LanguageCode` or `IdentifyLanguage` + in your request. If you include both parameters, your transcription job + fails. + """ + language_options: str | None + """ + Specify two or more language codes that represent the languages you + think may be present in your media. + + Including language options can improve the accuracy of language + identification. + + If you include `LanguageOptions` in your request, you must also include + `IdentifyLanguage`. + + For a list of languages supported with Call Analytics streaming, refer + to the [Supported + languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) + table. + + Warning: + You can only include one language dialect per language per stream. For + example, you cannot include `en-US` and `en-AU` in the same request. + """ + preferred_language: str | None + """ + Specify a preferred language from the subset of languages codes you + specified in `LanguageOptions`. + + You can only use this parameter if you've included `IdentifyLanguage` + and `LanguageOptions` in your request. + """ + vocabulary_names: str | None + """ + Specify the names of the custom vocabularies that you want to use when + processing your Call Analytics transcription. Note that vocabulary names + are case sensitive. + + If the custom vocabulary's language doesn't match the identified media + language, it won't be applied to the transcription. + + Warning: + This parameter is only intended for use **with** the `IdentifyLanguage` + parameter. If you're **not** including `IdentifyLanguage` in your + request and want to use a custom vocabulary with your transcription, use + the `VocabularyName` parameter instead. + + For more information, see [Custom + vocabularies](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html). + """ + vocabulary_filter_names: str | None + """ + Specify the names of the custom vocabulary filters that you want to use + when processing your Call Analytics transcription. Note that vocabulary + filter names are case sensitive. + + These filters serve to customize the transcript output. + + Warning: + This parameter is only intended for use **with** the `IdentifyLanguage` + parameter. If you're **not** including `IdentifyLanguage` in your + request and want to use a custom vocabulary filter with your + transcription, use the `VocabularyFilterName` parameter instead. + + For more information, see [Using vocabulary filtering with unwanted + words](https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html). + """ + enable_partial_results_stabilization: bool | None + """ + Enables partial result stabilization for your transcription. Partial + result stabilization can reduce latency in your output, but may impact + accuracy. For more information, see [Partial-result + stabilization](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization). + """ + partial_results_stability: str | None + """ + Specify the level of stability to use when you enable partial results + stabilization (`EnablePartialResultsStabilization`). + + Low stability provides the highest accuracy. High stability transcribes + faster, but with slightly lower accuracy. + + For more information, see [Partial-result + stabilization](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization). + """ + content_identification_type: str | None + """ + Labels all personally identifiable information (PII) identified in your + transcript. + + Content identification is performed at the segment level; PII specified + in `PiiEntityTypes` is flagged upon complete transcription of an audio + segment. If you don't include `PiiEntityTypes` in your request, all PII + is identified. + + You can't set `ContentIdentificationType` and `ContentRedactionType` in + the same request. If you set both, your request returns a + `BadRequestException`. + + For more information, see [Redacting or identifying personally + identifiable + information](https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). + """ + content_redaction_type: str | None + """ + Redacts all personally identifiable information (PII) identified in your + transcript. + + Content redaction is performed at the segment level; PII specified in + `PiiEntityTypes` is redacted upon complete transcription of an audio + segment. If you don't include `PiiEntityTypes` in your request, all PII + is redacted. + + You can't set `ContentRedactionType` and `ContentIdentificationType` in + the same request. If you set both, your request returns a + `BadRequestException`. + + For more information, see [Redacting or identifying personally + identifiable + information](https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). + """ + pii_entity_types: str | None + """ + Specify which types of personally identifiable information (PII) you + want to redact in your transcript. You can include as many types as + you'd like, or you can select `ALL`. + + Values must be comma-separated and can include: `ADDRESS`, + `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_CVV`, + `CREDIT_DEBIT_EXPIRY`, `CREDIT_DEBIT_NUMBER`, `EMAIL`, `NAME`, `PHONE`, + `PIN`, `SSN`, or `ALL`. + + Note that if you include `PiiEntityTypes` in your request, you must also + include `ContentIdentificationType` or `ContentRedactionType`. + + If you include `ContentRedactionType` or `ContentIdentificationType` in + your request, but do not include `PiiEntityTypes`, all PII is redacted + or identified. + """ + @dataclass(kw_only=True) class StartCallAnalyticsStreamTranscriptionOutput(_SerdeShape): """Dataclass for StartCallAnalyticsStreamTranscriptionOutput structure.""" @@ -2245,32 +2497,66 @@ class StartMedicalScribeStreamInput(_SerdeShape): formats](https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio). """ -@dataclass(kw_only=True) -class StartMedicalScribeStreamOutput(_SerdeShape): - """Dataclass for StartMedicalScribeStreamOutput structure.""" - - session_id: str | None = ... - """ - The identifier (in UUID format) for your streaming session. +class StartMedicalScribeStreamInputDict(TypedDict, total=False): + """Dictionary form of `StartMedicalScribeStreamInput`.""" - If you already started streaming, this is same ID as the one you - specified in your initial `StartMedicalScribeStreamRequest`. - """ - request_id: str | None = ... - """The unique identifier for your streaming request.""" - language_code: str | None = ... + session_id: str | None """ - The Language Code that you specified in your request. Same as provided - in the `StartMedicalScribeStreamRequest`. + Specify an identifier for your streaming session (in UUID format). If + you don't include a SessionId in your request, Amazon Web Services + HealthScribe generates an ID and returns it in the response. """ - media_sample_rate_hertz: int | None = ... + language_code: Required[str] + """Specify the language code for your HealthScribe streaming session.""" + media_sample_rate_hertz: Required[int] """ - The sample rate (in hertz) that you specified in your request. Same as - provided in the `StartMedicalScribeStreamRequest` + Specify the sample rate of the input audio (in hertz). Amazon Web + Services HealthScribe supports a range from 16,000 Hz to 48,000 Hz. The + sample rate you specify must match that of your audio. """ - media_encoding: str | None = ... + media_encoding: Required[str] """ - The Media Encoding you specified in your request. Same as provided in + Specify the encoding used for the input audio. + + Supported formats are: + + - FLAC + + - OPUS-encoded audio in an Ogg container + + - PCM (only signed 16-bit little-endian audio formats, which does not + include WAV) + + For more information, see [Media + formats](https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio). + """ + +@dataclass(kw_only=True) +class StartMedicalScribeStreamOutput(_SerdeShape): + """Dataclass for StartMedicalScribeStreamOutput structure.""" + + session_id: str | None = ... + """ + The identifier (in UUID format) for your streaming session. + + If you already started streaming, this is same ID as the one you + specified in your initial `StartMedicalScribeStreamRequest`. + """ + request_id: str | None = ... + """The unique identifier for your streaming request.""" + language_code: str | None = ... + """ + The Language Code that you specified in your request. Same as provided + in the `StartMedicalScribeStreamRequest`. + """ + media_sample_rate_hertz: int | None = ... + """ + The sample rate (in hertz) that you specified in your request. Same as + provided in the `StartMedicalScribeStreamRequest` + """ + media_encoding: str | None = ... + """ + The Media Encoding you specified in your request. Same as provided in the `StartMedicalScribeStreamRequest` """ response_metadata: ResponseMetadata = ... @@ -2382,6 +2668,106 @@ class StartMedicalStreamTranscriptionInput(_SerdeShape): transcription](https://docs.aws.amazon.com/transcribe/latest/dg/phi-id.html). """ +class StartMedicalStreamTranscriptionInputDict(TypedDict, total=False): + """Dictionary form of `StartMedicalStreamTranscriptionInput`.""" + + language_code: Required[str] + """ + Specify the language code that represents the language spoken in your + audio. + + Warning: + Amazon Transcribe Medical only supports US English (`en-US`). + """ + media_sample_rate_hertz: Required[int] + """ + The sample rate of the input audio (in hertz). Amazon Transcribe Medical + supports a range from 16,000 Hz to 48,000 Hz. Note that the sample rate + you specify must match that of your audio. + """ + media_encoding: Required[str] + """ + Specify the encoding used for the input audio. Supported formats are: + + - FLAC + + - OPUS-encoded audio in an Ogg container + + - PCM (only signed 16-bit little-endian audio formats, which does not + include WAV) + + For more information, see [Media + formats](https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio). + """ + vocabulary_name: str | None + """ + Specify the name of the custom vocabulary that you want to use when + processing your transcription. Note that vocabulary names are case + sensitive. + """ + specialty: Required[str] + """Specify the medical specialty contained in your audio.""" + type: Required[str] + """ + Specify the type of input audio. For example, choose `DICTATION` for a + provider dictating patient notes and `CONVERSATION` for a dialogue + between a patient and a medical professional. + """ + show_speaker_label: bool | None + """ + Enables speaker partitioning (diarization) in your transcription output. + Speaker partitioning labels the speech from individual speakers in your + media file. + + For more information, see [Partitioning speakers + (diarization)](https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html). + """ + session_id: str | None + """ + Specify a name for your transcription session. If you don't include + this parameter in your request, Amazon Transcribe Medical generates an + ID and returns it in the response. + """ + enable_channel_identification: bool | None + """ + Enables channel identification in multi-channel audio. + + Channel identification transcribes the audio on each channel + independently, then appends the output for each channel into one + transcript. + + If you have multi-channel audio and do not enable channel + identification, your audio is transcribed in a continuous manner and + your transcript is not separated by channel. + + If you include `EnableChannelIdentification` in your request, you must + also include `NumberOfChannels`. + + For more information, see [Transcribing multi-channel + audio](https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html). + """ + number_of_channels: int | None + """ + Specify the number of channels in your audio stream. This value must be + `2`, as only two channels are supported. If your audio doesn't contain + multiple channels, do not include this parameter in your request. + + If you include `NumberOfChannels` in your request, you must also include + `EnableChannelIdentification`. + """ + content_identification_type: str | None + """ + Labels all personal health information (PHI) identified in your + transcript. + + Content identification is performed at the segment level; PHI is flagged + upon complete transcription of an audio segment. + + For more information, see [Identifying personal health information (PHI) + in a + transcription](https://docs.aws.amazon.com/transcribe/latest/dg/phi-id.html). + """ + @dataclass(kw_only=True) class StartMedicalStreamTranscriptionOutput(_SerdeShape): """Dataclass for StartMedicalStreamTranscriptionOutput structure.""" @@ -2772,6 +3158,353 @@ class StartStreamTranscriptionInput(_SerdeShape): default. """ +class StartStreamTranscriptionInputDict(TypedDict, total=False): + """Dictionary form of `StartStreamTranscriptionInput`.""" + + language_code: str | None + """ + Specify the language code that represents the language spoken in your + audio. + + If you're unsure of the language spoken in your audio, consider using + `IdentifyLanguage` to enable automatic language identification. + + For a list of languages supported with Amazon Transcribe streaming, + refer to the [Supported + languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) + table. + """ + media_sample_rate_hertz: Required[int] + """ + The sample rate of the input audio (in hertz). Low-quality audio, such + as telephone audio, is typically around 8,000 Hz. High-quality audio + typically ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate + you specify must match that of your audio. + """ + media_encoding: Required[str] + """ + Specify the encoding of your input audio. Supported formats are: + + - FLAC + + - OPUS-encoded audio in an Ogg container + + - PCM (only signed 16-bit little-endian audio formats, which does not + include WAV) + + For more information, see [Media + formats](https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio). + """ + vocabulary_name: str | None + """ + Specify the name of the custom vocabulary that you want to use when + processing your transcription. Note that vocabulary names are case + sensitive. + + If the language of the specified custom vocabulary doesn't match the + language identified in your media, the custom vocabulary is not applied + to your transcription. + + Warning: + This parameter is **not** intended for use with the `IdentifyLanguage` + parameter. If you're including `IdentifyLanguage` in your request and + want to use one or more custom vocabularies with your transcription, use + the `VocabularyNames` parameter instead. + + For more information, see [Custom + vocabularies](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html). + """ + session_id: str | None + """ + Specify a name for your transcription session. If you don't include + this parameter in your request, Amazon Transcribe generates an ID and + returns it in the response. + """ + vocabulary_filter_name: str | None + """ + Specify the name of the custom vocabulary filter that you want to use + when processing your transcription. Note that vocabulary filter names + are case sensitive. + + If the language of the specified custom vocabulary filter doesn't match + the language identified in your media, the vocabulary filter is not + applied to your transcription. + + Warning: + This parameter is **not** intended for use with the `IdentifyLanguage` + parameter. If you're including `IdentifyLanguage` in your request and + want to use one or more vocabulary filters with your transcription, use + the `VocabularyFilterNames` parameter instead. + + For more information, see [Using vocabulary filtering with unwanted + words](https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html). + """ + vocabulary_filter_method: str | None + """ + Specify how you want your vocabulary filter applied to your transcript. + + To replace words with `***`, choose `mask`. + + To delete words, choose `remove`. + + To flag words without changing them, choose `tag`. + """ + show_speaker_label: bool | None + """ + Enables speaker partitioning (diarization) in your transcription output. + Speaker partitioning labels the speech from individual speakers in your + media file. + + For more information, see [Partitioning speakers + (diarization)](https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html). + """ + enable_channel_identification: bool | None + """ + Enables channel identification in multi-channel audio. + + Channel identification transcribes the audio on each channel + independently, then appends the output for each channel into one + transcript. + + If you have multi-channel audio and do not enable channel + identification, your audio is transcribed in a continuous manner and + your transcript is not separated by channel. + + If you include `EnableChannelIdentification` in your request, you must + also include `NumberOfChannels`. + + For more information, see [Transcribing multi-channel + audio](https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html). + """ + number_of_channels: int | None + """ + Specify the number of channels in your audio stream. This value must be + `2`, as only two channels are supported. If your audio doesn't contain + multiple channels, do not include this parameter in your request. + + If you include `NumberOfChannels` in your request, you must also include + `EnableChannelIdentification`. + """ + enable_partial_results_stabilization: bool | None + """ + Enables partial result stabilization for your transcription. Partial + result stabilization can reduce latency in your output, but may impact + accuracy. For more information, see [Partial-result + stabilization](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization). + """ + partial_results_stability: str | None + """ + Specify the level of stability to use when you enable partial results + stabilization (`EnablePartialResultsStabilization`). + + Low stability provides the highest accuracy. High stability transcribes + faster, but with slightly lower accuracy. + + For more information, see [Partial-result + stabilization](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization). + """ + content_identification_type: str | None + """ + Labels all personally identifiable information (PII) identified in your + transcript. + + Content identification is performed at the segment level; PII specified + in `PiiEntityTypes` is flagged upon complete transcription of an audio + segment. If you don't include `PiiEntityTypes` in your request, all PII + is identified. + + You can't set `ContentIdentificationType` and `ContentRedactionType` in + the same request. If you set both, your request returns a + `BadRequestException`. + + For more information, see [Redacting or identifying personally + identifiable + information](https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). + """ + content_redaction_type: str | None + """ + Redacts all personally identifiable information (PII) identified in your + transcript. + + Content redaction is performed at the segment level; PII specified in + `PiiEntityTypes` is redacted upon complete transcription of an audio + segment. If you don't include `PiiEntityTypes` in your request, all PII + is redacted. + + You can't set `ContentRedactionType` and `ContentIdentificationType` in + the same request. If you set both, your request returns a + `BadRequestException`. + + For more information, see [Redacting or identifying personally + identifiable + information](https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html). + """ + pii_entity_types: str | None + """ + Specify which types of personally identifiable information (PII) you + want to redact in your transcript. You can include as many types as + you'd like, or you can select `ALL`. + + Values must be comma-separated and can include: `ADDRESS`, + `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_CVV`, + `CREDIT_DEBIT_EXPIRY`, `CREDIT_DEBIT_NUMBER`, `EMAIL`, `NAME`, `PHONE`, + `PIN`, `SSN`, `AGE`, `DATE_TIME`, `LICENSE_PLATE`, `PASSPORT_NUMBER`, + `PASSWORD`, `USERNAME`, `VEHICLE_IDENTIFICATION_NUMBER`, or `ALL`. + + Note that if you include `PiiEntityTypes` in your request, you must also + include `ContentIdentificationType` or `ContentRedactionType`. + + If you include `ContentRedactionType` or `ContentIdentificationType` in + your request, but do not include `PiiEntityTypes`, all PII is redacted + or identified. + """ + language_model_name: str | None + """ + Specify the name of the custom language model that you want to use when + processing your transcription. Note that language model names are case + sensitive. + + The language of the specified language model must match the language + code you specify in your transcription request. If the languages don't + match, the custom language model isn't applied. There are no errors or + warnings associated with a language mismatch. + + For more information, see [Custom language + models](https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html). + """ + identify_language: bool | None + """ + Enables automatic language identification for your transcription. + + If you include `IdentifyLanguage`, you must include a list of language + codes, using `LanguageOptions`, that you think may be present in your + audio stream. + + You can also include a preferred language using `PreferredLanguage`. + Adding a preferred language can help Amazon Transcribe identify the + language faster than if you omit this parameter. + + If you have multi-channel audio that contains different languages on + each channel, and you've enabled channel identification, automatic + language identification identifies the dominant language on each audio + channel. + + Note that you must include either `LanguageCode` or `IdentifyLanguage` + or `IdentifyMultipleLanguages` in your request. If you include more than + one of these parameters, your transcription job fails. + + Streaming language identification can't be combined with custom + language models or redaction. + """ + language_options: str | None + """ + Specify two or more language codes that represent the languages you + think may be present in your media; including more than five is not + recommended. + + Including language options can improve the accuracy of language + identification. + + If you include `LanguageOptions` in your request, you must also include + `IdentifyLanguage` or `IdentifyMultipleLanguages`. + + For a list of languages supported with Amazon Transcribe streaming, + refer to the [Supported + languages](https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html) + table. + + Warning: + You can only include one language dialect per language per stream. For + example, you cannot include `en-US` and `en-AU` in the same request. + """ + preferred_language: str | None + """ + Specify a preferred language from the subset of languages codes you + specified in `LanguageOptions`. + + You can only use this parameter if you've included `IdentifyLanguage` + and `LanguageOptions` in your request. + """ + identify_multiple_languages: bool | None + """ + Enables automatic multi-language identification in your transcription + job request. Use this parameter if your stream contains more than one + language. If your stream contains only one language, use + IdentifyLanguage instead. + + If you include `IdentifyMultipleLanguages`, you must include a list of + language codes, using `LanguageOptions`, that you think may be present + in your stream. + + If you want to apply a custom vocabulary or a custom vocabulary filter + to your automatic multiple language identification request, include + `VocabularyNames` or `VocabularyFilterNames`. + + Note that you must include one of `LanguageCode`, `IdentifyLanguage`, or + `IdentifyMultipleLanguages` in your request. If you include more than + one of these parameters, your transcription job fails. + """ + vocabulary_names: str | None + """ + Specify the names of the custom vocabularies that you want to use when + processing your transcription. Note that vocabulary names are case + sensitive. + + If none of the languages of the specified custom vocabularies match the + language identified in your media, your job fails. + + Warning: + This parameter is only intended for use **with** the `IdentifyLanguage` + parameter. If you're **not** including `IdentifyLanguage` in your + request and want to use a custom vocabulary with your transcription, use + the `VocabularyName` parameter instead. + + For more information, see [Custom + vocabularies](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html). + """ + vocabulary_filter_names: str | None + """ + Specify the names of the custom vocabulary filters that you want to use + when processing your transcription. Note that vocabulary filter names + are case sensitive. + + If none of the languages of the specified custom vocabulary filters + match the language identified in your media, your job fails. + + Warning: + This parameter is only intended for use **with** the `IdentifyLanguage` + parameter. If you're **not** including `IdentifyLanguage` in your + request and want to use a custom vocabulary filter with your + transcription, use the `VocabularyFilterName` parameter instead. + + For more information, see [Using vocabulary filtering with unwanted + words](https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html). + """ + session_resume_window: int | None + """ + Specify the time window, in minutes, during which your transcription + session can be resumed, measured from the stream start time. This + optional parameter accepts integer values from 1 to 300 (5 hours). + + For example, if your stream starts at 1 PM and you specify a + `SessionResumeWindow` of 30 minutes, you can reconnect to the session as + many times as you want until 1:30 PM. + """ + transcript_format: str | None + """ + Specify how numbers, dates, and other alphanumeric entities are rendered + in your transcription results. + + - `WRITTEN` renders these entities in their standard written form (for + example, `$50`, `10:30 AM`, and `101`). + + - `SPOKEN` renders these entities as words, exactly as they were spoken + (for example, `fifty dollars`, `ten thirty a m`, and `one oh one`). + + If you don't specify a value, Amazon Transcribe uses `WRITTEN` by + default. + """ + @dataclass(kw_only=True) class StartStreamTranscriptionOutput(_SerdeShape): """Dataclass for StartStreamTranscriptionOutput structure.""" diff --git a/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/py.typed b/clients/aws-sdk-transcribe-streaming/src/aws_sdk_transcribe_streaming/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/clients/aws-sdk-transcribe-streaming/tests/_typecheck.py b/clients/aws-sdk-transcribe-streaming/tests/_typecheck.py index 4058302d1..e87e2ae60 100644 --- a/clients/aws-sdk-transcribe-streaming/tests/_typecheck.py +++ b/clients/aws-sdk-transcribe-streaming/tests/_typecheck.py @@ -2,6 +2,8 @@ from typing import Any +from aws_sdk_transcribe_streaming.aio.client import AsyncTranscribeStreamingClient +from aws_sdk_transcribe_streaming.client import TranscribeStreamingClient from aws_sdk_transcribe_streaming.models import ( Alternative, AudioEvent, @@ -16,6 +18,7 @@ ConfigurationEvent, Entity, GetMedicalScribeStreamInput, + GetMedicalScribeStreamInputDict, GetMedicalScribeStreamOutput, IssueDetected, Item, @@ -43,12 +46,16 @@ PostCallAnalyticsSettings, Result, StartCallAnalyticsStreamTranscriptionInput, + StartCallAnalyticsStreamTranscriptionInputDict, StartCallAnalyticsStreamTranscriptionOutput, StartMedicalScribeStreamInput, + StartMedicalScribeStreamInputDict, StartMedicalScribeStreamOutput, StartMedicalStreamTranscriptionInput, + StartMedicalStreamTranscriptionInputDict, StartMedicalStreamTranscriptionOutput, StartStreamTranscriptionInput, + StartStreamTranscriptionInputDict, StartStreamTranscriptionOutput, TimestampRange, Transcript, @@ -57,8 +64,9 @@ ) -# Static type fixture: pyright over this validates models.pyi. -# Not executed as a test; it only needs to type-check. +# Static type fixture: pyright over this validates models.pyi and the +# client method signatures. Not executed as a test; it only needs to +# type-check. _: Any = ... @@ -115,3 +123,88 @@ Transcript() TranscriptEvent() UtteranceEvent() +_params_0: GetMedicalScribeStreamInputDict = {"session_id": _} +_params_1: StartCallAnalyticsStreamTranscriptionInputDict = { + "media_sample_rate_hertz": _, + "media_encoding": _, +} +_params_2: StartMedicalScribeStreamInputDict = { + "language_code": _, + "media_sample_rate_hertz": _, + "media_encoding": _, +} +_params_3: StartMedicalStreamTranscriptionInputDict = { + "language_code": _, + "media_sample_rate_hertz": _, + "media_encoding": _, + "specialty": _, + "type": _, +} +_params_4: StartStreamTranscriptionInputDict = { + "media_sample_rate_hertz": _, + "media_encoding": _, +} + + +def _request[T](form: type[T]) -> T: + raise NotImplementedError + + +async def check_async_calls(client: AsyncTranscribeStreamingClient) -> None: + pass + await client.get_medical_scribe_stream(session_id=_) + await client.get_medical_scribe_stream(**_request(GetMedicalScribeStreamInputDict)) + await client.get_medical_scribe_stream(_request(GetMedicalScribeStreamInput)) + await client.get_medical_scribe_stream(_request(GetMedicalScribeStreamInputDict)) + await client.start_call_analytics_stream_transcription( + media_sample_rate_hertz=_, media_encoding=_ + ) + await client.start_call_analytics_stream_transcription( + **_request(StartCallAnalyticsStreamTranscriptionInputDict) + ) + await client.start_call_analytics_stream_transcription( + _request(StartCallAnalyticsStreamTranscriptionInput) + ) + await client.start_call_analytics_stream_transcription( + _request(StartCallAnalyticsStreamTranscriptionInputDict) + ) + await client.start_medical_scribe_stream( + language_code=_, media_sample_rate_hertz=_, media_encoding=_ + ) + await client.start_medical_scribe_stream( + **_request(StartMedicalScribeStreamInputDict) + ) + await client.start_medical_scribe_stream(_request(StartMedicalScribeStreamInput)) + await client.start_medical_scribe_stream( + _request(StartMedicalScribeStreamInputDict) + ) + await client.start_medical_stream_transcription( + language_code=_, + media_sample_rate_hertz=_, + media_encoding=_, + specialty=_, + type=_, + ) + await client.start_medical_stream_transcription( + **_request(StartMedicalStreamTranscriptionInputDict) + ) + await client.start_medical_stream_transcription( + _request(StartMedicalStreamTranscriptionInput) + ) + await client.start_medical_stream_transcription( + _request(StartMedicalStreamTranscriptionInputDict) + ) + await client.start_stream_transcription(media_sample_rate_hertz=_, media_encoding=_) + await client.start_stream_transcription( + **_request(StartStreamTranscriptionInputDict) + ) + await client.start_stream_transcription(_request(StartStreamTranscriptionInput)) + await client.start_stream_transcription(_request(StartStreamTranscriptionInputDict)) + + +def check_sync_calls(client: TranscribeStreamingClient) -> None: + pass + client.get_medical_scribe_stream(session_id=_) + client.get_medical_scribe_stream(**_request(GetMedicalScribeStreamInputDict)) + client.get_medical_scribe_stream(_request(GetMedicalScribeStreamInput)) + client.get_medical_scribe_stream(_request(GetMedicalScribeStreamInputDict)) diff --git a/clients/aws-sdk-transcribe-streaming/tests/integration/test_bidirectional_streaming.py b/clients/aws-sdk-transcribe-streaming/tests/integration/test_bidirectional_streaming.py index 5685d3ad0..b07f88094 100644 --- a/clients/aws-sdk-transcribe-streaming/tests/integration/test_bidirectional_streaming.py +++ b/clients/aws-sdk-transcribe-streaming/tests/integration/test_bidirectional_streaming.py @@ -12,7 +12,6 @@ AudioStreamAudioEvent, LanguageCode, MediaEncoding, - StartStreamTranscriptionInput, StartStreamTranscriptionOutput, TranscriptResultStream, TranscriptResultStreamTranscriptEvent, @@ -91,11 +90,9 @@ async def test_start_stream_transcription() -> None: "us-west-2", transport=AWSCRTHTTPClient() ) as transcribe_client: stream = await transcribe_client.start_stream_transcription( - input=StartStreamTranscriptionInput( - language_code=LanguageCode.EN_US, - media_sample_rate_hertz=SAMPLE_RATE, - media_encoding=MediaEncoding.PCM, - ) + language_code=LanguageCode.EN_US, + media_sample_rate_hertz=SAMPLE_RATE, + media_encoding=MediaEncoding.PCM, ) results = await asyncio.gather( diff --git a/clients/aws-sdk-transcribe-streaming/tests/integration/test_non_streaming.py b/clients/aws-sdk-transcribe-streaming/tests/integration/test_non_streaming.py index 815386b88..46794005a 100644 --- a/clients/aws-sdk-transcribe-streaming/tests/integration/test_non_streaming.py +++ b/clients/aws-sdk-transcribe-streaming/tests/integration/test_non_streaming.py @@ -10,7 +10,6 @@ from aws_sdk_transcribe_streaming.models import ( BadRequestException, ClinicalNoteGenerationSettings, - GetMedicalScribeStreamInput, GetMedicalScribeStreamOutput, LanguageCode, LimitExceededException, @@ -23,7 +22,6 @@ MedicalScribePostStreamAnalyticsSettings, MedicalScribeSessionControlEvent, MedicalScribeSessionControlEventType, - StartMedicalScribeStreamInput, ) from smithy_core.exceptions import CallError from smithy_http.aio.crt import AWSCRTHTTPClient @@ -49,12 +47,10 @@ async def _run_medical_scribe_session(role_arn: str, s3_bucket: str) -> None: session_id = str(uuid.uuid4()) stream = await transcribe_client.start_medical_scribe_stream( - input=StartMedicalScribeStreamInput( - language_code=LanguageCode.EN_US, - media_sample_rate_hertz=SAMPLE_RATE, - media_encoding=MediaEncoding.PCM, - session_id=session_id, - ) + language_code=LanguageCode.EN_US, + media_sample_rate_hertz=SAMPLE_RATE, + media_encoding=MediaEncoding.PCM, + session_id=session_id, ) await stream.input_stream.send( @@ -104,7 +100,7 @@ async def _run_medical_scribe_session(role_arn: str, s3_bucket: str) -> None: pass response = await transcribe_client.get_medical_scribe_stream( - input=GetMedicalScribeStreamInput(session_id=session_id) + session_id=session_id ) assert isinstance(response, GetMedicalScribeStreamOutput) diff --git a/codegen/smithy-python.toml b/codegen/smithy-python.toml index 3f32a97d4..4c92524eb 100644 --- a/codegen/smithy-python.toml +++ b/codegen/smithy-python.toml @@ -1,6 +1,6 @@ # The smithy-python commit `make clients` builds codegen from. May be any commit # reachable from the colocated smithy-python checkout, including a local one. -commit = "481e1334cf29b683928f57c4bcb292f7e323b6c4" +commit = "285aeb06dc769ed6c1861d229d706d2ede5303e1" # The commit this pointer moved from; with `commit` it bounds the range linked # in codegen sync changelog entries. -previous_commit = "daf94021b97c3078eef0707a2e320d4344d50fc6" +previous_commit = "481e1334cf29b683928f57c4bcb292f7e323b6c4" diff --git a/docs/index.md b/docs/index.md index 16e53ed84..d7d907879 100644 --- a/docs/index.md +++ b/docs/index.md @@ -85,14 +85,13 @@ import asyncio from aws_sdk_dynamodb.aio.client import AsyncDynamoDBClient from aws_sdk_dynamodb.aio.config import AsyncDynamoDBConfig -from aws_sdk_dynamodb.models import ListTablesInput async def main(): config = await AsyncDynamoDBConfig.resolve(region="us-east-1") async with AsyncDynamoDBClient(config=config) as client: - response = await client.list_tables(input=ListTablesInput(limit=10)) + response = await client.list_tables(limit=10) for table in response.table_names or []: print(table) diff --git a/packages/aws-credentials-http/pyproject.toml b/packages/aws-credentials-http/pyproject.toml index e31e4be52..a92f12060 100644 --- a/packages/aws-credentials-http/pyproject.toml +++ b/packages/aws-credentials-http/pyproject.toml @@ -28,9 +28,9 @@ classifiers = [ "Topic :: Software Development :: Libraries", ] dependencies = [ - "smithy-aws-core~=0.14.0", - "smithy-core~=0.11.0", - "smithy-http[aiohttp,urllib3]~=0.8.0", + "smithy-aws-core~=0.15.0", + "smithy-core~=0.12.0", + "smithy-http[aiohttp,urllib3]~=0.9.0", ] [project.urls] diff --git a/packages/aws-credentials-imds/pyproject.toml b/packages/aws-credentials-imds/pyproject.toml index f3c37b4e9..b94e471a4 100644 --- a/packages/aws-credentials-imds/pyproject.toml +++ b/packages/aws-credentials-imds/pyproject.toml @@ -28,9 +28,9 @@ classifiers = [ "Topic :: Software Development :: Libraries", ] dependencies = [ - "smithy-aws-core~=0.14.0", - "smithy-core~=0.11.0", - "smithy-http[aiohttp,urllib3]~=0.8.0", + "smithy-aws-core~=0.15.0", + "smithy-core~=0.12.0", + "smithy-http[aiohttp,urllib3]~=0.9.0", ] [project.urls] diff --git a/packages/aws-credentials-sts/pyproject.toml b/packages/aws-credentials-sts/pyproject.toml index c8bffa1e5..fe18d2b5d 100644 --- a/packages/aws-credentials-sts/pyproject.toml +++ b/packages/aws-credentials-sts/pyproject.toml @@ -29,9 +29,9 @@ classifiers = [ ] dependencies = [ "aws-sdk-sts~=0.12.0", - "smithy-aws-core~=0.14.0", - "smithy-core~=0.11.0", - "smithy-http~=0.8.0", + "smithy-aws-core~=0.15.0", + "smithy-core~=0.12.0", + "smithy-http~=0.9.0", ] [project.urls] diff --git a/scripts/docs/generate_doc_stubs.py b/scripts/docs/generate_doc_stubs.py index 7ad674dac..5393a38c3 100644 --- a/scripts/docs/generate_doc_stubs.py +++ b/scripts/docs/generate_doc_stubs.py @@ -85,6 +85,7 @@ class OperationInfo: name: str module_path: str input: TypeInfo + input_dicts: list[TypeInfo] output: TypeInfo stream_type: StreamType | None event_input_type: str | None # For input/duplex streams @@ -104,6 +105,7 @@ class ModelsInfo: """Information about all modeled types.""" structures: list[TypeInfo] + dictionaries: list[TypeInfo] unions: list[UnionInfo] enums: list[TypeInfo] errors: list[TypeInfo] @@ -114,7 +116,8 @@ class ClientInfo: """Complete information about a client package.""" name: str # e.g., "AsyncBedrockRuntimeClient" - module_path: str # e.g., "aws_sdk_bedrock_runtime.aio.client.AsyncBedrockRuntimeClient" + # e.g., "aws_sdk_bedrock_runtime.aio.client.AsyncBedrockRuntimeClient" + module_path: str package_name: str # e.g., "aws_sdk_bedrock_runtime" config: TypeInfo plugin: TypeInfo @@ -126,7 +129,9 @@ class ClientInfo: class DocStubGenerator: """Generate markdown API Reference stubs for AWS SDK for Python v4 clients.""" - def __init__(self, client_dir: Path, output_dir: Path, service_name: str | None = None) -> None: + def __init__( + self, client_dir: Path, output_dir: Path, service_name: str | None = None + ) -> None: """ Initialize the documentation generator. @@ -153,16 +158,21 @@ def _sdk_id_from_package(client_dir: Path) -> str | None: """ Read the authoritative service name (Smithy sdkId) from the package. - The generated ``_private/schemas.py`` carries the ``aws.api#service`` - trait's ``sdkId`` (e.g. "SNS"), the same field the sidebar navigation - uses, so it keeps acronym casing that the package name does not. + The generated schemas carry the ``aws.api#service`` trait's ``sdkId`` + (e.g. "SNS"), the same field the sidebar navigation uses, so it keeps + acronym casing that the package name does not. Returns None if the file or value is absent. """ - schemas = client_dir / "_private" / "schemas.py" - if not schemas.is_file(): - return None - match = re.search(r'"sdkId":\s*"([^"]+)"', schemas.read_text()) - return match.group(1) if match else None + private_dir = client_dir / "_private" + for schemas in [ + private_dir / "schemas.py", + *sorted(private_dir.glob("schemas_*.py")), + ]: + if schemas.is_file(): + match = re.search(r'"sdkId":\s*"([^"]+)"', schemas.read_text()) + if match: + return match.group(1) + return None def generate(self) -> bool: """ @@ -184,12 +194,14 @@ def generate(self) -> bool: def _analyze_client_package(self, package_name: str) -> ClientInfo: """Analyze a client package using griffe.""" logger.info(f"Analyzing package: {package_name}") - package = griffe.load(package_name) + package = griffe.load(package_name, search_paths=[self.client_dir.parent]) required = ("aio.client", "aio.config", "models") missing = [name for name in required if not self._has_module(package, name)] if missing: - raise ValueError(f"Missing required modules in {package_name}: {', '.join(missing)}") + raise ValueError( + f"Missing required modules in {package_name}: {', '.join(missing)}" + ) client_module = package["aio.client"] config_module = package["aio.config"] @@ -197,11 +209,15 @@ def _analyze_client_package(self, package_name: str) -> ClientInfo: client_class = self._find_class_with_suffix(client_module, "Client") if not client_class: - raise ValueError(f"No class ending with 'Client' found in {package_name}.aio.client") + raise ValueError( + f"No class ending with 'Client' found in {package_name}.aio.client" + ) config_class = self._find_class_with_suffix(config_module, "Config") if not config_class: - raise ValueError(f"No class ending with 'Config' found in {package_name}.aio.config") + raise ValueError( + f"No class ending with 'Config' found in {package_name}.aio.config" + ) plugin_alias = config_module.members.get("Plugin") if not plugin_alias: @@ -218,6 +234,7 @@ def _analyze_client_package(self, package_name: str) -> ClientInfo: f"Analyzed {client_class.name}: {len(client_methods)} client methods, " f"{len(operations)} operations, " f"{len(models.structures)} structures, {len(models.errors)} errors, " + f"{len(models.dictionaries)} dictionaries, " f"{len(models.unions)} unions, {len(models.enums)} enums" ) @@ -277,14 +294,39 @@ def _analyze_operation(self, operation: Function) -> OperationInfo: event_input_type = None event_output_type = None - input_param = operation.parameters["input"] - input_annotation = self._get_expr( - input_param.annotation, f"'{operation.name}' input annotation" + # Public request types live on the overloads; the implementation accepts + # *args/**kwargs and does not expose the input shape. + request_signature = next( + ( + overload + for overload in operation.overloads or [] + if "request" in overload.parameters + ), + None, ) + if request_signature: + input_annotation = request_signature.parameters["request"].annotation + else: + input_annotation = operation.parameters["input"].annotation + input_types = self._get_union_elements( + self._get_expr(input_annotation, f"'{operation.name}' input annotation") + ) + model_types = [ + expr for expr in input_types if not expr.canonical_name.endswith("Dict") + ] + dict_types = [ + expr for expr in input_types if expr.canonical_name.endswith("Dict") + ] + if len(model_types) != 1: + raise ValueError(f"'{operation.name}': expected one input model") input_info = TypeInfo( - name=input_annotation.canonical_name, - module_path=input_annotation.canonical_path, + name=model_types[0].canonical_name, + module_path=model_types[0].canonical_path, ) + input_dicts = [ + TypeInfo(name=expr.canonical_name, module_path=expr.canonical_path) + for expr in dict_types + ] returns = self._get_expr(operation.returns, f"'{operation.name}' return type") output_type = returns.canonical_name @@ -292,7 +334,9 @@ def _analyze_operation(self, operation: Function) -> OperationInfo: if output_type in stream_type_map: stream_type = stream_type_map[output_type] - stream_args = self._get_subscript_elements(returns, f"'{operation.name}' stream type") + stream_args = self._get_subscript_elements( + returns, f"'{operation.name}' stream type" + ) if stream_type in (StreamType.INPUT, StreamType.DUPLEX): event_input_type = stream_args[0].canonical_name @@ -311,6 +355,7 @@ def _analyze_operation(self, operation: Function) -> OperationInfo: name=operation.name, module_path=operation.path, input=input_info, + input_dicts=input_dicts, output=output_info, stream_type=stream_type, event_input_type=event_input_type, @@ -320,7 +365,9 @@ def _analyze_operation(self, operation: Function) -> OperationInfo: def _get_expr(self, annotation: str | Expr | None, context: str) -> Expr: """Extract and validate an Expr from an annotation.""" if not isinstance(annotation, Expr): - raise TypeError(f"{context}: expected Expr, got {type(annotation).__name__}") + raise TypeError( + f"{context}: expected Expr, got {type(annotation).__name__}" + ) return annotation def _get_subscript_elements(self, expr: Expr, context: str) -> list[Expr]: @@ -334,40 +381,81 @@ def _get_subscript_elements(self, expr: Expr, context: str) -> list[Expr]: return [el for el in slice_expr.elements if isinstance(el, Expr)] return [slice_expr] - def _extract_models(self, models_module: Module, operations: list[OperationInfo]) -> ModelsInfo: + def _get_union_elements(self, expr: Expr) -> list[Expr]: + """Flatten both Union[A, B] and A | B annotations.""" + if isinstance(expr, ExprBinOp) and expr.operator == "|": + return [ + *self._get_union_elements(self._get_expr(expr.left, "Union member")), + *self._get_union_elements(self._get_expr(expr.right, "Union member")), + ] + if ( + isinstance(expr, ExprSubscript) + and isinstance(expr.left, Expr) + and expr.left.canonical_name == "Union" + ): + return [ + member + for arg in self._get_subscript_elements(expr, "Union") + for member in self._get_union_elements(arg) + ] + return [expr] + + def _extract_models( + self, models_module: Module, operations: list[OperationInfo] + ) -> ModelsInfo: """Extract structures, unions, enums, and errors from models module.""" - structures, unions, enums, errors = [], [], [], [] + structures, dictionaries, unions, enums, errors = [], [], [], [], [] for member in models_module.members.values(): - # Skip imported and private members - if member.is_imported or member.is_private: + if member.is_private: + continue + target = member + if isinstance(member, Alias): + # Partitioned clients re-export their types from private stubs. + # Keep their public paths, while excluding unrelated imports. + if not member.target_path.startswith( + f"{models_module.path.removesuffix('.models')}._private.models_" + ): + continue + target = member.final_target + elif member.is_imported: continue - if self._is_union(member): + if self._is_union(target): unions.append( UnionInfo( name=member.name, module_path=member.path, - members=self._extract_union_members(member, models_module), + members=self._extract_union_members(target, models_module), ) ) - elif self._is_enum(member): + elif self._is_enum(target): enums.append(TypeInfo(name=member.name, module_path=member.path)) - elif self._is_error(member): + elif self._is_error(target): errors.append(TypeInfo(name=member.name, module_path=member.path)) - elif member.is_class: - structures.append(TypeInfo(name=member.name, module_path=member.path)) - - duplicates = [] - for structure in structures: - if self._is_operation_io_type(structure.name, operations) or self._is_union_member( - structure.name, unions + elif isinstance(target, Class) and any( + isinstance(base, Expr) and base.canonical_name == "TypedDict" + for base in target.bases ): - duplicates.append(structure) + dictionaries.append(TypeInfo(name=member.name, module_path=member.path)) + elif target.is_class: + structures.append(TypeInfo(name=member.name, module_path=member.path)) - structures = [struct for struct in structures if struct not in duplicates] + def standalone(items: list[TypeInfo]) -> list[TypeInfo]: + return [ + item + for item in items + if not self._is_operation_io_type(item.name, operations) + and not self._is_union_member(item.name, unions) + ] - return ModelsInfo(structures=structures, unions=unions, enums=enums, errors=errors) + return ModelsInfo( + structures=standalone(structures), + dictionaries=standalone(dictionaries), + unions=unions, + enums=enums, + errors=errors, + ) def _is_union(self, member: Object | Alias) -> TypeGuard[Attribute]: """Check if a module member is a union type.""" @@ -382,7 +470,7 @@ def _is_union(self, member: Object | Alias) -> TypeGuard[Attribute]: return True # Check for PEP 604 (X | Y) syntax - if isinstance(value, ExprBinOp): + if isinstance(value, ExprBinOp) and value.operator == "|": return True return False @@ -392,18 +480,14 @@ def _extract_union_members( ) -> list[TypeInfo]: """Extract member types from a union.""" members = [] - value_str = str(union_attr.value) - - # Clean up value_str for Union[X | Y | Z] syntax - if value_str.startswith("Union[") and value_str.endswith("]"): - value_str = value_str.removeprefix("Union[").removesuffix("]") - - member_names = [member.strip() for member in value_str.split("|")] - - for name in member_names: + value = self._get_expr(union_attr.value, f"'{union_attr.name}' union") + for expr in self._get_union_elements(value): + name = expr.canonical_name if not (member_object := models_module.members.get(name)): raise ValueError(f"Union member '{name}' not found in models module") - members.append(TypeInfo(name=member_object.name, module_path=member_object.path)) + members.append( + TypeInfo(name=member_object.name, module_path=member_object.path) + ) return members @@ -412,7 +496,8 @@ def _is_enum(self, member: Object | Alias) -> TypeGuard[Class]: if not isinstance(member, Class): return False return any( - isinstance(base, ExprName) and base.name in ENUM_BASE_CLASSES for base in member.bases + isinstance(base, ExprName) and base.name in ENUM_BASE_CLASSES + for base in member.bases ) def _is_error(self, member: Object | Alias) -> TypeGuard[Class]: @@ -420,12 +505,19 @@ def _is_error(self, member: Object | Alias) -> TypeGuard[Class]: if not isinstance(member, Class): return False return any( - isinstance(base, ExprName) and base.name in ERROR_BASE_CLASSES for base in member.bases + isinstance(base, ExprName) and base.name in ERROR_BASE_CLASSES + for base in member.bases ) - def _is_operation_io_type(self, type_name: str, operations: list[OperationInfo]) -> bool: + def _is_operation_io_type( + self, type_name: str, operations: list[OperationInfo] + ) -> bool: """Check if a type is used as operation input/output.""" - return any(type_name in (op.input.name, op.output.name) for op in operations) + return any( + type_name in (op.input.name, op.output.name) + or any(type_name == dictionary.name for dictionary in op.input_dicts) + for op in operations + ) def _is_union_member(self, type_name: str, unions: list[UnionInfo]) -> bool: """Check if a type is used as union member.""" @@ -441,8 +533,15 @@ def _generate_client_docs(self, client_info: ClientInfo) -> bool: self._generate_type_stubs( client_info.models.structures, "structures", "Structure Class" ) - self._generate_type_stubs(client_info.models.errors, "errors", "Error Class") - self._generate_type_stubs(client_info.models.enums, "enums", "Enum Class", members=True) + self._generate_type_stubs( + client_info.models.dictionaries, "dictionaries", "Dictionary Type" + ) + self._generate_type_stubs( + client_info.models.errors, "errors", "Error Class" + ) + self._generate_type_stubs( + client_info.models.enums, "enums", "Enum Class", members=True + ) self._generate_union_stubs(client_info.models.unions) except OSError as e: logger.error(f"Failed to write documentation files: {e}") @@ -474,7 +573,9 @@ def _generate_index(self, client_info: ClientInfo) -> None: ] for method in sorted(client_info.client_methods, key=lambda x: x.name): - lines.extend([*self._mkdocs_directive(method.module_path, heading_level=4), ""]) + lines.extend( + [*self._mkdocs_directive(method.module_path, heading_level=4), ""] + ) # Operations section if client_info.operations: @@ -504,6 +605,7 @@ def _generate_index(self, client_info: ClientInfo) -> None: # Model sections sections: list[tuple[str, str, Sequence[TypeInfo | UnionInfo]]] = [ ("Structures", "structures", models.structures), + ("Dictionaries", "dictionaries", models.dictionaries), ("Errors", "errors", models.errors), ("Unions", "unions", models.unions), ("Enums", "enums", models.enums), @@ -535,11 +637,32 @@ def _generate_operation_stubs(self, operations: list[OperationInfo]) -> None: "", "## Input", "", - *self._mkdocs_directive(op.input.module_path), - "", - "## Output", - "", ] + if op.input_dicts: + lines.extend( + [ + "Pass the input fields as keyword arguments, or pass a model or dictionary " + "as the first positional argument. Pass `plugins` separately as a keyword argument.", + "", + "### Model", + "", + *self._mkdocs_directive(op.input.module_path, heading_level=4), + "", + "### Dictionaries", + ] + ) + for dictionary in op.input_dicts: + lines.extend( + [ + "", + *self._mkdocs_directive( + dictionary.module_path, heading_level=4 + ), + ] + ) + else: + lines.extend(self._mkdocs_directive(op.input.module_path)) + lines.extend(["", "## Output", ""]) if op.stream_type: lines.extend( @@ -582,7 +705,9 @@ def _generate_operation_stubs(self, operations: list[OperationInfo]) -> None: output_path = self.output_dir / "operations" / f"{op.name}.md" output_path.parent.mkdir(parents=True, exist_ok=True) - output_path.write_text(self._breadcrumb("Operations", op.name) + "\n".join(lines)) + output_path.write_text( + self._breadcrumb("Operations", op.name) + "\n".join(lines) + ) logger.info(f"Wrote {len(operations)} operation file(s)") @@ -604,7 +729,9 @@ def _generate_type_stubs( output_path = self.output_dir / category / f"{item.name}.md" output_path.parent.mkdir(parents=True, exist_ok=True) - output_path.write_text(self._breadcrumb(category.title(), item.name) + "\n".join(lines)) + output_path.write_text( + self._breadcrumb(category.title(), item.name) + "\n".join(lines) + ) logger.info(f"Wrote {len(items)} {category} file(s)") @@ -628,7 +755,9 @@ def _generate_union_stubs(self, unions: list[UnionInfo]) -> None: output_path = self.output_dir / "unions" / f"{union.name}.md" output_path.parent.mkdir(parents=True, exist_ok=True) - output_path.write_text(self._breadcrumb("Unions", union.name) + "\n".join(lines)) + output_path.write_text( + self._breadcrumb("Unions", union.name) + "\n".join(lines) + ) logger.info(f"Wrote {len(unions)} union file(s)") diff --git a/scripts/docs/griffe_extensions.py b/scripts/docs/griffe_extensions.py new file mode 100644 index 000000000..bce2915d9 --- /dev/null +++ b/scripts/docs/griffe_extensions.py @@ -0,0 +1,24 @@ +"""Preserve operation descriptions stored on generated overloads.""" + +from typing import Any + +from griffe import Docstring, Extension, Function + + +class OverloadDocstrings(Extension): + """Use an overload's docstring when the implementation has none.""" + + def on_function(self, *, func: Function, **kwargs: Any) -> None: + if func.docstring: + return + for overload in func.overloads or []: + if docstring := overload.docstring: + func.docstring = Docstring( + docstring.value, + lineno=docstring.lineno, + endlineno=docstring.endlineno, + parent=func, + parser=docstring.parser, + parser_options=docstring.parser_options, + ) + break diff --git a/scripts/docs/tests/test_api_reference.py b/scripts/docs/tests/test_api_reference.py new file mode 100644 index 000000000..8b3312c49 --- /dev/null +++ b/scripts/docs/tests/test_api_reference.py @@ -0,0 +1,164 @@ +"""Regression checks for documentation of the generated clients.""" + +import re +import tomllib +from pathlib import Path + +import griffe +import pytest +from markdown import Markdown +from mkdocstrings_handlers.python import PythonConfig, PythonHandler + +from scripts.docs.generate_doc_stubs import DocStubGenerator, StreamType +from scripts.docs.griffe_extensions import OverloadDocstrings + +REPO_ROOT = Path(__file__).resolve().parents[3] + + +def client_dir(service: str) -> Path: + return ( + REPO_ROOT + / "clients" + / f"aws-sdk-{service}" + / "src" + / f"aws_sdk_{service.replace('-', '_')}" + ) + + +@pytest.mark.parametrize( + ("service", "operation_name", "stream_type", "dictionary_count"), + [ + ("dynamodb", "list_tables", None, 1), + ("ec2", "describe_instances", None, 1), + ("sts", "assume_role", None, 1), + ("s3", "put_object", None, 2), + ("lambda", "invoke_async", None, 2), + ("lex-runtime-v2", "recognize_utterance", None, 2), + ("bedrock-runtime", "converse_stream", StreamType.OUTPUT, 1), + ("transcribe-streaming", "start_stream_transcription", StreamType.DUPLEX, 1), + ], +) +def test_operation_inputs_and_streams( + tmp_path: Path, + service: str, + operation_name: str, + stream_type: StreamType | None, + dictionary_count: int, +) -> None: + generator = DocStubGenerator(client_dir(service), tmp_path) + client = generator._analyze_client_package(generator.client_dir.name) + operation = next(op for op in client.operations if op.name == operation_name) + assert len(operation.input_dicts) == dictionary_count + assert operation.input_dicts[0].name == f"{operation.input.name}Dict" + assert operation.input.module_path.startswith(f"{client.package_name}.models.") + assert operation.stream_type == stream_type + generator._generate_operation_stubs([operation]) + page = (tmp_path / "operations" / f"{operation_name}.md").read_text() + assert f"::: {operation.input.module_path}" in page + for dictionary in operation.input_dicts: + assert f"::: {dictionary.module_path}" in page + assert "keyword arguments" in page + for name in (operation.event_input_type, operation.event_output_type): + if name: + assert any(union.name == name for union in client.models.unions) + + +def test_partitioned_models_keep_public_paths_and_complete_links( + tmp_path: Path, +) -> None: + generator = DocStubGenerator(client_dir("dynamodb"), tmp_path) + assert generator.service_name == "DynamoDB" + client = generator._analyze_client_package("aws_sdk_dynamodb") + assert any(model.name == "TableDescription" for model in client.models.structures) + assert any( + model.name == "AttributeDefinitionDict" for model in client.models.dictionaries + ) + assert any( + model.name == "ResourceNotFoundException" for model in client.models.errors + ) + assert any(model.name == "TableStatus" for model in client.models.enums) + union = next( + union for union in client.models.unions if union.name == "AttributeValueDict" + ) + assert any(member.name == "AttributeValueSDict" for member in union.members) + assert generator._generate_client_docs(client) + + pages = list(tmp_path.rglob("*.md")) + for page in pages: + text = page.read_text() + assert "._private." not in text + for reference in re.findall(r"\]\(([^)#]+)(?:#[^)]*)?\)", text): + assert (page.parent / reference).is_file(), (page, reference) + index = (tmp_path / "index.md").read_text() + assert "[`ListTablesInputDict`](dictionaries/" not in index + assert "[`TypedDict`](dictionaries/" not in index + + +def test_generator_uses_supplied_sources( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch +) -> None: + """An installed package must not shadow the requested client checkout.""" + stale_package = tmp_path / "installed" / "aws_sdk_sts" + stale_package.mkdir(parents=True) + (stale_package / "__init__.py").write_text( + '"""An old installed client without aio."""' + ) + monkeypatch.syspath_prepend(str(stale_package.parent)) + generator = DocStubGenerator(client_dir("sts"), tmp_path / "docs") + assert generator.generate() + assert (tmp_path / "docs" / "operations" / "assume_role.md").is_file() + + +def test_overload_docstrings_are_rendered_with_public_signatures() -> None: + config = tomllib.loads((REPO_ROOT / "zensical.toml").read_text())["project"] + python_config = config["plugins"]["mkdocstrings"]["handlers"]["python"] + handler = PythonHandler( + config=PythonConfig.from_data(paths=python_config["paths"]), + base_dir=REPO_ROOT, + theme="material", + custom_templates=None, + mdx=["pymdownx.highlight", "toc"], + mdx_config={}, + ) + try: + handler._update_env(Markdown(extensions=["pymdownx.highlight", "toc"])) + options = handler.get_options(python_config["options"]) + operation = handler.collect( + "aws_sdk_dynamodb.aio.client.AsyncDynamoDBClient.list_tables", options + ) + html = handler.render(operation, options) + assert "Returns an array of table names" in html + assert "ListTablesInputDict" in html + assert "plugins" in html + assert "kwargs" in html + assert "*args" not in html + dictionary = handler.collect( + "aws_sdk_dynamodb.models.ListTablesInputDict", options + ) + dictionary_html = handler.render(dictionary, options) + assert "exclusive_start_table_name" in dictionary_html + assert "limit" in dictionary_html + finally: + handler.teardown() + + +def test_extension_preserves_existing_docstrings(tmp_path: Path) -> None: + source = tmp_path / "overloaded.py" + source.write_text( + "from typing import overload\n" + "@overload\n" + "def documented(value: str) -> str:\n" + ' """Overload description."""\n' + "def documented(value):\n" + ' """Implementation description."""\n' + "@overload\n" + "def undocumented(value: str) -> str: ...\n" + "def undocumented(value): ...\n" + ) + module = griffe.load( + source.stem, + search_paths=[tmp_path], + extensions=griffe.load_extensions(OverloadDocstrings), + ) + assert module["documented"].docstring.value == "Implementation description." + assert module["undocumented"].docstring is None diff --git a/scripts/verifications/import-cost.json b/scripts/verifications/import-cost.json index e0058c5ee..5c26217dc 100644 --- a/scripts/verifications/import-cost.json +++ b/scripts/verifications/import-cost.json @@ -72,7 +72,7 @@ "aws_sdk_rds": 1, "aws_sdk_rds (all public modules)": 14, "aws_sdk_s3": 1, - "aws_sdk_s3 (all public modules)": 18, + "aws_sdk_s3 (all public modules)": 16, "aws_sdk_sagemaker_runtime_http2": 1, "aws_sdk_sagemaker_runtime_http2 (all public modules)": 13, "aws_sdk_secrets_manager": 1, diff --git a/zensical.toml b/zensical.toml index 61db8f6ba..ae73edcca 100644 --- a/zensical.toml +++ b/zensical.toml @@ -23,7 +23,9 @@ nav = [ { Contributing = "contributing.md" }, { "Available Clients" = [ "clients/index.md", + { "ACM" = "clients/acm/index.md" }, { "API Gateway" = "clients/api-gateway/index.md" }, + { "AppConfigData" = "clients/appconfigdata/index.md" }, { "Bedrock" = "clients/bedrock/index.md" }, { "Bedrock Agent" = "clients/bedrock-agent/index.md" }, { "Bedrock Agent Runtime" = "clients/bedrock-agent-runtime/index.md" }, @@ -32,17 +34,28 @@ nav = [ { "Bedrock Data Automation" = "clients/bedrock-data-automation/index.md" }, { "Bedrock Data Automation Runtime" = "clients/bedrock-data-automation-runtime/index.md" }, { "Bedrock Runtime" = "clients/bedrock-runtime/index.md" }, + { "CloudFormation" = "clients/cloudformation/index.md" }, + { "CloudFront" = "clients/cloudfront/index.md" }, + { "CloudFront KeyValueStore" = "clients/cloudfront-keyvaluestore/index.md" }, { "CloudTrail" = "clients/cloudtrail/index.md" }, { "Cognito Identity" = "clients/cognito-identity/index.md" }, { "ConnectHealth" = "clients/connecthealth/index.md" }, { "DynamoDB" = "clients/dynamodb/index.md" }, + { "EC2" = "clients/ec2/index.md" }, + { "ECS" = "clients/ecs/index.md" }, { "GuardDuty" = "clients/guardduty/index.md" }, + { "IAM" = "clients/iam/index.md" }, + { "Kinesis" = "clients/kinesis/index.md" }, + { "KMS" = "clients/kms/index.md" }, { "Lambda" = "clients/lambda/index.md" }, { "Lex Runtime V2" = "clients/lex-runtime-v2/index.md" }, { "Polly" = "clients/polly/index.md" }, { "QBusiness" = "clients/qbusiness/index.md" }, + { "RDS" = "clients/rds/index.md" }, + { "S3" = "clients/s3/index.md" }, { "SageMaker Runtime HTTP2" = "clients/sagemaker-runtime-http2/index.md" }, { "Secrets Manager" = "clients/secrets-manager/index.md" }, + { "Signin" = "clients/signin/index.md" }, { "SNS" = "clients/sns/index.md" }, { "SQS" = "clients/sqs/index.md" }, { "STS" = "clients/sts/index.md" }, @@ -224,9 +237,10 @@ check_paths = true [project.plugins.mkdocstrings.handlers.python] inventories = ["https://docs.python.org/3/objects.inv"] -paths = ["src"] +paths = ["clients/*/src", "packages/*/src"] [project.plugins.mkdocstrings.handlers.python.options] +extensions = ["scripts/docs/griffe_extensions.py:OverloadDocstrings"] docstring_style = "google" inherited_members = true show_source = false @@ -241,6 +255,7 @@ show_if_no_docstring = true show_category_heading = true group_by_category = true separate_signature = true +overloads_only = true signature_crossrefs = true filters = [ "!^_",